react-table-edit 1.1.3 → 1.1.5

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.d.mts CHANGED
@@ -1,5 +1,6 @@
1
- import React, { ReactNode, Dispatch, SetStateAction } from 'react';
2
- import { TFunction } from 'react-i18next';
1
+ import * as react from 'react';
2
+ import react__default, { ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import { TFunction } from 'i18next';
3
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
5
 
5
6
  type IFColumnSelectTable = {
@@ -45,7 +46,7 @@ type Props$1 = {
45
46
  showFooter?: boolean;
46
47
  onPaste?: any;
47
48
  };
48
- declare const SelectTable: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<unknown>>;
49
+ declare const SelectTable: react__default.ForwardRefExoticComponent<Props$1 & react__default.RefAttributes<unknown>>;
49
50
 
50
51
  type ITextAlign = 'center' | 'left' | 'right';
51
52
  type IEditType = 'text' | 'numeric' | 'datetime' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
@@ -211,7 +212,7 @@ type IHeaderColumnTable = {
211
212
  fixedType?: 'left' | 'right' | undefined;
212
213
  index?: number;
213
214
  };
214
- declare const TableEdit: React.ForwardRefExoticComponent<IFTableEditProps & React.RefAttributes<IFRef>>;
215
+ declare const TableEdit: react.ForwardRefExoticComponent<IFTableEditProps & react.RefAttributes<IFRef>>;
215
216
 
216
217
  type FromItemsField = {
217
218
  name: string;
@@ -309,7 +310,7 @@ type Props = {
309
310
  selectChilds?: boolean;
310
311
  onPaste?: any;
311
312
  };
312
- declare const SelectTableTree: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
313
+ declare const SelectTableTree: react__default.ForwardRefExoticComponent<Props & react__default.RefAttributes<unknown>>;
313
314
 
314
315
  interface IFDataStyleSetting {
315
316
  color: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import React, { ReactNode, Dispatch, SetStateAction } from 'react';
2
- import { TFunction } from 'react-i18next';
1
+ import * as react from 'react';
2
+ import react__default, { ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import { TFunction } from 'i18next';
3
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
5
 
5
6
  type IFColumnSelectTable = {
@@ -45,7 +46,7 @@ type Props$1 = {
45
46
  showFooter?: boolean;
46
47
  onPaste?: any;
47
48
  };
48
- declare const SelectTable: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<unknown>>;
49
+ declare const SelectTable: react__default.ForwardRefExoticComponent<Props$1 & react__default.RefAttributes<unknown>>;
49
50
 
50
51
  type ITextAlign = 'center' | 'left' | 'right';
51
52
  type IEditType = 'text' | 'numeric' | 'datetime' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
@@ -211,7 +212,7 @@ type IHeaderColumnTable = {
211
212
  fixedType?: 'left' | 'right' | undefined;
212
213
  index?: number;
213
214
  };
214
- declare const TableEdit: React.ForwardRefExoticComponent<IFTableEditProps & React.RefAttributes<IFRef>>;
215
+ declare const TableEdit: react.ForwardRefExoticComponent<IFTableEditProps & react.RefAttributes<IFRef>>;
215
216
 
216
217
  type FromItemsField = {
217
218
  name: string;
@@ -309,7 +310,7 @@ type Props = {
309
310
  selectChilds?: boolean;
310
311
  onPaste?: any;
311
312
  };
312
- declare const SelectTableTree: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
313
+ declare const SelectTableTree: react__default.ForwardRefExoticComponent<Props & react__default.RefAttributes<unknown>>;
313
314
 
314
315
  interface IFDataStyleSetting {
315
316
  color: string;
package/dist/index.js CHANGED
@@ -656,27 +656,12 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
656
656
  const isSelectedAll = (0, import_react6.useMemo)(() => {
657
657
  return isMulti === true && (optionsLoad ? optionsLoad : options).length > 0 && value?.length >= (optionsLoad ? optionsLoad : options).length;
658
658
  }, [optionsLoad, options, value]);
659
- const defaultColumns = noHeader ? [
659
+ const defaultColumns = [
660
660
  {
661
661
  headerText: "Name",
662
662
  field: fieldLabel ?? "label",
663
663
  width: menuWidth
664
664
  }
665
- ] : [
666
- {
667
- field: "key",
668
- headerText: "Code",
669
- width: 100,
670
- maxWidth: 120,
671
- minWidth: 80
672
- },
673
- {
674
- headerText: "Name",
675
- field: "label",
676
- width: 150,
677
- maxWidth: 200,
678
- minWidth: 250
679
- }
680
665
  ];
681
666
  const closeMenu = () => {
682
667
  setDropdownOpen(false);
@@ -997,7 +982,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
997
982
  let countDisplay = 0;
998
983
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
999
984
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("table", { style: { width: "100%" }, children: [
1000
- !noHeader && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("tr", { className: "r-select-row", role: "row", children: [
985
+ !(noHeader || (columns?.length ?? 0) === 0) && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("tr", { className: "r-select-row", role: "row", children: [
1001
986
  isMulti && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("th", { className: (0, import_classnames4.default)(`r-select-headercell`), style: { width: 40, top: `0px` }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1002
987
  "div",
1003
988
  {
@@ -1025,7 +1010,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1025
1010
  )
1026
1011
  }
1027
1012
  ) }),
1028
- !noHeader && (columns ? columns : defaultColumns).map((col, index) => {
1013
+ (columns ? columns : defaultColumns).map((col, index) => {
1029
1014
  return renderHeaderCol(col, index);
1030
1015
  })
1031
1016
  ] }) }),
@@ -1056,7 +1041,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1056
1041
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1057
1042
  "div",
1058
1043
  {
1059
- className: (0, import_classnames4.default)("react-select-table", { "is-invalid": invalid, "no-header": noHeader }),
1044
+ className: (0, import_classnames4.default)("react-select-table", { "is-invalid": invalid }),
1060
1045
  ref,
1061
1046
  id,
1062
1047
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref: selectTableRef, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -1158,7 +1143,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1158
1143
  }
1159
1144
  },
1160
1145
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "r-select-grid", children: [
1161
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_classnames4.default)("r-select-gridtable", { "no-header": noHeader }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RenderTable, {}) }),
1146
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_classnames4.default)("r-select-gridtable", { "no-header": noHeader || (columns?.length ?? 0) === 0 }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RenderTable, {}) }),
1162
1147
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_classnames4.default)("r-select-footer", { "d-none": !(showFooter === true || handleAdd) }), children: [
1163
1148
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_reactstrap4.Button, { outline: true, color: "primary", onClick: handleAdd, className: (0, import_classnames4.default)("r-btn d-flex align-items-center", { "d-none": !handleAdd }), children: [
1164
1149
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_becoxy_icons2.Plus, { className: "me-50", fontSize: 16 }),
@@ -2202,7 +2187,7 @@ var HeaderTableCol = (props) => {
2202
2187
  }
2203
2188
  }
2204
2189
  ),
2205
- col.field !== "checkbox" && t(col.headerText ?? "")
2190
+ col.field !== "checkbox" && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "header-content", children: t(col.headerText ?? "") }) })
2206
2191
  ]
2207
2192
  }
2208
2193
  )
