@pnkx-lib/ui 1.9.140 → 1.9.142

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.
@@ -1,2 +1,2 @@
1
- export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/AntdIcon-BS99Z6_t.js';
2
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-DHAoXDmV.js';
1
+ export { C as Checkbox, D as DatePickerField, I as Input, P as PnkxField, R as RangePicker, f as TinyMCE } from '../chunks/index-BJTIu5Xs.js';
2
+ export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-Bzik3pas.js';
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, a8 as BreadcrumbHeading, a7 as BulkActions, B as Button, a9 as Card, C as CascaderField, Y as CategoryStatus, f as Col, aa as ConfigProvider, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V 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, ab as PageNotFound, 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, a5 as TypeBulkActions, a6 as TypeStatusTable, W as Watermark, X as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-BT1mkXgK.js';
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-BS99Z6_t.js';
3
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-DHAoXDmV.js';
1
+ export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, $ as TypeActionRowTable, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-_zHfY9aE.js';
2
+ export { C as Checkbox, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePicker, S as Space, c as Splitter, d as Steps, e as TINY_API, f as TinyMCE, a as Tooltip, T as Typography } from './chunks/index-BJTIu5Xs.js';
3
+ export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-Bzik3pas.js';
4
4
  export { a as useMessage, u as useToast } from './chunks/useMessage-CUPcOtIS.js';
package/es/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a8 as BreadcrumbHeading, a7 as BulkActions, B as Button, a9 as Card, C as CascaderField, Y as CategoryStatus, f as Col, aa as ConfigProvider, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V 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, ab as PageNotFound, 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, a5 as TypeBulkActions, a6 as TypeStatusTable, W as Watermark, X as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-BT1mkXgK.js';
2
- export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-BS99Z6_t.js';
1
+ export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, $ as TypeActionRowTable, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-_zHfY9aE.js';
2
+ export { E as ErrorMessage, L as Label, b as Layout, M as Menu, S as Space, c as Splitter, d as Steps, e as TINY_API, a as Tooltip, T as Typography } from '../chunks/index-BJTIu5Xs.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.140",
4
+ "version": "1.9.142",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -1,5 +1,6 @@
1
+ import { CascaderProps as CascaderPropsAntd } from 'antd';
1
2
  import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
