@progress/kendo-vue-dropdowns 4.0.0 → 4.0.1-dev.202310191530

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.
@@ -81,7 +81,7 @@ var AutoCompleteVue2 = {
81
81
  },
82
82
  tabIndex: {
83
83
  type: Number,
84
- default: 0
84
+ default: undefined
85
85
  },
86
86
  readonly: Boolean,
87
87
  accessKey: String,
@@ -594,7 +594,7 @@ var AutoCompleteVue2 = {
594
594
  attrs: this.v3 ? undefined : {
595
595
  id: searchId,
596
596
  placeholder: placeholder,
597
- tabIndex: tabIndex || undefined,
597
+ tabIndex: tabIndex,
598
598
  accessKey: this.$props.accessKey,
599
599
  value: searchValue,
600
600
  suggestedText: this.suggested,
@@ -610,7 +610,7 @@ var AutoCompleteVue2 = {
610
610
  ariaLabel: this.$props.ariaLabel
611
611
  },
612
612
  placeholder: placeholder,
613
- tabIndex: tabIndex || undefined,
613
+ tabIndex: tabIndex,
614
614
  accessKey: this.$props.accessKey,
615
615
  value: searchValue,
616
616
  suggestedText: this.suggested,
@@ -822,30 +822,29 @@ var ComboBoxVue2 = {
822
822
  }
823
823
  },
824
824
  render: function render(createElement) {
825
- var _a;
826
825
  var _this = this;
827
826
  var h = gh || createElement;
828
- var _b = this.$props,
829
- dir = _b.dir,
830
- disabled = _b.disabled,
831
- clearButton = _b.clearButton,
832
- label = _b.label,
833
- textField = _b.textField,
834
- className = _b.className,
835
- style = _b.style,
836
- loading = _b.loading,
837
- icon = _b.icon,
838
- svgIcon = _b.svgIcon,
839
- iconClassName = _b.iconClassName,
840
- virtual = _b.virtual,
841
- size = _b.size,
842
- fillMode = _b.fillMode,
843
- rounded = _b.rounded,
844
- adaptiveTitle = _b.adaptiveTitle,
845
- header = _b.header,
846
- footer = _b.footer,
847
- groupStickyHeaderItemRender = _b.groupStickyHeaderItemRender,
848
- placeholder = _b.placeholder;
827
+ var _a = this.$props,
828
+ dir = _a.dir,
829
+ disabled = _a.disabled,
830
+ clearButton = _a.clearButton,
831
+ label = _a.label,
832
+ textField = _a.textField,
833
+ className = _a.className,
834
+ style = _a.style,
835
+ loading = _a.loading,
836
+ icon = _a.icon,
837
+ svgIcon = _a.svgIcon,
838
+ iconClassName = _a.iconClassName,
839
+ virtual = _a.virtual,
840
+ size = _a.size,
841
+ fillMode = _a.fillMode,
842
+ rounded = _a.rounded,
843
+ adaptiveTitle = _a.adaptiveTitle,
844
+ header = _a.header,
845
+ footer = _a.footer,
846
+ groupStickyHeaderItemRender = _a.groupStickyHeaderItemRender,
847
+ placeholder = _a.placeholder;
849
848
  var focused = this.currentFocused;
850
849
  var isValid = !this.$props.validityStyles || this.validity().valid;
851
850
  var text = this.$props.filter !== undefined ? this.$props.filter : this.currentText;
@@ -1220,70 +1219,73 @@ var ComboBoxVue2 = {
1220
1219
  })
1221
1220
  );
1222
1221
  };
