@4sh/ui-kit 0.1.2 → 0.3.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.fr.md +170 -61
- package/README.md +165 -60
- package/collection.json +9 -0
- package/fesm2022/{4sh-ui-kit-ui-button-split.mjs → 4sh-ui-kit-actions-ui-button-split.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +222 -0
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-link.mjs → 4sh-ui-kit-actions-ui-link.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-icon.mjs → 4sh-ui-kit-base-ui-icon.mjs} +51 -11
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-image.mjs → 4sh-ui-kit-base-ui-image.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-autocomplete.mjs → 4sh-ui-kit-forms-ui-autocomplete.mjs} +9 -9
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-checkbox.mjs → 4sh-ui-kit-forms-ui-checkbox.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-datepicker.mjs → 4sh-ui-kit-forms-ui-datepicker.mjs} +23 -11
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-field.mjs → 4sh-ui-kit-forms-ui-field.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-file-upload.mjs → 4sh-ui-kit-forms-ui-file-upload.mjs} +12 -13
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-group.mjs → 4sh-ui-kit-forms-ui-input-group.mjs} +12 -12
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-mask.mjs → 4sh-ui-kit-forms-ui-input-mask.mjs} +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-number.mjs → 4sh-ui-kit-forms-ui-input-number.mjs} +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-otp.mjs → 4sh-ui-kit-forms-ui-input-otp.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-tags.mjs → 4sh-ui-kit-forms-ui-input-tags.mjs} +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +159 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-label.mjs → 4sh-ui-kit-forms-ui-label.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-nudger.mjs → 4sh-ui-kit-forms-ui-nudger.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +92 -0
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-rating.mjs → 4sh-ui-kit-forms-ui-rating.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-segment-control.mjs → 4sh-ui-kit-forms-ui-segment-control.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-select.mjs → 4sh-ui-kit-forms-ui-select.mjs} +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-slider.mjs → 4sh-ui-kit-forms-ui-slider.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-textarea.mjs → 4sh-ui-kit-forms-ui-textarea.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-toggle.mjs → 4sh-ui-kit-forms-ui-toggle.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms.mjs +28 -11
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/{4sh-ui-kit-ui-accordion.mjs → 4sh-ui-kit-informative-ui-accordion.mjs} +16 -16
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-alert.mjs → 4sh-ui-kit-informative-ui-alert.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-avatar-group.mjs → 4sh-ui-kit-informative-ui-avatar-group.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-avatar.mjs → 4sh-ui-kit-informative-ui-avatar.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +95 -0
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +205 -0
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-empty-state.mjs → 4sh-ui-kit-informative-ui-empty-state.mjs} +12 -12
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-helper.mjs → 4sh-ui-kit-informative-ui-helper.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-progress-bar.mjs → 4sh-ui-kit-informative-ui-progress-bar.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-read-only.mjs → 4sh-ui-kit-informative-ui-read-only.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-separator.mjs → 4sh-ui-kit-informative-ui-separator.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-skeleton.mjs → 4sh-ui-kit-informative-ui-skeleton.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-spinner.mjs → 4sh-ui-kit-informative-ui-spinner.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-tag.mjs → 4sh-ui-kit-informative-ui-tag.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-toast.mjs → 4sh-ui-kit-informative-ui-toast.mjs} +13 -13
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-tooltip.mjs → 4sh-ui-kit-informative-ui-tooltip.mjs} +8 -8
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-card.mjs → 4sh-ui-kit-layout-ui-card.mjs} +18 -18
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-drawer.mjs → 4sh-ui-kit-layout-ui-drawer.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-modal.mjs → 4sh-ui-kit-layout-ui-modal.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-popover.mjs → 4sh-ui-kit-layout-ui-popover.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/{4sh-ui-kit-ui-breadcrumb.mjs → 4sh-ui-kit-navigation-ui-breadcrumb.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-context-menu.mjs → 4sh-ui-kit-navigation-ui-context-menu.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-menu.mjs → 4sh-ui-kit-navigation-ui-menu.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-sidebar.mjs → 4sh-ui-kit-navigation-ui-sidebar.mjs} +15 -15
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-stepper.mjs → 4sh-ui-kit-navigation-ui-stepper.mjs} +24 -24
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-tabs.mjs → 4sh-ui-kit-navigation-ui-tabs.mjs} +28 -22
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-paginator.mjs → 4sh-ui-kit-table-ui-paginator.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-table.mjs → 4sh-ui-kit-table-ui-table.mjs} +41 -41
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/fesm2022/4sh-ui-kit.mjs +1 -1
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/package.json +176 -175
- package/schematics/index.cjs +51 -0
- package/styles/component-vars.scss +953 -0
- package/styles/generated/_tokens-semantics.scss +36 -0
- package/styles/settings/_ui-config.scss +54 -44
- package/styles.css +1 -1
- package/types/{4sh-ui-kit-ui-button-split.d.ts → 4sh-ui-kit-actions-ui-button-split.d.ts} +2 -2
- package/types/{4sh-ui-kit-ui-icon.d.ts → 4sh-ui-kit-base-ui-icon.d.ts} +35 -4
- package/types/{4sh-ui-kit-ui-autocomplete.d.ts → 4sh-ui-kit-forms-ui-autocomplete.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-datepicker.d.ts → 4sh-ui-kit-forms-ui-datepicker.d.ts} +6 -1
- package/types/{4sh-ui-kit-ui-file-upload.d.ts → 4sh-ui-kit-forms-ui-file-upload.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-input-mask.d.ts → 4sh-ui-kit-forms-ui-input-mask.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-input-tags.d.ts → 4sh-ui-kit-forms-ui-input-tags.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-input.d.ts → 4sh-ui-kit-forms-ui-input.d.ts} +34 -3
- package/types/{4sh-ui-kit-ui-nudger.d.ts → 4sh-ui-kit-forms-ui-nudger.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-rating.d.ts → 4sh-ui-kit-forms-ui-rating.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-select.d.ts → 4sh-ui-kit-forms-ui-select.d.ts} +1 -1
- package/types/4sh-ui-kit-forms.d.ts +2 -1
- package/types/{4sh-ui-kit-ui-avatar.d.ts → 4sh-ui-kit-informative-ui-avatar.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-badge.d.ts → 4sh-ui-kit-informative-ui-badge.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-chip.d.ts → 4sh-ui-kit-informative-ui-chip.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-empty-state.d.ts → 4sh-ui-kit-informative-ui-empty-state.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-spinner.d.ts → 4sh-ui-kit-informative-ui-spinner.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-tag.d.ts → 4sh-ui-kit-informative-ui-tag.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-card.d.ts → 4sh-ui-kit-layout-ui-card.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-context-menu.d.ts → 4sh-ui-kit-navigation-ui-context-menu.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-tabs.d.ts → 4sh-ui-kit-navigation-ui-tabs.d.ts} +5 -1
- package/types/{4sh-ui-kit-ui-table.d.ts → 4sh-ui-kit-table-ui-table.d.ts} +1 -1
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-badge.mjs +0 -95
- package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-button.mjs +0 -222
- package/fesm2022/4sh-ui-kit-ui-button.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-card.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-chip.mjs +0 -205
- package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-field.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-image.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input.mjs +0 -121
- package/fesm2022/4sh-ui-kit-ui-input.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-label.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-link.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-radio.mjs +0 -92
- package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-select.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-table.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +0 -1
- /package/types/{4sh-ui-kit-ui-button.d.ts → 4sh-ui-kit-actions-ui-button.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-link.d.ts → 4sh-ui-kit-actions-ui-link.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-image.d.ts → 4sh-ui-kit-base-ui-image.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-checkbox.d.ts → 4sh-ui-kit-forms-ui-checkbox.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-field.d.ts → 4sh-ui-kit-forms-ui-field.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-input-group.d.ts → 4sh-ui-kit-forms-ui-input-group.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-input-number.d.ts → 4sh-ui-kit-forms-ui-input-number.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-input-otp.d.ts → 4sh-ui-kit-forms-ui-input-otp.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-label.d.ts → 4sh-ui-kit-forms-ui-label.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-radio.d.ts → 4sh-ui-kit-forms-ui-radio.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-segment-control.d.ts → 4sh-ui-kit-forms-ui-segment-control.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-slider.d.ts → 4sh-ui-kit-forms-ui-slider.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-textarea.d.ts → 4sh-ui-kit-forms-ui-textarea.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-toggle.d.ts → 4sh-ui-kit-forms-ui-toggle.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-accordion.d.ts → 4sh-ui-kit-informative-ui-accordion.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-alert.d.ts → 4sh-ui-kit-informative-ui-alert.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-avatar-group.d.ts → 4sh-ui-kit-informative-ui-avatar-group.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-helper.d.ts → 4sh-ui-kit-informative-ui-helper.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-progress-bar.d.ts → 4sh-ui-kit-informative-ui-progress-bar.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-read-only.d.ts → 4sh-ui-kit-informative-ui-read-only.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-separator.d.ts → 4sh-ui-kit-informative-ui-separator.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-skeleton.d.ts → 4sh-ui-kit-informative-ui-skeleton.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-toast.d.ts → 4sh-ui-kit-informative-ui-toast.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-tooltip.d.ts → 4sh-ui-kit-informative-ui-tooltip.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-drawer.d.ts → 4sh-ui-kit-layout-ui-drawer.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-modal.d.ts → 4sh-ui-kit-layout-ui-modal.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-popover.d.ts → 4sh-ui-kit-layout-ui-popover.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-breadcrumb.d.ts → 4sh-ui-kit-navigation-ui-breadcrumb.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-menu.d.ts → 4sh-ui-kit-navigation-ui-menu.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-sidebar.d.ts → 4sh-ui-kit-navigation-ui-sidebar.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-stepper.d.ts → 4sh-ui-kit-navigation-ui-stepper.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-paginator.d.ts → 4sh-ui-kit-table-ui-paginator.d.ts} +0 -0
|
@@ -6,10 +6,10 @@ import * as i1 from '@angular/cdk/overlay';
|
|
|
6
6
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
7
7
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
8
8
|
import { BaseFormField, formatLabel, dropdownOverlayPositions, createOptionResolver } from '@4sh/ui-kit/forms';
|
|
9
|
-
import { UiField } from '@4sh/ui-kit/ui-field';
|
|
10
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
11
|
-
import { UiSpinner } from '@4sh/ui-kit/ui-spinner';
|
|
12
|
-
import { UiChip } from '@4sh/ui-kit/ui-chip';
|
|
9
|
+
import { UiField } from '@4sh/ui-kit/forms/ui-field';
|
|
10
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
11
|
+
import { UiSpinner } from '@4sh/ui-kit/informative/ui-spinner';
|
|
12
|
+
import { UiChip } from '@4sh/ui-kit/informative/ui-chip';
|
|
13
13
|
import { UiMotion } from '@4sh/ui-kit/motion';
|
|
14
14
|
import { closeOnNavigation } from '@4sh/ui-kit/overlay';
|
|
15
15
|
|
|
@@ -906,12 +906,12 @@ class UiAutocomplete extends BaseFormField {
|
|
|
906
906
|
.normalize('NFD')
|
|
907
907
|
.replace(/[̀-ͯ]/g, '');
|
|
908
908
|
}
|
|
909
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
910
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiAutocomplete, isStandalone: true, selector: "ui-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAriaLabel: { classPropertyName: "clearAriaLabel", publicName: "clearAriaLabel", 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 }, showEmptyMessage: { classPropertyName: "showEmptyMessage", publicName: "showEmptyMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", valueChange: "valueChange", optionSelect: "optionSelect", optionUnselect: "optionUnselect", opened: "opened", closed: "closed", cleared: "cleared", dropdownClick: "dropdownClick", lazyLoad: "lazyLoad", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--units-md)}.ui-autocomplete-control:last-child{padding-inline-end:var(--units-md)}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-autocomplete-input._small{font-size:var(--size-typography-text-md)}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--radius-full);background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-clear:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-clear:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-loading:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--units-xs);box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--units-xs) var(--units-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:19.5rem}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:16rem}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:2.5rem}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:2rem}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-panel .ui-autocomplete-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:1.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-sm)}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.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", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
909
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
910
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiAutocomplete, isStandalone: true, selector: "ui-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAriaLabel: { classPropertyName: "clearAriaLabel", publicName: "clearAriaLabel", 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 }, showEmptyMessage: { classPropertyName: "showEmptyMessage", publicName: "showEmptyMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", valueChange: "valueChange", optionSelect: "optionSelect", optionUnselect: "optionUnselect", opened: "opened", closed: "closed", cleared: "cleared", dropdownClick: "dropdownClick", lazyLoad: "lazyLoad", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--ui-autocomplete-tag-gap, var(--units-xs));min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-control:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--ui-autocomplete-tag-radius, var(--radius-full));transition:box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-autocomplete-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 var(--ui-autocomplete-input-min-width, 5rem);min-width:var(--ui-autocomplete-input-min-width, 5rem);width:auto}.ui-autocomplete-input._small{font-size:var(--ui-autocomplete-font-size-small, var(--size-typography-text-md))}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-autocomplete-clear-size, var(--size-components-2xs));height:var(--ui-autocomplete-clear-size, var(--size-components-2xs));flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--ui-autocomplete-clear-radius, var(--radius-full));background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-clear:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-clear:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--ui-autocomplete-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-loading:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-panel{border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--ui-autocomplete-panel-gap, var(--units-xs));box-sizing:border-box;max-width:var(--ui-autocomplete-panel-max-width, calc(100vw - var(--units-lg)));padding:var(--ui-autocomplete-panel-padding, var(--units-xs))}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--ui-autocomplete-header-padding-y, var(--units-xs)) var(--ui-autocomplete-header-padding-x, var(--units-sm));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-group-font-size, var(--size-typography-text-md));color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:var(--ui-autocomplete-scroller-max-height, 19.5rem)}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:var(--ui-autocomplete-scroller-max-height-small, 16rem)}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--ui-autocomplete-panel-gap, var(--units-xs));margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:var(--ui-autocomplete-option-height, 2.5rem)}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:var(--ui-autocomplete-option-height-small, 2rem)}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--ui-autocomplete-option-gap, var(--units-sm));box-sizing:border-box;height:var(--ui-autocomplete-option-height, 2.5rem);flex-shrink:0;padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));border-radius:var(--ui-autocomplete-option-radius, var(--radius-sm));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-font-size, var(--size-typography-text-default));color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-panel .ui-autocomplete-option._small{height:var(--ui-autocomplete-option-height-small, 2rem);padding:0 var(--ui-autocomplete-option-padding-x-small, var(--units-md));font-size:var(--ui-autocomplete-font-size-small, var(--size-typography-text-md))}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:var(--ui-autocomplete-group-height, 2rem);flex-shrink:0;padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-group-font-size, var(--size-typography-text-md));font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:var(--ui-autocomplete-group-height-small, 1.5rem);padding:0 var(--ui-autocomplete-option-padding-x-small, var(--units-md));font-size:var(--ui-autocomplete-group-font-size-small, var(--size-typography-text-sm))}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:var(--ui-autocomplete-option-height, 2.5rem);padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-font-size, var(--size-typography-text-default));color:var(--form-low-content-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.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", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
911
911
|
}
|
|
912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAutocomplete, decorators: [{
|
|
913
913
|
type: Component,
|
|
914
|
-
args: [{ selector: 'ui-autocomplete', imports: [NgTemplateOutlet, OverlayModule, ScrollingModule, UiField, UiIcon, UiSpinner, UiChip, UiMotion], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--units-md)}.ui-autocomplete-control:last-child{padding-inline-end:var(--units-md)}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-autocomplete-input._small{font-size:var(--size-typography-text-md)}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--radius-full);background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-clear:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-clear:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-loading:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--units-xs);box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--units-xs) var(--units-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:19.5rem}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:16rem}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:2.5rem}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:2rem}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-panel .ui-autocomplete-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:1.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-sm)}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"] }]
|
|
914
|
+
args: [{ selector: 'ui-autocomplete', imports: [NgTemplateOutlet, OverlayModule, ScrollingModule, UiField, UiIcon, UiSpinner, UiChip, UiMotion], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--ui-autocomplete-tag-gap, var(--units-xs));min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-control:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--ui-autocomplete-tag-radius, var(--radius-full));transition:box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-autocomplete-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 var(--ui-autocomplete-input-min-width, 5rem);min-width:var(--ui-autocomplete-input-min-width, 5rem);width:auto}.ui-autocomplete-input._small{font-size:var(--ui-autocomplete-font-size-small, var(--size-typography-text-md))}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-autocomplete-clear-size, var(--size-components-2xs));height:var(--ui-autocomplete-clear-size, var(--size-components-2xs));flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--ui-autocomplete-clear-radius, var(--radius-full));background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-clear:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-clear:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--ui-autocomplete-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-loading:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-panel{border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--ui-autocomplete-panel-gap, var(--units-xs));box-sizing:border-box;max-width:var(--ui-autocomplete-panel-max-width, calc(100vw - var(--units-lg)));padding:var(--ui-autocomplete-panel-padding, var(--units-xs))}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--ui-autocomplete-header-padding-y, var(--units-xs)) var(--ui-autocomplete-header-padding-x, var(--units-sm));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-group-font-size, var(--size-typography-text-md));color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:var(--ui-autocomplete-scroller-max-height, 19.5rem)}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:var(--ui-autocomplete-scroller-max-height-small, 16rem)}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--ui-autocomplete-panel-gap, var(--units-xs));margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:var(--ui-autocomplete-option-height, 2.5rem)}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:var(--ui-autocomplete-option-height-small, 2rem)}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--ui-autocomplete-option-gap, var(--units-sm));box-sizing:border-box;height:var(--ui-autocomplete-option-height, 2.5rem);flex-shrink:0;padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));border-radius:var(--ui-autocomplete-option-radius, var(--radius-sm));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-font-size, var(--size-typography-text-default));color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-panel .ui-autocomplete-option._small{height:var(--ui-autocomplete-option-height-small, 2rem);padding:0 var(--ui-autocomplete-option-padding-x-small, var(--units-md));font-size:var(--ui-autocomplete-font-size-small, var(--size-typography-text-md))}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:var(--ui-autocomplete-group-height, 2rem);flex-shrink:0;padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-group-font-size, var(--size-typography-text-md));font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:var(--ui-autocomplete-group-height-small, 1.5rem);padding:0 var(--ui-autocomplete-option-padding-x-small, var(--units-md));font-size:var(--ui-autocomplete-group-font-size-small, var(--size-typography-text-sm))}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:var(--ui-autocomplete-option-height, 2.5rem);padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));font-family:var(--fontfamily-base);font-size:var(--ui-autocomplete-font-size, var(--size-typography-text-default));color:var(--form-low-content-default)}\n"] }]
|
|
915
915
|
}], ctorParameters: () => [], propDecorators: { suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], completeOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "completeOnFocus", required: false }] }], dropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdown", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], dropdownAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownAriaLabel", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], forceSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceSelection", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], unique: [{ type: i0.Input, args: [{ isSignal: true, alias: "unique", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], overflowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowLabel", required: false }] }], removeTagLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagLabel", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], clearAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearAriaLabel", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], showEmptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmptyMessage", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], autoFlip: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFlip", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], optionSelect: [{ type: i0.Output, args: ["optionSelect"] }], optionUnselect: [{ type: i0.Output, args: ["optionUnselect"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], dropdownClick: [{ type: i0.Output, args: ["dropdownClick"] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], selectedItemTemplate: [{ type: i0.ContentChild, args: ['selectedItem', { isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { isSignal: true }] }], containerEl: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], tagEls: [{ type: i0.ViewChildren, args: ['tagEl', { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
916
916
|
|
|
917
917
|
/*
|
|
@@ -923,4 +923,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
923
923
|
*/
|
|
924
924
|
|
|
925
925
|
export { UiAutocomplete };
|
|
926
|
-
//# sourceMappingURL=4sh-ui-kit-ui-autocomplete.mjs.map
|
|
926
|
+
//# sourceMappingURL=4sh-ui-kit-forms-ui-autocomplete.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-forms-ui-autocomplete.mjs","sources":["../../../projects/ui-kit/forms/ui-autocomplete/src/lib/ui-autocomplete.ts","../../../projects/ui-kit/forms/ui-autocomplete/src/lib/ui-autocomplete.html","../../../projects/ui-kit/forms/ui-autocomplete/src/public-api.ts","../../../projects/ui-kit/forms/ui-autocomplete/src/4sh-ui-kit-forms-ui-autocomplete.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport { createOptionResolver } from '@4sh/ui-kit/forms';\nimport { dropdownOverlayPositions } from '@4sh/ui-kit/forms';\nimport { formatLabel } from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiSpinner } from '@4sh/ui-kit/informative/ui-spinner';\nimport { UiChip } from '@4sh/ui-kit/informative/ui-chip';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Model value: the selected suggestion (or its `optionValue`), free text, an array (`multiple`), or `null`. */\nexport type AutocompleteValue<T = unknown> = T | string | T[] | null;\n\n/** How the dropdown trigger builds its query. */\nexport type AutocompleteDropdownMode = 'blank' | 'current';\n\n/** Payload of the `completeMethod` output — the parent fills `suggestions` from it. */\nexport interface AutocompleteCompleteEvent {\n /** Originating DOM event (keystroke, dropdown click, focus). */\n originalEvent: Event;\n /** Current query text (empty string is valid — e.g. a `blank` dropdown). */\n query: string;\n}\n\n/** Context handed to the `#item` template. */\nexport interface AutocompleteItemContext<T = unknown> {\n /** The original suggestion (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n option: T;\n /** Whether this suggestion is the current value. */\n selected: boolean;\n /** Index of the suggestion in the visible list. */\n index: number;\n}\n\n/** Context handed to the `#selectedItem` template (once per selected value, `multiple`). */\nexport interface AutocompleteSelectedItemContext<T = unknown> {\n /** The original selected suggestion (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n option: T;\n /** Index among the selected values. */\n index: number;\n /** Removes this value (e.g. wire it to a removable chip). */\n remove: () => void;\n}\n\n/** Context handed to the `#group` template. */\nexport interface AutocompleteGroupContext<G = unknown> {\n /** The original group object (default `$implicit`). */\n $implicit: G;\n /** Same as `$implicit`, named for readability. */\n group: G;\n}\n\n/** Payload of the `lazyLoad` output (rendered range of the virtual viewport). */\nexport interface AutocompleteLazyLoadEvent {\n /** Index of the first rendered row. */\n first: number;\n /** Index after the last rendered row (exclusive). */\n last: number;\n}\n\n/** @ignore Flat view of one suggestion (logic source). */\ninterface AcEntry {\n value: unknown;\n label: string;\n disabled: boolean;\n original: unknown;\n}\n\n/** @ignore Group of entries (when `group` is enabled). */\ninterface AcGroupEntry {\n label: string;\n original: unknown;\n entries: AcEntry[];\n}\n\n/** @ignore Rendered row: a group header or a suggestion. */\ntype AcRow =\n | { kind: 'group'; key: string; label: string; original: unknown }\n | { kind: 'option'; key: string; id: string; index: number; entry: AcEntry; selected: boolean };\n\n/**\n * ui-autocomplete — headless suggestion field built on the `ui-field` shell\n * (label + box + helper) with a token-styled suggestions panel in a CDK overlay.\n *\n * Two-way bound via `[(ngModel)]` (or reactive forms) through\n * {@link BaseFormField}. Typing emits `completeMethod` (debounced by `delay`,\n * gated by `minLength`); the parent answers by updating `suggestions`. Supports\n * primitive or object suggestions (`optionLabel` / `optionValue` /\n * `optionDisabled`), grouped suggestions, a `dropdown` trigger\n * (`dropdownMode`), a `multiple` mode (array model, removable chips in the\n * field, `unique`, `maxSelectedLabels`), `forceSelection`, `showClear`,\n * `loading`, configurable\n * focus behaviour (`autoOptionFocus` / `selectOnFocus` / `focusOnHover`) and\n * CDK virtual scrolling (plus lazy loading).\n *\n * The trigger is a real `<input>` following the WAI-ARIA combobox pattern\n * (`role=\"combobox\"` + `aria-activedescendant`: focus never leaves the input,\n * suggestions are only visually focused).\n *\n * Customisation: the `#item`, `#selectedItem`, `#group`, `#header`, `#footer`\n * and `#empty` templates, `panelStyleClass`, and the local SCSS variables.\n *\n * @example\n * ```html\n * <ui-autocomplete label=\"Pays\" [(ngModel)]=\"country\"\n * [suggestions]=\"results()\" optionLabel=\"name\"\n * (completeMethod)=\"search($event)\" />\n * ```\n */\n@Component({\n selector: 'ui-autocomplete',\n imports: [NgTemplateOutlet, OverlayModule, ScrollingModule, UiField, UiIcon, UiSpinner, UiChip, UiMotion],\n templateUrl: './ui-autocomplete.html',\n styleUrl: './ui-autocomplete.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }],\n})\nexport class UiAutocomplete<T = unknown> extends BaseFormField<AutocompleteValue<T>> {\n /** Suggestions to display — set by the parent in response to `completeMethod`. */\n suggestions = input<readonly unknown[]>([]);\n /** Field name (dot-path) to read a label from, when suggestions are objects. */\n optionLabel = input<string>();\n /** Field name (dot-path) to read the value from, when suggestions are objects. */\n optionValue = input<string>();\n /** Field name (dot-path) to read the disabled flag from, when suggestions are objects. */\n optionDisabled = input<string>();\n /** Property used to compare object values for equality (highlighting the current value). */\n dataKey = input<string>();\n\n /** Treat `suggestions` as groups (`optionGroupLabel` + `optionGroupChildren`). */\n group = input(false, { transform: booleanAttribute });\n /** Field name of a group's label. */\n optionGroupLabel = input<string>('label');\n /** Field name of a group's children array. */\n optionGroupChildren = input<string>('items');\n\n /** Native placeholder shown when the input is empty. */\n placeholder = input<string>();\n /** Minimum number of characters before `completeMethod` is emitted while typing. */\n minLength = input<number, unknown>(1, { transform: numberAttribute });\n /** Debounce (ms) between the last keystroke and `completeMethod`. */\n delay = input<number, unknown>(300, { transform: numberAttribute });\n /** Emit a query as soon as the input is focused (before any typing). */\n completeOnFocus = input(false, { transform: booleanAttribute });\n\n /** Show a trigger button that queries suggestions on click. */\n dropdown = input(false, { transform: booleanAttribute });\n /** `blank` queries with an empty string, `current` with the input's current text. */\n dropdownMode = input<AutocompleteDropdownMode>('blank');\n /** Accessible name of the dropdown trigger. */\n dropdownAriaLabel = input<string>('Afficher les suggestions');\n /** FontAwesome icon of the dropdown trigger. */\n dropdownIcon = input<string>('angle-down');\n\n /**\n * Validate the typed text against the suggestions on blur: if it matches\n * none, the input is cleared so the model always holds a real suggestion.\n */\n forceSelection = input(false, { transform: booleanAttribute });\n\n /** Multi-selection: the model is an array, each pick renders as a removable chip in the field. */\n multiple = input(false, { transform: booleanAttribute });\n /** With `multiple`: ignore picks whose value is already selected (no duplicates). */\n unique = input(true, { transform: booleanAttribute });\n /** With `multiple`: max number of chips rendered; the rest collapses behind `overflowLabel`. */\n maxSelectedLabels = input<number>();\n /** With `multiple`: format of the collapsed-count chip (`{0}` = hidden count). */\n overflowLabel = input<string>('(+{0} autres)');\n /** With `multiple`: accessible label of each chip's remove action — `{0}` is the chip label. */\n removeTagLabel = input<string>('Supprimer {0}');\n\n /** Show a clear (×) action when the input holds text. */\n showClear = input(false, { transform: booleanAttribute });\n /** Accessible name of the clear action. */\n clearAriaLabel = input<string>('Effacer la saisie');\n\n /** Loading state: a spinner replaces the dropdown trigger while a query runs. */\n loading = input(false, { transform: booleanAttribute });\n\n /** Message shown when a query returns no suggestion. */\n emptyMessage = input<string>('Aucun résultat');\n /** Render the empty-state row when there is no suggestion. */\n showEmptyMessage = input(true, { transform: booleanAttribute });\n\n /** Visually focus the first suggestion when the panel opens. */\n autoOptionFocus = input(false, { transform: booleanAttribute });\n /** Set the value as soon as a suggestion is visually focused with the keyboard. */\n selectOnFocus = input(false, { transform: booleanAttribute });\n /** Visually focus the suggestion under the mouse pointer. */\n focusOnHover = input(true, { transform: booleanAttribute });\n\n /** Render the suggestions through a CDK virtual-scroll viewport. */\n virtualScroll = input(false, { transform: booleanAttribute });\n /** Fixed height (px) of one row — required by the virtual scroller. */\n virtualScrollItemSize = input<number, unknown>(40, { transform: numberAttribute });\n /** With `virtualScroll`: emit `lazyLoad` with the rendered range (lazy loading). */\n lazy = input(false, { transform: booleanAttribute });\n /** Max height of the suggestions list (CSS size, e.g. `'320px'`). Defaults from the SCSS. */\n scrollHeight = input<string>();\n\n /**\n * Auto-flip the panel above the input when there isn't enough room below\n * (default). Set `false` to lock it below the input regardless of space.\n */\n autoFlip = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n panelStyleClass = input<string>();\n\n /** Emitted (debounced) when a query should be run — fill `suggestions` from it. */\n completeMethod = output<AutocompleteCompleteEvent>();\n /** Emitted whenever the value changes (selection, typing, clear). */\n valueChange = output<AutocompleteValue<T>>();\n /** Emitted when a suggestion is picked (payload is the original suggestion). */\n optionSelect = output<T>();\n /** With `multiple`: emitted when a selected value is removed (payload is the removed suggestion). */\n optionUnselect = output<T>();\n /** Emitted when the panel opens. */\n opened = output<void>();\n /** Emitted when the panel closes. */\n closed = output<void>();\n /** Emitted when the value is cleared. */\n cleared = output<void>();\n /** Emitted when the dropdown trigger is clicked. */\n dropdownClick = output<AutocompleteCompleteEvent>();\n /** Emitted when the virtual viewport's rendered range changes (`virtualScroll` + `lazy`). */\n lazyLoad = output<AutocompleteLazyLoadEvent>();\n /** Emitted when the input receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the input loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** Custom suggestion template: `<ng-template #item let-option let-selected=\"selected\">`. */\n protected readonly itemTemplate = contentChild<TemplateRef<AutocompleteItemContext<T>>>('item');\n /** Custom selected-value template (per selected value, `multiple`): `<ng-template #selectedItem let-option let-remove=\"remove\">`. */\n protected readonly selectedItemTemplate = contentChild<TemplateRef<AutocompleteSelectedItemContext<T>>>('selectedItem');\n /** Custom group-header template: `<ng-template #group let-group>`. */\n protected readonly groupTemplate = contentChild<TemplateRef<AutocompleteGroupContext>>('group');\n /** Free content pinned above the list. */\n protected readonly headerTemplate = contentChild<TemplateRef<unknown>>('header');\n /** Free content pinned under the list. */\n protected readonly footerTemplate = contentChild<TemplateRef<unknown>>('footer');\n /** Custom empty-state template. */\n protected readonly emptyTemplate = contentChild<TemplateRef<unknown>>('empty');\n\n /** @ignore Component root (overlay origin + outside-focus detection). */\n private readonly containerEl = viewChild.required<ElementRef<HTMLElement>>('container');\n /** @ignore Focusable input (combobox). */\n private readonly inputEl = viewChild<ElementRef<HTMLInputElement>>('inputEl');\n /** @ignore Panel root element (for scrolling the focused option into view). */\n private readonly panelEl = viewChild<ElementRef<HTMLElement>>('panel');\n /** @ignore Virtual-scroll viewport (lazy range + scrollToIndex). */\n private readonly viewport = viewChild(CdkVirtualScrollViewport);\n /** @ignore Rendered chips (`multiple` mode, roving focus). */\n private readonly tagEls = viewChildren('tagEl', { read: ElementRef });\n\n /** @ignore */\n protected readonly panelOpen = signal(false);\n /** @ignore Element the overlay is anchored to (the field box). */\n protected readonly overlayOrigin = signal<Element | null>(null);\n /** @ignore Panel width, locked to the field box width on open. */\n protected readonly overlayWidth = signal<number | null>(null);\n /** @ignore Text currently shown in the `<input>`. */\n protected readonly inputText = signal('');\n /** @ignore Index of the visually focused option among the visible options (-1 = none). */\n protected readonly focusedIndex = signal(-1);\n /** @ignore Index of the chip holding the roving focus (-1 = the input, `multiple` mode). */\n protected readonly focusedTag = signal(-1);\n /** @ignore Entries recorded at pick time so chip labels survive suggestion churn (`multiple`). */\n private readonly selectionCache = signal<AcEntry[]>([]);\n /** @ignore A query has been emitted and is awaiting fresh suggestions (feeds `completeOnFocus`). */\n private queryDirty = false;\n /** @ignore Debounce handle for `completeMethod`. */\n private searchTimeout: ReturnType<typeof setTimeout> | undefined;\n /** @ignore A written value whose label could not be resolved yet (see `writeValue`). */\n private readonly pendingLabelSync = signal(false);\n\n constructor() {\n super();\n\n // Never carry an open panel over to the next page (the field can live in\n // an app shell that survives the navigation).\n closeOnNavigation(() => this.close(false));\n\n // Late label resolution: a value written before suggestions exist (e.g. a\n // pre-filled form using `optionValue`) displays the raw value; swap in the\n // real label once a matching suggestion arrives.\n effect(() => {\n const entry = this.pendingLabelSync() ? this.entryOfValue(untracked(this.modelValue) ?? null) : undefined;\n if (!entry) return;\n untracked(() => {\n this.pendingLabelSync.set(false);\n this.inputText.set(entry.label);\n });\n });\n\n // Forward the rendered range of the virtual viewport (lazy loading).\n effect((onCleanup) => {\n const vp = this.viewport();\n if (!vp || !this.lazy()) return;\n const sub = vp.renderedRangeStream.subscribe((range) =>\n this.lazyLoad.emit({ first: range.start, last: range.end }),\n );\n onCleanup(() => sub.unsubscribe());\n });\n\n // Re-measure the virtual viewport once it exists: it initialises while the\n // overlay panel is still laying out and can capture a 0 viewport size,\n // which freezes the rendered range on the first rows.\n effect(() => {\n const vp = this.viewport();\n if (!vp) return;\n setTimeout(() => {\n vp.checkViewportSize();\n this.scrollFocusedIntoView();\n });\n });\n\n // A11y / API safeguards (dev only).\n if (isDevMode()) {\n effect(() => {\n if (!this.label() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-autocomplete] Field has no accessible name: provide `label`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Derived state -----------------------------------------------------\n\n /** @ignore */\n protected readonly listboxId = computed(() => `${this.resolvedId()}-list`);\n /** @ignore Icon size aligned with the field size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore Flat entries (no groups). */\n private readonly flatEntries = computed<AcEntry[]>(() => {\n if (this.group()) return this.groupEntries().flatMap((g) => g.entries);\n return (this.suggestions() ?? []).map((option) => this.toEntry(option));\n });\n\n /** @ignore Groups of entries (when `group` is enabled). */\n private readonly groupEntries = computed<AcGroupEntry[]>(() => {\n if (!this.group()) return [];\n return (this.suggestions() ?? []).map((groupOption) => {\n const children = this.getField(groupOption, this.optionGroupChildren());\n return {\n label: this.asText(this.getField(groupOption, this.optionGroupLabel())) ?? '',\n original: groupOption,\n entries: (Array.isArray(children) ? children : []).map((option) => this.toEntry(option)),\n };\n });\n });\n\n /** @ignore Rendered rows: suggestions + their group headers, with stable ids. */\n protected readonly visibleRows = computed<AcRow[]>(() => {\n const rows: AcRow[] = [];\n let index = 0;\n const pushOption = (entry: AcEntry): void => {\n rows.push({\n kind: 'option',\n key: `${this.listboxId()}-${index}`,\n id: `${this.resolvedId()}-option-${index}`,\n index,\n entry,\n selected: this.isValueSelected(entry.value),\n });\n index++;\n };\n\n if (this.group()) {\n this.groupEntries().forEach((g, gi) => {\n if (!g.entries.length) return;\n rows.push({ kind: 'group', key: `${this.listboxId()}-group-${gi}`, label: g.label, original: g.original });\n g.entries.forEach(pushOption);\n });\n } else {\n this.flatEntries().forEach(pushOption);\n }\n return rows;\n });\n\n /** @ignore Visible option rows only (visual-focus space). */\n protected readonly visibleOptions = computed(() =>\n this.visibleRows().filter((r): r is Extract<AcRow, { kind: 'option' }> => r.kind === 'option'),\n );\n\n /** @ignore aria-setsize of the visible listbox. */\n protected readonly optionCount = computed(() => this.visibleOptions().length);\n\n /** @ignore trackBy of the virtual list. */\n protected readonly trackRow = (_: number, row: AcRow): string => row.key;\n\n /** @ignore The input holds text. */\n protected readonly hasText = computed(() => this.inputText().length > 0);\n\n /** @ignore The clear action is shown. */\n protected readonly showClearButton = computed(\n () =>\n this.showClear() &&\n (this.hasText() || (this.multiple() && this.selectedValues().length > 0)) &&\n !this.isDisabled() &&\n !this.readonly(),\n );\n\n /** @ignore Selected values in `multiple` mode (always an array). */\n protected readonly selectedValues = computed<unknown[]>(() => {\n if (!this.multiple()) return [];\n const v = this.modelValue();\n return Array.isArray(v) ? v : [];\n });\n\n /** @ignore One row per selected value (label resolved from the pick-time cache first). */\n protected readonly tagRows = computed(() =>\n this.selectedValues().map((value, index) => {\n const label = this.labelOfSelected(value);\n return { value, index, label, removeAriaLabel: formatLabel(this.removeTagLabel(), label) };\n }),\n );\n\n /** @ignore Rows actually rendered as chips (`maxSelectedLabels` cap). */\n protected readonly visibleTagRows = computed(() => {\n const all = this.tagRows();\n const max = this.maxSelectedLabels();\n return max != null && max > 0 && all.length > max ? all.slice(0, max) : all;\n });\n\n /** @ignore Number of selected values collapsed behind the overflow chip. */\n protected readonly overflowCount = computed(() => this.tagRows().length - this.visibleTagRows().length);\n\n /** @ignore Rendered overflow chip label (e.g. `(+2 autres)`). */\n protected readonly overflowText = computed(() => formatLabel(this.overflowLabel(), this.overflowCount()));\n\n /** @ignore Contexts handed to the `#selectedItem` template (one per displayed value). */\n protected readonly selectedItemContexts = computed<AutocompleteSelectedItemContext<T>[]>(() =>\n this.visibleTagRows().map((tag) => ({\n $implicit: this.originalOfSelected(tag.value) as T,\n option: this.originalOfSelected(tag.value) as T,\n index: tag.index,\n remove: () => this.removeAt(tag.index),\n })),\n );\n\n /** @ignore Placeholder hidden as soon as values are selected (`multiple`). */\n protected readonly effectivePlaceholder = computed(() =>\n this.multiple() && this.selectedValues().length ? '' : (this.placeholder() ?? ''),\n );\n\n /** @ignore Chips are removable unless the field is disabled/readonly. */\n protected readonly canRemove = computed(() => !this.isDisabled() && !this.readonly());\n\n /** @ignore The empty-state row is rendered. */\n protected readonly showEmpty = computed(\n () => this.showEmptyMessage() && !this.loading() && !this.visibleRows().length,\n );\n\n /** @ignore id of the visually focused option (for aria-activedescendant). */\n protected readonly activeDescendant = computed(() => {\n if (!this.panelOpen()) return null;\n return this.visibleOptions()[this.focusedIndex()]?.id ?? null;\n });\n\n /** @ignore Below the input, flipping above when `autoFlip` and space is lacking. */\n protected readonly overlayPositions = computed(() => dropdownOverlayPositions(this.autoFlip()));\n\n /** @ignore Concrete viewport height (px) for the virtual scroller. */\n protected readonly viewportHeight = computed(() => {\n const rows = this.visibleRows().length || 1;\n const max = this.scrollHeightPx();\n return `${Math.min(rows * this.virtualScrollItemSize(), max)}px`;\n });\n\n /** @ignore `scrollHeight` parsed to px, with size-based defaults (matches the SCSS). */\n private readonly scrollHeightPx = computed(() => {\n const parsed = Number.parseFloat(this.scrollHeight() ?? '');\n if (!Number.isNaN(parsed) && parsed > 0) return parsed;\n return this.size() === 'small' ? 256 : 312;\n });\n\n // --- CVA -----------------------------------------------------------------\n\n override writeValue(value: AutocompleteValue<T>): void {\n if (this.multiple()) {\n const values = Array.isArray(value) ? value : [];\n this.modelValue.set(values as T[]);\n this.inputText.set('');\n this.seedSelectionCache(values);\n return;\n }\n this.modelValue.set(value);\n this.inputText.set(this.labelOfValue(value));\n // With `optionValue`, the label may be unresolvable until the parent\n // provides suggestions — remember to re-resolve it later.\n this.pendingLabelSync.set(\n value !== null && value !== undefined && this.entryOfValue(value) === undefined,\n );\n }\n\n /** @ignore Best-effort label seed for values written from the form, from the current suggestions. */\n private seedSelectionCache(values: unknown[]): void {\n const cache = this.selectionCache();\n const entries = this.flatEntries();\n const found = values\n .filter((v) => !cache.some((e) => this.equals(e.value, v)))\n .map((v) => entries.find((e) => this.equals(e.value, v)))\n .filter((e): e is AcEntry => !!e);\n if (found.length) this.selectionCache.set([...cache, ...found]);\n }\n\n /** Moves focus to the input. */\n focus(options?: FocusOptions): void {\n this.inputEl()?.nativeElement.focus(options);\n }\n\n // --- Panel open/close ----------------------------------------------------\n\n /** @ignore */\n private open(): void {\n if (this.isDisabled() || this.readonly() || this.panelOpen()) return;\n const origin =\n this.containerEl().nativeElement.querySelector('.ui-field-box') ?? this.containerEl().nativeElement;\n this.overlayOrigin.set(origin);\n this.overlayWidth.set(origin.getBoundingClientRect().width);\n this.focusedIndex.set(this.initialFocusIndex());\n this.panelOpen.set(true);\n this.opened.emit();\n // Scroll the focused option into view once the overlay is attached.\n // `setTimeout` (not rAF) so it also runs in throttled/background tabs.\n setTimeout(() => this.scrollFocusedIntoView());\n }\n\n /** @ignore */\n protected close(focusInput = true): void {\n if (!this.panelOpen()) return;\n this.panelOpen.set(false);\n this.focusedIndex.set(-1);\n this.queryDirty = false;\n this.closed.emit();\n if (focusInput) this.focus();\n }\n\n /** @ignore First visually focused option when the panel opens. */\n private initialFocusIndex(): number {\n if (!this.autoOptionFocus()) return -1;\n return this.visibleOptions().findIndex((o) => !o.entry.disabled);\n }\n\n // --- Input interactions --------------------------------------------------\n\n /** @ignore Typing: view → form (free text unless `forceSelection`) + debounced query. */\n protected onInput(event: Event): void {\n const query = (event.target as HTMLInputElement).value;\n this.inputText.set(query);\n // The user took over the text: stop any pending label re-resolution.\n this.pendingLabelSync.set(false);\n\n // Free-text value while typing; `forceSelection` waits for a real suggestion,\n // `multiple` never lets the query mutate the selection, and an emptied input\n // commits `null` (same normalization as `clear()`).\n if (!this.forceSelection() && !this.multiple())\n this.commit(query === '' ? null : (query as AutocompleteValue<T>));\n\n if (this.searchTimeout) clearTimeout(this.searchTimeout);\n\n if (query.length === 0) {\n if (!this.multiple()) this.cleared.emit();\n this.close(false);\n return;\n }\n\n if (query.length < this.minLength()) {\n this.close(false);\n return;\n }\n\n this.focusedIndex.set(-1);\n this.searchTimeout = setTimeout(() => this.runSearch(event, query), this.delay());\n }\n\n /** @ignore Emit a query and open the panel. */\n private runSearch(event: Event, query: string): void {\n this.queryDirty = true;\n this.completeMethod.emit({ originalEvent: event, query });\n this.open();\n }\n\n /** @ignore */\n protected onDropdownClick(event: MouseEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n if (this.panelOpen()) {\n this.close();\n return;\n }\n // Mark the query as already handled *before* focusing: `focus()` fires a\n // synchronous `focus` event on the input, and `completeOnFocus` would\n // otherwise run its own `completeMethod` in addition to the one below —\n // a single dropdown click must only ever emit one query.\n this.queryDirty = true;\n this.focus();\n const query = this.inputText();\n this.runSearch(event, this.dropdownMode() === 'current' ? query : '');\n this.dropdownClick.emit({ originalEvent: event, query });\n }\n\n /** @ignore */\n protected onInputFocus(event: FocusEvent): void {\n if (this.isDisabled()) return;\n if (!this.queryDirty && this.completeOnFocus()) this.runSearch(event, this.inputText());\n this.inputFocus.emit(event);\n }\n\n /** @ignore Mark touched + `forceSelection` validation when focus leaves the component. */\n protected onInputBlur(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n const insideComponent = !!next && this.containerEl().nativeElement.contains(next);\n const insidePanel = !!next && this.panelEl()?.nativeElement.contains(next);\n if (!insideComponent && !insidePanel) {\n this.emitTouch();\n if (this.forceSelection()) this.validateForceSelection(event);\n }\n this.inputBlur.emit(event);\n }\n\n /**\n * @ignore `forceSelection`: keep the model in sync with a real suggestion.\n * The text is matched (case/diacritics-insensitive) against a known label;\n * on no match the field is reset so the model never holds free text.\n */\n private validateForceSelection(event: Event): void {\n const text = this.inputText().trim();\n if (!text) return;\n const match = this.flatEntries().find((e) => !e.disabled && this.normalize(e.label) === this.normalize(text));\n if (match) {\n this.selectEntry(match, event, false);\n } else if (this.multiple()) {\n // Never commit over the selection: just drop the invalid query.\n this.inputText.set('');\n } else {\n this.commit(null);\n this.inputText.set('');\n this.cleared.emit();\n }\n }\n\n /** @ignore Clear action (does not bubble to the input). */\n protected onClearClick(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n }\n\n /** Clears the value. */\n clear(): void {\n if (this.multiple()) {\n this.commit([]);\n this.selectionCache.set([]);\n } else {\n this.commit(null);\n }\n this.inputText.set('');\n this.cleared.emit();\n this.close(false);\n this.focus();\n }\n\n // --- Keyboard --------------------------------------------------------------\n\n /** @ignore Keyboard on the input (combobox pattern). */\n protected onInputKeydown(event: KeyboardEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n if (this.multiple() && this.selectedValues().length) {\n const input = event.target as HTMLInputElement;\n if (event.key === 'Backspace' && !this.inputText()) {\n this.removeAt(this.selectedValues().length - 1);\n return;\n }\n if (\n event.key === 'ArrowLeft' &&\n !this.selectedItemTemplate() &&\n input.selectionStart === 0 &&\n input.selectionEnd === 0\n ) {\n event.preventDefault();\n this.focusTag(this.visibleTagRows().length - 1);\n return;\n }\n }\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.panelOpen() ? this.moveFocus(1) : this.reopen();\n return;\n case 'ArrowUp':\n event.preventDefault();\n if (event.altKey) this.close();\n else if (this.panelOpen()) this.moveFocus(-1);\n else this.reopen();\n return;\n case 'Home':\n if (!this.panelOpen()) return;\n event.preventDefault();\n this.focusEdge(1);\n return;\n case 'End':\n if (!this.panelOpen()) return;\n event.preventDefault();\n this.focusEdge(-1);\n return;\n case 'Enter':\n if (!this.panelOpen()) return; // closed: native form submit\n event.preventDefault();\n this.selectFocused(event);\n return;\n case 'Escape':\n if (!this.panelOpen()) return;\n event.preventDefault();\n event.stopPropagation();\n this.close();\n return;\n case 'Tab':\n if (this.panelOpen()) this.close(false);\n return; // let the focus move on\n default:\n return;\n }\n }\n\n /** @ignore Re-open the panel with the current suggestions (no re-query). */\n private reopen(): void {\n if (!this.visibleRows().length) return;\n this.open();\n if (this.focusedIndex() === -1) this.moveFocus(1);\n }\n\n // --- Options interactions --------------------------------------------------\n\n /** @ignore */\n protected onOptionClick(row: Extract<AcRow, { kind: 'option' }>, event: Event): void {\n event.preventDefault();\n this.selectEntry(row.entry, event);\n }\n\n /** @ignore Keep the focus on the input when clicking an option. */\n protected onOptionMousedown(event: MouseEvent): void {\n event.preventDefault();\n }\n\n /** @ignore */\n protected onOptionMouseEnter(row: Extract<AcRow, { kind: 'option' }>): void {\n if (this.focusOnHover() && !row.entry.disabled) this.focusedIndex.set(row.index);\n }\n\n /** @ignore Pick a suggestion: set the value + display its label. */\n private selectEntry(entry: AcEntry, event: Event, closePanel = true): void {\n if (entry.disabled || this.readonly()) return;\n if (this.multiple()) {\n const alreadySelected = this.selectedValues().some((v) => this.equals(v, entry.value));\n if (!(this.unique() && alreadySelected)) {\n this.selectionCache.update((cache) => [...cache, entry]);\n this.commit([...this.selectedValues(), entry.value] as T[]);\n this.optionSelect.emit(entry.original as T);\n }\n // The query was just consumed: an open panel would show results for a\n // text the input no longer displays.\n this.inputText.set('');\n if (closePanel) this.close();\n return;\n }\n this.commit(entry.value as AutocompleteValue<T>);\n this.inputText.set(entry.label);\n this.optionSelect.emit(entry.original as T);\n if (closePanel) this.close();\n }\n\n /** @ignore */\n private selectFocused(event: Event): void {\n const row = this.visibleOptions()[this.focusedIndex()];\n if (row) this.selectEntry(row.entry, event);\n else this.close();\n }\n\n /** @ignore Propagate a user-driven value change (view → form). */\n private commit(value: AutocompleteValue<T>): void {\n this.pendingLabelSync.set(false);\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n // --- Visual focus ------------------------------------------------------------\n\n /** @ignore Move the visual focus, skipping disabled options (no wrap). */\n private moveFocus(delta: 1 | -1): void {\n const options = this.visibleOptions();\n if (!options.length) return;\n let i = this.focusedIndex();\n if (i === -1) i = delta === 1 ? -1 : options.length;\n for (i += delta; i >= 0 && i < options.length; i += delta) {\n if (!options[i].entry.disabled) {\n this.setFocusedIndex(i, null);\n return;\n }\n }\n }\n\n /** @ignore Focus the first (`1`) or last (`-1`) enabled option. */\n private focusEdge(direction: 1 | -1): void {\n const options = this.visibleOptions();\n const from = direction === 1 ? 0 : options.length - 1;\n for (let i = from; i >= 0 && i < options.length; i += direction) {\n if (!options[i].entry.disabled) {\n this.setFocusedIndex(i, null);\n return;\n }\n }\n }\n\n /** @ignore Apply a visual-focus move (+ select-on-focus, + scroll into view). */\n private setFocusedIndex(index: number, event: Event | null): void {\n this.focusedIndex.set(index);\n if (this.selectOnFocus()) {\n const row = this.visibleOptions()[index];\n if (row) this.selectEntry(row.entry, event ?? new Event('keydown'), false);\n }\n this.scrollFocusedIntoView();\n }\n\n /** @ignore Keep the visually focused option visible ('auto' — smooth is unreliable in throttled tabs). */\n private scrollFocusedIntoView(): void {\n const row = this.visibleOptions()[this.focusedIndex()];\n if (!row) return;\n const vp = this.viewport();\n if (vp) {\n const rowIndex = this.visibleRows().findIndex((r) => r.kind === 'option' && r.index === row.index);\n if (rowIndex !== -1) vp.scrollToIndex(Math.max(0, rowIndex - 1), 'auto');\n return;\n }\n this.panelEl()\n ?.nativeElement.querySelector(`[id=\"${row.id}\"]`)\n ?.scrollIntoView({ block: 'nearest' });\n }\n\n // --- Option resolution ----------------------------------------------------------\n\n /** @ignore Label displayed for a model value (best-effort against the suggestions). */\n /** Remove the selected value at `index` (`multiple` mode). */\n removeAt(index: number): void {\n if (this.isDisabled() || this.readonly()) return;\n const values = this.selectedValues();\n if (index < 0 || index >= values.length) return;\n const value = values[index];\n const cached = this.selectionCache().find((e) => this.equals(e.value, value));\n this.commit(values.filter((_, i) => i !== index) as T[]);\n this.selectionCache.update((cache) => cache.filter((e) => !this.equals(e.value, value)));\n this.optionUnselect.emit((cached?.original ?? value) as T);\n // Keep the roving focus coherent after removal.\n const remaining = this.visibleTagRows().length;\n if (remaining === 0) this.focusInput();\n else this.focusTag(Math.min(index, remaining - 1));\n }\n\n /** @ignore Roving keyboard on a chip (`multiple` mode). */\n protected onTagKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled() || this.readonly()) return;\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n if (index > 0) this.focusTag(index - 1);\n return;\n case 'ArrowRight':\n event.preventDefault();\n if (index < this.visibleTagRows().length - 1) this.focusTag(index + 1);\n else this.focusInput();\n return;\n case 'Backspace':\n case 'Delete':\n event.preventDefault();\n this.removeAt(index);\n return;\n case 'Home':\n event.preventDefault();\n this.focusTag(0);\n return;\n case 'End':\n event.preventDefault();\n this.focusTag(this.visibleTagRows().length - 1);\n return;\n default:\n return;\n }\n }\n\n /** @ignore Clicking the box's empty area focuses the input. */\n protected onBoxMousedown(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n if (target.closest('button') || target.closest('.ui-autocomplete-tag') || target.closest('input')) return;\n event.preventDefault();\n this.focusInput();\n }\n\n /** @ignore Move the roving focus onto a chip. */\n private focusTag(index: number): void {\n this.focusedTag.set(index);\n setTimeout(() => this.tagEls()[index]?.nativeElement.focus());\n }\n\n /** @ignore Return the roving focus to the input. */\n private focusInput(): void {\n this.focusedTag.set(-1);\n this.focus();\n }\n\n /** @ignore Label of a selected value: pick-time cache first, then the current suggestions. */\n private labelOfSelected(value: unknown): string {\n const cached = this.selectionCache().find((e) => this.equals(e.value, value));\n return cached ? cached.label : this.labelOfValue(value as AutocompleteValue<T>);\n }\n\n /** @ignore Original suggestion of a selected value (pick-time cache first, else the raw value). */\n private originalOfSelected(value: unknown): unknown {\n return this.selectionCache().find((e) => this.equals(e.value, value))?.original ?? value;\n }\n\n private labelOfValue(value: AutocompleteValue<T>): string {\n if (value === null || value === undefined) return '';\n const entry = this.entryOfValue(value);\n if (entry) return entry.label;\n return this.resolveLabel(value) ?? this.asText(value) ?? '';\n }\n\n /** @ignore Suggestion entry matching a model value, if currently known. */\n private entryOfValue(value: AutocompleteValue<T>) {\n if (value === null || value === undefined) return undefined;\n return this.flatEntries().find((e) => this.equals(e.value, value));\n }\n\n /** @ignore Shared option resolution (see `option-resolver.ts`). */\n private readonly resolver = createOptionResolver({\n optionValue: this.optionValue,\n optionLabel: this.optionLabel,\n optionDisabled: this.optionDisabled,\n dataKey: this.dataKey,\n });\n\n /** @ignore */\n private toEntry(option: unknown): AcEntry {\n return this.resolver.toEntry(option);\n }\n\n /** @ignore Read a (dot-path) field from an object. */\n private getField(target: unknown, path: string | undefined): unknown {\n return this.resolver.getField(target, path);\n }\n\n /** @ignore */\n private resolveValue(option: unknown): unknown {\n return this.resolver.resolveValue(option);\n }\n\n /** @ignore */\n private resolveLabel(option: unknown): string | null {\n return this.resolver.resolveLabel(option);\n }\n\n /** @ignore */\n private asText(value: unknown): string | null {\n return this.resolver.asText(value);\n }\n\n /** @ignore Whether a resolved value is the current model value. */\n private isValueSelected(value: unknown): boolean {\n if (this.multiple()) return this.selectedValues().some((v) => this.equals(v, value));\n const current = this.modelValue();\n return current !== null && current !== undefined && this.equals(current, value);\n }\n\n /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */\n private equals(a: unknown, b: unknown): boolean {\n return this.resolver.equals(a, b);\n }\n\n /** @ignore Case- and diacritics-insensitive comparison text. */\n private normalize(text: string): string {\n return text\n .toLowerCase()\n .normalize('NFD')\n .replace(/[̀-ͯ]/g, '');\n }\n}\n","<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-autocomplete\n */\n\nexport * from './lib/ui-autocomplete';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;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ef, Component } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { BaseFieldControl } from '@4sh/ui-kit/forms';
|
|
5
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
5
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* ui-checkbox — headless checkbox built on a real native <input type="checkbox">.
|
|
@@ -94,16 +94,16 @@ class UiCheckbox extends BaseFieldControl {
|
|
|
94
94
|
this.emitTouch();
|
|
95
95
|
this.checkboxBlur.emit(event);
|
|
96
96
|
}
|
|
97
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
98
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiCheckbox, isStandalone: true, selector: "ui-checkbox", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: true, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, checkIcon: { classPropertyName: "checkIcon", publicName: "checkIcon", isSignal: true, isRequired: false, transformFunction: null }, indeterminateIcon: { classPropertyName: "indeterminateIcon", publicName: "indeterminateIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkboxChange: "checkboxChange", checkboxFocus: "checkboxFocus", checkboxBlur: "checkboxBlur" }, providers: [
|
|
99
99
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiCheckbox), multi: true },
|
|
100
|
-
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label [class]=\"classes()\">\n <span class=\"ui-checkbox-control\">\n <input\n #inputEl\n type=\"checkbox\"\n class=\"ui-checkbox-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"checkboxFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-checkbox-box\" aria-hidden=\"true\">\n <ui-icon\n class=\"ui-checkbox-icon\"\n [name]=\"indeterminate() ? indeterminateIcon() : checkIcon()\"\n size=\"md\"\n />\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-checkbox-label\">\n <span class=\"ui-checkbox-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-checkbox-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-checkbox{display:inline-flex;align-items:center;gap:var(--units-sm);cursor:pointer;--_surface: var(--form-high-surface-default);--_stroke: var(--form-high-stroke-default);--_content: var(--form-high-content-checked)}.ui-checkbox:hover:not(._disabled):not(._readonly){--_surface: var(--form-high-surface-hover);--_stroke: var(--form-high-stroke-hover);--ui-label-color: var(--form-high-content-hover)}.ui-checkbox._checked:not(._disabled),.ui-checkbox._indeterminate:not(._disabled){--_surface: var(--form-high-surface-checked);--_stroke: var(--form-high-stroke-checked)}.ui-checkbox:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-high-stroke-focused);--_focus-ring: rgb(from var(--form-high-stroke-focused) r g b / 50%)}.ui-checkbox._disabled{--_surface: var(--form-high-surface-disabled);--_stroke: var(--form-high-stroke-disabled);--_content: var(--form-high-content-disabled)}.ui-checkbox._invalid{--_surface: var(--form-error-surface-default);--_stroke: var(--form-error-stroke-default);--_content: var(--form-error-content-checked)}.ui-checkbox._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--form-error-surface-hover);--_stroke: var(--form-error-stroke-hover);--ui-label-color: var(--form-error-content-hover)}.ui-checkbox._invalid._checked:not(._disabled),.ui-checkbox._invalid._indeterminate:not(._disabled){--_surface: var(--form-error-surface-checked);--_stroke: var(--form-error-stroke-checked)}.ui-checkbox._invalid:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-error-stroke-focused);--_focus-ring: rgb(from var(--form-error-stroke-focused) r g b / 50%)}.ui-checkbox._invalid._disabled{--_surface: var(--form-error-surface-disabled);--_stroke: var(--form-error-stroke-disabled);--_content: var(--form-error-content-disabled)}.ui-checkbox-control{position:relative;display:inline-flex;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0}.ui-checkbox-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-checkbox-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--stroke-default) solid var(--_stroke);border-radius:var(--radius-xs);transition:background-color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-checkbox:has(.ui-checkbox-input:focus-visible) .ui-checkbox-box{box-shadow:0 0 0 var(--units-2xs) var(--_focus-ring)}.ui-checkbox-icon{color:var(--_content);opacity:0;transform:scale(.6);transition:opacity var(--transition-default) var(--transition-easeinout),transform var(--transition-default) var(--transition-easeinout)}.ui-checkbox._checked .ui-checkbox-icon,.ui-checkbox._indeterminate .ui-checkbox-icon{opacity:1;transform:scale(1)}.ui-checkbox-label{display:inline-flex;align-items:center;gap:var(--units-2xs);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--transition-default) var(--transition-easeinout)}.ui-checkbox-required{color:var(--informative-errorlow-content-default)}.ui-checkbox._disabled{cursor:not-allowed}.ui-checkbox._disabled .ui-checkbox-label{color:var(--form-high-content-disabled)}.ui-checkbox._readonly{cursor:default}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
100
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label [class]=\"classes()\">\n <span class=\"ui-checkbox-control\">\n <input\n #inputEl\n type=\"checkbox\"\n class=\"ui-checkbox-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"checkboxFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-checkbox-box\" aria-hidden=\"true\">\n <ui-icon\n class=\"ui-checkbox-icon\"\n [name]=\"indeterminate() ? indeterminateIcon() : checkIcon()\"\n size=\"md\"\n />\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-checkbox-label\">\n <span class=\"ui-checkbox-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-checkbox-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-checkbox{display:inline-flex;align-items:center;gap:var(--ui-checkbox-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer;--_surface: var(--form-high-surface-default);--_stroke: var(--form-high-stroke-default);--_content: var(--form-high-content-checked)}.ui-checkbox:hover:not(._disabled):not(._readonly){--_surface: var(--form-high-surface-hover);--_stroke: var(--form-high-stroke-hover);--ui-label-color: var(--form-high-content-hover)}.ui-checkbox._checked:not(._disabled),.ui-checkbox._indeterminate:not(._disabled){--_surface: var(--form-high-surface-checked);--_stroke: var(--form-high-stroke-checked)}.ui-checkbox:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-high-stroke-focused);--_focus-ring: rgb(from var(--form-high-stroke-focused) r g b / 50%)}.ui-checkbox._disabled{--_surface: var(--form-high-surface-disabled);--_stroke: var(--form-high-stroke-disabled);--_content: var(--form-high-content-disabled)}.ui-checkbox._invalid{--_surface: var(--form-error-surface-default);--_stroke: var(--form-error-stroke-default);--_content: var(--form-error-content-checked)}.ui-checkbox._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--form-error-surface-hover);--_stroke: var(--form-error-stroke-hover);--ui-label-color: var(--form-error-content-hover)}.ui-checkbox._invalid._checked:not(._disabled),.ui-checkbox._invalid._indeterminate:not(._disabled){--_surface: var(--form-error-surface-checked);--_stroke: var(--form-error-stroke-checked)}.ui-checkbox._invalid:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-error-stroke-focused);--_focus-ring: rgb(from var(--form-error-stroke-focused) r g b / 50%)}.ui-checkbox._invalid._disabled{--_surface: var(--form-error-surface-disabled);--_stroke: var(--form-error-stroke-disabled);--_content: var(--form-error-content-disabled)}.ui-checkbox-control{position:relative;display:inline-flex;width:var(--ui-checkbox-box-size, var(--ui-form-control-size, var(--size-components-2xs)));height:var(--ui-checkbox-box-size, var(--ui-form-control-size, var(--size-components-2xs)));flex-shrink:0}.ui-checkbox-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-checkbox-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--ui-checkbox-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-checkbox-box-radius, var(--radius-xs));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox:has(.ui-checkbox-input:focus-visible) .ui-checkbox-box{box-shadow:0 0 0 var(--ui-checkbox-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_focus-ring)}.ui-checkbox-icon{--ui-icon-size: var(--ui-checkbox-icon-size, var(--ui-icon-size-md, var(--size-typography-icon-md)));color:var(--_content);opacity:0;transform:scale(.6);transition:opacity var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox._checked .ui-checkbox-icon,.ui-checkbox._indeterminate .ui-checkbox-icon{opacity:1;transform:scale(1)}.ui-checkbox-label{display:inline-flex;align-items:center;gap:var(--ui-checkbox-label-gap, var(--units-2xs));font-family:var(--fontfamily-base);font-size:var(--ui-checkbox-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox-required{color:var(--informative-errorlow-content-default)}.ui-checkbox._disabled{cursor:not-allowed}.ui-checkbox._disabled .ui-checkbox-label{color:var(--form-high-content-disabled)}.ui-checkbox._readonly{cursor:default}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
101
101
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCheckbox, decorators: [{
|
|
103
103
|
type: Component,
|
|
104
104
|
args: [{ selector: 'ui-checkbox', imports: [UiIcon], providers: [
|
|
105
105
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiCheckbox), multi: true },
|
|
106
|
-
], template: "<label [class]=\"classes()\">\n <span class=\"ui-checkbox-control\">\n <input\n #inputEl\n type=\"checkbox\"\n class=\"ui-checkbox-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"checkboxFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-checkbox-box\" aria-hidden=\"true\">\n <ui-icon\n class=\"ui-checkbox-icon\"\n [name]=\"indeterminate() ? indeterminateIcon() : checkIcon()\"\n size=\"md\"\n />\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-checkbox-label\">\n <span class=\"ui-checkbox-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-checkbox-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-checkbox{display:inline-flex;align-items:center;gap:var(--units-sm);cursor:pointer;--_surface: var(--form-high-surface-default);--_stroke: var(--form-high-stroke-default);--_content: var(--form-high-content-checked)}.ui-checkbox:hover:not(._disabled):not(._readonly){--_surface: var(--form-high-surface-hover);--_stroke: var(--form-high-stroke-hover);--ui-label-color: var(--form-high-content-hover)}.ui-checkbox._checked:not(._disabled),.ui-checkbox._indeterminate:not(._disabled){--_surface: var(--form-high-surface-checked);--_stroke: var(--form-high-stroke-checked)}.ui-checkbox:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-high-stroke-focused);--_focus-ring: rgb(from var(--form-high-stroke-focused) r g b / 50%)}.ui-checkbox._disabled{--_surface: var(--form-high-surface-disabled);--_stroke: var(--form-high-stroke-disabled);--_content: var(--form-high-content-disabled)}.ui-checkbox._invalid{--_surface: var(--form-error-surface-default);--_stroke: var(--form-error-stroke-default);--_content: var(--form-error-content-checked)}.ui-checkbox._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--form-error-surface-hover);--_stroke: var(--form-error-stroke-hover);--ui-label-color: var(--form-error-content-hover)}.ui-checkbox._invalid._checked:not(._disabled),.ui-checkbox._invalid._indeterminate:not(._disabled){--_surface: var(--form-error-surface-checked);--_stroke: var(--form-error-stroke-checked)}.ui-checkbox._invalid:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-error-stroke-focused);--_focus-ring: rgb(from var(--form-error-stroke-focused) r g b / 50%)}.ui-checkbox._invalid._disabled{--_surface: var(--form-error-surface-disabled);--_stroke: var(--form-error-stroke-disabled);--_content: var(--form-error-content-disabled)}.ui-checkbox-control{position:relative;display:inline-flex;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0}.ui-checkbox-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-checkbox-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--stroke-default) solid var(--_stroke);border-radius:var(--radius-xs);transition:background-color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-checkbox:has(.ui-checkbox-input:focus-visible) .ui-checkbox-box{box-shadow:0 0 0 var(--units-2xs) var(--_focus-ring)}.ui-checkbox-icon{color:var(--_content);opacity:0;transform:scale(.6);transition:opacity var(--transition-default) var(--transition-easeinout),transform var(--transition-default) var(--transition-easeinout)}.ui-checkbox._checked .ui-checkbox-icon,.ui-checkbox._indeterminate .ui-checkbox-icon{opacity:1;transform:scale(1)}.ui-checkbox-label{display:inline-flex;align-items:center;gap:var(--units-2xs);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--transition-default) var(--transition-easeinout)}.ui-checkbox-required{color:var(--informative-errorlow-content-default)}.ui-checkbox._disabled{cursor:not-allowed}.ui-checkbox._disabled .ui-checkbox-label{color:var(--form-high-content-disabled)}.ui-checkbox._readonly{cursor:default}\n"] }]
|
|
106
|
+
], template: "<label [class]=\"classes()\">\n <span class=\"ui-checkbox-control\">\n <input\n #inputEl\n type=\"checkbox\"\n class=\"ui-checkbox-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"checkboxFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-checkbox-box\" aria-hidden=\"true\">\n <ui-icon\n class=\"ui-checkbox-icon\"\n [name]=\"indeterminate() ? indeterminateIcon() : checkIcon()\"\n size=\"md\"\n />\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-checkbox-label\">\n <span class=\"ui-checkbox-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-checkbox-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-checkbox{display:inline-flex;align-items:center;gap:var(--ui-checkbox-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer;--_surface: var(--form-high-surface-default);--_stroke: var(--form-high-stroke-default);--_content: var(--form-high-content-checked)}.ui-checkbox:hover:not(._disabled):not(._readonly){--_surface: var(--form-high-surface-hover);--_stroke: var(--form-high-stroke-hover);--ui-label-color: var(--form-high-content-hover)}.ui-checkbox._checked:not(._disabled),.ui-checkbox._indeterminate:not(._disabled){--_surface: var(--form-high-surface-checked);--_stroke: var(--form-high-stroke-checked)}.ui-checkbox:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-high-stroke-focused);--_focus-ring: rgb(from var(--form-high-stroke-focused) r g b / 50%)}.ui-checkbox._disabled{--_surface: var(--form-high-surface-disabled);--_stroke: var(--form-high-stroke-disabled);--_content: var(--form-high-content-disabled)}.ui-checkbox._invalid{--_surface: var(--form-error-surface-default);--_stroke: var(--form-error-stroke-default);--_content: var(--form-error-content-checked)}.ui-checkbox._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--form-error-surface-hover);--_stroke: var(--form-error-stroke-hover);--ui-label-color: var(--form-error-content-hover)}.ui-checkbox._invalid._checked:not(._disabled),.ui-checkbox._invalid._indeterminate:not(._disabled){--_surface: var(--form-error-surface-checked);--_stroke: var(--form-error-stroke-checked)}.ui-checkbox._invalid:has(.ui-checkbox-input:focus-visible){--_stroke: var(--form-error-stroke-focused);--_focus-ring: rgb(from var(--form-error-stroke-focused) r g b / 50%)}.ui-checkbox._invalid._disabled{--_surface: var(--form-error-surface-disabled);--_stroke: var(--form-error-stroke-disabled);--_content: var(--form-error-content-disabled)}.ui-checkbox-control{position:relative;display:inline-flex;width:var(--ui-checkbox-box-size, var(--ui-form-control-size, var(--size-components-2xs)));height:var(--ui-checkbox-box-size, var(--ui-form-control-size, var(--size-components-2xs)));flex-shrink:0}.ui-checkbox-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-checkbox-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--ui-checkbox-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-checkbox-box-radius, var(--radius-xs));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox:has(.ui-checkbox-input:focus-visible) .ui-checkbox-box{box-shadow:0 0 0 var(--ui-checkbox-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_focus-ring)}.ui-checkbox-icon{--ui-icon-size: var(--ui-checkbox-icon-size, var(--ui-icon-size-md, var(--size-typography-icon-md)));color:var(--_content);opacity:0;transform:scale(.6);transition:opacity var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox._checked .ui-checkbox-icon,.ui-checkbox._indeterminate .ui-checkbox-icon{opacity:1;transform:scale(1)}.ui-checkbox-label{display:inline-flex;align-items:center;gap:var(--ui-checkbox-label-gap, var(--units-2xs));font-family:var(--fontfamily-base);font-size:var(--ui-checkbox-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox-required{color:var(--informative-errorlow-content-default)}.ui-checkbox._disabled{cursor:not-allowed}.ui-checkbox._disabled .ui-checkbox-label{color:var(--form-high-content-disabled)}.ui-checkbox._readonly{cursor:default}\n"] }]
|
|
107
107
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], trueValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "trueValue", required: false }] }], falseValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "falseValue", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checkIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkIcon", required: false }] }], indeterminateIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminateIcon", required: false }] }], checkboxChange: [{ type: i0.Output, args: ["checkboxChange"] }], checkboxFocus: [{ type: i0.Output, args: ["checkboxFocus"] }], checkboxBlur: [{ type: i0.Output, args: ["checkboxBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
|
|
108
108
|
|
|
109
109
|
/*
|
|
@@ -115,4 +115,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
117
|
export { UiCheckbox };
|
|
118
|
-
//# sourceMappingURL=4sh-ui-kit-ui-checkbox.mjs.map
|
|
118
|
+
//# sourceMappingURL=4sh-ui-kit-forms-ui-checkbox.mjs.map
|