@pisell/private-materials 3.4.51 → 3.4.53

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 (128) 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 +2 -2
  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 +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/booking/addons/model.d.ts +10 -1
  12. package/es/components/booking/forms/model.d.ts +10 -1
  13. package/es/components/booking/info/model.d.ts +10 -1
  14. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/model.d.ts +9 -1
  17. package/es/components/booking/notes/model.d.ts +10 -1
  18. package/es/components/booking/payments/model.d.ts +10 -1
  19. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  20. package/es/components/eftposPay/payo/config.js +70 -32
  21. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  22. package/es/components/eftposPay/payo/payment.js +579 -0
  23. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  24. package/es/components/eftposPay/utils/log/index.js +371 -0
  25. package/es/components/index.d.ts +2 -1
  26. package/es/components/index.js +2 -1
  27. package/es/components/pay/toC/model.d.ts +9 -1
  28. package/es/components/schedules/model.d.ts +9 -1
  29. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  30. package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
  31. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  32. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  33. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  34. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  35. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  36. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  37. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  38. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  39. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  40. package/es/components/systemSettings/registry/components/index.js +4 -0
  41. package/es/components/systemSettings/registry/index.d.ts +5 -0
  42. package/es/components/systemSettings/registry/index.js +1059 -0
  43. package/es/components/systemSettings/registry/index.less +410 -0
  44. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  45. package/es/components/systemSettings/registry/locales.js +300 -0
  46. package/es/components/systemSettings/registry/services.d.ts +77 -0
  47. package/es/components/systemSettings/registry/services.js +472 -0
  48. package/es/components/systemSettings/registry/types.d.ts +126 -0
  49. package/es/components/systemSettings/registry/types.js +1 -0
  50. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  51. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  52. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  53. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  54. package/es/components/wallet/Detail/model.d.ts +13 -1
  55. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  56. package/es/components/wallet/PointCard/model.d.ts +13 -1
  57. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  58. package/es/components/wallet/Voucher/model.d.ts +13 -1
  59. package/es/components/wallet/model.d.ts +9 -1
  60. package/es/index.d.ts +2 -0
  61. package/es/index.js +3 -1
  62. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  63. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  64. package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
  65. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  66. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  67. package/es/plus/walletPassGallery/index.js +3 -1
  68. package/es/pro/Login2.0/index.less +15 -8
  69. package/lib/components/booking/addons/model.d.ts +10 -1
  70. package/lib/components/booking/forms/model.d.ts +10 -1
  71. package/lib/components/booking/info/model.d.ts +10 -1
  72. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  73. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  74. package/lib/components/booking/model.d.ts +9 -1
  75. package/lib/components/booking/notes/model.d.ts +10 -1
  76. package/lib/components/booking/payments/model.d.ts +10 -1
  77. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  78. package/lib/components/eftposPay/payo/config.js +98 -73
  79. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  80. package/lib/components/eftposPay/payo/payment.js +357 -0
  81. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  82. package/lib/components/eftposPay/utils/log/index.js +294 -0
  83. package/lib/components/index.d.ts +2 -1
  84. package/lib/components/index.js +3 -0
  85. package/lib/components/pay/toC/model.d.ts +9 -1
  86. package/lib/components/schedules/model.d.ts +9 -1
  87. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  88. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  89. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  90. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  91. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  92. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  93. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  94. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  95. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  96. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  97. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  98. package/lib/components/systemSettings/registry/components/index.js +48 -0
  99. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  100. package/lib/components/systemSettings/registry/index.js +529 -0
  101. package/lib/components/systemSettings/registry/index.less +410 -0
  102. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  103. package/lib/components/systemSettings/registry/locales.js +324 -0
  104. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  105. package/lib/components/systemSettings/registry/services.js +290 -0
  106. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  107. package/lib/components/systemSettings/registry/types.js +17 -0
  108. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  109. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  110. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  111. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  112. package/lib/components/wallet/Detail/model.d.ts +13 -1
  113. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  114. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  115. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  116. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  117. package/lib/components/wallet/model.d.ts +9 -1
  118. package/lib/index.d.ts +2 -0
  119. package/lib/index.js +6 -0
  120. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  121. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  122. package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
  123. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  124. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  125. package/lib/plus/walletPassGallery/index.js +3 -1
  126. package/lib/pro/Login2.0/index.less +15 -8
  127. package/lowcode/settings-registry/meta.ts +29 -0
  128. package/package.json +4 -4
