@pisell/private-materials 3.0.161 → 3.0.162-gray

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 (114) 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 +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/components/footer/index.js +34 -5
  12. package/es/components/booking/dashboard/index.d.ts +20 -0
  13. package/es/components/booking/dashboard/index.js +298 -0
  14. package/es/components/booking/dashboard/serve.d.ts +1 -0
  15. package/es/components/booking/dashboard/serve.js +27 -0
  16. package/es/components/booking/forms/forms.d.ts +1 -0
  17. package/es/components/booking/forms/forms.js +4 -2
  18. package/es/components/booking/forms/single/index.d.ts +1 -1
  19. package/es/components/booking/forms/single/index.js +4 -3
  20. package/es/components/booking/hooks/useClearCart.d.ts +3 -0
  21. package/es/components/booking/hooks/useClearCart.js +27 -0
  22. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
  23. package/es/components/booking/hooks/useCreateBookingPageHeader.js +21 -0
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  25. package/es/components/booking/info/addServiceVariant/index.js +42 -0
  26. package/es/components/booking/info/client/index.js +1 -1
  27. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  28. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +4 -2
  29. package/es/components/booking/info/clientVariant/vertical/index.js +6 -5
  30. package/es/components/booking/info/clientVariant/vertical/index.less +8 -0
  31. package/es/components/booking/info/index.less +19 -0
  32. package/es/components/booking/info/main.js +11 -5
  33. package/es/components/booking/info/pet/index.js +1 -1
  34. package/es/components/booking/info/service/addService/index.d.ts +9 -3
  35. package/es/components/booking/info/service/addService/index.js +82 -36
  36. package/es/components/booking/info/service/addService/index.less +27 -1
  37. package/es/components/booking/info/service/editService/index.js +11 -13
  38. package/es/components/booking/info/service/index.js +5 -2
  39. package/es/components/booking/info/service/index.less +18 -0
  40. package/es/components/booking/info/service/serviceItem/index.d.ts +3 -3
  41. package/es/components/booking/info/service/serviceItem/index.js +22 -8
  42. package/es/components/booking/info/service/serviceItem/index.less +8 -0
  43. package/es/components/booking/info/service/serviceList/index.js +20 -1
  44. package/es/components/booking/info2/index.js +9 -3
  45. package/es/components/booking/info2/service/addService/index.d.ts +8 -2
  46. package/es/components/booking/info2/service/addService/index.js +82 -36
  47. package/es/components/booking/info2/service/addTimeModal/index.js +1 -0
  48. package/es/components/booking/info2/service/editService/index.js +11 -4
  49. package/es/components/booking/info2/service/index.js +5 -2
  50. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -1
  51. package/es/components/booking/info2/service/serviceItem/index.js +16 -3
  52. package/es/components/booking/info2/service/serviceList/index.js +20 -1
  53. package/es/components/booking/info2/utilsByBooking.js +6 -2
  54. package/es/components/booking/locales.d.ts +60 -0
  55. package/es/components/booking/locales.js +63 -3
  56. package/es/components/booking/model.d.ts +2 -0
  57. package/es/components/booking/utils.d.ts +1 -1
  58. package/es/components/booking/utils.js +54 -51
  59. package/es/index.d.ts +2 -0
  60. package/es/index.js +3 -1
  61. package/lib/components/booking/components/footer/index.js +30 -5
  62. package/lib/components/booking/dashboard/index.d.ts +20 -0
  63. package/lib/components/booking/dashboard/index.js +279 -0
  64. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  65. package/lib/components/booking/dashboard/serve.js +33 -0
  66. package/lib/components/booking/forms/forms.d.ts +1 -0
  67. package/lib/components/booking/forms/forms.js +5 -2
  68. package/lib/components/booking/forms/single/index.d.ts +1 -1
  69. package/lib/components/booking/forms/single/index.js +4 -2
  70. package/lib/components/booking/hooks/useClearCart.d.ts +3 -0
  71. package/lib/components/booking/hooks/useClearCart.js +62 -0
  72. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
  73. package/lib/components/booking/hooks/useCreateBookingPageHeader.js +53 -0
  74. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  75. package/lib/components/booking/info/addServiceVariant/index.js +70 -0
  76. package/lib/components/booking/info/client/index.js +1 -1
  77. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  78. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +4 -2
  79. package/lib/components/booking/info/clientVariant/vertical/index.js +88 -76
  80. package/lib/components/booking/info/clientVariant/vertical/index.less +8 -0
  81. package/lib/components/booking/info/index.less +19 -0
  82. package/lib/components/booking/info/main.js +9 -3
  83. package/lib/components/booking/info/pet/index.js +2 -1
  84. package/lib/components/booking/info/service/addService/index.d.ts +9 -3
  85. package/lib/components/booking/info/service/addService/index.js +66 -29
  86. package/lib/components/booking/info/service/addService/index.less +27 -1
  87. package/lib/components/booking/info/service/editService/index.js +9 -6
  88. package/lib/components/booking/info/service/index.js +4 -2
  89. package/lib/components/booking/info/service/index.less +18 -0
  90. package/lib/components/booking/info/service/serviceItem/index.d.ts +3 -3
  91. package/lib/components/booking/info/service/serviceItem/index.js +15 -1
  92. package/lib/components/booking/info/service/serviceItem/index.less +8 -0
  93. package/lib/components/booking/info/service/serviceList/index.js +18 -1
  94. package/lib/components/booking/info2/index.js +8 -2
  95. package/lib/components/booking/info2/service/addService/index.d.ts +8 -2
  96. package/lib/components/booking/info2/service/addService/index.js +66 -29
  97. package/lib/components/booking/info2/service/addTimeModal/index.js +1 -0
  98. package/lib/components/booking/info2/service/editService/index.js +7 -1
  99. package/lib/components/booking/info2/service/index.js +4 -2
  100. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -1
  101. package/lib/components/booking/info2/service/serviceItem/index.js +14 -1
  102. package/lib/components/booking/info2/service/serviceList/index.js +18 -1
  103. package/lib/components/booking/info2/utilsByBooking.js +5 -1
  104. package/lib/components/booking/locales.d.ts +60 -0
  105. package/lib/components/booking/locales.js +63 -3
  106. package/lib/components/booking/model.d.ts +2 -0
  107. package/lib/components/booking/utils.d.ts +1 -1
  108. package/lib/components/booking/utils.js +57 -22
  109. package/lib/index.d.ts +2 -0
  110. package/lib/index.js +6 -0
  111. package/lowcode/booking-dashboard/meta.ts +137 -0
  112. package/lowcode/booking-vertical-add-service/meta.ts +124 -0
  113. package/lowcode/vertical-add-service/meta.ts +71 -0
  114. package/package.json +4 -4
