@pnkx-lib/ui 1.9.503 → 1.9.505
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 +2 -2
- package/es/assets/{ui-Dqfe-FBg.css → ui-U4G0iQfu.css} +107 -0
- package/es/chunks/{GenericUploadModal-ZbJl3R2N.js → GenericUploadModal-BNQ9cWDf.js} +51 -75
- package/es/chunks/{index.esm-Dr5ZHcf7.js → index.esm-AaUjBMaK.js} +58 -96
- package/es/chunks/{toArray-2LkvUaha.js → toArray-Czwb0MFW.js} +38 -27
- package/es/fields/PnkxField.js +1 -1
- package/es/fields/TinyMCE.js +1 -1
- package/es/index.js +2 -2
- package/es/ui/GenericUploadModal.js +2 -2
- package/es/ui/Layout.js +3 -3
- package/es/ui/SearchFilterForm.js +1 -1
- package/es/ui/Tabs.js +4 -4
- package/es/ui/UploadImage.js +1 -1
- package/es/ui/index.js +2145 -2098
- package/package.json +2 -2
- package/types/components/ui/Clock/index.d.ts +2 -0
- package/types/components/ui/CustomeBulkActions/BulkAction.d.ts +0 -0
- package/types/components/ui/CustomeBulkActions/ConvertData.d.ts +25 -0
- package/types/components/ui/CustomeBulkActions/DropListAction.d.ts +0 -0
- package/types/components/ui/CustomeBulkActions/index.d.ts +15 -0
- package/types/components/ui/TableCategory/index.d.ts +3 -1
- package/types/components/ui/index.d.ts +1 -0
- package/types/constants/bulkAction.d.ts +25 -0
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.505",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./es/index.js",
|
|
7
7
|
"module": "./es/index.js",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
]
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
|
-
"@pnkx-lib/core": "^1.1.
|
|
120
|
+
"@pnkx-lib/core": "^1.1.174",
|
|
121
121
|
"@tailwindcss/vite": "^4.1.12",
|
|
122
122
|
"antd": "^5.24.4",
|
|
123
123
|
"react": "^18.3.1",
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TypeBulkActions } from '../../../constants';
|
|
2
|
+
import { TypeCategoryBulkActions } from '../../../constants/bulkAction';
|
|
3
|
+
import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
|
|
4
|
+
import { ConfirmModalProps } from '../ConfirmModal';
|
|
5
|
+
import { BulkActionHandlers } from '@pnkx-lib/core';
|
|
6
|
+
export interface CustomeBulkActionsProps {
|
|
7
|
+
isApproved?: boolean;
|
|
8
|
+
typeBulkaction?: TypeBulkActions;
|
|
9
|
+
typeService?: TypeCategoryBulkActions;
|
|
10
|
+
handleBulkAction: BulkActionHandlers;
|
|
11
|
+
handleBulkActionPrice: any;
|
|
12
|
+
}
|
|
13
|
+
export type TListIcon = {
|
|
14
|
+
icon: React.ReactNode;
|
|
15
|
+
iconDisable: React.ReactNode;
|
|
16
|
+
iconDropList: React.ReactNode;
|
|
17
|
+
action?: () => void;
|
|
18
|
+
title: string;
|
|
19
|
+
arrShow: CATEGORY_LIST_ENUM[];
|
|
20
|
+
content?: string;
|
|
21
|
+
typeIcon?: ConfirmModalProps["typeIcon"];
|
|
22
|
+
name?: string;
|
|
23
|
+
showTitle?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const ListDataConvert: ({ isApproved, typeBulkAction, typeService, handleBulkAction, handleBulkActionPrice }: CustomeBulkActionsProps) => TListIcon[] | undefined;
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TypeBulkActions, TypeCategoryBulkActions } from '../../../constants/bulkAction';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { BulkActionHandlers } from '@pnkx-lib/core';
|
|
4
|
+
interface CustomeBulkActionsProps {
|
|
5
|
+
quantity?: number;
|
|
6
|
+
status?: unknown;
|
|
7
|
+
isApproved?: boolean;
|
|
8
|
+
typeBulkaction?: TypeBulkActions;
|
|
9
|
+
typeService?: TypeCategoryBulkActions;
|
|
10
|
+
handleBulkAction: BulkActionHandlers;
|
|
11
|
+
handleBulkActionPrice: any;
|
|
12
|
+
}
|
|
13
|
+
export declare const CustomeBulkActions: ({ quantity, status, isApproved, typeBulkaction, typeService, handleBulkAction, handleBulkActionPrice }: CustomeBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const _default: React.MemoExoticComponent<({ quantity, status, isApproved, typeBulkaction, typeService, handleBulkAction, handleBulkActionPrice }: CustomeBulkActionsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
+
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { BulkActionHandlers, InitialFiltersSearch } from '@pnkx-lib/core';
|
|
3
3
|
import { GroupHeadingButtonItem } from './HeadingTable/components/GroupHeadingButton';
|
|
4
|
-
import {
|
|
4
|
+
import { MenuType } from '../Sidebar';
|
|
5
|
+
import { TableColumnsType } from 'antd';
|
|
6
|
+
import { RowCommon, TableCommonProps, TFilters } from '../Table';
|
|
5
7
|
export interface TableCategoryProps<T> extends TableCommonProps<T> {
|
|
6
8
|
titleSettingTableModal?: string;
|
|
7
9
|
showSetting?: boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum TypeBulkActions {
|
|
2
|
+
BULKACTION = "bulkaction",
|
|
3
|
+
DROPLIST = "droplist"
|
|
4
|
+
}
|
|
5
|
+
export declare enum TypeCategoryBulkActions {
|
|
6
|
+
CATEGORY = 0,
|
|
7
|
+
PRICE_SERVICE = 1
|
|
8
|
+
}
|
|
9
|
+
export declare enum TypeStatusCategoryBulkActions {
|
|
10
|
+
ALL = "ALL",// Tất cả
|
|
11
|
+
DRAFT = 0,// Tạo mới
|
|
12
|
+
WAITING_APPROVAL = 1,// Chờ duyệt
|
|
13
|
+
ACTIVE = 2,// Hoạt động
|
|
14
|
+
INACTIVE = 3,// Ngưng hoạt động
|
|
15
|
+
REJECTED = 4,// Từ chối duyệt
|
|
16
|
+
DELETED = 5
|
|
17
|
+
}
|
|
18
|
+
export declare enum TypeStatusPriceServiceBulkActions {
|
|
19
|
+
ALL = "ALL",// Tất cả
|
|
20
|
+
CREATED = 0,// Chờ xác nhận
|
|
21
|
+
WAITING_CONFIRM = 1,// Chờ xác nhận
|
|
22
|
+
WAITING_APPROVAL = 2,// Chờ duyệt
|
|
23
|
+
APPROVED = 3,// Đã duyệt
|
|
24
|
+
DELETED = 4
|
|
25
|
+
}
|