@gravionlabs/helix-ui 22.5.1 → 22.6.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.
@@ -95,8 +95,7 @@ var HxAccordion = class HxAccordion {
95
95
  inputs: ["multi", "multiple"]
96
96
  }],
97
97
  ngImport: i0,
98
- template: "<ng-content />",
99
- isInline: true,
98
+ template: "<ng-content />\n",
100
99
  changeDetection: i0.ChangeDetectionStrategy.OnPush
101
100
  });
102
101
  };
@@ -118,7 +117,7 @@ i0.ɵɵngDeclareClassMetadata({
118
117
  class: "hx-accordion",
119
118
  "(keydown)": "onKeydown($event)"
120
119
  },
121
- template: "<ng-content />"
120
+ template: "<ng-content />\n"
122
121
  }]
123
122
  }],
124
123
  propDecorators: {
@@ -214,8 +213,7 @@ var HxAccordionPanel = class HxAccordionPanel {
214
213
  },
215
214
  hostDirectives: [{ directive: i1.CdkAccordionItem }],
216
215
  ngImport: i0,
217
- template: "<ng-content />",
218
- isInline: true,
216
+ template: "<ng-content />\n",
219
217
  changeDetection: i0.ChangeDetectionStrategy.OnPush
220
218
  });
221
219
  };
@@ -235,7 +233,7 @@ i0.ɵɵngDeclareClassMetadata({
235
233
  "[class.hx-accordion-panel-open]": "expanded()",
236
234
  "[class.hx-accordion-panel-disabled]": "disabled()"
237
235
  },
238
- template: "<ng-content />"
236
+ template: "<ng-content />\n"
239
237
  }]
240
238
  }],
241
239
  ctorParameters: () => [],
@@ -277,31 +275,7 @@ var HxAccordionHeader = class HxAccordionHeader {
277
275
  selector: "hx-accordion-header",
278
276
  host: { classAttribute: "hx-accordion-header" },
279
277
  ngImport: i0,
280
- template: `
281
- <ng-template #button>
282
- <button
283
- type="button"
284
- class="hx-accordion-trigger"
285
- [id]="panel.headerId"
286
- [attr.aria-expanded]="panel.expanded()"
287
- [attr.aria-controls]="panel.contentId"
288
- [disabled]="panel.disabled()"
289
- (click)="panel.toggle()"
290
- >
291
- <span class="hx-accordion-title"><ng-content /></span>
292
- <span class="hx-accordion-icon" aria-hidden="true"></span>
293
- </button>
294
- </ng-template>
295
- @switch (level()) {
296
- @case (1) { <h1 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h1> }
297
- @case (2) { <h2 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h2> }
298
- @case (3) { <h3 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h3> }
299
- @case (4) { <h4 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h4> }
300
- @case (5) { <h5 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h5> }
301
- @default { <h6 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h6> }
302
- }
303
- `,
304
- isInline: true,
278
+ template: "<ng-template #button>\n <button\n type=\"button\"\n class=\"hx-accordion-trigger\"\n [id]=\"panel.headerId\"\n [attr.aria-expanded]=\"panel.expanded()\"\n [attr.aria-controls]=\"panel.contentId\"\n [disabled]=\"panel.disabled()\"\n (click)=\"panel.toggle()\"\n >\n <span class=\"hx-accordion-title\"><ng-content /></span>\n <span class=\"hx-accordion-icon\" aria-hidden=\"true\"></span>\n </button>\n</ng-template>\n@switch (level()) {\n @case (1) { <h1 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h1> }\n @case (2) { <h2 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h2> }\n @case (3) { <h3 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h3> }\n @case (4) { <h4 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h4> }\n @case (5) { <h5 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h5> }\n @default { <h6 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h6> }\n}\n",
305
279
  dependencies: [{
306
280
  kind: "directive",
307
281
  type: NgTemplateOutlet,
@@ -327,30 +301,7 @@ i0.ɵɵngDeclareClassMetadata({
327
301
  imports: [NgTemplateOutlet],
328
302
  changeDetection: ChangeDetectionStrategy.OnPush,
329
303
  host: { class: "hx-accordion-header" },
330
- template: `
331
- <ng-template #button>
332
- <button
333
- type="button"
334
- class="hx-accordion-trigger"
335
- [id]="panel.headerId"
336
- [attr.aria-expanded]="panel.expanded()"
337
- [attr.aria-controls]="panel.contentId"
338
- [disabled]="panel.disabled()"
339
- (click)="panel.toggle()"
340
- >
341
- <span class="hx-accordion-title"><ng-content /></span>
342
- <span class="hx-accordion-icon" aria-hidden="true"></span>
343
- </button>
344
- </ng-template>
345
- @switch (level()) {
346
- @case (1) { <h1 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h1> }
347
- @case (2) { <h2 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h2> }
348
- @case (3) { <h3 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h3> }
349
- @case (4) { <h4 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h4> }
350
- @case (5) { <h5 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h5> }
351
- @default { <h6 class="hx-accordion-heading"><ng-container [ngTemplateOutlet]="button" /></h6> }
352
- }
353
- `
304
+ template: "<ng-template #button>\n <button\n type=\"button\"\n class=\"hx-accordion-trigger\"\n [id]=\"panel.headerId\"\n [attr.aria-expanded]=\"panel.expanded()\"\n [attr.aria-controls]=\"panel.contentId\"\n [disabled]=\"panel.disabled()\"\n (click)=\"panel.toggle()\"\n >\n <span class=\"hx-accordion-title\"><ng-content /></span>\n <span class=\"hx-accordion-icon\" aria-hidden=\"true\"></span>\n </button>\n</ng-template>\n@switch (level()) {\n @case (1) { <h1 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h1> }\n @case (2) { <h2 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h2> }\n @case (3) { <h3 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h3> }\n @case (4) { <h4 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h4> }\n @case (5) { <h5 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h5> }\n @default { <h6 class=\"hx-accordion-heading\"><ng-container [ngTemplateOutlet]=\"button\" /></h6> }\n}\n"
354
305
  }]
355
306
  }]
356
307
  });
@@ -375,16 +326,7 @@ var HxAccordionContent = class HxAccordionContent {
375
326
  classAttribute: "hx-accordion-content"
376
327
  },
377
328
  ngImport: i0,
378
- template: `
379
- <div class="hx-accordion-collapse">
380
- <div class="hx-accordion-collapse-inner">
381
- <div class="hx-accordion-body" role="region" [id]="panel.contentId" [attr.aria-labelledby]="panel.headerId">
382
- <ng-content />
383
- </div>
384
- </div>
385
- </div>
386
- `,
387
- isInline: true,
329
+ template: "<div class=\"hx-accordion-collapse\">\n <div class=\"hx-accordion-collapse-inner\">\n <div class=\"hx-accordion-body\" role=\"region\" [id]=\"panel.contentId\" [attr.aria-labelledby]=\"panel.headerId\">\n <ng-content />\n </div>\n </div>\n</div>\n",
388
330
  changeDetection: i0.ChangeDetectionStrategy.OnPush
389
331
  });
390
332
  };
@@ -402,15 +344,7 @@ i0.ɵɵngDeclareClassMetadata({
402
344
  class: "hx-accordion-content",
403
345
  "[attr.inert]": "panel.expanded() ? null : ''"
404
346
  },
405
- template: `
406
- <div class="hx-accordion-collapse">
407
- <div class="hx-accordion-collapse-inner">
408
- <div class="hx-accordion-body" role="region" [id]="panel.contentId" [attr.aria-labelledby]="panel.headerId">
409
- <ng-content />
410
- </div>
411
- </div>
412
- </div>
413
- `
347
+ template: "<div class=\"hx-accordion-collapse\">\n <div class=\"hx-accordion-collapse-inner\">\n <div class=\"hx-accordion-body\" role=\"region\" [id]=\"panel.contentId\" [attr.aria-labelledby]=\"panel.headerId\">\n <ng-content />\n </div>\n </div>\n</div>\n"
414
348
  }]
415
349
  }]
416
350
  });
@@ -842,7 +776,7 @@ var HxAutoComplete = class HxAutoComplete {
842
776
  isSignal: true
843
777
  }],
844
778
  ngImport: i0,
845
- template: "<div class=\"hx-auto-complete-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n @if (multiple()) {\n @for (item of chips(); track $index) {\n <span class=\"hx-auto-complete-chip\">\n <span>{{ item.label }}</span>\n <button\n type=\"button\"\n class=\"hx-auto-complete-chip-remove\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Remove ' + item.label\"\n [disabled]=\"isDisabled()\"\n (click)=\"removeChip($index)\"\n >\n <span class=\"hx-auto-complete-remove-icon\" aria-hidden=\"true\"></span>\n </button>\n </span>\n }\n }\n <input\n #field\n type=\"text\"\n class=\"hx-auto-complete-input\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"multiple() && chips().length ? '' : placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"inputText()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n</div>\n@if (dropdown()) {\n <button\n type=\"button\"\n class=\"hx-auto-complete-dropdown\"\n tabindex=\"-1\"\n aria-label=\"Show suggestions\"\n [disabled]=\"isDisabled()\"\n (click)=\"showAll()\"\n >\n <span class=\"hx-auto-complete-chevron\" aria-hidden=\"true\"></span>\n </button>\n}\n<span class=\"hx-auto-complete-status\" role=\"status\" aria-live=\"polite\">{{ status() }}</span>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-auto-complete-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"open.set(false)\"\n>\n <div class=\"hx-auto-complete-panel\">\n <div class=\"hx-auto-complete-list\" role=\"listbox\" [id]=\"panelId\" [attr.aria-multiselectable]=\"multiple() ? 'true' : null\" [attr.aria-label]=\"ariaLabel() ?? placeholder() ?? null\">\n @for (item of items(); track $index) {\n <div\n class=\"hx-auto-complete-option\"\n role=\"option\"\n [id]=\"optionId($index)\"\n [class.hx-auto-complete-option-active]=\"$index === active()\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(item)\"\n (mousemove)=\"active.set($index)\"\n >\n {{ item.label }}\n </div>\n } @empty {\n <div class=\"hx-auto-complete-empty\">{{ emptyMessage() }}</div>\n }\n </div>\n </div>\n</ng-template>\n",
779
+ template: "<div class=\"hx-auto-complete-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n @if (multiple()) {\n @for (item of chips(); track $index) {\n <span class=\"hx-auto-complete-chip\">\n <span>{{ item.label }}</span>\n <button\n type=\"button\"\n class=\"hx-auto-complete-chip-remove\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Remove ' + item.label\"\n [disabled]=\"isDisabled()\"\n (click)=\"removeChip($index)\"\n >\n <span class=\"hx-auto-complete-remove-icon\" aria-hidden=\"true\"></span>\n </button>\n </span>\n }\n }\n <input\n #field\n type=\"text\"\n class=\"hx-auto-complete-input\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"multiple() && chips().length ? '' : placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"inputText()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n</div>\n@if (dropdown()) {\n <button\n type=\"button\"\n class=\"hx-auto-complete-dropdown\"\n tabindex=\"-1\"\n aria-label=\"Show suggestions\"\n [disabled]=\"isDisabled()\"\n (click)=\"showAll()\"\n >\n <span class=\"hx-auto-complete-chevron\" aria-hidden=\"true\"></span>\n </button>\n}\n<span class=\"hx-auto-complete-status\" role=\"status\" aria-live=\"polite\">{{ status() }}</span>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-auto-complete-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"open.set(false)\"\n>\n <div class=\"hx-auto-complete-panel\">\n <div class=\"hx-auto-complete-list\" role=\"listbox\" [id]=\"panelId\" [attr.aria-multiselectable]=\"multiple() ? 'true' : null\" [attr.aria-label]=\"ariaLabel() ?? placeholder() ?? null\">\n @for (item of items(); track $index) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option: the input keeps the focus and handles the keys (aria-activedescendant) -->\n <div\n class=\"hx-auto-complete-option\"\n role=\"option\"\n [id]=\"optionId($index)\"\n [class.hx-auto-complete-option-active]=\"$index === active()\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(item)\"\n (mousemove)=\"active.set($index)\"\n >\n {{ item.label }}\n </div>\n } @empty {\n <div class=\"hx-auto-complete-empty\">{{ emptyMessage() }}</div>\n }\n </div>\n </div>\n</ng-template>\n",
846
780
  dependencies: [{
847
781
  kind: "directive",
848
782
  type: CdkConnectedOverlay,
@@ -919,7 +853,7 @@ i0.ɵɵngDeclareClassMetadata({
919
853
  "[class.hx-auto-complete-has-dropdown]": "dropdown()",
920
854
  "[class.hx-filled]": "filled()"
921
855
  },
922
- template: "<div class=\"hx-auto-complete-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n @if (multiple()) {\n @for (item of chips(); track $index) {\n <span class=\"hx-auto-complete-chip\">\n <span>{{ item.label }}</span>\n <button\n type=\"button\"\n class=\"hx-auto-complete-chip-remove\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Remove ' + item.label\"\n [disabled]=\"isDisabled()\"\n (click)=\"removeChip($index)\"\n >\n <span class=\"hx-auto-complete-remove-icon\" aria-hidden=\"true\"></span>\n </button>\n </span>\n }\n }\n <input\n #field\n type=\"text\"\n class=\"hx-auto-complete-input\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"multiple() && chips().length ? '' : placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"inputText()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n</div>\n@if (dropdown()) {\n <button\n type=\"button\"\n class=\"hx-auto-complete-dropdown\"\n tabindex=\"-1\"\n aria-label=\"Show suggestions\"\n [disabled]=\"isDisabled()\"\n (click)=\"showAll()\"\n >\n <span class=\"hx-auto-complete-chevron\" aria-hidden=\"true\"></span>\n </button>\n}\n<span class=\"hx-auto-complete-status\" role=\"status\" aria-live=\"polite\">{{ status() }}</span>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-auto-complete-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"open.set(false)\"\n>\n <div class=\"hx-auto-complete-panel\">\n <div class=\"hx-auto-complete-list\" role=\"listbox\" [id]=\"panelId\" [attr.aria-multiselectable]=\"multiple() ? 'true' : null\" [attr.aria-label]=\"ariaLabel() ?? placeholder() ?? null\">\n @for (item of items(); track $index) {\n <div\n class=\"hx-auto-complete-option\"\n role=\"option\"\n [id]=\"optionId($index)\"\n [class.hx-auto-complete-option-active]=\"$index === active()\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(item)\"\n (mousemove)=\"active.set($index)\"\n >\n {{ item.label }}\n </div>\n } @empty {\n <div class=\"hx-auto-complete-empty\">{{ emptyMessage() }}</div>\n }\n </div>\n </div>\n</ng-template>\n"
856
+ template: "<div class=\"hx-auto-complete-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n @if (multiple()) {\n @for (item of chips(); track $index) {\n <span class=\"hx-auto-complete-chip\">\n <span>{{ item.label }}</span>\n <button\n type=\"button\"\n class=\"hx-auto-complete-chip-remove\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Remove ' + item.label\"\n [disabled]=\"isDisabled()\"\n (click)=\"removeChip($index)\"\n >\n <span class=\"hx-auto-complete-remove-icon\" aria-hidden=\"true\"></span>\n </button>\n </span>\n }\n }\n <input\n #field\n type=\"text\"\n class=\"hx-auto-complete-input\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"multiple() && chips().length ? '' : placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"inputText()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n</div>\n@if (dropdown()) {\n <button\n type=\"button\"\n class=\"hx-auto-complete-dropdown\"\n tabindex=\"-1\"\n aria-label=\"Show suggestions\"\n [disabled]=\"isDisabled()\"\n (click)=\"showAll()\"\n >\n <span class=\"hx-auto-complete-chevron\" aria-hidden=\"true\"></span>\n </button>\n}\n<span class=\"hx-auto-complete-status\" role=\"status\" aria-live=\"polite\">{{ status() }}</span>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-auto-complete-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"open.set(false)\"\n>\n <div class=\"hx-auto-complete-panel\">\n <div class=\"hx-auto-complete-list\" role=\"listbox\" [id]=\"panelId\" [attr.aria-multiselectable]=\"multiple() ? 'true' : null\" [attr.aria-label]=\"ariaLabel() ?? placeholder() ?? null\">\n @for (item of items(); track $index) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option: the input keeps the focus and handles the keys (aria-activedescendant) -->\n <div\n class=\"hx-auto-complete-option\"\n role=\"option\"\n [id]=\"optionId($index)\"\n [class.hx-auto-complete-option-active]=\"$index === active()\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(item)\"\n (mousemove)=\"active.set($index)\"\n >\n {{ item.label }}\n </div>\n } @empty {\n <div class=\"hx-auto-complete-empty\">{{ emptyMessage() }}</div>\n }\n </div>\n </div>\n</ng-template>\n"
923
857
  }]
924
858
  }],
925
859
  ctorParameters: () => [],
@@ -1169,18 +1103,7 @@ var HxAvatar = class HxAvatar {
1169
1103
  classAttribute: "hx-avatar"
1170
1104
  },
1171
1105
  ngImport: i0,
1172
- template: `
1173
- @if (image()) {
1174
- <img class="hx-avatar-image" [src]="image()" alt="" />
1175
- } @else if (icon()) {
1176
- <span class="hx-avatar-icon" [class]="icon()" aria-hidden="true"></span>
1177
- } @else if (label()) {
1178
- <span class="hx-avatar-label" [attr.aria-hidden]="ariaLabel() ? 'true' : null">{{ label() }}</span>
1179
- } @else {
1180
- <ng-content />
1181
- }
1182
- `,
1183
- isInline: true,
1106
+ template: "@if (image()) {\n <img class=\"hx-avatar-image\" [src]=\"image()\" alt=\"\" />\n} @else if (icon()) {\n <span class=\"hx-avatar-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n} @else if (label()) {\n <span class=\"hx-avatar-label\" [attr.aria-hidden]=\"ariaLabel() ? 'true' : null\">{{ label() }}</span>\n} @else {\n <ng-content />\n}\n",
1184
1107
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1185
1108
  });
1186
1109
  };
@@ -1202,17 +1125,7 @@ i0.ɵɵngDeclareClassMetadata({
1202
1125
  "[class.hx-avatar-xl]": "size() === 'xlarge'",
1203
1126
  "[class.hx-avatar-circle]": "shape() === 'circle'"
1204
1127
  },
1205
- template: `
1206
- @if (image()) {
1207
- <img class="hx-avatar-image" [src]="image()" alt="" />
1208
- } @else if (icon()) {
1209
- <span class="hx-avatar-icon" [class]="icon()" aria-hidden="true"></span>
1210
- } @else if (label()) {
1211
- <span class="hx-avatar-label" [attr.aria-hidden]="ariaLabel() ? 'true' : null">{{ label() }}</span>
1212
- } @else {
1213
- <ng-content />
1214
- }
1215
- `
1128
+ template: "@if (image()) {\n <img class=\"hx-avatar-image\" [src]=\"image()\" alt=\"\" />\n} @else if (icon()) {\n <span class=\"hx-avatar-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n} @else if (label()) {\n <span class=\"hx-avatar-label\" [attr.aria-hidden]=\"ariaLabel() ? 'true' : null\">{{ label() }}</span>\n} @else {\n <ng-content />\n}\n"
1216
1129
  }]
1217
1130
  }],
1218
1131
  propDecorators: {
@@ -1295,8 +1208,7 @@ var HxAvatarGroup = class HxAvatarGroup {
1295
1208
  classAttribute: "hx-avatar-group"
1296
1209
  },
1297
1210
  ngImport: i0,
1298
- template: "<ng-content />",
1299
- isInline: true,
1211
+ template: "<ng-content />\n",
1300
1212
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1301
1213
  });
1302
1214
  };
@@ -1315,7 +1227,7 @@ i0.ɵɵngDeclareClassMetadata({
1315
1227
  role: "group",
1316
1228
  "[attr.aria-label]": "ariaLabel() || null"
1317
1229
  },
1318
- template: "<ng-content />"
1230
+ template: "<ng-content />\n"
1319
1231
  }]
1320
1232
  }],
1321
1233
  propDecorators: { ariaLabel: [{
@@ -1388,8 +1300,7 @@ var HxBadge = class HxBadge {
1388
1300
  classAttribute: "hx-badge"
1389
1301
  },
1390
1302
  ngImport: i0,
1391
- template: "{{ value() }}",
1392
- isInline: true,
1303
+ template: "{{ value() }}\n",
1393
1304
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1394
1305
  });
1395
1306
  };
@@ -1402,7 +1313,6 @@ i0.ɵɵngDeclareClassMetadata({
1402
1313
  type: Component,
1403
1314
  args: [{
1404
1315
  selector: "hx-badge",
1405
- template: "{{ value() }}",
1406
1316
  changeDetection: ChangeDetectionStrategy.OnPush,
1407
1317
  host: {
1408
1318
  class: "hx-badge",
@@ -1416,7 +1326,8 @@ i0.ɵɵngDeclareClassMetadata({
1416
1326
  "[class.hx-badge-sm]": "size() === 'small'",
1417
1327
  "[class.hx-badge-lg]": "size() === 'large'",
1418
1328
  "[class.hx-badge-xl]": "size() === 'xlarge'"
1419
- }
1329
+ },
1330
+ template: "{{ value() }}\n"
1420
1331
  }]
1421
1332
  }],
1422
1333
  propDecorators: {
@@ -1489,8 +1400,7 @@ var HxOverlayBadge = class HxOverlayBadge {
1489
1400
  },
1490
1401
  host: { classAttribute: "hx-overlay-badge" },
1491
1402
  ngImport: i0,
1492
- template: `<ng-content /><hx-badge class="hx-overlay-badge-badge" [value]="value()" [severity]="severity()" [size]="size()" />`,
1493
- isInline: true,
1403
+ template: "<ng-content /><hx-badge class=\"hx-overlay-badge-badge\" [value]=\"value()\" [severity]=\"severity()\" [size]=\"size()\" />\n",
1494
1404
  dependencies: [{
1495
1405
  kind: "component",
1496
1406
  type: HxBadge,
@@ -1514,9 +1424,9 @@ i0.ɵɵngDeclareClassMetadata({
1514
1424
  args: [{
1515
1425
  selector: "hx-overlay-badge",
1516
1426
  imports: [HxBadge],
1517
- template: `<ng-content /><hx-badge class="hx-overlay-badge-badge" [value]="value()" [severity]="severity()" [size]="size()" />`,
1518
1427
  changeDetection: ChangeDetectionStrategy.OnPush,
1519
- host: { class: "hx-overlay-badge" }
1428
+ host: { class: "hx-overlay-badge" },
1429
+ template: "<ng-content /><hx-badge class=\"hx-overlay-badge-badge\" [value]=\"value()\" [severity]=\"severity()\" [size]=\"size()\" />\n"
1520
1430
  }]
1521
1431
  }],
1522
1432
  propDecorators: {
@@ -1930,8 +1840,7 @@ var HxButtonGroup = class HxButtonGroup {
1930
1840
  classAttribute: "hx-button-group"
1931
1841
  },
1932
1842
  ngImport: i0,
1933
- template: "<ng-content />",
1934
- isInline: true,
1843
+ template: "<ng-content />\n",
1935
1844
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1936
1845
  });
1937
1846
  };
@@ -1944,13 +1853,13 @@ i0.ɵɵngDeclareClassMetadata({
1944
1853
  type: Component,
1945
1854
  args: [{
1946
1855
  selector: "hx-button-group",
1947
- template: "<ng-content />",
1948
1856
  changeDetection: ChangeDetectionStrategy.OnPush,
1949
1857
  host: {
1950
1858
  class: "hx-button-group",
1951
1859
  role: "group",
1952
1860
  "[attr.aria-label]": "ariaLabel() || null"
1953
- }
1861
+ },
1862
+ template: "<ng-content />\n"
1954
1863
  }]
1955
1864
  }],
1956
1865
  propDecorators: { ariaLabel: [{
@@ -2009,26 +1918,7 @@ var HxCard = class HxCard {
2009
1918
  },
2010
1919
  host: { classAttribute: "hx-card" },
2011
1920
  ngImport: i0,
2012
- template: `
2013
- <ng-template #titleText>{{ title() }}<ng-content select="[hxCardTitle]" /></ng-template>
2014
- <div class="hx-card-header"><ng-content select="[hxCardHeader]" /></div>
2015
- <div class="hx-card-body">
2016
- <div class="hx-card-caption">
2017
- @switch (level()) {
2018
- @case (1) { <h1 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h1> }
2019
- @case (2) { <h2 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h2> }
2020
- @case (3) { <h3 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h3> }
2021
- @case (4) { <h4 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h4> }
2022
- @case (5) { <h5 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h5> }
2023
- @default { <h6 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h6> }
2024
- }
2025
- <div class="hx-card-subtitle">{{ subtitle() }}<ng-content select="[hxCardSubtitle]" /></div>
2026
- </div>
2027
- <div class="hx-card-content"><ng-content /></div>
2028
- <div class="hx-card-footer"><ng-content select="[hxCardFooter]" /></div>
2029
- </div>
2030
- `,
2031
- isInline: true,
1921
+ template: "<ng-template #titleText>{{ title() }}<ng-content select=\"[hxCardTitle]\" /></ng-template>\n<div class=\"hx-card-header\"><ng-content select=\"[hxCardHeader]\" /></div>\n<div class=\"hx-card-body\">\n <div class=\"hx-card-caption\">\n @switch (level()) {\n @case (1) { <h1 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h1> }\n @case (2) { <h2 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h2> }\n @case (3) { <h3 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h3> }\n @case (4) { <h4 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h4> }\n @case (5) { <h5 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h5> }\n @default { <h6 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h6> }\n }\n <div class=\"hx-card-subtitle\">{{ subtitle() }}<ng-content select=\"[hxCardSubtitle]\" /></div>\n </div>\n <div class=\"hx-card-content\"><ng-content /></div>\n <div class=\"hx-card-footer\"><ng-content select=\"[hxCardFooter]\" /></div>\n</div>\n",
2032
1922
  dependencies: [{
2033
1923
  kind: "directive",
2034
1924
  type: NgTemplateOutlet,
@@ -2054,25 +1944,7 @@ i0.ɵɵngDeclareClassMetadata({
2054
1944
  imports: [NgTemplateOutlet],
2055
1945
  changeDetection: ChangeDetectionStrategy.OnPush,
2056
1946
  host: { class: "hx-card" },
2057
- template: `
2058
- <ng-template #titleText>{{ title() }}<ng-content select="[hxCardTitle]" /></ng-template>
2059
- <div class="hx-card-header"><ng-content select="[hxCardHeader]" /></div>
2060
- <div class="hx-card-body">
2061
- <div class="hx-card-caption">
2062
- @switch (level()) {
2063
- @case (1) { <h1 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h1> }
2064
- @case (2) { <h2 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h2> }
2065
- @case (3) { <h3 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h3> }
2066
- @case (4) { <h4 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h4> }
2067
- @case (5) { <h5 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h5> }
2068
- @default { <h6 class="hx-card-title"><ng-container [ngTemplateOutlet]="titleText" /></h6> }
2069
- }
2070
- <div class="hx-card-subtitle">{{ subtitle() }}<ng-content select="[hxCardSubtitle]" /></div>
2071
- </div>
2072
- <div class="hx-card-content"><ng-content /></div>
2073
- <div class="hx-card-footer"><ng-content select="[hxCardFooter]" /></div>
2074
- </div>
2075
- `
1947
+ template: "<ng-template #titleText>{{ title() }}<ng-content select=\"[hxCardTitle]\" /></ng-template>\n<div class=\"hx-card-header\"><ng-content select=\"[hxCardHeader]\" /></div>\n<div class=\"hx-card-body\">\n <div class=\"hx-card-caption\">\n @switch (level()) {\n @case (1) { <h1 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h1> }\n @case (2) { <h2 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h2> }\n @case (3) { <h3 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h3> }\n @case (4) { <h4 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h4> }\n @case (5) { <h5 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h5> }\n @default { <h6 class=\"hx-card-title\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h6> }\n }\n <div class=\"hx-card-subtitle\">{{ subtitle() }}<ng-content select=\"[hxCardSubtitle]\" /></div>\n </div>\n <div class=\"hx-card-content\"><ng-content /></div>\n <div class=\"hx-card-footer\"><ng-content select=\"[hxCardFooter]\" /></div>\n</div>\n"
2076
1948
  }]
2077
1949
  }],
2078
1950
  propDecorators: {
@@ -2760,20 +2632,7 @@ var HxChip = class HxChip {
2760
2632
  classAttribute: "hx-chip"
2761
2633
  },
2762
2634
  ngImport: i0,
2763
- template: `
2764
- @if (image()) {
2765
- <img class="hx-chip-image" [src]="image()" [alt]="imageAlt()" />
2766
- } @else if (icon()) {
2767
- <span class="hx-chip-icon" [class]="icon()" aria-hidden="true"></span>
2768
- }
2769
- <span class="hx-chip-label">{{ label() }}<ng-content /></span>
2770
- @if (removable()) {
2771
- <button type="button" class="hx-chip-remove" [attr.aria-label]="removeLabel()" (click)="remove.emit()">
2772
- <span class="hx-chip-remove-icon" aria-hidden="true"></span>
2773
- </button>
2774
- }
2775
- `,
2776
- isInline: true,
2635
+ template: "@if (image()) {\n <img class=\"hx-chip-image\" [src]=\"image()\" [alt]=\"imageAlt()\" />\n} @else if (icon()) {\n <span class=\"hx-chip-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n}\n<span class=\"hx-chip-label\">{{ label() }}<ng-content /></span>\n@if (removable()) {\n <button type=\"button\" class=\"hx-chip-remove\" [attr.aria-label]=\"removeLabel()\" (click)=\"remove.emit()\">\n <span class=\"hx-chip-remove-icon\" aria-hidden=\"true\"></span>\n </button>\n}\n",
2777
2636
  changeDetection: i0.ChangeDetectionStrategy.OnPush
2778
2637
  });
2779
2638
  };
@@ -2796,19 +2655,7 @@ i0.ɵɵngDeclareClassMetadata({
2796
2655
  "(keydown.backspace)": "onKey($event)",
2797
2656
  "(keydown.delete)": "onKey($event)"
2798
2657
  },
2799
- template: `
2800
- @if (image()) {
2801
- <img class="hx-chip-image" [src]="image()" [alt]="imageAlt()" />
2802
- } @else if (icon()) {
2803
- <span class="hx-chip-icon" [class]="icon()" aria-hidden="true"></span>
2804
- }
2805
- <span class="hx-chip-label">{{ label() }}<ng-content /></span>
2806
- @if (removable()) {
2807
- <button type="button" class="hx-chip-remove" [attr.aria-label]="removeLabel()" (click)="remove.emit()">
2808
- <span class="hx-chip-remove-icon" aria-hidden="true"></span>
2809
- </button>
2810
- }
2811
- `
2658
+ template: "@if (image()) {\n <img class=\"hx-chip-image\" [src]=\"image()\" [alt]=\"imageAlt()\" />\n} @else if (icon()) {\n <span class=\"hx-chip-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n}\n<span class=\"hx-chip-label\">{{ label() }}<ng-content /></span>\n@if (removable()) {\n <button type=\"button\" class=\"hx-chip-remove\" [attr.aria-label]=\"removeLabel()\" (click)=\"remove.emit()\">\n <span class=\"hx-chip-remove-icon\" aria-hidden=\"true\"></span>\n </button>\n}\n"
2812
2659
  }]
2813
2660
  }],
2814
2661
  propDecorators: {
@@ -2933,17 +2780,7 @@ var HxDialogFrame = class HxDialogFrame {
2933
2780
  outputs: { closeClick: "closeClick" },
2934
2781
  host: { classAttribute: "hx-dialog" },
2935
2782
  ngImport: i0,
2936
- template: `
2937
- <h2 class="hx-dialog-title" [id]="titleId()">{{ header() }}<ng-content select="[hxDialogHeader]" /></h2>
2938
- <div class="hx-dialog-content"><ng-content /></div>
2939
- <div class="hx-dialog-footer"><ng-content select="[hxDialogFooter]" /></div>
2940
- @if (closable()) {
2941
- <button type="button" class="hx-dialog-close" [attr.aria-label]="closeLabel()" (click)="closeClick.emit()">
2942
- <span class="hx-dialog-close-icon" aria-hidden="true"></span>
2943
- </button>
2944
- }
2945
- `,
2946
- isInline: true,
2783
+ template: "<h2 class=\"hx-dialog-title\" [id]=\"titleId()\">{{ header() }}<ng-content select=\"[hxDialogHeader]\" /></h2>\n<div class=\"hx-dialog-content\"><ng-content /></div>\n<div class=\"hx-dialog-footer\"><ng-content select=\"[hxDialogFooter]\" /></div>\n@if (closable()) {\n <button type=\"button\" class=\"hx-dialog-close\" [attr.aria-label]=\"closeLabel()\" (click)=\"closeClick.emit()\">\n <span class=\"hx-dialog-close-icon\" aria-hidden=\"true\"></span>\n </button>\n}\n",
2947
2784
  changeDetection: i0.ChangeDetectionStrategy.OnPush
2948
2785
  });
2949
2786
  };
@@ -2958,16 +2795,7 @@ i0.ɵɵngDeclareClassMetadata({
2958
2795
  selector: "hx-dialog-frame",
2959
2796
  changeDetection: ChangeDetectionStrategy.OnPush,
2960
2797
  host: { class: "hx-dialog" },
2961
- template: `
2962
- <h2 class="hx-dialog-title" [id]="titleId()">{{ header() }}<ng-content select="[hxDialogHeader]" /></h2>
2963
- <div class="hx-dialog-content"><ng-content /></div>
2964
- <div class="hx-dialog-footer"><ng-content select="[hxDialogFooter]" /></div>
2965
- @if (closable()) {
2966
- <button type="button" class="hx-dialog-close" [attr.aria-label]="closeLabel()" (click)="closeClick.emit()">
2967
- <span class="hx-dialog-close-icon" aria-hidden="true"></span>
2968
- </button>
2969
- }
2970
- `
2798
+ template: "<h2 class=\"hx-dialog-title\" [id]=\"titleId()\">{{ header() }}<ng-content select=\"[hxDialogHeader]\" /></h2>\n<div class=\"hx-dialog-content\"><ng-content /></div>\n<div class=\"hx-dialog-footer\"><ng-content select=\"[hxDialogFooter]\" /></div>\n@if (closable()) {\n <button type=\"button\" class=\"hx-dialog-close\" [attr.aria-label]=\"closeLabel()\" (click)=\"closeClick.emit()\">\n <span class=\"hx-dialog-close-icon\" aria-hidden=\"true\"></span>\n </button>\n}\n"
2971
2799
  }]
2972
2800
  }],
