@gingkoo/pandora-metabase 1.0.126 → 1.0.128

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 (65) hide show
  1. package/lib/cjs/components/dialog/expression/index.js +15 -5
  2. package/lib/cjs/components/dialog/expression/index.less +31 -16
  3. package/lib/cjs/components/dialog/formula-list/CaseWhenGroup.d.ts +14 -5
  4. package/lib/cjs/components/dialog/formula-list/CaseWhenGroup.js +236 -62
  5. package/lib/cjs/components/dialog/formula-list/LogicGroup.d.ts +3 -2
  6. package/lib/cjs/components/dialog/formula-list/LogicGroup.js +19 -11
  7. package/lib/cjs/components/dialog/formula-list/index.d.ts +1 -0
  8. package/lib/cjs/components/dialog/formula-list/index.js +658 -174
  9. package/lib/cjs/components/dialog/formula-list/index.less +1438 -145
  10. package/lib/cjs/components/dialog/formula-list/utils.js +50 -19
  11. package/lib/cjs/components/dialog/select-column-multiple/index.d.ts +1 -0
  12. package/lib/cjs/components/dialog/select-column-multiple/index.js +42 -22
  13. package/lib/cjs/components/dialog/select-summarize/index.js +10 -2
  14. package/lib/cjs/components/dialog/select-table/index.d.ts +2 -1
  15. package/lib/cjs/components/dialog/select-table/index.js +197 -52
  16. package/lib/cjs/components/dialog/select-table/index.less +45 -2
  17. package/lib/cjs/components/metabase/index.less +156 -39
  18. package/lib/cjs/components/modules/custom-column.js +7 -3
  19. package/lib/cjs/components/modules/filter.js +6 -3
  20. package/lib/cjs/components/modules/join-data.js +67 -16
  21. package/lib/cjs/components/modules/permission-table.js +8 -4
  22. package/lib/cjs/components/modules/sort.js +2 -1
  23. package/lib/cjs/components/modules/summarize/group-by.js +20 -6
  24. package/lib/cjs/components/modules/summarize/select-index.js +9 -5
  25. package/lib/cjs/components/modules/table-data.js +26 -5
  26. package/lib/cjs/hooks/use-state.js +143 -17
  27. package/lib/cjs/index.js +7 -1
  28. package/lib/cjs/store/types.d.ts +14 -7
  29. package/lib/cjs/types.d.ts +8 -0
  30. package/lib/cjs/utils/transformSql.js +44 -21
  31. package/lib/cjs/utils.d.ts +2 -2
  32. package/lib/cjs/utils.js +349 -58
  33. package/lib/es/components/dialog/expression/index.js +15 -5
  34. package/lib/es/components/dialog/expression/index.less +31 -16
  35. package/lib/es/components/dialog/formula-list/CaseWhenGroup.d.ts +14 -5
  36. package/lib/es/components/dialog/formula-list/CaseWhenGroup.js +238 -64
  37. package/lib/es/components/dialog/formula-list/LogicGroup.d.ts +3 -2
  38. package/lib/es/components/dialog/formula-list/LogicGroup.js +19 -11
  39. package/lib/es/components/dialog/formula-list/index.d.ts +1 -0
  40. package/lib/es/components/dialog/formula-list/index.js +660 -176
  41. package/lib/es/components/dialog/formula-list/index.less +1438 -145
  42. package/lib/es/components/dialog/formula-list/utils.js +50 -19
  43. package/lib/es/components/dialog/select-column-multiple/index.d.ts +1 -0
  44. package/lib/es/components/dialog/select-column-multiple/index.js +42 -22
  45. package/lib/es/components/dialog/select-summarize/index.js +10 -2
  46. package/lib/es/components/dialog/select-table/index.d.ts +2 -1
  47. package/lib/es/components/dialog/select-table/index.js +197 -52
  48. package/lib/es/components/dialog/select-table/index.less +45 -2
  49. package/lib/es/components/metabase/index.less +156 -39
  50. package/lib/es/components/modules/custom-column.js +7 -3
  51. package/lib/es/components/modules/filter.js +6 -3
  52. package/lib/es/components/modules/join-data.js +67 -16
  53. package/lib/es/components/modules/permission-table.js +8 -4
  54. package/lib/es/components/modules/sort.js +2 -1
  55. package/lib/es/components/modules/summarize/group-by.js +21 -7
  56. package/lib/es/components/modules/summarize/select-index.js +10 -6
  57. package/lib/es/components/modules/table-data.js +26 -5
  58. package/lib/es/hooks/use-state.js +143 -17
  59. package/lib/es/index.js +7 -1
  60. package/lib/es/store/types.d.ts +14 -7
  61. package/lib/es/types.d.ts +8 -0
  62. package/lib/es/utils/transformSql.js +45 -22
  63. package/lib/es/utils.d.ts +2 -2
  64. package/lib/es/utils.js +350 -59
  65. package/package.json +1 -1
@@ -21,15 +21,29 @@
21
21
  }
22
22
  }
23
23
  .Sqb-Filter-item {
24
- --sqb-item-shell-margin-x: 10px;
24
+ --sqb-item-shell-margin-x: 14px;
25
25
  --sqb-item-gap-x: 8px;
26
- --sqb-item-gap-y: 8px;
27
- --sqb-arrow-offset-left: -30px;
28
- --sqb-arrow-offset-right: -20px;
26
+ --sqb-item-gap-y: 6px;
27
+ --sqb-action-size: 12px;
28
+ --sqb-action-height: 18px;
29
+ --sqb-action-zone: 16px;
30
+ --sqb-action-bridge: 18px;
31
+ --sqb-action-radius: 5px;
32
+ --sqb-action-offset: -16px;
33
+ --sqb-copy-size: 18px;
34
+ --sqb-copy-offset-left: calc(var(--sqb-item-shell-margin-x) / -2);
35
+ --sqb-arrow-offset-left: var(--sqb-action-offset);
36
+ --sqb-arrow-offset-right: var(--sqb-action-offset);
29
37
  --sqb-check-offset: 28px;
30
38
  --sqb-check-inner-offset: 20px;
31
39
  position: relative;
32
- margin: 0 var(--sqb-item-shell-margin-x) var(--sqb-item-gap-y);
40
+ // margin: 0 var(--sqb-item-shell-margin-x);
41
+
42
+ &.hover,
43
+ &:hover {
44
+ z-index: 5;
45
+ }
46
+
33
47
  &-content {
34
48
  position: relative;
35
49
  display: inline-flex;
@@ -37,15 +51,30 @@
37
51
  }
38
52
  &-copy {
39
53
  position: absolute;
40
- left: -14px;
54
+ left: var(--sqb-copy-offset-left);
41
55
  top: 50%;
56
+ z-index: 4;
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: center;
42
60
  transform: translate(-50%, -50%);
43
61
 
62
+ .pd-Button {
63
+ display: inline-flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ width: var(--sqb-copy-size);
67
+ min-width: var(--sqb-copy-size);
68
+ height: var(--sqb-copy-size);
69
+ padding: 0;
70
+ border-radius: 50%;
71
+ box-shadow: 0 2px 5px rgba(80, 158, 227, 0.14);
72
+ }
73
+
44
74
  &-static {
45
75
  position: static;
46
76
  display: inline-flex;
47
77
  align-items: center;
48
- margin-bottom: 8px;
49
78
  transform: none;
50
79
  }
51
80
  }
@@ -89,12 +118,13 @@
89
118
  display: none;
90
119
  position: absolute;
91
120
  left: 0;
92
- top: 0;
121
+ top: 50%;
93
122
  z-index: 2;
94
123
  margin: 0;
95
124
  padding: 0;
96
125
  width: 100%;
97
- height: calc(100% - 8px);
126
+ height: 100%;
127
+ transform: translateY(-50%);
98
128
  .pd-Checkbox-mask-wrapper {
99
129
  margin: 0;
100
130
  width: 100%;
@@ -124,8 +154,8 @@
124
154
  height: 100%;
125
155
 
126
156
  .pd-Checkbox-mask-wrapper {
127
- align-items: flex-start;
128
- padding-top: 10px;
157
+ align-items: center;
158
+ padding-top: 0;
129
159
  }
130
160
  }
131
161
  }
@@ -141,22 +171,89 @@
141
171
  margin: 0;
142
172
  }
143
173
 
174
+ .Sqb-TableName {
175
+ display: inline-flex;
176
+ align-items: center;
177
+ min-height: 28px;
178
+ padding: 4px 7px;
179
+ border-width: 1px;
180
+ border-radius: 5px;
181
+ font-size: 13px;
182
+ line-height: 18px;
183
+ box-sizing: border-box;
184
+ }
185
+
186
+ .Sqb-TableName .item-del {
187
+ display: inline-flex;
188
+ align-items: center;
189
+ justify-content: center;
190
+ flex: 0 0 auto;
191
+ width: 14px;
192
+ height: 14px;
193
+ margin-left: 5px;
194
+ line-height: 1;
195
+ color: inherit;
196
+ opacity: 0.72;
197
+ transform: translateY(0);
198
+
199
+ svg {
200
+ display: block;
201
+ width: 10px;
202
+ height: 10px;
203
+ }
204
+ }
205
+
144
206
  > .right-arrow,
