@pnkx-lib/ui 1.9.57 → 1.9.59

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.
@@ -1713,41 +1713,9 @@ var BarsOutlined = function BarsOutlined(props, ref) {
1713
1713
  };
1714
1714
 
1715
1715
  /**![bars](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTJIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHpNMTA0IDIyOGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHptMCAyODRhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAweiIgLz48L3N2Zz4=) */
1716
- var RefIcon$8 = /*#__PURE__*/React.forwardRef(BarsOutlined);
1716
+ var RefIcon$6 = /*#__PURE__*/React.forwardRef(BarsOutlined);
1717
1717
  if (process.env.NODE_ENV !== 'production') {
1718
- RefIcon$8.displayName = 'BarsOutlined';
1719
- }
1720
-
1721
- // This icon file is generated automatically.
1722
- var DeleteOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, "name": "delete", "theme": "outlined" };
1723
-
1724
- var DeleteOutlined = function DeleteOutlined(props, ref) {
1725
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
1726
- ref: ref,
1727
- icon: DeleteOutlined$1
1728
- }));
1729
- };
1730
-
1731
- /**![delete](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM2MCAxODRoLThjNC40IDAgOC0zLjYgOC04djhoMzA0di04YzAgNC40IDMuNiA4IDggOGgtOHY3Mmg3MnYtODBjMC0zNS4zLTI4LjctNjQtNjQtNjRIMzUyYy0zNS4zIDAtNjQgMjguNy02NCA2NHY4MGg3MnYtNzJ6bTUwNCA3MkgxNjBjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjMyYzAgNC40IDMuNiA4IDggOGg2MC40bDI0LjcgNTIzYzEuNiAzNC4xIDI5LjggNjEgNjMuOSA2MWg0NTRjMzQuMiAwIDYyLjMtMjYuOCA2My45LTYxbDI0LjctNTIzSDg4OGM0LjQgMCA4LTMuNiA4LTh2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MzEuMyA4NDBIMjkyLjdsLTI0LjItNTEyaDQ4N2wtMjQuMiA1MTJ6IiAvPjwvc3ZnPg==) */
1732
- var RefIcon$7 = /*#__PURE__*/React.forwardRef(DeleteOutlined);
1733
- if (process.env.NODE_ENV !== 'production') {
1734
- RefIcon$7.displayName = 'DeleteOutlined';
1735
- }
1736
-
1737
- // This icon file is generated automatically.
1738
- var EditOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, "name": "edit", "theme": "outlined" };
1739
-
1740
- var EditOutlined = function EditOutlined(props, ref) {
1741
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
1742
- ref: ref,
1743
- icon: EditOutlined$1
1744
- }));
1745
- };
1746
-
1747
- /**![edit](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI1Ny43IDc1MmMyIDAgNC0uMiA2LS41TDQzMS45IDcyMmMyLS40IDMuOS0xLjMgNS4zLTIuOGw0MjMuOS00MjMuOWE5Ljk2IDkuOTYgMCAwMDAtMTQuMUw2OTQuOSAxMTQuOWMtMS45LTEuOS00LjQtMi45LTcuMS0yLjlzLTUuMiAxLTcuMSAyLjlMMjU2LjggNTM4LjhjLTEuNSAxLjUtMi40IDMuMy0yLjggNS4zbC0yOS41IDE2OC4yYTMzLjUgMzMuNSAwIDAwOS40IDI5LjhjNi42IDYuNCAxNC45IDkuOSAyMy44IDkuOXptNjcuNC0xNzQuNEw2ODcuOCAyMTVsNzMuMyA3My4zLTM2Mi43IDM2Mi42LTg4LjkgMTUuNyAxNS42LTg5ek04ODAgODM2SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTM2YzAtMTcuNy0xNC4zLTMyLTMyLTMyeiIgLz48L3N2Zz4=) */
1748
- var RefIcon$6 = /*#__PURE__*/React.forwardRef(EditOutlined);
1749
- if (process.env.NODE_ENV !== 'production') {
1750
- RefIcon$6.displayName = 'EditOutlined';
1718
+ RefIcon$6.displayName = 'BarsOutlined';
1751
1719
  }
1752
1720
 
1753
1721
  // This icon file is generated automatically.
@@ -6697,12 +6665,12 @@ const ActivateIcon = ({ stroke, fill }) => /* @__PURE__ */ jsxRuntimeExports.jsx
6697
6665
  }