2973
2801
  propDecorators: {
@@ -3209,16 +3037,7 @@ var HxDialog = class HxDialog {
3209
3037
  isSignal: true
3210
3038
  }],
3211
3039
  ngImport: i0,
3212
- template: `
3213
- <ng-template #panel>
3214
- <hx-dialog-frame [header]="header()" [titleId]="titleId" [closable]="closable()" [closeLabel]="closeLabel()" (closeClick)="visible.set(false)">
3215
- <ng-container ngProjectAs="[hxDialogHeader]"><ng-content select="[hxDialogHeader]" /></ng-container>
3216
- <ng-content />
3217
- <ng-container ngProjectAs="[hxDialogFooter]"><ng-content select="[hxDialogFooter]" /></ng-container>
3218
- </hx-dialog-frame>
3219
- </ng-template>
3220
- `,
3221
- isInline: true,
3040
+ template: "<ng-template #panel>\n <hx-dialog-frame [header]=\"header()\" [titleId]=\"titleId\" [closable]=\"closable()\" [closeLabel]=\"closeLabel()\" (closeClick)=\"visible.set(false)\">\n <ng-container ngProjectAs=\"[hxDialogHeader]\"><ng-content select=\"[hxDialogHeader]\" /></ng-container>\n <ng-content />\n <ng-container ngProjectAs=\"[hxDialogFooter]\"><ng-content select=\"[hxDialogFooter]\" /></ng-container>\n </hx-dialog-frame>\n</ng-template>\n",
3222
3041
  dependencies: [{
3223
3042
  kind: "component",
3224
3043
  type: HxDialogFrame,
@@ -3246,15 +3065,7 @@ i0.ɵɵngDeclareClassMetadata({
3246
3065
  imports: [HxDialogFrame],
3247
3066
  changeDetection: ChangeDetectionStrategy.OnPush,
3248
3067
  host: { class: "hx-dialog-anchor" },
3249
- template: `
3250
- <ng-template #panel>
3251
- <hx-dialog-frame [header]="header()" [titleId]="titleId" [closable]="closable()" [closeLabel]="closeLabel()" (closeClick)="visible.set(false)">
3252
- <ng-container ngProjectAs="[hxDialogHeader]"><ng-content select="[hxDialogHeader]" /></ng-container>
3253
- <ng-content />
3254
- <ng-container ngProjectAs="[hxDialogFooter]"><ng-content select="[hxDialogFooter]" /></ng-container>
3255
- </hx-dialog-frame>
3256
- </ng-template>
3257
- `
3068
+ template: "<ng-template #panel>\n <hx-dialog-frame [header]=\"header()\" [titleId]=\"titleId\" [closable]=\"closable()\" [closeLabel]=\"closeLabel()\" (closeClick)=\"visible.set(false)\">\n <ng-container ngProjectAs=\"[hxDialogHeader]\"><ng-content select=\"[hxDialogHeader]\" /></ng-container>\n <ng-content />\n <ng-container ngProjectAs=\"[hxDialogFooter]\"><ng-content select=\"[hxDialogFooter]\" /></ng-container>\n </hx-dialog-frame>\n</ng-template>\n"
3258
3069
  }]
3259
3070
  }],
3260
3071
  ctorParameters: () => [],
@@ -3426,18 +3237,7 @@ var HxDialogHost = class HxDialogHost {
3426
3237
  isSignal: true
3427
3238
  }],
3428
3239
  ngImport: i0,
3429
- template: `
3430
- <hx-dialog-frame
3431
- [header]="data.config.header"
3432
- [titleId]="data.titleId"
3433
- [closable]="data.config.closable ?? true"
3434
- [closeLabel]="data.config.closeLabel ?? 'Close'"
3435
- (closeClick)="data.ref.close()"
3436
- >
3437
- <ng-container [ngComponentOutlet]="data.component" [ngComponentOutletInjector]="injector" />
3438
- </hx-dialog-frame>
3439
- `,
3440
- isInline: true,
3240
+ template: "<hx-dialog-frame\n [header]=\"data.config.header\"\n [titleId]=\"data.titleId\"\n [closable]=\"data.config.closable ?? true\"\n [closeLabel]=\"data.config.closeLabel ?? 'Close'\"\n (closeClick)=\"data.ref.close()\"\n>\n <ng-container [ngComponentOutlet]=\"data.component\" [ngComponentOutletInjector]=\"injector\" />\n</hx-dialog-frame>\n",
3441
3241
  dependencies: [{
3442
3242
  kind: "component",
3443
3243
  type: HxDialogFrame,
@@ -3477,17 +3277,7 @@ i0.ɵɵngDeclareClassMetadata({
3477
3277
  selector: "hx-dialog-host",
3478
3278
  imports: [HxDialogFrame, NgComponentOutlet],
3479
3279
  changeDetection: ChangeDetectionStrategy.OnPush,
3480
- template: `
3481
- <hx-dialog-frame
3482
- [header]="data.config.header"
3483
- [titleId]="data.titleId"
3484
- [closable]="data.config.closable ?? true"
3485
- [closeLabel]="data.config.closeLabel ?? 'Close'"
3486
- (closeClick)="data.ref.close()"
3487
- >
3488
- <ng-container [ngComponentOutlet]="data.component" [ngComponentOutletInjector]="injector" />
3489
- </hx-dialog-frame>
3490
- `
3280
+ template: "<hx-dialog-frame\n [header]=\"data.config.header\"\n [titleId]=\"data.titleId\"\n [closable]=\"data.config.closable ?? true\"\n [closeLabel]=\"data.config.closeLabel ?? 'Close'\"\n (closeClick)=\"data.ref.close()\"\n>\n <ng-container [ngComponentOutlet]=\"data.component\" [ngComponentOutletInjector]=\"injector\" />\n</hx-dialog-frame>\n"
3491
3281
  }]
3492
3282
  }],
3493
3283
  ctorParameters: () => [],
@@ -3737,35 +3527,7 @@ var HxPopover = class HxPopover {
3737
3527
  isSignal: true
3738
3528
  }],
3739
3529
  ngImport: i0,
3740
- template: `
3741
- <ng-template
3742
- cdkConnectedOverlay
3743
- cdkConnectedOverlayPanelClass="hx-popover-overlay"
3744
- [cdkConnectedOverlayOrigin]="origin() ?? fallbackOrigin"
3745
- [cdkConnectedOverlayOpen]="open()"
3746
- [cdkConnectedOverlayPositions]="positions"
3747
- (overlayOutsideClick)="onOutsideClick($event)"
3748
- (overlayKeydown)="onKeydown($event)"
3749
- (positionChange)="onPosition($event)"
3750
- (attach)="onAttach()"
3751
- (detach)="onDetach()"
3752
- >
3753
- <div
3754
- #panel
3755
- class="hx-popover"
3756
- [class]="panelClass() ?? ''"
3757
- [attr.role]="role()"
3758
- [class.hx-popover-above]="above()"
3759
- [class.hx-popover-end]="end()"
3760
- [attr.aria-label]="ariaLabel() || null"
3761
- [attr.aria-labelledby]="ariaLabelledBy() || null"
3762
- [attr.aria-describedby]="ariaDescribedBy() || null"
3763
- >
3764
- <div class="hx-popover-content"><ng-content /></div>
3765
- </div>
3766
- </ng-template>
3767
- `,
3768
- isInline: true,
3530
+ template: "<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-popover-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin() ?? fallbackOrigin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onKeydown($event)\"\n (positionChange)=\"onPosition($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"onDetach()\"\n>\n <div\n #panel\n class=\"hx-popover\"\n [class]=\"panelClass() ?? ''\"\n [attr.role]=\"role()\"\n [class.hx-popover-above]=\"above()\"\n [class.hx-popover-end]=\"end()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n >\n <div class=\"hx-popover-content\"><ng-content /></div>\n </div>\n</ng-template>\n",
3769
3531
  dependencies: [{
3770
3532
  kind: "directive",
3771
3533
  type: CdkConnectedOverlay,
@@ -3822,34 +3584,7 @@ i0.ɵɵngDeclareClassMetadata({
3822
3584
  imports: [CdkConnectedOverlay],
3823
3585
  changeDetection: ChangeDetectionStrategy.OnPush,
3824
3586
  host: { class: "hx-popover-anchor" },
3825
- template: `
3826
- <ng-template
3827
- cdkConnectedOverlay
3828
- cdkConnectedOverlayPanelClass="hx-popover-overlay"
3829
- [cdkConnectedOverlayOrigin]="origin() ?? fallbackOrigin"
3830
- [cdkConnectedOverlayOpen]="open()"
3831
- [cdkConnectedOverlayPositions]="positions"
3832
- (overlayOutsideClick)="onOutsideClick($event)"
3833
- (overlayKeydown)="onKeydown($event)"
3834
- (positionChange)="onPosition($event)"
3835
- (attach)="onAttach()"
3836
- (detach)="onDetach()"
3837
- >
3838
- <div
3839
- #panel
3840
- class="hx-popover"
3841
- [class]="panelClass() ?? ''"
3842
- [attr.role]="role()"
3843
- [class.hx-popover-above]="above()"
3844
- [class.hx-popover-end]="end()"
3845
- [attr.aria-label]="ariaLabel() || null"
3846
- [attr.aria-labelledby]="ariaLabelledBy() || null"
3847
- [attr.aria-describedby]="ariaDescribedBy() || null"
3848
- >
3849
- <div class="hx-popover-content"><ng-content /></div>
3850
- </div>
3851
- </ng-template>
3852
- `
3587
+ template: "<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-popover-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin() ?? fallbackOrigin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onKeydown($event)\"\n (positionChange)=\"onPosition($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"onDetach()\"\n>\n <div\n #panel\n class=\"hx-popover\"\n [class]=\"panelClass() ?? ''\"\n [attr.role]=\"role()\"\n [class.hx-popover-above]=\"above()\"\n [class.hx-popover-end]=\"end()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n >\n <div class=\"hx-popover-content\"><ng-content /></div>\n </div>\n</ng-template>\n"
3853
3588
  }]
3854
3589
  }],
3855
3590
  propDecorators: {
@@ -4055,25 +3790,7 @@ var HxConfirmDialog = class HxConfirmDialog {
4055
3790
  isSignal: true
4056
3791
  }],
4057
3792
  ngImport: i0,
4058
- template: `
4059
- <ng-template #panel>
4060
- @if (current(); as c) {
4061
- <hx-dialog-frame [header]="c.header" [titleId]="titleId" [closable]="false">
4062
- <div class="hx-confirm-content">
4063
- @if (c.icon) {
4064
- <span class="hx-confirm-icon" [class]="c.icon" aria-hidden="true"></span>
4065
- }
4066
- <p class="hx-confirm-message" [id]="messageId">{{ c.message }}</p>
4067
- </div>
4068
- <ng-container ngProjectAs="[hxDialogFooter]">
4069
- <button hx-button type="button" variant="text" severity="secondary" class="hx-confirm-reject" (click)="answer(false)">{{ c.rejectLabel ?? 'No' }}</button>
4070
- <button hx-button type="button" class="hx-confirm-accept" [severity]="c.acceptSeverity ?? 'primary'" (click)="answer(true)">{{ c.acceptLabel ?? 'Yes' }}</button>
4071
- </ng-container>
4072
- </hx-dialog-frame>
4073
- }
4074
- </ng-template>
4075
- `,
4076
- isInline: true,
3793
+ template: "<ng-template #panel>\n @if (current(); as c) {\n <hx-dialog-frame [header]=\"c.header\" [titleId]=\"titleId\" [closable]=\"false\">\n <div class=\"hx-confirm-content\">\n @if (c.icon) {\n <span class=\"hx-confirm-icon\" [class]=\"c.icon\" aria-hidden=\"true\"></span>\n }\n <p class=\"hx-confirm-message\" [id]=\"messageId\">{{ c.message }}</p>\n </div>\n <ng-container ngProjectAs=\"[hxDialogFooter]\">\n <button hx-button type=\"button\" variant=\"text\" severity=\"secondary\" class=\"hx-confirm-reject\" (click)=\"answer(false)\">{{ c.rejectLabel ?? 'No' }}</button>\n <button hx-button type=\"button\" class=\"hx-confirm-accept\" [severity]=\"c.acceptSeverity ?? 'primary'\" (click)=\"answer(true)\">{{ c.acceptLabel ?? 'Yes' }}</button>\n </ng-container>\n </hx-dialog-frame>\n }\n</ng-template>\n",
4077
3794
  dependencies: [{
4078
3795
  kind: "component",
4079
3796
  type: HxDialogFrame,
@@ -4116,24 +3833,7 @@ i0.ɵɵngDeclareClassMetadata({
4116
3833
  imports: [HxDialogFrame, HxButton],
4117
3834
  changeDetection: ChangeDetectionStrategy.OnPush,
4118
3835
  host: { class: "hx-confirm-anchor" },
4119
- template: `
4120
- <ng-template #panel>
4121
- @if (current(); as c) {
4122
- <hx-dialog-frame [header]="c.header" [titleId]="titleId" [closable]="false">
4123
- <div class="hx-confirm-content">
4124
- @if (c.icon) {
4125
- <span class="hx-confirm-icon" [class]="c.icon" aria-hidden="true"></span>
4126
- }
4127
- <p class="hx-confirm-message" [id]="messageId">{{ c.message }}</p>
4128
- </div>
4129
- <ng-container ngProjectAs="[hxDialogFooter]">
4130
- <button hx-button type="button" variant="text" severity="secondary" class="hx-confirm-reject" (click)="answer(false)">{{ c.rejectLabel ?? 'No' }}</button>
4131
- <button hx-button type="button" class="hx-confirm-accept" [severity]="c.acceptSeverity ?? 'primary'" (click)="answer(true)">{{ c.acceptLabel ?? 'Yes' }}</button>
4132
- </ng-container>
4133
- </hx-dialog-frame>
4134
- }
4135
- </ng-template>
4136
- `
3836
+ template: "<ng-template #panel>\n @if (current(); as c) {\n <hx-dialog-frame [header]=\"c.header\" [titleId]=\"titleId\" [closable]=\"false\">\n <div class=\"hx-confirm-content\">\n @if (c.icon) {\n <span class=\"hx-confirm-icon\" [class]=\"c.icon\" aria-hidden=\"true\"></span>\n }\n <p class=\"hx-confirm-message\" [id]=\"messageId\">{{ c.message }}</p>\n </div>\n <ng-container ngProjectAs=\"[hxDialogFooter]\">\n <button hx-button type=\"button\" variant=\"text\" severity=\"secondary\" class=\"hx-confirm-reject\" (click)=\"answer(false)\">{{ c.rejectLabel ?? 'No' }}</button>\n <button hx-button type=\"button\" class=\"hx-confirm-accept\" [severity]=\"c.acceptSeverity ?? 'primary'\" (click)=\"answer(true)\">{{ c.acceptLabel ?? 'Yes' }}</button>\n </ng-container>\n </hx-dialog-frame>\n }\n</ng-template>\n"
4137
3837
  }]
4138
3838
  }],
4139
3839
  ctorParameters: () => [],
@@ -4195,23 +3895,7 @@ var HxConfirmPopup = class HxConfirmPopup {
4195
3895
  isSignal: true
4196
3896
  }],
4197
3897
  ngImport: i0,
4198
- template: `
4199
- <hx-popover #popover role="alertdialog" panelClass="hx-confirm-popup" ariaLabel="Confirmation" [ariaDescribedBy]="messageId" (hidden)="onHidden()">
4200
- @if (current(); as c) {
4201
- <div class="hx-confirm-popup-content">
4202
- @if (c.icon) {
4203
- <span class="hx-confirm-popup-icon" [class]="c.icon" aria-hidden="true"></span>
4204
- }
4205
- <span class="hx-confirm-popup-message" [id]="messageId">{{ c.message }}</span>
4206
- </div>
4207
- <div class="hx-confirm-popup-footer">
4208
- <button hx-button type="button" variant="text" severity="secondary" size="small" class="hx-confirm-reject" (click)="answer(false)">{{ c.rejectLabel ?? 'No' }}</button>
4209
- <button hx-button type="button" size="small" class="hx-confirm-accept" [severity]="c.acceptSeverity ?? 'primary'" (click)="answer(true)">{{ c.acceptLabel ?? 'Yes' }}</button>
4210
- </div>
4211
- }
4212
- </hx-popover>
4213
- `,
4214
- isInline: true,
3898
+ template: "<hx-popover #popover role=\"alertdialog\" panelClass=\"hx-confirm-popup\" ariaLabel=\"Confirmation\" [ariaDescribedBy]=\"messageId\" (hidden)=\"onHidden()\">\n @if (current(); as c) {\n <div class=\"hx-confirm-popup-content\">\n @if (c.icon) {\n <span class=\"hx-confirm-popup-icon\" [class]=\"c.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-confirm-popup-message\" [id]=\"messageId\">{{ c.message }}</span>\n </div>\n <div class=\"hx-confirm-popup-footer\">\n <button hx-button type=\"button\" variant=\"text\" severity=\"secondary\" size=\"small\" class=\"hx-confirm-reject\" (click)=\"answer(false)\">{{ c.rejectLabel ?? 'No' }}</button>\n <button hx-button type=\"button\" size=\"small\" class=\"hx-confirm-accept\" [severity]=\"c.acceptSeverity ?? 'primary'\" (click)=\"answer(true)\">{{ c.acceptLabel ?? 'Yes' }}</button>\n </div>\n }\n</hx-popover>\n",
4215
3899
  dependencies: [{
4216
3900
  kind: "component",
4217
3901
  type: HxPopover,
@@ -4257,22 +3941,7 @@ i0.ɵɵngDeclareClassMetadata({
4257
3941
  imports: [HxPopover, HxButton],
4258
3942
  changeDetection: ChangeDetectionStrategy.OnPush,
4259
3943
  host: { class: "hx-confirm-anchor" },
4260
- template: `
4261
- <hx-popover #popover role="alertdialog" panelClass="hx-confirm-popup" ariaLabel="Confirmation" [ariaDescribedBy]="messageId" (hidden)="onHidden()">
4262
- @if (current(); as c) {
4263
- <div class="hx-confirm-popup-content">
4264
- @if (c.icon) {
4265
- <span class="hx-confirm-popup-icon" [class]="c.icon" aria-hidden="true"></span>
4266
- }
4267
- <span class="hx-confirm-popup-message" [id]="messageId">{{ c.message }}</span>
4268
- </div>
4269
- <div class="hx-confirm-popup-footer">
4270
- <button hx-button type="button" variant="text" severity="secondary" size="small" class="hx-confirm-reject" (click)="answer(false)">{{ c.rejectLabel ?? 'No' }}</button>
4271
- <button hx-button type="button" size="small" class="hx-confirm-accept" [severity]="c.acceptSeverity ?? 'primary'" (click)="answer(true)">{{ c.acceptLabel ?? 'Yes' }}</button>
4272
- </div>
4273
- }
4274
- </hx-popover>
4275
- `
3944
+ template: "<hx-popover #popover role=\"alertdialog\" panelClass=\"hx-confirm-popup\" ariaLabel=\"Confirmation\" [ariaDescribedBy]=\"messageId\" (hidden)=\"onHidden()\">\n @if (current(); as c) {\n <div class=\"hx-confirm-popup-content\">\n @if (c.icon) {\n <span class=\"hx-confirm-popup-icon\" [class]=\"c.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-confirm-popup-message\" [id]=\"messageId\">{{ c.message }}</span>\n </div>\n <div class=\"hx-confirm-popup-footer\">\n <button hx-button type=\"button\" variant=\"text\" severity=\"secondary\" size=\"small\" class=\"hx-confirm-reject\" (click)=\"answer(false)\">{{ c.rejectLabel ?? 'No' }}</button>\n <button hx-button type=\"button\" size=\"small\" class=\"hx-confirm-accept\" [severity]=\"c.acceptSeverity ?? 'primary'\" (click)=\"answer(true)\">{{ c.acceptLabel ?? 'Yes' }}</button>\n </div>\n }\n</hx-popover>\n"
4276
3945
  }]
4277
3946
  }],
4278
3947
  ctorParameters: () => [],
@@ -5671,14 +5340,7 @@ var HxProgressBar = class HxProgressBar {
5671
5340
  classAttribute: "hx-progress-bar"
5672
5341
  },
5673
5342
  ngImport: i0,
5674
- template: `
5675
- <div class="hx-progress-bar-value" [style.width.%]="indeterminate() ? null : clamped()">
5676
- @if (showValue() && !indeterminate()) {
5677
- <span class="hx-progress-bar-label">{{ clamped() }}{{ unit() }}</span>
5678
- }
5679
- </div>
5680
- `,
5681
- isInline: true,
5343
+ template: "<div class=\"hx-progress-bar-value\" [style.width.%]=\"indeterminate() ? null : clamped()\">\n @if (showValue() && !indeterminate()) {\n <span class=\"hx-progress-bar-label\">{{ clamped() }}{{ unit() }}</span>\n }\n</div>\n",
5682
5344
  changeDetection: i0.ChangeDetectionStrategy.OnPush
5683
5345
  });
5684
5346
  };
@@ -5701,13 +5363,7 @@ i0.ɵɵngDeclareClassMetadata({
5701
5363
  "[attr.aria-label]": "ariaLabel() || null",
5702
5364
  "[class.hx-progress-bar-indeterminate]": "indeterminate()"
5703
5365
  },
5704
- template: `
5705
- <div class="hx-progress-bar-value" [style.width.%]="indeterminate() ? null : clamped()">
5706
- @if (showValue() && !indeterminate()) {
5707
- <span class="hx-progress-bar-label">{{ clamped() }}{{ unit() }}</span>
5708
- }
5709
- </div>
5710
- `
5366
+ template: "<div class=\"hx-progress-bar-value\" [style.width.%]=\"indeterminate() ? null : clamped()\">\n @if (showValue() && !indeterminate()) {\n <span class=\"hx-progress-bar-label\">{{ clamped() }}{{ unit() }}</span>\n }\n</div>\n"
5711
5367
  }]
5712
5368
  }],
5713
5369
  propDecorators: {
@@ -5800,12 +5456,7 @@ var HxProgressSpinner = class HxProgressSpinner {
5800
5456
  classAttribute: "hx-progress-spinner"
5801
5457
  },
5802
5458
  ngImport: i0,
5803
- template: `
5804
- <svg class="hx-progress-spinner-svg" viewBox="25 25 50 50" aria-hidden="true" [style.animation-duration]="animationDuration()">
5805
- <circle class="hx-progress-spinner-circle" cx="50" cy="50" r="20" fill="none" [attr.stroke-width]="strokeWidth()" stroke-miterlimit="10" [style.animation-duration]="animationDuration()" />
5806
- </svg>
5807
- `,
5808
- isInline: true,
5459
+ template: "<svg class=\"hx-progress-spinner-svg\" viewBox=\"25 25 50 50\" aria-hidden=\"true\" [style.animation-duration]=\"animationDuration()\">\n <circle class=\"hx-progress-spinner-circle\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" [attr.stroke-width]=\"strokeWidth()\" stroke-miterlimit=\"10\" [style.animation-duration]=\"animationDuration()\" />\n</svg>\n",
5809
5460
  changeDetection: i0.ChangeDetectionStrategy.OnPush
5810
5461
  });
5811
5462
  };
@@ -5824,11 +5475,7 @@ i0.ɵɵngDeclareClassMetadata({
5824
5475
  role: "progressbar",
5825
5476
  "[attr.aria-label]": "ariaLabel()"
5826
5477
  },
5827
- template: `
5828
- <svg class="hx-progress-spinner-svg" viewBox="25 25 50 50" aria-hidden="true" [style.animation-duration]="animationDuration()">
5829
- <circle class="hx-progress-spinner-circle" cx="50" cy="50" r="20" fill="none" [attr.stroke-width]="strokeWidth()" stroke-miterlimit="10" [style.animation-duration]="animationDuration()" />
5830
- </svg>
5831
- `
5478
+ template: "<svg class=\"hx-progress-spinner-svg\" viewBox=\"25 25 50 50\" aria-hidden=\"true\" [style.animation-duration]=\"animationDuration()\">\n <circle class=\"hx-progress-spinner-circle\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" [attr.stroke-width]=\"strokeWidth()\" stroke-miterlimit=\"10\" [style.animation-duration]=\"animationDuration()\" />\n</svg>\n"
5832
5479
  }]
5833
5480
  }],
