@pisell/materials 3.3.57 → 3.3.58

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 (78) 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 +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +33 -18
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +33 -18
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +199 -19
  20. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +5 -0
  21. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.js +66 -0
  22. package/es/components/dataSourceComponents/fields/Upload/index.less +35 -3
  23. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  25. package/es/components/iconfont/index.d.ts +8 -0
  26. package/es/components/pisell-config-provider/context.d.ts +20 -0
  27. package/es/components/pisell-config-provider/index.d.ts +12 -0
  28. package/es/components/pisellCamera/index.d.ts +4 -0
  29. package/es/components/pisellCamera/index.js +228 -0
  30. package/es/components/pisellCamera/index.less +131 -0
  31. package/es/components/pisellCheckboxGroup/index.d.ts +37 -0
  32. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  33. package/es/components/pisellToast/index.d.ts +16 -0
  34. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  35. package/es/components/productCard/components/Action/index.d.ts +3 -0
  36. package/es/components/productCard/components/Header/index.d.ts +3 -0
  37. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  38. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  39. package/es/components/productCard/locales.d.ts +84 -0
  40. package/es/components/select-time/index.d.ts +0 -1
  41. package/es/components/table/Table/AddFieldModal/index.d.ts +3 -0
  42. package/es/locales/en-US.d.ts +289 -0
  43. package/es/locales/en-US.js +81 -69
  44. package/es/locales/zh-CN.d.ts +284 -0
  45. package/es/locales/zh-CN.js +82 -70
  46. package/es/locales/zh-TW.d.ts +284 -0
  47. package/es/locales/zh-TW.js +82 -70
  48. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +168 -5
  49. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +5 -0
  50. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.js +95 -0
  51. package/lib/components/dataSourceComponents/fields/Upload/index.less +35 -3
  52. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +1 -0
  53. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  54. package/lib/components/iconfont/index.d.ts +8 -0
  55. package/lib/components/pisell-config-provider/context.d.ts +20 -0
  56. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  57. package/lib/components/pisellCamera/index.d.ts +4 -0
  58. package/lib/components/pisellCamera/index.js +222 -0
  59. package/lib/components/pisellCamera/index.less +131 -0
  60. package/lib/components/pisellCheckboxGroup/index.d.ts +37 -0
  61. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  62. package/lib/components/pisellToast/index.d.ts +16 -0
  63. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  64. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  65. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  66. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  67. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  68. package/lib/components/productCard/locales.d.ts +84 -0
  69. package/lib/components/select-time/index.d.ts +0 -1
  70. package/lib/components/table/Table/AddFieldModal/index.d.ts +3 -0
  71. package/lib/locales/en-US.d.ts +289 -0
  72. package/lib/locales/en-US.js +13 -1
  73. package/lib/locales/zh-CN.d.ts +284 -0
  74. package/lib/locales/zh-CN.js +13 -1
  75. package/lib/locales/zh-TW.d.ts +284 -0
  76. package/lib/locales/zh-TW.js +13 -1
  77. package/lowcode/form-item-upload/meta.ts +20 -5
  78. package/package.json +2 -1
