@pisell/private-materials 6.7.1 → 6.7.3

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 (76) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/es/index.d.ts +1 -0
  12. package/es/index.js +2 -1
  13. package/es/plus/webPosLogin/WebPosLogin.d.ts +11 -0
  14. package/es/plus/webPosLogin/WebPosLogin.js +551 -0
  15. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  16. package/es/plus/webPosLogin/WebPosLoginCpt.js +170 -0
  17. package/es/plus/webPosLogin/WebPosLoginCpt.less +170 -0
  18. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  19. package/es/plus/webPosLogin/components/BrandPanel/index.js +52 -0
  20. package/es/plus/webPosLogin/components/BrandPanel/index.less +58 -0
  21. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  22. package/es/plus/webPosLogin/components/LoginPanel/index.js +73 -0
  23. package/es/plus/webPosLogin/components/LoginPanel/index.less +43 -0
  24. package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +28 -0
  25. package/es/plus/webPosLogin/components/SelectDevice/index.js +258 -0
  26. package/es/plus/webPosLogin/components/SelectDevice/index.less +167 -0
  27. package/es/plus/webPosLogin/components/SelectStore/index.d.ts +24 -0
  28. package/es/plus/webPosLogin/components/SelectStore/index.js +198 -0
  29. package/es/plus/webPosLogin/components/SelectStore/index.less +157 -0
  30. package/es/plus/webPosLogin/components/UserFooter/index.d.ts +28 -0
  31. package/es/plus/webPosLogin/components/UserFooter/index.js +110 -0
  32. package/es/plus/webPosLogin/components/UserFooter/index.less +70 -0
  33. package/es/plus/webPosLogin/index.d.ts +12 -0
  34. package/es/plus/webPosLogin/index.js +15 -0
  35. package/es/plus/webPosLogin/locales.d.ts +49 -0
  36. package/es/plus/webPosLogin/locales.js +57 -0
  37. package/es/plus/webPosLogin/service.d.ts +44 -0
  38. package/es/plus/webPosLogin/service.js +198 -0
  39. package/es/plus/webPosLogin/types.d.ts +286 -0
  40. package/es/plus/webPosLogin/types.js +1 -0
  41. package/es/pro/Login2.0/Login2.js +9 -3
  42. package/es/pro/Login2.0/index.less +0 -12
  43. package/lib/index.d.ts +1 -0
  44. package/lib/index.js +3 -0
  45. package/lib/plus/webPosLogin/WebPosLogin.d.ts +11 -0
  46. package/lib/plus/webPosLogin/WebPosLogin.js +331 -0
  47. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  48. package/lib/plus/webPosLogin/WebPosLoginCpt.js +170 -0
  49. package/lib/plus/webPosLogin/WebPosLoginCpt.less +170 -0
  50. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  51. package/lib/plus/webPosLogin/components/BrandPanel/index.js +63 -0
  52. package/lib/plus/webPosLogin/components/BrandPanel/index.less +58 -0
  53. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  54. package/lib/plus/webPosLogin/components/LoginPanel/index.js +98 -0
  55. package/lib/plus/webPosLogin/components/LoginPanel/index.less +43 -0
  56. package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +28 -0
  57. package/lib/plus/webPosLogin/components/SelectDevice/index.js +158 -0
  58. package/lib/plus/webPosLogin/components/SelectDevice/index.less +167 -0
  59. package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +24 -0
  60. package/lib/plus/webPosLogin/components/SelectStore/index.js +123 -0
  61. package/lib/plus/webPosLogin/components/SelectStore/index.less +157 -0
  62. package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +28 -0
  63. package/lib/plus/webPosLogin/components/UserFooter/index.js +91 -0
  64. package/lib/plus/webPosLogin/components/UserFooter/index.less +70 -0
  65. package/lib/plus/webPosLogin/index.d.ts +12 -0
  66. package/lib/plus/webPosLogin/index.js +56 -0
  67. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  68. package/lib/plus/webPosLogin/locales.js +77 -0
  69. package/lib/plus/webPosLogin/service.d.ts +44 -0
  70. package/lib/plus/webPosLogin/service.js +94 -0
  71. package/lib/plus/webPosLogin/types.d.ts +286 -0
  72. package/lib/plus/webPosLogin/types.js +17 -0
  73. package/lib/pro/Login2.0/Login2.js +19 -9
  74. package/lib/pro/Login2.0/index.less +0 -12
  75. package/lowcode/web-pos-login/meta.ts +71 -0
  76. package/package.json +4 -4
