@pisell/private-materials 3.0.151-gray → 3.0.151
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/components/footer/index.js +3 -3
- package/es/components/booking/forms/forms.d.ts +0 -1
- package/es/components/booking/forms/forms.js +2 -4
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +3 -4
- package/es/components/booking/info/index.js +1 -2
- package/es/components/booking/info/index.less +0 -9
- package/es/components/booking/info/pet/index.js +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +2 -8
- package/es/components/booking/info/service/addService/index.js +36 -82
- package/es/components/booking/info/service/addService/index.less +1 -27
- package/es/components/booking/info/service/editService/index.js +9 -7
- package/es/components/booking/locales.d.ts +0 -48
- package/es/components/booking/locales.js +3 -51
- package/es/components/booking/model.d.ts +0 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/booking/utils.d.ts +1 -1
- package/es/components/booking/utils.js +51 -54
- package/es/components/eftposPay/index.js +2 -0
- package/es/components/eftposPay/tyro/index.js +11 -8
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +2 -1
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +5 -4
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +2 -1
- package/es/components/pay/toC/utils.d.ts +11 -0
- package/es/components/pay/toC/utils.js +27 -0
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/components/footer/index.js +3 -3
- package/lib/components/booking/forms/forms.d.ts +0 -1
- package/lib/components/booking/forms/forms.js +2 -5
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +2 -4
- package/lib/components/booking/info/client/index.js +8 -1
- package/lib/components/booking/info/index.js +1 -4
- package/lib/components/booking/info/index.less +0 -9
- package/lib/components/booking/info/pet/index.js +1 -2
- package/lib/components/booking/info/service/addService/index.d.ts +2 -8
- package/lib/components/booking/info/service/addService/index.js +29 -67
- package/lib/components/booking/info/service/addService/index.less +1 -27
- package/lib/components/booking/info/service/editService/index.js +3 -6
- package/lib/components/booking/locales.d.ts +0 -48
- package/lib/components/booking/locales.js +3 -51
- package/lib/components/booking/model.d.ts +0 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/booking/utils.d.ts +1 -1
- package/lib/components/booking/utils.js +22 -57
- package/lib/components/eftposPay/index.js +2 -0
- package/lib/components/eftposPay/tyro/index.js +7 -6
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +5 -1
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +6 -3
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +5 -1
- package/lib/components/pay/toC/utils.d.ts +11 -0
- package/lib/components/pay/toC/utils.js +26 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/package.json +4 -4
- package/es/components/booking/dashboard/index.d.ts +0 -10
- package/es/components/booking/dashboard/index.js +0 -242
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/dashboard/serve.js +0 -27
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/addServiceVariant/index.js +0 -33
- package/lib/components/booking/dashboard/index.d.ts +0 -10
- package/lib/components/booking/dashboard/index.js +0 -225
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/dashboard/serve.js +0 -33
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/addServiceVariant/index.js +0 -58
- package/lowcode/booking-dashboard/meta.ts +0 -130
- package/lowcode/booking-vertical-add-service/meta.ts +0 -124
- package/lowcode/vertical-add-service/meta.ts +0 -71
|
@@ -1,58 +0,0 @@
|
|
|
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/booking/info/addServiceVariant/index.tsx
|
|
30
|
-
var addServiceVariant_exports = {};
|
|
31
|
-
__export(addServiceVariant_exports, {
|
|
32
|
-
default: () => addServiceVariant_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(addServiceVariant_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_addService = __toESM(require("../service/addService"));
|
|
37
|
-
var AddServiceVariant = (props) => {
|
|
38
|
-
const { globalState, setGlobalState } = props;
|
|
39
|
-
const stateRef = (0, import_react.useRef)(globalState);
|
|
40
|
-
stateRef.current = globalState;
|
|
41
|
-
const dispatch = ({ type, payload }) => {
|
|
42
|
-
if (type === "setService") {
|
|
43
|
-
setGlobalState({
|
|
44
|
-
service: { ...stateRef.current.service, ...payload }
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
-
import_addService.default,
|
|
50
|
-
{
|
|
51
|
-
renderMode: "current",
|
|
52
|
-
dispatch,
|
|
53
|
-
state: globalState,
|
|
54
|
-
drawerProps: { open: true, getContainer: false }
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
var addServiceVariant_default = AddServiceVariant;
|
|
@@ -1,130 +0,0 @@
|
|
|
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
|
-
},
|
|
113
|
-
component: {},
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
const snippets: Snippet[] = [
|
|
117
|
-
{
|
|
118
|
-
title: 'BookingDashboard',
|
|
119
|
-
screenshot: '',
|
|
120
|
-
schema: {
|
|
121
|
-
componentName: 'BookingDashboard',
|
|
122
|
-
props: {},
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
];
|
|
126
|
-
|
|
127
|
-
export default {
|
|
128
|
-
...BookingDashboardMeta,
|
|
129
|
-
snippets,
|
|
130
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
};
|