@progress/kendo-vue-dropdowns 4.0.0 → 4.1.0-dev.202310241034

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.
@@ -828,30 +828,29 @@ var ComboBoxVue2 = {
828
828
  }
829
829
  },
830
830
  render: function render(createElement) {
831
- var _a;
832
831
  var _this = this;
833
832
  var h = gh || createElement;
834
- var _b = this.$props,
835
- dir = _b.dir,
836
- disabled = _b.disabled,
837
- clearButton = _b.clearButton,
838
- label = _b.label,
839
- textField = _b.textField,
840
- className = _b.className,
841
- style = _b.style,
842
- loading = _b.loading,
843
- icon = _b.icon,
844
- svgIcon = _b.svgIcon,
845
- iconClassName = _b.iconClassName,
846
- virtual = _b.virtual,
847
- size = _b.size,
848
- fillMode = _b.fillMode,
849
- rounded = _b.rounded,
850
- adaptiveTitle = _b.adaptiveTitle,
851
- header = _b.header,
852
- footer = _b.footer,
853
- groupStickyHeaderItemRender = _b.groupStickyHeaderItemRender,
854
- placeholder = _b.placeholder;
833
+ var _a = this.$props,
834
+ dir = _a.dir,
835
+ disabled = _a.disabled,
836
+ clearButton = _a.clearButton,
837
+ label = _a.label,
838
+ textField = _a.textField,
839
+ className = _a.className,
840
+ style = _a.style,
841
+ loading = _a.loading,
842
+ icon = _a.icon,
843
+ svgIcon = _a.svgIcon,
844
+ iconClassName = _a.iconClassName,
845
+ virtual = _a.virtual,
846
+ size = _a.size,
847
+ fillMode = _a.fillMode,
848
+ rounded = _a.rounded,
849
+ adaptiveTitle = _a.adaptiveTitle,
850
+ header = _a.header,
851
+ footer = _a.footer,
852
+ groupStickyHeaderItemRender = _a.groupStickyHeaderItemRender,
853
+ placeholder = _a.placeholder;
855
854
  var focused = this.currentFocused;
856
855
  var isValid = !this.$props.validityStyles || this.validity().valid;
857
856
  var text = this.$props.filter !== undefined ? this.$props.filter : this.currentText;
@@ -1226,70 +1225,73 @@ var ComboBoxVue2 = {
1226
1225
  })
1227
1226
  );
1228
1227
  };
