@vueye-table/styled 3.0.0-alpha.1 → 3.0.0-alpha.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.
package/dist/style.css CHANGED
@@ -29,6 +29,7 @@
29
29
  --vt-cell-x: 0.75rem;
30
30
  --vt-cell-y: 0.625rem;
31
31
  --vt-shadow: 0 8px 24px rgb(31 35 40 / 0.12);
32
+ --vt-tree-indent: 1.25rem;
32
33
 
33
34
  font-family: var(--vt-font);
34
35
  font-size: var(--vt-font-size);
@@ -109,6 +110,32 @@
109
110
  max-height: var(--vt-max-height, none);
110
111
  }
111
112
 
113
+ .vt-surface[data-virtual] {
114
+ min-width: 0;
115
+ }
116
+
117
+ .vt-surface[data-virtual] .vt-scroll {
118
+ overflow-anchor: none;
119
+ scrollbar-color: var(--vt-border) var(--vt-bg);
120
+ }
121
+
122
+ .vt-surface[data-virtual] .vt-table [data-virtual-row] {
123
+ height: var(--vt-row-height, 40px);
124
+ }
125
+
126
+ .vt-table [data-virtual-spacer] > td,
127
+ .vt-table th[data-virtual-spacer],
128
+ .vt-table td[data-virtual-spacer] {
129
+ padding: 0;
130
+ border: 0;
131
+ background: transparent;
132
+ }
133
+
134
+ .vt-surface[data-virtual] .vt-table .vt-row-number {
135
+ width: 48px;
136
+ min-width: 48px;
137
+ }
138
+
112
139
  .vt-table {
113
140
  width: 100%;
114
141
  border-collapse: separate;
@@ -398,6 +425,12 @@
398
425
  color: var(--vt-muted);
399
426
  }
400
427
 
428
+ .vt-load-sentinel {
429
+ height: var(--vt-row-height, 40px);
430
+ color: var(--vt-muted);
431
+ text-align: center;
432
+ }
433
+
401
434
  .vt-menu {
402
435
  position: relative;
403
436
  }
@@ -503,6 +536,119 @@
503
536
  outline: none;
504
537
  }
505
538
 
539
+ .vt-table [data-edit-cell][data-editable] {
540
+ cursor: text;
541
+ }
542
+ .vt-table [data-edit-cell]:focus-visible {
543
+ outline: 2px solid var(--vt-focus);
544
+ outline-offset: -2px;
545
+ }
546
+ .vt-table [data-dirty] {
547
+ background-color: color-mix(in srgb, var(--vt-accent) 6%, var(--vt-bg));
548
+ }
549
+ .vt-table [data-editing] [data-editor],
550
+ .vt-cell-editor,
551
+ .vt-table [data-select-editor] input,
552
+ .vt-table [data-select-editor] select {
553
+ box-sizing: border-box;
554
+ min-width: 6rem;
555
+ max-width: 100%;
556
+ width: 100%;
557
+ padding: 0.5rem;
558
+ color: var(--vt-fg);
559
+ font: inherit;
560
+ background: var(--vt-bg);
561
+ border: 1px solid var(--vt-border);
562
+ border-radius: 4px;
563
+ accent-color: var(--vt-accent);
564
+ caret-color: var(--vt-accent);
565
+ }
566
+ .vt-table [data-editor][type="checkbox"] {
567
+ width: 1.1rem;
568
+ min-width: 1.1rem;
569
+ height: 1.1rem;
570
+ margin: 0.5rem;
571
+ }
572
+ .vt-table [data-editor]:focus-visible,
573
+ .vt-table [data-select-editor] input:focus-visible {
574
+ outline: 2px solid var(--vt-focus);
575
+ outline-offset: -2px;
576
+ }
577
+ .vt-table [aria-invalid="true"] [data-editor],
578
+ .vt-table [data-editor][aria-invalid="true"] {
579
+ border-color: var(--vt-danger);
580
+ }
581
+ .vt-table [data-edit-issues] {
582
+ display: block;
583
+ padding: 0.4rem 0.5rem;
584
+ color: var(--vt-danger);
585
+ font-size: 0.85em;
586
+ white-space: normal;
587
+ }
588
+ .vt-table [aria-busy="true"] [data-edit-issues] {
589
+ color: var(--vt-muted);
590
+ }
591
+ .vt-table [data-select-editor] {
592
+ min-width: 10rem;
593
+ padding: 0.4rem;
594
+ }
595
+ .vt-table [data-editor-hint] {
596
+ display: block;
597
+ padding-top: 0.35rem;
598
+ font-size: 0.8em;
599
+ color: var(--vt-muted);
600
+ }
601
+ .vt-row-controls {
602
+ width: 1%;
603
+ }
604
+ .vt-row-actions {
605
+ display: flex;
606
+ align-items: center;
607
+ flex-wrap: wrap;
608
+ gap: 0.35rem;
609
+ min-width: 5rem;
610
+ max-width: 100%;
611
+ }
612
+ .vt-row-actions details {
613
+ min-width: 0;
614
+ max-width: 100%;
615
+ }
616
+ .vt-row-actions button,
617
+ .vt-row-actions summary {
618
+ padding: 0.3rem 0.5rem;
619
+ border: 1px solid var(--vt-border);
620
+ border-radius: 4px;
621
+ color: var(--vt-fg);
622
+ background: var(--vt-bg);
623
+ font: inherit;
624
+ font-size: 0.85em;
625
+ cursor: pointer;
626
+ white-space: nowrap;
627
+ }
628
+ .vt-row-actions button:disabled {
629
+ color: var(--vt-muted);
630
+ cursor: default;
631
+ }
632
+ .vt-row-actions button:enabled:hover,
633
+ .vt-row-actions summary:hover {
634
+ background: var(--vt-header-bg);
635
+ }
636
+ .vt-row-actions button:focus-visible,
637
+ .vt-row-actions summary:focus-visible {
638
+ outline: 2px solid var(--vt-focus);
639
+ outline-offset: 2px;
640
+ }
641
+ .vt-row-actions [data-row-menu] {
642
+ display: flex;
643
+ flex-wrap: wrap;
644
+ gap: 0.35rem;
645
+ margin-top: 0.35rem;
646
+ }
647
+ .vt-row-actions [data-row-menu] button {
648
+ max-width: 100%;
649
+ white-space: normal;
650
+ }
651
+
506
652
  .vt-grid .vt-row-number {
507
653
  width: 1%;
508
654
  padding-inline: 0.5rem;
@@ -535,3 +681,76 @@
535
681
  padding-inline: 0;
536
682
  border: 0;
537
683
  }
