impact-ui 4.0.15 → 4.0.16

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 (109) hide show
  1. package/README.md +3 -1
  2. package/dist/_virtual/index3.js +2 -4
  3. package/dist/_virtual/index4.js +2 -4
  4. package/dist/_virtual/index5.js +4 -2
  5. package/dist/_virtual/index6.js +4 -2
  6. package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts +39 -16
  7. package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts.map +1 -1
  8. package/dist/components/CreateItemFlow/index.d.ts +2 -1
  9. package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
  10. package/dist/components/CreateItemFlow/index.js +116 -66
  11. package/dist/components/DatePicker/datePickerDropdown.d.ts.map +1 -1
  12. package/dist/components/DatePicker/datePickerDropdown.js +3 -0
  13. package/dist/components/DatePicker/datePickerFooter.d.ts +3 -1
  14. package/dist/components/DatePicker/datePickerFooter.d.ts.map +1 -1
  15. package/dist/components/DatePicker/datePickerFooter.js +24 -2
  16. package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +1 -1
  17. package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
  18. package/dist/components/DateRangePicker/dateRangePickerDropdown.js +35 -12
  19. package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -1
  20. package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
  21. package/dist/components/DateRangePicker/dateRangePickerFooter.js +5 -3
  22. package/dist/components/DateRangePicker/index.d.ts.map +1 -1
  23. package/dist/components/DateRangePicker/index.js +2 -0
  24. package/dist/components/DynamicLayout/index.d.ts +9 -12
  25. package/dist/components/DynamicLayout/index.d.ts.map +1 -1
  26. package/dist/components/DynamicLayout/index.js +37 -34
  27. package/dist/components/Header/index.js +2 -2
  28. package/dist/components/NewCreateItemFlow/NewCreateItemFlow.types.d.ts +21 -0
  29. package/dist/components/NewCreateItemFlow/NewCreateItemFlow.types.d.ts.map +1 -0
  30. package/dist/components/NewCreateItemFlow/index.d.ts +5 -0
  31. package/dist/components/NewCreateItemFlow/index.d.ts.map +1 -0
  32. package/dist/components/NewCreateItemFlow/index.js +93 -0
  33. package/dist/components/NewDynamicLayout/NewDynamicLayout.types.d.ts +26 -0
  34. package/dist/components/NewDynamicLayout/NewDynamicLayout.types.d.ts.map +1 -0
  35. package/dist/components/NewDynamicLayout/index.d.ts +15 -0
  36. package/dist/components/NewDynamicLayout/index.d.ts.map +1 -0
  37. package/dist/components/NewDynamicLayout/index.js +45 -0
  38. package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
  39. package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +6 -31
  40. package/dist/components/Notification/NotificationBody/NotificationPanelContent.js +2 -2
  41. package/dist/components/Notification/NotificationBody/NotificationTaskList.js +1 -2
  42. package/dist/components/Notification/index.js +1 -1
  43. package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
  44. package/dist/components/Table/AgGridHeader.js +3 -1
  45. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +1 -1
  46. package/dist/components/Table/Table.types.d.ts +4 -0
  47. package/dist/components/Table/Table.types.d.ts.map +1 -1
  48. package/dist/components/Table/filterUtils.d.ts +13 -0
  49. package/dist/components/Table/filterUtils.d.ts.map +1 -1
  50. package/dist/components/Table/filterUtils.js +18 -9
  51. package/dist/components/Table/index.d.ts.map +1 -1
  52. package/dist/components/Table/index.js +11 -4
  53. package/dist/components/Table/tableFunctions.d.ts +1 -0
  54. package/dist/components/Table/tableFunctions.d.ts.map +1 -1
  55. package/dist/components/Table/tableHeader.d.ts +2 -1
  56. package/dist/components/Table/tableHeader.d.ts.map +1 -1
  57. package/dist/components/Table/tableHeader.js +2 -0
  58. package/dist/components/Table/tableMoreOptions.d.ts +2 -1
  59. package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
  60. package/dist/components/Table/tableMoreOptions.js +58 -14
  61. package/dist/components/Table/tableSettings.d.ts.map +1 -1
  62. package/dist/components/Table/tableSettings.js +3 -2
  63. package/dist/components/TableOld/index.d.ts.map +1 -1
  64. package/dist/components/TableOld/index.js +23 -9
  65. package/dist/components/TableOld/tableFunctions.d.ts +1 -0
  66. package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
  67. package/dist/components/TableOld/tableHeader.d.ts +2 -1
  68. package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
  69. package/dist/components/TableOld/tableHeader.js +2 -0
  70. package/dist/components/index.d.ts +5 -1
  71. package/dist/components/index.d.ts.map +1 -1
  72. package/dist/components/index.js +4 -0
  73. package/dist/components/shared/tableColumnSettings/agGridColumnSettingsApi.d.ts +17 -0
  74. package/dist/components/shared/tableColumnSettings/agGridColumnSettingsApi.d.ts.map +1 -0
  75. package/dist/components/shared/tableColumnSettings/agGridColumnSettingsApi.js +52 -0
  76. package/dist/components/shared/tableColumnSettings/columnsSettingsColumnRow.d.ts +12 -0
  77. package/dist/components/shared/tableColumnSettings/columnsSettingsColumnRow.d.ts.map +1 -0
  78. package/dist/components/shared/tableColumnSettings/columnsSettingsColumnRow.js +262 -0
  79. package/dist/components/shared/tableColumnSettings/columnsSettingsVirtualList.d.ts +39 -0
  80. package/dist/components/shared/tableColumnSettings/columnsSettingsVirtualList.d.ts.map +1 -0
  81. package/dist/components/shared/tableColumnSettings/columnsSettingsVirtualList.js +294 -0
  82. package/dist/components/shared/tableColumnSettings/columnsTabV36.d.ts +4 -0
  83. package/dist/components/shared/tableColumnSettings/columnsTabV36.d.ts.map +1 -0
  84. package/dist/components/shared/tableColumnSettings/columnsTabV36.js +1523 -0
  85. package/dist/components/shared/tableColumnSettings/index.d.ts +4 -0
  86. package/dist/components/shared/tableColumnSettings/index.d.ts.map +1 -0
  87. package/dist/components/shared/tableColumnSettings/tableSettingsV36.d.ts +41 -0
  88. package/dist/components/shared/tableColumnSettings/tableSettingsV36.d.ts.map +1 -0
  89. package/dist/components/shared/tableColumnSettings/tableSettingsV36.js +327 -0
  90. package/dist/i18n/I18nContext.d.ts.map +1 -1
  91. package/dist/i18n/I18nContext.js +1 -0
  92. package/dist/locales/en-US.json.d.ts +1 -1
  93. package/dist/locales/en-US.json.js +1 -1
  94. package/dist/locales/es-ES.json.d.ts +666 -0
  95. package/dist/locales/es-ES.json.js +599 -0
  96. package/dist/locales/index.d.ts.map +1 -1
  97. package/dist/locales/index.js +11 -3
  98. package/dist/mcp-component-registry.json +101 -59
  99. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +128 -75
  100. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  101. package/dist/node_modules/moment/dist/locale/es.js +98 -0
  102. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  103. package/dist/node_modules/react-is/index.js +1 -1
  104. package/dist/stories/LocaleDictionaryCollapse.d.ts.map +1 -1
  105. package/dist/stories/tableStoryDefaults.d.ts +18 -0
  106. package/dist/stories/tableStoryDefaults.d.ts.map +1 -0
  107. package/dist/stories/tableStoryManyColumns.d.ts +44 -0
  108. package/dist/stories/tableStoryManyColumns.d.ts.map +1 -0
  109. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export { default as TableSettingsV36 } from './tableSettingsV36';