@@ -2328,27 +2313,12 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
2328
2313
  const isSelectedAll = (0, import_react15.useMemo)(() => {
2329
2314
  return isMulti === true && options.length > 0 && areAllItemsSelected(value, options, fieldValue ?? "value");
2330
2315
  }, [options, value]);
2331
- const defaultColumns = noHeader ? [
2316
+ const defaultColumns = [
2332
2317
  {
2333
2318
  headerText: "Name",
2334
2319
  field: fieldLabel ?? "label",
2335
2320
  width: menuWidth
2336
2321
  }
2337
- ] : [
2338
- {
2339
- field: "key",
2340
- headerText: "Code",
2341
- width: 100,
2342
- maxWidth: 120,
2343
- minWidth: 80
2344
- },
2345
- {
2346
- headerText: "Name",
2347
- field: "label",
2348
- width: 150,
2349
- maxWidth: 200,
2350
- minWidth: 250
2351
- }
2352
2322
  ];
2353
2323
  const closeMenu = () => {
2354
2324
  setDropdownOpen(false);
@@ -2657,7 +2627,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
2657
2627
  let countDisplay = 0;
2658
2628
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
2659
2629
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("table", { style: { width: "100%" }, children: [
2660
- !noHeader && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("tr", { className: "r-select-row", role: "row", children: [
2630
+ !(noHeader && (columns?.length ?? 0) > 0) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("tr", { className: "r-select-row", role: "row", children: [
2661
2631
  isMulti && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2662
2632
  "th",
2663
2633
  {
@@ -2692,7 +2662,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
2692
2662
  )
2693
2663
  }
2694
2664
  ),
2695
- !noHeader && (columns ? columns : defaultColumns).map((col, index) => {
2665
+ (columns ? columns : defaultColumns).map((col, index) => {
2696
2666
  return renderHeaderCol(col, index);
2697
2667
  })
2698
2668
  ] }) }),
@@ -3146,7 +3116,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3146
3116
  },
3147
3117
  fieldValue: col.selectSettings?.fieldValue,
3148
3118
  fieldLabel: col.selectSettings?.fieldLabel,
3149
- component: tableElement,
3119
+ component: gridRef,
3150
3120
  columns: col.selectSettings?.columns,
3151
3121
  isClearable: col.selectSettings?.isClearable ?? false,
3152
3122
  decimalSeparator,
@@ -3228,7 +3198,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3228
3198
  },
3229
3199
  fieldValue: col.selectSettings?.fieldValue,
3230
3200
  fieldLabel: col.selectSettings?.fieldLabel,
3231
- component: tableElement,
3201
+ component: gridRef,
3232
3202
  columns: col.selectSettings?.columns,
3233
3203
  isClearable: col.selectSettings?.isClearable ?? false,
3234
3204
  decimalSeparator,
@@ -3595,7 +3565,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3595
3565
  };
3596
3566
  const handleDuplicate = (data, index) => {
3597
3567
  if (toolbarSetting?.showBottomToolbar && !buttonSetting?.duplicateDisable && !editDisable && !addDisable) {
3598
- if (fieldKey) {
3568
+ if (fieldKey && defaultValue) {
3599
3569
  fieldUniKey.forEach((item) => {
3600
3570
  data[item] = defaultValue[item];
3601
3571
  });
@@ -3833,7 +3803,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3833
3803
  right: col.fixedType === "right" ? objWidthFix[indexCol] : void 0,
3834
3804
  textAlign: col.textAlign ? col.textAlign : "left"
3835
3805
  },
3836
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "r-rowcell-div ", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(command_default, { commandItems: col.commandItems ?? [], handleCommandClick, indexRow, rowData: row, setIndexFocus, indexFocus }) })
3806
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "r-rowcell-div command", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(command_default, { commandItems: col.commandItems ?? [], handleCommandClick, indexRow, rowData: row, setIndexFocus, indexFocus }) })
3837
3807
  },
3838
3808
  `col-${indexRow}-${indexCol}`
3839
3809
  );
