@pnkx-lib/ui 1.9.37 → 1.9.38

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.
@@ -9713,12 +9713,6 @@ const SettingTable = (props) => {
9713
9713
  setColumns(defaultSettingColumnItems);
9714
9714
  setOpen(false);
9715
9715
  };
9716
- const handleSubmit2 = () => {
9717
- setOpen(false);
9718
- if (setDefaultSettingColumnItems) {
9719
- setDefaultSettingColumnItems(columns);
9720
- }
9721
- };
9722
9716
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
9723
9717
  /* @__PURE__ */ jsxRuntimeExports.jsx(
9724
9718
  Button,
@@ -9732,7 +9726,7 @@ const SettingTable = (props) => {
9732
9726
  Button,
9733
9727
  {
9734
9728
  className: "ml-2 !rounded-3xl !bg-[#007BE5] !text-[white] !border-[#007BE5]",
9735
- onClick: handleSubmit2,
9729
+ htmlType: "submit",
9736
9730
  children: "Xác nhận"
9737
9731
  }
9738
9732
  )
@@ -9748,34 +9742,43 @@ const SettingTable = (props) => {
9748
9742
  onClose: handleCloseModal,
9749
9743
  onOk: handleOkModal,
9750
9744
  className: "setting-table-modal",
9751
- onSubmit: handleSubmit(onSubmit),
9752
- footer: footer(),
9745
+ footer: null,
9753
9746
  onCancel: handleCloseModal,
9754
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(DndContext, { collisionDetection: closestCenter, onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9755
- SortableContext,
9756
- {
9757
- items: columns.map((item) => String(item.key)),
9758
- strategy: verticalListSortingStrategy,
9759
- children: columns.filter((i) => i.key).map((item, index) => {
9760
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
9761
- SortableItem,
9747
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [
9748
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
9749
+ DndContext,
9750
+ {
9751
+ collisionDetection: closestCenter,
9752
+ onDragEnd: handleDragEnd,
9753
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9754
+ SortableContext,
9762
9755
  {
9763
- id: String(item.key),
9764
- isLastIndex: index === columns.length - 1,
9765
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9766
- SettingColumnItem,
9767
- {
9768
- lable: String(item.title),
9769
- control,
9770
- name: item.key
9771
- }
9772
- )
9773
- },
9774
- item.key
9775
- );
9776
- })
9777
- }
9778
- ) })
9756
+ items: columns.map((item) => String(item.key)),
9757
+ strategy: verticalListSortingStrategy,
9758
+ children: columns.filter((i) => i.key).map((item, index) => {
9759
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9760
+ SortableItem,
9761
+ {
9762
+ id: String(item.key),
9763
+ isLastIndex: index === columns.length - 1,
9764
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9765
+ SettingColumnItem,
9766
+ {
9767
+ lable: String(item.title),
9768
+ control,
9769
+ name: item.key
9770
+ }
9771
+ )
9772
+ },
9773
+ item.key
9774
+ );
9775
+ })
9776
+ }
9777
+ )
9778
+ }
9779
+ ),
9780
+ footer()
9781
+ ] })
9779
9782
  }
9780
9783
  );
9781
9784
  };
@@ -17682,11 +17685,11 @@ const CategoryStatus = ({ status }) => {
17682
17685
  }) => {
17683
17686
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
17684
17687
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: twMerge("w-3 h-3 rounded-sm", color || "") }),
17685
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-normal", children: statusName })
17688
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-normal", children: statusName || "" })
17686
17689
  ] }) });
17687
17690
  };
17688
17691
  //! Render
17689
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ItemStatus, { color: bagde?.color, statusName: bagde.text });
17692
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ItemStatus, { color: bagde?.color, statusName: bagde?.text });
17690
17693
  };
17691
17694
 
17692
17695
  const ActionRowTable = ({
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-BnBtGpK2.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-C4eLNxfq.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, S as Select, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/Switch-5fY0eC69.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-BnBtGpK2.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-C4eLNxfq.js';
2
2
  export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/Switch-5fY0eC69.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.37",
4
+ "version": "1.9.38",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",