@onereach/ui-components-vue2 26.4.1-beta.5886.0 → 26.4.1-beta.5888.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.
|
@@ -204,19 +204,19 @@ const DataGridTableContentCell = [
|
|
|
204
204
|
// Spacing
|
|
205
205
|
'px-sm+', 'py-xs', 'gap-xs',
|
|
206
206
|
// Theme
|
|
207
|
-
'theme-border-disabled border-b-1 border-
|
|
208
|
-
// Border (conditional override for last row/column)
|
|
209
|
-
'group-last:border-b-0', 'last:border-e-0', 'theme-outline-transparent outline-2 -outline-offset-1', 'dark:theme-outline-transparent-dark',
|
|
207
|
+
'theme-border-disabled border-b-1 border-solid', 'dark:theme-border-disabled-dark', 'theme-outline-transparent outline-2 -outline-offset-1', 'dark:theme-outline-transparent-dark',
|
|
210
208
|
// Theme (focus)
|
|
211
209
|
'focus-within:theme-border-primary', 'dark:focus-within:theme-border-primary-dark', 'focus-within:theme-outline-primary', 'dark:focus-within:theme-outline-primary-dark',
|
|
212
210
|
// Theme (Stacking)
|
|
213
211
|
'relative',
|
|
214
212
|
// Theme (.sticky-start)
|
|
215
|
-
'[&.sticky-start]:theme-background-default
|
|
213
|
+
'[&.sticky-start]:theme-background-default', 'dark:[&.sticky-start]:theme-background-default-dark', 'hover:[&.sticky-start]:theme-background-surface-1 dark:hover:[&.sticky-start]:theme-background-surface-1-dark', 'selected:[&.sticky-start]:theme-background-surface-2 dark:selected:[&.sticky-start]:theme-background-surface-2-dark', 'hover:selected:[&.sticky-start]:theme-background-surface-3 dark:hover:selected:[&.sticky-start]:theme-background-surface-3-dark',
|
|
216
214
|
// Theme (.sticky-end)
|
|
217
|
-
'[&.sticky-end]:theme-background-default
|
|
215
|
+
'[&.sticky-end]:theme-background-default', 'dark:[&.sticky-end]:theme-background-default-dark', 'hover:[&.sticky-end]:theme-background-surface-1 dark:hover:[&.sticky-end]:theme-background-surface-1-dark', 'selected:[&.sticky-end]:theme-background-surface-2 dark:selected:[&.sticky-end]:theme-background-surface-2-dark', 'hover:selected:[&.sticky-end]:theme-background-surface-3 dark:hover:selected:[&.sticky-end]:theme-background-surface-3-dark',
|
|
218
216
|
// Theme (.resizable)
|
|
219
|
-
'
|
|
217
|
+
'relative',
|
|
218
|
+
// Border (conditional override for last row/column)
|
|
219
|
+
'group-last:border-b-0', 'last:border-r-0'];
|
|
220
220
|
const DataGridTableContentCellContent = [
|
|
221
221
|
// interactivity
|
|
222
222
|
'interactivity-select',
|
|
@@ -273,29 +273,33 @@ var script$e = defineComponent({
|
|
|
273
273
|
// Refs & Styles
|
|
274
274
|
const root = ref();
|
|
275
275
|
const rootStyles = computed(() => {
|
|
276
|
-
var _a, _b, _c, _d;
|
|
277
|
-
return ['or-data-grid-table-content-cell-v3', ...DataGridTableContentCell, ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.stickiness) ? ['overflow-hidden', `sticky-${props.column.stickiness}`] : []), ...(!!((_b = props.features) === null || _b === void 0 ? void 0 : _b.resizing) && !!((_c = props.column) === null || _c === void 0 ? void 0 : _c.name) && ((_d = props.column) === null || _d === void 0 ? void 0 : _d.resizing) !== false ? ['resizable'] : [])];
|
|
276
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
277
|
+
return ['or-data-grid-table-content-cell-v3', ...DataGridTableContentCell, ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.stickiness) ? ['overflow-hidden', `sticky-${props.column.stickiness}`] : []), ...(!!((_b = props.features) === null || _b === void 0 ? void 0 : _b.resizing) && !!((_c = props.column) === null || _c === void 0 ? void 0 : _c.name) && ((_d = props.column) === null || _d === void 0 ? void 0 : _d.resizing) !== false ? ['resizable'] : []), ...(((_e = props.column) === null || _e === void 0 ? void 0 : _e.stickiness) === 'start' ? ['border-r-1'] : []), ...(((_f = props.column) === null || _f === void 0 ? void 0 : _f.stickiness) === 'end' ? ['border-l-1'] : []), ...(!!((_g = props.features) === null || _g === void 0 ? void 0 : _g.resizing) && !!((_h = props.column) === null || _h === void 0 ? void 0 : _h.name) && ((_j = props.column) === null || _j === void 0 ? void 0 : _j.resizing) !== false ? ['border-r-1'] : [])];
|
|
278
278
|
});
|
|
279
279
|
const rootInlineStyles = computed(() => {
|
|
280
|
+
var _a;
|
|
281
|
+
const styles = {
|
|
282
|
+
justifyContent: ((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) || (props.column ? undefined : 'center')
|
|
283
|
+
};
|
|
280
284
|
if (props.column) {
|
|
281
285
|
switch (props.column.stickiness) {
|
|
282
286
|
case 'start':
|
|
283
|
-
|
|
287
|
+
Object.assign(styles, {
|
|
284
288
|
position: 'sticky',
|
|
285
289
|
insetInlineStart: `${props.stickyOffset}px`,
|
|
286
290
|
zIndex: '30'
|
|
287
|
-
};
|
|
291
|
+
});
|
|
292
|
+
break;
|
|
288
293
|
case 'end':
|
|
289
|
-
|
|
294
|
+
Object.assign(styles, {
|
|
290
295
|
position: 'sticky',
|
|
291
296
|
insetInlineEnd: `${props.stickyOffset}px`,
|
|
292
297
|
zIndex: '30'
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
return {};
|
|
298
|
+
});
|
|
299
|
+
break;
|
|
296
300
|
}
|
|
297
301
|
}
|
|
298
|
-
return
|
|
302
|
+
return styles;
|
|
299
303
|
});
|
|
300
304
|
const contentStyles = computed(() => {
|
|
301
305
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -831,17 +835,17 @@ const DataGridTableHeaderCell = [
|
|
|
831
835
|
// Spacing
|
|
832
836
|
'px-sm+', 'py-xs', 'gap-xs',
|
|
833
837
|
// Theme
|
|
834
|
-
'theme-border-disabled border-b-1 border-
|
|
835
|
-
// Border (conditional override for last column)
|
|
836
|
-
'last:border-e-0', 'theme-outline-transparent outline-2 -outline-offset-1', 'dark:theme-outline-transparent-dark',
|
|
838
|
+
'theme-border-disabled border-b-1 border-solid', 'dark:theme-border-disabled-dark', 'theme-outline-transparent outline-2 -outline-offset-1', 'dark:theme-outline-transparent-dark',
|
|
837
839
|
// Theme (Stacking)
|
|
838
840
|
'relative hover:z-[2]',
|
|
839
841
|
// Theme (.sticky-start)
|
|
840
|
-
'[&.sticky-start]:theme-background-surface-variant-1
|
|
842
|
+
'[&.sticky-start]:theme-background-surface-variant-1', 'dark:[&.sticky-start]:theme-background-surface-variant-1-dark',
|
|
841
843
|
// Theme (.sticky-end)
|
|
842
|
-
'[&.sticky-end]:theme-background-surface-variant-1
|
|
844
|
+
'[&.sticky-end]:theme-background-surface-variant-1', 'dark:[&.sticky-end]:theme-background-surface-variant-1-dark',
|
|
843
845
|
// Theme (.resizable)
|
|
844
|
-
'
|
|
846
|
+
'relative',
|
|
847
|
+
// Border (conditional override for last column)
|
|
848
|
+
'last:border-r-0'];
|
|
845
849
|
const DataGridTableHeaderCellResizeHandle = [
|
|
846
850
|
// Position
|
|
847
851
|
'absolute top-0 bottom-0 end-0 z-50',
|
|
@@ -875,6 +879,10 @@ var script$8 = defineComponent({
|
|
|
875
879
|
stickyOffset: {
|
|
876
880
|
type: Number,
|
|
877
881
|
default: 0
|
|
882
|
+
},
|
|
883
|
+
override: {
|
|
884
|
+
type: Boolean,
|
|
885
|
+
default: false
|
|
878
886
|
}
|
|
879
887
|
},
|
|
880
888
|
emits: ['update:modelValue', 'update:scrollOffset', 'remove:scrollOffset', 'update:column-width'],
|
|
@@ -892,8 +900,8 @@ var script$8 = defineComponent({
|
|
|
892
900
|
return !!((_a = props.features) === null || _a === void 0 ? void 0 : _a.resizing) && !!((_b = props.column) === null || _b === void 0 ? void 0 : _b.name) && ((_c = props.column) === null || _c === void 0 ? void 0 : _c.resizing) !== false;
|
|
893
901
|
});
|
|
894
902
|
const rootStyles = computed(() => {
|
|
895
|
-
var _a;
|
|
896
|
-
return ['or-data-grid-table-header-cell-v3', 'relative', ...DataGridTableHeaderCell, ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.stickiness) ? ['overflow-hidden', `sticky-${props.column.stickiness}`] : []), ...(isResizable.value ? ['resizable'] : []), ...(isSortable.value ? ['interactivity-click'] : [])];
|
|
903
|
+
var _a, _b, _c;
|
|
904
|
+
return ['or-data-grid-table-header-cell-v3', 'relative', ...DataGridTableHeaderCell, ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.stickiness) ? ['overflow-hidden', `sticky-${props.column.stickiness}`] : []), ...(isResizable.value ? ['resizable'] : []), ...(isSortable.value ? ['interactivity-click'] : []), ...(((_b = props.column) === null || _b === void 0 ? void 0 : _b.stickiness) === 'start' ? ['border-r-1'] : []), ...(((_c = props.column) === null || _c === void 0 ? void 0 : _c.stickiness) === 'end' ? ['border-l-1'] : []), ...(isResizable.value ? ['border-r-1'] : [])];
|
|
897
905
|
});
|
|
898
906
|
const resizeHandleStyles = computed(() => ['or-data-grid-table-header-cell-resize-handle-v3', ...DataGridTableHeaderCellResizeHandle]);
|
|
899
907
|
const wrapInlineStyle = computed(() => {
|
|
@@ -905,27 +913,29 @@ var script$8 = defineComponent({
|
|
|
905
913
|
};
|
|
906
914
|
});
|
|
907
915
|
const rootInlineStyles = computed(() => {
|
|
916
|
+
var _a;
|
|
917
|
+
const styles = {
|
|
918
|
+
justifyContent: ((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) || (props.column ? undefined : 'center')
|
|
919
|
+
};
|
|
908
920
|
if (props.column) {
|
|
909
921
|
switch (props.column.stickiness) {
|
|
910
922
|
case 'start':
|
|
911
|
-
|
|
923
|
+
Object.assign(styles, {
|
|
912
924
|
position: 'sticky',
|
|
913
925
|
insetInlineStart: `${props.stickyOffset}px`,
|
|
914
926
|
zIndex: '120'
|
|
915
|
-
};
|
|
927
|
+
});
|
|
928
|
+
break;
|
|
916
929
|
case 'end':
|
|
917
|
-
|
|
930
|
+
Object.assign(styles, {
|
|
918
931
|
position: 'sticky',
|
|
919
932
|
insetInlineEnd: `${props.stickyOffset}px`,
|
|
920
933
|
zIndex: '120'
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
return {};
|
|
934
|
+
});
|
|
935
|
+
break;
|
|
924
936
|
}
|
|
925
937
|
}
|
|
926
|
-
return
|
|
927
|
-
justifyContent: 'center'
|
|
928
|
-
};
|
|
938
|
+
return styles;
|
|
929
939
|
});
|
|
930
940
|
// State
|
|
931
941
|
const model = computed({
|
|
@@ -945,9 +955,9 @@ var script$8 = defineComponent({
|
|
|
945
955
|
return ['layout-row items-center w-full min-w-0', ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) === 'end' ? ['flex-row-reverse'] : [])];
|
|
946
956
|
});
|
|
947
957
|
const headerContentInlineStyles = computed(() => {
|
|
948
|
-
var _a;
|
|
958
|
+
var _a, _b;
|
|
949
959
|
return {
|
|
950
|
-
justifyContent: (_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment
|
|
960
|
+
justifyContent: ((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) === 'end' ? undefined : (_b = props.column) === null || _b === void 0 ? void 0 : _b.alignment
|
|
951
961
|
};
|
|
952
962
|
});
|
|
953
963
|
// Methods
|
|
@@ -1047,7 +1057,7 @@ var __vue_render__$8 = function () {
|
|
|
1047
1057
|
return _vm.toggleSorting();
|
|
1048
1058
|
}
|
|
1049
1059
|
}
|
|
1050
|
-
}, [_c('div', {
|
|
1060
|
+
}, [_vm.override ? [_vm._t("default")] : _c('div', {
|
|
1051
1061
|
class: _vm.headerContentStyles,
|
|
1052
1062
|
style: _vm.headerContentInlineStyles
|
|
1053
1063
|
}, [_c('div', {
|
|
@@ -1069,7 +1079,7 @@ var __vue_render__$8 = function () {
|
|
|
1069
1079
|
$event.stopPropagation();
|
|
1070
1080
|
}
|
|
1071
1081
|
}
|
|
1072
|
-
}) : _vm._e()]);
|
|
1082
|
+
}) : _vm._e()], 2);
|
|
1073
1083
|
};
|
|
1074
1084
|
var __vue_staticRenderFns__$8 = [];
|
|
1075
1085
|
|
|
@@ -1834,7 +1844,8 @@ var script = defineComponent({
|
|
|
1834
1844
|
if (props.features.selecting) {
|
|
1835
1845
|
startColumns.push({
|
|
1836
1846
|
name: '_check',
|
|
1837
|
-
stickiness: 'start'
|
|
1847
|
+
stickiness: 'start',
|
|
1848
|
+
alignment: 'center'
|
|
1838
1849
|
});
|
|
1839
1850
|
}
|
|
1840
1851
|
actualColumns.value.forEach(column => {
|
|
@@ -2066,13 +2077,15 @@ var __vue_render__ = function () {
|
|
|
2066
2077
|
"variant": _vm.variant
|
|
2067
2078
|
}
|
|
2068
2079
|
}, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell', {
|
|
2069
|
-
staticClass: "
|
|
2080
|
+
staticClass: "!px-none",
|
|
2070
2081
|
attrs: {
|
|
2071
2082
|
"column": {
|
|
2072
2083
|
name: '_check',
|
|
2073
|
-
stickiness: 'start'
|
|
2084
|
+
stickiness: 'start',
|
|
2085
|
+
alignment: 'center'
|
|
2074
2086
|
},
|
|
2075
|
-
"sticky-offset": _vm.stickyOffsets.start.get('_check')
|
|
2087
|
+
"sticky-offset": _vm.stickyOffsets.start.get('_check'),
|
|
2088
|
+
"override": true
|
|
2076
2089
|
},
|
|
2077
2090
|
on: {
|
|
2078
2091
|
"update:scroll-offset": _vm.updateScrollOffset,
|
|
@@ -2143,10 +2156,12 @@ var __vue_render__ = function () {
|
|
|
2143
2156
|
"interactive": _vm.interactiveRows
|
|
2144
2157
|
}
|
|
2145
2158
|
}, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
|
|
2159
|
+
staticClass: "!px-none",
|
|
2146
2160
|
attrs: {
|
|
2147
2161
|
"column": {
|
|
2148
2162
|
name: '_check',
|
|
2149
|
-
stickiness: 'start'
|
|
2163
|
+
stickiness: 'start',
|
|
2164
|
+
alignment: 'center'
|
|
2150
2165
|
},
|
|
2151
2166
|
"sticky-offset": _vm.stickyOffsets.start.get('_check'),
|
|
2152
2167
|
"variant": _vm.variant,
|
|
@@ -2188,11 +2203,12 @@ var __vue_render__ = function () {
|
|
|
2188
2203
|
}
|
|
2189
2204
|
}
|
|
2190
2205
|
}, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
|
|
2191
|
-
staticClass: "
|
|
2206
|
+
staticClass: "!px-none",
|
|
2192
2207
|
attrs: {
|
|
2193
2208
|
"column": {
|
|
2194
2209
|
name: '_check',
|
|
2195
|
-
stickiness: 'start'
|
|
2210
|
+
stickiness: 'start',
|
|
2211
|
+
alignment: 'center'
|
|
2196
2212
|
},
|
|
2197
2213
|
"sticky-offset": _vm.stickyOffsets.start.get('_check'),
|
|
2198
2214
|
"variant": _vm.variant,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "26.4.1-beta.
|
|
3
|
+
"version": "26.4.1-beta.5888.0",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@codemirror/view": "^6",
|
|
41
41
|
"@floating-ui/dom": "1.5.3",
|
|
42
42
|
"@lezer/highlight": "*",
|
|
43
|
-
"@onereach/styles": "^26.4.1-beta.
|
|
44
|
-
"@onereach/ui-components-common": "^26.4.1-beta.
|
|
43
|
+
"@onereach/styles": "^26.4.1-beta.5888.0",
|
|
44
|
+
"@onereach/ui-components-common": "^26.4.1-beta.5888.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.27.1",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.27.1",
|