@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.
- package/dist/style.css +1 -1
- package/es/chunks/{PageNotFound-BT1mkXgK.js → PageNotFound-_zHfY9aE.js} +1095 -12010
- package/es/chunks/{Switch-DHAoXDmV.js → Switch-Bzik3pas.js} +1 -1
- package/es/chunks/{AntdIcon-BS99Z6_t.js → index-BJTIu5Xs.js} +11189 -338
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +1 -1
- package/types/components/fields/CascaderField.d.ts +4 -3
- package/types/components/fields/Checkbox.d.ts +3 -3
- package/types/components/fields/DatePicker.d.ts +1 -1
- package/types/components/fields/DateRangePicker.d.ts +1 -1
- package/types/components/fields/Input.d.ts +1 -0
- package/types/components/ui/Anchor.d.ts +4 -6
- package/types/components/ui/BulkActions/index.d.ts +2 -10
- package/types/components/ui/Collapse.d.ts +3 -3
- package/types/components/ui/ColorPicker.d.ts +3 -2
- package/types/components/ui/Table/index.d.ts +13 -1
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { C as
|
2
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-
|
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 {
|
2
|
-
export { C as
|
3
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-
|
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 {
|
2
|
-
export { E as ErrorMessage, L as Label,
|
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,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
|
-
|
11
|
+
classNameCascader?: string;
|
11
12
|
}
|
12
|
-
export declare const
|
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
|
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
|
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
|
-
|
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
|
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 {
|
2
|
-
import {
|
1
|
+
import { AnchorProps as AnchorPropsAntd } from 'antd';
|
2
|
+
import { FC } from 'react';
|
3
3
|
type BaseProps = {
|
4
4
|
containerClassName?: string;
|
5
|
-
|
5
|
+
anchorClassName?: string;
|
6
6
|
};
|
7
7
|
export type AnchorPropsUnion = BaseProps & AnchorPropsAntd;
|
8
|
-
export declare const Anchor:
|
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
|
-
|
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
|
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
|
3
|
-
export declare const
|
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
|
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 {};
|