@ids-group-ltd/ids-design-system 0.11.4 → 0.12.1
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 +373 -53
- package/components/README.md +86 -0
- 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 +293 -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 +248 -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 +63 -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-columns.mjs +440 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1593 -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 +549 -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 +333 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +65 -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 +75 -14267
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.10.2.json +1 -30
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -24
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +32 -6
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.12.1.json +215 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.5.0.json +0 -54
- package/migrations/0.5.1.json +3 -1
- package/migrations/0.7.0.json +0 -11
- package/migrations/0.7.1.json +2 -1
- package/migrations/0.9.0.json +22 -3
- package/migrations/0.9.1.json +1 -1
- package/package.json +597 -1
- package/styles/_check-box.scss +84 -0
- package/styles/_check-mark.scss +59 -0
- package/styles/_dropdown-overlay.scss +12 -2
- package/styles/_field-group-segment.scss +4 -1
- package/styles/_focus.scss +103 -50
- package/styles/_link.scss +4 -2
- package/styles/_tokens.scss +20 -0
- package/styles/_typography.scss +6 -0
- package/themes/README.md +4 -4
- package/themes/_semantic.scss +7 -8
- 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 +85 -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 +110 -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 +39 -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-columns.d.ts +43 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +815 -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 +436 -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 +75 -5594
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { InjectionToken, Provider, Signal } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Dismiss-on-backdrop for a backdrop that WRAPS its dialog.
|
|
5
|
+
*
|
|
6
|
+
* `click` cannot be trusted there: the browser fires it at the nearest common
|
|
7
|
+
* ancestor of the press and the release, so a drag that starts inside the dialog and
|
|
8
|
+
* ends on the backdrop fires `click` ON THE BACKDROP, and a
|
|
9
|
+
* `target === currentTarget` check waves it through. Hence tracking the press:
|
|
10
|
+
* dismiss only when press AND release both land on the backdrop itself. `ds-drawer` needs none of this because its scrim
|
|
11
|
+
* is a SIBLING of the panel, which makes their common ancestor a third element.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
declare function backdropDismiss(): {
|
|
15
|
+
down: (event: PointerEvent) => void;
|
|
16
|
+
shouldDismiss: (event: PointerEvent) => boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
type CardElevation = 'flat' | 'raised' | 'hover' | 'interactive';
|
|
20
|
+
type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
21
|
+
|
|
22
|
+
declare const ICONS: {
|
|
23
|
+
readonly search: "<circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />";
|
|
24
|
+
readonly plus: "<path d=\"M12 5v14M5 12h14\" />";
|
|
25
|
+
readonly minus: "<path d=\"M5 12h14\" />";
|
|
26
|
+
readonly check: "<path d=\"m4 12 5 5L20 6\" />";
|
|
27
|
+
readonly x: "<path d=\"M6 6l12 12M18 6L6 18\" />";
|
|
28
|
+
readonly chevronDown: "<path d=\"m6 9 6 6 6-6\" />";
|
|
29
|
+
readonly chevronRight: "<path d=\"m9 6 6 6-6 6\" />";
|
|
30
|
+
readonly chevronLeft: "<path d=\"m15 6-6 6 6 6\" />";
|
|
31
|
+
readonly chevronUp: "<path d=\"m6 15 6-6 6 6\" />";
|
|
32
|
+
readonly menu: "<path d=\"M4 6h16M4 12h16M4 18h16\" />";
|
|
33
|
+
readonly arrowRight: "<path d=\"M5 12h14M13 6l6 6-6 6\" />";
|
|
34
|
+
readonly arrowUp: "<path d=\"M12 19V5M6 11l6-6 6 6\" />";
|
|
35
|
+
readonly arrowDown: "<path d=\"M12 5v14M6 13l6 6 6-6\" />";
|
|
36
|
+
readonly info: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v.01M11 12h1v4h1\" />";
|
|
37
|
+
readonly warn: "<path d=\"M12 3 2 21h20L12 3z\" /><path d=\"M12 10v4M12 18v.01\" />";
|
|
38
|
+
readonly error: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v4M12 16v.01\" />";
|
|
39
|
+
readonly success: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />";
|
|
40
|
+
readonly bell: "<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\" /><path d=\"M10 21a2 2 0 0 0 4 0\" />";
|
|
41
|
+
readonly settings: "<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z\" />";
|
|
42
|
+
readonly user: "<circle cx=\"12\" cy=\"8\" r=\"4\" /><path d=\"M4 21a8 8 0 0 1 16 0\" />";
|
|
43
|
+
readonly users: "<circle cx=\"9\" cy=\"8\" r=\"4\" /><path d=\"M2 21a7 7 0 0 1 14 0\" /><path d=\"M16 4a4 4 0 0 1 0 8M22 21a6 6 0 0 0-6-6\" />";
|
|
44
|
+
readonly home: "<path d=\"m3 11 9-8 9 8\" /><path d=\"M5 10v10h14V10\" />";
|
|
45
|
+
readonly calendar: "<rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M3 10h18M8 3v4M16 3v4\" />";
|
|
46
|
+
readonly truck: "<path d=\"M3 16V6a1 1 0 0 1 1-1h11v11\" /><path d=\"M15 9h4l2 3v4h-6\" /><circle cx=\"7.5\" cy=\"17.5\" r=\"2\" /><circle cx=\"17.5\" cy=\"17.5\" r=\"2\" />";
|
|
47
|
+
readonly box: "<path d=\"m21 8-9-5-9 5 9 5 9-5z\" /><path d=\"M3 8v8l9 5 9-5V8\" /><path d=\"m12 13 .01 8\" />";
|
|
48
|
+
readonly map: "<path d=\"m9 4-6 3v13l6-3 6 3 6-3V4l-6 3-6-3z\" /><path d=\"M9 4v13M15 7v13\" />";
|
|
49
|
+
readonly activity: "<path d=\"M3 12h4l3-9 4 18 3-9h4\" />";
|
|
50
|
+
readonly folder: "<path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />";
|
|
51
|
+
readonly edit: "<path d=\"M12 20h9\" /><path d=\"M16.5 3.5a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4z\" />";
|
|
52
|
+
readonly external: "<path d=\"M14 4h6v6\" /><path d=\"M20 4 10 14\" /><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\" />";
|
|
53
|
+
readonly trash: "<path d=\"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" />";
|
|
54
|
+
readonly copy: "<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M5 15V5a2 2 0 0 1 2-2h10\" />";
|
|
55
|
+
readonly download: "<path d=\"M12 4v12M6 12l6 6 6-6\" /><path d=\"M4 20h16\" />";
|
|
56
|
+
readonly upload: "<path d=\"M12 20V8M6 12l6-6 6 6\" /><path d=\"M4 4h16\" />";
|
|
57
|
+
readonly eye: "<path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />";
|
|
58
|
+
readonly filter: "<path d=\"M3 5h18l-7 9v6l-4-2v-4z\" />";
|
|
59
|
+
readonly sort: "<path d=\"M7 4v16M3 8l4-4 4 4\" /><path d=\"M17 20V4M21 16l-4 4-4-4\" />";
|
|
60
|
+
readonly sortAsc: "<path d=\"M7 18V6M3 10l4-4 4 4\" />";
|
|
61
|
+
readonly sortDesc: "<path d=\"M7 6v12M11 14l-4 4-4-4\" />";
|
|
62
|
+
readonly grid: "<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" />";
|
|
63
|
+
readonly list: "<path d=\"M8 6h13M8 12h13M8 18h13\" /><circle cx=\"3.5\" cy=\"6\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"12\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"18\" r=\"1.2\" />";
|
|
64
|
+
readonly moreH: "<circle cx=\"5\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"19\" cy=\"12\" r=\"1.5\" />";
|
|
65
|
+
readonly moreV: "<circle cx=\"12\" cy=\"5\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"19\" r=\"1.5\" />";
|
|
66
|
+
readonly link: "<path d=\"M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1\" /><path d=\"M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1\" />";
|
|
67
|
+
readonly flag: "<path d=\"M5 21V5a14 14 0 0 1 14 0v9a14 14 0 0 1-14 0z\" />";
|
|
68
|
+
readonly star: "<path d=\"m12 3 2.9 6 6.6.9-4.8 4.6 1.1 6.5L12 17.8 6.2 21l1.1-6.5L2.5 9.9 9.1 9z\" />";
|
|
69
|
+
readonly inbox: "<path d=\"M22 12h-6l-2 3h-4l-2-3H2\" /><path d=\"M5 4h14l3 8v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8z\" />";
|
|
70
|
+
readonly archive: "<rect x=\"3\" y=\"3\" width=\"18\" height=\"5\" rx=\"1\" /><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8M10 12h4\" />";
|
|
71
|
+
readonly clock: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2\" />";
|
|
72
|
+
readonly refresh: "<path d=\"M3 12a9 9 0 0 1 15-6.7L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-15 6.7L3 16\" /><path d=\"M3 21v-5h5\" />";
|
|
73
|
+
readonly play: "<path d=\"M6 4l14 8-14 8z\" />";
|
|
74
|
+
readonly pause: "<path d=\"M7 4v16M17 4v16\" />";
|
|
75
|
+
readonly cmd: "<path d=\"M9 9h6v6H9zM6 9V7a3 3 0 1 1 3 3H6zM6 15v2a3 3 0 1 0 3-3H6zM18 9V7a3 3 0 1 0-3 3h3zM18 15v2a3 3 0 1 1-3-3h3z\" />";
|
|
76
|
+
readonly paperclip: "<path d=\"m21 11-9 9a5 5 0 0 1-7-7l9-9a3 3 0 0 1 4 4l-9 9a1 1 0 0 1-1-1l8-8\" />";
|
|
77
|
+
readonly file: "<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\" /><path d=\"M14 3v6h6\" />";
|
|
78
|
+
readonly image: "<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-5-5L5 21\" />";
|
|
79
|
+
readonly lock: "<rect x=\"4\" y=\"11\" width=\"16\" height=\"10\" rx=\"2\" /><path d=\"M8 11V7a4 4 0 0 1 8 0v4\" />";
|
|
80
|
+
readonly logout: "<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><path d=\"m16 17 5-5-5-5M21 12H9\" />";
|
|
81
|
+
readonly help: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 4M12 17v.01\" />";
|
|
82
|
+
readonly pin: "<path d=\"M12 22v-7\" /><path d=\"m9 15 6 0M8 9l8 0M9 15c-2-1.5-3-4-3-7l12 0c0 3-1 5.5-3 7\" />";
|
|
83
|
+
readonly bookmark: "<path d=\"M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-7-4z\" />";
|
|
84
|
+
readonly sparkle: "<path d=\"M12 3v6M12 15v6M3 12h6M15 12h6M5.6 5.6l4.2 4.2M14.2 14.2l4.2 4.2M5.6 18.4l4.2-4.2M14.2 9.8l4.2-4.2\" />";
|
|
85
|
+
readonly layers: "<path d=\"m12 3 9 5-9 5-9-5z\" /><path d=\"m3 13 9 5 9-5M3 18l9 5 9-5\" />";
|
|
86
|
+
readonly chart: "<path d=\"M3 3v18h18\" /><path d=\"M7 14l4-4 4 4 5-5\" />";
|
|
87
|
+
readonly gauge: "<path d=\"M12 14l4-4\" /><circle cx=\"12\" cy=\"14\" r=\"9\" /><path d=\"M3 14a9 9 0 0 1 18 0\" />";
|
|
88
|
+
readonly package: "<path d=\"M3 7v10l9 4 9-4V7l-9-4z\" /><path d=\"m3 7 9 5 9-5M12 12v9\" />";
|
|
89
|
+
readonly git: "<circle cx=\"6\" cy=\"6\" r=\"2.5\" /><circle cx=\"6\" cy=\"18\" r=\"2.5\" /><circle cx=\"18\" cy=\"12\" r=\"2.5\" /><path d=\"M6 8.5v7M8.5 6h4a3 3 0 0 1 3 3v0\" />";
|
|
90
|
+
readonly sun: "<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\" />";
|
|
91
|
+
readonly moon: "<path d=\"M21 13a9 9 0 0 1-12-12 9 9 0 1 0 12 12z\" />";
|
|
92
|
+
readonly save: "<path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\" /><path d=\"M17 21v-8H7v8M7 3v5h8\" />";
|
|
93
|
+
readonly rotate: "<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8\" /><path d=\"M3 3v5h5\" />";
|
|
94
|
+
readonly qr: "<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><path d=\"M14 14h3v3h-3zM18 18h3v3h-3z\" />";
|
|
95
|
+
readonly globe: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" />";
|
|
96
|
+
readonly phone: "<path d=\"M5 4h4l2 5-2 1a11 11 0 0 0 5 5l1-2 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z\" />";
|
|
97
|
+
readonly bin: "<rect x=\"3\" y=\"6\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"M7 6V4h10v2\" />";
|
|
98
|
+
readonly pen: "<path d=\"M3 17V21h4l11-11-4-4z\" />";
|
|
99
|
+
readonly smile: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 14a5 5 0 0 0 8 0\" />";
|
|
100
|
+
readonly frown: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 16a5 5 0 0 1 8 0\" />";
|
|
101
|
+
readonly mail: "<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"m3 7 9 6 9-6\" />";
|
|
102
|
+
readonly 'eye-off': "<path d=\"M3 3l18 18\" /><path d=\"M10.6 6.1A10 10 0 0 1 12 6c6 0 10 7 10 7a14 14 0 0 1-2.4 3.1\" /><path d=\"M6.7 6.7A14 14 0 0 0 2 12s4 7 10 7a10 10 0 0 0 4.5-1\" /><path d=\"M9.9 14.1A3 3 0 0 1 9 12a3 3 0 0 1 3-3 3 3 0 0 1 2.1.9\" />";
|
|
103
|
+
readonly 'check-circle': "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />";
|
|
104
|
+
readonly circle: "<circle cx=\"12\" cy=\"12\" r=\"8\" />";
|
|
105
|
+
readonly drag: "<circle cx=\"9\" cy=\"6\" r=\"1.6\" /><circle cx=\"15\" cy=\"6\" r=\"1.6\" /><circle cx=\"9\" cy=\"12\" r=\"1.6\" /><circle cx=\"15\" cy=\"12\" r=\"1.6\" /><circle cx=\"9\" cy=\"18\" r=\"1.6\" /><circle cx=\"15\" cy=\"18\" r=\"1.6\" />";
|
|
106
|
+
readonly scan: "<path d=\"M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3\" />";
|
|
107
|
+
readonly wifi: "<path d=\"M2 9.5a15 15 0 0 1 20 0\" /><path d=\"M5 13a10 10 0 0 1 14 0\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M12 20h.01\" />";
|
|
108
|
+
readonly 'wifi-off': "<path d=\"m3 3 18 18\" /><path d=\"M12 20h.01\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M5 13a10 10 0 0 1 3.5-2.3\" /><path d=\"M11 8.6A10 10 0 0 1 19 13\" /><path d=\"M2 9.5a15 15 0 0 1 5.7-3.2\" /><path d=\"M11.6 5.6A15 15 0 0 1 22 9.5\" />";
|
|
109
|
+
};
|
|
110
|
+
/** Built-in DS icon names. Consumers can extend the runtime set via `provideDsIcons({...})` —
|
|
111
|
+
* the type widens to `string` so any custom name is accepted at the call site (at the cost of
|
|
112
|
+
* autocomplete for those custom names). */
|
|
113
|
+
type IconName = keyof typeof ICONS | (string & {});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Canonical control-size scale — the shared vocabulary components bind their
|
|
117
|
+
* `size` input to. A component that needs extra steps extends this base with its
|
|
118
|
+
* own (component-named) type, kept inside that component.
|
|
119
|
+
*/
|
|
120
|
+
type DsSize = 'sm' | 'md' | 'lg';
|
|
121
|
+
|
|
122
|
+
type DsToastHorizontalPosition = 'left' | 'center' | 'right';
|
|
123
|
+
type DsToastVerticalPosition = 'top' | 'bottom';
|
|
124
|
+
interface DsToastPosition {
|
|
125
|
+
readonly horizontalPosition: DsToastHorizontalPosition;
|
|
126
|
+
readonly verticalPosition: DsToastVerticalPosition;
|
|
127
|
+
readonly offset: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface DsConfig {
|
|
131
|
+
field?: {
|
|
132
|
+
/** Default for every field's `reserveMessage` — keeps a message line's worth
|
|
133
|
+
* of space even when empty. Default `false`. Setting `true` here applies to
|
|
134
|
+
* EVERY field in the injector's subtree, which is rarely what a whole app
|
|
135
|
+
* wants; prefer `dsReserveMessages` on the individual form that validates. */
|
|
136
|
+
reserveMessage?: boolean;
|
|
137
|
+
/** Fallback text per validation-error kind, for errors whose validator did
|
|
138
|
+
* not carry a `message` — Angular's built-ins never do, so this is where
|
|
139
|
+
* `required`, `minlength`, `email` and friends get their wording. A message
|
|
140
|
+
* on the error itself always wins, so one shared map here plus a per-case
|
|
141
|
+
* override at the validator covers both. Unmapped kinds warn in dev. */
|
|
142
|
+
errorMessages?: Record<string, string>;
|
|
143
|
+
/** Leading glyph on a field's message line, per state. Defaults carry one for
|
|
144
|
+
* `error`, `warning` and `success` and NONE for `hint`, which is resting text
|
|
145
|
+
* rather than a state. Each key is independent — a glyph name replaces the
|
|
146
|
+
* default, `false` removes it, and `stateIcons: false` removes all four.
|
|
147
|
+
*
|
|
148
|
+
* The glyphs exist because warning and success differ from each other by hue
|
|
149
|
+
* and nothing else, which WCAG 1.4.1 forbids a state from resting on. */
|
|
150
|
+
stateIcons?: false | {
|
|
151
|
+
error?: IconName | false;
|
|
152
|
+
warning?: IconName | false;
|
|
153
|
+
success?: IconName | false;
|
|
154
|
+
/** The `default` state — the hint line. Off unless set. */
|
|
155
|
+
hint?: IconName | false;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
breadcrumbs?: {
|
|
159
|
+
separator?: IconName;
|
|
160
|
+
clickable?: boolean;
|
|
161
|
+
};
|
|
162
|
+
timePicker?: {
|
|
163
|
+
/** Display format for `ds-time-picker` / date-picker time — 24h or 12h AM/PM. Default `'24h'`. */
|
|
164
|
+
format?: '24h' | '12h';
|
|
165
|
+
};
|
|
166
|
+
avatar?: {
|
|
167
|
+
/** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule
|
|
168
|
+
* takes the first two words, which is a Latin-script guess — an app whose names
|
|
169
|
+
* follow another convention supplies its own here. */
|
|
170
|
+
initials?: (name: string) => string;
|
|
171
|
+
};
|
|
172
|
+
brand?: {
|
|
173
|
+
/** Brand text for `ds-sidenav` and `ds-auth-layout` — the wordmark, and the
|
|
174
|
+
* source of the letter-mark's glyph when `logoLetter` is unset. */
|
|
175
|
+
name?: string;
|
|
176
|
+
/** Letter-mark glyph when it differs from the brand's first character. */
|
|
177
|
+
logoLetter?: string;
|
|
178
|
+
/** Strapline under the brand row. `ds-auth-layout` only. */
|
|
179
|
+
tagline?: string;
|
|
180
|
+
};
|
|
181
|
+
modal?: {
|
|
182
|
+
/** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`.
|
|
183
|
+
* Configurable app-wide because a `ModalService` confirm renders a card with no
|
|
184
|
+
* `ds-modal` ancestor to bind — an attribute cannot reach it. */
|
|
185
|
+
dividers?: boolean;
|
|
186
|
+
};
|
|
187
|
+
toast?: {
|
|
188
|
+
/** Where the stack sits. Merged field by field over the built-in
|
|
189
|
+
* `right` / `top` / `var(--space-6)`, so naming one key keeps the other two. */
|
|
190
|
+
position?: Partial<DsToastPosition>;
|
|
191
|
+
/** Maximum number of toasts visible at once. Extras are queued and shown as
|
|
192
|
+
* earlier ones dismiss. Default `5`; `0` means unlimited. */
|
|
193
|
+
maxVisible?: number;
|
|
194
|
+
};
|
|
195
|
+
picker?: {
|
|
196
|
+
/** Default for `ds-multi-select``s `searchable`. `true` always shows the panel's
|
|
197
|
+
* filter row, `false` never, and a NUMBER is a threshold — the row appears once
|
|
198
|
+
* there are at least that many options. Default `true`. One threshold for the
|
|
199
|
+
* app is the point: left to each call site, two panels of the same length in
|
|
200
|
+
* the same screen end up disagreeing. */
|
|
201
|
+
searchable?: boolean | number;
|
|
202
|
+
};
|
|
203
|
+
control?: {
|
|
204
|
+
/** Default `size` for every control on the field-height contract. Default `'md'`.
|
|
205
|
+
*
|
|
206
|
+
* A different axis from `[data-density]`: that tier rewrites hit targets and
|
|
207
|
+
* padding in CSS, this picks which of the three declared sizes a control renders
|
|
208
|
+
* at. A screen that differs still binds `size` per element. */
|
|
209
|
+
size?: DsSize;
|
|
210
|
+
};
|
|
211
|
+
card?: {
|
|
212
|
+
/** Default `elevation` for `ds-card`. Default `'flat'`. */
|
|
213
|
+
elevation?: CardElevation;
|
|
214
|
+
/** Default `padding` preset for `ds-card`. Unset keeps the card's own. */
|
|
215
|
+
padding?: CardPadding;
|
|
216
|
+
};
|
|
217
|
+
table?: {
|
|
218
|
+
/** Default for `ds-table`'s `stickyScrollbar` — the proxy that keeps the
|
|
219
|
+
* horizontal bar reachable on a tall table. Default `false`. Here rather than
|
|
220
|
+
* per table because every new table is one forgotten binding away from
|
|
221
|
+
* scrolling invisibly. */
|
|
222
|
+
stickyScrollbar?: boolean;
|
|
223
|
+
/** Default for `ds-table`'s `bordered` — the outer border and radius.
|
|
224
|
+
* Default `false`. */
|
|
225
|
+
bordered?: boolean;
|
|
226
|
+
};
|
|
227
|
+
icon?: {
|
|
228
|
+
/** Default pixel `size` for `ds-icon`. Default `16`. */
|
|
229
|
+
size?: number;
|
|
230
|
+
};
|
|
231
|
+
badge?: {
|
|
232
|
+
/** Default for `ds-badge`'s `withDot` — the leading status dot. Default `false`. */
|
|
233
|
+
withDot?: boolean;
|
|
234
|
+
};
|
|
235
|
+
datePicker?: {
|
|
236
|
+
/** BCP-47 locale for `ds-date-picker` names + value format. Default `'en-US'`. */
|
|
237
|
+
locale?: string;
|
|
238
|
+
/** Explicit token format e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */
|
|
239
|
+
dateFormat?: string;
|
|
240
|
+
/** First weekday column: 0=Sunday … 6=Saturday. Default `1` (Monday). */
|
|
241
|
+
firstDayOfWeek?: number;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
declare const DS_CONFIG: InjectionToken<DsConfig>;
|
|
245
|
+
/** Provide DS-level defaults.
|
|
246
|
+
*
|
|
247
|
+
* providers: [provideDsConfig({ control: { size: 'sm' } })]
|
|
248
|
+
*
|
|
249
|
+
* Works at the app root, on a `Route`, or on a component/directive — the config
|
|
250
|
+
* resolves through the element-injector chain, so a subtree can differ from the
|
|
251
|
+
* app. Component inputs (e.g. `<ds-card padding="lg">`) still win.
|
|
252
|
+
*
|
|
253
|
+
* A nested call MERGES with the config above it section by section; only the keys
|
|
254
|
+
* you name are replaced. ONE call per injector, though: two in the SAME
|
|
255
|
+
* `providers` array both resolve their parent with `skipSelf`, so the later wins
|
|
256
|
+
* and the earlier is silently lost.
|
|
257
|
+
*/
|
|
258
|
+
declare function provideDsConfig(config: DsConfig): Provider;
|
|
259
|
+
/**
|
|
260
|
+
* The factory body behind `provideDsConfig`, exported so a directive can put the
|
|
261
|
+
* provider in its metadata as a plain object literal. Calling `provideDsConfig`
|
|
262
|
+
* there instead runs at module-evaluation time, which makes the module
|
|
263
|
+
* side-effectful and costs the consumer its tree-shaking (measured at +566 kB
|
|
264
|
+
* moved into the eager chunk).
|
|
265
|
+
*
|
|
266
|
+
* Must be called from an injection context.
|
|
267
|
+
*/
|
|
268
|
+
declare function inheritDsConfig(config: DsConfig): DsConfig;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Resolve an input against `DS_CONFIG`, then a built-in default.
|
|
272
|
+
*
|
|
273
|
+
* The input must be typed `T | null` and default to `null`: a signal input cannot
|
|
274
|
+
* report whether it was bound, so `null` is what separates "not set" from an explicit
|
|
275
|
+
* value. Precedence is input → config → built-in. Call from an injection context.
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
declare function resolveWithConfig<T>(value: Signal<T | null>, pick: (config: DsConfig) => T | undefined, fallback: T): Signal<T>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Warns once per distinct message, not once per recomputation: the effect re-runs whenever any
|
|
282
|
+
* signal the condition reads changes, so without that a static misconfiguration would log again
|
|
283
|
+
* on every keystroke.
|
|
284
|
+
*
|
|
285
|
+
* Returning the message from the condition keeps the two together — a condition
|
|
286
|
+
* that drifts from its message is how a warning ends up describing a state that
|
|
287
|
+
* cannot happen any more.
|
|
288
|
+
*
|
|
289
|
+
* Must be called from an injection context.
|
|
290
|
+
*
|
|
291
|
+
* Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`. That is
|
|
292
|
+
* a BUILD-time expression, not a repeat of the `isDevMode()` below: the intent is for
|
|
293
|
+
* a minifier to fold it and drop the message with it, which `isDevMode()` — an opaque
|
|
294
|
+
* call — can never allow. It cannot become a helper function for the same reason.
|
|
295
|
+
*
|
|
296
|
+
* It does work: `ds-stat` and `ds-split-button` compile to `constructor(){}` in the
|
|
297
|
+
* shipped bundle. `ds-toast-region`'s strip is UNVERIFIED — the bundle came out
|
|
298
|
+
* byte-identical after adding the guard, so re-check on a clean `.angular/cache`.
|
|
299
|
+
* @internal
|
|
300
|
+
*/
|
|
301
|
+
declare function devWarn(message: () => string | null): void;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends
|
|
305
|
+
* `undefined` when the schema sets no bound. The DS spells an absent bound as
|
|
306
|
+
* `null`, so the write type has to accept both while the read type stays what it
|
|
307
|
+
* always was — otherwise every internal use and every consumer moves for nothing.
|
|
308
|
+
*
|
|
309
|
+
* Declared once here because it was copy-pasted across three controls, and an
|
|
310
|
+
* explanation in three places is an explanation that drifts in two of them.
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
313
|
+
declare function optionalBound(value: number | null | undefined): number | null;
|
|
314
|
+
/** As `optionalBound`, for a bound the control requires a value for.
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
declare function boundOr(fallback: number): (value: number | undefined) => number;
|
|
318
|
+
|
|
319
|
+
/** True when the key landed on a control that consumes its own keystrokes, so a
|
|
320
|
+
* container listening on the way up must leave the event alone.
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
declare function isTextEntryTarget(event: Event): boolean;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Index arithmetic for a keyboard cursor over a list of options.
|
|
327
|
+
*
|
|
328
|
+
* Every picker walks the same four ways — next, previous, first, last — skipping
|
|
329
|
+
* whatever is disabled and wrapping at the ends.
|
|
330
|
+
*/
|
|
331
|
+
interface DsListCursorList {
|
|
332
|
+
length: number;
|
|
333
|
+
isEnabled: (index: number) => boolean;
|
|
334
|
+
}
|
|
335
|
+
/** Where the cursor lands, or -1 when nothing in the list can take it.
|
|
336
|
+
* @internal
|
|
337
|
+
*/
|
|
338
|
+
declare function firstEnabledIndex(list: DsListCursorList): number;
|
|
339
|
+
/** @internal */
|
|
340
|
+
declare function lastEnabledIndex(list: DsListCursorList): number;
|
|
341
|
+
/**
|
|
342
|
+
* The next enabled index `step` away from `from`, wrapping at both ends.
|
|
343
|
+
*
|
|
344
|
+
* `from` of -1 means "no cursor yet": stepping forward lands on the first
|
|
345
|
+
* enabled entry and stepping back on the last, which is what a reader expects
|
|
346
|
+
* from a freshly opened panel.
|
|
347
|
+
* @internal
|
|
348
|
+
*/
|
|
349
|
+
declare function nextEnabledIndex(list: DsListCursorList, from: number, step: number): number;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The shape every picker's option shares — select, multi-select, autocomplete.
|
|
353
|
+
* Add a field HERE, or the three drift apart the way `icon` did. Each keeps its
|
|
354
|
+
* own exported name: those are public API.
|
|
355
|
+
*
|
|
356
|
+
* `T` exists because autocomplete carries typed values; the other two are keyed
|
|
357
|
+
* by string.
|
|
358
|
+
*/
|
|
359
|
+
interface DsOption<T = string> {
|
|
360
|
+
value: T;
|
|
361
|
+
label: string;
|
|
362
|
+
disabled?: boolean;
|
|
363
|
+
/** Why this option cannot be picked. Reaches the row as `aria-describedby`, so a
|
|
364
|
+
* reader hears the reason instead of only meeting a dead row. Ignored unless
|
|
365
|
+
* `disabled` is set. */
|
|
366
|
+
disabledReason?: string;
|
|
367
|
+
/** Rendered before the label at 16px by every picker's option row. */
|
|
368
|
+
icon?: IconName;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* A labelled section of options. `disabled` turns the whole section off.
|
|
372
|
+
*/
|
|
373
|
+
interface DsOptionGroup<T = string> {
|
|
374
|
+
label: string;
|
|
375
|
+
options: DsOption<T>[];
|
|
376
|
+
disabled?: boolean;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* What a picker's `options` input takes: flat options, groups, or both mixed.
|
|
380
|
+
* One input rather than two, because a second `optionGroups` input can only
|
|
381
|
+
* answer "what if both are set" by silently ignoring one.
|
|
382
|
+
*/
|
|
383
|
+
type DsOptionItem<T = string> = DsOption<T> | DsOptionGroup<T>;
|
|
384
|
+
declare function isDsOptionGroup<T>(item: DsOptionItem<T>): item is DsOptionGroup<T>;
|
|
385
|
+
/** Every option in `items`, groups flattened in place, in source order. */
|
|
386
|
+
declare function flattenDsOptions<T>(items: readonly DsOptionItem<T>[]): DsOption<T>[];
|
|
387
|
+
|
|
388
|
+
/** Canonical status vocabulary shared across status-bearing components. */
|
|
389
|
+
type DsStatus = 'info' | 'success' | 'warning' | 'error';
|
|
390
|
+
/**
|
|
391
|
+
* Consumer-extensible registry of product status keys for ds-badge / ds-status-dot.
|
|
392
|
+
* The DS ships it EMPTY — no statuses are predefined. A consumer registers keys
|
|
393
|
+
* via declaration merging to get autocomplete on the `status` input:
|
|
394
|
+
*
|
|
395
|
+
* declare module '@ids-group-ltd/ids-design-system' {
|
|
396
|
+
* interface DsStatusRegistry { shipped: true; delivered: true; }
|
|
397
|
+
* }
|
|
398
|
+
*/
|
|
399
|
+
interface DsStatusRegistry {
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* The `status` input type. When the registry is empty (unaugmented) this is an
|
|
403
|
+
* open `string`; once a consumer augments DsStatusRegistry it narrows to the
|
|
404
|
+
* union of their keys (autocomplete). The tuple wrap avoids `never` distribution.
|
|
405
|
+
*/
|
|
406
|
+
type DsStatusKey = [keyof DsStatusRegistry] extends [never] ? string : keyof DsStatusRegistry;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* What a picker's trigger shows.
|
|
410
|
+
*
|
|
411
|
+
* `full` is the control's own display — chips, or the selected value.
|
|
412
|
+
*
|
|
413
|
+
* `count` is a caption and a selected-count badge at intrinsic width, for a filter
|
|
414
|
+
* toolbar where a field that grows with the selection does not fit. `labels` is the
|
|
415
|
+
* same footprint but names what is selected instead of counting it, cut to what the
|
|
416
|
+
* trigger is wide enough for, with the rest behind "+N" — the same measurement the
|
|
417
|
+
* chips already use.
|
|
418
|
+
*
|
|
419
|
+
* Only pickers that hold several values offer the other two: a single-value control
|
|
420
|
+
* has nothing to count and nothing to list, and its `full` trigger is already the
|
|
421
|
+
* caption plus the value.
|
|
422
|
+
*/
|
|
423
|
+
type DsTriggerDisplay = 'full' | 'count' | 'labels';
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* How a control sizes itself and its overlay panel.
|
|
427
|
+
*
|
|
428
|
+
* `fill` stretches to the container and pins the panel to the trigger's width.
|
|
429
|
+
* `content` hugs the trigger and takes that width as the panel's FLOOR, so the
|
|
430
|
+
* panel still grows to its options — without it a short trigger gives a panel
|
|
431
|
+
* too narrow to read.
|
|
432
|
+
*/
|
|
433
|
+
type DsControlWidth = 'fill' | 'content';
|
|
434
|
+
|
|
435
|
+
export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
|
|
436
|
+
export type { CardElevation, CardPadding, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
3
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
5
|
+
|
|
6
|
+
declare class IconComponent {
|
|
7
|
+
private readonly sanitizer;
|
|
8
|
+
private readonly registry;
|
|
9
|
+
readonly name: _angular_core.InputSignal<IconName>;
|
|
10
|
+
/** Pixel size of the square glyph. Unset falls back to `DS_CONFIG.icon.size`,
|
|
11
|
+
* then `16`. */
|
|
12
|
+
readonly size: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
13
|
+
readonly sizeResolved: _angular_core.Signal<number>;
|
|
14
|
+
readonly stroke: _angular_core.InputSignal<number>;
|
|
15
|
+
/** When set, the icon is exposed to assistive tech as an image with this
|
|
16
|
+
* name; otherwise it is decorative and hidden (`aria-hidden`). */
|
|
17
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
18
|
+
protected readonly paths: _angular_core.Signal<SafeHtml>;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "ds-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "stroke": { "alias": "stroke"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Map of custom icon name -> raw SVG body markup.
|
|
24
|
+
*
|
|
25
|
+
* The body is what goes *inside* `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">`
|
|
26
|
+
* — typically one or more `<path>` / `<circle>` / `<rect>` elements. Stroke width, line caps and
|
|
27
|
+
* join are applied by the host `<ds-icon>` template, so paths should use `stroke="currentColor"`
|
|
28
|
+
* implicitly (i.e. omit the stroke attribute) and rely on the parent SVG.
|
|
29
|
+
*
|
|
30
|
+
* Example:
|
|
31
|
+
* provideDsIcons({
|
|
32
|
+
* 'cloud-upload': '<path d="M12 13v8m0-8 3 3m-3-3-3 3"/><path d="..."/>',
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
type DsIconRegistry = Readonly<Record<string, string>>;
|
|
36
|
+
declare const DS_ICON_REGISTRY: InjectionToken<Readonly<Record<string, string>>>;
|
|
37
|
+
/** Register additional icons available to `<ds-icon [name]="...">` alongside the built-in DS set.
|
|
38
|
+
*
|
|
39
|
+
* providers: [
|
|
40
|
+
* provideDsIcons({
|
|
41
|
+
* 'cloud-upload': '<path d="..."/>',
|
|
42
|
+
* 'shield': '<path d="..."/>',
|
|
43
|
+
* }),
|
|
44
|
+
* ]
|
|
45
|
+
*
|
|
46
|
+
* Names take precedence as: built-in `ICONS` > consumer registry. Consumer names that clash with
|
|
47
|
+
* built-ins are ignored — to override a built-in, edit the DS source.
|
|
48
|
+
*/
|
|
49
|
+
declare function provideDsIcons(icons: DsIconRegistry): Provider;
|
|
50
|
+
|
|
51
|
+
export { DS_ICON_REGISTRY, IconComponent, provideDsIcons };
|
|
52
|
+
export type { DsIconRegistry };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Ref-counted lock on `document.body` scroll, shared by every overlay that
|
|
5
|
+
* covers the viewport (modal, drawer, bottom-sheet). The FIRST `lock()` saves
|
|
6
|
+
* the current `body` overflow and hides it; the LAST `unlock()` restores it —
|
|
7
|
+
* so closing one overlay never re-enables page scroll while another stacked on
|
|
8
|
+
* top of it is still open. Calls must be paired (one `unlock()` per `lock()`).
|
|
9
|
+
*/
|
|
10
|
+
declare class BodyScrollLockService {
|
|
11
|
+
private readonly doc;
|
|
12
|
+
private count;
|
|
13
|
+
private previousOverflow;
|
|
14
|
+
lock(): void;
|
|
15
|
+
unlock(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BodyScrollLockService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BodyScrollLockService>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** A reference to the overlay/container the projected content lives in, used to
|
|
21
|
+
* close it from the inside — e.g. a popover (and, later, a dropdown/select)
|
|
22
|
+
* closing when a menu item is selected. The container provides it via DI;
|
|
23
|
+
* content injects it with `{ optional: true }` so the same content also works
|
|
24
|
+
* standalone (outside any overlay).
|
|
25
|
+
*
|
|
26
|
+
* Same shape as Angular Material's `MatDialogRef` (content calls `close()` on a
|
|
27
|
+
* ref), generalised so any dismissible overlay can provide it. */
|
|
28
|
+
declare abstract class DsOverlayCloseRef {
|
|
29
|
+
abstract close(): void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { BodyScrollLockService, DsOverlayCloseRef };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface DsThemeOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Follow the operating-system colour scheme: on startup set `data-theme` on
|
|
6
|
+
* `<html>` from `prefers-color-scheme` and keep it in sync as the OS changes.
|
|
7
|
+
* Default `false` — the design system stays on its explicit light default
|
|
8
|
+
* and dark is opt-in via `<html data-theme="dark">`.
|
|
9
|
+
*/
|
|
10
|
+
followSystem?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* App-root theme configuration for the design system.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* // app.config.ts
|
|
17
|
+
* export const appConfig: ApplicationConfig = {
|
|
18
|
+
* providers: [provideDsTheme({ followSystem: true })],
|
|
19
|
+
* };
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* Light is the default with no provider; `followSystem` opts into OS-driven
|
|
23
|
+
* switching. A manual `<html data-theme="dark">` always wins over the initial
|
|
24
|
+
* value this sets.
|
|
25
|
+
*/
|
|
26
|
+
declare function provideDsTheme(options?: DsThemeOptions): EnvironmentProviders;
|
|
27
|
+
|
|
28
|
+
export { provideDsTheme };
|
|
29
|
+
export type { DsThemeOptions };
|