tntd 3.0.69 → 3.0.71

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 (70) hide show
  1. package/es/array-input/index.js +3 -0
  2. package/es/array-input/index.js.map +1 -1
  3. package/es/button/button.js +2 -2
  4. package/es/button/button.js.map +1 -1
  5. package/es/button/button.less +175 -0
  6. package/es/button/style/index.less +7 -0
  7. package/es/button/style/mixin.less +118 -65
  8. package/es/prev-locale.js +4 -0
  9. package/es/prev-locale.js.map +1 -1
  10. package/es/style/themes/default.less +2 -4
  11. package/es/table/style/size.less +4 -2
  12. package/es/tntd-action/Action.js +87 -10
  13. package/es/tntd-action/index.js +61 -7
  14. package/es/tntd-action/index.js.map +1 -1
  15. package/es/tntd-action/index.less +35 -0
  16. package/es/tntd-checkbox-select/index.js +3 -9
  17. package/es/tntd-checkbox-select/index.js.map +1 -1
  18. package/lib/array-input/index.d.ts.map +1 -1
  19. package/lib/array-input/index.js +3 -0
  20. package/lib/array-input/index.js.map +1 -1
  21. package/lib/button/button.d.ts +2 -2
  22. package/lib/button/button.d.ts.map +1 -1
  23. package/lib/button/button.js +2 -2
  24. package/lib/button/button.js.map +1 -1
  25. package/lib/button/button.less +175 -0
  26. package/lib/button/style/index.less +7 -0
  27. package/lib/button/style/mixin.less +118 -65
  28. package/lib/prev-locale.d.ts +3 -0
  29. package/lib/prev-locale.d.ts.map +1 -1
  30. package/lib/prev-locale.js +4 -0
  31. package/lib/prev-locale.js.map +1 -1
  32. package/lib/style/themes/default.less +2 -4
  33. package/lib/table/style/size.less +4 -2
  34. package/lib/tntd-action/index.d.ts +1 -2
  35. package/lib/tntd-action/index.d.ts.map +1 -1
  36. package/lib/tntd-action/index.js +61 -7
  37. package/lib/tntd-action/index.js.map +1 -1
  38. package/lib/tntd-action/index.less +35 -0
  39. package/lib/tntd-checkbox-select/index.d.ts.map +1 -1
  40. package/lib/tntd-checkbox-select/index.js +3 -9
  41. package/lib/tntd-checkbox-select/index.js.map +1 -1
  42. package/package.json +2 -2
  43. package/themes/default/variables.less +8 -0
  44. package/themes/default/variablesVar.less +9 -0
  45. package/es/checkbox/checkbox-group.js +0 -16
  46. package/es/checkbox/checkbox-group.js.map +0 -1
  47. package/es/radio/radio-group.js +0 -16
  48. package/es/radio/radio-group.js.map +0 -1
  49. package/es/steps/stepStyle/small.less +0 -5
  50. package/es/table/total-shower.js +0 -20
  51. package/es/table/total-shower.js.map +0 -1
  52. package/es/utils/simple-template.js +0 -19
  53. package/es/utils/simple-template.js.map +0 -1
  54. package/lib/checkbox/checkbox-group.d.ts +0 -8
  55. package/lib/checkbox/checkbox-group.d.ts.map +0 -1
  56. package/lib/checkbox/checkbox-group.js +0 -16
  57. package/lib/checkbox/checkbox-group.js.map +0 -1
  58. package/lib/radio/radio-group.d.ts +0 -8
  59. package/lib/radio/radio-group.d.ts.map +0 -1
  60. package/lib/radio/radio-group.js +0 -16
  61. package/lib/radio/radio-group.js.map +0 -1
  62. package/lib/steps/stepStyle/small.less +0 -5
  63. package/lib/table/total-shower.d.ts +0 -9
  64. package/lib/table/total-shower.d.ts.map +0 -1
  65. package/lib/table/total-shower.js +0 -20
  66. package/lib/table/total-shower.js.map +0 -1
  67. package/lib/utils/simple-template.d.ts +0 -9
  68. package/lib/utils/simple-template.d.ts.map +0 -1
  69. package/lib/utils/simple-template.js +0 -19
  70. package/lib/utils/simple-template.js.map +0 -1
@@ -8,9 +8,11 @@
8
8
  }
9
9
 
