@progress/kendo-vue-dropdowns 3.14.2 → 3.15.0-dev.202309281301
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/ComboBox/ComboBox.js +244 -42
- package/dist/es/ComboBox/ComboBoxProps.d.ts +8 -0
- package/dist/es/DropDownList/DropDownList.d.ts +3 -0
- package/dist/es/DropDownList/DropDownList.js +197 -43
- package/dist/es/DropDownList/DropDownListProps.d.ts +8 -0
- package/dist/es/DropDownTree/DropDownTree.js +257 -105
- package/dist/es/DropDownTree/DropDownTreeProps.d.ts +8 -0
- package/dist/es/MultiSelect/MultiSelect.js +340 -65
- package/dist/es/MultiSelect/MultiSelectProps.d.ts +8 -0
- package/dist/es/MultiSelectTree/MultiSelectTree.js +345 -127
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +8 -0
- package/dist/es/common/DropDownBase.d.ts +7 -0
- package/dist/es/common/DropDownBase.js +13 -1
- package/dist/es/common/ListFilter.d.ts +1 -0
- package/dist/es/common/ListFilter.js +31 -25
- package/dist/es/common/constants.d.ts +4 -0
- package/dist/es/common/constants.js +4 -0
- package/dist/es/messages/main.d.ts +10 -0
- package/dist/es/messages/main.js +10 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/ComboBox/ComboBox.js +244 -42
- package/dist/esm/ComboBox/ComboBoxProps.d.ts +8 -0
- package/dist/esm/DropDownList/DropDownList.d.ts +3 -0
- package/dist/esm/DropDownList/DropDownList.js +197 -43
- package/dist/esm/DropDownList/DropDownListProps.d.ts +8 -0
- package/dist/esm/DropDownTree/DropDownTree.js +257 -105
- package/dist/esm/DropDownTree/DropDownTreeProps.d.ts +8 -0
- package/dist/esm/MultiSelect/MultiSelect.js +340 -65
- package/dist/esm/MultiSelect/MultiSelectProps.d.ts +8 -0
- package/dist/esm/MultiSelectTree/MultiSelectTree.js +345 -127
- package/dist/esm/MultiSelectTree/MultiSelectTreeProps.d.ts +8 -0
- package/dist/esm/common/DropDownBase.d.ts +7 -0
- package/dist/esm/common/DropDownBase.js +13 -1
- package/dist/esm/common/ListFilter.d.ts +1 -0
- package/dist/esm/common/ListFilter.js +31 -25
- package/dist/esm/common/constants.d.ts +4 -0
- package/dist/esm/common/constants.js +4 -0
- package/dist/esm/messages/main.d.ts +10 -0
- package/dist/esm/messages/main.js +10 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/ComboBox/ComboBox.js +242 -40
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +8 -0
- package/dist/npm/DropDownList/DropDownList.d.ts +3 -0
- package/dist/npm/DropDownList/DropDownList.js +195 -41
- package/dist/npm/DropDownList/DropDownListProps.d.ts +8 -0
- package/dist/npm/DropDownTree/DropDownTree.js +254 -102
- package/dist/npm/DropDownTree/DropDownTreeProps.d.ts +8 -0
- package/dist/npm/MultiSelect/MultiSelect.js +338 -63
- package/dist/npm/MultiSelect/MultiSelectProps.d.ts +8 -0
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +343 -125
- package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +8 -0
- package/dist/npm/common/DropDownBase.d.ts +7 -0
- package/dist/npm/common/DropDownBase.js +12 -0
- package/dist/npm/common/ListFilter.d.ts +1 -0
- package/dist/npm/common/ListFilter.js +31 -25
- package/dist/npm/common/constants.d.ts +4 -0
- package/dist/npm/common/constants.js +10 -0
- package/dist/npm/messages/main.d.ts +10 -0
- package/dist/npm/messages/main.js +11 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +12 -9
|
@@ -2,6 +2,11 @@ import VirtualScroll from './VirtualScroll';
|
|
|
2
2
|
import { Navigation } from './Navigation';
|
|
3
3
|
import { ListItemProps } from './ListItem';
|
|
4
4
|
import { InternalState, DropDownStateBase, Page, DropDownsPopupSettings, VirtualizationSettings } from './settings';
|
|
5
|
+
import { DropDownListAll } from '../DropDownList/DropDownList';
|
|
6
|
+
import { ComboBoxAll } from '../ComboBox/ComboBox';
|
|
7
|
+
import { DropDownTreeAll } from '../DropDownTree/DropDownTree';
|
|
8
|
+
import { MultiSelectAll } from '../MultiSelect/MultiSelect';
|
|
9
|
+
import { CreateElement } from 'vue';
|
|
5
10
|
/**
|
|
6
11
|
* @hidden
|
|
7
12
|
*/
|
|
@@ -84,4 +89,6 @@ export default class DropDownBase {
|
|
|
84
89
|
scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
|
|
85
90
|
getGroupedDataModernMode: (data: any[], groupField: string) => any[];
|
|
86
91
|
resetGroupStickyHeader: (groupName: string, that: any) => void;
|
|
92
|
+
getTemplateDef(this: DropDownListAll | ComboBoxAll | DropDownTreeAll | MultiSelectAll, template: string, h: CreateElement): any;
|
|
93
|
+
getListItemHeight(listItem: HTMLElement): string | 0;
|
|
87
94
|
}
|
|
@@ -13,7 +13,7 @@ var __assign = this && this.__assign || function () {
|
|
|
13
13
|
import VirtualScroll from './VirtualScroll';
|
|
14
14
|
import { Navigation } from './Navigation';
|
|
15
15
|
import { scrollToItem, areSame } from './utils';
|
|
16
|
-
import { guid, validatePackage } from '@progress/kendo-vue-common';
|
|
16
|
+
import { guid, validatePackage, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
17
17
|
import { packageMetadata } from '../package-metadata';
|
|
18
18
|
/**
|
|
19
19
|
* @hidden
|
|
@@ -269,6 +269,18 @@ var DropDownBase = /** @class */function () {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
+
DropDownBase.prototype.getTemplateDef = function (template, h) {
|
|
273
|
+
var templateRender = templateRendering.call(this, template, getListeners.call(this));
|
|
274
|
+
return getTemplate.call(this, {
|
|
275
|
+
h: h,
|
|
276
|
+
template: templateRender
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
DropDownBase.prototype.getListItemHeight = function (listItem) {
|
|
280
|
+
var compStyles = listItem && window.getComputedStyle(listItem);
|
|
281
|
+
return compStyles ? compStyles.height.slice(0, compStyles.height.length - 2) : 0; // Get the height of the list item as Number
|
|
282
|
+
};
|
|
283
|
+
|
|
272
284
|
DropDownBase.defaultProps = {
|
|
273
285
|
popupSettings: {
|
|
274
286
|
animate: true,
|
|
@@ -13,6 +13,7 @@ export interface ListFilterProps {
|
|
|
13
13
|
size?: null | 'small' | 'medium' | 'large' | string;
|
|
14
14
|
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
15
15
|
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
16
|
+
adaptiveMode?: boolean;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* @hidden
|
|
@@ -55,6 +55,10 @@ var ListFilterVue2 = {
|
|
|
55
55
|
validator: function validator(value) {
|
|
56
56
|
return ['small', 'medium', 'large'].includes(value);
|
|
57
57
|
}
|
|
58
|
+
},
|
|
59
|
+
adaptiveMode: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
58
62
|
}
|
|
59
63
|
},
|
|
60
64
|
computed: {
|
|
@@ -111,36 +115,38 @@ var ListFilterVue2 = {
|
|
|
111
115
|
var _a = this.$props,
|
|
112
116
|
size = _a.size,
|
|
113
117
|
rounded = _a.rounded,
|
|
114
|
-
fillMode = _a.fillMode
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
h(TextBox, {
|
|
120
|
-
ref: setRef(this, 'input'),
|
|
121
|
-
value: this.$props.value,
|
|
122
|
-
attrs: this.v3 ? undefined : {
|
|
118
|
+
fillMode = _a.fillMode,
|
|
119
|
+
adaptiveMode = _a.adaptiveMode;
|
|
120
|
+
var listFilterComponent = function listFilterComponent() {
|
|
121
|
+
return h(TextBox, {
|
|
122
|
+
ref: setRef(this, 'input'),
|
|
123
123
|
value: this.$props.value,
|
|
124
|
+
attrs: this.v3 ? undefined : {
|
|
125
|
+
value: this.$props.value,
|
|
126
|
+
size: size,
|
|
127
|
+
fillMode: fillMode,
|
|
128
|
+
rounded: rounded,
|
|
129
|
+
inputPrefix: this.prefixRender
|
|
130
|
+
},
|
|
131
|
+
onInput: this.onChange,
|
|
132
|
+
on: this.v3 ? undefined : {
|
|
133
|
+
"input": this.onChange,
|
|
134
|
+
"keydown": this.onKeyDown,
|
|
135
|
+
"focus": this.handleFocus,
|
|
136
|
+
"blur": this.handleBlur
|
|
137
|
+
},
|
|
138
|
+
onKeydown: this.onKeyDown,
|
|
139
|
+
onFocus: this.handleFocus,
|
|
140
|
+
onBlur: this.handleBlur,
|
|
124
141
|
size: size,
|
|
125
142
|
fillMode: fillMode,
|
|
126
143
|
rounded: rounded,
|
|
127
144
|
inputPrefix: this.prefixRender
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"focus": this.handleFocus,
|
|
134
|
-
"blur": this.handleBlur
|
|
135
|
-
},
|
|
136
|
-
onKeydown: this.onKeyDown,
|
|
137
|
-
onFocus: this.handleFocus,
|
|
138
|
-
onBlur: this.handleBlur,
|
|
139
|
-
size: size,
|
|
140
|
-
fillMode: fillMode,
|
|
141
|
-
rounded: rounded,
|
|
142
|
-
inputPrefix: this.prefixRender
|
|
143
|
-
})]);
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
return !adaptiveMode ? h("div", {
|
|
148
|
+
"class": "k-list-filter"
|
|
149
|
+
}, [listFilterComponent.call(this)]) : listFilterComponent.call(this);
|
|
144
150
|
}
|
|
145
151
|
};
|
|
146
152
|
/**
|
|
@@ -14,6 +14,14 @@ export declare const clear = "dropdowns.clear";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export declare const selectButton = "dropdowns.select";
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const adaptiveModeFooterApply = "dropdowns.adaptiveModeFooterApply";
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const adaptiveModeFooterCancel = "dropdowns.adaptiveModeFooterCancel";
|
|
17
25
|
/**
|
|
18
26
|
* @hidden
|
|
19
27
|
*/
|
|
@@ -22,4 +30,6 @@ export declare const messages: {
|
|
|
22
30
|
"dropdowns.expandbutton": string;
|
|
23
31
|
"dropdowns.nodata": string;
|
|
24
32
|
"dropdowns.select": string;
|
|
33
|
+
"dropdowns.adaptiveModeFooterApply": string;
|
|
34
|
+
"dropdowns.adaptiveModeFooterCancel": string;
|
|
25
35
|
};
|
package/dist/es/messages/main.js
CHANGED
|
@@ -15,6 +15,14 @@ export var clear = 'dropdowns.clear';
|
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
17
17
|
export var selectButton = 'dropdowns.select';
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export var adaptiveModeFooterApply = 'dropdowns.adaptiveModeFooterApply';
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export var adaptiveModeFooterCancel = 'dropdowns.adaptiveModeFooterCancel';
|
|
18
26
|
/**
|
|
19
27
|
* @hidden
|
|
20
28
|
*/
|
|
@@ -23,4 +31,6 @@ export var messages = (_a = {},
|
|
|
23
31
|
_a[expandButton] = 'expand button',
|
|
24
32
|
_a[nodata] = 'NO DATA FOUND.',
|
|
25
33
|
_a[selectButton] = 'Select',
|
|
34
|
+
_a[adaptiveModeFooterApply] = 'Apply',
|
|
35
|
+
_a[adaptiveModeFooterCancel] = 'Cancel',
|
|
26
36
|
_a);
|
|
@@ -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:
|
|
8
|
+
publishDate: 1695905442,
|
|
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
|
};
|