react-table-edit 0.6.7 → 0.6.9

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/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  // test-app/src/component/table/index.tsx
2
- import { Fragment as Fragment15, forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef3, useState as useState7 } from "react";
3
- import { Button as Button4, DropdownMenu as DropdownMenu3, DropdownToggle as DropdownToggle3, Input as Input7, UncontrolledDropdown, UncontrolledTooltip as UncontrolledTooltip2 } from "reactstrap";
4
- import classnames7 from "classnames";
5
- import { useTranslation as useTranslation10 } from "react-i18next";
2
+ import { Fragment as Fragment17, forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef3, useState as useState7 } from "react";
3
+ import { Button as Button5, DropdownMenu as DropdownMenu3, DropdownToggle as DropdownToggle3, Input as Input8, UncontrolledDropdown, UncontrolledTooltip as UncontrolledTooltip3 } from "reactstrap";
4
+ import classnames9 from "classnames";
5
+ import { useTranslation as useTranslation12 } from "react-i18next";
6
6
  import Select3 from "react-select";
7
7
  import AsyncSelect from "react-select/async";
8
8
  import { AlertCircle, Info as Info2, Settings } from "becoxy-icons";
@@ -721,6 +721,7 @@ var EditForm = forwardRef((props, ref) => {
721
721
  onFormSubmit,
722
722
  footerTemplate,
723
723
  minWidth,
724
+ onPaste,
724
725
  openOnFocus,
725
726
  labelSize = "label-small"
726
727
  } = props;
@@ -756,6 +757,11 @@ var EditForm = forwardRef((props, ref) => {
756
757
  if (onFormOpen && itemsField.length === 0) {
757
758
  onFormOpen(rowData, itemsField, setItemsField);
758
759
  }
760
+ if (openOnFocus) {
761
+ setTimeout(() => {
762
+ focusElement(`form-element-${field}-0`, true);
763
+ }, 100);
764
+ }
759
765
  }
760
766
  }, [dropdownOpen]);
