@pisell/private-materials 6.3.53 → 6.3.54

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 (146) 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 +146 -157
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -16
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -16
  11. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  12. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  13. package/es/components/booking/forms/table/index.d.ts +1 -0
  14. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  15. package/es/components/booking/info/service/like/index.d.ts +1 -0
  16. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  17. package/es/components/eftpos/form/index.d.ts +1 -0
  18. package/es/components/eftpos/group/index.d.ts +1 -0
  19. package/es/components/eftpos/hooks.d.ts +1 -0
  20. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  21. package/es/components/eftpos/icon/device.d.ts +1 -0
  22. package/es/components/eftpos/receipt/index.d.ts +1 -0
  23. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  24. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  25. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  26. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  27. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  28. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  29. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  30. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  31. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  32. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  33. package/es/components/index.d.ts +2 -1
  34. package/es/components/index.js +2 -1
  35. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  36. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  37. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  38. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  39. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  40. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  41. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  42. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  43. package/es/components/schedules/utils.d.ts +1 -1
  44. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  45. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  46. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  47. package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
  48. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  49. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  50. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  51. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  52. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  53. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  54. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  55. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  56. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  57. package/es/components/systemSettings/registry/components/index.js +4 -0
  58. package/es/components/systemSettings/registry/index.d.ts +5 -0
  59. package/es/components/systemSettings/registry/index.js +1059 -0
  60. package/es/components/systemSettings/registry/index.less +410 -0
  61. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  62. package/es/components/systemSettings/registry/locales.js +300 -0
  63. package/es/components/systemSettings/registry/services.d.ts +77 -0
  64. package/es/components/systemSettings/registry/services.js +472 -0
  65. package/es/components/systemSettings/registry/types.d.ts +126 -0
  66. package/es/components/systemSettings/registry/types.js +1 -0
  67. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  68. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  69. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  70. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  71. package/es/index.d.ts +1 -0
  72. package/es/index.js +1 -0
  73. package/es/plus/clientName/index.d.ts +1 -0
  74. package/es/pro/Login2.0/AuthModal.js +12 -4
  75. package/es/pro/Login2.0/index.less +3 -3
  76. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  77. package/es/utils/index.d.ts +1 -1
  78. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  79. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  80. package/lib/components/booking/forms/table/index.d.ts +1 -0
  81. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  82. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  83. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  84. package/lib/components/eftpos/form/index.d.ts +1 -0
  85. package/lib/components/eftpos/group/index.d.ts +1 -0
  86. package/lib/components/eftpos/hooks.d.ts +1 -0
  87. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  88. package/lib/components/eftpos/icon/device.d.ts +1 -0
  89. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  90. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  91. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  92. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  93. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  94. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  95. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  96. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  97. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  98. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  99. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  100. package/lib/components/index.d.ts +2 -1
  101. package/lib/components/index.js +3 -0
  102. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  103. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  104. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  105. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  106. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  107. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  108. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  109. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  110. package/lib/components/schedules/utils.d.ts +1 -1
  111. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  112. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  113. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  114. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  115. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  116. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  117. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  118. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  119. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  120. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  121. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  122. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  123. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  124. package/lib/components/systemSettings/registry/components/index.js +48 -0
  125. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  126. package/lib/components/systemSettings/registry/index.js +529 -0
  127. package/lib/components/systemSettings/registry/index.less +410 -0
  128. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  129. package/lib/components/systemSettings/registry/locales.js +324 -0
  130. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  131. package/lib/components/systemSettings/registry/services.js +290 -0
  132. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  133. package/lib/components/systemSettings/registry/types.js +17 -0
  134. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  135. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  136. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  137. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  138. package/lib/index.d.ts +1 -0
  139. package/lib/index.js +3 -0
  140. package/lib/plus/clientName/index.d.ts +1 -0
  141. package/lib/pro/Login2.0/AuthModal.js +15 -7
  142. package/lib/pro/Login2.0/index.less +3 -3
  143. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  144. package/lib/utils/index.d.ts +1 -1
  145. package/lowcode/settings-registry/meta.ts +29 -0
  146. package/package.json +2 -2
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { GroupModalProps } from '../types';
3
+ declare const GroupModal: React.FC<GroupModalProps>;
4
+ export default GroupModal;
@@ -0,0 +1,177 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/systemSettings/registry/components/GroupModal.tsx
30
+ var GroupModal_exports = {};
31
+ __export(GroupModal_exports, {
32
+ default: () => GroupModal_default
33
+ });
34
+ module.exports = __toCommonJS(GroupModal_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_materials = require("@pisell/materials");
38
+ var import_utils = require("@pisell/utils");
39
+ var import_locales = __toESM(require("../locales"));
40
+ var getText = (key) => {
41
+ const globalText = import_utils.locales.getText(key);
42
+ if (globalText !== key) {
43
+ return globalText;
44
+ }
45
+ const currentLocale = import_utils.locales.locale || "zh-CN";
46
+ const localeData = import_locales.default[currentLocale] || import_locales.default["en"] || {};
47
+ return localeData[key] || key;
48
+ };
49
+ var GroupModal = ({
50
+ open,
51
+ type,
52
+ data,
53
+ onOk,
54
+ onCancel
55
+ }) => {
56
+ const [form] = import_antd.Form.useForm();
57
+ (0, import_react.useEffect)(() => {
58
+ if (open) {
59
+ if (type === "edit" && data) {
60
+ form.setFieldsValue({
61
+ title: data.title,
62
+ code: data.code
63
+ });
64
+ } else {
65
+ form.resetFields();
66
+ }
67
+ }
68
+ }, [open, type, data, form]);
69
+ const handleOk = async () => {
70
+ try {
71
+ const values = await form.validateFields();
72
+ await onOk(values);
73
+ form.resetFields();
74
+ } catch (error) {
75
+ console.error("Validation failed:", error);
76
+ }
77
+ };
78
+ const handleCancel = () => {
79
+ form.resetFields();
80
+ onCancel();
81
+ };
82
+ const title = import_utils.locales.getText(
83
+ type === "add" ? "registry.modal.add.group" : "registry.modal.edit.group"
84
+ );
85
+ return /* @__PURE__ */ import_react.default.createElement(
86
+ import_antd.Drawer,
87
+ {
88
+ title,
89
+ open,
90
+ onClose: handleCancel,
91
+ width: 400,
92
+ destroyOnClose: true,
93
+ footer: /* @__PURE__ */ import_react.default.createElement("div", { style: { textAlign: "right" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: "small" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { onClick: handleCancel }, import_utils.locales.getText("registry.button.cancel")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", onClick: handleOk }, import_utils.locales.getText("registry.button.save"))))
94
+ },
95
+ /* @__PURE__ */ import_react.default.createElement(
96
+ import_antd.Form,
97
+ {
98
+ form,
99
+ layout: "vertical",
100
+ requiredMark: true
101
+ },
102
+ /* @__PURE__ */ import_react.default.createElement(
103
+ import_antd.Form.Item,
104
+ {
105
+ name: "title",
106
+ label: import_utils.locales.getText("registry.form.title"),
107
+ rules: [
108
+ {
109
+ required: true,
110
+ message: import_utils.locales.getText("registry.message.required")
111
+ }
112
+ ]
113
+ },
114
+ /* @__PURE__ */ import_react.default.createElement(
115
+ import_materials.BaseTranslation,
116
+ {
117
+ placeholder: import_utils.locales.getText("registry.form.name.placeholder")
118
+ }
119
+ )
120
+ ),
121
+ /* @__PURE__ */ import_react.default.createElement(
122
+ import_antd.Form.Item,
123
+ {
124
+ name: "code",
125
+ label: import_utils.locales.getText("registry.form.code"),
126
+ rules: [
127
+ {
128
+ required: true,
129
+ message: import_utils.locales.getText("registry.message.required")
130
+ },
131
+ {
132
+ validator: (_, value) => {
133
+ if (!value) return Promise.resolve();
134
+ if (!/^[a-z0-9\._]+$/.test(value)) {
135
+ return Promise.reject(
136
+ new Error(
137
+ getText("registry.message.code.format")
138
+ )
139
+ );
140
+ }
141
+ if (!/^[a-z]/.test(value)) {
142
+ return Promise.reject(
143
+ new Error(
144
+ getText("registry.message.code.start")
145
+ )
146
+ );
147
+ }
148
+ if (/[\._]$/.test(value)) {
149
+ return Promise.reject(
150
+ new Error(
151
+ getText("registry.message.code.end")
152
+ )
153
+ );
154
+ }
155
+ if (/[\.]{2,}|[\_]{2,}/.test(value)) {
156
+ return Promise.reject(
157
+ new Error(
158
+ getText("registry.message.code.consecutive")
159
+ )
160
+ );
161
+ }
162
+ return Promise.resolve();
163
+ }
164
+ }
165
+ ]
166
+ },
167
+ /* @__PURE__ */ import_react.default.createElement(
168
+ import_antd.Input,
169
+ {
170
+ placeholder: import_utils.locales.getText("registry.form.code.placeholder")
171
+ }
172
+ )
173
+ )
174
+ )
175
+ );
176
+ };
177
+ var GroupModal_default = GroupModal;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ItemModalProps } from '../types';
3
+ declare const ItemModal: React.FC<ItemModalProps>;
4
+ export default ItemModal;