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

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.
@@ -23,6 +23,8 @@ export interface TagListProps {
23
23
  removeTagIcon: string;
24
24
  dataItems: Array<TagData>;
25
25
  guid: string;
26
+ id?: string;
27
+ className?: string;
26
28
  focused?: TagData;
27
29
  tagRender?: any;
28
30
  size?: null | 'small' | 'medium' | 'large' | string;
@@ -11,7 +11,7 @@ var __assign = this && this.__assign || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  // @ts-ignore
14
- import { getDefaultSlots, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
14
+ import { classNames, getDefaultSlots, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
15
15
  import * as Vue from 'vue';
16
16
  var allVue = Vue;
17
17
  var gh = allVue.h;
@@ -50,6 +50,8 @@ var TagListVue2 = {
50
50
  return ['solid', 'flat', 'outline'].includes(value);
51
51
  }
52
52
  },
53
+ id: String,
54
+ className: String,
53
55
  size: {
54
56
  type: String,
55
57
  default: 'medium',
@@ -90,9 +92,15 @@ var TagListVue2 = {
90
92
  size = _a.size,
91
93
  disabled = _a.disabled,
92
94
  tagsRounded = _a.tagsRounded,
93
- removeTagIcon = _a.removeTagIcon;
95
+ removeTagIcon = _a.removeTagIcon,
96
+ id = _a.id,
97
+ className = _a.className;
94
98
  return h("div", {
95
- "class": 'k-input-values',
99
+ "class": classNames('k-input-values', className),
100
+ id: id,
101
+ attrs: this.v3 ? undefined : {
102
+ id: id
103
+ },
96
104
  style: this.$attrs.style
97
105
  }, [h("div", {
98
106
  "class": this.wrapperClass,
@@ -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;
@@ -589,15 +590,10 @@ var MultiSelectTreeVue2 = {
589
590
  "aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : 'tagslist-' + id,
590
591
  "aria-required": this.$props.required,
591
592
  onClick: this.onWrapperClick
592
- }, [h("div", {
593
- id: 'tagslist-' + id,
594
- attrs: this.v3 ? undefined : {
595
- id: 'tagslist-' + id
596
- },
597
- "class": classNames('k-input-values k-chip-list k-selection-multiple', (_b = {}, _b["k-chip-list-".concat(sizeMap[size] || size)] = size, _b['k-readonly'] = this.hasValue, _b))
598
593
  }, [this.tagsToRenderRef.length > 0 && h(TagList, {
599
- tagRender: tagTemplate,
594
+ id: 'tagslist-' + id,
600
595
  attrs: this.v3 ? undefined : {
596
+ id: 'tagslist-' + id,
601
597
  tagRender: tagTemplate,
602
598
  dataItems: this.tagsToRenderRef,
603
599
  guid: id,
@@ -608,6 +604,8 @@ var MultiSelectTreeVue2 = {
608
604
  size: size,
609
605
  fillMode: fillMode
610
606
  },
607
+ "class": classNames('k-input-values k-chip-list k-selection-multiple', (_b = {}, _b["k-chip-list-".concat(sizeMap[size] || size)] = size, _b['k-readonly'] = this.hasValue, _b)),
608
+ tagRender: tagTemplate,
611
609
  onTagdelete: this.onTagDelete,
612
610
  on: this.v3 ? undefined : {
613
611
  "tagdelete": this.onTagDelete
@@ -634,9 +632,9 @@ var MultiSelectTreeVue2 = {
634
632
  "aria-expanded": this.isOpen,
635
633
  "aria-describedby": 'tagslist-' + id,
636
634
  "aria-label": this.$props.ariaLabelledBy
637
- }, [this.tagsToRender.length === 0 && h("span", {
635
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
638
636
  "class": "k-input-value-text"
639
- }, [placeholder])])]), this.$props.loading && h(Icon, {
637
+ }, [placeholder])]), this.$props.loading && h(Icon, {
640
638
  "class": "k-input-loading-icon",
641
639
  name: "loading",
642
640
  attrs: this.v3 ? undefined : {
@@ -674,9 +672,9 @@ var MultiSelectTreeVue2 = {
674
672
  domProps: this.v3 ? undefined : {
675
673
  "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
676
674
  }
677
- })]),
675
+ })]), !renderAdaptive &&
678
676
  // @ts-ignore function children
679
- !renderAdaptive && h(Popup, {
677
+ h(Popup, {
680
678
  style: {
681
679
  width: this.popupWidth,
682
680
  direction: dir
@@ -703,45 +701,115 @@ var MultiSelectTreeVue2 = {
703
701
  onClose: this.onPopupClosed,
704
702
  appendTo: popupSettings.appendTo,
705
703
  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,
704
+ }, this.v3 ? function () {
705
+ return [_this2.$props.filterable &&
706
+ // @ts-ignore
707
+ h(ListFilter, {
708
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
709
+ attrs: _this2.v3 ? undefined : {
710
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
711
+ size: size,
712
+ rounded: rounded,
713
+ fillMode: fillMode
714
+ },
715
+ ref: setRef(_this2, 'input'),
716
+ onChange: _this2.onFilterChange,
717
+ on: _this2.v3 ? undefined : {
718
+ "change": _this2.onFilterChange,
719
+ "keydown": _this2.onInputKeyDown,
720
+ "focus": _this2.onFocus,
721
+ "blur": _this2.onBlur
722
+ },
723
+ onKeydown: _this2.onInputKeyDown,
724
+ size: size,
725
+ rounded: rounded,
726
+ fillMode: fillMode,
727
+ onFocus: _this2.onFocus,
728
+ onBlur: _this2.onBlur
729
+ }), header && h("div", {
730
+ "class": "k-list-header"
731
+ }, [header]), dataItems.length > 0 ?
732
+ // @ts-ignore
733
+ h(TreeView, {
734
+ ref: setRef(_this2, 'treeView'),
735
+ tabIndex: tabIndex,
736
+ attrs: _this2.v3 ? undefined : {
737
+ tabIndex: tabIndex,
738
+ dataItems: dataItems,
739
+ focusIdField: dataItemKey,
740
+ textField: _this2.$props.textField,
741
+ checkField: checkField,
742
+ checkIndeterminateField: checkIndeterminateField,
743
+ expandField: _this2.$props.expandField,
744
+ childrenField: subItemsField,
745
+ expandIcons: true,
746
+ checkboxes: true,
747
+ size: size,
748
+ item: itemTemplate
749
+ },
750
+ dataItems: dataItems,
751
+ focusIdField: dataItemKey,
752
+ textField: _this2.$props.textField,
753
+ checkField: checkField,
754
+ checkIndeterminateField: checkIndeterminateField,
755
+ expandField: _this2.$props.expandField,
756
+ childrenField: subItemsField,
757
+ expandIcons: true,
758
+ onItemclick: _this2.onChange,
759
+ on: _this2.v3 ? undefined : {
760
+ "itemclick": _this2.onChange,
761
+ "checkchange": _this2.onChange,
762
+ "expandchange": _this2.onExpand,
763
+ "focus": _this2.onFocus,
764
+ "blur": _this2.onBlur,
765
+ "keydown": _this2.onWrapperKeyDown
766
+ },
767
+ onCheckchange: _this2.onChange,
768
+ onExpandchange: _this2.onExpand,
769
+ onFocus: _this2.onFocus,
770
+ onBlur: _this2.onBlur,
771
+ onKeydown: _this2.onWrapperKeyDown,
772
+ checkboxes: true,
773
+ size: size,
774
+ item: itemTemplate
775
+ }) : noDataTemplate, footer && h("div", {
776
+ "class": "k-list-footer"
777
+ }, [footer])];
778
+ } : [_this2.$props.filterable && h(ListFilter, {
779
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
780
+ attrs: _this2.v3 ? undefined : {
781
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
782
  size: size,
713
783
  rounded: rounded,
714
784
  fillMode: fillMode
715
785
  },
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
786
+ ref: setRef(_this2, 'input'),
787
+ onChange: _this2.onFilterChange,
788
+ on: _this2.v3 ? undefined : {
789
+ "change": _this2.onFilterChange,
790
+ "keydown": _this2.onInputKeyDown,
791
+ "focus": _this2.onFocus,
792
+ "blur": _this2.onBlur
723
793
  },
724
- onKeydown: this.onInputKeyDown,
794
+ onKeydown: _this2.onInputKeyDown,
725
795
  size: size,
726
796
  rounded: rounded,
727
797
  fillMode: fillMode,
728
- onFocus: this.onFocus,
729
- onBlur: this.onBlur
798
+ onFocus: _this2.onFocus,
799
+ onBlur: _this2.onBlur
730
800
  }), header && h("div", {
731
801
  "class": "k-list-header"
732
- }, [header]), dataItems.length > 0 ?
733
- // @ts-ignore
734
- h(TreeView, {
735
- ref: setRef(this, 'treeView'),
802
+ }, [header]), dataItems.length > 0 ? h(TreeView, {
803
+ ref: setRef(_this2, 'treeView'),
736
804
  tabIndex: tabIndex,
737
- attrs: this.v3 ? undefined : {
805
+ attrs: _this2.v3 ? undefined : {
738
806
  tabIndex: tabIndex,
739
807
  dataItems: dataItems,
740
808
  focusIdField: dataItemKey,
741
- textField: this.$props.textField,
809
+ textField: _this2.$props.textField,
742
810
  checkField: checkField,
743
811
  checkIndeterminateField: checkIndeterminateField,
744
- expandField: this.$props.expandField,
812
+ expandField: _this2.$props.expandField,
745
813
  childrenField: subItemsField,
746
814
  expandIcons: true,
747
815
  checkboxes: true,
@@ -750,26 +818,26 @@ var MultiSelectTreeVue2 = {
750
818
  },
751
819
  dataItems: dataItems,
752
820
  focusIdField: dataItemKey,
753
- textField: this.$props.textField,
821
+ textField: _this2.$props.textField,
754
822
  checkField: checkField,
755
823
  checkIndeterminateField: checkIndeterminateField,
756
- expandField: this.$props.expandField,
824
+ expandField: _this2.$props.expandField,
757
825
  childrenField: subItemsField,
758
826
  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
827
+ onItemclick: _this2.onChange,
828
+ on: _this2.v3 ? undefined : {
829
+ "itemclick": _this2.onChange,
830
+ "checkchange": _this2.onChange,
831
+ "expandchange": _this2.onExpand,
832
+ "focus": _this2.onFocus,
833
+ "blur": _this2.onBlur,
834
+ "keydown": _this2.onWrapperKeyDown
767
835
  },
768
- onCheckchange: this.onChange,
769
- onExpandchange: this.onExpand,
770
- onFocus: this.onFocus,
771
- onBlur: this.onBlur,
772
- onKeydown: this.onWrapperKeyDown,
836
+ onCheckchange: _this2.onChange,
837
+ onExpandchange: _this2.onExpand,
838
+ onFocus: _this2.onFocus,
839
+ onBlur: _this2.onBlur,
840
+ onKeydown: _this2.onWrapperKeyDown,
773
841
  checkboxes: true,
774
842
  size: size,
775
843
  item: itemTemplate
@@ -805,11 +873,7 @@ var MultiSelectTreeVue2 = {
805
873
  },
806
874
  methods: {
807
875
  clearFilter: function clearFilter(event) {
808
- this.onFilterChange(__assign(__assign({}, event), {
809
- target: __assign(__assign({}, event.target), {
810
- value: ''
811
- })
812
- }));
876
+ this.onFilterChange(event, '');
813
877
  },
814
878
  onCancel: function onCancel(event) {
815
879
  var dropdownEvent = {
@@ -898,7 +962,9 @@ var MultiSelectTreeVue2 = {
898
962
  }
899
963
  },
900
964
  closePopup: function closePopup(event) {
901
- this.clearFilter(event);
965
+ if (this.$props.filterable) {
966
+ this.clearFilter(event);
967
+ }
902
968
  if (this.isOpen) {
903
969
  var closeEvent = __assign({}, event);
904
970
  this.$emit('close', closeEvent);
@@ -1124,11 +1190,12 @@ var MultiSelectTreeVue2 = {
1124
1190
  };
1125
1191
  this.$emit('expandchange', expandEvent);
1126
1192
  },
1127
- onFilterChange: function onFilterChange(event) {
1193
+ onFilterChange: function onFilterChange(event, emptyValue) {
1194
+ var newValue = emptyValue ? '' : event.target.value;
1128
1195
  var filterDesc = {
1129
1196
  field: this.$props.textField,
1130
1197
  operator: 'contains',
1131
- value: event.target.value
1198
+ value: newValue
1132
1199
  };
1133
1200
  var ev = {
1134
1201
  filter: filterDesc,
@@ -1137,7 +1204,7 @@ var MultiSelectTreeVue2 = {
1137
1204
  };
1138
1205
  this.$emit('filterchange', ev);
1139
1206
  if (this.$props.filter === undefined) {
1140
- this.filterState = event.target.value;
1207
+ this.filterState = newValue;
1141
1208
  }
1142
1209
  }
1143
1210
  }
@@ -22,6 +22,7 @@ import { getTemplate } from '@progress/kendo-vue-common';
22
22
  */
23
23
  var GroupStickyHeaderVue2 = {
24
24
  name: 'KendoGroupStickyHeader',
25
+ inheritAttrs: false,
25
26
  props: {
26
27
  group: String,
27
28
  render: Object
@@ -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: 1706624233,
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
  };
@@ -23,6 +23,8 @@ export interface TagListProps {
23
23
  removeTagIcon: string;
24
24
  dataItems: Array<TagData>;
25
25
  guid: string;
26
+ id?: string;
27
+ className?: string;
26
28
  focused?: TagData;
27
29
  tagRender?: any;
28
30
  size?: null | 'small' | 'medium' | 'large' | string;
@@ -11,7 +11,7 @@ var __assign = this && this.__assign || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  // @ts-ignore
14
- import { getDefaultSlots, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
14
+ import { classNames, getDefaultSlots, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
15
15
  import * as Vue from 'vue';
16
16
  var allVue = Vue;
17
17
  var gh = allVue.h;
@@ -50,6 +50,8 @@ var TagListVue2 = {
50
50
  return ['solid', 'flat', 'outline'].includes(value);
51
51
  }
52
52
  },
53
+ id: String,
54
+ className: String,
53
55
  size: {
54
56
  type: String,
55
57
  default: 'medium',
@@ -90,9 +92,15 @@ var TagListVue2 = {
90
92
  size = _a.size,
91
93
  disabled = _a.disabled,
92
94
  tagsRounded = _a.tagsRounded,
93
- removeTagIcon = _a.removeTagIcon;
95
+ removeTagIcon = _a.removeTagIcon,
96
+ id = _a.id,
97
+ className = _a.className;
94
98
  return h("div", {
95
- "class": 'k-input-values',
99
+ "class": classNames('k-input-values', className),
100
+ id: id,
101
+ attrs: this.v3 ? undefined : {
102
+ id: id
103
+ },
96
104
  style: this.$attrs.style
97
105
  }, [h("div", {
98
106
  "class": this.wrapperClass,
@@ -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;
@@ -589,15 +590,10 @@ var MultiSelectTreeVue2 = {
589
590
  "aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : 'tagslist-' + id,
590
591
  "aria-required": this.$props.required,
591
592
  onClick: this.onWrapperClick
592
- }, [h("div", {
593
- id: 'tagslist-' + id,
594
- attrs: this.v3 ? undefined : {
595
- id: 'tagslist-' + id
596
- },
597
- "class": classNames('k-input-values k-chip-list k-selection-multiple', (_b = {}, _b["k-chip-list-".concat(sizeMap[size] || size)] = size, _b['k-readonly'] = this.hasValue, _b))
598
593
  }, [this.tagsToRenderRef.length > 0 && h(TagList, {
599
- tagRender: tagTemplate,
594
+ id: 'tagslist-' + id,
600
595
  attrs: this.v3 ? undefined : {
596
+ id: 'tagslist-' + id,
601
597
  tagRender: tagTemplate,
602
598
  dataItems: this.tagsToRenderRef,
603
599
  guid: id,
@@ -608,6 +604,8 @@ var MultiSelectTreeVue2 = {
608
604
  size: size,
609
605
  fillMode: fillMode
610
606
  },
607
+ "class": classNames('k-input-values k-chip-list k-selection-multiple', (_b = {}, _b["k-chip-list-".concat(sizeMap[size] || size)] = size, _b['k-readonly'] = this.hasValue, _b)),
608
+ tagRender: tagTemplate,
611
609
  onTagdelete: this.onTagDelete,
612
610
  on: this.v3 ? undefined : {
613
611
  "tagdelete": this.onTagDelete
@@ -634,9 +632,9 @@ var MultiSelectTreeVue2 = {
634
632
  "aria-expanded": this.isOpen,
635
633
  "aria-describedby": 'tagslist-' + id,
636
634
  "aria-label": this.$props.ariaLabelledBy
637
- }, [this.tagsToRender.length === 0 && h("span", {
635
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
638
636
  "class": "k-input-value-text"
639
- }, [placeholder])])]), this.$props.loading && h(Icon, {
637
+ }, [placeholder])]), this.$props.loading && h(Icon, {
640
638
  "class": "k-input-loading-icon",
641
639
  name: "loading",
642
640
  attrs: this.v3 ? undefined : {
@@ -674,9 +672,9 @@ var MultiSelectTreeVue2 = {
674
672
  domProps: this.v3 ? undefined : {
675
673
  "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
676
674
  }
677
- })]),
675
+ })]), !renderAdaptive &&
678
676
  // @ts-ignore function children
679
- !renderAdaptive && h(Popup, {
677
+ h(Popup, {
680
678
  style: {
681
679
  width: this.popupWidth,
682
680
  direction: dir
@@ -703,45 +701,115 @@ var MultiSelectTreeVue2 = {
703
701
  onClose: this.onPopupClosed,
704
702
  appendTo: popupSettings.appendTo,
705
703
  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,
704
+ }, this.v3 ? function () {
705
+ return [_this2.$props.filterable &&
706
+ // @ts-ignore
707
+ h(ListFilter, {
708
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
709
+ attrs: _this2.v3 ? undefined : {
710
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
711
+ size: size,
712
+ rounded: rounded,
713
+ fillMode: fillMode
714
+ },
715
+ ref: setRef(_this2, 'input'),
716
+ onChange: _this2.onFilterChange,
717
+ on: _this2.v3 ? undefined : {
718
+ "change": _this2.onFilterChange,
719
+ "keydown": _this2.onInputKeyDown,
720
+ "focus": _this2.onFocus,
721
+ "blur": _this2.onBlur
722
+ },
723
+ onKeydown: _this2.onInputKeyDown,
724
+ size: size,
725
+ rounded: rounded,
726
+ fillMode: fillMode,
727
+ onFocus: _this2.onFocus,
728
+ onBlur: _this2.onBlur
729
+ }), header && h("div", {
730
+ "class": "k-list-header"
731
+ }, [header]), dataItems.length > 0 ?
732
+ // @ts-ignore
733
+ h(TreeView, {
734
+ ref: setRef(_this2, 'treeView'),
735
+ tabIndex: tabIndex,
736
+ attrs: _this2.v3 ? undefined : {
737
+ tabIndex: tabIndex,
738
+ dataItems: dataItems,
739
+ focusIdField: dataItemKey,
740
+ textField: _this2.$props.textField,
741
+ checkField: checkField,
742
+ checkIndeterminateField: checkIndeterminateField,
743
+ expandField: _this2.$props.expandField,
744
+ childrenField: subItemsField,
745
+ expandIcons: true,
746
+ checkboxes: true,
747
+ size: size,
748
+ item: itemTemplate
749
+ },
750
+ dataItems: dataItems,
751
+ focusIdField: dataItemKey,
752
+ textField: _this2.$props.textField,
753
+ checkField: checkField,
754
+ checkIndeterminateField: checkIndeterminateField,
755
+ expandField: _this2.$props.expandField,
756
+ childrenField: subItemsField,
757
+ expandIcons: true,
758
+ onItemclick: _this2.onChange,
759
+ on: _this2.v3 ? undefined : {
760
+ "itemclick": _this2.onChange,
761
+ "checkchange": _this2.onChange,
762
+ "expandchange": _this2.onExpand,
763
+ "focus": _this2.onFocus,
764
+ "blur": _this2.onBlur,
765
+ "keydown": _this2.onWrapperKeyDown
766
+ },
767
+ onCheckchange: _this2.onChange,
768
+ onExpandchange: _this2.onExpand,
769
+ onFocus: _this2.onFocus,
770
+ onBlur: _this2.onBlur,
771
+ onKeydown: _this2.onWrapperKeyDown,
772
+ checkboxes: true,
773
+ size: size,
774
+ item: itemTemplate
775
+ }) : noDataTemplate, footer && h("div", {
776
+ "class": "k-list-footer"
777
+ }, [footer])];
778
+ } : [_this2.$props.filterable && h(ListFilter, {
779
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
780
+ attrs: _this2.v3 ? undefined : {
781
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
782
  size: size,
713
783
  rounded: rounded,
714
784
  fillMode: fillMode
715
785
  },
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
786
+ ref: setRef(_this2, 'input'),
787
+ onChange: _this2.onFilterChange,
788
+ on: _this2.v3 ? undefined : {
789
+ "change": _this2.onFilterChange,
790
+ "keydown": _this2.onInputKeyDown,
791
+ "focus": _this2.onFocus,
792
+ "blur": _this2.onBlur
723
793
  },
724
- onKeydown: this.onInputKeyDown,
794
+ onKeydown: _this2.onInputKeyDown,
725
795
  size: size,
726
796
  rounded: rounded,
727
797
  fillMode: fillMode,
728
- onFocus: this.onFocus,
729
- onBlur: this.onBlur
798
+ onFocus: _this2.onFocus,
799
+ onBlur: _this2.onBlur
730
800
  }), header && h("div", {
731
801
  "class": "k-list-header"
732
- }, [header]), dataItems.length > 0 ?
733
- // @ts-ignore
734
- h(TreeView, {
735
- ref: setRef(this, 'treeView'),
802
+ }, [header]), dataItems.length > 0 ? h(TreeView, {
803
+ ref: setRef(_this2, 'treeView'),
736
804
  tabIndex: tabIndex,
737
- attrs: this.v3 ? undefined : {
805
+ attrs: _this2.v3 ? undefined : {
738
806
  tabIndex: tabIndex,
739
807
  dataItems: dataItems,
740
808
  focusIdField: dataItemKey,
741
- textField: this.$props.textField,
809
+ textField: _this2.$props.textField,
742
810
  checkField: checkField,
743
811
  checkIndeterminateField: checkIndeterminateField,
744
- expandField: this.$props.expandField,
812
+ expandField: _this2.$props.expandField,
745
813
  childrenField: subItemsField,
746
814
  expandIcons: true,
747
815
  checkboxes: true,
@@ -750,26 +818,26 @@ var MultiSelectTreeVue2 = {
750
818
  },
751
819
  dataItems: dataItems,
752
820
  focusIdField: dataItemKey,
753
- textField: this.$props.textField,
821
+ textField: _this2.$props.textField,
754
822
  checkField: checkField,
755
823
  checkIndeterminateField: checkIndeterminateField,
756
- expandField: this.$props.expandField,
824
+ expandField: _this2.$props.expandField,
757
825
  childrenField: subItemsField,
758
826
  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
827
+ onItemclick: _this2.onChange,
828
+ on: _this2.v3 ? undefined : {
829
+ "itemclick": _this2.onChange,
830
+ "checkchange": _this2.onChange,
831
+ "expandchange": _this2.onExpand,
832
+ "focus": _this2.onFocus,
833
+ "blur": _this2.onBlur,
834
+ "keydown": _this2.onWrapperKeyDown
767
835
  },
768
- onCheckchange: this.onChange,
769
- onExpandchange: this.onExpand,
770
- onFocus: this.onFocus,
771
- onBlur: this.onBlur,
772
- onKeydown: this.onWrapperKeyDown,
836
+ onCheckchange: _this2.onChange,
837
+ onExpandchange: _this2.onExpand,
838
+ onFocus: _this2.onFocus,
839
+ onBlur: _this2.onBlur,
840
+ onKeydown: _this2.onWrapperKeyDown,
773
841
  checkboxes: true,
774
842
  size: size,
775
843
  item: itemTemplate
@@ -805,11 +873,7 @@ var MultiSelectTreeVue2 = {
805
873
  },
806
874
  methods: {
807
875
  clearFilter: function clearFilter(event) {
808
- this.onFilterChange(__assign(__assign({}, event), {
809
- target: __assign(__assign({}, event.target), {
810
- value: ''
811
- })
812
- }));
876
+ this.onFilterChange(event, '');
813
877
  },
814
878
  onCancel: function onCancel(event) {
815
879
  var dropdownEvent = {
@@ -898,7 +962,9 @@ var MultiSelectTreeVue2 = {
898
962
  }
899
963
  },
900
964
  closePopup: function closePopup(event) {
901
- this.clearFilter(event);
965
+ if (this.$props.filterable) {
966
+ this.clearFilter(event);
967
+ }
902
968
  if (this.isOpen) {
903
969
  var closeEvent = __assign({}, event);
904
970
  this.$emit('close', closeEvent);
@@ -1124,11 +1190,12 @@ var MultiSelectTreeVue2 = {
1124
1190
  };
1125
1191
  this.$emit('expandchange', expandEvent);
1126
1192
  },
1127
- onFilterChange: function onFilterChange(event) {
1193
+ onFilterChange: function onFilterChange(event, emptyValue) {
1194
+ var newValue = emptyValue ? '' : event.target.value;
1128
1195
  var filterDesc = {
1129
1196
  field: this.$props.textField,
1130
1197
  operator: 'contains',
1131
- value: event.target.value
1198
+ value: newValue
1132
1199
  };
1133
1200
  var ev = {
1134
1201
  filter: filterDesc,
@@ -1137,7 +1204,7 @@ var MultiSelectTreeVue2 = {
1137
1204
  };
1138
1205
  this.$emit('filterchange', ev);
1139
1206
  if (this.$props.filter === undefined) {
1140
- this.filterState = event.target.value;
1207
+ this.filterState = newValue;
1141
1208
  }
1142
1209
  }
1143
1210
  }