linear-react-components-ui 2.0.1 → 2.1.0-beta.0

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 (49) hide show
  1. package/lib/_virtual/index.js +8 -0
  2. package/lib/_virtual/index.js.map +1 -0
  3. package/lib/_virtual/index2.js +5 -0
  4. package/lib/_virtual/index2.js.map +1 -0
  5. package/lib/_virtual/index3.js +5 -0
  6. package/lib/_virtual/index3.js.map +1 -0
  7. package/lib/_virtual/react-is.development.js +5 -0
  8. package/lib/_virtual/react-is.development.js.map +1 -0
  9. package/lib/_virtual/react-is.production.min.js +5 -0
  10. package/lib/_virtual/react-is.production.min.js.map +1 -0
  11. package/lib/inputs/number/Currency.js +17 -19
  12. package/lib/inputs/number/Currency.js.map +1 -1
  13. package/lib/inputs/number/Decimal.js +17 -19
  14. package/lib/inputs/number/Decimal.js.map +1 -1
  15. package/lib/inputs/number/index.js +15 -17
  16. package/lib/inputs/number/index.js.map +1 -1
  17. package/lib/inputs2/selectfield/base.js +1 -1
  18. package/lib/inputs2/selectfield/base.js.map +1 -1
  19. package/lib/menus/float/SubMenuContainer.d.ts +28 -10
  20. package/lib/menus/float/SubMenuContainer.js +83 -97
  21. package/lib/menus/float/SubMenuContainer.js.map +1 -1
  22. package/lib/node_modules/lodash/lodash.js +2 -2
  23. package/lib/node_modules/lodash/lodash.js.map +1 -1
  24. package/lib/node_modules/object-assign/index.js +79 -0
  25. package/lib/node_modules/object-assign/index.js.map +1 -0
  26. package/lib/node_modules/prop-types/checkPropTypes.js +69 -0
  27. package/lib/node_modules/prop-types/checkPropTypes.js.map +1 -0
  28. package/lib/node_modules/prop-types/factoryWithThrowingShims.js +59 -0
  29. package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  30. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +452 -0
  31. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  32. package/lib/node_modules/prop-types/index.js +21 -0
  33. package/lib/node_modules/prop-types/index.js.map +1 -0
  34. package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +13 -0
  35. package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  36. package/lib/node_modules/prop-types/lib/has.js +12 -0
  37. package/lib/node_modules/prop-types/lib/has.js.map +1 -0
  38. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +166 -0
  39. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  40. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +107 -0
  41. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  42. package/lib/node_modules/prop-types/node_modules/react-is/index.js +18 -0
  43. package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  44. package/lib/treetable/Row.js +304 -285
  45. package/lib/treetable/Row.js.map +1 -1
  46. package/lib/treetable/helpers.d.ts +2 -0
  47. package/lib/treetable/helpers.js.map +1 -1
  48. package/lib/treetable/types.d.ts +49 -0
  49. package/package.json +1 -1
@@ -12,7 +12,7 @@ import { TreeTableContext, searchChildrensPerRow } from "./helpers.js";
12
12
  import v1 from "../node_modules/uuid/dist/v1.js";
13
13
  import ToolBarGroup from "../toolbar/ToolBarGroup.js";
