@smallpearl/ngx-helper 20.0.3 → 20.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/fesm2022/smallpearl-ngx-helper-entities.mjs +3 -3
  2. package/fesm2022/smallpearl-ngx-helper-entities.mjs.map +1 -1
  3. package/fesm2022/smallpearl-ngx-helper-entity-field.mjs.map +1 -1
  4. package/fesm2022/smallpearl-ngx-helper-hover-dropdown.mjs +3 -3
  5. package/fesm2022/smallpearl-ngx-helper-hover-dropdown.mjs.map +1 -1
  6. package/fesm2022/smallpearl-ngx-helper-locale.mjs +6 -6
  7. package/fesm2022/smallpearl-ngx-helper-locale.mjs.map +1 -1
  8. package/fesm2022/smallpearl-ngx-helper-mat-busy-wheel.mjs +9 -9
  9. package/fesm2022/smallpearl-ngx-helper-mat-busy-wheel.mjs.map +1 -1
  10. package/fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs +3 -3
  11. package/fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs.map +1 -1
  12. package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs +17 -17
  13. package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs.map +1 -1
  14. package/fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs +30 -45
  15. package/fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs.map +1 -1
  16. package/fesm2022/smallpearl-ngx-helper-mat-file-input.mjs +21 -21
  17. package/fesm2022/smallpearl-ngx-helper-mat-file-input.mjs.map +1 -1
  18. package/fesm2022/smallpearl-ngx-helper-mat-form-error.mjs +15 -15
  19. package/fesm2022/smallpearl-ngx-helper-mat-form-error.mjs.map +1 -1
  20. package/fesm2022/smallpearl-ngx-helper-mat-select-entity.mjs +106 -115
  21. package/fesm2022/smallpearl-ngx-helper-mat-select-entity.mjs.map +1 -1
  22. package/fesm2022/smallpearl-ngx-helper-mat-select-infinite-scroll.mjs +6 -6
  23. package/fesm2022/smallpearl-ngx-helper-mat-select-infinite-scroll.mjs.map +1 -1
  24. package/fesm2022/smallpearl-ngx-helper-mat-side-menu-layout.mjs +166 -140
  25. package/fesm2022/smallpearl-ngx-helper-mat-side-menu-layout.mjs.map +1 -1
  26. package/fesm2022/smallpearl-ngx-helper-mat-tel-input.mjs +38 -36
  27. package/fesm2022/smallpearl-ngx-helper-mat-tel-input.mjs.map +1 -1
  28. package/fesm2022/smallpearl-ngx-helper-stationary-with-line-items.mjs +6 -6
  29. package/fesm2022/smallpearl-ngx-helper-stationary-with-line-items.mjs.map +1 -1
  30. package/fesm2022/smallpearl-ngx-helper-utils.mjs +23 -0
  31. package/fesm2022/smallpearl-ngx-helper-utils.mjs.map +1 -0
  32. package/fesm2022/smallpearl-ngx-helper.mjs +2 -7
  33. package/fesm2022/smallpearl-ngx-helper.mjs.map +1 -1
  34. package/package.json +24 -24
  35. package/{mat-select-entity/index.d.ts → types/smallpearl-ngx-helper-mat-select-entity.d.ts} +2 -1
  36. package/types/smallpearl-ngx-helper-utils.d.ts +6 -0
  37. package/types/smallpearl-ngx-helper.d.ts +3 -0
  38. package/core/index.d.ts +0 -3
  39. package/fesm2022/smallpearl-ngx-helper-core.mjs +0 -8
  40. package/fesm2022/smallpearl-ngx-helper-core.mjs.map +0 -1
  41. package/index.d.ts +0 -4
  42. /package/{entities/index.d.ts → types/smallpearl-ngx-helper-entities.d.ts} +0 -0
  43. /package/{entity-field/index.d.ts → types/smallpearl-ngx-helper-entity-field.d.ts} +0 -0
  44. /package/{forms/index.d.ts → types/smallpearl-ngx-helper-forms.d.ts} +0 -0
  45. /package/{hover-dropdown/index.d.ts → types/smallpearl-ngx-helper-hover-dropdown.d.ts} +0 -0
  46. /package/{locale/index.d.ts → types/smallpearl-ngx-helper-locale.d.ts} +0 -0
  47. /package/{mat-busy-wheel/index.d.ts → types/smallpearl-ngx-helper-mat-busy-wheel.d.ts} +0 -0
  48. /package/{mat-context-menu/index.d.ts → types/smallpearl-ngx-helper-mat-context-menu.d.ts} +0 -0
  49. /package/{mat-entity-crud/index.d.ts → types/smallpearl-ngx-helper-mat-entity-crud.d.ts} +0 -0
  50. /package/{mat-entity-list/index.d.ts → types/smallpearl-ngx-helper-mat-entity-list.d.ts} +0 -0
  51. /package/{mat-file-input/index.d.ts → types/smallpearl-ngx-helper-mat-file-input.d.ts} +0 -0
  52. /package/{mat-form-error/index.d.ts → types/smallpearl-ngx-helper-mat-form-error.d.ts} +0 -0
  53. /package/{mat-select-infinite-scroll/index.d.ts → types/smallpearl-ngx-helper-mat-select-infinite-scroll.d.ts} +0 -0
  54. /package/{mat-side-menu-layout/index.d.ts → types/smallpearl-ngx-helper-mat-side-menu-layout.d.ts} +0 -0
  55. /package/{mat-tel-input/index.d.ts → types/smallpearl-ngx-helper-mat-tel-input.d.ts} +0 -0
  56. /package/{sideload/index.d.ts → types/smallpearl-ngx-helper-sideload.d.ts} +0 -0
  57. /package/{stationary-with-line-items/index.d.ts → types/smallpearl-ngx-helper-stationary-with-line-items.d.ts} +0 -0
