Merge branch 'v19' of https://github.com/primefaces/sakai-ng into v19
This commit is contained in:
@@ -61,7 +61,7 @@ export class AppLayout {
|
||||
const topbarEl = document.querySelector('.layout-menu-button');
|
||||
const eventTarget = event.target as Node;
|
||||
|
||||
return !(sidebarEl.isSameNode(eventTarget) || sidebarEl.contains(eventTarget) || topbarEl.isSameNode(eventTarget) || topbarEl.contains(eventTarget));
|
||||
return !(sidebarEl?.isSameNode(eventTarget) || sidebarEl?.contains(eventTarget) || topbarEl?.isSameNode(eventTarget) || topbarEl?.contains(eventTarget));
|
||||
}
|
||||
|
||||
hideMenu() {
|
||||
|
||||
@@ -53,7 +53,7 @@ import { LayoutService } from '../service/layout.service';
|
||||
})
|
||||
export class AppMenuitem {
|
||||
|
||||
@Input() item: MenuItem;
|
||||
@Input() item!: MenuItem;
|
||||
|
||||
@Input() index!: number;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Subject } from 'rxjs';
|
||||
export interface layoutConfig {
|
||||
preset?: string;
|
||||
primary?: string;
|
||||
surface?: string;
|
||||
surface?: string | undefined | null;
|
||||
darkTheme?: boolean;
|
||||
menuMode?: string;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ import {TextareaModule} from "primeng/textarea";
|
||||
import { ToggleButtonModule } from 'primeng/togglebutton';
|
||||
import { CountryService } from '../service/country.service';
|
||||
import { NodeService } from '../service/node.service';
|
||||
import { TreeNode } from 'primeng/api';
|
||||
|
||||
@Component({
|
||||
selector: 'app-input-demo',
|
||||
@@ -311,7 +312,7 @@ export class InputDemo implements OnInit {
|
||||
|
||||
inputGroupValue: boolean = false;
|
||||
|
||||
treeSelectNodes: any[] = null;
|
||||
treeSelectNodes!: TreeNode[];
|
||||
|
||||
selectedNode: any = null;
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ export class ListDemo {
|
||||
];
|
||||
}
|
||||
|
||||
getSeverity(product) {
|
||||
getSeverity(product: Product) {
|
||||
switch (product.inventoryStatus) {
|
||||
case 'INSTOCK':
|
||||
return 'success';
|
||||
@@ -201,7 +201,7 @@ export class ListDemo {
|
||||
return 'danger';
|
||||
|
||||
default:
|
||||
return null;
|
||||
return 'info';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component } from '@angular/core';
|
||||
import {MessageService } from 'primeng/api';
|
||||
import { MessageService, ToastMessageOptions } from 'primeng/api';
|
||||
import { ButtonModule } from 'primeng/button';
|
||||
import { InputTextModule } from 'primeng/inputtext';
|
||||
import { ToastModule } from 'primeng/toast';
|
||||
@@ -53,7 +53,7 @@ import { FormsModule } from '@angular/forms';
|
||||
})
|
||||
export class MessagesDemo {
|
||||
|
||||
msgs = [];
|
||||
msgs: ToastMessageOptions[] | null = [];
|
||||
|
||||
username: string | undefined
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ export class OverlayDemo implements OnInit {
|
||||
op.toggle(event);
|
||||
}
|
||||
|
||||
onProductSelect(op, event: any) {
|
||||
onProductSelect(op: Popover, event: any) {
|
||||
op.hide();
|
||||
this.messageService.add({ severity: 'info', summary: 'Product Selected', detail: event?.data.name, life: 3000 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user