@pisell/materials 6.3.12 → 6.3.13

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 (115) 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 +6 -6
  5. package/build/lowcode/render/default/view.js +15 -15
  6. package/build/lowcode/view.js +6 -6
  7. package/es/components/appVersionControl/index.d.ts +1 -0
  8. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  9. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  13. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/index.d.ts +8 -7
  17. package/es/components/date-picker/index.d.ts +1 -0
  18. package/es/components/pisell-config-provider/index.js +0 -1
  19. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  20. package/es/components/pisellCardList/index.d.ts +4 -0
  21. package/es/components/pisellCardList/index.js +5 -1
  22. package/es/components/pisellDatePicker/index.d.ts +1 -0
  23. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  24. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  25. package/es/components/pisellModal/components/index.d.ts +1 -0
  26. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  27. package/es/components/pisellWalletPassCard/index.js +17 -4
  28. package/es/components/productCard/components/Time/index.d.ts +1 -0
  29. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  30. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  31. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  32. package/es/components/table/Actions/index.d.ts +1 -0
  33. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  34. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  35. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  36. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  37. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  38. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  39. package/es/components/table/Table/fields/index.d.ts +1 -0
  40. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  41. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  42. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  53. package/es/components/table/Table/utils.d.ts +1 -1
  54. package/es/components/versionSelect/index.d.ts +1 -0
  55. package/es/locales/en-US.d.ts +1 -0
  56. package/es/locales/en-US.js +1 -0
  57. package/es/locales/zh-CN.d.ts +1 -0
  58. package/es/locales/zh-CN.js +1 -0
  59. package/es/locales/zh-TW.d.ts +1 -0
  60. package/es/locales/zh-TW.js +1 -0
  61. package/lib/components/appVersionControl/index.d.ts +1 -0
  62. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  63. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  64. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  66. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  67. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  68. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  69. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  70. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -7
  71. package/lib/components/date-picker/index.d.ts +1 -0
  72. package/lib/components/pisell-config-provider/index.js +0 -1
  73. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  74. package/lib/components/pisellCardList/index.d.ts +4 -0
  75. package/lib/components/pisellCardList/index.js +5 -1
  76. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  77. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  78. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  79. package/lib/components/pisellModal/components/index.d.ts +1 -0
  80. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  81. package/lib/components/pisellWalletPassCard/index.js +12 -2
  82. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  83. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  84. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  85. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  86. package/lib/components/table/Actions/index.d.ts +1 -0
  87. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  88. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  89. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  90. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  91. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  92. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  93. package/lib/components/table/Table/fields/index.d.ts +1 -0
  94. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  95. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  96. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  97. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  98. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  99. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  100. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  101. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  102. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  103. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  104. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  105. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  106. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  107. package/lib/components/table/Table/utils.d.ts +1 -1
  108. package/lib/components/versionSelect/index.d.ts +1 -0
  109. package/lib/locales/en-US.d.ts +1 -0
  110. package/lib/locales/en-US.js +1 -0
  111. package/lib/locales/zh-CN.d.ts +1 -0
  112. package/lib/locales/zh-CN.js +1 -0
  113. package/lib/locales/zh-TW.d.ts +1 -0
  114. package/lib/locales/zh-TW.js +1 -0
  115. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AppVersionControlProps } from './types';
2
3
  import './index.less';
3
4
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Drawer } from 'antd';
2
3
  import { OperationItem } from '../type';
