@lensui/lens-table 0.1.51 → 0.1.53
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/index.cjs +1 -1
- package/dist/index.css +32 -41
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1291,7 +1291,7 @@ function paintGrid(options) {
|
|
|
1291
1291
|
const visibleActions = getVisibleHeaderActions(column, metric.width, columnDraggable, titleWidth, headerActionSlotWidth);
|
|
1292
1292
|
const actionWidth = (Number(visibleActions.drag) + Number(visibleActions.filter) + Number(visibleActions.sort)) * headerActionSlotWidth;
|
|
1293
1293
|
const contentWidth = Math.max(0, metric.width - actionWidth);
|
|
1294
|
-
const padding =
|
|
1294
|
+
const padding = 4;
|
|
1295
1295
|
const clipWidth = contentWidth;
|
|
1296
1296
|
const centeredTextX = metric.width / 2;
|
|
1297
1297
|
const centerTitleWidth = Math.max(0, Math.min(centeredTextX - padding, contentWidth - padding - centeredTextX) * 2);
|
package/dist/index.css
CHANGED
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
position: absolute;
|
|
1684
1684
|
z-index: 2;
|
|
1685
1685
|
margin: 0;
|
|
1686
|
-
padding: 0
|
|
1686
|
+
padding: 0 4px;
|
|
1687
1687
|
border: 0;
|
|
1688
1688
|
border-radius: 0;
|
|
1689
1689
|
outline: 0;
|
|
@@ -1714,13 +1714,13 @@
|
|
|
1714
1714
|
box-sizing: border-box;
|
|
1715
1715
|
}
|
|
1716
1716
|
.rvg-choice-editor {
|
|
1717
|
-
line-height:
|
|
1717
|
+
line-height: normal;
|
|
1718
1718
|
}
|
|
1719
1719
|
.rvg-time-editor {
|
|
1720
1720
|
position: absolute;
|
|
1721
1721
|
z-index: 6;
|
|
1722
1722
|
display: flex;
|
|
1723
|
-
padding: 0
|
|
1723
|
+
padding: 0 24px 0 4px;
|
|
1724
1724
|
align-items: center;
|
|
1725
1725
|
gap: 3px;
|
|
1726
1726
|
background: var(--rvg-color-bg);
|
|
@@ -1751,16 +1751,16 @@
|
|
|
1751
1751
|
position: absolute;
|
|
1752
1752
|
z-index: 6;
|
|
1753
1753
|
display: flex;
|
|
1754
|
-
padding: 0
|
|
1754
|
+
padding: 0 4px;
|
|
1755
1755
|
align-items: center;
|
|
1756
|
-
gap:
|
|
1756
|
+
gap: 4px;
|
|
1757
1757
|
overflow: hidden;
|
|
1758
1758
|
background: var(--rvg-color-bg);
|
|
1759
1759
|
line-height: 1;
|
|
1760
1760
|
box-sizing: border-box;
|
|
1761
1761
|
}
|
|
1762
1762
|
.rvg-native-editor.has-clear {
|
|
1763
|
-
padding-right:
|
|
1763
|
+
padding-right: 4px;
|
|
1764
1764
|
}
|
|
1765
1765
|
.rvg-native-editor input {
|
|
1766
1766
|
min-width: 0;
|
|
@@ -2001,7 +2001,7 @@
|
|
|
2001
2001
|
display: flex;
|
|
2002
2002
|
min-width: 0;
|
|
2003
2003
|
height: 100%;
|
|
2004
|
-
padding: 0
|
|
2004
|
+
padding: 0 4px;
|
|
2005
2005
|
flex: 1;
|
|
2006
2006
|
align-items: center;
|
|
2007
2007
|
border: 0;
|
|
@@ -2018,15 +2018,14 @@
|
|
|
2018
2018
|
text-align: left;
|
|
2019
2019
|
}
|
|
2020
2020
|
.rvg-choice-editor [data-part=trigger] {
|
|
2021
|
-
padding: 0
|
|
2022
|
-
line-height:
|
|
2021
|
+
padding: 0 24px 0 4px;
|
|
2022
|
+
line-height: normal;
|
|
2023
2023
|
}
|
|
2024
2024
|
.rvg-date-value {
|
|
2025
|
-
padding: 0
|
|
2025
|
+
padding: 0 4px 2px 4px;
|
|
2026
2026
|
}
|
|
2027
2027
|
.rvg-choice-editor [data-part=value-text] {
|
|
2028
2028
|
min-width: 0;
|
|
2029
|
-
transform: translateY(-1px);
|
|
2030
2029
|
overflow: hidden;
|
|
2031
2030
|
font: inherit;
|
|
2032
2031
|
line-height: normal;
|
|
@@ -2035,7 +2034,7 @@
|
|
|
2035
2034
|
}
|
|
2036
2035
|
.rvg-date-editor [data-part=control] {
|
|
2037
2036
|
display: flex;
|
|
2038
|
-
padding-right:
|
|
2037
|
+
padding-right: 24px;
|
|
2039
2038
|
align-items: center;
|
|
2040
2039
|
}
|
|
2041
2040
|
.rvg-date-separator {
|
|
@@ -2051,47 +2050,40 @@
|
|
|
2051
2050
|
.rvg-date-editor [data-part=trigger] {
|
|
2052
2051
|
position: absolute;
|
|
2053
2052
|
top: 50%;
|
|
2054
|
-
right:
|
|
2053
|
+
right: 4px;
|
|
2055
2054
|
display: grid;
|
|
2056
|
-
width:
|
|
2057
|
-
height:
|
|
2055
|
+
width: 16px;
|
|
2056
|
+
height: 16px;
|
|
2058
2057
|
padding: 0;
|
|
2059
2058
|
place-items: center;
|
|
2060
|
-
border:
|
|
2061
|
-
border-radius:
|
|
2059
|
+
border: 0;
|
|
2060
|
+
border-radius: 3px;
|
|
2062
2061
|
background: transparent;
|
|
2063
|
-
color:
|
|
2062
|
+
color: #70757a;
|
|
2064
2063
|
cursor: pointer;
|
|
2065
2064
|
transform: translateY(-50%);
|
|
2066
|
-
transition:
|
|
2067
|
-
background-color 120ms ease,
|
|
2068
|
-
border-color 120ms ease,
|
|
2069
|
-
color 120ms ease;
|
|
2065
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
2070
2066
|
}
|
|
2071
2067
|
.rvg-clear-trigger {
|
|
2072
2068
|
position: absolute;
|
|
2073
2069
|
top: 50%;
|
|
2074
|
-
right:
|
|
2070
|
+
right: 4px;
|
|
2075
2071
|
display: grid;
|
|
2076
|
-
width:
|
|
2077
|
-
height:
|
|
2072
|
+
width: 16px;
|
|
2073
|
+
height: 16px;
|
|
2078
2074
|
padding: 0;
|
|
2079
2075
|
place-items: center;
|
|
2080
|
-
border:
|
|
2081
|
-
border-radius:
|
|
2076
|
+
border: 0;
|
|
2077
|
+
border-radius: 3px;
|
|
2082
2078
|
background: transparent;
|
|
2083
|
-
color:
|
|
2079
|
+
color: #9aa0a6;
|
|
2084
2080
|
cursor: pointer;
|
|
2085
2081
|
transform: translateY(-50%);
|
|
2086
|
-
transition:
|
|
2087
|
-
background-color 120ms ease,
|
|
2088
|
-
border-color 120ms ease,
|
|
2089
|
-
color 120ms ease;
|
|
2082
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
2090
2083
|
}
|
|
2091
2084
|
.rvg-clear-trigger:hover {
|
|
2092
|
-
border-color: var(--rvg-color-border);
|
|
2093
2085
|
background: var(--rvg-color-hover-muted);
|
|
2094
|
-
color:
|
|
2086
|
+
color: #3c4043;
|
|
2095
2087
|
}
|
|
2096
2088
|
.rvg-clear-trigger:focus-visible {
|
|
2097
2089
|
outline: 2px solid color-mix(in srgb, var(--rvg-color-primary) 45%, transparent);
|
|
@@ -2099,11 +2091,11 @@
|
|
|
2099
2091
|
}
|
|
2100
2092
|
.rvg-clear-icon {
|
|
2101
2093
|
display: block;
|
|
2102
|
-
width:
|
|
2103
|
-
height:
|
|
2094
|
+
width: 10px;
|
|
2095
|
+
height: 10px;
|
|
2104
2096
|
fill: none;
|
|
2105
2097
|
stroke: currentColor;
|
|
2106
|
-
stroke-width: 1.
|
|
2098
|
+
stroke-width: 1.7;
|
|
2107
2099
|
stroke-linecap: round;
|
|
2108
2100
|
}
|
|
2109
2101
|
.rvg-date-editor [data-part=trigger]:hover {
|
|
@@ -2122,13 +2114,12 @@
|
|
|
2122
2114
|
}
|
|
2123
2115
|
.rvg-choice-editor [data-part=trigger]:hover [data-part=indicator],
|
|
2124
2116
|
.rvg-date-editor [data-part=trigger]:hover {
|
|
2125
|
-
border-color: var(--rvg-color-border);
|
|
2126
2117
|
background: var(--rvg-color-hover-muted);
|
|
2127
|
-
color:
|
|
2118
|
+
color: #3c4043;
|
|
2128
2119
|
}
|
|
2129
2120
|
.rvg-choice-chevron {
|
|
2130
|
-
width:
|
|
2131
|
-
height:
|
|
2121
|
+
width: 12px;
|
|
2122
|
+
height: 12px;
|
|
2132
2123
|
transition: transform 160ms ease;
|
|
2133
2124
|
}
|
|
2134
2125
|
.rvg-choice-chevron path,
|
package/dist/index.js
CHANGED
|
@@ -1261,7 +1261,7 @@ function paintGrid(options) {
|
|
|
1261
1261
|
const visibleActions = getVisibleHeaderActions(column, metric.width, columnDraggable, titleWidth, headerActionSlotWidth);
|
|
1262
1262
|
const actionWidth = (Number(visibleActions.drag) + Number(visibleActions.filter) + Number(visibleActions.sort)) * headerActionSlotWidth;
|
|
1263
1263
|
const contentWidth = Math.max(0, metric.width - actionWidth);
|
|
1264
|
-
const padding =
|
|
1264
|
+
const padding = 4;
|
|
1265
1265
|
const clipWidth = contentWidth;
|
|
1266
1266
|
const centeredTextX = metric.width / 2;
|
|
1267
1267
|
const centerTitleWidth = Math.max(0, Math.min(centeredTextX - padding, contentWidth - padding - centeredTextX) * 2);
|