@progress/kendo-vue-layout 3.10.0 → 3.10.1-dev.202305151253

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.
@@ -11,6 +11,11 @@ import { packageMetadata } from '../package-metadata';
11
11
  */
12
12
  var DrawerVue2 = {
13
13
  name: 'KendoDrawer',
14
+ // @ts-ignore
15
+ emits: {
16
+ select: null,
17
+ overlayclick: null
18
+ },
14
19
  props: {
15
20
  animation: {
16
21
  type: [Object, Boolean],
@@ -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: 1682487381,
8
+ publishDate: 1684154670,
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
  };
@@ -343,7 +343,7 @@ var TileVue2 = {
343
343
  row = -1;
344
344
  }
345
345
  if (col !== 0 || row !== 0) {
346
- this.$emit('update', this.$props.index, 0, 0, row, col);
346
+ this.$emit('update', this.$props.index, 0, 0, row, col, true);
347
347
  }
348
348
  },
349
349
  handlePress: function handlePress(e) {
@@ -221,7 +221,7 @@ var TileLayoutVue2 = {
221
221
  this.$el.focus();
222
222
  }
223
223
  },
224
- updateHandle: function updateHandle(index, dOrder, dCol, dRowSpan, dColSpan) {
224
+ updateHandle: function updateHandle(index, dOrder, dCol, dRowSpan, dColSpan, isResized) {
225
225
  if (dRowSpan === void 0) {
226
226
  dRowSpan = 0;
227
227
  }
@@ -263,8 +263,16 @@ var TileLayoutVue2 = {
263
263
  }
264
264
  if (shouldUpdate) {
265
265
  this.currentPositions = positions;
266
- this.$emit('reposition', {
267
- value: positions
266
+ this.$emit(isResized ? 'tileresize' : 'reposition', isResized ? {
267
+ value: positions,
268
+ index: index,
269
+ rowSpan: dRowSpan,
270
+ colSpan: dColSpan
271
+ } : {
272
+ value: positions,
273
+ index: index,
274
+ row: dOrder,
275
+ col: dCol
268
276
  });
269
277
  }
270
278
  }
@@ -158,4 +158,41 @@ export interface TileLayoutRepositionEvent {
158
158
  * The new positions of the TileLayout tiles.
159
159
  */
160
160
  value: Array<TileStrictPosition>;
161
+ /**
162
+ * The index of the currently moved tile.
163
+ */
164
+ index: number;
165
+ /**
166
+ * Returns 0 if the row is not changed, 1 if the item is dragged to the next row
167
+ * and -1 if the item is drag to the previous row.
168
+ */
169
+ row: number;
170
+ /**
171
+ * Returns 0 if the column is not changed, 1 if the item is dragged to the next column
172
+ * and -1 if the item is drag to the previous column.
173
+ */
174
+ col: number;
175
+ }
176
+ /**
177
+ * The arguments for the `onTileresize` TileLayout event.
178
+ */
179
+ export interface TileLayoutTileResizeEvent {
180
+ /**
181
+ * The new resized positions of the TileLayout tiles.
182
+ */
183
+ value: Array<TileStrictPosition>;
184
+ /**
185
+ * The index of the currently resized tile.
186
+ */
187
+ index: number;
188
+ /**
189
+ * Returns 0 if the rowSpan is not changed, 1 if the rowSpan is increased
190
+ * and -1 if the rowSpan is decreased.
191
+ */
192
+ rowSpan: number;
193
+ /**
194
+ * Returns 0 if the columnSpan is not changed, 1 if the columnSpan is increased
195
+ * and -1 if the columnSpan is decreased.
196
+ */
197
+ colSpan: number;
161
198
  }
@@ -11,6 +11,11 @@ import { packageMetadata } from '../package-metadata.js';
11
11
  */
12
12
  var DrawerVue2 = {
13
13
  name: 'KendoDrawer',
14
+ // @ts-ignore
15
+ emits: {
16
+ select: null,
17
+ overlayclick: null
18
+ },
14
19
  props: {
15
20
  animation: {
16
21
  type: [Object, Boolean],
@@ -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: 1682487381,
8
+ publishDate: 1684154670,
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
  };
@@ -343,7 +343,7 @@ var TileVue2 = {
343
343
  row = -1;
344
344
  }
345
345
  if (col !== 0 || row !== 0) {
346
- this.$emit('update', this.$props.index, 0, 0, row, col);
346
+ this.$emit('update', this.$props.index, 0, 0, row, col, true);
347
347
  }
348
348
  },
349
349
  handlePress: function handlePress(e) {
@@ -221,7 +221,7 @@ var TileLayoutVue2 = {
221
221
  this.$el.focus();
222
222
  }
223
223
  },
224
- updateHandle: function updateHandle(index, dOrder, dCol, dRowSpan, dColSpan) {
224
+ updateHandle: function updateHandle(index, dOrder, dCol, dRowSpan, dColSpan, isResized) {
225
225
  if (dRowSpan === void 0) {
226
226
  dRowSpan = 0;
227
227
  }
@@ -263,8 +263,16 @@ var TileLayoutVue2 = {
263
263
  }
264
264
  if (shouldUpdate) {
265
265
  this.currentPositions = positions;
266
- this.$emit('reposition', {
267
- value: positions
266
+ this.$emit(isResized ? 'tileresize' : 'reposition', isResized ? {
267
+ value: positions,
268
+ index: index,
269
+ rowSpan: dRowSpan,
270
+ colSpan: dColSpan
271
+ } : {
272
+ value: positions,
273
+ index: index,
274
+ row: dOrder,
275
+ col: dCol
268
276
  });
269
277
  }
270
278
  }
@@ -158,4 +158,41 @@ export interface TileLayoutRepositionEvent {
158
158
  * The new positions of the TileLayout tiles.
159
159
  */
160
160
  value: Array<TileStrictPosition>;
161
+ /**
162
+ * The index of the currently moved tile.
163
+ */
164
+ index: number;
165
+ /**
166
+ * Returns 0 if the row is not changed, 1 if the item is dragged to the next row
167
+ * and -1 if the item is drag to the previous row.
168
+ */
169
+ row: number;
170
+ /**
171
+ * Returns 0 if the column is not changed, 1 if the item is dragged to the next column
172
+ * and -1 if the item is drag to the previous column.
173
+ */
174
+ col: number;
175
+ }
176
+ /**
177
+ * The arguments for the `onTileresize` TileLayout event.
178
+ */
179
+ export interface TileLayoutTileResizeEvent {
180
+ /**
181
+ * The new resized positions of the TileLayout tiles.
182
+ */
183
+ value: Array<TileStrictPosition>;
184
+ /**
185
+ * The index of the currently resized tile.
186
+ */
187
+ index: number;
188
+ /**
189
+ * Returns 0 if the rowSpan is not changed, 1 if the rowSpan is increased
190
+ * and -1 if the rowSpan is decreased.
191
+ */
192
+ rowSpan: number;
193
+ /**
194
+ * Returns 0 if the columnSpan is not changed, 1 if the columnSpan is increased
195
+ * and -1 if the columnSpan is decreased.
196
+ */
197
+ colSpan: number;
161
198
  }
@@ -17,6 +17,11 @@ var package_metadata_1 = require("../package-metadata");
17
17
  */
18
18
  var DrawerVue2 = {
19
19
  name: 'KendoDrawer',
20
+ // @ts-ignore
21
+ emits: {
22
+ select: null,
23
+ overlayclick: null
24
+ },
20
25
  props: {
21
26
  animation: {
22
27
  type: [Object, Boolean],
@@ -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: 1682487381,
11
+ publishDate: 1684154670,
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
  };
@@ -349,7 +349,7 @@ var TileVue2 = {
349
349
  row = -1;
350
350
  }
351
351
  if (col !== 0 || row !== 0) {
352
- this.$emit('update', this.$props.index, 0, 0, row, col);
352
+ this.$emit('update', this.$props.index, 0, 0, row, col, true);
353
353
  }
354
354
  },
355
355
  handlePress: function handlePress(e) {
@@ -227,7 +227,7 @@ var TileLayoutVue2 = {
227
227
  this.$el.focus();
228
228
  }
229
229
  },
230
- updateHandle: function updateHandle(index, dOrder, dCol, dRowSpan, dColSpan) {
230
+ updateHandle: function updateHandle(index, dOrder, dCol, dRowSpan, dColSpan, isResized) {
231
231
  if (dRowSpan === void 0) {
232
232
  dRowSpan = 0;
233
233
  }
@@ -269,8 +269,16 @@ var TileLayoutVue2 = {
269
269
  }
270
270
  if (shouldUpdate) {
271
271
  this.currentPositions = positions;
272
- this.$emit('reposition', {
273
- value: positions
272
+ this.$emit(isResized ? 'tileresize' : 'reposition', isResized ? {
273
+ value: positions,
274
+ index: index,
275
+ rowSpan: dRowSpan,
276
+ colSpan: dColSpan
277
+ } : {
278
+ value: positions,
279
+ index: index,
280
+ row: dOrder,
281
+ col: dCol
274
282
  });
275
283
  }
276
284
  }
@@ -158,4 +158,41 @@ export interface TileLayoutRepositionEvent {
158
158
  * The new positions of the TileLayout tiles.
159
159
  */
160
160
  value: Array<TileStrictPosition>;
161
+ /**
162
+ * The index of the currently moved tile.
163
+ */
164
+ index: number;
165
+ /**
166
+ * Returns 0 if the row is not changed, 1 if the item is dragged to the next row
167
+ * and -1 if the item is drag to the previous row.
168
+ */
169
+ row: number;
170
+ /**
171
+ * Returns 0 if the column is not changed, 1 if the item is dragged to the next column
172
+ * and -1 if the item is drag to the previous column.
173
+ */
174
+ col: number;
175
+ }
176
+ /**
177
+ * The arguments for the `onTileresize` TileLayout event.
178
+ */
179
+ export interface TileLayoutTileResizeEvent {
180
+ /**
181
+ * The new resized positions of the TileLayout tiles.
182
+ */
183
+ value: Array<TileStrictPosition>;
184
+ /**
185
+ * The index of the currently resized tile.
186
+ */
187
+ index: number;
188
+ /**
189
+ * Returns 0 if the rowSpan is not changed, 1 if the rowSpan is increased
190
+ * and -1 if the rowSpan is decreased.
191
+ */
192
+ rowSpan: number;
193
+ /**
194
+ * Returns 0 if the columnSpan is not changed, 1 if the columnSpan is increased
195
+ * and -1 if the columnSpan is decreased.
196
+ */
197
+ colSpan: number;
161
198
  }
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.10.0",
4
+ "version": "3.10.1-dev.202305151253",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -45,9 +45,9 @@
45
45
  "vue": "^2.6.12 || ^3.0.2"
46
46
  },
47
47
  "dependencies": {
48
- "@progress/kendo-vue-animation": "3.10.0",
49
- "@progress/kendo-vue-common": "3.10.0",
50
- "@progress/kendo-vue-popup": "3.10.0"
48
+ "@progress/kendo-vue-animation": "3.10.1-dev.202305151253",
49
+ "@progress/kendo-vue-common": "3.10.1-dev.202305151253",
50
+ "@progress/kendo-vue-popup": "3.10.1-dev.202305151253"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@progress/kendo-data-query": "^1.5.0",
@@ -55,15 +55,15 @@
55
55
  "@progress/kendo-drawing": "^1.8.0",
56
56
  "@progress/kendo-licensing": "^1.3.0",
57
57
  "@progress/kendo-svg-icons": "^1.0.0",
58
- "@progress/kendo-vue-buttons": "3.10.0",
59
- "@progress/kendo-vue-charts": "3.10.0",
60
- "@progress/kendo-vue-dateinputs": "3.10.0",
61
- "@progress/kendo-vue-dropdowns": "3.10.0",
62
- "@progress/kendo-vue-grid": "3.10.0",
63
- "@progress/kendo-vue-indicators": "3.10.0",
64
- "@progress/kendo-vue-inputs": "3.10.0",
65
- "@progress/kendo-vue-intl": "3.10.0",
66
- "@progress/kendo-vue-progressbars": "3.10.0"
58
+ "@progress/kendo-vue-buttons": "3.10.1-dev.202305151253",
59
+ "@progress/kendo-vue-charts": "3.10.1-dev.202305151253",
60
+ "@progress/kendo-vue-dateinputs": "3.10.1-dev.202305151253",
61
+ "@progress/kendo-vue-dropdowns": "3.10.1-dev.202305151253",
62
+ "@progress/kendo-vue-grid": "3.10.1-dev.202305151253",
63
+ "@progress/kendo-vue-indicators": "3.10.1-dev.202305151253",
64
+ "@progress/kendo-vue-inputs": "3.10.1-dev.202305151253",
65
+ "@progress/kendo-vue-intl": "3.10.1-dev.202305151253",
66
+ "@progress/kendo-vue-progressbars": "3.10.1-dev.202305151253"
67
67
  },
68
68
  "@progress": {
69
69
  "friendlyName": "Layouts",