@economic/taco 2.18.0 → 2.20.0
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/Select2/Select2.d.ts +2 -0
- package/dist/components/Select2/components/Context.d.ts +2 -0
- package/dist/components/Select2/components/Group.d.ts +2 -0
- package/dist/components/Select2/components/Option.d.ts +3 -0
- package/dist/components/Table3/Table3.d.ts +1 -1
- package/dist/components/Table3/components/rows/Row.d.ts +1 -1
- package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -4
- package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
- package/dist/components/Table3/hooks/useCssGrid.d.ts +2 -2
- package/dist/components/Table3/hooks/useCssVars.d.ts +3 -2
- package/dist/components/Table3/hooks/useTable.d.ts +5 -5
- package/dist/components/Table3/types.d.ts +23 -5
- package/dist/esm/index.css +12 -12
- 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 +3 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Context.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 +5 -2
- 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 +9 -3
- 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/hooks/useChildren.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.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 +5 -11
- 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 +2 -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 +4 -4
- 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/components/Table3/components/toolbar/FontSize.js +5 -9
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +3 -3
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +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/useCssGrid.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +10 -10
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +1 -1
- 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/index.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/types.js +25 -8
- package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
- 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/useTableFontSize.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/listeners/useTableFontSizeListener.js +7 -7
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js +14 -12
- 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/types.js +7 -1
- package/dist/esm/packages/taco/src/types.js.map +1 -1
- 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/index.css +12 -12
- package/dist/primitives/Table/types.d.ts +186 -7
- package/dist/primitives/Table/useTable/features/useTableColumnFreezing.d.ts +6 -0
- package/dist/primitives/Table/useTable/features/useTableFontSize.d.ts +2 -2
- 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 +9 -3
- 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 +215 -131
- 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/types.d.ts +6 -0
- package/dist/utils/dom.d.ts +1 -0
- package/package.json +4 -3
- package/types.json +25105 -11841
- 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, {
|
@@ -9908,6 +9926,13 @@ const Colours = props => {
|
|
9908
9926
|
const mobiles = /iPhone|iPad|iPod|Android/i;
|
9909
9927
|
const isMobileDevice = navigator => !!(navigator !== null && navigator !== void 0 && navigator.userAgent) && mobiles.test(navigator.userAgent);
|
9910
9928
|
|
9929
|
+
(function (FontSizes) {
|
9930
|
+
FontSizes["small"] = "small";
|
9931
|
+
FontSizes["medium"] = "medium";
|
9932
|
+
FontSizes["large"] = "large";
|
9933
|
+
})(exports.FontSizes || (exports.FontSizes = {}));
|
9934
|
+
const fixedForwardRef = React__default.forwardRef;
|
9935
|
+
|
9911
9936
|
const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(props, ref) {
|
9912
9937
|
var _window;
|
9913
9938
|
const {
|
@@ -9928,9 +9953,14 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
|
|
9928
9953
|
setOpen,
|
9929
9954
|
shouldPauseHoverState,
|
9930
9955
|
tags,
|
9931
|
-
value
|
9956
|
+
value,
|
9957
|
+
fontSize = exports.FontSizes.medium
|
9932
9958
|
} = useSelect2Context();
|
9933
|
-
const className = cn(createOptionClassName(shouldPauseHoverState),
|
9959
|
+
const className = cn(createOptionClassName(shouldPauseHoverState), {
|
9960
|
+
'text-xs': fontSize === exports.FontSizes.small,
|
9961
|
+
'text-sm': fontSize === exports.FontSizes.medium,
|
9962
|
+
'text-base': fontSize === exports.FontSizes.large
|
9963
|
+
}, cName);
|
9934
9964
|
const hasValue = Array.isArray(value) ? !!value.length : value !== undefined;
|
9935
9965
|
const isTag = tags && !!color;
|
9936
9966
|
const handleClick = () => {
|
@@ -10002,9 +10032,12 @@ const Group$2 = /*#__PURE__*/React__default.forwardRef(function Select2Group(pro
|
|
10002
10032
|
const {
|
10003
10033
|
children,
|
10004
10034
|
heading,
|
10035
|
+
hasSeparator,
|
10005
10036
|
...attributes
|
10006
10037
|
} = props;
|
10007
|
-
const className = cn(createCollectionClassName(),
|
10038
|
+
const className = cn(createCollectionClassName(), {
|
10039
|
+
"last:after:content-none after:content-[''] after:bg-grey-300 after:mx-2 after:my-1 after:h-px": hasSeparator && children.length
|
10040
|
+
}, props.className);
|
10008
10041
|
return /*#__PURE__*/React__default.createElement(Group$1, Object.assign({}, attributes, {
|
10009
10042
|
className: className,
|
10010
10043
|
ref: ref
|
@@ -10048,6 +10081,15 @@ const getNextFocussableElement = currentElement => {
|
|
10048
10081
|
}
|
10049
10082
|
return focussableElements[currentElementIndex + 1];
|
10050
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
|
+
}
|
10051
10093
|
|
10052
10094
|
const Trigger$7 = /*#__PURE__*/React__default.forwardRef(function Select2Trigger(props, ref) {
|
10053
10095
|
const {
|
@@ -10182,7 +10224,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
|
|
10182
10224
|
className
|
10183
10225
|
} = buttonProps;
|
10184
10226
|
if (open) {
|
10185
|
-
className = cn('!absolute z-20', buttonProps.className);
|
10227
|
+
className = cn('!absolute z-20 !h-fit', buttonProps.className);
|
10186
10228
|
content = /*#__PURE__*/React__default.createElement(ScrollArea, {
|
10187
10229
|
className: "my-1 flex max-h-[5.5rem] flex-col"
|
10188
10230
|
}, /*#__PURE__*/React__default.createElement("div", {
|
@@ -10428,7 +10470,7 @@ const Search$1 = /*#__PURE__*/React__default.forwardRef(function ListboxSearch(p
|
|
10428
10470
|
})));
|
10429
10471
|
});
|
10430
10472
|
|
10431
|
-
const isGroup = child => !!child.props.heading;
|
10473
|
+
const isGroup = child => !!child.props.heading || !!child.props.hasSeparator;
|
10432
10474
|
const useChildren = ({
|
10433
10475
|
children: initialChildren,
|
10434
10476
|
emptyValue,
|
@@ -10611,6 +10653,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
|
|
10611
10653
|
readOnly = false,
|
10612
10654
|
tags = false,
|
10613
10655
|
value: prop,
|
10656
|
+
fontSize,
|
10614
10657
|
...otherProps
|
10615
10658
|
} = props;
|
10616
10659
|
const emptyOption = React__default.useMemo(() => {
|
@@ -10688,6 +10731,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
|
|
10688
10731
|
shouldPauseHoverState,
|
10689
10732
|
setShouldPauseHoverState,
|
10690
10733
|
tags,
|
10734
|
+
fontSize,
|
10691
10735
|
validationError,
|
10692
10736
|
value
|
10693
10737
|
};
|
@@ -11999,7 +12043,7 @@ const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(prop
|
|
11999
12043
|
}, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup, index) => ( /*#__PURE__*/React__default.createElement("div", {
|
12000
12044
|
key: index,
|
12001
12045
|
role: "row",
|
12002
|
-
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"
|
12003
12047
|
}, headerGroup.headers.map((cell, index) => ( /*#__PURE__*/React__default.createElement(Column, {
|
12004
12048
|
key: index,
|
12005
12049
|
index: index,
|
@@ -12713,7 +12757,10 @@ function Header$1(props) {
|
|
12713
12757
|
const search = table.getState().globalFilter;
|
12714
12758
|
const handleGoto = React__default.useMemo(() => {
|
12715
12759
|
if (hasGoto) {
|
12716
|
-
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
|
+
};
|
12717
12764
|
}
|
12718
12765
|
return undefined;
|
12719
12766
|
}, [hasGoto, JSON.stringify(sorting), JSON.stringify(filters), search]);
|
@@ -12890,7 +12937,7 @@ const Highlight = props => {
|
|
12890
12937
|
}
|
12891
12938
|
}, [current]);
|
12892
12939
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, attributes, {
|
12893
|
-
"data-taco":
|
12940
|
+
"data-taco": "highlight",
|
12894
12941
|
className: className,
|
12895
12942
|
ref: ref
|
12896
12943
|
}));
|
@@ -13016,30 +13063,6 @@ const MemoedFooter = /*#__PURE__*/React__default.memo(function MemoedFooter(prop
|
|
13016
13063
|
}, meta.footer(table.getRowModel().rows.map(row => row.original[id])))) : null);
|
13017
13064
|
});
|
13018
13065
|
|
13019
|
-
const FONT_SIZE = {
|
13020
|
-
small: 'small',
|
13021
|
-
medium: 'medium',
|
13022
|
-
large: 'large'
|
13023
|
-
};
|
13024
|
-
function FontSize$1(props) {
|
13025
|
-
const {
|
13026
|
-
texts
|
13027
|
-
} = useLocalization();
|
13028
|
-
const meta = props.table.options.meta;
|
13029
|
-
const handleChange = value => meta.fontSize.setSize(value);
|
13030
|
-
return /*#__PURE__*/React__default.createElement(Menu$1.SubMenu, null, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup, {
|
13031
|
-
onChange: handleChange,
|
13032
|
-
value: meta.fontSize.size
|
13033
|
-
}, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
13034
|
-
value: FONT_SIZE.small
|
13035
|
-
}, texts.table3.fontSize.sizes.small), /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
13036
|
-
value: FONT_SIZE.medium
|
13037
|
-
}, texts.table3.fontSize.sizes.medium), /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
13038
|
-
disabled: meta.rowHeight.height === 'short',
|
13039
|
-
value: FONT_SIZE.large
|
13040
|
-
}, texts.table3.fontSize.sizes.large)));
|
13041
|
-
}
|
13042
|
-
|
13043
13066
|
var IndicatorReason;
|
13044
13067
|
(function (IndicatorReason) {
|
13045
13068
|
IndicatorReason["SEARCH"] = "SEARCH";
|
@@ -13161,8 +13184,8 @@ const MemoedCell = /*#__PURE__*/React__default.memo(function MemoedCell(props) {
|
|
13161
13184
|
const actionsInMenu = visibleActions.slice(visibleActions.length === actionsLength ? actionsLength : actionsLength - 1);
|
13162
13185
|
const className = cn('-mb-2 flex justify-end pl-2 text-right', {
|
13163
13186
|
// Adjust negative margin on row actions cell to ensure that the cell aligns vertically.
|
13164
|
-
'-mt-2': fontSize ===
|
13165
|
-
'-mt-1.5': fontSize !==
|
13187
|
+
'-mt-2': fontSize === exports.FontSizes.small,
|
13188
|
+
'-mt-1.5': fontSize !== exports.FontSizes.small
|
13166
13189
|
}, props.className);
|
13167
13190
|
content = /*#__PURE__*/React__default.createElement("span", {
|
13168
13191
|
className: className,
|
@@ -13284,33 +13307,25 @@ function getCellValueAsString(value, dataType) {
|
|
13284
13307
|
return String(value);
|
13285
13308
|
}
|
13286
13309
|
|
13287
|
-
|
13288
|
-
|
13289
|
-
|
13290
|
-
TableFontSizes["small"] = "small";
|
13291
|
-
TableFontSizes["medium"] = "medium";
|
13292
|
-
TableFontSizes["large"] = "large";
|
13293
|
-
})(TableFontSizes || (TableFontSizes = {}));
|
13294
|
-
|
13310
|
+
function isInternalColumn$1(id) {
|
13311
|
+
return id === null || id === void 0 ? void 0 : id.startsWith('__');
|
13312
|
+
}
|
13295
13313
|
// column widths
|
13296
13314
|
const getCellMinWidth = (fontSize = 'medium') => {
|
13297
13315
|
switch (fontSize) {
|
13298
|
-
case
|
13316
|
+
case exports.FontSizes.small:
|
13299
13317
|
return 57;
|
13300
|
-
case
|
13318
|
+
case exports.FontSizes.large:
|
13301
13319
|
return 83;
|
13302
13320
|
default:
|
13303
|
-
case
|
13321
|
+
case exports.FontSizes.medium:
|
13304
13322
|
return 72;
|
13305
13323
|
}
|
13306
13324
|
};
|
13307
13325
|
// ordering
|
13308
|
-
function ensureOrdering(columns,
|
13326
|
+
function ensureOrdering(columns, settingsOrder, internalColumnsPinnedToTheRight = ['__actions']) {
|
13309
13327
|
// internal columns come with a defined order
|
13310
|
-
const internalColumns = columns.filter(column =>
|
13311
|
-
var _column$id;
|
13312
|
-
return ((_column$id = column.id) === null || _column$id === void 0 ? void 0 : _column$id.startsWith('__')) && !internalColumnsPinnedToTheRight.includes(column.id);
|
13313
|
-
}).map(column => column.id);
|
13328
|
+
const internalColumns = columns.filter(column => isInternalColumn$1(column.id) && !internalColumnsPinnedToTheRight.includes(String(column.id))).map(column => column.id);
|
13314
13329
|
// columns with ordering disabled should be moved to the front
|
13315
13330
|
const orderingDisabled = [];
|
13316
13331
|
const orderingEnabled = [];
|
@@ -13322,8 +13337,8 @@ function ensureOrdering(columns, internalColumnsPinnedToTheRight, settingsOrder)
|
|
13322
13337
|
(a, b) => (settingsOrder.indexOf(a.id) >>> 0) - (settingsOrder.indexOf(b.id) >>> 0));
|
13323
13338
|
}
|
13324
13339
|
orderedColumns.forEach(column => {
|
13325
|
-
var _column$
|
13326
|
-
if ((
|
13340
|
+
var _column$meta;
|
13341
|
+
if (isInternalColumn$1(column.id)) {
|
13327
13342
|
return;
|
13328
13343
|
}
|
13329
13344
|
if ((_column$meta = column.meta) !== null && _column$meta !== void 0 && _column$meta.enableOrdering) {
|
@@ -13427,7 +13442,7 @@ function useTableRowActive$1(isEnabled = false, initialRowActiveIndex) {
|
|
13427
13442
|
const [isHoverStatePaused, setHoverStatePaused] = useIsHoverStatePaused();
|
13428
13443
|
const move = (direction, length, scrollToIndex) => setRowActiveIndex(currentIndex => {
|
13429
13444
|
const nextIndex = currentIndex !== undefined ? getNextIndex(direction, currentIndex, length) : 0;
|
13430
|
-
|
13445
|
+
setTimeout(() => scrollToIndex(nextIndex), 1);
|
13431
13446
|
return nextIndex;
|
13432
13447
|
});
|
13433
13448
|
const onKeyDown = React__default.useCallback((event, length, scrollToIndex, tableRef) => {
|
@@ -13469,27 +13484,17 @@ function useTableRowActive$1(isEnabled = false, initialRowActiveIndex) {
|
|
13469
13484
|
if (!isEnabled || event.isDefaultPrevented()) {
|
13470
13485
|
return;
|
13471
13486
|
}
|
13472
|
-
if (
|
13473
|
-
// do it in the next tick, otherwise it prevents internal focus from working
|
13474
|
-
// meaning you have to tab twice to get to the first focusable element
|
13475
|
-
setTimeout(() => {
|
13476
|
-
setRowActiveIndex(index => {
|
13477
|
-
if (index === undefined) {
|
13478
|
-
scrollToIndex(0);
|
13479
|
-
return 0;
|
13480
|
-
}
|
13481
|
-
return index;
|
13482
|
-
});
|
13483
|
-
}, 1);
|
13484
|
-
}
|
13485
|
-
}, [rowActiveIndex, length, isEnabled]);
|
13486
|
-
const onMouseCapture = React__default.useCallback((event, length) => {
|
13487
|
-
if (!isEnabled || event.isDefaultPrevented()) {
|
13487
|
+
if (event.target.closest('tbody') || event.target.closest('[data-taco="table2-body"]') || isElementInsideOrTriggeredFromContainer(event.target, event.currentTarget)) {
|
13488
13488
|
return;
|
13489
13489
|
}
|
13490
13490
|
if (rowActiveIndex === undefined && length > 0) {
|
13491
|
-
|
13492
|
-
|
13491
|
+
setRowActiveIndex(index => {
|
13492
|
+
if (index === undefined) {
|
13493
|
+
scrollToIndex(0);
|
13494
|
+
return 0;
|
13495
|
+
}
|
13496
|
+
return index;
|
13497
|
+
});
|
13493
13498
|
}
|
13494
13499
|
}, [rowActiveIndex, length, isEnabled]);
|
13495
13500
|
return {
|
@@ -13499,8 +13504,7 @@ function useTableRowActive$1(isEnabled = false, initialRowActiveIndex) {
|
|
13499
13504
|
isHoverStatePaused,
|
13500
13505
|
setHoverStatePaused: isEnabled ? setHoverStatePaused : () => undefined,
|
13501
13506
|
handleFocus: isEnabled ? onFocus : () => undefined,
|
13502
|
-
handleKeyDown: isEnabled ? onKeyDown : () => undefined
|
13503
|
-
handleMouseCapture: isEnabled ? onMouseCapture : () => undefined
|
13507
|
+
handleKeyDown: isEnabled ? onKeyDown : () => undefined
|
13504
13508
|
};
|
13505
13509
|
}
|
13506
13510
|
function getNextIndex(direction, currentIndex, length) {
|
@@ -13972,17 +13976,81 @@ function useTableRowSelection(isEnabled = false) {
|
|
13972
13976
|
}
|
13973
13977
|
}, [isEnabled]);
|
13974
13978
|
return {
|
13979
|
+
isEnabled,
|
13975
13980
|
handleKeyDown: isEnabled ? onKeyDown : () => undefined,
|
13976
13981
|
lastSelectedRowIndex
|
13977
13982
|
};
|
13978
13983
|
}
|
13979
13984
|
|
13980
|
-
|
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) {
|
13981
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
|
+
}
|
13982
14047
|
return {
|
13983
14048
|
isEnabled,
|
13984
14049
|
loadPage,
|
13985
|
-
loadAll
|
14050
|
+
loadAll: _loadAll,
|
14051
|
+
loadAllIfNeeded: _loadAllIfNeeded,
|
14052
|
+
loadAllStatus,
|
14053
|
+
pageSize
|
13986
14054
|
};
|
13987
14055
|
}
|
13988
14056
|
|
@@ -14012,7 +14080,7 @@ function useTableRowClick(isEnabled = false, onRowClick) {
|
|
14012
14080
|
};
|
14013
14081
|
}
|
14014
14082
|
|
14015
|
-
function useTableColumnOrdering(isEnabled =
|
14083
|
+
function useTableColumnOrdering(isEnabled = false) {
|
14016
14084
|
return {
|
14017
14085
|
isEnabled
|
14018
14086
|
};
|
@@ -14973,7 +15041,7 @@ const TextareaControl = /*#__PURE__*/React__default.forwardRef(function Textarea
|
|
14973
15041
|
handleTextareaKeyDown(e);
|
14974
15042
|
},
|
14975
15043
|
onBlur: handleBlur,
|
14976
|
-
className: cn(getCellAlignmentClasses(align), `h-fit resize-none`, {
|
15044
|
+
className: cn(getCellAlignmentClasses(align), `h-fit resize-none [&:not(:focus)]:whitespace-nowrap`, {
|
14977
15045
|
[`!min-h-[${minMaxHeight.min}px]`]: columnMeta === null || columnMeta === void 0 ? void 0 : columnMeta.enableTruncate,
|
14978
15046
|
'!yt-focus-dark': isCellInDetailMode,
|
14979
15047
|
[`h-[${minMaxHeight.min}px]`]: !isCellInDetailMode && (columnMeta === null || columnMeta === void 0 ? void 0 : columnMeta.enableTruncate),
|
@@ -15105,6 +15173,7 @@ const EditingControl = /*#__PURE__*/React__default.forwardRef(function Control(p
|
|
15105
15173
|
handleChange(nextValue);
|
15106
15174
|
}
|
15107
15175
|
},
|
15176
|
+
fontSize: tableMeta.fontSize.size,
|
15108
15177
|
value
|
15109
15178
|
}, data);
|
15110
15179
|
} else if (controlRenderer === 'datepicker') {
|
@@ -15278,7 +15347,9 @@ const MemoedEditingCell = /*#__PURE__*/React__default.memo(function MemoedEditin
|
|
15278
15347
|
return removeMoveReason;
|
15279
15348
|
}, [value, tableMeta.rowActive.rowActiveIndex, tableMeta.search.excludeUnmatchedResults, error]);
|
15280
15349
|
const controlRenderer = (_column$columnDef$met = column.columnDef.meta) === null || _column$columnDef$met === void 0 ? void 0 : _column$columnDef$met.control;
|
15281
|
-
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)]', {
|
15282
15353
|
// Textarea control is positioned absolute, when column is in enableTruncate mode, so the cell need to be positioned relative
|
15283
15354
|
relative: controlRenderer === 'textarea' && columnMeta.enableTruncate
|
15284
15355
|
}, props.className, typeof columnMeta.className === 'function' ? columnMeta.className(row.original) : columnMeta.className);
|
@@ -15904,7 +15975,7 @@ function useConvertChildrenToColumns(props, options, editing) {
|
|
15904
15975
|
}, [editing.isEditing]);
|
15905
15976
|
}
|
15906
15977
|
|
15907
|
-
function
|
15978
|
+
function usePrinting(isEnabled = false, defaultIsWarningVisible = true, id) {
|
15908
15979
|
const [isWarningVisibleForLargeDatasets, setIsWarningVisibleForLargeDatasets] = React__default.useState(defaultIsWarningVisible);
|
15909
15980
|
return {
|
15910
15981
|
isEnabled,
|
@@ -15961,7 +16032,7 @@ function useTableShortcutsListener(table, shortcuts) {
|
|
15961
16032
|
function useTableRowGoto(isEnabled = false, handler) {
|
15962
16033
|
return {
|
15963
16034
|
isEnabled,
|
15964
|
-
handleGoto: isEnabled
|
16035
|
+
handleGoto: isEnabled ? handler : undefined
|
15965
16036
|
};
|
15966
16037
|
}
|
15967
16038
|
|
@@ -16295,15 +16366,15 @@ function useTableFontSizeListener(table) {
|
|
16295
16366
|
}
|
16296
16367
|
function getCellWidthDifference(fontSizeKey) {
|
16297
16368
|
switch (fontSizeKey) {
|
16298
|
-
case `${
|
16299
|
-
case `${
|
16369
|
+
case `${exports.FontSizes.small}-${exports.FontSizes.medium}`:
|
16370
|
+
case `${exports.FontSizes.medium}-${exports.FontSizes.large}`:
|
16300
16371
|
return 8;
|
16301
|
-
case `${
|
16302
|
-
case `${
|
16372
|
+
case `${exports.FontSizes.medium}-${exports.FontSizes.small}`:
|
16373
|
+
case `${exports.FontSizes.large}-${exports.FontSizes.medium}`:
|
16303
16374
|
return -8;
|
16304
|
-
case `${
|
16375
|
+
case `${exports.FontSizes.small}-${exports.FontSizes.large}`:
|
16305
16376
|
return 16;
|
16306
|
-
case `${
|
16377
|
+
case `${exports.FontSizes.large}-${exports.FontSizes.small}`:
|
16307
16378
|
return -16;
|
16308
16379
|
default:
|
16309
16380
|
return 0;
|
@@ -16324,6 +16395,8 @@ function useTable$1(props, ref) {
|
|
16324
16395
|
const validation = useValidation(props.onCellValidate, props.onRowValidate);
|
16325
16396
|
// not relevant to common table
|
16326
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);
|
16327
16400
|
// needs to be moved
|
16328
16401
|
const rowActions = useRowActions$1(props.actionsForRow, props.actionsForRowLength);
|
16329
16402
|
// not relevant to common table
|
@@ -16336,7 +16409,6 @@ function useTable$1(props, ref) {
|
|
16336
16409
|
// custom features - shared/migrated
|
16337
16410
|
const columnOrdering = useTableColumnOrdering(options.enableColumnOrdering);
|
16338
16411
|
const fontSize = useTableFontSize(options.enableFontSize, settings.fontSize);
|
16339
|
-
const printing = useTablePrinting(options.enablePrinting, settings.showWarningWhenPrintingLargeDataset, props.id);
|
16340
16412
|
const rowActive = useTableRowActive$1(true, props.defaultCurrentRowIndex);
|
16341
16413
|
const rowClick = useTableRowClick(true, props.onRowClick);
|
16342
16414
|
const rowGoto = useTableRowGoto(options.enableRowGoto, props.onRowGoto);
|
@@ -16355,7 +16427,7 @@ function useTable$1(props, ref) {
|
|
16355
16427
|
var _settings$columnSizin, _settings$columnVisib, _props$defaultSetting, _props$defaultSetting3;
|
16356
16428
|
const sanitizeSortedColumns = column => columns.find(definedColumn => definedColumn.id === column.id);
|
16357
16429
|
const state = {
|
16358
|
-
columnOrder: ensureOrdering(columns, [COLUMN_ID, COLUMN_ID$1]
|
16430
|
+
columnOrder: ensureOrdering(columns, settings.columnOrder, [COLUMN_ID, COLUMN_ID$1]),
|
16359
16431
|
columnSizing: (_settings$columnSizin = settings.columnSizing) !== null && _settings$columnSizin !== void 0 ? _settings$columnSizin : defaultColumnSizing,
|
16360
16432
|
columnVisibility: (_settings$columnVisib = settings.columnVisibility) !== null && _settings$columnVisib !== void 0 ? _settings$columnVisib : defaultColumnVisibility,
|
16361
16433
|
sorting: settings.sorting ? settings.sorting.filter(sanitizeSortedColumns) : defaultSorting
|
@@ -17950,8 +18022,8 @@ function RowHeight(props) {
|
|
17950
18022
|
const handleChange = value => {
|
17951
18023
|
const height = value;
|
17952
18024
|
meta.rowHeight.setHeight(height);
|
17953
|
-
if (height === 'short' && meta.fontSize.size ===
|
17954
|
-
meta.fontSize.setSize(
|
18025
|
+
if (height === 'short' && meta.fontSize.size === exports.FontSizes.large) {
|
18026
|
+
meta.fontSize.setSize(exports.FontSizes.medium);
|
17955
18027
|
}
|
17956
18028
|
};
|
17957
18029
|
return /*#__PURE__*/React__default.createElement(Menu$1.SubMenu, null, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup, {
|
@@ -18146,7 +18218,7 @@ function ColumnSettingsPopover(props) {
|
|
18146
18218
|
})) {
|
18147
18219
|
return;
|
18148
18220
|
}
|
18149
|
-
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]));
|
18150
18222
|
};
|
18151
18223
|
return /*#__PURE__*/React__default.createElement(Popover, Object.assign({}, popoverProps, {
|
18152
18224
|
anchor: trigger
|
@@ -18180,6 +18252,25 @@ function ColumnSettingsPopover(props) {
|
|
18180
18252
|
})) : texts.table3.columnSettings.noResults)))));
|
18181
18253
|
}
|
18182
18254
|
|
18255
|
+
function FontSize$1(props) {
|
18256
|
+
const {
|
18257
|
+
texts
|
18258
|
+
} = useLocalization();
|
18259
|
+
const meta = props.table.options.meta;
|
18260
|
+
const handleChange = value => meta.fontSize.setSize(value);
|
18261
|
+
return /*#__PURE__*/React__default.createElement(Menu$1.SubMenu, null, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup, {
|
18262
|
+
onChange: handleChange,
|
18263
|
+
value: meta.fontSize.size
|
18264
|
+
}, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
18265
|
+
value: exports.FontSizes.small
|
18266
|
+
}, texts.table3.fontSize.sizes.small), /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
18267
|
+
value: exports.FontSizes.medium
|
18268
|
+
}, texts.table3.fontSize.sizes.medium), /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
18269
|
+
disabled: meta.rowHeight.height === 'short',
|
18270
|
+
value: exports.FontSizes.large
|
18271
|
+
}, texts.table3.fontSize.sizes.large)));
|
18272
|
+
}
|
18273
|
+
|
18183
18274
|
function SettingsButton(props) {
|
18184
18275
|
const {
|
18185
18276
|
customSettings,
|
@@ -18346,7 +18437,7 @@ const getCellHeightPadding = (height, fontSize) => {
|
|
18346
18437
|
case 'short':
|
18347
18438
|
{
|
18348
18439
|
switch (fontSize) {
|
18349
|
-
case
|
18440
|
+
case exports.FontSizes.small:
|
18350
18441
|
return '8px';
|
18351
18442
|
default:
|
18352
18443
|
return '6px';
|
@@ -18356,9 +18447,9 @@ const getCellHeightPadding = (height, fontSize) => {
|
|
18356
18447
|
case 'tall':
|
18357
18448
|
{
|
18358
18449
|
switch (fontSize) {
|
18359
|
-
case
|
18450
|
+
case exports.FontSizes.small:
|
18360
18451
|
return '16px';
|
18361
|
-
case
|
18452
|
+
case exports.FontSizes.large:
|
18362
18453
|
return '12px';
|
18363
18454
|
default:
|
18364
18455
|
return '14px';
|
@@ -18367,9 +18458,9 @@ const getCellHeightPadding = (height, fontSize) => {
|
|
18367
18458
|
case 'extra-tall':
|
18368
18459
|
{
|
18369
18460
|
switch (fontSize) {
|
18370
|
-
case
|
18461
|
+
case exports.FontSizes.small:
|
18371
18462
|
return '22px';
|
18372
|
-
case
|
18463
|
+
case exports.FontSizes.large:
|
18373
18464
|
return '18px';
|
18374
18465
|
default:
|
18375
18466
|
return '20px';
|
@@ -18378,9 +18469,9 @@ const getCellHeightPadding = (height, fontSize) => {
|
|
18378
18469
|
default:
|
18379
18470
|
{
|
18380
18471
|
switch (fontSize) {
|
18381
|
-
case
|
18472
|
+
case exports.FontSizes.small:
|
18382
18473
|
return '12px';
|
18383
|
-
case
|
18474
|
+
case exports.FontSizes.large:
|
18384
18475
|
return '8px';
|
18385
18476
|
default:
|
18386
18477
|
return '10px';
|
@@ -18390,9 +18481,9 @@ const getCellHeightPadding = (height, fontSize) => {
|
|
18390
18481
|
};
|
18391
18482
|
const getCellWidthPadding = fontSize => {
|
18392
18483
|
switch (fontSize) {
|
18393
|
-
case
|
18484
|
+
case exports.FontSizes.small:
|
18394
18485
|
return '8px';
|
18395
|
-
case
|
18486
|
+
case exports.FontSizes.medium:
|
18396
18487
|
return '12px';
|
18397
18488
|
default:
|
18398
18489
|
return '16px';
|
@@ -18572,8 +18663,6 @@ function FilterResetDialog(props) {
|
|
18572
18663
|
}, texts.table3.validation.resetFiltersDialog.confirm)))));
|
18573
18664
|
}
|
18574
18665
|
|
18575
|
-
const fixedForwardRef = React__default.forwardRef;
|
18576
|
-
|
18577
18666
|
function useTable3DataLoader(fetch, fetchAll, options = {
|
18578
18667
|
pageSize: 100
|
18579
18668
|
}) {
|
@@ -18783,10 +18872,6 @@ const Table$1 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
|
|
18783
18872
|
const handleFocus = tableMeta.rowActive.rowActiveIndex === undefined ? event => {
|
18784
18873
|
tableMeta.rowActive.handleFocus(event, table.getRowModel().rows.length, scrollToIndex);
|
18785
18874
|
} : undefined;
|
18786
|
-
// mouse capture fires before focus, so we can prevent propagation and stop double setting of the active row
|
18787
|
-
const handleMouseCapture = tableMeta.rowActive.rowActiveIndex === undefined ? event => {
|
18788
|
-
tableMeta.rowActive.handleMouseCapture(event, table.getRowModel().rows.length);
|
18789
|
-
} : undefined;
|
18790
18875
|
const handleScroll = function (event) {
|
18791
18876
|
try {
|
18792
18877
|
tableMeta.columnFreezing.handleScroll(event);
|
@@ -18796,9 +18881,9 @@ const Table$1 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
|
|
18796
18881
|
}
|
18797
18882
|
};
|
18798
18883
|
const className = cn('border-grey-300 relative grid h-full w-full flex-grow overflow-auto rounded border bg-white scroll-mt-[41px] focus-visible:outline-none', '[&[data-resizing="true"]]:select-none', {
|
18799
|
-
'text-xs': tableMeta.fontSize.size ===
|
18800
|
-
'text-sm': tableMeta.fontSize.size ===
|
18801
|
-
'text-base': tableMeta.fontSize.size ===
|
18884
|
+
'text-xs': tableMeta.fontSize.size === exports.FontSizes.small,
|
18885
|
+
'text-sm': tableMeta.fontSize.size === exports.FontSizes.medium,
|
18886
|
+
'text-base': tableMeta.fontSize.size === exports.FontSizes.large
|
18802
18887
|
});
|
18803
18888
|
// Print tables have "_print" as the postfix for the table id, so we can use the it to determine
|
18804
18889
|
// if the table is a print table or not.
|
@@ -18874,7 +18959,6 @@ const Table$1 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
|
|
18874
18959
|
})))))), table.getRowModel().rows.length ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(focus.FocusScope, {
|
18875
18960
|
autoFocus: tableMeta.editing.isEditing
|
18876
18961
|
}, /*#__PURE__*/React__default.createElement("div", {
|
18877
|
-
onMouseDownCapture: handleMouseCapture,
|
18878
18962
|
className: "group/body contents",
|
18879
18963
|
"data-taco": "table2-body",
|
18880
18964
|
role: "rowgroup",
|
@@ -19360,7 +19444,7 @@ const AgreementItem = props => {
|
|
19360
19444
|
className: "truncate"
|
19361
19445
|
}, agreement.name), ' ', agreement.secure ? ( /*#__PURE__*/React__default.createElement(Icon, {
|
19362
19446
|
name: "secure-tick",
|
19363
|
-
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"
|
19364
19448
|
})) : null), /*#__PURE__*/React__default.createElement("span", {
|
19365
19449
|
className: "text-grey-100 whitespace-nowrap text-xs"
|
19366
19450
|
}, agreement.number, " ", agreement.userId, " ", /*#__PURE__*/React__default.createElement(AgreementBadge, {
|
@@ -19391,7 +19475,7 @@ const AgreementDisplay = props => {
|
|
19391
19475
|
title: `${currentAgreement.name} - ${currentAgreement.number} ${currentAgreement.userId}`
|
19392
19476
|
}), /*#__PURE__*/React__default.createElement(AgreementBadge, {
|
19393
19477
|
agreement: currentAgreement,
|
19394
|
-
className: "absolute
|
19478
|
+
className: "absolute right-0 top-0 -mr-1 w-8 !justify-start"
|
19395
19479
|
}));
|
19396
19480
|
};
|
19397
19481
|
|
@@ -19549,7 +19633,7 @@ const LayoutContext = /*#__PURE__*/React__default.createContext({
|
|
19549
19633
|
});
|
19550
19634
|
|
19551
19635
|
const Content$9 = /*#__PURE__*/React__default.forwardRef(function LayoutContent(props, ref) {
|
19552
|
-
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);
|
19553
19637
|
return /*#__PURE__*/React__default.createElement("main", Object.assign({}, props, {
|
19554
19638
|
className: className,
|
19555
19639
|
ref: ref
|
@@ -19591,7 +19675,7 @@ const Sidebar = /*#__PURE__*/React__default.forwardRef(function LayoutSidebar(pr
|
|
19591
19675
|
}, [isSmallScreen, sidebarOpen]);
|
19592
19676
|
const showBackdrop = isSmallScreen && sidebarOpen === true;
|
19593
19677
|
const [ready, setReady] = React__default.useState(isSmallScreen);
|
19594
|
-
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', {
|
19595
19679
|
'absolute z-10 aria-hidden:-translate-x-64 ': isSmallScreen,
|
19596
19680
|
// prevent animation when crossing the boundary from large to small screen,
|
19597
19681
|
// this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)
|
@@ -19645,7 +19729,7 @@ const Top = props => {
|
|
19645
19729
|
};
|
19646
19730
|
|
19647
19731
|
const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, ref) {
|
19648
|
-
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);
|
19649
19733
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
19650
19734
|
className: className,
|
19651
19735
|
ref: ref
|
@@ -19654,7 +19738,7 @@ const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, r
|
|
19654
19738
|
|
19655
19739
|
const Layout$1 = /*#__PURE__*/React__default.forwardRef(function Layout(props, ref) {
|
19656
19740
|
const [sidebarOpen, setSidebarOpen] = React__default.useState(false);
|
19657
|
-
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);
|
19658
19742
|
return /*#__PURE__*/React__default.createElement(LayoutContext.Provider, {
|
19659
19743
|
value: {
|
19660
19744
|
sidebarOpen,
|
@@ -19755,7 +19839,7 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
19755
19839
|
role: "menuitem",
|
19756
19840
|
tabIndex: 0
|
19757
19841
|
}), icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
19758
|
-
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",
|
19759
19843
|
name: icon
|
19760
19844
|
}) : null, /*#__PURE__*/React__default.createElement("span", {
|
19761
19845
|
className: "flex flex-grow items-center truncate"
|