@pisell/materials 3.3.69 → 3.3.71

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 (178) 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 +7 -7
  6. package/build/lowcode/render/default/view.js +15 -15
  7. package/build/lowcode/view.js +7 -7
  8. package/es/components/appVersionControl/index.d.ts +1 -0
  9. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +17 -13
  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 +1 -1
  13. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/index.d.ts +9 -8
  19. package/es/components/date-picker/index.d.ts +1 -0
  20. package/es/components/pisell-config-provider/index.js +0 -1
  21. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  22. package/es/components/pisellCardList/index.d.ts +4 -0
  23. package/es/components/pisellCardList/index.js +5 -1
  24. package/es/components/pisellDatePicker/index.d.ts +1 -0
  25. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  26. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  27. package/es/components/pisellModal/components/index.d.ts +1 -0
  28. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  29. package/es/components/pisellWalletPassCard/index.js +17 -4
  30. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  31. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  32. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  33. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  34. package/es/components/productCard/components/Time/index.d.ts +1 -0
  35. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  36. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  37. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  38. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  39. package/es/components/table/Actions/index.d.ts +1 -0
  40. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  41. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  42. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/index.d.ts +3 -2
  47. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  53. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  54. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  55. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  56. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  59. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  61. package/es/components/table/Table/utils.d.ts +1 -1
  62. package/es/components/versionSelect/index.d.ts +1 -0
  63. package/es/locales/en-US.d.ts +1 -0
  64. package/es/locales/en-US.js +1 -0
  65. package/es/locales/zh-CN.d.ts +1 -0
  66. package/es/locales/zh-CN.js +1 -0
  67. package/es/locales/zh-TW.d.ts +1 -0
  68. package/es/locales/zh-TW.js +1 -0
  69. package/lib/components/appVersionControl/index.d.ts +1 -0
  70. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +12 -8
  71. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  72. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  73. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  74. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  75. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  76. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  77. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  78. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  79. package/lib/components/dataSourceComponents/fields/index.d.ts +9 -8
  80. package/lib/components/date-picker/index.d.ts +1 -0
  81. package/lib/components/pisell-config-provider/index.js +0 -1
  82. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  83. package/lib/components/pisellCardList/index.d.ts +4 -0
  84. package/lib/components/pisellCardList/index.js +5 -1
  85. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  86. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  87. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  88. package/lib/components/pisellModal/components/index.d.ts +1 -0
  89. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  90. package/lib/components/pisellWalletPassCard/index.js +12 -2
  91. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  92. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  93. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  94. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  95. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  96. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  97. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  98. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  99. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  100. package/lib/components/table/Actions/index.d.ts +1 -0
  101. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  102. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  103. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  104. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  105. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  106. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  107. package/lib/components/table/Table/fields/index.d.ts +3 -2
  108. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  109. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  110. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  111. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  112. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  113. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  114. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  115. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  116. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  117. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  118. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  119. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  120. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  121. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  122. package/lib/components/table/Table/utils.d.ts +1 -1
  123. package/lib/components/versionSelect/index.d.ts +1 -0
  124. package/lib/locales/en-US.d.ts +1 -0
  125. package/lib/locales/en-US.js +1 -0
  126. package/lib/locales/zh-CN.d.ts +1 -0
  127. package/lib/locales/zh-CN.js +1 -0
  128. package/lib/locales/zh-TW.d.ts +1 -0
  129. package/lib/locales/zh-TW.js +1 -0
  130. package/package.json +1 -1
  131. package/dist/umd/materials.min.css +0 -1
  132. package/dist/umd/materials.min.js +0 -1
  133. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  134. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  135. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  136. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  137. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  138. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  139. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -16
  140. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  141. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
  142. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
  143. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
  144. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  145. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  146. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  147. package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
  148. package/es/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
  149. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
  150. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
  151. package/es/components/drag-sort-tree/index.d.ts +0 -4
  152. package/es/components/login-and-register/index.d.ts +0 -82
  153. package/es/components/pisellQRScanner/index.d.ts +0 -24
  154. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  155. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  156. package/es/components/table/serve.d.ts +0 -13
  157. package/es/components/table/types.d.ts +0 -268
  158. package/es/components/tabs/index.d.ts +0 -17
  159. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -16
  160. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  161. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
  162. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
  163. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
  164. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  165. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  166. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  167. package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
  168. package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
  169. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
  170. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
  171. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  172. package/lib/components/login-and-register/index.d.ts +0 -82
  173. package/lib/components/pisellQRScanner/index.d.ts +0 -24
  174. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  175. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  176. package/lib/components/table/serve.d.ts +0 -13
  177. package/lib/components/table/types.d.ts +0 -268
  178. package/lib/components/tabs/index.d.ts +0 -17
