@pisell/materials 1.0.933 → 1.0.935

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 (81) 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 +164 -148
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +30 -15
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +41 -26
  11. package/es/components/auto-resize-text/index.js +1 -1
  12. package/es/components/batch-editor/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +1 -1
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/index.d.ts +11 -12
  19. package/es/components/filter/types.d.ts +1 -0
  20. package/es/components/keyboard/index.less +1 -0
  21. package/es/components/list/index.d.ts +0 -1
  22. package/es/components/pisell-config-provider/index.js +0 -1
  23. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  24. package/es/components/pisellCardList/index.d.ts +4 -0
  25. package/es/components/pisellCardList/index.js +5 -1
  26. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  27. package/es/components/pisellWalletPassCard/index.js +17 -4
  28. package/es/components/pisellWalletPassCard/utils.d.ts +44 -0
  29. package/es/components/pisellWalletPassCard/utils.js +499 -0
  30. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  31. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  32. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  33. package/es/components/table/Table/fields/index.d.ts +2 -3
  34. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  35. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  36. package/es/components/table/Table/utils.d.ts +1 -1
  37. package/es/components/table/hooks/useTableSetting.js +1 -1
  38. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  39. package/es/locales/en-US.d.ts +1 -0
  40. package/es/locales/en-US.js +1 -0
  41. package/es/locales/zh-CN.d.ts +1 -0
  42. package/es/locales/zh-CN.js +1 -0
  43. package/es/locales/zh-TW.d.ts +1 -0
  44. package/es/locales/zh-TW.js +16 -8
  45. package/es/utils/platform.d.ts +1 -1
  46. package/lib/components/auto-resize-text/index.js +1 -1
  47. package/lib/components/batch-editor/index.d.ts +0 -1
  48. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  49. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  50. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +1 -1
  51. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  52. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  53. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -12
  54. package/lib/components/filter/types.d.ts +1 -0
  55. package/lib/components/keyboard/index.less +1 -0
  56. package/lib/components/list/index.d.ts +0 -1
  57. package/lib/components/pisell-config-provider/index.js +0 -1
  58. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  59. package/lib/components/pisellCardList/index.d.ts +4 -0
  60. package/lib/components/pisellCardList/index.js +5 -1
  61. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  62. package/lib/components/pisellWalletPassCard/index.js +12 -2
  63. package/lib/components/pisellWalletPassCard/utils.d.ts +44 -0
  64. package/lib/components/pisellWalletPassCard/utils.js +349 -0
  65. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  66. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  67. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  68. package/lib/components/table/Table/fields/index.d.ts +2 -3
  69. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  70. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  71. package/lib/components/table/Table/utils.d.ts +1 -1
  72. package/lib/components/table/hooks/useTableSetting.js +1 -1
  73. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  74. package/lib/locales/en-US.d.ts +1 -0
  75. package/lib/locales/en-US.js +1 -0
  76. package/lib/locales/zh-CN.d.ts +1 -0
  77. package/lib/locales/zh-CN.js +1 -0
  78. package/lib/locales/zh-TW.d.ts +1 -0
  79. package/lib/locales/zh-TW.js +1 -4
  80. package/lib/utils/platform.d.ts +1 -1
  81. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -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;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
22
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: any;
34
34
  onRow: (record: any) => any;
@@ -51,7 +51,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
51
51
  width: number;
52
52
  align: "center" | "left" | "right";
53
53
  fixed: false | "left" | "right";
54
- type: "link" | "button";
54
+ type: "button" | "link";
55
55
  items: OperationItem[];
56
56
  } | undefined;
57
57
  operationContent?: {
@@ -282,7 +282,7 @@ var useTableProps = (props) => {
282
282
  getInitialValues
283
283
  }
284
284
  );
285
- dom.__proto__.items = propsFilter == null ? void 0 : propsFilter.items;
285
+ dom.__proto__.__items = propsFilter == null ? void 0 : propsFilter.items;
286
286
  return dom;
287
287
  }, [propsFilter, search]);