@@ -0,0 +1,222 @@
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/pisellCamera/index.tsx
30
+ var pisellCamera_exports = {};
31
+ __export(pisellCamera_exports, {
32
+ default: () => pisellCamera_default
33
+ });
34
+ module.exports = __toCommonJS(pisellCamera_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_react_camera_pro = require("react-camera-pro");
37
+ var import_iconfont = __toESM(require("../iconfont"));
38
+ var import_locales = require("../../locales");
39
+ var import_pisellModal = __toESM(require("../../components/pisellModal"));
40
+ var import_index = require("./index.less");
41
+ var PisellCamera = (0, import_react.forwardRef)((props, ref) => {
42
+ const cameraRef = (0, import_react.useRef)(null);
43
+ const [open, setOpen] = (0, import_react.useState)(false);
44
+ const [photo, setPhoto] = (0, import_react.useState)("");
45
+ const [cameraAvailable, setCameraAvailable] = (0, import_react.useState)(null);
46
+ const uploadFileRef = (0, import_react.useRef)(null);
47
+ const base64ToFile = (base64String, filename) => {
48
+ var _a;
49
+ const arr = base64String.split(",");
50
+ const mime = ((_a = arr[0].match(/:(.*?);/)) == null ? void 0 : _a[1]) || "";
51
+ const bstr = atob(arr[1]);
52
+ let n = bstr.length;
53
+ const u8arr = new Uint8Array(n);
54
+ while (n--) {
55
+ u8arr[n] = bstr.charCodeAt(n);
56
+ }
57
+ return new File([u8arr], filename, { type: mime });
58
+ };
59
+ const takePhoto = () => {
60
+ var _a, _b;
61
+ if (!cameraRef.current || !cameraRef.current.takePhoto) {
62
+ return;
63
+ }
64
+ try {
65
+ const photo2 = (_b = (_a = cameraRef.current) == null ? void 0 : _a.takePhoto) == null ? void 0 : _b.call(_a);
66
+ const timestamp = Date.now();
67
+ const filename = `photo-${timestamp}.jpg`;
68
+ setPhoto(photo2);
69
+ const file = base64ToFile(photo2, filename);
70
+ const uploadFile = {
71
+ uid: timestamp.toString(),
72
+ name: filename,
73
+ status: "uploading",
74
+ url: photo2,
75
+ // 用于预览
76
+ originFileObj: file,
77
+ // 原始文件对象,用于上传
78
+ thumbUrl: photo2,
79
+ lastModified: Date.now(),
80
+ lastModifiedDate: /* @__PURE__ */ new Date(),
81
+ type: "image/jpeg",
82
+ size: file.size
83
+ };
84
+ console.log("takePhoto_uploadFile", uploadFile);
85
+ uploadFileRef.current = uploadFile;
86
+ return uploadFile;
87
+ } catch (error) {
88
+ console.error("takePhoto_error", error);
89
+ uploadFileRef.current = null;
90
+ setPhoto("");
91
+ return null;
92
+ }
93
+ };
94
+ const onOpen = () => {
95
+ setCameraAvailable(null);
96
+ setPhoto("");
97
+ uploadFileRef.current = null;
98
+ setOpen(true);
99
+ };
100
+ const onClose = () => {
101
+ cameraRef.current = null;
102
+ uploadFileRef.current = null;
103
+ setOpen(false);
104
+ setPhoto("");
105
+ setCameraAvailable(null);
106
+ };
107
+ const onRetakePhoto = () => {
108
+ setPhoto("");
109
+ };
110
+ const onUsePhoto = () => {
111
+ var _a;
112
+ (_a = props == null ? void 0 : props.onChange) == null ? void 0 : _a.call(props, uploadFileRef.current);
113
+ onClose();
114
+ };
115
+ (0, import_react.useImperativeHandle)(ref, () => {
116
+ return {
117
+ open: onOpen,
118
+ takePhoto,
119
+ isCameraAvailable: () => cameraAvailable
120
+ };
121
+ });
122
+ console.log("cameraAvailable", cameraAvailable);
123
+ return /* @__PURE__ */ import_react.default.createElement(
124
+ import_pisellModal.default,
125
+ {
126
+ open,
127
+ onCancel: (e) => {
128
+ e.stopPropagation();
129
+ e.preventDefault();
130
+ onClose();
131
+ },
132
+ header: false,
133
+ footer: null,
134
+ destroyOnClose: true,
135
+ bodyStyle: { padding: 0 },
136
+ width: "90vw",
137
+ className: "pisell-camera-modal"
138
+ },
139
+ /* @__PURE__ */ import_react.default.createElement(
140
+ "div",
141
+ {
142
+ className: "pisell-camera-container",
143
+ onClick: (e) => {
144
+ e.stopPropagation();
145
+ e.preventDefault();
146
+ }
147
+ },
148
+ cameraAvailable === null ? (
149
+ // 检测中
150
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-loading" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-loading-text" }, (0, import_locales.getText)("pisell-camera-checking")))
151
+ ) : cameraAvailable === false ? (
152
+ // 无摄像头
153
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-no-camera" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-no-camera-icon" }, "📷"), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-no-camera-text" }, (0, import_locales.getText)("pisell-camera-no-camera-accessible")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-no-camera-desc" }, (0, import_locales.getText)("pisell-camera-no-camera-desc")))
154
+ ) : null,
155
+ /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
156
+ import_react_camera_pro.Camera,
157
+ {
158
+ ref: cameraRef,
159
+ facingMode: "environment",
160
+ errorMessages: {
161
+ // noCameraAccessible: getText('pisell-camera-no-camera-accessible'),
162
+ // permissionDenied: getText('pisell-camera-permission-denied'),
163
+ // switchCamera: getText('pisell-camera-switch-camera'),
164
+ // canvas: getText('pisell-camera-canvas'),
165
+ },
166
+ numberOfCamerasCallback: (numberOfCameras) => {
167
+ console.log("numberOfCameras", numberOfCameras);
168
+ if (!cameraRef.current) {
169
+ return;
170
+ }
171
+ if (numberOfCameras <= 0) {
172
+ setTimeout(() => {
173
+ setCameraAvailable((pre) => {
174
+ if (pre === true) {
175
+ return true;
176
+ }
177
+ return false;
178
+ });
179
+ }, 5e3);
180
+ } else {
181
+ setCameraAvailable(true);
182
+ }
183
+ }
184
+ }
185
+ ), cameraAvailable === true && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-action" }, /* @__PURE__ */ import_react.default.createElement(
186
+ "div",
187
+ {
188
+ className: "pisell-camera-action-item-wrap",
189
+ onClick: (e) => {
190
+ e.stopPropagation();
191
+ e.preventDefault();
192
+ takePhoto();
193
+ }
194
+ },
195
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-action-item" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-camera-01", style: { fontSize: 32 } }))
196
+ )), photo && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-photo-container" }, /* @__PURE__ */ import_react.default.createElement("img", { src: photo, alt: "photo", className: "pisell-camera-photo" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-camera-photo-img-action" }, /* @__PURE__ */ import_react.default.createElement(
197
+ "div",
198
+ {
199
+ className: "pisell-camera-photo-img-action-item",
200
+ onClick: (e) => {
201
+ e.stopPropagation();
202
+ e.preventDefault();
203
+ onRetakePhoto();
204
+ }
205
+ },
206
+ (0, import_locales.getText)("pisell-upload-camera-retake")
207
+ ), /* @__PURE__ */ import_react.default.createElement(
208
+ "div",
209
+ {
210
+ className: "pisell-camera-photo-img-action-item",
211
+ onClick: (e) => {
212
+ e.stopPropagation();
213
+ e.preventDefault();
214
+ onUsePhoto();
215
+ }
216
+ },
217
+ (0, import_locales.getText)("pisell-upload-camera-use")
218
+ ))))
219
+ )
220
+ );
221
+ });
222
+ var pisellCamera_default = PisellCamera;
@@ -0,0 +1,131 @@
1
+ .pisell-camera-modal {
2
+ .pisell-camera-container {
3
+ width: 100%;
4
+ height: 90vh;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ justify-content: center;
9
+
10
+ .pisell-camera-action {
11
+ position: absolute;
12
+ bottom: 0;
13
+ left: 0;
14
+ right: 0;
15
+ height: 100px;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+
20
+ .pisell-camera-action-item-wrap {
21
+ box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
22
+ cursor: pointer;
23
+ padding: 6px;
24
+ border-radius: 50%;
25
+ border: 2px solid #fff;
26
+
27
+ .pisell-camera-action-item {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: 60px;
32
+ height: 60px;
33
+ background-color: #fff;
34
+ border-radius: 50%;
35
+ }
36
+ }
37
+
38
+ }
39
+
40
+ .pisell-camera-photo-container {
41
+ position: absolute;
42
+ top: 0;
43
+ left: 0;
44
+ right: 0;
45
+ bottom: 0;
46
+ width: 100%;
47
+ height: 100%;
48
+
49
+ .pisell-camera-photo {
50
+ width: 100%;
51
+ height: 100%;
52
+ object-fit: cover;
53
+ }
54
+ }
55
+
56
+ .pisell-camera-photo-img-action {
57
+ position: absolute;
58
+ bottom: 0;
59
+ left: 0;
60
+ right: 0;
61
+ height: 100px;
62
+ display: flex;
63
+ flex-direction: row;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ background-color: rgba(0, 0, 0, 0.5);
67
+
68
+ .pisell-camera-photo-img-action-item {
69
+ padding: 20px 60px;
70
+ font-size: 20px;
71
+ color: #fff;
72
+ cursor: pointer;
73
+ }
74
+ }
75
+
76
+ .pisell-camera-loading {
77
+ position: absolute;
78
+ top: 0;
79
+ left: 0;
80
+ right: 0;
81
+ bottom: 0;
82
+ background-color: transparent;
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+
87
+ .pisell-camera-loading-text {
88
+ font-size: 18px;
89
+ color: #666;
90
+ }
91
+ }
92
+
93
+ .pisell-camera-no-camera {
94
+ position: absolute;
95
+ top: 0;
96
+ left: 0;
97
+ right: 0;
98
+ bottom: 0;
99
+ background-color: #ffffff;
100
+ display: flex;
101
+ flex-direction: column;
102
+ align-items: center;
103
+ justify-content: center;
104
+ width: 100%;
105
+ height: 100%;
106
+ background-color: #f5f5f5;
107
+ padding: 40px;
108
+ text-align: center;
109
+
110
+ .pisell-camera-no-camera-icon {
111
+ font-size: 64px;
112
+ margin-bottom: 20px;
113
+ opacity: 0.6;
114
+ }
115
+
116
+ .pisell-camera-no-camera-text {
117
+ font-size: 20px;
118
+ color: #333;
119
+ margin-bottom: 12px;
120
+ font-weight: 500;
121
+ }
122
+
123
+ .pisell-camera-no-camera-desc {
124
+ font-size: 14px;
125
+ color: #666;
126
+ line-height: 1.5;
127
+ max-width: 300px;
128
+ }
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export interface PisellCheckboxGroupOption {
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ [key: string]: any;
9
+ }
10
+ declare type PisellCheckboxGroupValue = string | string[] | any;
11
+ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ platform?: PisellContextType['platform'];
13
+ direction?: 'horizontal' | 'vertical';
14
+ fullWidth?: boolean;
15
+ gap?: number;
16
+ padding?: number;
17
+ options: PisellCheckboxGroupOption[];
18
+ onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
+ value?: PisellCheckboxGroupValue;
20
+ renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
+ rowKey?: string;
22
+ mode?: 'multiple' | 'single';
23
+ iconPosition?: 'left' | 'right' | 'hide';
24
+ optionClassName?: string;
25
+ optionActiveClassName?: string;
26
+ onChangeDebounce?: boolean;
27
+ }
28
+ /**
29
+ * @title: PisellCheckboxGroup
30
+ * @description: 选中组件
31
+ * @param {PisellCheckboxGroupProps} props
32
+ * @return {*}
33
+ * @Author: zhiwei.Wang
34
+ * @Date: 2024-08-16 10:34
35
+ */
36
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
37
+ export default PisellCheckboxGroup;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellToastProps {
4
+ /** 提示内容 */
5
+ content: React.ReactNode;
6
+ /** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
7
+ duration?: number;
8
+ /** 是否展示action */
9
+ showAction?: boolean;
10
+ /** action文案 */
11
+ actionText?: string;
12
+ /** 关闭时触发的回调函数 */
13
+ onClose?: () => void;
14
+ }
15
+ declare const PisellToast: (props: PisellToastProps) => void;
16
+ export default PisellToast;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
3
+ export default Action;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: (props: any) => JSX.Element;
3
+ export default Header;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
+ export default Sales;
@@ -0,0 +1,13 @@
1
+ import './index.less';
2
+ interface SelectHolderModalProps {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ onConfirm: (value: any) => void;
6
+ lists: any[];
7
+ value: any[];
8
+ holderMaxCount: number;
9
+ addHolderButtonText: string;
10
+ onAdd: () => void;
11
+ }
12
+ declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
13
+ export default SelectHolderModal;
@@ -0,0 +1,84 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.minute': (val: number) => string;
6
+ 'pisell2.product.card.discount.reason': string;
7
+ 'pisell2.product.card.discount.note': string;
8
+ 'pisell2.product.card.edit': string;
9
+ 'pisell2.product.card.discount.add.note': string;
10
+ 'pisell2.product.card.discount.edit.note': string;
11
+ 'pisell2.product.card.confirm': string;
12
+ 'pisell2.product.card.cancel': string;
13
+ 'pisell2.product.card.note.pla': string;
14
+ 'pisell2.product.card.items.package': string;
15
+ 'pisell2.product.card.view-all': string;
16
+ 'pisell2.product.card.view-less': string;
17
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
+ 'pisell2.product.card.add.holder.modal.title.1': string;
21
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
+ 'pisell2.product.card.sales': string;
23
+ 'pisell2.product.card.add.holder.modal.cancel': string;
24
+ 'pisell2.product.card.add.holder.modal.clear': string;
25
+ 'pisell2.product.card.add.holder.modal.apply': string;
26
+ 'pisell2.product.card.add.holder.modal.add': string;
27
+ 'pisell2.product.card.closing-soon.warning': string;
28
+ };
29
+ 'zh-CN': {
30
+ 'pisell2.product.card.edit': string;
31
+ 'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
33
+ 'pisell2.product.card.minute': (val: number) => string;
34
+ 'pisell2.product.card.discount.reason': string;
35
+ 'pisell2.product.card.discount.note': string;
36
+ 'pisell2.product.card.discount.add.note': string;
37
+ 'pisell2.product.card.discount.edit.note': string;
38
+ 'pisell2.product.card.confirm': string;
39
+ 'pisell2.product.card.cancel': string;
40
+ 'pisell2.product.card.note.pla': string;
41
+ 'pisell2.product.card.items.package': string;
42
+ 'pisell2.product.card.view-all': string;
43
+ 'pisell2.product.card.view-less': string;
44
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
+ 'pisell2.product.card.add.holder.modal.title.1': string;
48
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
+ 'pisell2.product.card.sales': string;
50
+ 'pisell2.product.card.add.holder.modal.cancel': string;
51
+ 'pisell2.product.card.add.holder.modal.clear': string;
52
+ 'pisell2.product.card.add.holder.modal.apply': string;
53
+ 'pisell2.product.card.add.holder.modal.add': string;
54
+ 'pisell2.product.card.closing-soon.warning': string;
55
+ };
56
+ 'zh-HK': {
57
+ 'pisell2.product.card.edit': string;
58
+ 'pisell2.product.card.day': (val: number) => string;
59
+ 'pisell2.product.card.day.event': (val: number) => string;
60
+ 'pisell2.product.card.minute': (val: number) => string;
61
+ 'pisell2.product.card.discount.reason': string;
62
+ 'pisell2.product.card.discount.note': string;
63
+ 'pisell2.product.card.discount.add.note': string;
64
+ 'pisell2.product.card.discount.edit.note': string;
65
+ 'pisell2.product.card.confirm': string;
66
+ 'pisell2.product.card.cancel': string;
67
+ 'pisell2.product.card.note.pla': string;
68
+ 'pisell2.product.card.items.package': string;
69
+ 'pisell2.product.card.view-all': string;
70
+ 'pisell2.product.card.view-less': string;
71
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
+ 'pisell2.product.card.add.holder.modal.title.1': string;
75
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
+ 'pisell2.product.card.sales': string;
77
+ 'pisell2.product.card.add.holder.modal.cancel': string;
78
+ 'pisell2.product.card.add.holder.modal.clear': string;
79
+ 'pisell2.product.card.add.holder.modal.apply': string;
80
+ 'pisell2.product.card.add.holder.modal.add': string;
81
+ 'pisell2.product.card.closing-soon.warning': string;
82
+ };
83
+ };
84
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const AddFieldModal: React.FC;
3
+ export default AddFieldModal;