@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,213 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
5
|
+
import { DsOptionItem, DsOption, DsOptionGroup, DsControlWidth, DsSize, DsTriggerDisplay } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
import * as _angular_core from '@angular/core';
|
|
7
|
+
import { OnDestroy, TemplateRef, ElementRef } from '@angular/core';
|
|
8
|
+
|
|
9
|
+
interface MultiSelectOption extends DsOption<string> {
|
|
10
|
+
}
|
|
11
|
+
interface MultiSelectOptionGroup extends DsOptionGroup<string> {
|
|
12
|
+
}
|
|
13
|
+
type MultiSelectItem = DsOptionItem<string>;
|
|
14
|
+
type MultiSelectWidth = DsControlWidth;
|
|
15
|
+
|
|
16
|
+
declare class MultiSelectComponent extends DsControlValueAccessor<string[]> implements 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-multi-select { --ds-multi-select-panel-*: … }` reaches it. */
|
|
22
|
+
private readonly panelTokens;
|
|
23
|
+
/** Selected values, two-way bound. */
|
|
24
|
+
readonly value: _angular_core.ModelSignal<string[]>;
|
|
25
|
+
/** Options, groups, or both mixed — rendered in the order given. */
|
|
26
|
+
readonly options: _angular_core.InputSignal<readonly MultiSelectItem[]>;
|
|
27
|
+
/** Placeholder shown in the trigger when nothing is selected. */
|
|
28
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
29
|
+
/** Placeholder for the in-panel filter input. */
|
|
30
|
+
readonly searchPlaceholder: _angular_core.InputSignal<string>;
|
|
31
|
+
/** Whether the panel carries a filter row. `true` always, `false` never, and a
|
|
32
|
+
* NUMBER is a threshold — the row appears once there are at least that many
|
|
33
|
+
* options. Unset falls back to `DS_CONFIG.picker.searchable`, then `true`.
|
|
34
|
+
*
|
|
35
|
+
* Hiding it moves the panel's keyboard model onto the trigger: the arrows,
|
|
36
|
+
* Enter, Escape and `aria-activedescendant` are the filter input's today. */
|
|
37
|
+
readonly searchable: _angular_core.InputSignalWithTransform<number | boolean | null, unknown>;
|
|
38
|
+
readonly searchableResolved: _angular_core.Signal<number | boolean>;
|
|
39
|
+
/** Native `name` attribute forwarded to the trigger. */
|
|
40
|
+
readonly name: _angular_core.InputSignal<string | null>;
|
|
41
|
+
/** Prevents opening the panel while still allowing focus. */
|
|
42
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* The contract spelling of `readOnly`, a second input because signal forms binds
|
|
45
|
+
* by NAME — a `readonly()` rule was reaching nothing before this existed.
|
|
46
|
+
*/
|
|
47
|
+
readonly readonlyBinding: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
/** Shows a clear affordance once there is something to clear. */
|
|
49
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
/** How the typed query narrows the list.
|
|
51
|
+
*
|
|
52
|
+
* The default matches a case-insensitive substring of `label`. Pass a predicate
|
|
53
|
+
* to match on anything else — a second field, ignoring diacritics, a fuzzy score.
|
|
54
|
+
* Pass `'none'` when the list arrives already filtered, which is what a
|
|
55
|
+
* server-side search needs: the query is reported through `filterChange` and
|
|
56
|
+
* every option given is rendered.
|
|
57
|
+
*/
|
|
58
|
+
readonly filterWith: _angular_core.InputSignal<((option: MultiSelectOption, query: string) => boolean) | "none">;
|
|
59
|
+
/** The query the user typed, on every change. The input for a server-side search;
|
|
60
|
+
* pair it with `filterWith="none"` so the list is not narrowed twice. */
|
|
61
|
+
readonly filterChange: _angular_core.OutputEmitterRef<string>;
|
|
62
|
+
/** Options are still being fetched. The panel shows a spinner instead of the
|
|
63
|
+
* empty row — which would otherwise claim there are no matches — and the list
|
|
64
|
+
* reports `aria-busy`. */
|
|
65
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
/** The panel opened. The moment to fetch options for a picker whose list is
|
|
67
|
+
* loaded on demand. */
|
|
68
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
69
|
+
/** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */
|
|
70
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
71
|
+
/** Scrolls the keyboard cursor's row into view. On by default: a list longer
|
|
72
|
+
* than the panel otherwise walks the cursor out of sight. Set `false` only if
|
|
73
|
+
* you are driving the scroll position yourself. */
|
|
74
|
+
readonly scrollActiveIntoView: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/** How the chips collapse when they outgrow one line. `"fit"` (the default)
|
|
76
|
+
* measures and shows as many as the trigger is wide, the rest behind "+N more".
|
|
77
|
+
* A NUMBER is a CEILING, not a promise: the row still measures, so you get at
|
|
78
|
+
* most that many and fewer when the trigger is narrow. `"all"` shows every chip and
|
|
79
|
+
* lets the trigger grow a line per selection.
|
|
80
|
+
*
|
|
81
|
+
* Unset (`null`) means "not deciding", as it does on every other input in the
|
|
82
|
+
* library — it resolves to `"fit"`. It does NOT mean "show all": that is
|
|
83
|
+
* `"all"`, which is the loudest of the three modes and has to be asked for. */
|
|
84
|
+
readonly maxVisibleChips: _angular_core.InputSignalWithTransform<number | "fit" | "all" | null, number | "fit" | "all" | null>;
|
|
85
|
+
/** Disables the trigger and blocks all interaction. */
|
|
86
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
87
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
88
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
89
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
90
|
+
/** Accessible name for the trigger — falls back to `placeholder`. */
|
|
91
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
92
|
+
/** Trigger width — `fill` stretches to the container and pins the panel to the
|
|
93
|
+
* trigger's width; `content` hugs the trigger's own content and takes that width
|
|
94
|
+
* as the panel's FLOOR, so a compact trigger does not force an unreadable panel. */
|
|
95
|
+
readonly width: _angular_core.InputSignal<_ids_group_ltd_ids_design_system_core.DsControlWidth>;
|
|
96
|
+
/** Trigger height — sm/md/lg. Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
97
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
98
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
99
|
+
/** What the trigger shows. `count` is a caption plus a selected-count badge at
|
|
100
|
+
* intrinsic width; `labels` names the selection instead, cut to the width with the
|
|
101
|
+
* rest behind "+N". A projected `dsPickerTrigger` template WINS over this — the
|
|
102
|
+
* input is then not read at all. */
|
|
103
|
+
readonly triggerDisplay: _angular_core.InputSignal<DsTriggerDisplay>;
|
|
104
|
+
/** Field label above the control — the same meaning it has on `ds-select`, and the
|
|
105
|
+
* caption a `count`/`labels` trigger uses when it needs one. */
|
|
106
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
107
|
+
/** Marks the field required: a `*` beside the label and `aria-required` on the trigger. */
|
|
108
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
109
|
+
/** Marks the field optional in words, for a form where most fields are required. */
|
|
110
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
111
|
+
/** Where a "select all" row appears. `false` nowhere, `true` one row over the whole
|
|
112
|
+
* panel, `'group'` one row per group, `'both'` for either. Group rows need groups
|
|
113
|
+
* in `options` — with a flat list they have nothing to head. */
|
|
114
|
+
readonly selectAll: _angular_core.InputSignalWithTransform<boolean | "group" | "both", unknown>;
|
|
115
|
+
protected readonly optionTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
116
|
+
protected readonly chipTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
117
|
+
protected readonly pickerTrigger: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
118
|
+
protected readonly panelHeaderTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
119
|
+
protected readonly panelFooterTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
120
|
+
protected readonly groupLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
121
|
+
protected readonly emptyTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
122
|
+
protected readonly uid: string;
|
|
123
|
+
protected readonly listboxId: string;
|
|
124
|
+
protected readonly labelId: string;
|
|
125
|
+
protected optionId(index: number): string;
|
|
126
|
+
protected readonly trigger: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
127
|
+
protected readonly searchInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
128
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
129
|
+
private readonly chipRow;
|
|
130
|
+
protected readonly open: _angular_core.WritableSignal<boolean>;
|
|
131
|
+
protected readonly filter: _angular_core.WritableSignal<string>;
|
|
132
|
+
protected readonly activeIndex: _angular_core.WritableSignal<number>;
|
|
133
|
+
private overlayRef;
|
|
134
|
+
private focusTimer;
|
|
135
|
+
ngOnDestroy(): void;
|
|
136
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
137
|
+
protected readonly showsCompactTrigger: _angular_core.Signal<boolean>;
|
|
138
|
+
protected readonly showsSearch: _angular_core.Signal<boolean>;
|
|
139
|
+
protected readonly triggerActiveDescendant: _angular_core.Signal<string | null>;
|
|
140
|
+
protected readonly triggerCaption: _angular_core.Signal<string>;
|
|
141
|
+
protected readonly allOptions: _angular_core.Signal<MultiSelectOption[]>;
|
|
142
|
+
protected readonly selectedOptions: _angular_core.Signal<MultiSelectOption[]>;
|
|
143
|
+
private readonly chipsMode;
|
|
144
|
+
private readonly showsEveryChip;
|
|
145
|
+
/** True for BOTH `'fit'` and a number: a number is a ceiling, not a promise, so
|
|
146
|
+
* the row still measures and shows only what the trigger is wide enough for. */
|
|
147
|
+
protected readonly fitsChipsToWidth: _angular_core.Signal<boolean>;
|
|
148
|
+
/** How many chips the row is ASKED to render before measuring: everything for
|
|
149
|
+
* `'fit'`, the ceiling for a number. It must be the ceiling and not the selection —
|
|
150
|
+
* the width cache only fills from a render that holds every chip. */
|
|
151
|
+
private readonly chipBudget;
|
|
152
|
+
private readonly chipsThatFit;
|
|
153
|
+
protected readonly visibleChips: _angular_core.Signal<MultiSelectOption[]>;
|
|
154
|
+
protected readonly overflowCount: _angular_core.Signal<number>;
|
|
155
|
+
protected readonly filteredItems: _angular_core.Signal<MultiSelectItem[]>;
|
|
156
|
+
protected readonly filteredOptions: _angular_core.Signal<MultiSelectOption[]>;
|
|
157
|
+
protected isGroup(item: MultiSelectItem): item is MultiSelectOptionGroup;
|
|
158
|
+
/** Where an option sits in the flat visible list — the id the listbox's
|
|
159
|
+
* `aria-activedescendant` points at, which a grouped render cannot get from
|
|
160
|
+
* the loop index. */
|
|
161
|
+
protected flatIndexOf(option: MultiSelectOption): number;
|
|
162
|
+
protected readonly activeDescendant: _angular_core.Signal<string | null>;
|
|
163
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string>;
|
|
164
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
165
|
+
private readonly fieldMessage;
|
|
166
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
167
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
168
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
169
|
+
private enabledFiltered;
|
|
170
|
+
protected readonly allFilteredSelected: _angular_core.Signal<boolean>;
|
|
171
|
+
protected readonly someFilteredSelected: _angular_core.Signal<boolean>;
|
|
172
|
+
protected readonly showsPanelSelectAll: _angular_core.Signal<boolean>;
|
|
173
|
+
protected readonly showsGroupSelectAll: _angular_core.Signal<boolean>;
|
|
174
|
+
private enabledIn;
|
|
175
|
+
protected groupAllSelected(group: MultiSelectOptionGroup): boolean;
|
|
176
|
+
protected groupSomeSelected(group: MultiSelectOptionGroup): boolean;
|
|
177
|
+
protected toggleGroup(group: MultiSelectOptionGroup): void;
|
|
178
|
+
protected toggleSelectAll(): void;
|
|
179
|
+
protected isSelected(value: string): boolean;
|
|
180
|
+
protected toggleValue(option: MultiSelectOption): void;
|
|
181
|
+
protected clearValue(event: MouseEvent): void;
|
|
182
|
+
/**
|
|
183
|
+
* Empties the selection from outside — a "reset filters" button, a form the app
|
|
184
|
+
* clears itself. Deliberately does NOT move focus: the caller may be navigating
|
|
185
|
+
* away.
|
|
186
|
+
*/
|
|
187
|
+
clear(): void;
|
|
188
|
+
protected removeValue(value: string): void;
|
|
189
|
+
constructor();
|
|
190
|
+
protected onFilter(event: Event): void;
|
|
191
|
+
private setOpen;
|
|
192
|
+
protected readonly isReadOnly: _angular_core.Signal<boolean>;
|
|
193
|
+
private readonly typeAhead;
|
|
194
|
+
private handleTypeAhead;
|
|
195
|
+
protected readonly cursorFromKeyboard: _angular_core.WritableSignal<boolean>;
|
|
196
|
+
private cursorList;
|
|
197
|
+
private firstEnabledIndex;
|
|
198
|
+
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
199
|
+
protected onSearchKeydown(event: KeyboardEvent): void;
|
|
200
|
+
protected openPanel(): void;
|
|
201
|
+
protected onTriggerClick(): void;
|
|
202
|
+
protected close(cause?: DsOverlayCloseCause): void;
|
|
203
|
+
/** How far PageUp and PageDown move. Ten rows is the native `<select>` step and
|
|
204
|
+
* the APG listbox example's — a fixed number rather than a measured screenful,
|
|
205
|
+
* so the jump is the same wherever the panel happens to be clipped. */
|
|
206
|
+
private static readonly pageStep;
|
|
207
|
+
private moveActive;
|
|
208
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
|
209
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultiSelectComponent, "ds-multi-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "filterWith": { "alias": "filterWith"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "scrollActiveIntoView": { "alias": "scrollActiveIntoView"; "required": false; "isSignal": true; }; "maxVisibleChips": { "alias": "maxVisibleChips"; "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; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerDisplay": { "alias": "triggerDisplay"; "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; }; "selectAll": { "alias": "selectAll"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "filterChange": "filterChange"; "opened": "opened"; "closed": "closed"; }, ["optionTemplate", "chipTemplate", "pickerTrigger", "panelHeaderTemplate", "panelFooterTemplate", "groupLabelTemplate", "emptyTemplate"], never, true, never>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export { MultiSelectComponent };
|
|
213
|
+
export type { MultiSelectItem, MultiSelectOption, MultiSelectOptionGroup, MultiSelectWidth };
|
|
@@ -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 NumberStepperComponent {
|
|
5
|
+
/** Current numeric value, two-way bound. */
|
|
6
|
+
readonly value: _angular_core.ModelSignal<number>;
|
|
7
|
+
/** Lower bound — the decrement button and typed input clamp to it. */
|
|
8
|
+
readonly min: _angular_core.InputSignalWithTransform<number, number | undefined>;
|
|
9
|
+
/** Upper bound — the increment button and typed input clamp to it; unbounded when null. */
|
|
10
|
+
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
11
|
+
/** Amount added or subtracted per increment/decrement. */
|
|
12
|
+
readonly step: _angular_core.InputSignal<number>;
|
|
13
|
+
/** Control height — sm/md/lg.
|
|
14
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
15
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
16
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
17
|
+
/** Disables the stepper and blocks all interaction. */
|
|
18
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
/** Accessible name for the number input (the stepper has no visible label). */
|
|
20
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
21
|
+
protected readonly atMin: _angular_core.Signal<boolean>;
|
|
22
|
+
protected readonly atMax: _angular_core.Signal<boolean>;
|
|
23
|
+
protected readonly stepperClass: _angular_core.Signal<string>;
|
|
24
|
+
inc(): void;
|
|
25
|
+
dec(): void;
|
|
26
|
+
protected setRaw(raw: string): void;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberStepperComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NumberStepperComponent, "ds-number-stepper", never, { "value": { "alias": "value"; "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; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { NumberStepperComponent };
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
6
|
+
type OtpMode = 'numeric' | 'alphanumeric';
|
|
7
|
+
declare class OtpInputComponent extends DsControlValueAccessor<string> {
|
|
8
|
+
/** Entered code, two-way bound. */
|
|
9
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
10
|
+
/** Number of character cells. */
|
|
11
|
+
readonly length: _angular_core.InputSignal<number>;
|
|
12
|
+
/** Restricts input and the mobile keyboard to digits-only, or allows letters too. */
|
|
13
|
+
readonly mode: _angular_core.InputSignal<OtpMode>;
|
|
14
|
+
/** Renders each cell as a password dot instead of the typed character. */
|
|
15
|
+
readonly mask: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
/** Disables all cells and blocks interaction. */
|
|
17
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
19
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
20
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
21
|
+
/** Accessible group label for the cell row. */
|
|
22
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
23
|
+
/** Fires once, with the full code, on the partial → complete transition. */
|
|
24
|
+
readonly completed: _angular_core.OutputEmitterRef<string>;
|
|
25
|
+
private readonly boxes;
|
|
26
|
+
private wasComplete;
|
|
27
|
+
protected readonly uid: string;
|
|
28
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
29
|
+
private readonly fieldMessage;
|
|
30
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
31
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
32
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
33
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
34
|
+
protected readonly cells: _angular_core.Signal<string[]>;
|
|
35
|
+
protected onInput(event: Event, index: number): void;
|
|
36
|
+
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
37
|
+
protected onPaste(event: ClipboardEvent, index: number): void;
|
|
38
|
+
protected onFocus(event: FocusEvent, index: number): void;
|
|
39
|
+
protected cellLabel(index: number): string;
|
|
40
|
+
protected onBlur(): void;
|
|
41
|
+
private writeCell;
|
|
42
|
+
private distribute;
|
|
43
|
+
private commit;
|
|
44
|
+
private firstEmptyIndex;
|
|
45
|
+
private focusBox;
|
|
46
|
+
private sanitize;
|
|
47
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OtpInputComponent, never>;
|
|
48
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OtpInputComponent, "ds-otp-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "mask": { "alias": "mask"; "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; }; }, { "value": "valueChange"; "completed": "completed"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { OtpInputComponent };
|
|
52
|
+
export type { OtpMode };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type PageFooterVariant = 'default' | 'compact' | 'save';
|
|
4
|
+
|
|
5
|
+
declare class PageFooterComponent {
|
|
6
|
+
/** Visual style — default, compact, or the accented `save`-bar look. */
|
|
7
|
+
readonly variant: i0.InputSignal<PageFooterVariant>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageFooterComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageFooterComponent, "ds-page-footer", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["[brand]", "[nav]", "[actions]", "*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { PageFooterComponent };
|
|
13
|
+
export type { PageFooterVariant };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class PageHeaderComponent {
|
|
4
|
+
/** Small label shown above the title. */
|
|
5
|
+
readonly eyebrow: _angular_core.InputSignal<string>;
|
|
6
|
+
/** Page title, rendered as the `h1`. */
|
|
7
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
8
|
+
/** Supporting line shown under the title. */
|
|
9
|
+
readonly subtitle: _angular_core.InputSignal<string>;
|
|
10
|
+
/** Tightens spacing for dense layouts. */
|
|
11
|
+
readonly compact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
/** Shows a rule under the whole header. */
|
|
13
|
+
readonly divider: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
/** Shows a rule under the meta row only. */
|
|
15
|
+
readonly metaDivider: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PageHeaderComponent, "ds-page-header", never, { "eyebrow": { "alias": "eyebrow"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "divider": { "alias": "divider"; "required": false; "isSignal": true; }; "metaDivider": { "alias": "metaDivider"; "required": false; "isSignal": true; }; }, {}, never, ["[breadcrumbs]", "[title-badge]", "[meta]", "[actions]", "[tabs]"], true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { PageHeaderComponent };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class PaginationComponent {
|
|
4
|
+
/** Total item count, used to compute the page count. */
|
|
5
|
+
readonly total: _angular_core.InputSignal<number>;
|
|
6
|
+
/** Items per page, two-way bound. */
|
|
7
|
+
readonly pageSize: _angular_core.ModelSignal<number>;
|
|
8
|
+
/** 1-based active page, two-way bound; a page change (incl. the reset to 1
|
|
9
|
+
* after a size change) emits via the implicit `currentPageChange`. */
|
|
10
|
+
readonly currentPage: _angular_core.ModelSignal<number>;
|
|
11
|
+
/** Preset choices offered in the page-size dropdown. */
|
|
12
|
+
readonly pageSizeOptions: _angular_core.InputSignal<number[]>;
|
|
13
|
+
/** Shows the "Showing X–Y of Z" range label. */
|
|
14
|
+
readonly showLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
/** Shows the rows-per-page dropdown. Turn it off for a screen with a fixed
|
|
16
|
+
* page size — otherwise the control offers a choice the host won't honour. */
|
|
17
|
+
readonly showPageSize: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
protected readonly totalPages: _angular_core.Signal<number>;
|
|
19
|
+
protected readonly pageItems: _angular_core.Signal<(number | "ellipsis")[]>;
|
|
20
|
+
protected readonly rangeLabel: _angular_core.Signal<string>;
|
|
21
|
+
protected readonly sizeOptions: _angular_core.Signal<{
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[]>;
|
|
25
|
+
protected readonly pageSizeStr: _angular_core.Signal<string>;
|
|
26
|
+
protected goTo(page: number): void;
|
|
27
|
+
protected onSizeChange(value: string): void;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "ds-pagination", never, { "total": { "alias": "total"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; }, { "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { PaginationComponent };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One password requirement. The consumer owns the POLICY — `test` must mirror
|
|
6
|
+
* whatever their server enforces — and the DS owns only how the row reads.
|
|
7
|
+
*/
|
|
8
|
+
interface DsPasswordRule {
|
|
9
|
+
/** Row text, e.g. "At least 8 characters". */
|
|
10
|
+
readonly label: string;
|
|
11
|
+
/** Whether the current value satisfies this rule. */
|
|
12
|
+
readonly test: (value: string) => boolean;
|
|
13
|
+
}
|
|
14
|
+
/** Per-row state, exposed so a consumer can style or test against it. */
|
|
15
|
+
type DsPasswordRuleState = 'pending' | 'met' | 'failed';
|
|
16
|
+
|
|
17
|
+
interface RuleRow {
|
|
18
|
+
readonly label: string;
|
|
19
|
+
readonly state: DsPasswordRuleState;
|
|
20
|
+
readonly icon: IconName;
|
|
21
|
+
readonly announced: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Passes when every rule does. Exported separately so a form can gate its submit
|
|
25
|
+
* from a validator without reaching for the component instance.
|
|
26
|
+
*/
|
|
27
|
+
declare function passwordRulesMet(value: string, rules: readonly DsPasswordRule[]): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Live checklist under a "new password" field.
|
|
30
|
+
*
|
|
31
|
+
* The consumer keeps the POLICY — each rule carries its own `test`, which has to
|
|
32
|
+
* mirror the server, or the checklist is a lie — and this owns the rendering: the
|
|
33
|
+
* tri-state glyph, the met and failed colours, the type scale. One consumer had
|
|
34
|
+
* written it twice and the copies had already drifted (different labels for the
|
|
35
|
+
* same rule, a different order, different state classes), which is why it is here.
|
|
36
|
+
*
|
|
37
|
+
* ```html
|
|
38
|
+
* <ds-input
|
|
39
|
+
* type="password"
|
|
40
|
+
* [attr.aria-describedby]="rules.listId"
|
|
41
|
+
* [(value)]="password"
|
|
42
|
+
* />
|
|
43
|
+
* <ds-password-rules
|
|
44
|
+
* #rules
|
|
45
|
+
* [value]="password()"
|
|
46
|
+
* [rules]="passwordRules"
|
|
47
|
+
* [showUnmet]="submitted()"
|
|
48
|
+
* />
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare class PasswordRulesComponent {
|
|
52
|
+
/** The password being typed. */
|
|
53
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
54
|
+
/** The rule set, in the order it should read. */
|
|
55
|
+
readonly rules: _angular_core.InputSignal<readonly DsPasswordRule[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Whether an unmet rule may read as FAILED. Bind it to "the user has tried to
|
|
58
|
+
* submit": before that an unmet rule is merely pending, because marking a
|
|
59
|
+
* half-typed password with errors scolds someone who is still typing.
|
|
60
|
+
*/
|
|
61
|
+
readonly showUnmet: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
62
|
+
/** Lay the rows out in two columns — for a checklist beside a wide form. */
|
|
63
|
+
readonly columns: _angular_core.InputSignal<1 | 2>;
|
|
64
|
+
/**
|
|
65
|
+
* Id put on the rule list, for the field's `aria-describedby`. Defaults to a
|
|
66
|
+
* generated one; set it explicitly and both sides can name the same string,
|
|
67
|
+
* which avoids threading a template ref between two siblings.
|
|
68
|
+
*/
|
|
69
|
+
readonly listId: _angular_core.InputSignal<string>;
|
|
70
|
+
protected readonly rows: _angular_core.Signal<readonly RuleRow[]>;
|
|
71
|
+
/** How many rules pass — for a host that wants to gate its own submit. */
|
|
72
|
+
readonly metCount: _angular_core.Signal<number>;
|
|
73
|
+
/** True when every rule passes. */
|
|
74
|
+
readonly allMet: _angular_core.Signal<boolean>;
|
|
75
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PasswordRulesComponent, never>;
|
|
76
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PasswordRulesComponent, "ds-password-rules", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "showUnmet": { "alias": "showUnmet"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "listId": { "alias": "listId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { PasswordRulesComponent, passwordRulesMet };
|
|
80
|
+
export type { DsPasswordRule, DsPasswordRuleState };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import { DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
5
|
+
import { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
|
|
6
|
+
|
|
7
|
+
type PopoverAlign = 'start' | 'end';
|
|
8
|
+
type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
declare class PopoverComponent implements OnDestroy, DsOverlayCloseRef {
|
|
10
|
+
private readonly overlay;
|
|
11
|
+
private readonly vcr;
|
|
12
|
+
private readonly host;
|
|
13
|
+
protected readonly preview: DsStaticPreview;
|
|
14
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
15
|
+
private readonly panelTrap;
|
|
16
|
+
private ref;
|
|
17
|
+
private triggerElement;
|
|
18
|
+
private focusTimer;
|
|
19
|
+
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
20
|
+
* a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it. */
|
|
21
|
+
private readonly panelTokens;
|
|
22
|
+
/** Cross-axis alignment of the panel against the trigger. */
|
|
23
|
+
readonly align: _angular_core.InputSignal<PopoverAlign>;
|
|
24
|
+
/** Which side of the trigger the panel prefers to appear on. */
|
|
25
|
+
readonly placement: _angular_core.InputSignal<PopoverPlacement>;
|
|
26
|
+
/** Render a small caret pointing at the trigger. */
|
|
27
|
+
readonly arrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/** ARIA role for the panel (e.g. 'dialog' for interactive popovers). When set,
|
|
29
|
+
* the panel traps focus and captures it on open; a keyboard (Escape) or
|
|
30
|
+
* in-panel close returns focus to the trigger, while an outside click or
|
|
31
|
+
* scroll leaves focus where it lands (non-modal). Leave null for plain,
|
|
32
|
+
* non-interactive text popovers. */
|
|
33
|
+
readonly panelRole: _angular_core.InputSignal<string | null>;
|
|
34
|
+
/** Accessible name for the panel; pair with `panelRole`. */
|
|
35
|
+
readonly panelLabel: _angular_core.InputSignal<string | null>;
|
|
36
|
+
/** Open/closed state — for callers binding `aria-expanded` on the trigger. */
|
|
37
|
+
readonly opened: _angular_core.WritableSignal<boolean>;
|
|
38
|
+
/** Resolved placement after the overlay positions — drives the arrow direction. */
|
|
39
|
+
readonly resolvedPlacement: _angular_core.WritableSignal<PopoverPlacement>;
|
|
40
|
+
toggle(trigger: HTMLElement): void;
|
|
41
|
+
close(cause?: DsOverlayCloseCause): void;
|
|
42
|
+
ngOnDestroy(): void;
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopoverComponent, "ds-popover", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "arrow": { "alias": "arrow"; "required": false; "isSignal": true; }; "panelRole": { "alias": "panelRole"; "required": false; "isSignal": true; }; "panelLabel": { "alias": "panelLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { PopoverComponent };
|
|
48
|
+
export type { PopoverAlign, PopoverPlacement };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DsStatus } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type ProgressVariant = 'default' | Exclude<DsStatus, 'info'>;
|
|
5
|
+
|
|
6
|
+
declare class ProgressComponent {
|
|
7
|
+
/** Progress 0–100; clamped, and ignored while `indeterminate`. */
|
|
8
|
+
readonly value: _angular_core.InputSignal<number>;
|
|
9
|
+
/** Colour variant — drives the success/warning/error styling. */
|
|
10
|
+
readonly variant: _angular_core.InputSignal<ProgressVariant>;
|
|
11
|
+
/** Indeterminate (unknown-duration) animation instead of a fixed `value`. */
|
|
12
|
+
readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
/** Accessible name for the progress bar (e.g. "Upload progress"). */
|
|
14
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
15
|
+
protected readonly clampedValue: _angular_core.Signal<number>;
|
|
16
|
+
protected readonly isIndet: _angular_core.Signal<boolean>;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressComponent, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressComponent, "ds-progress", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { ProgressComponent };
|
|
22
|
+
export type { ProgressVariant };
|