@pisell/materials 6.4.3 → 6.4.4

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 (48) 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 +1 -1
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +18 -22
  8. package/build/lowcode/view.js +19 -23
  9. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  11. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  12. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/index.d.ts +10 -10
  14. package/es/components/filter/index.d.ts +0 -1
  15. package/es/components/list/index.d.ts +0 -1
  16. package/es/components/pisellWalletPassCard/index.js +6 -1
  17. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  18. package/es/components/table/Table/fields/index.d.ts +2 -3
  19. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  20. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  21. package/es/components/table/Table/utils.d.ts +1 -1
  22. package/es/locales/en-US.d.ts +1 -0
  23. package/es/locales/en-US.js +1 -0
  24. package/es/locales/zh-CN.d.ts +1 -0
  25. package/es/locales/zh-CN.js +1 -0
  26. package/es/locales/zh-TW.d.ts +1 -0
  27. package/es/locales/zh-TW.js +1 -0
  28. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  29. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  30. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  31. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  32. package/lib/components/dataSourceComponents/fields/index.d.ts +10 -10
  33. package/lib/components/filter/index.d.ts +0 -1
  34. package/lib/components/list/index.d.ts +0 -1
  35. package/lib/components/pisellWalletPassCard/index.js +9 -1
  36. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  37. package/lib/components/table/Table/fields/index.d.ts +2 -3
  38. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  39. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  40. package/lib/components/table/Table/utils.d.ts +1 -1
  41. package/lib/locales/en-US.d.ts +1 -0
  42. package/lib/locales/en-US.js +1 -0
  43. package/lib/locales/zh-CN.d.ts +1 -0
  44. package/lib/locales/zh-CN.js +1 -0
  45. package/lib/locales/zh-TW.d.ts +1 -0
  46. package/lib/locales/zh-TW.js +1 -0
  47. package/lowcode/pisell-wallet-pass-card/meta.ts +19 -0
  48. package/package.json +1 -1
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "custom" | "default" | "api" | undefined;
46
+ optionSourceType?: "default" | "custom" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "default" | "custom" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -34,7 +34,7 @@ declare const formFieldMap: {
34
34
  };
35
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
36
  options?: any;
37
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
38
38
  labelField: string;
39
39
  valueField: string;
40
40
  extraParams?: Record<string, any> | undefined;
@@ -59,11 +59,13 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
69
  JSON: import("react").FC<any>;
68
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
71
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -76,26 +78,24 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
76
78
  Subdomain: import("react").FC<import("antd").InputProps & {
77
79
  onChange: (value: string) => void;
78
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
80
82
  customDomain?: string | undefined;
81
83
  value?: string | undefined;
82
84
  tenantId: string;
83
85
  name?: string | undefined;
84
86
  fieldKey?: string | undefined;
85
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
- }) | (import("react").FC<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
90
  } & {
89
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
92
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
93
  options?: any;
92
- optionSourceType?: "custom" | "default" | "api" | undefined;
94
+ optionSourceType?: "default" | "custom" | "api" | undefined;
93
95
  labelField: string;
94
96
  valueField: string;
95
97
  extraParams?: Record<string, any> | undefined;
96
98
  } & {
97
99
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
- onChange: (value: string) => void;
100
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
100
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -512,6 +512,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
512
512
  });
513
513
  };
