@vaadin/combo-box 25.0.0-alpha7 → 25.0.0-alpha9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/combo-box",
3
- "version": "25.0.0-alpha7",
3
+ "version": "25.0.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,20 +38,20 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@open-wc/dedupe-mixin": "^1.3.0",
41
- "@vaadin/a11y-base": "25.0.0-alpha7",
42
- "@vaadin/component-base": "25.0.0-alpha7",
43
- "@vaadin/field-base": "25.0.0-alpha7",
44
- "@vaadin/input-container": "25.0.0-alpha7",
45
- "@vaadin/item": "25.0.0-alpha7",
46
- "@vaadin/lit-renderer": "25.0.0-alpha7",
47
- "@vaadin/overlay": "25.0.0-alpha7",
48
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha7",
49
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha7",
41
+ "@vaadin/a11y-base": "25.0.0-alpha9",
42
+ "@vaadin/component-base": "25.0.0-alpha9",
43
+ "@vaadin/field-base": "25.0.0-alpha9",
44
+ "@vaadin/input-container": "25.0.0-alpha9",
45
+ "@vaadin/item": "25.0.0-alpha9",
46
+ "@vaadin/lit-renderer": "25.0.0-alpha9",
47
+ "@vaadin/overlay": "25.0.0-alpha9",
48
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha9",
49
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
50
50
  "lit": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@vaadin/chai-plugins": "25.0.0-alpha7",
54
- "@vaadin/test-runner-commands": "25.0.0-alpha7",
53
+ "@vaadin/chai-plugins": "25.0.0-alpha9",
54
+ "@vaadin/test-runner-commands": "25.0.0-alpha9",
55
55
  "@vaadin/testing-helpers": "^2.0.0",
56
56
  "sinon": "^18.0.0"
57
57
  },
@@ -59,5 +59,5 @@
59
59
  "web-types.json",
60
60
  "web-types.lit.json"
61
61
  ],
62
- "gitHead": "87f72707ce6866892f8be5782fa0da008e87dcbc"
62
+ "gitHead": "bbe4720721e0955ffc87a79b412bee38b1f0eb1e"
63
63
  }
@@ -7,13 +7,11 @@ import '@vaadin/component-base/src/style-props.js';
7
7
  import { css } from 'lit';
8
8
 
9
9
  export const comboBoxStyles = css`
10
- @layer base {
11
- :host([opened]) {
12
- pointer-events: auto;
13
- }
10
+ :host([opened]) {
11
+ pointer-events: auto;
12
+ }
14
13
 
15
- [part='toggle-button']::before {
16
- mask-image: var(--_vaadin-icon-chevron-down);
17
- }
14
+ [part='toggle-button']::before {
15
+ mask-image: var(--_vaadin-icon-chevron-down);
18
16
  }
19
17
  `;
@@ -10,39 +10,37 @@ import { loaderStyles } from '@vaadin/component-base/src/loader-styles.js';
10
10
  export const comboBoxOverlayStyles = [
11
11
  loaderStyles,
12
12
  css`
13
- @layer base {
14
- :host {
15
- --vaadin-item-checkmark-display: block;
16
- }
17
-
18
- [part='overlay'] {
19
- position: relative;
20
- width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
21
- }
13
+ :host {
14
+ --vaadin-item-checkmark-display: block;
15
+ }
22
16
 
23
- [part='content'] {
24
- display: flex;
25
- flex-direction: column;
26
- height: 100%;
27
- }
17
+ [part='overlay'] {
18
+ position: relative;
19
+ width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
20
+ }
28
21
 
29
- :host([loading]) [part='content'] {
30
- --_items-min-height: calc(var(--vaadin-icon-size, 1lh) + 4px);
31
- }
22
+ [part='content'] {
23
+ display: flex;
24
+ flex-direction: column;
25
+ height: 100%;
26
+ }
32
27
 
33
- @media (forced-colors: active) {
34
- [part='loader'] {
35
- forced-color-adjust: none;
36
- --vaadin-combo-box-spinner-color: CanvasText;
37
- }
38
- }
28
+ :host([loading]) [part='content'] {
29
+ --_items-min-height: calc(var(--vaadin-icon-size, 1lh) + 4px);
30
+ }
39
31
 
32
+ @media (forced-colors: active) {
40
33
  [part='loader'] {
41
- position: absolute;
42
- inset: calc(var(--vaadin-item-overlay-padding, 4px) + 2px);
43
- inset-block-end: auto;
44
- inset-inline-start: auto;
34
+ forced-color-adjust: none;
35
+ --vaadin-combo-box-spinner-color: CanvasText;
45
36
  }
46
37
  }
38
+
39
+ [part='loader'] {
40
+ position: absolute;
41
+ inset: calc(var(--vaadin-item-overlay-padding, 4px) + 2px);
42
+ inset-block-end: auto;
43
+ inset-inline-start: auto;
44
+ }
47
45
  `,
48
46
  ];
