@progress/kendo-vue-dialogs 3.8.4 → 3.8.5

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/es/Dialog.js CHANGED
@@ -47,6 +47,7 @@ var DialogVue2 = {
47
47
  created: function created() {
48
48
  validatePackage(packageMetadata);
49
49
  this.titleId = this.generateTitleId();
50
+ this.contentId = this.generateContentId();
50
51
  },
51
52
  // @ts-ignore
52
53
  setup: !isV3 ? undefined : function () {
@@ -111,6 +112,9 @@ var DialogVue2 = {
111
112
  generateTitleId: function generateTitleId() {
112
113
  return 'dialog-title' + guid();
113
114
  },
115
+ generateContentId: function generateContentId() {
116
+ return 'dialog-content' + guid();
117
+ },
114
118
  handleClick: function handleClick(e) {
115
119
  this.$emit('overlayclick', e);
116
120
  }
@@ -165,8 +169,12 @@ var DialogVue2 = {
165
169
  "aria-labelledby": title || titleRender ? id : undefined,
166
170
  attrs: this.v3 ? undefined : {
167
171
  "aria-labelledby": title || titleRender ? id : undefined,
172
+ "aria-describedby": this.contentId,
173
+ "aria-modal": true,
168
174
  role: "dialog"
169
175
  },
176
+ "aria-describedby": this.contentId,
177
+ "aria-modal": true,
170
178
  "class": this.dialogElementClass,
171
179
  role: "dialog",
172
180
  style: {
@@ -193,7 +201,11 @@ var DialogVue2 = {
193
201
  titleRender: titleRender
194
202
  }), h("div", {
195
203
  "class": "k-window-content k-dialog-content",
196
- style: contentStyle
204
+ style: contentStyle,
205
+ id: this.contentId,
206
+ attrs: this.v3 ? undefined : {
207
+ id: this.contentId
208
+ }
197
209
  }, [content]), actions])]);
198
210
  return this.$props.appendTo ? h("div", [dialog]) : dialog;
199
211
  }
package/dist/es/Window.js CHANGED
@@ -128,6 +128,7 @@ var WindowVue2 = {
128
128
  widthBeforeAction: this.getInitialWidth(),
129
129
  heightBeforeAction: this.getInitialHeight()
130
130
  };
131
+ this.titleId = this.generateTitleId();
131
132
  },
132
133
  beforeDestroy: !!isV3 ? undefined : function () {
133
134
  if (this.$props.appendTo) {
@@ -147,8 +148,7 @@ var WindowVue2 = {
147
148
  currentLeft: this.getInitialLeft(),
148
149
  currentWidth: this.getInitialWidth(),
149
150
  currentHeight: this.getInitialHeight(),
150
- _id: guid(),
151
- titleId: this.generateTitleId()
151
+ titleId: undefined
152
152
  };
153
153
  },
154
154
  mounted: function mounted() {
@@ -380,9 +380,6 @@ var WindowVue2 = {
380
380
  }
381
381
  return height;
382
382
  },
383
- generateTitleId: function generateTitleId() {
384
- return 'window-title-' + this._id;
385
- },
386
383
  handleMinimize: function handleMinimize(event) {
387
384
  event.preventDefault();
388
385
  this.windowCoordinatesState.leftBeforeAction = this.computedLeft;
@@ -494,6 +491,9 @@ var WindowVue2 = {
494
491
  return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('actions-bar') !== -1 || child.type && child.type.name && child.type.name.toLowerCase().indexOf('dialogactionsbar') !== -1;
495
492
  });
496
493
  return actionBarIndex;
494
+ },
495
+ generateTitleId: function generateTitleId() {
496
+ return 'window-title-' + guid();
497
497
  }
498
498
  },
499
499
  // @ts-ignore