5834
5481
  propDecorators: {
@@ -7875,7 +7522,7 @@ i0.ɵɵngDeclareClassMetadata({
7875
7522
  });
7876
7523
  function parseDateText(text, locale) {
7877
7524
  const numbers = text.match(/\d+/g)?.map(Number);
7878
- if (!numbers || numbers.length !== 3) return null;
7525
+ if (numbers?.length !== 3) return null;
7879
7526
  let [year, month, day] = [
7880
7527
  0,
7881
7528
  0,
@@ -8020,36 +7667,7 @@ var HxRangePresets = class HxRangePresets {
8020
7667
  isSignal: true
8021
7668
  }],
8022
7669
  ngImport: i0,
8023
- template: `
8024
- @if (display() === 'select') {
8025
- <hx-select
8026
- class="hx-range-preset-select"
8027
- fluid
8028
- [options]="presets()"
8029
- optionLabel="label"
8030
- [optionValue]="presetValue"
8031
- [placeholder]="label()"
8032
- [ariaLabel]="label()"
8033
- [ariaDescribedby]="describedBy()"
8034
- [disabled]="disabled()"
8035
- [value]="selected()"
8036
- (valueChange)="chooseInSelect($event)"
8037
- />
8038
- } @else {
8039
- @for (preset of presets(); track $index) {
8040
- <button
8041
- type="button"
8042
- class="hx-date-picker-button hx-range-preset"
8043
- [disabled]="disabled()"
8044
- [attr.aria-describedby]="describedBy()"
8045
- (click)="chosen.emit(preset)"
8046
- >
8047
- {{ preset.label }}
8048
- </button>
8049
- }
8050
- }
8051
- `,
8052
- isInline: true,
7670
+ template: "@if (display() === 'select') {\n <hx-select\n class=\"hx-range-preset-select\"\n fluid\n [options]=\"presets()\"\n optionLabel=\"label\"\n [optionValue]=\"presetValue\"\n [placeholder]=\"label()\"\n [ariaLabel]=\"label()\"\n [ariaDescribedby]=\"describedBy()\"\n [disabled]=\"disabled()\"\n [value]=\"selected()\"\n (valueChange)=\"chooseInSelect($event)\"\n />\n} @else {\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"hx-date-picker-button hx-range-preset\"\n [disabled]=\"disabled()\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"chosen.emit(preset)\"\n >\n {{ preset.label }}\n </button>\n }\n}\n",
8053
7671
  dependencies: [{
8054
7672
  kind: "component",
8055
7673
  type: HxSelect,
@@ -8093,42 +7711,14 @@ i0.ɵɵngDeclareClassMetadata({
8093
7711
  args: [{
8094
7712
  selector: "hx-range-presets",
8095
7713
  imports: [HxSelect],
8096
- template: `
8097
- @if (display() === 'select') {
8098
- <hx-select
8099
- class="hx-range-preset-select"
8100
- fluid
8101
- [options]="presets()"
8102
- optionLabel="label"
8103
- [optionValue]="presetValue"
8104
- [placeholder]="label()"
8105
- [ariaLabel]="label()"
8106
- [ariaDescribedby]="describedBy()"
8107
- [disabled]="disabled()"
8108
- [value]="selected()"
8109
- (valueChange)="chooseInSelect($event)"
8110
- />
8111
- } @else {
8112
- @for (preset of presets(); track $index) {
8113
- <button
8114
- type="button"
8115
- class="hx-date-picker-button hx-range-preset"
8116
- [disabled]="disabled()"
8117
- [attr.aria-describedby]="describedBy()"
8118
- (click)="chosen.emit(preset)"
8119
- >
8120
- {{ preset.label }}
8121
- </button>
8122
- }
8123
- }
8124
- `,
8125
7714
  changeDetection: ChangeDetectionStrategy.OnPush,
8126
7715
  host: {
8127
7716
  class: "hx-range-presets",
8128
7717
  "[class.hx-range-presets-select]": "display() === 'select'",
8129
7718
  "[attr.role]": "display() === 'select' ? null : 'group'",
8130
7719
  "[attr.aria-label]": "display() === 'select' ? null : label()"
8131
- }
7720
+ },
7721
+ template: "@if (display() === 'select') {\n <hx-select\n class=\"hx-range-preset-select\"\n fluid\n [options]=\"presets()\"\n optionLabel=\"label\"\n [optionValue]=\"presetValue\"\n [placeholder]=\"label()\"\n [ariaLabel]=\"label()\"\n [ariaDescribedby]=\"describedBy()\"\n [disabled]=\"disabled()\"\n [value]=\"selected()\"\n (valueChange)=\"chooseInSelect($event)\"\n />\n} @else {\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"hx-date-picker-button hx-range-preset\"\n [disabled]=\"disabled()\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"chosen.emit(preset)\"\n >\n {{ preset.label }}\n </button>\n }\n}\n"
8132
7722
  }]
8133
7723
  }],
8134
7724
  propDecorators: {
@@ -9386,10 +8976,12 @@ function readRecentRanges(key) {
9386
8976
  try {
9387
8977
  const parsed = JSON.parse(text ?? "[]");
9388
8978
  if (!Array.isArray(parsed)) return [];
9389
- return parsed.filter(isRange).reduce((list, { from, to }) => list.some((r) => r.from === from && r.to === to) ? list : [...list, {
8979
+ const list = [];
8980
+ for (const { from, to } of parsed.filter(isRange)) if (!list.some((r) => r.from === from && r.to === to)) list.push({
9390
8981
  from,
9391
8982
  to
9392
- }], []).slice(0, 5);
8983
+ });
8984
+ return list.slice(0, 5);
9393
8985
  } catch {
9394
8986
  return [];
9395
8987
  }
@@ -10140,7 +9732,7 @@ var HxDateRangeQuickSelect = class HxDateRangeQuickSelect {
10140
9732
  }
10141
9733
  ],
10142
9734
  ngImport: i0,
10143
- template: "<div\n class=\"hx-date-picker hx-date-picker-has-icon hx-date-range-quick-select-control\"\n [class.hx-date-picker-open]=\"open()\"\n [class.hx-date-picker-disabled]=\"isDisabled()\"\n [class.hx-date-picker-invalid]=\"invalid()\"\n>\n <div class=\"hx-date-picker-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n <input\n #field\n type=\"text\"\n readonly\n class=\"hx-date-picker-input\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"text()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? popupId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (click)=\"show()\"\n (keydown)=\"onFieldKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"chooseLabel()\"\n [attr.aria-expanded]=\"open()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-date-picker-trigger-icon\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-date-picker-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"close()\"\n >\n @let l = texts();\n <div\n class=\"hx-date-picker-popup hx-date-range-quick-select-popup\"\n role=\"dialog\"\n aria-modal=\"false\"\n [id]=\"popupId\"\n [attr.aria-label]=\"ariaLabel() ?? chooseLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n (focusout)=\"onPopupFocusOut($event)\"\n >\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-quick'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-quick'\">{{ l.quickSelect }}</span>\n <div class=\"hx-date-range-quick-select-row\">\n <hx-select\n #quickFirst\n class=\"hx-date-range-quick-select-direction\"\n [options]=\"directionOptions()\"\n [ariaLabel]=\"l.direction\"\n [value]=\"quickDirection()\"\n (valueChange)=\"setQuickDirection($event)\"\n />\n <input\n hx-input\n type=\"number\"\n min=\"1\"\n step=\"1\"\n class=\"hx-date-range-quick-select-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"quickError() ? 'true' : null\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n [value]=\"quickAmount()\"\n (input)=\"setQuickAmount($event)\"\n (keydown.enter)=\"$event.preventDefault(); applyQuick()\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-unit\"\n [options]=\"unitOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"quickUnit()\"\n (valueChange)=\"setQuickUnit($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-button hx-date-range-quick-select-apply\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n (click)=\"applyQuick()\"\n >\n {{ l.apply }}\n </button>\n </div>\n </section>\n @if (commonlyUsed().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-common'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-common'\">{{ l.commonlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-common\">\n @for (range of commonlyUsed(); track $index) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(range)\">{{ range.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n @if (recentItems().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-recent'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-recent'\">{{ l.recentlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-recent\">\n @for (item of recentItems(); track item.range.from + ' ' + item.range.to) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(item.range)\">{{ item.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n <!-- one line per side; a click opens the editor of that side (Absolute / Relative / Now) below -->\n <div class=\"hx-date-range-quick-select-summary\" role=\"group\" [attr.aria-label]=\"l.range\">\n @for (s of sideKeys; track s) {\n <button\n #sideButton\n type=\"button\"\n class=\"hx-date-range-quick-select-side-line\"\n [class]=\"'hx-date-range-quick-select-side-line-' + s\"\n [id]=\"sideButtonId(s)\"\n [attr.aria-expanded]=\"openSide() === s\"\n [attr.aria-controls]=\"openSide() === s ? editorId(s) : null\"\n (click)=\"toggleSide(s)\"\n >\n <span class=\"hx-date-range-quick-select-side-name\">{{ s === 'from' ? l.start : l.end }}</span>&ngsp;\n <span class=\"hx-date-range-quick-select-side-value\">{{ sideSummary(s) }}</span>\n </button>\n }\n </div>\n @if (openSide(); as s) {\n @let state = sides()[s];\n @let sideName = s === 'from' ? l.start : l.end;\n <section\n class=\"hx-date-range-quick-select-editor\"\n [class]=\"'hx-date-range-quick-select-editor-' + s\"\n [id]=\"editorId(s)\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n >\n <div\n class=\"hx-date-range-quick-select-tabs\"\n role=\"tablist\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n (keydown)=\"onTabKeydown(s, $event)\"\n >\n @for (mode of sideModes; track mode) {\n <button\n #sideTab\n type=\"button\"\n role=\"tab\"\n class=\"hx-date-range-quick-select-tab\"\n [id]=\"tabId(s, mode)\"\n [attr.aria-selected]=\"state.mode === mode\"\n [attr.aria-controls]=\"panelId(s)\"\n [attr.tabindex]=\"state.mode === mode ? 0 : -1\"\n (click)=\"setSideMode(s, mode)\"\n >\n {{ mode === 'absolute' ? l.absolute : mode === 'relative' ? l.relative : l.now }}\n </button>\n }\n </div>\n <div\n class=\"hx-date-range-quick-select-tabpanel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId(s)\"\n [attr.aria-labelledby]=\"tabId(s, state.mode)\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n >\n @switch (state.mode) {\n @case ('absolute') {\n <input\n hx-input\n fluid\n type=\"text\"\n autocomplete=\"off\"\n class=\"hx-date-range-quick-select-side-date\"\n [attr.aria-label]=\"sideName + ' ' + l.date\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"sideText(s)\"\n (change)=\"setAbsoluteSide(s, $event)\"\n (keydown.enter)=\"$event.preventDefault(); setAbsoluteSide(s, $event)\"\n />\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n <div class=\"hx-date-range-quick-select-calendar\" role=\"group\" [attr.aria-label]=\"sideName + ' ' + l.date\">\n <hx-calendar\n [(focusedDate)]=\"calendarFocus\"\n [(view)]=\"calendarView\"\n [selectedDates]=\"sideDays(s)\"\n selectionMode=\"single\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [firstDayOfWeek]=\"firstDayOfWeek()\"\n [locale]=\"locale()\"\n [disabled]=\"isDisabled()\"\n [titleId]=\"calendarTitleId\"\n [today]=\"today()\"\n (picked)=\"pickDay(s, $event)\"\n />\n </div>\n }\n @case ('relative') {\n <div class=\"hx-date-range-quick-select-row\">\n <input\n hx-input\n type=\"number\"\n min=\"0\"\n step=\"1\"\n class=\"hx-date-range-quick-select-side-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"state.amount ?? ''\"\n (input)=\"setSideAmount(s, $event)\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-side-unit\"\n [options]=\"relativeOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"sideUnitValue(s)\"\n (valueChange)=\"setSideUnit(s, $event)\"\n />\n </div>\n <label class=\"hx-date-range-quick-select-side-round\">\n <input type=\"checkbox\" hx-checkbox [checked]=\"state.round\" (change)=\"setSideRound(s, $event)\" />\n {{ sideRoundLabel(s) }}\n </label>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <code class=\"hx-date-range-quick-select-expression\">{{ sideExpressionText(s) }}</code>&ngsp;\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n @case ('now') {\n <p class=\"hx-date-range-quick-select-now-hint\">{{ l.nowHint }}</p>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n }\n </div>\n </section>\n }\n @if (quickError() || sideError()) {\n <p class=\"hx-date-range-quick-select-error\" role=\"alert\" [id]=\"quickErrorId\">{{ l.incompleteRange }}</p>\n }\n </div>\n </ng-template>\n</div>\n",
9735
+ template: "<div\n class=\"hx-date-picker hx-date-picker-has-icon hx-date-range-quick-select-control\"\n [class.hx-date-picker-open]=\"open()\"\n [class.hx-date-picker-disabled]=\"isDisabled()\"\n [class.hx-date-picker-invalid]=\"invalid()\"\n>\n <div class=\"hx-date-picker-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n <input\n #field\n type=\"text\"\n readonly\n class=\"hx-date-picker-input\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"text()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? popupId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (click)=\"show()\"\n (keydown)=\"onFieldKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"chooseLabel()\"\n [attr.aria-expanded]=\"open()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-date-picker-trigger-icon\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-date-picker-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"close()\"\n >\n @let l = texts();\n <div\n class=\"hx-date-picker-popup hx-date-range-quick-select-popup\"\n role=\"dialog\"\n aria-modal=\"false\"\n [id]=\"popupId\"\n [attr.aria-label]=\"ariaLabel() ?? chooseLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n (focusout)=\"onPopupFocusOut($event)\"\n >\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-quick'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-quick'\">{{ l.quickSelect }}</span>\n <div class=\"hx-date-range-quick-select-row\">\n <hx-select\n #quickFirst\n class=\"hx-date-range-quick-select-direction\"\n [options]=\"directionOptions()\"\n [ariaLabel]=\"l.direction\"\n [value]=\"quickDirection()\"\n (valueChange)=\"setQuickDirection($event)\"\n />\n <input\n hx-input\n type=\"number\"\n min=\"1\"\n step=\"1\"\n class=\"hx-date-range-quick-select-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"quickError() ? 'true' : null\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n [value]=\"quickAmount()\"\n (input)=\"setQuickAmount($event)\"\n (keydown.enter)=\"$event.preventDefault(); applyQuick()\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-unit\"\n [options]=\"unitOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"quickUnit()\"\n (valueChange)=\"setQuickUnit($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-button hx-date-range-quick-select-apply\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n (click)=\"applyQuick()\"\n >\n {{ l.apply }}\n </button>\n </div>\n </section>\n @if (commonlyUsed().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-common'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-common'\">{{ l.commonlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-common\">\n @for (range of commonlyUsed(); track $index) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(range)\">{{ range.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n @if (recentItems().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-recent'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-recent'\">{{ l.recentlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-recent\">\n @for (item of recentItems(); track item.range.from + ' ' + item.range.to) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(item.range)\">{{ item.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n <!-- one line per side; a click opens the editor of that side (Absolute / Relative / Now) below -->\n <div class=\"hx-date-range-quick-select-summary\" role=\"group\" [attr.aria-label]=\"l.range\">\n @for (s of sideKeys; track s) {\n <button\n #sideButton\n type=\"button\"\n class=\"hx-date-range-quick-select-side-line\"\n [class]=\"'hx-date-range-quick-select-side-line-' + s\"\n [id]=\"sideButtonId(s)\"\n [attr.aria-expanded]=\"openSide() === s\"\n [attr.aria-controls]=\"openSide() === s ? editorId(s) : null\"\n (click)=\"toggleSide(s)\"\n >\n <span class=\"hx-date-range-quick-select-side-name\">{{ s === 'from' ? l.start : l.end }}</span>&ngsp;\n <span class=\"hx-date-range-quick-select-side-value\">{{ sideSummary(s) }}</span>\n </button>\n }\n </div>\n @if (openSide(); as s) {\n @let state = sides()[s];\n @let sideName = s === 'from' ? l.start : l.end;\n <section\n class=\"hx-date-range-quick-select-editor\"\n [class]=\"'hx-date-range-quick-select-editor-' + s\"\n [id]=\"editorId(s)\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n >\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- composite widget: focus moves over its items (roving tabindex or aria-activedescendant) -->\n <div\n class=\"hx-date-range-quick-select-tabs\"\n role=\"tablist\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n (keydown)=\"onTabKeydown(s, $event)\"\n >\n @for (mode of sideModes; track mode) {\n <button\n #sideTab\n type=\"button\"\n role=\"tab\"\n class=\"hx-date-range-quick-select-tab\"\n [id]=\"tabId(s, mode)\"\n [attr.aria-selected]=\"state.mode === mode\"\n [attr.aria-controls]=\"panelId(s)\"\n [attr.tabindex]=\"state.mode === mode ? 0 : -1\"\n (click)=\"setSideMode(s, mode)\"\n >\n {{ mode === 'absolute' ? l.absolute : mode === 'relative' ? l.relative : l.now }}\n </button>\n }\n </div>\n <div\n class=\"hx-date-range-quick-select-tabpanel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId(s)\"\n [attr.aria-labelledby]=\"tabId(s, state.mode)\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n >\n @switch (state.mode) {\n @case ('absolute') {\n <input\n hx-input\n fluid\n type=\"text\"\n autocomplete=\"off\"\n class=\"hx-date-range-quick-select-side-date\"\n [attr.aria-label]=\"sideName + ' ' + l.date\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"sideText(s)\"\n (change)=\"setAbsoluteSide(s, $event)\"\n (keydown.enter)=\"$event.preventDefault(); setAbsoluteSide(s, $event)\"\n />\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n <div class=\"hx-date-range-quick-select-calendar\" role=\"group\" [attr.aria-label]=\"sideName + ' ' + l.date\">\n <hx-calendar\n [(focusedDate)]=\"calendarFocus\"\n [(view)]=\"calendarView\"\n [selectedDates]=\"sideDays(s)\"\n selectionMode=\"single\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [firstDayOfWeek]=\"firstDayOfWeek()\"\n [locale]=\"locale()\"\n [disabled]=\"isDisabled()\"\n [titleId]=\"calendarTitleId\"\n [today]=\"today()\"\n (picked)=\"pickDay(s, $event)\"\n />\n </div>\n }\n @case ('relative') {\n <div class=\"hx-date-range-quick-select-row\">\n <input\n hx-input\n type=\"number\"\n min=\"0\"\n step=\"1\"\n class=\"hx-date-range-quick-select-side-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"state.amount ?? ''\"\n (input)=\"setSideAmount(s, $event)\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-side-unit\"\n [options]=\"relativeOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"sideUnitValue(s)\"\n (valueChange)=\"setSideUnit(s, $event)\"\n />\n </div>\n <label class=\"hx-date-range-quick-select-side-round\">\n <input type=\"checkbox\" hx-checkbox [checked]=\"state.round\" (change)=\"setSideRound(s, $event)\" />\n {{ sideRoundLabel(s) }}\n </label>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <code class=\"hx-date-range-quick-select-expression\">{{ sideExpressionText(s) }}</code>&ngsp;\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n @case ('now') {\n <p class=\"hx-date-range-quick-select-now-hint\">{{ l.nowHint }}</p>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n }\n </div>\n </section>\n }\n @if (quickError() || sideError()) {\n <p class=\"hx-date-range-quick-select-error\" role=\"alert\" [id]=\"quickErrorId\">{{ l.incompleteRange }}</p>\n }\n </div>\n </ng-template>\n</div>\n",
10144
9736
  dependencies: [
10145
9737
  {
10146
9738
  kind: "directive",
@@ -10293,7 +9885,7 @@ i0.ɵɵngDeclareClassMetadata({
10293
9885
  class: "hx-date-range-quick-select",
10294
9886
  "(focusout)": "onHostFocusOut($event)"
10295
9887
  },
10296
- template: "<div\n class=\"hx-date-picker hx-date-picker-has-icon hx-date-range-quick-select-control\"\n [class.hx-date-picker-open]=\"open()\"\n [class.hx-date-picker-disabled]=\"isDisabled()\"\n [class.hx-date-picker-invalid]=\"invalid()\"\n>\n <div class=\"hx-date-picker-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n <input\n #field\n type=\"text\"\n readonly\n class=\"hx-date-picker-input\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"text()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? popupId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (click)=\"show()\"\n (keydown)=\"onFieldKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"chooseLabel()\"\n [attr.aria-expanded]=\"open()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-date-picker-trigger-icon\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-date-picker-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"close()\"\n >\n @let l = texts();\n <div\n class=\"hx-date-picker-popup hx-date-range-quick-select-popup\"\n role=\"dialog\"\n aria-modal=\"false\"\n [id]=\"popupId\"\n [attr.aria-label]=\"ariaLabel() ?? chooseLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n (focusout)=\"onPopupFocusOut($event)\"\n >\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-quick'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-quick'\">{{ l.quickSelect }}</span>\n <div class=\"hx-date-range-quick-select-row\">\n <hx-select\n #quickFirst\n class=\"hx-date-range-quick-select-direction\"\n [options]=\"directionOptions()\"\n [ariaLabel]=\"l.direction\"\n [value]=\"quickDirection()\"\n (valueChange)=\"setQuickDirection($event)\"\n />\n <input\n hx-input\n type=\"number\"\n min=\"1\"\n step=\"1\"\n class=\"hx-date-range-quick-select-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"quickError() ? 'true' : null\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n [value]=\"quickAmount()\"\n (input)=\"setQuickAmount($event)\"\n (keydown.enter)=\"$event.preventDefault(); applyQuick()\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-unit\"\n [options]=\"unitOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"quickUnit()\"\n (valueChange)=\"setQuickUnit($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-button hx-date-range-quick-select-apply\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n (click)=\"applyQuick()\"\n >\n {{ l.apply }}\n </button>\n </div>\n </section>\n @if (commonlyUsed().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-common'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-common'\">{{ l.commonlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-common\">\n @for (range of commonlyUsed(); track $index) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(range)\">{{ range.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n @if (recentItems().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-recent'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-recent'\">{{ l.recentlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-recent\">\n @for (item of recentItems(); track item.range.from + ' ' + item.range.to) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(item.range)\">{{ item.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n <!-- one line per side; a click opens the editor of that side (Absolute / Relative / Now) below -->\n <div class=\"hx-date-range-quick-select-summary\" role=\"group\" [attr.aria-label]=\"l.range\">\n @for (s of sideKeys; track s) {\n <button\n #sideButton\n type=\"button\"\n class=\"hx-date-range-quick-select-side-line\"\n [class]=\"'hx-date-range-quick-select-side-line-' + s\"\n [id]=\"sideButtonId(s)\"\n [attr.aria-expanded]=\"openSide() === s\"\n [attr.aria-controls]=\"openSide() === s ? editorId(s) : null\"\n (click)=\"toggleSide(s)\"\n >\n <span class=\"hx-date-range-quick-select-side-name\">{{ s === 'from' ? l.start : l.end }}</span>&ngsp;\n <span class=\"hx-date-range-quick-select-side-value\">{{ sideSummary(s) }}</span>\n </button>\n }\n </div>\n @if (openSide(); as s) {\n @let state = sides()[s];\n @let sideName = s === 'from' ? l.start : l.end;\n <section\n class=\"hx-date-range-quick-select-editor\"\n [class]=\"'hx-date-range-quick-select-editor-' + s\"\n [id]=\"editorId(s)\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n >\n <div\n class=\"hx-date-range-quick-select-tabs\"\n role=\"tablist\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n (keydown)=\"onTabKeydown(s, $event)\"\n >\n @for (mode of sideModes; track mode) {\n <button\n #sideTab\n type=\"button\"\n role=\"tab\"\n class=\"hx-date-range-quick-select-tab\"\n [id]=\"tabId(s, mode)\"\n [attr.aria-selected]=\"state.mode === mode\"\n [attr.aria-controls]=\"panelId(s)\"\n [attr.tabindex]=\"state.mode === mode ? 0 : -1\"\n (click)=\"setSideMode(s, mode)\"\n >\n {{ mode === 'absolute' ? l.absolute : mode === 'relative' ? l.relative : l.now }}\n </button>\n }\n </div>\n <div\n class=\"hx-date-range-quick-select-tabpanel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId(s)\"\n [attr.aria-labelledby]=\"tabId(s, state.mode)\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n >\n @switch (state.mode) {\n @case ('absolute') {\n <input\n hx-input\n fluid\n type=\"text\"\n autocomplete=\"off\"\n class=\"hx-date-range-quick-select-side-date\"\n [attr.aria-label]=\"sideName + ' ' + l.date\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"sideText(s)\"\n (change)=\"setAbsoluteSide(s, $event)\"\n (keydown.enter)=\"$event.preventDefault(); setAbsoluteSide(s, $event)\"\n />\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n <div class=\"hx-date-range-quick-select-calendar\" role=\"group\" [attr.aria-label]=\"sideName + ' ' + l.date\">\n <hx-calendar\n [(focusedDate)]=\"calendarFocus\"\n [(view)]=\"calendarView\"\n [selectedDates]=\"sideDays(s)\"\n selectionMode=\"single\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [firstDayOfWeek]=\"firstDayOfWeek()\"\n [locale]=\"locale()\"\n [disabled]=\"isDisabled()\"\n [titleId]=\"calendarTitleId\"\n [today]=\"today()\"\n (picked)=\"pickDay(s, $event)\"\n />\n </div>\n }\n @case ('relative') {\n <div class=\"hx-date-range-quick-select-row\">\n <input\n hx-input\n type=\"number\"\n min=\"0\"\n step=\"1\"\n class=\"hx-date-range-quick-select-side-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"state.amount ?? ''\"\n (input)=\"setSideAmount(s, $event)\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-side-unit\"\n [options]=\"relativeOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"sideUnitValue(s)\"\n (valueChange)=\"setSideUnit(s, $event)\"\n />\n </div>\n <label class=\"hx-date-range-quick-select-side-round\">\n <input type=\"checkbox\" hx-checkbox [checked]=\"state.round\" (change)=\"setSideRound(s, $event)\" />\n {{ sideRoundLabel(s) }}\n </label>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <code class=\"hx-date-range-quick-select-expression\">{{ sideExpressionText(s) }}</code>&ngsp;\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n @case ('now') {\n <p class=\"hx-date-range-quick-select-now-hint\">{{ l.nowHint }}</p>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n }\n </div>\n </section>\n }\n @if (quickError() || sideError()) {\n <p class=\"hx-date-range-quick-select-error\" role=\"alert\" [id]=\"quickErrorId\">{{ l.incompleteRange }}</p>\n }\n </div>\n </ng-template>\n</div>\n"
9888
+ template: "<div\n class=\"hx-date-picker hx-date-picker-has-icon hx-date-range-quick-select-control\"\n [class.hx-date-picker-open]=\"open()\"\n [class.hx-date-picker-disabled]=\"isDisabled()\"\n [class.hx-date-picker-invalid]=\"invalid()\"\n>\n <div class=\"hx-date-picker-field\" cdkOverlayOrigin #origin=\"cdkOverlayOrigin\">\n <input\n #field\n type=\"text\"\n readonly\n class=\"hx-date-picker-input\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"text()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? popupId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (click)=\"show()\"\n (keydown)=\"onFieldKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"chooseLabel()\"\n [attr.aria-expanded]=\"open()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-date-picker-trigger-icon\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-date-picker-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"close()\"\n >\n @let l = texts();\n <div\n class=\"hx-date-picker-popup hx-date-range-quick-select-popup\"\n role=\"dialog\"\n aria-modal=\"false\"\n [id]=\"popupId\"\n [attr.aria-label]=\"ariaLabel() ?? chooseLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n (focusout)=\"onPopupFocusOut($event)\"\n >\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-quick'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-quick'\">{{ l.quickSelect }}</span>\n <div class=\"hx-date-range-quick-select-row\">\n <hx-select\n #quickFirst\n class=\"hx-date-range-quick-select-direction\"\n [options]=\"directionOptions()\"\n [ariaLabel]=\"l.direction\"\n [value]=\"quickDirection()\"\n (valueChange)=\"setQuickDirection($event)\"\n />\n <input\n hx-input\n type=\"number\"\n min=\"1\"\n step=\"1\"\n class=\"hx-date-range-quick-select-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"quickError() ? 'true' : null\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n [value]=\"quickAmount()\"\n (input)=\"setQuickAmount($event)\"\n (keydown.enter)=\"$event.preventDefault(); applyQuick()\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-unit\"\n [options]=\"unitOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"quickUnit()\"\n (valueChange)=\"setQuickUnit($event)\"\n />\n <button\n type=\"button\"\n class=\"hx-date-picker-button hx-date-range-quick-select-apply\"\n [attr.aria-describedby]=\"quickError() ? quickErrorId : null\"\n (click)=\"applyQuick()\"\n >\n {{ l.apply }}\n </button>\n </div>\n </section>\n @if (commonlyUsed().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-common'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-common'\">{{ l.commonlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-common\">\n @for (range of commonlyUsed(); track $index) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(range)\">{{ range.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n @if (recentItems().length > 0) {\n <section class=\"hx-date-range-quick-select-section\" [attr.aria-labelledby]=\"popupId + '-recent'\">\n <span class=\"hx-date-range-quick-select-caption\" [id]=\"popupId + '-recent'\">{{ l.recentlyUsed }}</span>\n <ul class=\"hx-date-range-quick-select-ranges hx-date-range-quick-select-recent\">\n @for (item of recentItems(); track item.range.from + ' ' + item.range.to) {\n <li>\n <button type=\"button\" class=\"hx-date-picker-button\" (click)=\"applyRange(item.range)\">{{ item.label }}</button>\n </li>\n }\n </ul>\n </section>\n }\n <!-- one line per side; a click opens the editor of that side (Absolute / Relative / Now) below -->\n <div class=\"hx-date-range-quick-select-summary\" role=\"group\" [attr.aria-label]=\"l.range\">\n @for (s of sideKeys; track s) {\n <button\n #sideButton\n type=\"button\"\n class=\"hx-date-range-quick-select-side-line\"\n [class]=\"'hx-date-range-quick-select-side-line-' + s\"\n [id]=\"sideButtonId(s)\"\n [attr.aria-expanded]=\"openSide() === s\"\n [attr.aria-controls]=\"openSide() === s ? editorId(s) : null\"\n (click)=\"toggleSide(s)\"\n >\n <span class=\"hx-date-range-quick-select-side-name\">{{ s === 'from' ? l.start : l.end }}</span>&ngsp;\n <span class=\"hx-date-range-quick-select-side-value\">{{ sideSummary(s) }}</span>\n </button>\n }\n </div>\n @if (openSide(); as s) {\n @let state = sides()[s];\n @let sideName = s === 'from' ? l.start : l.end;\n <section\n class=\"hx-date-range-quick-select-editor\"\n [class]=\"'hx-date-range-quick-select-editor-' + s\"\n [id]=\"editorId(s)\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n >\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- composite widget: focus moves over its items (roving tabindex or aria-activedescendant) -->\n <div\n class=\"hx-date-range-quick-select-tabs\"\n role=\"tablist\"\n [attr.aria-labelledby]=\"sideButtonId(s)\"\n (keydown)=\"onTabKeydown(s, $event)\"\n >\n @for (mode of sideModes; track mode) {\n <button\n #sideTab\n type=\"button\"\n role=\"tab\"\n class=\"hx-date-range-quick-select-tab\"\n [id]=\"tabId(s, mode)\"\n [attr.aria-selected]=\"state.mode === mode\"\n [attr.aria-controls]=\"panelId(s)\"\n [attr.tabindex]=\"state.mode === mode ? 0 : -1\"\n (click)=\"setSideMode(s, mode)\"\n >\n {{ mode === 'absolute' ? l.absolute : mode === 'relative' ? l.relative : l.now }}\n </button>\n }\n </div>\n <div\n class=\"hx-date-range-quick-select-tabpanel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId(s)\"\n [attr.aria-labelledby]=\"tabId(s, state.mode)\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n >\n @switch (state.mode) {\n @case ('absolute') {\n <input\n hx-input\n fluid\n type=\"text\"\n autocomplete=\"off\"\n class=\"hx-date-range-quick-select-side-date\"\n [attr.aria-label]=\"sideName + ' ' + l.date\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"sideText(s)\"\n (change)=\"setAbsoluteSide(s, $event)\"\n (keydown.enter)=\"$event.preventDefault(); setAbsoluteSide(s, $event)\"\n />\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n <div class=\"hx-date-range-quick-select-calendar\" role=\"group\" [attr.aria-label]=\"sideName + ' ' + l.date\">\n <hx-calendar\n [(focusedDate)]=\"calendarFocus\"\n [(view)]=\"calendarView\"\n [selectedDates]=\"sideDays(s)\"\n selectionMode=\"single\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [firstDayOfWeek]=\"firstDayOfWeek()\"\n [locale]=\"locale()\"\n [disabled]=\"isDisabled()\"\n [titleId]=\"calendarTitleId\"\n [today]=\"today()\"\n (picked)=\"pickDay(s, $event)\"\n />\n </div>\n }\n @case ('relative') {\n <div class=\"hx-date-range-quick-select-row\">\n <input\n hx-input\n type=\"number\"\n min=\"0\"\n step=\"1\"\n class=\"hx-date-range-quick-select-side-amount\"\n [attr.aria-label]=\"l.amount\"\n [attr.aria-invalid]=\"sideError() ? 'true' : null\"\n [attr.aria-describedby]=\"sideError() ? quickErrorId : null\"\n [value]=\"state.amount ?? ''\"\n (input)=\"setSideAmount(s, $event)\"\n />\n <hx-select\n class=\"hx-date-range-quick-select-side-unit\"\n [options]=\"relativeOptions()\"\n [ariaLabel]=\"l.unit\"\n [value]=\"sideUnitValue(s)\"\n (valueChange)=\"setSideUnit(s, $event)\"\n />\n </div>\n <label class=\"hx-date-range-quick-select-side-round\">\n <input type=\"checkbox\" hx-checkbox [checked]=\"state.round\" (change)=\"setSideRound(s, $event)\" />\n {{ sideRoundLabel(s) }}\n </label>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <code class=\"hx-date-range-quick-select-expression\">{{ sideExpressionText(s) }}</code>&ngsp;\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n @case ('now') {\n <p class=\"hx-date-range-quick-select-now-hint\">{{ l.nowHint }}</p>\n <p class=\"hx-date-range-quick-select-side-resolved\">\n <span class=\"hx-date-range-quick-select-resolved-date\">{{ sideResolvedText(s) }}</span>\n </p>\n }\n }\n </div>\n </section>\n }\n @if (quickError() || sideError()) {\n <p class=\"hx-date-range-quick-select-error\" role=\"alert\" [id]=\"quickErrorId\">{{ l.incompleteRange }}</p>\n }\n </div>\n </ng-template>\n</div>\n"
10297
9889
  }]
10298
9890
  }],
10299
9891
  ctorParameters: () => [],
@@ -13855,8 +13447,7 @@ var HxDivider = class HxDivider {
13855
13447
  classAttribute: "hx-divider"
13856
13448
  },
13857
13449
  ngImport: i0,
13858
- template: "<ng-content />",
13859
- isInline: true,
13450
+ template: "<ng-content />\n",
13860
13451
  changeDetection: i0.ChangeDetectionStrategy.OnPush
13861
13452
  });
13862
13453
  };
@@ -13869,7 +13460,6 @@ i0.ɵɵngDeclareClassMetadata({
13869
13460
  type: Component,
13870
13461
  args: [{
13871
13462
  selector: "hx-divider",
13872
- template: "<ng-content />",
13873
13463
  changeDetection: ChangeDetectionStrategy.OnPush,
13874
13464
  host: {
13875
13465
  class: "hx-divider",
@@ -13882,7 +13472,8 @@ i0.ɵɵngDeclareClassMetadata({
13882
13472
  "[class.hx-divider-start]": "align() === 'start'",
13883
13473
  "[class.hx-divider-center]": "align() === 'center'",
13884
13474
  "[class.hx-divider-end]": "align() === 'end'"
13885
- }
13475
+ },
13476
+ template: "<ng-content />\n"
13886
13477
  }]
13887
13478
  }],
13888
13479
  propDecorators: {
@@ -14133,16 +13724,7 @@ var HxDrawer = class HxDrawer {
14133
13724
  isSignal: true
14134
13725
  }],
14135
13726
  ngImport: i0,
14136
- template: `
14137
- <ng-template #panel>
14138
- <hx-dialog-frame class="hx-drawer" [header]="header()" [titleId]="titleId" [closable]="closable()" [closeLabel]="closeLabel()" (closeClick)="visible.set(false)">
14139
- <ng-container ngProjectAs="[hxDialogHeader]"><ng-content select="[hxDialogHeader]" /></ng-container>
14140
- <ng-content />
14141
- <ng-container ngProjectAs="[hxDialogFooter]"><ng-content select="[hxDialogFooter]" /></ng-container>
14142
- </hx-dialog-frame>
14143
- </ng-template>
14144
- `,
14145
- isInline: true,
13727
+ template: "<ng-template #panel>\n <hx-dialog-frame class=\"hx-drawer\" [header]=\"header()\" [titleId]=\"titleId\" [closable]=\"closable()\" [closeLabel]=\"closeLabel()\" (closeClick)=\"visible.set(false)\">\n <ng-container ngProjectAs=\"[hxDialogHeader]\"><ng-content select=\"[hxDialogHeader]\" /></ng-container>\n <ng-content />\n <ng-container ngProjectAs=\"[hxDialogFooter]\"><ng-content select=\"[hxDialogFooter]\" /></ng-container>\n </hx-dialog-frame>\n</ng-template>\n",
14146
13728
  dependencies: [{
14147
13729
  kind: "component",
14148
13730
  type: HxDialogFrame,
@@ -14170,15 +13752,7 @@ i0.ɵɵngDeclareClassMetadata({
14170
13752
  imports: [HxDialogFrame],
14171
13753
  changeDetection: ChangeDetectionStrategy.OnPush,
14172
13754
  host: { class: "hx-drawer-anchor" },
14173
- template: `
14174
- <ng-template #panel>
14175
- <hx-dialog-frame class="hx-drawer" [header]="header()" [titleId]="titleId" [closable]="closable()" [closeLabel]="closeLabel()" (closeClick)="visible.set(false)">
14176
- <ng-container ngProjectAs="[hxDialogHeader]"><ng-content select="[hxDialogHeader]" /></ng-container>
14177
- <ng-content />
14178
- <ng-container ngProjectAs="[hxDialogFooter]"><ng-content select="[hxDialogFooter]" /></ng-container>
14179
- </hx-dialog-frame>
14180
- </ng-template>
14181
- `
13755
+ template: "<ng-template #panel>\n <hx-dialog-frame class=\"hx-drawer\" [header]=\"header()\" [titleId]=\"titleId\" [closable]=\"closable()\" [closeLabel]=\"closeLabel()\" (closeClick)=\"visible.set(false)\">\n <ng-container ngProjectAs=\"[hxDialogHeader]\"><ng-content select=\"[hxDialogHeader]\" /></ng-container>\n <ng-content />\n <ng-container ngProjectAs=\"[hxDialogFooter]\"><ng-content select=\"[hxDialogFooter]\" /></ng-container>\n </hx-dialog-frame>\n</ng-template>\n"
14182
13756
  }]
14183
13757
  }],
14184
13758
  ctorParameters: () => [],
@@ -14364,32 +13938,7 @@ var HxFieldset = class HxFieldset {
14364
13938
  classAttribute: "hx-fieldset"
14365
13939
  },
14366
13940
  ngImport: i0,
14367
- template: `
14368
- <fieldset class="hx-fieldset-box">
14369
- <legend class="hx-fieldset-legend">
14370
- @if (toggleable()) {
14371
- <button
14372
- type="button"
14373
- class="hx-fieldset-toggle"
14374
- [attr.aria-expanded]="!isCollapsed()"
14375
- [attr.aria-controls]="contentId"
14376
- (click)="toggle()"
14377
- >
14378
- <span class="hx-fieldset-toggle-icon" aria-hidden="true"></span>
14379
- <span>{{ legend() }}</span>
14380
- </button>
14381
- } @else {
14382
- <span class="hx-fieldset-legend-text">{{ legend() }}</span>
14383
- }
14384
- </legend>
14385
- <div class="hx-fieldset-collapse" [attr.inert]="isCollapsed() ? '' : null">
14386
- <div class="hx-fieldset-collapse-inner">
14387
- <div class="hx-fieldset-content" [id]="contentId"><ng-content /></div>
14388
- </div>
14389
- </div>
14390
- </fieldset>
14391
- `,
14392
- isInline: true,
13941
+ template: "<fieldset class=\"hx-fieldset-box\">\n <legend class=\"hx-fieldset-legend\">\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"hx-fieldset-toggle\"\n [attr.aria-expanded]=\"!isCollapsed()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-fieldset-toggle-icon\" aria-hidden=\"true\"></span>\n <span>{{ legend() }}</span>\n </button>\n } @else {\n <span class=\"hx-fieldset-legend-text\">{{ legend() }}</span>\n }\n </legend>\n <div class=\"hx-fieldset-collapse\" [attr.inert]=\"isCollapsed() ? '' : null\">\n <div class=\"hx-fieldset-collapse-inner\">\n <div class=\"hx-fieldset-content\" [id]=\"contentId\"><ng-content /></div>\n </div>\n </div>\n</fieldset>\n",
14393
13942
  changeDetection: i0.ChangeDetectionStrategy.OnPush
14394
13943
  });
14395
13944
  };
@@ -14408,31 +13957,7 @@ i0.ɵɵngDeclareClassMetadata({
14408
13957
  "[class.hx-fieldset-toggleable]": "toggleable()",
14409
13958
  "[class.hx-fieldset-collapsed]": "isCollapsed()"
14410
13959
  },
14411
- template: `
14412
- <fieldset class="hx-fieldset-box">
14413
- <legend class="hx-fieldset-legend">
14414
- @if (toggleable()) {
14415
- <button
14416
- type="button"
14417
- class="hx-fieldset-toggle"
14418
- [attr.aria-expanded]="!isCollapsed()"
14419
- [attr.aria-controls]="contentId"
14420
- (click)="toggle()"
14421
- >
14422
- <span class="hx-fieldset-toggle-icon" aria-hidden="true"></span>
14423
- <span>{{ legend() }}</span>
14424
- </button>
14425
- } @else {
14426
- <span class="hx-fieldset-legend-text">{{ legend() }}</span>
14427
- }
14428
- </legend>
14429
- <div class="hx-fieldset-collapse" [attr.inert]="isCollapsed() ? '' : null">
14430
- <div class="hx-fieldset-collapse-inner">
14431
- <div class="hx-fieldset-content" [id]="contentId"><ng-content /></div>
14432
- </div>
14433
- </div>
14434
- </fieldset>
14435
- `
13960
+ template: "<fieldset class=\"hx-fieldset-box\">\n <legend class=\"hx-fieldset-legend\">\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"hx-fieldset-toggle\"\n [attr.aria-expanded]=\"!isCollapsed()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-fieldset-toggle-icon\" aria-hidden=\"true\"></span>\n <span>{{ legend() }}</span>\n </button>\n } @else {\n <span class=\"hx-fieldset-legend-text\">{{ legend() }}</span>\n }\n </legend>\n <div class=\"hx-fieldset-collapse\" [attr.inert]=\"isCollapsed() ? '' : null\">\n <div class=\"hx-fieldset-collapse-inner\">\n <div class=\"hx-fieldset-content\" [id]=\"contentId\"><ng-content /></div>\n </div>\n </div>\n</fieldset>\n"
14436
13961
  }]
14437
13962
  }],
14438
13963
  propDecorators: {
@@ -14743,78 +14268,7 @@ var HxFileUpload = class HxFileUpload {
14743
14268
  isSignal: true
14744
14269
  }],
14745
14270
  ngImport: i0,
