d2coreui 21.0.7 → 21.0.11

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