145
207
  > .left-arrow {
146
208
  position: absolute;
147
209
  top: 50%;
148
- height: 40px;
149
- width: 30px;
210
+ z-index: 3;
211
+ height: var(--sqb-action-height);
212
+ width: var(--sqb-action-zone);
150
213
  display: flex;
151
214
  align-items: center;
152
215
  justify-content: center;
153
- opacity: 0.4;
216
+ border: 0;
217
+ background: transparent;
218
+ opacity: 0;
154
219
  cursor: pointer;
155
- transform: translateY(-50%) scale(0);
156
- transition: all 0.3s;
220
+ pointer-events: none;
221
+ transform: translateY(-50%) scale(0.86);
222
+ transition:
223
+ opacity 160ms ease,
224
+ border-color 160ms ease,
225
+ background-color 160ms ease,
226
+ transform 160ms ease;
227
+
228
+ &::before {
229
+ content: none;
230
+ position: absolute;
231
+ top: 50%;
232
+ width: var(--sqb-action-size);
233
+ height: var(--sqb-action-height);
234
+ border: 0;
235
+ border-radius: var(--sqb-action-radius);
236
+ background: transparent;
237
+ box-shadow: none;
238
+ transform: translateY(-50%);
239
+ transition:
240
+ border-color 160ms ease,
241
+ background-color 160ms ease;
242
+ }
157
243
 
158
244
  img {
159
- transform: scale(0.8);
245
+ position: absolute;
246
+ top: 50%;
247
+ left: 50%;
248
+ z-index: 1;
249
+ width: 16px;
250
+ height: 12px;
251
+ pointer-events: none;
252
+ }
253
+
254
+ &:hover::before {
255
+ border-color: rgba(80, 158, 227, 0.36);
256
+ background: #fff;
160
257
  }
161
258
 
162
259
  &:hover {
@@ -166,12 +263,59 @@
166
263
 
167
264
  > .left-arrow {
168
265
  left: var(--sqb-arrow-offset-left);
169
- transform: translateY(-50%) rotate(180deg) scale(0);
170
- transform-origin: 50% 50%;
266
+
267
+ &::before {
268
+ left: 0;
269
+ }
270
+
271
+ img {
272
+ transform: translate(-50%, -50%) rotate(180deg);
273
+ }
171
274
  }
172
275
 
173
276
  > .right-arrow {
174
277
  right: var(--sqb-arrow-offset-right);
278
+
279
+ &::before {
280
+ right: 0;
281
+ }
282
+
283
+ img {
284
+ transform: translate(-50%, -50%);
285
+ }
286
+ }
287
+
288
+ &.has-left-arrow::before,
289
+ &.has-right-arrow::after {
290
+ content: '';
291
+ position: absolute;
292
+ top: 0;
293
+ bottom: 0;
294
+ z-index: 2;
295
+ width: var(--sqb-action-bridge);
296
+ pointer-events: none;
297
+ }
298
+
299
+ &.has-left-arrow::before {
300
+ left: var(--sqb-arrow-offset-left);
301
+ }
302
+
303
+ &.has-right-arrow::after {
304
+ right: var(--sqb-arrow-offset-right);
305
+ }
306
+
307
+ &:not(.item-fixed).hover {
308
+ > .left-arrow {
309
+ opacity: 0.82;
310
+ pointer-events: auto;
311
+ transform: translateY(-50%) scale(1);
312
+ }
313
+
314
+ > .right-arrow {
315
+ opacity: 0.82;
316
+ pointer-events: auto;
317
+ transform: translateY(-50%) scale(1);
318
+ }
175
319
  }
176
320
 
177
321
  .Sqb-TableName.flow-operator {
@@ -240,7 +384,7 @@
240
384
  }
241
385
 
242
386
  .Sqb-TableName.operator-trigger {
243
- padding: 8px;
387
+ padding: 4px 7px;
244
388
  }
245
389
 
246
390
  .Sqb-TableName.operator-trigger > * {
@@ -263,11 +407,33 @@
263
407
  .Sqb-TokenContent .item-del {
264
408
  display: inline-flex;
265
409
  align-items: center;
266
- margin-left: 8px;
410
+ justify-content: center;
411
+ width: 14px;
412
+ height: 14px;
413
+ margin-left: 5px;
414
+ line-height: 1;
415
+
416
+ svg {
417
+ display: block;
418
+ width: 10px;
419
+ height: 10px;
420
+ }
267
421
  }
268
422
  }
269
423
  .Sqb-NotebookCell {
424
+ --sqb-item-gap-y: 6px;
270
425
  position: relative;
426
+ column-gap: 0;
427
+ row-gap: var(--sqb-item-gap-y);
428
+ align-items: flex-start;
429
+
430
+ > .Sqb-Filter-item {
431
+ align-self: center;
432
+ }
433
+
434
+ > .Sqb-Filter-item.item-composite {
435
+ align-self: flex-start;
436
+ }
271
437
 
272
438
  &.Sqb-NotebookCell--embedded {
273
439
  padding: 0;
@@ -283,44 +449,87 @@
283
449
  }
284
450
 
285
451
  &.Sqb-NotebookCell--embedded > .Sqb-TableName {
286
- margin-right: var(--sqb-item-gap-x, 8px);
287
- margin-bottom: var(--sqb-item-gap-y, 8px);
452
+ margin: 0;
288
453
  }
289
454
 
290
455
  &.Sqb-NotebookCell--embedded > .Sqb-Filter-item {
291
- --sqb-item-shell-margin-x: 10px;
456
+ --sqb-item-shell-margin-x: 14px;
292
457
  --sqb-item-gap-x: 8px;
293
- --sqb-item-gap-y: 8px;
294
- --sqb-arrow-offset-left: -22px;
295
- --sqb-arrow-offset-right: -22px;
296
- margin-bottom: 0;
458
+ --sqb-item-gap-y: 6px;
459
+ --sqb-action-bridge: 18px;
460
+ --sqb-action-offset: -16px;
461
+ --sqb-arrow-offset-left: var(--sqb-action-offset);
462
+ --sqb-arrow-offset-right: var(--sqb-action-offset);
297
463
  margin-left: var(--sqb-item-shell-margin-x);
298
464
  margin-right: var(--sqb-item-shell-margin-x);
299
465
  }
300
466
 
301
467
  .case-group-shell {
468
+ --sqb-action-offset: -16px;
469
+ --sqb-arrow-offset-left: var(--sqb-action-offset);
470
+ --sqb-arrow-offset-right: var(--sqb-action-offset);
302
471
  position: relative;
303
472
  display: flex;
304
473
  flex: 0 0 100%;
305
474
  width: calc(100% - 20px);
306
475
  margin: 0 10px;
307
476
 
477
+ &.hover,
478
+ &:hover {
479
+ z-index: 5;
480
+ }
481
+
308
482
  > .right-arrow,
309
483
  > .left-arrow {
310
484
  position: absolute;
311
485
  top: 50%;
312
- height: 40px;
313
- width: 30px;
486
+ z-index: 3;
487
+ height: var(--sqb-action-height, 18px);
488
+ width: var(--sqb-action-zone, 14px);
314
489
  display: flex;
315
490
  align-items: center;
316
491
  justify-content: center;
317
- opacity: 0.4;
492
+ border: 0;
493
+ background: transparent;
494
+ opacity: 0;
318
495
  cursor: pointer;
319
- transform: translateY(-50%) scale(0);
320
- transition: all 0.3s;
496
+ pointer-events: none;
497
+ transform: translateY(-50%) scale(0.86);
498
+ transition:
499
+ opacity 160ms ease,
500
+ border-color 160ms ease,
501
+ background-color 160ms ease,
502
+ transform 160ms ease;
503
+
504
+ &::before {
505
+ content: none;
506
+ position: absolute;
507
+ top: 50%;
508
+ width: var(--sqb-action-size, 12px);
509
+ height: var(--sqb-action-height, 18px);
510
+ border: 0;
511
+ border-radius: var(--sqb-action-radius, 6px);
512
+ background: transparent;
513
+ box-shadow: none;
514
+ transform: translateY(-50%);
515
+ transition:
516
+ border-color 160ms ease,
517
+ background-color 160ms ease;
518
+ }
321
519
 
322
520
  img {
323
- transform: scale(0.8);
521
+ position: absolute;
522
+ top: 50%;
523
+ left: 50%;
524
+ z-index: 1;
525
+ width: 16px;
526
+ height: 12px;
527
+ pointer-events: none;
528
+ }
529
+
530
+ &:hover::before {
531
+ border-color: rgba(80, 158, 227, 0.36);
532
+ background: #fff;
324
533
  }
325
534
 
326
535
  &:hover {
@@ -329,21 +538,39 @@
329
538
  }
330
539
 
331
540
  > .left-arrow {
332
- left: -30px;
333
- transform: translateY(-50%) rotate(180deg) scale(0);
334
- transform-origin: 50% 50%;
541
+ left: var(--sqb-arrow-offset-left, -16px);
542
+
543
+ &::before {
544
+ left: 0;
545
+ }
546
+
547
+ img {
548
+ transform: translate(-50%, -50%) rotate(180deg);
549
+ }
335
550
  }
336
551
 
337
552
  > .right-arrow {
338
- right: -20px;
553
+ right: var(--sqb-arrow-offset-right, -16px);
554
+
555
+ &::before {
556
+ right: 0;
557
+ }
558
+
559
+ img {
560
+ transform: translate(-50%, -50%);
561
+ }
339
562
  }
340
563
 
341
564
  &.hover {
342
565
  > .left-arrow {
343
- transform: translateY(-50%) rotate(180deg) scale(1);
566
+ opacity: 0.82;
567
+ pointer-events: auto;
568
+ transform: translateY(-50%) scale(1);
344
569
  }
345
570
 
346
571
  > .right-arrow {
572
+ opacity: 0.82;
573
+ pointer-events: auto;
347
574
  transform: translateY(-50%) scale(1);
348
575
  }
349
576
  }
@@ -351,7 +578,7 @@
351
578
 
352
579
  .Sqb-FormulaGroup {
353
580
  display: inline-flex;
354
- margin-bottom: 8px;
581
+ // margin-bottom: 8px;
355
582
  border-radius: 16px;
356
583
  }
357
584
 
@@ -399,6 +626,69 @@
399
626
  border: 1px solid rgba(80, 158, 227, 0.16);
400
627
  }
401
628
 
629
+ .Sqb-FormulaGroup.Sqb-CaseWhenGroup {
630
+ --sqb-case-index-column: 24px;
631
+ --sqb-case-action-column: 46px;
632
+ --sqb-case-inner-gap: 8px;
633
+ gap: 6px;
634
+ padding: 9px 10px 8px;
635
+ border-radius: 10px;
636
+ background: #f9fbff;
637
+ border-color: rgba(80, 158, 227, 0.2);
638
+ box-shadow:
639
+ inset 3px 0 0 rgba(80, 158, 227, 0.34),
640
+ 0 1px 2px rgba(80, 158, 227, 0.06);
641
+ }
642
+
643
+ .Sqb-CaseWhenTools {
644
+ position: absolute;
645
+ top: 6px;
646
+ right: 6px;
647
+ z-index: 3;
648
+ display: inline-flex;
649
+ align-items: center;
650
+ gap: 4px;
651
+ }
652
+
653
+ .Sqb-CaseWhenTools > .formula-node-remove,
654
+ .Sqb-CaseWhenTools > .formula-node-tool {
655
+ position: static;
656
+ top: 6px;
657
+ right: 6px;
658
+ }
659
+
660
+ .formula-node-tool {
661
+ width: 20px;
662
+ height: 20px;
663
+ min-width: 20px;
664
+ margin-left: 0;
665
+ padding: 0;
666
+ border: none;
667
+ border-radius: 999px;
668
+ background: transparent;
669
+ color: rgba(83, 92, 112, 0.58);
670
+ opacity: 0.76;
671
+ cursor: pointer;
672
+ transition:
673
+ color 160ms ease,
674
+ background-color 160ms ease,
675
+ opacity 160ms ease;
676
+
677
+ &:hover {
678
+ background: rgba(80, 158, 227, 0.1);
679
+ color: rgb(80, 158, 227);
680
+ opacity: 1;
681
+ }
682
+
683
+ .pd-Icon,
684
+ svg {
685
+ display: block;
686
+ width: 13px;
687
+ height: 13px;
688
+ margin: auto;
689
+ }
690
+ }
691
+
402
692
  .Sqb-FormulaGroup.group-selected {
403
693
  box-shadow: inset 0 0 0 1px rgba(80, 158, 227, 0.3);
404
694
  }
@@ -419,7 +709,7 @@
419
709
  border: 1px solid rgba(72, 125, 227, 0.12);
420
710
  }
421
711
 
422
- .Sqb-FormulaGroup.logic-group .formula-node-remove {
712
+ .Sqb-FormulaGroup.logic-group > .formula-node-remove {
423
713
  position: static;
424
714
  top: auto;
425
715
  right: auto;
@@ -450,25 +740,25 @@
450
740
  display: inline-flex;
451
741
  flex-wrap: wrap;
452
742
  align-items: center;
453
- gap: 0;
743
+ gap: 8px 14px;
454
744
  width: auto;
455
745
  max-width: 100%;
456
746
  }
457
747
 
458
748
  .Sqb-NestedFormulaList .Sqb-NotebookCell.Sqb-NotebookCell--embedded .Sqb-TableName {
459
- margin-right: var(--sqb-item-gap-x, 8px);
460
- margin-bottom: var(--sqb-item-gap-y, 8px);
749
+ margin: 0;
461
750
  }
462
751
 
463
752
  .Sqb-NestedFormulaList .Sqb-NotebookCell.Sqb-NotebookCell--embedded .Sqb-Filter-item {
464
- --sqb-item-shell-margin-x: 10px;
753
+ --sqb-item-shell-margin-x: 14px;
465
754
  --sqb-item-gap-x: 8px;
466
- --sqb-item-gap-y: 8px;
467
- --sqb-arrow-offset-left: -22px;
468
- --sqb-arrow-offset-right: -22px;
469
- margin-bottom: 0;
470
- margin-left: var(--sqb-item-shell-margin-x);
471
- margin-right: var(--sqb-item-shell-margin-x);
755
+ --sqb-item-gap-y: 6px;
756
+ --sqb-action-bridge: 18px;
757
+ --sqb-action-offset: -16px;
758
+ --sqb-arrow-offset-left: var(--sqb-action-offset);
759
+ --sqb-arrow-offset-right: var(--sqb-action-offset);
760
+ margin-left: 0;
761
+ margin-right: 0;
472
762
  }
473
763
 
474
764
  .Sqb-NestedFormulaList
@@ -479,7 +769,7 @@
479
769
  .Sqb-NotebookCell.Sqb-NotebookCell--embedded
480
770
  .Sqb-Filter-item
481
771
  > .right-arrow {
482
- transform: translateY(-50%) scale(0);
772
+ transform: translateY(-50%) scale(0.86);
483
773
  opacity: 0;
484
774
  pointer-events: none;
485
775
  }
@@ -492,8 +782,8 @@
492
782
  .Sqb-NotebookCell.Sqb-NotebookCell--embedded
493
783
  .Sqb-Filter-item.hover
494
784
  > .left-arrow {
495
- transform: translateY(-50%) rotate(180deg) scale(1);
496
- opacity: 0.4;
785
+ transform: translateY(-50%) scale(1);
786
+ opacity: 0.82;
497
787
  pointer-events: auto;
498
788
  }
499
789
 
@@ -506,7 +796,7 @@
506
796
  .Sqb-Filter-item.hover
507
797
  > .right-arrow {
508
798
  transform: translateY(-50%) scale(1);
509
- opacity: 0.4;
799
+ opacity: 0.82;
510
800
  pointer-events: auto;
511
801
  }
512
802
 
@@ -515,10 +805,14 @@
515
805
  display: inline-flex;
516
806
  flex-wrap: wrap;
517
807
  align-items: center;
518
- gap: 0;
808
+ gap: 8px 14px;
519
809
  width: auto;
520
810
  }
521
811
 
812
+ .Sqb-LogicGroup-content .Sqb-NestedFormulaList {
813
+ padding-right: 0;
814
+ }
815
+
522
816
  .Sqb-LogicGroup-content .Sqb-Filter-item {
523
817
  margin-bottom: 0;
524
818
  }
@@ -527,14 +821,14 @@
527
821
  display: flex;
528
822
  flex-wrap: wrap;
529
823
  align-items: center;
530
- gap: 0;
824
+ gap: 8px 14px;
531
825
  }
532
826
 
533
827
  .case-section {
534
828
  display: flex;
535
829
  flex-wrap: wrap;
536
830
  align-items: center;
537
- gap: 0;
831
+ gap: 8px 14px;
538
832
  }
539
833
 
540
834
  .case-section-condition,
@@ -570,35 +864,196 @@
570
864
  }
571
865
 
572
866
  .Sqb-FormulaGroup-row.row-case {
573
- margin-bottom: 4px;
867
+ display: grid;
868
+ grid-template-columns: auto minmax(0, 1fr) var(--sqb-case-action-column);
869
+ column-gap: var(--sqb-case-inner-gap);
870
+ min-height: 28px;
871
+ box-sizing: border-box;
872
+ margin: 0;
873
+ padding: 0 24px 3px 0;
874
+ border-bottom: 1px solid rgba(80, 158, 227, 0.1);
574
875
  align-items: center;
575
- gap: 6px;
876
+ gap: 8px 10px;
576
877
  }
577
878
 
578
879
  .Sqb-FormulaGroup-row.row-when,
579
880
  .Sqb-FormulaGroup-row.row-else {
881
+ display: grid;
882
+ grid-template-columns: var(--sqb-case-index-column) minmax(0, 1fr) var(--sqb-case-action-column);
883
+ column-gap: var(--sqb-case-inner-gap);
884
+ row-gap: 8px;
580
885
  width: 100%;
581
- margin-left: 12px;
582
- padding-left: 10px;
583
- border-left: 2px solid rgba(80, 158, 227, 0.22);
886
+ margin-left: 0;
887
+ box-sizing: border-box;
888
+ padding: 6px;
889
+ border: 1px solid rgba(80, 158, 227, 0.14);
890
+ border-radius: 8px;
891
+ background: rgba(255, 255, 255, 0.82);
584
892
  align-items: center;
585
- gap: 6px;
893
+ gap: 8px var(--sqb-case-inner-gap);
586
894
  }
587
895
 
588
896
  .Sqb-FormulaGroup-row.row-when {
589
- display: flex;
590
- flex-wrap: wrap;
591
897
  align-items: center;
592
898
  }
593
899
 
900
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row.row-when:hover,
901
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row.row-else:hover {
902
+ border-color: rgba(80, 158, 227, 0.28);
903
+ background: #fff;
904
+ }
905
+
906
+ .Sqb-CaseWhenGroup
907
+ .Sqb-FormulaGroup-row.Sqb-CaseRegion--active:not(:has(.Sqb-CaseRegion--active)),
908
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row.row-case:hover:not(:has(.Sqb-CaseWhenGroup:hover)),
909
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row.row-when:hover:not(:has(.Sqb-CaseWhenGroup:hover)),
910
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row.row-else:hover:not(:has(.Sqb-CaseWhenGroup:hover)) {
911
+ border-color: rgba(80, 158, 227, 0.64);
912
+ background: rgba(80, 158, 227, 0.07);
913
+ box-shadow:
914
+ 0 0 0 2px rgba(80, 158, 227, 0.18),
915
+ 0 2px 8px rgba(80, 158, 227, 0.1);
916
+ }
917
+
918
+ .Sqb-CaseWhenGroup
919
+ .Sqb-FormulaGroup-row.Sqb-CaseRegion--active:not(:has(.Sqb-CaseRegion--active))
920
+ .Sqb-CaseSection-condition,
921
+ .Sqb-CaseWhenGroup
922
+ .Sqb-FormulaGroup-row.Sqb-CaseRegion--active:not(:has(.Sqb-CaseRegion--active))
923
+ .Sqb-CaseSection-result,
924
+ .Sqb-CaseWhenGroup
925
+ .Sqb-FormulaGroup-row.row-when:hover:not(:has(.Sqb-CaseWhenGroup:hover))
926
+ .Sqb-CaseSection-condition,
927
+ .Sqb-CaseWhenGroup
928
+ .Sqb-FormulaGroup-row.row-when:hover:not(:has(.Sqb-CaseWhenGroup:hover))
929
+ .Sqb-CaseSection-result,
930
+ .Sqb-CaseWhenGroup
931
+ .Sqb-FormulaGroup-row.row-else:hover:not(:has(.Sqb-CaseWhenGroup:hover))
932
+ .Sqb-CaseSection-result {
933
+ border-color: rgba(80, 158, 227, 0.2);
934
+ background-color: rgba(255, 255, 255, 0.86);
935
+ }
936
+
937
+ .Sqb-CaseBranchIndex {
938
+ display: inline-flex;
939
+ align-items: center;
940
+ justify-content: center;
941
+ flex: 0 0 auto;
942
+ width: 18px;
943
+ height: 18px;
944
+ margin-top: 0;
945
+ justify-self: center;
946
+ align-self: center;
947
+ border-radius: 999px;
948
+ background: rgba(80, 158, 227, 0.12);
949
+ color: rgb(61, 126, 189);
950
+ font-size: 10px;
951
+ font-weight: 600;
952
+ }
953
+
954
+ .Sqb-CaseBranchIndex--else {
955
+ background: rgba(242, 169, 59, 0.16);
956
+
957
+ &::before {
958
+ content: '';
959
+ width: 7px;
960
+ height: 7px;
961
+ border-radius: 999px;
962
+ background: rgb(214, 137, 31);
963
+ }
964
+ }
965
+
966
+ .Sqb-CaseBranch-body {
967
+ display: grid;
968
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
969
+ align-items: center;
970
+ align-self: stretch;
971
+ min-width: 0;
972
+ width: 100%;
973
+ gap: 8px var(--sqb-case-inner-gap);
974
+ }
975
+
976
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
977
+ > .Sqb-FormulaGroup-row.row-when
978
+ > .Sqb-CaseBranch-body,
979
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
980
+ > .Sqb-FormulaGroup-row.row-else
981
+ > .Sqb-CaseBranch-body {
982
+ display: block;
983
+ width: 100%;
984
+ min-width: 0;
985
+ overflow-x: auto;
986
+ overflow-y: hidden;
987
+ padding-bottom: 4px;
988
+ }
989
+
990
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
991
+ > .Sqb-FormulaGroup-row.row-when
992
+ > .Sqb-CaseBranch-body
993
+ > .Sqb-CaseBranch-scrollInner {
994
+ display: grid;
995
+ grid-template-columns: max-content max-content;
996
+ column-gap: var(--sqb-case-inner-gap);
997
+ row-gap: 8px;
998
+ width: max-content;
999
+ min-width: 100%;
1000
+ }
1001
+
1002
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1003
+ > .Sqb-FormulaGroup-row.row-else
1004
+ > .Sqb-CaseBranch-body
1005
+ > .Sqb-CaseBranch-scrollInner {
1006
+ display: grid;
1007
+ grid-template-columns: max-content;
1008
+ row-gap: 8px;
1009
+ width: max-content;
1010
+ min-width: 100%;
1011
+ }
1012
+
1013
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1014
+ > .Sqb-FormulaGroup-row
1015
+ > .Sqb-CaseBranch-body
1016
+ > .Sqb-CaseBranch-scrollInner
1017
+ > .Sqb-CaseSection {
1018
+ width: max-content;
1019
+ min-width: 240px;
1020
+ max-width: none;
1021
+ grid-template-columns: 38px max-content;
1022
+ }
1023
+
1024
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1025
+ > .Sqb-FormulaGroup-row.row-else
1026
+ > .Sqb-CaseBranch-body
1027
+ > .Sqb-CaseBranch-scrollInner
1028
+ > .Sqb-CaseSection {
1029
+ min-width: 100%;
1030
+ }
1031
+
1032
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1033
+ > .Sqb-FormulaGroup-row
1034
+ > .Sqb-CaseBranch-body
1035
+ > .Sqb-CaseBranch-scrollInner
1036
+ > .Sqb-CaseSection
1037
+ > .Sqb-CaseSection-content {
1038
+ width: max-content;
1039
+ min-width: 0;
1040
+ max-width: none;
1041
+ }
1042
+
1043
+ .Sqb-FormulaGroup-row.row-else .Sqb-CaseBranch-body {
1044
+ grid-template-columns: minmax(0, 1fr);
1045
+ }
1046
+
594
1047
  .Sqb-CaseRow-actions {
595
1048
  display: flex;
596
1049
  align-items: center;
597
- gap: 8px;
598
- margin-top: 2px;
1050
+ gap: 6px;
1051
+ min-height: 28px;
1052
+ margin-top: 0;
599
1053
  }
600
1054
 
601
1055
  .Sqb-CaseRow-actions.when-row-actions {
1056
+ justify-self: end;
602
1057
  margin: 0;
603
1058
  padding-top: 0;
604
1059
  align-self: center;
@@ -610,12 +1065,16 @@
610
1065
  }
611
1066
 
612
1067
  .Sqb-FormulaGroup-row.row-end {
613
- margin-left: 12px;
614
- padding-left: 10px;
1068
+ display: grid;
1069
+ grid-template-columns: auto minmax(0, 1fr) var(--sqb-case-action-column);
1070
+ column-gap: var(--sqb-case-inner-gap);
1071
+ align-items: center;
1072
+ margin: 0;
1073
+ padding: 0;
615
1074
  }
616
1075
 
617
1076
  .Sqb-Filter-item.group-child {
618
- margin-right: 0;
1077
+ margin-right: var(--sqb-item-shell-margin-x);
619
1078
  }
620
1079
 
621
1080
  .Sqb-Filter-item.group-flow-child {
@@ -627,7 +1086,8 @@
627
1086
  }
628
1087
 
629
1088
  .Sqb-Filter-item.case-row-item {
630
- margin-bottom: 6px;
1089
+ margin-top: 0;
1090
+ margin-bottom: 0;
631
1091
  }
632
1092
 
633
1093
  .Sqb-Filter-item.case-row-item-end {
@@ -635,16 +1095,16 @@
635
1095
  }
636
1096
 
637
1097
  .Sqb-CaseSection {
638
- display: flex;
639
- flex-wrap: wrap;
1098
+ display: grid;
1099
+ grid-template-columns: minmax(0, 1fr);
640
1100
  align-items: center;
641
1101
  min-height: auto;
642
1102
  min-width: 0;
643
- gap: 6px;
1103
+ gap: 8px 14px;
644
1104
  }
645
1105
 
646
1106
  .Sqb-CaseSection-condition {
647
- flex: 0 1 auto;
1107
+ flex: 1 1 280px;
648
1108
  min-height: auto;
649
1109
  margin-right: 0;
650
1110
  max-width: 100%;
@@ -657,7 +1117,7 @@
657
1117
  }
658
1118
 
659
1119
  .Sqb-CaseSection-result {
660
- flex: 0 1 auto;
1120
+ flex: 1 1 240px;
661
1121
  min-height: auto;
662
1122
  max-width: 100%;
663
1123
  }
@@ -666,22 +1126,43 @@
666
1126
  flex: 0 0 auto;
667
1127
  display: inline-flex;
668
1128
  align-items: center;
669
- min-height: 28px;
1129
+ justify-content: center;
1130
+ min-width: 34px;
1131
+ min-height: 20px;
670
1132
  line-height: 1;
671
- padding: 0;
672
- font-size: 11px;
673
- font-weight: 500;
674
- letter-spacing: 0.06em;
675
- color: rgba(83, 92, 112, 0.86);
1133
+ padding: 0 6px;
1134
+ border-radius: 999px;
1135
+ font-size: 10px;
1136
+ font-weight: 700;
1137
+ letter-spacing: 0;
1138
+ color: rgba(83, 92, 112, 0.76);
1139
+ background: rgba(83, 92, 112, 0.07);
676
1140
  }