14746
- template: `
14747
- @if (mode() === 'basic') {
14748
- <label class="hx-button hx-file-upload-choose" [class.hx-button-disabled]="disabled()" [attr.aria-disabled]="disabled() ? 'true' : null">
14749
- <input #picker type="file" class="hx-file-upload-input" [accept]="accept()" [multiple]="multiple()" [disabled]="disabled()" (change)="onPick($event)" />
14750
- {{ chooseLabel() }}
14751
- </label>
14752
- @if (files().length) {
14753
- <span class="hx-file-upload-names">{{ names() }}</span>
14754
- }
14755
- } @else {
14756
- <div class="hx-file-upload-header">
14757
- <label class="hx-button hx-file-upload-choose" [attr.aria-disabled]="disabled() ? 'true' : null">
14758
- <input #picker type="file" class="hx-file-upload-input" [accept]="accept()" [multiple]="multiple()" [disabled]="disabled()" (change)="onPick($event)" />
14759
- {{ chooseLabel() }}
14760
- </label>
14761
- @if (showUploadButton()) {
14762
- <button hx-button type="button" severity="secondary" [disabled]="disabled() || !files().length" (click)="doUpload()">{{ uploadLabel() }}</button>
14763
- }
14764
- @if (showCancelButton()) {
14765
- <button hx-button type="button" severity="secondary" [disabled]="disabled() || !files().length" (click)="cancel()">{{ cancelLabel() }}</button>
14766
- }
14767
- </div>
14768
- <div
14769
- class="hx-file-upload-content"
14770
- (dragenter)="onDrag($event, true)"
14771
- (dragover)="onDrag($event, true)"
14772
- (dragleave)="onDrag($event, false)"
14773
- (drop)="onDrop($event)"
14774
- >
14775
- @if (progress() !== null && progress() !== undefined) {
14776
- <div
14777
- class="hx-file-upload-progress"
14778
- role="progressbar"
14779
- aria-label="Upload progress"
14780
- aria-valuemin="0"
14781
- aria-valuemax="100"
14782
- [attr.aria-valuenow]="progress()"
14783
- >
14784
- <div class="hx-file-upload-progress-bar" [style.width.%]="progress()"></div>
14785
- </div>
14786
- }
14787
- <div class="hx-file-upload-messages" [id]="messagesId" role="status" aria-live="polite">
14788
- @for (message of messages(); track $index) {
14789
- <p class="hx-file-upload-message">{{ message }}</p>
14790
- }
14791
- </div>
14792
- @if (files().length) {
14793
- <ul class="hx-file-upload-list">
14794
- @for (file of files(); track file) {
14795
- <li class="hx-file-upload-file">
14796
- <span class="hx-file-upload-file-info">
14797
- <span class="hx-file-upload-file-name">{{ file.name }}</span>
14798
- <span class="hx-file-upload-file-size">{{ size(file) }}</span>
14799
- </span>
14800
- <button hx-button type="button" variant="outlined" severity="danger" size="small" [attr.aria-label]="'Remove ' + file.name" [disabled]="disabled()" (click)="removeFile(file)">{{ removeLabel() }}</button>
14801
- </li>
14802
- }
14803
- </ul>
14804
- } @else {
14805
- <p class="hx-file-upload-empty">{{ dropLabel() }}</p>
14806
- }
14807
- </div>
14808
- }
14809
- @if (mode() === 'basic') {
14810
- <div class="hx-file-upload-messages" [id]="messagesId" role="status" aria-live="polite">
14811
- @for (message of messages(); track $index) {
14812
- <p class="hx-file-upload-message">{{ message }}</p>
14813
- }
14814
- </div>
14815
- }
14816
- `,
14817
- isInline: true,
14271
+ template: "@if (mode() === 'basic') {\n <label class=\"hx-button hx-file-upload-choose\" [class.hx-button-disabled]=\"disabled()\" [attr.aria-disabled]=\"disabled() ? 'true' : null\">\n <input #picker type=\"file\" class=\"hx-file-upload-input\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onPick($event)\" />\n {{ chooseLabel() }}\n </label>\n @if (files().length) {\n <span class=\"hx-file-upload-names\">{{ names() }}</span>\n }\n} @else {\n <div class=\"hx-file-upload-header\">\n <label class=\"hx-button hx-file-upload-choose\" [attr.aria-disabled]=\"disabled() ? 'true' : null\">\n <input #picker type=\"file\" class=\"hx-file-upload-input\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onPick($event)\" />\n {{ chooseLabel() }}\n </label>\n @if (showUploadButton()) {\n <button hx-button type=\"button\" severity=\"secondary\" [disabled]=\"disabled() || !files().length\" (click)=\"doUpload()\">{{ uploadLabel() }}</button>\n }\n @if (showCancelButton()) {\n <button hx-button type=\"button\" severity=\"secondary\" [disabled]=\"disabled() || !files().length\" (click)=\"cancel()\">{{ cancelLabel() }}</button>\n }\n </div>\n <div\n class=\"hx-file-upload-content\"\n (dragenter)=\"onDrag($event, true)\"\n (dragover)=\"onDrag($event, true)\"\n (dragleave)=\"onDrag($event, false)\"\n (drop)=\"onDrop($event)\"\n >\n @if (progress() !== null && progress() !== undefined) {\n <div\n class=\"hx-file-upload-progress\"\n role=\"progressbar\"\n aria-label=\"Upload progress\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n >\n <div class=\"hx-file-upload-progress-bar\" [style.width.%]=\"progress()\"></div>\n </div>\n }\n <div class=\"hx-file-upload-messages\" [id]=\"messagesId\" role=\"status\" aria-live=\"polite\">\n @for (message of messages(); track $index) {\n <p class=\"hx-file-upload-message\">{{ message }}</p>\n }\n </div>\n @if (files().length) {\n <ul class=\"hx-file-upload-list\">\n @for (file of files(); track file) {\n <li class=\"hx-file-upload-file\">\n <span class=\"hx-file-upload-file-info\">\n <span class=\"hx-file-upload-file-name\">{{ file.name }}</span>\n <span class=\"hx-file-upload-file-size\">{{ size(file) }}</span>\n </span>\n <button hx-button type=\"button\" variant=\"outlined\" severity=\"danger\" size=\"small\" [attr.aria-label]=\"'Remove ' + file.name\" [disabled]=\"disabled()\" (click)=\"removeFile(file)\">{{ removeLabel() }}</button>\n </li>\n }\n </ul>\n } @else {\n <p class=\"hx-file-upload-empty\">{{ dropLabel() }}</p>\n }\n </div>\n}\n@if (mode() === 'basic') {\n <div class=\"hx-file-upload-messages\" [id]=\"messagesId\" role=\"status\" aria-live=\"polite\">\n @for (message of messages(); track $index) {\n <p class=\"hx-file-upload-message\">{{ message }}</p>\n }\n </div>\n}\n",
14818
14272
  dependencies: [{
14819
14273
  kind: "directive",
14820
14274
  type: HxButton,
@@ -14851,77 +14305,7 @@ i0.ɵɵngDeclareClassMetadata({
14851
14305
  "[class.hx-file-upload-disabled]": "disabled()",
14852
14306
  "[class.hx-file-upload-highlight]": "dragging()"
14853
14307
  },
14854
- template: `
14855
- @if (mode() === 'basic') {
14856
- <label class="hx-button hx-file-upload-choose" [class.hx-button-disabled]="disabled()" [attr.aria-disabled]="disabled() ? 'true' : null">
14857
- <input #picker type="file" class="hx-file-upload-input" [accept]="accept()" [multiple]="multiple()" [disabled]="disabled()" (change)="onPick($event)" />
14858
- {{ chooseLabel() }}
14859
- </label>
14860
- @if (files().length) {
14861
- <span class="hx-file-upload-names">{{ names() }}</span>
14862
- }
14863
- } @else {
14864
- <div class="hx-file-upload-header">
14865
- <label class="hx-button hx-file-upload-choose" [attr.aria-disabled]="disabled() ? 'true' : null">
14866
- <input #picker type="file" class="hx-file-upload-input" [accept]="accept()" [multiple]="multiple()" [disabled]="disabled()" (change)="onPick($event)" />
14867
- {{ chooseLabel() }}
14868
- </label>
14869
- @if (showUploadButton()) {
14870
- <button hx-button type="button" severity="secondary" [disabled]="disabled() || !files().length" (click)="doUpload()">{{ uploadLabel() }}</button>
14871
- }
14872
- @if (showCancelButton()) {
14873
- <button hx-button type="button" severity="secondary" [disabled]="disabled() || !files().length" (click)="cancel()">{{ cancelLabel() }}</button>
14874
- }
14875
- </div>
14876
- <div
14877
- class="hx-file-upload-content"
14878
- (dragenter)="onDrag($event, true)"
14879
- (dragover)="onDrag($event, true)"
14880
- (dragleave)="onDrag($event, false)"
14881
- (drop)="onDrop($event)"
14882
- >
14883
- @if (progress() !== null && progress() !== undefined) {
14884
- <div
14885
- class="hx-file-upload-progress"
14886
- role="progressbar"
14887
- aria-label="Upload progress"
14888
- aria-valuemin="0"
14889
- aria-valuemax="100"
14890
- [attr.aria-valuenow]="progress()"
14891
- >
14892
- <div class="hx-file-upload-progress-bar" [style.width.%]="progress()"></div>
14893
- </div>
14894
- }
14895
- <div class="hx-file-upload-messages" [id]="messagesId" role="status" aria-live="polite">
14896
- @for (message of messages(); track $index) {
14897
- <p class="hx-file-upload-message">{{ message }}</p>
14898
- }
14899
- </div>
14900
- @if (files().length) {
14901
- <ul class="hx-file-upload-list">
14902
- @for (file of files(); track file) {
14903
- <li class="hx-file-upload-file">
14904
- <span class="hx-file-upload-file-info">
14905
- <span class="hx-file-upload-file-name">{{ file.name }}</span>
14906
- <span class="hx-file-upload-file-size">{{ size(file) }}</span>
14907
- </span>
14908
- <button hx-button type="button" variant="outlined" severity="danger" size="small" [attr.aria-label]="'Remove ' + file.name" [disabled]="disabled()" (click)="removeFile(file)">{{ removeLabel() }}</button>
14909
- </li>
14910
- }
14911
- </ul>
14912
- } @else {
14913
- <p class="hx-file-upload-empty">{{ dropLabel() }}</p>
14914
- }
14915
- </div>
14916
- }
14917
- @if (mode() === 'basic') {
14918
- <div class="hx-file-upload-messages" [id]="messagesId" role="status" aria-live="polite">
14919
- @for (message of messages(); track $index) {
14920
- <p class="hx-file-upload-message">{{ message }}</p>
14921
- }
14922
- </div>
14923
- }
14924
- `
14308
+ template: "@if (mode() === 'basic') {\n <label class=\"hx-button hx-file-upload-choose\" [class.hx-button-disabled]=\"disabled()\" [attr.aria-disabled]=\"disabled() ? 'true' : null\">\n <input #picker type=\"file\" class=\"hx-file-upload-input\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onPick($event)\" />\n {{ chooseLabel() }}\n </label>\n @if (files().length) {\n <span class=\"hx-file-upload-names\">{{ names() }}</span>\n }\n} @else {\n <div class=\"hx-file-upload-header\">\n <label class=\"hx-button hx-file-upload-choose\" [attr.aria-disabled]=\"disabled() ? 'true' : null\">\n <input #picker type=\"file\" class=\"hx-file-upload-input\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onPick($event)\" />\n {{ chooseLabel() }}\n </label>\n @if (showUploadButton()) {\n <button hx-button type=\"button\" severity=\"secondary\" [disabled]=\"disabled() || !files().length\" (click)=\"doUpload()\">{{ uploadLabel() }}</button>\n }\n @if (showCancelButton()) {\n <button hx-button type=\"button\" severity=\"secondary\" [disabled]=\"disabled() || !files().length\" (click)=\"cancel()\">{{ cancelLabel() }}</button>\n }\n </div>\n <div\n class=\"hx-file-upload-content\"\n (dragenter)=\"onDrag($event, true)\"\n (dragover)=\"onDrag($event, true)\"\n (dragleave)=\"onDrag($event, false)\"\n (drop)=\"onDrop($event)\"\n >\n @if (progress() !== null && progress() !== undefined) {\n <div\n class=\"hx-file-upload-progress\"\n role=\"progressbar\"\n aria-label=\"Upload progress\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n >\n <div class=\"hx-file-upload-progress-bar\" [style.width.%]=\"progress()\"></div>\n </div>\n }\n <div class=\"hx-file-upload-messages\" [id]=\"messagesId\" role=\"status\" aria-live=\"polite\">\n @for (message of messages(); track $index) {\n <p class=\"hx-file-upload-message\">{{ message }}</p>\n }\n </div>\n @if (files().length) {\n <ul class=\"hx-file-upload-list\">\n @for (file of files(); track file) {\n <li class=\"hx-file-upload-file\">\n <span class=\"hx-file-upload-file-info\">\n <span class=\"hx-file-upload-file-name\">{{ file.name }}</span>\n <span class=\"hx-file-upload-file-size\">{{ size(file) }}</span>\n </span>\n <button hx-button type=\"button\" variant=\"outlined\" severity=\"danger\" size=\"small\" [attr.aria-label]=\"'Remove ' + file.name\" [disabled]=\"disabled()\" (click)=\"removeFile(file)\">{{ removeLabel() }}</button>\n </li>\n }\n </ul>\n } @else {\n <p class=\"hx-file-upload-empty\">{{ dropLabel() }}</p>\n }\n </div>\n}\n@if (mode() === 'basic') {\n <div class=\"hx-file-upload-messages\" [id]=\"messagesId\" role=\"status\" aria-live=\"polite\">\n @for (message of messages(); track $index) {\n <p class=\"hx-file-upload-message\">{{ message }}</p>\n }\n </div>\n}\n"
14925
14309
  }]
14926
14310
  }],
14927
14311
  propDecorators: {
@@ -15120,8 +14504,7 @@ var HxFloatLabel = class HxFloatLabel {
15120
14504
  classAttribute: "hx-float-label"
15121
14505
  },
15122
14506
  ngImport: i0,
15123
- template: "<ng-content />",
15124
- isInline: true,
14507
+ template: "<ng-content />\n",
15125
14508
  changeDetection: i0.ChangeDetectionStrategy.OnPush
15126
14509
  });
15127
14510
  };
@@ -15140,7 +14523,7 @@ i0.ɵɵngDeclareClassMetadata({
15140
14523
  "[class.hx-float-label-in]": "variant() === 'in'",
15141
14524
  "[class.hx-float-label-on]": "variant() === 'on'"
15142
14525
  },
15143
- template: "<ng-content />"
14526
+ template: "<ng-content />\n"
15144
14527
  }]
15145
14528
  }],
15146
14529
  ctorParameters: () => [],
@@ -15871,8 +15254,7 @@ var HxIconField = class HxIconField {
15871
15254
  classAttribute: "hx-icon-field"
15872
15255
  },
15873
15256
  ngImport: i0,
15874
- template: "<ng-content />",
15875
- isInline: true,
15257
+ template: "<ng-content />\n",
15876
15258
  changeDetection: i0.ChangeDetectionStrategy.OnPush
15877
15259
  });
15878
15260
  };
@@ -15891,7 +15273,7 @@ i0.ɵɵngDeclareClassMetadata({
15891
15273
  "[class.hx-icon-field-left]": "iconPosition() === 'left'",
15892
15274
  "[class.hx-icon-field-right]": "iconPosition() === 'right'"
15893
15275
  },
15894
- template: "<ng-content />"
15276
+ template: "<ng-content />\n"
15895
15277
  }]
15896
15278
  }],
15897
15279
  propDecorators: { iconPosition: [{
@@ -16467,8 +15849,7 @@ var HxInputGroup = class HxInputGroup {
16467
15849
  selector: "hx-input-group",
16468
15850
  host: { classAttribute: "hx-input-group" },
16469
15851
  ngImport: i0,
16470
- template: "<ng-content />",
16471
- isInline: true,
15852
+ template: "<ng-content />\n",
16472
15853
  changeDetection: i0.ChangeDetectionStrategy.OnPush
16473
15854
  });
16474
15855
  };
@@ -16483,7 +15864,7 @@ i0.ɵɵngDeclareClassMetadata({
16483
15864
  selector: "hx-input-group",
16484
15865
  changeDetection: ChangeDetectionStrategy.OnPush,
16485
15866
  host: { class: "hx-input-group" },
16486
- template: "<ng-content />"
15867
+ template: "<ng-content />\n"
16487
15868
  }]
16488
15869
  }]
16489
15870
  });
@@ -16504,8 +15885,7 @@ var HxInputGroupAddon = class HxInputGroupAddon {
16504
15885
  selector: "hx-input-group-addon",
16505
15886
  host: { classAttribute: "hx-input-group-addon" },
16506
15887
  ngImport: i0,
16507
- template: "<ng-content />",
16508
- isInline: true,
15888
+ template: "<ng-content />\n",
16509
15889
  changeDetection: i0.ChangeDetectionStrategy.OnPush
16510
15890
  });
16511
15891
  };
@@ -16520,7 +15900,7 @@ i0.ɵɵngDeclareClassMetadata({
16520
15900
  selector: "hx-input-group-addon",
16521
15901
  changeDetection: ChangeDetectionStrategy.OnPush,
16522
15902
  host: { class: "hx-input-group-addon" },
16523
- template: "<ng-content />"
15903
+ template: "<ng-content />\n"
16524
15904
  }]
16525
15905
  }]
16526
15906
  });
@@ -17206,6 +16586,106 @@ i0.ɵɵngDeclareClassMetadata({
17206
16586
  }]
17207
16587
  }
17208
16588
  });
16589
+ function isMac() {
16590
+ if (typeof navigator === "undefined") return false;
16591
+ const nav = navigator;
16592
+ return /mac|iphone|ipad/i.test(nav.userAgentData?.platform ?? nav.platform ?? "");
16593
+ }
16594
+ var HxKbd = class HxKbd {
16595
+ keys = input([], ...ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []);
16596
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
16597
+ separator = input(void 0, ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
16598
+ plus = computed(() => (this.separator() ?? (isMac() ? "none" : "+")) === "+", ...ngDevMode ? [{ debugName: "plus" }] : /* istanbul ignore next */ []);
16599
+ static ɵfac = i0.ɵɵngDeclareFactory({
16600
+ minVersion: "12.0.0",
16601
+ version: "22.2.4",
16602
+ ngImport: i0,
16603
+ type: HxKbd,
16604
+ deps: [],
16605
+ target: i0.ɵɵFactoryTarget.Component
16606
+ });
16607
+ static ɵcmp = i0.ɵɵngDeclareComponent({
16608
+ minVersion: "17.0.0",
16609
+ version: "22.2.4",
16610
+ type: HxKbd,
16611
+ isStandalone: true,
16612
+ selector: "hx-kbd",
16613
+ inputs: {
16614
+ keys: {
16615
+ classPropertyName: "keys",
16616
+ publicName: "keys",
16617
+ isSignal: true,
16618
+ isRequired: false,
16619
+ transformFunction: null
16620
+ },
16621
+ size: {
16622
+ classPropertyName: "size",
16623
+ publicName: "size",
16624
+ isSignal: true,
16625
+ isRequired: false,
16626
+ transformFunction: null
16627
+ },
16628
+ separator: {
16629
+ classPropertyName: "separator",
16630
+ publicName: "separator",
16631
+ isSignal: true,
16632
+ isRequired: false,
16633
+ transformFunction: null
16634
+ }
16635
+ },
16636
+ host: {
16637
+ properties: { "class.hx-kbd-sm": "size() === 'sm'" },
16638
+ classAttribute: "hx-kbd"
16639
+ },
16640
+ ngImport: i0,
16641
+ template: "@for (key of keys(); track $index) {\n @if ($index > 0 && plus()) {\n <span class=\"hx-kbd-separator\" aria-hidden=\"true\">+</span>\n }\n <kbd class=\"hx-kbd-key\">{{ key }}</kbd>\n}\n",
16642
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
16643
+ });
16644
+ };
16645
+ i0.ɵɵngDeclareClassMetadata({
16646
+ minVersion: "12.0.0",
16647
+ version: "22.2.4",
16648
+ ngImport: i0,
16649
+ type: HxKbd,
16650
+ decorators: [{
16651
+ type: Component,
16652
+ args: [{
16653
+ selector: "hx-kbd",
16654
+ changeDetection: ChangeDetectionStrategy.OnPush,
16655
+ host: {
16656
+ class: "hx-kbd",
16657
+ "[class.hx-kbd-sm]": "size() === 'sm'"
16658
+ },
16659
+ template: "@for (key of keys(); track $index) {\n @if ($index > 0 && plus()) {\n <span class=\"hx-kbd-separator\" aria-hidden=\"true\">+</span>\n }\n <kbd class=\"hx-kbd-key\">{{ key }}</kbd>\n}\n"
16660
+ }]
16661
+ }],
16662
+ propDecorators: {
16663
+ keys: [{
16664
+ type: i0.Input,
16665
+ args: [{
16666
+ isSignal: true,
16667
+ alias: "keys",
16668
+ required: false
16669
+ }]
16670
+ }],
16671
+ size: [{
16672
+ type: i0.Input,
16673
+ args: [{
16674
+ isSignal: true,
16675
+ alias: "size",
16676
+ required: false
16677
+ }]
16678
+ }],
16679
+ separator: [{
16680
+ type: i0.Input,
16681
+ args: [{
16682
+ isSignal: true,
16683
+ alias: "separator",
16684
+ required: false
16685
+ }]
16686
+ }]
16687
+ }
16688
+ });
17209
16689
  var HxListbox = class HxListbox {
17210
16690
  options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
17211
16691
  optionLabel = input("label", ...ngDevMode ? [{ debugName: "optionLabel" }] : /* istanbul ignore next */ []);
@@ -17445,54 +16925,7 @@ var HxListbox = class HxListbox {
17445
16925
  isSignal: true
17446
16926
  }],
17447
16927
  ngImport: i0,
17448
- template: `
17449
- @if (filter()) {
17450
- <div class="hx-listbox-header">
17451
- <input
17452
- type="text"
17453
- class="hx-listbox-filter"
17454
- autocomplete="off"
17455
- [attr.aria-label]="filterPlaceholder()"
17456
- [attr.aria-controls]="listId"
17457
- [placeholder]="filterPlaceholder()"
17458
- [disabled]="isDisabled()"
17459
- [value]="query()"
17460
- (input)="query.set($any($event.target).value)"
17461
- />
17462
- </div>
17463
- }
17464
- <div class="hx-listbox-scroll" [style.max-height]="scrollHeight()">
17465
- <div
17466
- cdkListbox
17467
- class="hx-listbox-list"
17468
- [id]="listId"
17469
- [cdkListboxMultiple]="multiple()"
17470
- [cdkListboxDisabled]="isDisabled()"
17471
- [cdkListboxValue]="selectedValues()"
17472
- [cdkListboxUseActiveDescendant]="true"
17473
- [cdkListboxCompareWith]="compareWith()"
17474
- [attr.aria-label]="ariaLabel() ?? null"
17475
- [attr.aria-labelledby]="ariaLabelledby() ?? null"
17476
- [attr.aria-invalid]="invalid() ? 'true' : null"
17477
- (cdkListboxValueChange)="onSelect($event)"
17478
- >
17479
- @for (item of visibleItems(); track item) {
17480
- <div
17481
- class="hx-listbox-option"
17482
- [cdkOption]="item.value"
17483
- [cdkOptionDisabled]="item.disabled"
17484
- [cdkOptionTypeaheadLabel]="item.label"
17485
- >
17486
- <span class="hx-listbox-check" aria-hidden="true"></span>
17487
- <span>{{ item.label }}</span>
17488
- </div>
17489
- } @empty {
17490
- <div class="hx-listbox-empty">{{ emptyMessage() }}</div>
17491
- }
17492
- </div>
17493
- </div>
17494
- `,
17495
- isInline: true,
16928
+ template: "@if (filter()) {\n <div class=\"hx-listbox-header\">\n <input\n type=\"text\"\n class=\"hx-listbox-filter\"\n autocomplete=\"off\"\n [attr.aria-label]=\"filterPlaceholder()\"\n [attr.aria-controls]=\"listId\"\n [placeholder]=\"filterPlaceholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n />\n </div>\n}\n<div class=\"hx-listbox-scroll\" [style.max-height]=\"scrollHeight()\">\n <div\n cdkListbox\n class=\"hx-listbox-list\"\n [id]=\"listId\"\n [cdkListboxMultiple]=\"multiple()\"\n [cdkListboxDisabled]=\"isDisabled()\"\n [cdkListboxValue]=\"selectedValues()\"\n [cdkListboxUseActiveDescendant]=\"true\"\n [cdkListboxCompareWith]=\"compareWith()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (cdkListboxValueChange)=\"onSelect($event)\"\n >\n @for (item of visibleItems(); track item) {\n <div\n class=\"hx-listbox-option\"\n [cdkOption]=\"item.value\"\n [cdkOptionDisabled]=\"item.disabled\"\n [cdkOptionTypeaheadLabel]=\"item.label\"\n >\n <span class=\"hx-listbox-check\" aria-hidden=\"true\"></span>\n <span>{{ item.label }}</span>\n </div>\n } @empty {\n <div class=\"hx-listbox-empty\">{{ emptyMessage() }}</div>\n }\n </div>\n</div>\n",
17496
16929
  dependencies: [{
17497
16930
  kind: "directive",
17498
16931
  type: CdkListbox,
@@ -17550,53 +16983,7 @@ i0.ɵɵngDeclareClassMetadata({
17550
16983
  "[class.hx-listbox-checkmark]": "checkmark()",
17551
16984
  "(focusout)": "onFocusOut($event)"
17552
16985
  },
17553
- template: `
17554
- @if (filter()) {
17555
- <div class="hx-listbox-header">
17556
- <input
17557
- type="text"
17558
- class="hx-listbox-filter"
17559
- autocomplete="off"
17560
- [attr.aria-label]="filterPlaceholder()"
17561
- [attr.aria-controls]="listId"
17562
- [placeholder]="filterPlaceholder()"
17563
- [disabled]="isDisabled()"
17564
- [value]="query()"
17565
- (input)="query.set($any($event.target).value)"
17566
- />
17567
- </div>
17568
- }
17569
- <div class="hx-listbox-scroll" [style.max-height]="scrollHeight()">
17570
- <div
17571
- cdkListbox
17572
- class="hx-listbox-list"
17573
- [id]="listId"
17574
- [cdkListboxMultiple]="multiple()"
17575
- [cdkListboxDisabled]="isDisabled()"
17576
- [cdkListboxValue]="selectedValues()"
17577
- [cdkListboxUseActiveDescendant]="true"
17578
- [cdkListboxCompareWith]="compareWith()"
17579
- [attr.aria-label]="ariaLabel() ?? null"
17580
- [attr.aria-labelledby]="ariaLabelledby() ?? null"
17581
- [attr.aria-invalid]="invalid() ? 'true' : null"
17582
- (cdkListboxValueChange)="onSelect($event)"
17583
- >
17584
- @for (item of visibleItems(); track item) {
17585
- <div
17586
- class="hx-listbox-option"
17587
- [cdkOption]="item.value"
17588
- [cdkOptionDisabled]="item.disabled"
17589
- [cdkOptionTypeaheadLabel]="item.label"
17590
- >
17591
- <span class="hx-listbox-check" aria-hidden="true"></span>
17592
- <span>{{ item.label }}</span>
17593
- </div>
17594
- } @empty {
17595
- <div class="hx-listbox-empty">{{ emptyMessage() }}</div>
17596
- }
17597
- </div>
17598
- </div>
17599
- `
16986
+ template: "@if (filter()) {\n <div class=\"hx-listbox-header\">\n <input\n type=\"text\"\n class=\"hx-listbox-filter\"\n autocomplete=\"off\"\n [attr.aria-label]=\"filterPlaceholder()\"\n [attr.aria-controls]=\"listId\"\n [placeholder]=\"filterPlaceholder()\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n />\n </div>\n}\n<div class=\"hx-listbox-scroll\" [style.max-height]=\"scrollHeight()\">\n <div\n cdkListbox\n class=\"hx-listbox-list\"\n [id]=\"listId\"\n [cdkListboxMultiple]=\"multiple()\"\n [cdkListboxDisabled]=\"isDisabled()\"\n [cdkListboxValue]=\"selectedValues()\"\n [cdkListboxUseActiveDescendant]=\"true\"\n [cdkListboxCompareWith]=\"compareWith()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (cdkListboxValueChange)=\"onSelect($event)\"\n >\n @for (item of visibleItems(); track item) {\n <div\n class=\"hx-listbox-option\"\n [cdkOption]=\"item.value\"\n [cdkOptionDisabled]=\"item.disabled\"\n [cdkOptionTypeaheadLabel]=\"item.label\"\n >\n <span class=\"hx-listbox-check\" aria-hidden=\"true\"></span>\n <span>{{ item.label }}</span>\n </div>\n } @empty {\n <div class=\"hx-listbox-empty\">{{ emptyMessage() }}</div>\n }\n </div>\n</div>\n"
17600
16987
  }]
17601
16988
  }],
17602
16989
  propDecorators: {
@@ -17816,93 +17203,7 @@ var HxMenuPanel = class HxMenuPanel {
17816
17203
  isSignal: true
17817
17204
  }],
17818
17205
  ngImport: i0,
17819
- template: `
17820
- <div cdkMenu class="hx-menu-list" [attr.aria-label]="ariaLabel() ?? null">
17821
- <ng-template #content let-item let-submenu="submenu">
17822
- @if (item.icon) {
17823
- <span class="hx-menu-icon" [class]="item.icon" aria-hidden="true"></span>
17824
- }
17825
- <span class="hx-menu-label">{{ item.label }}</span>
17826
- @if (item.badge) {
17827
- <span class="hx-menu-badge">{{ item.badge }}</span>
17828
- }
17829
- @if (submenu) {
17830
- <span class="hx-menu-submenu-icon" aria-hidden="true"></span>
17831
- }
17832
- </ng-template>
17833
-
17834
- <ng-template #entries let-list let-top="top">
17835
- @for (item of visible(list); track $index) {
17836
- @if (item.separator) {
17837
- <div class="hx-menu-separator" role="separator"></div>
17838
- } @else if (top && item.items?.length && !item.command && !item.routerLink && !item.url) {
17839
- <div class="hx-menu-group" role="group" [attr.aria-label]="item.label">
17840
- <div class="hx-menu-heading" role="presentation">{{ item.label }}</div>
17841
- <ng-container [ngTemplateOutlet]="entries" [ngTemplateOutletContext]="{ $implicit: item.items, top: false }" />
17842
- </div>
17843
- } @else if (item.items?.length) {
17844
- <button
17845
- type="button"
17846
- class="hx-menu-item hx-menu-item-submenu"
17847
- cdkMenuItem
17848
- [cdkMenuTriggerFor]="sub"
17849
- [cdkMenuItemDisabled]="!!item.disabled"
17850
- [attr.id]="item.id ?? null"
17851
- [attr.aria-label]="item.ariaLabel ?? null"
17852
- >
17853
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item, submenu: true }" />
17854
- </button>
17855
- <ng-template #sub>
17856
- <hx-menu-panel class="hx-menu-submenu" [items]="item.items ?? []" [groups]="false" [notify]="notify() ?? emit" />
17857
- </ng-template>
17858
- } @else if (item.disabled) {
17859
- <button type="button" class="hx-menu-item" cdkMenuItem [cdkMenuItemDisabled]="true" [attr.id]="item.id ?? null" [attr.aria-label]="item.ariaLabel ?? null">
17860
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
17861
- </button>
17862
- } @else if (item.routerLink) {
17863
- <a
17864
- class="hx-menu-item"
17865
- cdkMenuItem
17866
- [routerLink]="item.routerLink"
17867
- [queryParams]="item.queryParams"
17868
- [attr.target]="item.target ?? null"
17869
- [attr.id]="item.id ?? null"
17870
- [attr.aria-label]="item.ariaLabel ?? null"
17871
- (click)="run(item, $event)"
17872
- >
17873
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
17874
- </a>
17875
- } @else if (item.url) {
17876
- <a
17877
- class="hx-menu-item"
17878
- cdkMenuItem
17879
- [href]="item.url"
17880
- [attr.target]="item.target ?? null"
17881
- [attr.id]="item.id ?? null"
17882
- [attr.aria-label]="item.ariaLabel ?? null"
17883
- (click)="run(item, $event)"
17884
- >
17885
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
17886
- </a>
17887
- } @else {
17888
- <button
17889
- type="button"
17890
- class="hx-menu-item"
17891
- cdkMenuItem
17892
- [attr.id]="item.id ?? null"
17893
- [attr.aria-label]="item.ariaLabel ?? null"
17894
- (click)="run(item, $event)"
17895
- >
17896
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
17897
- </button>
17898
- }
17899
- }
17900
- </ng-template>
17901
-
17902
- <ng-container [ngTemplateOutlet]="entries" [ngTemplateOutletContext]="{ $implicit: items(), top: groups() }" />
17903
- </div>
17904
- `,
17905
- isInline: true,
17206
+ template: "<div cdkMenu class=\"hx-menu-list\" [attr.aria-label]=\"ariaLabel() ?? null\">\n<ng-template #content let-item let-submenu=\"submenu\">\n @if (item.icon) {\n <span class=\"hx-menu-icon\" [class]=\"item.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-menu-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"hx-menu-badge\">{{ item.badge }}</span>\n }\n @if (submenu) {\n <span class=\"hx-menu-submenu-icon\" aria-hidden=\"true\"></span>\n }\n</ng-template>\n\n<ng-template #entries let-list let-top=\"top\">\n @for (item of visible(list); track $index) {\n @if (item.separator) {\n <div class=\"hx-menu-separator\" role=\"separator\"></div>\n } @else if (top && item.items?.length && !item.command && !item.routerLink && !item.url) {\n <div class=\"hx-menu-group\" role=\"group\" [attr.aria-label]=\"item.label\">\n <div class=\"hx-menu-heading\" role=\"presentation\">{{ item.label }}</div>\n <ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: item.items, top: false }\" />\n </div>\n } @else if (item.items?.length) {\n <button\n type=\"button\"\n class=\"hx-menu-item hx-menu-item-submenu\"\n cdkMenuItem\n [cdkMenuTriggerFor]=\"sub\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item, submenu: true }\" />\n </button>\n <ng-template #sub>\n <hx-menu-panel class=\"hx-menu-submenu\" [items]=\"item.items ?? []\" [groups]=\"false\" [notify]=\"notify() ?? emit\" />\n </ng-template>\n } @else if (item.disabled) {\n <button type=\"button\" class=\"hx-menu-item\" cdkMenuItem [cdkMenuItemDisabled]=\"true\" [attr.id]=\"item.id ?? null\" [attr.aria-label]=\"item.ariaLabel ?? null\">\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else if (item.routerLink) {\n <a\n class=\"hx-menu-item\"\n cdkMenuItem\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (item.url) {\n <a\n class=\"hx-menu-item\"\n cdkMenuItem\n [href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"hx-menu-item\"\n cdkMenuItem\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n }\n }\n</ng-template>\n\n<ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: items(), top: groups() }\" />\n</div>\n",
17906
17207
  dependencies: [
17907
17208
  {
17908
17209
  kind: "component",
@@ -17995,92 +17296,7 @@ i0.ɵɵngDeclareClassMetadata({
17995
17296
  ],
17996
17297
  changeDetection: ChangeDetectionStrategy.OnPush,
17997
17298
  host: { class: "hx-menu-panel" },
17998
- template: `
17999
- <div cdkMenu class="hx-menu-list" [attr.aria-label]="ariaLabel() ?? null">
18000
- <ng-template #content let-item let-submenu="submenu">
18001
- @if (item.icon) {
18002
- <span class="hx-menu-icon" [class]="item.icon" aria-hidden="true"></span>
18003
- }
18004
- <span class="hx-menu-label">{{ item.label }}</span>
18005
- @if (item.badge) {
18006
- <span class="hx-menu-badge">{{ item.badge }}</span>
18007
- }
18008
- @if (submenu) {
18009
- <span class="hx-menu-submenu-icon" aria-hidden="true"></span>
18010
- }
18011
- </ng-template>
18012
-
18013
- <ng-template #entries let-list let-top="top">
18014
- @for (item of visible(list); track $index) {
18015
- @if (item.separator) {
18016
- <div class="hx-menu-separator" role="separator"></div>
18017
- } @else if (top && item.items?.length && !item.command && !item.routerLink && !item.url) {
18018
- <div class="hx-menu-group" role="group" [attr.aria-label]="item.label">
18019
- <div class="hx-menu-heading" role="presentation">{{ item.label }}</div>
18020
- <ng-container [ngTemplateOutlet]="entries" [ngTemplateOutletContext]="{ $implicit: item.items, top: false }" />
18021
- </div>
18022
- } @else if (item.items?.length) {
18023
- <button
18024
- type="button"
18025
- class="hx-menu-item hx-menu-item-submenu"
18026
- cdkMenuItem
18027
- [cdkMenuTriggerFor]="sub"
18028
- [cdkMenuItemDisabled]="!!item.disabled"
18029
- [attr.id]="item.id ?? null"
18030
- [attr.aria-label]="item.ariaLabel ?? null"
18031
- >
18032
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item, submenu: true }" />
18033
- </button>
18034
- <ng-template #sub>
18035
- <hx-menu-panel class="hx-menu-submenu" [items]="item.items ?? []" [groups]="false" [notify]="notify() ?? emit" />
18036
- </ng-template>
18037
- } @else if (item.disabled) {
18038
- <button type="button" class="hx-menu-item" cdkMenuItem [cdkMenuItemDisabled]="true" [attr.id]="item.id ?? null" [attr.aria-label]="item.ariaLabel ?? null">
18039
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18040
- </button>
18041
- } @else if (item.routerLink) {
18042
- <a
18043
- class="hx-menu-item"
18044
- cdkMenuItem
18045
- [routerLink]="item.routerLink"
18046
- [queryParams]="item.queryParams"
18047
- [attr.target]="item.target ?? null"
18048
- [attr.id]="item.id ?? null"
18049
- [attr.aria-label]="item.ariaLabel ?? null"
18050
- (click)="run(item, $event)"
18051
- >
18052
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18053
- </a>
18054
- } @else if (item.url) {
18055
- <a
18056
- class="hx-menu-item"
18057
- cdkMenuItem
18058
- [href]="item.url"
18059
- [attr.target]="item.target ?? null"
18060
- [attr.id]="item.id ?? null"
18061
- [attr.aria-label]="item.ariaLabel ?? null"
18062
- (click)="run(item, $event)"
18063
- >
18064
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18065
- </a>
18066
- } @else {
18067
- <button
18068
- type="button"
18069
- class="hx-menu-item"
18070
- cdkMenuItem
18071
- [attr.id]="item.id ?? null"
18072
- [attr.aria-label]="item.ariaLabel ?? null"
18073
- (click)="run(item, $event)"
18074
- >
18075
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18076
- </button>
18077
- }
18078
- }
18079
- </ng-template>
18080
-
18081
- <ng-container [ngTemplateOutlet]="entries" [ngTemplateOutletContext]="{ $implicit: items(), top: groups() }" />
18082
- </div>
18083
- `
17299
+ template: "<div cdkMenu class=\"hx-menu-list\" [attr.aria-label]=\"ariaLabel() ?? null\">\n<ng-template #content let-item let-submenu=\"submenu\">\n @if (item.icon) {\n <span class=\"hx-menu-icon\" [class]=\"item.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-menu-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"hx-menu-badge\">{{ item.badge }}</span>\n }\n @if (submenu) {\n <span class=\"hx-menu-submenu-icon\" aria-hidden=\"true\"></span>\n }\n</ng-template>\n\n<ng-template #entries let-list let-top=\"top\">\n @for (item of visible(list); track $index) {\n @if (item.separator) {\n <div class=\"hx-menu-separator\" role=\"separator\"></div>\n } @else if (top && item.items?.length && !item.command && !item.routerLink && !item.url) {\n <div class=\"hx-menu-group\" role=\"group\" [attr.aria-label]=\"item.label\">\n <div class=\"hx-menu-heading\" role=\"presentation\">{{ item.label }}</div>\n <ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: item.items, top: false }\" />\n </div>\n } @else if (item.items?.length) {\n <button\n type=\"button\"\n class=\"hx-menu-item hx-menu-item-submenu\"\n cdkMenuItem\n [cdkMenuTriggerFor]=\"sub\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item, submenu: true }\" />\n </button>\n <ng-template #sub>\n <hx-menu-panel class=\"hx-menu-submenu\" [items]=\"item.items ?? []\" [groups]=\"false\" [notify]=\"notify() ?? emit\" />\n </ng-template>\n } @else if (item.disabled) {\n <button type=\"button\" class=\"hx-menu-item\" cdkMenuItem [cdkMenuItemDisabled]=\"true\" [attr.id]=\"item.id ?? null\" [attr.aria-label]=\"item.ariaLabel ?? null\">\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else if (item.routerLink) {\n <a\n class=\"hx-menu-item\"\n cdkMenuItem\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (item.url) {\n <a\n class=\"hx-menu-item\"\n cdkMenuItem\n [href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"hx-menu-item\"\n cdkMenuItem\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n }\n }\n</ng-template>\n\n<ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: items(), top: groups() }\" />\n</div>\n"
18084
17300
  }]
18085
17301
  }],