@@ -0,0 +1,44 @@
1
+ import { StoreItem } from './types';
2
+ interface IGetDeviceListParams {
3
+ type: string;
4
+ with: string[];
5
+ }
6
+ /**
7
+ * 获取设备列表
8
+ * @param params 查询参数
9
+ * @returns Promise<{list: any[], count: number}> 设备列表和总数
10
+ */
11
+ export declare const getDeviceList: (parmas: IGetDeviceListParams) => Promise<any[]>;
12
+ /**
13
+ * 选择店铺
14
+ * @param shopId 店铺ID
15
+ * @returns Promise<any> 选择店铺结果
16
+ */
17
+ export declare const selectShop: (shopId: string) => Promise<any>;
18
+ /**
19
+ * 获取租户详情
20
+ * @param deviceId 设备ID
21
+ * @returns Promise<any> 租户详情
22
+ */
23
+ export declare const getTenantDetail: () => Promise<any>;
24
+ /**
25
+ * 获取租户列表
26
+ * @returns Promise<any> 租户列表
27
+ */
28
+ export declare const getTenant: () => Promise<StoreItem[]>;
29
+ /**
30
+ * 选择设备
31
+ * @param deviceNumber 设备编号
32
+ * @returns Promise<any> 设备详情
33
+ */
34
+ export declare const selectDevice: (params: Record<string, any>) => Promise<any>;
35
+ /**
36
+ * 解除设备绑定
37
+ * @param deviceNumber 设备编号
38
+ * @returns Promise<any> 解除设备绑定结果
39
+ */
40
+ export declare const dissociateDevice: (params: {
41
+ number: string;
42
+ dissociateDeviceNumber: string;
43
+ }) => Promise<any>;
44
+ export {};
@@ -0,0 +1,94 @@
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/plus/webPosLogin/service.ts
20
+ var service_exports = {};
21
+ __export(service_exports, {
22
+ dissociateDevice: () => dissociateDevice,
23
+ getDeviceList: () => getDeviceList,
24
+ getTenant: () => getTenant,
25
+ getTenantDetail: () => getTenantDetail,
26
+ selectDevice: () => selectDevice,
27
+ selectShop: () => selectShop
28
+ });
29
+ module.exports = __toCommonJS(service_exports);
30
+ var import_utils = require("../../utils");
31
+ var getDeviceList = async (parmas) => {
32
+ try {
33
+ const { data } = await import_utils.request.getRequest().get(
34
+ `/shop/device/select`,
35
+ parmas,
36
+ {
37
+ cache: {
38
+ mode: "remote_local",
39
+ type: "indexDB"
40
+ }
41
+ }
42
+ );
43
+ return data || [];
44
+ } catch (error) {
45
+ console.error(error);
46
+ return [];
47
+ }
48
+ };
49
+ var selectShop = async (shopId) => {
50
+ const { data } = await import_utils.request.getRequest().get(
51
+ `/shop/account/choose-shop/${shopId}`,
52
+ {},
53
+ {
54
+ cache: {
55
+ mode: "remote_local",
56
+ type: "indexDB"
57
+ }
58
+ }
59
+ );
60
+ return data;
61
+ };
62
+ var getTenantDetail = async () => {
63
+ const { data } = await import_utils.request.getRequest().get(`/tenant/core`, {}, {
64
+ prefix: false
65
+ });
66
+ return data;
67
+ };
68
+ var getTenant = async () => {
69
+ const { data } = await import_utils.request.getRequest().get(`/account/auth/tenant`, {}, {
70
+ prefix: false
71
+ });
72
+ return data;
73
+ };
74
+ var selectDevice = async (params) => {
75
+ const { deviceNumber, ...rest } = params;
76
+ const { data } = await import_utils.request.getRequest().post(`/shop/device/${deviceNumber}/allocate`, rest);
77
+ return data;
78
+ };
79
+ var dissociateDevice = async (params) => {
80
+ const { number, dissociateDeviceNumber } = params;
81
+ const { data } = await import_utils.request.getRequest().post(`/shop/device/${dissociateDeviceNumber}/deactivate`, {
82
+ number
83
+ });
84
+ return data;
85
+ };
86
+ // Annotate the CommonJS export names for ESM import in node:
87
+ 0 && (module.exports = {
88
+ dissociateDevice,
89
+ getDeviceList,
90
+ getTenant,
91
+ getTenantDetail,
92
+ selectDevice,
93
+ selectShop
94
+ });
@@ -0,0 +1,286 @@
1
+ /**
2
+ * WebPosLogin 组件类型定义
3
+ * @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
4
+ */
5
+ /// <reference types="react" />
6
+ /**
7
+ * 店铺数据结构
8
+ * @description 从租户列表接口返回的店铺信息
9
+ */
10
+ export interface StoreItem {
11
+ /** 店铺ID */
12
+ id: number;
13
+ /** 租户ID */
14
+ tenant_id: number;
15
+ /** 账户ID */
16
+ account_id: number;
17
+ /** 类型 */
18
+ type: string;
19
+ /** 昵称 */
20
+ nickname: string;
21
+ /** 状态 */
22
+ status: string;
23
+ /** 创建时间 */
24
+ created_at?: string;
25
+ /** 更新时间 */
26
+ updated_at?: string;
27
+ /** 租户详情 */
28
+ tenant: {
29
+ /** 租户ID */
30
+ id: number;
31
+ /** 父租户ID */
32
+ tenant_id?: number;
33
+ /** 账户ID */
34
+ account_id?: number;
35
+ /** 类型 */
36
+ type?: string;
37
+ /** 名称(多语言) */
38
+ name: {
39
+ en?: string | null;
40
+ 'zh-CN'?: string | null;
41
+ 'zh-HK'?: string | null;
42
+ original: string;
43
+ };
44
+ /** Logo图片 */
45
+ logo?: string;
46
+ /** 图标 */
47
+ icon?: string;
48
+ /** Favicon */
49
+ favicon?: string;
50
+ /** 默认域名 */
51
+ default_domain: string;
52
+ /** 私有域名 */
53
+ private_domain?: string | null;
54
+ /** 货币代码 */
55
+ currency_code?: string | null;
56
+ /** 国家代码 */
57
+ country_code?: string | null;
58
+ /** 语言 */
59
+ locale?: string;
60
+ /** 时区 */
61
+ timezone?: string;
62
+ /** 状态 */
63
+ status?: string;
64
+ };
65
+ }
66
+ /**
67
+ * 设备客户端信息
68
+ * @description 设备绑定的客户端详情
69
+ */
70
+ export interface DeviceClient {
71
+ /** 客户端ID */
72
+ id: number;
73
+ /** 店铺ID */
74
+ shop_id: number;
75
+ /** 设备ID */
76
+ device_id: number;
77
+ /** 客户端编号 */
78
+ number: string;
79
+ /** 客户端名称 */
80
+ name: string;
81
+ /** 客户端类型 */
82
+ type: string;
83
+ /** 设备型号 */
84
+ model?: string;
85
+ /** 系统版本 */
86
+ version?: string;
87
+ /** 设备详细数据 */
88
+ data?: {
89
+ battery?: {
90
+ is_charging?: boolean;
91
+ visible_percent?: string;
92
+ };
93
+ hardware?: {
94
+ country?: string;
95
+ datetime?: string;
96
+ language?: string;
97
+ timezone?: string;
98
+ };
99
+ application?: {
100
+ name?: string;
101
+ type?: string;
102
+ version?: string;
103
+ language?: string;
104
+ bundle_id?: string;
105
+ };
106
+ connectivity?: {
107
+ ip?: string;
108
+ type?: string;
109
+ wifi_details?: any[];
110
+ };
111
+ };
112
+ /** 最后刷新时间 */
113
+ refreshed_at?: string;
114
+ /** 创建时间 */
115
+ created_at?: string;
116
+ /** 更新时间 */
117
+ updated_at?: string;
118
+ }
119
+ /**
120
+ * 设备数据结构
121
+ * @description 从设备列表接口返回的设备信息
122
+ */
123
+ export interface DeviceItem {
124
+ /** 设备ID */
125
+ id: number;
126
+ /** 店铺ID */
127
+ shop_id: number;
128
+ /** 设备类型 */
129
+ type: string;
130
+ /** 设备编号 */
131
+ number: string;
132
+ /** 设备名称 */
133
+ name: string;
134
+ /** 设备描述 */
135
+ description?: string;
136
+ /** 设备设置 */
137
+ setting?: any[];
138
+ /** 创建时间 */
139
+ created_at?: string;
140
+ /** 更新时间 */
141
+ updated_at?: string;
142
+ /** 绑定的客户端信息(null 表示未被使用) */
143
+ client?: DeviceClient | null;
144
+ }
145
+ /**
146
+ * 用户信息
147
+ * @description 当前登录用户的基本信息
148
+ */
149
+ export interface UserInfo {
150
+ /** 用户名称 */
151
+ name: string;
152
+ /** 用户头像 */
153
+ avatar?: string;
154
+ }
155
+ /**
156
+ * 品牌区轮播项
157
+ * @description 左侧品牌区的轮播内容配置
158
+ */
159
+ export interface CarouselItem {
160
+ /** 内容类型:图片或视频 */
161
+ type: 'image' | 'video';
162
+ /** 资源URL */
163
+ url: string;
164
+ }
165
+ /**
166
+ * 品牌区配置
167
+ * @description 左侧品牌展示区域的配置
168
+ */
169
+ export interface BrandConfig {
170
+ /** 轮播内容列表(图片/视频) */
171
+ carouselItems?: CarouselItem[];
172
+ /** 默认Logo(当无轮播时显示) */
173
+ logo?: string;
174
+ /** 品牌标语 */
175
+ slogan?: string;
176
+ }
177
+ /**
178
+ * 登录流程步骤
179
+ */
180
+ export declare type LoginStep = 'login' | 'store' | 'device';
181
+ /**
182
+ * 支持的语言类型
183
+ */
184
+ export declare type LocaleType = 'en' | 'zh-CN' | 'zh-HK';
185
+ /**
186
+ * WebPosLogin 主组件 Props
187
+ * @description WebPOS 登录组件的所有配置项
188
+ */
189
+ export interface WebPosLoginCptProps {
190
+ /** 自定义类名 */
191
+ className?: string;
192
+ /** 自定义样式 */
193
+ style?: React.CSSProperties;
194
+ /** 背景图片URL */
195
+ backgroundImage?: string;
196
+ /** 品牌区配置 */
197
+ brandConfig?: BrandConfig;
198
+ /** 当前步骤:login-登录 | store-店铺选择 | device-设备选择 */
199
+ step?: LoginStep;
200
+ /** 是否显示返回按钮(默认 true) */
201
+ showBackButton?: boolean;
202
+ /** 店铺列表数据 */
203
+ storeList?: StoreItem[];
204
+ /** 设备列表数据 */
205
+ deviceList?: DeviceItem[];
206
+ /** 当前用户信息 */
207
+ userInfo?: UserInfo;
208
+ /** 当前选中的店铺 */
209
+ selectedStore?: StoreItem;
210
+ /** 上次使用的店铺ID(用于显示 Last used 标签) */
211
+ lastUsedStoreId?: number;
212
+ /** 上次使用的设备ID(用于显示 Last used 标签) */
213
+ lastUsedDeviceId?: number;
214
+ /** 语言设置 */
215
+ locale?: LocaleType;
216
+ /** 加载状态 */
217
+ loading?: boolean;
218
+ /** 登录配置 */
219
+ loginConfig?: any;
220
+ /** 店铺选择回调 */
221
+ onStoreSelect?: (store: StoreItem) => void;
222
+ /** 设备选择回调 */
223
+ onDeviceSelect?: (device: DeviceItem) => void;
224
+ /** 切换账号回调 */
225
+ onChangeAccount?: () => void;
226
+ /** 切换店铺回调 */
227
+ onChangeStore?: () => void;
228
+ /** 返回上一步回调 */
229
+ onBack?: () => void;
230
+ /** 登录成功回调 */
231
+ onLoginSuccess?: (data: any) => void;
232
+ }
233
+ /**
234
+ * BrandPanel 品牌区组件 Props
235
+ */
236
+ export interface BrandPanelProps {
237
+ /** 品牌配置 */
238
+ config?: BrandConfig;
239
+ /** 自定义类名 */
240
+ className?: string;
241
+ }
242
+ /**
243
+ * SelectStore 店铺选择组件 Props
244
+ */
245
+ export interface SelectStoreProps {
246
+ /** 店铺列表 */
247
+ storeList?: StoreItem[];
248
+ /** 语言 */
249
+ locale?: LocaleType;
250
+ /** 加载状态 */
251
+ loading?: boolean;
252
+ /** 上次使用的店铺ID */
253
+ lastUsedStoreId?: number;
254
+ /** 选择店铺回调 */
255
+ onSelect?: (store: StoreItem) => void;
256
+ }
257
+ /**
258
+ * SelectDevice 设备选择组件 Props
259
+ */
260
+ export interface SelectDeviceProps {
261
+ /** 设备列表 */
262
+ deviceList?: DeviceItem[];
263
+ /** 语言 */
264
+ locale?: LocaleType;
265
+ /** 加载状态 */
266
+ loading?: boolean;
267
+ /** 选择设备回调 */
268
+ onSelect?: (device: DeviceItem) => void;
269
+ }
270
+ /**
271
+ * UserFooter 底部用户信息组件 Props
272
+ */
273
+ export interface UserFooterProps {
274
+ /** 用户信息 */
275
+ userInfo?: UserInfo;
276
+ /** 当前选中的店铺 */
277
+ selectedStore?: StoreItem;
278
+ /** 当前步骤 */
279
+ step?: LoginStep;
280
+ /** 语言 */
281
+ locale?: LocaleType;
282
+ /** 切换账号回调 */
283
+ onChangeAccount?: () => void;
284
+ /** 切换店铺回调 */
285
+ onChangeStore?: () => void;
286
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/plus/webPosLogin/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -1030,17 +1030,27 @@ var Login2 = ({
1030
1030
  ),
1031
1031
  showPasswordField && /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "remember_me", valuePropName: "checked", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_materials.Checkbox, { defaultChecked: rememberMe }, import_utils.locales.getText("pisell-login2-remember-me"))), /* @__PURE__ */ import_react.default.createElement("a", { className: "login2-link", onClick: handleForgotPasswordClick }, import_utils.locales.getText("pisell-login2-forgot-password"))),