6698
6666
  ) });
6699
6667
 
6700
- const DeleteIcon = ({ stroke, fill }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 22, height: 22, fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6668
+ const DeleteIcon = ({ stroke, fill = "#DD4338" }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 20, fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6701
6669
  "path",
6702
6670
  {
6703
6671
  fill,
6704
6672
  stroke,
6705
- d: "m17.302 16.518.75.007-.75-.007ZM3.686 4.764a.75.75 0 0 0 0 1.5v-1.5Zm14.628 1.5a.75.75 0 0 0 0-1.5v1.5ZM9.921 9.171a.75.75 0 1 0-1.5 0h1.5Zm-1.5 7.315a.75.75 0 1 0 1.5 0h-1.5ZM13.58 9.17a.75.75 0 1 0-1.5 0h1.5Zm-1.5 7.315a.75.75 0 1 0 1.5 0h-1.5ZM17.4 5.514l-.75-.006-.098 11.004.75.006.75.007.098-11.004-.75-.007Zm-3.755 14.629v-.75H8.257v1.5h5.388v-.75ZM4.6 5.514h-.75v10.972h1.5V5.514H4.6Zm-.914 0v.75H4.6v-1.5h-.914v.75Zm.914 0v.75h2.743v-1.5H4.6v.75Zm2.743 0v.75h7.314v-1.5H7.343v.75Zm7.314 0v.75H17.4v-1.5h-2.743v.75Zm2.743 0v.75h.914v-1.5H17.4v.75ZM7.343 5.108h.75c0-1.3 1.216-2.5 2.907-2.5v-1.5c-2.348 0-4.407 1.71-4.407 4h.75ZM11 1.858v.75c1.691 0 2.907 1.2 2.907 2.5h1.5c0-2.29-2.058-4-4.407-4v.75Zm-3.657 3.25h-.75v.406h1.5v-.406h-.75Zm7.314 0h-.75v.406h1.5v-.406h-.75Zm-6.4 15.035v-.75a2.907 2.907 0 0 1-2.907-2.907h-1.5a4.407 4.407 0 0 0 4.407 4.407v-.75Zm9.045-3.625-.75-.006a2.907 2.907 0 0 1-2.907 2.88v1.5a4.407 4.407 0 0 0 4.407-4.367l-.75-.007Zm-8.13-7.347h-.75v7.315h1.5V9.17h-.75Zm3.657 0h-.75v7.315h1.5V9.17h-.75Z"
6673
+ d: "m13.744 15.03.75.007-.75-.007ZM1.334 4.25a.75.75 0 1 0 0 1.5v-1.5Zm13.333 1.5a.75.75 0 0 0 0-1.5v1.5ZM7.083 8.334a.75.75 0 1 0-1.5 0h1.5ZM5.583 15a.75.75 0 0 0 1.5 0h-1.5Zm4.834-6.666a.75.75 0 0 0-1.5 0h1.5ZM8.917 15a.75.75 0 0 0 1.5 0h-1.5Zm4.916-10-.75-.006-.09 10.03.75.006.75.007.09-10.03-.75-.007Zm-3.422 13.334v-.75H5.5v1.5h4.91v-.75ZM2.167 5h-.75v10h1.5V5h-.75Zm-.834 0v.75h.834v-1.5h-.834V5Zm.834 0v.75h2.5v-1.5h-2.5V5Zm2.5 0v.75h6.666v-1.5H4.667V5Zm6.666 0v.75h2.5v-1.5h-2.5V5Zm2.5 0v.75h.834v-1.5h-.834V5Zm-9.166-.37h.75c0-1.142 1.07-2.213 2.583-2.213v-1.5c-2.17 0-4.083 1.582-4.083 3.713h.75ZM8 1.667v.75c1.512 0 2.583 1.071 2.583 2.213h1.5C12.083 2.499 10.17.917 8 .917v.75ZM4.667 4.63h-.75V5h1.5v-.37h-.75Zm6.666 0h-.75V5h1.5v-.37h-.75ZM5.5 18.334v-.75A2.583 2.583 0 0 1 2.917 15h-1.5A4.083 4.083 0 0 0 5.5 19.084v-.75Zm8.244-3.304-.75-.007a2.583 2.583 0 0 1-2.583 2.56v1.5a4.083 4.083 0 0 0 4.083-4.046l-.75-.007Zm-7.41-6.696h-.75V15h1.5V8.334h-.75Zm3.333 0h-.75V15h1.5V8.334h-.75Z"
6706
6674
  }
6707
6675
  ) });
