@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,90 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
2
|
+
import { DsMessageBase } from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { ElementRef } from '@angular/core';
|
|
5
|
+
import { DsSize, IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
|
|
7
|
+
type ButtonColor = 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'success' | 'warning';
|
|
8
|
+
type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'text';
|
|
9
|
+
type ButtonType = 'button' | 'submit' | 'reset';
|
|
10
|
+
|
|
11
|
+
declare class ButtonComponent extends DsMessageBase {
|
|
12
|
+
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
13
|
+
* ring, so .in-group strips this control back to its bare contents. */
|
|
14
|
+
protected readonly inGroup: boolean;
|
|
15
|
+
/** Brand/status hue family. */
|
|
16
|
+
readonly color: _angular_core.InputSignal<ButtonColor>;
|
|
17
|
+
/** Fill pattern: solid | tonal | ghost | outline | text. All color×variant
|
|
18
|
+
pairs render; some are UX-discouraged and emit a dev-mode
|
|
19
|
+
warning naming the reason — they work, but read poorly. `text` is
|
|
20
|
+
discouraged for ALL colours — prefer the global `.link` class; it stays for
|
|
21
|
+
cases needing the ds-button API (loading/fullWidth/typed pressed). */
|
|
22
|
+
readonly variant: _angular_core.InputSignal<ButtonVariant>;
|
|
23
|
+
/** Button height — sm/md/lg.
|
|
24
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
25
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
26
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
27
|
+
/** Native `<button>` `type`; defaults to `'button'` (not `'submit'`) so it never submits an ancestor form by accident. */
|
|
28
|
+
readonly type: _angular_core.InputSignal<ButtonType>;
|
|
29
|
+
/** Disables the button and blocks `pressed`. */
|
|
30
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
/** Busy state — disables interaction and sets `aria-busy`. */
|
|
32
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
/** Stretch the button to fill its container — the host becomes block-level
|
|
34
|
+
and 100% wide (the inner control is already full-width). Use for mobile
|
|
35
|
+
primary CTAs and full-bleed form submit buttons. */
|
|
36
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
/** Accessible name — forwarded to the inner <button> as aria-label. Use when
|
|
38
|
+
the visible label is absent or non-descriptive. */
|
|
39
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
40
|
+
/** Leading icon, before the projected content. */
|
|
41
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
42
|
+
/** Trailing icon, after the projected content. */
|
|
43
|
+
readonly trailingIcon: _angular_core.InputSignal<IconName | null>;
|
|
44
|
+
/** ARIA `aria-haspopup`, forwarded to the inner <button> — set when this
|
|
45
|
+
* button triggers a menu/dialog/listbox overlay. */
|
|
46
|
+
readonly ariaHasPopup: _angular_core.InputSignal<"menu" | "grid" | "true" | "listbox" | "tree" | "dialog" | null>;
|
|
47
|
+
/** ARIA `aria-expanded`, forwarded to the inner <button> — bind to the
|
|
48
|
+
* overlay's open state on a trigger button. */
|
|
49
|
+
readonly ariaExpanded: _angular_core.InputSignal<boolean | null>;
|
|
50
|
+
/** ARIA `aria-controls`, forwarded to the inner <button> — the id of the panel
|
|
51
|
+
* this button opens, e.g. `ds-app-layout`'s `railId`. */
|
|
52
|
+
readonly ariaControls: _angular_core.InputSignal<string | null>;
|
|
53
|
+
/** Why the button is refused, shown as its second line. Read only while
|
|
54
|
+
* `disabled` — a greyed control that does not say why is a dead end.
|
|
55
|
+
*
|
|
56
|
+
* Setting it also changes HOW the button is disabled: it takes `aria-disabled`
|
|
57
|
+
* instead of the native attribute, because a natively disabled button cannot be
|
|
58
|
+
* focused and the reason would never be announced. The click is swallowed in
|
|
59
|
+
* `onClick` instead. Leave it unset and nothing changes.
|
|
60
|
+
*
|
|
61
|
+
* Length is deliberately not capped: the text wraps and the button grows. Same
|
|
62
|
+
* name and meaning as `TableRowAction.disabledReason`. */
|
|
63
|
+
readonly disabledReason: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
64
|
+
/** ARIA `aria-describedby` — point the button at a description the app renders
|
|
65
|
+
* itself, such as a `ds-field-message` under a form. Merged with the id of
|
|
66
|
+
* `disabledReason` when both are present. */
|
|
67
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
68
|
+
/** Fires on click, unless `disabled` or `loading`. */
|
|
69
|
+
readonly pressed: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
70
|
+
/** The inner native <button>, exposed so overlay triggers can position
|
|
71
|
+
* against and restore focus to the real focusable element — e.g.
|
|
72
|
+
* `(pressed)="pop.toggle(trigger.buttonRef().nativeElement)"`. */
|
|
73
|
+
readonly buttonRef: _angular_core.Signal<ElementRef<HTMLButtonElement>>;
|
|
74
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
75
|
+
protected readonly softDisabled: _angular_core.Signal<boolean>;
|
|
76
|
+
private readonly uid;
|
|
77
|
+
protected readonly reasonId: string;
|
|
78
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
79
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
80
|
+
protected readonly hasMessageRow: _angular_core.Signal<boolean>;
|
|
81
|
+
private readonly fieldMessage;
|
|
82
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
83
|
+
constructor();
|
|
84
|
+
protected onClick(event: MouseEvent): void;
|
|
85
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
86
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "ds-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["*", "[dsButtonSubtext]"], true, never>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { ButtonComponent };
|
|
90
|
+
export type { ButtonColor, ButtonType, ButtonVariant };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/** A single calendar day cell — the building block of `<ds-date-picker>`'s grid,
|
|
4
|
+
* also usable standalone (e.g. a state showcase). Renders a focusable
|
|
5
|
+
* `<button class="day">` whose state classes are driven by inputs. The host is
|
|
6
|
+
* `display: contents` so the inner button is the grid item, and the date-picker
|
|
7
|
+
* can still focus a specific day via `[data-day]` (roving tabindex).
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
declare class CalendarDayComponent {
|
|
11
|
+
/** The chosen day in single mode, or an end of the range in range mode. Drives `aria-selected`. */
|
|
12
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
/** A day BETWEEN the two ends of a range — tinted, but not itself selected. */
|
|
14
|
+
readonly inRange: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
/** First day of a range: rounds the leading corners and counts as selected. */
|
|
16
|
+
readonly rangeStart: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
/** Last day of a range: rounds the trailing corners and counts as selected. */
|
|
18
|
+
readonly rangeEnd: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
/** Marks the current date. Independent of selection — today can be unselected. */
|
|
20
|
+
readonly today: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
/** Day from an adjacent month — dimmed. */
|
|
22
|
+
readonly muted: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
/** Outside `minDate`/`maxDate` or rejected by `disabledDate` — dimmed and not clickable. */
|
|
24
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
/** Stable key the date-picker uses to focus a specific day (roving tabindex). */
|
|
26
|
+
readonly dataDay: _angular_core.InputSignal<string | null>;
|
|
27
|
+
/** Roving tabindex: exactly one day in the grid carries 0, the rest -1, so Tab enters the
|
|
28
|
+
* grid once and arrows move within it. */
|
|
29
|
+
readonly tabIndex: _angular_core.InputSignal<number>;
|
|
30
|
+
/** Full spoken date ("12 March 2026"), since the cell text is only the day number. */
|
|
31
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
32
|
+
/** Click on an enabled day. Carries the event so the host can read modifier keys. */
|
|
33
|
+
readonly daySelected: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
34
|
+
/** Key press on the focused day — the grid owns arrow/Home/End navigation, not the cell. */
|
|
35
|
+
readonly dayKeydown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
36
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
37
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalendarDayComponent, never>;
|
|
38
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalendarDayComponent, "ds-calendar-day", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "inRange": { "alias": "inRange"; "required": false; "isSignal": true; }; "rangeStart": { "alias": "rangeStart"; "required": false; "isSignal": true; }; "rangeEnd": { "alias": "rangeEnd"; "required": false; "isSignal": true; }; "today": { "alias": "today"; "required": false; "isSignal": true; }; "muted": { "alias": "muted"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "dataDay": { "alias": "dataDay"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "daySelected": "daySelected"; "dayKeydown": "dayKeydown"; }, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CalendarDayComponent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { CardElevation, CardPadding } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
export { CardElevation, CardPadding } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
declare class CardComponent {
|
|
6
|
+
/** Visual treatment; `interactive` makes the card clickable and emits `pressed`.
|
|
7
|
+
* Unset falls back to `DS_CONFIG.card.elevation`, then `'flat'`. */
|
|
8
|
+
readonly elevation: _angular_core.InputSignal<CardElevation | null>;
|
|
9
|
+
/** Inner padding preset. Unset falls back to `DS_CONFIG.card.padding`, then the
|
|
10
|
+
* card's own padding. */
|
|
11
|
+
readonly padding: _angular_core.InputSignal<CardPadding | null>;
|
|
12
|
+
/** Fires the click event when `elevation` is `interactive`. */
|
|
13
|
+
readonly pressed: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
14
|
+
readonly elevationResolved: _angular_core.Signal<CardElevation>;
|
|
15
|
+
readonly paddingResolved: _angular_core.Signal<CardPadding | null>;
|
|
16
|
+
protected readonly interactive: _angular_core.Signal<boolean>;
|
|
17
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
18
|
+
protected onClick(event: MouseEvent): void;
|
|
19
|
+
protected onActivationKey(event: Event): void;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "ds-card", never, { "elevation": { "alias": "elevation"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { CardComponent };
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { DsBooleanControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
|
|
7
|
+
declare class CheckboxComponent extends DsBooleanControlValueAccessor {
|
|
8
|
+
/** Checked state, two-way bound. */
|
|
9
|
+
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
10
|
+
/** Shows the partial/mixed visual state — independent of `checked`. */
|
|
11
|
+
readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
/** Disables the checkbox and blocks all interaction. */
|
|
13
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
/** Native `name` attribute. */
|
|
15
|
+
readonly name: _angular_core.InputSignal<string | null>;
|
|
16
|
+
/** Overrides the generated id used by the native `<input>` and its `<label for>`. */
|
|
17
|
+
readonly inputId: _angular_core.InputSignal<string | null>;
|
|
18
|
+
/** Checkbox size — sm/md/lg.
|
|
19
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
20
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
21
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
22
|
+
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
23
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/** Inline label rendered beside the box and wired via for/id. Omit to
|
|
25
|
+
* bring your own <label>. */
|
|
26
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
27
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
28
|
+
protected readonly uid: string;
|
|
29
|
+
protected readonly controlId: _angular_core.Signal<string>;
|
|
30
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
31
|
+
private readonly fieldMessage;
|
|
32
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
33
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
34
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
35
|
+
protected readonly fieldClass: _angular_core.Signal<string>;
|
|
36
|
+
protected onCheckedChange(event: Event): void;
|
|
37
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
38
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ds-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CheckboxComponent };
|
|
@@ -0,0 +1,79 @@
|
|
|
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 _angular_core from '@angular/core';
|
|
5
|
+
import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
|
|
7
|
+
|
|
8
|
+
/** Hue 0–360, saturation/value 0–100 — the model the Photoshop-style picker
|
|
9
|
+
* manipulates. Hex is the public value; these convert between the two. */
|
|
10
|
+
interface Hsv {
|
|
11
|
+
h: number;
|
|
12
|
+
s: number;
|
|
13
|
+
v: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class ColorPickerComponent extends DsControlValueAccessor<string> implements DsOverlayCloseRef, OnDestroy {
|
|
17
|
+
private readonly overlay;
|
|
18
|
+
private readonly vcr;
|
|
19
|
+
private readonly host;
|
|
20
|
+
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
21
|
+
* a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it. */
|
|
22
|
+
private readonly panelTokens;
|
|
23
|
+
/** Selected colour as a hex string, two-way bound. */
|
|
24
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
25
|
+
/** Swatches shown in the panel — defaults to a built-in palette. */
|
|
26
|
+
readonly presets: _angular_core.InputSignal<readonly string[]>;
|
|
27
|
+
/** Disables the trigger and blocks all interaction. */
|
|
28
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
/** Accessible name for the trigger button and panel. */
|
|
30
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
31
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
32
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
33
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
34
|
+
protected readonly trigger: _angular_core.Signal<ElementRef<HTMLButtonElement>>;
|
|
35
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
36
|
+
protected readonly open: _angular_core.WritableSignal<boolean>;
|
|
37
|
+
protected readonly hsv: _angular_core.WritableSignal<Hsv>;
|
|
38
|
+
private overlayRef;
|
|
39
|
+
private svDragging;
|
|
40
|
+
private hueDragging;
|
|
41
|
+
ngOnDestroy(): void;
|
|
42
|
+
protected readonly uid: string;
|
|
43
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
44
|
+
private readonly fieldMessage;
|
|
45
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
46
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
47
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
48
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
49
|
+
protected readonly displayHex: _angular_core.Signal<string>;
|
|
50
|
+
protected readonly hueColor: _angular_core.Signal<string>;
|
|
51
|
+
protected readonly svThumb: _angular_core.Signal<{
|
|
52
|
+
left: number;
|
|
53
|
+
top: number;
|
|
54
|
+
}>;
|
|
55
|
+
protected readonly huePercent: _angular_core.Signal<number>;
|
|
56
|
+
protected toggle(): void;
|
|
57
|
+
protected selectPreset(hex: string): void;
|
|
58
|
+
protected isSelected(hex: string): boolean;
|
|
59
|
+
protected onHexInput(event: Event): void;
|
|
60
|
+
protected onSvPointerDown(event: PointerEvent): void;
|
|
61
|
+
protected onSvPointerMove(event: PointerEvent): void;
|
|
62
|
+
protected onSvPointerUp(event: PointerEvent): void;
|
|
63
|
+
protected onSvKeydown(event: KeyboardEvent): void;
|
|
64
|
+
protected onHuePointerDown(event: PointerEvent): void;
|
|
65
|
+
protected onHuePointerMove(event: PointerEvent): void;
|
|
66
|
+
protected onHuePointerUp(event: PointerEvent): void;
|
|
67
|
+
protected onHueKeydown(event: KeyboardEvent): void;
|
|
68
|
+
private openPanel;
|
|
69
|
+
close(cause?: DsOverlayCloseCause): void;
|
|
70
|
+
private setHsv;
|
|
71
|
+
private commitHex;
|
|
72
|
+
private updateSv;
|
|
73
|
+
private updateHue;
|
|
74
|
+
private clampPct;
|
|
75
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
76
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ds-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { ColorPickerComponent };
|
|
@@ -0,0 +1,251 @@
|
|
|
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 _angular_core from '@angular/core';
|
|
5
|
+
import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
7
|
+
|
|
8
|
+
interface DateFormatSpec {
|
|
9
|
+
order: ('D' | 'M' | 'Y')[];
|
|
10
|
+
separator: string;
|
|
11
|
+
mask: string;
|
|
12
|
+
segments: {
|
|
13
|
+
type: 'D' | 'M' | 'Y';
|
|
14
|
+
length: number;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
/** One editable digit slot in the masked field. */
|
|
18
|
+
interface FieldSlot {
|
|
19
|
+
type: 'D' | 'M' | 'Y';
|
|
20
|
+
maxLength: number;
|
|
21
|
+
}
|
|
22
|
+
/** Field layout: the slots and the literal shown after each (except the last). */
|
|
23
|
+
interface FieldLayout {
|
|
24
|
+
slots: FieldSlot[];
|
|
25
|
+
literals: string[];
|
|
26
|
+
}
|
|
27
|
+
interface DisplayPart {
|
|
28
|
+
text: string;
|
|
29
|
+
muted: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type DatePickerMode = 'single' | 'range';
|
|
33
|
+
type DateValue = Date | null;
|
|
34
|
+
type RangeValue = [Date | null, Date | null];
|
|
35
|
+
type DatePickerValue = DateValue | RangeValue;
|
|
36
|
+
interface DatePickerPreset {
|
|
37
|
+
label: string;
|
|
38
|
+
value: Date | RangeValue;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface DayCell {
|
|
42
|
+
date: Date;
|
|
43
|
+
day: number;
|
|
44
|
+
inMonth: boolean;
|
|
45
|
+
isToday: boolean;
|
|
46
|
+
inRange: boolean;
|
|
47
|
+
isRangeStart: boolean;
|
|
48
|
+
isRangeEnd: boolean;
|
|
49
|
+
isSelected: boolean;
|
|
50
|
+
isDisabled: boolean;
|
|
51
|
+
}
|
|
52
|
+
declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeValue | null> implements OnDestroy {
|
|
53
|
+
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
54
|
+
* ring, so .in-group strips this control back to its bare contents. */
|
|
55
|
+
protected readonly inGroup: boolean;
|
|
56
|
+
constructor();
|
|
57
|
+
/** Field text for the DOM: fixed-width `_`-padded once any digit exists,
|
|
58
|
+
* else '' (so an untouched field is genuinely empty — no error on blur,
|
|
59
|
+
* nothing for AT to read out). */
|
|
60
|
+
private toFieldText;
|
|
61
|
+
private readonly overlay;
|
|
62
|
+
private readonly vcr;
|
|
63
|
+
private readonly injector;
|
|
64
|
+
private readonly config;
|
|
65
|
+
private readonly host;
|
|
66
|
+
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
67
|
+
* a consumer's `ds-date-picker { --ds-date-picker-panel-*: … }` reaches it. */
|
|
68
|
+
private readonly panelTokens;
|
|
69
|
+
/** Selection mode — single date or start/end range. */
|
|
70
|
+
readonly mode: _angular_core.InputSignal<DatePickerMode>;
|
|
71
|
+
/** Trigger height — sm/md/lg.
|
|
72
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
73
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
74
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
75
|
+
/** Stretch the trigger to fill its container instead of hugging the mask
|
|
76
|
+
* width — opt in when the field shares a grid/flex track with inputs. */
|
|
77
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
/** Selected date (single) or `[start, end]` (range), two-way bound. */
|
|
79
|
+
readonly value: _angular_core.ModelSignal<Date | RangeValue | null>;
|
|
80
|
+
/** Accessible-name fallback only — the mask fills the visible placeholder, not this. */
|
|
81
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
82
|
+
/** Field label shown above the trigger. */
|
|
83
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
84
|
+
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
85
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** Shows an "(optional)" marker beside the label — ignored when `required` is set. */
|
|
87
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
/** Disables the picker and blocks all interaction. */
|
|
89
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
90
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
91
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
92
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
93
|
+
/** Accessible name when no visible `label` is provided. */
|
|
94
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
95
|
+
/** Lower bound for the year dropdown in the calendar header. */
|
|
96
|
+
readonly minYear: _angular_core.InputSignal<number>;
|
|
97
|
+
/** Upper bound for the year dropdown in the calendar header. */
|
|
98
|
+
readonly maxYear: _angular_core.InputSignal<number>;
|
|
99
|
+
/** Earliest selectable date (inclusive). Days before this are disabled. */
|
|
100
|
+
readonly minDate: _angular_core.InputSignal<Date | null>;
|
|
101
|
+
/** Latest selectable date (inclusive). Days after this are disabled. */
|
|
102
|
+
readonly maxDate: _angular_core.InputSignal<Date | null>;
|
|
103
|
+
/** Predicate — return true to disable an individual day. */
|
|
104
|
+
readonly disabledDate: _angular_core.InputSignal<((date: Date) => boolean) | null>;
|
|
105
|
+
/** Quick-pick shortcuts shown as a button column inside the calendar panel. */
|
|
106
|
+
readonly presets: _angular_core.InputSignal<readonly DatePickerPreset[]>;
|
|
107
|
+
/** BCP-47 locale driving month/weekday names and the value format. */
|
|
108
|
+
readonly locale: _angular_core.InputSignal<string | null>;
|
|
109
|
+
/** Explicit token format e.g. `'MM/DD/YYYY'`; default derived from `locale`. */
|
|
110
|
+
readonly dateFormat: _angular_core.InputSignal<string | null>;
|
|
111
|
+
/** First weekday column: 0=Sunday … 6=Saturday. Default 1 (Monday). */
|
|
112
|
+
readonly firstDayOfWeek: _angular_core.InputSignal<number | null>;
|
|
113
|
+
/** Date the calendar opens on when the value is empty (e.g. a Date Of Birth):
|
|
114
|
+
* the panel shows its month and grid focus lands on its exact day.
|
|
115
|
+
* Never written to `value` — selection stays with the user. */
|
|
116
|
+
readonly defaultDate: _angular_core.InputSignal<Date | null>;
|
|
117
|
+
/** Allow masked manual typing. When false the field is read-only and a date can
|
|
118
|
+
* only be picked from the calendar. */
|
|
119
|
+
readonly allowInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
120
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
121
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
122
|
+
private readonly localError;
|
|
123
|
+
private readonly dateInvalid;
|
|
124
|
+
private readonly fieldMessage;
|
|
125
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
126
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
127
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
128
|
+
readonly resolvedLocale: _angular_core.Signal<string>;
|
|
129
|
+
protected readonly resolvedFirstDay: _angular_core.Signal<number>;
|
|
130
|
+
protected readonly formatSpec: _angular_core.Signal<DateFormatSpec>;
|
|
131
|
+
protected readonly layout: _angular_core.Signal<FieldLayout>;
|
|
132
|
+
protected readonly monthNames: _angular_core.Signal<string[]>;
|
|
133
|
+
protected readonly weekdays: _angular_core.Signal<string[]>;
|
|
134
|
+
protected readonly weekdaysFull: _angular_core.Signal<string[]>;
|
|
135
|
+
protected readonly monthYearLabel: _angular_core.Signal<string>;
|
|
136
|
+
protected readonly uid: string;
|
|
137
|
+
protected readonly labelId: string;
|
|
138
|
+
protected readonly panelId: string;
|
|
139
|
+
protected readonly captionId: string;
|
|
140
|
+
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
141
|
+
/** The day that holds keyboard focus in the open grid (roving tabindex). */
|
|
142
|
+
protected readonly gridFocus: _angular_core.WritableSignal<Date | null>;
|
|
143
|
+
protected readonly inputText: _angular_core.WritableSignal<string>;
|
|
144
|
+
protected readonly rangeText: _angular_core.WritableSignal<string>;
|
|
145
|
+
protected readonly typedInvalid: _angular_core.WritableSignal<boolean>;
|
|
146
|
+
protected readonly rangeInvalid: _angular_core.WritableSignal<boolean>;
|
|
147
|
+
private editing;
|
|
148
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
149
|
+
protected dayKey(d: Date): string;
|
|
150
|
+
protected isFocusDay(cell: DayCell): boolean;
|
|
151
|
+
/** Arrow-key roving navigation across the calendar grid (APG date grid). */
|
|
152
|
+
protected onGridKeydown(event: KeyboardEvent, cell: DayCell): void;
|
|
153
|
+
private addDays;
|
|
154
|
+
private addMonths;
|
|
155
|
+
private clampToBounds;
|
|
156
|
+
private focusGridDay;
|
|
157
|
+
protected dayLabel(cell: DayCell): string;
|
|
158
|
+
protected readonly triggerClasses: _angular_core.Signal<string>;
|
|
159
|
+
protected readonly viewMonth: _angular_core.WritableSignal<Date>;
|
|
160
|
+
protected readonly anchor: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
161
|
+
protected readonly inputEl: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
162
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
163
|
+
private overlayRef;
|
|
164
|
+
private focusTrigger;
|
|
165
|
+
protected readonly fieldText: _angular_core.Signal<string>;
|
|
166
|
+
protected readonly fieldPlaceholder: _angular_core.Signal<string>;
|
|
167
|
+
/** `size` attribute so the field hugs its mask width instead of stretching.
|
|
168
|
+
* +1 covers `size` under-counting the mask's wide glyphs (M/D/Y), which
|
|
169
|
+
* otherwise clip the last chars of the longer range mask. The field's
|
|
170
|
+
* `font-family: var(--font-mono)` keeps every glyph equal width, so the
|
|
171
|
+
* width never shifts as you type. */
|
|
172
|
+
protected readonly fieldSize: _angular_core.Signal<number>;
|
|
173
|
+
protected readonly displaySlots: _angular_core.Signal<DisplayPart[]>;
|
|
174
|
+
protected readonly monthMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
175
|
+
protected readonly yearMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
176
|
+
protected readonly viewMonthIndex: _angular_core.Signal<number>;
|
|
177
|
+
protected readonly viewYear: _angular_core.Signal<number>;
|
|
178
|
+
protected readonly yearPageStart: _angular_core.WritableSignal<number>;
|
|
179
|
+
protected readonly yearsOnPage: _angular_core.Signal<number[]>;
|
|
180
|
+
protected readonly yearRangeLabel: _angular_core.Signal<string>;
|
|
181
|
+
protected readonly canPrevYearPage: _angular_core.Signal<boolean>;
|
|
182
|
+
protected readonly canNextYearPage: _angular_core.Signal<boolean>;
|
|
183
|
+
/** Aligns the page so `year` lands on a stable grid boundary measured from minYear. */
|
|
184
|
+
private yearPageStartFor;
|
|
185
|
+
protected toggleMonthMenu(event: Event): void;
|
|
186
|
+
protected toggleYearMenu(event: Event): void;
|
|
187
|
+
protected prevYearPage(event: Event): void;
|
|
188
|
+
protected nextYearPage(event: Event): void;
|
|
189
|
+
protected closeMenus(): void;
|
|
190
|
+
protected selectMonth(index: number, event: Event): void;
|
|
191
|
+
protected selectYear(year: number, event: Event): void;
|
|
192
|
+
protected isDayDisabled(date: Date): boolean;
|
|
193
|
+
protected readonly daysGrid: _angular_core.Signal<DayCell[]>;
|
|
194
|
+
protected readonly weeksGrid: _angular_core.Signal<DayCell[][]>;
|
|
195
|
+
private getRangeContext;
|
|
196
|
+
protected open(moveFocusToGrid?: boolean): void;
|
|
197
|
+
protected close(cause?: DsOverlayCloseCause): void;
|
|
198
|
+
ngOnDestroy(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Also the calendar glyph's handler. A POINTER open must not drag focus into
|
|
201
|
+
* the day grid: the reader did not ask to leave a field they may want to type
|
|
202
|
+
* in. So focus follows what the field IS — typeable, and the caret stays;
|
|
203
|
+
* read-only, and the grid is the only thing worth focusing. The keyboard path is
|
|
204
|
+
* unaffected: ArrowDown on the field calls `open(true)`.
|
|
205
|
+
*/
|
|
206
|
+
protected onFieldClick(): void;
|
|
207
|
+
private mobileEdit;
|
|
208
|
+
protected onFieldInput(event: Event): void;
|
|
209
|
+
/** Physical-keyboard editing (desktop): typed digits fill the caret's slot;
|
|
210
|
+
* Backspace/Delete never shift digits across a separator. */
|
|
211
|
+
protected onFieldKeydown(event: KeyboardEvent): void;
|
|
212
|
+
/** Mobile keyboards don't fire a reliable `keydown` (Gboard reports keyCode 229 /
|
|
213
|
+
* "Unidentified"), so edits are routed here via `beforeinput`'s `inputType` instead.
|
|
214
|
+
* Android Chrome can also ignore `preventDefault()` here, so the intended result is
|
|
215
|
+
* stashed and re-asserted in `onFieldInput`; the microtask expires the stash once
|
|
216
|
+
* preventDefault worked (no following `input` in the same task). */
|
|
217
|
+
protected onFieldBeforeInput(event: InputEvent): void;
|
|
218
|
+
/** A selection is cleared through the model so `_` placeholders are never
|
|
219
|
+
* natively erased — only digits are editable. */
|
|
220
|
+
private runSegmentEdit;
|
|
221
|
+
/** Paste digits into the segment model at the caret slot — never a global
|
|
222
|
+
* flatten — so existing digits elsewhere in the field survive untouched. */
|
|
223
|
+
protected onFieldPaste(event: ClipboardEvent): void;
|
|
224
|
+
private countDigits;
|
|
225
|
+
/** The fallback for any `input` event with no preceding handled `beforeinput`
|
|
226
|
+
* (IME, autofill, a suggestion): `raw` is re-read as a flat digit stream and
|
|
227
|
+
* redistributed over the slots, since its own layout cannot be trusted. */
|
|
228
|
+
private commitRaw;
|
|
229
|
+
private applyEditedText;
|
|
230
|
+
protected onFieldBlur(): void;
|
|
231
|
+
/** Writing `value` parks the caret at the end, so the explicit range has to
|
|
232
|
+
* follow it; the later `[value]` binding writes the same string, which leaves
|
|
233
|
+
* the caret untouched. */
|
|
234
|
+
private writeBackText;
|
|
235
|
+
/** Caret just past the last digit a flat digit stream filled — the first slot
|
|
236
|
+
* short of its max length, or the very end once every slot is full. */
|
|
237
|
+
private caretAfterFill;
|
|
238
|
+
/** `commit` is the blur pass: only then is the field text rewritten from the
|
|
239
|
+
* parsed value, and a half-filled range written through to `value`. */
|
|
240
|
+
private applyRangeText;
|
|
241
|
+
protected prevMonth(): void;
|
|
242
|
+
protected nextMonth(): void;
|
|
243
|
+
protected selectDay(cell: DayCell): void;
|
|
244
|
+
protected isPresetDisabled(preset: DatePickerPreset): boolean;
|
|
245
|
+
protected applyPreset(preset: DatePickerPreset): void;
|
|
246
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "defaultDate": { "alias": "defaultDate"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export { DatePickerComponent };
|
|
251
|
+
export type { DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, RangeValue };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type DescriptionListOrientation = 'horizontal' | 'stacked';
|
|
4
|
+
declare class DescriptionListComponent {
|
|
5
|
+
/** horizontal = label column + value; stacked = label above value. */
|
|
6
|
+
readonly orientation: _angular_core.InputSignal<DescriptionListOrientation>;
|
|
7
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionListComponent, never>;
|
|
8
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DescriptionListComponent, "ds-description-list", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class DescriptionItemComponent {
|
|
12
|
+
private readonly list;
|
|
13
|
+
/** The label. Plain text; rich values go in the projected content. */
|
|
14
|
+
readonly term: _angular_core.InputSignal<string>;
|
|
15
|
+
/** When set, a copy button appears that copies this string to the clipboard. */
|
|
16
|
+
readonly copyValue: _angular_core.InputSignal<string | null>;
|
|
17
|
+
protected readonly stacked: _angular_core.Signal<boolean>;
|
|
18
|
+
protected readonly copied: _angular_core.WritableSignal<boolean>;
|
|
19
|
+
protected copy(): Promise<void>;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionItemComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DescriptionItemComponent, "ds-description-item", never, { "term": { "alias": "term"; "required": false; "isSignal": true; }; "copyValue": { "alias": "copyValue"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { DescriptionItemComponent, DescriptionListComponent };
|
|
25
|
+
export type { DescriptionListOrientation };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type DividerVariant = 'default' | 'strong' | 'vertical' | 'label';
|
|
4
|
+
/**
|
|
5
|
+
* Vertical breathing room around the divider. `md` is the safe default for
|
|
6
|
+
* page-content separators. Use `sm` inside dense lists (sidenav, menus) and
|
|
7
|
+
* `none` when the parent layout already owns the gap.
|
|
8
|
+
*/
|
|
9
|
+
type DividerSpacing = 'none' | 'sm' | 'md' | 'lg';
|
|
10
|
+
|
|
11
|
+
declare class DividerComponent {
|
|
12
|
+
/** `default` hairline · `strong` heavier rule · `vertical` for a row · `label` to carry
|
|
13
|
+
* projected text in the middle of the line. */
|
|
14
|
+
readonly variant: _angular_core.InputSignal<DividerVariant>;
|
|
15
|
+
/** Vertical breathing room around the rule. `none` when the parent layout already owns the gap. */
|
|
16
|
+
readonly spacing: _angular_core.InputSignal<DividerSpacing>;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DividerComponent, "ds-divider", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { DividerComponent };
|
|
22
|
+
export type { DividerSpacing, DividerVariant };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
type DrawerPlacement = 'right' | 'left' | 'top' | 'bottom';
|
|
6
|
+
|
|
7
|
+
declare class DrawerComponent implements OnDestroy {
|
|
8
|
+
private readonly scrollLock;
|
|
9
|
+
/** Open state, two-way bound. */
|
|
10
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
11
|
+
/** Panel size — sm/md/lg. */
|
|
12
|
+
readonly size: _angular_core.InputSignal<DsSize>;
|
|
13
|
+
/** Edge the panel slides in from. */
|
|
14
|
+
readonly placement: _angular_core.InputSignal<DrawerPlacement>;
|
|
15
|
+
/** Drawer title, shown in the header and used for `aria-labelledby`. */
|
|
16
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
17
|
+
/** Fires once the close (slide-out) animation finishes. */
|
|
18
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
19
|
+
protected readonly titleId: string;
|
|
20
|
+
/** Panel is in the DOM (kept true through the slide-out). */
|
|
21
|
+
protected readonly rendered: _angular_core.WritableSignal<boolean>;
|
|
22
|
+
/** Playing the slide-out + scrim-fade leave animation. */
|
|
23
|
+
protected readonly closing: _angular_core.WritableSignal<boolean>;
|
|
24
|
+
private wasOpen;
|
|
25
|
+
private closeFallbackTimer;
|
|
26
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
27
|
+
constructor();
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
protected onClose(): void;
|
|
30
|
+
protected onLeaveEnd(event: AnimationEvent): void;
|
|
31
|
+
private finishClose;
|
|
32
|
+
protected onEscape(): void;
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ds-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["[drawer-body]", "[drawer-footer]"], true, never>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { DrawerComponent };
|
|
38
|
+
export type { DrawerPlacement };
|