@nysds/nys-select 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./nys-select";
2
+ export * from "./nys-option";
@@ -1,5 +1,7 @@
1
1
  import { LitElement } from "lit";
2
2
  import "@nysds/nys-icon";
3
+ import "@nysds/nys-label";
4
+ import "@nysds/nys-errormessage";
3
5
  export declare class NysSelect extends LitElement {
4
6
  id: string;
5
7
  name: string;
@@ -8,6 +10,7 @@ export declare class NysSelect extends LitElement {
8
10
  value: string;
9
11
  disabled: boolean;
10
12
  required: boolean;
13
+ optional: boolean;
11
14
  form: string;
12
15
  showError: boolean;
13
16
  errorMessage: string;
@@ -16,11 +19,29 @@ export declare class NysSelect extends LitElement {
16
19
  get width(): (typeof NysSelect.VALID_WIDTHS)[number];
17
20
  set width(value: string);
18
21
  static styles: import("lit").CSSResult;
22
+ private _hasUserInteracted;
23
+ private _internals;
24
+ /********************** Lifecycle updates **********************/
25
+ static formAssociated: boolean;
26
+ constructor();
27
+ connectedCallback(): void;
28
+ disconnectedCallback(): void;
29
+ firstUpdated(): void;
30
+ formResetCallback(): void;
19
31
  private _handleSlotChange;
20
- private _handleFocus;
21
- private _handleBlur;
32
+ /********************** Form Integration **********************/
33
+ private _setValue;
34
+ private _manageRequire;
35
+ private _setValidityMessage;
36
+ private _validate;
37
+ /********************** Functions **********************/
38
+ checkValidity(): boolean;
39
+ private _handleInvalid;
40
+ /******************** Event Handlers ********************/
22
41
  private _handleChange;
23
42
  private _handleInput;
43
+ private _handleFocus;
44
+ private _handleBlur;
24
45
  updated(changedProperties: Map<string, unknown>): void;
25
46
  render(): import("lit-html").TemplateResult<1>;
26
47
  }
@@ -0,0 +1 @@
1
+ export {};