14
14
  const TreeRow = (props) => {
15
- const $ = compilerRuntimeExports.c(103);
15
+ const $ = compilerRuntimeExports.c(112);
16
16
  const {
17
17
  data,
18
18
  dataColumns,
@@ -26,38 +26,49 @@ const TreeRow = (props) => {
26
26
  rightToolbarElements,
27
27
  styleForRightToolbar,
28
28
  toolbarElementsValidations,
29
- openNodeId
29
+ openNodeIds,
30
+ startNodesOpened
30
31
  } = useContext(TreeTableContext);
31
32
  const {
32
33
  rowId,
33
34
  dataRow,
34
35
  rowLevel
35
36
  } = props;
36
- const [open, setOpen] = useState(false);
37
+ let t0;
38
+ if ($[0] !== dataRow.id || $[1] !== openNodeIds || $[2] !== startNodesOpened) {
39
+ t0 = startNodesOpened || openNodeIds?.includes(Number(dataRow.id));
40
+ $[0] = dataRow.id;
41
+ $[1] = openNodeIds;
42
+ $[2] = startNodesOpened;
43
+ $[3] = t0;
44
+ } else {
45
+ t0 = $[3];
46
+ }
47
+ const [open, setOpen] = useState(t0);
37
48
  const [childrens, setChildrens] = useState();
38
49
  const [isLoadingChildrens, setIsLoadingChildrens] = useState(false);
39
50
  const [showToolbarElements, setShowToolbarElements] = useState(false);
40
51
  const [firstRenderingOfChildrens, setFirstRenderingOfChildrens] = useState(false);
41
52
  const divContainerRef = useRef(null);
42
- let t0;
43
- if ($[0] !== data || $[1] !== parentPropName || $[2] !== rowId || $[3] !== rowLevel) {
44
- t0 = () => {
53
+ let t1;
54
+ if ($[4] !== data || $[5] !== parentPropName || $[6] !== rowId || $[7] !== rowLevel) {
55
+ t1 = () => {
45
56
  const dataChildrens = searchChildrensPerRow(data, parentPropName, rowId, rowLevel);
46
57
  setChildrens(dataChildrens);
47
58
  setIsLoadingChildrens(false);
48
59
  };
49
- $[0] = data;
50
- $[1] = parentPropName;
51
- $[2] = rowId;
52
- $[3] = rowLevel;
53
- $[4] = t0;
60
+ $[4] = data;
61
+ $[5] = parentPropName;
62
+ $[6] = rowId;
63
+ $[7] = rowLevel;
64
+ $[8] = t1;
54
65
  } else {
55
- t0 = $[4];
66
+ t1 = $[8];
56
67
  }
57
- const searchChildrensAndInsertState = t0;
58
- let t1;
59
- if ($[5] !== firstRenderingOfChildrens || $[6] !== onClickGetChildrens || $[7] !== open || $[8] !== rowId || $[9] !== searchChildrensAndInsertState) {
60
- t1 = () => {
68
+ const searchChildrensAndInsertState = t1;
69
+ let t2;
70
+ if ($[9] !== firstRenderingOfChildrens || $[10] !== onClickGetChildrens || $[11] !== open || $[12] !== rowId || $[13] !== searchChildrensAndInsertState) {
71
+ t2 = () => {
61
72
  if (!firstRenderingOfChildrens && !open) {
62
73
  setOpen(true);
63
74
  setIsLoadingChildrens(true);
@@ -71,19 +82,19 @@ const TreeRow = (props) => {
71
82
  setOpen(_temp3);
72
83
  }
73
84
  };
74
- $[5] = firstRenderingOfChildrens;
75
- $[6] = onClickGetChildrens;
76
- $[7] = open;
77
- $[8] = rowId;
78
- $[9] = searchChildrensAndInsertState;
79
- $[10] = t1;
85
+ $[9] = firstRenderingOfChildrens;
86
+ $[10] = onClickGetChildrens;
87
+ $[11] = open;
88
+ $[12] = rowId;
89
+ $[13] = searchChildrensAndInsertState;
90
+ $[14] = t2;
80
91
  } else {
81
- t1 = $[10];
92
+ t2 = $[14];
82
93
  }
83
- const handlerShowChildrens = t1;
84
- let t2;
85
- if ($[11] !== dataRow || $[12] !== toolbarElementsValidations) {
86
- t2 = (validationKey) => {
94
+ const handlerShowChildrens = t2;
95
+ let t3;
96
+ if ($[15] !== dataRow || $[16] !== toolbarElementsValidations) {
97
+ t3 = (validationKey) => {
87
98
  const validations = toolbarElementsValidations && toolbarElementsValidations[validationKey];
88
99
  const options = {
89
100
  disabled: {
@@ -107,16 +118,16 @@ const TreeRow = (props) => {
107
118
  }
108
119
  return elementBehavior;
109
120
  };
110
- $[11] = dataRow;
111
- $[12] = toolbarElementsValidations;
112
- $[13] = t2;
121
+ $[15] = dataRow;
122
+ $[16] = toolbarElementsValidations;
123
+ $[17] = t3;
113
124
  } else {
114
- t2 = $[13];
125
+ t3 = $[17];
115
126
  }
116
- const validateRowElement = t2;
117
- let t3;
118
- if ($[14] !== dataRow || $[15] !== toolbarElementsValidations || $[16] !== validateRowElement) {
119
- t3 = (elements) => {
127
+ const validateRowElement = t3;
128
+ let t4;
129
+ if ($[18] !== dataRow || $[19] !== toolbarElementsValidations || $[20] !== validateRowElement) {
130
+ t4 = (elements) => {
120
131
  let newElementsWithNewProps = [];
121
132
  if (elements) {
122
133
  newElementsWithNewProps = Children.map(elements, (element) => {
@@ -153,78 +164,78 @@ const TreeRow = (props) => {
153
164
  }
154
165
  return newElementsWithNewProps;
155
166
  };
156
- $[14] = dataRow;
157
- $[15] = toolbarElementsValidations;
158
- $[16] = validateRowElement;
159
- $[17] = t3;
167
+ $[18] = dataRow;
168
+ $[19] = toolbarElementsValidations;
169
+ $[20] = validateRowElement;
170
+ $[21] = t4;
160
171
  } else {
161
- t3 = $[17];
172
+ t4 = $[21];
162
173
  }
163
- const buildToolbarElements = t3;
164
- let t4;
165
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
166
- t4 = () => {
174
+ const buildToolbarElements = t4;
175
+ let t5;
176
+ if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
177
+ t5 = () => {
167
178
  setShowToolbarElements(true);
168
179
  };
169
- $[18] = t4;
180
+ $[22] = t5;
170
181
  } else {
171
- t4 = $[18];
182
+ t5 = $[22];
172
183
  }
173
- const handleOnMouseEnter = t4;
174
- let t5;
175
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
176
- t5 = (event) => {
184
+ const handleOnMouseEnter = t5;
185
+ let t6;
186
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
187
+ t6 = (event) => {
177
188
  const elementoAtual = document.elementFromPoint(event.clientX, event.clientY);
178
189
  if (divContainerRef.current && !divContainerRef.current.contains(elementoAtual)) {
179
190
  setShowToolbarElements(false);
180
191
  }
181
192
  };
182
- $[19] = t5;
193
+ $[23] = t6;
183
194
  } else {
184
- t5 = $[19];
195
+ t6 = $[23];
185
196
  }
186
- const handlerMouseInsideDivContainer = t5;
187
- let t6;
188
- if ($[20] !== searchChildrensAndInsertState) {
189
- t6 = () => {
197
+ const handlerMouseInsideDivContainer = t6;
198
+ let t7;
199
+ if ($[24] !== searchChildrensAndInsertState) {
200
+ t7 = () => {
190
201
  searchChildrensAndInsertState();
191
202
  };
192
- $[20] = searchChildrensAndInsertState;
193
- $[21] = t6;
203
+ $[24] = searchChildrensAndInsertState;
204
+ $[25] = t7;
194
205
  } else {
195
- t6 = $[21];
206
+ t7 = $[25];
196
207
  }
197
- let t7;
198
- if ($[22] !== data) {
199
- t7 = [data];
200
- $[22] = data;
201
- $[23] = t7;
208
+ let t8;
209
+ if ($[26] !== data) {
210
+ t8 = [data];
211
+ $[26] = data;
212
+ $[27] = t8;
202
213
  } else {
203
- t7 = $[23];
214
+ t8 = $[27];
204
215
  }
205
- useEffect(t6, t7);
206
- let t8;
207
- if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
208
- t8 = () => {
216
+ useEffect(t7, t8);
217
+ let t9;
218
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
219
+ t9 = () => {
209
220
  setIsLoadingChildrens(false);
210
221
  };
211
- $[24] = t8;
222
+ $[28] = t9;
212
223
  } else {
213
- t8 = $[24];
224
+ t9 = $[28];
214
225
  }
215
- let t9;
216
- if ($[25] !== childrens) {
217
- t9 = [childrens];
218
- $[25] = childrens;
219
- $[26] = t9;
226
+ let t10;
227
+ if ($[29] !== childrens) {
228
+ t10 = [childrens];
229
+ $[29] = childrens;
230
+ $[30] = t10;
220
231
  } else {
221
- t9 = $[26];
232
+ t10 = $[30];
222
233
  }
223
- useEffect(t8, t9);
224
- let t10;
234
+ useEffect(t9, t10);
225
235
  let t11;
226
- if ($[27] !== showToolbarElements) {
227
- t10 = () => {
236
+ let t12;
237
+ if ($[31] !== showToolbarElements) {
238
+ t11 = () => {
228
239
  if (showToolbarElements) {
229
240
  window.addEventListener("mousemove", handlerMouseInsideDivContainer);
230
241
  } else {
@@ -234,280 +245,288 @@ const TreeRow = (props) => {
234
245
  window.removeEventListener("mousemove", handlerMouseInsideDivContainer);
235
246
  };
236
247
  };
237
- t11 = [showToolbarElements];
238
- $[27] = showToolbarElements;
239
- $[28] = t10;
240
- $[29] = t11;
248
+ t12 = [showToolbarElements];
249
+ $[31] = showToolbarElements;
250
+ $[32] = t11;
251
+ $[33] = t12;
241
252
  } else {
242
- t10 = $[28];
243
- t11 = $[29];
253
+ t11 = $[32];
254
+ t12 = $[33];
244
255
  }
245
- useEffect(t10, t11);
246
- let t12;
247
- if ($[30] !== dataRow.id || $[31] !== openNodeId) {
248
- t12 = () => {
249
- if (openNodeId === Number(dataRow.id)) {
256
+ useEffect(t11, t12);
257
+ let t13;
258
+ if ($[34] !== dataRow.id || $[35] !== openNodeIds || $[36] !== searchChildrensAndInsertState || $[37] !== startNodesOpened) {
259
+ t13 = () => {
260
+ const shouldOpen = startNodesOpened || openNodeIds?.includes(Number(dataRow.id));
261
+ if (shouldOpen) {
250
262
  setOpen(true);
263
+ searchChildrensAndInsertState();
264
+ setFirstRenderingOfChildrens(true);
251
265
  }
252
266
  };
253
- $[30] = dataRow.id;
254
- $[31] = openNodeId;
255
- $[32] = t12;
256
- } else {
257
- t12 = $[32];
258
- }
259
- let t13;
260
- if ($[33] !== openNodeId) {
261
- t13 = [openNodeId];
262
- $[33] = openNodeId;
263
- $[34] = t13;
264
- } else {
265
- t13 = $[34];
266
- }
267
- useEffect(t12, t13);
268
- const t14 = dataColumns[0].name;
269
- let t15;
270
- if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
271
- t15 = v1();
272
- $[35] = t15;
273
- } else {
274
- t15 = $[35];
275
- }
276
- const t16 = `td-${t14}-${t15}`;
277
- const t17 = dataColumns[0].style;
278
- const t18 = `column-more-childrens ${rowLevel && "line-path-decoration"}`;
279
- const t19 = `${rowLevel}rem`;
280
- let t20;
281
- if ($[36] !== t19) {
282
- t20 = {
283
- marginLeft: t19
284
- };
285
- $[36] = t19;
286
- $[37] = t20;
287
- } else {
288
- t20 = $[37];
289
- }
267
+ $[34] = dataRow.id;
268
+ $[35] = openNodeIds;
269
+ $[36] = searchChildrensAndInsertState;
270
+ $[37] = startNodesOpened;
271
+ $[38] = t13;
272
+ } else {
273
+ t13 = $[38];
274
+ }
275
+ let t14;
276
+ if ($[39] !== data || $[40] !== dataRow.id || $[41] !== openNodeIds || $[42] !== startNodesOpened) {
277
+ t14 = [startNodesOpened, openNodeIds, data, dataRow.id];
278
+ $[39] = data;
279
+ $[40] = dataRow.id;
280
+ $[41] = openNodeIds;
281
+ $[42] = startNodesOpened;
282
+ $[43] = t14;
283
+ } else {
284
+ t14 = $[43];
285
+ }
286
+ useEffect(t13, t14);
287
+ const t15 = dataColumns[0].name;
288
+ let t16;
289
+ if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
290
+ t16 = v1();
291
+ $[44] = t16;
292
+ } else {
293
+ t16 = $[44];
294
+ }
295
+ const t17 = `td-${t15}-${t16}`;
296
+ const t18 = dataColumns[0].style;
297
+ const t19 = `column-more-childrens ${rowLevel && "line-path-decoration"}`;
298
+ const t20 = `${rowLevel}rem`;
290
299
  let t21;
291
- if ($[38] !== handlerShowChildrens) {
292
- t21 = () => handlerShowChildrens();
293
- $[38] = handlerShowChildrens;
294
- $[39] = t21;
300
+ if ($[45] !== t20) {
301
+ t21 = {
302
+ marginLeft: t20
303
+ };
304
+ $[45] = t20;
305
+ $[46] = t21;
295
306
  } else {
296
- t21 = $[39];
307
+ t21 = $[46];
297
308
  }
298
- const t22 = open ? "down" : "arrow_right";
299
- let t23;
300
- if ($[40] !== t22) {
301
- t23 = /* @__PURE__ */ jsx(Icon, { name: t22, size: 10 });
302
- $[40] = t22;
303
- $[41] = t23;
309
+ let t22;
310
+ if ($[47] !== handlerShowChildrens) {
311
+ t22 = () => handlerShowChildrens();
312
+ $[47] = handlerShowChildrens;
313
+ $[48] = t22;
304
314
  } else {
305
- t23 = $[41];
315
+ t22 = $[48];
306
316
  }
317
+ const t23 = open ? "down" : "arrow_right";
307
318
  let t24;
308
- if ($[42] !== t21 || $[43] !== t23) {
309
- t24 = /* @__PURE__ */ jsx("button", { tabIndex: -1, className: "open-close-children", onClick: t21, children: t23 });
310
- $[42] = t21;
311
- $[43] = t23;
312
- $[44] = t24;
319
+ if ($[49] !== t23) {
320
+ t24 = /* @__PURE__ */ jsx(Icon, { name: t23, size: 10 });
321
+ $[49] = t23;
322
+ $[50] = t24;
313
323
  } else {
314
- t24 = $[44];
324
+ t24 = $[50];
315
325
  }
316
326
  let t25;
317
- if ($[45] !== onClickFirstColumn || $[46] !== rowId) {
318
- t25 = () => onClickFirstColumn ? onClickFirstColumn(rowId) : {};
319
- $[45] = onClickFirstColumn;
320
- $[46] = rowId;
321
- $[47] = t25;
327
+ if ($[51] !== t22 || $[52] !== t24) {
328
+ t25 = /* @__PURE__ */ jsx("button", { tabIndex: -1, className: "open-close-children", onClick: t22, children: t24 });
329
+ $[51] = t22;
330
+ $[52] = t24;
331
+ $[53] = t25;
322
332
  } else {
323
- t25 = $[47];
333
+ t25 = $[53];
324
334
  }
325
- const t26 = dataRow[dataColumns[0].name];
326
- let t27;
327
- if ($[48] !== t25 || $[49] !== t26) {
328
- t27 = /* @__PURE__ */ jsx("span", { tabIndex: -1, role: "button", className: "value-button", onClick: t25, children: t26 });
329
- $[48] = t25;
330
- $[49] = t26;
331
- $[50] = t27;
335
+ let t26;
336
+ if ($[54] !== onClickFirstColumn || $[55] !== rowId) {
337
+ t26 = () => onClickFirstColumn ? onClickFirstColumn(rowId) : {};
338
+ $[54] = onClickFirstColumn;
339
+ $[55] = rowId;
340
+ $[56] = t26;
332
341
  } else {
333
- t27 = $[50];
342
+ t26 = $[56];
334
343
  }
344
+ const t27 = dataRow[dataColumns[0].name];
335
345
  let t28;
336
- if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
337
- t28 = v1();
338
- $[51] = t28;
346
+ if ($[57] !== t26 || $[58] !== t27) {
347
+ t28 = /* @__PURE__ */ jsx("span", { tabIndex: -1, role: "button", className: "value-button", onClick: t26, children: t27 });
348
+ $[57] = t26;
349
+ $[58] = t27;
350
+ $[59] = t28;
339
351
  } else {
340
- t28 = $[51];
352
+ t28 = $[59];
341
353
  }
342
354
  let t29;
343
- if ($[52] !== styleForLeftToolbar) {
344
- t29 = {
355
+ if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
356
+ t29 = v1();
357
+ $[60] = t29;
358
+ } else {
359
+ t29 = $[60];
360
+ }
361
+ let t30;
362
+ if ($[61] !== styleForLeftToolbar) {
363
+ t30 = {
345
364
  float: "left",
346
365
  height: "fit-content",
347
366
  ...styleForLeftToolbar
348
367
  };
349
- $[52] = styleForLeftToolbar;
350
- $[53] = t29;
368
+ $[61] = styleForLeftToolbar;
369
+ $[62] = t30;
351
370
  } else {
352
- t29 = $[53];
353
- }
354
- let t30;
355
- if ($[54] !== buildToolbarElements || $[55] !== leftToolbarElements || $[56] !== showToolbarElements) {
356
- t30 = showToolbarElements && leftToolbarElements && buildToolbarElements(leftToolbarElements);
357
- $[54] = buildToolbarElements;
358
- $[55] = leftToolbarElements;
359
- $[56] = showToolbarElements;
360
- $[57] = t30;
361
- } else {
362
- t30 = $[57];
371
+ t30 = $[62];
363
372
  }
364
373
  let t31;
365
- if ($[58] !== t29 || $[59] !== t30) {
366
- t31 = /* @__PURE__ */ jsx("span", { className: "container-toolbar-buttons", children: /* @__PURE__ */ jsx(ToolBar, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ jsx(ToolBarGroup, { style: t29, children: t30 }, `left-toolbar-${t28}`) }) });
367
- $[58] = t29;
368
- $[59] = t30;
369
- $[60] = t31;
374
+ if ($[63] !== buildToolbarElements || $[64] !== leftToolbarElements || $[65] !== showToolbarElements) {
375
+ t31 = showToolbarElements && leftToolbarElements && buildToolbarElements(leftToolbarElements);
376
+ $[63] = buildToolbarElements;
377
+ $[64] = leftToolbarElements;
378
+ $[65] = showToolbarElements;
379
+ $[66] = t31;
370
380
  } else {
371
- t31 = $[60];
381
+ t31 = $[66];
372
382
  }
373
383
  let t32;
374
- if ($[61] !== t18 || $[62] !== t20 || $[63] !== t24 || $[64] !== t27 || $[65] !== t31) {
375
- t32 = /* @__PURE__ */ jsxs("span", { className: t18, style: t20, children: [
376
- t24,
377
- t27,
378
- t31
379
- ] });
380
- $[61] = t18;
381
- $[62] = t20;
382
- $[63] = t24;
383
- $[64] = t27;
384
- $[65] = t31;
385
- $[66] = t32;
384
+ if ($[67] !== t30 || $[68] !== t31) {
385
+ t32 = /* @__PURE__ */ jsx("span", { className: "container-toolbar-buttons", children: /* @__PURE__ */ jsx(ToolBar, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ jsx(ToolBarGroup, { style: t30, children: t31 }, `left-toolbar-${t29}`) }) });
386
+ $[67] = t30;
387
+ $[68] = t31;
388
+ $[69] = t32;
386
389
  } else {
387
- t32 = $[66];
390
+ t32 = $[69];
388
391
  }
389
392
  let t33;
390
- if ($[67] === Symbol.for("react.memo_cache_sentinel")) {
391
- t33 = v1();
392
- $[67] = t33;
393
+ if ($[70] !== t19 || $[71] !== t21 || $[72] !== t25 || $[73] !== t28 || $[74] !== t32) {
394
+ t33 = /* @__PURE__ */ jsxs("span", { className: t19, style: t21, children: [
395
+ t25,
396
+ t28,
397
+ t32
398
+ ] });
399
+ $[70] = t19;
400
+ $[71] = t21;
401
+ $[72] = t25;
402
+ $[73] = t28;
403
+ $[74] = t32;
404
+ $[75] = t33;
393
405
  } else {
394
- t33 = $[67];
406
+ t33 = $[75];
395
407
  }
396
408
  let t34;
397
- if ($[68] !== styleForRightToolbar) {
398
- t34 = {
409
+ if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
410
+ t34 = v1();
411
+ $[76] = t34;
412
+ } else {
413
+ t34 = $[76];
414
+ }
415
+ let t35;
416
+ if ($[77] !== styleForRightToolbar) {
417
+ t35 = {
399
418
  float: "right",
400
419
  height: "fit-content",
401
420
  gap: "4px",
402
421
  ...styleForRightToolbar
403
422
  };
404
- $[68] = styleForRightToolbar;
405
- $[69] = t34;
423
+ $[77] = styleForRightToolbar;
424
+ $[78] = t35;
406
425
  } else {
407
- t34 = $[69];
408
- }
409
- let t35;
410
- if ($[70] !== buildToolbarElements || $[71] !== rightToolbarElements) {
411
- t35 = rightToolbarElements && buildToolbarElements(rightToolbarElements);
412
- $[70] = buildToolbarElements;
413
- $[71] = rightToolbarElements;
414
- $[72] = t35;
415
- } else {
416
- t35 = $[72];
426
+ t35 = $[78];
417
427
  }
418
428
  let t36;
419
- if ($[73] !== t34 || $[74] !== t35) {
420
- t36 = /* @__PURE__ */ jsx("span", { className: "container-toolbar-info", children: /* @__PURE__ */ jsx(ToolBar, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ jsx(ToolBarGroup, { style: t34, children: t35 }, `right-toolbar-${t33}`) }) });
421
- $[73] = t34;
422
- $[74] = t35;
423
- $[75] = t36;
429
+ if ($[79] !== buildToolbarElements || $[80] !== rightToolbarElements) {
430
+ t36 = rightToolbarElements && buildToolbarElements(rightToolbarElements);
431
+ $[79] = buildToolbarElements;
432
+ $[80] = rightToolbarElements;
433
+ $[81] = t36;
424
434
  } else {
425
- t36 = $[75];
435
+ t36 = $[81];
426
436
  }
427
437
  let t37;
428
- if ($[76] !== t32 || $[77] !== t36) {
429
- t37 = /* @__PURE__ */ jsxs("div", { ref: divContainerRef, className: "column-container", onMouseEnter: handleOnMouseEnter, children: [
430
- t32,
431
- t36
432
- ] });
433
- $[76] = t32;
434
- $[77] = t36;
435
- $[78] = t37;
438
+ if ($[82] !== t35 || $[83] !== t36) {
439
+ t37 = /* @__PURE__ */ jsx("span", { className: "container-toolbar-info", children: /* @__PURE__ */ jsx(ToolBar, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ jsx(ToolBarGroup, { style: t35, children: t36 }, `right-toolbar-${t34}`) }) });
440
+ $[82] = t35;
441
+ $[83] = t36;
442
+ $[84] = t37;
436
443
  } else {
437
- t37 = $[78];
444
+ t37 = $[84];
438
445
  }
439
446
  let t38;
440
- if ($[79] !== dataColumns[0].style || $[80] !== t16 || $[81] !== t37) {
441
- t38 = /* @__PURE__ */ jsx(RowColumn, { ignoreTableColClick: true, style: t17, children: t37 }, t16);
442
- $[79] = dataColumns[0].style;
443
- $[80] = t16;
444
- $[81] = t37;
445
- $[82] = t38;
447
+ if ($[85] !== t33 || $[86] !== t37) {
448
+ t38 = /* @__PURE__ */ jsxs("div", { ref: divContainerRef, className: "column-container", onMouseEnter: handleOnMouseEnter, children: [
449
+ t33,
450
+ t37
451
+ ] });
452
+ $[85] = t33;
453
+ $[86] = t37;
454
+ $[87] = t38;
446
455
  } else {
447
- t38 = $[82];
456
+ t38 = $[87];
448
457
  }
449
458
  let t39;
450
- if ($[83] !== dataColumns || $[84] !== dataRow) {
451
- let t402;
452
- if ($[86] !== dataRow) {
453
- t402 = (column) => /* @__PURE__ */ jsx(RowColumn, { style: {
459
+ if ($[88] !== dataColumns[0].style || $[89] !== t17 || $[90] !== t38) {
460
+ t39 = /* @__PURE__ */ jsx(RowColumn, { ignoreTableColClick: true, style: t18, children: t38 }, t17);
461
+ $[88] = dataColumns[0].style;
462
+ $[89] = t17;
463
+ $[90] = t38;
464
+ $[91] = t39;
465
+ } else {
466
+ t39 = $[91];
467
+ }
468
+ let t40;
469
+ if ($[92] !== dataColumns || $[93] !== dataRow) {
470
+ let t412;
471
+ if ($[95] !== dataRow) {
472
+ t412 = (column) => /* @__PURE__ */ jsx(RowColumn, { style: {
454
473
  ...column.style
455
474
  }, ignoreTableColClick: true, children: dataRow[column.name] }, `key-${column.name}-${v1()}`);
456
- $[86] = dataRow;
457
- $[87] = t402;
475
+ $[95] = dataRow;
476
+ $[96] = t412;
458
477
  } else {
459
- t402 = $[87];
478
+ t412 = $[96];
460
479
  }
461
- t39 = dataColumns.slice(1).map(t402);
462
- $[83] = dataColumns;
463
- $[84] = dataRow;
464
- $[85] = t39;
480
+ t40 = dataColumns.slice(1).map(t412);
481
+ $[92] = dataColumns;
482
+ $[93] = dataRow;
483
+ $[94] = t40;
465
484
  } else {
466
- t39 = $[85];
485
+ t40 = $[94];
467
486
  }
468
- let t40;
469
- if ($[88] !== props || $[89] !== rowId || $[90] !== t38 || $[91] !== t39) {
470
- t40 = /* @__PURE__ */ jsxs(Row, { ...props, dataId: rowId, customClass: "tree-row-element", children: [
471
- t38,
472
- t39
487
+ let t41;
488
+ if ($[97] !== props || $[98] !== rowId || $[99] !== t39 || $[100] !== t40) {
489
+ t41 = /* @__PURE__ */ jsxs(Row, { ...props, dataId: rowId, customClass: "tree-row-element", children: [
490
+ t39,
491
+ t40
473
492
  ] });
474
- $[88] = props;
475
- $[89] = rowId;
476
- $[90] = t38;
477
- $[91] = t39;
478
- $[92] = t40;
493
+ $[97] = props;
494
+ $[98] = rowId;
495
+ $[99] = t39;
496
+ $[100] = t40;
497
+ $[101] = t41;
479
498
  } else {
480
- t40 = $[92];
499
+ t41 = $[101];
481
500
  }
482
- let t41;
483
- if ($[93] !== childrens || $[94] !== dataColumns.length || $[95] !== isLoadingChildrens || $[96] !== open || $[97] !== rootPropName || $[98] !== stylesForRow) {
484
- t41 = open && /* @__PURE__ */ jsx(Fragment, { children: childrens && childrens.length === 0 && isLoadingChildrens ? /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsx("td", { colSpan: dataColumns.length, className: "td-loading-childrens", children: /* @__PURE__ */ jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ jsx(SpinnerLoading, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens") : /* @__PURE__ */ jsxs(Fragment, { children: [
501
+ let t42;
502
+ if ($[102] !== childrens || $[103] !== dataColumns.length || $[104] !== isLoadingChildrens || $[105] !== open || $[106] !== rootPropName || $[107] !== stylesForRow) {
503
+ t42 = open && /* @__PURE__ */ jsx(Fragment, { children: childrens && childrens.length === 0 && isLoadingChildrens ? /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsx("td", { colSpan: dataColumns.length, className: "td-loading-childrens", children: /* @__PURE__ */ jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ jsx(SpinnerLoading, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens") : /* @__PURE__ */ jsxs(Fragment, { children: [
485
504
  childrens && childrens.map((item) => /* @__PURE__ */ jsx(TreeRow, { dataRow: item, rowLevel: item.rowLevel ? item.rowLevel + 1 : 1, rowId: `${item[rootPropName]}`, style: stylesForRow }, item[rootPropName])),
486
505
  childrens && childrens.length !== 0 && isLoadingChildrens && /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsx("td", { colSpan: dataColumns.length, className: "td-loading-childrens", children: /* @__PURE__ */ jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ jsx(SpinnerLoading, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens")
487
506
  ] }) });
488
- $[93] = childrens;
489
- $[94] = dataColumns.length;
490
- $[95] = isLoadingChildrens;
491
- $[96] = open;
492
- $[97] = rootPropName;
493
- $[98] = stylesForRow;
494
- $[99] = t41;
495
- } else {
496
- t41 = $[99];
497
- }
498
- let t42;
499
- if ($[100] !== t40 || $[101] !== t41) {
500
- t42 = /* @__PURE__ */ jsxs(Fragment, { children: [
501
- t40,
502
- t41
507
+ $[102] = childrens;
508
+ $[103] = dataColumns.length;
509
+ $[104] = isLoadingChildrens;
510
+ $[105] = open;
511
+ $[106] = rootPropName;
512
+ $[107] = stylesForRow;
513
+ $[108] = t42;
514
+ } else {
515
+ t42 = $[108];
516
+ }
517
+ let t43;
518
+ if ($[109] !== t41 || $[110] !== t42) {
519
+ t43 = /* @__PURE__ */ jsxs(Fragment, { children: [
520
+ t41,
521
+ t42
503
522
  ] });
504
- $[100] = t40;
505
- $[101] = t41;
506
- $[102] = t42;
523
+ $[109] = t41;
524
+ $[110] = t42;
525
+ $[111] = t43;
507
526
  } else {
508
- t42 = $[102];
527
+ t43 = $[111];
509
528
  }
510
- return t42;
529
+ return t43;
511
530
  };
512
531
  function _temp() {
513
532
  }