18086
17302
  propDecorators: {
@@ -18273,26 +17489,7 @@ var HxMenu = class HxMenu {
18273
17489
  isSignal: true
18274
17490
  }],
18275
17491
  ngImport: i0,
18276
- template: `
18277
- @if (popup()) {
18278
- <ng-template
18279
- cdkConnectedOverlay
18280
- cdkConnectedOverlayPanelClass="hx-menu-overlay"
18281
- [cdkConnectedOverlayOrigin]="origin() ?? fallbackOrigin"
18282
- [cdkConnectedOverlayOpen]="open()"
18283
- [cdkConnectedOverlayPositions]="positions"
18284
- (overlayOutsideClick)="onOutsideClick($event)"
18285
- (overlayKeydown)="onOverlayKeydown($event)"
18286
- (attach)="onAttach()"
18287
- (detach)="open.set(false)"
18288
- >
18289
- <hx-menu-panel class="hx-menu-root" [items]="model()" [ariaLabel]="ariaLabel()" (triggered)="onTriggered($event)" />
18290
- </ng-template>
18291
- } @else {
18292
- <hx-menu-panel class="hx-menu-root" [items]="model()" [ariaLabel]="ariaLabel()" (triggered)="triggered.emit($event)" />
18293
- }
18294
- `,
18295
- isInline: true,
17492
+ template: "@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-menu-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin() ?? fallbackOrigin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"open.set(false)\"\n >\n <hx-menu-panel class=\"hx-menu-root\" [items]=\"model()\" [ariaLabel]=\"ariaLabel()\" (triggered)=\"onTriggered($event)\" />\n </ng-template>\n} @else {\n <hx-menu-panel class=\"hx-menu-root\" [items]=\"model()\" [ariaLabel]=\"ariaLabel()\" (triggered)=\"triggered.emit($event)\" />\n}\n",
18296
17493
  dependencies: [{
18297
17494
  kind: "directive",
18298
17495
  type: CdkConnectedOverlay,
@@ -18363,25 +17560,7 @@ i0.ɵɵngDeclareClassMetadata({
18363
17560
  class: "hx-menu",
18364
17561
  "[class.hx-menu-popup]": "popup()"
18365
17562
  },
18366
- template: `
18367
- @if (popup()) {
18368
- <ng-template
18369
- cdkConnectedOverlay
18370
- cdkConnectedOverlayPanelClass="hx-menu-overlay"
18371
- [cdkConnectedOverlayOrigin]="origin() ?? fallbackOrigin"
18372
- [cdkConnectedOverlayOpen]="open()"
18373
- [cdkConnectedOverlayPositions]="positions"
18374
- (overlayOutsideClick)="onOutsideClick($event)"
18375
- (overlayKeydown)="onOverlayKeydown($event)"
18376
- (attach)="onAttach()"
18377
- (detach)="open.set(false)"
18378
- >
18379
- <hx-menu-panel class="hx-menu-root" [items]="model()" [ariaLabel]="ariaLabel()" (triggered)="onTriggered($event)" />
18380
- </ng-template>
18381
- } @else {
18382
- <hx-menu-panel class="hx-menu-root" [items]="model()" [ariaLabel]="ariaLabel()" (triggered)="triggered.emit($event)" />
18383
- }
18384
- `
17563
+ template: "@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayPanelClass=\"hx-menu-overlay\"\n [cdkConnectedOverlayOrigin]=\"origin() ?? fallbackOrigin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"open.set(false)\"\n >\n <hx-menu-panel class=\"hx-menu-root\" [items]=\"model()\" [ariaLabel]=\"ariaLabel()\" (triggered)=\"onTriggered($event)\" />\n </ng-template>\n} @else {\n <hx-menu-panel class=\"hx-menu-root\" [items]=\"model()\" [ariaLabel]=\"ariaLabel()\" (triggered)=\"triggered.emit($event)\" />\n}\n"
18385
17564
  }]
18386
17565
  }],
18387
17566
  propDecorators: {
@@ -18506,101 +17685,7 @@ var HxMenubar = class HxMenubar {
18506
17685
  classAttribute: "hx-menubar"
18507
17686
  },
18508
17687
  ngImport: i0,
18509
- template: `
18510
- <div class="hx-menubar-start"><ng-content select="[hxMenubarStart]" /></div>
18511
-
18512
- @if (collapsed()) {
18513
- <button
18514
- type="button"
18515
- class="hx-menubar-button"
18516
- aria-haspopup="menu"
18517
- [attr.aria-label]="buttonLabel()"
18518
- (click)="menu.toggle($event)"
18519
- >
18520
- <span class="hx-menubar-button-icon" aria-hidden="true"></span>
18521
- </button>
18522
- <hx-menu #menu popup [model]="model()" [ariaLabel]="ariaLabel()" (triggered)="triggered.emit($event)" />
18523
- } @else {
18524
- <div cdkMenuBar class="hx-menubar-list" [attr.aria-label]="ariaLabel() ?? null">
18525
- <ng-template #content let-item let-submenu="submenu">
18526
- @if (item.icon) {
18527
- <span class="hx-menu-icon" [class]="item.icon" aria-hidden="true"></span>
18528
- }
18529
- <span class="hx-menu-label">{{ item.label }}</span>
18530
- @if (item.badge) {
18531
- <span class="hx-menu-badge">{{ item.badge }}</span>
18532
- }
18533
- @if (submenu) {
18534
- <span class="hx-menubar-submenu-icon" aria-hidden="true"></span>
18535
- }
18536
- </ng-template>
18537
-
18538
- @for (item of visible(); track $index) {
18539
- @if (item.separator) {
18540
- <div class="hx-menubar-separator" role="separator"></div>
18541
- } @else if (item.items?.length) {
18542
- <button
18543
- type="button"
18544
- class="hx-menubar-item"
18545
- cdkMenuItem
18546
- [cdkMenuTriggerFor]="sub"
18547
- [cdkMenuItemDisabled]="!!item.disabled"
18548
- [attr.id]="item.id ?? null"
18549
- [attr.aria-label]="item.ariaLabel ?? null"
18550
- >
18551
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item, submenu: true }" />
18552
- </button>
18553
- <ng-template #sub>
18554
- <hx-menu-panel class="hx-menubar-submenu" [items]="item.items ?? []" [groups]="false" [notify]="notify" />
18555
- </ng-template>
18556
- } @else if (item.disabled) {
18557
- <button type="button" class="hx-menubar-item" cdkMenuItem [cdkMenuItemDisabled]="true" [attr.id]="item.id ?? null" [attr.aria-label]="item.ariaLabel ?? null">
18558
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18559
- </button>
18560
- } @else if (item.routerLink) {
18561
- <a
18562
- class="hx-menubar-item"
18563
- cdkMenuItem
18564
- [routerLink]="item.routerLink"
18565
- [queryParams]="item.queryParams"
18566
- [attr.target]="item.target ?? null"
18567
- [attr.id]="item.id ?? null"
18568
- [attr.aria-label]="item.ariaLabel ?? null"
18569
- (click)="run(item, $event)"
18570
- >
18571
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18572
- </a>
18573
- } @else if (item.url) {
18574
- <a
18575
- class="hx-menubar-item"
18576
- cdkMenuItem
18577
- [href]="item.url"
18578
- [attr.target]="item.target ?? null"
18579
- [attr.id]="item.id ?? null"
18580
- [attr.aria-label]="item.ariaLabel ?? null"
18581
- (click)="run(item, $event)"
18582
- >
18583
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18584
- </a>
18585
- } @else {
18586
- <button
18587
- type="button"
18588
- class="hx-menubar-item"
18589
- cdkMenuItem
18590
- [attr.id]="item.id ?? null"
18591
- [attr.aria-label]="item.ariaLabel ?? null"
18592
- (click)="run(item, $event)"
18593
- >
18594
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18595
- </button>
18596
- }
18597
- }
18598
- </div>
18599
- }
18600
-
18601
- <div class="hx-menubar-end"><ng-content select="[hxMenubarEnd]" /></div>
18602
- `,
18603
- isInline: true,
17688
+ template: "<div class=\"hx-menubar-start\"><ng-content select=\"[hxMenubarStart]\" /></div>\n\n@if (collapsed()) {\n <button\n type=\"button\"\n class=\"hx-menubar-button\"\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"buttonLabel()\"\n (click)=\"menu.toggle($event)\"\n >\n <span class=\"hx-menubar-button-icon\" aria-hidden=\"true\"></span>\n </button>\n <hx-menu #menu popup [model]=\"model()\" [ariaLabel]=\"ariaLabel()\" (triggered)=\"triggered.emit($event)\" />\n} @else {\n <div cdkMenuBar class=\"hx-menubar-list\" [attr.aria-label]=\"ariaLabel() ?? null\">\n <ng-template #content let-item let-submenu=\"submenu\">\n @if (item.icon) {\n <span class=\"hx-menu-icon\" [class]=\"item.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-menu-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"hx-menu-badge\">{{ item.badge }}</span>\n }\n @if (submenu) {\n <span class=\"hx-menubar-submenu-icon\" aria-hidden=\"true\"></span>\n }\n </ng-template>\n\n @for (item of visible(); track $index) {\n @if (item.separator) {\n <div class=\"hx-menubar-separator\" role=\"separator\"></div>\n } @else if (item.items?.length) {\n <button\n type=\"button\"\n class=\"hx-menubar-item\"\n cdkMenuItem\n [cdkMenuTriggerFor]=\"sub\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item, submenu: true }\" />\n </button>\n <ng-template #sub>\n <hx-menu-panel class=\"hx-menubar-submenu\" [items]=\"item.items ?? []\" [groups]=\"false\" [notify]=\"notify\" />\n </ng-template>\n } @else if (item.disabled) {\n <button type=\"button\" class=\"hx-menubar-item\" cdkMenuItem [cdkMenuItemDisabled]=\"true\" [attr.id]=\"item.id ?? null\" [attr.aria-label]=\"item.ariaLabel ?? null\">\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else if (item.routerLink) {\n <a\n class=\"hx-menubar-item\"\n cdkMenuItem\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (item.url) {\n <a\n class=\"hx-menubar-item\"\n cdkMenuItem\n [href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"hx-menubar-item\"\n cdkMenuItem\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n }\n }\n </div>\n}\n\n<div class=\"hx-menubar-end\"><ng-content select=\"[hxMenubarEnd]\" /></div>\n",
18604
17689
  dependencies: [
18605
17690
  {
18606
17691
  kind: "directive",
@@ -18712,100 +17797,7 @@ i0.ɵɵngDeclareClassMetadata({
18712
17797
  class: "hx-menubar",
18713
17798
  "[class.hx-menubar-collapsed]": "collapsed()"
18714
17799
  },
18715
- template: `
18716
- <div class="hx-menubar-start"><ng-content select="[hxMenubarStart]" /></div>
18717
-
18718
- @if (collapsed()) {
18719
- <button
18720
- type="button"
18721
- class="hx-menubar-button"
18722
- aria-haspopup="menu"
18723
- [attr.aria-label]="buttonLabel()"
18724
- (click)="menu.toggle($event)"
18725
- >
18726
- <span class="hx-menubar-button-icon" aria-hidden="true"></span>
18727
- </button>
18728
- <hx-menu #menu popup [model]="model()" [ariaLabel]="ariaLabel()" (triggered)="triggered.emit($event)" />
18729
- } @else {
18730
- <div cdkMenuBar class="hx-menubar-list" [attr.aria-label]="ariaLabel() ?? null">
18731
- <ng-template #content let-item let-submenu="submenu">
18732
- @if (item.icon) {
18733
- <span class="hx-menu-icon" [class]="item.icon" aria-hidden="true"></span>
18734
- }
18735
- <span class="hx-menu-label">{{ item.label }}</span>
18736
- @if (item.badge) {
18737
- <span class="hx-menu-badge">{{ item.badge }}</span>
18738
- }
18739
- @if (submenu) {
18740
- <span class="hx-menubar-submenu-icon" aria-hidden="true"></span>
18741
- }
18742
- </ng-template>
18743
-
18744
- @for (item of visible(); track $index) {
18745
- @if (item.separator) {
18746
- <div class="hx-menubar-separator" role="separator"></div>
18747
- } @else if (item.items?.length) {
18748
- <button
18749
- type="button"
18750
- class="hx-menubar-item"
18751
- cdkMenuItem
18752
- [cdkMenuTriggerFor]="sub"
18753
- [cdkMenuItemDisabled]="!!item.disabled"
18754
- [attr.id]="item.id ?? null"
18755
- [attr.aria-label]="item.ariaLabel ?? null"
18756
- >
18757
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item, submenu: true }" />
18758
- </button>
18759
- <ng-template #sub>
18760
- <hx-menu-panel class="hx-menubar-submenu" [items]="item.items ?? []" [groups]="false" [notify]="notify" />
18761
- </ng-template>
18762
- } @else if (item.disabled) {
18763
- <button type="button" class="hx-menubar-item" cdkMenuItem [cdkMenuItemDisabled]="true" [attr.id]="item.id ?? null" [attr.aria-label]="item.ariaLabel ?? null">
18764
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18765
- </button>
18766
- } @else if (item.routerLink) {
18767
- <a
18768
- class="hx-menubar-item"
18769
- cdkMenuItem
18770
- [routerLink]="item.routerLink"
18771
- [queryParams]="item.queryParams"
18772
- [attr.target]="item.target ?? null"
18773
- [attr.id]="item.id ?? null"
18774
- [attr.aria-label]="item.ariaLabel ?? null"
18775
- (click)="run(item, $event)"
18776
- >
18777
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18778
- </a>
18779
- } @else if (item.url) {
18780
- <a
18781
- class="hx-menubar-item"
18782
- cdkMenuItem
18783
- [href]="item.url"
18784
- [attr.target]="item.target ?? null"
18785
- [attr.id]="item.id ?? null"
18786
- [attr.aria-label]="item.ariaLabel ?? null"
18787
- (click)="run(item, $event)"
18788
- >
18789
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18790
- </a>
18791
- } @else {
18792
- <button
18793
- type="button"
18794
- class="hx-menubar-item"
18795
- cdkMenuItem
18796
- [attr.id]="item.id ?? null"
18797
- [attr.aria-label]="item.ariaLabel ?? null"
18798
- (click)="run(item, $event)"
18799
- >
18800
- <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: item }" />
18801
- </button>
18802
- }
18803
- }
18804
- </div>
18805
- }
18806
-
18807
- <div class="hx-menubar-end"><ng-content select="[hxMenubarEnd]" /></div>
18808
- `
17800
+ template: "<div class=\"hx-menubar-start\"><ng-content select=\"[hxMenubarStart]\" /></div>\n\n@if (collapsed()) {\n <button\n type=\"button\"\n class=\"hx-menubar-button\"\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"buttonLabel()\"\n (click)=\"menu.toggle($event)\"\n >\n <span class=\"hx-menubar-button-icon\" aria-hidden=\"true\"></span>\n </button>\n <hx-menu #menu popup [model]=\"model()\" [ariaLabel]=\"ariaLabel()\" (triggered)=\"triggered.emit($event)\" />\n} @else {\n <div cdkMenuBar class=\"hx-menubar-list\" [attr.aria-label]=\"ariaLabel() ?? null\">\n <ng-template #content let-item let-submenu=\"submenu\">\n @if (item.icon) {\n <span class=\"hx-menu-icon\" [class]=\"item.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-menu-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"hx-menu-badge\">{{ item.badge }}</span>\n }\n @if (submenu) {\n <span class=\"hx-menubar-submenu-icon\" aria-hidden=\"true\"></span>\n }\n </ng-template>\n\n @for (item of visible(); track $index) {\n @if (item.separator) {\n <div class=\"hx-menubar-separator\" role=\"separator\"></div>\n } @else if (item.items?.length) {\n <button\n type=\"button\"\n class=\"hx-menubar-item\"\n cdkMenuItem\n [cdkMenuTriggerFor]=\"sub\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item, submenu: true }\" />\n </button>\n <ng-template #sub>\n <hx-menu-panel class=\"hx-menubar-submenu\" [items]=\"item.items ?? []\" [groups]=\"false\" [notify]=\"notify\" />\n </ng-template>\n } @else if (item.disabled) {\n <button type=\"button\" class=\"hx-menubar-item\" cdkMenuItem [cdkMenuItemDisabled]=\"true\" [attr.id]=\"item.id ?? null\" [attr.aria-label]=\"item.ariaLabel ?? null\">\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else if (item.routerLink) {\n <a\n class=\"hx-menubar-item\"\n cdkMenuItem\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (item.url) {\n <a\n class=\"hx-menubar-item\"\n cdkMenuItem\n [href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"hx-menubar-item\"\n cdkMenuItem\n [attr.id]=\"item.id ?? null\"\n [attr.aria-label]=\"item.ariaLabel ?? null\"\n (click)=\"run(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n }\n }\n </div>\n}\n\n<div class=\"hx-menubar-end\"><ng-content select=\"[hxMenubarEnd]\" /></div>\n"
18809
17801
  }]
18810
17802
  }],
18811
17803
  ctorParameters: () => [],
@@ -18964,22 +17956,7 @@ var HxMessage = class HxMessage {
18964
17956
  classAttribute: "hx-message"
18965
17957
  },
18966
17958
  ngImport: i0,
18967
- template: `
18968
- <div class="hx-message-content">
18969
- @if (icon()) {
18970
- <i class="hx-message-icon-custom" [class]="icon()" aria-hidden="true"></i>
18971
- } @else {
18972
- <span class="hx-message-icon" aria-hidden="true"></span>
18973
- }
18974
- <span class="hx-message-text"><ng-content /></span>
18975
- @if (closable()) {
18976
- <button type="button" class="hx-message-close" [attr.aria-label]="closeLabel()" (click)="dismiss()">
18977
- <span class="hx-message-close-icon" aria-hidden="true"></span>
18978
- </button>
18979
- }
18980
- </div>
18981
- `,
18982
- isInline: true,
17959
+ template: "<div class=\"hx-message-content\">\n @if (icon()) {\n <i class=\"hx-message-icon-custom\" [class]=\"icon()\" aria-hidden=\"true\"></i>\n } @else {\n <span class=\"hx-message-icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-message-text\"><ng-content /></span>\n @if (closable()) {\n <button type=\"button\" class=\"hx-message-close\" [attr.aria-label]=\"closeLabel()\" (click)=\"dismiss()\">\n <span class=\"hx-message-close-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n</div>\n",
18983
17960
  changeDetection: i0.ChangeDetectionStrategy.OnPush
18984
17961
  });
18985
17962
  };
@@ -19008,21 +17985,7 @@ i0.ɵɵngDeclareClassMetadata({
19008
17985
  "[attr.role]": "severity() === 'error' ? 'alert' : 'status'",
19009
17986
  "[hidden]": "!visible()"
19010
17987
  },
19011
- template: `
19012
- <div class="hx-message-content">
19013
- @if (icon()) {
19014
- <i class="hx-message-icon-custom" [class]="icon()" aria-hidden="true"></i>
19015
- } @else {
19016
- <span class="hx-message-icon" aria-hidden="true"></span>
19017
- }
19018
- <span class="hx-message-text"><ng-content /></span>
19019
- @if (closable()) {
19020
- <button type="button" class="hx-message-close" [attr.aria-label]="closeLabel()" (click)="dismiss()">
19021
- <span class="hx-message-close-icon" aria-hidden="true"></span>
19022
- </button>
19023
- }
19024
- </div>
19025
- `
17988
+ template: "<div class=\"hx-message-content\">\n @if (icon()) {\n <i class=\"hx-message-icon-custom\" [class]=\"icon()\" aria-hidden=\"true\"></i>\n } @else {\n <span class=\"hx-message-icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-message-text\"><ng-content /></span>\n @if (closable()) {\n <button type=\"button\" class=\"hx-message-close\" [attr.aria-label]=\"closeLabel()\" (click)=\"dismiss()\">\n <span class=\"hx-message-close-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n</div>\n"
19026
17989
  }]
19027
17990
  }],
19028
17991
  ctorParameters: () => [],
@@ -19919,33 +18882,7 @@ var HxPanel = class HxPanel {
19919
18882
  classAttribute: "hx-panel"
19920
18883
  },
19921
18884
  ngImport: i0,
19922
- template: `
19923
- <div class="hx-panel-header">
19924
- <span class="hx-panel-title" [id]="titleId">{{ header() }}</span>
19925
- <div class="hx-panel-header-actions"><ng-content select="[hxPanelHeader]" /></div>
19926
- @if (toggleable()) {
19927
- <button
19928
- type="button"
19929
- class="hx-panel-toggle"
19930
- [attr.aria-expanded]="!isCollapsed()"
19931
- [attr.aria-controls]="contentId"
19932
- [attr.aria-labelledby]="titleId"
19933
- (click)="toggle()"
19934
- >
19935
- <span class="hx-panel-toggle-icon" aria-hidden="true"></span>
19936
- </button>
19937
- }
19938
- </div>
19939
- <div class="hx-panel-collapse" [attr.inert]="isCollapsed() ? '' : null">
19940
- <div class="hx-panel-collapse-inner">
19941
- <div class="hx-panel-content" role="region" [id]="contentId" [attr.aria-labelledby]="titleId">
19942
- <ng-content />
19943
- </div>
19944
- <div class="hx-panel-footer"><ng-content select="[hxPanelFooter]" /></div>
19945
- </div>
19946
- </div>
19947
- `,
19948
- isInline: true,
18885
+ template: "<div class=\"hx-panel-header\">\n <span class=\"hx-panel-title\" [id]=\"titleId\">{{ header() }}</span>\n <div class=\"hx-panel-header-actions\"><ng-content select=\"[hxPanelHeader]\" /></div>\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"hx-panel-toggle\"\n [attr.aria-expanded]=\"!isCollapsed()\"\n [attr.aria-controls]=\"contentId\"\n [attr.aria-labelledby]=\"titleId\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-panel-toggle-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n</div>\n<div class=\"hx-panel-collapse\" [attr.inert]=\"isCollapsed() ? '' : null\">\n <div class=\"hx-panel-collapse-inner\">\n <div class=\"hx-panel-content\" role=\"region\" [id]=\"contentId\" [attr.aria-labelledby]=\"titleId\">\n <ng-content />\n </div>\n <div class=\"hx-panel-footer\"><ng-content select=\"[hxPanelFooter]\" /></div>\n </div>\n</div>\n",
19949
18886
  changeDetection: i0.ChangeDetectionStrategy.OnPush
19950
18887
  });
19951
18888
  };
@@ -19964,32 +18901,7 @@ i0.ɵɵngDeclareClassMetadata({
19964
18901
  "[class.hx-panel-toggleable]": "toggleable()",
19965
18902
  "[class.hx-panel-collapsed]": "isCollapsed()"
19966
18903
  },
19967
- template: `
19968
- <div class="hx-panel-header">
19969
- <span class="hx-panel-title" [id]="titleId">{{ header() }}</span>
19970
- <div class="hx-panel-header-actions"><ng-content select="[hxPanelHeader]" /></div>
19971
- @if (toggleable()) {
19972
- <button
19973
- type="button"
19974
- class="hx-panel-toggle"
19975
- [attr.aria-expanded]="!isCollapsed()"
19976
- [attr.aria-controls]="contentId"
19977
- [attr.aria-labelledby]="titleId"
19978
- (click)="toggle()"
19979
- >
19980
- <span class="hx-panel-toggle-icon" aria-hidden="true"></span>
19981
- </button>
19982
- }
19983
- </div>
19984
- <div class="hx-panel-collapse" [attr.inert]="isCollapsed() ? '' : null">
19985
- <div class="hx-panel-collapse-inner">
19986
- <div class="hx-panel-content" role="region" [id]="contentId" [attr.aria-labelledby]="titleId">
19987
- <ng-content />
19988
- </div>
19989
- <div class="hx-panel-footer"><ng-content select="[hxPanelFooter]" /></div>
19990
- </div>
19991
- </div>
19992
- `
18904
+ template: "<div class=\"hx-panel-header\">\n <span class=\"hx-panel-title\" [id]=\"titleId\">{{ header() }}</span>\n <div class=\"hx-panel-header-actions\"><ng-content select=\"[hxPanelHeader]\" /></div>\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"hx-panel-toggle\"\n [attr.aria-expanded]=\"!isCollapsed()\"\n [attr.aria-controls]=\"contentId\"\n [attr.aria-labelledby]=\"titleId\"\n (click)=\"toggle()\"\n >\n <span class=\"hx-panel-toggle-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n</div>\n<div class=\"hx-panel-collapse\" [attr.inert]=\"isCollapsed() ? '' : null\">\n <div class=\"hx-panel-collapse-inner\">\n <div class=\"hx-panel-content\" role=\"region\" [id]=\"contentId\" [attr.aria-labelledby]=\"titleId\">\n <ng-content />\n </div>\n <div class=\"hx-panel-footer\"><ng-content select=\"[hxPanelFooter]\" /></div>\n </div>\n</div>\n"
19993
18905
  }]
19994
18906
  }],
19995
18907
  propDecorators: {
@@ -20220,47 +19132,7 @@ var HxPassword = class HxPassword {
20220
19132
  isSignal: true
20221
19133
  }],
20222
19134
  ngImport: i0,
20223
- template: `
20224
- <input
20225
- #field
20226
- hx-input
20227
- [id]="inputId() ?? defaultId"
20228
- [type]="visible() ? 'text' : 'password'"
20229
- [value]="value()"
20230
- [placeholder]="placeholder()"
20231
- [attr.autocomplete]="autocomplete()"
20232
- [attr.aria-label]="ariaLabel()"
20233
- [attr.aria-labelledby]="ariaLabelledby()"
20234
- [attr.aria-invalid]="invalid() ? 'true' : null"
20235
- [disabled]="isDisabled()"
20236
- [variant]="variant()"
20237
- [size]="size()"
20238
- [fluid]="true"
20239
- (input)="onInput($event)"
20240
- (blur)="onBlur()"
20241
- />
20242
- @if (toggleMask()) {
20243
- <button
20244
- type="button"
20245
- class="hx-password-toggle"
20246
- [disabled]="isDisabled()"
20247
- [attr.aria-label]="visible() ? hideLabel() : showLabel()"
20248
- [attr.aria-pressed]="visible()"
20249
- (click)="visible.set(!visible())"
20250
- >
20251
- <svg viewBox="0 0 24 24" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
20252
- @if (visible()) {
20253
- <path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" />
20254
- <path d="m1 1 22 22" />
20255
- } @else {
20256
- <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
20257
- <circle cx="12" cy="12" r="3" />
20258
- }
20259
- </svg>
20260
- </button>
20261
- }
20262
- `,
20263
- isInline: true,
19135
+ template: "<input\n #field\n hx-input\n [id]=\"inputId() ?? defaultId\"\n [type]=\"visible() ? 'text' : 'password'\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [disabled]=\"isDisabled()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [fluid]=\"true\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\"\n/>\n@if (toggleMask()) {\n <button\n type=\"button\"\n class=\"hx-password-toggle\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"visible() ? hideLabel() : showLabel()\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"visible.set(!visible())\"\n >\n <svg viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n @if (visible()) {\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24\" />\n <path d=\"m1 1 22 22\" />\n } @else {\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\" />\n <circle cx=\"12\" cy=\"12\" r=\"3\" />\n }\n </svg>\n </button>\n}\n",
20264
19136
  dependencies: [{
20265
19137
  kind: "directive",
20266
19138
  type: HxInput,
@@ -20298,46 +19170,7 @@ i0.ɵɵngDeclareClassMetadata({
20298
19170
  "[class.hx-password-has-toggle]": "toggleMask()",
20299
19171
  "[class.hx-filled]": "value() !== ''"
20300
19172
  },
20301
- template: `
20302
- <input
20303
- #field
20304
- hx-input
20305
- [id]="inputId() ?? defaultId"
20306
- [type]="visible() ? 'text' : 'password'"
20307
- [value]="value()"
20308
- [placeholder]="placeholder()"
20309
- [attr.autocomplete]="autocomplete()"
20310
- [attr.aria-label]="ariaLabel()"
20311
- [attr.aria-labelledby]="ariaLabelledby()"
20312
- [attr.aria-invalid]="invalid() ? 'true' : null"
20313
- [disabled]="isDisabled()"
20314
- [variant]="variant()"
20315
- [size]="size()"
20316
- [fluid]="true"
20317
- (input)="onInput($event)"
20318
- (blur)="onBlur()"
20319
- />
20320
- @if (toggleMask()) {
20321
- <button
20322
- type="button"
20323
- class="hx-password-toggle"
20324
- [disabled]="isDisabled()"
20325
- [attr.aria-label]="visible() ? hideLabel() : showLabel()"
20326
- [attr.aria-pressed]="visible()"
20327
- (click)="visible.set(!visible())"
20328
- >
20329
- <svg viewBox="0 0 24 24" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
20330
- @if (visible()) {
20331
- <path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" />
20332
- <path d="m1 1 22 22" />
20333
- } @else {
20334
- <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
20335
- <circle cx="12" cy="12" r="3" />
20336
- }
20337
- </svg>
20338
- </button>
20339
- }
20340
- `
19173
+ template: "<input\n #field\n hx-input\n [id]=\"inputId() ?? defaultId\"\n [type]=\"visible() ? 'text' : 'password'\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [disabled]=\"isDisabled()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [fluid]=\"true\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\"\n/>\n@if (toggleMask()) {\n <button\n type=\"button\"\n class=\"hx-password-toggle\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"visible() ? hideLabel() : showLabel()\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"visible.set(!visible())\"\n >\n <svg viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n @if (visible()) {\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24\" />\n <path d=\"m1 1 22 22\" />\n } @else {\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\" />\n <circle cx=\"12\" cy=\"12\" r=\"3\" />\n }\n </svg>\n </button>\n}\n"
20341
19174
  }]
20342
19175
  }],
