@progress/kendo-vue-dropdowns 2.7.3 → 2.8.0-dev.202201111325

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.
Files changed (68) hide show
  1. package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.d.ts +5 -6
  3. package/dist/es/AutoComplete/AutoComplete.js +63 -29
  4. package/dist/es/AutoComplete/AutoCompleteProps.d.ts +39 -0
  5. package/dist/es/ComboBox/ComboBox.d.ts +5 -6
  6. package/dist/es/ComboBox/ComboBox.js +90 -51
  7. package/dist/es/ComboBox/ComboBoxProps.d.ts +39 -0
  8. package/dist/es/DropDownList/DropDownList.d.ts +5 -6
  9. package/dist/es/DropDownList/DropDownList.js +152 -121
  10. package/dist/es/DropDownList/DropDownListProps.d.ts +43 -0
  11. package/dist/es/MultiSelect/MultiSelect.d.ts +5 -6
  12. package/dist/es/MultiSelect/MultiSelect.js +84 -47
  13. package/dist/es/MultiSelect/MultiSelectProps.d.ts +53 -0
  14. package/dist/es/MultiSelect/TagList.d.ts +8 -4
  15. package/dist/es/MultiSelect/TagList.js +60 -11
  16. package/dist/es/additionalTypes.ts +7 -1
  17. package/dist/es/common/ClearButton.d.ts +5 -6
  18. package/dist/es/common/ClearButton.js +7 -5
  19. package/dist/es/common/DropDownBase.d.ts +4 -5
  20. package/dist/es/common/List.d.ts +5 -4
  21. package/dist/es/common/List.js +4 -3
  22. package/dist/es/common/ListContainer.d.ts +5 -6
  23. package/dist/es/common/ListContainer.js +7 -4
  24. package/dist/es/common/ListDefaultItem.d.ts +5 -6
  25. package/dist/es/common/ListDefaultItem.js +4 -4
  26. package/dist/es/common/ListFilter.d.ts +5 -6
  27. package/dist/es/common/ListFilter.js +4 -6
  28. package/dist/es/common/ListItem.d.ts +5 -6
  29. package/dist/es/common/ListItem.js +14 -9
  30. package/dist/es/common/SearchBar.d.ts +6 -6
  31. package/dist/es/common/SearchBar.js +13 -13
  32. package/dist/es/main.d.ts +5 -5
  33. package/dist/es/main.js +5 -5
  34. package/dist/es/package-metadata.js +1 -1
  35. package/dist/npm/AutoComplete/AutoComplete.d.ts +5 -6
  36. package/dist/npm/AutoComplete/AutoComplete.js +64 -30
  37. package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +39 -0
  38. package/dist/npm/ComboBox/ComboBox.d.ts +5 -6
  39. package/dist/npm/ComboBox/ComboBox.js +93 -52
  40. package/dist/npm/ComboBox/ComboBoxProps.d.ts +39 -0
  41. package/dist/npm/DropDownList/DropDownList.d.ts +5 -6
  42. package/dist/npm/DropDownList/DropDownList.js +155 -122
  43. package/dist/npm/DropDownList/DropDownListProps.d.ts +43 -0
  44. package/dist/npm/MultiSelect/MultiSelect.d.ts +5 -6
  45. package/dist/npm/MultiSelect/MultiSelect.js +86 -48
  46. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +53 -0
  47. package/dist/npm/MultiSelect/TagList.d.ts +8 -4
  48. package/dist/npm/MultiSelect/TagList.js +60 -10
  49. package/dist/npm/additionalTypes.ts +7 -1
  50. package/dist/npm/common/ClearButton.d.ts +5 -6
  51. package/dist/npm/common/ClearButton.js +9 -7
  52. package/dist/npm/common/DropDownBase.d.ts +4 -5
  53. package/dist/npm/common/List.d.ts +5 -4
  54. package/dist/npm/common/List.js +5 -3
  55. package/dist/npm/common/ListContainer.d.ts +5 -6
  56. package/dist/npm/common/ListContainer.js +9 -6
  57. package/dist/npm/common/ListDefaultItem.d.ts +5 -6
  58. package/dist/npm/common/ListDefaultItem.js +6 -6
  59. package/dist/npm/common/ListFilter.d.ts +5 -6
  60. package/dist/npm/common/ListFilter.js +6 -8
  61. package/dist/npm/common/ListItem.d.ts +5 -6
  62. package/dist/npm/common/ListItem.js +15 -10
  63. package/dist/npm/common/SearchBar.d.ts +6 -6
  64. package/dist/npm/common/SearchBar.js +15 -15
  65. package/dist/npm/main.d.ts +5 -5
  66. package/dist/npm/main.js +5 -5
  67. package/dist/npm/package-metadata.js +1 -1
  68. package/package.json +5 -4
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
19
19
  Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