@@ -6,26 +6,24 @@
6
6
  import { css } from 'lit';
7
7
 
8
8
  export const comboBoxScrollerStyles = css`
9
- @layer base {
10
- :host {
11
- /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
12
- box-shadow: 0 0 0 white;
13
- display: block;
14
- min-height: 1px;
15
- overflow: auto;
16
- /* Fixes item background from getting on top of scrollbars on Safari */
17
- transform: translate3d(0, 0, 0);
18
- }
9
+ :host {
10
+ /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
11
+ box-shadow: 0 0 0 white;
12
+ display: block;
13
+ min-height: 1px;
14
+ overflow: auto;
15
+ /* Fixes item background from getting on top of scrollbars on Safari */
16
+ transform: translate3d(0, 0, 0);
17
+ }
19
18
 
20
- #selector {
21
- border: var(--vaadin-item-overlay-padding, 4px) solid transparent;
22
- position: relative;
23
- forced-color-adjust: none;
24
- min-height: var(--_items-min-height, auto);
25
- }
19
+ #selector {
20
+ border: var(--vaadin-item-overlay-padding, 4px) solid transparent;
21
+ position: relative;
22
+ forced-color-adjust: none;
23
+ min-height: var(--_items-min-height, auto);
24
+ }
26
25
 
27
- #selector > * {
28
- forced-color-adjust: auto;
29
- }
26
+ #selector > * {
27
+ forced-color-adjust: auto;
30
28
  }
31
29
  `;
@@ -184,15 +184,6 @@ export const ComboBoxBaseMixin = (superClass) =>
184
184
  this.clearElement.addEventListener('mousedown', this._boundOnClearButtonMouseDown);
185
185
  }
186
186
 
187
- const bringToFrontListener = () => {
188
- requestAnimationFrame(() => {
189
- this._overlayElement.bringToFront();
190
- });
191
- };
192
-
193
- this.addEventListener('mousedown', bringToFrontListener);
194
- this.addEventListener('touchstart', bringToFrontListener);
195
-
196
187
  this.addController(new VirtualKeyboardController(this));
197
188
  }
198
189
 
@@ -241,31 +232,33 @@ export const ComboBoxBaseMixin = (superClass) =>
241
232
 
242
233
  /**
243
234
  * Create and initialize the scroller element.
244
- * Override to provide custom host reference.
245
235
  *
246
- * @protected
236
+ * @private
247
237
  */
