@pnkx-lib/ui 1.9.68 → 1.9.70
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.
@@ -12308,7 +12308,7 @@ const bottomMenu = [
|
|
12308
12308
|
show: true
|
12309
12309
|
}
|
12310
12310
|
];
|
12311
|
-
const Sidebar = ({ children, menu }) => {
|
12311
|
+
const Sidebar = ({ children, menu = [] }) => {
|
12312
12312
|
const router = useNavigate();
|
12313
12313
|
const location = useLocation();
|
12314
12314
|
const pathUrl = location.pathname;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useState, useCallback } from 'react';
|
2
|
-
import { e as cloneDeep, P as PAGE_INDEX, S as START_PAGE, d as SORT_DESC, c as SORT_BY } from './table-B28OPA57.js';
|
2
|
+
import { e as cloneDeep, P as PAGE_INDEX, b as PAGE_SIZE, S as START_PAGE, d as SORT_DESC, c as SORT_BY } from './table-B28OPA57.js';
|
3
3
|
import { message } from 'antd';
|
4
4
|
|
5
5
|
const useFiltersHandler = (initialFilters) => {
|
@@ -29,7 +29,7 @@ const useFiltersHandler = (initialFilters) => {
|
|
29
29
|
const nextValue = Number(value);
|
30
30
|
const nextFilters = cloneDeep(prev);
|
31
31
|
if (nextFilters) {
|
32
|
-
nextFilters[
|
32
|
+
nextFilters[PAGE_SIZE] = nextValue;
|
33
33
|
nextFilters[PAGE_INDEX] = START_PAGE;
|
34
34
|
}
|
35
35
|
return nextFilters;
|
package/es/hooks/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { u as useToast } from '../chunks/table-B28OPA57.js';
|
2
|
-
export { u as useFiltersHandler, a as useMessage, b as useToggle } from '../chunks/useToggle-
|
2
|
+
export { u as useFiltersHandler, a as useMessage, b as useToggle } from '../chunks/useToggle-Y2HkWOP8.js';
|
package/es/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
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, W as Watermark, t as typeColorMap } from './chunks/index-
|
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, W as Watermark, t as typeColorMap } from './chunks/index-D4ar01Gq.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-C_gQ5ue_.js';
|
3
3
|
import 'react-router';
|
4
4
|
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable, u as useToast } from './chunks/table-B28OPA57.js';
|
5
5
|
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-B6W4c5eS.js';
|
6
|
-
export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-
|
6
|
+
export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-Y2HkWOP8.js';
|
package/es/ui/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, 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, W as Watermark, t as typeColorMap } from '../chunks/index-
|
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, W as Watermark, t as typeColorMap } from '../chunks/index-D4ar01Gq.js';
|
2
2
|
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-C_gQ5ue_.js';
|
3
3
|
import 'react-router';
|
4
4
|
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable } from '../chunks/table-B28OPA57.js';
|