@@ -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;
@@ -46,6 +46,7 @@ var import_utils = require("./utils");
46
46
  var import_serve = require("./serve");
47
47
  var import_urlUtils = require("./urlUtils");
48
48
  var import_index = require("./index.less");
49
+ var import_utils2 = require("@pisell/utils");
49
50
  var BaseForm = (0, import_react.forwardRef)(
50
51
  (props, ref) => {
51
52
  var _a;
@@ -113,14 +114,17 @@ var BaseForm = (0, import_react.forwardRef)(
113
114
  get == null ? void 0 : get.runAsync().then((res) => {
114
115
  var _a3, _b;
115
116
  const formattedValues = formatInitialValues ? formatInitialValues(res) : res;
116
- const fieldNames = new Set(((_a3 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a3.map((field) => field.name)) || []);
117
- const filteredValues = Object.keys(formattedValues).reduce((acc, key) => {
118
- if (fieldNames.has(key)) {
119
- acc[key] = formattedValues[key];
120
- }
121
- return acc;
122
- }, {});
123
- (_b = formRef.current) == null ? void 0 : _b.setFields((0, import_utils.transformFormObjToArrayWithUntouched)(filteredValues));
117
+ let values = formattedValues;
118
+ if ((0, import_utils2.isArr)(dataSource == null ? void 0 : dataSource.fields)) {
119
+ const fieldNames = new Set(((_a3 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a3.map((field) => field.name)) || []);
120
+ values = Object.keys(formattedValues).reduce((acc, key) => {
121
+ if (fieldNames.has(key)) {
122
+ acc[key] = formattedValues[key];
123
+ }
124
+ return acc;
125
+ }, {});
126
+ }
127
+ (_b = formRef.current) == null ? void 0 : _b.setFields((0, import_utils.transformFormObjToArrayWithUntouched)(values));
124
128
  });
125
129
  }
126
130
  }, [renderMode, dataSource]);
@@ -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?: {
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
54
54
  width: number;
55
55
  align: "center" | "left" | "right";
56
56
  fixed: false | "left" | "right";
57
- type: "button" | "link";
57
+ type: "link" | "button";
58
58
  items: OperationItem[];
59
59
  } | undefined;
60
60
  operationContent?: {
@@ -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;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -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;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -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>;
@@ -19,7 +20,7 @@ declare const formFieldMap: {
19
20
  Subdomain: import("react").FC<import("antd").InputProps & {
20
21
  onChange: (value: string) => void;
21
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "saas" | "xzero";
23
+ rootDomain: "custom" | "xzero" | "saas";
23
24
  customDomain?: string | undefined;
24
25
  value?: string | undefined;
25
26
  tenantId: string;
@@ -59,13 +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<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  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> & {
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> & {
69
68
  JSON: import("react").FC<any>;
70
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
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>;
@@ -78,14 +77,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
77
  Subdomain: import("react").FC<import("antd").InputProps & {
79
78
  onChange: (value: string) => void;
80
79
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
80
+ rootDomain: "custom" | "xzero" | "saas";
82
81
  customDomain?: string | undefined;
83
82
  value?: string | undefined;
84
83
  tenantId: string;
85
84
  name?: string | undefined;
86
85
  fieldKey?: string | undefined;
87
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
+ }) | (import("react").FC<{}> & {
89
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
89
  } & {
91
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
96
  extraParams?: Record<string, any> | undefined;
98
97
  } & {
99
98
  dataSource?: any;
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>;
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 & {
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>;
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;
@@ -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 { 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;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -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: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: string;
201
+ default_value: boolean;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: boolean;
206
+ default_value: string;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -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: {
@@ -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" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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;
@@ -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": "3.3.69",
3
+ "version": "3.3.71",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",