@pnkx-lib/ui 1.9.158 → 1.9.160
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/es/chunks/{PageNotFound-BufqAS2w.js → PageNotFound-CbSS7XnZ.js} +6 -2
- package/es/chunks/{Switch-DcFqFVYe.js → Switch-vBum25D4.js} +1 -1
- package/es/chunks/{index-DcJ32cSz.js → index-DFu8jPEl.js} +1 -2
- 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/constants/common.d.ts +0 -5
- package/types/DemoTable/hooks/useFiltersHandler.d.ts +0 -21
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as jsxRuntimeExports,
|
1
|
+
import { j as jsxRuntimeExports, i as Icon, _ as _extends, P as PnkxField, C as Checkbox, u as useSortable, k as CSS, t as twMerge, l as useForm, m as DndContext, n as closestCenter, o as SortableContext, v as verticalListSortingStrategy, p as arrayMove, q as className, a as Tooltip, r as lodashExports, s as distExports, w as useTabStore, x as distExports$1, I as Input, T as Typography$1 } from './index-DFu8jPEl.js';
|
2
2
|
import { Button as Button$1, Cascader, Modal as Modal$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Divider as Divider$1, Table as Table$1, Tabs as Tabs$1, Space, Card as Card$1, Skeleton as Skeleton$1, Popover as Popover$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Flex as Flex$1, Pagination as Pagination$1, Tag as Tag$1, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, Popconfirm as Popconfirm$1, QRCode as QRCode$1, Result as Result$1, Rate as Rate$1, Segmented as Segmented$1, Statistic as Statistic$1, Timeline as Timeline$1, Tour as Tour$1, Tree as Tree$1, Typography, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse as Collapse$1, ColorPicker as ColorPicker$1, Empty as Empty$1, Image as Image$1, ConfigProvider as ConfigProvider$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { useState, useEffect, Component } from 'react';
|
@@ -616,6 +616,10 @@ const HeadingTable = (props) => {
|
|
616
616
|
);
|
617
617
|
};
|
618
618
|
|
619
|
+
const START_PAGE = 1;
|
620
|
+
const START_PAGE_SIZE = 10;
|
621
|
+
const PAGE_NUMBER = "page";
|
622
|
+
const PAGE_SIZE = "size";
|
619
623
|
const SORT_BY = "SortBy";
|
620
624
|
const SORT_DESC = "SortDesc";
|
621
625
|
var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
|
@@ -2504,4 +2508,4 @@ const PageNotFound = ({ path = "/" }) => {
|
|
2504
2508
|
);
|
2505
2509
|
};
|
2506
2510
|
|
2507
|
-
export {
|
2511
|
+
export { TypeActionRowTable as $, Alert as A, Button as B, CascaderField as C, Dropdown as D, Empty as E, Flex as F, ConfirmModal as G, Heading as H, Image as I, ErrorBoundary as J, CATEGORY_LIST_ENUM as K, badgeStatusCategoryConfig as L, Modal as M, CategoryStatus as N, ActionRowTable as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, START_PAGE as U, START_PAGE_SIZE as V, Watermark as W, PAGE_NUMBER as X, PAGE_SIZE as Y, SORT_BY as Z, SORT_DESC as _, Tabs as a, TypeBulkActions as a0, TypeStatusTable as a1, BulkActions as a2, BreadcrumbHeading as a3, Card as a4, ConfigProvider as a5, PageNotFound as a6, SearchFiltersForm as b, Container as c, Badge as d, Col as e, Breadcrumb as f, Pagination as g, Sidebar as h, Tag as i, Divider as j, Spin as k, Drawer as l, Popconfirm as m, Result as n, Rate as o, Segmented as p, Statistic as q, Timeline as r, Tour as s, typeColorMap as t, Tree as u, Anchor as v, Appfix as w, AutoComplete as x, Collapse as y, ColorPicker as z };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { h as get, j as jsxRuntimeExports, L as Label, t as twMerge, E as ErrorMessage, T as Typography, i as Icon, _ as _extends } from './index-DFu8jPEl.js';
|
2
2
|
import { Select as Select$1, Radio, Upload, Image, Switch as Switch$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { useState } from 'react';
|
@@ -18330,7 +18330,6 @@ var Editor = /** @class */ (function (_super) {
|
|
18330
18330
|
}(React.Component));
|
18331
18331
|
|
18332
18332
|
const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
18333
|
-
const SORT = "sort";
|
18334
18333
|
|
18335
18334
|
var lodash$1 = {exports: {}};
|
18336
18335
|
|
@@ -61019,4 +61018,4 @@ React keys must be passed directly to JSX without using spread:
|
|
61019
61018
|
|
61020
61019
|
var distExports = requireDist();
|
61021
61020
|
|
61022
|
-
export { Checkbox as C, DatePicker as D, ErrorMessage as E, Input as I, Label as L, Menu as M, PnkxField as P, RangePicker as R, Space as S, Typography as T, _extends as _, Tooltip as a, Layout as b, Splitter as c, Steps as d, TINY_API as e,
|
61021
|
+
export { Checkbox as C, DatePicker as D, ErrorMessage as E, Input as I, Label as L, Menu as M, PnkxField as P, RangePicker as R, Space as S, Typography as T, _extends as _, Tooltip as a, Layout as b, Splitter as c, Steps as d, TINY_API as e, TinyMCE as f, Textarea as g, get$6 as h, Icon as i, jsxRuntimeExports as j, CSS as k, useForm as l, DndContext as m, closestCenter as n, SortableContext as o, arrayMove as p, className as q, lodashExports as r, distExports$1 as s, twMerge as t, useSortable as u, verticalListSortingStrategy as v, useTabStore as w, distExports as x };
|
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, g as Textarea, f as TinyMCE } from '../chunks/index-DFu8jPEl.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-vBum25D4.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,
|
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-CbSS7XnZ.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, S as Space, c as Splitter, d as Steps, e as TINY_API, g as Textarea, f as TinyMCE, a as Tooltip, T as Typography } from './chunks/index-DFu8jPEl.js';
|
3
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-vBum25D4.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,
|
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-CbSS7XnZ.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-DFu8jPEl.js';
|
package/package.json
CHANGED
@@ -1,6 +1 @@
|
|
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";
|
@@ -1,21 +0,0 @@
|
|
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
|
-
};
|