@sebgroup/green-core 1.85.3 → 1.86.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/components/button/button.component.d.ts +1 -0
- package/components/button/button.component.js +3 -0
- package/components/datepicker/datepicker.component.d.ts +1 -0
- package/components/datepicker/datepicker.component.js +3 -0
- package/components/filter-chips/filter-chips.component.d.ts +1 -0
- package/components/filter-chips/filter-chips.component.js +4 -1
- package/components/form/form-control.d.ts +3 -2
- package/components/form/form-control.js +0 -4
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/input/input.component.d.ts +1 -0
- package/components/input/input.component.js +3 -0
- package/components/popover/popover.component.js +12 -1
- package/components/radio/radio-group/radio-group.component.d.ts +1 -0
- package/components/radio/radio-group/radio-group.component.js +3 -0
- package/components/select/select.component.d.ts +1 -0
- package/components/select/select.component.js +3 -0
- package/components/textarea/textarea.component.d.ts +1 -0
- package/components/textarea/textarea.component.js +3 -0
- package/generated/react/button/index.d.ts +1 -1
- package/generated/react/checkbox/index.d.ts +1 -1
- package/generated/react/datepicker/index.d.ts +1 -1
- package/generated/react/fab/index.d.ts +1 -1
- package/generated/react/filter-chips/index.d.ts +1 -1
- package/generated/react/index.d.ts +1 -1
- package/generated/react/index.js +1 -1
- package/generated/react/input/index.d.ts +1 -1
- package/generated/react/radio-group/index.d.ts +1 -1
- package/generated/react/select/index.d.ts +1 -1
- package/generated/react/textarea/index.d.ts +1 -1
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -53,6 +53,7 @@ declare class Button extends GdsFormControlElement<any> {
|
|
|
53
53
|
private _mainSlot?;
|
|
54
54
|
private _button?;
|
|
55
55
|
connectedCallback(): void;
|
|
56
|
+
focus(options?: FocusOptions): void;
|
|
56
57
|
render(): import("lit-html").TemplateResult;
|
|
57
58
|
protected _getValidityAnchor(): HTMLElement;
|
|
58
59
|
private _attributeChanged;
|
|
@@ -68,6 +68,9 @@ class Button extends GdsFormControlElement {
|
|
|
68
68
|
this.setAttribute("role", "none");
|
|
69
69
|
TransitionalStyles.instance.apply(this, "gds-button");
|
|
70
70
|
}
|
|
71
|
+
focus(options) {
|
|
72
|
+
this._getValidityAnchor()?.focus(options);
|
|
73
|
+
}
|
|
71
74
|
render() {
|
|
72
75
|
const buttonClasses = {
|
|
73
76
|
button: true,
|
|
@@ -112,6 +112,7 @@ declare class Datepicker extends GdsFormControlElement<Date> {
|
|
|
112
112
|
private _elField;
|
|
113
113
|
constructor();
|
|
114
114
|
connectedCallback(): void;
|
|
115
|
+
focus(options?: FocusOptions): void;
|
|
115
116
|
render(): any;
|
|
116
117
|
protected _getValidityAnchor(): HTMLElement;
|
|
117
118
|
private _handleValueChange;
|
|
@@ -282,6 +282,9 @@ let Datepicker = class extends GdsFormControlElement {
|
|
|
282
282
|
super.connectedCallback();
|
|
283
283
|
TransitionalStyles.instance.apply(this, "gds-datepicker");
|
|
284
284
|
}
|
|
285
|
+
focus(options) {
|
|
286
|
+
this._getValidityAnchor()?.focus(options);
|
|
287
|
+
}
|
|
285
288
|
render() {
|
|
286
289
|
return html`
|
|
287
290
|
${when(
|
|
@@ -41,6 +41,7 @@ export declare class GdsFilterChips<ValueT = any> extends GdsFormControlElement<
|
|
|
41
41
|
private _collapsed;
|
|
42
42
|
private _elSlot;
|
|
43
43
|
render(): any;
|
|
44
|
+
focus(options?: FocusOptions): void;
|
|
44
45
|
protected _getValidityAnchor(): HTMLElement;
|
|
45
46
|
private _handleResize;
|
|
46
47
|
private _updateSelectedFromValue;
|
|
@@ -83,8 +83,11 @@ let GdsFilterChips = class extends GdsFormControlElement {
|
|
|
83
83
|
></slot>
|
|
84
84
|
</div>`;
|
|
85
85
|
}
|
|
86
|
+
focus(options) {
|
|
87
|
+
this.chips[0]?.focus(options);
|
|
88
|
+
}
|
|
86
89
|
_getValidityAnchor() {
|
|
87
|
-
return this;
|
|
90
|
+
return this.shadowRoot?.querySelector("div");
|
|
88
91
|
}
|
|
89
92
|
_handleResize() {
|
|
90
93
|
if (!this.rowCollapse)
|
|
@@ -67,9 +67,10 @@ export declare abstract class GdsFormControlElement<ValueT = any> extends GdsEle
|
|
|
67
67
|
protected formResetCallback(): void;
|
|
68
68
|
protected formAssociatedCallback(form?: HTMLFormElement): void;
|
|
69
69
|
protected _handleFormSubmit(e: Event): void;
|
|
70
|
-
focus(options?: FocusOptions | undefined): void;
|
|
71
70
|
/**
|
|
72
|
-
* This should return a reference to the HTML element that will
|
|
71
|
+
* This should return a reference to the HTML element that the browser will refer to when the form control is invalid.
|
|
72
|
+
* The reference is used when setting the validity state in ElementInternals.
|
|
73
|
+
* For reference: https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setValidity#anchor
|
|
73
74
|
*/
|
|
74
75
|
protected abstract _getValidityAnchor(): HTMLElement;
|
|
75
76
|
}
|
|
@@ -140,10 +140,6 @@ class GdsFormControlElement extends GdsElement {
|
|
|
140
140
|
if (!this.validity.valid)
|
|
141
141
|
e.preventDefault();
|
|
142
142
|
}
|
|
143
|
-
// TODO: This needs to be handled on a component by component basis, since it's not always the validity anchor that should be the focus reciever.
|
|
144
|
-
focus(options) {
|
|
145
|
-
this._getValidityAnchor().focus(options);
|
|
146
|
-
}
|
|
147
143
|
}
|
|
148
144
|
_internals = new WeakMap();
|
|
149
145
|
GdsFormControlElement.formAssociated = true;
|
package/components/index.d.ts
CHANGED
package/components/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__privateMethod,
|
|
6
6
|
__privateSet
|
|
7
7
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
8
|
-
var _handleTriggerSlotChange, handleTriggerSlotChange_fn, _autoPositionCleanupFn, _isMobileViewport, _backdropEl, _handleCancel, _dispatchUiStateEvent, _handleCloseButton, _registerTriggerEvents, registerTriggerEvents_fn, _unregisterTriggerEvents, unregisterTriggerEvents_fn, _setupTriggerAttributes, setupTriggerAttributes_fn, _registerAutoPositioning, registerAutoPositioning_fn, _handleTriggerKeyDown, _handleTriggerClick, _focusFirstSlottedChild, _handleClickOutside;
|
|
8
|
+
var _handleTriggerSlotChange, handleTriggerSlotChange_fn, _autoPositionCleanupFn, _isMobileViewport, _backdropEl, _handleCancel, _dispatchUiStateEvent, _handleCloseButton, _registerTriggerEvents, registerTriggerEvents_fn, _unregisterTriggerEvents, unregisterTriggerEvents_fn, _setupTriggerAttributes, setupTriggerAttributes_fn, _registerAutoPositioning, registerAutoPositioning_fn, _handleTriggerKeyDown, _handleTriggerClick, _focusFirstSlottedChild, _handleClickOutside, _handlePageScroll;
|
|
9
9
|
import { localized, msg } from "@lit/localize";
|
|
10
10
|
import { unsafeCSS } from "lit";
|
|
11
11
|
import { property, query, state } from "lit/decorators.js";
|
|
@@ -109,6 +109,11 @@ let GdsPopover = class extends GdsElement {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
+
__privateAdd(this, _handlePageScroll, () => {
|
|
113
|
+
if (this.open && __privateGet(this, _dispatchUiStateEvent).call(this, "close")) {
|
|
114
|
+
this.open = false;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
112
117
|
}
|
|
113
118
|
_handleTriggerRefChanged() {
|
|
114
119
|
this.triggerRef?.then((el) => {
|
|
@@ -158,6 +163,7 @@ let GdsPopover = class extends GdsElement {
|
|
|
158
163
|
disconnectedCallback() {
|
|
159
164
|
super.disconnectedCallback();
|
|
160
165
|
__privateMethod(this, _unregisterTriggerEvents, unregisterTriggerEvents_fn).call(this);
|
|
166
|
+
window.removeEventListener("scroll", __privateGet(this, _handlePageScroll));
|
|
161
167
|
}
|
|
162
168
|
render() {
|
|
163
169
|
return html`<slot
|
|
@@ -211,12 +217,16 @@ let GdsPopover = class extends GdsElement {
|
|
|
211
217
|
),
|
|
212
218
|
0
|
|
213
219
|
);
|
|
220
|
+
window.addEventListener("scroll", __privateGet(this, _handlePageScroll), {
|
|
221
|
+
passive: true
|
|
222
|
+
});
|
|
214
223
|
} else {
|
|
215
224
|
this._elDialog?.close();
|
|
216
225
|
clickOutsideTarget.removeEventListener(
|
|
217
226
|
"click",
|
|
218
227
|
__privateGet(this, _handleClickOutside)
|
|
219
228
|
);
|
|
229
|
+
window.removeEventListener("scroll", __privateGet(this, _handlePageScroll));
|
|
220
230
|
if (__privateGet(this, _backdropEl))
|
|
221
231
|
__privateGet(this, _backdropEl).show = false;
|
|
222
232
|
}
|
|
@@ -323,6 +333,7 @@ _handleTriggerKeyDown = new WeakMap();
|
|
|
323
333
|
_handleTriggerClick = new WeakMap();
|
|
324
334
|
_focusFirstSlottedChild = new WeakMap();
|
|
325
335
|
_handleClickOutside = new WeakMap();
|
|
336
|
+
_handlePageScroll = new WeakMap();
|
|
326
337
|
GdsPopover.styles = unsafeCSS(styles);
|
|
327
338
|
/**
|
|
328
339
|
* The default set of middleware for Floating UI positioning used by GdsPopover.
|
|
@@ -30,6 +30,7 @@ declare class RadioGroup extends GdsFormControlElement<string> {
|
|
|
30
30
|
private _isConnected;
|
|
31
31
|
connectedCallback(): void;
|
|
32
32
|
disconnectedCallback(): void;
|
|
33
|
+
focus(options?: FocusOptions): void;
|
|
33
34
|
protected _getValidityAnchor(): HTMLElement;
|
|
34
35
|
private _handleValueChange;
|
|
35
36
|
private _syncRadioStates;
|
|
@@ -62,6 +62,9 @@ let RadioGroup = class extends GdsFormControlElement {
|
|
|
62
62
|
this._isConnected = false;
|
|
63
63
|
this.removeEventListener("invalid", this._syncRadioStates);
|
|
64
64
|
}
|
|
65
|
+
focus(options) {
|
|
66
|
+
this._getValidityAnchor()?.focus(options);
|
|
67
|
+
}
|
|
65
68
|
_getValidityAnchor() {
|
|
66
69
|
return this._contentElement;
|
|
67
70
|
}
|
|
@@ -78,6 +78,7 @@ declare class Textarea extends GdsFormControlElement<string> {
|
|
|
78
78
|
* Intended for use in integration tests.
|
|
79
79
|
*/
|
|
80
80
|
test_getFieldElement(): Element | null | undefined;
|
|
81
|
+
focus(options?: FocusOptions): void;
|
|
81
82
|
private _handleResize;
|
|
82
83
|
private _handleSlotChange;
|
|
83
84
|
constructor();
|
|
@@ -117,6 +117,9 @@ let Textarea = class extends GdsFormControlElement {
|
|
|
117
117
|
test_getFieldElement() {
|
|
118
118
|
return this.shadowRoot?.querySelector("#field");
|
|
119
119
|
}
|
|
120
|
+
focus(options) {
|
|
121
|
+
this._getValidityAnchor()?.focus(options);
|
|
122
|
+
}
|
|
120
123
|
_handleResize() {
|
|
121
124
|
if (!this.fieldBase)
|
|
122
125
|
return;
|
|
@@ -29,6 +29,7 @@ export declare const GdsButton: (props: React.ComponentProps<ReturnType<typeof g
|
|
|
29
29
|
rel?: string | undefined;
|
|
30
30
|
download?: string | undefined;
|
|
31
31
|
connectedCallback?: (() => void) | undefined;
|
|
32
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
32
33
|
render?: (() => import("lit-html").TemplateResult) | undefined;
|
|
33
34
|
validator?: import("../../../components/form/form-control").GdsValidator | undefined;
|
|
34
35
|
required?: boolean | undefined;
|
|
@@ -42,7 +43,6 @@ export declare const GdsButton: (props: React.ComponentProps<ReturnType<typeof g
|
|
|
42
43
|
readonly willValidate?: boolean | undefined;
|
|
43
44
|
checkValidity?: (() => boolean) | undefined;
|
|
44
45
|
reportValidity?: (() => boolean) | undefined;
|
|
45
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
46
46
|
gdsElementName?: string | undefined;
|
|
47
47
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
48
48
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -20,7 +20,6 @@ export declare const GdsCheckbox: (props: React.ComponentProps<ReturnType<typeof
|
|
|
20
20
|
readonly willValidate?: boolean | undefined;
|
|
21
21
|
checkValidity?: (() => boolean) | undefined;
|
|
22
22
|
reportValidity?: (() => boolean) | undefined;
|
|
23
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
24
23
|
gdsElementName?: string | undefined;
|
|
25
24
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
26
25
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -382,6 +381,7 @@ export declare const GdsCheckbox: (props: React.ComponentProps<ReturnType<typeof
|
|
|
382
381
|
nonce?: string | undefined;
|
|
383
382
|
tabIndex?: number | undefined;
|
|
384
383
|
blur?: (() => void) | undefined;
|
|
384
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
385
385
|
}, "children"> & {
|
|
386
386
|
children?: import("react").ReactNode;
|
|
387
387
|
} & Omit<import("react").HTMLAttributes<HTMLElement>, "children"> & import("react").RefAttributes<HTMLElement>, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -40,6 +40,7 @@ export declare const GdsDatepicker: (props: React.ComponentProps<ReturnType<type
|
|
|
40
40
|
test_todayButton?: HTMLButtonElement | undefined;
|
|
41
41
|
test_getDateCell?: ((dayNumber: number) => Promise<Element | null | undefined>) | undefined;
|
|
42
42
|
connectedCallback?: (() => void) | undefined;
|
|
43
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
43
44
|
render?: (() => any) | undefined;
|
|
44
45
|
validator?: import("../../../components/form/form-control").GdsValidator | undefined;
|
|
45
46
|
required?: boolean | undefined;
|
|
@@ -54,7 +55,6 @@ export declare const GdsDatepicker: (props: React.ComponentProps<ReturnType<type
|
|
|
54
55
|
readonly willValidate?: boolean | undefined;
|
|
55
56
|
checkValidity?: (() => boolean) | undefined;
|
|
56
57
|
reportValidity?: (() => boolean) | undefined;
|
|
57
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
58
58
|
gdsElementName?: string | undefined;
|
|
59
59
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
60
60
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -32,6 +32,7 @@ export declare const GdsFab: (props: React.ComponentProps<ReturnType<typeof getR
|
|
|
32
32
|
target?: ("_self" | "_blank" | "_parent" | "_top") | undefined;
|
|
33
33
|
rel?: string | undefined;
|
|
34
34
|
download?: string | undefined;
|
|
35
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
35
36
|
render?: (() => import("lit-html").TemplateResult) | undefined;
|
|
36
37
|
validator?: import("../../../components/form/form-control").GdsValidator | undefined;
|
|
37
38
|
required?: boolean | undefined;
|
|
@@ -45,7 +46,6 @@ export declare const GdsFab: (props: React.ComponentProps<ReturnType<typeof getR
|
|
|
45
46
|
readonly willValidate?: boolean | undefined;
|
|
46
47
|
checkValidity?: (() => boolean) | undefined;
|
|
47
48
|
reportValidity?: (() => boolean) | undefined;
|
|
48
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
49
49
|
gdsElementName?: string | undefined;
|
|
50
50
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
51
51
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -7,6 +7,7 @@ export declare const GdsFilterChips: (props: React.ComponentProps<ReturnType<typ
|
|
|
7
7
|
readonly chips?: import("../../../components/filter-chips/filter-chips.component").GdsFilterChip<any>[] | undefined;
|
|
8
8
|
rowCollapse?: boolean | undefined;
|
|
9
9
|
render?: (() => any) | undefined;
|
|
10
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
10
11
|
validator?: import("../../../components/form/form-control").GdsValidator | undefined;
|
|
11
12
|
required?: boolean | undefined;
|
|
12
13
|
errorMessage?: string | undefined;
|
|
@@ -19,7 +20,6 @@ export declare const GdsFilterChips: (props: React.ComponentProps<ReturnType<typ
|
|
|
19
20
|
readonly willValidate?: boolean | undefined;
|
|
20
21
|
checkValidity?: (() => boolean) | undefined;
|
|
21
22
|
reportValidity?: (() => boolean) | undefined;
|
|
22
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
23
23
|
gdsElementName?: string | undefined;
|
|
24
24
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
25
25
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -15,7 +15,6 @@ export * from './dialog/index.js';
|
|
|
15
15
|
export * from './div/index.js';
|
|
16
16
|
export * from './divider/index.js';
|
|
17
17
|
export * from './dropdown/index.js';
|
|
18
|
-
export * from './fab/index.js';
|
|
19
18
|
export * from './filter-chips/index.js';
|
|
20
19
|
export * from './flex/index.js';
|
|
21
20
|
export * from './form-summary/index.js';
|
|
@@ -24,6 +23,7 @@ export * from './grouped-list/index.js';
|
|
|
24
23
|
export * from './list-item/index.js';
|
|
25
24
|
export * from './icons/icon/index.js';
|
|
26
25
|
export * from './img/index.js';
|
|
26
|
+
export * from './fab/index.js';
|
|
27
27
|
export * from './input/index.js';
|
|
28
28
|
export * from './link/index.js';
|
|
29
29
|
export * from './mask/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export * from "./dialog/index.js";
|
|
|
15
15
|
export * from "./div/index.js";
|
|
16
16
|
export * from "./divider/index.js";
|
|
17
17
|
export * from "./dropdown/index.js";
|
|
18
|
-
export * from "./fab/index.js";
|
|
19
18
|
export * from "./filter-chips/index.js";
|
|
20
19
|
export * from "./flex/index.js";
|
|
21
20
|
export * from "./form-summary/index.js";
|
|
@@ -24,6 +23,7 @@ export * from "./grouped-list/index.js";
|
|
|
24
23
|
export * from "./list-item/index.js";
|
|
25
24
|
export * from "./icons/icon/index.js";
|
|
26
25
|
export * from "./img/index.js";
|
|
26
|
+
export * from "./fab/index.js";
|
|
27
27
|
export * from "./input/index.js";
|
|
28
28
|
export * from "./link/index.js";
|
|
29
29
|
export * from "./mask/index.js";
|
|
@@ -36,6 +36,7 @@ export declare const GdsInput: (props: React.ComponentProps<ReturnType<typeof ge
|
|
|
36
36
|
inputmode?: ("none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url") | undefined;
|
|
37
37
|
test_getClearButton?: (() => import("../../..").GdsButton | null | undefined) | undefined;
|
|
38
38
|
test_getFieldElement?: (() => Element | null | undefined) | undefined;
|
|
39
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
39
40
|
render?: (() => any) | undefined;
|
|
40
41
|
_getValidityAnchor?: (() => HTMLInputElement) | undefined;
|
|
41
42
|
validator?: import("../../../components/form/form-control").GdsValidator | undefined;
|
|
@@ -52,7 +53,6 @@ export declare const GdsInput: (props: React.ComponentProps<ReturnType<typeof ge
|
|
|
52
53
|
readonly willValidate?: boolean | undefined;
|
|
53
54
|
checkValidity?: (() => boolean) | undefined;
|
|
54
55
|
reportValidity?: (() => boolean) | undefined;
|
|
55
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
56
56
|
gdsElementName?: string | undefined;
|
|
57
57
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
58
58
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -24,6 +24,7 @@ export declare const GdsRadioGroup: (props: React.ComponentProps<ReturnType<type
|
|
|
24
24
|
readonly radios?: import("../../..").GdsRadio[] | undefined;
|
|
25
25
|
connectedCallback?: (() => void) | undefined;
|
|
26
26
|
disconnectedCallback?: (() => void) | undefined;
|
|
27
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
27
28
|
render?: (() => any) | undefined;
|
|
28
29
|
validator?: import("../../../components/form/form-control").GdsValidator | undefined;
|
|
29
30
|
required?: boolean | undefined;
|
|
@@ -39,7 +40,6 @@ export declare const GdsRadioGroup: (props: React.ComponentProps<ReturnType<type
|
|
|
39
40
|
readonly willValidate?: boolean | undefined;
|
|
40
41
|
checkValidity?: (() => boolean) | undefined;
|
|
41
42
|
reportValidity?: (() => boolean) | undefined;
|
|
42
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
43
43
|
gdsElementName?: string | undefined;
|
|
44
44
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
45
45
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -26,6 +26,7 @@ export declare const GdsSelect: (props: React.ComponentProps<ReturnType<typeof g
|
|
|
26
26
|
readonly displayValue?: string | undefined;
|
|
27
27
|
readonly multiple?: boolean | undefined;
|
|
28
28
|
connectedCallback?: (() => void) | undefined;
|
|
29
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
29
30
|
render?: (() => any) | undefined;
|
|
30
31
|
formResetCallback?: (() => void) | undefined;
|
|
31
32
|
_getValidityAnchor?: (() => HTMLElement) | undefined;
|
|
@@ -42,7 +43,6 @@ export declare const GdsSelect: (props: React.ComponentProps<ReturnType<typeof g
|
|
|
42
43
|
readonly willValidate?: boolean | undefined;
|
|
43
44
|
checkValidity?: (() => boolean) | undefined;
|
|
44
45
|
reportValidity?: (() => boolean) | undefined;
|
|
45
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
46
46
|
gdsElementName?: string | undefined;
|
|
47
47
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
48
48
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
@@ -35,6 +35,7 @@ export declare const GdsTextarea: (props: React.ComponentProps<ReturnType<typeof
|
|
|
35
35
|
inputmode?: ("none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url") | undefined;
|
|
36
36
|
test_getClearButton?: (() => import("../../..").GdsButton | null | undefined) | undefined;
|
|
37
37
|
test_getFieldElement?: (() => Element | null | undefined) | undefined;
|
|
38
|
+
focus?: ((options?: FocusOptions) => void) | undefined;
|
|
38
39
|
connectedCallback?: (() => void) | undefined;
|
|
39
40
|
disconnectedCallback?: (() => void) | undefined;
|
|
40
41
|
render?: (() => any) | undefined;
|
|
@@ -52,7 +53,6 @@ export declare const GdsTextarea: (props: React.ComponentProps<ReturnType<typeof
|
|
|
52
53
|
readonly willValidate?: boolean | undefined;
|
|
53
54
|
checkValidity?: (() => boolean) | undefined;
|
|
54
55
|
reportValidity?: (() => boolean) | undefined;
|
|
55
|
-
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
56
56
|
gdsElementName?: string | undefined;
|
|
57
57
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
58
58
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
package/package.json
CHANGED