@@ -90,10 +90,10 @@ class LayoutService {
90
90
  get previousUrl() {
91
91
  return this._previousUrl;
92
92
  }
93
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LayoutService, deps: [{ token: i1.BreakpointObserver }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
94
- /** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LayoutService, providedIn: 'any' });
93
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: LayoutService, deps: [{ token: i1.BreakpointObserver }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
94
+ /** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: LayoutService, providedIn: 'any' });
95
95
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LayoutService, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: LayoutService, decorators: [{
97
97
  type: Injectable,
98
98
  args: [{ providedIn: 'any' }]
99
99
  }], ctorParameters: () => [{ type: i1.BreakpointObserver }, { type: i1$1.Router }] });
@@ -212,60 +212,65 @@ class SPMatMenuListItemComponent {
212
212
  this.cdr.detectChanges();
213
213
  }
214
214
  }
215
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuListItemComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: i2.MatDialog }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
216
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SPMatMenuListItemComponent, isStandalone: false, selector: "ngx-mat-menu-list-item", inputs: { highlighted: "highlighted", item: "item", depth: "depth", parent: "parent", showIcon: "showIcon" }, host: { properties: { "attr.aria-expanded": "this.ariaExpanded" } }, viewQueries: [{ propertyName: "children", predicate: SPMatMenuListItemComponent, descendants: true }], ngImport: i0, template: `
217
- <a
218
- *ngIf="item.children || item.route; else divider"
219
- mat-list-item
220
- [ngStyle]="{ 'padding-left': depth * 8 + 'px' }"
221
- [disabled]="item.disabled"
222
- [attr.routerLink]="!item.children ? item.route : null"
223
- class="menu-list-item pl-8"
215
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuListItemComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: i2.MatDialog }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
216
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: SPMatMenuListItemComponent, isStandalone: false, selector: "ngx-mat-menu-list-item", inputs: { highlighted: "highlighted", item: "item", depth: "depth", parent: "parent", showIcon: "showIcon" }, host: { properties: { "attr.aria-expanded": "this.ariaExpanded" } }, viewQueries: [{ propertyName: "children", predicate: SPMatMenuListItemComponent, descendants: true }], ngImport: i0, template: `
217
+ @if (item.children || item.route) {
218
+ <a
219
+ mat-list-item
220
+ [ngStyle]="{ 'padding-left': depth * 8 + 'px' }"
221
+ [disabled]="item.disabled"
222
+ [attr.routerLink]="!item.children ? item.route : null"
223
+ class="menu-list-item pl-8"
224
224
  [ngClass]="{
225
225
  highlighted: this.highlighted,
226
226
  'not-highlighted': !this.highlighted,
227
227
  }"
228
- routerLinkActive="is-active"
229
- (click)="onItemSelected($event, item)"
230
- >
231
- <mat-icon
232
- *ngIf="
233
- (item.icon && showIcon && !item.iconType) || item.iconType == 'mat'
234
- "
235
- class="menu-item-color"
236
- matListItemIcon
237
- >{{ item.icon }}</mat-icon
238
- >
239
- <i
240
- *ngIf="item.icon && showIcon && item.iconType != 'mat'"
241
- [class]="'menu-item-color ' + item.icon"
242
- ></i>
243
- <span class="menu-item-color">{{ item.text }}</span>
244
- <span class="twistie-separator"></span>
245
- <span *ngIf="item.children && item.children.length">
246
- <mat-icon
247
- class="menu-twistie menu-item-color"
248
- [@indicatorRotate]="expanded ? 'expanded' : 'collapsed'"
228
+ routerLinkActive="is-active"
229
+ (click)="onItemSelected($event, item)"
249
230
  >
250
- expand_more
251
- </mat-icon>
252
- </span>
253
- </a>
254
- <div>
255
- <ngx-mat-menu-list-item
256
- class="menu-child"
257
- [showIcon]="showIcon"
258
- [ngStyle]="{ display: expanded ? 'inherit' : 'none' }"
259
- *ngFor="let child of item.children"
260
- [item]="child"
261
- [parent]="this"
262
- [depth]="depth + 1"
263
- ></ngx-mat-menu-list-item>
264
- </div>
265
- <ng-template #divider>
266
- <div class="menu-divider"></div>
267
- </ng-template>
268
- `, isInline: true, styles: [".menu-list-item{--mat-list-list-item-one-line-container-height: 44px;border-radius:0!important;margin-right:8px!important}.pl-8{padding-left:8px}.twistie-separator{flex:1 1 0%}.routeIcon{margin-right:10px;font-size:16pt}.menu-item-text{font-size:10pt}.menu-twistie{font-size:10pt;height:12px;width:12px}mat-icon{margin-left:8px!important;margin-right:8px!important}.menu-item-color{background-color:var(--sp-mat-menu-menu-item-bg-color)!important;color:var(--sp-mat-menu-menu-item-fg-color)!important}.highlighted,.highlighted .menu-item-color{background-color:var(--sp-mat-menu-highlighted-menu-item-bg-color)!important;color:var(--sp-mat-menu-highlighted-menu-item-fg-color)!important}.mdc-list-item{padding-right:0}.menu-divider{height:1em}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i5.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: SPMatMenuListItemComponent, selector: "ngx-mat-menu-list-item", inputs: ["highlighted", "item", "depth", "parent", "showIcon"] }], animations: [
231
+ @if (
232
+ (item.icon && showIcon && !item.iconType) || item.iconType == 'mat'
233
+ ) {
234
+ <mat-icon
235
+ class="menu-item-color"
236
+ matListItemIcon
237
+ >{{ item.icon }}</mat-icon
238
+ >
239
+ }
240
+ @if (item.icon && showIcon && item.iconType != 'mat') {
241
+ <i
242
+ [class]="'menu-item-color ' + item.icon"
243
+ ></i>
244
+ }
245
+ <span class="menu-item-color">{{ item.text }}</span>
246
+ <span class="twistie-separator"></span>
247
+ @if (item.children && item.children.length) {
248
+ <span>
249
+ <mat-icon
250
+ class="menu-twistie menu-item-color"
251
+ [@indicatorRotate]="expanded ? 'expanded' : 'collapsed'"
252
+ >
253
+ expand_more
254
+ </mat-icon>
255
+ </span>
256
+ }
257
+ </a>
258
+ } @else {
259
+ <div class="menu-divider"></div>
260
+ }
261
+ <div>
262
+ @for (child of item.children; track child) {
263
+ <ngx-mat-menu-list-item
264
+ class="menu-child"
265
+ [showIcon]="showIcon"
266
+ [ngStyle]="{ display: expanded ? 'inherit' : 'none' }"
267
+ [item]="child"
268
+ [parent]="this"
269
+ [depth]="depth + 1"
270
+ ></ngx-mat-menu-list-item>
271
+ }
272
+ </div>
273
+ `, isInline: true, styles: [".menu-list-item{--mat-list-list-item-one-line-container-height: 44px;border-radius:0!important;margin-right:8px!important}.pl-8{padding-left:8px}.twistie-separator{flex:1 1 0%}.routeIcon{margin-right:10px;font-size:16pt}.menu-item-text{font-size:10pt}.menu-twistie{font-size:10pt;height:12px;width:12px}mat-icon{margin-left:8px!important;margin-right:8px!important}.menu-item-color{background-color:var(--sp-mat-menu-menu-item-bg-color)!important;color:var(--sp-mat-menu-menu-item-fg-color)!important}.highlighted,.highlighted .menu-item-color{background-color:var(--sp-mat-menu-highlighted-menu-item-bg-color)!important;color:var(--sp-mat-menu-highlighted-menu-item-fg-color)!important}.mdc-list-item{padding-right:0}.menu-divider{height:1em}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i5.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: SPMatMenuListItemComponent, selector: "ngx-mat-menu-list-item", inputs: ["highlighted", "item", "depth", "parent", "showIcon"] }], animations: [
269
274
  trigger('indicatorRotate', [
270
275
  state('collapsed', style({ transform: 'rotate(0deg)' })),
271
276
  state('expanded', style({ transform: 'rotate(180deg)' })),
@@ -273,61 +278,66 @@ class SPMatMenuListItemComponent {
273
278
  ]),
274
279
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
275
280
  }
276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuListItemComponent, decorators: [{
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuListItemComponent, decorators: [{
277
282
  type: Component,
278
283
  args: [{ selector: 'ngx-mat-menu-list-item', template: `
279
- <a
280
- *ngIf="item.children || item.route; else divider"
281
- mat-list-item
282
- [ngStyle]="{ 'padding-left': depth * 8 + 'px' }"
283
- [disabled]="item.disabled"
284
- [attr.routerLink]="!item.children ? item.route : null"
285
- class="menu-list-item pl-8"
284
+ @if (item.children || item.route) {
285
+ <a
286
+ mat-list-item
287
+ [ngStyle]="{ 'padding-left': depth * 8 + 'px' }"
288
+ [disabled]="item.disabled"
289
+ [attr.routerLink]="!item.children ? item.route : null"
290
+ class="menu-list-item pl-8"
286
291
  [ngClass]="{
287
292
  highlighted: this.highlighted,
288
293
  'not-highlighted': !this.highlighted,
289
294
  }"
290
- routerLinkActive="is-active"
291
- (click)="onItemSelected($event, item)"
292
- >
293
- <mat-icon
294
- *ngIf="
295
- (item.icon && showIcon && !item.iconType) || item.iconType == 'mat'
296
- "
297
- class="menu-item-color"
298
- matListItemIcon
299
- >{{ item.icon }}</mat-icon
300
- >
301
- <i
302
- *ngIf="item.icon && showIcon && item.iconType != 'mat'"
303
- [class]="'menu-item-color ' + item.icon"
304
- ></i>
305
- <span class="menu-item-color">{{ item.text }}</span>
306
- <span class="twistie-separator"></span>
307
- <span *ngIf="item.children && item.children.length">
308
- <mat-icon
309
- class="menu-twistie menu-item-color"
310
- [@indicatorRotate]="expanded ? 'expanded' : 'collapsed'"
295
+ routerLinkActive="is-active"
296
+ (click)="onItemSelected($event, item)"
311
297
  >
312
- expand_more
313
- </mat-icon>
314
- </span>
315
- </a>
316
- <div>
317
- <ngx-mat-menu-list-item
318
- class="menu-child"
319
- [showIcon]="showIcon"
320
- [ngStyle]="{ display: expanded ? 'inherit' : 'none' }"
321
- *ngFor="let child of item.children"
322
- [item]="child"
323
- [parent]="this"
324
- [depth]="depth + 1"
325
- ></ngx-mat-menu-list-item>
326
- </div>
327
- <ng-template #divider>
328
- <div class="menu-divider"></div>
329
- </ng-template>
330
- `, changeDetection: ChangeDetectionStrategy.OnPush, animations: [
298
+ @if (
299
+ (item.icon && showIcon && !item.iconType) || item.iconType == 'mat'
300
+ ) {
301
+ <mat-icon
302
+ class="menu-item-color"
303
+ matListItemIcon
304
+ >{{ item.icon }}</mat-icon
305
+ >
306
+ }
307
+ @if (item.icon && showIcon && item.iconType != 'mat') {
308
+ <i
309
+ [class]="'menu-item-color ' + item.icon"
310
+ ></i>
311
+ }
312
+ <span class="menu-item-color">{{ item.text }}</span>
313
+ <span class="twistie-separator"></span>
314
+ @if (item.children && item.children.length) {
315
+ <span>
316
+ <mat-icon
317
+ class="menu-twistie menu-item-color"
318
+ [@indicatorRotate]="expanded ? 'expanded' : 'collapsed'"
319
+ >
320
+ expand_more
321
+ </mat-icon>
322
+ </span>
323
+ }
324
+ </a>
325
+ } @else {
326
+ <div class="menu-divider"></div>
327
+ }
328
+ <div>
329
+ @for (child of item.children; track child) {
330
+ <ngx-mat-menu-list-item
331
+ class="menu-child"
332
+ [showIcon]="showIcon"
333
+ [ngStyle]="{ display: expanded ? 'inherit' : 'none' }"
334
+ [item]="child"
335
+ [parent]="this"
336
+ [depth]="depth + 1"
337
+ ></ngx-mat-menu-list-item>
338
+ }
339
+ </div>
340
+ `, changeDetection: ChangeDetectionStrategy.OnPush, animations: [
331
341
  trigger('indicatorRotate', [
332
342
  state('collapsed', style({ transform: 'rotate(0deg)' })),
333
343
  state('expanded', style({ transform: 'rotate(180deg)' })),
@@ -570,68 +580,84 @@ class SPMatMenuPaneComponent {
570
580
  }
571
581
  this._curHighlitedMenuItemComp = menuItemComp;
572
582
  }
573
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuPaneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: LayoutService }, { token: i1$1.Router }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
574
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: SPMatMenuPaneComponent, isStandalone: false, selector: "ngx-mat-menu-pane", inputs: { menuTitle: "menuTitle", showBackButton: "showBackButton", defaultBackButtonHref: "defaultBackButtonHref", backButtonText: "backButtonText", menuItems: "menuItems", brandingText: "brandingText", brandingImage: "brandingImage", matSideNav: "matSideNav", appVersion: "appVersion", menuPaneFooterContent: "menuPaneFooterContent", showIcons: "showIcons", baseUrl: "baseUrl" }, viewQueries: [{ propertyName: "menuItemComps", predicate: SPMatMenuListItemComponent, descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `
583
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuPaneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: LayoutService }, { token: i1$1.Router }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
584
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: SPMatMenuPaneComponent, isStandalone: false, selector: "ngx-mat-menu-pane", inputs: { menuTitle: "menuTitle", showBackButton: "showBackButton", defaultBackButtonHref: "defaultBackButtonHref", backButtonText: "backButtonText", menuItems: "menuItems", brandingText: "brandingText", brandingImage: "brandingImage", matSideNav: "matSideNav", appVersion: "appVersion", menuPaneFooterContent: "menuPaneFooterContent", showIcons: "showIcons", baseUrl: "baseUrl" }, viewQueries: [{ propertyName: "menuItemComps", predicate: SPMatMenuListItemComponent, descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `
575
585
  <div class="menu-pane-wrapper">
576
586
  <div class="sidenav-branding mat-toolbar-single-row">
577
587
  <div class="branding branding-logo">
578
- <img *ngIf="brandingImage" [src]="brandingImage" />
588
+ @if (brandingImage) {
589
+ <img [src]="brandingImage" />
590
+ }
579
591
  </div>
580
592
  <h4 class="mat-typography branding branding-text">
581
593
  {{ brandingText }}
582
594
  </h4>
583
595
  </div>
584
596
  <div class="sidenav-menu">
585
- <div *ngIf="menuTitle" class="mat-body title">{{ menuTitle }}</div>
597
+ @if (menuTitle) {
598
+ <div class="mat-body title">{{ menuTitle }}</div>
599
+ }
586
600
  <mat-nav-list>
587
- <ngx-mat-menu-list-item
588
- *ngIf="backButtonNavItem"
589
- [item]="backButtonNavItem"
590
- ></ngx-mat-menu-list-item>
591
- <ngx-mat-menu-list-item
592
- *ngFor="let item of menuItems"
593
- [item]="item"
594
- [showIcon]="showIcons"
595
- ></ngx-mat-menu-list-item>
601
+ @if (backButtonNavItem) {
602
+ <ngx-mat-menu-list-item
603
+ [item]="backButtonNavItem"
604
+ ></ngx-mat-menu-list-item>
605
+ }
606
+ @for (item of menuItems; track item) {
607
+ <ngx-mat-menu-list-item
608
+ [item]="item"
609
+ [showIcon]="showIcons"
610
+ ></ngx-mat-menu-list-item>
611
+ }
596
612
  </mat-nav-list>
597
613
  </div>
598
- <div class="sidenav-version" *ngIf="menuPaneFooterContent">
599
- <ng-container *ngTemplateOutlet="menuPaneFooterContent"> </ng-container>
600
- </div>
614
+ @if (menuPaneFooterContent) {
615
+ <div class="sidenav-version">
616
+ <ng-container *ngTemplateOutlet="menuPaneFooterContent"> </ng-container>
617
+ </div>
618
+ }
601
619
  </div>
602
- `, isInline: true, styles: [".app-is-mobile .app-toolbar{position:fixed;z-index:2}h1.app-name{margin:auto auto auto 0}.sidenav-container{flex:1}.app-is-mobile .sidenav-container{display:inherit}.spacer{flex:1 1 auto}.menu-pane-wrapper{display:flex;flex-direction:column;height:100%}.sidenav-branding{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 12px}.sidenav-menu{flex:1;overflow-x:hidden}.sidenav-menu .title{text-align:center;padding:.5em .1em 0;font-weight:bolder;font-size:1.1em}.sidenav-version{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;border-top:1px solid var(--sp-mat-menu-border-color);font-size:smaller}.sidenav-version a{color:var(--vendor-foreground-color)!important}.branding{height:100%;display:flex;flex-direction:column;justify-content:center}.branding-logo img{width:32px;height:32px}.branding-text{overflow:auto;text-overflow:ellipsis;white-space:nowrap;font-size:1.1em;font-weight:bolder;margin:0 4px}.sidenav-content{padding:12px;height:calc(100% - 56px);overflow:auto}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: SPMatMenuListItemComponent, selector: "ngx-mat-menu-list-item", inputs: ["highlighted", "item", "depth", "parent", "showIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
620
+ `, isInline: true, styles: [".app-is-mobile .app-toolbar{position:fixed;z-index:2}h1.app-name{margin:auto auto auto 0}.sidenav-container{flex:1}.app-is-mobile .sidenav-container{display:inherit}.spacer{flex:1 1 auto}.menu-pane-wrapper{display:flex;flex-direction:column;height:100%}.sidenav-branding{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 12px}.sidenav-menu{flex:1;overflow-x:hidden}.sidenav-menu .title{text-align:center;padding:.5em .1em 0;font-weight:bolder;font-size:1.1em}.sidenav-version{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;border-top:1px solid var(--sp-mat-menu-border-color);font-size:smaller}.sidenav-version a{color:var(--vendor-foreground-color)!important}.branding{height:100%;display:flex;flex-direction:column;justify-content:center}.branding-logo img{width:32px;height:32px}.branding-text{overflow:auto;text-overflow:ellipsis;white-space:nowrap;font-size:1.1em;font-weight:bolder;margin:0 4px}.sidenav-content{padding:12px;height:calc(100% - 56px);overflow:auto}\n"], dependencies: [{ kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: SPMatMenuListItemComponent, selector: "ngx-mat-menu-list-item", inputs: ["highlighted", "item", "depth", "parent", "showIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
603
621
  }
604
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuPaneComponent, decorators: [{
622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuPaneComponent, decorators: [{
605
623
  type: Component,
606
624
  args: [{ selector: 'ngx-mat-menu-pane', template: `
607
625
  <div class="menu-pane-wrapper">
608
626
  <div class="sidenav-branding mat-toolbar-single-row">
609
627
  <div class="branding branding-logo">
610
- <img *ngIf="brandingImage" [src]="brandingImage" />
628
+ @if (brandingImage) {
629
+ <img [src]="brandingImage" />
630
+ }
611
631
  </div>
612
632
  <h4 class="mat-typography branding branding-text">
613
633
  {{ brandingText }}
614
634
  </h4>
615
635
  </div>
616
636
  <div class="sidenav-menu">
617
- <div *ngIf="menuTitle" class="mat-body title">{{ menuTitle }}</div>
637
+ @if (menuTitle) {
638
+ <div class="mat-body title">{{ menuTitle }}</div>
639
+ }
618
640
  <mat-nav-list>
619
- <ngx-mat-menu-list-item
620
- *ngIf="backButtonNavItem"
621
- [item]="backButtonNavItem"
622
- ></ngx-mat-menu-list-item>
623
- <ngx-mat-menu-list-item
624
- *ngFor="let item of menuItems"
625
- [item]="item"
626
- [showIcon]="showIcons"
627
- ></ngx-mat-menu-list-item>
641
+ @if (backButtonNavItem) {
642
+ <ngx-mat-menu-list-item
643
+ [item]="backButtonNavItem"
644
+ ></ngx-mat-menu-list-item>
645
+ }
646
+ @for (item of menuItems; track item) {
647
+ <ngx-mat-menu-list-item
648
+ [item]="item"
649
+ [showIcon]="showIcons"
650
+ ></ngx-mat-menu-list-item>
651
+ }
628
652
  </mat-nav-list>
629
653
  </div>
630
- <div class="sidenav-version" *ngIf="menuPaneFooterContent">
631
- <ng-container *ngTemplateOutlet="menuPaneFooterContent"> </ng-container>
632
- </div>
654
+ @if (menuPaneFooterContent) {
655
+ <div class="sidenav-version">
656
+ <ng-container *ngTemplateOutlet="menuPaneFooterContent"> </ng-container>
657
+ </div>
658
+ }
633
659
  </div>
634
- `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [".app-is-mobile .app-toolbar{position:fixed;z-index:2}h1.app-name{margin:auto auto auto 0}.sidenav-container{flex:1}.app-is-mobile .sidenav-container{display:inherit}.spacer{flex:1 1 auto}.menu-pane-wrapper{display:flex;flex-direction:column;height:100%}.sidenav-branding{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 12px}.sidenav-menu{flex:1;overflow-x:hidden}.sidenav-menu .title{text-align:center;padding:.5em .1em 0;font-weight:bolder;font-size:1.1em}.sidenav-version{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;border-top:1px solid var(--sp-mat-menu-border-color);font-size:smaller}.sidenav-version a{color:var(--vendor-foreground-color)!important}.branding{height:100%;display:flex;flex-direction:column;justify-content:center}.branding-logo img{width:32px;height:32px}.branding-text{overflow:auto;text-overflow:ellipsis;white-space:nowrap;font-size:1.1em;font-weight:bolder;margin:0 4px}.sidenav-content{padding:12px;height:calc(100% - 56px);overflow:auto}\n"] }]
660
+ `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [".app-is-mobile .app-toolbar{position:fixed;z-index:2}h1.app-name{margin:auto auto auto 0}.sidenav-container{flex:1}.app-is-mobile .sidenav-container{display:inherit}.spacer{flex:1 1 auto}.menu-pane-wrapper{display:flex;flex-direction:column;height:100%}.sidenav-branding{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 12px}.sidenav-menu{flex:1;overflow-x:hidden}.sidenav-menu .title{text-align:center;padding:.5em .1em 0;font-weight:bolder;font-size:1.1em}.sidenav-version{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;border-top:1px solid var(--sp-mat-menu-border-color);font-size:smaller}.sidenav-version a{color:var(--vendor-foreground-color)!important}.branding{height:100%;display:flex;flex-direction:column;justify-content:center}.branding-logo img{width:32px;height:32px}.branding-text{overflow:auto;text-overflow:ellipsis;white-space:nowrap;font-size:1.1em;font-weight:bolder;margin:0 4px}.sidenav-content{padding:12px;height:calc(100% - 56px);overflow:auto}\n"] }]
635
661
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: LayoutService }, { type: i1$1.Router }, { type: i0.Injector }], propDecorators: { menuTitle: [{
636
662
  type: Input
637
663
  }], showBackButton: [{
@@ -711,8 +737,8 @@ class SPMatMenuLayoutComponent {
711
737
  this.menuNav.toggle();
712
738
  }
713
739
  }
714
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuLayoutComponent, deps: [{ token: LayoutService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
715
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SPMatMenuLayoutComponent, isStandalone: false, selector: "sp-mat-menu-layout", inputs: { baseUrl: "baseUrl", showBackButton: "showBackButton", defaultBackButtonHref: "defaultBackButtonHref", backButtonText: "backButtonText", brandingImage: "brandingImage", brandingText: "brandingText", appTitle: "appTitle", menuTitle: "menuTitle", menuItems: "menuItems", menuPaneFooterContent: "menuPaneFooterContent", toolbarEndContent: "toolbarEndContent", infoPaneContent: "infoPaneContent", toolbarTitleContent: "toolbarTitleContent", infoPaneMinWidth: "infoPaneMinWidth", infoPaneMaxWidth: "infoPaneMaxWidth", contentContainerClass: "contentContainerClass", showIcons: "showIcons" }, viewQueries: [{ propertyName: "menuNav", first: true, predicate: ["menuNav"], descendants: true }, { propertyName: "infoPane", first: true, predicate: ["infoPane"], descendants: true }], ngImport: i0, template: `
740
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuLayoutComponent, deps: [{ token: LayoutService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
741
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: SPMatMenuLayoutComponent, isStandalone: false, selector: "sp-mat-menu-layout", inputs: { baseUrl: "baseUrl", showBackButton: "showBackButton", defaultBackButtonHref: "defaultBackButtonHref", backButtonText: "backButtonText", brandingImage: "brandingImage", brandingText: "brandingText", appTitle: "appTitle", menuTitle: "menuTitle", menuItems: "menuItems", menuPaneFooterContent: "menuPaneFooterContent", toolbarEndContent: "toolbarEndContent", infoPaneContent: "infoPaneContent", toolbarTitleContent: "toolbarTitleContent", infoPaneMinWidth: "infoPaneMinWidth", infoPaneMaxWidth: "infoPaneMaxWidth", contentContainerClass: "contentContainerClass", showIcons: "showIcons" }, viewQueries: [{ propertyName: "menuNav", first: true, predicate: ["menuNav"], descendants: true }, { propertyName: "infoPane", first: true, predicate: ["infoPane"], descendants: true }], ngImport: i0, template: `
716
742
  <mat-sidenav-container class="layout-container">
717
743
  <mat-sidenav
718
744
  class="layout-menu-pane"
@@ -776,7 +802,7 @@ class SPMatMenuLayoutComponent {
776
802
  </mat-sidenav-container>
777
803
  `, isInline: true, styles: [".layout-menu-pane{background-color:var(--sp-mat-menu-bg-color)!important;color:var(--sp-mat-menu-fg-color)!important}.layout-container{position:absolute;inset:0}.layout-menu-container{height:100%;max-width:var(--sp-mat-menu-sidemenu-max-width, 50%);min-width:var(--sp-mat-menu-sidemenu-min-width, 250px);text-wrap:nowrap;overflow-x:scroll;overflow-y:scroll}.layout-content{height:100vh;display:flex;flex-direction:column;overflow-x:clip}.layout-content-toolbar{border-bottom:1px solid var(--sp-mat-menu-toolbar-border-color);flex-grow:0;background-color:var(--sp-mat-menu-toolbar-bg-color);color:var(--sp-mat-menu-toolbar-fg-color);padding:0;min-height:var(--mat-toolbar-standard-height);max-height:var(--mat-toolbar-standard-height)}.layout-content-content{flex-grow:1;overflow:hidden}.h-100{height:100%}.spacer{flex:1 1 auto}\n"], dependencies: [{ kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i4$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i4$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i4$1.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i5$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: SPMatMenuPaneComponent, selector: "ngx-mat-menu-pane", inputs: ["menuTitle", "showBackButton", "defaultBackButtonHref", "backButtonText", "menuItems", "brandingText", "brandingImage", "matSideNav", "appVersion", "menuPaneFooterContent", "showIcons", "baseUrl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
778
804
  }
779
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuLayoutComponent, decorators: [{
805
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuLayoutComponent, decorators: [{
780
806
  type: Component,
781
807
  args: [{ selector: 'sp-mat-menu-layout', template: `
782
808
  <mat-sidenav-container class="layout-container">
@@ -884,8 +910,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
884
910
  }] } });
885
911
 
886
912
  class SPMatMenuLayoutModule {
887
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
888
- /** @nocollapse */ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuLayoutModule, declarations: [SPMatMenuPaneComponent, SPMatMenuListItemComponent, SPMatMenuLayoutComponent], imports: [CommonModule,
913
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
914
+ /** @nocollapse */ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuLayoutModule, declarations: [SPMatMenuPaneComponent, SPMatMenuListItemComponent, SPMatMenuLayoutComponent], imports: [CommonModule,
889
915
  RouterOutlet,
890
916
  MatSidenavModule,
891
917
  MatToolbarModule,
@@ -894,7 +920,7 @@ class SPMatMenuLayoutModule {
894
920
  MatMenuModule,
895
921
  MatDialogModule,
896
922
  MatListModule], exports: [SPMatMenuPaneComponent, SPMatMenuListItemComponent, SPMatMenuLayoutComponent] });
897
- /** @nocollapse */ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuLayoutModule, imports: [CommonModule,
923
+ /** @nocollapse */ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuLayoutModule, imports: [CommonModule,
898
924
  MatSidenavModule,
899
925
  MatToolbarModule,
900
926
  MatIconModule,
@@ -903,7 +929,7 @@ class SPMatMenuLayoutModule {
903
929
  MatDialogModule,
904
930
  MatListModule] });
905
931
  }
906
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SPMatMenuLayoutModule, decorators: [{
932
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: SPMatMenuLayoutModule, decorators: [{
907
933
  type: NgModule,
908
934
  args: [{
909
935
  declarations: [SPMatMenuPaneComponent, SPMatMenuListItemComponent, SPMatMenuLayoutComponent],