@progress/kendo-vue-dropdowns 4.3.0-dev.202401300902 → 4.3.0-dev.202401301055

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.
@@ -303,6 +303,7 @@ var MultiSelectTreeVue2 = {
303
303
  },
304
304
  // @ts-ignore
305
305
  render: function render(createElement) {
306
+ var _this2 = this;
306
307
  var _a, _b;
307
308
  var _this = this;
308
309
  var h = gh || createElement;
@@ -634,7 +635,7 @@ var MultiSelectTreeVue2 = {
634
635
  "aria-expanded": this.isOpen,
635
636
  "aria-describedby": 'tagslist-' + id,
636
637
  "aria-label": this.$props.ariaLabelledBy
637
- }, [this.tagsToRender.length === 0 && h("span", {
638
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
638
639
  "class": "k-input-value-text"
639
640
  }, [placeholder])])]), this.$props.loading && h(Icon, {
640
641
  "class": "k-input-loading-icon",
@@ -674,9 +675,9 @@ var MultiSelectTreeVue2 = {
674
675
  domProps: this.v3 ? undefined : {
675
676
  "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
676
677
  }
677
- })]),
678
+ })]), !renderAdaptive &&
678
679
  // @ts-ignore function children
679
- !renderAdaptive && h(Popup, {
680
+ h(Popup, {
680
681
  style: {
681
682
  width: this.popupWidth,
682
683
  direction: dir
@@ -703,45 +704,115 @@ var MultiSelectTreeVue2 = {
703
704
  onClose: this.onPopupClosed,
704
705
  appendTo: popupSettings.appendTo,
705
706
  ref: setRef(this, 'popup')
706
- }, [this.$props.filterable &&
707
- // @ts-ignore
708
- h(ListFilter, {
709
- value: this.$props.filter === undefined ? this.filterState : this.$props.filter,
710
- attrs: this.v3 ? undefined : {
711
- value: this.$props.filter === undefined ? this.filterState : this.$props.filter,
707
+ }, this.v3 ? function () {
708
+ return [_this2.$props.filterable &&
709
+ // @ts-ignore
710
+ h(ListFilter, {
711
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
+ attrs: _this2.v3 ? undefined : {
713
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
714
+ size: size,
715
+ rounded: rounded,
716
+ fillMode: fillMode
717
+ },
718
+ ref: setRef(_this2, 'input'),
719
+ onChange: _this2.onFilterChange,
720
+ on: _this2.v3 ? undefined : {
721
+ "change": _this2.onFilterChange,
722
+ "keydown": _this2.onInputKeyDown,
723
+ "focus": _this2.onFocus,
724
+ "blur": _this2.onBlur
725
+ },
726
+ onKeydown: _this2.onInputKeyDown,
727
+ size: size,
728
+ rounded: rounded,
729
+ fillMode: fillMode,
730
+ onFocus: _this2.onFocus,
731
+ onBlur: _this2.onBlur
732
+ }), header && h("div", {
733
+ "class": "k-list-header"
734
+ }, [header]), dataItems.length > 0 ?
735
+ // @ts-ignore
736
+ h(TreeView, {
737
+ ref: setRef(_this2, 'treeView'),
738
+ tabIndex: tabIndex,
739
+ attrs: _this2.v3 ? undefined : {
740
+ tabIndex: tabIndex,
741
+ dataItems: dataItems,
742
+ focusIdField: dataItemKey,
743
+ textField: _this2.$props.textField,
744
+ checkField: checkField,
745
+ checkIndeterminateField: checkIndeterminateField,
746
+ expandField: _this2.$props.expandField,
747
+ childrenField: subItemsField,
748
+ expandIcons: true,
749
+ checkboxes: true,
750
+ size: size,
751
+ item: itemTemplate
752
+ },
753
+ dataItems: dataItems,
754
+ focusIdField: dataItemKey,
755
+ textField: _this2.$props.textField,
756
+ checkField: checkField,
757
+ checkIndeterminateField: checkIndeterminateField,
758
+ expandField: _this2.$props.expandField,
759
+ childrenField: subItemsField,
760
+ expandIcons: true,
761
+ onItemclick: _this2.onChange,
762
+ on: _this2.v3 ? undefined : {
763
+ "itemclick": _this2.onChange,
764
+ "checkchange": _this2.onChange,
765
+ "expandchange": _this2.onExpand,
766
+ "focus": _this2.onFocus,
767
+ "blur": _this2.onBlur,
768
+ "keydown": _this2.onWrapperKeyDown
769
+ },
770
+ onCheckchange: _this2.onChange,
771
+ onExpandchange: _this2.onExpand,
772
+ onFocus: _this2.onFocus,
773
+ onBlur: _this2.onBlur,
774
+ onKeydown: _this2.onWrapperKeyDown,
775
+ checkboxes: true,
776
+ size: size,
777
+ item: itemTemplate
778
+ }) : noDataTemplate, footer && h("div", {
779
+ "class": "k-list-footer"
780
+ }, [footer])];
781
+ } : [_this2.$props.filterable && h(ListFilter, {
782
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
783
+ attrs: _this2.v3 ? undefined : {
784
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
785
  size: size,
713
786
  rounded: rounded,
714
787
  fillMode: fillMode
715
788
  },
716
- ref: setRef(this, 'input'),
717
- onChange: this.onFilterChange,
718
- on: this.v3 ? undefined : {
719
- "change": this.onFilterChange,
720
- "keydown": this.onInputKeyDown,
721
- "focus": this.onFocus,
722
- "blur": this.onBlur
789
+ ref: setRef(_this2, 'input'),
790
+ onChange: _this2.onFilterChange,
791
+ on: _this2.v3 ? undefined : {
792
+ "change": _this2.onFilterChange,
793
+ "keydown": _this2.onInputKeyDown,
794
+ "focus": _this2.onFocus,
795
+ "blur": _this2.onBlur
723
796
  },
724
- onKeydown: this.onInputKeyDown,
797
+ onKeydown: _this2.onInputKeyDown,
725
798
  size: size,
726
799
  rounded: rounded,
727
800
  fillMode: fillMode,
728
- onFocus: this.onFocus,
729
- onBlur: this.onBlur
801
+ onFocus: _this2.onFocus,
802
+ onBlur: _this2.onBlur
730
803
  }), header && h("div", {
731
804
  "class": "k-list-header"
732
- }, [header]), dataItems.length > 0 ?
733
- // @ts-ignore
734
- h(TreeView, {
735
- ref: setRef(this, 'treeView'),
805
+ }, [header]), dataItems.length > 0 ? h(TreeView, {
806
+ ref: setRef(_this2, 'treeView'),
736
807
  tabIndex: tabIndex,
737
- attrs: this.v3 ? undefined : {
808
+ attrs: _this2.v3 ? undefined : {
738
809
  tabIndex: tabIndex,
739
810
  dataItems: dataItems,
740
811
  focusIdField: dataItemKey,
741
- textField: this.$props.textField,
812
+ textField: _this2.$props.textField,
742
813
  checkField: checkField,
743
814
  checkIndeterminateField: checkIndeterminateField,
744
- expandField: this.$props.expandField,
815
+ expandField: _this2.$props.expandField,
745
816
  childrenField: subItemsField,
746
817
  expandIcons: true,
747
818
  checkboxes: true,
@@ -750,26 +821,26 @@ var MultiSelectTreeVue2 = {
750
821
  },
751
822
  dataItems: dataItems,
752
823
  focusIdField: dataItemKey,
753
- textField: this.$props.textField,
824
+ textField: _this2.$props.textField,
754
825
  checkField: checkField,
755
826
  checkIndeterminateField: checkIndeterminateField,
756
- expandField: this.$props.expandField,
827
+ expandField: _this2.$props.expandField,
757
828
  childrenField: subItemsField,
758
829
  expandIcons: true,
759
- onItemclick: this.onChange,
760
- on: this.v3 ? undefined : {
761
- "itemclick": this.onChange,
762
- "checkchange": this.onChange,
763
- "expandchange": this.onExpand,
764
- "focus": this.onFocus,
765
- "blur": this.onBlur,
766
- "keydown": this.onWrapperKeyDown
830
+ onItemclick: _this2.onChange,
831
+ on: _this2.v3 ? undefined : {
832
+ "itemclick": _this2.onChange,
833
+ "checkchange": _this2.onChange,
834
+ "expandchange": _this2.onExpand,
835
+ "focus": _this2.onFocus,
836
+ "blur": _this2.onBlur,
837
+ "keydown": _this2.onWrapperKeyDown
767
838
  },
768
- onCheckchange: this.onChange,
769
- onExpandchange: this.onExpand,
770
- onFocus: this.onFocus,
771
- onBlur: this.onBlur,
772
- onKeydown: this.onWrapperKeyDown,
839
+ onCheckchange: _this2.onChange,
840
+ onExpandchange: _this2.onExpand,
841
+ onFocus: _this2.onFocus,
842
+ onBlur: _this2.onBlur,
843
+ onKeydown: _this2.onWrapperKeyDown,
773
844
  checkboxes: true,
774
845
  size: size,
775
846
  item: itemTemplate
@@ -805,11 +876,7 @@ var MultiSelectTreeVue2 = {
805
876
  },
806
877
  methods: {
807
878
  clearFilter: function clearFilter(event) {
808
- this.onFilterChange(__assign(__assign({}, event), {
809
- target: __assign(__assign({}, event.target), {
810
- value: ''
811
- })
812
- }));
879
+ this.onFilterChange(event, '');
813
880
  },
814
881
  onCancel: function onCancel(event) {
815
882
  var dropdownEvent = {
@@ -898,7 +965,9 @@ var MultiSelectTreeVue2 = {
898
965
  }
899
966
  },
900
967
  closePopup: function closePopup(event) {
901
- this.clearFilter(event);
968
+ if (this.$props.filterable) {
969
+ this.clearFilter(event);
970
+ }
902
971
  if (this.isOpen) {
903
972
  var closeEvent = __assign({}, event);
904
973
  this.$emit('close', closeEvent);
@@ -1124,11 +1193,12 @@ var MultiSelectTreeVue2 = {
1124
1193
  };
1125
1194
  this.$emit('expandchange', expandEvent);
1126
1195
  },
1127
- onFilterChange: function onFilterChange(event) {
1196
+ onFilterChange: function onFilterChange(event, emptyValue) {
1197
+ var newValue = emptyValue ? '' : event.target.value;
1128
1198
  var filterDesc = {
1129
1199
  field: this.$props.textField,
1130
1200
  operator: 'contains',
1131
- value: event.target.value
1201
+ value: newValue
1132
1202
  };
1133
1203
  var ev = {
1134
1204
  filter: filterDesc,
@@ -1137,7 +1207,7 @@ var MultiSelectTreeVue2 = {
1137
1207
  };
1138
1208
  this.$emit('filterchange', ev);
1139
1209
  if (this.$props.filter === undefined) {
1140
- this.filterState = event.target.value;
1210
+ this.filterState = newValue;
1141
1211
  }
1142
1212
  }
1143
1213
  }
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-dropdowns',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1706604833,
8
+ publishDate: 1706611548,
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
  };
@@ -303,6 +303,7 @@ var MultiSelectTreeVue2 = {
303
303
  },
304
304
  // @ts-ignore
305
305
  render: function render(createElement) {
306
+ var _this2 = this;
306
307
  var _a, _b;
307
308
  var _this = this;
308
309
  var h = gh || createElement;
@@ -634,7 +635,7 @@ var MultiSelectTreeVue2 = {
634
635
  "aria-expanded": this.isOpen,
635
636
  "aria-describedby": 'tagslist-' + id,
636
637
  "aria-label": this.$props.ariaLabelledBy
637
- }, [this.tagsToRender.length === 0 && h("span", {
638
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
638
639
  "class": "k-input-value-text"
639
640
  }, [placeholder])])]), this.$props.loading && h(Icon, {
640
641
  "class": "k-input-loading-icon",
@@ -674,9 +675,9 @@ var MultiSelectTreeVue2 = {
674
675
  domProps: this.v3 ? undefined : {
675
676
  "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
676
677
  }
677
- })]),
678
+ })]), !renderAdaptive &&
678
679
  // @ts-ignore function children
679
- !renderAdaptive && h(Popup, {
680
+ h(Popup, {
680
681
  style: {
681
682
  width: this.popupWidth,
682
683
  direction: dir
@@ -703,45 +704,115 @@ var MultiSelectTreeVue2 = {
703
704
  onClose: this.onPopupClosed,
704
705
  appendTo: popupSettings.appendTo,
705
706
  ref: setRef(this, 'popup')
706
- }, [this.$props.filterable &&
707
- // @ts-ignore
708
- h(ListFilter, {
709
- value: this.$props.filter === undefined ? this.filterState : this.$props.filter,
710
- attrs: this.v3 ? undefined : {
711
- value: this.$props.filter === undefined ? this.filterState : this.$props.filter,
707
+ }, this.v3 ? function () {
708
+ return [_this2.$props.filterable &&
709
+ // @ts-ignore
710
+ h(ListFilter, {
711
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
+ attrs: _this2.v3 ? undefined : {
713
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
714
+ size: size,
715
+ rounded: rounded,
716
+ fillMode: fillMode
717
+ },
718
+ ref: setRef(_this2, 'input'),
719
+ onChange: _this2.onFilterChange,
720
+ on: _this2.v3 ? undefined : {
721
+ "change": _this2.onFilterChange,
722
+ "keydown": _this2.onInputKeyDown,
723
+ "focus": _this2.onFocus,
724
+ "blur": _this2.onBlur
725
+ },
726
+ onKeydown: _this2.onInputKeyDown,
727
+ size: size,
728
+ rounded: rounded,
729
+ fillMode: fillMode,
730
+ onFocus: _this2.onFocus,
731
+ onBlur: _this2.onBlur
732
+ }), header && h("div", {
733
+ "class": "k-list-header"
734
+ }, [header]), dataItems.length > 0 ?
735
+ // @ts-ignore
736
+ h(TreeView, {
737
+ ref: setRef(_this2, 'treeView'),
738
+ tabIndex: tabIndex,
739
+ attrs: _this2.v3 ? undefined : {
740
+ tabIndex: tabIndex,
741
+ dataItems: dataItems,
742
+ focusIdField: dataItemKey,
743
+ textField: _this2.$props.textField,
744
+ checkField: checkField,
745
+ checkIndeterminateField: checkIndeterminateField,
746
+ expandField: _this2.$props.expandField,
747
+ childrenField: subItemsField,
748
+ expandIcons: true,
749
+ checkboxes: true,
750
+ size: size,
751
+ item: itemTemplate
752
+ },
753
+ dataItems: dataItems,
754
+ focusIdField: dataItemKey,
755
+ textField: _this2.$props.textField,
756
+ checkField: checkField,
757
+ checkIndeterminateField: checkIndeterminateField,
758
+ expandField: _this2.$props.expandField,
759
+ childrenField: subItemsField,
760
+ expandIcons: true,
761
+ onItemclick: _this2.onChange,
762
+ on: _this2.v3 ? undefined : {
763
+ "itemclick": _this2.onChange,
764
+ "checkchange": _this2.onChange,
765
+ "expandchange": _this2.onExpand,
766
+ "focus": _this2.onFocus,
767
+ "blur": _this2.onBlur,
768
+ "keydown": _this2.onWrapperKeyDown
769
+ },
770
+ onCheckchange: _this2.onChange,
771
+ onExpandchange: _this2.onExpand,
772
+ onFocus: _this2.onFocus,
773
+ onBlur: _this2.onBlur,
774
+ onKeydown: _this2.onWrapperKeyDown,
775
+ checkboxes: true,
776
+ size: size,
777
+ item: itemTemplate
778
+ }) : noDataTemplate, footer && h("div", {
779
+ "class": "k-list-footer"
780
+ }, [footer])];
781
+ } : [_this2.$props.filterable && h(ListFilter, {
782
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
783
+ attrs: _this2.v3 ? undefined : {
784
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
785
  size: size,
713
786
  rounded: rounded,
714
787
  fillMode: fillMode
715
788
  },
716
- ref: setRef(this, 'input'),
717
- onChange: this.onFilterChange,
718
- on: this.v3 ? undefined : {
719
- "change": this.onFilterChange,
720
- "keydown": this.onInputKeyDown,
721
- "focus": this.onFocus,
722
- "blur": this.onBlur
789
+ ref: setRef(_this2, 'input'),
790
+ onChange: _this2.onFilterChange,
791
+ on: _this2.v3 ? undefined : {
792
+ "change": _this2.onFilterChange,
793
+ "keydown": _this2.onInputKeyDown,
794
+ "focus": _this2.onFocus,
795
+ "blur": _this2.onBlur
723
796
  },
724
- onKeydown: this.onInputKeyDown,
797
+ onKeydown: _this2.onInputKeyDown,
725
798
  size: size,
726
799
  rounded: rounded,
727
800
  fillMode: fillMode,
728
- onFocus: this.onFocus,
729
- onBlur: this.onBlur
801
+ onFocus: _this2.onFocus,
802
+ onBlur: _this2.onBlur
730
803
  }), header && h("div", {
731
804
  "class": "k-list-header"
732
- }, [header]), dataItems.length > 0 ?
733
- // @ts-ignore
734
- h(TreeView, {
735
- ref: setRef(this, 'treeView'),
805
+ }, [header]), dataItems.length > 0 ? h(TreeView, {
806
+ ref: setRef(_this2, 'treeView'),
736
807
  tabIndex: tabIndex,
737
- attrs: this.v3 ? undefined : {
808
+ attrs: _this2.v3 ? undefined : {
738
809
  tabIndex: tabIndex,
739
810
  dataItems: dataItems,
740
811
  focusIdField: dataItemKey,
741
- textField: this.$props.textField,
812
+ textField: _this2.$props.textField,
742
813
  checkField: checkField,
743
814
  checkIndeterminateField: checkIndeterminateField,
744
- expandField: this.$props.expandField,
815
+ expandField: _this2.$props.expandField,
745
816
  childrenField: subItemsField,
746
817
  expandIcons: true,
747
818
  checkboxes: true,
@@ -750,26 +821,26 @@ var MultiSelectTreeVue2 = {
750
821
  },
751
822
  dataItems: dataItems,
752
823
  focusIdField: dataItemKey,
753
- textField: this.$props.textField,
824
+ textField: _this2.$props.textField,
754
825
  checkField: checkField,
755
826
  checkIndeterminateField: checkIndeterminateField,
756
- expandField: this.$props.expandField,
827
+ expandField: _this2.$props.expandField,
757
828
  childrenField: subItemsField,
758
829
  expandIcons: true,
759
- onItemclick: this.onChange,
760
- on: this.v3 ? undefined : {
761
- "itemclick": this.onChange,
762
- "checkchange": this.onChange,
763
- "expandchange": this.onExpand,
764
- "focus": this.onFocus,
765
- "blur": this.onBlur,
766
- "keydown": this.onWrapperKeyDown
830
+ onItemclick: _this2.onChange,
831
+ on: _this2.v3 ? undefined : {
832
+ "itemclick": _this2.onChange,
833
+ "checkchange": _this2.onChange,
834
+ "expandchange": _this2.onExpand,
835
+ "focus": _this2.onFocus,
836
+ "blur": _this2.onBlur,
837
+ "keydown": _this2.onWrapperKeyDown
767
838
  },
768
- onCheckchange: this.onChange,
769
- onExpandchange: this.onExpand,
770
- onFocus: this.onFocus,
771
- onBlur: this.onBlur,
772
- onKeydown: this.onWrapperKeyDown,
839
+ onCheckchange: _this2.onChange,
840
+ onExpandchange: _this2.onExpand,
841
+ onFocus: _this2.onFocus,
842
+ onBlur: _this2.onBlur,
843
+ onKeydown: _this2.onWrapperKeyDown,
773
844
  checkboxes: true,
774
845
  size: size,
775
846
  item: itemTemplate
@@ -805,11 +876,7 @@ var MultiSelectTreeVue2 = {
805
876
  },
806
877
  methods: {
807
878
  clearFilter: function clearFilter(event) {
808
- this.onFilterChange(__assign(__assign({}, event), {
809
- target: __assign(__assign({}, event.target), {
810
- value: ''
811
- })
812
- }));
879
+ this.onFilterChange(event, '');
813
880
  },
814
881
  onCancel: function onCancel(event) {
815
882
  var dropdownEvent = {
@@ -898,7 +965,9 @@ var MultiSelectTreeVue2 = {
898
965
  }
899
966
  },
900
967
  closePopup: function closePopup(event) {
901
- this.clearFilter(event);
968
+ if (this.$props.filterable) {
969
+ this.clearFilter(event);
970
+ }
902
971
  if (this.isOpen) {
903
972
  var closeEvent = __assign({}, event);
904
973
  this.$emit('close', closeEvent);
@@ -1124,11 +1193,12 @@ var MultiSelectTreeVue2 = {
1124
1193
  };
1125
1194
  this.$emit('expandchange', expandEvent);
1126
1195
  },
1127
- onFilterChange: function onFilterChange(event) {
1196
+ onFilterChange: function onFilterChange(event, emptyValue) {
1197
+ var newValue = emptyValue ? '' : event.target.value;
1128
1198
  var filterDesc = {
1129
1199
  field: this.$props.textField,
1130
1200
  operator: 'contains',
1131
- value: event.target.value
1201
+ value: newValue
1132
1202
  };
1133
1203
  var ev = {
1134
1204
  filter: filterDesc,
@@ -1137,7 +1207,7 @@ var MultiSelectTreeVue2 = {
1137
1207
  };
1138
1208
  this.$emit('filterchange', ev);
1139
1209
  if (this.$props.filter === undefined) {
1140
- this.filterState = event.target.value;
1210
+ this.filterState = newValue;
1141
1211
  }
1142
1212
  }
1143
1213
  }
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-dropdowns',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1706604833,
8
+ publishDate: 1706611548,
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
  };