@seniorsistemas/scala-ng 2.4.0 → 2.5.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 +9 -6
- package/autocomplete/README.md +5 -1
- package/autocomplete/public-api.d.ts +2 -2
- package/autocomplete/src/autocomplete/autocomplete.component.d.ts +6 -6
- package/autocomplete/src/autocomplete/autocomplete.models.d.ts +2 -2
- package/autocomplete/src/autocomplete/panel/autocomplete-panel.component.d.ts +1 -1
- package/avatar-summary/README.md +1 -1
- package/avatar-summary/public-api.d.ts +2 -2
- package/avatar-summary/src/avatar-summary/avatar-summary.component.d.ts +1 -1
- package/avatar-summary/src/avatar-summary/avatar-summary.models.d.ts +3 -3
- package/avatar-summary/src/avatar-summary/avatar-summary.tokens.d.ts +1 -1
- package/avatar-summary/src/avatar-summary/avatar-summary.utils.d.ts +1 -1
- package/badge/README.md +1 -1
- package/badge/public-api.d.ts +1 -1
- package/badge/src/badge/badge.component.d.ts +1 -1
- package/banner/README.md +1 -1
- package/banner/public-api.d.ts +3 -3
- package/banner/src/banner/banner.component.d.ts +2 -2
- package/banner/src/banner/banner.models.d.ts +1 -1
- package/banner/src/banner-trigger/banner-trigger.directive.d.ts +2 -2
- package/breadcrumb/README.md +7 -7
- package/breadcrumb/public-api.d.ts +5 -5
- package/breadcrumb/src/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.d.ts +2 -2
- package/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.d.ts +3 -3
- package/button/README.md +5 -1
- package/button/public-api.d.ts +1 -1
- package/button/src/button/button.component.d.ts +1 -1
- package/card/README.md +1 -1
- package/card/public-api.d.ts +1 -1
- package/card/src/card/card.component.d.ts +4 -4
- package/checkbox/README.md +5 -5
- package/checkbox/public-api.d.ts +1 -1
- package/checkbox/src/checkbox/checkbox.component.d.ts +1 -1
- package/content-lifecycle/README.md +2 -2
- package/content-lifecycle/public-api.d.ts +2 -2
- package/content-lifecycle/src/content-lifecycle/content-lifecycle.component.d.ts +2 -2
- package/content-lifecycle/src/content-lifecycle/content-lifecycle.models.d.ts +2 -2
- package/date-picker/README.md +6 -6
- package/date-picker/public-api.d.ts +3 -3
- package/date-picker/src/date-picker/date-format.utils.d.ts +2 -2
- package/date-picker/src/date-picker/datepicker.component.d.ts +7 -7
- package/display-tag/README.md +2 -2
- package/display-tag/public-api.d.ts +2 -2
- package/display-tag/src/display-tag/display-tag.component.d.ts +5 -5
- package/drawer/README.md +9 -9
- package/drawer/public-api.d.ts +1 -1
- package/drawer/src/drawer/drawer.component.d.ts +4 -4
- package/empty-state/README.md +1 -1
- package/empty-state/public-api.d.ts +2 -2
- package/empty-state/src/empty-state/empty-state.component.d.ts +1 -1
- package/empty-state/src/empty-state/empty-state.models.d.ts +2 -2
- package/esm2022/autocomplete/public-api.mjs +2 -2
- package/esm2022/autocomplete/src/autocomplete/autocomplete.component.mjs +55 -55
- package/esm2022/autocomplete/src/autocomplete/autocomplete.models.mjs +1 -1
- package/esm2022/autocomplete/src/autocomplete/panel/autocomplete-panel.component.mjs +12 -12
- package/esm2022/avatar-summary/public-api.mjs +2 -2
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.component.mjs +24 -24
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.models.mjs +1 -1
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.tokens.mjs +46 -46
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.utils.mjs +4 -4
- package/esm2022/badge/public-api.mjs +2 -2
- package/esm2022/badge/src/badge/badge.component.mjs +25 -25
- package/esm2022/banner/public-api.mjs +3 -3
- package/esm2022/banner/src/banner/banner.component.mjs +33 -33
- package/esm2022/banner/src/banner/banner.models.mjs +1 -1
- package/esm2022/banner/src/banner-trigger/banner-trigger.directive.mjs +11 -11
- package/esm2022/breadcrumb/public-api.mjs +3 -3
- package/esm2022/breadcrumb/src/breadcrumb/breadcrumb.component.mjs +13 -13
- package/esm2022/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.mjs +13 -13
- package/esm2022/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.mjs +11 -11
- package/esm2022/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.mjs +24 -24
- package/esm2022/button/public-api.mjs +2 -2
- package/esm2022/button/src/button/button.component.mjs +23 -23
- package/esm2022/card/public-api.mjs +2 -2
- package/esm2022/card/src/card/card.component.mjs +37 -37
- package/esm2022/checkbox/public-api.mjs +2 -2
- package/esm2022/checkbox/src/checkbox/checkbox.component.mjs +5 -5
- package/esm2022/content-lifecycle/public-api.mjs +2 -2
- package/esm2022/content-lifecycle/src/content-lifecycle/content-lifecycle.component.mjs +15 -15
- package/esm2022/content-lifecycle/src/content-lifecycle/content-lifecycle.models.mjs +1 -1
- package/esm2022/date-picker/public-api.mjs +3 -3
- package/esm2022/date-picker/src/date-picker/date-format.utils.mjs +39 -39
- package/esm2022/date-picker/src/date-picker/date.utils.mjs +15 -15
- package/esm2022/date-picker/src/date-picker/datepicker.component.mjs +122 -122
- package/esm2022/display-tag/public-api.mjs +2 -2
- package/esm2022/display-tag/src/display-tag/display-tag.component.mjs +36 -36
- package/esm2022/drawer/public-api.mjs +2 -2
- package/esm2022/drawer/src/drawer/drawer.component.mjs +37 -37
- package/esm2022/empty-state/public-api.mjs +2 -2
- package/esm2022/empty-state/src/empty-state/empty-state.component.mjs +26 -26
- package/esm2022/empty-state/src/empty-state/empty-state.models.mjs +1 -1
- package/esm2022/filter-tag/public-api.mjs +2 -2
- package/esm2022/filter-tag/src/filter-tag/filter-tag.component.mjs +12 -12
- package/esm2022/form-field/public-api.mjs +2 -2
- package/esm2022/form-field/src/form-field/form-field.component.mjs +26 -26
- package/esm2022/input/public-api.mjs +2 -2
- package/esm2022/input/src/input/input.component.mjs +55 -44
- package/esm2022/input-feedback/public-api.mjs +2 -2
- package/esm2022/input-feedback/src/input-feedback/input-feedback.component.mjs +12 -12
- package/esm2022/item-strip/public-api.mjs +2 -2
- package/esm2022/item-strip/src/item-strip/item-strip.component.mjs +14 -14
- package/esm2022/item-strip/src/item-strip-item/item-strip-item.component.mjs +37 -37
- package/esm2022/item-strip/src/item-strip-item/item-strip-item.mjs +1 -1
- package/esm2022/lib/a11y/focusable-item.utils.mjs +2 -2
- package/esm2022/lib/chip/chip.utils.mjs +15 -15
- package/esm2022/lib/combobox/combobox.utils.mjs +8 -8
- package/esm2022/lib/forms/control-state.utils.mjs +4 -4
- package/esm2022/lib/overlay/aria-hide.utils.mjs +10 -10
- package/esm2022/lib/overlay/exclusive-dialog.utils.mjs +22 -0
- package/esm2022/lib/overlay/scroll-lock.utils.mjs +5 -5
- package/esm2022/lib/overlay/scrollable-region.utils.mjs +34 -0
- package/esm2022/lib/theme/create-theme.mjs +7 -7
- package/esm2022/lib/theme/semantic-tokens.mjs +1 -1
- package/esm2022/lib/theme/theme.service.mjs +15 -15
- package/esm2022/list/public-api.mjs +2 -2
- package/esm2022/list/src/list/list-id-generator.mjs +4 -4
- package/esm2022/list/src/list/list.component.mjs +16 -16
- package/esm2022/list/src/list/list.models.mjs +2 -2
- package/esm2022/list/src/list/list.tokens.mjs +30 -30
- package/esm2022/list/src/list-group/list-group.component.mjs +7 -7
- package/esm2022/list/src/list-item/list-item-title.utils.mjs +3 -3
- package/esm2022/list/src/list-item/list-item.component.mjs +47 -47
- package/esm2022/loading-state/public-api.mjs +4 -0
- package/esm2022/loading-state/seniorsistemas-scala-ng-loading-state.mjs +5 -0
- package/esm2022/loading-state/src/loading-state/loading-state.directive.mjs +203 -0
- package/esm2022/loading-state/src/loading-state/loading-state.types.mjs +2 -0
- package/esm2022/loading-state/src/loading-state/loading-visibility.utils.mjs +60 -0
- package/esm2022/loading-state/src/pulse/pulse.component.mjs +71 -0
- package/esm2022/loading-state/src/pulse/senior-isotype.component.mjs +11 -0
- package/esm2022/loading-state/src/spinner/loading-spinner.component.mjs +13 -0
- package/esm2022/locale/fallback.mjs +135 -129
- package/esm2022/locale/public-api.mjs +2 -2
- package/esm2022/mask/public-api.mjs +5 -5
- package/esm2022/mask/src/mask/mask.directive.mjs +67 -67
- package/esm2022/mask/src/mask/mask.pipe.mjs +10 -10
- package/esm2022/mask/src/mask/mask.tokens.mjs +16 -16
- package/esm2022/mask/src/mask/mask.utils.mjs +25 -25
- package/esm2022/modal/public-api.mjs +4 -0
- package/esm2022/modal/seniorsistemas-scala-ng-modal.mjs +5 -0
- package/esm2022/modal/src/modal/modal-ref.mjs +84 -0
- package/esm2022/modal/src/modal/modal.component.mjs +262 -0
- package/esm2022/modal/src/modal/modal.service.mjs +119 -0
- package/esm2022/page-header/public-api.mjs +2 -2
- package/esm2022/page-header/src/page-header/page-header.component.mjs +14 -14
- package/esm2022/paginator/public-api.mjs +2 -2
- package/esm2022/paginator/src/paginator/paginator.component.mjs +29 -29
- package/esm2022/panel/public-api.mjs +2 -2
- package/esm2022/panel/src/panel/panel.component.mjs +21 -21
- package/esm2022/progress-bar/public-api.mjs +3 -3
- package/esm2022/progress-bar/src/progress-bar/progress-bar.component.mjs +33 -33
- package/esm2022/progress-bar/src/progress-bar/progress-bar.utils.mjs +5 -5
- package/esm2022/public-api.mjs +11 -9
- package/esm2022/radio-button/public-api.mjs +3 -3
- package/esm2022/radio-button/src/radio-button/radio-button.component.mjs +7 -7
- package/esm2022/radio-button/src/radio-button-group/radio-button-group-error.token.mjs +3 -3
- package/esm2022/radio-button/src/radio-button-group/radio-button-group.component.mjs +7 -7
- package/esm2022/radio-button/src/services/radio-button-registry.service.mjs +4 -4
- package/esm2022/select/public-api.mjs +2 -2
- package/esm2022/select/src/select/select.component.mjs +89 -89
- package/esm2022/select-button/public-api.mjs +2 -2
- package/esm2022/select-button/src/select-button/select-button.component.mjs +131 -131
- package/esm2022/selection-chip/public-api.mjs +2 -2
- package/esm2022/selection-chip/src/selection-chip/selection-chip.component.mjs +24 -24
- package/esm2022/slider/public-api.mjs +2 -2
- package/esm2022/slider/src/slider/slider.component.mjs +82 -82
- package/esm2022/slider/src/slider/slider.types.mjs +1 -1
- package/esm2022/spinner/public-api.mjs +2 -2
- package/esm2022/spinner/src/spinner/spinner.component.mjs +6 -3
- package/esm2022/split-button/public-api.mjs +2 -0
- package/esm2022/split-button/seniorsistemas-scala-ng-split-button.mjs +5 -0
- package/esm2022/split-button/src/split-button/split-button.component.mjs +71 -0
- package/esm2022/stats-card/public-api.mjs +2 -2
- package/esm2022/stats-card/src/stats-card/stats-card.component.mjs +63 -63
- package/esm2022/stats-card/src/stats-card/stats-card.models.mjs +1 -1
- package/esm2022/switch/public-api.mjs +2 -2
- package/esm2022/switch/src/switch/switch.component.mjs +8 -8
- package/esm2022/table/public-api.mjs +3 -3
- package/esm2022/table/src/components/actions-cell/table-actions-cell.component.mjs +7 -7
- package/esm2022/table/src/components/expand-cell/table-expand-cell.component.mjs +4 -4
- package/esm2022/table/src/components/fields/avatar-summary-field-table/avatar-summary-field-table.component.mjs +4 -4
- package/esm2022/table/src/components/fields/base-table-field-config.mjs +1 -1
- package/esm2022/table/src/components/fields/date-field-table/date-field-table.component.mjs +11 -11
- package/esm2022/table/src/components/fields/number-field-table/number-field-table.component.mjs +3 -3
- package/esm2022/table/src/components/fields/rich-field-table/rich-field-table.component.mjs +9 -9
- package/esm2022/table/src/components/fields/string-field-table/string-field-table.component.mjs +3 -3
- package/esm2022/table/src/components/filter-row/table-filter-row.component.mjs +10 -10
- package/esm2022/table/src/components/row-group-header/table-row-group-header.component.mjs +6 -6
- package/esm2022/table/src/components/selection-cell/table-selection-cell.component.mjs +10 -10
- package/esm2022/table/src/components/toolbar/table-toolbar.component.mjs +18 -18
- package/esm2022/table/src/directives/table-actions-column.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-body.directive.mjs +3 -3
- package/esm2022/table/src/directives/table-cell.directive.mjs +9 -9
- package/esm2022/table/src/directives/table-container.directive.mjs +5 -5
- package/esm2022/table/src/directives/table-field.directive.mjs +10 -10
- package/esm2022/table/src/directives/table-grid.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-header-cell.directive.mjs +17 -17
- package/esm2022/table/src/directives/table-header-row.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-paginator-container.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-row-detail-cell.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-row.directive.mjs +10 -10
- package/esm2022/table/src/fields/avatar-summary-table-header.mjs +1 -1
- package/esm2022/table/src/fields/date-table-header.mjs +1 -1
- package/esm2022/table/src/fields/date-utc.utils.mjs +6 -6
- package/esm2022/table/src/fields/number-table-header.mjs +1 -1
- package/esm2022/table/src/fields/rich-table-header.mjs +1 -1
- package/esm2022/table/src/fields/string-table-header.mjs +1 -1
- package/esm2022/table/src/fields/table-header.mjs +1 -1
- package/esm2022/table/src/registry/built-in-field-types.mjs +11 -11
- package/esm2022/table/src/registry/table-field-registry.mjs +7 -7
- package/esm2022/table/src/table/table-toolbar.models.mjs +1 -1
- package/esm2022/table/src/table/table.component.mjs +58 -58
- package/esm2022/table/src/table/table.models.mjs +1 -1
- package/esm2022/table/src/utils/table-filter.utils.mjs +7 -7
- package/esm2022/table/src/utils/table-group.utils.mjs +6 -6
- package/esm2022/table/src/utils/table-lazy-event.utils.mjs +2 -2
- package/esm2022/table/src/utils/table-selection.utils.mjs +4 -4
- package/esm2022/table/src/utils/table-sort.utils.mjs +9 -9
- package/esm2022/tiered-menu/public-api.mjs +2 -2
- package/esm2022/tiered-menu/src/tiered-menu-item-row/tiered-menu-item-row.directive.mjs +8 -8
- package/esm2022/tiered-menu/src/tiered-menu-panel/tiered-menu-panel.component.mjs +16 -16
- package/esm2022/tiered-menu/src/tiered-menu-panel-host/tiered-menu-panel-host.component.mjs +10 -10
- package/esm2022/tiered-menu/src/tiered-menu-trigger/tiered-menu-trigger.directive.mjs +18 -18
- package/esm2022/toast/public-api.mjs +3 -3
- package/esm2022/toast/src/toast/toast.component.mjs +16 -16
- package/esm2022/toast/src/toast/toast.models.mjs +1 -1
- package/esm2022/toast/src/toast-container/toast-container.component.mjs +20 -20
- package/esm2022/toast/src/toast.service.mjs +31 -31
- package/esm2022/tooltip/public-api.mjs +2 -2
- package/esm2022/tooltip/src/tooltip/tooltip-collision-registry.service.mjs +4 -4
- package/esm2022/tooltip/src/tooltip/tooltip-focus-origin.service.mjs +5 -5
- package/esm2022/tooltip/src/tooltip/tooltip.types.mjs +1 -1
- package/esm2022/tooltip/src/tooltip-panel/tooltip-panel.component.mjs +23 -23
- package/esm2022/tooltip/src/tooltip-trigger/tooltip-trigger.directive.mjs +93 -93
- package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs +51 -51
- package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs +64 -64
- package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-badge.mjs +22 -22
- package/fesm2022/seniorsistemas-scala-ng-badge.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-banner.mjs +32 -32
- package/fesm2022/seniorsistemas-scala-ng-banner.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs +33 -33
- package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-button.mjs +21 -21
- package/fesm2022/seniorsistemas-scala-ng-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-card.mjs +30 -30
- package/fesm2022/seniorsistemas-scala-ng-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs +1 -1
- package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-content-lifecycle.mjs +12 -12
- package/fesm2022/seniorsistemas-scala-ng-content-lifecycle.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs +159 -159
- package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-display-tag.mjs +33 -33
- package/fesm2022/seniorsistemas-scala-ng-display-tag.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-drawer.mjs +29 -29
- package/fesm2022/seniorsistemas-scala-ng-drawer.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs +23 -23
- package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-filter-tag.mjs +7 -7
- package/fesm2022/seniorsistemas-scala-ng-filter-tag.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-form-field.mjs +22 -22
- package/fesm2022/seniorsistemas-scala-ng-form-field.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-input-feedback.mjs +10 -10
- package/fesm2022/seniorsistemas-scala-ng-input-feedback.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-input.mjs +49 -38
- package/fesm2022/seniorsistemas-scala-ng-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs +39 -39
- package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-list.mjs +84 -84
- package/fesm2022/seniorsistemas-scala-ng-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-loading-state.mjs +354 -0
- package/fesm2022/seniorsistemas-scala-ng-loading-state.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-locale.mjs +134 -128
- package/fesm2022/seniorsistemas-scala-ng-locale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-mask.mjs +106 -106
- package/fesm2022/seniorsistemas-scala-ng-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-modal.mjs +466 -0
- package/fesm2022/seniorsistemas-scala-ng-modal.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-page-header.mjs +9 -9
- package/fesm2022/seniorsistemas-scala-ng-page-header.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-paginator.mjs +20 -20
- package/fesm2022/seniorsistemas-scala-ng-paginator.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-panel.mjs +14 -14
- package/fesm2022/seniorsistemas-scala-ng-panel.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-progress-bar.mjs +31 -31
- package/fesm2022/seniorsistemas-scala-ng-progress-bar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs +6 -6
- package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-select-button.mjs +122 -122
- package/fesm2022/seniorsistemas-scala-ng-select-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-select.mjs +76 -76
- package/fesm2022/seniorsistemas-scala-ng-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-selection-chip.mjs +19 -19
- package/fesm2022/seniorsistemas-scala-ng-selection-chip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-slider.mjs +72 -72
- package/fesm2022/seniorsistemas-scala-ng-slider.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-spinner.mjs +4 -1
- package/fesm2022/seniorsistemas-scala-ng-spinner.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-split-button.mjs +78 -0
- package/fesm2022/seniorsistemas-scala-ng-split-button.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs +58 -58
- package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-switch.mjs +4 -4
- package/fesm2022/seniorsistemas-scala-ng-switch.mjs.map +1 -1
- package/fesm2022/{seniorsistemas-scala-ng-table-table-actions-cell.component-DTzDhrMk.mjs → seniorsistemas-scala-ng-table-table-actions-cell.component-D_eZKncd.mjs} +2 -2
- package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-D_eZKncd.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-C0Y1KaWD.mjs +27 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-C0Y1KaWD.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-C9s1ObGb.mjs +68 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-C9s1ObGb.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-table.mjs +138 -138
- package/fesm2022/seniorsistemas-scala-ng-table.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-tiered-menu.mjs +35 -35
- package/fesm2022/seniorsistemas-scala-ng-tiered-menu.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-toast.mjs +54 -54
- package/fesm2022/seniorsistemas-scala-ng-toast.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs +110 -110
- package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng.mjs +110 -54
- package/fesm2022/seniorsistemas-scala-ng.mjs.map +1 -1
- package/filter-tag/README.md +1 -1
- package/filter-tag/public-api.d.ts +1 -1
- package/filter-tag/src/filter-tag/filter-tag.component.d.ts +1 -1
- package/form-field/public-api.d.ts +2 -2
- package/form-field/src/form-field/form-field.component.d.ts +14 -14
- package/input/README.md +13 -10
- package/input/public-api.d.ts +1 -1
- package/input/src/input/input.component.d.ts +8 -5
- package/input-feedback/README.md +7 -7
- package/input-feedback/public-api.d.ts +1 -1
- package/input-feedback/src/input-feedback/input-feedback.component.d.ts +2 -2
- package/item-strip/README.md +1 -1
- package/item-strip/public-api.d.ts +2 -2
- package/item-strip/src/item-strip/item-strip.component.d.ts +1 -1
- package/item-strip/src/item-strip-item/item-strip-item.component.d.ts +27 -27
- package/item-strip/src/item-strip-item/item-strip-item.d.ts +1 -1
- package/lib/a11y/focusable-item.utils.d.ts +1 -1
- package/lib/chip/chip.utils.d.ts +3 -3
- package/lib/combobox/combobox.utils.d.ts +2 -2
- package/lib/forms/control-state.utils.d.ts +2 -2
- package/lib/overlay/exclusive-dialog.utils.d.ts +7 -0
- package/lib/overlay/scrollable-region.utils.d.ts +5 -0
- package/lib/theme/create-theme.d.ts +2 -2
- package/lib/theme/semantic-tokens.d.ts +1 -1
- package/lib/theme/theme.service.d.ts +1 -1
- package/list/README.md +1 -1
- package/list/public-api.d.ts +2 -2
- package/list/src/list/list.component.d.ts +1 -1
- package/list/src/list/list.models.d.ts +5 -5
- package/list/src/list/list.tokens.d.ts +1 -1
- package/list/src/list-group/list-group.component.d.ts +1 -1
- package/list/src/list-item/list-item.component.d.ts +11 -11
- package/loading-state/README.md +60 -0
- package/loading-state/index.d.ts +5 -0
- package/loading-state/package.json +3 -0
- package/loading-state/public-api.d.ts +5 -0
- package/loading-state/src/loading-state/loading-state.directive.d.ts +37 -0
- package/loading-state/src/loading-state/loading-state.types.d.ts +3 -0
- package/loading-state/src/loading-state/loading-visibility.utils.d.ts +11 -0
- package/loading-state/src/pulse/pulse.component.d.ts +27 -0
- package/loading-state/src/pulse/senior-isotype.component.d.ts +5 -0
- package/loading-state/src/spinner/loading-spinner.component.d.ts +8 -0
- package/locale/public-api.d.ts +1 -1
- package/mask/README.md +1 -1
- package/mask/public-api.d.ts +4 -4
- package/mask/src/mask/mask.directive.d.ts +2 -2
- package/mask/src/mask/mask.pipe.d.ts +2 -2
- package/mask/src/mask/mask.utils.d.ts +1 -1
- package/modal/README.md +435 -0
- package/modal/index.d.ts +5 -0
- package/modal/package.json +3 -0
- package/modal/public-api.d.ts +3 -0
- package/modal/src/modal/modal-ref.d.ts +51 -0
- package/modal/src/modal/modal.component.d.ts +82 -0
- package/modal/src/modal/modal.service.d.ts +62 -0
- package/package.json +22 -1
- package/page-header/README.md +1 -1
- package/page-header/public-api.d.ts +1 -1
- package/page-header/src/page-header/page-header.component.d.ts +2 -2
- package/paginator/public-api.d.ts +2 -2
- package/paginator/src/paginator/paginator.component.d.ts +3 -3
- package/panel/README.md +1 -1
- package/panel/public-api.d.ts +1 -1
- package/panel/src/panel/panel.component.d.ts +3 -3
- package/progress-bar/README.md +4 -4
- package/progress-bar/public-api.d.ts +4 -4
- package/progress-bar/src/progress-bar/progress-bar.component.d.ts +3 -3
- package/progress-bar/src/progress-bar/progress-bar.utils.d.ts +1 -1
- package/public-api.d.ts +11 -9
- package/radio-button/README.md +1 -1
- package/radio-button/public-api.d.ts +3 -3
- package/radio-button/src/radio-button/radio-button.component.d.ts +2 -2
- package/radio-button/src/radio-button-group/radio-button-group-error.token.d.ts +1 -1
- package/radio-button/src/radio-button-group/radio-button-group.component.d.ts +3 -3
- package/radio-button/src/services/radio-button-registry.service.d.ts +1 -1
- package/schematics/migrate-spinner-to-loading-state/index.js +75 -0
- package/schematics/migrate-spinner-to-loading-state/index.js.map +1 -0
- package/schematics/migrations.json +10 -0
- package/schematics/ng-add/index.js +29 -29
- package/select/README.md +19 -15
- package/select/public-api.d.ts +2 -2
- package/select/src/select/select.component.d.ts +11 -11
- package/select-button/README.md +1 -1
- package/select-button/public-api.d.ts +2 -2
- package/select-button/src/select-button/select-button.component.d.ts +7 -7
- package/selection-chip/README.md +1 -1
- package/selection-chip/public-api.d.ts +1 -1
- package/selection-chip/src/selection-chip/selection-chip.component.d.ts +3 -3
- package/slider/README.md +6 -6
- package/slider/public-api.d.ts +2 -2
- package/slider/src/slider/slider.component.d.ts +3 -3
- package/slider/src/slider/slider.types.d.ts +3 -3
- package/spinner/README.md +9 -1
- package/spinner/public-api.d.ts +1 -1
- package/spinner/src/spinner/spinner.component.d.ts +3 -0
- package/split-button/README.md +208 -0
- package/split-button/index.d.ts +5 -0
- package/split-button/package.json +3 -0
- package/split-button/public-api.d.ts +1 -0
- package/split-button/src/split-button/split-button.component.d.ts +29 -0
- package/stats-card/README.md +1 -1
- package/stats-card/public-api.d.ts +2 -2
- package/stats-card/src/stats-card/stats-card.component.d.ts +415 -415
- package/stats-card/src/stats-card/stats-card.models.d.ts +3 -3
- package/styles/tailwind-preset.js +30 -13
- package/styles/tailwind-tokens.js +286 -286
- package/styles/tokens/index.scss +7 -7
- package/styles/tokens/semantic-colors.scss +4 -2
- package/styles.scss +7 -7
- package/switch/README.md +5 -5
- package/switch/public-api.d.ts +1 -1
- package/switch/src/switch/switch.component.d.ts +1 -1
- package/table/README.md +21 -21
- package/table/public-api.d.ts +12 -12
- package/table/src/components/actions-cell/table-actions-cell.component.d.ts +2 -2
- package/table/src/components/fields/avatar-summary-field-table/avatar-summary-field-table.component.d.ts +2 -2
- package/table/src/components/fields/base-table-field-config.d.ts +2 -2
- package/table/src/components/fields/date-field-table/date-field-table.component.d.ts +2 -2
- package/table/src/components/fields/number-field-table/number-field-table.component.d.ts +2 -2
- package/table/src/components/fields/rich-field-table/rich-field-table.component.d.ts +2 -2
- package/table/src/components/fields/string-field-table/string-field-table.component.d.ts +2 -2
- package/table/src/components/filter-row/table-filter-row.component.d.ts +1 -1
- package/table/src/components/selection-cell/table-selection-cell.component.d.ts +2 -2
- package/table/src/components/toolbar/table-toolbar.component.d.ts +3 -3
- package/table/src/directives/table-field.directive.d.ts +1 -1
- package/table/src/fields/avatar-summary-table-header.d.ts +4 -4
- package/table/src/fields/date-table-header.d.ts +3 -3
- package/table/src/fields/number-table-header.d.ts +3 -3
- package/table/src/fields/rich-table-header.d.ts +4 -4
- package/table/src/fields/string-table-header.d.ts +4 -4
- package/table/src/fields/table-header.d.ts +2 -2
- package/table/src/registry/built-in-field-types.d.ts +1 -1
- package/table/src/registry/table-field-registry.d.ts +4 -4
- package/table/src/table/table-toolbar.models.d.ts +1 -1
- package/table/src/table/table.component.d.ts +11 -11
- package/table/src/table/table.models.d.ts +2 -2
- package/table/src/utils/table-filter.utils.d.ts +1 -1
- package/table/src/utils/table-group.utils.d.ts +4 -4
- package/table/src/utils/table-lazy-event.utils.d.ts +3 -3
- package/table/src/utils/table-selection.utils.d.ts +2 -2
- package/table/src/utils/table-sort.utils.d.ts +2 -2
- package/tiered-menu/README.md +2 -2
- package/tiered-menu/public-api.d.ts +2 -2
- package/tiered-menu/src/tiered-menu-panel/tiered-menu-panel.component.d.ts +2 -2
- package/tiered-menu/src/tiered-menu-panel-host/tiered-menu-panel-host.component.d.ts +2 -2
- package/tiered-menu/src/tiered-menu-trigger/tiered-menu-trigger.directive.d.ts +2 -2
- package/toast/README.md +17 -17
- package/toast/public-api.d.ts +3 -3
- package/toast/src/toast/toast.component.d.ts +1 -1
- package/toast/src/toast/toast.models.d.ts +3 -3
- package/toast/src/toast-container/toast-container.component.d.ts +1 -1
- package/toast/src/toast.service.d.ts +5 -5
- package/tooltip/README.md +1 -1
- package/tooltip/public-api.d.ts +2 -2
- package/tooltip/src/tooltip/tooltip-focus-origin.service.d.ts +2 -2
- package/tooltip/src/tooltip/tooltip.types.d.ts +3 -3
- package/tooltip/src/tooltip-panel/tooltip-panel.component.d.ts +4 -4
- package/tooltip/src/tooltip-trigger/tooltip-trigger.directive.d.ts +2 -2
- package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-DTzDhrMk.mjs.map +0 -1
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs +0 -27
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs.map +0 -1
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs +0 -68
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs.map +0 -1
|
@@ -10,7 +10,7 @@ import { TranslatePipe } from '@ngx-translate/core';
|
|
|
10
10
|
import { filterComboboxOptions, buildDisplayRows, syncControlState, getComboboxOptionEl } from '@seniorsistemas/scala-ng';
|
|
11
11
|
import { SdsInputComponent } from '@seniorsistemas/scala-ng/input';
|
|
12
12
|
import { SdsInputFeedbackComponent } from '@seniorsistemas/scala-ng/input-feedback';
|
|
13
|
-
import {
|
|
13
|
+
import { SdsLoadingSpinnerComponent } from '@seniorsistemas/scala-ng/loading-state';
|
|
14
14
|
|
|
15
15
|
class SdsAutocompletePanelComponent {
|
|
16
16
|
/** ID of the panel root element; the trigger uses it to detect focus inside the panel. */
|
|
@@ -20,11 +20,11 @@ class SdsAutocompletePanelComponent {
|
|
|
20
20
|
/** Prefix for option IDs, in the form `{prefix}-option-{index}`. */
|
|
21
21
|
optionIdPrefix = input.required();
|
|
22
22
|
/** Listbox `aria-label`, usually the parent field label. */
|
|
23
|
-
label = input(
|
|
23
|
+
label = input('');
|
|
24
24
|
/** Shows a spinner instead of the listbox. */
|
|
25
25
|
loading = input(false);
|
|
26
26
|
/** Empty-state message. Overrides the default i18n text. */
|
|
27
|
-
emptyMessage = input(
|
|
27
|
+
emptyMessage = input('');
|
|
28
28
|
/** Rows to render: group headers and already-filtered options. */
|
|
29
29
|
displayRows = input.required();
|
|
30
30
|
/** Index of the option highlighted by keyboard or hover; `-1` for none. */
|
|
@@ -37,18 +37,18 @@ class SdsAutocompletePanelComponent {
|
|
|
37
37
|
optionSelect = output();
|
|
38
38
|
/** Emits the hovered option index, or `-1` when the pointer leaves the listbox. */
|
|
39
39
|
focusChange = output();
|
|
40
|
-
hasOptions = computed(() => this.displayRows().some((r) => r.type ===
|
|
40
|
+
hasOptions = computed(() => this.displayRows().some((r) => r.type === 'option'));
|
|
41
41
|
groupedRows = computed(() => {
|
|
42
42
|
const groups = [];
|
|
43
43
|
let current = null;
|
|
44
44
|
for (const row of this.displayRows()) {
|
|
45
|
-
if (row.type ===
|
|
45
|
+
if (row.type === 'header') {
|
|
46
46
|
current = { id: row.trackId, label: row.label, options: [] };
|
|
47
47
|
groups.push(current);
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
if (!current) {
|
|
51
|
-
current = { id:
|
|
51
|
+
current = { id: 'ungrouped', options: [] };
|
|
52
52
|
groups.push(current);
|
|
53
53
|
}
|
|
54
54
|
current.options.push(row);
|
|
@@ -61,11 +61,11 @@ class SdsAutocompletePanelComponent {
|
|
|
61
61
|
return internal !== null && this.compareWith()(optionValue, internal);
|
|
62
62
|
}
|
|
63
63
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompletePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompletePanelComponent, isStandalone: true, selector: "sds-autocomplete-panel", inputs: { panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: true, transformFunction: null }, listboxId: { classPropertyName: "listboxId", publicName: "listboxId", isSignal: true, isRequired: true, transformFunction: null }, optionIdPrefix: { classPropertyName: "optionIdPrefix", publicName: "optionIdPrefix", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, displayRows: { classPropertyName: "displayRows", publicName: "displayRows", isSignal: true, isRequired: true, transformFunction: null }, focusedIndex: { classPropertyName: "focusedIndex", publicName: "focusedIndex", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { optionSelect: "optionSelect", focusChange: "focusChange" }, ngImport: i0, template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-spinner
|
|
64
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompletePanelComponent, isStandalone: true, selector: "sds-autocomplete-panel", inputs: { panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: true, transformFunction: null }, listboxId: { classPropertyName: "listboxId", publicName: "listboxId", isSignal: true, isRequired: true, transformFunction: null }, optionIdPrefix: { classPropertyName: "optionIdPrefix", publicName: "optionIdPrefix", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, displayRows: { classPropertyName: "displayRows", publicName: "displayRows", isSignal: true, isRequired: true, transformFunction: null }, focusedIndex: { classPropertyName: "focusedIndex", publicName: "focusedIndex", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { optionSelect: "optionSelect", focusChange: "focusChange" }, ngImport: i0, template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-loading-spinner [size]=\"20\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: SdsLoadingSpinnerComponent, selector: "sds-loading-spinner", inputs: ["size"] }] });
|
|
65
65
|
}
|
|
66
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompletePanelComponent, decorators: [{
|
|
67
67
|
type: Component,
|
|
68
|
-
args: [{ selector:
|
|
68
|
+
args: [{ selector: 'sds-autocomplete-panel', standalone: true, imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsLoadingSpinnerComponent], template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-loading-spinner [size]=\"20\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n", styles: [":host{display:block;width:100%}\n"] }]
|
|
69
69
|
}] });
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -98,12 +98,12 @@ class SdsAutocompleteComponent {
|
|
|
98
98
|
sso = inject(ScrollStrategyOptions);
|
|
99
99
|
destroyRef = inject(DestroyRef);
|
|
100
100
|
sdsInputRef = viewChild.required(SdsInputComponent);
|
|
101
|
-
triggerElRef = viewChild.required(
|
|
101
|
+
triggerElRef = viewChild.required('triggerEl');
|
|
102
102
|
_id;
|
|
103
103
|
_listboxId;
|
|
104
104
|
_panelId;
|
|
105
105
|
ngControl = inject(NgControl, { self: true, optional: true });
|
|
106
|
-
internalTextControl = new FormControl(
|
|
106
|
+
internalTextControl = new FormControl('', { nonNullable: true });
|
|
107
107
|
_formInvalid = signal(false);
|
|
108
108
|
isControlInvalid = computed(() => this.ngControl ? this._formInvalid() : this.required() && this.internalValue() === null);
|
|
109
109
|
isControlTouched = signal(false);
|
|
@@ -111,29 +111,29 @@ class SdsAutocompleteComponent {
|
|
|
111
111
|
formDisabled = signal(false);
|
|
112
112
|
focusedIndex = signal(-1);
|
|
113
113
|
internalValue = signal(null);
|
|
114
|
-
inputText = signal(
|
|
114
|
+
inputText = signal('');
|
|
115
115
|
triggerWidth = signal(0);
|
|
116
116
|
scrollStrategy = this.sso.reposition();
|
|
117
117
|
overlayPositions = this.buildOverlayPositions();
|
|
118
118
|
/** Options shown in the panel, as plain strings or `AutocompleteOption<T>` objects. */
|
|
119
119
|
options = input.required({
|
|
120
120
|
transform: (value) => value.map((option) => {
|
|
121
|
-
const base = typeof option ===
|
|
121
|
+
const base = typeof option === 'string' ? { label: option, value: option } : option;
|
|
122
122
|
return { ...base, _trackId: crypto.randomUUID() };
|
|
123
123
|
}),
|
|
124
124
|
});
|
|
125
125
|
/** Field label; also used as `aria-label` when `showLabel` is false. */
|
|
126
|
-
label = input(
|
|
126
|
+
label = input('');
|
|
127
127
|
/** Field height: `"default"` = 40px, `"small"` = 32px. */
|
|
128
|
-
size = input(
|
|
128
|
+
size = input('default');
|
|
129
129
|
/** Text shown in parentheses next to the label to mark the field as optional. */
|
|
130
|
-
optionalText = input(
|
|
130
|
+
optionalText = input('');
|
|
131
131
|
/** Marks the field as required, adding the `*` indicator and `aria-required`. */
|
|
132
132
|
required = input(false);
|
|
133
133
|
/** Text shown when there is no selected value or typed text. */
|
|
134
|
-
placeholder = input(
|
|
134
|
+
placeholder = input('');
|
|
135
135
|
/** Helper text shown below the field when there is no error or success message. */
|
|
136
|
-
helperText = input(
|
|
136
|
+
helperText = input('');
|
|
137
137
|
/** Disables the field and its options panel. */
|
|
138
138
|
disabled = input(false);
|
|
139
139
|
/** Shows the value but blocks editing and selection. */
|
|
@@ -145,7 +145,7 @@ class SdsAutocompleteComponent {
|
|
|
145
145
|
/** Shows a loading spinner in the panel instead of the options. */
|
|
146
146
|
loading = input(false);
|
|
147
147
|
/** Message shown when there are no options. Overrides the default i18n text. */
|
|
148
|
-
emptyMessage = input(
|
|
148
|
+
emptyMessage = input('');
|
|
149
149
|
/** Property or predicate for filtering by typed text. Defaults to matching `option.label`. */
|
|
150
150
|
filterBy = input();
|
|
151
151
|
/** Equality function used to find the selected option. */
|
|
@@ -159,12 +159,12 @@ class SdsAutocompleteComponent {
|
|
|
159
159
|
isDisabled = computed(() => this.disabled() || this.formDisabled());
|
|
160
160
|
fieldState = computed(() => {
|
|
161
161
|
if (this.isDisabled()) {
|
|
162
|
-
return
|
|
162
|
+
return 'disabled';
|
|
163
163
|
}
|
|
164
164
|
if (!this.isControlTouched()) {
|
|
165
|
-
return
|
|
165
|
+
return 'default';
|
|
166
166
|
}
|
|
167
|
-
return this.isControlInvalid() ?
|
|
167
|
+
return this.isControlInvalid() ? 'invalid' : 'valid';
|
|
168
168
|
});
|
|
169
169
|
selectedOption = computed(() => {
|
|
170
170
|
const value = this.internalValue();
|
|
@@ -179,16 +179,16 @@ class SdsAutocompleteComponent {
|
|
|
179
179
|
navigableOptions = computed(() => this.filteredOptions().map((option) => new AutocompleteOptionAdapter(option)));
|
|
180
180
|
keyManager;
|
|
181
181
|
ariaAttrs = computed(() => ({
|
|
182
|
-
role:
|
|
183
|
-
autocomplete:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
182
|
+
role: 'combobox',
|
|
183
|
+
autocomplete: 'off',
|
|
184
|
+
'aria-expanded': this.isOpen() ? 'true' : 'false',
|
|
185
|
+
'aria-haspopup': 'listbox',
|
|
186
|
+
'aria-controls': this.isOpen() ? this._listboxId : null,
|
|
187
|
+
'aria-autocomplete': 'list',
|
|
188
|
+
'aria-required': this.required() ? 'true' : null,
|
|
189
|
+
'aria-invalid': this.isControlTouched() && this.isControlInvalid() ? 'true' : null,
|
|
190
|
+
'aria-label': !this.showLabel() && this.label() ? this.label() : null,
|
|
191
|
+
'aria-activedescendant': this.isOpen() && this.focusedIndex() >= 0
|
|
192
192
|
? `${this._id}-option-${this.focusedIndex()}`
|
|
193
193
|
: null,
|
|
194
194
|
}));
|
|
@@ -230,8 +230,8 @@ class SdsAutocompleteComponent {
|
|
|
230
230
|
writeValue(value) {
|
|
231
231
|
this.internalValue.set(value ?? null);
|
|
232
232
|
const label = value !== null && value !== undefined
|
|
233
|
-
? (this.options().find((o) => this.compareWith()(o.value, value))?.label ??
|
|
234
|
-
:
|
|
233
|
+
? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? '')
|
|
234
|
+
: '';
|
|
235
235
|
this.inputText.set(label);
|
|
236
236
|
this.internalTextControl.setValue(label, { emitEvent: false });
|
|
237
237
|
}
|
|
@@ -250,7 +250,7 @@ class SdsAutocompleteComponent {
|
|
|
250
250
|
get control() {
|
|
251
251
|
const ctrl = this.ngControl?.control;
|
|
252
252
|
if (!ctrl) {
|
|
253
|
-
throw new Error(
|
|
253
|
+
throw new Error('control accessed outside NgControl context');
|
|
254
254
|
}
|
|
255
255
|
return ctrl;
|
|
256
256
|
}
|
|
@@ -275,7 +275,7 @@ class SdsAutocompleteComponent {
|
|
|
275
275
|
}
|
|
276
276
|
this.isOpen.set(false);
|
|
277
277
|
this.keyManager.setActiveItem(-1);
|
|
278
|
-
const label = this.selectedOption()?.label ??
|
|
278
|
+
const label = this.selectedOption()?.label ?? '';
|
|
279
279
|
this.inputText.set(label);
|
|
280
280
|
this.internalTextControl.setValue(label, { emitEvent: false });
|
|
281
281
|
}
|
|
@@ -298,8 +298,8 @@ class SdsAutocompleteComponent {
|
|
|
298
298
|
}
|
|
299
299
|
clearSelection() {
|
|
300
300
|
this.internalValue.set(null);
|
|
301
|
-
this.inputText.set(
|
|
302
|
-
this.internalTextControl.setValue(
|
|
301
|
+
this.inputText.set('');
|
|
302
|
+
this.internalTextControl.setValue('', { emitEvent: false });
|
|
303
303
|
this.onChange(null);
|
|
304
304
|
this.isControlTouched.set(true);
|
|
305
305
|
this.onTouched();
|
|
@@ -309,16 +309,16 @@ class SdsAutocompleteComponent {
|
|
|
309
309
|
}
|
|
310
310
|
handleInputKeydown(event) {
|
|
311
311
|
switch (event.key) {
|
|
312
|
-
case
|
|
312
|
+
case 'Enter': {
|
|
313
313
|
this.handleEnter(event);
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
|
-
case
|
|
316
|
+
case 'Escape': {
|
|
317
317
|
this.handleEscape(event);
|
|
318
318
|
break;
|
|
319
319
|
}
|
|
320
|
-
case
|
|
321
|
-
case
|
|
320
|
+
case 'ArrowDown':
|
|
321
|
+
case 'ArrowUp': {
|
|
322
322
|
if (!this.isOpen()) {
|
|
323
323
|
event.preventDefault();
|
|
324
324
|
this.openPanel();
|
|
@@ -327,10 +327,10 @@ class SdsAutocompleteComponent {
|
|
|
327
327
|
this.handleListNavigationKey(event);
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
|
-
case
|
|
331
|
-
case
|
|
332
|
-
case
|
|
333
|
-
case
|
|
330
|
+
case 'Home':
|
|
331
|
+
case 'End':
|
|
332
|
+
case 'PageDown':
|
|
333
|
+
case 'PageUp': {
|
|
334
334
|
if (!this.isOpen()) {
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
@@ -401,12 +401,12 @@ class SdsAutocompleteComponent {
|
|
|
401
401
|
buildOverlayPositions() {
|
|
402
402
|
const DEFAULT_OFFSET = 12;
|
|
403
403
|
const offsetStr = getComputedStyle(this.document.documentElement)
|
|
404
|
-
.getPropertyValue(
|
|
404
|
+
.getPropertyValue('--sds-space-1-5')
|
|
405
405
|
.trim();
|
|
406
406
|
const offset = offsetStr ? parseInt(offsetStr, 10) : DEFAULT_OFFSET;
|
|
407
407
|
return [
|
|
408
|
-
{ originX:
|
|
409
|
-
{ originX:
|
|
408
|
+
{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },
|
|
409
|
+
{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },
|
|
410
410
|
];
|
|
411
411
|
}
|
|
412
412
|
setupTextControlSubscription() {
|
|
@@ -426,16 +426,16 @@ class SdsAutocompleteComponent {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
scrollOptionIntoView(index) {
|
|
429
|
-
getComboboxOptionEl(this.elementRef.nativeElement.ownerDocument, this._id, index)?.scrollIntoView({ block:
|
|
429
|
+
getComboboxOptionEl(this.elementRef.nativeElement.ownerDocument, this._id, index)?.scrollIntoView({ block: 'nearest' });
|
|
430
430
|
}
|
|
431
431
|
onChange = () => { };
|
|
432
432
|
onTouched = () => { };
|
|
433
433
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
434
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompleteComponent, isStandalone: true, selector: "sds-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showHelper: { classPropertyName: "showHelper", publicName: "showHelper", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, errorMessages: { classPropertyName: "errorMessages", publicName: "errorMessages", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "search" }, viewQueries: [{ propertyName: "sdsInputRef", first: true, predicate: SdsInputComponent, descendants: true, isSignal: true }, { propertyName: "triggerElRef", first: true, predicate: ["triggerEl"], descendants: true, isSignal: true }], ngImport: i0, template: "@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n", dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SdsInputComponent, selector: "sds-input", inputs: ["label", "subtitle", "icon", "type", "placeholder", "size", "readonly", "showDefaultIcon", "showNativeDropdown", "errorMessages", "validMessage", "adviceMessage", "inputClassName", "containerClassName", "showLabel", "showHelper", "required", "state", "nativeInputAttrs", "inputId", "mask", "unmask", "maskPatterns", "showMaskTyped", "placeHolderCharacter", "prefix", "suffix", "clearIfNotMatch", "leadZeroDateTime", "hiddenInput", "inputMode", "maskHint", "separator", "thousandSeparator", "decimalDigits"], outputs: ["focusIn", "focusOut", "inputClick", "inputKeydown", "maskFilled"] }, { kind: "component", type: SdsInputFeedbackComponent, selector: "sds-input-feedback", inputs: ["control", "errorMessages", "validMessage", "adviceMessage"] }, { kind: "component", type: SdsAutocompletePanelComponent, selector: "sds-autocomplete-panel", inputs: ["panelId", "listboxId", "optionIdPrefix", "label", "loading", "emptyMessage", "displayRows", "focusedIndex", "selectedValue", "compareWith"], outputs: ["optionSelect", "focusChange"] }, { kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }] });
|
|
434
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompleteComponent, isStandalone: true, selector: "sds-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showHelper: { classPropertyName: "showHelper", publicName: "showHelper", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, errorMessages: { classPropertyName: "errorMessages", publicName: "errorMessages", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "search" }, viewQueries: [{ propertyName: "sdsInputRef", first: true, predicate: SdsInputComponent, descendants: true, isSignal: true }, { propertyName: "triggerElRef", first: true, predicate: ["triggerEl"], descendants: true, isSignal: true }], ngImport: i0, template: "@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n", dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SdsInputComponent, selector: "sds-input", inputs: ["label", "subtitle", "icon", "type", "placeholder", "size", "readonly", "showDefaultIcon", "showNativeDropdown", "errorMessages", "validMessage", "adviceMessage", "inputClassName", "containerClassName", "showLabel", "showHelper", "required", "loading", "state", "nativeInputAttrs", "inputId", "mask", "unmask", "maskPatterns", "showMaskTyped", "placeHolderCharacter", "prefix", "suffix", "clearIfNotMatch", "leadZeroDateTime", "hiddenInput", "inputMode", "maskHint", "separator", "thousandSeparator", "decimalDigits"], outputs: ["focusIn", "focusOut", "inputClick", "inputKeydown", "maskFilled"] }, { kind: "component", type: SdsInputFeedbackComponent, selector: "sds-input-feedback", inputs: ["control", "errorMessages", "validMessage", "adviceMessage"] }, { kind: "component", type: SdsAutocompletePanelComponent, selector: "sds-autocomplete-panel", inputs: ["panelId", "listboxId", "optionIdPrefix", "label", "loading", "emptyMessage", "displayRows", "focusedIndex", "selectedValue", "compareWith"], outputs: ["optionSelect", "focusChange"] }, { kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }] });
|
|
435
435
|
}
|
|
436
436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompleteComponent, decorators: [{
|
|
437
437
|
type: Component,
|
|
438
|
-
args: [{ selector:
|
|
438
|
+
args: [{ selector: 'sds-autocomplete', standalone: true, imports: [
|
|
439
439
|
TranslatePipe,
|
|
440
440
|
ReactiveFormsModule,
|
|
441
441
|
SdsInputComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seniorsistemas-scala-ng-autocomplete.mjs","sources":["../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.html","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.html","../../projects/scala-ng/autocomplete/seniorsistemas-scala-ng-autocomplete.ts"],"sourcesContent":["import { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { Component, computed, input, output } from \"@angular/core\";\n\nimport { TranslatePipe } from \"@ngx-translate/core\";\nimport { SdsSpinnerComponent } from \"@seniorsistemas/scala-ng/spinner\";\n\nimport type { AutocompleteOption, DisplayRow } from \"../autocomplete.models\";\n\n@Component({\n selector: \"sds-autocomplete-panel\",\n standalone: true,\n imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsSpinnerComponent],\n templateUrl: \"./autocomplete-panel.component.html\",\n styles: [\":host { display: block; width: 100%; }\"],\n})\nexport class SdsAutocompletePanelComponent<T = unknown> {\n /** ID of the panel root element; the trigger uses it to detect focus inside the panel. */\n readonly panelId = input.required<string>();\n\n /** ID of the `role=\"listbox\"` element, referenced by the combobox `aria-controls`. */\n readonly listboxId = input.required<string>();\n\n /** Prefix for option IDs, in the form `{prefix}-option-{index}`. */\n readonly optionIdPrefix = input.required<string>();\n\n /** Listbox `aria-label`, usually the parent field label. */\n readonly label = input<string>(\"\");\n\n /** Shows a spinner instead of the listbox. */\n readonly loading = input<boolean>(false);\n\n /** Empty-state message. Overrides the default i18n text. */\n readonly emptyMessage = input<string>(\"\");\n\n /** Rows to render: group headers and already-filtered options. */\n readonly displayRows = input.required<DisplayRow<T>[]>();\n\n /** Index of the option highlighted by keyboard or hover; `-1` for none. */\n readonly focusedIndex = input<number>(-1);\n\n /** Currently selected value, matched via `compareWith` to set `aria-selected`. */\n readonly selectedValue = input<T | null>(null);\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Emits the option the user clicks or presses Enter on. */\n readonly optionSelect = output<AutocompleteOption<T>>();\n\n /** Emits the hovered option index, or `-1` when the pointer leaves the listbox. */\n readonly focusChange = output<number>();\n\n protected readonly hasOptions = computed(() =>\n this.displayRows().some((r) => r.type === \"option\"),\n );\n\n protected readonly groupedRows = computed(() => {\n type OptionRow = Extract<DisplayRow<T>, { type: \"option\" }>;\n const groups: { id: string; label?: string; options: OptionRow[] }[] = [];\n let current: (typeof groups)[number] | null = null;\n\n for (const row of this.displayRows()) {\n if (row.type === \"header\") {\n current = { id: row.trackId, label: row.label, options: [] };\n groups.push(current);\n } else {\n if (!current) {\n current = { id: \"ungrouped\", options: [] };\n groups.push(current);\n }\n current.options.push(row as OptionRow);\n }\n }\n\n return groups;\n });\n\n protected isOptionSelected(optionValue: T): boolean {\n const internal = this.selectedValue();\n return internal !== null && this.compareWith()(optionValue, internal);\n }\n}\n","<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-spinner class=\"text-color-text-neutral-secondary\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || (\"platform.scala-ng.autocomplete_empty_label\" | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n","import { ActiveDescendantKeyManager, Highlightable } from \"@angular/cdk/a11y\";\nimport {\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ConnectedPosition,\n ScrollStrategyOptions,\n} from \"@angular/cdk/overlay\";\nimport { DOCUMENT } from \"@angular/common\";\nimport {\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n NgZone,\n OnInit,\n output,\n signal,\n viewChild,\n} from \"@angular/core\";\nimport { takeUntilDestroyed } from \"@angular/core/rxjs-interop\";\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormControl,\n NgControl,\n ReactiveFormsModule,\n} from \"@angular/forms\";\n\nimport { TranslatePipe } from \"@ngx-translate/core\";\nimport {\n buildDisplayRows,\n filterComboboxOptions,\n getComboboxOptionEl,\n syncControlState,\n} from \"@seniorsistemas/scala-ng\";\nimport { type FieldState } from \"@seniorsistemas/scala-ng/form-field\";\nimport { SdsInputComponent } from \"@seniorsistemas/scala-ng/input\";\nimport { SdsInputFeedbackComponent } from \"@seniorsistemas/scala-ng/input-feedback\";\n\nimport type { AutocompleteOption, DisplayRow, TaggedOption } from \"./autocomplete.models\";\nimport { SdsAutocompletePanelComponent } from \"./panel/autocomplete-panel.component\";\n\n/**\n * Adapts a `TaggedOption<T>` to CDK's `Highlightable` for `ActiveDescendantKeyManager`.\n * Highlight is driven by the `focusedIndex` signal, so the style hooks are no-ops.\n */\nclass AutocompleteOptionAdapter<T> implements Highlightable {\n readonly disabled: boolean;\n\n constructor(readonly option: TaggedOption<T>) {\n this.disabled = !!option.disabled;\n }\n\n getLabel(): string {\n return this.option.label;\n }\n\n setActiveStyles(): void {\n // No-op: see class comment.\n }\n\n setInactiveStyles(): void {\n // No-op: see class comment.\n }\n}\n\n@Component({\n selector: \"sds-autocomplete\",\n standalone: true,\n imports: [\n TranslatePipe,\n ReactiveFormsModule,\n SdsInputComponent,\n SdsInputFeedbackComponent,\n SdsAutocompletePanelComponent,\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ],\n templateUrl: \"./autocomplete.component.html\",\n})\nexport class SdsAutocompleteComponent<T = unknown> implements ControlValueAccessor, OnInit {\n private static idCounter = 0;\n\n private readonly document = inject(DOCUMENT);\n private readonly elementRef = inject(ElementRef);\n private readonly injector = inject(Injector);\n private readonly ngZone = inject(NgZone);\n private readonly sso = inject(ScrollStrategyOptions);\n private readonly destroyRef = inject(DestroyRef);\n private readonly sdsInputRef = viewChild.required(SdsInputComponent);\n private readonly triggerElRef = viewChild.required<ElementRef<HTMLElement>>(\"triggerEl\");\n\n protected readonly _id: string;\n protected readonly _listboxId: string;\n protected readonly _panelId: string;\n protected readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n protected readonly internalTextControl = new FormControl<string>(\"\", { nonNullable: true });\n\n private readonly _formInvalid = signal(false);\n protected readonly isControlInvalid = computed<boolean>(() =>\n this.ngControl ? this._formInvalid() : this.required() && this.internalValue() === null,\n );\n protected readonly isControlTouched = signal(false);\n protected readonly isOpen = signal(false);\n protected readonly formDisabled = signal(false);\n protected readonly focusedIndex = signal(-1);\n protected readonly internalValue = signal<T | null>(null);\n protected readonly inputText = signal(\"\");\n protected readonly triggerWidth = signal(0);\n\n protected readonly scrollStrategy = this.sso.reposition();\n protected readonly overlayPositions: ConnectedPosition[] = this.buildOverlayPositions();\n\n /** Options shown in the panel, as plain strings or `AutocompleteOption<T>` objects. */\n readonly options = input.required<TaggedOption<T>[], (AutocompleteOption<T> | string)[]>({\n transform: (value: (AutocompleteOption<T> | string)[]): TaggedOption<T>[] =>\n value.map((option) => {\n const base =\n typeof option === \"string\" ? { label: option, value: option as unknown as T } : option;\n return { ...base, _trackId: crypto.randomUUID() };\n }),\n });\n\n /** Field label; also used as `aria-label` when `showLabel` is false. */\n readonly label = input<string>(\"\");\n\n /** Field height: `\"default\"` = 40px, `\"small\"` = 32px. */\n readonly size = input<\"default\" | \"small\">(\"default\");\n\n /** Text shown in parentheses next to the label to mark the field as optional. */\n readonly optionalText = input<string>(\"\");\n\n /** Marks the field as required, adding the `*` indicator and `aria-required`. */\n readonly required = input<boolean>(false);\n\n /** Text shown when there is no selected value or typed text. */\n readonly placeholder = input<string>(\"\");\n\n /** Helper text shown below the field when there is no error or success message. */\n readonly helperText = input<string>(\"\");\n\n /** Disables the field and its options panel. */\n readonly disabled = input<boolean>(false);\n\n /** Shows the value but blocks editing and selection. */\n readonly readonly = input<boolean>(false);\n\n /** Shows the label above the field. */\n readonly showLabel = input<boolean>(true);\n\n /** Shows the feedback area below the field (errors, success and helper text). */\n readonly showHelper = input<boolean>(true);\n\n /** Shows a loading spinner in the panel instead of the options. */\n readonly loading = input<boolean>(false);\n\n /** Message shown when there are no options. Overrides the default i18n text. */\n readonly emptyMessage = input<string>(\"\");\n\n /** Property or predicate for filtering by typed text. Defaults to matching `option.label`. */\n readonly filterBy = input<keyof T | ((item: T, search: string) => boolean)>();\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Maps validation error keys to the messages shown in the feedback area. */\n readonly errorMessages = input<Record<string, string>>();\n\n /** Message shown when the field is valid and touched. */\n readonly validMessage = input<string>();\n\n /** Emits the typed text on every change, for async search. */\n readonly search = output<string>();\n\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly fieldState = computed<FieldState>(() => {\n if (this.isDisabled()) {\n return \"disabled\";\n }\n if (!this.isControlTouched()) {\n return \"default\";\n }\n return this.isControlInvalid() ? \"invalid\" : \"valid\";\n });\n\n protected readonly selectedOption = computed(() => {\n const value = this.internalValue();\n\n if (value === null) {\n return null;\n }\n\n const compare = this.compareWith();\n return this.options().find((o) => compare(o.value, value)) ?? null;\n });\n\n protected readonly filteredOptions = computed(() =>\n filterComboboxOptions(this.options(), this.inputText(), this.filterBy()),\n );\n\n protected readonly displayRows = computed<DisplayRow<T>[]>(() =>\n buildDisplayRows(this.filteredOptions()),\n );\n\n private readonly navigableOptions = computed(() =>\n this.filteredOptions().map((option) => new AutocompleteOptionAdapter(option)),\n );\n\n protected readonly keyManager: ActiveDescendantKeyManager<AutocompleteOptionAdapter<T>>;\n\n protected readonly ariaAttrs = computed<Record<string, string | null>>(() => ({\n role: \"combobox\",\n autocomplete: \"off\",\n \"aria-expanded\": this.isOpen() ? \"true\" : \"false\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": this.isOpen() ? this._listboxId : null,\n \"aria-autocomplete\": \"list\",\n \"aria-required\": this.required() ? \"true\" : null,\n \"aria-invalid\": this.isControlTouched() && this.isControlInvalid() ? \"true\" : null,\n \"aria-label\": !this.showLabel() && this.label() ? this.label() : null,\n \"aria-activedescendant\":\n this.isOpen() && this.focusedIndex() >= 0\n ? `${this._id}-option-${this.focusedIndex()}`\n : null,\n }));\n\n constructor() {\n SdsAutocompleteComponent.idCounter++;\n this._id = `sds-autocomplete-${SdsAutocompleteComponent.idCounter}`;\n this._listboxId = `${this._id}-listbox`;\n this._panelId = `${this._id}-panel`;\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n\n this.setupTextControlSubscription();\n syncControlState(this.ngControl, this.destroyRef, this._formInvalid, this.isControlTouched);\n effect(\n () => {\n if (this.isDisabled()) {\n this.internalTextControl.disable({ emitEvent: false });\n } else {\n this.internalTextControl.enable({ emitEvent: false });\n }\n },\n { allowSignalWrites: true },\n );\n\n this.keyManager = new ActiveDescendantKeyManager(this.navigableOptions, this.injector)\n .withWrap()\n .withHomeAndEnd()\n .withPageUpDown(true, 10)\n .skipPredicate((item) => item.disabled);\n\n this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((index) => {\n // The overlay content and CDK typeahead can fire outside Angular's zone;\n // re-enter it so the signal write triggers change detection.\n this.ngZone.run(() => this.focusedIndex.set(index));\n });\n\n this.destroyRef.onDestroy(() => this.keyManager.destroy());\n }\n\n ngOnInit(): void {\n // `.withTypeAhead()` reads the items synchronously; required inputs are only\n // available from `ngOnInit` (the constructor would throw NG0950).\n this.keyManager.withTypeAhead();\n }\n\n writeValue(value: T | null): void {\n this.internalValue.set(value ?? null);\n const label =\n value !== null && value !== undefined\n ? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? \"\")\n : \"\";\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n registerOnChange(callback: (value: T | null) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = () => {\n callback();\n this.isControlTouched.set(true);\n };\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n protected get control(): AbstractControl {\n const ctrl = this.ngControl?.control;\n\n if (!ctrl) {\n throw new Error(\"control accessed outside NgControl context\");\n }\n\n return ctrl;\n }\n\n protected openPanel(): void {\n if (this.isDisabled() || this.readonly() || this.isOpen()) {\n return;\n }\n\n this.triggerWidth.set(this.triggerElRef().nativeElement.offsetWidth);\n this.isOpen.set(true);\n const opts = this.filteredOptions();\n const internal = this.internalValue();\n const compare = this.compareWith();\n const selectedIdx = internal !== null ? opts.findIndex((o) => compare(o.value, internal)) : -1;\n this.keyManager.setActiveItem(selectedIdx >= 0 ? selectedIdx : -1);\n\n if (selectedIdx >= 0) {\n setTimeout(() => this.scrollOptionIntoView(selectedIdx), 0);\n }\n }\n\n protected closePanel(): void {\n if (!this.isOpen()) {\n return;\n }\n\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n const label = this.selectedOption()?.label ?? \"\";\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n protected selectOption(option: AutocompleteOption<T>): void {\n if (option.disabled) {\n return;\n }\n\n this.internalValue.set(option.value);\n this.inputText.set(option.label);\n this.internalTextControl.setValue(option.label, { emitEvent: false });\n this.onChange(option.value);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleOptionHover(index: number): void {\n this.keyManager.setActiveItem(index);\n }\n\n protected clearSelection(): void {\n this.internalValue.set(null);\n this.inputText.set(\"\");\n this.internalTextControl.setValue(\"\", { emitEvent: false });\n this.onChange(null);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleInputKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case \"Enter\": {\n this.handleEnter(event);\n break;\n }\n case \"Escape\": {\n this.handleEscape(event);\n break;\n }\n case \"ArrowDown\":\n case \"ArrowUp\": {\n if (!this.isOpen()) {\n event.preventDefault();\n this.openPanel();\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n case \"Home\":\n case \"End\":\n case \"PageDown\":\n case \"PageUp\": {\n if (!this.isOpen()) {\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n default: {\n // No preventDefault: typed characters must reach the input to filter the list,\n // while typeahead also moves the active item.\n if (this.isOpen()) {\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n break;\n }\n }\n }\n\n private handleListNavigationKey(event: KeyboardEvent): void {\n event.preventDefault();\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n\n private trackActiveItemChange(runKeyManagerAction: () => void): void {\n const previousActiveIndex = this.keyManager.activeItemIndex;\n runKeyManagerAction();\n\n if (this.keyManager.activeItemIndex !== previousActiveIndex) {\n this.scrollOptionIntoView(this.keyManager.activeItemIndex ?? -1);\n }\n }\n\n protected handleClearButtonBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n protected handleInputBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n private handleFocusLeave(event: FocusEvent): void {\n const related = event.relatedTarget as HTMLElement | null;\n const isInsideComponent = related !== null && this.elementRef.nativeElement.contains(related);\n const isInsidePanel = related !== null && !!related.closest(`#${this._panelId}`);\n\n if (!isInsideComponent && !isInsidePanel) {\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n }\n\n protected handleOutsideClick(event: MouseEvent): void {\n if (this.elementRef.nativeElement.contains(event.target as HTMLElement)) {\n return;\n }\n\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private handleEnter(event: KeyboardEvent): void {\n if (!this.isOpen()) {\n return;\n }\n\n event.preventDefault();\n const target = this.keyManager.activeItem;\n\n if (target && !target.disabled) {\n this.selectOption(target.option);\n }\n }\n\n private handleEscape(event: KeyboardEvent): void {\n event.preventDefault();\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private buildOverlayPositions(): ConnectedPosition[] {\n const DEFAULT_OFFSET = 12;\n const offsetStr = getComputedStyle(this.document.documentElement)\n .getPropertyValue(\"--sds-space-1-5\")\n .trim();\n const offset = offsetStr ? parseInt(offsetStr, 10) : DEFAULT_OFFSET;\n return [\n { originX: \"start\", originY: \"bottom\", overlayX: \"start\", overlayY: \"top\", offsetY: offset },\n { originX: \"start\", originY: \"top\", overlayX: \"start\", overlayY: \"bottom\", offsetY: -offset },\n ];\n }\n\n private setupTextControlSubscription(): void {\n this.internalTextControl.valueChanges\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((text) => {\n this.inputText.set(text);\n this.internalValue.set(null);\n this.onChange(null);\n this.search.emit(text);\n\n if (!this.isOpen()) {\n this.openPanel();\n } else {\n this.keyManager.setActiveItem(-1);\n }\n });\n }\n\n private scrollOptionIntoView(index: number): void {\n getComboboxOptionEl(\n this.elementRef.nativeElement.ownerDocument,\n this._id,\n index,\n )?.scrollIntoView({ block: \"nearest\" });\n }\n\n private onChange: (value: T | null) => void = () => {};\n private onTouched: () => void = () => {};\n}\n","@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAea,6BAA6B,CAAA;;AAE/B,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGnC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,cAAc,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAG1C,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;;AAGhC,IAAA,YAAY,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;;AAGjC,IAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAmB,CAAC;;AAGhD,IAAA,YAAY,GAAG,KAAK,C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AAA,EAAA,IAAA,EACzB,6BAA6B,EAC7B,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,OAAA,EAAA,SAAA,EAAA,cAAA,EAAA,aAAA,EAAA,cAAA,EAAA,eAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,4+BACnB,gBAAgB,EAAA,QAAA,EAAA,4DAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIP,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAdpC,SAAS;+BACE,kBAAkB,EAAA,UAAA,EAChB,IAAI,EACP,OAAA,EAAA;wBACP,aAAa;wBACb,mBAAmB;wBACnB,iBAAiB;wBACjB,yBAAyB;wBACzB,6BAA6B;wBAC7B,mBAAmB;wBACnB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,kuHAAA,EAAA,CAAA;;;AEjFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"seniorsistemas-scala-ng-autocomplete.mjs","sources":["../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.html","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.html","../../projects/scala-ng/autocomplete/seniorsistemas-scala-ng-autocomplete.ts"],"sourcesContent":["import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, input, output } from '@angular/core';\n\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { SdsLoadingSpinnerComponent } from '@seniorsistemas/scala-ng/loading-state';\n\nimport type { AutocompleteOption, DisplayRow } from '../autocomplete.models';\n\n@Component({\n selector: 'sds-autocomplete-panel',\n standalone: true,\n imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsLoadingSpinnerComponent],\n templateUrl: './autocomplete-panel.component.html',\n styles: [':host { display: block; width: 100%; }'],\n})\nexport class SdsAutocompletePanelComponent<T = unknown> {\n /** ID of the panel root element; the trigger uses it to detect focus inside the panel. */\n readonly panelId = input.required<string>();\n\n /** ID of the `role=\"listbox\"` element, referenced by the combobox `aria-controls`. */\n readonly listboxId = input.required<string>();\n\n /** Prefix for option IDs, in the form `{prefix}-option-{index}`. */\n readonly optionIdPrefix = input.required<string>();\n\n /** Listbox `aria-label`, usually the parent field label. */\n readonly label = input<string>('');\n\n /** Shows a spinner instead of the listbox. */\n readonly loading = input<boolean>(false);\n\n /** Empty-state message. Overrides the default i18n text. */\n readonly emptyMessage = input<string>('');\n\n /** Rows to render: group headers and already-filtered options. */\n readonly displayRows = input.required<DisplayRow<T>[]>();\n\n /** Index of the option highlighted by keyboard or hover; `-1` for none. */\n readonly focusedIndex = input<number>(-1);\n\n /** Currently selected value, matched via `compareWith` to set `aria-selected`. */\n readonly selectedValue = input<T | null>(null);\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Emits the option the user clicks or presses Enter on. */\n readonly optionSelect = output<AutocompleteOption<T>>();\n\n /** Emits the hovered option index, or `-1` when the pointer leaves the listbox. */\n readonly focusChange = output<number>();\n\n protected readonly hasOptions = computed(() =>\n this.displayRows().some((r) => r.type === 'option'),\n );\n\n protected readonly groupedRows = computed(() => {\n type OptionRow = Extract<DisplayRow<T>, { type: 'option' }>;\n const groups: { id: string; label?: string; options: OptionRow[] }[] = [];\n let current: (typeof groups)[number] | null = null;\n\n for (const row of this.displayRows()) {\n if (row.type === 'header') {\n current = { id: row.trackId, label: row.label, options: [] };\n groups.push(current);\n } else {\n if (!current) {\n current = { id: 'ungrouped', options: [] };\n groups.push(current);\n }\n current.options.push(row as OptionRow);\n }\n }\n\n return groups;\n });\n\n protected isOptionSelected(optionValue: T): boolean {\n const internal = this.selectedValue();\n return internal !== null && this.compareWith()(optionValue, internal);\n }\n}\n","<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-loading-spinner [size]=\"20\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n","import { ActiveDescendantKeyManager, Highlightable } from '@angular/cdk/a11y';\nimport {\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ConnectedPosition,\n ScrollStrategyOptions,\n} from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n NgZone,\n OnInit,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormControl,\n NgControl,\n ReactiveFormsModule,\n} from '@angular/forms';\n\nimport { TranslatePipe } from '@ngx-translate/core';\nimport {\n buildDisplayRows,\n filterComboboxOptions,\n getComboboxOptionEl,\n syncControlState,\n} from '@seniorsistemas/scala-ng';\nimport { type FieldState } from '@seniorsistemas/scala-ng/form-field';\nimport { SdsInputComponent } from '@seniorsistemas/scala-ng/input';\nimport { SdsInputFeedbackComponent } from '@seniorsistemas/scala-ng/input-feedback';\n\nimport type { AutocompleteOption, DisplayRow, TaggedOption } from './autocomplete.models';\nimport { SdsAutocompletePanelComponent } from './panel/autocomplete-panel.component';\n\n/**\n * Adapts a `TaggedOption<T>` to CDK's `Highlightable` for `ActiveDescendantKeyManager`.\n * Highlight is driven by the `focusedIndex` signal, so the style hooks are no-ops.\n */\nclass AutocompleteOptionAdapter<T> implements Highlightable {\n readonly disabled: boolean;\n\n constructor(readonly option: TaggedOption<T>) {\n this.disabled = !!option.disabled;\n }\n\n getLabel(): string {\n return this.option.label;\n }\n\n setActiveStyles(): void {\n // No-op: see class comment.\n }\n\n setInactiveStyles(): void {\n // No-op: see class comment.\n }\n}\n\n@Component({\n selector: 'sds-autocomplete',\n standalone: true,\n imports: [\n TranslatePipe,\n ReactiveFormsModule,\n SdsInputComponent,\n SdsInputFeedbackComponent,\n SdsAutocompletePanelComponent,\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ],\n templateUrl: './autocomplete.component.html',\n})\nexport class SdsAutocompleteComponent<T = unknown> implements ControlValueAccessor, OnInit {\n private static idCounter = 0;\n\n private readonly document = inject(DOCUMENT);\n private readonly elementRef = inject(ElementRef);\n private readonly injector = inject(Injector);\n private readonly ngZone = inject(NgZone);\n private readonly sso = inject(ScrollStrategyOptions);\n private readonly destroyRef = inject(DestroyRef);\n private readonly sdsInputRef = viewChild.required(SdsInputComponent);\n private readonly triggerElRef = viewChild.required<ElementRef<HTMLElement>>('triggerEl');\n\n protected readonly _id: string;\n protected readonly _listboxId: string;\n protected readonly _panelId: string;\n protected readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n protected readonly internalTextControl = new FormControl<string>('', { nonNullable: true });\n\n private readonly _formInvalid = signal(false);\n protected readonly isControlInvalid = computed<boolean>(() =>\n this.ngControl ? this._formInvalid() : this.required() && this.internalValue() === null,\n );\n protected readonly isControlTouched = signal(false);\n protected readonly isOpen = signal(false);\n protected readonly formDisabled = signal(false);\n protected readonly focusedIndex = signal(-1);\n protected readonly internalValue = signal<T | null>(null);\n protected readonly inputText = signal('');\n protected readonly triggerWidth = signal(0);\n\n protected readonly scrollStrategy = this.sso.reposition();\n protected readonly overlayPositions: ConnectedPosition[] = this.buildOverlayPositions();\n\n /** Options shown in the panel, as plain strings or `AutocompleteOption<T>` objects. */\n readonly options = input.required<TaggedOption<T>[], (AutocompleteOption<T> | string)[]>({\n transform: (value: (AutocompleteOption<T> | string)[]): TaggedOption<T>[] =>\n value.map((option) => {\n const base =\n typeof option === 'string' ? { label: option, value: option as unknown as T } : option;\n return { ...base, _trackId: crypto.randomUUID() };\n }),\n });\n\n /** Field label; also used as `aria-label` when `showLabel` is false. */\n readonly label = input<string>('');\n\n /** Field height: `\"default\"` = 40px, `\"small\"` = 32px. */\n readonly size = input<'default' | 'small'>('default');\n\n /** Text shown in parentheses next to the label to mark the field as optional. */\n readonly optionalText = input<string>('');\n\n /** Marks the field as required, adding the `*` indicator and `aria-required`. */\n readonly required = input<boolean>(false);\n\n /** Text shown when there is no selected value or typed text. */\n readonly placeholder = input<string>('');\n\n /** Helper text shown below the field when there is no error or success message. */\n readonly helperText = input<string>('');\n\n /** Disables the field and its options panel. */\n readonly disabled = input<boolean>(false);\n\n /** Shows the value but blocks editing and selection. */\n readonly readonly = input<boolean>(false);\n\n /** Shows the label above the field. */\n readonly showLabel = input<boolean>(true);\n\n /** Shows the feedback area below the field (errors, success and helper text). */\n readonly showHelper = input<boolean>(true);\n\n /** Shows a loading spinner in the panel instead of the options. */\n readonly loading = input<boolean>(false);\n\n /** Message shown when there are no options. Overrides the default i18n text. */\n readonly emptyMessage = input<string>('');\n\n /** Property or predicate for filtering by typed text. Defaults to matching `option.label`. */\n readonly filterBy = input<keyof T | ((item: T, search: string) => boolean)>();\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Maps validation error keys to the messages shown in the feedback area. */\n readonly errorMessages = input<Record<string, string>>();\n\n /** Message shown when the field is valid and touched. */\n readonly validMessage = input<string>();\n\n /** Emits the typed text on every change, for async search. */\n readonly search = output<string>();\n\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly fieldState = computed<FieldState>(() => {\n if (this.isDisabled()) {\n return 'disabled';\n }\n if (!this.isControlTouched()) {\n return 'default';\n }\n return this.isControlInvalid() ? 'invalid' : 'valid';\n });\n\n protected readonly selectedOption = computed(() => {\n const value = this.internalValue();\n\n if (value === null) {\n return null;\n }\n\n const compare = this.compareWith();\n return this.options().find((o) => compare(o.value, value)) ?? null;\n });\n\n protected readonly filteredOptions = computed(() =>\n filterComboboxOptions(this.options(), this.inputText(), this.filterBy()),\n );\n\n protected readonly displayRows = computed<DisplayRow<T>[]>(() =>\n buildDisplayRows(this.filteredOptions()),\n );\n\n private readonly navigableOptions = computed(() =>\n this.filteredOptions().map((option) => new AutocompleteOptionAdapter(option)),\n );\n\n protected readonly keyManager: ActiveDescendantKeyManager<AutocompleteOptionAdapter<T>>;\n\n protected readonly ariaAttrs = computed<Record<string, string | null>>(() => ({\n role: 'combobox',\n autocomplete: 'off',\n 'aria-expanded': this.isOpen() ? 'true' : 'false',\n 'aria-haspopup': 'listbox',\n 'aria-controls': this.isOpen() ? this._listboxId : null,\n 'aria-autocomplete': 'list',\n 'aria-required': this.required() ? 'true' : null,\n 'aria-invalid': this.isControlTouched() && this.isControlInvalid() ? 'true' : null,\n 'aria-label': !this.showLabel() && this.label() ? this.label() : null,\n 'aria-activedescendant':\n this.isOpen() && this.focusedIndex() >= 0\n ? `${this._id}-option-${this.focusedIndex()}`\n : null,\n }));\n\n constructor() {\n SdsAutocompleteComponent.idCounter++;\n this._id = `sds-autocomplete-${SdsAutocompleteComponent.idCounter}`;\n this._listboxId = `${this._id}-listbox`;\n this._panelId = `${this._id}-panel`;\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n\n this.setupTextControlSubscription();\n syncControlState(this.ngControl, this.destroyRef, this._formInvalid, this.isControlTouched);\n effect(\n () => {\n if (this.isDisabled()) {\n this.internalTextControl.disable({ emitEvent: false });\n } else {\n this.internalTextControl.enable({ emitEvent: false });\n }\n },\n { allowSignalWrites: true },\n );\n\n this.keyManager = new ActiveDescendantKeyManager(this.navigableOptions, this.injector)\n .withWrap()\n .withHomeAndEnd()\n .withPageUpDown(true, 10)\n .skipPredicate((item) => item.disabled);\n\n this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((index) => {\n // The overlay content and CDK typeahead can fire outside Angular's zone;\n // re-enter it so the signal write triggers change detection.\n this.ngZone.run(() => this.focusedIndex.set(index));\n });\n\n this.destroyRef.onDestroy(() => this.keyManager.destroy());\n }\n\n ngOnInit(): void {\n // `.withTypeAhead()` reads the items synchronously; required inputs are only\n // available from `ngOnInit` (the constructor would throw NG0950).\n this.keyManager.withTypeAhead();\n }\n\n writeValue(value: T | null): void {\n this.internalValue.set(value ?? null);\n const label =\n value !== null && value !== undefined\n ? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? '')\n : '';\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n registerOnChange(callback: (value: T | null) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = () => {\n callback();\n this.isControlTouched.set(true);\n };\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n protected get control(): AbstractControl {\n const ctrl = this.ngControl?.control;\n\n if (!ctrl) {\n throw new Error('control accessed outside NgControl context');\n }\n\n return ctrl;\n }\n\n protected openPanel(): void {\n if (this.isDisabled() || this.readonly() || this.isOpen()) {\n return;\n }\n\n this.triggerWidth.set(this.triggerElRef().nativeElement.offsetWidth);\n this.isOpen.set(true);\n const opts = this.filteredOptions();\n const internal = this.internalValue();\n const compare = this.compareWith();\n const selectedIdx = internal !== null ? opts.findIndex((o) => compare(o.value, internal)) : -1;\n this.keyManager.setActiveItem(selectedIdx >= 0 ? selectedIdx : -1);\n\n if (selectedIdx >= 0) {\n setTimeout(() => this.scrollOptionIntoView(selectedIdx), 0);\n }\n }\n\n protected closePanel(): void {\n if (!this.isOpen()) {\n return;\n }\n\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n const label = this.selectedOption()?.label ?? '';\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n protected selectOption(option: AutocompleteOption<T>): void {\n if (option.disabled) {\n return;\n }\n\n this.internalValue.set(option.value);\n this.inputText.set(option.label);\n this.internalTextControl.setValue(option.label, { emitEvent: false });\n this.onChange(option.value);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleOptionHover(index: number): void {\n this.keyManager.setActiveItem(index);\n }\n\n protected clearSelection(): void {\n this.internalValue.set(null);\n this.inputText.set('');\n this.internalTextControl.setValue('', { emitEvent: false });\n this.onChange(null);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleInputKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'Enter': {\n this.handleEnter(event);\n break;\n }\n case 'Escape': {\n this.handleEscape(event);\n break;\n }\n case 'ArrowDown':\n case 'ArrowUp': {\n if (!this.isOpen()) {\n event.preventDefault();\n this.openPanel();\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n case 'Home':\n case 'End':\n case 'PageDown':\n case 'PageUp': {\n if (!this.isOpen()) {\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n default: {\n // No preventDefault: typed characters must reach the input to filter the list,\n // while typeahead also moves the active item.\n if (this.isOpen()) {\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n break;\n }\n }\n }\n\n private handleListNavigationKey(event: KeyboardEvent): void {\n event.preventDefault();\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n\n private trackActiveItemChange(runKeyManagerAction: () => void): void {\n const previousActiveIndex = this.keyManager.activeItemIndex;\n runKeyManagerAction();\n\n if (this.keyManager.activeItemIndex !== previousActiveIndex) {\n this.scrollOptionIntoView(this.keyManager.activeItemIndex ?? -1);\n }\n }\n\n protected handleClearButtonBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n protected handleInputBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n private handleFocusLeave(event: FocusEvent): void {\n const related = event.relatedTarget as HTMLElement | null;\n const isInsideComponent = related !== null && this.elementRef.nativeElement.contains(related);\n const isInsidePanel = related !== null && !!related.closest(`#${this._panelId}`);\n\n if (!isInsideComponent && !isInsidePanel) {\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n }\n\n protected handleOutsideClick(event: MouseEvent): void {\n if (this.elementRef.nativeElement.contains(event.target as HTMLElement)) {\n return;\n }\n\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private handleEnter(event: KeyboardEvent): void {\n if (!this.isOpen()) {\n return;\n }\n\n event.preventDefault();\n const target = this.keyManager.activeItem;\n\n if (target && !target.disabled) {\n this.selectOption(target.option);\n }\n }\n\n private handleEscape(event: KeyboardEvent): void {\n event.preventDefault();\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private buildOverlayPositions(): ConnectedPosition[] {\n const DEFAULT_OFFSET = 12;\n const offsetStr = getComputedStyle(this.document.documentElement)\n .getPropertyValue('--sds-space-1-5')\n .trim();\n const offset = offsetStr ? parseInt(offsetStr, 10) : DEFAULT_OFFSET;\n return [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },\n ];\n }\n\n private setupTextControlSubscription(): void {\n this.internalTextControl.valueChanges\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((text) => {\n this.inputText.set(text);\n this.internalValue.set(null);\n this.onChange(null);\n this.search.emit(text);\n\n if (!this.isOpen()) {\n this.openPanel();\n } else {\n this.keyManager.setActiveItem(-1);\n }\n });\n }\n\n private scrollOptionIntoView(index: number): void {\n getComboboxOptionEl(\n this.elementRef.nativeElement.ownerDocument,\n this._id,\n index,\n )?.scrollIntoView({ block: 'nearest' });\n }\n\n private onChange: (value: T | null) => void = () => {};\n private onTouched: () => void = () => {};\n}\n","@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAea,6BAA6B,CAAA;;AAE/B,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGnC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,cAAc,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAG1C,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;;AAGhC,IAAA,YAAY,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;;AAGjC,IAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAmB,CAAC;;AAGhD,IAAA,YAAY,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC,CAAC;;AAGjC,IAAA,aAAa,GAAG,KAAK,CAAW,IAAI,CAAC,CAAC;;AAGtC,IAAA,WAAW,GAAG,KAAK,CAA0B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;;IAGhE,YAAY,GAAG,MAAM,EAAyB,CAAC;;IAG/C,WAAW,GAAG,MAAM,EAAU,CAAC;IAErB,UAAU,GAAG,QAAQ,CAAC,MACvC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CACpD,CAAC;AAEiB,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