d2coreui 21.0.10 → 21.0.13

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 (44) hide show
  1. package/components/color/colorPicker.d.ts +20 -0
  2. package/components/color/colorPicker.js +54 -0
  3. package/components/color/colorPicker.js.map +1 -0
  4. package/components/color/colorUtils.d.ts +2 -0
  5. package/components/color/colorUtils.js +29 -0
  6. package/components/color/colorUtils.js.map +1 -1
  7. package/components/date/dateRangeInput.d.ts +13 -1
  8. package/components/date/dateRangeInput.js +100 -9
  9. package/components/date/dateRangeInput.js.map +1 -1
  10. package/components/date/dateRangeInputAdvancedPanel.d.ts +26 -0
  11. package/components/date/dateRangeInputAdvancedPanel.js +116 -0
  12. package/components/date/dateRangeInputAdvancedPanel.js.map +1 -0
  13. package/components/date/dateRangeInputConfirm.d.ts +11 -1
  14. package/components/date/dateRangeInputConfirm.js +67 -27
  15. package/components/date/dateRangeInputConfirm.js.map +1 -1
  16. package/components/date/dateTimeInput.d.ts +3 -0
  17. package/components/date/dateTimeInput.js +8 -5
  18. package/components/date/dateTimeInput.js.map +1 -1
  19. package/components/grid/cell/simpleStatusTextCellEditor.d.ts +1 -0
  20. package/components/grid/cell/simpleStatusTextCellEditor.js +17 -10
  21. package/components/grid/cell/simpleStatusTextCellEditor.js.map +1 -1
  22. package/components/grid/config/rowStylePicker.d.ts +1 -5
  23. package/components/grid/config/rowStylePicker.js +14 -70
  24. package/components/grid/config/rowStylePicker.js.map +1 -1
  25. package/components/grid/dataGrid.d.ts +1 -1
  26. package/components/grid/dataGrid.js +101 -122
  27. package/components/grid/dataGrid.js.map +1 -1
  28. package/components/grid/extendedDataGrid.d.ts +3 -1
  29. package/components/grid/extendedDataGrid.js +37 -6
  30. package/components/grid/extendedDataGrid.js.map +1 -1
  31. package/components/input/maskedInput.d.ts +3 -3
  32. package/components/scrollTo/scrollTo.d.ts +1 -0
  33. package/components/scrollTo/scrollTo.js +13 -0
  34. package/components/scrollTo/scrollTo.js.map +1 -1
  35. package/i18n/components.sk.json +17 -0
  36. package/package.json +2 -2
  37. package/style/flexLayout/flexLayout.scss +95 -1
  38. package/style/flexLayout/flexLayoutBase.scss +152 -151
  39. package/style/flexLayout/new/_base.scss +616 -0
  40. package/style/flexLayout/new/flexLayoutBase.scss +622 -0
  41. package/style/flexLayout/new/light.scss +107 -0
  42. package/style/flexLayout/old/_base.scss +551 -0
  43. package/style/flexLayout/old/light.scss +16 -0
  44. package/style/index.less +5 -0
@@ -8,28 +8,48 @@
8
8
 
