@vuu-ui/vuu-table 0.8.7-debug → 0.8.8-debug
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/cjs/index.js +3851 -1168
- package/cjs/index.js.map +4 -4
- package/esm/index.js +3791 -1087
- package/esm/index.js.map +4 -4
- package/index.css +228 -5
- package/index.css.map +3 -3
- package/package.json +7 -7
- package/types/index.d.ts +1 -0
- package/types/table/dataTableTypes.d.ts +3 -2
- package/types/table-next/HeaderCell.d.ts +1 -1
- package/types/table-next/column-resizing/ColumnResizer.d.ts +8 -0
- package/types/table-next/column-resizing/index.d.ts +2 -0
- package/types/table-next/column-resizing/useTableColumnResize.d.ts +18 -0
- package/types/table-next/context-menu/buildContextMenuDescriptors.d.ts +4 -0
- package/types/table-next/context-menu/index.d.ts +2 -0
- package/types/table-next/context-menu/useTableContextMenu.d.ts +16 -0
- package/types/table-next/index.d.ts +1 -0
- package/types/table-next/table-config.d.ts +25 -0
- package/types/table-next/useTableModel.d.ts +15 -6
- package/types/table-next/useTableNext.d.ts +4 -2
package/index.css
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
z-index: 2000;
|
|
31
31
|
}
|
|
32
32
|
.vuuDraggable-spacer {
|
|
33
|
-
display: var(--
|
|
34
|
-
height: var(--
|
|
35
|
-
transition: var(--
|
|
36
|
-
width: var(--
|
|
33
|
+
display: var(--vuuDraggable-display, inline-block);
|
|
34
|
+
height: var(--vuuDraggable-spacer-height, var(--tabstrip-height));
|
|
35
|
+
transition: var(--vuuDraggable-transitionProp, width) 0.3s ease;
|
|
36
|
+
width: var(--vuuDraggable-spacer-width, 0);
|
|
37
37
|
}
|
|
38
38
|
.vuuDraggable-dropIndicatorPosition {
|
|
39
39
|
display: var(--saltDraggable-display, inline-block);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
width: 100%;
|
|
42
42
|
}
|
|
43
43
|
.vuuDraggable-dropIndicatorContainer {
|
|
44
|
-
transition: var(--
|
|
44
|
+
transition: var(--vuuDraggable-transitionProp, top) 0.2s ease;
|
|
45
45
|
}
|
|
46
46
|
.vuuDraggable-dropIndicator {
|
|
47
47
|
background-color: var(--salt-palette-accent-background);
|
|
@@ -120,6 +120,128 @@
|
|
|
120
120
|
padding: 0;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/* ../vuu-ui-controls/src/list/Highlighter.css */
|
|
124
|
+
.saltHighlighter-highlight {
|
|
125
|
+
font-weight: var(--salt-text-fontWeight-strong);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* ../vuu-ui-controls/src/list/CheckboxIcon.css */
|
|
129
|
+
.vuuCheckboxIcon {
|
|
130
|
+
--vuu-icon-size: 14px;
|
|
131
|
+
--vuu-icon-left: -1px;
|
|
132
|
+
--vuu-icon-top: -1px;
|
|
133
|
+
--vuu-icon-svg: var(--vuu-svg-tick);
|
|
134
|
+
border-style: solid;
|
|
135
|
+
border-color: var(--vuuCheckboxIcon-borderColor, var(--salt-selectable-borderColor));
|
|
136
|
+
border-radius: var(--vuuCheckboxIcon-borderRadius, 3px);
|
|
137
|
+
border-width: 1px;
|
|
138
|
+
display: inline-block;
|
|
139
|
+
height: var(--vuuCheckboxIcon-size, 14px);
|
|
140
|
+
position: relative;
|
|
141
|
+
width: var(--vuuCheckboxIcon-size, 14px);
|
|
142
|
+
}
|
|
143
|
+
.vuuCheckboxIcon-checked {
|
|
144
|
+
background-color: var(--vuuCheckboxIcon-background-checked, var(--salt-selectable-background-selected));
|
|
145
|
+
border-color: var(--vuuCheckboxIcon-borderColor-checked, var(--salt-selectable-borderColor-selected));
|
|
146
|
+
}
|
|
147
|
+
.vuuCheckboxIcon-checked:after {
|
|
148
|
+
content: "";
|
|
149
|
+
background-color: white;
|
|
150
|
+
left: var(--vuu-icon-left, auto);
|
|
151
|
+
height: var(--vuu-icon-height, var(--vuu-icon-size, 12px));
|
|
152
|
+
-webkit-mask: var(--vuu-icon-svg) center center/var(--vuu-icon-size) var(--vuu-icon-size);
|
|
153
|
+
mask: var(--vuu-icon-svg) center center/var(--vuu-icon-size) var(--vuu-icon-size);
|
|
154
|
+
mask-repeat: no-repeat;
|
|
155
|
+
-webkit-mask-repeat: no-repeat;
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: var(--vuu-icon-top, auto);
|
|
158
|
+
width: var(--vuu-icon-width, var(--vuu-icon-size, 12px));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ../vuu-ui-controls/src/list/ListItem.css */
|
|
162
|
+
.vuuListItem {
|
|
163
|
+
--list-item-text-color: var(--salt-text-primary-foreground);
|
|
164
|
+
--list-item-background: var(--vuuList-item-background, var(--salt-selectable-background));
|
|
165
|
+
--list-item-text-color-active: var(--salt-text-primary-foreground);
|
|
166
|
+
--list-item-background-active: var(--salt-selectable-background-selected);
|
|
167
|
+
--list-item-alignItems: center;
|
|
168
|
+
}
|
|
169
|
+
.vuuListItem.saltHighlighted {
|
|
170
|
+
--saltCheckbox-icon-stroke: var(--salt-selectable-borderColor-hover);
|
|
171
|
+
--list-item-background: var(--salt-selectable-background-hover);
|
|
172
|
+
}
|
|
173
|
+
.vuuListItemHeader {
|
|
174
|
+
font-weight: var(--salt-text-fontWeight-strong);
|
|
175
|
+
}
|
|
176
|
+
.vuuListItemHeader[data-sticky] {
|
|
177
|
+
position: sticky;
|
|
178
|
+
top: 0;
|
|
179
|
+
z-index: 1;
|
|
180
|
+
}
|
|
181
|
+
.vuuListItem {
|
|
182
|
+
color: var(--list-item-text-color);
|
|
183
|
+
cursor: var(--vuuList-item-cursor, pointer);
|
|
184
|
+
background: var(--vuuList-item-background, var(--list-item-background));
|
|
185
|
+
font-size: var(--salt-text-fontSize);
|
|
186
|
+
text-align: var(--salt-text-textAlign);
|
|
187
|
+
line-height: var(--salt-text-lineHeight);
|
|
188
|
+
height: var(--vuuList-item-height, var(--list-item-height, auto));
|
|
189
|
+
margin-bottom: var(--list-item-gap);
|
|
190
|
+
padding: 0 var(--salt-size-unit);
|
|
191
|
+
left: 0;
|
|
192
|
+
right: 0;
|
|
193
|
+
display: flex;
|
|
194
|
+
position: relative;
|
|
195
|
+
align-items: var(--list-item-alignItems);
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
}
|
|
198
|
+
.vuuListItem:last-child {
|
|
199
|
+
margin-bottom: 0px;
|
|
200
|
+
}
|
|
201
|
+
.vuuListItem-checkbox {
|
|
202
|
+
--list-item-background-active: var(--salt-selectable-background);
|
|
203
|
+
--list-item-text-color-active: var(--salt-text-primary-foreground);
|
|
204
|
+
--list-item-text-padding: 0 0 0 var(--salt-size-unit);
|
|
205
|
+
}
|
|
206
|
+
.vuuListItem[aria-selected=true]:not(.vuuListItem-checkbox) {
|
|
207
|
+
--list-item-background: var(--list-item-background-active);
|
|
208
|
+
color: var(--list-item-text-color-active);
|
|
209
|
+
}
|
|
210
|
+
.vuuListItem.saltDisabled {
|
|
211
|
+
--list-item-text-color: var(--salt-text-primary-foreground-disabled);
|
|
212
|
+
cursor: var(--salt-selectable-cursor-disabled);
|
|
213
|
+
}
|
|
214
|
+
.vuuListItem.vuuFocusVisible {
|
|
215
|
+
outline-style: var(--salt-focused-outlineStyle);
|
|
216
|
+
outline-width: var(--salt-focused-outlineWidth);
|
|
217
|
+
outline-offset: -2px;
|
|
218
|
+
outline-color: var(--salt-focused-outlineColor);
|
|
219
|
+
}
|
|
220
|
+
.vuuListItem.vuuFocusVisible:after {
|
|
221
|
+
content: none;
|
|
222
|
+
}
|
|
223
|
+
.vuuListItem[aria-selected=true]:not(.vuuListItem-checkbox).vuuFocusVisible {
|
|
224
|
+
outline-color: var(--list-item-selected-focus-outlineColor);
|
|
225
|
+
}
|
|
226
|
+
.vuuListItem-textWrapper {
|
|
227
|
+
flex: 1;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
padding: var(--list-item-text-padding, 0px);
|
|
230
|
+
white-space: nowrap;
|
|
231
|
+
text-overflow: ellipsis;
|
|
232
|
+
}
|
|
233
|
+
.vuuListItem-proxy {
|
|
234
|
+
position: absolute !important;
|
|
235
|
+
visibility: hidden;
|
|
236
|
+
}
|
|
237
|
+
.vuuDraggable-list-item {
|
|
238
|
+
--vuuList-item-height: 24px;
|
|
239
|
+
background-color: white;
|
|
240
|
+
}
|
|
241
|
+
.vuuListItem.vuuDraggable-dragAway {
|
|
242
|
+
display: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
123
245
|
/* ../vuu-layout/src/dock-layout/Drawer.css */
|
|
124
246
|
.vuuDrawer {
|
|
125
247
|
--drawer-leading-edge-border: solid 1px var(--salt-container-primary-borderColor, none);
|
|
@@ -959,6 +1081,84 @@ path.drop-target.centre {
|
|
|
959
1081
|
color: white;
|
|
960
1082
|
}
|
|
961
1083
|
|
|
1084
|
+
/* ../vuu-ui-controls/src/list/List.css */
|
|
1085
|
+
.vuuList {
|
|
1086
|
+
--list-background: var(--salt-container-primary-background);
|
|
1087
|
+
--list-borderStyle: var(--vuuList-borderStyle,--salt-container-borderStyle);
|
|
1088
|
+
--list-borderWidth: var(--salt-size-border);
|
|
1089
|
+
--list-height: auto;
|
|
1090
|
+
--list-item-height: var(--salt-size-stackable);
|
|
1091
|
+
--list-item-gap: 0px;
|
|
1092
|
+
--list-maxHeight: 100%;
|
|
1093
|
+
--vuuDraggable-display: block;
|
|
1094
|
+
--vuuDraggable-spacer-height: 0;
|
|
1095
|
+
--vuuDraggable-spacer-width: 100%;
|
|
1096
|
+
--vuuDraggable-transitionProp: height;
|
|
1097
|
+
background: var(--list-background);
|
|
1098
|
+
border-color: var(--salt-container-primary-borderColor);
|
|
1099
|
+
border-style: var(--list-borderStyle);
|
|
1100
|
+
border-width: var(--list-borderWidth);
|
|
1101
|
+
height: var(--saltList-height, var(--list-height));
|
|
1102
|
+
max-height: var(--list-maxHeight);
|
|
1103
|
+
outline: none;
|
|
1104
|
+
overflow-y: auto;
|
|
1105
|
+
position: relative;
|
|
1106
|
+
user-select: none;
|
|
1107
|
+
width: var(--saltList-width, auto);
|
|
1108
|
+
}
|
|
1109
|
+
.vuuList-borderless {
|
|
1110
|
+
--list-borderStyle: none;
|
|
1111
|
+
}
|
|
1112
|
+
.vuuList-viewport {
|
|
1113
|
+
--list-item-height: 30px;
|
|
1114
|
+
max-height: calc(var(--list-maxHeight) - 2 * var(--list-borderWidth));
|
|
1115
|
+
overflow: auto;
|
|
1116
|
+
}
|
|
1117
|
+
.vuuListItemHeader {
|
|
1118
|
+
--saltList-item-background: var(--list-item-header-background);
|
|
1119
|
+
color: var(--list-item-header-color);
|
|
1120
|
+
}
|
|
1121
|
+
.vuuListItemHeader[data-sticky=true] {
|
|
1122
|
+
--saltList-item-background: var(--list-background);
|
|
1123
|
+
position: sticky;
|
|
1124
|
+
top: 0;
|
|
1125
|
+
z-index: 1;
|
|
1126
|
+
}
|
|
1127
|
+
.vuuList-collapsible .vuuListItemHeader:after {
|
|
1128
|
+
border-width: var(--checkbox-borderWidth);
|
|
1129
|
+
border-color: var(--checkbox-borderColor);
|
|
1130
|
+
content: var(--list-item-header-twisty-content);
|
|
1131
|
+
-webkit-mask: var(--list-svg-chevron-down) center center/12px 12px no-repeat;
|
|
1132
|
+
mask: var(--list-svg-chevron-down) center center/12px 12px no-repeat;
|
|
1133
|
+
background: var(--list-item-header-twisty-color);
|
|
1134
|
+
height: 12px;
|
|
1135
|
+
left: var(--list-item-header-twisty-left);
|
|
1136
|
+
right: var(--list-item-header-twisty-right);
|
|
1137
|
+
margin-top: -8px;
|
|
1138
|
+
position: absolute;
|
|
1139
|
+
top: var(--list-item-header-twisty-top);
|
|
1140
|
+
transition: transform 0.3s;
|
|
1141
|
+
width: 12px;
|
|
1142
|
+
}
|
|
1143
|
+
.vuuListItemHeader[aria-expanded=false]:after {
|
|
1144
|
+
transform: rotate(-90deg);
|
|
1145
|
+
}
|
|
1146
|
+
.vuuList-scrollingContentContainer {
|
|
1147
|
+
box-sizing: inherit;
|
|
1148
|
+
position: relative;
|
|
1149
|
+
}
|
|
1150
|
+
.vuuList-virtualized .vuuListItem {
|
|
1151
|
+
line-height: 30px;
|
|
1152
|
+
position: absolute;
|
|
1153
|
+
top: 0;
|
|
1154
|
+
left: 0;
|
|
1155
|
+
right: 0;
|
|
1156
|
+
will-change: transform;
|
|
1157
|
+
}
|
|
1158
|
+
.vuuList.saltFocusVisible:after {
|
|
1159
|
+
inset: 2px;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
962
1162
|
/* ../vuu-ui-controls/src/tabstrip/Tabstrip.css */
|
|
963
1163
|
.vuuTabstrip {
|
|
964
1164
|
--vuuOverflowContainer-background: transparent;
|
|
@@ -1047,6 +1247,7 @@ path.drop-target.centre {
|
|
|
1047
1247
|
}
|
|
1048
1248
|
.vuuDraggable-tabstrip-horizontal {
|
|
1049
1249
|
--tab-thumb-height: 2px;
|
|
1250
|
+
--tab-thumb-left: 0px;
|
|
1050
1251
|
--tabstrip-height: 28px;
|
|
1051
1252
|
line-height: var(--tabstrip-height);
|
|
1052
1253
|
}
|
|
@@ -1893,6 +2094,28 @@ path.drop-target.centre {
|
|
|
1893
2094
|
--vuu-icon-size: 14px;
|
|
1894
2095
|
}
|
|
1895
2096
|
|
|
2097
|
+
/* src/table-next/column-resizing/ColumnResizer.css */
|
|
2098
|
+
.vuuColumnResizer {
|
|
2099
|
+
background-color: var(--columnResizer-color);
|
|
2100
|
+
cursor: col-resize;
|
|
2101
|
+
height: var(--header-height);
|
|
2102
|
+
position: relative;
|
|
2103
|
+
width: 4px;
|
|
2104
|
+
}
|
|
2105
|
+
.vuuColumnResizer:hover {
|
|
2106
|
+
--columnResizer-color: var(--salt-color-blue-500);
|
|
2107
|
+
}
|
|
2108
|
+
.vuuColumnResizer:after {
|
|
2109
|
+
content: "";
|
|
2110
|
+
position: absolute;
|
|
2111
|
+
width: var(--columnResizer-width, 1px);
|
|
2112
|
+
top: 0;
|
|
2113
|
+
bottom: 0;
|
|
2114
|
+
right: -1px;
|
|
2115
|
+
background-color: var(--columnResizer-color, var(--salt-separable-tertiary-borderColor));
|
|
2116
|
+
height: var(--columnResizer-height, calc(100% + 1px));
|
|
2117
|
+
}
|
|
2118
|
+
|
|
1896
2119
|
/* src/table-next/HeaderCell.css */
|
|
1897
2120
|
.vuuTableNext-col-header {
|
|
1898
2121
|
border-bottom: 1px solid #ccc;
|