20343
19176
  propDecorators: {
@@ -20664,28 +19497,7 @@ var HxRating = class HxRating {
20664
19497
  multi: true
20665
19498
  }],
20666
19499
  ngImport: i0,
20667
- template: `
20668
- @for (n of items(); track n) {
20669
- @if (readonly()) {
20670
- <span class="hx-rating-star" [class.hx-rating-star-active]="n <= current()"><span class="hx-rating-icon"></span></span>
20671
- } @else {
20672
- <label class="hx-rating-star" [class.hx-rating-star-active]="n <= current()">
20673
- <input
20674
- type="radio"
20675
- class="hx-rating-input"
20676
- [name]="groupName"
20677
- [value]="n"
20678
- [checked]="n === value()"
20679
- [disabled]="isDisabled()"
20680
- [attr.aria-label]="n === 1 ? '1 star' : n + ' stars'"
20681
- (change)="select(n)"
20682
- />
20683
- <span class="hx-rating-icon"></span>
20684
- </label>
20685
- }
20686
- }
20687
- `,
20688
- isInline: true,
19500
+ template: "@for (n of items(); track n) {\n @if (readonly()) {\n <span class=\"hx-rating-star\" [class.hx-rating-star-active]=\"n <= current()\"><span class=\"hx-rating-icon\"></span></span>\n } @else {\n <label class=\"hx-rating-star\" [class.hx-rating-star-active]=\"n <= current()\">\n <input\n type=\"radio\"\n class=\"hx-rating-input\"\n [name]=\"groupName\"\n [value]=\"n\"\n [checked]=\"n === value()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"n === 1 ? '1 star' : n + ' stars'\"\n (change)=\"select(n)\"\n />\n <span class=\"hx-rating-icon\"></span>\n </label>\n }\n}\n",
20689
19501
  changeDetection: i0.ChangeDetectionStrategy.OnPush
20690
19502
  });
20691
19503
  };
@@ -20715,27 +19527,7 @@ i0.ɵɵngDeclareClassMetadata({
20715
19527
  "[class.hx-rating-invalid]": "invalid()",
20716
19528
  "(focusout)": "onFocusOut($event)"
20717
19529
  },
20718
- template: `
20719
- @for (n of items(); track n) {
20720
- @if (readonly()) {
20721
- <span class="hx-rating-star" [class.hx-rating-star-active]="n <= current()"><span class="hx-rating-icon"></span></span>
20722
- } @else {
20723
- <label class="hx-rating-star" [class.hx-rating-star-active]="n <= current()">
20724
- <input
20725
- type="radio"
20726
- class="hx-rating-input"
20727
- [name]="groupName"
20728
- [value]="n"
20729
- [checked]="n === value()"
20730
- [disabled]="isDisabled()"
20731
- [attr.aria-label]="n === 1 ? '1 star' : n + ' stars'"
20732
- (change)="select(n)"
20733
- />
20734
- <span class="hx-rating-icon"></span>
20735
- </label>
20736
- }
20737
- }
20738
- `
19530
+ template: "@for (n of items(); track n) {\n @if (readonly()) {\n <span class=\"hx-rating-star\" [class.hx-rating-star-active]=\"n <= current()\"><span class=\"hx-rating-icon\"></span></span>\n } @else {\n <label class=\"hx-rating-star\" [class.hx-rating-star-active]=\"n <= current()\">\n <input\n type=\"radio\"\n class=\"hx-rating-input\"\n [name]=\"groupName\"\n [value]=\"n\"\n [checked]=\"n === value()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"n === 1 ? '1 star' : n + ' stars'\"\n (change)=\"select(n)\"\n />\n <span class=\"hx-rating-icon\"></span>\n </label>\n }\n}\n"
20739
19531
  }]
20740
19532
  }],
20741
19533
  propDecorators: {
@@ -21002,22 +19794,7 @@ var HxSelectButton = class HxSelectButton {
21002
19794
  multi: true
21003
19795
  }],
21004
19796
  ngImport: i0,
21005
- template: `
21006
- @for (item of items(); track $index) {
21007
- <button
21008
- type="button"
21009
- class="hx-select-button-option"
21010
- [class.hx-select-button-option-checked]="isChecked(item)"
21011
- [attr.aria-pressed]="isChecked(item)"
21012
- [disabled]="isDisabled() || item.disabled"
21013
- (click)="toggle(item)"
21014
- (blur)="onBlur()"
21015
- >
21016
- <span class="hx-select-button-content">{{ item.label }}</span>
21017
- </button>
21018
- }
21019
- `,
21020
- isInline: true,
19797
+ template: "@for (item of items(); track $index) {\n <button\n type=\"button\"\n class=\"hx-select-button-option\"\n [class.hx-select-button-option-checked]=\"isChecked(item)\"\n [attr.aria-pressed]=\"isChecked(item)\"\n [disabled]=\"isDisabled() || item.disabled\"\n (click)=\"toggle(item)\"\n (blur)=\"onBlur()\"\n >\n <span class=\"hx-select-button-content\">{{ item.label }}</span>\n </button>\n}\n",
21021
19798
  changeDetection: i0.ChangeDetectionStrategy.OnPush
21022
19799
  });
21023
19800
  };
@@ -21047,21 +19824,7 @@ i0.ɵɵngDeclareClassMetadata({
21047
19824
  "[class.hx-select-button-invalid]": "invalid()",
21048
19825
  "[class.hx-select-button-disabled]": "isDisabled()"
21049
19826
  },
21050
- template: `
21051
- @for (item of items(); track $index) {
21052
- <button
21053
- type="button"
21054
- class="hx-select-button-option"
21055
- [class.hx-select-button-option-checked]="isChecked(item)"
21056
- [attr.aria-pressed]="isChecked(item)"
21057
- [disabled]="isDisabled() || item.disabled"
21058
- (click)="toggle(item)"
21059
- (blur)="onBlur()"
21060
- >
21061
- <span class="hx-select-button-content">{{ item.label }}</span>
21062
- </button>
21063
- }
21064
- `
19827
+ template: "@for (item of items(); track $index) {\n <button\n type=\"button\"\n class=\"hx-select-button-option\"\n [class.hx-select-button-option-checked]=\"isChecked(item)\"\n [attr.aria-pressed]=\"isChecked(item)\"\n [disabled]=\"isDisabled() || item.disabled\"\n (click)=\"toggle(item)\"\n (blur)=\"onBlur()\"\n >\n <span class=\"hx-select-button-content\">{{ item.label }}</span>\n </button>\n}\n"
21065
19828
  }]
21066
19829
  }],
21067
19830
  propDecorators: {
@@ -21257,8 +20020,7 @@ var HxSkeleton = class HxSkeleton {
21257
20020
  classAttribute: "hx-skeleton"
21258
20021
  },
21259
20022
  ngImport: i0,
21260
- template: "",
21261
- isInline: true,
20023
+ template: "\n",
21262
20024
  changeDetection: i0.ChangeDetectionStrategy.OnPush
21263
20025
  });
21264
20026
  };
@@ -21271,7 +20033,6 @@ i0.ɵɵngDeclareClassMetadata({
21271
20033
  type: Component,
21272
20034
  args: [{
21273
20035
  selector: "hx-skeleton",
21274
- template: "",
21275
20036
  changeDetection: ChangeDetectionStrategy.OnPush,
21276
20037
  host: {
21277
20038
  class: "hx-skeleton",
@@ -21281,7 +20042,8 @@ i0.ɵɵngDeclareClassMetadata({
21281
20042
  "[style.width]": "boxWidth()",
21282
20043
  "[style.height]": "boxHeight()",
21283
20044
  "[style.border-radius]": "borderRadius() ?? null"
21284
- }
20045
+ },
20046
+ template: "\n"
21285
20047
  }]
21286
20048
  }],
21287
20049
  propDecorators: {
@@ -21542,58 +20304,7 @@ var HxSlider = class HxSlider {
21542
20304
  multi: true
21543
20305
  }],
21544
20306
  ngImport: i0,
21545
- template: `
21546
- <div class="hx-slider-track"><div class="hx-slider-fill"></div></div>
21547
- @if (range()) {
21548
- <input
21549
- type="range"
21550
- class="hx-slider-input hx-slider-input-start"
21551
- [style.z-index]="startPercent() > 50 ? 3 : 1"
21552
- [min]="lower()"
21553
- [max]="upper()"
21554
- [step]="step()"
21555
- [value]="start()"
21556
- [disabled]="isDisabled()"
21557
- [attr.aria-label]="ariaLabelStart()"
21558
- [attr.aria-labelledby]="ariaLabelledby()"
21559
- [attr.aria-orientation]="orientation()"
21560
- [attr.aria-invalid]="invalid() ? 'true' : null"
21561
- (input)="onInput($event, 0)"
21562
- />
21563
- <input
21564
- type="range"
21565
- class="hx-slider-input hx-slider-input-end"
21566
- [style.z-index]="2"
21567
- [min]="lower()"
21568
- [max]="upper()"
21569
- [step]="step()"
21570
- [value]="end()"
21571
- [disabled]="isDisabled()"
21572
- [attr.aria-label]="ariaLabelEnd()"
21573
- [attr.aria-labelledby]="ariaLabelledby()"
21574
- [attr.aria-orientation]="orientation()"
21575
- [attr.aria-invalid]="invalid() ? 'true' : null"
21576
- (input)="onInput($event, 1)"
21577
- />
21578
- } @else {
21579
- <input
21580
- type="range"
21581
- class="hx-slider-input"
21582
- [attr.id]="inputId() ?? null"
21583
- [min]="lower()"
21584
- [max]="upper()"
21585
- [step]="step()"
21586
- [value]="end()"
21587
- [disabled]="isDisabled()"
21588
- [attr.aria-label]="ariaLabel()"
21589
- [attr.aria-labelledby]="ariaLabelledby()"
21590
- [attr.aria-orientation]="orientation()"
21591
- [attr.aria-invalid]="invalid() ? 'true' : null"
21592
- (input)="onInput($event, 1)"
21593
- />
21594
- }
21595
- `,
21596
- isInline: true,
20307
+ template: "<div class=\"hx-slider-track\"><div class=\"hx-slider-fill\"></div></div>\n@if (range()) {\n <input\n type=\"range\"\n class=\"hx-slider-input hx-slider-input-start\"\n [style.z-index]=\"startPercent() > 50 ? 3 : 1\"\n [min]=\"lower()\"\n [max]=\"upper()\"\n [step]=\"step()\"\n [value]=\"start()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"ariaLabelStart()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event, 0)\"\n />\n <input\n type=\"range\"\n class=\"hx-slider-input hx-slider-input-end\"\n [style.z-index]=\"2\"\n [min]=\"lower()\"\n [max]=\"upper()\"\n [step]=\"step()\"\n [value]=\"end()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"ariaLabelEnd()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event, 1)\"\n />\n} @else {\n <input\n type=\"range\"\n class=\"hx-slider-input\"\n [attr.id]=\"inputId() ?? null\"\n [min]=\"lower()\"\n [max]=\"upper()\"\n [step]=\"step()\"\n [value]=\"end()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event, 1)\"\n />\n}\n",
21597
20308
  changeDetection: i0.ChangeDetectionStrategy.OnPush
21598
20309
  });
21599
20310
  };
@@ -21622,57 +20333,7 @@ i0.ɵɵngDeclareClassMetadata({
21622
20333
  "[style.--hx-slider-end]": "endPercent() + '%'",
21623
20334
  "(focusout)": "onFocusOut($event)"
21624
20335
  },
21625
- template: `
21626
- <div class="hx-slider-track"><div class="hx-slider-fill"></div></div>
21627
- @if (range()) {
21628
- <input
21629
- type="range"
21630
- class="hx-slider-input hx-slider-input-start"
21631
- [style.z-index]="startPercent() > 50 ? 3 : 1"
21632
- [min]="lower()"
21633
- [max]="upper()"
21634
- [step]="step()"
21635
- [value]="start()"
21636
- [disabled]="isDisabled()"
21637
- [attr.aria-label]="ariaLabelStart()"
21638
- [attr.aria-labelledby]="ariaLabelledby()"
21639
- [attr.aria-orientation]="orientation()"
21640
- [attr.aria-invalid]="invalid() ? 'true' : null"
21641
- (input)="onInput($event, 0)"
21642
- />
21643
- <input
21644
- type="range"
21645
- class="hx-slider-input hx-slider-input-end"
21646
- [style.z-index]="2"
21647
- [min]="lower()"
21648
- [max]="upper()"
21649
- [step]="step()"
21650
- [value]="end()"
21651
- [disabled]="isDisabled()"
21652
- [attr.aria-label]="ariaLabelEnd()"
21653
- [attr.aria-labelledby]="ariaLabelledby()"
21654
- [attr.aria-orientation]="orientation()"
21655
- [attr.aria-invalid]="invalid() ? 'true' : null"
21656
- (input)="onInput($event, 1)"
21657
- />
21658
- } @else {
21659
- <input
21660
- type="range"
21661
- class="hx-slider-input"
21662
- [attr.id]="inputId() ?? null"
21663
- [min]="lower()"
21664
- [max]="upper()"
21665
- [step]="step()"
21666
- [value]="end()"
21667
- [disabled]="isDisabled()"
21668
- [attr.aria-label]="ariaLabel()"
21669
- [attr.aria-labelledby]="ariaLabelledby()"
21670
- [attr.aria-orientation]="orientation()"
21671
- [attr.aria-invalid]="invalid() ? 'true' : null"
21672
- (input)="onInput($event, 1)"
21673
- />
21674
- }
21675
- `
20336
+ template: "<div class=\"hx-slider-track\"><div class=\"hx-slider-fill\"></div></div>\n@if (range()) {\n <input\n type=\"range\"\n class=\"hx-slider-input hx-slider-input-start\"\n [style.z-index]=\"startPercent() > 50 ? 3 : 1\"\n [min]=\"lower()\"\n [max]=\"upper()\"\n [step]=\"step()\"\n [value]=\"start()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"ariaLabelStart()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event, 0)\"\n />\n <input\n type=\"range\"\n class=\"hx-slider-input hx-slider-input-end\"\n [style.z-index]=\"2\"\n [min]=\"lower()\"\n [max]=\"upper()\"\n [step]=\"step()\"\n [value]=\"end()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"ariaLabelEnd()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event, 1)\"\n />\n} @else {\n <input\n type=\"range\"\n class=\"hx-slider-input\"\n [attr.id]=\"inputId() ?? null\"\n [min]=\"lower()\"\n [max]=\"upper()\"\n [step]=\"step()\"\n [value]=\"end()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event, 1)\"\n />\n}\n"
21676
20337
  }]
21677
20338
  }],
21678
20339
  propDecorators: {
@@ -21916,40 +20577,7 @@ var HxSplitButton = class HxSplitButton {
21916
20577
  isSignal: true
21917
20578
  }],
21918
20579
  ngImport: i0,
21919
- template: `
21920
- <button
21921
- hx-button
21922
- type="button"
21923
- class="hx-split-button-main"
21924
- [variant]="variant()"
21925
- [severity]="severity()"
21926
- [size]="size()"
21927
- [disabled]="disabled()"
21928
- >
21929
- @if (icon()) {
21930
- <span class="hx-button-icon" [class]="icon()" aria-hidden="true"></span>
21931
- }
21932
- {{ label() }}
21933
- </button>
21934
- <button
21935
- hx-button
21936
- iconOnly
21937
- type="button"
21938
- class="hx-split-button-menu"
21939
- aria-haspopup="menu"
21940
- [variant]="variant()"
21941
- [severity]="severity()"
21942
- [size]="size()"
21943
- [disabled]="disabled()"
21944
- [attr.aria-expanded]="menu.open()"
21945
- [attr.aria-label]="menuButtonLabel()"
21946
- (click)="$event.stopPropagation(); menu.toggle($event)"
21947
- >
21948
- <span class="hx-split-button-chevron" aria-hidden="true"></span>
21949
- </button>
21950
- <hx-menu #menu popup [model]="model()" [ariaLabel]="menuButtonLabel()" (triggered)="triggered.emit($event)" />
21951
- `,
21952
- isInline: true,
20580
+ template: "<button\n hx-button\n type=\"button\"\n class=\"hx-split-button-main\"\n [variant]=\"variant()\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n>\n @if (icon()) {\n <span class=\"hx-button-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n }\n {{ label() }}\n</button>\n<button\n hx-button\n iconOnly\n type=\"button\"\n class=\"hx-split-button-menu\"\n aria-haspopup=\"menu\"\n [variant]=\"variant()\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"menu.open()\"\n [attr.aria-label]=\"menuButtonLabel()\"\n (click)=\"$event.stopPropagation(); menu.toggle($event)\"\n>\n <span class=\"hx-split-button-chevron\" aria-hidden=\"true\"></span>\n</button>\n<hx-menu #menu popup [model]=\"model()\" [ariaLabel]=\"menuButtonLabel()\" (triggered)=\"triggered.emit($event)\" />\n",
21953
20581
  dependencies: [{
21954
20582
  kind: "directive",
21955
20583
  type: HxButton,
@@ -22002,39 +20630,7 @@ i0.ɵɵngDeclareClassMetadata({
22002
20630
  "[class.hx-split-button-raised]": "raised()",
22003
20631
  "[class.hx-split-button-outlined]": "variant() === 'outlined'"
22004
20632
  },
22005
- template: `
22006
- <button
22007
- hx-button
22008
- type="button"
22009
- class="hx-split-button-main"
22010
- [variant]="variant()"
22011
- [severity]="severity()"
22012
- [size]="size()"
22013
- [disabled]="disabled()"
22014
- >
22015
- @if (icon()) {
22016
- <span class="hx-button-icon" [class]="icon()" aria-hidden="true"></span>
22017
- }
22018
- {{ label() }}
22019
- </button>
22020
- <button
22021
- hx-button
22022
- iconOnly
22023
- type="button"
22024
- class="hx-split-button-menu"
22025
- aria-haspopup="menu"
22026
- [variant]="variant()"
22027
- [severity]="severity()"
22028
- [size]="size()"
22029
- [disabled]="disabled()"
22030
- [attr.aria-expanded]="menu.open()"
22031
- [attr.aria-label]="menuButtonLabel()"
22032
- (click)="$event.stopPropagation(); menu.toggle($event)"
22033
- >
22034
- <span class="hx-split-button-chevron" aria-hidden="true"></span>
22035
- </button>
22036
- <hx-menu #menu popup [model]="model()" [ariaLabel]="menuButtonLabel()" (triggered)="triggered.emit($event)" />
22037
- `
20633
+ template: "<button\n hx-button\n type=\"button\"\n class=\"hx-split-button-main\"\n [variant]=\"variant()\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n>\n @if (icon()) {\n <span class=\"hx-button-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n }\n {{ label() }}\n</button>\n<button\n hx-button\n iconOnly\n type=\"button\"\n class=\"hx-split-button-menu\"\n aria-haspopup=\"menu\"\n [variant]=\"variant()\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"menu.open()\"\n [attr.aria-label]=\"menuButtonLabel()\"\n (click)=\"$event.stopPropagation(); menu.toggle($event)\"\n>\n <span class=\"hx-split-button-chevron\" aria-hidden=\"true\"></span>\n</button>\n<hx-menu #menu popup [model]=\"model()\" [ariaLabel]=\"menuButtonLabel()\" (triggered)=\"triggered.emit($event)\" />\n"
22038
20634
  }]
22039
20635
  }],
22040
20636
  propDecorators: {
@@ -22214,8 +20810,7 @@ var HxStepper = class HxStepper {
22214
20810
  outputs: { value: "valueChange" },
22215
20811
  host: { classAttribute: "hx-stepper" },
22216
20812
  ngImport: i0,
22217
- template: "<ng-content />",
22218
- isInline: true,
20813
+ template: "<ng-content />\n",
22219
20814
  changeDetection: i0.ChangeDetectionStrategy.OnPush
22220
20815
  });
22221
20816
  };
@@ -22230,7 +20825,7 @@ i0.ɵɵngDeclareClassMetadata({
22230
20825
  selector: "hx-stepper",
22231
20826
  changeDetection: ChangeDetectionStrategy.OnPush,
22232
20827
  host: { class: "hx-stepper" },
22233
- template: "<ng-content />"
20828
+ template: "<ng-content />\n"
22234
20829
  }]
22235
20830
  }],
22236
20831
  ctorParameters: () => [],
@@ -22284,8 +20879,7 @@ var HxStepList = class HxStepList {
22284
20879
  classAttribute: "hx-step-list"
22285
20880
  },
22286
20881
  ngImport: i0,
22287
- template: "<ng-content />",
22288
- isInline: true,
20882
+ template: "<ng-content />\n",
22289
20883
  changeDetection: i0.ChangeDetectionStrategy.OnPush
22290
20884
  });
22291
20885
  };
@@ -22303,7 +20897,7 @@ i0.ɵɵngDeclareClassMetadata({
22303
20897
  class: "hx-step-list",
22304
20898
  role: "list"
22305
20899
  },
22306
- template: "<ng-content />"
20900
+ template: "<ng-content />\n"
22307
20901
  }]
22308
20902
  }]
22309
20903
  });
@@ -22364,30 +20958,7 @@ var HxStep = class HxStep {
22364
20958
  classAttribute: "hx-step"
22365
20959
  },
22366
20960
  ngImport: i0,
22367
- template: `
22368
- <button
22369
- type="button"
22370
- class="hx-step-header"
22371
- [id]="stepper.stepId(value())"
22372
- [disabled]="unavailable()"
22373
- [attr.aria-current]="active() ? 'step' : null"
22374
- [attr.aria-controls]="stepper.panelId(value())"
22375
- (click)="stepper.activate(value())"
22376
- >
22377
- <span class="hx-step-number" aria-hidden="true">
22378
- @if (completed()) {
22379
- <span class="hx-step-check"></span>
22380
- } @else {
22381
- {{ index() + 1 }}
22382
- }
22383
- </span>
22384
- <span class="hx-step-title"><ng-content /></span>
22385
- </button>
22386
- @if (!last()) {
22387
- <span class="hx-step-separator" aria-hidden="true"></span>
22388
- }
22389
- `,
22390
- isInline: true,
20961
+ template: "<button\n type=\"button\"\n class=\"hx-step-header\"\n [id]=\"stepper.stepId(value())\"\n [disabled]=\"unavailable()\"\n [attr.aria-current]=\"active() ? 'step' : null\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n (click)=\"stepper.activate(value())\"\n>\n <span class=\"hx-step-number\" aria-hidden=\"true\">\n @if (completed()) {\n <span class=\"hx-step-check\"></span>\n } @else {\n {{ index() + 1 }}\n }\n </span>\n <span class=\"hx-step-title\"><ng-content /></span>\n</button>\n@if (!last()) {\n <span class=\"hx-step-separator\" aria-hidden=\"true\"></span>\n}\n",
22391
20962
  changeDetection: i0.ChangeDetectionStrategy.OnPush
22392
20963
  });
22393
20964
  };
@@ -22409,29 +20980,7 @@ i0.ɵɵngDeclareClassMetadata({
22409
20980
  "[class.hx-step-disabled]": "unavailable()",
22410
20981
  "[class.hx-step-last]": "last()"
22411
20982
  },
22412
- template: `
22413
- <button
22414
- type="button"
22415
- class="hx-step-header"
22416
- [id]="stepper.stepId(value())"
22417
- [disabled]="unavailable()"
22418
- [attr.aria-current]="active() ? 'step' : null"
22419
- [attr.aria-controls]="stepper.panelId(value())"
22420
- (click)="stepper.activate(value())"
22421
- >
22422
- <span class="hx-step-number" aria-hidden="true">
22423
- @if (completed()) {
22424
- <span class="hx-step-check"></span>
22425
- } @else {
22426
- {{ index() + 1 }}
22427
- }
22428
- </span>
22429
- <span class="hx-step-title"><ng-content /></span>
22430
- </button>
22431
- @if (!last()) {
22432
- <span class="hx-step-separator" aria-hidden="true"></span>
22433
- }
22434
- `
20983
+ template: "<button\n type=\"button\"\n class=\"hx-step-header\"\n [id]=\"stepper.stepId(value())\"\n [disabled]=\"unavailable()\"\n [attr.aria-current]=\"active() ? 'step' : null\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n (click)=\"stepper.activate(value())\"\n>\n <span class=\"hx-step-number\" aria-hidden=\"true\">\n @if (completed()) {\n <span class=\"hx-step-check\"></span>\n } @else {\n {{ index() + 1 }}\n }\n </span>\n <span class=\"hx-step-title\"><ng-content /></span>\n</button>\n@if (!last()) {\n <span class=\"hx-step-separator\" aria-hidden=\"true\"></span>\n}\n"
22435
20984
  }]
22436
20985
  }],
22437
20986
  ctorParameters: () => [],
@@ -22471,8 +21020,7 @@ var HxStepPanels = class HxStepPanels {
22471
21020
  selector: "hx-step-panels",
22472
21021
  host: { classAttribute: "hx-step-panels" },
22473
21022
  ngImport: i0,
22474
- template: "<ng-content />",
22475
- isInline: true,
21023
+ template: "<ng-content />\n",
22476
21024
  changeDetection: i0.ChangeDetectionStrategy.OnPush
22477
21025
  });
22478
21026
  };
@@ -22487,7 +21035,7 @@ i0.ɵɵngDeclareClassMetadata({
22487
21035
  selector: "hx-step-panels",
22488
21036
  changeDetection: ChangeDetectionStrategy.OnPush,
22489
21037
  host: { class: "hx-step-panels" },
22490
- template: "<ng-content />"
21038
+ template: "<ng-content />\n"
22491
21039
  }]
22492
21040
  }]
22493
21041
  });
@@ -22575,16 +21123,7 @@ var HxStepPanel = class HxStepPanel {
22575
21123
  isSignal: true
22576
21124
  }],
22577
21125
  ngImport: i0,
22578
- template: `
22579
- @if (lazy(); as lazy) {
22580
- @if (render()) {
22581
- <ng-container [ngTemplateOutlet]="lazy.template" [ngTemplateOutletContext]="context()" />
22582
- }
22583
- } @else {
22584
- <ng-content />
22585
- }
22586
- `,
22587
- isInline: true,
21126
+ template: "@if (lazy(); as lazy) {\n @if (render()) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" [ngTemplateOutletContext]=\"context()\" />\n }\n} @else {\n <ng-content />\n}\n",
22588
21127
  dependencies: [{
22589
21128
  kind: "directive",
22590
21129
  type: NgTemplateOutlet,
@@ -22616,15 +21155,7 @@ i0.ɵɵngDeclareClassMetadata({
22616
21155
  "[attr.aria-labelledby]": "stepper.stepId(value())",
22617
21156
  "[hidden]": "!active()"
22618
21157
  },
22619
- template: `
22620
- @if (lazy(); as lazy) {
22621
- @if (render()) {
22622
- <ng-container [ngTemplateOutlet]="lazy.template" [ngTemplateOutletContext]="context()" />
22623
- }
22624
- } @else {
22625
- <ng-content />
22626
- }
22627
- `
21158
+ template: "@if (lazy(); as lazy) {\n @if (render()) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" [ngTemplateOutletContext]=\"context()\" />\n }\n} @else {\n <ng-content />\n}\n"
22628
21159
  }]
22629
21160
  }],
22630
21161
  propDecorators: {
@@ -22801,22 +21332,7 @@ var HxTabScroller = class HxTabScroller {
22801
21332
  }
22802
21333
  ],
22803
21334
  ngImport: i0,
22804
- template: `
22805
- @if (enabled() && overflowing()) {
22806
- <button #prev type="button" class="hx-tab-nav hx-tab-nav-prev" tabindex="-1" aria-label="Scroll tabs left" (click)="scroll(-1)">
22807
- <span class="hx-tab-nav-icon-prev" aria-hidden="true"></span>
22808
- </button>
22809
- }
22810
- <div #scroller class="hx-tab-scroller" (scroll)="measure()" (wheel)="onWheel($event)">
22811
- <ng-content />
22812
- </div>
22813
- @if (enabled() && overflowing()) {
22814
- <button #next type="button" class="hx-tab-nav hx-tab-nav-next" tabindex="-1" aria-label="Scroll tabs right" (click)="scroll(1)">
22815
- <span class="hx-tab-nav-icon-next" aria-hidden="true"></span>
22816
- </button>
22817
- }
22818
- `,
22819
- isInline: true,
21335
+ template: "@if (enabled() && overflowing()) {\n <button #prev type=\"button\" class=\"hx-tab-nav hx-tab-nav-prev\" tabindex=\"-1\" aria-label=\"Scroll tabs left\" (click)=\"scroll(-1)\">\n <span class=\"hx-tab-nav-icon-prev\" aria-hidden=\"true\"></span>\n </button>\n}\n<div #scroller class=\"hx-tab-scroller\" (scroll)=\"measure()\" (wheel)=\"onWheel($event)\">\n <ng-content />\n</div>\n@if (enabled() && overflowing()) {\n <button #next type=\"button\" class=\"hx-tab-nav hx-tab-nav-next\" tabindex=\"-1\" aria-label=\"Scroll tabs right\" (click)=\"scroll(1)\">\n <span class=\"hx-tab-nav-icon-next\" aria-hidden=\"true\"></span>\n </button>\n}\n",
22820
21336
  changeDetection: i0.ChangeDetectionStrategy.OnPush
22821
21337
  });
22822
21338
  };
@@ -22831,21 +21347,7 @@ i0.ɵɵngDeclareClassMetadata({
22831
21347
  selector: "hx-tab-scroller",
22832
21348
  changeDetection: ChangeDetectionStrategy.OnPush,
22833
21349
  host: { class: "hx-tab-scroll" },
22834
- template: `
22835
- @if (enabled() && overflowing()) {
22836
- <button #prev type="button" class="hx-tab-nav hx-tab-nav-prev" tabindex="-1" aria-label="Scroll tabs left" (click)="scroll(-1)">
22837
- <span class="hx-tab-nav-icon-prev" aria-hidden="true"></span>
22838
- </button>
22839
- }
22840
- <div #scroller class="hx-tab-scroller" (scroll)="measure()" (wheel)="onWheel($event)">
22841
- <ng-content />
22842
- </div>
22843
- @if (enabled() && overflowing()) {
22844
- <button #next type="button" class="hx-tab-nav hx-tab-nav-next" tabindex="-1" aria-label="Scroll tabs right" (click)="scroll(1)">
22845
- <span class="hx-tab-nav-icon-next" aria-hidden="true"></span>
22846
- </button>
22847
- }
22848
- `
21350
+ template: "@if (enabled() && overflowing()) {\n <button #prev type=\"button\" class=\"hx-tab-nav hx-tab-nav-prev\" tabindex=\"-1\" aria-label=\"Scroll tabs left\" (click)=\"scroll(-1)\">\n <span class=\"hx-tab-nav-icon-prev\" aria-hidden=\"true\"></span>\n </button>\n}\n<div #scroller class=\"hx-tab-scroller\" (scroll)=\"measure()\" (wheel)=\"onWheel($event)\">\n <ng-content />\n</div>\n@if (enabled() && overflowing()) {\n <button #next type=\"button\" class=\"hx-tab-nav hx-tab-nav-next\" tabindex=\"-1\" aria-label=\"Scroll tabs right\" (click)=\"scroll(1)\">\n <span class=\"hx-tab-nav-icon-next\" aria-hidden=\"true\"></span>\n </button>\n}\n"
22849
21351
  }]
22850
21352
  }],
22851
21353
  ctorParameters: () => [],
@@ -22893,6 +21395,8 @@ var HxTabBar = class HxTabBar {
22893
21395
  ...ngDevMode ? { debugName: "allTabsButton" } : /* istanbul ignore next */ {},
22894
21396
  transform: booleanAttribute
22895
21397
  });
21398
+ modifiedLabel = input("Unsaved changes", ...ngDevMode ? [{ debugName: "modifiedLabel" }] : /* istanbul ignore next */ []);
21399
+ missingTitle = input("File missing", ...ngDevMode ? [{ debugName: "missingTitle" }] : /* istanbul ignore next */ []);
22896
21400
  closed = output();
22897
21401
  pinned = output();
22898
21402
  moved = output();
@@ -22912,8 +21416,8 @@ var HxTabBar = class HxTabBar {
22912
21416
  }, ...ngDevMode ? [{ debugName: "tabbable" }] : /* istanbul ignore next */ []);
