@pisell/materials 1.0.783 → 1.0.785

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 (79) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appVersionControl/index.d.ts +4 -0
  8. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  10. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  11. package/es/components/drag-sort-tree/index.d.ts +3 -0
  12. package/es/components/login-and-register/index.d.ts +82 -0
  13. package/es/components/pisell-config-provider/index.d.ts +12 -0
  14. package/es/components/pisellCardList/index.d.ts +71 -0
  15. package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
  16. package/es/components/pisellEmpty/index.d.ts +19 -0
  17. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  18. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  19. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  20. package/es/components/pisellWalletPassCard/index.d.ts +83 -0
  21. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  22. package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  23. package/es/components/productCard/components/Time/components/Like/index.js +10 -9
  24. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  25. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -1
  26. package/es/components/productCard/components/Time/components/SelectResource/index.js +7 -8
  27. package/es/components/productCard/components/Time/index.js +5 -5
  28. package/es/components/productCard/locales.d.ts +54 -0
  29. package/es/components/productCard/types.d.ts +83 -0
  30. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  31. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  32. package/es/components/table/Gallery/index.d.ts +5 -0
  33. package/es/components/table/Table/index.d.ts +4 -0
  34. package/es/components/table/Table/utils.d.ts +173 -0
  35. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  36. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  37. package/es/components/table/types.d.ts +253 -0
  38. package/es/components/versionModal/index.d.ts +24 -0
  39. package/es/index.d.ts +141 -0
  40. package/es/locales/en-US.d.ts +276 -0
  41. package/es/locales/zh-CN.d.ts +271 -0
  42. package/es/locales/zh-TW.d.ts +271 -0
  43. package/lib/components/appVersionControl/index.d.ts +4 -0
  44. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  45. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  46. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  47. package/lib/components/drag-sort-tree/index.d.ts +3 -0
  48. package/lib/components/login-and-register/index.d.ts +82 -0
  49. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  50. package/lib/components/pisellCardList/index.d.ts +71 -0
  51. package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
  52. package/lib/components/pisellEmpty/index.d.ts +19 -0
  53. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  54. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  55. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  56. package/lib/components/pisellWalletPassCard/index.d.ts +83 -0
  57. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  58. package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  59. package/lib/components/productCard/components/Time/components/Like/index.js +10 -9
  60. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  61. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -1
  62. package/lib/components/productCard/components/Time/components/SelectResource/index.js +21 -24
  63. package/lib/components/productCard/components/Time/index.js +5 -5
  64. package/lib/components/productCard/locales.d.ts +54 -0
  65. package/lib/components/productCard/types.d.ts +83 -0
  66. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  67. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  68. package/lib/components/table/Gallery/index.d.ts +5 -0
  69. package/lib/components/table/Table/index.d.ts +4 -0
  70. package/lib/components/table/Table/utils.d.ts +173 -0
  71. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  72. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  73. package/lib/components/table/types.d.ts +253 -0
  74. package/lib/components/versionModal/index.d.ts +24 -0
  75. package/lib/index.d.ts +141 -0
  76. package/lib/locales/en-US.d.ts +276 -0
  77. package/lib/locales/zh-CN.d.ts +271 -0
  78. package/lib/locales/zh-TW.d.ts +271 -0
  79. package/package.json +2 -2
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export interface PisellCheckboxGroupOption {
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ [key: string]: any;
9
+ }
10
+ declare type PisellCheckboxGroupValue = string | string[] | any;
11
+ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ platform?: PisellContextType['platform'];
13
+ direction?: 'horizontal' | 'vertical';
14
+ fullWidth?: boolean;
15
+ gap?: number;
16
+ padding?: number;
17
+ options: PisellCheckboxGroupOption[];
18
+ onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
+ value?: PisellCheckboxGroupValue;
20
+ renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
+ rowKey?: string;
22
+ mode?: 'multiple' | 'single';
23
+ iconPosition?: 'left' | 'right' | 'hide';
24
+ optionClassName?: string;
25
+ optionActiveClassName?: string;
26
+ }
27
+ /**
28
+ * @title: PisellCheckboxGroup
29
+ * @description: 选中组件
30
+ * @param {PisellCheckboxGroupProps} props
31
+ * @return {*}
32
+ * @Author: zhiwei.Wang
33
+ * @Date: 2024-08-16 10:34
34
+ */
35
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
36
+ export default PisellCheckboxGroup;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { EmptyProps } from 'antd';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import './index.less';
5
+ export interface PisellEmptyProps extends EmptyProps {
6
+ /** 平台 */
7
+ platform?: PisellContextType['platform'];
8
+ /** 额外内容描述 */
9
+ extraDescription?: React.ReactNode;
10
+ /** 额外内容描述 */
11
+ icon?: React.ReactNode;
12
+ /** 自定义底部额外操作区域 */
13
+ footer?: React.ReactNode;
14
+ /** 最大宽度 */
15
+ maxWidth?: number;
16
+ [key: string]: any;
17
+ }
18
+ declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
19
+ export default PisellEmpty;
@@ -0,0 +1,4 @@
1
+ export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
+ activeNativeScanner: () => void;
3
+ isTerminal: any;
4
+ };
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export declare type EntryModeType = {
5
+ /**
6
+ * 录入模式名称
7
+ * scanCode: 扫码录入
8
+ * input: 手动录入
9
+ * scanner: 扫码枪录入
10
+ * nfc: NFC录入
11
+ */
12
+ type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
+ /**
14
+ * 录入模式文案 没有使用默认文案
15
+ */
16
+ name?: string;
17
+ };
18
+ export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
+ /** 平台 */
20
+ platform?: PisellContextType['platform'];
21
+ /** 录入模式 */
22
+ entryModes: EntryModeType[];
23
+ /** 标题文案 */
24
+ title?: React.ReactNode;
25
+ /** 搜索框描述文案 */
26
+ searchDescribe?: React.ReactNode;
27
+ /** 录入信息值改变 */
28
+ onChange?: (val: string) => void;
29
+ /** 录入类型切换时候触发的 */
30
+ onChangeType?: (val: null | EntryModeType['type']) => void;
31
+ }
32
+ declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
+ export default PisellInformationEntry;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,83 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export interface PisellWalletPassCardProps {
4
+ id: number;
5
+ /** 卡片样式 */
6
+ type: 'default' | 'mini';
7
+ /** 商品名称 */
8
+ name: string;
9
+ /** 二维码 */
10
+ qrCode: string;
11
+ /** 共享店铺名称 */
12
+ storeName: string;
13
+ /** 余额 */
14
+ balance?: number;
15
+ /** 识别码编号 */
16
+ code: string;
17
+ /** 有效期 */
18
+ validDate: string;
19
+ /** 使用金额 */
20
+ redeem?: number;
21
+ /** 是否禁用 */
22
+ disabled?: boolean;
23
+ /** 禁用原因 */
24
+ disabledReason?: string;
25
+ /** 是否展示禁用原因 */
26
+ showDisabledReason?: boolean;
27
+ /** 封面图 */
28
+ cover?: string;
29
+ /** 余额标题文案 */
30
+ balanceTitle?: string;
31
+ /** 使用金额标题文案 */
32
+ redeemTitle?: string;
33
+ /** 是否选中 */
34
+ active?: boolean;
35
+ /** 是否展示商品名称 */
36
+ showName?: boolean;
37
+ /** 是否展示共享店铺名称 */
38
+ showStoreName?: boolean;
39
+ /** 是否展示使用金额 */
40
+ showRedeem?: boolean;
41
+ /** 是否展示余额 */
42
+ showBalance?: boolean;
43
+ /** 是否展示识别码编号 */
44
+ showCode?: boolean;
45
+ /** 是否展示有效期 */
46
+ showValidDate?: boolean;
47
+ /** 是否展示右上角详情按钮 */
48
+ showDetail?: boolean;
49
+ /** 是否展示qrCode */
50
+ showQrCode?: boolean;
51
+ /** 是否展示封面 */
52
+ showCover?: boolean;
53
+ /** 是否展示余额货币符号 */
54
+ showBalanceSymbol?: boolean;
55
+ /** 展示操作按钮 */
56
+ showActions?: boolean;
57
+ /** 操作按钮配置 */
58
+ actions?: {
59
+ /** 按钮展示方式 */
60
+ layout: 'expanded' | 'collapsed';
61
+ /** detail 按钮配置 */
62
+ detail?: {
63
+ visible: boolean;
64
+ iconColor: string;
65
+ };
66
+ /** edit按钮配置 */
67
+ edit?: {
68
+ visible: boolean;
69
+ iconColor: string;
70
+ dialogTitle: string;
71
+ enableDialog: boolean;
72
+ fields: {
73
+ name: string;
74
+ label: string;
75
+ };
76
+ };
77
+ };
78
+ /** 编辑弹窗点击提交 */
79
+ onConfirmEdit?: (value: any) => void;
80
+ [key: string]: any;
81
+ }
82
+ declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
83
+ export default PisellWalletPassCard;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
+ style?: any;
5
+ status: string;
6
+ onLike?: any;
7
+ className?: string | undefined;
8
+ isShowChangeResource?: boolean | undefined;
9
+ }) => JSX.Element;
10
+ export default Like;
@@ -45,9 +45,18 @@ var Like = ({
45
45
  isShowChangeResource
46
46
  }) => {
47
47
  const url = status === "like" ? import_like_heart.default : import_like_hide_heart.default;
48
+ const handleClick = (e) => {
49
+ if (!onLike) {
50
+ return;
51
+ }
52
+ e.preventDefault();
53
+ e.stopPropagation();
54
+ onLike == null ? void 0 : onLike(status === "like" ? "common" : "like");
55
+ };
48
56
  return /* @__PURE__ */ import_react.default.createElement(
49
57
  "div",
50
58
  {
59
+ onClick: handleClick,
51
60
  className: `pisell-lowcode-product-card-like-wrap ${isShowChangeResource ? "pisell-lowcode-change-resource-like-wrap" : ""}`
52
61
  },
53
62
  /* @__PURE__ */ import_react.default.createElement(
@@ -55,15 +64,7 @@ var Like = ({
55
64
  {
56
65
  style,
57
66
  src: url,
58
- className: (0, import_classnames.default)("like-icon", className),
59
- onClick: (e) => {
60
- if (!onLike) {
61
- return;
62
- }
63
- e.preventDefault();
64
- e.stopPropagation();
65
- onLike == null ? void 0 : onLike(status === "like" ? "common" : "like");
66
- }
67
+ className: (0, import_classnames.default)("like-icon", className)
67
68
  }
68
69
  )
69
70
  );
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, }: any) => JSX.Element;
4
+ export default SelectHolder;
@@ -14,5 +14,5 @@ interface SelectResourceProps {
14
14
  isParallelResource?: boolean;
15
15
  [key: string]: any;
16
16
  }
17
- declare const SelectResource: ({ lists, value, onChange, resourceMode, maxLength, allowClear, onClearResource, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
17
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
18
  export default SelectResource;
@@ -39,13 +39,13 @@ var import_antd = require("antd");
39
39
  var import_utils2 = require("@pisell/utils");
40
40
  var import_index = require("./index.less");
41
41
  var SelectResource = ({
42
- lists = [],
42
+ lists,
43
43
  value,
44
44
  onChange,
45
45
  resourceMode,
46
- maxLength,
47
46
  allowClear = false,
48
47
  onClearResource,
48
+ maxLength,
49
49
  // 是否显示资源错误
50
50
  isErrorResource,
51
51
  // 资源错误文案
@@ -67,28 +67,25 @@ var SelectResource = ({
67
67
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Select.Option, { value: d.id, key: d.id, ...d || {} }, /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px" } }, /* @__PURE__ */ import_react.default.createElement("span", null, d["label"]), (d == null ? void 0 : d.isError) ? /* @__PURE__ */ import_react.default.createElement(import_AlertTriangle.default, { style: { color: "#b42318", cursor: "pointer" } }) : null));
68
68
  });
69
69
  }, [lists]);
70
- const handleChange = (0, import_react.useCallback)(
71
- (val) => {
72
- if (["multiple", "tags"].includes(resourceMode) && maxLength) {
73
- if (value && value.length >= maxLength && val.length > value.length) {
74
- return;
75
- }
70
+ const handleChange = (0, import_react.useCallback)((val) => {
71
+ if (["multiple", "tags"].includes(resourceMode) && maxLength) {
72
+ if (value && value.length >= maxLength && val.length > value.length) {
73
+ return;
76
74
  }
77
- setSelectedValue(val);
78
- if (props.isParallelResource) {
79
- const valueArray = (0, import_utils2.isArr)(val) ? val : [val];
80
- return onChange({
81
- value: valueArray,
82
- options: valueArray.map((v) => resourceMap[v]),
83
- resourceMode,
84
- props
85
- });
86
- }
87
- const item = resourceMap[val];
88
- onChange(item);
89
- },
90
- [resourceMode, maxLength, value, onChange, props, resourceMap]
91
- );
75
+ }
76
+ setSelectedValue(val);
77
+ if (props.isParallelResource) {
78
+ const valueArray = (0, import_utils2.isArr)(val) ? val : [val];
79
+ return onChange({
80
+ value: valueArray,
81
+ options: valueArray.map((v) => resourceMap[v]),
82
+ resourceMode,
83
+ props
84
+ });
85
+ }
86
+ const item = resourceMap[val];
87
+ onChange(item);
88
+ }, [resourceMode, maxLength, value, onChange, props, resourceMap]);
92
89
  const isError = (0, import_react.useMemo)(() => {
93
90
  if (!selectedValue && isErrorResource) return true;
94
91
  }, [selectedValue, isErrorResource]);
@@ -105,8 +102,8 @@ var SelectResource = ({
105
102
  showSearch: true,
106
103
  allowClear,
107
104
  onClear: () => onChange(""),
108
- style: { flex: 1, overflow: "hidden" },
109
105
  onClick: (e) => e.stopPropagation(),
106
+ style: { flex: 1, overflow: "hidden" },
110
107
  value: selectedValue,
111
108
  onChange: handleChange
112
109
  },
@@ -68,12 +68,12 @@ var Time = ({
68
68
  // 多个资源数据
69
69
  multiResources,
70
70
  addHolderButtonText,
71
- isMultipleResource,
72
71
  isErrorHolder,
73
72
  allowClearHolder,
74
73
  allowClearResource,
75
74
  isErrorResource,
76
- resourceErrorText
75
+ resourceErrorText,
76
+ isMultipleResource
77
77
  } = item;
78
78
  const holderCom = (0, import_react.useMemo)(() => {
79
79
  if (!isShowHolder) return null;
@@ -140,12 +140,12 @@ var Time = ({
140
140
  lists: item2 == null ? void 0 : item2.lists,
141
141
  value: item2 == null ? void 0 : item2.id,
142
142
  onChange: changeResource,
143
- resourceMode: item2.resourceMode,
144
- maxLength: item2.maxLength,
145
143
  onClearResource,
146
144
  allowClear: item2 == null ? void 0 : item2.allowClearResource,
147
145
  isErrorResource: item2 == null ? void 0 : item2.isErrorResource,
148
- resourceErrorText: item2 == null ? void 0 : item2.resourceErrorText
146
+ resourceErrorText: item2 == null ? void 0 : item2.resourceErrorText,
147
+ resourceMode: item2.resourceMode,
148
+ maxLength: item2.maxLength
149
149
  }
150
150
  );
151
151
  },
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.minute': (val: number) => string;
6
+ 'pisell2.product.card.discount.reason': string;
7
+ 'pisell2.product.card.discount.note': string;
8
+ 'pisell2.product.card.discount.add.note': string;
9
+ 'pisell2.product.card.discount.edit.note': string;
10
+ 'pisell2.product.card.confirm': string;
11
+ 'pisell2.product.card.cancel': string;
12
+ 'pisell2.product.card.note.pla': string;
13
+ 'pisell2.product.card.items.package': string;
14
+ 'pisell2.product.card.view-all': string;
15
+ 'pisell2.product.card.view-less': string;
16
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
17
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
18
+ };
19
+ 'zh-CN': {
20
+ 'pisell2.product.card.day': (val: number) => string;
21
+ 'pisell2.product.card.day.event': (val: number) => string;
22
+ 'pisell2.product.card.minute': (val: number) => string;
23
+ 'pisell2.product.card.discount.reason': string;
24
+ 'pisell2.product.card.discount.note': string;
25
+ 'pisell2.product.card.discount.add.note': string;
26
+ 'pisell2.product.card.discount.edit.note': string;
27
+ 'pisell2.product.card.confirm': string;
28
+ 'pisell2.product.card.cancel': string;
29
+ 'pisell2.product.card.note.pla': string;
30
+ 'pisell2.product.card.items.package': string;
31
+ 'pisell2.product.card.view-all': string;
32
+ 'pisell2.product.card.view-less': string;
33
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
34
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
35
+ };
36
+ 'zh-HK': {
37
+ 'pisell2.product.card.day': (val: number) => string;
38
+ 'pisell2.product.card.day.event': (val: number) => string;
39
+ 'pisell2.product.card.minute': (val: number) => string;
40
+ 'pisell2.product.card.discount.reason': string;
41
+ 'pisell2.product.card.discount.note': string;
42
+ 'pisell2.product.card.discount.add.note': string;
43
+ 'pisell2.product.card.discount.edit.note': string;
44
+ 'pisell2.product.card.confirm': string;
45
+ 'pisell2.product.card.cancel': string;
46
+ 'pisell2.product.card.note.pla': string;
47
+ 'pisell2.product.card.items.package': string;
48
+ 'pisell2.product.card.view-all': string;
49
+ 'pisell2.product.card.view-less': string;
50
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
51
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,83 @@
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
+ [key: string]: any;
83
+ };
@@ -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;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { GallerySettingType, GallerySettingValueType } from "../../../types";
3
+ import "./index.less";
4
+ declare type GalleryItemProps = {
5
+ record: Record<string, any>;
6
+ gallery: GallerySettingType;
7
+ columnsMap: Map<string, Record<string, any>>;
8
+ index: number;
9
+ gallerySetting: GallerySettingValueType;
10
+ columns: Record<string, any>[];
11
+ onClick: React.MouseEventHandler<HTMLDivElement>;
12
+ };
13
+ declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
14
+ export default GalleryItem;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { GalleryProps } from './types';
3
+ import './index.less';
4
+ declare const _default: React.MemoExoticComponent<(props: GalleryProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.NamedExoticComponent<any>;
4
+ export default _default;