@@ -112,7 +112,9 @@ var sliceDayIntoFiveMinutes = (config, locale) => {
112
112
  value: durationValue
113
113
  });
114
114
  } else {
115
- const durationLabel = `${durationValue} ${import_utils.locales.getText("pisell2.text.min")}`;
115
+ const durationLabel = `${durationValue} ${import_utils.locales.getText(
116
+ "pisell2.text.min"
117
+ )}`;
116
118
  durationSlicesBasedOnTime.push({
117
119
  label: durationLabel,
118
120
  value: durationValue
@@ -135,7 +137,9 @@ var getServeStartTime = (start_time) => {
135
137
  return start_time;
136
138
  };
137
139
  var getServiceTime = (item, currentDate) => {
138
- const startDate = (0, import_dayjs.default)(currentDate.format("YYYY-MM-DD") + " " + getServeStartTime(item._extend.start_time));
140
+ const startDate = (0, import_dayjs.default)(
141
+ currentDate.format("YYYY-MM-DD") + " " + getServeStartTime(item._extend.start_time)
142
+ );
139
143
  const startTime = startDate.format("HH:mm");
140
144
  const endTime = startDate.add(flexibleObj.getValue(item._extend.duration), "minute").format("HH:mm");
141
145
  const duration = getDiscountTime(flexibleObj.getValue(item._extend.duration));
@@ -183,10 +187,7 @@ var formatProductListByCategory = (list, filterItem) => {
183
187
  }
184
188
  categoryObject[categoryItem.id] = {
185
189
  ...categoryItem,
186
- products: [
187
- ...categoryObject[categoryItem.id].products,
188
- productItem
189
- ]
190
+ products: [...categoryObject[categoryItem.id].products, productItem]
190
191
  };
191
192
  }
192
193
  } else {
@@ -208,7 +209,9 @@ var formatProductListByCategory = (list, filterItem) => {
208
209
  return Object.values(categoryObject).sort((a, b) => b.sort - a.sort);
209
210
  };
210
211
  var getResourceTimeIsUsable = (item, cacheItem) => {
211
- const startDate = (0, import_dayjs.default)(cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + getServeStartTime(cacheItem._extend.start_time));
212
+ const startDate = (0, import_dayjs.default)(
213
+ cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + getServeStartTime(cacheItem._extend.start_time)
214
+ );
212
215
  const isFlexible = flexibleObj.isFlexible(cacheItem._extend.duration);
213
216
  let isMaxLimitRange = false;
214
217
  let isDateRange = false;
@@ -218,13 +221,22 @@ var getResourceTimeIsUsable = (item, cacheItem) => {
218
221
  } else {
219
222
  isMaxLimitRange = "unknown";
220
223
  }
221
- const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(1, "second");
222
- const timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(1, "second");
224
+ const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(
225
+ 1,
226
+ "second"
227
+ );
228
+ const timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(
229
+ 1,
230
+ "second"
231
+ );
223
232
  let bol;
224
233
  if (isFlexible) {
225
234
  bol = startDate.isAfter(timeStartDate) && startDate.isBefore(timeEndDate);
226
235
  } else {
227
- let endDate = startDate.add(flexibleObj.getValue(cacheItem._extend.duration), "minute");
236
+ let endDate = startDate.add(
237
+ flexibleObj.getValue(cacheItem._extend.duration),
238
+ "minute"
239
+ );
228
240
  bol = startDate.isAfter(timeStartDate) && endDate.isBefore(timeEndDate);
229
241
  }
230
242
  if (bol) {
@@ -329,7 +341,9 @@ var flexibleObj = {
329
341
  };
330
342
  var getEndDate = (startDate, duration, endDate) => {
331
343
  if (duration === "flexible") {
332
- let openingDate = (0, import_dayjs.default)(startDate.format("YYYY-MM-DD") + " " + getShopOpeningHours());
344
+ let openingDate = (0, import_dayjs.default)(
345
+ startDate.format("YYYY-MM-DD") + " " + getShopOpeningHours()
346
+ );
333
347
  if ((0, import_dayjs.default)(startDate).isAfter(openingDate)) {
334
348
  openingDate = openingDate.add(1, "day");
335
349
  }
@@ -344,8 +358,13 @@ var getEndDate = (startDate, duration, endDate) => {
344
358
  return startDate.add(duration, "minute");
345
359
  };
346
360
  var getServiceTimes = (service) => {
347
- const startDate = (0, import_dayjs.default)((0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + getServeStartTime(service._extend.start_time));
348
- const endDate = startDate.add(flexibleObj.getValue(service._extend.duration), "minute");
361
+ const startDate = (0, import_dayjs.default)(
362
+ (0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + getServeStartTime(service._extend.start_time)
363
+ );
364
+ const endDate = startDate.add(
365
+ flexibleObj.getValue(service._extend.duration),
366
+ "minute"
367
+ );
349
368
  return {
350
369
  startDate,
351
370
  endDate
@@ -354,10 +373,12 @@ var getServiceTimes = (service) => {
354
373
  var getErrorList = (resource, cacheItem) => {
355
374
  var _a, _b, _c;
356
375
  if (!(cacheItem == null ? void 0 : cacheItem.id)) {
357
- return [{
358
- label: import_utils.locales.getText("pisell2.text.no-product-added"),
359
- type: "products"
360
- }];
376
+ return [
377
+ {
378
+ label: import_utils.locales.getText("pisell2.text.no-product-added"),
379
+ type: "products"
380
+ }
381
+ ];
361
382
  }
362
383
  if (!resource || !resource._extend || !cacheItem) {
363
384
  return [];
@@ -366,7 +387,10 @@ var getErrorList = (resource, cacheItem) => {
366
387
  if (!resource.usable) {
367
388
  if (!((_a = resource == null ? void 0 : resource._extend) == null ? void 0 : _a.usableProduct)) {
368
389
  list.push({
369
- label: import_utils.locales.getText("pisell1.text.resource-error-message-1")(resource.labelText, cacheItem == null ? void 0 : cacheItem.title),
390
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-1")(
391
+ resource.labelText,
392
+ cacheItem == null ? void 0 : cacheItem.title
393
+ ),
370
394
  type: "product"
371
395
  });
372
396
  }
@@ -378,13 +402,21 @@ var getErrorList = (resource, cacheItem) => {
378
402
  }
379
403
  if (!((_b = resource._extend) == null ? void 0 : _b.usableTime)) {
380
404
  list.push({
381
- label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(resource.labelText, startText, endText),
405
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(
406
+ resource.labelText,
407
+ startText,
408
+ endText
409
+ ),
382
410
  type: "time"
383
411
  });
384
412
  } else {
385
413
  if (!((_c = resource._extend) == null ? void 0 : _c.usableTime._extend.isMaxLimitRange)) {
386
414
  list.push({
387
- label: import_utils.locales.getText("pisell1.text.resource-error-message-3")(resource.labelText, startText, endText),
415
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-3")(
416
+ resource.labelText,
417
+ startText,
418
+ endText
419
+ ),
388
420
  type: "limit"
389
421
  });
390
422
  }
@@ -454,11 +486,14 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
454
486
  _extend.resource = resourceId;
455
487
  }
456
488
  }
457
- console.log("_extend", findNextSliceProps);
458
489
  if (findNextSliceProps.date && findNextSliceProps.date !== "00:00") {
459
490
  _extend.start_time = findNextSlice(findNextSliceProps);
460
491
  } else {
461
- _extend.start_time = (0, import_dayjs.default)().format("HH:mm");
492
+ if (cacheItem.currentDefaultTime) {
493
+ _extend.start_time = cacheItem.currentDefaultTime;
494
+ } else {
495
+ _extend.start_time = (0, import_dayjs.default)().format("HH:mm");
496
+ }
462
497
  }
463
498
  }
464
499
  _extend = {
package/lib/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export { default as BookingStartTime } from './components/booking/materiels/star
12
12
  export { default as BookingDuration } from './components/booking/materiels/duration';
13
13
  export { default as BookingContacts } from './components/booking/materiels/contacts';
14
14
  export { VerticalClient } from './components/booking/info/clientVariant';
15
+ export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
15
16
  export { default as ProductExtension } from './components/productExtension';
16
17
  export { default as BookingDeposit } from './components/booking/deposit';
17
18
  export { default as RuleSetting } from './components/ruleSetting';
@@ -19,3 +20,4 @@ export { default as TaxSelect } from './components/taxSelect';
19
20
  export { default as ToCPay } from './components/pay/toC';
20
21
  export { default as Eftpos } from './components/eftpos';
21
22
  export { default as EftposPay } from './components/eftposPay';
23
+ export { default as BookingDashboard } from './components/booking/dashboard';
package/lib/index.js CHANGED
@@ -32,6 +32,7 @@ __export(src_exports, {
32
32
  Booking: () => import_booking.default,
33
33
  BookingAddons: () => import_addons.default,
34
34
  BookingContacts: () => import_contacts.default,
35
+ BookingDashboard: () => import_dashboard.default,
35
36
  BookingDeposit: () => import_deposit.default,
36
37
  BookingDuration: () => import_duration.default,
37
38
  BookingForms: () => import_forms.default,
@@ -48,6 +49,7 @@ __export(src_exports, {
48
49
  Schedules: () => import_schedules.default,
49
50
  TaxSelect: () => import_taxSelect.default,
50
51
  ToCPay: () => import_toC.default,
52
+ VerticalAddService: () => import_addServiceVariant.default,
51
53
  VerticalClient: () => import_clientVariant.VerticalClient
52
54
  });
53
55
  module.exports = __toCommonJS(src_exports);
@@ -67,6 +69,7 @@ var import_startTime = __toESM(require("./components/booking/materiels/startTime
67
69
  var import_duration = __toESM(require("./components/booking/materiels/duration"));
68
70
  var import_contacts = __toESM(require("./components/booking/materiels/contacts"));
69
71
  var import_clientVariant = require("./components/booking/info/clientVariant");
72
+ var import_addServiceVariant = __toESM(require("./components/booking/info/addServiceVariant"));
70
73
  var import_productExtension = __toESM(require("./components/productExtension"));
71
74
  var import_deposit = __toESM(require("./components/booking/deposit"));
72
75
  var import_ruleSetting = __toESM(require("./components/ruleSetting"));
@@ -74,6 +77,7 @@ var import_taxSelect = __toESM(require("./components/taxSelect"));
74
77
  var import_toC = __toESM(require("./components/pay/toC"));
75
78
  var import_eftpos = __toESM(require("./components/eftpos"));
76
79
  var import_eftposPay = __toESM(require("./components/eftposPay"));
80
+ var import_dashboard = __toESM(require("./components/booking/dashboard"));
77
81
  import_dayjs.default.extend(import_weekday.default);
78
82
  import_dayjs.default.extend(import_localeData.default);
79
83
  // Annotate the CommonJS export names for ESM import in node:
@@ -81,6 +85,7 @@ import_dayjs.default.extend(import_localeData.default);
81
85
  Booking,
82
86
  BookingAddons,
83
87
  BookingContacts,
88
+ BookingDashboard,
84
89
  BookingDeposit,
85
90
  BookingDuration,
86
91
  BookingForms,
@@ -97,5 +102,6 @@ import_dayjs.default.extend(import_localeData.default);
97
102
  Schedules,
98
103
  TaxSelect,
99
104
  ToCPay,
105
+ VerticalAddService,
100
106
  VerticalClient
101
107
  });
@@ -0,0 +1,137 @@
1
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
+
3
+ const BookingDashboardMeta: ComponentMetadata = {
4
+ componentName: 'BookingDashboard',
5
+ title: 'BookingDashboard',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ package: '@pisell/private-materials',
11
+ version: '1.0.4',
12
+ exportName: 'BookingDashboard',
13
+ main: 'src/index.ts',
14
+ destructuring: true,
15
+ subName: '',
16
+ },
17
+ configure: {
18
+ props: [
19
+ {
20
+ title: {
21
+ label: {
22
+ type: 'i18n',
23
+ 'en-US': 'backgroundColors',
24
+ 'zh-CN': 'backgroundColors',
25
+ },
26
+ },
27
+ name: 'backgroundColors',
28
+ setter: {
29
+ componentName: 'MixedSetter',
30
+ props: {
31
+ setters: [
32
+ {
33
+ componentName: 'ArraySetter',
34
+ props: {
35
+ itemSetter: {
36
+ componentName: 'StringSetter',
37
+ isRequired: false,
38
+ initialValue: '',
39
+ },
40
+ },
41
+ initialValue: [],
42
+ },
43
+ ],
44
+ },
45
+ },
46
+ },
47
+ {
48
+ title: {
49
+ label: {
50
+ type: 'i18n',
51
+ 'en-US': 'labelColor',
52
+ 'zh-CN': 'labelColor',
53
+ },
54
+ },
55
+ name: 'labelColor',
56
+ setter: {
57
+ componentName: 'MixedSetter',
58
+ props: {
59
+ setters: [
60
+ {
61
+ componentName: 'StringSetter',
62
+ isRequired: false,
63
+ initialValue: '',
64
+ },
65
+ ],
66
+ },
67
+ },
68
+ },
69
+ {
70
+ title: {
71
+ label: {
72
+ type: 'i18n',
73
+ 'en-US': 'valueColor',
74
+ 'zh-CN': 'valueColor',
75
+ },
76
+ },
77
+ name: 'valueColor',
78
+ setter: {
79
+ componentName: 'MixedSetter',
80
+ props: {
81
+ setters: [
82
+ {
83
+ componentName: 'StringSetter',
84
+ isRequired: false,
85
+ initialValue: '',
86
+ },
87
+ ],
88
+ },
89
+ },
90
+ },
91
+ {
92
+ title: {
93
+ label: {
94
+ type: 'i18n',
95
+ 'en-US': 'otherParams',
96
+ 'zh-CN': 'otherParams',
97
+ },
98
+ },
99
+ name: 'otherParams',
100
+ setter: ["JsonSetter","VariableSetter"],
101
+ },
102
+ {
103
+ title: {
104
+ label: 'refreshKey',
105
+ },
106
+ name: 'refreshKey',
107
+ setter: ["StringSetter","VariableSetter"],
108
+ },
109
+ ],
110
+ supports: {
111
+ style: true,
112
+ events: [
113
+ {
114
+ name: "onDataChange",
115
+ template:
116
+ "onDataChange(data,dataList,${extParams}){\n//console.log('onDataChange',data,dataList);}",
117
+ },
118
+ ],
119
+ },
120
+ component: {},
121
+ },
122
+ };
123
+ const snippets: Snippet[] = [
124
+ {
125
+ title: 'BookingDashboard',
126
+ screenshot: '',
127
+ schema: {
128
+ componentName: 'BookingDashboard',
129
+ props: {},
130
+ },
131
+ },
132
+ ];
133
+
134
+ export default {
135
+ ...BookingDashboardMeta,
136
+ snippets,
137
+ };
@@ -0,0 +1,124 @@
1
+
2
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
+
4
+ const VerticalAddServiceMeta: ComponentMetadata = {
5
+ "componentName": "VerticalAddService",
6
+ "title": "VerticalAddService",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "@pisell/private-materials",
12
+ "version": "1.0.4",
13
+ "exportName": "VerticalAddService",
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": "style",
25
+ "zh-CN": "style"
26
+ }
27
+ },
28
+ "name": "style",
29
+ "setter": {
30
+ "componentName": "MixedSetter",
31
+ "isRequired": true,
32
+ "props": {}
33
+ }
34
+ },
35
+ {
36
+ "title": {
37
+ "label": {
38
+ "type": "i18n",
39
+ "en-US": "globalState",
40
+ "zh-CN": "globalState"
41
+ }
42
+ },
43
+ "name": "globalState",
44
+ "setter": ["JsonSetter", "VariableSetter"],
45
+ },
46
+ {
47
+ "title": {
48
+ "label": {
49
+ "type": "i18n",
50
+ "en-US": "setModalState",
51
+ "zh-CN": "setModalState"
52
+ }
53
+ },
54
+ "name": "setGlobalState",
55
+ "setter": {
56
+ "componentName": "FunctionSetter",
57
+ "isRequired": true
58
+ }
59
+ },
60
+ {
61
+ "title": {
62
+ "label": {
63
+ "type": "i18n",
64
+ "en-US": "setState",
65
+ "zh-CN": "setState"
66
+ }
67
+ },
68
+ "name": "setState",
69
+ "setter": {
70
+ "componentName": "FunctionSetter",
71
+ "isRequired": true
72
+ }
73
+ },
74
+ {
75
+ "title": {
76
+ "label": {
77
+ "type": "i18n",
78
+ "en-US": "callback",
79
+ "zh-CN": "callback"
80
+ }
81
+ },
82
+ "name": "callback",
83
+ "setter": {
84
+ "componentName": "FunctionSetter",
85
+ "isRequired": true
86
+ }
87
+ },
88
+ {
89
+ "title": {
90
+ "label": {
91
+ "type": "i18n",
92
+ "en-US": "插槽",
93
+ "zh-CN": "插槽"
94
+ }
95
+ },
96
+ "name": "slot",
97
+ "propType": "node",
98
+ "setter": {
99
+ "componentName": "SlotSetter",
100
+ "initialValue": {
101
+ "type": "JSSlot",
102
+ },
103
+ },
104
+ },
105
+ ],
106
+ "supports": {},
107
+ "component": {}
108
+ }
109
+ };
110
+ const snippets: Snippet[] = [
111
+ {
112
+ "title": "VerticalAddService",
113
+ "screenshot": "",
114
+ "schema": {
115
+ "componentName": "VerticalAddService",
116
+ "props": {}
117
+ }
118
+ }
119
+ ];
120
+
121
+ export default {
122
+ ...VerticalAddServiceMeta,
123
+ snippets
124
+ };
@@ -0,0 +1,71 @@
1
+
2
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
+
4
+ const VerticalAddServiceMeta: ComponentMetadata = {
5
+ "componentName": "VerticalAddService",
6
+ "title": "VerticalAddService",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "@pisell/private-materials",
12
+ "version": "3.0.141",
13
+ "exportName": "VerticalAddService",
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": "globalState",
25
+ "zh-CN": "globalState"
26
+ }
27
+ },
28
+ "name": "globalState",
29
+ "setter": {
30
+ "componentName": "MixedSetter",
31
+ "isRequired": true,
32
+ "props": {}
33
+ }
34
+ },
35
+ {
36
+ "title": {
37
+ "label": {
38
+ "type": "i18n",
39
+ "en-US": "setGlobalState",
40
+ "zh-CN": "setGlobalState"
41
+ }
42
+ },
43
+ "name": "setGlobalState",
44
+ "setter": {
45
+ "componentName": "MixedSetter",
46
+ "isRequired": true,
47
+ "props": {}
48
+ }
49
+ }
50
+ ],
51
+ "supports": {
52
+ "style": true
53
+ },
54
+ "component": {}
55
+ }
56
+ };
57
+ const snippets: Snippet[] = [
58
+ {
59
+ "title": "VerticalAddService",
60
+ "screenshot": "",
61
+ "schema": {
62
+ "componentName": "VerticalAddService",
63
+ "props": {}
64
+ }
65
+ }
66
+ ];
67
+
68
+ export default {
69
+ ...VerticalAddServiceMeta,
70
+ snippets
71
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.161",
3
+ "version": "3.0.162-gray",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/utils": "1.0.42",
63
- "@pisell/date-picker": "1.0.100",
64
62
  "@pisell/icon": "0.0.11",
65
- "@pisell/materials": "3.0.49"
63
+ "@pisell/date-picker": "1.0.100",
64
+ "@pisell/utils": "1.0.42",
65
+ "@pisell/materials": "3.0.50-gray"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",