@progress/kendo-vue-upload 3.8.1 → 3.8.2-dev.202301251432

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.
@@ -77,6 +77,9 @@ var UploadAddButtonVue2 = {
77
77
  }
78
78
  },
79
79
  onClick: function onClick() {
80
+ if (this.actionElement()) {
81
+ this.actionElement().click();
82
+ }
80
83
  this.$emit('click', this.$props.addButtonIndex);
81
84
  },
82
85
  onAdd: function onAdd(files) {
@@ -90,7 +93,7 @@ var UploadAddButtonVue2 = {
90
93
  },
91
94
  actionElement: function actionElement() {
92
95
  if (this.uploadInput) {
93
- return this.uploadInput.actionElement;
96
+ return this.uploadInput.actionElement();
94
97
  }
95
98
  }
96
99
  },
@@ -121,6 +121,7 @@ var UploadInputVue2 = {
121
121
  "aria-labelledby": ariaLabelledBy,
122
122
  "aria-describedby": ariaDescribedBy
123
123
  },
124
+ "class": 'k-hidden',
124
125
  autocomplete: 'off',
125
126
  name: async.saveField,
126
127
  accept: accept,
@@ -4,7 +4,7 @@ var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
- import { Keys } from '@progress/kendo-vue-common';
7
+ import { Keys, canUseDOM } from '@progress/kendo-vue-common';
8
8
  import { UploadUI } from './UploadUI';
