@pnkx-lib/ui 1.9.536 → 1.9.539
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/constants/index.js +51 -1
- package/es/index.js +2 -8
- package/es/ui/Tabs.js +2 -2
- package/es/ui/index.js +6983 -145
- package/package.json +1 -1
- package/types/components/ui/GenericUploadModal.d.ts +2 -0
- package/es/chunks/RefuseApprovalDropListIcon-DkyYANWt.js +0 -192
- package/es/chunks/table-Btvh90Co.js +0 -50
- package/es/ui/BulkActions/index.js +0 -314
- package/es/ui/Clock/index.js +0 -67
- package/es/ui/CustomeBulkActions/index.js +0 -928
- package/es/ui/Table/index.js +0 -404
- package/es/ui/TableCategory/index.js +0 -4784
- package/es/ui/TableForm/index.js +0 -213
- package/types/ui/BulkActions/index.d.ts +0 -2
- package/types/ui/Clock/index.d.ts +0 -2
- package/types/ui/CustomeBulkActions/index.d.ts +0 -6
- package/types/ui/Table/index.d.ts +0 -2
- package/types/ui/TableCategory/index.d.ts +0 -2
- package/types/ui/TableForm/index.d.ts +0 -2
package/es/constants/index.js
CHANGED
|
@@ -1,2 +1,52 @@
|
|
|
1
1
|
export { I as ID_TABLE_WRAPPER, a as MAX_TAG_COUNT, M as MAX_TAG_TEXT_LENGTH, T as TINY_API } from '../chunks/common-BcURBmQ-.js';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
const START_PAGE = 1;
|
|
4
|
+
const START_PAGE_SIZE = 10;
|
|
5
|
+
const PAGE_NUMBER = "page";
|
|
6
|
+
const PAGE_SIZE = "size";
|
|
7
|
+
const SORT = "sort";
|
|
8
|
+
var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
|
|
9
|
+
TypeActionRowTable2["DELETE"] = "DELETE";
|
|
10
|
+
TypeActionRowTable2["EDIT"] = "EDIT";
|
|
11
|
+
TypeActionRowTable2["UNDO"] = "UNDO";
|
|
12
|
+
TypeActionRowTable2["CANCELUNDO"] = "CANCELUNDO";
|
|
13
|
+
TypeActionRowTable2["CHECKIN"] = "CHECKIN";
|
|
14
|
+
TypeActionRowTable2["PRINT"] = "PRINT";
|
|
15
|
+
TypeActionRowTable2["PAYMENT"] = "PAYMENT";
|
|
16
|
+
TypeActionRowTable2["PLAY"] = "PLAY";
|
|
17
|
+
TypeActionRowTable2["PAUSE"] = "PAUSE";
|
|
18
|
+
TypeActionRowTable2["DOWNLOAD"] = "DOWNLOAD";
|
|
19
|
+
TypeActionRowTable2["VIEW"] = "VIEW";
|
|
20
|
+
TypeActionRowTable2["EDIT_FORM"] = "EDIT_FORM";
|
|
21
|
+
TypeActionRowTable2["SWAP"] = "SWAP";
|
|
22
|
+
return TypeActionRowTable2;
|
|
23
|
+
})(TypeActionRowTable || {});
|
|
24
|
+
var TypeBulkActions = /* @__PURE__ */ ((TypeBulkActions2) => {
|
|
25
|
+
TypeBulkActions2["BULKACTION"] = "bulkaction";
|
|
26
|
+
TypeBulkActions2["DROPLIST"] = "droplist";
|
|
27
|
+
return TypeBulkActions2;
|
|
28
|
+
})(TypeBulkActions || {});
|
|
29
|
+
var TypeCategoryBulkActions = /* @__PURE__ */ ((TypeCategoryBulkActions2) => {
|
|
30
|
+
TypeCategoryBulkActions2[TypeCategoryBulkActions2["CATEGORY"] = 0] = "CATEGORY";
|
|
31
|
+
TypeCategoryBulkActions2[TypeCategoryBulkActions2["PRICE_SERVICE"] = 1] = "PRICE_SERVICE";
|
|
32
|
+
return TypeCategoryBulkActions2;
|
|
33
|
+
})(TypeCategoryBulkActions || {});
|
|
34
|
+
var TypeStatusTable = /* @__PURE__ */ ((TypeStatusTable2) => {
|
|
35
|
+
TypeStatusTable2["ALL"] = "ALL";
|
|
36
|
+
TypeStatusTable2[TypeStatusTable2["DRAFT"] = 0] = "DRAFT";
|
|
37
|
+
TypeStatusTable2[TypeStatusTable2["WAITING_APPROVAL"] = 1] = "WAITING_APPROVAL";
|
|
38
|
+
TypeStatusTable2[TypeStatusTable2["ACTIVE"] = 2] = "ACTIVE";
|
|
39
|
+
TypeStatusTable2[TypeStatusTable2["INACTIVE"] = 3] = "INACTIVE";
|
|
40
|
+
TypeStatusTable2[TypeStatusTable2["REJECTED"] = 4] = "REJECTED";
|
|
41
|
+
TypeStatusTable2[TypeStatusTable2["DELETED"] = 5] = "DELETED";
|
|
42
|
+
return TypeStatusTable2;
|
|
43
|
+
})(TypeStatusTable || {});
|
|
44
|
+
const ListStatusApproved = [
|
|
45
|
+
"ALL" /* ALL */,
|
|
46
|
+
2 /* ACTIVE */,
|
|
47
|
+
3 /* INACTIVE */,
|
|
48
|
+
5 /* DELETED */
|
|
49
|
+
];
|
|
50
|
+
const RemoveIconColor = "#DD4338";
|
|
51
|
+
|
|
52
|
+
export { ListStatusApproved, PAGE_NUMBER, PAGE_SIZE, RemoveIconColor, SORT, START_PAGE, START_PAGE_SIZE, TypeActionRowTable, TypeBulkActions, TypeCategoryBulkActions, TypeStatusTable };
|
package/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { FloatButton } from './ui/FloatButton.js';
|
|
|
3
3
|
export { CascaderField } from './ui/Cascader.js';
|
|
4
4
|
export { ErrorMessage } from './ui/ErrorMessage.js';
|
|
5
5
|
export { Typography } from './ui/Typography.js';
|
|
6
|
-
export { Table } from './ui/
|
|
6
|
+
export { ActionRowTable, BulkActions, Clock, CustomeBulkActions, Table, TableCategory, TableForm } from './ui/index.js';
|
|
7
7
|
export { Modal } from './ui/Modal.js';
|
|
8
8
|
export { Tooltip } from './ui/Tooltip.js';
|
|
9
9
|
export { Tabs } from './ui/Tabs.js';
|
|
@@ -50,10 +50,8 @@ export { Image } from './ui/Image.js';
|
|
|
50
50
|
export { ConfirmModal } from './ui/ConfirmModal.js';
|
|
51
51
|
export { ErrorBoundary } from './ui/ErrorBoundary.js';
|
|
52
52
|
export { CATEGORY_LIST_ENUM, CATEGORY_PRICE_LIST_ENUM, COUNT_LEVEL, CategoryStatus, badgeStatusCategoryConfig } from './ui/CategoryStatus.js';
|
|
53
|
-
export { ActionRowTable } from './ui/index.js';
|
|
54
53
|
export { I as ID_TABLE_WRAPPER, a as MAX_TAG_COUNT, M as MAX_TAG_TEXT_LENGTH, T as TINY_API } from './chunks/common-BcURBmQ-.js';
|
|
55
|
-
export {
|
|
56
|
-
export { BulkActions } from './ui/BulkActions/index.js';
|
|
54
|
+
export { ListStatusApproved, PAGE_NUMBER, PAGE_SIZE, RemoveIconColor, SORT, START_PAGE, START_PAGE_SIZE, TypeActionRowTable, TypeBulkActions, TypeCategoryBulkActions, TypeStatusTable } from './constants/index.js';
|
|
57
55
|
export { BreadcrumbHeading } from './ui/BreadcrumbHeading.js';
|
|
58
56
|
export { Card } from './ui/Card.js';
|
|
59
57
|
export { ConfigProvider } from './ui/ConfigProvider.js';
|
|
@@ -69,11 +67,7 @@ export { Sidebar } from './ui/Sidebar/index.js';
|
|
|
69
67
|
export { SelectTable } from './ui/SelectTable.js';
|
|
70
68
|
export { SelectSingleTable } from './ui/SelectSingleTable.js';
|
|
71
69
|
export { GenericUploadModal } from './ui/GenericUploadModal.js';
|
|
72
|
-
export { TableCategory } from './ui/TableCategory/index.js';
|
|
73
|
-
export { TableForm } from './ui/TableForm/index.js';
|
|
74
70
|
export { Descriptions } from './ui/Descriptions.js';
|
|
75
|
-
export { CustomeBulkActions } from './ui/CustomeBulkActions/index.js';
|
|
76
|
-
export { Clock } from './ui/Clock/index.js';
|
|
77
71
|
export { Input } from './fields/Input.js';
|
|
78
72
|
export { PnkxField } from './fields/PnkxField.js';
|
|
79
73
|
export { Select } from './fields/Select.js';
|
package/es/ui/Tabs.js
CHANGED
|
@@ -23,7 +23,7 @@ const createStoreImpl = (createState) => {
|
|
|
23
23
|
const initialState = state = createState(setState, getState, api);
|
|
24
24
|
return api;
|
|
25
25
|
};
|
|
26
|
-
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
26
|
+
const createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
27
27
|
|
|
28
28
|
const identity = (arg) => arg;
|
|
29
29
|
function useStore(api, selector = identity) {
|
|
@@ -41,7 +41,7 @@ const createImpl = (createState) => {
|
|
|
41
41
|
Object.assign(useBoundStore, api);
|
|
42
42
|
return useBoundStore;
|
|
43
43
|
};
|
|
44
|
-
const create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
44
|
+
const create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
45
45
|
|
|
46
46
|
const useTabStore = create((set) => ({
|
|
47
47
|
activeTabKey: void 0,
|