@tectra-ng/blocks 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/actions-menu/README.md +9 -1
  2. package/app-layout/README.md +3 -2
  3. package/command-palette/README.md +7 -0
  4. package/console-layout/README.md +24 -0
  5. package/cookie-notice/README.md +1 -1
  6. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +37 -15
  7. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-blocks-app-layout.mjs +19 -2
  9. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-blocks-command-palette.mjs +31 -8
  11. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-blocks-console-layout.mjs +89 -10
  13. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +2 -2
  15. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +101 -12
  17. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-blocks-kanban.mjs +102 -17
  19. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-blocks-page-header.mjs +2 -2
  21. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-blocks-public-header.mjs +17 -3
  23. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-blocks-wizard.mjs +145 -8
  25. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-blocks.mjs +1 -1
  27. package/filters-panel/README.md +20 -1
  28. package/kanban/README.md +19 -1
  29. package/package.json +6 -6
  30. package/page-header/README.md +1 -1
  31. package/public-header/README.md +6 -0
  32. package/switch-language/README.md +1 -1
  33. package/topbar-preferences/README.md +1 -1
  34. package/types/tectra-ng-blocks-actions-menu.d.ts +9 -0
  35. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
  36. package/types/tectra-ng-blocks-app-layout.d.ts +10 -3
  37. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
  38. package/types/tectra-ng-blocks-command-palette.d.ts +38 -5
  39. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
  40. package/types/tectra-ng-blocks-console-layout.d.ts +58 -9
  41. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
  42. package/types/tectra-ng-blocks-cookie-notice.d.ts +5 -5
  43. package/types/tectra-ng-blocks-filters-panel.d.ts +48 -4
  44. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
  45. package/types/tectra-ng-blocks-kanban.d.ts +47 -7
  46. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
  47. package/types/tectra-ng-blocks-public-header.d.ts +9 -2
  48. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
  49. package/types/tectra-ng-blocks-wizard.d.ts +34 -6
  50. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
  51. package/types/tectra-ng-blocks.d.ts +1 -1
  52. package/wizard/README.md +21 -3
@@ -14,12 +14,15 @@ function filterPaletteItems(items, query) {
14
14
  if (!term) return [...items];
15
15
  return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? "").toLowerCase().includes(term));
16
16
  }