677
1141
 
678
1142
  .Sqb-FormulaGroup.flow-group .Sqb-CaseKeyword.keyword-case,
679
1143
  .Sqb-FormulaGroup.flow-group .Sqb-CaseKeyword.keyword-end {
680
- color: rgba(83, 92, 112, 0.68);
1144
+ color: rgb(61, 126, 189);
1145
+ background: rgba(80, 158, 227, 0.12);
681
1146
  }
682
1147
 
683
1148
  .Sqb-FormulaGroup.flow-group .Sqb-CaseKeyword.keyword-branch {
684
1149
  color: rgba(83, 92, 112, 0.84);
1150
+ align-self: center;
1151
+ }
1152
+
1153
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseKeyword.keyword-when {
1154
+ color: rgb(61, 126, 189);
1155
+ background: rgba(80, 158, 227, 0.12);
1156
+ }
1157
+
1158
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseKeyword.keyword-then {
1159
+ color: rgb(32, 137, 112);
1160
+ background: rgba(46, 167, 138, 0.12);
1161
+ }
1162
+
1163
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseKeyword.keyword-else {
1164
+ color: rgb(190, 121, 24);
1165
+ background: rgba(242, 169, 59, 0.16);
685
1166
  }
686
1167
 
687
1168
  .Sqb-FormulaGroup.flow-group .Sqb-NestedFormulaList,