- exports.DropDownListVue3 = exports.DropDownList = void 0; // @ts-ignore
22
+ exports.DropDownListVue2 = exports.DropDownList = void 0; // @ts-ignore
23
23
 
24
24
  var Vue = require("vue");
25
25
 
@@ -29,6 +29,11 @@ var ref = allVue.ref;
29
29
 
30
30
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
31
31
 
32
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
33
+
34
+ var sizeMap = kendo_vue_common_1.kendoThemeMaps.sizeMap,
35
+ roundedMap = kendo_vue_common_1.kendoThemeMaps.roundedMap;
36
+
32
37
  var ListContainer_1 = require("../common/ListContainer");
33
38
 
34
39
  var ListFilter_1 = require("../common/ListFilter");
@@ -46,13 +51,14 @@ var VALIDATION_MESSAGE = 'Please select a value from the list!';
46
51
  * Represents the default `DropDownList` component.
47
52
  */
48
53
 
49
- var DropDownList = {
54
+ var DropDownListVue2 = {
50
55
  name: 'KendoDropDownList',
51
56
  model: {
52
57
  event: 'changemodel'
53
58
  },
54
59
  props: {
55
60
  id: String,
61
+ title: String,
56
62
  dataItemKey: {
57
63
  type: [Object, String]
58
64
  },
@@ -150,7 +156,28 @@ var DropDownList = {
150
156
  default: undefined
151
157
  },
152
158
  ariaLabelledBy: String,
153
- ariaDescribedBy: String
159
+ ariaDescribedBy: String,
160
+ rounded: {
161
+ type: String,
162
+ default: 'medium',
163
+ validator: function validator(value) {
164
+ return ['small', 'medium', 'large', 'full'].includes(value);
165
+ }
166
+ },
167
+ fillMode: {
168
+ type: String,
169
+ default: 'solid',
170
+ validator: function validator(value) {
171
+ return ['solid', 'flat', 'outline'].includes(value);
172
+ }
173
+ },
174
+ size: {
175
+ type: String,
176
+ default: 'medium',
177
+ validator: function validator(value) {
178
+ return ['small', 'medium', 'large'].includes(value);
179
+ }
180
+ }
154
181
  },
155
182
  data: function data() {
156
183
  return {
@@ -222,7 +249,7 @@ var DropDownList = {
222
249
  mounted: function mounted() {
223
250
  this.hasMounted = true;
224
251
  this.select = this.v3 ? this.selectRef : this.$refs.select;
225
- this.base.wrapper = this.v3 ? this.baseWrapperRef : this.$refs.baseWrapper;
252
+ this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
226
253
  this.base.didMount();
227
254
  this.setValidity();
228
255
  },
@@ -319,10 +346,10 @@ var DropDownList = {
319
346
  get: function get() {
320
347
  var isValid = !this.hasMounted || !this.$props.validityStyles || this.validity().valid;
321
348
  return {
322
- 'k-textbox-container': true,
323
- 'k-state-focused': this.currentFocused,
324
- 'k-state-empty': !this.computedValue(),
325
- 'k-state-invalid': !isValid && isValid !== undefined,
349
+ 'k-floating-label-container': true,
350
+ 'k-focus': this.currentFocused,
351
+ 'k-empty': !this.computedValue(),
352
+ 'k-invalid': !isValid && isValid !== undefined,
326
353
  'k-rtl': this.$props.dir === 'rtl'
327
354
  };
328
355
  }
@@ -700,18 +727,23 @@ var DropDownList = {
700
727
  }
701
728
  },
702
729
  render: function render(createElement) {
730
+ var _a;
731
+
703
732
  var _this = this;
704
733
 
705
734
  var h = gh || createElement;
706
- var _a = this.$props,
707
- style = _a.style,
708
- className = _a.className,
709
- label = _a.label,
710
- dir = _a.dir,
711
- _b = _a.virtual,
712
- virtual = _b === void 0 ? {
735
+ var _b = this.$props,
736
+ style = _b.style,
737
+ className = _b.className,
738
+ label = _b.label,
739
+ dir = _b.dir,
740
+ _c = _b.virtual,
741
+ virtual = _c === void 0 ? {
713
742
  skip: 0
714
- } : _b;
743
+ } : _c,
744
+ size = _b.size,
745
+ rounded = _b.rounded,
746
+ fillMode = _b.fillMode;
715
747
  var opened = this.$props.opened !== undefined ? this.$props.opened : this.currentOpened;
716
748
  var text = utils_1.getItemValue(this.computedValue(), this.$props.textField);
717
749
  var isValid = !this.$props.validityStyles || this.validity().valid;
@@ -723,8 +755,35 @@ var DropDownList = {
723
755
  animate: true,
724
756
  height: '200px'
725
757
  }, this.$props.popupSettings);
726
-
727
- var dummySelect = function dummySelect(value) {
758
+ var _d = this.$props,
759
+ dataItemKey = _d.dataItemKey,
760
+ _e = _d.dataItems,
761
+ dataItems = _e === void 0 ? [] : _e,
762
+ disabled = _d.disabled,
763
+ tabIndex = _d.tabIndex,
764
+ loading = _d.loading,
765
+ iconClassName = _d.iconClassName;
766
+ var valueRender = kendo_vue_common_1.templateRendering.call(this, this.$props.valueRender, kendo_vue_common_1.getListeners.call(this));
767
+ var focused = this.currentFocused;
768
+ var value = this.computedValue();
769
+ var selectedIndex = dataItems.findIndex(function (i) {
770
+ return utils_1.areSame(i, value, dataItemKey);
771
+ });
772
+ var valueDefaultRendering = h("span", {
773
+ "class": "k-input-inner"
774
+ }, [h("span", {
775
+ "class": "k-input-value-text"
776
+ }, [text])]);
777
+ var valueElement = kendo_vue_common_1.getTemplate.call(this, {
778
+ h: h,
779
+ template: valueRender,
780
+ defaultRendering: valueDefaultRendering,
781
+ additionalProps: __assign({
782
+ value: this.computedValue()
783
+ }, this.$data)
784
+ });
785
+
786
+ var dummySelect = function dummySelect(cvalue) {
728
787
  var _this = this;
729
788
  /* Dummy component to support forms */
730
789
 
@@ -754,97 +813,17 @@ var DropDownList = {
754
813
  left: '50%'
755
814
  }
756
815
  }, [h("option", {
757
- value: this.v3 ? this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value : null,
816
+ value: this.v3 ? this.$props.valueMap ? this.$props.valueMap.call(undefined, cvalue) : cvalue : null,
758
817
  domProps: this.v3 ? undefined : {
759
- "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
818
+ "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, cvalue) : cvalue
760
819
  }
761
820
  })]);
762
821
  };
763
822
 
764
- var renderDropDownWrapper = function renderDropDownWrapper() {
765
- var _this = this;
766
-
767
- var _a = this.$props,
768
- dataItemKey = _a.dataItemKey,
769
- _b = _a.dataItems,
770
- dataItems = _b === void 0 ? [] : _b,
771
- disabled = _a.disabled,
772
- tabIndex = _a.tabIndex,
773
- loading = _a.loading,
774
- iconClassName = _a.iconClassName;
775
- var valueRender = kendo_vue_common_1.templateRendering.call(this, this.$props.valueRender, kendo_vue_common_1.getListeners.call(this));
776
- var focused = this.currentFocused;
777
- var value = this.computedValue();
778
- var selectedIndex = dataItems.findIndex(function (i) {
779
- return utils_1.areSame(i, value, dataItemKey);
780
- });
781
- var valueDefaultRendering = h("span", {
782
- "class": "k-input"
783
- }, [text]);
784
- var valueElement = kendo_vue_common_1.getTemplate.call(this, {
785
- h: h,
786
- template: valueRender,
787
- defaultRendering: valueDefaultRendering,
788
- additionalProps: __assign({
789
- value: this.computedValue()
790
- }, this.$data)
791
- });
792
- return h("span", {
793
- ref: this.v3 ? function (el) {
794
- _this.baseWrapperRef = el;
795
- } : 'baseWrapper',
796
- role: 'listbox',
797
- attrs: this.v3 ? undefined : {
798
- role: 'listbox',
799
- tabIndex: disabled ? undefined : tabIndex,
800
- accessKey: this.$props.accessKey,
801
- "aria-disabled": disabled || undefined,
802
- "aria-haspopup": true,
803
- "aria-expanded": opened || false,
804
- "aria-owns": this.base.listBoxId,
805
- "aria-activedescendant": 'option-' + this.base.guid + '-' + (selectedIndex + virtual.skip),
806
- "aria-label": this.$props.label,
807
- "aria-labelledby": this.$props.ariaLabelledBy,
808
- "aria-describedby": this.$props.ariaDescribedBy
809
- },
810
- tabIndex: disabled ? undefined : tabIndex,
811
- accessKey: this.$props.accessKey,
812
- "class": kendo_vue_common_1.classNames('k-dropdown-wrap', {
813
- 'k-state-focused': focused,
814
- 'k-state-disabled': disabled
815
- }),
816
- style: this.$props.style,
817
- onKeydown: this.handleKeyDown,
818
- on: this.v3 ? undefined : {
819
- "keydown": this.handleKeyDown,
820
- "keypress": this.handleKeyPress,
821
- "click": disabled ? kendo_vue_common_1.noop : this.handleWrapperClick
822
- },
823
- onKeypress: this.handleKeyPress,
824
- onClick: disabled ? kendo_vue_common_1.noop : this.handleWrapperClick,
825
- "aria-disabled": disabled || undefined,
826
- "aria-haspopup": true,
827
- "aria-expanded": opened || false,
828
- "aria-owns": this.base.listBoxId,
829
- "aria-activedescendant": 'option-' + this.base.guid + '-' + (selectedIndex + virtual.skip),
830
- "aria-label": this.$props.label,
831
- "aria-labelledby": this.$props.ariaLabelledBy,
832
- "aria-describedby": this.$props.ariaDescribedBy
833
- }, [valueElement, h("span", {
834
- "class": "k-select"
835
- }, [h("span", {
836
- "class": kendo_vue_common_1.classNames('k-icon', iconClassName, {
837
- 'k-i-arrow-s': !loading && !iconClassName,
838
- 'k-i-loading': loading && !iconClassName
839
- })
840
- })]), dummySelect.call(this, value)]);
841
- };
842
-
843
823
  var renderDefaultItem = function renderDefaultItem() {
844
824
  var _a = this.$props,
845
825
  textField = _a.textField,
846
- defaultItem = _a.defaultItem,
847
- dataItemKey = _a.dataItemKey;
826
+ defaultItem = _a.defaultItem;
848
827
  return defaultItem !== undefined && // @ts-ignore
849
828
  h(ListDefaultItem_1.ListDefaultItem, {
850
829
  defaultItem: defaultItem,
@@ -864,11 +843,7 @@ var DropDownList = {
864
843
  };
865
844
 
866
845
  var renderList = function renderList() {
867
- var _a = this.$props,
868
- _b = _a.dataItems,
869
- dataItems = _b === void 0 ? [] : _b,
870
- textField = _a.textField,
871
- dataItemKey = _a.dataItemKey;
846
+ var textField = this.$props.textField;
872
847
  var itemRender = kendo_vue_common_1.templateRendering.call(this, this.$props.itemRender, kendo_vue_common_1.getListeners.call(this));
873
848
  var listNoDataRender = kendo_vue_common_1.templateRendering.call(this, this.$props.listNoDataRender, kendo_vue_common_1.getListeners.call(this));
874
849
  var skip = virtual.skip;
@@ -886,12 +861,13 @@ var DropDownList = {
886
861
  valueField: dataItemKey,
887
862
  optionsGuid: this.base.guid,
888
863
  wrapperStyle: !vs.enabled ? {
889
- maxHeight: popupSettings.height
864
+ maxHeight: popupSettings.height,
865
+ overflowY: 'scroll'
890
866
  } : {
891
867
  float: 'left',
892
868
  width: '100%'
893
869
  },
894
- wrapperCssClass: !vs.enabled ? 'k-list-scroller' : undefined,
870
+ wrapperCssClass: 'k-list-content',
895
871
  listStyle: vs.enabled ? {
896
872
  transform: translate
897
873
  } : undefined,
@@ -908,12 +884,13 @@ var DropDownList = {
908
884
  optionsGuid: this.base.guid,
909
885
  ref: 'list',
910
886
  wrapperStyle: !vs.enabled ? {
911
- maxHeight: popupSettings.height
887
+ maxHeight: popupSettings.height,
888
+ overflowY: 'scroll'
912
889
  } : {
913
890
  float: 'left',
914
891
  width: '100%'
915
892
  },
916
- wrapperCssClass: !vs.enabled ? 'k-list-scroller' : undefined,
893
+ wrapperCssClass: 'k-list-content',
917
894
  listStyle: vs.enabled ? {
918
895
  transform: translate
919
896
  } : undefined,
@@ -972,6 +949,8 @@ var DropDownList = {
972
949
  var renderListContainer = function renderListContainer() {
973
950
  var _this2 = this;
974
951
 
952
+ var _a;
953
+
975
954
  var headerTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.header, kendo_vue_common_1.getListeners.call(this));
976
955
  var footerTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.footer, kendo_vue_common_1.getListeners.call(this));
977
956
  var header = kendo_vue_common_1.getTemplate.call(this, {
@@ -998,7 +977,8 @@ var DropDownList = {
998
977
  width: popupWidth // @ts-ignore
999
978
  ,
1000
979
  popupSettings: {
1001
- className: kendo_vue_common_1.classNames('k-list-container k-reset', popupSettings.className),
980
+ popupClass: kendo_vue_common_1.classNames(popupSettings.popupClass, 'k-list', (_a = {}, _a["k-list-" + (sizeMap[size] || size)] = size, _a['k-virtual-list'] = this.base.vs.enabled, _a)),
981
+ className: popupSettings.className,
1002
982
  animate: popupSettings.animate,
1003
983
  anchor: this.anchor,
1004
984
  show: opened
@@ -1006,7 +986,8 @@ var DropDownList = {
1006
986
  },
1007
987
  width: popupWidth,
1008
988
  popupSettings: {
1009
- className: kendo_vue_common_1.classNames('k-list-container k-reset', popupSettings.className),
989
+ popupClass: kendo_vue_common_1.classNames(popupSettings.popupClass, 'k-list', (_a = {}, _a["k-list-" + (sizeMap[size] || size)] = size, _a['k-virtual-list'] = this.base.vs.enabled, _a)),
990
+ className: popupSettings.className,
1010
991
  animate: popupSettings.animate,
1011
992
  anchor: this.anchor,
1012
993
  show: opened
@@ -1032,25 +1013,77 @@ var DropDownList = {
1032
1013
  ref: this.v3 ? function (el) {
1033
1014
  _this.kendoAnchorRef = el;
1034
1015
  } : this.anchor,
1035
- "class": kendo_vue_common_1.classNames('k-widget k-dropdown', {
1036
- 'k-state-invalid': !isValid
1037
- }, className),
1016
+ "class": kendo_vue_common_1.classNames('k-dropdownlist k-picker', className, (_a = {}, _a["k-picker-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-picker-" + fillMode] = fillMode, _a['k-focus'] = focused, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-valid'] = isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1038
1017
  style: !label ? style : __assign(__assign({}, style), {
1039
1018
  width: undefined
1040
1019
  }),
1041
1020
  dir: dir,
1042
1021
  attrs: this.v3 ? undefined : {
1043
- dir: dir
1022
+ dir: dir,
1023
+ tabIndex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
1024
+ accessKey: this.$props.accessKey,
1025
+ role: 'listbox',
1026
+ "aria-disabled": disabled || undefined,
1027
+ "aria-haspopup": true,
1028
+ "aria-expanded": opened || false,
1029
+ "aria-owns": this.base.listBoxId,
1030
+ "aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
1031
+ "aria-label": this.$props.label,
1032
+ "aria-labelledby": this.$props.ariaLabelledBy,
1033
+ "aria-describedby": this.$props.ariaDescribedBy,
1034
+ id: this.$props.id,
1035
+ title: this.$props.title
1044
1036
  },
1045
1037
  onMousedown: opened ? utils_1.preventDefaultNonInputs : kendo_vue_common_1.noop,
1046
1038
  on: this.v3 ? undefined : {
1047
1039
  "mousedown": opened ? utils_1.preventDefaultNonInputs : kendo_vue_common_1.noop,
1048
1040
  "focusin": this.handleFocus,
1049
- "focusout": this.handleBlur
1041
+ "focusout": this.handleBlur,
1042
+ "keydown": this.handleKeyDown,
1043
+ "keypress": this.handleKeyPress,
1044
+ "click": disabled ? kendo_vue_common_1.noop : this.handleWrapperClick
1050
1045
  },
1051
1046
  onFocusin: this.handleFocus,
1052
- onFocusout: this.handleBlur
1053
- }, [renderDropDownWrapper.call(this), renderListContainer.call(this)]);
1047
+ onFocusout: this.handleBlur,
1048
+ tabIndex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
1049
+ accessKey: this.$props.accessKey,
1050
+ onKeydown: this.handleKeyDown,
1051
+ onKeypress: this.handleKeyPress,
1052
+ role: 'listbox',
1053
+ onClick: disabled ? kendo_vue_common_1.noop : this.handleWrapperClick,
1054
+ "aria-disabled": disabled || undefined,
1055
+ "aria-haspopup": true,
1056
+ "aria-expanded": opened || false,
1057
+ "aria-owns": this.base.listBoxId,
1058
+ "aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
1059
+ "aria-label": this.$props.label,
1060
+ "aria-labelledby": this.$props.ariaLabelledBy,
1061
+ "aria-describedby": this.$props.ariaDescribedBy,
1062
+ id: this.$props.id,
1063
+ title: this.$props.title
1064
+ }, [valueElement, loading && h("span", {
1065
+ "class": "k-icon k-i-loading",
1066
+ key: "loading"
1067
+ }), // @ts-ignore
1068
+ h(kendo_vue_buttons_1.Button, {
1069
+ size: size,
1070
+ attrs: this.v3 ? undefined : {
1071
+ size: size,
1072
+ fillMode: fillMode,
1073
+ iconClass: kendo_vue_common_1.classNames('k-icon k-i-arrow-s', iconClassName)
1074
+ },
1075
+ fillMode: fillMode,
1076
+ "class": 'k-input-button',
1077
+ iconClass: kendo_vue_common_1.classNames('k-icon k-i-arrow-s', iconClassName),
1078
+ onMousedown: function onMousedown(e) {
1079
+ return e.preventDefault();
1080
+ },
1081
+ on: this.v3 ? undefined : {
1082
+ "mousedown": function onMousedown(e) {
1083
+ return e.preventDefault();
1084
+ }
1085
+ }
1086
+ }), dummySelect.call(this, value), renderListContainer.call(this)]);
1054
1087
  return label ? h("span", {
1055
1088
  "class": this.spanClassNames,
1056
1089
  onFocusin: this.handleFocus,
@@ -1074,6 +1107,6 @@ var DropDownList = {
1074
1107
  }, [this.$props.label]) : null]) : dropdownlist;
1075
1108
  }
1076
1109
  };
1077
- exports.DropDownList = DropDownList;
1078
- var DropDownListVue3 = DropDownList;
1079
- exports.DropDownListVue3 = DropDownListVue3;
1110
+ exports.DropDownListVue2 = DropDownListVue2;
1111
+ var DropDownList = DropDownListVue2;
1112
+ exports.DropDownList = DropDownList;
@@ -44,6 +44,10 @@ export interface DropDownListProps extends FormComponentProps {
44
44
  * Specifies the id of the component.
45
45
  */
46
46
  id?: string;
47
+ /**
48
+ * Specifies the title of the component.
49
+ */
50
+ title?: string;
47
51
  /**
48
52
  * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
49
53
  * For example these elements could contain error or hint message.
@@ -221,4 +225,43 @@ export interface DropDownListProps extends FormComponentProps {
221
225
  * Useful when the DropDownList is placed inside a toolbar which needs to handle left and right keys.
222
226
  */
223
227
  leftRightKeysNavigation?: boolean;
228
+ /**
229
+ * Configures the `size` of the DropDownList.
230
+ *
231
+ * The available options are:
232
+ * - small
233
+ * - medium
234
+ * - large
235
+ * - null—Does not set a size `class`.
236
+ *
237
+ * @default `medium`
238
+ */
239
+ size?: null | 'small' | 'medium' | 'large' | string;
240
+ /**
241
+ * Configures the `roundness` of the DropDownList.
242
+ *
243
+ * The available options are:
244
+ * - small
245
+ * - medium
246
+ * - large
247
+ * - circle
248
+ * - full
249
+ * - null—Does not set a rounded `class`.
250
+ *
251
+ * @default `medium`
252
+ */
253
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
254
+ /**
255
+ * Configures the `fillMode` of the DropDownList.
256
+ *
257
+ * The available options are:
258
+ * - solid
259
+ * - outline
260
+ * - flat
261
+ * - link
262
+ * - null—Does not set a fillMode `class`.
263
+ *
264
+ * @default `solid`
265
+ */
266
+ fillMode?: null | 'solid' | 'outline' | 'flat' | string;
224
267
  }
@@ -1,10 +1,9 @@
1
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
2
1
  declare type DefaultData<V> = object | ((this: V) => MultiSelectData);
3
2
  declare type DefaultMethods<V> = {
4
3
  [key: string]: (this: V, ...args: any[]) => any;
5
4
  };
6
5
  import { FormComponentValidity } from '@progress/kendo-vue-common';
7
- import { DefineComponent } from '../additionalTypes';
6
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
8
7
  import { TagData } from './TagList';
9
8
  import { MultiSelectProps } from './MultiSelectProps';
10
9
  import { DropDownStateBase, InternalState, ActiveDescendant } from './../common/settings';
@@ -103,11 +102,11 @@ export interface MultiSelectComputed {
103
102
  /**
104
103
  * @hidden
105
104
  */
106
- export interface MultiSelectAll extends MultiSelectMethods, MultiSelectState, MultiSelectData, MultiSelectComputed, Vue {
105
+ export interface MultiSelectAll extends MultiSelectMethods, MultiSelectState, MultiSelectData, MultiSelectComputed, Vue2type {
107
106
  }
108
107
  /**
109
108
  * Represents the default `MultiSelect` component.
110
109
  */
111
- declare let MultiSelect: ComponentOptions<Vue, DefaultData<MultiSelectData>, DefaultMethods<MultiSelectAll>, MultiSelectComputed, RecordPropsDefinition<MultiSelectProps>>;
112
- declare const MultiSelectVue3: DefineComponent<MultiSelectProps, any, MultiSelectData, MultiSelectComputed, MultiSelectMethods, {}, {}, {}, string, MultiSelectProps, MultiSelectProps, {}>;
113
- export { MultiSelect, MultiSelectVue3 };
110
+ declare let MultiSelectVue2: ComponentOptions<Vue2type, DefaultData<MultiSelectData>, DefaultMethods<MultiSelectAll>, MultiSelectComputed, RecordPropsDefinition<MultiSelectProps>>;
111
+ declare const MultiSelect: DefineComponent<MultiSelectProps, any, MultiSelectData, MultiSelectComputed, MultiSelectMethods, {}, {}, {}, string, MultiSelectProps, MultiSelectProps, {}>;
112
+ export { MultiSelect, MultiSelectVue2 };