@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
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SortIndicator.js","sources":["../../../../../../../../../../src/components/Report/components/Header/components/SortIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { TableColumnSortDirection } from '../../../../../primitives/Table/types';\nimport { Icon } from '../../../../Icon/Icon';\n\ntype SortIndicatorProps = {\n direction: false | TableColumnSortDirection;\n};\n\nconst indicators = {\n asc: <Icon name=\"chevron-up-solid\" className=\"pointer-events-none -my-0.5\" />,\n desc: <Icon name=\"chevron-down-solid\" className=\"pointer-events-none -my-0.5\" />,\n};\n\nexport function SortIndicator(props: SortIndicatorProps) {\n return indicators[props.direction as string] ?? null;\n}\n\nconst ariaSort = {\n asc: 'ascending',\n desc: 'descending',\n};\n\nexport const getAriaSort = direction => ariaSort[direction] ?? 'none';\n\nexport function getSortAttributes(\n canSort: boolean,\n toggleSorting?: (event: unknown) => void,\n sortDirection?: false | TableColumnSortDirection\n) {\n if (!canSort) {\n return {};\n }\n\n const handleClick = (event: React.MouseEvent) => {\n if (event.isDefaultPrevented() || !event.currentTarget.contains(event.target as any)) {\n return;\n }\n\n event.preventDefault();\n toggleSorting?.(event);\n };\n\n return {\n 'aria-sort': ariaSort[sortDirection as any] ?? 'none',\n onClick: handleClick,\n };\n}\n"],"names":["indicators","asc","React","Icon","name","className","desc","SortIndicator","props","_indicators$props$dir","direction","ariaSort","getSortAttributes","canSort","toggleSorting","sortDirection","handleClick","event","isDefaultPrevented","currentTarget","contains","target","preventDefault","_ariaSort$sortDirecti","onClick"],"mappings":";;;AAQA,MAAMA,UAAU,GAAG;EACfC,GAAG,eAAEC,6BAACC,IAAI;IAACC,IAAI,EAAC,kBAAkB;IAACC,SAAS,EAAC;IAAgC;EAC7EC,IAAI,eAAEJ,6BAACC,IAAI;IAACC,IAAI,EAAC,oBAAoB;IAACC,SAAS,EAAC;;CACnD;SAEeE,aAAaA,CAACC,KAAyB;;EACnD,QAAAC,qBAAA,GAAOT,UAAU,CAACQ,KAAK,CAACE,SAAmB,CAAC,cAAAD,qBAAA,cAAAA,qBAAA,GAAI,IAAI;AACxD;AAEA,MAAME,QAAQ,GAAG;EACbV,GAAG,EAAE,WAAW;EAChBK,IAAI,EAAE;CACT;SAIeM,iBAAiBA,CAC7BC,OAAgB,EAChBC,aAAwC,EACxCC,aAAgD;;EAEhD,IAAI,CAACF,OAAO,EAAE;IACV,OAAO,EAAE;;EAGb,MAAMG,WAAW,GAAIC,KAAuB;IACxC,IAAIA,KAAK,CAACC,kBAAkB,EAAE,IAAI,CAACD,KAAK,CAACE,aAAa,CAACC,QAAQ,CAACH,KAAK,CAACI,MAAa,CAAC,EAAE;MAClF;;IAGJJ,KAAK,CAACK,cAAc,EAAE;IACtBR,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAGG,KAAK,CAAC;GACzB;EAED,OAAO;IACH,WAAW,GAAAM,qBAAA,GAAEZ,QAAQ,CAACI,aAAoB,CAAC,cAAAQ,qBAAA,cAAAA,qBAAA,GAAI,MAAM;IACrDC,OAAO,EAAER;GACZ;AACL;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../../../../../src/components/Report/components/Header/util.ts"],"sourcesContent":["import React from 'react';\nimport { Header as ReactTableHeader, ColumnPinningPosition as ReactTableColumnPinningPosition } from '@tanstack/react-table';\nimport { TableColumnWidth } from '../../../../primitives/Table/types';\nimport { isInternalColumn } from '../../../../primitives/Table/useTableManager/util/columns';\n\nexport function useSetInitialColumnSizing(\n id: string,\n defaultWidth: TableColumnWidth | undefined,\n width: TableColumnWidth | undefined,\n element: HTMLTableCellElement | null,\n canMeasureSize: boolean,\n setColumnSizing: any\n) {\n React.useEffect(() => {\n // columns that aren't set to grow must set a pixel width...\n // otherwise when scrolling through the table, the column widths adjust based on the content\n // of the column, this is because to the virtualisation mounting new rows and unmounting old ones\n if (canMeasureSize && element && !Number.isInteger(width) && !isInternalColumn(id) && defaultWidth !== 'grow') {\n setColumnSizing(sizes => ({\n ...sizes,\n [id]: element.getBoundingClientRect().width,\n }));\n }\n }, [element, canMeasureSize, width]);\n}\n\nexport function getIsPinned<TType = unknown>(\n header: ReactTableHeader<TType, unknown>\n): ReactTableColumnPinningPosition | undefined {\n // TODO: Is there a native function that does this check for groups?\n return header.subHeaders?.length\n ? header.subHeaders.find(x => x.column.getIsPinned())?.column.getIsPinned()\n : header.column.getIsPinned();\n}\n"],"names":["useSetInitialColumnSizing","id","defaultWidth","width","element","canMeasureSize","setColumnSizing","React","useEffect","Number","isInteger","isInternalColumn","sizes","getBoundingClientRect","getIsPinned","header","_header$subHeaders","subHeaders","length","_header$subHeaders$fi","find","x","column"],"mappings":";;;SAKgBA,yBAAyBA,CACrCC,EAAU,EACVC,YAA0C,EAC1CC,KAAmC,EACnCC,OAAoC,EACpCC,cAAuB,EACvBC,eAAoB;EAEpBC,cAAK,CAACC,SAAS,CAAC;;;;IAIZ,IAAIH,cAAc,IAAID,OAAO,IAAI,CAACK,MAAM,CAACC,SAAS,CAACP,KAAK,CAAC,IAAI,CAACQ,gBAAgB,CAACV,EAAE,CAAC,IAAIC,YAAY,KAAK,MAAM,EAAE;MAC3GI,eAAe,CAACM,KAAK,KAAK;QACtB,GAAGA,KAAK;QACR,CAACX,EAAE,GAAGG,OAAO,CAACS,qBAAqB,EAAE,CAACV;OACzC,CAAC,CAAC;;GAEV,EAAE,CAACC,OAAO,EAAEC,cAAc,EAAEF,KAAK,CAAC,CAAC;AACxC;SAEgBW,WAAWA,CACvBC,MAAwC;;;EAGxC,OAAO,CAAAC,kBAAA,GAAAD,MAAM,CAACE,UAAU,cAAAD,kBAAA,eAAjBA,kBAAA,CAAmBE,MAAM,IAAAC,qBAAA,GAC1BJ,MAAM,CAACE,UAAU,CAACG,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACC,MAAM,CAACR,WAAW,EAAE,CAAC,cAAAK,qBAAA,uBAAnDA,qBAAA,CAAqDG,MAAM,CAACR,WAAW,EAAE,GACzEC,MAAM,CAACO,MAAM,CAACR,WAAW,EAAE;AACrC;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Actions.js","sources":["../../../../../../../../../src/components/Report/components/Internal/Actions.tsx"],"sourcesContent":["import React from 'react';\nimport { CellContext as ReactTableCellContext, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport cn from 'clsx';\nimport { useLocalization } from '../../../Provider/Localization';\nimport { IconButton } from '../../../IconButton/IconButton';\nimport { Menu } from '../../../Menu/Menu';\nimport { Shortcut } from '../../../Shortcut/Shortcut';\nimport { RowContext } from '../Row/RowContext';\nimport { TableFontSize, TableRowActionRenderer } from '../../../../primitives/Table/types';\nimport { FontSizes } from '../../../../types';\n\nexport function Header() {\n return null;\n}\n\nexport type ActionsProps<TType = unknown> = {\n actions: TableRowActionRenderer<TType>[];\n actionsLength: number;\n data: any;\n fontSize: TableFontSize;\n isActiveRow: boolean;\n};\nexport function Actions<TType = unknown>(props: ActionsProps<TType>) {\n const { actions, actionsLength, data, fontSize, isActiveRow } = props;\n const { texts } = useLocalization();\n const visibleActions = actions.map(action => action(data)).filter(action => !!action) as JSX.Element[];\n\n const actionsOnRow = visibleActions.length === actionsLength ? visibleActions : visibleActions.slice(0, actionsLength - 1);\n const actionsInMenu = visibleActions.slice(visibleActions.length === actionsLength ? actionsLength : actionsLength - 1);\n\n const className = cn(\n '-mb-2 flex justify-end text-right bg-[inherit] shadow-[-6px_0px_6px_var(--table-row-actions-shadow)] print:hidden',\n {\n // Adjust negative margin on row actions cell to ensure that the cell aligns vertically.\n '-mt-2': fontSize === FontSizes.small,\n '-mt-1.5': fontSize !== FontSizes.small,\n }\n );\n\n return (\n <span className={className}>\n {actionsOnRow.map((button, index) => {\n const tooltip = String(button.props.tooltip ?? button.props['aria-label'] ?? '');\n\n return React.cloneElement(button, {\n appearance: 'transparent',\n key: index,\n tabIndex: isActiveRow ? 0 : -1,\n tooltip: button.props.shortcut ? (\n <>\n {tooltip}\n <Shortcut className=\"ml-2\" keys={button.props.shortcut} />\n </>\n ) : (\n tooltip\n ),\n });\n })}\n {actionsInMenu.length ? (\n <IconButton\n appearance=\"transparent\"\n aria-label={texts.table3.columns.actions.tooltip}\n icon=\"more\"\n tabIndex={isActiveRow ? 0 : -1}\n menu={menuProps => (\n <Menu {...menuProps}>\n <Menu.Content>\n {actionsInMenu.map((action, i) => (\n <Menu.Item key={i} {...action.props} shortcut={action.props.shortcut}>\n {action.props['aria-label']}\n </Menu.Item>\n ))}\n </Menu.Content>\n </Menu>\n )}\n />\n ) : null}\n </span>\n );\n}\n\nexport const Cell = React.memo(function MemoedCell<TType = unknown>(context: ReactTableCellContext<TType, unknown>) {\n const { row, table } = context;\n const { rowIndex } = React.useContext(RowContext);\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const actions = tableMeta.rowActions.rowActions;\n const actionsLength = tableMeta.rowActions.rowActionsLength;\n\n const isActiveRow = tableMeta.rowActive.rowActiveIndex === rowIndex;\n const isResizingColumn = !!table.getState().columnSizingInfo.isResizingColumn;\n const isHoverStatePaused = tableMeta.rowActive.isHoverStatePaused;\n const { isHovered } = React.useContext(RowContext);\n\n // We don't want to show actions in edit mode, since we have editing actions,\n // which is shown in edit mode instead.\n if (actions?.length && (isActiveRow || (isHovered && !isHoverStatePaused && !isResizingColumn))) {\n return (\n <Actions\n actions={actions}\n actionsLength={actionsLength}\n data={row.original}\n fontSize={tableMeta.fontSize.size}\n isActiveRow={isActiveRow}\n />\n );\n }\n\n return null;\n}) as <TType = unknown>(context: ReactTableCellContext<TType, unknown>) => JSX.Element;\n"],"names":["Header","Actions","props","actions","actionsLength","data","fontSize","isActiveRow","texts","useLocalization","visibleActions","map","action","filter","actionsOnRow","length","slice","actionsInMenu","className","cn","FontSizes","small","React","button","index","tooltip","String","_ref","_button$props$tooltip","cloneElement","appearance","key","tabIndex","shortcut","Shortcut","keys","IconButton","table3","columns","icon","menu","menuProps","Menu","Content","i","Item","Cell","memo","MemoedCell","context","row","table","rowIndex","useContext","RowContext","tableMeta","options","meta","rowActions","rowActionsLength","rowActive","rowActiveIndex","isResizingColumn","getState","columnSizingInfo","isHoverStatePaused","isHovered","original","size"],"mappings":";;;;;;;;;SAWgBA,MAAMA;EAClB,OAAO,IAAI;AACf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W,GAAGgD,SAAS,CAACK,SAAS,CAACC,cAAc,KAAKT,QAAQ;EACnE,MAAMU,gBAAgB,GAAG,CAAC,CAACX,KAAK,CAACY,QAAQ,EAAE,CAACC,gBAAgB,CAACF,gBAAgB;EAC7E,MAAMG,kBAAkB,GAAGV,SAAS,CAACK,SAAS,CAACK,kBAAkB;EACjE,MAAM;IAAEC;GAAW,GAAG5C,cAAK,CAAC+B,UAAU,CAACC,UAAU,CAAC;;;EAIlD,IAAInD,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAEY,MAAM,KAAKR,WAAW,IAAK2D,SAAS,IAAI,CAACD,kBAAkB,IAAI,CAACH,gBAAiB,CAAC,EAAE;IAC7F,oBACIxC,6BAACrB,OAAO;MACJE,OAAO,EAAEA,OAAO;MAChBC,aAAa,EAAEA,aAAa;MAC5BC,IAAI,EAAE6C,GAAG,CAACiB,QAAQ;MAClB7D,QAAQ,EAAEiD,SAAS,CAACjD,QAAQ,CAAC8D,IAAI;MACjC7D,WAAW,EAAEA;MACf;;EAIV,OAAO,IAAI;AACf,CAAC;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Expansion.js","sources":["../../../../../../../../../src/components/Report/components/Internal/Expansion.tsx"],"sourcesContent":["import React from 'react';\nimport {\n HeaderContext as ReactTableHeaderContext,\n CellContext as ReactTableCellContext,\n TableMeta as ReactTableMeta,\n} from '@tanstack/react-table';\nimport { useLocalization } from '../../../Provider/Localization';\nimport { Tooltip } from '../../../Tooltip/Tooltip';\nimport { IconButton } from '../../../IconButton/IconButton';\n\nexport function Header<TType = unknown>(context: ReactTableHeaderContext<TType, unknown>) {\n const { texts } = useLocalization();\n const { table } = context;\n\n const isSomeRowsExpanded = table.getIsSomeRowsExpanded();\n\n const handleClick = event => {\n event.stopPropagation();\n table.toggleAllRowsExpanded(!isSomeRowsExpanded);\n };\n\n const title = isSomeRowsExpanded ? texts.table3.columns.expansion.collapseAll : texts.table3.columns.expansion.expandAll;\n\n return (\n <Tooltip title={title}>\n <IconButton\n appearance=\"transparent\"\n icon={isSomeRowsExpanded ? 'chevron-down-double' : 'chevron-right-double'}\n onClick={handleClick}\n tabIndex={-1}\n title={title}\n />\n </Tooltip>\n );\n}\n\nexport function Cell<TType = unknown>(context: ReactTableCellContext<TType, unknown>) {\n const { texts } = useLocalization();\n const tableMeta = context.table.options.meta as ReactTableMeta<TType>;\n\n const hasExpandedRow = tableMeta.rowExpansion.rowExpansionRenderer?.(context.row.original);\n\n if (hasExpandedRow) {\n const isActiveRow = tableMeta.rowActive.rowActiveIndex === context.row.index;\n const isExpanded = context.row.getIsExpanded();\n\n const handleClick = event => {\n event.stopPropagation();\n context.row.toggleExpanded();\n };\n\n const title = isExpanded ? texts.table3.columns.expansion.collapse : texts.table3.columns.expansion.expand;\n const tabIndex = isActiveRow ? 0 : -1;\n\n return (\n <Tooltip title={title}>\n <IconButton\n appearance=\"discrete\"\n icon={isExpanded ? 'chevron-down' : 'chevron-right'}\n onClick={handleClick}\n tabIndex={tabIndex}\n title={title}\n />\n </Tooltip>\n );\n }\n\n return null;\n}\n"],"names":["Header","context","texts","useLocalization","table","isSomeRowsExpanded","getIsSomeRowsExpanded","handleClick","event","stopPropagation","toggleAllRowsExpanded","title","table3","columns","expansion","collapseAll","expandAll","React","Tooltip","IconButton","appearance","icon","onClick","tabIndex","Cell","tableMeta","options","meta","hasExpandedRow","_tableMeta$rowExpansi","_tableMeta$rowExpansi2","rowExpansion","rowExpansionRenderer","call","row","original","isActiveRow","rowActive","rowActiveIndex","index","isExpanded","getIsExpanded","toggleExpanded","collapse","expand"],"mappings":";;;;;SAUgBA,MAAMA,CAAkBC,OAAgD;EACpF,MAAM;IAAEC;GAAO,GAAGC,eAAe,EAAE;EACnC,MAAM;IAAEC;GAAO,GAAGH,OAAO;EAEzB,MAAMI,kBAAkB,GAAGD,KAAK,CAACE,qBAAqB,EAAE;EAExD,MAAMC,WAAW,GAAGC,KAAK;IACrBA,KAAK,CAACC,eAAe,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AAGzC,KAAK,CAACU,MAAM,CAACC,OAAO,CAACC,SAAS,CAAC8B,MAAM;IAC1G,MAAMrB,QAAQ,GAAGa,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;IAErC,oBACInB,6BAACC,OAAO;MAACP,KAAK,EAAEA;oBACZM,6BAACE,UAAU;MACPC,UAAU,EAAC,UAAU;MACrBC,IAAI,EAAEmB,UAAU,GAAG,cAAc,GAAG,eAAe;MACnDlB,OAAO,EAAEf,WAAW;MACpBgB,QAAQ,EAAEA,QAAQ;MAClBZ,KAAK,EAAEA;MACT,CACI;;EAIlB,OAAO,IAAI;AACf;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Selection.js","sources":["../../../../../../../../../src/components/Report/components/Internal/Selection.tsx"],"sourcesContent":["import React from 'react';\nimport {\n HeaderContext as ReactTableHeaderContext,\n CellContext as ReactTableCellContext,\n TableMeta as ReactTableMeta,\n RowSelectionState,\n} from '@tanstack/react-table';\nimport cn from 'clsx';\nimport { useLocalization } from '../../../Provider/Localization';\nimport { Tooltip } from '../../../Tooltip/Tooltip';\nimport { Checkbox } from '../../../Checkbox/Checkbox';\nimport { Shortcut } from '../../../Shortcut/Shortcut';\nimport { getRadioClassnames } from '../../../RadioGroup/util';\nimport { TableServerLoadAllState } from '../../../../primitives/Table/types';\nimport { RowContext } from '../Row/RowContext';\n\nexport function Header<TType = unknown>(context: ReactTableHeaderContext<TType, unknown>) {\n const { texts } = useLocalization();\n const { table } = context;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n if (table.options.enableMultiRowSelection) {\n const isAllRowsSelected = table.getIsAllRowsSelected();\n const isSomeRowsSelected = table.getIsSomeRowsSelected();\n const title = isAllRowsSelected ? texts.table3.columns.select.deselectAll : texts.table3.columns.select.selectAll;\n\n const handleChange = async (checked: boolean) => {\n // load all data if that is possible\n if (tableMeta.server.loadAllIfNeeded) {\n // don't pass the search query because we need all data - not filtered data\n await tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined);\n }\n\n table.toggleAllRowsSelected(checked);\n };\n\n return (\n <Tooltip title={title}>\n <Checkbox\n aria-label={title}\n className=\"hover:border-blue !-mt-px\"\n key={String(`${isAllRowsSelected}_${isSomeRowsSelected}`)}\n checked={isAllRowsSelected}\n indeterminate={isSomeRowsSelected}\n loading={tableMeta.server.loadAllStatus === TableServerLoadAllState.Loading}\n onChange={handleChange}\n />\n </Tooltip>\n );\n }\n\n return null;\n}\n\nconst toggleBetween = (fromRowIndex: number, toRowIndex: number): [number, number] => {\n const fromIndex = toRowIndex < fromRowIndex ? toRowIndex : fromRowIndex;\n const toIndex = toRowIndex > fromRowIndex ? toRowIndex : fromRowIndex;\n\n return [fromIndex, toIndex];\n};\n\nexport function Cell<TType = unknown>(context: ReactTableCellContext<TType, unknown>) {\n const { texts } = useLocalization();\n const { row, table } = context;\n const { rowIndex } = React.useContext(RowContext);\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n if (table.options.enableGrouping && table.getState().grouping?.length && !row.getIsGrouped()) {\n return null;\n }\n\n const isSelected = row.getIsGrouped() ? row.getIsAllSubRowsSelected() : row.getIsSelected();\n const title = isSelected ? texts.table3.columns.select.deselect : texts.table3.columns.select.select;\n\n if (table.options.enableMultiRowSelection) {\n const handleClick = async (event: React.MouseEvent) => {\n event.stopPropagation();\n\n if (row.getIsGrouped()) {\n row.subRows.forEach(row => row.toggleSelected());\n } else if (event.shiftKey) {\n const [fromIndex, toIndex] = toggleBetween(tableMeta.rowSelection.lastSelectedRowIndex.current ?? 0, rowIndex);\n const selectedRows = table.getRowModel().rows.slice(fromIndex, toIndex + 1);\n\n if (tableMeta.server.loadAllIfNeeded && selectedRows.some(row => row.original === undefined)) {\n // don't pass the search query because we need all data - not filtered data\n await tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined);\n }\n\n table.setRowSelection((currentRowSelection: RowSelectionState) => ({\n ...currentRowSelection,\n ...selectedRows.reduce((state, row) => ({ ...state, [row.id]: true }), {}),\n }));\n } else {\n row.toggleSelected();\n }\n\n tableMeta.rowSelection.lastSelectedRowIndex.current = row.index;\n };\n\n return (\n <Tooltip\n title={\n <>\n {title}\n <Shortcut className=\"ml-2\" keys=\"Space\" />\n </>\n }>\n <Checkbox\n aria-label={title}\n className=\"!mt-0\"\n checked={isSelected}\n onClick={handleClick}\n // this is necessary to remove console spam from eslint\n onChange={() => false}\n />\n </Tooltip>\n );\n } else {\n const className = cn('!mt-0', getRadioClassnames());\n\n const handleClick = (event: React.MouseEvent): void => {\n event.stopPropagation();\n row.toggleSelected();\n tableMeta.rowSelection.lastSelectedRowIndex.current = row.index;\n };\n\n return (\n <button className={className} aria-checked={isSelected} onClick={handleClick} role=\"radio\" type=\"button\">\n {isSelected ? <span className=\"h-2 w-2 rounded-full bg-white\" /> : null}\n </button>\n );\n }\n}\n"],"names":["Header","context","texts","useLocalization","table","tableMeta","options","meta","enableMultiRowSelection","isAllRowsSelected","getIsAllRowsSelected","isSomeRowsSelected","getIsSomeRowsSelected","title","table3","columns","select","deselectAll","selectAll","handleChange","checked","toggleAllRowsSelected","_temp","server","loadAllIfNeeded","Promise","resolve","getState","sorting","columnFilters","undefined","then","_temp2","e","reject","React","Tooltip","Checkbox","className","key","String","indeterminate","loading","loadAllStatus","TableServerLoadAllState","Loading","onChange","toggleBetween","fromRowIndex","toRowIndex","fromIndex","toIndex","Cell","row","rowIndex","useContext","RowContext","enableGrouping","_table$getState$group","grouping","length","getIsGrouped","isSelected","getIsAllSubRowsSelected","getIsSelected","deselect","handleClick","event","rowSelection","lastSelectedRowIndex","current","index","stopPropagation","_temp6","subRows","forEach","toggleSelected","_temp5","shiftKey","_tableMeta$rowSelecti","_temp4","setRowSelection","currentRowSelection","selectedRows","reduce","state","id","getRowModel","rows","slice","_temp3","some","original","_temp7","Shortcut","keys","onClick","cn","getRadioClassnames","role","type"],"mappings":";;;;;;;;;;SAgBgBA,MAAMA,CAAkBC,OAAgD;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IAAI,EAAC,OAAO;MAACC,IAAI,EAAC;OAC3FtC,UAAU,gBAAG3B;MAAMG,SAAS,EAAC;MAAkC,GAAG,IAAI,CAClE;;AAGrB;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DisplayRow.js","sources":["../../../../../../../../../src/components/Report/components/Row/DisplayRow.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, Row as ReactTableRow, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport cn from 'clsx';\nimport { RowContext } from './RowContext';\nimport { Cell } from '../Cell/Cell';\nimport { ReportRowWithMetaData } from '../../types';\n\nexport type DisplayRowProps<TType = unknown> = {\n index: number;\n measureRow: (size: number, expansionHeight?: number) => void;\n row: ReactTableRow<TType>;\n table: ReactTable<TType>;\n};\n\nexport const DisplayRow = React.memo(function DisplayRow<TType = unknown>(props: DisplayRowProps<TType>) {\n const { index, measureRow, row, table } = props;\n const { setIsHovered } = React.useContext(RowContext);\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const attributes: any = {\n 'data-row-id': row.id,\n 'data-row-index': index,\n onMouseEnter: React.useCallback(() => setIsHovered(true), []),\n onMouseLeave: React.useCallback(() => setIsHovered(false), []),\n tabIndex: -1,\n };\n\n const handleClick = React.useCallback(\n (event: React.MouseEvent<HTMLTableRowElement>) => {\n const clickedElement = event.target as HTMLElement;\n\n if (\n !event.currentTarget?.contains(event.target as HTMLElement) ||\n clickableElements.includes(clickedElement.tagName.toLowerCase()) ||\n clickedElement.closest(clickableElements.map(tag => `tr ${tag}`).join(','))\n ) {\n return;\n }\n\n tableMeta.rowClick.handleClick(event, row.original);\n },\n [row.original]\n );\n const handleClickCapture = React.useCallback(() => {\n // do this in the next frame, otherwise it remounts the row and prevents row actions on hover from being clickable\n requestAnimationFrame(() => tableMeta.rowActive.setRowActiveIndex(index));\n }, []);\n\n // row active\n if (tableMeta.rowActive.isEnabled) {\n attributes['data-row-active'] = tableMeta.rowActive.rowActiveIndex === index ? true : undefined;\n // we use capture because it let's us picks up clicks on components inside the row, e.g. checkboxes\n attributes.onClickCapture = handleClickCapture;\n }\n\n // row click\n if (tableMeta.rowClick.isEnabled) {\n attributes.onClick = handleClick;\n }\n\n // row grouping\n if (table.options.enableGrouping) {\n attributes['data-row-group'] = row.getIsGrouped() ? true : undefined;\n }\n\n // row selection\n if (table.options.enableRowSelection) {\n attributes['data-row-selected'] = row.getIsSelected() || row.getIsAllSubRowsSelected() ? true : undefined;\n }\n\n let expandedRow;\n\n if (tableMeta.rowExpansion.isEnabled && row.getIsExpanded()) {\n attributes['data-row-expanded'] = true;\n expandedRow = tableMeta.rowExpansion.rowExpansionRenderer?.(row.original)?.();\n }\n\n const rowMeta = (row.original as ReportRowWithMetaData<TType>)._meta;\n\n if (rowMeta) {\n if (rowMeta.layout) {\n attributes['data-row-meta-layout'] = rowMeta.layout;\n }\n }\n\n const ref = React.useRef<HTMLTableRowElement>(null);\n const expansionRef = React.useRef<HTMLTableRowElement>(null);\n const isExpanded = !!attributes['data-row-expanded'];\n\n useSetVirtualisedRowHeight(measureRow, ref.current, expansionRef.current, isExpanded);\n\n const className = cn('group/row', {\n 'hover:cursor-pointer': typeof attributes.onClick === 'function',\n });\n\n return (\n <>\n <tr {...attributes} className={className} ref={ref}>\n {row.getVisibleCells().map((cell, cellIndex) => (\n <Cell key={cell.id} cell={cell} index={cellIndex} />\n ))}\n </tr>\n {expandedRow ? (\n <tr data-row-parent-id={row.id} ref={expansionRef}>\n <td className=\"col-span-full\">{expandedRow}</td>\n </tr>\n ) : null}\n </>\n );\n}) as <TType = unknown>(props: DisplayRowProps<TType>) => JSX.Element;\n\nconst clickableElements = ['input', 'button', 'a', 'select', 'option', 'label', 'textarea'];\n\nfunction useSetVirtualisedRowHeight(\n measureRow: (size: number, expansionHeight?: number) => void,\n rowEl: HTMLTableRowElement | null,\n expansionEl: HTMLTableRowElement | null,\n isExpanded: boolean\n) {\n React.useEffect(() => {\n if (rowEl) {\n const height = rowEl.getBoundingClientRect().height;\n\n if (isExpanded && expansionEl) {\n measureRow(height, expansionEl.getBoundingClientRect().height);\n } else {\n measureRow(height);\n }\n }\n }, [isExpanded, rowEl, expansionEl]);\n}\n"],"names":["DisplayRow","React","memo","props","index","measureRow","row","table","setIsHovered","useContext","RowContext","tableMeta","options","meta","attributes","id","onMouseEnter","useCallback","onMouseLeave","tabIndex","handleClick","event","clickedElement","target","_event$currentTarget","currentTarget","contains","clickableElements","includes","tagName","toLowerCase","closest","map","tag","join","rowClick","original","handleClickCapture","requestAnimationFrame","rowActive","setRowActiveIndex","isEnabled","rowActiveIndex","undefined","onClickCapture","onClick","enableGrouping","getIsGrouped","enableRowSelection","getIsSelected","getIsAllSubRowsSelected","expandedRow","rowExpansion","getIsExpanded","_tableMeta$rowExpansi","_tableMeta$rowExpansi2","_tableMeta$rowExpansi3","rowExpansionRenderer","call","rowMeta","_meta","layout","ref","useRef","expansionRef","isExpanded","useSetVirtualisedRowHeight","current","className","cn","getVisibleCells","cell","cellIndex","Cell","key","rowEl","expansionEl","useEffect","height","getBoundingClientRect"],"mappings":";;;;;MAcaA,UAAU,gBAAGC,cAAK,CAACC,IAAI,CAAC,SAASF,UAAUA,CAAkBG,KAA6B;EACnG,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC,GAAG;IAAEC;GAAO,GAAGJ,KAAK;EAC/C,MAAM;IAAEK;GAAc,GAAGP,cAAK,CAACQ,UAAU,CAACC,UAAU,CAAC;EACrD,MAAMC,SAAS,GAAGJ,KAAK,CAACK,OAAO,CAACC,IAA6B;EAE7D,MAAMC,UAAU,GAAQ;IACpB,aAAa,EAAER,GAAG,CAACS,EAAE;IACrB,gBAAgB,EAAEX,KAAK;IACvBY,YAAY,EAAEf,cAAK,CAACgB,WAAW,CAAC,MAAMT,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;IAC7DU,YAAY,EAAEjB,cAAK,CAACgB,WAAW,CAAC,MAAMT,YAAY,CAAC,KAAK,C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B,sBAAsB,EAAE,OAAOvD,UAAU,CAAC+B,OAAO,KAAK;GACzD,CAAC;EAEF,oBACI5C,yEACIA,qDAAQa,UAAU;IAAEsD,SAAS,EAAEA,SAAS;IAAEN,GAAG,EAAEA;MAC1CxD,GAAG,CAACgE,eAAe,EAAE,CAACtC,GAAG,CAAC,CAACuC,IAAI,EAAEC,SAAS,oBACvCvE,6BAACwE,IAAI;IAACC,GAAG,EAAEH,IAAI,CAACxD,EAAE;IAAEwD,IAAI,EAAEA,IAAI;IAAEnE,KAAK,EAAEoE;IAAa,CACvD,CAAC,CACD,EACJrB,WAAW,kBACRlD;0BAAwBK,GAAG,CAACS,EAAE;IAAE+C,GAAG,EAAEE;kBACjC/D;IAAImE,SAAS,EAAC;KAAiBjB,WAAW,CAAM,CAC/C,IACL,IAAI,CACT;AAEX,CAAC;AAED,MAAMxB,iBAAiB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC;AAE3F,SAASuC,0BAA0BA,CAC/B7D,UAA4D,EAC5DsE,KAAiC,EACjCC,WAAuC,EACvCX,UAAmB;EAEnBhE,cAAK,CAAC4E,SAAS,CAAC;IACZ,IAAIF,KAAK,EAAE;MACP,MAAMG,MAAM,GAAGH,KAAK,CAACI,qBAAqB,EAAE,CAACD,MAAM;MAEnD,IAAIb,UAAU,IAAIW,WAAW,EAAE;QAC3BvE,UAAU,CAACyE,MAAM,EAAEF,WAAW,CAACG,qBAAqB,EAAE,CAACD,MAAM,CAAC;OACjE,MAAM;QACHzE,UAAU,CAACyE,MAAM,CAAC;;;GAG7B,EAAE,CAACb,UAAU,EAAEU,KAAK,EAAEC,WAAW,CAAC,CAAC;AACxC;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Row.js","sources":["../../../../../../../../../src/components/Report/components/Row/Row.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, Row as ReactTableRow } from '@tanstack/react-table';\nimport { SkeletonRow } from './SkeletonRow';\nimport { DisplayRow } from './DisplayRow';\nimport { RowContext } from './RowContext';\n\nexport type RowProps<TType = unknown> = React.HTMLAttributes<HTMLTableRowElement> & {\n index: number;\n measureRow: (size: number, expansionHeight?: number) => void;\n row: ReactTableRow<TType>;\n table: ReactTable<TType>;\n};\n\n/* anonymous functions will break the memoisation on each render, wrap handlers in callbacks */\nexport function Row<TType = unknown>(props: RowProps<TType>) {\n // context - it must be here for cells to read it, since they render alongside the row\n const [isHovered, setIsHovered] = React.useState(false);\n const contextValue = React.useMemo(() => ({ isHovered, setIsHovered, rowIndex: props.index }), [isHovered]);\n\n if (props.row.original === undefined) {\n return <SkeletonRow {...props} />;\n }\n\n return (\n <RowContext.Provider value={contextValue}>\n <DisplayRow<TType> {...props} />\n </RowContext.Provider>\n );\n}\n"],"names":["Row","props","isHovered","setIsHovered","React","useState","contextValue","useMemo","rowIndex","index","row","original","undefined","SkeletonRow","RowContext","Provider","value","DisplayRow"],"mappings":";;;;;AAaA;SACgBA,GAAGA,CAAkBC,KAAsB;;EAEvD,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAC,KAAK,CAAC;EACvD,MAAMC,YAAY,GAAGF,cAAK,CAACG,OAAO,CAAC,OAAO;IAAEL,SAAS;IAAEC,YAAY;IAAEK,QAAQ,EAAEP,KAAK,CAACQ;GAAO,CAAC,EAAE,CAACP,SAAS,CAAC,CAAC;EAE3G,IAAID,KAAK,CAACS,GAAG,CAACC,QAAQ,KAAKC,SAAS,EAAE;IAClC,oBAAOR,6BAACS,WAAW,oBAAKZ,KAAK,EAAI;;EAGrC,oBACIG,6BAACU,UAAU,CAACC,QAAQ;IAACC,KAAK,EAAEV;kBACxBF,6BAACa,UAAU,oBAAYhB,KAAK,EAAI,CACd;AAE9B;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RowContext.js","sources":["../../../../../../../../../src/components/Report/components/Row/RowContext.tsx"],"sourcesContent":["import React from 'react';\n\ntype RowContextValue = {\n isHovered: boolean;\n setIsHovered: (value: boolean) => void;\n rowIndex: number;\n};\n\nexport const RowContext = React.createContext<RowContextValue>({\n isHovered: false,\n setIsHovered: () => undefined,\n rowIndex: -1,\n});\n"],"names":["RowContext","React","createContext","isHovered","setIsHovered","undefined","rowIndex"],"mappings":";;MAQaA,UAAU,gBAAGC,cAAK,CAACC,aAAa,CAAkB;EAC3DC,SAAS,EAAE,KAAK;EAChBC,YAAY,EAAEA,MAAMC,SAAS;EAC7BC,QAAQ,EAAE,CAAC;CACd;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SkeletonRow.js","sources":["../../../../../../../../../src/components/Report/components/Row/SkeletonRow.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta, Row as ReactTableRow } from '@tanstack/react-table';\nimport { useInView } from 'react-intersection-observer';\n\nexport type RowProps<TType = unknown> = {\n index: number;\n row: ReactTableRow<TType>;\n table: ReactTable<TType>;\n};\n\nexport function SkeletonRow<TType = unknown>(props: RowProps<TType>) {\n const { index, row, table } = props;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n if (tableMeta.server.isEnabled) {\n return <RowWithServerLoading {...props} index={index} />;\n }\n\n return <Skeleton id={row.id} cells={row.getVisibleCells()} />;\n}\n\nexport function RowWithServerLoading<TType = unknown>(props: RowProps<TType>) {\n const { index, row, table } = props;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const pageIndex = (Math.floor(index / tableMeta.server.pageSize) * tableMeta.server.pageSize) / tableMeta.server.pageSize;\n\n const { ref, inView } = useInView({\n threshold: 0,\n triggerOnce: true,\n initialInView: pageIndex === 0,\n });\n\n React.useEffect(() => {\n if (inView) {\n tableMeta.server.loadPage?.(\n pageIndex,\n table.getState().sorting,\n table.getState().columnFilters,\n table.getState().globalFilter\n );\n }\n }, [inView]);\n\n return <Skeleton cells={row.getVisibleCells()} ref={ref} />;\n}\n\nexport const Skeleton = React.forwardRef(function Skeleton(props: any, ref: React.Ref<HTMLTableRowElement>) {\n const { cells } = props;\n\n return (\n <>\n <tr ref={ref}>\n {cells.map(cell => (\n <td key={cell.id}>\n <span className=\"bg-grey-100 text-grey-700 h-4 w-full text-center text-xs\" />\n </td>\n ))}\n </tr>\n </>\n );\n});\n"],"names":["SkeletonRow","props","index","row","table","tableMeta","options","meta","server","isEnabled","React","RowWithServerLoading","Skeleton","id","cells","getVisibleCells","pageIndex","Math","floor","pageSize","ref","inView","useInView","threshold","triggerOnce","initialInView","useEffect","_tableMeta$server$loa","_tableMeta$server","loadPage","call","getState","sorting","columnFilters","globalFilter","forwardRef","map","cell","key","className"],"mappings":";;;SAUgBA,WAAWA,CAAkBC,KAAsB;EAC/D,MAAM;IAAEC,KAAK;IAAEC,GAAG;IAAEC;GAAO,GAAGH,KAAK;EACnC,MAAMI,SAAS,GAAGD,KAAK,CAACE,OAAO,CAACC,IAA6B;EAE7D,IAAIF,SAAS,CAACG,MAAM,CAACC,SAAS,EAAE;IAC5B,oBAAOC,6BAACC,oBAAoB,oBAAKV,KAAK;MAAEC,KAAK,EAAEA;OAAS;;EAG5D,oBAAOQ,6BAACE,QAAQ;IAACC,EAAE,EAAEV,GAAG,CAACU,EAAE;IAAEC,KAAK,EAAEX,GAAG,CAACY,eAAe;IAAM;AACjE;SAEgBJ,oBAAoBA,CAAkBV,KAAsB;EACxE,MAAM;IAAEC,KAAK;IAAEC,GAAG;IAAEC;GAAO,GAAGH,KAAK;EACnC,MAAMI,SAAS,GAAGD,KAAK,CAACE,OAAO,CAACC,IAA6B;EAE7D,MAAMS,SAAS,GAAIC,IAAI,CAACC,KAAK,CAAChB,KAAK,GAAGG,SAAS,CAACG,MAAM,CAACW,QAAQ,CAAC,GAAGd,SAAS,CAACG,MAAM,CAACW,QAAQ,GAAId,SAAS,CAACG,MAAM,CAACW,QAAQ;EAEzH,MAAM;IAAEC,GAAG;IAAEC;GAAQ,GAAGC,SAAS,CAAC;IAC9BC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,IAAI;IACjBC,aAAa,EAAET,SAAS,KAAK;GAChC,CAAC;EAEFN,cAAK,CAACgB,SAAS,CAAC;IACZ,IAAIL,MAAM,EAAE;MAAA,IAAAM,qBAAA,EAAAC,iBAAA;MACR,CAAAD,qBAAA,IAAAC,iBAAA,GAAAvB,SAAS,CAACG,MAAM,EAACqB,QAAQ,cAAAF,qBAAA,uBAAzBA,qBAAA,CAAAG,IAAA,CAAAF,iBAAA,EACIZ,SAAS,EACTZ,KAAK,CAAC2B,QAAQ,EAAE,CAACC,OAAO,EACxB5B,KAAK,CAAC2B,QAAQ,EAAE,CAACE,aAAa,EAC9B7B,KAAK,CAAC2B,QAAQ,EAAE,CAACG,YAAY,CAChC;;GAER,EAAE,CAACb,MAAM,CAAC,CAAC;EAEZ,oBAAOX,6BAACE,QAAQ;IAACE,KAAK,EAAEX,GAAG,CAACY,eAAe,EAAE;IAAEK,GAAG,EAAEA;IAAO;AAC/D;MAEaR,QAAQ,gBAAGF,cAAK,CAACyB,UAAU,CAAC,SAASvB,QAAQA,CAACX,KAAU,EAAEmB,GAAmC;EACtG,MAAM;IAAEN;GAAO,GAAGb,KAAK;EAEvB,oBACIS,yEACIA;IAAIU,GAAG,EAAEA;KACJN,KAAK,CAACsB,GAAG,CAACC,IAAI,mBACX3B;IAAI4B,GAAG,EAAED,IAAI,CAACxB;kBACVH;IAAM6B,SAAS,EAAC;IAA6D,CAC5E,CACR,CAAC,CACD,CACN;AAEX,CAAC;;;;"}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import React__default from 'react';
|
2
|
-
import { Group } from '../../../Group/Group.js';
|
3
|
-
import { Search } from './components/Search/Search.js';
|
4
|
-
import { Settings } from './components/Settings/Settings.js';
|
5
|
-
import { Print } from './components/Print/Print.js';
|
6
|
-
import { Filters } from './components/Filters/Filters.js';
|
7
|
-
|
8
|
-
function Toolbar(props) {
|
9
|
-
const {
|
10
|
-
customSettings,
|
11
|
-
left,
|
12
|
-
length,
|
13
|
-
right,
|
14
|
-
scrollToIndex,
|
15
|
-
table,
|
16
|
-
tableId,
|
17
|
-
tableRef
|
18
|
-
} = props;
|
19
|
-
const tableMeta = table.options.meta;
|
20
|
-
if (!isToolbarVisible(props, customSettings)) {
|
21
|
-
return null;
|
22
|
-
}
|
23
|
-
const canFilter = table.options.enableColumnFilters;
|
24
|
-
const canPrint = tableMeta.printing.isEnabled;
|
25
|
-
const canSettings = canChangeSettings(table, customSettings);
|
26
|
-
const canSearch = tableMeta.search.isEnabled;
|
27
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
28
|
-
className: "mb-4 flex flex-shrink flex-grow-0 flex-wrap gap-2 print:hidden",
|
29
|
-
"data-taco": "report-toolbar"
|
30
|
-
}, left, /*#__PURE__*/React__default.createElement(Group, {
|
31
|
-
className: "ml-auto flex-shrink-0 print:hidden"
|
32
|
-
}, canFilter ? /*#__PURE__*/React__default.createElement(Filters, {
|
33
|
-
length: length,
|
34
|
-
table: table
|
35
|
-
}) : null, right, canPrint ? /*#__PURE__*/React__default.createElement(Print, {
|
36
|
-
table: table,
|
37
|
-
tableId: tableId,
|
38
|
-
tableRef: tableRef
|
39
|
-
}) : null, canSettings ? /*#__PURE__*/React__default.createElement(Settings, {
|
40
|
-
customSettings: customSettings,
|
41
|
-
table: table
|
42
|
-
}) : null, canSearch ? /*#__PURE__*/React__default.createElement(Search, {
|
43
|
-
scrollToIndex: scrollToIndex,
|
44
|
-
table: table
|
45
|
-
}) : null));
|
46
|
-
}
|
47
|
-
function canChangeSettings(table, customSettings) {
|
48
|
-
const tableMeta = table.options.meta;
|
49
|
-
return table.options.enableHiding || tableMeta.columnOrdering.isEnabled || tableMeta.fontSize.isEnabled || tableMeta.rowHeight.isEnabled || typeof customSettings === 'function';
|
50
|
-
}
|
51
|
-
function isToolbarVisible(props, customSettings) {
|
52
|
-
const {
|
53
|
-
left,
|
54
|
-
right,
|
55
|
-
table
|
56
|
-
} = props;
|
57
|
-
const tableMeta = table.options.meta;
|
58
|
-
const hasInternalToolbar = table.options.enableColumnFilters || tableMeta.printing.isEnabled || canChangeSettings(table, customSettings) || tableMeta.search.isEnabled;
|
59
|
-
return hasInternalToolbar || !!left || !!right;
|
60
|
-
}
|
61
|
-
|
62
|
-
export { Toolbar };
|
63
|
-
//# sourceMappingURL=Toolbar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Toolbar.js","sources":["../../../../../../../../../src/components/Report/components/Toolbar/Toolbar.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { Group } from '../../../Group/Group';\nimport { Search } from './components/Search/Search';\nimport { Settings } from './components/Settings/Settings';\nimport { Print } from './components/Print/Print';\nimport { Filters } from './components/Filters/Filters';\nimport { TableRef } from '../../../../primitives/Table/types';\nimport { ReportCustomSettingsRenderer } from '../../types';\n\nexport type ToolbarProps<TType = unknown> = {\n customSettings?: ReportCustomSettingsRenderer;\n left?: JSX.Element;\n length: number;\n right?: JSX.Element;\n scrollToIndex: (index: number) => void;\n table: ReactTable<TType>;\n tableId: string;\n tableRef: React.RefObject<TableRef>;\n};\n\nexport function Toolbar<TType = unknown>(props: ToolbarProps<TType>) {\n const { customSettings, left, length, right, scrollToIndex, table, tableId, tableRef } = props;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n if (!isToolbarVisible(props, customSettings)) {\n return null;\n }\n\n const canFilter = table.options.enableColumnFilters;\n const canPrint = tableMeta.printing.isEnabled;\n const canSettings = canChangeSettings(table, customSettings);\n const canSearch = tableMeta.search.isEnabled;\n\n return (\n <div className=\"mb-4 flex flex-shrink flex-grow-0 flex-wrap gap-2 print:hidden\" data-taco=\"report-toolbar\">\n {left}\n <Group className=\"ml-auto flex-shrink-0 print:hidden\">\n {canFilter ? <Filters length={length} table={table} /> : null}\n {right}\n {canPrint ? <Print table={table} tableId={tableId} tableRef={tableRef} /> : null}\n {canSettings ? <Settings customSettings={customSettings} table={table} /> : null}\n {canSearch ? <Search scrollToIndex={scrollToIndex} table={table} /> : null}\n </Group>\n </div>\n );\n}\n\nfunction canChangeSettings<TType = unknown>(table: ReactTable<TType>, customSettings?: ReportCustomSettingsRenderer) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n return (\n table.options.enableHiding ||\n tableMeta.columnOrdering.isEnabled ||\n tableMeta.fontSize.isEnabled ||\n tableMeta.rowHeight.isEnabled ||\n typeof customSettings === 'function'\n );\n}\n\nfunction isToolbarVisible<TType = unknown>(props: ToolbarProps<TType>, customSettings?: ReportCustomSettingsRenderer) {\n const { left, right, table } = props;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const hasInternalToolbar =\n table.options.enableColumnFilters ||\n tableMeta.printing.isEnabled ||\n canChangeSettings(table, customSettings) ||\n tableMeta.search.isEnabled;\n\n return hasInternalToolbar || !!left || !!right;\n}\n"],"names":["Toolbar","props","customSettings","left","length","right","scrollToIndex","table","tableId","tableRef","tableMeta","options","meta","isToolbarVisible","canFilter","enableColumnFilters","canPrint","printing","isEnabled","canSettings","canChangeSettings","canSearch","search","React","className","Group","Filters","Print","Settings","Search","enableHiding","columnOrdering","fontSize","rowHeight","hasInternalToolbar"],"mappings":";;;;;;;SAqBgBA,OAAOA,CAAkBC,KAA0B;EAC/D,MAAM;IAAEC,cAAc;IAAEC,IAAI;IAAEC,MAAM;IAAEC,KAAK;IAAEC,aAAa;IAAEC,KAAK;IAAEC,OAAO;IAAEC;GAAU,GAAGR,KAAK;EAC9F,MAAMS,SAAS,GAAGH,KAAK,CAACI,OAAO,CAACC,IAA6B;EAE7D,IAAI,CAACC,gBAAgB,CAACZ,KAAK,EAAEC,cAAc,CAAC,EAAE;IAC1C,OAAO,IAAI;;EAGf,MAAMY,SAAS,GAAGP,KAAK,CAACI,OAAO,CAACI,mBAAmB;EACnD,MAAMC,QA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E7D,MAAMsB,kBAAkB,GACpB3B,KAAK,CAACI,OAAO,CAACI,mBAAmB,IACjCL,SAAS,CAACO,QAAQ,CAACC,SAAS,IAC5BE,iBAAiB,CAACb,KAAK,EAAEL,cAAc,CAAC,IACxCQ,SAAS,CAACY,MAAM,CAACJ,SAAS;EAE9B,OAAOgB,kBAAkB,IAAI,CAAC,CAAC/B,IAAI,IAAI,CAAC,CAACE,KAAK;AAClD;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Filters.js","sources":["../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/Filters.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\nimport { useIsLargeScreen } from '../../../../../../hooks/useIsLargeScreen';\nimport { useLocalization } from '../../../../../Provider/Localization';\nimport { IconButton } from '../../../../../IconButton/IconButton';\nimport { Button } from '../../../../../Button/Button';\nimport { Icon } from '../../../../../Icon/Icon';\nimport { Shortcut } from '../../../../../Shortcut/Shortcut';\nimport { ManageFiltersPopover } from './ManageFiltersPopover';\nimport { TableFilter } from '../../../../../../primitives/Table/types';\nimport { isEmptyFilter } from './util';\n\nexport type FiltersProps<TType = unknown> = {\n length: number;\n table: ReactTable<TType>;\n};\n\nexport function Filters<TType = unknown>(props: FiltersProps<TType>) {\n const { length, table } = props;\n const { texts } = useLocalization();\n const isLargeScreen = useIsLargeScreen();\n const columnFilters = table.getState().columnFilters as TableFilter[];\n const appliedFilters = columnFilters.filter(f => !isEmptyFilter(f));\n const ref = React.useRef<HTMLButtonElement>(null);\n\n const shortcut = { key: 'f', meta: true, shift: true };\n\n const buttonProps = {\n 'aria-label': texts.table3.filters.tooltip,\n className: appliedFilters.length ? '!wcag-blue-100' : undefined,\n popover: popoverProps => <ManageFiltersPopover {...popoverProps} length={length} table={table} />,\n shortcut,\n ref,\n tooltip: (\n <>\n {texts.table3.filters.tooltip}\n <Shortcut className=\"ml-2\" keys={shortcut} />\n </>\n ),\n };\n\n React.useEffect(() => {\n const emptyFilter = columnFilters.find(isEmptyFilter);\n\n // we set an empty filter when adding a filter through a column header.\n if (emptyFilter) {\n ref.current?.click();\n }\n }, [columnFilters]);\n\n if (!isLargeScreen && !appliedFilters.length) {\n return <IconButton {...buttonProps} icon=\"filter\" />;\n }\n\n return (\n <Button {...buttonProps}>\n <Icon className={!isLargeScreen ? '-mr-1.5' : undefined} name={appliedFilters.length ? 'filter-solid' : 'filter'} />\n {isLargeScreen ? texts.table3.filters.button : ''}\n {appliedFilters.length ? `(${appliedFilters.length})` : ''}\n </Button>\n );\n}\n"],"names":["Filters","props","length","table","texts","useLocalization","isLargeScreen","useIsLargeScreen","columnFilters","getState","appliedFilters","filter","f","isEmptyFilter","ref","React","useRef","shortcut","key","meta","shift","buttonProps","table3","filters","tooltip","className","undefined","popover","popoverProps","ManageFiltersPopover","Shortcut","keys","useEffect","emptyFilter","find","_ref$current","current","click","IconButton","icon","Button","Icon","name","button"],"mappings":";;;;;;;;;;SAiBgBA,OAAOA,CAAkBC,KAA0B;EAC/D,MAAM;IAAEC,MAAM;IAAEC;GAAO,GAAGF,KAAK;EAC/B,MAAM;IAAEG;GAAO,GAAGC,eAAe,EAAE;EACnC,MAAMC,aAAa,GAAGC,gBAAgB,EAAE;EACxC,MAAMC,aAAa,GAAGL,KAAK,CAACM,QAAQ,EAAE,CAACD,aAA8B;EACrE,MAAME,cAAc,GAAGF,aAAa,CAACG,MAAM,CAACC,CAAC,IAAI,CAACC,aAAa,CAACD,CAAC,CAAC,CAAC;EACnE,MAAME,GAAG,GAAGC,cAAK,CAACC,MAAM,CAAoB,IAAI,CAAC;EAEjD,MAAMC,QAAQ,GAAG;IAAEC,GAAG,EAAE,GAAG;IAAEC,IAAI,EAAE,IAAI;IAAEC,KAAK,EAAE;GAAM;EAEtD,MAAMC,WAAW,GAAG;IAChB,YAAY,EAAEjB,KAAK,CAACkB,MAAM,CAACC,OAAO,CAACC,OAAO;IAC1CC,SAAS,EAAEf,cAAc,CAACR,MAAM,GAAG,gBAAgB,GAAGwB,SAAS;IAC/DC,OAAO,EAAEC,YAAY,iBAAIb,6BAACc,oBAAoB,oBAAKD,YAAY;MAAE1B,MAAM,EAAEA,MAAM;MAAEC,KAAK,EAAEA;OAAS;IACjGc,QAAQ;IACRH,GAAG;IACHU,OAAO,iBACHT,4DACKX,KAAK,CAACkB,MAAM,CAACC,OAAO,CAACC,OAAO,eAC7BT,6BAACe,QAAQ;MAACL,SAAS,EAAC,MAAM;MAACM,IAAI,EAAEd;MAAY,CAC9C;GAEV;EAEDF,cAAK,CAACiB,SAAS,CAAC;IACZ,MAAMC,WAAW,GAAGzB,aAAa,CAAC0B,IAAI,CAACrB,aAAa,CAAC;;IAGrD,IAAIoB,WAAW,EAAE;MAAA,IAAAE,YAAA;MACb,CAAAA,YAAA,GAAArB,GAAG,CAACsB,OAAO,cAAAD,YAAA,uBAAXA,YAAA,CAAaE,KAAK,EAAE;;GAE3B,EAAE,CAAC7B,aAAa,CAAC,CAAC;EAEnB,IAAI,CAACF,aAAa,IAAI,CAACI,cAAc,CAACR,MAAM,EAAE;IAC1C,oBAAOa,6BAACuB,UAAU,oBAAKjB,WAAW;MAAEkB,IAAI,EAAC;OAAW;;EAGxD,oBACIxB,6BAACyB,MAAM,oBAAKnB,WAAW,gBACnBN,6BAAC0B,IAAI;IAAChB,SAAS,EAAE,CAACnB,aAAa,GAAG,SAAS,GAAGoB,SAAS;IAAEgB,IAAI,EAAEhC,cAAc,CAACR,MAAM,GAAG,cAAc,GAAG;IAAY,EACnHI,aAAa,GAAGF,KAAK,CAACkB,MAAM,CAACC,OAAO,CAACoB,MAAM,GAAG,EAAE,EAChDjC,cAAc,CAACR,MAAM,OAAOQ,cAAc,CAACR,SAAS,GAAG,EAAE,CACrD;AAEjB;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ManageFiltersPopover.js","sources":["../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\nimport { Popover } from '../../../../../Popover/Popover';\nimport { useLocalization } from '../../../../../Provider/Localization';\nimport { Button } from '../../../../../Button/Button';\nimport { Group } from '../../../../../Group/Group';\nimport { isEmptyFilter, sortByHeader } from './util';\nimport { isInternalColumn } from '../../../../../../primitives/Table/useTableManager/util/columns';\nimport { TableFilter, TableFilterComparator, TableFilterValue } from '../../../../../../primitives/Table/types';\nimport { Filter } from './components/Filter';\n\nexport type ManageFiltersPopoverProps<TType = unknown> = {\n length: number;\n table: ReactTable<TType>;\n};\n\nconst placeholderFilter: TableFilter = { id: '', value: { comparator: TableFilterComparator.Contains, value: undefined } };\n\nexport function ManageFiltersPopover<TType = unknown>(props: ManageFiltersPopoverProps<TType>) {\n const { length, table, ...popoverProps } = props;\n const { locale, texts } = useLocalization();\n\n const allColumns = table\n .getAllLeafColumns()\n .filter(column => !isInternalColumn(column.id))\n .sort(sortByHeader);\n\n const columnFilters = table.getState().columnFilters as TableFilter[];\n\n // state, since we \"apply\" filters - our filter values have a special shape, so we force to our type\n const [filters, setFilters] = React.useState<TableFilter[]>(columnFilters.length ? columnFilters : [placeholderFilter]);\n\n // this runs if filters are set outside (e.g. through column header)\n React.useEffect(() => {\n setFilters(columnFilters.length === 0 ? [placeholderFilter] : columnFilters);\n\n // focus the filter value, as we preset the column/comparator.\n requestAnimationFrame(() => {\n const filterValues = document.querySelectorAll('[data-query-selector=\"filter-value\"]');\n const lastFilter = filterValues.length ? filterValues[filterValues.length - 1] : undefined;\n\n (lastFilter as HTMLElement)?.focus();\n });\n }, [columnFilters]);\n\n // filters\n const handleChangeFilter = (position: number, filter: { id: string; value: TableFilterValue }) => {\n setFilters(currentFilters => {\n return currentFilters.map((current, index) => {\n if (index === position) {\n return filter;\n }\n return current;\n });\n });\n };\n\n const handleRemoveFilter = position => {\n if (filters.length === 1) {\n setFilters([placeholderFilter]);\n return;\n }\n\n setFilters(currentFilters => currentFilters.filter((_, index) => index !== position));\n };\n\n const handleCreate = () => {\n setFilters(filters.concat(placeholderFilter));\n };\n\n //\n const handleApply = () => {\n table.setColumnFilters(() => {\n const newFilters = filters.filter(f => {\n if (f.id === null || f.id === '') {\n return false;\n }\n\n const controlRenderer = allColumns.find(c => c.id === f.id)?.columnDef.meta?.control;\n\n if (\n f.value.comparator === TableFilterComparator.IsEmpty ||\n f.value.comparator === TableFilterComparator.IsNotEmpty ||\n controlRenderer === 'switch'\n ) {\n return true;\n }\n\n return !!f.value.value;\n });\n\n return newFilters;\n });\n };\n\n const handleClear = () => {\n table.resetColumnFilters();\n setFilters([placeholderFilter]);\n };\n\n const handleClose = (open: boolean) => {\n if (!open) {\n const nonEmptyFilters = columnFilters.filter(f => !isEmptyFilter(f));\n table.setColumnFilters(nonEmptyFilters);\n setFilters(nonEmptyFilters.length === 0 ? [placeholderFilter] : nonEmptyFilters);\n }\n };\n\n return (\n <Popover {...popoverProps} onChange={handleClose}>\n <Popover.Content>\n <div className=\"flex w-[40rem] flex-col gap-4\">\n <div className=\"flex h-8\">\n <div className=\"flex w-full items-center gap-2\">\n <h4 className=\"mb-0 inline-flex\">{texts.table3.filters.button}</h4>\n <p className=\"text-grey-700 mb-0 mr-auto mt-px inline-flex\">\n {texts.table3.filters.total\n .replace(\n '[CURRENT]',\n new Intl.NumberFormat(locale).format(table.getFilteredRowModel().rows.length)\n )\n .replace('[TOTAL]', new Intl.NumberFormat(locale).format(length))}\n </p>\n </div>\n </div>\n <div className=\"flex flex-col gap-2\">\n {filters.map((filter, index) => (\n <Filter\n key={`filter_${index}`}\n allColumns={allColumns}\n filter={filter}\n filters={filters}\n position={index}\n onChange={handleChangeFilter}\n onRemove={\n (filters.length > 0 && filters.some(f => f.id)) || filters.length > 1\n ? handleRemoveFilter\n : undefined\n }\n />\n ))}\n <div className=\"justify-start\">\n <Button appearance=\"discrete\" onClick={handleCreate}>\n + {texts.table3.filters.buttons.addFilter}\n </Button>\n </div>\n </div>\n <Group className=\"ml-auto\">\n <Popover.Close>\n <Button>Cancel</Button>\n </Popover.Close>\n <Button onClick={handleClear}>Clear</Button>\n <Button appearance=\"primary\" onClick={handleApply}>\n Apply\n </Button>\n </Group>\n </div>\n </Popover.Content>\n </Popover>\n );\n}\n"],"names":["placeholderFilter","id","value","comparator","TableFilterComparator","Contains","undefined","ManageFiltersPopover","props","length","table","popoverProps","locale","texts","useLocalization","allColumns","getAllLeafColumns","filter","column","isInternalColumn","sort","sortByHeader","columnFilters","getState","filters","setFilters","React","useState","useEffect","requestAnimationFrame","filterValues","document","querySelectorAll","lastFilter","focus","handleChangeFilter","position","currentFilters","map","current","index","handleRemoveFilter","_","handleCreate","concat","handleApply","setColumnFilters","newFilters","f","controlRenderer","_allColumns$find","find","c","_allColumns$find$colu","columnDef","meta","control","IsEmpty","IsNotEmpty","handleClear","resetColumnFilters","handleClose","open","nonEmptyFilters","isEmptyFilter","Popover","onChange","Content","className","table3","button","total","replace","Intl","NumberFormat","format","getFilteredRowModel","rows","Filter","key","onRemove","some","Button","appearance","onClick","buttons","addFilter","Group","Close"],"mappings":";;;;;;;;;;AAgBA,MAAMA,iBAAiB,GAAgB;EAAEC,EAAE,EAAE,EAAE;EAAEC,KAAK,EAAE;IAAEC,UAAU,EAAEC,qBAAqB,CAACC,QAAQ;IAAEH,KAAK,EAAEI;;CAAa;SAE1GC,oBAAoBA,CAAkBC,KAAuC;EACzF,MAAM;IAAEC,MAAM;IAAEC,KAAK;IAAE,GAAGC;GAAc,GAAGH,KAAK;EAChD,MAAM;IAAEI,MAAM;IAAEC;GAAO,GAAGC,eAAe,EAAE;EAE3C,MAAMC,UAAU,GAAGL,KAAK,CACnBM,iBAAiB,EAAE,CACnBC,MAAM,CAACC,MAAM,IAAI,CAACC,gBAAgB,CAACD,MAAM,CAACjB,EAAE,CAAC,CAAC,CAC9CmB,IAAI,CAACC,YAAY,CAAC;EAEvB,MAAMC,aAAa,GAAGZ,KAAK,CAACa,QAAQ,EAAE,CAACD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AC,UAAU;IAACC,OAAO,EAAEzC;WAChC9B,KAAK,CAACwD,MAAM,CAAC7C,OAAO,CAAC6D,OAAO,CAACC,SAAS,CACpC,CACP,CACJ,eACN5D,6BAAC6D,KAAK;IAACnB,SAAS,EAAC;kBACb1C,6BAACuC,OAAO,CAACuB,KAAK,qBACV9D,6BAACwD,MAAM,iBAAgB,CACX,eAChBxD,6BAACwD,MAAM;IAACE,OAAO,EAAEzB;aAA2B,eAC5CjC,6BAACwD,MAAM;IAACC,UAAU,EAAC,SAAS;IAACC,OAAO,EAAEvC;aAE7B,CACL,CACN,CACQ,CACZ;AAElB;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Filter.js","sources":["../../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/components/Filter.tsx"],"sourcesContent":["import React from 'react';\nimport { Column as ReactTableColumn } from '@tanstack/react-table';\nimport { IconButton } from '../../../../../../IconButton/IconButton';\nimport { useLocalization } from '../../../../../../Provider/Localization';\nimport { FilterColumn } from './FilterColumn';\nimport { FilterComparator } from './FilterComparator';\nimport { FilterValue } from './FilterValue';\nimport { TableFilter, TableFilterComparator } from '../../../../../../../primitives/Table/types';\n\nexport type FilterProps<TType = unknown> = {\n allColumns: ReactTableColumn<TType, unknown>[];\n filter: TableFilter;\n filters: TableFilter[];\n position: number;\n onChange: (position: number, value: TableFilter) => void;\n onRemove?: (position: number) => void;\n};\n\nexport function Filter<TType = unknown>(props: FilterProps<TType>) {\n const { allColumns, filter, filters, onChange: handleChange, onRemove, position } = props;\n const { texts } = useLocalization();\n const column = allColumns.find(c => c.id === filter.id);\n const ref = React.useRef<HTMLButtonElement>(null);\n\n const {\n id,\n value: { comparator, value },\n } = filter;\n\n const handleChangeColumn = (columnId: string) => {\n const previousColumn = allColumns.find(column => column.id === id);\n const nextColumn = allColumns.find(column => column.id === columnId);\n // UX requirement: if old column data type is the same as next column data type,\n // then we applying the same filter value for the next column,\n // but when data types are different, we're reseting comparator ans value for the next column\n const value =\n previousColumn?.columnDef.meta?.dataType === nextColumn?.columnDef.meta?.dataType\n ? filter.value\n : {\n comparator: TableFilterComparator.Contains,\n value: undefined,\n };\n\n handleChange(position, { id: columnId, value });\n };\n\n const handleChangeComparator = (comparator: TableFilterComparator) => {\n let nextValue = filter.value.value;\n\n if (comparator === TableFilterComparator.IsEmpty || comparator === TableFilterComparator.IsNotEmpty) {\n nextValue = undefined;\n }\n handleChange(position, { id, value: { comparator, value: nextValue } });\n };\n\n const handleChangeValue = (value: any) => {\n handleChange(position, { id, value: { ...filter.value, value } });\n };\n\n const handleRemove = () => onRemove?.(position);\n\n React.useEffect(() => {\n if (ref.current && !id) {\n ref.current.focus(); // after adding a new filter placeholder, we want to focus it right way.\n }\n }, [id]);\n\n return (\n <div className=\"flex items-start gap-2\">\n <div className=\"flex min-h-[theme(spacing.8)] w-14 flex-shrink-0 items-center justify-end pr-2 text-right\">\n {position > 0 ? texts.table3.filters.conditions.and : texts.table3.filters.conditions.where}\n </div>\n <FilterColumn\n allColumns={allColumns as any}\n filters={filters}\n onChange={handleChangeColumn as any}\n value={id}\n ref={ref}\n />\n <FilterComparator column={column} onChange={handleChangeComparator as any} value={comparator} />\n <FilterValue column={column} comparator={comparator} onChange={handleChangeValue} value={value} />\n {onRemove ? <IconButton appearance=\"discrete\" className=\"ml-auto\" icon=\"close\" onClick={handleRemove} /> : null}\n </div>\n );\n}\n"],"names":["Filter","props","allColumns","filter","filters","onChange","handleChange","onRemove","position","texts","useLocalization","column","find","c","id","ref","React","useRef","value","comparator","handleChangeColumn","columnId","previousColumn","nextColumn","_previousColumn$colum","columnDef","meta","dataType","_nextColumn$columnDef","TableFilterComparator","Contains","undefined","handleChangeComparator","nextValue","IsEmpty","IsNotEmpty","handleChangeValue","handleRemove","useEffect","current","focus","className","table3","conditions","and","where","FilterColumn","FilterComparator","FilterValue","IconButton","appearance","icon","onClick"],"mappings":";;;;;;;;SAkBgBA,MAAMA,CAAkBC,KAAyB;EAC7D,MA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AEA,UAAU;IAAEd,QAAQ,EAAE+B,iBAAiB;IAAElB,KAAK,EAAEA;IAAS,EACjGX,QAAQ,gBAAGS,6BAACiC,UAAU;IAACC,UAAU,EAAC,UAAU;IAACT,SAAS,EAAC,SAAS;IAACU,IAAI,EAAC,OAAO;IAACC,OAAO,EAAEf;IAAgB,GAAG,IAAI,CAC7G;AAEd;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FilterColumn.js","sources":["../../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.tsx"],"sourcesContent":["import React from 'react';\nimport { Column as ReactTableColumn } from '@tanstack/react-table';\nimport { Select2, Select2Props } from '../../../../../../Select2/Select2';\nimport { Icon } from '../../../../../../Icon/Icon';\nimport { Tooltip } from '../../../../../../Tooltip/Tooltip';\nimport { useLocalization } from '../../../../../../Provider/Localization';\nimport { Field } from '../../../../../../Field/Field';\nimport { TableFilter } from '../../../../../../../primitives/Table/types';\n\nexport type FilterColumnProps<TType = unknown> = Omit<Select2Props, 'children'> & {\n allColumns: ReactTableColumn<TType, unknown>[];\n filters: TableFilter[];\n};\n\nexport const FilterColumn = React.forwardRef<HTMLButtonElement, FilterColumnProps>((props, ref) => {\n const { allColumns, filters, onChange: handleChange, value = null, ...attributes } = props;\n const { texts } = useLocalization();\n const selectedColumn = allColumns.find(column => column.id === value);\n const warning = selectedColumn && !selectedColumn.getIsVisible();\n\n return (\n <div className=\"flex flex-col\">\n <Field\n message={warning ? texts.table3.filters.hiddenColumn : undefined}\n warning={warning}\n className=\"min-h-[theme(spacing.8)]\">\n <Select2\n {...attributes}\n ref={ref}\n className=\"focus:yt-focus !w-32 flex-shrink-0 \"\n emptyValue={null}\n onChange={handleChange}\n value={value}>\n {allColumns.map(column => (\n <Select2.Option\n key={column.id}\n value={column.id}\n postfix={\n !column.getIsVisible() || column.getIsGrouped() ? (\n <Tooltip\n title={\n column.getIsGrouped()\n ? texts.table3.filters.hiddenGroupedColumn\n : texts.table3.filters.hiddenColumn\n }>\n <Icon name=\"eye-off\" className=\"text-grey-500 !h-5 !w-5\" />\n </Tooltip>\n ) : undefined\n }\n disabled={column.id !== value && (!column.getCanFilter() || !!filters.find(f => f.id === column.id))}>\n {(column.columnDef.meta?.header as string) +\n (column.parent ? ` (${column.parent?.columnDef.meta?.header})` : '')}\n </Select2.Option>\n ))}\n </Select2>\n </Field>\n </div>\n );\n});\n"],"names":["FilterColumn","React","forwardRef","props","ref","allColumns","filters","onChange","handleChange","value","attributes","texts","useLocalization","selectedColumn","find","column","id","warning","getIsVisible","className","Field","message","table3","hiddenColumn","undefined","Select2","emptyValue","map","_column$columnDef$met","_column$parent","_column$parent$column","Option","key","postfix","getIsGrouped","Tooltip","title","hiddenGroupedColumn","Icon","name","disabled","getCanFilter","f","columnDef","meta","header","parent"],"mappings":";;;;;;;MAcaA,YAAY,gBAAGC,cAAK,CAACC,UAAU,CAAuC,CAACC,KAAK,EAAEC,GAAG;EAC1F,MAAM;IAAEC,UAAU;IAAEC,OAAO;IAAEC,QAAQ,EAAEC,YAAY;IAAEC,KAAK,GAAG,IAAI;IAAE,GAAGC;GAAY,GAAGP,KAAK;EAC1F,MAAM;IAAEQ;GAAO,GAAGC,eAAe,EAAE;EACnC,MAAMC,cAAc,GAAGR,UAAU,CAACS,IAAI,CAACC,MAAM,IAAIA,MAAM,CAACC,EAAE,KAAKP,KAAK,CAAC;EACrE,MAAMQ,OAAO,GAAGJ,cAAc,IAAI,CAACA,cAAc,CAACK,YAAY,EAAE;EAEhE,oBACIjB;IAAKkB,SAAS,EAAC;kBACXlB,6BAACmB,KAAK;IACFC,OAAO,EAAEJ,OAAO,GAAGN,KAAK,CAACW,MAAM,CAAChB,OAAO,CAACiB,YAAY,GAAGC,SAAS;IAChEP,OAAO,EAAEA,OAAO;IAChBE,SAAS,EAAC;kBACVlB,6BAACwB,OAAO,oBACAf,UAAU;IACdN,GAAG,EAAEA,GAAG;IACRe,SAAS,EAAC,qCAAqC;IAC/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Comparator.js","sources":["../../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.tsx"],"sourcesContent":["import React from 'react';\nimport { Column as ReactTableColumn, ColumnMeta as ReactTableColumnMeta } from '@tanstack/react-table';\nimport { Select2, Select2Props } from '../../../../../../Select2/Select2';\nimport { LocalizationTexts, useLocalization } from '../../../../../../Provider/Localization';\nimport { TableFilterComparator } from '../../../../../../../primitives/Table/types';\n\nexport type FilterComparatorProps<TType = unknown> = Omit<Select2Props, 'children'> & {\n column?: ReactTableColumn<TType, unknown>;\n};\n\nexport function FilterComparator<TType = unknown>(props: FilterComparatorProps<TType>) {\n const { column, onChange: handleChange, value, ...attributes } = props;\n const { texts } = useLocalization();\n\n const validComparators = guessComparatorsBasedOnControl(column);\n\n React.useEffect(() => {\n if (value === undefined || !validComparators.includes(value as number)) {\n handleChange?.(validComparators[0]);\n }\n }, [validComparators]);\n\n return (\n <Select2 {...attributes} className=\"!w-32 flex-shrink-0\" disabled={!column} onChange={handleChange} value={value}>\n {validComparators.map(comparator => (\n <Select2.Option key={comparator} value={comparator}>\n {getComparatorText(comparator, texts, column)}\n </Select2.Option>\n ))}\n </Select2>\n );\n}\n\nfunction guessComparatorsBasedOnControl<TType = unknown>(column?: ReactTableColumn<TType>): TableFilterComparator[] {\n const columnMeta = (column?.columnDef.meta ?? {}) as ReactTableColumnMeta<TType, unknown>;\n\n if (Array.isArray(columnMeta.filters)) {\n return (columnMeta as any).filters;\n }\n\n if (typeof columnMeta.control === 'function') {\n const renderedControl = columnMeta.control({\n onBlur: () => undefined,\n onFocus: () => undefined,\n setValue: () => undefined,\n value: undefined,\n disabled: false,\n readOnly: false,\n ref: undefined as any,\n });\n\n if (React.isValidElement(renderedControl)) {\n const { props, type } = renderedControl as any;\n\n if (type.displayName === 'Select2') {\n if (props.multiple) {\n return [\n TableFilterComparator.HasAnyOf,\n TableFilterComparator.HasAllOf,\n TableFilterComparator.IsEqualTo,\n TableFilterComparator.HasNoneOf,\n TableFilterComparator.IsEmpty,\n TableFilterComparator.IsNotEmpty,\n ];\n }\n\n return [\n TableFilterComparator.IsEqualTo,\n TableFilterComparator.IsNotEqualTo,\n TableFilterComparator.IsEmpty,\n TableFilterComparator.IsNotEmpty,\n ];\n }\n }\n }\n\n if (columnMeta.dataType === 'number') {\n return [\n TableFilterComparator.IsEqualTo,\n TableFilterComparator.IsNotEqualTo,\n TableFilterComparator.IsGreaterThan,\n TableFilterComparator.IsLessThan,\n TableFilterComparator.IsBetween,\n TableFilterComparator.IsEmpty,\n TableFilterComparator.IsNotEmpty,\n ];\n }\n\n if (columnMeta.control === 'datepicker' || columnMeta.dataType === 'datetime') {\n return [\n TableFilterComparator.IsEqualTo,\n TableFilterComparator.IsNotEqualTo,\n TableFilterComparator.IsBetween,\n TableFilterComparator.IsLessThan,\n TableFilterComparator.IsGreaterThan,\n TableFilterComparator.IsEmpty,\n TableFilterComparator.IsNotEmpty,\n TableFilterComparator.IsLessThanOrEqualTo,\n TableFilterComparator.IsGreaterThanOrEqualTo,\n ];\n }\n\n if (columnMeta.control === 'switch') {\n return [TableFilterComparator.IsEqualTo];\n }\n\n return [\n TableFilterComparator.Contains,\n TableFilterComparator.DoesNotContain,\n TableFilterComparator.IsEqualTo,\n TableFilterComparator.IsNotEqualTo,\n TableFilterComparator.IsEmpty,\n TableFilterComparator.IsNotEmpty,\n ];\n}\n\nfunction getComparatorText<TType = unknown>(\n comparator: TableFilterComparator,\n texts: LocalizationTexts,\n column?: ReactTableColumn<TType, unknown>\n) {\n const isDate = column?.columnDef?.meta?.control === 'datepicker';\n\n switch (comparator) {\n case TableFilterComparator.Contains:\n return texts.table3.filters.comparators.contains;\n\n case TableFilterComparator.DoesNotContain:\n return texts.table3.filters.comparators.doesNotContain;\n\n case TableFilterComparator.IsEqualTo:\n return texts.table3.filters.comparators.isEqualTo;\n\n case TableFilterComparator.IsNotEqualTo:\n return texts.table3.filters.comparators.isNotEqualTo;\n\n case TableFilterComparator.IsGreaterThan:\n return isDate ? texts.table3.filters.comparators.isAfter : texts.table3.filters.comparators.isGreaterThan;\n\n case TableFilterComparator.IsLessThan:\n return isDate ? texts.table3.filters.comparators.isBefore : texts.table3.filters.comparators.isLessThan;\n\n case TableFilterComparator.IsBetween:\n return texts.table3.filters.comparators.isBetween;\n\n case TableFilterComparator.IsEmpty:\n return texts.table3.filters.comparators.isEmpty;\n\n case TableFilterComparator.IsNotEmpty:\n return texts.table3.filters.comparators.isNotEmpty;\n\n case TableFilterComparator.IsLessThanOrEqualTo:\n return isDate ? texts.table3.filters.comparators.isOnOrBefore : texts.table3.filters.comparators.isLessThanOrEqualTo;\n\n case TableFilterComparator.IsGreaterThanOrEqualTo:\n return isDate\n ? texts.table3.filters.comparators.isOnOrAfter\n : texts.table3.filters.comparators.isGreaterThanOrEqualTo;\n\n case TableFilterComparator.HasAnyOf:\n return texts.table3.filters.comparators.hasAnyOf;\n\n case TableFilterComparator.HasAllOf:\n return texts.table3.filters.comparators.hasAllOf;\n\n case TableFilterComparator.HasNoneOf:\n return texts.table3.filters.comparators.hasNoneOf;\n\n default:\n return '';\n }\n}\n"],"names":["FilterComparator","props","column","onChange","handleChange","value","attributes","texts","useLocalization","validComparators","guessComparatorsBasedOnControl","React","useEffect","undefined","includes","Select2","className","disabled","map","comparator","Option","key","getComparatorText","columnMeta","_column$columnDef$met","columnDef","meta","Array","isArray","filters","control","renderedControl","onBlur","onFocus","setValue","readOnly","ref","isValidElement","type","displayName","multiple","TableFilterComparator","HasAnyOf","HasAllOf","IsEqualTo","HasNoneOf","IsEmpty","IsNotEmpty","IsNotEqualTo","dataType","IsGreaterThan","IsLessThan","IsBetween","IsLessThanOrEqualTo","IsGreaterThanOrEqualTo","Contains","DoesNotContain","isDate","_column$columnDef","_column$columnDef$met2","table3","comparators","contains","doesNotContain","isEqualTo","isNotEqualTo","isAfter","isGreaterThan","isBefore","isLessThan","isBetween","isEmpty","isNotEmpty","isOnOrBefore","isLessThanOrEqualTo","isOnOrAfter","isGreaterThan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;IAEpD,KAAKpC,qBAAqB,CAACE,QAAQ;MAC/B,OAAOpC,KAAK,CAACqD,MAAM,CAAC/B,OAAO,CAACgC,WAAW,CAACiB,QAAQ;IAEpD,KAAKrC,qBAAqB,CAACI,SAAS;MAChC,OAAOtC,KAAK,CAACqD,MAAM,CAAC/B,OAAO,CAACgC,WAAW,CAACkB,SAAS;IAErD;MACI,OAAO,EAAE;;AAErB;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FilterValue.js","sources":["../../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/components/FilterValue.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { Column as ReactTableColumn } from '@tanstack/react-table';\nimport { Input } from '../../../../../../Input/Input';\nimport { Datepicker } from '../../../../../../Datepicker/Datepicker';\nimport { Switch } from '../../../../../../Switch/Switch';\nimport { useLocalization } from '../../../../../../Provider/Localization';\nimport { TableFilterComparator } from '../../../../../../../primitives/Table/types';\n\nexport type FilterValueProps<TType = unknown> = {\n column?: ReactTableColumn<TType, unknown>;\n comparator: TableFilterComparator;\n onChange: (value: any) => void;\n value: any;\n};\n\nconst querySelector = 'filter-value';\n\nexport function FilterValue<TType = unknown>(props: FilterValueProps<TType>) {\n const { column, comparator, onChange: handleChange, value } = props;\n const { texts } = useLocalization();\n\n if (comparator === TableFilterComparator.IsEmpty || comparator === TableFilterComparator.IsNotEmpty) {\n return null;\n }\n\n if (comparator === TableFilterComparator.IsBetween) {\n const fromValue = Array.isArray(value) ? value[0] : undefined;\n const toValue = Array.isArray(value) ? value[1] : undefined;\n\n if (column === undefined) {\n return (\n <Input\n aria-label={texts.table3.filters.emptyFilter.value}\n className=\"flex-grow\"\n data-query-selector={querySelector}\n disabled\n value={texts.table3.filters.emptyFilter.value}\n />\n );\n }\n\n if (column.columnDef.meta?.dataType === 'datetime') {\n return (\n <div className=\"flex flex-grow items-center gap-2\">\n <Control\n column={column}\n data-query-selector={querySelector}\n onChange={value => handleChange([value, toValue])}\n value={fromValue}\n />\n <Control\n column={column}\n data-query-selector={querySelector}\n onChange={value => handleChange([fromValue, value])}\n value={toValue}\n />\n </div>\n );\n }\n\n return (\n <div className=\"flex flex-grow items-center gap-2\">\n <Control\n column={column}\n data-query-selector={querySelector}\n onChange={value => handleChange([isNaN(value) ? undefined : value, toValue])}\n placeholder=\"from\"\n value={fromValue ?? ''}\n />\n <Control\n column={column}\n data-query-selector={querySelector}\n onChange={value => handleChange([fromValue, isNaN(value) ? undefined : value])}\n placeholder=\"to\"\n value={toValue ?? ''}\n />\n </div>\n );\n }\n return (\n <Control\n comparator={comparator}\n column={column}\n data-query-selector={querySelector}\n onChange={handleChange}\n value={value}\n />\n );\n}\n\nfunction Control(props) {\n const { column, comparator, onChange, value, ...attributes } = props;\n const controlRenderer = column?.columnDef.meta?.control;\n const dataType = column?.columnDef.meta?.dataType;\n\n useEffect(() => {\n if (controlRenderer === 'switch') {\n onChange(false);\n }\n }, []);\n\n if (typeof controlRenderer === 'function') {\n return React.cloneElement(\n controlRenderer({\n ...attributes,\n setValue: value => onChange(value),\n value,\n }),\n { ['data-query-selector']: querySelector, className: 'focus:yt-focus' }\n );\n } else if (controlRenderer === 'datepicker' || dataType === 'datetime') {\n return <Datepicker {...attributes} onChange={event => onChange((event as any).detail)} value={value as Date} />;\n } else if (controlRenderer === 'switch') {\n return <Switch {...attributes} className=\"m-1.5\" checked={Boolean(value)} onChange={onChange} />;\n } else if ((controlRenderer === 'input' || controlRenderer === undefined) && dataType === 'number') {\n return (\n <Input\n {...attributes}\n className=\"flex-grow\"\n type=\"number\"\n onChange={event => onChange(event.target.valueAsNumber)}\n value={String(value ?? '')}\n />\n );\n }\n\n return (\n <Input\n disabled={!column}\n {...attributes}\n className=\"flex-grow\"\n onChange={event => onChange(event.target.value)}\n value={String(value ?? '')}\n />\n );\n}\n"],"names":["querySelector","FilterValue","props","column","comparator","onChange","handleChange","value","texts","useLocalization","TableFilterComparator","IsEmpty","IsNotEmpty","IsBetween","_column$columnDef$met","fromValue","Array","isArray","undefined","toValue","React","Input","table3","filters","emptyFilter","className","disabled","columnDef","meta","dataType","Control","isNaN","placeholder","attributes","controlRenderer","_column$columnDef$met2","control","_column$columnDef$met3","useEffect","cloneElement","setValue","Datepicker","event","detail","Switch","checked","Boolean","type","target","valueAsNumber","String"],"mappings":";;;;;;;AAeA,MAAMA,aAAa,GAAG,cAAc;SAEpBC,WAAWA,CAAkBC,KAA8B;EACvE,MAAM;IAAEC,MAAM;IAAEC,UAAU;IAAEC,QAAQ,EAAEC,YAAY;IAAEC;GAAO,GAAGL,KAAK;EACnE,MAAM;IAAEM;GAAO,GAAGC,eAAe,EAAE;EAEnC,IAAIL,UAAU,KAAKM,qBAAqB,CAACC,OAAO,IAAIP,UAAU,KAAKM,qBAAqB,CAACE,UAAU,EAAE;IACjG,OAAO,IAAI;;EAGf,IAAIR,UAAU,KAAKM,qBAAqB,CAACG,SAAS,EAAE;IAAA,IAAAC,qBAAA;IAChD,MAAMC,SAAS,GAAGC,KAAK,CAACC,OAAO,CAACV,KAAK,CAAC,GAAGA,KAAK,CAAC,CAAC,CAAC,GAAGW,SAAS;IAC7D,MAAMC,OAAO,GAAGH,KAAK,CAACC,OAAO,CAACV,KAAK,CAAC,GAAGA,KAAK,CAAC,CAAC,CAAC,GAAGW,SAAS;IAE3D,IAAIf,MAAM,KAAKe,SAAS,EAAE;MACtB,oBACIE,6BAACC,KAAK;sBACUb,KAAK,CAACc,MAAM,CAACC,OAAO,CAACC,WAAW,CAACjB,KAAK;QAClDkB,SAAS,EAAC,WAAW;+BACAzB,aAAa;QAClC0B,QAAQ;QACRnB,KAAK,EAAEC,KAAK,CAACc,MAAM,CAACC,OAAO,CAACC,WAAW,CAACjB;QAC1C;;IAIV,IAAI,EAAAO,qBAAA,GAAAX,MAAM,CAACwB,SAAS,CAACC,IAAI,cAAAd,qBAAA,uBAArBA,qBAAA,CAAuBe,QAAQ,MAAK,UAAU,EAAE;MAChD,oBACIT;QAAKK,S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,6BAACC,KAAK,oBACEY,UAAU;MACdR,SAAS,EAAC,WAAW;MACrBsB,IAAI,EAAC,QAAQ;MACb1C,QAAQ,EAAEqC,KAAK,IAAIrC,QAAQ,CAACqC,KAAK,CAACM,MAAM,CAACC,aAAa,CAAC;MACvD1C,KAAK,EAAE2C,MAAM,CAAC3C,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE;OAC3B;;EAIV,oBACIa,6BAACC,KAAK;IACFK,QAAQ,EAAE,CAACvB;KACP8B,UAAU;IACdR,SAAS,EAAC,WAAW;IACrBpB,QAAQ,EAAEqC,KAAK,IAAIrC,QAAQ,CAACqC,KAAK,CAACM,MAAM,CAACzC,KAAK,CAAC;IAC/CA,KAAK,EAAE2C,MAAM,CAAC3C,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE;KAC3B;AAEV;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../../../../../../../src/components/Report/components/Toolbar/components/Filters/util.ts"],"sourcesContent":["import { Column as ReactTableColumn } from '@tanstack/react-table';\nimport { TableFilter } from '../../../../../../primitives/Table/types';\n\nexport function sortByHeader<TType = unknown>(a: ReactTableColumn<TType>, b: ReactTableColumn<TType>) {\n return (a.columnDef.meta?.header as string)?.localeCompare?.(b.columnDef.meta?.header as string);\n}\n\nexport function isEmptyFilter(filter: TableFilter) {\n return !filter.value.hasOwnProperty('value'); // eslint-disable-line no-prototype-builtins\n}\n"],"names":["sortByHeader","a","b","_a$columnDef$meta","columnDef","meta","_a$columnDef$meta$hea","header","_a$columnDef$meta$hea2","localeCompare","call","_b$columnDef$meta","isEmptyFilter","filter","value","hasOwnProperty"],"mappings":"SAGgBA,YAAYA,CAAkBC,CAA0B,EAAEC,CAA0B;;EAChG,QAAAC,iBAAA,GAAQF,CAAC,CAACG,SAAS,CAACC,IAAI,cAAAF,iBAAA,wBAAAG,qBAAA,GAAhBH,iBAAA,CAAkBI,MAAiB,cAAAD,qBAAA,wBAAAE,sBAAA,GAAnCF,qBAAA,CAAqCG,aAAa,cAAAD,sBAAA,uBAAlDA,sBAAA,CAAAE,IAAA,CAAAJ,qBAAA,GAAAK,iBAAA,GAAqDT,CAAC,CAACE,SAAS,CAACC,IAAI,cAAAM,iBAAA,uBAAhBA,iBAAA,CAAkBJ,MAAgB,CAAC;AACpG;SAEgBK,aAAaA,CAACC,MAAmB;EAC7C,OAAO,CAACA,MAAM,CAACC,KAAK,CAACC,cAAc,CAAC,OAAO,CAAC,CAAC;AACjD;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Print.js","sources":["../../../../../../../../../../../src/components/Report/components/Toolbar/components/Print/Print.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { IconButton } from '../../../../../IconButton/IconButton';\nimport { useLocalization } from '../../../../../Provider/Localization';\nimport { useToast } from '../../../../../Toast/Toaster';\nimport { TableRef } from '../../../../../../primitives/Table/types';\nimport { PrintDialog } from './PrintDialog';\nimport { Shortcut } from '../../../../../Shortcut/Shortcut';\n\nexport type PrintProps<TType = unknown> = {\n table: ReactTable<TType>;\n tableId: string;\n tableRef: React.RefObject<TableRef>;\n};\n\nexport function Print<TType = unknown>(props: PrintProps<TType>) {\n const { table, tableId, tableRef } = props;\n const { texts } = useLocalization();\n const ref = React.useRef<HTMLButtonElement>(null);\n const lastScrollTopRef = React.useRef<number>();\n const toast = useToast();\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const { allRows, orientation, size, splitGroups } = tableMeta.printing.settings;\n\n const togglePrinting = React.useCallback(\n enabled => {\n tableMeta.printing.setIsPrinting(enabled);\n\n if (tableRef.current) {\n if (enabled) {\n lastScrollTopRef.current = tableRef.current.scrollTop;\n } else if (lastScrollTopRef.current !== undefined) {\n tableRef.current.scrollTop = lastScrollTopRef.current;\n lastScrollTopRef.current = undefined;\n }\n }\n },\n [tableRef.current]\n );\n\n React.useEffect(() => {\n const afterPrint = () => {\n togglePrinting(false);\n };\n\n window.addEventListener('afterprint', afterPrint);\n\n return () => {\n window.removeEventListener('afterprint', afterPrint);\n };\n }, []);\n\n const print = async () => {\n const toastRef = toast.loading(texts.table3.print.loading);\n\n if (tableMeta.server.isEnabled && tableMeta.server.loadAllIfNeeded) {\n try {\n await tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined);\n } catch (error) {\n const errorMessage = `${texts.table3.print.error}: ${error}`;\n console.error(errorMessage);\n toastRef.error(errorMessage);\n }\n }\n\n // this might close immediately if the dataset is small - this is okay\n toastRef.close();\n\n // use a timeout to let the toast close, otherwise it freezes mid animation when the print dialog opens\n setTimeout(() => {\n // do this here because Safari doesn't support the beforeprint event\n togglePrinting(true);\n\n requestAnimationFrame(() => {\n try {\n // window.print doesn't always work in Safari :man_shrugging:\n document.execCommand('print', false, undefined);\n } catch {\n window.print();\n }\n });\n }, 150);\n };\n\n const printStyle = [`@page { size: ${size} ${orientation}; }`];\n\n if (!allRows) {\n printStyle.push(`table[data-taco='report']#${tableId} tr:not([data-row-selected=\"true\"]) { display: none; }`);\n }\n\n if (splitGroups) {\n printStyle.push(`table[data-taco='report']#${tableId} tr[data-row-group]:not(:first-child) { break-before: page; }`);\n }\n\n const shortcut = { key: 'p', meta: true, shift: false };\n const tooltip = (\n <>\n {texts.table3.print.tooltip}\n <Shortcut className=\"ml-2\" keys={shortcut} />\n </>\n );\n\n return (\n <>\n <style media=\"print\">{printStyle.join('\\n')}</style>\n <IconButton\n icon=\"print\"\n aria-label={texts.table3.print.tooltip}\n dialog={dialogProps => (\n <PrintDialog\n {...dialogProps}\n table={table}\n onAccept={print}\n orientation={orientation}\n setOrientation={value => tableMeta.printing.setSetting('orientation', value)}\n size={size}\n setSize={value => tableMeta.printing.setSetting('size', value)}\n allRows={allRows}\n setAllRows={value => tableMeta.printing.setSetting('allRows', value)}\n splitGroups={splitGroups}\n setSplitGroups={value => tableMeta.printing.setSetting('splitGroups', value)}\n />\n )}\n ref={ref}\n shortcut={shortcut}\n tooltip={tooltip}\n />\n </>\n );\n}\n"],"names":["Print","props","table","tableId","tableRef","texts","useLocalization","ref","React","useRef","lastScrollTopRef","toast","useToast","tableMeta","options","meta","allRows","orientation","size","splitGroups","printing","settings","togglePrinting","useCallback","enabled","setIsPrinting","current","scrollTop","undefined","useEffect","afterPrint","window","addEventListener","removeEventListener","print","toastRef","close","setTimeout","requestAnimationFrame","document","execCommand","loading","table3","_temp2","server","isEnabled","loadAllIfNeeded","_temp","_catch","Promise","resolve","getState","sorting","columnFilters","then","error","errorMessage","console","_temp3","e","reject","printStyle","push","shortcut","key","shift","tooltip","Shortcut","className","keys","media","join","IconButton","icon","dialog","dialogProps","PrintDialog","onAccept","setOrientation","value","setSetting","setSize","setAllRows","setSplitGroups"],"mappings":";;;;;;;;SAegBA,KAAKA,CAAkBC,KAAwB;EAC3D,MAAM;IAAEC,KAAK;IAAEC,OAAO;IAAEC;GAAU,GAAGH,KAAK;EAC1C,MAAM;IAAEI;GAAO,GAAGC,eAAe,EAAE;EACnC,MAAMC,GAAG,GAAGC,cAAK,CAACC,MAAM,CAAoB,IAAI,CAAC;EACjD,MAAMC,gBAAgB,GAAGF,cAAK,CAACC,MAAM,EAAU;EAC/C,MAAME,KAAK,GAAGC,QAAQ,EAAE;EACxB,MAAMC,SAAS,GAAGX,KAAK,CAACY,OAAO,CAACC,IAA6B;EAC7D,MAAM;IAAEC,OAAO;IAAEC,WAAW;IAAEC,IAAI;IAAEC;GAAa,GAAGN,SAAS,CAACO,QAAQ,CAACC,QAAQ;EAE/E,MAAMC,cAAc,GAAGd,cAAK,CAACe,WAAW,CACpCC,OAAO;IACHX,SAAS,CAACO,QAAQ,CAACK,aAAa,CAACD,OAAO,CAAC;IAEzC,IAAIpB,QAAQ,CAACsB,OAAO,EAAE;MAClB,IAAIF,OAAO,EAAE;QACTd,gBAAgB,CAACgB,OAAO,GAAGtB,QAAQ,CAACsB,OAAO,C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ACoE,WAAW,oBACJD,WAAW;MACfzE,KAAK,EAAEA,KAAK;MACZ2E,QAAQ,EAAE3C,KAAK;MACfjB,WAAW,EAAEA,WAAW;MACxB6D,cAAc,EAAEC,KAAK,IAAIlE,SAAS,CAACO,QAAQ,CAAC4D,UAAU,CAAC,aAAa,EAAED,KAAK,CAAC;MAC5E7D,IAAI,EAAEA,IAAI;MACV+D,OAAO,EAAEF,KAAK,IAAIlE,SAAS,CAACO,QAAQ,CAAC4D,UAAU,CAAC,MAAM,EAAED,KAAK,CAAC;MAC9D/D,OAAO,EAAEA,OAAO;MAChBkE,UAAU,EAAEH,KAAK,IAAIlE,SAAS,CAACO,QAAQ,CAAC4D,UAAU,CAAC,SAAS,EAAED,KAAK,CAAC;MACpE5D,WAAW,EAAEA,WAAW;MACxBgE,cAAc,EAAEJ,KAAK,IAAIlE,SAAS,CAACO,QAAQ,CAAC4D,UAAU,CAAC,aAAa,EAAED,KAAK;OAC7E,CACL;IACDxE,GAAG,EAAEA,GAAG;IACRwD,QAAQ,EAAEA,QAAQ;IAClBG,OAAO,EAAEA;IACX,CACH;AAEX;;;;"}
|
@@ -1,88 +0,0 @@
|
|
1
|
-
import React__default from 'react';
|
2
|
-
import { Alert } from '../../../../../Alert/Alert.js';
|
3
|
-
import { useLocalization } from '../../../../../Provider/Localization.js';
|
4
|
-
import { Button } from '../../../../../Button/Button.js';
|
5
|
-
import { Checkbox } from '../../../../../Checkbox/Checkbox.js';
|
6
|
-
import { Dialog } from '../../../../../Dialog/Dialog.js';
|
7
|
-
import { Group } from '../../../../../Group/Group.js';
|
8
|
-
import { Field } from '../../../../../Field/Field.js';
|
9
|
-
import { RadioGroup } from '../../../../../RadioGroup/RadioGroup.js';
|
10
|
-
import { Select2 } from '../../../../../Select2/Select2.js';
|
11
|
-
|
12
|
-
const SAFE_PRINT_CELL_COUNT = 10000;
|
13
|
-
function PrintDialog(props) {
|
14
|
-
var _columns$find, _columns$find$columnD;
|
15
|
-
const {
|
16
|
-
onAccept,
|
17
|
-
table,
|
18
|
-
orientation,
|
19
|
-
setOrientation,
|
20
|
-
size,
|
21
|
-
setSize,
|
22
|
-
allRows,
|
23
|
-
setAllRows,
|
24
|
-
splitGroups,
|
25
|
-
setSplitGroups,
|
26
|
-
...dialogProps
|
27
|
-
} = props;
|
28
|
-
const {
|
29
|
-
texts
|
30
|
-
} = useLocalization();
|
31
|
-
const columns = table.getVisibleFlatColumns();
|
32
|
-
const cellCount = table.getRowModel().rows.length * columns.length;
|
33
|
-
const rowGroupingColumnName = table.getState().grouping.length ? (_columns$find = columns.find(column => column.id === table.getState().grouping[0])) === null || _columns$find === void 0 ? void 0 : (_columns$find$columnD = _columns$find.columnDef.meta) === null || _columns$find$columnD === void 0 ? void 0 : _columns$find$columnD.header : undefined;
|
34
|
-
return /*#__PURE__*/React__default.createElement(Dialog, Object.assign({}, dialogProps, {
|
35
|
-
size: "xs"
|
36
|
-
}), /*#__PURE__*/React__default.createElement(Dialog.Content, {
|
37
|
-
"aria-label": texts.table3.print.warningDialog.title
|
38
|
-
}, ({
|
39
|
-
close
|
40
|
-
}) => ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Dialog.Title, null, texts.table3.print.settingsDialog.title), /*#__PURE__*/React__default.createElement("div", {
|
41
|
-
className: "mt-4 flex flex-col gap-2"
|
42
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
43
|
-
className: "grid grid-cols-2 gap-4"
|
44
|
-
}, /*#__PURE__*/React__default.createElement(Field, null, texts.table3.print.settingsDialog.size, /*#__PURE__*/React__default.createElement(Select2, {
|
45
|
-
onChange: setSize,
|
46
|
-
value: size
|
47
|
-
}, /*#__PURE__*/React__default.createElement(Select2.Option, {
|
48
|
-
value: "A5"
|
49
|
-
}, texts.table3.print.settingsDialog.sizeA5), /*#__PURE__*/React__default.createElement(Select2.Option, {
|
50
|
-
value: "A4"
|
51
|
-
}, texts.table3.print.settingsDialog.sizeA4), /*#__PURE__*/React__default.createElement(Select2.Option, {
|
52
|
-
value: "A3"
|
53
|
-
}, texts.table3.print.settingsDialog.sizeA3), /*#__PURE__*/React__default.createElement(Select2.Option, {
|
54
|
-
value: "letter"
|
55
|
-
}, texts.table3.print.settingsDialog.sizeLetter), /*#__PURE__*/React__default.createElement(Select2.Option, {
|
56
|
-
value: "legal"
|
57
|
-
}, texts.table3.print.settingsDialog.sizeLegal))), /*#__PURE__*/React__default.createElement(Field, null, texts.table3.print.settingsDialog.orientation, /*#__PURE__*/React__default.createElement(Select2, {
|
58
|
-
onChange: setOrientation,
|
59
|
-
value: orientation
|
60
|
-
}, /*#__PURE__*/React__default.createElement(Select2.Option, {
|
61
|
-
value: "landscape"
|
62
|
-
}, texts.table3.print.settingsDialog.orientationLandscape), /*#__PURE__*/React__default.createElement(Select2.Option, {
|
63
|
-
value: "portrait"
|
64
|
-
}, texts.table3.print.settingsDialog.orientationPortrait)))), table.options.enableRowSelection && table.getIsSomeRowsSelected() ? ( /*#__PURE__*/React__default.createElement(Field, null, texts.table3.print.settingsDialog.rows, /*#__PURE__*/React__default.createElement(RadioGroup, {
|
65
|
-
onChange: setAllRows,
|
66
|
-
value: allRows
|
67
|
-
}, /*#__PURE__*/React__default.createElement(RadioGroup.Item, {
|
68
|
-
value: true
|
69
|
-
}, texts.table3.print.settingsDialog.rowsAll), /*#__PURE__*/React__default.createElement(RadioGroup.Item, {
|
70
|
-
value: false
|
71
|
-
}, texts.table3.print.settingsDialog.rowsSelected)))) : undefined, rowGroupingColumnName ? ( /*#__PURE__*/React__default.createElement(Field, null, texts.table3.print.settingsDialog.layout, /*#__PURE__*/React__default.createElement(Checkbox, {
|
72
|
-
label: texts.table3.print.settingsDialog.layoutSplitGroups.replace('[COLUMN]', rowGroupingColumnName),
|
73
|
-
checked: splitGroups,
|
74
|
-
onChange: setSplitGroups
|
75
|
-
}))) : null, cellCount > SAFE_PRINT_CELL_COUNT ? ( /*#__PURE__*/React__default.createElement(Alert, {
|
76
|
-
state: "warning"
|
77
|
-
}, texts.table3.print.warningDialog.description)) : null), /*#__PURE__*/React__default.createElement(Dialog.Footer, null, /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Dialog.Close, null, /*#__PURE__*/React__default.createElement(Button, null, texts.table3.print.warningDialog.cancelButtonText)), /*#__PURE__*/React__default.createElement(Button, {
|
78
|
-
appearance: "primary",
|
79
|
-
autoFocus: true,
|
80
|
-
onClick: () => {
|
81
|
-
close();
|
82
|
-
setTimeout(() => onAccept(), 1);
|
83
|
-
}
|
84
|
-
}, texts.table3.print.warningDialog.printButtonText)))))));
|
85
|
-
}
|
86
|
-
|
87
|
-
export { PrintDialog };
|
88
|
-
//# sourceMappingURL=PrintDialog.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PrintDialog.js","sources":["../../../../../../../../../../../src/components/Report/components/Toolbar/components/Print/PrintDialog.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\nimport { Dialog } from '../../../../../Dialog/Dialog';\nimport { useLocalization } from '../../../../../Provider/Localization';\nimport { Checkbox } from '../../../../../Checkbox/Checkbox';\nimport { Group } from '../../../../../Group/Group';\nimport { Button } from '../../../../../Button/Button';\nimport { Field } from '../../../../../Field/Field';\nimport { Select2, Select2Value } from '../../../../../Select2/Select2';\nimport { RadioGroup, RadioGroupItemValue } from '../../../../../RadioGroup/RadioGroup';\nimport { Alert } from '../../../../../Alert/Alert';\n\nconst SAFE_PRINT_CELL_COUNT = 10000;\n\nexport type PrintDialogProps<TType = unknown> = {\n table: ReactTable<TType>;\n onAccept: () => void;\n orientation: Select2Value;\n setOrientation: (orientation: Select2Value) => void;\n size: Select2Value;\n setSize: (size: Select2Value) => void;\n allRows: RadioGroupItemValue;\n setAllRows: (allRows: RadioGroupItemValue) => void;\n splitGroups: boolean;\n setSplitGroups: (splitGroups: boolean) => void;\n};\n\nexport function PrintDialog<TType = unknown>(props: PrintDialogProps<TType>) {\n const {\n onAccept,\n table,\n orientation,\n setOrientation,\n size,\n setSize,\n allRows,\n setAllRows,\n splitGroups,\n setSplitGroups,\n ...dialogProps\n } = props;\n const { texts } = useLocalization();\n\n const columns = table.getVisibleFlatColumns();\n const cellCount = table.getRowModel().rows.length * columns.length;\n const rowGroupingColumnName = table.getState().grouping.length\n ? columns.find(column => column.id === table.getState().grouping[0])?.columnDef.meta?.header\n : undefined;\n\n return (\n <Dialog {...dialogProps} size=\"xs\">\n <Dialog.Content aria-label={texts.table3.print.warningDialog.title}>\n {({ close }) => (\n <>\n <Dialog.Title>{texts.table3.print.settingsDialog.title}</Dialog.Title>\n <div className=\"mt-4 flex flex-col gap-2\">\n <div className=\"grid grid-cols-2 gap-4\">\n <Field>\n {texts.table3.print.settingsDialog.size}\n <Select2 onChange={setSize} value={size}>\n <Select2.Option value=\"A5\">{texts.table3.print.settingsDialog.sizeA5}</Select2.Option>\n <Select2.Option value=\"A4\">{texts.table3.print.settingsDialog.sizeA4}</Select2.Option>\n <Select2.Option value=\"A3\">{texts.table3.print.settingsDialog.sizeA3}</Select2.Option>\n <Select2.Option value=\"letter\">\n {texts.table3.print.settingsDialog.sizeLetter}\n </Select2.Option>\n <Select2.Option value=\"legal\">\n {texts.table3.print.settingsDialog.sizeLegal}\n </Select2.Option>\n </Select2>\n </Field>\n <Field>\n {texts.table3.print.settingsDialog.orientation}\n <Select2 onChange={setOrientation} value={orientation}>\n <Select2.Option value=\"landscape\">\n {texts.table3.print.settingsDialog.orientationLandscape}\n </Select2.Option>\n <Select2.Option value=\"portrait\">\n {texts.table3.print.settingsDialog.orientationPortrait}\n </Select2.Option>\n </Select2>\n </Field>\n </div>\n {table.options.enableRowSelection && table.getIsSomeRowsSelected() ? (\n <Field>\n {texts.table3.print.settingsDialog.rows}\n <RadioGroup onChange={setAllRows} value={allRows}>\n <RadioGroup.Item value={true}>\n {texts.table3.print.settingsDialog.rowsAll}\n </RadioGroup.Item>\n <RadioGroup.Item value={false}>\n {texts.table3.print.settingsDialog.rowsSelected}\n </RadioGroup.Item>\n </RadioGroup>\n </Field>\n ) : undefined}\n {rowGroupingColumnName ? (\n <Field>\n {texts.table3.print.settingsDialog.layout}\n <Checkbox\n label={texts.table3.print.settingsDialog.layoutSplitGroups.replace(\n '[COLUMN]',\n rowGroupingColumnName\n )}\n checked={splitGroups}\n onChange={setSplitGroups}\n />\n </Field>\n ) : null}\n\n {cellCount > SAFE_PRINT_CELL_COUNT ? (\n <Alert state=\"warning\">{texts.table3.print.warningDialog.description}</Alert>\n ) : null}\n </div>\n <Dialog.Footer>\n <Group>\n <Dialog.Close>\n <Button>{texts.table3.print.warningDialog.cancelButtonText}</Button>\n </Dialog.Close>\n <Button\n appearance=\"primary\"\n autoFocus\n onClick={() => {\n close();\n setTimeout(() => onAccept(), 1);\n }}>\n {texts.table3.print.warningDialog.printButtonText}\n </Button>\n </Group>\n </Dialog.Footer>\n </>\n )}\n </Dialog.Content>\n </Dialog>\n );\n}\n"],"names":["SAFE_PRINT_CELL_COUNT","PrintDialog","props","onAccept","table","orientation","setOrientation","size","setSize","allRows","setAllRows","splitGroups","setSplitGroups","dialogProps","texts","useLocalization","columns","getVisibleFlatColumns","cellCount","getRowModel","rows","length","rowGroupingColumnName","getState","grouping","_columns$find","find","column","id","_columns$find$columnD","columnDef","meta","header","undefined","React","Dialog","Content","table3","print","warningDialog","title","close","Title","settingsDialog","className","Field","Select2","onChange","value","Option","sizeA5","sizeA4","sizeA3","sizeLetter","sizeLegal","orientationLandscape","orientationPortrait","options","enableRowSelection","getIsSomeRowsSelected","RadioGroup","Item","rowsAll","rowsSelected","layout","Checkbox","label","layoutSplitGroups","replace","checked","Alert","state","description","Footer","Group","Close","Button","cancelButtonText","appearance","autoFocus","onClick","setTimeout","printButtonText"],"mappings":";;;;;;;;;;;AAYA,MAAMA,qBAAqB,GAAG,KAAK;SAenBC,WAAWA,CAAkBC,KAA8B;;EACvE,MAAM;IACFC,QAAQ;IACRC,KAAK;IACLC,WAAW;IACXC,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 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Search.js","sources":["../../../../../../../../../../../src/components/Report/components/Toolbar/components/Search/Search.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useLocalization } from '../../../../../Provider/Localization';\nimport { SearchInput2 } from '../../../../../SearchInput2/SearchInput2';\nimport { Switch } from '../../../../../Switch/Switch';\nimport { TableServerLoadAllState } from '../../../../../../primitives/Table/types';\n\ntype SearchProps<TType = unknown> = {\n scrollToIndex: any;\n table: ReactTable<TType>;\n};\n\nexport function Search<TType = unknown>(props: SearchProps<TType>) {\n const { scrollToIndex, table } = props;\n const { texts } = useLocalization();\n const ref = React.useRef<HTMLInputElement>(null);\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const query = table.getState().globalFilter;\n const scrollTo = (rowIndex: number) => scrollToIndex(rowIndex, { align: 'center' });\n\n React.useEffect(() => {\n if (tableMeta.search.highlightedColumnIndexes.length) {\n scrollTo(tableMeta.search.highlightedColumnIndexes[0][0]);\n }\n }, [tableMeta.search.highlightedColumnIndexes.length]);\n\n const handleFocus = async () => {\n // load all data if that is possible\n if (tableMeta.server.loadAllIfNeeded) {\n // don't pass the search query because we need all data - not filtered data\n await tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined);\n }\n };\n\n const handleChange = (query: any) => {\n table.setGlobalFilter(String(query ?? ''));\n };\n\n const handleToggleExcludeUnmatchedResults = (enabled: boolean) => {\n tableMeta.search.setEnableGlobalFilter(enabled, table);\n requestAnimationFrame(() => ref.current?.focus());\n };\n\n const handleNextResult = () => {\n if (!tableMeta.search.highlightedColumnIndexes.length) {\n return;\n }\n\n const nextIndex =\n tableMeta.search.currentHighlightColumnIndex === undefined ||\n tableMeta.search.currentHighlightColumnIndex === tableMeta.search.highlightedColumnIndexes.length - 1\n ? 0\n : tableMeta.search.currentHighlightColumnIndex + 1;\n\n tableMeta.search.setCurrentHighlightColumnIndex(nextIndex);\n // we scroll to the row here, the cell scrolls itself into view\n scrollTo(tableMeta.search.highlightedColumnIndexes[nextIndex][0]);\n };\n\n const handlePreviousResult = () => {\n if (!tableMeta.search.highlightedColumnIndexes.length) {\n return;\n }\n\n const nextIndex =\n tableMeta.search.currentHighlightColumnIndex === undefined\n ? 0\n : tableMeta.search.currentHighlightColumnIndex === 0\n ? tableMeta.search.highlightedColumnIndexes.length - 1\n : tableMeta.search.currentHighlightColumnIndex - 1;\n\n tableMeta.search.setCurrentHighlightColumnIndex(nextIndex);\n // we scroll to the row here, the cell scrolls itself into view\n scrollTo(tableMeta.search.highlightedColumnIndexes[nextIndex][0]);\n };\n\n const settings = (\n <Switch\n label={texts.table3.search.excludeUnmatchedResults}\n checked={!!table.options.enableGlobalFilter}\n onChange={handleToggleExcludeUnmatchedResults}\n />\n );\n\n return (\n <>\n <SearchInput2\n findCurrent={\n tableMeta.search.currentHighlightColumnIndex !== undefined\n ? tableMeta.search.currentHighlightColumnIndex + 1\n : null\n }\n findTotal={tableMeta.search.highlightedColumnIndexes?.length ?? null}\n loading={tableMeta.server.loadAllStatus === TableServerLoadAllState.Loading}\n onClickFindPrevious={handlePreviousResult}\n onClickFindNext={handleNextResult}\n onChange={handleChange}\n onFocus={handleFocus}\n placeholder={texts.table3.search.placeholder}\n settingsContent={settings}\n ref={ref}\n shortcut={{ key: 'f', meta: true, shift: false }}\n value={query}\n />\n </>\n );\n}\n"],"names":["Search","props","scrollToIndex","table","texts","useLocalization","ref","React","useRef","tableMeta","options","meta","query","getState","globalFilter","scrollTo","rowIndex","align","useEffect","search","highlightedColumnIndexes","length","handleFocus","server","loadAllIfNeeded","Promise","resolve","sorting","columnFilters","undefined","then","_temp","e","reject","handleChange","setGlobalFilter","String","handleToggleExcludeUnmatchedResults","enabled","setEnableGlobalFilter","requestAnimationFrame","_ref$current","current","focus","handleNextResult","nextIndex","currentHighlightColumnIndex","setCurrentHighlightColumnIndex","handlePreviousResult","settings","Switch","label","table3","excludeUnmatchedResults","checked","enableGlobalFilter","onChange","SearchInput2","findCurrent","findTotal","_tableMeta$search$hig","_tableMeta$search$hig2","loading","loadAllStatus","TableServerLoadAllState","Loading","onClickFindPrevious","onClickFindNext","onFocus","placeholder","settingsContent","shortcut","key","shift","value"],"mappings":";;;;;;SAYgBA,MAAMA,CAAkBC,KAAyB;;EAC7D,MAAM;IAAEC,aAAa;IAAEC;GAAO,GAAGF,KAAK;EACtC,MAAM;IAAEG;GAAO,GAAGC,eAAe,EAAE;EACnC,MAAMC,GAAG,GAAGC,cAAK,CAACC,MAAM,CAAmB,IAAI,CAAC;EAChD,MAAMC,SAAS,GAAGN,KAAK,CAACO,OAAO,CAACC,IAA6B;EAC7D,MAAMC,KAAK,GAAGT,KAAK,CAACU,QAAQ,EAAE,CAACC,YAAY;EAC3C,MAAMC,QAAQ,GAAIC,QAAgB,IAAKd,aAAa,CAACc,QAAQ,EAAE;IAAEC,KAAK,EAAE;GAAU,CAAC;EAEnFV,cAAK,CAACW,SAAS,CAAC;IACZ,IAAIT,SAAS,CAACU,MAAM,CAACC,wBAAwB,CAACC,MAAM,EAAE;MAClDN,QAAQ,CAACN,SAAS,CAACU,MAAM,CAACC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;GAEhE,EAAE,CAACX,SAAS,CAACU,MAAM,CAACC,wBAAwB,CAACC,MAAM,CAAC,CAAC;EAEtD,MAAMC,WAAW;IAAA;;YAETb,SAAS,CAACc,MAAM,CAACC,eAAe;;UAChC,OAAAC,OAAA,CAAAC,OAAA,CACMjB,SAAS,CAACc,MAAM,CAACC,eAAe,CAACrB,KAAK,CAACU,QAAQ,EAAE,CAACc,OAAO,EAAExB,KAAK,CAACU,QAAQ,EAAE,CAACe,aAAa,EAAEC,SAAS,CAAC,EAAAC,IAAA;;;;MAH/G,OAAAL,OAAA,CAAAC,OAAA,CAAAK,KAAA,IAAAA,KAAA,CAAAD,IAAA,GAAAC,KAAA,CAAAD,IAAA;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