@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.
@@ -309,6 +309,7 @@ var MultiSelectTreeVue2 = {
309
309
  },
310
310
  // @ts-ignore
311
311
  render: function render(createElement) {
312
+ var _this2 = this;
312
313
  var _a, _b;
313
314
  var _this = this;
314
315
  var h = gh || createElement;
@@ -640,7 +641,7 @@ var MultiSelectTreeVue2 = {
640
641
  "aria-expanded": this.isOpen,
641
642
  "aria-describedby": 'tagslist-' + id,
642
643
  "aria-label": this.$props.ariaLabelledBy
643
- }, [this.tagsToRender.length === 0 && h("span", {
644
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
644
645
  "class": "k-input-value-text"
645
646
  }, [placeholder])])]), this.$props.loading && h(kendo_vue_common_1.Icon, {
646
647
  "class": "k-input-loading-icon",
@@ -680,9 +681,9 @@ var MultiSelectTreeVue2 = {
680
681
  domProps: this.v3 ? undefined : {
681
682
  "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
682
683
  }
683
- })]),
684
+ })]), !renderAdaptive &&
684
685
  // @ts-ignore function children
685
- !renderAdaptive && h(kendo_vue_popup_1.Popup, {
686
+ h(kendo_vue_popup_1.Popup, {
686
687
  style: {
687
688
  width: this.popupWidth,
688
689
  direction: dir
@@ -709,45 +710,115 @@ var MultiSelectTreeVue2 = {
709
710
  onClose: this.onPopupClosed,
710
711
  appendTo: popupSettings.appendTo,
711
712
  ref: (0, kendo_vue_common_1.setRef)(this, 'popup')
712
- }, [this.$props.filterable &&
713
- // @ts-ignore
714
- h(ListFilter_1.ListFilter, {
715
- value: this.$props.filter === undefined ? this.filterState : this.$props.filter,
716
- attrs: this.v3 ? undefined : {
717
- value: this.$props.filter === undefined ? this.filterState : this.$props.filter,
713
+ }, this.v3 ? function () {
714
+ return [_this2.$props.filterable &&
715
+ // @ts-ignore
716
+ h(ListFilter_1.ListFilter, {
717
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
718
+ attrs: _this2.v3 ? undefined : {
719
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
720
+ size: size,
721
+ rounded: rounded,
722
+ fillMode: fillMode
723
+ },
724
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'input'),
725
+ onChange: _this2.onFilterChange,
726
+ on: _this2.v3 ? undefined : {
727
+ "change": _this2.onFilterChange,
728
+ "keydown": _this2.onInputKeyDown,
729
+ "focus": _this2.onFocus,
730
+ "blur": _this2.onBlur
731
+ },
732
+ onKeydown: _this2.onInputKeyDown,
733
+ size: size,
734
+ rounded: rounded,
735
+ fillMode: fillMode,
736
+ onFocus: _this2.onFocus,
737
+ onBlur: _this2.onBlur
738
+ }), header && h("div", {
739
+ "class": "k-list-header"
740
+ }, [header]), dataItems.length > 0 ?
741
+ // @ts-ignore
742
+ h(kendo_vue_treeview_1.TreeView, {
743
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
744
+ tabIndex: tabIndex,
745
+ attrs: _this2.v3 ? undefined : {
746
+ tabIndex: tabIndex,
747
+ dataItems: dataItems,
748
+ focusIdField: dataItemKey,
749
+ textField: _this2.$props.textField,
750
+ checkField: checkField,
751
+ checkIndeterminateField: checkIndeterminateField,
752
+ expandField: _this2.$props.expandField,
753
+ childrenField: subItemsField,
754
+ expandIcons: true,
755
+ checkboxes: true,
756
+ size: size,
757
+ item: itemTemplate
758
+ },
759
+ dataItems: dataItems,
760
+ focusIdField: dataItemKey,
761
+ textField: _this2.$props.textField,
762
+ checkField: checkField,
763
+ checkIndeterminateField: checkIndeterminateField,
764
+ expandField: _this2.$props.expandField,
765
+ childrenField: subItemsField,
766
+ expandIcons: true,
767
+ onItemclick: _this2.onChange,
768
+ on: _this2.v3 ? undefined : {
769
+ "itemclick": _this2.onChange,
770
+ "checkchange": _this2.onChange,
771
+ "expandchange": _this2.onExpand,
772
+ "focus": _this2.onFocus,
773
+ "blur": _this2.onBlur,
774
+ "keydown": _this2.onWrapperKeyDown
775
+ },
776
+ onCheckchange: _this2.onChange,
777
+ onExpandchange: _this2.onExpand,
778
+ onFocus: _this2.onFocus,
779
+ onBlur: _this2.onBlur,
780
+ onKeydown: _this2.onWrapperKeyDown,
781
+ checkboxes: true,
782
+ size: size,
783
+ item: itemTemplate
784
+ }) : noDataTemplate, footer && h("div", {
785
+ "class": "k-list-footer"
786
+ }, [footer])];
787
+ } : [_this2.$props.filterable && h(ListFilter_1.ListFilter, {
788
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
789
+ attrs: _this2.v3 ? undefined : {
790
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
718
791
  size: size,
719
792
  rounded: rounded,
720
793
  fillMode: fillMode
721
794
  },
722
- ref: (0, kendo_vue_common_1.setRef)(this, 'input'),
723
- onChange: this.onFilterChange,
724
- on: this.v3 ? undefined : {
725
- "change": this.onFilterChange,
726
- "keydown": this.onInputKeyDown,
727
- "focus": this.onFocus,
728
- "blur": this.onBlur
795
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'input'),
796
+ onChange: _this2.onFilterChange,
797
+ on: _this2.v3 ? undefined : {
798
+ "change": _this2.onFilterChange,
799
+ "keydown": _this2.onInputKeyDown,
800
+ "focus": _this2.onFocus,
801
+ "blur": _this2.onBlur
729
802
  },
730
- onKeydown: this.onInputKeyDown,
803
+ onKeydown: _this2.onInputKeyDown,
731
804
  size: size,
732
805
  rounded: rounded,
733
806
  fillMode: fillMode,
734
- onFocus: this.onFocus,
735
- onBlur: this.onBlur
807
+ onFocus: _this2.onFocus,
808
+ onBlur: _this2.onBlur
736
809
  }), header && h("div", {
737
810
  "class": "k-list-header"
738
- }, [header]), dataItems.length > 0 ?
739
- // @ts-ignore
740
- h(kendo_vue_treeview_1.TreeView, {
741
- ref: (0, kendo_vue_common_1.setRef)(this, 'treeView'),
811
+ }, [header]), dataItems.length > 0 ? h(kendo_vue_treeview_1.TreeView, {
812
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
742
813
  tabIndex: tabIndex,
743
- attrs: this.v3 ? undefined : {
814
+ attrs: _this2.v3 ? undefined : {
744
815
  tabIndex: tabIndex,
745
816
  dataItems: dataItems,
746
817
  focusIdField: dataItemKey,
747
- textField: this.$props.textField,
818
+ textField: _this2.$props.textField,
748
819
  checkField: checkField,
749
820
  checkIndeterminateField: checkIndeterminateField,
750
- expandField: this.$props.expandField,
821
+ expandField: _this2.$props.expandField,
751
822
  childrenField: subItemsField,
752
823
  expandIcons: true,
753
824
  checkboxes: true,
@@ -756,26 +827,26 @@ var MultiSelectTreeVue2 = {
756
827
  },
757
828
  dataItems: dataItems,
758
829
  focusIdField: dataItemKey,
759
- textField: this.$props.textField,
830
+ textField: _this2.$props.textField,
760
831
  checkField: checkField,
761
832
  checkIndeterminateField: checkIndeterminateField,
762
- expandField: this.$props.expandField,
833
+ expandField: _this2.$props.expandField,
763
834
  childrenField: subItemsField,
764
835
  expandIcons: true,
765
- onItemclick: this.onChange,
766
- on: this.v3 ? undefined : {
767
- "itemclick": this.onChange,
768
- "checkchange": this.onChange,
769
- "expandchange": this.onExpand,
770
- "focus": this.onFocus,
771
- "blur": this.onBlur,
772
- "keydown": this.onWrapperKeyDown
836
+ onItemclick: _this2.onChange,
837
+ on: _this2.v3 ? undefined : {
838
+ "itemclick": _this2.onChange,
839
+ "checkchange": _this2.onChange,
840
+ "expandchange": _this2.onExpand,
841
+ "focus": _this2.onFocus,
842
+ "blur": _this2.onBlur,
843
+ "keydown": _this2.onWrapperKeyDown
773
844
  },
774
- onCheckchange: this.onChange,
775
- onExpandchange: this.onExpand,
776
- onFocus: this.onFocus,
777
- onBlur: this.onBlur,
778
- onKeydown: this.onWrapperKeyDown,
845
+ onCheckchange: _this2.onChange,
846
+ onExpandchange: _this2.onExpand,
847
+ onFocus: _this2.onFocus,
848
+ onBlur: _this2.onBlur,
849
+ onKeydown: _this2.onWrapperKeyDown,
779
850
  checkboxes: true,
780
851
  size: size,
781
852
  item: itemTemplate
@@ -811,11 +882,7 @@ var MultiSelectTreeVue2 = {
811
882
  },
812
883
  methods: {
813
884
  clearFilter: function clearFilter(event) {
814
- this.onFilterChange(__assign(__assign({}, event), {
815
- target: __assign(__assign({}, event.target), {
816
- value: ''
817
- })
818
- }));
885
+ this.onFilterChange(event, '');
819
886
  },
820
887
  onCancel: function onCancel(event) {
821
888
  var dropdownEvent = {
@@ -904,7 +971,9 @@ var MultiSelectTreeVue2 = {
904
971
  }
905
972
  },
906
973
  closePopup: function closePopup(event) {
907
- this.clearFilter(event);
974
+ if (this.$props.filterable) {
975
+ this.clearFilter(event);
976
+ }
908
977
  if (this.isOpen) {
909
978
  var closeEvent = __assign({}, event);
910
979
  this.$emit('close', closeEvent);
@@ -1130,11 +1199,12 @@ var MultiSelectTreeVue2 = {
1130
1199
  };
1131
1200
  this.$emit('expandchange', expandEvent);
1132
1201
  },
1133
- onFilterChange: function onFilterChange(event) {
1202
+ onFilterChange: function onFilterChange(event, emptyValue) {
1203
+ var newValue = emptyValue ? '' : event.target.value;
1134
1204
  var filterDesc = {
1135
1205
  field: this.$props.textField,
1136
1206
  operator: 'contains',
1137
- value: event.target.value
1207
+ value: newValue
1138
1208
  };
1139
1209
  var ev = {
1140
1210
  filter: filterDesc,
@@ -1143,7 +1213,7 @@ var MultiSelectTreeVue2 = {
1143
1213
  };
1144
1214
  this.$emit('filterchange', ev);
1145
1215
  if (this.$props.filter === undefined) {
1146
- this.filterState = event.target.value;
1216
+ this.filterState = newValue;
1147
1217
  }
1148
1218
  }
1149
1219
  }
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-dropdowns',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1706604833,
11
+ publishDate: 1706611548,
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-dropdowns",
3
3
  "description": "Kendo UI for Vue Dropdowns package",
4
- "version": "4.3.0-dev.202401300902",
4
+ "version": "4.3.0-dev.202401301055",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -54,21 +54,21 @@
54
54
  "vue": "^2.6.12 || ^3.0.2"
55
55
  },
56
56
  "dependencies": {
57
- "@progress/kendo-vue-buttons": "4.3.0-dev.202401300902",
58
- "@progress/kendo-vue-common": "4.3.0-dev.202401300902",
59
- "@progress/kendo-vue-layout": "4.3.0-dev.202401300902",
60
- "@progress/kendo-vue-popup": "4.3.0-dev.202401300902"
57
+ "@progress/kendo-vue-buttons": "4.3.0-dev.202401301055",
58
+ "@progress/kendo-vue-common": "4.3.0-dev.202401301055",
59
+ "@progress/kendo-vue-layout": "4.3.0-dev.202401301055",
60
+ "@progress/kendo-vue-popup": "4.3.0-dev.202401301055"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@progress/kendo-data-query": "^1.5.4",
64
64
  "@progress/kendo-licensing": "^1.3.0",
65
65
  "@progress/kendo-svg-icons": "^2.0.0",
66
- "@progress/kendo-vue-data-tools": "4.3.0-dev.202401300902",
67
- "@progress/kendo-vue-inputs": "4.3.0-dev.202401300902",
68
- "@progress/kendo-vue-intl": "4.3.0-dev.202401300902",
69
- "@progress/kendo-vue-labels": "4.3.0-dev.202401300902",
70
- "@progress/kendo-vue-layout": "4.3.0-dev.202401300902",
71
- "@progress/kendo-vue-treeview": "4.3.0-dev.202401300902"
66
+ "@progress/kendo-vue-data-tools": "4.3.0-dev.202401301055",
67
+ "@progress/kendo-vue-inputs": "4.3.0-dev.202401301055",
68
+ "@progress/kendo-vue-intl": "4.3.0-dev.202401301055",
69
+ "@progress/kendo-vue-labels": "4.3.0-dev.202401301055",
70
+ "@progress/kendo-vue-layout": "4.3.0-dev.202401301055",
71
+ "@progress/kendo-vue-treeview": "4.3.0-dev.202401301055"
72
72
  },
73
73
  "author": "Progress",
74
74
  "license": "SEE LICENSE IN LICENSE.md",