@ids-group-ltd/ids-design-system 0.11.4 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -3
- package/components/README.md +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14267
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -1
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +7 -1
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.7.1.json +2 -1
- package/package.json +573 -1
- package/themes/README.md +4 -4
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
- package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +72 -5594
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
4
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Projects a custom cell template into <ds-table> for a specific column.
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* <ds-table [data]="rows" [columns]="cols">
|
|
11
|
+
* <ng-template dsCellTemplate="product" let-row>
|
|
12
|
+
* <div>{{ asRule(row).product }}</div>
|
|
13
|
+
* </ng-template>
|
|
14
|
+
* </ds-table>
|
|
15
|
+
*
|
|
16
|
+
* The template context type is `unknown` because Angular cannot propagate
|
|
17
|
+
* the parent <ds-table>'s row type to projected templates. Consumers should
|
|
18
|
+
* narrow the row with a typed helper method on the host component.
|
|
19
|
+
*
|
|
20
|
+
* Context shape:
|
|
21
|
+
* - $implicit: the row object (typed `unknown`)
|
|
22
|
+
* - row: alias for the row object (typed `unknown`)
|
|
23
|
+
*/
|
|
24
|
+
declare class CellTemplateDirective {
|
|
25
|
+
/** The `key` of the column this template replaces, matched against the table's
|
|
26
|
+
* `columns`. A key no column declares renders nothing and warns nowhere. */
|
|
27
|
+
readonly dsCellTemplate: _angular_core.InputSignal<string>;
|
|
28
|
+
readonly template: TemplateRef<any>;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CellTemplateDirective, never>;
|
|
30
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CellTemplateDirective, "[dsCellTemplate]", never, { "dsCellTemplate": { "alias": "dsCellTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** What a projected header filter is handed. */
|
|
34
|
+
interface HeaderFilterContext {
|
|
35
|
+
/** The column being filtered. */
|
|
36
|
+
readonly $implicit: unknown;
|
|
37
|
+
/** Alias for the column. */
|
|
38
|
+
readonly column: unknown;
|
|
39
|
+
/** Dismisses the popover — call it after applying, so the filter behaves like
|
|
40
|
+
* the built-in checklist rather than staying open. */
|
|
41
|
+
readonly close: () => void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Projects a custom filter into a `ds-table` header popover, for a criterion the
|
|
45
|
+
* built-in checklist cannot express: a date range, a numeric threshold, an async
|
|
46
|
+
* option list.
|
|
47
|
+
*
|
|
48
|
+
* ```html
|
|
49
|
+
* <ds-table [data]="rows" [columns]="cols">
|
|
50
|
+
* <ng-template
|
|
51
|
+
* dsHeaderFilter="opened"
|
|
52
|
+
* [active]="!!range()"
|
|
53
|
+
* let-close="close"
|
|
54
|
+
* >
|
|
55
|
+
* <ds-date-picker mode="range" [(value)]="range" />
|
|
56
|
+
* <ds-button size="sm" (pressed)="apply(); close()">Apply</ds-button>
|
|
57
|
+
* </ng-template>
|
|
58
|
+
* </ds-table>
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* The table still owns the header button, the popover and the active-filter
|
|
62
|
+
* styling — only the panel's contents change. It cannot know whether YOUR
|
|
63
|
+
* criterion is set, though, so `active` is how the highlight gets told; without
|
|
64
|
+
* it a custom filter renders but the header never marks itself filtered.
|
|
65
|
+
*
|
|
66
|
+
* The column is typed `unknown` for the same reason `dsCellTemplate`'s row is:
|
|
67
|
+
* Angular cannot propagate the parent table's row type into a projected
|
|
68
|
+
* template. Narrow it with a typed helper on the host.
|
|
69
|
+
*/
|
|
70
|
+
declare class HeaderFilterDirective {
|
|
71
|
+
/** Key of the column this filter belongs to. */
|
|
72
|
+
readonly dsHeaderFilter: _angular_core.InputSignal<string>;
|
|
73
|
+
/** Whether YOUR criterion is currently set, which drives the header's
|
|
74
|
+
* active-filter styling. */
|
|
75
|
+
readonly active: _angular_core.InputSignal<boolean>;
|
|
76
|
+
readonly template: TemplateRef<any>;
|
|
77
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderFilterDirective, never>;
|
|
78
|
+
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>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Who applies the header filters.
|
|
83
|
+
*
|
|
84
|
+
* `'server'` (the default when unset) means the host does it: the table tracks
|
|
85
|
+
* `columnFilters` so a request can be driven from it, but runs no local pass —
|
|
86
|
+
* on a paged table a local pass would filter what the server already filtered,
|
|
87
|
+
* and paged is the normal case. `'client'` filters the rows in hand, for a table
|
|
88
|
+
* that holds every one of them. `'none'` drops the affordance,
|
|
89
|
+
* so a column left marked `filter: 'set'` renders no button rather than a
|
|
90
|
+
* control that does nothing.
|
|
91
|
+
*/
|
|
92
|
+
type TableFilterMode = 'client' | 'server' | 'none';
|
|
93
|
+
/**
|
|
94
|
+
* Who sorts a `ds-table`.
|
|
95
|
+
*
|
|
96
|
+
* - `'server'` (default) — the table only emits `sortChange`; the host reorders.
|
|
97
|
+
* - `'client'` — the table reorders `data()` itself, for a table holding every row.
|
|
98
|
+
* - `'none'` — nothing sorts, and `sortable` columns render no affordance rather
|
|
99
|
+
* than a control that does nothing.
|
|
100
|
+
*/
|
|
101
|
+
type TableSortMode = 'client' | 'server' | 'none';
|
|
102
|
+
/** `'single'` closes the open row when another is expanded; `'multiple'` (default)
|
|
103
|
+
* leaves every expanded row open. */
|
|
104
|
+
type TableExpandMode = 'multiple' | 'single';
|
|
105
|
+
|
|
106
|
+
interface TableColumn<T = unknown> {
|
|
107
|
+
key: string;
|
|
108
|
+
label: string;
|
|
109
|
+
/** Visually-hidden accessible header name — use when `label` is
|
|
110
|
+
* intentionally empty (e.g. an actions column). */
|
|
111
|
+
srLabel?: string;
|
|
112
|
+
sortable?: boolean;
|
|
113
|
+
/** Include the column in `filterQuery` matching. When no column is marked,
|
|
114
|
+
* every column matches. Works on `hidden` columns too. */
|
|
115
|
+
filterable?: boolean;
|
|
116
|
+
/** Adds a header filter menu. `'set'` lists the column's distinct values as
|
|
117
|
+
* a searchable checkbox list; a row passes when its value stays checked. */
|
|
118
|
+
filter?: 'set';
|
|
119
|
+
/** Ellipsis-clip long cell text at `width` (240px when unset) — full value
|
|
120
|
+
* in the title tooltip, and clicking a clipped cell opens it in a popover.
|
|
121
|
+
* Text cells only — template cells own their overflow. */
|
|
122
|
+
truncate?: boolean;
|
|
123
|
+
/** Column width in px — also the clip width for `truncate`.
|
|
124
|
+
*
|
|
125
|
+
* `'content'` instead sizes the column to its widest cell and stops it wrapping,
|
|
126
|
+
* leaving the remaining width to the columns that should absorb it. An
|
|
127
|
+
* auto-layout table spreads slack evenly, so a short column (a status, a count,
|
|
128
|
+
* an actions cell) ends up as wide as its own header while the name column that
|
|
129
|
+
* should take the slack does not. A pixel width cannot express that — pin one
|
|
130
|
+
* column and the rest still spread. Dragging the column's edge overrides it. */
|
|
131
|
+
width?: number | 'content';
|
|
132
|
+
align?: 'left' | 'right' | 'center';
|
|
133
|
+
cell?: (row: T) => string;
|
|
134
|
+
/** Sort this column by a DOMAIN value instead of the rendered text. Without
|
|
135
|
+
* it, client sorting compares what the cell displays, so `$1.2M / $840K / $95K`
|
|
136
|
+
* sorts by the leading character and `Oct 09, 2023 / Feb 27, 2024` sorts by
|
|
137
|
+
* month NAME — the table looks sorted and is not. Return the underlying
|
|
138
|
+
* number, `Date` or plain string; `null`/`undefined`/`''` counts as blank and
|
|
139
|
+
* sorts last in BOTH directions. Only affects sorting — the header filter
|
|
140
|
+
* still lists what the user can see. */
|
|
141
|
+
sortValue?: (row: T) => string | number | Date | null | undefined;
|
|
142
|
+
/** Double-click the cell to edit it inline; the committed value is emitted
|
|
143
|
+
* via the table's `cellEdited` output (the consumer owns the data update). */
|
|
144
|
+
editable?: boolean;
|
|
145
|
+
/** Let the user toggle the column in the header column picker — the picker
|
|
146
|
+
* button appears once at least one column is hideable. */
|
|
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. The column picker (or a bound
|
|
173
|
+
* `hiddenKeys` set) owns the state from then on; a hidden column stays
|
|
174
|
+
* available to `filterable` matching and sorting. */
|
|
175
|
+
hidden?: boolean;
|
|
176
|
+
}
|
|
177
|
+
type SortDir = 'asc' | 'desc' | null;
|
|
178
|
+
interface SortChangeEvent {
|
|
179
|
+
key: string;
|
|
180
|
+
dir: SortDir;
|
|
181
|
+
}
|
|
182
|
+
interface TableRowAction<T = unknown> {
|
|
183
|
+
/** Stable identifier — use it to branch in `rowActionSelected`. */
|
|
184
|
+
id: string;
|
|
185
|
+
label: string;
|
|
186
|
+
icon?: IconName;
|
|
187
|
+
/** Renders the item in the destructive style. */
|
|
188
|
+
error?: boolean;
|
|
189
|
+
/** Per-row predicate — return true to disable the item for that row. */
|
|
190
|
+
disabled?: (row: T) => boolean;
|
|
191
|
+
/** Per-row predicate — return true to leave the item OUT for that row. Use it
|
|
192
|
+
* where the action does not apply rather than `disabled`, which greys an item
|
|
193
|
+
* that is always there: a draft offers Edit + Launch and a live one Revert +
|
|
194
|
+
* Delete, so greying leaves every row with a permanently dead half. When every
|
|
195
|
+
* item of a row is hidden the kebab is not rendered at all, rather than opening
|
|
196
|
+
* an empty menu. */
|
|
197
|
+
hidden?: (row: T) => boolean;
|
|
198
|
+
/** Why the item is disabled, shown as the item's second line. Only read when
|
|
199
|
+
* `disabled` returns true for the row — a greyed item that does not say why is
|
|
200
|
+
* the same dead control as a greyed button. */
|
|
201
|
+
disabledReason?: string | ((row: T) => string);
|
|
202
|
+
}
|
|
203
|
+
interface TableRowActionEvent<T = unknown> {
|
|
204
|
+
action: TableRowAction<T>;
|
|
205
|
+
row: T;
|
|
206
|
+
}
|
|
207
|
+
interface TableCellEditEvent<T = unknown> {
|
|
208
|
+
row: T;
|
|
209
|
+
key: string;
|
|
210
|
+
value: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare class TableComponent<T extends object> {
|
|
214
|
+
/** Rows to render. */
|
|
215
|
+
readonly data: _angular_core.InputSignal<readonly T[]>;
|
|
216
|
+
/** Row identity used for tracking, selection, expansion and the active-row
|
|
217
|
+
* highlight. Defaults to `row.id`; pass an accessor for display-only data
|
|
218
|
+
* with no natural key (`[rowId]="row => row.channel + row.sentAt"`), which
|
|
219
|
+
* beats mapping synthetic ids into the data just to satisfy the table. */
|
|
220
|
+
readonly rowId: _angular_core.InputSignal<((row: T) => string) | null>;
|
|
221
|
+
/** Column definitions driving headers, cells and sorting. */
|
|
222
|
+
readonly columns: _angular_core.InputSignal<readonly TableColumn<T>[]>;
|
|
223
|
+
/** Adds a checkbox column for row/select-all selection. */
|
|
224
|
+
readonly selectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
225
|
+
/** Opt-in outer border + radius. Off by default so tables flush inside a
|
|
226
|
+
* `<ds-card padding="none">` don't double-border.
|
|
227
|
+
* When `true`, the scroll-wrap gets a `var(--border-default)` outline and
|
|
228
|
+
* `var(--radius-md)` radius — useful when the table stands alone in a padded card.
|
|
229
|
+
* Unset falls back to `DS_CONFIG.table.bordered`, then `false`. */
|
|
230
|
+
readonly bordered: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
231
|
+
/** false — no loading state.
|
|
232
|
+
* `true` — the table picks: skeleton rows while it has nothing to show, overlay
|
|
233
|
+
* once rows are on screen. Prefer it; the right choice is a function of the row
|
|
234
|
+
* count, which only the table holds.
|
|
235
|
+
* 'skeleton' — first-load placeholder; rows are replaced with shimmer rows.
|
|
236
|
+
* 'overlay' — re-fetch indicator; existing rows stay visible behind
|
|
237
|
+
* a translucent overlay with a centred spinner. Pin either one only to
|
|
238
|
+
* override the rule deliberately. */
|
|
239
|
+
readonly loading: _angular_core.InputSignal<boolean | "skeleton" | "overlay">;
|
|
240
|
+
/** The mode actually rendered. Skeletons replace what the reader is looking at and
|
|
241
|
+
* an overlay on an empty card says nothing, so `true` resolves per state rather
|
|
242
|
+
* than picking a favourite. */
|
|
243
|
+
protected readonly loadingMode: _angular_core.Signal<false | "skeleton" | "overlay">;
|
|
244
|
+
/** Keeps the header row pinned while the body scrolls. */
|
|
245
|
+
readonly stickyHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
246
|
+
/** Caps the scroll body height (any CSS length, e.g. `'320px'`) and scrolls it
|
|
247
|
+
* vertically — pair with `stickyHeader` for a self-contained scroll region.
|
|
248
|
+
* `null` (default) lets the table grow to its content. */
|
|
249
|
+
readonly maxHeight: _angular_core.InputSignal<string | null>;
|
|
250
|
+
/** Row density — `'compact'` tightens cell padding for spreadsheet-dense lists. */
|
|
251
|
+
readonly density: _angular_core.InputSignal<"default" | "compact">;
|
|
252
|
+
/** Tints odd rows for easier row-tracking across wide tables. */
|
|
253
|
+
readonly zebra: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
254
|
+
/** Animate the body height when the row set changes (page/filter) instead of
|
|
255
|
+
* snapping. Opt-in; instant under reduced-motion (the DS zeroes the token). */
|
|
256
|
+
readonly animateHeight: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
257
|
+
/** Two-way set of currently selected row ids. */
|
|
258
|
+
readonly selectedIds: _angular_core.ModelSignal<Set<string>>;
|
|
259
|
+
/** Column key currently sorted by; `null` when unsorted. Two-way bindable
|
|
260
|
+
* (`[(sortKey)]`) or one-way from your own state with `(sortChange)`. */
|
|
261
|
+
readonly sortKey: _angular_core.InputSignal<string | null>;
|
|
262
|
+
/** Emitted for `[(sortKey)]`. `sortChange` carries the same click with both
|
|
263
|
+
* halves at once, which is usually the one to listen to. */
|
|
264
|
+
readonly sortKeyChange: _angular_core.OutputEmitterRef<string | null>;
|
|
265
|
+
/** Sort direction for `sortKey`. */
|
|
266
|
+
readonly sortDir: _angular_core.InputSignal<SortDir>;
|
|
267
|
+
/** Emitted for `[(sortDir)]`. */
|
|
268
|
+
readonly sortDirChange: _angular_core.OutputEmitterRef<SortDir>;
|
|
269
|
+
/**
|
|
270
|
+
* What the header marks, and what a client sort reads.
|
|
271
|
+
*
|
|
272
|
+
* `linkedSignal` over BOTH inputs, not a `model`: Angular writes an input only
|
|
273
|
+
* when the bound expression changed, diffing against the value IT last wrote, and
|
|
274
|
+
* an internal `.set()` never updates that slot. Seeding from both means a host
|
|
275
|
+
* answering with its own default re-seeds the pair even when one half of that
|
|
276
|
+
* default equals what it last bound. A host that binds neither never re-seeds, so
|
|
277
|
+
* the optimistic state survives.
|
|
278
|
+
*/
|
|
279
|
+
private readonly sortState;
|
|
280
|
+
protected readonly activeSortKey: _angular_core.Signal<string | null>;
|
|
281
|
+
protected readonly activeSortDir: _angular_core.Signal<SortDir>;
|
|
282
|
+
/** Sort states a column cycles through on click. Default includes null
|
|
283
|
+
* (unsorted); pass ['asc','desc'] to forbid the unsorted state (e.g.
|
|
284
|
+
* server-paged lists). */
|
|
285
|
+
readonly sortingOrder: _angular_core.InputSignal<SortDir[]>;
|
|
286
|
+
/**
|
|
287
|
+
* Wording for the sort announcement, so it can be translated. Receives the
|
|
288
|
+
* column's label and the new direction; return an empty string to say nothing.
|
|
289
|
+
*/
|
|
290
|
+
readonly sortAnnouncement: _angular_core.InputSignal<(label: string, dir: SortDir) => string>;
|
|
291
|
+
/**
|
|
292
|
+
* Wording for the row-range announcement, so it can be translated. Receives
|
|
293
|
+
* the 1-based first and last row on screen and the total; return an empty
|
|
294
|
+
* string to say nothing.
|
|
295
|
+
*/
|
|
296
|
+
readonly rangeAnnouncement: _angular_core.InputSignal<(first: number, last: number, total: number) => string>;
|
|
297
|
+
/** Number of shimmer rows rendered while `loading` is `'skeleton'`. */
|
|
298
|
+
readonly skeletonRows: _angular_core.InputSignal<number>;
|
|
299
|
+
/** Accessible name for the table (rendered as a visually-hidden caption).
|
|
300
|
+
* Without it, screen-reader users get an unlabelled table. */
|
|
301
|
+
readonly caption: _angular_core.InputSignal<string>;
|
|
302
|
+
/** When true, each row becomes a keyboard-operable control (role=button,
|
|
303
|
+
* tabindex, Enter/Space → rowClicked) with an accessible name from the first
|
|
304
|
+
* column. Off by default so non-navigating tables don't advertise a false
|
|
305
|
+
* click affordance. Also the gate for the hover/pressed row tints. */
|
|
306
|
+
readonly rowInteractive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
307
|
+
/** Id of the row rendered as current (highlight + `aria-current`) — e.g. the
|
|
308
|
+
* row whose detail drawer or side panel is open. `null` — none. */
|
|
309
|
+
readonly activeRowId: _angular_core.InputSignal<string | null>;
|
|
310
|
+
/** Client-side row filter — case-insensitive substring match against cell
|
|
311
|
+
* text. Columns with `filterable: true` restrict the match set (none
|
|
312
|
+
* marked — every column matches, hidden ones included). '' — no filtering. */
|
|
313
|
+
readonly filterQuery: _angular_core.InputSignal<string>;
|
|
314
|
+
/** Two-way per-column set-filters: column key → the still-checked values.
|
|
315
|
+
* A column absent from the map (or with every value checked) is unfiltered. */
|
|
316
|
+
readonly columnFilters: _angular_core.ModelSignal<Map<string, ReadonlySet<string>>>;
|
|
317
|
+
/** Two-way set of hidden column keys. `null` (default) derives the set from
|
|
318
|
+
* each column's `hidden` flag; the column picker then owns it. Binding a
|
|
319
|
+
* Set takes over — `hidden` flags are ignored. */
|
|
320
|
+
readonly hiddenKeys: _angular_core.ModelSignal<Set<string> | null>;
|
|
321
|
+
/** Enables drag-to-resize handles on each column header. */
|
|
322
|
+
readonly resizableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
323
|
+
/** Two-way per-column pixel width overrides (keyed by column key), set by
|
|
324
|
+
* dragging a resize handle. Seeded from `column.width` where unset. */
|
|
325
|
+
readonly columnWidths: _angular_core.ModelSignal<Map<string, number>>;
|
|
326
|
+
/** Enables drag + up/down reordering in the column panel. */
|
|
327
|
+
readonly reorderableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
328
|
+
/** Two-way column order as a list of keys. `null` (default) keeps declaration
|
|
329
|
+
* order; the column panel owns it once the user reorders. Keys absent from
|
|
330
|
+
* the list fall back to declaration order after the listed ones. */
|
|
331
|
+
readonly columnOrder: _angular_core.ModelSignal<string[] | null>;
|
|
332
|
+
/** Round-trip `columnOrder`, `columnWidths` and `hiddenKeys` through
|
|
333
|
+
* `localStorage`, so a reader's column layout survives a reload. Needs
|
|
334
|
+
* `storageKey` — without one there is nothing to key a screen by, and two
|
|
335
|
+
* tables would overwrite each other. Off by default. */
|
|
336
|
+
readonly persistLayout: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
337
|
+
/** Screen id the persisted layout is stored under. Pick something stable per
|
|
338
|
+
* table, not per route instance. */
|
|
339
|
+
readonly storageKey: _angular_core.InputSignal<string>;
|
|
340
|
+
/** Render an export button in the table's toolbar row. Off by default. Leave it
|
|
341
|
+
* off and drive `runExport()` from your own button — in a page header, a filter
|
|
342
|
+
* bar, the `[toolbar]` slot — reading `exporting()` for its loading state. */
|
|
343
|
+
readonly exportButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
344
|
+
/** Filename the export button downloads as. */
|
|
345
|
+
readonly exportFilename: _angular_core.InputSignal<string>;
|
|
346
|
+
/**
|
|
347
|
+
* Where the export button gets its data. A server-paged table only HAS the
|
|
348
|
+
* current page, so exporting without this silently exports one page.
|
|
349
|
+
*
|
|
350
|
+
* Return ROWS and the table serializes them the same way it serializes its
|
|
351
|
+
* own. Return a `Blob` (or a URL string) and the table just downloads it —
|
|
352
|
+
* which is what you want when the backend already formatted the file with its
|
|
353
|
+
* own number formats, its own columns, or a sheet the table never held.
|
|
354
|
+
*/
|
|
355
|
+
readonly exportFetcher: _angular_core.InputSignal<(() => Promise<readonly T[] | Blob | string>) | null>;
|
|
356
|
+
/** Fires when `exportFetcher` rejects. Without it a failed export is silent —
|
|
357
|
+
* the button simply re-enables and no file arrives. */
|
|
358
|
+
readonly exportFailed: _angular_core.OutputEmitterRef<unknown>;
|
|
359
|
+
private readonly exportingState;
|
|
360
|
+
/** True while `exportFetcher` is in flight. Public so a button OUTSIDE the table
|
|
361
|
+
* can show the same in-flight state as the built-in one. */
|
|
362
|
+
readonly exporting: _angular_core.Signal<boolean>;
|
|
363
|
+
private readonly exportStatusState;
|
|
364
|
+
private readonly eventsAtExport;
|
|
365
|
+
/** Announced in the table's live region while an export is running or after it
|
|
366
|
+
* failed, so the button's own disabled state is not the only signal. */
|
|
367
|
+
readonly exportStatus: _angular_core.Signal<string>;
|
|
368
|
+
/** Keeps the horizontal scrollbar reachable on tall tables: the scroll
|
|
369
|
+
* container's native bar is hidden and a proxy stuck to the bottom of the
|
|
370
|
+
* nearest scroll ancestor mirrors it both ways. Off by default. Unset falls
|
|
371
|
+
* back to `DS_CONFIG.table.stickyScrollbar`, then `false`. */
|
|
372
|
+
readonly stickyScrollbar: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
373
|
+
/** Rows per page. `null` (default) disables pagination — all rows render. */
|
|
374
|
+
readonly pageSize: _angular_core.ModelSignal<number | null>;
|
|
375
|
+
/** Current 1-based page. Only meaningful when `pageSize()` is set. */
|
|
376
|
+
readonly page: _angular_core.ModelSignal<number>;
|
|
377
|
+
/** Selectable page-size choices shown in the pagination control. */
|
|
378
|
+
readonly pageSizeOptions: _angular_core.InputSignal<number[]>;
|
|
379
|
+
/** Shows the page-size picker in the footer pager. Set false for a table whose
|
|
380
|
+
* page size is fixed — the standalone `ds-pagination` has always taken this. */
|
|
381
|
+
readonly showPageSize: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
382
|
+
/** Shows the "N of M" range label in the footer pager. */
|
|
383
|
+
readonly showLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
384
|
+
/** Server-side total row count. `null` (default) = client paging: the table
|
|
385
|
+
* slices `data()` itself and the pager counts the rows in hand. When set, the
|
|
386
|
+
* host has already sliced to one page — the pager uses this count and the
|
|
387
|
+
* table renders `data()` as-is (no internal slice). */
|
|
388
|
+
readonly total: _angular_core.InputSignal<number | null>;
|
|
389
|
+
/** Scroll the table into view on a page change (opt-in) — keeps a bottom
|
|
390
|
+
* pager from leaving the viewport on the previous page's last rows. */
|
|
391
|
+
readonly scrollToTopOnPageChange: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
392
|
+
/** Who sorts — see `TableSortMode`. Unset resolves to `'server'`: the table
|
|
393
|
+
* emits `(sortChange)` and reorders nothing, which is what a paged table
|
|
394
|
+
* needs. Declare `'client'` when the table holds every row, or `'none'` to
|
|
395
|
+
* drop the affordance entirely. */
|
|
396
|
+
readonly sortMode: _angular_core.InputSignal<TableSortMode | null>;
|
|
397
|
+
/** Who filters — see `TableFilterMode`. Unset resolves to `'server'`: the
|
|
398
|
+
* table tracks the selection in `columnFilters` for the host to turn into a
|
|
399
|
+
* request, and runs no local pass. Declare `'client'` when the table holds
|
|
400
|
+
* every row and should filter them itself. */
|
|
401
|
+
readonly filterMode: _angular_core.InputSignal<TableFilterMode | null>;
|
|
402
|
+
/**
|
|
403
|
+
* The full value domain per column key, for a header filter the table cannot
|
|
404
|
+
* derive itself. Without it the checklist is built from the rows in hand,
|
|
405
|
+
* which on a server-paged table offers only the values that happen to be on
|
|
406
|
+
* the current page.
|
|
407
|
+
*/
|
|
408
|
+
readonly columnFilterOptions: _angular_core.InputSignal<ReadonlyMap<string, readonly string[]>>;
|
|
409
|
+
protected readonly filterModeResolved: _angular_core.Signal<TableFilterMode>;
|
|
410
|
+
protected readonly sortModeResolved: _angular_core.Signal<TableSortMode>;
|
|
411
|
+
readonly borderedResolved: _angular_core.Signal<boolean>;
|
|
412
|
+
readonly stickyScrollbarResolved: _angular_core.Signal<boolean>;
|
|
413
|
+
/** Pin the first data column (and the select column) on horizontal scroll. */
|
|
414
|
+
readonly stickyFirstColumn: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
415
|
+
/**
|
|
416
|
+
* Render only the rows in view, padding the rest with two spacer rows. Opt-in,
|
|
417
|
+
* and it needs `maxHeight` — without a bounded scroller there is no viewport to
|
|
418
|
+
* window against, so nothing is virtualized (dev-warned).
|
|
419
|
+
*
|
|
420
|
+
* Every row must be the same height, which is `virtualRowSize`: the arithmetic
|
|
421
|
+
* that decides what is in view has no other way to know where a row starts. So
|
|
422
|
+
* virtual mode forces `table-layout: fixed` and single-line cells, and the
|
|
423
|
+
* expansion panel is suppressed — a row that can grow breaks the maths.
|
|
424
|
+
*/
|
|
425
|
+
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
426
|
+
/** Row height in px in virtual mode. Must match what the rows actually
|
|
427
|
+
* measure, so it drives the CSS height rather than merely describing it. */
|
|
428
|
+
readonly virtualRowSize: _angular_core.InputSignal<number>;
|
|
429
|
+
/**
|
|
430
|
+
* Fetch rows as they scroll into view instead of receiving them all.
|
|
431
|
+
*
|
|
432
|
+
* `data` becomes a SPARSE array `total` long: put each fetched row at its
|
|
433
|
+
* absolute index and leave the rest empty. Every gap inside the window
|
|
434
|
+
* renders a skeleton row, and `(lazyLoad)` asks for the range covering it.
|
|
435
|
+
*
|
|
436
|
+
* Needs `virtualScroll` — without a window there is nothing to load
|
|
437
|
+
* lazily AGAINST — and `total`, which is what the scrollbar is sized from.
|
|
438
|
+
*/
|
|
439
|
+
readonly lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
440
|
+
/** The range now on screen that `data` has gaps in — fetch it and write the
|
|
441
|
+
* rows back at their absolute indices. Re-emits only when the range moves. */
|
|
442
|
+
readonly lazyLoad: _angular_core.OutputEmitterRef<{
|
|
443
|
+
first: number;
|
|
444
|
+
rows: number;
|
|
445
|
+
}>;
|
|
446
|
+
/** Fires with the row on click (or Enter/Space when `rowInteractive`). */
|
|
447
|
+
readonly rowClicked: _angular_core.OutputEmitterRef<T>;
|
|
448
|
+
/** Fires whenever sort key/direction changes, in every `sortMode` but `'none'`. */
|
|
449
|
+
readonly sortChange: _angular_core.OutputEmitterRef<SortChangeEvent>;
|
|
450
|
+
/** Row-action menu items rendered as a trailing kebab (⋮) column.
|
|
451
|
+
* Empty (default) — no column. Menu clicks never trigger `rowClicked`. */
|
|
452
|
+
readonly rowActions: _angular_core.InputSignal<readonly TableRowAction<T>[]>;
|
|
453
|
+
/** Fires with the chosen action and its row when a kebab menu item is selected. */
|
|
454
|
+
readonly rowActionSelected: _angular_core.OutputEmitterRef<TableRowActionEvent<T>>;
|
|
455
|
+
/** Fires when an `editable` cell is committed (Enter or blur) with the new value. */
|
|
456
|
+
readonly cellEdited: _angular_core.OutputEmitterRef<TableCellEditEvent<T>>;
|
|
457
|
+
/** Cell templates supplied as an explicit map instead of (or in addition to)
|
|
458
|
+
* projected `dsCellTemplate` directives. Lets a wrapper component collect
|
|
459
|
+
* the directives itself and pass them down, since content projected through
|
|
460
|
+
* a wrapper's `<ng-content>` is not seen by this component's content query.
|
|
461
|
+
* Entries here override projected ones. */
|
|
462
|
+
readonly cellTemplateMap: _angular_core.InputSignal<Record<string, TemplateRef<{
|
|
463
|
+
$implicit: unknown;
|
|
464
|
+
row: unknown;
|
|
465
|
+
}>>>;
|
|
466
|
+
/** Empty-state template, as an alternative to the `[empty]` content slot —
|
|
467
|
+
* again for wrappers that can't rely on slot re-projection. */
|
|
468
|
+
readonly emptyTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
469
|
+
/** When true, each row renders a leading chevron button that toggles an
|
|
470
|
+
* inline expansion panel below it. */
|
|
471
|
+
readonly expandableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
472
|
+
/** Two-way set of currently expanded row ids. */
|
|
473
|
+
readonly expandedIds: _angular_core.ModelSignal<Set<string>>;
|
|
474
|
+
/** `'single'` collapses the open row when another expander is clicked.
|
|
475
|
+
* Enforced on interaction only: a set seeded with several ids is left alone
|
|
476
|
+
* (and warned about in dev) rather than silently rewritten under the host. */
|
|
477
|
+
readonly expandMode: _angular_core.InputSignal<TableExpandMode>;
|
|
478
|
+
/** Renders an expand-all/collapse-all chevron in the expander column header,
|
|
479
|
+
* page-scoped when paginating, like select-all. Suppressed under
|
|
480
|
+
* `expandMode="single"`, which it would contradict. */
|
|
481
|
+
readonly expandAllToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
482
|
+
/** Fires with the row when an expander opens it — including each row opened
|
|
483
|
+
* by expand-all, so a host lazy-loading panel content sees every one. */
|
|
484
|
+
readonly rowExpanded: _angular_core.OutputEmitterRef<T>;
|
|
485
|
+
/** Fires with the row when an expander closes it, the row auto-closed by
|
|
486
|
+
* `expandMode="single"` included. It carries a row, so it cannot speak for an
|
|
487
|
+
* id whose row is no longer in `data()` — under server-side paging that id is
|
|
488
|
+
* cleared silently. `expandedIds` is the complete signal; this one is the
|
|
489
|
+
* convenient one. */
|
|
490
|
+
readonly rowCollapsed: _angular_core.OutputEmitterRef<T>;
|
|
491
|
+
/** Template rendered inside an expanded row's panel.
|
|
492
|
+
* Context: `$implicit` = row, `row` = row. */
|
|
493
|
+
readonly rowExpandTemplate: _angular_core.InputSignal<TemplateRef<{
|
|
494
|
+
$implicit: unknown;
|
|
495
|
+
row: unknown;
|
|
496
|
+
}> | null>;
|
|
497
|
+
protected readonly cellTemplateDirectives: _angular_core.Signal<readonly CellTemplateDirective[]>;
|
|
498
|
+
protected readonly cellTemplates: _angular_core.Signal<Record<string, TemplateRef<{
|
|
499
|
+
$implicit: unknown;
|
|
500
|
+
row: unknown;
|
|
501
|
+
}>>>;
|
|
502
|
+
protected cellTemplate(col: TableColumn<T>): TemplateRef<{
|
|
503
|
+
$implicit: unknown;
|
|
504
|
+
row: unknown;
|
|
505
|
+
}> | null;
|
|
506
|
+
protected readonly tableClasses: _angular_core.Signal<string>;
|
|
507
|
+
protected readonly isSkeletonLoading: _angular_core.Signal<boolean>;
|
|
508
|
+
protected readonly isOverlayLoading: _angular_core.Signal<boolean>;
|
|
509
|
+
/** The empty row is a CLAIM about the data — "there are none" — so it must not
|
|
510
|
+
* appear while the table is still asking, in EITHER loading mode. `overlay` is
|
|
511
|
+
* what a list uses on every read after the first, so suppressing only under
|
|
512
|
+
* `skeleton` paints "No rows yet" under the spinner on a zero-row reload. */
|
|
513
|
+
protected readonly showsEmptyRow: _angular_core.Signal<boolean>;
|
|
514
|
+
protected readonly effectiveHiddenKeys: _angular_core.Signal<ReadonlySet<string>>;
|
|
515
|
+
protected readonly orderedColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
516
|
+
protected readonly visibleColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
517
|
+
protected readonly hideableColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
518
|
+
protected readonly hasColumnPicker: _angular_core.Signal<boolean>;
|
|
519
|
+
protected readonly hasUtilityColumn: _angular_core.Signal<boolean>;
|
|
520
|
+
protected isColumnVisible(col: TableColumn<T>): boolean;
|
|
521
|
+
/** The last visible column can't be hidden — an all-hidden grid is useless. */
|
|
522
|
+
protected isColumnLocked(col: TableColumn<T>): boolean;
|
|
523
|
+
protected toggleColumn(col: TableColumn<T>): void;
|
|
524
|
+
protected moveColumn(col: TableColumn<T>, delta: -1 | 1): void;
|
|
525
|
+
protected onColumnDrop(event: CdkDragDrop<unknown>): void;
|
|
526
|
+
protected resetColumns(): void;
|
|
527
|
+
private readonly columnFilterPopover;
|
|
528
|
+
/** The column whose filter menu is open — drives the distinct-value list. */
|
|
529
|
+
protected readonly filterColumn: _angular_core.WritableSignal<TableColumn<T> | null>;
|
|
530
|
+
protected readonly filterSearch: _angular_core.WritableSignal<string>;
|
|
531
|
+
private readonly headerFilters;
|
|
532
|
+
private readonly headerFilterByKey;
|
|
533
|
+
protected headerFilterFor(col: TableColumn<T>): HeaderFilterDirective | undefined;
|
|
534
|
+
protected hasColumnFilter(col: TableColumn<T>): boolean;
|
|
535
|
+
protected isColumnFiltered(col: TableColumn<T>): boolean;
|
|
536
|
+
private optionsFor;
|
|
537
|
+
protected readonly filterValues: _angular_core.Signal<readonly string[]>;
|
|
538
|
+
protected readonly filterSelectedCount: _angular_core.Signal<number>;
|
|
539
|
+
protected isFilterValueChecked(value: string): boolean;
|
|
540
|
+
protected onColumnFilterClick(col: TableColumn<T>, event: Event): void;
|
|
541
|
+
protected onFilterSearch(event: Event): void;
|
|
542
|
+
protected toggleFilterValue(value: string): void;
|
|
543
|
+
protected headerFilterContext(col: TableColumn<T>): {
|
|
544
|
+
$implicit: unknown;
|
|
545
|
+
column: unknown;
|
|
546
|
+
close: () => void;
|
|
547
|
+
};
|
|
548
|
+
protected clearColumnFilter(): void;
|
|
549
|
+
private readonly injector;
|
|
550
|
+
private readonly destroyRef;
|
|
551
|
+
private readonly editInput;
|
|
552
|
+
protected readonly editingCell: _angular_core.WritableSignal<{
|
|
553
|
+
rowId: string;
|
|
554
|
+
key: string;
|
|
555
|
+
} | null>;
|
|
556
|
+
protected readonly editDraft: _angular_core.WritableSignal<string>;
|
|
557
|
+
protected isEditing(row: T, col: TableColumn<T>): boolean;
|
|
558
|
+
protected startEdit(row: T, col: TableColumn<T>, event: Event): void;
|
|
559
|
+
protected onEditInput(event: Event): void;
|
|
560
|
+
protected commitEdit(row: T, col: TableColumn<T>): void;
|
|
561
|
+
protected cancelEdit(): void;
|
|
562
|
+
private static readonly RESIZE_STEP;
|
|
563
|
+
private static readonly RESIZE_PAGE;
|
|
564
|
+
private static readonly MIN_COLUMN_WIDTH;
|
|
565
|
+
private resizeState;
|
|
566
|
+
/** `'content'` is not a pixel value — it is carried by a class instead, see
|
|
567
|
+
* `fitsContent`. */
|
|
568
|
+
protected columnWidth(col: TableColumn<T>): number | null;
|
|
569
|
+
/** Shrink-to-content mode, unless the user has dragged this column — a drag is a
|
|
570
|
+
* deliberate pixel width and must win over the declared intent. */
|
|
571
|
+
protected fitsContent(col: TableColumn<T>): boolean;
|
|
572
|
+
/** Clip width for `truncate`. `'content'` has no clip width — the column is as
|
|
573
|
+
* wide as its widest cell, so there is nothing to ellipsis against. */
|
|
574
|
+
protected clipWidth(col: TableColumn<T>): number | null;
|
|
575
|
+
protected onResizeStart(col: TableColumn<T>, event: PointerEvent): void;
|
|
576
|
+
/**
|
|
577
|
+
* Freeze the columns at what they currently measure, once, before the first
|
|
578
|
+
* drag moves anything.
|
|
579
|
+
*
|
|
580
|
+
* Without it only the dragged column has a width and the rest are still
|
|
581
|
+
* auto-sized, so the browser redistributes the remainder across them and
|
|
582
|
+
* columns the reader never touched visibly jump. Measuring first means the
|
|
583
|
+
* drag changes one column and leaves the others where they were — the
|
|
584
|
+
* auto-sized geometry is kept rather than lost at the first grab.
|
|
585
|
+
*
|
|
586
|
+
* Reads the header row that is actually on screen rather than assuming a
|
|
587
|
+
* column order.
|
|
588
|
+
*/
|
|
589
|
+
private lockMeasuredWidths;
|
|
590
|
+
protected onResizeMove(event: PointerEvent): void;
|
|
591
|
+
protected onResizeEnd(): void;
|
|
592
|
+
private readonly resizeFocus;
|
|
593
|
+
/**
|
|
594
|
+
* The widest a single column may be dragged: the scroll viewport.
|
|
595
|
+
*
|
|
596
|
+
* A column wider than the viewport can never be seen whole, and long text has
|
|
597
|
+
* its own affordance here — `truncate` clips it and the clip popover shows the
|
|
598
|
+
* rest — so nothing is lost by stopping at the edge. The ceiling exists at all
|
|
599
|
+
* because `aria-valuemax` has to be TRUE: a focusable `role="separator"` is a
|
|
600
|
+
* range widget, and announcing a bound that neither resize path applies is
|
|
601
|
+
* worse than announcing none.
|
|
602
|
+
*/
|
|
603
|
+
private columnWidthCeiling;
|
|
604
|
+
private clampColumnWidth;
|
|
605
|
+
protected onResizeFocus(col: TableColumn<T>, event: FocusEvent): void;
|
|
606
|
+
protected onResizeBlur(): void;
|
|
607
|
+
/**
|
|
608
|
+
* The separator's range, and only while it holds focus — that is when a range
|
|
609
|
+
* widget is announced, and an auto-sized column has no width to report until
|
|
610
|
+
* something measures one. Measuring on every change detection to fill an
|
|
611
|
+
* attribute nothing is reading would force layout once per resizable column.
|
|
612
|
+
*
|
|
613
|
+
* `now` prefers `columnWidth`, which the first arrow key makes known and keeps
|
|
614
|
+
* live; the focus measurement only covers the moment before that.
|
|
615
|
+
*/
|
|
616
|
+
protected resizeRange(col: TableColumn<T>): {
|
|
617
|
+
now: number;
|
|
618
|
+
min: number;
|
|
619
|
+
max: number;
|
|
620
|
+
} | null;
|
|
621
|
+
protected resolvedColumnWidth(col: TableColumn<T>, from?: HTMLElement): number;
|
|
622
|
+
protected onResizeKey(col: TableColumn<T>, event: KeyboardEvent): void;
|
|
623
|
+
/**
|
|
624
|
+
* The header cell is passed when the caller has it — the column panel does
|
|
625
|
+
* not, so it is looked up by `data-col-key`, and the measurement matters:
|
|
626
|
+
* stepping an auto-sized column has to start from what it currently RENDERS,
|
|
627
|
+
* not from the minimum.
|
|
628
|
+
*/
|
|
629
|
+
private stepColumnWidth;
|
|
630
|
+
private headerCellFor;
|
|
631
|
+
protected onColumnWidthStep(col: TableColumn<T>, delta: number | 'auto'): void;
|
|
632
|
+
protected readonly resizeStep = 16;
|
|
633
|
+
protected readonly filteredData: _angular_core.Signal<readonly T[]>;
|
|
634
|
+
protected readonly sortedData: _angular_core.Signal<readonly T[]>;
|
|
635
|
+
protected readonly pagedData: _angular_core.Signal<readonly T[]>;
|
|
636
|
+
/** Virtual mode windows this further; `rowSlots` is what the loop walks. */
|
|
637
|
+
protected readonly displayData: _angular_core.Signal<readonly T[]>;
|
|
638
|
+
/**
|
|
639
|
+
* The single live-region line. Loading wins while it lasts — a sort
|
|
640
|
+
* announcement over rows that are being replaced tells the reader about a
|
|
641
|
+
* state they cannot inspect yet.
|
|
642
|
+
*
|
|
643
|
+
* `aria-live="polite"` does not announce a region's INITIAL content, so the
|
|
644
|
+
* unsorted first render is silent; only real changes speak.
|
|
645
|
+
*/
|
|
646
|
+
protected readonly statusMessage: _angular_core.Signal<string>;
|
|
647
|
+
private readonly eventMessages;
|
|
648
|
+
/** Only from two rows up: a single expander announces itself through its own
|
|
649
|
+
* `aria-expanded`, and repeating that here would say everything twice. */
|
|
650
|
+
private readonly expansionMessage;
|
|
651
|
+
private readonly sortMessage;
|
|
652
|
+
private readonly rangeMessage;
|
|
653
|
+
/** Virtual mode needs a bounded scroller to window against. */
|
|
654
|
+
protected readonly virtualizing: _angular_core.Signal<boolean>;
|
|
655
|
+
/** Drives the CSS row height from the same number the arithmetic uses, so the
|
|
656
|
+
* two cannot drift — which would make every offset progressively wrong. */
|
|
657
|
+
protected readonly virtualRowHeight: _angular_core.Signal<string>;
|
|
658
|
+
/** How many rows the scroller spans. Lazy counts the rows that EXIST, not the
|
|
659
|
+
* ones that have arrived — otherwise the spacers shrink to the loaded slice
|
|
660
|
+
* and the scrollbar lies about the length of the list. */
|
|
661
|
+
protected readonly virtualCount: _angular_core.Signal<number>;
|
|
662
|
+
protected readonly virtualWindow: _angular_core.Signal<{
|
|
663
|
+
start: number;
|
|
664
|
+
end: number;
|
|
665
|
+
padTop: number;
|
|
666
|
+
padBottom: number;
|
|
667
|
+
} | null>;
|
|
668
|
+
/**
|
|
669
|
+
* What the row loop walks: each slot carries its ABSOLUTE index, and a `null`
|
|
670
|
+
* row is a gap the host has not filled yet.
|
|
671
|
+
*
|
|
672
|
+
* Absolute rather than loop-relative because everything downstream needs it —
|
|
673
|
+
* striping parity, the skeleton's width seed, and the range `(lazyLoad)` asks
|
|
674
|
+
* for. Outside lazy mode every slot is filled, so the extra object per visible
|
|
675
|
+
* row buys uniformity for the ~25 rows windowing keeps in the DOM.
|
|
676
|
+
*/
|
|
677
|
+
protected readonly rowSlots: _angular_core.Signal<readonly {
|
|
678
|
+
row: T | null;
|
|
679
|
+
index: number;
|
|
680
|
+
}[]>;
|
|
681
|
+
/** Zebra striping cannot come from `:nth-child` while windowing — the parity
|
|
682
|
+
* of a rendered row depends on its ABSOLUTE index, and the spacer rows are
|
|
683
|
+
* children too. Matches `:nth-child(odd)`, which is 1-based. */
|
|
684
|
+
protected isStriped(absoluteIndex: number): boolean;
|
|
685
|
+
protected readonly allSelected: _angular_core.Signal<boolean>;
|
|
686
|
+
protected readonly someSelected: _angular_core.Signal<boolean>;
|
|
687
|
+
protected readonly selectAllLabel: _angular_core.Signal<"Select all rows on this page" | "Select all rows">;
|
|
688
|
+
protected readonly allExpanded: _angular_core.Signal<boolean>;
|
|
689
|
+
protected readonly expandAllVisible: _angular_core.Signal<boolean>;
|
|
690
|
+
protected readonly expandAllLabel: _angular_core.Signal<string>;
|
|
691
|
+
protected readonly skeletonArray: _angular_core.Signal<any[]>;
|
|
692
|
+
protected readonly expandedColspan: _angular_core.Signal<number>;
|
|
693
|
+
protected readonly hasRowActions: _angular_core.Signal<boolean>;
|
|
694
|
+
protected readonly menuRow: _angular_core.WritableSignal<T | null>;
|
|
695
|
+
private readonly rowMenuPopover;
|
|
696
|
+
private readonly columnPickerPopover;
|
|
697
|
+
protected readonly columnSheetOpen: _angular_core.WritableSignal<boolean>;
|
|
698
|
+
private readonly coarsePointerState;
|
|
699
|
+
/** Whether the column panel opens as a sheet and the drag handle stands down.
|
|
700
|
+
* Keyed on the pointer, not the viewport — see the matching media query in
|
|
701
|
+
* `table.component.scss`. */
|
|
702
|
+
protected readonly coarsePointer: _angular_core.Signal<boolean>;
|
|
703
|
+
protected readonly columnPickerOpened: _angular_core.Signal<boolean>;
|
|
704
|
+
protected onColumnPickerClick(event: Event): void;
|
|
705
|
+
protected readonly hasTruncate: _angular_core.Signal<boolean>;
|
|
706
|
+
private readonly cellTextPopover;
|
|
707
|
+
protected readonly cellPopoverText: _angular_core.WritableSignal<string>;
|
|
708
|
+
protected onCellClipClick(row: T, col: TableColumn<T>, event: Event): void;
|
|
709
|
+
/** Clipped horizontally — itself or anything it renders. A `dsCellTemplate`
|
|
710
|
+
* puts the ellipsis on a descendant, so testing only the wrapper misses it. */
|
|
711
|
+
private static isClipped;
|
|
712
|
+
/**
|
|
713
|
+
* A header narrowed by resizing clips its own label, and the label is the only
|
|
714
|
+
* thing naming the column — so the full text has to stay reachable. Set on
|
|
715
|
+
* enter rather than always, because a `title` on every header would fire a
|
|
716
|
+
* tooltip on hover for text that is perfectly readable.
|
|
717
|
+
*/
|
|
718
|
+
protected onHeaderEnter(event: Event, col: TableColumn<T>): void;
|
|
719
|
+
private readonly scrollWrap;
|
|
720
|
+
private readonly hscrollProxy;
|
|
721
|
+
private readonly tableHead;
|
|
722
|
+
private readonly hostElement;
|
|
723
|
+
protected readonly hscrollContentWidth: _angular_core.WritableSignal<number>;
|
|
724
|
+
protected readonly hscrollNeeded: _angular_core.WritableSignal<boolean>;
|
|
725
|
+
private readonly scrollTop;
|
|
726
|
+
private readonly viewportHeight;
|
|
727
|
+
private lastLazyRequest;
|
|
728
|
+
constructor();
|
|
729
|
+
private parseDurationMs;
|
|
730
|
+
protected onRowMenuClick(row: T, event: Event): void;
|
|
731
|
+
protected isMenuOpenFor(row: T): boolean;
|
|
732
|
+
protected isActionDisabled(action: TableRowAction<T>): boolean;
|
|
733
|
+
/** Items that apply to `row`. Called from the trigger's own gate as well as the
|
|
734
|
+
* menu, so a row with nothing applicable shows no kebab instead of an empty one. */
|
|
735
|
+
protected actionsFor(row: T): readonly TableRowAction<T>[];
|
|
736
|
+
protected hasActionsFor(row: T): boolean;
|
|
737
|
+
protected readonly visibleRowActions: _angular_core.Signal<readonly TableRowAction<T>[]>;
|
|
738
|
+
/** Empty unless the item is actually disabled for this row: a reason on a live
|
|
739
|
+
* item would read as a caveat on something that works. */
|
|
740
|
+
protected actionReason(action: TableRowAction<T>): string;
|
|
741
|
+
protected onRowAction(action: TableRowAction<T>): void;
|
|
742
|
+
protected isExpanded(row: T): boolean;
|
|
743
|
+
protected onToggleExpand(row: T, event: Event): void;
|
|
744
|
+
protected onToggleExpandAll(): void;
|
|
745
|
+
protected isSelected(row: T): boolean;
|
|
746
|
+
protected onToggleAll(event: Event): void;
|
|
747
|
+
protected onToggleRow(row: T, event: Event): void;
|
|
748
|
+
private selectionBeforeGesture;
|
|
749
|
+
protected onRowMousedown(): void;
|
|
750
|
+
protected onRowClick(row: T, event: Event): void;
|
|
751
|
+
protected onRowKey(row: T, event: Event): void;
|
|
752
|
+
protected rowAriaLabel(row: T): string;
|
|
753
|
+
/** Row identity — the `rowId` accessor when given, else `row.id`. Public so a
|
|
754
|
+
* host reading `selectedIds`/`expandedIds` can compute the same keys. */
|
|
755
|
+
rowKey(row: T): string;
|
|
756
|
+
protected sortableCol(col: TableColumn<T>): boolean;
|
|
757
|
+
protected ariaSort(col: TableColumn<T>): 'ascending' | 'descending' | 'none' | null;
|
|
758
|
+
protected onSort(col: TableColumn<T>): void;
|
|
759
|
+
protected headerClasses(col: TableColumn<T>): string;
|
|
760
|
+
protected sortIcon(col: TableColumn<T>): 'sortAsc' | 'sortDesc' | 'sort';
|
|
761
|
+
protected cellValue(row: T, col: TableColumn<T>): string;
|
|
762
|
+
protected cellLink(row: T, col: TableColumn<T>): string | readonly unknown[] | null;
|
|
763
|
+
/** Serialises the visible columns of the rows the TABLE HOLDS as a CSV download.
|
|
764
|
+
* On a server-paged table that is one page — prefer `runExport()`, which goes
|
|
765
|
+
* through `exportFetcher` and exports the whole set. Pass `rows` to serialise a
|
|
766
|
+
* set you fetched yourself. */
|
|
767
|
+
exportCsv(filename?: string, rows?: readonly T[]): void;
|
|
768
|
+
private layoutKey;
|
|
769
|
+
private layoutRestored;
|
|
770
|
+
private restoreLayout;
|
|
771
|
+
private saveLayout;
|
|
772
|
+
/** Runs the export the built-in button runs: awaits `exportFetcher` when one is
|
|
773
|
+
* given — so a server-paged table exports the whole set rather than the page it
|
|
774
|
+
* holds — downloads the result, drives `exporting`, writes the live region and
|
|
775
|
+
* emits `exportFailed`. Public so the button can live anywhere:
|
|
776
|
+
* `<ds-button [loading]="table.exporting()" (pressed)="table.runExport()">`. */
|
|
777
|
+
runExport(): Promise<void>;
|
|
778
|
+
private announceExport;
|
|
779
|
+
/** Hands a ready-made file to the browser. Only a Blob gets its object URL
|
|
780
|
+
* revoked — a URL the caller supplied is theirs to manage. */
|
|
781
|
+
private downloadFile;
|
|
782
|
+
/** Deterministic per-cell width so skeleton rows look organic but stable
|
|
783
|
+
* across re-renders. */
|
|
784
|
+
protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
|
|
785
|
+
private watchPointer;
|
|
786
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
787
|
+
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; }; "hiddenKeys": { "alias": "hiddenKeys"; "required": false; "isSignal": true; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; "isSignal": true; }; "columnWidths": { "alias": "columnWidths"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "columnOrder": { "alias": "columnOrder"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "exportButton": { "alias": "exportButton"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "exportFetcher": { "alias": "exportFetcher"; "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"; "hiddenKeys": "hiddenKeysChange"; "columnWidths": "columnWidthsChange"; "columnOrder": "columnOrderChange"; "exportFailed": "exportFailed"; "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>;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export { CellTemplateDirective, HeaderFilterDirective, TableComponent };
|
|
791
|
+
export type { HeaderFilterContext, SortChangeEvent, SortDir, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
|