248
- _initScroller(host) {
238
+ _initScroller() {
249
239
  const scroller = document.createElement(`${this._tagNamePrefix}-scroller`);
250
240
 
251
- scroller.owner = host || this;
241
+ scroller.owner = this;
252
242
  scroller.getItemLabel = this._getItemLabel.bind(this);
253
243
  scroller.addEventListener('selection-changed', this._boundOverlaySelectedItemChanged);
254
244
 
255
- const overlay = this.$.overlay;
256
-
257
- overlay.renderer = (root) => {
258
- if (!root.innerHTML) {
259
- root.appendChild(scroller);
260
- }
261
- };
262
-
263
- // Ensure the scroller is rendered
264
- overlay.requestContentUpdate();
245
+ this._renderScroller(scroller);
265
246
 
266
247
  this._scroller = scroller;
267
248
  }
268
249
 
250
+ /**
251
+ * Render the scroller element to the overlay.
252
+ *
253
+ * @private
254
+ */
255
+ _renderScroller(scroller) {
256
+ scroller.setAttribute('slot', 'overlay');
257
+ // Prevent focusing scroller on input Tab
258
+ scroller.setAttribute('tabindex', '-1');
259
+ this.appendChild(scroller);
260
+ }
261
+
269
262
  /**
270
263
  * @type {boolean}
271
264
  * @protected
@@ -58,11 +58,7 @@ export const ComboBoxDataProviderMixin = (superClass) =>
58
58
  }
59
59
 
60
60
  static get observers() {
61
- return [
62
- '_dataProviderFilterChanged(filter)',
63
- '_warnDataProviderValue(dataProvider, value)',
64
- '_ensureFirstPage(opened)',
65
- ];
61
+ return ['_dataProviderFilterChanged(filter)', '_ensureFirstPage(opened)'];
66
62
  }
67
63
 
68
64
  constructor() {
@@ -283,20 +279,4 @@ export const ComboBoxDataProviderMixin = (superClass) =>
283
279
  throw new Error('Using `items` and `dataProvider` together is not supported');
284
280
  }
285
281
  }
286
-
287
- /** @private */
288
- _warnDataProviderValue(dataProvider, value) {
289
- if (dataProvider && value !== '' && (this.selectedItem === undefined || this.selectedItem === null)) {
290
- const valueIndex = this.__getItemIndexByValue(this.filteredItems, value);
291
- if (valueIndex < 0 || !this._getItemLabel(this.filteredItems[valueIndex])) {
292
- console.warn(
293
- 'Warning: unable to determine the label for the provided `value`. ' +
294
- 'Nothing to display in the text field. This usually happens when ' +
295
- 'setting an initial `value` before any items are returned from ' +
296
- 'the `dataProvider` callback. Consider setting `selectedItem` ' +
297
- 'instead of `value`',
298
- );
299
- }
300
- }
301
- }
302
282
  };
@@ -92,7 +92,7 @@ export const ComboBoxItemMixin = (superClass) =>
92
92
 
93
93
  /** @protected */
94
94
  _getHostDir() {
95
- return this._owner && this._owner.getAttribute('dir');
95
+ return this._owner && this._owner.$.overlay.getAttribute('dir');
96
96
  }
97
97
 
98
98
  /**
@@ -40,7 +40,7 @@ import { ComboBoxItemMixin } from './vaadin-combo-box-item-mixin.js';
40
40
  * @private
41
41
  */
