@economic/taco 2.24.0 → 2.25.1-alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/index.css +208 -515
- package/dist/esm/packages/taco/src/components/Field/Field.js +1 -0
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +11 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +48 -43
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Report/Report.js +8 -51
- package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Report/useReport.js +8 -45
- package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +3 -3
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
- package/dist/esm/packages/taco/src/index.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
- package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +72 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js +25 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +60 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js +33 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js +74 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +101 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +71 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +167 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +39 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +216 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js +28 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +158 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js +60 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js +41 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js +24 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +120 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +30 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +9 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +53 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +62 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +129 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +102 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +50 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +110 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +128 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js +10 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +125 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +96 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +119 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +103 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js +77 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js +44 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js +58 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +30 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +164 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js +24 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +80 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +24 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +126 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +137 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +20 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +273 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/dom.js +19 -3
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/input.js +1 -14
- package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
- package/dist/index.css +208 -515
- package/dist/packages/taco/src/components/Provider/Localization.d.ts +398 -0
- package/dist/packages/taco/src/components/Report/Report.d.ts +10 -0
- package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +19 -0
- package/dist/packages/taco/src/components/Report/useReport.d.ts +23 -0
- package/dist/packages/taco/src/components/Select2/Select2.d.ts +68 -0
- package/dist/packages/taco/src/components/Table/Table.d.ts +14 -0
- package/dist/packages/taco/src/components/Table/components/BaseTable.d.ts +8 -0
- package/dist/packages/taco/src/components/Table/hooks/useRowCreation.d.ts +11 -0
- package/dist/packages/taco/src/components/Table/hooks/useTable.d.ts +38 -0
- package/dist/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.d.ts +3 -0
- package/dist/packages/taco/src/components/Table/types.d.ts +284 -0
- package/dist/packages/taco/src/components/Table/util/sortTypes.d.ts +4 -0
- package/dist/packages/taco/src/components/Table/util.d.ts +12 -0
- package/dist/packages/taco/src/components/Table3/Table3.d.ts +20 -0
- package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +23 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +3 -0
- package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
- package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +12 -0
- package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
- package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +3 -0
- package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
- package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +46 -0
- package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
- package/dist/packages/taco/src/components/Table3/types.d.ts +54 -0
- package/dist/packages/taco/src/components/Table3/useTable3.d.ts +30 -0
- package/dist/packages/taco/src/components/Table3/util/editing.d.ts +2 -0
- package/dist/packages/taco/src/index.d.ts +74 -0
- package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +19 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Body/Body.d.ts +8 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.d.ts +7 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.d.ts +10 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.d.ts +19 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.d.ts +13 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/Header.d.ts +45 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.d.ts +6 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.d.ts +21 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.d.ts +12 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.d.ts +15 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +4 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +6 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Row/RowContext.d.ts +7 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.d.ts +12 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +12 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.d.ts +7 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.d.ts +10 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.d.ts +4 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.d.ts +9 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.d.ts +17 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +7 -0
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.d.ts +8 -0
- package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
- package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts +3 -0
- package/dist/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.d.ts +4 -0
- package/dist/packages/taco/src/primitives/Table/Core/features/useTableRenderer.d.ts +10 -0
- package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +24 -0
- package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +25 -0
- package/dist/packages/taco/src/primitives/Table/types.d.ts +379 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.d.ts +13 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/types.d.ts +14 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/useTableManager.d.ts +65 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/util/presets.d.ts +2 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/util/settings.d.ts +12 -0
- package/dist/packages/taco/src/primitives/Table/useTableManager/util/setup.d.ts +15 -0
- package/dist/packages/taco/src/utils/dom.d.ts +8 -0
- package/dist/taco.cjs.development.js +7011 -11581
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +3 -2
- package/types.json +22467 -51449
- package/dist/components/Provider/Localization.d.ts +0 -390
- package/dist/components/Report/Report.d.ts +0 -23
- package/dist/components/Report/components/Body/Body.d.ts +0 -8
- package/dist/components/Report/components/Body/EmptyStateBody.d.ts +0 -7
- package/dist/components/Report/components/Cell/Cell.d.ts +0 -8
- package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
- package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
- package/dist/components/Report/components/Cell/util.d.ts +0 -18
- package/dist/components/Report/components/Header/Header.d.ts +0 -37
- package/dist/components/Report/components/Header/components/Goto.d.ts +0 -6
- package/dist/components/Report/components/Header/components/Menu.d.ts +0 -17
- package/dist/components/Report/components/Header/components/Resizer.d.ts +0 -12
- package/dist/components/Report/components/Header/components/SortIndicator.d.ts +0 -15
- package/dist/components/Report/components/Header/util.d.ts +0 -4
- package/dist/components/Report/components/Internal/Actions.d.ts +0 -13
- package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
- package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
- package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
- package/dist/components/Report/components/Row/Row.d.ts +0 -9
- package/dist/components/Report/components/Row/RowContext.d.ts +0 -8
- package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
- package/dist/components/Report/components/Toolbar/components/Filters/components/Filter.d.ts +0 -12
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterColumn.d.ts +0 -12
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterComparator.d.ts +0 -7
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterValue.d.ts +0 -10
- package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +0 -2
- package/dist/components/Report/components/Toolbar/components/Print/Print.d.ts +0 -9
- package/dist/components/Report/components/Toolbar/components/Print/PrintDialog.d.ts +0 -17
- package/dist/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +0 -7
- package/dist/components/Report/components/Toolbar/components/Settings/Settings.d.ts +0 -8
- package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
- package/dist/components/Report/styles/useCssGridStylesheet.d.ts +0 -3
- package/dist/components/Report/styles/util.d.ts +0 -3
- package/dist/components/Report/types.d.ts +0 -20
- package/dist/components/Report/useReport.d.ts +0 -9
- package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +0 -4
- package/dist/components/Report/util/useTableRenderer.d.ts +0 -9
- package/dist/components/Select2/Select2.d.ts +0 -50
- package/dist/components/Table/Table.d.ts +0 -14
- package/dist/components/Table/components/BaseTable.d.ts +0 -8
- package/dist/components/Table/hooks/useRowCreation.d.ts +0 -11
- package/dist/components/Table/hooks/useTable.d.ts +0 -38
- package/dist/components/Table/hooks/useTableKeyboardNavigation.d.ts +0 -3
- package/dist/components/Table/types.d.ts +0 -284
- package/dist/components/Table/util/sortTypes.d.ts +0 -4
- package/dist/components/Table/util.d.ts +0 -12
- package/dist/components/Table3/Table3.d.ts +0 -19
- package/dist/components/Table3/components/alert/ErrorAlert.d.ts +0 -10
- package/dist/components/Table3/components/columns/cell/Cell.d.ts +0 -6
- package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +0 -25
- package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +0 -14
- package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +0 -21
- package/dist/components/Table3/components/columns/cell/Highlight.d.ts +0 -2
- package/dist/components/Table3/components/columns/cell/Indicator.d.ts +0 -22
- package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +0 -2
- package/dist/components/Table3/components/columns/footer/Footer.d.ts +0 -14
- package/dist/components/Table3/components/columns/footer/Summary.d.ts +0 -8
- package/dist/components/Table3/components/columns/header/Goto.d.ts +0 -6
- package/dist/components/Table3/components/columns/header/Group.d.ts +0 -15
- package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
- package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
- package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
- package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
- package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
- package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
- package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
- package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
- package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
- package/dist/components/Table3/components/columns/styles.d.ts +0 -5
- package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
- package/dist/components/Table3/components/rows/Row.d.ts +0 -26
- package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
- package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
- package/dist/components/Table3/components/rows/styles.d.ts +0 -6
- package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
- package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
- package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
- package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
- package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
- package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
- package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
- package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
- package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
- package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
- package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
- package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
- package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
- package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
- package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
- package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
- package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
- package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
- package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
- package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
- package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
- package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
- package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
- package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
- package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
- package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
- package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
- package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
- package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
- package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
- package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
- package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
- package/dist/components/Table3/hooks/useTable.d.ts +0 -74
- package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
- package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
- package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
- package/dist/components/Table3/strategies/index.d.ts +0 -4
- package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
- package/dist/components/Table3/types.d.ts +0 -377
- package/dist/components/Table3/util/columns.d.ts +0 -8
- package/dist/components/Table3/util/editing.d.ts +0 -10
- package/dist/components/Table3/util/filtering.d.ts +0 -3
- package/dist/components/Table3/util/scrolling.d.ts +0 -2
- package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js +0 -60
- package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js +0 -32
- package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js +0 -23
- package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js +0 -58
- package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js +0 -73
- package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js +0 -39
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js +0 -194
- package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +0 -28
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js +0 -150
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js +0 -60
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js +0 -41
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Header/util.js +0 -24
- package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js +0 -90
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js +0 -59
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js +0 -154
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js +0 -102
- package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js +0 -24
- package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js +0 -10
- package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js +0 -50
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js +0 -121
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js +0 -102
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js +0 -50
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js +0 -110
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js +0 -118
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js +0 -7
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js +0 -125
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js +0 -95
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js +0 -105
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js +0 -103
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js +0 -24
- package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js +0 -44
- package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js +0 -58
- package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
- package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/styles/util.js +0 -61
- package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js +0 -32
- package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js +0 -162
- package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +0 -28
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
- package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
- package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
- package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
- package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
- package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
- package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
- package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
- package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
- package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
- package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
- package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
- package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
- package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnFreezing.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFontSize.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFooter.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRef.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActions.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js +0 -90
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowExpansion.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGroups.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowHeight.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSearch.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSettings.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableDataListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFilterListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowHeightListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowSelectionListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSearchListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableServerLoadingListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js +0 -26
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableShortcutsListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSortingListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js +0 -122
- package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/filtering.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js +0 -131
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/search.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js +0 -21
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js +0 -270
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/sorting.js.map +0 -1
- package/dist/index.d.ts +0 -73
- package/dist/primitives/Table/types.d.ts +0 -225
- package/dist/primitives/Table/useTable/features/useTableRowActive.d.ts +0 -11
- package/dist/primitives/Table/useTable/useTable.d.ts +0 -58
- package/dist/primitives/Table/useTable/util/presets.d.ts +0 -2
- package/dist/primitives/Table/useTable/util/settings.d.ts +0 -12
- package/dist/primitives/Table/useTable/util/setup.d.ts +0 -14
- package/dist/utils/dom.d.ts +0 -7
- /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
- /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
- /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
- /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → Core}/features/useTableRef.js +0 -0
- /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableColumnFreezing.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableColumnOrdering.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableFontSize.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableFooter.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTablePrinting.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowActions.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowClick.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowExpansion.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowGoto.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowGroups.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowHeight.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowSelection.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableSearch.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableServerLoading.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableSettings.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableDataListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableFilterListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableFontSizeListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableRowHeightListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableRowSelectionListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSearchListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableServerLoadingListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableShortcutsListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSortingListener.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/columns.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/filtering.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/search.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/sorting.js +0 -0
- /package/dist/{components → packages/taco/src/components}/Accordion/Accordion.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Alert/Alert.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/AlertDialog/AlertDialog.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/AlertDialog/Context.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Content.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Footer.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Trigger.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Backdrop/Backdrop.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Badge/Badge.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/BadgeIcon/BadgeIcon.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Banner/Banner.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Banner/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Button/Button.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Button/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Calendar/Calendar.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Card/Card.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Combobox/Combobox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Combobox/useCombobox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Datepicker/Datepicker.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Datepicker/useDatepicker.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/Context.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/Dialog.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/components/Content.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/components/DialogDrawer.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/components/Extra.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/components/Trigger.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/types.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Dialog/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/Context.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/Drawer.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/components/Content.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/components/Trigger.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/images.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/types.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Drawer/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Field/Field.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Form/Form.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Group/Group.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Hanger/Hanger.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/Header.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Avatar.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Badge.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Display.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Item.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/types.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/AgreementSelector.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Button.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Link.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/Logo.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/MenuButton.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/PrimaryNavigation.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Header/components/SecondaryNavigation.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/HoverCard/HoverCard.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/HoverCard/Primitives.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/Icon.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AccountPreview.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Accounting.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYear.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYearCancel.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AiChatSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AiStars.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowBottom.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowDown.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowEnd.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowLeft.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowRight.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowStart.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowTop.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowUp.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Attach.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AttachAuto.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AttachCancel.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AttachWarning.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Autotext.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/AutotextInsert.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Basic.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/BasicTabs.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/BellSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Book.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Booking.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Budget.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Calendar.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CashAccount.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CashReports.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChartArea.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChartBar.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChartLine.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChartPie.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChartTable.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Chat.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChatSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDown.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownDouble.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeft.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRight.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightDouble.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUp.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpDouble.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CircleClose.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CircleInformation.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CircleMinus.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CirclePlus.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CircleQuestionmark.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CircleTick.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/CircleWarning.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Clamp.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ClampOpen.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Close.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnFreeze.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Columns.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionEnable.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionRevoke.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Contacts.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Copy.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Courses.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Credit.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Delete.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DeletePermanently.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Depecriate.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Developer.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DistributionTemplate.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Document.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentApprove.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCut.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentError.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMerge.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMove.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentPreview.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentReceived.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentSplit.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentTime.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Download.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Drag.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ECopedia.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ESignature.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Edit.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EditSimple.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisVertical.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOnAccount.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOpen.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesWarning.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Envelope.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeApproved.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ExpandView.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Expenses.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Export.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToExcel.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToPdf.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOff.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOn.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Filter.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/FilterSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/FontSize.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/GraphSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Hash.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/HeightExtraTall.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/HeightMedium.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/HeightShort.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/HeightTall.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Home.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Images.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Import.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Inbox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/InboxEinvoicing.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/InboxScanning.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/InboxSmart.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Info.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Inventory.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/InventoryMatrix.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/JournalPro.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Layout.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutBoth.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutFirst.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutLast.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutNone.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCard.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Lightbulb.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Line.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/List.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ListBulleted.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ListSearch.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Location.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Lock.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LockOpen.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Log.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/LogOut.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Market.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/MatchAmount.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/MatchEntries.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Menu.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Mileage.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ModalResize.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ModalShrink.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/More.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/MoreSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Move.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/NavigationList.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Note.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/NoteFollowUp.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/NoteRead.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Numbers.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PartnerApi.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentPaid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentUnpaid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Period.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PersonChange.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PersonMinus.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PersonPlus.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PersonTick.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PhoneSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Play.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/PlusMinus.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Print.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ProcessPayment.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ProductLedgerCard.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Profile.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ProjectCards.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Projects.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMark.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMarkBold.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Quicklinks.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/RatingBankruptcy.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Reconciled.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Refresh.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Report.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ReportSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Restore.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/RotateLeft.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/RotateRight.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Sales.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Search.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/SearchBold.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Secure.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/SecureTick.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Settings.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/SettingsSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Shortcuts.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ShowAll.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ShowLess.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ShowMore.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ShowTemplate.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Sliders.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Smartpay.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/SortBy.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Star.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/StarSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Subscriptions.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/SystemEntries.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Tag.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/TemplateOverride.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Templates.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbBoth.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDown.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDownSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUp.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUpSolid.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Tick.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/TickBold.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Time.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Transfer.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/TransferCancel.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/TransferLocked.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Undo.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Undock.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Unreconciled.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Warning.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Webshop.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Website.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Workflow.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/Zoom.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Icon/components/index.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/IconButton/IconButton.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Input/Input.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Input/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Layout/Layout.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Layout/components/Content.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Layout/components/Context.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Layout/components/Page.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Layout/components/Sidebar.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Layout/components/Top.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Listbox/Listbox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Listbox/ScrollableList.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Listbox/useListbox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Listbox/useMultiListbox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Listbox/useTypeahead.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Listbox/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/Context.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/Menu.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Checkbox.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Content.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Header.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Item.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Link.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/RadioGroup.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Separator.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/SubMenu.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Menu/components/Trigger.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/ModeSwitch/ModeSwitch.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation/Navigation.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation2/Navigation2.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation2/components/Content.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation2/components/Group.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation2/components/Link.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation2/components/Section.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Navigation2/components/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/OverflowGroup/OverflowGroup.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Pagination/PageNumbers.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Pagination/Pagination.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Pagination/usePagination.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Pagination/usePaginationShortcuts.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Popover/Popover.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Popover/Primitives.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Popover/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Progress/Progress.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Provider/Provider.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/RadioGroup/RadioGroup.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/RadioGroup/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/ScrollArea/ScrollArea.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/SearchInput/SearchInput.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/SearchInput2/SearchInput2.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select/Select.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select/useSelect.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/All.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Collection.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Context.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Create.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Edit.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Group.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Option.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Search.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Title.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/components/Trigger.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/hooks/useChildren.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/types.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Select2/utilities.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Shortcut/Shortcut.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Spinner/Spinner.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Switch/Switch.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/Table.storyexample.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/components/PaginatedTable.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/components/Table.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/components/WindowedTable.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/util/renderColumn.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/util/renderRow.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/util/rowIndexPath.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Tabs/Tabs.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Tag/Tag.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Textarea/Textarea.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Toast/Toast.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Toast/Toaster.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Toast/util.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Tour/Tour.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Treeview/Treeview.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Truncate/Truncate.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useBoundaryOverflowDetection.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useBoundingClientRectListener.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useDebouncedEffect.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useGlobalKeyDown.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useId.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useIntersectionObserver.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useIsFormControl.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useIsHoverStatePaused.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useIsLargeScreen.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useLazyEffect.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useLocalStorage.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useMatchMedia.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useMergedRef.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/usePrevious.d.ts +0 -0
- /package/dist/{hooks → packages/taco/src/hooks}/useTacoSettings.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/BubbleSelect.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Button.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Collection/Collection.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Collection/components/Root.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/Listbox2.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Context.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Group.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Option.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Root.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Title.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/types.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Sortable/Sortable.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Container.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Item.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/List.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/util.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
- /package/dist/{components/Report/components/Row → packages/taco/src/primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +0 -0
- /package/dist/{components/Report/styles → packages/taco/src/primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/Core}/features/useTableRef.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
- /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/util/rows.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableDataLoader.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableColumnFreezing.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableColumnOrdering.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableFontSize.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableFooter.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTablePrinting.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowActions.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowClick.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowExpansion.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowGoto.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowGroups.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowHeight.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowSelection.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableSearch.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableServerLoading.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableSettings.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableDataListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableFilterListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableFontSizeListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableRowHeightListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableRowSelectionListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableSearchListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableServerLoadingListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableSettingsListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableShortcutsListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableSortingListener.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/columns.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/columns.spec.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/filtering.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/search.d.ts +0 -0
- /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/sorting.d.ts +0 -0
- /package/dist/{types.d.ts → packages/taco/src/types.d.ts} +0 -0
- /package/dist/{utils → packages/taco/src/utils}/aria.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/date.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/debounce.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/device.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useDraggable.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useDropTarget.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useListScrollTo.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useOnClickOutside.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useRefState.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useTimer.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/hooks/useTruncated.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/input.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/keyboard.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/mergeRefs.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/storyutils.d.ts +0 -0
- /package/dist/{utils → packages/taco/src/utils}/tailwind.d.ts +0 -0
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { isElementInsideOrTriggeredFromContainer } from '../../../../utils/dom.js';
|
3
|
+
import { useIsHoverStatePaused } from '../../../../hooks/useIsHoverStatePaused.js';
|
4
|
+
|
5
|
+
function useTableRowActive(isEnabled = false, initialRowActiveIndex) {
|
6
|
+
const [rowActiveIndex, setRowActiveIndex] = React__default.useState(initialRowActiveIndex);
|
7
|
+
const [rowHoverIndex, setRowHoverIndex] = React__default.useState(undefined);
|
8
|
+
const [isHoverStatePaused, setHoverStatePaused] = useIsHoverStatePaused();
|
9
|
+
const move = (direction, length, scrollToIndex) => setRowActiveIndex(currentIndex => {
|
10
|
+
const nextIndex = currentIndex !== undefined ? getNextIndex(direction, currentIndex, length) : 0;
|
11
|
+
setTimeout(() => scrollToIndex(nextIndex), 1);
|
12
|
+
return nextIndex;
|
13
|
+
});
|
14
|
+
const onKeyDown = React__default.useCallback((event, length, scrollToIndex) => {
|
15
|
+
if (!isEnabled || event.defaultPrevented) {
|
16
|
+
return;
|
17
|
+
}
|
18
|
+
if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
|
19
|
+
setHoverStatePaused(true);
|
20
|
+
}
|
21
|
+
if (event.key === 'ArrowUp') {
|
22
|
+
event.preventDefault();
|
23
|
+
if (event.ctrlKey || event.metaKey) {
|
24
|
+
const newIndex = 0;
|
25
|
+
setRowActiveIndex(newIndex);
|
26
|
+
scrollToIndex(newIndex);
|
27
|
+
} else {
|
28
|
+
move(-1, length, scrollToIndex);
|
29
|
+
}
|
30
|
+
return;
|
31
|
+
} else if (event.key === 'ArrowDown') {
|
32
|
+
event.preventDefault();
|
33
|
+
if (event.ctrlKey || event.metaKey) {
|
34
|
+
const newIndex = length - 1;
|
35
|
+
setRowActiveIndex(newIndex);
|
36
|
+
scrollToIndex(newIndex);
|
37
|
+
} else {
|
38
|
+
move(+1, length, scrollToIndex);
|
39
|
+
}
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
}, [isEnabled]);
|
43
|
+
const onFocus = React__default.useCallback((event, length, scrollToIndex) => {
|
44
|
+
if (!isEnabled || event.isDefaultPrevented()) {
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
if (event.target.closest('tbody') || event.target.closest('[data-taco="table2-body"]') || isElementInsideOrTriggeredFromContainer(event.target, event.currentTarget)) {
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
if (rowActiveIndex === undefined && length > 0) {
|
51
|
+
setRowActiveIndex(index => {
|
52
|
+
if (index === undefined) {
|
53
|
+
scrollToIndex(0);
|
54
|
+
return 0;
|
55
|
+
}
|
56
|
+
return index;
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}, [rowActiveIndex, length, isEnabled]);
|
60
|
+
return {
|
61
|
+
isEnabled,
|
62
|
+
rowActiveIndex,
|
63
|
+
setRowActiveIndex: isEnabled ? setRowActiveIndex : () => undefined,
|
64
|
+
rowHoverIndex,
|
65
|
+
setRowHoverIndex,
|
66
|
+
isHoverStatePaused,
|
67
|
+
setHoverStatePaused: isEnabled ? setHoverStatePaused : () => undefined,
|
68
|
+
handleFocus: isEnabled ? onFocus : () => undefined,
|
69
|
+
handleKeyDown: isEnabled ? onKeyDown : () => undefined
|
70
|
+
};
|
71
|
+
}
|
72
|
+
function getNextIndex(direction, currentIndex, length) {
|
73
|
+
if (direction === -1) {
|
74
|
+
return currentIndex - 1 > 0 ? currentIndex - 1 : 0;
|
75
|
+
}
|
76
|
+
return currentIndex + 1 < length ? currentIndex + 1 : currentIndex;
|
77
|
+
}
|
78
|
+
|
79
|
+
export { useTableRowActive };
|
80
|
+
//# sourceMappingURL=useTableRowActive.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowActive.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowActive.ts"],"sourcesContent":["import React from 'react';\nimport { TableScrollToIndexHandler } from '../../types';\nimport { useIsHoverStatePaused } from '../../../../hooks/useIsHoverStatePaused';\nimport { isElementInsideOrTriggeredFromContainer } from '../../../../utils/dom';\n\nexport function useTableRowActive(isEnabled = false, initialRowActiveIndex?: number) {\n const [rowActiveIndex, setRowActiveIndex] = React.useState<number | undefined>(initialRowActiveIndex);\n const [rowHoverIndex, setRowHoverIndex] = React.useState<number | undefined>(undefined);\n const [isHoverStatePaused, setHoverStatePaused] = useIsHoverStatePaused();\n\n const move = (direction: -1 | 1, length: number, scrollToIndex: TableScrollToIndexHandler) =>\n setRowActiveIndex(currentIndex => {\n const nextIndex = currentIndex !== undefined ? getNextIndex(direction, currentIndex, length) : 0;\n setTimeout(() => scrollToIndex(nextIndex), 1);\n return nextIndex;\n });\n\n const onKeyDown = React.useCallback(\n (event: KeyboardEvent, length: number, scrollToIndex: TableScrollToIndexHandler) => {\n if (!isEnabled || event.defaultPrevented) {\n return;\n }\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n setHoverStatePaused(true);\n }\n\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n\n if (event.ctrlKey || event.metaKey) {\n const newIndex = 0;\n setRowActiveIndex(newIndex);\n scrollToIndex(newIndex);\n } else {\n move(-1, length, scrollToIndex);\n }\n\n return;\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n\n if (event.ctrlKey || event.metaKey) {\n const newIndex = length - 1;\n setRowActiveIndex(newIndex);\n scrollToIndex(newIndex);\n } else {\n move(+1, length, scrollToIndex);\n }\n return;\n }\n },\n [isEnabled]\n );\n\n const onFocus = React.useCallback(\n (event: React.FocusEvent, length: number, scrollToIndex: TableScrollToIndexHandler) => {\n if (!isEnabled || event.isDefaultPrevented()) {\n return;\n }\n\n if (\n event.target.closest('tbody') ||\n event.target.closest('[data-taco=\"table2-body\"]') ||\n isElementInsideOrTriggeredFromContainer(event.target, event.currentTarget)\n ) {\n return;\n }\n\n if (rowActiveIndex === undefined && length > 0) {\n setRowActiveIndex(index => {\n if (index === undefined) {\n scrollToIndex(0);\n return 0;\n }\n return index;\n });\n }\n },\n [rowActiveIndex, length, isEnabled]\n );\n\n return {\n isEnabled,\n rowActiveIndex,\n setRowActiveIndex: isEnabled ? setRowActiveIndex : () => undefined,\n rowHoverIndex,\n setRowHoverIndex,\n isHoverStatePaused,\n setHoverStatePaused: isEnabled ? setHoverStatePaused : () => undefined,\n handleFocus: isEnabled ? onFocus : () => undefined,\n handleKeyDown: isEnabled ? onKeyDown : () => undefined,\n };\n}\n\nfunction getNextIndex(direction: -1 | 1, currentIndex: number, length: number) {\n if (direction === -1) {\n return currentIndex - 1 > 0 ? currentIndex - 1 : 0;\n }\n\n return currentIndex + 1 < length ? currentIndex + 1 : currentIndex;\n}\n"],"names":["useTableRowActive","isEnabled","initialRowActiveIndex","rowActiveIndex","setRowActiveIndex","React","useState","rowHoverIndex","setRowHoverIndex","undefined","isHoverStatePaused","setHoverStatePaused","useIsHoverStatePaused","move","direction","length","scrollToIndex","currentIndex","nextIndex","getNextIndex","setTimeout","onKeyDown","useCallback","event","defaultPrevented","key","preventDefault","ctrlKey","metaKey","newIndex","onFocus","isDefaultPrevented","target","closest","isElementInsideOrTriggeredFromContainer","currentTarget","index","handleFocus","handleKeyDown"],"mappings":";;;;SAKgBA,iBAAiBA,CAACC,SAAS,GAAG,KAAK,EAAEC,qBAA8B;EAC/E,MAAM,CAACC,cAAc,E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G,MAAMrB,SAAS;IAClD6B,aAAa,EAAErC,SAAS,GAAGoB,SAAS,GAAG,MAAMZ;GAChD;AACL;AAEA,SAASU,YAAYA,CAACL,SAAiB,EAAEG,YAAoB,EAAEF,MAAc;EACzE,IAAID,SAAS,KAAK,CAAC,CAAC,EAAE;IAClB,OAAOG,YAAY,GAAG,CAAC,GAAG,CAAC,GAAGA,YAAY,GAAG,CAAC,GAAG,CAAC;;EAGtD,OAAOA,YAAY,GAAG,CAAC,GAAGF,MAAM,GAAGE,YAAY,GAAG,CAAC,GAAGA,YAAY;AACtE;;;;"}
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowClick.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowClick.ts"],"sourcesContent":["import React from 'react';\nimport { TableRowClickHandler } from '../../types';\n\nexport function useTableRowClick<TType = unknown>(isEnabled = false, onRowClick?: TableRowClickHandler<TType>) {\n const handleKeyDown = React.useCallback(\n function (event: KeyboardEvent, data: TType) {\n if (!isEnabled || typeof onRowClick !== 'function' || event.defaultPrevented) {\n return;\n }\n\n if (data && event.key === 'Enter') {\n event.preventDefault();\n onRowClick(data);\n return;\n }\n },\n [isEnabled, onRowClick]\n ) as <TType = unknown>(event: KeyboardEvent, data: TType) => void;\n\n const handleClick = React.useCallback(\n function (event: React.MouseEvent<HTMLTableRowElement>, data: TType) {\n if (!isEnabled || typeof onRowClick !== 'function' || event.defaultPrevented) {\n return;\n }\n\n event.preventDefault();\n onRowClick(data);\n return;\n },\n [isEnabled, onRowClick]\n );\n\n return {\n isEnabled,\n handleClick,\n handleKeyDown,\n };\n}\n"],"names":["useTableRowClick","isEnabled","onRowClick","handleKeyDown","React","useCallback","event","data","defaultPrevented","key","preventDefault","handleClick"],"mappings":";;SAGgBA,gBAAgBA,CAAkBC,SAAS,GAAG,KAAK,EAAEC,UAAwC;EACzG,MAAMC,aAAa,GAAGC,cAAK,CAACC,WAAW,CACnC,UAAUC,KAAoB,EAAEC,IAAW;IACvC,IAAI,CAACN,SAAS,IAAI,OAAOC,UAAU,KAAK,UAAU,IAAII,KAAK,CAACE,gBAAgB,EAAE;MAC1E;;IAGJ,IAAID,IAAI,IAAID,KAAK,CAACG,GAAG,KAAK,OAAO,EAAE;MAC/BH,KAAK,CAACI,cAAc,EAAE;MACtBR,UAAU,CAACK,IAAI,CAAC;MAChB;;GAEP,EACD,CAACN,SAAS,EAAEC,UAAU,CAAC,CACsC;EAEjE,MAAMS,WAAW,GAAGP,cAAK,CAACC,WAAW,CACjC,UAAUC,KAA4C,EAAEC,IAAW;IAC/D,IAAI,CAACN,SAAS,IAAI,OAAOC,UAAU,KAAK,UAAU,IAAII,KAAK,CAACE,gBAAgB,EAAE;MAC1E;;IAGJF,KAAK,CAACI,cAAc,EAAE;IACtBR,UAAU,CAACK,IAAI,CAAC;IAChB;GACH,EACD,CAACN,SAAS,EAAEC,UAAU,CAAC,CAC1B;EAED,OAAO;IACHD,SAAS;IACTU,WAAW;IACXR;GACH;AACL;;;;"}
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
|
3
|
+
function useTableRowDrag(isEnabled = false, onRowDrag) {
|
4
|
+
const [dragging, setDragging] = React__default.useState({});
|
5
|
+
return {
|
6
|
+
isEnabled,
|
7
|
+
dragging,
|
8
|
+
setDragging: isEnabled ? setDragging : undefined,
|
9
|
+
handleRowDrag: isEnabled ? onRowDrag : undefined
|
10
|
+
};
|
11
|
+
}
|
12
|
+
|
13
|
+
export { useTableRowDrag };
|
14
|
+
//# sourceMappingURL=useTableRowDrag.js.map
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowDrag.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowDrag.ts"],"sourcesContent":["import React from 'react';\nimport { TableRowDragHandler } from '../../types';\n\nexport function useTableRowDrag<TType = unknown>(isEnabled = false, onRowDrag?: TableRowDragHandler<TType>) {\n const [dragging, setDragging] = React.useState<Record<string, boolean>>({});\n\n return {\n isEnabled,\n dragging,\n setDragging: isEnabled ? setDragging : undefined,\n handleRowDrag: isEnabled ? onRowDrag : undefined,\n };\n}\n"],"names":["useTableRowDrag","isEnabled","onRowDrag","dragging","setDragging","React","useState","undefined","handleRowDrag"],"mappings":";;SAGgBA,eAAeA,CAAkBC,SAAS,GAAG,KAAK,EAAEC,SAAsC;EACtG,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAA0B,EAAE,CAAC;EAE3E,OAAO;IACHL,SAAS;IACTE,QAAQ;IACRC,WAAW,EAAEH,SAAS,GAAGG,WAAW,GAAGG,SAAS;IAChDC,aAAa,EAAEP,SAAS,GAAGC,SAAS,GAAGK;GAC1C;AACL;;;;"}
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowDrop.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowDrop.ts"],"sourcesContent":["import { TableRowDropHandler } from '../../types';\n\nexport function useTableRowDrop<TType = unknown>(isEnabled = false, onRowDrop: TableRowDropHandler<TType> | undefined) {\n return {\n isEnabled,\n handleDrop: isEnabled ? onRowDrop : undefined,\n };\n}\n"],"names":["useTableRowDrop","isEnabled","onRowDrop","handleDrop","undefined"],"mappings":"SAEgBA,eAAeA,CAAkBC,SAAS,GAAG,KAAK,EAAEC,SAAiD;EACjH,OAAO;IACHD,SAAS;IACTE,UAAU,EAAEF,SAAS,GAAGC,SAAS,GAAGE;GACvC;AACL;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowExpansion.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowExpansion.ts"],"sourcesContent":["import { TableRowExpansionRenderer } from '../../types';\n\nexport function useTableRowExpansion<TType = unknown>(\n isEnabled = false,\n rowExpansionRenderer?: TableRowExpansionRenderer<TType>\n) {\n return {\n isEnabled,\n rowExpansionRenderer: isEnabled ? rowExpansionRenderer : undefined,\n };\n}\n"],"names":["useTableRowExpansion","isEnabled","rowExpansionRenderer","undefined"],"mappings":"SAEgBA,oBAAoBA,CAChCC,SAAS,GAAG,KAAK,EACjBC,oBAAuD;EAEvD,OAAO;IACHD,SAAS;IACTC,oBAAoB,EAAED,SAAS,GAAGC,oBAAoB,GAAGC;GAC5D;AACL;;;;"}
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowGoto.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowGoto.ts"],"sourcesContent":["import { TableRowGotoHandler } from '../../types';\n\nexport function useTableRowGoto(isEnabled = false, handler?: TableRowGotoHandler) {\n return {\n isEnabled,\n handleGoto: isEnabled ? handler : undefined,\n };\n}\n"],"names":["useTableRowGoto","isEnabled","handler","handleGoto","undefined"],"mappings":"SAEgBA,eAAeA,CAACC,SAAS,GAAG,KAAK,EAAEC,OAA6B;EAC5E,OAAO;IACHD,SAAS;IACTE,UAAU,EAAEF,SAAS,GAAGC,OAAO,GAAGE;GACrC;AACL;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowGroups.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowGroups.ts"],"sourcesContent":["import { TableRowActionGroupRenderer } from '../../types';\n\nexport function useTableRowGroups<TType = unknown>(rowActionsForGroup?: TableRowActionGroupRenderer<TType>[]) {\n return {\n isEnabled: true,\n rowActionsForGroup,\n };\n}\n"],"names":["useTableRowGroups","rowActionsForGroup","isEnabled"],"mappings":"SAEgBA,iBAAiBA,CAAkBC,kBAAyD;EACxG,OAAO;IACHC,SAAS,EAAE,IAAI;IACfD;GACH;AACL;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowHeight.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowHeight.ts"],"sourcesContent":["import React from 'react';\nimport { TableRowHeight } from '../../types';\n\nexport function useTableRowHeight(isEnabled = false, defaultRowHeight: TableRowHeight = 'medium') {\n const [height, setHeight] = React.useState<TableRowHeight>(defaultRowHeight);\n\n return {\n isEnabled,\n height,\n setHeight: isEnabled ? setHeight : () => undefined,\n };\n}\n"],"names":["useTableRowHeight","isEnabled","defaultRowHeight","height","setHeight","React","useState","undefined"],"mappings":";;SAGgBA,iBAAiBA,CAACC,SAAS,GAAG,KAAK,EAAEC,mBAAmC,QAAQ;EAC5F,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAiBJ,gBAAgB,CAAC;EAE5E,OAAO;IACHD,SAAS;IACTE,MAAM;IACNC,SAAS,EAAEH,SAAS,GAAGG,SAAS,GAAG,MAAMG;GAC5C;AACL;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowSelection.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowSelection.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\n\nexport function useTableRowSelection(isEnabled = false) {\n const lastSelectedRowIndex = React.useRef<number>();\n\n const onKeyDown = React.useCallback(\n <TType = unknown>(event: KeyboardEvent, table: ReactTable<TType>) => {\n if (!isEnabled || !table.options.enableRowSelection || event.defaultPrevented) {\n return;\n }\n\n const rows = table.getRowModel().rows;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n if (event.key === ' ') {\n event.preventDefault();\n const rowActiveIndex = tableMeta.rowActive.rowActiveIndex;\n\n if (rowActiveIndex !== undefined) {\n rows[rowActiveIndex]?.toggleSelected();\n }\n\n return;\n } else if ((event.ctrlKey || event.metaKey) && event.key === 'a') {\n event.preventDefault();\n table.toggleAllRowsSelected();\n return;\n }\n },\n [isEnabled]\n ) as <TType = unknown>(event: KeyboardEvent, table: ReactTable<TType>) => void;\n\n return {\n isEnabled,\n handleKeyDown: isEnabled ? onKeyDown : () => undefined,\n lastSelectedRowIndex,\n };\n}\n"],"names":["useTableRowSelection","isEnabled","lastSelectedRowIndex","React","useRef","onKeyDown","useCallback","event","table","options","enableRowSelection","defaultPrevented","rows","getRowModel","tableMeta","meta","key","preventDefault","rowActiveIndex","rowActive","undefined","_rows$rowActiveIndex","toggleSelected","ctrlKey","metaKey","toggleAllRowsSelected","handleKeyDown"],"mappings":";;SAGgBA,oBAAoBA,CAACC,SAAS,GAAG,KAAK;EAClD,MAAMC,oBAAoB,GAAGC,cAAK,CAACC,MAAM,EAAU;EAEnD,MAAMC,SAAS,GAAGF,cAAK,CAACG,WAAW,CAC/B,CAAkBC,KAAoB,EAAEC,KAAwB;IAC5D,IAAI,CAACP,SAAS,IAAI,CAACO,KAAK,CAACC,OAAO,CAACC,kBAAkB,IAAIH,KAAK,CAACI,gBAAgB,EAAE;MAC3E;;IAGJ,MAAMC,IAAI,GAAGJ,KAAK,CAACK,WAAW,EAAE,CAACD,IAAI;IACrC,MAAME,SAAS,GAAGN,KAAK,CAACC,OAAO,CAACM,IAA6B;IAE7D,IAAIR,KAAK,CAACS,GAAG,KAAK,GAAG,EAAE;MACnBT,KAAK,CAACU,cAAc,EAAE;MACtB,MAAMC,cAAc,GAAGJ,SAAS,CAACK,SAAS,CAACD,cAAc;MAEzD,IAAIA,cAAc,KAAKE,SAAS,EAAE;QAAA,IAAAC,oBAAA;QAC9B,CAAAA,oBAAA,GAAAT,IAAI,CAACM,cAAc,CAAC,cAAAG,oBAAA,uBAApBA,oBAAA,CAAsBC,cAAc,EAAE;;MAG1C;KACH,MAAM,IAAI,CAACf,KAAK,CAACgB,OAAO,IAAIhB,KAAK,CAACiB,OAAO,KAAKjB,KAAK,CAACS,GAAG,KAAK,GAAG,EAAE;MAC9DT,KAAK,CAACU,cAAc,EAAE;MACtBT,KAAK,CAACiB,qBAAqB,EAAE;MAC7B;;GAEP,EACD,CAACxB,SAAS,CAAC,CAC+D;EAE9E,OAAO;IACHA,SAAS;IACTyB,aAAa,EAAEzB,SAAS,GAAGI,SAAS,GAAG,MAAMe,SAAS;IACtDlB;GACH;AACL;;;;"}
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableSearch.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableSearch.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\n\n/*\n Search has two behaviours:\n - Highlighting search results, this is custom and only uses the state part of globalFilter (to store the search query)\n - Filtering of results, this is essentially the built in filtering, and relies on enableGlobalFilter being on or off\n*/\nexport function useTableSearch(isEnabled = false, defaultEnableGlobalFilter = false) {\n const [enableGlobalFilter, _setEnableGlobalFilter] = React.useState<boolean>(defaultEnableGlobalFilter);\n\n function setEnableGlobalFilter<TType = unknown>(enabled: boolean, instance: ReactTable<TType>) {\n _setEnableGlobalFilter(enabled);\n\n // react-table doesn't re-render when options.enableGlobalFilter changes, so for now we force it\n const currentFilter = instance.getState().globalFilter;\n\n if (currentFilter) {\n setTimeout(() => {\n instance.setGlobalFilter('');\n instance.setGlobalFilter(currentFilter);\n }, 1);\n }\n }\n\n // highlighting\n const [highlightedColumnIndexes, setHighlightedColumnIndexes] = React.useState<number[][]>([]);\n const [currentHighlightColumnIndex, setCurrentHighlightColumnIndex] = React.useState<number | undefined>(undefined);\n\n return {\n isEnabled,\n // filtering - built-in\n enableGlobalFilter,\n setEnableGlobalFilter,\n // highlighting - custom\n highlightedColumnIndexes,\n setHighlightedColumnIndexes,\n currentHighlightColumnIndex,\n setCurrentHighlightColumnIndex,\n };\n}\n"],"names":["useTableSearch","isEnabled","defaultEnableGlobalFilter","enableGlobalFilter","_setEnableGlobalFilter","React","useState","setEnableGlobalFilter","enabled","instance","currentFilter","getState","globalFilter","setTimeout","setGlobalFilter","highlightedColumnIndexes","setHighlightedColumnIndexes","currentHighlightColumnIndex","setCurrentHighlightColumnIndex","undefined"],"mappings":";;AAGA;;;;;SAKgBA,cAAcA,CAACC,SAAS,GAAG,KAAK,EAAEC,yBAAyB,GAAG,KAAK;EAC/E,MAAM,CAACC,kBAAkB,EAAEC,sBAAsB,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAUJ,yBAAyB,CAAC;EAEvG,SAASK,qBAAqBA,CAAkBC,OAAgB,EAAEC,QAA2B;IACzFL,sBAAsB,CAACI,OAAO,CAAC;;IAG/B,MAAME,aAAa,GAAGD,QAAQ,CAACE,QAAQ,EAAE,CAACC,YAAY;IAEtD,IAAIF,aAAa,EAAE;MACfG,UAAU,CAAC;QACPJ,QAAQ,CAACK,eAAe,CAAC,EAAE,CAAC;QAC5BL,QAAQ,CAACK,eAAe,CAACJ,aAAa,CAAC;OAC1C,EAAE,CAAC,CAAC;;;;EAKb,MAAM,CAACK,wBAAwB,EAAEC,2BAA2B,CAAC,GAAGX,cAAK,CAACC,QAAQ,CAAa,EAAE,CAAC;EAC9F,MAAM,CAACW,2BAA2B,EAAEC,8BAA8B,CAAC,GAAGb,cAAK,CAACC,QAAQ,CAAqBa,SAAS,CAAC;EAEnH,OAAO;IACHlB,SAAS;;IAETE,kBAAkB;IAClBI,qBAAqB;;IAErBQ,wBAAwB;IACxBC,2BAA2B;IAC3BC,2BAA2B;IAC3BC;GACH;AACL;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableServerLoading.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableServerLoading.ts"],"sourcesContent":["import React from 'react';\nimport { TableServerLoadAllHandler, TableServerLoadAllState, TableServerLoadPageHandler } from '../../types';\nimport { DEFAULT_PAGE_SIZE } from '../../useTableDataLoader';\n\nexport function useTableServerLoading(\n loadPage?: TableServerLoadPageHandler,\n loadAll?: TableServerLoadAllHandler,\n pageSize = DEFAULT_PAGE_SIZE\n) {\n const isEnabled = !!loadPage && !!loadAll;\n const [loadAllStatus, setLoadedStatus] = React.useState<TableServerLoadAllState>(TableServerLoadAllState.Incomplete);\n\n let _loadAll: TableServerLoadAllHandler | undefined;\n let _loadAllIfNeeded: TableServerLoadAllHandler | undefined;\n\n if (typeof loadAll === 'function') {\n _loadAll = async (...args) => {\n if (typeof loadAll === 'function') {\n setLoadedStatus(TableServerLoadAllState.Loading);\n await loadAll(...args);\n setLoadedStatus(TableServerLoadAllState.Completed);\n }\n };\n\n _loadAllIfNeeded = async (...args) => {\n if (loadAllStatus === TableServerLoadAllState.Incomplete) {\n await _loadAll?.(...args);\n }\n };\n }\n\n return {\n isEnabled,\n loadPage,\n loadAll: _loadAll,\n loadAllIfNeeded: _loadAllIfNeeded,\n loadAllStatus,\n pageSize,\n };\n}\n"],"names":["useTableServerLoading","loadPage","loadAll","pageSize","DEFAULT_PAGE_SIZE","isEnabled","loadAllStatus","setLoadedStatus","React","useState","TableServerLoadAllState","Incomplete","_loadAll","_loadAllIfNeeded","args","Loading","Promise","resolve","then","Completed","_temp","e","reject","_loadAll2","_temp2","loadAllIfNeeded"],"mappings":";;;;SAIgBA,qBAAqBA,CACjCC,QAAqC,EACrCC,OAAmC,EACnCC,QAAQ,GAAGC,iBAAiB;EAE5B,MAAMC,SAAS,GAAG,CAAC,CAACJ,QAAQ,IAAI,CAAC,CAACC,OAAO;EACzC,MAAM,CAACI,aAAa,EAAEC,eAAe,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAA0BC,uBAAuB,CAACC,UAAU,CAAC;EAEpH,IAAIC,QAA+C;EACnD,IAAIC,gBAAuD;EAE3D,IAAI,OAAOX,OAAO,KAAK,UAAU,EAAE;IAC/BU,QAAQ,aAAU,GAAGE,IAAI;MAAA;;cACjB,OAAOZ,OAAO,KAAK,UAAU;YAC7BK,eAAe,CAACG,uBAAuB,CAACK,OAAO,CAAC;YAAC,OAAAC,OAAA,CAAAC,OAAA,CAC3Cf,OAAO,CAAC,GAAGY,IAAI,CAAC,EAAAI,IAAA;cACtBX,eAAe,CAACG,uBAAuB,CAACS,SAAS,CAAC;;;;QAAC,OAAAH,OAAA,CAAAC,OAAA,CAAAG,KAAA,IAAAA,KAAA,CAAAF,IAAA,GAAAE,KAAA,CAAAF,IAAA;OAE1D,QAAAG,CAAA;QAAA,OAAAL,OAAA,CAAAM,MAAA,CAAAD,CAAA;;;IAEDR,gBAAgB,aAAU,GAAGC,IAAI;MAAA;;cACzBR,aAAa,KAAKI,uBAAuB,CAACC,UAAU;YAAA,IAAAY,SAAA;YAAA,OAAAP,OAAA,CAAAC,OAAA,EAAAM,SAAA,GAC9CX,QAAQ,cAAAW,SAAA,uBAARA,SAAA,CAAW,GAAGT,IAAI,CAAC,EAAAI,IAAA;;;QAAA,OAAAF,OAAA,CAAAC,OAAA,CAAAO,MAAA,IAAAA,MAAA,CAAAN,IAAA,GAAAM,MAAA,CAAAN,IAAA;OAEhC,QAAAG,CAAA;QAAA,OAAAL,OAAA,CAAAM,MAAA,CAAAD,CAAA;;;;EAGL,OAAO;IACHhB,SAAS;IACTJ,QAAQ;IACRC,OAAO,EAAEU,QAAQ;IACjBa,eAAe,EAAEZ,gBAAgB;IACjCP,aAAa;IACbH;GACH;AACL;;;;"}
|
package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableSettings.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableSettings.ts"],"sourcesContent":["import React from 'react';\nimport { useLocalStorage } from '../../../../hooks/useLocalStorage';\nimport { useTacoSettings } from '../../../../hooks/useTacoSettings';\nimport { EnableSettingsOptions, TableSettings, TableSettingsHandler } from '../../types';\n\nconst DEFAULT_ENABLED_OPTIONS = {\n columnOrder: true,\n columnPinning: true,\n columnSizing: true,\n columnVisibility: true,\n excludeUnmatchedRecordsInSearch: true,\n fontSize: true,\n grouping: true,\n rowHeight: true,\n sorting: true,\n};\n\nexport function useUniqueTableId(tableId: string) {\n const tacoSettings = useTacoSettings();\n return `taco.${tacoSettings.uniqueUserIdentifier}.table.${tableId}.settings`;\n}\n\nfunction useEnabledSettings(isEnabled: boolean | Partial<EnableSettingsOptions>): [EnableSettingsOptions, boolean] {\n return React.useMemo(() => {\n if (isEnabled === false) {\n return [\n Object.keys(DEFAULT_ENABLED_OPTIONS).reduce((o, key) => ({ ...o, [key]: false }), {}) as EnableSettingsOptions,\n false,\n ];\n } else if (isEnabled === true) {\n return [DEFAULT_ENABLED_OPTIONS, true];\n }\n\n const options = { ...DEFAULT_ENABLED_OPTIONS, ...isEnabled };\n return [options, Object.values(options).some(o => o === true)];\n }, [isEnabled]);\n}\n\nexport function useTableSettings(\n isEnabled: boolean | Partial<EnableSettingsOptions> = false,\n id: string,\n defaultSettings: TableSettings | undefined = {},\n onChangeSettings: TableSettingsHandler | undefined\n): [TableSettings, TableSettingsHandler] {\n const uniqueId = useUniqueTableId(id);\n const [enabledSettings, hasSomeEnabledSettings] = useEnabledSettings(isEnabled);\n\n const [persistedSettings, _setPersistedSettings] = useLocalStorage<TableSettings>(\n hasSomeEnabledSettings ? uniqueId : undefined,\n removeDisabledSettings(defaultSettings, enabledSettings)\n );\n\n const setPersistedSettings = React.useCallback(\n (value: TableSettings) => {\n if (!hasSomeEnabledSettings) {\n return;\n }\n\n const sanitizedSettings = removeDisabledSettings(value, enabledSettings);\n _setPersistedSettings(sanitizedSettings);\n\n if (typeof onChangeSettings === 'function') {\n onChangeSettings(sanitizedSettings);\n }\n },\n [hasSomeEnabledSettings, onChangeSettings, JSON.stringify(enabledSettings)]\n );\n\n if (!hasSomeEnabledSettings) {\n return [defaultSettings, () => undefined];\n }\n\n return [persistedSettings, setPersistedSettings];\n}\n\nfunction removeDisabledSettings(settings: TableSettings, enabledSettings: EnableSettingsOptions) {\n const sanitizedSettings: TableSettings = { ...settings };\n\n Object.keys(enabledSettings).forEach(setting => {\n if (!enabledSettings[setting]) {\n delete sanitizedSettings[setting];\n }\n });\n\n return sanitizedSettings;\n}\n"],"names":["DEFAULT_ENABLED_OPTIONS","columnOrder","columnPinning","columnSizing","columnVisibility","excludeUnmatchedRecordsInSearch","fontSize","grouping","rowHeight","sorting","useUniqueTableId","tableId","tacoSettings","useTacoSettings","uniqueUserIdentifier","useEnabledSettings","isEnabled","React","useMemo","Object","keys","reduce","o","key","options","values","some","useTableSettings","id","defaultSettings","onChangeSettings","uniqueId","enabledSettings","hasSomeEnabledSettings","persistedSettings","_setPersistedSettings","useLocalStorage","undefined","removeDisabledSettings","setPersistedSettings","useCallback","value","sanitizedSettings","JSON","stringify","settings","forEach","setting"],"mappings":";;;;AAKA,MAAMA,uBAAuB,GAAG;EAC5BC,WAAW,EAAE,IAAI;EACjBC,aAAa,EAAE,IAAI;EACnBC,YAAY,EAAE,IAAI;EAClBC,gBAAgB,EAAE,IAAI;EACtBC,+BAA+B,EAAE,IAAI;EACrCC,QAAQ,EAAE,IAAI;EACdC,QAAQ,EAAE,IAAI;EACdC,SAAS,EAAE,IAAI;EACfC,OAAO,EAAE;CACZ;SAEeC,gBAAgBA,CAACC,OAAe;EAC5C,MAAMC,YAAY,GAAGC,eAAe,EAAE;EACtC,eAAeD,YAAY,CAACE,8BAA8BH,kBAAkB;AAChF;AAEA,SAASI,kBAAkBA,CAACC,SAAmD;EAC3E,OAAOC,cAAK,CAACC,OAAO,CAAC;IACjB,IAAIF,SAAS,KAAK,KAAK,EAAE;MACrB,OAAO,CACHG,MAAM,CAACC,IAAI,CAACpB,uBAAuB,CAAC,CAACqB,MAAM,CAAC,CAACC,CAAC,EAAEC,GAAG,MAAM;QAAE,GAAGD,CAAC;QAAE,CAACC,GAAG,GAAG;OAAO,CAAC,E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S,CAAC;;EAG7C,OAAO,CAACH,iBAAiB,EAAEK,oBAAoB,CAAC;AACpD;AAEA,SAASD,sBAAsBA,CAACO,QAAuB,EAAEb,eAAsC;EAC3F,MAAMU,iBAAiB,GAAkB;IAAE,GAAGG;GAAU;EAExD1B,MAAM,CAACC,IAAI,CAACY,eAAe,CAAC,CAACc,OAAO,CAACC,OAAO;IACxC,IAAI,CAACf,eAAe,CAACe,OAAO,CAAC,EAAE;MAC3B,OAAOL,iBAAiB,CAACK,OAAO,CAAC;;GAExC,CAAC;EAEF,OAAOL,iBAAiB;AAC5B;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableDataListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableDataListener.ts"],"sourcesContent":["import { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../../hooks/useLazyEffect';\n\nexport function useTableDataListener<TType = unknown>(table: ReactTable<TType>) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n const rows = table.getRowModel().rows;\n\n useLazyEffect(() => {\n const rowActiveIndex = meta.rowActive.rowActiveIndex;\n\n if (rowActiveIndex !== undefined && rowActiveIndex > rows.length) {\n meta.rowActive.setRowActiveIndex(0);\n }\n }, [rows.length]);\n}\n"],"names":["useTableDataListener","table","meta","options","rows","getRowModel","useLazyEffect","rowActiveIndex","rowActive","undefined","length","setRowActiveIndex"],"mappings":";;SAGgBA,oBAAoBA,CAAkBC,KAAwB;EAC1E,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAACD,IAA6B;EACxD,MAAME,IAAI,GAAGH,KAAK,CAACI,WAAW,EAAE,CAACD,IAAI;EAErCE,aAAa,CAAC;IACV,MAAMC,cAAc,GAAGL,IAAI,CAACM,SAAS,CAACD,cAAc;IAEpD,IAAIA,cAAc,KAAKE,SAAS,IAAIF,cAAc,GAAGH,IAAI,CAACM,MAAM,EAAE;MAC9DR,IAAI,CAACM,SAAS,CAACG,iBAAiB,CAAC,CAAC,CAAC;;GAE1C,EAAE,CAACP,IAAI,CAACM,MAAM,CAAC,CAAC;AACrB;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableFilterListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableFilterListener.ts"],"sourcesContent":["import { Table as ReactTable } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../../hooks/useLazyEffect';\nimport { TableFilterHandler } from '../../types';\n\n// we use a listener, and not the internal \"controlled\" change handlers because we don't actually want consumers\n// to control the state outside the table. this listener is really here to let the consumer make a server request\n// and provide the server with the filtering state, so that it can filter server side\nexport function useTableFilterListener<TType = unknown>(table: ReactTable<TType>, onFilter?: TableFilterHandler) {\n const columnFilters = table.getState().columnFilters;\n\n useLazyEffect(() => {\n if (table.options.enableColumnFilters && typeof onFilter === 'function') {\n onFilter(columnFilters);\n\n if (table.options.enableRowSelection) {\n table.resetRowSelection();\n }\n }\n }, [table.options.enableColumnFilters, columnFilters]);\n}\n"],"names":["useTableFilterListener","table","onFilter","columnFilters","getState","useLazyEffect","options","enableColumnFilters","enableRowSelection","resetRowSelection"],"mappings":";;AAIA;AACA;AACA;SACgBA,sBAAsBA,CAAkBC,KAAwB,EAAEC,QAA6B;EAC3G,MAAMC,aAAa,GAAGF,KAAK,CAACG,QAAQ,EAAE,CAACD,aAAa;EAEpDE,aAAa,CAAC;IACV,IAAIJ,KAAK,CAACK,OAAO,CAACC,mBAAmB,IAAI,OAAOL,QAAQ,KAAK,UAAU,EAAE;MACrEA,QAAQ,CAACC,aAAa,CAAC;MAEvB,IAAIF,KAAK,CAACK,OAAO,CAACE,kBAAkB,EAAE;QAClCP,KAAK,CAACQ,iBAAiB,EAAE;;;GAGpC,EAAE,CAACR,KAAK,CAACK,OAAO,CAACC,mBAAmB,EAAEJ,aAAa,CAAC,CAAC;AAC1D;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableFontSizeListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../../hooks/useLazyEffect';\nimport { FontSizes } from '../../../../types';\nimport { getCellMinWidth } from '../util/columns';\n\nexport function useTableFontSizeListener<TType = unknown>(table: ReactTable<TType>) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n const previousFontSizeRef = React.useRef(meta.fontSize.size);\n\n useLazyEffect(() => {\n const cellWidthDifference = getCellWidthDifference(`${previousFontSizeRef.current}-${meta.fontSize.size}`);\n\n table.setColumnSizing(sizes => {\n const minColumnSize = getCellMinWidth(meta.fontSize.size);\n\n return Object.fromEntries(\n Object.entries(sizes).map(([columnName, prevColumnSize]) => {\n // Prevents width value in the setting to go below the minColumnSize\n const newSize = Math.max(minColumnSize, prevColumnSize + cellWidthDifference);\n return [columnName, newSize];\n })\n );\n });\n previousFontSizeRef.current = meta.fontSize.size;\n }, [meta.fontSize.size]);\n}\n\nfunction getCellWidthDifference(fontSizeKey: string) {\n switch (fontSizeKey) {\n case `${FontSizes.small}-${FontSizes.medium}`:\n case `${FontSizes.medium}-${FontSizes.large}`:\n return 8;\n\n case `${FontSizes.medium}-${FontSizes.small}`:\n case `${FontSizes.large}-${FontSizes.medium}`:\n return -8;\n\n case `${FontSizes.small}-${FontSizes.large}`:\n return 16;\n\n case `${FontSizes.large}-${FontSizes.small}`:\n return -16;\n\n default:\n return 0;\n }\n}\n"],"names":["useTableFontSizeListener","table","meta","options","previousFontSizeRef","React","useRef","fontSize","size","useLazyEffect","cellWidthDifference","getCellWidthDifference","current","setColumnSizing","sizes","minColumnSize","getCellMinWidth","Object","fromEntries","entries","map","columnName","prevColumnSize","newSize","Math","max","fontSizeKey","FontSizes","small","medium","large"],"mappings":";;;;;SAMgBA,wBAAwBA,CAAkBC,KAAwB;EAC9E,MAAMC,IAAI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AO,CAAC,EAAE;IAEd;MACI,OAAO,CAAC;;AAEpB;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowHeightListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.ts"],"sourcesContent":["import { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../../hooks/useLazyEffect';\nimport { FontSizes } from '../../../../types';\n\nexport function useTableRowHeightListener<TType = unknown>(table: ReactTable<TType>) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n\n useLazyEffect(() => {\n if (meta.rowHeight.height === 'short' && meta.fontSize.size === FontSizes.large) {\n meta.fontSize.setSize(FontSizes.medium);\n }\n }, [meta.rowHeight.height]);\n}\n"],"names":["useTableRowHeightListener","table","meta","options","useLazyEffect","rowHeight","height","fontSize","size","FontSizes","large","setSize","medium"],"mappings":";;;SAIgBA,yBAAyBA,CAAkBC,KAAwB;EAC/E,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAACD,IAA6B;EAExDE,aAAa,CAAC;IACV,IAAIF,IAAI,CAACG,SAAS,CAACC,MAAM,KAAK,OAAO,IAAIJ,IAAI,CAACK,QAAQ,CAACC,IAAI,KAAKC,SAAS,CAACC,KAAK,EAAE;MAC7ER,IAAI,CAACK,QAAQ,CAACI,OAAO,CAACF,SAAS,CAACG,MAAM,CAAC;;GAE9C,EAAE,CAACV,IAAI,CAACG,SAAS,CAACC,MAAM,CAAC,CAAC;AAC/B;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableRowSelectionListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.ts"],"sourcesContent":["import { Table as ReactTable } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../../hooks/useLazyEffect';\nimport { TableRowSelectHandler } from '../../types';\n\nexport function useTableRowSelectionListener<TType = unknown>(\n table: ReactTable<TType>,\n onRowSelect?: TableRowSelectHandler<TType>\n) {\n const rowSelection = table.getState().rowSelection;\n\n useLazyEffect(() => {\n const selectedRows = table.getSelectedRowModel().rows;\n\n if (table.options.enableRowSelection && typeof onRowSelect === 'function') {\n if (table.options.enableMultiRowSelection) {\n onRowSelect(selectedRows.map(row => row.original));\n } else {\n onRowSelect([selectedRows[0]?.original] ?? []);\n }\n }\n // It is important to stringify either rowSelection state or selectedRows, because we don't\n // know if the array or object that is returned by react-table has the same reference or not.\n // rowSelection state is used here because it will be more expensive to strigify selectedRows\n // than rowSelection state.\n }, [table.options.enableRowSelection, table.options.enableMultiRowSelection, JSON.stringify(rowSelection)]);\n}\n"],"names":["useTableRowSelectionListener","table","onRowSelect","rowSelection","getState","useLazyEffect","selectedRows","getSelectedRowModel","rows","options","enableRowSelection","enableMultiRowSelection","map","row","original","_ref","_selectedRows$","JSON","stringify"],"mappings":";;SAIgBA,4BAA4BA,CACxCC,KAAwB,EACxBC,WAA0C;EAE1C,MAAMC,YAAY,GAAGF,KAAK,CAACG,QAAQ,EAAE,CAACD,YAAY;EAElDE,aAAa,CAAC;IACV,MAAMC,YAAY,GAAGL,KAAK,CAACM,mBAAmB,EAAE,CAACC,IAAI;IAErD,IAAIP,KAAK,CAACQ,OAAO,CAACC,kBAAkB,IAAI,OAAOR,WAAW,KAAK,UAAU,EAAE;MACvE,IAAID,KAAK,CAACQ,OAAO,CAACE,uBAAuB,EAAE;QACvCT,WAAW,CAACI,YAAY,CAACM,GAAG,CAACC,GAAG,IAAIA,GAAG,CAACC,QAAQ,CAAC,CAAC;OACrD,MAAM;QAAA,IAAAC,IAAA,EAAAC,cAAA;QACHd,WAAW,EAAAa,IAAA,GAAC,EAAAC,cAAA,GAACV,YAAY,CAAC,CAAC,CAAC,cAAAU,cAAA,uBAAfA,cAAA,CAAiBF,QAAQ,CAAC,cAAAC,IAAA,cAAAA,IAAA,GAAI,EAAE,CAAC;;;;;;;GAOzD,EAAE,CAACd,KAAK,CAACQ,OAAO,CAACC,kBAAkB,EAAET,KAAK,CAACQ,OAAO,CAACE,uBAAuB,EAAEM,IAAI,CAACC,SAAS,CAACf,YAAY,CAAC,CAAC,CAAC;AAC/G;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableSearchListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableSearchListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { resetHighlightedColumnIndexes } from '../util/search';\n\nexport function useTableSearchListener<TType = unknown>(table: ReactTable<TType>) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n\n // recalculates highlighted indexes whenever something important changes\n React.useEffect(() => {\n if (meta.search.isEnabled) {\n resetHighlightedColumnIndexes(table.getState().globalFilter, table);\n }\n }, [\n meta.server.loadAllStatus,\n meta.search.isEnabled,\n meta.search.enableGlobalFilter,\n table.getRowModel().rows.length,\n table.getState().globalFilter,\n JSON.stringify(table.getState().sorting),\n JSON.stringify(table.getState().columnVisibility),\n ]);\n}\n"],"names":["useTableSearchListener","table","meta","options","React","useEffect","search","isEnabled","resetHighlightedColumnIndexes","getState","globalFilter","server","loadAllStatus","enableGlobalFilter","getRowModel","rows","length","JSON","stringify","sorting","columnVisibility"],"mappings":";;;SAIgBA,sBAAsBA,CAAkBC,KAAwB;EAC5E,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAACD,IAA6B;;EAGxDE,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIH,IAAI,CAACI,MAAM,CAACC,SAAS,EAAE;MACvBC,6BAA6B,CAACP,KAAK,CAACQ,QAAQ,EAAE,CAACC,YAAY,EAAET,KAAK,CAAC;;GAE1E,EAAE,CACCC,IAAI,CAACS,MAAM,CAACC,aAAa,EACzBV,IAAI,CAACI,MAAM,CAACC,SAAS,EACrBL,IAAI,CAACI,MAAM,CAACO,kBAAkB,EAC9BZ,KAAK,CAACa,WAAW,EAAE,CAACC,IAAI,CAACC,MAAM,EAC/Bf,KAAK,CAACQ,QAAQ,EAAE,CAACC,YAAY,EAC7BO,IAAI,CAACC,SAAS,CAACjB,KAAK,CAACQ,QAAQ,EAAE,CAACU,OAAO,CAAC,EACxCF,IAAI,CAACC,SAAS,CAACjB,KAAK,CAACQ,QAAQ,EAAE,CAACW,gBAAgB,CAAC,CACpD,CAAC;AACN;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableServerLoadingListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\nimport { TableServerLoadPageHandler } from '../../types';\n\nexport function useTableServerLoadingListener<TType = unknown>(table: ReactTable<TType>, loadPage?: TableServerLoadPageHandler) {\n const sorting = table.getState().sorting;\n const columnFilters = table.getState().columnFilters;\n const search = table.getState().globalFilter;\n\n // trigger load of the first page on mount\n React.useEffect(() => {\n if (loadPage) {\n loadPage(0, sorting, columnFilters, search);\n }\n }, []);\n}\n"],"names":["useTableServerLoadingListener","table","loadPage","sorting","getState","columnFilters","search","globalFilter","React","useEffect"],"mappings":";;SAIgBA,6BAA6BA,CAAkBC,KAAwB,EAAEC,QAAqC;EAC1H,MAAMC,OAAO,GAAGF,KAAK,CAACG,QAAQ,EAAE,CAACD,OAAO;EACxC,MAAME,aAAa,GAAGJ,KAAK,CAACG,QAAQ,EAAE,CAACC,aAAa;EACpD,MAAMC,MAAM,GAAGL,KAAK,CAACG,QAAQ,EAAE,CAACG,YAAY;;EAG5CC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIP,QAAQ,EAAE;MACVA,QAAQ,CAAC,CAAC,EAAEC,OAAO,EAAEE,aAAa,EAAEC,MAAM,CAAC;;GAElD,EAAE,EAAE,CAAC;AACV;;;;"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { getSettings } from '../util/settings.js';
|
3
|
+
|
4
|
+
function useTableSettingsListener(table, onChangeSettings) {
|
5
|
+
const meta = table.options.meta;
|
6
|
+
const state = table.getState();
|
7
|
+
React__default.useEffect(() => {
|
8
|
+
let handler;
|
9
|
+
if (typeof onChangeSettings === 'function') {
|
10
|
+
handler = setTimeout(() => {
|
11
|
+
// some settings shouldn't be persisted, but we comment them out here to highlight the intention
|
12
|
+
onChangeSettings(getSettings(table));
|
13
|
+
}, 250);
|
14
|
+
}
|
15
|
+
return () => clearTimeout(handler);
|
16
|
+
}, [
|
17
|
+
//state.columnFilters,
|
18
|
+
state.columnOrder, state.columnPinning, state.columnSizing, state.columnVisibility, table.options.enableGlobalFilter, meta.fontSize.size, state.grouping, meta.rowHeight.height,
|
19
|
+
//state.globalFilter,
|
20
|
+
state.sorting]);
|
21
|
+
}
|
22
|
+
|
23
|
+
export { useTableSettingsListener };
|
24
|
+
//# sourceMappingURL=useTableSettingsListener.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableSettingsListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableSettingsListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { TableSettingsHandler } from '../../types';\nimport { getSettings } from '../util/settings';\n\nexport function useTableSettingsListener<TType = unknown>(\n table: ReactTable<TType>,\n onChangeSettings: TableSettingsHandler | undefined\n) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n const state = table.getState();\n\n React.useEffect(() => {\n let handler;\n\n if (typeof onChangeSettings === 'function') {\n handler = setTimeout(() => {\n // some settings shouldn't be persisted, but we comment them out here to highlight the intention\n onChangeSettings(getSettings(table));\n }, 250);\n }\n\n return () => clearTimeout(handler);\n }, [\n //state.columnFilters,\n state.columnOrder,\n state.columnPinning,\n state.columnSizing,\n state.columnVisibility,\n table.options.enableGlobalFilter,\n meta.fontSize.size,\n state.grouping,\n meta.rowHeight.height,\n //state.globalFilter,\n state.sorting,\n ]);\n}\n"],"names":["useTableSettingsListener","table","onChangeSettings","meta","options","state","getState","React","useEffect","handler","setTimeout","getSettings","clearTimeout","columnOrder","columnPinning","columnSizing","columnVisibility","enableGlobalFilter","fontSize","size","grouping","rowHeight","height","sorting"],"mappings":";;;SAKgBA,wBAAwBA,CACpCC,KAAwB,EACxBC,gBAAkD;EAElD,MAAMC,IAAI,GAAGF,KAAK,CAACG,OAAO,CAACD,IAA6B;EACxD,MAAME,KAAK,GAAGJ,KAAK,CAACK,QAAQ,EAAE;EAE9BC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIC,OAAO;IAEX,IAAI,OAAOP,gBAAgB,KAAK,UAAU,EAAE;MACxCO,OAAO,GAAGC,UAAU,CAAC;;QAEjBR,gBAAgB,CAACS,WAAW,CAACV,KAAK,CAAC,CAAC;OACvC,EAAE,GAAG,CAAC;;IAGX,OAAO,MAAMW,YAAY,CAACH,OAAO,CAAC;GACrC,EAAE;;EAECJ,KAAK,CAACQ,WAAW,EACjBR,KAAK,CAACS,aAAa,EACnBT,KAAK,CAACU,YAAY,EAClBV,KAAK,CAACW,gBAAgB,EACtBf,KAAK,CAACG,OAAO,CAACa,kBAAkB,EAChCd,IAAI,CAACe,QAAQ,CAACC,IAAI,EAClBd,KAAK,CAACe,QAAQ,EACdjB,IAAI,CAACkB,SAAS,CAACC,MAAM;;EAErBjB,KAAK,CAACkB,OAAO,CAChB,CAAC;AACN;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableShortcutsListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { KeyDownHandlerOptions, createShortcutKeyDownHandler } from '../../../../utils/keyboard';\nimport { TableShortcutHandlerObject, TableShortcuts } from '../../types';\n\nexport function useTableShortcutsListener<TType = unknown>(\n table: ReactTable<TType>,\n shortcuts: TableShortcuts<TType> | undefined\n) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n const rows = table.getRowModel().rows;\n\n React.useEffect(() => {\n const shortcutKeys = Object.keys(shortcuts ?? {});\n const globalHandlers: Array<(event: KeyboardEvent) => void> = [];\n\n // convert the shortcut into the correct format to register it\n if (shortcuts && shortcutKeys.length && meta.rowActive.rowActiveIndex !== undefined) {\n const rowActive = rows[meta.rowActive.rowActiveIndex];\n\n shortcutKeys.forEach(key => {\n const handler = shortcuts[key];\n\n let keyDownHandler;\n let keyDownHandlerOptions: KeyDownHandlerOptions;\n\n if (typeof handler === 'function') {\n keyDownHandler = handler;\n keyDownHandlerOptions = {\n key,\n };\n } else {\n const handlerObject = handler as TableShortcutHandlerObject<TType>;\n keyDownHandler = handlerObject.handler;\n keyDownHandlerOptions = {\n key,\n meta: handlerObject.meta,\n shift: handlerObject.shift,\n };\n }\n\n globalHandlers.push(\n createShortcutKeyDownHandler(keyDownHandlerOptions, event => {\n event.preventDefault();\n keyDownHandler(rowActive?.original);\n })\n );\n });\n }\n\n globalHandlers.forEach(handler => {\n document.addEventListener('keydown', handler);\n });\n\n return () => {\n globalHandlers.forEach(handler => {\n document.removeEventListener('keydown', handler);\n });\n };\n }, [shortcuts, meta.rowActive.rowActiveIndex, rows.length]);\n}\n"],"names":["useTableShortcutsListener","table","shortcuts","meta","options","rows","getRowModel","React","useEffect","shortcutKeys","Object","keys","globalHandlers","length","rowActive","rowActiveIndex","undefined","forEach","key","handler","keyDownHandler","keyDownHandlerOptions","handlerObject","shift","push","createShortcutKeyDownHandler","event","preventDefault","original","document","addEventListener","removeEventListener"],"mappings":";;;SAKgBA,yBAAyBA,CACrCC,KAAwB,EACxBC,SAA4C;EAE5C,MAAMC,IAAI,GAAGF,KAAK,CAACG,OAAO,CAACD,IAA6B;EACxD,MAAME,IAAI,GAAGJ,KAAK,CAACK,WAAW,EAAE,CAACD,IAAI;EAErCE,cAAK,CAACC,SAAS,CAAC;IACZ,MAAMC,YAAY,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AEV,IAAI,CAACQ,MAAM,CAAC,CAAC;AAC/D;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableSortingListener.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/listeners/useTableSortingListener.ts"],"sourcesContent":["import { Table as ReactTable } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../../hooks/useLazyEffect';\nimport { TableSortHandler } from '../../types';\n\n// we use a listener, and not the internal \"controlled\" change handlers because we don't actually want consumers\n// to control the state outside the table. this listener is really here to let the consumer make a server request\n// and provide the server with the sorting state, so that it can sort server side\nexport function useTableSortingListener<TType = unknown>(table: ReactTable<TType>, onSort?: TableSortHandler) {\n const sorting = table.getState().sorting;\n\n useLazyEffect(() => {\n if (table.options.enableSorting && typeof onSort === 'function') {\n onSort(sorting);\n\n if (table.options.enableRowSelection) {\n table.resetRowSelection();\n }\n }\n }, [table.options.enableSorting, sorting]);\n}\n"],"names":["useTableSortingListener","table","onSort","sorting","getState","useLazyEffect","options","enableSorting","enableRowSelection","resetRowSelection"],"mappings":";;AAIA;AACA;AACA;SACgBA,uBAAuBA,CAAkBC,KAAwB,EAAEC,MAAyB;EACxG,MAAMC,OAAO,GAAGF,KAAK,CAACG,QAAQ,EAAE,CAACD,OAAO;EAExCE,aAAa,CAAC;IACV,IAAIJ,KAAK,CAACK,OAAO,CAACC,aAAa,IAAI,OAAOL,MAAM,KAAK,UAAU,EAAE;MAC7DA,MAAM,CAACC,OAAO,CAAC;MAEf,IAAIF,KAAK,CAACK,OAAO,CAACE,kBAAkB,EAAE;QAClCP,KAAK,CAACQ,iBAAiB,EAAE;;;GAGpC,EAAE,CAACR,KAAK,CAACK,OAAO,CAACC,aAAa,EAAEJ,OAAO,CAAC,CAAC;AAC9C;;;;"}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
import { useReactTable, getCoreRowModel } from '@tanstack/react-table';
|
2
|
+
import { mapTableChildrenToColumns, useReactTableInitialState, configureReactTableOptions } from './util/setup.js';
|
3
|
+
import { useTableFeaturePreset } from './util/presets.js';
|
4
|
+
import { useTableColumnFreezing } from './features/useTableColumnFreezing.js';
|
5
|
+
import { useTableColumnOrdering } from './features/useTableColumnOrdering.js';
|
6
|
+
import { useTableFooter } from './features/useTableFooter.js';
|
7
|
+
import { useTableFontSize } from './features/useTableFontSize.js';
|
8
|
+
import { useTablePrinting } from './features/useTablePrinting.js';
|
9
|
+
import { useTableRowActions } from './features/useTableRowActions.js';
|
10
|
+
import { useTableRowActive } from './features/useTableRowActive.js';
|
11
|
+
import { useTableRowClick } from './features/useTableRowClick.js';
|
12
|
+
import { useTableRowExpansion } from './features/useTableRowExpansion.js';
|
13
|
+
import { useTableRowGoto } from './features/useTableRowGoto.js';
|
14
|
+
import { useTableRowGroups } from './features/useTableRowGroups.js';
|
15
|
+
import { useTableRowHeight } from './features/useTableRowHeight.js';
|
16
|
+
import { useTableRowSelection } from './features/useTableRowSelection.js';
|
17
|
+
import { useTableSearch } from './features/useTableSearch.js';
|
18
|
+
import { useTableServerLoading } from './features/useTableServerLoading.js';
|
19
|
+
import { useTableSettings } from './features/useTableSettings.js';
|
20
|
+
import { useTableDataListener } from './listeners/useTableDataListener.js';
|
21
|
+
import { useTableFilterListener } from './listeners/useTableFilterListener.js';
|
22
|
+
import { useTableFontSizeListener } from './listeners/useTableFontSizeListener.js';
|
23
|
+
import { useTableRowHeightListener } from './listeners/useTableRowHeightListener.js';
|
24
|
+
import { useTableRowSelectionListener } from './listeners/useTableRowSelectionListener.js';
|
25
|
+
import { useTableSearchListener } from './listeners/useTableSearchListener.js';
|
26
|
+
import { useTableSettingsListener } from './listeners/useTableSettingsListener.js';
|
27
|
+
import { useTableShortcutsListener } from './listeners/useTableShortcutsListener.js';
|
28
|
+
import { useTableSortingListener } from './listeners/useTableSortingListener.js';
|
29
|
+
import { useTableServerLoadingListener } from './listeners/useTableServerLoadingListener.js';
|
30
|
+
import { useTableRowDrag } from './features/useTableRowDrag.js';
|
31
|
+
import { useTableRowDrop } from './features/useTableRowDrop.js';
|
32
|
+
|
33
|
+
function useTableManager(props, meta, internalColumns) {
|
34
|
+
var _props$data, _props$length, _instance$options$met;
|
35
|
+
// CSS.escape would be best here, but it doesn't seem to work very well
|
36
|
+
const safeId = props.id.replace('.', '_');
|
37
|
+
// configure table options, merging props with presets
|
38
|
+
const options = useTableFeaturePreset(props);
|
39
|
+
// load any persisted table settings and merge them with any defaults
|
40
|
+
const [settings, setSettings] = useTableSettings(options.enableSaveSettings, safeId, props.defaultSettings, props.onChangeSettings);
|
41
|
+
// configure common custom features
|
42
|
+
const columnFreezing = useTableColumnFreezing(options.enableColumnFreezing);
|
43
|
+
const columnOrdering = useTableColumnOrdering(options.enableColumnOrdering);
|
44
|
+
const fontSize = useTableFontSize(options.enableFontSize, settings.fontSize);
|
45
|
+
const footer = useTableFooter(options.enableFooter);
|
46
|
+
const printing = useTablePrinting(options.enablePrinting, safeId);
|
47
|
+
const rowActive = useTableRowActive(options.enableRowActive, props.defaultRowActiveIndex);
|
48
|
+
const rowActions = useTableRowActions(options.enableRowActions, props.rowActions, props.rowActionsLength);
|
49
|
+
const rowClick = useTableRowClick(options.enableRowClick, props.onRowClick);
|
50
|
+
const rowDrag = useTableRowDrag(options.enableRowDrag, props.onRowDrag);
|
51
|
+
const rowDrop = useTableRowDrop(options.enableRowDrop, props.onRowDrop);
|
52
|
+
const rowExpansion = useTableRowExpansion(options.enableRowExpansion, props.rowExpansionRenderer);
|
53
|
+
const rowGoto = useTableRowGoto(options.enableRowGoto, props.onRowGoto);
|
54
|
+
const rowGroups = useTableRowGroups(props.rowActionsForGroup);
|
55
|
+
const rowHeight = useTableRowHeight(options.enableRowHeight, settings.rowHeight);
|
56
|
+
const rowSelection = useTableRowSelection(options.enableRowSelection);
|
57
|
+
const search = useTableSearch(options.enableSearch, settings.excludeUnmatchedRecordsInSearch);
|
58
|
+
const server = useTableServerLoading(props.loadPage, props.loadAll, props.pageSize);
|
59
|
+
// TODO: memoise
|
60
|
+
// convert jsx column components into valid table columns
|
61
|
+
const {
|
62
|
+
columns,
|
63
|
+
...defaultState
|
64
|
+
} = mapTableChildrenToColumns(props, settings, options, internalColumns);
|
65
|
+
// configure initial table state
|
66
|
+
const initialState = useReactTableInitialState(props, columns, settings, defaultState);
|
67
|
+
// ensure data is always valid
|
68
|
+
const data = (_props$data = props.data) !== null && _props$data !== void 0 ? _props$data : [];
|
69
|
+
const length = (_props$length = props.length) !== null && _props$length !== void 0 ? _props$length : data.length;
|
70
|
+
// create a react-table instance
|
71
|
+
const instance = useReactTable({
|
72
|
+
data,
|
73
|
+
columns,
|
74
|
+
// configure initial table state
|
75
|
+
initialState,
|
76
|
+
getCoreRowModel: getCoreRowModel(),
|
77
|
+
// configure react-table built-in features
|
78
|
+
...configureReactTableOptions(options, props),
|
79
|
+
// settings that can be toggled by the user, and therefore require our own state
|
80
|
+
enableGlobalFilter: search.enableGlobalFilter,
|
81
|
+
// custom context
|
82
|
+
meta: {
|
83
|
+
// spread features from specific implementations
|
84
|
+
...meta,
|
85
|
+
columnFreezing,
|
86
|
+
columnOrdering,
|
87
|
+
fontSize,
|
88
|
+
footer,
|
89
|
+
length,
|
90
|
+
printing,
|
91
|
+
rowActions: rowActions,
|
92
|
+
rowActive,
|
93
|
+
rowClick: rowClick,
|
94
|
+
rowDrag,
|
95
|
+
rowDrop: rowDrop,
|
96
|
+
rowExpansion: rowExpansion,
|
97
|
+
rowIdentityColumnId: props.rowIdentityColumnId,
|
98
|
+
rowGoto,
|
99
|
+
rowGroups: rowGroups,
|
100
|
+
rowHeight,
|
101
|
+
rowSelection,
|
102
|
+
search,
|
103
|
+
server
|
104
|
+
}
|
105
|
+
});
|
106
|
+
// state listeners - we have these so that we don't have to control state outside the table
|
107
|
+
useTableDataListener(instance);
|
108
|
+
useTableFilterListener(instance, props.onChangeFilter);
|
109
|
+
useTableFontSizeListener(instance);
|
110
|
+
useTableRowHeightListener(instance);
|
111
|
+
useTableRowSelectionListener(instance, props.onRowSelect);
|
112
|
+
useTableSearchListener(instance);
|
113
|
+
useTableServerLoadingListener(instance, server.loadPage);
|
114
|
+
useTableSettingsListener(instance, setSettings);
|
115
|
+
useTableShortcutsListener(instance, props.shortcuts);
|
116
|
+
useTableSortingListener(instance, props.onChangeSort);
|
117
|
+
return {
|
118
|
+
id: safeId,
|
119
|
+
instance,
|
120
|
+
meta: (_instance$options$met = instance.options.meta) !== null && _instance$options$met !== void 0 ? _instance$options$met : {},
|
121
|
+
state: instance.getState()
|
122
|
+
};
|
123
|
+
}
|
124
|
+
|
125
|
+
export { useTableManager };
|
126
|
+
//# sourceMappingURL=useTableManager.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableManager.js","sources":["../../../../../../../../src/primitives/Table/useTableManager/useTableManager.ts"],"sourcesContent":["import { useReactTable, TableMeta as ReactTableMeta, RowData, getCoreRowModel } from '@tanstack/react-table';\nimport {\n TableColumnAlignment,\n TableColumnClassNameHandler,\n TableColumnDataType,\n TableColumnMenu,\n TableColumnRendererControl,\n TableFilterComparator,\n TableProps,\n} from '../types';\nimport { useReactTableInitialState, configureReactTableOptions, mapTableChildrenToColumns } from './util/setup';\nimport { useTableFeaturePreset } from './util/presets';\nimport { useTableColumnFreezing } from './features/useTableColumnFreezing';\nimport { useTableColumnOrdering } from './features/useTableColumnOrdering';\nimport { useTableFooter } from './features/useTableFooter';\nimport { useTableFontSize } from './features/useTableFontSize';\nimport { useTablePrinting } from './features/useTablePrinting';\nimport { useTableRowActions } from './features/useTableRowActions';\nimport { useTableRowActive } from './features/useTableRowActive';\nimport { useTableRowClick } from './features/useTableRowClick';\nimport { useTableRowExpansion } from './features/useTableRowExpansion';\nimport { useTableRowGoto } from './features/useTableRowGoto';\nimport { useTableRowGroups } from './features/useTableRowGroups';\nimport { useTableRowHeight } from './features/useTableRowHeight';\nimport { useTableRowSelection } from './features/useTableRowSelection';\nimport { useTableSearch } from './features/useTableSearch';\nimport { useTableServerLoading } from './features/useTableServerLoading';\nimport { useTableSettings } from './features/useTableSettings';\nimport { useTableDataListener } from './listeners/useTableDataListener';\nimport { useTableFilterListener } from './listeners/useTableFilterListener';\nimport { useTableFontSizeListener } from './listeners/useTableFontSizeListener';\nimport { useTableRowHeightListener } from './listeners/useTableRowHeightListener';\nimport { useTableRowSelectionListener } from './listeners/useTableRowSelectionListener';\nimport { useTableSearchListener } from './listeners/useTableSearchListener';\nimport { useTableSettingsListener } from './listeners/useTableSettingsListener';\nimport { useTableShortcutsListener } from './listeners/useTableShortcutsListener';\nimport { useTableSortingListener } from './listeners/useTableSortingListener';\nimport { useTableServerLoadingListener } from './listeners/useTableServerLoadingListener';\nimport { useTableManagerInternalColumns } from './types';\nimport { useTableRowDrag } from './features/useTableRowDrag';\nimport { useTableRowDrop } from './features/useTableRowDrop';\n\n/*\n EDITING THIS FILE? READ ME FIRST!\n\n This is a shared, common hook for multiple tables. It's feature set is specifically chosen to support features\n common across those tables. If you are adding a new feature or changing an existing one, before writing any code\n in this file ask yourself the question - is this specific to a given table, or is it common to all of them.\n If you are unsure, ask your team first.\n*/\n\ndeclare module '@tanstack/table-core' {\n interface TableMeta<TData extends RowData> {\n columnFreezing: ReturnType<typeof useTableColumnFreezing>;\n columnOrdering: ReturnType<typeof useTableColumnOrdering>;\n fontSize: ReturnType<typeof useTableFontSize>;\n footer: ReturnType<typeof useTableFooter>;\n length: number;\n printing: ReturnType<typeof useTablePrinting>;\n rowActions: ReturnType<typeof useTableRowActions>;\n rowActive: ReturnType<typeof useTableRowActive>;\n rowClick: ReturnType<typeof useTableRowClick>;\n rowDrag: ReturnType<typeof useTableRowDrag>;\n rowDrop: ReturnType<typeof useTableRowDrop>;\n rowExpansion: ReturnType<typeof useTableRowExpansion>;\n rowGoto: ReturnType<typeof useTableRowGoto>;\n rowGroups: ReturnType<typeof useTableRowGroups>;\n rowHeight: ReturnType<typeof useTableRowHeight>;\n rowIdentityColumnId?: string;\n rowSelection: ReturnType<typeof useTableRowSelection>;\n search: ReturnType<typeof useTableSearch>;\n server: ReturnType<typeof useTableServerLoading>;\n }\n\n interface ColumnMeta<TData extends RowData, TValue> {\n align?: TableColumnAlignment;\n className?: TableColumnClassNameHandler<TData>;\n control?: TableColumnRendererControl<TData>;\n dataType?: TableColumnDataType;\n defaultWidth?: number;\n enableOrdering?: boolean;\n enablePrinting?: boolean;\n enableSearch?: boolean;\n enableTruncate?: boolean;\n filters?: TableFilterComparator[];\n header: string;\n headerClassName?: string;\n menu?: TableColumnMenu;\n tooltip?: string;\n }\n}\n\nexport function useTableManager<TType = unknown, TMeta = {}>(\n props: TableProps<TType>,\n meta?: Partial<ReactTableMeta<TType>> & TMeta,\n internalColumns?: useTableManagerInternalColumns<TType>\n) {\n // CSS.escape would be best here, but it doesn't seem to work very well\n const safeId = props.id.replace('.', '_');\n // configure table options, merging props with presets\n const options = useTableFeaturePreset(props);\n\n // load any persisted table settings and merge them with any defaults\n const [settings, setSettings] = useTableSettings(\n options.enableSaveSettings,\n safeId,\n props.defaultSettings,\n props.onChangeSettings\n );\n\n // configure common custom features\n const columnFreezing = useTableColumnFreezing(options.enableColumnFreezing);\n const columnOrdering = useTableColumnOrdering(options.enableColumnOrdering);\n const fontSize = useTableFontSize(options.enableFontSize, settings.fontSize);\n const footer = useTableFooter(options.enableFooter);\n const printing = useTablePrinting(options.enablePrinting, safeId);\n const rowActive = useTableRowActive(options.enableRowActive, props.defaultRowActiveIndex);\n const rowActions = useTableRowActions<TType>(options.enableRowActions, props.rowActions, props.rowActionsLength);\n const rowClick = useTableRowClick<TType>(options.enableRowClick, props.onRowClick);\n const rowDrag = useTableRowDrag<TType>(options.enableRowDrag, props.onRowDrag);\n const rowDrop = useTableRowDrop<TType>(options.enableRowDrop, props.onRowDrop);\n const rowExpansion = useTableRowExpansion<TType>(options.enableRowExpansion, props.rowExpansionRenderer);\n const rowGoto = useTableRowGoto(options.enableRowGoto, props.onRowGoto);\n const rowGroups = useTableRowGroups(props.rowActionsForGroup);\n const rowHeight = useTableRowHeight(options.enableRowHeight, settings.rowHeight);\n const rowSelection = useTableRowSelection(options.enableRowSelection);\n const search = useTableSearch(options.enableSearch, settings.excludeUnmatchedRecordsInSearch);\n const server = useTableServerLoading(props.loadPage, props.loadAll, props.pageSize);\n\n // TODO: memoise\n // convert jsx column components into valid table columns\n const { columns, ...defaultState } = mapTableChildrenToColumns<TType>(props, settings, options, internalColumns);\n\n // configure initial table state\n const initialState = useReactTableInitialState<TType>(props, columns, settings, defaultState);\n\n // ensure data is always valid\n const data = props.data ?? [];\n const length = props.length ?? data.length;\n\n // create a react-table instance\n const instance = useReactTable<TType>({\n data,\n columns,\n // configure initial table state\n initialState,\n getCoreRowModel: getCoreRowModel<TType>(),\n // configure react-table built-in features\n ...configureReactTableOptions<TType>(options, props),\n // settings that can be toggled by the user, and therefore require our own state\n enableGlobalFilter: search.enableGlobalFilter,\n // custom context\n meta: {\n // spread features from specific implementations\n ...meta,\n columnFreezing,\n columnOrdering,\n fontSize,\n footer,\n length,\n printing,\n rowActions: rowActions as any, // no other way around ReturnType<typeof X> not supporting generics\n rowActive,\n rowClick: rowClick as any, // no other way around ReturnType<typeof X> not supporting generics\n rowDrag,\n rowDrop: rowDrop as any, // no other way around ReturnType<typeof X> not supporting generics\n rowExpansion: rowExpansion as any, // no other way around ReturnType<typeof X> not supporting generics\n rowIdentityColumnId: props.rowIdentityColumnId,\n rowGoto,\n rowGroups: rowGroups as any, // no other way around ReturnType<typeof X> not supporting generics\n rowHeight,\n rowSelection,\n search,\n server,\n } as ReactTableMeta<TType> & TMeta,\n });\n\n // state listeners - we have these so that we don't have to control state outside the table\n useTableDataListener(instance);\n useTableFilterListener(instance, props.onChangeFilter);\n useTableFontSizeListener(instance);\n useTableRowHeightListener(instance);\n useTableRowSelectionListener(instance, props.onRowSelect);\n useTableSearchListener(instance);\n useTableServerLoadingListener(instance, server.loadPage);\n useTableSettingsListener(instance, setSettings);\n useTableShortcutsListener(instance, props.shortcuts);\n useTableSortingListener(instance, props.onChangeSort);\n\n return {\n id: safeId,\n instance,\n meta: (instance.options.meta ?? {}) as ReactTableMeta<TType> & TMeta,\n state: instance.getState(),\n };\n}\n"],"names":["useTableManager","props","meta","internalColumns","safeId","id","replace","options","useTableFeaturePreset","settings","setSettings","useTableSettings","enableSaveSettings","defaultSettings","onChangeSettings","columnFreezing","useTableColumnFreezing","enableColumnFreezing","columnOrdering","useTableColumnOrdering","enableColumnOrdering","fontSize","useTableFontSize","enableFontSize","footer","useTableFooter","enableFooter","printing","useTablePrinting","enablePrinting","rowActive","useTableRowActive","enableRowActive","defaultRowActiveIndex","rowActions","useTableRowActions","enableRowActions","rowActionsLength","rowClick","useTableRowClick","enableRowClick","onRowClick","rowDrag","useTableRowDrag","enableRowDrag","onRowDrag","rowDrop","useTableRowDrop","enableRowDrop","onRowDrop","rowExpansion","useTableRowExpansion","enableRowExpansion","rowExpansionRenderer","rowGoto","useTableRowGoto","enableRowGoto","onRowGoto","rowGroups","useTableRowGroups","rowActionsForGroup","rowHeight","useTableRowHeight","enableRowHeight","rowSelection","useTableRowSelection","enableRowSelection","search","useTableSearch","enableSearch","excludeUnmatchedRecordsInSearch","server","useTableServerLoading","loadPage","loadAll","pageSize","columns","defaultState","mapTableChildrenToColumns","initialState","useReactTableInitialState","data","_props$data","length","_props$length","instance","useReactTable","getCoreRowModel","configureReactTableOptions","enableGlobalFilter","rowIdentityColumnId","useTableDataListener","useTableFilterListener","onChangeFilter","useTableFontSizeListener","useTableRowHeightListener","useTableRowSelectionListener","onRowSelect","useTableSearchListener","useTableServerLoadingListener","useTableSettingsListener","useTableShortcutsListener","shortcuts","useTableSortingListener","onChangeSort","_instance$options$met","state","getState"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA4FgBA,eAAeA,CAC3BC,KAAwB,EACxBC,IAA6C,EAC7CC,eAAuD;;;EAGvD,MAAMC,MAAM,GAAGH,KAAK,CAACI,EAAE,CAACC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;;EAEzC,M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EAAE;;MAEF,GAAGA,IAAI;MACPa,cAAc;MACdG,cAAc;MACdG,QAAQ;MACRG,MAAM;MACN2D,MAAM;MACNxD,QAAQ;MACRO,UAAU,EAAEA,UAAiB;MAC7BJ,SAAS;MACTQ,QAAQ,EAAEA,QAAe;MACzBI,OAAO;MACPI,OAAO,EAAEA,OAAc;MACvBI,YAAY,EAAEA,YAAmB;MACjCwC,mBAAmB,EAAEzF,KAAK,CAACyF,mBAAmB;MAC9CpC,OAAO;MACPI,SAAS,EAAEA,SAAgB;MAC3BG,SAAS;MACTG,YAAY;MACZG,MAAM;MACNI;;GAEP,CAAC;;EAGFoB,oBAAoB,CAACN,QAAQ,CAAC;EAC9BO,sBAAsB,CAACP,QAAQ,EAAEpF,KAAK,CAAC4F,cAAc,CAAC;EACtDC,wBAAwB,CAACT,QAAQ,CAAC;EAClCU,yBAAyB,CAACV,QAAQ,CAAC;EACnCW,4BAA4B,CAACX,QAAQ,EAAEpF,KAAK,CAACgG,WAAW,CAAC;EACzDC,sBAAsB,CAACb,QAAQ,CAAC;EAChCc,6BAA6B,CAACd,QAAQ,EAAEd,MAAM,CAACE,QAAQ,CAAC;EACxD2B,wBAAwB,CAACf,QAAQ,EAAE3E,WAAW,CAAC;EAC/C2F,yBAAyB,CAAChB,QAAQ,EAAEpF,KAAK,CAACqG,SAAS,CAAC;EACpDC,uBAAuB,CAAClB,QAAQ,EAAEpF,KAAK,CAACuG,YAAY,CAAC;EAErD,OAAO;IACHnG,EAAE,EAAED,MAAM;IACViF,QAAQ;IACRnF,IAAI,GAAAuG,qBAAA,GAAGpB,QAAQ,CAAC9E,OAAO,CAACL,IAAI,cAAAuG,qBAAA,cAAAA,qBAAA,GAAI,EAAoC;IACpEC,KAAK,EAAErB,QAAQ,CAACsB,QAAQ;GAC3B;AACL;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"columns.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/columns.ts"],"sourcesContent":["import { ColumnDef as ReactTableColumnDef, GroupColumnDef as ReactTableGroupColumnDef } from '@tanstack/react-table';\nimport { isDate } from 'date-fns';\nimport { FontSize, FontSizes } from '../../../../types';\nimport { format, parseFromISOString } from '../../../../utils/date';\nimport { TableColumnDataType } from '../../types';\n\nexport function isInternalColumn(id: string | undefined) {\n return id?.startsWith('__');\n}\n\n// column widths\nexport const getCellMinWidth = (fontSize: FontSize = 'medium') => {\n switch (fontSize) {\n case FontSizes.small:\n return 57;\n\n case FontSizes.large:\n return 83;\n\n default:\n case FontSizes.medium:\n return 72;\n }\n};\n\n// highlighting\nexport function isCellHighlighted(query: string, value: unknown, dataType?: TableColumnDataType) {\n if (value === undefined || value === null) {\n return false;\n }\n\n return String(getCellValueAsString(value, dataType)).toLocaleLowerCase().includes(query.toLocaleLowerCase());\n}\n\nexport function getCellValueAsString(value: unknown, dataType?: TableColumnDataType): string {\n if (value === undefined || value === null) {\n return '';\n } else if (isDate(value)) {\n return format(value as Date) ?? '';\n } else if (dataType === 'datetime' && typeof value === 'string') {\n return format(parseFromISOString(value as string)) ?? '';\n }\n\n return String(value);\n}\n\nfunction orderColumn<TType = unknown>(\n column: ReactTableColumnDef<TType>,\n { orderingDisabled, orderingEnabled }: { orderingDisabled: string[]; orderingEnabled: string[] }\n) {\n const groupedColumn = column as ReactTableGroupColumnDef<TType>;\n\n if (Array.isArray(groupedColumn.columns) && groupedColumn.columns.length > 0) {\n groupedColumn.columns.forEach((subcolumn: ReactTableColumnDef<TType>) =>\n orderColumn(subcolumn, { orderingDisabled, orderingEnabled })\n );\n } else {\n if (column.meta?.enableOrdering) {\n orderingEnabled.push(column.id as string);\n } else {\n orderingDisabled.push(column.id as string);\n }\n }\n}\n\n// ordering\nexport function ensureOrdering<TType = unknown>(\n columns: ReactTableColumnDef<TType>[],\n settingsOrder: string[] | undefined,\n internalColumnsPinnedToTheRight: string[] = ['__actions']\n): string[] {\n // internal columns come with a defined order\n const internalColumns = columns\n .filter(column => isInternalColumn(column.id) && !internalColumnsPinnedToTheRight.includes(String(column.id)))\n .map(column => column.id) as string[];\n\n // columns with ordering disabled should be moved to the front\n const orderingDisabled: string[] = [];\n let orderingEnabled: string[] = [];\n\n let orderedColumns = columns;\n\n // if settings is defined, make sure the columns that are actual children are sorted by it\n if (Array.isArray(settingsOrder)) {\n orderedColumns = columns.slice().sort(\n // the magic >>> 0 here ensures that columns that aren't found in settings, but are children, are pushed to the end\n (a, b) => (settingsOrder.indexOf(a.id as string) >>> 0) - (settingsOrder.indexOf(b.id as string) >>> 0)\n );\n }\n\n orderedColumns.forEach(column => {\n if (isInternalColumn(column.id)) {\n return;\n }\n\n orderColumn(column, { orderingDisabled, orderingEnabled });\n });\n\n if (settingsOrder && settingsOrder.length > 0) {\n orderingEnabled = orderingEnabled\n .reduce((acc, column) => {\n const index = settingsOrder.indexOf(column);\n if (index > -1) {\n acc[index] = column;\n }\n\n return acc;\n }, [] as string[])\n .filter(column => !!column);\n }\n\n const order = [...internalColumns, ...orderingDisabled, ...orderingEnabled];\n\n // actions should always be last, enforce that\n internalColumnsPinnedToTheRight.forEach(id => {\n if (columns.findIndex(column => column.id === id) > -1) {\n order.push(id);\n }\n });\n\n return order;\n}\n\n// freezing - we use the react-table pinning state, but that requires some mapping between them\nexport function unfreezeAllExternalColumns(leftPinnedState?: string[]): string[] {\n return leftPinnedState?.filter(id => isInternalColumn(id) && id !== '__actions') ?? [];\n}\n\nexport function freezeUptoExternalColumn(index: number, columns: string[]): string[] {\n return columns.slice(0, index + 1);\n}\n"],"names":["isInternalColumn","id","startsWith","getCellMinWidth","fontSize","FontSizes","small","large","medium","isCellHighlighted","query","value","dataType","undefined","String","getCellValueAsString","toLocaleLowerCase","includes","isDate","_format","format","_format2","parseFromISOString","orderColumn","column","orderingDisabled","orderingEnabled","groupedColumn","Array","isArray","columns","length","forEach","subcolumn","_column$meta","meta","enableOrdering","push","ensureOrdering","settingsOrder","internalColumnsPinnedToTheRight","internalColumns","filter","map","orderedColumns","slice","sort","a","b","indexOf","reduce","acc","index","order","findIndex","unfreezeAllExternalColumns","leftPinnedState","_leftPinnedState$filt","freezeUptoExternalColumn"],"mappings":";;;;SAMgBA,gBAAgBA,CAACC,EAAsB;EACnD,OAAOA,EAAE,aAAFA,EAAE,uBAAFA,EAAE,CAAEC,UAAU,CAAC,IAAI,CAAC;AAC/B;AAEA;MACaC,eAAe,GAAGA,CAACC,WAAqB,QAAQ;EACzD,QAAQA,QAAQ;IACZ,KAAKC,SAAS,CAACC,KAAK;MAChB,OAAO,EAAE;IAEb,KAAKD,SAAS,CAACE,KAAK;MAChB,OAAO,EAAE;IAEb;IACA,KAAKF,SAAS,CAACG,MAAM;MACjB,OAAO,EAAE;;AAErB;AAEA;SACgBC,iBAAiBA,CAACC,KAAa,EAAEC,KAAc,EAAEC,QAA8B;EAC3F,IAAID,KAAK,KAAKE,SAAS,IAAIF,KAAK,KAAK,IAAI,EAAE;IACvC,OAAO,KAAK;;EAGhB,OAAOG,MAAM,CAACC,oBAAoB,CAACJ,KAAK,EAAEC,QAAQ,CAAC,CAAC,CAACI,iBAAiB,EAAE,CAACC,QAAQ,CAACP,KAAK,CAACM,iBAAiB,EAAE,CAAC;AAChH;SAEgBD,oBAAoBA,CAACJ,KAAc,EAAEC,QAA8B;EAC/E,IAAID,KAAK,KAAKE,SAAS,IAAIF,KAAK,KAAK,IAAI,EAAE;IACvC,OAAO,EAAE;GACZ,MAAM,IAAIO,MAAM,CAACP,KAAK,CAAC,EAAE;IAAA,IAAAQ,OAAA;IACtB,QAAAA,OAAA,GAAOC,MAAM,CAACT,KAAa,CAAC,cAAAQ,OAAA,cAAAA,OAAA,GAAI,EAAE;GACrC,MAAM,IAAIP,QAAQ,KAAK,UAAU,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IAAA,IAAAU,QAAA;IAC7D,QAAAA,QAAA,GAAOD,MAAM,CAACE,kBAAkB,CAACX,KAAe,CAAC,CAAC,cAAAU,QAAA,cAAAA,QAAA,GAAI,EAAE;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AACzC,EAAE,IAAID,gBAAgB,CAACC,EAAE,CAAC,IAAIA,EAAE,KAAK,WAAW,CAAC,cAAAwD,qBAAA,cAAAA,qBAAA,GAAI,EAAE;AAC1F;SAEgBC,wBAAwBA,CAACN,KAAa,EAAEtB,OAAiB;EACrE,OAAOA,OAAO,CAACe,KAAK,CAAC,CAAC,EAAEO,KAAK,GAAG,CAAC,CAAC;AACtC;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filtering.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/filtering.ts"],"sourcesContent":["import { Row as ReactTableRow } from '@tanstack/react-table';\nimport { isDate, isAfter as isAfterDate, isBefore as isBeforeDate, isEqual as isEqualDate } from 'date-fns';\nimport { isWeakEqual as isWeakEqualDate } from '../../../../utils/date';\nimport { TableFilterValue, TableFilterComparator } from '../../types';\nimport { getCellValueAsString } from './columns';\n\nexport const toLowerCase = (value: string | number) => String(value ?? '').toLocaleLowerCase();\nexport const isWeakContains = (left: string | number, right: string | number) => toLowerCase(left).includes(toLowerCase(right));\nexport const isWeakEqual = (left: string | number, right: string | number) => toLowerCase(left) === toLowerCase(right);\n\n// the filter type is only settable on the column definition, which would re-render all columns.\n// so instead we store it in the filter value, but that means we also have to destructure that\n// before we filter - that's why this custom filter function exists\nexport function columnFilterFn(value: any, filter: TableFilterValue) {\n try {\n if (filter.comparator === TableFilterComparator.IsEmpty || filter.comparator === TableFilterComparator.IsNotEmpty) {\n const isEmpty = value === undefined || value === null || value === '';\n return filter.comparator === TableFilterComparator.IsEmpty ? isEmpty : !isEmpty;\n }\n\n if (filter.value === undefined || filter.value === null || filter.value === '') {\n return true;\n }\n\n switch (filter.comparator) {\n case TableFilterComparator.Contains:\n return isWeakContains(value, filter.value);\n\n case TableFilterComparator.DoesNotContain:\n return !isWeakContains(value, filter.value);\n\n case TableFilterComparator.IsEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && isWeakEqualDate(value, filter.value);\n } else if (typeof filter.value === 'boolean') {\n return value === filter.value;\n }\n\n return isWeakEqual(value, filter.value);\n }\n\n case TableFilterComparator.IsNotEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && isWeakEqualDate(value, filter.value) === false;\n } else if (typeof filter.value === 'boolean') {\n return value !== filter.value;\n }\n\n return !isWeakEqual(value, filter.value);\n }\n\n case TableFilterComparator.IsGreaterThan: {\n if (isDate(value)) {\n return isDate(filter.value) && isAfterDate(value, filter.value);\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber > filter.value;\n }\n }\n\n case TableFilterComparator.IsLessThan: {\n if (isDate(value)) {\n return isDate(filter.value) && isBeforeDate(value, filter.value);\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber < filter.value;\n }\n }\n\n case TableFilterComparator.IsLessThanOrEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && (isBeforeDate(value, filter.value) || isEqualDate(value, filter.value));\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber <= filter.value;\n }\n }\n\n case TableFilterComparator.IsGreaterThanOrEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && (isAfterDate(value, filter.value) || isEqualDate(value, filter.value));\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber >= filter.value;\n }\n }\n\n case TableFilterComparator.IsBetween: {\n const [fromValue, toValue] = filter.value;\n\n if (isDate(value)) {\n if (isDate(fromValue) && isBeforeDate(value, fromValue)) {\n return false;\n } else if (isDate(toValue) && isAfterDate(value, toValue)) {\n return false;\n }\n\n return true;\n } else {\n const valueAsNumber = parseInt(value);\n\n if (isNaN(valueAsNumber)) {\n return false;\n }\n\n if (fromValue !== undefined && valueAsNumber < fromValue) {\n return false;\n } else if (toValue !== undefined && valueAsNumber > toValue) {\n return false;\n }\n\n return true;\n }\n }\n\n case TableFilterComparator.HasAnyOf:\n return Array.isArray(filter.value) && Array.isArray(value)\n ? filter.value.some(item => value.includes(item))\n : false;\n\n case TableFilterComparator.HasNoneOf:\n return Array.isArray(filter.value) && Array.isArray(value)\n ? filter.value.every(item => value.includes(item) === false)\n : false;\n\n case TableFilterComparator.HasAllOf:\n return Array.isArray(filter.value) && Array.isArray(value)\n ? filter.value.filter(v => value.includes(v)).length === filter.value.length\n : false;\n }\n\n return false;\n } catch (e) {\n console.error(e);\n return true;\n }\n}\n\nexport function globalFilterFn<TType = unknown>(row: ReactTableRow<TType>, columnId: string, searchQuery: string) {\n try {\n if (row.original) {\n const dataType = row._getAllCellsByColumnId()[columnId]?.column.columnDef.meta?.dataType;\n const cellValue = getCellValueAsString(row.original[columnId], dataType);\n return isWeakContains(cellValue, searchQuery);\n }\n } catch {\n // we don't care, just fail silently and return no results\n }\n\n return false;\n}\n"],"names":["toLowerCase","value","String","toLocaleLowerCase","isWeakContains","left","right","includes","isWeakEqual","columnFilterFn","filter","comparator","TableFilterComparator","IsEmpty","IsNotEmpty","isEmpty","undefined","Contains","DoesNotContain","IsEqualTo","isDate","isWeakEqualDate","IsNotEqualTo","IsGreaterThan","isAfterDate","valueAsNumber","parseInt","isNaN","IsLessThan","isBeforeDate","IsLessThanOrEqualTo","isEqualDate","IsGreaterThanOrEqualTo","IsBetween","fromValue","toValue","HasAnyOf","Array","isArray","some","item","HasNoneOf","every","HasAllOf","v","length","e","console","error","globalFilterFn","row","columnId","searchQuery","original","_row$_getAllCellsByCo","_row$_getAllCellsByCo2","dataType","_getAllCellsByColumnId","column","columnDef","meta","cellValue","getCellValueAsString"],"mappings":";;;;;MAMaA,WAAW,GAAIC,KAAsB,IAAKC,MAAM,CAACD,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE,CAAC,CAACE,iBAAiB;MAC/EC,cAAc,GAAGA,CAACC,IAAqB,EAAEC,KAAsB,KAAKN,WAAW,CAACK,IAAI,CAAC,CAACE,Q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