2
- interface CascaderFieldProps {
3
+ interface CascaderFieldProps extends CascaderPropsAntd {
3
4
  field?: ControllerRenderProps<any, any>;
4
5
  formState?: UseFormStateReturn<any>;
5
6
  setValue?: UseFormSetValue<any>;
@@ -7,7 +8,7 @@ interface CascaderFieldProps {
7
8
  required?: boolean;
8
9
  afterOnChange?: (value: any) => void;
9
10
  classNameContainer?: string;
10
- classNameSelect?: string;
11
+ classNameCascader?: string;
11
12
  }
12
- export declare const CascaderField: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Cascader: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -1,6 +1,6 @@
1
- import { CheckboxProps } from 'antd';
1
+ import { CheckboxProps as CheckboxAntdProps } from 'antd';
2
2
  import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
- export interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
3
+ export interface CheckboxProps extends Omit<CheckboxAntdProps, "onChange" | "checked"> {
4
4
  field?: ControllerRenderProps<any, any>;
5
5
  formState?: UseFormStateReturn<any>;
6
6
  label?: string;
@@ -9,4 +9,4 @@ export interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "ch
9
9
  customStyleContainer?: string;
10
10
  customStyleCheckbox?: string;
11
11
  }
12
- export declare const CheckboxField: (props: CheckboxFieldProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ export interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange
6
6
  field?: ControllerRenderProps<any, any>;
7
7
  formState?: UseFormStateReturn<any>;
8
8
  setValue?: UseFormSetValue<any>;
9
- customStyleDatepicker?: string;
9
+ classNameDatepicker?: string;
10
10
  disabledInputChange?: boolean;
11
11
  required?: boolean;
12
12
  dateFormat?: string | string[];
@@ -10,4 +10,4 @@ export interface RangePickerFieldProps extends Omit<RangePickerProps, "value" |
10
10
  customStyleContainer?: string;
11
11
  customStyleDatePicker?: string;
12
12
  }
13
- export declare const RangePickerField: (props: RangePickerFieldProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const RangePicker: (props: RangePickerFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -16,6 +16,7 @@ export interface InputProps extends InputPropsAntd {
16
16
  decimalScale?: number;
17
17
  prefix?: string;
18
18
  suffix?: string;
19
+ contentTooltip?: string;
19
20
  }
20
21
  export declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
21
22
  export interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
@@ -1,11 +1,9 @@
1
- import { Anchor as AnchorAntd, AnchorProps as AnchorPropsAntd } from 'antd';
2
- import { default as AnchorLink } from 'antd/es/anchor/AnchorLink';
1
+ import { AnchorProps as AnchorPropsAntd } from 'antd';
2
+ import { FC } from 'react';
3
3
  type BaseProps = {
4
4
  containerClassName?: string;
5
- spaceClassName?: string;
5
+ anchorClassName?: string;
6
6
  };
7
7
  export type AnchorPropsUnion = BaseProps & AnchorPropsAntd;
8
- export declare const Anchor: typeof AnchorAntd & {
9
- Link: typeof AnchorLink;
10
- };
8
+ export declare const Anchor: FC<AnchorPropsUnion>;
11
9
  export {};
@@ -1,13 +1,6 @@
1
1
  import { ConfirmModalProps } from '../ConfirmModal';
2
2
  import { TypeBulkActions, TypeStatusTable } from '../../../../../../../../../../../src/constants';
3
- export declare enum CATEGORY_LIST_ENUM {
4
- DRAFT = 0,// tạo mới
5
- WATING_APPROVAL = 1,// đang chờ duyệt
6
- ACTIVE = 2,// hoạt động
7
- INACTIVE = 3,// dừng hoạt động
8
- REJECT = 4,// từ chối duyệt
9
- DELETE = 5
10
- }
3
+ import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
11
4
  interface IBulkActionsProps {
12
5
  quantity?: number;
13
6
  handleRestore?: () => void;
@@ -20,14 +13,13 @@ interface IBulkActionsProps {
20
13
  handleActivate?: () => void;
21
14
  handleInActivate?: () => void;
22
15
  status?: TypeStatusTable;
23
- type: TypeBulkActions;
16
+ type?: TypeBulkActions;
24
17
  }
25
18
  export type TListIcon = {
26
19
  icon: React.ReactNode;
27
20
  iconDisable: React.ReactNode;
28
21
  iconDropList: React.ReactNode;
29
22
  action?: () => void;
30
- showConfirmModal: boolean;
31
23
  title: string;
32
24
  arrShow: CATEGORY_LIST_ENUM[];
33
25
  content?: string;
@@ -1,3 +1,3 @@
1
- import { CollapseProps } from 'antd';
2
- export type PnkxCollapseProps = CollapseProps;
3
- export declare const PnkxCollapse: React.FC<PnkxCollapseProps>;
1
+ import { CollapseProps as CollapseAntdProps } from 'antd';
2
+ export type CollapseProps = CollapseAntdProps;
3
+ export declare const Collapse: React.FC<CollapseProps>;
@@ -1,2 +1,3 @@
1
- import { ColorPickerProps } from 'antd';
2
- export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
1
+ import { ColorPickerProps as ColorPickerPropsAntd } from 'antd';
2
+ export type ColorPickerProps = ColorPickerPropsAntd;
3
+ export declare const ColorPicker: React.FC<ColorPickerProps>;
@@ -14,6 +14,17 @@ export type TableColumnsType<T> = TableColumnsTypeAntd<T> & TableColumnsTypeEdit
14
14
  export type TFilters = {
15
15
  isStatus?: TypeStatusTable;
16
16
  };
17
+ export interface BulkActionHandlers {
18
+ handleRestore?: () => void;
19
+ handleSendApproval?: () => void;
20
+ handleCancelSendApproval?: () => void;
21
+ handleRefuseApproval?: () => void;
22
+ handleApproval?: () => void;
23
+ handleCancelApproval?: () => void;
24
+ handleDelete?: () => void;
25
+ handleActivate?: () => void;
26
+ handleInActivate?: () => void;
27
+ }
17
28
  export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
18
29
  dataSource?: T[];
19
30
  columns: TableColumnsType<T>;
@@ -37,6 +48,7 @@ export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
37
48
  showIndexColumn?: boolean;
38
49
  setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
39
50
  noBreadcum?: boolean;
51
+ bulkActionHandlers?: BulkActionHandlers;
40
52
  }
41
- 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, noBreadcum, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
53
+ 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, noBreadcum, bulkActionHandlers, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
42
54
  export {};