42
42
  export class ComboBoxItem extends ComboBoxItemMixin(
43
- LumoInjectionMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))),
43
+ ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement)))),
44
44
  ) {
45
45
  static get is() {
46
46
  return 'vaadin-combo-box-item';
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2015 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { Constructor } from '@open-wc/dedupe-mixin';
7
+ import type { ComboBoxBaseMixinClass } from './vaadin-combo-box-base-mixin.js';
8
+
9
+ export declare function ComboBoxItemsMixin<TItem, T extends Constructor<HTMLElement>>(
10
+ base: T,
11
+ ): Constructor<ComboBoxBaseMixinClass> & Constructor<ComboBoxItemsMixinClass<TItem>> & T;
12
+
13
+ export declare class ComboBoxItemsMixinClass<TItem> {
14
+ /**
15
+ * A full set of items to filter the visible options from.
16
+ * The items can be of either `String` or `Object` type.
17
+ */
18
+ items: TItem[] | undefined;
19
+
20
+ /**
21
+ * A subset of items, filtered based on the user input. Filtered items
22
+ * can be assigned directly to omit the internal filtering functionality.
23
+ * The items can be of either `String` or `Object` type.
24
+ */
25
+ filteredItems: TItem[] | undefined;
26
+
27
+ /**
28
+ * Filtering string the user has typed into the input field.
29
+ */
30
+ filter: string;
31
+
32
+ /**
33
+ * Path for label of the item. If `items` is an array of objects, the
34
+ * `itemLabelPath` is used to fetch the displayed string label for each
35
+ * item.
36
+ *
37
+ * The item label is also used for matching items when processing user
38
+ * input, i.e., for filtering and selecting items.
39
+ * @attr {string} item-label-path
40
+ */
41
+ itemLabelPath: string;
42
+
43
+ /**
44
+ * Path for the value of the item. If `items` is an array of objects, the
45
+ * `itemValuePath:` is used to fetch the string value for the selected
46
+ * item.
47
+ *
48
+ * The item value is used in the `value` property of the combo box,
49
+ * to provide the form value.
50
+ * @attr {string} item-value-path
51
+ */
52
+ itemValuePath: string;
53
+ }
@@ -0,0 +1,275 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2015 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { get } from '@vaadin/component-base/src/path-utils.js';
7
+ import { ComboBoxBaseMixin } from './vaadin-combo-box-base-mixin.js';
8
+ import { ComboBoxPlaceholder } from './vaadin-combo-box-placeholder.js';
9
+
10
+ /**
11
+ * Checks if the value is supported as an item value in this control.
12
+ *
13
+ * @param {unknown} value
14
+ * @return {boolean}
15
+ */
16
+ function isValidValue(value) {
17
+ return value !== undefined && value !== null;
18
+ }
19
+
20
+ /**
21
+ * Returns the index of the first item that satisfies the provided testing function
22
+ * ignoring placeholder items.
23
+ *
24
+ * @param {Array<ComboBoxItem | string>} items
25
+ * @param {Function} callback
26
+ * @return {number}
27
+ */
28
+ function findItemIndex(items, callback) {
29
+ return items.findIndex((item) => {
30
+ if (item instanceof ComboBoxPlaceholder) {
31
+ return false;
32
+ }
33
+
34
+ return callback(item);
35
+ });
36
+ }
37
+
38
+ /**
39
+ * @polymerMixin
40
+ * @mixes ComboBoxBaseMixin
41
+ */
42
+ export const ComboBoxItemsMixin = (superClass) =>
43
+ class ComboBoxItemsMixinClass extends ComboBoxBaseMixin(superClass) {
44
+ static get properties() {
45
+ return {
46
+ /**
47
+ * A full set of items to filter the visible options from.
48
+ * The items can be of either `String` or `Object` type.
49
+ * @type {!Array<!ComboBoxItem | string> | undefined}
50
+ */
51
+ items: {
52
+ type: Array,
53
+ sync: true,
54
+ observer: '_itemsChanged',
55
+ },
56
+
57
+ /**
58
+ * A subset of items, filtered based on the user input. Filtered items
59
+ * can be assigned directly to omit the internal filtering functionality.
60
+ * The items can be of either `String` or `Object` type.
61
+ * @type {!Array<!ComboBoxItem | string> | undefined}
62
+ */
63
+ filteredItems: {
64
+ type: Array,
65
+ observer: '_filteredItemsChanged',
66
+ sync: true,
67
+ },
68
+
69
+ /**
70
+ * Filtering string the user has typed into the input field.
71
+ * @type {string}
72
+ */
73
+ filter: {
74
+ type: String,
75
+ value: '',
76
+ notify: true,
77
+ sync: true,
78
+ },
79
+
80
+ /**
81
+ * Path for label of the item. If `items` is an array of objects, the
82
+ * `itemLabelPath` is used to fetch the displayed string label for each
83
+ * item.
84
+ *
85
+ * The item label is also used for matching items when processing user
86
+ * input, i.e., for filtering and selecting items.
87
+ * @attr {string} item-label-path
88
+ * @type {string}
89
+ */
90
+ itemLabelPath: {
91
+ type: String,
92
+ value: 'label',
93
+ observer: '_itemLabelPathChanged',
94
+ sync: true,
95
+ },
96
+
97
+ /**
98
+ * Path for the value of the item. If `items` is an array of objects, the
99
+ * `itemValuePath:` is used to fetch the string value for the selected
100
+ * item.
101
+ *
102
+ * The item value is used in the `value` property of the combo box,
103
+ * to provide the form value.
104
+ * @attr {string} item-value-path
105
+ * @type {string}
106
+ */
107
+ itemValuePath: {
108
+ type: String,
109
+ value: 'value',
110
+ sync: true,
111
+ },
112
+ };
113
+ }
114
+
115
+ /**
116
+ * @param {Object} props
117
+ * @protected
118
+ */
119
+ updated(props) {
120
+ super.updated(props);
121
+
122
+ if (props.has('filter')) {
123
+ this._filterChanged(this.filter);
124
+ }
125
+ }
126
+
127
+ /**
128
+ * Override an event listener from `ComboBoxBaseMixin` to handle
129
+ * batched setting of both `opened` and `filter` properties.
130
+ * @param {!Event} event
131
+ * @protected
132
+ * @override
133
+ */
134
+ _onInput(event) {
135
+ const filter = this._inputElementValue;
136
+
137
+ // When opening dropdown on user input, both `opened` and `filter` properties are set.
138
+ // Perform a batched property update instead of relying on sync property observers.
139
+ // This is necessary to avoid an extra data-provider request for loading first page.
140
+ const props = {};
141
+
142
+ if (this.filter === filter) {
143
+ // Filter and input value might get out of sync, while keyboard navigating for example.
144
+ // Afterwards, input value might be changed to the same value as used in filtering.
145
+ // In situation like these, we need to make sure all the filter changes handlers are run.
146
+ this._filterChanged(this.filter);
147
+ } else {
148
+ props.filter = filter;
149
+ }
150
+
151
+ if (!this.opened && !this._isClearButton(event) && !this.autoOpenDisabled) {
152
+ props.opened = true;
153
+ }
154
+
155
+ this.setProperties(props);
156
+ }
157
+
158
+ /**
159
+ * Override method from `ComboBoxBaseMixin` to handle item label path.
160
+ * @protected
161
+ * @override
162
+ */
163
+ _getItemLabel(item) {
164
+ let label = item && this.itemLabelPath ? get(this.itemLabelPath, item) : undefined;
165
+ if (label === undefined || label === null) {
166
+ label = item ? item.toString() : '';
167
+ }
168
+ return label;
169
+ }
170
+
171
+ /** @protected */
172
+ _getItemValue(item) {
173
+ let value = item && this.itemValuePath ? get(this.itemValuePath, item) : undefined;
174
+ if (value === undefined) {
175
+ value = item ? item.toString() : '';
176
+ }
177
+ return value;
178
+ }
179
+
180
+ /** @private */
181
+ _itemLabelPathChanged(itemLabelPath) {
182
+ if (typeof itemLabelPath !== 'string') {
183
+ console.error('You should set itemLabelPath to a valid string');
184
+ }
185
+ }
186
+
187
+ /** @private */
188
+ _filterChanged(filter) {
189
+ // Scroll to the top of the list whenever the filter changes.
190
+ this._scrollIntoView(0);
191
+
192
+ this._focusedIndex = -1;
193
+
194
+ if (this.items) {
195
+ this.filteredItems = this._filterItems(this.items, filter);
196
+ } else {
197
+ // With certain use cases (e. g., external filtering), `items` are
198
+ // undefined. Filtering is unnecessary per se, but the filteredItems
199
+ // observer should still be invoked to update focused item.
200
+ this._filteredItemsChanged(this.filteredItems);
201
+ }
202
+ }
203
+
204
+ /** @private */
205
+ _itemsChanged(items, oldItems) {
206
+ this._ensureItemsOrDataProvider(() => {
207
+ this.items = oldItems;
208
+ });
209
+
210
+ if (items) {
211
+ this.filteredItems = items.slice(0);
212
+ } else if (oldItems) {
213
+ // Only clear filteredItems if the component had items previously but got cleared
214
+ this.filteredItems = null;
215
+ }
216
+ }
217
+
218
+ /** @private */
219
+ _filteredItemsChanged(filteredItems) {
220
+ this._setDropdownItems(filteredItems);
221
+ }
222
+
223
+ /**
224
+ * Provide items to be rendered in the dropdown.
225
+ * Override to provide actual implementation.
226
+ * @protected
227
+ */
228
+ _setDropdownItems() {
229
+ // To be implemented
230
+ }
231
+
232
+ /** @private */
233
+ _filterItems(arr, filter) {
234
+ if (!arr) {
235
+ return arr;
236
+ }
237
+
238
+ const filteredItems = arr.filter((item) => {
239
+ filter = filter ? filter.toString().toLowerCase() : '';
240
+ // Check if item contains input value.
241
+ return this._getItemLabel(item).toString().toLowerCase().indexOf(filter) > -1;
242
+ });
243
+
244
+ return filteredItems;
245
+ }
246
+
247
+ /**
248
+ * Returns the first item that matches the provided value.
249
+ * @protected
250
+ */
251
+ __getItemIndexByValue(items, value) {
252
+ if (!items || !isValidValue(value)) {
253
+ return -1;
254
+ }
255
+
256
+ return findItemIndex(items, (item) => {
257
+ return this._getItemValue(item) === value;
258
+ });
259
+ }
260
+
261
+ /**
262
+ * Returns the first item that matches the provided label.
263
+ * Labels are matched against each other case insensitively.
264
+ * @protected
265
+ */
266
+ __getItemIndexByLabel(items, label) {
267
+ if (!items || !label) {
268
+ return -1;
269
+ }
270
+
271
+ return findItemIndex(items, (item) => {
272
+ return this._getItemLabel(item).toString().toLowerCase() === label.toString().toLowerCase();
273
+ });
274
+ }
275
+ };
@@ -44,12 +44,6 @@ export declare class ComboBoxMixinClass<TItem> {
44
44
  */
45
45
  renderer: ComboBoxRenderer<TItem> | null | undefined;
46
46
 
47
- /**
48
- * A full set of items to filter the visible options from.
49
- * The items can be of either `String` or `Object` type.
50
- */
51
- items: TItem[] | undefined;
52
-
53
47
  /**
54
48
  * A function used to generate CSS class names for dropdown
55
49
  * items based on the item. The return value should be the
@@ -67,13 +61,6 @@ export declare class ComboBoxMixinClass<TItem> {
67
61
  */
68
62
  allowCustomValue: boolean;
69
63
 
70
- /**
71
- * A subset of items, filtered based on the user input. Filtered items
72
- * can be assigned directly to omit the internal filtering functionality.
73
- * The items can be of either `String` or `Object` type.
74
- */
75
- filteredItems: TItem[] | undefined;
76
-
77
64
  /**
78
65
  * The `String` value for the selected item of the combo box.
79
66
  *
@@ -89,38 +76,11 @@ export declare class ComboBoxMixinClass<TItem> {
89
76
  */
90
77
  loading: boolean;
91
78
 
92
- /**
93
- * Filtering string the user has typed into the input field.
94
- */
95
- filter: string;
96
-
97
79
  /**
98
80
  * The selected item from the `items` array.
99
81
  */
100
82
  selectedItem: TItem | null | undefined;
101
83
 
102
- /**
103
- * Path for label of the item. If `items` is an array of objects, the
104
- * `itemLabelPath` is used to fetch the displayed string label for each
105
- * item.
106
- *
107
- * The item label is also used for matching items when processing user
108
- * input, i.e., for filtering and selecting items.
109
- * @attr {string} item-label-path
110
- */
111
- itemLabelPath: string;
112
-
113
- /**
114
- * Path for the value of the item. If `items` is an array of objects, the
115
- * `itemValuePath:` is used to fetch the string value for the selected
116
- * item.
117
- *
118
- * The item value is used in the `value` property of the combo box,
119
- * to provide the form value.
120
- * @attr {string} item-value-path
121
- */
122
- itemValuePath: string;
123
-
124
84
  /**
125
85
  * Path for the id of the item. If `items` is an array of objects,
126
86
  * the `itemIdPath` is used to compare and identify the same item