9
9
  /**
10
10
  * @hidden
@@ -95,6 +95,7 @@ var UploadNavigationVue2 = {
95
95
  }
96
96
  },
97
97
  onKeyDown: function onKeyDown(event, isRtl) {
98
+ var _a;
98
99
  var navIndex = this.navIndex();
99
100
  var groupKeys = Object.keys(this.$props.groupedFiles);
100
101
  var maxFileIndex = groupKeys.length - 1;
@@ -143,7 +144,9 @@ var UploadNavigationVue2 = {
143
144
  case Keys.enter:
144
145
  if (navIndex === DEFAULT_INDEX || navIndex === NOT_FOCUSED_INDEX) {
145
146
  if (this.actionElement()) {
146
- this.actionElement().$el.click();
147
+ if (canUseDOM && ((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.className.indexOf('k-upload-button')) === -1) {
148
+ this.actionElement().$el.click();
149
+ }
147
150
  }
148
151
  }
149
152
  if (navIndex >= 0 && navIndex <= maxFileIndex) {
@@ -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: 1674122139,
8
+ publishDate: 1674657006,
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
  };
@@ -77,6 +77,9 @@ var UploadAddButtonVue2 = {
77
77
  }
78
78
  },
79
79
  onClick: function onClick() {
80
+ if (this.actionElement()) {
81
+ this.actionElement().click();
82
+ }
80
83
  this.$emit('click', this.$props.addButtonIndex);
81
84
  },
82
85
  onAdd: function onAdd(files) {
@@ -90,7 +93,7 @@ var UploadAddButtonVue2 = {
90
93
  },
91
94
  actionElement: function actionElement() {
92
95
  if (this.uploadInput) {
93
- return this.uploadInput.actionElement;
96
+ return this.uploadInput.actionElement();
94
97
  }
95
98
  }
96
99
  },
@@ -121,6 +121,7 @@ var UploadInputVue2 = {
121
121
  "aria-labelledby": ariaLabelledBy,
122
122
  "aria-describedby": ariaDescribedBy
123
123
  },
124
+ "class": 'k-hidden',
124
125
  autocomplete: 'off',
125
126
  name: async.saveField,
126
127
  accept: accept,
@@ -4,7 +4,7 @@ var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
- import { Keys } from '@progress/kendo-vue-common';
7
+ import { Keys, canUseDOM } from '@progress/kendo-vue-common';
8
8
  import { UploadUI } from './UploadUI.js';
9
9
  /**
10
10
  * @hidden
@@ -95,6 +95,7 @@ var UploadNavigationVue2 = {
95
95
  }
96
96
  },
97
97
  onKeyDown: function onKeyDown(event, isRtl) {
98
+ var _a;
98
99
  var navIndex = this.navIndex();
99
100
  var groupKeys = Object.keys(this.$props.groupedFiles);
100
101
  var maxFileIndex = groupKeys.length - 1;
@@ -143,7 +144,9 @@ var UploadNavigationVue2 = {
143
144
  case Keys.enter:
144
145
  if (navIndex === DEFAULT_INDEX || navIndex === NOT_FOCUSED_INDEX) {
145
146
  if (this.actionElement()) {
146
- this.actionElement().$el.click();
147
+ if (canUseDOM && ((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.className.indexOf('k-upload-button')) === -1) {
148
+ this.actionElement().$el.click();
149
+ }
147
150
  }
148
151
  }
149
152
  if (navIndex >= 0 && navIndex <= maxFileIndex) {
@@ -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: 1674122139,
8
+ publishDate: 1674657006,
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
  };
@@ -83,6 +83,9 @@ var UploadAddButtonVue2 = {
83
83
  }
84
84
  },
85
85
  onClick: function onClick() {
86
+ if (this.actionElement()) {
87
+ this.actionElement().click();
88
+ }
86
89
  this.$emit('click', this.$props.addButtonIndex);
87
90
  },
88
91
  onAdd: function onAdd(files) {
@@ -96,7 +99,7 @@ var UploadAddButtonVue2 = {
96
99
  },
97
100
  actionElement: function actionElement() {
98
101
  if (this.uploadInput) {
99
- return this.uploadInput.actionElement;
102
+ return this.uploadInput.actionElement();
100
103
  }
101
104
  }
102
105
  },
@@ -127,6 +127,7 @@ var UploadInputVue2 = {
127
127
  "aria-labelledby": ariaLabelledBy,
128
128
  "aria-describedby": ariaDescribedBy
129
129
  },
130
+ "class": 'k-hidden',
130
131
  autocomplete: 'off',
131
132
  name: async.saveField,
132
133
  accept: accept,
@@ -101,6 +101,7 @@ var UploadNavigationVue2 = {
101
101
  }
102
102
  },
103
103
  onKeyDown: function onKeyDown(event, isRtl) {
104
+ var _a;
104
105
  var navIndex = this.navIndex();
105
106
  var groupKeys = Object.keys(this.$props.groupedFiles);
106
107
  var maxFileIndex = groupKeys.length - 1;
@@ -149,7 +150,9 @@ var UploadNavigationVue2 = {
149
150
  case kendo_vue_common_1.Keys.enter:
150
151
  if (navIndex === DEFAULT_INDEX || navIndex === NOT_FOCUSED_INDEX) {
151
152
  if (this.actionElement()) {
152
- this.actionElement().$el.click();
153
+ if (kendo_vue_common_1.canUseDOM && ((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.className.indexOf('k-upload-button')) === -1) {
154
+ this.actionElement().$el.click();
155
+ }
153
156
  }
154
157
  }
155
158
  if (navIndex >= 0 && navIndex <= maxFileIndex) {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-upload',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1674122139,
11
+ publishDate: 1674657006,
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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-upload",
3
3
  "description": "Kendo UI for Vue Upload package",
4
- "version": "3.8.1",
4
+ "version": "3.8.2-dev.202301251432",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -33,15 +33,15 @@
33
33
  "vue": "^2.6.12 || ^3.0.2"
34
34
  },
35
35
  "dependencies": {
36
- "@progress/kendo-vue-buttons": "3.8.1",
37
- "@progress/kendo-vue-common": "3.8.1",
38
- "@progress/kendo-vue-progressbars": "3.8.1",
36
+ "@progress/kendo-vue-buttons": "3.8.2-dev.202301251432",
37
+ "@progress/kendo-vue-common": "3.8.2-dev.202301251432",
38
+ "@progress/kendo-vue-progressbars": "3.8.2-dev.202301251432",
39
39
  "axios": "0.24.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@progress/kendo-licensing": "^1.3.0",
43
43
  "@progress/kendo-svg-icons": "^1.0.0",
44
- "@progress/kendo-vue-intl": "3.8.1"
44
+ "@progress/kendo-vue-intl": "3.8.2-dev.202301251432"
45
45
  },
46
46
  "@progress": {
47
47
  "friendlyName": "Upload",