@geotab/zenith 3.11.0-beta.0 → 3.11.0-beta.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/README.md +3 -26
- package/dist/calendar/calendar.js +4 -7
- package/dist/card/components/title.js +1 -4
- package/dist/card/components/titleLink.js +2 -5
- package/dist/chart/barChart/getDefaultOptions.d.ts +1 -2
- package/dist/chart/barChart/getDefaultOptions.js +2 -5
- package/dist/chart/barChart.js +4 -6
- package/dist/chart/lineChart/getDefaultOptions.d.ts +1 -2
- package/dist/chart/lineChart/getDefaultOptions.js +2 -5
- package/dist/chart/lineChart.js +2 -4
- package/dist/checkboxListWithAction/checkboxListWithAction.js +1 -4
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
- package/dist/commonStyles/pillStyles/pillContent.less +14 -13
- package/dist/commonStyles/pillStyles/pillStyles.less +5 -4
- package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
- package/dist/commonStyles/typography/typography.less +19 -579
- package/dist/controlledPopup/controlledPopup.d.ts +0 -1
- package/dist/controlledPopup/controlledPopup.js +1 -3
- package/dist/dataGrid/cell/cell.d.ts +1 -2
- package/dist/dataGrid/cell/cell.js +2 -2
- package/dist/dataGrid/dataGrid.js +4 -7
- package/dist/dataGrid/listColumn.d.ts +0 -2
- package/dist/dataGrid/row/row.d.ts +1 -2
- package/dist/dataGrid/row/row.js +9 -13
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
- package/dist/dateRangeInner/dateRangeInner.js +2 -5
- package/dist/dateRangeRaw/dateRangeRaw.js +2 -5
- package/dist/dateRangeRaw/utils/parseLabel.js +1 -1
- package/dist/dropdownRaw/dropdownRaw.js +6 -12
- package/dist/fileUpload/components/dropZoneContent.js +100 -100
- package/dist/fileUpload/fileUpload.js +100 -100
- package/dist/filters/components/filtersSearchList.js +1 -4
- package/dist/filtersBar/filtersContainer/filtersContainer.js +61 -62
- package/dist/formStepperButtons/formStepperButtons.js +1 -4
- package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +1 -4
- package/dist/header/headerBack.js +1 -4
- package/dist/icons/iconAlignLeft.js +3 -1
- package/dist/icons/iconAlignmentLeft.js +3 -1
- package/dist/icons/iconAlignmentRight.js +3 -1
- package/dist/icons/iconArrowBottomLeft.js +3 -1
- package/dist/icons/iconArrowBottomRight.js +3 -1
- package/dist/icons/iconArrowLeftPath.js +3 -1
- package/dist/icons/iconArrowRight.js +3 -1
- package/dist/icons/iconArrowRightCircle.js +3 -1
- package/dist/icons/iconArrowRightPath.js +3 -1
- package/dist/icons/iconArrowTopLeft.js +3 -1
- package/dist/icons/iconArrowTopRight.js +3 -1
- package/dist/icons/iconChevronDoubleRight.js +3 -1
- package/dist/icons/iconChevronRight.js +3 -1
- package/dist/icons/iconChevronRightSmall.js +3 -1
- package/dist/icons/iconCornerDownLeft.js +3 -1
- package/dist/icons/iconCornerDownRight.js +3 -1
- package/dist/icons/iconCornerLeftDown.js +3 -1
- package/dist/icons/iconCornerLeftUp.js +3 -1
- package/dist/icons/iconCornerRightDown.js +3 -1
- package/dist/icons/iconCornerRightUp.js +3 -1
- package/dist/icons/iconCornerUpLeft.js +3 -1
- package/dist/icons/iconCornerUpRight.js +3 -1
- package/dist/index.css +2920 -3245
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/lineChartMini/lineChartMini.js +3 -15
- package/dist/list/itemData/itemDataInternal.js +1 -4
- package/dist/list/listItem/listItem.js +1 -4
- package/dist/menu/components/controlledMenuList/controlledMenuList.js +1 -4
- package/dist/menu/components/menuButton.js +1 -4
- package/dist/menu/utils/useMenuItemCore.js +1 -4
- package/dist/nav/navItem/navItem.js +1 -4
- package/dist/pagination/paginationArrow.js +3 -10
- package/dist/radioGroupRaw/radioGroupRaw.js +1 -2
- package/dist/rangeRaw/rangeRaw.js +1 -0
- package/dist/selectList/selectList.helpers.d.ts +1 -1
- package/dist/selectList/selectList.helpers.js +4 -29
- package/dist/selectList/selectList.js +1 -3
- package/dist/selectList/selectList.reducer.js +2 -1
- package/dist/selectList/selectListItem.js +1 -4
- package/dist/sortControl/sortControl.js +4 -59
- package/dist/table/children/useTableChildren.d.ts +1 -1
- package/dist/table/children/useTableChildren.js +3 -3
- package/dist/table/flexible/columnsList.js +2 -4
- package/dist/table/selectable/useSelectableRows.d.ts +0 -8
- package/dist/table/selectable/useSelectableRows.js +6 -14
- package/dist/table/table.js +7 -1
- package/dist/tabs/tabs.js +58 -60
- package/dist/tabs/tabsTestHelper.js +2 -2
- package/dist/timePickerRaw/timePickerRaw.js +1 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +2 -5
- package/dist/utils/localization/translations/ar.json +1 -3
- package/dist/utils/localization/translations/cs.json +5 -9
- package/dist/utils/localization/translations/da-DK.json +5 -9
- package/dist/utils/localization/translations/de.json +5 -9
- package/dist/utils/localization/translations/en.json +1 -5
- package/dist/utils/localization/translations/es.json +5 -9
- package/dist/utils/localization/translations/fi-FI.json +5 -9
- package/dist/utils/localization/translations/fr-FR.json +5 -9
- package/dist/utils/localization/translations/fr.json +5 -9
- package/dist/utils/localization/translations/hu-HU.json +5 -9
- package/dist/utils/localization/translations/id.json +5 -9
- package/dist/utils/localization/translations/it.json +5 -9
- package/dist/utils/localization/translations/ja.json +5 -9
- package/dist/utils/localization/translations/ko-KR.json +5 -9
- package/dist/utils/localization/translations/ms.json +5 -9
- package/dist/utils/localization/translations/nb-NO.json +5 -9
- package/dist/utils/localization/translations/nl.json +5 -9
- package/dist/utils/localization/translations/pl.json +5 -9
- package/dist/utils/localization/translations/pt-BR.json +5 -9
- package/dist/utils/localization/translations/pt-PT.json +5 -9
- package/dist/utils/localization/translations/ro-RO.json +5 -9
- package/dist/utils/localization/translations/sk-SK.json +5 -9
- package/dist/utils/localization/translations/sv.json +5 -9
- package/dist/utils/localization/translations/th.json +5 -9
- package/dist/utils/localization/translations/tr.json +5 -9
- package/dist/utils/localization/translations/zh-Hans.json +5 -9
- package/dist/utils/localization/translations/zh-TW.json +5 -9
- package/dist/utils/positioningUtils/alignments.d.ts +2 -2
- package/dist/utils/positioningUtils/alignments.js +2 -2
- package/dist/utils/positioningUtils/calculatePosition.js +6 -4
- package/esm/calendar/calendar.js +4 -7
- package/esm/card/components/title.js +1 -4
- package/esm/card/components/titleLink.js +2 -5
- package/esm/chart/barChart/getDefaultOptions.d.ts +1 -2
- package/esm/chart/barChart/getDefaultOptions.js +2 -5
- package/esm/chart/barChart.js +4 -6
- package/esm/chart/lineChart/getDefaultOptions.d.ts +1 -2
- package/esm/chart/lineChart/getDefaultOptions.js +2 -5
- package/esm/chart/lineChart.js +2 -4
- package/esm/checkboxListWithAction/checkboxListWithAction.js +1 -4
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
- package/esm/controlledPopup/controlledPopup.d.ts +0 -1
- package/esm/controlledPopup/controlledPopup.js +1 -3
- package/esm/dataGrid/cell/cell.d.ts +1 -2
- package/esm/dataGrid/cell/cell.js +2 -2
- package/esm/dataGrid/dataGrid.js +4 -7
- package/esm/dataGrid/listColumn.d.ts +0 -2
- package/esm/dataGrid/row/row.d.ts +1 -2
- package/esm/dataGrid/row/row.js +9 -13
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
- package/esm/dateRangeInner/dateRangeInner.js +2 -5
- package/esm/dateRangeRaw/dateRangeRaw.js +2 -5
- package/esm/dateRangeRaw/utils/parseLabel.js +1 -1
- package/esm/dropdownRaw/dropdownRaw.js +6 -12
- package/esm/fileUpload/components/dropZoneContent.js +100 -100
- package/esm/fileUpload/fileUpload.js +100 -100
- package/esm/filters/components/filtersSearchList.js +1 -4
- package/esm/filtersBar/filtersContainer/filtersContainer.js +61 -62
- package/esm/formStepperButtons/formStepperButtons.js +1 -4
- package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +1 -4
- package/esm/header/headerBack.js +1 -4
- package/esm/icons/iconAlignLeft.js +3 -1
- package/esm/icons/iconAlignmentLeft.js +3 -1
- package/esm/icons/iconAlignmentRight.js +3 -1
- package/esm/icons/iconArrowBottomLeft.js +3 -1
- package/esm/icons/iconArrowBottomRight.js +3 -1
- package/esm/icons/iconArrowLeftPath.js +3 -1
- package/esm/icons/iconArrowRight.js +3 -1
- package/esm/icons/iconArrowRightCircle.js +3 -1
- package/esm/icons/iconArrowRightPath.js +3 -1
- package/esm/icons/iconArrowTopLeft.js +3 -1
- package/esm/icons/iconArrowTopRight.js +3 -1
- package/esm/icons/iconChevronDoubleRight.js +3 -1
- package/esm/icons/iconChevronRight.js +3 -1
- package/esm/icons/iconChevronRightSmall.js +3 -1
- package/esm/icons/iconCornerDownLeft.js +3 -1
- package/esm/icons/iconCornerDownRight.js +3 -1
- package/esm/icons/iconCornerLeftDown.js +3 -1
- package/esm/icons/iconCornerLeftUp.js +3 -1
- package/esm/icons/iconCornerRightDown.js +3 -1
- package/esm/icons/iconCornerRightUp.js +3 -1
- package/esm/icons/iconCornerUpLeft.js +3 -1
- package/esm/icons/iconCornerUpRight.js +3 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/lineChartMini/lineChartMini.js +3 -15
- package/esm/list/itemData/itemDataInternal.js +1 -4
- package/esm/list/listItem/listItem.js +1 -4
- package/esm/menu/components/controlledMenuList/controlledMenuList.js +1 -4
- package/esm/menu/components/menuButton.js +1 -4
- package/esm/menu/utils/useMenuItemCore.js +1 -4
- package/esm/nav/navItem/navItem.js +1 -4
- package/esm/pagination/paginationArrow.js +3 -10
- package/esm/radioGroupRaw/radioGroupRaw.js +1 -2
- package/esm/rangeRaw/rangeRaw.js +1 -0
- package/esm/selectList/selectList.helpers.d.ts +1 -1
- package/esm/selectList/selectList.helpers.js +4 -29
- package/esm/selectList/selectList.js +1 -3
- package/esm/selectList/selectList.reducer.js +2 -1
- package/esm/selectList/selectListItem.js +1 -4
- package/esm/sortControl/sortControl.js +4 -59
- package/esm/table/children/useTableChildren.d.ts +1 -1
- package/esm/table/children/useTableChildren.js +3 -3
- package/esm/table/flexible/columnsList.js +2 -4
- package/esm/table/selectable/useSelectableRows.d.ts +0 -8
- package/esm/table/selectable/useSelectableRows.js +6 -14
- package/esm/table/table.js +7 -1
- package/esm/tabs/tabs.js +58 -60
- package/esm/tabs/tabsTestHelper.js +2 -2
- package/esm/timePickerRaw/timePickerRaw.js +1 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.js +2 -5
- package/esm/utils/localization/translations/ar.json +1 -3
- package/esm/utils/localization/translations/cs.json +5 -9
- package/esm/utils/localization/translations/da-DK.json +5 -9
- package/esm/utils/localization/translations/de.json +5 -9
- package/esm/utils/localization/translations/en.json +1 -5
- package/esm/utils/localization/translations/es.json +5 -9
- package/esm/utils/localization/translations/fi-FI.json +5 -9
- package/esm/utils/localization/translations/fr-FR.json +5 -9
- package/esm/utils/localization/translations/fr.json +5 -9
- package/esm/utils/localization/translations/hu-HU.json +5 -9
- package/esm/utils/localization/translations/id.json +5 -9
- package/esm/utils/localization/translations/it.json +5 -9
- package/esm/utils/localization/translations/ja.json +5 -9
- package/esm/utils/localization/translations/ko-KR.json +5 -9
- package/esm/utils/localization/translations/ms.json +5 -9
- package/esm/utils/localization/translations/nb-NO.json +5 -9
- package/esm/utils/localization/translations/nl.json +5 -9
- package/esm/utils/localization/translations/pl.json +5 -9
- package/esm/utils/localization/translations/pt-BR.json +5 -9
- package/esm/utils/localization/translations/pt-PT.json +5 -9
- package/esm/utils/localization/translations/ro-RO.json +5 -9
- package/esm/utils/localization/translations/sk-SK.json +5 -9
- package/esm/utils/localization/translations/sv.json +5 -9
- package/esm/utils/localization/translations/th.json +5 -9
- package/esm/utils/localization/translations/tr.json +5 -9
- package/esm/utils/localization/translations/zh-Hans.json +5 -9
- package/esm/utils/localization/translations/zh-TW.json +5 -9
- package/esm/utils/positioningUtils/alignments.d.ts +2 -2
- package/esm/utils/positioningUtils/alignments.js +2 -2
- package/esm/utils/positioningUtils/calculatePosition.js +6 -4
- package/package.json +122 -123
- package/dist/utils/localization/useDirectionalIcon.d.ts +0 -3
- package/dist/utils/localization/useDirectionalIcon.js +0 -9
- package/esm/testHelpers/mockAbsoluteAlignment.d.ts +0 -1
- package/esm/testHelpers/mockAbsoluteAlignment.js +0 -10
- package/esm/utils/localization/useDirectionalIcon.d.ts +0 -3
- package/esm/utils/localization/useDirectionalIcon.js +0 -5
|
@@ -6,12 +6,10 @@ const react_1 = require("react");
|
|
|
6
6
|
const absolute_1 = require("../absolute/absolute");
|
|
7
7
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
8
8
|
const useClientReady_1 = require("../commonHelpers/hooks/useClientReady");
|
|
9
|
-
const useRTLAlignment_1 = require("../utils/localization/useRTLAlignment");
|
|
10
9
|
const ControlledPopup = ({ isOpen, id, paddingX, paddingY, triggerRef, className, children, alignment, inline, onOpenChange, useTrapFocusWithTrigger, shouldHoldScroll, ariaLabel, ariaLabelledby, recalculateOnScroll, closeOnScroll, preventAttributesAutoSet, focusOnOpen, role = "dialog" }) => {
|
|
11
10
|
const autoId = (0, react_1.useId)();
|
|
12
11
|
const popupId = id || autoId;
|
|
13
12
|
const isClientReady = (0, useClientReady_1.useClientReady)();
|
|
14
|
-
const rtlAlignment = (0, useRTLAlignment_1.useRTLAlignment)(alignment !== null && alignment !== void 0 ? alignment : "bottom-left");
|
|
15
13
|
(0, react_1.useEffect)(() => {
|
|
16
14
|
if (!triggerRef.current || !isClientReady) {
|
|
17
15
|
return;
|
|
@@ -26,6 +24,6 @@ const ControlledPopup = ({ isOpen, id, paddingX, paddingY, triggerRef, className
|
|
|
26
24
|
triggerRef.current.setAttribute("aria-expanded", isOpen ? "true" : "false");
|
|
27
25
|
triggerRef.current.setAttribute("aria-controls", popupId);
|
|
28
26
|
}, [triggerRef, isOpen, popupId, preventAttributesAutoSet, isClientReady]);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(absolute_1.Absolute, Object.assign({ triggerRef: triggerRef, alignment:
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(absolute_1.Absolute, Object.assign({ triggerRef: triggerRef, alignment: alignment, id: popupId, isOpen: isOpen, className: (0, classNames_1.classNames)(["zen-popup", className ? className : ""]), paddingX: paddingX, paddingY: paddingY, inline: inline, onOpenChange: onOpenChange, useTrapFocusWithTrigger: useTrapFocusWithTrigger, shouldHoldScroll: shouldHoldScroll }, (role !== false && typeof role === "string" ? { role } : {}), (role !== false && ariaLabel ? { ariaLabel } : {}), (role !== false && ariaLabelledby ? { ariaLabelledby } : {}), { recalculateOnScroll: recalculateOnScroll, closeOnScroll: closeOnScroll, focusOnOpen: focusOnOpen, children: children })));
|
|
30
28
|
};
|
|
31
29
|
exports.ControlledPopup = ControlledPopup;
|
|
@@ -13,9 +13,8 @@ export interface IDataGridCell<T extends IEntityWithId> extends IZenComponentPro
|
|
|
13
13
|
defaultValue: string | undefined;
|
|
14
14
|
entity: T;
|
|
15
15
|
width?: number;
|
|
16
|
-
maxWidth?: number;
|
|
17
16
|
colspan?: number;
|
|
18
17
|
onClick?: () => void;
|
|
19
18
|
isActive?: boolean;
|
|
20
19
|
}
|
|
21
|
-
export declare const DataGridCell: <T extends IEntityWithId>({ index, limited, visibleOnHover, isVisible, width,
|
|
20
|
+
export declare const DataGridCell: <T extends IEntityWithId>({ index, limited, visibleOnHover, isVisible, width, render, renderWrappers, renderPlaceholder, defaultValue, entity, colspan, className, onClick, isActive }: IDataGridCell<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,7 @@ const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
|
7
7
|
const basicColumn_1 = require("../columns/basicColumn");
|
|
8
8
|
const isActiveElement_1 = require("../../list/utils/isActiveElement");
|
|
9
9
|
const zen_1 = require("../../utils/zen");
|
|
10
|
-
const Cell = ({ index, limited, visibleOnHover, isVisible, width,
|
|
10
|
+
const Cell = ({ index, limited, visibleOnHover, isVisible, width, render, renderWrappers, renderPlaceholder, defaultValue, entity, colspan, className, onClick, isActive }) => {
|
|
11
11
|
const [content, setContent] = (0, react_1.useState)("");
|
|
12
12
|
const placeholderRenderer = (0, react_1.useCallback)(() => {
|
|
13
13
|
const renderFn = renderPlaceholder || (() => "...");
|
|
@@ -72,6 +72,6 @@ const Cell = ({ index, limited, visibleOnHover, isVisible, width, maxWidth, rend
|
|
|
72
72
|
visibleOnHover ? "zen-data-grid__row-cell--visible-on-hover" : "",
|
|
73
73
|
onClick ? "zen-data-grid__row-cell--clickable" : "",
|
|
74
74
|
limited ? "zen-ellipsis" : ""
|
|
75
|
-
]), style: { minWidth: width || "auto", maxWidth:
|
|
75
|
+
]), style: { minWidth: width || "auto", maxWidth: width || "auto" }, role: "gridcell", children: content }));
|
|
76
76
|
};
|
|
77
77
|
exports.DataGridCell = (0, react_1.memo)(Cell);
|
|
@@ -57,7 +57,7 @@ const getHeaderPropsFromWrappers = wrappers => wrappers.reduce((result, wrapper)
|
|
|
57
57
|
const props = (_a = wrapper.getHeaderProps) === null || _a === void 0 ? void 0 : _a.call(wrapper);
|
|
58
58
|
return props ? Object.assign(Object.assign({}, result), props) : result;
|
|
59
59
|
}, {});
|
|
60
|
-
const getColumnWidth =
|
|
60
|
+
const getColumnWidth = defaultWidth => Math.floor(Math.max(defaultWidth, exports.MIN_CELL_WIDTH));
|
|
61
61
|
const EmptyList = ({
|
|
62
62
|
children
|
|
63
63
|
}) => (0, jsx_runtime_1.jsx)("div", {
|
|
@@ -154,13 +154,12 @@ const DataGridInner = ({
|
|
|
154
154
|
setVisibleRows(visible);
|
|
155
155
|
}, [entities]);
|
|
156
156
|
const listOfDefaultWidthColumns = (0, react_1.useMemo)(() => columnsList.map(column => column.meta.defaultWidth), [columnsList]);
|
|
157
|
-
const listOfMinWidthColumns = (0, react_1.useMemo)(() => columnsList.map(column => column.meta.minWidth), [columnsList]);
|
|
158
157
|
const {
|
|
159
158
|
result: observerResult
|
|
160
159
|
} = (0, useResizeObserver_1.useResizeObserver)({
|
|
161
160
|
target: gridRef.current
|
|
162
161
|
});
|
|
163
|
-
const allocatedSpace = listOfDefaultWidthColumns.reduce((acc, width
|
|
162
|
+
const allocatedSpace = listOfDefaultWidthColumns.reduce((acc, width) => acc + (width === undefined ? 0 : getColumnWidth(width)), 0);
|
|
164
163
|
const unallocatedSpace = observerResult && observerResult.contentRect.width - allocatedSpace || 0;
|
|
165
164
|
const flexibleColumnsQty = listOfDefaultWidthColumns.filter(width => width === undefined).length;
|
|
166
165
|
const flexibleColumnWidth = getColumnWidth(unallocatedSpace / flexibleColumnsQty);
|
|
@@ -183,19 +182,18 @@ const DataGridInner = ({
|
|
|
183
182
|
}, [updateScroll, scheduleLazyRender]);
|
|
184
183
|
const getCellParams = (0, react_1.useCallback)(columnIndex => {
|
|
185
184
|
const defaultWidth = listOfDefaultWidthColumns[columnIndex];
|
|
186
|
-
const minWidth = listOfMinWidthColumns[columnIndex];
|
|
187
185
|
const limited = !!defaultWidth && defaultWidth > 0;
|
|
188
186
|
const isFirst = columnIndex === 0;
|
|
189
187
|
const isLast = columnIndex === listOfDefaultWidthColumns.length - 1;
|
|
190
188
|
// If the column is the last one or doesn't have a default width, it should be limited to the remaining space
|
|
191
|
-
const width = getColumnWidth(defaultWidth || flexibleColumnWidth
|
|
189
|
+
const width = getColumnWidth(defaultWidth || flexibleColumnWidth);
|
|
192
190
|
return {
|
|
193
191
|
limited,
|
|
194
192
|
isFirst,
|
|
195
193
|
isLast,
|
|
196
194
|
width
|
|
197
195
|
};
|
|
198
|
-
}, [listOfDefaultWidthColumns,
|
|
196
|
+
}, [listOfDefaultWidthColumns, flexibleColumnWidth]);
|
|
199
197
|
const renderHeaderCell = (0, react_1.useCallback)((column, columnIndex) => {
|
|
200
198
|
var _a;
|
|
201
199
|
const {
|
|
@@ -234,7 +232,6 @@ const DataGridInner = ({
|
|
|
234
232
|
expanded: expandedRows && expandedRows.indexOf(entity.id) > -1,
|
|
235
233
|
onExpandedChange: entity.children && entity.children.length > 0 ? isExpanded => onExpandedChange && onExpandedChange(entity.id, isExpanded) : undefined,
|
|
236
234
|
isActive: active === entity.id,
|
|
237
|
-
active: active,
|
|
238
235
|
onClick: onClick,
|
|
239
236
|
isTreeGrid: isTreeGrid,
|
|
240
237
|
ariaPosinset: entityIndex + 1,
|
|
@@ -2,8 +2,6 @@ import { ReactNode } from "react";
|
|
|
2
2
|
import { ColumnSortDirection } from "../table/table";
|
|
3
3
|
export interface IListColumnMeta<T, N = T> {
|
|
4
4
|
readonly defaultWidth?: number;
|
|
5
|
-
readonly minWidth?: number;
|
|
6
|
-
readonly maxWidth?: number;
|
|
7
5
|
readonly defaultValue?: string;
|
|
8
6
|
readonly lazyLoad?: boolean;
|
|
9
7
|
readonly visibleOnHover?: boolean;
|
|
@@ -16,8 +16,7 @@ export interface IDataGridRow<T extends IRowEntity<N>, N extends IEntityWithId>
|
|
|
16
16
|
ariaPosinset: number;
|
|
17
17
|
ariaSetsize: number;
|
|
18
18
|
isActive?: boolean;
|
|
19
|
-
active?: string;
|
|
20
19
|
onClick?: (id: string) => void;
|
|
21
20
|
}
|
|
22
21
|
export declare const MIN_CELL_WIDTH = 100;
|
|
23
|
-
export declare const DataGridRow: <T extends IRowEntity<N>, N extends IEntityWithId = T>({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow, className, expanded, onExpandedChange, isTreeGrid, ariaPosinset, ariaSetsize, onClick, isActive
|
|
22
|
+
export declare const DataGridRow: <T extends IRowEntity<N>, N extends IEntityWithId = T>({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow, className, expanded, onExpandedChange, isTreeGrid, ariaPosinset, ariaSetsize, onClick, isActive }: IDataGridRow<T, N>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/dataGrid/row/row.js
CHANGED
|
@@ -6,12 +6,10 @@ const react_1 = require("react");
|
|
|
6
6
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
7
7
|
const cell_1 = require("../cell/cell");
|
|
8
8
|
exports.MIN_CELL_WIDTH = 100;
|
|
9
|
-
const getColumnWidth = (defaultWidth
|
|
10
|
-
const Row = ({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow, className, expanded, onExpandedChange, isTreeGrid, ariaPosinset, ariaSetsize, onClick, isActive
|
|
9
|
+
const getColumnWidth = (defaultWidth) => Math.floor(Math.max(defaultWidth, exports.MIN_CELL_WIDTH));
|
|
10
|
+
const Row = ({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow, className, expanded, onExpandedChange, isTreeGrid, ariaPosinset, ariaSetsize, onClick, isActive }) => {
|
|
11
11
|
const isVisible = visibleRows.has(entity.id);
|
|
12
12
|
const listOfDefaultWidthColumns = (0, react_1.useMemo)(() => columns.map(column => column.meta.defaultWidth), [columns]);
|
|
13
|
-
const listOfMinWidthColumns = (0, react_1.useMemo)(() => columns.map(column => column.meta.minWidth), [columns]);
|
|
14
|
-
const listOfMaxWidthColumns = (0, react_1.useMemo)(() => columns.map(column => column.meta.maxWidth), [columns]);
|
|
15
13
|
const getColWidth = (0, react_1.useCallback)((columnIndex, colspan) => {
|
|
16
14
|
const colsp = colspan || 1;
|
|
17
15
|
let columnWidth = 0;
|
|
@@ -20,28 +18,26 @@ const Row = ({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow,
|
|
|
20
18
|
continue;
|
|
21
19
|
}
|
|
22
20
|
const defaultWidth = listOfDefaultWidthColumns[columnIndex + i];
|
|
23
|
-
const minWidth = listOfMinWidthColumns[columnIndex + i];
|
|
24
21
|
// If the column is the last one or doesn't have a default width, it should be limited to the remaining space
|
|
25
|
-
const width = getColumnWidth(defaultWidth || flexibleColumnWidth
|
|
22
|
+
const width = getColumnWidth(defaultWidth || flexibleColumnWidth);
|
|
26
23
|
columnWidth += width;
|
|
27
24
|
}
|
|
28
25
|
return columnWidth;
|
|
29
|
-
}, [flexibleColumnWidth, listOfDefaultWidthColumns
|
|
26
|
+
}, [flexibleColumnWidth, listOfDefaultWidthColumns]);
|
|
30
27
|
const getCellParams = (0, react_1.useCallback)((columnIndex, colspan) => {
|
|
31
28
|
const width = getColWidth(columnIndex, colspan);
|
|
32
29
|
const defaultWidth = listOfDefaultWidthColumns[columnIndex];
|
|
33
|
-
const maxWidth = listOfMaxWidthColumns[columnIndex];
|
|
34
30
|
const limited = !!defaultWidth && defaultWidth > 0;
|
|
35
31
|
const isFirst = columnIndex === 0;
|
|
36
32
|
const isLast = columnIndex === listOfDefaultWidthColumns.length - 1;
|
|
37
|
-
return { limited, isFirst, isLast, width
|
|
38
|
-
}, [getColWidth, listOfDefaultWidthColumns
|
|
33
|
+
return { limited, isFirst, isLast, width };
|
|
34
|
+
}, [getColWidth, listOfDefaultWidthColumns]);
|
|
39
35
|
const mainRowId = (0, react_1.useId)();
|
|
40
36
|
const renderCells = (0, react_1.useCallback)((rowEntity, isNested) => columns.reduce((acc, column, index) => {
|
|
41
37
|
const colspanFn = column.colspan;
|
|
42
38
|
let colspan = colspanFn ? (typeof colspanFn === "function" ? colspanFn(rowEntity) : colspanFn) : undefined;
|
|
43
39
|
colspan = colspan && colspan > 1 ? colspan : undefined;
|
|
44
|
-
const { limited, width
|
|
40
|
+
const { limited, width } = getCellParams(index, colspan);
|
|
45
41
|
if (acc.colspan > 0) {
|
|
46
42
|
acc.colspan--;
|
|
47
43
|
return acc;
|
|
@@ -56,9 +52,9 @@ const Row = ({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow,
|
|
|
56
52
|
? column.columnComponent.renderNested.bind(column.columnComponent)
|
|
57
53
|
: column.columnComponent.render.bind(column.columnComponent))
|
|
58
54
|
: column.columnComponent.render.bind(column.columnComponent);
|
|
59
|
-
acc.cells.push((0, jsx_runtime_1.jsx)(cell_1.DataGridCell, { render: e => renderFn(e, isNested), renderPlaceholder: column.meta.renderPlaceholder, renderWrappers: renderWrappers, defaultValue: column.meta.defaultValue, entity: rowEntity, index: index, limited: limited, visibleOnHover: column.meta.visibleOnHover, width: column.meta.visibleOnHover ? 0 : width,
|
|
55
|
+
acc.cells.push((0, jsx_runtime_1.jsx)(cell_1.DataGridCell, { render: e => renderFn(e, isNested), renderPlaceholder: column.meta.renderPlaceholder, renderWrappers: renderWrappers, defaultValue: column.meta.defaultValue, entity: rowEntity, index: index, limited: limited, visibleOnHover: column.meta.visibleOnHover, width: column.meta.visibleOnHover ? 0 : width, isVisible: isVisible, colspan: colspan, onClick: !isNested && onExpandedChange ? () => onExpandedChange(!expanded) : onClick ? () => onClick(rowEntity.id) : undefined, isActive: isActive, className: isNested ? "zen-data-grid__row-cell--nested" : "" }, `${rowEntity.id}_${column.name}`));
|
|
60
56
|
return acc;
|
|
61
|
-
}, { cells: [], colspan: 0 }).cells, [columns, expanded, getCellParams, isVisible, onExpandedChange, isActive,
|
|
57
|
+
}, { cells: [], colspan: 0 }).cells, [columns, expanded, getCellParams, isVisible, onExpandedChange, isActive, onClick]);
|
|
62
58
|
const cells = (0, react_1.useMemo)(() => renderCells(entity, false), [entity, renderCells]);
|
|
63
59
|
const nestedCells = (0, react_1.useMemo)(() => (expanded && entity.children ? entity.children : []).map(nestedEntity => renderCells(nestedEntity, true)), [entity.children, expanded, renderCells]);
|
|
64
60
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("tr", { "data-row-id": id, id: mainRowId, role: "row", "aria-level": isTreeGrid ? 1 : undefined, "aria-posinset": isTreeGrid ? ariaPosinset : undefined, "aria-setsize": isTreeGrid ? ariaSetsize : undefined, "aria-expanded": isTreeGrid ? expanded : undefined, className: (0, classNames_1.classNames)(["zen-data-grid__row", className || "", isLastRow ? "zen-data-grid__row--last" : ""]), children: cells }, mainRowId), nestedCells.map((nestedRow, index) => ((0, jsx_runtime_1.jsx)("tr", { id: `${mainRowId}_child_${index}`, role: "row", "aria-level": 2, "aria-posinset": index + 1, "aria-setsize": nestedCells.length, className: "zen-data-grid__row zen-data-grid__row--nested", children: nestedRow }, `${mainRowId}_child_${index}`)))] }));
|
|
@@ -21,7 +21,6 @@ const SubColumnsList = ({ title, columns, settings, disabledColumns, onChange, s
|
|
|
21
21
|
showCheckbox: true,
|
|
22
22
|
children: c.title
|
|
23
23
|
})), [columns, disabledColumns, sortColumnsInt]);
|
|
24
|
-
const allDisabled = (0, react_1.useMemo)(() => items.every(item => item.disabled), [items]);
|
|
25
24
|
const state = columns.reduce((res, c) => {
|
|
26
25
|
res.set(c.id, settings.get(c.name) !== false ? checkboxState_1.CheckboxState.On : checkboxState_1.CheckboxState.Off);
|
|
27
26
|
return res;
|
|
@@ -34,7 +33,7 @@ const SubColumnsList = ({ title, columns, settings, disabledColumns, onChange, s
|
|
|
34
33
|
});
|
|
35
34
|
onChange && onChange(newSettings);
|
|
36
35
|
}, [columns, settings, onChange]);
|
|
37
|
-
const list = (0, react_1.useMemo)(() => (
|
|
36
|
+
const list = (0, react_1.useMemo)(() => (0, jsx_runtime_1.jsx)(selectList_1.SelectList, { id: id, items: items, value: state, title: title || "", multiselect: true, showCheckbox: true, onChange: onChangeItem }), [id, items, state, title, onChangeItem]);
|
|
38
37
|
if (!title) {
|
|
39
38
|
return list;
|
|
40
39
|
}
|
|
@@ -7,10 +7,6 @@ import { DeviceType } from "../../../../commonHelpers/hooks/deviceType";
|
|
|
7
7
|
type TBulkAction = IBulkActionLink | IBulkActionButton;
|
|
8
8
|
export interface IBulkActionsProps extends IZenComponentProps {
|
|
9
9
|
selected: number;
|
|
10
|
-
/**
|
|
11
|
-
* When `true`, displays "All selected" instead of a count, and enables action buttons
|
|
12
|
-
* even when `selected` is 0 (i.e., cross-page "select all" is active).
|
|
13
|
-
*/
|
|
14
10
|
allSelected?: boolean;
|
|
15
11
|
onClearSelection: () => void;
|
|
16
12
|
onSelectAll?: () => void;
|
|
@@ -41,8 +41,6 @@ const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
|
41
41
|
const userFormatContext_1 = require("../utils/userFormat/userFormatContext");
|
|
42
42
|
const formatDate_1 = require("../utils/formatDate");
|
|
43
43
|
const iconChevronRight_1 = require("../icons/iconChevronRight");
|
|
44
|
-
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
45
|
-
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
46
44
|
const dateRange_1 = require("../dateRange/dateRange");
|
|
47
45
|
const normalizeDates_1 = require("../filtersBar/components/filtersBarPeriodPicker/normalizeDates");
|
|
48
46
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
@@ -70,7 +68,6 @@ const DateRangeInner = ({
|
|
|
70
68
|
translate
|
|
71
69
|
} = (0, useLanguage_1.useLanguage)();
|
|
72
70
|
const isMobileView = !!setShowMobileCalendar;
|
|
73
|
-
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
74
71
|
const {
|
|
75
72
|
dateFormat,
|
|
76
73
|
weekStartsOnSunday,
|
|
@@ -109,7 +106,7 @@ const DateRangeInner = ({
|
|
|
109
106
|
}) : null]
|
|
110
107
|
}), (0, jsx_runtime_1.jsx)("div", {
|
|
111
108
|
className: "zen-date-range-inner__mobile-custom-icon-wrapper",
|
|
112
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
109
|
+
children: (0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, {
|
|
113
110
|
size: "large"
|
|
114
111
|
})
|
|
115
112
|
})]
|
|
@@ -130,7 +127,7 @@ const DateRangeInner = ({
|
|
|
130
127
|
key: option.id
|
|
131
128
|
}));
|
|
132
129
|
return optionsToPass;
|
|
133
|
-
}, [
|
|
130
|
+
}, [calendarLabel, isMobileView, onOptionSelect, options, selection, setShowMobileCalendar]);
|
|
134
131
|
const calendarId = (0, react_1.useMemo)(() => `${id}-calendar`, [id]);
|
|
135
132
|
const optionSelectHandler = (0, react_1.useCallback)(e => {
|
|
136
133
|
let selectedValue = e.target.value;
|
|
@@ -247,7 +247,6 @@ const areMapsEqual_1 = require("./utils/areMapsEqual");
|
|
|
247
247
|
const iconChevronLeftSmall_1 = require("../icons/iconChevronLeftSmall");
|
|
248
248
|
const useDrive_1 = require("../utils/theme/useDrive");
|
|
249
249
|
const iconChevronRightSmall_1 = require("../icons/iconChevronRightSmall");
|
|
250
|
-
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
251
250
|
const reviewTextControl_1 = require("../formGroup/components/reviewTextControl");
|
|
252
251
|
const chip_1 = require("../chip/chip");
|
|
253
252
|
const chipStatusProvider_1 = require("../chip/chipStatusProvider");
|
|
@@ -299,8 +298,6 @@ const DateRangeRaw = props => {
|
|
|
299
298
|
} = (0, useLanguage_1.useLanguage)();
|
|
300
299
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
301
300
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
302
|
-
const PrevStepperIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronLeftSmall_1.IconChevronLeftSmall, iconChevronRightSmall_1.IconChevronRightSmall);
|
|
303
|
-
const NextStepperIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRightSmall_1.IconChevronRightSmall, iconChevronLeftSmall_1.IconChevronLeftSmall);
|
|
304
301
|
const chipStatus = (0, chipStatusProvider_1.useChipStatus)();
|
|
305
302
|
const driveWrapperTriggerClassName = (0, useDriveClassName_1.useDriveClassName)("zen-date-range-wrapper");
|
|
306
303
|
const mobileWrapperTriggerClassName = (0, useMobileClassName_1.useMobileClassName)("zen-date-range-wrapper");
|
|
@@ -707,7 +704,7 @@ const DateRangeRaw = props => {
|
|
|
707
704
|
className: (0, classNames_1.classNames)(["zen-date-range__stepper", "zen-date-range__stepper--left"]),
|
|
708
705
|
title: translate("Previous"),
|
|
709
706
|
"aria-label": translate("Previous date period"),
|
|
710
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
707
|
+
children: (0, jsx_runtime_1.jsx)(iconChevronLeftSmall_1.IconChevronLeftSmall, {
|
|
711
708
|
size: isDrive || isMobile ? "huge" : "large"
|
|
712
709
|
})
|
|
713
710
|
}), popupTriggerComponent, (0, jsx_runtime_1.jsx)("button", {
|
|
@@ -717,7 +714,7 @@ const DateRangeRaw = props => {
|
|
|
717
714
|
className: (0, classNames_1.classNames)(["zen-date-range__stepper", "zen-date-range__stepper--right"]),
|
|
718
715
|
title: translate("Next"),
|
|
719
716
|
"aria-label": translate("Next date period"),
|
|
720
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
717
|
+
children: (0, jsx_runtime_1.jsx)(iconChevronRightSmall_1.IconChevronRightSmall, {
|
|
721
718
|
size: isDrive || isMobile ? "huge" : "large"
|
|
722
719
|
})
|
|
723
720
|
})]
|
|
@@ -10,6 +10,6 @@ const parseLabel = (option, dateFormat, translate, toLocalFn) => {
|
|
|
10
10
|
localeFrom.getFullYear() === localeTo.getFullYear()) {
|
|
11
11
|
return (0, formatDate_1.formatDate)(localeFrom, dateFormat, translate);
|
|
12
12
|
}
|
|
13
|
-
return `${(0, formatDate_1.formatDate)(localeFrom, dateFormat, translate)}
|
|
13
|
+
return `${(0, formatDate_1.formatDate)(localeFrom, dateFormat, translate)} - ${(0, formatDate_1.formatDate)(localeTo, dateFormat, translate)}`;
|
|
14
14
|
};
|
|
15
15
|
exports.parseLabel = parseLabel;
|
|
@@ -551,18 +551,12 @@ const DropdownRaw = props => {
|
|
|
551
551
|
}, [setChecked, setSearch]);
|
|
552
552
|
const debouncedGetData = (0, useDebounce_1.useDebounce)((signal, searchValue, isChecked) => getData ? (isCheckboxMode ? getData(signal, searchValue, isChecked) : getData(signal, searchValue)).then(dta => handleData(dta, searchValue)).catch(handleError) : customGetData(searchValue).then(dta => handleData(dta, searchValue)).catch(handleError), 200);
|
|
553
553
|
const controlData = (0, react_1.useCallback)((signal, searchValue, isChecked) => {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
type: stateActionType_1.StateActionType.ShowWaiting,
|
|
561
|
-
payload: undefined
|
|
562
|
-
});
|
|
563
|
-
debouncedGetData(signal, searchValue, isChecked);
|
|
564
|
-
}
|
|
565
|
-
}, [debouncedGetData, handleData, handleQueryMode, isQueryMode, getData, dataItems]);
|
|
554
|
+
!isQueryMode && dispatchState({
|
|
555
|
+
type: stateActionType_1.StateActionType.ShowWaiting,
|
|
556
|
+
payload: undefined
|
|
557
|
+
});
|
|
558
|
+
isQueryMode ? handleQueryMode(searchValue, isChecked) : debouncedGetData(signal, searchValue, isChecked);
|
|
559
|
+
}, [debouncedGetData, handleQueryMode, isQueryMode]);
|
|
566
560
|
(0, react_1.useEffect)(() => {
|
|
567
561
|
var _a;
|
|
568
562
|
const timeoutId = (_a = zen_1.zen.setTimeout) === null || _a === void 0 ? void 0 : _a.call(zen_1.zen, () => {
|
|
@@ -12,113 +12,113 @@ const button_1 = require("../../button/button");
|
|
|
12
12
|
const buttonType_1 = require("../../button/buttonType");
|
|
13
13
|
const imageCloudUpload_1 = require("../../images/imageCloudUpload");
|
|
14
14
|
const imageTapToUpload_1 = require("../../images/imageTapToUpload");
|
|
15
|
-
injectString("cs", "Tap to add files", "
|
|
16
|
-
injectString("da-DK", "Tap to add files", "
|
|
17
|
-
injectString("de", "Tap to add files", "
|
|
15
|
+
injectString("cs", "Tap to add files", "Tap to add files");
|
|
16
|
+
injectString("da-DK", "Tap to add files", "Tap to add files");
|
|
17
|
+
injectString("de", "Tap to add files", "Tap to add files");
|
|
18
18
|
injectString("en", "Tap to add files", "Tap to add files");
|
|
19
|
-
injectString("es", "Tap to add files", "
|
|
20
|
-
injectString("fi-FI", "Tap to add files", "
|
|
21
|
-
injectString("fr", "Tap to add files", "
|
|
22
|
-
injectString("fr-FR", "Tap to add files", "
|
|
23
|
-
injectString("hu-HU", "Tap to add files", "
|
|
24
|
-
injectString("id", "Tap to add files", "
|
|
25
|
-
injectString("it", "Tap to add files", "
|
|
26
|
-
injectString("ja", "Tap to add files", "
|
|
27
|
-
injectString("ko-KR", "Tap to add files", "
|
|
28
|
-
injectString("ms", "Tap to add files", "
|
|
29
|
-
injectString("nb-NO", "Tap to add files", "
|
|
30
|
-
injectString("nl", "Tap to add files", "
|
|
31
|
-
injectString("pl", "Tap to add files", "
|
|
32
|
-
injectString("pt-BR", "Tap to add files", "
|
|
33
|
-
injectString("pt-PT", "Tap to add files", "
|
|
34
|
-
injectString("sk-SK", "Tap to add files", "
|
|
35
|
-
injectString("sv", "Tap to add files", "
|
|
36
|
-
injectString("th", "Tap to add files", "
|
|
37
|
-
injectString("tr", "Tap to add files", "
|
|
38
|
-
injectString("zh-Hans", "Tap to add files", "
|
|
39
|
-
injectString("zh-TW", "Tap to add files", "
|
|
40
|
-
injectString("ro-RO", "Tap to add files", "
|
|
19
|
+
injectString("es", "Tap to add files", "Tap to add files");
|
|
20
|
+
injectString("fi-FI", "Tap to add files", "Tap to add files");
|
|
21
|
+
injectString("fr", "Tap to add files", "Tap to add files");
|
|
22
|
+
injectString("fr-FR", "Tap to add files", "Tap to add files");
|
|
23
|
+
injectString("hu-HU", "Tap to add files", "Tap to add files");
|
|
24
|
+
injectString("id", "Tap to add files", "Tap to add files");
|
|
25
|
+
injectString("it", "Tap to add files", "Tap to add files");
|
|
26
|
+
injectString("ja", "Tap to add files", "Tap to add files");
|
|
27
|
+
injectString("ko-KR", "Tap to add files", "Tap to add files");
|
|
28
|
+
injectString("ms", "Tap to add files", "Tap to add files");
|
|
29
|
+
injectString("nb-NO", "Tap to add files", "Tap to add files");
|
|
30
|
+
injectString("nl", "Tap to add files", "Tap to add files");
|
|
31
|
+
injectString("pl", "Tap to add files", "Tap to add files");
|
|
32
|
+
injectString("pt-BR", "Tap to add files", "Tap to add files");
|
|
33
|
+
injectString("pt-PT", "Tap to add files", "Tap to add files");
|
|
34
|
+
injectString("sk-SK", "Tap to add files", "Tap to add files");
|
|
35
|
+
injectString("sv", "Tap to add files", "Tap to add files");
|
|
36
|
+
injectString("th", "Tap to add files", "Tap to add files");
|
|
37
|
+
injectString("tr", "Tap to add files", "Tap to add files");
|
|
38
|
+
injectString("zh-Hans", "Tap to add files", "Tap to add files");
|
|
39
|
+
injectString("zh-TW", "Tap to add files", "Tap to add files");
|
|
40
|
+
injectString("ro-RO", "Tap to add files", "Tap to add files");
|
|
41
41
|
injectString("ar-SA", "Tap to add files", "\u0627\u0646\u0642\u0631 \u0644\u0625\u0636\u0627\u0641\u0629 \u0645\u0644\u0641\u0627\u062A");
|
|
42
|
-
injectString("cs", "Drag & drop files or", "
|
|
43
|
-
injectString("da-DK", "Drag & drop files or", "
|
|
44
|
-
injectString("de", "Drag & drop files or", "
|
|
42
|
+
injectString("cs", "Drag & drop files or", "Drag & drop files or");
|
|
43
|
+
injectString("da-DK", "Drag & drop files or", "Drag & drop files or");
|
|
44
|
+
injectString("de", "Drag & drop files or", "Drag & drop files or");
|
|
45
45
|
injectString("en", "Drag & drop files or", "Drag & drop files or");
|
|
46
|
-
injectString("es", "Drag & drop files or", "
|
|
47
|
-
injectString("fi-FI", "Drag & drop files or", "
|
|
48
|
-
injectString("fr", "Drag & drop files or", "
|
|
49
|
-
injectString("fr-FR", "Drag & drop files or", "
|
|
50
|
-
injectString("hu-HU", "Drag & drop files or", "
|
|
51
|
-
injectString("id", "Drag & drop files or", "
|
|
52
|
-
injectString("it", "Drag & drop files or", "
|
|
53
|
-
injectString("ja", "Drag & drop files or", "
|
|
54
|
-
injectString("ko-KR", "Drag & drop files or", "
|
|
55
|
-
injectString("ms", "Drag & drop files or", "
|
|
56
|
-
injectString("nb-NO", "Drag & drop files or", "
|
|
57
|
-
injectString("nl", "Drag & drop files or", "
|
|
58
|
-
injectString("pl", "Drag & drop files or", "
|
|
59
|
-
injectString("pt-BR", "Drag & drop files or", "
|
|
60
|
-
injectString("pt-PT", "Drag & drop files or", "
|
|
61
|
-
injectString("sk-SK", "Drag & drop files or", "
|
|
62
|
-
injectString("sv", "Drag & drop files or", "
|
|
63
|
-
injectString("th", "Drag & drop files or", "
|
|
64
|
-
injectString("tr", "Drag & drop files or", "
|
|
65
|
-
injectString("zh-Hans", "Drag & drop files or", "
|
|
66
|
-
injectString("zh-TW", "Drag & drop files or", "
|
|
67
|
-
injectString("ro-RO", "Drag & drop files or", "
|
|
46
|
+
injectString("es", "Drag & drop files or", "Drag & drop files or");
|
|
47
|
+
injectString("fi-FI", "Drag & drop files or", "Drag & drop files or");
|
|
48
|
+
injectString("fr", "Drag & drop files or", "Drag & drop files or");
|
|
49
|
+
injectString("fr-FR", "Drag & drop files or", "Drag & drop files or");
|
|
50
|
+
injectString("hu-HU", "Drag & drop files or", "Drag & drop files or");
|
|
51
|
+
injectString("id", "Drag & drop files or", "Drag & drop files or");
|
|
52
|
+
injectString("it", "Drag & drop files or", "Drag & drop files or");
|
|
53
|
+
injectString("ja", "Drag & drop files or", "Drag & drop files or");
|
|
54
|
+
injectString("ko-KR", "Drag & drop files or", "Drag & drop files or");
|
|
55
|
+
injectString("ms", "Drag & drop files or", "Drag & drop files or");
|
|
56
|
+
injectString("nb-NO", "Drag & drop files or", "Drag & drop files or");
|
|
57
|
+
injectString("nl", "Drag & drop files or", "Drag & drop files or");
|
|
58
|
+
injectString("pl", "Drag & drop files or", "Drag & drop files or");
|
|
59
|
+
injectString("pt-BR", "Drag & drop files or", "Drag & drop files or");
|
|
60
|
+
injectString("pt-PT", "Drag & drop files or", "Drag & drop files or");
|
|
61
|
+
injectString("sk-SK", "Drag & drop files or", "Drag & drop files or");
|
|
62
|
+
injectString("sv", "Drag & drop files or", "Drag & drop files or");
|
|
63
|
+
injectString("th", "Drag & drop files or", "Drag & drop files or");
|
|
64
|
+
injectString("tr", "Drag & drop files or", "Drag & drop files or");
|
|
65
|
+
injectString("zh-Hans", "Drag & drop files or", "Drag & drop files or");
|
|
66
|
+
injectString("zh-TW", "Drag & drop files or", "Drag & drop files or");
|
|
67
|
+
injectString("ro-RO", "Drag & drop files or", "Drag & drop files or");
|
|
68
68
|
injectString("ar-SA", "Drag & drop files or", "\u0627\u0633\u062D\u0628 \u0648\u0623\u0641\u0644\u062A \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0623\u0648");
|
|
69
|
-
injectString("cs", "Browse", "
|
|
70
|
-
injectString("da-DK", "Browse", "
|
|
71
|
-
injectString("de", "Browse", "
|
|
69
|
+
injectString("cs", "Browse", "Browse");
|
|
70
|
+
injectString("da-DK", "Browse", "Browse");
|
|
71
|
+
injectString("de", "Browse", "Browse");
|
|
72
72
|
injectString("en", "Browse", "Browse");
|
|
73
|
-
injectString("es", "Browse", "
|
|
74
|
-
injectString("fi-FI", "Browse", "
|
|
75
|
-
injectString("fr", "Browse", "
|
|
76
|
-
injectString("fr-FR", "Browse", "
|
|
77
|
-
injectString("hu-HU", "Browse", "
|
|
78
|
-
injectString("id", "Browse", "
|
|
79
|
-
injectString("it", "Browse", "
|
|
80
|
-
injectString("ja", "Browse", "
|
|
81
|
-
injectString("ko-KR", "Browse", "
|
|
82
|
-
injectString("ms", "Browse", "
|
|
83
|
-
injectString("nb-NO", "Browse", "
|
|
84
|
-
injectString("nl", "Browse", "
|
|
85
|
-
injectString("pl", "Browse", "
|
|
86
|
-
injectString("pt-BR", "Browse", "
|
|
87
|
-
injectString("pt-PT", "Browse", "
|
|
88
|
-
injectString("sk-SK", "Browse", "
|
|
89
|
-
injectString("sv", "Browse", "
|
|
90
|
-
injectString("th", "Browse", "
|
|
91
|
-
injectString("tr", "Browse", "
|
|
92
|
-
injectString("zh-Hans", "Browse", "
|
|
93
|
-
injectString("zh-TW", "Browse", "
|
|
94
|
-
injectString("ro-RO", "Browse", "
|
|
73
|
+
injectString("es", "Browse", "Browse");
|
|
74
|
+
injectString("fi-FI", "Browse", "Browse");
|
|
75
|
+
injectString("fr", "Browse", "Browse");
|
|
76
|
+
injectString("fr-FR", "Browse", "Browse");
|
|
77
|
+
injectString("hu-HU", "Browse", "Browse");
|
|
78
|
+
injectString("id", "Browse", "Browse");
|
|
79
|
+
injectString("it", "Browse", "Browse");
|
|
80
|
+
injectString("ja", "Browse", "Browse");
|
|
81
|
+
injectString("ko-KR", "Browse", "Browse");
|
|
82
|
+
injectString("ms", "Browse", "Browse");
|
|
83
|
+
injectString("nb-NO", "Browse", "Browse");
|
|
84
|
+
injectString("nl", "Browse", "Browse");
|
|
85
|
+
injectString("pl", "Browse", "Browse");
|
|
86
|
+
injectString("pt-BR", "Browse", "Browse");
|
|
87
|
+
injectString("pt-PT", "Browse", "Browse");
|
|
88
|
+
injectString("sk-SK", "Browse", "Browse");
|
|
89
|
+
injectString("sv", "Browse", "Browse");
|
|
90
|
+
injectString("th", "Browse", "Browse");
|
|
91
|
+
injectString("tr", "Browse", "Browse");
|
|
92
|
+
injectString("zh-Hans", "Browse", "Browse");
|
|
93
|
+
injectString("zh-TW", "Browse", "Browse");
|
|
94
|
+
injectString("ro-RO", "Browse", "Browse");
|
|
95
95
|
injectString("ar-SA", "Browse", "\u062A\u0635\u0641\u062D");
|
|
96
|
-
injectString("cs", "Supported Formats:", "
|
|
97
|
-
injectString("da-DK", "Supported Formats:", "
|
|
98
|
-
injectString("de", "Supported Formats:", "
|
|
96
|
+
injectString("cs", "Supported Formats:", "Supported Formats:");
|
|
97
|
+
injectString("da-DK", "Supported Formats:", "Supported Formats:");
|
|
98
|
+
injectString("de", "Supported Formats:", "Supported Formats:");
|
|
99
99
|
injectString("en", "Supported Formats:", "Supported Formats:");
|
|
100
|
-
injectString("es", "Supported Formats:", "
|
|
101
|
-
injectString("fi-FI", "Supported Formats:", "
|
|
102
|
-
injectString("fr", "Supported Formats:", "Formats
|
|
103
|
-
injectString("fr-FR", "Supported Formats:", "Formats
|
|
104
|
-
injectString("hu-HU", "Supported Formats:", "
|
|
105
|
-
injectString("id", "Supported Formats:", "
|
|
106
|
-
injectString("it", "Supported Formats:", "
|
|
107
|
-
injectString("ja", "Supported Formats:", "
|
|
108
|
-
injectString("ko-KR", "Supported Formats:", "
|
|
109
|
-
injectString("ms", "Supported Formats:", "
|
|
110
|
-
injectString("nb-NO", "Supported Formats:", "
|
|
111
|
-
injectString("nl", "Supported Formats:", "
|
|
112
|
-
injectString("pl", "Supported Formats:", "
|
|
113
|
-
injectString("pt-BR", "Supported Formats:", "
|
|
114
|
-
injectString("pt-PT", "Supported Formats:", "
|
|
115
|
-
injectString("sk-SK", "Supported Formats:", "
|
|
116
|
-
injectString("sv", "Supported Formats:", "
|
|
117
|
-
injectString("th", "Supported Formats:", "
|
|
118
|
-
injectString("tr", "Supported Formats:", "
|
|
119
|
-
injectString("zh-Hans", "Supported Formats:", "
|
|
120
|
-
injectString("zh-TW", "Supported Formats:", "
|
|
121
|
-
injectString("ro-RO", "Supported Formats:", "
|
|
100
|
+
injectString("es", "Supported Formats:", "Supported Formats:");
|
|
101
|
+
injectString("fi-FI", "Supported Formats:", "Supported Formats:");
|
|
102
|
+
injectString("fr", "Supported Formats:", "Supported Formats:");
|
|
103
|
+
injectString("fr-FR", "Supported Formats:", "Supported Formats:");
|
|
104
|
+
injectString("hu-HU", "Supported Formats:", "Supported Formats:");
|
|
105
|
+
injectString("id", "Supported Formats:", "Supported Formats:");
|
|
106
|
+
injectString("it", "Supported Formats:", "Supported Formats:");
|
|
107
|
+
injectString("ja", "Supported Formats:", "Supported Formats:");
|
|
108
|
+
injectString("ko-KR", "Supported Formats:", "Supported Formats:");
|
|
109
|
+
injectString("ms", "Supported Formats:", "Supported Formats:");
|
|
110
|
+
injectString("nb-NO", "Supported Formats:", "Supported Formats:");
|
|
111
|
+
injectString("nl", "Supported Formats:", "Supported Formats:");
|
|
112
|
+
injectString("pl", "Supported Formats:", "Supported Formats:");
|
|
113
|
+
injectString("pt-BR", "Supported Formats:", "Supported Formats:");
|
|
114
|
+
injectString("pt-PT", "Supported Formats:", "Supported Formats:");
|
|
115
|
+
injectString("sk-SK", "Supported Formats:", "Supported Formats:");
|
|
116
|
+
injectString("sv", "Supported Formats:", "Supported Formats:");
|
|
117
|
+
injectString("th", "Supported Formats:", "Supported Formats:");
|
|
118
|
+
injectString("tr", "Supported Formats:", "Supported Formats:");
|
|
119
|
+
injectString("zh-Hans", "Supported Formats:", "Supported Formats:");
|
|
120
|
+
injectString("zh-TW", "Supported Formats:", "Supported Formats:");
|
|
121
|
+
injectString("ro-RO", "Supported Formats:", "Supported Formats:");
|
|
122
122
|
injectString("ar-SA", "Supported Formats:", "\u0627\u0644\u0635\u064A\u063A \u0627\u0644\u0645\u062F\u0639\u0648\u0645\u0629:");
|
|
123
123
|
const DropZoneContent = ({
|
|
124
124
|
size,
|