@progress/kendo-vue-upload 3.4.0 → 3.4.2-dev.202207070519

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.
@@ -2,9 +2,10 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
- import { classNames, getListeners, getTabIndex, getTemplate, templateRendering, validatePackage } from '@progress/kendo-vue-common';
8
+ import { classNames, getListeners, getTabIndex, getTemplate, setRef, templateRendering, validatePackage } from '@progress/kendo-vue-common';
8
9
  import { dropZoneHint, dropZoneNote, messages } from './messages';
9
10
  import { packageMetadata } from './package-metadata';
10
11
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
@@ -92,8 +93,8 @@ var ExternalDropZoneVue2 = {
92
93
  }
93
94
  },
94
95
  // @ts-ignore
95
- setup: !gh ? undefined : function () {
96
- var v3 = !!gh;
96
+ setup: !isV3 ? undefined : function () {
97
+ var v3 = !!isV3;
97
98
  var externalDropZoneRef = ref(null);
98
99
  var kendoLocalizationService = inject('kendoLocalizationService', {});
99
100
  return {
@@ -103,8 +104,6 @@ var ExternalDropZoneVue2 = {
103
104
  };
104
105
  },
105
106
  render: function render(createElement) {
106
- var _this = this;
107
-
108
107
  var h = gh || createElement;
109
108
  var _a = this.$props,
110
109
  customNote = _a.customNote,
@@ -129,19 +128,17 @@ var ExternalDropZoneVue2 = {
129
128
  defaultRendering: noteElementDefaultRendering
130
129
  });
131
130
  return h("div", {
132
- ref: this.v3 ? function (el) {
133
- _this.externalDropZoneRef = el;
134
- } : 'externalDropZone',
131
+ ref: setRef(this, 'externalDropZone'),
135
132
  id: this.$props.id,
136
133
  attrs: this.v3 ? undefined : {
137
134
  id: this.$props.id,
138
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
135
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
139
136
  },
140
137
  "class": classNames('k-external-dropzone', {
141
138
  'k-external-dropzone-hover': this.overDropZone,
142
139
  'k-state-disabled': this.$props.disabled
143
140
  }, this.$props.className),
144
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
141
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
145
142
  onDrop: this.handleOnDrop,
146
143
  on: this.v3 ? undefined : {
147
144
  "drop": this.handleOnDrop,
package/dist/es/Upload.js CHANGED
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
+ var isV3 = allVue.version[0] === '3';
21
22
  var ref = allVue.ref;
22
23
  import { getListeners, getTabIndex, templateRendering, validatePackage } from '@progress/kendo-vue-common';
23
24
  import { UploadFileStatus } from './interfaces/UploadFileStatus';
@@ -689,8 +690,8 @@ var UploadVue2 = {
689
690
  }
690
691
  },
691
692
  // @ts-ignore
692
- setup: !gh ? undefined : function () {
693
- var v3 = !!gh;
693
+ setup: !isV3 ? undefined : function () {
694
+ var v3 = !!isV3;
694
695
  return {
695
696
  v3: v3
696
697
  };
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { classNames } from '@progress/kendo-vue-common';
@@ -36,8 +37,8 @@ var UploadActionButtonsVue2 = {
36
37
  this._prevNavigationIndex = undefined;
37
38
  },
38
39
  // @ts-ignore
39
- setup: !gh ? undefined : function () {
40
- var v3 = !!gh;
40
+ setup: !isV3 ? undefined : function () {
41
+ var v3 = !!isV3;
41
42
  var uploadElementRef = ref(null);
42
43
  var clearElementRef = ref(null);
43
44
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -2,9 +2,10 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
- import { classNames } from '@progress/kendo-vue-common';
8
+ import { classNames, setRef } from '@progress/kendo-vue-common';
8
9
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
10
  import { messages, select } from './messages';
10
11
  import { UploadInput } from './UploadInput';
@@ -38,8 +39,8 @@ var UploadAddButtonVue2 = {
38
39
  'click': null
39
40
  },
40
41
  // @ts-ignore
41
- setup: !gh ? undefined : function () {
42
- var v3 = !!gh;
42
+ setup: !isV3 ? undefined : function () {
43
+ var v3 = !!isV3;
43
44
  var elementRef = ref(null);
44
45
  var uploadInputRef = ref(null);
45
46
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -119,17 +120,15 @@ var UploadAddButtonVue2 = {
119
120
  "aria-label": selectMessage,
120
121
  "aria-labelledby": ariaLabelledBy,
121
122
  "aria-describedby": ariaDescribedBy,
122
- tabIndex: tabIndex
123
+ tabindex: tabIndex
123
124
  },
124
- ref: this.v3 ? function (el) {
125
- _this.elementRef = el;
126
- } : 'element',
125
+ ref: setRef(this, 'element'),
127
126
  role: "button",
128
127
  "class": buttonClassName,
129
128
  "aria-label": selectMessage,
130
129
  "aria-labelledby": ariaLabelledBy,
131
130
  "aria-describedby": ariaDescribedBy,
132
- tabIndex: tabIndex,
131
+ tabindex: tabIndex,
133
132
  onClick: this.onClick,
134
133
  on: this.v3 ? undefined : {
135
134
  "click": this.onClick
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { classNames } from '@progress/kendo-vue-common';
@@ -80,7 +81,7 @@ var UploadDropZoneVue2 = {
80
81
  document.addEventListener('dragenter', this.onDocumentDragEnter);
81
82
  document.addEventListener('dragover', this.onDocumentDragOver);
82
83
  },
83
- destroyed: !!gh ? undefined : function () {
84
+ destroyed: !!isV3 ? undefined : function () {
84
85
  document.removeEventListener('dragenter', this.onDocumentDragEnter);
85
86
  document.removeEventListener('dragover', this.onDocumentDragOver);
86
87
  },
@@ -90,8 +91,8 @@ var UploadDropZoneVue2 = {
90
91
  document.removeEventListener('dragover', this.onDocumentDragOver);
91
92
  },
92
93
  // @ts-ignore
93
- setup: !gh ? undefined : function () {
94
- var v3 = !!gh;
94
+ setup: !isV3 ? undefined : function () {
95
+ var v3 = !!isV3;
95
96
  var uploadAddButtonRef = ref(null);
96
97
  var kendoLocalizationService = inject('kendoLocalizationService', {});
97
98
  return {
@@ -1,7 +1,9 @@
1
1
  // @ts-ignore
2
+ import { setRef } from '@progress/kendo-vue-common';
2
3
  import * as Vue from 'vue';
3
4
  var allVue = Vue;
4
5
  var gh = allVue.h;
6
+ var isV3 = allVue.version[0] === '3';
5
7
  var ref = allVue.ref;
6
8
  var CHROME_REGEX = /(chrome)[ \/]([\w.]+)/i;
7
9
  var SAFARI_REGEX = /(webkit)[ \/]([\w.]+)/i;
@@ -64,8 +66,8 @@ var UploadInputVue2 = {
64
66
  }
65
67
  },
66
68
  // @ts-ignore
67
- setup: !gh ? undefined : function () {
68
- var v3 = !!gh;
69
+ setup: !isV3 ? undefined : function () {
70
+ var v3 = !!isV3;
69
71
  var inputRef = ref(null);
70
72
  return {
71
73
  v3: v3,
@@ -73,8 +75,6 @@ var UploadInputVue2 = {
73
75
  };
74
76
  },
75
77
  render: function render(createElement) {
76
- var _this = this;
77
-
78
78
  var h = gh || createElement;
79
79
  var _a = this.$props,
80
80
  multiple = _a.multiple,
@@ -82,23 +82,21 @@ var UploadInputVue2 = {
82
82
  disabled = _a.disabled,
83
83
  accept = _a.accept;
84
84
  return h("input", {
85
- ref: this.v3 ? function (el) {
86
- _this.inputRef = el;
87
- } : 'input',
88
- autoComplete: 'off',
85
+ ref: setRef(this, 'input'),
86
+ autocomplete: 'off',
89
87
  attrs: this.v3 ? undefined : {
90
- autoComplete: 'off',
88
+ autocomplete: 'off',
91
89
  name: async.saveField,
92
90
  accept: accept,
93
91
  type: 'file',
94
- tabIndex: -1,
92
+ tabindex: -1,
95
93
  multiple: multiple,
96
94
  disabled: disabled
97
95
  },
98
96
  name: async.saveField,
99
97
  accept: accept,
100
98
  type: 'file',
101
- tabIndex: -1,
99
+ tabindex: -1,
102
100
  multiple: multiple,
103
101
  disabled: disabled,
104
102
  onChange: this.onAdd,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  import { classNames } from '@progress/kendo-vue-common';
7
8
  import { UploadListGroup } from './UploadListGroup';
@@ -43,8 +44,8 @@ var UploadListVue2 = {
43
44
  }
44
45
  },
45
46
  // @ts-ignore
46
- setup: !gh ? undefined : function () {
47
- var v3 = !!gh;
47
+ setup: !isV3 ? undefined : function () {
48
+ var v3 = !!isV3;
48
49
  return {
49
50
  v3: v3
50
51
  };
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { classNames } from '@progress/kendo-vue-common';
@@ -93,8 +94,8 @@ var UploadListActionButtonVue2 = {
93
94
  }
94
95
  },
95
96
  // @ts-ignore
96
- setup: !gh ? undefined : function () {
97
- var v3 = !!gh;
97
+ setup: !isV3 ? undefined : function () {
98
+ var v3 = !!isV3;
98
99
  var kendoLocalizationService = inject('kendoLocalizationService', {});
99
100
  return {
100
101
  v3: v3,
@@ -120,9 +121,9 @@ var UploadListActionButtonVue2 = {
120
121
  type: "button",
121
122
  attrs: this.v3 ? undefined : {
122
123
  type: "button",
123
- tabIndex: -1
124
+ tabindex: -1
124
125
  },
125
- tabIndex: -1,
126
+ tabindex: -1,
126
127
  "class": this.buttonClassNames('retry'),
127
128
  onFocus: this.onRetryFocus,
128
129
  on: this.v3 ? undefined : {
@@ -144,9 +145,9 @@ var UploadListActionButtonVue2 = {
144
145
  type: "button",
145
146
  attrs: this.v3 ? undefined : {
146
147
  type: "button",
147
- tabIndex: -1
148
+ tabindex: -1
148
149
  },
149
- tabIndex: -1,
150
+ tabindex: -1,
150
151
  "class": this.buttonClassNames('action'),
151
152
  onFocus: this.onActionFocus,
152
153
  on: this.v3 ? undefined : {
@@ -2,8 +2,9 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
- import { canUseDOM, classNames, getTemplate } from '@progress/kendo-vue-common';
7
+ import { canUseDOM, classNames, getTemplate, setRef } from '@progress/kendo-vue-common';
7
8
  import { UploadFileStatus } from './interfaces/UploadFileStatus';
8
9
  import { UploadListSingleItem } from './UploadListSingleItem';
9
10
  import { UploadListMultiItem } from './UploadListMultiItem';
@@ -56,8 +57,8 @@ var UploadListGroupVue2 = {
56
57
  }
57
58
  },
58
59
  // @ts-ignore
59
- setup: !gh ? undefined : function () {
60
- var v3 = !!gh;
60
+ setup: !isV3 ? undefined : function () {
61
+ var v3 = !!isV3;
61
62
  var elementRef = ref(null);
62
63
  return {
63
64
  v3: v3,
@@ -65,8 +66,6 @@ var UploadListGroupVue2 = {
65
66
  };
66
67
  },
67
68
  render: function render(createElement) {
68
- var _this = this;
69
-
70
69
  var h = gh || createElement;
71
70
  var _a = this.$props,
72
71
  files = _a.files,
@@ -128,16 +127,14 @@ var UploadListGroupVue2 = {
128
127
  }
129
128
  });
130
129
  return h("li", {
131
- ref: this.v3 ? function (el) {
132
- _this.elementRef = el;
133
- } : 'element',
130
+ ref: setRef(this, 'element'),
134
131
  "class": liClassName,
135
132
  "data-uid": firstFile.uid,
136
133
  attrs: this.v3 ? undefined : {
137
134
  "data-uid": firstFile.uid,
138
- tabIndex: -1
135
+ tabindex: -1
139
136
  },
140
- tabIndex: -1,
137
+ tabindex: -1,
141
138
  onClick: this.onClick,
142
139
  on: this.v3 ? undefined : {
143
140
  "click": this.onClick
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { classNames } from '@progress/kendo-vue-common';
@@ -62,8 +63,8 @@ var UploadListMultiItemVue2 = {
62
63
  }
63
64
  },
64
65
  // @ts-ignore
65
- setup: !gh ? undefined : function () {
66
- var v3 = !!gh;
66
+ setup: !isV3 ? undefined : function () {
67
+ var v3 = !!isV3;
67
68
  var kendoLocalizationService = inject('kendoLocalizationService', {});
68
69
  return {
69
70
  v3: v3,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { classNames } from '@progress/kendo-vue-common';
@@ -114,8 +115,8 @@ var UploadListSingleItemVue2 = {
114
115
  }
115
116
  },
116
117
  // @ts-ignore
117
- setup: !gh ? undefined : function () {
118
- var v3 = !!gh;
118
+ setup: !isV3 ? undefined : function () {
119
+ var v3 = !!isV3;
119
120
  var kendoLocalizationService = inject('kendoLocalizationService', {});
120
121
  return {
121
122
  v3: v3,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  import { Keys } from '@progress/kendo-vue-common';
7
8
  import { UploadUI } from './UploadUI';
@@ -249,8 +250,8 @@ var UploadNavigationVue2 = {
249
250
  this._uploadUI = this.v3 ? this.uploadUIRef : this.$refs.uploadUI;
250
251
  },
251
252
  // @ts-ignore
252
- setup: !gh ? undefined : function () {
253
- var v3 = !!gh;
253
+ setup: !isV3 ? undefined : function () {
254
+ var v3 = !!isV3;
254
255
  var uploadUIRef = ref(null);
255
256
  return {
256
257
  v3: v3,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { classNames } from '@progress/kendo-vue-common';
@@ -23,8 +24,8 @@ var UploadStatusVue2 = {
23
24
  }
24
25
  },
25
26
  // @ts-ignore
26
- setup: !gh ? undefined : function () {
27
- var v3 = !!gh;
27
+ setup: !isV3 ? undefined : function () {
28
+ var v3 = !!isV3;
28
29
  var kendoLocalizationService = inject('kendoLocalizationService', {});
29
30
  return {
30
31
  v3: v3,
@@ -40,7 +40,7 @@ export interface UploadUIMethods {
40
40
  onClear?: () => void;
41
41
  onFocus?: (event: any) => void;
42
42
  onBlur?: (event: any) => void;
43
- onKeyDown?: (event: KeyboardEvent, isRtl: boolean) => void;
43
+ onKeyDown?: (event: KeyboardEvent, isRtl?: boolean) => void;
44
44
  onClick?: (navIndex: number | undefined) => void;
45
45
  }
46
46
  /**
@@ -2,8 +2,9 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
- import { classNames } from '@progress/kendo-vue-common';
7
+ import { classNames, setRef } from '@progress/kendo-vue-common';
7
8
  import { UploadList } from './UploadList';
8
9
  import { UploadActionButtons } from './UploadActionButtons';
9
10
  import { UploadDropZone } from './UploadDropZone';
@@ -128,8 +129,8 @@ var UploadUIVue2 = {
128
129
  this.uploadDropZone = this.v3 ? this.uploadDropZoneRef : this.$refs.uploadDropZone;
129
130
  },
130
131
  // @ts-ignore
131
- setup: !gh ? undefined : function () {
132
- var v3 = !!gh;
132
+ setup: !isV3 ? undefined : function () {
133
+ var v3 = !!isV3;
133
134
  var containerRef = ref(null);
134
135
  var uploadDropZoneRef = ref(null);
135
136
  return {
@@ -160,9 +161,7 @@ var UploadUIVue2 = {
160
161
  async = _a.async;
161
162
  var className = classNames('k-widget', 'k-upload', this.$props.className, disabled ? 'k-state-disabled' : '');
162
163
  return h("div", {
163
- ref: this.v3 ? function (el) {
164
- _this.containerRef = el;
165
- } : 'container',
164
+ ref: setRef(this, 'container'),
166
165
  "class": className,
167
166
  onKeydown: this.onKeyDown,
168
167
  on: this.v3 ? undefined : {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-upload',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1655872098,
8
+ publishDate: 1657171023,
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
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
  var inject = allVue.inject;
14
15
 
@@ -104,8 +105,8 @@ var ExternalDropZoneVue2 = {
104
105
  }
105
106
  },
106
107
  // @ts-ignore
107
- setup: !gh ? undefined : function () {
108
- var v3 = !!gh;
108
+ setup: !isV3 ? undefined : function () {
109
+ var v3 = !!isV3;
109
110
  var externalDropZoneRef = ref(null);
110
111
  var kendoLocalizationService = inject('kendoLocalizationService', {});
111
112
  return {
@@ -115,8 +116,6 @@ var ExternalDropZoneVue2 = {
115
116
  };
116
117
  },
117
118
  render: function render(createElement) {
118
- var _this = this;
119
-
120
119
  var h = gh || createElement;
121
120
  var _a = this.$props,
122
121
  customNote = _a.customNote,
@@ -141,19 +140,17 @@ var ExternalDropZoneVue2 = {
141
140
  defaultRendering: noteElementDefaultRendering
142
141
  });
143
142
  return h("div", {
144
- ref: this.v3 ? function (el) {
145
- _this.externalDropZoneRef = el;
146
- } : 'externalDropZone',
143
+ ref: kendo_vue_common_1.setRef(this, 'externalDropZone'),
147
144
  id: this.$props.id,
148
145
  attrs: this.v3 ? undefined : {
149
146
  id: this.$props.id,
150
- tabIndex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
147
+ tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
151
148
  },
152
149
  "class": kendo_vue_common_1.classNames('k-external-dropzone', {
153
150
  'k-external-dropzone-hover': this.overDropZone,
154
151
  'k-state-disabled': this.$props.disabled
155
152
  }, this.$props.className),
156
- tabIndex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
153
+ tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
157
154
  onDrop: this.handleOnDrop,
158
155
  on: this.v3 ? undefined : {
159
156
  "drop": this.handleOnDrop,
@@ -25,6 +25,7 @@ var Vue = require("vue");
25
25
 
26
26
  var allVue = Vue;
27
27
  var gh = allVue.h;
28
+ var isV3 = allVue.version[0] === '3';
28
29
  var ref = allVue.ref;
29
30
 
30
31
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
@@ -706,8 +707,8 @@ var UploadVue2 = {
706
707
  }
707
708
  },
708
709
  // @ts-ignore
709
- setup: !gh ? undefined : function () {
710
- var v3 = !!gh;
710
+ setup: !isV3 ? undefined : function () {
711
+ var v3 = !!isV3;
711
712
  return {
712
713
  v3: v3
713
714
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
  var inject = allVue.inject;
14
15
 
@@ -48,8 +49,8 @@ var UploadActionButtonsVue2 = {
48
49
  this._prevNavigationIndex = undefined;
49
50
  },
50
51
  // @ts-ignore
51
- setup: !gh ? undefined : function () {
52
- var v3 = !!gh;
52
+ setup: !isV3 ? undefined : function () {
53
+ var v3 = !!isV3;
53
54
  var uploadElementRef = ref(null);
54
55
  var clearElementRef = ref(null);
55
56
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
  var inject = allVue.inject;
14
15
 
@@ -50,8 +51,8 @@ var UploadAddButtonVue2 = {
50
51
  'click': null
51
52
  },
52
53
  // @ts-ignore
53
- setup: !gh ? undefined : function () {
54
- var v3 = !!gh;
54
+ setup: !isV3 ? undefined : function () {
55
+ var v3 = !!isV3;
55
56
  var elementRef = ref(null);
56
57
  var uploadInputRef = ref(null);
57
58
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -131,17 +132,15 @@ var UploadAddButtonVue2 = {
131
132
  "aria-label": selectMessage,
132
133
  "aria-labelledby": ariaLabelledBy,
133
134
  "aria-describedby": ariaDescribedBy,
134
- tabIndex: tabIndex
135
+ tabindex: tabIndex
135
136
  },
136
- ref: this.v3 ? function (el) {
137
- _this.elementRef = el;
138
- } : 'element',
137
+ ref: kendo_vue_common_1.setRef(this, 'element'),
139
138
  role: "button",
140
139
  "class": buttonClassName,
141
140
  "aria-label": selectMessage,
142
141
  "aria-labelledby": ariaLabelledBy,
143
142
  "aria-describedby": ariaDescribedBy,
144
- tabIndex: tabIndex,
143
+ tabindex: tabIndex,
145
144
  onClick: this.onClick,
146
145
  on: this.v3 ? undefined : {
147
146
  "click": this.onClick
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
  var inject = allVue.inject;
14
15
 
@@ -94,7 +95,7 @@ var UploadDropZoneVue2 = {
94
95
  document.addEventListener('dragenter', this.onDocumentDragEnter);
95
96
  document.addEventListener('dragover', this.onDocumentDragOver);
96
97
  },
97
- destroyed: !!gh ? undefined : function () {
98
+ destroyed: !!isV3 ? undefined : function () {
98
99
  document.removeEventListener('dragenter', this.onDocumentDragEnter);
99
100
  document.removeEventListener('dragover', this.onDocumentDragOver);
100
101
  },
@@ -104,8 +105,8 @@ var UploadDropZoneVue2 = {
104
105
  document.removeEventListener('dragover', this.onDocumentDragOver);
105
106
  },
106
107
  // @ts-ignore
107
- setup: !gh ? undefined : function () {
108
- var v3 = !!gh;
108
+ setup: !isV3 ? undefined : function () {
109
+ var v3 = !!isV3;
109
110
  var uploadAddButtonRef = ref(null);
110
111
  var kendoLocalizationService = inject('kendoLocalizationService', {});
111
112
  return {