@fastkit/vui 0.6.17 → 0.6.28
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/tool/index.js +9 -4
- package/dist/tool/vite-plugin.d.ts.map +1 -1
- package/dist/vui.cjs.js +1043 -18
- package/dist/vui.cjs.prod.js +1043 -18
- package/dist/vui.css +331 -4
- package/dist/vui.d.ts +489 -3
- package/dist/vui.esm-bundler.js +1040 -22
- package/dist/vui.min.css +1 -1
- package/dist/vui.min.css.map +1 -1
- package/package.json +6 -6
package/dist/vui.css
CHANGED
|
@@ -512,6 +512,25 @@ template {
|
|
|
512
512
|
--toolbar-dense-height: calc(var(--toolbar-height) * 0.8);
|
|
513
513
|
--card-content-padding: 1rem;
|
|
514
514
|
--card-actions-padding: 0.5rem;
|
|
515
|
+
--pagination-item-radius: 2px;
|
|
516
|
+
--pagination-item-font-size: var(--root-em);
|
|
517
|
+
--pagination-item-size: calc(var(--root-em) * 2);
|
|
518
|
+
--pagination-item-margin: calc(var(--root-em) * 0.5);
|
|
519
|
+
--pagination-item-font-size-dense: calc(
|
|
520
|
+
var(--pagination-item-font-size) * 0.625
|
|
521
|
+
);
|
|
522
|
+
--pagination-item-size-dense: calc(var(--pagination-item-size) * 0.8125);
|
|
523
|
+
--pagination-item-margin-dense: calc(var(--pagination-item-margin) * 0.75);
|
|
524
|
+
--table-vertical-margin: calc(var(--root-em) * 1.25);
|
|
525
|
+
--table-font-size: calc(var(--root-em) * 0.75);
|
|
526
|
+
--table-caption-font-size: calc(var(--root-em) * 1);
|
|
527
|
+
--table-caption-font-weight: regular;
|
|
528
|
+
--table-caption-vertical-margin: calc(var(--root-em) * 0.625);
|
|
529
|
+
--table-cell-height: calc(var(--root-em) * 3.125);
|
|
530
|
+
--table-cell-vertial-padding: calc(var(--root-em) * 0.3125);
|
|
531
|
+
--table-cell-horizontal-padding: calc(var(--root-em) * 1);
|
|
532
|
+
--table-header-color: var(--palette-primary);
|
|
533
|
+
--table-header-font-weight: 500;
|
|
515
534
|
}
|
|
516
535
|
|
|
517
536
|
:root,
|
|
@@ -712,6 +731,45 @@ h6,
|
|
|
712
731
|
box-shadow: var(--shadow-key-umbra-0), var(--shadow-key-penumbra-0), var(--shadow-key-ambient-0) !important;
|
|
713
732
|
}
|
|
714
733
|
|
|
734
|
+
table {
|
|
735
|
+
display: table;
|
|
736
|
+
max-width: 100%;
|
|
737
|
+
margin: var(--table-vertical-margin) 0;
|
|
738
|
+
font-size: var(--table-font-size);
|
|
739
|
+
border-collapse: collapse;
|
|
740
|
+
border: 0;
|
|
741
|
+
border-radius: 0;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
caption {
|
|
745
|
+
display: table-caption;
|
|
746
|
+
width: 100%;
|
|
747
|
+
padding: 0;
|
|
748
|
+
margin: 0 0 var(--table-caption-vertical-margin);
|
|
749
|
+
font-size: var(--table-caption-font-size);
|
|
750
|
+
font-weight: var(--table-caption-font-weight);
|
|
751
|
+
text-align: center;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
th,
|
|
755
|
+
td {
|
|
756
|
+
height: var(--table-cell-height);
|
|
757
|
+
padding: var(--table-cell-vertial-padding) var(--table-cell-horizontal-padding);
|
|
758
|
+
text-align: left;
|
|
759
|
+
vertical-align: middle;
|
|
760
|
+
border: 0;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
th {
|
|
764
|
+
font-weight: var(--table-header-font-weight);
|
|
765
|
+
color: var(--table-header-color);
|
|
766
|
+
white-space: nowrap;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
thead th {
|
|
770
|
+
text-align: center;
|
|
771
|
+
}
|
|
772
|
+
|
|
715
773
|
.v-control--sm {
|
|
716
774
|
--control-field-rem: var(--control-field-rem-sm);
|
|
717
775
|
font-size: var(--control-field-rem);
|
|
@@ -922,6 +980,108 @@ h6,
|
|
|
922
980
|
z-index: 1;
|
|
923
981
|
transform: translate(-50%, -50%);
|
|
924
982
|
}
|
|
983
|
+
.v-pagination {
|
|
984
|
+
--pagination-size: var(--pagination-item-size);
|
|
985
|
+
--pagination-margin: var(--pagination-item-margin);
|
|
986
|
+
--pagination-font-size: var(--pagination-item-font-size);
|
|
987
|
+
--pagination-radius: var(--pagination-item-radius);
|
|
988
|
+
display: flex;
|
|
989
|
+
align-items: center;
|
|
990
|
+
overflow: hidden;
|
|
991
|
+
font-weight: bold;
|
|
992
|
+
line-height: 1;
|
|
993
|
+
}
|
|
994
|
+
.v-pagination::before {
|
|
995
|
+
width: var(--pagination-size);
|
|
996
|
+
margin: var(--pagination-margin);
|
|
997
|
+
content: none;
|
|
998
|
+
}
|
|
999
|
+
.v-pagination--left {
|
|
1000
|
+
justify-content: flex-start;
|
|
1001
|
+
}
|
|
1002
|
+
.v-pagination--center {
|
|
1003
|
+
justify-content: center;
|
|
1004
|
+
}
|
|
1005
|
+
.v-pagination--right {
|
|
1006
|
+
justify-content: flex-end;
|
|
1007
|
+
}
|
|
1008
|
+
.v-pagination__item,
|
|
1009
|
+
.v-pagination a.v-pagination__item {
|
|
1010
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
1011
|
+
padding: 0;
|
|
1012
|
+
touch-action: manipulation;
|
|
1013
|
+
cursor: pointer;
|
|
1014
|
+
user-select: none;
|
|
1015
|
+
background-color: transparent;
|
|
1016
|
+
border: 0;
|
|
1017
|
+
outline: 0;
|
|
1018
|
+
appearance: none;
|
|
1019
|
+
display: flex;
|
|
1020
|
+
align-items: center;
|
|
1021
|
+
justify-content: center;
|
|
1022
|
+
min-width: var(--pagination-size);
|
|
1023
|
+
height: var(--pagination-size);
|
|
1024
|
+
margin: calc(var(--pagination-margin) * 0.5);
|
|
1025
|
+
font-size: var(--pagination-font-size);
|
|
1026
|
+
color: inherit;
|
|
1027
|
+
border-radius: var(--pagination-radius);
|
|
1028
|
+
transition: 0.1s;
|
|
1029
|
+
}
|
|
1030
|
+
.v-pagination__item::-moz-focus-inner,
|
|
1031
|
+
.v-pagination a.v-pagination__item::-moz-focus-inner {
|
|
1032
|
+
border: 0;
|
|
1033
|
+
}
|
|
1034
|
+
.v-pagination__item, .v-pagination__item:hover, .v-pagination__item:focus,
|
|
1035
|
+
.v-pagination a.v-pagination__item,
|
|
1036
|
+
.v-pagination a.v-pagination__item:hover,
|
|
1037
|
+
.v-pagination a.v-pagination__item:focus {
|
|
1038
|
+
text-decoration: none;
|
|
1039
|
+
}
|
|
1040
|
+
.v-pagination__item:hover, .v-pagination__item:focus,
|
|
1041
|
+
.v-pagination a.v-pagination__item:hover,
|
|
1042
|
+
.v-pagination a.v-pagination__item:focus {
|
|
1043
|
+
background: rgba(0, 0, 0, 0.1);
|
|
1044
|
+
}
|
|
1045
|
+
.v-pagination__item--active, .v-pagination__item--active:hover, .v-pagination__item--active:focus, .v-pagination__item--active:active,
|
|
1046
|
+
.v-pagination a.v-pagination__item--active,
|
|
1047
|
+
.v-pagination a.v-pagination__item--active:hover,
|
|
1048
|
+
.v-pagination a.v-pagination__item--active:focus,
|
|
1049
|
+
.v-pagination a.v-pagination__item--active:active {
|
|
1050
|
+
color: var(--text-color);
|
|
1051
|
+
pointer-events: none;
|
|
1052
|
+
background-color: var(--main-color);
|
|
1053
|
+
}
|
|
1054
|
+
.v-pagination__item--disabled,
|
|
1055
|
+
.v-pagination a.v-pagination__item--disabled {
|
|
1056
|
+
color: var(--palette-muted) !important;
|
|
1057
|
+
pointer-events: none !important;
|
|
1058
|
+
background: transparent !important;
|
|
1059
|
+
}
|
|
1060
|
+
.v-pagination__item--truncate,
|
|
1061
|
+
.v-pagination a.v-pagination__item--truncate {
|
|
1062
|
+
color: var(--palette-muted) !important;
|
|
1063
|
+
pointer-events: none !important;
|
|
1064
|
+
background: transparent !important;
|
|
1065
|
+
}
|
|
1066
|
+
.v-pagination__item .v-icon,
|
|
1067
|
+
.v-pagination a.v-pagination__item .v-icon {
|
|
1068
|
+
font-size: 125%;
|
|
1069
|
+
}
|
|
1070
|
+
.v-pagination--dense .v-pagination__item {
|
|
1071
|
+
--pagination-size: var(--pagination-item-size-dense);
|
|
1072
|
+
--pagination-margin: var(--pagination-item-margin-dense);
|
|
1073
|
+
--pagination-font-size: var(--pagination-item-font-size-dense);
|
|
1074
|
+
}
|
|
1075
|
+
.v-pagination--disabled .v-pagination__item {
|
|
1076
|
+
color: var(--palette-muted);
|
|
1077
|
+
pointer-events: none;
|
|
1078
|
+
}
|
|
1079
|
+
.v-pagination--disabled .v-pagination__item:hover, .v-pagination--disabled .v-pagination__item:focus {
|
|
1080
|
+
background: transparent;
|
|
1081
|
+
}
|
|
1082
|
+
.v-pagination--disabled .v-pagination__item--active {
|
|
1083
|
+
background: var(--palette-muted);
|
|
1084
|
+
}
|
|
925
1085
|
.v-list-tile {
|
|
926
1086
|
--tile-background: var(--main-color, transparent);
|
|
927
1087
|
--tile-active-background: var(--deep-color, transparent);
|
|
@@ -994,8 +1154,24 @@ h6,
|
|
|
994
1154
|
flex: 0 0 auto;
|
|
995
1155
|
margin-top: auto;
|
|
996
1156
|
}
|
|
1157
|
+
.v-hero {
|
|
1158
|
+
--hero-background-color: var(--main-color);
|
|
1159
|
+
--hero-text-color: var(--text-color);
|
|
1160
|
+
padding: 20px 30px;
|
|
1161
|
+
margin: 0;
|
|
1162
|
+
color: var(--hero-text-color);
|
|
1163
|
+
background-color: var(--hero-background-color);
|
|
1164
|
+
}
|
|
1165
|
+
.v-hero__title {
|
|
1166
|
+
margin: 0;
|
|
1167
|
+
font-size: 1.75rem;
|
|
1168
|
+
font-weight: 300;
|
|
1169
|
+
line-height: 1;
|
|
1170
|
+
color: inherit;
|
|
1171
|
+
}
|
|
997
1172
|
.v-navigation-item--opened {
|
|
998
1173
|
--tile-background: var(--tile-active-background);
|
|
1174
|
+
--tile-text-color: var(--tile-text-active-color);
|
|
999
1175
|
}
|
|
1000
1176
|
.v-navigation-item__expand {
|
|
1001
1177
|
transition: height 0.2s;
|
|
@@ -1502,6 +1678,150 @@ h6,
|
|
|
1502
1678
|
font-style: italic;
|
|
1503
1679
|
color: var(--control-disabled-color);
|
|
1504
1680
|
}
|
|
1681
|
+
.v-data-table {
|
|
1682
|
+
--controls-vertial-margin: 0.625em;
|
|
1683
|
+
}
|
|
1684
|
+
.v-card-content .v-data-table {
|
|
1685
|
+
margin-right: calc(var(--card-content-padding) * -1);
|
|
1686
|
+
margin-left: calc(var(--card-content-padding) * -1);
|
|
1687
|
+
}
|
|
1688
|
+
.v-data-table__controls {
|
|
1689
|
+
display: flex;
|
|
1690
|
+
flex-wrap: wrap;
|
|
1691
|
+
align-items: center;
|
|
1692
|
+
justify-content: flex-end;
|
|
1693
|
+
}
|
|
1694
|
+
.v-data-table__controls__info {
|
|
1695
|
+
display: flex;
|
|
1696
|
+
align-items: center;
|
|
1697
|
+
}
|
|
1698
|
+
.v-data-table__controls__info__length {
|
|
1699
|
+
margin-right: 20px;
|
|
1700
|
+
}
|
|
1701
|
+
.v-data-table__controls__select-limit {
|
|
1702
|
+
display: flex;
|
|
1703
|
+
align-items: center;
|
|
1704
|
+
}
|
|
1705
|
+
.v-data-table__controls__select-limit__prefix {
|
|
1706
|
+
margin-right: 0.5em;
|
|
1707
|
+
font-size: 0.75em;
|
|
1708
|
+
color: var(--palette-muted);
|
|
1709
|
+
white-space: nowrap;
|
|
1710
|
+
}
|
|
1711
|
+
.v-data-table__controls__select-limit .v-select {
|
|
1712
|
+
width: 5em;
|
|
1713
|
+
margin-left: 0.5em;
|
|
1714
|
+
}
|
|
1715
|
+
.v-data-table__controls__pagination {
|
|
1716
|
+
flex: 1 1 100%;
|
|
1717
|
+
margin-left: auto;
|
|
1718
|
+
}
|
|
1719
|
+
@media screen and (min-width: 320px) {
|
|
1720
|
+
.v-data-table__controls__pagination {
|
|
1721
|
+
flex: 0 0 50%;
|
|
1722
|
+
width: 50%;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
.v-data-table__header {
|
|
1726
|
+
margin-bottom: var(--controls-vertial-margin);
|
|
1727
|
+
}
|
|
1728
|
+
.v-data-table__footer {
|
|
1729
|
+
margin-top: var(--controls-vertial-margin);
|
|
1730
|
+
}
|
|
1731
|
+
.v-data-table__body {
|
|
1732
|
+
position: relative;
|
|
1733
|
+
}
|
|
1734
|
+
.v-data-table__body__inner {
|
|
1735
|
+
overflow-x: auto;
|
|
1736
|
+
}
|
|
1737
|
+
.v-data-table__table-wrapper {
|
|
1738
|
+
display: flex;
|
|
1739
|
+
}
|
|
1740
|
+
.v-data-table__table-wrapper::before, .v-data-table__table-wrapper::after {
|
|
1741
|
+
display: block;
|
|
1742
|
+
height: 1px;
|
|
1743
|
+
content: "";
|
|
1744
|
+
}
|
|
1745
|
+
.v-data-table__loading {
|
|
1746
|
+
position: absolute;
|
|
1747
|
+
top: 0;
|
|
1748
|
+
right: 0;
|
|
1749
|
+
bottom: 0;
|
|
1750
|
+
left: 0;
|
|
1751
|
+
z-index: 1;
|
|
1752
|
+
display: flex;
|
|
1753
|
+
align-items: center;
|
|
1754
|
+
justify-content: center;
|
|
1755
|
+
background: var(--palette-background);
|
|
1756
|
+
opacity: 0.5;
|
|
1757
|
+
}
|
|
1758
|
+
.v-data-table__table {
|
|
1759
|
+
width: 100%;
|
|
1760
|
+
margin: 0;
|
|
1761
|
+
background: var(--palette-background);
|
|
1762
|
+
border-radius: var(--control-field-radius);
|
|
1763
|
+
}
|
|
1764
|
+
.v-data-table__table__cell {
|
|
1765
|
+
position: relative;
|
|
1766
|
+
text-align: left;
|
|
1767
|
+
white-space: nowrap;
|
|
1768
|
+
vertical-align: middle;
|
|
1769
|
+
border-bottom: thin solid rgba(0, 0, 0, 0.12);
|
|
1770
|
+
transition: background 0.2s;
|
|
1771
|
+
}
|
|
1772
|
+
.v-data-table__table__cell:first-child {
|
|
1773
|
+
padding-left: calc(var(--table-cell-horizontal-padding) * 2);
|
|
1774
|
+
}
|
|
1775
|
+
.v-data-table__table__cell:last-child {
|
|
1776
|
+
padding-right: calc(var(--table-cell-horizontal-padding) * 2);
|
|
1777
|
+
}
|
|
1778
|
+
.v-data-table__table__cell--left {
|
|
1779
|
+
text-align: left;
|
|
1780
|
+
}
|
|
1781
|
+
.v-data-table__table__cell--center {
|
|
1782
|
+
text-align: center;
|
|
1783
|
+
}
|
|
1784
|
+
.v-data-table__table__cell--center .v-data-table__table__sort-icon--empty {
|
|
1785
|
+
display: flex;
|
|
1786
|
+
}
|
|
1787
|
+
.v-data-table__table__cell--right {
|
|
1788
|
+
text-align: right;
|
|
1789
|
+
}
|
|
1790
|
+
.v-data-table__table__cell[tabindex="0"] {
|
|
1791
|
+
cursor: pointer;
|
|
1792
|
+
}
|
|
1793
|
+
.v-data-table__table__cell__tile {
|
|
1794
|
+
display: flex;
|
|
1795
|
+
align-items: center;
|
|
1796
|
+
}
|
|
1797
|
+
.v-data-table__table__sort-icon {
|
|
1798
|
+
width: 25px;
|
|
1799
|
+
font-size: 1.25em;
|
|
1800
|
+
opacity: 0;
|
|
1801
|
+
transition: transform 0.2s, opacity 0.2s;
|
|
1802
|
+
}
|
|
1803
|
+
.v-data-table__table__sort-icon--empty {
|
|
1804
|
+
display: none;
|
|
1805
|
+
}
|
|
1806
|
+
.v-data-table__table__header .v-data-table__table__cell {
|
|
1807
|
+
user-select: none;
|
|
1808
|
+
background: rgba(255, 255, 255, 0.85);
|
|
1809
|
+
backdrop-filter: blur(3px);
|
|
1810
|
+
}
|
|
1811
|
+
.v-data-table__table__header .v-data-table__table__cell--active .v-data-table__table__sort-icon {
|
|
1812
|
+
opacity: 1;
|
|
1813
|
+
}
|
|
1814
|
+
.v-data-table__table__cell[tabindex="0"]:hover .v-data-table__table__sort-icon, .v-data-table__table__cell[tabindex="0"]:focus .v-data-table__table__sort-icon {
|
|
1815
|
+
opacity: 1;
|
|
1816
|
+
}
|
|
1817
|
+
.v-data-table__table__body tr:last-child .v-data-table__table__cell {
|
|
1818
|
+
border-bottom: none;
|
|
1819
|
+
}
|
|
1820
|
+
.v-data-table--fixed-header .v-data-table__table__header .v-data-table__table__cell {
|
|
1821
|
+
position: sticky;
|
|
1822
|
+
top: 0;
|
|
1823
|
+
z-index: 1;
|
|
1824
|
+
}
|
|
1505
1825
|
.v-toolbar {
|
|
1506
1826
|
--height: var(--toolbar-height);
|
|
1507
1827
|
display: flex;
|
|
@@ -1522,20 +1842,27 @@ h6,
|
|
|
1522
1842
|
--height: var(--toolbar-dense-height);
|
|
1523
1843
|
}
|
|
1524
1844
|
.v-toolbar-menu {
|
|
1845
|
+
height: 100%;
|
|
1846
|
+
margin: 0;
|
|
1847
|
+
box-shadow: none;
|
|
1848
|
+
}
|
|
1849
|
+
.v-toolbar-edge {
|
|
1525
1850
|
display: flex;
|
|
1851
|
+
flex: 0 0;
|
|
1526
1852
|
align-items: center;
|
|
1527
1853
|
align-self: stretch;
|
|
1528
1854
|
}
|
|
1529
|
-
.v-toolbar-
|
|
1855
|
+
.v-toolbar-edge:empty, .v-toolbar-edge--empty {
|
|
1530
1856
|
display: none;
|
|
1531
1857
|
}
|
|
1532
|
-
.v-toolbar-
|
|
1858
|
+
.v-toolbar-edge--start {
|
|
1533
1859
|
margin-right: calc(var(--root-em) * 0.75);
|
|
1534
1860
|
margin-left: calc(-1 * var(--root-em) * 0.75);
|
|
1535
1861
|
}
|
|
1536
|
-
.v-toolbar-
|
|
1862
|
+
.v-toolbar-edge--end {
|
|
1863
|
+
padding-left: calc(var(--root-em) * 0.75);
|
|
1537
1864
|
margin-right: calc(-1 * var(--root-em) * 0.75);
|
|
1538
|
-
margin-left:
|
|
1865
|
+
margin-left: auto;
|
|
1539
1866
|
}
|
|
1540
1867
|
.v-toolbar-title {
|
|
1541
1868
|
display: flex;
|