@aquera/nile-elements 0.1.73-beta-1.9 → 0.1.74-beta-1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +5 -0
  2. package/demo/index.html +24 -21
  3. package/dist/index.js +21 -10
  4. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  5. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  6. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
  7. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
  8. package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +10 -0
  9. package/dist/nile-filter-chip/nile-filter-chip.esm.js +1 -1
  10. package/dist/nile-input/nile-input.cjs.js +1 -1
  11. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  12. package/dist/nile-input/nile-input.esm.js +2 -2
  13. package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
  14. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
  15. package/dist/nile-option-group/nile-option-group.esm.js +1 -1
  16. package/dist/nile-radio/nile-radio.cjs.js +1 -1
  17. package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
  18. package/dist/nile-radio/nile-radio.esm.js +2 -2
  19. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  20. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  21. package/dist/nile-radio-group/nile-radio-group.esm.js +2 -2
  22. package/dist/nile-select/nile-select.cjs.js +1 -1
  23. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  24. package/dist/nile-select/nile-select.esm.js +3 -2
  25. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +10 -0
  26. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  27. package/dist/src/nile-filter-chip/nile-filter-chip.js +1 -1
  28. package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
  29. package/dist/src/nile-input/nile-input.d.ts +1 -0
  30. package/dist/src/nile-input/nile-input.js +4 -1
  31. package/dist/src/nile-input/nile-input.js.map +1 -1
  32. package/dist/src/nile-option-group/nile-option-group.js +1 -1
  33. package/dist/src/nile-option-group/nile-option-group.js.map +1 -1
  34. package/dist/src/nile-radio/nile-radio.d.ts +1 -0
  35. package/dist/src/nile-radio/nile-radio.js +8 -1
  36. package/dist/src/nile-radio/nile-radio.js.map +1 -1
  37. package/dist/src/nile-radio-group/nile-radio-group.d.ts +4 -1
  38. package/dist/src/nile-radio-group/nile-radio-group.js +25 -2
  39. package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  40. package/dist/src/nile-select/nile-select.d.ts +4 -1
  41. package/dist/src/nile-select/nile-select.js +13 -1
  42. package/dist/src/nile-select/nile-select.js.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +1 -1
  45. package/src/nile-filter-chip/nile-filter-chip.css.ts +10 -0
  46. package/src/nile-filter-chip/nile-filter-chip.ts +1 -1
  47. package/src/nile-input/nile-input.ts +5 -1
  48. package/src/nile-option-group/nile-option-group.ts +1 -1
  49. package/src/nile-radio/nile-radio.ts +7 -1
  50. package/src/nile-radio-group/nile-radio-group.ts +26 -4
  51. package/src/nile-select/nile-select.ts +13 -3
  52. package/vscode-html-custom-data.json +18 -3
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.73-beta-1.9",
6
+ "version": "0.1.74-beta-1.0",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -131,6 +131,16 @@ export const styles = css`
131
131
  margin-right: 12px;
132
132
  }
133
133
 
134
+ .badge{
135
+ display: inline-flex;
136
+ align-items: center;
137
+ height: 20px;
138
+ }
139
+
140
+ nile-badge::part(content) {
141
+ line-height: 20px;
142
+ }
143
+
134
144
  `;
135
145
 
136
146
  export default [styles];
