@trismegisto/angular 2.0.0 → 2.1.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.
package/README.md CHANGED
@@ -107,6 +107,10 @@ use o que o resto do app já usa.
107
107
  - **Sem zone.js:** a lib é toda OnPush + signals e funciona com `provideZonelessChangeDetection()`.
108
108
  - **Overlay próprio movido para o `<body>`** precisa de `copyThemeScope()` (`@trismegisto/primitives`) para não
109
109
  perder o tema.
110
+ - **Dado do servidor nunca vira marcação.** Texto do catálogo com HTML e parâmetro vai a `[innerHTML]` por
111
+ `formatMessageHtml` (escapa o parâmetro), nunca `formatMessage`; o `check-strings` da lib reprova o contrário.
112
+ `hm-session-recovery` só navega para `http(s)` e, com `allowedOrigins`, só para a mesma origem ou as listadas:
113
+ declare a lista quando `origin` vier da URL. Ação destrutiva por linha no `hm-data-grid` leva `confirm`.
110
114
 
111
115
  ## Skill para agentes de IA
112
116
 
@@ -250,11 +250,11 @@ class ComboboxMultiComponent extends HermesFormFieldBase {
250
250
  target?.nativeElement.focus();
251
251
  }
252
252
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ComboboxMultiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
253
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ComboboxMultiComponent, isStandalone: true, selector: "hm-combobox-multi", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, extraOptions: { classPropertyName: "extraOptions", publicName: "extraOptions", isSignal: true, isRequired: false, transformFunction: null }, unknownLabel: { classPropertyName: "unknownLabel", publicName: "unknownLabel", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "help", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, visibleChipsLimit: { classPropertyName: "visibleChipsLimit", publicName: "visibleChipsLimit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { classAttribute: "hm-combobox-multi" }, viewQueries: [{ propertyName: "fieldRef", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "searchRef", first: true, predicate: ["search"], descendants: true, isSignal: true }, { propertyName: "cardRef", first: true, predicate: ["card"], descendants: true, isSignal: true }, { propertyName: "listRef", first: true, predicate: ["listbox"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-combobox-multi__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox-multi__label-row\">\n <label class=\"hm-combobox-multi__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-combobox-multi__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox-multi__frame\"\n [class.hm-combobox-multi__frame--open]=\"expanded()\"\n [class.hm-combobox-multi__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox-multi__frame--disabled]=\"isDisabled()\"\n >\n @for (chip of shownChips(); track $index) {\n <hm-chip\n class=\"hm-combobox-multi__chip\"\n variant=\"filled\"\n size=\"small\"\n removable\n [label]=\"chip.label\"\n [removeLabel]=\"removeLabel(chip.label)\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"onChipMousedown($event)\"\n (removed)=\"remove(chip.value)\"\n />\n }\n @if (hiddenCount() > 0) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__overflow\"\n [attr.aria-label]=\"moreLabel()\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"openList(false)\"\n >{{ moreText() }}</button>\n }\n <input\n #field\n class=\"hm-combobox-multi__control\"\n type=\"text\"\n role=\"combobox\"\n readonly\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"chips().length ? null : placeholder() || null\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (chips().length && !isDisabled()) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clearAll()\"\n >\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox-multi__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n <span class=\"hm-visually-hidden\" role=\"status\" [id]=\"summaryId\">{{ summary() }}</span>\n @if (hintText()) {\n <p class=\"hm-combobox-multi__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox-multi__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n</div>\n\n@if (expanded()) {\n <div\n #card\n class=\"hm-combobox-multi__popover\"\n [class.hm-combobox-multi__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"hm-combobox-multi__search\">\n <input\n #search\n class=\"hm-combobox-multi__search-field\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"term()\"\n [attr.placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <hm-icon class=\"hm-combobox-multi__search-icon\" shape=\"search\" />\n </div>\n <ul #listbox class=\"hm-combobox-multi__list\" role=\"listbox\" aria-multiselectable=\"true\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option; let index = $index) {\n <li\n class=\"hm-combobox-multi__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox-multi__option--active]=\"index === activeIndex()\"\n [class.hm-combobox-multi__option--blocked]=\"isBlocked(option)\"\n [attr.aria-selected]=\"isChecked(option)\"\n [attr.aria-disabled]=\"isBlocked(option) ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggle(option)\"\n >\n <span class=\"hm-combobox-multi__mark\" [class.hm-combobox-multi__mark--checked]=\"isChecked(option)\" aria-hidden=\"true\">\n @if (isChecked(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox-multi__glyph\" [shape]=\"option.icon\" />\n }\n <span class=\"hm-combobox-multi__text\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"hm-combobox-multi__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox-multi__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n}\n", dependencies: [{ kind: "component", type: ChipComponent, selector: "hm-chip", inputs: ["label", "removable", "disabled", "icon", "variant", "size", "removeLabel", "selectable", "selected", "value"], outputs: ["selectedChange", "removed"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
253
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ComboboxMultiComponent, isStandalone: true, selector: "hm-combobox-multi", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, extraOptions: { classPropertyName: "extraOptions", publicName: "extraOptions", isSignal: true, isRequired: false, transformFunction: null }, unknownLabel: { classPropertyName: "unknownLabel", publicName: "unknownLabel", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "help", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, visibleChipsLimit: { classPropertyName: "visibleChipsLimit", publicName: "visibleChipsLimit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { classAttribute: "hm-combobox-multi" }, viewQueries: [{ propertyName: "fieldRef", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "searchRef", first: true, predicate: ["search"], descendants: true, isSignal: true }, { propertyName: "cardRef", first: true, predicate: ["card"], descendants: true, isSignal: true }, { propertyName: "listRef", first: true, predicate: ["listbox"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-combobox-multi__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox-multi__label-row\">\n <label class=\"hm-combobox-multi__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-combobox-multi__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox-multi__frame\"\n [class.hm-combobox-multi__frame--open]=\"expanded()\"\n [class.hm-combobox-multi__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox-multi__frame--disabled]=\"isDisabled()\"\n >\n @for (chip of shownChips(); track $index) {\n <hm-chip\n class=\"hm-combobox-multi__chip\"\n variant=\"filled\"\n size=\"small\"\n removable\n [label]=\"chip.label\"\n [removeLabel]=\"removeLabel(chip.label)\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"onChipMousedown($event)\"\n (removed)=\"remove(chip.value)\"\n />\n }\n @if (hiddenCount() > 0) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__overflow\"\n [attr.aria-label]=\"moreLabel()\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"openList(false)\"\n >{{ moreText() }}</button>\n }\n <input\n #field\n class=\"hm-combobox-multi__control\"\n type=\"text\"\n role=\"combobox\"\n readonly\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"chips().length ? null : placeholder() || null\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (chips().length && !isDisabled()) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clearAll()\"\n >\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox-multi__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n <span class=\"hm-visually-hidden\" role=\"status\" [id]=\"summaryId\">{{ summary() }}</span>\n @if (hintText()) {\n <p class=\"hm-combobox-multi__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox-multi__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n</div>\n\n@if (expanded()) {\n <div\n #card\n class=\"hm-combobox-multi__popover\"\n [class.hm-combobox-multi__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"hm-combobox-multi__search\">\n <input\n #search\n class=\"hm-combobox-multi__search-field\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"term()\"\n [attr.placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <hm-icon class=\"hm-combobox-multi__search-icon\" shape=\"search\" />\n </div>\n <ul #listbox class=\"hm-combobox-multi__list\" role=\"listbox\" aria-multiselectable=\"true\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option.value; let index = $index) {\n <li\n class=\"hm-combobox-multi__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox-multi__option--active]=\"index === activeIndex()\"\n [class.hm-combobox-multi__option--blocked]=\"isBlocked(option)\"\n [attr.aria-selected]=\"isChecked(option)\"\n [attr.aria-disabled]=\"isBlocked(option) ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggle(option)\"\n >\n <span class=\"hm-combobox-multi__mark\" [class.hm-combobox-multi__mark--checked]=\"isChecked(option)\" aria-hidden=\"true\">\n @if (isChecked(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox-multi__glyph\" [shape]=\"option.icon\" />\n }\n <span class=\"hm-combobox-multi__text\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"hm-combobox-multi__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox-multi__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n}\n", dependencies: [{ kind: "component", type: ChipComponent, selector: "hm-chip", inputs: ["label", "removable", "disabled", "icon", "variant", "size", "removeLabel", "selectable", "selected", "value"], outputs: ["selectedChange", "removed"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
254
254
  }
255
255
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ComboboxMultiComponent, decorators: [{
256
256
  type: Component,
257
- args: [{ selector: 'hm-combobox-multi', imports: [ChipComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-combobox-multi' }, template: "<div class=\"hm-combobox-multi__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox-multi__label-row\">\n <label class=\"hm-combobox-multi__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-combobox-multi__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox-multi__frame\"\n [class.hm-combobox-multi__frame--open]=\"expanded()\"\n [class.hm-combobox-multi__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox-multi__frame--disabled]=\"isDisabled()\"\n >\n @for (chip of shownChips(); track $index) {\n <hm-chip\n class=\"hm-combobox-multi__chip\"\n variant=\"filled\"\n size=\"small\"\n removable\n [label]=\"chip.label\"\n [removeLabel]=\"removeLabel(chip.label)\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"onChipMousedown($event)\"\n (removed)=\"remove(chip.value)\"\n />\n }\n @if (hiddenCount() > 0) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__overflow\"\n [attr.aria-label]=\"moreLabel()\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"openList(false)\"\n >{{ moreText() }}</button>\n }\n <input\n #field\n class=\"hm-combobox-multi__control\"\n type=\"text\"\n role=\"combobox\"\n readonly\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"chips().length ? null : placeholder() || null\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (chips().length && !isDisabled()) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clearAll()\"\n >\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox-multi__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n <span class=\"hm-visually-hidden\" role=\"status\" [id]=\"summaryId\">{{ summary() }}</span>\n @if (hintText()) {\n <p class=\"hm-combobox-multi__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox-multi__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n</div>\n\n@if (expanded()) {\n <div\n #card\n class=\"hm-combobox-multi__popover\"\n [class.hm-combobox-multi__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"hm-combobox-multi__search\">\n <input\n #search\n class=\"hm-combobox-multi__search-field\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"term()\"\n [attr.placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <hm-icon class=\"hm-combobox-multi__search-icon\" shape=\"search\" />\n </div>\n <ul #listbox class=\"hm-combobox-multi__list\" role=\"listbox\" aria-multiselectable=\"true\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option; let index = $index) {\n <li\n class=\"hm-combobox-multi__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox-multi__option--active]=\"index === activeIndex()\"\n [class.hm-combobox-multi__option--blocked]=\"isBlocked(option)\"\n [attr.aria-selected]=\"isChecked(option)\"\n [attr.aria-disabled]=\"isBlocked(option) ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggle(option)\"\n >\n <span class=\"hm-combobox-multi__mark\" [class.hm-combobox-multi__mark--checked]=\"isChecked(option)\" aria-hidden=\"true\">\n @if (isChecked(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox-multi__glyph\" [shape]=\"option.icon\" />\n }\n <span class=\"hm-combobox-multi__text\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"hm-combobox-multi__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox-multi__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n}\n" }]
257
+ args: [{ selector: 'hm-combobox-multi', imports: [ChipComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-combobox-multi' }, template: "<div class=\"hm-combobox-multi__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox-multi__label-row\">\n <label class=\"hm-combobox-multi__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-combobox-multi__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox-multi__frame\"\n [class.hm-combobox-multi__frame--open]=\"expanded()\"\n [class.hm-combobox-multi__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox-multi__frame--disabled]=\"isDisabled()\"\n >\n @for (chip of shownChips(); track $index) {\n <hm-chip\n class=\"hm-combobox-multi__chip\"\n variant=\"filled\"\n size=\"small\"\n removable\n [label]=\"chip.label\"\n [removeLabel]=\"removeLabel(chip.label)\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"onChipMousedown($event)\"\n (removed)=\"remove(chip.value)\"\n />\n }\n @if (hiddenCount() > 0) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__overflow\"\n [attr.aria-label]=\"moreLabel()\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"openList(false)\"\n >{{ moreText() }}</button>\n }\n <input\n #field\n class=\"hm-combobox-multi__control\"\n type=\"text\"\n role=\"combobox\"\n readonly\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"chips().length ? null : placeholder() || null\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (chips().length && !isDisabled()) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clearAll()\"\n >\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox-multi__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n <span class=\"hm-visually-hidden\" role=\"status\" [id]=\"summaryId\">{{ summary() }}</span>\n @if (hintText()) {\n <p class=\"hm-combobox-multi__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox-multi__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n</div>\n\n@if (expanded()) {\n <div\n #card\n class=\"hm-combobox-multi__popover\"\n [class.hm-combobox-multi__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"hm-combobox-multi__search\">\n <input\n #search\n class=\"hm-combobox-multi__search-field\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"term()\"\n [attr.placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <hm-icon class=\"hm-combobox-multi__search-icon\" shape=\"search\" />\n </div>\n <ul #listbox class=\"hm-combobox-multi__list\" role=\"listbox\" aria-multiselectable=\"true\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option.value; let index = $index) {\n <li\n class=\"hm-combobox-multi__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox-multi__option--active]=\"index === activeIndex()\"\n [class.hm-combobox-multi__option--blocked]=\"isBlocked(option)\"\n [attr.aria-selected]=\"isChecked(option)\"\n [attr.aria-disabled]=\"isBlocked(option) ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggle(option)\"\n >\n <span class=\"hm-combobox-multi__mark\" [class.hm-combobox-multi__mark--checked]=\"isChecked(option)\" aria-hidden=\"true\">\n @if (isChecked(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox-multi__glyph\" [shape]=\"option.icon\" />\n }\n <span class=\"hm-combobox-multi__text\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"hm-combobox-multi__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox-multi__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n}\n" }]
258
258
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], extraOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "extraOptions", required: false }] }], unknownLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "unknownLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], help: [{ type: i0.Input, args: [{ isSignal: true, alias: "help", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], visibleChipsLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleChipsLimit", required: false }] }], fieldRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }], searchRef: [{ type: i0.ViewChild, args: ['search', { isSignal: true }] }], cardRef: [{ type: i0.ViewChild, args: ['card', { isSignal: true }] }], listRef: [{ type: i0.ViewChild, args: ['listbox', { isSignal: true }] }] } });
259
259
 
