@onereach/ui-components-vue2 26.3.3-beta.5867.0 → 26.3.3-beta.5869.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.
|
@@ -249,6 +249,10 @@ var script$e = defineComponent({
|
|
|
249
249
|
variant: {
|
|
250
250
|
type: String,
|
|
251
251
|
default: DataGridVariant.Standard
|
|
252
|
+
},
|
|
253
|
+
override: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
default: false
|
|
252
256
|
}
|
|
253
257
|
},
|
|
254
258
|
emits: ['input'],
|
|
@@ -289,8 +293,9 @@ var script$e = defineComponent({
|
|
|
289
293
|
};
|
|
290
294
|
});
|
|
291
295
|
const contentStyles = computed(() => {
|
|
292
|
-
var _a, _b, _c
|
|
293
|
-
|
|
296
|
+
var _a, _b, _c;
|
|
297
|
+
const isWrapping = (_b = (_a = props.column) === null || _a === void 0 ? void 0 : _a.wrapping) !== null && _b !== void 0 ? _b : props.variant === DataGridVariant.Dynamic && !((_c = props.column) === null || _c === void 0 ? void 0 : _c.control);
|
|
298
|
+
return [...DataGridTableContentCellContent.filter(style => style !== 'truncate'), ...(isWrapping ? ['whitespace-pre-wrap break-words'] : ['truncate'])];
|
|
294
299
|
});
|
|
295
300
|
// State
|
|
296
301
|
const model = computed({
|
|
@@ -478,13 +483,13 @@ const DataGridTableContentRow = [
|
|
|
478
483
|
const DataGridTableContentRowVariants = {
|
|
479
484
|
[DataGridVariant.Standard]: [
|
|
480
485
|
// Box
|
|
481
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
486
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
482
487
|
[DataGridVariant.Comfortable]: [
|
|
483
488
|
// Box
|
|
484
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
489
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
485
490
|
[DataGridVariant.Compact]: [
|
|
486
491
|
// Box
|
|
487
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
492
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
488
493
|
[DataGridVariant.Dynamic]: [
|
|
489
494
|
// Box
|
|
490
495
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -678,13 +683,13 @@ const DataGridTableFooterRow = [
|
|
|
678
683
|
const DataGridTableFooterRowVariants = {
|
|
679
684
|
[DataGridVariant.Standard]: [
|
|
680
685
|
// Box
|
|
681
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
686
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
682
687
|
[DataGridVariant.Comfortable]: [
|
|
683
688
|
// Box
|
|
684
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
689
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
685
690
|
[DataGridVariant.Compact]: [
|
|
686
691
|
// Box
|
|
687
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
692
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
688
693
|
[DataGridVariant.Dynamic]: [
|
|
689
694
|
// Box
|
|
690
695
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -994,13 +999,13 @@ const DataGridTableHeaderRow = [
|
|
|
994
999
|
const DataGridTableHeaderRowVariants = {
|
|
995
1000
|
[DataGridVariant.Standard]: [
|
|
996
1001
|
// Box
|
|
997
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1002
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
998
1003
|
[DataGridVariant.Comfortable]: [
|
|
999
1004
|
// Box
|
|
1000
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1005
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1001
1006
|
[DataGridVariant.Compact]: [
|
|
1002
1007
|
// Box
|
|
1003
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1008
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1004
1009
|
[DataGridVariant.Dynamic]: [
|
|
1005
1010
|
// Box
|
|
1006
1011
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -1429,13 +1434,13 @@ const DataGridTableExtraRow = [
|
|
|
1429
1434
|
const DataGridTableExtraRowVariants = {
|
|
1430
1435
|
[DataGridVariant.Standard]: [
|
|
1431
1436
|
// Box
|
|
1432
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1437
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1433
1438
|
[DataGridVariant.Comfortable]: [
|
|
1434
1439
|
// Box
|
|
1435
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1440
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1436
1441
|
[DataGridVariant.Compact]: [
|
|
1437
1442
|
// Box
|
|
1438
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1443
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1439
1444
|
[DataGridVariant.Dynamic]: [
|
|
1440
1445
|
// Box
|
|
1441
1446
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -1960,6 +1965,7 @@ var __vue_render__ = function () {
|
|
|
1960
1965
|
stickiness: 'start'
|
|
1961
1966
|
},
|
|
1962
1967
|
"variant": _vm.variant,
|
|
1968
|
+
"override": true,
|
|
1963
1969
|
"force-state": 'none'
|
|
1964
1970
|
},
|
|
1965
1971
|
on: {
|
|
@@ -19,6 +19,7 @@ export type DataGridColumn = {
|
|
|
19
19
|
alignment?: 'start' | 'end' | 'center';
|
|
20
20
|
stickiness?: 'start' | 'end';
|
|
21
21
|
sorting?: boolean;
|
|
22
|
+
wrapping?: boolean;
|
|
22
23
|
control?: {
|
|
23
24
|
type: 'text' | 'number' | 'rating' | 'select' | 'checkbox' | 'switch' | 'date' | 'time' | 'datetime' | 'tags';
|
|
24
25
|
options?: SelectItem[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "26.3.3-beta.
|
|
3
|
+
"version": "26.3.3-beta.5869.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.3.3-beta.
|
|
44
|
-
"@onereach/ui-components-common": "^26.3.3-beta.
|
|
43
|
+
"@onereach/styles": "^26.3.3-beta.5869.0",
|
|
44
|
+
"@onereach/ui-components-common": "^26.3.3-beta.5869.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.27.1",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.27.1",
|