514
514
  var renderBalanceInfo = function renderBalanceInfo() {
515
+ var _props$metadata;
515
516
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
516
517
  className: "pisell-card-amount-wrap"
517
518
  }, showRedeem && !disabled && /*#__PURE__*/React.createElement("div", {
@@ -538,7 +539,11 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
538
539
  className: "pisell-card-amount-item-label"
539
540
  }, getText('pisell-discount-card-title')), /*#__PURE__*/React.createElement("div", {
540
541
  className: "pisell-card-amount-item-value"
541
- }, discount, "% ", getText('pisell-discount-card-unit')))), /*#__PURE__*/React.createElement("div", {
542
+ }, ((_props$metadata = props.metadata) === null || _props$metadata === void 0 ? void 0 : _props$metadata.discount_card_type) === 'fixed_amount' ? /*#__PURE__*/React.createElement(React.Fragment, null, getText('pisell-discount-card-fixed-amount-prefix'), ' ', /*#__PURE__*/React.createElement(Amount, {
543
+ className: "pisell-card-amount-item-value",
544
+ useThousandsSeparator: true,
545
+ value: discount
546
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null, discount, "% ", getText('pisell-discount-card-unit'))))), /*#__PURE__*/React.createElement("div", {
542
547
  className: "pisell-card-code-wrap"
543
548
  }, /*#__PURE__*/React.createElement("div", {
544
549
  className: "pisell-card-code"
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -198,12 +197,12 @@ export declare const fieldList: ({
198
197
  field_icon: string;
199
198
  field_name: string;
200
199
  field_type: string;
201
- default_value: boolean;
200
+ default_value: string;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: string;
205
+ default_value: boolean;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -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
- }) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
158
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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 {};
@@ -136,6 +136,7 @@ declare const _default: {
136
136
  'pisell-adjust-price-discount-can-be-maximum': string;
137
137
  'pisell-discount-card-title': string;
138
138
  'pisell-discount-card-unit': string;
139
+ 'pisell-discount-card-fixed-amount-prefix': string;
139
140
  'pisell-data-source-table-add': string;
140
141
  'pisell-data-source-table-edit': string;
141
142
  'pisell-data-source-table-detail': string;
@@ -163,6 +163,7 @@ export default {
163
163
  'pisell-adjust-price-discount-can-be-maximum': "Discount can be maximum",
164
164
  'pisell-discount-card-title': 'Discount',
165
165
  'pisell-discount-card-unit': 'off',
166
+ 'pisell-discount-card-fixed-amount-prefix': 'Save',
166
167
  // 数据源表格
167
168
  'pisell-data-source-table-add': 'Add',
168
169
  'pisell-data-source-table-edit': 'Edit',
@@ -136,6 +136,7 @@ declare const _default: {
136
136
  'pisell-adjust-price-discount-can-be-maximum': string;
137
137
  'pisell-discount-card-title': string;
138
138
  'pisell-discount-card-unit': string;
139
+ 'pisell-discount-card-fixed-amount-prefix': string;
139
140
  'pisell-data-source-table-add': string;
140
141
  'pisell-data-source-table-edit': string;
141
142
  'pisell-data-source-table-detail': string;
@@ -163,6 +163,7 @@ export default {
163
163
  'pisell-adjust-price-discount-can-be-maximum': "折扣最高可达",
164
164
  'pisell-discount-card-title': '折扣',
165
165
  'pisell-discount-card-unit': '折扣',
166
+ 'pisell-discount-card-fixed-amount-prefix': '立减',
166
167
  'pisell-data-source-table-add': '添加',
167
168
  'pisell-data-source-table-edit': '编辑',
168
169
  'pisell-data-source-table-detail': '详情',
@@ -136,6 +136,7 @@ declare const _default: {
136
136
  'pisell-adjust-price-discount-can-be-maximum': string;
137
137
  'pisell-discount-card-title': string;
138
138
  'pisell-discount-card-unit': string;
139
+ 'pisell-discount-card-fixed-amount-prefix': string;
139
140
  'pisell-data-source-table-add': string;
140
141
  'pisell-data-source-table-edit': string;
141
142
  'pisell-data-source-table-detail': string;
@@ -163,6 +163,7 @@ export default {
163
163
  'pisell-adjust-price-discount-can-be-maximum': "折扣最高可達",
164
164
  'pisell-discount-card-title': '折扣',
165
165
  'pisell-discount-card-unit': '折扣',
166
+ 'pisell-discount-card-fixed-amount-prefix': '立減',
166
167
  // 数据源表格
167
168
  'pisell-data-source-table-add': '添加',
168
169
  'pisell-data-source-table-edit': '編輯',
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "custom" | "default" | "api" | undefined;
46
+ optionSourceType?: "default" | "custom" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "default" | "custom" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -34,7 +34,7 @@ declare const formFieldMap: {
34
34
  };
35
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
36
  options?: any;
37
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
38
38
  labelField: string;
39
39
  valueField: string;
40
40
  extraParams?: Record<string, any> | undefined;
@@ -59,11 +59,13 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
69
  JSON: import("react").FC<any>;
68
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
71
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -76,26 +78,24 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
76
78
  Subdomain: import("react").FC<import("antd").InputProps & {
77
79
  onChange: (value: string) => void;
78
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
80
82
  customDomain?: string | undefined;
81
83
  value?: string | undefined;
82
84
  tenantId: string;
83
85
  name?: string | undefined;
84
86
  fieldKey?: string | undefined;
85
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
- }) | (import("react").FC<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
90
  } & {
89
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
92
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
93
  options?: any;
92
- optionSourceType?: "custom" | "default" | "api" | undefined;
94
+ optionSourceType?: "default" | "custom" | "api" | undefined;
93
95
  labelField: string;
94
96
  valueField: string;
95
97
  extraParams?: Record<string, any> | undefined;
96
98
  } & {
97
99
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
- onChange: (value: string) => void;
100
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
100
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -420,6 +420,7 @@ var PisellWalletPassCard = (props) => {
420
420
  }
421
421
  );
422
422
  const renderBalanceInfo = () => {
423
+ var _a;
423
424
  return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-wrap" }, showRedeem && !disabled && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-redeem" }, /* @__PURE__ */ import_react.default.createElement(
424
425
  "div",
425
426
  {
@@ -441,7 +442,14 @@ var PisellWalletPassCard = (props) => {
441
442
  originDom: createOriginalBalanceDom(),
442
443
  active,
443
444
  data: props
444
- }) : createOriginalBalanceDom()), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate")))));
445
+ }) : createOriginalBalanceDom()), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, ((_a = props.metadata) == null ? void 0 : _a.discount_card_type) === "fixed_amount" ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (0, import_locales.getText)("pisell-discount-card-fixed-amount-prefix"), " ", /* @__PURE__ */ import_react.default.createElement(
446
+ import_Amount.default,
447
+ {
448
+ className: "pisell-card-amount-item-value",
449
+ useThousandsSeparator: true,
450
+ value: discount
451
+ }
452
+ )) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit"))))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate")))));
445
453
  };