@@ -689,33 +1170,55 @@
689
1170
  display: inline-flex;
690
1171
  flex-wrap: wrap;
691
1172
  align-items: center;
692
- gap: 0;
1173
+ gap: 8px 14px;
693
1174
  width: auto;
694
1175
  min-width: 0;
695
1176
  }
696
1177
 
697
1178
  .Sqb-FormulaGroup.flow-group .Sqb-NestedFormulaList .Sqb-Filter-item {
1179
+ margin-top: 0;
698
1180
  margin-bottom: 0;
699
- margin-right: 0;
700
1181
  }
701
1182
 
702
1183
  .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-case,
703
1184
  .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-condition,
704
1185
  .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-result {
705
- padding: 0;
706
- border: 0;
707
- border-radius: 0;
708
- background: transparent;
1186
+ min-width: 0;
1187
+ box-sizing: border-box;
1188
+ min-height: 34px;
1189
+ padding: 3px 6px;
1190
+ border: 1px solid transparent;
1191
+ border-radius: 7px;
709
1192
  }
710
1193
 
711
1194
  .Sqb-FormulaGroup.flow-group .Sqb-FormulaGroup-row.row-when .Sqb-CaseSection-condition,
712
1195
  .Sqb-FormulaGroup.flow-group .Sqb-FormulaGroup-row.row-when .Sqb-CaseSection-result,
