@smartsoft001/angular 2.172.0 → 2.174.0

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.
@@ -2362,6 +2362,15 @@ class AccordionBaseComponent {
2362
2362
  ];
2363
2363
  }, /* @ts-ignore */
2364
2364
  ...(ngDevMode ? [{ debugName: "sharedContainerClasses" }] : /* istanbul ignore next */ []));
2365
+ /**
2366
+ * Applies `options.open` as the initial state, once. Later toggles and a
2367
+ * bound `[(show)]` are left alone.
2368
+ */
2369
+ ngOnInit() {
2370
+ if (this.options()?.open && !this.show()) {
2371
+ this.show.set(true);
2372
+ }
2373
+ }
2365
2374
  toggle() {
2366
2375
  if (this.options()?.disabled)
2367
2376
  return;
@@ -3280,11 +3289,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
3280
3289
 
3281
3290
  class AvatarStandardComponent extends AvatarBaseComponent {
3282
3291
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AvatarStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3283
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AvatarStandardComponent, isStandalone: true, selector: "smart-avatar-standard", usesInheritance: true, ngImport: i0, template: "<span\n [class]=\"cssClass()\"\n [attr.data-size]=\"size()\"\n [attr.data-shape]=\"shape()\"\n>\n @if (isGroup()) {\n @for (item of group(); track item.id) {\n <span class=\"smart-avatar-group-item\">\n @if (item.imageUrl) {\n <img [src]=\"item.imageUrl\" alt=\"\" />\n } @else {\n <span class=\"smart-avatar-initials\">{{ item.initials }}</span>\n }\n </span>\n }\n } @else {\n @if (imageUrl()) {\n <img [src]=\"imageUrl()\" alt=\"\" />\n } @else if (initials()) {\n <span class=\"smart-avatar-initials\">{{ initials() }}</span>\n } @else {\n <span aria-hidden=\"true\" class=\"smart-avatar-placeholder\">\u00B7</span>\n }\n }\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3292
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AvatarStandardComponent, isStandalone: true, selector: "smart-avatar-standard", usesInheritance: true, ngImport: i0, template: "<span\n [class]=\"cssClass()\"\n [attr.data-size]=\"size()\"\n [attr.data-shape]=\"shape()\"\n [attr.data-placeholder-type]=\"options()?.placeholderType ?? 'icon'\"\n [attr.data-stack-direction]=\"\n isGroup() ? (options()?.stackDirection ?? 'top-to-bottom') : null\n \"\n>\n @if (isGroup()) {\n @for (item of group(); track item.id) {\n <span class=\"smart-avatar-group-item\">\n @if (item.imageUrl) {\n <img [src]=\"item.imageUrl\" alt=\"\" />\n } @else {\n <span class=\"smart-avatar-initials\">{{ item.initials }}</span>\n }\n </span>\n }\n } @else {\n @if (imageUrl()) {\n <img [src]=\"imageUrl()\" alt=\"\" />\n } @else if (initials()) {\n <span class=\"smart-avatar-initials\">{{ initials() }}</span>\n } @else {\n <span aria-hidden=\"true\" class=\"smart-avatar-placeholder\">\u00B7</span>\n }\n }\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3284
3293
  }
3285
3294
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AvatarStandardComponent, decorators: [{
3286
3295
  type: Component,
3287
- args: [{ selector: 'smart-avatar-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n [class]=\"cssClass()\"\n [attr.data-size]=\"size()\"\n [attr.data-shape]=\"shape()\"\n>\n @if (isGroup()) {\n @for (item of group(); track item.id) {\n <span class=\"smart-avatar-group-item\">\n @if (item.imageUrl) {\n <img [src]=\"item.imageUrl\" alt=\"\" />\n } @else {\n <span class=\"smart-avatar-initials\">{{ item.initials }}</span>\n }\n </span>\n }\n } @else {\n @if (imageUrl()) {\n <img [src]=\"imageUrl()\" alt=\"\" />\n } @else if (initials()) {\n <span class=\"smart-avatar-initials\">{{ initials() }}</span>\n } @else {\n <span aria-hidden=\"true\" class=\"smart-avatar-placeholder\">\u00B7</span>\n }\n }\n</span>\n" }]
3296
+ args: [{ selector: 'smart-avatar-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n [class]=\"cssClass()\"\n [attr.data-size]=\"size()\"\n [attr.data-shape]=\"shape()\"\n [attr.data-placeholder-type]=\"options()?.placeholderType ?? 'icon'\"\n [attr.data-stack-direction]=\"\n isGroup() ? (options()?.stackDirection ?? 'top-to-bottom') : null\n \"\n>\n @if (isGroup()) {\n @for (item of group(); track item.id) {\n <span class=\"smart-avatar-group-item\">\n @if (item.imageUrl) {\n <img [src]=\"item.imageUrl\" alt=\"\" />\n } @else {\n <span class=\"smart-avatar-initials\">{{ item.initials }}</span>\n }\n </span>\n }\n } @else {\n @if (imageUrl()) {\n <img [src]=\"imageUrl()\" alt=\"\" />\n } @else if (initials()) {\n <span class=\"smart-avatar-initials\">{{ initials() }}</span>\n } @else {\n <span aria-hidden=\"true\" class=\"smart-avatar-placeholder\">\u00B7</span>\n }\n }\n</span>\n" }]
3288
3297
  }] });
3289
3298
 
3290
3299
  /** Pixel footprint per avatar size (`size-*`). */
@@ -3549,11 +3558,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
3549
3558
 
3550
3559
  class BadgeStandardComponent extends BadgeBaseComponent {
3551
3560
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: BadgeStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3552
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: BadgeStandardComponent, isStandalone: true, selector: "smart-badge-standard", usesInheritance: true, ngImport: i0, template: "<span\n [class]=\"cssClass()\"\n [attr.data-color]=\"color()\"\n [attr.data-size]=\"size()\"\n>\n @if (options()?.withDot) {\n <span aria-hidden=\"true\" class=\"smart-badge-dot\">&bull;</span>\n }\n <span class=\"smart-badge-text\">{{ text() }}</span>\n @if (options()?.withRemove) {\n <button type=\"button\" aria-label=\"Remove\" (click)=\"remove()\">\n &times;\n </button>\n }\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3561
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: BadgeStandardComponent, isStandalone: true, selector: "smart-badge-standard", usesInheritance: true, ngImport: i0, template: "<span\n [class]=\"cssClass()\"\n [attr.data-color]=\"color()\"\n [attr.data-size]=\"size()\"\n [attr.data-variant]=\"options()?.variant ?? 'soft'\"\n [attr.data-pill]=\"options()?.pill !== false\"\n>\n @if (options()?.withDot) {\n <span aria-hidden=\"true\" class=\"smart-badge-dot\">&bull;</span>\n }\n <span class=\"smart-badge-text\">{{ text() }}</span>\n @if (options()?.withRemove) {\n <button type=\"button\" aria-label=\"Remove\" (click)=\"remove()\">\n &times;\n </button>\n }\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3553
3562
  }
3554
3563
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: BadgeStandardComponent, decorators: [{
3555
3564
  type: Component,
3556
- args: [{ selector: 'smart-badge-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n [class]=\"cssClass()\"\n [attr.data-color]=\"color()\"\n [attr.data-size]=\"size()\"\n>\n @if (options()?.withDot) {\n <span aria-hidden=\"true\" class=\"smart-badge-dot\">&bull;</span>\n }\n <span class=\"smart-badge-text\">{{ text() }}</span>\n @if (options()?.withRemove) {\n <button type=\"button\" aria-label=\"Remove\" (click)=\"remove()\">\n &times;\n </button>\n }\n</span>\n" }]
3565
+ args: [{ selector: 'smart-badge-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n [class]=\"cssClass()\"\n [attr.data-color]=\"color()\"\n [attr.data-size]=\"size()\"\n [attr.data-variant]=\"options()?.variant ?? 'soft'\"\n [attr.data-pill]=\"options()?.pill !== false\"\n>\n @if (options()?.withDot) {\n <span aria-hidden=\"true\" class=\"smart-badge-dot\">&bull;</span>\n }\n <span class=\"smart-badge-text\">{{ text() }}</span>\n @if (options()?.withRemove) {\n <button type=\"button\" aria-label=\"Remove\" (click)=\"remove()\">\n &times;\n </button>\n }\n</span>\n" }]
3557
3566
  }] });
3558
3567
 
3559
3568
  const SOLID_CLASSES_BY_COLOR$1 = {
@@ -4640,6 +4649,17 @@ class CalendarBaseComponent {
4640
4649
  return eventDay === target;
4641
4650
  });
4642
4651
  }
4652
+ /**
4653
+ * Accessible name for a day cell: the date string, followed by the number of
4654
+ * events on that day when there are any (e.g. `"Sat Jan 10 2026, 2 events"`).
4655
+ */
4656
+ dayAriaLabel(day) {
4657
+ const label = day.toDateString();
4658
+ const count = this.eventsForDay(day).length;
4659
+ if (!count)
4660
+ return label;
4661
+ return `${label}, ${count} ${count === 1 ? 'event' : 'events'}`;
4662
+ }
4643
4663
  selectDay(date) {
4644
4664
  this.value.set(date);
4645
4665
  }
@@ -4689,13 +4709,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
4689
4709
  type: Directive
4690
4710
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], referenceDateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "referenceDate", required: false }] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: false }] }] } });
4691
4711
 
