@pnkx-lib/ui 1.9.89 → 1.9.91

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.
@@ -5091,7 +5091,6 @@ const SettingTable = (props) => {
5091
5091
  setOpen(false);
5092
5092
  };
5093
5093
  const onSubmit = (data) => {
5094
- console.log("datasubmit", data);
5095
5094
  setOpen(false);
5096
5095
  if (setDefaultSettingColumnItems) {
5097
5096
  setDefaultSettingColumnItems(columns);
@@ -5204,15 +5203,9 @@ const Badge = ({ type, children, customColor, ...rest }) => {
5204
5203
  };
5205
5204
 
5206
5205
  const ButtonBadge = (props) => {
5207
- const {
5208
- buttonItem,
5209
- active,
5210
- handleClickGroupHeadingButtonItem,
5211
- setKeyActive
5212
- } = props;
5213
- const handleClick = (event) => {
5214
- handleClickGroupHeadingButtonItem && handleClickGroupHeadingButtonItem(buttonItem, event);
5215
- setKeyActive(buttonItem.keyActive);
5206
+ const { buttonItem, active, setFilters, filters } = props;
5207
+ const handleClick = () => {
5208
+ setFilters({ ...filters, is_status: buttonItem?.is_status });
5216
5209
  };
5217
5210
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
5218
5211
  Button,
@@ -5227,7 +5220,7 @@ const ButtonBadge = (props) => {
5227
5220
  /* @__PURE__ */ jsxRuntimeExports.jsx(
5228
5221
  Badge,
5229
5222
  {
5230
- count: buttonItem.value,
5223
+ count: buttonItem.quantity,
5231
5224
  color: `${active ? "#BDE3FF]" : "#EEEEF0"}`,
5232
5225
  className: twMerge(
5233
5226
  "!text-[#4D4D57] !rounded-[8px]",
@@ -5240,17 +5233,14 @@ const ButtonBadge = (props) => {
5240
5233
  );
5241
5234
  };
5242
5235
  const GroupHeadingButton = (props) => {
5243
- const { handleClickGroupHeadingButtonItem, groupHeadingButtonItems } = props;
5244
- const [keyActive, setKeyActive] = useState(
5245
- groupHeadingButtonItems?.[0].keyActive
5246
- );
5236
+ const { groupHeadingButtonItems, setFilters, filters } = props;
5247
5237
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "pb-[15px]", children: groupHeadingButtonItems?.map((i, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
5248
5238
  ButtonBadge,
5249
5239
  {
5250
5240
  buttonItem: i,
5251
- active: i.keyActive === keyActive,
5252
- setKeyActive,
5253
- handleClickGroupHeadingButtonItem
5241
+ active: i?.is_status === filters?.is_status,
5242
+ setFilters,
5243
+ filters
5254
5244
  },
5255
5245
  index
5256
5246
  )) });
@@ -5354,7 +5344,8 @@ const HeadingTable = (props) => {
5354
5344
  rightHeadingContent,
5355
5345
  menu,
5356
5346
  groupHeadingButtonItems,
5357
- handleClickGroupHeadingButtonItem
5347
+ setFilters,
5348
+ filters
5358
5349
  } = props;
5359
5350
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
5360
5351
  Heading,
@@ -5370,7 +5361,8 @@ const HeadingTable = (props) => {
5370
5361
  GroupHeadingButton,
5371
5362
  {
5372
5363
  groupHeadingButtonItems,
5373
- handleClickGroupHeadingButtonItem
5364
+ setFilters,
5365
+ filters
5374
5366
  }
5375
5367
  ),
5376
5368
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -5676,17 +5668,17 @@ const Table = ({
5676
5668
  rightHeadingContent,
5677
5669
  menu,
5678
5670
  groupHeadingButtonItems,
5679
- handleClickGroupHeadingButtonItem,
5680
5671
  showIndexColumn = true,
5672
+ setFilters,
5681
5673
  ...rest
5682
5674
  }) => {
5683
- const status = filters?.status;
5675
+ const status = filters?.is_status;
5684
5676
  //! State
5685
5677
  const [data, setData] = useState([]);
5686
5678
  const [openSetting, setOpenStting] = useState(false);
5687
5679
  const paginationConfig = {
5688
- current: filters.page_number,
5689
- pageSize: filters.page_size,
5680
+ current: filters?.page_number,
5681
+ pageSize: filters?.page_size,
5690
5682
  total: totalItems,
5691
5683
  showSizeChanger: true,
5692
5684
  showQuickJumper: true,
@@ -5746,7 +5738,8 @@ const Table = ({
5746
5738
  showSetting,
5747
5739
  menu,
5748
5740
  groupHeadingButtonItems,
5749
- handleClickGroupHeadingButtonItem
5741
+ setFilters,
5742
+ filters
5750
5743
  }
5751
5744
  ),
5752
5745
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -12178,8 +12171,14 @@ const Sidebar = ({ children, menu, userInfo }) => {
12178
12171
  setActiveMainMenu(path);
12179
12172
  router(path);
12180
12173
  };
12181
- const handleOpenSubmenu = (itemName) => {
12182
- setOpenSubmenu((prev) => prev === itemName ? null : itemName);
12174
+ const handleOpenSubmenu = (item, hasChildren) => {
12175
+ console.log("click", hasChildren);
12176
+ const cleanPath = (...segments) => segments.map((s) => s.replace(/^\/+|\/+$/g, "")).filter(Boolean).join("/");
12177
+ if (hasChildren) {
12178
+ const fullPath = `/${cleanPath(pathUrl, item.path)}`;
12179
+ router(fullPath);
12180
+ }
12181
+ setOpenSubmenu((prev) => prev === item.name ? null : item.name);
12183
12182
  };
12184
12183
  useEffect(() => {
12185
12184
  const filteredMenu = menu.filter((item) => item.isShow).flatMap((menu2) => {
@@ -12293,8 +12292,8 @@ const Sidebar = ({ children, menu, userInfo }) => {
12293
12292
  },
12294
12293
  className: twMerge(
12295
12294
  isActiveUrl ? "bg-[#FFFFFF] text-black hover:text-black" : "text-[#FFFFFF] hover:bg-[#FFFFFF] hover:text-black",
12296
- "py-2 rounded-md mt-2 text-sm whitespace-nowrap leading-6 font-semibold relative z-10",
12297
- collapse ? "pl-4 mr-2" : "rounded-bl-full rounded-tl-full justify-center",
12295
+ "py-2 rounded-md mt-2 text-sm whitespace-nowrap leading-6 font-semibold relative z-10",
12296
+ collapse ? "pl-4 mr-2 ml-2" : "rounded-bl-full rounded-tl-full justify-center",
12298
12297
  "flex items-center whitespace-nowrap gap-2"
12299
12298
  ),
12300
12299
  children: [
@@ -12393,7 +12392,7 @@ const Sidebar = ({ children, menu, userInfo }) => {
12393
12392
  "a",
12394
12393
  {
12395
12394
  onClick: () => {
12396
- handleOpenSubmenu(sub?.name);
12395
+ handleOpenSubmenu(sub, sub.children.length === 0);
12397
12396
  },
12398
12397
  className: twMerge(
12399
12398
  "group flex gap-x-3 rounded-md p-2 text-gray-700 hover:bg-[#EEEEF0] mr-8 text-sm leading-6 transition-all duration-300 font-semibold items-center"
@@ -12401,12 +12400,17 @@ const Sidebar = ({ children, menu, userInfo }) => {
12401
12400
  children: [
12402
12401
  sub?.icon,
12403
12402
  sub?.name,
12404
- openSubmenu === sub?.name ? /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon, { className: twMerge("w-4 h-4 ml-auto") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
12403
+ sub.children.length > 0 ? openSubmenu === sub?.name ? /* @__PURE__ */ jsxRuntimeExports.jsx(
12404
+ RefIcon,
12405
+ {
12406
+ className: twMerge("w-4 h-4 ml-auto")
12407
+ }
12408
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
12405
12409
  RefIcon$7,
12406
12410
  {
12407
12411
  className: twMerge("w-4 h-4 ml-auto")
12408
12412
  }
12409
- )
12413
+ ) : ""
12410
12414
  ]
12411
12415
  }
12412
12416
  ),
@@ -12775,12 +12779,6 @@ const CategoryStatus = ({ status }) => {
12775
12779
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ItemStatus, { color: bagde?.color, statusName: bagde?.text });
12776
12780
  };
12777
12781
 
12778
- const START_PAGE = 1;
12779
- const START_PAGE_SIZE = 10;
12780
- const PAGE_NUMBER = "page_number";
12781
- const PAGE_SIZE = "page_size";
12782
- const SORT_BY = "SortBy";
12783
- const SORT_DESC = "SortDesc";
12784
12782
  var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
12785
12783
  TypeActionRowTable2["DELETE"] = "DELETE";
12786
12784
  TypeActionRowTable2["EDIT"] = "EDIT";
@@ -12877,4 +12875,4 @@ const ActionRowTable = ({
12877
12875
  ] });
12878
12876
  };
12879
12877
 
12880
- export { START_PAGE_SIZE as $, Alert as A, Button as B, CascaderField as C, Dropdown as D, Anchor as E, Flex as F, Appfix as G, Heading as H, AutoComplete as I, PnkxCollapse as J, PnkxColorPicker as K, Layout as L, Modal as M, Empty as N, Image as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, BulkAction as U, ConfirmModal as V, Watermark as W, ErrorBoundary as X, CategoryStatus as Y, ActionRowTable as Z, START_PAGE as _, Tooltip as a, PAGE_NUMBER as a0, PAGE_SIZE as a1, SORT_BY as a2, SORT_DESC as a3, TypeActionRowTable as a4, Tabs as b, SearchFiltersForm as c, Container as d, Badge as e, Col as f, Breadcrumb as g, Space as h, Splitter as i, Menu as j, Pagination as k, Steps as l, Sidebar as m, Tag as n, Divider$1 as o, Spin as p, Drawer as q, Popconfirm as r, Result as s, typeColorMap as t, Rate as u, Segmented as v, Statistic as w, Timeline as x, Tour as y, Tree as z };
12878
+ export { Alert as A, Button as B, CascaderField as C, Dropdown as D, Anchor as E, Flex as F, Appfix as G, Heading as H, AutoComplete as I, PnkxCollapse as J, PnkxColorPicker as K, Layout as L, Modal as M, Empty as N, Image as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, BulkAction as U, ConfirmModal as V, Watermark as W, ErrorBoundary as X, CategoryStatus as Y, ActionRowTable as Z, TypeActionRowTable as _, Tooltip as a, Tabs as b, SearchFiltersForm as c, Container as d, Badge as e, Col as f, Breadcrumb as g, Space as h, Splitter as i, Menu as j, Pagination as k, Steps as l, Sidebar as m, Tag as n, Divider$1 as o, Spin as p, Drawer as q, Popconfirm as r, Result as s, typeColorMap as t, Rate as u, Segmented as v, Statistic as w, Timeline as x, Tour as y, Tree as z };
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, a0 as PAGE_NUMBER, a1 as PAGE_SIZE, 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, a2 as SORT_BY, a3 as SORT_DESC, _ as START_PAGE, $ as START_PAGE_SIZE, 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, a4 as TypeActionRowTable, W as Watermark, t as typeColorMap } from './chunks/index-Bfh7aRFs.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, _ as TypeActionRowTable, W as Watermark, t as typeColorMap } from './chunks/index-j4tEa8Fb.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/AntdIcon-sydRpDMU.js';
3
3
  import 'react-router';
4
4
  export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-Ch-t7bqG.js';
package/es/ui/index.js CHANGED
@@ -1,3 +1,3 @@
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, a0 as PAGE_NUMBER, a1 as PAGE_SIZE, 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, a2 as SORT_BY, a3 as SORT_DESC, _ as START_PAGE, $ as START_PAGE_SIZE, 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, a4 as TypeActionRowTable, W as Watermark, t as typeColorMap } from '../chunks/index-Bfh7aRFs.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, _ as TypeActionRowTable, W as Watermark, t as typeColorMap } from '../chunks/index-j4tEa8Fb.js';
2
2
  export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-sydRpDMU.js';
3
3
  import 'react-router';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.89",
4
+ "version": "1.9.91",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/index.d.ts CHANGED
@@ -41,6 +41,7 @@ import { FormEventHandler } from 'react';
41
41
  import { ForwardRefExoticComponent } from 'react';
42
42
  import { IAllProps } from '@tinymce/tinymce-react';
43
43
  import { ImageProps } from 'antd';
44
+ import { InitialFiltersSearch } from '@pnkx-lib/core';
44
45
  import { InputProps as InputProps_2 } from 'antd';
45
46
  import { JSX } from 'react/jsx-runtime';
46
47
  import { JSX as JSX_2 } from 'react';
@@ -50,7 +51,6 @@ import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
50
51
  import { MenuProps as MenuProps_2 } from 'antd/es/menu';
51
52
  import { ModalProps as ModalProps_2 } from 'antd';
52
53
  import { Pagination as Pagination_2 } from 'antd';
53
- import { PaginationFilters } from '../../../../../../../../../../../src/interface/common';
54
54
  import { PaginationLocale } from 'rc-pagination';
55
55
  import { PaginationProps as PaginationProps_2 } from 'antd';
56
56
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
@@ -398,8 +398,8 @@ export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
398
398
 
399
399
  declare interface GroupHeadingButtonItem {
400
400
  label: string;
401
- value: number;
402
- keyActive: number;
401
+ quantity: number;
402
+ is_status: number;
403
403
  }
404
404
 
405
405
  export declare const Heading: (props: HeadingProps) => JSX.Element;
@@ -728,7 +728,7 @@ declare type TabItem = {
728
728
  disabled?: boolean;
729
729
  };
730
730
 
731
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, handleClickGroupHeadingButtonItem, showIndexColumn, ...rest }: TableCommonProps<T>) => JSX.Element;
731
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, ...rest }: TableCommonProps<T>) => JSX.Element;
732
732
 
733
733
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
734
734
 
@@ -739,9 +739,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
739
739
  columns: TableColumnsType<T>;
740
740
  loading?: boolean;
741
741
  totalItems?: number;
742
- filters: PaginationFilters & {
743
- status?: number;
744
- };
742
+ filters: InitialFiltersSearch<TFilters>;
745
743
  onChangePage: (page: number) => void;
746
744
  onChangePageSize: (size: number) => void;
747
745
  onSort?: (sortField: string | number | symbol) => void;
@@ -756,9 +754,9 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
756
754
  rightHeadingContent: ReactNode;
757
755
  menu: Array<MenuType>;
758
756
  renderGroupHeadingButton: ReactNode;
759
- groupHeadingButtonItems: GroupHeadingButtonItem[];
760
- handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
757
+ groupHeadingButtonItems?: GroupHeadingButtonItem[];
761
758
  showIndexColumn?: boolean;
759
+ setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
762
760
  }
763
761
 
764
762
  export declare const Tabs: default_2.FC<TabsProps>;
@@ -785,6 +783,10 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
785
783
  required?: boolean;
786
784
  }
787
785
 
786
+ export declare type TFilters = {
787
+ is_status?: number;
788
+ };
789
+
788
790
  export declare const Timeline: React.FC<TimelineProps>;
789
791
 
790
792
  export declare type TimelineProps = TimelineProps_2;
package/types/ui.d.ts CHANGED
@@ -34,6 +34,7 @@ import { FlexProps as FlexProps_2 } from 'antd';
34
34
  import { FormEventHandler } from 'react';
35
35
  import { ForwardRefExoticComponent } from 'react';
36
36
  import { ImageProps } from 'antd';
37
+ import { InitialFiltersSearch } from '@pnkx-lib/core';
37
38
  import { JSX } from 'react/jsx-runtime';
38
39
  import { MenuDividerProps } from 'antd/es/menu';
39
40
  import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
@@ -41,7 +42,6 @@ import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
41
42
  import { MenuProps as MenuProps_2 } from 'antd/es/menu';
42
43
  import { ModalProps as ModalProps_2 } from 'antd';
43
44
  import { Pagination as Pagination_2 } from 'antd';
44
- import { PaginationFilters } from '../../../../../../../../../../../src/interface/common';
45
45
  import { PaginationLocale } from 'rc-pagination';
46
46
  import { PaginationProps as PaginationProps_2 } from 'antd';
47
47
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
@@ -344,8 +344,8 @@ export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
344
344
 
345
345
  declare interface GroupHeadingButtonItem {
346
346
  label: string;
347
- value: number;
348
- keyActive: number;
347
+ quantity: number;
348
+ is_status: number;
349
349
  }
350
350
 
351
351
  export declare const Heading: (props: HeadingProps) => JSX.Element;
@@ -576,7 +576,7 @@ declare type TabItem = {
576
576
  disabled?: boolean;
577
577
  };
578
578
 
579
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, handleClickGroupHeadingButtonItem, showIndexColumn, ...rest }: TableCommonProps<T>) => JSX.Element;
579
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, ...rest }: TableCommonProps<T>) => JSX.Element;
580
580
 
581
581
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
582
582
 
@@ -587,9 +587,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
587
587
  columns: TableColumnsType<T>;
588
588
  loading?: boolean;
589
589
  totalItems?: number;
590
- filters: PaginationFilters & {
591
- status?: number;
592
- };
590
+ filters: InitialFiltersSearch<TFilters>;
593
591
  onChangePage: (page: number) => void;
594
592
  onChangePageSize: (size: number) => void;
595
593
  onSort?: (sortField: string | number | symbol) => void;
@@ -604,9 +602,9 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
604
602
  rightHeadingContent: ReactNode;
605
603
  menu: Array<MenuType>;
606
604
  renderGroupHeadingButton: ReactNode;
607
- groupHeadingButtonItems: GroupHeadingButtonItem[];
608
- handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
605
+ groupHeadingButtonItems?: GroupHeadingButtonItem[];
609
606
  showIndexColumn?: boolean;
607
+ setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
610
608
  }
611
609
 
612
610
  export declare const Tabs: default_2.FC<TabsProps>;
@@ -624,6 +622,10 @@ export declare interface TaglineProps extends TagProps {
624
622
 
625
623
  export declare type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
626
624
 
625
+ export declare type TFilters = {
626
+ is_status?: number;
627
+ };
628
+
627
629
  export declare const Timeline: React.FC<TimelineProps>;
628
630
 
629
631
  export declare type TimelineProps = TimelineProps_2;