@pnkx-lib/ui 1.9.481 → 1.9.482

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.
@@ -147,7 +147,7 @@ const SelectSingleTable = ({
147
147
  rowKey,
148
148
  size: tableProps.size || "small",
149
149
  pagination: false,
150
- scroll: { y: 400 },
150
+ scroll: tableProps.scrollTable,
151
151
  style: { overflowX: "hidden" },
152
152
  loading,
153
153
  onScroll: handleScroll,
package/es/ui/index.js CHANGED
@@ -132571,8 +132571,9 @@ const BulkActions = ({
132571
132571
  handleRestore,
132572
132572
  status,
132573
132573
  typeBulkaction,
132574
- isApproved
132574
+ isApproved,
132575
132575
  // Chỉ sử dụng khi là danh sách icon
132576
+ isShowDelete = false
132576
132577
  }) => {
132577
132578
  //! State
132578
132579
  const listIcon = [
@@ -132657,12 +132658,18 @@ const BulkActions = ({
132657
132658
  name: "Xoá",
132658
132659
  title: "Xác nhận xóa",
132659
132660
  content: "Bạn có chắc chắn muốn xóa không? Hành động này không thể hoàn tác.",
132660
- arrShow: isBoolean(isApproved) && !isApproved ? [
132661
+ arrShow: isShowDelete ? [
132662
+ CATEGORY_LIST_ENUM?.DRAFT,
132663
+ CATEGORY_LIST_ENUM?.ACTIVE,
132664
+ CATEGORY_LIST_ENUM?.INACTIVE,
132665
+ CATEGORY_LIST_ENUM?.REJECT,
132666
+ CATEGORY_LIST_ENUM?.WATING_APPROVAL
132667
+ ] : isBoolean(isApproved) && !isApproved ? [
132661
132668
  CATEGORY_LIST_ENUM?.DRAFT,
132662
132669
  CATEGORY_LIST_ENUM?.ACTIVE,
132663
132670
  CATEGORY_LIST_ENUM?.INACTIVE
132664
132671
  ] : [CATEGORY_LIST_ENUM?.DRAFT],
132665
- showTitle: false
132672
+ showTitle: isShowDelete
132666
132673
  },
132667
132674
  {
132668
132675
  icon: /* @__PURE__ */ jsx(ActivateIcon, { stroke: "white" }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.481",
4
+ "version": "1.9.482",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -7,6 +7,7 @@ interface IBulkActionsProps extends Partial<BulkActionHandlers> {
7
7
  status?: unknown;
8
8
  typeBulkaction?: TypeBulkActions;
9
9
  isApproved?: boolean;
10
+ isShowDelete?: boolean;
10
11
  }
11
12
  export type TListIcon = {
12
13
  icon: React.ReactNode;
@@ -20,5 +21,5 @@ export type TListIcon = {
20
21
  name?: string;
21
22
  showTitle?: boolean;
22
23
  };
23
- export declare const BulkActions: ({ quantity, handleDelete, handleSubmitForApproval, handleCancelSubmission, handleApprove, handleCancelApproval, handleReject, handleDeactivate, handleActivate, handleRestore, status, typeBulkaction, isApproved, }: IBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const BulkActions: ({ quantity, handleDelete, handleSubmitForApproval, handleCancelSubmission, handleApprove, handleCancelApproval, handleReject, handleDeactivate, handleActivate, handleRestore, status, typeBulkaction, isApproved, isShowDelete, }: IBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
24
25
  export {};
@@ -15,6 +15,10 @@ export interface SelectSingleTableProps<T = Record<string, unknown>> extends Omi
15
15
  tableProps?: {
16
16
  size?: "small" | "middle" | "large";
17
17
  pagination?: false;
18
+ scrollTable?: {
19
+ y?: number;
20
+ x?: number;
21
+ };
18
22
  };
19
23
  infiniteScroll?: boolean;
20
24
  loadMoreThreshold?: number;