@pisell/materials 6.3.12 → 6.3.14

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 (155) 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/batch-editor/index.d.ts +1 -0
  9. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/index.d.ts +8 -7
  20. package/es/components/date-picker/index.d.ts +1 -0
  21. package/es/components/filter/index.d.ts +1 -0
  22. package/es/components/pisell-config-provider/index.js +0 -1
  23. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  24. package/es/components/pisellCardList/index.d.ts +4 -0
  25. package/es/components/pisellCardList/index.js +5 -1
  26. package/es/components/pisellDatePicker/index.d.ts +1 -0
  27. package/es/components/pisellLoading/index.d.ts +1 -0
  28. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  29. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  30. package/es/components/pisellModal/components/index.d.ts +1 -0
  31. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  32. package/es/components/pisellWalletPassCard/index.js +17 -4
  33. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  34. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  35. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  36. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  37. package/es/components/productCard/components/Time/index.d.ts +1 -0
  38. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  39. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  40. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  41. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  42. package/es/components/table/Actions/index.d.ts +1 -0
  43. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  44. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  45. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  53. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  54. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  55. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  56. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  59. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  61. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  65. package/es/components/table/Table/utils.d.ts +1 -1
  66. package/es/components/table/View/index.d.ts +1 -0
  67. package/es/components/versionSelect/index.d.ts +1 -0
  68. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  69. package/es/locales/en-US.d.ts +1 -0
  70. package/es/locales/en-US.js +1 -0
  71. package/es/locales/zh-CN.d.ts +1 -0
  72. package/es/locales/zh-CN.js +1 -0
  73. package/es/locales/zh-TW.d.ts +1 -0
  74. package/es/locales/zh-TW.js +1 -0
  75. package/lib/components/appVersionControl/index.d.ts +1 -0
  76. package/lib/components/batch-editor/index.d.ts +1 -0
  77. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  78. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  79. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  80. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  81. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  82. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  83. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  84. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  85. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  86. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  87. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -7
  88. package/lib/components/date-picker/index.d.ts +1 -0
  89. package/lib/components/filter/index.d.ts +1 -0
  90. package/lib/components/pisell-config-provider/index.js +0 -1
  91. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  92. package/lib/components/pisellCardList/index.d.ts +4 -0
  93. package/lib/components/pisellCardList/index.js +5 -1
  94. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  95. package/lib/components/pisellLoading/index.d.ts +1 -0
  96. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  97. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  98. package/lib/components/pisellModal/components/index.d.ts +1 -0
  99. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  100. package/lib/components/pisellWalletPassCard/index.js +12 -2
  101. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  102. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  103. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  104. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  105. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  106. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  107. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  108. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  109. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  110. package/lib/components/table/Actions/index.d.ts +1 -0
  111. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  112. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  113. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  114. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  115. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  116. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  117. package/lib/components/table/Table/fields/index.d.ts +1 -0
  118. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  119. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  120. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  121. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  122. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  123. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  124. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  125. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  126. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  127. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  128. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  129. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  130. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  131. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  132. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  133. package/lib/components/table/Table/utils.d.ts +1 -1
  134. package/lib/components/table/View/index.d.ts +1 -0
  135. package/lib/components/versionSelect/index.d.ts +1 -0
  136. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  137. package/lib/locales/en-US.d.ts +1 -0
  138. package/lib/locales/en-US.js +1 -0
  139. package/lib/locales/zh-CN.d.ts +1 -0
  140. package/lib/locales/zh-CN.js +1 -0
  141. package/lib/locales/zh-TW.d.ts +1 -0
  142. package/lib/locales/zh-TW.js +1 -0
  143. package/package.json +4 -4
  144. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  145. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  146. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  147. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  148. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  149. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  150. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  151. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  152. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  153. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  154. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  155. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
