@pisell/materials 3.3.28 → 3.3.30

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 (109) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +14 -14
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +15 -15
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/index.d.ts +5 -4
  16. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  17. package/es/components/filter/index.d.ts +1 -0
  18. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  19. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  20. package/es/components/pisellGoodPassCard/index.d.ts +2 -0
  21. package/es/components/pisellGoodPassCard/index.js +14 -7
  22. package/es/components/pisellGoodPassCard/index.less +11 -2
  23. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  24. package/es/components/pisellLoading/index.d.ts +0 -1
  25. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -1
  26. package/es/components/productCard/components/Time/components/SelectHolder/index.js +31 -12
  27. package/es/components/productCard/components/Time/components/SelectHolder/index.less +27 -0
  28. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  29. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +157 -0
  30. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +39 -0
  31. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  32. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +144 -0
  33. package/es/components/productCard/components/Time/index.js +9 -4
  34. package/es/components/productCard/locales.d.ts +18 -0
  35. package/es/components/productCard/locales.js +27 -3
  36. package/es/components/select-time/index.d.ts +1 -0
  37. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  38. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  39. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  40. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  41. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  42. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  43. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  44. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  45. package/es/components/table/Actions/index.d.ts +1 -0
  46. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  49. package/es/components/table/Table/utils.d.ts +1 -1
  50. package/es/components/versionSelect/index.d.ts +1 -0
  51. package/es/components/walletCard/Guide/index.d.ts +4 -0
  52. package/es/components/walletCard/index.js +11 -3
  53. package/es/components/walletCard/index.less +2 -2
  54. package/es/locales/en-US.d.ts +1 -0
  55. package/es/locales/en-US.js +2 -1
  56. package/es/locales/zh-CN.d.ts +1 -0
  57. package/es/locales/zh-CN.js +2 -1
  58. package/es/locales/zh-TW.d.ts +1 -0
  59. package/es/locales/zh-TW.js +2 -1
  60. package/lib/components/batch-editor/index.d.ts +1 -0
  61. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  62. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  63. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  64. package/lib/components/dataSourceComponents/fields/index.d.ts +5 -4
  65. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  66. package/lib/components/filter/index.d.ts +1 -0
  67. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  68. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  69. package/lib/components/pisellGoodPassCard/index.d.ts +2 -0
  70. package/lib/components/pisellGoodPassCard/index.js +8 -6
  71. package/lib/components/pisellGoodPassCard/index.less +11 -2
  72. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  73. package/lib/components/pisellLoading/index.d.ts +0 -1
  74. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -1
  75. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +24 -7
  76. package/lib/components/productCard/components/Time/components/SelectHolder/index.less +27 -0
  77. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  78. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +177 -0
  79. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +39 -0
  80. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  81. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +152 -0
  82. package/lib/components/productCard/components/Time/index.js +11 -4
  83. package/lib/components/productCard/locales.d.ts +18 -0
  84. package/lib/components/productCard/locales.js +21 -3
  85. package/lib/components/select-time/index.d.ts +1 -0
  86. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  87. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  88. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  89. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  90. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  91. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  92. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  93. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  94. package/lib/components/table/Actions/index.d.ts +1 -0
  95. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  96. package/lib/components/table/Table/fields/index.d.ts +1 -0
  97. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  98. package/lib/components/table/Table/utils.d.ts +1 -1
  99. package/lib/components/versionSelect/index.d.ts +1 -0
  100. package/lib/components/walletCard/Guide/index.d.ts +4 -0
  101. package/lib/components/walletCard/index.js +15 -1
  102. package/lib/components/walletCard/index.less +2 -2
  103. package/lib/locales/en-US.d.ts +1 -0
  104. package/lib/locales/en-US.js +2 -1
  105. package/lib/locales/zh-CN.d.ts +1 -0
  106. package/lib/locales/zh-CN.js +2 -1
  107. package/lib/locales/zh-TW.d.ts +1 -0
  108. package/lib/locales/zh-TW.js +2 -1
  109. package/package.json +1 -1