10
10
  .button-disabled(@color: @btn-disable-color; @background: @btn-disable-bg; @border: @btn-disable-border) {
11
+
11
12
  &-disabled,
12
13
  &.disabled,
13
14
  &[disabled] {
15
+
14
16
  &,
15
17
  &:hover,
16
18
  &:focus,
@@ -32,16 +34,12 @@
32
34
 
33
35
  &:hover,
34
36
  &:focus {
35
- .button-color(
36
- @color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) `
37
- );
37
+ .button-color(@color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) `);
38
38
  }
39
39
 
40
40
  &:active,
41
41
  &.active {
42
- .button-color(
43
- @color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) `
44
- );
42
+ .button-color(@color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) `);
45
43
  }
46
44
 
47
45
  .button-disabled();
@@ -52,51 +50,56 @@
52
50
 
53
51
  &:hover,
54
52
  &:focus {
55
- .button-color(
56
- ~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5)
57
- `
58
- );
53
+ .button-color(~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5) `);
59
54
  }
55
+
60
56
  &:active,
61
57
  &.active {
62
- .button-color(
63
- ~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7)
64
- `
65
- );
58
+ .button-color(~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7) `);
66
59
  }
60
+
67
61
  .button-disabled();
68
62
  }
63
+
69
64
  .button-variant-ghost(@color; @border: @color) {
70
65
  .button-color(@color; transparent; @border);
71
66
  text-shadow: none;
67
+
72
68
  &:hover,
73
69
  &:focus {
74
- & when (@border = transparent) {
70
+ & when (@border =transparent) {
75
71
  .button-color(~`colorPalette('@{color}', 5) `; transparent; transparent);
76
72
  }
77
- & when not(@border = transparent) {
73
+
74
+ & when not(@border =transparent) {
78
75
  .button-color(~`colorPalette('@{color}', 5) `; transparent; ~`colorPalette('@{color}', 5) `);
79
76
  }
80
77
  }
78
+
81
79
  &:active,
82
80
  &.active {
83
- & when (@border = transparent) {
81
+ & when (@border =transparent) {
84
82
  .button-color(~`colorPalette('@{color}', 7) `; transparent; transparent);
85
83
  }
86
- & when not(@border = transparent) {
84
+
85
+ & when not(@border =transparent) {
87
86
  .button-color(~`colorPalette('@{color}', 7) `; transparent; ~`colorPalette('@{color}', 7) `);
88
87
  }
89
88
  }
89
+
90
90
  .button-disabled();
91
91
  }
92
+
92
93
  .button-color(@color; @background; @border) {
93
94
  color: @color;
94
95
  background-color: @background;
95
96
  border-color: @border;
97
+
96
98
  // a inside Button which only work in Chrome
97
99
  // http://stackoverflow.com/a/17253457
98
- > a:only-child {
100
+ >a:only-child {
99
101
  color: currentColor;
102
+
100
103
  &::after {
101
104
  position: absolute;
102
105
  top: 0;
@@ -108,50 +111,61 @@
108
111
  }
109
112
  }
110
113
  }
114
+
111
115
  .button-group-base(@btnClassName) {
112
116
  position: relative;
113
117
  display: inline-block;
114
- > .@{btnClassName},
115
- > span > .@{btnClassName} {
118
+
119
+ >.@{btnClassName},
120
+ >span>.@{btnClassName} {
116
121
  position: relative;
122
+
117
123
  &:hover,
118
124
  &:focus,
119
125
  &:active,
120
126
  &.active {
121
127
  z-index: 2;
122
128
  }
129
+
123
130
  &:disabled {
124
131
  z-index: 0;
125
132
  }
126
133
  }
127
- > .@{btnClassName}-icon-only {
134
+
135
+ >.@{btnClassName}-icon-only {
128
136
  font-size: @font-size-base;
129
137
  }
138
+
130
139
  // size
131
- &-lg > .@{btnClassName},
132
- &-lg > span > .@{btnClassName} {
140
+ &-lg>.@{btnClassName},
141
+ &-lg>span>.@{btnClassName} {
133
142
  .button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; 0);
134
143
  line-height: calc(@btn-height-lg - 2px);
135
144
  }
136
- &-lg > .@{btnClassName}.@{btnClassName}-icon-only {
145
+
146
+ &-lg>.@{btnClassName}.@{btnClassName}-icon-only {
137
147
  .square(@btn-height-lg);
138
148
  padding-right: 0;
139
149
  padding-left: 0;
140
150
  }
141
- &-sm > .@{btnClassName},
142
- &-sm > span > .@{btnClassName} {
151
+
152
+ &-sm>.@{btnClassName},
153
+ &-sm>span>.@{btnClassName} {
143
154
  .button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; 0);
144
155
  line-height: calc(@btn-height-sm - 2px);
145
- > .@{iconfont-css-prefix} {
156
+
157
+ >.@{iconfont-css-prefix} {
146
158
  font-size: @font-size-base;
147
159
  }
148
160
  }
149
- &-sm > .@{btnClassName}.@{btnClassName}-icon-only {
161
+
162
+ &-sm>.@{btnClassName}.@{btnClassName}-icon-only {
150
163
  .square(@btn-height-sm);
151
164
  padding-right: 0;
152
165
  padding-left: 0;
153
166
  }
154
167
  }
168
+
155
169
  // Base styles of buttons
156
170
  // --------------------------------------------------
157
171
  .btn() {
@@ -168,42 +182,53 @@
168
182
  user-select: none;
169
183
  touch-action: manipulation;
170
184
  .button-size(@btn-height-base; @btn-padding-base; @font-size-base; @btn-border-radius-base);
171
- > .@{iconfont-css-prefix} {
185
+
186
+ >.@{iconfont-css-prefix} {
172
187
  line-height: 1;
173
188
  }
189
+
174
190
  &,
175
191
  &:active,
176
192
  &:focus {
177
193
  outline: 0;
178
194
  }
195
+
179
196
  &:not([disabled]):hover {
180
197
  text-decoration: none;
181
198
  }
199
+
182
200
  &:not([disabled]):active {
183
201
  outline: 0;
184
202
  box-shadow: none;
185
203
  }
204
+
186
205
  &.disabled,
187
206
  &[disabled] {
188
207
  cursor: not-allowed;
189
- > * {
208
+
209
+ >* {
190
210
  pointer-events: none;
191
211
  }
192
212
  }
213
+
193
214
  &-lg {
194
215
  .button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; @btn-border-radius-base);
195
216
  }
217
+
196
218
  &-sm {
197
219
  .button-size(@btn-height-sm; @btn-padding-sm; @btn-font-size-sm; @btn-border-radius-sm);
198
220
  }
199
221
  }
222
+
200
223
  // primary button style
201
224
  .btn-primary() {
202
225
  .button-variant-primary(@btn-primary-color; @btn-primary-bg);
203
226
  }
227
+
204
228
  // default button style
205
229
  .btn-default() {
206
230
  .button-variant-other(@btn-default-color; @btn-default-bg; @btn-default-border);
231
+
207
232
  &:hover,
208
233
  &:focus,
209
234
  &:active,
@@ -212,57 +237,66 @@
212
237
  background: @btn-default-bg;
213
238
  }
214
239
  }
240
+
215
241
  // ghost button style
216
242
  .btn-ghost() {
217
243
  .button-variant-other(@btn-ghost-color, @btn-ghost-bg, @btn-ghost-border);
218
244
  }
245
+
219
246
  // dashed button style
220
247
  .btn-dashed() {
221
248
  .button-variant-other(@btn-default-color, @btn-default-bg, @btn-default-border);
222
249
  border-style: dashed;
223
250
  }
251
+
224
252
  // danger button style
225
253
  .btn-danger() {
226
254
  .button-variant-primary(@btn-danger-color, @btn-danger-bg);
227
255
  }
256
+
228
257
  // link button style
229
258
  .btn-link() {
230
259
  .button-variant-other(@link-color, transparent, transparent);
231
260
  box-shadow: none;
261
+
232
262
  &:hover,
233
263
  &:focus,
234
264
  &:active {
235
265
  border-color: transparent;
236
266
  }
267
+
237
268
  .button-disabled(@disabled-color; transparent; transparent);
238
269
  }
270
+
239
271
  // round button
240
272
  .btn-round(@btnClassName: btn) {
241
273
  .button-size(@btn-circle-size; 0 @btn-circle-size / 2; @font-size-base; @btn-circle-size);
274
+
242
275
  &.@{btnClassName}-lg {
243
- .button-size(
244
- @btn-circle-size-lg; 0 @btn-circle-size-lg / 2; @btn-font-size-lg; @btn-circle-size-lg
245
- );
276
+ .button-size(@btn-circle-size-lg; 0 @btn-circle-size-lg / 2; @btn-font-size-lg; @btn-circle-size-lg );
246
277
  }
278
+
247
279
  &.@{btnClassName}-sm {
248
- .button-size(
249
- @btn-circle-size-sm; 0 @btn-circle-size-sm / 2; @font-size-base; @btn-circle-size-sm
250
- );
280
+ .button-size(@btn-circle-size-sm; 0 @btn-circle-size-sm / 2; @font-size-base; @btn-circle-size-sm );
251
281
  }
252
282
  }
283
+
253
284
  // square button: the content only contains icon
254
285
  .btn-square(@btnClassName: btn) {
255
286
  .square(@btn-square-size);
256
287
  .button-size(@btn-square-size; 0; @font-size-base + 2px; @btn-border-radius-base);
288
+
257
289
  &.@{btnClassName}-lg {
258
290
  .square(@btn-square-size-lg);
259
291
  .button-size(@btn-square-size-lg; 0; @btn-font-size-lg + 2px; @btn-border-radius-base);
260
292
  }
293
+
261
294
  &.@{btnClassName}-sm {
262
295
  .square(@btn-square-size-sm);
263
296
  .button-size(@btn-square-size-sm; 0; @font-size-base; @btn-border-radius-base);
264
297
  }
265
298
  }
299
+
266
300
  // circle button: the content only contains icon
267
301
  .btn-circle(@btnClassName: btn) {
268
302
  min-width: @btn-height-base;
@@ -270,88 +304,107 @@
270
304
  padding-left: 0;
271
305
  text-align: center;
272
306
  border-radius: 50%;
307
+
273
308
  &.@{btnClassName}-lg {
274
309
  min-width: @btn-height-lg;
275
310
  border-radius: 50%;
276
311
  }
312
+
277
313
  &.@{btnClassName}-sm {
278
314
  min-width: @btn-height-sm;
279
315
  border-radius: 50%;
280
316
  }
281
317
  }
318
+
282
319
  // Horizontal button groups style
283
320
  // --------------------------------------------------
284
321
  .btn-group(@btnClassName: btn) {
285
322
  .button-group-base(@btnClassName);
286
- .@{btnClassName} + .@{btnClassName},
287
- .@{btnClassName} + &,
288
- span + .@{btnClassName},
289
- .@{btnClassName} + span,
290
- > span + span,
291
- & + .@{btnClassName},
292
- & + & {
323
+
324
+ .@{btnClassName}+.@{btnClassName},
325
+ .@{btnClassName}+&,
326
+ span+.@{btnClassName},
327
+ .@{btnClassName}+span,
328
+ >span+span,
329
+ &+.@{btnClassName},
330
+ &+& {
293
331
  margin-left: -1px;
294
332
  }
295
- .@{btnClassName}-primary + .@{btnClassName}:not(.@{btnClassName}-primary):not([disabled]) {
333
+
334
+ .@{btnClassName}-primary+.@{btnClassName}:not(.@{btnClassName}-primary):not([disabled]) {
296
335
  border-left-color: transparent;
297
336
  }
337
+
298
338
  .@{btnClassName} {
299
339
  border-radius: 0;
300
340
  }
301
- > .@{btnClassName}:first-child,
302
- > span:first-child > .@{btnClassName} {
341
+
342
+ >.@{btnClassName}:first-child,
343
+ >span:first-child>.@{btnClassName} {
303
344
  margin-left: 0;
304
345
  }
305
- > .@{btnClassName}:only-child {
346
+
347
+ >.@{btnClassName}:only-child {
306
348
  border-radius: @btn-border-radius-base;
307
349
  }
308
- > span:only-child > .@{btnClassName} {
350
+
351
+ >span:only-child>.@{btnClassName} {
309
352
  border-radius: @btn-border-radius-base;
310
353
  }
311
- > .@{btnClassName}:first-child:not(:last-child),
312
- > span:first-child:not(:last-child) > .@{btnClassName} {
354
+
355
+ >.@{btnClassName}:first-child:not(:last-child),
356
+ >span:first-child:not(:last-child)>.@{btnClassName} {
313
357
  border-top-left-radius: @btn-border-radius-base;
314
358
  border-bottom-left-radius: @btn-border-radius-base;
315
359
  }
316
- > .@{btnClassName}:last-child:not(:first-child),
317
- > span:last-child:not(:first-child) > .@{btnClassName} {
360
+
361
+ >.@{btnClassName}:last-child:not(:first-child),
362
+ >span:last-child:not(:first-child)>.@{btnClassName} {
318
363
  border-top-right-radius: @btn-border-radius-base;
319
364
  border-bottom-right-radius: @btn-border-radius-base;
320
365
  }
366
+
321
367
  &-sm {
322
- > .@{btnClassName}:only-child {
368
+ >.@{btnClassName}:only-child {
323
369
  border-radius: @btn-border-radius-sm;
324
370
  }
325
- > span:only-child > .@{btnClassName} {
371
+
372
+ >span:only-child>.@{btnClassName} {
326
373
  border-radius: @btn-border-radius-sm;
327
374
  }
328
- > .@{btnClassName}:first-child:not(:last-child),
329
- > span:first-child:not(:last-child) > .@{btnClassName} {
375
+
376
+ >.@{btnClassName}:first-child:not(:last-child),
377
+ >span:first-child:not(:last-child)>.@{btnClassName} {
330
378
  border-top-left-radius: @btn-border-radius-sm;
331
379
  border-bottom-left-radius: @btn-border-radius-sm;
332
380
  }
333
- > .@{btnClassName}:last-child:not(:first-child),
334
- > span:last-child:not(:first-child) > .@{btnClassName} {
381
+
382
+ >.@{btnClassName}:last-child:not(:first-child),
383
+ >span:last-child:not(:first-child)>.@{btnClassName} {
335
384
  border-top-right-radius: @btn-border-radius-sm;
336
385
  border-bottom-right-radius: @btn-border-radius-sm;
337
386
  }
338
387
  }
339
- & > & {
388
+
389
+ &>& {
340
390
  float: left;
341
391
  }
342
- & > &:not(:first-child):not(:last-child) > .@{btnClassName} {
392
+
393
+ &>&:not(:first-child):not(:last-child)>.@{btnClassName} {
343
394
  border-radius: 0;
344
395
  }
345
- & > &:first-child:not(:last-child) {
346
- > .@{btnClassName}:last-child {
396
+
397
+ &>&:first-child:not(:last-child) {
398
+ >.@{btnClassName}:last-child {
347
399
  padding-right: 8px;
348
400
  border-top-right-radius: 0;
349
401
  border-bottom-right-radius: 0;
350
402
  }
351
403
  }
352
- & > &:last-child:not(:first-child) > .@{btnClassName}:first-child {
404
+
405
+ &>&:last-child:not(:first-child)>.@{btnClassName}:first-child {
353
406
  padding-left: 8px;
354
407
  border-top-left-radius: 0;
355
408
  border-bottom-left-radius: 0;
356
409
  }
357
- }
410
+ }
package/es/prev-locale.js CHANGED
@@ -27,6 +27,8 @@ var zh_CN = exports.zh_CN = {
27
27
  enter: '请输入',
28
28
  // Select
29
29
  select: '请选择',
30
+ // TntdAction
31
+ batchOperation: '批量操作',
30
32
  // Reference
31
33
  onLineFail: '上线校验失败',
32
34
  weakMsg: '存在弱引用(被下线、禁用、待提交/上线、导入待提交/上线、暂存、保存等相关状态组件引用)关系,谨慎操作',
@@ -66,6 +68,8 @@ var en_US = exports.en_US = {
66
68
  enter: 'Enter',
67
69
  // Select
68
70
  select: 'Select',
71
+ // TntdAction
72
+ batchOperation: 'Batch Operation',
69
73
  // Reference
70
74
  onLineFail: 'On-line verification failure',
71
75
  weakMsg: 'Caution When performing this operation, weak references exist for status components, such as offline, disabled, to be submitted/online, Import to be submitted/online, temporary, and save',
@@ -1 +1 @@
1
- {"version":3,"file":"prev-locale.js","sourceRoot":"","sources":["../src/prev-locale.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE,MAAM;IAElB,YAAY;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,aAAa,EAAE,MAAM;IACrB,MAAM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EACL,4LAA4L;IAC9L,SAAS,EACP,iMAAiM;IACnM,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,0DAA0D;IACxE,aAAa,EAAE,yCAAyC;IACxD,aAAa,EAAE,wDAAwD;IACvE,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,SAAS;IACjB,aAAa,EAAE,gCAAgC;IAC/C,GAAG,EAAE,KAAK;CACX,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE;;IAClE,MAAM,IAAI,GAAG,MAAA,CAAC;QACZ,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;KACV,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,0CAAG,GAAG,CAAC,CAAA;IAE5B,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAE;QAClB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChC,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;QAC/B,CAAC,EAAE,IAAI,CAAC,CAAA;KACT;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,EAAE,IAAG,IAAI,CAAA;AAE1D,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA","sourcesContent":["import { getLanguageStore } from './tntd-layout/storage';\n\nexport const zh_CN = {\n globalNavigation: '全局导航',\n menuSearch: '菜单搜索',\n\n // QueryForm\n search: '搜索',\n reset: '重置',\n moreFiltering: '更多过滤',\n expand: '展开',\n collapse: '收起',\n\n // QueryListScene\n totalRecords: '共%s条记录',\n\n // user popover\n nameNull: '暂无昵称',\n personalSettings: '个人设置',\n changePwd: '修改密码',\n signOut: '退出',\n\n // Handle\n handleMore:'更多',\n\n // Enter\n enter: '请输入',\n\n // Select\n select: '请选择',\n\n\n // Reference\n onLineFail: '上线校验失败',\n weakMsg:\n '存在弱引用(被下线、禁用、待提交/上线、导入待提交/上线、暂存、保存等相关状态组件引用)关系,谨慎操作',\n strongMsg: '存在强引用(被上线、启用、上下线审批中和指标初始化等相关状态组件引用)关系,禁止操作',\n cancel: '取消',\n next: '下一步',\n exist: '存在',\n strong: '强引用',\n weak: '弱引用',\n relationFail: '查询关联关系失败',\n reliableQuery: '请提供一个可靠的查询请求',\n referenceFail: '查询引用关系失败',\n inQuery: '查询中...',\n noData: '暂无数据',\n viewReference: '引用关系查看',\n all: '全选'\n}\n\nexport const en_US = {\n globalNavigation: 'Global Navigation',\n menuSearch: 'Menu Search',\n\n\n // QueryForm\n search: 'Search',\n reset: 'Reset',\n moreFiltering: 'More filtering',\n expand: 'Expand',\n collapse: 'Collapse',\n\n // QueryListScene\n totalRecords: 'Totally %s Record(s)',\n\n // user popover\n nameNull: 'No nickname yet',\n personalSettings: 'Setting',\n changePwd: 'Change password',\n signOut: 'Sign out',\n\n // Handle\n handleMore:'More',\n\n // Enter\n enter: 'Enter',\n // Select\n select: 'Select',\n\n\n // Reference\n onLineFail: 'On-line verification failure',\n weakMsg:\n 'Caution When performing this operation, weak references exist for status components, such as offline, disabled, to be submitted/online, Import to be submitted/online, temporary, and save',\n strongMsg:\n 'A strong reference relationship exists (referenced by status components such as online, enabled, online and offline approval, and indicator initialization). Therefore, no operation is allowed',\n cancel: 'Cancel',\n next: 'Next',\n exist: 'Exist',\n strong: 'Strong',\n weak: 'Weak',\n relationFail: 'Description Failed to query the association relationship',\n reliableQuery: 'Please provide a reliable query request',\n referenceFail: 'Description Failed to query the reference relationship',\n inQuery: 'In query...',\n noData: 'No data',\n viewReference: 'Reference relationship viewing',\n all: 'all'\n}\n\nexport const getText = (key, language = getLanguage(), ...params) => {\n const text = ({\n cn: zh_CN,\n en: en_US,\n }[language] || zh_CN)?.[key]\n\n if (params?.length) {\n return params.reduce((acc, cur) => {\n return acc.replace(/%s/, cur)\n }, text)\n }\n\n return text\n}\n\nexport const getLanguage = () => getLanguageStore()|| 'cn'\n\nexport default { en_US, zh_CN }\n"]}
1
+ {"version":3,"file":"prev-locale.js","sourceRoot":"","sources":["../src/prev-locale.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE,MAAM;IAElB,YAAY;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IAEd,iBAAiB;IACjB,YAAY,EAAE,QAAQ;IAEtB,eAAe;IACf,QAAQ,EAAE,MAAM;IAChB,gBAAgB,EAAE,MAAM;IACxB,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,IAAI;IAEb,SAAS;IACT,UAAU,EAAE,IAAI;IAEhB,QAAQ;IACR,KAAK,EAAE,KAAK;IAEZ,SAAS;IACT,MAAM,EAAE,KAAK;IAEb,aAAa;IACb,cAAc,EAAE,MAAM;IAEtB,cAAc;IACd,UAAU,EAAE,QAAQ;IACpB,OAAO,EACL,qDAAqD;IACvD,SAAS,EAAE,4CAA4C;IACvD,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,KAAK;IACX,YAAY,EAAE,UAAU;IACxB,aAAa,EAAE,cAAc;IAC7B,aAAa,EAAE,UAAU;IACzB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,IAAI;CACV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AAM,uBAAN,MAAM,CAAE,MAAM,EAAE;QAClB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChC,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;QAC/B,CAAC,EAAE,IAAI,CAAC,CAAA;KACT;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAA;AAE3D,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA","sourcesContent":["import { getLanguageStore } from './tntd-layout/storage'\n\nexport const zh_CN = {\n globalNavigation: '全局导航',\n menuSearch: '菜单搜索',\n\n // QueryForm\n search: '搜索',\n reset: '重置',\n moreFiltering: '更多过滤',\n expand: '展开',\n collapse: '收起',\n\n // QueryListScene\n totalRecords: '共%s条记录',\n\n // user popover\n nameNull: '暂无昵称',\n personalSettings: '个人设置',\n changePwd: '修改密码',\n signOut: '退出',\n\n // Handle\n handleMore: '更多',\n\n // Enter\n enter: '请输入',\n\n // Select\n select: '请选择',\n\n // TntdAction\n batchOperation: '批量操作',\n\n // Reference\n onLineFail: '上线校验失败',\n weakMsg:\n '存在弱引用(被下线、禁用、待提交/上线、导入待提交/上线、暂存、保存等相关状态组件引用)关系,谨慎操作',\n strongMsg: '存在强引用(被上线、启用、上下线审批中和指标初始化等相关状态组件引用)关系,禁止操作',\n cancel: '取消',\n next: '下一步',\n exist: '存在',\n strong: '强引用',\n weak: '弱引用',\n relationFail: '查询关联关系失败',\n reliableQuery: '请提供一个可靠的查询请求',\n referenceFail: '查询引用关系失败',\n inQuery: '查询中...',\n noData: '暂无数据',\n viewReference: '引用关系查看',\n all: '全选',\n}\n\nexport const en_US = {\n globalNavigation: 'Global Navigation',\n menuSearch: 'Menu Search',\n\n // QueryForm\n search: 'Search',\n reset: 'Reset',\n moreFiltering: 'More filtering',\n expand: 'Expand',\n collapse: 'Collapse',\n\n // QueryListScene\n totalRecords: 'Totally %s Record(s)',\n\n // user popover\n nameNull: 'No nickname yet',\n personalSettings: 'Setting',\n changePwd: 'Change password',\n signOut: 'Sign out',\n\n // Handle\n handleMore: 'More',\n\n // Enter\n enter: 'Enter',\n // Select\n select: 'Select',\n\n // TntdAction\n batchOperation: 'Batch Operation',\n\n // Reference\n onLineFail: 'On-line verification failure',\n weakMsg:\n 'Caution When performing this operation, weak references exist for status components, such as offline, disabled, to be submitted/online, Import to be submitted/online, temporary, and save',\n strongMsg:\n 'A strong reference relationship exists (referenced by status components such as online, enabled, online and offline approval, and indicator initialization). Therefore, no operation is allowed',\n cancel: 'Cancel',\n next: 'Next',\n exist: 'Exist',\n strong: 'Strong',\n weak: 'Weak',\n relationFail: 'Description Failed to query the association relationship',\n reliableQuery: 'Please provide a reliable query request',\n referenceFail: 'Description Failed to query the reference relationship',\n inQuery: 'In query...',\n noData: 'No data',\n viewReference: 'Reference relationship viewing',\n all: 'all',\n}\n\nexport const getText = (key, language = getLanguage(), ...params) => {\n const text = ({\n cn: zh_CN,\n en: en_US,\n }[language] || zh_CN)?.[key]\n\n if (params?.length) {\n return params.reduce((acc, cur) => {\n return acc.replace(/%s/, cur)\n }, text)\n }\n\n return text\n}\n\nexport const getLanguage = () => getLanguageStore() || 'cn'\n\nexport default { en_US, zh_CN }\n"]}
@@ -25,9 +25,7 @@
25
25
  @primary-2: color(~`colorPalette('@{primary-color}', 2) `); // replace tint(@primary-color, 80%)
26
26
  @primary-3: color(~`colorPalette('@{primary-color}', 3) `); // unused
27
27
  @primary-4: color(~`colorPalette('@{primary-color}', 4) `); // unused
28
- @primary-5: color(
29
- ~`colorPalette('@{primary-color}', 5) `
30
- ); // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
28
+ @primary-5: color(~`colorPalette('@{primary-color}', 5) `); // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
31
29
  @primary-6: @primary-color; // color used to control the text color of active buttons, don't use, use @primary-color
32
30
  @primary-7: color(~`colorPalette('@{primary-color}', 7) `); // replace shade(@primary-color, 5%)
33
31
  @primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
@@ -698,4 +696,4 @@
698
696
  // ---
699
697
  @typography-title-font-weight: 600;
700
698
  @typography-title-margin-top: 1.2em;
701
- @typography-title-margin-bottom: 0.5em;
699
+ @typography-title-margin-bottom: 0.5em;
@@ -1,7 +1,9 @@
1
1
  @table-padding-vertical-md: @table-padding-vertical * 3 / 4;
2
- @table-padding-horizontal-md: @table-padding-horizontal / 2;
2
+ // @table-padding-horizontal-md: @table-padding-horizontal / 2;
3
+ @table-padding-horizontal-md: @table-padding-horizontal;
3
4
  @table-padding-vertical-sm: @table-padding-vertical - 4px;
4
- @table-padding-horizontal-sm: @table-padding-horizontal / 2;
5
+ // @table-padding-horizontal-sm: @table-padding-horizontal / 2;
6
+ @table-padding-horizontal-sm: @table-padding-horizontal;
5
7
 
6
8
  .@{table-prefix-cls}-middle {
7
9
  > .@{table-prefix-cls}-title,
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
4
12
  Object.defineProperty(exports, "__esModule", {
5
13
  value: true
6
14
  });
@@ -11,15 +19,84 @@ var _configProvider = require("antd/es/config-provider");
11
19
  var _LocaleReceiver = _interopRequireDefault(require("antd/es/locale-provider/LocaleReceiver"));
12
20
  var _classnames = _interopRequireDefault(require("classnames"));
13
21
  var _button = require("../button");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
18
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
20
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
+ function _interopRequireDefault(e) {
23
+ return e && e.__esModule ? e : {
24
+ "default": e
25
+ };
26
+ }
27
+ function _getRequireWildcardCache(e) {
28
+ if ("function" != typeof WeakMap) return null;
29
+ var r = new WeakMap(),
30
+ t = new WeakMap();
31
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
32
+ return e ? t : r;
33
+ })(e);
34
+ }
35
+ function _interopRequireWildcard(e, r) {
36
+ if (!r && e && e.__esModule) return e;
37
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
38
+ "default": e
39
+ };
40
+ var t = _getRequireWildcardCache(r);
41
+ if (t && t.has(e)) return t.get(e);
42
+ var n = {
43
+ __proto__: null
44
+ },
45
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
46
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
47
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
48
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
49
+ }
50
+ return n["default"] = e, t && t.set(e, n), n;
51
+ }
52
+ function _slicedToArray(r, e) {
53
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
54
+ }
55
+ function _nonIterableRest() {
56
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
57
+ }
58
+ function _unsupportedIterableToArray(r, a) {
59
+ if (r) {
60
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
61
+ var t = {}.toString.call(r).slice(8, -1);
62
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
63
+ }
64
+ }
65
+ function _arrayLikeToArray(r, a) {
66
+ (null == a || a > r.length) && (a = r.length);
67
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
68
+ return n;
69
+ }
70
+ function _iterableToArrayLimit(r, l) {
71
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
72
+ if (null != t) {
73
+ var e,
74
+ n,
75
+ i,
76
+ u,
77
+ a = [],
78
+ f = !0,
79
+ o = !1;
80
+ try {
81
+ if (i = (t = t.call(r)).next, 0 === l) {
82
+ if (Object(t) !== t) return;
83
+ f = !1;
84
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
85
+ } catch (r) {
86
+ o = !0, n = r;
87
+ } finally {
88
+ try {
89
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
90
+ } finally {
91
+ if (o) throw n;
92
+ }
93
+ }
94
+ return a;
95
+ }
96
+ }
97
+ function _arrayWithHoles(r) {
98
+ if (Array.isArray(r)) return r;
99
+ }
23
100
  var __rest = void 0 && (void 0).__rest || function (s, e) {
24
101
  var t = {};
25
102
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];