713
1196
  .Sqb-FormulaGroup.flow-group .Sqb-FormulaGroup-row.row-else .Sqb-CaseSection-result {
714
- display: inline-flex;
715
- flex-wrap: wrap;
1197
+ display: grid;
1198
+ grid-template-columns: 38px minmax(0, 1fr);
716
1199
  align-items: center;
717
- column-gap: 6px;
718
- row-gap: 2px;
1200
+ column-gap: 8px;
1201
+ row-gap: 6px;
1202
+ }
1203
+
1204
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-case {
1205
+ padding: 0;
1206
+ background: transparent;
1207
+ }
1208
+
1209
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-condition {
1210
+ background: rgba(80, 158, 227, 0.06);
1211
+ border-color: rgba(80, 158, 227, 0.12);
1212
+ }
1213
+
1214
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-result {
1215
+ background: rgba(46, 167, 138, 0.06);
1216
+ border-color: rgba(46, 167, 138, 0.12);
1217
+ }
1218
+
1219
+ .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-else {
1220
+ background: rgba(242, 169, 59, 0.07);
1221
+ border-color: rgba(242, 169, 59, 0.14);
719
1222
  }
720
1223
 
721
1224
  .Sqb-FormulaGroup.flow-group .Sqb-FormulaGroup-row.row-when .Sqb-NestedFormulaList,
@@ -734,11 +1237,196 @@
734
1237
  width: auto;
735
1238
  }
736
1239
 
1240
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row:is(.row-when, .row-else) .Sqb-CaseSection-content--wrap {
1241
+ width: max-content;
1242
+ min-width: 0;
1243
+ max-width: none;
1244
+ }
1245
+
1246
+ .Sqb-CaseWhenGroup
1247
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1248
+ .Sqb-CaseSection-content--wrap
1249
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen),
1250
+ .Sqb-CaseWhenGroup
1251
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1252
+ .Sqb-CaseSection-content--wrap
1253
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1254
+ > .Sqb-NotebookCell,
1255
+ .Sqb-CaseWhenGroup
1256
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1257
+ .Sqb-CaseSection-content--wrap
1258
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1259
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded {
1260
+ display: inline-flex;
1261
+ flex-wrap: wrap;
1262
+ align-items: center;
1263
+ gap: 8px 14px;
1264
+ width: max-content;
1265
+ min-width: 0;
1266
+ max-width: 520px;
1267
+ box-sizing: border-box;
1268
+ }
1269
+
1270
+ .Sqb-CaseWhenGroup
1271
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1272
+ .Sqb-CaseSection-content--wrap
1273
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1274
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1275
+ > .Sqb-Filter-item:not(.item-composite) {
1276
+ flex: 0 1 auto;
1277
+ min-width: 0;
1278
+ max-width: 100%;
1279
+ }
1280
+
1281
+ .Sqb-CaseWhenGroup
1282
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1283
+ .Sqb-CaseSection-content--wrap
1284
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1285
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1286
+ > .Sqb-Filter-item:not(.item-composite)
1287
+ > .Sqb-Filter-item-node,
1288
+ .Sqb-CaseWhenGroup
1289
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1290
+ .Sqb-CaseSection-content--wrap
1291
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1292
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1293
+ > .Sqb-Filter-item:not(.item-composite)
1294
+ .Sqb-TableName {
1295
+ min-width: 0;
1296
+ max-width: 100%;
1297
+ }
1298
+
1299
+ .Sqb-CaseWhenGroup
1300
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1301
+ .Sqb-CaseSection-content--wrap
1302
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1303
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1304
+ > .Sqb-Filter-item:not(.item-composite)
1305
+ .Sqb-TableName {
1306
+ white-space: normal;
1307
+ overflow-wrap: anywhere;
1308
+ }
1309
+
1310
+ .Sqb-FormulaGroup.flow-group .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen,
1311
+ .Sqb-FormulaGroup.flow-group
1312
+ .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen
1313
+ > .Sqb-NotebookCell {
1314
+ width: max-content;
1315
+ min-width: 100%;
1316
+ max-width: none;
1317
+ }
1318
+
1319
+ .Sqb-FormulaGroup.flow-group
1320
+ .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen
1321
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1322
+ > .Sqb-Filter-item.item-composite,
1323
+ .Sqb-FormulaGroup.flow-group
1324
+ .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen
1325
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1326
+ > .Sqb-Filter-item.item-composite
1327
+ > .Sqb-Filter-item-node {
1328
+ flex: 0 0 auto;
1329
+ width: max-content;
1330
+ min-width: 100%;
1331
+ max-width: none;
1332
+ }
1333
+
1334
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested {
1335
+ flex: 0 0 auto;
1336
+ width: max-content;
1337
+ min-width: 100%;
1338
+ max-width: none;
1339
+ }
1340
+
1341
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested > .Sqb-FormulaGroup-row.row-when,
1342
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested > .Sqb-FormulaGroup-row.row-else {
1343
+ grid-template-columns: var(--sqb-case-index-column) max-content var(--sqb-case-action-column);
1344
+ width: max-content;
1345
+ min-width: 100%;
1346
+ }
1347
+
1348
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1349
+ > .Sqb-FormulaGroup-row.row-when
1350
+ > .Sqb-CaseBranch-body {
1351
+ grid-template-columns: max-content max-content;
1352
+ width: max-content;
1353
+ min-width: 100%;
1354
+ max-width: none;
1355
+ }
1356
+
1357
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1358
+ > .Sqb-FormulaGroup-row.row-else
1359
+ > .Sqb-CaseBranch-body {
1360
+ grid-template-columns: max-content;
1361
+ width: max-content;
1362
+ min-width: 100%;
1363
+ max-width: none;
1364
+ }
1365
+
1366
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1367
+ > .Sqb-FormulaGroup-row
1368
+ > .Sqb-CaseBranch-body
1369
+ > .Sqb-CaseSection {
1370
+ width: max-content;
1371
+ min-width: 240px;
1372
+ max-width: none;
1373
+ grid-template-columns: 38px max-content;
1374
+ }
1375
+
1376
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1377
+ > .Sqb-FormulaGroup-row
1378
+ > .Sqb-CaseBranch-body
1379
+ > .Sqb-CaseSection
1380
+ > .Sqb-CaseSection-content {
1381
+ width: max-content;
1382
+ min-width: 0;
1383
+ max-width: none;
1384
+ }
1385
+
737
1386
  .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-case {
738
1387
  flex: 1 1 auto;
739
1388
  }
740
1389
 
741
- .Sqb-FormulaGroup.logic-group .Sqb-CaseKeyword {
1390
+ .Sqb-CaseSection-content {
1391
+ display: block;
1392
+ width: 100%;
1393
+ min-width: 0;
1394
+ max-width: 100%;
1395
+ }
1396
+
1397
+ .Sqb-CaseWhenGroup
1398
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1399
+ .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap {
1400
+ width: max-content;
1401
+ min-width: 0;
1402
+ max-width: none;
1403
+ }
1404
+
1405
+ .Sqb-CaseWhenGroup
1406
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1407
+ .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1408
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen),
1409
+ .Sqb-CaseWhenGroup
1410
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1411
+ .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1412
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1413
+ > .Sqb-NotebookCell,
1414
+ .Sqb-CaseWhenGroup
1415
+ .Sqb-FormulaGroup-row:is(.row-when, .row-else)
1416
+ .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1417
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1418
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded {
1419
+ display: inline-flex;
1420
+ flex-wrap: wrap;
1421
+ align-items: center;
1422
+ gap: 8px 14px;
1423
+ width: max-content;
1424
+ min-width: 0;
1425
+ max-width: 520px;
1426
+ box-sizing: border-box;
1427
+ }
1428
+
1429
+ .Sqb-FormulaGroup.logic-group > .Sqb-CaseKeyword {
742
1430
  display: inline-flex;
743
1431
  align-items: center;
744
1432
  min-height: 28px;
@@ -753,12 +1441,21 @@
753
1441
  vertical-align: middle;
754
1442
  }
755
1443
 
756
- .Sqb-FormulaGroup.logic-group .Sqb-TableName.logic-operator {
757
- min-height: 28px;
758
- padding: 0 10px;
759
- border-radius: 14px;
1444
+ .Sqb-FormulaGroup.logic-group > .Sqb-TableName.logic-operator {
1445
+ justify-content: center;
1446
+ flex: 0 0 32px;
1447
+ width: 32px;
1448
+ min-width: 32px;
1449
+ height: 20px;
1450
+ min-height: 20px;
1451
+ padding: 0 6px;
1452
+ border-radius: 10px;
760
1453
  margin-right: 0;
761
1454
  margin-bottom: 0;
1455
+ font-size: 10px;
1456
+ font-weight: 600;
1457
+ line-height: 1;
1458
+ white-space: nowrap;
762
1459
  }
763
1460
 
764
1461
  .Sqb-FormulaGroup-row.row-else .Sqb-CaseSection-result,
@@ -766,25 +1463,65 @@
766
1463
  width: 100%;
767
1464
  }
