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
@@ -0,0 +1,622 @@
1
+ @mixin absoluteFill {
2
+ left: 0;
3
+ top: 0;
4
+ right: 0;
5
+ bottom: 0;
6
+ position: absolute;
7
+ }
8
+
9
+ .flexlayout {
10
+ &__layout {
11
+ @include absoluteFill;
12
+ overflow: hidden;
13
+ background-color: $color_background;
14
+ }
15
+
16
+ &__splitter {
17
+ background-color: $color_splitter;
18
+
19
+ @media (hover: hover) {
20
+ &:hover {
21
+ background-color: $color_splitter_hover;
22
+ }
23
+ }
24
+
25
+ &_border {
26
+ z-index: 10;
27
+ }
28
+
29
+ &_drag {
30
+ border-radius: 5px;
31
+ background-color: $color_splitter_drag;
32
+ z-index: 1000;
33
+ }
34
+ }
35
+
36
+ &__outline_rect {
37
+ position: absolute;
38
+ cursor: move;
39
+ box-sizing: border-box;
40
+ border: 2px solid $color_drag1;
41
+ box-shadow: inset 0 0 60px rgba(0, 0, 0, .2);
42
+ border-radius: 5px;
43
+ z-index: 1000;
44
+
45
+ &_edge {
46
+ cursor: move;
47
+ border: 2px solid $color_drag2;
48
+ border-radius: 5px;
49
+ z-index: 1000;
50
+ box-sizing: border-box;
51
+ }
52
+ }
53
+
54
+ &__edge_rect {
55
+ position: absolute;
56
+ z-index: 1000;
57
+ background-color: $color_background;
58
+ }
59
+
60
+ &__drag_rect {
61
+ position: absolute;
62
+ cursor: move;
63
+ background-color: $color_background;
64
+ border: 2px solid $color_background_border;
65
+ border-radius: 5px;
66
+ z-index: 1000;
67
+ box-sizing: border-box;
68
+ opacity: 0.9;
69
+ text-align: center;
70
+
71
+ display: flex;
72
+ justify-content: center;
73
+ flex-direction: column;
74
+ overflow: hidden;
75
+ padding: 10px;
76
+ word-wrap: break-word;
77
+ font-size: $font-size;
78
+ font-family: $font-family;
79
+ }
80
+
81
+ &__tabset {
82
+ overflow: hidden;
83
+ color: $color_text;
84
+ background-color: $color_background;
85
+ line-height: 1.5;
86
+ box-sizing: border-box;
87
+ font-size: $font-size;
88
+ font-family: $font-family;
89
+ font-feature-settings: "tnum";
90
+ zoom: 1;
91
+ margin: 0;
92
+ padding: 0;
93
+ font-variant: tabular-nums;
94
+
95
+ &_header { // tabset header bar
96
+ position: absolute;
97
+ display: flex;
98
+ align-items: center;
99
+ left: 0;
100
+ right: 0;
101
+ background-color: $color_background;
102
+ color: $color_text;
103
+ padding: 3px 3px 3px 5px;
104
+ box-sizing: border-box;
105
+
106
+ &_content {
107
+ flex-grow: 1;
108
+ }
109
+ }
110
+
111
+ &_tabbar {
112
+ &_outer {
113
+ // tabset tabbar outer
114
+ box-sizing: border-box;
115
+ position: absolute;
116
+ left: 2px;
117
+ right: 0;
118
+ overflow: hidden;
119
+ display: flex;
120
+ }
121
+
122
+ &_outer_top {
123
+ border-bottom: 1px solid $color_background_selected;
124
+ }
125
+
126
+ &_outer_bottom {
127
+ box-sizing: border-box;
128
+ border-top: 1px solid $color_background_selected;
129
+ }
130
+
131
+ &_inner {
132
+ // tabset tabbar inner
133
+ position: relative;
134
+ box-sizing: border-box;
135
+ display: flex;
136
+ flex-grow: 1;
137
+ overflow: hidden;
138
+
139
+ &_tab_container {
140
+ display: flex;
141
+ box-sizing: border-box;
142
+ position: absolute;
143
+ top: 0;
144
+ bottom: 0;
145
+ width: 10000px;
146
+
147
+ &_top {
148
+ border-top: 2px solid transparent; // if you change this, update the _sizer above
149
+ }
150
+
151
+ &_bottom {
152
+ border-bottom: 2px solid transparent;
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
+ &-selected {
159
+ }
160
+
161
+ &-maximized {
162
+ }
163
+ }
164
+
165
+ &__tab {
166
+ overflow: auto;
167
+ position: absolute;
168
+ box-sizing: border-box;
169
+ color: $color_text;
170
+ background-color: $color_content_background;
171
+
172
+ &_button {
173
+ display: inline-flex;
174
+ align-items: center;
175
+ box-sizing: border-box;
176
+ padding: 5px 10px 4px 12px; // if you change top or bottom update the tabset_sizer above
177
+ margin-right: 4px;
178
+ vertical-align: top;
179
+ cursor: pointer;
180
+
181
+ &--selected {
182
+ background-color: $color_background_selected;
183
+ color: $color_selected;
184
+ }
185
+
186
+ @media (hover: hover) {
187
+ &:hover {
188
+ background-color: $color_background_selected;
189
+ color: $color_selected;
190
+ }
191
+ }
192
+
193
+ &--selected {
194
+ font-weight: 500;
195
+ border-bottom: 3px solid $color_content_background;
196
+ }
197
+
198
+ &--unselected {
199
+ color: gray;
200
+ background-color: $color_background_unselected;
201
+ }
202
+
203
+ &_top {
204
+ border-top-left-radius: 0px;
205
+ border-top-right-radius: 0px;
206
+ }
207
+
208
+ &_bottom {
209
+ border-bottom-left-radius: 3px;
210
+ border-bottom-right-radius: 3px;
211
+ }
212
+
213
+ &_leading {
214
+ display: inline-block;
215
+ }
216
+
217
+ &_content {
218
+ display: inline-block;
219
+ }
220
+
221
+ &_textbox {
222
+ border: none;
223
+ color: $color_text;
224
+ background-color: $color_content_background;
225
+ }
226
+
227
+ &_textbox:focus {
228
+ outline: none;
229
+ }
230
+
231
+ &_trailing {
232
+ display: inline-block;
233
+ margin-left: 8px;
234
+ margin-top: 0px;
235
+ min-width: 8px;
236
+ height: 21px;
237
+ }
238
+
239
+ @media (pointer: coarse) {
240
+ &_trailing {
241
+ min-width: 20px;
242
+ min-height: 20px;
243
+ }
244
+ }
245
+ @media (hover: hover) {
246
+ &:hover &_trailing {
247
+ background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
248
+ }
249
+ }
250
+
251
+ &--selected &_trailing {
252
+ background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
253
+ }
254
+
255
+ &_overflow {
256
+ margin-left: 10px;
257
+ padding-left: 12px;
258
+ border: none;
259
+ color: $color_text;
260
+ cursor: pointer;
261
+ font-size: inherit;
262
+ background: transparent url("../../components/icons/ant-design-double-right-outline.svg") no-repeat left;
263
+ }
264
+ }
265
+
266
+ &_toolbar {
267
+ display: flex;
268
+ align-items: center;
269
+
270
+ &_button {
271
+ min-width: 20px;
272
+ min-height: 20px;
273
+ border: none;
274
+ outline: none;
275
+
276
+ &-min {
277
+ background: transparent url("../../components/icons/maximize.png") no-repeat center;
278
+ }
279
+
280
+ &-max {
281
+ background: transparent url("../../components/icons/restore.png") no-repeat center;
282
+ }
283
+
284
+ &-float {
285
+ background: transparent url("../../components/icons/popout.png") no-repeat center;
286
+ }
287
+ }
288
+ }
289
+
290
+ &_floating {
291
+ overflow: auto;
292
+ position: absolute;
293
+ box-sizing: border-box;
294
+ color: $color_text;
295
+ background-color: $color_content_background;
296
+ display: flex;
297
+ justify-content: center;
298
+ align-items: center;
299
+
300
+ &_inner {
301
+ overflow: auto;
302
+ display: flex;
303
+ flex-direction: column;
304
+ justify-content: center;
305
+ align-items: center;
306
+ }
307
+
308
+ &_inner div {
309
+ margin-bottom: 5px;
310
+ text-align: center;
311
+ }
312
+
313
+ &_inner div a {
314
+ color: royalblue;
315
+ }
316
+ }
317
+ }
318
+
319
+ &__border {
320
+ background-color: $color_border;
321
+ box-sizing: border-box;
322
+ overflow: hidden;
323
+ display: flex;
324
+ font-size: $font-size;
325
+ font-family: $font-family;
326
+
327
+ &_top {
328
+ border-bottom: 1px solid $color_border_line;
329
+ align-items: center;
330
+ }
331
+
332
+ &_bottom {
333
+ border-top: 1px solid $color_border_line;
334
+ align-items: center;
335
+ }
336
+
337
+ &_left {
338
+ border-right: 1px solid $color_border_line;
339
+ align-content: center;
340
+ flex-direction: column;
341
+ }
342
+
343
+ &_right {
344
+ border-left: 1px solid $color_border_line;
345
+ align-content: center;
346
+ flex-direction: column;
347
+ }
348
+
349
+ &_inner {
350
+ position: relative;
351
+ box-sizing: border-box;
352
+ display: flex;
353
+ overflow: hidden;
354
+ flex-grow: 1;
355
+
356
+ &_tab_container {
357
+ white-space: nowrap;
358
+ display: flex;
359
+ box-sizing: border-box;
360
+ position: absolute;
361
+ top: 0;
362
+ bottom: 0;
363
+ width: 10000px;
364
+
365
+ &_right {
366
+ transform-origin: top left;
367
+ transform: rotate(90deg);
368
+ }
369
+
370
+ &_left {
371
+ flex-direction: row-reverse;
372
+ transform-origin: top right;
373
+ transform: rotate(-90deg);
374
+ }
375
+ }
376
+ }
377
+
378
+ &_button {
379
+ display: flex;
380
+ align-items: center;
381
+ cursor: pointer;
382
+ padding: 3px 8px;
383
+ margin: 2px;
384
+ border-radius: 3px;
385
+ box-sizing: border-box;
386
+ white-space: nowrap;
387
+
388
+ &--selected {
389
+ background-color: $color_border_line;
390
+ color: $color_text;
391
+ }
392
+
393
+ @media (hover: hover) {
394
+ &:hover {
395
+ background-color: $color_border_line;
396
+ color: $color_text;
397
+ }
398
+ }
399
+
400
+ &--unselected {
401
+ color: gray;
402
+ }
403
+
404
+ &_leading {
405
+ display: inline;
406
+ }
407
+
408
+ &_content {
409
+ display: inline-block;
410
+ }
411
+
412
+ &_trailing {
413
+ display: inline-block;
414
+ margin-left: 8px;
415
+ min-width: 12px;
416
+ min-height: 14px;
417
+ color: $color_text;
418
+ }
419
+
420
+ @media (pointer: coarse) {
421
+ &_trailing {
422
+ min-width: 20px;
423
+ min-height: 20px;
424
+ }
425
+ }
426
+
427
+ @media (hover: hover) {
428
+ &:hover &_trailing {
429
+ background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
430
+ }
431
+ }
432
+
433
+ &--selected &_trailing {
434
+ background: transparent url("../../components/icons/ant-design_close-outline.svg") no-repeat center;
435
+ }
436
+ }
437
+
438
+ &_toolbar {
439
+ display: flex;
440
+ align-items: center;
441
+
442
+ &_left {
443
+ flex-direction: column;
444
+ }
445
+
446
+ &_right {
447
+ flex-direction: column;
448
+ }
449
+
450
+ &_button {
451
+ min-width: 20px;
452
+ min-height: 20px;
453
+ border: none;
454
+ outline: none;
455
+
456
+ &-float {
457
+ background: transparent url("../../components/icons/popout.png") no-repeat center;
458
+ }
459
+
460
+ &_overflow {
461
+ border: none;
462
+ padding-left: 12px;
463
+ color: gray;
464
+ font-size: inherit;
465
+ background: transparent url("../../components/icons/more2.png") no-repeat left;
466
+ }
467
+
468
+ &_overflow_top,
469
+ &_overflow_bottom {
470
+ margin-left: 10px;
471
+ }
472
+
473
+ &_overflow_right,
474
+ &_overflow_left {
475
+ padding-right: 0px;
476
+ margin-top: 5px;
477
+ }
478
+ }
479
+ }
480
+ }
481
+
482
+ &__popup_menu {
483
+ font-size: $font-size;
484
+ font-family: $font-family;
485
+
486
+ &_item {
487
+ padding: 2px 10px 2px 10px;
488
+ white-space: nowrap;
489
+ }
490
+
491
+ @media (hover: hover) {
492
+ &_item:hover {
493
+ background-color: $color_border;
494
+ }
495
+ }
496
+
497
+ &_container {
498
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
499
+ border: 1px solid $color_border;
500
+ color: $color_text;
501
+ background: $color_background;
502
+ border-radius: 3px;
503
+ position: absolute;
504
+ z-index: 1000;
505
+ max-height: 50%;
506
+ min-width: 100px;
507
+ overflow: auto;
508
+ }
509
+ }
510
+
511
+ &__floating_window {
512
+ _body {
513
+ height: 100%;
514
+ }
515
+
516
+ &_content {
517
+ @include absoluteFill;
518
+ }
519
+
520
+ &_tab {
521
+ overflow: auto;
522
+ @include absoluteFill;
523
+
524
+ 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;
583
+ }
584
+ }
585
+
586
+ &__error_boundary_container {
587
+ @include absoluteFill;
588
+ display: flex;
589
+ justify-content: center;
590
+ }
591
+
592
+ &__error_boundary_content {
593
+ display: flex;
594
+ align-items: center;
595
+ }
596
+
597
+ // These classes are used to measure the sizes for tab header bar, tab bar and border bars,
598
+ // only the height is used, the padding should match the vertical spacing (padding & margins)
599
+ // that have been used in the above classes
600
+
601
+ &__tabset_sizer {
602
+ padding-top: 5px; // tab_button has 3 padding top, tabset header inner has 2 border
603
+ padding-bottom: 3px; // tab_button has 3 padding bottom
604
+ font-size: $font-size;
605
+ font-family: $font-family;
606
+ }
607
+
608
+ &__tabset_header_sizer {
609
+ padding-top: 3px;
610
+ padding-bottom: 3px;
611
+ font-size: $font-size;
612
+ font-family: $font-family;
613
+ }
614
+
615
+ &__border_sizer {
616
+ padding-top: 6px;
617
+ padding-bottom: 5px;
618
+ font-size: $font-size;
619
+ font-family: $font-family;
620
+ }
621
+
622
+ }
@@ -0,0 +1,107 @@
1
+ $color_text: black !default;
2
+ $color_background: white !default;
3
+ $color_base: white !default;
4
+ $color_1: scale_color($color_base, $lightness: -3%) !default;
5
+ $color_2: scale_color($color_1, $lightness: -3%) !default;
6
+ $color_3: scale_color($color_2, $lightness: -3%) !default;
7
+ $color_4: scale_color($color_3, $lightness: -3%) !default;
8
+ $color_5: scale_color($color_4, $lightness: -3%) !default;
9
+ $color_6: scale_color($color_5, $lightness: -3%) !default;
10
+ $color_drag1: rgb(95, 134, 196) !default;
11
+ $color_drag2: rgb(119, 166, 119) !default;
12
+ $color_drag1_background: rgba(95, 134, 196, 0.1) !default;
13
+ $color_drag2_background: rgba(119, 166, 119, 0.075) !default;
14
+
15
+ $font-size: medium !default;
16
+ $font-family: Roboto, Arial, sans-serif !default;
17
+
18
+ @mixin tabset_mixin {
19
+ background-color: var(--color-background);
20
+ }
21
+
22
+ @mixin tabset_tabbar_mixin {
23
+ background-color: var(--color-background);
24
+ }
25
+
26
+ @mixin tabset_header_mixin {
27
+ background-color: var(--color-background);
28
+ }
29
+
30
+ @mixin tabset_selected_mixin {
31
+ background-color: var(--color-1);
32
+ }
33
+
34
+ @mixin tabset_maximized_mixin {
35
+ background-color: var(--color-6);
36
+ }
37
+
38
+ @mixin tab_top_mixin {
39
+ }
40
+
41
+ @mixin tab_bottom_mixin {
42
+ }
43
+
44
+ @mixin tab_button_mixin {
45
+ }
46
+
47
+ @mixin tab_button_selected_mixin {
48
+ background-color: var(--color-4);
49
+ color: var(--color-text);
50
+ }
51
+
52
+ @mixin tab_button_unselected_mixin {
53
+ color: gray;
54
+ }
55
+
56
+ @mixin tab_button_hovered_mixin {
57
+ background-color: var(--color-4);
58
+ color: var(--color-text);
59
+ }
60
+
61
+ @mixin close_button_hovered_mixin {
62
+ background-color:var(--color-3);
63
+ }
64
+
65
+ @mixin toolbar_button_hovered_mixin {
66
+ background-color:var(--color-2);
67
+ }
68
+
69
+ @mixin border_mixin {
70
+ background-color: var(--color-background);
71
+ }
72
+
73
+ @mixin border_button_mixin {
74
+ background-color: var(--color-2);
75
+ }
76
+
77
+ @mixin border_button_selected_mixin {
78
+ background-color: $color_border_line;
79
+ color: $color_text;
80
+ }
81
+
82
+ @mixin border_button_unselected_mixin {
83
+ color: gray;
84
+ }
85
+
86
+ @mixin border_button_hovered_mixin {
87
+ background-color: $color_border_line;
88
+ color: $color_text;
89
+ }
90
+
91
+ @mixin splitter_mixin {
92
+ background-color: $color_splitter;
93
+ }
94
+
95
+ @mixin splitter_hover_mixin {
96
+ background-color: $color_splitter_hover;
97
+ }
98
+
99
+ @mixin splitter_drag_mixin {
100
+ border-radius: 5px;
101
+ background-color: $color_splitter_drag;
102
+ }
103
+
104
+ @mixin splitter_border_mixin {
105
+ }
106
+
107
+ @import "_base";