1229
- var comboboxDefault = h("span", {
1230
- "class": (0, kendo_vue_common_1.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),
1231
- ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
1232
- style: !label ? style : __assign(__assign({}, style), {
1233
- width: undefined
1228
+ var comboboxDefault = function comboboxDefault() {
1229
+ var _a;
1230
+ return h("span", {
1231
+ "class": (0, kendo_vue_common_1.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),
1232
+ ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
1233
+ style: !label ? style : __assign(__assign({}, style), {
1234
+ width: undefined
1235
+ }),
1236
+ dir: dir,
1237
+ attrs: this.v3 ? undefined : {
1238
+ dir: dir
1239
+ }
1240
+ }, [renderSearchBar.call(this, inputText || '', id), renderClearButton && !loading &&
1241
+ // @ts-ignore function children
1242
+ h(ClearButton_1.ClearButton, {
1243
+ onClearclick: this.clearButtonClick,
1244
+ on: this.v3 ? undefined : {
1245
+ "clearclick": this.clearButtonClick
1246
+ },
1247
+ key: "clearbutton"
1248
+ }), loading && h(kendo_vue_common_1.Icon, {
1249
+ name: 'loading',
1250
+ attrs: this.v3 ? undefined : {
1251
+ name: 'loading'
1252
+ },
1253
+ "class": "k-input-loading-icon",
1254
+ key: "loading"
1234
1255
  }),
1235
- dir: dir,
1236
- attrs: this.v3 ? undefined : {
1237
- dir: dir
1238
- }
1239
- }, [renderSearchBar.call(this, inputText || '', id), renderClearButton && !loading &&
1240
- // @ts-ignore function children
1241
- h(ClearButton_1.ClearButton, {
1242
- onClearclick: this.clearButtonClick,
1243
- on: this.v3 ? undefined : {
1244
- "clearclick": this.clearButtonClick
1245
- },
1246
- key: "clearbutton"
1247
- }), loading && h(kendo_vue_common_1.Icon, {
1248
- name: 'loading',
1249
- attrs: this.v3 ? undefined : {
1250
- name: 'loading'
1251
- },
1252
- "class": "k-input-loading-icon",
1253
- key: "loading"
1254
- }),
1255
- // @ts-ignore
1256
- h(kendo_vue_buttons_1.Button, {
1257
- type: "button",
1258
- attrs: this.v3 ? undefined : {
1256
+ // @ts-ignore
1257
+ h(kendo_vue_buttons_1.Button, {
1259
1258
  type: "button",
1259
+ attrs: this.v3 ? undefined : {
1260
+ type: "button",
1261
+ tabIndex: -1,
1262
+ "aria-label": ariaLabelExpandButton,
1263
+ size: size,
1264
+ fillMode: fillMode,
1265
+ rounded: null,
1266
+ icon: icon || 'caret-alt-down',
1267
+ svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
1268
+ iconClass: iconClassName
1269
+ },
1260
1270
  tabIndex: -1,
1261
1271
  "aria-label": ariaLabelExpandButton,
1262
1272
  size: size,
1263
1273
  fillMode: fillMode,
1264
1274
  rounded: null,
1275
+ "class": 'k-input-button',
1265
1276
  icon: icon || 'caret-alt-down',
1266
1277
  svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
1267
- iconClass: iconClassName
1268
- },
1269
- tabIndex: -1,
1270
- "aria-label": ariaLabelExpandButton,
1271
- size: size,
1272
- fillMode: fillMode,
1273
- rounded: null,
1274
- "class": 'k-input-button',
1275
- icon: icon || 'caret-alt-down',
1276
- svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
1277
- iconClass: iconClassName,
1278
- onClick: this.toggleBtnClick,
1279
- on: this.v3 ? undefined : {
1280
- "click": this.toggleBtnClick,
1281
- "mousedown": function mousedown(e) {
1278
+ iconClass: iconClassName,
1279
+ onClick: this.toggleBtnClick,
1280
+ on: this.v3 ? undefined : {
1281
+ "click": this.toggleBtnClick,
1282
+ "mousedown": function mousedown(e) {
1283
+ return e.preventDefault();
1284
+ }
1285
+ },
1286
+ onMousedown: function mousedown(e) {
1282
1287
  return e.preventDefault();
1283
1288
  }
1284
- },
1285
- onMousedown: function mousedown(e) {
1286
- return e.preventDefault();
1287
- }
1288
- }), !renderAdaptive && renderListContainer.call(this)]);
1289
+ }), !renderAdaptive && renderListContainer.call(this)]);
1290
+ };
1289
1291
  // The following one combines the default rendering of the Combobox and the Adaptive rendering.
1290
1292
  // This is needed because of Vue 2 specifics
1291
- var combobox = [comboboxDefault, renderAdaptive && renderAdaptiveListContainer.call(this)];
1292
- var comboboxToRender = isV3 ? combobox : this.$props.adaptive ? h("span", [combobox]) : comboboxDefault;
1293
+ var combobox = [isV3 ? h(comboboxDefault.call(this), __assign({}, this.$attrs)) : comboboxDefault.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
1294
+ var comboboxToRender = isV3 ? combobox : renderAdaptive ? h("div", [combobox]) : comboboxDefault.call(this);
1293
1295
  return label ? h("span", {
1294
1296
  "class": this.spanClassNames,
1295
1297
  onFocusin: this.handleFocus,
@@ -813,34 +813,33 @@ var DropDownListVue2 = {
813
813
  }
814
814
  },
815
815
  render: function render(createElement) {
816
- var _a;
817
816
  var _this = this;
818
817
  var h = gh || createElement;
819
- var _b = this.$props,
820
- style = _b.style,
821
- className = _b.className,
822
- label = _b.label,
823
- dir = _b.dir,
824
- _c = _b.virtual,
825
- virtual = _c === void 0 ? {
818
+ var _a = this.$props,
819
+ style = _a.style,
820
+ className = _a.className,
821
+ label = _a.label,
822
+ dir = _a.dir,
823
+ _b = _a.virtual,
824
+ virtual = _b === void 0 ? {
826
825
  skip: 0
827
- } : _c,
828
- size = _b.size,
829
- rounded = _b.rounded,
830
- fillMode = _b.fillMode,
831
- dataItemKey = _b.dataItemKey,
832
- _d = _b.dataItems,
833
- dataItems = _d === void 0 ? [] : _d,
834
- disabled = _b.disabled,
835
- tabIndex = _b.tabIndex,
836
- loading = _b.loading,
837
- icon = _b.icon,
838
- svgIcon = _b.svgIcon,
839
- iconClassName = _b.iconClassName,
840
- adaptiveTitle = _b.adaptiveTitle,
841
- header = _b.header,
842
- footer = _b.footer,
843
- groupStickyHeaderItemRender = _b.groupStickyHeaderItemRender;
826
+ } : _b,
827
+ size = _a.size,
828
+ rounded = _a.rounded,
829
+ fillMode = _a.fillMode,
830
+ dataItemKey = _a.dataItemKey,
831
+ _c = _a.dataItems,
832
+ dataItems = _c === void 0 ? [] : _c,
833
+ disabled = _a.disabled,
834
+ tabIndex = _a.tabIndex,
835
+ loading = _a.loading,
836
+ icon = _a.icon,
837
+ svgIcon = _a.svgIcon,
838
+ iconClassName = _a.iconClassName,
839
+ adaptiveTitle = _a.adaptiveTitle,
840
+ header = _a.header,
841
+ footer = _a.footer,
842
+ groupStickyHeaderItemRender = _a.groupStickyHeaderItemRender;
844
843
  var opened = this.isOpen;
845
844
  var text = (0, utils_1.getItemValue)(this.computedValue(), this.$props.textField);
846
845
  var isValid = !this.$props.validityStyles || this.validity().valid;
@@ -1199,18 +1198,47 @@ var DropDownListVue2 = {
1199
1198
  // @ts-ignore
1200
1199
  base.vs.pageSize = virtual.pageSize;
1201
1200
  }
1202
- var dropdownlistDefault = h("span", {
1203
- ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
1204
- "class": (0, kendo_vue_common_1.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)),
1205
- style: !label ? style : __assign(__assign({}, style), {
1206
- width: undefined
1207
- }),
1208
- dir: dir,
1209
- attrs: this.v3 ? undefined : {
1201
+ var dropdownlistDefault = function dropdownlistDefault() {
1202
+ var _a;
1203
+ return h("span", {
1204
+ ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
1205
+ "class": (0, kendo_vue_common_1.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)),
1206
+ style: !label ? style : __assign(__assign({}, style), {
1207
+ width: undefined
1208
+ }),
1210
1209
  dir: dir,
1210
+ attrs: this.v3 ? undefined : {
1211
+ dir: dir,
1212
+ tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
1213
+ accesskey: this.$props.accessKey,
1214
+ role: 'combobox',
1215
+ "aria-disabled": disabled || undefined,
1216
+ "aria-haspopup": true,
1217
+ "aria-expanded": opened || false,
1218
+ "aria-owns": this.base.listBoxId,
1219
+ "aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
1220
+ "aria-label": this.$props.ariaLabel || this.$props.label,
1221
+ "aria-labelledby": this.$props.ariaLabelledBy,
1222
+ "aria-describedBy": this.dropDownListId,
1223
+ title: this.$props.title
1224
+ },
1225
+ onMousedown: opened ? utils_1.preventDefaultNonInputs : kendo_vue_common_1.noop,
1226
+ on: this.v3 ? undefined : {
1227
+ "mousedown": opened ? utils_1.preventDefaultNonInputs : kendo_vue_common_1.noop,
1228
+ "focusin": this.handleFocus,
1229
+ "focusout": this.handleBlur,
1230
+ "keydown": this.handleKeyDown,
1231
+ "keypress": this.handleKeyPress,
1232
+ "click": disabled ? kendo_vue_common_1.noop : this.handleWrapperClick
1233
+ },
1234
+ onFocusin: this.handleFocus,
1235
+ onFocusout: this.handleBlur,
1211
1236
  tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
1212
1237
  accesskey: this.$props.accessKey,
1238
+ onKeydown: this.handleKeyDown,
1239
+ onKeypress: this.handleKeyPress,
1213
1240
  role: 'combobox',
1241
+ onClick: disabled ? kendo_vue_common_1.noop : this.handleWrapperClick,
1214
1242
  "aria-disabled": disabled || undefined,
1215
1243
  "aria-haspopup": true,
1216
1244
  "aria-expanded": opened || false,
@@ -1220,71 +1248,45 @@ var DropDownListVue2 = {
1220
1248
  "aria-labelledby": this.$props.ariaLabelledBy,
1221
1249
  "aria-describedBy": this.dropDownListId,
1222
1250
  title: this.$props.title
1223
- },
1224
- onMousedown: opened ? utils_1.preventDefaultNonInputs : kendo_vue_common_1.noop,
1225
- on: this.v3 ? undefined : {
1226
- "mousedown": opened ? utils_1.preventDefaultNonInputs : kendo_vue_common_1.noop,
1227
- "focusin": this.handleFocus,
1228
- "focusout": this.handleBlur,
1229
- "keydown": this.handleKeyDown,
1230
- "keypress": this.handleKeyPress,
1231
- "click": disabled ? kendo_vue_common_1.noop : this.handleWrapperClick
1232
- },
1233
- onFocusin: this.handleFocus,
1234
- onFocusout: this.handleBlur,
1235
- tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
1236
- accesskey: this.$props.accessKey,
1237
- onKeydown: this.handleKeyDown,
1238
- onKeypress: this.handleKeyPress,
1239
- role: 'combobox',
1240
- onClick: disabled ? kendo_vue_common_1.noop : this.handleWrapperClick,
1241
- "aria-disabled": disabled || undefined,
1242
- "aria-haspopup": true,
1243
- "aria-expanded": opened || false,
1244
- "aria-owns": this.base.listBoxId,
1245
- "aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
1246
- "aria-label": this.$props.ariaLabel || this.$props.label,
1247
- "aria-labelledby": this.$props.ariaLabelledBy,
1248
- "aria-describedBy": this.dropDownListId,
1249
- title: this.$props.title
1250
- }, [valueElement, loading && h(kendo_vue_common_1.Icon, {
1251
- name: 'loading',
1252
- attrs: this.v3 ? undefined : {
1253
- name: 'loading'
1254
- },
1255
- "class": "k-input-loading-icon",
1256
- key: "loading"
1257
- }),
1258
- // @ts-ignore
1259
- h(kendo_vue_buttons_1.Button, {
1260
- type: "button",
1261
- attrs: this.v3 ? undefined : {
1251
+ }, [valueElement, loading && h(kendo_vue_common_1.Icon, {
1252
+ name: 'loading',
1253
+ attrs: this.v3 ? undefined : {
1254
+ name: 'loading'
1255
+ },
1256
+ "class": "k-input-loading-icon",
1257
+ key: "loading"
1258
+ }),
1259
+ // @ts-ignore
1260
+ h(kendo_vue_buttons_1.Button, {
1262
1261
  type: "button",
1262
+ attrs: this.v3 ? undefined : {
1263
+ type: "button",
1264
+ tabIndex: -1,
1265
+ size: size,
1266
+ fillMode: fillMode,
1267
+ rounded: null,
1268
+ ariaLabel: ariaLabelSelectButton,
1269
+ icon: icon || 'caret-alt-down',
1270
+ svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
1271
+ iconClass: iconClassName,
1272
+ "aria-hidden": true
1273
+ },
1263
1274
  tabIndex: -1,
1264
1275
  size: size,
1265
1276
  fillMode: fillMode,
1266
1277
  rounded: null,
1267
1278
  ariaLabel: ariaLabelSelectButton,
1279
+ "class": 'k-input-button',
1268
1280
  icon: icon || 'caret-alt-down',
1269
1281
  svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
1270
1282
  iconClass: iconClassName,
1271
1283
  "aria-hidden": true
1272
- },
1273
- tabIndex: -1,
1274
- size: size,
1275
- fillMode: fillMode,
1276
- rounded: null,
1277
- ariaLabel: ariaLabelSelectButton,
1278
- "class": 'k-input-button',
1279
- icon: icon || 'caret-alt-down',
1280
- svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
1281
- iconClass: iconClassName,
1282
- "aria-hidden": true
1283
- }), dummySelect.call(this, value), !renderAdaptive && renderListContainer.call(this)]);
1284
+ }), dummySelect.call(this, value), !renderAdaptive && renderListContainer.call(this)]);
1285
+ };
1284
1286
  // The following one combines the default rendering of the DropDownList and the Adaptive rendering.
1285
1287
  // This is needed because of Vue 2 specifics
1286
- var dropdownlist = [dropdownlistDefault, renderAdaptive && renderAdaptiveListContainer.call(this)];
1287
- var dropdownlistToRender = isV3 ? dropdownlist : this.$props.adaptive ? h("span", [dropdownlist]) : dropdownlistDefault;
1288
+ var dropdownlist = [isV3 ? h(dropdownlistDefault.call(this), __assign({}, this.$attrs)) : dropdownlistDefault.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
1289
+ var dropdownlistToRender = isV3 ? dropdownlist : renderAdaptive ? h("div", [dropdownlist]) : dropdownlistDefault.call(this);
1288
1290
  return label ? h("span", {
1289
1291
  "class": this.spanClassNames,
1290
1292
  onFocusin: this.handleFocus,
@@ -976,31 +976,29 @@ var MultiSelectVue2 = {
976
976
  }
977
977
  },
978
978
  render: function render(createElement) {
979
- var _this4 = this;
980
- var _a;
981
979
  var _this = this;
982
980
  var h = gh || createElement;
983
- var _b = this.$props,
984
- style = _b.style,
985
- label = _b.label,
986
- dir = _b.dir,
987
- disabled = _b.disabled,
988
- tags = _b.tags,
989
- textField = _b.textField,
990
- dataItemKey = _b.dataItemKey,
991
- virtual = _b.virtual,
992
- loading = _b.loading,
993
- size = _b.size,
994
- fillMode = _b.fillMode,
995
- rounded = _b.rounded,
996
- tagsRounded = _b.tagsRounded,
997
- removeTagIcon = _b.removeTagIcon,
998
- adaptiveTitle = _b.adaptiveTitle,
999
- header = _b.header,
1000
- footer = _b.footer,
1001
- groupStickyHeaderItemRender = _b.groupStickyHeaderItemRender,
1002
- _c = _b.dataItems,
1003
- dataItems = _c === void 0 ? [] : _c;
981
+ var _a = this.$props,
982
+ style = _a.style,
983
+ label = _a.label,
984
+ dir = _a.dir,
985
+ disabled = _a.disabled,
986
+ tags = _a.tags,
987
+ textField = _a.textField,
988
+ dataItemKey = _a.dataItemKey,
989
+ virtual = _a.virtual,
990
+ loading = _a.loading,
991
+ size = _a.size,
992
+ fillMode = _a.fillMode,
993
+ rounded = _a.rounded,
994
+ tagsRounded = _a.tagsRounded,
995
+ removeTagIcon = _a.removeTagIcon,
996
+ adaptiveTitle = _a.adaptiveTitle,
997
+ header = _a.header,
998
+ footer = _a.footer,
999
+ groupStickyHeaderItemRender = _a.groupStickyHeaderItemRender,
1000
+ _b = _a.dataItems,
1001
+ dataItems = _b === void 0 ? [] : _b;
1004
1002
  var focused = this.currentFocused;
1005
1003
  var popupSettings = Object.assign({}, {
1006
1004
  animate: true,
@@ -1026,7 +1024,7 @@ var MultiSelectVue2 = {
1026
1024
  vs.pageSize = virtual.pageSize;
1027
1025
  }
1028
1026
  var tagsToRender = [];
1029
- if (this.initialAdaptiveRenderingValues === undefined) {
1027
+ if (!this.initialAdaptiveRenderingValues) {
1030
1028
  if (tags === undefined) {
1031
1029
  this.computedValue().forEach(function (item) {
1032
1030
  tagsToRender.push({
@@ -1431,69 +1429,73 @@ var MultiSelectVue2 = {
1431
1429
  navigatableElements: ['input.k-input-inner', '.k-actionsheet-actions > button']
1432
1430
  });
1433
1431
  };
1434
- var component = h("span", {
1435
- ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
1436
- "class": (0, kendo_vue_common_1.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)),
1437
- style: !label ? style : __assign(__assign({}, style), {
1438
- width: undefined
1439
- }),
1440
- dir: dir,
1441
- attrs: this.v3 ? undefined : {
1442
- dir: dir
1443
- },
1444
- onFocusin: this.handleFocus,
1445
- on: this.v3 ? undefined : {
1446
- "focusin": this.handleFocus,
1447
- "click": this.handleWrapperClick,
1448
- "mousedown": utils_1.preventDefaultNonInputs
1449
- },
1450
- onClick: this.handleWrapperClick,
1451
- onMousedown: utils_1.preventDefaultNonInputs
1452
- }, [
1453
- // @ts-ignore function children
1454
- h(TagList_1.TagList, {
1455
- removeTagIcon: removeTagIcon,
1456
- attrs: this.v3 ? undefined : {
1432
+ var multiSelectDefault = function multiSelectDefault() {
1433
+ var _this4 = this;
1434
+ var _a;
1435
+ return h("span", {
1436
+ ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
1437
+ "class": (0, kendo_vue_common_1.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)),
1438
+ style: !label ? style : __assign(__assign({}, style), {
1439
+ width: undefined
1440
+ }),
1441
+ dir: dir,
1442
+ attrs: this.v3 ? undefined : {
1443
+ dir: dir
1444
+ },
1445
+ onFocusin: this.handleFocus,
1446
+ on: this.v3 ? undefined : {
1447
+ "focusin": this.handleFocus,
1448
+ "click": this.handleWrapperClick,
1449
+ "mousedown": utils_1.preventDefaultNonInputs
1450
+ },
1451
+ onClick: this.handleWrapperClick,
1452
+ onMousedown: utils_1.preventDefaultNonInputs
1453
+ }, [
1454
+ // @ts-ignore function children
1455
+ h(TagList_1.TagList, {
1457
1456
  removeTagIcon: removeTagIcon,
1457
+ attrs: this.v3 ? undefined : {
1458
+ removeTagIcon: removeTagIcon,
1459
+ tagsRounded: tagsRounded,
1460
+ size: size,
1461
+ fillMode: fillMode,
1462
+ tagRender: tagRender,
1463
+ dataItems: tagsToRender,
1464
+ guid: this.base.guid,
1465
+ focused: focusedTag ? tagsToRender.find(function (t) {
1466
+ return matchTags(t, focusedTag, dataItemKey);
1467
+ }) : undefined
1468
+ },
1458
1469
  tagsRounded: tagsRounded,
1459
1470
  size: size,
1460
1471
  fillMode: fillMode,
1461
1472
  tagRender: tagRender,
1473
+ onTagdelete: this.onTagDelete,
1474
+ on: this.v3 ? undefined : {
1475
+ "tagdelete": this.onTagDelete
1476
+ },
1462
1477
  dataItems: tagsToRender,
1463
1478
  guid: this.base.guid,
1464
1479
  focused: focusedTag ? tagsToRender.find(function (t) {
1465
1480
  return matchTags(t, focusedTag, dataItemKey);
1466
1481
  }) : undefined
1467
- },
1468
- tagsRounded: tagsRounded,
1469
- size: size,
1470
- fillMode: fillMode,
1471
- tagRender: tagRender,
1472
- onTagdelete: this.onTagDelete,
1473
- on: this.v3 ? undefined : {
1474
- "tagdelete": this.onTagDelete
1475
- },
1476
- dataItems: tagsToRender,
1477
- guid: this.base.guid,
1478
- focused: focusedTag ? tagsToRender.find(function (t) {
1479
- return matchTags(t, focusedTag, dataItemKey);
1480
- }) : undefined
1481
- }, this.v3 ? function () {
1482
- return [renderSearchBar.call(_this4, id)];
1483
- } : [renderSearchBar.call(_this4, id)]), tagsToRender.length > 0 && clearButton &&
1484
- // @ts-ignore function children
1485
- h(ClearButton_1.ClearButton, {
1486
- onClearclick: this.clearButtonClick,
1487
- on: this.v3 ? undefined : {
1488
- "clearclick": this.clearButtonClick
1489
- }
1490
- }), h("span", {
1491
- "class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
1492
- }), !renderAdaptive && renderListContainer.call(this)]);
1482
+ }, this.v3 ? function () {
1483
+ return [renderSearchBar.call(_this4, id)];
1484
+ } : [renderSearchBar.call(_this4, id)]), tagsToRender.length > 0 && clearButton &&
1485
+ // @ts-ignore function children
1486
+ h(ClearButton_1.ClearButton, {
1487
+ onClearclick: this.clearButtonClick,
1488
+ on: this.v3 ? undefined : {
1489
+ "clearclick": this.clearButtonClick
1490
+ }
1491
+ }), h("span", {
1492
+ "class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
1493
+ }), !renderAdaptive && renderListContainer.call(this)]);
1494
+ };
1493
1495
  // The following one combines the default rendering of the MultiSelect and the Adaptive rendering.
1494
1496
  // This is needed because of Vue 2 specifics
1495
- var multiselect = [component, renderAdaptive && renderAdaptiveListContainer.call(this)];
1496
- var multiselectToRender = isV3 ? multiselect : this.$props.adaptive ? h("span", [multiselect]) : component;
1497
+ var multiselect = [isV3 ? h(multiSelectDefault.call(this), __assign({}, this.$attrs)) : multiSelectDefault.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
1498
+ var multiselectToRender = isV3 ? multiselect : renderAdaptive ? h("div", [multiselect]) : multiSelectDefault.call(this);
1497
1499
  return label ? h("span", {
1498
1500
  "class": this.spanClassNames,
1499
1501
  dir: this.$props.dir,
@@ -170,7 +170,7 @@ var DropDownBase = /** @class */function () {
170
170
  }
171
171
  };
172
172
  DropDownBase.prototype.calculatePopupWidth = function () {
173
- if (this.wrapper) {
173
+ if (this.wrapper && !this.popupWidth) {
174
174
  this.popupWidth = this.wrapper.offsetWidth + 'px';
175
175
  }
176
176
  };
@@ -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: 1696942204,
11
+ publishDate: 1698143092,
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.0.0",
4
+ "version": "4.1.0-dev.202310241034",
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.0.0",
58
- "@progress/kendo-vue-common": "4.0.0",
59
- "@progress/kendo-vue-layout": "4.0.0",
60
- "@progress/kendo-vue-popup": "4.0.0"
57
+ "@progress/kendo-vue-buttons": "4.1.0-dev.202310241034",
58
+ "@progress/kendo-vue-common": "4.1.0-dev.202310241034",
59
+ "@progress/kendo-vue-layout": "4.1.0-dev.202310241034",
60
+ "@progress/kendo-vue-popup": "4.1.0-dev.202310241034"
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.0.0",
67
- "@progress/kendo-vue-inputs": "4.0.0",
68
- "@progress/kendo-vue-intl": "4.0.0",
69
- "@progress/kendo-vue-labels": "4.0.0",
70
- "@progress/kendo-vue-layout": "4.0.0",
71
- "@progress/kendo-vue-treeview": "4.0.0"
66
+ "@progress/kendo-vue-data-tools": "4.1.0-dev.202310241034",
67
+ "@progress/kendo-vue-inputs": "4.1.0-dev.202310241034",
68
+ "@progress/kendo-vue-intl": "4.1.0-dev.202310241034",
69
+ "@progress/kendo-vue-labels": "4.1.0-dev.202310241034",
70
+ "@progress/kendo-vue-layout": "4.1.0-dev.202310241034",
71
+ "@progress/kendo-vue-treeview": "4.1.0-dev.202310241034"
72
72
  },
73
73
  "author": "Progress",
74
74
  "license": "SEE LICENSE IN LICENSE.md",