260
260
  // Ponto de import `@trismegisto/angular/combobox-multi` (secundário do ng-packagr).
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-combobox-multi.mjs","sources":["../../src/combobox-multi/icons.generated.ts","../../src/combobox-multi/combobox-multi.component.ts","../../src/combobox-multi/combobox-multi.component.html","../../src/combobox-multi/index.ts","../../src/combobox-multi/trismegisto-angular-combobox-multi.ts"],"sourcesContent":["// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(COMBOBOX_MULTI_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_CHECK,\n ICON_EXCLAMATION_TRIANGLE,\n ICON_SEARCH,\n ICON_TIMES,\n} from '@trismegisto/angular/icon';\n\nexport const COMBOBOX_MULTI_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_CHECK, ICON_EXCLAMATION_TRIANGLE, ICON_SEARCH, ICON_TIMES];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterRenderEffect,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ComboboxOption,\n comboboxOptionId,\n filterComboboxOptions,\n formatMessage,\n isComboboxOptionBlocked,\n pluralMessage,\n resolveChips,\n toggleComboboxValue,\n visibleChips,\n} from '@trismegisto/primitives';\nimport { ChipComponent } from '@trismegisto/angular/chip';\nimport { ɵComboboxOverlay, ɵrevealOption } from '@trismegisto/angular/combobox';\nimport { warnDeprecated } from '@trismegisto/angular/deprecation';\nimport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { COMBOBOX_MULTI_ICONS } from './icons.generated';\n\nlet instances = 0;\n\n/**\n * Escolha de **vários** valores: fichas no campo (na ordem em que foram escolhidos) e, ao abrir, um\n * cartão com busca e a lista marcável (APG Combobox + Listbox multisseleção). Marcar não fecha a\n * lista; o foco fica na busca do cartão enquanto ela está aberta.\n *\n * - `visibleChipsLimit`: quantas fichas aparecem com a lista fechada (o resto vira \"+N\"); `null` = todas.\n * - `max`: limite de itens; ao alcançá-lo, só os já marcados continuam clicáveis.\n * - `extraOptions`/`unknownLabel`: nome das fichas de valores que não estão mais em `options`.\n */\n@Component({\n selector: 'hm-combobox-multi',\n imports: [ChipComponent, IconComponent],\n templateUrl: './combobox-multi.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-combobox-multi' },\n})\nexport class ComboboxMultiComponent extends HermesFormFieldBase<readonly string[]> {\n readonly #icons = useHermesIcons(COMBOBOX_MULTI_ICONS);\n\n readonly label = input.required<string>();\n readonly options = input.required<readonly ComboboxOption[]>();\n /** Itens marcados, preservando a sequência em que entraram. */\n readonly selected = model<readonly string[]>([]);\n /** Só dão nome a fichas de valores que saíram de `options`; não aparecem na lista. */\n readonly extraOptions = input<readonly ComboboxOption[]>([]);\n /** Nome da ficha de um valor que ninguém conhece; vazio = o próprio valor. */\n readonly unknownLabel = input('');\n /** Aparece só sem nenhuma ficha. */\n readonly placeholder = input('');\n readonly hint = input('');\n /** @deprecated desde 0.2.0 — use `hint`. */\n readonly help = input('');\n /** Quantidade máxima de itens marcados (`null` libera). */\n readonly max = input<number | null>(null);\n /** Fichas visíveis com a lista fechada; `null` = todas. */\n readonly visibleChipsLimit = input<number | null>(1);\n\n protected readonly valueModel = this.selected;\n private readonly catalog = inject(HERMES_MESSAGES);\n protected readonly text = this.catalog.combobox;\n\n protected readonly id = `hm-combobox-multi-${++instances}`;\n protected readonly listId = `${this.id}-listbox`;\n protected readonly hintId = `${this.id}-hint`;\n protected readonly errorId = `${this.id}-error`;\n protected readonly summaryId = `${this.id}-summary`;\n\n private readonly fieldRef = viewChild<ElementRef<HTMLInputElement>>('field');\n private readonly searchRef = viewChild<ElementRef<HTMLInputElement>>('search');\n private readonly cardRef = viewChild<ElementRef<HTMLElement>>('card');\n private readonly listRef = viewChild<ElementRef<HTMLElement>>('listbox');\n\n protected readonly expanded = signal(false);\n protected readonly term = signal('');\n protected readonly activeIndex = signal(-1);\n /** Levar o foco para a busca assim que o cartão existir. */\n private focusSearchPending = false;\n\n protected readonly overlay = new ɵComboboxOverlay({\n card: () => this.cardRef()?.nativeElement,\n anchor: () => this.fieldRef()?.nativeElement,\n focusTarget: () => (this.expanded() ? this.searchRef() : this.fieldRef())?.nativeElement,\n isOpen: () => this.expanded(),\n });\n\n private readonly values = computed<readonly string[]>(() => this.selected() ?? []);\n\n protected readonly chips = computed(() =>\n resolveChips(this.values(), this.options(), this.extraOptions(), this.unknownLabel()),\n );\n protected readonly shownChips = computed(() => visibleChips(this.chips(), this.visibleChipsLimit(), this.expanded()));\n protected readonly hiddenCount = computed(() => this.chips().length - this.shownChips().length);\n\n protected readonly shown = computed(() => filterComboboxOptions(this.options(), this.term()));\n\n protected readonly hintText = computed(() => this.hint() || this.help());\n protected readonly describedBy = computed(() =>\n [this.errorText() ? this.errorId : '', this.hintText() ? this.hintId : '', this.summaryId].filter(Boolean).join(' '),\n );\n protected readonly activeId = computed(() => {\n const index = this.activeIndex();\n return this.expanded() && index >= 0 && index < this.shown().length ? this.optionId(index) : null;\n });\n\n protected readonly summary = computed(() =>\n pluralMessage(this.text.selectedCount, this.values().length, this.catalog.meta.locale),\n );\n protected readonly moreText = computed(() => formatMessage(this.text.moreText, { count: this.hiddenCount() }));\n protected readonly moreLabel = computed(() =>\n pluralMessage(this.text.moreLabel, this.hiddenCount(), this.catalog.meta.locale),\n );\n protected readonly clearLabel = computed(() => formatMessage(this.text.clear, { label: this.label() }));\n protected readonly countText = computed(() =>\n formatMessage(this.text.resultCount, { shown: this.shown().length, total: this.options().length }),\n );\n\n constructor() {\n super();\n effect(() => {\n if (this.help()) warnDeprecated('`help` no <hm-combobox-multi>', '`hint`');\n });\n afterRenderEffect({\n write: () => {\n const search = this.searchRef()?.nativeElement;\n if (search && this.focusSearchPending) {\n this.focusSearchPending = false;\n search.focus();\n }\n const list = this.listRef()?.nativeElement;\n const index = this.activeIndex();\n if (!list || index < 0) return;\n ɵrevealOption(list, list.querySelectorAll<HTMLElement>('.hm-combobox-multi__option')[index]);\n },\n });\n }\n\n override writeValue(value: readonly string[] | null): void {\n super.writeValue(value ?? []);\n }\n\n protected optionId(index: number): string {\n return comboboxOptionId(this.listId, index);\n }\n\n protected isChecked(option: ComboboxOption): boolean {\n return this.values().includes(option.value);\n }\n\n protected isBlocked(option: ComboboxOption): boolean {\n return isComboboxOptionBlocked(option, this.values(), this.max());\n }\n\n protected removeLabel(label: string): string {\n return formatMessage(this.text.removeChip, { label });\n }\n\n protected onFieldClick(): void {\n this.openList(false);\n }\n\n protected onToggleClick(): void {\n if (this.expanded()) this.closeList();\n else this.openList(false);\n }\n\n /** Pressionar o ✕ de uma ficha não tira o foco de onde ele está (a lista não fecha). */\n protected onChipMousedown(event: MouseEvent): void {\n if ((event.target as Element | null)?.closest('.hm-chip__remove')) event.preventDefault();\n }\n\n protected onSearchInput(event: Event): void {\n const term = (event.target as HTMLInputElement).value;\n this.term.set(term);\n this.activeIndex.set(this.shown().length ? 0 : -1);\n }\n\n protected toggle(option: ComboboxOption): void {\n if (this.isBlocked(option)) return;\n this.commit(toggleComboboxValue(this.values(), option.value));\n this.term.set('');\n this.activeIndex.set(this.shown().indexOf(option));\n this.searchRef()?.nativeElement.focus();\n }\n\n protected remove(value: string): void {\n if (this.isDisabled()) return;\n this.commit(this.values().filter((item) => item !== value));\n this.markTouched();\n this.restoreFocus();\n }\n\n protected clearAll(): void {\n if (this.isDisabled()) return;\n this.commit([]);\n this.markTouched();\n this.restoreFocus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isDisabled()) return;\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowUp':\n case 'Home':\n case 'End':\n event.preventDefault();\n if (!this.expanded()) this.openList(true);\n else this.move(event.key);\n return;\n case 'Enter': {\n const option = this.expanded() ? this.shown()[this.activeIndex()] : undefined;\n if (!option) return;\n event.preventDefault();\n this.toggle(option);\n return;\n }\n case 'Backspace': {\n const values = this.values();\n if (this.term() || !values.length) return;\n event.preventDefault();\n this.remove(values[values.length - 1]);\n return;\n }\n case 'Escape':\n event.preventDefault();\n if (!this.expanded()) return;\n event.stopPropagation();\n this.closeList();\n return;\n case 'Tab':\n if (!this.expanded()) return;\n // A busca mora no fim do <body>: o Tab seguiria de lá. Partindo do campo, ele segue do componente.\n if (event.target === this.searchRef()?.nativeElement) this.fieldRef()?.nativeElement.focus();\n this.closeList();\n return;\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (!this.overlay.isLeaving(event)) return;\n if (this.expanded()) this.closeList(false);\n this.markTouched();\n }\n\n private move(key: string): void {\n const count = this.shown().length;\n if (!count) return;\n const index = this.activeIndex();\n let next: number;\n if (key === 'Home') next = 0;\n else if (key === 'End') next = count - 1;\n else if (key === 'ArrowDown') next = index < 0 ? 0 : (index + 1) % count;\n else next = index < 0 ? count - 1 : (index - 1 + count) % count;\n this.activeIndex.set(next);\n }\n\n protected openList(activateFirst: boolean): void {\n if (this.isDisabled() || this.expanded()) return;\n this.term.set('');\n this.activeIndex.set(activateFirst && this.options().length ? 0 : -1);\n this.overlay.track();\n this.focusSearchPending = true;\n this.expanded.set(true);\n }\n\n private closeList(keepFocus = true): void {\n // O foco não pode sumir junto com o cartão: volta para o campo antes de ele sair do <body>.\n const card = this.cardRef()?.nativeElement;\n if (keepFocus && card?.contains(card.ownerDocument.activeElement)) this.fieldRef()?.nativeElement.focus();\n this.expanded.set(false);\n this.term.set('');\n this.activeIndex.set(-1);\n this.focusSearchPending = false;\n this.overlay.reset();\n }\n\n private restoreFocus(): void {\n const target = this.expanded() ? this.searchRef() : this.fieldRef();\n target?.nativeElement.focus();\n }\n}\n","<div class=\"hm-combobox-multi__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox-multi__label-row\">\n <label class=\"hm-combobox-multi__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-combobox-multi__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox-multi__frame\"\n [class.hm-combobox-multi__frame--open]=\"expanded()\"\n [class.hm-combobox-multi__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox-multi__frame--disabled]=\"isDisabled()\"\n >\n @for (chip of shownChips(); track $index) {\n <hm-chip\n class=\"hm-combobox-multi__chip\"\n variant=\"filled\"\n size=\"small\"\n removable\n [label]=\"chip.label\"\n [removeLabel]=\"removeLabel(chip.label)\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"onChipMousedown($event)\"\n (removed)=\"remove(chip.value)\"\n />\n }\n @if (hiddenCount() > 0) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__overflow\"\n [attr.aria-label]=\"moreLabel()\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"openList(false)\"\n >{{ moreText() }}</button>\n }\n <input\n #field\n class=\"hm-combobox-multi__control\"\n type=\"text\"\n role=\"combobox\"\n readonly\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"chips().length ? null : placeholder() || null\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (chips().length && !isDisabled()) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clearAll()\"\n >\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox-multi__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n <span class=\"hm-visually-hidden\" role=\"status\" [id]=\"summaryId\">{{ summary() }}</span>\n @if (hintText()) {\n <p class=\"hm-combobox-multi__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox-multi__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n</div>\n\n@if (expanded()) {\n <div\n #card\n class=\"hm-combobox-multi__popover\"\n [class.hm-combobox-multi__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"hm-combobox-multi__search\">\n <input\n #search\n class=\"hm-combobox-multi__search-field\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"term()\"\n [attr.placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <hm-icon class=\"hm-combobox-multi__search-icon\" shape=\"search\" />\n </div>\n <ul #listbox class=\"hm-combobox-multi__list\" role=\"listbox\" aria-multiselectable=\"true\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option; let index = $index) {\n <li\n class=\"hm-combobox-multi__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox-multi__option--active]=\"index === activeIndex()\"\n [class.hm-combobox-multi__option--blocked]=\"isBlocked(option)\"\n [attr.aria-selected]=\"isChecked(option)\"\n [attr.aria-disabled]=\"isBlocked(option) ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggle(option)\"\n >\n <span class=\"hm-combobox-multi__mark\" [class.hm-combobox-multi__mark--checked]=\"isChecked(option)\" aria-hidden=\"true\">\n @if (isChecked(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox-multi__glyph\" [shape]=\"option.icon\" />\n }\n <span class=\"hm-combobox-multi__text\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"hm-combobox-multi__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox-multi__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n}\n","// Ponto de import `@trismegisto/angular/combobox-multi` (secundário do ng-packagr).\nexport * from './combobox-multi.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ɵComboboxOverlay","ɵrevealOption"],"mappings":";;;;;;;;;;AAYO,MAAM,oBAAoB,GAA8B,CAAC,UAAU,EAAE,UAAU,EAAE,yBAAyB,EAAE,WAAW,EAAE,UAAU,CAAC;;ACoB3I,IAAI,SAAS,GAAG,CAAC;AAEjB;;;;;;;;AAQG;AAQG,MAAO,sBAAuB,SAAQ,mBAAsC,CAAA;AACvE,IAAA,MAAM,GAAG,cAAc,CAAC,oBAAoB,CAAC;AAE7C,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAChC,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAA6B;;AAErD,IAAA,QAAQ,GAAG,KAAK,CAAoB,EAAE,+EAAC;;AAEvC,IAAA,YAAY,GAAG,KAAK,CAA4B,EAAE,mFAAC;;AAEnD,IAAA,YAAY,GAAG,KAAK,CAAC,EAAE,mFAAC;;AAExB,IAAA,WAAW,GAAG,KAAK,CAAC,EAAE,kFAAC;AACvB,IAAA,IAAI,GAAG,KAAK,CAAC,EAAE,2EAAC;;AAEhB,IAAA,IAAI,GAAG,KAAK,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ular-combobox-multi.mjs","sources":["../../src/combobox-multi/icons.generated.ts","../../src/combobox-multi/combobox-multi.component.ts","../../src/combobox-multi/combobox-multi.component.html","../../src/combobox-multi/index.ts","../../src/combobox-multi/trismegisto-angular-combobox-multi.ts"],"sourcesContent":["// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(COMBOBOX_MULTI_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_CHECK,\n ICON_EXCLAMATION_TRIANGLE,\n ICON_SEARCH,\n ICON_TIMES,\n} from '@trismegisto/angular/icon';\n\nexport const COMBOBOX_MULTI_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_CHECK, ICON_EXCLAMATION_TRIANGLE, ICON_SEARCH, ICON_TIMES];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterRenderEffect,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ComboboxOption,\n comboboxOptionId,\n filterComboboxOptions,\n formatMessage,\n isComboboxOptionBlocked,\n pluralMessage,\n resolveChips,\n toggleComboboxValue,\n visibleChips,\n} from '@trismegisto/primitives';\nimport { ChipComponent } from '@trismegisto/angular/chip';\nimport { ɵComboboxOverlay, ɵrevealOption } from '@trismegisto/angular/combobox';\nimport { warnDeprecated } from '@trismegisto/angular/deprecation';\nimport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { COMBOBOX_MULTI_ICONS } from './icons.generated';\n\nlet instances = 0;\n\n/**\n * Escolha de **vários** valores: fichas no campo (na ordem em que foram escolhidos) e, ao abrir, um\n * cartão com busca e a lista marcável (APG Combobox + Listbox multisseleção). Marcar não fecha a\n * lista; o foco fica na busca do cartão enquanto ela está aberta.\n *\n * - `visibleChipsLimit`: quantas fichas aparecem com a lista fechada (o resto vira \"+N\"); `null` = todas.\n * - `max`: limite de itens; ao alcançá-lo, só os já marcados continuam clicáveis.\n * - `extraOptions`/`unknownLabel`: nome das fichas de valores que não estão mais em `options`.\n */\n@Component({\n selector: 'hm-combobox-multi',\n imports: [ChipComponent, IconComponent],\n templateUrl: './combobox-multi.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-combobox-multi' },\n})\nexport class ComboboxMultiComponent extends HermesFormFieldBase<readonly string[]> {\n readonly #icons = useHermesIcons(COMBOBOX_MULTI_ICONS);\n\n readonly label = input.required<string>();\n readonly options = input.required<readonly ComboboxOption[]>();\n /** Itens marcados, preservando a sequência em que entraram. */\n readonly selected = model<readonly string[]>([]);\n /** Só dão nome a fichas de valores que saíram de `options`; não aparecem na lista. */\n readonly extraOptions = input<readonly ComboboxOption[]>([]);\n /** Nome da ficha de um valor que ninguém conhece; vazio = o próprio valor. */\n readonly unknownLabel = input('');\n /** Aparece só sem nenhuma ficha. */\n readonly placeholder = input('');\n readonly hint = input('');\n /** @deprecated desde 0.2.0 — use `hint`. */\n readonly help = input('');\n /** Quantidade máxima de itens marcados (`null` libera). */\n readonly max = input<number | null>(null);\n /** Fichas visíveis com a lista fechada; `null` = todas. */\n readonly visibleChipsLimit = input<number | null>(1);\n\n protected readonly valueModel = this.selected;\n private readonly catalog = inject(HERMES_MESSAGES);\n protected readonly text = this.catalog.combobox;\n\n protected readonly id = `hm-combobox-multi-${++instances}`;\n protected readonly listId = `${this.id}-listbox`;\n protected readonly hintId = `${this.id}-hint`;\n protected readonly errorId = `${this.id}-error`;\n protected readonly summaryId = `${this.id}-summary`;\n\n private readonly fieldRef = viewChild<ElementRef<HTMLInputElement>>('field');\n private readonly searchRef = viewChild<ElementRef<HTMLInputElement>>('search');\n private readonly cardRef = viewChild<ElementRef<HTMLElement>>('card');\n private readonly listRef = viewChild<ElementRef<HTMLElement>>('listbox');\n\n protected readonly expanded = signal(false);\n protected readonly term = signal('');\n protected readonly activeIndex = signal(-1);\n /** Levar o foco para a busca assim que o cartão existir. */\n private focusSearchPending = false;\n\n protected readonly overlay = new ɵComboboxOverlay({\n card: () => this.cardRef()?.nativeElement,\n anchor: () => this.fieldRef()?.nativeElement,\n focusTarget: () => (this.expanded() ? this.searchRef() : this.fieldRef())?.nativeElement,\n isOpen: () => this.expanded(),\n });\n\n private readonly values = computed<readonly string[]>(() => this.selected() ?? []);\n\n protected readonly chips = computed(() =>\n resolveChips(this.values(), this.options(), this.extraOptions(), this.unknownLabel()),\n );\n protected readonly shownChips = computed(() => visibleChips(this.chips(), this.visibleChipsLimit(), this.expanded()));\n protected readonly hiddenCount = computed(() => this.chips().length - this.shownChips().length);\n\n protected readonly shown = computed(() => filterComboboxOptions(this.options(), this.term()));\n\n protected readonly hintText = computed(() => this.hint() || this.help());\n protected readonly describedBy = computed(() =>\n [this.errorText() ? this.errorId : '', this.hintText() ? this.hintId : '', this.summaryId].filter(Boolean).join(' '),\n );\n protected readonly activeId = computed(() => {\n const index = this.activeIndex();\n return this.expanded() && index >= 0 && index < this.shown().length ? this.optionId(index) : null;\n });\n\n protected readonly summary = computed(() =>\n pluralMessage(this.text.selectedCount, this.values().length, this.catalog.meta.locale),\n );\n protected readonly moreText = computed(() => formatMessage(this.text.moreText, { count: this.hiddenCount() }));\n protected readonly moreLabel = computed(() =>\n pluralMessage(this.text.moreLabel, this.hiddenCount(), this.catalog.meta.locale),\n );\n protected readonly clearLabel = computed(() => formatMessage(this.text.clear, { label: this.label() }));\n protected readonly countText = computed(() =>\n formatMessage(this.text.resultCount, { shown: this.shown().length, total: this.options().length }),\n );\n\n constructor() {\n super();\n effect(() => {\n if (this.help()) warnDeprecated('`help` no <hm-combobox-multi>', '`hint`');\n });\n afterRenderEffect({\n write: () => {\n const search = this.searchRef()?.nativeElement;\n if (search && this.focusSearchPending) {\n this.focusSearchPending = false;\n search.focus();\n }\n const list = this.listRef()?.nativeElement;\n const index = this.activeIndex();\n if (!list || index < 0) return;\n ɵrevealOption(list, list.querySelectorAll<HTMLElement>('.hm-combobox-multi__option')[index]);\n },\n });\n }\n\n override writeValue(value: readonly string[] | null): void {\n super.writeValue(value ?? []);\n }\n\n protected optionId(index: number): string {\n return comboboxOptionId(this.listId, index);\n }\n\n protected isChecked(option: ComboboxOption): boolean {\n return this.values().includes(option.value);\n }\n\n protected isBlocked(option: ComboboxOption): boolean {\n return isComboboxOptionBlocked(option, this.values(), this.max());\n }\n\n protected removeLabel(label: string): string {\n return formatMessage(this.text.removeChip, { label });\n }\n\n protected onFieldClick(): void {\n this.openList(false);\n }\n\n protected onToggleClick(): void {\n if (this.expanded()) this.closeList();\n else this.openList(false);\n }\n\n /** Pressionar o ✕ de uma ficha não tira o foco de onde ele está (a lista não fecha). */\n protected onChipMousedown(event: MouseEvent): void {\n if ((event.target as Element | null)?.closest('.hm-chip__remove')) event.preventDefault();\n }\n\n protected onSearchInput(event: Event): void {\n const term = (event.target as HTMLInputElement).value;\n this.term.set(term);\n this.activeIndex.set(this.shown().length ? 0 : -1);\n }\n\n protected toggle(option: ComboboxOption): void {\n if (this.isBlocked(option)) return;\n this.commit(toggleComboboxValue(this.values(), option.value));\n this.term.set('');\n this.activeIndex.set(this.shown().indexOf(option));\n this.searchRef()?.nativeElement.focus();\n }\n\n protected remove(value: string): void {\n if (this.isDisabled()) return;\n this.commit(this.values().filter((item) => item !== value));\n this.markTouched();\n this.restoreFocus();\n }\n\n protected clearAll(): void {\n if (this.isDisabled()) return;\n this.commit([]);\n this.markTouched();\n this.restoreFocus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isDisabled()) return;\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowUp':\n case 'Home':\n case 'End':\n event.preventDefault();\n if (!this.expanded()) this.openList(true);\n else this.move(event.key);\n return;\n case 'Enter': {\n const option = this.expanded() ? this.shown()[this.activeIndex()] : undefined;\n if (!option) return;\n event.preventDefault();\n this.toggle(option);\n return;\n }\n case 'Backspace': {\n const values = this.values();\n if (this.term() || !values.length) return;\n event.preventDefault();\n this.remove(values[values.length - 1]);\n return;\n }\n case 'Escape':\n event.preventDefault();\n if (!this.expanded()) return;\n event.stopPropagation();\n this.closeList();\n return;\n case 'Tab':\n if (!this.expanded()) return;\n // A busca mora no fim do <body>: o Tab seguiria de lá. Partindo do campo, ele segue do componente.\n if (event.target === this.searchRef()?.nativeElement) this.fieldRef()?.nativeElement.focus();\n this.closeList();\n return;\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (!this.overlay.isLeaving(event)) return;\n if (this.expanded()) this.closeList(false);\n this.markTouched();\n }\n\n private move(key: string): void {\n const count = this.shown().length;\n if (!count) return;\n const index = this.activeIndex();\n let next: number;\n if (key === 'Home') next = 0;\n else if (key === 'End') next = count - 1;\n else if (key === 'ArrowDown') next = index < 0 ? 0 : (index + 1) % count;\n else next = index < 0 ? count - 1 : (index - 1 + count) % count;\n this.activeIndex.set(next);\n }\n\n protected openList(activateFirst: boolean): void {\n if (this.isDisabled() || this.expanded()) return;\n this.term.set('');\n this.activeIndex.set(activateFirst && this.options().length ? 0 : -1);\n this.overlay.track();\n this.focusSearchPending = true;\n this.expanded.set(true);\n }\n\n private closeList(keepFocus = true): void {\n // O foco não pode sumir junto com o cartão: volta para o campo antes de ele sair do <body>.\n const card = this.cardRef()?.nativeElement;\n if (keepFocus && card?.contains(card.ownerDocument.activeElement)) this.fieldRef()?.nativeElement.focus();\n this.expanded.set(false);\n this.term.set('');\n this.activeIndex.set(-1);\n this.focusSearchPending = false;\n this.overlay.reset();\n }\n\n private restoreFocus(): void {\n const target = this.expanded() ? this.searchRef() : this.fieldRef();\n target?.nativeElement.focus();\n }\n}\n","<div class=\"hm-combobox-multi__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox-multi__label-row\">\n <label class=\"hm-combobox-multi__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-combobox-multi__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox-multi__frame\"\n [class.hm-combobox-multi__frame--open]=\"expanded()\"\n [class.hm-combobox-multi__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox-multi__frame--disabled]=\"isDisabled()\"\n >\n @for (chip of shownChips(); track $index) {\n <hm-chip\n class=\"hm-combobox-multi__chip\"\n variant=\"filled\"\n size=\"small\"\n removable\n [label]=\"chip.label\"\n [removeLabel]=\"removeLabel(chip.label)\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"onChipMousedown($event)\"\n (removed)=\"remove(chip.value)\"\n />\n }\n @if (hiddenCount() > 0) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__overflow\"\n [attr.aria-label]=\"moreLabel()\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"openList(false)\"\n >{{ moreText() }}</button>\n }\n <input\n #field\n class=\"hm-combobox-multi__control\"\n type=\"text\"\n role=\"combobox\"\n readonly\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"chips().length ? null : placeholder() || null\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (chips().length && !isDisabled()) {\n <button\n type=\"button\"\n class=\"hm-combobox-multi__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clearAll()\"\n >\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox-multi__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n <span class=\"hm-visually-hidden\" role=\"status\" [id]=\"summaryId\">{{ summary() }}</span>\n @if (hintText()) {\n <p class=\"hm-combobox-multi__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox-multi__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n</div>\n\n@if (expanded()) {\n <div\n #card\n class=\"hm-combobox-multi__popover\"\n [class.hm-combobox-multi__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"hm-combobox-multi__search\">\n <input\n #search\n class=\"hm-combobox-multi__search-field\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"term()\"\n [attr.placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <hm-icon class=\"hm-combobox-multi__search-icon\" shape=\"search\" />\n </div>\n <ul #listbox class=\"hm-combobox-multi__list\" role=\"listbox\" aria-multiselectable=\"true\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option.value; let index = $index) {\n <li\n class=\"hm-combobox-multi__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox-multi__option--active]=\"index === activeIndex()\"\n [class.hm-combobox-multi__option--blocked]=\"isBlocked(option)\"\n [attr.aria-selected]=\"isChecked(option)\"\n [attr.aria-disabled]=\"isBlocked(option) ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggle(option)\"\n >\n <span class=\"hm-combobox-multi__mark\" [class.hm-combobox-multi__mark--checked]=\"isChecked(option)\" aria-hidden=\"true\">\n @if (isChecked(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox-multi__glyph\" [shape]=\"option.icon\" />\n }\n <span class=\"hm-combobox-multi__text\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"hm-combobox-multi__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox-multi__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n}\n","// Ponto de import `@trismegisto/angular/combobox-multi` (secundário do ng-packagr).\nexport * from './combobox-multi.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ɵComboboxOverlay","ɵrevealOption"],"mappings":";;;;;;;;;;AAYO,MAAM,oBAAoB,GAA8B,CAAC,UAAU,EAAE,UAAU,EAAE,yBAAyB,EAAE,WAAW,EAAE,UAAU,CAAC;;ACoB3I,IAAI,SAAS,GAAG,CAAC;AAEjB;;;;;;;;AAQG;AAQG,MAAO,sBAAuB,SAAQ,mBAAsC,CAAA;AACvE,IAAA,MAAM,GAAG,cAAc,CAAC,oBAAoB,CAAC;AAE7C,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAChC,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAA6B;;AAErD,IAAA,QAAQ,GAAG,KAAK,CAAoB,EAAE,+EAAC;;AAEvC,IAAA,YAAY,GAAG,KAAK,CAA4B,EAAE,mFAAC;;AAEnD,IAAA,YAAY,GAAG,KAAK,CAAC,EAAE,mFA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,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpFzE;;ACAA;;AAEG;;"}
@@ -408,11 +408,11 @@ class ComboboxComponent extends HermesFormFieldBase {
408
408
  this.overlay.reset();
409
409
  }