@@ -40,8 +40,14 @@ var locales_default = {
40
40
  "pisell2.product.card.view-less": "View less",
41
41
  "pisell2.product.card.add.holder.button.text": (val) => `Add ${val || ""}`,
42
42
  "pisell2.product.card.add.holder.placeholder": (val) => `Please select ${val || ""}`,
43
+ "pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `Please Select ${num} ${val || ""}`,
44
+ "pisell2.product.card.add.holder.modal.title.1": `Please Select`,
43
45
  "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
44
- "pisell2.product.card.sales": "Sales"
46
+ "pisell2.product.card.sales": "Sales",
47
+ "pisell2.product.card.add.holder.modal.cancel": "Cancel",
48
+ "pisell2.product.card.add.holder.modal.clear": "Clear",
49
+ "pisell2.product.card.add.holder.modal.apply": "Apply",
50
+ "pisell2.product.card.add.holder.modal.add": "Add New"
45
51
  },
46
52
  "zh-CN": {
47
53
  "pisell2.product.card.edit": "编辑",
@@ -60,8 +66,14 @@ var locales_default = {
60
66
  "pisell2.product.card.view-less": "收起",
61
67
  "pisell2.product.card.add.holder.button.text": (val) => `添加${val || ""}`,
62
68
  "pisell2.product.card.add.holder.placeholder": (val) => `请选择${val || ""}`,
69
+ "pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `请选择${num}${val || ""}`,
70
+ "pisell2.product.card.add.holder.modal.title.1": `请选择`,
63
71
  "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
64
- "pisell2.product.card.sales": "销售"
72
+ "pisell2.product.card.sales": "销售",
73
+ "pisell2.product.card.add.holder.modal.cancel": "取消",
74
+ "pisell2.product.card.add.holder.modal.clear": "清除",
75
+ "pisell2.product.card.add.holder.modal.apply": "应用",
76
+ "pisell2.product.card.add.holder.modal.add": "添加"
65
77
  },
66
78
  "zh-HK": {
67
79
  "pisell2.product.card.edit": "編輯",
@@ -80,7 +92,13 @@ var locales_default = {
80
92
  "pisell2.product.card.view-less": "收起",
81
93
  "pisell2.product.card.add.holder.button.text": (val) => `添加${val || ""}`,
82
94
  "pisell2.product.card.add.holder.placeholder": (val) => `請選擇${val || ""}`,
95
+ "pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `請選擇${num}${val || ""}`,
96
+ "pisell2.product.card.add.holder.modal.title.1": `請選擇`,
83
97
  "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
84
- "pisell2.product.card.sales": "銷售"
98
+ "pisell2.product.card.sales": "銷售",
99
+ "pisell2.product.card.add.holder.modal.cancel": "取消",
100
+ "pisell2.product.card.add.holder.modal.clear": "清除",
101
+ "pisell2.product.card.add.holder.modal.apply": "應用",
102
+ "pisell2.product.card.add.holder.modal.add": "添加"
85
103
  }
86
104
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  import "./index.less";
@@ -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 const ExportFile: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare const ExportTable: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ImportLog: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare type ImportTableProps = {
@@ -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 './PopoverContent.less';
2
3
  declare type FieldType = string | number;
3
4
  export declare type GroupValue = {
@@ -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,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
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "group_by" | "order_by" | "gallery_setting" | "view_mode" | "filter_setting")[];
158
+ }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "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 {
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Guide: (props: any) => JSX.Element;
4
+ export default Guide;
@@ -261,6 +261,7 @@ var CodeModal = ({ isOpen, onClose, codeType, cardNo, platform }) => {
261
261
  );
262
262
  };
263
263
  var WalletCard = (props) => {
264
+ var _a;
264
265
  const mergedProps = { ...DEFAULT_PROPS, ...props };
265
266
  const {
266
267
  symbol,
@@ -294,14 +295,27 @@ var WalletCard = (props) => {
294
295
  codeType
295
296
  );
296
297
  const backgroundStyle = (0, import_react.useMemo)(() => {
298
+ var _a2;
297
299
  if (props.customBackgroundImage) {
298
300
  return { backgroundImage: `url(${props.customBackgroundImage})` };
299
301
  } else {
302
+ if (((_a2 = props == null ? void 0 : props.walletGuideConfig) == null ? void 0 : _a2.backgroundColor) && isGuide || (props == null ? void 0 : props.backgroundColor) && !isLogin) {
303
+ return {
304
+ backgroundImage: "none"
305
+ };
306
+ }
300
307
  return {
301
308
  backgroundImage: `url(https://file.mypisell-dev.com/pisel/image/9/${mode === "dark" ? "3d039c83ff5b84fadafb8a23c33d6cc42025_02_26_00_42_53_288_08413160975__720_456__" : "61dcbe950c9451164a6bb1d17d5bc5f02025_02_26_00_43_42_741_04853453608__720_456__"}.png)`
302
309
  };
303
310
  }
304
- }, [props.customBackgroundImage, mode]);
311
+ }, [
312
+ props.customBackgroundImage,
313
+ mode,
314
+ (_a = props == null ? void 0 : props.walletGuideConfig) == null ? void 0 : _a.backgroundColor,
315
+ props == null ? void 0 : props.backgroundColor,
316
+ isLogin,
317
+ isGuide
318
+ ]);
305
319
  const goWallet = () => {
306
320
  if (!(items == null ? void 0 : items.length)) {
307
321
  return;
@@ -20,7 +20,7 @@
20
20
 
21
21
  // 暗色主题
22
22
  &.dark {
23
- background-color: #000;
23
+ background-color: transparent;
24
24
 
25
25
  .pisell-wallet-card-header-left {
26
26
  color: #fff;
@@ -39,7 +39,7 @@
39
39
 
40
40
  // 亮色主题
41
41
  &.light {
42
- background-color: #fff;
42
+ background-color: transparent;
43
43
 
44
44
  .pisell-wallet-card-header-left {
45
45
  color: #101828;
@@ -267,6 +267,7 @@ declare const _default: {
267
267
  'pisell-login-and-register-remember-me': string;
268
268
  'pisell-login-and-register-forgot-password': string;
269
269
  'pisell2.text.goodpass.product-vouchers': string;
270
+ 'pisell2.text.goodpass.last-settlement': string;
270
271
  'pisell2.text.goodpass.view-more': string;
271
272
  'pisell2.text.goodpass.save': string;
272
273
  };
@@ -319,7 +319,8 @@ var en_US_default = {
319
319
  "pisell-login-and-register-remember-me": "Remember me",
320
320
  "pisell-login-and-register-forgot-password": "Forgot password?",
321
321
  // 商品券组件
322
- "pisell2.text.goodpass.product-vouchers": "Product Vouchers",
322
+ "pisell2.text.goodpass.product-vouchers": "Promotions & Vouchers",
323
+ "pisell2.text.goodpass.last-settlement": "(Last payment)",
323
324
  "pisell2.text.goodpass.view-more": "View More",
324
325
  "pisell2.text.goodpass.save": "Save"
325
326
  };
@@ -262,6 +262,7 @@ declare const _default: {
262
262
  'pisell-login-and-register-remember-me': string;
263
263
  'pisell-login-and-register-forgot-password': string;
264
264
  'pisell2.text.goodpass.product-vouchers': string;
265
+ 'pisell2.text.goodpass.last-settlement': string;
265
266
  'pisell2.text.goodpass.view-more': string;
266
267
  'pisell2.text.goodpass.save': string;
267
268
  };
@@ -310,7 +310,8 @@ var zh_CN_default = {
310
310
  "pisell-login-and-register-remember-me": "记住我",
311
311
  "pisell-login-and-register-forgot-password": "忘记密码?",
312
312
  // 商品券
313
- "pisell2.text.goodpass.product-vouchers": "商品兑换券",
313
+ "pisell2.text.goodpass.product-vouchers": "优惠促销",
314
+ "pisell2.text.goodpass.last-settlement": "(上次结算)",
314
315
  "pisell2.text.goodpass.view-more": "查看更多",
315
316
  "pisell2.text.goodpass.save": "节省"
316
317
  };
@@ -262,6 +262,7 @@ declare const _default: {
262
262
  'pisell-login-and-register-remember-me': string;
263
263
  'pisell-login-and-register-forgot-password': string;
264
264
  'pisell2.text.goodpass.product-vouchers': string;
265
+ 'pisell2.text.goodpass.last-settlement': string;
265
266
  'pisell2.text.goodpass.view-more': string;
266
267
  'pisell2.text.goodpass.save': string;
267
268
  };
@@ -311,7 +311,8 @@ var zh_TW_default = {
311
311
  "pisell-login-and-register-register-button-text": "創建帳戶",
312
312
  "pisell-login-and-register-remember-me": "記住我",
313
313
  "pisell-login-and-register-forgot-password": "忘記密碼?",
314
- "pisell2.text.goodpass.product-vouchers": "商品兌換券",
314
+ "pisell2.text.goodpass.product-vouchers": "優惠促銷",
315
+ "pisell2.text.goodpass.last-settlement": "(上次結算)",
315
316
  "pisell2.text.goodpass.view-more": "查看更多",
316
317
  "pisell2.text.goodpass.save": "節省"
317
318
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "3.3.28",
3
+ "version": "3.3.30",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",