1223
- var comboboxDefault = h("span", {
1224
- "class": classNames('k-combobox k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a['k-focus'] = focused && !disabled, _a), className),
1225
- ref: setRef(this, 'kendoAnchor', this.anchor),
1226
- style: !label ? style : __assign(__assign({}, style), {
1227
- width: undefined
1222
+ var comboboxDefault = function comboboxDefault() {
1223
+ var _a;
1224
+ return h("span", {
1225
+ "class": classNames('k-combobox k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a['k-focus'] = focused && !disabled, _a), className),
1226
+ ref: setRef(this, 'kendoAnchor', this.anchor),
1227
+ style: !label ? style : __assign(__assign({}, style), {
1228
+ width: undefined
1229
+ }),
1230
+ dir: dir,
1231
+ attrs: this.v3 ? undefined : {
1232
+ dir: dir
1233
+ }
1234
+ }, [renderSearchBar.call(this, inputText || '', id), renderClearButton && !loading &&
1235
+ // @ts-ignore function children
1236
+ h(ClearButton, {
1237
+ onClearclick: this.clearButtonClick,
1238
+ on: this.v3 ? undefined : {
1239
+ "clearclick": this.clearButtonClick
1240
+ },
1241
+ key: "clearbutton"
1242
+ }), loading && h(Icon, {
1243
+ name: 'loading',
1244
+ attrs: this.v3 ? undefined : {
1245
+ name: 'loading'
1246
+ },
1247
+ "class": "k-input-loading-icon",
1248
+ key: "loading"
1228
1249
  }),
1229
- dir: dir,
1230
- attrs: this.v3 ? undefined : {
1231
- dir: dir
1232
- }
1233
- }, [renderSearchBar.call(this, inputText || '', id), renderClearButton && !loading &&
1234
- // @ts-ignore function children
1235
- h(ClearButton, {
1236
- onClearclick: this.clearButtonClick,
1237
- on: this.v3 ? undefined : {
1238
- "clearclick": this.clearButtonClick
1239
- },
1240
- key: "clearbutton"
1241
- }), loading && h(Icon, {
1242
- name: 'loading',
1243
- attrs: this.v3 ? undefined : {
1244
- name: 'loading'
1245
- },
1246
- "class": "k-input-loading-icon",
1247
- key: "loading"
1248
- }),
1249
- // @ts-ignore
1250
- h(KButton, {
1251
- type: "button",
1252
- attrs: this.v3 ? undefined : {
1250
+ // @ts-ignore
1251
+ h(KButton, {
1253
1252
  type: "button",
1253
+ attrs: this.v3 ? undefined : {
1254
+ type: "button",
1255
+ tabIndex: -1,
1256
+ "aria-label": ariaLabelExpandButton,
1257
+ size: size,
1258
+ fillMode: fillMode,
1259
+ rounded: null,
1260
+ icon: icon || 'caret-alt-down',
1261
+ svgIcon: svgIcon || caretAltDownIcon,
1262
+ iconClass: iconClassName
1263
+ },
1254
1264
  tabIndex: -1,
1255
1265
  "aria-label": ariaLabelExpandButton,
1256
1266
  size: size,
1257
1267
  fillMode: fillMode,
1258
1268
  rounded: null,
1269
+ "class": 'k-input-button',
1259
1270
  icon: icon || 'caret-alt-down',
1260
1271
  svgIcon: svgIcon || caretAltDownIcon,
1261
- iconClass: iconClassName
1262
- },
1263
- tabIndex: -1,
1264
- "aria-label": ariaLabelExpandButton,
1265
- size: size,
1266
- fillMode: fillMode,
1267
- rounded: null,
1268
- "class": 'k-input-button',
1269
- icon: icon || 'caret-alt-down',
1270
- svgIcon: svgIcon || caretAltDownIcon,
1271
- iconClass: iconClassName,
1272
- onClick: this.toggleBtnClick,
1273
- on: this.v3 ? undefined : {
1274
- "click": this.toggleBtnClick,
1275
- "mousedown": function mousedown(e) {
1272
+ iconClass: iconClassName,
1273
+ onClick: this.toggleBtnClick,
1274
+ on: this.v3 ? undefined : {
1275
+ "click": this.toggleBtnClick,
1276
+ "mousedown": function mousedown(e) {
1277
+ return e.preventDefault();
1278
+ }
1279
+ },
1280
+ onMousedown: function mousedown(e) {
1276
1281
  return e.preventDefault();
1277
1282
  }
1278
- },
1279
- onMousedown: function mousedown(e) {
1280
- return e.preventDefault();
1281
- }
1282
- }), !renderAdaptive && renderListContainer.call(this)]);
1283
+ }), !renderAdaptive && renderListContainer.call(this)]);
1284
+ };
1283
1285
  // The following one combines the default rendering of the Combobox and the Adaptive rendering.
1284
1286
  // This is needed because of Vue 2 specifics
1285
- var combobox = [comboboxDefault, renderAdaptive && renderAdaptiveListContainer.call(this)];
1286
- var comboboxToRender = isV3 ? combobox : this.$props.adaptive ? h("span", [combobox]) : comboboxDefault;
1287
+ var combobox = [isV3 ? h(comboboxDefault.call(this), __assign({}, this.$attrs)) : comboboxDefault.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
1288
+ var comboboxToRender = isV3 ? combobox : renderAdaptive ? h("div", [combobox]) : comboboxDefault.call(this);
1287
1289
  return label ? h("span", {
1288
1290
  "class": this.spanClassNames,
1289
1291
  onFocusin: this.handleFocus,
@@ -807,34 +807,33 @@ var DropDownListVue2 = {
807
807
  }
808
808
  },
809
809
  render: function render(createElement) {
810
- var _a;
811
810
  var _this = this;
812
811
  var h = gh || createElement;
813
- var _b = this.$props,
814
- style = _b.style,
815
- className = _b.className,
816
- label = _b.label,
817
- dir = _b.dir,
818
- _c = _b.virtual,
819
- virtual = _c === void 0 ? {
812
+ var _a = this.$props,
813
+ style = _a.style,
814
+ className = _a.className,
815
+ label = _a.label,
816
+ dir = _a.dir,
817
+ _b = _a.virtual,
818
+ virtual = _b === void 0 ? {
820
819
  skip: 0
821
- } : _c,
822
- size = _b.size,
823
- rounded = _b.rounded,
824
- fillMode = _b.fillMode,
825
- dataItemKey = _b.dataItemKey,
826
- _d = _b.dataItems,
827
- dataItems = _d === void 0 ? [] : _d,
828
- disabled = _b.disabled,
829
- tabIndex = _b.tabIndex,
830
- loading = _b.loading,
831
- icon = _b.icon,
832
- svgIcon = _b.svgIcon,
833
- iconClassName = _b.iconClassName,
834
- adaptiveTitle = _b.adaptiveTitle,
835
- header = _b.header,
836
- footer = _b.footer,
837
- groupStickyHeaderItemRender = _b.groupStickyHeaderItemRender;
820
+ } : _b,
821
+ size = _a.size,
822
+ rounded = _a.rounded,
823
+ fillMode = _a.fillMode,
824
+ dataItemKey = _a.dataItemKey,
825
+ _c = _a.dataItems,
826
+ dataItems = _c === void 0 ? [] : _c,
827
+ disabled = _a.disabled,
828
+ tabIndex = _a.tabIndex,
829
+ loading = _a.loading,
830
+ icon = _a.icon,
831
+ svgIcon = _a.svgIcon,
832
+ iconClassName = _a.iconClassName,
833
+ adaptiveTitle = _a.adaptiveTitle,
834
+ header = _a.header,
835
+ footer = _a.footer,
836
+ groupStickyHeaderItemRender = _a.groupStickyHeaderItemRender;
838
837
  var opened = this.isOpen;
839
838
  var text = getItemValue(this.computedValue(), this.$props.textField);
840
839
  var isValid = !this.$props.validityStyles || this.validity().valid;
@@ -1193,18 +1192,47 @@ var DropDownListVue2 = {
1193
1192
  // @ts-ignore
1194
1193
  base.vs.pageSize = virtual.pageSize;
1195
1194
  }
1196
- var dropdownlistDefault = h("span", {
1197
- ref: setRef(this, 'kendoAnchor', this.anchor),
1198
- "class": classNames('k-dropdownlist k-picker', className, (_a = {}, _a["k-picker-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-picker-".concat(fillMode)] = fillMode, _a['k-focus'] = focused, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1199
- style: !label ? style : __assign(__assign({}, style), {
1200
- width: undefined
1201
- }),
1202
- dir: dir,
1203
- attrs: this.v3 ? undefined : {
1195
+ var dropdownlistDefault = function dropdownlistDefault() {
1196
+ var _a;
1197
+ return h("span", {
1198
+ ref: setRef(this, 'kendoAnchor', this.anchor),
1199
+ "class": classNames('k-dropdownlist k-picker', className, (_a = {}, _a["k-picker-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-picker-".concat(fillMode)] = fillMode, _a['k-focus'] = focused, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1200
+ style: !label ? style : __assign(__assign({}, style), {
1201
+ width: undefined
1202
+ }),
1204
1203
  dir: dir,
1204
+ attrs: this.v3 ? undefined : {
1205
+ dir: dir,
1206
+ tabindex: getTabIndex(tabIndex, disabled),
1207
+ accesskey: this.$props.accessKey,
1208
+ role: 'combobox',
1209
+ "aria-disabled": disabled || undefined,
1210
+ "aria-haspopup": true,
1211
+ "aria-expanded": opened || false,
1212
+ "aria-owns": this.base.listBoxId,
1213
+ "aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
1214
+ "aria-label": this.$props.ariaLabel || this.$props.label,
1215
+ "aria-labelledby": this.$props.ariaLabelledBy,
1216
+ "aria-describedBy": this.dropDownListId,
1217
+ title: this.$props.title
1218
+ },
1219
+ onMousedown: opened ? preventDefaultNonInputs : noop,
1220
+ on: this.v3 ? undefined : {
1221
+ "mousedown": opened ? preventDefaultNonInputs : noop,
1222
+ "focusin": this.handleFocus,
1223
+ "focusout": this.handleBlur,
1224
+ "keydown": this.handleKeyDown,
1225
+ "keypress": this.handleKeyPress,
1226
+ "click": disabled ? noop : this.handleWrapperClick
1227
+ },
1228
+ onFocusin: this.handleFocus,
1229
+ onFocusout: this.handleBlur,
1205
1230
  tabindex: getTabIndex(tabIndex, disabled),
1206
1231
  accesskey: this.$props.accessKey,
1232
+ onKeydown: this.handleKeyDown,
1233
+ onKeypress: this.handleKeyPress,
1207
1234
  role: 'combobox',
1235
+ onClick: disabled ? noop : this.handleWrapperClick,
1208
1236
  "aria-disabled": disabled || undefined,
1209
1237
  "aria-haspopup": true,
1210
1238
  "aria-expanded": opened || false,
@@ -1214,71 +1242,45 @@ var DropDownListVue2 = {
1214
1242
  "aria-labelledby": this.$props.ariaLabelledBy,
1215
1243
  "aria-describedBy": this.dropDownListId,
1216
1244
  title: this.$props.title
1217
- },
1218
- onMousedown: opened ? preventDefaultNonInputs : noop,
1219
- on: this.v3 ? undefined : {
1220
- "mousedown": opened ? preventDefaultNonInputs : noop,
1221
- "focusin": this.handleFocus,
1222
- "focusout": this.handleBlur,
1223
- "keydown": this.handleKeyDown,
1224
- "keypress": this.handleKeyPress,
1225
- "click": disabled ? noop : this.handleWrapperClick
1226
- },
1227
- onFocusin: this.handleFocus,
1228
- onFocusout: this.handleBlur,
1229
- tabindex: getTabIndex(tabIndex, disabled),
1230
- accesskey: this.$props.accessKey,
1231
- onKeydown: this.handleKeyDown,
1232
- onKeypress: this.handleKeyPress,
1233
- role: 'combobox',
1234
- onClick: disabled ? noop : this.handleWrapperClick,
1235
- "aria-disabled": disabled || undefined,
1236
- "aria-haspopup": true,
1237
- "aria-expanded": opened || false,
1238
- "aria-owns": this.base.listBoxId,
1239
- "aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
1240
- "aria-label": this.$props.ariaLabel || this.$props.label,
1241
- "aria-labelledby": this.$props.ariaLabelledBy,
1242
- "aria-describedBy": this.dropDownListId,
1243
- title: this.$props.title
1244
- }, [valueElement, loading && h(Icon, {
1245
- name: 'loading',
1246
- attrs: this.v3 ? undefined : {
1247
- name: 'loading'
1248
- },
1249
- "class": "k-input-loading-icon",
1250
- key: "loading"
1251
- }),
1252
- // @ts-ignore
1253
- h(KButton, {
1254
- type: "button",
1255
- attrs: this.v3 ? undefined : {
1245
+ }, [valueElement, loading && h(Icon, {
1246
+ name: 'loading',
1247
+ attrs: this.v3 ? undefined : {
1248
+ name: 'loading'
1249
+ },
1250
+ "class": "k-input-loading-icon",
1251
+ key: "loading"
1252
+ }),
1253
+ // @ts-ignore
1254
+ h(KButton, {
1256
1255
  type: "button",
1256
+ attrs: this.v3 ? undefined : {
1257
+ type: "button",
1258
+ tabIndex: -1,
1259
+ size: size,
1260
+ fillMode: fillMode,
1261
+ rounded: null,
1262
+ ariaLabel: ariaLabelSelectButton,
1263
+ icon: icon || 'caret-alt-down',
1264
+ svgIcon: svgIcon || caretAltDownIcon,
1265
+ iconClass: iconClassName,
1266
+ "aria-hidden": true
1267
+ },
1257
1268
  tabIndex: -1,
1258
1269
  size: size,
1259
1270
  fillMode: fillMode,
1260
1271
  rounded: null,
1261
1272
  ariaLabel: ariaLabelSelectButton,
1273
+ "class": 'k-input-button',
1262
1274
  icon: icon || 'caret-alt-down',
1263
1275
  svgIcon: svgIcon || caretAltDownIcon,
1264
1276
  iconClass: iconClassName,
1265
1277
  "aria-hidden": true
1266
- },
1267
- tabIndex: -1,
1268
- size: size,
1269
- fillMode: fillMode,
1270
- rounded: null,
1271
- ariaLabel: ariaLabelSelectButton,
1272
- "class": 'k-input-button',
1273
- icon: icon || 'caret-alt-down',
1274
- svgIcon: svgIcon || caretAltDownIcon,
1275
- iconClass: iconClassName,
1276
- "aria-hidden": true
1277
- }), dummySelect.call(this, value), !renderAdaptive && renderListContainer.call(this)]);
1278
+ }), dummySelect.call(this, value), !renderAdaptive && renderListContainer.call(this)]);
1279
+ };
1278
1280
  // The following one combines the default rendering of the DropDownList and the Adaptive rendering.
1279
1281
  // This is needed because of Vue 2 specifics
1280
- var dropdownlist = [dropdownlistDefault, renderAdaptive && renderAdaptiveListContainer.call(this)];
1281
- var dropdownlistToRender = isV3 ? dropdownlist : this.$props.adaptive ? h("span", [dropdownlist]) : dropdownlistDefault;
1282
+ var dropdownlist = [isV3 ? h(dropdownlistDefault.call(this), __assign({}, this.$attrs)) : dropdownlistDefault.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
1283
+ var dropdownlistToRender = isV3 ? dropdownlist : renderAdaptive ? h("div", [dropdownlist]) : dropdownlistDefault.call(this);
1282
1284
  return label ? h("span", {
1283
1285
  "class": this.spanClassNames,
1284
1286
  onFocusin: this.handleFocus,
@@ -970,31 +970,29 @@ var MultiSelectVue2 = {
970
970
  }
971
971
  },
972
972
  render: function render(createElement) {
973
- var _this4 = this;
974
- var _a;
975
973
  var _this = this;
976
974
  var h = gh || createElement;
977
- var _b = this.$props,
978
- style = _b.style,
979
- label = _b.label,
980
- dir = _b.dir,
981
- disabled = _b.disabled,
982
- tags = _b.tags,
983
- textField = _b.textField,
984
- dataItemKey = _b.dataItemKey,
985
- virtual = _b.virtual,
986
- loading = _b.loading,
987
- size = _b.size,
988
- fillMode = _b.fillMode,
989
- rounded = _b.rounded,
990
- tagsRounded = _b.tagsRounded,
991
- removeTagIcon = _b.removeTagIcon,
992
- adaptiveTitle = _b.adaptiveTitle,
993
- header = _b.header,
994
- footer = _b.footer,
995
- groupStickyHeaderItemRender = _b.groupStickyHeaderItemRender,
996
- _c = _b.dataItems,
997
- dataItems = _c === void 0 ? [] : _c;
975
+ var _a = this.$props,
976
+ style = _a.style,
977
+ label = _a.label,
978
+ dir = _a.dir,
979
+ disabled = _a.disabled,
980
+ tags = _a.tags,
981
+ textField = _a.textField,
982
+ dataItemKey = _a.dataItemKey,
983
+ virtual = _a.virtual,
984
+ loading = _a.loading,
985
+ size = _a.size,
986
+ fillMode = _a.fillMode,
987
+ rounded = _a.rounded,
988
+ tagsRounded = _a.tagsRounded,
989
+ removeTagIcon = _a.removeTagIcon,
990
+ adaptiveTitle = _a.adaptiveTitle,
991
+ header = _a.header,
992
+ footer = _a.footer,
993
+ groupStickyHeaderItemRender = _a.groupStickyHeaderItemRender,
994
+ _b = _a.dataItems,
995
+ dataItems = _b === void 0 ? [] : _b;
998
996
  var focused = this.currentFocused;
999
997
  var popupSettings = Object.assign({}, {
1000
998
  animate: true,
@@ -1020,7 +1018,7 @@ var MultiSelectVue2 = {
1020
1018
  vs.pageSize = virtual.pageSize;
1021
1019
  }
1022
1020
  var tagsToRender = [];
1023
- if (this.initialAdaptiveRenderingValues === undefined) {
1021
+ if (!this.initialAdaptiveRenderingValues) {
1024
1022
  if (tags === undefined) {
1025
1023
  this.computedValue().forEach(function (item) {
1026
1024
  tagsToRender.push({
@@ -1425,69 +1423,73 @@ var MultiSelectVue2 = {
1425
1423
  navigatableElements: ['input.k-input-inner', '.k-actionsheet-actions > button']
1426
1424
  });
1427
1425
  };
1428
- var component = h("span", {
1429
- ref: setRef(this, 'kendoAnchor', this.anchor),
1430
- "class": classNames('k-multiselect', 'k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-focus'] = focused && !disabled, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1431
- style: !label ? style : __assign(__assign({}, style), {
1432
- width: undefined
1433
- }),
1434
- dir: dir,
1435
- attrs: this.v3 ? undefined : {
1436
- dir: dir
1437
- },
1438
- onFocusin: this.handleFocus,
1439
- on: this.v3 ? undefined : {
1440
- "focusin": this.handleFocus,
1441
- "click": this.handleWrapperClick,
1442
- "mousedown": preventDefaultNonInputs
1443
- },
1444
- onClick: this.handleWrapperClick,
1445
- onMousedown: preventDefaultNonInputs
1446
- }, [
1447
- // @ts-ignore function children
1448
- h(TagList, {
1449
- removeTagIcon: removeTagIcon,
1450
- attrs: this.v3 ? undefined : {
1426
+ var multiSelectDefault = function multiSelectDefault() {
1427
+ var _this4 = this;
1428
+ var _a;
1429
+ return h("span", {
1430
+ ref: setRef(this, 'kendoAnchor', this.anchor),
1431
+ "class": classNames('k-multiselect', 'k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-focus'] = focused && !disabled, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1432
+ style: !label ? style : __assign(__assign({}, style), {
1433
+ width: undefined
1434
+ }),
1435
+ dir: dir,
1436
+ attrs: this.v3 ? undefined : {
1437
+ dir: dir
1438
+ },
1439
+ onFocusin: this.handleFocus,
1440
+ on: this.v3 ? undefined : {
1441
+ "focusin": this.handleFocus,
1442
+ "click": this.handleWrapperClick,
1443
+ "mousedown": preventDefaultNonInputs
1444
+ },
1445
+ onClick: this.handleWrapperClick,
1446
+ onMousedown: preventDefaultNonInputs
1447
+ }, [
1448
+ // @ts-ignore function children
1449
+ h(TagList, {
1451
1450
  removeTagIcon: removeTagIcon,
1451
+ attrs: this.v3 ? undefined : {
1452
+ removeTagIcon: removeTagIcon,
1453
+ tagsRounded: tagsRounded,
1454
+ size: size,
1455
+ fillMode: fillMode,
1456
+ tagRender: tagRender,
1457
+ dataItems: tagsToRender,
1458
+ guid: this.base.guid,
1459
+ focused: focusedTag ? tagsToRender.find(function (t) {
1460
+ return matchTags(t, focusedTag, dataItemKey);
1461
+ }) : undefined
1462
+ },
1452
1463
  tagsRounded: tagsRounded,
1453
1464
  size: size,
1454
1465
  fillMode: fillMode,
1455
1466
  tagRender: tagRender,
1467
+ onTagdelete: this.onTagDelete,
1468
+ on: this.v3 ? undefined : {
1469
+ "tagdelete": this.onTagDelete
1470
+ },
1456
1471
  dataItems: tagsToRender,
1457
1472
  guid: this.base.guid,
1458
1473
  focused: focusedTag ? tagsToRender.find(function (t) {
1459
1474
  return matchTags(t, focusedTag, dataItemKey);
1460
1475
  }) : undefined
1461
- },
1462
- tagsRounded: tagsRounded,
1463
- size: size,
1464
- fillMode: fillMode,
1465
- tagRender: tagRender,
1466
- onTagdelete: this.onTagDelete,
1467
- on: this.v3 ? undefined : {
1468
- "tagdelete": this.onTagDelete
1469
- },
1470
- dataItems: tagsToRender,
1471
- guid: this.base.guid,
1472
- focused: focusedTag ? tagsToRender.find(function (t) {
1473
- return matchTags(t, focusedTag, dataItemKey);
1474
- }) : undefined
1475
- }, this.v3 ? function () {
1476
- return [renderSearchBar.call(_this4, id)];
1477
- } : [renderSearchBar.call(_this4, id)]), tagsToRender.length > 0 && clearButton &&
1478
- // @ts-ignore function children
1479
- h(ClearButton, {
1480
- onClearclick: this.clearButtonClick,
1481
- on: this.v3 ? undefined : {
1482
- "clearclick": this.clearButtonClick
1483
- }
1484
- }), h("span", {
1485
- "class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
1486
- }), !renderAdaptive && renderListContainer.call(this)]);
1476
+ }, this.v3 ? function () {
1477
+ return [renderSearchBar.call(_this4, id)];
1478
+ } : [renderSearchBar.call(_this4, id)]), tagsToRender.length > 0 && clearButton &&
1479
+ // @ts-ignore function children
1480
+ h(ClearButton, {
1481
+ onClearclick: this.clearButtonClick,
1482
+ on: this.v3 ? undefined : {
1483
+ "clearclick": this.clearButtonClick
1484
+ }
1485
+ }), h("span", {
1486
+ "class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
1487
+ }), !renderAdaptive && renderListContainer.call(this)]);
1488
+ };
1487
1489
  // The following one combines the default rendering of the MultiSelect and the Adaptive rendering.
1488
1490
  // This is needed because of Vue 2 specifics
1489
- var multiselect = [component, renderAdaptive && renderAdaptiveListContainer.call(this)];
1490
- var multiselectToRender = isV3 ? multiselect : this.$props.adaptive ? h("span", [multiselect]) : component;
1491
+ var multiselect = [isV3 ? h(multiSelectDefault.call(this), __assign({}, this.$attrs)) : multiSelectDefault.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
1492
+ var multiselectToRender = isV3 ? multiselect : renderAdaptive ? h("div", [multiselect]) : multiSelectDefault.call(this);
1491
1493
  return label ? h("span", {
1492
1494
  "class": this.spanClassNames,
1493
1495
  dir: this.$props.dir,
@@ -165,7 +165,7 @@ var DropDownBase = /** @class */function () {
165
165
  }
166
166
  };
167
167
  DropDownBase.prototype.calculatePopupWidth = function () {
168
- if (this.wrapper) {
168
+ if (this.wrapper && !this.popupWidth) {
169
169
  this.popupWidth = this.wrapper.offsetWidth + 'px';
170
170
  }
171
171
  };
@@ -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: 1696942204,
8
+ publishDate: 1697728770,
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
  };
@@ -81,7 +81,7 @@ var AutoCompleteVue2 = {
81
81
  },
82
82
  tabIndex: {
83
83
  type: Number,
84
- default: 0
84
+ default: undefined
85
85
  },
86
86
  readonly: Boolean,
87
87
  accessKey: String,
@@ -594,7 +594,7 @@ var AutoCompleteVue2 = {
594
594
  attrs: this.v3 ? undefined : {
595
595
  id: searchId,
596
596
  placeholder: placeholder,
597
- tabIndex: tabIndex || undefined,
597
+ tabIndex: tabIndex,
598
598
  accessKey: this.$props.accessKey,
599
599
  value: searchValue,
600
600
  suggestedText: this.suggested,
@@ -610,7 +610,7 @@ var AutoCompleteVue2 = {
610
610
  ariaLabel: this.$props.ariaLabel
611
611
  },
612
612
  placeholder: placeholder,
613
- tabIndex: tabIndex || undefined,
613
+ tabIndex: tabIndex,
614
614
  accessKey: this.$props.accessKey,
615
615
  value: searchValue,
616
616
  suggestedText: this.suggested,