@pnkx-lib/ui 1.9.504 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.504",
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.153",
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",
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const Clock: React.FC;
@@ -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;
@@ -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 { RowCommon, TableColumnsType, TableCommonProps, TFilters, MenuType } from '../..';
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;
@@ -71,3 +71,4 @@ export * from './SelectSingleTable';
71
71
  export * from './GenericUploadModal';
72
72
  export * from './TableCategory';
73
73
  export * from './Descriptions';
74
+ export * from './Clock';
@@ -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
+ }