22913
21417
  allTabsModel = computed(() => this.tabs().map((tab) => ({
22914
21418
  label: tab.group ? `${tab.group} / ${tab.label}` : tab.label,
22915
- badge: tab.attention ? "!" : void 0,
22916
- ariaLabel: tab.attention ? this.tabName(tab) : void 0,
21419
+ badge: this.menuBadge(tab),
21420
+ ariaLabel: tab.attention || tab.modified || tab.missing ? this.tabName(tab) : void 0,
22917
21421
  command: () => {
22918
21422
  this.select(tab.id);
22919
21423
  afterNextRender(() => this.revealActive(), { injector: this.#injector });
@@ -22928,7 +21432,23 @@ var HxTabBar = class HxTabBar {
22928
21432
  }
22929
21433
  tabName(tab) {
22930
21434
  const name = tab.group ? `${tab.group} / ${tab.label}` : tab.label;
22931
- return tab.attention ? `${name}, needs attention` : name;
21435
+ const marks = [
21436
+ tab.attention ? "needs attention" : "",
21437
+ tab.modified ? this.modifiedLabel().toLowerCase() : "",
21438
+ tab.missing ? this.missingTitle().toLowerCase() : ""
21439
+ ].filter(Boolean);
21440
+ return marks.length ? `${name}, ${marks.join(", ")}` : name;
21441
+ }
21442
+ menuBadge(tab) {
21443
+ const marks = [
21444
+ tab.attention ? "!" : "",
21445
+ tab.modified ? "●" : "",
21446
+ tab.missing ? this.missingTitle() : ""
21447
+ ].filter(Boolean);
21448
+ return marks.length ? marks.join(" ") : void 0;
21449
+ }
21450
+ tooltip(tab) {
21451
+ return tab.missing ? this.missingTitle() : tab.title ?? tab.label;
22932
21452
  }
22933
21453
  select(id) {
22934
21454
  this.value.set(id);
@@ -23121,6 +21641,20 @@ var HxTabBar = class HxTabBar {
23121
21641
  isSignal: true,
23122
21642
  isRequired: false,
23123
21643
  transformFunction: null
21644
+ },
21645
+ modifiedLabel: {
21646
+ classPropertyName: "modifiedLabel",
21647
+ publicName: "modifiedLabel",
21648
+ isSignal: true,
21649
+ isRequired: false,
21650
+ transformFunction: null
21651
+ },
21652
+ missingTitle: {
21653
+ classPropertyName: "missingTitle",
21654
+ publicName: "missingTitle",
21655
+ isSignal: true,
21656
+ isRequired: false,
21657
+ transformFunction: null
23124
21658
  }
23125
21659
  },
23126
21660
  outputs: {
@@ -23153,7 +21687,7 @@ var HxTabBar = class HxTabBar {
23153
21687
  isSignal: true
23154
21688
  }],
23155
21689
  ngImport: i0,
23156
- template: "<hx-tab-scroller class=\"hx-tab-bar-strip\" wheel>\n <div\n class=\"hx-tab-bar-tabs\"\n role=\"tablist\"\n aria-orientation=\"horizontal\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [class.hx-tab-bar-drop-end]=\"foreignAt() === tabs().length\"\n (dragover)=\"stripOver($event)\"\n (dragleave)=\"foreignAt.set(null)\"\n (drop)=\"stripDrop($event)\"\n >\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div\n class=\"hx-tab-bar-tab\"\n role=\"tab\"\n draggable=\"true\"\n [class.hx-tab-bar-tab-active]=\"tab.id === value()\"\n [class.hx-tab-bar-tab-preview]=\"tab.preview\"\n [class.hx-tab-bar-tab-attention]=\"tab.attention\"\n [class.hx-tab-bar-drop-before]=\"(dropAt() === i && dragging() !== null && dragging()! > i) || foreignAt() === i\"\n [class.hx-tab-bar-drop-after]=\"dropAt() === i && dragging() !== null && dragging()! < i\"\n [attr.aria-selected]=\"tab.id === value()\"\n [attr.aria-label]=\"tabName(tab)\"\n [attr.tabindex]=\"i === tabbable() ? 0 : -1\"\n [title]=\"tab.title ?? tab.label\"\n (click)=\"select(tab.id)\"\n (dblclick)=\"pinned.emit(tab.id)\"\n (contextmenu)=\"openMenu($event, tab.id)\"\n (mousedown)=\"$event.button === 1 && $event.preventDefault()\"\n (auxclick)=\"middleClick($event, tab.id)\"\n (keydown)=\"key($event, i)\"\n (dragstart)=\"dragStart($event, i)\"\n (dragover)=\"dragOver($event, i)\"\n (drop)=\"drop($event, i)\"\n (dragend)=\"dragEnd()\"\n >\n @if (tabContent(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: tab }\" />\n }\n @if (tab.group) {\n <span class=\"hx-tab-bar-group\">{{ tab.group }} /</span>\n }\n <span class=\"hx-tab-bar-label\">{{ tab.label }}</span>\n @if (tab.unread) {\n <span class=\"hx-tab-bar-unread\" aria-hidden=\"true\"></span>\n }\n <button\n type=\"button\"\n class=\"hx-tab-bar-close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Close ' + (tab.group ? tab.group + ' / ' : '') + tab.label\"\n (click)=\"$event.stopPropagation(); closed.emit(tab.id)\"\n (dblclick)=\"$event.stopPropagation()\"\n >\n <span class=\"hx-tab-bar-close-icon\" aria-hidden=\"true\"></span>\n </button>\n </div>\n }\n </div>\n</hx-tab-scroller>\n<div class=\"hx-tab-bar-actions\">\n @if (allTabsButton() && overflowing()) {\n <button\n type=\"button\"\n class=\"hx-tab-bar-all\"\n aria-haspopup=\"menu\"\n aria-label=\"All tabs\"\n title=\"All tabs\"\n (click)=\"allMenu.toggle($event)\"\n >\n <span class=\"hx-tab-bar-all-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n <ng-content />\n</div>\n<hx-menu #tabMenu popup ariaLabel=\"Tab actions\" [model]=\"tabMenuModel()\" />\n<hx-menu #allMenu popup ariaLabel=\"All tabs\" [model]=\"allTabsModel()\" />\n",
21690
+ template: "<hx-tab-scroller class=\"hx-tab-bar-strip\" wheel>\n <div\n class=\"hx-tab-bar-tabs\"\n role=\"tablist\"\n aria-orientation=\"horizontal\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [class.hx-tab-bar-drop-end]=\"foreignAt() === tabs().length\"\n (dragover)=\"stripOver($event)\"\n (dragleave)=\"foreignAt.set(null)\"\n (drop)=\"stripDrop($event)\"\n >\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div\n class=\"hx-tab-bar-tab\"\n role=\"tab\"\n draggable=\"true\"\n [class.hx-tab-bar-tab-active]=\"tab.id === value()\"\n [class.hx-tab-bar-tab-preview]=\"tab.preview\"\n [class.hx-tab-bar-tab-attention]=\"tab.attention\"\n [class.hx-tab-bar-tab-modified]=\"tab.modified\"\n [class.hx-tab-bar-tab-missing]=\"tab.missing\"\n [class.hx-tab-bar-drop-before]=\"(dropAt() === i && dragging() !== null && dragging()! > i) || foreignAt() === i\"\n [class.hx-tab-bar-drop-after]=\"dropAt() === i && dragging() !== null && dragging()! < i\"\n [attr.aria-selected]=\"tab.id === value()\"\n [attr.aria-label]=\"tabName(tab)\"\n [attr.tabindex]=\"i === tabbable() ? 0 : -1\"\n [title]=\"tooltip(tab)\"\n (click)=\"select(tab.id)\"\n (dblclick)=\"pinned.emit(tab.id)\"\n (contextmenu)=\"openMenu($event, tab.id)\"\n (mousedown)=\"$event.button === 1 && $event.preventDefault()\"\n (auxclick)=\"middleClick($event, tab.id)\"\n (keydown)=\"key($event, i)\"\n (dragstart)=\"dragStart($event, i)\"\n (dragover)=\"dragOver($event, i)\"\n (drop)=\"drop($event, i)\"\n (dragend)=\"dragEnd()\"\n >\n @if (tabContent(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: tab }\" />\n }\n @if (tab.group) {\n <span class=\"hx-tab-bar-group\">{{ tab.group }} /</span>\n }\n <span class=\"hx-tab-bar-label\">{{ tab.label }}</span>\n @if (tab.unread) {\n <span class=\"hx-tab-bar-unread\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-tab-bar-slot\">\n @if (tab.modified) {\n <span class=\"hx-tab-bar-modified\" role=\"img\" [attr.aria-label]=\"modifiedLabel()\"></span>\n }\n <button\n type=\"button\"\n class=\"hx-tab-bar-close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Close ' + (tab.group ? tab.group + ' / ' : '') + tab.label\"\n (click)=\"$event.stopPropagation(); closed.emit(tab.id)\"\n (dblclick)=\"$event.stopPropagation()\"\n >\n <span class=\"hx-tab-bar-close-icon\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </div>\n }\n </div>\n</hx-tab-scroller>\n<div class=\"hx-tab-bar-actions\">\n @if (allTabsButton() && overflowing()) {\n <button\n type=\"button\"\n class=\"hx-tab-bar-all\"\n aria-haspopup=\"menu\"\n aria-label=\"All tabs\"\n title=\"All tabs\"\n (click)=\"allMenu.toggle($event)\"\n >\n <span class=\"hx-tab-bar-all-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n <ng-content />\n</div>\n<hx-menu #tabMenu popup ariaLabel=\"Tab actions\" [model]=\"tabMenuModel()\" />\n<hx-menu #allMenu popup ariaLabel=\"All tabs\" [model]=\"allTabsModel()\" />\n",
23157
21691
  dependencies: [
23158
21692
  {
23159
21693
  kind: "directive",
@@ -23206,7 +21740,7 @@ i0.ɵɵngDeclareClassMetadata({
23206
21740
  ],
23207
21741
  changeDetection: ChangeDetectionStrategy.OnPush,
23208
21742
  host: { class: "hx-tab-bar" },
23209
- template: "<hx-tab-scroller class=\"hx-tab-bar-strip\" wheel>\n <div\n class=\"hx-tab-bar-tabs\"\n role=\"tablist\"\n aria-orientation=\"horizontal\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [class.hx-tab-bar-drop-end]=\"foreignAt() === tabs().length\"\n (dragover)=\"stripOver($event)\"\n (dragleave)=\"foreignAt.set(null)\"\n (drop)=\"stripDrop($event)\"\n >\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div\n class=\"hx-tab-bar-tab\"\n role=\"tab\"\n draggable=\"true\"\n [class.hx-tab-bar-tab-active]=\"tab.id === value()\"\n [class.hx-tab-bar-tab-preview]=\"tab.preview\"\n [class.hx-tab-bar-tab-attention]=\"tab.attention\"\n [class.hx-tab-bar-drop-before]=\"(dropAt() === i && dragging() !== null && dragging()! > i) || foreignAt() === i\"\n [class.hx-tab-bar-drop-after]=\"dropAt() === i && dragging() !== null && dragging()! < i\"\n [attr.aria-selected]=\"tab.id === value()\"\n [attr.aria-label]=\"tabName(tab)\"\n [attr.tabindex]=\"i === tabbable() ? 0 : -1\"\n [title]=\"tab.title ?? tab.label\"\n (click)=\"select(tab.id)\"\n (dblclick)=\"pinned.emit(tab.id)\"\n (contextmenu)=\"openMenu($event, tab.id)\"\n (mousedown)=\"$event.button === 1 && $event.preventDefault()\"\n (auxclick)=\"middleClick($event, tab.id)\"\n (keydown)=\"key($event, i)\"\n (dragstart)=\"dragStart($event, i)\"\n (dragover)=\"dragOver($event, i)\"\n (drop)=\"drop($event, i)\"\n (dragend)=\"dragEnd()\"\n >\n @if (tabContent(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: tab }\" />\n }\n @if (tab.group) {\n <span class=\"hx-tab-bar-group\">{{ tab.group }} /</span>\n }\n <span class=\"hx-tab-bar-label\">{{ tab.label }}</span>\n @if (tab.unread) {\n <span class=\"hx-tab-bar-unread\" aria-hidden=\"true\"></span>\n }\n <button\n type=\"button\"\n class=\"hx-tab-bar-close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Close ' + (tab.group ? tab.group + ' / ' : '') + tab.label\"\n (click)=\"$event.stopPropagation(); closed.emit(tab.id)\"\n (dblclick)=\"$event.stopPropagation()\"\n >\n <span class=\"hx-tab-bar-close-icon\" aria-hidden=\"true\"></span>\n </button>\n </div>\n }\n </div>\n</hx-tab-scroller>\n<div class=\"hx-tab-bar-actions\">\n @if (allTabsButton() && overflowing()) {\n <button\n type=\"button\"\n class=\"hx-tab-bar-all\"\n aria-haspopup=\"menu\"\n aria-label=\"All tabs\"\n title=\"All tabs\"\n (click)=\"allMenu.toggle($event)\"\n >\n <span class=\"hx-tab-bar-all-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n <ng-content />\n</div>\n<hx-menu #tabMenu popup ariaLabel=\"Tab actions\" [model]=\"tabMenuModel()\" />\n<hx-menu #allMenu popup ariaLabel=\"All tabs\" [model]=\"allTabsModel()\" />\n"
21743
+ template: "<hx-tab-scroller class=\"hx-tab-bar-strip\" wheel>\n <div\n class=\"hx-tab-bar-tabs\"\n role=\"tablist\"\n aria-orientation=\"horizontal\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [class.hx-tab-bar-drop-end]=\"foreignAt() === tabs().length\"\n (dragover)=\"stripOver($event)\"\n (dragleave)=\"foreignAt.set(null)\"\n (drop)=\"stripDrop($event)\"\n >\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div\n class=\"hx-tab-bar-tab\"\n role=\"tab\"\n draggable=\"true\"\n [class.hx-tab-bar-tab-active]=\"tab.id === value()\"\n [class.hx-tab-bar-tab-preview]=\"tab.preview\"\n [class.hx-tab-bar-tab-attention]=\"tab.attention\"\n [class.hx-tab-bar-tab-modified]=\"tab.modified\"\n [class.hx-tab-bar-tab-missing]=\"tab.missing\"\n [class.hx-tab-bar-drop-before]=\"(dropAt() === i && dragging() !== null && dragging()! > i) || foreignAt() === i\"\n [class.hx-tab-bar-drop-after]=\"dropAt() === i && dragging() !== null && dragging()! < i\"\n [attr.aria-selected]=\"tab.id === value()\"\n [attr.aria-label]=\"tabName(tab)\"\n [attr.tabindex]=\"i === tabbable() ? 0 : -1\"\n [title]=\"tooltip(tab)\"\n (click)=\"select(tab.id)\"\n (dblclick)=\"pinned.emit(tab.id)\"\n (contextmenu)=\"openMenu($event, tab.id)\"\n (mousedown)=\"$event.button === 1 && $event.preventDefault()\"\n (auxclick)=\"middleClick($event, tab.id)\"\n (keydown)=\"key($event, i)\"\n (dragstart)=\"dragStart($event, i)\"\n (dragover)=\"dragOver($event, i)\"\n (drop)=\"drop($event, i)\"\n (dragend)=\"dragEnd()\"\n >\n @if (tabContent(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: tab }\" />\n }\n @if (tab.group) {\n <span class=\"hx-tab-bar-group\">{{ tab.group }} /</span>\n }\n <span class=\"hx-tab-bar-label\">{{ tab.label }}</span>\n @if (tab.unread) {\n <span class=\"hx-tab-bar-unread\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-tab-bar-slot\">\n @if (tab.modified) {\n <span class=\"hx-tab-bar-modified\" role=\"img\" [attr.aria-label]=\"modifiedLabel()\"></span>\n }\n <button\n type=\"button\"\n class=\"hx-tab-bar-close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Close ' + (tab.group ? tab.group + ' / ' : '') + tab.label\"\n (click)=\"$event.stopPropagation(); closed.emit(tab.id)\"\n (dblclick)=\"$event.stopPropagation()\"\n >\n <span class=\"hx-tab-bar-close-icon\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </div>\n }\n </div>\n</hx-tab-scroller>\n<div class=\"hx-tab-bar-actions\">\n @if (allTabsButton() && overflowing()) {\n <button\n type=\"button\"\n class=\"hx-tab-bar-all\"\n aria-haspopup=\"menu\"\n aria-label=\"All tabs\"\n title=\"All tabs\"\n (click)=\"allMenu.toggle($event)\"\n >\n <span class=\"hx-tab-bar-all-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n <ng-content />\n</div>\n<hx-menu #tabMenu popup ariaLabel=\"Tab actions\" [model]=\"tabMenuModel()\" />\n<hx-menu #allMenu popup ariaLabel=\"All tabs\" [model]=\"allTabsModel()\" />\n"
23210
21744
  }]
23211
21745
  }],
23212
21746
  ctorParameters: () => [],
@@ -23262,6 +21796,22 @@ i0.ɵɵngDeclareClassMetadata({
23262
21796
  required: false
23263
21797
  }]
23264
21798
  }],
21799
+ modifiedLabel: [{
21800
+ type: i0.Input,
21801
+ args: [{
21802
+ isSignal: true,
21803
+ alias: "modifiedLabel",
21804
+ required: false
21805
+ }]
21806
+ }],
21807
+ missingTitle: [{
21808
+ type: i0.Input,
21809
+ args: [{
21810
+ isSignal: true,
21811
+ alias: "missingTitle",
21812
+ required: false
21813
+ }]
21814
+ }],
23265
21815
  closed: [{
23266
21816
  type: i0.Output,
23267
21817
  args: ["closed"]
@@ -23518,8 +22068,7 @@ var HxTabs = class HxTabs {
23518
22068
  outputs: { value: "valueChange" },
23519
22069
  host: { classAttribute: "hx-tabs" },
23520
22070
  ngImport: i0,
23521
- template: "<ng-content />",
23522
- isInline: true,
22071
+ template: "<ng-content />\n",
23523
22072
  changeDetection: i0.ChangeDetectionStrategy.OnPush
23524
22073
  });
23525
22074
  };
@@ -23534,7 +22083,7 @@ i0.ɵɵngDeclareClassMetadata({
23534
22083
  selector: "hx-tabs",
23535
22084
  changeDetection: ChangeDetectionStrategy.OnPush,
23536
22085
  host: { class: "hx-tabs" },
23537
- template: "<ng-content />"
22086
+ template: "<ng-content />\n"
23538
22087
  }]
23539
22088
  }],
23540
22089
  ctorParameters: () => [],
@@ -23605,12 +22154,7 @@ var HxTabList = class HxTabList {
23605
22154
  classAttribute: "hx-tab-list"
23606
22155
  },
23607
22156
  ngImport: i0,
23608
- template: `
23609
- <hx-tab-scroller [enabled]="tabs.scrollable()">
23610
- <div class="hx-tab-tabs" role="tablist" (keydown)="onKeydown($event)"><ng-content /></div>
23611
- </hx-tab-scroller>
23612
- `,
23613
- isInline: true,
22157
+ template: "<hx-tab-scroller [enabled]=\"tabs.scrollable()\">\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- composite widget: focus moves over its items (roving tabindex or aria-activedescendant) -->\n <div class=\"hx-tab-tabs\" role=\"tablist\" (keydown)=\"onKeydown($event)\"><ng-content /></div>\n</hx-tab-scroller>\n",
23614
22158
  dependencies: [{
23615
22159
  kind: "component",
23616
22160
  type: HxTabScroller,
@@ -23635,11 +22179,7 @@ i0.ɵɵngDeclareClassMetadata({
23635
22179
  class: "hx-tab-list",
23636
22180
  "[class.hx-tab-list-scrollable]": "tabs.scrollable()"
23637
22181
  },
23638
- template: `
23639
- <hx-tab-scroller [enabled]="tabs.scrollable()">
23640
- <div class="hx-tab-tabs" role="tablist" (keydown)="onKeydown($event)"><ng-content /></div>
23641
- </hx-tab-scroller>
23642
- `
22182
+ template: "<hx-tab-scroller [enabled]=\"tabs.scrollable()\">\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- composite widget: focus moves over its items (roving tabindex or aria-activedescendant) -->\n <div class=\"hx-tab-tabs\" role=\"tablist\" (keydown)=\"onKeydown($event)\"><ng-content /></div>\n</hx-tab-scroller>\n"
23643
22183
  }]
23644
22184
  }]
23645
22185
  });
@@ -23712,8 +22252,7 @@ var HxTab = class HxTab {
23712
22252
  classAttribute: "hx-tab"
23713
22253
  },
23714
22254
  ngImport: i0,
23715
- template: "<ng-content />",
23716
- isInline: true,
22255
+ template: "<ng-content />\n",
23717
22256
  changeDetection: i0.ChangeDetectionStrategy.OnPush
23718
22257
  });
23719
22258
  };
@@ -23741,7 +22280,7 @@ i0.ɵɵngDeclareClassMetadata({
23741
22280
  "(keydown.enter)": "onClick()",
23742
22281
  "(keydown.space)": "onSpace($event)"
23743
22282
  },
23744
- template: "<ng-content />"
22283
+ template: "<ng-content />\n"
23745
22284
  }]
23746
22285
  }],
23747
22286
  ctorParameters: () => [],
@@ -23781,8 +22320,7 @@ var HxTabPanels = class HxTabPanels {
23781
22320
  selector: "hx-tab-panels",
23782
22321
  host: { classAttribute: "hx-tab-panels" },
23783
22322
  ngImport: i0,
23784
- template: "<ng-content />",
23785
- isInline: true,
22323
+ template: "<ng-content />\n",
23786
22324
  changeDetection: i0.ChangeDetectionStrategy.OnPush
23787
22325
  });
23788
22326
  };
@@ -23797,7 +22335,7 @@ i0.ɵɵngDeclareClassMetadata({
23797
22335
  selector: "hx-tab-panels",
23798
22336
  changeDetection: ChangeDetectionStrategy.OnPush,
23799
22337
  host: { class: "hx-tab-panels" },
23800
- template: "<ng-content />"
22338
+ template: "<ng-content />\n"
23801
22339
  }]
23802
22340
  }]
23803
22341
  });
@@ -23881,16 +22419,7 @@ var HxTabPanel = class HxTabPanel {
23881
22419
  isSignal: true
23882
22420
  }],
23883
22421
  ngImport: i0,
23884
- template: `
23885
- @if (lazy(); as lazy) {
23886
- @if (render()) {
23887
- <ng-container [ngTemplateOutlet]="lazy.template" />
23888
- }
23889
- } @else {
23890
- <ng-content />
23891
- }
23892
- `,
23893
- isInline: true,
22422
+ template: "@if (lazy(); as lazy) {\n @if (render()) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" />\n }\n} @else {\n <ng-content />\n}\n",
23894
22423
  dependencies: [{
23895
22424
  kind: "directive",
23896
22425
  type: NgTemplateOutlet,
@@ -23923,15 +22452,7 @@ i0.ɵɵngDeclareClassMetadata({
23923
22452
  "[attr.aria-labelledby]": "tabs.tabId(value())",
23924
22453
  "[hidden]": "!active()"
23925
22454
  },
23926
- template: `
23927
- @if (lazy(); as lazy) {
23928
- @if (render()) {
23929
- <ng-container [ngTemplateOutlet]="lazy.template" />
23930
- }
23931
- } @else {
23932
- <ng-content />
23933
- }
23934
- `
22455
+ template: "@if (lazy(); as lazy) {\n @if (render()) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" />\n }\n} @else {\n <ng-content />\n}\n"
23935
22456
  }]
23936
22457
  }],
23937
22458
  propDecorators: {
@@ -24014,13 +22535,7 @@ var HxTag = class HxTag {
24014
22535
  classAttribute: "hx-tag"
24015
22536
  },
24016
22537
  ngImport: i0,
24017
- template: `
24018
- @if (icon()) {
24019
- <span class="hx-tag-icon" [class]="icon()" aria-hidden="true"></span>
24020
- }
24021
- <span class="hx-tag-label">{{ value() }}<ng-content /></span>
24022
- `,
24023
- isInline: true,
22538
+ template: "@if (icon()) {\n <span class=\"hx-tag-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n}\n<span class=\"hx-tag-label\">{{ value() }}<ng-content /></span>\n",
24024
22539
  changeDetection: i0.ChangeDetectionStrategy.OnPush
24025
22540
  });
24026
22541
  };
@@ -24044,12 +22559,7 @@ i0.ɵɵngDeclareClassMetadata({
24044
22559
  "[class.hx-tag-danger]": "severity() === 'danger'",
24045
22560
  "[class.hx-tag-contrast]": "severity() === 'contrast'"
24046
22561
  },
24047
- template: `
24048
- @if (icon()) {
24049
- <span class="hx-tag-icon" [class]="icon()" aria-hidden="true"></span>
24050
- }
24051
- <span class="hx-tag-label">{{ value() }}<ng-content /></span>
24052
- `
22562
+ template: "@if (icon()) {\n <span class=\"hx-tag-icon\" [class]=\"icon()\" aria-hidden=\"true\"></span>\n}\n<span class=\"hx-tag-label\">{{ value() }}<ng-content /></span>\n"
24053
22563
  }]
24054
22564
  }],
24055
22565
  propDecorators: {
@@ -24641,37 +23151,7 @@ var HxTimeline = class HxTimeline {
24641
23151
  }
24642
23152
  ],
24643
23153
  ngImport: i0,
24644
- template: `
24645
- <ol class="hx-timeline-events">
24646
- @for (event of value(); track $index; let i = $index; let last = $last) {
24647
- <li class="hx-timeline-event" [class.hx-timeline-event-reversed]="reversed(i)">
24648
- <div class="hx-timeline-event-opposite">
24649
- @if (opposite(); as opposite) {
24650
- <ng-container [ngTemplateOutlet]="opposite.template" [ngTemplateOutletContext]="{ $implicit: event, index: i }" />
24651
- }
24652
- </div>
24653
- <div class="hx-timeline-event-separator" aria-hidden="true">
24654
- @if (marker(); as marker) {
24655
- <div class="hx-timeline-event-marker-custom">
24656
- <ng-container [ngTemplateOutlet]="marker.template" [ngTemplateOutletContext]="{ $implicit: event, index: i }" />
24657
- </div>
24658
- } @else {
24659
- <div class="hx-timeline-event-marker"></div>
24660
- }
24661
- @if (!last) {
24662
- <div class="hx-timeline-event-connector"></div>
24663
- }
24664
- </div>
24665
- <div class="hx-timeline-event-content">
24666
- @if (content(); as content) {
24667
- <ng-container [ngTemplateOutlet]="content.template" [ngTemplateOutletContext]="{ $implicit: event, index: i }" />
24668
- }
24669
- </div>
24670
- </li>
24671
- }
24672
- </ol>
24673
- `,
24674
- isInline: true,
23154
+ template: "<ol class=\"hx-timeline-events\">\n @for (event of value(); track $index; let i = $index; let last = $last) {\n <li class=\"hx-timeline-event\" [class.hx-timeline-event-reversed]=\"reversed(i)\">\n <div class=\"hx-timeline-event-opposite\">\n @if (opposite(); as opposite) {\n <ng-container [ngTemplateOutlet]=\"opposite.template\" [ngTemplateOutletContext]=\"{ $implicit: event, index: i }\" />\n }\n </div>\n <div class=\"hx-timeline-event-separator\" aria-hidden=\"true\">\n @if (marker(); as marker) {\n <div class=\"hx-timeline-event-marker-custom\">\n <ng-container [ngTemplateOutlet]=\"marker.template\" [ngTemplateOutletContext]=\"{ $implicit: event, index: i }\" />\n </div>\n } @else {\n <div class=\"hx-timeline-event-marker\"></div>\n }\n @if (!last) {\n <div class=\"hx-timeline-event-connector\"></div>\n }\n </div>\n <div class=\"hx-timeline-event-content\">\n @if (content(); as content) {\n <ng-container [ngTemplateOutlet]=\"content.template\" [ngTemplateOutletContext]=\"{ $implicit: event, index: i }\" />\n }\n </div>\n </li>\n }\n</ol>\n",
24675
23155
  dependencies: [{
24676
23156
  kind: "directive",
24677
23157
  type: NgTemplateOutlet,
@@ -24701,36 +23181,7 @@ i0.ɵɵngDeclareClassMetadata({
24701
23181
  "[class.hx-timeline-vertical]": "layout() === 'vertical'",
24702
23182
  "[class.hx-timeline-horizontal]": "layout() === 'horizontal'"
24703
23183
  },
24704
- template: `
24705
- <ol class="hx-timeline-events">
24706
- @for (event of value(); track $index; let i = $index; let last = $last) {
24707
- <li class="hx-timeline-event" [class.hx-timeline-event-reversed]="reversed(i)">
24708
- <div class="hx-timeline-event-opposite">
24709
- @if (opposite(); as opposite) {
24710
- <ng-container [ngTemplateOutlet]="opposite.template" [ngTemplateOutletContext]="{ $implicit: event, index: i }" />
24711
- }
24712
- </div>
24713
- <div class="hx-timeline-event-separator" aria-hidden="true">
24714
- @if (marker(); as marker) {
24715
- <div class="hx-timeline-event-marker-custom">
24716
- <ng-container [ngTemplateOutlet]="marker.template" [ngTemplateOutletContext]="{ $implicit: event, index: i }" />
24717
- </div>
24718
- } @else {
24719
- <div class="hx-timeline-event-marker"></div>
24720
- }
24721
- @if (!last) {
24722
- <div class="hx-timeline-event-connector"></div>
24723
- }
24724
- </div>
24725
- <div class="hx-timeline-event-content">
24726
- @if (content(); as content) {
24727
- <ng-container [ngTemplateOutlet]="content.template" [ngTemplateOutletContext]="{ $implicit: event, index: i }" />
24728
- }
24729
- </div>
24730
- </li>
24731
- }
24732
- </ol>
24733
- `
23184
+ template: "<ol class=\"hx-timeline-events\">\n @for (event of value(); track $index; let i = $index; let last = $last) {\n <li class=\"hx-timeline-event\" [class.hx-timeline-event-reversed]=\"reversed(i)\">\n <div class=\"hx-timeline-event-opposite\">\n @if (opposite(); as opposite) {\n <ng-container [ngTemplateOutlet]=\"opposite.template\" [ngTemplateOutletContext]=\"{ $implicit: event, index: i }\" />\n }\n </div>\n <div class=\"hx-timeline-event-separator\" aria-hidden=\"true\">\n @if (marker(); as marker) {\n <div class=\"hx-timeline-event-marker-custom\">\n <ng-container [ngTemplateOutlet]=\"marker.template\" [ngTemplateOutletContext]=\"{ $implicit: event, index: i }\" />\n </div>\n } @else {\n <div class=\"hx-timeline-event-marker\"></div>\n }\n @if (!last) {\n <div class=\"hx-timeline-event-connector\"></div>\n }\n </div>\n <div class=\"hx-timeline-event-content\">\n @if (content(); as content) {\n <ng-container [ngTemplateOutlet]=\"content.template\" [ngTemplateOutletContext]=\"{ $implicit: event, index: i }\" />\n }\n </div>\n </li>\n }\n</ol>\n"
24734
23185
  }]
24735
23186
  }],
24736
23187
  propDecorators: {
@@ -24827,6 +23278,7 @@ var HxToastItem = class HxToastItem {
24827
23278
  #timer;
24828
23279
  #remaining = 0;
24829
23280
  #started = 0;
23281
+ #acted = false;
24830
23282
  constructor() {
24831
23283
  this.#destroyRef.onDestroy(() => clearTimeout(this.#timer));
24832
23284
  }
@@ -24852,6 +23304,12 @@ var HxToastItem = class HxToastItem {
24852
23304
  if (this.message().sticky || this.#timer !== void 0) return;
24853
23305
  this.#start();
24854
23306
  }
23307
+ runAction() {
23308
+ if (this.#acted) return;
23309
+ this.#acted = true;
23310
+ this.close();
23311
+ this.message().action?.run();
23312
+ }
24855
23313
  close() {
24856
23314
  clearTimeout(this.#timer);
24857
23315
  this.#service.remove(this.message().id);
@@ -24898,25 +23356,7 @@ var HxToastItem = class HxToastItem {
24898
23356
  classAttribute: "hx-toast-item"
24899
23357
  },
24900
23358
  ngImport: i0,
24901
- template: `
24902
- <div class="hx-toast-content">
24903
- <span class="hx-toast-icon" aria-hidden="true"></span>
24904
- <div class="hx-toast-text">
24905
- @if (message().summary) {
24906
- <span class="hx-toast-summary">{{ message().summary }}</span>
24907
- }
24908
- @if (message().detail) {
24909
- <div class="hx-toast-detail">{{ message().detail }}</div>
24910
- }
24911
- </div>
24912
- @if (message().closable !== false) {
24913
- <button type="button" class="hx-toast-close" aria-label="Close" (click)="close()">
24914
- <span class="hx-toast-close-icon" aria-hidden="true"></span>
24915
- </button>
24916
- }
24917
- </div>
24918
- `,
24919
- isInline: true,
23359
+ template: "<div class=\"hx-toast-content\">\n <span class=\"hx-toast-icon\" aria-hidden=\"true\"></span>\n <div class=\"hx-toast-text\">\n @if (message().summary) {\n <span class=\"hx-toast-summary\">{{ message().summary }}</span>\n }\n @if (message().detail) {\n <div class=\"hx-toast-detail\">{{ message().detail }}</div>\n }\n </div>\n @if (message().action; as action) {\n <button type=\"button\" class=\"hx-toast-action\" (click)=\"runAction()\">{{ action.label }}</button>\n }\n @if (message().closable !== false) {\n <button type=\"button\" class=\"hx-toast-close\" aria-label=\"Close\" (click)=\"close()\">\n <span class=\"hx-toast-close-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n</div>\n",
24920
23360
  changeDetection: i0.ChangeDetectionStrategy.OnPush
24921
23361
  });
24922
23362
  };
@@ -24946,24 +23386,7 @@ i0.ɵɵngDeclareClassMetadata({
24946
23386
  "(focusin)": "pause()",
24947
23387
  "(focusout)": "resume()"
24948
23388
  },
24949
- template: `
24950
- <div class="hx-toast-content">
24951
- <span class="hx-toast-icon" aria-hidden="true"></span>
24952
- <div class="hx-toast-text">
24953
- @if (message().summary) {
24954
- <span class="hx-toast-summary">{{ message().summary }}</span>
24955
- }
24956
- @if (message().detail) {
24957
- <div class="hx-toast-detail">{{ message().detail }}</div>
24958
- }
24959
- </div>
24960
- @if (message().closable !== false) {
24961
- <button type="button" class="hx-toast-close" aria-label="Close" (click)="close()">
24962
- <span class="hx-toast-close-icon" aria-hidden="true"></span>
24963
- </button>
24964
- }
24965
- </div>
24966
- `
23389
+ template: "<div class=\"hx-toast-content\">\n <span class=\"hx-toast-icon\" aria-hidden=\"true\"></span>\n <div class=\"hx-toast-text\">\n @if (message().summary) {\n <span class=\"hx-toast-summary\">{{ message().summary }}</span>\n }\n @if (message().detail) {\n <div class=\"hx-toast-detail\">{{ message().detail }}</div>\n }\n </div>\n @if (message().action; as action) {\n <button type=\"button\" class=\"hx-toast-action\" (click)=\"runAction()\">{{ action.label }}</button>\n }\n @if (message().closable !== false) {\n <button type=\"button\" class=\"hx-toast-close\" aria-label=\"Close\" (click)=\"close()\">\n <span class=\"hx-toast-close-icon\" aria-hidden=\"true\"></span>\n </button>\n }\n</div>\n"
24967
23390
  }]
24968
23391
  }],
24969
23392
  ctorParameters: () => [],
@@ -25024,12 +23447,7 @@ var HxToast = class HxToast {
25024
23447
  classAttribute: "hx-toast"
25025
23448
  },
25026
23449
  ngImport: i0,
