@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.
Files changed (62) hide show
  1. package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
  2. package/dist/es/ComboBox/ComboBox.js +244 -42
  3. package/dist/es/ComboBox/ComboBoxProps.d.ts +8 -0
  4. package/dist/es/DropDownList/DropDownList.d.ts +3 -0
  5. package/dist/es/DropDownList/DropDownList.js +197 -43
  6. package/dist/es/DropDownList/DropDownListProps.d.ts +8 -0
  7. package/dist/es/DropDownTree/DropDownTree.js +257 -105
  8. package/dist/es/DropDownTree/DropDownTreeProps.d.ts +8 -0
  9. package/dist/es/MultiSelect/MultiSelect.js +340 -65
  10. package/dist/es/MultiSelect/MultiSelectProps.d.ts +8 -0
  11. package/dist/es/MultiSelectTree/MultiSelectTree.js +345 -127
  12. package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +8 -0
  13. package/dist/es/common/DropDownBase.d.ts +7 -0
  14. package/dist/es/common/DropDownBase.js +13 -1
  15. package/dist/es/common/ListFilter.d.ts +1 -0
  16. package/dist/es/common/ListFilter.js +31 -25
  17. package/dist/es/common/constants.d.ts +4 -0
  18. package/dist/es/common/constants.js +4 -0
  19. package/dist/es/messages/main.d.ts +10 -0
  20. package/dist/es/messages/main.js +10 -0
  21. package/dist/es/package-metadata.js +1 -1
  22. package/dist/esm/ComboBox/ComboBox.js +244 -42
  23. package/dist/esm/ComboBox/ComboBoxProps.d.ts +8 -0
  24. package/dist/esm/DropDownList/DropDownList.d.ts +3 -0
  25. package/dist/esm/DropDownList/DropDownList.js +197 -43
  26. package/dist/esm/DropDownList/DropDownListProps.d.ts +8 -0
  27. package/dist/esm/DropDownTree/DropDownTree.js +257 -105
  28. package/dist/esm/DropDownTree/DropDownTreeProps.d.ts +8 -0
  29. package/dist/esm/MultiSelect/MultiSelect.js +340 -65
  30. package/dist/esm/MultiSelect/MultiSelectProps.d.ts +8 -0
  31. package/dist/esm/MultiSelectTree/MultiSelectTree.js +345 -127
  32. package/dist/esm/MultiSelectTree/MultiSelectTreeProps.d.ts +8 -0
  33. package/dist/esm/common/DropDownBase.d.ts +7 -0
  34. package/dist/esm/common/DropDownBase.js +13 -1
  35. package/dist/esm/common/ListFilter.d.ts +1 -0
  36. package/dist/esm/common/ListFilter.js +31 -25
  37. package/dist/esm/common/constants.d.ts +4 -0
  38. package/dist/esm/common/constants.js +4 -0
  39. package/dist/esm/messages/main.d.ts +10 -0
  40. package/dist/esm/messages/main.js +10 -0
  41. package/dist/esm/package-metadata.js +1 -1
  42. package/dist/npm/ComboBox/ComboBox.js +242 -40
  43. package/dist/npm/ComboBox/ComboBoxProps.d.ts +8 -0
  44. package/dist/npm/DropDownList/DropDownList.d.ts +3 -0
  45. package/dist/npm/DropDownList/DropDownList.js +195 -41
  46. package/dist/npm/DropDownList/DropDownListProps.d.ts +8 -0
  47. package/dist/npm/DropDownTree/DropDownTree.js +254 -102
  48. package/dist/npm/DropDownTree/DropDownTreeProps.d.ts +8 -0
  49. package/dist/npm/MultiSelect/MultiSelect.js +338 -63
  50. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +8 -0
  51. package/dist/npm/MultiSelectTree/MultiSelectTree.js +343 -125
  52. package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +8 -0
  53. package/dist/npm/common/DropDownBase.d.ts +7 -0
  54. package/dist/npm/common/DropDownBase.js +12 -0
  55. package/dist/npm/common/ListFilter.d.ts +1 -0
  56. package/dist/npm/common/ListFilter.js +31 -25
  57. package/dist/npm/common/constants.d.ts +4 -0
  58. package/dist/npm/common/constants.js +10 -0
  59. package/dist/npm/messages/main.d.ts +10 -0
  60. package/dist/npm/messages/main.js +11 -1
  61. package/dist/npm/package-metadata.js +1 -1
  62. 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
- return h("div", {
116
- "class": "k-list-filter"
117
- }, [
118
- // @ts-ignore
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
- onInput: this.onChange,
130
- on: this.v3 ? undefined : {
131
- "input": this.onChange,
132
- "keydown": this.onKeyDown,
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
  /**
@@ -0,0 +1,4 @@
1
+ /** @hidden */
2
+ export declare const MOBILE_SMALL_DEVICE: number;
3
+ /** @hidden */
4
+ export declare const MOBILE_MEDIUM_DEVICE: number;
@@ -0,0 +1,4 @@
1
+ /** @hidden */
2
+ export var MOBILE_SMALL_DEVICE = 500;
3
+ /** @hidden */
4
+ export var MOBILE_MEDIUM_DEVICE = 768;
@@ -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
  };
@@ -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: 1695651659,
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
  };