@@ -527,6 +527,7 @@ var WindowVue2 = {
527
527
  attrs: this.v3 ? undefined : {
528
528
  tabindex: 0,
529
529
  role: 'dialog',
530
+ "aria-modal": this.$props.modal ? true : undefined,
530
531
  "aria-labelledby": this.titleId
531
532
  },
532
533
  onFocus: function onFocus(e) {
@@ -548,6 +549,7 @@ var WindowVue2 = {
548
549
  ref: 'windowElement',
549
550
  "class": this.windowElementClass,
550
551
  role: 'dialog',
552
+ "aria-modal": this.$props.modal ? true : undefined,
551
553
  "aria-labelledby": this.titleId,
552
554
  style: __assign({
553
555
  top: this.computedTop + 'px',
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-dialogs',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1677570574,
8
+ publishDate: 1678367538,
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
  };
@@ -47,6 +47,7 @@ var DialogVue2 = {
47
47
  created: function created() {
48
48
  validatePackage(packageMetadata);
49
49
  this.titleId = this.generateTitleId();
50
+ this.contentId = this.generateContentId();
50
51
  },
51
52
  // @ts-ignore
52
53
  setup: !isV3 ? undefined : function () {
@@ -111,6 +112,9 @@ var DialogVue2 = {
111
112
  generateTitleId: function generateTitleId() {
112
113
  return 'dialog-title' + guid();
113
114
  },
115
+ generateContentId: function generateContentId() {
116
+ return 'dialog-content' + guid();
117
+ },
114
118
  handleClick: function handleClick(e) {
115
119
  this.$emit('overlayclick', e);
116
120
  }
@@ -165,8 +169,12 @@ var DialogVue2 = {
165
169
  "aria-labelledby": title || titleRender ? id : undefined,
166
170
  attrs: this.v3 ? undefined : {
167
171
  "aria-labelledby": title || titleRender ? id : undefined,
172
+ "aria-describedby": this.contentId,
173
+ "aria-modal": true,
168
174
  role: "dialog"
169
175
  },
176
+ "aria-describedby": this.contentId,
177
+ "aria-modal": true,
170
178
  "class": this.dialogElementClass,
171
179
  role: "dialog",
172
180
  style: {
@@ -193,7 +201,11 @@ var DialogVue2 = {
193
201
  titleRender: titleRender
194
202
  }), h("div", {
195
203
  "class": "k-window-content k-dialog-content",
196
- style: contentStyle
204
+ style: contentStyle,
205
+ id: this.contentId,
206
+ attrs: this.v3 ? undefined : {
207
+ id: this.contentId
208
+ }
197
209
  }, [content]), actions])]);
198
210
  return this.$props.appendTo ? h("div", [dialog]) : dialog;
199
211
  }
@@ -128,6 +128,7 @@ var WindowVue2 = {
128
128
  widthBeforeAction: this.getInitialWidth(),
129
129
  heightBeforeAction: this.getInitialHeight()
130
130
  };
131
+ this.titleId = this.generateTitleId();
131
132
  },
132
133
  beforeDestroy: !!isV3 ? undefined : function () {
133
134
  if (this.$props.appendTo) {
@@ -147,8 +148,7 @@ var WindowVue2 = {
147
148
  currentLeft: this.getInitialLeft(),
148
149
  currentWidth: this.getInitialWidth(),
149
150
  currentHeight: this.getInitialHeight(),
150
- _id: guid(),
151
- titleId: this.generateTitleId()
151
+ titleId: undefined
152
152
  };
153
153
  },
154
154
  mounted: function mounted() {
@@ -380,9 +380,6 @@ var WindowVue2 = {
380
380
  }
381
381
  return height;
382
382
  },
383
- generateTitleId: function generateTitleId() {
384
- return 'window-title-' + this._id;
385
- },
386
383
  handleMinimize: function handleMinimize(event) {
387
384
  event.preventDefault();
388
385
  this.windowCoordinatesState.leftBeforeAction = this.computedLeft;
@@ -494,6 +491,9 @@ var WindowVue2 = {
494
491
  return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('actions-bar') !== -1 || child.type && child.type.name && child.type.name.toLowerCase().indexOf('dialogactionsbar') !== -1;
495
492
  });
496
493
  return actionBarIndex;
494
+ },
495
+ generateTitleId: function generateTitleId() {
496
+ return 'window-title-' + guid();
497
497
  }
498
498
  },
499
499
  // @ts-ignore
@@ -527,6 +527,7 @@ var WindowVue2 = {
527
527
  attrs: this.v3 ? undefined : {
528
528
  tabindex: 0,
529
529
  role: 'dialog',
530
+ "aria-modal": this.$props.modal ? true : undefined,
530
531
  "aria-labelledby": this.titleId
531
532
  },
532
533
  onFocus: function onFocus(e) {
@@ -548,6 +549,7 @@ var WindowVue2 = {
548
549
  ref: 'windowElement',
549
550
  "class": this.windowElementClass,
550
551
  role: 'dialog',
552
+ "aria-modal": this.$props.modal ? true : undefined,
551
553
  "aria-labelledby": this.titleId,
552
554
  style: __assign({
553
555
  top: this.computedTop + 'px',
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-dialogs',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1677570574,
8
+ publishDate: 1678367538,
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
  };
@@ -53,6 +53,7 @@ var DialogVue2 = {
53
53
  created: function created() {
54
54
  (0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
55
55
  this.titleId = this.generateTitleId();
56
+ this.contentId = this.generateContentId();
56
57
  },
57
58
  // @ts-ignore
58
59
  setup: !isV3 ? undefined : function () {
@@ -117,6 +118,9 @@ var DialogVue2 = {
117
118
  generateTitleId: function generateTitleId() {
118
119
  return 'dialog-title' + (0, kendo_vue_common_1.guid)();
119
120
  },
121
+ generateContentId: function generateContentId() {
122
+ return 'dialog-content' + (0, kendo_vue_common_1.guid)();
123
+ },
120
124
  handleClick: function handleClick(e) {
121
125
  this.$emit('overlayclick', e);
122
126
  }
@@ -171,8 +175,12 @@ var DialogVue2 = {
171
175
  "aria-labelledby": title || titleRender ? id : undefined,
172
176
  attrs: this.v3 ? undefined : {
173
177
  "aria-labelledby": title || titleRender ? id : undefined,
178
+ "aria-describedby": this.contentId,
179
+ "aria-modal": true,
174
180
  role: "dialog"
175
181
  },
182
+ "aria-describedby": this.contentId,
183
+ "aria-modal": true,
176
184
  "class": this.dialogElementClass,
177
185
  role: "dialog",
178
186
  style: {
@@ -199,7 +207,11 @@ var DialogVue2 = {
199
207
  titleRender: titleRender
200
208
  }), h("div", {
201
209
  "class": "k-window-content k-dialog-content",
202
- style: contentStyle
210
+ style: contentStyle,
211
+ id: this.contentId,
212
+ attrs: this.v3 ? undefined : {
213
+ id: this.contentId
214
+ }
203
215
  }, [content]), actions])]);
204
216
  return this.$props.appendTo ? h("div", [dialog]) : dialog;
205
217
  }
@@ -134,6 +134,7 @@ var WindowVue2 = {
134
134
  widthBeforeAction: this.getInitialWidth(),
135
135
  heightBeforeAction: this.getInitialHeight()
136
136
  };
137
+ this.titleId = this.generateTitleId();
137
138
  },
138
139
  beforeDestroy: !!isV3 ? undefined : function () {
139
140
  if (this.$props.appendTo) {
@@ -153,8 +154,7 @@ var WindowVue2 = {
153
154
  currentLeft: this.getInitialLeft(),
154
155
  currentWidth: this.getInitialWidth(),
155
156
  currentHeight: this.getInitialHeight(),
156
- _id: (0, kendo_vue_common_1.guid)(),
157
- titleId: this.generateTitleId()
157
+ titleId: undefined
158
158
  };
159
159
  },
160
160
  mounted: function mounted() {
@@ -386,9 +386,6 @@ var WindowVue2 = {
386
386
  }
387
387
  return height;
388
388
  },
389
- generateTitleId: function generateTitleId() {
390
- return 'window-title-' + this._id;
391
- },
392
389
  handleMinimize: function handleMinimize(event) {
393
390
  event.preventDefault();
394
391
  this.windowCoordinatesState.leftBeforeAction = this.computedLeft;
@@ -500,6 +497,9 @@ var WindowVue2 = {
500
497
  return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('actions-bar') !== -1 || child.type && child.type.name && child.type.name.toLowerCase().indexOf('dialogactionsbar') !== -1;
501
498
  });
502
499
  return actionBarIndex;
500
+ },
501
+ generateTitleId: function generateTitleId() {
502
+ return 'window-title-' + (0, kendo_vue_common_1.guid)();
503
503
  }
504
504
  },
505
505
  // @ts-ignore
@@ -533,6 +533,7 @@ var WindowVue2 = {
533
533
  attrs: this.v3 ? undefined : {
534
534
  tabindex: 0,
535
535
  role: 'dialog',
536
+ "aria-modal": this.$props.modal ? true : undefined,
536
537
  "aria-labelledby": this.titleId
537
538
  },
538
539
  onFocus: function onFocus(e) {
@@ -554,6 +555,7 @@ var WindowVue2 = {
554
555
  ref: 'windowElement',
555
556
  "class": this.windowElementClass,
556
557
  role: 'dialog',
558
+ "aria-modal": this.$props.modal ? true : undefined,
557
559
  "aria-labelledby": this.titleId,
558
560
  style: __assign({
559
561
  top: this.computedTop + 'px',
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-dialogs',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1677570574,
11
+ publishDate: 1678367538,
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-dialogs",
3
3
  "description": "Kendo UI for Vue Dialogs package",
4
- "version": "3.8.4",
4
+ "version": "3.8.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -44,13 +44,13 @@
44
44
  "vue": "^2.6.12 || ^3.0.2"
45
45
  },
46
46
  "dependencies": {
47
- "@progress/kendo-vue-buttons": "3.8.4",
48
- "@progress/kendo-vue-common": "3.8.4"
47
+ "@progress/kendo-vue-buttons": "3.8.5",
48
+ "@progress/kendo-vue-common": "3.8.5"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@progress/kendo-licensing": "^1.3.0",
52
52
  "@progress/kendo-svg-icons": "^1.0.0",
53
- "@progress/kendo-vue-intl": "3.8.4"
53
+ "@progress/kendo-vue-intl": "3.8.5"
54
54
  },
55
55
  "author": "Progress",
56
56
  "license": "SEE LICENSE IN LICENSE.md",