@aquera/nile-elements 1.7.0 → 1.7.2
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 +6 -0
- package/demo/index.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1401 -424
- package/dist/nile-combobox/index.cjs.js +2 -0
- package/dist/nile-combobox/index.cjs.js.map +1 -0
- package/dist/nile-combobox/index.esm.js +1 -0
- package/dist/nile-combobox/nile-combobox.cjs.js +2 -0
- package/dist/nile-combobox/nile-combobox.cjs.js.map +1 -0
- package/dist/nile-combobox/nile-combobox.css.cjs.js +2 -0
- package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -0
- package/dist/nile-combobox/nile-combobox.css.esm.js +642 -0
- package/dist/nile-combobox/nile-combobox.esm.js +233 -0
- package/dist/nile-combobox/portal-manager.cjs.js +2 -0
- package/dist/nile-combobox/portal-manager.cjs.js.map +1 -0
- package/dist/nile-combobox/portal-manager.esm.js +1 -0
- package/dist/nile-combobox/renderer.cjs.js +2 -0
- package/dist/nile-combobox/renderer.cjs.js.map +1 -0
- package/dist/nile-combobox/renderer.esm.js +105 -0
- package/dist/nile-combobox/search-manager.cjs.js +2 -0
- package/dist/nile-combobox/search-manager.cjs.js.map +1 -0
- package/dist/nile-combobox/search-manager.esm.js +1 -0
- package/dist/nile-combobox/selection-manager.cjs.js +2 -0
- package/dist/nile-combobox/selection-manager.cjs.js.map +1 -0
- package/dist/nile-combobox/selection-manager.esm.js +1 -0
- package/dist/nile-combobox/types.cjs.js +2 -0
- package/dist/nile-combobox/types.cjs.js.map +1 -0
- package/dist/nile-combobox/types.esm.js +1 -0
- package/dist/nile-nav-tab/nile-nav-tab.cjs.js +1 -1
- package/dist/nile-nav-tab/nile-nav-tab.cjs.js.map +1 -1
- package/dist/nile-nav-tab/nile-nav-tab.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- 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/nile-combobox/index.d.ts +1 -0
- package/dist/src/nile-combobox/index.js +2 -0
- package/dist/src/nile-combobox/index.js.map +1 -0
- package/dist/src/nile-combobox/nile-combobox.css.d.ts +9 -0
- package/dist/src/nile-combobox/nile-combobox.css.js +651 -0
- package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -0
- package/dist/src/nile-combobox/nile-combobox.d.ts +287 -0
- package/dist/src/nile-combobox/nile-combobox.js +1602 -0
- package/dist/src/nile-combobox/nile-combobox.js.map +1 -0
- package/dist/src/nile-combobox/nile-combobox.test.d.ts +1 -0
- package/dist/src/nile-combobox/nile-combobox.test.js +551 -0
- package/dist/src/nile-combobox/nile-combobox.test.js.map +1 -0
- package/dist/src/nile-combobox/portal-manager.d.ts +26 -0
- package/dist/src/nile-combobox/portal-manager.js +218 -0
- package/dist/src/nile-combobox/portal-manager.js.map +1 -0
- package/dist/src/nile-combobox/renderer.d.ts +20 -0
- package/dist/src/nile-combobox/renderer.js +210 -0
- package/dist/src/nile-combobox/renderer.js.map +1 -0
- package/dist/src/nile-combobox/search-manager.d.ts +15 -0
- package/dist/src/nile-combobox/search-manager.js +41 -0
- package/dist/src/nile-combobox/search-manager.js.map +1 -0
- package/dist/src/nile-combobox/selection-manager.d.ts +12 -0
- package/dist/src/nile-combobox/selection-manager.js +44 -0
- package/dist/src/nile-combobox/selection-manager.js.map +1 -0
- package/dist/src/nile-combobox/types.d.ts +23 -0
- package/dist/src/nile-combobox/types.js +8 -0
- package/dist/src/nile-combobox/types.js.map +1 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.js +1 -1
- package/dist/src/nile-nav-tab/nile-nav-tab.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -2
- package/rollup.config.js +4 -1
- package/src/index.ts +1 -0
- package/src/nile-combobox/index.ts +1 -0
- package/src/nile-combobox/nile-combobox.css.ts +653 -0
- package/src/nile-combobox/nile-combobox.test.ts +704 -0
- package/src/nile-combobox/nile-combobox.ts +1663 -0
- package/src/nile-combobox/portal-manager.ts +263 -0
- package/src/nile-combobox/renderer.ts +349 -0
- package/src/nile-combobox/search-manager.ts +53 -0
- package/src/nile-combobox/selection-manager.ts +57 -0
- package/src/nile-combobox/types.ts +27 -0
- package/src/nile-nav-tab/nile-nav-tab.ts +1 -1
- package/vscode-html-custom-data.json +306 -4
- package/web-dev-server.config.mjs +9 -0
- package/web-test-runner.config.mjs +11 -0
|
@@ -0,0 +1,57 @@
|
|
|
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 { ComboboxOption } from './types.js';
|
|
9
|
+
|
|
10
|
+
export class ComboboxSelectionManager {
|
|
11
|
+
static createOptionsFromValues(
|
|
12
|
+
value: string | string[],
|
|
13
|
+
data: any[],
|
|
14
|
+
getDisplayText: (item: any) => string,
|
|
15
|
+
getItemValue?: (item: any) => string
|
|
16
|
+
): ComboboxOption[] {
|
|
17
|
+
if (!value || (Array.isArray(value) && value.length === 0)) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const values = Array.isArray(value) ? value : [value];
|
|
22
|
+
const valueFn = getItemValue || ((item: any) => item?.value ?? item);
|
|
23
|
+
|
|
24
|
+
return values.map(valueItem => {
|
|
25
|
+
const item = data.find((d: any) => {
|
|
26
|
+
const iv = valueFn(d);
|
|
27
|
+
return String(iv) === String(valueItem);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const displayText = item ? getDisplayText(item) : valueItem;
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
value: valueItem,
|
|
34
|
+
selected: true,
|
|
35
|
+
getTextLabel: () => {
|
|
36
|
+
if (typeof displayText === 'string' && /<[^>]+>/.test(displayText)) {
|
|
37
|
+
const div = document.createElement('div');
|
|
38
|
+
div.innerHTML = displayText;
|
|
39
|
+
return div.textContent || div.innerText || '';
|
|
40
|
+
}
|
|
41
|
+
return displayText;
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static toggleMultiValue(currentValues: string[], optionValue: string): string[] {
|
|
48
|
+
if (currentValues.includes(optionValue)) {
|
|
49
|
+
return currentValues.filter(v => v !== optionValue);
|
|
50
|
+
}
|
|
51
|
+
return [...currentValues, optionValue];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static removeValue(currentValues: string[], removeValue: string): string[] {
|
|
55
|
+
return currentValues.filter(v => v !== removeValue);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 ComboboxOption {
|
|
11
|
+
value: string;
|
|
12
|
+
selected: boolean;
|
|
13
|
+
getTextLabel: () => string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ComboboxRenderItemConfig {
|
|
17
|
+
getDisplayText: (item: any) => string;
|
|
18
|
+
getValue?: (item: any) => string;
|
|
19
|
+
getSearchText?: (item: any) => string;
|
|
20
|
+
getDescription?: (item: any) => string;
|
|
21
|
+
getPrefix?: (item: any) => string;
|
|
22
|
+
getSuffix?: (item: any) => string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ComboboxTagLayout = 'single-line' | 'wrap' | 'fixed-height';
|
|
26
|
+
export type ComboboxSize = 'small' | 'medium' | 'large';
|
|
27
|
+
export type ComboboxPlacement = 'top' | 'bottom';
|
|
@@ -165,7 +165,7 @@ export class NileNavTab extends NileElement {
|
|
|
165
165
|
@click=${this.handleTabClick}
|
|
166
166
|
>
|
|
167
167
|
<slot name="prefix" @slotchange=${this.updateAccessibleName}></slot>
|
|
168
|
-
<slot @slotchange=${this.updateAccessibleName}></slot>
|
|
168
|
+
<span part="name"><slot @slotchange=${this.updateAccessibleName}></slot></span>
|
|
169
169
|
<slot name="suffix" @slotchange=${this.updateAccessibleName}></slot>
|
|
170
170
|
|
|
171
171
|
${this.closable
|
|
@@ -1330,6 +1330,308 @@
|
|
|
1330
1330
|
}
|
|
1331
1331
|
]
|
|
1332
1332
|
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "nile-combobox",
|
|
1335
|
+
"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 dropdown opens.\n\n * `nile-after-show` {} - Emitted after the dropdown opens and all animations complete.\n\n * `nile-hide` {} - Emitted when the dropdown closes.\n\n * `nile-after-hide` {} - Emitted after the dropdown closes and all animations complete.\n\n * `nile-search` {} - Emitted (debounced) when the user types. Useful for API-driven filtering.\n\n * `nile-tag-remove` {} - Emitted when a tag is removed in multi-select mode.\n\n * `nile-tag-add` {} - Emitted when a custom value is added via allowCustomValue.\n\n * `nile-scroll-end` {} - Emitted when scrolled to the bottom (for infinite loading).\n\n * `nile-invalid` {} - Emitted when form validation constraints aren't satisfied.\n\n * `nile-select-all` {} - Emitted when the Select all / Deselect all control toggles. Detail: { value, name, action: 'select-all' | 'deselect-all' }.\n\nSlots:\n\n * `label` {} - The input's label.\n\n * `prefix` {} - Prepend a presentational icon or element before the input.\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/collapsed.\n\n * `help-text` {} - Text that describes how to use the input.\n\n * `footer` {} - Custom footer content (overrides default footer in multi-select mode).\n\n * `no-results` {} - Custom no-results content.\n\nAttributes:\n\n * `data` {`any[]`} - \n\n * `size` {`\"small\" | \"medium\" | \"large\"`} - \n\n * `placeholder` {`string`} - \n\n * `multiple` {`boolean`} - \n\n * `label` {`string`} - \n\n * `open` {`boolean`} - \n\n * `clearable` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - When true, skip local filtering and rely solely on the `nile-search` event for API-driven results.\n\n * `allowCustomValue` {`boolean`} - When true, displays a \"+ Add [value]\" option for values not in the data.\n\n * `acceptUserInput` {`boolean`} - When true, typing free text and pressing Enter/Tab adds it as a tag (like nile-chip's acceptUserInput).\n\n * `addToSuggestions` {`boolean`} - When true, custom values added via allowCustomValue or acceptUserInput are also appended to the suggestions list.\n\n * `strict` {`boolean`} - When true, value must match an option. On blur, reverts to the last valid value if text doesn't match.\n\n * `max-tags-visible` {`number`} - Max tags visible before showing \"+N more\" (0 = no limit).\n\n * `tagLayout` {`ComboboxTagLayout`} - Controls how tags wrap in multi-select mode.\n\n * `showFooter` {`boolean`} - Show footer with \"Show Selected\" and \"Clear All\" in multi-select mode.\nAutomatically suppressed when `selectAllEnabled` is true, since the top\nactions row already provides the same controls.\n\n * `select-all-enabled` {`boolean`} - When true (and `multiple` is true), renders a \"Select all\" / \"Deselect all\"\ncheckbox at the top of the listbox. Operates on the currently visible,\nnon-disabled options (respects the active search filter).\n\n * `portal` {`boolean`} - \n\n * `hoist` {`boolean`} - \n\n * `placement` {`ComboboxPlacement`} - \n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - \n\n * `error` {`boolean`} - \n\n * `success` {`boolean`} - \n\n * `filled` {`boolean`} - \n\n * `pill` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `no-results-subtitle` {`string`} - \n\n * `no-data-message` {`string`} - \n\n * `autoCompleteOptions` {`any[]`} - Pre-defined autocomplete suggestions. Accepts a JSON array string attribute\nor a JS array property (like nile-chip). When `addToSuggestions` is true,\ncustom values added by the user are appended to this list and persisted.\n\n * `debounceMs` {`number`} - Debounce interval (ms) for the nile-search event.\n\n * `allowHtmlLabel` {`boolean`} - \n\n * `enableVisibilityEffect` {`boolean`} - \n\n * `enableTabClose` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `grid-columns` {`number`} - Number of columns in the dropdown grid (vertical scroll). When > 1, options render in a multi-column grid layout.\n\n * `grid-rows` {`number`} - Number of visible rows in horizontal grid mode. When > 0, enables horizontal virtual scroll with columns scrolling left/right.\n\n * `grid-column-width` {`number`} - Width of each column in horizontal grid mode (px).\n\n * `name` {`string`} - \n\n * `value` {`string | string[]`} - \n\n * `disabled` {`boolean`} - \n\n * `form` {`string`} - \n\n * `required` {`boolean`} - \n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `portalManager` - \n\n * `searchManager` - \n\n * `scrollElementRef` - \n\n * `virtualizerCtrl` - \n\n * `hScrollElementRef` - \n\n * `hVirtualizerCtrl` - \n\n * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \n\n * `visibilityManager` - \n\n * `keyboardActiveIndex` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLElement`} - \n\n * `inputElement` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `selectedOptions` {`ComboboxOption[]`} - \n\n * `filteredData` {`any[]`} - The items displayed after filtering. Renderer reads from this.\n\n * `originalData` {`any[]`} - The complete unfiltered dataset (preserved for re-filtering).\n\n * `showNoResults` {`boolean`} - \n\n * `showListbox` {`boolean`} - \n\n * `searchValue` {`string`} - \n\n * `showSelectedOnly` {`boolean`} - \n\n * `selectAllChecked` {`boolean`} - \n\n * `selectAllIndeterminate` {`boolean`} - \n\n * `data` {`any[]`} - \n\n * `size` {`\"small\" | \"medium\" | \"large\"`} - \n\n * `placeholder` {`string`} - \n\n * `multiple` {`boolean`} - \n\n * `label` {`string`} - \n\n * `open` {`boolean`} - \n\n * `clearable` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - When true, skip local filtering and rely solely on the `nile-search` event for API-driven results.\n\n * `allowCustomValue` {`boolean`} - When true, displays a \"+ Add [value]\" option for values not in the data.\n\n * `acceptUserInput` {`boolean`} - When true, typing free text and pressing Enter/Tab adds it as a tag (like nile-chip's acceptUserInput).\n\n * `addToSuggestions` {`boolean`} - When true, custom values added via allowCustomValue or acceptUserInput are also appended to the suggestions list.\n\n * `strict` {`boolean`} - When true, value must match an option. On blur, reverts to the last valid value if text doesn't match.\n\n * `maxTagsVisible` {`number`} - Max tags visible before showing \"+N more\" (0 = no limit).\n\n * `tagLayout` {`ComboboxTagLayout`} - Controls how tags wrap in multi-select mode.\n\n * `showFooter` {`boolean`} - Show footer with \"Show Selected\" and \"Clear All\" in multi-select mode.\nAutomatically suppressed when `selectAllEnabled` is true, since the top\nactions row already provides the same controls.\n\n * `selectAllEnabled` {`boolean`} - When true (and `multiple` is true), renders a \"Select all\" / \"Deselect all\"\ncheckbox at the top of the listbox. Operates on the currently visible,\nnon-disabled options (respects the active search filter).\n\n * `portal` {`boolean`} - \n\n * `hoist` {`boolean`} - \n\n * `placement` {`ComboboxPlacement`} - \n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - \n\n * `error` {`boolean`} - \n\n * `success` {`boolean`} - \n\n * `filled` {`boolean`} - \n\n * `pill` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `noResultsSubtitle` {`string`} - \n\n * `noDataMessage` {`string`} - \n\n * `autoCompleteOptions` {`any[]`} - Pre-defined autocomplete suggestions. Accepts a JSON array string attribute\nor a JS array property (like nile-chip). When `addToSuggestions` is true,\ncustom values added by the user are appended to this list and persisted.\n\n * `debounceMs` {`number`} - Debounce interval (ms) for the nile-search event.\n\n * `renderItemConfig` {`ComboboxRenderItemConfig | undefined`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `enableVisibilityEffect` {`boolean`} - \n\n * `enableTabClose` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `gridColumns` {`number`} - Number of columns in the dropdown grid (vertical scroll). When > 1, options render in a multi-column grid layout.\n\n * `gridRows` {`number`} - Number of visible rows in horizontal grid mode. When > 0, enables horizontal virtual scroll with columns scrolling left/right.\n\n * `gridColumnWidth` {`number`} - Width of each column in horizontal grid mode (px).\n\n * `isHorizontalGrid` {`boolean`} - \n\n * `hasActiveFilter` {`boolean`} - \n\n * `isBidirectionalGrid` {`boolean`} - \n\n * `virtualRowCount` {`number`} - \n\n * `virtualColumnCount` {`number`} - \n\n * `handleDocumentFocusIn` - \n\n * `handleDocumentKeyDown` - \n\n * `handleDocumentMouseDown` - \n\n * `handleWindowError` - \n\n * `handleWindowResize` - \n\n * `handleWindowScroll` - \n\n * `name` {`string`} - \n\n * `value` {`string | string[]`} - \n\n * `disabled` {`boolean`} - \n\n * `defaultValue` {`string | string[]`} - \n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - \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`} - \n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - \n\n * `validationMessage` {`string`} - \n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
|
1336
|
+
"attributes": [
|
|
1337
|
+
{
|
|
1338
|
+
"name": "data",
|
|
1339
|
+
"description": "`data` {`any[]`} - \n\nProperty: data\n\nDefault: "
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "size",
|
|
1343
|
+
"description": "`size` {`\"small\" | \"medium\" | \"large\"`} - \n\nProperty: size\n\nDefault: medium",
|
|
1344
|
+
"values": [
|
|
1345
|
+
{
|
|
1346
|
+
"name": "small"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"name": "medium"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "large"
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"name": "placeholder",
|
|
1358
|
+
"description": "`placeholder` {`string`} - \n\nProperty: placeholder\n\nDefault: Type to search..."
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "multiple",
|
|
1362
|
+
"description": "`multiple` {`boolean`} - \n\nProperty: multiple\n\nDefault: false",
|
|
1363
|
+
"valueSet": "v"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"name": "label",
|
|
1367
|
+
"description": "`label` {`string`} - \n\nProperty: label\n\nDefault: "
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"name": "open",
|
|
1371
|
+
"description": "`open` {`boolean`} - \n\nProperty: open\n\nDefault: false",
|
|
1372
|
+
"valueSet": "v"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "clearable",
|
|
1376
|
+
"description": "`clearable` {`boolean`} - \n\nProperty: clearable\n\nDefault: false",
|
|
1377
|
+
"valueSet": "v"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"name": "loading",
|
|
1381
|
+
"description": "`loading` {`boolean`} - \n\nProperty: loading\n\nDefault: false",
|
|
1382
|
+
"valueSet": "v"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "optionsLoading",
|
|
1386
|
+
"description": "`optionsLoading` {`boolean`} - \n\nProperty: optionsLoading\n\nDefault: false",
|
|
1387
|
+
"valueSet": "v"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"name": "disableLocalSearch",
|
|
1391
|
+
"description": "`disableLocalSearch` {`boolean`} - When true, skip local filtering and rely solely on the `nile-search` event for API-driven results.\n\nProperty: disableLocalSearch\n\nDefault: false",
|
|
1392
|
+
"valueSet": "v"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "allowCustomValue",
|
|
1396
|
+
"description": "`allowCustomValue` {`boolean`} - When true, displays a \"+ Add [value]\" option for values not in the data.\n\nProperty: allowCustomValue\n\nDefault: false",
|
|
1397
|
+
"valueSet": "v"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "acceptUserInput",
|
|
1401
|
+
"description": "`acceptUserInput` {`boolean`} - When true, typing free text and pressing Enter/Tab adds it as a tag (like nile-chip's acceptUserInput).\n\nProperty: acceptUserInput\n\nDefault: false",
|
|
1402
|
+
"valueSet": "v"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"name": "addToSuggestions",
|
|
1406
|
+
"description": "`addToSuggestions` {`boolean`} - When true, custom values added via allowCustomValue or acceptUserInput are also appended to the suggestions list.\n\nProperty: addToSuggestions\n\nDefault: false",
|
|
1407
|
+
"valueSet": "v"
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
"name": "strict",
|
|
1411
|
+
"description": "`strict` {`boolean`} - When true, value must match an option. On blur, reverts to the last valid value if text doesn't match.\n\nProperty: strict\n\nDefault: false",
|
|
1412
|
+
"valueSet": "v"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"name": "max-tags-visible",
|
|
1416
|
+
"description": "`max-tags-visible` {`number`} - Max tags visible before showing \"+N more\" (0 = no limit).\n\nProperty: maxTagsVisible\n\nDefault: 3"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"name": "tagLayout",
|
|
1420
|
+
"description": "`tagLayout` {`ComboboxTagLayout`} - Controls how tags wrap in multi-select mode.\n\nProperty: tagLayout\n\nDefault: single-line",
|
|
1421
|
+
"values": [
|
|
1422
|
+
{
|
|
1423
|
+
"name": "single-line"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"name": "wrap"
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "fixed-height"
|
|
1430
|
+
}
|
|
1431
|
+
]
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"name": "showFooter",
|
|
1435
|
+
"description": "`showFooter` {`boolean`} - Show footer with \"Show Selected\" and \"Clear All\" in multi-select mode.\nAutomatically suppressed when `selectAllEnabled` is true, since the top\nactions row already provides the same controls.\n\nProperty: showFooter\n\nDefault: true",
|
|
1436
|
+
"valueSet": "v"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"name": "select-all-enabled",
|
|
1440
|
+
"description": "`select-all-enabled` {`boolean`} - When true (and `multiple` is true), renders a \"Select all\" / \"Deselect all\"\ncheckbox at the top of the listbox. Operates on the currently visible,\nnon-disabled options (respects the active search filter).\n\nProperty: selectAllEnabled\n\nDefault: false",
|
|
1441
|
+
"valueSet": "v"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "portal",
|
|
1445
|
+
"description": "`portal` {`boolean`} - \n\nProperty: portal\n\nDefault: false",
|
|
1446
|
+
"valueSet": "v"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "hoist",
|
|
1450
|
+
"description": "`hoist` {`boolean`} - \n\nProperty: hoist\n\nDefault: false",
|
|
1451
|
+
"valueSet": "v"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"name": "placement",
|
|
1455
|
+
"description": "`placement` {`ComboboxPlacement`} - \n\nProperty: placement\n\nDefault: bottom",
|
|
1456
|
+
"values": [
|
|
1457
|
+
{
|
|
1458
|
+
"name": "top"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
"name": "bottom"
|
|
1462
|
+
}
|
|
1463
|
+
]
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"name": "help-text",
|
|
1467
|
+
"description": "`help-text` {`string`} - \n\nProperty: helpText\n\nDefault: "
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "error-message",
|
|
1471
|
+
"description": "`error-message` {`string`} - \n\nProperty: errorMessage\n\nDefault: "
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "warning",
|
|
1475
|
+
"description": "`warning` {`boolean`} - \n\nProperty: warning\n\nDefault: false",
|
|
1476
|
+
"valueSet": "v"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "error",
|
|
1480
|
+
"description": "`error` {`boolean`} - \n\nProperty: error\n\nDefault: false",
|
|
1481
|
+
"valueSet": "v"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "success",
|
|
1485
|
+
"description": "`success` {`boolean`} - \n\nProperty: success\n\nDefault: false",
|
|
1486
|
+
"valueSet": "v"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "filled",
|
|
1490
|
+
"description": "`filled` {`boolean`} - \n\nProperty: filled\n\nDefault: false",
|
|
1491
|
+
"valueSet": "v"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"name": "pill",
|
|
1495
|
+
"description": "`pill` {`boolean`} - \n\nProperty: pill\n\nDefault: false",
|
|
1496
|
+
"valueSet": "v"
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "noResultsMessage",
|
|
1500
|
+
"description": "`noResultsMessage` {`string`} - \n\nProperty: noResultsMessage\n\nDefault: No result found"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"name": "no-results-subtitle",
|
|
1504
|
+
"description": "`no-results-subtitle` {`string`} - \n\nProperty: noResultsSubtitle\n\nDefault: Clear search or change filter"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"name": "no-data-message",
|
|
1508
|
+
"description": "`no-data-message` {`string`} - \n\nProperty: noDataMessage\n\nDefault: No data available"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"name": "autoCompleteOptions",
|
|
1512
|
+
"description": "`autoCompleteOptions` {`any[]`} - Pre-defined autocomplete suggestions. Accepts a JSON array string attribute\nor a JS array property (like nile-chip). When `addToSuggestions` is true,\ncustom values added by the user are appended to this list and persisted.\n\nProperty: autoCompleteOptions\n\nDefault: "
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"name": "debounceMs",
|
|
1516
|
+
"description": "`debounceMs` {`number`} - Debounce interval (ms) for the nile-search event.\n\nProperty: debounceMs\n\nDefault: 300"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"name": "allowHtmlLabel",
|
|
1520
|
+
"description": "`allowHtmlLabel` {`boolean`} - \n\nProperty: allowHtmlLabel\n\nDefault: true",
|
|
1521
|
+
"valueSet": "v"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"name": "enableVisibilityEffect",
|
|
1525
|
+
"description": "`enableVisibilityEffect` {`boolean`} - \n\nProperty: enableVisibilityEffect\n\nDefault: false",
|
|
1526
|
+
"valueSet": "v"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"name": "enableTabClose",
|
|
1530
|
+
"description": "`enableTabClose` {`boolean`} - \n\nProperty: enableTabClose\n\nDefault: false",
|
|
1531
|
+
"valueSet": "v"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"name": "noWidthSync",
|
|
1535
|
+
"description": "`noWidthSync` {`boolean`} - \n\nProperty: noWidthSync\n\nDefault: false",
|
|
1536
|
+
"valueSet": "v"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "grid-columns",
|
|
1540
|
+
"description": "`grid-columns` {`number`} - Number of columns in the dropdown grid (vertical scroll). When > 1, options render in a multi-column grid layout.\n\nProperty: gridColumns\n\nDefault: 1"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"name": "grid-rows",
|
|
1544
|
+
"description": "`grid-rows` {`number`} - Number of visible rows in horizontal grid mode. When > 0, enables horizontal virtual scroll with columns scrolling left/right.\n\nProperty: gridRows\n\nDefault: 0"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"name": "grid-column-width",
|
|
1548
|
+
"description": "`grid-column-width` {`number`} - Width of each column in horizontal grid mode (px).\n\nProperty: gridColumnWidth\n\nDefault: 160"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "name",
|
|
1552
|
+
"description": "`name` {`string`} - \n\nProperty: name\n\nDefault: "
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "value",
|
|
1556
|
+
"description": "`value` {`string | string[]`} - \n\nProperty: value\n\nDefault: ",
|
|
1557
|
+
"values": []
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "disabled",
|
|
1561
|
+
"description": "`disabled` {`boolean`} - \n\nProperty: disabled\n\nDefault: false",
|
|
1562
|
+
"valueSet": "v"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"name": "form",
|
|
1566
|
+
"description": "`form` {`string`} - \n\nProperty: form\n\nDefault: "
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "required",
|
|
1570
|
+
"description": "`required` {`boolean`} - \n\nProperty: required\n\nDefault: false",
|
|
1571
|
+
"valueSet": "v"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"name": "onnile-change",
|
|
1575
|
+
"description": "`nile-change` {} - Emitted when the control's value changes."
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"name": "onnile-clear",
|
|
1579
|
+
"description": "`nile-clear` {} - Emitted when the control's value is cleared."
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"name": "onnile-input",
|
|
1583
|
+
"description": "`nile-input` {} - Emitted when the control receives input."
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"name": "onnile-focus",
|
|
1587
|
+
"description": "`nile-focus` {} - Emitted when the control gains focus."
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"name": "onnile-blur",
|
|
1591
|
+
"description": "`nile-blur` {} - Emitted when the control loses focus."
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"name": "onnile-show",
|
|
1595
|
+
"description": "`nile-show` {} - Emitted when the dropdown opens."
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"name": "onnile-after-show",
|
|
1599
|
+
"description": "`nile-after-show` {} - Emitted after the dropdown opens and all animations complete."
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "onnile-hide",
|
|
1603
|
+
"description": "`nile-hide` {} - Emitted when the dropdown closes."
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"name": "onnile-after-hide",
|
|
1607
|
+
"description": "`nile-after-hide` {} - Emitted after the dropdown closes and all animations complete."
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "onnile-search",
|
|
1611
|
+
"description": "`nile-search` {} - Emitted (debounced) when the user types. Useful for API-driven filtering."
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"name": "onnile-tag-remove",
|
|
1615
|
+
"description": "`nile-tag-remove` {} - Emitted when a tag is removed in multi-select mode."
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"name": "onnile-tag-add",
|
|
1619
|
+
"description": "`nile-tag-add` {} - Emitted when a custom value is added via allowCustomValue."
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"name": "onnile-scroll-end",
|
|
1623
|
+
"description": "`nile-scroll-end` {} - Emitted when scrolled to the bottom (for infinite loading)."
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"name": "onnile-invalid",
|
|
1627
|
+
"description": "`nile-invalid` {} - Emitted when form validation constraints aren't satisfied."
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"name": "onnile-select-all",
|
|
1631
|
+
"description": "`nile-select-all` {} - Emitted when the Select all / Deselect all control toggles. Detail: { value, name, action: 'select-all' | 'deselect-all' }."
|
|
1632
|
+
}
|
|
1633
|
+
]
|
|
1634
|
+
},
|
|
1333
1635
|
{
|
|
1334
1636
|
"name": "nile-content-editor",
|
|
1335
1637
|
"description": "Nile icon component.\n\nAttributes:\n\n * `value` {`string`} - \n\n * `options` {`any[]`} - \n\n * `filteredOptions` {`any[]`} - \n\n * `showLabel` {`boolean`} - \n\n * `labelText` {`string`} - \n\n * `type` {`string`} - \n\n * `required` {`boolean`} - \n\n * `help-text` {`string`} - \n\n * `readonly` {`boolean`} - \n\n * `error-message` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `updateValue` - \n\nProperties:\n\n * `value` {`string`} - \n\n * `options` {`any[]`} - \n\n * `filteredOptions` {`any[]`} - \n\n * `showLabel` {`boolean`} - \n\n * `labelText` {`string`} - \n\n * `type` {`string`} - \n\n * `required` {`boolean`} - \n\n * `contentEditor` {`HTMLInputElement`} - \n\n * `autoOptions` {`HTMLInputElement`} - \n\n * `openDropdown` {`boolean`} - \n\n * `tagIdentifier` {`string`} - \n\n * `filteredValue` {`string`} - \n\n * `helpText` {`string`} - \n\n * `readonly` {`boolean`} - \n\n * `errorMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `updateValue` - \n\n * `initialValue` {`string`} - \n\n * `styles` - \n\n * `replaceText` {`string`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
|
@@ -5031,7 +5333,7 @@
|
|
|
5031
5333
|
},
|
|
5032
5334
|
{
|
|
5033
5335
|
"name": "nile-select",
|
|
5034
|
-
"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\n * `nile-search` {} - Emitted when the user types in the search input. The event payload includes the search query for backend search functionality.\n\n * `nile-scroll` {} - Emitted when the user scrolls within the listbox. The event payload includes scroll position information.\n\n * `nile-scroll-start` {} - Emitted when the user starts scrolling within the listbox.\n\n * `nile-scroll-end` {} - Emitted when the user stops scrolling and reaches the bottom of the listbox (debounced).\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\n * `pre-footer` {} - Content to display at the bottom of the dropdown listbox. Useful for action buttons like \"Create New\". In multi-select mode, appears above the \"Show Selected\" / \"Clear All\" bar.\n\nAttributes:\n\n * `size` {`\"small\" | \"medium\" | \"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 * `enableVisibilityEffect` {`boolean`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\n\n * `multiple` {`string | boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `help-text` {`string`} - \n\n * `autoResize` {`boolean`} - \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 * `enableTabClose` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `data` - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `enableGroupHeader` {`boolean`} - To enable the group header in the select\n\n * `autoFocusSearch` {`boolean`} - To auto focus the search input when the select is opened\n\n * `loading` {`boolean`} - loading indicator for virtual select\n\n * `stickyHeader` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `enableDescription` {`boolean`} - \n\n * `allowHtmlLabel` {`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 * `portalManager` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \n\n * `options` {`NileOption[]`} - \n\n * `resizeController` - \n\n * `visibilityManager` - \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` {`\"small\" | \"medium\" | \"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 * `enableVisibilityEffect` {`boolean`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\n\n * `multiple` {`string | boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `help_text` {`string`} - \n\n * `autoResize` {`boolean`} - \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 * `enableTabClose` {`boolean`} - \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 * `enableGroupHeader` {`boolean`} - To enable the group header in the select\n\n * `autoFocusSearch` {`boolean`} - To auto focus the search input when the select is opened\n\n * `loading` {`boolean`} - loading indicator for virtual select\n\n * `stickyHeader` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `enableDescription` {`boolean`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `handleWindowResize` - \n\n * `handleWindowScroll` - \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`} - ",
|
|
5336
|
+
"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\n * `nile-search` {} - Emitted when the user types in the search input. The event payload includes the search query for backend search functionality.\n\n * `nile-scroll` {} - Emitted when the user scrolls within the listbox. The event payload includes scroll position information.\n\n * `nile-scroll-start` {} - Emitted when the user starts scrolling within the listbox.\n\n * `nile-scroll-end` {} - Emitted when the user stops scrolling and reaches the bottom of the listbox (debounced).\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\n * `pre-footer` {} - Content to display at the bottom of the dropdown listbox. Useful for action buttons like \"Create New\". In multi-select mode, appears above the \"Show Selected\" / \"Clear All\" bar.\n\nAttributes:\n\n * `size` {`\"small\" | \"medium\" | \"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 * `enableVisibilityEffect` {`boolean`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\n\n * `multiple` {`string | boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `help-text` {`string`} - \n\n * `autoResize` {`boolean`} - \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` {`ComboboxPlacement`} - 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 * `enableTabClose` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `data` - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `enableGroupHeader` {`boolean`} - To enable the group header in the select\n\n * `autoFocusSearch` {`boolean`} - To auto focus the search input when the select is opened\n\n * `loading` {`boolean`} - loading indicator for virtual select\n\n * `stickyHeader` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `enableDescription` {`boolean`} - \n\n * `allowHtmlLabel` {`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 * `portalManager` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \n\n * `options` {`NileOption[]`} - \n\n * `resizeController` - \n\n * `visibilityManager` - \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` {`\"small\" | \"medium\" | \"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 * `enableVisibilityEffect` {`boolean`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\n\n * `multiple` {`string | boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `help_text` {`string`} - \n\n * `autoResize` {`boolean`} - \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` {`ComboboxPlacement`} - 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 * `enableTabClose` {`boolean`} - \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 * `enableGroupHeader` {`boolean`} - To enable the group header in the select\n\n * `autoFocusSearch` {`boolean`} - To auto focus the search input when the select is opened\n\n * `loading` {`boolean`} - loading indicator for virtual select\n\n * `stickyHeader` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `enableDescription` {`boolean`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `handleWindowResize` - \n\n * `handleWindowScroll` - \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`} - ",
|
|
5035
5337
|
"attributes": [
|
|
5036
5338
|
{
|
|
5037
5339
|
"name": "size",
|
|
@@ -5163,7 +5465,7 @@
|
|
|
5163
5465
|
},
|
|
5164
5466
|
{
|
|
5165
5467
|
"name": "placement",
|
|
5166
|
-
"description": "`placement` {
|
|
5468
|
+
"description": "`placement` {`ComboboxPlacement`} - 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",
|
|
5167
5469
|
"values": [
|
|
5168
5470
|
{
|
|
5169
5471
|
"name": "top"
|
|
@@ -6857,7 +7159,7 @@
|
|
|
6857
7159
|
},
|
|
6858
7160
|
{
|
|
6859
7161
|
"name": "nile-virtual-select",
|
|
6860
|
-
"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\n * `nile-search` {} - Emitted when the user types in the search input. The event payload includes the search query for backend search functionality.\n\n * `nile-scroll` {} - Emitted when the user scrolls within the virtualized container. The event payload includes scroll position information.\n\n * `nile-scroll-start` {} - Emitted when the user starts scrolling within the virtualized container.\n\n * `nile-scroll-end` {} - Emitted when the user stops scrolling and reaches the bottom of the virtualized container (debounced).\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` {`\"small\" | \"medium\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `autoResize` {`boolean`} - Enable automatic resizing of tags area\n\n * `searchEnabled` {`boolean`} - Enable search functionality\n\n * `enableVisibilityEffect` {`boolean`} - \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 * `loading` {`boolean`} - Show loading state using nile-loader\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 * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\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 * `enableTabClose` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `enableDescription` {`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. 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 * `portalManager` - \n\n * `popup` - \n\n * `combobox` {`HTMLElement`} - \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 * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \n\n * `visibilityManager` - \n\n * `data` - Array of all option items for virtual scrolling\n\n * `originalOptionItems` - Original unfiltered option items for search functionality\n\n * `size` {`\"small\" | \"medium\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `autoResize` {`boolean`} - Enable automatic resizing of tags area\n\n * `searchValue` {`string`} - Current search value\n\n * `searchEnabled` {`boolean`} - Enable search functionality\n\n * `enableVisibilityEffect` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - Search input placeholder\n\n * `disableLocalSearch` {`boolean`} - Disable local search filtering\n\n * `optionsLoading` {`boolean`} - Show loading state\n\n * `loading` {`boolean`} - Show loading state using nile-loader\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 * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\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 * `enableTabClose` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `enableDescription` {`boolean`} - \n\n * `showListbox` {`boolean`} - \n\n * `wasShowSelectedCheckedOnClose` {`boolean`} - \n\n * `handleDocumentMouseDown` - \n\n * `handleWindowError` - This is a workaround for an error in the Lit Labs virtualizer.\nSince there are no specific guidelines available to fix the issue,\nwe are catching only the error message related to the virtualizer.\n\n * `handleWindowResize` - \n\n * `handleWindowScroll` - \n\n * `resizeController` - \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`} - ",
|
|
7162
|
+
"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\n * `nile-search` {} - Emitted when the user types in the search input. The event payload includes the search query for backend search functionality.\n\n * `nile-scroll` {} - Emitted when the user scrolls within the virtualized container. The event payload includes scroll position information.\n\n * `nile-scroll-start` {} - Emitted when the user starts scrolling within the virtualized container.\n\n * `nile-scroll-end` {} - Emitted when the user stops scrolling and reaches the bottom of the virtualized container (debounced).\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` {`\"small\" | \"medium\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `autoResize` {`boolean`} - Enable automatic resizing of tags area\n\n * `searchEnabled` {`boolean`} - Enable search functionality\n\n * `enableVisibilityEffect` {`boolean`} - \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 * `loading` {`boolean`} - Show loading state using nile-loader\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` {`ComboboxPlacement`} - 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 * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\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 * `enableTabClose` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `enableDescription` {`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. 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 * `portalManager` - \n\n * `popup` - \n\n * `combobox` {`HTMLElement`} - \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 * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \n\n * `visibilityManager` - \n\n * `data` - Array of all option items for virtual scrolling\n\n * `originalOptionItems` - Original unfiltered option items for search functionality\n\n * `size` {`\"small\" | \"medium\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `autoResize` {`boolean`} - Enable automatic resizing of tags area\n\n * `searchValue` {`string`} - Current search value\n\n * `searchEnabled` {`boolean`} - Enable search functionality\n\n * `enableVisibilityEffect` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - Search input placeholder\n\n * `disableLocalSearch` {`boolean`} - Disable local search filtering\n\n * `optionsLoading` {`boolean`} - Show loading state\n\n * `loading` {`boolean`} - Show loading state using nile-loader\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` {`ComboboxPlacement`} - 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 * `portal` {`boolean`} - When true, the listbox will be appended to the document body instead of the parent container.\nThis is useful when the parent has overflow: hidden, clip-path, or transform applied.\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 * `enableTabClose` {`boolean`} - \n\n * `descriptionSearchEnabled` {`boolean`} - \n\n * `allowHtmlLabel` {`boolean`} - \n\n * `enableDescription` {`boolean`} - \n\n * `showListbox` {`boolean`} - \n\n * `wasShowSelectedCheckedOnClose` {`boolean`} - \n\n * `handleDocumentMouseDown` - \n\n * `handleWindowError` - This is a workaround for an error in the Lit Labs virtualizer.\nSince there are no specific guidelines available to fix the issue,\nwe are catching only the error message related to the virtualizer.\n\n * `handleWindowResize` - \n\n * `handleWindowScroll` - \n\n * `resizeController` - \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`} - ",
|
|
6861
7163
|
"attributes": [
|
|
6862
7164
|
{
|
|
6863
7165
|
"name": "data",
|
|
@@ -6975,7 +7277,7 @@
|
|
|
6975
7277
|
},
|
|
6976
7278
|
{
|
|
6977
7279
|
"name": "placement",
|
|
6978
|
-
"description": "`placement` {
|
|
7280
|
+
"description": "`placement` {`ComboboxPlacement`} - 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",
|
|
6979
7281
|
"values": [
|
|
6980
7282
|
{
|
|
6981
7283
|
"name": "top"
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
|
|
2
|
+
import { fromRollup } from '@web/dev-server-rollup';
|
|
3
|
+
import rollupReplace from '@rollup/plugin-replace';
|
|
4
|
+
|
|
5
|
+
const replace = fromRollup(rollupReplace);
|
|
2
6
|
|
|
3
7
|
/** Use Hot Module replacement by adding --hmr to the start command */
|
|
4
8
|
const hmr = process.argv.includes('--hmr');
|
|
@@ -21,6 +25,11 @@ export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
|
|
21
25
|
plugins: [
|
|
22
26
|
/** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
|
|
23
27
|
// hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
|
|
28
|
+
|
|
29
|
+
replace({
|
|
30
|
+
preventAssignment: true,
|
|
31
|
+
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
32
|
+
}),
|
|
24
33
|
],
|
|
25
34
|
|
|
26
35
|
// See documentation for all available options
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { puppeteerLauncher } from '@web/test-runner-puppeteer';
|
|
2
|
+
import { fromRollup } from '@web/dev-server-rollup';
|
|
3
|
+
import rollupReplace from '@rollup/plugin-replace';
|
|
4
|
+
|
|
5
|
+
const replace = fromRollup(rollupReplace);
|
|
2
6
|
|
|
3
7
|
const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode', 'Multiple versions of Lit loaded', 'The main \'lit-element\' module entrypoint is deprecated'];
|
|
4
8
|
|
|
@@ -47,6 +51,13 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
|
47
51
|
}
|
|
48
52
|
},
|
|
49
53
|
|
|
54
|
+
plugins: [
|
|
55
|
+
replace({
|
|
56
|
+
preventAssignment: true,
|
|
57
|
+
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
58
|
+
}),
|
|
59
|
+
],
|
|
60
|
+
|
|
50
61
|
coverage: true,
|
|
51
62
|
|
|
52
63
|
/** Coverage configuration */
|