@sebgroup/green-core 1.79.0 → 1.80.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/dialog/dialog.component.js +2 -1
- package/components/input/input.component.d.ts +34 -0
- package/components/input/input.component.js +58 -6
- package/components/textarea/textarea.component.d.ts +21 -0
- package/components/textarea/textarea.component.js +45 -6
- package/generated/react/index.d.ts +5 -5
- package/generated/react/index.js +5 -5
- package/generated/react/input/index.d.ts +11 -3
- package/generated/react/textarea/index.d.ts +8 -3
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
23
23
|
import { GdsButton } from "../button/button.component.js";
|
|
24
24
|
import { GdsCard } from "../card/card.component.js";
|
|
25
|
+
import { GdsDiv } from "../div/div.component.js";
|
|
25
26
|
import { GdsFlex } from "../flex/flex.component.js";
|
|
26
27
|
import { IconCrossLarge } from "../icon/icons/cross-large.component.js";
|
|
27
28
|
import { styles } from "./dialog.styles.js";
|
|
@@ -213,7 +214,7 @@ __decorateClass([
|
|
|
213
214
|
], GdsDialog.prototype, "_handleOpenChange", 1);
|
|
214
215
|
GdsDialog = __decorateClass([
|
|
215
216
|
gdsCustomElement("gds-dialog", {
|
|
216
|
-
dependsOn: [GdsButton, GdsCard, GdsFlex, IconCrossLarge]
|
|
217
|
+
dependsOn: [GdsButton, GdsCard, GdsDiv, GdsFlex, IconCrossLarge]
|
|
217
218
|
}),
|
|
218
219
|
localized()
|
|
219
220
|
], GdsDialog);
|
|
@@ -31,6 +31,40 @@ declare class Input extends GdsFormControlElement<string> {
|
|
|
31
31
|
* Always set the `label` attribute, and if you need to hide it, add this attribute and keep `label` set.
|
|
32
32
|
*/
|
|
33
33
|
plain: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults
|
|
36
|
+
* to `text`.
|
|
37
|
+
*/
|
|
38
|
+
type: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url';
|
|
39
|
+
/** The input's minimum value. Only applies to date and number input types. */
|
|
40
|
+
min?: number | string;
|
|
41
|
+
/** The input's maximum value. Only applies to date and number input types. */
|
|
42
|
+
max?: number | string;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is
|
|
45
|
+
* implied, allowing any numeric value. Only applies to date and number input types.
|
|
46
|
+
*/
|
|
47
|
+
step?: number | 'any';
|
|
48
|
+
/** Controls whether and how text input is automatically capitalized as it is entered by the user. */
|
|
49
|
+
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
50
|
+
/** Indicates whether the browser's autocorrect feature is on or off. */
|
|
51
|
+
autocorrect?: 'off' | 'on';
|
|
52
|
+
/**
|
|
53
|
+
* Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
54
|
+
* [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
55
|
+
*/
|
|
56
|
+
autocomplete?: string;
|
|
57
|
+
/** Indicates that the input should receive focus on page load. */
|
|
58
|
+
autofocus: boolean;
|
|
59
|
+
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
60
|
+
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
61
|
+
/** Enables spell checking on the input. */
|
|
62
|
+
spellcheck: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
65
|
+
* keyboard on supportive devices.
|
|
66
|
+
*/
|
|
67
|
+
inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
34
68
|
private elInputAsync;
|
|
35
69
|
private elInput;
|
|
36
70
|
/**
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
__privateGet,
|
|
5
5
|
__privateMethod
|
|
6
6
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
7
|
-
var _shouldShowFooter, shouldShowFooter_fn,
|
|
7
|
+
var _shouldShowFooter, shouldShowFooter_fn, _handleOnInput, _handleOnChange, _handleFieldClick, _handleClearBtnClick, _renderFieldContents, renderFieldContents_fn, _renderSlotLead, renderSlotLead_fn, _renderSlotTrail, renderSlotTrail_fn, _renderNativeInput, renderNativeInput_fn, _renderClearButton, renderClearButton_fn, _shouldShowRemainingChars, shouldShowRemainingChars_get;
|
|
8
8
|
import { localized, msg } from "@lit/localize";
|
|
9
9
|
import { property, query, queryAsync } from "lit/decorators.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
11
|
import { when } from "lit/directives/when.js";
|
|
11
12
|
import { nothing } from "lit/html.js";
|
|
12
13
|
import { GdsFieldBase } from "../../primitives/field-base/field-base.component.js";
|
|
@@ -15,7 +16,6 @@ import { GdsFormControlHeader } from "../../primitives/form-control-header/form-
|
|
|
15
16
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
16
17
|
import formControlHostStyles from "../../shared-styles/form-control-host.style.js";
|
|
17
18
|
import { tokens } from "../../tokens.style.js";
|
|
18
|
-
import { forwardAttributes } from "../../utils/directives/index.js";
|
|
19
19
|
import {
|
|
20
20
|
withLayoutChildProps,
|
|
21
21
|
withMarginProps,
|
|
@@ -42,8 +42,10 @@ let Input = class extends GdsFormControlElement {
|
|
|
42
42
|
this.maxlength = Number.MAX_SAFE_INTEGER;
|
|
43
43
|
this.size = "large";
|
|
44
44
|
this.plain = false;
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
this.type = "text";
|
|
46
|
+
this.autocapitalize = "off";
|
|
47
|
+
this.autofocus = false;
|
|
48
|
+
this.spellcheck = true;
|
|
47
49
|
__privateAdd(this, _handleOnInput, (e) => {
|
|
48
50
|
const element = e.target;
|
|
49
51
|
this.value = element.value;
|
|
@@ -135,7 +137,6 @@ _shouldShowFooter = new WeakSet();
|
|
|
135
137
|
shouldShowFooter_fn = function() {
|
|
136
138
|
return !this.plain && (this.invalid || __privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get));
|
|
137
139
|
};
|
|
138
|
-
_forwardableAttrs = new WeakMap();
|
|
139
140
|
_handleOnInput = new WeakMap();
|
|
140
141
|
_handleOnChange = new WeakMap();
|
|
141
142
|
_handleFieldClick = new WeakMap();
|
|
@@ -172,7 +173,18 @@ renderNativeInput_fn = function() {
|
|
|
172
173
|
aria-invalid=${this.invalid}
|
|
173
174
|
aria-label=${this.plain && this.label || nothing}
|
|
174
175
|
placeholder=" "
|
|
175
|
-
|
|
176
|
+
type=${this.type}
|
|
177
|
+
min=${ifDefined(this.min)}
|
|
178
|
+
max=${ifDefined(this.max)}
|
|
179
|
+
step=${ifDefined(this.step)}
|
|
180
|
+
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
181
|
+
autocomplete=${ifDefined(this.autocomplete)}
|
|
182
|
+
autocorrect=${ifDefined(this.autocorrect)}
|
|
183
|
+
?autofocus=${this.autofocus}
|
|
184
|
+
spellcheck=${this.spellcheck}
|
|
185
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
186
|
+
inputmode=${ifDefined(this.inputmode)}
|
|
187
|
+
?required=${this.required}
|
|
176
188
|
/>
|
|
177
189
|
`;
|
|
178
190
|
};
|
|
@@ -221,6 +233,46 @@ __decorateClass([
|
|
|
221
233
|
__decorateClass([
|
|
222
234
|
property({ type: Boolean })
|
|
223
235
|
], Input.prototype, "plain", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
property({ reflect: true })
|
|
238
|
+
], Input.prototype, "type", 2);
|
|
239
|
+
__decorateClass([
|
|
240
|
+
property()
|
|
241
|
+
], Input.prototype, "min", 2);
|
|
242
|
+
__decorateClass([
|
|
243
|
+
property()
|
|
244
|
+
], Input.prototype, "max", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
property()
|
|
247
|
+
], Input.prototype, "step", 2);
|
|
248
|
+
__decorateClass([
|
|
249
|
+
property()
|
|
250
|
+
], Input.prototype, "autocapitalize", 2);
|
|
251
|
+
__decorateClass([
|
|
252
|
+
property()
|
|
253
|
+
], Input.prototype, "autocorrect", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
property()
|
|
256
|
+
], Input.prototype, "autocomplete", 2);
|
|
257
|
+
__decorateClass([
|
|
258
|
+
property({ type: Boolean })
|
|
259
|
+
], Input.prototype, "autofocus", 2);
|
|
260
|
+
__decorateClass([
|
|
261
|
+
property()
|
|
262
|
+
], Input.prototype, "enterkeyhint", 2);
|
|
263
|
+
__decorateClass([
|
|
264
|
+
property({
|
|
265
|
+
type: Boolean,
|
|
266
|
+
converter: {
|
|
267
|
+
// Allow "true|false" attribute values but keep the property boolean
|
|
268
|
+
fromAttribute: (value) => !value || value === "false" ? false : true,
|
|
269
|
+
toAttribute: (value) => value ? "true" : "false"
|
|
270
|
+
}
|
|
271
|
+
})
|
|
272
|
+
], Input.prototype, "spellcheck", 2);
|
|
273
|
+
__decorateClass([
|
|
274
|
+
property()
|
|
275
|
+
], Input.prototype, "inputmode", 2);
|
|
224
276
|
__decorateClass([
|
|
225
277
|
queryAsync("input")
|
|
226
278
|
], Input.prototype, "elInputAsync", 2);
|
|
@@ -43,6 +43,27 @@ declare class Textarea extends GdsFormControlElement<string> {
|
|
|
43
43
|
* Always set the `label` attribute, and if you need to hide it, add this attribute and keep `label` set.
|
|
44
44
|
*/
|
|
45
45
|
plain: boolean;
|
|
46
|
+
/** Controls whether and how text input is automatically capitalized as it is entered by the user. */
|
|
47
|
+
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
48
|
+
/** Indicates whether the browser's autocorrect feature is on or off. */
|
|
49
|
+
autocorrect?: 'off' | 'on';
|
|
50
|
+
/**
|
|
51
|
+
* Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
52
|
+
* [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
53
|
+
*/
|
|
54
|
+
autocomplete?: string;
|
|
55
|
+
/** Indicates that the input should receive focus on page load. */
|
|
56
|
+
autofocus: boolean;
|
|
57
|
+
/** Enables spell checking on the input. */
|
|
58
|
+
spellcheck: boolean;
|
|
59
|
+
wrap: 'hard' | 'soft';
|
|
60
|
+
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
61
|
+
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
62
|
+
/**
|
|
63
|
+
* Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
64
|
+
* keyboard on supportive devices.
|
|
65
|
+
*/
|
|
66
|
+
inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
46
67
|
private elTextareaAsync;
|
|
47
68
|
private elTextarea;
|
|
48
69
|
private fieldBase;
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
__privateGet,
|
|
5
5
|
__privateMethod
|
|
6
6
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
7
|
-
var _shouldShowFooter, shouldShowFooter_fn,
|
|
7
|
+
var _shouldShowFooter, shouldShowFooter_fn, _handleOnInput, _handleOnChange, _handleOnPaste, _handleFieldClick, _handleClearBtnClick, _renderFieldContents, renderFieldContents_fn, _renderSlotLead, renderSlotLead_fn, _renderSlotTrail, renderSlotTrail_fn, _renderNativeTextarea, renderNativeTextarea_fn, _renderClearButton, renderClearButton_fn, _shouldShowRemainingChars, shouldShowRemainingChars_get;
|
|
8
8
|
import { localized, msg } from "@lit/localize";
|
|
9
9
|
import { property, query, queryAsync } from "lit/decorators.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
11
|
import { when } from "lit/directives/when.js";
|
|
11
12
|
import { nothing } from "lit/html.js";
|
|
12
13
|
import { GdsFieldBase } from "../../primitives/field-base/field-base.component.js";
|
|
@@ -18,7 +19,6 @@ import { tokens } from "../../tokens.style.js";
|
|
|
18
19
|
import { watch } from "../../utils/decorators/index.js";
|
|
19
20
|
import { resizeObserver } from "../../utils/decorators/resize-observer.js";
|
|
20
21
|
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
21
|
-
import { forwardAttributes } from "../../utils/directives/index.js";
|
|
22
22
|
import {
|
|
23
23
|
withLayoutChildProps,
|
|
24
24
|
withMarginProps,
|
|
@@ -47,13 +47,14 @@ let Textarea = class extends GdsFormControlElement {
|
|
|
47
47
|
this.maxlength = Number.MAX_SAFE_INTEGER;
|
|
48
48
|
this.size = "large";
|
|
49
49
|
this.plain = false;
|
|
50
|
+
this.autocapitalize = "off";
|
|
51
|
+
this.autofocus = false;
|
|
52
|
+
this.spellcheck = true;
|
|
50
53
|
this._handleSlotChange = () => {
|
|
51
54
|
requestAnimationFrame(() => {
|
|
52
55
|
this._handleResize();
|
|
53
56
|
});
|
|
54
57
|
};
|
|
55
|
-
// Any attribute name added here will get forwarded to the native <input> element.
|
|
56
|
-
__privateAdd(this, _forwardableAttrs, (attr) => ["type", "placeholder", "required"].includes(attr.name));
|
|
57
58
|
__privateAdd(this, _handleOnInput, (e) => {
|
|
58
59
|
const element = e.target;
|
|
59
60
|
this.value = element.value;
|
|
@@ -240,7 +241,6 @@ _shouldShowFooter = new WeakSet();
|
|
|
240
241
|
shouldShowFooter_fn = function() {
|
|
241
242
|
return !this.plain && (this.invalid || __privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get));
|
|
242
243
|
};
|
|
243
|
-
_forwardableAttrs = new WeakMap();
|
|
244
244
|
_handleOnInput = new WeakMap();
|
|
245
245
|
_handleOnChange = new WeakMap();
|
|
246
246
|
_handleOnPaste = new WeakMap();
|
|
@@ -277,7 +277,15 @@ renderNativeTextarea_fn = function() {
|
|
|
277
277
|
aria-label=${this.plain && this.label || nothing}
|
|
278
278
|
aria-describedby="supporting-text extended-supporting-text sub-label message"
|
|
279
279
|
placeholder=" "
|
|
280
|
-
|
|
280
|
+
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
281
|
+
autocomplete=${ifDefined(this.autocomplete)}
|
|
282
|
+
autocorrect=${ifDefined(this.autocorrect)}
|
|
283
|
+
?autofocus=${this.autofocus}
|
|
284
|
+
spellcheck=${this.spellcheck}
|
|
285
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
286
|
+
inputmode=${ifDefined(this.inputmode)}
|
|
287
|
+
wrap=${ifDefined(this.wrap)}
|
|
288
|
+
?required=${this.required}
|
|
281
289
|
></textarea>
|
|
282
290
|
`;
|
|
283
291
|
};
|
|
@@ -341,6 +349,37 @@ __decorateClass([
|
|
|
341
349
|
__decorateClass([
|
|
342
350
|
property({ type: Boolean })
|
|
343
351
|
], Textarea.prototype, "plain", 2);
|
|
352
|
+
__decorateClass([
|
|
353
|
+
property()
|
|
354
|
+
], Textarea.prototype, "autocapitalize", 2);
|
|
355
|
+
__decorateClass([
|
|
356
|
+
property()
|
|
357
|
+
], Textarea.prototype, "autocorrect", 2);
|
|
358
|
+
__decorateClass([
|
|
359
|
+
property()
|
|
360
|
+
], Textarea.prototype, "autocomplete", 2);
|
|
361
|
+
__decorateClass([
|
|
362
|
+
property({ type: Boolean })
|
|
363
|
+
], Textarea.prototype, "autofocus", 2);
|
|
364
|
+
__decorateClass([
|
|
365
|
+
property({
|
|
366
|
+
type: Boolean,
|
|
367
|
+
converter: {
|
|
368
|
+
// Allow "true|false" attribute values but keep the property boolean
|
|
369
|
+
fromAttribute: (value) => !value || value === "false" ? false : true,
|
|
370
|
+
toAttribute: (value) => value ? "true" : "false"
|
|
371
|
+
}
|
|
372
|
+
})
|
|
373
|
+
], Textarea.prototype, "spellcheck", 2);
|
|
374
|
+
__decorateClass([
|
|
375
|
+
property()
|
|
376
|
+
], Textarea.prototype, "wrap", 2);
|
|
377
|
+
__decorateClass([
|
|
378
|
+
property()
|
|
379
|
+
], Textarea.prototype, "enterkeyhint", 2);
|
|
380
|
+
__decorateClass([
|
|
381
|
+
property()
|
|
382
|
+
], Textarea.prototype, "inputmode", 2);
|
|
344
383
|
__decorateClass([
|
|
345
384
|
queryAsync("textarea")
|
|
346
385
|
], Textarea.prototype, "elTextareaAsync", 2);
|
|
@@ -48,11 +48,6 @@ export * from './filter-chip/index.js';
|
|
|
48
48
|
export * from './formatted-account/index.js';
|
|
49
49
|
export * from './formatted-date/index.js';
|
|
50
50
|
export * from './formatted-number/index.js';
|
|
51
|
-
export * from './radio-group/index.js';
|
|
52
|
-
export * from './segment/index.js';
|
|
53
|
-
export * from './sensitive-account/index.js';
|
|
54
|
-
export * from './sensitive-date/index.js';
|
|
55
|
-
export * from './sensitive-number/index.js';
|
|
56
51
|
export * from './icons/icon-ai/index.js';
|
|
57
52
|
export * from './icons/icon-airplane-up/index.js';
|
|
58
53
|
export * from './icons/icon-archive/index.js';
|
|
@@ -340,3 +335,8 @@ export * from './icons/icon-youtube/index.js';
|
|
|
340
335
|
export * from './icons/icon-zap/index.js';
|
|
341
336
|
export * from './icons/icon-zoom-in/index.js';
|
|
342
337
|
export * from './icons/icon-zoom-out/index.js';
|
|
338
|
+
export * from './radio-group/index.js';
|
|
339
|
+
export * from './segment/index.js';
|
|
340
|
+
export * from './sensitive-account/index.js';
|
|
341
|
+
export * from './sensitive-date/index.js';
|
|
342
|
+
export * from './sensitive-number/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -48,11 +48,6 @@ export * from "./filter-chip/index.js";
|
|
|
48
48
|
export * from "./formatted-account/index.js";
|
|
49
49
|
export * from "./formatted-date/index.js";
|
|
50
50
|
export * from "./formatted-number/index.js";
|
|
51
|
-
export * from "./radio-group/index.js";
|
|
52
|
-
export * from "./segment/index.js";
|
|
53
|
-
export * from "./sensitive-account/index.js";
|
|
54
|
-
export * from "./sensitive-date/index.js";
|
|
55
|
-
export * from "./sensitive-number/index.js";
|
|
56
51
|
export * from "./icons/icon-ai/index.js";
|
|
57
52
|
export * from "./icons/icon-airplane-up/index.js";
|
|
58
53
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -340,3 +335,8 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
340
335
|
export * from "./icons/icon-zap/index.js";
|
|
341
336
|
export * from "./icons/icon-zoom-in/index.js";
|
|
342
337
|
export * from "./icons/icon-zoom-out/index.js";
|
|
338
|
+
export * from "./radio-group/index.js";
|
|
339
|
+
export * from "./segment/index.js";
|
|
340
|
+
export * from "./sensitive-account/index.js";
|
|
341
|
+
export * from "./sensitive-date/index.js";
|
|
342
|
+
export * from "./sensitive-number/index.js";
|
|
@@ -23,6 +23,17 @@ export declare const GdsInput: (props: React.ComponentProps<ReturnType<typeof ge
|
|
|
23
23
|
maxlength?: number | undefined;
|
|
24
24
|
size?: "small" | "large" | undefined;
|
|
25
25
|
plain?: boolean | undefined;
|
|
26
|
+
type?: "number" | "search" | "time" | "text" | "date" | "email" | "datetime-local" | "password" | "tel" | "url" | undefined;
|
|
27
|
+
min?: string | number | undefined;
|
|
28
|
+
max?: string | number | undefined;
|
|
29
|
+
step?: number | "any" | undefined;
|
|
30
|
+
autocapitalize?: "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
31
|
+
autocorrect?: "off" | "on" | undefined;
|
|
32
|
+
autocomplete?: string | undefined;
|
|
33
|
+
autofocus?: boolean | undefined;
|
|
34
|
+
enterkeyhint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
35
|
+
spellcheck?: boolean | undefined;
|
|
36
|
+
inputmode?: "search" | "none" | "text" | "numeric" | "email" | "tel" | "url" | "decimal" | undefined;
|
|
26
37
|
test_getClearButton?: (() => import("../../..").GdsButton | null | undefined) | undefined;
|
|
27
38
|
test_getFieldElement?: (() => Element | null | undefined) | undefined;
|
|
28
39
|
render?: (() => any) | undefined;
|
|
@@ -58,7 +69,6 @@ export declare const GdsInput: (props: React.ComponentProps<ReturnType<typeof ge
|
|
|
58
69
|
readonly updateComplete?: Promise<boolean> | undefined;
|
|
59
70
|
accessKey?: string | undefined;
|
|
60
71
|
readonly accessKeyLabel?: string | undefined;
|
|
61
|
-
autocapitalize?: string | undefined;
|
|
62
72
|
dir?: string | undefined;
|
|
63
73
|
draggable?: boolean | undefined;
|
|
64
74
|
hidden?: boolean | undefined;
|
|
@@ -72,7 +82,6 @@ export declare const GdsInput: (props: React.ComponentProps<ReturnType<typeof ge
|
|
|
72
82
|
readonly offsetWidth?: number | undefined;
|
|
73
83
|
outerText?: string | undefined;
|
|
74
84
|
popover?: string | null | undefined;
|
|
75
|
-
spellcheck?: boolean | undefined;
|
|
76
85
|
title?: string | undefined;
|
|
77
86
|
translate?: boolean | undefined;
|
|
78
87
|
attachInternals?: (() => ElementInternals) | undefined;
|
|
@@ -394,7 +403,6 @@ export declare const GdsInput: (props: React.ComponentProps<ReturnType<typeof ge
|
|
|
394
403
|
onwebkitanimationstart?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
395
404
|
onwebkittransitionend?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
396
405
|
onwheel?: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null | undefined;
|
|
397
|
-
autofocus?: boolean | undefined;
|
|
398
406
|
readonly dataset?: DOMStringMap | undefined;
|
|
399
407
|
nonce?: string | undefined;
|
|
400
408
|
tabIndex?: number | undefined;
|
|
@@ -25,6 +25,14 @@ export declare const GdsTextarea: (props: React.ComponentProps<ReturnType<typeof
|
|
|
25
25
|
maxlength?: number | undefined;
|
|
26
26
|
size?: "small" | "large" | undefined;
|
|
27
27
|
plain?: boolean | undefined;
|
|
28
|
+
autocapitalize?: "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
29
|
+
autocorrect?: "off" | "on" | undefined;
|
|
30
|
+
autocomplete?: string | undefined;
|
|
31
|
+
autofocus?: boolean | undefined;
|
|
32
|
+
spellcheck?: boolean | undefined;
|
|
33
|
+
wrap?: "hard" | "soft" | undefined;
|
|
34
|
+
enterkeyhint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
35
|
+
inputmode?: "search" | "none" | "text" | "numeric" | "email" | "tel" | "url" | "decimal" | undefined;
|
|
28
36
|
test_getClearButton?: (() => import("../../..").GdsButton | null | undefined) | undefined;
|
|
29
37
|
test_getFieldElement?: (() => Element | null | undefined) | undefined;
|
|
30
38
|
connectedCallback?: (() => void) | undefined;
|
|
@@ -59,7 +67,6 @@ export declare const GdsTextarea: (props: React.ComponentProps<ReturnType<typeof
|
|
|
59
67
|
readonly updateComplete?: Promise<boolean> | undefined;
|
|
60
68
|
accessKey?: string | undefined;
|
|
61
69
|
readonly accessKeyLabel?: string | undefined;
|
|
62
|
-
autocapitalize?: string | undefined;
|
|
63
70
|
dir?: string | undefined;
|
|
64
71
|
draggable?: boolean | undefined;
|
|
65
72
|
hidden?: boolean | undefined;
|
|
@@ -73,7 +80,6 @@ export declare const GdsTextarea: (props: React.ComponentProps<ReturnType<typeof
|
|
|
73
80
|
readonly offsetWidth?: number | undefined;
|
|
74
81
|
outerText?: string | undefined;
|
|
75
82
|
popover?: string | null | undefined;
|
|
76
|
-
spellcheck?: boolean | undefined;
|
|
77
83
|
title?: string | undefined;
|
|
78
84
|
translate?: boolean | undefined;
|
|
79
85
|
attachInternals?: (() => ElementInternals) | undefined;
|
|
@@ -395,7 +401,6 @@ export declare const GdsTextarea: (props: React.ComponentProps<ReturnType<typeof
|
|
|
395
401
|
onwebkitanimationstart?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
396
402
|
onwebkittransitionend?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
397
403
|
onwheel?: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null | undefined;
|
|
398
|
-
autofocus?: boolean | undefined;
|
|
399
404
|
readonly dataset?: DOMStringMap | undefined;
|
|
400
405
|
nonce?: string | undefined;
|
|
401
406
|
tabIndex?: number | undefined;
|
package/package.json
CHANGED