410
410
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
411
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ComboboxComponent, isStandalone: true, selector: "hm-combobox", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "help", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, requiredManual: { classPropertyName: "requiredManual", publicName: "requiredManual", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, allowCustomValue: { classPropertyName: "allowCustomValue", publicName: "allowCustomValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-combobox" }, viewQueries: [{ propertyName: "fieldRef", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "cardRef", first: true, predicate: ["card"], descendants: true, isSignal: true }, { propertyName: "listRef", first: true, predicate: ["listbox"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (loading()) {\n <div\n class=\"hm-combobox__skeleton\"\n [class.hm-combobox__skeleton--small]=\"size() === 'small'\"\n [class.hm-combobox__skeleton--large]=\"size() === 'large'\"\n role=\"status\"\n aria-busy=\"true\"\n [attr.aria-label]=\"loadingLabel()\"\n >\n @if (!labelHidden()) {\n <span class=\"hm-combobox__skeleton-label\" aria-hidden=\"true\"></span>\n }\n <span class=\"hm-combobox__skeleton-frame\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div class=\"hm-combobox__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-combobox__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (showRequired()) {\n <span class=\"hm-combobox__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox__frame\"\n [class.hm-combobox__frame--small]=\"size() === 'small'\"\n [class.hm-combobox__frame--large]=\"size() === 'large'\"\n [class.hm-combobox__frame--open]=\"listVisible()\"\n [class.hm-combobox__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox__frame--disabled]=\"isDisabled()\"\n >\n @if (icon()) {\n <hm-icon class=\"hm-combobox__icon\" [shape]=\"icon()\" />\n }\n <input\n #field\n class=\"hm-combobox__control\"\n type=\"text\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"displayText()\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-expanded]=\"listVisible()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"showRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (canClear()) {\n <button type=\"button\" class=\"hm-combobox__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clearValue()\">\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n @if (hintText()) {\n <p class=\"hm-combobox__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n </div>\n\n @if (listVisible()) {\n <div\n #card\n class=\"hm-combobox__popover\"\n [class.hm-combobox__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <ul #listbox class=\"hm-combobox__list\" role=\"listbox\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option; let index = $index) {\n <li\n class=\"hm-combobox__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox__option--active]=\"index === activeIndex()\"\n [class.hm-combobox__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isChosen(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(option)\"\n >\n <span class=\"hm-combobox__check\" aria-hidden=\"true\">\n @if (isChosen(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox__glyph\" [shape]=\"option.icon\" />\n }\n @if (option.swatchBackground && option.swatchBorder) {\n <span class=\"hm-combobox__swatch\" [style.background-color]=\"option.swatchBackground\" [style.border-color]=\"option.swatchBorder\">{{ option.label }}</span>\n } @else {\n <span class=\"hm-combobox__text\">{{ option.label }}</span>\n }\n </li>\n } @empty {\n <li class=\"hm-combobox__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n }\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
411
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ComboboxComponent, isStandalone: true, selector: "hm-combobox", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "help", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, requiredManual: { classPropertyName: "requiredManual", publicName: "requiredManual", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, allowCustomValue: { classPropertyName: "allowCustomValue", publicName: "allowCustomValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-combobox" }, viewQueries: [{ propertyName: "fieldRef", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "cardRef", first: true, predicate: ["card"], descendants: true, isSignal: true }, { propertyName: "listRef", first: true, predicate: ["listbox"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (loading()) {\n <div\n class=\"hm-combobox__skeleton\"\n [class.hm-combobox__skeleton--small]=\"size() === 'small'\"\n [class.hm-combobox__skeleton--large]=\"size() === 'large'\"\n role=\"status\"\n aria-busy=\"true\"\n [attr.aria-label]=\"loadingLabel()\"\n >\n @if (!labelHidden()) {\n <span class=\"hm-combobox__skeleton-label\" aria-hidden=\"true\"></span>\n }\n <span class=\"hm-combobox__skeleton-frame\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div class=\"hm-combobox__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-combobox__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (showRequired()) {\n <span class=\"hm-combobox__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox__frame\"\n [class.hm-combobox__frame--small]=\"size() === 'small'\"\n [class.hm-combobox__frame--large]=\"size() === 'large'\"\n [class.hm-combobox__frame--open]=\"listVisible()\"\n [class.hm-combobox__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox__frame--disabled]=\"isDisabled()\"\n >\n @if (icon()) {\n <hm-icon class=\"hm-combobox__icon\" [shape]=\"icon()\" />\n }\n <input\n #field\n class=\"hm-combobox__control\"\n type=\"text\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"displayText()\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-expanded]=\"listVisible()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"showRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (canClear()) {\n <button type=\"button\" class=\"hm-combobox__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clearValue()\">\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n @if (hintText()) {\n <p class=\"hm-combobox__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n </div>\n\n @if (listVisible()) {\n <div\n #card\n class=\"hm-combobox__popover\"\n [class.hm-combobox__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <ul #listbox class=\"hm-combobox__list\" role=\"listbox\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option.value; let index = $index) {\n <li\n class=\"hm-combobox__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox__option--active]=\"index === activeIndex()\"\n [class.hm-combobox__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isChosen(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(option)\"\n >\n <span class=\"hm-combobox__check\" aria-hidden=\"true\">\n @if (isChosen(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox__glyph\" [shape]=\"option.icon\" />\n }\n @if (option.swatchBackground && option.swatchBorder) {\n <span class=\"hm-combobox__swatch\" [style.background-color]=\"option.swatchBackground\" [style.border-color]=\"option.swatchBorder\">{{ option.label }}</span>\n } @else {\n <span class=\"hm-combobox__text\">{{ option.label }}</span>\n }\n </li>\n } @empty {\n <li class=\"hm-combobox__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n }\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
412
412
  }
413
413
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ComboboxComponent, decorators: [{
414
414
  type: Component,
415
- args: [{ selector: 'hm-combobox', imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-combobox' }, template: "@if (loading()) {\n <div\n class=\"hm-combobox__skeleton\"\n [class.hm-combobox__skeleton--small]=\"size() === 'small'\"\n [class.hm-combobox__skeleton--large]=\"size() === 'large'\"\n role=\"status\"\n aria-busy=\"true\"\n [attr.aria-label]=\"loadingLabel()\"\n >\n @if (!labelHidden()) {\n <span class=\"hm-combobox__skeleton-label\" aria-hidden=\"true\"></span>\n }\n <span class=\"hm-combobox__skeleton-frame\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div class=\"hm-combobox__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-combobox__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (showRequired()) {\n <span class=\"hm-combobox__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox__frame\"\n [class.hm-combobox__frame--small]=\"size() === 'small'\"\n [class.hm-combobox__frame--large]=\"size() === 'large'\"\n [class.hm-combobox__frame--open]=\"listVisible()\"\n [class.hm-combobox__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox__frame--disabled]=\"isDisabled()\"\n >\n @if (icon()) {\n <hm-icon class=\"hm-combobox__icon\" [shape]=\"icon()\" />\n }\n <input\n #field\n class=\"hm-combobox__control\"\n type=\"text\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"displayText()\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-expanded]=\"listVisible()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"showRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (canClear()) {\n <button type=\"button\" class=\"hm-combobox__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clearValue()\">\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n @if (hintText()) {\n <p class=\"hm-combobox__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n </div>\n\n @if (listVisible()) {\n <div\n #card\n class=\"hm-combobox__popover\"\n [class.hm-combobox__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <ul #listbox class=\"hm-combobox__list\" role=\"listbox\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option; let index = $index) {\n <li\n class=\"hm-combobox__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox__option--active]=\"index === activeIndex()\"\n [class.hm-combobox__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isChosen(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(option)\"\n >\n <span class=\"hm-combobox__check\" aria-hidden=\"true\">\n @if (isChosen(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox__glyph\" [shape]=\"option.icon\" />\n }\n @if (option.swatchBackground && option.swatchBorder) {\n <span class=\"hm-combobox__swatch\" [style.background-color]=\"option.swatchBackground\" [style.border-color]=\"option.swatchBorder\">{{ option.label }}</span>\n } @else {\n <span class=\"hm-combobox__text\">{{ option.label }}</span>\n }\n </li>\n } @empty {\n <li class=\"hm-combobox__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n }\n}\n" }]
415
+ args: [{ selector: 'hm-combobox', imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-combobox' }, template: "@if (loading()) {\n <div\n class=\"hm-combobox__skeleton\"\n [class.hm-combobox__skeleton--small]=\"size() === 'small'\"\n [class.hm-combobox__skeleton--large]=\"size() === 'large'\"\n role=\"status\"\n aria-busy=\"true\"\n [attr.aria-label]=\"loadingLabel()\"\n >\n @if (!labelHidden()) {\n <span class=\"hm-combobox__skeleton-label\" aria-hidden=\"true\"></span>\n }\n <span class=\"hm-combobox__skeleton-frame\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div class=\"hm-combobox__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-combobox__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (showRequired()) {\n <span class=\"hm-combobox__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox__frame\"\n [class.hm-combobox__frame--small]=\"size() === 'small'\"\n [class.hm-combobox__frame--large]=\"size() === 'large'\"\n [class.hm-combobox__frame--open]=\"listVisible()\"\n [class.hm-combobox__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox__frame--disabled]=\"isDisabled()\"\n >\n @if (icon()) {\n <hm-icon class=\"hm-combobox__icon\" [shape]=\"icon()\" />\n }\n <input\n #field\n class=\"hm-combobox__control\"\n type=\"text\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"displayText()\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-expanded]=\"listVisible()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"showRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (canClear()) {\n <button type=\"button\" class=\"hm-combobox__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clearValue()\">\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n @if (hintText()) {\n <p class=\"hm-combobox__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n </div>\n\n @if (listVisible()) {\n <div\n #card\n class=\"hm-combobox__popover\"\n [class.hm-combobox__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <ul #listbox class=\"hm-combobox__list\" role=\"listbox\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option.value; let index = $index) {\n <li\n class=\"hm-combobox__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox__option--active]=\"index === activeIndex()\"\n [class.hm-combobox__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isChosen(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(option)\"\n >\n <span class=\"hm-combobox__check\" aria-hidden=\"true\">\n @if (isChosen(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox__glyph\" [shape]=\"option.icon\" />\n }\n @if (option.swatchBackground && option.swatchBorder) {\n <span class=\"hm-combobox__swatch\" [style.background-color]=\"option.swatchBackground\" [style.border-color]=\"option.swatchBorder\">{{ option.label }}</span>\n } @else {\n <span class=\"hm-combobox__text\">{{ option.label }}</span>\n }\n </li>\n } @empty {\n <li class=\"hm-combobox__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n }\n}\n" }]
416
416
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], help: [{ type: i0.Input, args: [{ isSignal: true, alias: "help", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], labelHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelHidden", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], requiredManual: [{ type: i0.Input, args: [{ isSignal: true, alias: "requiredManual", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], allowCustomValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCustomValue", required: false }] }], fieldRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }], cardRef: [{ type: i0.ViewChild, args: ['card', { isSignal: true }] }], listRef: [{ type: i0.ViewChild, args: ['listbox', { isSignal: true }] }] } });
417
417
 
418
418
  // Ponto de import `@trismegisto/angular/combobox` (secundário do ng-packagr).
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-combobox.mjs","sources":["../../src/combobox/combobox-overlay.ts","../../src/combobox/icons.generated.ts","../../src/combobox/combobox.component.ts","../../src/combobox/combobox.component.html","../../src/combobox/index.ts","../../src/combobox/trismegisto-angular-combobox.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { DOCUMENT, DestroyRef, ElementRef, PLATFORM_ID, afterEveryRender, computed, inject, signal } from '@angular/core';\nimport {\n PopoverAnchor,\n PopoverPlacement,\n Size,\n copyThemeScope,\n isSameAnchor,\n placeDirect,\n placeWithin,\n} from '@trismegisto/primitives';\n\n/** Onde o cartão de uma lista de combobox se pendura e para onde o foco volta. */\nexport interface ComboboxOverlayParts {\n /** Raiz do cartão — só existe enquanto a lista está aberta. */\n readonly card: () => HTMLElement | undefined;\n /** Campo cujo retângulo ancora o cartão. */\n readonly anchor: () => HTMLElement | undefined;\n /** Quem deve ficar com o foco quando um toque do ponteiro dentro do componente o derruba. */\n readonly focusTarget: () => HTMLElement | undefined;\n /** A lista está aberta agora? */\n readonly isOpen: () => boolean;\n}\n\ninterface Measurement {\n readonly anchor: PopoverAnchor;\n readonly placement: PopoverPlacement;\n}\n\nconst sameAnchor = (a: PopoverAnchor | null, b: PopoverAnchor | null): boolean =>\n a === b || (!!a && !!b && isSameAnchor(a, b));\n\nconst samePlacement = (a: Measurement | null, b: Measurement | null): boolean =>\n a === b ||\n (!!a &&\n !!b &&\n isSameAnchor(a.anchor, b.anchor) &&\n a.placement.left === b.placement.left &&\n a.placement.right === b.placement.right &&\n a.placement.top === b.placement.top &&\n a.placement.bottom === b.placement.bottom &&\n a.placement.align === b.placement.align);\n\n/**\n * @internal Peça compartilhada por `hm-combobox` e `hm-combobox-multi` — não é API para apps.\n *\n * Cuida do cartão flutuante: leva-o para o `<body>` (fora de qualquer `overflow`/`transform` que o\n * cortaria) com o escopo de tema do componente, calcula a posição a cada renderização, decide se uma\n * perda de foco é \"saída\" do componente e garante que nenhum cartão fique órfão no `<body>`.\n * Precisa ser criada num contexto de injeção (campo do componente).\n */\nexport class ɵComboboxOverlay {\n readonly #parts: ComboboxOverlayParts;\n readonly #host: HTMLElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly #document = inject(DOCUMENT);\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n readonly #anchor = signal<PopoverAnchor | null>(null, { equal: sameAnchor });\n readonly #measured = signal<Measurement | null>(null, { equal: samePlacement });\n #portaled: HTMLElement | null = null;\n #pressed = false;\n #listening = false;\n\n /** Posição do cartão (`position: fixed`); `null` antes de haver âncora (e sempre no servidor). */\n readonly placement = computed<PopoverPlacement | null>(() => {\n const anchor = this.#anchor();\n if (!anchor) return null;\n const measured = this.#measured();\n return measured && isSameAnchor(measured.anchor, anchor) ? measured.placement : placeDirect(anchor, this.#viewport());\n });\n\n /** Largura do campo, para o cartão nunca ficar mais estreito que ele (`null` sem âncora). */\n readonly anchorWidth = computed(() => {\n const anchor = this.#anchor();\n return anchor?.right !== undefined ? `${Math.round(anchor.right - anchor.x)}px` : null;\n });\n\n readonly #release = (): void => {\n this.#pressed = false;\n this.#stopListening();\n };\n\n constructor(parts: ComboboxOverlayParts) {\n this.#parts = parts;\n\n afterEveryRender({\n write: () => this.#portal(),\n read: () => this.#measure(),\n });\n\n inject(DestroyRef).onDestroy(() => {\n this.#portaled?.remove();\n this.#portaled = null;\n this.#stopListening();\n });\n }\n\n /** Lê a âncora agora — chamado ao abrir, para o primeiro quadro já sair no lugar. */\n track(): void {\n if (!this.#browser) return;\n const field = this.#parts.anchor();\n if (field) this.#anchor.set(this.#anchorOf(field));\n }\n\n /** Ponteiro pressionado dentro do componente ou do cartão (vale até soltar em qualquer lugar). */\n press(): void {\n this.#pressed = true;\n if (this.#listening || !this.#browser) return;\n this.#listening = true;\n this.#document.addEventListener('pointerup', this.#release, true);\n this.#document.addEventListener('pointercancel', this.#release, true);\n }\n\n /** Esquece o toque em andamento (a lista fechou). */\n reset(): void {\n this.#release();\n }\n\n /**\n * O foco saiu do componente (host e cartão)? Foco indo para dentro de um dos dois não conta. Com a\n * lista aberta, um toque do ponteiro em área sem foco (scrollbar, rodapé) também não: o foco volta\n * para o alvo e a lista continua aberta.\n */\n isLeaving(event: FocusEvent): boolean {\n const next = event.relatedTarget as Node | null;\n if (next && this.contains(next)) return false;\n if (this.#pressed && this.#parts.isOpen()) {\n // Devolve depois que o navegador termina de mover o foco (dentro do focusout ele ainda está a caminho).\n setTimeout(() => {\n if (this.#parts.isOpen() && !this.contains(this.#document.activeElement)) this.#parts.focusTarget()?.focus();\n });\n return false;\n }\n return true;\n }\n\n /**\n * Foco que caiu numa parte do cartão que não é o alvo (a lista rolável, que o Chrome torna\n * focável, ou o rodapé) volta para o alvo: as teclas continuam chegando ao campo/busca.\n */\n keepFocus(event: FocusEvent): void {\n const target = this.#parts.focusTarget();\n if (target && event.target !== target) target.focus();\n }\n\n /** O nó está no componente ou no cartão (que mora no `<body>`)? */\n contains(node: Node | null): boolean {\n if (!node) return false;\n return this.#host.contains(node) || !!this.#parts.card()?.contains(node);\n }\n\n #portal(): void {\n const card = this.#parts.card();\n if (this.#portaled && this.#portaled !== card) {\n this.#portaled.remove();\n this.#portaled = null;\n }\n if (!card || card.parentNode === this.#document.body) return;\n copyThemeScope(this.#host, card);\n this.#document.body.appendChild(card);\n this.#portaled = card;\n }\n\n #measure(): void {\n const card = this.#parts.card();\n const field = this.#parts.anchor();\n if (!card || !field) {\n if (!card) this.#measured.set(null);\n return;\n }\n const anchor = this.#anchorOf(field);\n this.#anchor.set(anchor);\n const size: Size = { width: card.offsetWidth, height: card.offsetHeight };\n this.#measured.set({ anchor, placement: placeWithin(anchor, size, this.#viewport()) });\n }\n\n #anchorOf(field: HTMLElement): PopoverAnchor {\n const rect = field.getBoundingClientRect();\n return { x: rect.left, y: rect.top, right: rect.right, bottom: rect.bottom, align: 'start' };\n }\n\n #viewport(): Size {\n if (!this.#browser) return { width: 0, height: 0 };\n const root = this.#document.documentElement;\n const view = this.#document.defaultView;\n return { width: root.clientWidth || view?.innerWidth || 0, height: root.clientHeight || view?.innerHeight || 0 };\n }\n\n #stopListening(): void {\n if (!this.#listening) return;\n this.#listening = false;\n this.#document.removeEventListener('pointerup', this.#release, true);\n this.#document.removeEventListener('pointercancel', this.#release, true);\n }\n}\n\n/** Rola a lista o mínimo para a opção ativa ficar inteira à vista. */\nexport function ɵrevealOption(list: HTMLElement, option: HTMLElement | null | undefined): void {\n if (!option) return;\n const top = option.offsetTop;\n const bottom = top + option.offsetHeight;\n if (top < list.scrollTop) list.scrollTop = top;\n else if (bottom > list.scrollTop + list.clientHeight) list.scrollTop = bottom - list.clientHeight;\n}\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(COMBOBOX_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_CHECK,\n ICON_EXCLAMATION_TRIANGLE,\n ICON_TIMES,\n} from '@trismegisto/angular/icon';\n\nexport const COMBOBOX_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_CHECK, ICON_EXCLAMATION_TRIANGLE, ICON_TIMES];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterRenderEffect,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ComboboxOption, comboboxOptionId, filterComboboxOptions, formatMessage } from '@trismegisto/primitives';\nimport { warnDeprecated } from '@trismegisto/angular/deprecation';\nimport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { ɵComboboxOverlay, ɵrevealOption } from './combobox-overlay';\nimport { COMBOBOX_ICONS } from './icons.generated';\n\nexport type ComboboxSize = 'small' | 'medium' | 'large';\n\nlet instances = 0;\n\n/**\n * Escolha de **um** valor numa lista longa, filtrando pelo que se digita (padrão Combobox do APG\n * com lista e `aria-activedescendant`: o foco nunca sai do campo).\n *\n * - O valor só muda ao escolher: digitar filtra; sair sem escolher devolve o rótulo do valor atual.\n * - `allowCustomValue`: o texto digitado é o valor (cada tecla) e as opções viram sugestões, como\n * `<input list>` + `<datalist>`.\n * - A lista abre num cartão movido para o `<body>`, então `overflow` de modal/tabela não a corta.\n * - `''` é \"nada escolhido\"; `null` vindo do formulário vira `''`, e limpar grava `''`.\n */\n@Component({\n selector: 'hm-combobox',\n imports: [IconComponent],\n templateUrl: './combobox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-combobox' },\n})\nexport class ComboboxComponent extends HermesFormFieldBase<string> {\n readonly #icons = useHermesIcons(COMBOBOX_ICONS);\n\n readonly label = input.required<string>();\n readonly options = input.required<readonly ComboboxOption[]>();\n /** Valor escolhido; `''` = nenhum. */\n readonly value = model<string>('');\n readonly placeholder = input('');\n /** Ícone decorativo no início do campo. */\n readonly icon = input('');\n /** Texto de apoio embaixo do campo. */\n readonly hint = input('');\n /** @deprecated desde 0.2.0 — use `hint`. */\n readonly help = input('');\n readonly size = input<ComboboxSize>('medium');\n /** Rótulo só para tecnologia assistiva (fica visualmente oculto, mas segue como nome acessível). */\n readonly labelHidden = input(false, { transform: booleanAttribute });\n /** Botão para limpar a escolha. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** @deprecated desde 0.2.0 — use `required`. */\n readonly requiredManual = input(false, { transform: booleanAttribute });\n /** Silhueta no lugar do campo enquanto as opções chegam. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Aceita texto livre: as opções passam a ser sugestões. */\n readonly allowCustomValue = input(false, { transform: booleanAttribute });\n\n protected readonly valueModel = this.value;\n protected readonly text = inject(HERMES_MESSAGES).combobox;\n\n protected readonly id = `hm-combobox-${++instances}`;\n protected readonly listId = `${this.id}-listbox`;\n protected readonly hintId = `${this.id}-hint`;\n protected readonly errorId = `${this.id}-error`;\n\n private readonly fieldRef = viewChild<ElementRef<HTMLInputElement>>('field');\n private readonly cardRef = viewChild<ElementRef<HTMLElement>>('card');\n private readonly listRef = viewChild<ElementRef<HTMLElement>>('listbox');\n\n /** Estado interno \"aberto\" — com texto livre sem sugestão, pode estar aberto sem nada visível. */\n protected readonly expanded = signal(false);\n /** Texto digitado nesta abertura; `null` enquanto a pessoa não digitou. */\n private readonly typed = signal<string | null>(null);\n protected readonly activeIndex = signal(-1);\n\n protected readonly overlay = new ɵComboboxOverlay({\n card: () => this.cardRef()?.nativeElement,\n anchor: () => this.fieldRef()?.nativeElement,\n focusTarget: () => this.fieldRef()?.nativeElement,\n isOpen: () => this.listVisible(),\n });\n\n private readonly current = computed(() => this.value() ?? '');\n private readonly chosen = computed(() => this.options().find((option) => option.value === this.current()));\n\n protected readonly shown = computed(() => {\n const typed = this.typed();\n return typed === null ? this.options() : filterComboboxOptions(this.options(), typed);\n });\n\n protected readonly listVisible = computed(\n () => this.expanded() && !this.isDisabled() && !(this.allowCustomValue() && this.shown().length === 0),\n );\n\n protected readonly displayText = computed(() => {\n const typed = this.typed();\n if (typed !== null) return typed;\n return this.chosen()?.label ?? (this.allowCustomValue() ? this.current() : '');\n });\n\n protected readonly showRequired = computed(() => this.isRequired() || this.requiredManual());\n protected readonly hintText = computed(() => this.hint() || this.help());\n protected readonly describedBy = computed(\n () => [this.hintText() ? this.hintId : '', this.errorText() ? this.errorId : ''].filter(Boolean).join(' ') || null,\n );\n protected readonly activeId = computed(() => {\n const index = this.activeIndex();\n return this.listVisible() && index >= 0 && index < this.shown().length ? this.optionId(index) : null;\n });\n protected readonly canClear = computed(() => this.clearable() && !!this.current() && !this.isDisabled());\n\n protected readonly clearLabel = computed(() => formatMessage(this.text.clear, { label: this.label() }));\n protected readonly loadingLabel = computed(() => formatMessage(this.text.loading, { label: this.label() }));\n protected readonly countText = computed(() =>\n formatMessage(this.text.resultCount, { shown: this.shown().length, total: this.options().length }),\n );\n\n constructor() {\n super();\n effect(() => {\n if (this.help()) warnDeprecated('`help` no <hm-combobox>', '`hint`');\n if (this.requiredManual()) warnDeprecated('`requiredManual` no <hm-combobox>', '`required`');\n });\n afterRenderEffect({\n write: () => {\n const list = this.listRef()?.nativeElement;\n const index = this.activeIndex();\n if (!list || index < 0) return;\n ɵrevealOption(list, list.querySelectorAll<HTMLElement>('.hm-combobox__option')[index]);\n },\n });\n }\n\n override writeValue(value: string | null): void {\n super.writeValue(value ?? '');\n }\n\n protected optionId(index: number): string {\n return comboboxOptionId(this.listId, index);\n }\n\n protected isChosen(option: ComboboxOption): boolean {\n return option.value === this.current();\n }\n\n protected onFieldClick(): void {\n if (!this.expanded()) this.openList();\n }\n\n protected onToggleClick(): void {\n if (this.expanded()) this.closeList();\n else this.openList();\n this.fieldRef()?.nativeElement.focus();\n }\n\n protected onInput(event: Event): void {\n if (this.isDisabled()) return;\n const text = (event.target as HTMLInputElement).value;\n this.openList();\n this.typed.set(text);\n if (this.allowCustomValue()) {\n this.commit(text);\n this.activeIndex.set(-1);\n } else {\n this.activeIndex.set(this.shown().length ? 0 : -1);\n }\n }\n\n protected choose(option: ComboboxOption): void {\n if (option.disabled) return;\n this.commit(option.value);\n this.markTouched();\n this.closeList();\n }\n\n protected clearValue(): void {\n this.commit('');\n this.markTouched();\n this.closeList();\n this.fieldRef()?.nativeElement.focus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isDisabled()) return;\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowUp':\n case 'Home':\n case 'End':\n event.preventDefault();\n if (!this.listVisible()) {\n if (!this.expanded()) this.openList();\n return;\n }\n this.move(event.key);\n return;\n case 'Enter':\n this.onEnter(event);\n return;\n case 'Escape':\n event.preventDefault();\n if (this.listVisible()) event.stopPropagation();\n if (this.expanded()) this.closeList();\n return;\n case 'Tab':\n if (this.expanded()) this.closeList();\n return;\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (!this.overlay.isLeaving(event)) return;\n if (this.expanded()) this.closeList();\n this.markTouched();\n }\n\n private onEnter(event: KeyboardEvent): void {\n if (!this.expanded()) return;\n const option = this.listVisible() ? this.shown()[this.activeIndex()] : undefined;\n if (option) {\n event.preventDefault();\n this.choose(option);\n return;\n }\n if (!this.allowCustomValue()) return;\n // Texto livre confirmado: o valor já foi gravado a cada tecla.\n if (this.listVisible()) event.preventDefault();\n this.markTouched();\n this.closeList();\n }\n\n private move(key: string): void {\n const count = this.shown().length;\n if (!count) return;\n const index = this.activeIndex();\n let next: number;\n if (key === 'Home') next = 0;\n else if (key === 'End') next = count - 1;\n else if (key === 'ArrowDown') next = index < 0 ? 0 : (index + 1) % count;\n else next = index < 0 ? count - 1 : (index - 1 + count) % count;\n this.activeIndex.set(next);\n }\n\n private openList(): void {\n if (this.isDisabled() || this.expanded()) return;\n this.typed.set(null);\n this.activeIndex.set(this.options().findIndex((option) => this.isChosen(option)));\n this.overlay.track();\n this.expanded.set(true);\n }\n\n private closeList(): void {\n this.expanded.set(false);\n this.typed.set(null);\n this.activeIndex.set(-1);\n this.overlay.reset();\n }\n}\n","@if (loading()) {\n <div\n class=\"hm-combobox__skeleton\"\n [class.hm-combobox__skeleton--small]=\"size() === 'small'\"\n [class.hm-combobox__skeleton--large]=\"size() === 'large'\"\n role=\"status\"\n aria-busy=\"true\"\n [attr.aria-label]=\"loadingLabel()\"\n >\n @if (!labelHidden()) {\n <span class=\"hm-combobox__skeleton-label\" aria-hidden=\"true\"></span>\n }\n <span class=\"hm-combobox__skeleton-frame\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div class=\"hm-combobox__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-combobox__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (showRequired()) {\n <span class=\"hm-combobox__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox__frame\"\n [class.hm-combobox__frame--small]=\"size() === 'small'\"\n [class.hm-combobox__frame--large]=\"size() === 'large'\"\n [class.hm-combobox__frame--open]=\"listVisible()\"\n [class.hm-combobox__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox__frame--disabled]=\"isDisabled()\"\n >\n @if (icon()) {\n <hm-icon class=\"hm-combobox__icon\" [shape]=\"icon()\" />\n }\n <input\n #field\n class=\"hm-combobox__control\"\n type=\"text\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"displayText()\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-expanded]=\"listVisible()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"showRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (canClear()) {\n <button type=\"button\" class=\"hm-combobox__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clearValue()\">\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n @if (hintText()) {\n <p class=\"hm-combobox__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n </div>\n\n @if (listVisible()) {\n <div\n #card\n class=\"hm-combobox__popover\"\n [class.hm-combobox__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <ul #listbox class=\"hm-combobox__list\" role=\"listbox\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option; let index = $index) {\n <li\n class=\"hm-combobox__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox__option--active]=\"index === activeIndex()\"\n [class.hm-combobox__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isChosen(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(option)\"\n >\n <span class=\"hm-combobox__check\" aria-hidden=\"true\">\n @if (isChosen(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox__glyph\" [shape]=\"option.icon\" />\n }\n @if (option.swatchBackground && option.swatchBorder) {\n <span class=\"hm-combobox__swatch\" [style.background-color]=\"option.swatchBackground\" [style.border-color]=\"option.swatchBorder\">{{ option.label }}</span>\n } @else {\n <span class=\"hm-combobox__text\">{{ option.label }}</span>\n }\n </li>\n } @empty {\n <li class=\"hm-combobox__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n }\n}\n","// Ponto de import `@trismegisto/angular/combobox` (secundário do ng-packagr).\nexport * from './combobox.component';\nexport type { ComboboxOption } from '@trismegisto/primitives';\n// Peça interna compartilhada com `@trismegisto/angular/combobox-multi` (prefixo ɵ: não é API para apps).\nexport { ɵComboboxOverlay, ɵrevealOption, type ComboboxOverlayParts as ɵComboboxOverlayParts } from './combobox-overlay';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA6BA,MAAM,UAAU,GAAG,CAAC,CAAuB,EAAE,CAAuB,KAClE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE/C,MAAM,aAAa,GAAG,CAAC,CAAqB,EAAE,CAAqB,KACjE,CAAC,KAAK,CAAC;KACN,CAAC,CAAC,CAAC;AACF,QAAA,CAAC,CAAC,CAAC;QACH,YAAY,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI;QACrC,CAAC,CAAC,SAAS,CAAC,KAAK,KAAK,CAAC,CAAC,SAAS,CAAC,KAAK;QACv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AAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACN,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/EzE;;ACAA;;AAEG;;"}
1
+ {"version":3,"file":"trismegisto-angular-combobox.mjs","sources":["../../src/combobox/combobox-overlay.ts","../../src/combobox/icons.generated.ts","../../src/combobox/combobox.component.ts","../../src/combobox/combobox.component.html","../../src/combobox/index.ts","../../src/combobox/trismegisto-angular-combobox.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { DOCUMENT, DestroyRef, ElementRef, PLATFORM_ID, afterEveryRender, computed, inject, signal } from '@angular/core';\nimport {\n PopoverAnchor,\n PopoverPlacement,\n Size,\n copyThemeScope,\n isSameAnchor,\n placeDirect,\n placeWithin,\n} from '@trismegisto/primitives';\n\n/** Onde o cartão de uma lista de combobox se pendura e para onde o foco volta. */\nexport interface ComboboxOverlayParts {\n /** Raiz do cartão — só existe enquanto a lista está aberta. */\n readonly card: () => HTMLElement | undefined;\n /** Campo cujo retângulo ancora o cartão. */\n readonly anchor: () => HTMLElement | undefined;\n /** Quem deve ficar com o foco quando um toque do ponteiro dentro do componente o derruba. */\n readonly focusTarget: () => HTMLElement | undefined;\n /** A lista está aberta agora? */\n readonly isOpen: () => boolean;\n}\n\ninterface Measurement {\n readonly anchor: PopoverAnchor;\n readonly placement: PopoverPlacement;\n}\n\nconst sameAnchor = (a: PopoverAnchor | null, b: PopoverAnchor | null): boolean =>\n a === b || (!!a && !!b && isSameAnchor(a, b));\n\nconst samePlacement = (a: Measurement | null, b: Measurement | null): boolean =>\n a === b ||\n (!!a &&\n !!b &&\n isSameAnchor(a.anchor, b.anchor) &&\n a.placement.left === b.placement.left &&\n a.placement.right === b.placement.right &&\n a.placement.top === b.placement.top &&\n a.placement.bottom === b.placement.bottom &&\n a.placement.align === b.placement.align);\n\n/**\n * @internal Peça compartilhada por `hm-combobox` e `hm-combobox-multi` — não é API para apps.\n *\n * Cuida do cartão flutuante: leva-o para o `<body>` (fora de qualquer `overflow`/`transform` que o\n * cortaria) com o escopo de tema do componente, calcula a posição a cada renderização, decide se uma\n * perda de foco é \"saída\" do componente e garante que nenhum cartão fique órfão no `<body>`.\n * Precisa ser criada num contexto de injeção (campo do componente).\n */\nexport class ɵComboboxOverlay {\n readonly #parts: ComboboxOverlayParts;\n readonly #host: HTMLElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly #document = inject(DOCUMENT);\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n readonly #anchor = signal<PopoverAnchor | null>(null, { equal: sameAnchor });\n readonly #measured = signal<Measurement | null>(null, { equal: samePlacement });\n #portaled: HTMLElement | null = null;\n #pressed = false;\n #listening = false;\n\n /** Posição do cartão (`position: fixed`); `null` antes de haver âncora (e sempre no servidor). */\n readonly placement = computed<PopoverPlacement | null>(() => {\n const anchor = this.#anchor();\n if (!anchor) return null;\n const measured = this.#measured();\n return measured && isSameAnchor(measured.anchor, anchor) ? measured.placement : placeDirect(anchor, this.#viewport());\n });\n\n /** Largura do campo, para o cartão nunca ficar mais estreito que ele (`null` sem âncora). */\n readonly anchorWidth = computed(() => {\n const anchor = this.#anchor();\n return anchor?.right !== undefined ? `${Math.round(anchor.right - anchor.x)}px` : null;\n });\n\n readonly #release = (): void => {\n this.#pressed = false;\n this.#stopListening();\n };\n\n constructor(parts: ComboboxOverlayParts) {\n this.#parts = parts;\n\n afterEveryRender({\n write: () => this.#portal(),\n read: () => this.#measure(),\n });\n\n inject(DestroyRef).onDestroy(() => {\n this.#portaled?.remove();\n this.#portaled = null;\n this.#stopListening();\n });\n }\n\n /** Lê a âncora agora — chamado ao abrir, para o primeiro quadro já sair no lugar. */\n track(): void {\n if (!this.#browser) return;\n const field = this.#parts.anchor();\n if (field) this.#anchor.set(this.#anchorOf(field));\n }\n\n /** Ponteiro pressionado dentro do componente ou do cartão (vale até soltar em qualquer lugar). */\n press(): void {\n this.#pressed = true;\n if (this.#listening || !this.#browser) return;\n this.#listening = true;\n this.#document.addEventListener('pointerup', this.#release, true);\n this.#document.addEventListener('pointercancel', this.#release, true);\n }\n\n /** Esquece o toque em andamento (a lista fechou). */\n reset(): void {\n this.#release();\n }\n\n /**\n * O foco saiu do componente (host e cartão)? Foco indo para dentro de um dos dois não conta. Com a\n * lista aberta, um toque do ponteiro em área sem foco (scrollbar, rodapé) também não: o foco volta\n * para o alvo e a lista continua aberta.\n */\n isLeaving(event: FocusEvent): boolean {\n const next = event.relatedTarget as Node | null;\n if (next && this.contains(next)) return false;\n if (this.#pressed && this.#parts.isOpen()) {\n // Devolve depois que o navegador termina de mover o foco (dentro do focusout ele ainda está a caminho).\n setTimeout(() => {\n if (this.#parts.isOpen() && !this.contains(this.#document.activeElement)) this.#parts.focusTarget()?.focus();\n });\n return false;\n }\n return true;\n }\n\n /**\n * Foco que caiu numa parte do cartão que não é o alvo (a lista rolável, que o Chrome torna\n * focável, ou o rodapé) volta para o alvo: as teclas continuam chegando ao campo/busca.\n */\n keepFocus(event: FocusEvent): void {\n const target = this.#parts.focusTarget();\n if (target && event.target !== target) target.focus();\n }\n\n /** O nó está no componente ou no cartão (que mora no `<body>`)? */\n contains(node: Node | null): boolean {\n if (!node) return false;\n return this.#host.contains(node) || !!this.#parts.card()?.contains(node);\n }\n\n #portal(): void {\n const card = this.#parts.card();\n if (this.#portaled && this.#portaled !== card) {\n this.#portaled.remove();\n this.#portaled = null;\n }\n if (!card || card.parentNode === this.#document.body) return;\n copyThemeScope(this.#host, card);\n this.#document.body.appendChild(card);\n this.#portaled = card;\n }\n\n #measure(): void {\n const card = this.#parts.card();\n const field = this.#parts.anchor();\n if (!card || !field) {\n if (!card) this.#measured.set(null);\n return;\n }\n const anchor = this.#anchorOf(field);\n this.#anchor.set(anchor);\n const size: Size = { width: card.offsetWidth, height: card.offsetHeight };\n this.#measured.set({ anchor, placement: placeWithin(anchor, size, this.#viewport()) });\n }\n\n #anchorOf(field: HTMLElement): PopoverAnchor {\n const rect = field.getBoundingClientRect();\n return { x: rect.left, y: rect.top, right: rect.right, bottom: rect.bottom, align: 'start' };\n }\n\n #viewport(): Size {\n if (!this.#browser) return { width: 0, height: 0 };\n const root = this.#document.documentElement;\n const view = this.#document.defaultView;\n return { width: root.clientWidth || view?.innerWidth || 0, height: root.clientHeight || view?.innerHeight || 0 };\n }\n\n #stopListening(): void {\n if (!this.#listening) return;\n this.#listening = false;\n this.#document.removeEventListener('pointerup', this.#release, true);\n this.#document.removeEventListener('pointercancel', this.#release, true);\n }\n}\n\n/** Rola a lista o mínimo para a opção ativa ficar inteira à vista. */\nexport function ɵrevealOption(list: HTMLElement, option: HTMLElement | null | undefined): void {\n if (!option) return;\n const top = option.offsetTop;\n const bottom = top + option.offsetHeight;\n if (top < list.scrollTop) list.scrollTop = top;\n else if (bottom > list.scrollTop + list.clientHeight) list.scrollTop = bottom - list.clientHeight;\n}\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(COMBOBOX_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_CHECK,\n ICON_EXCLAMATION_TRIANGLE,\n ICON_TIMES,\n} from '@trismegisto/angular/icon';\n\nexport const COMBOBOX_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_CHECK, ICON_EXCLAMATION_TRIANGLE, ICON_TIMES];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterRenderEffect,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ComboboxOption, comboboxOptionId, filterComboboxOptions, formatMessage } from '@trismegisto/primitives';\nimport { warnDeprecated } from '@trismegisto/angular/deprecation';\nimport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { ɵComboboxOverlay, ɵrevealOption } from './combobox-overlay';\nimport { COMBOBOX_ICONS } from './icons.generated';\n\nexport type ComboboxSize = 'small' | 'medium' | 'large';\n\nlet instances = 0;\n\n/**\n * Escolha de **um** valor numa lista longa, filtrando pelo que se digita (padrão Combobox do APG\n * com lista e `aria-activedescendant`: o foco nunca sai do campo).\n *\n * - O valor só muda ao escolher: digitar filtra; sair sem escolher devolve o rótulo do valor atual.\n * - `allowCustomValue`: o texto digitado é o valor (cada tecla) e as opções viram sugestões, como\n * `<input list>` + `<datalist>`.\n * - A lista abre num cartão movido para o `<body>`, então `overflow` de modal/tabela não a corta.\n * - `''` é \"nada escolhido\"; `null` vindo do formulário vira `''`, e limpar grava `''`.\n */\n@Component({\n selector: 'hm-combobox',\n imports: [IconComponent],\n templateUrl: './combobox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-combobox' },\n})\nexport class ComboboxComponent extends HermesFormFieldBase<string> {\n readonly #icons = useHermesIcons(COMBOBOX_ICONS);\n\n readonly label = input.required<string>();\n readonly options = input.required<readonly ComboboxOption[]>();\n /** Valor escolhido; `''` = nenhum. */\n readonly value = model<string>('');\n readonly placeholder = input('');\n /** Ícone decorativo no início do campo. */\n readonly icon = input('');\n /** Texto de apoio embaixo do campo. */\n readonly hint = input('');\n /** @deprecated desde 0.2.0 — use `hint`. */\n readonly help = input('');\n readonly size = input<ComboboxSize>('medium');\n /** Rótulo só para tecnologia assistiva (fica visualmente oculto, mas segue como nome acessível). */\n readonly labelHidden = input(false, { transform: booleanAttribute });\n /** Botão para limpar a escolha. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** @deprecated desde 0.2.0 — use `required`. */\n readonly requiredManual = input(false, { transform: booleanAttribute });\n /** Silhueta no lugar do campo enquanto as opções chegam. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Aceita texto livre: as opções passam a ser sugestões. */\n readonly allowCustomValue = input(false, { transform: booleanAttribute });\n\n protected readonly valueModel = this.value;\n protected readonly text = inject(HERMES_MESSAGES).combobox;\n\n protected readonly id = `hm-combobox-${++instances}`;\n protected readonly listId = `${this.id}-listbox`;\n protected readonly hintId = `${this.id}-hint`;\n protected readonly errorId = `${this.id}-error`;\n\n private readonly fieldRef = viewChild<ElementRef<HTMLInputElement>>('field');\n private readonly cardRef = viewChild<ElementRef<HTMLElement>>('card');\n private readonly listRef = viewChild<ElementRef<HTMLElement>>('listbox');\n\n /** Estado interno \"aberto\" — com texto livre sem sugestão, pode estar aberto sem nada visível. */\n protected readonly expanded = signal(false);\n /** Texto digitado nesta abertura; `null` enquanto a pessoa não digitou. */\n private readonly typed = signal<string | null>(null);\n protected readonly activeIndex = signal(-1);\n\n protected readonly overlay = new ɵComboboxOverlay({\n card: () => this.cardRef()?.nativeElement,\n anchor: () => this.fieldRef()?.nativeElement,\n focusTarget: () => this.fieldRef()?.nativeElement,\n isOpen: () => this.listVisible(),\n });\n\n private readonly current = computed(() => this.value() ?? '');\n private readonly chosen = computed(() => this.options().find((option) => option.value === this.current()));\n\n protected readonly shown = computed(() => {\n const typed = this.typed();\n return typed === null ? this.options() : filterComboboxOptions(this.options(), typed);\n });\n\n protected readonly listVisible = computed(\n () => this.expanded() && !this.isDisabled() && !(this.allowCustomValue() && this.shown().length === 0),\n );\n\n protected readonly displayText = computed(() => {\n const typed = this.typed();\n if (typed !== null) return typed;\n return this.chosen()?.label ?? (this.allowCustomValue() ? this.current() : '');\n });\n\n protected readonly showRequired = computed(() => this.isRequired() || this.requiredManual());\n protected readonly hintText = computed(() => this.hint() || this.help());\n protected readonly describedBy = computed(\n () => [this.hintText() ? this.hintId : '', this.errorText() ? this.errorId : ''].filter(Boolean).join(' ') || null,\n );\n protected readonly activeId = computed(() => {\n const index = this.activeIndex();\n return this.listVisible() && index >= 0 && index < this.shown().length ? this.optionId(index) : null;\n });\n protected readonly canClear = computed(() => this.clearable() && !!this.current() && !this.isDisabled());\n\n protected readonly clearLabel = computed(() => formatMessage(this.text.clear, { label: this.label() }));\n protected readonly loadingLabel = computed(() => formatMessage(this.text.loading, { label: this.label() }));\n protected readonly countText = computed(() =>\n formatMessage(this.text.resultCount, { shown: this.shown().length, total: this.options().length }),\n );\n\n constructor() {\n super();\n effect(() => {\n if (this.help()) warnDeprecated('`help` no <hm-combobox>', '`hint`');\n if (this.requiredManual()) warnDeprecated('`requiredManual` no <hm-combobox>', '`required`');\n });\n afterRenderEffect({\n write: () => {\n const list = this.listRef()?.nativeElement;\n const index = this.activeIndex();\n if (!list || index < 0) return;\n ɵrevealOption(list, list.querySelectorAll<HTMLElement>('.hm-combobox__option')[index]);\n },\n });\n }\n\n override writeValue(value: string | null): void {\n super.writeValue(value ?? '');\n }\n\n protected optionId(index: number): string {\n return comboboxOptionId(this.listId, index);\n }\n\n protected isChosen(option: ComboboxOption): boolean {\n return option.value === this.current();\n }\n\n protected onFieldClick(): void {\n if (!this.expanded()) this.openList();\n }\n\n protected onToggleClick(): void {\n if (this.expanded()) this.closeList();\n else this.openList();\n this.fieldRef()?.nativeElement.focus();\n }\n\n protected onInput(event: Event): void {\n if (this.isDisabled()) return;\n const text = (event.target as HTMLInputElement).value;\n this.openList();\n this.typed.set(text);\n if (this.allowCustomValue()) {\n this.commit(text);\n this.activeIndex.set(-1);\n } else {\n this.activeIndex.set(this.shown().length ? 0 : -1);\n }\n }\n\n protected choose(option: ComboboxOption): void {\n if (option.disabled) return;\n this.commit(option.value);\n this.markTouched();\n this.closeList();\n }\n\n protected clearValue(): void {\n this.commit('');\n this.markTouched();\n this.closeList();\n this.fieldRef()?.nativeElement.focus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isDisabled()) return;\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowUp':\n case 'Home':\n case 'End':\n event.preventDefault();\n if (!this.listVisible()) {\n if (!this.expanded()) this.openList();\n return;\n }\n this.move(event.key);\n return;\n case 'Enter':\n this.onEnter(event);\n return;\n case 'Escape':\n event.preventDefault();\n if (this.listVisible()) event.stopPropagation();\n if (this.expanded()) this.closeList();\n return;\n case 'Tab':\n if (this.expanded()) this.closeList();\n return;\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (!this.overlay.isLeaving(event)) return;\n if (this.expanded()) this.closeList();\n this.markTouched();\n }\n\n private onEnter(event: KeyboardEvent): void {\n if (!this.expanded()) return;\n const option = this.listVisible() ? this.shown()[this.activeIndex()] : undefined;\n if (option) {\n event.preventDefault();\n this.choose(option);\n return;\n }\n if (!this.allowCustomValue()) return;\n // Texto livre confirmado: o valor já foi gravado a cada tecla.\n if (this.listVisible()) event.preventDefault();\n this.markTouched();\n this.closeList();\n }\n\n private move(key: string): void {\n const count = this.shown().length;\n if (!count) return;\n const index = this.activeIndex();\n let next: number;\n if (key === 'Home') next = 0;\n else if (key === 'End') next = count - 1;\n else if (key === 'ArrowDown') next = index < 0 ? 0 : (index + 1) % count;\n else next = index < 0 ? count - 1 : (index - 1 + count) % count;\n this.activeIndex.set(next);\n }\n\n private openList(): void {\n if (this.isDisabled() || this.expanded()) return;\n this.typed.set(null);\n this.activeIndex.set(this.options().findIndex((option) => this.isChosen(option)));\n this.overlay.track();\n this.expanded.set(true);\n }\n\n private closeList(): void {\n this.expanded.set(false);\n this.typed.set(null);\n this.activeIndex.set(-1);\n this.overlay.reset();\n }\n}\n","@if (loading()) {\n <div\n class=\"hm-combobox__skeleton\"\n [class.hm-combobox__skeleton--small]=\"size() === 'small'\"\n [class.hm-combobox__skeleton--large]=\"size() === 'large'\"\n role=\"status\"\n aria-busy=\"true\"\n [attr.aria-label]=\"loadingLabel()\"\n >\n @if (!labelHidden()) {\n <span class=\"hm-combobox__skeleton-label\" aria-hidden=\"true\"></span>\n }\n <span class=\"hm-combobox__skeleton-frame\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div class=\"hm-combobox__root\" (focusout)=\"onFocusOut($event)\" (pointerdown)=\"overlay.press()\">\n <div class=\"hm-combobox__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-combobox__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (showRequired()) {\n <span class=\"hm-combobox__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n class=\"hm-combobox__frame\"\n [class.hm-combobox__frame--small]=\"size() === 'small'\"\n [class.hm-combobox__frame--large]=\"size() === 'large'\"\n [class.hm-combobox__frame--open]=\"listVisible()\"\n [class.hm-combobox__frame--invalid]=\"!!errorText()\"\n [class.hm-combobox__frame--disabled]=\"isDisabled()\"\n >\n @if (icon()) {\n <hm-icon class=\"hm-combobox__icon\" [shape]=\"icon()\" />\n }\n <input\n #field\n class=\"hm-combobox__control\"\n type=\"text\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"displayText()\"\n [disabled]=\"isDisabled()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-expanded]=\"listVisible()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-required]=\"showRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onFieldClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (canClear()) {\n <button type=\"button\" class=\"hm-combobox__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clearValue()\">\n <hm-icon shape=\"times\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"hm-combobox__toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onToggleClick()\"\n >\n <hm-icon shape=\"angle-down\" />\n </button>\n </div>\n\n @if (hintText()) {\n <p class=\"hm-combobox__help\" [id]=\"hintId\">{{ hintText() }}</p>\n }\n @if (errorText()) {\n <p class=\"hm-combobox__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n }\n </div>\n\n @if (listVisible()) {\n <div\n #card\n class=\"hm-combobox__popover\"\n [class.hm-combobox__popover--centered]=\"overlay.placement()?.align === 'center'\"\n role=\"region\"\n [attr.aria-label]=\"label()\"\n [style.left.px]=\"overlay.placement()?.left\"\n [style.right.px]=\"overlay.placement()?.right\"\n [style.top.px]=\"overlay.placement()?.top\"\n [style.bottom.px]=\"overlay.placement()?.bottom\"\n [style.--_hm-combobox-anchor-width]=\"overlay.anchorWidth()\"\n (pointerdown)=\"overlay.press()\"\n (focusin)=\"overlay.keepFocus($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <ul #listbox class=\"hm-combobox__list\" role=\"listbox\" [id]=\"listId\" [attr.aria-label]=\"label()\">\n @for (option of shown(); track option.value; let index = $index) {\n <li\n class=\"hm-combobox__option\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [class.hm-combobox__option--active]=\"index === activeIndex()\"\n [class.hm-combobox__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isChosen(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"choose(option)\"\n >\n <span class=\"hm-combobox__check\" aria-hidden=\"true\">\n @if (isChosen(option)) {\n <hm-icon shape=\"check\" />\n }\n </span>\n @if (option.icon) {\n <hm-icon class=\"hm-combobox__glyph\" [shape]=\"option.icon\" />\n }\n @if (option.swatchBackground && option.swatchBorder) {\n <span class=\"hm-combobox__swatch\" [style.background-color]=\"option.swatchBackground\" [style.border-color]=\"option.swatchBorder\">{{ option.label }}</span>\n } @else {\n <span class=\"hm-combobox__text\">{{ option.label }}</span>\n }\n </li>\n } @empty {\n <li class=\"hm-combobox__empty\" role=\"option\" aria-disabled=\"true\" aria-selected=\"false\">{{ text.noResults }}</li>\n }\n </ul>\n <div class=\"hm-combobox__count\" aria-hidden=\"true\">{{ countText() }}</div>\n </div>\n }\n}\n","// Ponto de import `@trismegisto/angular/combobox` (secundário do ng-packagr).\nexport * from './combobox.component';\nexport type { ComboboxOption } from '@trismegisto/primitives';\n// Peça interna compartilhada com `@trismegisto/angular/combobox-multi` (prefixo ɵ: não é API para apps).\nexport { ɵComboboxOverlay, ɵrevealOption, type ComboboxOverlayParts as ɵComboboxOverlayParts } from './combobox-overlay';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA6BA,MAAM,UAAU,GAAG,CAAC,CAAuB,EAAE,CAAuB,KAClE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE/C,MAAM,aAAa,GAAG,CAAC,CAAqB,EAAE,CAAqB,KACjE,CAAC,KAAK,CAAC;KACN,CAAC,CAAC,CAAC;AACF,QAAA,CAAC,CAAC,CAAC;QACH,YAAY,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI;QACrC,CAAC,CAAC,SAAS,CAAC,KAAK,KAAK,CAAC,CAAC,SAAS,CAAC,KAAK;QACvC,CAAC,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC,GAAG;QACnC,CAAC,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,SAAS,CAAC,MAAM;QACzC,CAAC,CAAC,SAAS,CAAC,KAAK,KAAK,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;AAE5C;;;;;;;AAOG;MACU,gBAAgB,CAAA;AAClB,IAAA,MAAM;AACN,IAAA,KAAK,GAAgB,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AAC9E,IAAA,SAAS,GA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