@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.
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/dist/es/AutoComplete/AutoComplete.js +3 -3
- package/dist/es/ComboBox/ComboBox.js +75 -73
- package/dist/es/DropDownList/DropDownList.js +88 -86
- package/dist/es/MultiSelect/MultiSelect.js +77 -75
- package/dist/es/common/DropDownBase.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/AutoComplete/AutoComplete.js +3 -3
- package/dist/esm/ComboBox/ComboBox.js +75 -73
- package/dist/esm/DropDownList/DropDownList.js +88 -86
- package/dist/esm/MultiSelect/MultiSelect.js +77 -75
- package/dist/esm/common/DropDownBase.js +1 -1
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.js +3 -3
- package/dist/npm/ComboBox/ComboBox.js +75 -73
- package/dist/npm/DropDownList/DropDownList.js +88 -86
- package/dist/npm/MultiSelect/MultiSelect.js +77 -75
- package/dist/npm/common/DropDownBase.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +11 -11
|
@@ -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
|
|
835
|
-
dir =
|
|
836
|
-
disabled =
|
|
837
|
-
clearButton =
|
|
838
|
-
label =
|
|
839
|
-
textField =
|
|
840
|
-
className =
|
|
841
|
-
style =
|
|
842
|
-
loading =
|
|
843
|
-
icon =
|
|
844
|
-
svgIcon =
|
|
845
|
-
iconClassName =
|
|
846
|
-
virtual =
|
|
847
|
-
size =
|
|
848
|
-
fillMode =
|
|
849
|
-
rounded =
|
|
850
|
-
adaptiveTitle =
|
|
851
|
-
header =
|
|
852
|
-
footer =
|
|
853
|
-
groupStickyHeaderItemRender =
|
|
854
|
-
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 =
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
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
|
-
|
|
1236
|
-
|
|
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
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
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
|
-
|
|
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 :
|
|
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
|
|
820
|
-
style =
|
|
821
|
-
className =
|
|
822
|
-
label =
|
|
823
|
-
dir =
|
|
824
|
-
|
|
825
|
-
virtual =
|
|
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
|
-
} :
|
|
828
|
-
size =
|
|
829
|
-
rounded =
|
|
830
|
-
fillMode =
|
|
831
|
-
dataItemKey =
|
|
832
|
-
|
|
833
|
-
dataItems =
|
|
834
|
-
disabled =
|
|
835
|
-
tabIndex =
|
|
836
|
-
loading =
|
|
837
|
-
icon =
|
|
838
|
-
svgIcon =
|
|
839
|
-
iconClassName =
|
|
840
|
-
adaptiveTitle =
|
|
841
|
-
header =
|
|
842
|
-
footer =
|
|
843
|
-
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 =
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
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
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
"
|
|
1229
|
-
"
|
|
1230
|
-
|
|
1231
|
-
|
|
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
|
-
|
|
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 :
|
|
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
|
|
984
|
-
style =
|
|
985
|
-
label =
|
|
986
|
-
dir =
|
|
987
|
-
disabled =
|
|
988
|
-
tags =
|
|
989
|
-
textField =
|
|
990
|
-
dataItemKey =
|
|
991
|
-
virtual =
|
|
992
|
-
loading =
|
|
993
|
-
size =
|
|
994
|
-
fillMode =
|
|
995
|
-
rounded =
|
|
996
|
-
tagsRounded =
|
|
997
|
-
removeTagIcon =
|
|
998
|
-
adaptiveTitle =
|
|
999
|
-
header =
|
|
1000
|
-
footer =
|
|
1001
|
-
groupStickyHeaderItemRender =
|
|
1002
|
-
|
|
1003
|
-
dataItems =
|
|
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
|
|
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
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
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
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
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 = [
|
|
1496
|
-
var multiselectToRender = isV3 ? multiselect :
|
|
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:
|
|
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.
|
|
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.
|
|
58
|
-
"@progress/kendo-vue-common": "4.0.
|
|
59
|
-
"@progress/kendo-vue-layout": "4.0.
|
|
60
|
-
"@progress/kendo-vue-popup": "4.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.
|
|
67
|
-
"@progress/kendo-vue-inputs": "4.0.
|
|
68
|
-
"@progress/kendo-vue-intl": "4.0.
|
|
69
|
-
"@progress/kendo-vue-labels": "4.0.
|
|
70
|
-
"@progress/kendo-vue-layout": "4.0.
|
|
71
|
-
"@progress/kendo-vue-treeview": "4.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",
|