@onereach/ui-components-vue2 26.3.3-beta.5868.0 → 26.4.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.
|
@@ -293,8 +293,9 @@ var script$e = defineComponent({
|
|
|
293
293
|
};
|
|
294
294
|
});
|
|
295
295
|
const contentStyles = computed(() => {
|
|
296
|
-
var _a, _b, _c
|
|
297
|
-
|
|
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'])];
|
|
298
299
|
});
|
|
299
300
|
// State
|
|
300
301
|
const model = computed({
|
|
@@ -482,13 +483,13 @@ const DataGridTableContentRow = [
|
|
|
482
483
|
const DataGridTableContentRowVariants = {
|
|
483
484
|
[DataGridVariant.Standard]: [
|
|
484
485
|
// Box
|
|
485
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
486
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
486
487
|
[DataGridVariant.Comfortable]: [
|
|
487
488
|
// Box
|
|
488
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
489
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
489
490
|
[DataGridVariant.Compact]: [
|
|
490
491
|
// Box
|
|
491
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
492
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
492
493
|
[DataGridVariant.Dynamic]: [
|
|
493
494
|
// Box
|
|
494
495
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -682,13 +683,13 @@ const DataGridTableFooterRow = [
|
|
|
682
683
|
const DataGridTableFooterRowVariants = {
|
|
683
684
|
[DataGridVariant.Standard]: [
|
|
684
685
|
// Box
|
|
685
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
686
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
686
687
|
[DataGridVariant.Comfortable]: [
|
|
687
688
|
// Box
|
|
688
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
689
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
689
690
|
[DataGridVariant.Compact]: [
|
|
690
691
|
// Box
|
|
691
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
692
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
692
693
|
[DataGridVariant.Dynamic]: [
|
|
693
694
|
// Box
|
|
694
695
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -998,13 +999,13 @@ const DataGridTableHeaderRow = [
|
|
|
998
999
|
const DataGridTableHeaderRowVariants = {
|
|
999
1000
|
[DataGridVariant.Standard]: [
|
|
1000
1001
|
// Box
|
|
1001
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1002
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1002
1003
|
[DataGridVariant.Comfortable]: [
|
|
1003
1004
|
// Box
|
|
1004
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1005
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1005
1006
|
[DataGridVariant.Compact]: [
|
|
1006
1007
|
// Box
|
|
1007
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1008
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1008
1009
|
[DataGridVariant.Dynamic]: [
|
|
1009
1010
|
// Box
|
|
1010
1011
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -1433,13 +1434,13 @@ const DataGridTableExtraRow = [
|
|
|
1433
1434
|
const DataGridTableExtraRowVariants = {
|
|
1434
1435
|
[DataGridVariant.Standard]: [
|
|
1435
1436
|
// Box
|
|
1436
|
-
'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1437
|
+
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
1437
1438
|
[DataGridVariant.Comfortable]: [
|
|
1438
1439
|
// Box
|
|
1439
|
-
'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1440
|
+
'min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
1440
1441
|
[DataGridVariant.Compact]: [
|
|
1441
1442
|
// Box
|
|
1442
|
-
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1443
|
+
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]'],
|
|
1443
1444
|
[DataGridVariant.Dynamic]: [
|
|
1444
1445
|
// Box
|
|
1445
1446
|
'min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]']
|
|
@@ -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
|
+
"version": "26.4.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.
|
|
44
|
-
"@onereach/ui-components-common": "^26.
|
|
43
|
+
"@onereach/styles": "^26.4.0",
|
|
44
|
+
"@onereach/ui-components-common": "^26.4.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.27.1",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.27.1",
|
|
@@ -102,5 +102,6 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
105
|
+
"npmUnpacked": "4.15.2",
|
|
106
|
+
"gitHead": "3393b1400a3b9d2d9f40e8062736fa0583d1ec8a"
|
|
106
107
|
}
|