@pisell/private-materials 6.11.702 → 6.11.704

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.
@@ -0,0 +1,51 @@
1
+ @forms-prefix: pisell-sale-detail-forms;
2
+
3
+ .pisell-sale-detail-forms-main {
4
+ padding: 8px 10px;
5
+ }
6
+
7
+ .@{forms-prefix} {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 8px;
11
+ width: 100%;
12
+ min-height: 0;
13
+ overflow: auto;
14
+
15
+ &__card {
16
+ padding: 12px;
17
+ border: 1px solid rgba(93, 112, 157, 0.72);
18
+ border-radius: 8px;
19
+ background: #080d18;
20
+ }
21
+
22
+ &__header {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 8px;
26
+ min-width: 0;
27
+ margin-bottom: 10px;
28
+ color: #f5f7ff;
29
+ }
30
+
31
+ &__booking-id {
32
+ flex: none;
33
+ font-size: 14px;
34
+ font-weight: 800;
35
+ }
36
+
37
+ &__resource {
38
+ overflow: hidden;
39
+ color: rgba(234, 240, 255, 0.72);
40
+ font-size: 13px;
41
+ text-overflow: ellipsis;
42
+ white-space: nowrap;
43
+ }
44
+
45
+ &__empty {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ min-height: 220px;
50
+ }
51
+ }
@@ -22,7 +22,7 @@ function resolveLocalizedText(value, translationOriginal, localeOverride) {
22
22
  const locale = localeOverride || ((_locales$getLocale = locales.getLocale) === null || _locales$getLocale === void 0 ? void 0 : _locales$getLocale.call(locales)) || locales.locale || "en";
23
23
  const normalized = ((_locales$formatLocale = locales.formatLocale) === null || _locales$formatLocale === void 0 ? void 0 : _locales$formatLocale.call(locales, locale)) || locale;
24
24
  const record = value;
25
- return record[normalized] || record[locale] || record.en || record.auto || record.default || record.original || record["zh-CN"] || record["zh-HK"] || record.ja || record.pt || record.kitchen || Object.keys(record).sort().map((key) => record[key]).find((text) => typeof text === "string" && text) || "";
25
+ return record[normalized] || record[locale] || record.auto || record.default || record.original || record.en || record["zh-CN"] || record["zh-HK"] || record.ja || record.pt || record.kitchen || Object.keys(record).sort().map((key) => record[key]).find((text) => typeof text === "string" && text) || "";
26
26
  }
27
27
  return String(value);
28
28
  }
@@ -0,0 +1,51 @@
1
+ @forms-prefix: pisell-sale-detail-forms;
2
+
3
+ .pisell-sale-detail-forms-main {
4
+ padding: 8px 10px;
5
+ }
6
+
7
+ .@{forms-prefix} {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 8px;
11
+ width: 100%;
12
+ min-height: 0;
13
+ overflow: auto;
14
+
15
+ &__card {
16
+ padding: 12px;
17
+ border: 1px solid rgba(93, 112, 157, 0.72);
18
+ border-radius: 8px;
19
+ background: #080d18;
20
+ }
21
+
22
+ &__header {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 8px;
26
+ min-width: 0;
27
+ margin-bottom: 10px;
28
+ color: #f5f7ff;
29
+ }
30
+
31
+ &__booking-id {
32
+ flex: none;
33
+ font-size: 14px;
34
+ font-weight: 800;
35
+ }
36
+
37
+ &__resource {
38
+ overflow: hidden;
39
+ color: rgba(234, 240, 255, 0.72);
40
+ font-size: 13px;
41
+ text-overflow: ellipsis;
42
+ white-space: nowrap;
43
+ }
44
+
45
+ &__empty {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ min-height: 220px;
50
+ }
51
+ }
@@ -23,7 +23,7 @@ function resolveLocalizedText(value, translationOriginal, localeOverride) {
23
23
  const locale = localeOverride || ((_locales$getLocale = _pisell_utils.locales.getLocale) === null || _locales$getLocale === void 0 ? void 0 : _locales$getLocale.call(_pisell_utils.locales)) || _pisell_utils.locales.locale || "en";
24
24
  const normalized = ((_locales$formatLocale = _pisell_utils.locales.formatLocale) === null || _locales$formatLocale === void 0 ? void 0 : _locales$formatLocale.call(_pisell_utils.locales, locale)) || locale;
25
25
  const record = value;
26
- return record[normalized] || record[locale] || record.en || record.auto || record.default || record.original || record["zh-CN"] || record["zh-HK"] || record.ja || record.pt || record.kitchen || Object.keys(record).sort().map((key) => record[key]).find((text) => typeof text === "string" && text) || "";
26
+ return record[normalized] || record[locale] || record.auto || record.default || record.original || record.en || record["zh-CN"] || record["zh-HK"] || record.ja || record.pt || record.kitchen || Object.keys(record).sort().map((key) => record[key]).find((text) => typeof text === "string" && text) || "";
27
27
  }