4712
+ /**
4713
+ * Barebones native-HTML month calendar rendered by `<smart-calendar>`.
4714
+ *
4715
+ * Days with events get `data-events="<count>"`, an aria-label that mentions
4716
+ * the count and, without `options.dayCellTpl`, an `aria-hidden` event marker.
4717
+ */
4692
4718
  class CalendarStandardComponent extends CalendarBaseComponent {
4693
4719
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CalendarStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
4694
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: CalendarStandardComponent, isStandalone: true, selector: "smart-calendar-standard", usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\">\n <div class=\"calendar\" [attr.data-view]=\"view()\">\n @if (showToolbar()) {\n <div class=\"toolbar\">\n <button type=\"button\" class=\"prev\" (click)=\"prevPeriod()\">Prev</button>\n <button type=\"button\" class=\"today-btn\" (click)=\"goToToday()\">\n Today\n </button>\n <button type=\"button\" class=\"next\" (click)=\"nextPeriod()\">Next</button>\n @if (options()?.toolbarActionsTpl) {\n <div class=\"toolbar-actions\">\n <ng-container [ngTemplateOutlet]=\"options()!.toolbarActionsTpl!\" />\n </div>\n }\n </div>\n }\n <div class=\"view-grid\">\n @for (week of monthGrid(); track $index) {\n <div class=\"week\">\n @for (cell of week; track cell.date.getTime()) {\n <button\n type=\"button\"\n class=\"day\"\n [attr.data-current-month]=\"cell.isCurrentMonth ? 'true' : null\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.aria-label]=\"cell.date.toDateString()\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4720
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: CalendarStandardComponent, isStandalone: true, selector: "smart-calendar-standard", usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\">\n <div class=\"calendar\" [attr.data-view]=\"view()\">\n @if (showToolbar()) {\n <div class=\"toolbar\">\n <button type=\"button\" class=\"prev\" (click)=\"prevPeriod()\">Prev</button>\n <button type=\"button\" class=\"today-btn\" (click)=\"goToToday()\">\n Today\n </button>\n <button type=\"button\" class=\"next\" (click)=\"nextPeriod()\">Next</button>\n @if (options()?.toolbarActionsTpl) {\n <div class=\"toolbar-actions\">\n <ng-container [ngTemplateOutlet]=\"options()!.toolbarActionsTpl!\" />\n </div>\n }\n </div>\n }\n <div class=\"view-grid\">\n @for (week of monthGrid(); track $index) {\n <div class=\"week\">\n @for (cell of week; track cell.date.getTime()) {\n <button\n type=\"button\"\n class=\"day\"\n [attr.data-current-month]=\"cell.isCurrentMonth ? 'true' : null\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.data-events]=\"eventsForDay(cell.date).length || null\"\n [attr.aria-label]=\"dayAriaLabel(cell.date)\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n @if (eventsForDay(cell.date).length) {\n <span\n class=\"smart-calendar-event\"\n data-role=\"event-dot\"\n aria-hidden=\"true\"\n ></span>\n }\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4695
4721
  }
