@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,251 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
7
|
+
|
|
8
|
+
interface DateFormatSpec {
|
|
9
|
+
order: ('D' | 'M' | 'Y')[];
|
|
10
|
+
separator: string;
|
|
11
|
+
mask: string;
|
|
12
|
+
segments: {
|
|
13
|
+
type: 'D' | 'M' | 'Y';
|
|
14
|
+
length: number;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
/** One editable digit slot in the masked field. */
|
|
18
|
+
interface FieldSlot {
|
|
19
|
+
type: 'D' | 'M' | 'Y';
|
|
20
|
+
maxLength: number;
|
|
21
|
+
}
|
|
22
|
+
/** Field layout: the slots and the literal shown after each (except the last). */
|
|
23
|
+
interface FieldLayout {
|
|
24
|
+
slots: FieldSlot[];
|
|
25
|
+
literals: string[];
|
|
26
|
+
}
|
|
27
|
+
interface DisplayPart {
|
|
28
|
+
text: string;
|
|
29
|
+
muted: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type DatePickerMode = 'single' | 'range';
|
|
33
|
+
type DateValue = Date | null;
|
|
34
|
+
type RangeValue = [Date | null, Date | null];
|
|
35
|
+
type DatePickerValue = DateValue | RangeValue;
|
|
36
|
+
interface DatePickerPreset {
|
|
37
|
+
label: string;
|
|
38
|
+
value: Date | RangeValue;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface DayCell {
|
|
42
|
+
date: Date;
|
|
43
|
+
day: number;
|
|
44
|
+
inMonth: boolean;
|
|
45
|
+
isToday: boolean;
|
|
46
|
+
inRange: boolean;
|
|
47
|
+
isRangeStart: boolean;
|
|
48
|
+
isRangeEnd: boolean;
|
|
49
|
+
isSelected: boolean;
|
|
50
|
+
isDisabled: boolean;
|
|
51
|
+
}
|
|
52
|
+
declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeValue | null> implements OnDestroy {
|
|
53
|
+
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
54
|
+
* ring, so .in-group strips this control back to its bare contents. */
|
|
55
|
+
protected readonly inGroup: boolean;
|
|
56
|
+
constructor();
|
|
57
|
+
/** Field text for the DOM: fixed-width `_`-padded once any digit exists,
|
|
58
|
+
* else '' (so an untouched field is genuinely empty — no error on blur,
|
|
59
|
+
* nothing for AT to read out). */
|
|
60
|
+
private toFieldText;
|
|
61
|
+
private readonly overlay;
|
|
62
|
+
private readonly vcr;
|
|
63
|
+
private readonly injector;
|
|
64
|
+
private readonly config;
|
|
65
|
+
private readonly host;
|
|
66
|
+
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
67
|
+
* a consumer's `ds-date-picker { --ds-date-picker-panel-*: … }` reaches it. */
|
|
68
|
+
private readonly panelTokens;
|
|
69
|
+
/** Selection mode — single date or start/end range. */
|
|
70
|
+
readonly mode: _angular_core.InputSignal<DatePickerMode>;
|
|
71
|
+
/** Trigger height — sm/md/lg.
|
|
72
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
73
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
74
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
75
|
+
/** Stretch the trigger to fill its container instead of hugging the mask
|
|
76
|
+
* width — opt in when the field shares a grid/flex track with inputs. */
|
|
77
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
/** Selected date (single) or `[start, end]` (range), two-way bound. */
|
|
79
|
+
readonly value: _angular_core.ModelSignal<Date | RangeValue | null>;
|
|
80
|
+
/** Accessible-name fallback only — the mask fills the visible placeholder, not this. */
|
|
81
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
82
|
+
/** Field label shown above the trigger. */
|
|
83
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
84
|
+
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
85
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** Shows an "(optional)" marker beside the label — ignored when `required` is set. */
|
|
87
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
/** Disables the picker and blocks all interaction. */
|
|
89
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
90
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
91
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
92
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
93
|
+
/** Accessible name when no visible `label` is provided. */
|
|
94
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
95
|
+
/** Lower bound for the year dropdown in the calendar header. */
|
|
96
|
+
readonly minYear: _angular_core.InputSignal<number>;
|
|
97
|
+
/** Upper bound for the year dropdown in the calendar header. */
|
|
98
|
+
readonly maxYear: _angular_core.InputSignal<number>;
|
|
99
|
+
/** Earliest selectable date (inclusive). Days before this are disabled. */
|
|
100
|
+
readonly minDate: _angular_core.InputSignal<Date | null>;
|
|
101
|
+
/** Latest selectable date (inclusive). Days after this are disabled. */
|
|
102
|
+
readonly maxDate: _angular_core.InputSignal<Date | null>;
|
|
103
|
+
/** Predicate — return true to disable an individual day. */
|
|
104
|
+
readonly disabledDate: _angular_core.InputSignal<((date: Date) => boolean) | null>;
|
|
105
|
+
/** Quick-pick shortcuts shown as a button column inside the calendar panel. */
|
|
106
|
+
readonly presets: _angular_core.InputSignal<readonly DatePickerPreset[]>;
|
|
107
|
+
/** BCP-47 locale driving month/weekday names and the value format. */
|
|
108
|
+
readonly locale: _angular_core.InputSignal<string | null>;
|
|
109
|
+
/** Explicit token format e.g. `'MM/DD/YYYY'`; default derived from `locale`. */
|
|
110
|
+
readonly dateFormat: _angular_core.InputSignal<string | null>;
|
|
111
|
+
/** First weekday column: 0=Sunday … 6=Saturday. Default 1 (Monday). */
|
|
112
|
+
readonly firstDayOfWeek: _angular_core.InputSignal<number | null>;
|
|
113
|
+
/** Date the calendar opens on when the value is empty (e.g. a Date Of Birth):
|
|
114
|
+
* the panel shows its month and grid focus lands on its exact day.
|
|
115
|
+
* Never written to `value` — selection stays with the user. */
|
|
116
|
+
readonly defaultDate: _angular_core.InputSignal<Date | null>;
|
|
117
|
+
/** Allow masked manual typing. When false the field is read-only and a date can
|
|
118
|
+
* only be picked from the calendar. */
|
|
119
|
+
readonly allowInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
120
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
121
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
122
|
+
private readonly localError;
|
|
123
|
+
private readonly dateInvalid;
|
|
124
|
+
private readonly fieldMessage;
|
|
125
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
126
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
127
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
128
|
+
readonly resolvedLocale: _angular_core.Signal<string>;
|
|
129
|
+
protected readonly resolvedFirstDay: _angular_core.Signal<number>;
|
|
130
|
+
protected readonly formatSpec: _angular_core.Signal<DateFormatSpec>;
|
|
131
|
+
protected readonly layout: _angular_core.Signal<FieldLayout>;
|
|
132
|
+
protected readonly monthNames: _angular_core.Signal<string[]>;
|
|
133
|
+
protected readonly weekdays: _angular_core.Signal<string[]>;
|
|
134
|
+
protected readonly weekdaysFull: _angular_core.Signal<string[]>;
|
|
135
|
+
protected readonly monthYearLabel: _angular_core.Signal<string>;
|
|
136
|
+
protected readonly uid: string;
|
|
137
|
+
protected readonly labelId: string;
|
|
138
|
+
protected readonly panelId: string;
|
|
139
|
+
protected readonly captionId: string;
|
|
140
|
+
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
141
|
+
/** The day that holds keyboard focus in the open grid (roving tabindex). */
|
|
142
|
+
protected readonly gridFocus: _angular_core.WritableSignal<Date | null>;
|
|
143
|
+
protected readonly inputText: _angular_core.WritableSignal<string>;
|
|
144
|
+
protected readonly rangeText: _angular_core.WritableSignal<string>;
|
|
145
|
+
protected readonly typedInvalid: _angular_core.WritableSignal<boolean>;
|
|
146
|
+
protected readonly rangeInvalid: _angular_core.WritableSignal<boolean>;
|
|
147
|
+
private editing;
|
|
148
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
149
|
+
protected dayKey(d: Date): string;
|
|
150
|
+
protected isFocusDay(cell: DayCell): boolean;
|
|
151
|
+
/** Arrow-key roving navigation across the calendar grid (APG date grid). */
|
|
152
|
+
protected onGridKeydown(event: KeyboardEvent, cell: DayCell): void;
|
|
153
|
+
private addDays;
|
|
154
|
+
private addMonths;
|
|
155
|
+
private clampToBounds;
|
|
156
|
+
private focusGridDay;
|
|
157
|
+
protected dayLabel(cell: DayCell): string;
|
|
158
|
+
protected readonly triggerClasses: _angular_core.Signal<string>;
|
|
159
|
+
protected readonly viewMonth: _angular_core.WritableSignal<Date>;
|
|
160
|
+
protected readonly anchor: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
161
|
+
protected readonly inputEl: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
162
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
163
|
+
private overlayRef;
|
|
164
|
+
private focusTrigger;
|
|
165
|
+
protected readonly fieldText: _angular_core.Signal<string>;
|
|
166
|
+
protected readonly fieldPlaceholder: _angular_core.Signal<string>;
|
|
167
|
+
/** `size` attribute so the field hugs its mask width instead of stretching.
|
|
168
|
+
* +1 covers `size` under-counting the mask's wide glyphs (M/D/Y), which
|
|
169
|
+
* otherwise clip the last chars of the longer range mask. The field's
|
|
170
|
+
* `font-family: var(--font-mono)` keeps every glyph equal width, so the
|
|
171
|
+
* width never shifts as you type. */
|
|
172
|
+
protected readonly fieldSize: _angular_core.Signal<number>;
|
|
173
|
+
protected readonly displaySlots: _angular_core.Signal<DisplayPart[]>;
|
|
174
|
+
protected readonly monthMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
175
|
+
protected readonly yearMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
176
|
+
protected readonly viewMonthIndex: _angular_core.Signal<number>;
|
|
177
|
+
protected readonly viewYear: _angular_core.Signal<number>;
|
|
178
|
+
protected readonly yearPageStart: _angular_core.WritableSignal<number>;
|
|
179
|
+
protected readonly yearsOnPage: _angular_core.Signal<number[]>;
|
|
180
|
+
protected readonly yearRangeLabel: _angular_core.Signal<string>;
|
|
181
|
+
protected readonly canPrevYearPage: _angular_core.Signal<boolean>;
|
|
182
|
+
protected readonly canNextYearPage: _angular_core.Signal<boolean>;
|
|
183
|
+
/** Aligns the page so `year` lands on a stable grid boundary measured from minYear. */
|
|
184
|
+
private yearPageStartFor;
|
|
185
|
+
protected toggleMonthMenu(event: Event): void;
|
|
186
|
+
protected toggleYearMenu(event: Event): void;
|
|
187
|
+
protected prevYearPage(event: Event): void;
|
|
188
|
+
protected nextYearPage(event: Event): void;
|
|
189
|
+
protected closeMenus(): void;
|
|
190
|
+
protected selectMonth(index: number, event: Event): void;
|
|
191
|
+
protected selectYear(year: number, event: Event): void;
|
|
192
|
+
protected isDayDisabled(date: Date): boolean;
|
|
193
|
+
protected readonly daysGrid: _angular_core.Signal<DayCell[]>;
|
|
194
|
+
protected readonly weeksGrid: _angular_core.Signal<DayCell[][]>;
|
|
195
|
+
private getRangeContext;
|
|
196
|
+
protected open(moveFocusToGrid?: boolean): void;
|
|
197
|
+
protected close(cause?: DsOverlayCloseCause): void;
|
|
198
|
+
ngOnDestroy(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Also the calendar glyph's handler. A POINTER open must not drag focus into
|
|
201
|
+
* the day grid: the reader did not ask to leave a field they may want to type
|
|
202
|
+
* in. So focus follows what the field IS — typeable, and the caret stays;
|
|
203
|
+
* read-only, and the grid is the only thing worth focusing. The keyboard path is
|
|
204
|
+
* unaffected: ArrowDown on the field calls `open(true)`.
|
|
205
|
+
*/
|
|
206
|
+
protected onFieldClick(): void;
|
|
207
|
+
private mobileEdit;
|
|
208
|
+
protected onFieldInput(event: Event): void;
|
|
209
|
+
/** Physical-keyboard editing (desktop): typed digits fill the caret's slot;
|
|
210
|
+
* Backspace/Delete never shift digits across a separator. */
|
|
211
|
+
protected onFieldKeydown(event: KeyboardEvent): void;
|
|
212
|
+
/** Mobile keyboards don't fire a reliable `keydown` (Gboard reports keyCode 229 /
|
|
213
|
+
* "Unidentified"), so edits are routed here via `beforeinput`'s `inputType` instead.
|
|
214
|
+
* Android Chrome can also ignore `preventDefault()` here, so the intended result is
|
|
215
|
+
* stashed and re-asserted in `onFieldInput`; the microtask expires the stash once
|
|
216
|
+
* preventDefault worked (no following `input` in the same task). */
|
|
217
|
+
protected onFieldBeforeInput(event: InputEvent): void;
|
|
218
|
+
/** A selection is cleared through the model so `_` placeholders are never
|
|
219
|
+
* natively erased — only digits are editable. */
|
|
220
|
+
private runSegmentEdit;
|
|
221
|
+
/** Paste digits into the segment model at the caret slot — never a global
|
|
222
|
+
* flatten — so existing digits elsewhere in the field survive untouched. */
|
|
223
|
+
protected onFieldPaste(event: ClipboardEvent): void;
|
|
224
|
+
private countDigits;
|
|
225
|
+
/** The fallback for any `input` event with no preceding handled `beforeinput`
|
|
226
|
+
* (IME, autofill, a suggestion): `raw` is re-read as a flat digit stream and
|
|
227
|
+
* redistributed over the slots, since its own layout cannot be trusted. */
|
|
228
|
+
private commitRaw;
|
|
229
|
+
private applyEditedText;
|
|
230
|
+
protected onFieldBlur(): void;
|
|
231
|
+
/** Writing `value` parks the caret at the end, so the explicit range has to
|
|
232
|
+
* follow it; the later `[value]` binding writes the same string, which leaves
|
|
233
|
+
* the caret untouched. */
|
|
234
|
+
private writeBackText;
|
|
235
|
+
/** Caret just past the last digit a flat digit stream filled — the first slot
|
|
236
|
+
* short of its max length, or the very end once every slot is full. */
|
|
237
|
+
private caretAfterFill;
|
|
238
|
+
/** `commit` is the blur pass: only then is the field text rewritten from the
|
|
239
|
+
* parsed value, and a half-filled range written through to `value`. */
|
|
240
|
+
private applyRangeText;
|
|
241
|
+
protected prevMonth(): void;
|
|
242
|
+
protected nextMonth(): void;
|
|
243
|
+
protected selectDay(cell: DayCell): void;
|
|
244
|
+
protected isPresetDisabled(preset: DatePickerPreset): boolean;
|
|
245
|
+
protected applyPreset(preset: DatePickerPreset): void;
|
|
246
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "defaultDate": { "alias": "defaultDate"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export { DatePickerComponent };
|
|
251
|
+
export type { DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, RangeValue };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type DescriptionListOrientation = 'horizontal' | 'stacked';
|
|
4
|
+
declare class DescriptionListComponent {
|
|
5
|
+
/** horizontal = label column + value; stacked = label above value. */
|
|
6
|
+
readonly orientation: _angular_core.InputSignal<DescriptionListOrientation>;
|
|
7
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionListComponent, never>;
|
|
8
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DescriptionListComponent, "ds-description-list", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class DescriptionItemComponent {
|
|
12
|
+
private readonly list;
|
|
13
|
+
/** The label. Plain text; rich values go in the projected content. */
|
|
14
|
+
readonly term: _angular_core.InputSignal<string>;
|
|
15
|
+
/** When set, a copy button appears that copies this string to the clipboard. */
|
|
16
|
+
readonly copyValue: _angular_core.InputSignal<string | null>;
|
|
17
|
+
protected readonly stacked: _angular_core.Signal<boolean>;
|
|
18
|
+
protected readonly copied: _angular_core.WritableSignal<boolean>;
|
|
19
|
+
protected copy(): Promise<void>;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionItemComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DescriptionItemComponent, "ds-description-item", never, { "term": { "alias": "term"; "required": false; "isSignal": true; }; "copyValue": { "alias": "copyValue"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { DescriptionItemComponent, DescriptionListComponent };
|
|
25
|
+
export type { DescriptionListOrientation };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type DividerVariant = 'default' | 'strong' | 'vertical' | 'label';
|
|
4
|
+
/**
|
|
5
|
+
* Vertical breathing room around the divider. `md` is the safe default for
|
|
6
|
+
* page-content separators. Use `sm` inside dense lists (sidenav, menus) and
|
|
7
|
+
* `none` when the parent layout already owns the gap.
|
|
8
|
+
*/
|
|
9
|
+
type DividerSpacing = 'none' | 'sm' | 'md' | 'lg';
|
|
10
|
+
|
|
11
|
+
declare class DividerComponent {
|
|
12
|
+
/** `default` hairline · `strong` heavier rule · `vertical` for a row · `label` to carry
|
|
13
|
+
* projected text in the middle of the line. */
|
|
14
|
+
readonly variant: _angular_core.InputSignal<DividerVariant>;
|
|
15
|
+
/** Vertical breathing room around the rule. `none` when the parent layout already owns the gap. */
|
|
16
|
+
readonly spacing: _angular_core.InputSignal<DividerSpacing>;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DividerComponent, "ds-divider", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { DividerComponent };
|
|
22
|
+
export type { DividerSpacing, DividerVariant };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
type DrawerPlacement = 'right' | 'left' | 'top' | 'bottom';
|
|
6
|
+
|
|
7
|
+
declare class DrawerComponent implements OnDestroy {
|
|
8
|
+
private readonly scrollLock;
|
|
9
|
+
/** Open state, two-way bound. */
|
|
10
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
11
|
+
/** Panel size — sm/md/lg. */
|
|
12
|
+
readonly size: _angular_core.InputSignal<DsSize>;
|
|
13
|
+
/** Edge the panel slides in from. */
|
|
14
|
+
readonly placement: _angular_core.InputSignal<DrawerPlacement>;
|
|
15
|
+
/** Drawer title, shown in the header and used for `aria-labelledby`. */
|
|
16
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
17
|
+
/** Fires once the close (slide-out) animation finishes. */
|
|
18
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
19
|
+
protected readonly titleId: string;
|
|
20
|
+
/** Panel is in the DOM (kept true through the slide-out). */
|
|
21
|
+
protected readonly rendered: _angular_core.WritableSignal<boolean>;
|
|
22
|
+
/** Playing the slide-out + scrim-fade leave animation. */
|
|
23
|
+
protected readonly closing: _angular_core.WritableSignal<boolean>;
|
|
24
|
+
private wasOpen;
|
|
25
|
+
private closeFallbackTimer;
|
|
26
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
27
|
+
constructor();
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
protected onClose(): void;
|
|
30
|
+
protected onLeaveEnd(event: AnimationEvent): void;
|
|
31
|
+
private finishClose;
|
|
32
|
+
protected onEscape(): void;
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ds-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["[drawer-body]", "[drawer-footer]"], true, never>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { DrawerComponent };
|
|
38
|
+
export type { DrawerPlacement };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type DropzoneFileState = 'queued' | 'uploading' | 'success' | 'error';
|
|
4
|
+
interface DropzoneFile {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
size: number;
|
|
8
|
+
state: DropzoneFileState;
|
|
9
|
+
progress: number;
|
|
10
|
+
/** Human-readable status shown in place of the bare state name
|
|
11
|
+
* (e.g. "uploaded", "exceeds 10 MB limit"). */
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class DropzoneComponent {
|
|
16
|
+
/** Native `accept` attribute — comma-separated MIME types or extensions. */
|
|
17
|
+
readonly accept: _angular_core.InputSignal<string>;
|
|
18
|
+
/** Allows picking more than one file at once (ignored when `single`). */
|
|
19
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/** Files shown in the list — the consumer owns upload state and progress. */
|
|
21
|
+
readonly files: _angular_core.ModelSignal<DropzoneFile[]>;
|
|
22
|
+
/** Disables the dropzone: blocks all file-picking interactions and signals unavailability. */
|
|
23
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/** Restricts the dropzone to a single file; narrows the panel to `--col-cap-text`. */
|
|
25
|
+
readonly single: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
protected readonly dragOver: _angular_core.WritableSignal<boolean>;
|
|
27
|
+
/** Fires with the raw files picked or dropped; the consumer adds them to `files`. */
|
|
28
|
+
readonly filesAdded: _angular_core.OutputEmitterRef<File[]>;
|
|
29
|
+
/** Fires when the user removes a file; unlike `filesAdded`, the consumer must remove the matching entry from `files` itself. */
|
|
30
|
+
readonly fileRemoved: _angular_core.OutputEmitterRef<DropzoneFile>;
|
|
31
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
32
|
+
protected onDragOver(event: DragEvent): void;
|
|
33
|
+
protected onDragLeave(): void;
|
|
34
|
+
protected onDrop(event: DragEvent): void;
|
|
35
|
+
protected onPickerChange(event: Event): void;
|
|
36
|
+
protected onRemove(file: DropzoneFile): void;
|
|
37
|
+
protected fileMeta(file: DropzoneFile): string;
|
|
38
|
+
protected formatSize(bytes: number): string;
|
|
39
|
+
protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error';
|
|
40
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropzoneComponent, never>;
|
|
41
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropzoneComponent, "ds-dropzone", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "single": { "alias": "single"; "required": false; "isSignal": true; }; }, { "files": "filesChange"; "filesAdded": "filesAdded"; "fileRemoved": "fileRemoved"; }, never, ["[hint]"], true, never>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { DropzoneComponent };
|
|
45
|
+
export type { DropzoneFile, DropzoneFileState };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type EmptyStateVariant = 'none' | 'loading' | 'error' | 'locked' | 'success';
|
|
5
|
+
|
|
6
|
+
declare class EmptyStateComponent {
|
|
7
|
+
/** State — drives the default icon and shows a loading overlay when `'loading'`. */
|
|
8
|
+
readonly variant: _angular_core.InputSignal<EmptyStateVariant>;
|
|
9
|
+
/** Override the variant's default icon. */
|
|
10
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
11
|
+
/** Optional heading below the icon. */
|
|
12
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
13
|
+
/** Optional supporting text below the title. */
|
|
14
|
+
readonly body: _angular_core.InputSignal<string>;
|
|
15
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
16
|
+
protected readonly resolvedIcon: _angular_core.Signal<IconName>;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EmptyStateComponent, "ds-empty-state", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "body": { "alias": "body"; "required": false; "isSignal": true; }; }, {}, never, ["[actions]"], true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { EmptyStateComponent };
|
|
22
|
+
export type { EmptyStateVariant };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
/** What a grouped control can read off the group that encloses it. */
|
|
6
|
+
interface DsFieldGroupContext {
|
|
7
|
+
/** The group's size, so a segment matches its neighbours without being told.
|
|
8
|
+
* Resolved, not the raw input: `size` is unset by default and falls back to
|
|
9
|
+
* `DS_CONFIG.control.size`, which a segment must not have to resolve again. */
|
|
10
|
+
readonly sizeResolved: () => DsSize;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Provided by `ds-field-group`, injected `{ optional: true }` by every control
|
|
14
|
+
* that can be a segment.
|
|
15
|
+
*
|
|
16
|
+
* DI rather than a `[grouped]` input on each child: the alternative is manual,
|
|
17
|
+
* and one segment where it was forgotten renders its own border and radius in
|
|
18
|
+
* the middle of a glued row — a broken control that still looks deliberate.
|
|
19
|
+
* Presence of the token IS the fact the child needs, and the consumer already
|
|
20
|
+
* declared it by wrapping them.
|
|
21
|
+
*/
|
|
22
|
+
declare const DS_FIELD_GROUP: InjectionToken<DsFieldGroupContext>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether this control is a segment of a `ds-field-group`. Call it in a field
|
|
25
|
+
* component and bind the result to a host `.in-group` class; the component's own
|
|
26
|
+
* `.in-group` block then strips the chrome the group has taken over.
|
|
27
|
+
*
|
|
28
|
+
* A function so the six supported controls share one line instead of six copies
|
|
29
|
+
* of the same optional inject — and so the contract has one place to change.
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
declare function inFieldGroup(): boolean;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* One bordered control out of several: `select + input`, `search + button`,
|
|
36
|
+
* `button + select`. The group owns the border, the radius, the focus ring and
|
|
37
|
+
* the divider between segments; the controls inside render "naked".
|
|
38
|
+
*
|
|
39
|
+
* Segments are the direct children. Each hugs its content by default; mark the
|
|
40
|
+
* one that should take the slack with `grow`:
|
|
41
|
+
*
|
|
42
|
+
* ```html
|
|
43
|
+
* <ds-field-group>
|
|
44
|
+
* <ds-select [options]="scopes" />
|
|
45
|
+
* <ds-input grow placeholder="Search…" />
|
|
46
|
+
* </ds-field-group>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* A control knows it is a segment by injecting `DS_FIELD_GROUP` — see the token
|
|
50
|
+
* for why that is DI and not an input. Grouped controls must not carry a `label`
|
|
51
|
+
* or a `hint`: their own message row would break the glued line, so it is
|
|
52
|
+
* suppressed and a group-level one is not built yet.
|
|
53
|
+
*/
|
|
54
|
+
declare class FieldGroupComponent implements DsFieldGroupContext {
|
|
55
|
+
/** Segment height — the field family's scale, so a group lines up with a
|
|
56
|
+
* plain field beside it.
|
|
57
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
58
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
59
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
60
|
+
/** Draws the error border on the whole group. A single segment cannot be
|
|
61
|
+
* invalid on its own: the border belongs to the group. */
|
|
62
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
/** Dims the group. Disable the CONTROLS too — this is the chrome, not their
|
|
64
|
+
* interactivity. */
|
|
65
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
/** Fills the container instead of hugging its segments. */
|
|
67
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
68
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldGroupComponent, never>;
|
|
69
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldGroupComponent, "ds-field-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { DS_FIELD_GROUP, FieldGroupComponent, inFieldGroup };
|
|
73
|
+
export type { DsFieldGroupContext };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
/** @internal */
|
|
5
|
+
type FieldMessageState = 'default' | 'error' | 'warning' | 'success';
|
|
6
|
+
/** Internal shared helper/error line for form fields. Renders nothing when
|
|
7
|
+
* `text` is empty. The host field owns the `aria-describedby` relationship
|
|
8
|
+
* and passes `messageId`; this only renders the element that carries it.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
declare class FieldMessageComponent {
|
|
12
|
+
/** The one line under a field. Empty renders nothing (or reserved space, if the field asks). */
|
|
13
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
14
|
+
/** Which role the line is playing — hint, error, warning or success. Decides the colour. */
|
|
15
|
+
readonly state: _angular_core.InputSignal<FieldMessageState>;
|
|
16
|
+
/** Id the field points `aria-describedby` at, so the message is announced with the control. */
|
|
17
|
+
readonly messageId: _angular_core.InputSignal<string | null>;
|
|
18
|
+
/** Leading glyph. Unset resolves from the state through
|
|
19
|
+
* `DS_CONFIG.field.stateIcons` — error, warning and success carry one by default and
|
|
20
|
+
* the hint line does not. A name here overrides that for this message; `false`
|
|
21
|
+
* removes it. */
|
|
22
|
+
readonly icon: _angular_core.InputSignal<false | IconName | null>;
|
|
23
|
+
/** Reserve one line of height even when there's no `text`, so a field that
|
|
24
|
+
* gains/loses a message doesn't shift the layout below it. */
|
|
25
|
+
readonly reserve: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
private readonly config;
|
|
27
|
+
/** `hint` rather than `default` in the config: every field calls this line a hint,
|
|
28
|
+
* and `default` would read as "the default icon". */
|
|
29
|
+
private static readonly BUILT_IN;
|
|
30
|
+
protected readonly iconResolved: _angular_core.Signal<IconName | null>;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldMessageComponent, never>;
|
|
32
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldMessageComponent, "ds-field-message", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "messageId": { "alias": "messageId"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "reserve": { "alias": "reserve"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { FieldMessageComponent };
|
|
36
|
+
export type { FieldMessageState };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* One filter inside `ds-filter-bar`, with the width it should occupy:
|
|
7
|
+
* `<ng-template [dsFilterItem]="220"> <ds-date-picker … /> </ng-template>`.
|
|
8
|
+
*
|
|
9
|
+
* A template rather than plain projection because the bar has to MOVE the filters
|
|
10
|
+
* that do not fit into its overflow panel, and projected DOM cannot be relocated
|
|
11
|
+
* — it renders where it was projected. The cost is that crossing the boundary
|
|
12
|
+
* destroys and re-creates the view, so a control's internal state (an open panel,
|
|
13
|
+
* focus) does not survive a resize that collapses it. Its VALUE does: that lives
|
|
14
|
+
* in the consumer's own signal or form control.
|
|
15
|
+
*
|
|
16
|
+
* The width is a contract, not a hint — the bar sizes the slot to exactly this
|
|
17
|
+
* and decides the split from it, so a control that would render wider is
|
|
18
|
+
* narrowed rather than allowed to break the row.
|
|
19
|
+
*/
|
|
20
|
+
declare class FilterItemDirective {
|
|
21
|
+
readonly template: TemplateRef<unknown>;
|
|
22
|
+
/** Slot width in px. Bare `dsFilterItem` (or a non-positive value) means 180. */
|
|
23
|
+
readonly width: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterItemDirective, never>;
|
|
25
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FilterItemDirective, "ng-template[dsFilterItem]", never, { "width": { "alias": "dsFilterItem"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Priority+ filter row: renders as many filters as fit and collapses the rest
|
|
30
|
+
* into a "+N more" panel. Every admin list past three filters hits the same wall
|
|
31
|
+
* — the row wraps to a second line on a laptop, or the consumer hand-rolls this.
|
|
32
|
+
*
|
|
33
|
+
* The split is decided from each item's declared width plus one `ResizeObserver`
|
|
34
|
+
* on the row, never by measuring the filters themselves: they would have to be in
|
|
35
|
+
* the DOM to be measured, so anything that did not fit would flash before being
|
|
36
|
+
* taken away. `[dsFilterItem]` carries the width.
|
|
37
|
+
*
|
|
38
|
+
* Anything marked `dsFilterBarTrailing` — search, a Clear button — sits at the
|
|
39
|
+
* trailing edge and never collapses. Mark each control rather than wrapping them:
|
|
40
|
+
* the bar owns that row's gap and alignment, and a projected wrapper would be a
|
|
41
|
+
* plain block whose children stack. The trailing group is outside the measured
|
|
42
|
+
* row, so flexbox subtracts its width before the row is measured and the
|
|
43
|
+
* arithmetic needs no allowance for it.
|
|
44
|
+
*
|
|
45
|
+
* ```html
|
|
46
|
+
* <ds-filter-bar>
|
|
47
|
+
* <ng-template [dsFilterItem]="180">
|
|
48
|
+
* <ds-select label="Status" … />
|
|
49
|
+
* </ng-template>
|
|
50
|
+
* <ng-template [dsFilterItem]="220">
|
|
51
|
+
* <ds-date-picker label="Opened" … />
|
|
52
|
+
* </ng-template>
|
|
53
|
+
*
|
|
54
|
+
* <ds-search dsFilterBarTrailing … />
|
|
55
|
+
* <ds-button dsFilterBarTrailing variant="text">Clear</ds-button>
|
|
56
|
+
* </ds-filter-bar>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare class FilterBarComponent {
|
|
60
|
+
/** Trailing word of the trigger, after the count: "+2 filters". */
|
|
61
|
+
readonly moreLabel: _angular_core.InputSignal<string>;
|
|
62
|
+
/** Accessible name of the overflow panel. */
|
|
63
|
+
readonly panelLabel: _angular_core.InputSignal<string>;
|
|
64
|
+
/** Height of the "+N" trigger, to match the filters beside it. The bar cannot
|
|
65
|
+
* infer this: `dsFilterItem` carries a WIDTH, and the filters are arbitrary
|
|
66
|
+
* projected controls whose own `size` it never sees — so a row of `sm` filters
|
|
67
|
+
* got an `md` trigger standing 8px taller under `align-items: flex-end`. */
|
|
68
|
+
readonly triggerSize: _angular_core.InputSignal<DsSize>;
|
|
69
|
+
protected readonly devMode: boolean;
|
|
70
|
+
protected readonly items: _angular_core.Signal<readonly FilterItemDirective[]>;
|
|
71
|
+
private readonly row;
|
|
72
|
+
private readonly rowWidth;
|
|
73
|
+
private readonly gap;
|
|
74
|
+
protected readonly inlineCount: _angular_core.Signal<number>;
|
|
75
|
+
protected readonly inline: _angular_core.Signal<FilterItemDirective[]>;
|
|
76
|
+
/** The filters currently in the overflow panel. */
|
|
77
|
+
readonly collapsed: _angular_core.Signal<FilterItemDirective[]>;
|
|
78
|
+
constructor();
|
|
79
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterBarComponent, never>;
|
|
80
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterBarComponent, "ds-filter-bar", never, { "moreLabel": { "alias": "moreLabel"; "required": false; "isSignal": true; }; "panelLabel": { "alias": "panelLabel"; "required": false; "isSignal": true; }; "triggerSize": { "alias": "triggerSize"; "required": false; "isSignal": true; }; }, {}, ["items"], ["[dsFilterBarTrailing]", "*"], true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { FilterBarComponent, FilterItemDirective };
|