@progress/kendo-vue-dropdowns 5.2.0-dev.202406241421 → 5.2.0-dev.202407150706

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,182 @@ 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
+ },
704
+ onKeydown: _this2.onInputKeyDown,
705
+ size: size,
706
+ rounded: rounded,
707
+ fillMode: fillMode
708
+ }), header && h("div", {
709
+ "class": "k-list-header"
710
+ }, [header]), dataItems.length > 0 ?
711
+ // @ts-ignore
712
+ h(kendo_vue_treeview_1.TreeView, {
713
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
714
+ tabIndex: tabIndex,
715
+ attrs: _this2.v3 ? undefined : {
716
+ tabIndex: tabIndex,
717
+ dataItems: dataItems,
718
+ focusIdField: dataItemKey,
719
+ textField: _this2.$props.textField,
720
+ selectField: selectField,
721
+ expandField: _this2.$props.expandField,
722
+ childrenField: subItemsField,
723
+ expandIcons: true,
724
+ size: size,
725
+ item: itemTemplate
726
+ },
727
+ dataItems: dataItems,
728
+ focusIdField: dataItemKey,
729
+ textField: _this2.$props.textField,
730
+ selectField: selectField,
731
+ expandField: _this2.$props.expandField,
732
+ childrenField: subItemsField,
733
+ expandIcons: true,
734
+ onItemclick: _this2.onChange,
735
+ on: _this2.v3 ? undefined : {
736
+ "itemclick": _this2.onChange,
737
+ "expandchange": _this2.onExpand,
738
+ "focus": _this2.onFocus,
739
+ "blur": _this2.onBlur,
740
+ "keydown": _this2.onWrapperKeyDown
741
+ },
742
+ onExpandchange: _this2.onExpand,
743
+ onFocus: _this2.onFocus,
744
+ onBlur: _this2.onBlur,
745
+ onKeydown: _this2.onWrapperKeyDown,
746
+ size: size,
747
+ item: itemTemplate
748
+ }) : noDataTemplate, footer && h("div", {
749
+ "class": "k-list-footer"
750
+ }, [footer])];
751
+ } : [_this2.$props.filterable && h(ListFilter_1.ListFilter, {
690
752
  value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
691
753
  attrs: _this2.v3 ? undefined : {
692
754
  value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
@@ -706,9 +768,7 @@ var DropDownTreeVue2 = {
706
768
  fillMode: fillMode
707
769
  }), header && h("div", {
708
770
  "class": "k-list-header"
709
- }, [header]), dataItems.length > 0 ?
710
- // @ts-ignore
711
- h(kendo_vue_treeview_1.TreeView, {
771
+ }, [header]), dataItems.length > 0 ? h(kendo_vue_treeview_1.TreeView, {
712
772
  ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
713
773
  tabIndex: tabIndex,
714
774
  attrs: _this2.v3 ? undefined : {
@@ -746,70 +806,12 @@ var DropDownTreeVue2 = {
746
806
  item: itemTemplate
747
807
  }) : noDataTemplate, footer && h("div", {
748
808
  "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])])]);
809
+ }, [footer])])]);
810
+ };
809
811
  // The following one combines the default rendering of the MultiSelect and the Adaptive rendering.
810
812
  // 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;
813
+ var dropdowntree = [isV3 ? h(component.call(this), __assign({}, this.$attrs)) : component.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
814
+ var dropdowntreeToRender = isV3 ? dropdowntree : this.$props.adaptive ? h("span", [dropdowntree]) : component.call(this);
813
815
  return label ?
814
816
  // @ts-ignore function children
815
817
  h(kendo_vue_labels_1.FloatingLabel, {