@pisell/private-materials 6.3.32 → 6.3.34
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 +151 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -8
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +98 -66
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/utils.js +0 -1
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +602 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/Login2.0/AuthModal.js +14 -8
- package/es/pro/Login2.0/Login2.js +52 -28
- package/es/pro/Login2.0/Register2.js +1 -1
- package/es/pro/Login2.0/components/phoneValidation.js +1 -1
- package/es/pro/Login2.0/index.less +11 -2
- package/es/pro/Login2.0/locales.js +112 -112
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +90 -51
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/utils.js +0 -1
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +498 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/Login2.0/AuthModal.js +16 -11
- package/lib/pro/Login2.0/Login2.js +14 -4
- package/lib/pro/Login2.0/Register2.js +1 -1
- package/lib/pro/Login2.0/components/phoneValidation.js +1 -1
- package/lib/pro/Login2.0/index.less +11 -2
- package/lib/pro/Login2.0/locales.js +112 -112
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +4 -4
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -0,0 +1,211 @@
|
|
|
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/plus/walletEditor/components/sortableWalletPassTypes/index.tsx
|
|
30
|
+
var sortableWalletPassTypes_exports = {};
|
|
31
|
+
__export(sortableWalletPassTypes_exports, {
|
|
32
|
+
DEFAULT_WALLET_PASS_TYPES_CONFIG: () => DEFAULT_WALLET_PASS_TYPES_CONFIG,
|
|
33
|
+
default: () => sortableWalletPassTypes_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(sortableWalletPassTypes_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_icons = require("@ant-design/icons");
|
|
38
|
+
var import_classnames = __toESM(require("classnames"));
|
|
39
|
+
var import_materials = require("@pisell/materials");
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var { Editable } = import_materials.PisellText;
|
|
42
|
+
var WALLET_PASS_TYPES = [
|
|
43
|
+
"rechargeable",
|
|
44
|
+
"point",
|
|
45
|
+
"voucher",
|
|
46
|
+
"discount"
|
|
47
|
+
];
|
|
48
|
+
var DEFAULT_WALLET_PASS_TYPES_CONFIG = [
|
|
49
|
+
{
|
|
50
|
+
type: "rechargeable",
|
|
51
|
+
custom_title: {
|
|
52
|
+
original: "Balance",
|
|
53
|
+
en: "Balance",
|
|
54
|
+
"zh-CN": "余额",
|
|
55
|
+
"zh-HK": "餘額"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "point",
|
|
60
|
+
custom_title: {
|
|
61
|
+
original: "Points",
|
|
62
|
+
en: "Points",
|
|
63
|
+
"zh-CN": "积分",
|
|
64
|
+
"zh-HK": "積分"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "voucher",
|
|
69
|
+
custom_title: {
|
|
70
|
+
original: "Voucher",
|
|
71
|
+
en: "Voucher",
|
|
72
|
+
"zh-CN": "代金券",
|
|
73
|
+
"zh-HK": "代金券"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "discount",
|
|
78
|
+
custom_title: {
|
|
79
|
+
original: "Discount",
|
|
80
|
+
en: "Discount",
|
|
81
|
+
"zh-CN": "折扣券",
|
|
82
|
+
"zh-HK": "折扣券"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
];
|
|
86
|
+
var SortableWalletPassTypes = (props) => {
|
|
87
|
+
const { value = [], onChange, disabled = false, className, style } = props;
|
|
88
|
+
const dataSource = (0, import_react.useMemo)(() => {
|
|
89
|
+
const result = [];
|
|
90
|
+
const processedTypes = /* @__PURE__ */ new Set();
|
|
91
|
+
value.forEach((item) => {
|
|
92
|
+
if (WALLET_PASS_TYPES.includes(item.type) && !processedTypes.has(item.type)) {
|
|
93
|
+
result.push(item);
|
|
94
|
+
processedTypes.add(item.type);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
DEFAULT_WALLET_PASS_TYPES_CONFIG.forEach((defaultType) => {
|
|
98
|
+
if (!processedTypes.has(defaultType.type)) {
|
|
99
|
+
result.push({
|
|
100
|
+
type: defaultType.type,
|
|
101
|
+
display: 0,
|
|
102
|
+
custom_title: defaultType.custom_title
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return result;
|
|
107
|
+
}, [value]);
|
|
108
|
+
const handleSortChange = (0, import_react.useCallback)(
|
|
109
|
+
(newList) => {
|
|
110
|
+
if (!onChange || disabled) return;
|
|
111
|
+
onChange(newList);
|
|
112
|
+
},
|
|
113
|
+
[onChange, disabled]
|
|
114
|
+
);
|
|
115
|
+
const handleToggleDisplay = (0, import_react.useCallback)(
|
|
116
|
+
(index) => {
|
|
117
|
+
if (!onChange || disabled) return;
|
|
118
|
+
const newList = [...dataSource];
|
|
119
|
+
newList[index] = {
|
|
120
|
+
...newList[index],
|
|
121
|
+
display: newList[index].display === 1 ? 0 : 1
|
|
122
|
+
};
|
|
123
|
+
onChange(newList);
|
|
124
|
+
},
|
|
125
|
+
[dataSource, onChange, disabled]
|
|
126
|
+
);
|
|
127
|
+
const handleTitleChange = (0, import_react.useCallback)(
|
|
128
|
+
(index, newTitle) => {
|
|
129
|
+
if (!onChange || disabled) return;
|
|
130
|
+
const newList = [...dataSource];
|
|
131
|
+
newList[index] = {
|
|
132
|
+
...newList[index],
|
|
133
|
+
custom_title: typeof newTitle === "string" ? { original: newTitle, en: newTitle } : newTitle
|
|
134
|
+
};
|
|
135
|
+
onChange(newList);
|
|
136
|
+
},
|
|
137
|
+
[dataSource, onChange, disabled]
|
|
138
|
+
);
|
|
139
|
+
const getDisplayTitle = (0, import_react.useCallback)((item) => {
|
|
140
|
+
const defaultType = DEFAULT_WALLET_PASS_TYPES_CONFIG.find(
|
|
141
|
+
(t) => t.type === item.type
|
|
142
|
+
);
|
|
143
|
+
return item.custom_title || (defaultType == null ? void 0 : defaultType.custom_title) || { original: item.type, en: item.type };
|
|
144
|
+
}, []);
|
|
145
|
+
const renderItem = (0, import_react.useCallback)(
|
|
146
|
+
(item, index) => {
|
|
147
|
+
const displayTitle = getDisplayTitle(item);
|
|
148
|
+
const isVisible = item.display === 1;
|
|
149
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
className: (0, import_classnames.default)("sortable-wallet-pass-item", {
|
|
153
|
+
"sortable-wallet-pass-item-disabled": disabled,
|
|
154
|
+
"sortable-wallet-pass-item-hidden": !isVisible
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "sortable-wallet-pass-drag-handle" }, /* @__PURE__ */ import_react.default.createElement(import_icons.HolderOutlined, { className: "drag-dots", size: 20 })),
|
|
158
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "sortable-wallet-pass-title" }, /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
Editable,
|
|
160
|
+
{
|
|
161
|
+
value: displayTitle,
|
|
162
|
+
editable: !disabled && {
|
|
163
|
+
maxLength: 10
|
|
164
|
+
},
|
|
165
|
+
onChange: (newValue) => handleTitleChange(index, newValue)
|
|
166
|
+
}
|
|
167
|
+
)),
|
|
168
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "sortable-wallet-pass-toggle" }, /* @__PURE__ */ import_react.default.createElement(
|
|
169
|
+
"button",
|
|
170
|
+
{
|
|
171
|
+
type: "button",
|
|
172
|
+
style: {
|
|
173
|
+
cursor: "pointer",
|
|
174
|
+
border: "none",
|
|
175
|
+
background: "transparent"
|
|
176
|
+
},
|
|
177
|
+
onClick: () => handleToggleDisplay(index)
|
|
178
|
+
},
|
|
179
|
+
isVisible ? /* @__PURE__ */ import_react.default.createElement(import_icons.EyeOutlined, { className: "eye-icon eye-icon-visible" }) : /* @__PURE__ */ import_react.default.createElement(import_icons.EyeInvisibleOutlined, { className: "eye-icon eye-icon-hidden" })
|
|
180
|
+
))
|
|
181
|
+
);
|
|
182
|
+
},
|
|
183
|
+
[disabled, getDisplayTitle, handleTitleChange, handleToggleDisplay]
|
|
184
|
+
);
|
|
185
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
186
|
+
"div",
|
|
187
|
+
{
|
|
188
|
+
className: (0, import_classnames.default)("sortable-wallet-pass-types", className, {
|
|
189
|
+
"sortable-wallet-pass-types-disabled": disabled
|
|
190
|
+
}),
|
|
191
|
+
style
|
|
192
|
+
},
|
|
193
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
194
|
+
import_materials.SortableList,
|
|
195
|
+
{
|
|
196
|
+
dataSource,
|
|
197
|
+
onChange: handleSortChange,
|
|
198
|
+
rowKey: "type",
|
|
199
|
+
renderItem,
|
|
200
|
+
activationConstraint: {
|
|
201
|
+
distance: 5
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
);
|
|
206
|
+
};
|
|
207
|
+
var sortableWalletPassTypes_default = SortableWalletPassTypes;
|
|
208
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
209
|
+
0 && (module.exports = {
|
|
210
|
+
DEFAULT_WALLET_PASS_TYPES_CONFIG
|
|
211
|
+
});
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.sortable-wallet-pass-types {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
|
|
5
|
+
&-disabled {
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
opacity: 0.6;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sortable-wallet-pass-item {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding: 4px 8px;
|
|
15
|
+
border-bottom: 1px solid #f0f0f0;
|
|
16
|
+
background: #fff;
|
|
17
|
+
transition: all 0.2s ease;
|
|
18
|
+
cursor: grab;
|
|
19
|
+
|
|
20
|
+
&:last-child {
|
|
21
|
+
border-bottom: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
background: #fafafa;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:active {
|
|
29
|
+
cursor: grabbing;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-disabled {
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background: #fff;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-hidden {
|
|
41
|
+
.sortable-wallet-pass-title {
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sortable-wallet-pass-drag-handle {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
margin-right: 8px;
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
cursor: grab;
|
|
54
|
+
line-height: 1;
|
|
55
|
+
|
|
56
|
+
.drag-dots {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:active {
|
|
61
|
+
cursor: grabbing;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.sortable-wallet-pass-title {
|
|
66
|
+
flex: 1;
|
|
67
|
+
margin-right: 12px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
min-height: 36px;
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
|
|
73
|
+
.pisell-text-editable {
|
|
74
|
+
min-width: 120px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sortable-wallet-pass-toggle {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
width: 24px;
|
|
83
|
+
height: 24px;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
border-radius: 4px;
|
|
86
|
+
transition: all 0.2s ease;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
background: #f5f5f5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.eye-icon {
|
|
93
|
+
font-size: 16px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 拖拽时的样式
|
|
98
|
+
.sortable-wallet-pass-item[data-dnd-dragging='true'] {
|
|
99
|
+
background: #e6f7ff;
|
|
100
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
101
|
+
border-radius: 6px;
|
|
102
|
+
transform: rotate(3deg);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// 拖拽占位符样式
|
|
106
|
+
.sortable-wallet-pass-item[data-dnd-placeholder='true'] {
|
|
107
|
+
background: #f0f2f5;
|
|
108
|
+
border: 2px dashed #d9d9d9;
|
|
109
|
+
opacity: 0.6;
|
|
110
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/plus/walletEditor/index.tsx
|
|
31
|
+
var walletEditor_exports = {};
|
|
32
|
+
__export(walletEditor_exports, {
|
|
33
|
+
default: () => walletEditor_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(walletEditor_exports);
|
|
36
|
+
var import_WalletEditor = __toESM(require("./WalletEditor"));
|
|
37
|
+
__reExport(walletEditor_exports, require("./types"), module.exports);
|
|
38
|
+
var walletEditor_default = import_WalletEditor.default;
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
...require("./types")
|
|
42
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
walletName: string;
|
|
4
|
+
validityPeriod: string;
|
|
5
|
+
linkedPasses: string;
|
|
6
|
+
linkedPassesDesc: string;
|
|
7
|
+
sort: string;
|
|
8
|
+
status: string;
|
|
9
|
+
distributionConditions: string;
|
|
10
|
+
selectPasses: string;
|
|
11
|
+
backgroundImage: string;
|
|
12
|
+
advancedSettings: string;
|
|
13
|
+
sendConfig: string;
|
|
14
|
+
displaySettings: string;
|
|
15
|
+
viewPreview: string;
|
|
16
|
+
coverImage: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
upload: string;
|
|
19
|
+
enable: string;
|
|
20
|
+
disable: string;
|
|
21
|
+
barCode: string;
|
|
22
|
+
qrCode: string;
|
|
23
|
+
day: string;
|
|
24
|
+
days: string;
|
|
25
|
+
month: string;
|
|
26
|
+
months: string;
|
|
27
|
+
year: string;
|
|
28
|
+
years: string;
|
|
29
|
+
forever: string;
|
|
30
|
+
custom: string;
|
|
31
|
+
balance: string;
|
|
32
|
+
point: string;
|
|
33
|
+
voucher: string;
|
|
34
|
+
discount: string;
|
|
35
|
+
rechargeable: string;
|
|
36
|
+
pleaseInputWalletName: string;
|
|
37
|
+
enterCoverImageURL: string;
|
|
38
|
+
enterJSONConfig: string;
|
|
39
|
+
selectValidityPeriod: string;
|
|
40
|
+
selectCustomDate: string;
|
|
41
|
+
registerToIssue: string;
|
|
42
|
+
};
|
|
43
|
+
'zh-CN': {
|
|
44
|
+
walletName: string;
|
|
45
|
+
validityPeriod: string;
|
|
46
|
+
linkedPasses: string;
|
|
47
|
+
linkedPassesDesc: string;
|
|
48
|
+
sort: string;
|
|
49
|
+
status: string;
|
|
50
|
+
distributionConditions: string;
|
|
51
|
+
selectPasses: string;
|
|
52
|
+
backgroundImage: string;
|
|
53
|
+
advancedSettings: string;
|
|
54
|
+
sendConfig: string;
|
|
55
|
+
displaySettings: string;
|
|
56
|
+
viewPreview: string;
|
|
57
|
+
coverImage: string;
|
|
58
|
+
icon: string;
|
|
59
|
+
upload: string;
|
|
60
|
+
enable: string;
|
|
61
|
+
disable: string;
|
|
62
|
+
barCode: string;
|
|
63
|
+
qrCode: string;
|
|
64
|
+
day: string;
|
|
65
|
+
days: string;
|
|
66
|
+
month: string;
|
|
67
|
+
months: string;
|
|
68
|
+
year: string;
|
|
69
|
+
years: string;
|
|
70
|
+
forever: string;
|
|
71
|
+
custom: string;
|
|
72
|
+
balance: string;
|
|
73
|
+
point: string;
|
|
74
|
+
voucher: string;
|
|
75
|
+
discount: string;
|
|
76
|
+
rechargeable: string;
|
|
77
|
+
pleaseInputWalletName: string;
|
|
78
|
+
enterCoverImageURL: string;
|
|
79
|
+
enterJSONConfig: string;
|
|
80
|
+
selectValidityPeriod: string;
|
|
81
|
+
selectCustomDate: string;
|
|
82
|
+
registerToIssue: string;
|
|
83
|
+
};
|
|
84
|
+
'zh-HK': {
|
|
85
|
+
walletName: string;
|
|
86
|
+
validityPeriod: string;
|
|
87
|
+
linkedPasses: string;
|
|
88
|
+
linkedPassesDesc: string;
|
|
89
|
+
sort: string;
|
|
90
|
+
status: string;
|
|
91
|
+
distributionConditions: string;
|
|
92
|
+
selectPasses: string;
|
|
93
|
+
backgroundImage: string;
|
|
94
|
+
advancedSettings: string;
|
|
95
|
+
sendConfig: string;
|
|
96
|
+
displaySettings: string;
|
|
97
|
+
viewPreview: string;
|
|
98
|
+
coverImage: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
upload: string;
|
|
101
|
+
enable: string;
|
|
102
|
+
disable: string;
|
|
103
|
+
barCode: string;
|
|
104
|
+
qrCode: string;
|
|
105
|
+
day: string;
|
|
106
|
+
days: string;
|
|
107
|
+
month: string;
|
|
108
|
+
months: string;
|
|
109
|
+
year: string;
|
|
110
|
+
years: string;
|
|
111
|
+
forever: string;
|
|
112
|
+
custom: string;
|
|
113
|
+
balance: string;
|
|
114
|
+
point: string;
|
|
115
|
+
voucher: string;
|
|
116
|
+
discount: string;
|
|
117
|
+
rechargeable: string;
|
|
118
|
+
pleaseInputWalletName: string;
|
|
119
|
+
enterCoverImageURL: string;
|
|
120
|
+
enterJSONConfig: string;
|
|
121
|
+
selectValidityPeriod: string;
|
|
122
|
+
selectCustomDate: string;
|
|
123
|
+
registerToIssue: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export default _default;
|
|
@@ -0,0 +1,167 @@
|
|
|
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/walletEditor/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
// Form Labels
|
|
28
|
+
walletName: "Wallet name",
|
|
29
|
+
validityPeriod: "Validity Period",
|
|
30
|
+
linkedPasses: "Linked passes",
|
|
31
|
+
linkedPassesDesc: "Select the passes that will be available in this Wallet.",
|
|
32
|
+
sort: "Sort",
|
|
33
|
+
status: "Status",
|
|
34
|
+
distributionConditions: "Issuance conditions",
|
|
35
|
+
selectPasses: "Select passes",
|
|
36
|
+
backgroundImage: "Background image",
|
|
37
|
+
advancedSettings: "Advanced Settings",
|
|
38
|
+
sendConfig: "Send Config",
|
|
39
|
+
displaySettings: "Display settings",
|
|
40
|
+
viewPreview: "View Preview",
|
|
41
|
+
coverImage: "Cover Image",
|
|
42
|
+
icon: "Icon",
|
|
43
|
+
upload: "Upload",
|
|
44
|
+
// Status Options
|
|
45
|
+
enable: "Enable",
|
|
46
|
+
disable: "Disable",
|
|
47
|
+
// Barcode Types
|
|
48
|
+
barCode: "Barcode",
|
|
49
|
+
qrCode: "QR Code",
|
|
50
|
+
// Validity Period Options
|
|
51
|
+
day: "day",
|
|
52
|
+
days: "days",
|
|
53
|
+
month: "month",
|
|
54
|
+
months: "months",
|
|
55
|
+
year: "year",
|
|
56
|
+
years: "years",
|
|
57
|
+
forever: "Forever",
|
|
58
|
+
custom: "Custom",
|
|
59
|
+
// Wallet Pass Types
|
|
60
|
+
balance: "Balance",
|
|
61
|
+
point: "Points",
|
|
62
|
+
voucher: "Voucher",
|
|
63
|
+
discount: "Discount",
|
|
64
|
+
rechargeable: "Rechargeable",
|
|
65
|
+
// Messages
|
|
66
|
+
pleaseInputWalletName: "Please input wallet name!",
|
|
67
|
+
enterCoverImageURL: "Enter cover image URL",
|
|
68
|
+
enterJSONConfig: 'Enter JSON config, e.g. {"type": "register"}',
|
|
69
|
+
selectValidityPeriod: "Select validity period",
|
|
70
|
+
selectCustomDate: "Select custom date",
|
|
71
|
+
registerToIssue: "Register to issue"
|
|
72
|
+
},
|
|
73
|
+
"zh-CN": {
|
|
74
|
+
// 表单标签
|
|
75
|
+
walletName: "钱包名称",
|
|
76
|
+
validityPeriod: "有效期",
|
|
77
|
+
linkedPasses: "包含的卡券",
|
|
78
|
+
linkedPassesDesc: "选择此 Wallet 中可展示与使用的卡券。",
|
|
79
|
+
sort: "排序",
|
|
80
|
+
status: "状态",
|
|
81
|
+
distributionConditions: "发放条件",
|
|
82
|
+
selectPasses: "选择卡券",
|
|
83
|
+
backgroundImage: "背景图",
|
|
84
|
+
advancedSettings: "高级设置",
|
|
85
|
+
sendConfig: "发送配置",
|
|
86
|
+
displaySettings: "显示设置",
|
|
87
|
+
viewPreview: "查看预览",
|
|
88
|
+
coverImage: "封面图片",
|
|
89
|
+
icon: "图标",
|
|
90
|
+
upload: "上传",
|
|
91
|
+
// 状态选项
|
|
92
|
+
enable: "启用",
|
|
93
|
+
disable: "禁用",
|
|
94
|
+
// 条形码类型
|
|
95
|
+
barCode: "条形码",
|
|
96
|
+
qrCode: "二维码",
|
|
97
|
+
// 有效期选项
|
|
98
|
+
day: "天",
|
|
99
|
+
days: "天",
|
|
100
|
+
month: "个月",
|
|
101
|
+
months: "个月",
|
|
102
|
+
year: "年",
|
|
103
|
+
years: "年",
|
|
104
|
+
forever: "永久",
|
|
105
|
+
custom: "自定义",
|
|
106
|
+
// 钱包通行证类型
|
|
107
|
+
balance: "余额",
|
|
108
|
+
point: "积分",
|
|
109
|
+
voucher: "代金券",
|
|
110
|
+
discount: "折扣券",
|
|
111
|
+
rechargeable: "充值卡",
|
|
112
|
+
// 消息
|
|
113
|
+
pleaseInputWalletName: "请输入钱包名称!",
|
|
114
|
+
enterCoverImageURL: "输入封面图片URL",
|
|
115
|
+
enterJSONConfig: '输入JSON配置,例如 {"type": "register"}',
|
|
116
|
+
selectValidityPeriod: "选择有效期",
|
|
117
|
+
selectCustomDate: "选择自定义日期",
|
|
118
|
+
registerToIssue: "注册即发放"
|
|
119
|
+
},
|
|
120
|
+
"zh-HK": {
|
|
121
|
+
// 表單標籤
|
|
122
|
+
walletName: "錢包名稱",
|
|
123
|
+
validityPeriod: "有效期",
|
|
124
|
+
linkedPasses: "包含的卡券",
|
|
125
|
+
linkedPassesDesc: "選擇此 Wallet 中可展示與使用的卡券。",
|
|
126
|
+
sort: "排序",
|
|
127
|
+
status: "狀態",
|
|
128
|
+
distributionConditions: "發放條件",
|
|
129
|
+
selectPasses: "選擇卡券",
|
|
130
|
+
backgroundImage: "背景圖",
|
|
131
|
+
advancedSettings: "高級設置",
|
|
132
|
+
sendConfig: "發送配置",
|
|
133
|
+
displaySettings: "顯示設置",
|
|
134
|
+
viewPreview: "查看預覽",
|
|
135
|
+
coverImage: "封面圖片",
|
|
136
|
+
icon: "圖標",
|
|
137
|
+
upload: "上傳",
|
|
138
|
+
// 狀態選項
|
|
139
|
+
enable: "啟用",
|
|
140
|
+
disable: "禁用",
|
|
141
|
+
// 條形碼類型
|
|
142
|
+
barCode: "條形碼",
|
|
143
|
+
qrCode: "二維碼",
|
|
144
|
+
// 有效期選項
|
|
145
|
+
day: "天",
|
|
146
|
+
days: "天",
|
|
147
|
+
month: "個月",
|
|
148
|
+
months: "個月",
|
|
149
|
+
year: "年",
|
|
150
|
+
years: "年",
|
|
151
|
+
forever: "永久",
|
|
152
|
+
custom: "自定義",
|
|
153
|
+
// 錢包通行證類型
|
|
154
|
+
balance: "餘額",
|
|
155
|
+
point: "積分",
|
|
156
|
+
voucher: "代金券",
|
|
157
|
+
discount: "折扣券",
|
|
158
|
+
rechargeable: "充值卡",
|
|
159
|
+
// 消息
|
|
160
|
+
pleaseInputWalletName: "請輸入錢包名稱!",
|
|
161
|
+
enterCoverImageURL: "輸入封面圖片URL",
|
|
162
|
+
enterJSONConfig: '輸入JSON配置,例如 {"type": "register"}',
|
|
163
|
+
selectValidityPeriod: "選擇有效期",
|
|
164
|
+
selectCustomDate: "選擇自定義日期",
|
|
165
|
+
registerToIssue: "註冊即發放"
|
|
166
|
+
}
|
|
167
|
+
};
|