@progress/kendo-vue-layout 3.1.3 → 3.1.5-dev.202204110939

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.
Files changed (43) hide show
  1. package/NOTICE.txt +49 -6
  2. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  3. package/dist/es/card/Avatar.js +1 -1
  4. package/dist/es/main.d.ts +9 -0
  5. package/dist/es/main.js +9 -0
  6. package/dist/es/package-metadata.js +1 -1
  7. package/dist/es/panelbar/PanelBar.d.ts +4 -4
  8. package/dist/es/panelbar/PanelBar.js +62 -95
  9. package/dist/es/panelbar/PanelBarGroup.d.ts +47 -0
  10. package/dist/es/panelbar/PanelBarGroup.js +126 -0
  11. package/dist/es/panelbar/PanelBarItem.d.ts +0 -1
  12. package/dist/es/panelbar/PanelBarItem.js +118 -125
  13. package/dist/es/panelbar/interfaces/PanelBarItemProps.d.ts +9 -13
  14. package/dist/es/panelbar/interfaces/PanelBarProps.d.ts +4 -0
  15. package/dist/es/panelbar/interfaces/RenderPanelBarItem.d.ts +2 -2
  16. package/dist/es/panelbar/util.d.ts +7 -21
  17. package/dist/es/panelbar/util.js +136 -146
  18. package/dist/es/splitter/Splitter.d.ts +1 -5
  19. package/dist/es/splitter/Splitter.js +114 -146
  20. package/dist/es/splitter/SplitterBar.js +118 -68
  21. package/dist/es/splitter/SplitterPane.d.ts +8 -30
  22. package/dist/es/splitter/SplitterPane.js +10 -4
  23. package/dist/npm/card/Avatar.js +1 -1
  24. package/dist/npm/main.d.ts +9 -0
  25. package/dist/npm/main.js +9 -0
  26. package/dist/npm/package-metadata.js +1 -1
  27. package/dist/npm/panelbar/PanelBar.d.ts +4 -4
  28. package/dist/npm/panelbar/PanelBar.js +62 -94
  29. package/dist/npm/panelbar/PanelBarGroup.d.ts +47 -0
  30. package/dist/npm/panelbar/PanelBarGroup.js +138 -0
  31. package/dist/npm/panelbar/PanelBarItem.d.ts +0 -1
  32. package/dist/npm/panelbar/PanelBarItem.js +117 -124
  33. package/dist/npm/panelbar/interfaces/PanelBarItemProps.d.ts +9 -13
  34. package/dist/npm/panelbar/interfaces/PanelBarProps.d.ts +4 -0
  35. package/dist/npm/panelbar/interfaces/RenderPanelBarItem.d.ts +2 -2
  36. package/dist/npm/panelbar/util.d.ts +7 -21
  37. package/dist/npm/panelbar/util.js +137 -147
  38. package/dist/npm/splitter/Splitter.d.ts +1 -5
  39. package/dist/npm/splitter/Splitter.js +113 -145
  40. package/dist/npm/splitter/SplitterBar.js +118 -68
  41. package/dist/npm/splitter/SplitterPane.d.ts +8 -30
  42. package/dist/npm/splitter/SplitterPane.js +9 -3
  43. package/package.json +10 -10
@@ -12,19 +12,6 @@ var __assign = this && this.__assign || function () {
12
12
  };
13
13
 
14
14
  return __assign.apply(this, arguments);
15
- };
16
-
17
- var __rest = this && this.__rest || function (s, e) {
18
- var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
24
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
- }
27
- return t;
28
15
  }; // @ts-ignore
29
16
 
30
17
 
@@ -33,7 +20,7 @@ var allVue = Vue;
33
20
  var gh = allVue.h;
34
21
  import { SplitterPane } from './SplitterPane';
35
22
  import { SplitterBar } from './SplitterBar';