684
+
685
+ .vt-tree-cell {
686
+ display: flex;
687
+ flex-wrap: wrap;
688
+ align-items: center;
689
+ gap: 0.375rem;
690
+ min-width: 0;
691
+ }
692
+
693
+ .vt-tree-toggle {
694
+ display: inline-flex;
695
+ flex: 0 0 1.75rem;
696
+ justify-content: center;
697
+ }
698
+
699
+ .vt-expand-toggle {
700
+ display: inline-flex;
701
+ align-items: center;
702
+ justify-content: center;
703
+ width: 1.75rem;
704
+ height: 1.75rem;
705
+ padding: 0;
706
+ color: var(--vt-muted);
707
+ background: transparent;
708
+ border: 0;
709
+ border-radius: var(--vt-control-radius);
710
+ cursor: pointer;
711
+ }
712
+
713
+ .vt-expand-toggle:hover {
714
+ color: var(--vt-fg);
715
+ background: var(--vt-hover);
716
+ }
717
+
718
+ .vt-expand-toggle:focus-visible,
719
+ .vt-tree-retry:focus-visible,
720
+ .vt-table tr[tabindex]:focus-visible {
721
+ outline: 2px solid var(--vt-focus);
722
+ outline-offset: -2px;
723
+ }
724
+
725
+ .vt-tree-loading {
726
+ color: var(--vt-muted);
727
+ }
728
+
729
+ .vt-tree-error {
730
+ color: var(--vt-danger);
731
+ }
732
+
733
+ .vt-tree-retry {
734
+ padding: 0.125rem 0.25rem;
735
+ color: inherit;
736
+ font: inherit;
737
+ background: transparent;
738
+ border: 1px solid currentColor;
739
+ border-radius: var(--vt-control-radius);
740
+ cursor: pointer;
741
+ }
742
+
743
+ .vt-table .vt-expansion-cell {
744
+ width: 2.75rem;
745
+ padding-inline: 0.5rem;
746
+ }
747
+
748
+ .vt-table .vt-detail-cell {
749
+ padding: 1rem;
750
+ white-space: normal;
751
+ background: var(--vt-header-bg);
752
+ }
753
+
754
+ .vt-table tr[hidden] {
755
+ display: none;
756
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueye-table/styled",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.11",
4
4
  "description": "Styled, themeable Vue components for vueye-table, built on the headless layer.",
5
5
  "keywords": [
6
6
  "data-table",
@@ -41,9 +41,9 @@
41
41
  "provenance": true
42
42
  },
43
43
  "dependencies": {
44
- "@vueye-table/headless": "3.0.0-alpha.1",
45
- "@vueye-table/vue": "3.0.0-alpha.1",
46
- "@vueye-table/core": "3.0.0-alpha.1"
44
+ "@vueye-table/core": "3.0.0-alpha.11",
45
+ "@vueye-table/vue": "3.0.0-alpha.11",
46
+ "@vueye-table/headless": "3.0.0-alpha.11"
47
47
  },
48
48
  "devDependencies": {
49
49
  "vue": "3.5.43",