@vtable-guild/vtable-guild 2.9.0-alpha.8 → 3.0.0
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.
- package/css/index.css +296 -9
- package/css/presets/antdv.css +3 -0
- package/css/presets/element-plus.css +3 -0
- package/css/style.css +544 -43
- package/css/tailwind3-utilities.css +189 -32
- package/css/tailwind3.css +355 -11
- package/css/tailwind4.css +355 -11
- package/css/transitions.css +53 -2
- package/dist/core/src/utils/types.d.ts +3 -0
- package/dist/core/src/utils/types.d.ts.map +1 -1
- package/dist/css/index.css +296 -9
- package/dist/css/presets/antdv.css +3 -0
- package/dist/css/presets/element-plus.css +3 -0
- package/dist/css/style.css +544 -43
- package/dist/css/tailwind3-utilities.css +189 -32
- package/dist/css/tailwind3.css +355 -11
- package/dist/css/tailwind4.css +355 -11
- package/dist/css/transitions.css +53 -2
- package/dist/icons/src/EditOutlinedIcon.d.ts +3 -0
- package/dist/icons/src/EditOutlinedIcon.d.ts.map +1 -0
- package/dist/icons/src/EditOutlinedIcon.mjs +9 -0
- package/dist/icons/src/ElFilterIcon.mjs +9 -0
- package/dist/icons/src/index.d.ts +1 -0
- package/dist/icons/src/index.d.ts.map +1 -1
- package/dist/index.full.mjs +9349 -7117
- package/dist/index.mjs +112 -106
- package/dist/table/src/components/Table.d.ts +1 -1
- package/dist/table/src/components/TableCell.d.ts.map +1 -1
- package/dist/table/src/components/TableCell.mjs +118 -147
- package/dist/table/src/components/TableEditFrame.d.ts +58 -0
- package/dist/table/src/components/TableEditFrame.d.ts.map +1 -0
- package/dist/table/src/components/TableEditFrame.mjs +127 -0
- package/dist/table/src/components/TableEditLayout.test.d.ts +2 -0
- package/dist/table/src/components/TableEditLayout.test.d.ts.map +1 -0
- package/dist/table/src/components/TableEditableCell.d.ts +46 -9
- package/dist/table/src/components/TableEditableCell.d.ts.map +1 -1
- package/dist/table/src/components/TableEditableCell.mjs +99 -22
- package/dist/table/src/components/TableLightFilter.d.ts +76 -0
- package/dist/table/src/components/TableLightFilter.d.ts.map +1 -0
- package/dist/table/src/components/TableLightFilter.mjs +320 -0
- package/dist/table/src/components/TableLightFilter.test.d.ts +2 -0
- package/dist/table/src/components/TableLightFilter.test.d.ts.map +1 -0
- package/dist/table/src/components/TableQuery.d.ts +107 -46
- package/dist/table/src/components/TableQuery.d.ts.map +1 -1
- package/dist/table/src/components/TableQuery.mjs +481 -184
- package/dist/table/src/components/TableQueryNative.test.d.ts +2 -0
- package/dist/table/src/components/TableQueryNative.test.d.ts.map +1 -0
- package/dist/table/src/components/TableSelectionAlert.d.ts +1 -1
- package/dist/table/src/components/TableSelectionAlert.d.ts.map +1 -1
- package/dist/table/src/components/TableSelectionAlert.mjs +109 -55
- package/dist/table/src/components/VTableEditCell.test.d.ts +2 -0
- package/dist/table/src/components/VTableEditCell.test.d.ts.map +1 -0
- package/dist/table/src/components/VTableEditCell.vue.d.ts +18 -3
- package/dist/table/src/components/VTableEditCell.vue.d.ts.map +1 -1
- package/dist/table/src/components/VTableEditCell.vue.mjs +172 -10
- package/dist/table/src/components/VTableEditShell.vue.d.ts +38 -0
- package/dist/table/src/components/VTableEditShell.vue.d.ts.map +1 -0
- package/dist/table/src/components/VTableEditShell.vue.mjs +37 -0
- package/dist/table/src/components/VTableEditShell.vue2.mjs +4 -0
- package/dist/table/src/components/VTableQuery.vue.d.ts +4 -3
- package/dist/table/src/components/VTableQuery.vue.d.ts.map +1 -1
- package/dist/table/src/components/VTableQuery.vue.mjs +53 -31
- package/dist/table/src/components/VirtualTableBody.mjs +24 -23
- package/dist/table/src/components/renderCellDisplay.d.ts +6 -0
- package/dist/table/src/components/renderCellDisplay.d.ts.map +1 -0
- package/dist/table/src/components/renderCellDisplay.mjs +37 -0
- package/dist/table/src/composables/useQueryCollapseMotion.d.ts +4 -0
- package/dist/table/src/composables/useQueryCollapseMotion.d.ts.map +1 -0
- package/dist/table/src/composables/useQueryCollapseMotion.mjs +48 -0
- package/dist/table/src/composables/useQueryCollapseMotion.test.d.ts +2 -0
- package/dist/table/src/composables/useQueryCollapseMotion.test.d.ts.map +1 -0
- package/dist/table/src/composables/useSelection.d.ts.map +1 -1
- package/dist/table/src/composables/useSelection.mjs +157 -148
- package/dist/table/src/composables/useTableEdit.d.ts +17 -0
- package/dist/table/src/composables/useTableEdit.d.ts.map +1 -1
- package/dist/table/src/composables/useTableEdit.mjs +326 -266
- package/dist/table/src/composables/useTableEditable.d.ts.map +1 -1
- package/dist/table/src/composables/useTableEditable.mjs +321 -89
- package/dist/table/src/controls.d.ts.map +1 -1
- package/dist/table/src/controls.mjs +198 -79
- package/dist/table/src/index.d.ts +2 -0
- package/dist/table/src/index.d.ts.map +1 -1
- package/dist/table/src/types/controls.d.ts +61 -3
- package/dist/table/src/types/controls.d.ts.map +1 -1
- package/dist/table/src/types/controls.mjs +4 -0
- package/dist/table/src/types/editable.d.ts +78 -4
- package/dist/table/src/types/editable.d.ts.map +1 -1
- package/dist/table/src/types/editable.typecheck.d.ts.map +1 -1
- package/dist/table/src/types/editing.d.ts +5 -2
- package/dist/table/src/types/editing.d.ts.map +1 -1
- package/dist/table/src/types/query-form.d.ts +76 -15
- package/dist/table/src/types/query-form.d.ts.map +1 -1
- package/dist/table/src/types/query-form.typecheck.d.ts +4 -0
- package/dist/table/src/types/query-form.typecheck.d.ts.map +1 -1
- package/dist/table/src/types/table.d.ts +1 -0
- package/dist/table/src/types/table.d.ts.map +1 -1
- package/dist/table/src/utils/cell.d.ts +18 -12
- package/dist/table/src/utils/cell.d.ts.map +1 -1
- package/dist/table/src/utils/cell.mjs +95 -94
- package/dist/table/src/utils/draftEqual.d.ts +2 -0
- package/dist/table/src/utils/draftEqual.d.ts.map +1 -0
- package/dist/table/src/utils/draftEqual.mjs +22 -0
- package/dist/table/src/utils/queryFields.mjs +11 -11
- package/dist/table/src/utils/queryFilterLayout.d.ts +29 -0
- package/dist/table/src/utils/queryFilterLayout.d.ts.map +1 -0
- package/dist/table/src/utils/queryFilterLayout.mjs +74 -0
- package/dist/table/src/utils/queryFilterLayout.test.d.ts +2 -0
- package/dist/table/src/utils/queryFilterLayout.test.d.ts.map +1 -0
- package/dist/table/src/utils/queryInlineLayout.d.ts +22 -0
- package/dist/table/src/utils/queryInlineLayout.d.ts.map +1 -0
- package/dist/table/src/utils/queryInlineLayout.mjs +92 -0
- package/dist/table/src/utils/queryInlineLayout.test.d.ts +2 -0
- package/dist/table/src/utils/queryInlineLayout.test.d.ts.map +1 -0
- package/dist/table/src/utils/snapshot.d.ts +2 -0
- package/dist/table/src/utils/snapshot.d.ts.map +1 -1
- package/dist/table/src/utils/snapshot.mjs +18 -13
- package/dist/theme/src/presets/antdv/table-locale.d.ts +6 -0
- package/dist/theme/src/presets/antdv/table-locale.d.ts.map +1 -1
- package/dist/theme/src/presets/antdv/table-locale.mjs +16 -2
- package/dist/theme/src/presets/antdv/table.d.ts +18 -8
- package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
- package/dist/theme/src/presets/antdv/table.mjs +56 -12
- package/dist/theme/src/presets/element-plus/table-locale.d.ts +6 -0
- package/dist/theme/src/presets/element-plus/table-locale.d.ts.map +1 -1
- package/dist/theme/src/presets/element-plus/table-locale.mjs +16 -2
- package/dist/theme/src/presets/element-plus/table.d.ts +18 -8
- package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
- package/dist/theme/src/presets/element-plus/table.mjs +57 -10
- package/dist/theme/src/query.d.ts +34 -57
- package/dist/theme/src/query.d.ts.map +1 -1
- package/dist/theme/src/query.mjs +23 -24
- package/dist/theme/src/selection-alert.d.ts +8 -0
- package/dist/theme/src/selection-alert.d.ts.map +1 -1
- package/dist/theme/src/selection-alert.mjs +2 -0
- package/dist/vtable-guild/src/index.d.ts +1 -1
- package/dist/vtable-guild/src/index.d.ts.map +1 -1
- package/package.json +2 -1
package/css/tailwind3.css
CHANGED
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
--vtg-cell-tag-bg: color-mix(in srgb, currentcolor 8%, var(--vtg-table-bg));
|
|
32
32
|
--vtg-cell-tag-border: color-mix(in srgb, currentcolor 30%, transparent);
|
|
33
33
|
--vtg-cell-progress-min-width: 100px;
|
|
34
|
+
--vtg-editor-inset-block: 2px;
|
|
35
|
+
--vtg-editor-inset-inline: 2px;
|
|
36
|
+
--vtg-editor-min-inline-size: 64px;
|
|
34
37
|
--vtg-editor-error-gap: 2px;
|
|
35
38
|
--vtg-editor-error-font-size: 14px;
|
|
36
39
|
--vtg-editor-radius: 6px;
|
|
@@ -297,6 +300,9 @@
|
|
|
297
300
|
--vtg-cell-tag-bg: color-mix(in srgb, currentcolor 10%, var(--vtg-table-bg));
|
|
298
301
|
--vtg-cell-tag-border: color-mix(in srgb, currentcolor 30%, transparent);
|
|
299
302
|
--vtg-cell-progress-min-width: 100px;
|
|
303
|
+
--vtg-editor-inset-block: 2px;
|
|
304
|
+
--vtg-editor-inset-inline: 2px;
|
|
305
|
+
--vtg-editor-min-inline-size: 64px;
|
|
300
306
|
--vtg-editor-error-gap: 2px;
|
|
301
307
|
--vtg-editor-error-font-size: 12px;
|
|
302
308
|
--vtg-editor-radius: 4px;
|
|
@@ -543,7 +549,7 @@
|
|
|
543
549
|
--vtg-selection-alert-bg: rgb(255 255 255 / 2%);
|
|
544
550
|
}
|
|
545
551
|
|
|
546
|
-
/* Shared table
|
|
552
|
+
/* Shared table motion. */
|
|
547
553
|
|
|
548
554
|
.vtg-table-popup-enter-active,
|
|
549
555
|
.vtg-table-popup-leave-active {
|
|
@@ -564,11 +570,62 @@
|
|
|
564
570
|
pointer-events: none;
|
|
565
571
|
}
|
|
566
572
|
|
|
573
|
+
[data-selection-alert-motion] {
|
|
574
|
+
display: flow-root;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
[data-selection-alert-content] {
|
|
578
|
+
padding-block-start: var(--vtg-selection-alert-spacing-before, 0);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.vtg-selection-alert-enter-active,
|
|
582
|
+
.vtg-selection-alert-leave-active {
|
|
583
|
+
overflow: hidden;
|
|
584
|
+
transition:
|
|
585
|
+
height var(--vtg-selection-alert-motion-duration, 180ms)
|
|
586
|
+
var(--vtg-selection-alert-motion-easing, cubic-bezier(0.645, 0.045, 0.355, 1)),
|
|
587
|
+
opacity var(--vtg-selection-alert-motion-duration, 180ms)
|
|
588
|
+
var(--vtg-selection-alert-motion-easing, cubic-bezier(0.645, 0.045, 0.355, 1));
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.vtg-selection-alert-enter-from,
|
|
592
|
+
.vtg-selection-alert-leave-to {
|
|
593
|
+
height: 0;
|
|
594
|
+
opacity: 0;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.vtg-selection-alert-leave-active {
|
|
598
|
+
pointer-events: none;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
[data-query-motion] {
|
|
602
|
+
box-sizing: border-box;
|
|
603
|
+
overflow: clip;
|
|
604
|
+
animation: vtg-query-collapse var(--vtg-query-motion-duration, 180ms)
|
|
605
|
+
var(--vtg-query-motion-easing, cubic-bezier(0.645, 0.045, 0.355, 1)) both;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
@keyframes vtg-query-collapse {
|
|
609
|
+
from {
|
|
610
|
+
height: var(--vtg-query-motion-start-height);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
to {
|
|
614
|
+
height: var(--vtg-query-motion-end-height);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
567
618
|
@media (prefers-reduced-motion: reduce) {
|
|
568
619
|
.vtg-table-popup-enter-active,
|
|
569
|
-
.vtg-table-popup-leave-active
|
|
620
|
+
.vtg-table-popup-leave-active,
|
|
621
|
+
.vtg-selection-alert-enter-active,
|
|
622
|
+
.vtg-selection-alert-leave-active {
|
|
570
623
|
transition: none;
|
|
571
624
|
}
|
|
625
|
+
|
|
626
|
+
[data-query-motion] {
|
|
627
|
+
animation: none;
|
|
628
|
+
}
|
|
572
629
|
}
|
|
573
630
|
|
|
574
631
|
/* @vtable-guild/theme/css — 默认入口 */
|
|
@@ -583,19 +640,179 @@
|
|
|
583
640
|
* 新增主题只需在此添加一行 @import 即可。
|
|
584
641
|
*/
|
|
585
642
|
|
|
586
|
-
/*
|
|
587
|
-
[data-query-
|
|
643
|
+
/* Native FormItems keep their own labels, spacing and control sizing. */
|
|
644
|
+
[data-query-inline] {
|
|
645
|
+
position: relative;
|
|
646
|
+
display: flex;
|
|
647
|
+
flex-wrap: wrap;
|
|
648
|
+
align-items: flex-start;
|
|
649
|
+
width: 100%;
|
|
650
|
+
min-width: 0;
|
|
651
|
+
gap: var(--vtg-query-row-gap, 0) var(--vtg-query-column-gap, 0);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
[data-query-inline] > :is([data-query-inline-field], [data-query-inline-actions]) {
|
|
655
|
+
flex: 0 0 auto;
|
|
656
|
+
width: fit-content;
|
|
657
|
+
max-width: 100%;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
[data-query-inline] > [hidden] {
|
|
661
|
+
display: none;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* Keep folded items measurable without laying them out or exposing them to focus. */
|
|
665
|
+
[data-query-inline] > [data-query-inline-folded] {
|
|
666
|
+
position: absolute;
|
|
667
|
+
inset-block-start: 0;
|
|
668
|
+
inset-inline-start: 0;
|
|
669
|
+
visibility: hidden;
|
|
670
|
+
opacity: 0;
|
|
671
|
+
pointer-events: none;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
[data-query-native-buttons] {
|
|
675
|
+
display: flex;
|
|
676
|
+
flex-wrap: wrap;
|
|
677
|
+
align-items: center;
|
|
678
|
+
gap: var(--vtg-query-action-gap, 8px);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
[data-query-inline-action-content] {
|
|
682
|
+
position: relative;
|
|
683
|
+
flex-wrap: nowrap;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
[data-query-inline-buttons],
|
|
687
|
+
[data-query-inline-toggle] {
|
|
688
|
+
flex-shrink: 0;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
[data-query-inline-toggle][data-query-inline-folded] {
|
|
692
|
+
position: absolute;
|
|
693
|
+
visibility: hidden;
|
|
694
|
+
opacity: 0;
|
|
695
|
+
pointer-events: none;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
[data-query-native-toggle] {
|
|
699
|
+
padding: 0;
|
|
700
|
+
border: 0;
|
|
701
|
+
background: transparent;
|
|
702
|
+
color: var(--vtg-query-collapse-color, var(--color-primary));
|
|
703
|
+
font: inherit;
|
|
704
|
+
white-space: nowrap;
|
|
705
|
+
cursor: pointer;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
[data-query-form-preset='antdv'] {
|
|
709
|
+
--vtg-query-collapse-color: var(--ant-color-primary, var(--color-primary));
|
|
710
|
+
--vtg-query-collapse-hover-color: var(--ant-color-primary-hover, var(--color-primary-hover));
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/* Inline Antdv FormItems have no bottom margin; add spacing between wrapped rows. */
|
|
714
|
+
[data-query-form-preset='antdv'] [data-query-inline] {
|
|
715
|
+
row-gap: var(--vtg-query-row-gap, var(--ant-margin, 16px));
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
[data-query-form-preset='element-plus'] {
|
|
719
|
+
--vtg-query-collapse-color: var(--el-color-primary, var(--color-primary));
|
|
720
|
+
--vtg-query-collapse-hover-color: var(--el-color-primary-light-3, var(--color-primary-hover));
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
[data-query-native-toggle]:hover {
|
|
724
|
+
color: var(--vtg-query-collapse-hover-color, var(--color-primary-hover));
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
[data-query-native-toggle]:disabled {
|
|
728
|
+
opacity: var(--vtg-query-disabled-opacity, 0.5);
|
|
729
|
+
cursor: not-allowed;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
[data-query-native-toggle] > svg {
|
|
733
|
+
width: 1em;
|
|
734
|
+
height: 1em;
|
|
735
|
+
transition: transform var(--vtg-query-collapse-duration, 200ms);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
[data-query-native-toggle][aria-expanded='true'] > svg {
|
|
739
|
+
transform: rotate(180deg);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
@media (prefers-reduced-motion: reduce) {
|
|
743
|
+
[data-query-native-toggle] > svg {
|
|
744
|
+
transition: none;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
[data-query-grid] {
|
|
749
|
+
display: grid;
|
|
750
|
+
grid-template-columns: repeat(24, minmax(0, 1fr));
|
|
751
|
+
row-gap: var(--vtg-query-row-gap, 24px);
|
|
752
|
+
margin-inline: calc(var(--vtg-query-column-gap, 24px) / -2);
|
|
753
|
+
container-type: inline-size;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
[data-query-grid] > :is([data-query-field], [data-query-actions]) {
|
|
588
757
|
box-sizing: border-box;
|
|
589
|
-
width:
|
|
758
|
+
min-width: 0;
|
|
759
|
+
padding-inline: calc(var(--vtg-query-column-gap, 24px) / 2);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
[data-query-grid] > [data-query-field][hidden] {
|
|
763
|
+
display: none;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
[data-query-grid] > [data-query-field] > label {
|
|
767
|
+
width: var(--vtg-query-label-width, 80px);
|
|
768
|
+
max-width: 50%;
|
|
769
|
+
justify-content: end;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
[data-query-layout='inline'] > [data-query-grid] > [data-query-field] > label {
|
|
773
|
+
width: auto;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
[data-query-layout='vertical'] > [data-query-grid] > [data-query-field] {
|
|
777
|
+
flex-direction: column;
|
|
778
|
+
align-items: stretch;
|
|
779
|
+
gap: var(--vtg-query-vertical-label-gap, 4px);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
[data-query-layout='vertical'] > [data-query-grid] > [data-query-field] > label {
|
|
783
|
+
width: auto;
|
|
784
|
+
max-width: none;
|
|
785
|
+
height: auto;
|
|
786
|
+
justify-content: start;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
[data-query-layout='vertical'] > [data-query-grid] > [data-query-actions] {
|
|
790
|
+
align-self: end;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/* Size host controls by their intrinsic width, up to the space allocated to the field. */
|
|
794
|
+
[data-query-control-content] {
|
|
795
|
+
width: fit-content;
|
|
590
796
|
max-width: 100%;
|
|
591
797
|
}
|
|
592
798
|
|
|
593
|
-
[data-query-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
799
|
+
[data-query-control-content] > * {
|
|
800
|
+
box-sizing: border-box;
|
|
801
|
+
min-width: 0;
|
|
802
|
+
max-width: 100%;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
[data-query-layout='vertical'] > [data-query-grid] > [data-query-split] {
|
|
806
|
+
position: relative;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
[data-query-layout='vertical'] > [data-query-grid] > [data-query-split]::after {
|
|
810
|
+
position: absolute;
|
|
811
|
+
width: calc(100cqi - var(--vtg-query-column-gap, 24px));
|
|
812
|
+
inset-block-end: calc(var(--vtg-query-row-gap, 24px) / -2);
|
|
813
|
+
inset-inline-end: calc(var(--vtg-query-column-gap, 24px) / 2);
|
|
814
|
+
border-block-end: 1px dashed var(--vtg-query-split-color, var(--vtg-table-border-color));
|
|
815
|
+
content: '';
|
|
599
816
|
}
|
|
600
817
|
|
|
601
818
|
.vtg-table-popup {
|
|
@@ -615,6 +832,133 @@
|
|
|
615
832
|
transform-origin: top center;
|
|
616
833
|
}
|
|
617
834
|
|
|
835
|
+
.vtg-light-filter {
|
|
836
|
+
display: flex;
|
|
837
|
+
min-width: 0;
|
|
838
|
+
flex-wrap: wrap;
|
|
839
|
+
gap: var(--vtg-query-light-gap, 8px);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.vtg-light-filter__chip {
|
|
843
|
+
display: inline-flex;
|
|
844
|
+
max-width: 100%;
|
|
845
|
+
align-items: stretch;
|
|
846
|
+
border: 1px solid var(--vtg-query-light-border, transparent);
|
|
847
|
+
border-radius: var(--vtg-query-light-radius, var(--vtg-btn-border-radius));
|
|
848
|
+
background: var(--vtg-query-light-bg, transparent);
|
|
849
|
+
color: var(--color-on-surface);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.vtg-light-filter__chip:hover,
|
|
853
|
+
.vtg-light-filter__chip:focus-within {
|
|
854
|
+
border-color: var(--vtg-query-light-hover-border, var(--color-primary));
|
|
855
|
+
background: var(--vtg-query-light-hover-bg, var(--color-surface-hover));
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.vtg-light-filter__chip[data-active='true'] {
|
|
859
|
+
background: var(--vtg-query-light-active-bg, var(--vtg-table-row-selected-bg));
|
|
860
|
+
color: var(--vtg-query-light-active-color, var(--color-primary));
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.vtg-light-filter__chip[data-invalid='true'] {
|
|
864
|
+
border-color: var(--vtg-cell-error);
|
|
865
|
+
color: var(--vtg-cell-error);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.vtg-light-filter__trigger,
|
|
869
|
+
.vtg-light-filter__clear {
|
|
870
|
+
display: inline-flex;
|
|
871
|
+
min-width: 0;
|
|
872
|
+
min-height: var(--vtg-query-light-height, var(--vtg-query-control-height, 32px));
|
|
873
|
+
align-items: center;
|
|
874
|
+
padding: 0 var(--vtg-query-light-trigger-padding, 8px);
|
|
875
|
+
border: 0;
|
|
876
|
+
border-radius: inherit;
|
|
877
|
+
background: transparent;
|
|
878
|
+
color: inherit;
|
|
879
|
+
cursor: pointer;
|
|
880
|
+
font: inherit;
|
|
881
|
+
white-space: nowrap;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.vtg-light-filter__clear {
|
|
885
|
+
padding-inline-start: 0;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.vtg-light-filter__trigger:disabled,
|
|
889
|
+
.vtg-light-filter__clear:disabled {
|
|
890
|
+
color: var(--color-text-disabled);
|
|
891
|
+
cursor: not-allowed;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.vtg-light-filter__trigger:focus-visible,
|
|
895
|
+
.vtg-light-filter__clear:focus-visible {
|
|
896
|
+
outline: 2px solid var(--color-primary);
|
|
897
|
+
outline-offset: -2px;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.vtg-light-filter__value {
|
|
901
|
+
overflow: hidden;
|
|
902
|
+
max-width: var(--vtg-query-light-summary-width, 244px);
|
|
903
|
+
text-overflow: ellipsis;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.vtg-light-filter__icon {
|
|
907
|
+
flex: none;
|
|
908
|
+
margin-inline-start: var(--vtg-query-light-icon-gap, 6px);
|
|
909
|
+
font-size: var(--vtg-query-light-icon-size, 10px);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.vtg-light-filter__collapse-icon {
|
|
913
|
+
width: var(--vtg-query-light-collapse-icon-size, 14px);
|
|
914
|
+
height: var(--vtg-query-light-collapse-icon-size, 14px);
|
|
915
|
+
flex: none;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.vtg-table-popup.vtg-light-filter__popup {
|
|
919
|
+
display: flex;
|
|
920
|
+
overflow: visible;
|
|
921
|
+
flex-direction: column;
|
|
922
|
+
padding: var(--vtg-query-light-popup-padding, 12px);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.vtg-light-filter__fields {
|
|
926
|
+
display: grid;
|
|
927
|
+
overflow: auto;
|
|
928
|
+
min-height: 0;
|
|
929
|
+
gap: var(--vtg-query-light-popup-gap, 12px);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.vtg-light-filter__field {
|
|
933
|
+
display: grid;
|
|
934
|
+
min-width: 0;
|
|
935
|
+
width: var(--vtg-query-light-control-width, 200px);
|
|
936
|
+
max-width: 100%;
|
|
937
|
+
justify-items: start;
|
|
938
|
+
gap: var(--vtg-query-light-label-gap, 4px);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.vtg-light-filter__field:is(
|
|
942
|
+
[data-query-value-type='dateRange'],
|
|
943
|
+
[data-query-value-type='dateTimeRange']
|
|
944
|
+
) {
|
|
945
|
+
width: var(--vtg-query-light-range-width, 320px);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.vtg-light-filter__error {
|
|
949
|
+
color: var(--vtg-cell-error);
|
|
950
|
+
font-size: var(--vtg-query-error-font-size, 12px);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.vtg-light-filter__footer {
|
|
954
|
+
display: flex;
|
|
955
|
+
flex: none;
|
|
956
|
+
flex-wrap: wrap;
|
|
957
|
+
justify-content: flex-end;
|
|
958
|
+
margin-top: var(--vtg-query-light-popup-gap, 12px);
|
|
959
|
+
gap: var(--vtg-query-action-gap, 8px);
|
|
960
|
+
}
|
|
961
|
+
|
|
618
962
|
/* Hide native scrollbar — used by Scrollbar component */
|
|
619
963
|
.scrollbar-none {
|
|
620
964
|
scrollbar-width: none;
|