@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.
Files changed (239) hide show
  1. package/README.md +3 -26
  2. package/dist/calendar/calendar.js +4 -7
  3. package/dist/card/components/title.js +1 -4
  4. package/dist/card/components/titleLink.js +2 -5
  5. package/dist/chart/barChart/getDefaultOptions.d.ts +1 -2
  6. package/dist/chart/barChart/getDefaultOptions.js +2 -5
  7. package/dist/chart/barChart.js +4 -6
  8. package/dist/chart/lineChart/getDefaultOptions.d.ts +1 -2
  9. package/dist/chart/lineChart/getDefaultOptions.js +2 -5
  10. package/dist/chart/lineChart.js +2 -4
  11. package/dist/checkboxListWithAction/checkboxListWithAction.js +1 -4
  12. package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
  13. package/dist/commonStyles/pillStyles/pillContent.less +14 -13
  14. package/dist/commonStyles/pillStyles/pillStyles.less +5 -4
  15. package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
  16. package/dist/commonStyles/typography/typography.less +19 -579
  17. package/dist/controlledPopup/controlledPopup.d.ts +0 -1
  18. package/dist/controlledPopup/controlledPopup.js +1 -3
  19. package/dist/dataGrid/cell/cell.d.ts +1 -2
  20. package/dist/dataGrid/cell/cell.js +2 -2
  21. package/dist/dataGrid/dataGrid.js +4 -7
  22. package/dist/dataGrid/listColumn.d.ts +0 -2
  23. package/dist/dataGrid/row/row.d.ts +1 -2
  24. package/dist/dataGrid/row/row.js +9 -13
  25. package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
  26. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
  27. package/dist/dateRangeInner/dateRangeInner.js +2 -5
  28. package/dist/dateRangeRaw/dateRangeRaw.js +2 -5
  29. package/dist/dateRangeRaw/utils/parseLabel.js +1 -1
  30. package/dist/dropdownRaw/dropdownRaw.js +6 -12
  31. package/dist/fileUpload/components/dropZoneContent.js +100 -100
  32. package/dist/fileUpload/fileUpload.js +100 -100
  33. package/dist/filters/components/filtersSearchList.js +1 -4
  34. package/dist/filtersBar/filtersContainer/filtersContainer.js +61 -62
  35. package/dist/formStepperButtons/formStepperButtons.js +1 -4
  36. package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
  37. package/dist/groupsFilterRaw/groupsFilterInitialState.js +1 -4
  38. package/dist/header/headerBack.js +1 -4
  39. package/dist/icons/iconAlignLeft.js +3 -1
  40. package/dist/icons/iconAlignmentLeft.js +3 -1
  41. package/dist/icons/iconAlignmentRight.js +3 -1
  42. package/dist/icons/iconArrowBottomLeft.js +3 -1
  43. package/dist/icons/iconArrowBottomRight.js +3 -1
  44. package/dist/icons/iconArrowLeftPath.js +3 -1
  45. package/dist/icons/iconArrowRight.js +3 -1
  46. package/dist/icons/iconArrowRightCircle.js +3 -1
  47. package/dist/icons/iconArrowRightPath.js +3 -1
  48. package/dist/icons/iconArrowTopLeft.js +3 -1
  49. package/dist/icons/iconArrowTopRight.js +3 -1
  50. package/dist/icons/iconChevronDoubleRight.js +3 -1
  51. package/dist/icons/iconChevronRight.js +3 -1
  52. package/dist/icons/iconChevronRightSmall.js +3 -1
  53. package/dist/icons/iconCornerDownLeft.js +3 -1
  54. package/dist/icons/iconCornerDownRight.js +3 -1
  55. package/dist/icons/iconCornerLeftDown.js +3 -1
  56. package/dist/icons/iconCornerLeftUp.js +3 -1
  57. package/dist/icons/iconCornerRightDown.js +3 -1
  58. package/dist/icons/iconCornerRightUp.js +3 -1
  59. package/dist/icons/iconCornerUpLeft.js +3 -1
  60. package/dist/icons/iconCornerUpRight.js +3 -1
  61. package/dist/index.css +2920 -3245
  62. package/dist/index.d.ts +0 -1
  63. package/dist/index.js +1 -3
  64. package/dist/lineChartMini/lineChartMini.js +3 -15
  65. package/dist/list/itemData/itemDataInternal.js +1 -4
  66. package/dist/list/listItem/listItem.js +1 -4
  67. package/dist/menu/components/controlledMenuList/controlledMenuList.js +1 -4
  68. package/dist/menu/components/menuButton.js +1 -4
  69. package/dist/menu/utils/useMenuItemCore.js +1 -4
  70. package/dist/nav/navItem/navItem.js +1 -4
  71. package/dist/pagination/paginationArrow.js +3 -10
  72. package/dist/radioGroupRaw/radioGroupRaw.js +1 -2
  73. package/dist/rangeRaw/rangeRaw.js +1 -0
  74. package/dist/selectList/selectList.helpers.d.ts +1 -1
  75. package/dist/selectList/selectList.helpers.js +4 -29
  76. package/dist/selectList/selectList.js +1 -3
  77. package/dist/selectList/selectList.reducer.js +2 -1
  78. package/dist/selectList/selectListItem.js +1 -4
  79. package/dist/sortControl/sortControl.js +4 -59
  80. package/dist/table/children/useTableChildren.d.ts +1 -1
  81. package/dist/table/children/useTableChildren.js +3 -3
  82. package/dist/table/flexible/columnsList.js +2 -4
  83. package/dist/table/selectable/useSelectableRows.d.ts +0 -8
  84. package/dist/table/selectable/useSelectableRows.js +6 -14
  85. package/dist/table/table.js +7 -1
  86. package/dist/tabs/tabs.js +58 -60
  87. package/dist/tabs/tabsTestHelper.js +2 -2
  88. package/dist/timePickerRaw/timePickerRaw.js +1 -1
  89. package/dist/toggleButtonRaw/toggleButtonRaw.js +2 -5
  90. package/dist/utils/localization/translations/ar.json +1 -3
  91. package/dist/utils/localization/translations/cs.json +5 -9
  92. package/dist/utils/localization/translations/da-DK.json +5 -9
  93. package/dist/utils/localization/translations/de.json +5 -9
  94. package/dist/utils/localization/translations/en.json +1 -5
  95. package/dist/utils/localization/translations/es.json +5 -9
  96. package/dist/utils/localization/translations/fi-FI.json +5 -9
  97. package/dist/utils/localization/translations/fr-FR.json +5 -9
  98. package/dist/utils/localization/translations/fr.json +5 -9
  99. package/dist/utils/localization/translations/hu-HU.json +5 -9
  100. package/dist/utils/localization/translations/id.json +5 -9
  101. package/dist/utils/localization/translations/it.json +5 -9
  102. package/dist/utils/localization/translations/ja.json +5 -9
  103. package/dist/utils/localization/translations/ko-KR.json +5 -9
  104. package/dist/utils/localization/translations/ms.json +5 -9
  105. package/dist/utils/localization/translations/nb-NO.json +5 -9
  106. package/dist/utils/localization/translations/nl.json +5 -9
  107. package/dist/utils/localization/translations/pl.json +5 -9
  108. package/dist/utils/localization/translations/pt-BR.json +5 -9
  109. package/dist/utils/localization/translations/pt-PT.json +5 -9
  110. package/dist/utils/localization/translations/ro-RO.json +5 -9
  111. package/dist/utils/localization/translations/sk-SK.json +5 -9
  112. package/dist/utils/localization/translations/sv.json +5 -9
  113. package/dist/utils/localization/translations/th.json +5 -9
  114. package/dist/utils/localization/translations/tr.json +5 -9
  115. package/dist/utils/localization/translations/zh-Hans.json +5 -9
  116. package/dist/utils/localization/translations/zh-TW.json +5 -9
  117. package/dist/utils/positioningUtils/alignments.d.ts +2 -2
  118. package/dist/utils/positioningUtils/alignments.js +2 -2
  119. package/dist/utils/positioningUtils/calculatePosition.js +6 -4
  120. package/esm/calendar/calendar.js +4 -7
  121. package/esm/card/components/title.js +1 -4
  122. package/esm/card/components/titleLink.js +2 -5
  123. package/esm/chart/barChart/getDefaultOptions.d.ts +1 -2
  124. package/esm/chart/barChart/getDefaultOptions.js +2 -5
  125. package/esm/chart/barChart.js +4 -6
  126. package/esm/chart/lineChart/getDefaultOptions.d.ts +1 -2
  127. package/esm/chart/lineChart/getDefaultOptions.js +2 -5
  128. package/esm/chart/lineChart.js +2 -4
  129. package/esm/checkboxListWithAction/checkboxListWithAction.js +1 -4
  130. package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
  131. package/esm/controlledPopup/controlledPopup.d.ts +0 -1
  132. package/esm/controlledPopup/controlledPopup.js +1 -3
  133. package/esm/dataGrid/cell/cell.d.ts +1 -2
  134. package/esm/dataGrid/cell/cell.js +2 -2
  135. package/esm/dataGrid/dataGrid.js +4 -7
  136. package/esm/dataGrid/listColumn.d.ts +0 -2
  137. package/esm/dataGrid/row/row.d.ts +1 -2
  138. package/esm/dataGrid/row/row.js +9 -13
  139. package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
  140. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
  141. package/esm/dateRangeInner/dateRangeInner.js +2 -5
  142. package/esm/dateRangeRaw/dateRangeRaw.js +2 -5
  143. package/esm/dateRangeRaw/utils/parseLabel.js +1 -1
  144. package/esm/dropdownRaw/dropdownRaw.js +6 -12
  145. package/esm/fileUpload/components/dropZoneContent.js +100 -100
  146. package/esm/fileUpload/fileUpload.js +100 -100
  147. package/esm/filters/components/filtersSearchList.js +1 -4
  148. package/esm/filtersBar/filtersContainer/filtersContainer.js +61 -62
  149. package/esm/formStepperButtons/formStepperButtons.js +1 -4
  150. package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
  151. package/esm/groupsFilterRaw/groupsFilterInitialState.js +1 -4
  152. package/esm/header/headerBack.js +1 -4
  153. package/esm/icons/iconAlignLeft.js +3 -1
  154. package/esm/icons/iconAlignmentLeft.js +3 -1
  155. package/esm/icons/iconAlignmentRight.js +3 -1
  156. package/esm/icons/iconArrowBottomLeft.js +3 -1
  157. package/esm/icons/iconArrowBottomRight.js +3 -1
  158. package/esm/icons/iconArrowLeftPath.js +3 -1
  159. package/esm/icons/iconArrowRight.js +3 -1
  160. package/esm/icons/iconArrowRightCircle.js +3 -1
  161. package/esm/icons/iconArrowRightPath.js +3 -1
  162. package/esm/icons/iconArrowTopLeft.js +3 -1
  163. package/esm/icons/iconArrowTopRight.js +3 -1
  164. package/esm/icons/iconChevronDoubleRight.js +3 -1
  165. package/esm/icons/iconChevronRight.js +3 -1
  166. package/esm/icons/iconChevronRightSmall.js +3 -1
  167. package/esm/icons/iconCornerDownLeft.js +3 -1
  168. package/esm/icons/iconCornerDownRight.js +3 -1
  169. package/esm/icons/iconCornerLeftDown.js +3 -1
  170. package/esm/icons/iconCornerLeftUp.js +3 -1
  171. package/esm/icons/iconCornerRightDown.js +3 -1
  172. package/esm/icons/iconCornerRightUp.js +3 -1
  173. package/esm/icons/iconCornerUpLeft.js +3 -1
  174. package/esm/icons/iconCornerUpRight.js +3 -1
  175. package/esm/index.d.ts +0 -1
  176. package/esm/index.js +0 -1
  177. package/esm/lineChartMini/lineChartMini.js +3 -15
  178. package/esm/list/itemData/itemDataInternal.js +1 -4
  179. package/esm/list/listItem/listItem.js +1 -4
  180. package/esm/menu/components/controlledMenuList/controlledMenuList.js +1 -4
  181. package/esm/menu/components/menuButton.js +1 -4
  182. package/esm/menu/utils/useMenuItemCore.js +1 -4
  183. package/esm/nav/navItem/navItem.js +1 -4
  184. package/esm/pagination/paginationArrow.js +3 -10
  185. package/esm/radioGroupRaw/radioGroupRaw.js +1 -2
  186. package/esm/rangeRaw/rangeRaw.js +1 -0
  187. package/esm/selectList/selectList.helpers.d.ts +1 -1
  188. package/esm/selectList/selectList.helpers.js +4 -29
  189. package/esm/selectList/selectList.js +1 -3
  190. package/esm/selectList/selectList.reducer.js +2 -1
  191. package/esm/selectList/selectListItem.js +1 -4
  192. package/esm/sortControl/sortControl.js +4 -59
  193. package/esm/table/children/useTableChildren.d.ts +1 -1
  194. package/esm/table/children/useTableChildren.js +3 -3
  195. package/esm/table/flexible/columnsList.js +2 -4
  196. package/esm/table/selectable/useSelectableRows.d.ts +0 -8
  197. package/esm/table/selectable/useSelectableRows.js +6 -14
  198. package/esm/table/table.js +7 -1
  199. package/esm/tabs/tabs.js +58 -60
  200. package/esm/tabs/tabsTestHelper.js +2 -2
  201. package/esm/timePickerRaw/timePickerRaw.js +1 -1
  202. package/esm/toggleButtonRaw/toggleButtonRaw.js +2 -5
  203. package/esm/utils/localization/translations/ar.json +1 -3
  204. package/esm/utils/localization/translations/cs.json +5 -9
  205. package/esm/utils/localization/translations/da-DK.json +5 -9
  206. package/esm/utils/localization/translations/de.json +5 -9
  207. package/esm/utils/localization/translations/en.json +1 -5
  208. package/esm/utils/localization/translations/es.json +5 -9
  209. package/esm/utils/localization/translations/fi-FI.json +5 -9
  210. package/esm/utils/localization/translations/fr-FR.json +5 -9
  211. package/esm/utils/localization/translations/fr.json +5 -9
  212. package/esm/utils/localization/translations/hu-HU.json +5 -9
  213. package/esm/utils/localization/translations/id.json +5 -9
  214. package/esm/utils/localization/translations/it.json +5 -9
  215. package/esm/utils/localization/translations/ja.json +5 -9
  216. package/esm/utils/localization/translations/ko-KR.json +5 -9
  217. package/esm/utils/localization/translations/ms.json +5 -9
  218. package/esm/utils/localization/translations/nb-NO.json +5 -9
  219. package/esm/utils/localization/translations/nl.json +5 -9
  220. package/esm/utils/localization/translations/pl.json +5 -9
  221. package/esm/utils/localization/translations/pt-BR.json +5 -9
  222. package/esm/utils/localization/translations/pt-PT.json +5 -9
  223. package/esm/utils/localization/translations/ro-RO.json +5 -9
  224. package/esm/utils/localization/translations/sk-SK.json +5 -9
  225. package/esm/utils/localization/translations/sv.json +5 -9
  226. package/esm/utils/localization/translations/th.json +5 -9
  227. package/esm/utils/localization/translations/tr.json +5 -9
  228. package/esm/utils/localization/translations/zh-Hans.json +5 -9
  229. package/esm/utils/localization/translations/zh-TW.json +5 -9
  230. package/esm/utils/positioningUtils/alignments.d.ts +2 -2
  231. package/esm/utils/positioningUtils/alignments.js +2 -2
  232. package/esm/utils/positioningUtils/calculatePosition.js +6 -4
  233. package/package.json +122 -123
  234. package/dist/utils/localization/useDirectionalIcon.d.ts +0 -3
  235. package/dist/utils/localization/useDirectionalIcon.js +0 -9
  236. package/esm/testHelpers/mockAbsoluteAlignment.d.ts +0 -1
  237. package/esm/testHelpers/mockAbsoluteAlignment.js +0 -10
  238. package/esm/utils/localization/useDirectionalIcon.d.ts +0 -3
  239. 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: rtlAlignment, 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 })));
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, maxWidth, render, renderWrappers, renderPlaceholder, defaultValue, entity, colspan, className, onClick, isActive }: IDataGridCell<T>) => import("react/jsx-runtime").JSX.Element;
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, maxWidth, render, renderWrappers, renderPlaceholder, defaultValue, entity, colspan, className, onClick, isActive }) => {
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: maxWidth ? `${Math.max(width !== null && width !== void 0 ? width : 0, maxWidth)}px` : width || "auto" }, role: "gridcell", children: content }));
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 = (defaultWidth, minWidth) => Math.floor(Math.max(defaultWidth, minWidth !== null && minWidth !== void 0 ? minWidth : exports.MIN_CELL_WIDTH));
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, index) => acc + (width === undefined ? 0 : getColumnWidth(width, listOfMinWidthColumns[index])), 0);
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, minWidth);
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, listOfMinWidthColumns, flexibleColumnWidth]);
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, active }: IDataGridRow<T, N>) => import("react/jsx-runtime").JSX.Element;
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;
@@ -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, minWidth) => Math.floor(Math.max(defaultWidth, minWidth !== null && minWidth !== void 0 ? minWidth : exports.MIN_CELL_WIDTH));
10
- const Row = ({ id, entity, columns, visibleRows, flexibleColumnWidth, isLastRow, className, expanded, onExpandedChange, isTreeGrid, ariaPosinset, ariaSetsize, onClick, isActive, active }) => {
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, minWidth);
22
+ const width = getColumnWidth(defaultWidth || flexibleColumnWidth);
26
23
  columnWidth += width;
