@aquera/nile-elements 0.1.58 → 0.1.59-beta-1.1
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/README.md +7 -0
- package/demo/index.html +150 -33
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1420 -654
- package/dist/internal/form.cjs.js +1 -1
- package/dist/internal/form.cjs.js.map +1 -1
- package/dist/internal/form.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-auto-complete/index.cjs.js +1 -1
- package/dist/nile-auto-complete/index.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -17
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.esm.js +8 -29
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +1 -1
- package/dist/nile-option/nile-option.esm.js +2 -2
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +2 -2
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.test.esm.js +2 -2
- package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
- package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
- package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-virtual-select/index.cjs.js +2 -0
- package/dist/nile-virtual-select/index.cjs.js.map +1 -0
- package/dist/nile-virtual-select/index.esm.js +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
- package/dist/nile-virtual-select/renderer.cjs.js +2 -0
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
- package/dist/nile-virtual-select/renderer.esm.js +28 -0
- package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/search-manager.esm.js +1 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
- package/dist/nile-virtual-select/types.cjs.js +2 -0
- package/dist/nile-virtual-select/types.cjs.js.map +1 -0
- package/dist/nile-virtual-select/types.esm.js +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/form.js +2 -2
- package/dist/src/internal/form.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +1 -1
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-option/nile-option.d.ts +5 -1
- package/dist/src/nile-option/nile-option.js +21 -6
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-select/nile-select.d.ts +11 -2
- package/dist/src/nile-select/nile-select.js +37 -18
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-select/virtual-scroll-helper.d.ts +9 -0
- package/dist/src/nile-select/virtual-scroll-helper.js +51 -0
- package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -0
- package/dist/src/nile-virtual-select/index.d.ts +1 -0
- package/dist/src/nile-virtual-select/index.js +2 -0
- package/dist/src/nile-virtual-select/index.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +489 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +266 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js +1226 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +7 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +631 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
- package/dist/src/nile-virtual-select/renderer.d.ts +16 -0
- package/dist/src/nile-virtual-select/renderer.js +72 -0
- package/dist/src/nile-virtual-select/renderer.js.map +1 -0
- package/dist/src/nile-virtual-select/search-manager.d.ts +12 -0
- package/dist/src/nile-virtual-select/search-manager.js +40 -0
- package/dist/src/nile-virtual-select/search-manager.js.map +1 -0
- package/dist/src/nile-virtual-select/selection-manager.d.ts +12 -0
- package/dist/src/nile-virtual-select/selection-manager.js +64 -0
- package/dist/src/nile-virtual-select/selection-manager.js.map +1 -0
- package/dist/src/nile-virtual-select/types.d.ts +50 -0
- package/dist/src/nile-virtual-select/types.js +8 -0
- package/dist/src/nile-virtual-select/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/virtualize-a4a40d96.esm.js +22 -0
- package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
- package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +3 -1
- package/src/internal/form.ts +2 -2
- package/src/nile-option/nile-option.css.ts +1 -1
- package/src/nile-option/nile-option.ts +17 -3
- package/src/nile-select/nile-select.ts +35 -9
- package/src/nile-select/virtual-scroll-helper.ts +56 -0
- package/src/nile-virtual-select/index.ts +1 -0
- package/src/nile-virtual-select/nile-virtual-select.css.ts +491 -0
- package/src/nile-virtual-select/nile-virtual-select.test.ts +774 -0
- package/src/nile-virtual-select/nile-virtual-select.ts +1314 -0
- package/src/nile-virtual-select/renderer.ts +100 -0
- package/src/nile-virtual-select/search-manager.ts +50 -0
- package/src/nile-virtual-select/selection-manager.ts +75 -0
- package/src/nile-virtual-select/types.ts +54 -0
- package/vscode-html-custom-data.json +229 -2
@@ -0,0 +1,100 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { html, type TemplateResult } from 'lit';
|
9
|
+
import { virtualize } from '@lit-labs/virtualizer/virtualize.js';
|
10
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
11
|
+
|
12
|
+
export class VirtualSelectRenderer {
|
13
|
+
static getVirtualizedContent(
|
14
|
+
data: any[],
|
15
|
+
searchEnabled: boolean,
|
16
|
+
renderItemFunction: (item: any) => string,
|
17
|
+
value: string | string[],
|
18
|
+
multiple: boolean,
|
19
|
+
getDisplayText?: (item: any) => string,
|
20
|
+
getItemValue?: (item: any) => string,
|
21
|
+
showNoResults?: boolean,
|
22
|
+
noResultsMessage?: string,
|
23
|
+
optionsLoading?: boolean
|
24
|
+
): TemplateResult {
|
25
|
+
return html`
|
26
|
+
<div class="select__options ${
|
27
|
+
searchEnabled ? 'select__options__search-enabled' : ``
|
28
|
+
}">
|
29
|
+
${showNoResults && !optionsLoading
|
30
|
+
? html`
|
31
|
+
<div class="select__no-results">
|
32
|
+
${noResultsMessage || 'No results found'}
|
33
|
+
</div>
|
34
|
+
`
|
35
|
+
: html`
|
36
|
+
<div
|
37
|
+
class="virtualized"
|
38
|
+
>
|
39
|
+
${VirtualSelectRenderer.shouldUseVirtualizer(data)
|
40
|
+
? html`
|
41
|
+
${virtualize({
|
42
|
+
items: data,
|
43
|
+
renderItem: (item: any): TemplateResult =>
|
44
|
+
VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue),
|
45
|
+
scroller: true,
|
46
|
+
})}
|
47
|
+
`
|
48
|
+
: html`
|
49
|
+
${data.map((item: any) =>
|
50
|
+
VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue)
|
51
|
+
)}
|
52
|
+
`}
|
53
|
+
</div>
|
54
|
+
`}
|
55
|
+
</div>`;
|
56
|
+
}
|
57
|
+
|
58
|
+
static getItemRenderFunction(
|
59
|
+
item: any,
|
60
|
+
renderItemFunction: (item: any) => string,
|
61
|
+
value: string | string[],
|
62
|
+
multiple: boolean,
|
63
|
+
getDisplayText?: (item: any) => string,
|
64
|
+
getItemValue?: (item: any) => string
|
65
|
+
): TemplateResult {
|
66
|
+
const displayTextFn = getDisplayText || renderItemFunction;
|
67
|
+
const valueFn = getItemValue || ((item: any) => item?.value || item);
|
68
|
+
|
69
|
+
const optionValue = valueFn(item);
|
70
|
+
const displayText = displayTextFn(item);
|
71
|
+
const isDisabled = item.disabled || false;
|
72
|
+
|
73
|
+
let isSelected = false;
|
74
|
+
if (multiple) {
|
75
|
+
isSelected = Array.isArray(value) && value.includes(optionValue);
|
76
|
+
} else {
|
77
|
+
isSelected = (Array.isArray(value) ? value[0] : value) === optionValue;
|
78
|
+
}
|
79
|
+
|
80
|
+
return html`
|
81
|
+
<nile-option
|
82
|
+
value=${optionValue}
|
83
|
+
.selected=${isSelected}
|
84
|
+
.multiple=${multiple}
|
85
|
+
.disabled=${isDisabled}
|
86
|
+
.showCheckbox=${multiple}
|
87
|
+
>
|
88
|
+
${unsafeHTML(displayText)}
|
89
|
+
</nile-option>
|
90
|
+
`;
|
91
|
+
}
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Determines whether to use virtualizer based on dataset size
|
95
|
+
* For small datasets (less than 50 items), use regular rendering for better sizing
|
96
|
+
*/
|
97
|
+
private static shouldUseVirtualizer(data: any[]): boolean {
|
98
|
+
return data.length >= 50;
|
99
|
+
}
|
100
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
export class VirtualSelectSearchManager {
|
9
|
+
static filterVirtualOptions(
|
10
|
+
searchValue: string,
|
11
|
+
originalOptionItems: any[],
|
12
|
+
data: any[],
|
13
|
+
renderItemFunction: (item: any) => string,
|
14
|
+
getSearchText?: (item: any) => string
|
15
|
+
): { filteredItems: any[], showNoResults: boolean } {
|
16
|
+
if (originalOptionItems.length === 0 && data.length > 0) {
|
17
|
+
return {
|
18
|
+
filteredItems: [...data],
|
19
|
+
showNoResults: false
|
20
|
+
};
|
21
|
+
}
|
22
|
+
|
23
|
+
if (!originalOptionItems || originalOptionItems.length === 0) {
|
24
|
+
return {
|
25
|
+
filteredItems: [],
|
26
|
+
showNoResults: true
|
27
|
+
};
|
28
|
+
}
|
29
|
+
|
30
|
+
if (!searchValue || searchValue.trim() === '') {
|
31
|
+
return {
|
32
|
+
filteredItems: [...originalOptionItems],
|
33
|
+
showNoResults: false
|
34
|
+
};
|
35
|
+
}
|
36
|
+
|
37
|
+
const lowerCaseSearchValue = searchValue.toLowerCase();
|
38
|
+
const searchTextFn = getSearchText || renderItemFunction;
|
39
|
+
const filteredItems = originalOptionItems.filter((item: any) => {
|
40
|
+
const itemValue = searchTextFn(item);
|
41
|
+
const lowerCaseItemValue = itemValue.toLowerCase();
|
42
|
+
return lowerCaseItemValue.includes(lowerCaseSearchValue);
|
43
|
+
});
|
44
|
+
|
45
|
+
return {
|
46
|
+
filteredItems,
|
47
|
+
showNoResults: filteredItems.length === 0
|
48
|
+
};
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import type { VirtualOption } from './types.js';
|
9
|
+
|
10
|
+
export class VirtualSelectSelectionManager {
|
11
|
+
static createVirtualOptionsFromValues(
|
12
|
+
value: string | string[],
|
13
|
+
data: any[],
|
14
|
+
getDisplayText: (item: any) => string,
|
15
|
+
getItemValue?: (item: any) => string
|
16
|
+
): VirtualOption[] {
|
17
|
+
if (!value || (Array.isArray(value) && value.length === 0)) {
|
18
|
+
return [];
|
19
|
+
}
|
20
|
+
|
21
|
+
const values = Array.isArray(value) ? value : [value];
|
22
|
+
|
23
|
+
return values.map(valueItem => {
|
24
|
+
// Use enhanced functions if available, otherwise fallback to basic logic
|
25
|
+
const displayTextFn = getDisplayText;
|
26
|
+
const valueFn = getItemValue || ((item: any) => item?.value || item);
|
27
|
+
|
28
|
+
const item = data.find((item: any) => {
|
29
|
+
const itemValue = valueFn(item);
|
30
|
+
const itemDisplayText = displayTextFn(item);
|
31
|
+
return itemValue === valueItem || itemDisplayText === valueItem;
|
32
|
+
});
|
33
|
+
|
34
|
+
const displayText = item ? displayTextFn(item) : valueItem;
|
35
|
+
|
36
|
+
return {
|
37
|
+
value: valueItem,
|
38
|
+
selected: true,
|
39
|
+
getTextLabel: () => {
|
40
|
+
// If displayText contains HTML, strip tags
|
41
|
+
if (typeof displayText === 'string' && /<[^>]+>/.test(displayText)) {
|
42
|
+
const div = document.createElement('div');
|
43
|
+
div.innerHTML = displayText;
|
44
|
+
return div.textContent || div.innerText || '';
|
45
|
+
}
|
46
|
+
return displayText;
|
47
|
+
},
|
48
|
+
getOptionPrefix: () => '',
|
49
|
+
};
|
50
|
+
});
|
51
|
+
}
|
52
|
+
|
53
|
+
static updateDisplayLabel(selectedOptions: VirtualOption[], placeholder: string, multiple: boolean, value: string | string[]): string {
|
54
|
+
if (multiple) {
|
55
|
+
if (placeholder && selectedOptions.length === 0) {
|
56
|
+
return '';
|
57
|
+
} else {
|
58
|
+
return selectedOptions.length + ' selected';
|
59
|
+
}
|
60
|
+
} else {
|
61
|
+
const currentValue = Array.isArray(value) ? value[0] : value;
|
62
|
+
return selectedOptions[0]?.getTextLabel()
|
63
|
+
? selectedOptions[0].getTextLabel()
|
64
|
+
: currentValue ?? '';
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
static updateValue(selectedOptions: VirtualOption[], multiple: boolean): string | string[] {
|
69
|
+
if (multiple) {
|
70
|
+
return selectedOptions.map(el => el.value);
|
71
|
+
} else {
|
72
|
+
return selectedOptions[0]?.value ?? '';
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
export type NileRemoveEvent = CustomEvent<Record<PropertyKey, never>>;
|
9
|
+
|
10
|
+
export interface VirtualOption {
|
11
|
+
value: string;
|
12
|
+
selected: boolean;
|
13
|
+
getTextLabel: () => string;
|
14
|
+
getOptionPrefix: () => string;
|
15
|
+
}
|
16
|
+
|
17
|
+
export interface RenderItemConfig {
|
18
|
+
getDisplayText: (item: any) => string;
|
19
|
+
getValue?: (item: any) => string;
|
20
|
+
getSearchText?: (item: any) => string;
|
21
|
+
}
|
22
|
+
|
23
|
+
export interface VirtualSelectProperties {
|
24
|
+
name: string;
|
25
|
+
data: any[];
|
26
|
+
value: string | string[];
|
27
|
+
size: 'small' | 'medium' | 'large';
|
28
|
+
placeholder: string;
|
29
|
+
searchEnabled: boolean;
|
30
|
+
internalSearchPlaceHolder: string;
|
31
|
+
disableLocalSearch: boolean;
|
32
|
+
optionsLoading: boolean;
|
33
|
+
multiple: boolean;
|
34
|
+
helpText: string;
|
35
|
+
errorMessage: string;
|
36
|
+
warning: boolean;
|
37
|
+
error: boolean;
|
38
|
+
success: boolean;
|
39
|
+
disabled: boolean;
|
40
|
+
clearable: boolean;
|
41
|
+
open: boolean;
|
42
|
+
hoist: boolean;
|
43
|
+
filled: boolean;
|
44
|
+
pill: boolean;
|
45
|
+
label: string;
|
46
|
+
placement: 'top' | 'bottom';
|
47
|
+
form: string;
|
48
|
+
required: boolean;
|
49
|
+
showNoResults: boolean;
|
50
|
+
noResultsMessage: string;
|
51
|
+
renderItemConfig?: RenderItemConfig;
|
52
|
+
blockValueChange: boolean;
|
53
|
+
noWidthSync: boolean;
|
54
|
+
}
|
@@ -2317,7 +2317,7 @@
|
|
2317
2317
|
},
|
2318
2318
|
{
|
2319
2319
|
"name": "nile-option",
|
2320
|
-
"description": "Slots:\n\n * ` ` {} - The option's label.\n\n * `prefix` {} - Used to prepend an icon or similar element to the menu item.\n\n * `suffix` {} - Used to append an icon or similar element to the menu item.\n\nAttributes:\n\n * `value` {`string`} - The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.\n\n * `showCheckbox` {`boolean`} - \n\n * `disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\
|
2320
|
+
"description": "Slots:\n\n * ` ` {} - The option's label.\n\n * `prefix` {} - Used to prepend an icon or similar element to the menu item.\n\n * `suffix` {} - Used to append an icon or similar element to the menu item.\n\nAttributes:\n\n * `value` {`string`} - The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.\n\n * `showCheckbox` {`boolean`} - \n\n * `disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\n * `multiple` {`boolean`} - Forces the option to display in multiple select mode with checkboxes.\n\n * `selected` {`boolean`} - Indicates whether the option is selected.\n\nProperties:\n\n * `styles` - \n\n * `cachedTextLabel` {`string`} - \n\n * `defaultSlot` {`HTMLSlotElement`} - \n\n * `current` {`boolean`} - \n\n * `hasHover` {`boolean`} - \n\n * `hidden` {`boolean`} - \n\n * `isMultipleSelect` {`boolean`} - \n\n * `value` {`string`} - The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.\n\n * `showCheckbox` {`boolean`} - \n\n * `disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\n * `multiple` {`boolean`} - Forces the option to display in multiple select mode with checkboxes.\n\n * `selected` {`boolean`} - Indicates whether the option is selected.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2321
2321
|
"attributes": [
|
2322
2322
|
{
|
2323
2323
|
"name": "value",
|
@@ -2332,6 +2332,16 @@
|
|
2332
2332
|
"name": "disabled",
|
2333
2333
|
"description": "`disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\nProperty: disabled\n\nDefault: false",
|
2334
2334
|
"valueSet": "v"
|
2335
|
+
},
|
2336
|
+
{
|
2337
|
+
"name": "multiple",
|
2338
|
+
"description": "`multiple` {`boolean`} - Forces the option to display in multiple select mode with checkboxes.\n\nProperty: multiple\n\nDefault: false",
|
2339
|
+
"valueSet": "v"
|
2340
|
+
},
|
2341
|
+
{
|
2342
|
+
"name": "selected",
|
2343
|
+
"description": "`selected` {`boolean`} - Indicates whether the option is selected.\n\nProperty: selected\n\nDefault: false",
|
2344
|
+
"valueSet": "v"
|
2335
2345
|
}
|
2336
2346
|
]
|
2337
2347
|
},
|
@@ -2838,7 +2848,7 @@
|
|
2838
2848
|
},
|
2839
2849
|
{
|
2840
2850
|
"name": "nile-select",
|
2841
|
-
"description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The listbox options. Must be `<nile-option>` elements. You can use `<nile-divider>` to group items visually.\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internal-search-placeholder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLSlotElement`} - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `listbox` {`HTMLSlotElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `currentOption` - \n\n * `selectedOptions` {`NileOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2851
|
+
"description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The listbox options. Must be `<nile-option>` elements. You can use `<nile-divider>` to group items visually.\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internal-search-placeholder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `data` - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `virtualScrollHelper` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLSlotElement`} - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `listbox` {`HTMLSlotElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `currentOption` - \n\n * `selectedOptions` {`NileOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `renderItemConfig` {`RenderItemConfig | undefined`} - Enhanced configuration for rendering items with support for display text, value, and search text\n\n * `data` - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2842
2852
|
"attributes": [
|
2843
2853
|
{
|
2844
2854
|
"name": "size",
|
@@ -2975,6 +2985,15 @@
|
|
2975
2985
|
"name": "noResultsMessage",
|
2976
2986
|
"description": "`noResultsMessage` {`string`} - \n\nProperty: noResultsMessage\n\nDefault: No results found"
|
2977
2987
|
},
|
2988
|
+
{
|
2989
|
+
"name": "data",
|
2990
|
+
"description": "`data` - \n\nProperty: data\n\nDefault: "
|
2991
|
+
},
|
2992
|
+
{
|
2993
|
+
"name": "enableVirtualScroll",
|
2994
|
+
"description": "`enableVirtualScroll` {`boolean`} - \n\nProperty: enableVirtualScroll\n\nDefault: false",
|
2995
|
+
"valueSet": "v"
|
2996
|
+
},
|
2978
2997
|
{
|
2979
2998
|
"name": "name",
|
2980
2999
|
"description": "`name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\nProperty: name\n\nDefault: "
|
@@ -4144,6 +4163,214 @@
|
|
4144
4163
|
"description": "`subtitle` {`string`} - \n\nProperty: subtitle\n\nDefault: "
|
4145
4164
|
}
|
4146
4165
|
]
|
4166
|
+
},
|
4167
|
+
{
|
4168
|
+
"name": "nile-virtual-select",
|
4169
|
+
"description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `data` - Array of all option items for virtual scrolling\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - Enable search functionality\n\n * `internal-search-placeholder` {`string`} - Search input placeholder\n\n * `disableLocalSearch` {`boolean`} - Disable local search filtering\n\n * `optionsLoading` {`boolean`} - Show loading state\n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `help-text` {`string`} - Help text\n\n * `error-message` {`string`} - Error message\n\n * `warning` {`boolean`} - Sets the input to a warning state\n\n * `error` {`boolean`} - Sets the input to an error state\n\n * `success` {`boolean`} - Sets the input to a success state\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - The select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showNoResults` {`boolean`} - Show no results message\n\n * `noResultsMessage` {`string`} - No results message\n\n * `showSelected` {`boolean`} - Show selected options only\n\n * `blockValueChange` {`boolean`} - Block value change events\n\n * `noWidthSync` {`boolean`} - Disable width synchronization\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select. When `multiple` is enabled, the value will be an array of selected values.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `popup` - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `virtualizedContainer` {`HTMLElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `selectedOptions` {`VirtualOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `data` - Array of all option items for virtual scrolling\n\n * `originalOptionItems` - Original unfiltered option items for search functionality\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Current search value\n\n * `searchEnabled` {`boolean`} - Enable search functionality\n\n * `internalSearchPlaceHolder` {`string`} - Search input placeholder\n\n * `disableLocalSearch` {`boolean`} - Disable local search filtering\n\n * `optionsLoading` {`boolean`} - Show loading state\n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - Help text\n\n * `errorMessage` {`string`} - Error message\n\n * `warning` {`boolean`} - Sets the input to a warning state\n\n * `error` {`boolean`} - Sets the input to an error state\n\n * `success` {`boolean`} - Sets the input to a success state\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - The select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showNoResults` {`boolean`} - Show no results message\n\n * `noResultsMessage` {`string`} - No results message\n\n * `showSelected` {`boolean`} - Show selected options only\n\n * `renderItemConfig` {`RenderItemConfig | undefined`} - Enhanced configuration for rendering items with support for display text, value, and search text\n\n * `blockValueChange` {`boolean`} - Block value change events\n\n * `noWidthSync` {`boolean`} - Disable width synchronization\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `handleDocumentMouseDown` - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select. When `multiple` is enabled, the value will be an array of selected values.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
4170
|
+
"attributes": [
|
4171
|
+
{
|
4172
|
+
"name": "data",
|
4173
|
+
"description": "`data` - Array of all option items for virtual scrolling\n\nProperty: data\n\nDefault: "
|
4174
|
+
},
|
4175
|
+
{
|
4176
|
+
"name": "size",
|
4177
|
+
"description": "`size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\nProperty: size\n\nDefault: medium",
|
4178
|
+
"values": [
|
4179
|
+
{
|
4180
|
+
"name": "medium"
|
4181
|
+
},
|
4182
|
+
{
|
4183
|
+
"name": "small"
|
4184
|
+
},
|
4185
|
+
{
|
4186
|
+
"name": "large"
|
4187
|
+
}
|
4188
|
+
]
|
4189
|
+
},
|
4190
|
+
{
|
4191
|
+
"name": "placeholder",
|
4192
|
+
"description": "`placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\nProperty: placeholder\n\nDefault: Select..."
|
4193
|
+
},
|
4194
|
+
{
|
4195
|
+
"name": "searchEnabled",
|
4196
|
+
"description": "`searchEnabled` {`boolean`} - Enable search functionality\n\nProperty: searchEnabled\n\nDefault: false",
|
4197
|
+
"valueSet": "v"
|
4198
|
+
},
|
4199
|
+
{
|
4200
|
+
"name": "internal-search-placeholder",
|
4201
|
+
"description": "`internal-search-placeholder` {`string`} - Search input placeholder\n\nProperty: internalSearchPlaceHolder\n\nDefault: Search..."
|
4202
|
+
},
|
4203
|
+
{
|
4204
|
+
"name": "disableLocalSearch",
|
4205
|
+
"description": "`disableLocalSearch` {`boolean`} - Disable local search filtering\n\nProperty: disableLocalSearch\n\nDefault: false",
|
4206
|
+
"valueSet": "v"
|
4207
|
+
},
|
4208
|
+
{
|
4209
|
+
"name": "optionsLoading",
|
4210
|
+
"description": "`optionsLoading` {`boolean`} - Show loading state\n\nProperty: optionsLoading\n\nDefault: false",
|
4211
|
+
"valueSet": "v"
|
4212
|
+
},
|
4213
|
+
{
|
4214
|
+
"name": "multiple",
|
4215
|
+
"description": "`multiple` {`boolean`} - Allows more than one option to be selected.\n\nProperty: multiple\n\nDefault: false",
|
4216
|
+
"valueSet": "v"
|
4217
|
+
},
|
4218
|
+
{
|
4219
|
+
"name": "help-text",
|
4220
|
+
"description": "`help-text` {`string`} - Help text\n\nProperty: helpText\n\nDefault: "
|
4221
|
+
},
|
4222
|
+
{
|
4223
|
+
"name": "error-message",
|
4224
|
+
"description": "`error-message` {`string`} - Error message\n\nProperty: errorMessage\n\nDefault: "
|
4225
|
+
},
|
4226
|
+
{
|
4227
|
+
"name": "warning",
|
4228
|
+
"description": "`warning` {`boolean`} - Sets the input to a warning state\n\nProperty: warning\n\nDefault: false",
|
4229
|
+
"valueSet": "v"
|
4230
|
+
},
|
4231
|
+
{
|
4232
|
+
"name": "error",
|
4233
|
+
"description": "`error` {`boolean`} - Sets the input to an error state\n\nProperty: error\n\nDefault: false",
|
4234
|
+
"valueSet": "v"
|
4235
|
+
},
|
4236
|
+
{
|
4237
|
+
"name": "success",
|
4238
|
+
"description": "`success` {`boolean`} - Sets the input to a success state\n\nProperty: success\n\nDefault: false",
|
4239
|
+
"valueSet": "v"
|
4240
|
+
},
|
4241
|
+
{
|
4242
|
+
"name": "clearable",
|
4243
|
+
"description": "`clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\nProperty: clearable\n\nDefault: false",
|
4244
|
+
"valueSet": "v"
|
4245
|
+
},
|
4246
|
+
{
|
4247
|
+
"name": "open",
|
4248
|
+
"description": "`open` {`boolean`} - The select's open state.\n\nProperty: open\n\nDefault: false",
|
4249
|
+
"valueSet": "v"
|
4250
|
+
},
|
4251
|
+
{
|
4252
|
+
"name": "hoist",
|
4253
|
+
"description": "`hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\nProperty: hoist\n\nDefault: false",
|
4254
|
+
"valueSet": "v"
|
4255
|
+
},
|
4256
|
+
{
|
4257
|
+
"name": "filled",
|
4258
|
+
"description": "`filled` {`boolean`} - Draws a filled select.\n\nProperty: filled\n\nDefault: false",
|
4259
|
+
"valueSet": "v"
|
4260
|
+
},
|
4261
|
+
{
|
4262
|
+
"name": "pill",
|
4263
|
+
"description": "`pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\nProperty: pill\n\nDefault: false",
|
4264
|
+
"valueSet": "v"
|
4265
|
+
},
|
4266
|
+
{
|
4267
|
+
"name": "label",
|
4268
|
+
"description": "`label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\nProperty: label\n\nDefault: "
|
4269
|
+
},
|
4270
|
+
{
|
4271
|
+
"name": "placement",
|
4272
|
+
"description": "`placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\nProperty: placement\n\nDefault: bottom",
|
4273
|
+
"values": [
|
4274
|
+
{
|
4275
|
+
"name": "top"
|
4276
|
+
},
|
4277
|
+
{
|
4278
|
+
"name": "bottom"
|
4279
|
+
}
|
4280
|
+
]
|
4281
|
+
},
|
4282
|
+
{
|
4283
|
+
"name": "showNoResults",
|
4284
|
+
"description": "`showNoResults` {`boolean`} - Show no results message\n\nProperty: showNoResults\n\nDefault: false",
|
4285
|
+
"valueSet": "v"
|
4286
|
+
},
|
4287
|
+
{
|
4288
|
+
"name": "noResultsMessage",
|
4289
|
+
"description": "`noResultsMessage` {`string`} - No results message\n\nProperty: noResultsMessage\n\nDefault: No results found"
|
4290
|
+
},
|
4291
|
+
{
|
4292
|
+
"name": "showSelected",
|
4293
|
+
"description": "`showSelected` {`boolean`} - Show selected options only\n\nProperty: showSelected\n\nDefault: false",
|
4294
|
+
"valueSet": "v"
|
4295
|
+
},
|
4296
|
+
{
|
4297
|
+
"name": "blockValueChange",
|
4298
|
+
"description": "`blockValueChange` {`boolean`} - Block value change events\n\nProperty: blockValueChange\n\nDefault: false",
|
4299
|
+
"valueSet": "v"
|
4300
|
+
},
|
4301
|
+
{
|
4302
|
+
"name": "noWidthSync",
|
4303
|
+
"description": "`noWidthSync` {`boolean`} - Disable width synchronization\n\nProperty: noWidthSync\n\nDefault: false",
|
4304
|
+
"valueSet": "v"
|
4305
|
+
},
|
4306
|
+
{
|
4307
|
+
"name": "max-options-visible",
|
4308
|
+
"description": "`max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\nProperty: maxOptionsVisible\n\nDefault: 3"
|
4309
|
+
},
|
4310
|
+
{
|
4311
|
+
"name": "name",
|
4312
|
+
"description": "`name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\nProperty: name\n\nDefault: "
|
4313
|
+
},
|
4314
|
+
{
|
4315
|
+
"name": "value",
|
4316
|
+
"description": "`value` {`string | string[]`} - The current value of the select. When `multiple` is enabled, the value will be an array of selected values.\n\nProperty: value\n\nDefault: ",
|
4317
|
+
"values": []
|
4318
|
+
},
|
4319
|
+
{
|
4320
|
+
"name": "disabled",
|
4321
|
+
"description": "`disabled` {`boolean`} - Disables the select control.\n\nProperty: disabled\n\nDefault: false",
|
4322
|
+
"valueSet": "v"
|
4323
|
+
},
|
4324
|
+
{
|
4325
|
+
"name": "form",
|
4326
|
+
"description": "`form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\nProperty: form\n\nDefault: "
|
4327
|
+
},
|
4328
|
+
{
|
4329
|
+
"name": "required",
|
4330
|
+
"description": "`required` {`boolean`} - The select's required attribute.\n\nProperty: required\n\nDefault: false",
|
4331
|
+
"valueSet": "v"
|
4332
|
+
},
|
4333
|
+
{
|
4334
|
+
"name": "onnile-change",
|
4335
|
+
"description": "`nile-change` {} - Emitted when the control's value changes."
|
4336
|
+
},
|
4337
|
+
{
|
4338
|
+
"name": "onnile-clear",
|
4339
|
+
"description": "`nile-clear` {} - Emitted when the control's value is cleared."
|
4340
|
+
},
|
4341
|
+
{
|
4342
|
+
"name": "onnile-input",
|
4343
|
+
"description": "`nile-input` {} - Emitted when the control receives input."
|
4344
|
+
},
|
4345
|
+
{
|
4346
|
+
"name": "onnile-focus",
|
4347
|
+
"description": "`nile-focus` {} - Emitted when the control gains focus."
|
4348
|
+
},
|
4349
|
+
{
|
4350
|
+
"name": "onnile-blur",
|
4351
|
+
"description": "`nile-blur` {} - Emitted when the control loses focus."
|
4352
|
+
},
|
4353
|
+
{
|
4354
|
+
"name": "onnile-show",
|
4355
|
+
"description": "`nile-show` {} - Emitted when the select's menu opens."
|
4356
|
+
},
|
4357
|
+
{
|
4358
|
+
"name": "onnile-after-show",
|
4359
|
+
"description": "`nile-after-show` {} - Emitted after the select's menu opens and all animations are complete."
|
4360
|
+
},
|
4361
|
+
{
|
4362
|
+
"name": "onnile-hide",
|
4363
|
+
"description": "`nile-hide` {} - Emitted when the select's menu closes."
|
4364
|
+
},
|
4365
|
+
{
|
4366
|
+
"name": "onnile-after-hide",
|
4367
|
+
"description": "`nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete."
|
4368
|
+
},
|
4369
|
+
{
|
4370
|
+
"name": "onnile-invalid",
|
4371
|
+
"description": "`nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied."
|
4372
|
+
}
|
4373
|
+
]
|
4147
4374
|
}
|
4148
4375
|
],
|
4149
4376
|
"globalAttributes": [],
|