@ids-group-ltd/ids-design-system 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +253 -13
- package/components/README.md +86 -0
- package/components.md +12 -4
- package/docs/agent/INDEX.md +1 -0
- package/docs/agent/platform/body-scroll-lock-service.md +12 -0
- package/docs/agent/platform/toast-service.md +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14030
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -1
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +247 -0
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.7.1.json +2 -1
- package/migrations/0.8.0.json +6 -5
- package/package.json +573 -1
- package/styles/_control-label.scss +18 -0
- package/styles/_ds-color.scss +6 -0
- package/styles/_focus.scss +16 -0
- package/styles/_skeleton-shimmer.scss +10 -26
- package/themes/README.md +4 -4
- package/themes/_semantic.scss +11 -2
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
- package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +72 -5544
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1,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 };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName, DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
import { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';
|
|
4
|
+
|
|
5
|
+
type IconButtonVariant = 'standard' | 'filled' | 'tonal' | 'outlined';
|
|
6
|
+
type IconButtonType = 'button' | 'submit' | 'reset';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Icon-only action button with its own variant taxonomy (standard / filled /
|
|
10
|
+
* tonal / outlined) + an optional toggle (`selected`) state. Distinct from
|
|
11
|
+
* `ds-button` — use this for square/round icon affordances; use `ds-button`
|
|
12
|
+
* for labelled actions. `ariaLabel` is REQUIRED (icon-only has no text label).
|
|
13
|
+
*/
|
|
14
|
+
declare class IconButtonComponent {
|
|
15
|
+
/** Icon to render — the button's only visible content. */
|
|
16
|
+
readonly icon: _angular_core.InputSignal<IconName>;
|
|
17
|
+
/** Accessible name — required since the button has no visible text. */
|
|
18
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
19
|
+
/** ARIA `aria-describedby` — the id of text the app renders beside the button,
|
|
20
|
+
* such as why the action is refused. Icon-only leaves no room for a second
|
|
21
|
+
* line, so unlike `ds-button` there is no `disabledReason` here: the text has
|
|
22
|
+
* to exist on screen already for this to point at it. */
|
|
23
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
24
|
+
/** Fill style — standard (chromeless), filled, tonal, or outlined. */
|
|
25
|
+
readonly variant: _angular_core.InputSignal<IconButtonVariant>;
|
|
26
|
+
/** Brand/status hue family (shared with ds-button). `variant` is the fill
|
|
27
|
+
axis; `color` recolours the accent the fill consumes. Default primary. */
|
|
28
|
+
readonly color: _angular_core.InputSignal<ButtonColor>;
|
|
29
|
+
/** Button size — sm/md/lg, matches the field/button height scale.
|
|
30
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
31
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
32
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
33
|
+
/** Native `<button>` `type`; defaults to `'button'` (not `'submit'`) so it never submits an ancestor form by accident. */
|
|
34
|
+
readonly type: _angular_core.InputSignal<IconButtonType>;
|
|
35
|
+
/** Disables the button and blocks `pressed`. */
|
|
36
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
/** Toggle state — renders the pressed/active look and sets aria-pressed. */
|
|
38
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
/** ARIA `aria-expanded`, forwarded to the inner `<button>` — bind to the open
|
|
40
|
+
* state when this button opens a panel. On the host element it would land on
|
|
41
|
+
* a non-focusable wrapper, which no screen reader reads. */
|
|
42
|
+
readonly ariaExpanded: _angular_core.InputSignal<boolean | null>;
|
|
43
|
+
/** ARIA `aria-controls`, forwarded to the inner `<button>` — the id of the
|
|
44
|
+
* panel this button opens, e.g. `ds-app-layout`'s `railId`. */
|
|
45
|
+
readonly ariaControls: _angular_core.InputSignal<string | null>;
|
|
46
|
+
/** Fires on click, unless disabled. */
|
|
47
|
+
readonly pressed: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
48
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
49
|
+
protected readonly iconSize: _angular_core.Signal<16 | 24 | 20>;
|
|
50
|
+
protected onClick(event: MouseEvent): void;
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
52
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconButtonComponent, "ds-icon-button", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { IconButtonComponent };
|
|
56
|
+
export type { IconButtonType, IconButtonVariant };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
|
|
7
|
+
type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
8
|
+
|
|
9
|
+
declare class InputComponent extends DsControlValueAccessor<string> {
|
|
10
|
+
private readonly control;
|
|
11
|
+
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
12
|
+
* ring, so .in-group strips this control back to its bare contents. */
|
|
13
|
+
protected readonly inGroup: boolean;
|
|
14
|
+
/** Text value, two-way bound. */
|
|
15
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
16
|
+
/** Native input type — also affects the default clear button and password toggle. */
|
|
17
|
+
readonly type: _angular_core.InputSignal<InputType>;
|
|
18
|
+
/** Field height — sm/md/lg.
|
|
19
|
+
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
20
|
+
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
21
|
+
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
22
|
+
/** Label shown above the field. */
|
|
23
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
24
|
+
/** Placeholder shown when empty. */
|
|
25
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
26
|
+
/** Disables the field and blocks all interaction. */
|
|
27
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/** Prevents editing while still allowing focus and selection. */
|
|
29
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* The contract spelling of `readOnly`, a second input because signal forms binds
|
|
32
|
+
* by NAME — a `readonly()` rule was reaching nothing before this existed.
|
|
33
|
+
*/
|
|
34
|
+
readonly readonlyBinding: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
protected readonly isReadOnly: _angular_core.Signal<boolean>;
|
|
36
|
+
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
37
|
+
* the field's success border. A string like `warning`: the text IS the state. */
|
|
38
|
+
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
39
|
+
/** Shows a trailing spinner — e.g. async validation in flight. The input
|
|
40
|
+
* stays editable; pair with a `hint` like "Checking availability…". */
|
|
41
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
42
|
+
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
43
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
/** Shows an "(optional)" marker next to the label (ignored when `required`). */
|
|
45
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
46
|
+
/** Native `name` attribute. */
|
|
47
|
+
readonly name: _angular_core.InputSignal<string | null>;
|
|
48
|
+
/** Native `min` attribute — applies when `type="number"`. */
|
|
49
|
+
readonly min: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
50
|
+
/** Native `max` attribute — applies when `type="number"`. */
|
|
51
|
+
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
52
|
+
/** Native `step` attribute — applies when `type="number"`. */
|
|
53
|
+
readonly step: _angular_core.InputSignal<number | null>;
|
|
54
|
+
/** Native autocomplete token (e.g. "email", "current-password"). */
|
|
55
|
+
readonly autocomplete: _angular_core.InputSignal<string | null>;
|
|
56
|
+
/** Focuses the field automatically on render. */
|
|
57
|
+
readonly autofocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
58
|
+
/** Accessible name when no visible `label` is provided (falls back to the
|
|
59
|
+
* placeholder so the control is never unnamed). */
|
|
60
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
61
|
+
/** Extra element ids to describe the control with — a password-rule list, a
|
|
62
|
+
* policy note. MERGED with the field's own message id rather than replacing
|
|
63
|
+
* it, and it has to be an input because the attribute belongs on the inner
|
|
64
|
+
* `<input>`: set on the host it lands on a wrapper no screen reader reads. */
|
|
65
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
66
|
+
/** Hard character cap — applies the native maxlength attribute and shows a
|
|
67
|
+
* live "{current}/{max}" counter below the field. */
|
|
68
|
+
readonly maxLength: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
69
|
+
/** Native `minlength` attribute. */
|
|
70
|
+
readonly minLength: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
|
|
71
|
+
/** Native `pattern` attribute — signal forms sends the schema's RegExp list. */
|
|
72
|
+
readonly pattern: _angular_core.InputSignalWithTransform<readonly RegExp[], string | readonly RegExp[] | undefined>;
|
|
73
|
+
/** Mobile keyboard hints — forwarded to the native input as attributes. */
|
|
74
|
+
readonly enterKeyHint: _angular_core.InputSignal<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | null>;
|
|
75
|
+
/** Native `inputmode` attribute — hints the on-screen keyboard layout. */
|
|
76
|
+
readonly inputMode: _angular_core.InputSignal<"text" | "email" | "tel" | "url" | "search" | "none" | "decimal" | "numeric" | null>;
|
|
77
|
+
/** Emits when the native input loses focus. */
|
|
78
|
+
readonly blurred: _angular_core.OutputEmitterRef<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Show an inline clear (×) button when the input has a non-empty value.
|
|
81
|
+
* Mirrors the Material/PrimeNG pattern: explicit button (not native search
|
|
82
|
+
* cancel) so the affordance is consistent across browsers and styled with
|
|
83
|
+
* DS tokens. Defaults to true when type='search', false otherwise — pass
|
|
84
|
+
* an explicit boolean to override.
|
|
85
|
+
*/
|
|
86
|
+
readonly clearable: _angular_core.InputSignal<boolean | null>;
|
|
87
|
+
/** Shows a show/hide button when `type="password"`. */
|
|
88
|
+
readonly passwordToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
/** Whether the password is currently shown as plain text, two-way bound. */
|
|
90
|
+
readonly passwordVisible: _angular_core.ModelSignal<boolean>;
|
|
91
|
+
protected readonly canClear: _angular_core.Signal<boolean>;
|
|
92
|
+
/** A native `pattern` takes ONE expression; the schema can carry several, so
|
|
93
|
+
* they are ANDed with lookaheads rather than silently dropping all but one. */
|
|
94
|
+
protected readonly patternAttribute: _angular_core.Signal<string | null>;
|
|
95
|
+
protected readonly uid: string;
|
|
96
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
97
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
98
|
+
private readonly fieldMessage;
|
|
99
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
100
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
101
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
102
|
+
/** Only name via aria-label when there's no visible `<label for>`. */
|
|
103
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
104
|
+
/** Effective disabled — own `disabled` input OR the reactive-forms state. */
|
|
105
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
106
|
+
protected readonly currentLength: _angular_core.Signal<number>;
|
|
107
|
+
protected readonly counterId: _angular_core.Signal<string | null>;
|
|
108
|
+
protected readonly showPasswordToggle: _angular_core.Signal<boolean>;
|
|
109
|
+
protected readonly effectiveType: _angular_core.Signal<InputType>;
|
|
110
|
+
protected togglePassword(): void;
|
|
111
|
+
protected readonly wrapperClasses: _angular_core.Signal<string>;
|
|
112
|
+
/** Move keyboard focus to the native input — public so a host can drive it
|
|
113
|
+
* deliberately, e.g. focusing the first invalid field on a failed submit. */
|
|
114
|
+
focus(options?: FocusOptions): void;
|
|
115
|
+
protected clear(): void;
|
|
116
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
117
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputComponent, "ds-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "enterKeyHint": { "alias": "enterKeyHint"; "required": false; "isSignal": true; }; "inputMode": { "alias": "inputMode"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "passwordToggle": { "alias": "passwordToggle"; "required": false; "isSignal": true; }; "passwordVisible": { "alias": "passwordVisible"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "blurred": "blurred"; "passwordVisible": "passwordVisibleChange"; }, never, ["[dsInputPrefix]", "[dsInputSuffix]"], true, never>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { InputComponent };
|
|
121
|
+
export type { InputType };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type LayoutGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
type LayoutAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
6
|
+
type LayoutJustify = 'start' | 'center' | 'end' | 'between';
|
|
7
|
+
type ContainerSize = DsSize | 'xl' | 'full';
|
|
8
|
+
|
|
9
|
+
declare class StackComponent {
|
|
10
|
+
/** Space between children. `null` inherits whatever the enclosing layout set. */
|
|
11
|
+
readonly gap: _angular_core.InputSignal<LayoutGap | null>;
|
|
12
|
+
/** Cross-axis alignment — horizontal, for a column. */
|
|
13
|
+
readonly align: _angular_core.InputSignal<LayoutAlign | null>;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StackComponent, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StackComponent, "ds-stack", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class InlineComponent {
|
|
19
|
+
/** Space between children. `null` inherits whatever the enclosing layout set. */
|
|
20
|
+
readonly gap: _angular_core.InputSignal<LayoutGap | null>;
|
|
21
|
+
/** Cross-axis alignment — vertical, for a row. */
|
|
22
|
+
readonly align: _angular_core.InputSignal<LayoutAlign | null>;
|
|
23
|
+
/** Main-axis distribution — horizontal, for a row. `between` pushes the ends apart. */
|
|
24
|
+
readonly justify: _angular_core.InputSignal<LayoutJustify | null>;
|
|
25
|
+
/** Let the row wrap onto more lines (default). `false` keeps one line and lets it overflow. */
|
|
26
|
+
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineComponent, "ds-inline", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "justify": { "alias": "justify"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class ContainerComponent {
|
|
32
|
+
/** Max content width before the container centres itself. `full` removes the cap. */
|
|
33
|
+
readonly size: _angular_core.InputSignal<ContainerSize>;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContainerComponent, never>;
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContainerComponent, "ds-container", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { ContainerComponent, InlineComponent, StackComponent };
|
|
39
|
+
export type { ContainerSize, LayoutAlign, LayoutGap, LayoutJustify };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class ListComponent {
|
|
4
|
+
/** Draw a hairline separator between adjacent items. */
|
|
5
|
+
readonly dividers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
7
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "ds-list", never, { "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class ListItemComponent {
|
|
11
|
+
/** Convenience text; richer middle content can be projected as default content. */
|
|
12
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
13
|
+
/** Secondary line below `title`. */
|
|
14
|
+
readonly subtitle: _angular_core.InputSignal<string>;
|
|
15
|
+
/** Makes the row's text a button that emits `activated`. `[leading]` and
|
|
16
|
+
* `[trailing]` stay outside it, so a row can hold its own controls as well. */
|
|
17
|
+
readonly clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
/** Marks the row current — `aria-current` and the selected tint. */
|
|
19
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/** Disables the row's own button. Controls projected into `[leading]` or
|
|
21
|
+
* `[trailing]` keep their own disabled state. */
|
|
22
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
/** Fires when the clickable row's button is activated. */
|
|
24
|
+
readonly activated: _angular_core.OutputEmitterRef<void>;
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListItemComponent, never>;
|
|
26
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListItemComponent, "ds-list-item", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "activated": "activated"; }, never, ["[leading]", "[trailing]", "*"], true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { ListComponent, ListItemComponent };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
declare class LoadingOverlayComponent {
|
|
5
|
+
/** Show the scrim + spinner over the projected region. */
|
|
6
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
/** Optional caption beneath the spinner. */
|
|
8
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
9
|
+
/** Backdrop-blur the projected content behind the scrim. */
|
|
10
|
+
readonly blur: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
/** Size of the spinner shown in the scrim. */
|
|
12
|
+
readonly spinnerSize: _angular_core.InputSignal<DsSize>;
|
|
13
|
+
/** Offset the scrim top edge — useful when a sticky header should stay uncovered. */
|
|
14
|
+
readonly insetTop: _angular_core.InputSignal<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the projected content goes `inert` while the scrim is up. On by
|
|
17
|
+
* default, because a scrim that only stops the POINTER is the bug this exists
|
|
18
|
+
* to prevent: focus walks straight under it, and a keyboard user activates a
|
|
19
|
+
* control the mouse cannot even reach.
|
|
20
|
+
*
|
|
21
|
+
* Turn it off only when the scrim covers part of the content (`insetTop`), and
|
|
22
|
+
* then mark the covered subtree `inert` yourself — a blanket flag would take
|
|
23
|
+
* the uncovered part with it. `ds-table` does exactly that: the scrim starts
|
|
24
|
+
* below the header, so sorting during a refresh stays possible.
|
|
25
|
+
*/
|
|
26
|
+
readonly inertContent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoadingOverlayComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoadingOverlayComponent, "ds-loading-overlay", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "blur": { "alias": "blur"; "required": false; "isSignal": true; }; "spinnerSize": { "alias": "spinnerSize"; "required": false; "isSignal": true; }; "insetTop": { "alias": "insetTop"; "required": false; "isSignal": true; }; "inertContent": { "alias": "inertContent"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { LoadingOverlayComponent };
|