9
9
  .flexlayout {
10
10
  &__layout {
11
+ --color-text: #{$color_text};
12
+ --color-background: #{$color_background};
13
+ --color-base: #{$color_base};
14
+ --color-1: #{$color_1};
15
+ --color-2: #{$color_2};
16
+ --color-3: #{$color_3};
17
+ --color-4: #{$color_4};
18
+ --color-5: #{$color_5};
19
+ --color-6: #{$color_6};
20
+ --color-drag1: #{$color_drag1};
21
+ --color-drag2: #{$color_drag2};
22
+ --color-drag1-background: #{$color_drag1_background};
23
+ --color-drag2-background: #{$color_drag2_background};
24
+
25
+ --font-size: #{$font-size};
26
+ --font-family: #{$font-family};
27
+
11
28
  @include absoluteFill;
12
29
  overflow: hidden;
13
30
  background-color: $color_background;
14
31
  }
15
32
 
16
33
  &__splitter {
17
- background-color: $color_splitter;
34
+ @include splitter_mixin;
18
35
 
19
36
  @media (hover: hover) {
20
37
  &:hover {
21
- background-color: $color_splitter_hover;
38
+ transition: background-color ease-in .1s;
39
+ transition-delay: 0.05s;
40
+ @include splitter_hover_mixin;
22
41
  }
23
42
  }
24
-
25
43
  &_border {
26
44
  z-index: 10;
45
+ @include splitter_border_mixin;
27
46
  }
28
-
29
47
  &_drag {
30
- border-radius: 5px;
31
- background-color: $color_splitter_drag;
32
48
  z-index: 1000;
49
+ @include splitter_drag_mixin;
50
+ }
51
+ &_extra {
52
+ background-color: transparent;
33
53
  }
34
54
  }
35
55
 
@@ -37,14 +57,15 @@
37
57
  position: absolute;
38
58
  cursor: move;
39
59
  box-sizing: border-box;
40
- border: 2px solid $color_drag1;
41
- box-shadow: inset 0 0 60px rgba(0, 0, 0, .2);
60
+ border: 2px solid var(--color-drag1);
61
+ background: var(--color-drag1-background);
42
62
  border-radius: 5px;
43
63
  z-index: 1000;
44
64
 
45
65
  &_edge {
46
66
  cursor: move;
47
- border: 2px solid $color_drag2;
67
+ border: 2px solid var(--color-drag2);
68
+ background: var(--color-drag2-background);
48
69
  border-radius: 5px;
49
70
  z-index: 1000;
50
71
  box-sizing: border-box;
@@ -72,10 +93,10 @@
72
93
  justify-content: center;
73
94
  flex-direction: column;
74
95
  overflow: hidden;
75
- padding: 10px;
96
+ padding: 0.5em 1em;
76
97
  word-wrap: break-word;
77
- font-size: $font-size;
78
- font-family: $font-family;
98
+ font-size: var(--font-size);
99
+ font-family: var(--font-family);
79
100
  }
80
101
 
81
102
  &__tabset {
@@ -92,7 +113,8 @@
92
113
  padding: 0;
93
114
  font-variant: tabular-nums;
94
115
 
95
- &_header { // tabset header bar
116
+ &_header {
117
+ // tabset header bar
96
118
  position: absolute;
97
119
  display: flex;
98
120
  align-items: center;
@@ -102,6 +124,8 @@
102
124
  color: $color_text;
103
125
  padding: 3px 3px 3px 5px;
104
126
  box-sizing: border-box;
127
+ border-bottom: 1px solid var(--color-3);
128
+ @include tabset_header_mixin;
105
129
 
106
130
  &_content {
107
131
  flex-grow: 1;
@@ -117,6 +141,7 @@
117
141
  right: 0;
118
142
  overflow: hidden;
119
143
  display: flex;
144
+ @include tabset_tabbar_mixin;
120
145
  }
121
146
 
122
147
  &_outer_top {
@@ -138,6 +163,9 @@
138
163
 
139
164
  &_tab_container {
140
165
  display: flex;
166
+ gap: 4px;
167
+ padding-left: 4px;
168
+ padding-right: 4px;
141
169
  box-sizing: border-box;
142
170
  position: absolute;
143
171
  top: 0;
@@ -147,7 +175,6 @@
147
175
  &_top {
148
176
  border-top: 2px solid transparent; // if you change this, update the _sizer above
149
177
  }
150
-
151
178
  &_bottom {
152
179
  border-bottom: 2px solid transparent;
153
180
  }
@@ -156,12 +183,22 @@
156
183
  }
157
184
 
158
185
  &-selected {
186
+ @include tabset_selected_mixin;
159
187
  }
160
188
 
161
189
  &-maximized {
190
+ @include tabset_maximized_mixin;
162
191
  }
163
192
  }
164
193
 
194
+ &__tab_button_stamp {
195
+ display: inline-flex;
196
+ align-items: center;
197
+ gap: 0.3em;
198
+ white-space: nowrap;
199
+ box-sizing: border-box;
200
+ }
201
+
165
202
  &__tab {
166
203
  overflow: auto;
167
204
  position: absolute;
@@ -170,58 +207,53 @@
170
207
  background-color: $color_content_background;
171
208
 
172
209
  &_button {
173
- display: inline-flex;
210
+ display: flex;
211
+ gap: 0.3em;
174
212
  align-items: center;
175
213
  box-sizing: border-box;
176
214
  padding: 5px 10px 4px 12px; // if you change top or bottom update the tabset_sizer above
177
215
  margin-right: 4px;
178
216
  vertical-align: top;
179
217
  cursor: pointer;
218
+ @include tab_button_mixin;
180
219
 
181
220
  &--selected {
182
- background-color: $color_background_selected;
183
- color: $color_selected;
221
+ @include tab_button_selected_mixin;
184
222
  }
185
-
186
223
  @media (hover: hover) {
187
224
  &:hover {
188
- background-color: $color_background_selected;
189
- color: $color_selected;
225
+ @include tab_button_hovered_mixin;
190
226
  }
191
227
  }
192
228
 
193
- &--selected {
194
- font-weight: 500;
195
- border-bottom: 3px solid $color_content_background;
196
- }
197
-
198
229
  &--unselected {
199
- color: gray;
200
- background-color: $color_background_unselected;
230
+ @include tab_button_unselected_mixin;
201
231
  }
202
232
 
203
233
  &_top {
204
- border-top-left-radius: 0px;
205
- border-top-right-radius: 0px;
234
+ @include tab_top_mixin;
206
235
  }
207
236
 
208
237
  &_bottom {
209
- border-bottom-left-radius: 3px;
210
- border-bottom-right-radius: 3px;
238
+ @include tab_bottom_mixin;
211
239
  }
212
240
 
213
241
  &_leading {
214
- display: inline-block;
242
+ display: flex;
215
243
  }
216
244
 
217
245
  &_content {
218
- display: inline-block;
246
+ display: flex;
219
247
  }
220
248
 
221
249
  &_textbox {
222
250
  border: none;
251
+ font-family: var(--font-family);
252
+ font-size: var(--font-size);
223
253
  color: $color_text;
224
254
  background-color: $color_content_background;
255
+ border: 1px inset var(--color-1);
256
+ border-radius: 3px;
225
257
  }
226
258
 
227
259
  &_textbox:focus {
@@ -229,61 +261,77 @@
229
261
  }
230
262
 
231
263
  &_trailing {
232
- display: inline-block;
233
- margin-left: 8px;
234
- margin-top: 0px;
235
- min-width: 8px;
236
- height: 21px;
264
+ display: flex;
265
+ visibility: hidden;
266
+ border-radius: 4px;
267
+ &:hover {
268
+ @include close_button_hovered_mixin;
269
+ }
237
270
  }
238
-
239
271
  @media (pointer: coarse) {
240
272
  &_trailing {
241
- min-width: 20px;
242
- min-height: 20px;
243
273
  }
244
274
  }
245
275
  @media (hover: hover) {
246
276
  &:hover &_trailing {
247
- background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
277
+ visibility: visible;
248
278
  }
249
279
  }
250
280
 
251
281
  &--selected &_trailing {
252
- background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
282
+ visibility: visible;
253
283
  }
254
284
 
255
285
  &_overflow {
256
- margin-left: 10px;
257
- padding-left: 12px;
286
+ display: flex;
287
+ align-items: center;
258
288
  border: none;
259
289
  color: $color_text;
260
290
  cursor: pointer;
261
291
  font-size: inherit;
262
- background: transparent url("../../components/icons/ant-design-double-right-outline.svg") no-repeat left;
292
+ background-color: transparent;
263
293
  }
264
294
  }
265
295
 
266
296
  &_toolbar {
267
297
  display: flex;
268
298
  align-items: center;
299
+ gap: .3em;
300
+ padding-left: .5em;
301
+ padding-right: .3em;
269
302
 
270
303
  &_button {
271
- min-width: 20px;
272
- min-height: 20px;
273
304
  border: none;
274
305
  outline: none;
306
+ font-size: inherit;
307
+ margin: 0px;
308
+ background-color: transparent;
309
+ border-radius: 4px;
310
+ padding: 1px;
311
+ @media (hover: hover) {
312
+ &:hover {
313
+ @include toolbar_button_hovered_mixin;
314
+ }
315
+ }
275
316
 
276
317
  &-min {
277
- background: transparent url("../../components/icons/maximize.png") no-repeat center;
278
318
  }
279
319
 
280
320
  &-max {
281
- background: transparent url("../../components/icons/restore.png") no-repeat center;
282
321
  }
283
322
 
284
323
  &-float {
285
- background: transparent url("../../components/icons/popout.png") no-repeat center;
286
324
  }
325
+
326
+ &-close {
327
+ }
328
+ }
329
+
330
+ &_sticky_buttons_container {
331
+ display: flex;
332
+ gap: 0.3em;
333
+ padding-left: 2px;
334
+ align-items: center;
287
335
  }
288
336
  }
289
337
 
@@ -317,12 +365,12 @@
317
365
  }
318
366
 
319
367
  &__border {
320
- background-color: $color_border;
321
368
  box-sizing: border-box;
322
369
  overflow: hidden;
323
370
  display: flex;
324
- font-size: $font-size;
325
- font-family: $font-family;
371
+ font-size: var(--font-size);
372
+ font-family: var(--font-family);
373
+ @include border_mixin;
326
374
 
327
375
  &_top {
328
376
  border-bottom: 1px solid $color_border_line;
@@ -356,6 +404,9 @@
356
404
  &_tab_container {
357
405
  white-space: nowrap;
358
406
  display: flex;
407
+ gap: 4px;
408
+ padding-left: 2px;
409
+ padding-right: 2px;
359
410
  box-sizing: border-box;
360
411
  position: absolute;
361
412
  top: 0;
@@ -366,7 +417,6 @@
366
417
  transform-origin: top left;
367
418
  transform: rotate(90deg);
368
419
  }
369
-
370
420
  &_left {
371
421
  flex-direction: row-reverse;
372
422
  transform-origin: top right;
@@ -377,115 +427,123 @@
377
427
 
378
428
  &_button {
379
429
  display: flex;
430
+ gap: 0.3em;
380
431
  align-items: center;
381
432
  cursor: pointer;
382
- padding: 3px 8px;
383
- margin: 2px;
384
- border-radius: 3px;
433
+ padding: 3px 0.5em;
434
+ margin: 2px 0px;
385
435
  box-sizing: border-box;
386
436
  white-space: nowrap;
437
+ @include border_button_mixin;
387
438
 
388
439
  &--selected {
389
- background-color: $color_border_line;
390
- color: $color_text;
440
+ @include border_button_selected_mixin;
391
441
  }
392
-
393
442
  @media (hover: hover) {
394
443
  &:hover {
395
- background-color: $color_border_line;
396
- color: $color_text;
444
+ @include border_button_hovered_mixin;
397
445
  }
398
446
  }
399
447
 
400
448
  &--unselected {
401
- color: gray;
449
+ @include border_button_unselected_mixin;
402
450
  }
403
451
 
404
452
  &_leading {
405
- display: inline;
453
+ display: flex;
406
454
  }
407
455
 
408
456
  &_content {
409
- display: inline-block;
457
+ display: flex;
410
458
  }
411
459
 
412
460
  &_trailing {
413
- display: inline-block;
414
- margin-left: 8px;
415
- min-width: 12px;
416
- min-height: 14px;
461
+ display: flex;
462
+ border-radius: 4px;
463
+ visibility: hidden;
417
464
  color: $color_text;
465
+ &:hover {
466
+ @include close_button_hovered_mixin;
467
+ }
418
468
  }
419
-
420
469
  @media (pointer: coarse) {
421
470
  &_trailing {
422
- min-width: 20px;
423
- min-height: 20px;
424
471
  }
425
472
  }
426
-
427
473
  @media (hover: hover) {
428
474
  &:hover &_trailing {
429
- background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
475
+ visibility: visible;
430
476
  }
431
477
  }
432
478
 
433
479
  &--selected &_trailing {
434
- background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
480
+ visibility: visible;
435
481
  }
436
482
  }
437
483
 
438
484
  &_toolbar {
439
485
  display: flex;
486
+ gap: .3em;
440
487
  align-items: center;
441
488
 
442
- &_left {
489
+ &_left,
490
+ &_right {
443
491
  flex-direction: column;
492
+ padding-top: .5em;
493
+ padding-bottom: .3em;
444
494
  }
445
495
 
446
- &_right {
447
- flex-direction: column;
496
+ &_top,
497
+ &_bottom {
498
+ padding-left: .5em;
499
+ padding-right: .3em;
448
500
  }
449
501
 
450
502
  &_button {
451
- min-width: 20px;
452
- min-height: 20px;
453
503
  border: none;
454
504
  outline: none;
505
+ font-size: inherit;
506
+ background-color: transparent;
507
+ border-radius: 4px;
508
+ padding: 1px;
509
+ @media (hover: hover) {
510
+ &:hover {
511
+ @include toolbar_button_hovered_mixin;
512
+ }
513
+ }
455
514
 
456
515
  &-float {
457
- background: transparent url("../../components/icons/popout.png") no-repeat center;
458
516
  }
459
517
 
460
518
  &_overflow {
519
+ display: flex;
520
+ align-items: center;
461
521
  border: none;
462
- padding-left: 12px;
463
522
  color: gray;
464
523
  font-size: inherit;
465
- background: transparent url("../../components/icons/more2.png") no-repeat left;
524
+ background-color: transparent;
466
525
  }
467
526
 
468
527
  &_overflow_top,
469
528
  &_overflow_bottom {
470
- margin-left: 10px;
471
529
  }
472
530
 
473
531
  &_overflow_right,
474
532
  &_overflow_left {
475
- padding-right: 0px;
476
- margin-top: 5px;
477
533
  }
478
534
  }
479
535
  }
480
536
  }
481
537
 
482
538
  &__popup_menu {
483
- font-size: $font-size;
484
- font-family: $font-family;
539
+ font-size: var(--font-size);
540
+ font-family: var(--font-family);
485
541
 
486
542
  &_item {
487
- padding: 2px 10px 2px 10px;
543
+ padding: 2px 0.5em;
488
544
  white-space: nowrap;
545
+ cursor: pointer;
546
+ border-radius: 2px;
489
547
  }
490
548
 
491
549
  @media (hover: hover) {
@@ -505,6 +563,7 @@
505
563
  max-height: 50%;
506
564
  min-width: 100px;
507
565
  overflow: auto;
566
+ padding: 2px;
508
567
  }
509
568
  }
510
569
 
@@ -522,64 +581,8 @@
522
581
  @include absoluteFill;
523
582
 
524
583
  box-sizing: border-box;
525
- background-color: $color_background;
526
- color: $color_text;
527
- }
528
- }
529
-
530
- &__tab_floating {
531
- overflow: auto;
532
- position: absolute;
533
- box-sizing: border-box;
534
- color: $color_text;
535
- background-color: $color_background;
536
- display: flex;
537
- justify-content: center;
538
- align-items: center;
539
-
540
- &_inner {
541
- overflow: auto;
542
- display: flex;
543
- flex-direction: column;
544
- justify-content: center;
545
- align-items: center;
546
- }
547
-
548
- &_inner div {
549
- margin-bottom: 5px;
550
- text-align: center;
551
- }
552
-
553
- &_inner div a {
554
- color: royalblue;
555
- }
556
- }
557
-
558
- &__tab_floating {
559
- overflow: auto;
560
- position: absolute;
561
- box-sizing: border-box;
562
- color: $color_text;
563
- background-color: $color_background;
564
- display: flex;
565
- justify-content: center;
566
- align-items: center;
567
-
568
- &_inner {
569
- overflow: auto;
570
- display: flex;
571
- flex-direction: column;
572
- justify-content: center;
573
- align-items: center;
574
- }
575
-
576
- &_inner div {
577
- margin-bottom: 5px;
578
- text-align: center;
579
- }
580
-
581
- &_inner div a {
582
- color: royalblue;
584
+ background-color: var(--color-background);
585
+ color: var(--color-text);
583
586
  }
584
587
  }
585
588
 
@@ -588,7 +591,6 @@
588
591
  display: flex;
589
592
  justify-content: center;
590
593
  }
591
-
592
594
  &__error_boundary_content {
593
595
  display: flex;
594
596
  align-items: center;
@@ -618,5 +620,4 @@
618
620
  font-size: $font-size;
619
621
  font-family: $font-family;
620
622
  }
621
-
622
- }
623
+ }