@aeris-ui/core 22.0.0-alpha.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/LICENSE +21 -0
- package/README.md +189 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +412 -0
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +107 -0
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-auto-complete.mjs +754 -0
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-auto-focus.mjs +63 -0
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-avatar.mjs +133 -0
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-badge.mjs +163 -0
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-block-ui.mjs +139 -0
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +433 -0
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +39 -0
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button.mjs +246 -0
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-card.mjs +134 -0
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-carousel.mjs +542 -0
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-cascade-select.mjs +673 -0
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-chart.mjs +296 -0
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-checkbox.mjs +220 -0
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-chip.mjs +200 -0
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-class-names.mjs +67 -0
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +1192 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +508 -0
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +818 -0
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1010 -0
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-context-menu.mjs +720 -0
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +1471 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-dialog.mjs +574 -0
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-divider.mjs +51 -0
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-drawer.mjs +549 -0
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +333 -0
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-editor.mjs +1548 -0
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-file-upload.mjs +965 -0
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-filter-service.mjs +304 -0
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-fluid.mjs +23 -0
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-focus-trap.mjs +185 -0
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +1657 -0
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-glass.mjs +35 -0
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-icon-field.mjs +113 -0
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-inplace.mjs +243 -0
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-group.mjs +110 -0
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-mask.mjs +343 -0
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-number.mjs +497 -0
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-otp.mjs +361 -0
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-text.mjs +226 -0
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +208 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +835 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-menu.mjs +796 -0
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-menubar.mjs +729 -0
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-message.mjs +225 -0
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-meter-group.mjs +377 -0
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-multi-select.mjs +1033 -0
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +351 -0
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-organization-chart.mjs +382 -0
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-paginator.mjs +254 -0
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-panel.mjs +352 -0
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-password.mjs +479 -0
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-pick-list.mjs +939 -0
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-popover.mjs +535 -0
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-progress-bar.mjs +260 -0
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +218 -0
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-radio-button.mjs +194 -0
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-rating.mjs +385 -0
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +211 -0
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-scroll-top.mjs +94 -0
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1134 -0
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +47 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-slider.mjs +724 -0
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-speed-dial.mjs +589 -0
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-split-button.mjs +532 -0
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-splitter.mjs +488 -0
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-stepper.mjs +437 -0
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-style-class.mjs +344 -0
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-table.mjs +1580 -0
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tabs.mjs +438 -0
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-textarea.mjs +349 -0
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1565 -0
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-theming.mjs +150 -0
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +718 -0
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-timeline.mjs +278 -0
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toast.mjs +422 -0
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +202 -0
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toolbar.mjs +136 -0
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tooltip.mjs +365 -0
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree-select.mjs +995 -0
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree-table.mjs +1600 -0
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree.mjs +962 -0
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -0
- package/fesm2022/aeris-ui-core.mjs +360 -0
- package/fesm2022/aeris-ui-core.mjs.map +1 -0
- package/package.json +432 -0
- package/schematics/aeris-setup.schema.json +52 -0
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/schema.json +64 -0
- package/schematics/runtime/package.json +3 -0
- package/schematics/runtime/schematics/ng-add/index.js +13 -0
- package/schematics/runtime/schematics/ng-add/index.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/options.js +338 -0
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/schema.js +3 -0
- package/schematics/runtime/schematics/ng-add/schema.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/workspace.js +273 -0
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +12 -0
- package/schematics/runtime/theme-builder/aeris-color-derivation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-color.js +263 -0
- package/schematics/runtime/theme-builder/aeris-color.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js +245 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-foundation.js +47 -0
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +121 -0
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +238 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +101 -0
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +82 -0
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +183 -0
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme.js +322 -0
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -0
- package/schematics/runtime/theme-builder/public-api.js +17 -0
- package/schematics/runtime/theme-builder/public-api.js.map +1 -0
- package/styles/_index.scss +1 -0
- package/styles/_tokens.scss +13 -0
- package/styles/aeris.css +555 -0
- package/styles/controls.css +169 -0
- package/tools/aeris-theme.mjs +149 -0
- package/tools/aeris-theme.schema.json +143 -0
- package/types/aeris-ui-core-accordion.d.ts +101 -0
- package/types/aeris-ui-core-animate-on-scroll.d.ts +34 -0
- package/types/aeris-ui-core-auto-complete.d.ts +154 -0
- package/types/aeris-ui-core-auto-focus.d.ts +17 -0
- package/types/aeris-ui-core-avatar.d.ts +44 -0
- package/types/aeris-ui-core-badge.d.ts +48 -0
- package/types/aeris-ui-core-block-ui.d.ts +28 -0
- package/types/aeris-ui-core-breadcrumb.d.ts +104 -0
- package/types/aeris-ui-core-button-group.d.ts +17 -0
- package/types/aeris-ui-core-button.d.ts +71 -0
- package/types/aeris-ui-core-card.d.ts +43 -0
- package/types/aeris-ui-core-carousel.d.ts +126 -0
- package/types/aeris-ui-core-cascade-select.d.ts +130 -0
- package/types/aeris-ui-core-chart.d.ts +92 -0
- package/types/aeris-ui-core-checkbox.d.ts +55 -0
- package/types/aeris-ui-core-chip.d.ts +56 -0
- package/types/aeris-ui-core-class-names.d.ts +21 -0
- package/types/aeris-ui-core-color-picker.d.ts +149 -0
- package/types/aeris-ui-core-compare.d.ts +109 -0
- package/types/aeris-ui-core-confirm-dialog.d.ts +263 -0
- package/types/aeris-ui-core-confirm-popup.d.ts +281 -0
- package/types/aeris-ui-core-context-menu.d.ts +156 -0
- package/types/aeris-ui-core-date-picker.d.ts +226 -0
- package/types/aeris-ui-core-dialog.d.ts +124 -0
- package/types/aeris-ui-core-divider.d.ts +21 -0
- package/types/aeris-ui-core-drawer.d.ts +119 -0
- package/types/aeris-ui-core-dynamic-dialog.d.ts +148 -0
- package/types/aeris-ui-core-editor.d.ts +130 -0
- package/types/aeris-ui-core-file-upload.d.ts +199 -0
- package/types/aeris-ui-core-filter-service.d.ts +54 -0
- package/types/aeris-ui-core-fluid.d.ts +10 -0
- package/types/aeris-ui-core-focus-trap.d.ts +32 -0
- package/types/aeris-ui-core-galleria.d.ts +273 -0
- package/types/aeris-ui-core-glass.d.ts +17 -0
- package/types/aeris-ui-core-icon-field.d.ts +36 -0
- package/types/aeris-ui-core-inplace.d.ts +68 -0
- package/types/aeris-ui-core-input-group.d.ts +38 -0
- package/types/aeris-ui-core-input-mask.d.ts +73 -0
- package/types/aeris-ui-core-input-number.d.ts +87 -0
- package/types/aeris-ui-core-input-otp.d.ts +88 -0
- package/types/aeris-ui-core-input-text.d.ts +63 -0
- package/types/aeris-ui-core-key-filter.d.ts +41 -0
- package/types/aeris-ui-core-mega-menu.d.ts +130 -0
- package/types/aeris-ui-core-menu.d.ts +182 -0
- package/types/aeris-ui-core-menubar.d.ts +145 -0
- package/types/aeris-ui-core-message.d.ts +65 -0
- package/types/aeris-ui-core-meter-group.d.ts +100 -0
- package/types/aeris-ui-core-multi-select.d.ts +193 -0
- package/types/aeris-ui-core-order-list.d.ts +73 -0
- package/types/aeris-ui-core-organization-chart.d.ts +85 -0
- package/types/aeris-ui-core-paginator.d.ts +39 -0
- package/types/aeris-ui-core-panel.d.ts +85 -0
- package/types/aeris-ui-core-password.d.ts +110 -0
- package/types/aeris-ui-core-pick-list.d.ts +193 -0
- package/types/aeris-ui-core-popover.d.ts +112 -0
- package/types/aeris-ui-core-progress-bar.d.ts +81 -0
- package/types/aeris-ui-core-progress-spinner.d.ts +51 -0
- package/types/aeris-ui-core-radio-button.d.ts +51 -0
- package/types/aeris-ui-core-rating.d.ts +80 -0
- package/types/aeris-ui-core-scroll-panel.d.ts +66 -0
- package/types/aeris-ui-core-scroll-top.d.ts +29 -0
- package/types/aeris-ui-core-select.d.ts +223 -0
- package/types/aeris-ui-core-skeleton.d.ts +18 -0
- package/types/aeris-ui-core-slider.d.ts +117 -0
- package/types/aeris-ui-core-speed-dial.d.ts +119 -0
- package/types/aeris-ui-core-split-button.d.ts +122 -0
- package/types/aeris-ui-core-splitter.d.ts +113 -0
- package/types/aeris-ui-core-stepper.d.ts +99 -0
- package/types/aeris-ui-core-style-class.d.ts +73 -0
- package/types/aeris-ui-core-table.d.ts +333 -0
- package/types/aeris-ui-core-tabs.d.ts +82 -0
- package/types/aeris-ui-core-textarea.d.ts +80 -0
- package/types/aeris-ui-core-theme-builder.d.ts +499 -0
- package/types/aeris-ui-core-theming.d.ts +47 -0
- package/types/aeris-ui-core-tiered-menu.d.ts +152 -0
- package/types/aeris-ui-core-timeline.d.ts +80 -0
- package/types/aeris-ui-core-toast.d.ts +127 -0
- package/types/aeris-ui-core-toggle-switch.d.ts +52 -0
- package/types/aeris-ui-core-toolbar.d.ts +47 -0
- package/types/aeris-ui-core-tooltip.d.ts +92 -0
- package/types/aeris-ui-core-tree-select.d.ts +187 -0
- package/types/aeris-ui-core-tree-table.d.ts +311 -0
- package/types/aeris-ui-core-tree.d.ts +179 -0
- package/types/aeris-ui-core.d.ts +85 -0
|
@@ -0,0 +1,1580 @@
|
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, DestroyRef, input, model, booleanAttribute, output, contentChild, signal, computed, Component } from '@angular/core';
|
|
4
|
+
import { AerisPaginator } from '@aeris-ui/core/paginator';
|
|
5
|
+
import { AerisCheckbox } from '@aeris-ui/core/checkbox';
|
|
6
|
+
import { AerisContextMenu, AerisContextMenuItemTemplate } from '@aeris-ui/core/context-menu';
|
|
7
|
+
import { AerisTooltip } from '@aeris-ui/core/tooltip';
|
|
8
|
+
import { aerisInternalSetColumnPairWidths, aerisInternalClampColumnResizeDelta, aerisInternalColumnWidthPixels, aerisInternalMeasureColumnWidths, aerisInternalApplyMeasuredColumnWidths, aerisInternalPixelWidth, aerisInternalColumnResizeDirection, aerisInternalListenForColumnResize } from '@aeris-ui/core';
|
|
9
|
+
|
|
10
|
+
class AerisTableHeaderTemplate {
|
|
11
|
+
template = inject(TemplateRef);
|
|
12
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTableHeaderTemplate, isStandalone: true, selector: "ng-template[aerisTableHeader]", ngImport: i0 });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableHeaderTemplate, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{ selector: 'ng-template[aerisTableHeader]' }]
|
|
21
|
+
}] });
|
|
22
|
+
class AerisTableCellTemplate {
|
|
23
|
+
template = inject(TemplateRef);
|
|
24
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableCellTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTableCellTemplate, isStandalone: true, selector: "ng-template[aerisTableCell]", ngImport: i0 });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableCellTemplate, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{ selector: 'ng-template[aerisTableCell]' }]
|
|
33
|
+
}] });
|
|
34
|
+
class AerisTableExpansionTemplate {
|
|
35
|
+
template = inject(TemplateRef);
|
|
36
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableExpansionTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTableExpansionTemplate, isStandalone: true, selector: "ng-template[aerisTableExpansion]", ngImport: i0 });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableExpansionTemplate, decorators: [{
|
|
43
|
+
type: Directive,
|
|
44
|
+
args: [{ selector: 'ng-template[aerisTableExpansion]' }]
|
|
45
|
+
}] });
|
|
46
|
+
class AerisTableEmptyTemplate {
|
|
47
|
+
template = inject(TemplateRef);
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
49
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTableEmptyTemplate, isStandalone: true, selector: "ng-template[aerisTableEmpty]", ngImport: i0 });
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableEmptyTemplate, decorators: [{
|
|
52
|
+
type: Directive,
|
|
53
|
+
args: [{ selector: 'ng-template[aerisTableEmpty]' }]
|
|
54
|
+
}] });
|
|
55
|
+
class AerisTableLoadingTemplate {
|
|
56
|
+
template = inject(TemplateRef);
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableLoadingTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
58
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTableLoadingTemplate, isStandalone: true, selector: "ng-template[aerisTableLoading]", ngImport: i0 });
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTableLoadingTemplate, decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{ selector: 'ng-template[aerisTableLoading]' }]
|
|
63
|
+
}] });
|
|
64
|
+
class AerisTable {
|
|
65
|
+
document = inject(DOCUMENT);
|
|
66
|
+
destroyRef = inject(DestroyRef);
|
|
67
|
+
resizeListenersCleanup = null;
|
|
68
|
+
data = input([], /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
70
|
+
columns = model([], /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
72
|
+
rowKeyField = input('id', /* @ts-ignore */
|
|
73
|
+
...(ngDevMode ? [{ debugName: "rowKeyField" }] : /* istanbul ignore next */ []));
|
|
74
|
+
caption = input('', /* @ts-ignore */
|
|
75
|
+
...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
|
|
76
|
+
size = input('md', /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
78
|
+
striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
79
|
+
gridlines = input(false, { ...(ngDevMode ? { debugName: "gridlines" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
80
|
+
hoverable = input(true, { ...(ngDevMode ? { debugName: "hoverable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
81
|
+
fluid = input(true, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
82
|
+
responsiveMode = input('scroll', /* @ts-ignore */
|
|
83
|
+
...(ngDevMode ? [{ debugName: "responsiveMode" }] : /* istanbul ignore next */ []));
|
|
84
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
|
+
loadingMessage = input('Loading data', /* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []));
|
|
87
|
+
emptyMessage = input('No records found', /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
89
|
+
paginator = input(false, { ...(ngDevMode ? { debugName: "paginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
90
|
+
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
91
|
+
rows = model(10, /* @ts-ignore */
|
|
92
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
93
|
+
first = model(0, /* @ts-ignore */
|
|
94
|
+
...(ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []));
|
|
95
|
+
pageLinkSize = input(5, /* @ts-ignore */
|
|
96
|
+
...(ngDevMode ? [{ debugName: "pageLinkSize" }] : /* istanbul ignore next */ []));
|
|
97
|
+
rowsPerPageOptions = input([], /* @ts-ignore */
|
|
98
|
+
...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
99
|
+
globalFilter = input(false, { ...(ngDevMode ? { debugName: "globalFilter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
100
|
+
filterValue = model('', /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
102
|
+
columnFilter = input(false, { ...(ngDevMode ? { debugName: "columnFilter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
103
|
+
columnFilters = model({}, /* @ts-ignore */
|
|
104
|
+
...(ngDevMode ? [{ debugName: "columnFilters" }] : /* istanbul ignore next */ []));
|
|
105
|
+
filterLabel = input('Search', /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "filterLabel" }] : /* istanbul ignore next */ []));
|
|
107
|
+
filterPlaceholder = input('Search records', /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []));
|
|
109
|
+
columnFilterPlaceholder = input('', /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "columnFilterPlaceholder" }] : /* istanbul ignore next */ []));
|
|
111
|
+
sort = model(null, /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []));
|
|
113
|
+
selectionMode = input(null, /* @ts-ignore */
|
|
114
|
+
...(ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []));
|
|
115
|
+
selectionControl = input('control', /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "selectionControl" }] : /* istanbul ignore next */ []));
|
|
117
|
+
selectedKeys = model([], /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "selectedKeys" }] : /* istanbul ignore next */ []));
|
|
119
|
+
contextMenu = input(null, /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "contextMenu" }] : /* istanbul ignore next */ []));
|
|
121
|
+
contextMenuDisabled = input(false, /* @ts-ignore */
|
|
122
|
+
...(ngDevMode ? [{ debugName: "contextMenuDisabled" }] : /* istanbul ignore next */ []));
|
|
123
|
+
contextMenuRow = model(null, /* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [{ debugName: "contextMenuRow" }] : /* istanbul ignore next */ []));
|
|
125
|
+
contextMenuRowKey = model('', /* @ts-ignore */
|
|
126
|
+
...(ngDevMode ? [{ debugName: "contextMenuRowKey" }] : /* istanbul ignore next */ []));
|
|
127
|
+
editable = input(false, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
128
|
+
resizableColumns = input(false, { ...(ngDevMode ? { debugName: "resizableColumns" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
129
|
+
reorderableColumns = input(false, { ...(ngDevMode ? { debugName: "reorderableColumns" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
130
|
+
minColumnWidth = input(96, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "minColumnWidth" }] : /* istanbul ignore next */ []));
|
|
132
|
+
showOverflowTooltip = input(false, { ...(ngDevMode ? { debugName: "showOverflowTooltip" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
133
|
+
scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
134
|
+
scrollHeight = input('', /* @ts-ignore */
|
|
135
|
+
...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
|
|
136
|
+
expandableRows = input(false, { ...(ngDevMode ? { debugName: "expandableRows" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
137
|
+
expandedKeys = model([], /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "expandedKeys" }] : /* istanbul ignore next */ []));
|
|
139
|
+
rowNavigation = input(true, { ...(ngDevMode ? { debugName: "rowNavigation" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
140
|
+
selectAllAriaLabel = input('Select all visible rows', /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "selectAllAriaLabel" }] : /* istanbul ignore next */ []));
|
|
142
|
+
rowSelectionAriaLabel = input('Select row', /* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "rowSelectionAriaLabel" }] : /* istanbul ignore next */ []));
|
|
144
|
+
expandRowAriaLabel = input('Expand row', /* @ts-ignore */
|
|
145
|
+
...(ngDevMode ? [{ debugName: "expandRowAriaLabel" }] : /* istanbul ignore next */ []));
|
|
146
|
+
collapseRowAriaLabel = input('Collapse row', /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "collapseRowAriaLabel" }] : /* istanbul ignore next */ []));
|
|
148
|
+
paginatorAriaLabel = input('Table pagination', /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "paginatorAriaLabel" }] : /* istanbul ignore next */ []));
|
|
150
|
+
csvSeparator = input(',', /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "csvSeparator" }] : /* istanbul ignore next */ []));
|
|
152
|
+
exportFilename = input('aeris-table.csv', /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "exportFilename" }] : /* istanbul ignore next */ []));
|
|
154
|
+
sorted = output();
|
|
155
|
+
filtered = output();
|
|
156
|
+
pageChanged = output();
|
|
157
|
+
lazyLoad = output();
|
|
158
|
+
selectionChanged = output();
|
|
159
|
+
rowSelected = output();
|
|
160
|
+
rowUnselected = output();
|
|
161
|
+
contextMenuOpened = output();
|
|
162
|
+
visibleRowsToggled = output();
|
|
163
|
+
rowExpanded = output();
|
|
164
|
+
rowCollapsed = output();
|
|
165
|
+
editStarted = output();
|
|
166
|
+
cellEdited = output();
|
|
167
|
+
editCompleted = output();
|
|
168
|
+
editCancelled = output();
|
|
169
|
+
columnResized = output();
|
|
170
|
+
columnReordered = output();
|
|
171
|
+
stateSaved = output();
|
|
172
|
+
stateRestored = output();
|
|
173
|
+
csvExported = output();
|
|
174
|
+
tableId = `aeris-table-${Math.random().toString(36).slice(2)}`;
|
|
175
|
+
headerTemplate = contentChild(AerisTableHeaderTemplate, /* @ts-ignore */
|
|
176
|
+
...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
|
|
177
|
+
cellTemplate = contentChild(AerisTableCellTemplate, /* @ts-ignore */
|
|
178
|
+
...(ngDevMode ? [{ debugName: "cellTemplate" }] : /* istanbul ignore next */ []));
|
|
179
|
+
expansionTemplate = contentChild(AerisTableExpansionTemplate, /* @ts-ignore */
|
|
180
|
+
...(ngDevMode ? [{ debugName: "expansionTemplate" }] : /* istanbul ignore next */ []));
|
|
181
|
+
emptyTemplate = contentChild(AerisTableEmptyTemplate, /* @ts-ignore */
|
|
182
|
+
...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
|
|
183
|
+
loadingTemplate = contentChild(AerisTableLoadingTemplate, /* @ts-ignore */
|
|
184
|
+
...(ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []));
|
|
185
|
+
editingCell = signal('', /* @ts-ignore */
|
|
186
|
+
...(ngDevMode ? [{ debugName: "editingCell" }] : /* istanbul ignore next */ []));
|
|
187
|
+
editValue = signal('', /* @ts-ignore */
|
|
188
|
+
...(ngDevMode ? [{ debugName: "editValue" }] : /* istanbul ignore next */ []));
|
|
189
|
+
resizeState = signal(null, /* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [{ debugName: "resizeState" }] : /* istanbul ignore next */ []));
|
|
191
|
+
resizingField = computed(() => this.resizeState()?.field ?? null, /* @ts-ignore */
|
|
192
|
+
...(ngDevMode ? [{ debugName: "resizingField" }] : /* istanbul ignore next */ []));
|
|
193
|
+
draggedColumn = signal(null, /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "draggedColumn" }] : /* istanbul ignore next */ []));
|
|
195
|
+
rowIndexByIdentity = computed(() => {
|
|
196
|
+
const indexes = new Map();
|
|
197
|
+
this.data().forEach((row, index) => {
|
|
198
|
+
if (!indexes.has(row))
|
|
199
|
+
indexes.set(row, index);
|
|
200
|
+
});
|
|
201
|
+
return indexes;
|
|
202
|
+
}, /* @ts-ignore */
|
|
203
|
+
...(ngDevMode ? [{ debugName: "rowIndexByIdentity" }] : /* istanbul ignore next */ []));
|
|
204
|
+
selectedKeySet = computed(() => new Set(this.selectedKeys()), /* @ts-ignore */
|
|
205
|
+
...(ngDevMode ? [{ debugName: "selectedKeySet" }] : /* istanbul ignore next */ []));
|
|
206
|
+
expandedKeySet = computed(() => new Set(this.expandedKeys()), /* @ts-ignore */
|
|
207
|
+
...(ngDevMode ? [{ debugName: "expandedKeySet" }] : /* istanbul ignore next */ []));
|
|
208
|
+
filteredSortedRows = computed(() => {
|
|
209
|
+
const filtered = this.applyFilter(this.data());
|
|
210
|
+
const sort = this.sort();
|
|
211
|
+
if (!sort)
|
|
212
|
+
return filtered;
|
|
213
|
+
return [...filtered].sort((left, right) => this.compareValues(left[sort.field], right[sort.field], sort.direction));
|
|
214
|
+
}, /* @ts-ignore */
|
|
215
|
+
...(ngDevMode ? [{ debugName: "filteredSortedRows" }] : /* istanbul ignore next */ []));
|
|
216
|
+
pageCount = computed(() => Math.max(1, Math.ceil(this.filteredSortedRows().length / Math.max(1, this.rows()))), /* @ts-ignore */
|
|
217
|
+
...(ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []));
|
|
218
|
+
pageRows = computed(() => {
|
|
219
|
+
if (!this.paginator())
|
|
220
|
+
return this.filteredSortedRows();
|
|
221
|
+
return this.filteredSortedRows().slice(this.first(), this.first() + this.rows());
|
|
222
|
+
}, /* @ts-ignore */
|
|
223
|
+
...(ngDevMode ? [{ debugName: "pageRows" }] : /* istanbul ignore next */ []));
|
|
224
|
+
columnSpan = computed(() => this.columns().length +
|
|
225
|
+
(this.selectionMode() && this.selectionControl() === 'control' ? 1 : 0) +
|
|
226
|
+
(this.expandableRows() ? 1 : 0), /* @ts-ignore */
|
|
227
|
+
...(ngDevMode ? [{ debugName: "columnSpan" }] : /* istanbul ignore next */ []));
|
|
228
|
+
allVisibleRowsSelected = computed(() => this.pageRows().length > 0 &&
|
|
229
|
+
this.pageRows().every((row) => this.selectedKeySet().has(this.rowKey(row))), /* @ts-ignore */
|
|
230
|
+
...(ngDevMode ? [{ debugName: "allVisibleRowsSelected" }] : /* istanbul ignore next */ []));
|
|
231
|
+
someVisibleRowsSelected = computed(() => !this.allVisibleRowsSelected() &&
|
|
232
|
+
this.pageRows().some((row) => this.selectedKeySet().has(this.rowKey(row))), /* @ts-ignore */
|
|
233
|
+
...(ngDevMode ? [{ debugName: "someVisibleRowsSelected" }] : /* istanbul ignore next */ []));
|
|
234
|
+
pageReport = computed(() => {
|
|
235
|
+
const total = this.filteredSortedRows().length;
|
|
236
|
+
if (total === 0)
|
|
237
|
+
return '0 of 0';
|
|
238
|
+
const start = Math.min(this.first() + 1, total);
|
|
239
|
+
const end = Math.min(this.first() + this.rows(), total);
|
|
240
|
+
return `${start}-${end} of ${total}`;
|
|
241
|
+
}, /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "pageReport" }] : /* istanbul ignore next */ []));
|
|
243
|
+
constructor() {
|
|
244
|
+
this.destroyRef.onDestroy(() => this.stopResizeListeners());
|
|
245
|
+
}
|
|
246
|
+
value(row, field) {
|
|
247
|
+
return row[field];
|
|
248
|
+
}
|
|
249
|
+
displayValue(row, field) {
|
|
250
|
+
const value = row[field];
|
|
251
|
+
if (value == null)
|
|
252
|
+
return '';
|
|
253
|
+
if (value instanceof Date)
|
|
254
|
+
return value.toLocaleDateString();
|
|
255
|
+
return String(value);
|
|
256
|
+
}
|
|
257
|
+
handleResizeStart(field, columnIndex, originalEvent) {
|
|
258
|
+
if (!this.resizableColumns())
|
|
259
|
+
return;
|
|
260
|
+
const column = this.columns()[columnIndex];
|
|
261
|
+
const adjacentColumn = this.columns()[columnIndex + 1];
|
|
262
|
+
if (!column || !adjacentColumn)
|
|
263
|
+
return;
|
|
264
|
+
originalEvent.preventDefault();
|
|
265
|
+
const handle = originalEvent.currentTarget;
|
|
266
|
+
const header = handle.parentElement;
|
|
267
|
+
const measuredWidths = this.lockMeasuredColumnWidths(header);
|
|
268
|
+
const measuredWidth = measuredWidths.get(field) ?? 0;
|
|
269
|
+
const measuredAdjacentWidth = measuredWidths.get(adjacentColumn.field) ?? 0;
|
|
270
|
+
this.resizeState.set({
|
|
271
|
+
field,
|
|
272
|
+
adjacentField: adjacentColumn.field,
|
|
273
|
+
startX: originalEvent.clientX,
|
|
274
|
+
startWidth: measuredWidth > 0 ? measuredWidth : this.columnWidthPixels(column.width),
|
|
275
|
+
startAdjacentWidth: measuredAdjacentWidth > 0
|
|
276
|
+
? measuredAdjacentWidth
|
|
277
|
+
: this.columnWidthPixels(adjacentColumn.width),
|
|
278
|
+
direction: this.resizeDirection(handle),
|
|
279
|
+
});
|
|
280
|
+
this.startResizeListeners();
|
|
281
|
+
}
|
|
282
|
+
handleResizeMove(originalEvent) {
|
|
283
|
+
const state = this.resizeState();
|
|
284
|
+
if (!state)
|
|
285
|
+
return;
|
|
286
|
+
const requestedDelta = (originalEvent.clientX - state.startX) * state.direction;
|
|
287
|
+
const delta = this.clampResizeDelta(requestedDelta, state.startWidth, state.startAdjacentWidth);
|
|
288
|
+
this.setColumnPairWidths(state.field, state.adjacentField, state.startWidth + delta, state.startAdjacentWidth - delta);
|
|
289
|
+
}
|
|
290
|
+
handleResizeEnd(originalEvent) {
|
|
291
|
+
const state = this.resizeState();
|
|
292
|
+
this.stopResizeListeners();
|
|
293
|
+
if (!state)
|
|
294
|
+
return;
|
|
295
|
+
this.resizeState.set(null);
|
|
296
|
+
const column = this.columns().find((item) => item.field === state.field);
|
|
297
|
+
this.columnResized.emit({
|
|
298
|
+
originalEvent,
|
|
299
|
+
field: state.field,
|
|
300
|
+
width: column?.width ?? `${this.minColumnWidth()}px`,
|
|
301
|
+
columns: this.columns(),
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
handleResizeKeydown(field, originalEvent) {
|
|
305
|
+
if (originalEvent.key !== 'ArrowLeft' && originalEvent.key !== 'ArrowRight')
|
|
306
|
+
return;
|
|
307
|
+
originalEvent.preventDefault();
|
|
308
|
+
const columns = this.columns();
|
|
309
|
+
const columnIndex = columns.findIndex((item) => item.field === field);
|
|
310
|
+
const column = columns[columnIndex];
|
|
311
|
+
const adjacentColumn = columns[columnIndex + 1];
|
|
312
|
+
if (!column || !adjacentColumn)
|
|
313
|
+
return;
|
|
314
|
+
const handle = originalEvent.currentTarget;
|
|
315
|
+
const header = handle.parentElement;
|
|
316
|
+
const measuredWidths = this.lockMeasuredColumnWidths(header);
|
|
317
|
+
const measuredWidth = measuredWidths.get(field) ?? 0;
|
|
318
|
+
const measuredAdjacentWidth = measuredWidths.get(adjacentColumn.field) ?? 0;
|
|
319
|
+
const current = measuredWidth > 0 ? measuredWidth : this.columnWidthPixels(column.width);
|
|
320
|
+
const adjacent = measuredAdjacentWidth > 0
|
|
321
|
+
? measuredAdjacentWidth
|
|
322
|
+
: this.columnWidthPixels(adjacentColumn.width);
|
|
323
|
+
const visualDelta = originalEvent.key === 'ArrowRight' ? 16 : -16;
|
|
324
|
+
const delta = this.clampResizeDelta(visualDelta * this.resizeDirection(handle), current, adjacent);
|
|
325
|
+
const width = current + delta;
|
|
326
|
+
this.setColumnPairWidths(field, adjacentColumn.field, width, adjacent - delta);
|
|
327
|
+
this.columnResized.emit({
|
|
328
|
+
originalEvent,
|
|
329
|
+
field,
|
|
330
|
+
width: this.pixelWidth(width),
|
|
331
|
+
columns: this.columns(),
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
handleColumnDragStart(field, originalEvent) {
|
|
335
|
+
if (!this.reorderableColumns()) {
|
|
336
|
+
originalEvent.preventDefault();
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
this.draggedColumn.set(field);
|
|
340
|
+
originalEvent.dataTransfer?.setData('text/plain', field);
|
|
341
|
+
if (originalEvent.dataTransfer)
|
|
342
|
+
originalEvent.dataTransfer.effectAllowed = 'move';
|
|
343
|
+
}
|
|
344
|
+
handleColumnDragOver(originalEvent) {
|
|
345
|
+
if (!this.draggedColumn())
|
|
346
|
+
return;
|
|
347
|
+
originalEvent.preventDefault();
|
|
348
|
+
if (originalEvent.dataTransfer)
|
|
349
|
+
originalEvent.dataTransfer.dropEffect = 'move';
|
|
350
|
+
}
|
|
351
|
+
handleColumnDrop(field, originalEvent) {
|
|
352
|
+
const source = this.draggedColumn();
|
|
353
|
+
this.draggedColumn.set(null);
|
|
354
|
+
if (!source || source === field)
|
|
355
|
+
return;
|
|
356
|
+
originalEvent.preventDefault();
|
|
357
|
+
this.reorderColumn(source, field, originalEvent);
|
|
358
|
+
}
|
|
359
|
+
handleColumnDragEnd() {
|
|
360
|
+
this.draggedColumn.set(null);
|
|
361
|
+
}
|
|
362
|
+
handleHeaderKeydown(field, originalEvent) {
|
|
363
|
+
if (!this.reorderableColumns() || !originalEvent.altKey)
|
|
364
|
+
return;
|
|
365
|
+
if (originalEvent.key !== 'ArrowLeft' && originalEvent.key !== 'ArrowRight')
|
|
366
|
+
return;
|
|
367
|
+
originalEvent.preventDefault();
|
|
368
|
+
const columns = this.columns();
|
|
369
|
+
const index = columns.findIndex((column) => column.field === field);
|
|
370
|
+
const visualOffset = originalEvent.key === 'ArrowRight' ? 1 : -1;
|
|
371
|
+
const direction = this.resizeDirection(originalEvent.currentTarget);
|
|
372
|
+
const target = columns[index + visualOffset * direction];
|
|
373
|
+
if (target)
|
|
374
|
+
this.reorderColumn(field, target.field, originalEvent);
|
|
375
|
+
}
|
|
376
|
+
rowKey(row) {
|
|
377
|
+
const key = row[this.rowKeyField()];
|
|
378
|
+
return key == null ? String(this.rowIndexByIdentity().get(row) ?? -1) : String(key);
|
|
379
|
+
}
|
|
380
|
+
isSelected(row) {
|
|
381
|
+
return this.selectedKeySet().has(this.rowKey(row));
|
|
382
|
+
}
|
|
383
|
+
isExpanded(row) {
|
|
384
|
+
return this.expandedKeySet().has(this.rowKey(row));
|
|
385
|
+
}
|
|
386
|
+
isContextMenuRow(row) {
|
|
387
|
+
return this.contextMenuRowKey() === this.rowKey(row);
|
|
388
|
+
}
|
|
389
|
+
contextMenuRowDisabled(row, rowIndex) {
|
|
390
|
+
const disabled = this.contextMenuDisabled();
|
|
391
|
+
return typeof disabled === 'function' ? disabled(row, rowIndex) : disabled;
|
|
392
|
+
}
|
|
393
|
+
toggleSort(column, originalEvent) {
|
|
394
|
+
if (!column.sortable)
|
|
395
|
+
return;
|
|
396
|
+
const current = this.sort();
|
|
397
|
+
const next = current?.field !== column.field
|
|
398
|
+
? { field: column.field, direction: 'asc' }
|
|
399
|
+
: current.direction === 'asc'
|
|
400
|
+
? { field: column.field, direction: 'desc' }
|
|
401
|
+
: null;
|
|
402
|
+
this.sort.set(next);
|
|
403
|
+
this.sorted.emit({ originalEvent, sort: next });
|
|
404
|
+
this.emitLazyLoad();
|
|
405
|
+
}
|
|
406
|
+
ariaSort(column) {
|
|
407
|
+
const sort = this.sort();
|
|
408
|
+
if (sort?.field !== column.field)
|
|
409
|
+
return null;
|
|
410
|
+
return sort.direction === 'asc' ? 'ascending' : 'descending';
|
|
411
|
+
}
|
|
412
|
+
sortLabel(column) {
|
|
413
|
+
const sort = this.sort();
|
|
414
|
+
if (sort?.field !== column.field)
|
|
415
|
+
return `Sort by ${column.header}`;
|
|
416
|
+
return sort.direction === 'asc'
|
|
417
|
+
? `Sort ${column.header} descending`
|
|
418
|
+
: `Clear ${column.header} sorting`;
|
|
419
|
+
}
|
|
420
|
+
toggleRow(row, originalEvent) {
|
|
421
|
+
const key = this.rowKey(row);
|
|
422
|
+
const next = this.selectionMode() === 'single'
|
|
423
|
+
? this.isSelected(row)
|
|
424
|
+
? []
|
|
425
|
+
: [key]
|
|
426
|
+
: this.isSelected(row)
|
|
427
|
+
? this.selectedKeys().filter((item) => item !== key)
|
|
428
|
+
: [...this.selectedKeys(), key];
|
|
429
|
+
const wasSelected = this.isSelected(row);
|
|
430
|
+
this.selectedKeys.set(next);
|
|
431
|
+
const event = { originalEvent, keys: next, row };
|
|
432
|
+
this.selectionChanged.emit(event);
|
|
433
|
+
if (wasSelected) {
|
|
434
|
+
this.rowUnselected.emit(event);
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
this.rowSelected.emit(event);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
handleRowClick(row, originalEvent) {
|
|
441
|
+
if (!this.selectionMode() || this.selectionControl() !== 'row')
|
|
442
|
+
return;
|
|
443
|
+
if (originalEvent.target.closest('button,input,select,textarea,a'))
|
|
444
|
+
return;
|
|
445
|
+
this.toggleRow(row, originalEvent);
|
|
446
|
+
}
|
|
447
|
+
handleRowContextMenu(row, rowIndex, originalEvent) {
|
|
448
|
+
const menu = this.contextMenu();
|
|
449
|
+
if (!menu || this.contextMenuRowDisabled(row, rowIndex))
|
|
450
|
+
return;
|
|
451
|
+
const key = this.rowKey(row);
|
|
452
|
+
this.contextMenuRow.set(row);
|
|
453
|
+
this.contextMenuRowKey.set(key);
|
|
454
|
+
this.contextMenuOpened.emit({ originalEvent, row, rowIndex, key });
|
|
455
|
+
menu.show(originalEvent);
|
|
456
|
+
}
|
|
457
|
+
toggleVisibleRows(originalEvent) {
|
|
458
|
+
const visibleKeys = this.pageRows().map((row) => this.rowKey(row));
|
|
459
|
+
const visibleKeySet = new Set(visibleKeys);
|
|
460
|
+
const selected = this.selectedKeys();
|
|
461
|
+
const next = this.allVisibleRowsSelected()
|
|
462
|
+
? selected.filter((key) => !visibleKeySet.has(key))
|
|
463
|
+
: Array.from(new Set([...selected, ...visibleKeys]));
|
|
464
|
+
const checked = !this.allVisibleRowsSelected();
|
|
465
|
+
this.selectedKeys.set(next);
|
|
466
|
+
this.selectionChanged.emit({
|
|
467
|
+
originalEvent,
|
|
468
|
+
keys: next,
|
|
469
|
+
row: this.pageRows()[0] ?? {},
|
|
470
|
+
});
|
|
471
|
+
this.visibleRowsToggled.emit({
|
|
472
|
+
originalEvent,
|
|
473
|
+
keys: next,
|
|
474
|
+
rows: this.pageRows(),
|
|
475
|
+
checked,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
toggleExpanded(row) {
|
|
479
|
+
const key = this.rowKey(row);
|
|
480
|
+
if (this.isExpanded(row)) {
|
|
481
|
+
this.expandedKeys.set(this.expandedKeys().filter((item) => item !== key));
|
|
482
|
+
this.rowCollapsed.emit(row);
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
this.expandedKeys.set([...this.expandedKeys(), key]);
|
|
486
|
+
this.rowExpanded.emit(row);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
handleRowKeydown(event, row) {
|
|
490
|
+
if (event.key === 'Enter' && this.expandableRows()) {
|
|
491
|
+
event.preventDefault();
|
|
492
|
+
this.toggleExpanded(row);
|
|
493
|
+
}
|
|
494
|
+
if (event.key === ' ' && this.selectionMode()) {
|
|
495
|
+
event.preventDefault();
|
|
496
|
+
this.toggleRow(row, event);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
handleFilterInput(event) {
|
|
500
|
+
this.filterValue.set(event.target.value);
|
|
501
|
+
this.first.set(0);
|
|
502
|
+
this.emitFilterEvent(event);
|
|
503
|
+
this.emitLazyLoad();
|
|
504
|
+
}
|
|
505
|
+
handleColumnFilterInput(field, event) {
|
|
506
|
+
const value = event.target.value;
|
|
507
|
+
this.columnFilters.set({
|
|
508
|
+
...this.columnFilters(),
|
|
509
|
+
[field]: value,
|
|
510
|
+
});
|
|
511
|
+
this.first.set(0);
|
|
512
|
+
this.emitFilterEvent(event);
|
|
513
|
+
this.emitLazyLoad();
|
|
514
|
+
}
|
|
515
|
+
columnFilterValue(field) {
|
|
516
|
+
return this.columnFilters()[field] ?? '';
|
|
517
|
+
}
|
|
518
|
+
columnFilterPlaceholderText(column) {
|
|
519
|
+
const placeholder = this.columnFilterPlaceholder();
|
|
520
|
+
if (typeof placeholder === 'function')
|
|
521
|
+
return placeholder(column);
|
|
522
|
+
if (typeof placeholder === 'string')
|
|
523
|
+
return placeholder;
|
|
524
|
+
return placeholder[column.field] ?? '';
|
|
525
|
+
}
|
|
526
|
+
handlePage(event) {
|
|
527
|
+
this.pageChanged.emit(event);
|
|
528
|
+
this.emitLazyLoad();
|
|
529
|
+
}
|
|
530
|
+
expandedRowFallback(row) {
|
|
531
|
+
return JSON.stringify(row);
|
|
532
|
+
}
|
|
533
|
+
reset() {
|
|
534
|
+
this.first.set(0);
|
|
535
|
+
this.sort.set(null);
|
|
536
|
+
this.filterValue.set('');
|
|
537
|
+
this.columnFilters.set({});
|
|
538
|
+
this.selectedKeys.set([]);
|
|
539
|
+
this.expandedKeys.set([]);
|
|
540
|
+
this.emitFilterEvent(null);
|
|
541
|
+
this.emitLazyLoad();
|
|
542
|
+
}
|
|
543
|
+
clearSort() {
|
|
544
|
+
this.sort.set(null);
|
|
545
|
+
this.sorted.emit({ originalEvent: new Event('clear'), sort: null });
|
|
546
|
+
this.emitLazyLoad();
|
|
547
|
+
}
|
|
548
|
+
clearFilters() {
|
|
549
|
+
this.filterValue.set('');
|
|
550
|
+
this.columnFilters.set({});
|
|
551
|
+
this.first.set(0);
|
|
552
|
+
this.emitFilterEvent(null);
|
|
553
|
+
this.emitLazyLoad();
|
|
554
|
+
}
|
|
555
|
+
clearSelection() {
|
|
556
|
+
this.selectedKeys.set([]);
|
|
557
|
+
}
|
|
558
|
+
clearContextMenuRow() {
|
|
559
|
+
this.contextMenuRow.set(null);
|
|
560
|
+
this.contextMenuRowKey.set('');
|
|
561
|
+
}
|
|
562
|
+
clearExpandedRows() {
|
|
563
|
+
this.expandedKeys.set([]);
|
|
564
|
+
}
|
|
565
|
+
selectRows(keys) {
|
|
566
|
+
const availableKeys = new Set(this.data().map((row) => this.rowKey(row)));
|
|
567
|
+
this.selectedKeys.set(keys.filter((key) => availableKeys.has(key)));
|
|
568
|
+
}
|
|
569
|
+
expandRow(rowOrKey) {
|
|
570
|
+
const key = typeof rowOrKey === 'string' ? rowOrKey : this.rowKey(rowOrKey);
|
|
571
|
+
if (!this.expandedKeys().includes(key)) {
|
|
572
|
+
this.expandedKeys.set([...this.expandedKeys(), key]);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
collapseRow(rowOrKey) {
|
|
576
|
+
const key = typeof rowOrKey === 'string' ? rowOrKey : this.rowKey(rowOrKey);
|
|
577
|
+
this.expandedKeys.set(this.expandedKeys().filter((item) => item !== key));
|
|
578
|
+
}
|
|
579
|
+
filter(value) {
|
|
580
|
+
this.filterValue.set(value);
|
|
581
|
+
this.first.set(0);
|
|
582
|
+
this.emitFilterEvent(null);
|
|
583
|
+
this.emitLazyLoad();
|
|
584
|
+
}
|
|
585
|
+
filterColumn(field, value) {
|
|
586
|
+
this.columnFilters.set({ ...this.columnFilters(), [field]: value });
|
|
587
|
+
this.first.set(0);
|
|
588
|
+
this.emitFilterEvent(null);
|
|
589
|
+
this.emitLazyLoad();
|
|
590
|
+
}
|
|
591
|
+
saveState() {
|
|
592
|
+
const state = this.currentState();
|
|
593
|
+
this.stateSaved.emit(state);
|
|
594
|
+
return state;
|
|
595
|
+
}
|
|
596
|
+
restoreState(state) {
|
|
597
|
+
this.first.set(state.first);
|
|
598
|
+
this.rows.set(state.rows);
|
|
599
|
+
this.sort.set(state.sort);
|
|
600
|
+
this.filterValue.set(state.filterValue);
|
|
601
|
+
this.columnFilters.set(state.columnFilters);
|
|
602
|
+
this.selectedKeys.set(state.selectedKeys);
|
|
603
|
+
this.expandedKeys.set(state.expandedKeys);
|
|
604
|
+
this.stateRestored.emit(state);
|
|
605
|
+
this.emitLazyLoad();
|
|
606
|
+
}
|
|
607
|
+
exportCSV(options = {}) {
|
|
608
|
+
const normalized = this.normalizeCsvOptions(options);
|
|
609
|
+
const rows = this.csvRows(normalized.rows);
|
|
610
|
+
const columns = this.columns();
|
|
611
|
+
const lines = rows.map((row) => columns
|
|
612
|
+
.map((column) => this.escapeCsvValue(this.displayValue(row, column.field)))
|
|
613
|
+
.join(normalized.separator));
|
|
614
|
+
if (normalized.includeHeaders) {
|
|
615
|
+
lines.unshift(columns.map((column) => this.escapeCsvValue(column.header)).join(normalized.separator));
|
|
616
|
+
}
|
|
617
|
+
const csv = lines.join('\r\n');
|
|
618
|
+
if (normalized.download) {
|
|
619
|
+
this.downloadCsv(csv, normalized.filename);
|
|
620
|
+
}
|
|
621
|
+
this.csvExported.emit({ csv, rows, options: normalized });
|
|
622
|
+
return csv;
|
|
623
|
+
}
|
|
624
|
+
setColumnPairWidths(field, adjacentField, width, adjacentWidth) {
|
|
625
|
+
this.columns.set(aerisInternalSetColumnPairWidths(this.columns(), field, adjacentField, width, adjacentWidth));
|
|
626
|
+
}
|
|
627
|
+
clampResizeDelta(delta, width, adjacentWidth) {
|
|
628
|
+
return aerisInternalClampColumnResizeDelta(delta, width, adjacentWidth, this.minColumnWidth());
|
|
629
|
+
}
|
|
630
|
+
columnWidthPixels(width) {
|
|
631
|
+
return aerisInternalColumnWidthPixels(width);
|
|
632
|
+
}
|
|
633
|
+
lockMeasuredColumnWidths(header) {
|
|
634
|
+
const measuredWidths = aerisInternalMeasureColumnWidths(header);
|
|
635
|
+
if (!measuredWidths.size)
|
|
636
|
+
return measuredWidths;
|
|
637
|
+
this.columns.set(aerisInternalApplyMeasuredColumnWidths(this.columns(), measuredWidths));
|
|
638
|
+
return measuredWidths;
|
|
639
|
+
}
|
|
640
|
+
pixelWidth(width) {
|
|
641
|
+
return aerisInternalPixelWidth(width);
|
|
642
|
+
}
|
|
643
|
+
resizeDirection(element) {
|
|
644
|
+
return aerisInternalColumnResizeDirection(element);
|
|
645
|
+
}
|
|
646
|
+
startResizeListeners() {
|
|
647
|
+
this.stopResizeListeners();
|
|
648
|
+
const move = (event) => this.handleResizeMove(event);
|
|
649
|
+
const end = (event) => this.handleResizeEnd(event);
|
|
650
|
+
const removeListeners = aerisInternalListenForColumnResize(this.document, move, end);
|
|
651
|
+
this.resizeListenersCleanup = () => {
|
|
652
|
+
removeListeners();
|
|
653
|
+
this.resizeListenersCleanup = null;
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
stopResizeListeners() {
|
|
657
|
+
this.resizeListenersCleanup?.();
|
|
658
|
+
}
|
|
659
|
+
reorderColumn(sourceField, targetField, originalEvent) {
|
|
660
|
+
const columns = [...this.columns()];
|
|
661
|
+
const fromIndex = columns.findIndex((column) => column.field === sourceField);
|
|
662
|
+
const targetIndex = columns.findIndex((column) => column.field === targetField);
|
|
663
|
+
if (fromIndex < 0 || targetIndex < 0)
|
|
664
|
+
return;
|
|
665
|
+
const [column] = columns.splice(fromIndex, 1);
|
|
666
|
+
if (!column)
|
|
667
|
+
return;
|
|
668
|
+
const targetAfterRemoval = columns.findIndex((item) => item.field === targetField);
|
|
669
|
+
const toIndex = fromIndex < targetIndex ? targetAfterRemoval + 1 : targetAfterRemoval;
|
|
670
|
+
columns.splice(toIndex, 0, column);
|
|
671
|
+
this.columns.set(columns);
|
|
672
|
+
this.columnReordered.emit({
|
|
673
|
+
originalEvent,
|
|
674
|
+
field: sourceField,
|
|
675
|
+
fromIndex,
|
|
676
|
+
toIndex,
|
|
677
|
+
columns,
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
applyFilter(rows) {
|
|
681
|
+
const query = this.filterValue().trim().toLocaleLowerCase();
|
|
682
|
+
const columnFilters = Object.entries(this.columnFilters())
|
|
683
|
+
.map(([field, value]) => [field, value.trim().toLocaleLowerCase()])
|
|
684
|
+
.filter(([, value]) => value);
|
|
685
|
+
const fields = this.columns()
|
|
686
|
+
.filter((column) => column.filterable !== false)
|
|
687
|
+
.map((column) => column.field);
|
|
688
|
+
return rows.filter((row) => {
|
|
689
|
+
const matchesGlobal = !this.globalFilter() ||
|
|
690
|
+
!query ||
|
|
691
|
+
fields.some((field) => String(row[field] ?? '')
|
|
692
|
+
.toLocaleLowerCase()
|
|
693
|
+
.includes(query));
|
|
694
|
+
const matchesColumns = columnFilters.every(([field, value]) => String(row[field] ?? '')
|
|
695
|
+
.toLocaleLowerCase()
|
|
696
|
+
.includes(value));
|
|
697
|
+
return matchesGlobal && matchesColumns;
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
startCellEdit(row, column, originalEvent) {
|
|
701
|
+
if (!this.editable())
|
|
702
|
+
return;
|
|
703
|
+
originalEvent.stopPropagation();
|
|
704
|
+
this.editingCell.set(`${this.rowKey(row)}:${column.field}`);
|
|
705
|
+
this.editValue.set(this.displayValue(row, column.field));
|
|
706
|
+
this.editStarted.emit({
|
|
707
|
+
originalEvent,
|
|
708
|
+
row,
|
|
709
|
+
field: column.field,
|
|
710
|
+
value: this.editValue(),
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
isEditing(row, field) {
|
|
714
|
+
return this.editingCell() === `${this.rowKey(row)}:${field}`;
|
|
715
|
+
}
|
|
716
|
+
handleEditKeydown(event, row, field) {
|
|
717
|
+
if (event.key === 'Enter') {
|
|
718
|
+
event.preventDefault();
|
|
719
|
+
this.commitCellEdit(event, row, field);
|
|
720
|
+
}
|
|
721
|
+
if (event.key === 'Escape') {
|
|
722
|
+
event.preventDefault();
|
|
723
|
+
this.editCancelled.emit({
|
|
724
|
+
originalEvent: event,
|
|
725
|
+
row,
|
|
726
|
+
field,
|
|
727
|
+
value: this.editValue(),
|
|
728
|
+
});
|
|
729
|
+
this.editingCell.set('');
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
commitCellEdit(originalEvent, row, field) {
|
|
733
|
+
if (!this.isEditing(row, field))
|
|
734
|
+
return;
|
|
735
|
+
const event = {
|
|
736
|
+
originalEvent,
|
|
737
|
+
row,
|
|
738
|
+
field,
|
|
739
|
+
value: this.editValue(),
|
|
740
|
+
};
|
|
741
|
+
this.cellEdited.emit(event);
|
|
742
|
+
this.editCompleted.emit(event);
|
|
743
|
+
this.editingCell.set('');
|
|
744
|
+
}
|
|
745
|
+
handleRowDoubleClick(event) {
|
|
746
|
+
if (this.editable()) {
|
|
747
|
+
event.stopPropagation();
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
compareValues(left, right, direction) {
|
|
751
|
+
const modifier = direction === 'asc' ? 1 : -1;
|
|
752
|
+
if (typeof left === 'number' && typeof right === 'number') {
|
|
753
|
+
return (left - right) * modifier;
|
|
754
|
+
}
|
|
755
|
+
return String(left ?? '').localeCompare(String(right ?? '')) * modifier;
|
|
756
|
+
}
|
|
757
|
+
emitFilterEvent(originalEvent) {
|
|
758
|
+
this.filtered.emit({
|
|
759
|
+
originalEvent,
|
|
760
|
+
filterValue: this.filterValue(),
|
|
761
|
+
columnFilters: this.columnFilters(),
|
|
762
|
+
rows: this.filteredSortedRows(),
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
emitLazyLoad() {
|
|
766
|
+
if (!this.lazy())
|
|
767
|
+
return;
|
|
768
|
+
this.lazyLoad.emit({
|
|
769
|
+
first: this.first(),
|
|
770
|
+
rows: this.rows(),
|
|
771
|
+
sort: this.sort(),
|
|
772
|
+
filterValue: this.filterValue(),
|
|
773
|
+
columnFilters: this.columnFilters(),
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
currentState() {
|
|
777
|
+
return {
|
|
778
|
+
first: this.first(),
|
|
779
|
+
rows: this.rows(),
|
|
780
|
+
sort: this.sort(),
|
|
781
|
+
filterValue: this.filterValue(),
|
|
782
|
+
columnFilters: this.columnFilters(),
|
|
783
|
+
selectedKeys: this.selectedKeys(),
|
|
784
|
+
expandedKeys: this.expandedKeys(),
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
normalizeCsvOptions(options) {
|
|
788
|
+
return {
|
|
789
|
+
filename: options.filename ?? this.exportFilename(),
|
|
790
|
+
separator: this.normalizeCsvSeparator(options.separator ?? this.csvSeparator()),
|
|
791
|
+
includeHeaders: options.includeHeaders ?? true,
|
|
792
|
+
rows: options.rows ?? 'filtered',
|
|
793
|
+
download: options.download ?? true,
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
csvRows(rows) {
|
|
797
|
+
if (rows === 'all')
|
|
798
|
+
return this.data();
|
|
799
|
+
if (rows === 'page')
|
|
800
|
+
return this.pageRows();
|
|
801
|
+
return this.filteredSortedRows();
|
|
802
|
+
}
|
|
803
|
+
escapeCsvValue(value) {
|
|
804
|
+
const textValue = this.neutralizeCsvFormula(value);
|
|
805
|
+
return `"${textValue.replace(/"/g, '""')}"`;
|
|
806
|
+
}
|
|
807
|
+
downloadCsv(csv, filename) {
|
|
808
|
+
if (typeof Blob === 'undefined' || typeof globalThis.URL === 'undefined')
|
|
809
|
+
return;
|
|
810
|
+
const url = globalThis.URL.createObjectURL(new Blob([csv], { type: 'text/csv;charset=utf-8' }));
|
|
811
|
+
const link = this.document.createElement('a');
|
|
812
|
+
link.href = url;
|
|
813
|
+
link.download = this.safeDownloadFilename(filename);
|
|
814
|
+
link.click();
|
|
815
|
+
globalThis.URL.revokeObjectURL(url);
|
|
816
|
+
}
|
|
817
|
+
neutralizeCsvFormula(value) {
|
|
818
|
+
const formulaPrefix = /^[\u0000-\u0020]*[=+\-@\uFF1D\uFF0B\uFF0D\uFF20]/u;
|
|
819
|
+
return formulaPrefix.test(value) ? `'${value}` : value;
|
|
820
|
+
}
|
|
821
|
+
normalizeCsvSeparator(separator) {
|
|
822
|
+
return separator.length === 1 && !/[\r\n"']/u.test(separator) ? separator : ',';
|
|
823
|
+
}
|
|
824
|
+
safeDownloadFilename(filename) {
|
|
825
|
+
const normalized = filename
|
|
826
|
+
.replace(/[\u0000-\u001f\u007f<>:"/\\|?*]/gu, '_')
|
|
827
|
+
.replace(/^\.+|\.+$/gu, '')
|
|
828
|
+
.trim()
|
|
829
|
+
.slice(0, 180);
|
|
830
|
+
return normalized || 'aeris-table.csv';
|
|
831
|
+
}
|
|
832
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
833
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisTable, isStandalone: true, selector: "aeris-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, rowKeyField: { classPropertyName: "rowKeyField", publicName: "rowKeyField", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, gridlines: { classPropertyName: "gridlines", publicName: "gridlines", isSignal: true, isRequired: false, transformFunction: null }, hoverable: { classPropertyName: "hoverable", publicName: "hoverable", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, responsiveMode: { classPropertyName: "responsiveMode", publicName: "responsiveMode", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, globalFilter: { classPropertyName: "globalFilter", publicName: "globalFilter", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, columnFilter: { classPropertyName: "columnFilter", publicName: "columnFilter", isSignal: true, isRequired: false, transformFunction: null }, columnFilters: { classPropertyName: "columnFilters", publicName: "columnFilters", isSignal: true, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, columnFilterPlaceholder: { classPropertyName: "columnFilterPlaceholder", publicName: "columnFilterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectionControl: { classPropertyName: "selectionControl", publicName: "selectionControl", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, contextMenuDisabled: { classPropertyName: "contextMenuDisabled", publicName: "contextMenuDisabled", isSignal: true, isRequired: false, transformFunction: null }, contextMenuRow: { classPropertyName: "contextMenuRow", publicName: "contextMenuRow", isSignal: true, isRequired: false, transformFunction: null }, contextMenuRowKey: { classPropertyName: "contextMenuRowKey", publicName: "contextMenuRowKey", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, minColumnWidth: { classPropertyName: "minColumnWidth", publicName: "minColumnWidth", isSignal: true, isRequired: false, transformFunction: null }, showOverflowTooltip: { classPropertyName: "showOverflowTooltip", publicName: "showOverflowTooltip", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, expandableRows: { classPropertyName: "expandableRows", publicName: "expandableRows", isSignal: true, isRequired: false, transformFunction: null }, expandedKeys: { classPropertyName: "expandedKeys", publicName: "expandedKeys", isSignal: true, isRequired: false, transformFunction: null }, rowNavigation: { classPropertyName: "rowNavigation", publicName: "rowNavigation", isSignal: true, isRequired: false, transformFunction: null }, selectAllAriaLabel: { classPropertyName: "selectAllAriaLabel", publicName: "selectAllAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, rowSelectionAriaLabel: { classPropertyName: "rowSelectionAriaLabel", publicName: "rowSelectionAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, expandRowAriaLabel: { classPropertyName: "expandRowAriaLabel", publicName: "expandRowAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseRowAriaLabel: { classPropertyName: "collapseRowAriaLabel", publicName: "collapseRowAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, paginatorAriaLabel: { classPropertyName: "paginatorAriaLabel", publicName: "paginatorAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, csvSeparator: { classPropertyName: "csvSeparator", publicName: "csvSeparator", isSignal: true, isRequired: false, transformFunction: null }, exportFilename: { classPropertyName: "exportFilename", publicName: "exportFilename", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columns: "columnsChange", rows: "rowsChange", first: "firstChange", filterValue: "filterValueChange", columnFilters: "columnFiltersChange", sort: "sortChange", selectedKeys: "selectedKeysChange", contextMenuRow: "contextMenuRowChange", contextMenuRowKey: "contextMenuRowKeyChange", expandedKeys: "expandedKeysChange", sorted: "sorted", filtered: "filtered", pageChanged: "pageChanged", lazyLoad: "lazyLoad", selectionChanged: "selectionChanged", rowSelected: "rowSelected", rowUnselected: "rowUnselected", contextMenuOpened: "contextMenuOpened", visibleRowsToggled: "visibleRowsToggled", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed", editStarted: "editStarted", cellEdited: "cellEdited", editCompleted: "editCompleted", editCancelled: "editCancelled", columnResized: "columnResized", columnReordered: "columnReordered", stateSaved: "stateSaved", stateRestored: "stateRestored", csvExported: "csvExported" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisTableHeaderTemplate, descendants: true, isSignal: true }, { propertyName: "cellTemplate", first: true, predicate: AerisTableCellTemplate, descendants: true, isSignal: true }, { propertyName: "expansionTemplate", first: true, predicate: AerisTableExpansionTemplate, descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisTableEmptyTemplate, descendants: true, isSignal: true }, { propertyName: "loadingTemplate", first: true, predicate: AerisTableLoadingTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
834
|
+
<div
|
|
835
|
+
class="aeris-table"
|
|
836
|
+
[attr.data-size]="size()"
|
|
837
|
+
[attr.data-striped]="striped() || null"
|
|
838
|
+
[attr.data-gridlines]="gridlines() || null"
|
|
839
|
+
[attr.data-hoverable]="hoverable() || null"
|
|
840
|
+
[attr.data-responsive]="responsiveMode()"
|
|
841
|
+
[attr.data-fluid]="fluid() || null"
|
|
842
|
+
[attr.aria-busy]="loading() || null"
|
|
843
|
+
[style.--aeris-table-scroll-height]="scrollHeight() || null"
|
|
844
|
+
>
|
|
845
|
+
@if (caption()) {
|
|
846
|
+
<div class="aeris-table__caption">{{ caption() }}</div>
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
@if (globalFilter()) {
|
|
850
|
+
<label class="aeris-table__filter">
|
|
851
|
+
<span>{{ filterLabel() }}</span>
|
|
852
|
+
<input
|
|
853
|
+
type="search"
|
|
854
|
+
[value]="filterValue()"
|
|
855
|
+
[placeholder]="filterPlaceholder()"
|
|
856
|
+
(input)="handleFilterInput($event)"
|
|
857
|
+
/>
|
|
858
|
+
</label>
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
<div class="aeris-table__frame">
|
|
862
|
+
<div
|
|
863
|
+
class="aeris-table__viewport"
|
|
864
|
+
tabindex="0"
|
|
865
|
+
[attr.data-scrollable]="scrollable() || null"
|
|
866
|
+
>
|
|
867
|
+
<table>
|
|
868
|
+
@if (caption()) {
|
|
869
|
+
<caption>
|
|
870
|
+
{{
|
|
871
|
+
caption()
|
|
872
|
+
}}
|
|
873
|
+
</caption>
|
|
874
|
+
}
|
|
875
|
+
<thead>
|
|
876
|
+
<tr>
|
|
877
|
+
@if (expandableRows()) {
|
|
878
|
+
<th class="aeris-table__control-cell" scope="col">
|
|
879
|
+
<span class="aeris-table__sr">Toggle row details</span>
|
|
880
|
+
</th>
|
|
881
|
+
}
|
|
882
|
+
@if (selectionMode() && selectionControl() === 'control') {
|
|
883
|
+
<th class="aeris-table__control-cell" scope="col">
|
|
884
|
+
@if (selectionMode() === 'multiple' && selectionControl() === 'control') {
|
|
885
|
+
<aeris-checkbox
|
|
886
|
+
size="sm"
|
|
887
|
+
[checked]="allVisibleRowsSelected()"
|
|
888
|
+
[indeterminate]="someVisibleRowsSelected()"
|
|
889
|
+
[ariaLabel]="selectAllAriaLabel()"
|
|
890
|
+
(changed)="toggleVisibleRows($event.originalEvent)"
|
|
891
|
+
/>
|
|
892
|
+
} @else {
|
|
893
|
+
<span class="aeris-table__sr">Select row</span>
|
|
894
|
+
}
|
|
895
|
+
</th>
|
|
896
|
+
}
|
|
897
|
+
@for (column of columns(); track column.field; let columnIndex = $index) {
|
|
898
|
+
<th
|
|
899
|
+
scope="col"
|
|
900
|
+
[attr.data-field]="column.field"
|
|
901
|
+
[attr.data-resizing-column]="resizingField() === column.field ? true : null"
|
|
902
|
+
[style.width]="column.width || null"
|
|
903
|
+
[attr.data-align]="column.align || 'start'"
|
|
904
|
+
[attr.aria-sort]="ariaSort(column)"
|
|
905
|
+
[attr.draggable]="reorderableColumns() ? true : null"
|
|
906
|
+
(dragstart)="handleColumnDragStart(column.field, $event)"
|
|
907
|
+
(dragover)="handleColumnDragOver($event)"
|
|
908
|
+
(drop)="handleColumnDrop(column.field, $event)"
|
|
909
|
+
(dragend)="handleColumnDragEnd()"
|
|
910
|
+
>
|
|
911
|
+
@if (column.sortable) {
|
|
912
|
+
<button
|
|
913
|
+
class="aeris-table__sort"
|
|
914
|
+
type="button"
|
|
915
|
+
[attr.aria-label]="sortLabel(column)"
|
|
916
|
+
(click)="toggleSort(column, $event)"
|
|
917
|
+
(keydown)="handleHeaderKeydown(column.field, $event)"
|
|
918
|
+
>
|
|
919
|
+
@if (headerTemplate(); as header) {
|
|
920
|
+
<span
|
|
921
|
+
class="aeris-table__header-label"
|
|
922
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
923
|
+
aerisTooltipEvent="hover"
|
|
924
|
+
aerisTooltipTruncatedOnly
|
|
925
|
+
[aerisTooltipShowDelay]="300"
|
|
926
|
+
>
|
|
927
|
+
<ng-container
|
|
928
|
+
[ngTemplateOutlet]="header.template"
|
|
929
|
+
[ngTemplateOutletContext]="{ $implicit: column, column }"
|
|
930
|
+
/>
|
|
931
|
+
</span>
|
|
932
|
+
} @else {
|
|
933
|
+
<span
|
|
934
|
+
class="aeris-table__header-label"
|
|
935
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
936
|
+
aerisTooltipEvent="hover"
|
|
937
|
+
aerisTooltipTruncatedOnly
|
|
938
|
+
[aerisTooltipShowDelay]="300"
|
|
939
|
+
>
|
|
940
|
+
{{ column.header }}
|
|
941
|
+
</span>
|
|
942
|
+
}
|
|
943
|
+
<span
|
|
944
|
+
class="aeris-table__sort-mark"
|
|
945
|
+
[attr.data-direction]="
|
|
946
|
+
sort()?.field === column.field ? sort()?.direction : null
|
|
947
|
+
"
|
|
948
|
+
aria-hidden="true"
|
|
949
|
+
>
|
|
950
|
+
<span></span>
|
|
951
|
+
<span></span>
|
|
952
|
+
</span>
|
|
953
|
+
</button>
|
|
954
|
+
} @else {
|
|
955
|
+
@if (headerTemplate(); as header) {
|
|
956
|
+
<span
|
|
957
|
+
class="aeris-table__header-label"
|
|
958
|
+
[attr.tabindex]="reorderableColumns() ? 0 : null"
|
|
959
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
960
|
+
aerisTooltipEvent="hover"
|
|
961
|
+
aerisTooltipTruncatedOnly
|
|
962
|
+
[aerisTooltipShowDelay]="300"
|
|
963
|
+
(keydown)="handleHeaderKeydown(column.field, $event)"
|
|
964
|
+
>
|
|
965
|
+
<ng-container
|
|
966
|
+
[ngTemplateOutlet]="header.template"
|
|
967
|
+
[ngTemplateOutletContext]="{ $implicit: column, column }"
|
|
968
|
+
/>
|
|
969
|
+
</span>
|
|
970
|
+
} @else {
|
|
971
|
+
<span
|
|
972
|
+
class="aeris-table__header-label"
|
|
973
|
+
[attr.tabindex]="reorderableColumns() ? 0 : null"
|
|
974
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
975
|
+
aerisTooltipEvent="hover"
|
|
976
|
+
aerisTooltipTruncatedOnly
|
|
977
|
+
[aerisTooltipShowDelay]="300"
|
|
978
|
+
(keydown)="handleHeaderKeydown(column.field, $event)"
|
|
979
|
+
>
|
|
980
|
+
{{ column.header }}
|
|
981
|
+
</span>
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
@if (resizableColumns() && columnIndex < columns().length - 1) {
|
|
985
|
+
<span
|
|
986
|
+
class="aeris-table__resize"
|
|
987
|
+
role="separator"
|
|
988
|
+
tabindex="0"
|
|
989
|
+
aria-orientation="vertical"
|
|
990
|
+
[attr.aria-label]="'Resize ' + column.header + ' column'"
|
|
991
|
+
[attr.aria-valuemin]="minColumnWidth()"
|
|
992
|
+
[attr.aria-valuetext]="column.width || 'Automatic width'"
|
|
993
|
+
[attr.data-resizing]="resizingField() === column.field ? true : null"
|
|
994
|
+
(pointerdown)="handleResizeStart(column.field, columnIndex, $event)"
|
|
995
|
+
(keydown)="handleResizeKeydown(column.field, $event)"
|
|
996
|
+
></span>
|
|
997
|
+
}
|
|
998
|
+
</th>
|
|
999
|
+
}
|
|
1000
|
+
</tr>
|
|
1001
|
+
@if (columnFilter()) {
|
|
1002
|
+
<tr class="aeris-table__filter-row">
|
|
1003
|
+
@if (expandableRows()) {
|
|
1004
|
+
<th class="aeris-table__control-cell" scope="col"></th>
|
|
1005
|
+
}
|
|
1006
|
+
@if (selectionMode() && selectionControl() === 'control') {
|
|
1007
|
+
<th class="aeris-table__control-cell" scope="col"></th>
|
|
1008
|
+
}
|
|
1009
|
+
@for (column of columns(); track column.field) {
|
|
1010
|
+
<th scope="col" [attr.data-align]="column.align || 'start'">
|
|
1011
|
+
@if (column.filterable !== false) {
|
|
1012
|
+
<label>
|
|
1013
|
+
<span class="aeris-table__sr">Filter {{ column.header }}</span>
|
|
1014
|
+
<input
|
|
1015
|
+
type="search"
|
|
1016
|
+
[value]="columnFilterValue(column.field)"
|
|
1017
|
+
[placeholder]="columnFilterPlaceholderText(column)"
|
|
1018
|
+
(input)="handleColumnFilterInput(column.field, $event)"
|
|
1019
|
+
/>
|
|
1020
|
+
</label>
|
|
1021
|
+
}
|
|
1022
|
+
</th>
|
|
1023
|
+
}
|
|
1024
|
+
</tr>
|
|
1025
|
+
}
|
|
1026
|
+
</thead>
|
|
1027
|
+
<tbody>
|
|
1028
|
+
@if (loading()) {
|
|
1029
|
+
<tr>
|
|
1030
|
+
<td [attr.colspan]="columnSpan()">
|
|
1031
|
+
<div class="aeris-table__message" role="status">
|
|
1032
|
+
@if (loadingTemplate(); as customLoading) {
|
|
1033
|
+
<ng-container [ngTemplateOutlet]="customLoading.template" />
|
|
1034
|
+
} @else {
|
|
1035
|
+
<span class="aeris-table__spinner" aria-hidden="true"></span>
|
|
1036
|
+
{{ loadingMessage() }}
|
|
1037
|
+
}
|
|
1038
|
+
</div>
|
|
1039
|
+
</td>
|
|
1040
|
+
</tr>
|
|
1041
|
+
} @else if (!pageRows().length) {
|
|
1042
|
+
<tr>
|
|
1043
|
+
<td [attr.colspan]="columnSpan()">
|
|
1044
|
+
<div class="aeris-table__message" role="status">
|
|
1045
|
+
@if (emptyTemplate(); as customEmpty) {
|
|
1046
|
+
<ng-container [ngTemplateOutlet]="customEmpty.template" />
|
|
1047
|
+
} @else {
|
|
1048
|
+
{{ emptyMessage() }}
|
|
1049
|
+
}
|
|
1050
|
+
</div>
|
|
1051
|
+
</td>
|
|
1052
|
+
</tr>
|
|
1053
|
+
} @else {
|
|
1054
|
+
@for (row of pageRows(); track rowKey(row); let rowIndex = $index) {
|
|
1055
|
+
<tr
|
|
1056
|
+
[attr.data-selected]="isSelected(row) || null"
|
|
1057
|
+
[attr.data-expanded]="isExpanded(row) || null"
|
|
1058
|
+
[attr.data-context-menu-active]="isContextMenuRow(row) || null"
|
|
1059
|
+
[attr.data-context-menu-disabled]="
|
|
1060
|
+
contextMenuRowDisabled(row, first() + rowIndex) || null
|
|
1061
|
+
"
|
|
1062
|
+
[attr.tabindex]="rowNavigation() ? 0 : null"
|
|
1063
|
+
[class.aeris-table__selectable-row]="
|
|
1064
|
+
selectionMode() && selectionControl() === 'row'
|
|
1065
|
+
"
|
|
1066
|
+
(click)="handleRowClick(row, $event)"
|
|
1067
|
+
(contextmenu)="handleRowContextMenu(row, first() + rowIndex, $event)"
|
|
1068
|
+
(dblclick)="handleRowDoubleClick($event)"
|
|
1069
|
+
(keydown)="handleRowKeydown($event, row)"
|
|
1070
|
+
>
|
|
1071
|
+
@if (expandableRows()) {
|
|
1072
|
+
<td class="aeris-table__control-cell">
|
|
1073
|
+
<button
|
|
1074
|
+
class="aeris-table__icon-button"
|
|
1075
|
+
type="button"
|
|
1076
|
+
[attr.aria-label]="
|
|
1077
|
+
isExpanded(row) ? collapseRowAriaLabel() : expandRowAriaLabel()
|
|
1078
|
+
"
|
|
1079
|
+
[attr.aria-expanded]="isExpanded(row)"
|
|
1080
|
+
(click)="toggleExpanded(row)"
|
|
1081
|
+
>
|
|
1082
|
+
<span aria-hidden="true"></span>
|
|
1083
|
+
</button>
|
|
1084
|
+
</td>
|
|
1085
|
+
}
|
|
1086
|
+
@if (selectionMode() && selectionControl() === 'control') {
|
|
1087
|
+
<td class="aeris-table__control-cell">
|
|
1088
|
+
@if (selectionMode() === 'multiple') {
|
|
1089
|
+
<aeris-checkbox
|
|
1090
|
+
size="sm"
|
|
1091
|
+
[checked]="isSelected(row)"
|
|
1092
|
+
[ariaLabel]="rowSelectionAriaLabel()"
|
|
1093
|
+
(changed)="toggleRow(row, $event.originalEvent)"
|
|
1094
|
+
/>
|
|
1095
|
+
} @else {
|
|
1096
|
+
<input
|
|
1097
|
+
type="radio"
|
|
1098
|
+
[name]="tableId"
|
|
1099
|
+
[checked]="isSelected(row)"
|
|
1100
|
+
[attr.aria-label]="rowSelectionAriaLabel()"
|
|
1101
|
+
(change)="toggleRow(row, $event)"
|
|
1102
|
+
/>
|
|
1103
|
+
}
|
|
1104
|
+
</td>
|
|
1105
|
+
}
|
|
1106
|
+
@for (column of columns(); track column.field) {
|
|
1107
|
+
<td
|
|
1108
|
+
[attr.data-label]="column.header"
|
|
1109
|
+
[attr.data-align]="column.align || 'start'"
|
|
1110
|
+
[attr.data-editable]="editable() || null"
|
|
1111
|
+
(dblclick)="startCellEdit(row, column, $event)"
|
|
1112
|
+
>
|
|
1113
|
+
@if (isEditing(row, column.field)) {
|
|
1114
|
+
<input
|
|
1115
|
+
class="aeris-table__cell-editor"
|
|
1116
|
+
type="text"
|
|
1117
|
+
[value]="editValue()"
|
|
1118
|
+
(input)="editValue.set($any($event.target).value)"
|
|
1119
|
+
(keydown)="handleEditKeydown($event, row, column.field)"
|
|
1120
|
+
(blur)="commitCellEdit($event, row, column.field)"
|
|
1121
|
+
autofocus
|
|
1122
|
+
/>
|
|
1123
|
+
} @else {
|
|
1124
|
+
<div
|
|
1125
|
+
class="aeris-table__cell-content"
|
|
1126
|
+
[aerisTooltip]="
|
|
1127
|
+
showOverflowTooltip() ? displayValue(row, column.field) : ''
|
|
1128
|
+
"
|
|
1129
|
+
aerisTooltipEvent="hover"
|
|
1130
|
+
aerisTooltipTruncatedOnly
|
|
1131
|
+
[aerisTooltipShowDelay]="300"
|
|
1132
|
+
>
|
|
1133
|
+
@if (cellTemplate(); as cell) {
|
|
1134
|
+
<ng-container
|
|
1135
|
+
[ngTemplateOutlet]="cell.template"
|
|
1136
|
+
[ngTemplateOutletContext]="{
|
|
1137
|
+
$implicit: value(row, column.field),
|
|
1138
|
+
value: value(row, column.field),
|
|
1139
|
+
row,
|
|
1140
|
+
column,
|
|
1141
|
+
rowIndex: first() + rowIndex,
|
|
1142
|
+
}"
|
|
1143
|
+
/>
|
|
1144
|
+
} @else {
|
|
1145
|
+
<span class="aeris-table__cell-value">
|
|
1146
|
+
{{ displayValue(row, column.field) }}
|
|
1147
|
+
</span>
|
|
1148
|
+
}
|
|
1149
|
+
</div>
|
|
1150
|
+
}
|
|
1151
|
+
</td>
|
|
1152
|
+
}
|
|
1153
|
+
</tr>
|
|
1154
|
+
@if (expandableRows() && isExpanded(row)) {
|
|
1155
|
+
<tr class="aeris-table__expansion-row">
|
|
1156
|
+
<td [attr.colspan]="columnSpan()">
|
|
1157
|
+
@if (expansionTemplate(); as expansion) {
|
|
1158
|
+
<ng-container
|
|
1159
|
+
[ngTemplateOutlet]="expansion.template"
|
|
1160
|
+
[ngTemplateOutletContext]="{
|
|
1161
|
+
$implicit: row,
|
|
1162
|
+
row,
|
|
1163
|
+
rowIndex: first() + rowIndex,
|
|
1164
|
+
}"
|
|
1165
|
+
/>
|
|
1166
|
+
} @else {
|
|
1167
|
+
{{ expandedRowFallback(row) }}
|
|
1168
|
+
}
|
|
1169
|
+
</td>
|
|
1170
|
+
</tr>
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
</tbody>
|
|
1175
|
+
</table>
|
|
1176
|
+
</div>
|
|
1177
|
+
</div>
|
|
1178
|
+
|
|
1179
|
+
@if (paginator()) {
|
|
1180
|
+
<aeris-paginator
|
|
1181
|
+
[ariaLabel]="paginatorAriaLabel()"
|
|
1182
|
+
[(first)]="first"
|
|
1183
|
+
[(rows)]="rows"
|
|
1184
|
+
[totalRecords]="filteredSortedRows().length"
|
|
1185
|
+
[pageLinkSize]="pageLinkSize()"
|
|
1186
|
+
[rowsPerPageOptions]="rowsPerPageOptions()"
|
|
1187
|
+
(page)="handlePage($event)"
|
|
1188
|
+
/>
|
|
1189
|
+
}
|
|
1190
|
+
</div>
|
|
1191
|
+
`, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0}.aeris-table{--aeris-table-density-gap: var(--aeris-density-gap, .5rem);--aeris-table-cell-padding-y: var(--aeris-item-padding-y, .5rem);--aeris-table-cell-padding-x: var(--aeris-item-padding-x, .75rem);--aeris-table-filter-height: var(--aeris-control-height, 2.625rem);--aeris-table-filter-padding-x: var(--aeris-control-padding-x, .75rem);--aeris-table-editor-height: max( 1.75rem, calc(var(--aeris-control-height, 2.625rem) - .625rem) );--aeris-table-action-size: max( 1.75rem, calc(var(--aeris-control-height, 2.625rem) - .75rem) );--aeris-table-stack-row-height: calc(var(--aeris-item-height, 2.5rem) + .5rem);display:grid;gap:calc(var(--aeris-table-density-gap) + .35rem);color:var(--aeris-text, #222222)}.aeris-table[data-fluid]{width:100%}.aeris-table__caption{color:var(--aeris-text-2, #555555);font-size:.875rem}.aeris-table__filter{width:min(100%,22rem);display:grid;gap:calc(var(--aeris-table-density-gap) * .7);color:var(--aeris-text-2, #555555);font-size:.8125rem;font-weight:600}.aeris-table__filter input{min-height:var(--aeris-table-filter-height);padding:0 var(--aeris-table-filter-padding-x);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .5rem);background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}.aeris-table__filter input:focus{border-color:var(--aeris-focus, #536437);outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent)}.aeris-table__frame{min-width:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-table-radius, var(--aeris-radius-md, .75rem));background:var(--aeris-surface, #fff);overflow:hidden}.aeris-table__viewport{min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-table__viewport[data-scrollable]{max-height:var(--aeris-table-scroll-height, 24rem)}.aeris-table__frame:has(.aeris-table__viewport:focus-visible){outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 34%,transparent);outline-offset:2px}.aeris-table__viewport:focus-visible{outline:0}.aeris-table__viewport::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-table__viewport::-webkit-scrollbar-track,.aeris-table__viewport::-webkit-scrollbar-corner{background:transparent}.aeris-table__viewport::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-table__viewport::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--aeris-text-2, #555555) 62%,transparent);background-clip:content-box}table{width:100%;min-width:44rem;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.875rem}caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}th,td{box-sizing:border-box;padding:var(--aeris-table-cell-padding-y) var(--aeris-table-cell-padding-x);border:0;border-block-end:1px solid var(--aeris-border, #deddd7);text-align:left;vertical-align:middle}td{overflow:hidden;cursor:default}.aeris-table__cell-value{display:inline;white-space:inherit}.aeris-table__cell-content{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th{position:sticky;z-index:1;top:0;background:var(--aeris-surface-2, #f7f5f1);color:var(--aeris-text-2, #555555);font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;overflow:visible}.aeris-table__header-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-table__resize{position:absolute;z-index:5;inset-block:0;inset-inline-end:0;width:.75rem;cursor:col-resize;touch-action:none}.aeris-table__resize:before{position:absolute;inset-block:.25rem;inset-inline-end:-.0625rem;width:.125rem;border-radius:var(--aeris-radius-pill, 999px);background:transparent;content:\"\";transition:background-color .12s ease}th[data-resizing-column],th:has(>.aeris-table__resize:hover),th:has(>.aeris-table__resize:focus-visible){z-index:6}.aeris-table__resize:hover:before,.aeris-table__resize:focus-visible:before,.aeris-table__resize[data-resizing]:before{background:color-mix(in srgb,var(--aeris-focus, #536437) 36%,transparent)}.aeris-table__resize:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}.aeris-table__filter-row th{position:static;top:auto;padding-block:calc(var(--aeris-table-cell-padding-y) * .8);background:var(--aeris-surface, #fff)}.aeris-table__filter-row input,.aeris-table__cell-editor{width:100%;min-height:var(--aeris-table-editor-height);padding:0 calc(var(--aeris-table-filter-padding-x) * .75);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .4375rem);background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}.aeris-table__filter-row input:focus,.aeris-table__cell-editor:focus{border-color:var(--aeris-focus, #536437);outline:2px solid color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent)}tbody tr:last-child td,.aeris-table__expansion-row td{border-block-end:0}tbody tr:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}.aeris-table__selectable-row{cursor:pointer}.aeris-table[data-striped] tbody tr:nth-child(odd):not(.aeris-table__expansion-row) td{background:color-mix(in srgb,var(--aeris-surface-2, #f7f5f1) 55%,transparent)}.aeris-table[data-hoverable] tbody tr:hover:not(.aeris-table__expansion-row) td{background:var(--aeris-table-row-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)))}.aeris-table tbody tr[data-context-menu-active] td{background:color-mix(in srgb,var(--aeris-primary, #879566) 12%,transparent)}td[data-editable]{position:relative;padding-inline-end:calc(var(--aeris-table-cell-padding-x) + 1.1rem);cursor:text;transition:background-color .14s ease,box-shadow .14s ease}td[data-editable]:after{position:absolute;inset-inline-end:calc(var(--aeris-table-cell-padding-x) * .55);top:50%;width:.8rem;height:.8rem;background:currentColor;color:var(--aeris-text-3, var(--aeris-text-2, #555555));content:\"\";opacity:.42;transform:translateY(-50%);transition:color .14s ease,opacity .14s ease;-webkit-mask:var(--aeris-icon-edit) center/100% 100% no-repeat;mask:var(--aeris-icon-edit) center/100% 100% no-repeat}td[data-editable]:hover,td[data-editable]:focus-within{background:color-mix(in srgb,var(--aeris-primary, #879566) 7%,var(--aeris-surface, #fff));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--aeris-primary, #879566) 34%,transparent)}td[data-editable]:hover:after,td[data-editable]:focus-within:after{color:var(--aeris-primary-text, #566137);opacity:1}.aeris-table[data-gridlines] th,.aeris-table[data-gridlines] td{border-inline-end:1px solid var(--aeris-border, #deddd7)}.aeris-table[data-gridlines] th:last-child,.aeris-table[data-gridlines] td:last-child{border-inline-end:0}.aeris-table[data-size=sm]{--aeris-table-cell-padding-y: calc(var(--aeris-item-padding-y, .5rem) * .78);--aeris-table-cell-padding-x: calc(var(--aeris-item-padding-x, .75rem) * .85);--aeris-table-action-size: max( 1.625rem, calc(var(--aeris-control-height, 2.625rem) - .875rem) )}.aeris-table[data-size=sm] th,.aeris-table[data-size=sm] td{font-size:.8125rem}.aeris-table[data-size=lg]{--aeris-table-cell-padding-y: calc(var(--aeris-item-padding-y, .5rem) * 1.2);--aeris-table-cell-padding-x: calc(var(--aeris-item-padding-x, .75rem) * 1.2);--aeris-table-action-size: max( 2rem, calc(var(--aeris-control-height, 2.625rem) - .625rem) )}[data-align=center]{text-align:center}[data-align=end]{text-align:right}.aeris-table__sort{width:100%;min-width:0;display:inline-flex;align-items:center;justify-content:inherit;gap:calc(var(--aeris-table-density-gap) * .9);padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}.aeris-table__sort .aeris-table__header-label{flex:1 1 auto}.aeris-table__sort:hover{color:var(--aeris-primary-text, #566137)}.aeris-table__sort:focus-visible,.aeris-table__icon-button:focus-visible,.aeris-table__paginator button:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:2px}.aeris-table__sort-mark{width:.75rem;height:1rem;display:inline-grid;place-items:center;color:var(--aeris-text-2, #555555);opacity:.55;position:relative}.aeris-table__sort-mark span{position:absolute;width:.75rem;height:.75rem}.aeris-table__sort-mark span:first-child{transform:translateY(-.18rem)}.aeris-table__sort-mark span:last-child{transform:translateY(.18rem)}.aeris-table__sort-mark span:before{position:absolute;top:50%;left:50%;width:.75rem;height:.75rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-table__sort-mark span:first-child:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-table__sort-mark[data-direction=asc],.aeris-table__sort-mark[data-direction=desc]{color:var(--aeris-primary-text, #566137);opacity:1}.aeris-table__sort-mark[data-direction=asc] span:last-child,.aeris-table__sort-mark[data-direction=desc] span:first-child{opacity:.25}.aeris-table__control-cell{width:calc(var(--aeris-table-action-size) + var(--aeris-table-cell-padding-x));padding-inline:calc(var(--aeris-table-cell-padding-x) * .75);text-align:center}.aeris-table__control-cell input[type=radio]{width:1.125rem;height:1.125rem;margin:0;border:1.5px solid var(--aeris-border-strong, #aeb2a8);background:var(--aeris-surface, #fff);cursor:pointer;vertical-align:middle}.aeris-table__control-cell input[type=radio]{-webkit-appearance:none;appearance:none;border-radius:50%}.aeris-table__control-cell input[type=radio]:checked{border:.3125rem solid var(--aeris-primary, #768653);background:transparent}.aeris-table__control-cell input:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 42%,transparent);outline-offset:2px}.aeris-table__control-cell aeris-checkbox{line-height:0}.aeris-table__icon-button{width:var(--aeris-table-action-size);height:var(--aeris-table-action-size);display:inline-grid;place-items:center;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .4375rem);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-table__icon-button span{position:relative;width:1rem;height:1rem}.aeris-table__icon-button span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}tr[data-expanded] .aeris-table__icon-button span:before{transform:translate(-50%,-50%) rotate(180deg)}tr[data-selected] td{background:color-mix(in srgb,var(--aeris-primary, #879566) 12%,transparent)}.aeris-table__expansion-row td{background:var(--aeris-surface-2, #f7f5f1);color:var(--aeris-text-2, #555555);line-height:1.6}.aeris-table__message{min-height:7rem;display:flex;align-items:center;justify-content:center;gap:var(--aeris-table-density-gap);color:var(--aeris-text-2, #555555)}.aeris-table__spinner{width:1rem;height:1rem;border:2px solid color-mix(in srgb,currentColor 24%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-table-spin .8s linear infinite}.aeris-table__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media(max-width:42rem){.aeris-table[data-responsive=stack] .aeris-table__frame{border:0;background:transparent;overflow:visible}.aeris-table[data-responsive=stack] .aeris-table__viewport{overflow:visible}.aeris-table[data-responsive=stack] table{min-width:0;display:block}.aeris-table[data-responsive=stack] thead,.aeris-table[data-responsive=stack] caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.aeris-table[data-responsive=stack] tbody{display:grid;gap:calc(var(--aeris-table-density-gap) + .25rem)}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row){display:grid;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-table-radius, var(--aeris-radius-md, .75rem));background:var(--aeris-surface, #fff);overflow:hidden}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row) td{display:grid;grid-template-columns:minmax(7rem,.42fr) minmax(0,1fr);align-items:center;gap:calc(var(--aeris-table-density-gap) + .25rem);min-height:var(--aeris-table-stack-row-height);border-block-end:1px solid var(--aeris-border, #deddd7);background:transparent;text-align:left}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row) td:last-child{border-block-end:0}.aeris-table[data-responsive=stack][data-striped] tbody tr:nth-child(odd):not(.aeris-table__expansion-row) td,.aeris-table[data-responsive=stack][data-hoverable] tbody tr:hover:not(.aeris-table__expansion-row) td,.aeris-table[data-responsive=stack] tbody tr[data-context-menu-active] td,.aeris-table[data-responsive=stack] tr[data-selected] td{background:transparent}.aeris-table[data-responsive=stack] .aeris-table__expansion-row{display:block;margin-top:calc(-1 * (var(--aeris-table-density-gap) + .25rem));border:1px solid var(--aeris-border, #deddd7);border-block-start:0;border-radius:0 0 var(--aeris-table-radius, var(--aeris-radius-md, .75rem)) var(--aeris-table-radius, var(--aeris-radius-md, .75rem));background:var(--aeris-surface-2, #f7f5f1);overflow:hidden}.aeris-table[data-responsive=stack] .aeris-table__expansion-row td,.aeris-table[data-responsive=stack] .aeris-table__message{display:block}.aeris-table[data-responsive=stack] .aeris-table__expansion-row td:before{content:\"\"}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row) td:before{color:var(--aeris-text-2, #555555);font-size:.75rem;font-weight:700;text-align:left;content:attr(data-label)}.aeris-table[data-responsive=stack] .aeris-table__control-cell{display:flex;justify-content:flex-end;width:auto}.aeris-table[data-responsive=stack] .aeris-table__control-cell:before{content:\"\"}}@media(prefers-reduced-motion:reduce){td[data-editable],td[data-editable]:after,.aeris-table__resize:before,.aeris-table__spinner{transition:none;animation:none}}@keyframes aeris-table-spin{to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AerisCheckbox, selector: "aeris-checkbox", inputs: ["checked", "indeterminate", "inputId", "name", "value", "label", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "size", "labelPosition", "disabled", "required", "invalid", "tabIndex"], outputs: ["checkedChange", "indeterminateChange", "checkedInput", "changed", "focused", "blurred", "touch"] }, { kind: "component", type: AerisPaginator, selector: "aeris-paginator", inputs: ["first", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "ariaLabel", "rowsPerPageLabel"], outputs: ["firstChange", "rowsChange", "page"] }, { kind: "directive", type: AerisTooltip, selector: "[aerisTooltip]", inputs: ["aerisTooltip", "aerisTooltipPosition", "aerisTooltipEvent", "aerisTooltipShowDelay", "aerisTooltipHideDelay", "aerisTooltipDisabled", "aerisTooltipAutoHide", "aerisTooltipOffset", "aerisTooltipViewportMargin", "aerisTooltipMaxWidth", "aerisTooltipStyleClass", "aerisTooltipTruncatedOnly"], outputs: ["aerisTooltipShown", "aerisTooltipHidden"], exportAs: ["aerisTooltip"] }] });
|
|
1192
|
+
}
|
|
1193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTable, decorators: [{
|
|
1194
|
+
type: Component,
|
|
1195
|
+
args: [{ selector: 'aeris-table', imports: [NgTemplateOutlet, AerisCheckbox, AerisPaginator, AerisTooltip], template: `
|
|
1196
|
+
<div
|
|
1197
|
+
class="aeris-table"
|
|
1198
|
+
[attr.data-size]="size()"
|
|
1199
|
+
[attr.data-striped]="striped() || null"
|
|
1200
|
+
[attr.data-gridlines]="gridlines() || null"
|
|
1201
|
+
[attr.data-hoverable]="hoverable() || null"
|
|
1202
|
+
[attr.data-responsive]="responsiveMode()"
|
|
1203
|
+
[attr.data-fluid]="fluid() || null"
|
|
1204
|
+
[attr.aria-busy]="loading() || null"
|
|
1205
|
+
[style.--aeris-table-scroll-height]="scrollHeight() || null"
|
|
1206
|
+
>
|
|
1207
|
+
@if (caption()) {
|
|
1208
|
+
<div class="aeris-table__caption">{{ caption() }}</div>
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
@if (globalFilter()) {
|
|
1212
|
+
<label class="aeris-table__filter">
|
|
1213
|
+
<span>{{ filterLabel() }}</span>
|
|
1214
|
+
<input
|
|
1215
|
+
type="search"
|
|
1216
|
+
[value]="filterValue()"
|
|
1217
|
+
[placeholder]="filterPlaceholder()"
|
|
1218
|
+
(input)="handleFilterInput($event)"
|
|
1219
|
+
/>
|
|
1220
|
+
</label>
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
<div class="aeris-table__frame">
|
|
1224
|
+
<div
|
|
1225
|
+
class="aeris-table__viewport"
|
|
1226
|
+
tabindex="0"
|
|
1227
|
+
[attr.data-scrollable]="scrollable() || null"
|
|
1228
|
+
>
|
|
1229
|
+
<table>
|
|
1230
|
+
@if (caption()) {
|
|
1231
|
+
<caption>
|
|
1232
|
+
{{
|
|
1233
|
+
caption()
|
|
1234
|
+
}}
|
|
1235
|
+
</caption>
|
|
1236
|
+
}
|
|
1237
|
+
<thead>
|
|
1238
|
+
<tr>
|
|
1239
|
+
@if (expandableRows()) {
|
|
1240
|
+
<th class="aeris-table__control-cell" scope="col">
|
|
1241
|
+
<span class="aeris-table__sr">Toggle row details</span>
|
|
1242
|
+
</th>
|
|
1243
|
+
}
|
|
1244
|
+
@if (selectionMode() && selectionControl() === 'control') {
|
|
1245
|
+
<th class="aeris-table__control-cell" scope="col">
|
|
1246
|
+
@if (selectionMode() === 'multiple' && selectionControl() === 'control') {
|
|
1247
|
+
<aeris-checkbox
|
|
1248
|
+
size="sm"
|
|
1249
|
+
[checked]="allVisibleRowsSelected()"
|
|
1250
|
+
[indeterminate]="someVisibleRowsSelected()"
|
|
1251
|
+
[ariaLabel]="selectAllAriaLabel()"
|
|
1252
|
+
(changed)="toggleVisibleRows($event.originalEvent)"
|
|
1253
|
+
/>
|
|
1254
|
+
} @else {
|
|
1255
|
+
<span class="aeris-table__sr">Select row</span>
|
|
1256
|
+
}
|
|
1257
|
+
</th>
|
|
1258
|
+
}
|
|
1259
|
+
@for (column of columns(); track column.field; let columnIndex = $index) {
|
|
1260
|
+
<th
|
|
1261
|
+
scope="col"
|
|
1262
|
+
[attr.data-field]="column.field"
|
|
1263
|
+
[attr.data-resizing-column]="resizingField() === column.field ? true : null"
|
|
1264
|
+
[style.width]="column.width || null"
|
|
1265
|
+
[attr.data-align]="column.align || 'start'"
|
|
1266
|
+
[attr.aria-sort]="ariaSort(column)"
|
|
1267
|
+
[attr.draggable]="reorderableColumns() ? true : null"
|
|
1268
|
+
(dragstart)="handleColumnDragStart(column.field, $event)"
|
|
1269
|
+
(dragover)="handleColumnDragOver($event)"
|
|
1270
|
+
(drop)="handleColumnDrop(column.field, $event)"
|
|
1271
|
+
(dragend)="handleColumnDragEnd()"
|
|
1272
|
+
>
|
|
1273
|
+
@if (column.sortable) {
|
|
1274
|
+
<button
|
|
1275
|
+
class="aeris-table__sort"
|
|
1276
|
+
type="button"
|
|
1277
|
+
[attr.aria-label]="sortLabel(column)"
|
|
1278
|
+
(click)="toggleSort(column, $event)"
|
|
1279
|
+
(keydown)="handleHeaderKeydown(column.field, $event)"
|
|
1280
|
+
>
|
|
1281
|
+
@if (headerTemplate(); as header) {
|
|
1282
|
+
<span
|
|
1283
|
+
class="aeris-table__header-label"
|
|
1284
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
1285
|
+
aerisTooltipEvent="hover"
|
|
1286
|
+
aerisTooltipTruncatedOnly
|
|
1287
|
+
[aerisTooltipShowDelay]="300"
|
|
1288
|
+
>
|
|
1289
|
+
<ng-container
|
|
1290
|
+
[ngTemplateOutlet]="header.template"
|
|
1291
|
+
[ngTemplateOutletContext]="{ $implicit: column, column }"
|
|
1292
|
+
/>
|
|
1293
|
+
</span>
|
|
1294
|
+
} @else {
|
|
1295
|
+
<span
|
|
1296
|
+
class="aeris-table__header-label"
|
|
1297
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
1298
|
+
aerisTooltipEvent="hover"
|
|
1299
|
+
aerisTooltipTruncatedOnly
|
|
1300
|
+
[aerisTooltipShowDelay]="300"
|
|
1301
|
+
>
|
|
1302
|
+
{{ column.header }}
|
|
1303
|
+
</span>
|
|
1304
|
+
}
|
|
1305
|
+
<span
|
|
1306
|
+
class="aeris-table__sort-mark"
|
|
1307
|
+
[attr.data-direction]="
|
|
1308
|
+
sort()?.field === column.field ? sort()?.direction : null
|
|
1309
|
+
"
|
|
1310
|
+
aria-hidden="true"
|
|
1311
|
+
>
|
|
1312
|
+
<span></span>
|
|
1313
|
+
<span></span>
|
|
1314
|
+
</span>
|
|
1315
|
+
</button>
|
|
1316
|
+
} @else {
|
|
1317
|
+
@if (headerTemplate(); as header) {
|
|
1318
|
+
<span
|
|
1319
|
+
class="aeris-table__header-label"
|
|
1320
|
+
[attr.tabindex]="reorderableColumns() ? 0 : null"
|
|
1321
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
1322
|
+
aerisTooltipEvent="hover"
|
|
1323
|
+
aerisTooltipTruncatedOnly
|
|
1324
|
+
[aerisTooltipShowDelay]="300"
|
|
1325
|
+
(keydown)="handleHeaderKeydown(column.field, $event)"
|
|
1326
|
+
>
|
|
1327
|
+
<ng-container
|
|
1328
|
+
[ngTemplateOutlet]="header.template"
|
|
1329
|
+
[ngTemplateOutletContext]="{ $implicit: column, column }"
|
|
1330
|
+
/>
|
|
1331
|
+
</span>
|
|
1332
|
+
} @else {
|
|
1333
|
+
<span
|
|
1334
|
+
class="aeris-table__header-label"
|
|
1335
|
+
[attr.tabindex]="reorderableColumns() ? 0 : null"
|
|
1336
|
+
[aerisTooltip]="showOverflowTooltip() ? column.header : ''"
|
|
1337
|
+
aerisTooltipEvent="hover"
|
|
1338
|
+
aerisTooltipTruncatedOnly
|
|
1339
|
+
[aerisTooltipShowDelay]="300"
|
|
1340
|
+
(keydown)="handleHeaderKeydown(column.field, $event)"
|
|
1341
|
+
>
|
|
1342
|
+
{{ column.header }}
|
|
1343
|
+
</span>
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
@if (resizableColumns() && columnIndex < columns().length - 1) {
|
|
1347
|
+
<span
|
|
1348
|
+
class="aeris-table__resize"
|
|
1349
|
+
role="separator"
|
|
1350
|
+
tabindex="0"
|
|
1351
|
+
aria-orientation="vertical"
|
|
1352
|
+
[attr.aria-label]="'Resize ' + column.header + ' column'"
|
|
1353
|
+
[attr.aria-valuemin]="minColumnWidth()"
|
|
1354
|
+
[attr.aria-valuetext]="column.width || 'Automatic width'"
|
|
1355
|
+
[attr.data-resizing]="resizingField() === column.field ? true : null"
|
|
1356
|
+
(pointerdown)="handleResizeStart(column.field, columnIndex, $event)"
|
|
1357
|
+
(keydown)="handleResizeKeydown(column.field, $event)"
|
|
1358
|
+
></span>
|
|
1359
|
+
}
|
|
1360
|
+
</th>
|
|
1361
|
+
}
|
|
1362
|
+
</tr>
|
|
1363
|
+
@if (columnFilter()) {
|
|
1364
|
+
<tr class="aeris-table__filter-row">
|
|
1365
|
+
@if (expandableRows()) {
|
|
1366
|
+
<th class="aeris-table__control-cell" scope="col"></th>
|
|
1367
|
+
}
|
|
1368
|
+
@if (selectionMode() && selectionControl() === 'control') {
|
|
1369
|
+
<th class="aeris-table__control-cell" scope="col"></th>
|
|
1370
|
+
}
|
|
1371
|
+
@for (column of columns(); track column.field) {
|
|
1372
|
+
<th scope="col" [attr.data-align]="column.align || 'start'">
|
|
1373
|
+
@if (column.filterable !== false) {
|
|
1374
|
+
<label>
|
|
1375
|
+
<span class="aeris-table__sr">Filter {{ column.header }}</span>
|
|
1376
|
+
<input
|
|
1377
|
+
type="search"
|
|
1378
|
+
[value]="columnFilterValue(column.field)"
|
|
1379
|
+
[placeholder]="columnFilterPlaceholderText(column)"
|
|
1380
|
+
(input)="handleColumnFilterInput(column.field, $event)"
|
|
1381
|
+
/>
|
|
1382
|
+
</label>
|
|
1383
|
+
}
|
|
1384
|
+
</th>
|
|
1385
|
+
}
|
|
1386
|
+
</tr>
|
|
1387
|
+
}
|
|
1388
|
+
</thead>
|
|
1389
|
+
<tbody>
|
|
1390
|
+
@if (loading()) {
|
|
1391
|
+
<tr>
|
|
1392
|
+
<td [attr.colspan]="columnSpan()">
|
|
1393
|
+
<div class="aeris-table__message" role="status">
|
|
1394
|
+
@if (loadingTemplate(); as customLoading) {
|
|
1395
|
+
<ng-container [ngTemplateOutlet]="customLoading.template" />
|
|
1396
|
+
} @else {
|
|
1397
|
+
<span class="aeris-table__spinner" aria-hidden="true"></span>
|
|
1398
|
+
{{ loadingMessage() }}
|
|
1399
|
+
}
|
|
1400
|
+
</div>
|
|
1401
|
+
</td>
|
|
1402
|
+
</tr>
|
|
1403
|
+
} @else if (!pageRows().length) {
|
|
1404
|
+
<tr>
|
|
1405
|
+
<td [attr.colspan]="columnSpan()">
|
|
1406
|
+
<div class="aeris-table__message" role="status">
|
|
1407
|
+
@if (emptyTemplate(); as customEmpty) {
|
|
1408
|
+
<ng-container [ngTemplateOutlet]="customEmpty.template" />
|
|
1409
|
+
} @else {
|
|
1410
|
+
{{ emptyMessage() }}
|
|
1411
|
+
}
|
|
1412
|
+
</div>
|
|
1413
|
+
</td>
|
|
1414
|
+
</tr>
|
|
1415
|
+
} @else {
|
|
1416
|
+
@for (row of pageRows(); track rowKey(row); let rowIndex = $index) {
|
|
1417
|
+
<tr
|
|
1418
|
+
[attr.data-selected]="isSelected(row) || null"
|
|
1419
|
+
[attr.data-expanded]="isExpanded(row) || null"
|
|
1420
|
+
[attr.data-context-menu-active]="isContextMenuRow(row) || null"
|
|
1421
|
+
[attr.data-context-menu-disabled]="
|
|
1422
|
+
contextMenuRowDisabled(row, first() + rowIndex) || null
|
|
1423
|
+
"
|
|
1424
|
+
[attr.tabindex]="rowNavigation() ? 0 : null"
|
|
1425
|
+
[class.aeris-table__selectable-row]="
|
|
1426
|
+
selectionMode() && selectionControl() === 'row'
|
|
1427
|
+
"
|
|
1428
|
+
(click)="handleRowClick(row, $event)"
|
|
1429
|
+
(contextmenu)="handleRowContextMenu(row, first() + rowIndex, $event)"
|
|
1430
|
+
(dblclick)="handleRowDoubleClick($event)"
|
|
1431
|
+
(keydown)="handleRowKeydown($event, row)"
|
|
1432
|
+
>
|
|
1433
|
+
@if (expandableRows()) {
|
|
1434
|
+
<td class="aeris-table__control-cell">
|
|
1435
|
+
<button
|
|
1436
|
+
class="aeris-table__icon-button"
|
|
1437
|
+
type="button"
|
|
1438
|
+
[attr.aria-label]="
|
|
1439
|
+
isExpanded(row) ? collapseRowAriaLabel() : expandRowAriaLabel()
|
|
1440
|
+
"
|
|
1441
|
+
[attr.aria-expanded]="isExpanded(row)"
|
|
1442
|
+
(click)="toggleExpanded(row)"
|
|
1443
|
+
>
|
|
1444
|
+
<span aria-hidden="true"></span>
|
|
1445
|
+
</button>
|
|
1446
|
+
</td>
|
|
1447
|
+
}
|
|
1448
|
+
@if (selectionMode() && selectionControl() === 'control') {
|
|
1449
|
+
<td class="aeris-table__control-cell">
|
|
1450
|
+
@if (selectionMode() === 'multiple') {
|
|
1451
|
+
<aeris-checkbox
|
|
1452
|
+
size="sm"
|
|
1453
|
+
[checked]="isSelected(row)"
|
|
1454
|
+
[ariaLabel]="rowSelectionAriaLabel()"
|
|
1455
|
+
(changed)="toggleRow(row, $event.originalEvent)"
|
|
1456
|
+
/>
|
|
1457
|
+
} @else {
|
|
1458
|
+
<input
|
|
1459
|
+
type="radio"
|
|
1460
|
+
[name]="tableId"
|
|
1461
|
+
[checked]="isSelected(row)"
|
|
1462
|
+
[attr.aria-label]="rowSelectionAriaLabel()"
|
|
1463
|
+
(change)="toggleRow(row, $event)"
|
|
1464
|
+
/>
|
|
1465
|
+
}
|
|
1466
|
+
</td>
|
|
1467
|
+
}
|
|
1468
|
+
@for (column of columns(); track column.field) {
|
|
1469
|
+
<td
|
|
1470
|
+
[attr.data-label]="column.header"
|
|
1471
|
+
[attr.data-align]="column.align || 'start'"
|
|
1472
|
+
[attr.data-editable]="editable() || null"
|
|
1473
|
+
(dblclick)="startCellEdit(row, column, $event)"
|
|
1474
|
+
>
|
|
1475
|
+
@if (isEditing(row, column.field)) {
|
|
1476
|
+
<input
|
|
1477
|
+
class="aeris-table__cell-editor"
|
|
1478
|
+
type="text"
|
|
1479
|
+
[value]="editValue()"
|
|
1480
|
+
(input)="editValue.set($any($event.target).value)"
|
|
1481
|
+
(keydown)="handleEditKeydown($event, row, column.field)"
|
|
1482
|
+
(blur)="commitCellEdit($event, row, column.field)"
|
|
1483
|
+
autofocus
|
|
1484
|
+
/>
|
|
1485
|
+
} @else {
|
|
1486
|
+
<div
|
|
1487
|
+
class="aeris-table__cell-content"
|
|
1488
|
+
[aerisTooltip]="
|
|
1489
|
+
showOverflowTooltip() ? displayValue(row, column.field) : ''
|
|
1490
|
+
"
|
|
1491
|
+
aerisTooltipEvent="hover"
|
|
1492
|
+
aerisTooltipTruncatedOnly
|
|
1493
|
+
[aerisTooltipShowDelay]="300"
|
|
1494
|
+
>
|
|
1495
|
+
@if (cellTemplate(); as cell) {
|
|
1496
|
+
<ng-container
|
|
1497
|
+
[ngTemplateOutlet]="cell.template"
|
|
1498
|
+
[ngTemplateOutletContext]="{
|
|
1499
|
+
$implicit: value(row, column.field),
|
|
1500
|
+
value: value(row, column.field),
|
|
1501
|
+
row,
|
|
1502
|
+
column,
|
|
1503
|
+
rowIndex: first() + rowIndex,
|
|
1504
|
+
}"
|
|
1505
|
+
/>
|
|
1506
|
+
} @else {
|
|
1507
|
+
<span class="aeris-table__cell-value">
|
|
1508
|
+
{{ displayValue(row, column.field) }}
|
|
1509
|
+
</span>
|
|
1510
|
+
}
|
|
1511
|
+
</div>
|
|
1512
|
+
}
|
|
1513
|
+
</td>
|
|
1514
|
+
}
|
|
1515
|
+
</tr>
|
|
1516
|
+
@if (expandableRows() && isExpanded(row)) {
|
|
1517
|
+
<tr class="aeris-table__expansion-row">
|
|
1518
|
+
<td [attr.colspan]="columnSpan()">
|
|
1519
|
+
@if (expansionTemplate(); as expansion) {
|
|
1520
|
+
<ng-container
|
|
1521
|
+
[ngTemplateOutlet]="expansion.template"
|
|
1522
|
+
[ngTemplateOutletContext]="{
|
|
1523
|
+
$implicit: row,
|
|
1524
|
+
row,
|
|
1525
|
+
rowIndex: first() + rowIndex,
|
|
1526
|
+
}"
|
|
1527
|
+
/>
|
|
1528
|
+
} @else {
|
|
1529
|
+
{{ expandedRowFallback(row) }}
|
|
1530
|
+
}
|
|
1531
|
+
</td>
|
|
1532
|
+
</tr>
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
</tbody>
|
|
1537
|
+
</table>
|
|
1538
|
+
</div>
|
|
1539
|
+
</div>
|
|
1540
|
+
|
|
1541
|
+
@if (paginator()) {
|
|
1542
|
+
<aeris-paginator
|
|
1543
|
+
[ariaLabel]="paginatorAriaLabel()"
|
|
1544
|
+
[(first)]="first"
|
|
1545
|
+
[(rows)]="rows"
|
|
1546
|
+
[totalRecords]="filteredSortedRows().length"
|
|
1547
|
+
[pageLinkSize]="pageLinkSize()"
|
|
1548
|
+
[rowsPerPageOptions]="rowsPerPageOptions()"
|
|
1549
|
+
(page)="handlePage($event)"
|
|
1550
|
+
/>
|
|
1551
|
+
}
|
|
1552
|
+
</div>
|
|
1553
|
+
`, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0}.aeris-table{--aeris-table-density-gap: var(--aeris-density-gap, .5rem);--aeris-table-cell-padding-y: var(--aeris-item-padding-y, .5rem);--aeris-table-cell-padding-x: var(--aeris-item-padding-x, .75rem);--aeris-table-filter-height: var(--aeris-control-height, 2.625rem);--aeris-table-filter-padding-x: var(--aeris-control-padding-x, .75rem);--aeris-table-editor-height: max( 1.75rem, calc(var(--aeris-control-height, 2.625rem) - .625rem) );--aeris-table-action-size: max( 1.75rem, calc(var(--aeris-control-height, 2.625rem) - .75rem) );--aeris-table-stack-row-height: calc(var(--aeris-item-height, 2.5rem) + .5rem);display:grid;gap:calc(var(--aeris-table-density-gap) + .35rem);color:var(--aeris-text, #222222)}.aeris-table[data-fluid]{width:100%}.aeris-table__caption{color:var(--aeris-text-2, #555555);font-size:.875rem}.aeris-table__filter{width:min(100%,22rem);display:grid;gap:calc(var(--aeris-table-density-gap) * .7);color:var(--aeris-text-2, #555555);font-size:.8125rem;font-weight:600}.aeris-table__filter input{min-height:var(--aeris-table-filter-height);padding:0 var(--aeris-table-filter-padding-x);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .5rem);background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}.aeris-table__filter input:focus{border-color:var(--aeris-focus, #536437);outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent)}.aeris-table__frame{min-width:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-table-radius, var(--aeris-radius-md, .75rem));background:var(--aeris-surface, #fff);overflow:hidden}.aeris-table__viewport{min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-table__viewport[data-scrollable]{max-height:var(--aeris-table-scroll-height, 24rem)}.aeris-table__frame:has(.aeris-table__viewport:focus-visible){outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 34%,transparent);outline-offset:2px}.aeris-table__viewport:focus-visible{outline:0}.aeris-table__viewport::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-table__viewport::-webkit-scrollbar-track,.aeris-table__viewport::-webkit-scrollbar-corner{background:transparent}.aeris-table__viewport::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-table__viewport::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--aeris-text-2, #555555) 62%,transparent);background-clip:content-box}table{width:100%;min-width:44rem;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.875rem}caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}th,td{box-sizing:border-box;padding:var(--aeris-table-cell-padding-y) var(--aeris-table-cell-padding-x);border:0;border-block-end:1px solid var(--aeris-border, #deddd7);text-align:left;vertical-align:middle}td{overflow:hidden;cursor:default}.aeris-table__cell-value{display:inline;white-space:inherit}.aeris-table__cell-content{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th{position:sticky;z-index:1;top:0;background:var(--aeris-surface-2, #f7f5f1);color:var(--aeris-text-2, #555555);font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;overflow:visible}.aeris-table__header-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-table__resize{position:absolute;z-index:5;inset-block:0;inset-inline-end:0;width:.75rem;cursor:col-resize;touch-action:none}.aeris-table__resize:before{position:absolute;inset-block:.25rem;inset-inline-end:-.0625rem;width:.125rem;border-radius:var(--aeris-radius-pill, 999px);background:transparent;content:\"\";transition:background-color .12s ease}th[data-resizing-column],th:has(>.aeris-table__resize:hover),th:has(>.aeris-table__resize:focus-visible){z-index:6}.aeris-table__resize:hover:before,.aeris-table__resize:focus-visible:before,.aeris-table__resize[data-resizing]:before{background:color-mix(in srgb,var(--aeris-focus, #536437) 36%,transparent)}.aeris-table__resize:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}.aeris-table__filter-row th{position:static;top:auto;padding-block:calc(var(--aeris-table-cell-padding-y) * .8);background:var(--aeris-surface, #fff)}.aeris-table__filter-row input,.aeris-table__cell-editor{width:100%;min-height:var(--aeris-table-editor-height);padding:0 calc(var(--aeris-table-filter-padding-x) * .75);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .4375rem);background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}.aeris-table__filter-row input:focus,.aeris-table__cell-editor:focus{border-color:var(--aeris-focus, #536437);outline:2px solid color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent)}tbody tr:last-child td,.aeris-table__expansion-row td{border-block-end:0}tbody tr:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}.aeris-table__selectable-row{cursor:pointer}.aeris-table[data-striped] tbody tr:nth-child(odd):not(.aeris-table__expansion-row) td{background:color-mix(in srgb,var(--aeris-surface-2, #f7f5f1) 55%,transparent)}.aeris-table[data-hoverable] tbody tr:hover:not(.aeris-table__expansion-row) td{background:var(--aeris-table-row-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)))}.aeris-table tbody tr[data-context-menu-active] td{background:color-mix(in srgb,var(--aeris-primary, #879566) 12%,transparent)}td[data-editable]{position:relative;padding-inline-end:calc(var(--aeris-table-cell-padding-x) + 1.1rem);cursor:text;transition:background-color .14s ease,box-shadow .14s ease}td[data-editable]:after{position:absolute;inset-inline-end:calc(var(--aeris-table-cell-padding-x) * .55);top:50%;width:.8rem;height:.8rem;background:currentColor;color:var(--aeris-text-3, var(--aeris-text-2, #555555));content:\"\";opacity:.42;transform:translateY(-50%);transition:color .14s ease,opacity .14s ease;-webkit-mask:var(--aeris-icon-edit) center/100% 100% no-repeat;mask:var(--aeris-icon-edit) center/100% 100% no-repeat}td[data-editable]:hover,td[data-editable]:focus-within{background:color-mix(in srgb,var(--aeris-primary, #879566) 7%,var(--aeris-surface, #fff));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--aeris-primary, #879566) 34%,transparent)}td[data-editable]:hover:after,td[data-editable]:focus-within:after{color:var(--aeris-primary-text, #566137);opacity:1}.aeris-table[data-gridlines] th,.aeris-table[data-gridlines] td{border-inline-end:1px solid var(--aeris-border, #deddd7)}.aeris-table[data-gridlines] th:last-child,.aeris-table[data-gridlines] td:last-child{border-inline-end:0}.aeris-table[data-size=sm]{--aeris-table-cell-padding-y: calc(var(--aeris-item-padding-y, .5rem) * .78);--aeris-table-cell-padding-x: calc(var(--aeris-item-padding-x, .75rem) * .85);--aeris-table-action-size: max( 1.625rem, calc(var(--aeris-control-height, 2.625rem) - .875rem) )}.aeris-table[data-size=sm] th,.aeris-table[data-size=sm] td{font-size:.8125rem}.aeris-table[data-size=lg]{--aeris-table-cell-padding-y: calc(var(--aeris-item-padding-y, .5rem) * 1.2);--aeris-table-cell-padding-x: calc(var(--aeris-item-padding-x, .75rem) * 1.2);--aeris-table-action-size: max( 2rem, calc(var(--aeris-control-height, 2.625rem) - .625rem) )}[data-align=center]{text-align:center}[data-align=end]{text-align:right}.aeris-table__sort{width:100%;min-width:0;display:inline-flex;align-items:center;justify-content:inherit;gap:calc(var(--aeris-table-density-gap) * .9);padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}.aeris-table__sort .aeris-table__header-label{flex:1 1 auto}.aeris-table__sort:hover{color:var(--aeris-primary-text, #566137)}.aeris-table__sort:focus-visible,.aeris-table__icon-button:focus-visible,.aeris-table__paginator button:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:2px}.aeris-table__sort-mark{width:.75rem;height:1rem;display:inline-grid;place-items:center;color:var(--aeris-text-2, #555555);opacity:.55;position:relative}.aeris-table__sort-mark span{position:absolute;width:.75rem;height:.75rem}.aeris-table__sort-mark span:first-child{transform:translateY(-.18rem)}.aeris-table__sort-mark span:last-child{transform:translateY(.18rem)}.aeris-table__sort-mark span:before{position:absolute;top:50%;left:50%;width:.75rem;height:.75rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-table__sort-mark span:first-child:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-table__sort-mark[data-direction=asc],.aeris-table__sort-mark[data-direction=desc]{color:var(--aeris-primary-text, #566137);opacity:1}.aeris-table__sort-mark[data-direction=asc] span:last-child,.aeris-table__sort-mark[data-direction=desc] span:first-child{opacity:.25}.aeris-table__control-cell{width:calc(var(--aeris-table-action-size) + var(--aeris-table-cell-padding-x));padding-inline:calc(var(--aeris-table-cell-padding-x) * .75);text-align:center}.aeris-table__control-cell input[type=radio]{width:1.125rem;height:1.125rem;margin:0;border:1.5px solid var(--aeris-border-strong, #aeb2a8);background:var(--aeris-surface, #fff);cursor:pointer;vertical-align:middle}.aeris-table__control-cell input[type=radio]{-webkit-appearance:none;appearance:none;border-radius:50%}.aeris-table__control-cell input[type=radio]:checked{border:.3125rem solid var(--aeris-primary, #768653);background:transparent}.aeris-table__control-cell input:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 42%,transparent);outline-offset:2px}.aeris-table__control-cell aeris-checkbox{line-height:0}.aeris-table__icon-button{width:var(--aeris-table-action-size);height:var(--aeris-table-action-size);display:inline-grid;place-items:center;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .4375rem);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-table__icon-button span{position:relative;width:1rem;height:1rem}.aeris-table__icon-button span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}tr[data-expanded] .aeris-table__icon-button span:before{transform:translate(-50%,-50%) rotate(180deg)}tr[data-selected] td{background:color-mix(in srgb,var(--aeris-primary, #879566) 12%,transparent)}.aeris-table__expansion-row td{background:var(--aeris-surface-2, #f7f5f1);color:var(--aeris-text-2, #555555);line-height:1.6}.aeris-table__message{min-height:7rem;display:flex;align-items:center;justify-content:center;gap:var(--aeris-table-density-gap);color:var(--aeris-text-2, #555555)}.aeris-table__spinner{width:1rem;height:1rem;border:2px solid color-mix(in srgb,currentColor 24%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-table-spin .8s linear infinite}.aeris-table__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media(max-width:42rem){.aeris-table[data-responsive=stack] .aeris-table__frame{border:0;background:transparent;overflow:visible}.aeris-table[data-responsive=stack] .aeris-table__viewport{overflow:visible}.aeris-table[data-responsive=stack] table{min-width:0;display:block}.aeris-table[data-responsive=stack] thead,.aeris-table[data-responsive=stack] caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.aeris-table[data-responsive=stack] tbody{display:grid;gap:calc(var(--aeris-table-density-gap) + .25rem)}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row){display:grid;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-table-radius, var(--aeris-radius-md, .75rem));background:var(--aeris-surface, #fff);overflow:hidden}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row) td{display:grid;grid-template-columns:minmax(7rem,.42fr) minmax(0,1fr);align-items:center;gap:calc(var(--aeris-table-density-gap) + .25rem);min-height:var(--aeris-table-stack-row-height);border-block-end:1px solid var(--aeris-border, #deddd7);background:transparent;text-align:left}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row) td:last-child{border-block-end:0}.aeris-table[data-responsive=stack][data-striped] tbody tr:nth-child(odd):not(.aeris-table__expansion-row) td,.aeris-table[data-responsive=stack][data-hoverable] tbody tr:hover:not(.aeris-table__expansion-row) td,.aeris-table[data-responsive=stack] tbody tr[data-context-menu-active] td,.aeris-table[data-responsive=stack] tr[data-selected] td{background:transparent}.aeris-table[data-responsive=stack] .aeris-table__expansion-row{display:block;margin-top:calc(-1 * (var(--aeris-table-density-gap) + .25rem));border:1px solid var(--aeris-border, #deddd7);border-block-start:0;border-radius:0 0 var(--aeris-table-radius, var(--aeris-radius-md, .75rem)) var(--aeris-table-radius, var(--aeris-radius-md, .75rem));background:var(--aeris-surface-2, #f7f5f1);overflow:hidden}.aeris-table[data-responsive=stack] .aeris-table__expansion-row td,.aeris-table[data-responsive=stack] .aeris-table__message{display:block}.aeris-table[data-responsive=stack] .aeris-table__expansion-row td:before{content:\"\"}.aeris-table[data-responsive=stack] tbody tr:not(.aeris-table__expansion-row) td:before{color:var(--aeris-text-2, #555555);font-size:.75rem;font-weight:700;text-align:left;content:attr(data-label)}.aeris-table[data-responsive=stack] .aeris-table__control-cell{display:flex;justify-content:flex-end;width:auto}.aeris-table[data-responsive=stack] .aeris-table__control-cell:before{content:\"\"}}@media(prefers-reduced-motion:reduce){td[data-editable],td[data-editable]:after,.aeris-table__resize:before,.aeris-table__spinner{transition:none;animation:none}}@keyframes aeris-table-spin{to{transform:rotate(360deg)}}\n"] }]
|
|
1554
|
+
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }, { type: i0.Output, args: ["columnsChange"] }], rowKeyField: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKeyField", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], gridlines: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridlines", required: false }] }], hoverable: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverable", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], responsiveMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveMode", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], globalFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "globalFilter", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }, { type: i0.Output, args: ["filterValueChange"] }], columnFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnFilter", required: false }] }], columnFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnFilters", required: false }] }, { type: i0.Output, args: ["columnFiltersChange"] }], filterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLabel", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], columnFilterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnFilterPlaceholder", required: false }] }], sort: [{ type: i0.Input, args: [{ isSignal: true, alias: "sort", required: false }] }, { type: i0.Output, args: ["sortChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectionControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionControl", required: false }] }], selectedKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedKeys", required: false }] }, { type: i0.Output, args: ["selectedKeysChange"] }], contextMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenu", required: false }] }], contextMenuDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuDisabled", required: false }] }], contextMenuRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuRow", required: false }] }, { type: i0.Output, args: ["contextMenuRowChange"] }], contextMenuRowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuRowKey", required: false }] }, { type: i0.Output, args: ["contextMenuRowKeyChange"] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], minColumnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minColumnWidth", required: false }] }], showOverflowTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOverflowTooltip", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], expandableRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandableRows", required: false }] }], expandedKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedKeys", required: false }] }, { type: i0.Output, args: ["expandedKeysChange"] }], rowNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowNavigation", required: false }] }], selectAllAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllAriaLabel", required: false }] }], rowSelectionAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSelectionAriaLabel", required: false }] }], expandRowAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandRowAriaLabel", required: false }] }], collapseRowAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseRowAriaLabel", required: false }] }], paginatorAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorAriaLabel", required: false }] }], csvSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "csvSeparator", required: false }] }], exportFilename: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFilename", required: false }] }], sorted: [{ type: i0.Output, args: ["sorted"] }], filtered: [{ type: i0.Output, args: ["filtered"] }], pageChanged: [{ type: i0.Output, args: ["pageChanged"] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], selectionChanged: [{ type: i0.Output, args: ["selectionChanged"] }], rowSelected: [{ type: i0.Output, args: ["rowSelected"] }], rowUnselected: [{ type: i0.Output, args: ["rowUnselected"] }], contextMenuOpened: [{ type: i0.Output, args: ["contextMenuOpened"] }], visibleRowsToggled: [{ type: i0.Output, args: ["visibleRowsToggled"] }], rowExpanded: [{ type: i0.Output, args: ["rowExpanded"] }], rowCollapsed: [{ type: i0.Output, args: ["rowCollapsed"] }], editStarted: [{ type: i0.Output, args: ["editStarted"] }], cellEdited: [{ type: i0.Output, args: ["cellEdited"] }], editCompleted: [{ type: i0.Output, args: ["editCompleted"] }], editCancelled: [{ type: i0.Output, args: ["editCancelled"] }], columnResized: [{ type: i0.Output, args: ["columnResized"] }], columnReordered: [{ type: i0.Output, args: ["columnReordered"] }], stateSaved: [{ type: i0.Output, args: ["stateSaved"] }], stateRestored: [{ type: i0.Output, args: ["stateRestored"] }], csvExported: [{ type: i0.Output, args: ["csvExported"] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTableHeaderTemplate), { isSignal: true }] }], cellTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTableCellTemplate), { isSignal: true }] }], expansionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTableExpansionTemplate), { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTableEmptyTemplate), { isSignal: true }] }], loadingTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTableLoadingTemplate), { isSignal: true }] }] } });
|
|
1555
|
+
const AerisTableModule = [
|
|
1556
|
+
AerisTable,
|
|
1557
|
+
AerisTableHeaderTemplate,
|
|
1558
|
+
AerisTableCellTemplate,
|
|
1559
|
+
AerisTableExpansionTemplate,
|
|
1560
|
+
AerisTableEmptyTemplate,
|
|
1561
|
+
AerisTableLoadingTemplate,
|
|
1562
|
+
];
|
|
1563
|
+
/** One-import convenience array for Table integrations that render an Aeris ContextMenu. */
|
|
1564
|
+
const AerisTableContextMenuModule = [
|
|
1565
|
+
AerisTable,
|
|
1566
|
+
AerisTableHeaderTemplate,
|
|
1567
|
+
AerisTableCellTemplate,
|
|
1568
|
+
AerisTableExpansionTemplate,
|
|
1569
|
+
AerisTableEmptyTemplate,
|
|
1570
|
+
AerisTableLoadingTemplate,
|
|
1571
|
+
AerisContextMenu,
|
|
1572
|
+
AerisContextMenuItemTemplate,
|
|
1573
|
+
];
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Generated bundle index. Do not edit.
|
|
1577
|
+
*/
|
|
1578
|
+
|
|
1579
|
+
export { AerisTable, AerisTableCellTemplate, AerisTableContextMenuModule, AerisTableEmptyTemplate, AerisTableExpansionTemplate, AerisTableHeaderTemplate, AerisTableLoadingTemplate, AerisTableModule };
|
|
1580
|
+
//# sourceMappingURL=aeris-ui-core-table.mjs.map
|