@vaadin/multi-select-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 +14 -14
- package/src/styles/vaadin-multi-select-combo-box-base-styles.js +44 -45
- package/src/styles/vaadin-multi-select-combo-box-chip-base-styles.js +101 -103
- package/src/styles/vaadin-multi-select-combo-box-core-styles.js +4 -0
- package/src/styles/vaadin-multi-select-combo-box-overlay-base-styles.js +5 -7
- package/src/vaadin-multi-select-combo-box-chip.js +1 -1
- package/src/vaadin-multi-select-combo-box-item.js +1 -1
- package/src/vaadin-multi-select-combo-box-mixin.d.ts +9 -80
- package/src/vaadin-multi-select-combo-box-mixin.js +380 -266
- package/src/vaadin-multi-select-combo-box-overlay.js +1 -2
- package/src/vaadin-multi-select-combo-box.d.ts +13 -6
- package/src/vaadin-multi-select-combo-box.js +35 -88
- package/web-types.json +207 -230
- package/web-types.lit.json +78 -78
- package/src/vaadin-multi-select-combo-box-internal-mixin.js +0 -446
- package/src/vaadin-multi-select-combo-box-internal.js +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/multi-select-combo-box",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
42
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
43
|
-
"@vaadin/combo-box": "25.0.0-
|
|
44
|
-
"@vaadin/component-base": "25.0.0-
|
|
45
|
-
"@vaadin/field-base": "25.0.0-
|
|
46
|
-
"@vaadin/input-container": "25.0.0-
|
|
47
|
-
"@vaadin/item": "25.0.0-
|
|
48
|
-
"@vaadin/lit-renderer": "25.0.0-
|
|
49
|
-
"@vaadin/overlay": "25.0.0-
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
51
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
42
|
+
"@vaadin/a11y-base": "25.0.0-alpha9",
|
|
43
|
+
"@vaadin/combo-box": "25.0.0-alpha9",
|
|
44
|
+
"@vaadin/component-base": "25.0.0-alpha9",
|
|
45
|
+
"@vaadin/field-base": "25.0.0-alpha9",
|
|
46
|
+
"@vaadin/input-container": "25.0.0-alpha9",
|
|
47
|
+
"@vaadin/item": "25.0.0-alpha9",
|
|
48
|
+
"@vaadin/lit-renderer": "25.0.0-alpha9",
|
|
49
|
+
"@vaadin/overlay": "25.0.0-alpha9",
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha9",
|
|
51
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
|
|
52
52
|
"lit": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
56
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
55
|
+
"@vaadin/chai-plugins": "25.0.0-alpha9",
|
|
56
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha9",
|
|
57
57
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
58
58
|
"sinon": "^18.0.0"
|
|
59
59
|
},
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"web-types.json",
|
|
62
62
|
"web-types.lit.json"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "bbe4720721e0955ffc87a79b412bee38b1f0eb1e"
|
|
65
65
|
}
|
|
@@ -3,57 +3,56 @@
|
|
|
3
3
|
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import '@vaadin/component-base/src/style-props.js';
|
|
6
7
|
import { css } from 'lit';
|
|
7
8
|
import { comboBoxStyles } from '@vaadin/combo-box/src/styles/vaadin-combo-box-base-styles.js';
|
|
8
9
|
|
|
9
10
|
export const multiSelectComboBoxStyles = [
|
|
10
11
|
comboBoxStyles,
|
|
11
12
|
css`
|
|
12
|
-
|
|
13
|
-
:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
:
|
|
55
|
-
width: auto;
|
|
56
|
-
}
|
|
13
|
+
:host {
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
--_input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4rem);
|
|
16
|
+
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, var(--vaadin-chip-min-width, 48px));
|
|
17
|
+
--_wrapper-gap: var(--vaadin-multi-select-combo-box-chips-gap, 2px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#chips {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--vaadin-multi-select-combo-box-chips-gap, 2px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
::slotted(input) {
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
flex: 1 0 var(--_input-min-width);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
::slotted([slot='chip']),
|
|
32
|
+
::slotted([slot='overflow']) {
|
|
33
|
+
flex: 0 1 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
::slotted([slot='chip']) {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host(:is([readonly], [disabled])) ::slotted(input) {
|
|
41
|
+
flex-grow: 0;
|
|
42
|
+
flex-basis: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([readonly]:not([disabled])) [part$='button'] {
|
|
47
|
+
cursor: var(--vaadin-clickable-cursor);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([auto-expand-vertically]) #chips {
|
|
51
|
+
display: contents;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([auto-expand-horizontally]) [class$='container'] {
|
|
55
|
+
width: auto;
|
|
57
56
|
}
|
|
58
57
|
`,
|
|
59
58
|
];
|
|
@@ -7,108 +7,106 @@ import '@vaadin/component-base/src/style-props.js';
|
|
|
7
7
|
import { css } from 'lit';
|
|
8
8
|
|
|
9
9
|
export const multiSelectComboBoxChipStyles = css`
|
|
10
|
-
|
|
11
|
-
:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
:
|
|
111
|
-
display: none;
|
|
112
|
-
}
|
|
10
|
+
:host {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
gap: var(--vaadin-chip-gap, var(--vaadin-chip-padding, 0.3em));
|
|
17
|
+
background: var(--vaadin-chip-background, var(--vaadin-background-container));
|
|
18
|
+
color: var(--vaadin-chip-color, var(--vaadin-color));
|
|
19
|
+
font-size: var(--vaadin-chip-font-size, 0.875em);
|
|
20
|
+
font-weight: var(--vaadin-chip-font-weight, 500);
|
|
21
|
+
line-height: var(--vaadin-input-field-value-line-height, inherit);
|
|
22
|
+
padding: 0 var(--vaadin-chip-padding, 0.3em);
|
|
23
|
+
height: var(--vaadin-chip-height, calc(1lh / 0.875));
|
|
24
|
+
border-radius: var(--vaadin-chip-border-radius, var(--vaadin-radius-m));
|
|
25
|
+
border: var(--vaadin-chip-border-width, 1px) solid var(--vaadin-chip-border-color, var(--vaadin-border-color));
|
|
26
|
+
cursor: default;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(:not([slot='overflow'])) {
|
|
30
|
+
min-width: min(
|
|
31
|
+
max-content,
|
|
32
|
+
var(--vaadin-multi-select-combo-box-chip-min-width, var(--vaadin-chip-min-width, 48px))
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([focused]) {
|
|
37
|
+
outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
|
|
38
|
+
outline-offset: calc(var(--vaadin-chip-border-width, 1px) * -1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[part='label'] {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[part='remove-button'] {
|
|
47
|
+
flex: none;
|
|
48
|
+
display: block;
|
|
49
|
+
margin-inline: auto calc(var(--vaadin-chip-padding, 0.3em) * -1);
|
|
50
|
+
color: var(--vaadin-chip-remove-button-color, var(--vaadin-color-subtle));
|
|
51
|
+
cursor: var(--vaadin-clickable-cursor);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[part='remove-button']::before {
|
|
55
|
+
content: '';
|
|
56
|
+
display: block;
|
|
57
|
+
width: var(--vaadin-icon-size, 1lh);
|
|
58
|
+
height: var(--vaadin-icon-size, 1lh);
|
|
59
|
+
background: currentColor;
|
|
60
|
+
mask-image: var(--_vaadin-icon-cross);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host([disabled]) {
|
|
64
|
+
cursor: var(--vaadin-disabled-cursor);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([disabled]) [part='label'] {
|
|
68
|
+
--vaadin-chip-color: var(--vaadin-color-disabled);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([hidden]),
|
|
72
|
+
:host(:is([readonly], [disabled], [slot='overflow'])) [part='remove-button'] {
|
|
73
|
+
display: none !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([slot='overflow']) {
|
|
77
|
+
position: relative;
|
|
78
|
+
margin-inline-start: 8px;
|
|
79
|
+
min-width: 1.5em;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([slot='overflow'])::before,
|
|
83
|
+
:host([slot='overflow'])::after {
|
|
84
|
+
content: '';
|
|
85
|
+
position: absolute;
|
|
86
|
+
inset: calc(var(--vaadin-chip-border-width, 1px) * -1);
|
|
87
|
+
border-inline-start: 2px solid var(--vaadin-chip-border-color, var(--vaadin-border-color));
|
|
88
|
+
border-radius: inherit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host([slot='overflow'])::before {
|
|
92
|
+
left: calc(-4px - var(--vaadin-chip-border-width, 1px));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([slot='overflow'])::after {
|
|
96
|
+
left: calc(-8px - var(--vaadin-chip-border-width, 1px));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host([count='2']) {
|
|
100
|
+
margin-inline-start: 4px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:host([count='1']) {
|
|
104
|
+
margin-inline-start: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([count='2'])::after,
|
|
108
|
+
:host([count='1'])::before,
|
|
109
|
+
:host([count='1'])::after {
|
|
110
|
+
display: none;
|
|
113
111
|
}
|
|
114
112
|
`;
|
|
@@ -9,13 +9,11 @@ import { comboBoxOverlayStyles } from '@vaadin/combo-box/src/styles/vaadin-combo
|
|
|
9
9
|
export const multiSelectComboBoxOverlayStyles = [
|
|
10
10
|
comboBoxOverlayStyles,
|
|
11
11
|
css`
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
width
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
);
|
|
18
|
-
}
|
|
12
|
+
#overlay {
|
|
13
|
+
width: var(
|
|
14
|
+
--vaadin-multi-select-combo-box-overlay-width,
|
|
15
|
+
var(--_vaadin-multi-select-combo-box-overlay-default-width, auto)
|
|
16
|
+
);
|
|
19
17
|
}
|
|
20
18
|
`,
|
|
21
19
|
];
|
|
@@ -28,7 +28,7 @@ import { multiSelectComboBoxChipStyles } from './styles/vaadin-multi-select-comb
|
|
|
28
28
|
* @extends HTMLElement
|
|
29
29
|
* @private
|
|
30
30
|
*/
|
|
31
|
-
class MultiSelectComboBoxChip extends
|
|
31
|
+
class MultiSelectComboBoxChip extends ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))) {
|
|
32
32
|
static get is() {
|
|
33
33
|
return 'vaadin-multi-select-combo-box-chip';
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
40
40
|
* @private
|
|
41
41
|
*/
|
|
42
42
|
export class MultiSelectComboBoxItem extends ComboBoxItemMixin(
|
|
43
|
-
|
|
43
|
+
ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement)))),
|
|
44
44
|
) {
|
|
45
45
|
static get is() {
|
|
46
46
|
return 'vaadin-multi-select-combo-box-item';
|
|
@@ -8,8 +8,12 @@ import type { DelegateFocusMixinClass } from '@vaadin/a11y-base/src/delegate-foc
|
|
|
8
8
|
import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
|
|
9
9
|
import type { FocusMixinClass } from '@vaadin/a11y-base/src/focus-mixin.js';
|
|
10
10
|
import type { KeyboardMixinClass } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
11
|
-
import type {
|
|
11
|
+
import type { ComboBoxItemModel } from '@vaadin/combo-box/src/vaadin-combo-box.js';
|
|
12
|
+
import type { ComboBoxBaseMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-base-mixin.js';
|
|
13
|
+
import type { ComboBoxDataProviderMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js';
|
|
14
|
+
import type { ComboBoxItemsMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-items-mixin.js';
|
|
12
15
|
import type { DelegateStateMixinClass } from '@vaadin/component-base/src/delegate-state-mixin.js';
|
|
16
|
+
import type { OverlayClassMixinClass } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
13
17
|
import type { ResizeMixinClass } from '@vaadin/component-base/src/resize-mixin.js';
|
|
14
18
|
import type { SlotStylesMixinClass } from '@vaadin/component-base/src/slot-styles-mixin.js';
|
|
15
19
|
import type { ClearButtonMixinClass } from '@vaadin/field-base/src/clear-button-mixin.js';
|
|
@@ -38,6 +42,9 @@ export interface MultiSelectComboBoxI18n {
|
|
|
38
42
|
export declare function MultiSelectComboBoxMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
39
43
|
base: T,
|
|
40
44
|
): Constructor<ClearButtonMixinClass> &
|
|
45
|
+
Constructor<ComboBoxBaseMixinClass> &
|
|
46
|
+
Constructor<ComboBoxDataProviderMixinClass<TItem>> &
|
|
47
|
+
Constructor<ComboBoxItemsMixinClass<TItem>> &
|
|
41
48
|
Constructor<DelegateFocusMixinClass> &
|
|
42
49
|
Constructor<DelegateStateMixinClass> &
|
|
43
50
|
Constructor<DisabledMixinClass> &
|
|
@@ -49,6 +56,7 @@ export declare function MultiSelectComboBoxMixin<TItem, T extends Constructor<HT
|
|
|
49
56
|
Constructor<KeyboardMixinClass> &
|
|
50
57
|
Constructor<LabelMixinClass> &
|
|
51
58
|
Constructor<MultiSelectComboBoxMixinClass<TItem>> &
|
|
59
|
+
Constructor<OverlayClassMixinClass> &
|
|
52
60
|
Constructor<ResizeMixinClass> &
|
|
53
61
|
Constructor<SlotStylesMixinClass> &
|
|
54
62
|
Constructor<ValidateMixinClass> &
|
|
@@ -76,44 +84,6 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
76
84
|
*/
|
|
77
85
|
allowCustomValue: boolean;
|
|
78
86
|
|
|
79
|
-
/**
|
|
80
|
-
* Set true to prevent the overlay from opening automatically.
|
|
81
|
-
* @attr {boolean} auto-open-disabled
|
|
82
|
-
*/
|
|
83
|
-
autoOpenDisabled: boolean;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Function that provides items lazily. Receives two arguments:
|
|
87
|
-
*
|
|
88
|
-
* - `params` - Object with the following properties:
|
|
89
|
-
* - `params.page` Requested page index
|
|
90
|
-
* - `params.pageSize` Current page size
|
|
91
|
-
* - `params.filter` Currently applied filter
|
|
92
|
-
*
|
|
93
|
-
* - `callback(items, size)` - Callback function with arguments:
|
|
94
|
-
* - `items` Current page of items
|
|
95
|
-
* - `size` Total number of items.
|
|
96
|
-
*/
|
|
97
|
-
dataProvider: ComboBoxDataProvider<TItem> | null | undefined;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* A subset of items, filtered based on the user input. Filtered items
|
|
101
|
-
* can be assigned directly to omit the internal filtering functionality.
|
|
102
|
-
* The items can be of either `String` or `Object` type.
|
|
103
|
-
*/
|
|
104
|
-
filteredItems: TItem[] | undefined;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Filtering string the user has typed into the input field.
|
|
108
|
-
*/
|
|
109
|
-
filter: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* A full set of items to filter the visible options from.
|
|
113
|
-
* The items can be of either `String` or `Object` type.
|
|
114
|
-
*/
|
|
115
|
-
items: TItem[] | undefined;
|
|
116
|
-
|
|
117
87
|
/**
|
|
118
88
|
* A function used to generate CSS class names for dropdown
|
|
119
89
|
* items and selected chips based on the item. The return
|
|
@@ -122,25 +92,12 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
122
92
|
*/
|
|
123
93
|
itemClassNameGenerator: (item: TItem) => string;
|
|
124
94
|
|
|
125
|
-
/**
|
|
126
|
-
* The item property used for a visual representation of the item.
|
|
127
|
-
* @attr {string} item-label-path
|
|
128
|
-
*/
|
|
129
|
-
itemLabelPath: string;
|
|
130
|
-
|
|
131
95
|
/**
|
|
132
96
|
* Path for the id of the item, used to detect whether the item is selected.
|
|
133
97
|
* @attr {string} item-id-path
|
|
134
98
|
*/
|
|
135
99
|
itemIdPath: string;
|
|
136
100
|
|
|
137
|
-
/**
|
|
138
|
-
* Path for the value of the item. If `items` is an array of objects,
|
|
139
|
-
* this property is used as a string value for the selected item.
|
|
140
|
-
* @attr {string} item-value-path
|
|
141
|
-
*/
|
|
142
|
-
itemValuePath: string;
|
|
143
|
-
|
|
144
101
|
/**
|
|
145
102
|
* The object used to localize this component.
|
|
146
103
|
* To change the default localization, replace the entire
|
|
@@ -176,24 +133,6 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
176
133
|
*/
|
|
177
134
|
loading: boolean;
|
|
178
135
|
|
|
179
|
-
/**
|
|
180
|
-
* A space-delimited list of CSS class names to set on the overlay element.
|
|
181
|
-
*
|
|
182
|
-
* @attr {string} overlay-class
|
|
183
|
-
*/
|
|
184
|
-
overlayClass: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* True if the dropdown is open, false otherwise.
|
|
188
|
-
*/
|
|
189
|
-
opened: boolean;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Number of items fetched at a time from the data provider.
|
|
193
|
-
* @attr {number} page-size
|
|
194
|
-
*/
|
|
195
|
-
pageSize: number;
|
|
196
|
-
|
|
197
136
|
/**
|
|
198
137
|
* A hint to the user of what can be entered in the control.
|
|
199
138
|
* The placeholder will be only displayed in the case when
|
|
@@ -226,16 +165,6 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
226
165
|
*/
|
|
227
166
|
selectedItemsOnTop: boolean;
|
|
228
167
|
|
|
229
|
-
/**
|
|
230
|
-
* Total number of items.
|
|
231
|
-
*/
|
|
232
|
-
size: number | undefined;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Clears the cached pages and reloads data from data provider when needed.
|
|
236
|
-
*/
|
|
237
|
-
clearCache(): void;
|
|
238
|
-
|
|
239
168
|
/**
|
|
240
169
|
* Clears the selected items.
|
|
241
170
|
*/
|