@pisell/private-materials 6.6.59 → 6.6.61
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 +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/components/footer/utils.js +79 -75
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
- package/es/components/pisellCashCounting/PisellCashCounting.js +121 -0
- package/es/components/pisellCashCounting/PisellCashCounting.less +263 -0
- package/es/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
- package/es/components/pisellCashCounting/components/CashCountingModal/index.js +250 -0
- package/es/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
- package/es/components/pisellCashCounting/hooks.d.ts +21 -0
- package/es/components/pisellCashCounting/hooks.js +193 -0
- package/es/components/pisellCashCounting/index.d.ts +2 -0
- package/es/components/pisellCashCounting/index.js +1 -0
- package/es/components/pisellCashCounting/locales.d.ts +118 -0
- package/es/components/pisellCashCounting/locales.js +117 -0
- package/es/components/pisellCashCounting/types.d.ts +85 -0
- package/es/components/pisellCashCounting/types.js +1 -0
- package/es/components/pisellCashCounting/utils.d.ts +10 -0
- package/es/components/pisellCashCounting/utils.js +40 -0
- package/es/hooks/useResponsive.d.ts +8 -0
- package/es/hooks/useResponsive.js +43 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useThemeTokens.js +20 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/pro/NumericStepper/index.d.ts +75 -0
- package/es/pro/NumericStepper/index.js +301 -0
- package/es/pro/NumericStepper/index.less +364 -0
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/locales.js +57 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
- package/lib/components/booking/components/footer/utils.js +6 -3
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
- package/lib/components/pisellCashCounting/PisellCashCounting.js +168 -0
- package/lib/components/pisellCashCounting/PisellCashCounting.less +263 -0
- package/lib/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
- package/lib/components/pisellCashCounting/components/CashCountingModal/index.js +171 -0
- package/lib/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
- package/lib/components/pisellCashCounting/hooks.d.ts +21 -0
- package/lib/components/pisellCashCounting/hooks.js +189 -0
- package/lib/components/pisellCashCounting/index.d.ts +2 -0
- package/lib/components/pisellCashCounting/index.js +35 -0
- package/lib/components/pisellCashCounting/locales.d.ts +118 -0
- package/lib/components/pisellCashCounting/locales.js +141 -0
- package/lib/components/pisellCashCounting/types.d.ts +85 -0
- package/lib/components/pisellCashCounting/types.js +17 -0
- package/lib/components/pisellCashCounting/utils.d.ts +10 -0
- package/lib/components/pisellCashCounting/utils.js +59 -0
- package/lib/hooks/useResponsive.d.ts +8 -0
- package/lib/hooks/useResponsive.js +48 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useThemeTokens.js +40 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/pro/NumericStepper/index.d.ts +75 -0
- package/lib/pro/NumericStepper/index.js +338 -0
- package/lib/pro/NumericStepper/index.less +364 -0
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/locales.js +61 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
- package/lowcode/pisell-cash-counting/meta.ts +167 -0
- package/lowcode/pisell-cash-counting/snippets.ts +13 -0
- package/package.json +4 -4
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
// ========== 变量定义 ==========
|
|
2
|
+
@primary-color: var(--color-primary, #5d3f9f);
|
|
3
|
+
|
|
4
|
+
@text-color: #101828;
|
|
5
|
+
@text-secondary: #344054;
|
|
6
|
+
@text-disabled: #d0d5dd;
|
|
7
|
+
|
|
8
|
+
@border-color: #d0d5dd;
|
|
9
|
+
@border-color-light: #e4e7ec;
|
|
10
|
+
|
|
11
|
+
@bg-disabled: #d0d5dd;
|
|
12
|
+
@bg-hover-light: #f2f4f7;
|
|
13
|
+
@bg-active-light: #e4e7ec;
|
|
14
|
+
@bg-disabled-light: #f9fafb;
|
|
15
|
+
|
|
16
|
+
// 尺寸变量 - 分离模式
|
|
17
|
+
@size-small: 24px;
|
|
18
|
+
@size-middle: 32px;
|
|
19
|
+
@size-large: 40px;
|
|
20
|
+
|
|
21
|
+
// 尺寸变量 - 胶囊模式
|
|
22
|
+
@capsule-size-small: 28px;
|
|
23
|
+
@capsule-size-middle: 40px;
|
|
24
|
+
@capsule-size-large: 52px;
|
|
25
|
+
|
|
26
|
+
// 图标尺寸 - 分离模式
|
|
27
|
+
@icon-size-small: 12px;
|
|
28
|
+
@icon-size-middle: 16px;
|
|
29
|
+
@icon-size-large: 20px;
|
|
30
|
+
|
|
31
|
+
// 图标尺寸 - 胶囊模式
|
|
32
|
+
@capsule-icon-size-small: 14px;
|
|
33
|
+
@capsule-icon-size-middle: 20px;
|
|
34
|
+
@capsule-icon-size-large: 26px;
|
|
35
|
+
|
|
36
|
+
@font-size-small: 14px;
|
|
37
|
+
@font-size-middle: 16px;
|
|
38
|
+
@font-size-large: 18px;
|
|
39
|
+
|
|
40
|
+
// ========== 混入定义 ==========
|
|
41
|
+
.button-size(@size, @icon-size) {
|
|
42
|
+
width: @size;
|
|
43
|
+
height: @size;
|
|
44
|
+
|
|
45
|
+
svg {
|
|
46
|
+
width: @icon-size;
|
|
47
|
+
height: @icon-size;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.display-size(@width, @height, @font-size, @max-width: 56px, @padding: 0 4px) {
|
|
52
|
+
width: @width;
|
|
53
|
+
height: @height;
|
|
54
|
+
max-width: @max-width;
|
|
55
|
+
font-size: @font-size;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: @text-color;
|
|
58
|
+
padding: @padding;
|
|
59
|
+
text-align: center;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ========== 基础样式 ==========
|
|
64
|
+
.numeric-stepper {
|
|
65
|
+
align-items: center;
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: 1fr auto 1fr;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
height: 100%;
|
|
70
|
+
width: 100%;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
|
|
73
|
+
// ========== 按钮容器 ==========
|
|
74
|
+
&-button-wrapper {
|
|
75
|
+
align-items: center;
|
|
76
|
+
display: flex;
|
|
77
|
+
height: 100%;
|
|
78
|
+
&:active .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
79
|
+
transform: scale(0.95);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:focus .numeric-stepper-button {
|
|
83
|
+
outline: none;
|
|
84
|
+
box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.3);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-minus-button-wrapper {
|
|
89
|
+
justify-content: flex-end;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ========== 按钮样式 ==========
|
|
93
|
+
&-button {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
.button-size(@size-middle, @icon-size-middle);
|
|
98
|
+
border: none;
|
|
99
|
+
background-color: @primary-color;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
|
|
103
|
+
svg {
|
|
104
|
+
stroke: currentColor;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-disabled {
|
|
108
|
+
cursor: not-allowed;
|
|
109
|
+
background-color: @bg-disabled !important;
|
|
110
|
+
|
|
111
|
+
&:hover {
|
|
112
|
+
background-color: @bg-disabled !important;
|
|
113
|
+
transform: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// ========== 显示区域 ==========
|
|
119
|
+
&-display-wrapper {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
height: 100%;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-display {
|
|
128
|
+
border: 2px solid @border-color;
|
|
129
|
+
border-radius: 6px;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
.display-size(30px, 30px, @font-size-middle);
|
|
134
|
+
line-height: 1.5;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// ========== 尺寸变体 ==========
|
|
138
|
+
&-small {
|
|
139
|
+
gap: 8px;
|
|
140
|
+
|
|
141
|
+
.numeric-stepper-button {
|
|
142
|
+
.button-size(@size-small, @icon-size-small);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.numeric-stepper-display {
|
|
146
|
+
.display-size(@size-small, @size-small, @font-size-small, 40px, 0 2px);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&-middle {
|
|
151
|
+
gap: 8px;
|
|
152
|
+
|
|
153
|
+
.numeric-stepper-button {
|
|
154
|
+
.button-size(@size-middle, @icon-size-middle);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.numeric-stepper-display {
|
|
158
|
+
.display-size(30px, 30px, @font-size-middle);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&-large {
|
|
163
|
+
gap: 10px;
|
|
164
|
+
|
|
165
|
+
.numeric-stepper-button {
|
|
166
|
+
.button-size(@size-large, @icon-size-large);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.numeric-stepper-display {
|
|
170
|
+
.display-size(36px, 36px, @font-size-large, 64px, 0 6px);
|
|
171
|
+
text-overflow: ellipsis;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// ========== 形状变体(分离式下生效)==========
|
|
177
|
+
&-round .numeric-stepper-button {
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&-square .numeric-stepper-button {
|
|
182
|
+
border-radius: 12px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// ========== 状态样式 ==========
|
|
186
|
+
&-plus-only {
|
|
187
|
+
grid-template-columns: 1fr;
|
|
188
|
+
|
|
189
|
+
.numeric-stepper-plus-button-wrapper {
|
|
190
|
+
justify-content: center;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&-simple {
|
|
195
|
+
gap: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&-disabled {
|
|
199
|
+
cursor: not-allowed;
|
|
200
|
+
|
|
201
|
+
.numeric-stepper-display {
|
|
202
|
+
color: #9ca3af;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-out-of-range .numeric-stepper-display {
|
|
207
|
+
color: #ff4d4f;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&-input-disabled {
|
|
211
|
+
.numeric-stepper-display-wrapper {
|
|
212
|
+
cursor: default;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.numeric-stepper-display {
|
|
216
|
+
border: none;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// ========== 胶囊式变体 ==========
|
|
221
|
+
&-capsule {
|
|
222
|
+
display: inline-flex;
|
|
223
|
+
width: auto;
|
|
224
|
+
background-color: #fff;
|
|
225
|
+
border: 1px solid @border-color;
|
|
226
|
+
border-radius: 999px;
|
|
227
|
+
padding: 0;
|
|
228
|
+
gap: 2px;
|
|
229
|
+
height: @capsule-size-middle;
|
|
230
|
+
|
|
231
|
+
// 胶囊式按钮容器交互
|
|
232
|
+
.numeric-stepper-button-wrapper {
|
|
233
|
+
&:hover .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
234
|
+
background-color: @bg-hover-light;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&:active .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
238
|
+
background-color: @bg-active-light;
|
|
239
|
+
transform: none;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// 胶囊式按钮样式
|
|
244
|
+
.numeric-stepper-button {
|
|
245
|
+
background-color: transparent;
|
|
246
|
+
color: @text-secondary;
|
|
247
|
+
border-radius: 50%;
|
|
248
|
+
transition: all 0.15s ease-in-out;
|
|
249
|
+
|
|
250
|
+
&-disabled {
|
|
251
|
+
background-color: transparent !important;
|
|
252
|
+
color: @text-disabled !important;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// 胶囊式按钮默认尺寸(middle)
|
|
257
|
+
.numeric-stepper-button {
|
|
258
|
+
.button-size(@capsule-size-middle, @capsule-icon-size-middle);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// 胶囊式显示区域
|
|
262
|
+
.numeric-stepper-display-wrapper {
|
|
263
|
+
flex: 1;
|
|
264
|
+
min-width: 0; // 允许收缩
|
|
265
|
+
padding: 0 2px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.numeric-stepper-display {
|
|
269
|
+
width: auto;
|
|
270
|
+
height: auto;
|
|
271
|
+
min-width: 20px;
|
|
272
|
+
max-width: 100%;
|
|
273
|
+
border: 2px solid @border-color;
|
|
274
|
+
border-radius: 6px;
|
|
275
|
+
background-color: transparent;
|
|
276
|
+
text-overflow: ellipsis;
|
|
277
|
+
white-space: nowrap;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// 胶囊式关闭输入
|
|
281
|
+
&.numeric-stepper-input-disabled .numeric-stepper-display {
|
|
282
|
+
border: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// 胶囊式整体禁用
|
|
286
|
+
&.numeric-stepper-disabled {
|
|
287
|
+
background-color: @bg-disabled-light;
|
|
288
|
+
border-color: @border-color-light;
|
|
289
|
+
|
|
290
|
+
.numeric-stepper-button {
|
|
291
|
+
color: @text-disabled !important;
|
|
292
|
+
cursor: not-allowed;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.numeric-stepper-button-wrapper {
|
|
296
|
+
&:hover,
|
|
297
|
+
&:active {
|
|
298
|
+
.numeric-stepper-button {
|
|
299
|
+
background-color: transparent !important;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.numeric-stepper-display {
|
|
305
|
+
color: @text-disabled;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// 胶囊式尺寸调整
|
|
310
|
+
&.numeric-stepper-small {
|
|
311
|
+
height: @capsule-size-small;
|
|
312
|
+
|
|
313
|
+
.numeric-stepper-button {
|
|
314
|
+
.button-size(@capsule-size-small, @capsule-icon-size-small);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.numeric-stepper-display {
|
|
318
|
+
min-width: 16px;
|
|
319
|
+
font-size: @font-size-small;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&.numeric-stepper-middle {
|
|
324
|
+
height: @capsule-size-middle;
|
|
325
|
+
|
|
326
|
+
.numeric-stepper-button {
|
|
327
|
+
.button-size(@capsule-size-middle, @capsule-icon-size-middle);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.numeric-stepper-display {
|
|
331
|
+
min-width: 20px;
|
|
332
|
+
font-size: @font-size-middle;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&.numeric-stepper-large {
|
|
337
|
+
height: @capsule-size-large;
|
|
338
|
+
|
|
339
|
+
.numeric-stepper-button {
|
|
340
|
+
.button-size(@capsule-size-large, @capsule-icon-size-large);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.numeric-stepper-display {
|
|
344
|
+
min-width: 24px;
|
|
345
|
+
font-size: @font-size-large;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// ========== 键盘弹窗样式 ==========
|
|
352
|
+
.numeric-stepper-keyboard-modal {
|
|
353
|
+
.ant-modal-content,
|
|
354
|
+
.pisell-lowcode-modal-content {
|
|
355
|
+
padding: 0;
|
|
356
|
+
background-color: transparent;
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.ant-modal-close,
|
|
361
|
+
.pisell-lowcode-modal-close {
|
|
362
|
+
display: none;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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/pro/keyboards/index.ts
|
|
30
|
+
var keyboards_exports = {};
|
|
31
|
+
__export(keyboards_exports, {
|
|
32
|
+
NumberKeyboard: () => import_numberKeyboard.default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(keyboards_exports);
|
|
35
|
+
var import_numberKeyboard = __toESM(require("./numberKeyboard"));
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
NumberKeyboard
|
|
39
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
4
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
5
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
6
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
7
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
8
|
+
};
|
|
9
|
+
'zh-CN': {
|
|
10
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
11
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
12
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
13
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
14
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
15
|
+
};
|
|
16
|
+
'zh-HK': {
|
|
17
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
18
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
19
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
20
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
21
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
22
|
+
};
|
|
23
|
+
ja: {
|
|
24
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
25
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
26
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
27
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
28
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
29
|
+
};
|
|
30
|
+
pt: {
|
|
31
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
32
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
33
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
34
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
35
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
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/pro/keyboards/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
|
+
"pisell2.keyboard.number-keybard.max": (max) => `Maximum value is ${max}`,
|
|
28
|
+
"pisell2.keyboard.number-keybard.min": (min) => `Minimum value is ${min}`,
|
|
29
|
+
"pisell2.keyboard.number-keybard.ok": "OK",
|
|
30
|
+
"pisell2.keyboard.number-keybard.reset": "Reset",
|
|
31
|
+
"pisell2.keyboard.number-keybard.clear": "Clear"
|
|
32
|
+
},
|
|
33
|
+
"zh-CN": {
|
|
34
|
+
"pisell2.keyboard.number-keybard.max": (max) => `最大值为${max}`,
|
|
35
|
+
"pisell2.keyboard.number-keybard.min": (min) => `最小值为${min}`,
|
|
36
|
+
"pisell2.keyboard.number-keybard.ok": "确认",
|
|
37
|
+
"pisell2.keyboard.number-keybard.reset": "重置",
|
|
38
|
+
"pisell2.keyboard.number-keybard.clear": "清空"
|
|
39
|
+
},
|
|
40
|
+
"zh-HK": {
|
|
41
|
+
"pisell2.keyboard.number-keybard.max": (max) => `最大值为${max}`,
|
|
42
|
+
"pisell2.keyboard.number-keybard.min": (min) => `最小值为${min}`,
|
|
43
|
+
"pisell2.keyboard.number-keybard.ok": "確認",
|
|
44
|
+
"pisell2.keyboard.number-keybard.reset": "重置",
|
|
45
|
+
"pisell2.keyboard.number-keybard.clear": "清空"
|
|
46
|
+
},
|
|
47
|
+
ja: {
|
|
48
|
+
"pisell2.keyboard.number-keybard.max": (max) => `最大値は${max}です`,
|
|
49
|
+
"pisell2.keyboard.number-keybard.min": (min) => `最小値は${min}です`,
|
|
50
|
+
"pisell2.keyboard.number-keybard.ok": "OK",
|
|
51
|
+
"pisell2.keyboard.number-keybard.reset": "リセット",
|
|
52
|
+
"pisell2.keyboard.number-keybard.clear": "クリア"
|
|
53
|
+
},
|
|
54
|
+
pt: {
|
|
55
|
+
"pisell2.keyboard.number-keybard.max": (max) => `Valor máximo é ${max}`,
|
|
56
|
+
"pisell2.keyboard.number-keybard.min": (min) => `Valor mínimo é ${min}`,
|
|
57
|
+
"pisell2.keyboard.number-keybard.ok": "OK",
|
|
58
|
+
"pisell2.keyboard.number-keybard.reset": "Redefinir",
|
|
59
|
+
"pisell2.keyboard.number-keybard.clear": "Limpar"
|
|
60
|
+
}
|
|
61
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NumberKeyboardBaseProps, NumberKeyboardProps } from './types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
/**
|
|
5
|
+
* NumberKeyboardBase - 数字输入键盘基础组件
|
|
6
|
+
* 支持整数模式和小数模式
|
|
7
|
+
*/
|
|
8
|
+
declare const NumberKeyboardBase: React.FC<NumberKeyboardBaseProps>;
|
|
9
|
+
/**
|
|
10
|
+
* NumberKeyboard - 数字输入键盘
|
|
11
|
+
* 支持基础形式展示、popover 形态或 modal 形态
|
|
12
|
+
*/
|
|
13
|
+
declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element | null;
|
|
14
|
+
export default NumberKeyboard;
|
|
15
|
+
export { NumberKeyboardBase };
|
|
16
|
+
export type { NumberKeyboardProps, NumberKeyboardBaseProps, NumberKeyboardMode, } from './types';
|