36
- import { classNames } from '@progress/kendo-vue-common';
23
+ import { classNames, getListeners, templateRendering } from '@progress/kendo-vue-common';
37
24
  import { validatePackage } from '@progress/kendo-vue-common';
38
25
  import { packageMetadata } from '../package-metadata';
39
26
  /**
@@ -57,7 +44,7 @@ var SplitterVue2 = {
57
44
  props: {
58
45
  orientation: {
59
46
  type: String,
60
- default: 'vertical',
47
+ default: 'horizontal',
61
48
  validator: function validator(value) {
62
49
  return ['vertical', 'horizontal'].includes(value);
63
50
  }
@@ -69,21 +56,17 @@ var SplitterVue2 = {
69
56
  isControlledState: function isControlledState() {
70
57
  return this.$props.panes !== undefined;
71
58
  },
72
- panes: function panes() {
73
- return this.panesDuringOnChange !== undefined ? this.panesDuringOnChange : this.isControlledState ? this.$props.panes : this.state.panes;
74
- },
75
- orientation: function orientation() {
76
- return this.$props.orientation || 'horizontal';
59
+ computedPanes: function computedPanes() {
60
+ // return this.panesDuringOnChange !== undefined ?
61
+ // this.panesDuringOnChange :
62
+ return this.isControlledState ? this.$props.panes : this.currentPanes;
77
63
  },
78
64
  isRtl: function isRtl() {
79
- return this._container && getComputedStyle(this._container).direction === 'rtl' || false;
80
- } // panesContent(): React.ReactNode[] {
81
- // return React.Children.toArray(this.$props.children).filter(c => c);
82
- // },
83
-
65
+ return this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
66
+ }
84
67
  },
85
68
  created: function created() {
86
- validatePackage(packageMetadata); // private panesDuringOnChange?: SplitterPaneProps[];
69
+ validatePackage(packageMetadata); // this.panesDuringOnChange?: SplitterPaneProps[];
87
70
  },
88
71
  data: function data() {
89
72
  return {
@@ -94,7 +77,7 @@ var SplitterVue2 = {
94
77
  originalY: 0,
95
78
  originalPrevSize: 0,
96
79
  originalNextSize: 0,
97
- panes: this.$props.defaultPanes || []
80
+ currentPanes: this.$props.defaultPanes || []
98
81
  };
99
82
  },
100
83
  // @ts-ignore
@@ -106,63 +89,14 @@ var SplitterVue2 = {
106
89
  },
107
90
  // @ts-ignore
108
91
  render: function render(createElement) {
109
- var _this = this;
110
-
111
92
  var h = gh || createElement;
112
- var panesContent = this.panesContent;
113
- var panesOptions = this.panesOptions(panesContent);
114
- var className = classNames('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-" + this.orientation, this.$props.className);
93
+ var panesOptions = this.panesOptions();
94
+ var className = classNames('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-" + this.orientation);
115
95
  this.validatePanes(panesOptions);
116
- return h("div", {
117
- style: this.$props.style,
118
- ref: function ref(_ref) {
119
- return _this._container = _ref;
120
- },
121
- "class": className
122
- }, [this.mapSplitterPanes(panesOptions, panesContent)]);
123
- },
124
- methods: {
125
- validatePanes: function validatePanes(panesOptions) {
126
- var withoutSize = panesOptions.filter(function (pane) {
127
- return pane.size === undefined;
128
- });
129
-
130
- if (!withoutSize.length) {
131
- throw new Error('The Splitter should have at least one pane without a set size.');
132
- }
133
- },
134
- mapPaneOptions: function mapPaneOptions(panes, panesContent) {
135
- var orientation = this.orientation;
136
- var _a = this.state,
137
- dragIndex = _a.dragIndex,
138
- isDragging = _a.isDragging;
139
- var paneOptions = [];
140
-
141
- for (var index = 0; index < panesContent.length; index++) {
142
- var containsSplitter = false;
143
- var paneContent = panesContent[index]; // if (React.isValidElement(paneContent)) {
144
- // containsSplitter = (paneContent.type as React.ComponentType).displayName === 'Splitter';
145
- // }
146
-
147
- var overlay = false;
148
-
149
- if (isDragging && dragIndex !== undefined) {
150
- overlay = dragIndex === index || dragIndex + 1 === index;
151
- }
152
-
153
- paneOptions.push(__assign(__assign(__assign({}, PANE_DEFAULTS), {
154
- orientation: orientation,
155
- containsSplitter: containsSplitter,
156
- overlay: overlay
157
- }), (panes || [])[index]));
158
- }
159
-
160
- return paneOptions;
161
- },
162
- mapSplitterPanes: function mapSplitterPanes(panes, panesContent) {
163
- var _this = this;
164
96
 
97
+ var mapSplitterPanes = function mapSplitterPanes(panes) {
165
98
  return panes.map(function (pane, index) {
99
+ var content = templateRendering.call(this, pane.content, getListeners.call(this));
166
100
  var splitterBar;
167
101
  var paneKey = index * 2;
168
102
  var barKey = paneKey + 1;
@@ -174,36 +108,90 @@ var SplitterVue2 = {
174
108
  index: index,
175
109
  attrs: this.v3 ? undefined : {
176
110
  index: index,
177
- orientation: pane.orientation,
111
+ orientation: this.orientation,
178
112
  prev: pane,
179
113
  next: next
180
114
  },
181
- orientation: pane.orientation,
115
+ orientation: this.orientation,
182
116
  prev: pane,
183
117
  next: next,
184
- onDrag: _this.onBarDragResize,
118
+ onDrag: this.onBarDragResize,
185
119
  on: this.v3 ? undefined : {
186
- "drag": _this.onBarDragResize,
187
- "toggle": _this.onBarToggle,
188
- "keyboardResize": _this.onBarKeyboardResize
120
+ "drag": this.onBarDragResize,
121
+ "toggle": this.onBarToggle,
122
+ "keyboardresize": this.onBarKeyboardResize
189
123
  },
190
- onToggle: _this.onBarToggle,
191
- onKeyboardResize: _this.onBarKeyboardResize
124
+ onToggle: this.onBarToggle,
125
+ onKeyboardresize: this.onBarKeyboardResize
192
126
  });
193
127
  }
194
128
 
195
129
  var splitterPane = h(SplitterPane, {
196
- key: paneKey
197
- }, [panesContent[index]]);
130
+ key: paneKey,
131
+ containsSplitter: pane.containsSplitter,
132
+ attrs: this.v3 ? undefined : {
133
+ containsSplitter: pane.containsSplitter,
134
+ size: pane.size,
135
+ min: pane.min,
136
+ max: pane.max,
137
+ resizable: pane.resizable,
138
+ collapsible: pane.collapsible,
139
+ collapsed: pane.collapsed,
140
+ scrollable: pane.scrollable,
141
+ keepMounted: pane.keepMounted,
142
+ content: content
143
+ },
144
+ size: pane.size,
145
+ min: pane.min,
146
+ max: pane.max,
147
+ resizable: pane.resizable,
148
+ collapsible: pane.collapsible,
149
+ collapsed: pane.collapsed,
150
+ scrollable: pane.scrollable,
151
+ keepMounted: pane.keepMounted,
152
+ content: content
153
+ });
198
154
  return [splitterPane, splitterBar];
155
+ }, this);
156
+ };
157
+
158
+ return h("div", {
159
+ "class": className
160
+ }, [mapSplitterPanes.call(this, panesOptions)]);
161
+ },
162
+ methods: {
163
+ validatePanes: function validatePanes(panesOptions) {
164
+ var withoutSize = panesOptions.filter(function (pane) {
165
+ return pane.size === undefined;
199
166
  });
167
+
168
+ if (!withoutSize.length) {
169
+ throw new Error('The Splitter should have at least one pane without a set size.');
170
+ }
200
171
  },
201
- onBarToggle: function onBarToggle(index, event) {
202
- var _this = this;
172
+ mapPaneOptions: function mapPaneOptions(panes) {
173
+ var orientation = this.orientation;
174
+ var paneOptions = [];
203
175
 
204
- var panesOptions = this.panesOptions(this.panesContent);
176
+ for (var index = 0; index < panes.length; index++) {
177
+ var overlay = false;
178
+
179
+ if (this.isDragging && this.dragIndex !== undefined) {
180
+ overlay = this.dragIndex === index || this.dragIndex + 1 === index;
181
+ }
182
+
183
+ paneOptions.push(__assign(__assign(__assign({}, PANE_DEFAULTS), {
184
+ orientation: orientation,
185
+ overlay: overlay
186
+ }), panes[index]));
187
+ }
188
+
189
+ return paneOptions;
190
+ },
191
+ onBarToggle: function onBarToggle(index, event) {
192
+ var panesOptions = this.panesOptions();
205
193
  var updatedState = panesOptions.map(function (pane, idx) {
206
- var paneProps = _this.getPaneProps(pane);
194
+ var paneProps = pane;
207
195
 
208
196
  if (idx === index) {
209
197
  return __assign(__assign({}, paneProps), {
@@ -213,14 +201,11 @@ var SplitterVue2 = {
213
201
  return __assign({}, paneProps);
214
202
  }
215
203
  });
216
-
217
- if (this.$props.onChange) {
218
- this.$props.onChange({
219
- newState: updatedState,
220
- isLast: true,
221
- nativeEvent: event
222
- });
223
- }
204
+ this.$emit('change', {
205
+ newState: updatedState,
206
+ isLast: true,
207
+ nativeEvent: event
208
+ });
224
209
  },
225
210
  onBarDragResize: function onBarDragResize(event, barElement, index, isFirst, isLast) {
226
211
  var time = new Date().getTime();
@@ -236,19 +221,17 @@ var SplitterVue2 = {
236
221
  }
237
222
 
238
223
  if (isFirst) {
239
- this.setState({
240
- isDragging: true,
241
- dragIndex: index,
242
- startTime: time,
243
- originalX: pageX,
244
- originalY: pageY,
245
- originalPrevSize: this.elementSize(prevElement),
246
- originalNextSize: this.elementSize(nextElement)
247
- });
224
+ this.isDragging = true;
225
+ this.dragIndex = index;
226
+ this.startTime = time;
227
+ this.originalX = pageX;
228
+ this.originalY = pageY;
229
+ this.originalPrevSize = this.elementSize(prevElement);
230
+ this.originalNextSize = this.elementSize(nextElement);
248
231
  return;
249
232
  }
250
233
 
251
- var _b = this.state,
234
+ var _b = this.$data,
252
235
  originalPrevSize = _b.originalPrevSize,
253
236
  originalNextSize = _b.originalNextSize,
254
237
  startTime = _b.startTime,
@@ -295,11 +278,11 @@ var SplitterVue2 = {
295
278
  };
296
279
  },
297
280
  containerSize: function containerSize() {
298
- if (!this._container) {
281
+ if (!this.$el) {
299
282
  return 0;
300
283
  }
301
284
 
302
- return this.elementSize(this._container, true);
285
+ return this.elementSize(this.$el, true);
303
286
  },
304
287
  isPercent: function isPercent(size) {
305
288
  return /%$/.test(size);
@@ -313,19 +296,17 @@ var SplitterVue2 = {
313
296
 
314
297
  return result;
315
298
  },
316
- panesOptions: function panesOptions(panesContent) {
317
- return this.mapPaneOptions(this.panes, panesContent);
299
+ panesOptions: function panesOptions() {
300
+ return this.mapPaneOptions(this.computedPanes);
318
301
  },
319
302
  resetDragState: function resetDragState() {
320
- this.setState({
321
- isDragging: false,
322
- dragIndex: undefined,
323
- startTime: 0,
324
- originalX: 0,
325
- originalY: 0,
326
- originalPrevSize: 0,
327
- originalNextSize: 0
328
- });
303
+ this.isDragging = false;
304
+ this.dragIndex = undefined;
305
+ this.startTime = 0;
306
+ this.originalX = 0;
307
+ this.originalY = 0;
308
+ this.originalPrevSize = 0;
309
+ this.originalNextSize = 0;
329
310
  },
330
311
  elementSize: function elementSize(el, isContainer) {
331
312
  var sizeType = isContainer ? 'client' : 'offset';
@@ -345,7 +326,7 @@ var SplitterVue2 = {
345
326
  resize: function resize(prevIndex, nextIndex, originalPrevSize, originalNextSize, delta, isLast, event) {
346
327
  var _this = this;
347
328
 
348
- var panesOptions = this.panesOptions(this.panesContent);
329
+ var panesOptions = this.panesOptions();
349
330
  var prevOptions = panesOptions[prevIndex];
350
331
  var nextOptions = panesOptions[nextIndex];
351
332
  var total = originalPrevSize + originalNextSize;
@@ -393,7 +374,7 @@ var SplitterVue2 = {
393
374
  }
394
375
 
395
376
  var updatedState = panesOptions.map(function (pane, idx) {
396
- var paneProps = _this.getPaneProps(pane);
377
+ var paneProps = pane;
397
378
 
398
379
  if (idx === prevIndex) {
399
380
  return __assign(__assign({}, paneProps), {
@@ -410,28 +391,15 @@ var SplitterVue2 = {
410
391
  this.panesDuringOnChange = updatedState;
411
392
 
412
393
  if (!this.isControlledState) {
413
- this.setState({
414
- panes: updatedState
415
- });
416
- }
417
-
418
- if (this.$props.onChange) {
419
- this.$props.onChange({
420
- newState: updatedState,
421
- isLast: isLast,
422
- nativeEvent: event
423
- });
394
+ this.currentPanes = updatedState;
424
395
  }
425
396
 
397
+ this.$emit('change', {
398
+ newState: updatedState,
399
+ isLast: isLast,
400
+ nativeEvent: event
401
+ });
426
402
  this.panesDuringOnChange = undefined;
427
- },
428
- getPaneProps: function getPaneProps(pane) {
429
- var orientation = pane.orientation,
430
- overlay = pane.overlay,
431
- containsSplitter = pane.containsSplitter,
432
- others = __rest(pane, ["orientation", "overlay", "containsSplitter"]);
433
-
434
- return others;
435
403
  }
436
404
  }
437
405
  };
@@ -6,6 +6,12 @@ import { classNames, Draggable, Keys } from '@progress/kendo-vue-common'; // tsl
6
6
 
7
7
  var SplitterBarVue2 = {
8
8
  name: 'KendoSplitterBar',
9
+ // @ts-ignore
10
+ emits: {
11
+ drag: null,
12
+ toggle: null,
13
+ keyboardresize: null
14
+ },
9
15
  props: {
10
16
  orientation: {
11
17
  type: String,
@@ -20,13 +26,10 @@ var SplitterBarVue2 = {
20
26
  },
21
27
  created: function created() {
22
28
  this.draggable = null;
23
- this.state = {
24
- focused: false
25
- };
26
29
  },
27
30
  computed: {
28
31
  isStatic: function isStatic() {
29
- var _a = this.props,
32
+ var _a = this.$props,
30
33
  prev = _a.prev,
31
34
  next = _a.next;
32
35
  var betweenResizablePanes = prev.resizable && next.resizable;
@@ -34,7 +37,7 @@ var SplitterBarVue2 = {
34
37
  return !betweenResizablePanes && !nearCollapsiblePane;
35
38
  },
36
39
  isDraggable: function isDraggable() {
37
- var _a = this.props,
40
+ var _a = this.$props,
38
41
  prev = _a.prev,
39
42
  next = _a.next;
40
43
  var betweenResizablePanes = prev.resizable && next.resizable;
@@ -42,7 +45,7 @@ var SplitterBarVue2 = {
42
45
  return !!betweenResizablePanes && !nearCollapsedPane;
43
46
  },
44
47
  isHorizontal: function isHorizontal() {
45
- return this.props.orientation === 'horizontal';
48
+ return this.$props.orientation === 'horizontal';
46
49
  }
47
50
  },
48
51
  data: function data() {
@@ -50,6 +53,11 @@ var SplitterBarVue2 = {
50
53
  focused: false
51
54
  };
52
55
  },
56
+ mounted: function mounted() {
57
+ if (this.$el) {
58
+ this.draggable = this.$refs.draggable;
59
+ }
60
+ },
53
61
  // @ts-ignore
54
62
  setup: !gh ? undefined : function () {
55
63
  var v3 = !!gh;
@@ -59,6 +67,8 @@ var SplitterBarVue2 = {
59
67
  },
60
68
  // @ts-ignore
61
69
  render: function render(createElement) {
70
+ var _this2 = this;
71
+
62
72
  var _a;
63
73
 
64
74
  var _this = this;
@@ -67,72 +77,112 @@ var SplitterBarVue2 = {
67
77
  var isDraggable = this.isDraggable;
68
78
  var isStatic = this.isStatic;
69
79
  var isHorizontal = this.isHorizontal;
70
- var barClasses = classNames('k-splitbar', (_a = {}, _a['k-state-focused'] = this.state.focused, _a['k-splitbar-horizontal'] = isHorizontal, _a['k-splitbar-vertical'] = !isHorizontal, _a['k-splitbar-draggable-horizontal'] = isHorizontal && isDraggable, _a['k-splitbar-draggable-vertical'] = !isHorizontal && isDraggable, _a['k-splitbar-static-horizontal'] = isHorizontal && isStatic, _a['k-splitbar-static-vertical'] = !isHorizontal && isStatic, _a));
80
+ var barClasses = classNames('k-splitbar', (_a = {}, _a['k-state-focused'] = this.focused, _a['k-splitbar-horizontal'] = isHorizontal, _a['k-splitbar-vertical'] = !isHorizontal, _a['k-splitbar-draggable-horizontal'] = isHorizontal && isDraggable, _a['k-splitbar-draggable-vertical'] = !isHorizontal && isDraggable, _a['k-splitbar-static-horizontal'] = isHorizontal && isStatic, _a['k-splitbar-static-vertical'] = !isHorizontal && isStatic, _a));
71
81
  var previousArrowClass = this.previousArrowClass(isHorizontal);
72
82
  var nextArrowClass = this.nextArrowClass(isHorizontal);
73
- return h(Draggable, {
74
- onPress: function onPress(event) {
75
- return _this.onDrag(event, true, false);
76
- },
77
- on: this.v3 ? undefined : {
78
- "press": function onPress(event) {
83
+ return (// @ts-ignore function children
84
+ h(Draggable, {
85
+ onPress: function onPress(event) {
79
86
  return _this.onDrag(event, true, false);
80
87
  },
81
- "drag": function drag(event) {
88
+ on: this.v3 ? undefined : {
89
+ "press": function onPress(event) {
90
+ return _this.onDrag(event, true, false);
91
+ },
92
+ "drag": function drag(event) {
93
+ return _this.onDrag(event, false, false);
94
+ },
95
+ "release": function release(event) {
96
+ return _this.onDrag(event, false, true);
97
+ }
98
+ },
99
+ onDrag: function drag(event) {
82
100
  return _this.onDrag(event, false, false);
83
101
  },
84
- "release": function release(event) {
102
+ onRelease: function release(event) {
85
103
  return _this.onDrag(event, false, true);
86
- }
87
- },
88
- onDrag: function drag(event) {
89
- return _this.onDrag(event, false, false);
90
- },
91
- onRelease: function release(event) {
92
- return _this.onDrag(event, false, true);
93
- }
94
- }, [h("div", {
95
- tabIndex: isStatic ? -1 : 0,
96
- attrs: this.v3 ? undefined : {
104
+ },
105
+ ref: 'draggable'
106
+ }, this.v3 ? function () {
107
+ return [h("div", {
108
+ tabIndex: isStatic ? -1 : 0,
109
+ attrs: _this2.v3 ? undefined : {
110
+ tabIndex: isStatic ? -1 : 0,
111
+ role: 'separator'
112
+ },
113
+ role: 'separator',
114
+ "class": barClasses,
115
+ style: {
116
+ touchAction: 'none'
117
+ },
118
+ onFocusin: _this2.onFocus,
119
+ on: _this2.v3 ? undefined : {
120
+ "focusin": _this2.onFocus,
121
+ "focusout": _this2.onBlur,
122
+ "dblclick": _this2.onToggle,
123
+ "keydown": _this2.onKeyDown
124
+ },
125
+ onFocusout: _this2.onBlur,
126
+ onDblclick: _this2.onToggle,
127
+ onKeydown: _this2.onKeyDown
128
+ }, [h("div", {
129
+ "class": previousArrowClass,
130
+ onClick: _this2.onPrevToggle,
131
+ on: _this2.v3 ? undefined : {
132
+ "click": _this2.onPrevToggle
133
+ }
134
+ }), h("div", {
135
+ "class": 'k-resize-handle'
136
+ }), h("div", {
137
+ "class": nextArrowClass,
138
+ onClick: _this2.onNextToggle,
139
+ on: _this2.v3 ? undefined : {
140
+ "click": _this2.onNextToggle
141
+ }
142
+ })])];
143
+ } : [h("div", {
97
144
  tabIndex: isStatic ? -1 : 0,
98
- role: 'separator'
99
- },
100
- role: 'separator',
101
- "class": barClasses,
102
- style: {
103
- touchAction: 'none'
104
- },
105
- onFocus: this.onFocus,
106
- on: this.v3 ? undefined : {
107
- "focus": this.onFocus,
108
- "blur": this.onBlur,
109
- "dblclick": this.onToggle,
110
- "keydown": this.onKeyDown
111
- },
112
- onBlur: this.onBlur,
113
- onDblclick: this.onToggle,
114
- onKeydown: this.onKeyDown
115
- }, [h("div", {
116
- "class": previousArrowClass,
117
- onClick: this.onPrevToggle,
118
- on: this.v3 ? undefined : {
119
- "click": this.onPrevToggle
120
- }
121
- }), h("div", {
122
- "class": 'k-resize-handle'
123
- }), h("div", {
124
- "class": nextArrowClass,
125
- onClick: this.onNextToggle,
126
- on: this.v3 ? undefined : {
127
- "click": this.onNextToggle
128
- }
129
- })])]);
145
+ attrs: _this2.v3 ? undefined : {
146
+ tabIndex: isStatic ? -1 : 0,
147
+ role: 'separator'
148
+ },
149
+ role: 'separator',
150
+ "class": barClasses,
151
+ style: {
152
+ touchAction: 'none'
153
+ },
154
+ onFocusin: _this2.onFocus,
155
+ on: _this2.v3 ? undefined : {
156
+ "focusin": _this2.onFocus,
157
+ "focusout": _this2.onBlur,
158
+ "dblclick": _this2.onToggle,
159
+ "keydown": _this2.onKeyDown
160
+ },
161
+ onFocusout: _this2.onBlur,
162
+ onDblclick: _this2.onToggle,
163
+ onKeydown: _this2.onKeyDown
164
+ }, [h("div", {
165
+ "class": previousArrowClass,
166
+ onClick: _this2.onPrevToggle,
167
+ on: _this2.v3 ? undefined : {
168
+ "click": _this2.onPrevToggle
169
+ }
170
+ }), h("div", {
171
+ "class": 'k-resize-handle'
172
+ }), h("div", {
173
+ "class": nextArrowClass,
174
+ onClick: _this2.onNextToggle,
175
+ on: _this2.v3 ? undefined : {
176
+ "click": _this2.onNextToggle
177
+ }
178
+ })])])
179
+ );
130
180
  },
131
181
  methods: {
132
182
  onDrag: function onDrag(data, isFirst, isLast) {
133
- var event = data.event;
134
- var index = this.props.index;
135
- var element = this.$el; // this.draggable && this.draggable.element;
183
+ var event = data;
184
+ var index = this.$props.index;
185
+ var element = this.draggable && this.draggable.element;
136
186
 
137
187
  if (!isLast && event) {
138
188
  event.originalEvent.preventDefault();
@@ -149,7 +199,7 @@ var SplitterBarVue2 = {
149
199
  this.focused = false;
150
200
  },
151
201
  onToggle: function onToggle(event) {
152
- var _a = this.props,
202
+ var _a = this.$props,
153
203
  index = _a.index,
154
204
  prev = _a.prev,
155
205
  next = _a.next;
@@ -159,7 +209,7 @@ var SplitterBarVue2 = {
159
209
  }
160
210
  },
161
211
  onPrevToggle: function onPrevToggle(event) {
162
- var _a = this.props,
212
+ var _a = this.$props,
163
213
  index = _a.index,
164
214
  prev = _a.prev;
165
215
 
@@ -168,7 +218,7 @@ var SplitterBarVue2 = {
168
218
  }
169
219
  },
170
220
  onNextToggle: function onNextToggle(event) {
171
- var _a = this.props,
221
+ var _a = this.$props,
172
222
  index = _a.index,
173
223
  next = _a.next;
174
224
 
@@ -181,8 +231,8 @@ var SplitterBarVue2 = {
181
231
 
182
232
  var keyCode = event && event.keyCode;
183
233
  var isHorizontal = this.isHorizontal;
184
- var index = this.props.index;
185
- var element = this.$el; // this.draggable && this.draggable.element;
234
+ var index = this.$props.index;
235
+ var element = this.draggable && this.draggable.element;
186
236
 
187
237
  var onKeyboardResize = function onKeyboardResize(el, idx, offset) {
188
238
  event.preventDefault();
@@ -212,7 +262,7 @@ var SplitterBarVue2 = {
212
262
  previousArrowClass: function previousArrowClass(isHorizontal) {
213
263
  var _a;
214
264
 
215
- var prev = this.props.prev;
265
+ var prev = this.$props.prev;
216
266
  var isCollapsible = prev.collapsible;
217
267
  var isCollapsed = prev.collapsed;
218
268
  return classNames('k-icon', (_a = {}, _a['k-hidden'] = !isCollapsible, _a['k-collapse-prev'] = isCollapsible, _a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && !isCollapsed, _a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && isCollapsed, _a['k-i-arrow-60-up'] = isCollapsible && !isHorizontal && !isCollapsed, _a['k-i-arrow-60-down'] = isCollapsible && !isHorizontal && isCollapsed, _a));
@@ -220,7 +270,7 @@ var SplitterBarVue2 = {
220
270
  nextArrowClass: function nextArrowClass(isHorizontal) {
221
271
  var _a;
222
272
 
223
- var next = this.props.next;
273
+ var next = this.$props.next;
224
274
  var isCollapsible = next.collapsible;
225
275
  var isCollapsed = next.collapsed;
226
276
  return classNames('k-icon', (_a = {}, _a['k-hidden'] = !isCollapsible, _a['k-collapse-next'] = isCollapsible, _a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && !isCollapsed, _a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && isCollapsed, _a['k-i-arrow-60-down'] = isCollapsible && !isHorizontal && !isCollapsed, _a['k-i-arrow-60-up'] = isCollapsible && !isHorizontal && isCollapsed, _a));