446
454
  const getInputItem = (name2) => {
447
455
  if ("validDate" === name2) {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -198,12 +197,12 @@ export declare const fieldList: ({
198
197
  field_icon: string;
199
198
  field_name: string;
200
199
  field_type: string;
201
- default_value: boolean;
200
+ default_value: string;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: string;
205
+ default_value: boolean;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -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
- }) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
158
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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 {};
@@ -136,6 +136,7 @@ declare const _default: {
136
136
  'pisell-adjust-price-discount-can-be-maximum': string;
137
137
  'pisell-discount-card-title': string;
138
138
  'pisell-discount-card-unit': string;
139
+ 'pisell-discount-card-fixed-amount-prefix': string;
139
140
  'pisell-data-source-table-add': string;
140
141
  'pisell-data-source-table-edit': string;
141
142
  'pisell-data-source-table-detail': string;
@@ -169,6 +169,7 @@ var en_US_default = {
169
169
  "pisell-adjust-price-discount-can-be-maximum": "Discount can be maximum",
170
170
  "pisell-discount-card-title": "Discount",
171
171
  "pisell-discount-card-unit": "off",
172
+ "pisell-discount-card-fixed-amount-prefix": "Save",
172
173
  // 数据源表格
173
174
  "pisell-data-source-table-add": "Add",
174
175
  "pisell-data-source-table-edit": "Edit",
@@ -136,6 +136,7 @@ declare const _default: {
136
136
  'pisell-adjust-price-discount-can-be-maximum': string;
137
137
  'pisell-discount-card-title': string;
138
138
  'pisell-discount-card-unit': string;
139
+ 'pisell-discount-card-fixed-amount-prefix': string;
139
140
  'pisell-data-source-table-add': string;
140
141
  'pisell-data-source-table-edit': string;
141
142
  'pisell-data-source-table-detail': string;
@@ -169,6 +169,7 @@ var zh_CN_default = {
169
169
  "pisell-adjust-price-discount-can-be-maximum": "折扣最高可达",
170
170
  "pisell-discount-card-title": "折扣",
171
171
  "pisell-discount-card-unit": "折扣",
172
+ "pisell-discount-card-fixed-amount-prefix": "立减",
172
173
  "pisell-data-source-table-add": "添加",
173
174
  "pisell-data-source-table-edit": "编辑",
174
175
  "pisell-data-source-table-detail": "详情",
@@ -136,6 +136,7 @@ declare const _default: {
136
136
  'pisell-adjust-price-discount-can-be-maximum': string;
137
137
  'pisell-discount-card-title': string;
138
138
  'pisell-discount-card-unit': string;
139
+ 'pisell-discount-card-fixed-amount-prefix': string;
139
140
  'pisell-data-source-table-add': string;
140
141
  'pisell-data-source-table-edit': string;
141
142
  'pisell-data-source-table-detail': string;
@@ -169,6 +169,7 @@ var zh_TW_default = {
169
169
  "pisell-adjust-price-discount-can-be-maximum": "折扣最高可達",
170
170
  "pisell-discount-card-title": "折扣",
171
171
  "pisell-discount-card-unit": "折扣",
172
+ "pisell-discount-card-fixed-amount-prefix": "立減",
172
173
  // 数据源表格
173
174
  "pisell-data-source-table-add": "添加",
174
175
  "pisell-data-source-table-edit": "編輯",
@@ -153,6 +153,19 @@ export default {
153
153
  propType: 'bool',
154
154
  setter: 'BoolSetter',
155
155
  defaultValue: true,
156
+ },
157
+ {
158
+ name: 'discount',
159
+ title: { label: '折扣' },
160
+ propType: 'string',
161
+ setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
162
+ },
163
+ {
164
+ name: 'showDiscount',
165
+ title: { label: '显示折扣' },
166
+ propType: 'bool',
167
+ setter: 'BoolSetter',
168
+ defaultValue: true,
156
169
  },
157
170
  {
158
171
  name: 'code',
@@ -213,6 +226,12 @@ export default {
213
226
  setter: 'BoolSetter',
214
227
  defaultValue: true,
215
228
  },
229
+ {
230
+ name: 'metadata',
231
+ title: { label: '元信息' },
232
+ propType: 'object',
233
+ setter: 'JsonSetter',
234
+ }
216
235
  ],
217
236
  },
218
237
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.4.3",
3
+ "version": "6.4.4",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",