27
24
  }
28
25
  return columnWidth;
29
- }, [flexibleColumnWidth, listOfDefaultWidthColumns, listOfMinWidthColumns]);
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, maxWidth };
38
- }, [getColWidth, listOfDefaultWidthColumns, listOfMaxWidthColumns]);
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, maxWidth } = getCellParams(index, colspan);
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, maxWidth: column.meta.visibleOnHover ? undefined : maxWidth, isVisible: isVisible, colspan: colspan, onClick: !isNested && onExpandedChange ? () => onExpandedChange(!expanded) : onClick ? () => onClick(rowEntity.id) : undefined, isActive: isNested ? active === rowEntity.id : isActive || active === rowEntity.id, className: isNested ? "zen-data-grid__row-cell--nested" : "" }, `${rowEntity.id}_${column.name}`));
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, active, onClick]);
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)(() => ((0, jsx_runtime_1.jsx)(selectList_1.SelectList, { id: id, items: items, value: state, title: title || "", multiselect: true, showCheckbox: true, onChange: onChangeItem, disabled: allDisabled })), [id, items, state, title, onChangeItem, allDisabled]);
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)(ChevronIcon, {
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
- }, [ChevronIcon, calendarLabel, isMobileView, onOptionSelect, options, selection, setShowMobileCalendar]);
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)(PrevStepperIcon, {
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)(NextStepperIcon, {
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)} ${(0, formatDate_1.formatDate)(localeTo, 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
- if (isQueryMode) {
555
- handleQueryMode(searchValue, isChecked);
556
- } else if (!getData && dataItems && !searchValue) {
557
- handleData(dataItems, "");
558
- } else {
559
- dispatchState({
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", "Klepnut\xEDm p\u0159idejte soubory");
16
- injectString("da-DK", "Tap to add files", "Tryk for at tilf\xF8je filer");
17
- injectString("de", "Tap to add files", "Tippen, um Dateien hinzuzuf\xFCgen");
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", "Toca para agregar archivos");
20
- injectString("fi-FI", "Tap to add files", "Lis\xE4\xE4 tiedostoja napauttamalla");
21
- injectString("fr", "Tap to add files", "Appuyez pour ajouter des fichiers");
22
- injectString("fr-FR", "Tap to add files", "Appuyez pour ajouter des fichiers");
23
- injectString("hu-HU", "Tap to add files", "F\xE1jlok hozz\xE1ad\xE1s\xE1hoz koppintson");
24
- injectString("id", "Tap to add files", "Ketuk untuk menambahkan file");
25
- injectString("it", "Tap to add files", "Tocca per aggiungere file");
26
- injectString("ja", "Tap to add files", "\u30BF\u30C3\u30D7\u3057\u3066\u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0");
27
- injectString("ko-KR", "Tap to add files", "\uD0ED\uD558\uC5EC \uD30C\uC77C \uCD94\uAC00");
28
- injectString("ms", "Tap to add files", "Ketik untuk menambah fail");
29
- injectString("nb-NO", "Tap to add files", "Trykk for \xE5 legge til filer");
30
- injectString("nl", "Tap to add files", "Tik om bestanden toe te voegen");
31
- injectString("pl", "Tap to add files", "Dotknij, aby doda\u0107 pliki");
32
- injectString("pt-BR", "Tap to add files", "Toque para adicionar arquivos");
33
- injectString("pt-PT", "Tap to add files", "Toque para adicionar ficheiros");
34
- injectString("sk-SK", "Tap to add files", "Klepnut\xEDm pridajte s\xFAbory");
35
- injectString("sv", "Tap to add files", "Tryck f\xF6r att l\xE4gga till filer");
36
- injectString("th", "Tap to add files", "\u0E41\u0E15\u0E30\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E44\u0E1F\u0E25\u0E4C");
37
- injectString("tr", "Tap to add files", "Dosya eklemek i\xE7in dokunun");
38
- injectString("zh-Hans", "Tap to add files", "\u70B9\u51FB\u6DFB\u52A0\u6587\u4EF6");
39
- injectString("zh-TW", "Tap to add files", "\u9EDE\u9078\u4EE5\u65B0\u589E\u6A94\u6848");
40
- injectString("ro-RO", "Tap to add files", "Atinge\u021Bi pentru a ad\u0103uga fi\u0219iere");
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", "P\u0159et\xE1hn\u011Bte soubory nebo");
43
- injectString("da-DK", "Drag & drop files or", "Tr\xE6k og slip filer eller");
44
- injectString("de", "Drag & drop files or", "Dateien hierher ziehen oder");
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", "Arrastrar y soltar archivos o");
47
- injectString("fi-FI", "Drag & drop files or", "Ved\xE4 ja pudota tiedostoja tai");
48
- injectString("fr", "Drag & drop files or", "Glisser-d\xE9poser des fichiers ou");
49
- injectString("fr-FR", "Drag & drop files or", "Glisser-d\xE9poser des fichiers ou");
50
- injectString("hu-HU", "Drag & drop files or", "H\xFAzza ide a f\xE1jlokat, vagy");
51
- injectString("id", "Drag & drop files or", "Seret & lepas file atau");
52
- injectString("it", "Drag & drop files or", "Trascina e rilascia i file o");
53
- injectString("ja", "Drag & drop files or", "\u30D5\u30A1\u30A4\u30EB\u3092\u30C9\u30E9\u30C3\u30B0\uFF06\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u304B\u3001");
54
- injectString("ko-KR", "Drag & drop files or", "\uD30C\uC77C\uC744 \uB4DC\uB798\uADF8 \uC564 \uB4DC\uB86D\uD558\uAC70\uB098");
55
- injectString("ms", "Drag & drop files or", "Seret & lepas fail atau");
56
- injectString("nb-NO", "Drag & drop files or", "Dra og slipp filer eller");
57
- injectString("nl", "Drag & drop files or", "Bestanden slepen en neerzetten of");
58
- injectString("pl", "Drag & drop files or", "Przeci\u0105gnij i upu\u015B\u0107 pliki lub");
59
- injectString("pt-BR", "Drag & drop files or", "Arraste e solte arquivos ou");
60
- injectString("pt-PT", "Drag & drop files or", "Arraste e largue ficheiros ou");
61
- injectString("sk-SK", "Drag & drop files or", "Presu\u0148te s\xFAbory alebo");
62
- injectString("sv", "Drag & drop files or", "Dra och sl\xE4pp filer eller");
63
- injectString("th", "Drag & drop files or", "\u0E25\u0E32\u0E01\u0E41\u0E25\u0E30\u0E27\u0E32\u0E07\u0E44\u0E1F\u0E25\u0E4C\u0E2B\u0E23\u0E37\u0E2D");
64
- injectString("tr", "Drag & drop files or", "Dosyalar\u0131 s\xFCr\xFCkleyip b\u0131rak\u0131n veya");
65
- injectString("zh-Hans", "Drag & drop files or", "\u62D6\u653E\u6587\u4EF6\u6216");
66
- injectString("zh-TW", "Drag & drop files or", "\u62D6\u653E\u6A94\u6848\u6216");
67
- injectString("ro-RO", "Drag & drop files or", "Glisa\u021Bi \u0219i fixa\u021Bi fi\u0219iere sau");
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", "Proch\xE1zet");
70
- injectString("da-DK", "Browse", "Gennemse");
71
- injectString("de", "Browse", "Durchsuchen");
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", "Explorar");
74
- injectString("fi-FI", "Browse", "Selaa");
75
- injectString("fr", "Browse", "Parcourir");
76
- injectString("fr-FR", "Browse", "Parcourir");
77
- injectString("hu-HU", "Browse", "Tall\xF3z\xE1s");
78
- injectString("id", "Browse", "Jelajahi");
79
- injectString("it", "Browse", "Sfoglia");
80
- injectString("ja", "Browse", "\u53C2\u7167");
81
- injectString("ko-KR", "Browse", "\uCC3E\uC544\uBCF4\uAE30");
82
- injectString("ms", "Browse", "Semak Imbas");
83
- injectString("nb-NO", "Browse", "Bla gjennom");
84
- injectString("nl", "Browse", "Bladeren");
85
- injectString("pl", "Browse", "Przegl\u0105daj");
86
- injectString("pt-BR", "Browse", "Procurar");
87
- injectString("pt-PT", "Browse", "Procurar");
88
- injectString("sk-SK", "Browse", "Preh\u013Ead\xE1va\u0165");
89
- injectString("sv", "Browse", "Bl\xE4ddra");
90
- injectString("th", "Browse", "\u0E40\u0E23\u0E35\u0E22\u0E01\u0E14\u0E39");
91
- injectString("tr", "Browse", "G\xF6zat");
92
- injectString("zh-Hans", "Browse", "\u6D4F\u89C8");
93
- injectString("zh-TW", "Browse", "\u700F\u89BD");
94
- injectString("ro-RO", "Browse", "R\u0103sfoire");
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:", "Podporovan\xE9 form\xE1ty:");
97
- injectString("da-DK", "Supported Formats:", "Underst\xF8ttede formater:");
98
- injectString("de", "Supported Formats:", "Unterst\xFCtzte Formate:");
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:", "Formatos compatibles:");
101
- injectString("fi-FI", "Supported Formats:", "Tuetut muodot:");
102
- injectString("fr", "Supported Formats:", "Formats pris en charge :");
103
- injectString("fr-FR", "Supported Formats:", "Formats pris en charge :");
104
- injectString("hu-HU", "Supported Formats:", "T\xE1mogatott form\xE1tumok:");
105
- injectString("id", "Supported Formats:", "Format yang Didukung:");
106
- injectString("it", "Supported Formats:", "Formati supportati:");
107
- injectString("ja", "Supported Formats:", "\u5BFE\u5FDC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\uFF1A");
108
- injectString("ko-KR", "Supported Formats:", "\uC9C0\uC6D0\uB418\uB294 \uD615\uC2DD:");
109
- injectString("ms", "Supported Formats:", "Format yang Disokong:");
110
- injectString("nb-NO", "Supported Formats:", "St\xF8ttede formater:");
111
- injectString("nl", "Supported Formats:", "Ondersteunde indelingen:");
112
- injectString("pl", "Supported Formats:", "Obs\u0142ugiwane formaty:");
113
- injectString("pt-BR", "Supported Formats:", "Formatos suportados:");
114
- injectString("pt-PT", "Supported Formats:", "Formatos suportados:");
115
- injectString("sk-SK", "Supported Formats:", "Podporovan\xE9 form\xE1ty:");
116
- injectString("sv", "Supported Formats:", "Format som st\xF6ds:");
117
- injectString("th", "Supported Formats:", "\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A:");
118
- injectString("tr", "Supported Formats:", "Desteklenen Bi\xE7imler:");
119
- injectString("zh-Hans", "Supported Formats:", "\u652F\u6301\u7684\u683C\u5F0F\uFF1A");
120
- injectString("zh-TW", "Supported Formats:", "\u652F\u63F4\u7684\u683C\u5F0F\uFF1A");
121
- injectString("ro-RO", "Supported Formats:", "Formate acceptate:");
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,