6708
6676
 
@@ -6726,6 +6694,26 @@ const InActiveIcon = ({ stroke, fill }) => /* @__PURE__ */ jsxRuntimeExports.jsx
6726
6694
  }
6727
6695
  );
6728
6696
 
6697
+ const PlusIcon = ({ fill = "#fff", stroke }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6698
+ "path",
6699
+ {
6700
+ fill,
6701
+ fillRule: "evenodd",
6702
+ d: "M12 12V6h-1v6H5v1h6v6h1v-6h6v-1h-6Z",
6703
+ clipRule: "evenodd",
6704
+ stroke
6705
+ }
6706
+ ) });
6707
+
6708
+ const EditIcon = ({ stroke, fill = "#007BE5" }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 15, fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6709
+ "path",
6710
+ {
6711
+ fill,
6712
+ stroke,
6713
+ d: "m1.177 11.137.711.237-.711-.237ZM1.8 9.264l-.712-.238.712.238Zm.644-1.043.53.53-.53-.53ZM8.667 2l-.53-.53.53.53ZM12 5.333l.53.53-.53-.53Zm-6.222 6.222-.53-.53.53.53Zm-1.042.644.237.711-.237-.711Zm-1.873.624.237.712-.237-.712Zm2.574-.95-.452-.598.452.599Zm-.263.163-.333-.672.333.672Zm7.629-9.11-.672.333.672-.333Zm0 1.48-.672-.333.672.333Zm-3.21-3.21.333.673-.333-.672Zm1.48 0-.333.673.333-.672Zm-9.11 7.63.673.333-.672-.333Zm.163-.263-.599-.452.6.452Zm-1.26 4.066-.706.252.706-.252Zm.505.505-.252.706.252-.706ZM8.364 2.303a.75.75 0 0 0-1.061 1.06l1.06-1.06Zm2.272 4.394a.75.75 0 0 0 1.061-1.06l-1.06 1.06ZM7 12.917a.75.75 0 0 0 0 1.5v-1.5Zm5.833 1.5a.75.75 0 0 0 0-1.5v1.5Zm-11.656-3.28.711.237.624-1.873-.711-.237-.712-.238L.465 10.9l.712.238ZM2.445 8.22l.53.53 6.222-6.22L8.667 2l-.53-.53-6.222 6.22.53.531ZM12 5.333l-.53-.53-6.222 6.221.53.53.53.53 6.222-6.22-.53-.53ZM4.736 12.2l-.237-.712-1.873.625.237.711.237.712 1.873-.625-.237-.711Zm1.042-.644-.53-.53c-.18.18-.222.219-.263.25l.452.599.451.598c.144-.108.269-.235.42-.387l-.53-.53Zm-1.042.644.237.711c.204-.068.373-.122.535-.202l-.334-.672-.333-.672c-.047.023-.1.043-.342.123l.237.712Zm.7-.325-.451-.6a.92.92 0 0 1-.144.09l.333.672.334.672c.134-.067.261-.146.38-.236l-.451-.598ZM12 2l-.53.53c.497.497.608.622.661.73l.672-.334.672-.333c-.19-.383-.533-.712-.945-1.124L12 2Zm0 3.333.53.53c.412-.411.755-.74.945-1.124l-.672-.333-.672-.333c-.053.107-.164.233-.661.73l.53.53Zm.803-2.407-.672.333a.917.917 0 0 1 0 .814l.672.333.672.333a2.417 2.417 0 0 0 0-2.146l-.672.333ZM8.667 2l.53.53c.497-.497.622-.608.73-.661l-.334-.672L9.26.525c-.383.19-.712.533-1.124.944l.53.53ZM12 2l.53-.53c-.411-.412-.74-.755-1.124-.945l-.333.672-.333.672c.107.053.232.164.73.661L12 2Zm-2.407-.803.333.672a.917.917 0 0 1 .814 0l.333-.672.333-.672a2.417 2.417 0 0 0-2.146 0l.333.672ZM1.801 9.264l.711.237c.081-.242.1-.295.124-.342l-.672-.333-.672-.334c-.08.161-.135.33-.203.534l.712.238Zm.644-1.043-.53-.53c-.152.152-.279.276-.388.42l.6.452.598.452a2.99 2.99 0 0 1 .25-.263l-.53-.53Zm-.481.605.672.333c.025-.05.055-.1.089-.144l-.599-.452-.599-.452c-.09.12-.168.247-.235.381l.672.334Zm-.787 2.31L.465 10.9c-.13.393-.246.737-.312 1.016-.063.267-.118.617.007.966l.706-.252.706-.252c.028.078-.007.088.041-.119.046-.196.135-.463.275-.884l-.711-.237Zm1.686 1.687-.237-.711c-.421.14-.688.228-.884.274-.208.049-.197.014-.12.041l-.251.707-.252.706c.349.124.698.07.966.007.278-.066.622-.181 1.015-.312l-.237-.712ZM.866 12.63l-.706.252c.16.447.511.8.96.96l.251-.707.252-.707a.083.083 0 0 1-.05-.05l-.707.252Zm6.967-9.796-.53.53 3.333 3.334.53-.53.531-.53-3.333-3.334-.53.53ZM7 13.666v.75h5.833v-1.5H7v.75Z"
6714
+ }
6715
+ ) });
6716
+
6729
6717
  const CLASS_PART_SEPARATOR = '-';