@@ -0,0 +1,54 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/systemSettings/registry/utils/validators.ts
20
+ var validators_exports = {};
21
+ __export(validators_exports, {
22
+ createPrefixedAppIdentifierValidator: () => createPrefixedAppIdentifierValidator
23
+ });
24
+ module.exports = __toCommonJS(validators_exports);
25
+ var createPrefixedAppIdentifierValidator = (sectionCode) => {
26
+ return (_, value) => {
27
+ if (!value) {
28
+ return Promise.resolve();
29
+ }
30
+ const expectedPrefix = `${sectionCode}.`;
31
+ if (!value.startsWith(expectedPrefix)) {
32
+ return Promise.reject(new Error(`键必须以 "${expectedPrefix}" 开头`));
33
+ }
34
+ const remainingPart = value.substring(expectedPrefix.length);
35
+ if (!remainingPart) {
36
+ return Promise.reject(new Error("键不能只包含前缀"));
37
+ }
38
+ const validPattern = /^[a-z0-9._]+$/;
39
+ if (!validPattern.test(remainingPart)) {
40
+ return Promise.reject(new Error("键只能包含小写字母、数字、点、下划线"));
41
+ }
42
+ if (remainingPart.startsWith(".") || remainingPart.startsWith("_") || remainingPart.endsWith(".") || remainingPart.endsWith("_")) {
43
+ return Promise.reject(new Error("键不能以点或下划线开头或结尾"));
44
+ }
45
+ if (remainingPart.includes("..") || remainingPart.includes("__") || remainingPart.includes("._") || remainingPart.includes("_.")) {
46
+ return Promise.reject(new Error("键不能包含连续的点或下划线"));
47
+ }
48
+ return Promise.resolve();
49
+ };
50
+ };
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ createPrefixedAppIdentifierValidator
54
+ });
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
package/lib/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { default as TaxSelect } from './components/taxSelect';
22
22
  export { default as EftposPay } from './components/eftposPay';
23
23
  export { default as ToCPay } from './components/pay/toC';
24
24
  export { default as Eftpos } from './components/eftpos';
25
+ export { default as Wallet } from './components/wallet';
25
26
  export { default as WalletList } from './components/walletList';
26
27
  export { default as BookingDashboard } from './components/booking/dashboard';
27
28
  export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
@@ -56,3 +57,4 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
56
57
  export { Login2, Register2, AuthModal } from './pro/Login2.0';
57
58
  export { default as WalletEditor } from './plus/walletEditor';
58
59
  export { default as WalletPassGallery } from './plus/walletPassGallery';