@@ -88,7 +88,7 @@ export class NileFilterChip extends NileElement {
88
88
  ${this.viewMoreCount
89
89
  ? html`
90
90
  <span class="badge-wrapper">
91
- <nile-badge variant="primary" pilltype="pill-color">
91
+ <nile-badge class="badge" part="badge" variant="primary" pilltype="pill-color" exportparts="content, base">
92
92
  +${this.viewMoreCount}
93
93
  </nile-badge>
94
94
  </span>
@@ -179,7 +179,7 @@ export class NileInput extends NileElement implements NileFormControl {
179
179
  @property() autocomplete: string = 'off';
180
180
 
181
181
  /** Indicates that the input should receive focus on page load. */
182
- @property({ type: Boolean }) autofocus: boolean;
182
+ @property({ type: Boolean, attribute: true, reflect: true }) autofocus: boolean;
183
183
 
184
184
  /** Used to customize the label or icon of the Enter key on virtual keyboards. */
185
185
  @property() enterkeyhint:
@@ -501,6 +501,10 @@ export class NileInput extends NileElement implements NileFormControl {
501
501
  this.formControlController.updateValidity();
502
502
  }
503
503
 
504
+ public inputFocus() {
505
+ this.input.focus();
506
+ }
507
+
504
508
  render() {
505
509
  const hasLabelSlot = this.hasSlotController.test('label');
506
510
  const hasHelpTextSlot = this.hasSlotController.test('help-text');
@@ -19,7 +19,7 @@ export class NileOptionGroup extends NileElement {
19
19
  }
20
20
 
21
21
  @property({type: String, reflect: true, attribute: true}) name: string = "";
22
- @property({type: Object, attribute: true}) data: OptionGroupData | null = null;
22
+ @property({ type: Object, reflect: true, attribute: true}) data: OptionGroupData | null = null;
23
23
 
24
24
  private checkForImageOrIcon() {
25
25
  return this.data?.prefix?.icon?.name || this.data?.prefix?.image?.src || this.data?.prefix?.prefixText;
@@ -51,6 +51,9 @@ export class NileRadio extends NileElement {
51
51
  /** The radio's labelborder. */
52
52
  @property({ type: Boolean, reflect: true }) islabelborder = false;
53
53
 
54
+
55
+ @property({ type: Boolean, reflect: true }) allowUncheck = false;
56
+
54
57
  connectedCallback() {
55
58
  super.connectedCallback();
56
59
  this.handleBlur = this.handleBlur.bind(this);
@@ -85,7 +88,10 @@ export class NileRadio extends NileElement {
85
88
  }
86
89
 
87
90
  private handleClick() {
88
- if (!this.disabled) {
91
+
92
+ if(this.allowUncheck && !this.disabled) {
93
+ this.checked = !this.checked;
94
+ } else if (!this.disabled) {
89
95
  this.checked = true;
90
96
  }
91
97
  }
@@ -6,7 +6,7 @@ import { html } from 'lit';
6
6
  import { watch } from '../internal/watch';
7
7
  import NileElement from '../internal/nile-element';
8
8
  import styles from './nile-radio-group.css';
9
- import type { CSSResultGroup } from 'lit';
9
+ import type { CSSResultGroup, PropertyValues } from 'lit';
10
10
  import type NileRadio from '../nile-radio/nile-radio';
11
11
 
12
12
  /**
@@ -73,6 +73,9 @@ export class NileRadioGroup extends NileElement {
73
73
  /** The radio's labelborder for whole gp. */
74
74
  @property({ type: Boolean, reflect: true }) islabelborder = false;
75
75
 
76
+ /** Allow the radio to be unchecked. */
77
+ @property({ type: Boolean, reflect: true, attribute: true }) allowUncheckGroup = false;
78
+
76
79
  connectedCallback() {
77
80
  super.connectedCallback();
78
81
  this.defaultValue = this.value;
@@ -99,11 +102,30 @@ export class NileRadioGroup extends NileElement {
99
102
  }
100
103
 
101
104
  this.value = target.value;
102
- radios.forEach(radio => (radio.checked = radio === target));
105
+ if (!this.allowUncheckGroup) {
106
+ radios.forEach(radio => {
107
+ radio.checked = radio === target;
108
+ });
109
+ }
103
110
 
104
- if (this.value !== oldValue) {
105
- this.emit('change',{value: this.value });
111
+ if (!this.allowUncheckGroup && this.value !== oldValue) {
112
+ this.emit('change', { value: this.value});
106
113
  this.emit('input');
114
+ } else if (this.allowUncheckGroup) {
115
+ this.emit('change', { value: this.value , checked: target.checked});
116
+ this.emit('input');
117
+ }
118
+ }
119
+
120
+ protected updated(changedProperties: PropertyValues): void {
121
+ super.updated(changedProperties);
122
+
123
+ if (changedProperties.has('allowUncheckGroup')) {
124
+ if (this.allowUncheckGroup) {
125
+ this.getAllRadios().forEach(radio => {
126
+ radio.allowUncheck = true;
127
+ });
128
+ }
107
129
  }
108
130
  }
109
131
 
@@ -118,7 +118,8 @@ export class NileSelect extends NileElement implements NileFormControl{
118
118
  private typeToSelectString = '';
119
119
  private typeToSelectTimeout: number;
120
120
  private scrollTimeout: number | undefined;
121
- private scrolling = false
121
+ private scrolling = false;
122
+ private options: NileOption[] = [];
122
123
 
123
124
  @query('.select') popup: NilePopup;
124
125
  @query('.select__combobox') combobox: HTMLSlotElement;
@@ -269,6 +270,9 @@ export class NileSelect extends NileElement implements NileFormControl{
269
270
  /** To enable the group header in the select */
270
271
  @property({ type: Boolean, reflect: true, attribute: true }) enableGroupHeader = false;
271
272
 
273
+ /** To auto focus the search input when the select is opened */
274
+ @property({ type: Boolean, reflect: true, attribute: true }) autoFocusSearch = false;
275
+
272
276
  /** Gets the validity state object */
273
277
  get validity() {
274
278
  return this.valueInput?.validity;
@@ -310,8 +314,6 @@ export class NileSelect extends NileElement implements NileFormControl{
310
314
  this.emit('nile-destroy');
311
315
  }
312
316
 
313
- private options: NileOption[] = [];
314
-
315
317
  protected updated(_changedProperties: PropertyValues): void {
316
318
  if(_changedProperties.has('multiple')) {
317
319
  this.setCheckBoxInOption(this.multiple as boolean);
@@ -986,6 +988,9 @@ export class NileSelect extends NileElement implements NileFormControl{
986
988
  this.filterOptions(this.searchValue);
987
989
 
988
990
  this.emit('nile-after-show', { value: this.value, name: this.name });
991
+ if (this.autoFocusSearch) {
992
+ this.handleInputAfterInit();
993
+ }
989
994
  } else {
990
995
  // Hide
991
996
  this.emit('nile-hide', { value: this.value, name: this.name });
@@ -1157,6 +1162,10 @@ export class NileSelect extends NileElement implements NileFormControl{
1157
1162
  }, 1);
1158
1163
  }
1159
1164
 
1165
+ handleInputAfterInit() {
1166
+ this.shadowRoot?.querySelector('nile-input')?.inputFocus();
1167
+ }
1168
+
1160
1169
  render() {
1161
1170
  if(this.enableVirtualScroll) {
1162
1171
  return this.virtualScrollHelper.renderVirtualizedContent();
@@ -1412,6 +1421,7 @@ export class NileSelect extends NileElement implements NileFormControl{
1412
1421
  @nile-input=${this.handleSearchChange}
1413
1422
  @nile-focus=${this.handleSearchFocus}
1414
1423
  @nile-change="${this.onInputChange}"
1424
+ @nile-after-init=${this.handleInputAfterInit}
1415
1425
  >
1416
1426
  <nile-icon name="search" slot="suffix"> </nile-icon>
1417
1427
  </nile-input>
@@ -2867,7 +2867,7 @@
2867
2867
  },
2868
2868
  {
2869
2869
  "name": "nile-radio-group",
2870
- "description": "Events:\n\n * `change` {} - Emitted when the radio group's selected value changes.\n\n * `input` {} - Emitted when the radio group receives user input.\n\n * `invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The default slot where `<nile-radio>` or `<nile-radio-button>` elements are placed.\n\n * `label` {} - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`\nattribute.\n\nAttributes:\n\n * `label` {`string`} - The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.\n\n * `name` {`string`} - The name of the radio group, submitted as a name/value pair with form data.\n\n * `value` {`string`} - The current value of the radio group, submitted as a name/value pair with form data.\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`} - Ensures a child radio is checked before allowing the containing form to submit.\n\n * `labelInline` {`boolean`} - Used to show radio in inline or not\n\n * `disabled` {`boolean`} - Used to disabled or not\n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `islabelborder` {`boolean`} - The radio's labelborder for whole gp.\n\nProperties:\n\n * `styles` - \n\n * `hasSlotController` - \n\n * `customValidityMessage` {`string`} - \n\n * `defaultSlot` {`HTMLSlotElement`} - \n\n * `hasButtonGroup` {`boolean`} - \n\n * `defaultValue` {`string`} - \n\n * `label` {`string`} - The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.\n\n * `name` {`string`} - The name of the radio group, submitted as a name/value pair with form data.\n\n * `value` {`string`} - The current value of the radio group, submitted as a name/value pair with form data.\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`} - Ensures a child radio is checked before allowing the containing form to submit.\n\n * `labelInline` {`boolean`} - Used to show radio in inline or not\n\n * `disabled` {`boolean`} - Used to disabled or not\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `islabelborder` {`boolean`} - The radio's labelborder for whole gp.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
2870
+ "description": "Events:\n\n * `change` {} - Emitted when the radio group's selected value changes.\n\n * `input` {} - Emitted when the radio group receives user input.\n\n * `invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The default slot where `<nile-radio>` or `<nile-radio-button>` elements are placed.\n\n * `label` {} - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`\nattribute.\n\nAttributes:\n\n * `label` {`string`} - The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.\n\n * `name` {`string`} - The name of the radio group, submitted as a name/value pair with form data.\n\n * `value` {`string`} - The current value of the radio group, submitted as a name/value pair with form data.\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`} - Ensures a child radio is checked before allowing the containing form to submit.\n\n * `labelInline` {`boolean`} - Used to show radio in inline or not\n\n * `disabled` {`boolean`} - Used to disabled or not\n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `islabelborder` {`boolean`} - The radio's labelborder for whole gp.\n\n * `allowUncheckGroup` {`boolean`} - Allow the radio to be unchecked.\n\nProperties:\n\n * `styles` - \n\n * `hasSlotController` - \n\n * `customValidityMessage` {`string`} - \n\n * `defaultSlot` {`HTMLSlotElement`} - \n\n * `hasButtonGroup` {`boolean`} - \n\n * `defaultValue` {`string`} - \n\n * `label` {`string`} - The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.\n\n * `name` {`string`} - The name of the radio group, submitted as a name/value pair with form data.\n\n * `value` {`string`} - The current value of the radio group, submitted as a name/value pair with form data.\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`} - Ensures a child radio is checked before allowing the containing form to submit.\n\n * `labelInline` {`boolean`} - Used to show radio in inline or not\n\n * `disabled` {`boolean`} - Used to disabled or not\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `islabelborder` {`boolean`} - The radio's labelborder for whole gp.\n\n * `allowUncheckGroup` {`boolean`} - Allow the radio to be unchecked.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
2871
2871
  "attributes": [
2872
2872
  {
2873
2873
  "name": "label",
@@ -2913,6 +2913,11 @@
2913
2913
  "description": "`islabelborder` {`boolean`} - The radio's labelborder for whole gp.\n\nProperty: islabelborder\n\nDefault: false",
2914
2914
  "valueSet": "v"
2915
2915
  },
2916
+ {
2917
+ "name": "allowUncheckGroup",
2918
+ "description": "`allowUncheckGroup` {`boolean`} - Allow the radio to be unchecked.\n\nProperty: allowUncheckGroup\n\nDefault: false",
2919
+ "valueSet": "v"
2920
+ },
2916
2921
  {
2917
2922
  "name": "onchange",
2918
2923
  "description": "`change` {} - Emitted when the radio group's selected value changes."
@@ -2929,7 +2934,7 @@
2929
2934
  },
2930
2935
  {
2931
2936
  "name": "nile-radio",
2932
- "description": "Nile icon component.\n\nEvents:\n\n * `blur` {} - Emitted when the control loses focus.\n\n * `focus` {} - Emitted when the control gains focus.\n\nSlots:\n\n * ` ` {} - The radio's label.\n\nAttributes:\n\n * `checked` {`boolean`} - \n\n * `value` {`string`} - The radio's value. When selected, the radio group will receive this value.\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The radio's size.\n\n * `disabled` {`boolean`} - Disables the radio.\n\n * `islabelborder` {`boolean`} - The radio's labelborder.\n\nProperties:\n\n * `styles` - \n\n * `checked` {`boolean`} - \n\n * `hasFocus` {`boolean`} - \n\n * `value` {`string`} - The radio's value. When selected, the radio group will receive this value.\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The radio's size.\n\n * `disabled` {`boolean`} - Disables the radio.\n\n * `islabelborder` {`boolean`} - The radio's labelborder.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
2937
+ "description": "Nile icon component.\n\nEvents:\n\n * `blur` {} - Emitted when the control loses focus.\n\n * `focus` {} - Emitted when the control gains focus.\n\nSlots:\n\n * ` ` {} - The radio's label.\n\nAttributes:\n\n * `checked` {`boolean`} - \n\n * `value` {`string`} - The radio's value. When selected, the radio group will receive this value.\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The radio's size.\n\n * `disabled` {`boolean`} - Disables the radio.\n\n * `islabelborder` {`boolean`} - The radio's labelborder.\n\n * `allowUncheck` {`boolean`} - \n\nProperties:\n\n * `styles` - \n\n * `checked` {`boolean`} - \n\n * `hasFocus` {`boolean`} - \n\n * `value` {`string`} - The radio's value. When selected, the radio group will receive this value.\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The radio's size.\n\n * `disabled` {`boolean`} - Disables the radio.\n\n * `islabelborder` {`boolean`} - The radio's labelborder.\n\n * `allowUncheck` {`boolean`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
2933
2938
  "attributes": [
2934
2939
  {
2935
2940
  "name": "checked",
@@ -2965,6 +2970,11 @@
2965
2970
  "description": "`islabelborder` {`boolean`} - The radio's labelborder.\n\nProperty: islabelborder\n\nDefault: false",
2966
2971
  "valueSet": "v"
2967
2972
  },
2973
+ {
2974
+ "name": "allowUncheck",
2975
+ "description": "`allowUncheck` {`boolean`} - \n\nProperty: allowUncheck\n\nDefault: false",
2976
+ "valueSet": "v"
2977
+ },
2968
2978
  {
2969
2979
  "name": "onblur",
2970
2980
  "description": "`blur` {} - Emitted when the control loses focus."
@@ -3013,7 +3023,7 @@
3013
3023
  },
3014
3024
  {
3015
3025
  "name": "nile-select",
3016
- "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\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` {`string | 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 * `enableGroupHeader` {`boolean`} - To enable the group header in the select\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 * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \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` {`string | 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 * `enableGroupHeader` {`boolean`} - To enable the group header in the select\n\n * `options` {`NileOption[]`} - \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`} - ",
3026
+ "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\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` {`string | 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 * `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 * `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 * `scrollTimeout` {`number | undefined`} - \n\n * `scrolling` {`boolean`} - \n\n * `options` {`NileOption[]`} - \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` {`string | 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 * `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 * `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`} - ",
3017
3027
  "attributes": [
3018
3028
  {
3019
3029
  "name": "size",
@@ -3164,6 +3174,11 @@
3164
3174
  "description": "`enableGroupHeader` {`boolean`} - To enable the group header in the select\n\nProperty: enableGroupHeader\n\nDefault: false",
3165
3175
  "valueSet": "v"
3166
3176
  },
3177
+ {
3178
+ "name": "autoFocusSearch",
3179
+ "description": "`autoFocusSearch` {`boolean`} - To auto focus the search input when the select is opened\n\nProperty: autoFocusSearch\n\nDefault: false",
3180
+ "valueSet": "v"
3181
+ },
3167
3182
  {
3168
3183
  "name": "name",
3169
3184
  "description": "`name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\nProperty: name\n\nDefault: "