@economic/taco 2.19.0 → 2.20.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 +18 -0
- package/dist/components/Report/components/Body/Body.d.ts +8 -0
- package/dist/components/Report/components/Cell/Cell.d.ts +3 -0
- package/dist/components/Report/components/Cell/DisplayCell.d.ts +7 -0
- package/dist/components/Report/components/Cell/GroupedCell.d.ts +7 -0
- package/dist/components/Report/components/Cell/util.d.ts +18 -0
- package/dist/components/Report/components/Footer/Footer.d.ts +6 -0
- package/dist/components/Report/components/Footer/Summary.d.ts +7 -0
- package/dist/components/Report/components/Header/Header.d.ts +37 -0
- package/dist/components/Report/components/Header/components/Goto.d.ts +6 -0
- package/dist/components/Report/components/Header/components/Menu.d.ts +17 -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 +16 -0
- package/dist/components/Report/components/Row/Row.d.ts +8 -0
- package/dist/components/Report/components/Row/RowContext.d.ts +9 -0
- package/dist/components/Report/components/Row/SkeletonRow.d.ts +10 -0
- package/dist/components/Report/components/Toolbar/Toolbar.d.ts +15 -0
- package/dist/components/Report/components/Toolbar/components/Filters/Filters.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +7 -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 +9 -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/components/Placeholder.d.ts +12 -0
- package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +2 -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/Search/Search.d.ts +8 -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/features/useReportExport.d.ts +3 -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/useStylesheet.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 +14 -0
- package/dist/components/Report/util/rows.d.ts +7 -0
- package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +4 -0
- package/dist/components/Report/util/useTableRenderer.d.ts +9 -0
- package/dist/components/Table3/components/rows/Row.d.ts +1 -1
- package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
- package/dist/components/Table3/hooks/useTable.d.ts +5 -5
- package/dist/components/Table3/types.d.ts +21 -3
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +1 -1
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Alert/Alert.js +1 -1
- package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +2 -2
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Badge/Badge.js +1 -1
- package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
- package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js +1 -1
- package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Banner/Banner.js +2 -2
- package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/Button.js +1 -1
- package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Card/Card.js +2 -2
- package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +1 -1
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +5 -5
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Form/Form.js +1 -1
- package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Group/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +2 -2
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/Header.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js +2 -2
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js +2 -2
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Button.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Link.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Logo.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +1 -1
- package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Icon/Icon.js +1 -1
- package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -1
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +1 -1
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/Layout.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Content.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Page.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js +1 -1
- package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +2 -2
- package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js +1 -1
- package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Progress/Progress.js +1 -1
- package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +18 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/util.js +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +1 -1
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +3 -3
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select/Select.js +1 -1
- package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select/useSelect.js +1 -1
- package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Search.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Title.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +2 -2
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +1 -1
- package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +1 -1
- package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Switch/Switch.js +1 -1
- package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +2 -2
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +1 -6
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +4 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +5 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -1
- package/dist/esm/packages/taco/src/{primitives/Table/useTable/features/useTablePrinting.js → components/Table3/hooks/features/usePrinting.js} +3 -3
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +4 -3
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tag/Tag.js +2 -2
- package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +1 -1
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Toast/Toast.js +2 -2
- package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +2 -2
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +1 -1
- package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/types.js +27 -0
- package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js +11 -21
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js +42 -2
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js +10 -8
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +7 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/dom.js +10 -1
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/primitives/Table/types.d.ts +187 -2
- package/dist/primitives/Table/useTable/features/useTableColumnFreezing.d.ts +6 -0
- package/dist/primitives/Table/useTable/features/useTableFooter.d.ts +3 -0
- package/dist/primitives/Table/useTable/features/useTablePrinting.d.ts +1 -0
- package/dist/primitives/Table/useTable/features/useTableRef.d.ts +4 -0
- package/dist/primitives/Table/useTable/features/useTableRowActions.d.ts +6 -0
- package/dist/primitives/Table/useTable/features/useTableRowActive.d.ts +0 -1
- package/dist/primitives/Table/useTable/features/useTableRowClick.d.ts +1 -1
- package/dist/primitives/Table/useTable/features/useTableRowExpansion.d.ts +5 -0
- package/dist/primitives/Table/useTable/features/useTableRowGoto.d.ts +1 -1
- package/dist/primitives/Table/useTable/features/useTableRowGroups.d.ts +5 -0
- package/dist/primitives/Table/useTable/features/useTableRowSelection.d.ts +1 -0
- package/dist/primitives/Table/useTable/features/useTableSearch.d.ts +11 -0
- package/dist/primitives/Table/useTable/features/useTableServerLoading.d.ts +5 -2
- package/dist/primitives/Table/useTable/features/useTableSettings.d.ts +3 -0
- package/dist/primitives/Table/useTable/listeners/useTableRowHeightListener.d.ts +2 -0
- package/dist/primitives/Table/useTable/listeners/useTableSearchListener.d.ts +2 -0
- package/dist/primitives/Table/useTable/listeners/useTableSettingsListener.d.ts +3 -0
- package/dist/primitives/Table/useTable/useTable.d.ts +57 -0
- package/dist/primitives/Table/useTable/util/columns.d.ts +7 -1
- package/dist/primitives/Table/useTable/util/columns.spec.d.ts +1 -0
- package/dist/primitives/Table/useTable/util/filtering.d.ts +7 -0
- package/dist/primitives/Table/useTable/util/presets.d.ts +2 -0
- package/dist/primitives/Table/useTable/util/search.d.ts +2 -0
- package/dist/primitives/Table/useTable/util/settings.d.ts +13 -0
- package/dist/primitives/Table/useTable/util/setup.d.ts +14 -0
- package/dist/primitives/Table/useTable/util/sorting.d.ts +2 -0
- package/dist/primitives/Table/useTableDataLoader.d.ts +23 -0
- package/dist/taco.cjs.development.js +149 -68
- 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 +1 -0
- package/package.json +4 -3
- package/types.json +20882 -7749
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
@@ -6,7 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
6
6
|
|
7
7
|
var React = require('react');
|
8
8
|
var React__default = _interopDefault(React);
|
9
|
-
var cn = _interopDefault(require('
|
9
|
+
var cn = _interopDefault(require('clsx'));
|
10
10
|
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
11
11
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
12
12
|
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
@@ -3766,7 +3766,7 @@ const Action = /*#__PURE__*/React.forwardRef(function AlertDialogAction(props, r
|
|
3766
3766
|
});
|
3767
3767
|
|
3768
3768
|
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
|
3769
|
-
const className = cn('fixed inset-0 cursor-default overflow-y-auto bg-blue-900/[0.3] aria-hidden:invisible', props.className);
|
3769
|
+
const className = cn('fixed inset-0 cursor-default overflow-y-auto bg-blue-900/[0.3] aria-hidden:invisible print:overflow-visible print:absolute', props.className);
|
3770
3770
|
return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
|
3771
3771
|
className: className,
|
3772
3772
|
"data-taco": "backdrop",
|
@@ -4121,7 +4121,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
|
|
4121
4121
|
side: placement,
|
4122
4122
|
sideOffset: 3
|
4123
4123
|
}), /*#__PURE__*/React.createElement("div", {
|
4124
|
-
className: "xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded-sm bg-blue-900 px-2 py-1 text-xs font-bold text-white",
|
4124
|
+
className: "xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded-sm bg-blue-900 px-2 py-1 text-xs font-bold text-white print:hidden",
|
4125
4125
|
"data-taco": "tooltip",
|
4126
4126
|
style: {
|
4127
4127
|
transformOrigin: 'var(--radix-tooltip-content-transform-origin)'
|
@@ -4428,6 +4428,7 @@ const defaultLocalisationTexts = {
|
|
4428
4428
|
value: 'Value'
|
4429
4429
|
},
|
4430
4430
|
hiddenColumn: 'Hidden column',
|
4431
|
+
hiddenGroupedColumn: 'Hidden grouped column',
|
4431
4432
|
tooltip: 'Apply filters',
|
4432
4433
|
total: 'Viewing [CURRENT] of [TOTAL]'
|
4433
4434
|
},
|
@@ -4456,6 +4457,23 @@ const defaultLocalisationTexts = {
|
|
4456
4457
|
checkboxVisibilityLabel: "Don't show again",
|
4457
4458
|
cancelButtonText: 'Cancel',
|
4458
4459
|
printButtonText: 'Print'
|
4460
|
+
},
|
4461
|
+
settingsDialog: {
|
4462
|
+
title: 'Print settings',
|
4463
|
+
size: 'Paper size',
|
4464
|
+
sizeA5: 'A5',
|
4465
|
+
sizeA4: 'A4',
|
4466
|
+
sizeA3: 'A3',
|
4467
|
+
sizeLetter: 'Letter',
|
4468
|
+
sizeLegal: 'Legal',
|
4469
|
+
orientation: 'Paper orientation',
|
4470
|
+
orientationLandscape: 'Landscape',
|
4471
|
+
orientationPortrait: 'Portrait',
|
4472
|
+
rows: 'Print rows',
|
4473
|
+
rowsAll: 'All',
|
4474
|
+
rowsSelected: 'Selected',
|
4475
|
+
layout: 'Page layout',
|
4476
|
+
layoutSplitGroups: 'New page for each [COLUMN]'
|
4459
4477
|
}
|
4460
4478
|
},
|
4461
4479
|
rowHeight: {
|
@@ -4573,7 +4591,7 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
|
|
4573
4591
|
ref: ref
|
4574
4592
|
}, getBannerIcon(state), children, onClose ? ( /*#__PURE__*/React.createElement(IconButton, {
|
4575
4593
|
"aria-label": texts.banner.close,
|
4576
|
-
className: "
|
4594
|
+
className: "-mr-2 ml-auto self-start",
|
4577
4595
|
icon: "close",
|
4578
4596
|
appearance: "discrete",
|
4579
4597
|
onClick: onClose
|
@@ -4774,7 +4792,7 @@ const Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
|
|
4774
4792
|
"data-taco": "card",
|
4775
4793
|
ref: ref
|
4776
4794
|
}, /*#__PURE__*/React.createElement("div", {
|
4777
|
-
className: "mx-4 mt-4
|
4795
|
+
className: "mx-4 mb-2 mt-4 flex"
|
4778
4796
|
}, title && /*#__PURE__*/React.createElement("h4", {
|
4779
4797
|
className: "mb-0 flex-grow text-left"
|
4780
4798
|
}, title), menu ? /*#__PURE__*/React.createElement(IconButton, {
|
@@ -6255,8 +6273,8 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
|
|
6255
6273
|
const {
|
6256
6274
|
texts
|
6257
6275
|
} = useLocalization();
|
6258
|
-
const className = cn('relative bg-white animate-[fade-in_150ms] rounded', getDialogPositionClassnames(), getDialogSizeClassnames(dialog.size));
|
6259
|
-
const containerClassName = cn('bg-white p-6 rounded relative z-10 shadow', {
|
6276
|
+
const className = cn('relative bg-white animate-[fade-in_150ms] rounded', getDialogPositionClassnames(), getDialogSizeClassnames(dialog.size), 'print:w-full print:h-full print:m-0 print:overflow-visible');
|
6277
|
+
const containerClassName = cn('bg-white p-6 rounded relative z-10 shadow print:p-0 print:overflow-visible print:h-full', {
|
6260
6278
|
'rounded-b-none': !!dialog.elements.extra
|
6261
6279
|
}, props.className);
|
6262
6280
|
const handleEscapeKeyDown = event => {
|
@@ -6298,14 +6316,14 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
|
|
6298
6316
|
draggable: true,
|
6299
6317
|
"aria-grabbed": dragging,
|
6300
6318
|
"aria-label": texts.dialog.drag,
|
6301
|
-
className: "yt-dialog__drag absolute-center-x bg-grey-100 top-1.5 h-3 w-24 cursor-move rounded text-center"
|
6319
|
+
className: "yt-dialog__drag absolute-center-x bg-grey-100 top-1.5 h-3 w-24 cursor-move rounded text-center print:hidden"
|
6302
6320
|
}))), dialog.showCloseButton ? ( /*#__PURE__*/React.createElement(DialogPrimitive.Close, {
|
6303
6321
|
onClick: dialog.onClose,
|
6304
6322
|
asChild: true
|
6305
6323
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
6306
6324
|
appearance: "discrete",
|
6307
6325
|
"aria-label": texts.dialog.close,
|
6308
|
-
className: "absolute
|
6326
|
+
className: "absolute right-0 top-0 mr-2 mt-2 print:hidden",
|
6309
6327
|
icon: "close"
|
6310
6328
|
}))) : null), dialog.elements.drawer, dialog.elements.extra))));
|
6311
6329
|
});
|
@@ -7027,7 +7045,7 @@ const Content$6 = /*#__PURE__*/React.forwardRef(function HangerContent(props, re
|
|
7027
7045
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
7028
7046
|
appearance: "primary",
|
7029
7047
|
"aria-label": texts.hanger.close,
|
7030
|
-
className: "absolute
|
7048
|
+
className: "absolute right-0 top-0 ml-2 mr-2 mt-2 text-white",
|
7031
7049
|
icon: "close",
|
7032
7050
|
onClick: context.onClose
|
7033
7051
|
}))));
|
@@ -8876,7 +8894,7 @@ const Toast = ({
|
|
8876
8894
|
autoClose,
|
8877
8895
|
type = 'default'
|
8878
8896
|
} = options;
|
8879
|
-
const className = cn('bg-white relative flex items-center py-1 px-2 mt-3 w-full rounded yt-shadow', {
|
8897
|
+
const className = cn('bg-white relative flex items-center py-1 px-2 mt-3 w-full rounded yt-shadow print:hidden', {
|
8880
8898
|
'border border-grey-200': type === 'default' || type === 'loading' || !type,
|
8881
8899
|
'border border-grey-500': type === 'success',
|
8882
8900
|
'border border-blue-500': type === 'information',
|
@@ -9158,7 +9176,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
|
|
9158
9176
|
findTotal,
|
9159
9177
|
loading = false,
|
9160
9178
|
onChange: handleChange,
|
9161
|
-
onClear
|
9179
|
+
onClear,
|
9162
9180
|
onClickFindNext: handleClickFindNext,
|
9163
9181
|
onClickFindPrevious: handleClickFindPrevious,
|
9164
9182
|
settingsContent,
|
@@ -9195,7 +9213,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
|
|
9195
9213
|
return (_internalRef$current2 = internalRef.current) === null || _internalRef$current2 === void 0 ? void 0 : _internalRef$current2.blur();
|
9196
9214
|
});
|
9197
9215
|
handleChange('');
|
9198
|
-
|
9216
|
+
onClear === null || onClear === void 0 ? void 0 : onClear();
|
9199
9217
|
};
|
9200
9218
|
const handleFocus = event => {
|
9201
9219
|
var _attributes$onFocus;
|
@@ -9676,7 +9694,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
9676
9694
|
ref: textRef
|
9677
9695
|
}, icon ? typeof icon === 'string' ? ( /*#__PURE__*/React__default.createElement(Icon, {
|
9678
9696
|
name: icon,
|
9679
|
-
className: "
|
9697
|
+
className: "-ml-1 -mt-0.5 mr-1 !h-5 !w-5"
|
9680
9698
|
})) : ( /*#__PURE__*/React__default.cloneElement(icon, {
|
9681
9699
|
className: 'mr-1 -ml-1 -mt-0.5 !h-5 !w-5'
|
9682
9700
|
})) : null, children), onDelete ? ( /*#__PURE__*/React__default.createElement(Icon, {
|
@@ -10063,6 +10081,15 @@ const getNextFocussableElement = currentElement => {
|
|
10063
10081
|
}
|
10064
10082
|
return focussableElements[currentElementIndex + 1];
|
10065
10083
|
};
|
10084
|
+
function isElementInsideOrTriggeredFromContainer(element, container) {
|
10085
|
+
switch (element === null || element === void 0 ? void 0 : element.getAttribute('role')) {
|
10086
|
+
case 'dialog':
|
10087
|
+
return !!(container !== null && container !== void 0 && container.querySelector(`[aria-controls='${element.id}']`));
|
10088
|
+
case 'menu':
|
10089
|
+
return !!(container !== null && container !== void 0 && container.querySelector(`#${element.getAttribute('aria-labelledby')}`));
|
10090
|
+
}
|
10091
|
+
return !!(container !== null && container !== void 0 && container.contains(element));
|
10092
|
+
}
|
10066
10093
|
|
10067
10094
|
const Trigger$7 = /*#__PURE__*/React__default.forwardRef(function Select2Trigger(props, ref) {
|
10068
10095
|
const {
|
@@ -10197,7 +10224,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
|
|
10197
10224
|
className
|
10198
10225
|
} = buttonProps;
|
10199
10226
|
if (open) {
|
10200
|
-
className = cn('!absolute z-20', buttonProps.className);
|
10227
|
+
className = cn('!absolute z-20 !h-fit', buttonProps.className);
|
10201
10228
|
content = /*#__PURE__*/React__default.createElement(ScrollArea, {
|
10202
10229
|
className: "my-1 flex max-h-[5.5rem] flex-col"
|
10203
10230
|
}, /*#__PURE__*/React__default.createElement("div", {
|
@@ -12016,7 +12043,7 @@ const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(prop
|
|
12016
12043
|
}, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup, index) => ( /*#__PURE__*/React__default.createElement("div", {
|
12017
12044
|
key: index,
|
12018
12045
|
role: "row",
|
12019
|
-
className: "border-grey-300 flex h-auto min-h-[2.5rem] w-full select-none border-
|
12046
|
+
className: "border-grey-300 flex h-auto min-h-[2.5rem] w-full select-none border-b-2 border-t-0 font-bold"
|
12020
12047
|
}, headerGroup.headers.map((cell, index) => ( /*#__PURE__*/React__default.createElement(Column, {
|
12021
12048
|
key: index,
|
12022
12049
|
index: index,
|
@@ -12730,7 +12757,10 @@ function Header$1(props) {
|
|
12730
12757
|
const search = table.getState().globalFilter;
|
12731
12758
|
const handleGoto = React__default.useMemo(() => {
|
12732
12759
|
if (hasGoto) {
|
12733
|
-
return query =>
|
12760
|
+
return query => {
|
12761
|
+
var _tableMeta$rowGoto$ha, _tableMeta$rowGoto;
|
12762
|
+
return (_tableMeta$rowGoto$ha = (_tableMeta$rowGoto = tableMeta.rowGoto).handleGoto) === null || _tableMeta$rowGoto$ha === void 0 ? void 0 : _tableMeta$rowGoto$ha.call(_tableMeta$rowGoto, header.id, query, sorting, filters, search);
|
12763
|
+
};
|
12734
12764
|
}
|
12735
12765
|
return undefined;
|
12736
12766
|
}, [hasGoto, JSON.stringify(sorting), JSON.stringify(filters), search]);
|
@@ -12907,7 +12937,7 @@ const Highlight = props => {
|
|
12907
12937
|
}
|
12908
12938
|
}, [current]);
|
12909
12939
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, attributes, {
|
12910
|
-
"data-taco":
|
12940
|
+
"data-taco": "highlight",
|
12911
12941
|
className: className,
|
12912
12942
|
ref: ref
|
12913
12943
|
}));
|
@@ -13277,6 +13307,9 @@ function getCellValueAsString(value, dataType) {
|
|
13277
13307
|
return String(value);
|
13278
13308
|
}
|
13279
13309
|
|
13310
|
+
function isInternalColumn$1(id) {
|
13311
|
+
return id === null || id === void 0 ? void 0 : id.startsWith('__');
|
13312
|
+
}
|
13280
13313
|
// column widths
|
13281
13314
|
const getCellMinWidth = (fontSize = 'medium') => {
|
13282
13315
|
switch (fontSize) {
|
@@ -13290,12 +13323,9 @@ const getCellMinWidth = (fontSize = 'medium') => {
|
|
13290
13323
|
}
|
13291
13324
|
};
|
13292
13325
|
// ordering
|
13293
|
-
function ensureOrdering(columns,
|
13326
|
+
function ensureOrdering(columns, settingsOrder, internalColumnsPinnedToTheRight = ['__actions']) {
|
13294
13327
|
// internal columns come with a defined order
|
13295
|
-
const internalColumns = columns.filter(column =>
|
13296
|
-
var _column$id;
|
13297
|
-
return ((_column$id = column.id) === null || _column$id === void 0 ? void 0 : _column$id.startsWith('__')) && !internalColumnsPinnedToTheRight.includes(column.id);
|
13298
|
-
}).map(column => column.id);
|
13328
|
+
const internalColumns = columns.filter(column => isInternalColumn$1(column.id) && !internalColumnsPinnedToTheRight.includes(String(column.id))).map(column => column.id);
|
13299
13329
|
// columns with ordering disabled should be moved to the front
|
13300
13330
|
const orderingDisabled = [];
|
13301
13331
|
const orderingEnabled = [];
|
@@ -13307,8 +13337,8 @@ function ensureOrdering(columns, internalColumnsPinnedToTheRight, settingsOrder)
|
|
13307
13337
|
(a, b) => (settingsOrder.indexOf(a.id) >>> 0) - (settingsOrder.indexOf(b.id) >>> 0));
|
13308
13338
|
}
|
13309
13339
|
orderedColumns.forEach(column => {
|
13310
|
-
var _column$
|
13311
|
-
if ((
|
13340
|
+
var _column$meta;
|
13341
|
+
if (isInternalColumn$1(column.id)) {
|
13312
13342
|
return;
|
13313
13343
|
}
|
13314
13344
|
if ((_column$meta = column.meta) !== null && _column$meta !== void 0 && _column$meta.enableOrdering) {
|
@@ -13412,7 +13442,7 @@ function useTableRowActive$1(isEnabled = false, initialRowActiveIndex) {
|
|
13412
13442
|
const [isHoverStatePaused, setHoverStatePaused] = useIsHoverStatePaused();
|
13413
13443
|
const move = (direction, length, scrollToIndex) => setRowActiveIndex(currentIndex => {
|
13414
13444
|
const nextIndex = currentIndex !== undefined ? getNextIndex(direction, currentIndex, length) : 0;
|
13415
|
-
|
13445
|
+
setTimeout(() => scrollToIndex(nextIndex), 1);
|
13416
13446
|
return nextIndex;
|
13417
13447
|
});
|
13418
13448
|
const onKeyDown = React__default.useCallback((event, length, scrollToIndex, tableRef) => {
|
@@ -13454,27 +13484,17 @@ function useTableRowActive$1(isEnabled = false, initialRowActiveIndex) {
|
|
13454
13484
|
if (!isEnabled || event.isDefaultPrevented()) {
|
13455
13485
|
return;
|
13456
13486
|
}
|
13457
|
-
if (
|
13458
|
-
// do it in the next tick, otherwise it prevents internal focus from working
|
13459
|
-
// meaning you have to tab twice to get to the first focusable element
|
13460
|
-
setTimeout(() => {
|
13461
|
-
setRowActiveIndex(index => {
|
13462
|
-
if (index === undefined) {
|
13463
|
-
scrollToIndex(0);
|
13464
|
-
return 0;
|
13465
|
-
}
|
13466
|
-
return index;
|
13467
|
-
});
|
13468
|
-
}, 1);
|
13469
|
-
}
|
13470
|
-
}, [rowActiveIndex, length, isEnabled]);
|
13471
|
-
const onMouseCapture = React__default.useCallback((event, length) => {
|
13472
|
-
if (!isEnabled || event.isDefaultPrevented()) {
|
13487
|
+
if (event.target.closest('tbody') || event.target.closest('[data-taco="table2-body"]') || isElementInsideOrTriggeredFromContainer(event.target, event.currentTarget)) {
|
13473
13488
|
return;
|
13474
13489
|
}
|
13475
13490
|
if (rowActiveIndex === undefined && length > 0) {
|
13476
|
-
|
13477
|
-
|
13491
|
+
setRowActiveIndex(index => {
|
13492
|
+
if (index === undefined) {
|
13493
|
+
scrollToIndex(0);
|
13494
|
+
return 0;
|
13495
|
+
}
|
13496
|
+
return index;
|
13497
|
+
});
|
13478
13498
|
}
|
13479
13499
|
}, [rowActiveIndex, length, isEnabled]);
|
13480
13500
|
return {
|
@@ -13484,8 +13504,7 @@ function useTableRowActive$1(isEnabled = false, initialRowActiveIndex) {
|
|
13484
13504
|
isHoverStatePaused,
|
13485
13505
|
setHoverStatePaused: isEnabled ? setHoverStatePaused : () => undefined,
|
13486
13506
|
handleFocus: isEnabled ? onFocus : () => undefined,
|
13487
|
-
handleKeyDown: isEnabled ? onKeyDown : () => undefined
|
13488
|
-
handleMouseCapture: isEnabled ? onMouseCapture : () => undefined
|
13507
|
+
handleKeyDown: isEnabled ? onKeyDown : () => undefined
|
13489
13508
|
};
|
13490
13509
|
}
|
13491
13510
|
function getNextIndex(direction, currentIndex, length) {
|
@@ -13957,17 +13976,81 @@ function useTableRowSelection(isEnabled = false) {
|
|
13957
13976
|
}
|
13958
13977
|
}, [isEnabled]);
|
13959
13978
|
return {
|
13979
|
+
isEnabled,
|
13960
13980
|
handleKeyDown: isEnabled ? onKeyDown : () => undefined,
|
13961
13981
|
lastSelectedRowIndex
|
13962
13982
|
};
|
13963
13983
|
}
|
13964
13984
|
|
13965
|
-
|
13985
|
+
// filtering
|
13986
|
+
var TableFilterComparator;
|
13987
|
+
(function (TableFilterComparator) {
|
13988
|
+
TableFilterComparator[TableFilterComparator["Contains"] = 0] = "Contains";
|
13989
|
+
TableFilterComparator[TableFilterComparator["DoesNotContain"] = 1] = "DoesNotContain";
|
13990
|
+
TableFilterComparator[TableFilterComparator["IsEqualTo"] = 2] = "IsEqualTo";
|
13991
|
+
TableFilterComparator[TableFilterComparator["IsNotEqualTo"] = 3] = "IsNotEqualTo";
|
13992
|
+
TableFilterComparator[TableFilterComparator["IsGreaterThan"] = 4] = "IsGreaterThan";
|
13993
|
+
TableFilterComparator[TableFilterComparator["IsLessThan"] = 5] = "IsLessThan";
|
13994
|
+
TableFilterComparator[TableFilterComparator["IsBetween"] = 6] = "IsBetween";
|
13995
|
+
TableFilterComparator[TableFilterComparator["IsEmpty"] = 7] = "IsEmpty";
|
13996
|
+
TableFilterComparator[TableFilterComparator["IsNotEmpty"] = 8] = "IsNotEmpty";
|
13997
|
+
TableFilterComparator[TableFilterComparator["IsLessThanOrEqualTo"] = 9] = "IsLessThanOrEqualTo";
|
13998
|
+
TableFilterComparator[TableFilterComparator["IsGreaterThanOrEqualTo"] = 10] = "IsGreaterThanOrEqualTo";
|
13999
|
+
TableFilterComparator[TableFilterComparator["HasAnyOf"] = 11] = "HasAnyOf";
|
14000
|
+
TableFilterComparator[TableFilterComparator["HasAllOf"] = 12] = "HasAllOf";
|
14001
|
+
TableFilterComparator[TableFilterComparator["HasNoneOf"] = 13] = "HasNoneOf";
|
14002
|
+
})(TableFilterComparator || (TableFilterComparator = {}));
|
14003
|
+
var TableServerLoadAllState;
|
14004
|
+
(function (TableServerLoadAllState) {
|
14005
|
+
TableServerLoadAllState[TableServerLoadAllState["Incomplete"] = 0] = "Incomplete";
|
14006
|
+
TableServerLoadAllState[TableServerLoadAllState["Loading"] = 1] = "Loading";
|
14007
|
+
TableServerLoadAllState[TableServerLoadAllState["Completed"] = 2] = "Completed";
|
14008
|
+
})(TableServerLoadAllState || (TableServerLoadAllState = {}));
|
14009
|
+
|
14010
|
+
const DEFAULT_PAGE_SIZE$1 = 100;
|
14011
|
+
|
14012
|
+
function useTableServerLoading(loadPage, loadAll, pageSize = DEFAULT_PAGE_SIZE$1) {
|
13966
14013
|
const isEnabled = !!loadPage && !!loadAll;
|
14014
|
+
const [loadAllStatus, setLoadedStatus] = React__default.useState(TableServerLoadAllState.Incomplete);
|
14015
|
+
let _loadAll;
|
14016
|
+
let _loadAllIfNeeded;
|
14017
|
+
if (typeof loadAll === 'function') {
|
14018
|
+
_loadAll = function (...args) {
|
14019
|
+
try {
|
14020
|
+
const _temp = function () {
|
14021
|
+
if (typeof loadAll === 'function') {
|
14022
|
+
setLoadedStatus(TableServerLoadAllState.Loading);
|
14023
|
+
return Promise.resolve(loadAll(...args)).then(function () {
|
14024
|
+
setLoadedStatus(TableServerLoadAllState.Completed);
|
14025
|
+
});
|
14026
|
+
}
|
14027
|
+
}();
|
14028
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
14029
|
+
} catch (e) {
|
14030
|
+
return Promise.reject(e);
|
14031
|
+
}
|
14032
|
+
};
|
14033
|
+
_loadAllIfNeeded = function (...args) {
|
14034
|
+
try {
|
14035
|
+
const _temp2 = function () {
|
14036
|
+
if (loadAllStatus === TableServerLoadAllState.Incomplete) {
|
14037
|
+
var _loadAll2;
|
14038
|
+
return Promise.resolve((_loadAll2 = _loadAll) === null || _loadAll2 === void 0 ? void 0 : _loadAll2(...args)).then(function () {});
|
14039
|
+
}
|
14040
|
+
}();
|
14041
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
14042
|
+
} catch (e) {
|
14043
|
+
return Promise.reject(e);
|
14044
|
+
}
|
14045
|
+
};
|
14046
|
+
}
|
13967
14047
|
return {
|
13968
14048
|
isEnabled,
|
13969
14049
|
loadPage,
|
13970
|
-
loadAll
|
14050
|
+
loadAll: _loadAll,
|
14051
|
+
loadAllIfNeeded: _loadAllIfNeeded,
|
14052
|
+
loadAllStatus,
|
14053
|
+
pageSize
|
13971
14054
|
};
|
13972
14055
|
}
|
13973
14056
|
|
@@ -13997,7 +14080,7 @@ function useTableRowClick(isEnabled = false, onRowClick) {
|
|
13997
14080
|
};
|
13998
14081
|
}
|
13999
14082
|
|
14000
|
-
function useTableColumnOrdering(isEnabled =
|
14083
|
+
function useTableColumnOrdering(isEnabled = false) {
|
14001
14084
|
return {
|
14002
14085
|
isEnabled
|
14003
14086
|
};
|
@@ -14958,7 +15041,7 @@ const TextareaControl = /*#__PURE__*/React__default.forwardRef(function Textarea
|
|
14958
15041
|
handleTextareaKeyDown(e);
|
14959
15042
|
},
|
14960
15043
|
onBlur: handleBlur,
|
14961
|
-
className: cn(getCellAlignmentClasses(align), `h-fit resize-none
|
15044
|
+
className: cn(getCellAlignmentClasses(align), `h-fit resize-none [&:not(:focus)]:whitespace-nowrap`, {
|
14962
15045
|
[`!min-h-[${minMaxHeight.min}px]`]: columnMeta === null || columnMeta === void 0 ? void 0 : columnMeta.enableTruncate,
|
14963
15046
|
'!yt-focus-dark': isCellInDetailMode,
|
14964
15047
|
[`h-[${minMaxHeight.min}px]`]: !isCellInDetailMode && (columnMeta === null || columnMeta === void 0 ? void 0 : columnMeta.enableTruncate),
|
@@ -15264,7 +15347,9 @@ const MemoedEditingCell = /*#__PURE__*/React__default.memo(function MemoedEditin
|
|
15264
15347
|
return removeMoveReason;
|
15265
15348
|
}, [value, tableMeta.rowActive.rowActiveIndex, tableMeta.search.excludeUnmatchedResults, error]);
|
15266
15349
|
const controlRenderer = (_column$columnDef$met = column.columnDef.meta) === null || _column$columnDef$met === void 0 ? void 0 : _column$columnDef$met.control;
|
15267
|
-
const className = cn(
|
15350
|
+
const className = cn(
|
15351
|
+
// Removing a pixel border width in the padding to avoid a pixel jump when control element is rendered.
|
15352
|
+
'py-[calc(var(--table3-cell-padding-y)_-_0.06rem_-_1px)]', {
|
15268
15353
|
// Textarea control is positioned absolute, when column is in enableTruncate mode, so the cell need to be positioned relative
|
15269
15354
|
relative: controlRenderer === 'textarea' && columnMeta.enableTruncate
|
15270
15355
|
}, props.className, typeof columnMeta.className === 'function' ? columnMeta.className(row.original) : columnMeta.className);
|
@@ -15890,7 +15975,7 @@ function useConvertChildrenToColumns(props, options, editing) {
|
|
15890
15975
|
}, [editing.isEditing]);
|
15891
15976
|
}
|
15892
15977
|
|
15893
|
-
function
|
15978
|
+
function usePrinting(isEnabled = false, defaultIsWarningVisible = true, id) {
|
15894
15979
|
const [isWarningVisibleForLargeDatasets, setIsWarningVisibleForLargeDatasets] = React__default.useState(defaultIsWarningVisible);
|
15895
15980
|
return {
|
15896
15981
|
isEnabled,
|
@@ -15947,7 +16032,7 @@ function useTableShortcutsListener(table, shortcuts) {
|
|
15947
16032
|
function useTableRowGoto(isEnabled = false, handler) {
|
15948
16033
|
return {
|
15949
16034
|
isEnabled,
|
15950
|
-
handleGoto: isEnabled
|
16035
|
+
handleGoto: isEnabled ? handler : undefined
|
15951
16036
|
};
|
15952
16037
|
}
|
15953
16038
|
|
@@ -16310,6 +16395,8 @@ function useTable$1(props, ref) {
|
|
16310
16395
|
const validation = useValidation(props.onCellValidate, props.onRowValidate);
|
16311
16396
|
// not relevant to common table
|
16312
16397
|
const editing = useEditing(options.enableEditing, validation, props.onSave);
|
16398
|
+
// we changed how printing works, so this shouldn't be migrated
|
16399
|
+
const printing = usePrinting(options.enablePrinting, settings.showWarningWhenPrintingLargeDataset, props.id);
|
16313
16400
|
// needs to be moved
|
16314
16401
|
const rowActions = useRowActions$1(props.actionsForRow, props.actionsForRowLength);
|
16315
16402
|
// not relevant to common table
|
@@ -16322,7 +16409,6 @@ function useTable$1(props, ref) {
|
|
16322
16409
|
// custom features - shared/migrated
|
16323
16410
|
const columnOrdering = useTableColumnOrdering(options.enableColumnOrdering);
|
16324
16411
|
const fontSize = useTableFontSize(options.enableFontSize, settings.fontSize);
|
16325
|
-
const printing = useTablePrinting(options.enablePrinting, settings.showWarningWhenPrintingLargeDataset, props.id);
|
16326
16412
|
const rowActive = useTableRowActive$1(true, props.defaultCurrentRowIndex);
|
16327
16413
|
const rowClick = useTableRowClick(true, props.onRowClick);
|
16328
16414
|
const rowGoto = useTableRowGoto(options.enableRowGoto, props.onRowGoto);
|
@@ -16341,7 +16427,7 @@ function useTable$1(props, ref) {
|
|
16341
16427
|
var _settings$columnSizin, _settings$columnVisib, _props$defaultSetting, _props$defaultSetting3;
|
16342
16428
|
const sanitizeSortedColumns = column => columns.find(definedColumn => definedColumn.id === column.id);
|
16343
16429
|
const state = {
|
16344
|
-
columnOrder: ensureOrdering(columns, [COLUMN_ID, COLUMN_ID$1]
|
16430
|
+
columnOrder: ensureOrdering(columns, settings.columnOrder, [COLUMN_ID, COLUMN_ID$1]),
|
16345
16431
|
columnSizing: (_settings$columnSizin = settings.columnSizing) !== null && _settings$columnSizin !== void 0 ? _settings$columnSizin : defaultColumnSizing,
|
16346
16432
|
columnVisibility: (_settings$columnVisib = settings.columnVisibility) !== null && _settings$columnVisib !== void 0 ? _settings$columnVisib : defaultColumnVisibility,
|
16347
16433
|
sorting: settings.sorting ? settings.sorting.filter(sanitizeSortedColumns) : defaultSorting
|
@@ -18132,7 +18218,7 @@ function ColumnSettingsPopover(props) {
|
|
18132
18218
|
})) {
|
18133
18219
|
return;
|
18134
18220
|
}
|
18135
|
-
table.setColumnOrder(currentOrder => ensureOrdering(allColumns,
|
18221
|
+
table.setColumnOrder(currentOrder => ensureOrdering(allColumns, SortablePrimitive.arrayMove(currentOrder, currentOrder.findIndex(c => c === activeId), currentOrder.findIndex(c => c === overId)), [COLUMN_ID, COLUMN_ID$1]));
|
18136
18222
|
};
|
18137
18223
|
return /*#__PURE__*/React__default.createElement(Popover, Object.assign({}, popoverProps, {
|
18138
18224
|
anchor: trigger
|
@@ -18786,10 +18872,6 @@ const Table$1 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
|
|
18786
18872
|
const handleFocus = tableMeta.rowActive.rowActiveIndex === undefined ? event => {
|
18787
18873
|
tableMeta.rowActive.handleFocus(event, table.getRowModel().rows.length, scrollToIndex);
|
18788
18874
|
} : undefined;
|
18789
|
-
// mouse capture fires before focus, so we can prevent propagation and stop double setting of the active row
|
18790
|
-
const handleMouseCapture = tableMeta.rowActive.rowActiveIndex === undefined ? event => {
|
18791
|
-
tableMeta.rowActive.handleMouseCapture(event, table.getRowModel().rows.length);
|
18792
|
-
} : undefined;
|
18793
18875
|
const handleScroll = function (event) {
|
18794
18876
|
try {
|
18795
18877
|
tableMeta.columnFreezing.handleScroll(event);
|
@@ -18877,7 +18959,6 @@ const Table$1 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
|
|
18877
18959
|
})))))), table.getRowModel().rows.length ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(focus.FocusScope, {
|
18878
18960
|
autoFocus: tableMeta.editing.isEditing
|
18879
18961
|
}, /*#__PURE__*/React__default.createElement("div", {
|
18880
|
-
onMouseDownCapture: handleMouseCapture,
|
18881
18962
|
className: "group/body contents",
|
18882
18963
|
"data-taco": "table2-body",
|
18883
18964
|
role: "rowgroup",
|
@@ -19363,7 +19444,7 @@ const AgreementItem = props => {
|
|
19363
19444
|
className: "truncate"
|
19364
19445
|
}, agreement.name), ' ', agreement.secure ? ( /*#__PURE__*/React__default.createElement(Icon, {
|
19365
19446
|
name: "secure-tick",
|
19366
|
-
className: "ml-1 mt-0.5
|
19447
|
+
className: "mb-0.5 ml-1 mt-0.5 !h-4 !w-4 flex-shrink-0 flex-grow-0"
|
19367
19448
|
})) : null), /*#__PURE__*/React__default.createElement("span", {
|
19368
19449
|
className: "text-grey-100 whitespace-nowrap text-xs"
|
19369
19450
|
}, agreement.number, " ", agreement.userId, " ", /*#__PURE__*/React__default.createElement(AgreementBadge, {
|
@@ -19394,7 +19475,7 @@ const AgreementDisplay = props => {
|
|
19394
19475
|
title: `${currentAgreement.name} - ${currentAgreement.number} ${currentAgreement.userId}`
|
19395
19476
|
}), /*#__PURE__*/React__default.createElement(AgreementBadge, {
|
19396
19477
|
agreement: currentAgreement,
|
19397
|
-
className: "absolute
|
19478
|
+
className: "absolute right-0 top-0 -mr-1 w-8 !justify-start"
|
19398
19479
|
}));
|
19399
19480
|
};
|
19400
19481
|
|
@@ -19552,7 +19633,7 @@ const LayoutContext = /*#__PURE__*/React__default.createContext({
|
|
19552
19633
|
});
|
19553
19634
|
|
19554
19635
|
const Content$9 = /*#__PURE__*/React__default.forwardRef(function LayoutContent(props, ref) {
|
19555
|
-
const className = cn('flex-grow overflow-y-auto bg-white flex flex-shrink flex-col relative', props.className);
|
19636
|
+
const className = cn('flex-grow overflow-y-auto print:overflow-visible print:h-full print:!p-0 bg-white flex flex-shrink flex-col relative', props.className);
|
19556
19637
|
return /*#__PURE__*/React__default.createElement("main", Object.assign({}, props, {
|
19557
19638
|
className: className,
|
19558
19639
|
ref: ref
|
@@ -19594,7 +19675,7 @@ const Sidebar = /*#__PURE__*/React__default.forwardRef(function LayoutSidebar(pr
|
|
19594
19675
|
}, [isSmallScreen, sidebarOpen]);
|
19595
19676
|
const showBackdrop = isSmallScreen && sidebarOpen === true;
|
19596
19677
|
const [ready, setReady] = React__default.useState(isSmallScreen);
|
19597
|
-
const className = cn('bg-grey-50 h-full w-64 flex-shrink-0 flex-grow-0', {
|
19678
|
+
const className = cn('bg-grey-50 h-full w-64 flex-shrink-0 flex-grow-0 print:hidden', {
|
19598
19679
|
'absolute z-10 aria-hidden:-translate-x-64 ': isSmallScreen,
|
19599
19680
|
// prevent animation when crossing the boundary from large to small screen,
|
19600
19681
|
// this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)
|
@@ -19648,7 +19729,7 @@ const Top = props => {
|
|
19648
19729
|
};
|
19649
19730
|
|
19650
19731
|
const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, ref) {
|
19651
|
-
const className = cn('flex flex-grow overflow-hidden relative', props.className);
|
19732
|
+
const className = cn('flex flex-grow overflow-hidden print:overflow-visible print:h-full relative', props.className);
|
19652
19733
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
19653
19734
|
className: className,
|
19654
19735
|
ref: ref
|
@@ -19657,7 +19738,7 @@ const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, r
|
|
19657
19738
|
|
19658
19739
|
const Layout$1 = /*#__PURE__*/React__default.forwardRef(function Layout(props, ref) {
|
19659
19740
|
const [sidebarOpen, setSidebarOpen] = React__default.useState(false);
|
19660
|
-
const className = cn('flex h-screen w-screen flex-col overflow-hidden relative', props.className);
|
19741
|
+
const className = cn('flex h-screen w-screen flex-col overflow-hidden print:overflow-visible print:h-full relative', props.className);
|
19661
19742
|
return /*#__PURE__*/React__default.createElement(LayoutContext.Provider, {
|
19662
19743
|
value: {
|
19663
19744
|
sidebarOpen,
|
@@ -19758,7 +19839,7 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
19758
19839
|
role: "menuitem",
|
19759
19840
|
tabIndex: 0
|
19760
19841
|
}), icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
19761
|
-
className: "mr-1.5 [[role=menu]>li>a>&]
|
19842
|
+
className: "mr-1.5 [[role=menu]>li>a>&]:-ml-1.5 [[role=menu]>li>a>&]:mr-0.5",
|
19762
19843
|
name: icon
|
19763
19844
|
}) : null, /*#__PURE__*/React__default.createElement("span", {
|
19764
19845
|
className: "flex flex-grow items-center truncate"
|