@@ -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 { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -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 { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -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,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
  /** 是否展示二维码 */
@@ -63,7 +63,9 @@ var PisellCardList = (props) => {
63
63
  empty,
64
64
  showEmpty,
65
65
  showBalanceSymbol,
66
- onChangeDebounce
66
+ onChangeDebounce,
67
+ validDateBySchedule,
68
+ scheduleList
67
69
  } = props;
68
70
  return data.length ? /* @__PURE__ */ import_react.default.createElement(
69
71
  import_pisellCheckboxGroup.default,
@@ -96,6 +98,8 @@ var PisellCardList = (props) => {
96
98
  showBalanceSymbol: showBalanceSymbol || (item == null ? void 0 : item.showBalanceSymbol),
97
99
  showActions: props.showActions || (item == null ? void 0 : item.showActions),
98
100
  actions: props.actions || (item == null ? void 0 : item.actions),
101
+ validDateBySchedule: validDateBySchedule || (item == null ? void 0 : item.validDateBySchedule),
102
+ scheduleList: scheduleList || (item == null ? void 0 : item.scheduleList),
99
103
  beforeEdit: (record) => {
100
104
  var _a;
101
105
  return (_a = props == null ? void 0 : props.beforeEdit) == null ? void 0 : _a.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 { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -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 */
@@ -39,6 +39,7 @@ var import_antd = require("antd");
39
39
  var import_dayjs = __toESM(require("dayjs"));
40
40
  var import_iconfont = __toESM(require("../iconfont"));
41
41
  var import__ = require("../../index");
42
+ var import_utils = require("@pisell/utils");
42
43
  var import_Amount = __toESM(require("../pisellText/components/Amount"));
43
44
  var import_index = require("./index.less");
44
45
  var import_locales = require("../../locales");
@@ -52,6 +53,7 @@ var PisellWalletPassCard = (props) => {
52
53
  const [pressTimer, setPressTimer] = import_react.default.useState(
53
54
  null
54
55
  );
56
+ const config = (0, import__.usePisellConfig)();
55
57
  (0, import_react.useEffect)(() => {
56
58
  return () => {
57
59
  if (pressTimer) {
@@ -93,7 +95,9 @@ var PisellWalletPassCard = (props) => {
93
95
  beforeEdit,
94
96
  onConfirmEdit,
95
97
  originData,
96
- style = {}
98
+ style = {},
99
+ validDateBySchedule,
100
+ scheduleList
97
101
  } = props;
98
102
  (0, import_react.useEffect)(() => {
99
103
  document.body.id = "body";
@@ -182,6 +186,12 @@ var PisellWalletPassCard = (props) => {
182
186
  }
183
187
  setLastTap(now);
184
188
  };
189
+ const formatValidDate = (0, import_react.useMemo)(() => {
190
+ if (validDateBySchedule && scheduleList && (scheduleList == null ? void 0 : scheduleList.length) > 0) {
191
+ 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);
192
+ }
193
+ 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"));
194
+ }, [validDateBySchedule, scheduleList, validDate]);
185
195
  const _onConfirmEdit = () => {
186
196
  form.validateFields().then((values) => {
187
197
  var _a;
@@ -316,7 +326,7 @@ var PisellWalletPassCard = (props) => {
316
326
  useThousandsSeparator: true,
317
327
  value: discount
318
328
  }
319
- )) : /* @__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")))));
329
+ )) : /* @__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: showQrCode && !isMini ? 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))));
320
330
  };
321
331
  const getInputItem = (name2) => {
322
332
  if ("validDate" === name2) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
2
3
  export default SelectHolderMultiple;
@@ -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 { ExportImportType } from '../../../types';
2
3
  import './index.less';
3
4
  declare type ExportImportProps = {
@@ -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 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: {
@@ -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 { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AmountProps, RightItemsStyleProps } from './types';
2
3
  import './index.less';
3
4
  export type { AmountProps, RightItemsStyleProps };
@@ -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;
@@ -156,6 +156,7 @@ var en_US_default = {
156
156
  "pisell-wallet-pass-card-redeem": "Redeem",
157
157
  "pisell-wallet-pass-card-code": "Code",
158
158
  "pisell-wallet-pass-card-valid-to": "Valid to",
159
+ "pisell-wallet-pass-card-valid": "Valid",
159
160
  "pisell-wallet-pass-card-confirm": "Confirm",
160
161
  "pisell-wallet-pass-card-cancel": "Cancel",
161
162
  "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;
@@ -156,6 +156,7 @@ var zh_CN_default = {
156
156
  "pisell-wallet-pass-card-redeem": "兑换",
157
157
  "pisell-wallet-pass-card-code": "识别码编号",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
+ "pisell-wallet-pass-card-valid": "有效期",
159
160
  "pisell-wallet-pass-card-confirm": "确认",
160
161
  "pisell-wallet-pass-card-cancel": "取消",
161
162
  "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;
@@ -156,6 +156,7 @@ var zh_TW_default = {
156
156
  "pisell-wallet-pass-card-redeem": "兌換",
157
157
  "pisell-wallet-pass-card-code": "識別碼編號",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
+ "pisell-wallet-pass-card-valid": "有效期",
159
160
  "pisell-wallet-pass-card-confirm": "確認",
160
161
  "pisell-wallet-pass-card-cancel": "取消",
161
162
  "pisell-wallet-pass-card-required": "此欄位為必填",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.3.12",
3
+ "version": "6.3.14",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -72,9 +72,9 @@
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
74
  "react-camera-pro": "1.4.0",
75
- "@pisell/date-picker": "3.0.4",
76
- "@pisell/icon": "0.0.11",
77
- "@pisell/utils": "3.0.1"
75
+ "@pisell/date-picker": "3.0.5",
76
+ "@pisell/utils": "3.0.2",
77
+ "@pisell/icon": "0.0.11"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": "^18.0.0",
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- import { ValueProps, SortType } from '../types';
3
- declare type IdType = string | number;
4
- declare type TreeItemProps = {
5
- id: string | number;
6
- key: string | number;
7
- item: ValueProps | any;
8
- depth: number;
9
- lists: any[];
10
- childrenProps?: SortType;
11
- sensors?: any;
12
- expandedKeys?: IdType[];
13
- setExpandedKeys?: any;
14
- onSelectKeys?: (ids: IdType) => void;
15
- onChange?: (value: any[]) => void;
16
- };
17
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
- export default TreeItem;