@@ -3885,7 +3855,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3885
3855
  e.stopPropagation();
3886
3856
  }
3887
3857
  },
3888
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "r-rowcell-div pt-50", children: indexRow + 1 })
3858
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "r-rowcell-div", children: indexRow + 1 })
3889
3859
  },
3890
3860
  `col-${indexRow}-${indexCol}`
3891
3861
  );
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // test-app/src/component/table/index.tsx
2
- import { Fragment as Fragment19, forwardRef as forwardRef4, useEffect as useEffect9, useImperativeHandle, useRef as useRef4, useState as useState8 } from "react";
2
+ import { Fragment as Fragment20, forwardRef as forwardRef4, useEffect as useEffect9, useImperativeHandle, useRef as useRef4, useState as useState8 } from "react";
3
3
  import { Button as Button6, DropdownMenu as DropdownMenu4, DropdownToggle as DropdownToggle4, Input as Input9, UncontrolledDropdown, UncontrolledTooltip as UncontrolledTooltip5 } from "reactstrap";
4
4
  import classnames9 from "classnames";
5
5
  import { useTranslation as useTranslation12 } from "react-i18next";
@@ -617,27 +617,12 @@ var SelectTable = forwardRef((props, ref) => {
617
617
  const isSelectedAll = useMemo(() => {
618
618
  return isMulti === true && (optionsLoad ? optionsLoad : options).length > 0 && value?.length >= (optionsLoad ? optionsLoad : options).length;
619
619
  }, [optionsLoad, options, value]);
620
- const defaultColumns = noHeader ? [
620
+ const defaultColumns = [
621
621
  {
622
622
  headerText: "Name",
623
623
  field: fieldLabel ?? "label",
624
624
  width: menuWidth
625
625
  }
626
- ] : [
627
- {
628
- field: "key",
629
- headerText: "Code",
630
- width: 100,
631
- maxWidth: 120,
632
- minWidth: 80
633
- },
634
- {
635
- headerText: "Name",
636
- field: "label",
637
- width: 150,
638
- maxWidth: 200,
639
- minWidth: 250
640
- }
641
626
  ];
642
627
  const closeMenu = () => {
643
628
  setDropdownOpen(false);
@@ -958,7 +943,7 @@ var SelectTable = forwardRef((props, ref) => {
958
943
  let countDisplay = 0;
959
944
  return /* @__PURE__ */ jsxs5(Fragment6, { children: [
960
945
  /* @__PURE__ */ jsxs5("table", { style: { width: "100%" }, children: [
961
- !noHeader && /* @__PURE__ */ jsx5("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ jsxs5("tr", { className: "r-select-row", role: "row", children: [
946
+ !(noHeader || (columns?.length ?? 0) === 0) && /* @__PURE__ */ jsx5("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ jsxs5("tr", { className: "r-select-row", role: "row", children: [
962
947
  isMulti && /* @__PURE__ */ jsx5("th", { className: classnames3(`r-select-headercell`), style: { width: 40, top: `0px` }, children: /* @__PURE__ */ jsx5(
963
948
  "div",
964
949
  {
@@ -986,7 +971,7 @@ var SelectTable = forwardRef((props, ref) => {
986
971
  )
987
972
  }
988
973
  ) }),
989
- !noHeader && (columns ? columns : defaultColumns).map((col, index) => {
974
+ (columns ? columns : defaultColumns).map((col, index) => {
990
975
  return renderHeaderCol(col, index);
991
976
  })
992
977
  ] }) }),
@@ -1017,7 +1002,7 @@ var SelectTable = forwardRef((props, ref) => {
1017
1002
  return /* @__PURE__ */ jsx5(
1018
1003
  "div",
1019
1004
  {
1020
- className: classnames3("react-select-table", { "is-invalid": invalid, "no-header": noHeader }),
1005
+ className: classnames3("react-select-table", { "is-invalid": invalid }),
1021
1006
  ref,
1022
1007
  id,
1023
1008
  children: /* @__PURE__ */ jsx5("div", { ref: selectTableRef, children: /* @__PURE__ */ jsxs5(
@@ -1119,7 +1104,7 @@ var SelectTable = forwardRef((props, ref) => {
1119
1104
  }
1120
1105
  },
1121
1106
  children: /* @__PURE__ */ jsxs5("div", { className: "r-select-grid", children: [
1122
- /* @__PURE__ */ jsx5("div", { className: classnames3("r-select-gridtable", { "no-header": noHeader }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ jsx5(RenderTable, {}) }),
1107
+ /* @__PURE__ */ jsx5("div", { className: classnames3("r-select-gridtable", { "no-header": noHeader || (columns?.length ?? 0) === 0 }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ jsx5(RenderTable, {}) }),
1123
1108
  /* @__PURE__ */ jsxs5("div", { className: classnames3("r-select-footer", { "d-none": !(showFooter === true || handleAdd) }), children: [
1124
1109
  /* @__PURE__ */ jsxs5(Button, { outline: true, color: "primary", onClick: handleAdd, className: classnames3("r-btn d-flex align-items-center", { "d-none": !handleAdd }), children: [
1125
1110
  /* @__PURE__ */ jsx5(Plus, { className: "me-50", fontSize: 16 }),
@@ -2091,7 +2076,7 @@ import { Input as Input7 } from "reactstrap";
2091
2076
  import { useTranslation as useTranslation9 } from "react-i18next";
2092
2077
  import { Resizable } from "react-resizable";
2093
2078
  import "react-resizable/css/styles.css";
2094
- import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
2079
+ import { Fragment as Fragment15, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
2095
2080
  var HeaderTableCol = (props) => {
2096
2081
  const {
2097
2082
  selectEnable,
@@ -2163,7 +2148,7 @@ var HeaderTableCol = (props) => {
2163
2148
  }
2164
2149
  }
2165
2150
  ),
2166
- col.field !== "checkbox" && t(col.headerText ?? "")
2151
+ col.field !== "checkbox" && /* @__PURE__ */ jsx12(Fragment15, { children: /* @__PURE__ */ jsx12("span", { className: "header-content", children: t(col.headerText ?? "") }) })
2167
2152
  ]
2168
2153
  }
2169
2154
  )
@@ -2175,14 +2160,14 @@ var HeaderTableCol = (props) => {
2175
2160
  var header_default = HeaderTableCol;
2176
2161
 
2177
2162
  // test-app/src/component/table/command.tsx
2178
- import { Fragment as Fragment16 } from "react";
2163
+ import { Fragment as Fragment17 } from "react";
2179
2164
  import classnames7 from "classnames";
2180
2165
  import { Button as Button4, UncontrolledTooltip as UncontrolledTooltip3 } from "reactstrap";
2181
2166
  import { useTranslation as useTranslation10 } from "react-i18next";
2182
2167
 
2183
2168
  // test-app/src/component/icon/index.tsx
2184
2169
  import * as Icon from "becoxy-icons";
2185
- import { Fragment as Fragment15 } from "react";
2170
+ import { Fragment as Fragment16 } from "react";
2186
2171
  import { jsx as jsx13 } from "react/jsx-runtime";
2187
2172
  var IconCustom = (props) => {
2188
2173
  const { iconName, size } = props;
@@ -2190,7 +2175,7 @@ var IconCustom = (props) => {
2190
2175
  return null;
2191
2176
  } else {
2192
2177
  const TagIcon = iconName === "" ? "" : Icon[iconName];
2193
- return /* @__PURE__ */ jsx13(Fragment15, { children: iconName === "" ? "" : /* @__PURE__ */ jsx13(TagIcon, { fontSize: size }) });
2178
+ return /* @__PURE__ */ jsx13(Fragment16, { children: iconName === "" ? "" : /* @__PURE__ */ jsx13(TagIcon, { fontSize: size }) });
2194
2179
  }
2195
2180
  };
2196
2181
  var icon_default = IconCustom;
@@ -2200,7 +2185,7 @@ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2200
2185
  var CommandElement = (props) => {
2201
2186
  const { commandItems, rowData, indexRow, handleCommandClick, indexFocus, setIndexFocus } = props;
2202
2187
  const { t } = useTranslation10();
2203
- return /* @__PURE__ */ jsx14(Fragment16, { children: /* @__PURE__ */ jsx14("div", { className: "d-flex align-items-center", style: { columnGap: 10 }, children: commandItems.map((item, index) => {
2188
+ return /* @__PURE__ */ jsx14(Fragment17, { children: /* @__PURE__ */ jsx14("div", { className: "d-flex align-items-center", style: { columnGap: 10 }, children: commandItems.map((item, index) => {
2204
2189
  return /* @__PURE__ */ jsxs13(
2205
2190
  Button4,
2206
2191
  {
@@ -2230,7 +2215,7 @@ var CommandElement = (props) => {
2230
2215
  var command_default = CommandElement;
2231
2216
 
2232
2217
  // test-app/src/component/select-table-tree/index.tsx
2233
- import React2, { forwardRef as forwardRef3, Fragment as Fragment17, useEffect as useEffect8, useMemo as useMemo2, useRef as useRef3, useState as useState7 } from "react";
2218
+ import React2, { forwardRef as forwardRef3, Fragment as Fragment18, useEffect as useEffect8, useMemo as useMemo2, useRef as useRef3, useState as useState7 } from "react";
2234
2219
  import {
2235
2220
  DropdownItem as DropdownItem3,
2236
2221
  DropdownMenu as DropdownMenu3,
@@ -2244,7 +2229,7 @@ import { useTranslation as useTranslation11 } from "react-i18next";
2244
2229
  import classnames8 from "classnames";
2245
2230
  import moment2 from "moment";
2246
2231
  import { ChevronRight as ChevronRight3, Plus as Plus3 } from "becoxy-icons";
2247
- import { Fragment as Fragment18, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2232
+ import { Fragment as Fragment19, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2248
2233
  var defaultMaxHeight2 = 250;
2249
2234
  var SelectTableTree = forwardRef3((props, ref) => {
2250
2235
  const {
@@ -2297,27 +2282,12 @@ var SelectTableTree = forwardRef3((props, ref) => {
2297
2282
  const isSelectedAll = useMemo2(() => {
2298
2283
  return isMulti === true && options.length > 0 && areAllItemsSelected(value, options, fieldValue ?? "value");
2299
2284
  }, [options, value]);
2300
- const defaultColumns = noHeader ? [
2285
+ const defaultColumns = [
2301
2286
  {
2302
2287
  headerText: "Name",
2303
2288
  field: fieldLabel ?? "label",
2304
2289
  width: menuWidth
2305
2290
  }
2306
- ] : [
2307
- {
2308
- field: "key",
2309
- headerText: "Code",
2310
- width: 100,
2311
- maxWidth: 120,
2312
- minWidth: 80
2313
- },
2314
- {
2315
- headerText: "Name",
2316
- field: "label",
2317
- width: 150,
2318
- maxWidth: 200,
2319
- minWidth: 250
2320
- }
2321
2291
  ];
2322
2292
  const closeMenu = () => {
2323
2293
  setDropdownOpen(false);
@@ -2389,7 +2359,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
2389
2359
  }
2390
2360
  };
2391
2361
  const renderHeaderCol = (col, indexCol) => {
2392
- return /* @__PURE__ */ jsx15(Fragment17, { children: col.visible !== false && /* @__PURE__ */ jsx15(
2362
+ return /* @__PURE__ */ jsx15(Fragment18, { children: col.visible !== false && /* @__PURE__ */ jsx15(
2393
2363
  "th",
2394
2364
  {
2395
2365
  className: classnames8(`r-select-headercell fix-${col.fixedType}`, { "cell-fixed": col.fixedType }),
@@ -2452,7 +2422,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
2452
2422
  const RenderElement = React2.memo((props2) => {
2453
2423
  const { indexRow, row, isSelected, level = 0 } = props2;
2454
2424
  const [expanded, setExpanded] = useState7(row.expanded);
2455
- return /* @__PURE__ */ jsxs14(Fragment18, { children: [
2425
+ return /* @__PURE__ */ jsxs14(Fragment19, { children: [
2456
2426
  /* @__PURE__ */ jsxs14(
2457
2427
  "tr",
2458
2428
  {
@@ -2537,7 +2507,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
2537
2507
  } else if (col.type === "datetime") {
2538
2508
  valueDisplay = valueDisplay ? moment2(valueDisplay).format("DD/MM/yyyy HH:mm") : "";
2539
2509
  }
2540
- return /* @__PURE__ */ jsxs14(Fragment17, { children: [
2510
+ return /* @__PURE__ */ jsxs14(Fragment18, { children: [
2541
2511
  col.visible !== false && /* @__PURE__ */ jsxs14(
2542
2512
  "td",
2543
2513
  {
@@ -2624,9 +2594,9 @@ var SelectTableTree = forwardRef3((props, ref) => {
2624
2594
  const RenderTable = (props2) => {
2625
2595
  const {} = props2;
2626
2596
  let countDisplay = 0;
2627
- return /* @__PURE__ */ jsxs14(Fragment18, { children: [
2597
+ return /* @__PURE__ */ jsxs14(Fragment19, { children: [
2628
2598
  /* @__PURE__ */ jsxs14("table", { style: { width: "100%" }, children: [
2629
- !noHeader && /* @__PURE__ */ jsx15("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ jsxs14("tr", { className: "r-select-row", role: "row", children: [
2599
+ !(noHeader && (columns?.length ?? 0) > 0) && /* @__PURE__ */ jsx15("thead", { className: "r-select-gridheader", children: /* @__PURE__ */ jsxs14("tr", { className: "r-select-row", role: "row", children: [
2630
2600
  isMulti && /* @__PURE__ */ jsx15(
2631
2601
  "th",
2632
2602
  {
@@ -2661,11 +2631,11 @@ var SelectTableTree = forwardRef3((props, ref) => {
2661
2631
  )
2662
2632
  }
2663
2633
  ),
2664
- !noHeader && (columns ? columns : defaultColumns).map((col, index) => {
2634
+ (columns ? columns : defaultColumns).map((col, index) => {
2665
2635
  return renderHeaderCol(col, index);
2666
2636
  })
2667
2637
  ] }) }),
2668
- options.length > 0 && /* @__PURE__ */ jsx15(Fragment18, { children: /* @__PURE__ */ jsx15("tbody", { className: "r-select-gridcontent", children: options?.map((row, indexRow) => {
2638
+ options.length > 0 && /* @__PURE__ */ jsx15(Fragment19, { children: /* @__PURE__ */ jsx15("tbody", { className: "r-select-gridcontent", children: options?.map((row, indexRow) => {
2669
2639
  if (checkSearch(searchTerm, row, columns ? columns : defaultColumns)) {
2670
2640
  const isSelected = value && (isMulti ? value?.some((x) => x === row[fieldValue ?? "value"]) : value[fieldValue ?? "value"] === row[fieldValue ?? "value"]);
2671
2641
  countDisplay++;
@@ -2729,12 +2699,12 @@ var SelectTableTree = forwardRef3((props, ref) => {
2729
2699
  className: classnames8("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2730
2700
  children: [
2731
2701
  /* @__PURE__ */ jsxs14("div", { className: "select-table-container", children: [
2732
- isMulti ? /* @__PURE__ */ jsx15(Fragment18, { children: /* @__PURE__ */ jsx15("div", { className: classnames8("select-value is-mutil", { "d-none": searchTerm }), children: getSelectedRecords(options, value).map((ele, index) => {
2702
+ isMulti ? /* @__PURE__ */ jsx15(Fragment19, { children: /* @__PURE__ */ jsx15("div", { className: classnames8("select-value is-mutil", { "d-none": searchTerm }), children: getSelectedRecords(options, value).map((ele, index) => {
2733
2703
  return /* @__PURE__ */ jsxs14("span", { children: [
2734
2704
  index === 0 ? "" : ", ",
2735
2705
  ele[fieldLabel ?? "label"]
2736
2706
  ] }, index);
2737
- }) }) }) : /* @__PURE__ */ jsx15(Fragment18, { children: /* @__PURE__ */ jsxs14("div", { className: classnames8("select-value", { "d-none": searchTerm }), children: [
2707
+ }) }) }) : /* @__PURE__ */ jsx15(Fragment19, { children: /* @__PURE__ */ jsxs14("div", { className: classnames8("select-value", { "d-none": searchTerm }), children: [
2738
2708
  value ? formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? "label"] : "",
2739
2709
  " "
2740
2710
  ] }) }),
@@ -2815,7 +2785,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
2815
2785
 
2816
2786
  // test-app/src/component/table/index.tsx
2817
2787
  import { NumericFormat } from "react-number-format";
2818
- import { Fragment as Fragment20, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2788
+ import { Fragment as Fragment21, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2819
2789
  var TableEdit = forwardRef4((props, ref) => {
2820
2790
  const { t } = useTranslation12();
2821
2791
  const {
@@ -3001,7 +2971,7 @@ var TableEdit = forwardRef4((props, ref) => {
3001
2971
  }
3002
2972
  };
3003
2973
  const searchTemplate = () => {
3004
- return /* @__PURE__ */ jsx16(Fragment19, { children: /* @__PURE__ */ jsx16("div", { className: "me-50 r-search", children: /* @__PURE__ */ jsx16(
2974
+ return /* @__PURE__ */ jsx16(Fragment20, { children: /* @__PURE__ */ jsx16("div", { className: "me-50 r-search", children: /* @__PURE__ */ jsx16(
3005
2975
  react_input_default,
3006
2976
  {
3007
2977
  style: { width: "230px" },
@@ -3115,7 +3085,7 @@ var TableEdit = forwardRef4((props, ref) => {
3115
3085
  },
3116
3086
  fieldValue: col.selectSettings?.fieldValue,
3117
3087
  fieldLabel: col.selectSettings?.fieldLabel,
3118
- component: tableElement,
3088
+ component: gridRef,
3119
3089
  columns: col.selectSettings?.columns,
3120
3090
  isClearable: col.selectSettings?.isClearable ?? false,
3121
3091
  decimalSeparator,
@@ -3197,7 +3167,7 @@ var TableEdit = forwardRef4((props, ref) => {
3197
3167
  },
3198
3168
  fieldValue: col.selectSettings?.fieldValue,
3199
3169
  fieldLabel: col.selectSettings?.fieldLabel,
3200
- component: tableElement,
3170
+ component: gridRef,
3201
3171
  columns: col.selectSettings?.columns,
3202
3172
  isClearable: col.selectSettings?.isClearable ?? false,
3203
3173
  decimalSeparator,
@@ -3564,7 +3534,7 @@ var TableEdit = forwardRef4((props, ref) => {
3564
3534
  };
3565
3535
  const handleDuplicate = (data, index) => {
3566
3536
  if (toolbarSetting?.showBottomToolbar && !buttonSetting?.duplicateDisable && !editDisable && !addDisable) {
3567
- if (fieldKey) {
3537
+ if (fieldKey && defaultValue) {
3568
3538
  fieldUniKey.forEach((item) => {
3569
3539
  data[item] = defaultValue[item];
3570
3540
  });
@@ -3802,7 +3772,7 @@ var TableEdit = forwardRef4((props, ref) => {
3802
3772
  right: col.fixedType === "right" ? objWidthFix[indexCol] : void 0,
3803
3773
  textAlign: col.textAlign ? col.textAlign : "left"
3804
3774
  },
3805
- children: /* @__PURE__ */ jsx16("div", { className: "r-rowcell-div ", children: /* @__PURE__ */ jsx16(command_default, { commandItems: col.commandItems ?? [], handleCommandClick, indexRow, rowData: row, setIndexFocus, indexFocus }) })
3775
+ children: /* @__PURE__ */ jsx16("div", { className: "r-rowcell-div command", children: /* @__PURE__ */ jsx16(command_default, { commandItems: col.commandItems ?? [], handleCommandClick, indexRow, rowData: row, setIndexFocus, indexFocus }) })
3806
3776
  },
3807
3777
  `col-${indexRow}-${indexCol}`
3808
3778
  );
@@ -3854,7 +3824,7 @@ var TableEdit = forwardRef4((props, ref) => {
3854
3824
  e.stopPropagation();
3855
3825
  }
3856
3826
  },
3857
- children: /* @__PURE__ */ jsx16("div", { className: "r-rowcell-div pt-50", children: indexRow + 1 })
3827
+ children: /* @__PURE__ */ jsx16("div", { className: "r-rowcell-div", children: indexRow + 1 })
3858
3828
  },
3859
3829
  `col-${indexRow}-${indexCol}`
3860
3830
  );
@@ -3923,7 +3893,7 @@ var TableEdit = forwardRef4((props, ref) => {
3923
3893
  }
3924
3894
  const typeDis = !editDisable && (indexFocus === indexRow || col.editType === "checkbox") && (!col.disabledCondition || !col.disabledCondition(row)) ? col.editEnable ? 1 : col.template ? 2 : 3 : col.template ? 2 : 3;
3925
3895
  const errorMessage = typeDis === 1 || col.field === "" || !col.validate ? "" : col.validate(row[col.field], row);
3926
- return /* @__PURE__ */ jsx16(Fragment19, { children: col.visible !== false && /* @__PURE__ */ jsx16(
3896
+ return /* @__PURE__ */ jsx16(Fragment20, { children: col.visible !== false && /* @__PURE__ */ jsx16(
3927
3897
  "td",
3928
3898
  {
3929
3899
  className: classnames9(
@@ -4008,7 +3978,7 @@ var TableEdit = forwardRef4((props, ref) => {
4008
3978
  return element && element.scrollWidth > element.clientWidth;
4009
3979
  };
4010
3980
  const renderFooterCol = (col, indexCol) => {
4011
- return /* @__PURE__ */ jsx16(Fragment19, { children: col.visible !== false && /* @__PURE__ */ jsx16(
3981
+ return /* @__PURE__ */ jsx16(Fragment20, { children: col.visible !== false && /* @__PURE__ */ jsx16(
4012
3982
  "td",
4013
3983
  {
4014
3984
  className: classnames9(
@@ -4043,13 +4013,13 @@ var TableEdit = forwardRef4((props, ref) => {
4043
4013
  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: [
4044
4014
  /* @__PURE__ */ jsxs15("div", { className: "r-toolbar-left", children: [
4045
4015
  /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button6, { color: "success", outline: true, onClick: handleAdd, className: "d-flex", children: t("Add item") }) }),
4046
- (indexFocus ?? -1) > -1 ? /* @__PURE__ */ jsxs15(Fragment20, { children: [
4016
+ (indexFocus ?? -1) > -1 ? /* @__PURE__ */ jsxs15(Fragment21, { children: [
4047
4017
  /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.duplicateDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button6, { color: "success", outline: true, onClick: () => {
4048
4018
  handleDuplicate(dataSource[indexFocus ?? -1], indexFocus ?? -1);
4049
4019
  }, className: "d-flex", children: t("Duplicate") }) }),
4050
4020
  /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.insertBeforeDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button6, { color: "success", outline: true, onClick: handleInsertBefore, className: "d-flex", children: t("Insert item before") }) }),
4051
4021
  /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || addDisable || buttonSetting?.insertAfterDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button6, { color: "success", outline: true, onClick: handleInsertAfter, className: "d-flex", children: t("Insert item after") }) })
4052
- ] }) : /* @__PURE__ */ jsx16(Fragment20, { children: " " }),
4022
+ ] }) : /* @__PURE__ */ jsx16(Fragment21, { children: " " }),
4053
4023
  /* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item", { "d-none": editDisable || buttonSetting?.deleteAllDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Button6, { color: "primary", outline: true, onClick: handleDeleteAll, className: "d-flex", children: t("Delete all item") }) }),
4054
4024
  toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
4055
4025
  return item.align === "left" ? /* @__PURE__ */ jsx16("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-left-${index}`) : "";
@@ -4117,10 +4087,10 @@ var TableEdit = forwardRef4((props, ref) => {
4117
4087
  pagingSetting?.setCurrentPage(1);
4118
4088
  }
4119
4089
  }, [searchTerm, searchSetting?.searchTerm]);
4120
- return /* @__PURE__ */ jsxs15(Fragment19, { children: [
4090
+ return /* @__PURE__ */ jsxs15(Fragment20, { children: [
4121
4091
  /* @__PURE__ */ jsxs15("div", { className: "react-table-edit", children: [
4122
4092
  /* @__PURE__ */ jsxs15("div", { className: "r-grid", ref: gridRef, children: [
4123
- toolbarSetting?.showTopToolbar ? /* @__PURE__ */ jsx16(Fragment20, { children: renderToolbarTop() }) : /* @__PURE__ */ jsx16(Fragment20, {}),
4093
+ toolbarSetting?.showTopToolbar ? /* @__PURE__ */ jsx16(Fragment21, { children: renderToolbarTop() }) : /* @__PURE__ */ jsx16(Fragment21, {}),
4124
4094
  /* @__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: [
4125
4095
  /* @__PURE__ */ jsx16("thead", { className: "r-gridheader", children: headerColumns.map((element, indexParent) => {
4126
4096
  return /* @__PURE__ */ jsx16("tr", { className: "r-row", role: "row", children: element?.map((col, index) => {
@@ -4147,9 +4117,9 @@ var TableEdit = forwardRef4((props, ref) => {
4147
4117
  /* @__PURE__ */ jsx16("tbody", { className: "r-gridcontent", children: renderData() }),
4148
4118
  /* @__PURE__ */ jsx16("tfoot", { className: "r-gridfoot", children: haveSum == true ? /* @__PURE__ */ jsx16("tr", { className: "r-row", children: contentColumns.map((col, index) => {
4149
4119
  return renderFooterCol(col, index);
4150
- }) }) : /* @__PURE__ */ jsx16(Fragment20, {}) })
4120
+ }) }) : /* @__PURE__ */ jsx16(Fragment21, {}) })
4151
4121
  ] }) }),
4152
- toolbarSetting?.showBottomToolbar ? /* @__PURE__ */ jsx16(Fragment20, { children: renderToolbarBottom() }) : /* @__PURE__ */ jsx16(Fragment20, {})
4122
+ toolbarSetting?.showBottomToolbar ? /* @__PURE__ */ jsx16(Fragment21, { children: renderToolbarBottom() }) : /* @__PURE__ */ jsx16(Fragment21, {})
4153
4123
  ] }),
4154
4124
  pagingSetting?.allowPaging ? /* @__PURE__ */ jsx16(
4155
4125
  PagingComponent,
@@ -4161,7 +4131,7 @@ var TableEdit = forwardRef4((props, ref) => {
4161
4131
  totalItem: pagingClient ? totalCount : pagingSetting?.totalItem ?? 0,
4162
4132
  onChangePageSize
4163
4133
  }
4164
- ) : /* @__PURE__ */ jsx16(Fragment20, {})
4134
+ ) : /* @__PURE__ */ jsx16(Fragment21, {})
4165
4135
  ] }),
4166
4136
  /* @__PURE__ */ jsx16(
4167
4137
  sidebar_setting_column_default,
@@ -4181,7 +4151,7 @@ var table_default = TableEdit;
4181
4151
  // test-app/src/component/tab-menu/index.tsx
4182
4152
  import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight4 } from "becoxy-icons";
4183
4153
  import classNames6 from "classnames";
4184
- import { Fragment as Fragment21, useEffect as useEffect10, useState as useState9 } from "react";
4154
+ import { Fragment as Fragment22, useEffect as useEffect10, useState as useState9 } from "react";
4185
4155
  import { Link, useNavigate } from "react-router-dom";
4186
4156
  import { DropdownItem as DropdownItem4, DropdownMenu as DropdownMenu5, DropdownToggle as DropdownToggle5, UncontrolledDropdown as UncontrolledDropdown2 } from "reactstrap";
4187
4157
  import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
@@ -4259,7 +4229,7 @@ var TabsMenuComponent = ({
4259
4229
  const handleModal = (name) => {
4260
4230
  setOpenModal((old) => ({ ...old, [name]: !(openModal[name] ?? false) }));
4261
4231
  };
4262
- return /* @__PURE__ */ jsxs16(Fragment21, { children: [
4232
+ return /* @__PURE__ */ jsxs16(Fragment22, { children: [
4263
4233
  renderModal ? renderModal({ handleModal, windowSize, openModal, setDataItem, dataItem }) : "",
4264
4234
  /* @__PURE__ */ jsxs16("div", { className: classNames6("tab-custom", { "tab-parent": tabParent }, { "tab-child": tabChild }), style: { width: `calc(100% - ${buttonWidth ?? 100}px` }, children: [
4265
4235
  /* @__PURE__ */ jsx17(
@@ -4318,7 +4288,7 @@ var TabsMenuComponent = ({
4318
4288
  import { Bold, Droplet, Italic, Type, Underline } from "becoxy-icons";
4319
4289
  import { Button as Button7, Input as Input10 } from "reactstrap";
4320
4290
  import classnames10 from "classnames";
4321
- import { Fragment as Fragment22 } from "react";
4291
+ import { Fragment as Fragment23 } from "react";
4322
4292
 
4323
4293
  // test-app/src/component/input-style/fonts.ts
4324
4294
  var OptionFont = [
@@ -5191,7 +5161,7 @@ var InputStyleComponent = (props) => {
5191
5161
  disabledItalic,
5192
5162
  disabledUnderline
5193
5163
  } = props;
5194
- return /* @__PURE__ */ jsx18(Fragment22, { children: /* @__PURE__ */ jsxs17("div", { className: "d-flex align-items-center", children: [
5164
+ return /* @__PURE__ */ jsx18(Fragment23, { children: /* @__PURE__ */ jsxs17("div", { className: "d-flex align-items-center", children: [
5195
5165
  /* @__PURE__ */ jsx18(
5196
5166
  SelectTable,
5197
5167
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "1.1.3",
4
+ "version": "1.1.5",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",