@economic/taco 2.25.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 +5 -6
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +46 -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/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/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/{components/Report → primitives/Table/Core}/components/Body/Body.js +22 -12
- 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/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/DisplayCell.js +6 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/GroupedCell.js +8 -6
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.js +6 -5
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.js +5 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.js +28 -17
- 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/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Expansion.js +18 -6
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Selection.js +23 -10
- 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/{components/Report → primitives/Table/Core}/components/Footer/Summary.js +6 -6
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/Header.js +12 -7
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Goto.js +5 -5
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Menu.js +15 -16
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.js +3 -3
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/util.js +4 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/DisplayRow.js +30 -12
- 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/{components/Report → primitives/Table/Core}/components/Row/Row.js +13 -7
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/RowContext.js +0 -1
- 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/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.js +9 -9
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.js +9 -9
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.js +4 -4
- 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/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.js +7 -7
- 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/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.js +17 -17
- 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/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.js +7 -7
- 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.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.js +11 -11
- 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/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.js +7 -6
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.js +27 -13
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.js +17 -17
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/styles/util.js → primitives/Table/Core/features/useStylesheet.js} +18 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/styles/useColumnPinningStylesheet.js → primitives/Table/Core/features/useStylesheetColumnFreezing.js} +12 -12
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/styles/useCssGridStylesheet.js → primitives/Table/Core/features/useStylesheetCssGrid.js} +9 -9
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.js +3 -5
- 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/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.js +5 -3
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
- package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.js +1 -1
- 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/useTableRowActive.js +4 -14
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
- 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/listeners/useTableSettingsListener.js +1 -3
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +13 -9
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +13 -7
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +1 -2
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
- 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/{components → packages/taco/src/components}/Provider/Localization.d.ts +45 -39
- 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/{components → packages/taco/src/components}/Table/Table.d.ts +2 -2
- 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/{index.d.ts → packages/taco/src/index.d.ts} +1 -0
- package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +19 -0
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/Body.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/EmptyStateBody.d.ts +2 -2
- 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/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/Cell.d.ts +4 -2
- package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/util.d.ts +2 -1
- package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Internal/Actions.d.ts +4 -4
- 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/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/Header.d.ts +7 -2
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Goto.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Menu.d.ts +2 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Resizer.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/SortIndicator.d.ts +1 -1
- 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/{components/Report → packages/taco/src/primitives/Table/Core}/components/Row/RowContext.d.ts +0 -1
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.d.ts +2 -2
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/util.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/Print.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/PrintDialog.d.ts +2 -2
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
- package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/Settings.d.ts +2 -2
- package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
- package/dist/{components/Report/styles/useCssGridStylesheet.d.ts → packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts} +2 -2
- package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableGlobalShortcuts.d.ts +1 -1
- package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableRenderer.d.ts +3 -2
- 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/{primitives → packages/taco/src/primitives}/Table/types.d.ts +166 -1
- package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActive.d.ts +4 -2
- 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/{primitives → packages/taco/src/primitives}/Table/useTableManager/types.d.ts +1 -0
- package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/useTableManager.d.ts +9 -3
- package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/settings.d.ts +1 -1
- package/dist/{utils → packages/taco/src/utils}/dom.d.ts +2 -1
- package/dist/taco.cjs.development.js +6999 -11640
- 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 +21580 -51743
- package/dist/components/Report/Report.d.ts +0 -23
- 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/Header/util.d.ts +0 -4
- 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/Toolbar/Toolbar.d.ts +0 -15
- package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
- 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/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 -379
- 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.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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.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.map +0 -1
- 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/useTableManager/features/useTableRef.js.map +0 -1
- /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/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{useTableManager → Core}/features/useTableRef.js +0 -0
- /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.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/Select2.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/BaseTable.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/hooks/useRowCreation.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/hooks/useTable.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/hooks/useTableKeyboardNavigation.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/types.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}/Table/util/sortTypes.d.ts +0 -0
- /package/dist/{components → packages/taco/src/components}/Table/util.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/useTableManager → 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 → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnFreezing.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnOrdering.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFontSize.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFooter.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTablePrinting.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActions.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowClick.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowExpansion.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGoto.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGroups.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowHeight.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowSelection.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSearch.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableServerLoading.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSettings.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableDataListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFilterListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFontSizeListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowHeightListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowSelectionListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSearchListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableServerLoadingListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSettingsListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableShortcutsListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSortingListener.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.spec.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/filtering.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/presets.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/search.d.ts +0 -0
- /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/setup.d.ts +0 -0
- /package/dist/{primitives → 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
CHANGED
@@ -2,22 +2,16 @@ import React__default from 'react';
|
|
2
2
|
import { isElementInsideOrTriggeredFromContainer } from '../../../../utils/dom.js';
|
3
3
|
import { useIsHoverStatePaused } from '../../../../hooks/useIsHoverStatePaused.js';
|
4
4
|
|
5
|
-
function focusFirstElementInActiveRow(tableRef) {
|
6
|
-
const selector = '[data-taco="table2-body"] [role="row"] [role="cell"]:first-child';
|
7
|
-
setTimeout(() => {
|
8
|
-
var _tableRef$current, _tableRef$current$que;
|
9
|
-
(_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : (_tableRef$current$que = _tableRef$current.querySelector(selector)) === null || _tableRef$current$que === void 0 ? void 0 : _tableRef$current$que.focus();
|
10
|
-
}, 1);
|
11
|
-
}
|
12
5
|
function useTableRowActive(isEnabled = false, initialRowActiveIndex) {
|
13
6
|
const [rowActiveIndex, setRowActiveIndex] = React__default.useState(initialRowActiveIndex);
|
7
|
+
const [rowHoverIndex, setRowHoverIndex] = React__default.useState(undefined);
|
14
8
|
const [isHoverStatePaused, setHoverStatePaused] = useIsHoverStatePaused();
|
15
9
|
const move = (direction, length, scrollToIndex) => setRowActiveIndex(currentIndex => {
|
16
10
|
const nextIndex = currentIndex !== undefined ? getNextIndex(direction, currentIndex, length) : 0;
|
17
11
|
setTimeout(() => scrollToIndex(nextIndex), 1);
|
18
12
|
return nextIndex;
|
19
13
|
});
|
20
|
-
const onKeyDown = React__default.useCallback((event, length, scrollToIndex
|
14
|
+
const onKeyDown = React__default.useCallback((event, length, scrollToIndex) => {
|
21
15
|
if (!isEnabled || event.defaultPrevented) {
|
22
16
|
return;
|
23
17
|
}
|
@@ -33,9 +27,6 @@ function useTableRowActive(isEnabled = false, initialRowActiveIndex) {
|
|
33
27
|
} else {
|
34
28
|
move(-1, length, scrollToIndex);
|
35
29
|
}
|
36
|
-
if (tableRef) {
|
37
|
-
focusFirstElementInActiveRow(tableRef);
|
38
|
-
}
|
39
30
|
return;
|
40
31
|
} else if (event.key === 'ArrowDown') {
|
41
32
|
event.preventDefault();
|
@@ -46,9 +37,6 @@ function useTableRowActive(isEnabled = false, initialRowActiveIndex) {
|
|
46
37
|
} else {
|
47
38
|
move(+1, length, scrollToIndex);
|
48
39
|
}
|
49
|
-
if (tableRef) {
|
50
|
-
focusFirstElementInActiveRow(tableRef);
|
51
|
-
}
|
52
40
|
return;
|
53
41
|
}
|
54
42
|
}, [isEnabled]);
|
@@ -73,6 +61,8 @@ function useTableRowActive(isEnabled = false, initialRowActiveIndex) {
|
|
73
61
|
isEnabled,
|
74
62
|
rowActiveIndex,
|
75
63
|
setRowActiveIndex: isEnabled ? setRowActiveIndex : () => undefined,
|
64
|
+
rowHoverIndex,
|
65
|
+
setRowHoverIndex,
|
76
66
|
isHoverStatePaused,
|
77
67
|
setHoverStatePaused: isEnabled ? setHoverStatePaused : () => undefined,
|
78
68
|
handleFocus: isEnabled ? onFocus : () => undefined,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useTableRowActive.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableRowActive.ts"],"sourcesContent":["import React from 'react';\nimport {
|
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,EAAEC,iBAAiB,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAqBJ,qBAAqB,CAAC;EACrG,MAAM,CAACK,aAAa,EAAEC,gBAAgB,CAAC,GAAGH,cAAK,CAACC,QAAQ,CAAqBG,SAAS,CAAC;EACvF,MAAM,CAACC,kBAAkB,EAAEC,mBAAmB,CAAC,GAAGC,qBAAqB,EAAE;EAEzE,MAAMC,IAAI,GAAGA,CAACC,SAAiB,EAAEC,MAAc,EAAEC,aAAwC,KACrFZ,iBAAiB,CAACa,YAAY;IAC1B,MAAMC,SAAS,GAAGD,YAAY,KAAKR,SAAS,GAAGU,YAAY,CAACL,SAAS,EAAEG,YAAY,EAAEF,MAAM,CAAC,GAAG,CAAC;IAChGK,UAAU,CAAC,MAAMJ,aAAa,CAACE,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7C,OAAOA,SAAS;GACnB,CAAC;EAEN,MAAMG,SAAS,GAAGhB,cAAK,CAACiB,WAAW,CAC/B,CAACC,KAAoB,EAAER,MAAc,EAAEC,aAAwC;IAC3E,IAAI,CAACf,SAAS,IAAIsB,KAAK,CAACC,gBAAgB,EAAE;MACtC;;IAGJ,IAAID,KAAK,CAACE,GAAG,KAAK,SAAS,IAAIF,KAAK,CAACE,GAAG,KAAK,WAAW,EAAE;MACtDd,mBAAmB,CAAC,IAAI,CAAC;;IAG7B,IAAIY,KAAK,CAACE,GAAG,KAAK,SAAS,EAAE;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;;QAEZ,OAAOoB,KAAK;OACf,CAAC;;GAET,EACD,CAACjC,cAAc,EAAEY,MAAM,EAAEd,SAAS,CAAC,CACtC;EAED,OAAO;IACHA,SAAS;IACTE,cAAc;IACdC,iBAAiB,EAAEH,SAAS,GAAGG,iBAAiB,GAAG,MAAMK,SAAS;IAClEF,aAAa;IACbC,gBAAgB;IAChBE,kBAAkB;IAClBC,mBAAmB,EAAEV,SAAS,GAAGU,mBAAmB,GAAG,MAAMF,SAAS;IACtE4B,WAAW,EAAEpC,SAAS,GAAG6B,OAAO,GAAG,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/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;;;;"}
|
@@ -15,9 +15,7 @@ function useTableSettingsListener(table, onChangeSettings) {
|
|
15
15
|
return () => clearTimeout(handler);
|
16
16
|
}, [
|
17
17
|
//state.columnFilters,
|
18
|
-
state.columnOrder, state.columnPinning, state.columnSizing, state.columnVisibility,
|
19
|
-
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
20
|
-
meta.search.excludeUnmatchedResults, meta.fontSize.size, state.grouping, meta.rowHeight.height,
|
18
|
+
state.columnOrder, state.columnPinning, state.columnSizing, state.columnVisibility, table.options.enableGlobalFilter, meta.fontSize.size, state.grouping, meta.rowHeight.height,
|
21
19
|
//state.globalFilter,
|
22
20
|
state.sorting]);
|
23
21
|
}
|
@@ -1 +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
|
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;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { useReactTable } from '@tanstack/react-table';
|
1
|
+
import { useReactTable, getCoreRowModel } from '@tanstack/react-table';
|
2
2
|
import { mapTableChildrenToColumns, useReactTableInitialState, configureReactTableOptions } from './util/setup.js';
|
3
3
|
import { useTableFeaturePreset } from './util/presets.js';
|
4
4
|
import { useTableColumnFreezing } from './features/useTableColumnFreezing.js';
|
@@ -27,9 +27,10 @@ import { useTableSettingsListener } from './listeners/useTableSettingsListener.j
|
|
27
27
|
import { useTableShortcutsListener } from './listeners/useTableShortcutsListener.js';
|
28
28
|
import { useTableSortingListener } from './listeners/useTableSortingListener.js';
|
29
29
|
import { useTableServerLoadingListener } from './listeners/useTableServerLoadingListener.js';
|
30
|
-
import {
|
30
|
+
import { useTableRowDrag } from './features/useTableRowDrag.js';
|
31
|
+
import { useTableRowDrop } from './features/useTableRowDrop.js';
|
31
32
|
|
32
|
-
function useTableManager(props,
|
33
|
+
function useTableManager(props, meta, internalColumns) {
|
33
34
|
var _props$data, _props$length, _instance$options$met;
|
34
35
|
// CSS.escape would be best here, but it doesn't seem to work very well
|
35
36
|
const safeId = props.id.replace('.', '_');
|
@@ -46,6 +47,8 @@ function useTableManager(props, ref, meta, internalColumns) {
|
|
46
47
|
const rowActive = useTableRowActive(options.enableRowActive, props.defaultRowActiveIndex);
|
47
48
|
const rowActions = useTableRowActions(options.enableRowActions, props.rowActions, props.rowActionsLength);
|
48
49
|
const rowClick = useTableRowClick(options.enableRowClick, props.onRowClick);
|
50
|
+
const rowDrag = useTableRowDrag(options.enableRowDrag, props.onRowDrag);
|
51
|
+
const rowDrop = useTableRowDrop(options.enableRowDrop, props.onRowDrop);
|
49
52
|
const rowExpansion = useTableRowExpansion(options.enableRowExpansion, props.rowExpansionRenderer);
|
50
53
|
const rowGoto = useTableRowGoto(options.enableRowGoto, props.onRowGoto);
|
51
54
|
const rowGroups = useTableRowGroups(props.rowActionsForGroup);
|
@@ -65,12 +68,12 @@ function useTableManager(props, ref, meta, internalColumns) {
|
|
65
68
|
const data = (_props$data = props.data) !== null && _props$data !== void 0 ? _props$data : [];
|
66
69
|
const length = (_props$length = props.length) !== null && _props$length !== void 0 ? _props$length : data.length;
|
67
70
|
// create a react-table instance
|
68
|
-
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
69
71
|
const instance = useReactTable({
|
70
72
|
data,
|
71
73
|
columns,
|
72
74
|
// configure initial table state
|
73
75
|
initialState,
|
76
|
+
getCoreRowModel: getCoreRowModel(),
|
74
77
|
// configure react-table built-in features
|
75
78
|
...configureReactTableOptions(options, props),
|
76
79
|
// settings that can be toggled by the user, and therefore require our own state
|
@@ -85,12 +88,15 @@ function useTableManager(props, ref, meta, internalColumns) {
|
|
85
88
|
footer,
|
86
89
|
length,
|
87
90
|
printing,
|
88
|
-
rowActions,
|
91
|
+
rowActions: rowActions,
|
89
92
|
rowActive,
|
90
93
|
rowClick: rowClick,
|
91
|
-
|
94
|
+
rowDrag,
|
95
|
+
rowDrop: rowDrop,
|
96
|
+
rowExpansion: rowExpansion,
|
97
|
+
rowIdentityColumnId: props.rowIdentityColumnId,
|
92
98
|
rowGoto,
|
93
|
-
rowGroups,
|
99
|
+
rowGroups: rowGroups,
|
94
100
|
rowHeight,
|
95
101
|
rowSelection,
|
96
102
|
search,
|
@@ -108,8 +114,6 @@ function useTableManager(props, ref, meta, internalColumns) {
|
|
108
114
|
useTableSettingsListener(instance, setSettings);
|
109
115
|
useTableShortcutsListener(instance, props.shortcuts);
|
110
116
|
useTableSortingListener(instance, props.onChangeSort);
|
111
|
-
// configure ref with reset functions
|
112
|
-
useTableRef(instance, ref);
|
113
117
|
return {
|
114
118
|
id: safeId,
|
115
119
|
instance,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useTableManager.js","sources":["../../../../../../../../src/primitives/Table/useTableManager/useTableManager.ts"],"sourcesContent":["import { useReactTable, TableMeta as ReactTableMeta, RowData } from '@tanstack/react-table';\nimport {\n TableColumnAlignment,\n TableColumnClassNameHandler,\n TableColumnDataType,\n TableColumnMenu,\n TableColumnRendererControl,\n TableFilterComparator,\n TableRef,\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 { useTableRef } from './features/useTableRef';\nimport { useTableManagerInternalColumns } from './types';\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 rowExpansion: ReturnType<typeof useTableRowExpansion>;\n rowGoto: ReturnType<typeof useTableRowGoto>;\n rowGroups: ReturnType<typeof useTableRowGroups>;\n rowHeight: ReturnType<typeof useTableRowHeight>;\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 enableOrdering?: boolean;\n enablePrinting?: 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 ref: React.RefObject<TableRef>,\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 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 // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const instance = useReactTable<TType>({\n data,\n columns,\n // configure initial table state\n initialState,\n // configure react-table built-in features\n ...configureReactTableOptions(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,\n rowActive,\n rowClick: rowClick as any,\n rowExpansion,\n rowGoto,\n rowGroups,\n rowHeight,\n rowSelection,\n search,\n server,\n },\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 // configure ref with reset functions\n useTableRef(instance, ref);\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","ref","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","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","configureReactTableOptions","enableGlobalFilter","useTableDataListener","useTableFilterListener","onChangeFilter","useTableFontSizeListener","useTableRowHeightListener","useTableRowSelectionListener","onRowSelect","useTableSearchListener","useTableServerLoadingListener","useTableSettingsListener","useTableShortcutsListener","shortcuts","useTableSortingListener","onChangeSort","useTableRef","_instance$options$met","state","getState"],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GA,IAAI;MACPa,cAAc;MACdG,cAAc;MACdG,QAAQ;MACRG,MAAM;MACNmD,MAAM;MACNhD,QAAQ;MACRO,UAAU;MACVJ,SAAS;MACTQ,QAAQ,EAAEA,QAAe;MACzBI,YAAY;MACZI,OAAO;MACPI,SAAS;MACTG,SAAS;MACTG,YAAY;MACZG,MAAM;MACNI;;GAEP,CAAC;;EAGFkB,oBAAoB,CAACJ,QAAQ,CAAC;EAC9BK,sBAAsB,CAACL,QAAQ,EAAE7E,KAAK,CAACmF,cAAc,CAAC;EACtDC,wBAAwB,CAACP,QAAQ,CAAC;EAClCQ,yBAAyB,CAACR,QAAQ,CAAC;EACnCS,4BAA4B,CAACT,QAAQ,EAAE7E,KAAK,CAACuF,WAAW,CAAC;EACzDC,sBAAsB,CAACX,QAAQ,CAAC;EAChCY,6BAA6B,CAACZ,QAAQ,EAAEd,MAAM,CAACE,QAAQ,CAAC;EACxDyB,wBAAwB,CAACb,QAAQ,EAAEnE,WAAW,CAAC;EAC/CiF,yBAAyB,CAACd,QAAQ,EAAE7E,KAAK,CAAC4F,SAAS,CAAC;EACpDC,uBAAuB,CAAChB,QAAQ,EAAE7E,KAAK,CAAC8F,YAAY,CAAC;;EAGrDC,WAAW,CAAClB,QAAQ,EAAE5E,GAAG,CAAC;EAE1B,OAAO;IACHI,EAAE,EAAED,MAAM;IACVyE,QAAQ;IACR3E,IAAI,GAAA8F,qBAAA,GAAGnB,QAAQ,CAACtE,OAAO,CAACL,IAAI,cAAA8F,qBAAA,cAAAA,qBAAA,GAAI,EAAoC;IACpEC,KAAK,EAAEpB,QAAQ,CAACqB,QAAQ;GAC3B;AACL;;;;"}
|
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,MAAMC,OAAO,GAAGC,qBAAqB,CAACP,KAAK,CAAC;;EAG5C,MAAM,CAACQ,QAAQ,EAAEC,WAAW,CAAC,GAAGC,gBAAgB,CAC5CJ,OAAO,CAACK,kBAAkB,EAC1BR,MAAM,EACNH,KAAK,CAACY,eAAe,EACrBZ,KAAK,CAACa,gBAAgB,CACzB;;EAGD,MAAMC,cAAc,GAAGC,sBAAsB,CAACT,OAAO,CAACU,oBAAoB,CAAC;EAC3E,MAAMC,cAAc,GAAGC,sBAAsB,CAACZ,OAAO,CAACa,oBAAoB,CAAC;EAC3E,MAAMC,QAAQ,GAAGC,gBAAgB,CAACf,OAAO,CAACgB,cAAc,EAAEd,QAAQ,CAACY,QAAQ,CAAC;EAC5E,MAAMG,MAAM,GAAGC,cAAc,CAAClB,OAAO,CAACmB,YAAY,CAAC;EACnD,MAAMC,QAAQ,GAAGC,gBAAgB,CAACrB,OAAO,CAACsB,cAAc,EAAEzB,MAAM,CAAC;EACjE,MAAM0B,SAAS,GA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;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;;;;"}
|
@@ -17,8 +17,10 @@ const DEFAULT_PRESET = {
|
|
17
17
|
enableFooter: false,
|
18
18
|
enablePrinting: false,
|
19
19
|
enableRowActive: true,
|
20
|
-
enableRowActions:
|
20
|
+
enableRowActions: true,
|
21
21
|
enableRowClick: false,
|
22
|
+
enableRowDrag: false,
|
23
|
+
enableRowDrop: false,
|
22
24
|
enableRowGoto: false,
|
23
25
|
enableRowHeight: false,
|
24
26
|
enableSaveSettings: false
|
@@ -43,6 +45,8 @@ const presets = {
|
|
43
45
|
enableRowActive: true,
|
44
46
|
enableRowActions: true,
|
45
47
|
enableRowClick: true,
|
48
|
+
enableRowDrag: true,
|
49
|
+
enableRowDrop: true,
|
46
50
|
enableRowGoto: true,
|
47
51
|
enableRowHeight: false,
|
48
52
|
enableSaveSettings: true
|
@@ -66,26 +70,26 @@ const presets = {
|
|
66
70
|
enableRowActive: true,
|
67
71
|
enableRowActions: true,
|
68
72
|
enableRowClick: true,
|
73
|
+
enableRowDrag: true,
|
74
|
+
enableRowDrop: true,
|
69
75
|
enableRowGoto: true,
|
70
76
|
enableRowHeight: true,
|
71
77
|
enableSaveSettings: true
|
72
78
|
}
|
73
79
|
};
|
74
80
|
function useTableFeaturePreset(props) {
|
75
|
-
var _props$enableRowActio, _props$enableRowClick, _props$enableRowGoto, _props$enableRowExpan, _props$enableRowSelec, _props$enableRowSelec2, _props$enableFilterin, _props$enableSearch, _props$enableSorting, _props$enableColumnFr, _props$enableColumnHi, _props$enableColumnRe, _props$enableColumnOr, _props$enableFontSize, _props$enableFooter, _props$enablePrinting, _props$enableRowActiv, _props$
|
81
|
+
var _props$enableRowActio, _props$enableRowClick, _props$enableRowDrag, _props$enableRowDrop, _props$enableRowGoto, _props$enableRowExpan, _props$enableRowSelec, _props$enableRowSelec2, _props$enableFilterin, _props$enableSearch, _props$enableSorting, _props$enableColumnFr, _props$enableColumnHi, _props$enableColumnRe, _props$enableColumnOr, _props$enableFontSize, _props$enableFooter, _props$enablePrinting, _props$enableRowActiv, _props$rowActions, _props$enableRowHeigh, _props$enableSaveSett;
|
76
82
|
const presetOptions = props.preset ? presets[props.preset] : DEFAULT_PRESET;
|
77
83
|
const enableRowActions = (_props$enableRowActio = props.enableRowActions) !== null && _props$enableRowActio !== void 0 ? _props$enableRowActio : presetOptions.enableRowActions;
|
78
84
|
const enableRowClick = (_props$enableRowClick = props.enableRowClick) !== null && _props$enableRowClick !== void 0 ? _props$enableRowClick : presetOptions.enableRowClick;
|
85
|
+
const enableRowDrag = (_props$enableRowDrag = props.enableRowDrag) !== null && _props$enableRowDrag !== void 0 ? _props$enableRowDrag : presetOptions.enableRowDrag;
|
86
|
+
const enableRowDrop = (_props$enableRowDrop = props.enableRowDrop) !== null && _props$enableRowDrop !== void 0 ? _props$enableRowDrop : presetOptions.enableRowDrop;
|
79
87
|
const enableRowGoto = (_props$enableRowGoto = props.enableRowGoto) !== null && _props$enableRowGoto !== void 0 ? _props$enableRowGoto : presetOptions.enableRowGoto;
|
80
88
|
const enableRowExpansion = (_props$enableRowExpan = props.enableRowExpansion) !== null && _props$enableRowExpan !== void 0 ? _props$enableRowExpan : presetOptions.enableRowExpansion;
|
81
89
|
const enableRowSelection = (_props$enableRowSelec = props.enableRowSelection) !== null && _props$enableRowSelec !== void 0 ? _props$enableRowSelec : presetOptions.enableRowSelection;
|
82
90
|
const enableRowSelectionSingle = (_props$enableRowSelec2 = props.enableRowSelectionSingle) !== null && _props$enableRowSelec2 !== void 0 ? _props$enableRowSelec2 : presetOptions.enableRowSelectionSingle;
|
83
91
|
// guard options that might be unintentionally broken
|
84
92
|
React__default.useEffect(() => {
|
85
|
-
var _props$rowActions;
|
86
|
-
if (enableRowActions && !((_props$rowActions = props.rowActions) !== null && _props$rowActions !== void 0 && _props$rowActions.length)) {
|
87
|
-
console.warn(`Table (id: ${props.id}) - Row actions is enabled but no \`rowActions\` has been provided. Provide one to enable row actions or set \`enableRowActions\` to \`false\`.`);
|
88
|
-
}
|
89
93
|
if (enableRowClick && !props.onRowClick) {
|
90
94
|
console.warn(`Table (id: ${props.id}) - Row click is enabled but no \`onRowClick\` handler has been provided. Provide one to enable row click or set \`enableRowClick\` to \`false\`.`);
|
91
95
|
}
|
@@ -119,8 +123,10 @@ function useTableFeaturePreset(props) {
|
|
119
123
|
enableFooter: (_props$enableFooter = props.enableFooter) !== null && _props$enableFooter !== void 0 ? _props$enableFooter : presetOptions.enableFooter,
|
120
124
|
enablePrinting: (_props$enablePrinting = props.enablePrinting) !== null && _props$enablePrinting !== void 0 ? _props$enablePrinting : presetOptions.enablePrinting,
|
121
125
|
enableRowActive: (_props$enableRowActiv = props.enableRowActive) !== null && _props$enableRowActiv !== void 0 ? _props$enableRowActiv : presetOptions.enableRowActive,
|
122
|
-
enableRowActions: enableRowActions && !!((_props$
|
126
|
+
enableRowActions: enableRowActions && !!((_props$rowActions = props.rowActions) !== null && _props$rowActions !== void 0 && _props$rowActions.length),
|
123
127
|
enableRowClick: enableRowClick && !!props.onRowClick,
|
128
|
+
enableRowDrag: enableRowDrag && !!props.onRowDrag,
|
129
|
+
enableRowDrop: enableRowDrop && !!props.onRowDrop,
|
124
130
|
enableRowGoto: enableRowGoto && !!props.onRowGoto,
|
125
131
|
enableRowHeight: (_props$enableRowHeigh = props.enableRowHeight) !== null && _props$enableRowHeigh !== void 0 ? _props$enableRowHeigh : presetOptions.enableRowHeight,
|
126
132
|
enableSaveSettings: (_props$enableSaveSett = props.enableSaveSettings) !== null && _props$enableSaveSett !== void 0 ? _props$enableSaveSett : presetOptions.enableSaveSettings
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"presets.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/presets.ts"],"sourcesContent":["import React from 'react';\nimport { TableFeatureProps, TablePreset, TableProps } from '../../types';\n\nconst DEFAULT_PRESET: TableFeatureProps = {\n // react-table built-in\n enableFiltering: false,\n enableSearch: false,\n enableSorting: false,\n enableColumnFreezing: false,\n enableColumnHiding: false,\n enableColumnResizing: false,\n enableRowExpansion: false,\n enableRowSelection: false,\n enableRowSelectionSingle: false,\n\n // custom -- common between all table types\n enableColumnOrdering: false,\n enableFontSize: false,\n enableFooter: false,\n enablePrinting: false,\n enableRowActive: true,\n enableRowActions: false,\n enableRowClick: false,\n enableRowGoto: false,\n enableRowHeight: false,\n enableSaveSettings: false,\n};\n\nconst presets: Record<TablePreset, TableFeatureProps> = {\n lite: {\n // react-table built-in\n enableFiltering: true,\n enableSearch: true,\n enableSorting: true,\n enableColumnFreezing: true,\n enableColumnHiding: false,\n enableColumnResizing: true,\n enableRowExpansion: true,\n enableRowSelection: true,\n enableRowSelectionSingle: false,\n\n // custom -- common between all table types\n enableColumnOrdering: false,\n enableFontSize: false,\n enableFooter: true,\n enablePrinting: false,\n enableRowActive: true,\n enableRowActions: true,\n enableRowClick: true,\n enableRowGoto: true,\n enableRowHeight: false,\n enableSaveSettings: true,\n },\n complex: {\n // react-table built-in\n enableFiltering: true,\n enableSearch: true,\n enableSorting: true,\n enableColumnFreezing: true,\n enableColumnHiding: true,\n enableColumnResizing: true,\n enableRowExpansion: true,\n enableRowSelection: true,\n enableRowSelectionSingle: false,\n\n // custom -- common between all table types\n enableColumnOrdering: true,\n enableFontSize: true,\n enableFooter: true,\n enablePrinting: true,\n enableRowActive: true,\n enableRowActions: true,\n enableRowClick: true,\n enableRowGoto: true,\n enableRowHeight: true,\n enableSaveSettings: true,\n },\n};\n\nexport function useTableFeaturePreset<TType = unknown>(props: TableProps<TType>): TableFeatureProps {\n const presetOptions = props.preset ? presets[props.preset] : DEFAULT_PRESET;\n\n const enableRowActions = props.enableRowActions ?? presetOptions.enableRowActions;\n const enableRowClick = props.enableRowClick ?? presetOptions.enableRowClick;\n const enableRowGoto = props.enableRowGoto ?? presetOptions.enableRowGoto;\n const enableRowExpansion = props.enableRowExpansion ?? presetOptions.enableRowExpansion;\n const enableRowSelection = props.enableRowSelection ?? presetOptions.enableRowSelection;\n const enableRowSelectionSingle = props.enableRowSelectionSingle ?? presetOptions.enableRowSelectionSingle;\n\n // guard options that might be unintentionally broken\n React.useEffect(() => {\n if (enableRowActions && !props.rowActions?.length) {\n console.warn(\n `Table (id: ${props.id}) - Row actions is enabled but no \\`rowActions\\` has been provided. Provide one to enable row actions or set \\`enableRowActions\\` to \\`false\\`.`\n );\n }\n\n if (enableRowClick && !props.onRowClick) {\n console.warn(\n `Table (id: ${props.id}) - Row click is enabled but no \\`onRowClick\\` handler has been provided. Provide one to enable row click or set \\`enableRowClick\\` to \\`false\\`.`\n );\n }\n\n if (enableRowGoto && !props.onRowGoto) {\n console.warn(\n `Table (id: ${props.id}) - Row click is enabled but no \\`onRowGoto\\` handler has been provided. Provide one to enable row goto or set \\`enableRowGoto\\` to \\`false\\`.`\n );\n }\n\n if (enableRowExpansion && !props.rowExpansionRenderer) {\n console.warn(\n `Table (id: ${props.id}) - Row expansion is enabled but no \\`rowExpansionRenderer\\` has been provided. Provide one to enable row expansion or set \\`enableRowExpansion\\` to \\`false\\`.`\n );\n }\n\n if (enableRowSelection && !props.onRowSelect) {\n console.warn(\n `Table (id: ${props.id}) - Row selection is enabled but no \\`onRowSelect\\` handler has been provided. Provide one to enable row selection or set \\`enableRowSelection\\` to \\`false\\`.`\n );\n }\n\n if (enableRowSelectionSingle && !props.onRowSelect) {\n console.warn(\n `Table (id: ${props.id}) - Row selection (single) is enabled but no \\`onRowSelect\\` handler has been provided. Provide one to enable row selection or set \\`enableRowSelectionSingle\\` to \\`false\\`.`\n );\n }\n }, []);\n\n return {\n // react-table built-in\n enableFiltering: props.enableFiltering ?? presetOptions.enableFiltering,\n enableSearch: props.enableSearch ?? presetOptions.enableSearch,\n enableSorting: props.enableSorting ?? presetOptions.enableSorting,\n enableColumnFreezing: props.enableColumnFreezing ?? presetOptions.enableColumnFreezing,\n enableColumnHiding: props.enableColumnHiding ?? presetOptions.enableColumnHiding,\n enableColumnResizing: props.enableColumnResizing ?? presetOptions.enableColumnResizing,\n enableRowExpansion: enableRowExpansion && !!props.rowExpansionRenderer,\n enableRowSelection: enableRowSelection && !!props.onRowSelect,\n enableRowSelectionSingle: enableRowSelectionSingle && !!props.onRowSelect,\n\n // custom -- common between all table types\n enableColumnOrdering: props.enableColumnOrdering ?? presetOptions.enableColumnOrdering,\n enableFontSize: props.enableFontSize ?? presetOptions.enableFontSize,\n enableFooter: props.enableFooter ?? presetOptions.enableFooter,\n enablePrinting: props.enablePrinting ?? presetOptions.enablePrinting,\n enableRowActive: props.enableRowActive ?? presetOptions.enableRowActive,\n enableRowActions: enableRowActions && !!props.rowActions?.length,\n enableRowClick: enableRowClick && !!props.onRowClick,\n enableRowGoto: enableRowGoto && !!props.onRowGoto,\n enableRowHeight: props.enableRowHeight ?? presetOptions.enableRowHeight,\n enableSaveSettings: props.enableSaveSettings ?? presetOptions.enableSaveSettings,\n };\n}\n"],"names":["DEFAULT_PRESET","enableFiltering","enableSearch","enableSorting","enableColumnFreezing","enableColumnHiding","enableColumnResizing","enableRowExpansion","enableRowSelection","enableRowSelectionSingle","enableColumnOrdering","enableFontSize","enableFooter","enablePrinting","enableRowActive","enableRowActions","enableRowClick","enableRowGoto","enableRowHeight","enableSaveSettings","presets","lite","complex","useTableFeaturePreset","props","presetOptions","preset","_props$enableRowActio","_props$enableRowClick","_props$enableRowGoto","_props$enableRowExpan","_props$enableRowSelec","_props$enableRowSelec2","React","useEffect","_props$rowActions","rowActions","length","console","warn","id","onRowClick","onRowGoto","rowExpansionRenderer","onRowSelect","_props$enableFilterin","_props$enableSearch","_props$enableSorting","_props$enableColumnFr","_props$enableColumnHi","_props$enableColumnRe","_props$enableColumnOr","_props$enableFontSize","_props$enableFooter","_props$enablePrinting","_props$enableRowActiv","_props$rowActions2","_props$enableRowHeigh","_props$enableSaveSett"],"mappings":";;AAGA,MAAMA,cAAc,GAAsB;;EAEtCC,eAAe,EAAE,KAAK;EACtBC,YAAY,EAAE,KAAK;EACnBC,aAAa,EAAE,KAAK;EACpBC,oBAAoB,EAAE,KAAK;EAC3BC,kBAAkB,EAAE,KAAK;EACzBC,oBAAoB,EAAE,KAAK;EAC3BC,kBAAkB,EAAE,KAAK;EACzBC,kBAAkB,EAAE,KAAK;EACzBC,wBAAwB,EAAE,KAAK;;EAG/BC,oBAAoB,EAAE,KAAK;EAC3BC,cAAc,EAAE,KAAK;EACrBC,YAAY,EAAE,KAAK;EACnBC,cAAc,EAAE,KAAK;EACrBC,eAAe,EAAE,IAAI;EACrBC,gBAAgB,EAAE,KAAK;EACvBC,cAAc,EAAE,KAAK;EACrBC,aAAa,EAAE,KAAK;EACpBC,eAAe,EAAE,KAAK;EACtBC,kBAAkB,EAAE;CACvB;AAED,MAAMC,OAAO,GAA2C;EACpDC,IAAI,EAAE;;IAEFpB,eAAe,EAAE,IAAI;IACrBC,YAAY,EAAE,IAAI;IAClBC,aAAa,EAAE,IAAI;IACnBC,oBAAoB,EAAE,IAAI;IAC1BC,kBAAkB,EAAE,KAAK;IACzBC,oBAAoB,EAAE,IAAI;IAC1BC,kBAAkB,EAAE,IAAI;IACxBC,kBAAkB,EAAE,IAAI;IACxBC,wBAAwB,EAAE,KAAK;;IAG/BC,oBAAoB,EAAE,KAAK;IAC3BC,cAAc,EAAE,KA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AA,mBAAA,GAAI5B,aAAa,CAACb,YAAY;IAC9DC,cAAc,GAAAyC,qBAAA,GAAE9B,KAAK,CAACX,cAAc,cAAAyC,qBAAA,cAAAA,qBAAA,GAAI7B,aAAa,CAACZ,cAAc;IACpEC,eAAe,GAAAyC,qBAAA,GAAE/B,KAAK,CAACV,eAAe,cAAAyC,qBAAA,cAAAA,qBAAA,GAAI9B,aAAa,CAACX,eAAe;IACvEC,gBAAgB,EAAEA,gBAAgB,IAAI,CAAC,GAAAyC,kBAAA,GAAChC,KAAK,CAACY,UAAU,cAAAoB,kBAAA,eAAhBA,kBAAA,CAAkBnB,MAAM;IAChErB,cAAc,EAAEA,cAAc,IAAI,CAAC,CAACQ,KAAK,CAACiB,UAAU;IACpDxB,aAAa,EAAEA,aAAa,IAAI,CAAC,CAACO,KAAK,CAACkB,SAAS;IACjDxB,eAAe,GAAAuC,qBAAA,GAAEjC,KAAK,CAACN,eAAe,cAAAuC,qBAAA,cAAAA,qBAAA,GAAIhC,aAAa,CAACP,eAAe;IACvEC,kBAAkB,GAAAuC,qBAAA,GAAElC,KAAK,CAACL,kBAAkB,cAAAuC,qBAAA,cAAAA,qBAAA,GAAIjC,aAAa,CAACN;GACjE;AACL;;;;"}
|
1
|
+
{"version":3,"file":"presets.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/presets.ts"],"sourcesContent":["import React from 'react';\nimport { TableFeatureProps, TablePreset, TableProps } from '../../types';\n\nconst DEFAULT_PRESET: TableFeatureProps = {\n // react-table built-in\n enableFiltering: false,\n enableSearch: false,\n enableSorting: false,\n enableColumnFreezing: false,\n enableColumnHiding: false,\n enableColumnResizing: false,\n enableRowExpansion: false,\n enableRowSelection: false,\n enableRowSelectionSingle: false,\n\n // custom -- common between all table types\n enableColumnOrdering: false,\n enableFontSize: false,\n enableFooter: false,\n enablePrinting: false,\n enableRowActive: true,\n enableRowActions: true,\n enableRowClick: false,\n enableRowDrag: false,\n enableRowDrop: false,\n enableRowGoto: false,\n enableRowHeight: false,\n enableSaveSettings: false,\n};\n\nconst presets: Record<TablePreset, TableFeatureProps> = {\n lite: {\n // react-table built-in\n enableFiltering: true,\n enableSearch: true,\n enableSorting: true,\n enableColumnFreezing: true,\n enableColumnHiding: false,\n enableColumnResizing: true,\n enableRowExpansion: true,\n enableRowSelection: true,\n enableRowSelectionSingle: false,\n\n // custom -- common between all table types\n enableColumnOrdering: false,\n enableFontSize: false,\n enableFooter: true,\n enablePrinting: false,\n enableRowActive: true,\n enableRowActions: true,\n enableRowClick: true,\n enableRowDrag: true,\n enableRowDrop: true,\n enableRowGoto: true,\n enableRowHeight: false,\n enableSaveSettings: true,\n },\n complex: {\n // react-table built-in\n enableFiltering: true,\n enableSearch: true,\n enableSorting: true,\n enableColumnFreezing: true,\n enableColumnHiding: true,\n enableColumnResizing: true,\n enableRowExpansion: true,\n enableRowSelection: true,\n enableRowSelectionSingle: false,\n\n // custom -- common between all table types\n enableColumnOrdering: true,\n enableFontSize: true,\n enableFooter: true,\n enablePrinting: true,\n enableRowActive: true,\n enableRowActions: true,\n enableRowClick: true,\n enableRowDrag: true,\n enableRowDrop: true,\n enableRowGoto: true,\n enableRowHeight: true,\n enableSaveSettings: true,\n },\n};\n\nexport function useTableFeaturePreset<TType = unknown>(props: TableProps<TType>): TableFeatureProps {\n const presetOptions = props.preset ? presets[props.preset] : DEFAULT_PRESET;\n\n const enableRowActions = props.enableRowActions ?? presetOptions.enableRowActions;\n const enableRowClick = props.enableRowClick ?? presetOptions.enableRowClick;\n const enableRowDrag = props.enableRowDrag ?? presetOptions.enableRowDrag;\n const enableRowDrop = props.enableRowDrop ?? presetOptions.enableRowDrop;\n const enableRowGoto = props.enableRowGoto ?? presetOptions.enableRowGoto;\n const enableRowExpansion = props.enableRowExpansion ?? presetOptions.enableRowExpansion;\n const enableRowSelection = props.enableRowSelection ?? presetOptions.enableRowSelection;\n const enableRowSelectionSingle = props.enableRowSelectionSingle ?? presetOptions.enableRowSelectionSingle;\n\n // guard options that might be unintentionally broken\n React.useEffect(() => {\n if (enableRowClick && !props.onRowClick) {\n console.warn(\n `Table (id: ${props.id}) - Row click is enabled but no \\`onRowClick\\` handler has been provided. Provide one to enable row click or set \\`enableRowClick\\` to \\`false\\`.`\n );\n }\n\n if (enableRowGoto && !props.onRowGoto) {\n console.warn(\n `Table (id: ${props.id}) - Row click is enabled but no \\`onRowGoto\\` handler has been provided. Provide one to enable row goto or set \\`enableRowGoto\\` to \\`false\\`.`\n );\n }\n\n if (enableRowExpansion && !props.rowExpansionRenderer) {\n console.warn(\n `Table (id: ${props.id}) - Row expansion is enabled but no \\`rowExpansionRenderer\\` has been provided. Provide one to enable row expansion or set \\`enableRowExpansion\\` to \\`false\\`.`\n );\n }\n\n if (enableRowSelection && !props.onRowSelect) {\n console.warn(\n `Table (id: ${props.id}) - Row selection is enabled but no \\`onRowSelect\\` handler has been provided. Provide one to enable row selection or set \\`enableRowSelection\\` to \\`false\\`.`\n );\n }\n\n if (enableRowSelectionSingle && !props.onRowSelect) {\n console.warn(\n `Table (id: ${props.id}) - Row selection (single) is enabled but no \\`onRowSelect\\` handler has been provided. Provide one to enable row selection or set \\`enableRowSelectionSingle\\` to \\`false\\`.`\n );\n }\n }, []);\n\n return {\n // react-table built-in\n enableFiltering: props.enableFiltering ?? presetOptions.enableFiltering,\n enableSearch: props.enableSearch ?? presetOptions.enableSearch,\n enableSorting: props.enableSorting ?? presetOptions.enableSorting,\n enableColumnFreezing: props.enableColumnFreezing ?? presetOptions.enableColumnFreezing,\n enableColumnHiding: props.enableColumnHiding ?? presetOptions.enableColumnHiding,\n enableColumnResizing: props.enableColumnResizing ?? presetOptions.enableColumnResizing,\n enableRowExpansion: enableRowExpansion && !!props.rowExpansionRenderer,\n enableRowSelection: enableRowSelection && !!props.onRowSelect,\n enableRowSelectionSingle: enableRowSelectionSingle && !!props.onRowSelect,\n\n // custom -- common between all table types\n enableColumnOrdering: props.enableColumnOrdering ?? presetOptions.enableColumnOrdering,\n enableFontSize: props.enableFontSize ?? presetOptions.enableFontSize,\n enableFooter: props.enableFooter ?? presetOptions.enableFooter,\n enablePrinting: props.enablePrinting ?? presetOptions.enablePrinting,\n enableRowActive: props.enableRowActive ?? presetOptions.enableRowActive,\n enableRowActions: enableRowActions && !!props.rowActions?.length,\n enableRowClick: enableRowClick && !!props.onRowClick,\n enableRowDrag: enableRowDrag && !!props.onRowDrag,\n enableRowDrop: enableRowDrop && !!props.onRowDrop,\n enableRowGoto: enableRowGoto && !!props.onRowGoto,\n enableRowHeight: props.enableRowHeight ?? presetOptions.enableRowHeight,\n enableSaveSettings: props.enableSaveSettings ?? presetOptions.enableSaveSettings,\n };\n}\n"],"names":["DEFAULT_PRESET","enableFiltering","enableSearch","enableSorting","enableColumnFreezing","enableColumnHiding","enableColumnResizing","enableRowExpansion","enableRowSelection","enableRowSelectionSingle","enableColumnOrdering","enableFontSize","enableFooter","enablePrinting","enableRowActive","enableRowActions","enableRowClick","enableRowDrag","enableRowDrop","enableRowGoto","enableRowHeight","enableSaveSettings","presets","lite","complex","useTableFeaturePreset","props","presetOptions","preset","_props$enableRowActio","_props$enableRowClick","_props$enableRowDrag","_props$enableRowDrop","_props$enableRowGoto","_props$enableRowExpan","_props$enableRowSelec","_props$enableRowSelec2","React","useEffect","onRowClick","console","warn","id","onRowGoto","rowExpansionRenderer","onRowSelect","_props$enableFilterin","_props$enableSearch","_props$enableSorting","_props$enableColumnFr","_props$enableColumnHi","_props$enableColumnRe","_props$enableColumnOr","_props$enableFontSize","_props$enableFooter","_props$enablePrinting","_props$enableRowActiv","_props$rowActions","rowActions","length","onRowDrag","onRowDrop","_props$enableRowHeigh","_props$enableSaveSett"],"mappings":";;AAGA,MAAMA,cAAc,GAAsB;;EAEtCC,eAAe,EAAE,KAAK;EACtBC,YAAY,EAAE,KAAK;EACnBC,aAAa,EAAE,KAAK;EACpBC,oBAAoB,EAAE,KAAK;EAC3BC,kBAAkB,EAAE,KAAK;EACzBC,oBAAoB,EAAE,KAAK;EAC3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AAU,cAAAD,iBAAA,eAAhBA,iBAAA,CAAkBE,MAAM;IAChE3C,cAAc,EAAEA,cAAc,IAAI,CAAC,CAACU,KAAK,CAACa,UAAU;IACpDtB,aAAa,EAAEA,aAAa,IAAI,CAAC,CAACS,KAAK,CAACkC,SAAS;IACjD1C,aAAa,EAAEA,aAAa,IAAI,CAAC,CAACQ,KAAK,CAACmC,SAAS;IACjD1C,aAAa,EAAEA,aAAa,IAAI,CAAC,CAACO,KAAK,CAACiB,SAAS;IACjDvB,eAAe,GAAA0C,qBAAA,GAAEpC,KAAK,CAACN,eAAe,cAAA0C,qBAAA,cAAAA,qBAAA,GAAInC,aAAa,CAACP,eAAe;IACvEC,kBAAkB,GAAA0C,qBAAA,GAAErC,KAAK,CAACL,kBAAkB,cAAA0C,qBAAA,cAAAA,qBAAA,GAAIpC,aAAa,CAACN;GACjE;AACL;;;;"}
|
@@ -7,8 +7,7 @@ function getSettings(table) {
|
|
7
7
|
columnPinning: state.columnPinning,
|
8
8
|
columnSizing: state.columnSizing,
|
9
9
|
columnVisibility: table.options.enableHiding ? state.columnVisibility : undefined,
|
10
|
-
|
11
|
-
excludeUnmatchedRecordsInSearch: meta.search.excludeUnmatchedResults,
|
10
|
+
excludeUnmatchedRecordsInSearch: table.options.enableGlobalFilter,
|
12
11
|
fontSize: meta.fontSize.isEnabled ? meta.fontSize.size : undefined,
|
13
12
|
grouping: table.options.enableGrouping ? state.grouping : undefined,
|
14
13
|
rowHeight: meta.rowHeight.isEnabled ? meta.rowHeight.height : undefined,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/settings.ts"],"sourcesContent":["import { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\n\nexport function getSettings<TType = unknown>(table: ReactTable<TType>) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n const state = table.getState();\n\n return {\n //columnFilters: table.options.enableColumnFilters ? state.columnFilters : undefined,\n columnOrder: meta.columnOrdering.isEnabled ? state.columnOrder : undefined,\n columnPinning: state.columnPinning,\n columnSizing: state.columnSizing,\n columnVisibility: table.options.enableHiding ? state.columnVisibility : undefined,\n
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/settings.ts"],"sourcesContent":["import { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\n\nexport function getSettings<TType = unknown>(table: ReactTable<TType>) {\n const meta = table.options.meta as ReactTableMeta<TType>;\n const state = table.getState();\n\n return {\n //columnFilters: table.options.enableColumnFilters ? state.columnFilters : undefined,\n columnOrder: meta.columnOrdering.isEnabled ? state.columnOrder : undefined,\n columnPinning: state.columnPinning,\n columnSizing: state.columnSizing,\n columnVisibility: table.options.enableHiding ? state.columnVisibility : undefined,\n excludeUnmatchedRecordsInSearch: table.options.enableGlobalFilter,\n fontSize: meta.fontSize.isEnabled ? meta.fontSize.size : undefined,\n grouping: table.options.enableGrouping ? state.grouping : undefined,\n rowHeight: meta.rowHeight.isEnabled ? meta.rowHeight.height : undefined,\n //searchQuery: table.options.enableGlobalFilter ? state.globalFilter : undefined,\n sorting: state.sorting,\n };\n}\n"],"names":["getSettings","table","meta","options","state","getState","columnOrder","columnOrdering","isEnabled","undefined","columnPinning","columnSizing","columnVisibility","enableHiding","excludeUnmatchedRecordsInSearch","enableGlobalFilter","fontSize","size","grouping","enableGrouping","rowHeight","height","sorting"],"mappings":"SAEgBA,WAAWA,CAAkBC,KAAwB;EACjE,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAACD,IAA6B;EACxD,MAAME,KAAK,GAAGH,KAAK,CAACI,QAAQ,EAAE;EAE9B,OAAO;;IAEHC,WAAW,EAAEJ,IAAI,CAACK,cAAc,CAACC,SAAS,GAAGJ,KAAK,CAACE,WAAW,GAAGG,SAAS;IAC1EC,aAAa,EAAEN,KAAK,CAACM,aAAa;IAClCC,YAAY,EAAEP,KAAK,CAACO,YAAY;IAChCC,gBAAgB,EAAEX,KAAK,CAACE,OAAO,CAACU,YAAY,GAAGT,KAAK,CAACQ,gBAAgB,GAAGH,SAAS;IACjFK,+BAA+B,EAAEb,KAAK,CAACE,OAAO,CAACY,kBAAkB;IACjEC,QAAQ,EAAEd,IAAI,CAACc,QAAQ,CAACR,SAAS,GAAGN,IAAI,CAACc,QAAQ,CAACC,IAAI,GAAGR,SAAS;IAClES,QAAQ,EAAEjB,KAAK,CAACE,OAAO,CAACgB,cAAc,GAAGf,KAAK,CAACc,QAAQ,GAAGT,SAAS;IACnEW,SAAS,EAAElB,IAAI,CAACkB,SAAS,CAACZ,SAAS,GAAGN,IAAI,CAACkB,SAAS,CAACC,MAAM,GAAGZ,SAAS;;IAEvEa,OAAO,EAAElB,KAAK,CAACkB;GAClB;AACL;;;;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React__default from 'react';
|
2
|
-
import {
|
2
|
+
import { getExpandedRowModel, getGroupedRowModel, getFilteredRowModel, getSortedRowModel, createColumnHelper } from '@tanstack/react-table';
|
3
3
|
import { getSortingFn } from './sorting.js';
|
4
4
|
import { ensureOrdering, freezeUptoExternalColumn, unfreezeAllExternalColumns, getCellMinWidth } from './columns.js';
|
5
5
|
import { columnFilterFn, globalFilterFn } from './filtering.js';
|
@@ -162,6 +162,10 @@ function mapTableChildrenToColumns(props, settings, options, internalColumns) {
|
|
162
162
|
const column = createInternalColumn('__actions', internalColumns.rowActions, defaultSizing);
|
163
163
|
columns.push(column);
|
164
164
|
}
|
165
|
+
if (options.enableRowDrag && props.onRowDrag && internalColumns.rowDrag) {
|
166
|
+
const column = createInternalColumn('__drag', internalColumns.rowDrag, defaultSizing);
|
167
|
+
columns.unshift(column);
|
168
|
+
}
|
165
169
|
}
|
166
170
|
return {
|
167
171
|
columns,
|
@@ -195,7 +199,6 @@ function configureReactTableOptions(options, props) {
|
|
195
199
|
enableMultiRowSelection: options.enableRowSelectionSingle === true ? false : enableRowSelection,
|
196
200
|
enableSorting: (_options$enableSortin = options.enableSorting) !== null && _options$enableSortin !== void 0 ? _options$enableSortin : false,
|
197
201
|
// models for default features
|
198
|
-
getCoreRowModel: getCoreRowModel(),
|
199
202
|
getExpandedRowModel: getExpandedRowModel(),
|
200
203
|
getGroupedRowModel: getGroupedRowModel(),
|
201
204
|
groupedColumnMode: false
|