@pnkx-lib/ui 1.9.298 → 1.9.300

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.
Files changed (37) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{AntdIcon-ZIq9SabE.js → AntdIcon-DSoxq9aC.js} +1 -1
  3. package/es/chunks/{bundle-mjs-BME7zF0Z.js → bundle-mjs-BBFHkixS.js} +1 -1
  4. package/es/chunks/{createClass-CBKC8ctW.js → createSuper-C90IQ42g.js} +17 -17
  5. package/es/chunks/{index.esm-AaUjBMaK.js → index.esm-o4O8pXMN.js} +21 -39
  6. package/es/chunks/{layout-7Xdid6Lv.js → layout-DoBNb9xg.js} +8 -14
  7. package/es/fields/CascaderField.js +1 -1
  8. package/es/fields/Checkbox.js +1 -1
  9. package/es/fields/DatePicker.js +3 -3
  10. package/es/fields/DateRangePicker.js +1 -1
  11. package/es/fields/Input.js +1 -1
  12. package/es/fields/PnkxField.js +1 -1
  13. package/es/fields/Select.js +1 -1
  14. package/es/fields/SliderRanger.js +1 -1
  15. package/es/fields/SliderSingle.js +1 -1
  16. package/es/fields/Switch.js +1 -1
  17. package/es/fields/Textarea.js +1 -1
  18. package/es/fields/TimePicker.js +1 -1
  19. package/es/fields/TimeRangePicker.js +1 -1
  20. package/es/fields/TinyMCE.js +47 -11
  21. package/es/fields/Upload.js +1 -1
  22. package/es/ui/Button.js +1 -1
  23. package/es/ui/Cascader.js +1 -1
  24. package/es/ui/CategoryStatus.js +1 -1
  25. package/es/ui/Container.js +1 -1
  26. package/es/ui/ErrorMessage.js +1 -1
  27. package/es/ui/Layout.js +1 -1
  28. package/es/ui/Modal.js +1 -1
  29. package/es/ui/SearchFilterForm.js +2 -2
  30. package/es/ui/Sidebar.js +3 -3
  31. package/es/ui/UploadComponent.js +2 -2
  32. package/es/ui/UploadImage.js +1 -1
  33. package/es/ui/UploadMultiple.js +2 -2
  34. package/es/ui/index.js +806 -5506
  35. package/package.json +1 -1
  36. package/types/components/ui/Table/index.d.ts +4 -17
  37. package/es/chunks/{defineProperty-DPy3D8dn.js → defineProperty-CTLrw71t.js} +10 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.298",
4
+ "version": "1.9.300",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -1,12 +1,10 @@
1
- import { default as React, FormEventHandler, ReactNode } from 'react';
1
+ import { default as React, FormEventHandler } from 'react';
2
2
  import { TableColumnsType as TableColumnsTypeAntd } from 'antd';
3
3
  import { TableProps } from 'antd/lib/table';
4
4
  import { SorterResult } from 'antd/es/table/interface';
5
- import { BulkActionHandlers, InitialFiltersSearch } from '@pnkx-lib/core';
6
- import { MenuType } from '../Sidebar';
7
- import { GroupHeadingButtonItem } from './HeadingTable/components/GroupHeadingButton';
5
+ import { InitialFiltersSearch } from '@pnkx-lib/core';
8
6
  import { SizeType } from 'antd/es/config-provider/SizeContext';
9
- interface RowCommon {
7
+ export interface RowCommon {
10
8
  [x: string]: any;
11
9
  }
12
10
  type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
@@ -29,21 +27,10 @@ export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
29
27
  onRowClick?: (record: T) => void;
30
28
  rowKey?: string | ((record: T) => string);
31
29
  onDoubleClickRow?: (record: T) => void;
32
- titleSettingTableModal?: string;
33
- showSetting?: boolean;
34
- setColumns?: (newColumns: TableColumnsType<T>) => void;
35
- renderHeadingSearch?: () => ReactNode;
36
- rightHeadingContent?: ReactNode;
37
- menu: Array<MenuType>;
38
- groupHeadingButtonItems?: GroupHeadingButtonItem[];
39
30
  showIndexColumn?: boolean;
40
- setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
41
- noBreadcum?: boolean;
42
- bulkActionHandlers?: BulkActionHandlers;
43
31
  size?: SizeType;
44
32
  defaultEllipsis?: boolean;
45
33
  handleSubmit?: FormEventHandler<any>;
46
- setRowsSelected?: (newSelectedRowKeys: React.Key[]) => void;
47
34
  }
48
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, noBreadcum, bulkActionHandlers, size, defaultEllipsis, onDoubleClickRow, setRowsSelected, handleSubmit, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, showIndexColumn, size, defaultEllipsis, onDoubleClickRow, handleSubmit, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
49
36
  export {};
@@ -1,13 +1,3 @@
1
- function _typeof(o) {
2
- "@babel/helpers - typeof";
3
-
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
- return typeof o;
6
- } : function (o) {
7
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
- }, _typeof(o);
9
- }
10
-
11
1
  function _arrayLikeToArray(r, a) {
12
2
  (null == a || a > r.length) && (a = r.length);
13
3
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -22,6 +12,16 @@ function _unsupportedIterableToArray(r, a) {
22
12
  }
23
13
  }
24
14
 
15
+ function _typeof(o) {
16
+ "@babel/helpers - typeof";
17
+
18
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
19
+ return typeof o;
20
+ } : function (o) {
21
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
22
+ }, _typeof(o);
23
+ }
24
+
25
25
  function toPrimitive(t, r) {
26
26
  if ("object" != _typeof(t) || !t) return t;
27
27
  var e = t[Symbol.toPrimitive];