@progress/kendo-vue-layout 3.8.0 → 3.8.1-dev.202301190855
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/cdn/js/kendo-vue-layout.js +1 -1
- package/dist/es/drawer/DrawerItem.js +3 -2
- package/dist/es/menu/components/MenuItemArrow.js +6 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tilelayout/Tile.js +24 -3
- package/dist/es/tilelayout/TileLayout.js +4 -4
- package/dist/es/tilelayout/interfaces/main.d.ts +4 -0
- package/dist/esm/drawer/DrawerItem.js +3 -2
- package/dist/esm/menu/components/MenuItemArrow.js +6 -4
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/tilelayout/Tile.js +24 -3
- package/dist/esm/tilelayout/TileLayout.js +4 -4
- package/dist/esm/tilelayout/interfaces/main.d.ts +4 -0
- package/dist/npm/drawer/DrawerItem.js +3 -2
- package/dist/npm/menu/components/MenuItemArrow.js +6 -4
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tilelayout/Tile.js +24 -3
- package/dist/npm/tilelayout/TileLayout.js +4 -4
- package/dist/npm/tilelayout/interfaces/main.d.ts +4 -0
- package/package.json +13 -13
|
@@ -79,6 +79,7 @@ var DrawerItemVue2 = {
|
|
|
79
79
|
mini = _b.mini,
|
|
80
80
|
item = _b.item;
|
|
81
81
|
var ariaLabelSeparator = provideLocalizationService(this).toLanguageString(separatorAriaMessage, messages[separatorAriaMessage]);
|
|
82
|
+
var iconName = icon && icon.indexOf('k-i-') !== -1 ? icon.split('k-i-')[1] : icon;
|
|
82
83
|
return separator ? h("li", {
|
|
83
84
|
"class": 'k-drawer-item k-drawer-separator',
|
|
84
85
|
role: "separator",
|
|
@@ -106,9 +107,9 @@ var DrawerItemVue2 = {
|
|
|
106
107
|
},
|
|
107
108
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
108
109
|
}, [!item ? [icon && h(Icon, {
|
|
109
|
-
name:
|
|
110
|
+
name: iconName,
|
|
110
111
|
attrs: this.v3 ? undefined : {
|
|
111
|
-
name:
|
|
112
|
+
name: iconName
|
|
112
113
|
}
|
|
113
114
|
}), !expanded && mini ? null : h("span", {
|
|
114
115
|
"class": 'k-item-text'
|
|
@@ -3,6 +3,7 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
6
7
|
import { getChildrenPosition } from '../utils/misc';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
@@ -41,12 +42,13 @@ var MenuItemArrowVue2 = {
|
|
|
41
42
|
attrs: this.v3 ? undefined : {
|
|
42
43
|
"aria-hidden": "true"
|
|
43
44
|
}
|
|
44
|
-
}, [h(
|
|
45
|
-
|
|
46
|
-
role: "presentation",
|
|
45
|
+
}, [h(Icon, {
|
|
46
|
+
name: this.getArrowName(),
|
|
47
47
|
attrs: this.v3 ? undefined : {
|
|
48
|
+
name: this.getArrowName(),
|
|
48
49
|
role: "presentation"
|
|
49
|
-
}
|
|
50
|
+
},
|
|
51
|
+
role: "presentation"
|
|
50
52
|
})]);
|
|
51
53
|
},
|
|
52
54
|
methods: {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-layout',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1674117726,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -10,6 +10,15 @@ var __assign = this && this.__assign || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
13
22
|
// @ts-ignore
|
|
14
23
|
import * as Vue from 'vue';
|
|
15
24
|
var allVue = Vue;
|
|
@@ -17,6 +26,7 @@ var gh = allVue.h;
|
|
|
17
26
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
27
|
import { canUseDOM, Draggable, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
19
28
|
import { ResizeHandlers } from './ResizeHandlers';
|
|
29
|
+
var tileDragClasses = ['k-card-title', 'k-card-body', 'k-tilelayout-item-body', 'k-tilelayout-item', 'k-tilelayout-item-header', 'k-resize-handle'];
|
|
20
30
|
/**
|
|
21
31
|
* @hidden
|
|
22
32
|
*/
|
|
@@ -31,6 +41,7 @@ var TileVue2 = {
|
|
|
31
41
|
required: true
|
|
32
42
|
},
|
|
33
43
|
index: Number,
|
|
44
|
+
tile: Object,
|
|
34
45
|
hintStyle: Object,
|
|
35
46
|
hintClass: String,
|
|
36
47
|
header: [String, Function, Object],
|
|
@@ -206,15 +217,17 @@ var TileVue2 = {
|
|
|
206
217
|
"aria-keyshortcuts": 'Enter',
|
|
207
218
|
"aria-dropeffect": 'execute',
|
|
208
219
|
"aria-grabbed": this.grabbed ? true : false,
|
|
209
|
-
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
210
|
-
ontouchstart: 'return false'
|
|
220
|
+
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
211
221
|
},
|
|
212
222
|
tabIndex: this.$props.tabIndex,
|
|
213
223
|
"aria-keyshortcuts": 'Enter',
|
|
214
224
|
"aria-dropeffect": 'execute',
|
|
215
225
|
"aria-grabbed": this.grabbed ? true : false,
|
|
216
226
|
"aria-ariaDescribedBy": this.$props.ariaDescribedBy,
|
|
217
|
-
|
|
227
|
+
onTouchstart: this.touchStart,
|
|
228
|
+
on: this.v3 ? undefined : {
|
|
229
|
+
"touchstart": this.touchStart
|
|
230
|
+
}
|
|
218
231
|
}, [defaultSlots, resizable && resizable !== 'vertical' && h(ResizeHandlers, {
|
|
219
232
|
onPress: this.handlePress,
|
|
220
233
|
on: this.v3 ? undefined : {
|
|
@@ -275,6 +288,14 @@ var TileVue2 = {
|
|
|
275
288
|
} : [card])]);
|
|
276
289
|
},
|
|
277
290
|
methods: {
|
|
291
|
+
touchStart: function touchStart(e) {
|
|
292
|
+
var dragClasses = this.tile.dragClasses ? __spreadArray(__spreadArray([], tileDragClasses, true), this.tile.dragClasses, true) : tileDragClasses;
|
|
293
|
+
if (dragClasses.some(function (dragClass) {
|
|
294
|
+
return e.target.classList.contains(dragClass);
|
|
295
|
+
})) {
|
|
296
|
+
e.preventDefault();
|
|
297
|
+
}
|
|
298
|
+
},
|
|
278
299
|
dragElement: function dragElement() {
|
|
279
300
|
return this.draggable && this.draggable.element;
|
|
280
301
|
},
|
|
@@ -115,14 +115,12 @@ var TileLayoutVue2 = {
|
|
|
115
115
|
attrs: this.v3 ? undefined : {
|
|
116
116
|
dir: this.$props.dir,
|
|
117
117
|
id: this.$props.id,
|
|
118
|
-
role: 'list'
|
|
119
|
-
ontouchstart: 'return false'
|
|
118
|
+
role: 'list'
|
|
120
119
|
},
|
|
121
120
|
"class": this.wrapperClass,
|
|
122
121
|
style: tileLayoutStyles,
|
|
123
122
|
id: this.$props.id,
|
|
124
|
-
role: 'list'
|
|
125
|
-
ontouchstart: 'return false'
|
|
123
|
+
role: 'list'
|
|
126
124
|
}, [items.map(function (tile, index) {
|
|
127
125
|
var _this = this;
|
|
128
126
|
var tileTitleId = tile && tile.id || guid();
|
|
@@ -165,6 +163,7 @@ var TileLayoutVue2 = {
|
|
|
165
163
|
index: index,
|
|
166
164
|
resizable: tile.resizable,
|
|
167
165
|
reorderable: tile.reorderable,
|
|
166
|
+
tile: tile,
|
|
168
167
|
hintClass: tile.hintClass,
|
|
169
168
|
hintStyle: tile.hintStyle,
|
|
170
169
|
ignoreDrag: this.$props.ignoreDrag,
|
|
@@ -176,6 +175,7 @@ var TileLayoutVue2 = {
|
|
|
176
175
|
reorderable: tile.reorderable,
|
|
177
176
|
style: tile.style,
|
|
178
177
|
"class": tile.class,
|
|
178
|
+
tile: tile,
|
|
179
179
|
hintClass: tile.hintClass,
|
|
180
180
|
hintStyle: tile.hintStyle,
|
|
181
181
|
ignoreDrag: this.$props.ignoreDrag,
|
|
@@ -79,6 +79,7 @@ var DrawerItemVue2 = {
|
|
|
79
79
|
mini = _b.mini,
|
|
80
80
|
item = _b.item;
|
|
81
81
|
var ariaLabelSeparator = provideLocalizationService(this).toLanguageString(separatorAriaMessage, messages[separatorAriaMessage]);
|
|
82
|
+
var iconName = icon && icon.indexOf('k-i-') !== -1 ? icon.split('k-i-')[1] : icon;
|
|
82
83
|
return separator ? h("li", {
|
|
83
84
|
"class": 'k-drawer-item k-drawer-separator',
|
|
84
85
|
role: "separator",
|
|
@@ -106,9 +107,9 @@ var DrawerItemVue2 = {
|
|
|
106
107
|
},
|
|
107
108
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
108
109
|
}, [!item ? [icon && h(Icon, {
|
|
109
|
-
name:
|
|
110
|
+
name: iconName,
|
|
110
111
|
attrs: this.v3 ? undefined : {
|
|
111
|
-
name:
|
|
112
|
+
name: iconName
|
|
112
113
|
}
|
|
113
114
|
}), !expanded && mini ? null : h("span", {
|
|
114
115
|
"class": 'k-item-text'
|
|
@@ -3,6 +3,7 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
6
7
|
import { getChildrenPosition } from '../utils/misc.js';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
@@ -41,12 +42,13 @@ var MenuItemArrowVue2 = {
|
|
|
41
42
|
attrs: this.v3 ? undefined : {
|
|
42
43
|
"aria-hidden": "true"
|
|
43
44
|
}
|
|
44
|
-
}, [h(
|
|
45
|
-
|
|
46
|
-
role: "presentation",
|
|
45
|
+
}, [h(Icon, {
|
|
46
|
+
name: this.getArrowName(),
|
|
47
47
|
attrs: this.v3 ? undefined : {
|
|
48
|
+
name: this.getArrowName(),
|
|
48
49
|
role: "presentation"
|
|
49
|
-
}
|
|
50
|
+
},
|
|
51
|
+
role: "presentation"
|
|
50
52
|
})]);
|
|
51
53
|
},
|
|
52
54
|
methods: {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-layout',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1674117726,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -10,6 +10,15 @@ var __assign = this && this.__assign || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
13
22
|
// @ts-ignore
|
|
14
23
|
import * as Vue from 'vue';
|
|
15
24
|
var allVue = Vue;
|
|
@@ -17,6 +26,7 @@ var gh = allVue.h;
|
|
|
17
26
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
27
|
import { canUseDOM, Draggable, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
19
28
|
import { ResizeHandlers } from './ResizeHandlers.js';
|
|
29
|
+
var tileDragClasses = ['k-card-title', 'k-card-body', 'k-tilelayout-item-body', 'k-tilelayout-item', 'k-tilelayout-item-header', 'k-resize-handle'];
|
|
20
30
|
/**
|
|
21
31
|
* @hidden
|
|
22
32
|
*/
|
|
@@ -31,6 +41,7 @@ var TileVue2 = {
|
|
|
31
41
|
required: true
|
|
32
42
|
},
|
|
33
43
|
index: Number,
|
|
44
|
+
tile: Object,
|
|
34
45
|
hintStyle: Object,
|
|
35
46
|
hintClass: String,
|
|
36
47
|
header: [String, Function, Object],
|
|
@@ -206,15 +217,17 @@ var TileVue2 = {
|
|
|
206
217
|
"aria-keyshortcuts": 'Enter',
|
|
207
218
|
"aria-dropeffect": 'execute',
|
|
208
219
|
"aria-grabbed": this.grabbed ? true : false,
|
|
209
|
-
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
210
|
-
ontouchstart: 'return false'
|
|
220
|
+
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
211
221
|
},
|
|
212
222
|
tabIndex: this.$props.tabIndex,
|
|
213
223
|
"aria-keyshortcuts": 'Enter',
|
|
214
224
|
"aria-dropeffect": 'execute',
|
|
215
225
|
"aria-grabbed": this.grabbed ? true : false,
|
|
216
226
|
"aria-ariaDescribedBy": this.$props.ariaDescribedBy,
|
|
217
|
-
|
|
227
|
+
onTouchstart: this.touchStart,
|
|
228
|
+
on: this.v3 ? undefined : {
|
|
229
|
+
"touchstart": this.touchStart
|
|
230
|
+
}
|
|
218
231
|
}, [defaultSlots, resizable && resizable !== 'vertical' && h(ResizeHandlers, {
|
|
219
232
|
onPress: this.handlePress,
|
|
220
233
|
on: this.v3 ? undefined : {
|
|
@@ -275,6 +288,14 @@ var TileVue2 = {
|
|
|
275
288
|
} : [card])]);
|
|
276
289
|
},
|
|
277
290
|
methods: {
|
|
291
|
+
touchStart: function touchStart(e) {
|
|
292
|
+
var dragClasses = this.tile.dragClasses ? __spreadArray(__spreadArray([], tileDragClasses, true), this.tile.dragClasses, true) : tileDragClasses;
|
|
293
|
+
if (dragClasses.some(function (dragClass) {
|
|
294
|
+
return e.target.classList.contains(dragClass);
|
|
295
|
+
})) {
|
|
296
|
+
e.preventDefault();
|
|
297
|
+
}
|
|
298
|
+
},
|
|
278
299
|
dragElement: function dragElement() {
|
|
279
300
|
return this.draggable && this.draggable.element;
|
|
280
301
|
},
|
|
@@ -115,14 +115,12 @@ var TileLayoutVue2 = {
|
|
|
115
115
|
attrs: this.v3 ? undefined : {
|
|
116
116
|
dir: this.$props.dir,
|
|
117
117
|
id: this.$props.id,
|
|
118
|
-
role: 'list'
|
|
119
|
-
ontouchstart: 'return false'
|
|
118
|
+
role: 'list'
|
|
120
119
|
},
|
|
121
120
|
"class": this.wrapperClass,
|
|
122
121
|
style: tileLayoutStyles,
|
|
123
122
|
id: this.$props.id,
|
|
124
|
-
role: 'list'
|
|
125
|
-
ontouchstart: 'return false'
|
|
123
|
+
role: 'list'
|
|
126
124
|
}, [items.map(function (tile, index) {
|
|
127
125
|
var _this = this;
|
|
128
126
|
var tileTitleId = tile && tile.id || guid();
|
|
@@ -165,6 +163,7 @@ var TileLayoutVue2 = {
|
|
|
165
163
|
index: index,
|
|
166
164
|
resizable: tile.resizable,
|
|
167
165
|
reorderable: tile.reorderable,
|
|
166
|
+
tile: tile,
|
|
168
167
|
hintClass: tile.hintClass,
|
|
169
168
|
hintStyle: tile.hintStyle,
|
|
170
169
|
ignoreDrag: this.$props.ignoreDrag,
|
|
@@ -176,6 +175,7 @@ var TileLayoutVue2 = {
|
|
|
176
175
|
reorderable: tile.reorderable,
|
|
177
176
|
style: tile.style,
|
|
178
177
|
"class": tile.class,
|
|
178
|
+
tile: tile,
|
|
179
179
|
hintClass: tile.hintClass,
|
|
180
180
|
hintStyle: tile.hintStyle,
|
|
181
181
|
ignoreDrag: this.$props.ignoreDrag,
|
|
@@ -85,6 +85,7 @@ var DrawerItemVue2 = {
|
|
|
85
85
|
mini = _b.mini,
|
|
86
86
|
item = _b.item;
|
|
87
87
|
var ariaLabelSeparator = (0, kendo_vue_intl_1.provideLocalizationService)(this).toLanguageString(main_1.separatorAriaMessage, main_1.messages[main_1.separatorAriaMessage]);
|
|
88
|
+
var iconName = icon && icon.indexOf('k-i-') !== -1 ? icon.split('k-i-')[1] : icon;
|
|
88
89
|
return separator ? h("li", {
|
|
89
90
|
"class": 'k-drawer-item k-drawer-separator',
|
|
90
91
|
role: "separator",
|
|
@@ -112,9 +113,9 @@ var DrawerItemVue2 = {
|
|
|
112
113
|
},
|
|
113
114
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled)
|
|
114
115
|
}, [!item ? [icon && h(kendo_vue_common_1.Icon, {
|
|
115
|
-
name:
|
|
116
|
+
name: iconName,
|
|
116
117
|
attrs: this.v3 ? undefined : {
|
|
117
|
-
name:
|
|
118
|
+
name: iconName
|
|
118
119
|
}
|
|
119
120
|
}), !expanded && mini ? null : h("span", {
|
|
120
121
|
"class": 'k-item-text'
|
|
@@ -9,6 +9,7 @@ var Vue = require("vue");
|
|
|
9
9
|
var allVue = Vue;
|
|
10
10
|
var gh = allVue.h;
|
|
11
11
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
12
13
|
var misc_1 = require("../utils/misc");
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -47,12 +48,13 @@ var MenuItemArrowVue2 = {
|
|
|
47
48
|
attrs: this.v3 ? undefined : {
|
|
48
49
|
"aria-hidden": "true"
|
|
49
50
|
}
|
|
50
|
-
}, [h(
|
|
51
|
-
|
|
52
|
-
role: "presentation",
|
|
51
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
52
|
+
name: this.getArrowName(),
|
|
53
53
|
attrs: this.v3 ? undefined : {
|
|
54
|
+
name: this.getArrowName(),
|
|
54
55
|
role: "presentation"
|
|
55
|
-
}
|
|
56
|
+
},
|
|
57
|
+
role: "presentation"
|
|
56
58
|
})]);
|
|
57
59
|
},
|
|
58
60
|
methods: {
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-layout',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1674117726,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -12,6 +12,15 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
12
12
|
};
|
|
13
13
|
return __assign.apply(this, arguments);
|
|
14
14
|
};
|
|
15
|
+
var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
|
|
16
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17
|
+
if (ar || !(i in from)) {
|
|
18
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
19
|
+
ar[i] = from[i];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
23
|
+
};
|
|
15
24
|
Object.defineProperty(exports, "__esModule", {
|
|
16
25
|
value: true
|
|
17
26
|
});
|
|
@@ -23,6 +32,7 @@ var gh = allVue.h;
|
|
|
23
32
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
24
33
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
25
34
|
var ResizeHandlers_1 = require("./ResizeHandlers");
|
|
35
|
+
var tileDragClasses = ['k-card-title', 'k-card-body', 'k-tilelayout-item-body', 'k-tilelayout-item', 'k-tilelayout-item-header', 'k-resize-handle'];
|
|
26
36
|
/**
|
|
27
37
|
* @hidden
|
|
28
38
|
*/
|
|
@@ -37,6 +47,7 @@ var TileVue2 = {
|
|
|
37
47
|
required: true
|
|
38
48
|
},
|
|
39
49
|
index: Number,
|
|
50
|
+
tile: Object,
|
|
40
51
|
hintStyle: Object,
|
|
41
52
|
hintClass: String,
|
|
42
53
|
header: [String, Function, Object],
|
|
@@ -212,15 +223,17 @@ var TileVue2 = {
|
|
|
212
223
|
"aria-keyshortcuts": 'Enter',
|
|
213
224
|
"aria-dropeffect": 'execute',
|
|
214
225
|
"aria-grabbed": this.grabbed ? true : false,
|
|
215
|
-
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
216
|
-
ontouchstart: 'return false'
|
|
226
|
+
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
217
227
|
},
|
|
218
228
|
tabIndex: this.$props.tabIndex,
|
|
219
229
|
"aria-keyshortcuts": 'Enter',
|
|
220
230
|
"aria-dropeffect": 'execute',
|
|
221
231
|
"aria-grabbed": this.grabbed ? true : false,
|
|
222
232
|
"aria-ariaDescribedBy": this.$props.ariaDescribedBy,
|
|
223
|
-
|
|
233
|
+
onTouchstart: this.touchStart,
|
|
234
|
+
on: this.v3 ? undefined : {
|
|
235
|
+
"touchstart": this.touchStart
|
|
236
|
+
}
|
|
224
237
|
}, [defaultSlots, resizable && resizable !== 'vertical' && h(ResizeHandlers_1.ResizeHandlers, {
|
|
225
238
|
onPress: this.handlePress,
|
|
226
239
|
on: this.v3 ? undefined : {
|
|
@@ -281,6 +294,14 @@ var TileVue2 = {
|
|
|
281
294
|
} : [card])]);
|
|
282
295
|
},
|
|
283
296
|
methods: {
|
|
297
|
+
touchStart: function touchStart(e) {
|
|
298
|
+
var dragClasses = this.tile.dragClasses ? __spreadArray(__spreadArray([], tileDragClasses, true), this.tile.dragClasses, true) : tileDragClasses;
|
|
299
|
+
if (dragClasses.some(function (dragClass) {
|
|
300
|
+
return e.target.classList.contains(dragClass);
|
|
301
|
+
})) {
|
|
302
|
+
e.preventDefault();
|
|
303
|
+
}
|
|
304
|
+
},
|
|
284
305
|
dragElement: function dragElement() {
|
|
285
306
|
return this.draggable && this.draggable.element;
|
|
286
307
|
},
|
|
@@ -121,14 +121,12 @@ var TileLayoutVue2 = {
|
|
|
121
121
|
attrs: this.v3 ? undefined : {
|
|
122
122
|
dir: this.$props.dir,
|
|
123
123
|
id: this.$props.id,
|
|
124
|
-
role: 'list'
|
|
125
|
-
ontouchstart: 'return false'
|
|
124
|
+
role: 'list'
|
|
126
125
|
},
|
|
127
126
|
"class": this.wrapperClass,
|
|
128
127
|
style: tileLayoutStyles,
|
|
129
128
|
id: this.$props.id,
|
|
130
|
-
role: 'list'
|
|
131
|
-
ontouchstart: 'return false'
|
|
129
|
+
role: 'list'
|
|
132
130
|
}, [items.map(function (tile, index) {
|
|
133
131
|
var _this = this;
|
|
134
132
|
var tileTitleId = tile && tile.id || (0, kendo_vue_common_1.guid)();
|
|
@@ -171,6 +169,7 @@ var TileLayoutVue2 = {
|
|
|
171
169
|
index: index,
|
|
172
170
|
resizable: tile.resizable,
|
|
173
171
|
reorderable: tile.reorderable,
|
|
172
|
+
tile: tile,
|
|
174
173
|
hintClass: tile.hintClass,
|
|
175
174
|
hintStyle: tile.hintStyle,
|
|
176
175
|
ignoreDrag: this.$props.ignoreDrag,
|
|
@@ -182,6 +181,7 @@ var TileLayoutVue2 = {
|
|
|
182
181
|
reorderable: tile.reorderable,
|
|
183
182
|
style: tile.style,
|
|
184
183
|
"class": tile.class,
|
|
184
|
+
tile: tile,
|
|
185
185
|
hintClass: tile.hintClass,
|
|
186
186
|
hintStyle: tile.hintStyle,
|
|
187
187
|
ignoreDrag: this.$props.ignoreDrag,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-layout",
|
|
3
3
|
"description": "Kendo UI for Vue Layouts package",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.1-dev.202301190855",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"vue": "^2.6.12 || ^3.0.2"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@progress/kendo-vue-animation": "3.8.
|
|
48
|
-
"@progress/kendo-vue-common": "3.8.
|
|
49
|
-
"@progress/kendo-vue-popup": "3.8.
|
|
47
|
+
"@progress/kendo-vue-animation": "3.8.1-dev.202301190855",
|
|
48
|
+
"@progress/kendo-vue-common": "3.8.1-dev.202301190855",
|
|
49
|
+
"@progress/kendo-vue-popup": "3.8.1-dev.202301190855"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@progress/kendo-data-query": "^1.5.0",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@progress/kendo-drawing": "^1.8.0",
|
|
55
55
|
"@progress/kendo-licensing": "^1.3.0",
|
|
56
56
|
"@progress/kendo-svg-icons": "^1.0.0",
|
|
57
|
-
"@progress/kendo-vue-buttons": "3.8.
|
|
58
|
-
"@progress/kendo-vue-charts": "3.8.
|
|
59
|
-
"@progress/kendo-vue-dateinputs": "3.8.
|
|
60
|
-
"@progress/kendo-vue-dropdowns": "3.8.
|
|
61
|
-
"@progress/kendo-vue-grid": "3.8.
|
|
62
|
-
"@progress/kendo-vue-indicators": "3.8.
|
|
63
|
-
"@progress/kendo-vue-inputs": "3.8.
|
|
64
|
-
"@progress/kendo-vue-intl": "3.8.
|
|
65
|
-
"@progress/kendo-vue-progressbars": "3.8.
|
|
57
|
+
"@progress/kendo-vue-buttons": "3.8.1-dev.202301190855",
|
|
58
|
+
"@progress/kendo-vue-charts": "3.8.1-dev.202301190855",
|
|
59
|
+
"@progress/kendo-vue-dateinputs": "3.8.1-dev.202301190855",
|
|
60
|
+
"@progress/kendo-vue-dropdowns": "3.8.1-dev.202301190855",
|
|
61
|
+
"@progress/kendo-vue-grid": "3.8.1-dev.202301190855",
|
|
62
|
+
"@progress/kendo-vue-indicators": "3.8.1-dev.202301190855",
|
|
63
|
+
"@progress/kendo-vue-inputs": "3.8.1-dev.202301190855",
|
|
64
|
+
"@progress/kendo-vue-intl": "3.8.1-dev.202301190855",
|
|
65
|
+
"@progress/kendo-vue-progressbars": "3.8.1-dev.202301190855"
|
|
66
66
|
},
|
|
67
67
|
"@progress": {
|
|
68
68
|
"friendlyName": "Layouts",
|