28
28
  return String(value);
29
29
  }
@@ -0,0 +1,451 @@
1
+
2
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
+
4
+ const AllergySelectionModalMeta: ComponentMetadata = {
5
+ "componentName": "AllergySelectionModal",
6
+ "title": "AllergySelectionModal",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "@pisell/private-materials",
12
+ "version": "1.10.81",
13
+ "exportName": "AllergySelectionModal",
14
+ "main": "src/index.ts",
15
+ "destructuring": true,
16
+ "subName": ""
17
+ },
18
+ "configure": {
19
+ "props": [
20
+ {
21
+ "title": {
22
+ "label": {
23
+ "type": "i18n",
24
+ "en-US": "requirement",
25
+ "zh-CN": "requirement"
26
+ }
27
+ },
28
+ "name": "requirement",
29
+ "setter": {
30
+ "componentName": "ObjectSetter",
31
+ "props": {
32
+ "config": {
33
+ "items": [
34
+ {
35
+ "title": {
36
+ "label": {
37
+ "type": "i18n",
38
+ "en-US": "strategyId",
39
+ "zh-CN": "strategyId"
40
+ }
41
+ },
42
+ "name": "strategyId",
43
+ "setter": {
44
+ "componentName": "StringSetter",
45
+ "isRequired": true,
46
+ "initialValue": ""
47
+ }
48
+ },
49
+ {
50
+ "title": {
51
+ "label": {
52
+ "type": "i18n",
53
+ "en-US": "ruleId",
54
+ "zh-CN": "ruleId"
55
+ }
56
+ },
57
+ "name": "ruleId",
58
+ "setter": {
59
+ "componentName": "StringSetter",
60
+ "isRequired": true,
61
+ "initialValue": ""
62
+ }
63
+ },
64
+ {
65
+ "title": {
66
+ "label": {
67
+ "type": "i18n",
68
+ "en-US": "priority",
69
+ "zh-CN": "priority"
70
+ }
71
+ },
72
+ "name": "priority",
73
+ "setter": {
74
+ "componentName": "NumberSetter",
75
+ "isRequired": true,
76
+ "initialValue": 0
77
+ }
78
+ },
79
+ {
80
+ "title": {
81
+ "label": {
82
+ "type": "i18n",
83
+ "en-US": "targetType",
84
+ "zh-CN": "targetType"
85
+ }
86
+ },
87
+ "name": "targetType",
88
+ "setter": {
89
+ "componentName": "RadioGroupSetter",
90
+ "props": {
91
+ "dataSource": [
92
+ {
93
+ "label": "product",
94
+ "value": "product"
95
+ }
96
+ ],
97
+ "options": [
98
+ {
99
+ "label": "product",
100
+ "value": "product"
101
+ }
102
+ ]
103
+ },
104
+ "isRequired": true,
105
+ "initialValue": "product"
106
+ }
107
+ },
108
+ {
109
+ "title": {
110
+ "label": {
111
+ "type": "i18n",
112
+ "en-US": "product_id",
113
+ "zh-CN": "product_id"
114
+ }
115
+ },
116
+ "name": "product_id",
117
+ "setter": {
118
+ "componentName": "NumberSetter",
119
+ "isRequired": true,
120
+ "initialValue": 0
121
+ }
122
+ },
123
+ {
124
+ "title": {
125
+ "label": {
126
+ "type": "i18n",
127
+ "en-US": "product_variant_id",
128
+ "zh-CN": "product_variant_id"
129
+ }
130
+ },
131
+ "name": "product_variant_id",
132
+ "setter": {
133
+ "componentName": "MixedSetter",
134
+ "props": {
135
+ "setters": [
136
+ {
137
+ "componentName": "ObjectSetter",
138
+ "props": {
139
+ "config": {
140
+ "extraSetter": {
141
+ "componentName": "MixedSetter",
142
+ "isRequired": false,
143
+ "props": {}
144
+ }
145
+ }
146
+ },
147
+ "isRequired": false,
148
+ "initialValue": {}
149
+ },
150
+ {
151
+ "componentName": "NumberSetter",
152
+ "isRequired": false,
153
+ "initialValue": 0
154
+ }
155
+ ]
156
+ }
157
+ }
158
+ },
159
+ {
160
+ "title": {
161
+ "label": {
162
+ "type": "i18n",
163
+ "en-US": "dataSource",
164
+ "zh-CN": "dataSource"
165
+ }
166
+ },
167
+ "name": "dataSource",
168
+ "setter": {
169
+ "componentName": "ObjectSetter",
170
+ "props": {
171
+ "config": {
172
+ "items": [
173
+ {
174
+ "title": {
175
+ "label": {
176
+ "type": "i18n",
177
+ "en-US": "type",
178
+ "zh-CN": "type"
179
+ }
180
+ },
181
+ "name": "type",
182
+ "setter": {
183
+ "componentName": "RadioGroupSetter",
184
+ "props": {
185
+ "dataSource": [
186
+ {
187
+ "label": "inline",
188
+ "value": "inline"
189
+ }
190
+ ],
191
+ "options": [
192
+ {
193
+ "label": "inline",
194
+ "value": "inline"
195
+ }
196
+ ]
197
+ },
198
+ "isRequired": true,
199
+ "initialValue": "inline"
200
+ }
201
+ },
202
+ {
203
+ "title": {
204
+ "label": {
205
+ "type": "i18n",
206
+ "en-US": "items",
207
+ "zh-CN": "items"
208
+ }
209
+ },
210
+ "name": "items",
211
+ "setter": {
212
+ "componentName": "ArraySetter",
213
+ "props": {
214
+ "itemSetter": {
215
+ "componentName": "ObjectSetter",
216
+ "props": {
217
+ "config": {
218
+ "items": [
219
+ {
220
+ "title": {
221
+ "label": {
222
+ "type": "i18n",
223
+ "en-US": "id",
224
+ "zh-CN": "id"
225
+ }
226
+ },
227
+ "name": "id",
228
+ "setter": {
229
+ "componentName": "StringSetter",
230
+ "isRequired": true,
231
+ "initialValue": ""
232
+ }
233
+ },
234
+ {
235
+ "title": {
236
+ "label": {
237
+ "type": "i18n",
238
+ "en-US": "label",
239
+ "zh-CN": "label"
240
+ }
241
+ },
242
+ "name": "label",
243
+ "setter": {
244
+ "componentName": "MixedSetter",
245
+ "props": {
246
+ "setters": [
247
+ {
248
+ "componentName": "StringSetter",
249
+ "isRequired": false,
250
+ "initialValue": ""
251
+ },
252
+ {
253
+ "componentName": "ObjectSetter",
254
+ "props": {
255
+ "config": {
256
+ "extraSetter": {
257
+ "componentName": "StringSetter",
258
+ "isRequired": false,
259
+ "initialValue": ""
260
+ }
261
+ }
262
+ },
263
+ "initialValue": {}
264
+ }
265
+ ]
266
+ },
267
+ "isRequired": true
268
+ }
269
+ }
270
+ ],
271
+ "extraSetter": {
272
+ "componentName": "MixedSetter",
273
+ "isRequired": false,
274
+ "props": {}
275
+ }
276
+ }
277
+ }
278
+ }
279
+ },
280
+ "isRequired": true,
281
+ "initialValue": []
282
+ }
283
+ }
284
+ ],
285
+ "extraSetter": {
286
+ "componentName": "MixedSetter",
287
+ "isRequired": false,
288
+ "props": {}
289
+ }
290
+ }
291
+ },
292
+ "isRequired": true
293
+ }
294
+ },
295
+ {
296
+ "title": {
297
+ "label": {
298
+ "type": "i18n",
299
+ "en-US": "promptScope",
300
+ "zh-CN": "promptScope"
301
+ }
302
+ },
303
+ "name": "promptScope",
304
+ "setter": {
305
+ "componentName": "RadioGroupSetter",
306
+ "props": {
307
+ "dataSource": [
308
+ {
309
+ "label": "once_per_order_product",
310
+ "value": "once_per_order_product"
311
+ }
312
+ ],
313
+ "options": [
314
+ {
315
+ "label": "once_per_order_product",
316
+ "value": "once_per_order_product"
317
+ }
318
+ ]
319
+ },
320
+ "isRequired": true,
321
+ "initialValue": "once_per_order_product"
322
+ }
323
+ },
324
+ {
325
+ "title": {
326
+ "label": {
327
+ "type": "i18n",
328
+ "en-US": "allowNote",
329
+ "zh-CN": "allowNote"
330
+ }
331
+ },
332
+ "name": "allowNote",
333
+ "setter": {
334
+ "componentName": "BoolSetter",
335
+ "isRequired": true,
336
+ "initialValue": false
337
+ }
338
+ }
339
+ ],
340
+ "extraSetter": {
341
+ "componentName": "MixedSetter",
342
+ "isRequired": false,
343
+ "props": {}
344
+ }
345
+ }
346
+ },
347
+ "isRequired": true
348
+ }
349
+ },
350
+ {
351
+ "title": {
352
+ "label": {
353
+ "type": "i18n",
354
+ "en-US": "locale",
355
+ "zh-CN": "locale"
356
+ }
357
+ },
358
+ "name": "locale",
359
+ "setter": {
360
+ "componentName": "StringSetter",
361
+ "isRequired": true,
362
+ "initialValue": ""
363
+ }
364
+ },
365
+ {
366
+ "title": {
367
+ "label": {
368
+ "type": "i18n",
369
+ "en-US": "pending",
370
+ "zh-CN": "pending"
371
+ }
372
+ },
373
+ "name": "pending",
374
+ "setter": {
375
+ "componentName": "BoolSetter",
376
+ "isRequired": true,
377
+ "initialValue": false
378
+ }
379
+ },
380
+ {
381
+ "title": {
382
+ "label": {
383
+ "type": "i18n",
384
+ "en-US": "error",
385
+ "zh-CN": "error"
386
+ }
387
+ },
388
+ "name": "error",
389
+ "setter": {
390
+ "componentName": "MixedSetter",
391
+ "props": {
392
+ "setters": [
393
+ {
394
+ "componentName": "ObjectSetter",
395
+ "props": {
396
+ "config": {
397
+ "extraSetter": {
398
+ "componentName": "MixedSetter",
399
+ "isRequired": false,
400
+ "props": {}
401
+ }
402
+ }
403
+ },
404
+ "isRequired": false,
405
+ "initialValue": {}
406
+ },
407
+ {
408
+ "componentName": "StringSetter",
409
+ "isRequired": false,
410
+ "initialValue": ""
411
+ }
412
+ ]
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "title": {
418
+ "label": {
419
+ "type": "i18n",
420
+ "en-US": "onSubmit",
421
+ "zh-CN": "onSubmit"
422
+ }
423
+ },
424
+ "name": "onSubmit",
425
+ "setter": {
426
+ "componentName": "FunctionSetter",
427
+ "isRequired": true
428
+ }
429
+ }
430
+ ],
431
+ "supports": {
432
+ "style": true
433
+ },
434
+ "component": {}
435
+ }
436
+ };
437
+ const snippets: Snippet[] = [
438
+ {
439
+ "title": "AllergySelectionModal",
440
+ "screenshot": "",
441
+ "schema": {
442
+ "componentName": "AllergySelectionModal",
443
+ "props": {}
444
+ }
445
+ }
446
+ ];
447
+
448
+ export default {
449
+ ...AllergySelectionModalMeta,
450
+ snippets
451
+ };