1032
1032
  /* @__PURE__ */ import_react.default.createElement(
1033
- import_materials.Button,
1033
+ import_antd.ConfigProvider,
1034
1034
  {
1035
- type: "primary",
1036
- size: "large",
1037
- block: true,
1038
- htmlType: "button",
1039
- loading,
1040
- onClick: handleFormSubmit,
1041
- className: "login2-submit-button"
1035
+ theme: {
1036
+ token: {
1037
+ colorPrimary: (ui == null ? void 0 : ui.themeColor) || "#7F56D9"
1038
+ }
1039
+ }
1042
1040
  },
1043
- isPasswordStep ? import_utils.locales.getText("pisell-login2-login-button") : isEmail ? import_utils.locales.getText("pisell-login2-continue-with-email") : import_utils.locales.getText("pisell-login2-continue-with-phone")
1041
+ /* @__PURE__ */ import_react.default.createElement(
1042
+ import_materials.Button,
1043
+ {
1044
+ type: "primary",
1045
+ size: "large",
1046
+ block: true,
1047
+ htmlType: "button",
1048
+ loading,
1049
+ onClick: handleFormSubmit,
1050
+ className: "login2-submit-button"
1051
+ },
1052
+ isPasswordStep ? import_utils.locales.getText("pisell-login2-login-button") : isEmail ? import_utils.locales.getText("pisell-login2-continue-with-email") : import_utils.locales.getText("pisell-login2-continue-with-phone")
1053
+ )
1044
1054
  ),