288
288
  const onRow = (0, import_ahooks.useMemoizedFn)((record) => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -35,7 +34,7 @@ declare const formFieldMap: {
35
34
  };
36
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
36
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
39
38
  labelField: string;
40
39
  valueField: string;
41
40
  extraParams?: Record<string, any> | undefined;
@@ -60,7 +59,13 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
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
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
+ } & {
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("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> & {
64
69
  JSON: import("react").FC<any>;
65
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
66
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>;
@@ -80,23 +85,17 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
80
85
  name?: string | undefined;
81
86
  fieldKey?: string | undefined;
82
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
83
- }) | (import("react").FC<{}> & {
84
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
- } & {
86
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
87
- }) | 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<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
90
  } & {
90
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
92
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
93
  options?: any;
93
- optionSourceType?: "custom" | "default" | "api" | undefined;
94
+ optionSourceType?: "default" | "custom" | "api" | undefined;
94
95
  labelField: string;
95
96
  valueField: string;
96
97
  extraParams?: Record<string, any> | undefined;
97
98
  } & {
98
99
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & 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("antd").InputProps & {
100
- onChange: (value: string) => void;
101
- } & 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>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -10,6 +10,7 @@ export declare type FilterType = {
10
10
  /** 筛选列表 */
11
11
  list: FilterItemProps[];
12
12
  items?: string[];
13
+ __items: string[];
13
14
  /** 快速筛选最大长度 */
14
15
  quickFilterMaxLength: number;
15
16
  /** 配置存储模式 */
@@ -30,6 +30,7 @@
30
30
  font-style: normal;
31
31
  font-weight: 400;
32
32
  box-shadow: none;
33
+ padding: 0 !important;
33
34
  }
34
35
  }
35
36
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -63,7 +63,6 @@ var PisellConfigProvider = (props) => {
63
63
  locale: locale || "en",
64
64
  getSymbolic
65
65
  };
66
- console.log(config, "config");
67
66
  const staticFunction = import_antd.App.useApp();
68
67
  (0, import_pisellMessage.setMessage)(staticFunction.message);
69
68
  (0, import_functions.setModal)(staticFunction.modal);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -31,6 +31,10 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
31
31
  showCode?: boolean;
32
32
  /** 是否展示到期时间 */
33
33
  showValidDate?: boolean;
34
+ /** 使用日程信息计算有效期 */
35
+ validDateBySchedule?: boolean;
36
+ /** 日程列表 */
37
+ scheduleList?: any[];
34
38
  /** 是否展示详情按钮 */
35
39
  showDetail?: boolean;
36
40
  /** 是否展示二维码 */
@@ -75,7 +75,9 @@ var PisellCardList = (props) => {
75
75
  formatRedeemTitle,
76
76
  onBeforeEditAmount,
77
77
  onItemClick,
78
- showActiveBackground
78
+ showActiveBackground,
79
+ validDateBySchedule,
80
+ scheduleList
79
81
  } = props;
