@progress/kendo-vue-dropdowns 5.2.0-dev.202406271321 → 5.2.0-dev.202408061007

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.
@@ -324,7 +324,6 @@ var DropDownTreeVue2 = {
324
324
  },
325
325
  // @ts-ignore
326
326
  render: function render(createElement) {
327
- var _this2 = this;
328
327
  var _this = this;
329
328
  var h = gh || createElement;
330
329
  var id = this.$props.id || this.componentGuid;
@@ -531,14 +530,41 @@ var DropDownTreeVue2 = {
531
530
  size = _b.size,
532
531
  rounded = _b.rounded,
533
532
  fillMode = _b.fillMode;
534
- var component = h("span", {
535
- "class": this.wrapperClass,
536
- tabIndex: tabIndex,
537
- attrs: this.v3 ? undefined : {
533
+ var component = function component() {
534
+ var _this2 = this;
535
+ return h("span", {
536
+ "class": this.wrapperClass,
538
537
  tabIndex: tabIndex,
538
+ attrs: this.v3 ? undefined : {
539
+ tabIndex: tabIndex,
540
+ accessKey: this.$props.accessKey,
541
+ id: id,
542
+ dir: dir,
543
+ role: "combobox",
544
+ "aria-haspopup": "tree",
545
+ "aria-expanded": this.isOpen,
546
+ "aria-disabled": disabled,
547
+ "aria-label": label || this.$props.ariaLabel,
548
+ "aria-labelledby": this.$props.ariaLabelledBy,
549
+ "aria-describedby": this.$props.ariaDescribedBy,
550
+ "aria-required": required
551
+ },
539
552
  accessKey: this.$props.accessKey,
540
553
  id: id,
541
554
  dir: dir,
555
+ ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
556
+ onKeydown: this.onWrapperKeyDown,
557
+ on: this.v3 ? undefined : {
558
+ "keydown": this.onWrapperKeyDown,
559
+ "click": this.onWrapperClick,
560
+ "mousedown": this.onWrapperMouseDown,
561
+ "focusin": this.onFocus,
562
+ "focusout": this.onBlur
563
+ },
564
+ onClick: this.onWrapperClick,
565
+ onMousedown: this.onWrapperMouseDown,
566
+ onFocusin: this.onFocus,
567
+ onFocusout: this.onBlur,
542
568
  role: "combobox",
543
569
  "aria-haspopup": "tree",
544
570
  "aria-expanded": this.isOpen,
@@ -547,146 +573,184 @@ var DropDownTreeVue2 = {
547
573
  "aria-labelledby": this.$props.ariaLabelledBy,
548
574
  "aria-describedby": this.$props.ariaDescribedBy,
549
575
  "aria-required": required
550
- },
551
- accessKey: this.$props.accessKey,
552
- id: id,
553
- dir: dir,
554
- ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
555
- onKeydown: this.onWrapperKeyDown,
556
- on: this.v3 ? undefined : {
557
- "keydown": this.onWrapperKeyDown,
558
- "click": this.onWrapperClick,
559
- "mousedown": this.onWrapperMouseDown,
560
- "focusin": this.onFocus,
561
- "focusout": this.onBlur
562
- },
563
- onClick: this.onWrapperClick,
564
- onMousedown: this.onWrapperMouseDown,
565
- onFocusin: this.onFocus,
566
- onFocusout: this.onBlur,
567
- role: "combobox",
568
- "aria-haspopup": "tree",
569
- "aria-expanded": this.isOpen,
570
- "aria-disabled": disabled,
571
- "aria-label": label || this.$props.ariaLabel,
572
- "aria-labelledby": this.$props.ariaLabelledBy,
573
- "aria-describedby": this.$props.ariaDescribedBy,
574
- "aria-required": required
575
- }, [h("span", {
576
- "class": "k-input-inner"
577
- }, [valueToRender]), this.$props.loading && h(kendo_vue_common_1.Icon, {
578
- "class": "k-input-loading-icon",
579
- name: "loading",
580
- attrs: this.v3 ? undefined : {
581
- name: "loading"
582
- }
583
- }), this.hasValue && !disabled && h("span", {
584
- onClick: this.onClear,
585
- on: this.v3 ? undefined : {
586
- "click": this.onClear,
587
- "mousedown": function mousedown(e) {
588
- return e.preventDefault();
576
+ }, [h("span", {
577
+ "class": "k-input-inner"
578
+ }, [valueToRender]), this.$props.loading && h(kendo_vue_common_1.Icon, {
579
+ "class": "k-input-loading-icon",
580
+ name: "loading",
581
+ attrs: this.v3 ? undefined : {
582
+ name: "loading"
589
583
  }
590
- },
591
- "class": "k-clear-value",
592
- title: localization.toLanguageString(main_1.clear, main_1.messages[main_1.clear]),
593
- attrs: this.v3 ? undefined : {
584
+ }), this.hasValue && !disabled && h("span", {
585
+ onClick: this.onClear,
586
+ on: this.v3 ? undefined : {
587
+ "click": this.onClear,
588
+ "mousedown": function mousedown(e) {
589
+ return e.preventDefault();
590
+ }
591
+ },
592
+ "class": "k-clear-value",
594
593
  title: localization.toLanguageString(main_1.clear, main_1.messages[main_1.clear]),
594
+ attrs: this.v3 ? undefined : {
595
+ title: localization.toLanguageString(main_1.clear, main_1.messages[main_1.clear]),
596
+ role: "button",
597
+ tabIndex: -1
598
+ },
595
599
  role: "button",
596
- tabIndex: -1
597
- },
598
- role: "button",
599
- tabIndex: -1,
600
- onMousedown: function mousedown(e) {
601
- return e.preventDefault();
602
- }
603
- }, [h(kendo_vue_common_1.Icon, {
604
- name: "x",
605
- attrs: this.v3 ? undefined : {
600
+ tabIndex: -1,
601
+ onMousedown: function mousedown(e) {
602
+ return e.preventDefault();
603
+ }
604
+ }, [h(kendo_vue_common_1.Icon, {
606
605
  name: "x",
606
+ attrs: this.v3 ? undefined : {
607
+ name: "x",
608
+ icon: kendo_svg_icons_1.xIcon
609
+ },
607
610
  icon: kendo_svg_icons_1.xIcon
608
- },
609
- icon: kendo_svg_icons_1.xIcon
610
- })]), h(kendo_vue_buttons_1.Button, {
611
- tabIndex: -1,
612
- attrs: this.v3 ? undefined : {
611
+ })]), h(kendo_vue_buttons_1.Button, {
613
612
  tabIndex: -1,
613
+ attrs: this.v3 ? undefined : {
614
+ tabIndex: -1,
615
+ type: "button",
616
+ "aria-label": "select",
617
+ size: size,
618
+ fillMode: fillMode,
619
+ themeColor: "base",
620
+ rounded: null,
621
+ icon: "caret-alt-down",
622
+ svgIcon: kendo_svg_icons_1.caretAltDownIcon
623
+ },
614
624
  type: "button",
615
625
  "aria-label": "select",
626
+ "class": "k-input-button",
616
627
  size: size,
617
628
  fillMode: fillMode,
618
629
  themeColor: "base",
619
630
  rounded: null,
620
631
  icon: "caret-alt-down",
621
632
  svgIcon: kendo_svg_icons_1.caretAltDownIcon
622
- },
623
- type: "button",
624
- "aria-label": "select",
625
- "class": "k-input-button",
626
- size: size,
627
- fillMode: fillMode,
628
- themeColor: "base",
629
- rounded: null,
630
- icon: "caret-alt-down",
631
- svgIcon: kendo_svg_icons_1.caretAltDownIcon
632
- }), /* Dummy component to support forms */h("select", {
633
- name: name,
634
- attrs: this.v3 ? undefined : {
633
+ }), /* Dummy component to support forms */h("select", {
635
634
  name: name,
635
+ attrs: this.v3 ? undefined : {
636
+ name: name,
637
+ tabIndex: -1,
638
+ "aria-hidden": true,
639
+ title: label
640
+ },
641
+ ref: (0, kendo_vue_common_1.setRef)(this, 'select'),
636
642
  tabIndex: -1,
637
643
  "aria-hidden": true,
638
- title: label
639
- },
640
- ref: (0, kendo_vue_common_1.setRef)(this, 'select'),
641
- tabIndex: -1,
642
- "aria-hidden": true,
643
- title: label,
644
- style: {
645
- opacity: 0,
646
- width: 1,
647
- border: 0,
648
- zIndex: -1,
649
- position: 'absolute',
650
- left: '50%'
651
- }
652
- }, [h("option", {
653
- value: this.v3 ? this.$props.valueMap ? this.$props.valueMap.call(undefined, this.computedValue) : this.computedValue : null,
654
- domProps: this.v3 ? undefined : {
655
- "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, this.computedValue) : this.computedValue
656
- }
657
- })]), !renderAdaptive &&
658
- // @ts-ignore function children
659
- h(kendo_vue_popup_1.Popup, {
660
- style: {
661
- width: this.popupWidth,
662
- direction: dir
663
- },
664
- ref: (0, kendo_vue_common_1.setRef)(this, 'popup'),
665
- "class": (0, kendo_vue_common_1.classNames)(popupSettings.className, {
666
- 'k-rtl': dir === 'rtl'
667
- }),
668
- popupClass: (0, kendo_vue_common_1.classNames)(popupSettings.popupClass, 'k-dropdowntree-popup', 'popup-' + this.componentGuid),
669
- attrs: this.v3 ? undefined : {
644
+ title: label,
645
+ style: {
646
+ opacity: 0,
647
+ width: 1,
648
+ border: 0,
649
+ zIndex: -1,
650
+ position: 'absolute',
651
+ left: '50%'
652
+ }
653
+ }, [h("option", {
654
+ value: this.v3 ? this.$props.valueMap ? this.$props.valueMap.call(undefined, this.computedValue) : this.computedValue : null,
655
+ domProps: this.v3 ? undefined : {
656
+ "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, this.computedValue) : this.computedValue
657
+ }
658
+ })]), !renderAdaptive &&
659
+ // @ts-ignore function children
660
+ h(kendo_vue_popup_1.Popup, {
661
+ style: {
662
+ width: this.popupWidth,
663
+ direction: dir
664
+ },
665
+ ref: (0, kendo_vue_common_1.setRef)(this, 'popup'),
666
+ "class": (0, kendo_vue_common_1.classNames)(popupSettings.className, {
667
+ 'k-rtl': dir === 'rtl'
668
+ }),
670
669
  popupClass: (0, kendo_vue_common_1.classNames)(popupSettings.popupClass, 'k-dropdowntree-popup', 'popup-' + this.componentGuid),
670
+ attrs: this.v3 ? undefined : {
671
+ popupClass: (0, kendo_vue_common_1.classNames)(popupSettings.popupClass, 'k-dropdowntree-popup', 'popup-' + this.componentGuid),
672
+ animate: popupSettings.animate,
673
+ anchor: this.anchor,
674
+ show: this.isOpen,
675
+ appendTo: popupSettings.appendTo
676
+ },
671
677
  animate: popupSettings.animate,
672
678
  anchor: this.anchor,
673
679
  show: this.isOpen,
680
+ onOpen: this.onPopupOpened,
681
+ on: this.v3 ? undefined : {
682
+ "open": this.onPopupOpened,
683
+ "close": this.onPopupClosed
684
+ },
685
+ onClose: this.onPopupClosed,
674
686
  appendTo: popupSettings.appendTo
675
- },
676
- animate: popupSettings.animate,
677
- anchor: this.anchor,
678
- show: this.isOpen,
679
- onOpen: this.onPopupOpened,
680
- on: this.v3 ? undefined : {
681
- "open": this.onPopupOpened,
682
- "close": this.onPopupClosed
683
- },
684
- onClose: this.onPopupClosed,
685
- appendTo: popupSettings.appendTo
686
- }, this.v3 ? function () {
687
- return [_this2.$props.filterable &&
688
- // @ts-ignore
689
- h(ListFilter_1.ListFilter, {
687
+ }, this.v3 ? function () {
688
+ return [_this2.$props.filterable &&
689
+ // @ts-ignore
690
+ h(ListFilter_1.ListFilter, {
691
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
692
+ attrs: _this2.v3 ? undefined : {
693
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
694
+ size: size,
695
+ rounded: rounded,
696
+ fillMode: fillMode
697
+ },
698
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'input'),
699
+ onChange: _this2.onFilterChange,
700
+ on: _this2.v3 ? undefined : {
701
+ "change": _this2.onFilterChange,
702
+ "keydown": _this2.onInputKeyDown,
703
+ "blur": _this2.onBlur
704
+ },
705
+ onKeydown: _this2.onInputKeyDown,
706
+ onBlur: _this2.onBlur,
707
+ size: size,
708
+ rounded: rounded,
709
+ fillMode: fillMode
710
+ }), header && h("div", {
711
+ "class": "k-list-header"
712
+ }, [header]), dataItems.length > 0 ?
713
+ // @ts-ignore
714
+ h(kendo_vue_treeview_1.TreeView, {
715
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
716
+ tabIndex: tabIndex,
717
+ attrs: _this2.v3 ? undefined : {
718
+ tabIndex: tabIndex,
719
+ dataItems: dataItems,
720
+ focusIdField: dataItemKey,
721
+ textField: _this2.$props.textField,
722
+ selectField: selectField,
723
+ expandField: _this2.$props.expandField,
724
+ childrenField: subItemsField,
725
+ expandIcons: true,
726
+ size: size,
727
+ item: itemTemplate
728
+ },
729
+ dataItems: dataItems,
730
+ focusIdField: dataItemKey,
731
+ textField: _this2.$props.textField,
732
+ selectField: selectField,
733
+ expandField: _this2.$props.expandField,
734
+ childrenField: subItemsField,
735
+ expandIcons: true,
736
+ onItemclick: _this2.onChange,
737
+ on: _this2.v3 ? undefined : {
738
+ "itemclick": _this2.onChange,
739
+ "expandchange": _this2.onExpand,
740
+ "focus": _this2.onFocus,
741
+ "blur": _this2.onBlur,
742
+ "keydown": _this2.onWrapperKeyDown
743
+ },
744
+ onExpandchange: _this2.onExpand,
745
+ onFocus: _this2.onFocus,
746
+ onBlur: _this2.onBlur,
747
+ onKeydown: _this2.onWrapperKeyDown,
748
+ size: size,
749
+ item: itemTemplate
750
+ }) : noDataTemplate, footer && h("div", {
751
+ "class": "k-list-footer"
752
+ }, [footer])];
753
+ } : [_this2.$props.filterable && h(ListFilter_1.ListFilter, {
690
754
  value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
691
755
  attrs: _this2.v3 ? undefined : {
692
756
  value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
@@ -698,17 +762,17 @@ var DropDownTreeVue2 = {
698
762
  onChange: _this2.onFilterChange,
699
763
  on: _this2.v3 ? undefined : {
700
764
  "change": _this2.onFilterChange,
701
- "keydown": _this2.onInputKeyDown
765
+ "keydown": _this2.onInputKeyDown,
766
+ "blur": _this2.onBlur
702
767
  },
703
768
  onKeydown: _this2.onInputKeyDown,
769
+ onBlur: _this2.onBlur,
704
770
  size: size,
705
771
  rounded: rounded,
706
772
  fillMode: fillMode
707
773
  }), header && h("div", {
708
774
  "class": "k-list-header"
709
- }, [header]), dataItems.length > 0 ?
710
- // @ts-ignore
711
- h(kendo_vue_treeview_1.TreeView, {
775
+ }, [header]), dataItems.length > 0 ? h(kendo_vue_treeview_1.TreeView, {
712
776
  ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
713
777
  tabIndex: tabIndex,
714
778
  attrs: _this2.v3 ? undefined : {
@@ -746,70 +810,12 @@ var DropDownTreeVue2 = {
746
810
  item: itemTemplate
747
811
  }) : noDataTemplate, footer && h("div", {
748
812
  "class": "k-list-footer"
749
- }, [footer])];
750
- } : [_this2.$props.filterable && h(ListFilter_1.ListFilter, {
751
- value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
752
- attrs: _this2.v3 ? undefined : {
753
- value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
754
- size: size,
755
- rounded: rounded,
756
- fillMode: fillMode
757
- },
758
- ref: (0, kendo_vue_common_1.setRef)(_this2, 'input'),
759
- onChange: _this2.onFilterChange,
760
- on: _this2.v3 ? undefined : {
761
- "change": _this2.onFilterChange,
762
- "keydown": _this2.onInputKeyDown
763
- },
764
- onKeydown: _this2.onInputKeyDown,
765
- size: size,
766
- rounded: rounded,
767
- fillMode: fillMode
768
- }), header && h("div", {
769
- "class": "k-list-header"
770
- }, [header]), dataItems.length > 0 ? h(kendo_vue_treeview_1.TreeView, {
771
- ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
772
- tabIndex: tabIndex,
773
- attrs: _this2.v3 ? undefined : {
774
- tabIndex: tabIndex,
775
- dataItems: dataItems,
776
- focusIdField: dataItemKey,
777
- textField: _this2.$props.textField,
778
- selectField: selectField,
779
- expandField: _this2.$props.expandField,
780
- childrenField: subItemsField,
781
- expandIcons: true,
782
- size: size,
783
- item: itemTemplate
784
- },
785
- dataItems: dataItems,
786
- focusIdField: dataItemKey,
787
- textField: _this2.$props.textField,
788
- selectField: selectField,
789
- expandField: _this2.$props.expandField,
790
- childrenField: subItemsField,
791
- expandIcons: true,
792
- onItemclick: _this2.onChange,
793
- on: _this2.v3 ? undefined : {
794
- "itemclick": _this2.onChange,
795
- "expandchange": _this2.onExpand,
796
- "focus": _this2.onFocus,
797
- "blur": _this2.onBlur,
798
- "keydown": _this2.onWrapperKeyDown
799
- },
800
- onExpandchange: _this2.onExpand,
801
- onFocus: _this2.onFocus,
802
- onBlur: _this2.onBlur,
803
- onKeydown: _this2.onWrapperKeyDown,
804
- size: size,
805
- item: itemTemplate
806
- }) : noDataTemplate, footer && h("div", {
807
- "class": "k-list-footer"
808
- }, [footer])])]);
813
+ }, [footer])])]);
814
+ };
809
815
  // The following one combines the default rendering of the MultiSelect and the Adaptive rendering.
810
816
  // This is needed because of Vue 2 specifics
811
- var dropdowntree = [component, renderAdaptive && renderAdaptiveListContainer.call(this)];
812
- var dropdowntreeToRender = isV3 ? dropdowntree : this.$props.adaptive ? h("span", [dropdowntree]) : component;
817
+ var dropdowntree = [isV3 ? h(component.call(this), __assign({}, this.$attrs)) : component.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
818
+ var dropdowntreeToRender = isV3 ? dropdowntree : this.$props.adaptive ? h("span", [dropdowntree]) : component.call(this);
813
819
  return label ?
814
820
  // @ts-ignore function children
815
821
  h(kendo_vue_labels_1.FloatingLabel, {