@pnkx-lib/ui 1.9.156 → 1.9.158
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-BdABLmlN.js → PageNotFound-BufqAS2w.js} +5 -9
- package/es/chunks/{Switch-BlJg7gUg.js → Switch-DcFqFVYe.js} +1 -1
- package/es/chunks/{index-VYhgtDmq.js → index-DcJ32cSz.js} +7319 -590
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +2 -2
- package/types/DemoTable/FiltersCategoryDemo/components/RenderFilterFields.d.ts +1 -1
- package/types/DemoTable/FiltersCategoryDemo/components/TagsFilter.d.ts +2 -2
- package/types/DemoTable/hooks/useConvertGroupButton.d.ts +1 -1
- package/types/DemoTable/hooks/useFiltersHandler.d.ts +21 -0
- package/types/components/ui/BulkActions/BulkAction.d.ts +1 -1
- package/types/components/ui/BulkActions/index.d.ts +1 -1
- package/types/components/ui/Table/ActionRowTable/index.d.ts +1 -1
- package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +1 -1
- package/types/components/ui/Table/index.d.ts +3 -2
- package/types/constants/common.d.ts +5 -0
- package/types/interface/common.d.ts +6 -0
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker,
|
2
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-
|
1
|
+
export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker, h as Textarea, g as TinyMCE } from '../chunks/index-DcJ32cSz.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-DcFqFVYe.js';
|
package/es/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb,
|
2
|
-
export { C as Checkbox, D as DatePicker, 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,
|
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, $ as BreadcrumbHeading, _ as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a0 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a1 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, a2 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, U as SORT_BY, V as SORT_DESC, 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, X as TypeActionRowTable, Y as TypeBulkActions, Z as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-BufqAS2w.js';
|
2
|
+
export { C as Checkbox, D as DatePicker, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePicker, f as SORT, S as Space, c as Splitter, d as Steps, e as TINY_API, h as Textarea, g as TinyMCE, a as Tooltip, T as Typography } from './chunks/index-DcJ32cSz.js';
|
3
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-DcFqFVYe.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 { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb,
|
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-
|
1
|
+
export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, $ as BreadcrumbHeading, _ as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a0 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a1 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, a2 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, U as SORT_BY, V as SORT_DESC, 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, X as TypeActionRowTable, Y as TypeBulkActions, Z as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-BufqAS2w.js';
|
2
|
+
export { E as ErrorMessage, L as Label, b as Layout, M as Menu, f as SORT, S as Space, c as Splitter, d as Steps, e as TINY_API, a as Tooltip, T as Typography } from '../chunks/index-DcJ32cSz.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.
|
4
|
+
"version": "1.9.158",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./es/index.js",
|
7
7
|
"module": "./es/index.js",
|
@@ -104,7 +104,7 @@
|
|
104
104
|
"@headlessui/react": "^2.2.2",
|
105
105
|
"@heroicons/react": "^2.2.0",
|
106
106
|
"@hookform/resolvers": "^5.0.1",
|
107
|
-
"@pnkx-lib/core": "^1.1.
|
107
|
+
"@pnkx-lib/core": "^1.1.12",
|
108
108
|
"@pnkx-lib/icon": "^0.0.33",
|
109
109
|
"@tailwindcss/cli": "^4.1.6",
|
110
110
|
"@tinymce/miniature": "^6.0.0",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Control, UseFormReset } from 'node_modules/react-hook-form/dist/types';
|
2
|
-
import { IValueSearch } from '
|
2
|
+
import { IValueSearch } from '../../../../../../../../../../../src/components/ui/Table/HeadingTable';
|
3
3
|
interface RenderFilterFieldsProps {
|
4
4
|
control: Control<IValueSearch>;
|
5
5
|
handleSubmit?: React.FormEventHandler<IValueSearch>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { UseFormReset } from 'node_modules/react-hook-form/dist/types';
|
2
|
-
import { IValueSearch } from '
|
3
|
-
import { InitialFiltersSearch } from '
|
2
|
+
import { IValueSearch } from '../../../../../../../../../../../src/components/ui/Table/HeadingTable';
|
3
|
+
import { InitialFiltersSearch } from '../../../../../../../../../../../src/components';
|
4
4
|
interface TagsFilterProps {
|
5
5
|
advanceSearch: any;
|
6
6
|
resetToInitialFilters: () => void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { GroupHeadingButtonItem } from '
|
1
|
+
import { GroupHeadingButtonItem } from '../../../../../../../../../../src/components/ui/Table/HeadingTable/components/GroupHeadingButton';
|
2
2
|
export interface LabelGroupHeadingButtonItem {
|
3
3
|
label: string;
|
4
4
|
is_status: number;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { SorterResult } from '../../../../../../../../../../src/interface/common';
|
3
|
+
export interface PaginationFilters {
|
4
|
+
size: number;
|
5
|
+
page: number;
|
6
|
+
sort?: string[];
|
7
|
+
}
|
8
|
+
export type InitialFiltersSearch<T> = T & PaginationFilters;
|
9
|
+
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
10
|
+
filters: InitialFiltersSearch<T>;
|
11
|
+
rowsSelected: React.Key[];
|
12
|
+
setRowsSelected: React.Dispatch<React.SetStateAction<React.Key[]>>;
|
13
|
+
setFilters: React.Dispatch<React.SetStateAction<InitialFiltersSearch<T>>>;
|
14
|
+
goToPage: (page: number) => void;
|
15
|
+
changeRowlimit: (value: number) => void;
|
16
|
+
resetToInitialFilters: () => void;
|
17
|
+
handleCheckBox: (newSelectedRowKeys: React.Key[]) => void;
|
18
|
+
handleChangePage: (nextPage: number) => void;
|
19
|
+
handleRequestSort: (sorter: SorterResult | SorterResult[]) => void;
|
20
|
+
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
21
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ConfirmModalProps } from '../ConfirmModal';
|
2
2
|
import { TListIcon } from '.';
|
3
|
-
import { TypeStatusTable } from '
|
3
|
+
import { TypeStatusTable } from '../../../../../../../../../../../src/constants';
|
4
4
|
export interface BulkActionProps {
|
5
5
|
quantity?: number;
|
6
6
|
listIcon?: TListIcon[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ConfirmModalProps } from '../ConfirmModal';
|
2
|
-
import { TypeBulkActions, TypeStatusTable } from '
|
2
|
+
import { TypeBulkActions, TypeStatusTable } from '../../../../../../../../../../../src/constants';
|
3
3
|
import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
|
4
4
|
interface IBulkActionsProps {
|
5
5
|
quantity?: number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
|
-
import { TypeActionRowTable } from '
|
2
|
+
import { TypeActionRowTable } from '../../../../../../../../../../../../src/constants/table';
|
3
3
|
export interface ActionRowTableProps {
|
4
4
|
type: TypeActionRowTable;
|
5
5
|
handleClick?: () => void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { InitialFiltersSearch } from '@pnkx-lib/core';
|
2
|
-
import { TFilters, TypeStatusTable } from '
|
2
|
+
import { TFilters, TypeStatusTable } from '../../../../../../../../../../../../../src/components/ui';
|
3
3
|
export interface GroupHeadingButtonItem {
|
4
4
|
label: string;
|
5
5
|
quantity: number;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
2
2
|
import { TableColumnsType as TableColumnsTypeAntd } from 'antd';
|
3
3
|
import { TableProps } from 'antd/lib/table';
|
4
|
+
import { SorterResult } from 'antd/es/table/interface';
|
4
5
|
import { InitialFiltersSearch } from '@pnkx-lib/core';
|
5
6
|
import { MenuType } from '../Sidebar';
|
6
7
|
import { GroupHeadingButtonItem } from './HeadingTable/components/GroupHeadingButton';
|
7
|
-
import { TypeStatusTable } from '
|
8
|
+
import { TypeStatusTable } from '../../../../../../../../../../../src/constants';
|
8
9
|
interface RowCommon {
|
9
10
|
[x: string]: any;
|
10
11
|
}
|
@@ -33,7 +34,7 @@ export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
|
33
34
|
filters: InitialFiltersSearch<TFilters>;
|
34
35
|
onChangePage: (page: number) => void;
|
35
36
|
onChangePageSize: (size: number) => void;
|
36
|
-
onSort?: (sortField:
|
37
|
+
onSort?: (sortField: SorterResult<T> | SorterResult<T>[]) => void;
|
37
38
|
rowsSelected?: React.Key[];
|
38
39
|
onSelect: (newSelectedRowKeys: React.Key[]) => void;
|
39
40
|
onRowClick?: (record: T) => void;
|
@@ -1 +1,6 @@
|
|
1
1
|
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
2
|
+
export declare const START_PAGE = 1;
|
3
|
+
export declare const START_PAGE_SIZE = 10;
|
4
|
+
export declare const PAGE_NUMBER = "page";
|
5
|
+
export declare const PAGE_SIZE = "size";
|
6
|
+
export declare const SORT = "sort";
|