80
82
  return data.length ? /* @__PURE__ */ import_react.default.createElement(
81
83
  import_pisellCheckboxGroup.default,
@@ -121,6 +123,8 @@ var PisellCardList = (props) => {
121
123
  var _a;
122
124
  return (_a = props == null ? void 0 : props.onDetail) == null ? void 0 : _a.call(props, record, index);
123
125
  },
126
+ validDateBySchedule: validDateBySchedule || (item == null ? void 0 : item.validDateBySchedule),
127
+ scheduleList: scheduleList || (item == null ? void 0 : item.scheduleList),
124
128
  beforeEdit: (record) => {
125
129
  var _a;
126
130
  return (_a = props == null ? void 0 : props.beforeEdit) == null ? void 0 : _a.call(props, record, index);
@@ -52,6 +52,10 @@ export interface PisellWalletPassCardProps {
52
52
  showCode?: boolean;
53
53
  /** 是否展示有效期 */
54
54
  showValidDate?: boolean;
55
+ /** 使用日程信息计算有效期 */
56
+ validDateBySchedule?: boolean;
57
+ /** 日程列表 */
58
+ scheduleList?: any[];
55
59
  /** 是否展示右上角详情按钮 */
56
60
  showDetail?: boolean;
57
61
  /** 是否展示qrCode */
@@ -41,6 +41,7 @@ var import_dayjs = __toESM(require("dayjs"));
41
41
  var import_iconfont = __toESM(require("../iconfont"));
42
42
  var import__ = require("../../index");
43
43
  var import_pisellTags = __toESM(require("../pisellTags"));
44
+ var import_utils = require("./utils");
44
45
  var import_Amount = __toESM(require("../pisellText/components/Amount"));
45
46
  var import_Amount2 = __toESM(require("../virtual-keyboard/Amount"));
46
47
  var import_index = require("./index.less");
@@ -64,6 +65,7 @@ var PisellWalletPassCard = (props) => {
64
65
  const [pressTimer, setPressTimer] = import_react.default.useState(
65
66
  null
66
67
  );
68
+ const config = (0, import__.usePisellConfig)();
67
69
  (0, import_react.useEffect)(() => {
68
70
  return () => {
69
71
  if (pressTimer) {
@@ -120,7 +122,9 @@ var PisellWalletPassCard = (props) => {
120
122
  formatBalanceTitle,
121
123
  formatRedeem,
122
124
  formatRedeemTitle,
123
- maxRedeem
125
+ maxRedeem,
126
+ validDateBySchedule,
127
+ scheduleList
124
128
  } = props;
125
129
  (0, import_react.useEffect)(() => {
126
130
  document.body.id = "body";
@@ -248,6 +252,12 @@ var PisellWalletPassCard = (props) => {
248
252
  }
249
253
  setLastTap(now);
250
254
  };
255
+ const formatValidDate = (0, import_react.useMemo)(() => {
256
+ if (validDateBySchedule && scheduleList && (scheduleList == null ? void 0 : scheduleList.length) > 0) {
257
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (0, import_locales.getText)("pisell-wallet-pass-card-valid"), " ", (0, import_utils.getScheduleSummary)(scheduleList, config == null ? void 0 : config.locale) || validDate);
258
+ }
259
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate"));
260
+ }, [validDateBySchedule, scheduleList, validDate]);
251
261
  const _onConfirmEdit = () => {
252
262
  form.validateFields().then((values) => {
253
263
  var _a;
@@ -450,7 +460,7 @@ var PisellWalletPassCard = (props) => {
450
460
  useThousandsSeparator: true,
451
461
  value: discount
452
462
  }
453
- )) : /* @__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")))));
463
+ )) : /* @__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", style: { marginRight: showValidDate ? 60 : 0 } }, /* @__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, formatValidDate))));
454
464
  };
455
465
  const getInputItem = (name2) => {
456
466
  if ("validDate" === name2) {
@@ -0,0 +1,44 @@
1
+ export declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
2
+ interface ScheduleItem {
3
+ id: number;
4
+ name: string | {
5
+ [key: string]: string;
6
+ };
7
+ type: 'standard' | 'time-slots' | 'designation';
8
+ start_time: string | null;
9
+ end_time: string | null;
10
+ repeat_type: 'none' | 'daily' | 'weekly' | 'monthly' | 'yearly';
11
+ repeat_rule: {
12
+ end: {
13
+ type: 'never' | 'date' | 'occurrence';
14
+ end_date: string | null;
15
+ occurrence: number | null;
16
+ };
17
+ frequency: number;
18
+ excluded_date: Array<{
19
+ start: string;
20
+ end: string;
21
+ }>;
22
+ included_date: any[];
23
+ frequency_date: number[];
24
+ } | null;
25
+ designation: Array<{
26
+ start_date: string;
27
+ start_time: string;
28
+ end_date: string;
29
+ end_time: string;
30
+ }> | null;
31
+ is_all: number;
32
+ time_slot: Array<{
33
+ start_time: string;
34
+ end_time: string;
35
+ }>;
36
+ }
37
+ /**
38
+ * 获取schedule摘要信息
39
+ * @param scheduleList 日程列表
40
+ * @param locale 语言设置
41
+ * @returns 摘要文本
42
+ */
43
+ export declare function getScheduleSummary(scheduleList: ScheduleItem[], locale?: Locale): string;
44
+ export {};