@pisell/materials 2.2.84 → 2.2.85

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 (59) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +4 -4
  6. package/build/lowcode/preview.js +160 -144
  7. package/build/lowcode/render/default/view.js +35 -25
  8. package/build/lowcode/view.js +40 -30
  9. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  12. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/index.d.ts +3 -2
  16. package/es/components/filter/index.d.ts +1 -0
  17. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  18. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  19. package/es/components/productCard/locales.d.ts +84 -0
  20. package/es/components/productCard/status.d.ts +32 -0
  21. package/es/components/productCard/types.d.ts +84 -0
  22. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  23. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  24. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  25. package/es/components/table/Actions/index.d.ts +1 -0
  26. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  27. package/es/components/table/Table/fields/index.d.ts +2 -2
  28. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  29. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  30. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  31. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  32. package/es/components/table/Table/utils.d.ts +1 -1
  33. package/es/utils/index.d.ts +1 -1
  34. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  35. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  36. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  37. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  38. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  39. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  40. package/lib/components/dataSourceComponents/fields/index.d.ts +3 -2
  41. package/lib/components/filter/index.d.ts +1 -0
  42. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  43. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  44. package/lib/components/productCard/locales.d.ts +84 -0
  45. package/lib/components/productCard/status.d.ts +32 -0
  46. package/lib/components/productCard/types.d.ts +84 -0
  47. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  48. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  49. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  50. package/lib/components/table/Actions/index.d.ts +1 -0
  51. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  52. package/lib/components/table/Table/fields/index.d.ts +2 -2
  53. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  54. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  55. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  56. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  57. package/lib/components/table/Table/utils.d.ts +1 -1
  58. package/lib/utils/index.d.ts +1 -1
  59. package/package.json +3 -3
@@ -0,0 +1,32 @@
1
+ import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
+ /**
3
+ * @title: 套餐数据
4
+ * @description:
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2025-01-02 23:21
8
+ */
9
+ export declare const defaultBundle: bundleType;
10
+ /**
11
+ * @description: 单规格
12
+ * @return {*}
13
+ * @Author: WangHan
14
+ * @Date: 2025-01-02 23:00
15
+ */
16
+ export declare const defaultOption: optionType;
17
+ /**
18
+ * @title: 商品商品类型
19
+ * @description:
20
+ * @return {*}
21
+ * @Author: WangHan
22
+ * @Date: 2025-01-02 22:48
23
+ */
24
+ export declare const defaultProduct: productType;
25
+ /**
26
+ * @title: 默认数据
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-12 16:49
31
+ */
32
+ export declare const defaultValue: ProductCardTypes;
@@ -0,0 +1,84 @@
1
+ export declare type bundleType = {
2
+ id: number;
3
+ name: string;
4
+ num: number;
5
+ price: number;
6
+ total: number;
7
+ origin_total?: number;
8
+ price_type?: string;
9
+ options?: optionType[];
10
+ };
11
+ /**
12
+ * @description:
13
+ * @return {*}
14
+ * @Author: WangHan
15
+ * @Date: 2025-01-02 23:00
16
+ */
17
+ export declare type optionType = {
18
+ id: number;
19
+ name: string;
20
+ num: number;
21
+ price: number;
22
+ total: number;
23
+ origin_total?: number;
24
+ };
25
+ /**
26
+ * @title: 商品商品类型
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2025-01-02 22:48
31
+ */
32
+ export declare type productType = {
33
+ _id: string | number;
34
+ id: number;
35
+ name: string;
36
+ price: number;
37
+ total: number;
38
+ num: number;
39
+ origin_total?: number;
40
+ image?: string;
41
+ isShowNote?: boolean;
42
+ note?: string;
43
+ like_status?: string;
44
+ bundle?: bundleType[];
45
+ options?: optionType[];
46
+ isShowAction?: boolean;
47
+ actionText?: string;
48
+ errorMessage?: string;
49
+ product_option_string?: string;
50
+ discount_reason?: string;
51
+ relation_products?: any[];
52
+ resource_id?: string | number;
53
+ relation_form_name?: string;
54
+ holder_title?: string;
55
+ start_date?: string;
56
+ end_date?: string;
57
+ is_show_duration?: boolean;
58
+ is_show_week?: boolean;
59
+ };
60
+ /**
61
+ * 排序总配置
62
+ */
63
+ export declare type ProductCardTypes = {
64
+ dataSource: productType;
65
+ isShowImage?: boolean;
66
+ isShowHolder?: boolean;
67
+ isShowNote?: boolean;
68
+ isShowPackageNote?: boolean;
69
+ isShowDelete?: boolean;
70
+ disabledEdit?: boolean;
71
+ locale?: string;
72
+ symbol?: string;
73
+ isShowChangeHolder?: boolean;
74
+ isShowChangeResource?: boolean;
75
+ isShowChangeDate?: boolean;
76
+ onAction?: (val: any) => void;
77
+ onDelete?: (val: any) => void;
78
+ onNote?: (val: any) => void;
79
+ onLike?: (val: any) => void;
80
+ onCard?: (val: any) => void;
81
+ onChangeResource?: (val: any) => void;
82
+ osWarnTips?: Array<string>;
83
+ [key: string]: any;
84
+ };
@@ -0,0 +1,7 @@
1
+ import { ExportImportType } from '../../../types';
2
+ import './index.less';
3
+ declare type ExportImportProps = {
4
+ exportImport: ExportImportType;
5
+ };
6
+ declare const ExportImport: ({ exportImport }: ExportImportProps) => JSX.Element;
7
+ export default ExportImport;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: any;
3
- vertical: any;
2
+ horizontal: number;
3
+ vertical: number;
4
4
  };
5
5
  export default useGapSize;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: string;
201
+ default_value: boolean;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: boolean;
206
+ default_value: string;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
158
+ }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
2
+ export declare const getCssNumber: (val: string | number) => string;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.84",
3
+ "version": "2.2.85",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -72,8 +72,8 @@
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
74
  "@pisell/date-picker": "1.0.101",
75
- "@pisell/icon": "0.0.11",
76
- "@pisell/utils": "2.0.1"
75
+ "@pisell/utils": "2.0.1",
76
+ "@pisell/icon": "0.0.11"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",