768
1465
 
1466
+ .Sqb-CaseWhenGroup .Sqb-FormulaGroup-row.row-else .Sqb-CaseSection-result {
1467
+ width: auto;
1468
+ }
1469
+
769
1470
  .Sqb-CaseRow-add,
770
1471
  .Sqb-CaseRow-remove {
1472
+ display: inline-flex;
1473
+ align-items: center;
1474
+ justify-content: center;
771
1475
  flex: 0 0 auto;
1476
+ width: 20px;
1477
+ height: 20px;
1478
+ margin: 0;
1479
+ padding: 0;
1480
+ border: 1px solid transparent;
1481
+ border-radius: 6px;
1482
+ cursor: pointer;
1483
+ line-height: 0;
1484
+ box-shadow: 0 1px 2px rgba(83, 92, 112, 0.08);
1485
+ transition:
1486
+ border-color 160ms ease,
1487
+ background-color 160ms ease,
1488
+ box-shadow 160ms ease,
1489
+ color 160ms ease;
1490
+
1491
+ svg {
1492
+ display: block;
1493
+ flex: 0 0 auto;
1494
+ width: 12px;
1495
+ height: 12px;
1496
+ }
772
1497
  }
773
1498
 
774
1499
  .Sqb-CaseRecover {
775
1500
  display: inline-flex;
776
1501
  align-items: center;
777
- gap: 6px;
778
- margin: 2px 0 8px;
779
- padding: 6px 10px;
1502
+ gap: 4px;
1503
+ margin: 0;
1504
+ min-height: 22px;
1505
+ padding: 0 7px;
780
1506
  border: 1px dashed rgba(80, 158, 227, 0.35);
781
- border-radius: 10px;
1507
+ border-radius: 7px;
782
1508
  background: rgba(80, 158, 227, 0.06);
783
1509
  color: rgb(80, 158, 227);
784
1510
  cursor: pointer;
785
- font-size: 12px;
1511
+ font-size: 11px;
1512
+ line-height: 1;
1513
+ transition:
1514
+ border-color 160ms ease,
1515
+ background-color 160ms ease,
1516
+ color 160ms ease;
1517
+
1518
+ svg {
1519
+ width: 10px;
1520
+ height: 10px;
1521
+ }
786
1522
 
787
1523
  &:hover {
1524
+ border-color: rgba(80, 158, 227, 0.48);
788
1525
  background: rgba(80, 158, 227, 0.12);
789
1526
  }
790
1527
  }
@@ -800,11 +1537,11 @@
800
1537
  .Sqb-CaseRecover.recover-row,
801
1538
  .Sqb-CaseRecover.recover-else-row {
802
1539
  align-self: flex-start;
803
- margin: 6px 0 10px 20px;
1540
+ margin: 0 0 0 26px;
804
1541
  }
805
1542
 
806
1543
  .Sqb-CaseRecover.inline-after-case {
807
- margin: 4px 0 8px 32px;
1544
+ margin: 0 0 0 26px;
808
1545
  }
809
1546
 
810
1547
  .Sqb-CaseSection-case .Sqb-CaseRecover.recover-case {
@@ -812,60 +1549,616 @@
812
1549
  }
813
1550
 
814
1551
  .Sqb-CaseRow-add {
815
- display: inline-flex;
816
- align-items: center;
817
- justify-content: center;
818
- margin: 2px 0 8px;
819
- border: none;
820
- border-radius: 999px;
821
- width: 28px;
822
- height: 28px;
1552
+ border: 1px solid rgba(80, 158, 227, 0.28);
823
1553
  background: rgba(80, 158, 227, 0.12);
824
1554
  color: rgb(80, 158, 227);
825
- cursor: pointer;
826
1555
 
827
1556
  &:hover {
1557
+ border-color: rgba(80, 158, 227, 0.42);
828
1558
  background: rgba(80, 158, 227, 0.18);
1559
+ box-shadow: 0 2px 5px rgba(80, 158, 227, 0.14);
829
1560
  }
830
1561
  }
831
1562
 
