impact-ui 4.0.5-tableV36.2 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index3.js +2 -4
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +4 -2
- package/dist/components/CommentsPanel/CommentsContext.d.ts +4 -2
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +26 -0
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts +4 -10
- package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.d.ts +15 -3
- package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +63 -134
- package/dist/components/DynamicLayout/index.d.ts +12 -9
- package/dist/components/DynamicLayout/index.d.ts.map +1 -1
- package/dist/components/DynamicLayout/index.js +38 -37
- package/dist/components/Menu/IconMenuItem.js +1 -1
- package/dist/components/Menu/NestedMenuItem.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +3 -1
- package/dist/components/TableOld/index.js +1 -1
- package/dist/components/common/MentionEditor/index.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -2
- package/dist/mcp-component-registry.json +58 -845
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts +0 -27
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +0 -1
- package/dist/components/TableV36/AdvanceSortModal.d.ts +0 -8
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +0 -1
- package/dist/components/TableV36/AdvanceSortModal.js +0 -297
- package/dist/components/TableV36/AgGridHeader.d.ts +0 -16
- package/dist/components/TableV36/AgGridHeader.d.ts.map +0 -1
- package/dist/components/TableV36/AgGridHeader.js +0 -799
- package/dist/components/TableV36/CellTooltip.d.ts +0 -14
- package/dist/components/TableV36/CellTooltip.d.ts.map +0 -1
- package/dist/components/TableV36/CellTooltip.js +0 -11
- package/dist/components/TableV36/CommentsPortal.d.ts +0 -31
- package/dist/components/TableV36/CommentsPortal.d.ts.map +0 -1
- package/dist/components/TableV36/CommentsPortal.js +0 -362
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +0 -13
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +0 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +0 -282
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +0 -16
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +0 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +0 -302
- package/dist/components/TableV36/NoComments.d.ts +0 -16
- package/dist/components/TableV36/NoComments.d.ts.map +0 -1
- package/dist/components/TableV36/NoComments.js +0 -237
- package/dist/components/TableV36/Table.types.d.ts +0 -97
- package/dist/components/TableV36/Table.types.d.ts.map +0 -1
- package/dist/components/TableV36/actionBar.d.ts +0 -7
- package/dist/components/TableV36/actionBar.d.ts.map +0 -1
- package/dist/components/TableV36/actionBar.js +0 -31
- package/dist/components/TableV36/advanceSearchModal.d.ts +0 -20
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +0 -1
- package/dist/components/TableV36/filterUtils.d.ts +0 -133
- package/dist/components/TableV36/filterUtils.d.ts.map +0 -1
- package/dist/components/TableV36/filterUtils.js +0 -478
- package/dist/components/TableV36/index.d.ts +0 -3
- package/dist/components/TableV36/index.d.ts.map +0 -1
- package/dist/components/TableV36/index.js +0 -1632
- package/dist/components/TableV36/mockData.d.ts +0 -39
- package/dist/components/TableV36/mockData.d.ts.map +0 -1
- package/dist/components/TableV36/tableFunctions.d.ts +0 -63
- package/dist/components/TableV36/tableFunctions.d.ts.map +0 -1
- package/dist/components/TableV36/tableFunctions.js +0 -1796
- package/dist/components/TableV36/tableHeader.d.ts +0 -80
- package/dist/components/TableV36/tableHeader.d.ts.map +0 -1
- package/dist/components/TableV36/tableHeader.js +0 -396
- package/dist/components/TableV36/tableIcons.d.ts +0 -3
- package/dist/components/TableV36/tableIcons.d.ts.map +0 -1
- package/dist/components/TableV36/tableMoreOptions.d.ts +0 -52
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +0 -1
- package/dist/components/TableV36/tableMoreOptions.js +0 -324
- package/dist/components/TableV36/tablePagination.d.ts +0 -7
- package/dist/components/TableV36/tablePagination.d.ts.map +0 -1
- package/dist/components/TableV36/tablePagination.js +0 -67
- package/dist/components/TableV36/tableSettings.d.ts +0 -41
- package/dist/components/TableV36/tableSettings.d.ts.map +0 -1
- package/dist/components/TableV36/tableSettings.js +0 -317
- package/dist/components/TableV36/withCommentIcon.d.ts +0 -13
- package/dist/components/TableV36/withCommentIcon.d.ts.map +0 -1
- package/dist/components/TableV36/withCommentIcon.js +0 -125
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
3
|
-
import { getAssetUrl } from "../../utils/assetBase.js";
|
|
4
|
-
import TableSettings from "./tableSettings.js";
|
|
5
|
-
import { Button } from "../Button/index.js";
|
|
6
|
-
import { getTableMeta } from "./tableFunctions.js";
|
|
7
|
-
const tableSettingsIcon = getAssetUrl("icons/tableSettingIcon.svg");
|
|
8
|
-
getAssetUrl("icons/compress.svg");
|
|
9
|
-
const tableSortIcon = getAssetUrl("icons/tableSortIcon.svg");
|
|
10
|
-
function TableMoreOptions({
|
|
11
|
-
showMenu,
|
|
12
|
-
extraButtons,
|
|
13
|
-
hideRowHeightOptionMenu,
|
|
14
|
-
onRowHeightChange,
|
|
15
|
-
rowHeight,
|
|
16
|
-
isGroupRows,
|
|
17
|
-
actualRef,
|
|
18
|
-
Columns,
|
|
19
|
-
handleMenuClick,
|
|
20
|
-
tableFontSize,
|
|
21
|
-
setTableFontSize,
|
|
22
|
-
onNumberFormatChange,
|
|
23
|
-
colDefs,
|
|
24
|
-
setShowMenu,
|
|
25
|
-
showTableSetting,
|
|
26
|
-
setShowTableSetting,
|
|
27
|
-
setTableSettingOpen,
|
|
28
|
-
showHideEditableCells,
|
|
29
|
-
handleShowHideEditableCells,
|
|
30
|
-
tableActions,
|
|
31
|
-
onTableActionsTabClick,
|
|
32
|
-
showFilterStrip,
|
|
33
|
-
hideTableFormat,
|
|
34
|
-
hideTableActions,
|
|
35
|
-
explicitlyCloseTableSetting,
|
|
36
|
-
savedViewsOptions,
|
|
37
|
-
handleSaveAndApply,
|
|
38
|
-
maxSavedViews,
|
|
39
|
-
handleSavedViewClick,
|
|
40
|
-
handleEditSaveView,
|
|
41
|
-
isSaveViewEnabled,
|
|
42
|
-
isSavingViewLoading,
|
|
43
|
-
handleDeleteViewClick,
|
|
44
|
-
isDeleteViewLoading,
|
|
45
|
-
handleSetDefaultView,
|
|
46
|
-
hideFontSize,
|
|
47
|
-
hideNumericFormat,
|
|
48
|
-
onContentDensityChange,
|
|
49
|
-
customTabInTableSettings,
|
|
50
|
-
saveViewCustomFilter,
|
|
51
|
-
customRenderSaveViewContent,
|
|
52
|
-
onTableSettingClick,
|
|
53
|
-
deleteViewPromptText,
|
|
54
|
-
isViewNameUniqueAcrossTypes,
|
|
55
|
-
tableSettingsTitle,
|
|
56
|
-
registerTableSettingToggle,
|
|
57
|
-
numericFormatDefault,
|
|
58
|
-
onAdvanceSortClick,
|
|
59
|
-
advanceSortEnabled = true
|
|
60
|
-
}) {
|
|
61
|
-
var _a, _b;
|
|
62
|
-
const [showDensityMenu, setShowDensityMenu] = useState(false);
|
|
63
|
-
const [isExpand, setIsExpand] = useState(false);
|
|
64
|
-
const [showEditableCells, setShowEditableCells] = useState(false);
|
|
65
|
-
const handleDensityMenuOpen = (e) => {
|
|
66
|
-
e.stopPropagation();
|
|
67
|
-
setShowDensityMenu(!showDensityMenu);
|
|
68
|
-
};
|
|
69
|
-
const handleDensityMenuClose = () => {
|
|
70
|
-
setShowDensityMenu(false);
|
|
71
|
-
};
|
|
72
|
-
const handleTableSettingClick = () => {
|
|
73
|
-
setShowTableSetting(true);
|
|
74
|
-
setTableSettingOpen(true);
|
|
75
|
-
onTableSettingClick(true);
|
|
76
|
-
};
|
|
77
|
-
const handleClickOutside = (e) => {
|
|
78
|
-
if (showDensityMenu && !e.target.closest(".density-menu-container")) {
|
|
79
|
-
setShowDensityMenu(false);
|
|
80
|
-
setTableSettingOpen(false);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
document.addEventListener("click", handleClickOutside);
|
|
85
|
-
return () => {
|
|
86
|
-
document.removeEventListener("click", handleClickOutside);
|
|
87
|
-
};
|
|
88
|
-
}, [showDensityMenu]);
|
|
89
|
-
const handleChange = () => {
|
|
90
|
-
if (isExpand) {
|
|
91
|
-
actualRef.current.api.collapseAll();
|
|
92
|
-
setIsExpand(false);
|
|
93
|
-
const meta = getTableMeta(actualRef.current.api);
|
|
94
|
-
if (meta) meta.isExpand = false;
|
|
95
|
-
} else {
|
|
96
|
-
actualRef.current.api.expandAll();
|
|
97
|
-
setIsExpand(true);
|
|
98
|
-
const meta = getTableMeta(actualRef.current.api);
|
|
99
|
-
if (meta) meta.isExpand = true;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
useEffect(() => {
|
|
103
|
-
setShowDensityMenu(false);
|
|
104
|
-
setShowMenu(false);
|
|
105
|
-
}, [explicitlyCloseTableSetting]);
|
|
106
|
-
useEffect(() => {
|
|
107
|
-
var _a2;
|
|
108
|
-
const meta = getTableMeta((_a2 = actualRef == null ? void 0 : actualRef.current) == null ? void 0 : _a2.api);
|
|
109
|
-
if (meta) {
|
|
110
|
-
meta.isTableSettingOpen = showTableSetting;
|
|
111
|
-
}
|
|
112
|
-
}, [showTableSetting]);
|
|
113
|
-
useEffect(() => {
|
|
114
|
-
var _a2, _b2;
|
|
115
|
-
setIsExpand((_b2 = getTableMeta((_a2 = actualRef == null ? void 0 : actualRef.current) == null ? void 0 : _a2.api)) == null ? void 0 : _b2.isExpand);
|
|
116
|
-
}, [(_b = getTableMeta((_a = actualRef == null ? void 0 : actualRef.current) == null ? void 0 : _a.api)) == null ? void 0 : _b.isExpand]);
|
|
117
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
118
|
-
!showTableSetting && /* @__PURE__ */ jsxs(
|
|
119
|
-
"div",
|
|
120
|
-
{
|
|
121
|
-
className: `table-more-options-container ${showMenu ? "display-table-more-options" : ""}`,
|
|
122
|
-
children: [
|
|
123
|
-
extraButtons,
|
|
124
|
-
extraButtons ? /* @__PURE__ */ jsx("div", { className: "horizontal-line" }) : null,
|
|
125
|
-
/* @__PURE__ */ jsxs("div", { className: "table-option-footer-wrapper", children: [
|
|
126
|
-
/* @__PURE__ */ jsxs(
|
|
127
|
-
"div",
|
|
128
|
-
{
|
|
129
|
-
className: `table-settings-container ${!extraButtons ? "table-settings-container-without-extra-buttons" : ""}`,
|
|
130
|
-
tabIndex: 0,
|
|
131
|
-
onClick: handleTableSettingClick,
|
|
132
|
-
onKeyDown: (e) => {
|
|
133
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
134
|
-
e.preventDefault();
|
|
135
|
-
handleTableSettingClick();
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
children: [
|
|
139
|
-
/* @__PURE__ */ jsx("img", { alt: "tableOptionButtonIcon", src: tableSettingsIcon }),
|
|
140
|
-
/* @__PURE__ */ jsx("span", { className: "table-settings-text", children: "Table Settings" })
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
),
|
|
144
|
-
!hideRowHeightOptionMenu && /* @__PURE__ */ jsxs("div", { className: "density-menu-wrapper", children: [
|
|
145
|
-
/* @__PURE__ */ jsx(
|
|
146
|
-
"div",
|
|
147
|
-
{
|
|
148
|
-
className: `table-settings-container table-density-container ${showDensityMenu ? "density-menu-open" : ""}`,
|
|
149
|
-
tabIndex: 0,
|
|
150
|
-
onClick: handleDensityMenuOpen,
|
|
151
|
-
onKeyDown: (e) => {
|
|
152
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
153
|
-
e.preventDefault();
|
|
154
|
-
handleDensityMenuOpen(e);
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
children: /* @__PURE__ */ jsx("span", { className: "table-settings-text", children: "Row size" })
|
|
158
|
-
}
|
|
159
|
-
),
|
|
160
|
-
showDensityMenu && /* @__PURE__ */ jsxs("div", { className: "density-menu-container", children: [
|
|
161
|
-
/* @__PURE__ */ jsx(
|
|
162
|
-
"div",
|
|
163
|
-
{
|
|
164
|
-
className: `density-menu-item default_menu ${rowHeight === 46 ? "selected" : ""}`,
|
|
165
|
-
tabIndex: 0,
|
|
166
|
-
onClick: () => {
|
|
167
|
-
onRowHeightChange(46);
|
|
168
|
-
handleDensityMenuClose();
|
|
169
|
-
onContentDensityChange == null ? void 0 : onContentDensityChange("default");
|
|
170
|
-
},
|
|
171
|
-
onKeyDown: (e) => {
|
|
172
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
173
|
-
e.preventDefault();
|
|
174
|
-
onRowHeightChange(46);
|
|
175
|
-
handleDensityMenuClose();
|
|
176
|
-
onContentDensityChange == null ? void 0 : onContentDensityChange("default");
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
children: /* @__PURE__ */ jsx("span", { className: "density-menu-item-text", children: "Medium" })
|
|
180
|
-
}
|
|
181
|
-
),
|
|
182
|
-
/* @__PURE__ */ jsx(
|
|
183
|
-
"div",
|
|
184
|
-
{
|
|
185
|
-
className: `density-menu-item compact_menu ${rowHeight === 30 ? "selected" : ""}`,
|
|
186
|
-
tabIndex: 0,
|
|
187
|
-
onClick: () => {
|
|
188
|
-
onRowHeightChange(30);
|
|
189
|
-
handleDensityMenuClose();
|
|
190
|
-
onContentDensityChange == null ? void 0 : onContentDensityChange("compact");
|
|
191
|
-
},
|
|
192
|
-
onKeyDown: (e) => {
|
|
193
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
194
|
-
e.preventDefault();
|
|
195
|
-
onRowHeightChange(30);
|
|
196
|
-
handleDensityMenuClose();
|
|
197
|
-
onContentDensityChange == null ? void 0 : onContentDensityChange("compact");
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
children: /* @__PURE__ */ jsx("span", { className: "density-menu-item-text", children: "Small" })
|
|
201
|
-
}
|
|
202
|
-
),
|
|
203
|
-
/* @__PURE__ */ jsx(
|
|
204
|
-
"div",
|
|
205
|
-
{
|
|
206
|
-
className: `density-menu-item comfort_menu ${rowHeight === 52 ? "selected" : ""}`,
|
|
207
|
-
tabIndex: 0,
|
|
208
|
-
onClick: () => {
|
|
209
|
-
onRowHeightChange(52);
|
|
210
|
-
handleDensityMenuClose();
|
|
211
|
-
onContentDensityChange == null ? void 0 : onContentDensityChange("comfort");
|
|
212
|
-
},
|
|
213
|
-
onKeyDown: (e) => {
|
|
214
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
215
|
-
e.preventDefault();
|
|
216
|
-
onRowHeightChange(52);
|
|
217
|
-
handleDensityMenuClose();
|
|
218
|
-
onContentDensityChange == null ? void 0 : onContentDensityChange("comfort");
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
children: /* @__PURE__ */ jsx("span", { className: "density-menu-item-text", children: "Large" })
|
|
222
|
-
}
|
|
223
|
-
)
|
|
224
|
-
] })
|
|
225
|
-
] }),
|
|
226
|
-
advanceSortEnabled && onAdvanceSortClick && /* @__PURE__ */ jsxs(
|
|
227
|
-
"div",
|
|
228
|
-
{
|
|
229
|
-
className: "table-settings-container",
|
|
230
|
-
tabIndex: 0,
|
|
231
|
-
onClick: () => {
|
|
232
|
-
onAdvanceSortClick();
|
|
233
|
-
setShowMenu(false);
|
|
234
|
-
},
|
|
235
|
-
onKeyDown: (e) => {
|
|
236
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
237
|
-
e.preventDefault();
|
|
238
|
-
onAdvanceSortClick();
|
|
239
|
-
setShowMenu(false);
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
children: [
|
|
243
|
-
/* @__PURE__ */ jsx("img", { alt: "advance sort", src: tableSortIcon }),
|
|
244
|
-
/* @__PURE__ */ jsx("span", { className: "table-settings-text", children: "Advance Sort" })
|
|
245
|
-
]
|
|
246
|
-
}
|
|
247
|
-
),
|
|
248
|
-
showHideEditableCells ? /* @__PURE__ */ jsx("div", { className: "show-hide-editable-cells-container", children: /* @__PURE__ */ jsx(
|
|
249
|
-
Button,
|
|
250
|
-
{
|
|
251
|
-
className: showEditableCells ? "show-editable-cells-icon" : "hide-editable-cells-icon",
|
|
252
|
-
"data-icon": "show-hide-editable-cells",
|
|
253
|
-
"data-type": "table-icon",
|
|
254
|
-
variant: "secondary",
|
|
255
|
-
onClick: () => {
|
|
256
|
-
setShowEditableCells(!showEditableCells);
|
|
257
|
-
handleShowHideEditableCells();
|
|
258
|
-
},
|
|
259
|
-
children: !showEditableCells ? "Hide editable cells" : "Show editable cells"
|
|
260
|
-
}
|
|
261
|
-
) }) : null,
|
|
262
|
-
isGroupRows ? /* @__PURE__ */ jsx("div", { className: "group-row-container", children: /* @__PURE__ */ jsx(
|
|
263
|
-
Button,
|
|
264
|
-
{
|
|
265
|
-
className: isExpand ? "expand-icon" : "collapse-icon",
|
|
266
|
-
"data-icon": "unfold-row-group",
|
|
267
|
-
"data-type": "table-icon",
|
|
268
|
-
variant: "secondary",
|
|
269
|
-
onClick: handleChange,
|
|
270
|
-
children: !isExpand ? "Expand all rows" : "Collapse all rows"
|
|
271
|
-
}
|
|
272
|
-
) }) : null
|
|
273
|
-
] })
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
),
|
|
277
|
-
/* @__PURE__ */ jsx("div", { className: `${showTableSetting ? "show-table-settings" : ""} table-settings-wrapper`, children: /* @__PURE__ */ jsx(
|
|
278
|
-
TableSettings,
|
|
279
|
-
{
|
|
280
|
-
actualRef,
|
|
281
|
-
colDefs,
|
|
282
|
-
Columns,
|
|
283
|
-
customRenderSaveViewContent,
|
|
284
|
-
customTabInTableSettings,
|
|
285
|
-
deleteViewPromptText,
|
|
286
|
-
handleDeleteViewClick,
|
|
287
|
-
handleEditSaveView,
|
|
288
|
-
handleMenuClick,
|
|
289
|
-
handleSaveAndApply,
|
|
290
|
-
handleSavedViewClick,
|
|
291
|
-
handleSetDefaultView,
|
|
292
|
-
hideFontSize,
|
|
293
|
-
hideNumericFormat,
|
|
294
|
-
hideTableActions,
|
|
295
|
-
hideTableFormat,
|
|
296
|
-
isDeleteViewLoading,
|
|
297
|
-
isSaveViewEnabled,
|
|
298
|
-
isSavingViewLoading,
|
|
299
|
-
isViewNameUniqueAcrossTypes,
|
|
300
|
-
maxSavedViews,
|
|
301
|
-
numericFormatDefault,
|
|
302
|
-
registerTableSettingToggle,
|
|
303
|
-
savedViewsOptions,
|
|
304
|
-
saveViewCustomFilter,
|
|
305
|
-
setShowMenu,
|
|
306
|
-
setShowTableSetting,
|
|
307
|
-
setTableFontSize,
|
|
308
|
-
setTableSettingOpen,
|
|
309
|
-
showFilterStrip,
|
|
310
|
-
showMenu,
|
|
311
|
-
showTableSetting,
|
|
312
|
-
tableActions,
|
|
313
|
-
tableFontSize,
|
|
314
|
-
tableSettingsTitle,
|
|
315
|
-
onNumberFormatChange,
|
|
316
|
-
onTableActionsTabClick,
|
|
317
|
-
onTableSettingClick
|
|
318
|
-
}
|
|
319
|
-
) })
|
|
320
|
-
] });
|
|
321
|
-
}
|
|
322
|
-
export {
|
|
323
|
-
TableMoreOptions as default
|
|
324
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export default function TablePagination({ actualRef, localPageSize, setLocalPageSize, paginationPageSizeSelector, }: {
|
|
2
|
-
actualRef: any;
|
|
3
|
-
localPageSize: any;
|
|
4
|
-
setLocalPageSize: any;
|
|
5
|
-
paginationPageSizeSelector: any;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=tablePagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tablePagination.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tablePagination.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,0BAA0B,GAC3B;;;;;CAAA,2CAqDA"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import default_1 from "../../node_modules/@mui/icons-material/ExpandLess.js";
|
|
4
|
-
import { Button } from "../Button/index.js";
|
|
5
|
-
import { Menu } from "../Menu/index.js";
|
|
6
|
-
function TablePagination({
|
|
7
|
-
actualRef,
|
|
8
|
-
localPageSize,
|
|
9
|
-
setLocalPageSize,
|
|
10
|
-
paginationPageSizeSelector
|
|
11
|
-
}) {
|
|
12
|
-
const [paginationOptionsAnchorEl, setPaginationOptionsAnchorEl] = useState(null);
|
|
13
|
-
const paginationOptionsOpen = Boolean(paginationOptionsAnchorEl);
|
|
14
|
-
const handlePageSizeClick = (e) => {
|
|
15
|
-
setPaginationOptionsAnchorEl(e.currentTarget);
|
|
16
|
-
};
|
|
17
|
-
const onPageSizeChange = (val) => {
|
|
18
|
-
var _a, _b;
|
|
19
|
-
setLocalPageSize(val);
|
|
20
|
-
(_b = (_a = actualRef == null ? void 0 : actualRef.current) == null ? void 0 : _a.api) == null ? void 0 : _b.paginationSetPageSize(val);
|
|
21
|
-
setPaginationOptionsAnchorEl(null);
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ jsxs("div", { className: "pagination-container", children: [
|
|
24
|
-
/* @__PURE__ */ jsx("div", { className: "select-button-container", children: /* @__PURE__ */ jsx(
|
|
25
|
-
Button,
|
|
26
|
-
{
|
|
27
|
-
"data-collapsed": !paginationOptionsOpen,
|
|
28
|
-
"data-type": "pagination-btn",
|
|
29
|
-
icon: /* @__PURE__ */ jsx(default_1, {}),
|
|
30
|
-
iconPlacement: "right",
|
|
31
|
-
label: `${localPageSize} per page`,
|
|
32
|
-
variant: "secondary",
|
|
33
|
-
onClick: handlePageSizeClick,
|
|
34
|
-
children: /* @__PURE__ */ jsx("span", { className: "ia-pageSize", children: `${localPageSize} per page` })
|
|
35
|
-
}
|
|
36
|
-
) }),
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
38
|
-
Menu,
|
|
39
|
-
{
|
|
40
|
-
anchorEl: paginationOptionsAnchorEl,
|
|
41
|
-
anchorOrigin: {
|
|
42
|
-
vertical: "top",
|
|
43
|
-
horizontal: "center"
|
|
44
|
-
},
|
|
45
|
-
open: paginationOptionsOpen,
|
|
46
|
-
options: paginationPageSizeSelector.map((opt) => ({
|
|
47
|
-
label: `${opt} per page`,
|
|
48
|
-
onClick: () => {
|
|
49
|
-
onPageSizeChange(opt);
|
|
50
|
-
},
|
|
51
|
-
value: opt
|
|
52
|
-
})),
|
|
53
|
-
selected: localPageSize,
|
|
54
|
-
transformOrigin: {
|
|
55
|
-
vertical: "bottom",
|
|
56
|
-
horizontal: "center"
|
|
57
|
-
},
|
|
58
|
-
onClose: () => {
|
|
59
|
-
setPaginationOptionsAnchorEl(null);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
] });
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
TablePagination as default
|
|
67
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
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=tableSettings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableSettings.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableSettings.tsx"],"names":[],"mappings":"AAQA,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,2CA2NA"}
|