@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.
@@ -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;
@@ -56,6 +56,8 @@ var TagListVue2 = {
56
56
  return ['solid', 'flat', 'outline'].includes(value);
57
57
  }
58
58
  },
59
+ id: String,
60
+ className: String,
59
61
  size: {
60
62
  type: String,
61
63
  default: 'medium',
@@ -96,9 +98,15 @@ var TagListVue2 = {
96
98
  size = _a.size,
97
99
  disabled = _a.disabled,
98
100
  tagsRounded = _a.tagsRounded,
99
- removeTagIcon = _a.removeTagIcon;
101
+ removeTagIcon = _a.removeTagIcon,
102
+ id = _a.id,
103
+ className = _a.className;
100
104
  return h("div", {
101
- "class": 'k-input-values',
105
+ "class": (0, kendo_vue_common_1.classNames)('k-input-values', className),
106
+ id: id,
107
+ attrs: this.v3 ? undefined : {
108
+ id: id
109
+ },
102
110
  style: this.$attrs.style
103
111
  }, [h("div", {
104
112
  "class": this.wrapperClass,
@@ -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;
@@ -595,15 +596,10 @@ var MultiSelectTreeVue2 = {
595
596
  "aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : 'tagslist-' + id,
596
597
  "aria-required": this.$props.required,
597
598
  onClick: this.onWrapperClick
598
- }, [h("div", {
599
- id: 'tagslist-' + id,
600
- attrs: this.v3 ? undefined : {
601
- id: 'tagslist-' + id
602
- },
603
- "class": (0, kendo_vue_common_1.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))
604
599
  }, [this.tagsToRenderRef.length > 0 && h(TagList_1.TagList, {
605
- tagRender: tagTemplate,
600
+ id: 'tagslist-' + id,
606
601
  attrs: this.v3 ? undefined : {
602
+ id: 'tagslist-' + id,
607
603
  tagRender: tagTemplate,
608
604
  dataItems: this.tagsToRenderRef,
609
605
  guid: id,
@@ -614,6 +610,8 @@ var MultiSelectTreeVue2 = {
614
610
  size: size,
615
611
  fillMode: fillMode
616
612
  },
613
+ "class": (0, kendo_vue_common_1.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)),
614
+ tagRender: tagTemplate,
617
615
  onTagdelete: this.onTagDelete,
618
616
  on: this.v3 ? undefined : {
619
617
  "tagdelete": this.onTagDelete
@@ -640,9 +638,9 @@ var MultiSelectTreeVue2 = {
640
638
  "aria-expanded": this.isOpen,
641
639
  "aria-describedby": 'tagslist-' + id,
642
640
  "aria-label": this.$props.ariaLabelledBy
643
- }, [this.tagsToRender.length === 0 && h("span", {
641
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
644
642
  "class": "k-input-value-text"
645
- }, [placeholder])])]), this.$props.loading && h(kendo_vue_common_1.Icon, {
643
+ }, [placeholder])]), this.$props.loading && h(kendo_vue_common_1.Icon, {
646
644
  "class": "k-input-loading-icon",
647
645
  name: "loading",
648
646
  attrs: this.v3 ? undefined : {
@@ -680,9 +678,9 @@ var MultiSelectTreeVue2 = {
680
678
  domProps: this.v3 ? undefined : {
681
679
  "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
682
680
  }
683
- })]),
681
+ })]), !renderAdaptive &&
684
682
  // @ts-ignore function children
685
- !renderAdaptive && h(kendo_vue_popup_1.Popup, {
683
+ h(kendo_vue_popup_1.Popup, {
686
684
  style: {
687
685
  width: this.popupWidth,
688
686
  direction: dir
@@ -709,45 +707,115 @@ var MultiSelectTreeVue2 = {
709
707
  onClose: this.onPopupClosed,
710
708
  appendTo: popupSettings.appendTo,
711
709
  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,
710
+ }, this.v3 ? function () {
711
+ return [_this2.$props.filterable &&
712
+ // @ts-ignore
713
+ h(ListFilter_1.ListFilter, {
714
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
715
+ attrs: _this2.v3 ? undefined : {
716
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
717
+ size: size,
718
+ rounded: rounded,
719
+ fillMode: fillMode
720
+ },
721
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'input'),
722
+ onChange: _this2.onFilterChange,
723
+ on: _this2.v3 ? undefined : {
724
+ "change": _this2.onFilterChange,
725
+ "keydown": _this2.onInputKeyDown,
726
+ "focus": _this2.onFocus,
727
+ "blur": _this2.onBlur
728
+ },
729
+ onKeydown: _this2.onInputKeyDown,
730
+ size: size,
731
+ rounded: rounded,
732
+ fillMode: fillMode,
733
+ onFocus: _this2.onFocus,
734
+ onBlur: _this2.onBlur
735
+ }), header && h("div", {
736
+ "class": "k-list-header"
737
+ }, [header]), dataItems.length > 0 ?
738
+ // @ts-ignore
739
+ h(kendo_vue_treeview_1.TreeView, {
740
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
741
+ tabIndex: tabIndex,
742
+ attrs: _this2.v3 ? undefined : {
743
+ tabIndex: tabIndex,
744
+ dataItems: dataItems,
745
+ focusIdField: dataItemKey,
746
+ textField: _this2.$props.textField,
747
+ checkField: checkField,
748
+ checkIndeterminateField: checkIndeterminateField,
749
+ expandField: _this2.$props.expandField,
750
+ childrenField: subItemsField,
751
+ expandIcons: true,
752
+ checkboxes: true,
753
+ size: size,
754
+ item: itemTemplate
755
+ },
756
+ dataItems: dataItems,
757
+ focusIdField: dataItemKey,
758
+ textField: _this2.$props.textField,
759
+ checkField: checkField,
760
+ checkIndeterminateField: checkIndeterminateField,
761
+ expandField: _this2.$props.expandField,
762
+ childrenField: subItemsField,
763
+ expandIcons: true,
764
+ onItemclick: _this2.onChange,
765
+ on: _this2.v3 ? undefined : {
766
+ "itemclick": _this2.onChange,
767
+ "checkchange": _this2.onChange,
768
+ "expandchange": _this2.onExpand,
769
+ "focus": _this2.onFocus,
770
+ "blur": _this2.onBlur,
771
+ "keydown": _this2.onWrapperKeyDown
772
+ },
773
+ onCheckchange: _this2.onChange,
774
+ onExpandchange: _this2.onExpand,
775
+ onFocus: _this2.onFocus,
776
+ onBlur: _this2.onBlur,
777
+ onKeydown: _this2.onWrapperKeyDown,
778
+ checkboxes: true,
779
+ size: size,
780
+ item: itemTemplate
781
+ }) : noDataTemplate, footer && h("div", {
782
+ "class": "k-list-footer"
783
+ }, [footer])];
784
+ } : [_this2.$props.filterable && h(ListFilter_1.ListFilter, {
785
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
786
+ attrs: _this2.v3 ? undefined : {
787
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
718
788
  size: size,
719
789
  rounded: rounded,
720
790
  fillMode: fillMode
721
791
  },
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
792
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'input'),
793
+ onChange: _this2.onFilterChange,
794
+ on: _this2.v3 ? undefined : {
795
+ "change": _this2.onFilterChange,
796
+ "keydown": _this2.onInputKeyDown,
797
+ "focus": _this2.onFocus,
798
+ "blur": _this2.onBlur
729
799
  },
730
- onKeydown: this.onInputKeyDown,
800
+ onKeydown: _this2.onInputKeyDown,
731
801
  size: size,
732
802
  rounded: rounded,
733
803
  fillMode: fillMode,
734
- onFocus: this.onFocus,
735
- onBlur: this.onBlur
804
+ onFocus: _this2.onFocus,
805
+ onBlur: _this2.onBlur
736
806
  }), header && h("div", {
737
807
  "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'),
808
+ }, [header]), dataItems.length > 0 ? h(kendo_vue_treeview_1.TreeView, {
809
+ ref: (0, kendo_vue_common_1.setRef)(_this2, 'treeView'),
742
810
  tabIndex: tabIndex,
743
- attrs: this.v3 ? undefined : {
811
+ attrs: _this2.v3 ? undefined : {
744
812
  tabIndex: tabIndex,
745
813
  dataItems: dataItems,
746
814
  focusIdField: dataItemKey,
747
- textField: this.$props.textField,
815
+ textField: _this2.$props.textField,
748
816
  checkField: checkField,
749
817
  checkIndeterminateField: checkIndeterminateField,
750
- expandField: this.$props.expandField,
818
+ expandField: _this2.$props.expandField,
751
819
  childrenField: subItemsField,
752
820
  expandIcons: true,
753
821
  checkboxes: true,
@@ -756,26 +824,26 @@ var MultiSelectTreeVue2 = {
756
824
  },
757
825
  dataItems: dataItems,
758
826
  focusIdField: dataItemKey,
759
- textField: this.$props.textField,
827
+ textField: _this2.$props.textField,
760
828
  checkField: checkField,
761
829
  checkIndeterminateField: checkIndeterminateField,
762
- expandField: this.$props.expandField,
830
+ expandField: _this2.$props.expandField,
763
831
  childrenField: subItemsField,
764
832
  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
833
+ onItemclick: _this2.onChange,
834
+ on: _this2.v3 ? undefined : {
835
+ "itemclick": _this2.onChange,
836
+ "checkchange": _this2.onChange,
837
+ "expandchange": _this2.onExpand,
838
+ "focus": _this2.onFocus,
839
+ "blur": _this2.onBlur,
840
+ "keydown": _this2.onWrapperKeyDown
773
841
  },
774
- onCheckchange: this.onChange,
775
- onExpandchange: this.onExpand,
776
- onFocus: this.onFocus,
777
- onBlur: this.onBlur,
778
- onKeydown: this.onWrapperKeyDown,
842
+ onCheckchange: _this2.onChange,
843
+ onExpandchange: _this2.onExpand,
844
+ onFocus: _this2.onFocus,
845
+ onBlur: _this2.onBlur,
846
+ onKeydown: _this2.onWrapperKeyDown,
779
847
  checkboxes: true,
780
848
  size: size,
781
849
  item: itemTemplate
@@ -811,11 +879,7 @@ var MultiSelectTreeVue2 = {
811
879
  },
812
880
  methods: {
813
881
  clearFilter: function clearFilter(event) {
814
- this.onFilterChange(__assign(__assign({}, event), {
815
- target: __assign(__assign({}, event.target), {
816
- value: ''
817
- })
818
- }));
882
+ this.onFilterChange(event, '');
819
883
  },
820
884
  onCancel: function onCancel(event) {
821
885
  var dropdownEvent = {
@@ -904,7 +968,9 @@ var MultiSelectTreeVue2 = {
904
968
  }
905
969
  },
906
970
  closePopup: function closePopup(event) {
907
- this.clearFilter(event);
971
+ if (this.$props.filterable) {
972
+ this.clearFilter(event);
973
+ }
908
974
  if (this.isOpen) {
909
975
  var closeEvent = __assign({}, event);
910
976
  this.$emit('close', closeEvent);
@@ -1130,11 +1196,12 @@ var MultiSelectTreeVue2 = {
1130
1196
  };
1131
1197
  this.$emit('expandchange', expandEvent);
1132
1198
  },
1133
- onFilterChange: function onFilterChange(event) {
1199
+ onFilterChange: function onFilterChange(event, emptyValue) {
1200
+ var newValue = emptyValue ? '' : event.target.value;
1134
1201
  var filterDesc = {
1135
1202
  field: this.$props.textField,
1136
1203
  operator: 'contains',
1137
- value: event.target.value
1204
+ value: newValue
1138
1205
  };
1139
1206
  var ev = {
1140
1207
  filter: filterDesc,
@@ -1143,7 +1210,7 @@ var MultiSelectTreeVue2 = {
1143
1210
  };
1144
1211
  this.$emit('filterchange', ev);
1145
1212
  if (this.$props.filter === undefined) {
1146
- this.filterState = event.target.value;
1213
+ this.filterState = newValue;
1147
1214
  }
1148
1215
  }
1149
1216
  }
@@ -28,6 +28,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
28
28
  */
29
29
  var GroupStickyHeaderVue2 = {
30
30
  name: 'KendoGroupStickyHeader',
31
+ inheritAttrs: false,
31
32
  props: {
32
33
  group: String,
33
34
  render: Object
@@ -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: 1706624233,
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.202401301426",
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.202401301426",
58
+ "@progress/kendo-vue-common": "4.3.0-dev.202401301426",
59
+ "@progress/kendo-vue-layout": "4.3.0-dev.202401301426",
60
+ "@progress/kendo-vue-popup": "4.3.0-dev.202401301426"
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.202401301426",
67
+ "@progress/kendo-vue-inputs": "4.3.0-dev.202401301426",
68
+ "@progress/kendo-vue-intl": "4.3.0-dev.202401301426",
69
+ "@progress/kendo-vue-labels": "4.3.0-dev.202401301426",
70
+ "@progress/kendo-vue-layout": "4.3.0-dev.202401301426",
71
+ "@progress/kendo-vue-treeview": "4.3.0-dev.202401301426"
72
72
  },
73
73
  "author": "Progress",
74
74
  "license": "SEE LICENSE IN LICENSE.md",