@ids-group-ltd/ids-design-system 0.11.4 → 0.12.1
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 +373 -53
- 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 +293 -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 +248 -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 +63 -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-columns.mjs +440 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1593 -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 +549 -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 +333 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +65 -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 +75 -14267
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.10.2.json +1 -30
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -24
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +32 -6
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.12.1.json +215 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.5.0.json +0 -54
- package/migrations/0.5.1.json +3 -1
- package/migrations/0.7.0.json +0 -11
- package/migrations/0.7.1.json +2 -1
- package/migrations/0.9.0.json +22 -3
- package/migrations/0.9.1.json +1 -1
- package/package.json +597 -1
- package/styles/_check-box.scss +84 -0
- package/styles/_check-mark.scss +59 -0
- package/styles/_dropdown-overlay.scss +12 -2
- package/styles/_field-group-segment.scss +4 -1
- package/styles/_focus.scss +103 -50
- package/styles/_link.scss +4 -2
- package/styles/_tokens.scss +20 -0
- package/styles/_typography.scss +6 -0
- package/themes/README.md +4 -4
- package/themes/_semantic.scss +7 -8
- 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 +85 -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 +110 -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 +39 -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-columns.d.ts +43 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +815 -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 +436 -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 +75 -5594
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1,815 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, Signal, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Projects a custom cell template into <ds-table> for a specific column.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* <ds-table [data]="rows" [columns]="cols">
|
|
10
|
+
* <ng-template dsCellTemplate="product" let-row>
|
|
11
|
+
* <div>{{ asRule(row).product }}</div>
|
|
12
|
+
* </ng-template>
|
|
13
|
+
* </ds-table>
|
|
14
|
+
*
|
|
15
|
+
* The template context type is `unknown` because Angular cannot propagate
|
|
16
|
+
* the parent <ds-table>'s row type to projected templates. Consumers should
|
|
17
|
+
* narrow the row with a typed helper method on the host component.
|
|
18
|
+
*
|
|
19
|
+
* Context shape:
|
|
20
|
+
* - $implicit: the row object (typed `unknown`)
|
|
21
|
+
* - row: alias for the row object (typed `unknown`)
|
|
22
|
+
*/
|
|
23
|
+
declare class CellTemplateDirective {
|
|
24
|
+
/** The `key` of the column this template replaces, matched against the table's
|
|
25
|
+
* `columns`. A key no column declares renders nothing and warns nowhere. */
|
|
26
|
+
readonly dsCellTemplate: _angular_core.InputSignal<string>;
|
|
27
|
+
readonly template: TemplateRef<any>;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CellTemplateDirective, never>;
|
|
29
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CellTemplateDirective, "[dsCellTemplate]", never, { "dsCellTemplate": { "alias": "dsCellTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** What a projected header filter is handed. */
|
|
33
|
+
interface HeaderFilterContext {
|
|
34
|
+
/** The column being filtered. */
|
|
35
|
+
readonly $implicit: unknown;
|
|
36
|
+
/** Alias for the column. */
|
|
37
|
+
readonly column: unknown;
|
|
38
|
+
/** Dismisses the popover — call it after applying, so the filter behaves like
|
|
39
|
+
* the built-in checklist rather than staying open. */
|
|
40
|
+
readonly close: () => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Projects a custom filter into a `ds-table` header popover, for a criterion the
|
|
44
|
+
* built-in checklist cannot express: a date range, a numeric threshold, an async
|
|
45
|
+
* option list.
|
|
46
|
+
*
|
|
47
|
+
* ```html
|
|
48
|
+
* <ds-table [data]="rows" [columns]="cols">
|
|
49
|
+
* <ng-template
|
|
50
|
+
* dsHeaderFilter="opened"
|
|
51
|
+
* [active]="!!range()"
|
|
52
|
+
* let-close="close"
|
|
53
|
+
* >
|
|
54
|
+
* <ds-date-picker mode="range" [(value)]="range" />
|
|
55
|
+
* <ds-button size="sm" (pressed)="apply(); close()">Apply</ds-button>
|
|
56
|
+
* </ng-template>
|
|
57
|
+
* </ds-table>
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* The table still owns the header button, the popover and the active-filter
|
|
61
|
+
* styling — only the panel's contents change. It cannot know whether YOUR
|
|
62
|
+
* criterion is set, though, so `active` is how the highlight gets told; without
|
|
63
|
+
* it a custom filter renders but the header never marks itself filtered.
|
|
64
|
+
*
|
|
65
|
+
* The column is typed `unknown` for the same reason `dsCellTemplate`'s row is:
|
|
66
|
+
* Angular cannot propagate the parent table's row type into a projected
|
|
67
|
+
* template. Narrow it with a typed helper on the host.
|
|
68
|
+
*/
|
|
69
|
+
declare class HeaderFilterDirective {
|
|
70
|
+
/** Key of the column this filter belongs to. */
|
|
71
|
+
readonly dsHeaderFilter: _angular_core.InputSignal<string>;
|
|
72
|
+
/** Whether YOUR criterion is currently set, which drives the header's
|
|
73
|
+
* active-filter styling. */
|
|
74
|
+
readonly active: _angular_core.InputSignal<boolean>;
|
|
75
|
+
readonly template: TemplateRef<any>;
|
|
76
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderFilterDirective, never>;
|
|
77
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HeaderFilterDirective, "ng-template[dsHeaderFilter]", never, { "dsHeaderFilter": { "alias": "dsHeaderFilter"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Who applies the header filters.
|
|
82
|
+
*
|
|
83
|
+
* `'server'` (the default when unset) means the host does it: the table tracks
|
|
84
|
+
* `columnFilters` so a request can be driven from it, but runs no local pass —
|
|
85
|
+
* on a paged table a local pass would filter what the server already filtered,
|
|
86
|
+
* and paged is the normal case. `'client'` filters the rows in hand, for a table
|
|
87
|
+
* that holds every one of them. `'none'` drops the affordance,
|
|
88
|
+
* so a column left marked `filter: 'set'` renders no button rather than a
|
|
89
|
+
* control that does nothing.
|
|
90
|
+
*/
|
|
91
|
+
type TableFilterMode = 'client' | 'server' | 'none';
|
|
92
|
+
/**
|
|
93
|
+
* Who sorts a `ds-table`.
|
|
94
|
+
*
|
|
95
|
+
* - `'server'` (default) — the table only emits `sortChange`; the host reorders.
|
|
96
|
+
* - `'client'` — the table reorders `data()` itself, for a table holding every row.
|
|
97
|
+
* - `'none'` — nothing sorts, and `sortable` columns render no affordance rather
|
|
98
|
+
* than a control that does nothing.
|
|
99
|
+
*/
|
|
100
|
+
type TableSortMode = 'client' | 'server' | 'none';
|
|
101
|
+
/** `'single'` closes the open row when another is expanded; `'multiple'` (default)
|
|
102
|
+
* leaves every expanded row open. */
|
|
103
|
+
type TableExpandMode = 'multiple' | 'single';
|
|
104
|
+
|
|
105
|
+
interface TableColumn<T = unknown> {
|
|
106
|
+
key: string;
|
|
107
|
+
label: string;
|
|
108
|
+
/** Visually-hidden accessible header name — use when `label` is
|
|
109
|
+
* intentionally empty (e.g. an actions column). */
|
|
110
|
+
srLabel?: string;
|
|
111
|
+
sortable?: boolean;
|
|
112
|
+
/** Include the column in `filterQuery` matching. When no column is marked,
|
|
113
|
+
* every column matches. Works on `hidden` columns too. */
|
|
114
|
+
filterable?: boolean;
|
|
115
|
+
/** Adds a header filter menu. `'set'` lists the column's distinct values as
|
|
116
|
+
* a searchable checkbox list; a row passes when its value stays checked. */
|
|
117
|
+
filter?: 'set';
|
|
118
|
+
/** Ellipsis-clip long cell text at `width` (240px when unset) — full value
|
|
119
|
+
* in the title tooltip, and clicking a clipped cell opens it in a popover.
|
|
120
|
+
* Text cells only — template cells own their overflow. */
|
|
121
|
+
truncate?: boolean;
|
|
122
|
+
/** Column width in px — also the clip width for `truncate`.
|
|
123
|
+
*
|
|
124
|
+
* `'content'` instead sizes the column to its widest cell and stops it wrapping,
|
|
125
|
+
* leaving the remaining width to the columns that should absorb it. An
|
|
126
|
+
* auto-layout table spreads slack evenly, so a short column (a status, a count,
|
|
127
|
+
* an actions cell) ends up as wide as its own header while the name column that
|
|
128
|
+
* should take the slack does not. A pixel width cannot express that — pin one
|
|
129
|
+
* column and the rest still spread. Dragging the column's edge overrides it. */
|
|
130
|
+
width?: number | 'content';
|
|
131
|
+
align?: 'left' | 'right' | 'center';
|
|
132
|
+
cell?: (row: T) => string;
|
|
133
|
+
/** Sort this column by a DOMAIN value instead of the rendered text. Without
|
|
134
|
+
* it, client sorting compares what the cell displays, so `$1.2M / $840K / $95K`
|
|
135
|
+
* sorts by the leading character and `Oct 09, 2023 / Feb 27, 2024` sorts by
|
|
136
|
+
* month NAME — the table looks sorted and is not. Return the underlying
|
|
137
|
+
* number, `Date` or plain string; `null`/`undefined`/`''` counts as blank and
|
|
138
|
+
* sorts last in BOTH directions. Only affects sorting — the header filter
|
|
139
|
+
* still lists what the user can see. */
|
|
140
|
+
sortValue?: (row: T) => string | number | Date | null | undefined;
|
|
141
|
+
/** Double-click the cell to edit it inline; the committed value is emitted
|
|
142
|
+
* via the table's `cellEdited` output (the consumer owns the data update). */
|
|
143
|
+
editable?: boolean;
|
|
144
|
+
/** Let the user toggle the column in the header column picker. Needs the
|
|
145
|
+
* `dsTableColumns` directive on the table: that is what renders the picker,
|
|
146
|
+
* and without it this flag does nothing. */
|
|
147
|
+
hideable?: boolean;
|
|
148
|
+
/** Marks the cell whose TEXT tells the reader what the row opens, so it takes a link
|
|
149
|
+
* colour and underline while the row is hovered. Only has an effect on a
|
|
150
|
+
* `rowInteractive` table: on a passive one every hover treatment is suppressed on
|
|
151
|
+
* purpose, so a tint cannot promise a click that does not happen. Style it with
|
|
152
|
+
* `--ds-table-cell-link-color` / `--ds-table-cell-link-decoration`.
|
|
153
|
+
*
|
|
154
|
+
* Prefer `link` where the row leads somewhere: a tint appears only on hover, which
|
|
155
|
+
* a keyboard or touch user never sees. */
|
|
156
|
+
interactive?: boolean;
|
|
157
|
+
/** Renders this column's value as a real `<a>`, which is the accessible way to say
|
|
158
|
+
* a row leads somewhere: it is visible without hovering, lands in the tab order as
|
|
159
|
+
* a link rather than as a table row, and opens in a new tab on Ctrl/Cmd-click —
|
|
160
|
+
* none of which a clickable `<tr>` can offer.
|
|
161
|
+
*
|
|
162
|
+
* Return an Angular route target (a string, or the array form for dynamic
|
|
163
|
+
* segments); `null` / `undefined` leaves that row's cell as plain text, so a list
|
|
164
|
+
* where only some rows are reachable needs no second column. For an external URL,
|
|
165
|
+
* render the cell through a `[cell]` template instead — this takes route targets
|
|
166
|
+
* only, and the router is touched at all only once a column sets `link`.
|
|
167
|
+
*
|
|
168
|
+
* Composes with `rowInteractive`: the link stops its own click from reaching the
|
|
169
|
+
* row, so the row handler fires for the rest of the row and the link navigates
|
|
170
|
+
* once. Style it with the same `--ds-table-cell-link-*` tokens as `interactive`. */
|
|
171
|
+
link?: (row: T) => string | readonly unknown[] | null | undefined;
|
|
172
|
+
/** Initial visibility: start hidden. Needs the `dsTableColumns` directive on
|
|
173
|
+
* the table — visibility is its stage, so without it the column renders. The
|
|
174
|
+
* picker (or a bound `hiddenKeys` set) owns the state from then on; a hidden
|
|
175
|
+
* column stays available to `filterable` matching and sorting. */
|
|
176
|
+
hidden?: boolean;
|
|
177
|
+
}
|
|
178
|
+
type SortDir = 'asc' | 'desc' | null;
|
|
179
|
+
interface SortChangeEvent {
|
|
180
|
+
key: string;
|
|
181
|
+
dir: SortDir;
|
|
182
|
+
}
|
|
183
|
+
interface TableRowAction<T = unknown> {
|
|
184
|
+
/** Stable identifier — use it to branch in `rowActionSelected`. */
|
|
185
|
+
id: string;
|
|
186
|
+
label: string;
|
|
187
|
+
icon?: IconName;
|
|
188
|
+
/** Renders the item in the destructive style. */
|
|
189
|
+
error?: boolean;
|
|
190
|
+
/** Per-row predicate — return true to disable the item for that row. */
|
|
191
|
+
disabled?: (row: T) => boolean;
|
|
192
|
+
/** Per-row predicate — return true to leave the item OUT for that row. Use it
|
|
193
|
+
* where the action does not apply rather than `disabled`, which greys an item
|
|
194
|
+
* that is always there: a draft offers Edit + Launch and a live one Revert +
|
|
195
|
+
* Delete, so greying leaves every row with a permanently dead half. When every
|
|
196
|
+
* item of a row is hidden the kebab is not rendered at all, rather than opening
|
|
197
|
+
* an empty menu. */
|
|
198
|
+
hidden?: (row: T) => boolean;
|
|
199
|
+
/** Why the item is disabled, shown as the item's second line. Only read when
|
|
200
|
+
* `disabled` returns true for the row — a greyed item that does not say why is
|
|
201
|
+
* the same dead control as a greyed button. */
|
|
202
|
+
disabledReason?: string | ((row: T) => string);
|
|
203
|
+
}
|
|
204
|
+
interface TableRowActionEvent<T = unknown> {
|
|
205
|
+
action: TableRowAction<T>;
|
|
206
|
+
row: T;
|
|
207
|
+
}
|
|
208
|
+
interface TableCellEditEvent<T = unknown> {
|
|
209
|
+
row: T;
|
|
210
|
+
key: string;
|
|
211
|
+
value: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/** A stage in the column pipeline: ordering, hiding, widths. */
|
|
215
|
+
type DsTableColumnStage<T> = (columns: readonly TableColumn<T>[]) => readonly TableColumn<T>[];
|
|
216
|
+
/** A stage in the row pipeline: the set filters, ahead of the substring search. */
|
|
217
|
+
type DsTableRowStage<T> = (rows: readonly T[]) => readonly T[];
|
|
218
|
+
/**
|
|
219
|
+
* Where in the table a feature may put markup.
|
|
220
|
+
*
|
|
221
|
+
* Three, because the column picker needs three: a trigger in the utility header cell, and its
|
|
222
|
+
* popover and bottom sheet at the end of the host where an overlay belongs. One
|
|
223
|
+
* `ViewContainerRef` was enough for the export button and is not enough for anything else.
|
|
224
|
+
*/
|
|
225
|
+
type DsTableAnchor = 'toolbar' | 'header-utility' | 'overlays';
|
|
226
|
+
/** Everything a resize feature hands the table: the width it overrides, and the handlers the
|
|
227
|
+
* header's separator calls. The markup stays in the table because a directive has no view to
|
|
228
|
+
* declare it in, so the table needs somewhere to send the events. */
|
|
229
|
+
interface DsTableResizeContribution<T> {
|
|
230
|
+
readonly widthOverride: (key: string) => number | undefined;
|
|
231
|
+
readonly range: (column: TableColumn<T>) => {
|
|
232
|
+
now: number;
|
|
233
|
+
min: number;
|
|
234
|
+
max: number;
|
|
235
|
+
} | null;
|
|
236
|
+
readonly onStart: (column: TableColumn<T>, event: PointerEvent) => void;
|
|
237
|
+
readonly onMove: (event: PointerEvent) => void;
|
|
238
|
+
readonly onEnd: () => void;
|
|
239
|
+
readonly onFocus: (column: TableColumn<T>, event: FocusEvent) => void;
|
|
240
|
+
readonly onBlur: () => void;
|
|
241
|
+
readonly onKey: (column: TableColumn<T>, event: KeyboardEvent) => void;
|
|
242
|
+
readonly step: (column: TableColumn<T>, delta: number | 'auto') => void;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* What a feature is allowed to read back out of the table, and where it may put markup.
|
|
246
|
+
*
|
|
247
|
+
* A feature needs the table's derived state — the export serialises `visibleColumns` and
|
|
248
|
+
* `sortedRows` through `cellText`. Those live on the component as `protected`, which a directive
|
|
249
|
+
* cannot reach, so the contract is published here rather than by widening the component's surface:
|
|
250
|
+
* this way the table's public API does not grow one member per feature.
|
|
251
|
+
*/
|
|
252
|
+
interface DsTableView<T> {
|
|
253
|
+
/** As declared, before any feature reorders or hides. A feature that OWNS the order needs the
|
|
254
|
+
* unfolded list - reading `visibleColumns` would fold its own stage back in. */
|
|
255
|
+
readonly declaredColumns: Signal<readonly TableColumn<T>[]>;
|
|
256
|
+
readonly visibleColumns: Signal<readonly TableColumn<T>[]>;
|
|
257
|
+
readonly sortedRows: Signal<readonly T[]>;
|
|
258
|
+
readonly cellText: (row: T, column: TableColumn<T>) => string;
|
|
259
|
+
/** A directive cannot insert markup into another component's template, so a feature with a
|
|
260
|
+
* control of its own creates it in one of these. Undefined until the view exists. */
|
|
261
|
+
readonly anchor: (name: DsTableAnchor) => Signal<ViewContainerRef | undefined>;
|
|
262
|
+
/** The scroll container. A width ceiling has to be the viewport, and the header cells are
|
|
263
|
+
* looked up inside it. */
|
|
264
|
+
readonly scrollViewport: Signal<HTMLElement | undefined>;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* One named piece of the persisted column layout.
|
|
268
|
+
*
|
|
269
|
+
* The stored shape stays `{ order, widths, hidden }`, so a layout saved by an earlier version
|
|
270
|
+
* still restores — the key IS the JSON key. Persistence walks whatever is registered instead of
|
|
271
|
+
* naming the three inputs, which is what lets reorder, the picker and resize move out from under
|
|
272
|
+
* it without the storage code changing.
|
|
273
|
+
*/
|
|
274
|
+
interface DsTablePersistedSlice {
|
|
275
|
+
readonly key: string;
|
|
276
|
+
/** Serialisable. Read inside the caller's effect, so whatever it touches is tracked. */
|
|
277
|
+
readonly read: () => unknown;
|
|
278
|
+
readonly write: (value: unknown) => void;
|
|
279
|
+
/** Back to the declared layout. "Reset to default" has to reach every slice, and only the
|
|
280
|
+
* slice knows what its own default is. */
|
|
281
|
+
readonly reset: () => void;
|
|
282
|
+
}
|
|
283
|
+
/** What an export feature hands the table, so `runExport()` and `exporting()` stay public API
|
|
284
|
+
* while the implementation lives outside the component. */
|
|
285
|
+
interface DsTableExportContribution<T> {
|
|
286
|
+
readonly run: () => Promise<void>;
|
|
287
|
+
readonly csv: (filename?: string, rows?: readonly T[]) => void;
|
|
288
|
+
readonly exporting: Signal<boolean>;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* The seam an opt-in table feature writes into, so the table never names the feature.
|
|
292
|
+
*
|
|
293
|
+
* The ablation that priced this split (`docs/basic-advanced-split-audit.md` §9) kept hitting the
|
|
294
|
+
* same shape: the table owns a derived value and a feature wants to contribute to it —
|
|
295
|
+
* `visibleColumns` is the chain the column picker writes to, `filteredData` folds the set filters
|
|
296
|
+
* into the substring search, the live region folds in the export state. Moving methods out one at a
|
|
297
|
+
* time cannot express that; a registry of contributions can.
|
|
298
|
+
*
|
|
299
|
+
* @internal Not API. Provided by `ds-table` on itself, so a directive on the same element injects
|
|
300
|
+
* the instance it belongs to and two tables on one screen stay independent.
|
|
301
|
+
*/
|
|
302
|
+
declare class DsTableLayout<T = unknown> {
|
|
303
|
+
private readonly columnStages;
|
|
304
|
+
private readonly rowStages;
|
|
305
|
+
private readonly statusFragments;
|
|
306
|
+
/** Registered once, at the contributing directive's construction — never per change
|
|
307
|
+
* detection. A stage may read signals of its own: the fold runs inside the table's
|
|
308
|
+
* `computed`, so whatever the stage touches is tracked by that computed rather than by
|
|
309
|
+
* this service, which is what lets a feature stay reactive without the table knowing it
|
|
310
|
+
* exists. */
|
|
311
|
+
addColumnStage(stage: DsTableColumnStage<T>): void;
|
|
312
|
+
addRowStage(stage: DsTableRowStage<T>): void;
|
|
313
|
+
private readonly utilityColumnWanted;
|
|
314
|
+
/** The utility column carries the row-action kebab and the picker trigger. The table knows
|
|
315
|
+
* about the first and must be told about the second, or the cell it anchors into is never
|
|
316
|
+
* rendered and the feature has nowhere to go. */
|
|
317
|
+
requestUtilityColumn(): void;
|
|
318
|
+
wantsUtilityColumn(): boolean;
|
|
319
|
+
private readonly slices;
|
|
320
|
+
addPersistedSlice(slice: DsTablePersistedSlice): void;
|
|
321
|
+
persistedSlices(): readonly DsTablePersistedSlice[];
|
|
322
|
+
resetPersisted(): void;
|
|
323
|
+
private readonly rowTemplate;
|
|
324
|
+
/** A per-column control in the column panel, for a feature the panel must not name - resize
|
|
325
|
+
* puts its width buttons there. */
|
|
326
|
+
registerPanelRowTemplate(template: TemplateRef<{
|
|
327
|
+
$implicit: TableColumn<T>;
|
|
328
|
+
}>): void;
|
|
329
|
+
panelRowTemplate(): TemplateRef<{
|
|
330
|
+
$implicit: TableColumn<T>;
|
|
331
|
+
}> | null;
|
|
332
|
+
/** A line for the live region, folded in ahead of the table's own events. */
|
|
333
|
+
addStatusFragment(fragment: Signal<string>): void;
|
|
334
|
+
foldColumns(columns: readonly TableColumn<T>[]): readonly TableColumn<T>[];
|
|
335
|
+
foldRows(rows: readonly T[]): readonly T[];
|
|
336
|
+
/** Empty when nothing contributes, so the table's own message is unchanged. */
|
|
337
|
+
status(): string;
|
|
338
|
+
private published;
|
|
339
|
+
private readonly exportContribution;
|
|
340
|
+
/** Called by the table itself, before any directive can ask for it: a directive on the same
|
|
341
|
+
* element is constructed after the component that provides this service. */
|
|
342
|
+
publish(view: DsTableView<T>): void;
|
|
343
|
+
view(): DsTableView<T>;
|
|
344
|
+
/** The table keeps `runExport()` and `exporting()` as public API, because their docblocks
|
|
345
|
+
* promise a button outside the table can drive them. The implementation is the feature's, so
|
|
346
|
+
* the table asks here and can tell the difference between "no export directive" and "nothing
|
|
347
|
+
* to export" — which is the one silent failure this whole shape is prone to. */
|
|
348
|
+
setExport(contribution: DsTableExportContribution<T>): void;
|
|
349
|
+
runExport(): Promise<void> | null;
|
|
350
|
+
/** True when it ran, so the caller can tell "no feature" from "nothing to export". */
|
|
351
|
+
exportCsv(filename?: string, rows?: readonly T[]): boolean;
|
|
352
|
+
exporting(): boolean;
|
|
353
|
+
private readonly resizeContribution;
|
|
354
|
+
setResize(contribution: DsTableResizeContribution<T>): void;
|
|
355
|
+
/** Null when no resize feature is present, which is what the header's `@if` reads. */
|
|
356
|
+
resize(): DsTableResizeContribution<T> | null;
|
|
357
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsTableLayout<any>, never>;
|
|
358
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DsTableLayout<any>>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare class TableComponent<T extends object> {
|
|
362
|
+
/** Rows to render. */
|
|
363
|
+
readonly data: _angular_core.InputSignal<readonly T[]>;
|
|
364
|
+
/** Row identity used for tracking, selection, expansion and the active-row
|
|
365
|
+
* highlight. Defaults to `row.id`; pass an accessor for display-only data
|
|
366
|
+
* with no natural key (`[rowId]="row => row.channel + row.sentAt"`), which
|
|
367
|
+
* beats mapping synthetic ids into the data just to satisfy the table. */
|
|
368
|
+
readonly rowId: _angular_core.InputSignal<((row: T) => string) | null>;
|
|
369
|
+
/** Column definitions driving headers, cells and sorting. */
|
|
370
|
+
readonly columns: _angular_core.InputSignal<readonly TableColumn<T>[]>;
|
|
371
|
+
/** Adds a checkbox column for row/select-all selection. */
|
|
372
|
+
readonly selectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
373
|
+
/** Opt-in outer border + radius. Off by default so tables flush inside a
|
|
374
|
+
* `<ds-card padding="none">` don't double-border.
|
|
375
|
+
* When `true`, the scroll-wrap gets a `var(--border-default)` outline and
|
|
376
|
+
* `var(--radius-md)` radius — useful when the table stands alone in a padded card.
|
|
377
|
+
* Unset falls back to `DS_CONFIG.table.bordered`, then `false`. */
|
|
378
|
+
readonly bordered: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
379
|
+
/** false — no loading state.
|
|
380
|
+
* `true` — the table picks: skeleton rows while it has nothing to show, overlay
|
|
381
|
+
* once rows are on screen. Prefer it; the right choice is a function of the row
|
|
382
|
+
* count, which only the table holds.
|
|
383
|
+
* 'skeleton' — first-load placeholder; rows are replaced with shimmer rows.
|
|
384
|
+
* 'overlay' — re-fetch indicator; existing rows stay visible behind
|
|
385
|
+
* a translucent overlay with a centred spinner. Pin either one only to
|
|
386
|
+
* override the rule deliberately. */
|
|
387
|
+
readonly loading: _angular_core.InputSignal<boolean | "skeleton" | "overlay">;
|
|
388
|
+
/** The mode actually rendered. Skeletons replace what the reader is looking at and
|
|
389
|
+
* an overlay on an empty card says nothing, so `true` resolves per state rather
|
|
390
|
+
* than picking a favourite. */
|
|
391
|
+
protected readonly loadingMode: _angular_core.Signal<false | "skeleton" | "overlay">;
|
|
392
|
+
/** Keeps the header row pinned while the body scrolls. */
|
|
393
|
+
readonly stickyHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
394
|
+
/** Caps the scroll body height (any CSS length, e.g. `'320px'`) and scrolls it
|
|
395
|
+
* vertically — pair with `stickyHeader` for a self-contained scroll region.
|
|
396
|
+
* `null` (default) lets the table grow to its content. */
|
|
397
|
+
readonly maxHeight: _angular_core.InputSignal<string | null>;
|
|
398
|
+
/** Row density — `'compact'` tightens cell padding for spreadsheet-dense lists. */
|
|
399
|
+
readonly density: _angular_core.InputSignal<"default" | "compact">;
|
|
400
|
+
/** Tints odd rows for easier row-tracking across wide tables. */
|
|
401
|
+
readonly zebra: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
402
|
+
/** Animate the body height when the row set changes (page/filter) instead of
|
|
403
|
+
* snapping. Opt-in; instant under reduced-motion (the DS zeroes the token). */
|
|
404
|
+
readonly animateHeight: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
405
|
+
/** Two-way set of currently selected row ids. */
|
|
406
|
+
readonly selectedIds: _angular_core.ModelSignal<Set<string>>;
|
|
407
|
+
/** Column key currently sorted by; `null` when unsorted. Two-way bindable
|
|
408
|
+
* (`[(sortKey)]`) or one-way from your own state with `(sortChange)`. */
|
|
409
|
+
readonly sortKey: _angular_core.InputSignal<string | null>;
|
|
410
|
+
/** Emitted for `[(sortKey)]`. `sortChange` carries the same click with both
|
|
411
|
+
* halves at once, which is usually the one to listen to. */
|
|
412
|
+
readonly sortKeyChange: _angular_core.OutputEmitterRef<string | null>;
|
|
413
|
+
/** Sort direction for `sortKey`. */
|
|
414
|
+
readonly sortDir: _angular_core.InputSignal<SortDir>;
|
|
415
|
+
/** Emitted for `[(sortDir)]`. */
|
|
416
|
+
readonly sortDirChange: _angular_core.OutputEmitterRef<SortDir>;
|
|
417
|
+
/**
|
|
418
|
+
* What the header marks, and what a client sort reads.
|
|
419
|
+
*
|
|
420
|
+
* `linkedSignal` over BOTH inputs, not a `model`: Angular writes an input only
|
|
421
|
+
* when the bound expression changed, diffing against the value IT last wrote, and
|
|
422
|
+
* an internal `.set()` never updates that slot. Seeding from both means a host
|
|
423
|
+
* answering with its own default re-seeds the pair even when one half of that
|
|
424
|
+
* default equals what it last bound. A host that binds neither never re-seeds, so
|
|
425
|
+
* the optimistic state survives.
|
|
426
|
+
*/
|
|
427
|
+
private readonly sortState;
|
|
428
|
+
protected readonly activeSortKey: _angular_core.Signal<string | null>;
|
|
429
|
+
protected readonly activeSortDir: _angular_core.Signal<SortDir>;
|
|
430
|
+
/** Sort states a column cycles through on click. Default includes null
|
|
431
|
+
* (unsorted); pass ['asc','desc'] to forbid the unsorted state (e.g.
|
|
432
|
+
* server-paged lists). */
|
|
433
|
+
readonly sortingOrder: _angular_core.InputSignal<SortDir[]>;
|
|
434
|
+
/**
|
|
435
|
+
* Wording for the sort announcement, so it can be translated. Receives the
|
|
436
|
+
* column's label and the new direction; return an empty string to say nothing.
|
|
437
|
+
*/
|
|
438
|
+
readonly sortAnnouncement: _angular_core.InputSignal<(label: string, dir: SortDir) => string>;
|
|
439
|
+
/**
|
|
440
|
+
* Wording for the row-range announcement, so it can be translated. Receives
|
|
441
|
+
* the 1-based first and last row on screen and the total; return an empty
|
|
442
|
+
* string to say nothing.
|
|
443
|
+
*/
|
|
444
|
+
readonly rangeAnnouncement: _angular_core.InputSignal<(first: number, last: number, total: number) => string>;
|
|
445
|
+
/** Number of shimmer rows rendered while `loading` is `'skeleton'`. */
|
|
446
|
+
readonly skeletonRows: _angular_core.InputSignal<number>;
|
|
447
|
+
/** Accessible name for the table (rendered as a visually-hidden caption).
|
|
448
|
+
* Without it, screen-reader users get an unlabelled table. */
|
|
449
|
+
readonly caption: _angular_core.InputSignal<string>;
|
|
450
|
+
/** When true, each row becomes a keyboard-operable control (role=button,
|
|
451
|
+
* tabindex, Enter/Space → rowClicked) with an accessible name from the first
|
|
452
|
+
* column. Off by default so non-navigating tables don't advertise a false
|
|
453
|
+
* click affordance. Also the gate for the hover/pressed row tints. */
|
|
454
|
+
readonly rowInteractive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
455
|
+
/** Id of the row rendered as current (highlight + `aria-current`) — e.g. the
|
|
456
|
+
* row whose detail drawer or side panel is open. `null` — none. */
|
|
457
|
+
readonly activeRowId: _angular_core.InputSignal<string | null>;
|
|
458
|
+
/** Client-side row filter — case-insensitive substring match against cell
|
|
459
|
+
* text. Columns with `filterable: true` restrict the match set (none
|
|
460
|
+
* marked — every column matches, hidden ones included). '' — no filtering. */
|
|
461
|
+
readonly filterQuery: _angular_core.InputSignal<string>;
|
|
462
|
+
/** Two-way per-column set-filters: column key → the still-checked values.
|
|
463
|
+
* A column absent from the map (or with every value checked) is unfiltered. */
|
|
464
|
+
readonly columnFilters: _angular_core.ModelSignal<Map<string, ReadonlySet<string>>>;
|
|
465
|
+
/** Round-trip whatever the column features persist (order, widths, hidden keys) through
|
|
466
|
+
* `localStorage`, so a reader's column layout survives a reload. Needs
|
|
467
|
+
* `storageKey` — without one there is nothing to key a screen by, and two
|
|
468
|
+
* tables would overwrite each other. Off by default. */
|
|
469
|
+
readonly persistLayout: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
470
|
+
/** Screen id the persisted layout is stored under. Pick something stable per
|
|
471
|
+
* table, not per route instance. */
|
|
472
|
+
readonly storageKey: _angular_core.InputSignal<string>;
|
|
473
|
+
/** True while an export is in flight. Public so a button OUTSIDE the table can show the same
|
|
474
|
+
* state as the built-in one. `false` when no export directive is present. */
|
|
475
|
+
readonly exporting: _angular_core.Signal<boolean>;
|
|
476
|
+
/** Keeps the horizontal scrollbar reachable on tall tables: the scroll
|
|
477
|
+
* container's native bar is hidden and a proxy stuck to the bottom of the
|
|
478
|
+
* nearest scroll ancestor mirrors it both ways. Off by default. Unset falls
|
|
479
|
+
* back to `DS_CONFIG.table.stickyScrollbar`, then `false`. */
|
|
480
|
+
readonly stickyScrollbar: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
481
|
+
/** Rows per page. `null` (default) disables pagination — all rows render. */
|
|
482
|
+
readonly pageSize: _angular_core.ModelSignal<number | null>;
|
|
483
|
+
/** Current 1-based page. Only meaningful when `pageSize()` is set. */
|
|
484
|
+
readonly page: _angular_core.ModelSignal<number>;
|
|
485
|
+
/** Selectable page-size choices shown in the pagination control. */
|
|
486
|
+
readonly pageSizeOptions: _angular_core.InputSignal<number[]>;
|
|
487
|
+
/** Shows the page-size picker in the footer pager. Set false for a table whose
|
|
488
|
+
* page size is fixed — the standalone `ds-pagination` has always taken this. */
|
|
489
|
+
readonly showPageSize: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
490
|
+
/** Shows the "N of M" range label in the footer pager. */
|
|
491
|
+
readonly showLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
492
|
+
/** Server-side total row count. `null` (default) = client paging: the table
|
|
493
|
+
* slices `data()` itself and the pager counts the rows in hand. When set, the
|
|
494
|
+
* host has already sliced to one page — the pager uses this count and the
|
|
495
|
+
* table renders `data()` as-is (no internal slice). */
|
|
496
|
+
readonly total: _angular_core.InputSignal<number | null>;
|
|
497
|
+
/** Scroll the table into view on a page change (opt-in) — keeps a bottom
|
|
498
|
+
* pager from leaving the viewport on the previous page's last rows. */
|
|
499
|
+
readonly scrollToTopOnPageChange: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
500
|
+
/** Who sorts — see `TableSortMode`. Unset resolves to `'server'`: the table
|
|
501
|
+
* emits `(sortChange)` and reorders nothing, which is what a paged table
|
|
502
|
+
* needs. Declare `'client'` when the table holds every row, or `'none'` to
|
|
503
|
+
* drop the affordance entirely. */
|
|
504
|
+
readonly sortMode: _angular_core.InputSignal<TableSortMode | null>;
|
|
505
|
+
/** Who filters — see `TableFilterMode`. Unset resolves to `'server'`: the
|
|
506
|
+
* table tracks the selection in `columnFilters` for the host to turn into a
|
|
507
|
+
* request, and runs no local pass. Declare `'client'` when the table holds
|
|
508
|
+
* every row and should filter them itself. */
|
|
509
|
+
readonly filterMode: _angular_core.InputSignal<TableFilterMode | null>;
|
|
510
|
+
/**
|
|
511
|
+
* The full value domain per column key, for a header filter the table cannot
|
|
512
|
+
* derive itself. Without it the checklist is built from the rows in hand,
|
|
513
|
+
* which on a server-paged table offers only the values that happen to be on
|
|
514
|
+
* the current page.
|
|
515
|
+
*/
|
|
516
|
+
readonly columnFilterOptions: _angular_core.InputSignal<ReadonlyMap<string, readonly string[]>>;
|
|
517
|
+
protected readonly filterModeResolved: _angular_core.Signal<TableFilterMode>;
|
|
518
|
+
protected readonly sortModeResolved: _angular_core.Signal<TableSortMode>;
|
|
519
|
+
readonly borderedResolved: _angular_core.Signal<boolean>;
|
|
520
|
+
readonly stickyScrollbarResolved: _angular_core.Signal<boolean>;
|
|
521
|
+
/** Pin the first data column (and the select column) on horizontal scroll. */
|
|
522
|
+
readonly stickyFirstColumn: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
523
|
+
/**
|
|
524
|
+
* Render only the rows in view, padding the rest with two spacer rows. Opt-in,
|
|
525
|
+
* and it needs `maxHeight` — without a bounded scroller there is no viewport to
|
|
526
|
+
* window against, so nothing is virtualized (dev-warned).
|
|
527
|
+
*
|
|
528
|
+
* Every row must be the same height, which is `virtualRowSize`: the arithmetic
|
|
529
|
+
* that decides what is in view has no other way to know where a row starts. So
|
|
530
|
+
* virtual mode forces `table-layout: fixed` and single-line cells, and the
|
|
531
|
+
* expansion panel is suppressed — a row that can grow breaks the maths.
|
|
532
|
+
*/
|
|
533
|
+
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
534
|
+
/** Row height in px in virtual mode. Must match what the rows actually
|
|
535
|
+
* measure, so it drives the CSS height rather than merely describing it. */
|
|
536
|
+
readonly virtualRowSize: _angular_core.InputSignal<number>;
|
|
537
|
+
/**
|
|
538
|
+
* Fetch rows as they scroll into view instead of receiving them all.
|
|
539
|
+
*
|
|
540
|
+
* `data` becomes a SPARSE array `total` long: put each fetched row at its
|
|
541
|
+
* absolute index and leave the rest empty. Every gap inside the window
|
|
542
|
+
* renders a skeleton row, and `(lazyLoad)` asks for the range covering it.
|
|
543
|
+
*
|
|
544
|
+
* Needs `virtualScroll` — without a window there is nothing to load
|
|
545
|
+
* lazily AGAINST — and `total`, which is what the scrollbar is sized from.
|
|
546
|
+
*/
|
|
547
|
+
readonly lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
548
|
+
/** The range now on screen that `data` has gaps in — fetch it and write the
|
|
549
|
+
* rows back at their absolute indices. Re-emits only when the range moves. */
|
|
550
|
+
readonly lazyLoad: _angular_core.OutputEmitterRef<{
|
|
551
|
+
first: number;
|
|
552
|
+
rows: number;
|
|
553
|
+
}>;
|
|
554
|
+
/** Fires with the row on click (or Enter/Space when `rowInteractive`). */
|
|
555
|
+
readonly rowClicked: _angular_core.OutputEmitterRef<T>;
|
|
556
|
+
/** Fires whenever sort key/direction changes, in every `sortMode` but `'none'`. */
|
|
557
|
+
readonly sortChange: _angular_core.OutputEmitterRef<SortChangeEvent>;
|
|
558
|
+
/** Row-action menu items rendered as a trailing kebab (⋮) column.
|
|
559
|
+
* Empty (default) — no column. Menu clicks never trigger `rowClicked`. */
|
|
560
|
+
readonly rowActions: _angular_core.InputSignal<readonly TableRowAction<T>[]>;
|
|
561
|
+
/** Fires with the chosen action and its row when a kebab menu item is selected. */
|
|
562
|
+
readonly rowActionSelected: _angular_core.OutputEmitterRef<TableRowActionEvent<T>>;
|
|
563
|
+
/** Fires when an `editable` cell is committed (Enter or blur) with the new value. */
|
|
564
|
+
readonly cellEdited: _angular_core.OutputEmitterRef<TableCellEditEvent<T>>;
|
|
565
|
+
/** Cell templates supplied as an explicit map instead of (or in addition to)
|
|
566
|
+
* projected `dsCellTemplate` directives. Lets a wrapper component collect
|
|
567
|
+
* the directives itself and pass them down, since content projected through
|
|
568
|
+
* a wrapper's `<ng-content>` is not seen by this component's content query.
|
|
569
|
+
* Entries here override projected ones. */
|
|
570
|
+
readonly cellTemplateMap: _angular_core.InputSignal<Record<string, TemplateRef<{
|
|
571
|
+
$implicit: unknown;
|
|
572
|
+
row: unknown;
|
|
573
|
+
}>>>;
|
|
574
|
+
/** Empty-state template, as an alternative to the `[empty]` content slot —
|
|
575
|
+
* again for wrappers that can't rely on slot re-projection. */
|
|
576
|
+
readonly emptyTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
577
|
+
/** When true, each row renders a leading chevron button that toggles an
|
|
578
|
+
* inline expansion panel below it. */
|
|
579
|
+
readonly expandableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
580
|
+
/** Two-way set of currently expanded row ids. */
|
|
581
|
+
readonly expandedIds: _angular_core.ModelSignal<Set<string>>;
|
|
582
|
+
/** `'single'` collapses the open row when another expander is clicked.
|
|
583
|
+
* Enforced on interaction only: a set seeded with several ids is left alone
|
|
584
|
+
* (and warned about in dev) rather than silently rewritten under the host. */
|
|
585
|
+
readonly expandMode: _angular_core.InputSignal<TableExpandMode>;
|
|
586
|
+
/** Renders an expand-all/collapse-all chevron in the expander column header,
|
|
587
|
+
* page-scoped when paginating, like select-all. Suppressed under
|
|
588
|
+
* `expandMode="single"`, which it would contradict. */
|
|
589
|
+
readonly expandAllToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
590
|
+
/** Fires with the row when an expander opens it — including each row opened
|
|
591
|
+
* by expand-all, so a host lazy-loading panel content sees every one. */
|
|
592
|
+
readonly rowExpanded: _angular_core.OutputEmitterRef<T>;
|
|
593
|
+
/** Fires with the row when an expander closes it, the row auto-closed by
|
|
594
|
+
* `expandMode="single"` included. It carries a row, so it cannot speak for an
|
|
595
|
+
* id whose row is no longer in `data()` — under server-side paging that id is
|
|
596
|
+
* cleared silently. `expandedIds` is the complete signal; this one is the
|
|
597
|
+
* convenient one. */
|
|
598
|
+
readonly rowCollapsed: _angular_core.OutputEmitterRef<T>;
|
|
599
|
+
/** Template rendered inside an expanded row's panel.
|
|
600
|
+
* Context: `$implicit` = row, `row` = row. */
|
|
601
|
+
readonly rowExpandTemplate: _angular_core.InputSignal<TemplateRef<{
|
|
602
|
+
$implicit: unknown;
|
|
603
|
+
row: unknown;
|
|
604
|
+
}> | null>;
|
|
605
|
+
protected readonly cellTemplateDirectives: _angular_core.Signal<readonly CellTemplateDirective[]>;
|
|
606
|
+
protected readonly cellTemplates: _angular_core.Signal<Record<string, TemplateRef<{
|
|
607
|
+
$implicit: unknown;
|
|
608
|
+
row: unknown;
|
|
609
|
+
}>>>;
|
|
610
|
+
protected cellTemplate(col: TableColumn<T>): TemplateRef<{
|
|
611
|
+
$implicit: unknown;
|
|
612
|
+
row: unknown;
|
|
613
|
+
}> | null;
|
|
614
|
+
protected readonly tableClasses: _angular_core.Signal<string>;
|
|
615
|
+
protected readonly isSkeletonLoading: _angular_core.Signal<boolean>;
|
|
616
|
+
protected readonly isOverlayLoading: _angular_core.Signal<boolean>;
|
|
617
|
+
/** The empty row is a CLAIM about the data — "there are none" — so it must not
|
|
618
|
+
* appear while the table is still asking, in EITHER loading mode. `overlay` is
|
|
619
|
+
* what a list uses on every read after the first, so suppressing only under
|
|
620
|
+
* `skeleton` paints "No rows yet" under the spinner on a zero-row reload. */
|
|
621
|
+
protected readonly showsEmptyRow: _angular_core.Signal<boolean>;
|
|
622
|
+
protected readonly layout: DsTableLayout<T>;
|
|
623
|
+
private readonly toolbarAnchor;
|
|
624
|
+
private readonly headerUtilityAnchor;
|
|
625
|
+
private readonly overlaysAnchor;
|
|
626
|
+
private readonly columnWidthControls;
|
|
627
|
+
protected readonly visibleColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
628
|
+
/** `'content'` is not a pixel value — it is carried by a class instead, see `fitsContent`. */
|
|
629
|
+
protected columnWidth(col: TableColumn<T>): number | null;
|
|
630
|
+
/** Shrink-to-content mode, unless the reader has dragged this column — a drag is a deliberate
|
|
631
|
+
* pixel width and must win over the declared intent. */
|
|
632
|
+
protected fitsContent(col: TableColumn<T>): boolean;
|
|
633
|
+
protected readonly hasUtilityColumn: _angular_core.Signal<boolean>;
|
|
634
|
+
private readonly columnFilterPopover;
|
|
635
|
+
/** The column whose filter menu is open — drives the distinct-value list. */
|
|
636
|
+
protected readonly filterColumn: _angular_core.WritableSignal<TableColumn<T> | null>;
|
|
637
|
+
protected readonly filterSearch: _angular_core.WritableSignal<string>;
|
|
638
|
+
private readonly headerFilters;
|
|
639
|
+
private readonly headerFilterByKey;
|
|
640
|
+
protected headerFilterFor(col: TableColumn<T>): HeaderFilterDirective | undefined;
|
|
641
|
+
protected hasColumnFilter(col: TableColumn<T>): boolean;
|
|
642
|
+
protected isColumnFiltered(col: TableColumn<T>): boolean;
|
|
643
|
+
private optionsFor;
|
|
644
|
+
protected readonly filterValues: _angular_core.Signal<readonly string[]>;
|
|
645
|
+
protected readonly filterSelectedCount: _angular_core.Signal<number>;
|
|
646
|
+
protected isFilterValueChecked(value: string): boolean;
|
|
647
|
+
protected onColumnFilterClick(col: TableColumn<T>, event: Event): void;
|
|
648
|
+
protected onFilterSearch(event: Event): void;
|
|
649
|
+
protected toggleFilterValue(value: string): void;
|
|
650
|
+
protected headerFilterContext(col: TableColumn<T>): {
|
|
651
|
+
$implicit: unknown;
|
|
652
|
+
column: unknown;
|
|
653
|
+
close: () => void;
|
|
654
|
+
};
|
|
655
|
+
protected clearColumnFilter(): void;
|
|
656
|
+
private readonly injector;
|
|
657
|
+
private readonly destroyRef;
|
|
658
|
+
private readonly editInput;
|
|
659
|
+
protected readonly editingCell: _angular_core.WritableSignal<{
|
|
660
|
+
rowId: string;
|
|
661
|
+
key: string;
|
|
662
|
+
} | null>;
|
|
663
|
+
protected readonly editDraft: _angular_core.WritableSignal<string>;
|
|
664
|
+
protected isEditing(row: T, col: TableColumn<T>): boolean;
|
|
665
|
+
protected startEdit(row: T, col: TableColumn<T>, event: Event): void;
|
|
666
|
+
protected onEditInput(event: Event): void;
|
|
667
|
+
protected commitEdit(row: T, col: TableColumn<T>): void;
|
|
668
|
+
protected cancelEdit(): void;
|
|
669
|
+
/** Clip width for `truncate`. `'content'` has no clip width — the column is as
|
|
670
|
+
* wide as its widest cell, so there is nothing to ellipsis against. */
|
|
671
|
+
protected clipWidth(col: TableColumn<T>): number | null;
|
|
672
|
+
protected readonly filteredData: _angular_core.Signal<readonly T[]>;
|
|
673
|
+
protected readonly sortedData: _angular_core.Signal<readonly T[]>;
|
|
674
|
+
protected readonly pagedData: _angular_core.Signal<readonly T[]>;
|
|
675
|
+
/** Virtual mode windows this further; `rowSlots` is what the loop walks. */
|
|
676
|
+
protected readonly displayData: _angular_core.Signal<readonly T[]>;
|
|
677
|
+
/**
|
|
678
|
+
* The single live-region line. Loading wins while it lasts — a sort
|
|
679
|
+
* announcement over rows that are being replaced tells the reader about a
|
|
680
|
+
* state they cannot inspect yet.
|
|
681
|
+
*
|
|
682
|
+
* `aria-live="polite"` does not announce a region's INITIAL content, so the
|
|
683
|
+
* unsorted first render is silent; only real changes speak.
|
|
684
|
+
*/
|
|
685
|
+
protected readonly statusMessage: _angular_core.Signal<string>;
|
|
686
|
+
private readonly eventMessages;
|
|
687
|
+
/** Only from two rows up: a single expander announces itself through its own
|
|
688
|
+
* `aria-expanded`, and repeating that here would say everything twice. */
|
|
689
|
+
private readonly expansionMessage;
|
|
690
|
+
private readonly sortMessage;
|
|
691
|
+
private readonly rangeMessage;
|
|
692
|
+
/** Virtual mode needs a bounded scroller to window against. */
|
|
693
|
+
protected readonly virtualizing: _angular_core.Signal<boolean>;
|
|
694
|
+
/** Drives the CSS row height from the same number the arithmetic uses, so the
|
|
695
|
+
* two cannot drift — which would make every offset progressively wrong. */
|
|
696
|
+
protected readonly virtualRowHeight: _angular_core.Signal<string>;
|
|
697
|
+
/** How many rows the scroller spans. Lazy counts the rows that EXIST, not the
|
|
698
|
+
* ones that have arrived — otherwise the spacers shrink to the loaded slice
|
|
699
|
+
* and the scrollbar lies about the length of the list. */
|
|
700
|
+
protected readonly virtualCount: _angular_core.Signal<number>;
|
|
701
|
+
protected readonly virtualWindow: _angular_core.Signal<{
|
|
702
|
+
start: number;
|
|
703
|
+
end: number;
|
|
704
|
+
padTop: number;
|
|
705
|
+
padBottom: number;
|
|
706
|
+
} | null>;
|
|
707
|
+
/**
|
|
708
|
+
* What the row loop walks: each slot carries its ABSOLUTE index, and a `null`
|
|
709
|
+
* row is a gap the host has not filled yet.
|
|
710
|
+
*
|
|
711
|
+
* Absolute rather than loop-relative because everything downstream needs it —
|
|
712
|
+
* striping parity, the skeleton's width seed, and the range `(lazyLoad)` asks
|
|
713
|
+
* for. Outside lazy mode every slot is filled, so the extra object per visible
|
|
714
|
+
* row buys uniformity for the ~25 rows windowing keeps in the DOM.
|
|
715
|
+
*/
|
|
716
|
+
protected readonly rowSlots: _angular_core.Signal<readonly {
|
|
717
|
+
row: T | null;
|
|
718
|
+
index: number;
|
|
719
|
+
}[]>;
|
|
720
|
+
/** Zebra striping cannot come from `:nth-child` while windowing — the parity
|
|
721
|
+
* of a rendered row depends on its ABSOLUTE index, and the spacer rows are
|
|
722
|
+
* children too. Matches `:nth-child(odd)`, which is 1-based. */
|
|
723
|
+
protected isStriped(absoluteIndex: number): boolean;
|
|
724
|
+
protected readonly allSelected: _angular_core.Signal<boolean>;
|
|
725
|
+
protected readonly someSelected: _angular_core.Signal<boolean>;
|
|
726
|
+
protected readonly anySelected: _angular_core.Signal<boolean>;
|
|
727
|
+
protected readonly selectAllLabel: _angular_core.Signal<"Select all rows on this page" | "Select all rows">;
|
|
728
|
+
protected readonly allExpanded: _angular_core.Signal<boolean>;
|
|
729
|
+
protected readonly expandAllVisible: _angular_core.Signal<boolean>;
|
|
730
|
+
protected readonly expandAllLabel: _angular_core.Signal<string>;
|
|
731
|
+
protected readonly skeletonArray: _angular_core.Signal<any[]>;
|
|
732
|
+
protected readonly expandedColspan: _angular_core.Signal<number>;
|
|
733
|
+
protected readonly hasRowActions: _angular_core.Signal<boolean>;
|
|
734
|
+
protected readonly menuRow: _angular_core.WritableSignal<T | null>;
|
|
735
|
+
private readonly rowMenuPopover;
|
|
736
|
+
private readonly columnPickerPopover;
|
|
737
|
+
protected readonly hasTruncate: _angular_core.Signal<boolean>;
|
|
738
|
+
private readonly cellTextPopover;
|
|
739
|
+
protected readonly cellPopoverText: _angular_core.WritableSignal<string>;
|
|
740
|
+
protected onCellClipClick(row: T, col: TableColumn<T>, event: Event): void;
|
|
741
|
+
/** Clipped horizontally — itself or anything it renders. A `dsCellTemplate`
|
|
742
|
+
* puts the ellipsis on a descendant, so testing only the wrapper misses it. */
|
|
743
|
+
private static isClipped;
|
|
744
|
+
/**
|
|
745
|
+
* A header narrowed by resizing clips its own label, and the label is the only
|
|
746
|
+
* thing naming the column — so the full text has to stay reachable. Set on
|
|
747
|
+
* enter rather than always, because a `title` on every header would fire a
|
|
748
|
+
* tooltip on hover for text that is perfectly readable.
|
|
749
|
+
*/
|
|
750
|
+
protected onHeaderEnter(event: Event, col: TableColumn<T>): void;
|
|
751
|
+
private readonly scrollWrap;
|
|
752
|
+
private readonly hscrollProxy;
|
|
753
|
+
private readonly tableHead;
|
|
754
|
+
private readonly hostElement;
|
|
755
|
+
protected readonly hscrollContentWidth: _angular_core.WritableSignal<number>;
|
|
756
|
+
protected readonly hscrollNeeded: _angular_core.WritableSignal<boolean>;
|
|
757
|
+
private readonly scrollTop;
|
|
758
|
+
private readonly viewportHeight;
|
|
759
|
+
private lastLazyRequest;
|
|
760
|
+
constructor();
|
|
761
|
+
private parseDurationMs;
|
|
762
|
+
protected onRowMenuClick(row: T, event: Event): void;
|
|
763
|
+
protected isMenuOpenFor(row: T): boolean;
|
|
764
|
+
protected isActionDisabled(action: TableRowAction<T>): boolean;
|
|
765
|
+
/** Items that apply to `row`. Called from the trigger's own gate as well as the
|
|
766
|
+
* menu, so a row with nothing applicable shows no kebab instead of an empty one. */
|
|
767
|
+
protected actionsFor(row: T): readonly TableRowAction<T>[];
|
|
768
|
+
protected hasActionsFor(row: T): boolean;
|
|
769
|
+
protected readonly visibleRowActions: _angular_core.Signal<readonly TableRowAction<T>[]>;
|
|
770
|
+
/** Empty unless the item is actually disabled for this row: a reason on a live
|
|
771
|
+
* item would read as a caveat on something that works. */
|
|
772
|
+
protected actionReason(action: TableRowAction<T>): string;
|
|
773
|
+
protected onRowAction(action: TableRowAction<T>): void;
|
|
774
|
+
protected isExpanded(row: T): boolean;
|
|
775
|
+
protected onToggleExpand(row: T, event: Event): void;
|
|
776
|
+
protected onToggleExpandAll(): void;
|
|
777
|
+
protected isSelected(row: T): boolean;
|
|
778
|
+
protected onToggleAll(event: Event): void;
|
|
779
|
+
protected onToggleRow(row: T, event: Event): void;
|
|
780
|
+
private selectionBeforeGesture;
|
|
781
|
+
protected onRowMousedown(): void;
|
|
782
|
+
protected onRowClick(row: T, event: Event): void;
|
|
783
|
+
protected onRowKey(row: T, event: Event): void;
|
|
784
|
+
protected rowAriaLabel(row: T): string;
|
|
785
|
+
/** Row identity — the `rowId` accessor when given, else `row.id`. Public so a
|
|
786
|
+
* host reading `selectedIds`/`expandedIds` can compute the same keys. */
|
|
787
|
+
rowKey(row: T): string;
|
|
788
|
+
protected sortableCol(col: TableColumn<T>): boolean;
|
|
789
|
+
protected ariaSort(col: TableColumn<T>): 'ascending' | 'descending' | 'none' | null;
|
|
790
|
+
protected onSort(col: TableColumn<T>): void;
|
|
791
|
+
protected headerClasses(col: TableColumn<T>): string;
|
|
792
|
+
protected sortIcon(col: TableColumn<T>): 'sortAsc' | 'sortDesc' | 'sort';
|
|
793
|
+
protected cellValue(row: T, col: TableColumn<T>): string;
|
|
794
|
+
protected cellLink(row: T, col: TableColumn<T>): string | readonly unknown[] | null;
|
|
795
|
+
private layoutKey;
|
|
796
|
+
private layoutRestored;
|
|
797
|
+
private restoreLayout;
|
|
798
|
+
private saveLayout;
|
|
799
|
+
/** Serialises the visible columns as a CSV download, through whichever export feature is on the
|
|
800
|
+
* table. Pass `rows` to serialise a set you fetched yourself. Needs `dsTableExport`. */
|
|
801
|
+
exportCsv(filename?: string, rows?: readonly T[]): void;
|
|
802
|
+
/** Runs the export: awaits the feature's `exportFetcher` when one is given, downloads the
|
|
803
|
+
* result, drives `exporting()` and emits its `exportFailed`. Public so the button can live
|
|
804
|
+
* anywhere: `<ds-button [loading]="table.exporting()" (pressed)="table.runExport()">`. */
|
|
805
|
+
runExport(): Promise<void>;
|
|
806
|
+
private warnNoExport;
|
|
807
|
+
/** Deterministic per-cell width so skeleton rows look organic but stable
|
|
808
|
+
* across re-renders. */
|
|
809
|
+
protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
|
|
810
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
811
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDir": { "alias": "sortDir"; "required": false; "isSignal": true; }; "sortingOrder": { "alias": "sortingOrder"; "required": false; "isSignal": true; }; "sortAnnouncement": { "alias": "sortAnnouncement"; "required": false; "isSignal": true; }; "rangeAnnouncement": { "alias": "rangeAnnouncement"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "columnFilterOptions": { "alias": "columnFilterOptions"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualRowSize": { "alias": "virtualRowSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandMode": { "alias": "expandMode"; "required": false; "isSignal": true; }; "expandAllToggle": { "alias": "expandAllToggle"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKeyChange": "sortKeyChange"; "sortDirChange": "sortDirChange"; "columnFilters": "columnFiltersChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "lazyLoad": "lazyLoad"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["cellTemplateDirectives", "headerFilters"], ["[toolbar]", "[empty]", "[bulk-actions]"], true, never>;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export { CellTemplateDirective, DsTableLayout, HeaderFilterDirective, TableComponent };
|
|
815
|
+
export type { DsTableColumnStage, DsTableExportContribution, DsTableRowStage, DsTableView, HeaderFilterContext, SortChangeEvent, SortDir, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
|