6730
6718
  const createClassGroupUtils = config => {
6731
6719
  const classMap = createClassMap(config);
@@ -9954,8 +9942,16 @@ const HeadingTable = (props) => {
9954
9942
  showSetting,
9955
9943
  renderHeadingSearch,
9956
9944
  rightHeadingContent,
9957
- breadCrumb
9945
+ breadCrumb,
9946
+ editable,
9947
+ setData,
9948
+ initialValue
9958
9949
  } = props;
9950
+ const addRow = () => {
9951
+ if (initialValue) {
9952
+ setData((prev) => [...prev, initialValue]);
9953
+ }
9954
+ };
9959
9955
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
9960
9956
  Heading,
9961
9957
  {
@@ -9967,13 +9963,25 @@ const HeadingTable = (props) => {
9967
9963
  /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, { className: "!my-5 !mb-4" }),
9968
9964
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between items-center", children: [
9969
9965
  /* @__PURE__ */ jsxRuntimeExports.jsx(GroupHeadingButton, {}),
9970
- /* @__PURE__ */ jsxRuntimeExports.jsx(
9971
- IconSettingTable,
9972
- {
9973
- setOpenStting,
9974
- showSetting
9975
- }
9976
- )
9966
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
9967
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
9968
+ IconSettingTable,
9969
+ {
9970
+ setOpenStting,
9971
+ showSetting
9972
+ }
9973
+ ),
9974
+ editable && /* @__PURE__ */ jsxRuntimeExports.jsx(
9975
+ Button$1,
9976
+ {
9977
+ shape: "circle",
9978
+ className: "cursor-pointer ",
9979
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusIcon, {}),
9980
+ type: "primary",
9981
+ onClick: addRow
9982
+ }
9983
+ )
9984
+ ] })
9977
9985
  ] })
9978
9986
  ]
9979
9987
  }
@@ -10292,6 +10300,7 @@ const Table = ({
10292
10300
  status,
10293
10301
  schema,
10294
10302
  breadCrumb,
10303
+ initialValueForm,
10295
10304
  ...rest
10296
10305
  }) => {
10297
10306
  //! State
@@ -10350,8 +10359,8 @@ const Table = ({
10350
10359
  const columnsEditable = [
10351
10360
  ...columns,
10352
10361
  {
10353
- title: "Operation",
10354
- dataIndex: "operation",
10362
+ title: "Thao tác",
10363
+ dataIndex: "action",
10355
10364
  render: (_, record) => {
10356
10365
  const editable2 = isEditing(record);
10357
10366
  return editable2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
@@ -10370,9 +10379,10 @@ const Table = ({
10370
10379
  {
10371
10380
  disabled: editingKey !== "",
10372
10381
  onClick: () => edit(record),
10373
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$6, {}),
10374
- variant: "text",
10375
- color: "blue"
10382
+ className: "cursor-pointer",
10383
+ shape: "circle",
10384
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
10385
+ type: "text"
10376
10386
  }
10377
10387
  ),
10378
10388
  /* @__PURE__ */ jsxRuntimeExports.jsx(Popconfirm$1, { title: "Bạn có muốn xoá ?", onConfirm: () => {
@@ -10380,9 +10390,10 @@ const Table = ({
10380
10390
  Button,
10381
10391
  {
10382
10392
  disabled: editingKey !== "",
10383
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$7, {}),
10384
- variant: "text",
10385
- color: "red"
10393
+ shape: "circle",
10394
+ className: "cursor-pointer ",
10395
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteIcon, {}),
10396
+ type: "text"
10386
10397
  }
10387
10398
  ) })
10388
10399
  ] });
@@ -10437,7 +10448,10 @@ const Table = ({
10437
10448
  renderHeadingSearch,
10438
10449
  setOpenStting,
10439
10450
  showSetting,
10440
- breadCrumb
10451
+ breadCrumb,
10452
+ editable,
10453
+ initialValue: initialValueForm,
10454
+ setData
10441
10455
  }
10442
10456
  ),
10443
10457
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16475,7 +16489,7 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
16475
16489
  onClick: toggle,
16476
16490
  className: classNames(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
16477
16491
  style: zeroWidthTriggerStyle
16478
- }, trigger || /*#__PURE__*/React.createElement(RefIcon$8, null))) : null;
16492
+ }, trigger || /*#__PURE__*/React.createElement(RefIcon$6, null))) : null;
16479
16493
  const reverseIcon = direction === 'rtl' === !reverseArrow;
