@progress/kendo-vue-dialogs 3.7.4-dev.202301151601 → 3.7.4-dev.202301171215

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/Window.js CHANGED
@@ -488,6 +488,12 @@ var WindowVue2 = {
488
488
  },
489
489
  handleClick: function handleClick(e) {
490
490
  this.$emit('overlayclick', e);
491
+ },
492
+ getActionBarIndex: function getActionBarIndex(children) {
493
+ var actionBarIndex = children.findIndex(function (child) {
494
+ 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
+ });
496
+ return actionBarIndex;
491
497
  }
492
498
  },
493
499
  // @ts-ignore
@@ -500,6 +506,13 @@ var WindowVue2 = {
500
506
  var maximizeButton = templateRendering.call(this, this.$props.maximizeButton, getListeners.call(this));
501
507
  var restoreButton = templateRendering.call(this, this.$props.restoreButton, getListeners.call(this));
502
508
  var defaultSlot = getDefaultSlots(this);
509
+ var content = defaultSlot || [];
510
+ var actionBarIndex = this.getActionBarIndex(content);
511
+ var actions;
512
+ if (actionBarIndex !== -1) {
513
+ actions = content[actionBarIndex];
514
+ content.splice(actionBarIndex, 1);
515
+ }
503
516
  var windowElement = h("div", {
504
517
  "class": 'k-dialog-wrapper',
505
518
  ref: 'wrapper'
@@ -514,7 +527,8 @@ var WindowVue2 = {
514
527
  attrs: this.v3 ? undefined : {
515
528
  tabindex: 0,
516
529
  role: 'dialog',
517
- "aria-labelledby": this.titleId
530
+ "aria-labelledby": this.titleId,
531
+ ontouchstart: 'return false'
518
532
  },
519
533
  onFocus: function onFocus(e) {
520
534
  return e.target.classList.add('k-focus');
@@ -541,7 +555,8 @@ var WindowVue2 = {
541
555
  left: this.computedLeft + 'px',
542
556
  width: this.computedWidth + 'px',
543
557
  height: this.computedHeight + 'px' || ''
544
- }, this.$props.windowStyle)
558
+ }, this.$props.windowStyle),
559
+ ontouchstart: 'return false'
545
560
  }, [
546
561
  // @ts-ignore function children
547
562
  h(Draggable, {
@@ -620,9 +635,9 @@ var WindowVue2 = {
620
635
  minimizeButton: minimizeButton,
621
636
  maximizeButton: maximizeButton,
622
637
  restoreButton: restoreButton
623
- })]), this.windowStage !== windowStage.MINIMIZED ? h("div", {
638
+ })]), this.windowStage !== windowStage.MINIMIZED ? [h("div", {
624
639
  "class": "k-window-content"
625
- }, [defaultSlot]) : null, this.windowStage === windowStage.DEFAULT && this.$props.resizable
640
+ }, [defaultSlot]), actions] : null, this.windowStage === windowStage.DEFAULT && this.$props.resizable
626
641
  // @ts-ignore function children
627
642
  ? h(ResizeHandlers, {
628
643
  onResize: this.handleResize,
@@ -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: 1673797504,
8
+ publishDate: 1673956673,
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
  };
@@ -488,6 +488,12 @@ var WindowVue2 = {
488
488
  },
489
489
  handleClick: function handleClick(e) {
490
490
  this.$emit('overlayclick', e);
491
+ },
492
+ getActionBarIndex: function getActionBarIndex(children) {
493
+ var actionBarIndex = children.findIndex(function (child) {
494
+ 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
+ });
496
+ return actionBarIndex;
491
497
  }
492
498
  },
493
499
  // @ts-ignore
@@ -500,6 +506,13 @@ var WindowVue2 = {
500
506
  var maximizeButton = templateRendering.call(this, this.$props.maximizeButton, getListeners.call(this));
501
507
  var restoreButton = templateRendering.call(this, this.$props.restoreButton, getListeners.call(this));
502
508
  var defaultSlot = getDefaultSlots(this);
509
+ var content = defaultSlot || [];
510
+ var actionBarIndex = this.getActionBarIndex(content);
511
+ var actions;
512
+ if (actionBarIndex !== -1) {
513
+ actions = content[actionBarIndex];
514
+ content.splice(actionBarIndex, 1);
515
+ }
503
516
  var windowElement = h("div", {
504
517
  "class": 'k-dialog-wrapper',
505
518
  ref: 'wrapper'
@@ -514,7 +527,8 @@ var WindowVue2 = {
514
527
  attrs: this.v3 ? undefined : {
515
528
  tabindex: 0,
516
529
  role: 'dialog',
517
- "aria-labelledby": this.titleId
530
+ "aria-labelledby": this.titleId,
531
+ ontouchstart: 'return false'
518
532
  },
519
533
  onFocus: function onFocus(e) {
520
534
  return e.target.classList.add('k-focus');
@@ -541,7 +555,8 @@ var WindowVue2 = {
541
555
  left: this.computedLeft + 'px',
542
556
  width: this.computedWidth + 'px',
543
557
  height: this.computedHeight + 'px' || ''
544
- }, this.$props.windowStyle)
558
+ }, this.$props.windowStyle),
559
+ ontouchstart: 'return false'
545
560
  }, [
546
561
  // @ts-ignore function children
547
562
  h(Draggable, {
@@ -620,9 +635,9 @@ var WindowVue2 = {
620
635
  minimizeButton: minimizeButton,
621
636
  maximizeButton: maximizeButton,
622
637
  restoreButton: restoreButton
623
- })]), this.windowStage !== windowStage.MINIMIZED ? h("div", {
638
+ })]), this.windowStage !== windowStage.MINIMIZED ? [h("div", {
624
639
  "class": "k-window-content"
625
- }, [defaultSlot]) : null, this.windowStage === windowStage.DEFAULT && this.$props.resizable
640
+ }, [defaultSlot]), actions] : null, this.windowStage === windowStage.DEFAULT && this.$props.resizable
626
641
  // @ts-ignore function children