3
4
  declare const useDrawerState: (operationContent?: {
@@ -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: {
34
34
  dom: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -59,7 +60,11 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
64
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
+ } & {
66
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
+ }) | 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> & {
63
68
  JSON: import("react").FC<any>;
64
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
65
70
  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>;
@@ -79,11 +84,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
79
84
  name?: string | undefined;
80
85
  fieldKey?: string | undefined;
81
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
82
- }) | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
83
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
84
- } & {
85
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
- }) | 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<{}> & {
87
+ }) | (import("react").FC<{}> & {
87
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
89
  } & {
89
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +98,5 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
97
98
  dataSource?: any;
98
99
  }) => JSX.Element) | import("react").FC<any> | 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 & {
99
100
  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>;
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>;
101
102
  export { getFieldComponent, formFieldMap };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -28,7 +28,6 @@ var PisellConfigProvider = function PisellConfigProvider(props) {
28
28
  locale: locale || 'en',
29
29
  getSymbolic: getSymbolic
30
30
  };
31
- console.log(config, 'config');
32
31
  var staticFunction = App.useApp();
33
32
  setMessage(staticFunction.message);
34
33
  setModal(staticFunction.modal);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  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
  /** 是否展示二维码 */
@@ -38,7 +38,9 @@ var PisellCardList = function PisellCardList(props) {
38
38
  empty = props.empty,
39
39
  showEmpty = props.showEmpty,
40
40
  showBalanceSymbol = props.showBalanceSymbol,
41
- onChangeDebounce = props.onChangeDebounce;
41
+ onChangeDebounce = props.onChangeDebounce,
42
+ validDateBySchedule = props.validDateBySchedule,
43
+ scheduleList = props.scheduleList;
42
44
  return data.length ? /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
43
45
  options: data,
44
46
  value: value,
@@ -65,6 +67,8 @@ var PisellCardList = function PisellCardList(props) {
65
67
  showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol),
66
68
  showActions: props.showActions || (item === null || item === void 0 ? void 0 : item.showActions),
67
69
  actions: props.actions || (item === null || item === void 0 ? void 0 : item.actions),
70
+ validDateBySchedule: validDateBySchedule || (item === null || item === void 0 ? void 0 : item.validDateBySchedule),
71
+ scheduleList: scheduleList || (item === null || item === void 0 ? void 0 : item.scheduleList),
68
72
  beforeEdit: function beforeEdit(record) {
69
73
  var _props$beforeEdit;
70
74
  return props === null || props === void 0 || (_props$beforeEdit = props.beforeEdit) === null || _props$beforeEdit === void 0 ? void 0 : _props$beforeEdit.call(props, record, index);
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PisellDatePicker: (props: any) => JSX.Element;
2
3
  export default PisellDatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -43,6 +43,10 @@ export interface PisellWalletPassCardProps {
43
43
  showCode?: boolean;
44
44
  /** 是否展示有效期 */
45
45
  showValidDate?: boolean;
46
+ /** 使用日程信息计算有效期 */
47
+ validDateBySchedule?: boolean;
48
+ /** 日程列表 */
49
+ scheduleList?: any[];
46
50
  /** 是否展示右上角详情按钮 */
47
51
  showDetail?: boolean;
48
52
  /** 是否展示qrCode */
@@ -19,7 +19,8 @@ import { CheckCircleFilled, EditOutlined, ExclamationCircleOutlined, MoreOutline
19
19
  import { Dropdown, Form, Input, InputNumber, DatePicker } from 'antd';
20
20
  import dayjs from 'dayjs';
21
21
  import Iconfont from "../iconfont";
22
- import { PisellModal } from "../../index";
22
+ import { PisellModal, usePisellConfig } from "../../index";
23
+ import { getScheduleSummary } from '@pisell/utils';
23
24
  import Amount from "../pisellText/components/Amount";
24
25
 
25
26
  // @ts-ignore
@@ -52,6 +53,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
52
53
  _React$useState8 = _slicedToArray(_React$useState7, 2),
53
54
  pressTimer = _React$useState8[0],
54
55
  setPressTimer = _React$useState8[1];
56
+ var config = usePisellConfig();
55
57
 
56
58
  // 添加 useEffect 清理定时器
57
59
  useEffect(function () {
@@ -108,7 +110,9 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
108
110
  onConfirmEdit = props.onConfirmEdit,
109
111
  originData = props.originData,
110
112
  _props$style = props.style,
111
- style = _props$style === void 0 ? {} : _props$style;
113
+ style = _props$style === void 0 ? {} : _props$style,
114
+ validDateBySchedule = props.validDateBySchedule,
115
+ scheduleList = props.scheduleList;
112
116
  useEffect(function () {
113
117
  document.body.id = 'body';
114
118
  }, []);
@@ -233,6 +237,12 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
233
237
  }
234
238
  setLastTap(now);
235
239
  };
240
+ var formatValidDate = useMemo(function () {
241
+ if (validDateBySchedule && scheduleList && (scheduleList === null || scheduleList === void 0 ? void 0 : scheduleList.length) > 0) {
242
+ return /*#__PURE__*/React.createElement(React.Fragment, null, getText('pisell-wallet-pass-card-valid'), ' ', getScheduleSummary(scheduleList, config === null || config === void 0 ? void 0 : config.locale) || validDate);
243
+ }
244
+ return /*#__PURE__*/React.createElement(React.Fragment, null, getText('pisell-wallet-pass-card-valid-to'), ' ', !!validDate ? validDate : getText('pisell-wallet-pass-card-expireDate'));
245
+ }, [validDateBySchedule, scheduleList, validDate]);
236
246
  var _onConfirmEdit = function _onConfirmEdit() {
237
247
  form.validateFields().then(function (values) {
238
248
  var _values$validDate;
@@ -366,10 +376,13 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
366
376
  useThousandsSeparator: true,
367
377
  value: discount
368
378
  })) : /*#__PURE__*/React.createElement(React.Fragment, null, discount, "% ", getText('pisell-discount-card-unit'))))), /*#__PURE__*/React.createElement("div", {
369
- className: "pisell-card-code-wrap"
379
+ className: "pisell-card-code-wrap",
380
+ style: {
381
+ marginRight: showQrCode && !isMini ? 60 : 0
382
+ }
370
383
  }, /*#__PURE__*/React.createElement("div", {
371
384
  className: "pisell-card-code"
372
- }, showCode && !isMini && /*#__PURE__*/React.createElement("div", null, code), showValidDate && /*#__PURE__*/React.createElement("div", null, getText('pisell-wallet-pass-card-valid-to'), ' ', !!validDate ? validDate : getText('pisell-wallet-pass-card-expireDate')))));
385
+ }, showCode && !isMini && /*#__PURE__*/React.createElement("div", null, code), showValidDate && /*#__PURE__*/React.createElement("div", null, formatValidDate))));
373
386
  };
