@dads-framework/ui 0.0.0-stage → 0.2.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.md +21 -0
- package/README.md +88 -2
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/dist/data-table/components/data-table/applied-filter-chips.d.ts +19 -0
- package/dist/data-table/components/data-table/applied-filter-chips.d.ts.map +1 -0
- package/dist/data-table/components/data-table/applied-filter-chips.js +32 -0
- package/dist/data-table/components/data-table/applied-filter-chips.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.d.ts +5 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.js +6 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-body-row.d.ts +6 -0
- package/dist/data-table/components/data-table/data-table-body-row.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-body-row.js +27 -0
- package/dist/data-table/components/data-table/data-table-body-row.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-card-list.d.ts +18 -0
- package/dist/data-table/components/data-table/data-table-card-list.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-card-list.js +108 -0
- package/dist/data-table/components/data-table/data-table-card-list.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-column-header.d.ts +8 -0
- package/dist/data-table/components/data-table/data-table-column-header.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-column-header.js +29 -0
- package/dist/data-table/components/data-table/data-table-column-header.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.js +34 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-date-filter.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-date-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-date-filter.js +132 -0
- package/dist/data-table/components/data-table/data-table-date-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.d.ts +12 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.js +20 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.d.ts +13 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.js +80 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.d.ts +5 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.js +62 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.d.ts +23 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.js +11 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.d.ts +4 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.js +92 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.d.ts +17 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.js +87 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list.d.ts +11 -0
- package/dist/data-table/components/data-table/data-table-filter-list.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list.js +95 -0
- package/dist/data-table/components/data-table/data-table-filter-list.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.d.ts +5 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.js +48 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.d.ts +14 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.js +77 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.d.ts +3 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.js +28 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.js +49 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.d.ts +11 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.js +127 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.js +18 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-pagination.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-pagination.js +25 -0
- package/dist/data-table/components/data-table/data-table-pagination.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-range-filter.d.ts +12 -0
- package/dist/data-table/components/data-table/data-table-range-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-range-filter.js +59 -0
- package/dist/data-table/components/data-table/data-table-range-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.js +29 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-search-input.d.ts +23 -0
- package/dist/data-table/components/data-table/data-table-search-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-search-input.js +81 -0
- package/dist/data-table/components/data-table/data-table-search-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-skeleton.d.ts +19 -0
- package/dist/data-table/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-skeleton.js +45 -0
- package/dist/data-table/components/data-table/data-table-skeleton.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.js +88 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-item.d.ts +16 -0
- package/dist/data-table/components/data-table/data-table-sort-item.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-item.js +39 -0
- package/dist/data-table/components/data-table/data-table-sort-item.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-list.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-sort-list.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-list.js +96 -0
- package/dist/data-table/components/data-table/data-table-sort-list.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.d.ts +7 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.js +59 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar.d.ts +86 -0
- package/dist/data-table/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar.js +83 -0
- package/dist/data-table/components/data-table/data-table-toolbar.js.map +1 -0
- package/dist/data-table/components/data-table/data-table.d.ts +48 -0
- package/dist/data-table/components/data-table/data-table.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table.js +48 -0
- package/dist/data-table/components/data-table/data-table.js.map +1 -0
- package/dist/data-table/components/data-table/filter-group-toggles.d.ts +9 -0
- package/dist/data-table/components/data-table/filter-group-toggles.d.ts.map +1 -0
- package/dist/data-table/components/data-table/filter-group-toggles.js +16 -0
- package/dist/data-table/components/data-table/filter-group-toggles.js.map +1 -0
- package/dist/data-table/components/data-table/filter-pill.d.ts +15 -0
- package/dist/data-table/components/data-table/filter-pill.d.ts.map +1 -0
- package/dist/data-table/components/data-table/filter-pill.js +69 -0
- package/dist/data-table/components/data-table/filter-pill.js.map +1 -0
- package/dist/data-table/components/ui/date-picker.d.ts +33 -0
- package/dist/data-table/components/ui/date-picker.d.ts.map +1 -0
- package/dist/data-table/components/ui/date-picker.js +60 -0
- package/dist/data-table/components/ui/date-picker.js.map +1 -0
- package/dist/data-table/components/ui/faceted.d.ts +39 -0
- package/dist/data-table/components/ui/faceted.d.ts.map +1 -0
- package/dist/data-table/components/ui/faceted.js +102 -0
- package/dist/data-table/components/ui/faceted.js.map +1 -0
- package/dist/data-table/components/ui/sortable-parts.d.ts +30 -0
- package/dist/data-table/components/ui/sortable-parts.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable-parts.js +128 -0
- package/dist/data-table/components/ui/sortable-parts.js.map +1 -0
- package/dist/data-table/components/ui/sortable-root-context.d.ts +15 -0
- package/dist/data-table/components/ui/sortable-root-context.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable-root-context.js +11 -0
- package/dist/data-table/components/ui/sortable-root-context.js.map +1 -0
- package/dist/data-table/components/ui/sortable-types.d.ts +27 -0
- package/dist/data-table/components/ui/sortable-types.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable-types.js +2 -0
- package/dist/data-table/components/ui/sortable-types.js.map +1 -0
- package/dist/data-table/components/ui/sortable.d.ts +5 -0
- package/dist/data-table/components/ui/sortable.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable.js +177 -0
- package/dist/data-table/components/ui/sortable.js.map +1 -0
- package/dist/data-table/config/data-table.d.ts +129 -0
- package/dist/data-table/config/data-table.d.ts.map +1 -0
- package/dist/data-table/config/data-table.js +88 -0
- package/dist/data-table/config/data-table.js.map +1 -0
- package/dist/data-table/copy/data-table-copy.d.ts +765 -0
- package/dist/data-table/copy/data-table-copy.d.ts.map +1 -0
- package/dist/data-table/copy/data-table-copy.js +190 -0
- package/dist/data-table/copy/data-table-copy.js.map +1 -0
- package/dist/data-table/hooks/use-callback-ref.d.ts +10 -0
- package/dist/data-table/hooks/use-callback-ref.d.ts.map +1 -0
- package/dist/data-table/hooks/use-callback-ref.js +17 -0
- package/dist/data-table/hooks/use-callback-ref.js.map +1 -0
- package/dist/data-table/hooks/use-data-table-search-params.d.ts +32 -0
- package/dist/data-table/hooks/use-data-table-search-params.d.ts.map +1 -0
- package/dist/data-table/hooks/use-data-table-search-params.js +32 -0
- package/dist/data-table/hooks/use-data-table-search-params.js.map +1 -0
- package/dist/data-table/hooks/use-data-table.d.ts +55 -0
- package/dist/data-table/hooks/use-data-table.d.ts.map +1 -0
- package/dist/data-table/hooks/use-data-table.js +150 -0
- package/dist/data-table/hooks/use-data-table.js.map +1 -0
- package/dist/data-table/hooks/use-debounced-callback.d.ts +8 -0
- package/dist/data-table/hooks/use-debounced-callback.d.ts.map +1 -0
- package/dist/data-table/hooks/use-debounced-callback.js +22 -0
- package/dist/data-table/hooks/use-debounced-callback.js.map +1 -0
- package/dist/data-table/hooks/use-is-phone-width.d.ts +7 -0
- package/dist/data-table/hooks/use-is-phone-width.d.ts.map +1 -0
- package/dist/data-table/hooks/use-is-phone-width.js +34 -0
- package/dist/data-table/hooks/use-is-phone-width.js.map +1 -0
- package/dist/data-table/hooks/use-list-emptiness.d.ts +14 -0
- package/dist/data-table/hooks/use-list-emptiness.d.ts.map +1 -0
- package/dist/data-table/hooks/use-list-emptiness.js +28 -0
- package/dist/data-table/hooks/use-list-emptiness.js.map +1 -0
- package/dist/data-table/hooks/use-reader-column-layout.d.ts +20 -0
- package/dist/data-table/hooks/use-reader-column-layout.d.ts.map +1 -0
- package/dist/data-table/hooks/use-reader-column-layout.js +31 -0
- package/dist/data-table/hooks/use-reader-column-layout.js.map +1 -0
- package/dist/data-table/index.d.ts +37 -0
- package/dist/data-table/index.d.ts.map +1 -0
- package/dist/data-table/index.js +37 -0
- package/dist/data-table/index.js.map +1 -0
- package/dist/data-table/lib/card-fields.d.ts +33 -0
- package/dist/data-table/lib/card-fields.d.ts.map +1 -0
- package/dist/data-table/lib/card-fields.js +39 -0
- package/dist/data-table/lib/card-fields.js.map +1 -0
- package/dist/data-table/lib/clearable-column-filters.d.ts +6 -0
- package/dist/data-table/lib/clearable-column-filters.d.ts.map +1 -0
- package/dist/data-table/lib/clearable-column-filters.js +19 -0
- package/dist/data-table/lib/clearable-column-filters.js.map +1 -0
- package/dist/data-table/lib/column-filters.d.ts +19 -0
- package/dist/data-table/lib/column-filters.d.ts.map +1 -0
- package/dist/data-table/lib/column-filters.js +60 -0
- package/dist/data-table/lib/column-filters.js.map +1 -0
- package/dist/data-table/lib/column-label.d.ts +13 -0
- package/dist/data-table/lib/column-label.d.ts.map +1 -0
- package/dist/data-table/lib/column-label.js +24 -0
- package/dist/data-table/lib/column-label.js.map +1 -0
- package/dist/data-table/lib/column-roles.d.ts +34 -0
- package/dist/data-table/lib/column-roles.d.ts.map +1 -0
- package/dist/data-table/lib/column-roles.js +79 -0
- package/dist/data-table/lib/column-roles.js.map +1 -0
- package/dist/data-table/lib/column-visibility-storage.d.ts +21 -0
- package/dist/data-table/lib/column-visibility-storage.d.ts.map +1 -0
- package/dist/data-table/lib/column-visibility-storage.js +52 -0
- package/dist/data-table/lib/column-visibility-storage.js.map +1 -0
- package/dist/data-table/lib/compose-refs.d.ts +17 -0
- package/dist/data-table/lib/compose-refs.d.ts.map +1 -0
- package/dist/data-table/lib/compose-refs.js +52 -0
- package/dist/data-table/lib/compose-refs.js.map +1 -0
- package/dist/data-table/lib/data-table-search-params.d.ts +131 -0
- package/dist/data-table/lib/data-table-search-params.d.ts.map +1 -0
- package/dist/data-table/lib/data-table-search-params.js +116 -0
- package/dist/data-table/lib/data-table-search-params.js.map +1 -0
- package/dist/data-table/lib/data-table-types.d.ts +44 -0
- package/dist/data-table/lib/data-table-types.d.ts.map +1 -0
- package/dist/data-table/lib/data-table-types.js +2 -0
- package/dist/data-table/lib/data-table-types.js.map +1 -0
- package/dist/data-table/lib/data-table.d.ts +42 -0
- package/dist/data-table/lib/data-table.d.ts.map +1 -0
- package/dist/data-table/lib/data-table.js +92 -0
- package/dist/data-table/lib/data-table.js.map +1 -0
- package/dist/data-table/lib/filter-groups.d.ts +63 -0
- package/dist/data-table/lib/filter-groups.d.ts.map +1 -0
- package/dist/data-table/lib/filter-groups.js +55 -0
- package/dist/data-table/lib/filter-groups.js.map +1 -0
- package/dist/data-table/lib/filter-param.d.ts +111 -0
- package/dist/data-table/lib/filter-param.d.ts.map +1 -0
- package/dist/data-table/lib/filter-param.js +146 -0
- package/dist/data-table/lib/filter-param.js.map +1 -0
- package/dist/data-table/lib/format.d.ts +18 -0
- package/dist/data-table/lib/format.d.ts.map +1 -0
- package/dist/data-table/lib/format.js +43 -0
- package/dist/data-table/lib/format.js.map +1 -0
- package/dist/data-table/lib/id.d.ts +7 -0
- package/dist/data-table/lib/id.d.ts.map +1 -0
- package/dist/data-table/lib/id.js +11 -0
- package/dist/data-table/lib/id.js.map +1 -0
- package/dist/data-table/lib/list-emptiness.d.ts +63 -0
- package/dist/data-table/lib/list-emptiness.d.ts.map +1 -0
- package/dist/data-table/lib/list-emptiness.js +59 -0
- package/dist/data-table/lib/list-emptiness.js.map +1 -0
- package/dist/data-table/lib/parsers.d.ts +51 -0
- package/dist/data-table/lib/parsers.d.ts.map +1 -0
- package/dist/data-table/lib/parsers.js +37 -0
- package/dist/data-table/lib/parsers.js.map +1 -0
- package/dist/data-table/lib/read-primary-row-link.d.ts +18 -0
- package/dist/data-table/lib/read-primary-row-link.d.ts.map +1 -0
- package/dist/data-table/lib/read-primary-row-link.js +38 -0
- package/dist/data-table/lib/read-primary-row-link.js.map +1 -0
- package/dist/data-table/lib/reader-hidden-columns.d.ts +11 -0
- package/dist/data-table/lib/reader-hidden-columns.d.ts.map +1 -0
- package/dist/data-table/lib/reader-hidden-columns.js +18 -0
- package/dist/data-table/lib/reader-hidden-columns.js.map +1 -0
- package/dist/data-table/lib/row-groups.d.ts +12 -0
- package/dist/data-table/lib/row-groups.d.ts.map +1 -0
- package/dist/data-table/lib/row-groups.js +10 -0
- package/dist/data-table/lib/row-groups.js.map +1 -0
- package/dist/data-table/lib/sort-param.d.ts +42 -0
- package/dist/data-table/lib/sort-param.d.ts.map +1 -0
- package/dist/data-table/lib/sort-param.js +70 -0
- package/dist/data-table/lib/sort-param.js.map +1 -0
- package/dist/data-table/routing.d.ts +8 -0
- package/dist/data-table/routing.d.ts.map +1 -0
- package/dist/data-table/routing.js +8 -0
- package/dist/data-table/routing.js.map +1 -0
- package/dist/display/components/ui/alert.d.ts +10 -0
- package/dist/display/components/ui/alert.d.ts.map +1 -0
- package/dist/display/components/ui/alert.js +26 -0
- package/dist/display/components/ui/alert.js.map +1 -0
- package/dist/display/components/ui/collapsible.d.ts +6 -0
- package/dist/display/components/ui/collapsible.d.ts.map +1 -0
- package/dist/display/components/ui/collapsible.js +13 -0
- package/dist/display/components/ui/collapsible.js.map +1 -0
- package/dist/display/components/ui/empty.d.ts +12 -0
- package/dist/display/components/ui/empty.d.ts.map +1 -0
- package/dist/display/components/ui/empty.js +34 -0
- package/dist/display/components/ui/empty.js.map +1 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.d.ts +19 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.d.ts.map +1 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.js +19 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.js.map +1 -0
- package/dist/display/components/ui/permission-decision-table.d.ts +17 -0
- package/dist/display/components/ui/permission-decision-table.d.ts.map +1 -0
- package/dist/display/components/ui/permission-decision-table.js +8 -0
- package/dist/display/components/ui/permission-decision-table.js.map +1 -0
- package/dist/display/components/ui/scroll-area.d.ts +6 -0
- package/dist/display/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/display/components/ui/scroll-area.js +15 -0
- package/dist/display/components/ui/scroll-area.js.map +1 -0
- package/dist/display/components/ui/status-badge.d.ts +16 -0
- package/dist/display/components/ui/status-badge.d.ts.map +1 -0
- package/dist/display/components/ui/status-badge.js +20 -0
- package/dist/display/components/ui/status-badge.js.map +1 -0
- package/dist/display/components/ui/status-tone.d.ts +4 -0
- package/dist/display/components/ui/status-tone.d.ts.map +1 -0
- package/dist/display/components/ui/status-tone.js +8 -0
- package/dist/display/components/ui/status-tone.js.map +1 -0
- package/dist/display/components/ui/table-edge-fade.d.ts +12 -0
- package/dist/display/components/ui/table-edge-fade.d.ts.map +1 -0
- package/dist/display/components/ui/table-edge-fade.js +14 -0
- package/dist/display/components/ui/table-edge-fade.js.map +1 -0
- package/dist/display/components/ui/table.d.ts +46 -0
- package/dist/display/components/ui/table.d.ts.map +1 -0
- package/dist/display/components/ui/table.js +57 -0
- package/dist/display/components/ui/table.js.map +1 -0
- package/dist/display/components/ui/tabs.d.ts +12 -0
- package/dist/display/components/ui/tabs.d.ts.map +1 -0
- package/dist/display/components/ui/tabs.js +31 -0
- package/dist/display/components/ui/tabs.js.map +1 -0
- package/dist/display/components/ui/tone-bar.d.ts +13 -0
- package/dist/display/components/ui/tone-bar.d.ts.map +1 -0
- package/dist/display/components/ui/tone-bar.js +14 -0
- package/dist/display/components/ui/tone-bar.js.map +1 -0
- package/dist/display/components/ui/use-hidden-edges.d.ts +18 -0
- package/dist/display/components/ui/use-hidden-edges.d.ts.map +1 -0
- package/dist/display/components/ui/use-hidden-edges.js +67 -0
- package/dist/display/components/ui/use-hidden-edges.js.map +1 -0
- package/dist/display/index.d.ts +10 -0
- package/dist/display/index.d.ts.map +1 -0
- package/dist/display/index.js +10 -0
- package/dist/display/index.js.map +1 -0
- package/dist/elements/calendar.d.ts +7 -0
- package/dist/elements/calendar.d.ts.map +1 -0
- package/dist/elements/calendar.js +7 -0
- package/dist/elements/calendar.js.map +1 -0
- package/dist/elements/components/ui/avatar.d.ts +12 -0
- package/dist/elements/components/ui/avatar.d.ts.map +1 -0
- package/dist/elements/components/ui/avatar.js +24 -0
- package/dist/elements/components/ui/avatar.js.map +1 -0
- package/dist/elements/components/ui/badge.d.ts +10 -0
- package/dist/elements/components/ui/badge.d.ts.map +1 -0
- package/dist/elements/components/ui/badge.js +26 -0
- package/dist/elements/components/ui/badge.js.map +1 -0
- package/dist/elements/components/ui/button.d.ts +11 -0
- package/dist/elements/components/ui/button.d.ts.map +1 -0
- package/dist/elements/components/ui/button.js +39 -0
- package/dist/elements/components/ui/button.js.map +1 -0
- package/dist/elements/components/ui/calendar.d.ts +35 -0
- package/dist/elements/components/ui/calendar.d.ts.map +1 -0
- package/dist/elements/components/ui/calendar.js +69 -0
- package/dist/elements/components/ui/calendar.js.map +1 -0
- package/dist/elements/components/ui/card.d.ts +10 -0
- package/dist/elements/components/ui/card.d.ts.map +1 -0
- package/dist/elements/components/ui/card.js +26 -0
- package/dist/elements/components/ui/card.js.map +1 -0
- package/dist/elements/components/ui/kbd.d.ts +4 -0
- package/dist/elements/components/ui/kbd.d.ts.map +1 -0
- package/dist/elements/components/ui/kbd.js +10 -0
- package/dist/elements/components/ui/kbd.js.map +1 -0
- package/dist/elements/components/ui/separator.d.ts +5 -0
- package/dist/elements/components/ui/separator.d.ts.map +1 -0
- package/dist/elements/components/ui/separator.js +9 -0
- package/dist/elements/components/ui/separator.js.map +1 -0
- package/dist/elements/components/ui/skeleton.d.ts +3 -0
- package/dist/elements/components/ui/skeleton.d.ts.map +1 -0
- package/dist/elements/components/ui/skeleton.js +7 -0
- package/dist/elements/components/ui/skeleton.js.map +1 -0
- package/dist/elements/components/ui/spinner.d.ts +3 -0
- package/dist/elements/components/ui/spinner.d.ts.map +1 -0
- package/dist/elements/components/ui/spinner.js +10 -0
- package/dist/elements/components/ui/spinner.js.map +1 -0
- package/dist/elements/copy/elements-copy.d.ts +14 -0
- package/dist/elements/copy/elements-copy.d.ts.map +1 -0
- package/dist/elements/copy/elements-copy.js +6 -0
- package/dist/elements/copy/elements-copy.js.map +1 -0
- package/dist/elements/css-custom-properties.d.ts +3 -0
- package/dist/elements/css-custom-properties.d.ts.map +1 -0
- package/dist/elements/css-custom-properties.js +2 -0
- package/dist/elements/css-custom-properties.js.map +1 -0
- package/dist/elements/index.d.ts +14 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.js +13 -0
- package/dist/elements/index.js.map +1 -0
- package/dist/elements/lib/attachment-item.d.ts +29 -0
- package/dist/elements/lib/attachment-item.d.ts.map +1 -0
- package/dist/elements/lib/attachment-item.js +57 -0
- package/dist/elements/lib/attachment-item.js.map +1 -0
- package/dist/elements/lib/get-initials.d.ts +9 -0
- package/dist/elements/lib/get-initials.d.ts.map +1 -0
- package/dist/elements/lib/get-initials.js +27 -0
- package/dist/elements/lib/get-initials.js.map +1 -0
- package/dist/elements/lib/utils.d.ts +3 -0
- package/dist/elements/lib/utils.d.ts.map +1 -0
- package/dist/elements/lib/utils.js +6 -0
- package/dist/elements/lib/utils.js.map +1 -0
- package/dist/forms/components/ui/checkbox.d.ts +5 -0
- package/dist/forms/components/ui/checkbox.d.ts.map +1 -0
- package/dist/forms/components/ui/checkbox.js +10 -0
- package/dist/forms/components/ui/checkbox.js.map +1 -0
- package/dist/forms/components/ui/combobox-options.d.ts +19 -0
- package/dist/forms/components/ui/combobox-options.d.ts.map +1 -0
- package/dist/forms/components/ui/combobox-options.js +48 -0
- package/dist/forms/components/ui/combobox-options.js.map +1 -0
- package/dist/forms/components/ui/combobox.d.ts +69 -0
- package/dist/forms/components/ui/combobox.d.ts.map +1 -0
- package/dist/forms/components/ui/combobox.js +115 -0
- package/dist/forms/components/ui/combobox.js.map +1 -0
- package/dist/forms/components/ui/date-range-field.d.ts +30 -0
- package/dist/forms/components/ui/date-range-field.d.ts.map +1 -0
- package/dist/forms/components/ui/date-range-field.js +22 -0
- package/dist/forms/components/ui/date-range-field.js.map +1 -0
- package/dist/forms/components/ui/field.d.ts +26 -0
- package/dist/forms/components/ui/field.d.ts.map +1 -0
- package/dist/forms/components/ui/field.js +73 -0
- package/dist/forms/components/ui/field.js.map +1 -0
- package/dist/forms/components/ui/input-group.d.ts +20 -0
- package/dist/forms/components/ui/input-group.d.ts.map +1 -0
- package/dist/forms/components/ui/input-group.js +66 -0
- package/dist/forms/components/ui/input-group.js.map +1 -0
- package/dist/forms/components/ui/input.d.ts +7 -0
- package/dist/forms/components/ui/input.d.ts.map +1 -0
- package/dist/forms/components/ui/input.js +8 -0
- package/dist/forms/components/ui/input.js.map +1 -0
- package/dist/forms/components/ui/label.d.ts +5 -0
- package/dist/forms/components/ui/label.d.ts.map +1 -0
- package/dist/forms/components/ui/label.js +9 -0
- package/dist/forms/components/ui/label.js.map +1 -0
- package/dist/forms/components/ui/radio-group.d.ts +6 -0
- package/dist/forms/components/ui/radio-group.d.ts.map +1 -0
- package/dist/forms/components/ui/radio-group.js +14 -0
- package/dist/forms/components/ui/radio-group.js.map +1 -0
- package/dist/forms/components/ui/remote-combobox-context.d.ts +6 -0
- package/dist/forms/components/ui/remote-combobox-context.d.ts.map +1 -0
- package/dist/forms/components/ui/remote-combobox-context.js +3 -0
- package/dist/forms/components/ui/remote-combobox-context.js.map +1 -0
- package/dist/forms/components/ui/remote-combobox.d.ts +37 -0
- package/dist/forms/components/ui/remote-combobox.d.ts.map +1 -0
- package/dist/forms/components/ui/remote-combobox.js +141 -0
- package/dist/forms/components/ui/remote-combobox.js.map +1 -0
- package/dist/forms/components/ui/select.d.ts +16 -0
- package/dist/forms/components/ui/select.d.ts.map +1 -0
- package/dist/forms/components/ui/select.js +40 -0
- package/dist/forms/components/ui/select.js.map +1 -0
- package/dist/forms/components/ui/slider.d.ts +5 -0
- package/dist/forms/components/ui/slider.d.ts.map +1 -0
- package/dist/forms/components/ui/slider.js +14 -0
- package/dist/forms/components/ui/slider.js.map +1 -0
- package/dist/forms/components/ui/switch.d.ts +21 -0
- package/dist/forms/components/ui/switch.d.ts.map +1 -0
- package/dist/forms/components/ui/switch.js +20 -0
- package/dist/forms/components/ui/switch.js.map +1 -0
- package/dist/forms/components/ui/textarea.d.ts +4 -0
- package/dist/forms/components/ui/textarea.d.ts.map +1 -0
- package/dist/forms/components/ui/textarea.js +8 -0
- package/dist/forms/components/ui/textarea.js.map +1 -0
- package/dist/forms/components/ui/toggle-group.d.ts +10 -0
- package/dist/forms/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/forms/components/ui/toggle-group.js +25 -0
- package/dist/forms/components/ui/toggle-group.js.map +1 -0
- package/dist/forms/components/ui/toggle.d.ts +10 -0
- package/dist/forms/components/ui/toggle.d.ts.map +1 -0
- package/dist/forms/components/ui/toggle.js +30 -0
- package/dist/forms/components/ui/toggle.js.map +1 -0
- package/dist/forms/index.d.ts +16 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +16 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/forms/logic/remote-combobox-page.d.ts +26 -0
- package/dist/forms/logic/remote-combobox-page.d.ts.map +1 -0
- package/dist/forms/logic/remote-combobox-page.js +16 -0
- package/dist/forms/logic/remote-combobox-page.js.map +1 -0
- package/dist/icons/index.d.ts +13 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +13 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.d.ts +36 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.js +153 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.d.ts +4 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.js +55 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/image-stage.d.ts +12 -0
- package/dist/overlays/components/attachment-viewer/image-stage.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/image-stage.js +94 -0
- package/dist/overlays/components/attachment-viewer/image-stage.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.d.ts +15 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.js +24 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.d.ts +65 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.js +77 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.d.ts +9 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.js +18 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.d.ts +43 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.js +65 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.d.ts +40 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.js +45 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.d.ts +14 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.js +31 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.d.ts +9 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.js +27 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.d.ts +14 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.js +49 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.d.ts +4 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.js +47 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.d.ts +22 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.js +57 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.d.ts +10 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.js +26 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.d.ts +19 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.js +28 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.d.ts +17 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.js +35 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.d.ts +7 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.js +2 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.d.ts +3 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.js +13 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.d.ts +7 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.js +8 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.d.ts +11 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.js +52 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.d.ts +25 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.js +94 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.d.ts +27 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.js +216 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.d.ts +28 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.js +255 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.d.ts +22 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.js +75 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.d.ts +18 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.js +128 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.d.ts +10 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.js +26 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.d.ts +55 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.js +117 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.d.ts +32 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.js +28 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.js.map +1 -0
- package/dist/overlays/components/ui/alert-dialog.d.ts +21 -0
- package/dist/overlays/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/overlays/components/ui/alert-dialog.js +47 -0
- package/dist/overlays/components/ui/alert-dialog.js.map +1 -0
- package/dist/overlays/components/ui/command.d.ts +19 -0
- package/dist/overlays/components/ui/command.d.ts.map +1 -0
- package/dist/overlays/components/ui/command.js +37 -0
- package/dist/overlays/components/ui/command.js.map +1 -0
- package/dist/overlays/components/ui/dialog.d.ts +23 -0
- package/dist/overlays/components/ui/dialog.d.ts.map +1 -0
- package/dist/overlays/components/ui/dialog.js +78 -0
- package/dist/overlays/components/ui/dialog.js.map +1 -0
- package/dist/overlays/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/overlays/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/overlays/components/ui/dropdown-menu.js +53 -0
- package/dist/overlays/components/ui/dropdown-menu.js.map +1 -0
- package/dist/overlays/components/ui/popover.d.ts +11 -0
- package/dist/overlays/components/ui/popover.d.ts.map +1 -0
- package/dist/overlays/components/ui/popover.js +28 -0
- package/dist/overlays/components/ui/popover.js.map +1 -0
- package/dist/overlays/components/ui/sheet.d.ts +15 -0
- package/dist/overlays/components/ui/sheet.d.ts.map +1 -0
- package/dist/overlays/components/ui/sheet.js +43 -0
- package/dist/overlays/components/ui/sheet.js.map +1 -0
- package/dist/overlays/components/ui/sonner.d.ts +20 -0
- package/dist/overlays/components/ui/sonner.d.ts.map +1 -0
- package/dist/overlays/components/ui/sonner.js +40 -0
- package/dist/overlays/components/ui/sonner.js.map +1 -0
- package/dist/overlays/components/ui/split-button.d.ts +37 -0
- package/dist/overlays/components/ui/split-button.d.ts.map +1 -0
- package/dist/overlays/components/ui/split-button.js +29 -0
- package/dist/overlays/components/ui/split-button.js.map +1 -0
- package/dist/overlays/components/ui/tooltip.d.ts +8 -0
- package/dist/overlays/components/ui/tooltip.d.ts.map +1 -0
- package/dist/overlays/components/ui/tooltip.js +18 -0
- package/dist/overlays/components/ui/tooltip.js.map +1 -0
- package/dist/overlays/copy/overlays-copy.d.ts +320 -0
- package/dist/overlays/copy/overlays-copy.d.ts.map +1 -0
- package/dist/overlays/copy/overlays-copy.js +85 -0
- package/dist/overlays/copy/overlays-copy.js.map +1 -0
- package/dist/overlays/index.d.ts +13 -0
- package/dist/overlays/index.d.ts.map +1 -0
- package/dist/overlays/index.js +13 -0
- package/dist/overlays/index.js.map +1 -0
- package/dist/page/components/attachment-list.d.ts +31 -0
- package/dist/page/components/attachment-list.d.ts.map +1 -0
- package/dist/page/components/attachment-list.js +112 -0
- package/dist/page/components/attachment-list.js.map +1 -0
- package/dist/page/components/content-hierarchy.d.ts +29 -0
- package/dist/page/components/content-hierarchy.d.ts.map +1 -0
- package/dist/page/components/content-hierarchy.js +30 -0
- package/dist/page/components/content-hierarchy.js.map +1 -0
- package/dist/page/components/detail-card.d.ts +18 -0
- package/dist/page/components/detail-card.d.ts.map +1 -0
- package/dist/page/components/detail-card.js +13 -0
- package/dist/page/components/detail-card.js.map +1 -0
- package/dist/page/components/detail-layout.d.ts +8 -0
- package/dist/page/components/detail-layout.d.ts.map +1 -0
- package/dist/page/components/detail-layout.js +16 -0
- package/dist/page/components/detail-layout.js.map +1 -0
- package/dist/page/components/detail-page.d.ts +48 -0
- package/dist/page/components/detail-page.d.ts.map +1 -0
- package/dist/page/components/detail-page.js +47 -0
- package/dist/page/components/detail-page.js.map +1 -0
- package/dist/page/components/list-page.d.ts +31 -0
- package/dist/page/components/list-page.d.ts.map +1 -0
- package/dist/page/components/list-page.js +31 -0
- package/dist/page/components/list-page.js.map +1 -0
- package/dist/page/components/list-view-tabs.d.ts +37 -0
- package/dist/page/components/list-view-tabs.d.ts.map +1 -0
- package/dist/page/components/list-view-tabs.js +74 -0
- package/dist/page/components/list-view-tabs.js.map +1 -0
- package/dist/page/components/master-detail/logic/rail-list.d.ts +61 -0
- package/dist/page/components/master-detail/logic/rail-list.d.ts.map +1 -0
- package/dist/page/components/master-detail/logic/rail-list.js +66 -0
- package/dist/page/components/master-detail/logic/rail-list.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-layout.d.ts +70 -0
- package/dist/page/components/master-detail/master-detail-layout.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-layout.js +92 -0
- package/dist/page/components/master-detail/master-detail-layout.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-list.d.ts +41 -0
- package/dist/page/components/master-detail/master-detail-list.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-list.js +178 -0
- package/dist/page/components/master-detail/master-detail-list.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-rail.d.ts +51 -0
- package/dist/page/components/master-detail/master-detail-rail.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-rail.js +53 -0
- package/dist/page/components/master-detail/master-detail-rail.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-row.d.ts +24 -0
- package/dist/page/components/master-detail/master-detail-row.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-row.js +31 -0
- package/dist/page/components/master-detail/master-detail-row.js.map +1 -0
- package/dist/page/components/master-detail/testing/rail-geometry.d.ts +23 -0
- package/dist/page/components/master-detail/testing/rail-geometry.d.ts.map +1 -0
- package/dist/page/components/master-detail/testing/rail-geometry.js +67 -0
- package/dist/page/components/master-detail/testing/rail-geometry.js.map +1 -0
- package/dist/page/components/object-switch.d.ts +22 -0
- package/dist/page/components/object-switch.d.ts.map +1 -0
- package/dist/page/components/object-switch.js +24 -0
- package/dist/page/components/object-switch.js.map +1 -0
- package/dist/page/components/section-nav.d.ts +28 -0
- package/dist/page/components/section-nav.d.ts.map +1 -0
- package/dist/page/components/section-nav.js +42 -0
- package/dist/page/components/section-nav.js.map +1 -0
- package/dist/page/components/stat-strip.d.ts +24 -0
- package/dist/page/components/stat-strip.d.ts.map +1 -0
- package/dist/page/components/stat-strip.js +24 -0
- package/dist/page/components/stat-strip.js.map +1 -0
- package/dist/page/copy/page-copy.d.ts +98 -0
- package/dist/page/copy/page-copy.d.ts.map +1 -0
- package/dist/page/copy/page-copy.js +20 -0
- package/dist/page/copy/page-copy.js.map +1 -0
- package/dist/page/index.d.ts +17 -0
- package/dist/page/index.d.ts.map +1 -0
- package/dist/page/index.js +17 -0
- package/dist/page/index.js.map +1 -0
- package/dist/shell/components/ui/breadcrumb.d.ts +13 -0
- package/dist/shell/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/shell/components/ui/breadcrumb.js +35 -0
- package/dist/shell/components/ui/breadcrumb.js.map +1 -0
- package/dist/shell/components/ui/sidebar-context.d.ts +22 -0
- package/dist/shell/components/ui/sidebar-context.d.ts.map +1 -0
- package/dist/shell/components/ui/sidebar-context.js +85 -0
- package/dist/shell/components/ui/sidebar-context.js.map +1 -0
- package/dist/shell/components/ui/sidebar-menu.d.ts +32 -0
- package/dist/shell/components/ui/sidebar-menu.d.ts.map +1 -0
- package/dist/shell/components/ui/sidebar-menu.js +76 -0
- package/dist/shell/components/ui/sidebar-menu.js.map +1 -0
- package/dist/shell/components/ui/sidebar.d.ts +28 -0
- package/dist/shell/components/ui/sidebar.d.ts.map +1 -0
- package/dist/shell/components/ui/sidebar.js +83 -0
- package/dist/shell/components/ui/sidebar.js.map +1 -0
- package/dist/shell/copy/shell-copy.d.ts +38 -0
- package/dist/shell/copy/shell-copy.d.ts.map +1 -0
- package/dist/shell/copy/shell-copy.js +12 -0
- package/dist/shell/copy/shell-copy.js.map +1 -0
- package/dist/shell/hooks/use-mobile.d.ts +2 -0
- package/dist/shell/hooks/use-mobile.d.ts.map +1 -0
- package/dist/shell/hooks/use-mobile.js +18 -0
- package/dist/shell/hooks/use-mobile.js.map +1 -0
- package/dist/shell/index.d.ts +5 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +5 -0
- package/dist/shell/index.js.map +1 -0
- package/package.json +106 -4
- package/third-party-licenses/dice-ui.txt +21 -0
- package/third-party-licenses/mantine.txt +21 -0
- package/third-party-licenses/radix-primitives.txt +21 -0
- package/third-party-licenses/shadcn-ui.txt +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-is-phone-width.js","sourceRoot":"","sources":["../../../src/data-table/hooks/use-is-phone-width.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,0EAA0E;AAC1E,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,KAAK,CAAC,oBAAoB,CAC/B,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,CACzB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,QAAoB;IACjD,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,GAAG,EAAE,CAAC,SAAS,CAAC;IAC3C,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,GAAG,EAAE;QACV,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB;IACvB,OAAO,mBAAmB,EAAE,EAAE,OAAO,IAAI,KAAK,CAAC;AACjD,CAAC;AAED,SAAS,wBAAwB;IAC/B,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,mBAAmB;IAC1B,IACE,OAAO,MAAM,KAAK,WAAW;QAC7B,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,EACvC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ListEmptiness, readListEmptiness } from "../lib/list-emptiness.js";
|
|
2
|
+
/**
|
|
3
|
+
* {@link readListEmptiness} for a list page, remembering whether the page has
|
|
4
|
+
* shown its table so a later narrowed zero keeps it (see
|
|
5
|
+
* {@link keepTableWhileChecking}). Pass `undefined` until the list query has
|
|
6
|
+
* answered: a pending list is not an empty one.
|
|
7
|
+
*
|
|
8
|
+
* `scope` is what the list is of — the business context, organization,
|
|
9
|
+
* facility, or parent record — compared by value. A table shown for one scope
|
|
10
|
+
* proves nothing about another, so a page that stays mounted while its scope
|
|
11
|
+
* changes checks a narrowed zero again instead of showing "no matches" first.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useListEmptiness(counts: Parameters<typeof readListEmptiness>[0] | undefined, scope: readonly unknown[]): ListEmptiness | undefined;
|
|
14
|
+
//# sourceMappingURL=use-list-emptiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-list-emptiness.d.ts","sourceRoot":"","sources":["../../../src/data-table/hooks/use-list-emptiness.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,aAAa,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3D,KAAK,EAAE,SAAS,OAAO,EAAE,GACxB,aAAa,GAAG,SAAS,CAe3B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { keepTableWhileChecking, readListEmptiness, } from "../lib/list-emptiness.js";
|
|
3
|
+
/**
|
|
4
|
+
* {@link readListEmptiness} for a list page, remembering whether the page has
|
|
5
|
+
* shown its table so a later narrowed zero keeps it (see
|
|
6
|
+
* {@link keepTableWhileChecking}). Pass `undefined` until the list query has
|
|
7
|
+
* answered: a pending list is not an empty one.
|
|
8
|
+
*
|
|
9
|
+
* `scope` is what the list is of — the business context, organization,
|
|
10
|
+
* facility, or parent record — compared by value. A table shown for one scope
|
|
11
|
+
* proves nothing about another, so a page that stays mounted while its scope
|
|
12
|
+
* changes checks a narrowed zero again instead of showing "no matches" first.
|
|
13
|
+
*/
|
|
14
|
+
export function useListEmptiness(counts, scope) {
|
|
15
|
+
const emptiness = counts === undefined ? undefined : readListEmptiness(counts);
|
|
16
|
+
const scopeKey = JSON.stringify(scope);
|
|
17
|
+
// The scope the table was last shown for, if any.
|
|
18
|
+
const [tableShownFor, setTableShownFor] = React.useState();
|
|
19
|
+
const tableShown = tableShownFor === scopeKey;
|
|
20
|
+
const showsTable = emptiness === "HAS_ROWS" || emptiness === "NO_MATCHES";
|
|
21
|
+
if (showsTable && !tableShown)
|
|
22
|
+
setTableShownFor(scopeKey);
|
|
23
|
+
if (emptiness === "ZERO" && tableShownFor !== undefined) {
|
|
24
|
+
setTableShownFor(undefined);
|
|
25
|
+
}
|
|
26
|
+
return keepTableWhileChecking(emptiness, tableShown);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=use-list-emptiness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-list-emptiness.js","sourceRoot":"","sources":["../../../src/data-table/hooks/use-list-emptiness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,sBAAsB,EAEtB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAA2D,EAC3D,KAAyB;IAEzB,MAAM,SAAS,GACb,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACvC,kDAAkD;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,UAAU,GAAG,aAAa,KAAK,QAAQ,CAAC;IAE9C,MAAM,UAAU,GAAG,SAAS,KAAK,UAAU,IAAI,SAAS,KAAK,YAAY,CAAC;IAC1E,IAAI,UAAU,IAAI,CAAC,UAAU;QAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,SAAS,KAAK,MAAM,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QACxD,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,sBAAsB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ColumnDef, type ColumnPinningState, type Updater, type VisibilityState } from "@tanstack/react-table";
|
|
2
|
+
/** The column layout `useDataTable` hands TanStack: roles, pins, and visibility. */
|
|
3
|
+
export type ReaderColumnLayout<TData> = {
|
|
4
|
+
readonly columns: ColumnDef<TData>[];
|
|
5
|
+
readonly defaultPinning: ColumnPinningState;
|
|
6
|
+
readonly columnVisibility: VisibilityState;
|
|
7
|
+
readonly onColumnVisibilityChange: (updaterOrValue: Updater<VisibilityState>) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Which columns show and where they pin. The identifying, selection, and
|
|
11
|
+
* actions columns can never be hidden; the reader hides the rest, starting
|
|
12
|
+
* from the page's `initialVisibility` overlaid with what the reader chose for
|
|
13
|
+
* `tableId` last time, and every change is remembered for `tableId`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useReaderColumnLayout<TData>({ callerColumns, initialVisibility, tableId, }: {
|
|
16
|
+
readonly callerColumns: readonly ColumnDef<TData>[];
|
|
17
|
+
readonly initialVisibility: VisibilityState | undefined;
|
|
18
|
+
readonly tableId: string | undefined;
|
|
19
|
+
}): ReaderColumnLayout<TData>;
|
|
20
|
+
//# sourceMappingURL=use-reader-column-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-reader-column-layout.d.ts","sourceRoot":"","sources":["../../../src/data-table/hooks/use-reader-column-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,kBAAkB,EAEvB,KAAK,OAAO,EACZ,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAe/B,oFAAoF;AACpF,MAAM,MAAM,kBAAkB,CAAC,KAAK,IAAI;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IACrC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC5C,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,wBAAwB,EAAE,CACjC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,KACrC,IAAI,CAAC;CACX,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,EAC3C,aAAa,EACb,iBAAiB,EACjB,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,aAAa,EAAE,SAAS,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,QAAQ,CAAC,iBAAiB,EAAE,eAAe,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAuC5B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { functionalUpdate, } from "@tanstack/react-table";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { defaultColumnPinning, pickReaderVisibility, readHideableColumnIds, withColumnRoles, } from "../lib/column-roles.js";
|
|
4
|
+
import { readBrowserStorage, readStoredColumnVisibility, writeStoredColumnVisibility, } from "../lib/column-visibility-storage.js";
|
|
5
|
+
/**
|
|
6
|
+
* Which columns show and where they pin. The identifying, selection, and
|
|
7
|
+
* actions columns can never be hidden; the reader hides the rest, starting
|
|
8
|
+
* from the page's `initialVisibility` overlaid with what the reader chose for
|
|
9
|
+
* `tableId` last time, and every change is remembered for `tableId`.
|
|
10
|
+
*/
|
|
11
|
+
export function useReaderColumnLayout({ callerColumns, initialVisibility, tableId, }) {
|
|
12
|
+
const columns = React.useMemo(() => withColumnRoles(callerColumns), [callerColumns]);
|
|
13
|
+
const hideableColumnIds = React.useMemo(() => readHideableColumnIds(columns), [columns]);
|
|
14
|
+
const defaultPinning = React.useMemo(() => defaultColumnPinning(columns), [columns]);
|
|
15
|
+
const [columnVisibility, setColumnVisibility] = React.useState(() => ({
|
|
16
|
+
...initialVisibility,
|
|
17
|
+
...readStoredColumnVisibility(readBrowserStorage(), tableId),
|
|
18
|
+
}));
|
|
19
|
+
const onColumnVisibilityChange = React.useCallback((updaterOrValue) => {
|
|
20
|
+
const next = functionalUpdate(updaterOrValue, columnVisibility);
|
|
21
|
+
setColumnVisibility(next);
|
|
22
|
+
writeStoredColumnVisibility(readBrowserStorage(), tableId, pickReaderVisibility(next, hideableColumnIds));
|
|
23
|
+
}, [columnVisibility, hideableColumnIds, tableId]);
|
|
24
|
+
return {
|
|
25
|
+
columns,
|
|
26
|
+
defaultPinning,
|
|
27
|
+
columnVisibility,
|
|
28
|
+
onColumnVisibilityChange,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=use-reader-column-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-reader-column-layout.js","sourceRoot":"","sources":["../../../src/data-table/hooks/use-reader-column-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,GAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,qCAAqC,CAAC;AAY7C;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAQ,EAC3C,aAAa,EACb,iBAAiB,EACjB,OAAO,GAKR;IACC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAC3B,GAAG,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,EACpC,CAAC,aAAa,CAAC,CAChB,CAAC;IACF,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,CACrC,GAAG,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,EACpC,CAAC,OAAO,CAAC,CACV,CAAC;IACF,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAClC,GAAG,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC,EACnC,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAC3C,KAAK,CAAC,QAAQ,CAAkB,GAAG,EAAE,CAAC,CAAC;QACrC,GAAG,iBAAiB;QACpB,GAAG,0BAA0B,CAAC,kBAAkB,EAAE,EAAE,OAAO,CAAC;KAC7D,CAAC,CAAC,CAAC;IAEN,MAAM,wBAAwB,GAAG,KAAK,CAAC,WAAW,CAChD,CAAC,cAAwC,EAAE,EAAE;QAC3C,MAAM,IAAI,GAAG,gBAAgB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAChE,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC1B,2BAA2B,CACzB,kBAAkB,EAAE,EACpB,OAAO,EACP,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAC9C,CAAC;IACJ,CAAC,EACD,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAC/C,CAAC;IAEF,OAAO;QACL,OAAO;QACP,cAAc;QACd,gBAAgB;QAChB,wBAAwB;KACzB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from "./components/data-table/data-table.js";
|
|
2
|
+
export * from "./components/data-table/data-table-advanced-toolbar.js";
|
|
3
|
+
export * from "./components/data-table/data-table-column-header.js";
|
|
4
|
+
export * from "./components/data-table/data-table-date-filter.js";
|
|
5
|
+
export * from "./components/data-table/data-table-faceted-filter.js";
|
|
6
|
+
export * from "./components/data-table/data-table-filter-list.js";
|
|
7
|
+
export * from "./components/data-table/data-table-filter-menu.js";
|
|
8
|
+
export * from "./components/data-table/data-table-pagination.js";
|
|
9
|
+
export * from "./components/data-table/data-table-range-filter.js";
|
|
10
|
+
export * from "./components/data-table/data-table-row-hit-area.js";
|
|
11
|
+
export * from "./components/data-table/data-table-search-input.js";
|
|
12
|
+
export * from "./components/data-table/data-table-skeleton.js";
|
|
13
|
+
export * from "./components/data-table/data-table-slider-filter.js";
|
|
14
|
+
export * from "./components/data-table/data-table-sort-list.js";
|
|
15
|
+
export * from "./components/data-table/data-table-toolbar.js";
|
|
16
|
+
export * from "./components/data-table/applied-filter-chips.js";
|
|
17
|
+
export * from "./components/data-table/filter-pill.js";
|
|
18
|
+
export * from "./components/ui/date-picker.js";
|
|
19
|
+
export * from "./components/ui/faceted.js";
|
|
20
|
+
export * from "./components/ui/sortable.js";
|
|
21
|
+
export * from "./config/data-table.js";
|
|
22
|
+
export * from "./copy/data-table-copy.js";
|
|
23
|
+
export * from "./hooks/use-data-table.js";
|
|
24
|
+
export * from "./hooks/use-data-table-search-params.js";
|
|
25
|
+
export * from "./hooks/use-debounced-callback.js";
|
|
26
|
+
export * from "./hooks/use-is-phone-width.js";
|
|
27
|
+
export * from "./hooks/use-list-emptiness.js";
|
|
28
|
+
export * from "./lib/column-filters.js";
|
|
29
|
+
export * from "./lib/data-table.js";
|
|
30
|
+
export * from "./lib/data-table-types.js";
|
|
31
|
+
export * from "./lib/filter-groups.js";
|
|
32
|
+
export * from "./lib/filter-param.js";
|
|
33
|
+
export * from "./lib/list-emptiness.js";
|
|
34
|
+
export * from "./lib/parsers.js";
|
|
35
|
+
export * from "./lib/row-groups.js";
|
|
36
|
+
export * from "./lib/sort-param.js";
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-table/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,wDAAwD,CAAC;AACvE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AACrE,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from "./components/data-table/data-table.js";
|
|
2
|
+
export * from "./components/data-table/data-table-advanced-toolbar.js";
|
|
3
|
+
export * from "./components/data-table/data-table-column-header.js";
|
|
4
|
+
export * from "./components/data-table/data-table-date-filter.js";
|
|
5
|
+
export * from "./components/data-table/data-table-faceted-filter.js";
|
|
6
|
+
export * from "./components/data-table/data-table-filter-list.js";
|
|
7
|
+
export * from "./components/data-table/data-table-filter-menu.js";
|
|
8
|
+
export * from "./components/data-table/data-table-pagination.js";
|
|
9
|
+
export * from "./components/data-table/data-table-range-filter.js";
|
|
10
|
+
export * from "./components/data-table/data-table-row-hit-area.js";
|
|
11
|
+
export * from "./components/data-table/data-table-search-input.js";
|
|
12
|
+
export * from "./components/data-table/data-table-skeleton.js";
|
|
13
|
+
export * from "./components/data-table/data-table-slider-filter.js";
|
|
14
|
+
export * from "./components/data-table/data-table-sort-list.js";
|
|
15
|
+
export * from "./components/data-table/data-table-toolbar.js";
|
|
16
|
+
export * from "./components/data-table/applied-filter-chips.js";
|
|
17
|
+
export * from "./components/data-table/filter-pill.js";
|
|
18
|
+
export * from "./components/ui/date-picker.js";
|
|
19
|
+
export * from "./components/ui/faceted.js";
|
|
20
|
+
export * from "./components/ui/sortable.js";
|
|
21
|
+
export * from "./config/data-table.js";
|
|
22
|
+
export * from "./copy/data-table-copy.js";
|
|
23
|
+
export * from "./hooks/use-data-table.js";
|
|
24
|
+
export * from "./hooks/use-data-table-search-params.js";
|
|
25
|
+
export * from "./hooks/use-debounced-callback.js";
|
|
26
|
+
export * from "./hooks/use-is-phone-width.js";
|
|
27
|
+
export * from "./hooks/use-list-emptiness.js";
|
|
28
|
+
export * from "./lib/column-filters.js";
|
|
29
|
+
export * from "./lib/data-table.js";
|
|
30
|
+
export * from "./lib/data-table-types.js";
|
|
31
|
+
export * from "./lib/filter-groups.js";
|
|
32
|
+
export * from "./lib/filter-param.js";
|
|
33
|
+
export * from "./lib/list-emptiness.js";
|
|
34
|
+
export * from "./lib/parsers.js";
|
|
35
|
+
export * from "./lib/row-groups.js";
|
|
36
|
+
export * from "./lib/sort-param.js";
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data-table/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,wDAAwD,CAAC;AACvE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AACrE,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** How many label/value pairs a phone card shows before its details. */
|
|
2
|
+
export declare const CARD_SUMMARY_LIMIT = 3;
|
|
3
|
+
/** One column a card holds, as the card layout needs to know it. */
|
|
4
|
+
export type CardColumn = {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly cardHeading?: boolean;
|
|
7
|
+
/** `meta.cardSummary`: true puts it in the summary, false keeps it in the details. */
|
|
8
|
+
readonly cardSummary?: boolean;
|
|
9
|
+
/** Hidden by the reader on wide screens: still on the card, only in the details. */
|
|
10
|
+
readonly readerHidden?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Where each column goes on a phone card. Every column given lands in exactly
|
|
14
|
+
* one place, so collapsing a row into a card never drops a field.
|
|
15
|
+
*/
|
|
16
|
+
export type CardFieldPlan = {
|
|
17
|
+
readonly selectionId: string | undefined;
|
|
18
|
+
readonly headingId: string | undefined;
|
|
19
|
+
readonly summaryIds: readonly string[];
|
|
20
|
+
readonly detailIds: readonly string[];
|
|
21
|
+
readonly actionsId: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Lay a card's columns out: the identifying column as the heading, up to
|
|
25
|
+
* three summary fields, every remaining column in the details, and
|
|
26
|
+
* the actions in the footer.
|
|
27
|
+
*
|
|
28
|
+
* Summary fields are the columns that opt in with `cardSummary: true` when any
|
|
29
|
+
* do; otherwise the next columns, skipping those that opt out. A column the
|
|
30
|
+
* reader hid is never a summary field; it waits in the details.
|
|
31
|
+
*/
|
|
32
|
+
export declare function planCardFields(columns: readonly CardColumn[]): CardFieldPlan;
|
|
33
|
+
//# sourceMappingURL=card-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-fields.d.ts","sourceRoot":"","sources":["../../../src/data-table/lib/card-fields.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC,oEAAoE;AACpE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,sFAAsF;IACtF,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,GAAG,aAAa,CAoC5E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ACTIONS_COLUMN_ID, isSelectionColumnId } from "./column-roles.js";
|
|
2
|
+
/** How many label/value pairs a phone card shows before its details. */
|
|
3
|
+
export const CARD_SUMMARY_LIMIT = 3;
|
|
4
|
+
/**
|
|
5
|
+
* Lay a card's columns out: the identifying column as the heading, up to
|
|
6
|
+
* three summary fields, every remaining column in the details, and
|
|
7
|
+
* the actions in the footer.
|
|
8
|
+
*
|
|
9
|
+
* Summary fields are the columns that opt in with `cardSummary: true` when any
|
|
10
|
+
* do; otherwise the next columns, skipping those that opt out. A column the
|
|
11
|
+
* reader hid is never a summary field; it waits in the details.
|
|
12
|
+
*/
|
|
13
|
+
export function planCardFields(columns) {
|
|
14
|
+
const selectionId = columns.find((column) => isSelectionColumnId(column.id))?.id;
|
|
15
|
+
const actionsId = columns.find((column) => column.id === ACTIONS_COLUMN_ID)?.id;
|
|
16
|
+
const content = columns.filter((column) => !isSelectionColumnId(column.id) && column.id !== ACTIONS_COLUMN_ID);
|
|
17
|
+
const heading = content.find((column) => column.cardHeading === true) ?? content[0];
|
|
18
|
+
const fields = content.filter((column) => column !== heading);
|
|
19
|
+
const shownFields = fields.filter((column) => column.readerHidden !== true);
|
|
20
|
+
const optedIn = shownFields.filter((column) => column.cardSummary === true);
|
|
21
|
+
const summaryCandidates = optedIn.length > 0
|
|
22
|
+
? optedIn
|
|
23
|
+
: shownFields.filter((column) => column.cardSummary !== false);
|
|
24
|
+
const summaryIds = summaryCandidates
|
|
25
|
+
.slice(0, CARD_SUMMARY_LIMIT)
|
|
26
|
+
.map((column) => column.id);
|
|
27
|
+
const summarySet = new Set(summaryIds);
|
|
28
|
+
const detailIds = fields
|
|
29
|
+
.filter((column) => !summarySet.has(column.id))
|
|
30
|
+
.map((column) => column.id);
|
|
31
|
+
return {
|
|
32
|
+
selectionId,
|
|
33
|
+
headingId: heading?.id,
|
|
34
|
+
summaryIds,
|
|
35
|
+
detailIds,
|
|
36
|
+
actionsId,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=card-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-fields.js","sourceRoot":"","sources":["../../../src/data-table/lib/card-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE3E,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAwBpC;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAAC,OAA8B;IAC3D,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,CAC/B,EAAE,EAAE,CAAC;IACN,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAC5B,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,iBAAiB,CAC5C,EAAE,EAAE,CAAC;IACN,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAC5B,CAAC,MAAM,EAAE,EAAE,CACT,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,iBAAiB,CACrE,CAAC;IACF,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IACtE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC;IAE5E,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC;IAC5E,MAAM,iBAAiB,GACrB,OAAO,CAAC,MAAM,GAAG,CAAC;QAChB,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC;IACnE,MAAM,UAAU,GAAG,iBAAiB;SACjC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC;SAC5B,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9B,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;IACvC,MAAM,SAAS,GAAG,MAAM;SACrB,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SAC9C,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAE9B,OAAO;QACL,WAAW;QACX,SAAS,EAAE,OAAO,EAAE,EAAE;QACtB,UAAU;QACV,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RowData, Table } from "@tanstack/react-table";
|
|
2
|
+
export declare function hasClearableColumnFilters<TData extends RowData>(table: Table<TData>): boolean;
|
|
3
|
+
/** How many column filters are set that the reader may clear. */
|
|
4
|
+
export declare function countClearableColumnFilters<TData extends RowData>(table: Table<TData>): number;
|
|
5
|
+
export declare function clearClearableColumnFilters<TData extends RowData>(table: Table<TData>): void;
|
|
6
|
+
//# sourceMappingURL=clearable-column-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearable-column-filters.d.ts","sourceRoot":"","sources":["../../../src/data-table/lib/clearable-column-filters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAS5D,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,OAAO,EAC7D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAClB,OAAO,CAIT;AAED,iEAAiE;AACjE,wBAAgB,2BAA2B,CAAC,KAAK,SAAS,OAAO,EAC/D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAClB,MAAM,CAKR;AAED,wBAAgB,2BAA2B,CAAC,KAAK,SAAS,OAAO,EAC/D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAClB,IAAI,CAIN"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function columnFilterCanClear(table, columnId) {
|
|
2
|
+
return table.getColumn(columnId)?.columnDef.meta?.canClearFilter !== false;
|
|
3
|
+
}
|
|
4
|
+
export function hasClearableColumnFilters(table) {
|
|
5
|
+
return table
|
|
6
|
+
.getState()
|
|
7
|
+
.columnFilters.some((filter) => columnFilterCanClear(table, filter.id));
|
|
8
|
+
}
|
|
9
|
+
/** How many column filters are set that the reader may clear. */
|
|
10
|
+
export function countClearableColumnFilters(table) {
|
|
11
|
+
return table
|
|
12
|
+
.getState()
|
|
13
|
+
.columnFilters.filter((filter) => columnFilterCanClear(table, filter.id))
|
|
14
|
+
.length;
|
|
15
|
+
}
|
|
16
|
+
export function clearClearableColumnFilters(table) {
|
|
17
|
+
table.setColumnFilters((filters) => filters.filter((filter) => !columnFilterCanClear(table, filter.id)));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=clearable-column-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearable-column-filters.js","sourceRoot":"","sources":["../../../src/data-table/lib/clearable-column-filters.ts"],"names":[],"mappings":"AAEA,SAAS,oBAAoB,CAC3B,KAAmB,EACnB,QAAgB;IAEhB,OAAO,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,EAAE,cAAc,KAAK,KAAK,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAAmB;IAEnB,OAAO,KAAK;SACT,QAAQ,EAAE;SACV,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,2BAA2B,CACzC,KAAmB;IAEnB,OAAO,KAAK;SACT,QAAQ,EAAE;SACV,aAAa,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;SACxE,MAAM,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,KAAmB;IAEnB,KAAK,CAAC,gBAAgB,CAAC,CAAC,OAAO,EAAE,EAAE,CACjC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ExtendedColumnFilter, FilterVariant } from "./data-table-types.js";
|
|
2
|
+
import type { FilterParamItem } from "./filter-param.js";
|
|
3
|
+
/**
|
|
4
|
+
* Put a URL's filters back together as the table's own filters.
|
|
5
|
+
*
|
|
6
|
+
* The URL carries only what a reader chose — which column, what value, and an
|
|
7
|
+
* operator when it was not the obvious one. Everything else is a fact about
|
|
8
|
+
* the column, so it comes from the column: the variant decides which control
|
|
9
|
+
* renders and whether the value is a list, and the variant's first operator is
|
|
10
|
+
* what "no operator" meant. A filter naming a column this table does not have
|
|
11
|
+
* is dropped rather than shown as a control over nothing.
|
|
12
|
+
*/
|
|
13
|
+
export declare function toColumnFilters<TData>(filters: readonly FilterParamItem[], columnVariants: ReadonlyMap<string, FilterVariant>): ExtendedColumnFilter<TData>[];
|
|
14
|
+
/**
|
|
15
|
+
* Take the table's filters back down to what the URL should say — the column,
|
|
16
|
+
* the value, and the operator only when the column would not have assumed it.
|
|
17
|
+
*/
|
|
18
|
+
export declare function toUrlFilters<TData>(filters: readonly ExtendedColumnFilter<TData>[], columnVariants: ReadonlyMap<string, FilterVariant>): FilterParamItem[];
|
|
19
|
+
//# sourceMappingURL=column-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-filters.d.ts","sourceRoot":"","sources":["../../../src/data-table/lib/column-filters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWzD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EACnC,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,GACjD,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAsB/B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAChC,OAAO,EAAE,SAAS,oBAAoB,CAAC,KAAK,CAAC,EAAE,EAC/C,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,GACjD,eAAe,EAAE,CASnB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getDefaultFilterOperator } from "./data-table.js";
|
|
2
|
+
import { isKnownColumnId } from "./parsers.js";
|
|
3
|
+
/** Variants whose control offers a set of choices, so their value is a list. */
|
|
4
|
+
const LIST_VALUE_VARIANTS = new Set([
|
|
5
|
+
"select",
|
|
6
|
+
"multiSelect",
|
|
7
|
+
"range",
|
|
8
|
+
"dateRange",
|
|
9
|
+
]);
|
|
10
|
+
/**
|
|
11
|
+
* Put a URL's filters back together as the table's own filters.
|
|
12
|
+
*
|
|
13
|
+
* The URL carries only what a reader chose — which column, what value, and an
|
|
14
|
+
* operator when it was not the obvious one. Everything else is a fact about
|
|
15
|
+
* the column, so it comes from the column: the variant decides which control
|
|
16
|
+
* renders and whether the value is a list, and the variant's first operator is
|
|
17
|
+
* what "no operator" meant. A filter naming a column this table does not have
|
|
18
|
+
* is dropped rather than shown as a control over nothing.
|
|
19
|
+
*/
|
|
20
|
+
export function toColumnFilters(filters, columnVariants) {
|
|
21
|
+
const columnFilters = [];
|
|
22
|
+
const usedPerColumn = new Map();
|
|
23
|
+
for (const filter of filters) {
|
|
24
|
+
const variant = columnVariants.get(filter.id);
|
|
25
|
+
if (variant === undefined)
|
|
26
|
+
continue;
|
|
27
|
+
if (!isKnownColumnId(filter.id, columnVariants))
|
|
28
|
+
continue;
|
|
29
|
+
const used = usedPerColumn.get(filter.id) ?? 0;
|
|
30
|
+
usedPerColumn.set(filter.id, used + 1);
|
|
31
|
+
columnFilters.push({
|
|
32
|
+
id: filter.id,
|
|
33
|
+
value: matchValueToVariant(filter.value, variant),
|
|
34
|
+
variant,
|
|
35
|
+
operator: filter.operator ?? getDefaultFilterOperator(variant),
|
|
36
|
+
filterId: used === 0 ? filter.id : `${filter.id}~${used}`,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return columnFilters;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Take the table's filters back down to what the URL should say — the column,
|
|
43
|
+
* the value, and the operator only when the column would not have assumed it.
|
|
44
|
+
*/
|
|
45
|
+
export function toUrlFilters(filters, columnVariants) {
|
|
46
|
+
return filters.map((filter) => {
|
|
47
|
+
const variant = columnVariants.get(filter.id) ?? filter.variant;
|
|
48
|
+
if (filter.operator === getDefaultFilterOperator(variant)) {
|
|
49
|
+
return { id: filter.id, value: filter.value };
|
|
50
|
+
}
|
|
51
|
+
return { id: filter.id, operator: filter.operator, value: filter.value };
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function matchValueToVariant(value, variant) {
|
|
55
|
+
const values = Array.isArray(value) ? value : [value];
|
|
56
|
+
if (LIST_VALUE_VARIANTS.has(variant))
|
|
57
|
+
return values;
|
|
58
|
+
return values[0] ?? "";
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=column-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-filters.js","sourceRoot":"","sources":["../../../src/data-table/lib/column-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAM3D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,gFAAgF;AAChF,MAAM,mBAAmB,GAA+B,IAAI,GAAG,CAAC;IAC9D,QAAQ;IACR,aAAa;IACb,OAAO;IACP,WAAW;CACZ,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAmC,EACnC,cAAkD;IAElD,MAAM,aAAa,GAAkC,EAAE,CAAC;IACxD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEhD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC9C,IAAI,OAAO,KAAK,SAAS;YAAE,SAAS;QACpC,IAAI,CAAC,eAAe,CAAQ,MAAM,CAAC,EAAE,EAAE,cAAc,CAAC;YAAE,SAAS;QAEjE,MAAM,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC/C,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;QAEvC,aAAa,CAAC,IAAI,CAAC;YACjB,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,mBAAmB,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC;YACjD,OAAO;YACP,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,wBAAwB,CAAC,OAAO,CAAC;YAC9D,QAAQ,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,IAAI,EAAE;SAC1D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAC1B,OAA+C,EAC/C,cAAkD;IAElD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5B,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC;QAChE,IAAI,MAAM,CAAC,QAAQ,KAAK,wBAAwB,CAAC,OAAO,CAAC,EAAE,CAAC;YAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;QAChD,CAAC;QAED,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB,CAC1B,KAAwB,EACxB,OAAsB;IAEtB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC;QAAE,OAAO,MAAM,CAAC;IAEpD,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words a column goes by outside its header cell — in the Columns menu and
|
|
3
|
+
* as a card field's label. `meta.label` when set; else the header when it is
|
|
4
|
+
* plain text; else the column id spelled as words ("loadedAt" → "Loaded At").
|
|
5
|
+
*/
|
|
6
|
+
export declare function readColumnLabel(column: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly metaLabel: string | undefined;
|
|
9
|
+
readonly header: unknown;
|
|
10
|
+
}): string;
|
|
11
|
+
/** "loadedAt", "loaded_at", or "loaded-at" → "Loaded At". */
|
|
12
|
+
export declare function humanizeColumnId(id: string): string;
|
|
13
|
+
//# sourceMappingURL=column-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-label.d.ts","sourceRoot":"","sources":["../../../src/data-table/lib/column-label.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B,GAAG,MAAM,CAQT;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAOnD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words a column goes by outside its header cell — in the Columns menu and
|
|
3
|
+
* as a card field's label. `meta.label` when set; else the header when it is
|
|
4
|
+
* plain text; else the column id spelled as words ("loadedAt" → "Loaded At").
|
|
5
|
+
*/
|
|
6
|
+
export function readColumnLabel(column) {
|
|
7
|
+
if (column.metaLabel !== undefined && column.metaLabel !== "") {
|
|
8
|
+
return column.metaLabel;
|
|
9
|
+
}
|
|
10
|
+
if (typeof column.header === "string" && column.header !== "") {
|
|
11
|
+
return column.header;
|
|
12
|
+
}
|
|
13
|
+
return humanizeColumnId(column.id);
|
|
14
|
+
}
|
|
15
|
+
/** "loadedAt", "loaded_at", or "loaded-at" → "Loaded At". */
|
|
16
|
+
export function humanizeColumnId(id) {
|
|
17
|
+
return id
|
|
18
|
+
.replace(/([a-z0-9])([A-Z])/g, "$1 $2")
|
|
19
|
+
.split(/[\s_-]+/)
|
|
20
|
+
.filter((word) => word !== "")
|
|
21
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
22
|
+
.join(" ");
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=column-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-label.js","sourceRoot":"","sources":["../../../src/data-table/lib/column-label.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAI/B;IACC,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,KAAK,EAAE,EAAE,CAAC;QAC9D,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1B,CAAC;IACD,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;QAC9D,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;IACD,OAAO,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,gBAAgB,CAAC,EAAU;IACzC,OAAO,EAAE;SACN,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC;SACtC,KAAK,CAAC,SAAS,CAAC;SAChB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC;SAC7B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC3D,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ColumnDef, ColumnPinningState, VisibilityState } from "@tanstack/react-table";
|
|
2
|
+
/** Whether `id` names a row-selection checkbox column ("select" or "selection"). */
|
|
3
|
+
export declare function isSelectionColumnId(id: string | undefined): boolean;
|
|
4
|
+
/** The column id a row's trailing actions use by convention. */
|
|
5
|
+
export declare const ACTIONS_COLUMN_ID = "actions";
|
|
6
|
+
/**
|
|
7
|
+
* The id TanStack gives a column definition: its `id`, else its string
|
|
8
|
+
* `accessorKey`. Undefined for a definition with neither (TanStack rejects it).
|
|
9
|
+
*/
|
|
10
|
+
export declare function readColumnDefId<TData>(column: ColumnDef<TData>): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The column that names each row — the first one that is not the selection
|
|
13
|
+
* checkbox. It is pinned left on wide screens, heads each card on phones, and
|
|
14
|
+
* can never be hidden.
|
|
15
|
+
*/
|
|
16
|
+
export declare function readIdentifyingColumnId<TData>(columns: readonly ColumnDef<TData>[]): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The same definitions with hiding switched off for the columns a reader may
|
|
19
|
+
* never hide: the identifying column, the selection checkbox, and the actions.
|
|
20
|
+
*/
|
|
21
|
+
export declare function withColumnRoles<TData>(columns: readonly ColumnDef<TData>[]): ColumnDef<TData>[];
|
|
22
|
+
/**
|
|
23
|
+
* Pin the selection checkbox and the identifying column left, and the actions
|
|
24
|
+
* column right, so a row stays recognisable and actionable while the columns
|
|
25
|
+
* between them scroll sideways.
|
|
26
|
+
*/
|
|
27
|
+
export declare function defaultColumnPinning<TData>(columns: readonly ColumnDef<TData>[]): ColumnPinningState;
|
|
28
|
+
/** Ids of the columns a reader may hide, given definitions from `withColumnRoles`. */
|
|
29
|
+
export declare function readHideableColumnIds<TData>(columns: readonly ColumnDef<TData>[]): ReadonlySet<string>;
|
|
30
|
+
/** Only the visibility entries a reader controls — what is worth remembering. */
|
|
31
|
+
export declare function pickReaderVisibility(visibility: VisibilityState, hideableIds: ReadonlySet<string>): VisibilityState;
|
|
32
|
+
/** `visibility` with every column the reader may hide shown again. */
|
|
33
|
+
export declare function showEveryHideableColumn(visibility: VisibilityState, hideableIds: Iterable<string>): VisibilityState;
|
|
34
|
+
//# sourceMappingURL=column-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-roles.d.ts","sourceRoot":"","sources":["../../../src/data-table/lib/column-roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAQ/B,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEnE;AAED,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EACnC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,GACvB,MAAM,GAAG,SAAS,CAMpB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAC3C,OAAO,EAAE,SAAS,SAAS,CAAC,KAAK,CAAC,EAAE,GACnC,MAAM,GAAG,SAAS,CAIpB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EACnC,OAAO,EAAE,SAAS,SAAS,CAAC,KAAK,CAAC,EAAE,GACnC,SAAS,CAAC,KAAK,CAAC,EAAE,CAUpB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EACxC,OAAO,EAAE,SAAS,SAAS,CAAC,KAAK,CAAC,EAAE,GACnC,kBAAkB,CASpB;AAED,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,KAAK,EACzC,OAAO,EAAE,SAAS,SAAS,CAAC,KAAK,CAAC,EAAE,GACnC,WAAW,CAAC,MAAM,CAAC,CAOrB;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAC/B,eAAe,CAIjB;AAED,sEAAsE;AACtE,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,GAC5B,eAAe,CAKjB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/** The column ids a row-selection checkbox column uses by convention. */
|
|
2
|
+
const SELECTION_COLUMN_IDS = new Set([
|
|
3
|
+
"select",
|
|
4
|
+
"selection",
|
|
5
|
+
]);
|
|
6
|
+
/** Whether `id` names a row-selection checkbox column ("select" or "selection"). */
|
|
7
|
+
export function isSelectionColumnId(id) {
|
|
8
|
+
return id !== undefined && SELECTION_COLUMN_IDS.has(id);
|
|
9
|
+
}
|
|
10
|
+
/** The column id a row's trailing actions use by convention. */
|
|
11
|
+
export const ACTIONS_COLUMN_ID = "actions";
|
|
12
|
+
/**
|
|
13
|
+
* The id TanStack gives a column definition: its `id`, else its string
|
|
14
|
+
* `accessorKey`. Undefined for a definition with neither (TanStack rejects it).
|
|
15
|
+
*/
|
|
16
|
+
export function readColumnDefId(column) {
|
|
17
|
+
if (column.id !== undefined)
|
|
18
|
+
return column.id;
|
|
19
|
+
if ("accessorKey" in column && typeof column.accessorKey === "string") {
|
|
20
|
+
return column.accessorKey;
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The column that names each row — the first one that is not the selection
|
|
26
|
+
* checkbox. It is pinned left on wide screens, heads each card on phones, and
|
|
27
|
+
* can never be hidden.
|
|
28
|
+
*/
|
|
29
|
+
export function readIdentifyingColumnId(columns) {
|
|
30
|
+
return columns
|
|
31
|
+
.map((column) => readColumnDefId(column))
|
|
32
|
+
.find((id) => id !== undefined && !isSelectionColumnId(id));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The same definitions with hiding switched off for the columns a reader may
|
|
36
|
+
* never hide: the identifying column, the selection checkbox, and the actions.
|
|
37
|
+
*/
|
|
38
|
+
export function withColumnRoles(columns) {
|
|
39
|
+
const identifyingId = readIdentifyingColumnId(columns);
|
|
40
|
+
return columns.map((column) => {
|
|
41
|
+
const id = readColumnDefId(column);
|
|
42
|
+
const alwaysShown = id === identifyingId ||
|
|
43
|
+
isSelectionColumnId(id) ||
|
|
44
|
+
id === ACTIONS_COLUMN_ID;
|
|
45
|
+
return alwaysShown ? { ...column, enableHiding: false } : column;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Pin the selection checkbox and the identifying column left, and the actions
|
|
50
|
+
* column right, so a row stays recognisable and actionable while the columns
|
|
51
|
+
* between them scroll sideways.
|
|
52
|
+
*/
|
|
53
|
+
export function defaultColumnPinning(columns) {
|
|
54
|
+
const ids = columns.flatMap((column) => readColumnDefId(column) ?? []);
|
|
55
|
+
const identifyingId = readIdentifyingColumnId(columns);
|
|
56
|
+
const left = [
|
|
57
|
+
...ids.filter((id) => isSelectionColumnId(id)),
|
|
58
|
+
...(identifyingId === undefined ? [] : [identifyingId]),
|
|
59
|
+
];
|
|
60
|
+
const right = ids.includes(ACTIONS_COLUMN_ID) ? [ACTIONS_COLUMN_ID] : [];
|
|
61
|
+
return { left, right };
|
|
62
|
+
}
|
|
63
|
+
/** Ids of the columns a reader may hide, given definitions from `withColumnRoles`. */
|
|
64
|
+
export function readHideableColumnIds(columns) {
|
|
65
|
+
return new Set(columns.flatMap((column) => {
|
|
66
|
+
const id = readColumnDefId(column);
|
|
67
|
+
return id !== undefined && column.enableHiding !== false ? [id] : [];
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
/** Only the visibility entries a reader controls — what is worth remembering. */
|
|
71
|
+
export function pickReaderVisibility(visibility, hideableIds) {
|
|
72
|
+
return Object.fromEntries(Object.entries(visibility).filter(([id]) => hideableIds.has(id)));
|
|
73
|
+
}
|
|
74
|
+
/** `visibility` with every column the reader may hide shown again. */
|
|
75
|
+
export function showEveryHideableColumn(visibility, hideableIds) {
|
|
76
|
+
const shown = Object.fromEntries([...hideableIds].map((id) => [id, true]));
|
|
77
|
+
return { ...visibility, ...shown };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=column-roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-roles.js","sourceRoot":"","sources":["../../../src/data-table/lib/column-roles.ts"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC;IACxD,QAAQ;IACR,WAAW;CACZ,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,UAAU,mBAAmB,CAAC,EAAsB;IACxD,OAAO,EAAE,KAAK,SAAS,IAAI,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAE3C;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAwB;IAExB,IAAI,MAAM,CAAC,EAAE,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC,EAAE,CAAC;IAC9C,IAAI,aAAa,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QACtE,OAAO,MAAM,CAAC,WAAW,CAAC;IAC5B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAoC;IAEpC,OAAO,OAAO;SACX,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACxC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAS,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAoC;IAEpC,MAAM,aAAa,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACvD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5B,MAAM,EAAE,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACnC,MAAM,WAAW,GACf,EAAE,KAAK,aAAa;YACpB,mBAAmB,CAAC,EAAE,CAAC;YACvB,EAAE,KAAK,iBAAiB,CAAC;QAC3B,OAAO,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAoC;IAEpC,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IACvE,MAAM,aAAa,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG;QACX,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAC9C,GAAG,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;KACxD,CAAC;IACF,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACzB,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,qBAAqB,CACnC,OAAoC;IAEpC,OAAO,IAAI,GAAG,CACZ,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACzB,MAAM,EAAE,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACnC,OAAO,EAAE,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACvE,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,oBAAoB,CAClC,UAA2B,EAC3B,WAAgC;IAEhC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CACjE,CAAC;AACJ,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,uBAAuB,CACrC,UAA2B,EAC3B,WAA6B;IAE7B,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAC9B,CAAC,GAAG,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,CAAU,CAAC,CAClD,CAAC;IACF,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { VisibilityState } from "@tanstack/react-table";
|
|
2
|
+
/** The slice of `Storage` column visibility needs, so tests pass a plain object. */
|
|
3
|
+
export type ColumnVisibilityStorage = Pick<Storage, "getItem" | "setItem">;
|
|
4
|
+
/** Where one table's reader-chosen column visibility is remembered. */
|
|
5
|
+
export declare function columnVisibilityStorageKey(tableId: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* The column visibility a reader chose for `tableId` last time, or an empty
|
|
8
|
+
* state when nothing usable is stored. Storage that throws (private mode,
|
|
9
|
+
* blocked site data) or holds anything but `{ [columnId]: boolean }` reads as
|
|
10
|
+
* nothing chosen, never as an error.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readStoredColumnVisibility(storage: ColumnVisibilityStorage | null, tableId: string | undefined): VisibilityState;
|
|
13
|
+
/**
|
|
14
|
+
* Remember the reader's column visibility for `tableId`. A table without an id
|
|
15
|
+
* keeps the choice for this visit only; a storage failure is ignored, because
|
|
16
|
+
* losing a preference must never break the table.
|
|
17
|
+
*/
|
|
18
|
+
export declare function writeStoredColumnVisibility(storage: ColumnVisibilityStorage | null, tableId: string | undefined, visibility: VisibilityState): void;
|
|
19
|
+
/** The browser's `localStorage`, or null where reading it throws or it is absent. */
|
|
20
|
+
export declare function readBrowserStorage(): ColumnVisibilityStorage | null;
|
|
21
|
+
//# sourceMappingURL=column-visibility-storage.d.ts.map
|