1045
1055
  showPasswordField && /* @__PURE__ */ import_react.default.createElement(
1046
1056
  import_materials.Button,
@@ -325,18 +325,6 @@
325
325
  font-weight: 600;
326
326
  color: #ffffff;
327
327
 
328
- &:hover:not(:disabled) {
329
- background: #6941c6;
330
- border-color: #6941c6;
331
- }
332
-
333
- &:focus {
334
- background: var(--theme-color, #7f56d9);
335
- border-color: var(--theme-color, #7f56d9);
336
- box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05),
337
- 0px 0px 0px 4px rgba(127, 86, 217, 0.1);
338
- }
339
-
340
328
  &:disabled {
341
329
  background: #f2f4f7;
342
330
  border-color: #f2f4f7;
@@ -0,0 +1,71 @@
1
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
+
3
+ import loginMeta from '../login2/meta';
4
+
5
+ const BookingAddonsMeta: ComponentMetadata = {
6
+ componentName: 'WebPosLogin',
7
+ title: 'WebPosLogin',
8
+ docUrl: '',
9
+ screenshot: '',
10
+ devMode: 'proCode',
11
+ npm: {
12
+ package: '@pisell/private-materials',
13
+ version: '1.1.558',
14
+ exportName: 'WebPosLogin',
15
+ main: 'src/index.ts',
16
+ destructuring: true,
17
+ subName: '',
18
+ },
19
+ configure: {
20
+ props: [
21
+ {
22
+ title: {
23
+ label: {
24
+ type: 'i18n',
25
+ 'en-US': 'step | 登录流程步骤',
26
+ 'zh-CN': 'step | 登录流程步骤',
27
+ },
28
+ },
29
+ name: 'step',
30
+ setter: {
31
+ componentName: 'StringSetter',
32
+ isRequired: true,
33
+ props: {},
34
+ },
35
+ },
36
+ {
37
+ title: {
38
+ label: {
39
+ type: 'i18n',
40
+ 'en-US': 'backgroundImage | 背景图片',
41
+ 'zh-CN': 'backgroundImage | 背景图片',
42
+ },
43
+ },
44
+ name: 'backgroundImage',
45
+ setter: {
46
+ componentName: 'StringSetter',
47
+ isRequired: true,
48
+ props: {},
49
+ },
50
+ },
51
+ ...loginMeta.configure?.props || [],
52
+ ],
53
+ supports: {},
54
+ component: {},
55
+ },
56
+ };
57
+ const snippets: Snippet[] = [
58
+ {
59
+ title: 'WebPosLogin',
60
+ screenshot: '',
61
+ schema: {
62
+ componentName: 'WebPosLogin',
63
+ props: {},
64
+ },
65
+ },
66
+ ];
67
+
68
+ export default {
69
+ ...BookingAddonsMeta,
70
+ snippets,
71
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.7.1",
3
+ "version": "6.7.3",
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
  "styled-components": "^6.0.0-rc.3",
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
- "@pisell/utils": "3.0.2",
65
64
  "@pisell/icon": "0.0.11",
66
- "@pisell/materials": "6.7.1",
67
- "@pisell/date-picker": "3.0.7"
65
+ "@pisell/utils": "3.0.2",
66
+ "@pisell/date-picker": "3.0.7",
67
+ "@pisell/materials": "6.7.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",