17
- function menuPaletteItems(menu, group = "pages") {
17
+ function menuPaletteItems(menu, options = "pages") {
18
+ const { group = "pages", translate, icon: mapIcon, defaultIcon = "file" } = typeof options === "string" ? { group: options } : options;
19
+ const text = (key) => key && translate ? translate(key) : key ?? "";
20
+ const iconOf = (node) => paletteIcon(node, mapIcon) ?? defaultIcon;
18
21
  const items = /* @__PURE__ */ new Map();
19
22
  const walk = (nodes, parent) => {
20
23
  for (const node of nodes) {
21
24
  if (node.visible === false || node.disabled || node.separator) continue;
22
- const label = node.label ?? "";
25
+ const label = text(node.label);
23
26
  if (node.routerLink !== void 0) {
24
27
  const id = `page:${typeof node.routerLink === "string" ? node.routerLink : node.routerLink.join("/")}:${JSON.stringify(node.queryParams ?? {})}`;
25
28
  if (!items.has(id)) items.set(id, {
@@ -27,7 +30,7 @@ function menuPaletteItems(menu, group = "pages") {
27
30
  group,
28
31
  label,
29
32
  sublabel: parent || void 0,
30
- icon: node.icon ?? "file",
33
+ icon: iconOf(node),
31
34
  routerLink: node.routerLink,
32
35
  queryParams: node.queryParams
33
36
  });
@@ -35,10 +38,14 @@ function menuPaletteItems(menu, group = "pages") {
35
38
  if (node.items?.length) walk(node.items, label);
36
39
  }
37
40
  };
38
- for (const section of menu ?? []) if (section.items?.length) walk(section.items, section.label ?? "");
41
+ for (const section of menu ?? []) if (section.items?.length) walk(section.items, text(section.label));
39
42
  else walk([section], "");
40
43
  return [...items.values()];
41
44
  }
45
+ function paletteIcon(node, map) {
46
+ if (typeof map === "function") return map(node) ?? node.icon;
47
+ return node.icon && map?.[node.icon] || node.icon;
48
+ }
42
49
  var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
43
50
  transform(items, query) {
44
51
  return filterPaletteItems(items, query);
@@ -71,8 +78,8 @@ i0.ɵɵngDeclareClassMetadata({
71
78
  }]
72
79
  });
73
80
  var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
74
- transform(menu, group = "pages") {
75
- return menuPaletteItems(menu, group);
81
+ transform(menu, options = "pages") {
82
+ return menuPaletteItems(menu, options);
76
83
  }
77
84
  static ɵfac = i0.ɵɵngDeclareFactory({
78
85
  minVersion: "12.0.0",
@@ -132,6 +139,7 @@ var TxCommandPalette = class TxCommandPalette {
132
139
  });
133
140
  emptyText = input(void 0, ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
134
141
  loadingText = input(void 0, ...ngDevMode ? [{ debugName: "loadingText" }] : /* istanbul ignore next */ []);
142
+ hintTexts = input({}, ...ngDevMode ? [{ debugName: "hintTexts" }] : /* istanbul ignore next */ []);
135
143
  minQueryLength = input(2, {
136
144
  ...ngDevMode ? { debugName: "minQueryLength" } : /* istanbul ignore next */ {},
137
145
  transform: numberAttribute
@@ -372,6 +380,13 @@ var TxCommandPalette = class TxCommandPalette {
372
380
  isRequired: false,
373
381
  transformFunction: null
374
382
  },
383
+ hintTexts: {
384
+ classPropertyName: "hintTexts",
385
+ publicName: "hintTexts",
386
+ isSignal: true,
387
+ isRequired: false,
388
+ transformFunction: null
389
+ },
375
390
  minQueryLength: {
376
391
  classPropertyName: "minQueryLength",
377
392
  publicName: "minQueryLength",
@@ -461,7 +476,7 @@ var TxCommandPalette = class TxCommandPalette {
461
476
  isSignal: true
462
477
  }],
463
478
  ngImport: i0,
464
- template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
479
+ template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ hintTexts().navigate || translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ hintTexts().open || translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ hintTexts().close || translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
465
480
  styles: [":host{display:inline-flex}.tx-command-palette__trigger{position:relative;display:inline-flex;align-items:center;border:0;cursor:pointer;font:inherit}.tx-command-palette__overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center}.tx-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;width:100%;overflow:hidden}.tx-command-palette__search{display:flex;align-items:center}.tx-command-palette__input{flex:1;min-width:0;padding:0;border:0;outline:none;background:transparent;color:inherit;font:inherit}.tx-command-palette__results{flex:1;min-height:0;overflow-y:auto}.tx-command-palette__list{display:flex;flex-direction:column}.tx-command-palette__item{display:flex;align-items:center;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-command-palette__item-icon{display:grid;flex-shrink:0;place-items:center}.tx-command-palette__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__sublabel{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__arrow{opacity:0}.tx-command-palette__item--active .tx-command-palette__arrow{opacity:1}.tx-command-palette__status{display:flex;align-items:center;justify-content:center}.tx-command-palette__footer,.tx-command-palette__hint{display:flex;align-items:center}.tx-command-palette__spinner{animation:tx-command-palette-spin 1s linear infinite}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-command-palette__trigger{gap:var(--tx-command-palette-trigger-gap);height:var(--tx-command-palette-trigger-height);padding:var(--tx-command-palette-trigger-padding);border-radius:var(--tx-command-palette-trigger-border-radius);background:var(--tx-command-palette-trigger-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-shadow);color:var(--tx-command-palette-trigger-color);font-size:var(--tx-command-palette-trigger-font-size);transition:background-color var(--tx-command-palette-trigger-duration),color var(--tx-command-palette-trigger-duration),box-shadow var(--tx-command-palette-trigger-duration),scale var(--tx-command-palette-trigger-duration)}:host([data-styled]) .tx-command-palette__trigger:hover{background:var(--tx-command-palette-trigger-hover-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-hover-shadow);color:var(--tx-command-palette-trigger-hover-color)}:host([data-styled]) .tx-command-palette__trigger:active{scale:var(--tx-command-palette-trigger-active-scale)}:host([data-styled]) .tx-command-palette__trigger:focus-visible{outline:none;box-shadow:var(--tx-command-palette-trigger-focus-ring-shadow)}:host([data-styled]) .tx-command-palette__kbd{margin-inline-start:var(--tx-command-palette-trigger-kbd-margin-start);padding:var(--tx-command-palette-trigger-kbd-padding);border-radius:var(--tx-command-palette-trigger-kbd-border-radius);background:var(--tx-command-palette-trigger-kbd-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-kbd-ring-color);font-family:inherit;font-size:var(--tx-command-palette-trigger-kbd-font-size);font-weight:var(--tx-command-palette-trigger-kbd-font-weight);line-height:1}.tx-command-palette__overlay[data-styled]{z-index:var(--tx-command-palette-overlay-z-index);padding:var(--tx-command-palette-overlay-padding);background:var(--tx-command-palette-overlay-background);font-family:var(--tx-font-family);-webkit-backdrop-filter:blur(var(--tx-command-palette-overlay-blur));backdrop-filter:blur(var(--tx-command-palette-overlay-blur))}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter{animation:tx-command-palette-fade-in var(--tx-command-palette-overlay-enter-duration) ease-out}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave{animation:tx-command-palette-fade-out var(--tx-command-palette-overlay-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel{max-width:var(--tx-command-palette-panel-max-width);max-height:var(--tx-command-palette-panel-max-height);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-panel-border-radius);background:var(--tx-command-palette-panel-background);box-shadow:var(--tx-command-palette-panel-shadow);color:var(--tx-command-palette-panel-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter{animation:tx-command-palette-pop-in var(--tx-command-palette-panel-enter-duration) var(--tx-command-palette-panel-easing)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:tx-command-palette-pop-out var(--tx-command-palette-panel-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__search{gap:var(--tx-command-palette-search-gap);padding:var(--tx-command-palette-search-padding);border-bottom:1px solid var(--tx-command-palette-panel-border-color);font-size:var(--tx-command-palette-search-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__search-icon{color:var(--tx-command-palette-search-icon-color);font-size:var(--tx-command-palette-search-icon-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__input::placeholder{color:var(--tx-command-palette-search-placeholder-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__spinner{color:var(--tx-command-palette-search-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__results{padding:var(--tx-command-palette-results-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__group{padding:var(--tx-command-palette-results-group-padding);color:var(--tx-command-palette-results-group-color);font-size:var(--tx-command-palette-results-group-font-size);font-weight:var(--tx-command-palette-results-group-font-weight);letter-spacing:var(--tx-command-palette-results-group-letter-spacing);text-transform:var(--tx-command-palette-results-group-text-transform)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item{gap:var(--tx-command-palette-item-gap);padding:var(--tx-command-palette-item-padding);border-radius:var(--tx-command-palette-item-border-radius);color:var(--tx-command-palette-item-color);font-size:var(--tx-command-palette-item-font-size);transition:background-color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active{background:var(--tx-command-palette-item-active-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon{width:var(--tx-command-palette-item-icon-size);height:var(--tx-command-palette-item-icon-size);border-radius:var(--tx-command-palette-item-icon-border-radius);background:var(--tx-command-palette-item-icon-background);color:var(--tx-command-palette-item-icon-color);font-size:var(--tx-command-palette-item-icon-font-size);transition:background-color var(--tx-command-palette-item-duration),color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active .tx-command-palette__item-icon{background:var(--tx-command-palette-item-active-icon-background);color:var(--tx-command-palette-item-active-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__label{font-weight:var(--tx-command-palette-item-label-font-weight)}.tx-command-palette__overlay[data-styled] .tx-command-palette__sublabel{color:var(--tx-command-palette-item-sublabel-color);font-size:var(--tx-command-palette-item-sublabel-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{color:var(--tx-command-palette-item-arrow-color);font-size:var(--tx-command-palette-item-arrow-size);transition:opacity var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status{gap:var(--tx-command-palette-results-status-gap);padding:var(--tx-command-palette-results-status-padding);color:var(--tx-command-palette-results-status-color);font-size:var(--tx-command-palette-results-status-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status--empty{padding:var(--tx-command-palette-results-empty-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__footer{gap:var(--tx-command-palette-footer-gap);padding:var(--tx-command-palette-footer-padding);border-top:1px solid var(--tx-command-palette-panel-border-color);background:var(--tx-command-palette-footer-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint{gap:var(--tx-command-palette-footer-hint-gap);color:var(--tx-command-palette-footer-hint-color);font-size:var(--tx-command-palette-footer-hint-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tx-command-palette-footer-kbd-min-width);box-sizing:border-box;padding:var(--tx-command-palette-footer-kbd-padding);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-footer-kbd-border-radius);background:var(--tx-command-palette-footer-kbd-background);font-family:inherit;font-size:var(--tx-command-palette-footer-kbd-font-size);font-weight:var(--tx-font-weight-medium)}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}@media(width<=768px){:host([data-styled]) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}}@keyframes tx-command-palette-spin{to{rotate:360deg}}@keyframes tx-command-palette-fade-in{0%{opacity:0}}@keyframes tx-command-palette-fade-out{to{opacity:0}}@keyframes tx-command-palette-pop-in{0%{opacity:0;transform:translateY(-8px) scale(.98)}}@keyframes tx-command-palette-pop-out{to{opacity:0;transform:translateY(-8px) scale(.98)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-command-palette__trigger{transition:none}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter,.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:none}.tx-command-palette__overlay[data-styled] .tx-command-palette__item,.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon,.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{transition:none}}\n"],
466
481
  dependencies: [{
467
482
  kind: "directive",
@@ -502,7 +517,7 @@ i0.ɵɵngDeclareClassMetadata({
502
517
  "(document:keydown)": "onDocumentKeydown($event)"
503
518
  },
504
519
  viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],
505
- template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
520
+ template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ hintTexts().navigate || translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ hintTexts().open || translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ hintTexts().close || translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
506
521
  styles: [":host{display:inline-flex}.tx-command-palette__trigger{position:relative;display:inline-flex;align-items:center;border:0;cursor:pointer;font:inherit}.tx-command-palette__overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center}.tx-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;width:100%;overflow:hidden}.tx-command-palette__search{display:flex;align-items:center}.tx-command-palette__input{flex:1;min-width:0;padding:0;border:0;outline:none;background:transparent;color:inherit;font:inherit}.tx-command-palette__results{flex:1;min-height:0;overflow-y:auto}.tx-command-palette__list{display:flex;flex-direction:column}.tx-command-palette__item{display:flex;align-items:center;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-command-palette__item-icon{display:grid;flex-shrink:0;place-items:center}.tx-command-palette__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__sublabel{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__arrow{opacity:0}.tx-command-palette__item--active .tx-command-palette__arrow{opacity:1}.tx-command-palette__status{display:flex;align-items:center;justify-content:center}.tx-command-palette__footer,.tx-command-palette__hint{display:flex;align-items:center}.tx-command-palette__spinner{animation:tx-command-palette-spin 1s linear infinite}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-command-palette__trigger{gap:var(--tx-command-palette-trigger-gap);height:var(--tx-command-palette-trigger-height);padding:var(--tx-command-palette-trigger-padding);border-radius:var(--tx-command-palette-trigger-border-radius);background:var(--tx-command-palette-trigger-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-shadow);color:var(--tx-command-palette-trigger-color);font-size:var(--tx-command-palette-trigger-font-size);transition:background-color var(--tx-command-palette-trigger-duration),color var(--tx-command-palette-trigger-duration),box-shadow var(--tx-command-palette-trigger-duration),scale var(--tx-command-palette-trigger-duration)}:host([data-styled]) .tx-command-palette__trigger:hover{background:var(--tx-command-palette-trigger-hover-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-hover-shadow);color:var(--tx-command-palette-trigger-hover-color)}:host([data-styled]) .tx-command-palette__trigger:active{scale:var(--tx-command-palette-trigger-active-scale)}:host([data-styled]) .tx-command-palette__trigger:focus-visible{outline:none;box-shadow:var(--tx-command-palette-trigger-focus-ring-shadow)}:host([data-styled]) .tx-command-palette__kbd{margin-inline-start:var(--tx-command-palette-trigger-kbd-margin-start);padding:var(--tx-command-palette-trigger-kbd-padding);border-radius:var(--tx-command-palette-trigger-kbd-border-radius);background:var(--tx-command-palette-trigger-kbd-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-kbd-ring-color);font-family:inherit;font-size:var(--tx-command-palette-trigger-kbd-font-size);font-weight:var(--tx-command-palette-trigger-kbd-font-weight);line-height:1}.tx-command-palette__overlay[data-styled]{z-index:var(--tx-command-palette-overlay-z-index);padding:var(--tx-command-palette-overlay-padding);background:var(--tx-command-palette-overlay-background);font-family:var(--tx-font-family);-webkit-backdrop-filter:blur(var(--tx-command-palette-overlay-blur));backdrop-filter:blur(var(--tx-command-palette-overlay-blur))}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter{animation:tx-command-palette-fade-in var(--tx-command-palette-overlay-enter-duration) ease-out}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave{animation:tx-command-palette-fade-out var(--tx-command-palette-overlay-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel{max-width:var(--tx-command-palette-panel-max-width);max-height:var(--tx-command-palette-panel-max-height);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-panel-border-radius);background:var(--tx-command-palette-panel-background);box-shadow:var(--tx-command-palette-panel-shadow);color:var(--tx-command-palette-panel-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter{animation:tx-command-palette-pop-in var(--tx-command-palette-panel-enter-duration) var(--tx-command-palette-panel-easing)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:tx-command-palette-pop-out var(--tx-command-palette-panel-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__search{gap:var(--tx-command-palette-search-gap);padding:var(--tx-command-palette-search-padding);border-bottom:1px solid var(--tx-command-palette-panel-border-color);font-size:var(--tx-command-palette-search-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__search-icon{color:var(--tx-command-palette-search-icon-color);font-size:var(--tx-command-palette-search-icon-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__input::placeholder{color:var(--tx-command-palette-search-placeholder-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__spinner{color:var(--tx-command-palette-search-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__results{padding:var(--tx-command-palette-results-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__group{padding:var(--tx-command-palette-results-group-padding);color:var(--tx-command-palette-results-group-color);font-size:var(--tx-command-palette-results-group-font-size);font-weight:var(--tx-command-palette-results-group-font-weight);letter-spacing:var(--tx-command-palette-results-group-letter-spacing);text-transform:var(--tx-command-palette-results-group-text-transform)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item{gap:var(--tx-command-palette-item-gap);padding:var(--tx-command-palette-item-padding);border-radius:var(--tx-command-palette-item-border-radius);color:var(--tx-command-palette-item-color);font-size:var(--tx-command-palette-item-font-size);transition:background-color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active{background:var(--tx-command-palette-item-active-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon{width:var(--tx-command-palette-item-icon-size);height:var(--tx-command-palette-item-icon-size);border-radius:var(--tx-command-palette-item-icon-border-radius);background:var(--tx-command-palette-item-icon-background);color:var(--tx-command-palette-item-icon-color);font-size:var(--tx-command-palette-item-icon-font-size);transition:background-color var(--tx-command-palette-item-duration),color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active .tx-command-palette__item-icon{background:var(--tx-command-palette-item-active-icon-background);color:var(--tx-command-palette-item-active-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__label{font-weight:var(--tx-command-palette-item-label-font-weight)}.tx-command-palette__overlay[data-styled] .tx-command-palette__sublabel{color:var(--tx-command-palette-item-sublabel-color);font-size:var(--tx-command-palette-item-sublabel-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{color:var(--tx-command-palette-item-arrow-color);font-size:var(--tx-command-palette-item-arrow-size);transition:opacity var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status{gap:var(--tx-command-palette-results-status-gap);padding:var(--tx-command-palette-results-status-padding);color:var(--tx-command-palette-results-status-color);font-size:var(--tx-command-palette-results-status-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status--empty{padding:var(--tx-command-palette-results-empty-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__footer{gap:var(--tx-command-palette-footer-gap);padding:var(--tx-command-palette-footer-padding);border-top:1px solid var(--tx-command-palette-panel-border-color);background:var(--tx-command-palette-footer-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint{gap:var(--tx-command-palette-footer-hint-gap);color:var(--tx-command-palette-footer-hint-color);font-size:var(--tx-command-palette-footer-hint-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tx-command-palette-footer-kbd-min-width);box-sizing:border-box;padding:var(--tx-command-palette-footer-kbd-padding);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-footer-kbd-border-radius);background:var(--tx-command-palette-footer-kbd-background);font-family:inherit;font-size:var(--tx-command-palette-footer-kbd-font-size);font-weight:var(--tx-font-weight-medium)}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}@media(width<=768px){:host([data-styled]) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}}@keyframes tx-command-palette-spin{to{rotate:360deg}}@keyframes tx-command-palette-fade-in{0%{opacity:0}}@keyframes tx-command-palette-fade-out{to{opacity:0}}@keyframes tx-command-palette-pop-in{0%{opacity:0;transform:translateY(-8px) scale(.98)}}@keyframes tx-command-palette-pop-out{to{opacity:0;transform:translateY(-8px) scale(.98)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-command-palette__trigger{transition:none}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter,.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:none}.tx-command-palette__overlay[data-styled] .tx-command-palette__item,.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon,.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{transition:none}}\n"]
507
522
  }]
508
523
  }],
@@ -576,6 +591,14 @@ i0.ɵɵngDeclareClassMetadata({
576
591
  required: false
577
592
  }]
578
593
  }],
594
+ hintTexts: [{
595
+ type: i0.Input,
596
+ args: [{
597
+ isSignal: true,
598
+ alias: "hintTexts",
599
+ required: false
600
+ }]
601
+ }],
579
602
  minQueryLength: [{
580
603
  type: i0.Input,
581
604
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-command-palette.mjs","names":[],"sources":["../../../../packages/blocks/command-palette/src/command-palette.pipes.ts","../../../../packages/blocks/command-palette/src/command-palette.icons.ts","../../../../packages/blocks/command-palette/src/command-palette.theme.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts","../../../../packages/blocks/command-palette/src/command-palette.component.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { TxPanelMenuItem } from '@tectra-ng/ui/panel-menu';\nimport { TxCommandPaletteItem } from './command-palette.types';\n\n/**\n * Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an\n * empty query.\n */\nexport function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n const term = (query ?? '').trim().toLowerCase();\n if (!term) {\n return [...items];\n }\n return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? '').toLowerCase().includes(term));\n}\n\n/**\n * Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are\n * left out. The group is `pages` by default.\n */\nexport function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n const items = new Map<string, TxCommandPaletteItem>();\n const walk = (nodes: readonly TxPanelMenuItem[], parent: string) => {\n for (const node of nodes) {\n if (node.visible === false || node.disabled || node.separator) {\n continue;\n }\n const label = node.label ?? '';\n if (node.routerLink !== undefined) {\n const path = typeof node.routerLink === 'string' ? node.routerLink : node.routerLink.join('/');\n const id = `page:${path}:${JSON.stringify(node.queryParams ?? {})}`;\n if (!items.has(id)) {\n items.set(id, { id, group, label, sublabel: parent || undefined, icon: node.icon ?? 'file', routerLink: node.routerLink, queryParams: node.queryParams });\n }\n }\n if (node.items?.length) {\n walk(node.items, label);\n }\n }\n };\n for (const section of menu ?? []) {\n if (section.items?.length) {\n walk(section.items, section.label ?? '');\n } else {\n walk([section], '');\n }\n }\n return [...items.values()];\n}\n\n/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */\n@Pipe({ name: 'commandPaletteFilter' })\nexport class TxCommandPaletteFilterPipe implements PipeTransform {\n transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n return filterPaletteItems(items, query);\n }\n}\n\n/** `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`. */\n@Pipe({ name: 'menuPaletteItems' })\nexport class TxMenuPaletteItemsPipe implements PipeTransform {\n transform(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n return menuPaletteItems(menu, group);\n }\n}\n","import { TxIconSet, txIconArrowRight, txIconFile, txIconList, txIconSearch, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const COMMAND_PALETTE_ICON_DEFAULTS: TxIconSet = {\n 'arrow-right': txIconArrowRight,\n file: txIconFile,\n list: txIconList,\n search: txIconSearch,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { commandPaletteTokens } from '@tectra-ng/themes';\n\nexport const COMMAND_PALETTE_THEME = {\n commandPalette: commandPaletteTokens,\n};\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { TxFocusTrap, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCommandPaletteTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filterPaletteItems } from './command-palette.pipes';\nimport { TxCommandPaletteItem, TxCommandPalettePart } from './command-palette.types';\nimport { COMMAND_PALETTE_ICON_DEFAULTS } from './command-palette.icons';\nimport { COMMAND_PALETTE_THEME } from './command-palette.theme';\n\nconst MAC = /mac|iphone|ipad/i;\n\n@Component({\n selector: 'tx-command-palette',\n imports: [TxFocusTrap, TxIcon],\n templateUrl: './command-palette.component.html',\n styleUrl: './command-palette.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-command-palette',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-command-palette--compact]': 'compact()',\n '(document:keydown)': 'onDocumentKeydown($event)',\n },\n viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],\n})\nexport class TxCommandPalette {\n private readonly commandPaletteTheme = injectTokens(COMMAND_PALETTE_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly router = inject(Router, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly layer = viewChild.required<TemplateRef<unknown>>('layer');\n private overlayRef: OverlayRef | null = null;\n\n readonly label = input<string | undefined>(undefined);\n readonly placeholder = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('search');\n readonly items = input<readonly TxCommandPaletteItem[]>([]);\n readonly groupLabels = input<Record<string, string>>({});\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyText = input<string | undefined>(undefined);\n readonly loadingText = input<string | undefined>(undefined);\n readonly minQueryLength = input<number, unknown>(2, { transform: numberAttribute });\n readonly debounceTime = input<number, unknown>(300, { transform: numberAttribute });\n readonly shortcutKey = input<string>('k');\n readonly localFilter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCommandPaletteTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCommandPalettePart, TxCommandPalette> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly queryChange = output<string>();\n readonly searchChange = output<string>();\n readonly itemSelect = output<TxCommandPaletteItem>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('commandPalette', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-command-palette');\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-command-palette'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n readonly isOpen = signal(false);\n readonly query = signal('');\n readonly activeIndex = signal(0);\n private readonly mac = signal(false);\n\n protected readonly name = computed(() => this.label() ?? this.translations().search);\n protected readonly hint = computed(() => this.placeholder() ?? this.name());\n protected readonly shortcutLabel = computed(() => `${this.mac() ? '⌘' : 'Ctrl '}${this.shortcutKey().toUpperCase()}`);\n protected readonly shortcutAria = computed(() => `${this.mac() ? 'Meta' : 'Control'}+${this.shortcutKey().toUpperCase()}`);\n readonly visibleItems = computed(() => (this.localFilter() ? filterPaletteItems(this.items(), this.query()) : [...this.items()]));\n protected readonly activeId = computed(() => (this.visibleItems().length ? `${this.id}-option-${this.activeIndex()}` : null));\n\n private searchTimer: ReturnType<typeof setTimeout> | undefined;\n private lockedOverflow: string | null = null;\n\n constructor() {\n afterNextRender(() => {\n const navigator = this.document.defaultView?.navigator;\n this.mac.set(MAC.test(navigator?.platform ?? navigator?.userAgent ?? ''));\n });\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.searchTimer);\n this.unlockScroll();\n this.overlayRef?.dispose();\n });\n }\n\n open(): void {\n if (this.isOpen()) {\n return;\n }\n this.activeIndex.set(0);\n this.attachLayer();\n this.isOpen.set(true);\n this.lockScroll();\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n clearTimeout(this.searchTimer);\n this.isOpen.set(false);\n this.query.set('');\n this.activeIndex.set(0);\n this.unlockScroll();\n this.closed.emit();\n }\n\n select(item: TxCommandPaletteItem): void {\n this.itemSelect.emit(item);\n if (item.routerLink !== undefined && this.router) {\n const commands = typeof item.routerLink === 'string' ? [item.routerLink] : [...item.routerLink];\n void this.router.navigate(commands, { queryParams: item.queryParams });\n }\n item.command?.();\n this.close();\n }\n\n protected onDocumentKeydown(event: KeyboardEvent): void {\n if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === this.shortcutKey().toLowerCase()) {\n event.preventDefault();\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n return;\n }\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault();\n this.close();\n }\n }\n\n protected onPanelKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.move(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.move(-1);\n break;\n case 'Home':\n case 'End':\n if (this.visibleItems().length && event.target instanceof HTMLElement && event.target.getAttribute('role') !== 'combobox') {\n event.preventDefault();\n this.setActive(event.key === 'Home' ? 0 : this.visibleItems().length - 1);\n }\n break;\n case 'Enter': {\n const item = this.visibleItems()[this.activeIndex()];\n if (item) {\n event.preventDefault();\n this.select(item);\n }\n break;\n }\n }\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.query.set(value.trim());\n this.activeIndex.set(0);\n this.queryChange.emit(this.query());\n clearTimeout(this.searchTimer);\n this.searchTimer = setTimeout(() => {\n const term = value.trim();\n this.searchChange.emit(term.length >= this.minQueryLength() ? term : '');\n }, this.debounceTime());\n }\n\n protected setActive(index: number): void {\n this.activeIndex.set(index);\n afterNextRender(\n () => {\n const option = this.document.getElementById(`${this.id}-option-${index}`);\n option?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n protected isNewGroup(index: number): boolean {\n const items = this.visibleItems();\n return index === 0 || items[index].group !== items[index - 1].group;\n }\n\n protected groupLabel(group: string): string {\n return this.groupLabels()[group] ?? group;\n }\n\n private attachLayer(): void {\n if (!this.overlayRef) {\n this.overlayRef = this.overlay.create({ positionStrategy: this.overlay.position().global() });\n }\n if (!this.overlayRef.hasAttached()) {\n this.overlayRef.attach(new TemplatePortal(this.layer(), this.viewContainerRef));\n }\n }\n\n private move(delta: number): void {\n const total = this.visibleItems().length;\n if (total) {\n this.setActive((this.activeIndex() + delta + total) % total);\n }\n }\n\n private lockScroll(): void {\n const body = this.document.body;\n if (!body || this.lockedOverflow !== null || !this.host.nativeElement.isConnected) {\n return;\n }\n this.lockedOverflow = body.style.overflow;\n body.style.overflow = 'hidden';\n }\n\n private unlockScroll(): void {\n if (this.lockedOverflow === null) {\n return;\n }\n this.document.body.style.overflow = this.lockedOverflow;\n this.lockedOverflow = null;\n }\n}\n","<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,mBAAmD,OAAqB,OAAgC;CACtH,MAAM,QAAQ,SAAS,GAAA,CAAI,KAAI,CAAE,CAAC,YAAW;CAC7C,IAAI,CAAC,MACH,OAAO,CAAC,GAAG,KAAK;CAElB,OAAO,MAAM,QAAQ,SAAS,KAAK,MAAM,YAAW,CAAE,CAAC,SAAS,IAAI,MAAM,KAAK,YAAY,GAAA,CAAI,YAAW,CAAE,CAAC,SAAS,IAAI,CAAC;AAC7H;AAMA,SAAgB,iBAAiB,MAAqD,QAAQ,SAAO;CACnG,MAAM,wBAAQ,IAAI,IAAG;CACrB,MAAM,QAAQ,OAAmC,WAAkB;EACjE,KAAK,MAAM,QAAQ,OAAO;GACxB,IAAI,KAAK,YAAY,SAAS,KAAK,YA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GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-command-palette.mjs","names":[],"sources":["../../../../packages/blocks/command-palette/src/command-palette.pipes.ts","../../../../packages/blocks/command-palette/src/command-palette.icons.ts","../../../../packages/blocks/command-palette/src/command-palette.theme.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts","../../../../packages/blocks/command-palette/src/command-palette.component.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { TxPanelMenuItem } from '@tectra-ng/ui/panel-menu';\nimport { TxCommandPaletteItem, TxMenuPaletteIcon, TxMenuPaletteOptions } from './command-palette.types';\n\n/**\n * Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an\n * empty query.\n */\nexport function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n const term = (query ?? '').trim().toLowerCase();\n if (!term) {\n return [...items];\n }\n return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? '').toLowerCase().includes(term));\n}\n\n/**\n * Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are\n * left out. The second argument is the group (`pages` by default) or `TxMenuPaletteOptions` with a\n * translate function for the labels and an icon mapping.\n */\nexport function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, options: string | TxMenuPaletteOptions = 'pages'): TxCommandPaletteItem[] {\n const { group = 'pages', translate, icon: mapIcon, defaultIcon = 'file' } = typeof options === 'string' ? { group: options } : options;\n const text = (key: string | undefined) => (key && translate ? translate(key) : (key ?? ''));\n const iconOf = (node: TxPanelMenuItem) => paletteIcon(node, mapIcon) ?? defaultIcon;\n const items = new Map<string, TxCommandPaletteItem>();\n const walk = (nodes: readonly TxPanelMenuItem[], parent: string) => {\n for (const node of nodes) {\n if (node.visible === false || node.disabled || node.separator) {\n continue;\n }\n const label = text(node.label);\n if (node.routerLink !== undefined) {\n const path = typeof node.routerLink === 'string' ? node.routerLink : node.routerLink.join('/');\n const id = `page:${path}:${JSON.stringify(node.queryParams ?? {})}`;\n if (!items.has(id)) {\n items.set(id, { id, group, label, sublabel: parent || undefined, icon: iconOf(node), routerLink: node.routerLink, queryParams: node.queryParams });\n }\n }\n if (node.items?.length) {\n walk(node.items, label);\n }\n }\n };\n for (const section of menu ?? []) {\n if (section.items?.length) {\n walk(section.items, text(section.label));\n } else {\n walk([section], '');\n }\n }\n return [...items.values()];\n}\n\nfunction paletteIcon(node: TxPanelMenuItem, map: TxMenuPaletteIcon | undefined): string | undefined {\n if (typeof map === 'function') {\n return map(node) ?? node.icon;\n }\n return (node.icon && map?.[node.icon]) || node.icon;\n}\n\n/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */\n@Pipe({ name: 'commandPaletteFilter' })\nexport class TxCommandPaletteFilterPipe implements PipeTransform {\n transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n return filterPaletteItems(items, query);\n }\n}\n\n/**\n * `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`; pass a new options\n * object when the language changes.\n */\n@Pipe({ name: 'menuPaletteItems' })\nexport class TxMenuPaletteItemsPipe implements PipeTransform {\n transform(menu: readonly TxPanelMenuItem[] | null | undefined, options: string | TxMenuPaletteOptions = 'pages'): TxCommandPaletteItem[] {\n return menuPaletteItems(menu, options);\n }\n}\n","import { TxIconSet, txIconArrowRight, txIconFile, txIconList, txIconSearch, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const COMMAND_PALETTE_ICON_DEFAULTS: TxIconSet = {\n 'arrow-right': txIconArrowRight,\n file: txIconFile,\n list: txIconList,\n search: txIconSearch,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { commandPaletteTokens } from '@tectra-ng/themes';\n\nexport const COMMAND_PALETTE_THEME = {\n commandPalette: commandPaletteTokens,\n};\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { TxFocusTrap, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCommandPaletteTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filterPaletteItems } from './command-palette.pipes';\nimport { TxCommandPaletteHints, TxCommandPaletteItem, TxCommandPalettePart } from './command-palette.types';\nimport { COMMAND_PALETTE_ICON_DEFAULTS } from './command-palette.icons';\nimport { COMMAND_PALETTE_THEME } from './command-palette.theme';\n\nconst MAC = /mac|iphone|ipad/i;\n\n@Component({\n selector: 'tx-command-palette',\n imports: [TxFocusTrap, TxIcon],\n templateUrl: './command-palette.component.html',\n styleUrl: './command-palette.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-command-palette',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-command-palette--compact]': 'compact()',\n '(document:keydown)': 'onDocumentKeydown($event)',\n },\n viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],\n})\nexport class TxCommandPalette {\n private readonly commandPaletteTheme = injectTokens(COMMAND_PALETTE_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly router = inject(Router, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly layer = viewChild.required<TemplateRef<unknown>>('layer');\n private overlayRef: OverlayRef | null = null;\n\n readonly label = input<string | undefined>(undefined);\n readonly placeholder = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('search');\n readonly items = input<readonly TxCommandPaletteItem[]>([]);\n readonly groupLabels = input<Record<string, string>>({});\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyText = input<string | undefined>(undefined);\n readonly loadingText = input<string | undefined>(undefined);\n readonly hintTexts = input<TxCommandPaletteHints>({});\n readonly minQueryLength = input<number, unknown>(2, { transform: numberAttribute });\n readonly debounceTime = input<number, unknown>(300, { transform: numberAttribute });\n readonly shortcutKey = input<string>('k');\n readonly localFilter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCommandPaletteTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCommandPalettePart, TxCommandPalette> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly queryChange = output<string>();\n readonly searchChange = output<string>();\n readonly itemSelect = output<TxCommandPaletteItem>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('commandPalette', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-command-palette');\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-command-palette'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n readonly isOpen = signal(false);\n readonly query = signal('');\n readonly activeIndex = signal(0);\n private readonly mac = signal(false);\n\n protected readonly name = computed(() => this.label() ?? this.translations().search);\n protected readonly hint = computed(() => this.placeholder() ?? this.name());\n protected readonly shortcutLabel = computed(() => `${this.mac() ? '⌘' : 'Ctrl '}${this.shortcutKey().toUpperCase()}`);\n protected readonly shortcutAria = computed(() => `${this.mac() ? 'Meta' : 'Control'}+${this.shortcutKey().toUpperCase()}`);\n readonly visibleItems = computed(() => (this.localFilter() ? filterPaletteItems(this.items(), this.query()) : [...this.items()]));\n protected readonly activeId = computed(() => (this.visibleItems().length ? `${this.id}-option-${this.activeIndex()}` : null));\n\n private searchTimer: ReturnType<typeof setTimeout> | undefined;\n private lockedOverflow: string | null = null;\n\n constructor() {\n afterNextRender(() => {\n const navigator = this.document.defaultView?.navigator;\n this.mac.set(MAC.test(navigator?.platform ?? navigator?.userAgent ?? ''));\n });\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.searchTimer);\n this.unlockScroll();\n this.overlayRef?.dispose();\n });\n }\n\n open(): void {\n if (this.isOpen()) {\n return;\n }\n this.activeIndex.set(0);\n this.attachLayer();\n this.isOpen.set(true);\n this.lockScroll();\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n clearTimeout(this.searchTimer);\n this.isOpen.set(false);\n this.query.set('');\n this.activeIndex.set(0);\n this.unlockScroll();\n this.closed.emit();\n }\n\n select(item: TxCommandPaletteItem): void {\n this.itemSelect.emit(item);\n if (item.routerLink !== undefined && this.router) {\n const commands = typeof item.routerLink === 'string' ? [item.routerLink] : [...item.routerLink];\n void this.router.navigate(commands, { queryParams: item.queryParams });\n }\n item.command?.();\n this.close();\n }\n\n protected onDocumentKeydown(event: KeyboardEvent): void {\n if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === this.shortcutKey().toLowerCase()) {\n event.preventDefault();\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n return;\n }\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault();\n this.close();\n }\n }\n\n protected onPanelKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.move(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.move(-1);\n break;\n case 'Home':\n case 'End':\n if (this.visibleItems().length && event.target instanceof HTMLElement && event.target.getAttribute('role') !== 'combobox') {\n event.preventDefault();\n this.setActive(event.key === 'Home' ? 0 : this.visibleItems().length - 1);\n }\n break;\n case 'Enter': {\n const item = this.visibleItems()[this.activeIndex()];\n if (item) {\n event.preventDefault();\n this.select(item);\n }\n break;\n }\n }\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.query.set(value.trim());\n this.activeIndex.set(0);\n this.queryChange.emit(this.query());\n clearTimeout(this.searchTimer);\n this.searchTimer = setTimeout(() => {\n const term = value.trim();\n this.searchChange.emit(term.length >= this.minQueryLength() ? term : '');\n }, this.debounceTime());\n }\n\n protected setActive(index: number): void {\n this.activeIndex.set(index);\n afterNextRender(\n () => {\n const option = this.document.getElementById(`${this.id}-option-${index}`);\n option?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n protected isNewGroup(index: number): boolean {\n const items = this.visibleItems();\n return index === 0 || items[index].group !== items[index - 1].group;\n }\n\n protected groupLabel(group: string): string {\n return this.groupLabels()[group] ?? group;\n }\n\n private attachLayer(): void {\n if (!this.overlayRef) {\n this.overlayRef = this.overlay.create({ positionStrategy: this.overlay.position().global() });\n }\n if (!this.overlayRef.hasAttached()) {\n this.overlayRef.attach(new TemplatePortal(this.layer(), this.viewContainerRef));\n }\n }\n\n private move(delta: number): void {\n const total = this.visibleItems().length;\n if (total) {\n this.setActive((this.activeIndex() + delta + total) % total);\n }\n }\n\n private lockScroll(): void {\n const body = this.document.body;\n if (!body || this.lockedOverflow !== null || !this.host.nativeElement.isConnected) {\n return;\n }\n this.lockedOverflow = body.style.overflow;\n body.style.overflow = 'hidden';\n }\n\n private unlockScroll(): void {\n if (this.lockedOverflow === null) {\n return;\n }\n this.document.body.style.overflow = this.lockedOverflow;\n this.lockedOverflow = null;\n }\n}\n","<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ hintTexts().navigate || translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ hintTexts().open || translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ hintTexts().close || translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,mBAAmD,OAAqB,OAAgC;CACtH,MAAM,QAAQ,SAAS,GAAA,CAAI,KAAI,CAAE,CAAC,YAAW;CAC7C,IAAI,CAAC,MACH,OAAO,CAAC,GAAG,KAAK;CAElB,OAAO,MAAM,QAAQ,SAAS,KAAK,MAAM,YAAW,CAAE,CAAC,SAAS,IAAI,MAAM,KAAK,YAAY,GAAA,CAAI,YAAW,CAAE,CAAC,SAAS,IAAI,CAAC;AAC7H;AAOA,SAAgB,iBAAiB,MAAqD,UAAyC,SAAO;CACpI,MAAM,EAAE,QAAQ,SAAS,WAAW,MAAM,SAAS,cAAc,WAAW,OAAO,YAAY,WAAW,EAAE,OAAO,QAAO,IAAK;CAC/H,MAAM,QAAQ,QAA6B,OAAO,YAAY,UAAU,GAAG,IAAK,OAAO;CACvF,MAAM,UAAU,SAA0B,YAAY,MAAM,OAAO,KAAK;CACxE,MAAM,wBAAQ,IAAI,IAAG;CACrB,MAAM,QAAQ,OAAmC,WAAkB;EACjE,KAAK,MAAM,QAAQ,OAAO;GACxB,IAAI,KAAK,YAAY,SAAS,KAAK,YAAY,KAAK,WAClD;GAEF,MAAM,QAAQ,KAAK,KAAK,KAAK;GAC7B,IAAI,KAAK,eAAe,QAAW;IAEjC,MAAM,KAAK,QADE,OAAO,KAAK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