832
1563
  .Sqb-CaseRow-remove {
833
- display: inline-flex;
834
- align-items: center;
835
- justify-content: center;
836
- margin: 0;
837
- border: none;
838
- border-radius: 999px;
839
- width: 24px;
840
- height: 24px;
841
- background: transparent;
842
- color: rgba(83, 92, 112, 0.46);
843
- cursor: pointer;
844
- transition:
845
- color 160ms ease,
846
- background-color 160ms ease,
847
- transform 160ms ease;
1564
+ border-color: rgba(245, 63, 63, 0.2);
1565
+ background: rgba(245, 63, 63, 0.06);
1566
+ color: rgba(220, 38, 38, 0.72);
848
1567
 
849
- &:hover {
850
- background: rgba(245, 63, 63, 0.08);
1568
+ &:disabled,
1569
+ &.disabled {
1570
+ cursor: not-allowed;
1571
+ opacity: 0.4;
1572
+ box-shadow: none;
1573
+ }
1574
+
1575
+ &:not(:disabled):not(.disabled):hover {
1576
+ border-color: rgba(245, 63, 63, 0.34);
1577
+ background: rgba(245, 63, 63, 0.1);
851
1578
  color: rgba(220, 38, 38, 0.9);
852
- transform: translateY(-1px);
1579
+ box-shadow: 0 2px 5px rgba(245, 63, 63, 0.12);
853
1580
  }
854
1581
  }
855
1582
 
856
- &:hover {
857
- .item-isCheck {
858
- display: block;
859
- }
1583
+ .Sqb-FormulaListTopTools {
1584
+ display: flex;
1585
+ flex: 0 0 100%;
1586
+ width: 100%;
1587
+ align-items: center;
1588
+ justify-content: flex-end;
1589
+ gap: 8px;
1590
+ min-height: 24px;
1591
+ margin-bottom: 2px;
860
1592
  }
861
- .item-isCheck {
862
- &.isCheck {
863
- display: block;
864
- }
865
- display: none;
1593
+
1594
+ .Sqb-FormulaListTopTools > .formula-node-tool {
1595
+ position: static;
1596
+ flex: 0 0 auto;
1597
+ }
1598
+
1599
+ .Sqb-FormulaListFloatingTools {
866
1600
  position: absolute;
867
- right: 0;
868
- top: 0;
869
- // transform: translateX(100%);
1601
+ top: 6px;
1602
+ right: 8px;
1603
+ z-index: 4;
1604
+ display: inline-flex;
1605
+ align-items: center;
870
1606
  }
1607
+
1608
+ .Sqb-FormulaListFloatingTools > .formula-node-tool {
1609
+ position: static;
1610
+ }
1611
+
1612
+ .item-isCheck {
1613
+ display: inline-flex;
1614
+ align-items: center;
1615
+ flex-wrap: nowrap;
1616
+ white-space: nowrap;
1617
+ }
1618
+ }
1619
+
1620
+ .sqb-formula-list-zoom-modal .pd-Viewer-modal-main {
1621
+ display: flex;
1622
+ min-height: 0;
1623
+ }
1624
+
1625
+ .Sqb-FormulaListZoomEditor {
1626
+ display: flex;
1627
+ flex: 1 1 auto;
1628
+ flex-direction: column;
1629
+ width: 100%;
1630
+ height: 100%;
1631
+ min-height: 0;
1632
+ box-sizing: border-box;
1633
+ padding: 10px 12px 12px;
1634
+ }
1635
+
1636
+ .Sqb-FormulaListZoomEditor-body {
1637
+ flex: 1 1 auto;
1638
+ min-height: 0;
1639
+ width: 100%;
1640
+ overflow: auto;
1641
+ overflow-x: auto;
1642
+ }
1643
+
1644
+ .Sqb-FormulaListZoomEditor-body--formulaList > .Sqb-NotebookCell {
1645
+ display: flex;
1646
+ flex-wrap: wrap;
1647
+ align-items: center;
1648
+ gap: 8px 14px;
1649
+ width: 100%;
1650
+ min-width: 100%;
1651
+ box-sizing: border-box;
1652
+ padding-left: var(--sqb-item-shell-margin-x, 14px);
1653
+ padding-right: var(--sqb-item-shell-margin-x, 14px);
1654
+ }
1655
+
1656
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaListZoomEditor-cell {
1657
+ display: flex;
1658
+ align-items: stretch;
1659
+ width: 100%;
1660
+ min-width: 0;
1661
+ }
1662
+
1663
+ .Sqb-FormulaListZoomEditor-body:not(.Sqb-FormulaListZoomEditor-body--formulaList)
1664
+ .formula-node-group,
1665
+ .Sqb-FormulaListZoomEditor-body:not(.Sqb-FormulaListZoomEditor-body--formulaList)
1666
+ .Sqb-FormulaGroup.flow-group,
1667
+ .Sqb-FormulaListZoomEditor-body:not(.Sqb-FormulaListZoomEditor-body--formulaList)
1668
+ .Sqb-FormulaGroup.Sqb-CaseWhenGroup {
1669
+ flex: 1 1 auto;
1670
+ width: 100%;
1671
+ min-width: 0;
1672
+ max-width: 100%;
1673
+ }
1674
+
1675
+ .Sqb-FormulaListZoomEditor-body:not(.Sqb-FormulaListZoomEditor-body--formulaList)
1676
+ .Sqb-FormulaListZoomEditor-cell
1677
+ > .Sqb-CaseWhenGroup {
1678
+ min-width: 100%;
1679
+ }
1680
+
1681
+ .Sqb-FormulaListZoomEditor-body .Sqb-Filter-item.item-composite {
1682
+ display: inline-flex;
1683
+ flex: 0 0 auto;
1684
+ width: auto;
1685
+ min-width: 0;
1686
+ max-width: none;
1687
+ margin-right: 0;
1688
+ }
1689
+
1690
+ .Sqb-FormulaListZoomEditor-body .Sqb-Filter-item.item-composite .Sqb-Filter-item-node {
1691
+ display: inline-flex;
1692
+ flex: 0 0 auto;
1693
+ width: auto;
1694
+ min-width: 0;
1695
+ max-width: none;
1696
+ }
1697
+
1698
+ .Sqb-FormulaListZoomEditor-body .Sqb-Filter-item.item-composite .pd-Badge {
1699
+ align-items: stretch;
1700
+ }
1701
+
1702
+ .Sqb-FormulaListZoomEditor-body:not(.Sqb-FormulaListZoomEditor-body--formulaList)
1703
+ .Sqb-FormulaGroup.flow-group,
1704
+ .Sqb-FormulaListZoomEditor-body:not(.Sqb-FormulaListZoomEditor-body--formulaList)
1705
+ .Sqb-FormulaGroup.Sqb-CaseWhenGroup {
1706
+ flex-direction: column;
1707
+ align-items: stretch;
1708
+ }
1709
+
1710
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup-row {
1711
+ width: 100%;
1712
+ min-width: 0;
1713
+ }
1714
+
1715
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup-row.row-case,
1716
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup-row.row-end {
1717
+ grid-template-columns: auto minmax(0, 1fr) var(--sqb-case-action-column);
1718
+ }
1719
+
1720
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup-row.row-when,
1721
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup-row.row-else {
1722
+ grid-template-columns:
1723
+ var(--sqb-case-index-column) minmax(0, 1fr)
1724
+ var(--sqb-case-action-column);
1725
+ }
1726
+
1727
+ .Sqb-FormulaListZoomEditor-body
1728
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1729
+ > .Sqb-FormulaGroup-row
1730
+ > .Sqb-CaseBranch-body {
1731
+ display: block;
1732
+ width: 100%;
1733
+ min-width: 0;
1734
+ overflow-x: auto;
1735
+ overflow-y: hidden;
1736
+ padding-bottom: 4px;
1737
+ }
1738
+
1739
+ .Sqb-FormulaListZoomEditor-body
1740
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1741
+ > .Sqb-FormulaGroup-row
1742
+ > .Sqb-CaseBranch-body
1743
+ > .Sqb-CaseBranch-scrollInner {
1744
+ display: grid;
1745
+ grid-template-columns: minmax(0, 1fr);
1746
+ row-gap: 8px;
1747
+ width: 100%;
1748
+ min-width: 100%;
1749
+ }
1750
+
1751
+ .Sqb-FormulaListZoomEditor-body .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested {
1752
+ width: 100%;
1753
+ max-width: 100%;
1754
+ }
1755
+
1756
+ .Sqb-FormulaListZoomEditor-body .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested .Sqb-CaseBranch-body {
1757
+ display: grid;
1758
+ width: 100%;
1759
+ min-width: 0;
1760
+ overflow: visible;
1761
+ grid-template-columns: minmax(0, 1fr);
1762
+ }
1763
+
1764
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-case,
1765
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-condition,
1766
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-result {
1767
+ width: 100%;
1768
+ min-width: 0;
1769
+ max-width: 100%;
1770
+ overflow: hidden;
1771
+ }
1772
+
1773
+ .Sqb-FormulaListZoomEditor-body .Sqb-FormulaGroup.flow-group .Sqb-CaseSection-content {
1774
+ display: block;
1775
+ width: 100%;
1776
+ min-width: 0;
1777
+ max-width: 100%;
1778
+ overflow: visible;
1779
+ padding-bottom: 0;
1780
+ }
1781
+
1782
+ .Sqb-FormulaListZoomEditor-body
1783
+ .Sqb-FormulaGroup.flow-group
1784
+ .Sqb-FormulaGroup-row.row-when
1785
+ .Sqb-CaseSection-condition,
1786
+ .Sqb-FormulaListZoomEditor-body
1787
+ .Sqb-FormulaGroup.flow-group
1788
+ .Sqb-FormulaGroup-row.row-when
1789
+ .Sqb-CaseSection-result,
1790
+ .Sqb-FormulaListZoomEditor-body
1791
+ .Sqb-FormulaGroup.flow-group
1792
+ .Sqb-FormulaGroup-row.row-else
1793
+ .Sqb-CaseSection-result {
1794
+ width: 100%;
1795
+ min-width: 100%;
1796
+ max-width: 100%;
1797
+ overflow: visible;
1798
+ grid-template-columns: 38px minmax(0, 1fr);
1799
+ }
1800
+
1801
+ .Sqb-FormulaListZoomEditor-body
1802
+ .Sqb-FormulaGroup.flow-group
1803
+ .Sqb-FormulaGroup-row.row-when
1804
+ .Sqb-CaseSection-content,
1805
+ .Sqb-FormulaListZoomEditor-body
1806
+ .Sqb-FormulaGroup.flow-group
1807
+ .Sqb-FormulaGroup-row.row-else
1808
+ .Sqb-CaseSection-content {
1809
+ width: 100%;
1810
+ min-width: 0;
1811
+ max-width: none;
1812
+ }
1813
+
1814
+ .Sqb-FormulaListZoomEditor-body
1815
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1816
+ > .Sqb-FormulaGroup-row
1817
+ > .Sqb-CaseBranch-body
1818
+ > .Sqb-CaseBranch-scrollInner
1819
+ > .Sqb-CaseSection
1820
+ > .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1821
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen),
1822
+ .Sqb-FormulaListZoomEditor-body
1823
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1824
+ > .Sqb-FormulaGroup-row
1825
+ > .Sqb-CaseBranch-body
1826
+ > .Sqb-CaseBranch-scrollInner
1827
+ > .Sqb-CaseSection
1828
+ > .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1829
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1830
+ > .Sqb-NotebookCell,
1831
+ .Sqb-FormulaListZoomEditor-body
1832
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1833
+ > .Sqb-FormulaGroup-row
1834
+ > .Sqb-CaseBranch-body
1835
+ > .Sqb-CaseBranch-scrollInner
1836
+ > .Sqb-CaseSection
1837
+ > .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1838
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1839
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded {
1840
+ display: inline-flex;
1841
+ flex: 0 1 auto;
1842
+ flex-wrap: wrap;
1843
+ align-items: center;
1844
+ gap: 8px 14px;
1845
+ width: max-content;
1846
+ min-width: 0;
1847
+ max-width: 520px;
1848
+ box-sizing: border-box;
1849
+ }
1850
+
1851
+ .Sqb-FormulaListZoomEditor-body
1852
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1853
+ > .Sqb-FormulaGroup-row
1854
+ > .Sqb-CaseBranch-body
1855
+ > .Sqb-CaseBranch-scrollInner
1856
+ > .Sqb-CaseSection
1857
+ > .Sqb-CaseSection-content.Sqb-CaseSection-content--wrap
1858
+ > .Sqb-NestedFormulaList:not(.Sqb-NestedFormulaList--hasCaseWhen)
1859
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1860
+ > .Sqb-Filter-item:not(.item-composite) {
1861
+ flex: 0 1 auto;
1862
+ min-width: 0;
1863
+ max-width: 100%;
1864
+ }
1865
+
1866
+ .Sqb-FormulaListZoomEditor-body
1867
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1868
+ > .Sqb-FormulaGroup-row
1869
+ > .Sqb-CaseBranch-body
1870
+ > .Sqb-CaseBranch-scrollInner
1871
+ > .Sqb-CaseSection
1872
+ > .Sqb-CaseSection-content
1873
+ > .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen,
1874
+ .Sqb-FormulaListZoomEditor-body
1875
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1876
+ > .Sqb-FormulaGroup-row
1877
+ > .Sqb-CaseBranch-body
1878
+ > .Sqb-CaseBranch-scrollInner
1879
+ > .Sqb-CaseSection
1880
+ > .Sqb-CaseSection-content
1881
+ > .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen
1882
+ > .Sqb-NotebookCell,
1883
+ .Sqb-FormulaListZoomEditor-body
1884
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1885
+ > .Sqb-FormulaGroup-row
1886
+ > .Sqb-CaseBranch-body
1887
+ > .Sqb-CaseBranch-scrollInner
1888
+ > .Sqb-CaseSection
1889
+ > .Sqb-CaseSection-content
1890
+ > .Sqb-NestedFormulaList.Sqb-NestedFormulaList--hasCaseWhen
1891
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded {
1892
+ display: flex;
1893
+ flex: 1 1 auto;
1894
+ flex-wrap: wrap;
1895
+ width: 100%;
1896
+ min-width: 0;
1897
+ max-width: 100%;
1898
+ }
1899
+
1900
+ .Sqb-FormulaListZoomEditor-body
1901
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1902
+ > .Sqb-FormulaGroup-row
1903
+ > .Sqb-CaseBranch-body
1904
+ > .Sqb-CaseBranch-scrollInner
1905
+ > .Sqb-CaseSection
1906
+ > .Sqb-CaseSection-content
1907
+ > .Sqb-NestedFormulaList
1908
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1909
+ > .Sqb-Filter-item {
1910
+ flex: 0 0 auto;
1911
+ }
1912
+
1913
+ .Sqb-FormulaListZoomEditor-body
1914
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1915
+ > .Sqb-FormulaGroup-row
1916
+ > .Sqb-CaseBranch-body
1917
+ > .Sqb-CaseBranch-scrollInner
1918
+ > .Sqb-CaseSection
1919
+ > .Sqb-CaseSection-content
1920
+ > .Sqb-NestedFormulaList
1921
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1922
+ > .Sqb-Filter-item.item-composite {
1923
+ flex: 1 0 100%;
1924
+ width: 100%;
1925
+ min-width: 100%;
1926
+ max-width: none;
1927
+ }
1928
+
1929
+ .Sqb-FormulaListZoomEditor-body
1930
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1931
+ > .Sqb-FormulaGroup-row
1932
+ > .Sqb-CaseBranch-body
1933
+ > .Sqb-CaseBranch-scrollInner
1934
+ > .Sqb-CaseSection
1935
+ > .Sqb-CaseSection-content
1936
+ > .Sqb-NestedFormulaList
1937
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1938
+ > .Sqb-Filter-item.item-composite
1939
+ > .Sqb-Filter-item-node {
1940
+ width: 100%;
1941
+ min-width: 0;
1942
+ max-width: 100%;
1943
+ }
1944
+
1945
+ .Sqb-FormulaListZoomEditor-body
1946
+ .Sqb-CaseWhenGroup:not(.Sqb-CaseWhenGroup--nested)
1947
+ > .Sqb-FormulaGroup-row
1948
+ > .Sqb-CaseBranch-body
1949
+ > .Sqb-CaseBranch-scrollInner
1950
+ > .Sqb-CaseSection
1951
+ > .Sqb-CaseSection-content
1952
+ > .Sqb-NestedFormulaList
1953
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1954
+ > .Sqb-Filter-item.item-composite
1955
+ .Sqb-CaseWhenGroup {
1956
+ width: 100%;
1957
+ min-width: 0;
1958
+ max-width: 100%;
1959
+ }
1960
+
1961
+ .Sqb-FormulaListZoomEditor-body
1962
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1963
+ .Sqb-CaseSection-content
1964
+ > .Sqb-NestedFormulaList,
1965
+ .Sqb-FormulaListZoomEditor-body
1966
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1967
+ .Sqb-CaseSection-content
1968
+ > .Sqb-NestedFormulaList
1969
+ > .Sqb-NotebookCell,
1970
+ .Sqb-FormulaListZoomEditor-body
1971
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1972
+ .Sqb-CaseSection-content
1973
+ > .Sqb-NestedFormulaList
1974
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded {
1975
+ display: flex;
1976
+ flex: 1 1 auto;
1977
+ flex-wrap: wrap;
1978
+ align-items: center;
1979
+ width: 100%;
1980
+ min-width: 0;
1981
+ max-width: 100%;
1982
+ }
1983
+
1984
+ .Sqb-FormulaListZoomEditor-body
1985
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1986
+ .Sqb-CaseSection-content
1987
+ > .Sqb-NestedFormulaList
1988
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1989
+ > .Sqb-Filter-item.item-composite,
1990
+ .Sqb-FormulaListZoomEditor-body
1991
+ .Sqb-CaseWhenGroup.Sqb-CaseWhenGroup--nested
1992
+ .Sqb-CaseSection-content
1993
+ > .Sqb-NestedFormulaList
1994
+ > .Sqb-NotebookCell.Sqb-NotebookCell--embedded
1995
+ > .Sqb-Filter-item.item-composite
1996
+ > .Sqb-Filter-item-node {
1997
+ flex: 1 1 100%;
1998
+ width: 100%;
1999
+ min-width: 0;
2000
+ max-width: 100%;
2001
+ }
2002
+
2003
+ .Sqb-FormulaListZoomEditor .Sqb-TableName {
2004
+ display: inline-flex;
2005
+ align-items: center;
2006
+ justify-content: center;
2007
+ min-height: 28px;
2008
+ padding: 4px 7px;
2009
+ border: 1px solid transparent;
2010
+ border-radius: 5px;
2011
+ box-sizing: border-box;
2012
+ font-size: 13px;
2013
+ line-height: 18px;
2014
+ cursor: pointer;
2015
+ }
2016
+
2017
+ .Sqb-FormulaListZoomEditor .Sqb-TableName.gray-name {
2018
+ color: #fff;
2019
+ background-color: rgb(147, 161, 171);
2020
+ }
2021
+
2022
+ .Sqb-FormulaListZoomEditor .Sqb-TableName.gray-name:hover {
2023
+ background-color: rgba(147, 161, 171, 0.8);
2024
+ }
2025
+
2026
+ .Sqb-FormulaListZoomEditor .Sqb-TableName.gray-name.notSelected {
2027
+ border-color: rgba(147, 161, 171, 0.28);
2028
+ color: rgb(147, 161, 171);
2029
+ background-color: transparent;
2030
+ }
2031
+
2032
+ .Sqb-FormulaListZoomEditor .Sqb-TableName.gray-name.notSelected:hover {
2033
+ border-color: rgba(147, 161, 171, 0.8);
2034
+ }
2035
+
2036
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-add,
2037
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-remove {
2038
+ display: inline-flex;
2039
+ align-items: center;
2040
+ justify-content: center;
2041
+ flex: 0 0 auto;
2042
+ width: 20px;
2043
+ min-width: 20px;
2044
+ height: 20px;
2045
+ margin: 0;
2046
+ padding: 0;
2047
+ border: 1px solid transparent;
2048
+ border-radius: 6px;
2049
+ cursor: pointer;
2050
+ line-height: 0;
2051
+ box-shadow: 0 1px 2px rgba(83, 92, 112, 0.08);
2052
+ transition:
2053
+ border-color 160ms ease,
2054
+ background-color 160ms ease,
2055
+ box-shadow 160ms ease,
2056
+ color 160ms ease,
2057
+ opacity 160ms ease;
2058
+ }
2059
+
2060
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-add svg,
2061
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-remove svg {
2062
+ display: block;
2063
+ flex: 0 0 auto;
2064
+ width: 12px;
2065
+ height: 12px;
2066
+ }
2067
+
2068
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-add {
2069
+ border-color: rgba(80, 158, 227, 0.28);
2070
+ background: rgba(80, 158, 227, 0.12);
2071
+ color: rgb(80, 158, 227);
2072
+ }
2073
+
2074
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-add:hover {
2075
+ border-color: rgba(80, 158, 227, 0.42);
2076
+ background: rgba(80, 158, 227, 0.18);
2077
+ box-shadow: 0 2px 5px rgba(80, 158, 227, 0.14);
2078
+ }
2079
+
2080
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-remove {
2081
+ border-color: rgba(245, 63, 63, 0.2);
2082
+ background: rgba(245, 63, 63, 0.06);
2083
+ color: rgba(220, 38, 38, 0.72);
2084
+ }
2085
+
2086
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-remove:disabled,
2087
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-remove.disabled {
2088
+ cursor: not-allowed;
2089
+ opacity: 0.4;
2090
+ box-shadow: none;
2091
+ }
2092
+
2093
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRow-remove:not(:disabled):not(.disabled):hover {
2094
+ border-color: rgba(245, 63, 63, 0.34);
2095
+ background: rgba(245, 63, 63, 0.1);
2096
+ color: rgba(220, 38, 38, 0.9);
2097
+ box-shadow: 0 2px 5px rgba(245, 63, 63, 0.12);
2098
+ }
2099
+
2100
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRecover {
2101
+ display: inline-flex;
2102
+ align-items: center;
2103
+ gap: 4px;
2104
+ min-height: 22px;
2105
+ margin: 0;
2106
+ padding: 0 7px;
2107
+ border: 1px dashed rgba(80, 158, 227, 0.35);
2108
+ border-radius: 7px;
2109
+ background: rgba(80, 158, 227, 0.06);
2110
+ color: rgb(80, 158, 227);
2111
+ cursor: pointer;
2112
+ font-size: 11px;
2113
+ line-height: 1;
2114
+ transition:
2115
+ border-color 160ms ease,
2116
+ background-color 160ms ease,
2117
+ color 160ms ease;
2118
+ }
2119
+
2120
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRecover svg {
2121
+ width: 10px;
2122
+ height: 10px;
2123
+ }
2124
+
2125
+ .Sqb-FormulaListZoomEditor .Sqb-CaseRecover:hover {
2126
+ border-color: rgba(80, 158, 227, 0.48);
2127
+ background: rgba(80, 158, 227, 0.12);
2128
+ }
2129
+
2130
+ .Sqb-FormulaListZoomEditor-footer {
2131
+ display: flex;
2132
+ flex: 0 0 auto;
2133
+ justify-content: flex-end;
2134
+ gap: 8px;
2135
+ padding-top: 12px;
2136
+ margin-top: 12px;
2137
+ border-top: 1px solid rgba(83, 92, 112, 0.12);
2138
+ }
2139
+
2140
+ .Sqb-FormulaListZoomEditor-footer .pd-Button {
2141
+ min-width: 72px;
2142
+ height: 30px;
2143
+ border-radius: 6px;
2144
+ }
2145
+
2146
+ .Sqb-FormulaListZoomEditor-footer .pd-Button.sqb-formula-list-zoom-editor-cancel {
2147
+ border-color: rgba(83, 92, 112, 0.18);
2148
+ background: #fff;
2149
+ color: rgba(83, 92, 112, 0.82);
2150
+ }
2151
+
2152
+ .Sqb-FormulaListZoomEditor-footer .pd-Button.sqb-formula-list-zoom-editor-confirm {
2153
+ background: rgb(80, 158, 227);
2154
+ border-color: rgb(80, 158, 227);
2155
+ color: #fff;
2156
+ }
2157
+
2158
+ .Sqb-FormulaListZoomEditor-footer
2159
+ .pd-Button.sqb-formula-list-zoom-editor-confirm:not(.pd-Button-disabled):not(
2160
+ .pd-Button-loading
2161
+ ):hover {
2162
+ background: rgba(80, 158, 227, 0.88);
2163
+ border-color: rgba(80, 158, 227, 0.88);
871
2164
  }