@nysds/components 1.11.3 → 1.12.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.
- package/dist/.vscode/vscode.css-custom-data.json +6 -0
- package/dist/.vscode/vscode.html-custom-data.json +616 -0
- package/dist/custom-elements.json +279 -568
- package/dist/nysds.es.js +1197 -1317
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +124 -129
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +0 -2
- package/dist/packages/nys-accordion/src/nys-accordion.figma.d.ts +1 -0
- package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +0 -2
- package/dist/packages/nys-alert/src/nys-alert.d.ts +1 -7
- package/dist/packages/nys-alert/src/nys-alert.figma.d.ts +1 -0
- package/dist/packages/nys-avatar/src/nys-avatar.d.ts +0 -2
- package/dist/packages/nys-avatar/src/nys-avatar.figma.d.ts +1 -0
- package/dist/packages/nys-backtotop/src/nys-backtotop.figma.d.ts +1 -0
- package/dist/packages/nys-badge/src/nys-badge.d.ts +2 -8
- package/dist/packages/nys-badge/src/nys-badge.figma.d.ts +1 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +4 -20
- package/dist/packages/nys-button/src/nys-button.figma.d.ts +1 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +2 -8
- package/dist/packages/nys-checkbox/src/nys-checkbox.figma.d.ts +1 -0
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +2 -8
- package/dist/packages/nys-divider/src/nys-divider.figma.d.ts +1 -0
- package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +0 -1
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +1 -5
- package/dist/packages/nys-fileinput/src/nys-fileinput.figma.d.ts +1 -0
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +0 -3
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.figma.d.ts +1 -0
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +0 -3
- package/dist/packages/nys-globalheader/src/nys-globalheader.figma.d.ts +1 -0
- package/dist/packages/nys-icon/src/nys-icon.d.ts +1 -4
- package/dist/packages/nys-icon/src/nys-icon.figma.d.ts +1 -0
- package/dist/packages/nys-modal/src/nys-modal.d.ts +1 -7
- package/dist/packages/nys-modal/src/nys-modal.figma.d.ts +1 -0
- package/dist/packages/nys-pagination/src/nys-pagination.d.ts +0 -3
- package/dist/packages/nys-pagination/src/nys-pagination.figma.d.ts +1 -0
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +1 -7
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.figma.d.ts +1 -0
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +2 -10
- package/dist/packages/nys-select/src/nys-select.d.ts +2 -9
- package/dist/packages/nys-select/src/nys-select.figma.d.ts +1 -0
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +0 -1
- package/dist/packages/nys-skipnav/src/nys-skipnav.figma.d.ts +1 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +3 -11
- package/dist/packages/nys-textarea/src/nys-textarea.figma.d.ts +1 -0
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +3 -11
- package/dist/packages/nys-textinput/src/nys-textinput.figma.d.ts +1 -0
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +1 -7
- package/dist/packages/nys-toggle/src/nys-toggle.figma.d.ts +1 -0
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +21 -9
- package/dist/packages/nys-tooltip/src/nys-tooltip.figma.d.ts +1 -0
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +0 -1
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.figma.d.ts +1 -0
- package/dist/packages/nys-unavheader/src/nys-unavheader.figma.d.ts +1 -0
- package/package.json +8 -8
|
@@ -9,11 +9,9 @@ export declare class NysAccordion extends LitElement {
|
|
|
9
9
|
id: string;
|
|
10
10
|
singleSelect: boolean;
|
|
11
11
|
bordered: boolean;
|
|
12
|
-
/**************** Lifecycle Methods ****************/
|
|
13
12
|
constructor();
|
|
14
13
|
connectedCallback(): void;
|
|
15
14
|
updated(changedProperties: Map<string, any>): void;
|
|
16
|
-
/******************** Functions ********************/
|
|
17
15
|
private _generateUniqueId;
|
|
18
16
|
private _getAccordions;
|
|
19
17
|
private _onAccordionToggle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,12 +5,10 @@ export declare class NysAccordionItem extends LitElement {
|
|
|
5
5
|
heading: string;
|
|
6
6
|
expanded: boolean;
|
|
7
7
|
bordered: boolean;
|
|
8
|
-
/**************** Lifecycle Methods ****************/
|
|
9
8
|
constructor();
|
|
10
9
|
connectedCallback(): void;
|
|
11
10
|
firstUpdated(): void;
|
|
12
11
|
updated(changedProperties: Map<string, any>): void;
|
|
13
|
-
/******************** Functions ********************/
|
|
14
12
|
private _generateUniqueId;
|
|
15
13
|
private _dispatchEvent;
|
|
16
14
|
private _handleExpand;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysAlert extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
-
/********************** Properties **********************/
|
|
5
4
|
id: string;
|
|
6
5
|
heading: string;
|
|
7
6
|
icon: string;
|
|
@@ -12,22 +11,17 @@ export declare class NysAlert extends LitElement {
|
|
|
12
11
|
secondaryAction: string;
|
|
13
12
|
primaryLabel: string;
|
|
14
13
|
secondaryLabel: string;
|
|
14
|
+
type: "base" | "info" | "success" | "warning" | "danger" | "emergency";
|
|
15
15
|
private _alertClosed;
|
|
16
16
|
private _slotHasContent;
|
|
17
|
-
private static readonly VALID_TYPES;
|
|
18
|
-
private _type;
|
|
19
|
-
get type(): string;
|
|
20
|
-
set type(value: string);
|
|
21
17
|
get ariaAttributes(): {
|
|
22
18
|
role: "alert" | "status" | "region";
|
|
23
19
|
ariaLabel: string;
|
|
24
20
|
};
|
|
25
|
-
/**************** Lifecycle Methods ****************/
|
|
26
21
|
private _timeoutId;
|
|
27
22
|
connectedCallback(): void;
|
|
28
23
|
disconnectedCallback(): void;
|
|
29
24
|
firstUpdated(): void;
|
|
30
|
-
/******************** Functions ********************/
|
|
31
25
|
private _generateUniqueId;
|
|
32
26
|
private _getIconName;
|
|
33
27
|
private _checkAltNaming;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysAvatar extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
-
/********************** Properties **********************/
|
|
5
4
|
id: string;
|
|
6
5
|
ariaLabel: string;
|
|
7
6
|
image: string;
|
|
@@ -12,7 +11,6 @@ export declare class NysAvatar extends LitElement {
|
|
|
12
11
|
disabled: boolean;
|
|
13
12
|
lazy: boolean;
|
|
14
13
|
private _slotHasContent;
|
|
15
|
-
/******************** Functions ********************/
|
|
16
14
|
connectedCallback(): void;
|
|
17
15
|
private _handleSlotChange;
|
|
18
16
|
private getContrastForeground;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,14 +3,8 @@ export declare class NysBadge extends LitElement {
|
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
get size(): (typeof NysBadge.VALID_SIZES)[number];
|
|
9
|
-
set size(value: string);
|
|
10
|
-
private static readonly VALID_INTENT;
|
|
11
|
-
private _intent;
|
|
12
|
-
get intent(): (typeof NysBadge.VALID_INTENT)[number];
|
|
13
|
-
set intent(value: string);
|
|
6
|
+
size: "sm" | "md";
|
|
7
|
+
intent: "neutral" | "error" | "success" | "warning";
|
|
14
8
|
prefixLabel: string;
|
|
15
9
|
label: string;
|
|
16
10
|
private _prefixIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,15 +3,9 @@ export declare class NysButton extends LitElement {
|
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
private _size;
|
|
8
|
-
get size(): (typeof NysButton.VALID_SIZES)[number];
|
|
9
|
-
set size(value: string);
|
|
6
|
+
size: "sm" | "md" | "lg";
|
|
10
7
|
fullWidth: boolean;
|
|
11
|
-
|
|
12
|
-
private _variant;
|
|
13
|
-
get variant(): (typeof NysButton.VALID_VARIANTS)[number];
|
|
14
|
-
set variant(value: string);
|
|
8
|
+
variant: "filled" | "outline" | "ghost" | "text";
|
|
15
9
|
inverted: boolean;
|
|
16
10
|
label: string;
|
|
17
11
|
ariaLabel: string;
|
|
@@ -24,26 +18,17 @@ export declare class NysButton extends LitElement {
|
|
|
24
18
|
form: string | null;
|
|
25
19
|
value: string;
|
|
26
20
|
ariaDescription: string;
|
|
27
|
-
|
|
28
|
-
private _type;
|
|
29
|
-
get type(): (typeof NysButton.VALID_TYPES)[number];
|
|
30
|
-
set type(value: string);
|
|
21
|
+
type: "submit" | "reset" | "button";
|
|
31
22
|
onClick: ((event: Event) => void) | null;
|
|
32
23
|
href: string;
|
|
33
|
-
|
|
34
|
-
private _target;
|
|
35
|
-
get target(): (typeof NysButton.VALID_TARGETS)[number];
|
|
36
|
-
set target(value: string);
|
|
24
|
+
target: "_self" | "_blank" | "_parent" | "_top" | "framename";
|
|
37
25
|
getButtonElement(): Promise<HTMLElement | null>;
|
|
38
26
|
private _internals;
|
|
39
|
-
/**************** Lifecycle Methods ****************/
|
|
40
27
|
static formAssociated: boolean;
|
|
41
28
|
constructor();
|
|
42
29
|
connectedCallback(): void;
|
|
43
|
-
/******************** Functions ********************/
|
|
44
30
|
private _generateUniqueId;
|
|
45
31
|
private _manageFormAction;
|
|
46
|
-
/******************** Event Handlers ********************/
|
|
47
32
|
private _handleFocus;
|
|
48
33
|
private _handleBlur;
|
|
49
34
|
private _handleClick;
|
|
@@ -55,7 +40,6 @@ export declare class NysButton extends LitElement {
|
|
|
55
40
|
* In vanilla HTML/JS, clicking with execute the attribute function, BUT now with keydown, hence this solution.
|
|
56
41
|
*/
|
|
57
42
|
private _handleAnyAttributeFunction;
|
|
58
|
-
/******************** Public Methods ********************/
|
|
59
43
|
focus(options?: FocusOptions): void;
|
|
60
44
|
render(): import("lit-html").TemplateResult<1>;
|
|
61
45
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,29 +16,23 @@ export declare class NysCheckbox extends LitElement {
|
|
|
16
16
|
groupExist: boolean;
|
|
17
17
|
tile: boolean;
|
|
18
18
|
inverted: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
get size(): (typeof NysCheckbox.VALID_SIZES)[number];
|
|
22
|
-
set size(value: string);
|
|
19
|
+
tooltip: string;
|
|
20
|
+
size: "sm" | "md";
|
|
23
21
|
getInputElement(): Promise<HTMLInputElement | null>;
|
|
24
22
|
private _internals;
|
|
25
|
-
/********************** Lifecycle updates **********************/
|
|
26
23
|
static formAssociated: boolean;
|
|
27
24
|
constructor();
|
|
28
25
|
connectedCallback(): void;
|
|
29
26
|
disconnectedCallback(): void;
|
|
30
27
|
firstUpdated(): void;
|
|
31
28
|
formResetCallback(): void;
|
|
32
|
-
/********************** Form Integration **********************/
|
|
33
29
|
private _setValue;
|
|
34
30
|
private _manageRequire;
|
|
35
31
|
private _setValidityMessage;
|
|
36
32
|
private _validate;
|
|
37
|
-
/********************** Functions **********************/
|
|
38
33
|
checkValidity(): boolean;
|
|
39
34
|
private _handleInvalid;
|
|
40
35
|
private _manageLabelClick;
|
|
41
|
-
/******************** Event Handlers ********************/
|
|
42
36
|
private _emitChangeEvent;
|
|
43
37
|
private _handleChange;
|
|
44
38
|
private _handleFocus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,23 +10,18 @@ export declare class NysCheckboxgroup extends LitElement {
|
|
|
10
10
|
label: string;
|
|
11
11
|
description: string;
|
|
12
12
|
tile: boolean;
|
|
13
|
-
|
|
13
|
+
tooltip: string;
|
|
14
14
|
inverted: boolean;
|
|
15
15
|
form: string | null;
|
|
16
|
+
size: "sm" | "md";
|
|
16
17
|
private _slottedDescriptionText;
|
|
17
|
-
private static readonly VALID_SIZES;
|
|
18
|
-
private _size;
|
|
19
|
-
get size(): (typeof NysCheckboxgroup.VALID_SIZES)[number];
|
|
20
|
-
set size(value: string);
|
|
21
18
|
private _internals;
|
|
22
|
-
/********************** Lifecycle updates **********************/
|
|
23
19
|
static formAssociated: boolean;
|
|
24
20
|
constructor();
|
|
25
21
|
connectedCallback(): void;
|
|
26
22
|
disconnectedCallback(): void;
|
|
27
23
|
firstUpdated(): void;
|
|
28
24
|
updated(changedProperties: Map<string | symbol, unknown>): void;
|
|
29
|
-
/********************** Functions **********************/
|
|
30
25
|
private _setGroupExist;
|
|
31
26
|
private _setupCheckboxRequired;
|
|
32
27
|
private _manageRequire;
|
|
@@ -37,7 +32,6 @@ export declare class NysCheckboxgroup extends LitElement {
|
|
|
37
32
|
private _updateCheckboxForm;
|
|
38
33
|
private _getSlotDescriptionForAria;
|
|
39
34
|
private _handleInvalid;
|
|
40
|
-
/******************** Event Handlers ********************/
|
|
41
35
|
private _handleCheckboxChange;
|
|
42
36
|
render(): import("lit-html").TemplateResult<1>;
|
|
43
37
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,6 @@ export declare class NysErrorMessage extends LitElement {
|
|
|
5
5
|
errorMessage: string;
|
|
6
6
|
showDivider: boolean;
|
|
7
7
|
private _internals;
|
|
8
|
-
/********************** Lifecycle updates **********************/
|
|
9
8
|
static formAssociated: boolean;
|
|
10
9
|
constructor();
|
|
11
10
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -8,7 +8,7 @@ export declare class NysFileinput extends LitElement {
|
|
|
8
8
|
description: string;
|
|
9
9
|
multiple: boolean;
|
|
10
10
|
form: string | null;
|
|
11
|
-
|
|
11
|
+
tooltip: string;
|
|
12
12
|
accept: string;
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
required: boolean;
|
|
@@ -25,27 +25,23 @@ export declare class NysFileinput extends LitElement {
|
|
|
25
25
|
private get _buttonAriaDescription();
|
|
26
26
|
private get _innerNysButton();
|
|
27
27
|
private _internals;
|
|
28
|
-
/********************** Lifecycle updates **********************/
|
|
29
28
|
static formAssociated: boolean;
|
|
30
29
|
constructor();
|
|
31
30
|
connectedCallback(): void;
|
|
32
31
|
disconnectedCallback(): void;
|
|
33
32
|
firstUpdated(): void;
|
|
34
|
-
/********************** Form Integration **********************/
|
|
35
33
|
private _setValue;
|
|
36
34
|
private _manageRequire;
|
|
37
35
|
private _setValidityMessage;
|
|
38
36
|
private _validate;
|
|
39
37
|
checkValidity(): boolean;
|
|
40
38
|
private _handleInvalid;
|
|
41
|
-
/******************** Functions ********************/
|
|
42
39
|
private _saveSelectedFiles;
|
|
43
40
|
private _processFile;
|
|
44
41
|
private _dispatchChangeEvent;
|
|
45
42
|
private _openFileDialog;
|
|
46
43
|
private _handlePostFileSelectionFocus;
|
|
47
44
|
private _focusFirstFileItemIfSingleMode;
|
|
48
|
-
/******************** Event Handlers ********************/
|
|
49
45
|
private _handleFileChange;
|
|
50
46
|
private _handleFileRemove;
|
|
51
47
|
private _onDragOver;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysGlobalFooter extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
-
/********************** Properties **********************/
|
|
5
4
|
agencyName: string;
|
|
6
5
|
homepageLink: string;
|
|
7
6
|
private slotHasContent;
|
|
8
|
-
/**************** Lifecycle Methods ****************/
|
|
9
7
|
firstUpdated(): void;
|
|
10
|
-
/******************** Functions ********************/
|
|
11
8
|
private _handleSlotChange;
|
|
12
9
|
render(): import("lit-html").TemplateResult<1>;
|
|
13
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysGlobalHeader extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
-
/********************** Properties **********************/
|
|
5
4
|
appName: string;
|
|
6
5
|
agencyName: string;
|
|
7
6
|
homepageLink: string;
|
|
8
7
|
private slotHasContent;
|
|
9
8
|
private isMobileMenuOpen;
|
|
10
|
-
/**************** Lifecycle Methods ****************/
|
|
11
9
|
firstUpdated(): void;
|
|
12
|
-
/******************** Functions ********************/
|
|
13
10
|
private _handleSlotChange;
|
|
14
11
|
private _normalizePath;
|
|
15
12
|
private _toggleMobileMenu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,10 +6,7 @@ export declare class NysIcon extends LitElement {
|
|
|
6
6
|
rotate: string;
|
|
7
7
|
flip: string;
|
|
8
8
|
color: string;
|
|
9
|
-
|
|
10
|
-
private _size;
|
|
11
|
-
get size(): (typeof NysIcon.VALID_TYPES)[number];
|
|
12
|
-
set size(value: string);
|
|
9
|
+
size: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "12" | "14" | "16" | "18" | "20" | "24" | "32" | "40" | "50";
|
|
13
10
|
private getIcon;
|
|
14
11
|
render(): import("lit-html").TemplateResult<1> | null;
|
|
15
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,21 +6,16 @@ export declare class NysModal extends LitElement {
|
|
|
6
6
|
subheading: string;
|
|
7
7
|
open: boolean;
|
|
8
8
|
mandatory: boolean;
|
|
9
|
-
|
|
10
|
-
private _width;
|
|
11
|
-
get width(): (typeof NysModal.VALID_WIDTHS)[number];
|
|
12
|
-
set width(value: string);
|
|
9
|
+
width: "sm" | "md" | "lg";
|
|
13
10
|
private _actionButtonSlot;
|
|
14
11
|
private _prevFocusedElement;
|
|
15
12
|
private _originalBodyOverflow;
|
|
16
13
|
private hasBodySlots;
|
|
17
14
|
private hasActionSlots;
|
|
18
|
-
/**************** Lifecycle Methods ****************/
|
|
19
15
|
constructor();
|
|
20
16
|
connectedCallback(): void;
|
|
21
17
|
disconnectedCallback(): void;
|
|
22
18
|
updated(changeProps: Map<string, any>): Promise<void>;
|
|
23
|
-
/******************** Functions ********************/
|
|
24
19
|
private _hideBodyScroll;
|
|
25
20
|
private _restoreBodyScroll;
|
|
26
21
|
private _savePrevFocused;
|
|
@@ -37,7 +32,6 @@ export declare class NysModal extends LitElement {
|
|
|
37
32
|
* We add the "Close this window" ariaLabel after the initial VO is done
|
|
38
33
|
*/
|
|
39
34
|
private _updateDismissAria;
|
|
40
|
-
/****************** Event Handlers ******************/
|
|
41
35
|
private _handleKeydown;
|
|
42
36
|
private _closeModal;
|
|
43
37
|
render(): "" | import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,14 +6,11 @@ export declare class NysPagination extends LitElement {
|
|
|
6
6
|
currentPage: number;
|
|
7
7
|
totalPages: number;
|
|
8
8
|
_twoBeforeLast: boolean;
|
|
9
|
-
/**************** Lifecycle Methods ****************/
|
|
10
9
|
constructor();
|
|
11
10
|
willUpdate(changedProps: Map<string, unknown>): void;
|
|
12
11
|
connectedCallback(): void;
|
|
13
|
-
/******************** Functions ********************/
|
|
14
12
|
private _clampPage;
|
|
15
13
|
private renderPageButtons;
|
|
16
|
-
/****************** Event Handlers ******************/
|
|
17
14
|
private _handlePageClick;
|
|
18
15
|
render(): TemplateResult<1> | null;
|
|
19
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,21 +12,15 @@ export declare class NysRadiobutton extends LitElement {
|
|
|
12
12
|
value: string;
|
|
13
13
|
inverted: boolean;
|
|
14
14
|
form: string | null;
|
|
15
|
-
|
|
16
|
-
private _size;
|
|
17
|
-
get size(): (typeof NysRadiobutton.VALID_SIZES)[number];
|
|
18
|
-
set size(value: string);
|
|
15
|
+
size: "sm" | "md";
|
|
19
16
|
tile: boolean;
|
|
20
17
|
getInputElement(): Promise<HTMLInputElement | null>;
|
|
21
18
|
formResetUpdate(): void;
|
|
22
19
|
static buttonGroup: Record<string, NysRadiobutton>;
|
|
23
|
-
/********************** Lifecycle updates **********************/
|
|
24
20
|
connectedCallback(): void;
|
|
25
21
|
disconnectedCallback(): void;
|
|
26
22
|
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
27
|
-
/********************** Functions **********************/
|
|
28
23
|
checkValidity(): boolean;
|
|
29
|
-
/******************** Event Handlers ********************/
|
|
30
24
|
private _emitChangeEvent;
|
|
31
25
|
private _handleChange;
|
|
32
26
|
private _handleFocus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,17 +10,13 @@ export declare class NysRadiogroup extends LitElement {
|
|
|
10
10
|
label: string;
|
|
11
11
|
description: string;
|
|
12
12
|
tile: boolean;
|
|
13
|
-
|
|
13
|
+
tooltip: string;
|
|
14
14
|
inverted: boolean;
|
|
15
15
|
form: string | null;
|
|
16
|
+
size: "sm" | "md";
|
|
16
17
|
private selectedValue;
|
|
17
18
|
private _slottedDescriptionText;
|
|
18
|
-
private static readonly VALID_SIZES;
|
|
19
|
-
private _size;
|
|
20
|
-
get size(): (typeof NysRadiogroup.VALID_SIZES)[number];
|
|
21
|
-
set size(value: string);
|
|
22
19
|
private _internals;
|
|
23
|
-
/********************** Lifecycle updates **********************/
|
|
24
20
|
static formAssociated: boolean;
|
|
25
21
|
constructor();
|
|
26
22
|
connectedCallback(): void;
|
|
@@ -28,17 +24,14 @@ export declare class NysRadiogroup extends LitElement {
|
|
|
28
24
|
firstUpdated(): Promise<void>;
|
|
29
25
|
updated(changedProperties: Map<string | symbol, unknown>): void;
|
|
30
26
|
formResetCallback(): void;
|
|
31
|
-
/********************** Form Integration **********************/
|
|
32
27
|
private _setValue;
|
|
33
28
|
private _setRadioButtonRequire;
|
|
34
29
|
private _manageRequire;
|
|
35
30
|
checkValidity(): boolean;
|
|
36
31
|
private _initializeCheckedRadioValue;
|
|
37
|
-
/********************** Core Keyboard & Click Logic **********************/
|
|
38
32
|
private _getAllRadios;
|
|
39
33
|
private _handleKeyDown;
|
|
40
34
|
private _updateGroupTabIndex;
|
|
41
|
-
/********************** Functions **********************/
|
|
42
35
|
private _initializeChildAttributes;
|
|
43
36
|
private _updateRadioButtonsSize;
|
|
44
37
|
private _updateRadioButtonsTile;
|
|
@@ -46,7 +39,6 @@ export declare class NysRadiogroup extends LitElement {
|
|
|
46
39
|
private _updateRadioButtonsShowError;
|
|
47
40
|
private _updateRadioButtonsForm;
|
|
48
41
|
private _getSlotDescriptionForAria;
|
|
49
|
-
/******************** Event Handlers ********************/
|
|
50
42
|
private _handleRadioButtonChange;
|
|
51
43
|
private _handleInvalid;
|
|
52
44
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -9,19 +9,15 @@ export declare class NysSelect extends LitElement {
|
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
required: boolean;
|
|
11
11
|
optional: boolean;
|
|
12
|
-
|
|
12
|
+
tooltip: string;
|
|
13
13
|
form: string | null;
|
|
14
14
|
inverted: boolean;
|
|
15
15
|
showError: boolean;
|
|
16
16
|
errorMessage: string;
|
|
17
|
-
|
|
18
|
-
private _width;
|
|
19
|
-
get width(): (typeof NysSelect.VALID_WIDTHS)[number];
|
|
20
|
-
set width(value: string);
|
|
17
|
+
width: "sm" | "md" | "lg" | "full";
|
|
21
18
|
private _originalErrorMessage;
|
|
22
19
|
private _hasUserInteracted;
|
|
23
20
|
private _internals;
|
|
24
|
-
/********************** Lifecycle updates **********************/
|
|
25
21
|
static formAssociated: boolean;
|
|
26
22
|
constructor();
|
|
27
23
|
connectedCallback(): void;
|
|
@@ -29,15 +25,12 @@ export declare class NysSelect extends LitElement {
|
|
|
29
25
|
firstUpdated(): void;
|
|
30
26
|
formResetCallback(): void;
|
|
31
27
|
private _handleSlotChange;
|
|
32
|
-
/********************** Form Integration **********************/
|
|
33
28
|
private _setValue;
|
|
34
29
|
private _manageRequire;
|
|
35
30
|
private _setValidityMessage;
|
|
36
31
|
private _validate;
|
|
37
|
-
/********************** Functions **********************/
|
|
38
32
|
checkValidity(): boolean;
|
|
39
33
|
private _handleInvalid;
|
|
40
|
-
/******************** Event Handlers ********************/
|
|
41
34
|
private _handleChange;
|
|
42
35
|
private _handleFocus;
|
|
43
36
|
private _handleBlur;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,38 +11,30 @@ export declare class NysTextarea extends LitElement {
|
|
|
11
11
|
readonly: boolean;
|
|
12
12
|
required: boolean;
|
|
13
13
|
optional: boolean;
|
|
14
|
-
|
|
14
|
+
tooltip: string;
|
|
15
15
|
inverted: boolean;
|
|
16
16
|
form: string | null;
|
|
17
17
|
maxlength: number | null;
|
|
18
|
-
|
|
19
|
-
width: (typeof NysTextarea.VALID_WIDTHS)[number];
|
|
18
|
+
width: "sm" | "md" | "lg" | "full";
|
|
20
19
|
rows: number;
|
|
21
|
-
|
|
22
|
-
private _resize;
|
|
23
|
-
get resize(): (typeof NysTextarea.VALID_RESIZE)[number];
|
|
24
|
-
set resize(value: string);
|
|
20
|
+
resize: "vertical" | "none";
|
|
25
21
|
showError: boolean;
|
|
26
22
|
errorMessage: string;
|
|
27
23
|
updated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
28
24
|
private _hasUserInteracted;
|
|
29
25
|
private _internals;
|
|
30
|
-
/********************** Lifecycle updates **********************/
|
|
31
26
|
static formAssociated: boolean;
|
|
32
27
|
constructor();
|
|
33
28
|
connectedCallback(): void;
|
|
34
29
|
disconnectedCallback(): void;
|
|
35
30
|
firstUpdated(): void;
|
|
36
31
|
formResetCallback(): void;
|
|
37
|
-
/********************** Form Integration **********************/
|
|
38
32
|
private _setValue;
|
|
39
33
|
private _manageRequire;
|
|
40
34
|
private _setValidityMessage;
|
|
41
35
|
private _validate;
|
|
42
|
-
/********************** Functions **********************/
|
|
43
36
|
checkValidity(): boolean;
|
|
44
37
|
private _handleInvalid;
|
|
45
|
-
/******************** Event Handlers ********************/
|
|
46
38
|
private _handleInput;
|
|
47
39
|
private _handleFocus;
|
|
48
40
|
private _handleBlur;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,10 +3,7 @@ export declare class NysTextinput extends LitElement {
|
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
private _type;
|
|
8
|
-
get type(): (typeof NysTextinput.VALID_TYPES)[number];
|
|
9
|
-
set type(value: string);
|
|
6
|
+
type: "email" | "number" | "password" | "search" | "tel" | "text" | "url";
|
|
10
7
|
label: string;
|
|
11
8
|
description: string;
|
|
12
9
|
placeholder: string;
|
|
@@ -15,12 +12,11 @@ export declare class NysTextinput extends LitElement {
|
|
|
15
12
|
readonly: boolean;
|
|
16
13
|
required: boolean;
|
|
17
14
|
optional: boolean;
|
|
18
|
-
|
|
15
|
+
tooltip: string;
|
|
19
16
|
form: string | null;
|
|
20
17
|
pattern: string;
|
|
21
18
|
maxlength: number | null;
|
|
22
|
-
|
|
23
|
-
width: (typeof NysTextinput.VALID_WIDTHS)[number];
|
|
19
|
+
width: "sm" | "md" | "lg" | "full";
|
|
24
20
|
step: number | null;
|
|
25
21
|
min: number | null;
|
|
26
22
|
max: number | null;
|
|
@@ -32,7 +28,6 @@ export declare class NysTextinput extends LitElement {
|
|
|
32
28
|
private _hasUserInteracted;
|
|
33
29
|
private _internals;
|
|
34
30
|
private _maskPatterns;
|
|
35
|
-
/********************** Lifecycle updates **********************/
|
|
36
31
|
static formAssociated: boolean;
|
|
37
32
|
constructor();
|
|
38
33
|
connectedCallback(): void;
|
|
@@ -40,18 +35,15 @@ export declare class NysTextinput extends LitElement {
|
|
|
40
35
|
firstUpdated(): void;
|
|
41
36
|
updated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
42
37
|
formResetCallback(): void;
|
|
43
|
-
/********************** Form Integration **********************/
|
|
44
38
|
private _setValue;
|
|
45
39
|
private _manageRequire;
|
|
46
40
|
private _setValidityMessage;
|
|
47
41
|
private _validate;
|
|
48
|
-
/********************** Functions **********************/
|
|
49
42
|
checkValidity(): boolean;
|
|
50
43
|
private _handleInvalid;
|
|
51
44
|
private _togglePasswordVisibility;
|
|
52
45
|
private _updateOverlay;
|
|
53
46
|
private _applyMask;
|
|
54
|
-
/******************** Event Handlers ********************/
|
|
55
47
|
private _handleInput;
|
|
56
48
|
private _handleFocus;
|
|
57
49
|
private _handleBlur;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,18 +11,12 @@ export declare class NysToggle extends LitElement {
|
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
noIcon: boolean;
|
|
13
13
|
inverted: boolean;
|
|
14
|
-
|
|
15
|
-
private _size;
|
|
16
|
-
get size(): (typeof NysToggle.VALID_SIZES)[number];
|
|
17
|
-
set size(value: string);
|
|
14
|
+
size: "sm" | "md";
|
|
18
15
|
private _internals;
|
|
19
|
-
/********************** Lifecycle updates **********************/
|
|
20
16
|
static formAssociated: boolean;
|
|
21
17
|
constructor();
|
|
22
18
|
connectedCallback(): void;
|
|
23
|
-
/********************** Form Integration **********************/
|
|
24
19
|
updated(changedProperties: Map<string, any>): void;
|
|
25
|
-
/********************** Event Handlers **********************/
|
|
26
20
|
private _emitChangeEvent;
|
|
27
21
|
private _handleFocus;
|
|
28
22
|
private _handleBlur;
|