4696
4722
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CalendarStandardComponent, decorators: [{
4697
4723
  type: Component,
4698
- args: [{ selector: 'smart-calendar-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\">\n <div class=\"calendar\" [attr.data-view]=\"view()\">\n @if (showToolbar()) {\n <div class=\"toolbar\">\n <button type=\"button\" class=\"prev\" (click)=\"prevPeriod()\">Prev</button>\n <button type=\"button\" class=\"today-btn\" (click)=\"goToToday()\">\n Today\n </button>\n <button type=\"button\" class=\"next\" (click)=\"nextPeriod()\">Next</button>\n @if (options()?.toolbarActionsTpl) {\n <div class=\"toolbar-actions\">\n <ng-container [ngTemplateOutlet]=\"options()!.toolbarActionsTpl!\" />\n </div>\n }\n </div>\n }\n <div class=\"view-grid\">\n @for (week of monthGrid(); track $index) {\n <div class=\"week\">\n @for (cell of week; track cell.date.getTime()) {\n <button\n type=\"button\"\n class=\"day\"\n [attr.data-current-month]=\"cell.isCurrentMonth ? 'true' : null\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.aria-label]=\"cell.date.toDateString()\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n</div>\n" }]
4724
+ args: [{ selector: 'smart-calendar-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\">\n <div class=\"calendar\" [attr.data-view]=\"view()\">\n @if (showToolbar()) {\n <div class=\"toolbar\">\n <button type=\"button\" class=\"prev\" (click)=\"prevPeriod()\">Prev</button>\n <button type=\"button\" class=\"today-btn\" (click)=\"goToToday()\">\n Today\n </button>\n <button type=\"button\" class=\"next\" (click)=\"nextPeriod()\">Next</button>\n @if (options()?.toolbarActionsTpl) {\n <div class=\"toolbar-actions\">\n <ng-container [ngTemplateOutlet]=\"options()!.toolbarActionsTpl!\" />\n </div>\n }\n </div>\n }\n <div class=\"view-grid\">\n @for (week of monthGrid(); track $index) {\n <div class=\"week\">\n @for (cell of week; track cell.date.getTime()) {\n <button\n type=\"button\"\n class=\"day\"\n [attr.data-current-month]=\"cell.isCurrentMonth ? 'true' : null\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.data-events]=\"eventsForDay(cell.date).length || null\"\n [attr.aria-label]=\"dayAriaLabel(cell.date)\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n @if (eventsForDay(cell.date).length) {\n <span\n class=\"smart-calendar-event\"\n data-role=\"event-dot\"\n aria-hidden=\"true\"\n ></span>\n }\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n</div>\n" }]
4699
4725
  }] });
4700
4726
 
4701
4727
  // Outer popover card — Preline `bg-dropdown border border-dropdown-line shadow-lg`.
@@ -4868,11 +4894,11 @@ class CalendarPresetComponent extends CalendarBaseComponent {
4868
4894
  return getCalendarPresetDayClasses(cell);
4869
4895
  }
4870
4896
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CalendarPresetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
4871
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: CalendarPresetComponent, isStandalone: true, selector: "smart-calendar-preset", inputs: { cssClass: { classPropertyName: "cssClass", publicName: "cssClass", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\">\n <div data-role=\"calendar\" [class]=\"containerClass\">\n <div [class]=\"innerClass\">\n @if (showToolbar()) {\n <div [class]=\"headerClass\">\n <div class=\"smart:col-span-1\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Previous\"\n (click)=\"prevPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n\n <div\n class=\"smart:col-span-3 smart:flex smart:justify-center smart:items-center smart:gap-x-1\"\n >\n <span data-role=\"month-label\" [class]=\"monthLabelClass\">{{\n monthLabel()\n }}</span>\n <span class=\"smart:text-gray-900 smart:dark:text-white\">/</span>\n <span data-role=\"year-label\" [class]=\"monthLabelClass\">{{\n yearLabel()\n }}</span>\n </div>\n\n <div class=\"smart:col-span-1 smart:flex smart:justify-end\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Next\"\n (click)=\"nextPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n </div>\n </div>\n }\n\n <div [class]=\"weekRowClass\">\n @for (label of weekdayLabels(); track label) {\n <span data-role=\"weekday\" [class]=\"weekdayClass\">{{ label }}</span>\n }\n </div>\n\n @for (week of monthGrid(); track $index) {\n <div [class]=\"dayRowClass\">\n @for (cell of week; track cell.date.getTime()) {\n <div>\n <button\n type=\"button\"\n data-role=\"day\"\n [class]=\"dayClasses(cell)\"\n [disabled]=\"!cell.isCurrentMonth\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.aria-label]=\"cell.date.toDateString()\"\n [attr.aria-pressed]=\"cell.isSelected\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n @if (eventsForDay(cell.date).length) {\n <span data-role=\"event-dot\" [class]=\"eventDotClass\"></span>\n }\n }\n </button>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4897
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: CalendarPresetComponent, isStandalone: true, selector: "smart-calendar-preset", inputs: { cssClass: { classPropertyName: "cssClass", publicName: "cssClass", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\">\n <div data-role=\"calendar\" [class]=\"containerClass\">\n <div [class]=\"innerClass\">\n @if (showToolbar()) {\n <div [class]=\"headerClass\">\n <div class=\"smart:col-span-1\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Previous\"\n (click)=\"prevPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n\n <div\n class=\"smart:col-span-3 smart:flex smart:justify-center smart:items-center smart:gap-x-1\"\n >\n <span data-role=\"month-label\" [class]=\"monthLabelClass\">{{\n monthLabel()\n }}</span>\n <span class=\"smart:text-gray-900 smart:dark:text-white\">/</span>\n <span data-role=\"year-label\" [class]=\"monthLabelClass\">{{\n yearLabel()\n }}</span>\n </div>\n\n <div class=\"smart:col-span-1 smart:flex smart:justify-end\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Next\"\n (click)=\"nextPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n </div>\n </div>\n }\n\n <div [class]=\"weekRowClass\">\n @for (label of weekdayLabels(); track label) {\n <span data-role=\"weekday\" [class]=\"weekdayClass\">{{ label }}</span>\n }\n </div>\n\n @for (week of monthGrid(); track $index) {\n <div [class]=\"dayRowClass\">\n @for (cell of week; track cell.date.getTime()) {\n <div>\n <button\n type=\"button\"\n data-role=\"day\"\n [class]=\"dayClasses(cell)\"\n [disabled]=\"!cell.isCurrentMonth\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.aria-label]=\"dayAriaLabel(cell.date)\"\n [attr.aria-pressed]=\"cell.isSelected\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n @if (eventsForDay(cell.date).length) {\n <span data-role=\"event-dot\" [class]=\"eventDotClass\"></span>\n }\n }\n </button>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4872
4898
  }
4873
4899
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CalendarPresetComponent, decorators: [{
4874
4900
  type: Component,
4875
- args: [{ selector: 'smart-calendar-preset', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\">\n <div data-role=\"calendar\" [class]=\"containerClass\">\n <div [class]=\"innerClass\">\n @if (showToolbar()) {\n <div [class]=\"headerClass\">\n <div class=\"smart:col-span-1\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Previous\"\n (click)=\"prevPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n\n <div\n class=\"smart:col-span-3 smart:flex smart:justify-center smart:items-center smart:gap-x-1\"\n >\n <span data-role=\"month-label\" [class]=\"monthLabelClass\">{{\n monthLabel()\n }}</span>\n <span class=\"smart:text-gray-900 smart:dark:text-white\">/</span>\n <span data-role=\"year-label\" [class]=\"monthLabelClass\">{{\n yearLabel()\n }}</span>\n </div>\n\n <div class=\"smart:col-span-1 smart:flex smart:justify-end\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Next\"\n (click)=\"nextPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n </div>\n </div>\n }\n\n <div [class]=\"weekRowClass\">\n @for (label of weekdayLabels(); track label) {\n <span data-role=\"weekday\" [class]=\"weekdayClass\">{{ label }}</span>\n }\n </div>\n\n @for (week of monthGrid(); track $index) {\n <div [class]=\"dayRowClass\">\n @for (cell of week; track cell.date.getTime()) {\n <div>\n <button\n type=\"button\"\n data-role=\"day\"\n [class]=\"dayClasses(cell)\"\n [disabled]=\"!cell.isCurrentMonth\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.aria-label]=\"cell.date.toDateString()\"\n [attr.aria-pressed]=\"cell.isSelected\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n @if (eventsForDay(cell.date).length) {\n <span data-role=\"event-dot\" [class]=\"eventDotClass\"></span>\n }\n }\n </button>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n" }]
4901
+ args: [{ selector: 'smart-calendar-preset', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\">\n <div data-role=\"calendar\" [class]=\"containerClass\">\n <div [class]=\"innerClass\">\n @if (showToolbar()) {\n <div [class]=\"headerClass\">\n <div class=\"smart:col-span-1\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Previous\"\n (click)=\"prevPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n\n <div\n class=\"smart:col-span-3 smart:flex smart:justify-center smart:items-center smart:gap-x-1\"\n >\n <span data-role=\"month-label\" [class]=\"monthLabelClass\">{{\n monthLabel()\n }}</span>\n <span class=\"smart:text-gray-900 smart:dark:text-white\">/</span>\n <span data-role=\"year-label\" [class]=\"monthLabelClass\">{{\n yearLabel()\n }}</span>\n </div>\n\n <div class=\"smart:col-span-1 smart:flex smart:justify-end\">\n <button\n type=\"button\"\n [class]=\"navButtonClass\"\n aria-label=\"Next\"\n (click)=\"nextPeriod()\"\n >\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n </div>\n </div>\n }\n\n <div [class]=\"weekRowClass\">\n @for (label of weekdayLabels(); track label) {\n <span data-role=\"weekday\" [class]=\"weekdayClass\">{{ label }}</span>\n }\n </div>\n\n @for (week of monthGrid(); track $index) {\n <div [class]=\"dayRowClass\">\n @for (cell of week; track cell.date.getTime()) {\n <div>\n <button\n type=\"button\"\n data-role=\"day\"\n [class]=\"dayClasses(cell)\"\n [disabled]=\"!cell.isCurrentMonth\"\n [attr.data-today]=\"cell.isToday ? 'true' : null\"\n [attr.data-selected]=\"cell.isSelected ? 'true' : null\"\n [attr.aria-label]=\"dayAriaLabel(cell.date)\"\n [attr.aria-pressed]=\"cell.isSelected\"\n (click)=\"selectDay(cell.date)\"\n >\n @if (options()?.dayCellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"options()!.dayCellTpl!\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell,\n events: eventsForDay(cell.date),\n }\"\n />\n } @else {\n {{ cell.date.getDate() }}\n @if (eventsForDay(cell.date).length) {\n <span data-role=\"event-dot\" [class]=\"eventDotClass\"></span>\n }\n }\n </button>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n" }]
4876
4902
  }], propDecorators: { cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cssClass", required: false }] }] } });
4877
4903
 
4878
4904
  class CalendarComponent {
@@ -10885,15 +10911,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
10885
10911
  class ExportBaseComponent {
10886
10912
  value = input(undefined, /* @ts-ignore */
10887
10913
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
10914
+ /** Name for the exported file, passed to `handler` as its second argument. */
10888
10915
  fileName = input(/* @ts-ignore */
10889
10916
  ...(ngDevMode ? [undefined, { debugName: "fileName" }] : /* istanbul ignore next */ []));
10917
+ /**
10918
+ * Called with `value` and `fileName` on click. Serialise and download the
10919
+ * data here. The `fileName` argument is optional, so `(value) => void`
10920
+ * handlers keep working.
10921
+ */
10890
10922
  handler = input.required(/* @ts-ignore */
10891
10923
  ...(ngDevMode ? [{ debugName: "handler" }] : /* istanbul ignore next */ []));
10924
+ /** Extra CSS classes applied to the rendered button. */
10892
10925
  cssClass = input('', { ...(ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {}), alias: 'class' });
10893
10926
  async onClick() {
10894
10927
  const value = this.value();
10895
10928
  if (value) {
10896
- this.handler()(value);
10929
+ this.handler()(value, this.fileName());
10897
10930
  return;
10898
10931
  }
10899
10932
  }
@@ -10910,8 +10943,13 @@ class ExportComponent extends ExportBaseComponent {
10910
10943
  };
10911
10944
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ExportComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
10912
10945
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: ExportComponent, isStandalone: true, selector: "smart-export", usesInheritance: true, ngImport: i0, template: `
10913
- <smart-button [options]="buttonOptions" [disabled]="!value()">
10946
+ <smart-button
10947
+ [options]="buttonOptions"
10948
+ [disabled]="!value()"
10949
+ [class]="cssClass()"
10950
+ >
10914
10951
  <svg
10952
+ aria-hidden="true"
10915
10953
  xmlns="http://www.w3.org/2000/svg"
10916
10954
  viewBox="0 0 20 20"
10917
10955
  fill="currentColor"
@@ -10924,6 +10962,7 @@ class ExportComponent extends ExportBaseComponent {
10924
10962
  d="M3.5 12.75a.75.75 0 0 0-1.5 0v2.5A2.75 2.75 0 0 0 4.75 18h10.5A2.75 2.75 0 0 0 18 15.25v-2.5a.75.75 0 0 0-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5Z"
10925
10963
  />
10926
10964
  </svg>
10965
+ <span class="smart:sr-only">Export</span>
10927
10966
  </smart-button>
10928
10967
  `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
10929
10968
  }
@@ -10932,8 +10971,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
10932
10971
  args: [{
10933
10972
  selector: 'smart-export',
10934
10973
  template: `
10935
- <smart-button [options]="buttonOptions" [disabled]="!value()">
10974
+ <smart-button
10975
+ [options]="buttonOptions"
10976
+ [disabled]="!value()"
10977
+ [class]="cssClass()"
10978
+ >
10936
10979
  <svg
10980
+ aria-hidden="true"
10937
10981
  xmlns="http://www.w3.org/2000/svg"
10938
10982
  viewBox="0 0 20 20"
10939
10983
  fill="currentColor"
@@ -10946,6 +10990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
10946
10990
  d="M3.5 12.75a.75.75 0 0 0-1.5 0v2.5A2.75 2.75 0 0 0 4.75 18h10.5A2.75 2.75 0 0 0 18 15.25v-2.5a.75.75 0 0 0-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5Z"
10947
10991
  />
10948
10992
  </svg>
10993
+ <span class="smart:sr-only">Export</span>
10949
10994
  </smart-button>
10950
10995
  `,
10951
10996
  imports: [ButtonComponent],
@@ -22128,6 +22173,12 @@ class PagingBaseComponent {
22128
22173
  ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
22129
22174
  totalItems = input(0, /* @ts-ignore */
22130
22175
  ...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
22176
+ /**
22177
+ * Layout variant: `'card-footer'` (results summary alongside the nav),
22178
+ * `'centered'` or `'simple'`. Purely visual, styled by the preset
22179
+ * (`PagingPresetComponent`); the standard component only exposes it as a
22180
+ * `data-variant` attribute on its `<nav>`. Forwarded by `<smart-paging>`.
22181
+ */
22131
22182
  variant = input('card-footer', /* @ts-ignore */
22132
22183
  ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
22133
22184
  cssClass = input('', { ...(ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {}), alias: 'class' });
@@ -22199,7 +22250,11 @@ class PagingStandardComponent extends PagingBaseComponent {
22199
22250
  ...(ngDevMode ? [{ debugName: "wrapperClasses" }] : /* istanbul ignore next */ []));
22200
22251
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PagingStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
22201
22252
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: PagingStandardComponent, isStandalone: true, selector: "smart-paging-standard", usesInheritance: true, ngImport: i0, template: `
22202
- <nav aria-label="Pagination" [class]="wrapperClasses()">
22253
+ <nav
22254
+ aria-label="Pagination"
22255
+ [class]="wrapperClasses()"
22256
+ [attr.data-variant]="variant()"
22257
+ >
22203
22258
  <button
22204
22259
  type="button"
22205
22260
  [disabled]="!canGoBack()"
@@ -22249,7 +22304,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
22249
22304
  args: [{
22250
22305
  selector: 'smart-paging-standard',
22251
22306
  template: `
22252
- <nav aria-label="Pagination" [class]="wrapperClasses()">
22307
+ <nav
22308
+ aria-label="Pagination"
22309
+ [class]="wrapperClasses()"
22310
+ [attr.data-variant]="variant()"
22311
+ >
22253
22312
  <button
22254
22313
  type="button"
22255
22314
  [disabled]="!canGoBack()"
@@ -22454,6 +22513,13 @@ class PagingComponent {
22454
22513
  ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
22455
22514
  totalItems = input(0, /* @ts-ignore */
22456
22515
  ...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
22516
+ /**
22517
+ * Layout variant forwarded to the rendered paging component. Purely
22518
+ * visual: styled by the preset, the standard only exposes it as
22519
+ * `data-variant`.
22520
+ */
22521
+ variant = input('card-footer', /* @ts-ignore */
22522
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
22457
22523
  cssClass = input('', { ...(ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {}), alias: 'class' });
22458
22524
  pageChange = output();
22459
22525
  constructor() {
@@ -22473,11 +22539,12 @@ class PagingComponent {
22473
22539
  this.componentRef.setInput('totalPages', this.totalPages());
22474
22540
  this.componentRef.setInput('pageSize', this.pageSize());
22475
22541
  this.componentRef.setInput('totalItems', this.totalItems());
22542
+ this.componentRef.setInput('variant', this.variant());
22476
22543
  this.componentRef.setInput('class', this.cssClass());
22477
22544
  });
22478
22545
  }
22479
22546
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PagingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22480
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.3", type: PagingComponent, isStandalone: true, selector: "smart-paging", inputs: { currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, totalPages: { classPropertyName: "totalPages", publicName: "totalPages", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChange: "pageChange" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `<ng-container #anchor></ng-container>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22547
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.3", type: PagingComponent, isStandalone: true, selector: "smart-paging", inputs: { currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, totalPages: { classPropertyName: "totalPages", publicName: "totalPages", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChange: "pageChange" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `<ng-container #anchor></ng-container>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22481
22548
  }
22482
22549
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PagingComponent, decorators: [{
22483
22550
  type: Component,
@@ -22489,7 +22556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
22489
22556
  }]
22490
22557
  }], ctorParameters: () => [], propDecorators: { anchor: [{ type: i0.ViewChild, args: ['anchor', { ...{
22491
22558
  read: ViewContainerRef,
22492
- }, isSignal: true }] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }], totalPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalPages", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }] } });
22559
+ }, isSignal: true }] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }], totalPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalPages", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }] } });
22493
22560
 
22494
22561
  class ListBaseComponent {
22495
22562
  static smartType = 'list';
@@ -22770,7 +22837,7 @@ class ListDesktopComponent extends ListBaseComponent {
22770
22837
  }
22771
22838
  }
22772
22839
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListDesktopComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
22773
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListDesktopComponent, isStandalone: true, selector: "smart-list-desktop", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div class=\"smart:overflow-x-auto\">\n <table\n cdk-table\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"containerClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:rounded smart:border-gray-300 smart:text-indigo-600 smart:focus:ring-indigo-600\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"itemHandler?.(element.id)\"\n >\n \u2192\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:px-3 smart:py-3.5 smart:text-left smart:text-sm smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:px-3 smart:py-4 smart:text-sm smart:text-gray-700 smart:dark:text-gray-300\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n class=\"smart:bg-gray-50 smart:dark:bg-gray-800/50\"\n ></tr>\n <tr\n cdk-row\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n class=\"smart:hover:bg-gray-50 smart:dark:hover:bg-gray-800/30\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: LazyLoadImageModule }, { kind: "directive", type: i1$2.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "class"], outputs: ["pageChange"] }, { kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "pipe", type: ListHeaderPipe, name: "smartListHeader" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22840
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListDesktopComponent, isStandalone: true, selector: "smart-list-desktop", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div class=\"smart:overflow-x-auto\">\n <table\n cdk-table\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"containerClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:rounded smart:border-gray-300 smart:text-indigo-600 smart:focus:ring-indigo-600\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"itemHandler?.(element.id)\"\n >\n \u2192\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:px-3 smart:py-3.5 smart:text-left smart:text-sm smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:px-3 smart:py-4 smart:text-sm smart:text-gray-700 smart:dark:text-gray-300\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n class=\"smart:bg-gray-50 smart:dark:bg-gray-800/50\"\n ></tr>\n <tr\n cdk-row\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n class=\"smart:hover:bg-gray-50 smart:dark:hover:bg-gray-800/30\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: LazyLoadImageModule }, { kind: "directive", type: i1$2.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "variant", "class"], outputs: ["pageChange"] }, { kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "pipe", type: ListHeaderPipe, name: "smartListHeader" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22774
22841
  }
22775
22842
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListDesktopComponent, decorators: [{
22776
22843
  type: Component,
@@ -22848,7 +22915,7 @@ class ListMasonryGridComponent extends ListBaseComponent {
22848
22915
  }
22849
22916
  }
22850
22917
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMasonryGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
22851
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMasonryGridComponent, isStandalone: true, selector: "smart-list-masonry-grid", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li\n class=\"smart:col-span-1 smart:rounded-lg smart:bg-white smart:shadow-sm smart:dark:bg-gray-800/50 smart:overflow-hidden\"\n >\n @if (item.image) {\n <img\n class=\"smart:h-48 smart:w-full smart:object-cover\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "class"], outputs: ["pageChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22918
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMasonryGridComponent, isStandalone: true, selector: "smart-list-masonry-grid", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li\n class=\"smart:col-span-1 smart:rounded-lg smart:bg-white smart:shadow-sm smart:dark:bg-gray-800/50 smart:overflow-hidden\"\n >\n @if (item.image) {\n <img\n class=\"smart:h-48 smart:w-full smart:object-cover\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "variant", "class"], outputs: ["pageChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22852
22919
  }
22853
22920
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMasonryGridComponent, decorators: [{
22854
22921
  type: Component,
@@ -22892,7 +22959,7 @@ class ListMobileComponent extends ListBaseComponent {
22892
22959
  }
22893
22960
  }
22894
22961
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMobileComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
22895
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMobileComponent, isStandalone: true, selector: "smart-list-mobile", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @let mobileItems = mobileList() ?? [];\n @for (item of mobileItems; track item.id) {\n <li class=\"smart:flex smart:justify-between smart:gap-x-6 smart:py-5\">\n <div class=\"smart:flex smart:min-w-0 smart:gap-x-4\">\n <div class=\"smart:min-w-0 smart:flex-auto\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </div>\n <div class=\"smart:flex smart:shrink-0 smart:items-center smart:gap-x-4\">\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n @if (itemHandler) {\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"itemHandler?.(item.id)\"\n >\n \u2192\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "ngmodule", type: LazyLoadImageModule }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "class"], outputs: ["pageChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22962
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMobileComponent, isStandalone: true, selector: "smart-list-mobile", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @let mobileItems = mobileList() ?? [];\n @for (item of mobileItems; track item.id) {\n <li class=\"smart:flex smart:justify-between smart:gap-x-6 smart:py-5\">\n <div class=\"smart:flex smart:min-w-0 smart:gap-x-4\">\n <div class=\"smart:min-w-0 smart:flex-auto\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </div>\n <div class=\"smart:flex smart:shrink-0 smart:items-center smart:gap-x-4\">\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n @if (itemHandler) {\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"itemHandler?.(item.id)\"\n >\n \u2192\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "ngmodule", type: LazyLoadImageModule }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "variant", "class"], outputs: ["pageChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22896
22963
  }
22897
22964
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMobileComponent, decorators: [{
22898
22965
  type: Component,
@@ -23086,7 +23153,7 @@ class ListDesktopPresetComponent extends ListDesktopComponent {
23086
23153
  cellClasses = computed(() => getListDesktopCellClasses(), /* @ts-ignore */
23087
23154
  ...(ngDevMode ? [{ debugName: "cellClasses" }] : /* istanbul ignore next */ []));
23088
23155
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListDesktopPresetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
23089
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListDesktopPresetComponent, isStandalone: true, selector: "smart-list-desktop-preset", usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div [class]=\"containerClasses()\">\n <table\n cdk-table\n data-role=\"table\"\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"tableClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:shrink-0 smart:border-gray-300 smart:rounded-sm smart:text-blue-600 smart:focus:ring-blue-500 smart:dark:bg-gray-800 smart:dark:border-gray-600 smart:dark:checked:bg-blue-500 smart:dark:checked:border-blue-500\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-red-600 smart:hover:text-red-700 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"itemHandler?.(element.id)\"\n >\n \u2192\n </button>\n </td>\n }\n @default {\n <th cdk-header-cell *cdkHeaderCellDef [class]=\"headerCellClasses()\">\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses()\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n data-role=\"header-row\"\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n [class]=\"headerRowClasses()\"\n ></tr>\n <tr\n cdk-row\n data-role=\"row\"\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n [class]=\"rowClasses()\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: LazyLoadImageModule }, { kind: "directive", type: i1$2.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "class"], outputs: ["pageChange"] }, { kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "pipe", type: ListHeaderPipe, name: "smartListHeader" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23156
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListDesktopPresetComponent, isStandalone: true, selector: "smart-list-desktop-preset", usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div [class]=\"containerClasses()\">\n <table\n cdk-table\n data-role=\"table\"\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"tableClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:shrink-0 smart:border-gray-300 smart:rounded-sm smart:text-blue-600 smart:focus:ring-blue-500 smart:dark:bg-gray-800 smart:dark:border-gray-600 smart:dark:checked:bg-blue-500 smart:dark:checked:border-blue-500\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-red-600 smart:hover:text-red-700 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"itemHandler?.(element.id)\"\n >\n \u2192\n </button>\n </td>\n }\n @default {\n <th cdk-header-cell *cdkHeaderCellDef [class]=\"headerCellClasses()\">\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses()\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n data-role=\"header-row\"\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n [class]=\"headerRowClasses()\"\n ></tr>\n <tr\n cdk-row\n data-role=\"row\"\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n [class]=\"rowClasses()\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: LazyLoadImageModule }, { kind: "directive", type: i1$2.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "variant", "class"], outputs: ["pageChange"] }, { kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "pipe", type: ListHeaderPipe, name: "smartListHeader" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23090
23157
  }
23091
23158
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListDesktopPresetComponent, decorators: [{
23092
23159
  type: Component,
@@ -23125,7 +23192,7 @@ class ListMasonryGridPresetComponent extends ListMasonryGridComponent {
23125
23192
  return this.keys.find((key) => !this.isImageKey(key)) ?? null;
23126
23193
  }
23127
23194
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMasonryGridPresetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
23128
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMasonryGridPresetComponent, isStandalone: true, selector: "smart-list-masonry-grid-preset", usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" data-role=\"grid\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @if (item.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:h-48 smart:w-full smart:object-cover smart:rounded-t-xl\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "class"], outputs: ["pageChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23195
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMasonryGridPresetComponent, isStandalone: true, selector: "smart-list-masonry-grid-preset", usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" data-role=\"grid\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @if (item.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:h-48 smart:w-full smart:object-cover smart:rounded-t-xl\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "variant", "class"], outputs: ["pageChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23129
23196
  }
23130
23197
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMasonryGridPresetComponent, decorators: [{
23131
23198
  type: Component,
@@ -23160,7 +23227,7 @@ class ListMobilePresetComponent extends ListMobileComponent {
23160
23227
  return this.keys.find((key) => !this.isImageKey(key)) ?? null;
23161
23228
  }
23162
23229
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMobilePresetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
23163
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMobilePresetComponent, isStandalone: true, selector: "smart-list-mobile-preset", usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"gridClasses()\">\n @let presetItems = mobileList() ?? [];\n @for (item of presetItems; track item.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type === FieldType.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:w-full smart:h-auto smart:rounded-t-xl\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n />\n }\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n <div class=\"smart:flex smart:items-center smart:gap-x-4\">\n @if (itemHandler) {\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"itemHandler?.(item.id)\"\n >\n {{ 'details' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:mt-2 smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </div>\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "ngmodule", type: LazyLoadImageModule }, { kind: "directive", type: i1$2.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "class"], outputs: ["pageChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23230
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListMobilePresetComponent, isStandalone: true, selector: "smart-list-mobile-preset", usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"gridClasses()\">\n @let presetItems = mobileList() ?? [];\n @for (item of presetItems; track item.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type === FieldType.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:w-full smart:h-auto smart:rounded-t-xl\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n />\n }\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n <div class=\"smart:flex smart:items-center smart:gap-x-4\">\n @if (itemHandler) {\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"itemHandler?.(item.id)\"\n >\n {{ 'details' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:mt-2 smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </div>\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n", dependencies: [{ kind: "ngmodule", type: LazyLoadImageModule }, { kind: "directive", type: i1$2.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["currentPage", "totalPages", "pageSize", "totalItems", "variant", "class"], outputs: ["pageChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23164
23231
  }
23165
23232
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListMobilePresetComponent, decorators: [{
23166
23233
  type: Component,
@@ -26278,6 +26345,10 @@ class SignInFormStandardComponent extends SignInFormBaseComponent {
26278
26345
  }
26279
26346
  onSubmit(event) {
26280
26347
  event.preventDefault();
26348
+ // The native submit event bubbles up to the host elements, where it would
26349
+ // reach every `(submit)` listener next to the `submit` output: the
26350
+ // wrapper's and the consumer's. Only the output leaves the component.
26351
+ event.stopPropagation();
26281
26352
  if (this.disabled())
26282
26353
  return;
26283
26354
  this.submit.emit({
@@ -26565,13 +26636,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
26565
26636
  type: Directive
26566
26637
  }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
26567
26638
 
26639
+ /**
26640
+ * Barebones native-HTML stacked layout rendered by `<smart-stacked-layout>`.
26641
+ *
26642
+ * Renders `options.navTpl` in a `<header><nav>`, then `options.headerTpl` —
26643
+ * or, without it, `options.title` as `<header><h1 data-role="title">` — and
26644
+ * the projected content in `<main>`. `options.containerWidth` is visual only:
26645
+ * it is exposed as `data-container-width` (default `'xl'`) and styled by the
26646
+ * preset.
26647
+ */
26568
26648
  class StackedLayoutStandardComponent extends StackedLayoutBaseComponent {
26649
+ containerWidth = computed(() => this.options()?.containerWidth ?? 'xl', /* @ts-ignore */
26650
+ ...(ngDevMode ? [{ debugName: "containerWidth" }] : /* istanbul ignore next */ []));
26569
26651
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: StackedLayoutStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
26570
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: StackedLayoutStandardComponent, isStandalone: true, selector: "smart-stacked-layout-standard", usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\">\n <header>\n <nav>\n @if (options()?.navTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.navTpl!\" />\n }\n </nav>\n </header>\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n }\n <main>\n <ng-content />\n </main>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
26652
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: StackedLayoutStandardComponent, isStandalone: true, selector: "smart-stacked-layout-standard", usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\" [attr.data-container-width]=\"containerWidth()\">\n <header>\n <nav>\n @if (options()?.navTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.navTpl!\" />\n }\n </nav>\n </header>\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n } @else if (options()?.title) {\n <header>\n <h1 data-role=\"title\">{{ options()?.title }}</h1>\n </header>\n }\n <main>\n <ng-content />\n </main>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
26571
26653
  }
26572
26654
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: StackedLayoutStandardComponent, decorators: [{
26573
26655
  type: Component,
26574
- args: [{ selector: 'smart-stacked-layout-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\">\n <header>\n <nav>\n @if (options()?.navTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.navTpl!\" />\n }\n </nav>\n </header>\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n }\n <main>\n <ng-content />\n </main>\n</div>\n" }]
26656
+ args: [{ selector: 'smart-stacked-layout-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\" [attr.data-container-width]=\"containerWidth()\">\n <header>\n <nav>\n @if (options()?.navTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.navTpl!\" />\n }\n </nav>\n </header>\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n } @else if (options()?.title) {\n <header>\n <h1 data-role=\"title\">{{ options()?.title }}</h1>\n </header>\n }\n <main>\n <ng-content />\n </main>\n</div>\n" }]
26575
26657
  }] });
26576
26658
 
26577
26659
  // HyperUI-styled class recipes for the stacked-layout preset.
@@ -27592,17 +27674,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
27592
27674
  type: Directive
27593
27675
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
27594
27676
 
27677
+ let nextToggleId = 0;
27678
+ /**
27679
+ * Barebones native-HTML toggle (checkbox) rendered by `<smart-toggle>`.
27680
+ *
27681
+ * `options.label` renders in a `<label for>` bound to the checkbox (so it is
27682
+ * the accessible name), `options.description` in an element referenced by
27683
+ * `aria-describedby`; both sit after the checkbox, or before it when
27684
+ * `options.labelPosition === 'left'`. `options.ariaLabel` names the checkbox
27685
+ * only when there is no visible label.
27686
+ */
27595
27687
  class ToggleStandardComponent extends ToggleBaseComponent {
27688
+ instanceId = `smart-toggle-${nextToggleId++}`;
27689
+ inputId = `${this.instanceId}-input`;
27690
+ descriptionId = `${this.instanceId}-description`;
27691
+ label = computed(() => this.options()?.label ?? '', /* @ts-ignore */
27692
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
27693
+ description = computed(() => this.options()?.description ?? '', /* @ts-ignore */
27694
+ ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
27695
+ labelPosition = computed(() => this.options()?.labelPosition ?? 'right', /* @ts-ignore */
27696
+ ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
27697
+ hasText = computed(() => Boolean(this.label() || this.description()), /* @ts-ignore */
27698
+ ...(ngDevMode ? [{ debugName: "hasText" }] : /* istanbul ignore next */ []));
27596
27699
  onChange(event) {
27597
27700
  const target = event.target;
27598
27701
  this.value.set(target.checked);
27599
27702
  }
27600
27703
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ToggleStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
27601
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: ToggleStandardComponent, isStandalone: true, selector: "smart-toggle-standard", usesInheritance: true, ngImport: i0, template: "<input\n type=\"checkbox\"\n [checked]=\"value()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"options()?.ariaLabel ?? null\"\n [class]=\"cssClass()\"\n (change)=\"onChange($event)\"\n/>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
27704
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ToggleStandardComponent, isStandalone: true, selector: "smart-toggle-standard", usesInheritance: true, ngImport: i0, template: "<span class=\"smart-toggle\" [attr.data-label-position]=\"labelPosition()\">\n @if (hasText() && labelPosition() === 'left') {\n <ng-container [ngTemplateOutlet]=\"text\" />\n }\n\n <input\n type=\"checkbox\"\n [id]=\"inputId\"\n [checked]=\"value()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"label() ? null : (options()?.ariaLabel ?? null)\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [class]=\"cssClass()\"\n (change)=\"onChange($event)\"\n />\n\n @if (hasText() && labelPosition() === 'right') {\n <ng-container [ngTemplateOutlet]=\"text\" />\n }\n</span>\n\n<ng-template #text>\n <span class=\"smart-toggle-text\" data-role=\"text\">\n @if (label()) {\n <label class=\"smart-toggle-label\" [for]=\"inputId\">{{ label() }}</label>\n }\n @if (description()) {\n <span class=\"smart-toggle-description\" [id]=\"descriptionId\">{{\n description()\n }}</span>\n }\n </span>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
27602
27705
  }
27603
27706
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ToggleStandardComponent, decorators: [{
27604
27707
  type: Component,
27605
- args: [{ selector: 'smart-toggle-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<input\n type=\"checkbox\"\n [checked]=\"value()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"options()?.ariaLabel ?? null\"\n [class]=\"cssClass()\"\n (change)=\"onChange($event)\"\n/>\n" }]
27708
+ args: [{ selector: 'smart-toggle-standard', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"smart-toggle\" [attr.data-label-position]=\"labelPosition()\">\n @if (hasText() && labelPosition() === 'left') {\n <ng-container [ngTemplateOutlet]=\"text\" />\n }\n\n <input\n type=\"checkbox\"\n [id]=\"inputId\"\n [checked]=\"value()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"label() ? null : (options()?.ariaLabel ?? null)\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [class]=\"cssClass()\"\n (change)=\"onChange($event)\"\n />\n\n @if (hasText() && labelPosition() === 'right') {\n <ng-container [ngTemplateOutlet]=\"text\" />\n }\n</span>\n\n<ng-template #text>\n <span class=\"smart-toggle-text\" data-role=\"text\">\n @if (label()) {\n <label class=\"smart-toggle-label\" [for]=\"inputId\">{{ label() }}</label>\n }\n @if (description()) {\n <span class=\"smart-toggle-description\" [id]=\"descriptionId\">{{\n description()\n }}</span>\n }\n </span>\n</ng-template>\n" }]
27606
27709
  }] });
27607
27710
 
27608
27711
  // Class recipes for the toggle (switch) preset. Kept out of the public barrel —