627
642
  ? h(ResizeHandlers, {
628
643
  onResize: this.handleResize,
@@ -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: 1673797504,
8
+ publishDate: 1673956673,
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
  };
@@ -494,6 +494,12 @@ var WindowVue2 = {
494
494
  },
495
495
  handleClick: function handleClick(e) {
496
496
  this.$emit('overlayclick', e);
497
+ },
498
+ getActionBarIndex: function getActionBarIndex(children) {
499
+ var actionBarIndex = children.findIndex(function (child) {
500
+ 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
+ });
502
+ return actionBarIndex;
497
503
  }
498
504
  },
499
505
  // @ts-ignore
@@ -506,6 +512,13 @@ var WindowVue2 = {
506
512
  var maximizeButton = kendo_vue_common_1.templateRendering.call(this, this.$props.maximizeButton, kendo_vue_common_1.getListeners.call(this));
507
513
  var restoreButton = kendo_vue_common_1.templateRendering.call(this, this.$props.restoreButton, kendo_vue_common_1.getListeners.call(this));
508
514
  var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
515
+ var content = defaultSlot || [];
516
+ var actionBarIndex = this.getActionBarIndex(content);
517
+ var actions;
518
+ if (actionBarIndex !== -1) {
519
+ actions = content[actionBarIndex];
520
+ content.splice(actionBarIndex, 1);
521
+ }
509
522
  var windowElement = h("div", {
510
523
  "class": 'k-dialog-wrapper',
511
524
  ref: 'wrapper'
@@ -520,7 +533,8 @@ var WindowVue2 = {
520
533
  attrs: this.v3 ? undefined : {
521
534
  tabindex: 0,
522
535
  role: 'dialog',
523
- "aria-labelledby": this.titleId
536
+ "aria-labelledby": this.titleId,
537
+ ontouchstart: 'return false'
524
538
  },
525
539
  onFocus: function onFocus(e) {
526
540
  return e.target.classList.add('k-focus');
@@ -547,7 +561,8 @@ var WindowVue2 = {
547
561
  left: this.computedLeft + 'px',
548
562
  width: this.computedWidth + 'px',
549
563
  height: this.computedHeight + 'px' || ''
550
- }, this.$props.windowStyle)
564
+ }, this.$props.windowStyle),
565
+ ontouchstart: 'return false'
551
566
  }, [
552
567
  // @ts-ignore function children
553
568
  h(kendo_vue_common_1.Draggable, {
@@ -626,9 +641,9 @@ var WindowVue2 = {
626
641
  minimizeButton: minimizeButton,
627
642
  maximizeButton: maximizeButton,
628
643
  restoreButton: restoreButton
629
- })]), this.windowStage !== StageEnum_1.windowStage.MINIMIZED ? h("div", {
644
+ })]), this.windowStage !== StageEnum_1.windowStage.MINIMIZED ? [h("div", {
630
645
  "class": "k-window-content"
631
- }, [defaultSlot]) : null, this.windowStage === StageEnum_1.windowStage.DEFAULT && this.$props.resizable
646
+ }, [defaultSlot]), actions] : null, this.windowStage === StageEnum_1.windowStage.DEFAULT && this.$props.resizable
632
647
  // @ts-ignore function children
633
648
  ? h(WindowResizeHandlers_1.ResizeHandlers, {
634
649
  onResize: this.handleResize,
@@ -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: 1673797504,
11
+ publishDate: 1673956673,
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.7.4-dev.202301151601",
4
+ "version": "3.7.4-dev.202301171215",
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.7.4-dev.202301151601",
48
- "@progress/kendo-vue-common": "3.7.4-dev.202301151601"
47
+ "@progress/kendo-vue-buttons": "3.7.4-dev.202301171215",
48
+ "@progress/kendo-vue-common": "3.7.4-dev.202301171215"
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.7.4-dev.202301151601"
53
+ "@progress/kendo-vue-intl": "3.7.4-dev.202301171215"
54
54
  },
55
55
  "author": "Progress",
56
56
  "license": "SEE LICENSE IN LICENSE.md",