@pisell/private-materials 6.3.216 → 6.3.217
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.js +27 -27
- package/build/lowcode/view.js +27 -27
- package/es/components/appointmentBooking/components/Header/index.js +3 -1
- package/es/index.js +1 -0
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/pisellReservation/index.js +17 -0
- package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +2 -1
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Header/index.js +3 -1
- package/lowcode/allergy-selection-modal/meta.ts +451 -0
- package/lowcode/huifu-kiosk-panel/meta.ts +351 -0
- package/lowcode/pos-permission/meta.ts +233 -0
- package/package.json +21 -21
- package/es/private-materials/lowcode/authmodal/meta.d.ts +0 -1
|
@@ -10,7 +10,7 @@ import { locales } from "@pisell/utils";
|
|
|
10
10
|
import "./index.less";
|
|
11
11
|
//#region src/components/appointmentBooking/components/Header/index.tsx
|
|
12
12
|
const Header = () => {
|
|
13
|
-
var _currentStep$step3, _currentStep$index;
|
|
13
|
+
var _context$appHelper, _context$appHelper$is, _currentStep$step3, _currentStep$index;
|
|
14
14
|
const { currentStep, appointmentBooking, setTimes, carts, currentStepParams, currentSelectedResources } = useAppointmentBookingContext();
|
|
15
15
|
const shopDiscount = useShopDiscount();
|
|
16
16
|
const context = useEngineContext();
|
|
@@ -19,6 +19,7 @@ const Header = () => {
|
|
|
19
19
|
const { checkProductType } = useAppointmentBookingProduct();
|
|
20
20
|
const utils = contextUtils();
|
|
21
21
|
const progressBarRef = useRef(null);
|
|
22
|
+
const isIOS = Boolean((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$is = _context$appHelper.isIOS) === null || _context$appHelper$is === void 0 ? void 0 : _context$appHelper$is.call(_context$appHelper));
|
|
22
23
|
/**
|
|
23
24
|
* @title: 获取资源名称
|
|
24
25
|
* @description:
|
|
@@ -105,6 +106,7 @@ const Header = () => {
|
|
|
105
106
|
* 移动端浏览器/系统返回键:逐步触发 handleBack,第一步时打开关闭确认弹窗。
|
|
106
107
|
*/
|
|
107
108
|
const { restoreBackTrap } = useInterceptBrowserBack({
|
|
109
|
+
enabled: !isIOS,
|
|
108
110
|
stepIndex: (_currentStep$index = currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) !== null && _currentStep$index !== void 0 ? _currentStep$index : 0,
|
|
109
111
|
canGoBack: () => {
|
|
110
112
|
var _currentStep$index2;
|
package/es/index.js
CHANGED
|
@@ -106,6 +106,7 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
|
|
|
106
106
|
import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
|
|
107
107
|
import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
|
|
108
108
|
import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
|
|
109
|
+
import "./plus/pisellReservation/index.js";
|
|
109
110
|
import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
|
|
110
111
|
import pisellAdyenDashboard_default from "./plus/pisellAdyenDashboard/index.js";
|
|
111
112
|
import weekday from "dayjs/plugin/weekday";
|
|
@@ -259,4 +259,4 @@ function bookingListToReservationTableRows(bookings) {
|
|
|
259
259
|
return rows;
|
|
260
260
|
}
|
|
261
261
|
//#endregion
|
|
262
|
-
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds, hostBookingUiPatchFromRecord, isMonitorScheduleBookingSkipped, mergeBookingsForResourceRecord };
|
|
262
|
+
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds, hostBookingStatusToCardStatus, hostBookingUiPatchFromRecord, isMonitorScheduleBookingSkipped, mergeBookingsForResourceRecord };
|
|
@@ -79,4 +79,4 @@ function toastFloorPlanLoadError(err) {
|
|
|
79
79
|
PisellToast({ content: err instanceof Error ? err.message : String(err) });
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
|
-
export { PISELL_RESERVATION_FLOOR_PLAN_CODE, ensureShopFloorPlanByCode, saveViewConfigToShopFloorPlan, shopLayoutToSceneElements$1 as shopLayoutToSceneElements, toastFloorPlanLoadError, toastFloorPlanSaveError, unsubscribeShopFloorPlanCodeQuery };
|
|
82
|
+
export { PISELL_RESERVATION_FLOOR_PLAN_CODE, buildDefaultReservationFloorPlanPostBody, ensureShopFloorPlanByCode, putShopFloorPlan, saveViewConfigToShopFloorPlan, shopLayoutToSceneElements$1 as shopLayoutToSceneElements, toastFloorPlanLoadError, toastFloorPlanSaveError, unsubscribeShopFloorPlanCodeQuery };
|
|
@@ -927,4 +927,4 @@ function getReservationDataSourceFormColumns() {
|
|
|
927
927
|
];
|
|
928
928
|
}
|
|
929
929
|
//#endregion
|
|
930
|
-
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels, defaultReservationTableRows, getDefaultReservationFloorMapConfig, getReservationDataSourceFormColumns, getReservationFloorMapShellConfig, mergeFloorMapElementKindCategoriesWithDefaults, mergeFloorMapElementKindsWithDefaults };
|
|
930
|
+
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels, defaultReservationSceneElements, defaultReservationTableRows, getDefaultReservationFloorMapConfig, getReservationDataSourceFormColumns, getReservationFloorMapShellConfig, mergeFloorMapElementKindCategoriesWithDefaults, mergeFloorMapElementKindsWithDefaults };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./floorRoomCard/mapRowToFloorRoomCardData.js";
|
|
2
|
+
import "./floorRoomCard/ReservationFloorRoomCard.js";
|
|
3
|
+
import "./floorMap/reservationMock.js";
|
|
4
|
+
import "./floorMap/floorPlanApi.js";
|
|
5
|
+
import "./reservationConstants.js";
|
|
6
|
+
import "./serve/formResourcePage.js";
|
|
7
|
+
import "./data/bookingToReservationTables.js";
|
|
8
|
+
import "./data/formResourceToReservationTables.js";
|
|
9
|
+
import "./data/salesEmbeddedResourceToTableRows.js";
|
|
10
|
+
import "./floorMap/reservationCards.js";
|
|
11
|
+
import "./PisellReservation.js";
|
|
12
|
+
import "./PisellReservationBookingPage.js";
|
|
13
|
+
import "./PisellVenueControlPage.js";
|
|
14
|
+
import "./PisellVenueWallPage.js";
|
|
15
|
+
import "./PisellReservationTablePage.js";
|
|
16
|
+
import "./components/SelectFloorMapResourceDialog.js";
|
|
17
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import timezone from "dayjs/plugin/timezone";
|
|
4
|
+
import utc from "dayjs/plugin/utc";
|
|
5
5
|
//#region src/plus/saasDevice/devicePasscodes/model.ts
|
|
6
|
-
dayjs.extend(
|
|
7
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utc);
|
|
7
|
+
dayjs.extend(timezone);
|
|
8
8
|
const INITIAL_DEVICE_PASSCODE_STATE = {
|
|
9
9
|
deviceIds: [],
|
|
10
10
|
devicesById: {}
|
|
@@ -6,12 +6,12 @@ import React, { useCallback, useMemo } from "react";
|
|
|
6
6
|
import { locales } from "@pisell/utils";
|
|
7
7
|
import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
|
|
8
8
|
import { useRequest } from "ahooks";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import timezone from "dayjs/plugin/timezone";
|
|
10
|
+
import utc from "dayjs/plugin/utc";
|
|
11
11
|
import "./index.less";
|
|
12
12
|
//#region src/plus/walletPassGallery/components/timelineSection/index.tsx
|
|
13
|
-
dayjs.extend(
|
|
14
|
-
dayjs.extend(
|
|
13
|
+
dayjs.extend(timezone);
|
|
14
|
+
dayjs.extend(utc);
|
|
15
15
|
const stateTimeUnix = 1723255863;
|
|
16
16
|
const TimelineSection = (props) => {
|
|
17
17
|
const { code, tag, timezone, apiPrefix, isTerminalEnv, interaction, locale, translation, virtualCurrencyDisplay } = props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LoginFormData, OAuthConfig, PhoneAuthConfig, RegisterFormData, UIConfig, VerificationMethod } from "./shared/types.js";
|
|
1
2
|
import { Login2, Login2Config, Login2Events, Login2Props } from "./Login2.js";
|
|
2
3
|
import { Register2, Register2Config, Register2Events, Register2Props } from "./Register2.js";
|
|
3
|
-
import { AuthModal
|
|
4
|
+
import { AuthModal } from "./AuthModal.js";
|
|
@@ -226,4 +226,4 @@ interface RegisterFormData {
|
|
|
226
226
|
verification_token?: string;
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
-
export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig };
|
|
229
|
+
export { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
|
|
@@ -12,7 +12,7 @@ let _pisell_utils = require("@pisell/utils");
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
//#region src/components/appointmentBooking/components/Header/index.tsx
|
|
14
14
|
const Header = () => {
|
|
15
|
-
var _currentStep$step3, _currentStep$index;
|
|
15
|
+
var _context$appHelper, _context$appHelper$is, _currentStep$step3, _currentStep$index;
|
|
16
16
|
const { currentStep, appointmentBooking, setTimes, carts, currentStepParams, currentSelectedResources } = require_context.useAppointmentBookingContext();
|
|
17
17
|
const shopDiscount = require_hooks.useShopDiscount();
|
|
18
18
|
const context = require_useEngineContext.default();
|
|
@@ -21,6 +21,7 @@ const Header = () => {
|
|
|
21
21
|
const { checkProductType } = require_hooks.useAppointmentBookingProduct();
|
|
22
22
|
const utils = require_hooks.contextUtils();
|
|
23
23
|
const progressBarRef = (0, react.useRef)(null);
|
|
24
|
+
const isIOS = Boolean((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$is = _context$appHelper.isIOS) === null || _context$appHelper$is === void 0 ? void 0 : _context$appHelper$is.call(_context$appHelper));
|
|
24
25
|
/**
|
|
25
26
|
* @title: 获取资源名称
|
|
26
27
|
* @description:
|
|
@@ -107,6 +108,7 @@ const Header = () => {
|
|
|
107
108
|
* 移动端浏览器/系统返回键:逐步触发 handleBack,第一步时打开关闭确认弹窗。
|
|
108
109
|
*/
|
|
109
110
|
const { restoreBackTrap } = require_hooks.useInterceptBrowserBack({
|
|
111
|
+
enabled: !isIOS,
|
|
110
112
|
stepIndex: (_currentStep$index = currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) !== null && _currentStep$index !== void 0 ? _currentStep$index : 0,
|
|
111
113
|
canGoBack: () => {
|
|
112
114
|
var _currentStep$index2;
|
|
@@ -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
|
+
};
|