25027
- template: `
25028
- @for (message of shown(); track message.id) {
25029
- <hx-toast-item [message]="message" />
25030
- }
25031
- `,
25032
- isInline: true,
23450
+ template: "@for (message of shown(); track message.id) {\n <hx-toast-item [message]=\"message\" />\n}\n",
25033
23451
  dependencies: [{
25034
23452
  kind: "component",
25035
23453
  type: HxToastItem,
@@ -25060,11 +23478,7 @@ i0.ɵɵngDeclareClassMetadata({
25060
23478
  "[class.hx-toast-bottom-center]": "position() === 'bottom-center'",
25061
23479
  "[class.hx-toast-bottom-right]": "position() === 'bottom-right'"
25062
23480
  },
25063
- template: `
25064
- @for (message of shown(); track message.id) {
25065
- <hx-toast-item [message]="message" />
25066
- }
25067
- `
23481
+ template: "@for (message of shown(); track message.id) {\n <hx-toast-item [message]=\"message\" />\n}\n"
25068
23482
  }]
25069
23483
  }],
25070
23484
  propDecorators: {
@@ -25257,29 +23671,7 @@ var HxToggleButton = class HxToggleButton {
25257
23671
  multi: true
25258
23672
  }],
25259
23673
  ngImport: i0,
25260
- template: `
25261
- <button
25262
- type="button"
25263
- class="hx-toggle-button-control"
25264
- [attr.id]="inputId() ?? null"
25265
- [attr.aria-pressed]="value()"
25266
- [attr.aria-label]="ariaLabel()"
25267
- [attr.aria-labelledby]="ariaLabelledby()"
25268
- [disabled]="isDisabled()"
25269
- (click)="toggle()"
25270
- (blur)="onBlur()"
25271
- >
25272
- <span class="hx-toggle-button-content">
25273
- @if (icon(); as icon) {
25274
- <i class="hx-toggle-button-icon" [class]="icon" aria-hidden="true"></i>
25275
- }
25276
- @if (label(); as label) {
25277
- <span class="hx-toggle-button-label">{{ label }}</span>
25278
- }
25279
- </span>
25280
- </button>
25281
- `,
25282
- isInline: true,
23674
+ template: "<button\n type=\"button\"\n class=\"hx-toggle-button-control\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-pressed]=\"value()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n>\n <span class=\"hx-toggle-button-content\">\n @if (icon(); as icon) {\n <i class=\"hx-toggle-button-icon\" [class]=\"icon\" aria-hidden=\"true\"></i>\n }\n @if (label(); as label) {\n <span class=\"hx-toggle-button-label\">{{ label }}</span>\n }\n </span>\n</button>\n",
25283
23675
  changeDetection: i0.ChangeDetectionStrategy.OnPush
25284
23676
  });
25285
23677
  };
@@ -25307,28 +23699,7 @@ i0.ɵɵngDeclareClassMetadata({
25307
23699
  "[class.hx-toggle-button-invalid]": "invalid()",
25308
23700
  "[class.hx-toggle-button-disabled]": "isDisabled()"
25309
23701
  },
25310
- template: `
25311
- <button
25312
- type="button"
25313
- class="hx-toggle-button-control"
25314
- [attr.id]="inputId() ?? null"
25315
- [attr.aria-pressed]="value()"
25316
- [attr.aria-label]="ariaLabel()"
25317
- [attr.aria-labelledby]="ariaLabelledby()"
25318
- [disabled]="isDisabled()"
25319
- (click)="toggle()"
25320
- (blur)="onBlur()"
25321
- >
25322
- <span class="hx-toggle-button-content">
25323
- @if (icon(); as icon) {
25324
- <i class="hx-toggle-button-icon" [class]="icon" aria-hidden="true"></i>
25325
- }
25326
- @if (label(); as label) {
25327
- <span class="hx-toggle-button-label">{{ label }}</span>
25328
- }
25329
- </span>
25330
- </button>
25331
- `
23702
+ template: "<button\n type=\"button\"\n class=\"hx-toggle-button-control\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-pressed]=\"value()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n>\n <span class=\"hx-toggle-button-content\">\n @if (icon(); as icon) {\n <i class=\"hx-toggle-button-icon\" [class]=\"icon\" aria-hidden=\"true\"></i>\n }\n @if (label(); as label) {\n <span class=\"hx-toggle-button-label\">{{ label }}</span>\n }\n </span>\n</button>\n"
25332
23703
  }]
25333
23704
  }],
25334
23705
  propDecorators: {
@@ -25454,12 +23825,7 @@ var HxToolbar = class HxToolbar {
25454
23825
  selector: "hx-toolbar",
25455
23826
  host: { classAttribute: "hx-toolbar" },
25456
23827
  ngImport: i0,
25457
- template: `
25458
- <div class="hx-toolbar-start"><ng-content select="[hxToolbarStart]" /></div>
25459
- <div class="hx-toolbar-center"><ng-content select="[hxToolbarCenter]" /></div>
25460
- <div class="hx-toolbar-end"><ng-content select="[hxToolbarEnd]" /></div>
25461
- `,
25462
- isInline: true,
23828
+ template: "<div class=\"hx-toolbar-start\"><ng-content select=\"[hxToolbarStart]\" /></div>\n<div class=\"hx-toolbar-center\"><ng-content select=\"[hxToolbarCenter]\" /></div>\n<div class=\"hx-toolbar-end\"><ng-content select=\"[hxToolbarEnd]\" /></div>\n",
25463
23829
  changeDetection: i0.ChangeDetectionStrategy.OnPush
25464
23830
  });
25465
23831
  };
@@ -25474,16 +23840,13 @@ i0.ɵɵngDeclareClassMetadata({
25474
23840
  selector: "hx-toolbar",
25475
23841
  changeDetection: ChangeDetectionStrategy.OnPush,
25476
23842
  host: { class: "hx-toolbar" },
25477
- template: `
25478
- <div class="hx-toolbar-start"><ng-content select="[hxToolbarStart]" /></div>
25479
- <div class="hx-toolbar-center"><ng-content select="[hxToolbarCenter]" /></div>
25480
- <div class="hx-toolbar-end"><ng-content select="[hxToolbarEnd]" /></div>
25481
- `
23843
+ template: "<div class=\"hx-toolbar-start\"><ng-content select=\"[hxToolbarStart]\" /></div>\n<div class=\"hx-toolbar-center\"><ng-content select=\"[hxToolbarCenter]\" /></div>\n<div class=\"hx-toolbar-end\"><ng-content select=\"[hxToolbarEnd]\" /></div>\n"
25482
23844
  }]
25483
23845
  }]
25484
23846
  });
25485
23847
  var HxTooltipBubble = class HxTooltipBubble {
25486
23848
  text = signal("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
23849
+ shortcut = signal([], ...ngDevMode ? [{ debugName: "shortcut" }] : /* istanbul ignore next */ []);
25487
23850
  id = "";
25488
23851
  static ɵfac = i0.ɵɵngDeclareFactory({
25489
23852
  minVersion: "12.0.0",
@@ -25494,7 +23857,7 @@ var HxTooltipBubble = class HxTooltipBubble {
25494
23857
  target: i0.ɵɵFactoryTarget.Component
25495
23858
  });
25496
23859
  static ɵcmp = i0.ɵɵngDeclareComponent({
25497
- minVersion: "14.0.0",
23860
+ minVersion: "17.0.0",
25498
23861
  version: "22.2.4",
25499
23862
  type: HxTooltipBubble,
25500
23863
  isStandalone: true,
@@ -25505,8 +23868,17 @@ var HxTooltipBubble = class HxTooltipBubble {
25505
23868
  classAttribute: "hx-tooltip"
25506
23869
  },
25507
23870
  ngImport: i0,
25508
- template: "{{ text() }}",
25509
- isInline: true,
23871
+ template: "{{ text() }}@if (shortcut().length) {<hx-kbd [keys]=\"shortcut()\" size=\"sm\" />}\n",
23872
+ dependencies: [{
23873
+ kind: "component",
23874
+ type: HxKbd,
23875
+ selector: "hx-kbd",
23876
+ inputs: [
23877
+ "keys",
23878
+ "size",
23879
+ "separator"
23880
+ ]
23881
+ }],
25510
23882
  changeDetection: i0.ChangeDetectionStrategy.OnPush
25511
23883
  });
25512
23884
  };
@@ -25519,13 +23891,14 @@ i0.ɵɵngDeclareClassMetadata({
25519
23891
  type: Component,
25520
23892
  args: [{
25521
23893
  selector: "hx-tooltip-bubble",
25522
- template: "{{ text() }}",
23894
+ imports: [HxKbd],
25523
23895
  changeDetection: ChangeDetectionStrategy.OnPush,
25524
23896
  host: {
25525
23897
  class: "hx-tooltip",
25526
23898
  role: "tooltip",
25527
23899
  "[id]": "id"
25528
- }
23900
+ },
23901
+ template: "{{ text() }}@if (shortcut().length) {<hx-kbd [keys]=\"shortcut()\" size=\"sm\" />}\n"
25529
23902
  }]
25530
23903
  }]
25531
23904
  });
@@ -25580,10 +23953,19 @@ var HxTooltip = class HxTooltip {
25580
23953
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
25581
23954
  alias: "hxTooltipDisabled"
25582
23955
  });
23956
+ shortcut = input(void 0, {
23957
+ ...ngDevMode ? { debugName: "shortcut" } : /* istanbul ignore next */ {},
23958
+ alias: "hxTooltipShortcut"
23959
+ });
25583
23960
  showDelay = input(0, {
25584
23961
  ...ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {},
25585
23962
  alias: "hxTooltipShowDelay"
25586
23963
  });
23964
+ whenTruncated = input(false, {
23965
+ ...ngDevMode ? { debugName: "whenTruncated" } : /* istanbul ignore next */ {},
23966
+ alias: "hxTooltipWhenTruncated",
23967
+ transform: booleanAttribute
23968
+ });
25587
23969
  bubbleId = nextId("hx-tooltip");
25588
23970
  shown = signal(false, ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
25589
23971
  #ref = null;
@@ -25595,6 +23977,8 @@ var HxTooltip = class HxTooltip {
25595
23977
  const text = this.text();
25596
23978
  if (this.disabled() || !text) this.hide();
25597
23979
  else if (this.#bubble) this.#bubble.text.set(text);
23980
+ const shortcut = this.shortcut() ?? [];
23981
+ this.#bubble?.shortcut.set(shortcut);
25598
23982
  this.position();
25599
23983
  this.#ref?.updatePositionStrategy(this.#strategy());
25600
23984
  });
@@ -25628,6 +24012,8 @@ var HxTooltip = class HxTooltip {
25628
24012
  }
25629
24013
  #create(text) {
25630
24014
  if (this.#ref) return;
24015
+ const host = this.#host.nativeElement;
24016
+ if (this.whenTruncated() && host.scrollWidth <= host.clientWidth) return;
25631
24017
  this.#ref = this.#overlay.create({
25632
24018
  positionStrategy: this.#strategy(),
25633
24019
  scrollStrategy: this.#overlay.scrollStrategies.close(),
@@ -25636,6 +24022,7 @@ var HxTooltip = class HxTooltip {
25636
24022
  const bubble = this.#ref.attach(new ComponentPortal(HxTooltipBubble));
25637
24023
  bubble.instance.id = this.bubbleId;
25638
24024
  bubble.instance.text.set(text);
24025
+ bubble.instance.shortcut.set(this.shortcut() ?? []);
25639
24026
  this.#bubble = bubble.instance;
25640
24027
  this.shown.set(true);
25641
24028
  }
@@ -25693,12 +24080,26 @@ var HxTooltip = class HxTooltip {
25693
24080
  isRequired: false,
25694
24081
  transformFunction: null
25695
24082
  },
24083
+ shortcut: {
24084
+ classPropertyName: "shortcut",
24085
+ publicName: "hxTooltipShortcut",
24086
+ isSignal: true,
24087
+ isRequired: false,
24088
+ transformFunction: null
24089
+ },
25696
24090
  showDelay: {
25697
24091
  classPropertyName: "showDelay",
25698
24092
  publicName: "hxTooltipShowDelay",
25699
24093
  isSignal: true,
25700
24094
  isRequired: false,
25701
24095
  transformFunction: null
24096
+ },
24097
+ whenTruncated: {
24098
+ classPropertyName: "whenTruncated",
24099
+ publicName: "hxTooltipWhenTruncated",
24100
+ isSignal: true,
24101
+ isRequired: false,
24102
+ transformFunction: null
25702
24103
  }
25703
24104
  },
25704
24105
  host: {
@@ -25769,6 +24170,14 @@ i0.ɵɵngDeclareClassMetadata({
25769
24170
  required: false
25770
24171
  }]
25771
24172
  }],
24173
+ shortcut: [{
24174
+ type: i0.Input,
24175
+ args: [{
24176
+ isSignal: true,
24177
+ alias: "hxTooltipShortcut",
24178
+ required: false
24179
+ }]
24180
+ }],
25772
24181
  showDelay: [{
25773
24182
  type: i0.Input,
25774
24183
  args: [{
@@ -25776,6 +24185,14 @@ i0.ɵɵngDeclareClassMetadata({
25776
24185
  alias: "hxTooltipShowDelay",
25777
24186
  required: false
25778
24187
  }]
24188
+ }],
24189
+ whenTruncated: [{
24190
+ type: i0.Input,
24191
+ args: [{
24192
+ isSignal: true,
24193
+ alias: "hxTooltipWhenTruncated",
24194
+ required: false
24195
+ }]
25779
24196
  }]
25780
24197
  }
25781
24198
  });
@@ -25942,7 +24359,7 @@ var HxTree = class HxTree {
25942
24359
  for (const [key, { node }] of this.#index()) if (node.children?.length) this.expand(key);
25943
24360
  }
25944
24361
  collapseAll() {
25945
- for (const key of [...this.#expanded()]) this.collapse(key);
24362
+ for (const key of this.#expanded()) this.collapse(key);
25946
24363
  }
25947
24364
  onToggleClick(item, event) {
25948
24365
  if (item.leaf || item.node.disabled) return;
@@ -26150,94 +24567,7 @@ var HxTree = class HxTree {
26150
24567
  isSignal: true
26151
24568
  }],
26152
24569
  ngImport: i0,
26153
- template: `
26154
- @if (filter()) {
26155
- <input
26156
- hx-input
26157
- type="search"
26158
- class="hx-tree-filter"
26159
- [placeholder]="filterPlaceholder()"
26160
- [attr.aria-label]="filterLabel()"
26161
- [value]="query()"
26162
- (input)="query.set($any($event.target).value)"
26163
- />
26164
- }
26165
- <ul
26166
- class="hx-tree-list"
26167
- role="tree"
26168
- [attr.aria-label]="ariaLabel() || null"
26169
- [attr.aria-multiselectable]="multiple() ? 'true' : null"
26170
- (keydown)="onKeydown($event)"
26171
- (focusin)="onFocusIn($event)"
26172
- >
26173
- <ng-container [ngTemplateOutlet]="level" [ngTemplateOutletContext]="{ $implicit: view(), depth: 1 }" />
26174
- </ul>
26175
- @if (filtering() && view().length === 0) {
26176
- <div class="hx-tree-empty" role="status">{{ emptyMessage() }}</div>
26177
- }
26178
-
26179
- <ng-template #level let-items let-depth="depth">
26180
- @for (item of items; track item.node.key; let i = $index) {
26181
- <li
26182
- class="hx-tree-node"
26183
- role="treeitem"
26184
- [attr.data-key]="item.node.key"
26185
- [attr.aria-level]="depth"
26186
- [attr.aria-setsize]="items.length"
26187
- [attr.aria-posinset]="i + 1"
26188
- [attr.aria-expanded]="item.leaf ? null : isOpen(item)"
26189
- [attr.aria-selected]="mode() === 'single' || mode() === 'multiple' ? isSelected(item.node.key) : null"
26190
- [attr.aria-checked]="mode() === 'checkbox' ? checkState(item.node.key) : null"
26191
- [attr.aria-disabled]="item.node.disabled ? 'true' : null"
26192
- [attr.tabindex]="item.node.key === tabKey() ? 0 : -1"
26193
- >
26194
- <div
26195
- class="hx-tree-node-content"
26196
- [class.hx-tree-node-selected]="mode() !== 'checkbox' && isSelected(item.node.key)"
26197
- [class.hx-tree-node-disabled]="item.node.disabled"
26198
- (click)="onClick(item, $event)"
26199
- >
26200
- <span class="hx-tree-node-toggle" [class.hx-tree-node-toggle-leaf]="item.leaf" aria-hidden="true" (click)="onToggleClick(item, $event)">
26201
- @if (item.node.loading) {
26202
- <span class="hx-tree-loading-icon"></span>
26203
- } @else if (!item.leaf) {
26204
- <span class="hx-tree-toggle-icon" [class.hx-tree-toggle-icon-open]="isOpen(item)"></span>
26205
- }
26206
- </span>
26207
- @if (mode() === 'checkbox') {
26208
- <input
26209
- hx-checkbox
26210
- type="checkbox"
26211
- class="hx-tree-node-checkbox"
26212
- tabindex="-1"
26213
- aria-hidden="true"
26214
- [checked]="checkState(item.node.key) === 'true'"
26215
- [indeterminate]="checkState(item.node.key) === 'mixed'"
26216
- [disabled]="!!item.node.disabled"
26217
- />
26218
- }
26219
- @if (template(); as tpl) {
26220
- <ng-container
26221
- [ngTemplateOutlet]="tpl.template"
26222
- [ngTemplateOutletContext]="{ $implicit: item.node, selected: isSelected(item.node.key), expanded: isOpen(item), level: depth }"
26223
- />
26224
- } @else {
26225
- @if (item.node.icon) {
26226
- <span class="hx-tree-node-icon" [class]="item.node.icon" aria-hidden="true"></span>
26227
- }
26228
- <span class="hx-tree-node-label">{{ item.node.label }}</span>
26229
- }
26230
- </div>
26231
- @if (!item.leaf && isOpen(item) && item.children.length) {
26232
- <ul class="hx-tree-group" role="group">
26233
- <ng-container [ngTemplateOutlet]="level" [ngTemplateOutletContext]="{ $implicit: item.children, depth: depth + 1 }" />
26234
- </ul>
26235
- }
26236
- </li>
26237
- }
26238
- </ng-template>
26239
- `,
26240
- isInline: true,
24570
+ template: "@if (filter()) {\n <input\n hx-input\n type=\"search\"\n class=\"hx-tree-filter\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterLabel()\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n />\n}\n<!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- composite widget: focus moves over its items (roving tabindex or aria-activedescendant) -->\n<ul\n class=\"hx-tree-list\"\n role=\"tree\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n (keydown)=\"onKeydown($event)\"\n (focusin)=\"onFocusIn($event)\"\n>\n <ng-container [ngTemplateOutlet]=\"level\" [ngTemplateOutletContext]=\"{ $implicit: view(), depth: 1 }\" />\n</ul>\n@if (filtering() && view().length === 0) {\n <div class=\"hx-tree-empty\" role=\"status\">{{ emptyMessage() }}</div>\n}\n\n<ng-template #level let-items let-depth=\"depth\">\n @for (item of items; track item.node.key; let i = $index) {\n <li\n class=\"hx-tree-node\"\n role=\"treeitem\"\n [attr.data-key]=\"item.node.key\"\n [attr.aria-level]=\"depth\"\n [attr.aria-setsize]=\"items.length\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-expanded]=\"item.leaf ? null : isOpen(item)\"\n [attr.aria-selected]=\"mode() === 'single' || mode() === 'multiple' ? isSelected(item.node.key) : null\"\n [attr.aria-checked]=\"mode() === 'checkbox' ? checkState(item.node.key) : null\"\n [attr.aria-disabled]=\"item.node.disabled ? 'true' : null\"\n [attr.tabindex]=\"item.node.key === tabKey() ? 0 : -1\"\n >\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the focusable treeitem around it handles the keys -->\n <div\n class=\"hx-tree-node-content\"\n [class.hx-tree-node-selected]=\"mode() !== 'checkbox' && isSelected(item.node.key)\"\n [class.hx-tree-node-disabled]=\"item.node.disabled\"\n (click)=\"onClick(item, $event)\"\n >\n <span class=\"hx-tree-node-toggle\" [class.hx-tree-node-toggle-leaf]=\"item.leaf\" aria-hidden=\"true\" (click)=\"onToggleClick(item, $event)\">\n @if (item.node.loading) {\n <span class=\"hx-tree-loading-icon\"></span>\n } @else if (!item.leaf) {\n <span class=\"hx-tree-toggle-icon\" [class.hx-tree-toggle-icon-open]=\"isOpen(item)\"></span>\n }\n </span>\n @if (mode() === 'checkbox') {\n <input\n hx-checkbox\n type=\"checkbox\"\n class=\"hx-tree-node-checkbox\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [checked]=\"checkState(item.node.key) === 'true'\"\n [indeterminate]=\"checkState(item.node.key) === 'mixed'\"\n [disabled]=\"!!item.node.disabled\"\n />\n }\n @if (template(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item.node, selected: isSelected(item.node.key), expanded: isOpen(item), level: depth }\"\n />\n } @else {\n @if (item.node.icon) {\n <span class=\"hx-tree-node-icon\" [class]=\"item.node.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-tree-node-label\">{{ item.node.label }}</span>\n }\n </div>\n @if (!item.leaf && isOpen(item) && item.children.length) {\n <ul class=\"hx-tree-group\" role=\"group\">\n <ng-container [ngTemplateOutlet]=\"level\" [ngTemplateOutletContext]=\"{ $implicit: item.children, depth: depth + 1 }\" />\n </ul>\n }\n </li>\n }\n</ng-template>\n",
26241
24571
  dependencies: [
26242
24572
  {
26243
24573
  kind: "directive",
@@ -26288,93 +24618,7 @@ i0.ɵɵngDeclareClassMetadata({
26288
24618
  ],
26289
24619
  changeDetection: ChangeDetectionStrategy.OnPush,
26290
24620
  host: { class: "hx-tree" },
26291
- template: `
26292
- @if (filter()) {
26293
- <input
26294
- hx-input
26295
- type="search"
26296
- class="hx-tree-filter"
26297
- [placeholder]="filterPlaceholder()"
26298
- [attr.aria-label]="filterLabel()"
26299
- [value]="query()"
26300
- (input)="query.set($any($event.target).value)"
26301
- />
26302
- }
26303
- <ul
26304
- class="hx-tree-list"
26305
- role="tree"
26306
- [attr.aria-label]="ariaLabel() || null"
26307
- [attr.aria-multiselectable]="multiple() ? 'true' : null"
26308
- (keydown)="onKeydown($event)"
26309
- (focusin)="onFocusIn($event)"
26310
- >
26311
- <ng-container [ngTemplateOutlet]="level" [ngTemplateOutletContext]="{ $implicit: view(), depth: 1 }" />
26312
- </ul>
26313
- @if (filtering() && view().length === 0) {
26314
- <div class="hx-tree-empty" role="status">{{ emptyMessage() }}</div>
26315
- }
26316
-
26317
- <ng-template #level let-items let-depth="depth">
26318
- @for (item of items; track item.node.key; let i = $index) {
26319
- <li
26320
- class="hx-tree-node"
26321
- role="treeitem"
26322
- [attr.data-key]="item.node.key"
26323
- [attr.aria-level]="depth"
26324
- [attr.aria-setsize]="items.length"
26325
- [attr.aria-posinset]="i + 1"
26326
- [attr.aria-expanded]="item.leaf ? null : isOpen(item)"
26327
- [attr.aria-selected]="mode() === 'single' || mode() === 'multiple' ? isSelected(item.node.key) : null"
26328
- [attr.aria-checked]="mode() === 'checkbox' ? checkState(item.node.key) : null"
26329
- [attr.aria-disabled]="item.node.disabled ? 'true' : null"
26330
- [attr.tabindex]="item.node.key === tabKey() ? 0 : -1"
26331
- >
26332
- <div
26333
- class="hx-tree-node-content"
26334
- [class.hx-tree-node-selected]="mode() !== 'checkbox' && isSelected(item.node.key)"
26335
- [class.hx-tree-node-disabled]="item.node.disabled"
26336
- (click)="onClick(item, $event)"
26337
- >
26338
- <span class="hx-tree-node-toggle" [class.hx-tree-node-toggle-leaf]="item.leaf" aria-hidden="true" (click)="onToggleClick(item, $event)">
26339
- @if (item.node.loading) {
26340
- <span class="hx-tree-loading-icon"></span>
26341
- } @else if (!item.leaf) {
26342
- <span class="hx-tree-toggle-icon" [class.hx-tree-toggle-icon-open]="isOpen(item)"></span>
26343
- }
26344
- </span>
26345
- @if (mode() === 'checkbox') {
26346
- <input
26347
- hx-checkbox
26348
- type="checkbox"
26349
- class="hx-tree-node-checkbox"
26350
- tabindex="-1"
26351
- aria-hidden="true"
26352
- [checked]="checkState(item.node.key) === 'true'"
26353
- [indeterminate]="checkState(item.node.key) === 'mixed'"
26354
- [disabled]="!!item.node.disabled"
26355
- />
26356
- }
26357
- @if (template(); as tpl) {
26358
- <ng-container
26359
- [ngTemplateOutlet]="tpl.template"
26360
- [ngTemplateOutletContext]="{ $implicit: item.node, selected: isSelected(item.node.key), expanded: isOpen(item), level: depth }"
26361
- />
26362
- } @else {
26363
- @if (item.node.icon) {
26364
- <span class="hx-tree-node-icon" [class]="item.node.icon" aria-hidden="true"></span>
26365
- }
26366
- <span class="hx-tree-node-label">{{ item.node.label }}</span>
26367
- }
26368
- </div>
26369
- @if (!item.leaf && isOpen(item) && item.children.length) {
26370
- <ul class="hx-tree-group" role="group">
26371
- <ng-container [ngTemplateOutlet]="level" [ngTemplateOutletContext]="{ $implicit: item.children, depth: depth + 1 }" />
26372
- </ul>
26373
- }
26374
- </li>
26375
- }
26376
- </ng-template>
26377
- `
24621
+ template: "@if (filter()) {\n <input\n hx-input\n type=\"search\"\n class=\"hx-tree-filter\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterLabel()\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n />\n}\n<!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- composite widget: focus moves over its items (roving tabindex or aria-activedescendant) -->\n<ul\n class=\"hx-tree-list\"\n role=\"tree\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n (keydown)=\"onKeydown($event)\"\n (focusin)=\"onFocusIn($event)\"\n>\n <ng-container [ngTemplateOutlet]=\"level\" [ngTemplateOutletContext]=\"{ $implicit: view(), depth: 1 }\" />\n</ul>\n@if (filtering() && view().length === 0) {\n <div class=\"hx-tree-empty\" role=\"status\">{{ emptyMessage() }}</div>\n}\n\n<ng-template #level let-items let-depth=\"depth\">\n @for (item of items; track item.node.key; let i = $index) {\n <li\n class=\"hx-tree-node\"\n role=\"treeitem\"\n [attr.data-key]=\"item.node.key\"\n [attr.aria-level]=\"depth\"\n [attr.aria-setsize]=\"items.length\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-expanded]=\"item.leaf ? null : isOpen(item)\"\n [attr.aria-selected]=\"mode() === 'single' || mode() === 'multiple' ? isSelected(item.node.key) : null\"\n [attr.aria-checked]=\"mode() === 'checkbox' ? checkState(item.node.key) : null\"\n [attr.aria-disabled]=\"item.node.disabled ? 'true' : null\"\n [attr.tabindex]=\"item.node.key === tabKey() ? 0 : -1\"\n >\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the focusable treeitem around it handles the keys -->\n <div\n class=\"hx-tree-node-content\"\n [class.hx-tree-node-selected]=\"mode() !== 'checkbox' && isSelected(item.node.key)\"\n [class.hx-tree-node-disabled]=\"item.node.disabled\"\n (click)=\"onClick(item, $event)\"\n >\n <span class=\"hx-tree-node-toggle\" [class.hx-tree-node-toggle-leaf]=\"item.leaf\" aria-hidden=\"true\" (click)=\"onToggleClick(item, $event)\">\n @if (item.node.loading) {\n <span class=\"hx-tree-loading-icon\"></span>\n } @else if (!item.leaf) {\n <span class=\"hx-tree-toggle-icon\" [class.hx-tree-toggle-icon-open]=\"isOpen(item)\"></span>\n }\n </span>\n @if (mode() === 'checkbox') {\n <input\n hx-checkbox\n type=\"checkbox\"\n class=\"hx-tree-node-checkbox\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [checked]=\"checkState(item.node.key) === 'true'\"\n [indeterminate]=\"checkState(item.node.key) === 'mixed'\"\n [disabled]=\"!!item.node.disabled\"\n />\n }\n @if (template(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item.node, selected: isSelected(item.node.key), expanded: isOpen(item), level: depth }\"\n />\n } @else {\n @if (item.node.icon) {\n <span class=\"hx-tree-node-icon\" [class]=\"item.node.icon\" aria-hidden=\"true\"></span>\n }\n <span class=\"hx-tree-node-label\">{{ item.node.label }}</span>\n }\n </div>\n @if (!item.leaf && isOpen(item) && item.children.length) {\n <ul class=\"hx-tree-group\" role=\"group\">\n <ng-container [ngTemplateOutlet]=\"level\" [ngTemplateOutletContext]=\"{ $implicit: item.children, depth: depth + 1 }\" />\n </ul>\n }\n </li>\n }\n</ng-template>\n"
26378
24622
  }]
26379
24623
  }],
26380
24624
  ctorParameters: () => [],
@@ -26468,6 +24712,6 @@ i0.ɵɵngDeclareClassMetadata({
26468
24712
  }]
26469
24713
  }
26470
24714
  });
26471
- export { HX_DATE_RANGE_DAY_PRESETS, HX_DATE_RANGE_PRESETS, HX_DENSITIES, HX_DIALOG_DATA, HX_PRIMARY_COLORS, HX_QUICK_SELECT_COMMONLY_USED, HX_QUICK_SELECT_LABELS, HX_SURFACES, HX_SURFACE_NAMES, HX_THEME_OPTIONS, HX_THEME_PRESETS, HxAccordion, HxAccordionContent, HxAccordionHeader, HxAccordionPanel, HxAutoComplete, HxAvatar, HxAvatarGroup, HxBadge, HxBreadcrumb, HxButton, HxButtonGroup, HxCard, HxCarousel, HxCarouselItem, HxCell, HxCheckbox, HxChip, HxColumnHeader, HxConfirmDialog, HxConfirmPopup, HxConfirmationService, HxDataTable, HxDatePicker, HxDateRangeQuickSelect, HxDateTimePicker, HxDateTimeRangePicker, HxDialog, HxDialogRef, HxDialogService, HxDivider, HxDrawer, HxFieldset, HxFileUpload, HxFloatLabel, HxGalleria, HxGalleriaCaption, HxGalleriaItemTemplate, HxGalleriaThumbnail, HxIconField, HxImage, HxImageIndicator, HxInput, HxInputGroup, HxInputGroupAddon, HxInputIcon, HxInputNumber, HxListbox, HxMenu, HxMenubar, HxMessage, HxMessageService, HxMultiSelect, HxOverlayBadge, HxPaginator, HxPanel, HxPassword, HxPopover, HxProgressBar, HxProgressSpinner, HxRadio, HxRating, HxRowExpansion, HxSelect, HxSelectButton, HxSkeleton, HxSlider, HxSplitButton, HxStep, HxStepContent, HxStepList, HxStepPanel, HxStepPanels, HxStepper, HxSwitch, HxTab, HxTabBar, HxTabContent, HxTabList, HxTabPanel, HxTabPanels, HxTable, HxTableBody, HxTableCaption, HxTableEmpty, HxTableFooter, HxTableHeader, HxTabs, HxTag, HxTheme, HxTimePicker, HxTimeline, HxTimelineContent, HxTimelineMarker, HxTimelineOpposite, HxToast, HxToastItem, HxToggleButton, HxToolbar, HxTooltip, HxTree, HxTreeNodeTemplate, compareValues, formatFileSize, hxDateRangePresets, hxParseDateMath, hxRelativeRangeExpressions, hxResolveRangeExpression, hxResolveRangeSide, matchesAccept, provideHxTheme, resolveField };
24715
+ export { HX_DATE_RANGE_DAY_PRESETS, HX_DATE_RANGE_PRESETS, HX_DENSITIES, HX_DIALOG_DATA, HX_PRIMARY_COLORS, HX_QUICK_SELECT_COMMONLY_USED, HX_QUICK_SELECT_LABELS, HX_SURFACES, HX_SURFACE_NAMES, HX_THEME_OPTIONS, HX_THEME_PRESETS, HxAccordion, HxAccordionContent, HxAccordionHeader, HxAccordionPanel, HxAutoComplete, HxAvatar, HxAvatarGroup, HxBadge, HxBreadcrumb, HxButton, HxButtonGroup, HxCard, HxCarousel, HxCarouselItem, HxCell, HxCheckbox, HxChip, HxColumnHeader, HxConfirmDialog, HxConfirmPopup, HxConfirmationService, HxDataTable, HxDatePicker, HxDateRangeQuickSelect, HxDateTimePicker, HxDateTimeRangePicker, HxDialog, HxDialogRef, HxDialogService, HxDivider, HxDrawer, HxFieldset, HxFileUpload, HxFloatLabel, HxGalleria, HxGalleriaCaption, HxGalleriaItemTemplate, HxGalleriaThumbnail, HxIconField, HxImage, HxImageIndicator, HxInput, HxInputGroup, HxInputGroupAddon, HxInputIcon, HxInputNumber, HxKbd, HxListbox, HxMenu, HxMenubar, HxMessage, HxMessageService, HxMultiSelect, HxOverlayBadge, HxPaginator, HxPanel, HxPassword, HxPopover, HxProgressBar, HxProgressSpinner, HxRadio, HxRating, HxRowExpansion, HxSelect, HxSelectButton, HxSkeleton, HxSlider, HxSplitButton, HxStep, HxStepContent, HxStepList, HxStepPanel, HxStepPanels, HxStepper, HxSwitch, HxTab, HxTabBar, HxTabContent, HxTabList, HxTabPanel, HxTabPanels, HxTable, HxTableBody, HxTableCaption, HxTableEmpty, HxTableFooter, HxTableHeader, HxTabs, HxTag, HxTheme, HxTimePicker, HxTimeline, HxTimelineContent, HxTimelineMarker, HxTimelineOpposite, HxToast, HxToastItem, HxToggleButton, HxToolbar, HxTooltip, HxTree, HxTreeNodeTemplate, compareValues, formatFileSize, hxDateRangePresets, hxParseDateMath, hxRelativeRangeExpressions, hxResolveRangeExpression, hxResolveRangeSide, matchesAccept, provideHxTheme, resolveField };
26472
24716
 
26473
24717
  //# sourceMappingURL=gravionlabs-helix-ui.mjs.map