@ids-group-ltd/ids-design-system 0.11.4 → 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 +53 -3
- 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 +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 -14267
- 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 +7 -1
- 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/package.json +573 -1
- package/themes/README.md +4 -4
- 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 -5594
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName, DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
import { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';
|
|
4
|
+
|
|
5
|
+
type IconButtonVariant = 'standard' | 'filled' | 'tonal' | 'outlined';
|
|
6
|
+
type IconButtonType = 'button' | 'submit' | 'reset';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Icon-only action button with its own variant taxonomy (standard / filled /
|
|
10
|
+
* tonal / outlined) + an optional toggle (`selected`) state. Distinct from
|
|
11
|
+
* `ds-button` — use this for square/round icon affordances; use `ds-button`
|
|
12
|
+
* for labelled actions. `ariaLabel` is REQUIRED (icon-only has no text label).
|
|
13
|
+
*/
|
|
14
|
+
declare class IconButtonComponent {
|
|
15
|
+
/** Icon to render — the button's only visible content. */
|
|
16
|
+
readonly icon: _angular_core.InputSignal<IconName>;
|
|
17
|
+
/** Accessible name — required since the button has no visible text. */
|
|
18
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
19
|
+
/** ARIA `aria-describedby` — the id of text the app renders beside the button,
|
|
20
|
+
* such as why the action is refused. Icon-only leaves no room for a second
|
|
21
|
+
* line, so unlike `ds-button` there is no `disabledReason` here: the text has
|
|
22
|
+
* to exist on screen already for this to point at it. */
|
|
23
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
24
|
+
/** Fill style — standard (chromeless), filled, tonal, or outlined. */
|
|
25
|
+
readonly variant: _angular_core.InputSignal<IconButtonVariant>;
|
|
26
|
+
/** Brand/status hue family (shared with ds-button). `variant` is the fill
|
|
27
|
+
axis; `color` recolours the accent the fill consumes. Default primary. */
|
|
28
|
+
readonly color: _angular_core.InputSignal<ButtonColor>;
|
|
29
|
+
/** Button size — sm/md/lg, matches the field/button height scale.
|
|
30
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
31
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
32
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
33
|
+
/** Native `<button>` `type`; defaults to `'button'` (not `'submit'`) so it never submits an ancestor form by accident. */
|
|
34
|
+
readonly type: _angular_core.InputSignal<IconButtonType>;
|
|
35
|
+
/** Disables the button and blocks `pressed`. */
|
|
36
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
/** Toggle state — renders the pressed/active look and sets aria-pressed. */
|
|
38
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
/** ARIA `aria-expanded`, forwarded to the inner `<button>` — bind to the open
|
|
40
|
+
* state when this button opens a panel. On the host element it would land on
|
|
41
|
+
* a non-focusable wrapper, which no screen reader reads. */
|
|
42
|
+
readonly ariaExpanded: _angular_core.InputSignal<boolean | null>;
|
|
43
|
+
/** ARIA `aria-controls`, forwarded to the inner `<button>` — the id of the
|
|
44
|
+
* panel this button opens, e.g. `ds-app-layout`'s `railId`. */
|
|
45
|
+
readonly ariaControls: _angular_core.InputSignal<string | null>;
|
|
46
|
+
/** Fires on click, unless disabled. */
|
|
47
|
+
readonly pressed: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
48
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
49
|
+
protected readonly iconSize: _angular_core.Signal<16 | 24 | 20>;
|
|
50
|
+
protected onClick(event: MouseEvent): void;
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
52
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconButtonComponent, "ds-icon-button", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "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; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { IconButtonComponent };
|
|
56
|
+
export type { IconButtonType, IconButtonVariant };
|
|
@@ -0,0 +1,121 @@
|
|
|
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 } 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
|
+
type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
8
|
+
|
|
9
|
+
declare class InputComponent extends DsControlValueAccessor<string> {
|
|
10
|
+
private readonly control;
|
|
11
|
+
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
12
|
+
* ring, so .in-group strips this control back to its bare contents. */
|
|
13
|
+
protected readonly inGroup: boolean;
|
|
14
|
+
/** Text value, two-way bound. */
|
|
15
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
16
|
+
/** Native input type — also affects the default clear button and password toggle. */
|
|
17
|
+
readonly type: _angular_core.InputSignal<InputType>;
|
|
18
|
+
/** Field height — 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
|
+
/** Label shown above the field. */
|
|
23
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
24
|
+
/** Placeholder shown when empty. */
|
|
25
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
26
|
+
/** Disables the field and blocks all interaction. */
|
|
27
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/** Prevents editing while still allowing focus and selection. */
|
|
29
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* The contract spelling of `readOnly`, a second input because signal forms binds
|
|
32
|
+
* by NAME — a `readonly()` rule was reaching nothing before this existed.
|
|
33
|
+
*/
|
|
34
|
+
readonly readonlyBinding: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
protected readonly isReadOnly: _angular_core.Signal<boolean>;
|
|
36
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
37
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
38
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
39
|
+
/** Shows a trailing spinner — e.g. async validation in flight. The input
|
|
40
|
+
* stays editable; pair with a `hint` like "Checking availability…". */
|
|
41
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
42
|
+
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
43
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
/** Shows an "(optional)" marker next to the label (ignored when `required`). */
|
|
45
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
46
|
+
/** Native `name` attribute. */
|
|
47
|
+
readonly name: _angular_core.InputSignal<string | null>;
|
|
48
|
+
/** Native `min` attribute — applies when `type="number"`. */
|
|
49
|
+
readonly min: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
50
|
+
/** Native `max` attribute — applies when `type="number"`. */
|
|
51
|
+
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
52
|
+
/** Native `step` attribute — applies when `type="number"`. */
|
|
53
|
+
readonly step: _angular_core.InputSignal<number | null>;
|
|
54
|
+
/** Native autocomplete token (e.g. "email", "current-password"). */
|
|
55
|
+
readonly autocomplete: _angular_core.InputSignal<string | null>;
|
|
56
|
+
/** Focuses the field automatically on render. */
|
|
57
|
+
readonly autofocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
58
|
+
/** Accessible name when no visible `label` is provided (falls back to the
|
|
59
|
+
* placeholder so the control is never unnamed). */
|
|
60
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
61
|
+
/** Extra element ids to describe the control with — a password-rule list, a
|
|
62
|
+
* policy note. MERGED with the field's own message id rather than replacing
|
|
63
|
+
* it, and it has to be an input because the attribute belongs on the inner
|
|
64
|
+
* `<input>`: set on the host it lands on a wrapper no screen reader reads. */
|
|
65
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
66
|
+
/** Hard character cap — applies the native maxlength attribute and shows a
|
|
67
|
+
* live "{current}/{max}" counter below the field. */
|
|
68
|
+
readonly maxLength: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
69
|
+
/** Native `minlength` attribute. */
|
|
70
|
+
readonly minLength: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
71
|
+
/** Native `pattern` attribute — signal forms sends the schema's RegExp list. */
|
|
72
|
+
readonly pattern: _angular_core.InputSignalWithTransform<readonly RegExp[], string | readonly RegExp[] | undefined>;
|
|
73
|
+
/** Mobile keyboard hints — forwarded to the native input as attributes. */
|
|
74
|
+
readonly enterKeyHint: _angular_core.InputSignal<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | null>;
|
|
75
|
+
/** Native `inputmode` attribute — hints the on-screen keyboard layout. */
|
|
76
|
+
readonly inputMode: _angular_core.InputSignal<"text" | "email" | "tel" | "url" | "search" | "none" | "decimal" | "numeric" | null>;
|
|
77
|
+
/** Emits when the native input loses focus. */
|
|
78
|
+
readonly blurred: _angular_core.OutputEmitterRef<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Show an inline clear (×) button when the input has a non-empty value.
|
|
81
|
+
* Mirrors the Material/PrimeNG pattern: explicit button (not native search
|
|
82
|
+
* cancel) so the affordance is consistent across browsers and styled with
|
|
83
|
+
* DS tokens. Defaults to true when type='search', false otherwise — pass
|
|
84
|
+
* an explicit boolean to override.
|
|
85
|
+
*/
|
|
86
|
+
readonly clearable: _angular_core.InputSignal<boolean | null>;
|
|
87
|
+
/** Shows a show/hide button when `type="password"`. */
|
|
88
|
+
readonly passwordToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
/** Whether the password is currently shown as plain text, two-way bound. */
|
|
90
|
+
readonly passwordVisible: _angular_core.ModelSignal<boolean>;
|
|
91
|
+
protected readonly canClear: _angular_core.Signal<boolean>;
|
|
92
|
+
/** A native `pattern` takes ONE expression; the schema can carry several, so
|
|
93
|
+
* they are ANDed with lookaheads rather than silently dropping all but one. */
|
|
94
|
+
protected readonly patternAttribute: _angular_core.Signal<string | null>;
|
|
95
|
+
protected readonly uid: string;
|
|
96
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
97
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
98
|
+
private readonly fieldMessage;
|
|
99
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
100
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
101
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
102
|
+
/** Only name via aria-label when there's no visible `<label for>`. */
|
|
103
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
104
|
+
/** Effective disabled — own `disabled` input OR the reactive-forms state. */
|
|
105
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
106
|
+
protected readonly currentLength: _angular_core.Signal<number>;
|
|
107
|
+
protected readonly counterId: _angular_core.Signal<string | null>;
|
|
108
|
+
protected readonly showPasswordToggle: _angular_core.Signal<boolean>;
|
|
109
|
+
protected readonly effectiveType: _angular_core.Signal<InputType>;
|
|
110
|
+
protected togglePassword(): void;
|
|
111
|
+
protected readonly wrapperClasses: _angular_core.Signal<string>;
|
|
112
|
+
/** Move keyboard focus to the native input — public so a host can drive it
|
|
113
|
+
* deliberately, e.g. focusing the first invalid field on a failed submit. */
|
|
114
|
+
focus(options?: FocusOptions): void;
|
|
115
|
+
protected clear(): void;
|
|
116
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
117
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputComponent, "ds-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "enterKeyHint": { "alias": "enterKeyHint"; "required": false; "isSignal": true; }; "inputMode": { "alias": "inputMode"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "passwordToggle": { "alias": "passwordToggle"; "required": false; "isSignal": true; }; "passwordVisible": { "alias": "passwordVisible"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "blurred": "blurred"; "passwordVisible": "passwordVisibleChange"; }, never, ["[dsInputPrefix]", "[dsInputSuffix]"], true, never>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { InputComponent };
|
|
121
|
+
export type { InputType };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type LayoutGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
type LayoutAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
6
|
+
type LayoutJustify = 'start' | 'center' | 'end' | 'between';
|
|
7
|
+
type ContainerSize = DsSize | 'xl' | 'full';
|
|
8
|
+
|
|
9
|
+
declare class StackComponent {
|
|
10
|
+
/** Space between children. `null` inherits whatever the enclosing layout set. */
|
|
11
|
+
readonly gap: _angular_core.InputSignal<LayoutGap | null>;
|
|
12
|
+
/** Cross-axis alignment — horizontal, for a column. */
|
|
13
|
+
readonly align: _angular_core.InputSignal<LayoutAlign | null>;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StackComponent, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StackComponent, "ds-stack", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class InlineComponent {
|
|
19
|
+
/** Space between children. `null` inherits whatever the enclosing layout set. */
|
|
20
|
+
readonly gap: _angular_core.InputSignal<LayoutGap | null>;
|
|
21
|
+
/** Cross-axis alignment — vertical, for a row. */
|
|
22
|
+
readonly align: _angular_core.InputSignal<LayoutAlign | null>;
|
|
23
|
+
/** Main-axis distribution — horizontal, for a row. `between` pushes the ends apart. */
|
|
24
|
+
readonly justify: _angular_core.InputSignal<LayoutJustify | null>;
|
|
25
|
+
/** Let the row wrap onto more lines (default). `false` keeps one line and lets it overflow. */
|
|
26
|
+
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineComponent, "ds-inline", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "justify": { "alias": "justify"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class ContainerComponent {
|
|
32
|
+
/** Max content width before the container centres itself. `full` removes the cap. */
|
|
33
|
+
readonly size: _angular_core.InputSignal<ContainerSize>;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContainerComponent, never>;
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContainerComponent, "ds-container", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { ContainerComponent, InlineComponent, StackComponent };
|
|
39
|
+
export type { ContainerSize, LayoutAlign, LayoutGap, LayoutJustify };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class ListComponent {
|
|
4
|
+
/** Draw a hairline separator between adjacent items. */
|
|
5
|
+
readonly dividers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
7
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "ds-list", never, { "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class ListItemComponent {
|
|
11
|
+
/** Convenience text; richer middle content can be projected as default content. */
|
|
12
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
13
|
+
/** Secondary line below `title`. */
|
|
14
|
+
readonly subtitle: _angular_core.InputSignal<string>;
|
|
15
|
+
/** Makes the row's text a button that emits `activated`. `[leading]` and
|
|
16
|
+
* `[trailing]` stay outside it, so a row can hold its own controls as well. */
|
|
17
|
+
readonly clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
/** Marks the row current — `aria-current` and the selected tint. */
|
|
19
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/** Disables the row's own button. Controls projected into `[leading]` or
|
|
21
|
+
* `[trailing]` keep their own disabled state. */
|
|
22
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
/** Fires when the clickable row's button is activated. */
|
|
24
|
+
readonly activated: _angular_core.OutputEmitterRef<void>;
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListItemComponent, never>;
|
|
26
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListItemComponent, "ds-list-item", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "activated": "activated"; }, never, ["[leading]", "[trailing]", "*"], true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { ListComponent, ListItemComponent };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
declare class LoadingOverlayComponent {
|
|
5
|
+
/** Show the scrim + spinner over the projected region. */
|
|
6
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
/** Optional caption beneath the spinner. */
|
|
8
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
9
|
+
/** Backdrop-blur the projected content behind the scrim. */
|
|
10
|
+
readonly blur: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
/** Size of the spinner shown in the scrim. */
|
|
12
|
+
readonly spinnerSize: _angular_core.InputSignal<DsSize>;
|
|
13
|
+
/** Offset the scrim top edge — useful when a sticky header should stay uncovered. */
|
|
14
|
+
readonly insetTop: _angular_core.InputSignal<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the projected content goes `inert` while the scrim is up. On by
|
|
17
|
+
* default, because a scrim that only stops the POINTER is the bug this exists
|
|
18
|
+
* to prevent: focus walks straight under it, and a keyboard user activates a
|
|
19
|
+
* control the mouse cannot even reach.
|
|
20
|
+
*
|
|
21
|
+
* Turn it off only when the scrim covers part of the content (`insetTop`), and
|
|
22
|
+
* then mark the covered subtree `inert` yourself — a blanket flag would take
|
|
23
|
+
* the uncovered part with it. `ds-table` does exactly that: the scrim starts
|
|
24
|
+
* below the header, so sorting during a refresh stays possible.
|
|
25
|
+
*/
|
|
26
|
+
readonly inertContent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoadingOverlayComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoadingOverlayComponent, "ds-loading-overlay", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "blur": { "alias": "blur"; "required": false; "isSignal": true; }; "spinnerSize": { "alias": "spinnerSize"; "required": false; "isSignal": true; }; "insetTop": { "alias": "insetTop"; "required": false; "isSignal": true; }; "inertContent": { "alias": "inertContent"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { LoadingOverlayComponent };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
declare class MenuComponent {
|
|
6
|
+
private readonly items;
|
|
7
|
+
/** Index of the roving-focus item — the single item reachable via Tab. */
|
|
8
|
+
private readonly activeIndex;
|
|
9
|
+
constructor();
|
|
10
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
11
|
+
private typeAhead;
|
|
12
|
+
private focusItem;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
14
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuComponent, "ds-menu", never, {}, {}, ["items"], ["*"], true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class MenuItemComponent implements OnDestroy {
|
|
18
|
+
private readonly closeRef;
|
|
19
|
+
private readonly overlay;
|
|
20
|
+
private readonly vcr;
|
|
21
|
+
private readonly hostElement;
|
|
22
|
+
private readonly button;
|
|
23
|
+
/** Leading icon shown before the projected label. */
|
|
24
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
25
|
+
/** Blocks activation and styles the item as inactive. It stays
|
|
26
|
+
* keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s
|
|
27
|
+
* roving order, so a `[dsTooltip]` explaining why can be reached and shown. */
|
|
28
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
/** Renders the item in an error/destructive style. */
|
|
30
|
+
readonly error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
/** Renders the item muted — a secondary row like "Sign out" under a divider,
|
|
32
|
+
* still actionable but not competing with the items above it. */
|
|
33
|
+
readonly quiet: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
34
|
+
/** A standing second line under the label — a limitation the action carries
|
|
35
|
+
* ("will not be saved", "read-only in this workspace"). Visible without hover
|
|
36
|
+
* or focus, which is what separates it from a `[dsTooltip]`.
|
|
37
|
+
*
|
|
38
|
+
* Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:
|
|
39
|
+
* the projected label names the action, and a caveat is a description of it.
|
|
40
|
+
* That is why the line is `aria-hidden` in the DOM and referenced by id — inside
|
|
41
|
+
* the button and visible, it would otherwise be concatenated into the name. */
|
|
42
|
+
readonly description: _angular_core.InputSignal<string>;
|
|
43
|
+
/** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */
|
|
44
|
+
readonly submenu: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
45
|
+
/** Fires on click, unless the item is disabled or opens a submenu. */
|
|
46
|
+
readonly pressed: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
47
|
+
protected readonly descriptionId: string;
|
|
48
|
+
/** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the
|
|
49
|
+
* rest -1. Defaults true so a standalone item (outside ds-menu) stays
|
|
50
|
+
* reachable. */
|
|
51
|
+
readonly tabbable: _angular_core.WritableSignal<boolean>;
|
|
52
|
+
readonly submenuOpen: _angular_core.WritableSignal<boolean>;
|
|
53
|
+
private submenuRef;
|
|
54
|
+
private openTimer;
|
|
55
|
+
private closeTimer;
|
|
56
|
+
/** Move keyboard focus to this item's control. */
|
|
57
|
+
focus(): void;
|
|
58
|
+
/** Whether `node` lives inside this item's control (used by ds-menu to find
|
|
59
|
+
* the currently focused item during keyboard nav). */
|
|
60
|
+
contains(node: Node | null): boolean;
|
|
61
|
+
/** Visible label text — used by ds-menu's type-ahead. */
|
|
62
|
+
label(): string;
|
|
63
|
+
protected hasSubmenu(): boolean;
|
|
64
|
+
protected onClick(event: MouseEvent): void;
|
|
65
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
66
|
+
protected onMouseEnter(): void;
|
|
67
|
+
protected onMouseLeave(event: MouseEvent): void;
|
|
68
|
+
openSubmenu(): void;
|
|
69
|
+
closeSubmenu(): void;
|
|
70
|
+
ngOnDestroy(): void;
|
|
71
|
+
private clearOpenTimer;
|
|
72
|
+
private clearCloseTimer;
|
|
73
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
74
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuItemComponent, "ds-menu-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "quiet": { "alias": "quiet"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "submenu": { "alias": "submenu"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["[icon]", "*"], true, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class MenuDividerComponent {
|
|
78
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuDividerComponent, never>;
|
|
79
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuDividerComponent, "ds-menu-divider", never, {}, {}, never, never, true, never>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export { MenuComponent, MenuDividerComponent, MenuItemComponent };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import * as i1 from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';
|
|
5
|
+
import { DsSize, DsStatus, IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
|
|
7
|
+
type ModalSize = DsSize | 'xl' | 'fullscreen';
|
|
8
|
+
|
|
9
|
+
declare class ModalComponent implements OnDestroy {
|
|
10
|
+
private readonly scrollLock;
|
|
11
|
+
protected readonly preview: DsStaticPreview;
|
|
12
|
+
/** Open state, two-way bound. */
|
|
13
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
14
|
+
/** Dialog width — sm/md/lg/xl/fullscreen. */
|
|
15
|
+
readonly size: _angular_core.InputSignal<ModalSize>;
|
|
16
|
+
/** Severity, forwarded to the card — drives its icon-badge tint, title colour,
|
|
17
|
+
* default icon and ARIA role. Null (default) is a neutral dialog. `false` and
|
|
18
|
+
* `undefined` land on null too, so `[status]="isDangerous && 'error'"` binds. */
|
|
19
|
+
readonly status: _angular_core.InputSignalWithTransform<DsStatus | null, false | DsStatus | null | undefined>;
|
|
20
|
+
/** Dialog title, shown in the header and used for `aria-labelledby`. */
|
|
21
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
22
|
+
/** Secondary line under the title. Not part of the accessible name. */
|
|
23
|
+
readonly subtitle: _angular_core.InputSignal<string | null>;
|
|
24
|
+
/** Fires once the close (leave) animation finishes. */
|
|
25
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
26
|
+
/** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */
|
|
27
|
+
readonly confirmed: _angular_core.OutputEmitterRef<void>;
|
|
28
|
+
/** Draws the rules under the header and over the actions. Turning them off also
|
|
29
|
+
* tightens the vertical padding they were sized for. Unset falls back to
|
|
30
|
+
* `DS_CONFIG.modal.dividers`, then `true`. */
|
|
31
|
+
readonly dividers: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
32
|
+
/** Resolved here and passed down, so the card is told rather than resolving a
|
|
33
|
+
* second time — the two would disagree if a provider sat between them. */
|
|
34
|
+
readonly dividersResolved: _angular_core.Signal<boolean>;
|
|
35
|
+
/** When false, clicking the scrim does not close the modal. */
|
|
36
|
+
readonly closeOnBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
/** When true, neither backdrop click nor Escape closes the modal — only programmatic or explicit close button. */
|
|
38
|
+
readonly persistent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
/** Dialog is in the DOM (kept true through the leave animation). */
|
|
40
|
+
protected readonly rendered: _angular_core.WritableSignal<boolean>;
|
|
41
|
+
/** Playing the scrim fade-out leave animation. */
|
|
42
|
+
protected readonly closing: _angular_core.WritableSignal<boolean>;
|
|
43
|
+
private wasOpen;
|
|
44
|
+
private closeFallbackTimer;
|
|
45
|
+
constructor();
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
protected onClose(): void;
|
|
48
|
+
protected onLeaveEnd(event: AnimationEvent): void;
|
|
49
|
+
private finishClose;
|
|
50
|
+
protected readonly backdropPress: {
|
|
51
|
+
down: (event: PointerEvent) => void;
|
|
52
|
+
shouldDismiss: (event: PointerEvent) => boolean;
|
|
53
|
+
};
|
|
54
|
+
protected onBackdropRelease(event: PointerEvent): void;
|
|
55
|
+
protected onEscape(): void;
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
57
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ds-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "persistent": { "alias": "persistent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; "confirmed": "confirmed"; }, never, ["[eyebrow]", "[title-badge]", "[body]", "[impact]", "[actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class ModalCardComponent {
|
|
61
|
+
/** Card width — sm/md/lg/xl/fullscreen. */
|
|
62
|
+
readonly size: _angular_core.InputSignal<ModalSize>;
|
|
63
|
+
/** Severity — drives the icon-badge tint, the title colour, the DEFAULT icon and
|
|
64
|
+
* the ARIA role, which is the same set `ds-alert`'s variant drives. Null (the
|
|
65
|
+
* default) is a neutral dialog. It picks an icon as well as a tint because a tint
|
|
66
|
+
* alone signals by colour only; `icon` overrides the pick.
|
|
67
|
+
*
|
|
68
|
+
* `false` and `undefined` land on null too, so a template can bind the short
|
|
69
|
+
* `[status]="isDangerous && 'error'"` instead of spelling out the ternary. */
|
|
70
|
+
readonly status: _angular_core.InputSignalWithTransform<DsStatus | null, false | DsStatus | null | undefined>;
|
|
71
|
+
/** Card title, shown in the header and used for `aria-labelledby`. */
|
|
72
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
73
|
+
/** Secondary line under the title. Not part of the accessible name. */
|
|
74
|
+
readonly subtitle: _angular_core.InputSignal<string | null>;
|
|
75
|
+
/** Shows the header close button. */
|
|
76
|
+
readonly showClose: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
|
+
/** Draws the rules under the header and over the actions. Turning them off also
|
|
78
|
+
* tightens the vertical padding they were sized for. Unset falls back to
|
|
79
|
+
* `DS_CONFIG.modal.dividers`, then `true`. */
|
|
80
|
+
readonly dividers: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
81
|
+
readonly dividersResolved: _angular_core.Signal<boolean>;
|
|
82
|
+
/** Icon badge shown next to the title. Overrides the icon `status` would pick. */
|
|
83
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
84
|
+
/** ARIA role. Unset, an error or warning becomes `alertdialog` — the role for a
|
|
85
|
+
* dialog that interrupts with something the reader must act on — and anything
|
|
86
|
+
* else stays `dialog`. Same split `ds-alert` makes between `alert` and `status`. */
|
|
87
|
+
readonly dialogRole: _angular_core.InputSignal<"dialog" | "alertdialog" | null>;
|
|
88
|
+
/** Fires when the header close button is clicked. */
|
|
89
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
90
|
+
protected readonly titleId: string;
|
|
91
|
+
/** Status picks the glyph so a severity is never carried by colour alone. */
|
|
92
|
+
protected readonly resolvedIcon: _angular_core.Signal<IconName | null>;
|
|
93
|
+
protected readonly resolvedRole: _angular_core.Signal<"dialog" | "alertdialog">;
|
|
94
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
95
|
+
protected onClose(): void;
|
|
96
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalCardComponent, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalCardComponent, "ds-modal-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dialogRole": { "alias": "dialogRole"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[eyebrow]", "[title-badge]", "[body]", "[impact]", "[actions]"], true, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type ModalConfirmTone = 'default' | 'error';
|
|
101
|
+
interface ModalConfirmOptions {
|
|
102
|
+
title: string;
|
|
103
|
+
message?: string;
|
|
104
|
+
confirmLabel?: string;
|
|
105
|
+
cancelLabel?: string;
|
|
106
|
+
tone?: ModalConfirmTone;
|
|
107
|
+
icon?: IconName;
|
|
108
|
+
/** When set, the confirm button stays disabled until the user types this
|
|
109
|
+
* exact phrase — a guard for high-stakes destructive actions. */
|
|
110
|
+
typeToConfirm?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class ModalService {
|
|
114
|
+
private readonly overlay;
|
|
115
|
+
private readonly injector;
|
|
116
|
+
/** Open a confirmation dialog. Resolves true on confirm, false on cancel,
|
|
117
|
+
* backdrop click or Escape. */
|
|
118
|
+
confirm(options: ModalConfirmOptions): Promise<boolean>;
|
|
119
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalService, never>;
|
|
120
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ModalService>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { ModalCardComponent, ModalComponent, ModalService };
|
|
124
|
+
export type { ModalConfirmOptions, ModalConfirmTone, ModalSize };
|