2
+ export { ColumnsV36 } from './columnsTabV36';
3
+ export { SETTINGS_VIRTUALIZE_THRESHOLD, SETTINGS_ROW_HEIGHT } from './columnsSettingsVirtualList';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/tableColumnSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,41 @@
1
+ export default function TableSettings({ showMenu, Columns, actualRef, tableFontSize, setTableFontSize, handleMenuClick, onNumberFormatChange, colDefs, setShowMenu, showTableSetting, setShowTableSetting, setTableSettingOpen, tableActions, onTableActionsTabClick, showFilterStrip, hideTableFormat, hideTableActions, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, hideNumericFormat, hideFontSize, customTabInTableSettings, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, isViewNameUniqueAcrossTypes, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, }: {
2
+ showMenu: any;
3
+ Columns: any;
4
+ actualRef: any;
5
+ tableFontSize: any;
6
+ setTableFontSize: any;
7
+ handleMenuClick: any;
8
+ onNumberFormatChange: any;
9
+ colDefs: any;
10
+ setShowMenu: any;
11
+ showTableSetting: any;
12
+ setShowTableSetting: any;
13
+ setTableSettingOpen: any;
14
+ tableActions: any;
15
+ onTableActionsTabClick: any;
16
+ showFilterStrip: any;
17
+ hideTableFormat: any;
18
+ hideTableActions: any;
19
+ savedViewsOptions: any;
20
+ handleSaveAndApply: any;
21
+ maxSavedViews: any;
22
+ handleSavedViewClick: any;
23
+ handleEditSaveView: any;
24
+ isSaveViewEnabled: any;
25
+ isSavingViewLoading: any;
26
+ handleDeleteViewClick: any;
27
+ isDeleteViewLoading: any;
28
+ handleSetDefaultView: any;
29
+ hideNumericFormat: any;
30
+ hideFontSize: any;
31
+ customTabInTableSettings: any;
32
+ saveViewCustomFilter: any;
33
+ customRenderSaveViewContent: any;
34
+ onTableSettingClick: any;
35
+ deleteViewPromptText: any;
36
+ isViewNameUniqueAcrossTypes: any;
37
+ tableSettingsTitle?: string | undefined;
38
+ registerTableSettingToggle: any;
39
+ numericFormatDefault: any;
40
+ }): import("react/jsx-runtime").JSX.Element;
41
+ //# sourceMappingURL=tableSettingsV36.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableSettingsV36.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/tableColumnSettings/tableSettingsV36.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAqC,EACrC,0BAA0B,EAC1B,oBAAoB,GACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,2CA8OA"}
@@ -0,0 +1,327 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import React__default, { useState, useRef, useEffect, useCallback, useMemo } from "react";
3
+ import default_1$2 from "../../../node_modules/@mui/icons-material/AutoFixHigh.js";
4
+ import default_1$1 from "../../../node_modules/@mui/icons-material/FormatColorTextOutlined.js";
5
+ import default_1 from "../../../node_modules/@mui/icons-material/ViewColumnOutlined.js";
6
+ import { RadioButtonGroup } from "../../RadioButtonGroup/index.js";
7
+ import { Tabs } from "../../Tabs/index.js";
8
+ import { useTranslation } from "../../../i18n/useTranslation.js";
9
+ function TableSettings({
10
+ showMenu,
11
+ Columns,
12
+ actualRef,
13
+ tableFontSize,
14
+ setTableFontSize,
15
+ handleMenuClick,
16
+ onNumberFormatChange,
17
+ colDefs,
18
+ setShowMenu,
19
+ showTableSetting,
20
+ setShowTableSetting,
21
+ setTableSettingOpen,
22
+ tableActions,
23
+ onTableActionsTabClick,
24
+ showFilterStrip,
25
+ hideTableFormat,
26
+ hideTableActions,
27
+ savedViewsOptions,
28
+ handleSaveAndApply,
29
+ maxSavedViews,
30
+ handleSavedViewClick,
31
+ handleEditSaveView,
32
+ isSaveViewEnabled,
33
+ isSavingViewLoading,
34
+ handleDeleteViewClick,
35
+ isDeleteViewLoading,
36
+ handleSetDefaultView,
37
+ hideNumericFormat,
38
+ hideFontSize,
39
+ customTabInTableSettings,
40
+ saveViewCustomFilter,
41
+ customRenderSaveViewContent,
42
+ onTableSettingClick,
43
+ deleteViewPromptText,
44
+ isViewNameUniqueAcrossTypes,
45
+ tableSettingsTitle = "Table Settings",
46
+ registerTableSettingToggle,
47
+ numericFormatDefault
48
+ }) {
49
+ const [selectedMenuTab, setSelectedMenuTab] = useState("Columns");
50
+ const [numericFormat, setNumericFormat] = useState(numericFormatDefault || "full_no");
51
+ const showTableSettingRef = useRef(showTableSetting);
52
+ showTableSettingRef.current = showTableSetting;
53
+ const [columnsTabMounted, setColumnsTabMounted] = useState(showTableSetting);
54
+ useEffect(() => {
55
+ if (showTableSetting) setColumnsTabMounted(true);
56
+ }, [showTableSetting]);
57
+ const onFontSizeChange = useCallback(
58
+ (val) => {
59
+ setTableFontSize(val);
60
+ },
61
+ [setTableFontSize]
62
+ );
63
+ const onNumericFormatChange = useCallback(
64
+ (val) => {
65
+ setNumericFormat(val);
66
+ onNumberFormatChange(val);
67
+ },
68
+ [onNumberFormatChange]
69
+ );
70
+ useEffect(() => {
71
+ setNumericFormat(numericFormatDefault);
72
+ }, [numericFormatDefault]);
73
+ const onCloseTableSetting = useCallback(() => {
74
+ setSelectedMenuTab("Columns");
75
+ setShowMenu(false);
76
+ setShowTableSetting(false);
77
+ setTableSettingOpen(false);
78
+ onTableSettingClick(false);
79
+ }, [setShowMenu, setShowTableSetting, setTableSettingOpen, onTableSettingClick]);
80
+ const tabPanels = useMemo(
81
+ () => [
82
+ columnsTabMounted ? /* @__PURE__ */ jsx(
83
+ Columns,
84
+ {
85
+ ref: actualRef,
86
+ column: colDefs,
87
+ customRenderSaveViewContent,
88
+ deleteViewPromptText,
89
+ handleDeleteViewClick,
90
+ handleEditSaveView,
91
+ handleSaveAndApply,
92
+ handleSavedViewClick,
93
+ handleSetDefaultView,
94
+ isDeleteViewLoading,
95
+ isSaveViewEnabled,
96
+ isSavingViewLoading,
97
+ isViewNameUniqueAcrossTypes,
98
+ maxSavedViews,
99
+ savedViewsOptions,
100
+ saveViewCustomFilter,
101
+ showMenu,
102
+ showTableSetting
103
+ },
104
+ "columns-tab"
105
+ ) : /* @__PURE__ */ jsx("div", {}, "columns-tab"),
106
+ !hideTableFormat && /* @__PURE__ */ jsx(
107
+ TableFormat,
108
+ {
109
+ hideFontSize,
110
+ hideNumericFormat,
111
+ numericFormat,
112
+ tableFontSize,
113
+ onFontSizeChange,
114
+ onNumericFormatChange
115
+ },
116
+ "format-tab"
117
+ ),
118
+ !hideTableActions && /* @__PURE__ */ jsx(TableActions, { tableActions }, "actions-tab"),
119
+ ...Array.isArray(customTabInTableSettings) ? customTabInTableSettings.map((tab, index) => {
120
+ var _a;
121
+ return /* @__PURE__ */ jsx(React__default.Fragment, { children: tab == null ? void 0 : tab.tabPanels }, ((_a = tab == null ? void 0 : tab.tabNames) == null ? void 0 : _a.value) || `custom-tab-${index}`);
122
+ }) : []
123
+ ].filter(Boolean),
124
+ [
125
+ Columns,
126
+ columnsTabMounted,
127
+ showTableSetting,
128
+ actualRef,
129
+ colDefs,
130
+ customRenderSaveViewContent,
131
+ deleteViewPromptText,
132
+ handleDeleteViewClick,
133
+ handleEditSaveView,
134
+ handleSaveAndApply,
135
+ handleSavedViewClick,
136
+ handleSetDefaultView,
137
+ isDeleteViewLoading,
138
+ isSaveViewEnabled,
139
+ isSavingViewLoading,
140
+ isViewNameUniqueAcrossTypes,
141
+ maxSavedViews,
142
+ savedViewsOptions,
143
+ saveViewCustomFilter,
144
+ showMenu,
145
+ hideTableFormat,
146
+ hideFontSize,
147
+ hideNumericFormat,
148
+ numericFormat,
149
+ tableFontSize,
150
+ onFontSizeChange,
151
+ onNumericFormatChange,
152
+ hideTableActions,
153
+ tableActions,
154
+ customTabInTableSettings
155
+ ]
156
+ );
157
+ const tabNames = useMemo(
158
+ () => [
159
+ {
160
+ label: selectedMenuTab === "Columns" ? "Columns" : "",
161
+ value: "Columns",
162
+ icon: /* @__PURE__ */ jsx(default_1, { fontSize: "small" })
163
+ },
164
+ !hideTableFormat && {
165
+ label: selectedMenuTab === "Format" ? "Format" : "",
166
+ value: "Format",
167
+ icon: /* @__PURE__ */ jsx(default_1$1, { fontSize: "small" })
168
+ },
169
+ !hideTableActions && {
170
+ label: selectedMenuTab === "Actions" ? "Actions" : "",
171
+ value: "Actions",
172
+ icon: /* @__PURE__ */ jsx(default_1$2, {})
173
+ },
174
+ ...Array.isArray(customTabInTableSettings) ? customTabInTableSettings.map((tab) => {
175
+ var _a, _b;
176
+ return {
177
+ ...tab.tabNames,
178
+ label: selectedMenuTab === ((_a = tab == null ? void 0 : tab.tabNames) == null ? void 0 : _a.value) ? (_b = tab == null ? void 0 : tab.tabNames) == null ? void 0 : _b.label : ""
179
+ };
180
+ }) : []
181
+ ].filter(Boolean),
182
+ [selectedMenuTab, hideTableFormat, hideTableActions, customTabInTableSettings]
183
+ );
184
+ const handleTabChange = useCallback(
185
+ (_event, val) => {
186
+ setSelectedMenuTab(val);
187
+ if (val === "Actions") {
188
+ onTableActionsTabClick();
189
+ }
190
+ },
191
+ [onTableActionsTabClick]
192
+ );
193
+ useEffect(() => {
194
+ if (typeof registerTableSettingToggle !== "function") return void 0;
195
+ const toggle = (open, tabName, options = {}) => {
196
+ const shouldOpen = typeof open === "undefined" ? !showTableSettingRef.current : Boolean(open);
197
+ if (shouldOpen) {
198
+ if (options.menuOnly) {
199
+ setShowMenu(true);
200
+ } else {
201
+ setShowMenu(true);
202
+ setShowTableSetting(true);
203
+ setTableSettingOpen(true);
204
+ if (tabName) {
205
+ setSelectedMenuTab(tabName);
206
+ }
207
+ onTableSettingClick(true);
208
+ }
209
+ } else if (options.menuOnly) {
210
+ setShowMenu(false);
211
+ } else {
212
+ setSelectedMenuTab("Columns");
213
+ setShowMenu(false);
214
+ setShowTableSetting(false);
215
+ setTableSettingOpen(false);
216
+ onTableSettingClick(false);
217
+ }
218
+ };
219
+ registerTableSettingToggle(toggle);
220
+ }, [
221
+ registerTableSettingToggle,
222
+ setShowMenu,
223
+ setShowTableSetting,
224
+ setTableSettingOpen,
225
+ onTableSettingClick
226
+ ]);
227
+ const { t } = useTranslation();
228
+ return /* @__PURE__ */ jsxs(
229
+ "div",
230
+ {
231
+ className: `table-setting-main-container table-settings-v36-panel ${showTableSetting ? "display-table-setting" : ""} ${showFilterStrip ? "filters-strip-visible" : ""}`,
232
+ "data-column-settings-mode": "v36",
233
+ children: [
234
+ /* @__PURE__ */ jsxs("div", { className: "table-setting-header", children: [
235
+ /* @__PURE__ */ jsx("div", { className: "table-setting-header-title-row", children: /* @__PURE__ */ jsx("h2", { children: tableSettingsTitle || t("table.settings.title") }) }),
236
+ /* @__PURE__ */ jsx(
237
+ "span",
238
+ {
239
+ className: "close_icon",
240
+ role: "button",
241
+ tabIndex: 0,
242
+ onClick: onCloseTableSetting,
243
+ onKeyDown: (e) => {
244
+ if (e.key === "Enter" || e.key === " ") {
245
+ e.preventDefault();
246
+ onCloseTableSetting();
247
+ }
248
+ }
249
+ }
250
+ )
251
+ ] }),
252
+ /* @__PURE__ */ jsx(
253
+ Tabs,
254
+ {
255
+ remountOnTabChange: false,
256
+ tabNames,
257
+ tabPanels,
258
+ value: selectedMenuTab,
259
+ onChange: handleTabChange
260
+ }
261
+ )
262
+ ]
263
+ }
264
+ );
265
+ }
266
+ const TableFormat = React__default.memo(function TableFormat2({
267
+ tableFontSize,
268
+ onFontSizeChange,
269
+ numericFormat,
270
+ onNumericFormatChange,
271
+ hideNumericFormat,
272
+ hideFontSize
273
+ }) {
274
+ const fontSizeOptions = useMemo(
275
+ () => [
276
+ { label: "Small", value: "small" },
277
+ { label: "Medium (default)", value: "medium" },
278
+ { label: "Large", value: "large" }
279
+ ],
280
+ []
281
+ );
282
+ const numericOptions = useMemo(
283
+ () => [
284
+ { label: "Full Number", value: "full_no" },
285
+ { label: "In K (Thousands)", value: "thou" },
286
+ { label: "In M (Millions)", value: "mil" },
287
+ { label: "In B (Billions)", value: "bil" }
288
+ ],
289
+ []
290
+ );
291
+ return /* @__PURE__ */ jsxs("div", { className: "table-setting-format-settings", children: [
292
+ !hideFontSize && /* @__PURE__ */ jsxs("div", { className: "table-setting-font-size-setting-container", children: [
293
+ /* @__PURE__ */ jsx("h3", { className: "custom-menu-sub-header", children: "Font size" }),
294
+ /* @__PURE__ */ jsx(
295
+ RadioButtonGroup,
296
+ {
297
+ options: fontSizeOptions,
298
+ selectedOption: "medium",
299
+ value: tableFontSize,
300
+ onChange: (_e, val) => {
301
+ onFontSizeChange(val);
302
+ }
303
+ }
304
+ )
305
+ ] }),
306
+ !hideNumericFormat && /* @__PURE__ */ jsxs("div", { className: "table-setting-number-format-setting-container", children: [
307
+ /* @__PURE__ */ jsx("h3", { className: "custom-menu-sub-header", children: "Numeric Values" }),
308
+ /* @__PURE__ */ jsx(
309
+ RadioButtonGroup,
310
+ {
311
+ options: numericOptions,
312
+ selectedOption: "full_no",
313
+ value: numericFormat,
314
+ onChange: (_e, val) => {
315
+ onNumericFormatChange(val);
316
+ }
317
+ }
318
+ )
319
+ ] })
320
+ ] });
321
+ });
322
+ const TableActions = React__default.memo(function TableActions2({ tableActions }) {
323
+ return /* @__PURE__ */ jsx("div", { className: "table-setting-action-settings", children: /* @__PURE__ */ jsx("div", { className: "table-setting-action-container", children: tableActions }) });
324
+ });
325
+ export {
326
+ TableSettings as default
327
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"I18nContext.d.ts","sourceRoot":"","sources":["../../src/i18n/I18nContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAA2B,MAAM,SAAS,CAAC;AAE/F;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,kDAA+C,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,aAA2B,EAC3B,YAAyB,EACzB,SAAiB,EACjB,QAAQ,GACT,EAAE,iBAAiB,2CA4DnB"}
1
+ {"version":3,"file":"I18nContext.d.ts","sourceRoot":"","sources":["../../src/i18n/I18nContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAA2B,MAAM,SAAS,CAAC;AAE/F;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,kDAA+C,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,aAA2B,EAC3B,YAAyB,EACzB,SAAiB,EACjB,QAAQ,GACT,EAAE,iBAAiB,2CA4DnB"}
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { createContext, useState, useRef, useEffect, useCallback, useMemo } from "react";
3
3
  import moment from "moment";
4
4
  import "../node_modules/moment/dist/locale/de.js";
5
+ import "../node_modules/moment/dist/locale/es.js";
5
6
  import { BASE_LOCALE } from "../locales/index.js";
6
7
  import { buildMessages, translate } from "./translate.js";
7
8
  const I18nContext = createContext(null);
@@ -444,7 +444,7 @@ declare const _default: {
444
444
  "homePage.launchCta": "Launch",
445
445
  "homePage.newRibbon": "New",
446
446
  "homePage.accessEnabled": "Access Enabled",
447
- "homePage.smartAiHeader": "Explore our smart Ai driven solutions 💡",
447
+ "homePage.smartAiHeader": "Explore our smart AI driven solutions 💡",
448
448
  "homePage.bookDemoCta": "Book demo",
449
449
  "homePage.knowMoreCta": "Know more",
450
450
  "homePage.clientLogoAlt": "client-logo",
@@ -394,7 +394,7 @@ const enUS = {
394
394
  "homePage.launchCta": "Launch",
395
395
  "homePage.newRibbon": "New",
396
396
  "homePage.accessEnabled": "Access Enabled",
397
- "homePage.smartAiHeader": "Explore our smart Ai driven solutions 💡",
397
+ "homePage.smartAiHeader": "Explore our smart AI driven solutions 💡",
398
398
  "homePage.bookDemoCta": "Book demo",
399
399
  "homePage.knowMoreCta": "Know more",
400
400
  "homePage.clientLogoAlt": "client-logo",