@economic/taco 2.39.2 → 2.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/OverflowGroup/OverflowGroup.d.ts +0 -1
- package/dist/components/Table/hooks/useRowCreation.d.ts +4 -4
- package/dist/components/Table/types.d.ts +19 -19
- package/dist/components/Tabs/Tabs.d.ts +0 -5
- package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +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.map +1 -1
- package/dist/esm/packages/taco/src/components/Banner/Banner.js +1 -1
- package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +4 -4
- 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 +2 -2
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +2 -2
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +6 -6
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +2 -2
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +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 +5 -5
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.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/Hanger/Hanger.js +1 -1
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
- 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 +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js +2 -2
- package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.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/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/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/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/Layout/components/Sidebar.js +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Item.js +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +4 -4
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js +2 -2
- package/dist/esm/packages/taco/src/components/Menu/components/Item.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/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/OverflowGroup/OverflowGroup.js +1 -4
- package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +3 -3
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js +2 -2
- package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +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.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/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +5 -5
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +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 +7 -7
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js +2 -2
- 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 +5 -5
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js +4 -4
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +5 -5
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.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/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/PaginatedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +8 -8
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.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.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +3 -3
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +2 -11
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tag/Tag.js +3 -3
- package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Toast/Toaster.js +1 -1
- package/dist/esm/packages/taco/src/components/Toast/Toaster.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Toast/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tour/Tour.js +2 -2
- package/dist/esm/packages/taco/src/components/Tour/Tour.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/hooks/useIntersectionObserver.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/BubbleSelect.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +4 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +3 -3
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +3 -3
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +9 -9
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +2 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +4 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +3 -3
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +6 -6
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleColumnFreezing.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +2 -2
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/date.js +1 -1
- package/dist/esm/packages/taco/src/utils/date.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/taco.cjs.development.js +160 -170
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +2 -2
@@ -3747,7 +3747,7 @@ const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
|
|
3747
3747
|
const className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
|
3748
3748
|
'p-[3px]': (_props$className = props.className) === null || _props$className === void 0 ? void 0 : _props$className.includes('rounded-full')
|
3749
3749
|
});
|
3750
|
-
return Component ? (
|
3750
|
+
return Component ? (/*#__PURE__*/React__default.createElement(Component, Object.assign({}, otherProps, {
|
3751
3751
|
className: className,
|
3752
3752
|
"data-taco": "icon",
|
3753
3753
|
"data-icon-name": name,
|
@@ -4798,7 +4798,7 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
|
|
4798
4798
|
className: className,
|
4799
4799
|
"data-taco": "banner",
|
4800
4800
|
ref: ref
|
4801
|
-
}, getBannerIcon(state), children, onClose ? (
|
4801
|
+
}, getBannerIcon(state), children, onClose ? (/*#__PURE__*/React.createElement(IconButton, {
|
4802
4802
|
"aria-label": texts.banner.close,
|
4803
4803
|
className: "-mr-2 ml-auto self-start",
|
4804
4804
|
icon: "close",
|
@@ -4892,7 +4892,7 @@ const Navbar = /*#__PURE__*/React.memo(({
|
|
4892
4892
|
name: "month",
|
4893
4893
|
onChange: handleChange,
|
4894
4894
|
value: value.getMonth()
|
4895
|
-
}, months.map((month, i) => (
|
4895
|
+
}, months.map((month, i) => (/*#__PURE__*/React.createElement("option", {
|
4896
4896
|
key: month,
|
4897
4897
|
value: i
|
4898
4898
|
}, month)))), /*#__PURE__*/React.createElement("select", {
|
@@ -4900,7 +4900,7 @@ const Navbar = /*#__PURE__*/React.memo(({
|
|
4900
4900
|
name: "year",
|
4901
4901
|
onChange: handleChange,
|
4902
4902
|
value: value.getFullYear()
|
4903
|
-
}, years.map(year => (
|
4903
|
+
}, years.map(year => (/*#__PURE__*/React.createElement("option", {
|
4904
4904
|
key: year,
|
4905
4905
|
value: year
|
4906
4906
|
}, String(year)))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tooltip, {
|
@@ -4977,13 +4977,13 @@ const Calendar$1 = props => {
|
|
4977
4977
|
onMonthChange: setVisibleMonth,
|
4978
4978
|
value: visibleMonth
|
4979
4979
|
})),
|
4980
|
-
Footer: () => (
|
4980
|
+
Footer: () => (/*#__PURE__*/React.createElement("tfoot", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
4981
4981
|
colSpan: 7,
|
4982
4982
|
className: "text-center"
|
4983
4983
|
}, /*#__PURE__*/React.createElement(TodayButton, {
|
4984
4984
|
handleChange: handleChange
|
4985
4985
|
}))))),
|
4986
|
-
HeadRow: () => (
|
4986
|
+
HeadRow: () => (/*#__PURE__*/React.createElement("tr", null, texts.calendar.weekdaysShort.map((weekday, index) => {
|
4987
4987
|
const label = texts.calendar.weekdays && texts.calendar.weekdays[index];
|
4988
4988
|
return /*#__PURE__*/React.createElement("th", {
|
4989
4989
|
key: weekday,
|
@@ -5068,8 +5068,8 @@ const Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
|
|
5068
5068
|
"data-taco": "card",
|
5069
5069
|
ref: ref
|
5070
5070
|
}, /*#__PURE__*/React.createElement("div", {
|
5071
|
-
className: "mx-4 mb-2 mt-4 flex"
|
5072
|
-
}, title && (
|
5071
|
+
className: "mx-4 mb-2 mt-4 flex justify-between"
|
5072
|
+
}, title && (/*#__PURE__*/React.createElement(Truncate, {
|
5073
5073
|
tooltip: title
|
5074
5074
|
}, /*#__PURE__*/React.createElement("h4", {
|
5075
5075
|
className: "mb-0 flex-grow truncate text-left"
|
@@ -5176,9 +5176,9 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
|
|
5176
5176
|
onCheckedChange: handleChange,
|
5177
5177
|
onKeyDown: handleKeyDown,
|
5178
5178
|
ref: ref
|
5179
|
-
}), loading ? (
|
5179
|
+
}), loading ? (/*#__PURE__*/React.createElement(Spinner, {
|
5180
5180
|
className: spinnerClassname
|
5181
|
-
})) : (
|
5181
|
+
})) : (/*#__PURE__*/React.createElement(CheckboxPrimitive.Indicator, {
|
5182
5182
|
className: "flex h-full w-full"
|
5183
5183
|
}, /*#__PURE__*/React.createElement(Icon, {
|
5184
5184
|
name: indeterminate ? 'line' : 'tick',
|
@@ -5381,7 +5381,7 @@ const InputWithoutDeprecatedFeatures = /*#__PURE__*/React.forwardRef(function In
|
|
5381
5381
|
ref: postfixRef
|
5382
5382
|
}) : null);
|
5383
5383
|
});
|
5384
|
-
const Affix = /*#__PURE__*/React.memo(
|
5384
|
+
const Affix = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function Affix(props, ref) {
|
5385
5385
|
const {
|
5386
5386
|
children,
|
5387
5387
|
disabled,
|
@@ -5619,7 +5619,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
|
|
5619
5619
|
};
|
5620
5620
|
return /*#__PURE__*/React.createElement("ul", Object.assign({}, list, {
|
5621
5621
|
"data-taco": "scrollable-list"
|
5622
|
-
}), loading ? (
|
5622
|
+
}), loading ? (/*#__PURE__*/React.createElement("li", {
|
5623
5623
|
className: "yt-list__empty"
|
5624
5624
|
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Spinner, {
|
5625
5625
|
delay: 0
|
@@ -5627,9 +5627,9 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
|
|
5627
5627
|
children,
|
5628
5628
|
icon,
|
5629
5629
|
...optionProps
|
5630
|
-
}) => (
|
5630
|
+
}) => (/*#__PURE__*/React.createElement("li", Object.assign({}, optionProps), icon, /*#__PURE__*/React.createElement("span", {
|
5631
5631
|
className: "flex-grow truncate text-left"
|
5632
|
-
}, children), multiselect && (
|
5632
|
+
}, children), multiselect && (/*#__PURE__*/React.createElement(Checkbox
|
5633
5633
|
// In multiselect variant, this checkbox only acts as visual representation of item being selected,
|
5634
5634
|
// so need to be taken out of screen reader scope.
|
5635
5635
|
, {
|
@@ -5638,7 +5638,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
|
|
5638
5638
|
checked: optionProps['aria-selected'],
|
5639
5639
|
onChange: () => null,
|
5640
5640
|
className: "pointer-events-none ml-2 self-center p-px"
|
5641
|
-
}))))) : (
|
5641
|
+
}))))) : (/*#__PURE__*/React.createElement("li", {
|
5642
5642
|
className: "yt-list__empty"
|
5643
5643
|
}, /*#__PURE__*/React.createElement("span", null, texts.listbox.empty))));
|
5644
5644
|
});
|
@@ -6099,7 +6099,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
|
|
6099
6099
|
ref: ref
|
6100
6100
|
}), /*#__PURE__*/React.createElement(Input, Object.assign({}, input, {
|
6101
6101
|
autoComplete: "off",
|
6102
|
-
button: props.readOnly ? undefined : props.inline ? (
|
6102
|
+
button: props.readOnly ? undefined : props.inline ? (/*#__PURE__*/React.createElement(IconButton
|
6103
6103
|
// In case of inline combobox, this icon button acts only as visual chevron representation,
|
6104
6104
|
// so should be taken out of screen reader scope.
|
6105
6105
|
, {
|
@@ -6113,7 +6113,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
|
|
6113
6113
|
(_input$ref$current = input.ref.current) === null || _input$ref$current === void 0 ? void 0 : _input$ref$current.focus();
|
6114
6114
|
},
|
6115
6115
|
tabIndex: -1
|
6116
|
-
})) : dialog ? (
|
6116
|
+
})) : dialog ? (/*#__PURE__*/React.createElement(IconButton, {
|
6117
6117
|
"aria-label": texts.combobox.tooltip,
|
6118
6118
|
icon: "list-search",
|
6119
6119
|
disabled: props.readOnly || props.disabled,
|
@@ -6191,7 +6191,7 @@ const parseFromCustomString = (date = '', mask = 'dd.mm.yy', defaultMonth = unde
|
|
6191
6191
|
month = Number.parseInt(month, 10);
|
6192
6192
|
year = Number.parseInt(year, 10);
|
6193
6193
|
const currentDate = new Date();
|
6194
|
-
return new Date(
|
6194
|
+
return new Date(/* year */Object.is(year, NaN) ? defaultYear !== null && defaultYear !== void 0 ? defaultYear : currentDate.getFullYear() : year, /* month */Object.is(month, NaN) ? defaultMonth !== null && defaultMonth !== void 0 ? defaultMonth : currentDate.getMonth() : month - 1,
|
6195
6195
|
// months are zero based in javascript, so subtract a day
|
6196
6196
|
/* day */
|
6197
6197
|
Object.is(day, NaN) ? currentDate.getDate() : day, /* hours */12, /* minutes */0 // set to midday to avoid UTC offset causing dates to be mismatched server side
|
@@ -6322,7 +6322,7 @@ const Trigger$2 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, e
|
|
6322
6322
|
} = React.useContext(PopoverContext);
|
6323
6323
|
const refCallback = mergeRefs([parentRef, externalRef]);
|
6324
6324
|
let children = props.children;
|
6325
|
-
if (
|
6325
|
+
if (/*#__PURE__*/React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
|
6326
6326
|
console.warn(`Popover.Trigger requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '${props.children.type.name}' in React.forwardRef()? Taco has wrapped '${props.children.type.name}' in a 'span' to maintain functionality, but this may cause unintended behaviour`);
|
6327
6327
|
children = /*#__PURE__*/React.createElement("span", null, props.children);
|
6328
6328
|
}
|
@@ -6367,7 +6367,7 @@ const Content$3 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
|
|
6367
6367
|
className: "text-white"
|
6368
6368
|
})));
|
6369
6369
|
});
|
6370
|
-
const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => (
|
6370
|
+
const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => (/*#__PURE__*/React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
|
6371
6371
|
ref: ref,
|
6372
6372
|
asChild: true
|
6373
6373
|
}))));
|
@@ -6430,16 +6430,16 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
|
|
6430
6430
|
"data-taco": "datepicker",
|
6431
6431
|
style: style
|
6432
6432
|
}, /*#__PURE__*/React.createElement(Input, Object.assign({}, input, {
|
6433
|
-
button: input.readOnly ? undefined : (
|
6433
|
+
button: input.readOnly ? undefined : (/*#__PURE__*/React.createElement(IconButton, {
|
6434
6434
|
"aria-label": texts.datepicker.expand,
|
6435
6435
|
disabled: input.disabled || input.readOnly,
|
6436
6436
|
icon: "calendar",
|
6437
6437
|
tabIndex: -1,
|
6438
|
-
popover: props => (
|
6438
|
+
popover: props => (/*#__PURE__*/React.createElement(Popover, Object.assign({}, props), /*#__PURE__*/React.createElement(Popover.Content, {
|
6439
6439
|
onOpenAutoFocus: handleOpenAutofocus
|
6440
6440
|
}, ({
|
6441
6441
|
close
|
6442
|
-
}) => (
|
6442
|
+
}) => (/*#__PURE__*/React.createElement("div", {
|
6443
6443
|
className: '[&_button[name="day"]:focus]:yt-focus -m-3 flex',
|
6444
6444
|
ref: popoverContentRef
|
6445
6445
|
}, /*#__PURE__*/React.createElement(Calendar$1, Object.assign({}, calendar, {
|
@@ -6447,11 +6447,11 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
|
|
6447
6447
|
calendar.onChange(date, event);
|
6448
6448
|
close();
|
6449
6449
|
}
|
6450
|
-
})), shortcuts && (
|
6450
|
+
})), shortcuts && (/*#__PURE__*/React.createElement("div", {
|
6451
6451
|
className: "border-grey-300 flex flex-col border-l"
|
6452
6452
|
}, /*#__PURE__*/React.createElement("span", {
|
6453
6453
|
className: "m-4 mb-3 flex h-8 w-32 items-center text-xs font-semibold"
|
6454
|
-
}, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), /*#__PURE__*/React.createElement("ul", null, shortcuts.map(shortcut => (
|
6454
|
+
}, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), /*#__PURE__*/React.createElement("ul", null, shortcuts.map(shortcut => (/*#__PURE__*/React.createElement("li", {
|
6455
6455
|
key: shortcut.text
|
6456
6456
|
}, /*#__PURE__*/React.createElement("button", {
|
6457
6457
|
type: "button",
|
@@ -6461,7 +6461,7 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
|
|
6461
6461
|
shortcut.onClick(event);
|
6462
6462
|
close();
|
6463
6463
|
}
|
6464
|
-
}, shortcut.text))))), handleReset && (
|
6464
|
+
}, shortcut.text))))), handleReset && (/*#__PURE__*/React.createElement("button", {
|
6465
6465
|
type: "button",
|
6466
6466
|
className: "mx-auto my-4 mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs text-blue-500 hover:text-blue-300",
|
6467
6467
|
onClick: event => {
|
@@ -6645,13 +6645,13 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
|
|
6645
6645
|
}), /*#__PURE__*/React.createElement("div", {
|
6646
6646
|
className: containerClassName,
|
6647
6647
|
"data-taco": "dialog"
|
6648
|
-
}, output, dialog.draggable && (
|
6648
|
+
}, output, dialog.draggable && (/*#__PURE__*/React.createElement("div", Object.assign({}, dragHandleProps, {
|
6649
6649
|
role: "button",
|
6650
6650
|
draggable: true,
|
6651
6651
|
"aria-grabbed": dragging,
|
6652
6652
|
"aria-label": texts.dialog.drag,
|
6653
6653
|
className: "yt-dialog__drag absolute-center-x bg-grey-100 top-1.5 h-3 w-24 cursor-move rounded text-center print:hidden"
|
6654
|
-
}))), dialog.showCloseButton ? (
|
6654
|
+
}))), dialog.showCloseButton ? (/*#__PURE__*/React.createElement(DialogPrimitive.Close, {
|
6655
6655
|
onClick: dialog.onClose,
|
6656
6656
|
asChild: true
|
6657
6657
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
@@ -6936,7 +6936,7 @@ const Title$2 = /*#__PURE__*/React__default.forwardRef(function DrawerTitle(prop
|
|
6936
6936
|
className: cName
|
6937
6937
|
}, otherProps, {
|
6938
6938
|
ref: ref
|
6939
|
-
}), onClickBack ? (
|
6939
|
+
}), onClickBack ? (/*#__PURE__*/React__default.createElement(IconButton, {
|
6940
6940
|
appearance: "discrete",
|
6941
6941
|
"aria-label": texts.drawer.back,
|
6942
6942
|
className: "mr-3 text-base",
|
@@ -7020,7 +7020,7 @@ const Portal = props => {
|
|
7020
7020
|
}
|
7021
7021
|
return /*#__PURE__*/React__default.createElement(DialogPrimitive.Portal, Object.assign({}, otherProps, {
|
7022
7022
|
container: outlet !== null && outlet !== void 0 ? outlet : undefined
|
7023
|
-
}), variant === 'overlay' ? (
|
7023
|
+
}), variant === 'overlay' ? (/*#__PURE__*/React__default.createElement(DialogPrimitive.Overlay, {
|
7024
7024
|
forceMount: true
|
7025
7025
|
}, /*#__PURE__*/React__default.createElement(Backdrop, {
|
7026
7026
|
className: backdropClassNames
|
@@ -7145,7 +7145,7 @@ const DrawerContent = /*#__PURE__*/React__default.forwardRef(function Content(pr
|
|
7145
7145
|
}), dragging ? /*#__PURE__*/React__default.createElement("div", {
|
7146
7146
|
"data-testid": "resize-hit-area",
|
7147
7147
|
className: "fixed bottom-0 left-0 right-0 top-0"
|
7148
|
-
}) : null), showCloseButton ? (
|
7148
|
+
}) : null), showCloseButton ? (/*#__PURE__*/React__default.createElement(Close$3, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
7149
7149
|
appearance: "discrete",
|
7150
7150
|
"aria-label": texts.drawer.close,
|
7151
7151
|
className: "absolute right-0 top-0 mr-2 mt-4",
|
@@ -7157,7 +7157,7 @@ const DrawerContent = /*#__PURE__*/React__default.forwardRef(function Content(pr
|
|
7157
7157
|
width: resizedWidth
|
7158
7158
|
}
|
7159
7159
|
};
|
7160
|
-
return focusTrap ? (
|
7160
|
+
return focusTrap ? (/*#__PURE__*/React__default.createElement(DialogPrimitive.Content, Object.assign({
|
7161
7161
|
forceMount: true
|
7162
7162
|
}, otherProps, {
|
7163
7163
|
className: contentClassName,
|
@@ -7166,7 +7166,7 @@ const DrawerContent = /*#__PURE__*/React__default.forwardRef(function Content(pr
|
|
7166
7166
|
onCloseAutoFocus: handleCloseAutoFocus,
|
7167
7167
|
ref: ref,
|
7168
7168
|
style: styleProp
|
7169
|
-
}), content)) : (
|
7169
|
+
}), content)) : (/*#__PURE__*/React__default.createElement(UntrappedFocusDrawerContent, {
|
7170
7170
|
onEscape: handleEscapeKeyDown,
|
7171
7171
|
className: contentClassName,
|
7172
7172
|
style: styleProp,
|
@@ -7311,7 +7311,7 @@ const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
|
|
7311
7311
|
className: className,
|
7312
7312
|
"data-taco": "label",
|
7313
7313
|
ref: ref
|
7314
|
-
}), children, message && (
|
7314
|
+
}), children, message && (/*#__PURE__*/React.createElement(Truncate, {
|
7315
7315
|
tooltip: message
|
7316
7316
|
}, /*#__PURE__*/React.createElement("span", {
|
7317
7317
|
className: messageClassName,
|
@@ -7349,7 +7349,7 @@ const Anchor$1 = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, exte
|
|
7349
7349
|
} = React.useContext(HangerContext);
|
7350
7350
|
const refCallback = mergeRefs([parentRef, externalRef]);
|
7351
7351
|
let children = props.children;
|
7352
|
-
if (
|
7352
|
+
if (/*#__PURE__*/React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
|
7353
7353
|
console.warn(`Hanger.Anchor requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '${props.children.type.name}' in React.forwardRef()? Taco has wrapped '${props.children.type.name}' in a 'span' to maintain functionality, but this may cause unintended behaviour`);
|
7354
7354
|
children = /*#__PURE__*/React.createElement("span", null, props.children);
|
7355
7355
|
}
|
@@ -7503,7 +7503,7 @@ const Item$1 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
|
|
7503
7503
|
"data-taco": "list-item",
|
7504
7504
|
ref: ref,
|
7505
7505
|
tabIndex: disabled ? -1 : tabIndex
|
7506
|
-
}), icon ? (
|
7506
|
+
}), icon ? (/*#__PURE__*/React__default.createElement("span", {
|
7507
7507
|
className: iconClassName
|
7508
7508
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
7509
7509
|
name: icon
|
@@ -8221,7 +8221,7 @@ const Shortcut = ({
|
|
8221
8221
|
const texts = getShortcutText(keys);
|
8222
8222
|
return /*#__PURE__*/React__default.createElement("span", Object.assign({}, props, {
|
8223
8223
|
className: className
|
8224
|
-
}), texts.map(key => (
|
8224
|
+
}), texts.map(key => (/*#__PURE__*/React__default.createElement("kbd", {
|
8225
8225
|
key: key,
|
8226
8226
|
className: "font-display text-grey-700 [[data-taco=tooltip]_&]:bg-grey-300/[0.25] rounded-sm bg-black/[0.09] px-1 text-center font-bold [[data-taco=tooltip]_&]:text-white"
|
8227
8227
|
}, key))));
|
@@ -8229,7 +8229,7 @@ const Shortcut = ({
|
|
8229
8229
|
|
8230
8230
|
const Icon$1 = ({
|
8231
8231
|
name
|
8232
|
-
}) => (
|
8232
|
+
}) => (/*#__PURE__*/React.createElement("span", {
|
8233
8233
|
className: "absolute left-0 ml-1"
|
8234
8234
|
}, /*#__PURE__*/React.createElement(Icon, {
|
8235
8235
|
className: "-ml-px -mt-px !h-5 !w-5",
|
@@ -8306,7 +8306,7 @@ const Item$2 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
|
|
8306
8306
|
ref: ref
|
8307
8307
|
}), icon ? /*#__PURE__*/React.createElement(Icon$1, {
|
8308
8308
|
name: icon
|
8309
|
-
}) : null, props.children, shortcut ? (
|
8309
|
+
}) : null, props.children, shortcut ? (/*#__PURE__*/React.createElement("span", {
|
8310
8310
|
className: "ml-auto pl-5"
|
8311
8311
|
}, /*#__PURE__*/React.createElement(Shortcut, {
|
8312
8312
|
keys: shortcut,
|
@@ -8458,7 +8458,7 @@ const useRadioGroup = props => {
|
|
8458
8458
|
const values = React.useMemo(() => {
|
8459
8459
|
const radioGroupItemValues = [];
|
8460
8460
|
React.Children.forEach(children, child => {
|
8461
|
-
if (
|
8461
|
+
if (/*#__PURE__*/React.isValidElement(child)) {
|
8462
8462
|
radioGroupItemValues.push(child.props.value);
|
8463
8463
|
}
|
8464
8464
|
});
|
@@ -8704,7 +8704,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
|
|
8704
8704
|
}, typeof title === 'function' ? title(expanded) : title), /*#__PURE__*/React__default.createElement("ul", {
|
8705
8705
|
role: "group",
|
8706
8706
|
className: listClassName
|
8707
|
-
}, React__default.Children.toArray(children).filter(item => !!item).map((item, i) => (
|
8707
|
+
}, React__default.Children.toArray(children).filter(item => !!item).map((item, i) => (/*#__PURE__*/React__default.createElement("li", {
|
8708
8708
|
key: i,
|
8709
8709
|
role: "none"
|
8710
8710
|
}, /*#__PURE__*/React__default.cloneElement(item, {
|
@@ -8841,7 +8841,7 @@ const Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
|
|
8841
8841
|
return /*#__PURE__*/React__default.createElement(Treeview, Object.assign({}, props, {
|
8842
8842
|
className: cn('divide-grey-100 flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
|
8843
8843
|
ref: ref
|
8844
|
-
}), scrollableAreas.map((area, i) => Array.isArray(area) ? (
|
8844
|
+
}), scrollableAreas.map((area, i) => Array.isArray(area) ? (/*#__PURE__*/React__default.createElement("div", {
|
8845
8845
|
className: "divide-grey-100 flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
|
8846
8846
|
key: i
|
8847
8847
|
}, area)) : area));
|
@@ -8941,7 +8941,6 @@ const OverflowGroup = /*#__PURE__*/React__default.forwardRef(function OverflowGr
|
|
8941
8941
|
var _moreButton;
|
8942
8942
|
const {
|
8943
8943
|
moreButton,
|
8944
|
-
wrapChild,
|
8945
8944
|
...attributes
|
8946
8945
|
} = props;
|
8947
8946
|
const internalRef = useMergedRef(ref);
|
@@ -8975,9 +8974,7 @@ const OverflowGroup = /*#__PURE__*/React__default.forwardRef(function OverflowGr
|
|
8975
8974
|
})), hiddenChildren.length ? /*#__PURE__*/React__default.cloneElement(MoreButton, {
|
8976
8975
|
className: cn('sticky right-0 order-[99]', MoreButton.props.className),
|
8977
8976
|
'data-observer-ignore': true,
|
8978
|
-
menu: menuProps => (
|
8979
|
-
key: index
|
8980
|
-
}, child)) : sanitizeButtonPropsForMenuItem(child, index))))),
|
8977
|
+
menu: menuProps => (/*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, hiddenChildren.map(sanitizeButtonPropsForMenuItem)))),
|
8981
8978
|
ref: buttonRefCallback
|
8982
8979
|
}) : null);
|
8983
8980
|
});
|
@@ -9010,7 +9007,7 @@ const PageNumbers = ({
|
|
9010
9007
|
const {
|
9011
9008
|
texts
|
9012
9009
|
} = useLocalization();
|
9013
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, range.map(pageNumber => (
|
9010
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, range.map(pageNumber => (/*#__PURE__*/React.createElement(Button$1, {
|
9014
9011
|
appearance: pageNumber === currentPageIndex + 1 ? 'primary' : 'default',
|
9015
9012
|
"aria-current": pageNumber === currentPageIndex + 1 ? 'page' : undefined,
|
9016
9013
|
key: pageNumber,
|
@@ -9128,7 +9125,7 @@ const useSelect = ({
|
|
9128
9125
|
} else {
|
9129
9126
|
const item = findByValue(flattenedData, value);
|
9130
9127
|
if (item) {
|
9131
|
-
text = item.icon ? (
|
9128
|
+
text = item.icon ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(item.icon, {
|
9132
9129
|
className: cn(item.icon.props.className, 'mr-1 -mt-px')
|
9133
9130
|
}), item.text)) : item.text;
|
9134
9131
|
}
|
@@ -9395,7 +9392,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
|
|
9395
9392
|
className: className,
|
9396
9393
|
"data-taco": "pagination",
|
9397
9394
|
ref: ref
|
9398
|
-
}), showPageSize && (
|
9395
|
+
}), showPageSize && (/*#__PURE__*/React.createElement("span", {
|
9399
9396
|
className: "mr-4"
|
9400
9397
|
}, getShowingLabel(length, pageIndex, pageSize, texts), /*#__PURE__*/React.createElement(Select, {
|
9401
9398
|
"aria-label": texts.pagination.pageSize,
|
@@ -9409,7 +9406,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
|
|
9409
9406
|
setPageSize(Number(event.target.value));
|
9410
9407
|
},
|
9411
9408
|
value: pageSize
|
9412
|
-
}))), showPageControls && (
|
9409
|
+
}))), showPageControls && (/*#__PURE__*/React.createElement(Group, {
|
9413
9410
|
as: "nav",
|
9414
9411
|
"aria-label": texts.pagination.label
|
9415
9412
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
@@ -9426,7 +9423,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
|
|
9426
9423
|
onClick: () => setPageIndex(pageIndex - 1),
|
9427
9424
|
"aria-label": showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage,
|
9428
9425
|
tooltip: showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage
|
9429
|
-
}), showPageNumbers && pageCount > 0 && (
|
9426
|
+
}), showPageNumbers && pageCount > 0 && (/*#__PURE__*/React.createElement(PageNumbers, {
|
9430
9427
|
pageCount: pageCount,
|
9431
9428
|
currentPageIndex: pageIndex,
|
9432
9429
|
onClick: setPageIndex
|
@@ -9692,7 +9689,7 @@ const ToastProvider = ({
|
|
9692
9689
|
role: "log"
|
9693
9690
|
}, /*#__PURE__*/React.createElement(framerMotion.AnimatePresence, {
|
9694
9691
|
initial: false
|
9695
|
-
}, toasts.map(toast => (
|
9692
|
+
}, toasts.map(toast => (/*#__PURE__*/React.createElement(framerMotion.motion.div, {
|
9696
9693
|
key: toast.id,
|
9697
9694
|
transition: {
|
9698
9695
|
type: 'spring',
|
@@ -10056,7 +10053,7 @@ function ignoreInternalColumns(data) {
|
|
10056
10053
|
// mapping children to react-table columns
|
10057
10054
|
function processChildren(child, columns, defaultSizing, defaultSorting, defaultVisibility, settings, defaultRowGroupColumnId) {
|
10058
10055
|
const columnHelper = reactTable.createColumnHelper();
|
10059
|
-
if (
|
10056
|
+
if (/*#__PURE__*/React__default.isValidElement(child) && child.props.children) {
|
10060
10057
|
const {
|
10061
10058
|
children,
|
10062
10059
|
id,
|
@@ -10069,7 +10066,7 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
|
|
10069
10066
|
// we don't want to let column groups be grouped/aggregrated
|
10070
10067
|
enableGrouping: false
|
10071
10068
|
}));
|
10072
|
-
} else if (
|
10069
|
+
} else if (/*#__PURE__*/React__default.isValidElement(child) && (child.props.accessor || child.props.id)) {
|
10073
10070
|
const {
|
10074
10071
|
id: untypedId,
|
10075
10072
|
accessor: accessorKey = untypedId,
|
@@ -11952,7 +11949,7 @@ const Skeleton = /*#__PURE__*/React__default.forwardRef(function Skeleton(props,
|
|
11952
11949
|
} = props;
|
11953
11950
|
return /*#__PURE__*/React__default.createElement("tr", {
|
11954
11951
|
ref: ref
|
11955
|
-
}, Array(cellsCount).fill(null).map((_, index) => (
|
11952
|
+
}, Array(cellsCount).fill(null).map((_, index) => (/*#__PURE__*/React__default.createElement("td", {
|
11956
11953
|
key: index
|
11957
11954
|
}, /*#__PURE__*/React__default.createElement("span", {
|
11958
11955
|
className: "bg-grey-100 text-grey-700 h-4 w-full text-center text-xs"
|
@@ -12193,17 +12190,17 @@ function Actions$1(props) {
|
|
12193
12190
|
appearance: 'transparent',
|
12194
12191
|
key: index,
|
12195
12192
|
tabIndex: isActiveRow ? 0 : -1,
|
12196
|
-
tooltip: button.props.shortcut ? (
|
12193
|
+
tooltip: button.props.shortcut ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, tooltip, /*#__PURE__*/React__default.createElement(Shortcut, {
|
12197
12194
|
className: "ml-2",
|
12198
12195
|
keys: button.props.shortcut
|
12199
12196
|
}))) : tooltip
|
12200
12197
|
});
|
12201
|
-
}), actionsInMenu.length ? (
|
12198
|
+
}), actionsInMenu.length ? (/*#__PURE__*/React__default.createElement(IconButton, {
|
12202
12199
|
appearance: "transparent",
|
12203
12200
|
"aria-label": texts.table.columns.actions.tooltip,
|
12204
12201
|
icon: "more",
|
12205
12202
|
tabIndex: isActiveRow ? 0 : -1,
|
12206
|
-
menu: menuProps => (
|
12203
|
+
menu: menuProps => (/*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, actionsInMenu.map((action, i) => (/*#__PURE__*/React__default.createElement(Menu$1.Item, Object.assign({
|
12207
12204
|
key: i
|
12208
12205
|
}, action.props, {
|
12209
12206
|
shortcut: action.props.shortcut
|
@@ -12693,7 +12690,7 @@ const MemoedGroupedCell = /*#__PURE__*/React__default.memo(function MemoedGroupe
|
|
12693
12690
|
}
|
12694
12691
|
}), /*#__PURE__*/React__default.createElement("span", {
|
12695
12692
|
className: "grow"
|
12696
|
-
}, children), rowActions !== null && rowActions !== void 0 && rowActions.length && canShowActions ? (
|
12693
|
+
}, children), rowActions !== null && rowActions !== void 0 && rowActions.length && canShowActions ? (/*#__PURE__*/React__default.createElement(Actions$1, {
|
12697
12694
|
actions: rowActions,
|
12698
12695
|
actionsLength: 4,
|
12699
12696
|
data: subRows,
|
@@ -12814,12 +12811,12 @@ const DisplayRow = /*#__PURE__*/React__default.memo(function DisplayRow(props) {
|
|
12814
12811
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("tr", Object.assign({}, attributes, {
|
12815
12812
|
className: className,
|
12816
12813
|
ref: ref
|
12817
|
-
}), children, row.getVisibleCells().map((cell, cellIndex) => (
|
12814
|
+
}), children, row.getVisibleCells().map((cell, cellIndex) => (/*#__PURE__*/React__default.createElement(Cell$4, {
|
12818
12815
|
key: cell.id,
|
12819
12816
|
cell: cell,
|
12820
12817
|
index: cellIndex,
|
12821
12818
|
renderer: CellRenderer
|
12822
|
-
})))), expandedRow ? (
|
12819
|
+
})))), expandedRow ? (/*#__PURE__*/React__default.createElement("tr", {
|
12823
12820
|
"data-row-parent-id": row.id,
|
12824
12821
|
ref: expansionRef
|
12825
12822
|
}, /*#__PURE__*/React__default.createElement("td", {
|
@@ -13016,7 +13013,7 @@ const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
|
|
13016
13013
|
placeholder: texts.searchInput.placeholder
|
13017
13014
|
}, props, {
|
13018
13015
|
onKeyDown: handleKeyDown,
|
13019
|
-
postfix: /*#__PURE__*/React.createElement(React.Fragment, null, props.disabled || props.readOnly || !props.value ? null : (
|
13016
|
+
postfix: /*#__PURE__*/React.createElement(React.Fragment, null, props.disabled || props.readOnly || !props.value ? null : (/*#__PURE__*/React.createElement(IconButton, {
|
13020
13017
|
"aria-hidden": true,
|
13021
13018
|
"aria-label": texts.searchInput.clear,
|
13022
13019
|
className: "group-peer-focus:visible group-peer-hover:visible !text-grey-700 invisible mr-0.5 !h-5 !min-h-[theme(spacing.4)] !w-5 !min-w-[theme(spacing.4)] text-xs hover:visible group-hover:visible",
|
@@ -13127,15 +13124,15 @@ function HeaderMenu(props) {
|
|
13127
13124
|
if (canHide && handleHide) {
|
13128
13125
|
// we do this in the next tick, otherwise the menu closes and react throws a "state update on unmounted component" error
|
13129
13126
|
const handleClick = event => setTimeout(() => handleHide(event), 1);
|
13130
|
-
menuItems.push(
|
13127
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13131
13128
|
icon: "eye-off",
|
13132
13129
|
onClick: handleClick
|
13133
13130
|
}, texts.table.columns.menu.hideColumn));
|
13134
13131
|
}
|
13135
13132
|
if (canSort) {
|
13136
|
-
menuItems.push(
|
13133
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13137
13134
|
icon: "sort-by",
|
13138
|
-
subMenu: () => (
|
13135
|
+
subMenu: () => (/*#__PURE__*/React__default.createElement(Menu$1.SubMenu, null, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup, {
|
13139
13136
|
onChange: handleSortToggle,
|
13140
13137
|
value: sortDirection
|
13141
13138
|
}, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
|
@@ -13148,24 +13145,24 @@ function HeaderMenu(props) {
|
|
13148
13145
|
}, texts.table.columns.menu.sorting));
|
13149
13146
|
}
|
13150
13147
|
if (canGoto) {
|
13151
|
-
menuItems.push(
|
13148
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13152
13149
|
icon: "move",
|
13153
13150
|
onClick: () => setPopover('goto'),
|
13154
13151
|
shortcut: "g"
|
13155
13152
|
}, texts.table.columns.menu.gotoRow, "..."));
|
13156
13153
|
}
|
13157
13154
|
if (canPin && handlePin) {
|
13158
|
-
menuItems.push(
|
13155
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13159
13156
|
icon: "column-freeze",
|
13160
13157
|
onClick: () => handlePin(index)
|
13161
13158
|
}, index === 0 ? texts.table.columns.menu.freezeFirstColumn : texts.table.columns.menu.freezeUptoColumn.replace('[TOTAL]', String(index + 1))));
|
13162
|
-
menuItems.push(
|
13159
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13163
13160
|
icon: "column-unfreeze",
|
13164
13161
|
onClick: () => handlePin(undefined)
|
13165
13162
|
}, texts.table.columns.menu.unfreezeColumns));
|
13166
13163
|
}
|
13167
13164
|
if (canFilter && handleFilter) {
|
13168
|
-
menuItems.push(
|
13165
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13169
13166
|
icon: isFiltered ? 'filter-solid' : 'filter',
|
13170
13167
|
onClick: () => handleFilter()
|
13171
13168
|
}, isFiltered ? texts.table.columns.menu.editFilter : texts.table.columns.menu.filter));
|
@@ -13174,7 +13171,7 @@ function HeaderMenu(props) {
|
|
13174
13171
|
const customItems = customMenu.map(menuItem => menuItem(columnId)).filter(action => !!action);
|
13175
13172
|
if (customItems.length) {
|
13176
13173
|
if (menuItems.length) {
|
13177
|
-
menuItems.push(
|
13174
|
+
menuItems.push(/*#__PURE__*/React__default.createElement(Menu$1.Separator, null));
|
13178
13175
|
}
|
13179
13176
|
menuItems.push(...customItems);
|
13180
13177
|
}
|
@@ -13200,7 +13197,7 @@ function HeaderMenu(props) {
|
|
13200
13197
|
return /*#__PURE__*/React__default.createElement(IconButton, {
|
13201
13198
|
className: className,
|
13202
13199
|
icon: "more",
|
13203
|
-
menu: popoverElement ? undefined : menuProps => (
|
13200
|
+
menu: popoverElement ? undefined : menuProps => (/*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, memoedMenuItems))),
|
13204
13201
|
popover: popoverElement,
|
13205
13202
|
onClickCapture: event => event.preventDefault(),
|
13206
13203
|
onKeyDown: event => {
|
@@ -13408,14 +13405,14 @@ const MemoedHeader = /*#__PURE__*/React__default.memo(function MemoedHeader(prop
|
|
13408
13405
|
"data-cell-pinned": isPinned ? isPinned : undefined,
|
13409
13406
|
style: style,
|
13410
13407
|
ref: setRef
|
13411
|
-
}), isPlaceholder ? null : isInternalColumn(id) ? children : (
|
13408
|
+
}), isPlaceholder ? null : isInternalColumn(id) ? children : (/*#__PURE__*/React__default.createElement(Tooltip, {
|
13412
13409
|
title: String(tooltip !== null && tooltip !== void 0 ? tooltip : children),
|
13413
13410
|
placement: "top"
|
13414
13411
|
}, /*#__PURE__*/React__default.createElement("span", {
|
13415
13412
|
className: "truncate"
|
13416
13413
|
}, children))), sortDirection ? /*#__PURE__*/React__default.createElement(SortIndicator, {
|
13417
13414
|
direction: sortDirection
|
13418
|
-
}) : null, hasMenu ? (
|
13415
|
+
}) : null, hasMenu ? (/*#__PURE__*/React__default.createElement(HeaderMenu, {
|
13419
13416
|
canFilter: canFilter,
|
13420
13417
|
canGoto: canGoto,
|
13421
13418
|
canHide: canHide,
|
@@ -13437,7 +13434,7 @@ const MemoedHeader = /*#__PURE__*/React__default.memo(function MemoedHeader(prop
|
|
13437
13434
|
setRowActiveIndex: setRowActiveIndex,
|
13438
13435
|
sortDirection: sortDirection,
|
13439
13436
|
columnId: id
|
13440
|
-
})) : null, canResize ? (
|
13437
|
+
})) : null, canResize ? (/*#__PURE__*/React__default.createElement(Resizer, {
|
13441
13438
|
headerRef: ref,
|
13442
13439
|
id: id,
|
13443
13440
|
isResizing: isResizing,
|
@@ -13601,7 +13598,7 @@ function Summary(props) {
|
|
13601
13598
|
|
13602
13599
|
function Foot(props) {
|
13603
13600
|
const nonGroupedHeaders = props.table.getFooterGroups()[0].headers.filter(header => !header.column.getIsGrouped());
|
13604
|
-
return /*#__PURE__*/React__default.createElement("tfoot", null, /*#__PURE__*/React__default.createElement("tr", null, nonGroupedHeaders.map((header, index) => (
|
13601
|
+
return /*#__PURE__*/React__default.createElement("tfoot", null, /*#__PURE__*/React__default.createElement("tr", null, nonGroupedHeaders.map((header, index) => (/*#__PURE__*/React__default.createElement(Footer$3, {
|
13605
13602
|
key: header.id,
|
13606
13603
|
header: header,
|
13607
13604
|
index: index
|
@@ -13687,7 +13684,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
|
|
13687
13684
|
texts
|
13688
13685
|
} = useLocalization();
|
13689
13686
|
const isActive = value === null || value === void 0 ? void 0 : value.length;
|
13690
|
-
const hasFind = handleClickFindNext && handleClickFindPrevious && findCurrent !== undefined && findTotal !== undefined;
|
13687
|
+
const hasFind = handleClickFindNext !== undefined && handleClickFindPrevious !== undefined && findCurrent !== undefined && findTotal !== undefined;
|
13691
13688
|
useGlobalKeyDown(shortcut, event => {
|
13692
13689
|
if (document.activeElement !== internalRef.current) {
|
13693
13690
|
var _internalRef$current;
|
@@ -13748,7 +13745,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
|
|
13748
13745
|
icon: "close",
|
13749
13746
|
onMouseDown: handleClear,
|
13750
13747
|
tabIndex: -1,
|
13751
|
-
tooltip: focused ? (
|
13748
|
+
tooltip: focused ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, texts.searchInput.clear, " ", /*#__PURE__*/React__default.createElement(Shortcut, {
|
13752
13749
|
keys: "Escape"
|
13753
13750
|
}))) : texts.searchInput.clear
|
13754
13751
|
});
|
@@ -13758,13 +13755,13 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
|
|
13758
13755
|
className: "text-grey-700 flex h-4 items-center border-r border-black/[0.25] pr-2"
|
13759
13756
|
}, loading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
13760
13757
|
className: "h-4 w-4"
|
13761
|
-
}) : `${findCurrent !== null && findCurrent !== void 0 ? findCurrent : 0}/${findTotal !== null && findTotal !== void 0 ? findTotal : 0}`), findCurrent ? (
|
13758
|
+
}) : `${findCurrent !== null && findCurrent !== void 0 ? findCurrent : 0}/${findTotal !== null && findTotal !== void 0 ? findTotal : 0}`), findCurrent ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
13762
13759
|
"aria-label": texts.searchInput.findPrevious,
|
13763
13760
|
className: "scale-75 !bg-transparent hover:!bg-black/[0.08] [&>svg]:scale-125",
|
13764
13761
|
icon: "chevron-up",
|
13765
13762
|
onMouseDown: handleClickFindPrevious,
|
13766
13763
|
tabIndex: -1,
|
13767
|
-
tooltip: focused ? (
|
13764
|
+
tooltip: focused ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, texts.searchInput.findPrevious, " ", /*#__PURE__*/React__default.createElement(Shortcut, {
|
13768
13765
|
keys: {
|
13769
13766
|
shift: true,
|
13770
13767
|
key: 'Enter'
|
@@ -13776,7 +13773,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
|
|
13776
13773
|
icon: "chevron-down",
|
13777
13774
|
onMouseDown: handleClickFindNext,
|
13778
13775
|
tabIndex: -1,
|
13779
|
-
tooltip: focused ? (
|
13776
|
+
tooltip: focused ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, texts.searchInput.findNext, " ", /*#__PURE__*/React__default.createElement(Shortcut, {
|
13780
13777
|
keys: "Enter"
|
13781
13778
|
}))) : texts.searchInput.findNext
|
13782
13779
|
}))) : null, postfix);
|
@@ -14150,11 +14147,11 @@ function HideOrOrderPopover(props) {
|
|
14150
14147
|
anchor: trigger
|
14151
14148
|
}), /*#__PURE__*/React__default.createElement(Popover.Content, null, /*#__PURE__*/React__default.createElement("div", {
|
14152
14149
|
className: "flex min-w-[100px] max-w-sm flex-col gap-2"
|
14153
|
-
}, table.options.enableHiding ? (
|
14150
|
+
}, table.options.enableHiding ? (/*#__PURE__*/React__default.createElement(Input, {
|
14154
14151
|
onChange: event => setQuery(event.target.value),
|
14155
14152
|
placeholder: texts.table.columnSettings.search,
|
14156
14153
|
value: query
|
14157
|
-
})) : null, tableMeta.columnOrdering.isEnabled && columns.length && !(query !== null && query !== void 0 && query.length) ? (
|
14154
|
+
})) : null, tableMeta.columnOrdering.isEnabled && columns.length && !(query !== null && query !== void 0 && query.length) ? (/*#__PURE__*/React__default.createElement(Container, {
|
14158
14155
|
reorder: handleReorder
|
14159
14156
|
}, /*#__PURE__*/React__default.createElement(List$2, {
|
14160
14157
|
id: "columns",
|
@@ -14170,7 +14167,7 @@ function HideOrOrderPopover(props) {
|
|
14170
14167
|
column: column,
|
14171
14168
|
draggable: (_column$columnDef$met5 = column.columnDef.meta) === null || _column$columnDef$met5 === void 0 ? void 0 : _column$columnDef$met5.enableOrdering
|
14172
14169
|
}));
|
14173
|
-
})))) : (
|
14170
|
+
})))) : (/*#__PURE__*/React__default.createElement("div", {
|
14174
14171
|
className: listClassName
|
14175
14172
|
}, columns.length ? columns.map(column => /*#__PURE__*/React__default.createElement(Column, {
|
14176
14173
|
column: column,
|
@@ -14198,7 +14195,7 @@ function Settings$1(props) {
|
|
14198
14195
|
case 'columnSettings':
|
14199
14196
|
{
|
14200
14197
|
if (canHideOrOrder) {
|
14201
|
-
popoverElement = popoverProps => (
|
14198
|
+
popoverElement = popoverProps => (/*#__PURE__*/React__default.createElement(HideOrOrderPopover, Object.assign({}, popoverProps, {
|
14202
14199
|
open: true,
|
14203
14200
|
onChange: handleClosePopover,
|
14204
14201
|
table: table
|
@@ -14210,22 +14207,22 @@ function Settings$1(props) {
|
|
14210
14207
|
return /*#__PURE__*/React__default.createElement(IconButton, {
|
14211
14208
|
"aria-label": texts.table.otherOptions.tooltip,
|
14212
14209
|
icon: "sliders",
|
14213
|
-
menu: popoverElement ? undefined : menuProps => (
|
14210
|
+
menu: popoverElement ? undefined : menuProps => (/*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, {
|
14214
14211
|
align: "end"
|
14215
|
-
}, canHideOrOrder ? (
|
14212
|
+
}, canHideOrOrder ? (/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
14216
14213
|
icon: "columns",
|
14217
14214
|
onClick: () => setPopover('columnSettings')
|
14218
|
-
}, texts.table.columnSettings.button)) : null, canHideOrOrder && (canChangeRowHeight || canChangeFontSize || customSettings) ? (
|
14215
|
+
}, texts.table.columnSettings.button)) : null, canHideOrOrder && (canChangeRowHeight || canChangeFontSize || customSettings) ? (/*#__PURE__*/React__default.createElement(Menu$1.Separator, null)) : null, canChangeRowHeight ? (/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
14219
14216
|
icon: `height-${tableMeta.rowHeight.height}`,
|
14220
14217
|
subMenu: () => /*#__PURE__*/React__default.createElement(RowHeightMenuItem, {
|
14221
14218
|
tableMeta: tableMeta
|
14222
14219
|
})
|
14223
|
-
}, texts.table.rowHeight.tooltip)) : null, canChangeFontSize ? (
|
14220
|
+
}, texts.table.rowHeight.tooltip)) : null, canChangeFontSize ? (/*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
14224
14221
|
icon: "font-size",
|
14225
14222
|
subMenu: () => /*#__PURE__*/React__default.createElement(FontSizeMenuItem, {
|
14226
14223
|
tableMeta: tableMeta
|
14227
14224
|
})
|
14228
|
-
}, texts.table.fontSize.tooltip)) : null, customSettings ? (
|
14225
|
+
}, texts.table.fontSize.tooltip)) : null, customSettings ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, canChangeRowHeight || canChangeFontSize ? /*#__PURE__*/React__default.createElement(Menu$1.Separator, null) : null, customSettings(getSettings(table)).map((item, index) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
14229
14226
|
key: index
|
14230
14227
|
}, item))))) : null))),
|
14231
14228
|
popover: popoverElement,
|
@@ -14614,12 +14611,12 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
14614
14611
|
}), /*#__PURE__*/React__default.createElement("span", {
|
14615
14612
|
className: "truncate px-2",
|
14616
14613
|
ref: textRef
|
14617
|
-
}, icon ? typeof icon === 'string' ? (
|
14614
|
+
}, icon ? typeof icon === 'string' ? (/*#__PURE__*/React__default.createElement(Icon, {
|
14618
14615
|
name: icon,
|
14619
14616
|
className: "-ml-1 -mt-0.5 mr-1 !h-5 !w-5"
|
14620
|
-
})) : (
|
14617
|
+
})) : (/*#__PURE__*/React__default.cloneElement(icon, {
|
14621
14618
|
className: 'mr-1 -ml-1 -mt-0.5 !h-5 !w-5'
|
14622
|
-
})) : null, children), onDelete ? (
|
14619
|
+
})) : null, children), onDelete ? (/*#__PURE__*/React__default.createElement(Icon, {
|
14623
14620
|
name: "close",
|
14624
14621
|
onClick: onDelete,
|
14625
14622
|
className: "-ml-1.5 !h-6 !w-5 flex-shrink-0 cursor-pointer rounded-r p-0.5 hover:bg-black/5"
|
@@ -14763,9 +14760,9 @@ const EditPopover = props => {
|
|
14763
14760
|
className: "focus:!shadow-none"
|
14764
14761
|
}, ({
|
14765
14762
|
close
|
14766
|
-
}) => (
|
14763
|
+
}) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
14767
14764
|
className: "flex w-32 flex-col space-y-2"
|
14768
|
-
}, onEdit ? (
|
14765
|
+
}, onEdit ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Field, {
|
14769
14766
|
className: cn('!min-h-fit', {
|
14770
14767
|
'!pb-0': !validationError
|
14771
14768
|
}),
|
@@ -14777,7 +14774,7 @@ const EditPopover = props => {
|
|
14777
14774
|
onKeyDown: handleInputKeyDown(close),
|
14778
14775
|
ref: ref,
|
14779
14776
|
value: name
|
14780
|
-
})), initialColor ? (
|
14777
|
+
})), initialColor ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("h5", null, "Colours"), /*#__PURE__*/React__default.createElement(Colours, {
|
14781
14778
|
color: color,
|
14782
14779
|
onChangeColor: setColor,
|
14783
14780
|
onKeyDown: preventKeyDownPropagation
|
@@ -14786,7 +14783,7 @@ const EditPopover = props => {
|
|
14786
14783
|
}, texts.select2.cancel), /*#__PURE__*/React__default.createElement(Button$1, {
|
14787
14784
|
appearance: "primary",
|
14788
14785
|
onClick: handleSave(close)
|
14789
|
-
}, texts.select2.save)))) : null, onEdit && onDelete ? /*#__PURE__*/React__default.createElement("hr", null) : null, onDelete ? (
|
14786
|
+
}, texts.select2.save)))) : null, onEdit && onDelete ? /*#__PURE__*/React__default.createElement("hr", null) : null, onDelete ? (/*#__PURE__*/React__default.createElement("button", {
|
14790
14787
|
className: "hover:text-grey-700 flex items-center justify-start gap-1",
|
14791
14788
|
onClick: handleDelete(close),
|
14792
14789
|
onKeyDown: preventKeyDownPropagation
|
@@ -14812,7 +14809,7 @@ const Colours = props => {
|
|
14812
14809
|
onKeyDown: onKeyDown,
|
14813
14810
|
onValueChange: color => onChangeColor(color),
|
14814
14811
|
value: color
|
14815
|
-
}, AVAILABLE_COLORS.map(availableColor => (
|
14812
|
+
}, AVAILABLE_COLORS.map(availableColor => (/*#__PURE__*/React__default.createElement(RadioGroupPrimitive.Item, {
|
14816
14813
|
"aria-label": color,
|
14817
14814
|
className: cn('flex h-6 w-6 cursor-pointer items-center justify-center rounded', getSubtleColorShadeClasses(availableColor)),
|
14818
14815
|
key: availableColor,
|
@@ -14885,14 +14882,14 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
|
|
14885
14882
|
onClick: handleClick,
|
14886
14883
|
onKeyDown: handleKeyDown,
|
14887
14884
|
ref: ref
|
14888
|
-
}), hasValue ? (
|
14885
|
+
}), hasValue ? (/*#__PURE__*/React__default.createElement(Icon, {
|
14889
14886
|
name: "tick",
|
14890
14887
|
className: "pointer-events-none invisible -mx-0.5 !h-4 !w-4 group-aria-selected:visible"
|
14891
|
-
})) : null, isTag ? (
|
14888
|
+
})) : null, isTag ? (/*#__PURE__*/React__default.createElement(Tag$1, {
|
14892
14889
|
className: "pointer-events-none my-1",
|
14893
14890
|
color: color,
|
14894
14891
|
icon: prefix
|
14895
|
-
}, children)) : (
|
14892
|
+
}, children)) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, prefix ? typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
14896
14893
|
name: prefix
|
14897
14894
|
}) : prefix : null, /*#__PURE__*/React__default.createElement("span", {
|
14898
14895
|
className: "flex w-full justify-between"
|
@@ -14904,7 +14901,7 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
|
|
14904
14901
|
className: "flex flex-col self-center"
|
14905
14902
|
}, postfix ? typeof postfix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
14906
14903
|
name: postfix
|
14907
|
-
}) : postfix : null)))), popover ? (
|
14904
|
+
}) : postfix : null)))), popover ? (/*#__PURE__*/React__default.createElement(IconButton, {
|
14908
14905
|
icon: "ellipsis-vertical",
|
14909
14906
|
appearance: "discrete",
|
14910
14907
|
className: cn('group-aria-current:visible invisible -mr-1 ml-auto !h-5 min-h-[theme(spacing.6)] !w-5 min-w-[theme(spacing.6)] hover:!bg-black/[.08] focus:!shadow-none group-hover:visible', {
|
@@ -15070,7 +15067,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
|
|
15070
15067
|
readOnly: readOnly
|
15071
15068
|
}, currentValue.props.children);
|
15072
15069
|
} else {
|
15073
|
-
output = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, currentValue.props.prefix ? typeof currentValue.props.prefix === 'string' ? (
|
15070
|
+
output = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, currentValue.props.prefix ? typeof currentValue.props.prefix === 'string' ? (/*#__PURE__*/React__default.createElement(Icon, {
|
15074
15071
|
name: currentValue.props.prefix,
|
15075
15072
|
className: "mr-1 !h-5 !w-5"
|
15076
15073
|
})) : currentValue.props.prefix : null, currentValue.props.children);
|
@@ -15116,10 +15113,10 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
|
|
15116
15113
|
onClick: forwardClick
|
15117
15114
|
}, /*#__PURE__*/React__default.createElement("div", {
|
15118
15115
|
className: "flex flex-wrap gap-1"
|
15119
|
-
}, valuesAsChildren.length === 0 ? (
|
15116
|
+
}, valuesAsChildren.length === 0 ? (/*#__PURE__*/React__default.createElement(Placeholder, {
|
15120
15117
|
disabled: disabled,
|
15121
15118
|
readOnly: readOnly
|
15122
|
-
}, placeholder)) : valuesAsChildren.map(child => (
|
15119
|
+
}, placeholder)) : valuesAsChildren.map(child => (/*#__PURE__*/React__default.createElement(Tag$1, {
|
15123
15120
|
key: String(child.props.value),
|
15124
15121
|
className: "truncate",
|
15125
15122
|
color: tags ? child.props.color : undefined,
|
@@ -15170,7 +15167,7 @@ const MultipleValue = ({
|
|
15170
15167
|
}, /*#__PURE__*/React__default.createElement("div", {
|
15171
15168
|
className: "flex flex-1 gap-1 truncate",
|
15172
15169
|
ref: ref => setContentRef(ref)
|
15173
|
-
}, valuesAsChildren.length === 0 ? (
|
15170
|
+
}, valuesAsChildren.length === 0 ? (/*#__PURE__*/React__default.createElement(Placeholder, {
|
15174
15171
|
disabled: disabled,
|
15175
15172
|
readOnly: readOnly
|
15176
15173
|
}, placeholder)) : valuesAsChildren.map((child, index) => {
|
@@ -15192,7 +15189,7 @@ const MultipleValue = ({
|
|
15192
15189
|
}, tag);
|
15193
15190
|
}
|
15194
15191
|
return tag;
|
15195
|
-
})), boundaryIndex !== undefined && boundaryIndex !== null && boundaryIndex < valuesAsChildren.length - 1 ? (
|
15192
|
+
})), boundaryIndex !== undefined && boundaryIndex !== null && boundaryIndex < valuesAsChildren.length - 1 ? (/*#__PURE__*/React__default.createElement(Tooltip, {
|
15196
15193
|
title: valuesAsChildren.slice(boundaryIndex + 1).map(child => child ? String(child.props.children) : '').join(', ')
|
15197
15194
|
}, /*#__PURE__*/React__default.createElement(Badge, {
|
15198
15195
|
className: "flex-shrink-0"
|
@@ -15496,10 +15493,10 @@ const Create = props => {
|
|
15496
15493
|
appearance: createDialog ? 'discrete' : 'default'
|
15497
15494
|
}), /*#__PURE__*/React__default.createElement("span", {
|
15498
15495
|
className: "flex items-center gap-1.5"
|
15499
|
-
}, createDialog ? (
|
15496
|
+
}, createDialog ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, {
|
15500
15497
|
className: "text-xs",
|
15501
15498
|
name: "circle-plus"
|
15502
|
-
}), " ", createText)) : (
|
15499
|
+
}), " ", createText)) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, createText, /*#__PURE__*/React__default.createElement(Tag$1, {
|
15503
15500
|
color: nextColor,
|
15504
15501
|
className: "cursor-pointer"
|
15505
15502
|
}, searchQuery)))));
|
@@ -15735,17 +15732,17 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
|
|
15735
15732
|
style: {
|
15736
15733
|
minWidth: dimensions !== null && dimensions !== void 0 && dimensions.width ? `${dimensions.width}px` : undefined
|
15737
15734
|
}
|
15738
|
-
}, flattenedChildren.length > 0 || isInlineCreation ? (
|
15735
|
+
}, flattenedChildren.length > 0 || isInlineCreation ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Search$2, {
|
15739
15736
|
placeholder: isInlineCreation ? texts.select2.searchOrCreate : texts.select2.search,
|
15740
15737
|
ref: searchRef,
|
15741
15738
|
onTabKeyPress: () => setTabTriggeredClose(true)
|
15742
|
-
}), multiple && selectOptions.length > 1 && (
|
15739
|
+
}), multiple && selectOptions.length > 1 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button$1, {
|
15743
15740
|
className: "!justify-start",
|
15744
15741
|
appearance: "discrete",
|
15745
15742
|
onClick: areAllSelected ? deselectAll : selectAll
|
15746
15743
|
}, selectAllText), /*#__PURE__*/React__default.createElement("div", {
|
15747
15744
|
className: "border-grey-300 mx-3 rounded border-t"
|
15748
|
-
}))))) : null, loading ? (
|
15745
|
+
}))))) : null, loading ? (/*#__PURE__*/React__default.createElement("span", {
|
15749
15746
|
className: cn('text-grey-700 flex items-center italic', fontSize && getFontSize(fontSize))
|
15750
15747
|
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(Spinner, {
|
15751
15748
|
delay: 0,
|
@@ -15754,10 +15751,10 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
|
|
15754
15751
|
'!h-4 !w-4': fontSize === exports.FontSizes.medium,
|
15755
15752
|
'!h-5 !w-5': fontSize === exports.FontSizes.large
|
15756
15753
|
})
|
15757
|
-
})), /*#__PURE__*/React__default.createElement("span", null, texts.listbox.loading))) : flattenedChildren.length <= 0 ? (
|
15754
|
+
})), /*#__PURE__*/React__default.createElement("span", null, texts.listbox.loading))) : flattenedChildren.length <= 0 ? (/*#__PURE__*/React__default.createElement("div", {
|
15758
15755
|
className: "text-grey-700 -mt-0.5 flex h-8 items-center px-2",
|
15759
15756
|
role: "presentation"
|
15760
|
-
}, texts.listbox.empty)) : (
|
15757
|
+
}, texts.listbox.empty)) : (/*#__PURE__*/React__default.createElement(Root$1, {
|
15761
15758
|
className: "flex flex-col gap-0.5",
|
15762
15759
|
customSelector: ":scope > button",
|
15763
15760
|
disabled: disabled,
|
@@ -15768,7 +15765,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
|
|
15768
15765
|
setValue: setValue,
|
15769
15766
|
tabIndex: -1,
|
15770
15767
|
value: value
|
15771
|
-
}, searchQuery === '' ? (
|
15768
|
+
}, searchQuery === '' ? (/*#__PURE__*/React__default.createElement(Collection$1, null, initialChildren)) : (/*#__PURE__*/React__default.createElement(Collection$1, null, filteredChildren)), onCreate ? /*#__PURE__*/React__default.createElement(Create, {
|
15772
15769
|
onCreate: onCreate,
|
15773
15770
|
options: flattenedChildren
|
15774
15771
|
}) : null))))), /*#__PURE__*/React__default.createElement(ControlledHiddenField, {
|
@@ -15812,7 +15809,7 @@ const ControlledHiddenField = props => {
|
|
15812
15809
|
value: bubbleValue
|
15813
15810
|
}, emptyValue !== undefined ? /*#__PURE__*/React__default.createElement("option", {
|
15814
15811
|
value: emptyValue
|
15815
|
-
}) : null, options.map(option => (
|
15812
|
+
}) : null, options.map(option => (/*#__PURE__*/React__default.createElement("option", {
|
15816
15813
|
key: String(option),
|
15817
15814
|
value: String(option)
|
15818
15815
|
}))));
|
@@ -15849,7 +15846,7 @@ function PrintDialog(props) {
|
|
15849
15846
|
"aria-label": texts.table.print.warningDialog.title
|
15850
15847
|
}, ({
|
15851
15848
|
close
|
15852
|
-
}) => (
|
15849
|
+
}) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Dialog.Title, null, texts.table.print.settingsDialog.title), /*#__PURE__*/React__default.createElement("div", {
|
15853
15850
|
className: "mt-4 flex flex-col gap-2"
|
15854
15851
|
}, /*#__PURE__*/React__default.createElement("div", {
|
15855
15852
|
className: "grid grid-cols-2 gap-4"
|
@@ -15873,18 +15870,18 @@ function PrintDialog(props) {
|
|
15873
15870
|
value: "landscape"
|
15874
15871
|
}, texts.table.print.settingsDialog.orientationLandscape), /*#__PURE__*/React__default.createElement(Select2.Option, {
|
15875
15872
|
value: "portrait"
|
15876
|
-
}, texts.table.print.settingsDialog.orientationPortrait)))), table.options.enableRowSelection && table.getIsSomeRowsSelected() ? (
|
15873
|
+
}, texts.table.print.settingsDialog.orientationPortrait)))), table.options.enableRowSelection && table.getIsSomeRowsSelected() ? (/*#__PURE__*/React__default.createElement(Field, null, texts.table.print.settingsDialog.rows, /*#__PURE__*/React__default.createElement(RadioGroup, {
|
15877
15874
|
onChange: setAllRows,
|
15878
15875
|
value: allRows
|
15879
15876
|
}, /*#__PURE__*/React__default.createElement(RadioGroup.Item, {
|
15880
15877
|
value: true
|
15881
15878
|
}, texts.table.print.settingsDialog.rowsAll), /*#__PURE__*/React__default.createElement(RadioGroup.Item, {
|
15882
15879
|
value: false
|
15883
|
-
}, texts.table.print.settingsDialog.rowsSelected)))) : undefined, rowGroupingColumnName ? (
|
15880
|
+
}, texts.table.print.settingsDialog.rowsSelected)))) : undefined, rowGroupingColumnName ? (/*#__PURE__*/React__default.createElement(Field, null, texts.table.print.settingsDialog.layout, /*#__PURE__*/React__default.createElement(Checkbox, {
|
15884
15881
|
label: texts.table.print.settingsDialog.layoutSplitGroups.replace('[COLUMN]', rowGroupingColumnName),
|
15885
15882
|
checked: splitGroups,
|
15886
15883
|
onChange: setSplitGroups
|
15887
|
-
}))) : null, cellCount > SAFE_PRINT_CELL_COUNT ? (
|
15884
|
+
}))) : null, cellCount > SAFE_PRINT_CELL_COUNT ? (/*#__PURE__*/React__default.createElement(Alert, {
|
15888
15885
|
state: "warning"
|
15889
15886
|
}, texts.table.print.warningDialog.description)) : null), /*#__PURE__*/React__default.createElement(Dialog.Footer, null, /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Dialog.Close, null, /*#__PURE__*/React__default.createElement(Button$1, null, texts.table.print.warningDialog.cancelButtonText)), /*#__PURE__*/React__default.createElement(Button$1, {
|
15890
15887
|
appearance: "primary",
|
@@ -16002,7 +15999,7 @@ function Print$1(props) {
|
|
16002
15999
|
}, printStyle.join('\n')), /*#__PURE__*/React__default.createElement(IconButton, {
|
16003
16000
|
icon: "print",
|
16004
16001
|
"aria-label": texts.table.print.tooltip,
|
16005
|
-
dialog: dialogProps => (
|
16002
|
+
dialog: dialogProps => (/*#__PURE__*/React__default.createElement(PrintDialog, Object.assign({}, dialogProps, {
|
16006
16003
|
table: table,
|
16007
16004
|
onAccept: print,
|
16008
16005
|
orientation: orientation,
|
@@ -16059,7 +16056,7 @@ function guessComparatorsBasedOnControl(column) {
|
|
16059
16056
|
readOnly: false,
|
16060
16057
|
ref: undefined
|
16061
16058
|
});
|
16062
|
-
if (
|
16059
|
+
if (/*#__PURE__*/React__default.isValidElement(renderedControl)) {
|
16063
16060
|
const {
|
16064
16061
|
props,
|
16065
16062
|
type
|
@@ -16114,7 +16111,7 @@ const FilterColumn = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
16114
16111
|
return /*#__PURE__*/React__default.createElement(Select2.Option, {
|
16115
16112
|
key: column.id,
|
16116
16113
|
value: column.id,
|
16117
|
-
postfix: !column.getIsVisible() || column.getIsGrouped() ? (
|
16114
|
+
postfix: !column.getIsVisible() || column.getIsGrouped() ? (/*#__PURE__*/React__default.createElement(Tooltip, {
|
16118
16115
|
title: column.getIsGrouped() ? texts.table.filters.hiddenGroupedColumn : texts.table.filters.hiddenColumn
|
16119
16116
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
16120
16117
|
name: "eye-off",
|
@@ -16141,7 +16138,7 @@ function FilterComparator(props) {
|
|
16141
16138
|
disabled: !column,
|
16142
16139
|
onChange: handleChange,
|
16143
16140
|
value: value
|
16144
|
-
}), validComparators.map(comparator => (
|
16141
|
+
}), validComparators.map(comparator => (/*#__PURE__*/React__default.createElement(Select2.Option, {
|
16145
16142
|
key: comparator,
|
16146
16143
|
value: comparator
|
16147
16144
|
}, getComparatorText(comparator, texts, column)))));
|
@@ -16498,7 +16495,7 @@ function ManageFiltersPopover(props) {
|
|
16498
16495
|
className: "text-grey-700 mb-0 mr-auto mt-px inline-flex"
|
16499
16496
|
}, texts.table.filters.total.replace('[CURRENT]', new Intl.NumberFormat(locale).format(table.getFilteredRowModel().rows.length)).replace('[TOTAL]', new Intl.NumberFormat(locale).format(length))))), /*#__PURE__*/React__default.createElement("div", {
|
16500
16497
|
className: "flex flex-col gap-2"
|
16501
|
-
}, filters.map((filter, index) => (
|
16498
|
+
}, filters.map((filter, index) => (/*#__PURE__*/React__default.createElement(Filter$1, {
|
16502
16499
|
key: `filter_${index}`,
|
16503
16500
|
allColumns: allColumns,
|
16504
16501
|
filter: filter,
|
@@ -16547,7 +16544,7 @@ function Filters(props) {
|
|
16547
16544
|
})),
|
16548
16545
|
shortcut,
|
16549
16546
|
ref,
|
16550
|
-
tooltip: (
|
16547
|
+
tooltip: (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, texts.table.filters.tooltip, /*#__PURE__*/React__default.createElement(Shortcut, {
|
16551
16548
|
className: "ml-2",
|
16552
16549
|
keys: shortcut
|
16553
16550
|
})))
|
@@ -16599,7 +16596,7 @@ function TableToolbar(props) {
|
|
16599
16596
|
}) : null, canSettings ? /*#__PURE__*/React__default.createElement(Settings$1, {
|
16600
16597
|
customSettings: table.props.customSettings,
|
16601
16598
|
table: table.instance
|
16602
|
-
}) : null, canSearch ? (
|
16599
|
+
}) : null, canSearch ? (/*#__PURE__*/React__default.createElement(Search$1, {
|
16603
16600
|
scrollToIndex: table.renderer.scrollToIndex,
|
16604
16601
|
table: table.instance,
|
16605
16602
|
tableRef: table.ref
|
@@ -16659,16 +16656,16 @@ function TableGrid(props) {
|
|
16659
16656
|
ref: table.ref,
|
16660
16657
|
style: table.style,
|
16661
16658
|
tabIndex: -1
|
16662
|
-
}), /*#__PURE__*/React__default.createElement("thead", null, table.instance.getHeaderGroups().map(headerGroup => (
|
16659
|
+
}), /*#__PURE__*/React__default.createElement("thead", null, table.instance.getHeaderGroups().map(headerGroup => (/*#__PURE__*/React__default.createElement("tr", {
|
16663
16660
|
key: headerGroup.id
|
16664
|
-
}, headerGroup.headers.map(props => (
|
16661
|
+
}, headerGroup.headers.map(props => (/*#__PURE__*/React__default.createElement(Header$5, {
|
16665
16662
|
key: props.id,
|
16666
16663
|
header: props,
|
16667
16664
|
scrollToIndex: table.renderer.scrollToIndex
|
16668
|
-
}))))))), filterReason ? (
|
16665
|
+
}))))))), filterReason ? (/*#__PURE__*/React__default.createElement(EmptyStateBody, {
|
16669
16666
|
emptyState: props.table.props.emptyState,
|
16670
16667
|
reason: filterReason
|
16671
|
-
})) : (
|
16668
|
+
})) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Body, {
|
16672
16669
|
enableHorizontalArrowKeyNavigation: enableHorizontalArrowKeyNavigation,
|
16673
16670
|
table: table.instance,
|
16674
16671
|
tableElement: table.ref.current,
|
@@ -17068,7 +17065,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17068
17065
|
}
|
17069
17066
|
const sanitizedRow = sanitizeRowProps(row, rowExpansionRenderer);
|
17070
17067
|
const [primaryActions, secondaryActions] = getActions(actions, sanitizedRow);
|
17071
|
-
const output = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, handlers.onRowCreate && (
|
17068
|
+
const output = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, handlers.onRowCreate && (/*#__PURE__*/React__default.createElement(IconButton, {
|
17072
17069
|
appearance: "discrete",
|
17073
17070
|
icon: "circle-plus",
|
17074
17071
|
"aria-label": texts.legacyTable.newSubRow,
|
@@ -17083,7 +17080,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17083
17080
|
}
|
17084
17081
|
handlers.onRowCreate(sanitizedRow, event);
|
17085
17082
|
}
|
17086
|
-
})), (inlineEditing || handlers.onRowEdit) && (
|
17083
|
+
})), (inlineEditing || handlers.onRowEdit) && (/*#__PURE__*/React__default.createElement(IconButton, {
|
17087
17084
|
appearance: "discrete",
|
17088
17085
|
icon: "edit",
|
17089
17086
|
"aria-label": texts.legacyTable.edit,
|
@@ -17099,7 +17096,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17099
17096
|
handlers.onRowEdit(sanitizedRow, event);
|
17100
17097
|
}
|
17101
17098
|
}
|
17102
|
-
})), handlers.onRowCopy && (
|
17099
|
+
})), handlers.onRowCopy && (/*#__PURE__*/React__default.createElement(IconButton, {
|
17103
17100
|
appearance: "discrete",
|
17104
17101
|
icon: "copy",
|
17105
17102
|
"aria-label": texts.legacyTable.copy,
|
@@ -17111,7 +17108,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17111
17108
|
row.setActive();
|
17112
17109
|
handlers.onRowCopy(sanitizedRow, event);
|
17113
17110
|
}
|
17114
|
-
})), handlers.onRowDelete && (
|
17111
|
+
})), handlers.onRowDelete && (/*#__PURE__*/React__default.createElement(IconButton, {
|
17115
17112
|
appearance: "discrete",
|
17116
17113
|
icon: "delete",
|
17117
17114
|
"aria-label": texts.legacyTable.del,
|
@@ -17123,12 +17120,12 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17123
17120
|
row.setActive();
|
17124
17121
|
handlers.onRowDelete(sanitizedRow, event);
|
17125
17122
|
}
|
17126
|
-
})), primaryActions.map((action, index) => (
|
17123
|
+
})), primaryActions.map((action, index) => (/*#__PURE__*/React__default.createElement(IconButton, Object.assign({}, getActionProps(action, sanitizedRow), {
|
17127
17124
|
key: index,
|
17128
17125
|
appearance: "discrete",
|
17129
17126
|
icon: typeof action.icon === 'function' ? action.icon(sanitizedRow) : action.icon,
|
17130
17127
|
tooltip: typeof action.tooltip === 'function' ? action.tooltip(sanitizedRow) : action.tooltip
|
17131
|
-
})))), secondaryActions.length ? (
|
17128
|
+
})))), secondaryActions.length ? (/*#__PURE__*/React__default.createElement(Menu$1, null, /*#__PURE__*/React__default.createElement(Menu$1.Trigger, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
17132
17129
|
appearance: "discrete",
|
17133
17130
|
icon: "ellipsis-vertical",
|
17134
17131
|
"aria-label": texts.legacyTable.actions,
|
@@ -17138,7 +17135,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17138
17135
|
event.stopPropagation();
|
17139
17136
|
row.setActive();
|
17140
17137
|
}
|
17141
|
-
})), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, secondaryActions.map((action, index) => (
|
17138
|
+
})), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, secondaryActions.map((action, index) => (/*#__PURE__*/React__default.createElement(Menu$1.Item, Object.assign({
|
17142
17139
|
key: index,
|
17143
17140
|
icon: typeof action.icon === 'function' ? action.icon(sanitizedRow) : action.icon
|
17144
17141
|
}, getActionProps(action, sanitizedRow)), typeof action.text === 'function' ? action.text(sanitizedRow) : action.text)))))) : null);
|
@@ -17152,7 +17149,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
|
|
17152
17149
|
}, ({
|
17153
17150
|
inView,
|
17154
17151
|
ref
|
17155
|
-
}) => (
|
17152
|
+
}) => (/*#__PURE__*/React__default.createElement("div", {
|
17156
17153
|
className: actionGroupClassName,
|
17157
17154
|
ref: ref
|
17158
17155
|
}, inView ? output : null)));
|
@@ -17789,7 +17786,7 @@ const Column$2 = ({
|
|
17789
17786
|
"data-taco": "table-column"
|
17790
17787
|
}), /*#__PURE__*/React__default.createElement("span", {
|
17791
17788
|
className: "truncate"
|
17792
|
-
}, cell.render('Header')), cell.isSorted ? (
|
17789
|
+
}, cell.render('Header')), cell.isSorted ? (/*#__PURE__*/React__default.createElement(Icon, {
|
17793
17790
|
name: cell.isSortedDesc ? 'chevron-down-solid' : 'chevron-up-solid',
|
17794
17791
|
className: "-mt-0.5"
|
17795
17792
|
})) : null);
|
@@ -17821,11 +17818,11 @@ const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(prop
|
|
17821
17818
|
role: "rowgroup",
|
17822
17819
|
className: "yt-table__head",
|
17823
17820
|
ref: headerRef
|
17824
|
-
}, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup, index) => (
|
17821
|
+
}, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup, index) => (/*#__PURE__*/React__default.createElement("div", {
|
17825
17822
|
key: index,
|
17826
17823
|
role: "row",
|
17827
17824
|
className: "border-grey-300 flex h-auto min-h-[2.5rem] w-full select-none border-b-2 border-t-0 font-bold"
|
17828
|
-
}, headerGroup.headers.map((cell, index) => (
|
17825
|
+
}, headerGroup.headers.map((cell, index) => (/*#__PURE__*/React__default.createElement(Column$2, {
|
17829
17826
|
key: index,
|
17830
17827
|
index: index,
|
17831
17828
|
cell: cell
|
@@ -18027,7 +18024,7 @@ const WindowedTable = /*#__PURE__*/React__default.forwardRef(function WindowedTa
|
|
18027
18024
|
}, ({
|
18028
18025
|
onItemsRendered,
|
18029
18026
|
ref
|
18030
|
-
}) => (
|
18027
|
+
}) => (/*#__PURE__*/React__default.createElement(reactWindow.VariableSizeList, Object.assign({}, listProps, {
|
18031
18028
|
itemCount: length,
|
18032
18029
|
onItemsRendered: onItemsRendered,
|
18033
18030
|
ref: list => {
|
@@ -19255,7 +19252,7 @@ function EditingActionMenu(props) {
|
|
19255
19252
|
className: "group-[[data-row-editing-status]]/row:hidden",
|
19256
19253
|
icon: "more",
|
19257
19254
|
onKeyDown: handleKeyDown,
|
19258
|
-
menu: menuProps => (
|
19255
|
+
menu: menuProps => (/*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, /*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
19259
19256
|
icon: "tick",
|
19260
19257
|
disabled: !hasChanges || hasErrors,
|
19261
19258
|
onClick: handleSave
|
@@ -19323,12 +19320,12 @@ function SaveStatus(props) {
|
|
19323
19320
|
className: "!contents"
|
19324
19321
|
}, /*#__PURE__*/React__default.createElement("span", {
|
19325
19322
|
className: className
|
19326
|
-
}, status === 'pending' ? (
|
19323
|
+
}, status === 'pending' ? (/*#__PURE__*/React__default.createElement(Tooltip, {
|
19327
19324
|
title: texts.table3.editing.saving.progress
|
19328
19325
|
}, /*#__PURE__*/React__default.createElement(Spinner, {
|
19329
19326
|
delay: 0,
|
19330
19327
|
className: "!text-grey-700 mr-1 !h-5 !w-5"
|
19331
|
-
}))) : (
|
19328
|
+
}))) : (/*#__PURE__*/React__default.createElement(Tooltip, {
|
19332
19329
|
title: texts.table3.editing.saving.complete
|
19333
19330
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
19334
19331
|
name: "tick",
|
@@ -19380,7 +19377,7 @@ function useTable3(props, ref) {
|
|
19380
19377
|
const extendedProps = {
|
19381
19378
|
...props,
|
19382
19379
|
enableRowActions: editing.isEditing ? true : props.enableRowActions,
|
19383
|
-
rowActions: editing.isEditing ? [(_, rowId) => (
|
19380
|
+
rowActions: editing.isEditing ? [(_, rowId) => (/*#__PURE__*/React__default.createElement(EditingActionMenu, {
|
19384
19381
|
hasChanges: editing.hasChanges(rowId),
|
19385
19382
|
hasErrors: editing.hasRowErrors(rowId),
|
19386
19383
|
onClear: () => editing.resetChanges(rowId),
|
@@ -19469,7 +19466,7 @@ function Alert$1(props) {
|
|
19469
19466
|
const columnName = (_table$getAllColumns$ = table.getAllColumns().find(column => column.id === firstCellErrorColumnId)) === null || _table$getAllColumns$ === void 0 ? void 0 : (_table$getAllColumns$2 = _table$getAllColumns$.columnDef.meta) === null || _table$getAllColumns$2 === void 0 ? void 0 : _table$getAllColumns$2.header;
|
19470
19467
|
tooltip = `${columnName}: ${error.pendingChange._meta.errors.cells[firstCellErrorColumnId]}`;
|
19471
19468
|
}
|
19472
|
-
links.push(
|
19469
|
+
links.push(/*#__PURE__*/React__default.createElement(Tooltip, {
|
19473
19470
|
key: error.rowId,
|
19474
19471
|
title: tooltip
|
19475
19472
|
}, /*#__PURE__*/React__default.createElement("span", {
|
@@ -19674,10 +19671,10 @@ const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref)
|
|
19674
19671
|
const showCreateRowButton = table3.meta.editing.isEnabled && props.onEditingCreate;
|
19675
19672
|
return /*#__PURE__*/React__default.createElement(Table, null, /*#__PURE__*/React__default.createElement(Table.Toolbar, {
|
19676
19673
|
table: table3
|
19677
|
-
}, table3.meta.editing.isEnabled ? (
|
19674
|
+
}, table3.meta.editing.isEnabled ? (/*#__PURE__*/React__default.createElement(Editing, {
|
19678
19675
|
scrollToIndex: table3.renderer.scrollToIndex,
|
19679
19676
|
table: table3.instance
|
19680
|
-
})) : null), hasValidationErrors ? (
|
19677
|
+
})) : null), hasValidationErrors ? (/*#__PURE__*/React__default.createElement(Alert$1, {
|
19681
19678
|
className: "mb-4",
|
19682
19679
|
scrollToIndex: table3.renderer.scrollToIndex,
|
19683
19680
|
table: table3.instance,
|
@@ -19685,7 +19682,7 @@ const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref)
|
|
19685
19682
|
})) : null, /*#__PURE__*/React__default.createElement(Table.Grid, Object.assign({}, gridAttributes, {
|
19686
19683
|
"data-taco": "table3",
|
19687
19684
|
table: table3
|
19688
|
-
}), showCreateRowButton && (
|
19685
|
+
}), showCreateRowButton && (/*#__PURE__*/React__default.createElement(CreateNewRowButton, {
|
19689
19686
|
table: table3.instance,
|
19690
19687
|
tableMeta: table3.meta,
|
19691
19688
|
onEditingCreate: props.onEditingCreate,
|
@@ -19729,18 +19726,11 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
|
19729
19726
|
}), children);
|
19730
19727
|
});
|
19731
19728
|
const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
19732
|
-
const {
|
19733
|
-
children
|
19734
|
-
} = props;
|
19735
19729
|
const className = cn('border-grey-300 flex flex-row m-0 mb-4 print:hidden', 'aria-orientation-horizontal:border-b', 'aria-orientation-vertical:border-r aria-orientation-vertical:m-0 aria-orientation-vertical:mr-4 aria-orientation-vertical:flex-col', props.className);
|
19736
19730
|
return /*#__PURE__*/React.createElement(TabsPrimitive.List, Object.assign({}, props, {
|
19737
19731
|
className: className,
|
19738
19732
|
ref: ref
|
19739
|
-
})
|
19740
|
-
wrapChild: true,
|
19741
|
-
className: "w-full",
|
19742
|
-
moreButton: text => /*#__PURE__*/React.createElement(Button$1, null, text)
|
19743
|
-
}, children));
|
19733
|
+
}));
|
19744
19734
|
});
|
19745
19735
|
const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
19746
19736
|
const {
|
@@ -19750,7 +19740,7 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
|
19750
19740
|
tooltip,
|
19751
19741
|
...otherProps
|
19752
19742
|
} = props;
|
19753
|
-
const triggerClassName = cn(
|
19743
|
+
const triggerClassName = cn('group relative p-0.5 outline-none disabled:cursor-not-allowed disabled:text-black/50',
|
19754
19744
|
// horizontal
|
19755
19745
|
'[[aria-orientation="horizontal"]_&]:pb-1',
|
19756
19746
|
// horizontal
|
@@ -19834,7 +19824,7 @@ const Tooltip$1 = ({
|
|
19834
19824
|
className: "absolute top-0 right-0 mt-1 mr-1"
|
19835
19825
|
})), step.title && /*#__PURE__*/React.createElement("h5", null, step.title), step.content, /*#__PURE__*/React.createElement(Group, {
|
19836
19826
|
className: "mt-4 justify-end"
|
19837
|
-
}, index > 0 && (
|
19827
|
+
}, index > 0 && (/*#__PURE__*/React.createElement(Button$1, Object.assign({}, backProps, {
|
19838
19828
|
appearance: "discrete"
|
19839
19829
|
}), locale.back)), /*#__PURE__*/React.createElement(Button$1, Object.assign({}, primaryProps, {
|
19840
19830
|
appearance: "primary"
|
@@ -19899,7 +19889,7 @@ const Tour = props => {
|
|
19899
19889
|
floaterProps: {
|
19900
19890
|
disableAnimation: true
|
19901
19891
|
},
|
19902
|
-
tooltipComponent: tooltipProps => (
|
19892
|
+
tooltipComponent: tooltipProps => (/*#__PURE__*/React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
|
19903
19893
|
locale: tour,
|
19904
19894
|
disableTourSkipOnEsc: disableTourSkipOnEsc
|
19905
19895
|
}))),
|
@@ -19956,7 +19946,7 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
19956
19946
|
tabIndex: 0
|
19957
19947
|
}), icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
19958
19948
|
name: icon
|
19959
|
-
}) : null, children, isNew ? (
|
19949
|
+
}) : null, children, isNew ? (/*#__PURE__*/React__default.createElement(Badge, {
|
19960
19950
|
color: "blue",
|
19961
19951
|
small: true,
|
19962
19952
|
className: "absolute right-0 top-0 -mr-2.5 -mt-1.5 !h-3 !px-0.5 text-[0.55rem] font-normal"
|
@@ -20064,7 +20054,7 @@ const PrimaryNavigation = /*#__PURE__*/React__default.forwardRef(function Primar
|
|
20064
20054
|
} = useLocalization();
|
20065
20055
|
const internalRef = useMergedRef(ref);
|
20066
20056
|
const className = cn('flex h-full w-full flex-grow items-center overflow-hidden active:outline-none relative', props.className);
|
20067
|
-
const moreButton = () => (
|
20057
|
+
const moreButton = () => (/*#__PURE__*/React__default.createElement(Button$1, {
|
20068
20058
|
className: cn(getLinkClasses(), '!bg-transparent aria-expanded:!bg-white/[.08]')
|
20069
20059
|
}, texts.header.more));
|
20070
20060
|
return /*#__PURE__*/React__default.createElement("nav", Object.assign({}, props, {
|
@@ -20156,7 +20146,7 @@ const AgreementItem = props => {
|
|
20156
20146
|
title: agreement.name
|
20157
20147
|
}, /*#__PURE__*/React__default.createElement("span", {
|
20158
20148
|
className: "truncate"
|
20159
|
-
}, agreement.name), ' ', agreement.secure ? (
|
20149
|
+
}, agreement.name), ' ', agreement.secure ? (/*#__PURE__*/React__default.createElement(Icon, {
|
20160
20150
|
name: "secure-tick",
|
20161
20151
|
className: "mb-0.5 ml-1 mt-0.5 !h-4 !w-4 flex-shrink-0 flex-grow-0"
|
20162
20152
|
})) : null), /*#__PURE__*/React__default.createElement("span", {
|
@@ -20245,7 +20235,7 @@ function AgreementSelector(props) {
|
|
20245
20235
|
}, /*#__PURE__*/React__default.createElement(AgreementDisplay, {
|
20246
20236
|
currentAgreement: currentAgreement,
|
20247
20237
|
fallbackImageSrc: fallbackImageSrc
|
20248
|
-
}, agreements ? (
|
20238
|
+
}, agreements ? (/*#__PURE__*/React__default.createElement(Icon, {
|
20249
20239
|
className: "ml-auto hidden flex-shrink-0 flex-grow-0 text-white xl:flex",
|
20250
20240
|
name: open ? 'chevron-up' : 'chevron-down'
|
20251
20241
|
})) : null)), /*#__PURE__*/React__default.createElement(PopoverPrimitive.Content, {
|
@@ -20270,7 +20260,7 @@ function AgreementSelector(props) {
|
|
20270
20260
|
}, filterBySearchValue(search)(agreement) ? button : null, agreement.clients.filter(agreement => filterClientAgreement(agreement, search, filterBySearchValue(search))).map(clientAgreement => createAgreementButton(clientAgreement, fallbackImageSrc, handleChangeAgreement, isCurrentAgreement(clientAgreement, currentAgreement))));
|
20271
20261
|
}
|
20272
20262
|
return button;
|
20273
|
-
})), handleAddAgreement ? (
|
20263
|
+
})), handleAddAgreement ? (/*#__PURE__*/React__default.createElement(Button$1, {
|
20274
20264
|
className: "focus-visible:!yt-focus-dark my-1 mx-2 !h-9 shrink-0 !bg-white/[0.08] !text-white hover:!bg-white/[0.16]",
|
20275
20265
|
onClick: handleAddAgreement
|
20276
20266
|
}, texts.header.addAgreement)) : null, /*#__PURE__*/React__default.createElement("hr", {
|
@@ -20417,7 +20407,7 @@ const Sidebar = /*#__PURE__*/React__default.forwardRef(function LayoutSidebar(pr
|
|
20417
20407
|
"aria-hidden": !isVisible,
|
20418
20408
|
className: className,
|
20419
20409
|
ref: ref
|
20420
|
-
}), content), /*#__PURE__*/React__default.createElement(framerMotion.AnimatePresence, null, showBackdrop && (
|
20410
|
+
}), content), /*#__PURE__*/React__default.createElement(framerMotion.AnimatePresence, null, showBackdrop && (/*#__PURE__*/React__default.createElement(SidebarBackdrop, {
|
20421
20411
|
initial: {
|
20422
20412
|
opacity: 0
|
20423
20413
|
},
|
@@ -20557,7 +20547,7 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
20557
20547
|
name: icon
|
20558
20548
|
}) : null, /*#__PURE__*/React__default.createElement("span", {
|
20559
20549
|
className: "flex flex-grow items-center truncate"
|
20560
|
-
}, children), menu ? (
|
20550
|
+
}, children), menu ? (/*#__PURE__*/React__default.createElement(IconButton, {
|
20561
20551
|
appearance: "discrete",
|
20562
20552
|
icon: "more",
|
20563
20553
|
"aria-label": "More",
|
@@ -20570,7 +20560,7 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
20570
20560
|
event.preventDefault();
|
20571
20561
|
event.stopPropagation();
|
20572
20562
|
}
|
20573
|
-
})) : null, total !== undefined ? (
|
20563
|
+
})) : null, total !== undefined ? (/*#__PURE__*/React__default.createElement(Badge, {
|
20574
20564
|
className: cn('flex-shrink-0 flex-grow-0 !font-normal', {
|
20575
20565
|
'group-hover:hidden [[aria-expanded="true"]+&]:hidden ': menu
|
20576
20566
|
}),
|
@@ -20590,7 +20580,7 @@ const Section = /*#__PURE__*/React__default.forwardRef(function Navigation2(prop
|
|
20590
20580
|
"data-taco": "navigation2-section",
|
20591
20581
|
ref: ref,
|
20592
20582
|
role: "none"
|
20593
|
-
}), heading ? (
|
20583
|
+
}), heading ? (/*#__PURE__*/React__default.createElement("span", {
|
20594
20584
|
className: "text-grey-500 mb-px truncate pl-5 text-xs font-bold uppercase leading-8 lg:hidden"
|
20595
20585
|
}, heading)) : null, /*#__PURE__*/React__default.createElement("ul", {
|
20596
20586
|
className: "mb-0 flex flex-col gap-y-px"
|