@ids-group-ltd/ids-design-system 0.11.3 → 0.12.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/CHANGELOG.md +253 -13
- package/components/README.md +86 -0
- package/components.md +12 -4
- package/docs/agent/INDEX.md +1 -0
- package/docs/agent/platform/body-scroll-lock-service.md +12 -0
- package/docs/agent/platform/toast-service.md +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14030
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -1
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +247 -0
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.7.1.json +2 -1
- package/migrations/0.8.0.json +6 -5
- package/package.json +573 -1
- package/styles/_control-label.scss +18 -0
- package/styles/_ds-color.scss +6 -0
- package/styles/_focus.scss +16 -0
- package/styles/_skeleton-shimmer.scss +10 -26
- package/themes/README.md +4 -4
- package/themes/_semantic.scss +11 -2
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
- package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +72 -5544
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
5
|
+
import { DsOptionItem, DsOption, DsOptionGroup, DsControlWidth, DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
import * as _angular_core from '@angular/core';
|
|
7
|
+
import { OnDestroy, TemplateRef, ElementRef } from '@angular/core';
|
|
8
|
+
|
|
9
|
+
/** `content` here also reserves a minimum typing area beside the chips. */
|
|
10
|
+
type AutocompleteWidth = DsControlWidth;
|
|
11
|
+
/** What a settled single value does when it outgrows the trigger. */
|
|
12
|
+
type AutocompleteValueOverflow = 'ellipsis' | 'wrap';
|
|
13
|
+
interface AutocompleteOption<T = unknown> extends DsOption<T> {
|
|
14
|
+
}
|
|
15
|
+
interface AutocompleteOptionGroup<T = unknown> extends DsOptionGroup<T> {
|
|
16
|
+
}
|
|
17
|
+
type AutocompleteItem<T = unknown> = DsOptionItem<T>;
|
|
18
|
+
|
|
19
|
+
declare class AutocompleteComponent<T = unknown> extends DsControlValueAccessor<T | readonly T[] | null> implements OnDestroy {
|
|
20
|
+
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
21
|
+
* ring, so .in-group strips this control back to its bare contents. */
|
|
22
|
+
protected readonly inGroup: boolean;
|
|
23
|
+
private readonly overlay;
|
|
24
|
+
private readonly vcr;
|
|
25
|
+
private readonly host;
|
|
26
|
+
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
27
|
+
* a consumer's `ds-autocomplete { --ds-autocomplete-panel-*: … }` reaches it. */
|
|
28
|
+
private readonly panelTokens;
|
|
29
|
+
/** Options, groups, or both mixed — rendered in the order given. */
|
|
30
|
+
readonly options: _angular_core.InputSignal<readonly AutocompleteItem<T>[]>;
|
|
31
|
+
/** Selected value, or an array of values when `multiple`. */
|
|
32
|
+
readonly value: _angular_core.ModelSignal<T | readonly T[] | null>;
|
|
33
|
+
/** Allows selecting more than one option, shown as removable tags. */
|
|
34
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
/** Draws the trailing chevron. Turn it off for a search field, where an arrow
|
|
36
|
+
* invites a click that would list everything instead of searching. */
|
|
37
|
+
readonly showChevron: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
/** How the chips collapse when they outgrow one line. `"fit"` (the default)
|
|
39
|
+
* measures and shows as many as the trigger is wide, the rest behind "+N more".
|
|
40
|
+
* A NUMBER is a CEILING, not a promise: the row still measures, so you get at
|
|
41
|
+
* most that many and fewer when the trigger is narrow. `"all"` shows every chip and
|
|
42
|
+
* lets the trigger grow a line per selection.
|
|
43
|
+
*
|
|
44
|
+
* Unset (`null`) means "not deciding", as it does on every other input in the
|
|
45
|
+
* library — it resolves to `"fit"`. It does NOT mean "show all": that is
|
|
46
|
+
* `"all"`, which is the loudest of the three modes and has to be asked for. */
|
|
47
|
+
readonly maxVisibleChips: _angular_core.InputSignalWithTransform<number | "fit" | "all" | null, number | "fit" | "all" | null>;
|
|
48
|
+
/** Trigger height — sm/md/lg.
|
|
49
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
50
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
51
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
52
|
+
/** Trigger width — `fill` stretches to the container, `content` hugs the value. */
|
|
53
|
+
readonly width: _angular_core.InputSignal<_ids_group_ltd_ids_design_system_core.DsControlWidth>;
|
|
54
|
+
/** What a settled single value does when it is wider than the trigger. Defaults
|
|
55
|
+
* to `ellipsis`; `wrap` restores the pre-0.12 behaviour, where the value broke
|
|
56
|
+
* onto a second line and pushed the chevron onto a third. Multi mode is
|
|
57
|
+
* unaffected — its chips have their own measured cap. */
|
|
58
|
+
readonly valueOverflow: _angular_core.InputSignal<AutocompleteValueOverflow>;
|
|
59
|
+
/** Placeholder shown in the input when empty. */
|
|
60
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
61
|
+
/** Disables the trigger and blocks all interaction. */
|
|
62
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
64
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
65
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
66
|
+
/** Shows a "Create «text»" row when the typed text matches no option. */
|
|
67
|
+
readonly allowCreate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
68
|
+
/** Field label above the control — the same meaning it has on the other two pickers. */
|
|
69
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
70
|
+
/** How two values are decided to be the same one. The default is `===`, which
|
|
71
|
+
* is reference identity — so with object values a re-fetch that returns equal
|
|
72
|
+
* data as NEW objects loses the selection. Pass a comparator keyed on whatever
|
|
73
|
+
* identifies the value: `(a, b) => a?.id === b?.id`. */
|
|
74
|
+
readonly compareWith: _angular_core.InputSignal<(a: T | null, b: T | null) => boolean>;
|
|
75
|
+
/** Native `name` attribute forwarded to the trigger. */
|
|
76
|
+
readonly name: _angular_core.InputSignal<string | null>;
|
|
77
|
+
/** Prevents opening the panel while still allowing focus. */
|
|
78
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* The contract spelling of `readOnly`, a second input because signal forms binds
|
|
81
|
+
* by NAME — a `readonly()` rule was reaching nothing before this existed.
|
|
82
|
+
*/
|
|
83
|
+
readonly readonlyBinding: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
/** Shows a clear affordance once there is something to clear. */
|
|
85
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** Placeholder while the field is being typed in, when a value is already
|
|
87
|
+
* settled — `placeholder` is the empty-field caption and cannot be both.
|
|
88
|
+
* Empty (the default) keeps `placeholder` doing both jobs, as before. */
|
|
89
|
+
readonly searchPlaceholder: _angular_core.InputSignal<string>;
|
|
90
|
+
/** How the typed query narrows the list.
|
|
91
|
+
*
|
|
92
|
+
* The default matches a case-insensitive substring of `label`. Pass a predicate
|
|
93
|
+
* to match on anything else — a second field, ignoring diacritics, a fuzzy score.
|
|
94
|
+
* Pass `'none'` when the list arrives already filtered, which is what a
|
|
95
|
+
* server-side search needs: the query is reported through `filterChange` and
|
|
96
|
+
* every option given is rendered.
|
|
97
|
+
*/
|
|
98
|
+
readonly filterWith: _angular_core.InputSignal<((option: AutocompleteOption<T>, query: string) => boolean) | "none">;
|
|
99
|
+
/** The query the user typed, on every change. The input for a server-side search;
|
|
100
|
+
* pair it with `filterWith="none"` so the list is not narrowed twice. */
|
|
101
|
+
readonly filterChange: _angular_core.OutputEmitterRef<string>;
|
|
102
|
+
/** Options are still being fetched. The panel shows a spinner instead of the
|
|
103
|
+
* empty row — which would otherwise claim there are no matches — and the list
|
|
104
|
+
* reports `aria-busy`. */
|
|
105
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** The panel opened. The moment to fetch options for a picker whose list is
|
|
107
|
+
* loaded on demand. */
|
|
108
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
109
|
+
/** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */
|
|
110
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
111
|
+
/** Scrolls the keyboard cursor's row into view. On by default: a list longer
|
|
112
|
+
* than the panel otherwise walks the cursor out of sight. Set `false` only if
|
|
113
|
+
* you are driving the scroll position yourself. */
|
|
114
|
+
readonly scrollActiveIntoView: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
115
|
+
/** Marks the field required: a `*` beside the label and `aria-required` on the input. */
|
|
116
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
117
|
+
/** Marks the field optional in words, for a form where most fields are required. */
|
|
118
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
119
|
+
/** Accessible name for the input. */
|
|
120
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
121
|
+
/** Fires with the typed text when the user picks the create-new option. */
|
|
122
|
+
readonly create: _angular_core.OutputEmitterRef<string>;
|
|
123
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
124
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
125
|
+
private readonly fieldMessage;
|
|
126
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
127
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
128
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
129
|
+
protected readonly optionTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
130
|
+
protected readonly chipTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
131
|
+
protected readonly pickerTrigger: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
132
|
+
protected readonly panelHeaderTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
133
|
+
protected readonly panelFooterTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
134
|
+
protected readonly groupLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
135
|
+
protected readonly emptyTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
136
|
+
protected readonly createTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
137
|
+
protected readonly query: _angular_core.WritableSignal<string>;
|
|
138
|
+
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
139
|
+
protected readonly activeIndex: _angular_core.WritableSignal<number>;
|
|
140
|
+
protected readonly trigger: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
141
|
+
protected readonly filterInput: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
142
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
143
|
+
private readonly chipRow;
|
|
144
|
+
private overlayRef;
|
|
145
|
+
protected readonly uid: string;
|
|
146
|
+
protected readonly listboxId: string;
|
|
147
|
+
protected readonly labelId: string;
|
|
148
|
+
protected optionId(index: number): string;
|
|
149
|
+
protected readonly activeDescendant: _angular_core.Signal<string | null>;
|
|
150
|
+
protected readonly allOptions: _angular_core.Signal<readonly AutocompleteOption<T>[]>;
|
|
151
|
+
protected readonly filteredItems: _angular_core.Signal<AutocompleteItem<T>[]>;
|
|
152
|
+
protected readonly filteredOptions: _angular_core.Signal<readonly AutocompleteOption<T>[]>;
|
|
153
|
+
protected isGroup(item: AutocompleteItem<T>): item is AutocompleteOptionGroup<T>;
|
|
154
|
+
protected readonly showCreateRow: _angular_core.Signal<boolean>;
|
|
155
|
+
protected readonly visibleOptions: _angular_core.Signal<readonly AutocompleteOption<T>[]>;
|
|
156
|
+
/** The visible label wins the accessible name when there is one — otherwise the
|
|
157
|
+
* placeholder would announce over it, and `placeholder` always carries a default. */
|
|
158
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
159
|
+
protected readonly selectedTags: _angular_core.Signal<AutocompleteOption<T>[]>;
|
|
160
|
+
private readonly chipsMode;
|
|
161
|
+
private readonly showsEveryChip;
|
|
162
|
+
/** True for a number as well as `'fit'`: a number is a ceiling, not a promise,
|
|
163
|
+
* so the row still measures. */
|
|
164
|
+
protected readonly fitsChipsToWidth: _angular_core.Signal<boolean>;
|
|
165
|
+
/** How many chips the row is ASKED to render before measuring. It has to be the
|
|
166
|
+
* ceiling and not the selection: the measurement caches chip widths from a
|
|
167
|
+
* render that holds them all, so with a numeric cap that render never happens,
|
|
168
|
+
* the cache never fills, and the fit silently falls back to showing them all. */
|
|
169
|
+
private readonly chipBudget;
|
|
170
|
+
private readonly chipsThatFit;
|
|
171
|
+
/** What the trigger renders. Separate from `selectedTags`, which stays the
|
|
172
|
+
* full selection: Backspace removes the last SELECTED chip, and capping the
|
|
173
|
+
* list it reads would silently make it remove the last VISIBLE one instead. */
|
|
174
|
+
protected readonly visibleTags: _angular_core.Signal<AutocompleteOption<T>[]>;
|
|
175
|
+
protected readonly overflowCount: _angular_core.Signal<number>;
|
|
176
|
+
protected readonly selectedOption: _angular_core.Signal<AutocompleteOption<T> | null>;
|
|
177
|
+
protected readonly displayLabel: _angular_core.Signal<string>;
|
|
178
|
+
protected readonly hasSingleValue: _angular_core.Signal<boolean>;
|
|
179
|
+
protected readonly triggerSelection: _angular_core.Signal<AutocompleteOption<T> | AutocompleteOption<T>[] | null>;
|
|
180
|
+
protected readonly placeholderText: _angular_core.Signal<string>;
|
|
181
|
+
protected isSelected(option: AutocompleteOption<T>): boolean;
|
|
182
|
+
protected optionClass(option: AutocompleteOption<T>): string;
|
|
183
|
+
/** -1 when nothing is pickable and there is no create row to fall back on. */
|
|
184
|
+
private firstEnabledIndex;
|
|
185
|
+
/** Steps OVER a disabled option rather than landing on it. `step` is +1/-1; the
|
|
186
|
+
* create row (past the last option) is always reachable, and -1 comes back when
|
|
187
|
+
* every option is disabled. */
|
|
188
|
+
private nextEnabledIndex;
|
|
189
|
+
protected flatIndexOf(option: AutocompleteOption<T>): number;
|
|
190
|
+
constructor();
|
|
191
|
+
private setOpen;
|
|
192
|
+
protected readonly isReadOnly: _angular_core.Signal<boolean>;
|
|
193
|
+
protected readonly cursorFromKeyboard: _angular_core.WritableSignal<boolean>;
|
|
194
|
+
/** How far PageUp and PageDown move. Ten rows is the native `<select>` step and
|
|
195
|
+
* the APG listbox example's — a fixed number rather than a measured screenful,
|
|
196
|
+
* so the jump is the same wherever the panel happens to be clipped. */
|
|
197
|
+
private static readonly pageStep;
|
|
198
|
+
private cursorList;
|
|
199
|
+
protected onTriggerClick(): void;
|
|
200
|
+
protected togglePanel(event: MouseEvent): void;
|
|
201
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
202
|
+
protected openPanel(): void;
|
|
203
|
+
protected close(cause?: DsOverlayCloseCause): void;
|
|
204
|
+
protected clearValue(event: MouseEvent): void;
|
|
205
|
+
/**
|
|
206
|
+
* Empties the field — both the selected value and the text the user typed.
|
|
207
|
+
*
|
|
208
|
+
* `value.set(null)` alone is not enough from outside: the typed query is
|
|
209
|
+
* component state with no input bound to it, so the text stays on screen after
|
|
210
|
+
* the value goes.
|
|
211
|
+
*
|
|
212
|
+
* Deliberately does NOT move focus — the caller may be navigating away, and
|
|
213
|
+
* stealing focus back into a field they just left is worse than leaving it.
|
|
214
|
+
*/
|
|
215
|
+
clear(): void;
|
|
216
|
+
ngOnDestroy(): void;
|
|
217
|
+
protected onFilter(event: Event): void;
|
|
218
|
+
protected onPick(option: AutocompleteOption<T>): void;
|
|
219
|
+
protected onCreateNew(): void;
|
|
220
|
+
protected remove(target: T): void;
|
|
221
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutocompleteComponent<any>, never>;
|
|
222
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutocompleteComponent<any>, "ds-autocomplete", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showChevron": { "alias": "showChevron"; "required": false; "isSignal": true; }; "maxVisibleChips": { "alias": "maxVisibleChips"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "valueOverflow": { "alias": "valueOverflow"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "allowCreate": { "alias": "allowCreate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "filterWith": { "alias": "filterWith"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "scrollActiveIntoView": { "alias": "scrollActiveIntoView"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "filterChange": "filterChange"; "opened": "opened"; "closed": "closed"; "create": "create"; }, ["optionTemplate", "chipTemplate", "pickerTrigger", "panelHeaderTemplate", "panelFooterTemplate", "groupLabelTemplate", "emptyTemplate", "createTemplate"], ["[dsAutocompletePrefix]", "[dsAutocompleteSuffix]"], true, never>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export { AutocompleteComponent };
|
|
226
|
+
export type { AutocompleteItem, AutocompleteOption, AutocompleteOptionGroup, AutocompleteValueOverflow, AutocompleteWidth };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class AvatarGroupComponent {
|
|
4
|
+
/** Maximum avatars shown before the rest collapse into an overflow chip. */
|
|
5
|
+
readonly max: _angular_core.InputSignal<number>;
|
|
6
|
+
/** Total avatar count driving the `+N` overflow; null counts the projected children. */
|
|
7
|
+
readonly total: _angular_core.InputSignal<number | null>;
|
|
8
|
+
protected readonly overflow: _angular_core.Signal<number | null>;
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvatarGroupComponent, never>;
|
|
10
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvatarGroupComponent, "ds-avatar-group", never, { "max": { "alias": "max"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AvatarGroupComponent };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DsSize, IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type AvatarSize = 'xs' | DsSize;
|
|
5
|
+
type AvatarStatus = 'online' | 'offline' | 'away' | 'busy';
|
|
6
|
+
|
|
7
|
+
declare class AvatarComponent {
|
|
8
|
+
/** Diameter — xs/sm/lg apply a size class; md is the default. */
|
|
9
|
+
readonly size: _angular_core.InputSignal<AvatarSize>;
|
|
10
|
+
/** Fallback text shown when there's no `imageUrl`. Wins over anything derived
|
|
11
|
+
* from `name`, so a caller that already has the letters keeps passing them. */
|
|
12
|
+
readonly initials: _angular_core.InputSignal<string>;
|
|
13
|
+
/** The person or thing this avatar stands for — one binding drives both the
|
|
14
|
+
* initials and the seed the tint hashes.
|
|
15
|
+
*
|
|
16
|
+
* The tint keys on the NAME, never on the initials — two letters collide
|
|
17
|
+
* wholesale, so every Alice Brown and Adam Bell would share one colour. */
|
|
18
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
19
|
+
/** Replaces the built-in rule for turning `name` into initials, for one avatar
|
|
20
|
+
* or one table of them. Falls back to `DS_CONFIG.avatar.initials`, then to
|
|
21
|
+
* `initialsFrom` — first two words, a Latin-script guess the library does not
|
|
22
|
+
* pretend is universal. */
|
|
23
|
+
readonly initialsRule: _angular_core.InputSignal<((name: string) => string) | null>;
|
|
24
|
+
/** Image source; shown before `initials` or `fallbackIcon` when set. */
|
|
25
|
+
readonly imageUrl: _angular_core.InputSignal<string | null>;
|
|
26
|
+
/** Accessible name. When omitted, the avatar is treated as decorative
|
|
27
|
+
* (hidden from AT) — correct when a visible name sits beside it. */
|
|
28
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
29
|
+
/** Off-token color tint. Accepts a `{ bg, fg }` pair for arbitrary palettes,
|
|
30
|
+
* the literal `'neutral'` for the neutral overflow-chip treatment, or null
|
|
31
|
+
* for the default brand-subtle tones from avatar.scss. */
|
|
32
|
+
readonly tint: _angular_core.InputSignal<{
|
|
33
|
+
bg: string;
|
|
34
|
+
fg: string;
|
|
35
|
+
} | "neutral" | null>;
|
|
36
|
+
/** Presence indicator shown as a colored dot in the bottom-right corner. */
|
|
37
|
+
readonly status: _angular_core.InputSignal<AvatarStatus | null>;
|
|
38
|
+
/** Icon rendered when there is no imageUrl and no initials. */
|
|
39
|
+
readonly fallbackIcon: _angular_core.InputSignal<IconName | null>;
|
|
40
|
+
/** Seed for a deterministic tint (e.g. an email) used when no explicit `tint` is
|
|
41
|
+
* set — the same seed always yields the same colour. Defaults to `name`; set it
|
|
42
|
+
* explicitly when identity is an id or an email rather than the display name. */
|
|
43
|
+
readonly seed: _angular_core.InputSignal<string | null>;
|
|
44
|
+
/** Hue arcs `[start, end]` (0–360°) the seeded tint must avoid, e.g. a brand
|
|
45
|
+
* hue: `[[310, 360], [0, 20]]`. Only applies when `seed` drives the tint. */
|
|
46
|
+
readonly avoidHues: _angular_core.InputSignal<readonly (readonly [number, number])[]>;
|
|
47
|
+
private readonly config;
|
|
48
|
+
protected readonly initialsText: _angular_core.Signal<string>;
|
|
49
|
+
protected readonly tintStyle: _angular_core.Signal<{
|
|
50
|
+
bg: string | null;
|
|
51
|
+
fg: string | null;
|
|
52
|
+
}>;
|
|
53
|
+
protected readonly statusAriaLabel: _angular_core.Signal<string | null>;
|
|
54
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
55
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvatarComponent, "ds-avatar", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "initialsRule": { "alias": "initialsRule"; "required": false; "isSignal": true; }; "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "tint": { "alias": "tint"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "fallbackIcon": { "alias": "fallbackIcon"; "required": false; "isSignal": true; }; "seed": { "alias": "seed"; "required": false; "isSignal": true; }; "avoidHues": { "alias": "avoidHues"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Options for {@link avatarTint}. */
|
|
59
|
+
interface AvatarTintOptions {
|
|
60
|
+
/** Hue arcs (degrees, `[start, end]` with `start < end`, within 0–360) the
|
|
61
|
+
* derived hue must never land in — e.g. `[[310, 360], [0, 20]]` to skip a
|
|
62
|
+
* pink brand hue and reds. An arc crossing 0° must be given as two arcs.
|
|
63
|
+
* Default: none (full 0–360 range). */
|
|
64
|
+
avoidHues?: readonly (readonly [number, number])[];
|
|
65
|
+
/** HSL lightness percentage. Default 62. */
|
|
66
|
+
lightness?: number;
|
|
67
|
+
/** HSL saturation percentage. Default 50. */
|
|
68
|
+
saturation?: number;
|
|
69
|
+
/** Text colour paired with the background. Default `#fff`. */
|
|
70
|
+
foreground?: string;
|
|
71
|
+
}
|
|
72
|
+
/** Deterministic `{ bg, fg }` tint for a seed string (an email, a name), so the
|
|
73
|
+
* same person always gets the same colour.
|
|
74
|
+
*
|
|
75
|
+
* The background is `hsl(H 50% 62%)` and the text is always WHITE. HSL lightness is
|
|
76
|
+
* not perceptually even, so the set reads bright — at the cost of contrast: white on
|
|
77
|
+
* the lighter hues measures as little as 1.65:1, under the 4.5:1 WCAG AA asks of
|
|
78
|
+
* text. Where the initials are the only identifier, pass your own `lightness`
|
|
79
|
+
* (about 50) and keep white, which measures 5.3-6.6:1.
|
|
80
|
+
*
|
|
81
|
+
* Pass to `ds-avatar`'s `tint`, or let the component derive it via `seed`. */
|
|
82
|
+
declare function avatarTint(seed: string, options?: AvatarTintOptions): {
|
|
83
|
+
bg: string;
|
|
84
|
+
fg: string;
|
|
85
|
+
};
|
|
86
|
+
/** Uppercased initials from the first two words. Accepts `(first, last)` parts or
|
|
87
|
+
* a single full name (`initialsFrom('Ada Lovelace')` → `AL`); a lone name gives
|
|
88
|
+
* one letter, `?` when empty.
|
|
89
|
+
*
|
|
90
|
+
* A deliberately naive Latin-script guess, and the library's ONLY naming rule.
|
|
91
|
+
* Reading a name is a cultural convention, not a UI decision — "María José
|
|
92
|
+
* García López" wants MG from a Spanish reader and "Blue Cross Blue Shield" wants
|
|
93
|
+
* BC from an insurer — so an app with a real rule passes its own through
|
|
94
|
+
* `DS_CONFIG.avatar.initials` or `ds-avatar`'s `initialsRule` rather than asking
|
|
95
|
+
* this to grow modes it cannot get right. */
|
|
96
|
+
declare function initialsFrom(first?: string, last?: string): string;
|
|
97
|
+
|
|
98
|
+
export { AvatarComponent, avatarTint, initialsFrom };
|
|
99
|
+
export type { AvatarSize, AvatarStatus, AvatarTintOptions };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class BadgeComponent {
|
|
4
|
+
/** Consumer-defined status key; colours are wired via styles/status. Unset → neutral. */
|
|
5
|
+
readonly status: _angular_core.InputSignal<string | undefined>;
|
|
6
|
+
/** Leading status dot, rendered only while `count` is unset — a count replaces the
|
|
7
|
+
* badge's whole content. Unset falls back to `DS_CONFIG.badge.withDot`, then `false`. */
|
|
8
|
+
readonly withDot: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
9
|
+
readonly withDotResolved: _angular_core.Signal<boolean>;
|
|
10
|
+
/** Solid accent fill instead of the default subtle background. */
|
|
11
|
+
readonly solid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
/** Numeric count to display; overrides projected content when set. */
|
|
13
|
+
readonly count: _angular_core.InputSignal<number | null>;
|
|
14
|
+
/** Count is capped at this value, shown as `"max+"` beyond it. */
|
|
15
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
16
|
+
/** Noun used in the count's accessible label — set for non-notification counts (cart, results, …). */
|
|
17
|
+
readonly countLabel: _angular_core.InputSignal<string>;
|
|
18
|
+
protected readonly countDisplay: _angular_core.Signal<string | null>;
|
|
19
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
20
|
+
protected readonly countAriaLabel: _angular_core.Signal<string | null>;
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
22
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ds-badge", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "withDot": { "alias": "withDot"; "required": false; "isSignal": true; }; "solid": { "alias": "solid"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { BadgeComponent };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type BannerVariant = 'info' | 'success' | 'warning' | 'severe' | 'error' | 'neutral';
|
|
5
|
+
|
|
6
|
+
declare class BannerComponent {
|
|
7
|
+
/** Severity — drives colour, the default icon and the ARIA role/live. */
|
|
8
|
+
readonly variant: _angular_core.InputSignal<BannerVariant>;
|
|
9
|
+
/** Optional bold heading above the message. */
|
|
10
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
11
|
+
/** Show a close button that emits `closed`. */
|
|
12
|
+
readonly dismissible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
/** Override the variant's default icon. */
|
|
14
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
15
|
+
/** Tighter padding, centred items, single-line title. */
|
|
16
|
+
readonly compact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
/** `'stacked'` wraps actions onto their own line; `'row'` keeps them inline. */
|
|
18
|
+
readonly layout: _angular_core.InputSignal<"stacked" | "row">;
|
|
19
|
+
/** Coloured accent rail on the leading edge; set false to hide it. */
|
|
20
|
+
readonly accentRail: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
/** Fires when the user dismisses the banner. */
|
|
22
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
23
|
+
protected get noRail(): boolean;
|
|
24
|
+
/** Announce this banner to a screen reader when it appears.
|
|
25
|
+
*
|
|
26
|
+
* Off by default: an `alert` region fires on INSERTION, so a banner that is page
|
|
27
|
+
* furniture would interrupt the reader on every route into the page. Turn it on for
|
|
28
|
+
* one the app raises in response to an event; for anything transient prefer
|
|
29
|
+
* `ToastService`, which owns a live region built for the purpose. */
|
|
30
|
+
readonly announce: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
protected get ariaRole(): 'alert' | 'status' | null;
|
|
32
|
+
protected get ariaLive(): 'assertive' | 'polite' | null;
|
|
33
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
34
|
+
protected readonly defaultIcon: _angular_core.Signal<IconName>;
|
|
35
|
+
protected onDismiss(): void;
|
|
36
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BannerComponent, never>;
|
|
37
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BannerComponent, "ds-banner", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "accentRail": { "alias": "accentRail"; "required": false; "isSignal": true; }; "announce": { "alias": "announce"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { BannerComponent };
|
|
41
|
+
export type { BannerVariant };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Bottom-anchored sheet — the mobile sibling of ds-drawer. Closes on scrim
|
|
5
|
+
* tap, Escape, or a downward drag on the grab strip. While open it locks
|
|
6
|
+
* body scroll. On wide viewports the panel is capped by
|
|
7
|
+
* --ds-bottom-sheet-maxw and centred; prefer ds-modal / ds-drawer for
|
|
8
|
+
* desktop-first layouts. position: fixed resolves against the nearest
|
|
9
|
+
* ancestor containing block, so framed hosts contain the sheet. */
|
|
10
|
+
declare class BottomSheetComponent implements OnDestroy {
|
|
11
|
+
/** Open state, two-way bound. */
|
|
12
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
13
|
+
/** Sheet title, shown in the header and used for `aria-labelledby`. */
|
|
14
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
15
|
+
/** Fires once the close (leave) animation finishes. */
|
|
16
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
17
|
+
protected readonly titleId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Snap-point heights as fractions of viewport height (0–1), ascending.
|
|
20
|
+
* e.g. [0.4, 0.9]. When provided the sheet opens at the first snap point;
|
|
21
|
+
* dragging snaps to the nearest point; dragging below the lowest closes.
|
|
22
|
+
* When empty (default) the original single-height behavior is preserved.
|
|
23
|
+
*/
|
|
24
|
+
readonly snapPoints: _angular_core.InputSignal<readonly number[]>;
|
|
25
|
+
private readonly doc;
|
|
26
|
+
private readonly scrollLock;
|
|
27
|
+
private readonly sheetRef;
|
|
28
|
+
protected readonly dragOffset: _angular_core.WritableSignal<number | null>;
|
|
29
|
+
/** Sheet is in the DOM (kept true through the leave animation). */
|
|
30
|
+
protected readonly rendered: _angular_core.WritableSignal<boolean>;
|
|
31
|
+
/** Playing the slide-down + scrim-fade leave animation. */
|
|
32
|
+
protected readonly closing: _angular_core.WritableSignal<boolean>;
|
|
33
|
+
/** Index of the currently active snap point (only used when snapPoints is non-empty). */
|
|
34
|
+
protected readonly activeSnapIndex: _angular_core.WritableSignal<number>;
|
|
35
|
+
/** CSS height string derived from the active snap point, or null when snapPoints is empty. */
|
|
36
|
+
protected readonly snapHeight: _angular_core.Signal<string | null>;
|
|
37
|
+
private dragStartY;
|
|
38
|
+
private lastMoveY;
|
|
39
|
+
private lastMoveTime;
|
|
40
|
+
private velocity;
|
|
41
|
+
private wasOpen;
|
|
42
|
+
private closeFallbackTimer;
|
|
43
|
+
constructor();
|
|
44
|
+
ngOnDestroy(): void;
|
|
45
|
+
protected close(): void;
|
|
46
|
+
protected onLeaveEnd(event: AnimationEvent): void;
|
|
47
|
+
private finishClose;
|
|
48
|
+
protected onEscape(): void;
|
|
49
|
+
protected readonly backdropPress: {
|
|
50
|
+
down: (event: PointerEvent) => void;
|
|
51
|
+
shouldDismiss: (event: PointerEvent) => boolean;
|
|
52
|
+
};
|
|
53
|
+
protected onBackdropRelease(event: PointerEvent): void;
|
|
54
|
+
protected onGrabStart(event: PointerEvent): void;
|
|
55
|
+
protected onGrabMove(event: PointerEvent): void;
|
|
56
|
+
protected onGrabEnd(): void;
|
|
57
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BottomSheetComponent, never>;
|
|
58
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BottomSheetComponent, "ds-bottom-sheet", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "snapPoints": { "alias": "snapPoints"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { BottomSheetComponent };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
interface BreadcrumbItem {
|
|
6
|
+
label?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
icon?: IconName;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class BreadcrumbsComponent {
|
|
12
|
+
private readonly cfg;
|
|
13
|
+
private readonly svc;
|
|
14
|
+
/**
|
|
15
|
+
* When omitted, the component reads from `BreadcrumbsService.items`.
|
|
16
|
+
* Pass an explicit array to opt out of the service (per-page override).
|
|
17
|
+
*/
|
|
18
|
+
readonly items: _angular_core.InputSignal<BreadcrumbItem[] | null>;
|
|
19
|
+
/** Icon between crumbs; falls back to `DS_CONFIG.breadcrumbs.separator`, then `chevronRight`. */
|
|
20
|
+
readonly separator: _angular_core.InputSignal<IconName | null>;
|
|
21
|
+
/** Whether crumbs render as links; falls back to `DS_CONFIG.breadcrumbs.clickable`, then `true`. */
|
|
22
|
+
readonly clickable: _angular_core.InputSignal<boolean | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Caps how many crumbs render, collapsing the middle into an ellipsis — the
|
|
25
|
+
* first and the LAST always survive. Null (default) renders every crumb.
|
|
26
|
+
*
|
|
27
|
+
* Worth setting on any trail that can get deep: the row is `nowrap` with
|
|
28
|
+
* `overflow: hidden`, so without a cap an overlong trail is clipped from the
|
|
29
|
+
* END, which is the current page — the one crumb the reader needs most.
|
|
30
|
+
*/
|
|
31
|
+
readonly maxItems: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
32
|
+
/** Fires when a clickable crumb with `href` is activated; default navigation is always prevented. */
|
|
33
|
+
readonly navigate: _angular_core.OutputEmitterRef<BreadcrumbItem>;
|
|
34
|
+
private readonly allItems;
|
|
35
|
+
/**
|
|
36
|
+
* What renders. The collapsed crumb carries no `href`, so it is inert rather
|
|
37
|
+
* than a link to nowhere; its label is the count, which tells the reader how
|
|
38
|
+
* much is hidden instead of just that something is.
|
|
39
|
+
*/
|
|
40
|
+
protected readonly resolvedItems: _angular_core.Signal<BreadcrumbItem[]>;
|
|
41
|
+
protected readonly effectiveSeparator: _angular_core.Signal<IconName>;
|
|
42
|
+
protected readonly effectiveClickable: _angular_core.Signal<boolean>;
|
|
43
|
+
protected onNav(event: Event, item: BreadcrumbItem): void;
|
|
44
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
|
|
45
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbsComponent, "ds-breadcrumbs", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; }, { "navigate": "navigate"; }, never, never, true, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Library-level breadcrumb state. Apps push items either programmatically
|
|
50
|
+
* (page constructor / effect) or via a router-data driver (see app docs).
|
|
51
|
+
* `<ds-breadcrumbs>` reads from here when no `[items]` input is provided.
|
|
52
|
+
*/
|
|
53
|
+
declare class BreadcrumbsService {
|
|
54
|
+
private readonly _items;
|
|
55
|
+
readonly items: Signal<BreadcrumbItem[]>;
|
|
56
|
+
set(items: BreadcrumbItem[]): void;
|
|
57
|
+
push(item: BreadcrumbItem): void;
|
|
58
|
+
pop(): void;
|
|
59
|
+
replaceLast(item: BreadcrumbItem): void;
|
|
60
|
+
clear(): void;
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbsService, never>;
|
|
62
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BreadcrumbsService>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { BreadcrumbsComponent, BreadcrumbsService };
|
|
66
|
+
export type { BreadcrumbItem };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class ButtonGroupComponent {
|
|
4
|
+
/** Accessible name for the group, set as `aria-label` on the `role="group"` host. */
|
|
5
|
+
readonly ariaLabel: i0.InputSignal<string | null>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "ds-button-group", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { ButtonGroupComponent };
|