16480
16494
  const iconObj = {
16481
16495
  expanded: reverseIcon ? /*#__PURE__*/React.createElement(RefIcon$2, null) : /*#__PURE__*/React.createElement(RefIcon$4, null),
@@ -17442,15 +17456,6 @@ const CategoryStatus = ({ status }) => {
17442
17456
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ItemStatus, { color: bagde?.color, statusName: bagde?.text });
17443
17457
  };
17444
17458
 
17445
- const EditIcon = ({ stroke, fill }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
17446
- "path",
17447
- {
17448
- fill,
17449
- stroke,
17450
- d: "m4.177 14.137.711.237-.711-.237Zm.624-1.873-.712-.237.712.237Zm.644-1.042.53.53-.53-.53ZM11.667 5l-.53-.53.53.53ZM15 8.333l.53.53-.53-.53Zm-6.222 6.222-.53-.53.53.53Zm-1.042.644.237.712-.237-.712Zm-1.873.624.237.712-.237-.712Zm2.574-.95-.452-.598.452.599Zm-.263.163-.333-.672.333.672Zm7.629-9.11-.672.334.672-.333Zm0 1.48-.672-.332.672.333Zm-3.21-3.209.333.672-.333-.672Zm1.48 0-.333.672.333-.672Zm-9.11 7.629.673.333-.672-.333Zm.163-.263-.599-.452.6.452Zm-1.26 4.066-.706.252.706-.252Zm.505.505-.252.706.252-.706Zm6.993-10.831a.75.75 0 1 0-1.061 1.06l1.06-1.06Zm2.272 4.394a.75.75 0 0 0 1.061-1.06l-1.06 1.06ZM10 15.917a.75.75 0 1 0 0 1.5v-1.5Zm5.833 1.5a.75.75 0 0 0 0-1.5v1.5Zm-11.656-3.28.711.237.624-1.873-.711-.237-.712-.237-.624 1.873.712.237Zm1.268-2.915.53.53 6.222-6.222-.53-.53-.53-.53-6.222 6.221.53.53ZM15 8.333l-.53-.53-6.222 6.221.53.53.53.531 6.222-6.221-.53-.53ZM7.736 15.2l-.237-.711-1.873.624.237.711.237.712 1.873-.624-.237-.712Zm1.042-.644-.53-.53c-.18.18-.222.219-.263.25l.452.599.451.598c.144-.108.269-.235.42-.387l-.53-.53Zm-1.042.644.237.712c.204-.068.373-.123.535-.203l-.334-.672-.333-.672c-.047.023-.1.043-.342.123l.237.712Zm.7-.325-.451-.599a.919.919 0 0 1-.144.09l.333.671.334.672c.134-.067.261-.145.38-.236l-.451-.598ZM15 5l-.53.53c.497.498.608.623.661.73l.672-.333.672-.333c-.19-.384-.533-.713-.945-1.124L15 5Zm0 3.333.53.53c.412-.41.755-.74.945-1.123l-.672-.333-.672-.333c-.053.107-.164.232-.661.729l.53.53Zm.803-2.406-.672.333a.917.917 0 0 1 0 .814l.672.333.672.333a2.417 2.417 0 0 0 0-2.146l-.672.333ZM11.667 5l.53.53c.497-.497.622-.608.73-.661l-.334-.672-.333-.672c-.383.19-.712.533-1.124.945l.53.53ZM15 5l.53-.53c-.411-.412-.74-.755-1.124-.945l-.333.672-.333.672c.107.053.232.164.73.661L15 5Zm-2.407-.803.333.672a.917.917 0 0 1 .814 0l.333-.672.333-.672a2.417 2.417 0 0 0-2.146 0l.333.672Zm-7.792 8.067.711.237c.081-.242.1-.295.124-.342l-.672-.333-.672-.334c-.08.162-.135.331-.203.535l.712.237Zm.644-1.042-.53-.53c-.152.151-.279.276-.388.42l.6.451.598.452c.031-.042.07-.083.25-.263l-.53-.53Zm-.481.604.672.333c.025-.05.055-.099.089-.144l-.599-.452-.599-.452c-.09.12-.168.247-.235.381l.672.334Zm-.787 2.31-.712-.236c-.13.393-.246.736-.312 1.015-.063.268-.118.617.007.966l.706-.252.706-.252c.028.078-.007.088.041-.119.046-.196.135-.463.275-.884l-.711-.237Zm1.686 1.687-.237-.711c-.421.14-.688.229-.884.274-.208.05-.197.014-.12.042l-.251.706-.252.706c.349.125.698.07.966.007.278-.066.622-.181 1.015-.312l-.237-.712Zm-1.997-.194-.706.252c.16.447.511.8.96.96l.251-.707.252-.707a.083.083 0 0 1-.05-.05l-.707.252Zm6.967-9.796-.53.53 3.333 3.334.53-.53.531-.53-3.333-3.334-.53.53ZM10 16.667v.75h5.833v-1.5H10v.75Z"
17451
- }
17452
- ) });
17453
-
17454
17459
  const ActionRowTable = ({
17455
17460
  type,
17456
17461
  contentTooltip,
@@ -17477,7 +17482,7 @@ const ActionRowTable = ({
17477
17482
  {
17478
17483
  onClick: handleClick,
17479
17484
  type: "text",
17480
- className: "cursor-pointer p-2",
17485
+ className: "cursor-pointer ",
17481
17486
  shape: "circle",
17482
17487
  icon: /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteIcon, { fill: "#DD4338" })
17483
17488
  }
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/index-88gEtBLi.js';
1
+ export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/index-BzD8SlL6.js';
2
2
  export { C as CheckboxField, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/Upload-D0erjks6.js';
3
3
  import 'react-router';
4
4
  export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable, u as useToast } from './chunks/table-B28OPA57.js';
package/es/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/index-88gEtBLi.js';
1
+ export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/index-BzD8SlL6.js';
2
2
  export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/Upload-D0erjks6.js';
3
3
  import 'react-router';
4
4
  export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable } from '../chunks/table-B28OPA57.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.57",
4
+ "version": "1.9.59",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/index.d.ts CHANGED
@@ -699,7 +699,7 @@ declare type TabItem = {
699
699
  disabled?: boolean;
700
700
  };
701
701
 
702
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb, ...rest }: TableCommonProps<T>) => JSX.Element;
702
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb, initialValueForm, ...rest }: TableCommonProps<T>) => JSX.Element;
703
703
 
704
704
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
705
705
 
@@ -733,6 +733,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
733
733
  status?: number;
734
734
  schema?: yup.AnyObjectSchema;
735
735
  breadCrumb?: ItemType[];
736
+ initialValueForm?: T;
736
737
  }
737
738
 
738
739
  export declare const Tabs: default_2.FC<TabsProps>;
package/types/ui.d.ts CHANGED
@@ -541,7 +541,7 @@ declare type TabItem = {
541
541
  disabled?: boolean;
542
542
  };
543
543
 
544
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb, ...rest }: TableCommonProps<T>) => JSX.Element;
544
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb, initialValueForm, ...rest }: TableCommonProps<T>) => JSX.Element;
545
545
 
546
546
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
547
547
 
@@ -575,6 +575,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
575
575
  status?: number;
576
576
  schema?: yup.AnyObjectSchema;
577
577
  breadCrumb?: ItemType[];
578
+ initialValueForm?: T;
578
579
  }
579
580
 
580
581
  export declare const Tabs: default_2.FC<TabsProps>;