374
387
  var getInputItem = function getInputItem(name) {
375
388
  if ('validDate' === name) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
3
4
  export default Time;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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: {
@@ -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
- }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
158
+ }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "filters" | "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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -150,6 +150,7 @@ export default {
150
150
  'pisell-wallet-pass-card-redeem': 'Redeem',
151
151
  'pisell-wallet-pass-card-code': 'Code',
152
152
  'pisell-wallet-pass-card-valid-to': 'Valid to',
153
+ 'pisell-wallet-pass-card-valid': 'Valid',
153
154
  'pisell-wallet-pass-card-confirm': 'Confirm',
154
155
  'pisell-wallet-pass-card-cancel': 'Cancel',
155
156
  'pisell-wallet-pass-card-required': 'This field is required',
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -150,6 +150,7 @@ export default {
150
150
  'pisell-wallet-pass-card-redeem': '兑换',
151
151
  'pisell-wallet-pass-card-code': '识别码编号',
152
152
  'pisell-wallet-pass-card-valid-to': '有效期至',
153
+ 'pisell-wallet-pass-card-valid': '有效期',
153
154
  'pisell-wallet-pass-card-confirm': '确认',
154
155
  'pisell-wallet-pass-card-cancel': '取消',
155
156
  'pisell-wallet-pass-card-required': '此字段必填',
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -150,6 +150,7 @@ export default {
150
150
  'pisell-wallet-pass-card-redeem': '兌換',
151
151
  'pisell-wallet-pass-card-code': '識別碼編號',
152
152
  'pisell-wallet-pass-card-valid-to': '有效期至',
153
+ 'pisell-wallet-pass-card-valid': '有效期',
153
154
  'pisell-wallet-pass-card-confirm': '確認',
154
155
  'pisell-wallet-pass-card-cancel': '取消',
155
156
  'pisell-wallet-pass-card-required': '此欄位為必填',
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AppVersionControlProps } from './types';
2
3
  import './index.less';
3
4
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Drawer } from 'antd';
2
3
  import { OperationItem } from '../type';
3
4
  declare const useDrawerState: (operationContent?: {
@@ -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: {
34
34
  dom: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;