@economic/taco 2.25.1-alpha.13 → 2.25.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Provider/Localization.d.ts +392 -0
- package/dist/components/Report/Report.d.ts +23 -0
- package/dist/components/Report/components/Body/Body.d.ts +8 -0
- package/dist/components/Report/components/Body/EmptyStateBody.d.ts +7 -0
- package/dist/components/Report/components/Cell/Cell.d.ts +8 -0
- package/dist/components/Report/components/Cell/DisplayCell.d.ts +8 -0
- package/dist/components/Report/components/Cell/GroupedCell.d.ts +8 -0
- package/dist/components/Report/components/Cell/util.d.ts +18 -0
- package/dist/components/Report/components/Header/Header.d.ts +40 -0
- package/dist/components/Report/components/Header/components/Goto.d.ts +6 -0
- package/dist/components/Report/components/Header/components/Menu.d.ts +20 -0
- package/dist/components/Report/components/Header/components/Resizer.d.ts +12 -0
- package/dist/components/Report/components/Header/components/SortIndicator.d.ts +15 -0
- package/dist/components/Report/components/Header/util.d.ts +4 -0
- package/dist/components/Report/components/Internal/Actions.d.ts +13 -0
- package/dist/components/Report/components/Internal/Expansion.d.ts +4 -0
- package/dist/components/Report/components/Internal/Selection.d.ts +4 -0
- package/dist/components/Report/components/Row/DisplayRow.d.ts +9 -0
- package/dist/components/Report/components/Row/Row.d.ts +9 -0
- package/dist/components/Report/components/Row/RowContext.d.ts +8 -0
- package/dist/components/Report/components/Toolbar/Toolbar.d.ts +15 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/Filter.d.ts +12 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterColumn.d.ts +12 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterComparator.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterValue.d.ts +10 -0
- package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +4 -0
- package/dist/components/Report/components/Toolbar/components/Print/Print.d.ts +9 -0
- package/dist/components/Report/components/Toolbar/components/Print/PrintDialog.d.ts +17 -0
- package/dist/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Settings/Settings.d.ts +8 -0
- package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +2 -0
- package/dist/components/Report/styles/useCssGridStylesheet.d.ts +3 -0
- package/dist/components/Report/styles/util.d.ts +3 -0
- package/dist/components/Report/types.d.ts +20 -0
- package/dist/components/Report/useReport.d.ts +9 -0
- package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +4 -0
- package/dist/components/Report/util/useTableRenderer.d.ts +9 -0
- package/dist/components/Table/Table.d.ts +14 -0
- package/dist/components/Table3/Table3.d.ts +19 -0
- package/dist/components/Table3/components/alert/ErrorAlert.d.ts +10 -0
- package/dist/components/Table3/components/columns/cell/Cell.d.ts +6 -0
- package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +25 -0
- package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +14 -0
- package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +21 -0
- package/dist/components/Table3/components/columns/cell/Highlight.d.ts +2 -0
- package/dist/components/Table3/components/columns/cell/Indicator.d.ts +22 -0
- package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +2 -0
- package/dist/components/Table3/components/columns/footer/Footer.d.ts +14 -0
- package/dist/components/Table3/components/columns/footer/Summary.d.ts +8 -0
- package/dist/components/Table3/components/columns/header/Goto.d.ts +6 -0
- package/dist/components/Table3/components/columns/header/Group.d.ts +15 -0
- package/dist/components/Table3/components/columns/header/Header.d.ts +37 -0
- package/dist/components/Table3/components/columns/header/Menu.d.ts +20 -0
- package/dist/components/Table3/components/columns/header/Resizer.d.ts +7 -0
- package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +12 -0
- package/dist/components/Table3/components/columns/internal/Actions.d.ts +3 -0
- package/dist/components/Table3/components/columns/internal/Drag.d.ts +4 -0
- package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +8 -0
- package/dist/components/Table3/components/columns/internal/Expansion.d.ts +4 -0
- package/dist/components/Table3/components/columns/internal/Selection.d.ts +3 -0
- package/dist/components/Table3/components/columns/styles.d.ts +5 -0
- package/dist/components/Table3/components/rows/ExpandedRow.d.ts +8 -0
- package/dist/components/Table3/components/rows/Row.d.ts +26 -0
- package/dist/components/Table3/components/rows/RowContext.d.ts +10 -0
- package/dist/components/Table3/components/rows/SkeletonRow.d.ts +10 -0
- package/dist/components/Table3/components/rows/styles.d.ts +6 -0
- package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +7 -0
- package/dist/components/Table3/components/toolbar/EditButton.d.ts +7 -0
- package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +7 -0
- package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +12 -0
- package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +12 -0
- package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +7 -0
- package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +10 -0
- package/dist/components/Table3/components/toolbar/FontSize.d.ts +7 -0
- package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +8 -0
- package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +8 -0
- package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +9 -0
- package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +1 -0
- package/dist/components/Table3/components/toolbar/RowHeight.d.ts +7 -0
- package/dist/components/Table3/components/toolbar/Search.d.ts +8 -0
- package/dist/components/Table3/components/toolbar/Settings.d.ts +8 -0
- package/dist/components/Table3/components/toolbar/Toolbar.d.ts +13 -0
- package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +13 -0
- package/dist/components/Table3/hooks/features/useEditing.d.ts +31 -0
- package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +3 -0
- package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +5 -0
- package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
- package/dist/components/Table3/hooks/features/useRowActions.d.ts +5 -0
- package/dist/components/Table3/hooks/features/useRowDrag.d.ts +6 -0
- package/dist/components/Table3/hooks/features/useRowDrop.d.ts +5 -0
- package/dist/components/Table3/hooks/features/useSearch.d.ts +16 -0
- package/dist/components/Table3/hooks/features/useSettings.d.ts +3 -0
- package/dist/components/Table3/hooks/features/useValidation.d.ts +13 -0
- package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +2 -0
- package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +3 -0
- package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +9 -0
- package/dist/components/Table3/hooks/useCssGrid.d.ts +6 -0
- package/dist/components/Table3/hooks/useCssVars.d.ts +8 -0
- package/dist/components/Table3/hooks/useTable.d.ts +74 -0
- package/dist/components/Table3/hooks/useTableDataLoader.d.ts +22 -0
- package/dist/components/Table3/hooks/useTablePreset.d.ts +2 -0
- package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +4 -0
- package/dist/components/Table3/strategies/index.d.ts +4 -0
- package/dist/components/Table3/strategies/virtualised.d.ts +4 -0
- package/dist/components/Table3/types.d.ts +379 -0
- package/dist/components/Table3/util/columns.d.ts +8 -0
- package/dist/components/Table3/util/editing.d.ts +10 -0
- package/dist/components/Table3/util/filtering.d.ts +3 -0
- package/dist/components/Table3/util/scrolling.d.ts +2 -0
- package/dist/esm/index.css +515 -208
- package/dist/esm/packages/taco/src/components/Field/Field.js +0 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +6 -5
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +43 -46
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Report/Report.js +51 -8
- package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js +62 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js +32 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js +23 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js +58 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js +73 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js +39 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js +211 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +28 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js +159 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js +60 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js +41 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/util.js +24 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js +90 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js +59 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js +154 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js +102 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js +24 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js +10 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +63 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js +62 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js +129 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js +102 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js +50 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js +110 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js +128 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js +125 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +88 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js +95 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js +105 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js +103 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js +24 -0
- package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js +44 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js +58 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +20 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/util.js +61 -0
- package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/useReport.js +45 -8
- package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js +32 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js +162 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +1 -0
- 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 +218 -30
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +154 -0
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +84 -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/DisplayCell.js +84 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +212 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +194 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +41 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +88 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +144 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +50 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +41 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +28 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +74 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +186 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +206 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +42 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +38 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +129 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +86 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +174 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +104 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +187 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +19 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +27 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +327 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +14 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +43 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +9 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +109 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +29 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +164 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +102 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +50 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +111 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +118 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +26 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +211 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +224 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +60 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +97 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +33 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +238 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +65 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +64 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +95 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +299 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +24 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +12 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +14 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +10 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +13 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +9 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +29 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +23 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +178 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +28 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +24 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +143 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +66 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +74 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +234 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +130 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +122 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +19 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +8 -0
- package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +117 -0
- package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/types.js +20 -0
- package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/util/columns.js +60 -0
- package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js +38 -46
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +120 -0
- package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +53 -0
- package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +15 -0
- package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +1 -0
- package/dist/esm/packages/taco/src/index.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +0 -2
- package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +14 -4
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +3 -1
- 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 +9 -13
- 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 +7 -13
- 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 +2 -1
- 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 +2 -5
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/dom.js +3 -19
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/input.js +14 -1
- package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
- package/dist/index.css +515 -208
- package/dist/index.d.ts +73 -0
- package/dist/primitives/Table/types.d.ts +214 -0
- package/dist/primitives/Table/useTableManager/features/useTableRowActive.d.ts +11 -0
- package/dist/primitives/Table/useTableManager/types.d.ts +13 -0
- package/dist/primitives/Table/useTableManager/useTableManager.d.ts +59 -0
- package/dist/primitives/Table/useTableManager/util/settings.d.ts +12 -0
- package/dist/taco.cjs.development.js +8978 -4337
- 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/dist/utils/dom.d.ts +7 -0
- package/package.json +2 -3
- package/types.json +51755 -21592
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +0 -39
- 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/Editing/RowMoveIndicator.js +0 -85
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +0 -71
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +0 -216
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +0 -14
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +0 -45
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +0 -62
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +0 -134
- package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +0 -54
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +0 -41
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +0 -49
- package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +0 -349
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +0 -49
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +0 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js +0 -36
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +0 -52
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +0 -72
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js +0 -25
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +0 -60
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js +0 -33
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js +0 -74
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +0 -101
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +0 -73
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +0 -71
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +0 -167
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +0 -39
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +0 -216
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js +0 -28
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +0 -158
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js +0 -60
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js +0 -41
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js +0 -24
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +0 -120
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +0 -30
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +0 -9
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +0 -53
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +0 -62
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +0 -129
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +0 -102
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +0 -50
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +0 -110
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +0 -128
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +0 -125
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +0 -88
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +0 -96
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +0 -119
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +0 -103
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js +0 -77
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js +0 -44
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js +0 -58
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +0 -30
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +0 -164
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js +0 -24
- package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +0 -50
- package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +0 -14
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +0 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +0 -9
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +0 -1
- package/dist/packages/taco/src/components/Provider/Localization.d.ts +0 -398
- package/dist/packages/taco/src/components/Report/Report.d.ts +0 -10
- package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +0 -19
- package/dist/packages/taco/src/components/Report/useReport.d.ts +0 -23
- package/dist/packages/taco/src/components/Table/Table.d.ts +0 -14
- package/dist/packages/taco/src/components/Table3/Table3.d.ts +0 -20
- package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +0 -23
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +0 -3
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +0 -9
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +0 -10
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +0 -3
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +0 -3
- package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +0 -3
- package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +0 -10
- package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +0 -12
- package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +0 -8
- package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +0 -3
- package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +0 -8
- package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +0 -46
- package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +0 -2
- package/dist/packages/taco/src/components/Table3/types.d.ts +0 -54
- package/dist/packages/taco/src/components/Table3/useTable3.d.ts +0 -30
- package/dist/packages/taco/src/components/Table3/util/editing.d.ts +0 -2
- package/dist/packages/taco/src/index.d.ts +0 -74
- package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +0 -19
- package/dist/packages/taco/src/primitives/Table/Core/components/Body/Body.d.ts +0 -8
- package/dist/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.d.ts +0 -7
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +0 -3
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +0 -3
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.d.ts +0 -10
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.d.ts +0 -19
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.d.ts +0 -13
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +0 -2
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +0 -2
- package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +0 -2
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/Header.d.ts +0 -45
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.d.ts +0 -6
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.d.ts +0 -21
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.d.ts +0 -12
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.d.ts +0 -15
- package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +0 -4
- package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +0 -4
- package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +0 -6
- package/dist/packages/taco/src/primitives/Table/Core/components/Row/RowContext.d.ts +0 -7
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +0 -7
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.d.ts +0 -12
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +0 -12
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.d.ts +0 -7
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.d.ts +0 -10
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.d.ts +0 -4
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.d.ts +0 -9
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.d.ts +0 -17
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +0 -7
- package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.d.ts +0 -8
- package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +0 -2
- package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts +0 -3
- package/dist/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.d.ts +0 -4
- package/dist/packages/taco/src/primitives/Table/Core/features/useTableRenderer.d.ts +0 -10
- package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +0 -24
- package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +0 -25
- package/dist/packages/taco/src/primitives/Table/types.d.ts +0 -379
- package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.d.ts +0 -13
- package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +0 -8
- package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +0 -5
- package/dist/packages/taco/src/primitives/Table/useTableManager/types.d.ts +0 -14
- package/dist/packages/taco/src/primitives/Table/useTableManager/useTableManager.d.ts +0 -65
- package/dist/packages/taco/src/primitives/Table/useTableManager/util/settings.d.ts +0 -12
- package/dist/packages/taco/src/utils/dom.d.ts +0 -8
- /package/dist/{packages/taco/src/components → components}/Accordion/Accordion.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Alert/Alert.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/AlertDialog/AlertDialog.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/AlertDialog/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/AlertDialog/components/Content.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/AlertDialog/components/Footer.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/AlertDialog/components/Trigger.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Backdrop/Backdrop.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Badge/Badge.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/BadgeIcon/BadgeIcon.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Banner/Banner.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Banner/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Button/Button.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Button/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Calendar/Calendar.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Card/Card.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Combobox/Combobox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Combobox/useCombobox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Datepicker/Datepicker.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Datepicker/useDatepicker.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/Dialog.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/components/Content.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/components/DialogDrawer.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/components/Extra.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/components/Trigger.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/types.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Dialog/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/Drawer.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/components/Content.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/components/Trigger.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/images.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/types.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Drawer/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Field/Field.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Form/Form.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Group/Group.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Hanger/Hanger.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/Header.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Avatar.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Badge.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Display.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Item.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/types.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/AgreementSelector.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Button.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Link.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/Logo.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/MenuButton.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/PrimaryNavigation.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Header/components/SecondaryNavigation.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/HoverCard/HoverCard.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/HoverCard/Primitives.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/Icon.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AccountPreview.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Accounting.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AccountingYear.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AccountingYearCancel.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AiChatSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AiStars.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowBottom.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowDown.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowEnd.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowLeft.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowRight.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowStart.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowTop.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowUp.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Attach.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AttachAuto.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AttachCancel.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AttachWarning.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Autotext.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/AutotextInsert.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Basic.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/BasicTabs.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/BellSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Book.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Booking.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Budget.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Calendar.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CashAccount.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CashReports.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChartArea.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChartBar.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChartLine.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChartPie.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChartTable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Chat.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChatSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronDown.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronDownDouble.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronDownSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronLeft.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronRight.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronRightDouble.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronRightSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronUp.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronUpDouble.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronUpSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CircleClose.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CircleInformation.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CircleMinus.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CirclePlus.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CircleQuestionmark.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CircleTick.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/CircleWarning.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Clamp.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ClampOpen.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Close.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ColumnFreeze.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Columns.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ConnectionEnable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ConnectionRevoke.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Contacts.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Copy.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Courses.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Credit.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Delete.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DeletePermanently.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Depecriate.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Developer.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DistributionTemplate.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Document.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentApprove.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentCut.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentError.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentMerge.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentMove.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentPreview.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentReceived.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentSplit.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentTime.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Download.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Drag.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ECopedia.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ESignature.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Edit.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EditSimple.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EllipsisVertical.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntriesOnAccount.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntriesOpen.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntriesWarning.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Envelope.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EnvelopeApproved.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EnvelopeSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ExpandView.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Expenses.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Export.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ExportToExcel.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ExportToPdf.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EyeOff.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/EyeOn.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Filter.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/FilterSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/FontSize.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/GraphSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Hash.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/HeightExtraTall.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/HeightMedium.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/HeightShort.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/HeightTall.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Home.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Images.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Import.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Inbox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/InboxEinvoicing.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/InboxScanning.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/InboxSmart.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Info.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Inventory.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/InventoryMatrix.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/JournalPro.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Layout.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutBoth.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutFirst.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutLast.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutNone.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCard.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Lightbulb.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Line.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/List.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ListBulleted.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ListSearch.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Location.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Lock.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LockOpen.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Log.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/LogOut.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Market.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/MatchAmount.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/MatchEntries.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Menu.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Mileage.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ModalResize.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ModalShrink.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/More.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/MoreSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Move.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/NavigationList.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Note.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/NoteFollowUp.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/NoteRead.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Numbers.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PartnerApi.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PaymentPaid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PaymentUnpaid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Period.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PersonChange.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PersonMinus.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PersonPlus.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PersonTick.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PhoneSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Play.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/PlusMinus.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Print.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ProcessPayment.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ProductLedgerCard.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Profile.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ProjectCards.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Projects.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/QuestionMark.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/QuestionMarkBold.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Quicklinks.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/RatingBankruptcy.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Reconciled.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Refresh.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Report.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ReportSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Restore.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/RotateLeft.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/RotateRight.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Sales.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Search.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/SearchBold.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Secure.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/SecureTick.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Settings.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/SettingsSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Shortcuts.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ShowAll.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ShowLess.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ShowMore.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ShowTemplate.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Sliders.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Smartpay.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/SortBy.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Star.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/StarSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Subscriptions.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/SystemEntries.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Tag.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/TemplateOverride.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Templates.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbBoth.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbDown.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbDownSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbUp.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbUpSolid.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Tick.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/TickBold.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Time.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Transfer.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/TransferCancel.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/TransferLocked.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Undo.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Undock.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Unreconciled.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Warning.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Webshop.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Website.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Workflow.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/Zoom.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Icon/components/index.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/IconButton/IconButton.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Input/Input.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Input/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Layout/Layout.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Layout/components/Content.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Layout/components/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Layout/components/Page.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Layout/components/Sidebar.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Layout/components/Top.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Listbox/Listbox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Listbox/ScrollableList.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Listbox/useListbox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Listbox/useMultiListbox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Listbox/useTypeahead.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Listbox/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/Menu.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Checkbox.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Content.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Header.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Item.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Link.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/RadioGroup.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Separator.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/SubMenu.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Menu/components/Trigger.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/ModeSwitch/ModeSwitch.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation/Navigation.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation2/Navigation2.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation2/components/Content.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation2/components/Group.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation2/components/Link.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation2/components/Section.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Navigation2/components/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/OverflowGroup/OverflowGroup.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Pagination/PageNumbers.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Pagination/Pagination.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Pagination/usePagination.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Pagination/usePaginationShortcuts.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Popover/Popover.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Popover/Primitives.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Popover/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Progress/Progress.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Provider/Provider.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/RadioGroup/RadioGroup.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/RadioGroup/util.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Body/util.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Footer/Footer.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Footer/Summary.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core/components/Row/BuiltIns → components/Report/components/Row}/SkeletonRow.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Toolbar/components/Search/Search.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/listeners/useTableRowActiveListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core/features → components/Report/styles}/useStylesheet.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/util/rows.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/ScrollArea/ScrollArea.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/SearchInput/SearchInput.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/SearchInput2/SearchInput2.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select/Select.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select/useSelect.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/Select2.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/All.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Collection.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Create.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Edit.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Group.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Option.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Search.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Title.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/components/Trigger.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/hooks/useChildren.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/types.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Select2/utilities.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Shortcut/Shortcut.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Spinner/Spinner.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Switch/Switch.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/Table.storyexample.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/components/BaseTable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/components/PaginatedTable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/components/Table.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/components/WindowedTable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/useRowCreation.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/useTable.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/hooks/useTableKeyboardNavigation.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/types.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/util/renderColumn.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/util/renderRow.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/util/rowIndexPath.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/util/sortTypes.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Table/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Tabs/Tabs.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Tag/Tag.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Textarea/Textarea.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Toast/Toast.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Toast/Toaster.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Toast/util.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Tour/Tour.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Treeview/Treeview.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/Truncate/Truncate.d.ts +0 -0
- /package/dist/{packages/taco/src/components → components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
- /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Body/EmptyStateBody.js +0 -0
- /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Body/util.js +0 -0
- /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Footer/Footer.js +0 -0
- /package/dist/esm/packages/taco/src/{primitives/Table/Core/components/Row/BuiltIns → components/Report/components/Row}/SkeletonRow.js +0 -0
- /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Toolbar/components/Filters/util.js +0 -0
- /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/util/rows.js +0 -0
- /package/dist/esm/packages/taco/src/primitives/Table/{Core → useTableManager}/features/useTableRef.js +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useBoundaryOverflowDetection.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useBoundingClientRectListener.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useDebouncedEffect.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useGlobalKeyDown.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useId.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useIntersectionObserver.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useIsFormControl.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useIsHoverStatePaused.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useIsLargeScreen.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useLazyEffect.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useLocalStorage.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useMatchMedia.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useMergedRef.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/usePrevious.d.ts +0 -0
- /package/dist/{packages/taco/src/hooks → hooks}/useTacoSettings.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/BubbleSelect.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Button.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Collection/Collection.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Collection/components/Root.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/Listbox2.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Context.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Group.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Option.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Root.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Title.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/types.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Sortable/Sortable.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Sortable/components/Container.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Sortable/components/Item.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Sortable/components/List.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableDataLoader.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableColumnFreezing.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableColumnOrdering.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableFontSize.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableFooter.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTablePrinting.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives/Table/Core → primitives/Table/useTableManager}/features/useTableRef.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowActions.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowClick.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowExpansion.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowGoto.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowGroups.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowHeight.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowSelection.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableSearch.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableServerLoading.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableSettings.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableDataListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableFilterListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableFontSizeListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableRowHeightListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableRowSelectionListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableSearchListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableServerLoadingListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableSettingsListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableShortcutsListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableSortingListener.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/columns.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/columns.spec.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/filtering.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/presets.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/search.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/setup.d.ts +0 -0
- /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/sorting.d.ts +0 -0
- /package/dist/{packages/taco/src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{packages/taco/src/utils → utils}/aria.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/date.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/debounce.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/device.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useDraggable.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useDropTarget.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useListScrollTo.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useOnClickOutside.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useRefState.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useTimer.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/hooks/useTruncated.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/input.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/keyboard.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/mergeRefs.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/storyutils.d.ts +0 -0
- /package/dist/{packages/taco/src/utils → utils}/tailwind.d.ts +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Cell.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/cell/Cell.tsx"],"sourcesContent":["import React from 'react';\nimport { CellContext, ColumnMeta, TableMeta } from '@tanstack/react-table';\nimport { DisplayCell } from './DisplayCell';\nimport { EditingCell } from './EditingCell';\nimport { useRowContext } from '../../rows/RowContext';\nimport { isCellHighlighted } from '../../../util/columns';\nimport { getIndicatorCellClassName, isIndicatorVisible } from './Indicator';\n\nexport type CellProps<TType = unknown> = CellContext<TType, unknown> & {\n children?: string | JSX.Element;\n};\n\nexport function Cell<TType = unknown>(props: CellProps<TType>) {\n const { column, row, table, index, getValue, cell } = props;\n const { isHovered: isHoveredRow, hasError, rowIndex } = useRowContext();\n const rows = table.getRowModel().rows;\n const tableMeta = table.options.meta as TableMeta<unknown>;\n const columnMeta = column.columnDef.meta as ColumnMeta<TType, unknown>;\n const rowErrors = tableMeta.validation.errors ? tableMeta.validation.errors[row.id] : null;\n const isColumnError = hasError && rowErrors && !!rowErrors[column.id];\n\n const rowActiveIndex = tableMeta.rowActive.rowActiveIndex;\n const isActiveRow = rowActiveIndex !== undefined && rows[rowActiveIndex]?.id === row.id;\n let value = getValue();\n\n const allVisibleColumns = table.getVisibleLeafColumns();\n const lastColumnIndex = allVisibleColumns.length > 0 ? allVisibleColumns.length - 1 : 0;\n const className = isIndicatorVisible(rowIndex, rowActiveIndex, tableMeta.editing.rowMoveReason)\n ? getIndicatorCellClassName(index, lastColumnIndex)\n : undefined;\n\n // When row has changes we always need to show the editing state value, end revert it to original value only when row got saved successfully.\n // Otherwise it might confuse user because it will look like display value is getting reverted everytime user leaves the row.\n if (tableMeta.editing.isEditing) {\n const editingValue = tableMeta.editing.getCellValue(cell);\n value = editingValue ?? value;\n }\n\n const memoedHighlight = React.useMemo(() => {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n if (!tableMeta.search.isHighlightingEnabled || !columnMeta.enableSearch) {\n return false;\n }\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n if (tableMeta.search.query?.length) {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n return isCellHighlighted(tableMeta.search.query, value, columnMeta.dataType);\n }\n\n return false;\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n }, [value, tableMeta.search.isHighlightingEnabled, tableMeta.search.excludeUnmatchedResults, tableMeta.search.query]);\n\n const memoedHighlightCurrent = React.useMemo(() => {\n if (\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n !tableMeta.search.isHighlightingEnabled ||\n !memoedHighlight ||\n tableMeta.search.currentHighlightColumnIndex === undefined\n ) {\n return false;\n }\n\n const [rowActiveIndex, currentColumnIndex] =\n tableMeta.search.highlightedColumnIndexes[tableMeta.search.currentHighlightColumnIndex];\n\n if (rowActiveIndex === rowIndex && currentColumnIndex === index) {\n return true;\n }\n\n return false;\n }, [memoedHighlight, tableMeta.search.highlightedColumnIndexes.length, tableMeta.search.currentHighlightColumnIndex]);\n\n const highlightProps = {\n highlighted: memoedHighlight,\n highlightedAsCurrent: memoedHighlightCurrent,\n };\n\n if (\n tableMeta.editing.isEditing &&\n columnMeta.control &&\n (isActiveRow ||\n (isHoveredRow && !tableMeta.rowActive.isHoverStatePaused) ||\n // When cell has error, we renderimg it in edit mode (UX reqirement)\n isColumnError)\n ) {\n return <EditingCell {...props} {...highlightProps} className={className} />;\n }\n\n return <DisplayCell {...props} {...highlightProps} value={value} className={className} />;\n}\n"],"names":["Cell","props","column","row","table","index","getValue","cell","isHovered","isHoveredRow","hasError","rowIndex","useRowContext","rows","getRowModel","tableMeta","options","meta","columnMeta","columnDef","rowErrors","validation","errors","id","isColumnError","rowActiveIndex","rowActive","isActiveRow","undefined","_rows$rowActiveIndex","value","allVisibleColumns","getVisibleLeafColumns","lastColumnIndex","length","className","isIndicatorVisible","editing","rowMoveReason","getIndicatorCellClassName","isEditing","editingValue","getCellValue","memoedHighlight","React","useMemo","search","isHighlightingEnabled","enableSearch","_tableMeta$search$que","query","isCellHighlighted","dataType","excludeUnmatchedResults","memoedHighlightCurrent","currentHighlightColumnIndex","currentColumnIndex","highlightedColumnIndexes","highlightProps","highlighted","highlightedAsCurrent","control","isHoverStatePaused","EditingCell","DisplayCell"],"mappings":";;;;;;;SAYgBA,IAAIA,CAAkBC,KAAuB;;E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,KAAK;GACf,EAAE,CAACsC,eAAe,EAAE5B,SAAS,CAAC+B,MAAM,CAACW,wBAAwB,CAACvB,MAAM,EAAEnB,SAAS,CAAC+B,MAAM,CAACS,2BAA2B,CAAC,CAAC;EAErH,MAAMG,cAAc,GAAG;IACnBC,WAAW,EAAEhB,eAAe;IAC5BiB,oBAAoB,EAAEN;GACzB;EAED,IACIvC,SAAS,CAACsB,OAAO,CAACG,SAAS,IAC3BtB,UAAU,CAAC2C,OAAO,KACjBlC,WAAW,IACPlB,YAAY,IAAI,CAACM,SAAS,CAACW,SAAS,CAACoC,kBAAmB;;EAEzDtC,aAAa,CAAC,EACpB;IACE,oBAAOoB,6BAACmB,WAAW,oBAAK9D,KAAK,EAAMyD,cAAc;MAAEvB,SAAS,EAAEA;OAAa;;EAG/E,oBAAOS,6BAACoB,WAAW,oBAAK/D,KAAK,EAAMyD,cAAc;IAAE5B,KAAK,EAAEA,KAAK;IAAEK,SAAS,EAAEA;KAAa;AAC7F;;;;"}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import cn from 'clsx';
|
3
|
+
import { Highlight } from './Highlight.js';
|
4
|
+
|
5
|
+
function DisplayCell(props) {
|
6
|
+
const {
|
7
|
+
cell,
|
8
|
+
className,
|
9
|
+
column,
|
10
|
+
value,
|
11
|
+
index,
|
12
|
+
row,
|
13
|
+
table,
|
14
|
+
tableRef,
|
15
|
+
highlighted,
|
16
|
+
highlightedAsCurrent
|
17
|
+
} = props;
|
18
|
+
const columnMeta = React__default.useMemo(() => column.columnDef.meta, []);
|
19
|
+
const tableMeta = table.options.meta;
|
20
|
+
// cells are heavily memoized because performance in our table is critical
|
21
|
+
// be careful and selective about props that you pass to the cell
|
22
|
+
const memoedProps = React__default.useMemo(() => {
|
23
|
+
var _ref, _ref2, _props$children, _columnMeta$renderer;
|
24
|
+
return {
|
25
|
+
align: columnMeta.align,
|
26
|
+
children: (_ref = (_ref2 = (_props$children = props.children) !== null && _props$children !== void 0 ? _props$children : (_columnMeta$renderer = columnMeta.renderer) === null || _columnMeta$renderer === void 0 ? void 0 : _columnMeta$renderer.call(columnMeta, value, row.original)) !== null && _ref2 !== void 0 ? _ref2 : value) !== null && _ref !== void 0 ? _ref : null,
|
27
|
+
className: cn(className, typeof columnMeta.className === 'function' ? columnMeta.className(row.original) : columnMeta.className),
|
28
|
+
data: row.original,
|
29
|
+
debug: table.options.debugAll,
|
30
|
+
enableTruncate: columnMeta.enableTruncate,
|
31
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
32
|
+
frozenColumnIndex: tableMeta.columnFreezing.frozenColumnIndex,
|
33
|
+
id: cell.id,
|
34
|
+
index,
|
35
|
+
tableRef
|
36
|
+
};
|
37
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
38
|
+
}, [row.original, props.children, value, tableMeta.columnFreezing.frozenColumnIndex, className]);
|
39
|
+
return /*#__PURE__*/React__default.createElement(MemoedDisplayCell, Object.assign({}, memoedProps, {
|
40
|
+
highlighted: highlighted,
|
41
|
+
highlightedAsCurrent: highlightedAsCurrent
|
42
|
+
}));
|
43
|
+
}
|
44
|
+
const MemoedDisplayCell = /*#__PURE__*/React__default.memo(function MemoedDisplayCell(props) {
|
45
|
+
const {
|
46
|
+
align = 'left',
|
47
|
+
children,
|
48
|
+
className: customClassName,
|
49
|
+
debug,
|
50
|
+
enableTruncate,
|
51
|
+
frozenColumnIndex,
|
52
|
+
highlighted,
|
53
|
+
highlightedAsCurrent = false,
|
54
|
+
id,
|
55
|
+
index,
|
56
|
+
tableRef
|
57
|
+
} = props;
|
58
|
+
const layoutClassName = cn('py-[var(--table3-cell-padding-y)] px-[var(--table3-cell-padding-x)] focus:outline-none break-word hyphens-auto', customClassName);
|
59
|
+
const className = highlighted ? undefined : layoutClassName;
|
60
|
+
const content = enableTruncate ? /*#__PURE__*/React__default.createElement("span", {
|
61
|
+
className: "truncate"
|
62
|
+
}, children) : children;
|
63
|
+
if (debug) {
|
64
|
+
console.log('cell render', id);
|
65
|
+
}
|
66
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
67
|
+
className: className,
|
68
|
+
"data-align": align,
|
69
|
+
"data-column-index": index,
|
70
|
+
"data-highlighted": highlighted,
|
71
|
+
role: "cell",
|
72
|
+
// cells must be focusable (but not included in tabbing - hence -1)
|
73
|
+
tabIndex: -1
|
74
|
+
}, highlighted ? ( /*#__PURE__*/React__default.createElement(Highlight, {
|
75
|
+
className: layoutClassName,
|
76
|
+
current: highlightedAsCurrent,
|
77
|
+
frozenColumnIndex: frozenColumnIndex,
|
78
|
+
index: index,
|
79
|
+
tableRef: tableRef
|
80
|
+
}, content)) : content);
|
81
|
+
});
|
82
|
+
|
83
|
+
export { DisplayCell };
|
84
|
+
//# sourceMappingURL=DisplayCell.js.map
|
package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DisplayCell.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/cell/DisplayCell.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { ColumnMeta, CellContext, TableMeta } from '@tanstack/react-table';\nimport { Table3ColumnAlignment } from '../../../types';\nimport { Highlight } from './Highlight';\n\nexport type DisplayCellProps<TType = unknown> = CellContext<TType, unknown> & {\n highlighted?: boolean;\n highlightedAsCurrent?: boolean;\n children?: string | JSX.Element;\n className?: string;\n value?: any;\n};\n\nexport function DisplayCell<TType = unknown>(props: DisplayCellProps<TType>) {\n const { cell, className, column, value, index, row, table, tableRef, highlighted, highlightedAsCurrent } = props;\n const columnMeta = React.useMemo(() => column.columnDef.meta as ColumnMeta<TType, unknown>, []);\n const tableMeta = table.options.meta as TableMeta<TType>;\n\n // cells are heavily memoized because performance in our table is critical\n // be careful and selective about props that you pass to the cell\n const memoedProps = React.useMemo(() => {\n return {\n align: columnMeta.align,\n children: (props.children ?? columnMeta.renderer?.(value, row.original) ?? value ?? null) as\n | JSX.Element\n | string\n | null,\n className: cn(\n className,\n typeof columnMeta.className === 'function' ? columnMeta.className(row.original) : columnMeta.className\n ),\n data: row.original,\n debug: table.options.debugAll,\n enableTruncate: columnMeta.enableTruncate,\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n frozenColumnIndex: tableMeta.columnFreezing.frozenColumnIndex,\n id: cell.id,\n index,\n tableRef,\n };\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n }, [row.original, props.children, value, tableMeta.columnFreezing.frozenColumnIndex, className]);\n\n return <MemoedDisplayCell<TType> {...memoedProps} highlighted={highlighted} highlightedAsCurrent={highlightedAsCurrent} />;\n}\n\n// Memoization\nexport type MemoedDisplayCellProps<TType = unknown> = {\n align?: Table3ColumnAlignment;\n children: JSX.Element | string | null;\n className?: string;\n data: TType;\n debug?: boolean;\n enableTruncate?: boolean;\n frozenColumnIndex?: number;\n highlighted?: boolean;\n highlightedAsCurrent?: boolean;\n id: string;\n index: number;\n tableRef: React.RefObject<HTMLDivElement>;\n};\n\nconst MemoedDisplayCell = React.memo(function MemoedDisplayCell<TType = unknown>(props: MemoedDisplayCellProps<TType>) {\n const {\n align = 'left',\n children,\n className: customClassName,\n debug,\n enableTruncate,\n frozenColumnIndex,\n highlighted,\n highlightedAsCurrent = false,\n id,\n index,\n tableRef,\n } = props;\n\n const layoutClassName = cn(\n 'py-[var(--table3-cell-padding-y)] px-[var(--table3-cell-padding-x)] focus:outline-none break-word hyphens-auto',\n customClassName\n );\n\n const className = highlighted ? undefined : layoutClassName;\n const content = enableTruncate ? <span className=\"truncate\">{children}</span> : children;\n\n if (debug) {\n console.log('cell render', id);\n }\n\n return (\n <div\n className={className}\n data-align={align}\n data-column-index={index}\n data-highlighted={highlighted}\n role=\"cell\"\n // cells must be focusable (but not included in tabbing - hence -1)\n tabIndex={-1}>\n {highlighted ? (\n <Highlight\n className={layoutClassName}\n current={highlightedAsCurrent}\n frozenColumnIndex={frozenColumnIndex}\n index={index}\n tableRef={tableRef}>\n {content}\n </Highlight>\n ) : (\n content\n )}\n </div>\n );\n}) as <TType = unknown>(props: MemoedDisplayCellProps<TType>) => JSX.Element;\n"],"names":["DisplayCell","props","cell","className","column","value","index","row","table","tableRef","highlighted","highlightedAsCurrent","columnMeta","React","useMemo","columnDef","meta","tableMeta","options","memoedProps","align","children","_ref","_ref2","_props$children","_columnMeta$renderer","renderer","call","original","cn","data","debug","debugAll","enableTruncate","frozenColumnIndex","columnFreezing","id","MemoedDisplayCell","memo","customClassName","layoutClassName","undefined","content","console","log","role","tabIndex","Highlight","current"],"mappings":";;;;SAcgBA,WAAWA,CAAkBC,KAA8B;EACvE,MAAM;IAAEC,IAAI;IAAEC,SAAS;IAAEC,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,GAAG;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,WAAW;IAAEC;GAAsB,GAAGV,KAAK;EAChH,MAAMW,UAAU,GAAGC,cAAK,CAACC,OAAO,CAAC,MAAMV,MAAM,CAACW,SAAS,CAACC,IAAkC,EAAE,EAAE,CAAC;EAC/F,MAAMC,SAAS,GAAGT,KAAK,CAACU,OAAO,CAACF,IAAwB;;;EAIxD,MAAMG,WAAW,GAAGN,cAAK,CAACC,OAAO,CAAC;;IAC9B,OAAO;MACHM,KAAK,EAAER,UAAU,CAACQ,KAAK;MACvBC,QAAQ,GAAAC,IAAA,IAAAC,KAAA,IAAAC,eAAA,GAAGvB,KAAK,CAACoB,QAAQ,cAAAG,eAAA,cAAAA,eAAA,IAAAC,oBAAA,GAAIb,UAAU,CAACc,QAAQ,cAAAD,oBAAA,uBAAnBA,oBAAA,CAAAE,IAAA,CAAAf,UAAU,EAAYP,KAAK,EAAEE,GAAG,CAACqB,QAAQ,CAAC,cAAAL,KAAA,cAAAA,KAAA,GAAIlB,KAAK,cAAAiB,IAAA,cAAAA,IAAA,GAAI,IAG1E;MACVnB,SAAS,EAAE0B,EAAE,CACT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CAACC,GAAG,CAAC,aAAa,EAAER,EAAE,CAAC;;EAGlC,oBACIvB;IACIV,SAAS,EAAEA,SAAS;kBACRiB,KAAK;yBACEd,KAAK;wBACNI,WAAW;IAC7BmC,IAAI,EAAC,MAAM;;IAEXC,QAAQ,EAAE,CAAC;KACVpC,WAAW,kBACRG,6BAACkC,SAAS;IACN5C,SAAS,EAAEqC,eAAe;IAC1BQ,OAAO,EAAErC,oBAAoB;IAC7BuB,iBAAiB,EAAEA,iBAAiB;IACpC5B,KAAK,EAAEA,KAAK;IACZG,QAAQ,EAAEA;KACTiC,OAAO,CACA,IAEZA,OACH,CACC;AAEd,CAAC,CAA2E;;;;"}
|
@@ -0,0 +1,212 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import cn from 'clsx';
|
3
|
+
import { Field } from '../../../../Field/Field.js';
|
4
|
+
import { useRowContext, RowContext } from '../../rows/RowContext.js';
|
5
|
+
import { Highlight } from './Highlight.js';
|
6
|
+
import { Indicator, IndicatorReason } from './Indicator.js';
|
7
|
+
import { getCurrentRowCellElement } from '../../../util/columns.js';
|
8
|
+
import { globalFilterFn, columnFilterFn } from '../../../util/filtering.js';
|
9
|
+
import { hasChanged, willRowMoveAfterSorting } from '../../../util/editing.js';
|
10
|
+
import { EDITING_ACTIONS_WIDTH } from '../internal/EditingActions.js';
|
11
|
+
import { EditingControl } from './EditingControl.js';
|
12
|
+
|
13
|
+
function EditingCell(props) {
|
14
|
+
const {
|
15
|
+
cell,
|
16
|
+
table
|
17
|
+
} = props;
|
18
|
+
const {
|
19
|
+
isHovered
|
20
|
+
} = useRowContext();
|
21
|
+
// Need to explicitly pass tableMeta, because just passing the table object will not trigger editing change since table object is not mutatable.
|
22
|
+
const tableMeta = table.options.meta;
|
23
|
+
const error = tableMeta.validation.getCellError(cell);
|
24
|
+
return /*#__PURE__*/React__default.createElement(MemoedEditingCell, Object.assign({}, props, {
|
25
|
+
error: error,
|
26
|
+
isHovered: isHovered,
|
27
|
+
tableMeta: tableMeta
|
28
|
+
}));
|
29
|
+
}
|
30
|
+
const MemoedEditingCell = /*#__PURE__*/React__default.memo(function MemoedEditingCell(props) {
|
31
|
+
var _tableMeta$editing$ge, _tableMeta$editing$ro, _rows$tableMeta$rowAc, _column$columnDef$met, _column$columnDef$met2;
|
32
|
+
const {
|
33
|
+
cell,
|
34
|
+
column,
|
35
|
+
index,
|
36
|
+
getValue,
|
37
|
+
table,
|
38
|
+
tableRef,
|
39
|
+
row,
|
40
|
+
tableMeta,
|
41
|
+
error,
|
42
|
+
highlighted,
|
43
|
+
highlightedAsCurrent
|
44
|
+
} = props;
|
45
|
+
const {
|
46
|
+
rowIndex
|
47
|
+
} = React__default.useContext(RowContext);
|
48
|
+
const columnMeta = column.columnDef.meta;
|
49
|
+
const cellRef = React__default.useRef(null);
|
50
|
+
const controlRef = React__default.useRef(null);
|
51
|
+
const handleChange = value => tableMeta.editing.setCellValue(cell, value);
|
52
|
+
const value = (_tableMeta$editing$ge = tableMeta.editing.getCellValue(cell)) !== null && _tableMeta$editing$ge !== void 0 ? _tableMeta$editing$ge : getValue();
|
53
|
+
const handleFocus = event => {
|
54
|
+
var _event$target;
|
55
|
+
// Check if cell is hidden behind pinned columns or edititng actions, and scroll to it.
|
56
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
57
|
+
const frozenColumnIndex = tableMeta.columnFreezing.frozenColumnIndex;
|
58
|
+
const tableElement = tableRef.current;
|
59
|
+
if (tableElement && frozenColumnIndex !== undefined && index > frozenColumnIndex) {
|
60
|
+
var _cellRef$current;
|
61
|
+
const lastFrozenColumnElement = getCurrentRowCellElement(frozenColumnIndex, tableElement);
|
62
|
+
const cellRect = (_cellRef$current = cellRef.current) === null || _cellRef$current === void 0 ? void 0 : _cellRef$current.getBoundingClientRect();
|
63
|
+
const lastFrozenRect = lastFrozenColumnElement === null || lastFrozenColumnElement === void 0 ? void 0 : lastFrozenColumnElement.getBoundingClientRect();
|
64
|
+
const tableRect = tableElement.getBoundingClientRect();
|
65
|
+
// Check for pinned columns overlap
|
66
|
+
if (cellRect && lastFrozenRect && cellRect.left < lastFrozenRect.left + lastFrozenRect.width) {
|
67
|
+
const pinnedColumnsWidth = lastFrozenRect.left + lastFrozenRect.width;
|
68
|
+
tableElement.scrollTo(cellRect.left - pinnedColumnsWidth, tableElement.scrollTop);
|
69
|
+
// Check for editing actions overlap
|
70
|
+
} else if (cellRect && tableRect && cellRect.right > tableRect.right - EDITING_ACTIONS_WIDTH) {
|
71
|
+
const spaceBetweenCellAndEditingActions = 10;
|
72
|
+
tableElement.scrollTo(
|
73
|
+
// Need to take into account if table has been already scrolled.
|
74
|
+
tableElement.scrollLeft + EDITING_ACTIONS_WIDTH + spaceBetweenCellAndEditingActions, tableElement.scrollTop);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
if ((_event$target = event.target) !== null && _event$target !== void 0 && _event$target.select) {
|
78
|
+
requestAnimationFrame(() => {
|
79
|
+
event.target.select();
|
80
|
+
});
|
81
|
+
}
|
82
|
+
};
|
83
|
+
const handleBlur = () => {
|
84
|
+
var _tableMeta$editing$ch;
|
85
|
+
tableMeta.editing.setDetailModeEditing(false);
|
86
|
+
if ((_tableMeta$editing$ch = tableMeta.editing.changes) !== null && _tableMeta$editing$ch !== void 0 && _tableMeta$editing$ch[cell.row.id]) {
|
87
|
+
tableMeta.validation.validate(cell.row.id, tableMeta.editing.changes[cell.row.id], cell.column.id);
|
88
|
+
}
|
89
|
+
};
|
90
|
+
// row move indicator
|
91
|
+
const moveReason = ((_tableMeta$editing$ro = tableMeta.editing.rowMoveReason) === null || _tableMeta$editing$ro === void 0 ? void 0 : _tableMeta$editing$ro[cell.column.id]) || null;
|
92
|
+
const rows = table.getRowModel().rows;
|
93
|
+
const isActiveRow = tableMeta.rowActive.rowActiveIndex !== undefined && ((_rows$tableMeta$rowAc = rows[tableMeta.rowActive.rowActiveIndex]) === null || _rows$tableMeta$rowAc === void 0 ? void 0 : _rows$tableMeta$rowAc.id) === row.id;
|
94
|
+
const mountNode = React__default.useMemo(() => {
|
95
|
+
if (moveReason !== null && isActiveRow && !error) {
|
96
|
+
var _cellRef$current2, _cellRef$current2$par;
|
97
|
+
return (_cellRef$current2 = cellRef.current) === null || _cellRef$current2 === void 0 ? void 0 : (_cellRef$current2$par = _cellRef$current2.parentElement) === null || _cellRef$current2$par === void 0 ? void 0 : _cellRef$current2$par.firstChild;
|
98
|
+
}
|
99
|
+
return null;
|
100
|
+
}, [moveReason, isActiveRow, error, cellRef]);
|
101
|
+
const removeMoveReason = () => {
|
102
|
+
tableMeta.editing.removeRowMoveReason();
|
103
|
+
};
|
104
|
+
React__default.useEffect(() => {
|
105
|
+
// To avoid reseting move reason on another row hover,
|
106
|
+
// we need to check for changes only if value got changed in the current row.
|
107
|
+
if (!isActiveRow) {
|
108
|
+
return;
|
109
|
+
}
|
110
|
+
if (error) {
|
111
|
+
if (tableMeta.editing.rowMoveReason) {
|
112
|
+
removeMoveReason();
|
113
|
+
}
|
114
|
+
return;
|
115
|
+
}
|
116
|
+
if (hasChanged(getValue(), value)) {
|
117
|
+
const moveReason = getRowMoveReason(table, rowIndex,
|
118
|
+
// cannot use row.index, as this is not kept in sync once a column is sorted.
|
119
|
+
row.original, cell, value,
|
120
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
121
|
+
tableMeta.search.excludeUnmatchedResults);
|
122
|
+
if (moveReason) {
|
123
|
+
tableMeta.editing.setRowMoveReason({
|
124
|
+
[cell.column.id]: moveReason
|
125
|
+
});
|
126
|
+
}
|
127
|
+
} else {
|
128
|
+
removeMoveReason();
|
129
|
+
}
|
130
|
+
return removeMoveReason;
|
131
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
132
|
+
}, [value, tableMeta.rowActive.rowActiveIndex, tableMeta.search.excludeUnmatchedResults, error]);
|
133
|
+
const controlRenderer = (_column$columnDef$met = column.columnDef.meta) === null || _column$columnDef$met === void 0 ? void 0 : _column$columnDef$met.control;
|
134
|
+
const className = cn(
|
135
|
+
// Removing a pixel border width in the padding to avoid a pixel jump when control element is rendered.
|
136
|
+
'py-[calc(var(--table3-cell-padding-y)_-_0.06rem_-_1px)]', {
|
137
|
+
// Textarea control is positioned absolute, when column is in enableTruncate mode, so the cell need to be positioned relative
|
138
|
+
relative: controlRenderer === 'textarea' && columnMeta.enableTruncate
|
139
|
+
}, props.className, typeof columnMeta.className === 'function' ? columnMeta.className(row.original) : columnMeta.className);
|
140
|
+
const fieldClassName = cn('!min-h-0 w-full !pb-0', {
|
141
|
+
'!pb-3': !!error
|
142
|
+
});
|
143
|
+
const content = /*#__PURE__*/React__default.createElement(Field, {
|
144
|
+
message: error,
|
145
|
+
invalid: !!error,
|
146
|
+
className: fieldClassName
|
147
|
+
}, /*#__PURE__*/React__default.createElement(EditingControl, {
|
148
|
+
align: columnMeta.align,
|
149
|
+
column: cell.column,
|
150
|
+
data: cell.row.original,
|
151
|
+
initialValue: getValue(),
|
152
|
+
onBlur: handleBlur,
|
153
|
+
onFocus: handleFocus,
|
154
|
+
onChange: handleChange,
|
155
|
+
ref: controlRef,
|
156
|
+
table: table,
|
157
|
+
tableRef: tableRef,
|
158
|
+
value: value,
|
159
|
+
cell: cell,
|
160
|
+
error: error,
|
161
|
+
tabIndex: isActiveRow ? 0 : -1,
|
162
|
+
isActiveRow: isActiveRow
|
163
|
+
}));
|
164
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, moveReason !== null && mountNode && !error ? ( /*#__PURE__*/React__default.createElement(Indicator, {
|
165
|
+
reason: moveReason,
|
166
|
+
columnName: String((_column$columnDef$met2 = column.columnDef.meta) === null || _column$columnDef$met2 === void 0 ? void 0 : _column$columnDef$met2.header),
|
167
|
+
mountNode: mountNode,
|
168
|
+
validationErrors: []
|
169
|
+
})) : null, /*#__PURE__*/React__default.createElement("div", {
|
170
|
+
className: !highlighted ? className : undefined,
|
171
|
+
"data-align": columnMeta.align,
|
172
|
+
"data-column-index": index,
|
173
|
+
role: "cell",
|
174
|
+
"data-editable": true,
|
175
|
+
ref: cellRef,
|
176
|
+
"data-invalid": !!error,
|
177
|
+
"data-highlighted": highlighted
|
178
|
+
}, highlighted ? ( /*#__PURE__*/React__default.createElement(Highlight, {
|
179
|
+
current: highlightedAsCurrent,
|
180
|
+
className: className,
|
181
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
182
|
+
frozenColumnIndex: tableMeta.columnFreezing.frozenColumnIndex,
|
183
|
+
index: index,
|
184
|
+
tableRef: tableRef
|
185
|
+
}, content)) : content));
|
186
|
+
});
|
187
|
+
function getRowMoveReason(table, rowIndex, rowValues, cell, newValue, excludeUnmatchedResults) {
|
188
|
+
var _table$getState$sorti;
|
189
|
+
let rowMoveReason = null;
|
190
|
+
const {
|
191
|
+
globalFilter
|
192
|
+
} = table.getState();
|
193
|
+
const isFilteredByGlobalFilter = excludeUnmatchedResults ? Object.values({
|
194
|
+
...rowValues,
|
195
|
+
[cell.id]: newValue
|
196
|
+
}).some(() => {
|
197
|
+
// Global filter can be undefined when there is no text being searched so we pass an empty string to
|
198
|
+
// globalFilterFn as query in that case.
|
199
|
+
return globalFilterFn(String(newValue), globalFilter ? String(globalFilter) : '');
|
200
|
+
}) : true;
|
201
|
+
if (!isFilteredByGlobalFilter) {
|
202
|
+
rowMoveReason = IndicatorReason.SEARCH;
|
203
|
+
} else if (cell.column.getIsFiltered() && !columnFilterFn(newValue, cell.column.getFilterValue())) {
|
204
|
+
rowMoveReason = IndicatorReason.FILTER;
|
205
|
+
} else if (!rowMoveReason && cell.column.getIsSorted() && willRowMoveAfterSorting(newValue, cell, rowIndex, table.getRowModel().rows, !!((_table$getState$sorti = table.getState().sorting.find(s => s.id === cell.column.id)) !== null && _table$getState$sorti !== void 0 && _table$getState$sorti.desc))) {
|
206
|
+
rowMoveReason = IndicatorReason.SORTING;
|
207
|
+
}
|
208
|
+
return rowMoveReason;
|
209
|
+
}
|
210
|
+
|
211
|
+
export { EditingCell };
|
212
|
+
//# sourceMappingURL=EditingCell.js.map
|
package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EditingCell.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/cell/EditingCell.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport _ from 'lodash';\nimport { TableMeta, CellContext, ColumnMeta, Cell as RTCell, Table as RTTable } from '@tanstack/react-table';\nimport { Indicator, IndicatorReason } from './Indicator';\nimport { columnFilterFn, globalFilterFn } from '../../../util/filtering';\nimport { Table3ColumnControlRenderer, Table3FilterValue } from '../../../types';\nimport { hasChanged, willRowMoveAfterSorting } from '../../../util/editing';\nimport { getCurrentRowCellElement } from '../../../util/columns';\nimport { EDITING_ACTIONS_WIDTH } from '../internal/EditingActions';\nimport { EditingControl } from './EditingControl';\nimport { RowContext, useRowContext } from '../../rows/RowContext';\nimport { Field } from '../../../../Field/Field';\nimport { Highlight } from './Highlight';\n\nexport type EditingCellProps<TType = unknown> = CellContext<TType, unknown> & {\n highlighted?: boolean;\n highlightedAsCurrent?: boolean;\n children?: string | JSX.Element;\n className?: string;\n};\n\nexport function EditingCell<TType = unknown>(props: EditingCellProps<TType>) {\n const { cell, table } = props;\n const { isHovered } = useRowContext();\n // Need to explicitly pass tableMeta, because just passing the table object will not trigger editing change since table object is not mutatable.\n const tableMeta = table.options.meta as TableMeta<TType>;\n const error = tableMeta.validation.getCellError(cell);\n return <MemoedEditingCell<TType> {...props} error={error} isHovered={isHovered} tableMeta={tableMeta} />;\n}\n\n// Memoization\nexport type MemoedEditingCellProps<TType = unknown> = EditingCellProps<TType> & {\n isHovered: boolean;\n tableMeta: TableMeta<TType>;\n error?: string;\n};\n\nconst MemoedEditingCell = React.memo(function MemoedEditingCell<TType = unknown>(props: MemoedEditingCellProps<TType>) {\n const { cell, column, index, getValue, table, tableRef, row, tableMeta, error, highlighted, highlightedAsCurrent } = props;\n const { rowIndex } = React.useContext(RowContext);\n\n const columnMeta = column.columnDef.meta as ColumnMeta<TType, unknown>;\n\n const cellRef = React.useRef<HTMLDivElement>(null);\n const controlRef = React.useRef<HTMLElement>(null);\n\n const handleChange = (value: unknown) => tableMeta.editing.setCellValue(cell, value);\n const value = tableMeta.editing.getCellValue(cell) ?? getValue();\n\n const handleFocus = event => {\n // Check if cell is hidden behind pinned columns or edititng actions, and scroll to it.\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const frozenColumnIndex = tableMeta.columnFreezing.frozenColumnIndex;\n const tableElement = tableRef.current;\n\n if (tableElement && frozenColumnIndex !== undefined && index > frozenColumnIndex) {\n const lastFrozenColumnElement = getCurrentRowCellElement(frozenColumnIndex, tableElement);\n const cellRect = cellRef.current?.getBoundingClientRect();\n const lastFrozenRect = lastFrozenColumnElement?.getBoundingClientRect();\n const tableRect = tableElement.getBoundingClientRect();\n\n // Check for pinned columns overlap\n if (cellRect && lastFrozenRect && cellRect.left < lastFrozenRect.left + lastFrozenRect.width) {\n const pinnedColumnsWidth = lastFrozenRect.left + lastFrozenRect.width;\n tableElement.scrollTo(cellRect.left - pinnedColumnsWidth, tableElement.scrollTop);\n // Check for editing actions overlap\n } else if (cellRect && tableRect && cellRect.right > tableRect.right - EDITING_ACTIONS_WIDTH) {\n const spaceBetweenCellAndEditingActions = 10;\n tableElement.scrollTo(\n // Need to take into account if table has been already scrolled.\n tableElement.scrollLeft + EDITING_ACTIONS_WIDTH + spaceBetweenCellAndEditingActions,\n tableElement.scrollTop\n );\n }\n }\n\n if (event.target?.select) {\n requestAnimationFrame(() => {\n event.target.select();\n });\n }\n };\n\n const handleBlur = () => {\n tableMeta.editing.setDetailModeEditing(false);\n if (tableMeta.editing.changes?.[cell.row.id]) {\n tableMeta.validation.validate(cell.row.id, tableMeta.editing.changes[cell.row.id] as TType, cell.column.id);\n }\n };\n\n // row move indicator\n const moveReason = tableMeta.editing.rowMoveReason?.[cell.column.id] || null;\n const rows = table.getRowModel().rows;\n const isActiveRow =\n tableMeta.rowActive.rowActiveIndex !== undefined && rows[tableMeta.rowActive.rowActiveIndex]?.id === row.id;\n const mountNode = React.useMemo(() => {\n if (moveReason !== null && isActiveRow && !error) {\n return cellRef.current?.parentElement?.firstChild as Element | null;\n }\n return null;\n }, [moveReason, isActiveRow, error, cellRef]);\n\n const removeMoveReason = () => {\n tableMeta.editing.removeRowMoveReason();\n };\n\n React.useEffect(() => {\n // To avoid reseting move reason on another row hover,\n // we need to check for changes only if value got changed in the current row.\n if (!isActiveRow) {\n return;\n }\n\n if (error) {\n if (tableMeta.editing.rowMoveReason) {\n removeMoveReason();\n }\n return;\n }\n\n if (hasChanged(getValue(), value)) {\n const moveReason = getRowMoveReason(\n table,\n rowIndex, // cannot use row.index, as this is not kept in sync once a column is sorted.\n row.original,\n cell,\n value,\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n tableMeta.search.excludeUnmatchedResults\n );\n if (moveReason) {\n tableMeta.editing.setRowMoveReason({ [cell.column.id]: moveReason });\n }\n } else {\n removeMoveReason();\n }\n return removeMoveReason;\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n }, [value, tableMeta.rowActive.rowActiveIndex, tableMeta.search.excludeUnmatchedResults, error]);\n\n const controlRenderer = column.columnDef.meta?.control as Table3ColumnControlRenderer;\n\n const className = cn(\n // Removing a pixel border width in the padding to avoid a pixel jump when control element is rendered.\n 'py-[calc(var(--table3-cell-padding-y)_-_0.06rem_-_1px)]',\n {\n // Textarea control is positioned absolute, when column is in enableTruncate mode, so the cell need to be positioned relative\n relative: controlRenderer === 'textarea' && columnMeta.enableTruncate,\n },\n props.className,\n typeof columnMeta.className === 'function' ? columnMeta.className(row.original) : columnMeta.className\n );\n\n const fieldClassName = cn('!min-h-0 w-full !pb-0', {\n '!pb-3': !!error,\n });\n\n const content = (\n <Field message={error} invalid={!!error} className={fieldClassName}>\n <EditingControl\n align={columnMeta.align}\n column={cell.column}\n data={cell.row.original}\n initialValue={getValue()}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onChange={handleChange}\n ref={controlRef}\n table={table}\n tableRef={tableRef}\n value={value}\n cell={cell}\n error={error}\n tabIndex={isActiveRow ? 0 : -1}\n isActiveRow={isActiveRow}\n />\n </Field>\n );\n\n return (\n <>\n {moveReason !== null && mountNode && !error ? (\n <Indicator\n reason={moveReason}\n columnName={String(column.columnDef.meta?.header)}\n mountNode={mountNode}\n validationErrors={[]}\n />\n ) : null}\n <div\n className={!highlighted ? className : undefined}\n data-align={columnMeta.align}\n data-column-index={index}\n role=\"cell\"\n data-editable\n ref={cellRef}\n data-invalid={!!error}\n data-highlighted={highlighted}>\n {highlighted ? (\n <Highlight\n current={highlightedAsCurrent}\n className={className}\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n frozenColumnIndex={tableMeta.columnFreezing.frozenColumnIndex}\n index={index}\n tableRef={tableRef}>\n {content}\n </Highlight>\n ) : (\n content\n )}\n </div>\n </>\n );\n}) as <TType = unknown>(props: MemoedEditingCellProps<TType>) => JSX.Element;\n\nfunction getRowMoveReason<TType>(\n table: RTTable<any>,\n rowIndex: number,\n rowValues: TType,\n cell: RTCell<any, unknown>,\n newValue: any,\n excludeUnmatchedResults: boolean\n) {\n let rowMoveReason: IndicatorReason | null = null;\n const { globalFilter } = table.getState();\n\n const isFilteredByGlobalFilter = excludeUnmatchedResults\n ? Object.values<unknown>({ ...rowValues, [cell.id]: newValue }).some(() => {\n // Global filter can be undefined when there is no text being searched so we pass an empty string to\n // globalFilterFn as query in that case.\n return globalFilterFn(String(newValue), globalFilter ? String(globalFilter) : '');\n })\n : true;\n\n if (!isFilteredByGlobalFilter) {\n rowMoveReason = IndicatorReason.SEARCH;\n } else if (cell.column.getIsFiltered() && !columnFilterFn(newValue, cell.column.getFilterValue() as Table3FilterValue)) {\n rowMoveReason = IndicatorReason.FILTER;\n } else if (\n !rowMoveReason &&\n cell.column.getIsSorted() &&\n willRowMoveAfterSorting(\n newValue,\n cell,\n rowIndex,\n table.getRowModel().rows,\n !!table.getState().sorting.find(s => s.id === cell.column.id)?.desc\n )\n ) {\n rowMoveReason = IndicatorReason.SORTING;\n }\n\n return rowMoveReason;\n}\n"],"names":["EditingCell","props","cell","table","isHovered","useRowContext","tableMeta","options","meta","error","validation","getCellError","React","MemoedEditingCell","memo","column","index","getValue","tableRef","row","highlighted","highlightedAsCurrent","rowIndex","useContext","RowContext","columnMeta","columnDef","cellRef","useRef","controlRef","handleChange","value","editing","setCellValue","_tableMeta$editing$ge","getCellValue","handleFocus","event","frozenColumnIndex","columnFreezing","tableElement","current","undefined","_cellRef$current","lastFrozenColumnElement","getCurrentRowCellElement","cellRect","getBoundingClientRect","lastFrozenRect","tableRect","left","width","pinnedColumnsWidth","scrollTo","scrollTop","right","EDITING_ACTIONS_WIDTH","spaceBetweenCellAndEditingActions","scrollLeft","_event$target","target","select","requestAnimationFrame","handleBlur","setDetailModeEditing","_tableMeta$editing$ch","changes","id","validate","moveReason","_tableMeta$editing$ro","rowMoveReason","rows","getRowModel","isActiveRow","rowActive","rowActiveIndex","_rows$tableMeta$rowAc","mountNode","useMemo","_cellRef$current2","_cellRef$current2$par","parentElement","firstChild","removeMoveReason","removeRowMoveReason","useEffect","hasChanged","getRowMoveReason","original","search","excludeUnmatchedResults","setRowMoveReason","controlRenderer","_column$columnDef$met","control","className","cn","relative","enableTruncate","fieldClassName","content","Field","message","invalid","EditingControl","align","data","initialValue","onBlur","onFocus","onChange","ref","tabIndex","Indicator","reason","columnName","String","_column$columnDef$met2","header","validationErrors","role","Highlight","rowValues","newValue","globalFilter","getState","isFilteredByGlobalFilter","Object","values","some","globalFilterFn","IndicatorReason","SEARCH","getIsFiltered","columnFilterFn","getFilterValue","FILTER","getIsSorted","willRowMoveAfterSorting","_table$getState$sorti","sorting","find","s","desc","SORTING"],"mappings":";;;;;;;;;;;;SAsBgBA,WAAWA,CAAkBC,KAA8B;E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CAACK,MAAM;GACzC,MAAM,IACH,CAAClE,aAAa,IACdrE,IAAI,CAACa,MAAM,CAAC2H,WAAW,EAAE,IACzBC,uBAAuB,CACnBf,QAAQ,EACR1H,IAAI,EACJoB,QAAQ,EACRnB,KAAK,CAACsE,WAAW,EAAE,CAACD,IAAI,EACxB,CAAC,GAAAoE,qBAAA,GAACzI,KAAK,CAAC2H,QAAQ,EAAE,CAACe,OAAO,CAACC,IAAI,CAACC,CAAC,IAAIA,CAAC,CAAC5E,EAAE,KAAKjE,IAAI,CAACa,MAAM,CAACoD,EAAE,CAAC,cAAAyE,qBAAA,eAA3DA,qBAAA,CAA6DI,IAAI,EACtE,EACH;IACEzE,aAAa,GAAG6D,eAAe,CAACa,OAAO;;EAG3C,OAAO1E,aAAa;AACxB;;;;"}
|
package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import cn from 'clsx';
|
3
|
+
import { mergeRefs } from '../../../../../utils/mergeRefs.js';
|
4
|
+
import { shouldTriggerShortcut } from '../../../../../utils/keyboard.js';
|
5
|
+
import { Input } from '../../../../Input/Input.js';
|
6
|
+
import { deselectInputValue } from '../../../../../utils/input.js';
|
7
|
+
import { Datepicker } from '../../../../Datepicker/Datepicker.js';
|
8
|
+
import { Switch } from '../../../../Switch/Switch.js';
|
9
|
+
import { getTableLeftScrollDistance } from '../../../util/scrolling.js';
|
10
|
+
import { getInputAppearanceClassnames, getCellAlignmentClasses } from '../styles.js';
|
11
|
+
import { hasChanged } from '../../../util/editing.js';
|
12
|
+
import _ from 'lodash-es';
|
13
|
+
import { TextareaControl } from './controls/TextareaControl.js';
|
14
|
+
|
15
|
+
const EditingControl = /*#__PURE__*/React__default.forwardRef(function Control(props, externalRef) {
|
16
|
+
var _ref$current;
|
17
|
+
const {
|
18
|
+
align,
|
19
|
+
column,
|
20
|
+
data,
|
21
|
+
initialValue,
|
22
|
+
onChange: handleChange,
|
23
|
+
table,
|
24
|
+
tableRef,
|
25
|
+
value,
|
26
|
+
cell,
|
27
|
+
error,
|
28
|
+
isActiveRow,
|
29
|
+
...attributes
|
30
|
+
} = props;
|
31
|
+
const tableMeta = table.options.meta;
|
32
|
+
const ref = React__default.useRef();
|
33
|
+
const refCallback = mergeRefs([ref, externalRef]);
|
34
|
+
const columnMeta = column.columnDef.meta;
|
35
|
+
const controlRenderer = columnMeta === null || columnMeta === void 0 ? void 0 : columnMeta.control;
|
36
|
+
const isCellInDetailMode = tableMeta.editing.detailModeEditing && (ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.contains(document.activeElement));
|
37
|
+
const originalRow = cell.row.original;
|
38
|
+
// Revert to initial value if escape was pressed
|
39
|
+
const handleKeyDown = event => {
|
40
|
+
// For some reason keydown event handler is not propogated to the table when input or other control element is
|
41
|
+
// in focus so we need to check for shortcut that toggles the editing.
|
42
|
+
if (shouldTriggerShortcut(event, {
|
43
|
+
key: 'e',
|
44
|
+
meta: true,
|
45
|
+
shift: false
|
46
|
+
})) {
|
47
|
+
tableMeta.editing.toggleEditing(false);
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
const target = event.target;
|
51
|
+
if (target.readOnly) {
|
52
|
+
return;
|
53
|
+
}
|
54
|
+
// Prevent row arrow shortcuts triggering when in detail mode
|
55
|
+
if (tableMeta.editing.detailModeEditing && (event.key === 'ArrowUp' || event.key === 'ArrowDown')) {
|
56
|
+
event.stopPropagation();
|
57
|
+
}
|
58
|
+
// Revert to initial value if escape was pressed
|
59
|
+
if (event.key === 'Escape') {
|
60
|
+
event.preventDefault();
|
61
|
+
if (tableMeta.editing.detailModeEditing) {
|
62
|
+
tableMeta.editing.setDetailModeEditing(false);
|
63
|
+
if (value !== initialValue) {
|
64
|
+
// Before reseting to initial value, we need to check if edited row with cell initial value is the same as original row,
|
65
|
+
// and in this case we need to completely remove row from editing state to avoid saving the same data as original.
|
66
|
+
const changedRow = tableMeta.editing.changes ? tableMeta.editing.changes[cell.row.id] : {};
|
67
|
+
const rowEdtitingDataWithInitialValue = {
|
68
|
+
...changedRow,
|
69
|
+
[cell.column.id]: initialValue
|
70
|
+
};
|
71
|
+
if (_.isEqual(cell.row.original, rowEdtitingDataWithInitialValue)) {
|
72
|
+
tableMeta.editing.resetChange(cell.row.id);
|
73
|
+
} else {
|
74
|
+
handleChange(initialValue);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
} else {
|
78
|
+
var _tableRef$current;
|
79
|
+
tableMeta.editing.toggleEditing(false);
|
80
|
+
(_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.focus();
|
81
|
+
}
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
// Should enable/disable editing mode if Enter was clicked
|
85
|
+
if (event.key === 'Enter') {
|
86
|
+
event.preventDefault();
|
87
|
+
if (!tableMeta.editing.detailModeEditing) {
|
88
|
+
deselectInputValue(target);
|
89
|
+
} else {
|
90
|
+
var _target$select;
|
91
|
+
target === null || target === void 0 ? void 0 : (_target$select = target.select) === null || _target$select === void 0 ? void 0 : _target$select.call(target);
|
92
|
+
}
|
93
|
+
// Ketydown "Enter" should toggle edititng mode
|
94
|
+
tableMeta.editing.setDetailModeEditing(!tableMeta.editing.detailModeEditing);
|
95
|
+
return;
|
96
|
+
}
|
97
|
+
};
|
98
|
+
const isNumber = (columnMeta === null || columnMeta === void 0 ? void 0 : columnMeta.dataType) === 'number';
|
99
|
+
const handleInputKeyDown = event => {
|
100
|
+
handleKeyDown(event);
|
101
|
+
// Switching to editing mode, when key pressed any alphabetical character or number
|
102
|
+
if (/^[a-z0-9]$/i.test(event.key)) {
|
103
|
+
tableMeta.editing.setDetailModeEditing(true);
|
104
|
+
}
|
105
|
+
};
|
106
|
+
const handleFocus = event => {
|
107
|
+
var _event$target;
|
108
|
+
// @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
|
109
|
+
const {
|
110
|
+
frozenColumnIndex: externalFrozenColumnIndex = -1,
|
111
|
+
frozenInternalColumnCount = 0
|
112
|
+
} = tableMeta.columnFreezing;
|
113
|
+
const tableElement = tableMeta.tableRef.current;
|
114
|
+
const frozenColumnIndex = externalFrozenColumnIndex > -1 ? externalFrozenColumnIndex + frozenInternalColumnCount : frozenInternalColumnCount - 1;
|
115
|
+
const cell = (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest('[role="cell"]');
|
116
|
+
if (!tableElement || !cell) {
|
117
|
+
return;
|
118
|
+
}
|
119
|
+
const isEditing = true;
|
120
|
+
const leftScrollDistance = getTableLeftScrollDistance(tableElement, cell, frozenColumnIndex, isEditing);
|
121
|
+
if (leftScrollDistance !== null) {
|
122
|
+
tableElement.scrollLeft = leftScrollDistance;
|
123
|
+
}
|
124
|
+
};
|
125
|
+
if (typeof controlRenderer === 'function') {
|
126
|
+
return controlRenderer({
|
127
|
+
...attributes,
|
128
|
+
invalid: !!error,
|
129
|
+
onFocus: handleFocus,
|
130
|
+
ref: refCallback,
|
131
|
+
setValue: nextValue => {
|
132
|
+
if (nextValue !== value) {
|
133
|
+
handleChange(nextValue);
|
134
|
+
}
|
135
|
+
},
|
136
|
+
fontSize: tableMeta.fontSize.size,
|
137
|
+
value
|
138
|
+
}, data);
|
139
|
+
} else if (controlRenderer === 'datepicker') {
|
140
|
+
const handleDatepickerChange = event => {
|
141
|
+
// When datepicker looses focus, it triggers change event, even if date wasn't changed,
|
142
|
+
// so adding additional check here to prevent adding change to the edititng state.
|
143
|
+
const originalDate = originalRow[cell.column.id];
|
144
|
+
const changedDate = event.detail;
|
145
|
+
if (hasChanged(originalDate, changedDate)) {
|
146
|
+
handleChange(changedDate);
|
147
|
+
}
|
148
|
+
};
|
149
|
+
return /*#__PURE__*/React__default.createElement(Datepicker, Object.assign({}, attributes, {
|
150
|
+
invalid: !!error,
|
151
|
+
className: cn({
|
152
|
+
'[&_input]:!yt-focus-dark': isCellInDetailMode
|
153
|
+
}),
|
154
|
+
onChange: handleDatepickerChange,
|
155
|
+
onFocus: handleFocus,
|
156
|
+
onKeyDown: handleInputKeyDown,
|
157
|
+
ref: refCallback,
|
158
|
+
value: value
|
159
|
+
}));
|
160
|
+
} else if (controlRenderer === 'switch') {
|
161
|
+
return /*#__PURE__*/React__default.createElement(Switch, Object.assign({}, attributes, {
|
162
|
+
checked: Boolean(value),
|
163
|
+
onChange: handleChange,
|
164
|
+
onFocus: handleFocus,
|
165
|
+
ref: refCallback
|
166
|
+
}));
|
167
|
+
} else if (controlRenderer === 'textarea') {
|
168
|
+
return /*#__PURE__*/React__default.createElement(TextareaControl, Object.assign({}, props, {
|
169
|
+
invalid: !!error,
|
170
|
+
isCellInDetailMode: isCellInDetailMode,
|
171
|
+
onFocus: handleFocus,
|
172
|
+
onKeyDown: handleInputKeyDown,
|
173
|
+
ref: refCallback,
|
174
|
+
fontSize: tableMeta.fontSize.size
|
175
|
+
}));
|
176
|
+
}
|
177
|
+
return /*#__PURE__*/React__default.createElement(Input, Object.assign({}, attributes, {
|
178
|
+
invalid: !!error,
|
179
|
+
className: cn(getInputAppearanceClassnames(), getCellAlignmentClasses(align), {
|
180
|
+
'!yt-focus-dark': isCellInDetailMode
|
181
|
+
}),
|
182
|
+
onChange: event => {
|
183
|
+
handleChange(event.target.value);
|
184
|
+
},
|
185
|
+
onFocus: handleFocus,
|
186
|
+
onKeyDown: handleInputKeyDown,
|
187
|
+
ref: refCallback,
|
188
|
+
type: isNumber ? 'number' : undefined,
|
189
|
+
value: isNumber ? value : String(value !== null && value !== void 0 ? value : '')
|
190
|
+
}));
|
191
|
+
});
|
192
|
+
|
193
|
+
export { EditingControl };
|
194
|
+
//# sourceMappingURL=EditingControl.js.map
|
package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EditingControl.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/cell/EditingControl.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { Cell as RTCell, Column as RTColumn, Table as RTTable, TableMeta } from '@tanstack/react-table';\nimport _ from 'lodash';\n\nimport { deselectInputValue } from '../../../../../utils/input';\nimport { hasChanged } from '../../../util/editing';\nimport { Datepicker } from '../../../../Datepicker/Datepicker';\nimport { Switch } from '../../../../Switch/Switch';\nimport { Input } from '../../../../Input/Input';\nimport { getCellAlignmentClasses, getInputAppearanceClassnames } from '../styles';\nimport { mergeRefs } from '../../../../../utils/mergeRefs';\nimport { Table3ColumnAlignment, Table3ColumnDataType } from '../../../types';\nimport { TextareaControl } from './controls/TextareaControl';\nimport { shouldTriggerShortcut } from '../../../../../utils/keyboard';\nimport { getTableLeftScrollDistance } from '../../../util/scrolling';\n\nexport type EditingControlProps<TType = unknown> = {\n align?: Table3ColumnAlignment;\n column: RTColumn<TType, unknown>;\n data: TType;\n initialValue: any;\n value: any;\n onBlur: (event: React.FocusEvent) => void;\n onFocus: (event: React.FocusEvent) => void;\n onChange: (value: any) => void;\n ref: React.Ref<HTMLElement>;\n table: RTTable<TType>;\n tableRef: React.RefObject<HTMLDivElement>;\n cell: RTCell<TType, unknown>;\n error?: string;\n tabIndex?: number;\n isActiveRow?: boolean;\n};\n\nexport const EditingControl = React.forwardRef<HTMLElement, any>(function Control<TType = unknown>(\n props: EditingControlProps<TType>,\n externalRef: React.Ref<HTMLElement>\n) {\n const {\n align,\n column,\n data,\n initialValue,\n onChange: handleChange,\n table,\n tableRef,\n value,\n cell,\n error,\n isActiveRow,\n ...attributes\n } = props;\n\n const tableMeta = table.options.meta as TableMeta<unknown>;\n const ref = React.useRef<HTMLElement>();\n const refCallback = mergeRefs([ref, externalRef]);\n\n const columnMeta = column.columnDef.meta;\n const controlRenderer = columnMeta?.control;\n\n const isCellInDetailMode =\n tableMeta.editing.detailModeEditing && (ref as React.RefObject<HTMLElement>)?.current?.contains(document.activeElement);\n\n const originalRow = cell.row.original as TType;\n\n // Revert to initial value if escape was pressed\n const handleKeyDown = (event: React.KeyboardEvent) => {\n // For some reason keydown event handler is not propogated to the table when input or other control element is\n // in focus so we need to check for shortcut that toggles the editing.\n if (shouldTriggerShortcut(event, { key: 'e', meta: true, shift: false })) {\n tableMeta.editing.toggleEditing(false);\n return;\n }\n\n const target = event.target as HTMLInputElement;\n\n if (target.readOnly) {\n return;\n }\n\n // Prevent row arrow shortcuts triggering when in detail mode\n if (tableMeta.editing.detailModeEditing && (event.key === 'ArrowUp' || event.key === 'ArrowDown')) {\n event.stopPropagation();\n }\n\n // Revert to initial value if escape was pressed\n if (event.key === 'Escape') {\n event.preventDefault();\n\n if (tableMeta.editing.detailModeEditing) {\n tableMeta.editing.setDetailModeEditing(false);\n\n if (value !== initialValue) {\n // Before reseting to initial value, we need to check if edited row with cell initial value is the same as original row,\n // and in this case we need to completely remove row from editing state to avoid saving the same data as original.\n const changedRow: any = tableMeta.editing.changes ? tableMeta.editing.changes[cell.row.id] : {};\n const rowEdtitingDataWithInitialValue = { ...changedRow, [cell.column.id]: initialValue };\n if (_.isEqual(cell.row.original, rowEdtitingDataWithInitialValue)) {\n tableMeta.editing.resetChange(cell.row.id);\n } else {\n handleChange(initialValue);\n }\n }\n } else {\n tableMeta.editing.toggleEditing(false);\n tableRef.current?.focus();\n }\n\n return;\n }\n\n // Should enable/disable editing mode if Enter was clicked\n if (event.key === 'Enter') {\n event.preventDefault();\n\n if (!tableMeta.editing.detailModeEditing) {\n deselectInputValue(target);\n } else {\n target?.select?.();\n }\n\n // Ketydown \"Enter\" should toggle edititng mode\n tableMeta.editing.setDetailModeEditing(!tableMeta.editing.detailModeEditing);\n\n return;\n }\n };\n\n const isNumber = columnMeta?.dataType === ('number' as Table3ColumnDataType);\n const handleInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n handleKeyDown(event);\n\n // Switching to editing mode, when key pressed any alphabetical character or number\n if (/^[a-z0-9]$/i.test(event.key)) {\n tableMeta.editing.setDetailModeEditing(true);\n }\n };\n\n const handleFocus = (event: React.FocusEvent) => {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const { frozenColumnIndex: externalFrozenColumnIndex = -1, frozenInternalColumnCount = 0 } = tableMeta.columnFreezing;\n const tableElement = tableMeta.tableRef.current;\n const frozenColumnIndex =\n externalFrozenColumnIndex > -1\n ? externalFrozenColumnIndex + frozenInternalColumnCount\n : frozenInternalColumnCount - 1;\n const cell = event.target?.closest('[role=\"cell\"]');\n\n if (!tableElement || !cell) {\n return;\n }\n\n const isEditing = true;\n const leftScrollDistance = getTableLeftScrollDistance(tableElement, cell, frozenColumnIndex, isEditing);\n\n if (leftScrollDistance !== null) {\n tableElement.scrollLeft = leftScrollDistance;\n }\n };\n\n if (typeof controlRenderer === 'function') {\n return controlRenderer(\n {\n ...attributes,\n invalid: !!error,\n onFocus: handleFocus,\n ref: refCallback,\n setValue: nextValue => {\n if (nextValue !== value) {\n handleChange(nextValue);\n }\n },\n fontSize: tableMeta.fontSize.size,\n value,\n },\n data\n );\n } else if (controlRenderer === 'datepicker') {\n const handleDatepickerChange = event => {\n // When datepicker looses focus, it triggers change event, even if date wasn't changed,\n // so adding additional check here to prevent adding change to the edititng state.\n const originalDate = originalRow[cell.column.id];\n const changedDate = (event as any).detail;\n if (hasChanged(originalDate, changedDate)) {\n handleChange(changedDate);\n }\n };\n\n return (\n <Datepicker\n {...attributes}\n invalid={!!error}\n className={cn({\n '[&_input]:!yt-focus-dark': isCellInDetailMode,\n })}\n onChange={handleDatepickerChange}\n onFocus={handleFocus}\n onKeyDown={handleInputKeyDown}\n ref={refCallback}\n value={value as Date}\n />\n );\n } else if (controlRenderer === 'switch') {\n return (\n <Switch {...attributes} checked={Boolean(value)} onChange={handleChange} onFocus={handleFocus} ref={refCallback} />\n );\n } else if (controlRenderer === 'textarea') {\n return (\n <TextareaControl\n {...props}\n invalid={!!error}\n isCellInDetailMode={isCellInDetailMode}\n onFocus={handleFocus}\n onKeyDown={handleInputKeyDown}\n ref={refCallback}\n fontSize={tableMeta.fontSize.size}\n />\n );\n }\n\n return (\n <Input\n {...attributes}\n invalid={!!error}\n className={cn(getInputAppearanceClassnames(), getCellAlignmentClasses(align), {\n '!yt-focus-dark': isCellInDetailMode,\n })}\n onChange={event => {\n handleChange(event.target.value);\n }}\n onFocus={handleFocus}\n onKeyDown={handleInputKeyDown}\n ref={refCallback}\n type={isNumber ? 'number' : undefined}\n value={isNumber ? value : String(value ?? '')}\n />\n );\n});\n"],"names":["EditingControl","React","forwardRef","Control","props","externalRef","align","column","data","initialValue","onChange","handleChange","table","tableRef","value","cell","error","isActiveRow","attributes","tableMeta","options","meta","ref","useRef","refCallback","mergeRefs","columnMeta","columnDef","controlRenderer","control","isCellInDetailMode","editing","detailModeEditing","_ref$current","current","contains","document","activeElement","originalRow","row","original","handleKeyDown","event","shouldTriggerShortcut","key","shift","toggleEditing","target","readOnly","stopPropagation","preventDefault","setDetailModeEditing","changedRow","changes","id","rowEdtitingDataWithInitialValue","_","isEqual","resetChange","_tableRef$current","focus","deselectInputValue","_target$select","select","call","isNumber","dataType","handleInputKeyDown","test","handleFocus","frozenColumnIndex","externalFrozenColumnIndex","frozenInternalColumnCount","columnFreezing","tableElement","_event$target","closest","isEditing","leftScrollDistance","getTableLeftScrollDistance","scrollLeft","invalid","onFocus","setValue","nextValue","fontSize","size","handleDatepickerChange","originalDate","changedDate","detail","hasChanged","Datepicker","className","cn","onKeyDown","Switch","checked","Boolean","TextareaControl","Input","getInputAppearanceClassnames","getCellAlignmentClasses","type","undefined","String"],"mappings":";;;;;;;;;;;;;;MAmCaA,cAAc,gBAAGC,cAAK,CAACC,UAAU,CAAmB,SAASC,OAAOA,CAC7EC,KAAiC,EACjCC,WAAmC;;EAEnC,MAAM;IACFC,KAAK;IACLC,MAAM;IACNC,IAAI;IACJC,YAAY;IACZC,QAAQ,EAAEC,YAAY;IACtBC,KAAK;IACLC,QAAQ;IACRC,KAAK;IACLC,IAAI;IACJC,KAAK;IACLC,W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