761
767
  useEffect3(() => {
@@ -767,9 +773,7 @@ var EditForm = forwardRef((props, ref) => {
767
773
  }, [dropdownOpen, itemsField]);
768
774
  const handleOnClick = () => {
769
775
  if (dropdownOpen) {
770
- if (!openOnFocus) {
771
- closeMenu();
772
- }
776
+ closeMenu();
773
777
  } else {
774
778
  setDropdownOpen(true);
775
779
  }
@@ -828,16 +832,6 @@ var EditForm = forwardRef((props, ref) => {
828
832
  e.preventDefault();
829
833
  }
830
834
  };
831
- const handleOnFocus = () => {
832
- if (openOnFocus) {
833
- setDropdownOpen(true);
834
- if (field) {
835
- setTimeout(() => {
836
- focusElement(`form-element-${field}-0`, true);
837
- }, 100);
838
- }
839
- }
840
- };
841
835
  const formKeyDown = (e, handSubmit) => {
842
836
  if (e.code === "Enter") {
843
837
  handSubmit();
@@ -973,11 +967,12 @@ var EditForm = forwardRef((props, ref) => {
973
967
  style: { backgroundColor: "#FFF", textAlign: textAlign ?? "left" },
974
968
  placeholder,
975
969
  innerRef: inputRef,
976
- className: classNames2("input-display", { "is-invalid": invalid }),
970
+ className: classNames2("input-display input-numeric"),
971
+ invalid,
977
972
  value: displayValue,
978
- onFocus: handleOnFocus,
979
973
  onClick: handleOnClick,
980
974
  onKeyDown: (e) => handleOnKeyDown(e),
975
+ onPaste: (e) => onPaste && onPaste(e),
981
976
  readOnly: true
982
977
  }
983
978
  ) }),
@@ -1569,7 +1564,8 @@ var SelectTable = forwardRef2((props, ref) => {
1569
1564
  formatOptionLabel,
1570
1565
  isMulti,
1571
1566
  isDisabled,
1572
- showFooter
1567
+ showFooter,
1568
+ onPaste
1573
1569
  } = props;
1574
1570
  const selectTableRef = useRef2();
1575
1571
  const selectMenuTableRef = useRef2();
@@ -2012,7 +2008,6 @@ var SelectTable = forwardRef2((props, ref) => {
2012
2008
  handleOpenClose();
2013
2009
  }
2014
2010
  },
2015
- tabIndex: 0,
2016
2011
  tag: "div",
2017
2012
  className: classnames6("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2018
2013
  children: [
@@ -2038,6 +2033,7 @@ var SelectTable = forwardRef2((props, ref) => {
2038
2033
  className: classnames6("select-input"),
2039
2034
  readOnly: isDisabled,
2040
2035
  value: searchTerm,
2036
+ onPaste: (e) => onPaste && !dropdownOpen && onPaste(e),
2041
2037
  onChange: (val) => {
2042
2038
  if (!isMulti && loadOptions && val.target.value) {
2043
2039
  setIsLoading(true);
@@ -2108,10 +2104,117 @@ var SelectTable = forwardRef2((props, ref) => {
2108
2104
  );
2109
2105
  });
2110
2106
 
2107
+ // test-app/src/component/table/header.tsx
2108
+ import { Fragment as Fragment15 } from "react";
2109
+ import classnames7 from "classnames";
2110
+ import { Input as Input7 } from "reactstrap";
2111
+ import { useTranslation as useTranslation10 } from "react-i18next";
2112
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2113
+ var HeaderTableCol = (props) => {
2114
+ const {
2115
+ selectEnable,
2116
+ dataSource,
2117
+ setSelectedRows,
2118
+ col,
2119
+ indexCol,
2120
+ indexParent,
2121
+ objWidthFix,
2122
+ totalCount,
2123
+ selectedRows,
2124
+ isMulti
2125
+ } = props;
2126
+ const { t } = useTranslation10();
2127
+ return /* @__PURE__ */ jsx14(Fragment15, { children: col.visible !== false && /* @__PURE__ */ jsx14(
2128
+ "th",
2129
+ {
2130
+ rowSpan: col.rowspan !== 1 ? col.rowspan : void 0,
2131
+ colSpan: col.columns?.length ?? 1,
2132
+ className: classnames7(`r-headercell fix-${col.fixedType}`, { "cell-fixed": col.fixedType }),
2133
+ style: {
2134
+ top: `${indexParent * 42}px`,
2135
+ left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
2136
+ right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
2137
+ width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2138
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.minWidth,
2139
+ maxWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width
2140
+ },
2141
+ children: /* @__PURE__ */ jsxs13(
2142
+ "div",
2143
+ {
2144
+ style: { justifyContent: col.textAlign ?? "left" },
2145
+ className: classnames7("r-headercell-div"),
2146
+ children: [
2147
+ col.field === "checkbox" && /* @__PURE__ */ jsx14(
2148
+ Input7,
2149
+ {
2150
+ checked: totalCount > 0 && selectedRows?.length >= totalCount,
2151
+ type: "checkbox",
2152
+ className: classnames7("cursor-pointer", { "d-none": !isMulti }),
2153
+ style: { textAlign: col.textAlign ?? "left", marginTop: 6 },
2154
+ onChange: (e) => {
2155
+ if (selectEnable) {
2156
+ if (e.target.checked) {
2157
+ setSelectedRows(dataSource.map((item) => {
2158
+ return item;
2159
+ }));
2160
+ } else {
2161
+ setSelectedRows([]);
2162
+ }
2163
+ }
2164
+ }
2165
+ }
2166
+ ),
2167
+ col.field !== "checkbox" && t(col.headerText ?? "")
2168
+ ]
2169
+ }
2170
+ )
2171
+ }
2172
+ ) }, `header-${indexCol}`);
2173
+ };
2174
+ var header_default = HeaderTableCol;
2175
+
2176
+ // test-app/src/component/table/command.tsx
2177
+ import { Fragment as Fragment16 } from "react";
2178
+ import classnames8 from "classnames";
2179
+ import { Button as Button4, UncontrolledTooltip as UncontrolledTooltip2 } from "reactstrap";
2180
+ import { useTranslation as useTranslation11 } from "react-i18next";
2181
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2182
+ var CommandElement = (props) => {
2183
+ const { commandItems, rowData, indexRow, handleCommandClick, indexFocus, setIndexFocus } = props;
2184
+ const { t } = useTranslation11();
2185
+ return /* @__PURE__ */ jsx15(Fragment16, { children: /* @__PURE__ */ jsx15("div", { className: "d-flex align-items-center", style: { columnGap: 10 }, children: commandItems.map((item, index) => {
2186
+ return /* @__PURE__ */ jsxs14(
2187
+ Button4,
2188
+ {
2189
+ id: `command-item-${indexRow}-${index}`,
2190
+ tabIndex: -1,
2191
+ style: { padding: "5px", minWidth: 45, height: "100%" },
2192
+ className: classnames8("command-item", {
2193
+ "btn-icon": item.tooltip === ""
2194
+ }),
2195
+ color: item.color ? item.color : "#000",
2196
+ onClick: (e) => {
2197
+ handleCommandClick(item.id, rowData, indexRow);
2198
+ if (indexRow === indexFocus) {
2199
+ setIndexFocus(void 0);
2200
+ }
2201
+ e.preventDefault();
2202
+ },
2203
+ children: [
2204
+ item.icon && /* @__PURE__ */ jsx15(icon_default, { iconName: item.icon, size: 16 }),
2205
+ /* @__PURE__ */ jsx15(UncontrolledTooltip2, { className: "r-tooltip", target: `command-item-${indexRow}-${index}`, place: "top", children: t(item.tooltip ?? "") })
2206
+ ]
2207
+ },
2208
+ `command-${index}`
2209
+ );
2210
+ }) }) });
2211
+ };
2212
+ var command_default = CommandElement;
2213
+
2111
2214
  // test-app/src/component/table/index.tsx
2112
- import { Fragment as Fragment16, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2215
+ import { Fragment as Fragment18, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2113
2216
  var TableEdit = forwardRef3((props, ref) => {
2114
- const { t } = useTranslation10();
2217
+ const { t } = useTranslation12();
2115
2218
  const {
2116
2219
  idTable,
2117
2220
  dataSource,
@@ -2329,7 +2432,7 @@ var TableEdit = forwardRef3((props, ref) => {
2329
2432
  }
2330
2433
  };
2331
2434
  const searchTemplate = () => {
2332
- return /* @__PURE__ */ jsx14(Fragment15, { children: /* @__PURE__ */ jsx14("div", { className: "me-50 r-search", children: /* @__PURE__ */ jsx14(
2435
+ return /* @__PURE__ */ jsx16(Fragment17, { children: /* @__PURE__ */ jsx16("div", { className: "me-50 r-search", children: /* @__PURE__ */ jsx16(
2333
2436
  react_input_default,
2334
2437
  {
2335
2438
  style: { width: "230px" },
@@ -2350,8 +2453,8 @@ var TableEdit = forwardRef3((props, ref) => {
2350
2453
  const renderEdit = (row, col, indexRow, indexCol) => {
2351
2454
  switch (col?.editTypeCondition ? col?.editTypeCondition(row) : col.editType) {
2352
2455
  case "date":
2353
- return /* @__PURE__ */ jsx14(
2354
- Input7,
2456
+ return /* @__PURE__ */ jsx16(
2457
+ Input8,
2355
2458
  {
2356
2459
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
2357
2460
  style: { textAlign: col.textAlign, height: 29 },
@@ -2363,7 +2466,7 @@ var TableEdit = forwardRef3((props, ref) => {
2363
2466
  }
2364
2467
  handleDataChange(row, col, indexRow);
2365
2468
  },
2366
- className: classnames7("border-0 rounded-0", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2469
+ className: classnames9("border-0 rounded-0", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2367
2470
  type: "date",
2368
2471
  max: "9999-12-31",
2369
2472
  onKeyDown: (e) => {
@@ -2373,8 +2476,8 @@ var TableEdit = forwardRef3((props, ref) => {
2373
2476
  }
2374
2477
  );
2375
2478
  case "datetime":
2376
- return /* @__PURE__ */ jsx14(
2377
- Input7,
2479
+ return /* @__PURE__ */ jsx16(
2480
+ Input8,
2378
2481
  {
2379
2482
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
2380
2483
  style: { textAlign: col.textAlign, height: 29 },
@@ -2386,7 +2489,7 @@ var TableEdit = forwardRef3((props, ref) => {
2386
2489
  }
2387
2490
  handleDataChange(row, col, indexRow);
2388
2491
  },
2389
- className: classnames7("border-0 rounded-0", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2492
+ className: classnames9("border-0 rounded-0", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2390
2493
  type: "datetime-local",
2391
2494
  max: "9999-12-31T23:59",
2392
2495
  onKeyDown: (e) => {
@@ -2406,8 +2509,8 @@ var TableEdit = forwardRef3((props, ref) => {
2406
2509
  if (!valueAsyncSelect && col.selectSettings?.defaultValue) {
2407
2510
  valueAsyncSelect = col.selectSettings?.defaultValue(row);
2408
2511
  }
2409
- return /* @__PURE__ */ jsxs13("div", { className: classnames7("d-flex select-group", { "is-invalid": col.validate && col.validate(row[col.field], row) }), children: [
2410
- /* @__PURE__ */ jsx14(
2512
+ return /* @__PURE__ */ jsxs15("div", { className: classnames9("d-flex select-group", { "is-invalid": col.validate && col.validate(row[col.field], row) }), children: [
2513
+ /* @__PURE__ */ jsx16(
2411
2514
  AsyncSelect,
2412
2515
  {
2413
2516
  menuPosition: "fixed",
@@ -2426,14 +2529,14 @@ var TableEdit = forwardRef3((props, ref) => {
2426
2529
  placeholder: t("Select"),
2427
2530
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
2428
2531
  loadOptions: col.selectSettings?.loadOptions,
2429
- className: classnames7("react-select"),
2532
+ className: classnames9("react-select"),
2430
2533
  onKeyDown: (e) => {
2431
2534
  if (checkKeyDown(e, row, col, indexRow + 1, indexCol + 1)) {
2432
2535
  }
2433
2536
  }
2434
2537
  }
2435
2538
  ),
2436
- /* @__PURE__ */ jsx14(
2539
+ /* @__PURE__ */ jsx16(
2437
2540
  "span",
2438
2541
  {
2439
2542
  onClick: () => {
@@ -2441,8 +2544,8 @@ var TableEdit = forwardRef3((props, ref) => {
2441
2544
  col.selectSettings?.handAddNew("right");
2442
2545
  }
2443
2546
  },
2444
- className: classnames7("input-group-text", { "d-none": !col.selectSettings?.iconGroup }),
2445
- children: /* @__PURE__ */ jsx14(icon_default, { iconName: col.selectSettings?.iconGroup ?? "", size: 16 })
2547
+ className: classnames9("input-group-text", { "d-none": !col.selectSettings?.iconGroup }),
2548
+ children: /* @__PURE__ */ jsx16(icon_default, { iconName: col.selectSettings?.iconGroup ?? "", size: 16 })
2446
2549
  }
2447
2550
  )
2448
2551
  ] });
@@ -2459,7 +2562,7 @@ var TableEdit = forwardRef3((props, ref) => {
2459
2562
  } else {
2460
2563
  valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? options?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
2461
2564
  }
2462
- return /* @__PURE__ */ jsx14(
2565
+ return /* @__PURE__ */ jsx16(
2463
2566
  Select3,
2464
2567
  {
2465
2568
  menuPosition: "fixed",
@@ -2478,7 +2581,7 @@ var TableEdit = forwardRef3((props, ref) => {
2478
2581
  isClearable: col.selectSettings?.isClearable ?? false,
2479
2582
  classNamePrefix: col.selectSettings?.widthPopup ? `select-${col.selectSettings?.widthPopup}` : "select",
2480
2583
  placeholder: t("Select"),
2481
- className: classnames7("react-select", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2584
+ className: classnames9("react-select", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2482
2585
  onKeyDown: (e) => {
2483
2586
  if (checkKeyDown(e, row, col, indexRow + 1, indexCol + 1)) {
2484
2587
  }
@@ -2498,7 +2601,7 @@ var TableEdit = forwardRef3((props, ref) => {
2498
2601
  } else {
2499
2602
  valueSelectTable = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelectTable?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
2500
2603
  }
2501
- return /* @__PURE__ */ jsx14(
2604
+ return /* @__PURE__ */ jsx16(
2502
2605
  SelectTable,
2503
2606
  {
2504
2607
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
@@ -2530,6 +2633,12 @@ var TableEdit = forwardRef3((props, ref) => {
2530
2633
  onKeyDown: (e) => {
2531
2634
  if (checkKeyDown(e, row, col, indexRow + 1, indexCol + 1)) {
2532
2635
  }
2636
+ },
2637
+ onPaste: (e) => {
2638
+ if (toolbarSetting?.showBottomToolbar && !editDisable && !addDisable) {
2639
+ pasteDataFromExcel(indexRow, indexCol, e);
2640
+ e.preventDefault();
2641
+ }
2533
2642
  }
2534
2643
  }
2535
2644
  );
@@ -2548,14 +2657,14 @@ var TableEdit = forwardRef3((props, ref) => {
2548
2657
  }
2549
2658
  }
2550
2659
  };
2551
- return /* @__PURE__ */ jsx14(
2660
+ return /* @__PURE__ */ jsx16(
2552
2661
  "div",
2553
2662
  {
2554
2663
  onKeyDown: (e) => {
2555
2664
  if (checkKeyDown(e, row, col, indexRow + 1, indexCol + 1)) {
2556
2665
  }
2557
2666
  },
2558
- children: /* @__PURE__ */ jsx14(
2667
+ children: /* @__PURE__ */ jsx16(
2559
2668
  DropDownTreeComponent,
2560
2669
  {
2561
2670
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
@@ -2566,7 +2675,7 @@ var TableEdit = forwardRef3((props, ref) => {
2566
2675
  parentValue: "parentId",
2567
2676
  child: "children"
2568
2677
  },
2569
- className: classnames7("select-tree", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2678
+ className: classnames9("select-tree", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2570
2679
  allowFiltering: false,
2571
2680
  value: valueSelectTree,
2572
2681
  popupHeight: 250,
@@ -2594,8 +2703,8 @@ var TableEdit = forwardRef3((props, ref) => {
2594
2703
  }
2595
2704
  );
2596
2705
  case "checkbox":
2597
- return /* @__PURE__ */ jsx14(
2598
- Input7,
2706
+ return /* @__PURE__ */ jsx16(
2707
+ Input8,
2599
2708
  {
2600
2709
  checked: row[col.field],
2601
2710
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
@@ -2617,13 +2726,13 @@ var TableEdit = forwardRef3((props, ref) => {
2617
2726
  );
2618
2727
  case "numeric":
2619
2728
  let valueCurrency = row[col.field];
2620
- return /* @__PURE__ */ jsx14(
2621
- Input7,
2729
+ return /* @__PURE__ */ jsx16(
2730
+ Input8,
2622
2731
  {
2623
2732
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
2624
2733
  style: { textAlign: col.textAlign, height: 29 },
2625
2734
  defaultValue: formartNumberic(valueCurrency, decimalSeparator, thousandSeparator, col.numericSettings?.fraction),
2626
- className: classnames7("border-0 rounded-0 input-numeric", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2735
+ className: classnames9("border-0 rounded-0 input-numeric", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2627
2736
  onChange: (val) => {
2628
2737
  let newVal = "";
2629
2738
  const flag = val.target?.value.startsWith("-");
@@ -2700,15 +2809,15 @@ var TableEdit = forwardRef3((props, ref) => {
2700
2809
  },
2701
2810
  onPaste: (e) => {
2702
2811
  if (toolbarSetting?.showBottomToolbar && !editDisable && !addDisable) {
2703
- pasteDataFromExcel(indexRow, indexCol);
2812
+ pasteDataFromExcel(indexRow, indexCol, e);
2704
2813
  e.preventDefault();
2705
2814
  }
2706
2815
  }
2707
2816
  }
2708
2817
  );
2709
2818
  case "color":
2710
- return /* @__PURE__ */ jsx14("div", { style: { padding: "4px 8px" }, children: /* @__PURE__ */ jsx14(
2711
- Input7,
2819
+ return /* @__PURE__ */ jsx16("div", { style: { padding: "4px 8px" }, children: /* @__PURE__ */ jsx16(
2820
+ Input8,
2712
2821
  {
2713
2822
  type: "color",
2714
2823
  value: row[col.field],
@@ -2730,7 +2839,7 @@ var TableEdit = forwardRef3((props, ref) => {
2730
2839
  `col-${indexRow}-${indexCol}`
2731
2840
  ) });
2732
2841
  case "form":
2733
- return /* @__PURE__ */ jsx14(
2842
+ return /* @__PURE__ */ jsx16(
2734
2843
  edit_form_default,
2735
2844
  {
2736
2845
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
@@ -2748,17 +2857,23 @@ var TableEdit = forwardRef3((props, ref) => {
2748
2857
  textAlign: col.textAlign,
2749
2858
  onKeyDown: (e) => {
2750
2859
  return checkKeyDown(e, row, col, indexRow + 1, indexCol + 1);
2860
+ },
2861
+ onPaste: (e) => {
2862
+ if (toolbarSetting?.showBottomToolbar && !editDisable && !addDisable) {
2863
+ pasteDataFromExcel(indexRow, indexCol, e);
2864
+ e.preventDefault();
2865
+ }
2751
2866
  }
2752
2867
  }
2753
2868
  );
2754
2869
  default:
2755
- return /* @__PURE__ */ jsx14(
2756
- Input7,
2870
+ return /* @__PURE__ */ jsx16(
2871
+ Input8,
2757
2872
  {
2758
2873
  id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
2759
2874
  style: { textAlign: col.textAlign, height: 29 },
2760
2875
  defaultValue: isNullOrUndefined(row[col.field]) ? "" : row[col.field],
2761
- className: classnames7("border-0 rounded-0 input-element", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2876
+ className: classnames9("border-0 rounded-0 input-element", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
2762
2877
  onBlur: (val) => {
2763
2878
  if (row[col.field] != val.target?.value) {
2764
2879
  row[col.field] = val.target?.value;
@@ -2782,7 +2897,7 @@ var TableEdit = forwardRef3((props, ref) => {
2782
2897
  },
2783
2898
  onPaste: (e) => {
2784
2899
  if (toolbarSetting?.showBottomToolbar && !editDisable && !addDisable) {
2785
- pasteDataFromExcel(indexRow, indexCol);
2900
+ pasteDataFromExcel(indexRow, indexCol, e);
2786
2901
  e.preventDefault();
2787
2902
  }
2788
2903
  }
@@ -2795,34 +2910,6 @@ var TableEdit = forwardRef3((props, ref) => {
2795
2910
  commandClick({ id, rowData, index });
2796
2911
  }
2797
2912
  };
2798
- const renderCommand = (commandItems, rowData, i) => {
2799
- return /* @__PURE__ */ jsx14(Fragment15, { children: /* @__PURE__ */ jsx14("div", { className: "d-flex align-items-center", style: { columnGap: 10 }, children: commandItems.map((item, index) => {
2800
- return /* @__PURE__ */ jsxs13(
2801
- Button4,
2802
- {
2803
- id: `command-item-${i}`,
2804
- tabIndex: -1,
2805
- style: { padding: "5px", minWidth: 45, height: "100%" },
2806
- className: classnames7("command-item", {
2807
- "btn-icon": item.tooltip === ""
2808
- }),
2809
- color: item.color ? item.color : "#000",
2810
- onClick: (e) => {
2811
- handleCommandClick(item.id, rowData, i);
2812
- if (i === indexFocus) {
2813
- setIndexFocus(void 0);
2814
- }
2815
- e.preventDefault();
2816
- },
2817
- children: [
2818
- item.icon && /* @__PURE__ */ jsx14(icon_default, { iconName: item.icon, size: 16 }),
2819
- /* @__PURE__ */ jsx14(UncontrolledTooltip2, { className: "r-tooltip", target: `command-item-${i}`, place: "top", children: t(item.tooltip ?? "") })
2820
- ]
2821
- },
2822
- `command-${index}`
2823
- );
2824
- }) }) });
2825
- };
2826
2913
  const focusNewElement = (col, row, onLoad = false) => {
2827
2914
  setTimeout(() => {
2828
2915
  const element = document.getElementById(`${idTable}-col${col}-row${row}`);
@@ -3035,25 +3122,82 @@ var TableEdit = forwardRef3((props, ref) => {
3035
3122
  changeDataSource([], false);
3036
3123
  }
3037
3124
  };
3038
- const pasteDataFromExcel = async (row, col) => {
3039
- const clipboard = await navigator.clipboard.readText();
3125
+ const getColumn = (col, index) => {
3126
+ const column = contentColumns[col + index];
3127
+ if (column) {
3128
+ if (column.visible !== false) {
3129
+ return column;
3130
+ } else {
3131
+ return getColumn(col, index + 1);
3132
+ }
3133
+ }
3134
+ return void 0;
3135
+ };
3136
+ const pasteDataFromExcel = async (row, col, e) => {
3137
+ const clipboard = (e.clipboardData || window.Clipboard).getData("text");
3040
3138
  const arrayRow = clipboard.trimEnd().split("\n");
3041
- arrayRow.forEach((item, indexRow) => {
3139
+ setIndexFocus(void 0);
3140
+ for (let indexRow = 0; indexRow < arrayRow.length; indexRow++) {
3141
+ const item = arrayRow[indexRow];
3042
3142
  const arrayCol = item.trimEnd().split(" ");
3043
3143
  let dataRow = dataSource[row + indexRow];
3044
3144
  if (!dataRow) {
3045
3145
  dataRow = { ...defaultValue };
3046
3146
  dataSource.push(dataRow);
3047
3147
  }
3048
- arrayCol.forEach((element, index) => {
3049
- const column = contentColumns[col + index];
3050
- if ((!column.disabledCondition || !column.disabledCondition(row)) && column.editEnable) {
3051
- dataRow[column.field] = element;
3148
+ for (let index = 0; index < arrayCol.length; index++) {
3149
+ const stringData = arrayCol[index];
3150
+ const column = getColumn(col, index);
3151
+ if (column) {
3152
+ if ((!column.disabledCondition || !column.disabledCondition(row)) && column.editEnable) {
3153
+ if (column.onPaste) {
3154
+ const rs = await column.onPaste(stringData, indexRow, row);
3155
+ if (rs) {
3156
+ dataRow = rs.dataRow;
3157
+ dataRow[column.field] = stringData;
3158
+ if (column.callback) {
3159
+ column.callback(rs.value, indexRow);
3160
+ }
3161
+ } else {
3162
+ notificationError(t("PasteExcelNotExist", { index: row + indexRow + 1, field: t(column.headerText ?? ""), value: stringData }));
3163
+ }
3164
+ } else {
3165
+ if (column.editType === "date") {
3166
+ const date = new Date(stringData);
3167
+ if (!isNaN(date.getTime())) {
3168
+ dataRow[column.field] = date;
3169
+ } else {
3170
+ notificationError(t("PasteExcelIncorrectFormat", { index: row + indexRow + 1, field: t(column.headerText ?? ""), value: stringData }));
3171
+ }
3172
+ } else if (column.editType === "numeric") {
3173
+ const number = Number(stringData);
3174
+ if (!isNaN(number)) {
3175
+ dataRow[column.field] = number;
3176
+ } else {
3177
+ notificationError(t("PasteExcelIncorrectFormat", { index: row + indexRow + 1, field: t(column.headerText ?? ""), value: stringData }));
3178
+ }
3179
+ } else if (column.editType?.includes("select") && !column.selectSettings?.loadOptions) {
3180
+ let optionSelect = [];
3181
+ if (column.selectSettings?.optionsField) {
3182
+ optionSelect = dataRow[column.selectSettings?.optionsField] ? dataRow[column.selectSettings?.optionsField] : [];
3183
+ } else {
3184
+ optionSelect = column.selectSettings?.options ? column.selectSettings?.validateOption ? column.selectSettings?.options.filter((item2) => column.selectSettings?.validateOption(item2, row)) : column.selectSettings?.options : [];
3185
+ }
3186
+ let valueAsyncSelect = !isNullOrUndefined(dataRow[column.field]) && dataRow[column.field] !== "" ? optionSelect?.find((val) => val[column.selectSettings?.fieldValue ?? "value"] === dataRow[column.field]) : void 0;
3187
+ if (valueAsyncSelect) {
3188
+ dataRow[column.field] = stringData;
3189
+ } else {
3190
+ notificationError(t("PasteExcelNotExist", { index: row + indexRow + 1, field: t(column.headerText ?? ""), value: stringData }));
3191
+ }
3192
+ } else {
3193
+ dataRow[column.field] = stringData;
3194
+ }
3195
+ }
3196
+ }
3052
3197
  }
3053
- });
3198
+ }
3054
3199
  rowChange(dataRow, row + indexRow, "");
3055
- });
3056
- handleRefeshRow();
3200
+ }
3057
3201
  changeDataSource(dataSource);
3058
3202
  };
3059
3203
  const changeDataSource = (data, haveNew = false) => {
@@ -3117,10 +3261,10 @@ var TableEdit = forwardRef3((props, ref) => {
3117
3261
  }, [selectedItem]);
3118
3262
  const renderContentCol = (col, row, indexRow, indexCol, isSelected) => {
3119
3263
  if (col.field === "command") {
3120
- return col.visible !== false && /* @__PURE__ */ jsx14(
3264
+ return col.visible !== false && /* @__PURE__ */ jsx16(
3121
3265
  "td",
3122
3266
  {
3123
- className: classnames7(
3267
+ className: classnames9(
3124
3268
  `r-rowcell p-0 fix-${col.fixedType}`,
3125
3269
  { "cell-fixed": col.fixedType },
3126
3270
  { "r-active": isSelected && editDisable || indexFocus === indexRow }
@@ -3130,15 +3274,15 @@ var TableEdit = forwardRef3((props, ref) => {
3130
3274
  right: col.fixedType === "right" ? objWidthFix[indexCol] : void 0,
3131
3275
  textAlign: col.textAlign ? col.textAlign : "left"
3132
3276
  },
3133
- children: /* @__PURE__ */ jsx14("div", { className: "r-rowcell-div ", children: renderCommand(col.commandItems, row, indexRow) })
3277
+ children: /* @__PURE__ */ jsx16("div", { className: "r-rowcell-div ", children: /* @__PURE__ */ jsx16(command_default, { commandItems: col.commandItems ?? [], handleCommandClick, indexRow, rowData: row, setIndexFocus, indexFocus }) })
3134
3278
  },
3135
3279
  `col-${indexRow}-${indexCol}`
3136
3280
  );
3137
3281
  } else if (col.field === "#") {
3138
- return col.visible !== false && /* @__PURE__ */ jsx14(
3282
+ return col.visible !== false && /* @__PURE__ */ jsx16(
3139
3283
  "td",
3140
3284
  {
3141
- className: classnames7(`r-rowcell p-0 cursor-pointer fix-${col.fixedType}`, { "cell-fixed": col.fixedType }, { "r-active": isSelected && editDisable || indexFocus === indexRow }),
3285
+ className: classnames9(`r-rowcell p-0 cursor-pointer fix-${col.fixedType}`, { "cell-fixed": col.fixedType }, { "r-active": isSelected && editDisable || indexFocus === indexRow }),
3142
3286
  tabIndex: Number(`${indexRow}${indexCol}`),
3143
3287
  style: {
3144
3288
  left: col.fixedType === "left" ? objWidthFix[indexCol] : void 0,
@@ -3182,15 +3326,15 @@ var TableEdit = forwardRef3((props, ref) => {
3182
3326
  e.stopPropagation();
3183
3327
  }
3184
3328
  },
3185
- children: /* @__PURE__ */ jsx14("div", { className: "r-rowcell-div pt-50", children: indexRow + 1 })
3329
+ children: /* @__PURE__ */ jsx16("div", { className: "r-rowcell-div pt-50", children: indexRow + 1 })
3186
3330
  },
3187
3331
  `col-${indexRow}-${indexCol}`
3188
3332
  );
3189
3333
  } else if (col.field === "checkbox") {
3190
- return /* @__PURE__ */ jsx14(
3334
+ return /* @__PURE__ */ jsx16(
3191
3335
  "td",
3192
3336
  {
3193
- className: classnames7(
3337
+ className: classnames9(
3194
3338
  `r-rowcell p-0 fix-${col.fixedType}`,
3195
3339
  { "cell-fixed": col.fixedType },
3196
3340
  { "r-active": isSelected && editDisable || indexFocus === indexRow }
@@ -3200,7 +3344,7 @@ var TableEdit = forwardRef3((props, ref) => {
3200
3344
  right: col.fixedType === "right" ? objWidthFix[indexCol] : void 0,
3201
3345
  textAlign: col.textAlign ? col.textAlign : "center"
3202
3346
  },
3203
- children: /* @__PURE__ */ jsx14(
3347
+ children: /* @__PURE__ */ jsx16(
3204
3348
  "div",
3205
3349
  {
3206
3350
  className: "r-rowcell-div cursor-pointer",
@@ -3224,8 +3368,8 @@ var TableEdit = forwardRef3((props, ref) => {
3224
3368
  e.stopPropagation();
3225
3369
  }
3226
3370
  },
3227
- children: /* @__PURE__ */ jsx14(
3228
- Input7,
3371
+ children: /* @__PURE__ */ jsx16(
3372
+ Input8,
3229
3373
  {
3230
3374
  checked: isSelected,
3231
3375
  type: "checkbox",
@@ -3251,10 +3395,10 @@ var TableEdit = forwardRef3((props, ref) => {
3251
3395
  }
3252
3396
  const typeDis = !editDisable && (indexFocus === indexRow || col.editType === "checkbox") && (!col.disabledCondition || !col.disabledCondition(row)) ? col.editEnable ? 1 : col.template ? 2 : 3 : col.template ? 2 : 3;
3253
3397
  const errorMessage = typeDis === 1 || col.field === "" || !col.validate ? "" : col.validate(row[col.field], row);
3254
- return /* @__PURE__ */ jsx14(Fragment15, { children: col.visible !== false && /* @__PURE__ */ jsx14(
3398
+ return /* @__PURE__ */ jsx16(Fragment17, { children: col.visible !== false && /* @__PURE__ */ jsx16(
3255
3399
  "td",
3256
3400
  {
3257
- className: classnames7(
3401
+ className: classnames9(
3258
3402
  `r-rowcell fix-${col.fixedType}`,
3259
3403
  { "cell-fixed": col.fixedType },
3260
3404
  { "r-active": isSelected && editDisable || indexFocus === indexRow }
@@ -3296,28 +3440,28 @@ var TableEdit = forwardRef3((props, ref) => {
3296
3440
  e.stopPropagation();
3297
3441
  }
3298
3442
  },
3299
- children: /* @__PURE__ */ jsx14(
3443
+ children: /* @__PURE__ */ jsx16(
3300
3444
  "div",
3301
3445
  {
3302
- className: classnames7("r-rowcell-div"),
3446
+ className: classnames9("r-rowcell-div"),
3303
3447
  style: {
3304
3448
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width
3305
3449
  },
3306
- children: /* @__PURE__ */ jsxs13(
3450
+ children: /* @__PURE__ */ jsxs15(
3307
3451
  "div",
3308
3452
  {
3309
3453
  id: indexFocus === indexRow && typeDis !== 1 ? `${idTable}-col${indexCol + 1}-row${indexRow + 1}` : "",
3310
- className: classnames7("r-rowcell-content", { "r-is-invalid": errorMessage }),
3454
+ className: classnames9("r-rowcell-content", { "r-is-invalid": errorMessage }),
3311
3455
  style: {
3312
3456
  margin: typeDis === 1 ? 2 : !errorMessage ? "7px 9px" : 2,
3313
3457
  color: col.editType === "numeric" && Number(row[col.field]) < 0 ? "red" : ""
3314
3458
  },
3315
3459
  children: [
3316
- typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : /* @__PURE__ */ jsx14("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }),
3317
- /* @__PURE__ */ jsx14("span", { id: `error-${indexRow}-${indexCol}`, className: classnames7("cursor-pointer text-primary icon-table", { "d-none": !errorMessage }), children: /* @__PURE__ */ jsx14(AlertCircle, { fontSize: 15.5 }) }),
3318
- !(typeDis === 1 && !refreshRow) && checkOverflow(indexRow, indexCol) && /* @__PURE__ */ jsx14(UncontrolledTooltip2, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
3319
- /* @__PURE__ */ jsx14(
3320
- UncontrolledTooltip2,
3460
+ typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : /* @__PURE__ */ jsx16("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }),
3461
+ /* @__PURE__ */ jsx16("span", { id: `error-${indexRow}-${indexCol}`, className: classnames9("cursor-pointer text-primary icon-table", { "d-none": !errorMessage }), children: /* @__PURE__ */ jsx16(AlertCircle, { fontSize: 15.5 }) }),
3462
+ !(typeDis === 1 && !refreshRow) && checkOverflow(indexRow, indexCol) && /* @__PURE__ */ jsx16(UncontrolledTooltip3, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
3463
+ /* @__PURE__ */ jsx16(
3464
+ UncontrolledTooltip3,
3321
3465
  {
3322
3466
  target: `error-${indexRow}-${indexCol}`,
3323
3467
  className: "r-tooltip tooltip-error",
@@ -3338,132 +3482,11 @@ var TableEdit = forwardRef3((props, ref) => {
3338
3482
  const element = document.getElementById(`content-${idTable}-row${indexRow}col-${indexCol}`);
3339
3483
  return element && element.scrollWidth > element.clientWidth;
3340
3484
  };
3341
- const renderHeaderCol = (col, indexCol, indexParent) => {
3342
- if (col.field === "checkbox") {
3343
- return /* @__PURE__ */ jsx14(Fragment15, { children: col.visible !== false && /* @__PURE__ */ jsx14(
3344
- "th",
3345
- {
3346
- rowSpan: col.rowspan !== 1 ? col.rowspan : void 0,
3347
- colSpan: col.columns?.length ?? 1,
3348
- className: classnames7(
3349
- `r-headercell fix-${col.fixedType}`,
3350
- { "cell-fixed": col.fixedType }
3351
- ),
3352
- style: {
3353
- top: `${indexParent * 42}px`,
3354
- left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
3355
- right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
3356
- width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
3357
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.minWidth,
3358
- maxWidth: col.maxWidth
3359
- },
3360
- children: /* @__PURE__ */ jsx14(
3361
- "div",
3362
- {
3363
- style: { justifyContent: col.textAlign ?? "left" },
3364
- className: classnames7("r-headercell-div"),
3365
- children: /* @__PURE__ */ jsx14(
3366
- Input7,
3367
- {
3368
- checked: totalCount > 0 && selectedRows?.length >= totalCount,
3369
- type: "checkbox",
3370
- className: classnames7("cursor-pointer", { "d-none": !isMulti }),
3371
- style: { textAlign: col.textAlign ?? "left", marginTop: 6 },
3372
- onChange: (e) => {
3373
- if (selectEnable) {
3374
- if (e.target.checked) {
3375
- setSelectedRows(dataSource.map((item) => {
3376
- return item;
3377
- }));
3378
- } else {
3379
- setSelectedRows([]);
3380
- }
3381
- }
3382
- }
3383
- }
3384
- )
3385
- }
3386
- )
3387
- }
3388
- ) }, `header-${indexCol}`);
3389
- } else if (col.field === "#") {
3390
- return /* @__PURE__ */ jsx14(
3391
- Fragment15,
3392
- {
3393
- children: col.visible !== false && /* @__PURE__ */ jsx14(
3394
- "th",
3395
- {
3396
- rowSpan: col.rowspan !== 1 ? col.rowspan : void 0,
3397
- colSpan: col.columns?.length ?? 1,
3398
- className: classnames7(
3399
- `r-headercell fix-${col.fixedType}`,
3400
- { "cell-fixed": col.fixedType }
3401
- ),
3402
- style: {
3403
- width: 40,
3404
- minWidth: 40,
3405
- maxWidth: 40,
3406
- top: `${indexParent * 42}px`,
3407
- left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
3408
- right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0
3409
- },
3410
- children: /* @__PURE__ */ jsx14(
3411
- "div",
3412
- {
3413
- title: t(col.headerText ?? ""),
3414
- style: { justifyContent: col.textAlign ?? "left" },
3415
- className: "r-headercell-div",
3416
- children: t(col.headerText ?? "")
3417
- }
3418
- )
3419
- }
3420
- )
3421
- },
3422
- `header-${indexCol}`
3423
- );
3424
- } else {
3425
- return /* @__PURE__ */ jsx14(
3426
- Fragment15,
3427
- {
3428
- children: col.visible !== false && /* @__PURE__ */ jsx14(
3429
- "th",
3430
- {
3431
- rowSpan: col.rowspan !== 1 ? col.rowspan : void 0,
3432
- colSpan: col.columns?.length ?? 1,
3433
- className: classnames7(
3434
- `r-headercell fix-${col.fixedType}`,
3435
- { "cell-fixed": col.fixedType }
3436
- ),
3437
- style: {
3438
- width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
3439
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.minWidth,
3440
- top: `${indexParent * 42}px`,
3441
- left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
3442
- right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
3443
- maxWidth: col.maxWidth
3444
- },
3445
- children: /* @__PURE__ */ jsx14(
3446
- "div",
3447
- {
3448
- role: "textbox",
3449
- title: t(col.headerText ?? ""),
3450
- style: { justifyContent: col.textAlign ?? "left" },
3451
- className: "r-headercell-div",
3452
- children: t(col.headerText ?? "")
3453
- }
3454
- )
3455
- }
3456
- )
3457
- },
3458
- `header-${indexCol}`
3459
- );
3460
- }
3461
- };
3462
3485
  const renderFooterCol = (col, indexCol) => {
3463
- return /* @__PURE__ */ jsx14(Fragment15, { children: col.visible !== false && /* @__PURE__ */ jsx14(
3486
+ return /* @__PURE__ */ jsx16(Fragment17, { children: col.visible !== false && /* @__PURE__ */ jsx16(
3464
3487
  "td",
3465
3488
  {
3466
- className: classnames7(
3489
+ className: classnames9(
3467
3490
  `p-0 px-50 r-footer fix-${col.fixedType}`,
3468
3491
  { "cell-fixed": col.fixedType }
3469
3492
  ),
@@ -3475,56 +3498,56 @@ var TableEdit = forwardRef3((props, ref) => {
3475
3498
  maxWidth: col.maxWidth,
3476
3499
  textAlign: col.textAlign ? col.textAlign : "left"
3477
3500
  },
3478
- children: /* @__PURE__ */ jsx14("div", { className: "r-footer-div", children: col.haveSum === true && col.editType === "numeric" ? formartNumberic(dataSource.reduce(function(accumulator, currentValue) {
3501
+ children: /* @__PURE__ */ jsx16("div", { className: "r-footer-div", children: col.haveSum === true && col.editType === "numeric" ? formartNumberic(dataSource.reduce(function(accumulator, currentValue) {
3479
3502
  return Number(accumulator ?? 0) + Number(currentValue[col.field] ?? 0);
3480
3503
  }, 0), decimalSeparator, thousandSeparator, col.numericSettings?.fraction, true) : "" })
3481
3504
  }
3482
3505
  ) }, `summarycell-${indexCol}`);
3483
3506
  };
3484
3507
  const renderToolbarTop = () => {
3485
- return /* @__PURE__ */ jsx14("div", { id: "table_custom_top_toolbar", className: "r-toolbar r-toolbar-top", "aria-orientation": "horizontal", children: /* @__PURE__ */ jsxs13("div", { className: "r-toolbar-items", children: [
3486
- /* @__PURE__ */ jsx14("div", { className: "r-toolbar-left", children: toolbarTopOption?.map((item, index) => {
3487
- return item.align === "left" ? /* @__PURE__ */ jsx14("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-top-left-${index}`) : "";
3508
+ return /* @__PURE__ */ jsx16("div", { id: "table_custom_top_toolbar", className: "r-toolbar r-toolbar-top", "aria-orientation": "horizontal", children: /* @__PURE__ */ jsxs15("div", { className: "r-toolbar-items", children: [
3509
+ /* @__PURE__ */ jsx16("div", { className: "r-toolbar-left", children: toolbarTopOption?.map((item, index) => {
3510
+ return item.align === "left" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-top-left-${index}`) : "";
3488
3511
  }) }),
3489
- /* @__PURE__ */ jsx14("div", { className: "r-toolbar-center", children: toolbarTopOption?.map((item, index) => {
3490
- return item.align === "center" ? /* @__PURE__ */ jsx14("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-top-center-${index}`) : "";
3512
+ /* @__PURE__ */ jsx16("div", { className: "r-toolbar-center", children: toolbarTopOption?.map((item, index) => {
3513
+ return item.align === "center" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-top-center-${index}`) : "";
3491
3514
  }) }),
3492
- /* @__PURE__ */ jsx14("div", { className: "r-toolbar-right", children: toolbarTopOption?.map((item, index) => {
3493
- return item.align === "right" ? /* @__PURE__ */ jsx14("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-top-right-${index}`) : "";
3515
+ /* @__PURE__ */ jsx16("div", { className: "r-toolbar-right", children: toolbarTopOption?.map((item, index) => {
3516
+ return item.align === "right" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-top-right-${index}`) : "";
3494
3517
  }) })
3495
3518
  ] }) });
3496
3519
  };
3497
3520
  const renderToolbarBottom = () => {
3498
- return /* @__PURE__ */ jsx14("div", { id: "table_custom_bottom_toolbar", className: "r-toolbar r-toolbar-bottom", role: "toolbar", "aria-disabled": "false", "aria-haspopup": "false", "aria-orientation": "horizontal", children: /* @__PURE__ */ jsxs13("div", { className: "r-toolbar-items", children: [
3499
- /* @__PURE__ */ jsxs13("div", { className: "r-toolbar-left", children: [
3500
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx14(Button4, { color: "success", outline: true, onClick: handleAdd, className: "d-flex", children: t("Add item") }) }),
3501
- (indexFocus ?? -1) > -1 ? /* @__PURE__ */ jsxs13(Fragment16, { children: [
3502
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.duplicateDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx14(Button4, { color: "success", outline: true, onClick: () => {
3521
+ return /* @__PURE__ */ jsx16("div", { id: "table_custom_bottom_toolbar", className: "r-toolbar r-toolbar-bottom", role: "toolbar", "aria-disabled": "false", "aria-haspopup": "false", "aria-orientation": "horizontal", children: /* @__PURE__ */ jsxs15("div", { className: "r-toolbar-items", children: [
3522
+ /* @__PURE__ */ jsxs15("div", { className: "r-toolbar-left", children: [
3523
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button5, { color: "success", outline: true, onClick: handleAdd, className: "d-flex", children: t("Add item") }) }),
3524
+ (indexFocus ?? -1) > -1 ? /* @__PURE__ */ jsxs15(Fragment18, { children: [
3525
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.duplicateDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button5, { color: "success", outline: true, onClick: () => {
3503
3526
  handleDuplicate(dataSource[indexFocus ?? -1], indexFocus ?? -1);
3504
3527
  }, className: "d-flex", children: t("Duplicate") }) }),
3505
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.insertBeforeDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx14(Button4, { color: "success", outline: true, onClick: handleInsertBefore, className: "d-flex", children: t("Insert item before") }) }),
3506
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.insertAfterDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx14(Button4, { color: "success", outline: true, onClick: handleInsertAfter, className: "d-flex", children: t("Insert item after") }) })
3507
- ] }) : /* @__PURE__ */ jsx14(Fragment16, { children: " " }),
3508
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item", { "d-none": editDisable || buttonSetting?.deleteAllDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx14(Button4, { color: "primary", outline: true, onClick: handleDeleteAll, className: "d-flex", children: t("Delete all item") }) }),
3528
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.insertBeforeDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button5, { color: "success", outline: true, onClick: handleInsertBefore, className: "d-flex", children: t("Insert item before") }) }),
3529
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.insertAfterDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button5, { color: "success", outline: true, onClick: handleInsertAfter, className: "d-flex", children: t("Insert item after") }) })
3530
+ ] }) : /* @__PURE__ */ jsx16(Fragment18, { children: " " }),
3531
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || buttonSetting?.deleteAllDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button5, { color: "primary", outline: true, onClick: handleDeleteAll, className: "d-flex", children: t("Delete all item") }) }),
3509
3532
  toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
3510
- return item.align === "left" ? /* @__PURE__ */ jsx14("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-left-${index}`) : "";
3533
+ return item.align === "left" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-left-${index}`) : "";
3511
3534
  })
3512
3535
  ] }),
3513
- /* @__PURE__ */ jsx14("div", { className: "r-toolbar-center", children: toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
3514
- return item.align === "center" ? /* @__PURE__ */ jsx14("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-center-${index}`) : "";
3536
+ /* @__PURE__ */ jsx16("div", { className: "r-toolbar-center", children: toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
3537
+ return item.align === "center" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-center-${index}`) : "";
3515
3538
  }) }),
3516
- /* @__PURE__ */ jsxs13("div", { className: "r-toolbar-right", children: [
3539
+ /* @__PURE__ */ jsxs15("div", { className: "r-toolbar-right", children: [
3517
3540
  toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
3518
- return item.align === "right" ? /* @__PURE__ */ jsx14("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-right-${index}`) : "";
3541
+ return item.align === "right" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-right-${index}`) : "";
3519
3542
  }),
3520
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item me-25", { "d-none": headerColumns.length > 1 }), "aria-disabled": "false", children: /* @__PURE__ */ jsx14(Settings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }),
3521
- /* @__PURE__ */ jsx14("div", { className: classnames7("r-toolbar-item me-25", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsxs13(UncontrolledDropdown, { className: "dropdown-user nav-item", children: [
3522
- /* @__PURE__ */ jsx14(DropdownToggle3, { href: "/", tag: "a", color: "info", onClick: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx14(Info2, { className: "cursor-pointer" }) }),
3523
- /* @__PURE__ */ jsx14(DropdownMenu3, { children: /* @__PURE__ */ jsxs13("div", { className: "d-flex flex-column p-50 py-25", children: [
3524
- /* @__PURE__ */ jsx14("div", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\xE2n b\u1EA3n" }),
3525
- /* @__PURE__ */ jsx14("div", { style: { fontSize: 13 }, children: "Ch\u1ECDn \xF4 v\xE0 Ctrl + V \u0111\u1EC3 d\xE1n th\xF4ng tin t\u1EEB excel" }),
3526
- /* @__PURE__ */ jsx14("div", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\xE9p h\xE0ng" }),
3527
- /* @__PURE__ */ jsx14("div", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\xE1n h\xE0ng" })
3543
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item me-25", { "d-none": headerColumns.length > 1 }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Settings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }),
3544
+ /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item me-25", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsxs15(UncontrolledDropdown, { className: "dropdown-user nav-item", children: [
3545
+ /* @__PURE__ */ jsx16(DropdownToggle3, { href: "/", tag: "a", color: "info", onClick: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx16(Info2, { className: "cursor-pointer" }) }),
3546
+ /* @__PURE__ */ jsx16(DropdownMenu3, { children: /* @__PURE__ */ jsxs15("div", { className: "d-flex flex-column p-50 py-25", children: [
3547
+ /* @__PURE__ */ jsx16("div", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\xE2n b\u1EA3n" }),
3548
+ /* @__PURE__ */ jsx16("div", { style: { fontSize: 13 }, children: "Ch\u1ECDn \xF4 v\xE0 Ctrl + V \u0111\u1EC3 d\xE1n th\xF4ng tin t\u1EEB excel" }),
3549
+ /* @__PURE__ */ jsx16("div", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\xE9p h\xE0ng" }),
3550
+ /* @__PURE__ */ jsx16("div", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\xE1n h\xE0ng" })
3528
3551
  ] }) })
3529
3552
  ] }) })
3530
3553
  ] })
@@ -3553,10 +3576,10 @@ var TableEdit = forwardRef3((props, ref) => {
3553
3576
  const flagDisplay = !pagingClient || totalCount > (pagingSetting.pageSize ?? 0) * ((pagingSetting.currentPage ?? 0) - 1) && totalCount <= (pagingSetting.pageSize ?? 0) * (pagingSetting.currentPage ?? 0);
3554
3577
  if (flagDisplay) {
3555
3578
  countDisplay++;
3556
- return /* @__PURE__ */ jsx14(
3579
+ return /* @__PURE__ */ jsx16(
3557
3580
  "tr",
3558
3581
  {
3559
- className: classnames7("r-row", { "fisrt-row": countDisplay === 0 }),
3582
+ className: classnames9("r-row", { "fisrt-row": countDisplay === 0 }),
3560
3583
  children: contentColumns.map((col, indexCol) => {
3561
3584
  return renderContentCol(col, row, indexRow, indexCol, isSelected);
3562
3585
  })
@@ -3572,24 +3595,38 @@ var TableEdit = forwardRef3((props, ref) => {
3572
3595
  pagingSetting?.setCurrentPage(1);
3573
3596
  }
3574
3597
  }, [searchTerm, searchSetting?.searchTerm]);
3575
- return /* @__PURE__ */ jsxs13(Fragment15, { children: [
3576
- /* @__PURE__ */ jsxs13("div", { className: "react-table-edit", children: [
3577
- /* @__PURE__ */ jsxs13("div", { className: "r-grid", ref: gridRef, children: [
3578
- toolbarSetting?.showTopToolbar ? /* @__PURE__ */ jsx14(Fragment16, { children: renderToolbarTop() }) : /* @__PURE__ */ jsx14(Fragment16, {}),
3579
- /* @__PURE__ */ jsx14("div", { ref: tableElement, className: "r-gridtable", style: { height: `${height ? `${height}px` : "auto"}`, minHeight: `${minHeight ? `${minHeight}px` : ""}`, maxHeight: `${maxHeight ? `${maxHeight}px` : "400px"}` }, children: /* @__PURE__ */ jsxs13("table", { style: { width: "100%" }, children: [
3580
- /* @__PURE__ */ jsx14("thead", { className: "r-gridheader", children: headerColumns.map((element, indexParent) => {
3581
- return /* @__PURE__ */ jsx14("tr", { className: "r-row", role: "row", children: element?.map((col, index) => {
3582
- return renderHeaderCol(col, index, indexParent);
3598
+ return /* @__PURE__ */ jsxs15(Fragment17, { children: [
3599
+ /* @__PURE__ */ jsxs15("div", { className: "react-table-edit", children: [
3600
+ /* @__PURE__ */ jsxs15("div", { className: "r-grid", ref: gridRef, children: [
3601
+ toolbarSetting?.showTopToolbar ? /* @__PURE__ */ jsx16(Fragment18, { children: renderToolbarTop() }) : /* @__PURE__ */ jsx16(Fragment18, {}),
3602
+ /* @__PURE__ */ jsx16("div", { ref: tableElement, className: "r-gridtable", style: { height: `${height ? `${height}px` : "auto"}`, minHeight: `${minHeight ? `${minHeight}px` : ""}`, maxHeight: `${maxHeight ? `${maxHeight}px` : "400px"}` }, children: /* @__PURE__ */ jsxs15("table", { style: { width: "100%" }, children: [
3603
+ /* @__PURE__ */ jsx16("thead", { className: "r-gridheader", children: headerColumns.map((element, indexParent) => {
3604
+ return /* @__PURE__ */ jsx16("tr", { className: "r-row", role: "row", children: element?.map((col, index) => {
3605
+ return /* @__PURE__ */ jsx16(
3606
+ header_default,
3607
+ {
3608
+ col,
3609
+ dataSource,
3610
+ indexCol: index,
3611
+ indexParent,
3612
+ isMulti: isMulti ?? false,
3613
+ objWidthFix,
3614
+ selectEnable: selectEnable ?? false,
3615
+ selectedRows,
3616
+ setSelectedRows,
3617
+ totalCount
3618
+ }
3619
+ );
3583
3620
  }) }, indexParent);
3584
3621
  }) }),
3585
- /* @__PURE__ */ jsx14("tbody", { className: "r-gridcontent", children: renderData() }),
3586
- /* @__PURE__ */ jsx14("tfoot", { className: "r-gridfoot", children: haveSum == true ? /* @__PURE__ */ jsx14("tr", { className: "r-row", children: contentColumns.map((col, index) => {
3622
+ /* @__PURE__ */ jsx16("tbody", { className: "r-gridcontent", children: renderData() }),
3623
+ /* @__PURE__ */ jsx16("tfoot", { className: "r-gridfoot", children: haveSum == true ? /* @__PURE__ */ jsx16("tr", { className: "r-row", children: contentColumns.map((col, index) => {
3587
3624
  return renderFooterCol(col, index);
3588
- }) }) : /* @__PURE__ */ jsx14(Fragment16, {}) })
3625
+ }) }) : /* @__PURE__ */ jsx16(Fragment18, {}) })
3589
3626
  ] }) }),
3590
- toolbarSetting?.showBottomToolbar ? /* @__PURE__ */ jsx14(Fragment16, { children: renderToolbarBottom() }) : /* @__PURE__ */ jsx14(Fragment16, {})
3627
+ toolbarSetting?.showBottomToolbar ? /* @__PURE__ */ jsx16(Fragment18, { children: renderToolbarBottom() }) : /* @__PURE__ */ jsx16(Fragment18, {})
3591
3628
  ] }),
3592
- pagingSetting?.allowPaging ? /* @__PURE__ */ jsx14(
3629
+ pagingSetting?.allowPaging ? /* @__PURE__ */ jsx16(
3593
3630
  PagingComponent,
3594
3631
  {
3595
3632
  onChangePage,
@@ -3599,9 +3636,9 @@ var TableEdit = forwardRef3((props, ref) => {
3599
3636
  totalItem: pagingClient ? totalCount : pagingSetting?.totalItem ?? 0,
3600
3637
  onChangePageSize
3601
3638
  }
3602
- ) : /* @__PURE__ */ jsx14(Fragment16, {})
3639
+ ) : /* @__PURE__ */ jsx16(Fragment18, {})
3603
3640
  ] }),
3604
- /* @__PURE__ */ jsx14(
3641
+ /* @__PURE__ */ jsx16(
3605
3642
  sidebar_setting_column_default,
3606
3643
  {
3607
3644
  handleSidebar: () => {
@@ -3619,10 +3656,10 @@ var table_default = TableEdit;
3619
3656
  // test-app/src/component/tab-menu/index.tsx
3620
3657
  import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "becoxy-icons";
3621
3658
  import classNames6 from "classnames";
3622
- import { Fragment as Fragment17, useEffect as useEffect9, useState as useState8 } from "react";
3659
+ import { Fragment as Fragment19, useEffect as useEffect9, useState as useState8 } from "react";
3623
3660
  import { Link, useNavigate } from "react-router-dom";
3624
3661
  import { DropdownItem as DropdownItem3, DropdownMenu as DropdownMenu4, DropdownToggle as DropdownToggle4, UncontrolledDropdown as UncontrolledDropdown2 } from "reactstrap";
3625
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
3662
+ import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
3626
3663
  var TabsMenuComponent = ({
3627
3664
  buttonWidth,
3628
3665
  tabParent,
@@ -3697,22 +3734,22 @@ var TabsMenuComponent = ({
3697
3734
  const handleModal = (name) => {
3698
3735
  setOpenModal((old) => ({ ...old, [name]: !(openModal[name] ?? false) }));
3699
3736
  };
3700
- return /* @__PURE__ */ jsxs14(Fragment17, { children: [
3737
+ return /* @__PURE__ */ jsxs16(Fragment19, { children: [
3701
3738
  renderModal ? renderModal({ handleModal, windowSize, openModal, setDataItem, dataItem }) : "",
3702
- /* @__PURE__ */ jsxs14("div", { className: classNames6("tab-custom", { "tab-parent": tabParent }, { "tab-child": tabChild }), style: { width: `calc(100% - ${buttonWidth ?? 100}px` }, children: [
3703
- /* @__PURE__ */ jsx15(
3739
+ /* @__PURE__ */ jsxs16("div", { className: classNames6("tab-custom", { "tab-parent": tabParent }, { "tab-child": tabChild }), style: { width: `calc(100% - ${buttonWidth ?? 100}px` }, children: [
3740
+ /* @__PURE__ */ jsx17(
3704
3741
  "div",
3705
3742
  {
3706
3743
  onClick: () => handleScroll(-200),
3707
3744
  className: classNames6("btn-scroll", { "d-none": componentWidth >= contentWidth - 20 }),
3708
- children: /* @__PURE__ */ jsx15(ChevronLeft3, {})
3745
+ children: /* @__PURE__ */ jsx17(ChevronLeft3, {})
3709
3746
  }
3710
3747
  ),
3711
- /* @__PURE__ */ jsx15("div", { id: `tab-component-${resourceCode}`, className: "tab-component", children: /* @__PURE__ */ jsx15("div", { id: `content-component-${resourceCode}`, children: dataMenu.map((item) => {
3748
+ /* @__PURE__ */ jsx17("div", { id: `tab-component-${resourceCode}`, className: "tab-component", children: /* @__PURE__ */ jsx17("div", { id: `content-component-${resourceCode}`, children: dataMenu.map((item) => {
3712
3749
  if (item?.resAttributes?.IS_MENU === "1") {
3713
- return /* @__PURE__ */ jsxs14(UncontrolledDropdown2, { className: "tab-custom-item", isOpen: openMenu, toggle: toggleMenu, direction: "down", style: { backgroundColor: openMenu ? "#e0e0e0" : "" }, children: [
3714
- /* @__PURE__ */ jsx15(DropdownToggle4, { color: "#00000", style: { border: "none", boxShadow: "none", margin: 0, padding: 0 }, className: "background-none", children: /* @__PURE__ */ jsx15("div", { children: item.name }) }),
3715
- /* @__PURE__ */ jsx15(DropdownMenu4, { container: document.body, end: true, style: { width: 300 }, children: item?.children?.map((x) => /* @__PURE__ */ jsx15(
3750
+ return /* @__PURE__ */ jsxs16(UncontrolledDropdown2, { className: "tab-custom-item", isOpen: openMenu, toggle: toggleMenu, direction: "down", style: { backgroundColor: openMenu ? "#e0e0e0" : "" }, children: [
3751
+ /* @__PURE__ */ jsx17(DropdownToggle4, { color: "#00000", style: { border: "none", boxShadow: "none", margin: 0, padding: 0 }, className: "background-none", children: /* @__PURE__ */ jsx17("div", { children: item.name }) }),
3752
+ /* @__PURE__ */ jsx17(DropdownMenu4, { container: document.body, end: true, style: { width: 300 }, children: item?.children?.map((x) => /* @__PURE__ */ jsx17(
3716
3753
  DropdownItem3,
3717
3754
  {
3718
3755
  style: { borderRadius: "5px", margin: "0 0.5rem", width: "95%" },
@@ -3729,7 +3766,7 @@ var TabsMenuComponent = ({
3729
3766
  )) })
3730
3767
  ] }, item.code);
3731
3768
  } else {
3732
- return /* @__PURE__ */ jsx15(
3769
+ return /* @__PURE__ */ jsx17(
3733
3770
  Link,
3734
3771
  {
3735
3772
  to: item.url,
@@ -3740,12 +3777,12 @@ var TabsMenuComponent = ({
3740
3777
  );
3741
3778
  }
3742
3779
  }) }) }),
3743
- /* @__PURE__ */ jsx15(
3780
+ /* @__PURE__ */ jsx17(
3744
3781
  "div",
3745
3782
  {
3746
3783
  onClick: () => handleScroll(200),
3747
3784
  className: classNames6("btn-scroll", { "d-none": componentWidth >= contentWidth - 20 }),
3748
- children: /* @__PURE__ */ jsx15(ChevronRight3, {})
3785
+ children: /* @__PURE__ */ jsx17(ChevronRight3, {})
3749
3786
  }
3750
3787
  )
3751
3788
  ] })
@@ -3753,11 +3790,11 @@ var TabsMenuComponent = ({
3753
3790
  };
3754
3791
 
3755
3792
  // index.ts
3756
- var Table_edit_default = table_default;
3793
+ var Table_Edit_default = table_default;
3757
3794
  export {
3758
3795
  SelectTable,
3759
3796
  TabsMenuComponent,
3760
- Table_edit_default as default,
3797
+ Table_Edit_default as default,
3761
3798
  formartNumberic,
3762
3799
  generateUUID,
3763
3800
  isNullOrUndefined,