60
+ export { default as SettingsRegistry } from './components/systemSettings/registry';
package/lib/index.js CHANGED
@@ -82,6 +82,7 @@ __export(src_exports, {
82
82
  SaasLogin: () => import_saasLogin.default,
83
83
  SaasRegister: () => import_saasRegister.default,
84
84
  Schedules: () => import_schedules.default,
85
+ SettingsRegistry: () => import_registry.default,
85
86
  ShoppingCart: () => import_shoppingCart.default,
86
87
  StepController: () => import_stepController.default,
87
88
  SubTotal: () => import_subTotal.default,
@@ -90,6 +91,7 @@ __export(src_exports, {
90
91
  ToCPay: () => import_toC.default,
91
92
  VerticalAddService: () => import_addServiceVariant.default,
92
93
  VerticalClient: () => import_clientVariant.VerticalClient,
94
+ Wallet: () => import_wallet.default,
93
95
  WalletEditor: () => import_walletEditor.default,
94
96
  WalletList: () => import_walletList.default,
95
97
  WalletPassGallery: () => import_walletPassGallery.default,
@@ -123,6 +125,7 @@ var import_taxSelect = __toESM(require("./components/taxSelect"));
123
125
  var import_eftposPay = __toESM(require("./components/eftposPay"));
124
126
  var import_toC = __toESM(require("./components/pay/toC"));
125
127
  var import_eftpos = __toESM(require("./components/eftpos"));
128
+ var import_wallet = __toESM(require("./components/wallet"));
126
129
  var import_walletList = __toESM(require("./components/walletList"));
127
130
  var import_dashboard = __toESM(require("./components/booking/dashboard"));
128
131
  var import_pisellSelectCustomerModal = __toESM(require("./components/pisellSelectCustomerModal"));
@@ -156,6 +159,7 @@ var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
156
159
  var import_Login2 = require("./pro/Login2.0");
157
160
  var import_walletEditor = __toESM(require("./plus/walletEditor"));
158
161
  var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
162
+ var import_registry = __toESM(require("./components/systemSettings/registry"));
159
163
  import_dayjs.default.extend(import_weekday.default);
160
164
  import_dayjs.default.extend(import_localeData.default);
161
165
  // Annotate the CommonJS export names for ESM import in node:
@@ -213,6 +217,7 @@ import_dayjs.default.extend(import_localeData.default);
213
217
  SaasLogin,
214
218
  SaasRegister,
215
219
  Schedules,
220
+ SettingsRegistry,
216
221
  ShoppingCart,
217
222
  StepController,
218
223
  SubTotal,
@@ -221,6 +226,7 @@ import_dayjs.default.extend(import_localeData.default);
221
226
  ToCPay,
222
227
  VerticalAddService,
223
228
  VerticalClient,
229
+ Wallet,
224
230
  WalletEditor,
225
231
  WalletList,
226
232
  WalletPassGallery,
@@ -160,13 +160,13 @@ var FooterButtons = ({
160
160
  )
161
161
  );
162
162
  }
163
- const buttonCount = buttons.length;
164
- const className = `pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-${buttonCount}`;
163
+ const className = `pisell-wallet-pass-gallery_footer-buttons`;
165
164
  return buttons.length > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className }, buttons) : null;
166
165
  };
167
166
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_footer" }, renderButtons()), /* @__PURE__ */ import_react.default.createElement(
168
167
  import_materials.PisellModal,
169
168
  {
169
+ destroyOnClose: true,
170
170
  platform,
171
171
  mobileModalHeight: "auto",
172
172
  headerDivider: false,
@@ -1,83 +1,38 @@
1
1
  .pisell-wallet-pass-gallery_footer {
2
2
  position: relative;
3
- left: 0;
4
- right: 0;
5
- bottom: 0;
6
3
  background-color: #fff;
7
4
  padding: 24px;
8
5
  z-index: 100;
9
6
  border-top: 1px solid #d0d5de;
10
- margin-left: -20px;
11
- margin-right: -20px;
7
+ margin-left: -24px;
8
+ margin-right: -24px;
12
9
  &-buttons {
13
10
  display: flex;
14
11
  gap: 12px;
15
12
  width: 100%;
16
13
 
17
-
18
- .pisell-wallet-pass-gallery_footer-buttons-item-secondary{
19
- overflow: hidden;
20
- display: flex;
21
- >span{
22
- display: block;
23
- // width: 100%;
24
- flex:1;
14
+ .pisell-wallet-pass-gallery_footer-buttons-item-secondary {
15
+ overflow: hidden;
16
+ display: inline-block;
25
17
  white-space: nowrap;
26
18
  overflow: hidden;
27
19
  text-overflow: ellipsis;
28
20
  text-wrap: nowrap;
29
- }
30
- }
31
-
32
-
33
- // 按钮数量样式
34
- // 单个按钮占满宽度
35
- &-count-1 {
36
- .pisell-wallet-pass-gallery_footer-buttons-item {
37
- flex: 1;
38
- width: 100%;
39
- }
40
- }
41
-
42
- // 两个按钮各占一半
43
- &-count-2 {
44
- .pisell-wallet-pass-gallery_footer-buttons-item {
45
- flex: 1;
46
- width: calc(50% - 6px);
21
+ > span {
22
+ display: inline;
47
23
  }
48
24
  }
49
-
50
- // 三个按钮各占三分之一
51
- &-count-3 {
52
- .pisell-wallet-pass-gallery_footer-buttons-item {
53
- flex: 1;
54
- width: calc(33.33% - 8px);
55
- }
56
- }
57
-
58
- // 四个按钮各占四分之一
59
- &-count-4 {
60
- .pisell-wallet-pass-gallery_footer-buttons-item {
61
- flex: 1;
62
- width: calc(25% - 9px);
63
- }
64
- }
65
-
66
- // Ant Design按钮覆盖样式
67
- :global(.ant-btn) {
68
- height: 48px;
69
- border-radius: 6px;
70
- font-size: 16px;
71
- font-weight: 500;
72
- width: 100%;
25
+
26
+ .pisell-wallet-pass-gallery_footer-buttons-item {
27
+ flex-grow: 1;
73
28
  }
74
-
29
+
75
30
  &-item {
76
31
  // 修饰符:主按钮
77
32
  &-primary {
78
- background-color: var(--theme-color, #7F56D9);
33
+ background-color: var(--theme-color, #7f56d9);
79
34
  }
80
-
35
+
81
36
  // 修饰符:次按钮
82
37
  &-secondary {
83
38
  background-color: #fff;
@@ -90,4 +45,4 @@
90
45
 
91
46
  .pisell-wallet-pass-gallery_footer:empty {
92
47
  display: none;
93
- }
48
+ }
@@ -202,7 +202,10 @@ var PassDetail = (props) => {
202
202
  {
203
203
  className: (0, import_classnames.default)(
204
204
  `pisell-wallet-pass-gallery_detail`,
205
- `pisell-wallet-pass-gallery_detail-${platform}`
205
+ `pisell-wallet-pass-gallery_detail-${platform}`,
206
+ {
207
+ [`pisell-wallet-pass-gallery_detail-with-footer`]: platform === "h5" && tag === "gift_card"
208
+ }
206
209
  )
207
210
  },
208
211
  /* @__PURE__ */ import_react.default.createElement(
@@ -18,6 +18,10 @@
18
18
  padding: 20px 0px;
19
19
  }
20
20
 
21
+ &-with-footer {
22
+ height: calc(100% - 90px);
23
+ }
24
+
21
25
  .pisell-wallet-pass-gallery_detail-content {
22
26
  overflow-y: auto;
23
27
  height: 100%;
@@ -51,6 +51,7 @@ var Recharge = ({
51
51
  const { action, storage } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
52
52
  const dvaStore = (_e = (_d = (_c = (_b = context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getState();
53
53
  const shop = ((_g = (_f = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _f.core) == null ? void 0 : _g.shop) || {};
54
+ const [loading, setLoading] = (0, import_react.useState)(false);
54
55
  (0, import_react.useEffect)(() => {
55
56
  if (detailData) {
56
57
  setChargeItem(((detailData == null ? void 0 : detailData.gift_option) || [])[0]);
@@ -59,6 +60,7 @@ var Recharge = ({
59
60
  const handleRecharge = async () => {
60
61
  var _a2;
61
62
  try {
63
+ setLoading(true);
62
64
  const params = {
63
65
  voucher_id: (detailData == null ? void 0 : detailData.id) || "",
64
66
  product_id: (detailData == null ? void 0 : detailData.product_id) || "",
@@ -87,11 +89,14 @@ var Recharge = ({
87
89
  import_utils.locales.getText("wallet-pass-gallery.log.rechargeOrderFailed"),
88
90
  error
89
91
  );
92
+ } finally {
93
+ setLoading(false);
90
94
  }
91
95
  };
92
96
  return /* @__PURE__ */ import_react.default.createElement(
93
97
  import_antd.Drawer,
94
98
  {
99
+ destroyOnClose: true,
95
100
  title: import_utils.locales.getText("wallet-pass-gallery.rechargeOptions"),
96
101
  open,
97
102
  zIndex: 999,
@@ -105,7 +110,8 @@ var Recharge = ({
105
110
  block: true,
106
111
  size: "large",
107
112
  onClick: handleRecharge,
108
- disabled: !(chargeItem == null ? void 0 : chargeItem.id)
113
+ disabled: !(chargeItem == null ? void 0 : chargeItem.id),
114
+ loading
109
115
  },
110
116
  import_utils.locales.getText("wallet-pass-gallery.recharge")
111
117
  )
@@ -440,7 +440,9 @@ var WalletPassGallery = (props) => {
440
440
  ), /* @__PURE__ */ import_react.default.createElement(
441
441
  import_materials.PisellModal,
442
442
  {
443
- platform: "h5",
443
+ zIndex: 997,
444
+ destroyOnClose: true,
445
+ platform,
444
446
  visible: !!_currentItem,
445
447
  onCancel: () => setCurrentItemId(""),
446
448
  footer: null,
@@ -15,6 +15,14 @@
15
15
 
16
16
  /* 默认底部内边距 */
17
17
  padding-bottom: 24px;
18
+
19
+ // 加载状态优化
20
+ .pisell-lowcode-btn-loading-icon {
21
+ .anticon {
22
+ color: #ffffff !important;
23
+ }
24
+ }
25
+
18
26
 
19
27
  /* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
20
28
  .pisell-lowcode-modal-body & {
@@ -462,6 +470,13 @@
462
470
  .login-lm-drawer-popover & {
463
471
  padding-bottom: 100px;
464
472
  }
473
+ // 加载状态优化
474
+ .pisell-lowcode-btn-loading-icon {
475
+ .anticon {
476
+ color: #ffffff !important;
477
+ }
478
+ }
479
+
465
480
  }
466
481
 
467
482
  // 错误提示样式优化
@@ -521,14 +536,6 @@
521
536
  // }
522
537
  // }
523
538
  // }
524
-
525
- // 加载状态优化
526
- .pisell-lowcode-btn-loading-icon {
527
- .anticon {
528
- color: #ffffff !important;
529
- }
530
- }
531
-
532
539
  // 切换认证方式按钮
533
540
  .login2-switch-button {
534
541
  margin-top: 0;
@@ -0,0 +1,29 @@
1
+ import { ComponentMetadata } from '@alilc/lowcode-types';
2
+
3
+
4
+ const SettingsRegistryMeta: ComponentMetadata = {
5
+ componentName: 'SettingsRegistry',
6
+ title: 'SettingsRegistry',
7
+ docUrl: '',
8
+ screenshot: '',
9
+ category: '表单',
10
+ devMode: 'proCode',
11
+ npm: {
12
+ package: '@pisell/private-materials',
13
+ version: '1.0.0',
14
+ exportName: 'SettingsRegistry',
15
+ main: 'src/index.ts',
16
+ destructuring: true,
17
+ subName: '',
18
+ },
19
+ props: [],
20
+ configure: {
21
+ component: {
22
+ isContainer: false,
23
+ },
24
+ },
25
+ };
26
+
27
+ export default {
28
+ ...SettingsRegistryMeta,
29
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.51",
3
+ "version": "3.4.53",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -61,10 +61,10 @@
61
61
  "decimal.js": "^10.4.3",
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
- "@pisell/utils": "3.0.1",
65
- "@pisell/materials": "3.3.68",
64
+ "@pisell/materials": "3.3.69",
65
+ "@pisell/date-picker": "3.0.3",
66
66
  "@pisell/icon": "0.0.11",
67
- "@pisell/date-picker": "3.0.3"
67
+ "@pisell/utils": "3.0.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",