@sebgroup/green-core 1.80.0 → 1.82.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/breadcrumbs/breadcrumbs.component.d.ts +23 -0
- package/components/breadcrumbs/breadcrumbs.component.js +71 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +2 -0
- package/components/breadcrumbs/breadcrumbs.js +6 -0
- package/components/breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/components/breadcrumbs/breadcrumbs.styles.js +95 -0
- package/components/breadcrumbs/index.d.ts +1 -0
- package/components/breadcrumbs/index.js +1 -0
- package/components/checkbox/checkbox-group/checkbox-group.component.js +1 -1
- package/components/datepicker/datepicker.component.js +6 -3
- package/components/datepicker/datepicker.styles.js +2 -2
- package/components/dropdown/dropdown.component.js +6 -3
- package/components/form/form-control.js +2 -2
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/input/input.component.js +4 -4
- package/components/popover/popover.component.js +1 -1
- package/components/pure.d.ts +1 -0
- package/components/pure.js +1 -0
- package/components/radio/radio-group/radio-group.component.js +1 -1
- package/components/textarea/textarea.component.js +6 -4
- package/generated/locales/da.d.ts +1 -0
- package/generated/locales/da.js +1 -0
- package/generated/locales/de.d.ts +1 -0
- package/generated/locales/de.js +1 -0
- package/generated/locales/fi.d.ts +1 -0
- package/generated/locales/fi.js +1 -0
- package/generated/locales/fr.d.ts +1 -0
- package/generated/locales/fr.js +1 -0
- package/generated/locales/it.d.ts +1 -0
- package/generated/locales/it.js +1 -0
- package/generated/locales/nl.d.ts +1 -0
- package/generated/locales/nl.js +1 -0
- package/generated/locales/no.d.ts +1 -0
- package/generated/locales/no.js +1 -0
- package/generated/locales/sv.d.ts +1 -0
- package/generated/locales/sv.js +1 -0
- package/generated/react/breadcrumbs/index.d.ts +383 -0
- package/generated/react/breadcrumbs/index.js +13 -0
- package/generated/react/form-control-footer/index.d.ts +2 -2
- package/generated/react/index.d.ts +4 -3
- package/generated/react/index.js +4 -3
- package/package.json +3 -1
- package/primitives/form-control-footer/form-control-footer.component.d.ts +3 -1
- package/primitives/form-control-footer/form-control-footer.component.js +19 -4
- package/primitives/form-control-footer/form-control-footer.styles.js +8 -0
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GdsElement } from '../../gds-element';
|
|
2
|
+
declare const GdsBreadcrumbs_base: (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").LayoutChildProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeXProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").MarginProps) & typeof GdsElement;
|
|
3
|
+
/**
|
|
4
|
+
* @element gds-breadcrumbs
|
|
5
|
+
* @summary The `gds-breadcrumbs` component is a navigation element
|
|
6
|
+
* It helps users understand their current * location within a hierarchical structure of a website or application.
|
|
7
|
+
*
|
|
8
|
+
* @status beta
|
|
9
|
+
*/
|
|
10
|
+
export declare class GdsBreadcrumbs extends GdsBreadcrumbs_base {
|
|
11
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
12
|
+
/**
|
|
13
|
+
* Controls the font-size and spacing of separators and breadcrumbs items
|
|
14
|
+
*/
|
|
15
|
+
size: 'large' | 'small';
|
|
16
|
+
/**
|
|
17
|
+
* This property allow you to set the accessible label of the breadcrumbs.
|
|
18
|
+
* If not provided, the default label is "breadcrumbs".
|
|
19
|
+
*/
|
|
20
|
+
label: string;
|
|
21
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass
|
|
3
|
+
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
4
|
+
import { localized, msg } from "@lit/localize";
|
|
5
|
+
import { html } from "lit";
|
|
6
|
+
import { property } from "lit/decorators.js";
|
|
7
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
8
|
+
import { GdsElement } from "../../gds-element.js";
|
|
9
|
+
import { tokens } from "../../tokens.style.js";
|
|
10
|
+
import { gdsCustomElement } from "../../utils/helpers/custom-element-scoping.js";
|
|
11
|
+
import {
|
|
12
|
+
withLayoutChildProps,
|
|
13
|
+
withMarginProps,
|
|
14
|
+
withSizeXProps
|
|
15
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
16
|
+
import { IconChevronLeft } from "../icon/icons/chevron-left.component.js";
|
|
17
|
+
import breadcrumbsCSS from "./breadcrumbs.styles.js";
|
|
18
|
+
let GdsBreadcrumbs = class extends withLayoutChildProps(
|
|
19
|
+
withSizeXProps(withMarginProps(GdsElement))
|
|
20
|
+
) {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.size = "large";
|
|
24
|
+
this.label = msg("Breadcrumbs");
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const elements = Array.from(this.children);
|
|
28
|
+
const secondToLastIndex = elements.length - 2;
|
|
29
|
+
return html`
|
|
30
|
+
<nav
|
|
31
|
+
role="navigation"
|
|
32
|
+
aria-label=${this.label}
|
|
33
|
+
class=${classMap({ "size-small": this.size === "small" })}
|
|
34
|
+
>
|
|
35
|
+
<div class="mobile-return">
|
|
36
|
+
<gds-icon-chevron-left></gds-icon-chevron-left>
|
|
37
|
+
</div>
|
|
38
|
+
<ol>
|
|
39
|
+
${elements.map(
|
|
40
|
+
(element, index) => html`
|
|
41
|
+
<li
|
|
42
|
+
class=${classMap({
|
|
43
|
+
"show-on-mobile": index === secondToLastIndex
|
|
44
|
+
})}
|
|
45
|
+
>
|
|
46
|
+
${element}
|
|
47
|
+
</li>
|
|
48
|
+
${index < elements.length - 1 ? html`<span class="separator" aria-hidden="true">/</span>` : null}
|
|
49
|
+
`
|
|
50
|
+
)}
|
|
51
|
+
</ol>
|
|
52
|
+
</nav>
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
GdsBreadcrumbs.styles = [tokens, breadcrumbsCSS];
|
|
57
|
+
__decorateClass([
|
|
58
|
+
property({ type: String })
|
|
59
|
+
], GdsBreadcrumbs.prototype, "size", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
property({ type: String })
|
|
62
|
+
], GdsBreadcrumbs.prototype, "label", 2);
|
|
63
|
+
GdsBreadcrumbs = __decorateClass([
|
|
64
|
+
gdsCustomElement("gds-breadcrumbs", {
|
|
65
|
+
dependsOn: [IconChevronLeft]
|
|
66
|
+
}),
|
|
67
|
+
localized()
|
|
68
|
+
], GdsBreadcrumbs);
|
|
69
|
+
export {
|
|
70
|
+
GdsBreadcrumbs
|
|
71
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import "../../chunks/chunk.QTSIPXV3.js";
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
const style = css`
|
|
4
|
+
@layer base, reset, transitional-styles;
|
|
5
|
+
@layer base {
|
|
6
|
+
:host {
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
nav {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
width: max-content;
|
|
14
|
+
gap: var(--gds-sys-space-s);
|
|
15
|
+
font-size: var(--gds-sys-text-size-detail-m);
|
|
16
|
+
line-height: var(--gds-sys-text-line-height-detail-m);
|
|
17
|
+
font-weight: var(--gds-sys-text-weight-regular);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.size-small {
|
|
21
|
+
font-size: var(--gds-sys-text-size-detail-s);
|
|
22
|
+
line-height: var(--gds-sys-text-line-height-detail-s);
|
|
23
|
+
gap: var(--gds-sys-space-xs);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.size-small ol {
|
|
27
|
+
gap: var(--gds-sys-space-xs);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ol {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: var(--gds-sys-space-s);
|
|
34
|
+
list-style: none;
|
|
35
|
+
margin-block-start: 0;
|
|
36
|
+
margin-block-end: 0;
|
|
37
|
+
padding-inline-start: 0;
|
|
38
|
+
height: max-content;
|
|
39
|
+
font-weight: inherit;
|
|
40
|
+
font-size: inherit;
|
|
41
|
+
line-height: inherit;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
li {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
list-style: none;
|
|
49
|
+
margin: unset;
|
|
50
|
+
padding: unset;
|
|
51
|
+
height: max-content;
|
|
52
|
+
font-weight: inherit;
|
|
53
|
+
font-size: inherit;
|
|
54
|
+
line-height: inherit;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
li:last-child {
|
|
58
|
+
color: var(--gds-sys-color-l3-content-secondary);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.separator {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mobile-return {
|
|
68
|
+
display: none;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@container (max-width: 400px) {
|
|
74
|
+
.mobile-return {
|
|
75
|
+
display: flex;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
li {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.show-on-mobile {
|
|
83
|
+
display: flex;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.separator {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
var breadcrumbs_styles_default = style;
|
|
93
|
+
export {
|
|
94
|
+
breadcrumbs_styles_default as default
|
|
95
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './breadcrumbs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./breadcrumbs.js";
|
|
@@ -153,7 +153,7 @@ renderFieldControlFooter_fn = function() {
|
|
|
153
153
|
return html`<gds-form-control-footer
|
|
154
154
|
id="footer"
|
|
155
155
|
class="size-${this.size}"
|
|
156
|
-
.
|
|
156
|
+
.errorMessage=${this.invalid ? this.errorMessage : void 0}
|
|
157
157
|
>
|
|
158
158
|
</gds-form-control-footer>`;
|
|
159
159
|
};
|
|
@@ -369,13 +369,16 @@ let Datepicker = class extends GdsFormControlElement {
|
|
|
369
369
|
|
|
370
370
|
${when(
|
|
371
371
|
__privateMethod(this, _shouldShowFooter, shouldShowFooter_fn).call(this),
|
|
372
|
-
() => html`<gds-form-control-footer
|
|
372
|
+
() => html`<gds-form-control-footer
|
|
373
|
+
class="size-${this.size}"
|
|
374
|
+
.errorMessage=${this.invalid ? this.errorMessage : void 0}
|
|
375
|
+
>
|
|
373
376
|
${``}
|
|
374
377
|
<slot id="message" name="message" slot="message">
|
|
375
378
|
<gds-icon-triangle-exclamation
|
|
376
379
|
solid
|
|
377
380
|
></gds-icon-triangle-exclamation>
|
|
378
|
-
${this.errorMessage
|
|
381
|
+
${this.errorMessage}
|
|
379
382
|
</slot>
|
|
380
383
|
</gds-form-control-footer>`
|
|
381
384
|
)}
|
|
@@ -553,7 +556,7 @@ let Datepicker = class extends GdsFormControlElement {
|
|
|
553
556
|
_valueOnOpen = new WeakMap();
|
|
554
557
|
_shouldShowFooter = new WeakSet();
|
|
555
558
|
shouldShowFooter_fn = function() {
|
|
556
|
-
return !this.plain
|
|
559
|
+
return !this.plain;
|
|
557
560
|
};
|
|
558
561
|
_renderBackToValidRangeButton = new WeakSet();
|
|
559
562
|
renderBackToValidRangeButton_fn = async function() {
|
|
@@ -38,8 +38,8 @@ const styles = css`
|
|
|
38
38
|
text-align: center;
|
|
39
39
|
|
|
40
40
|
&:focus {
|
|
41
|
-
background-color: var(--gds-color-l2-background-tertiary);
|
|
42
|
-
color: var(--gds-color-l2-content-tertiary);
|
|
41
|
+
background-color: var(--gds-sys-color-l2-background-tertiary);
|
|
42
|
+
color: var(--gds-sys-color-l2-content-tertiary);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -373,13 +373,16 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
373
373
|
${when(
|
|
374
374
|
__privateMethod(this, _shouldShowFooter, shouldShowFooter_fn).call(this),
|
|
375
375
|
() => html`
|
|
376
|
-
<gds-form-control-footer
|
|
376
|
+
<gds-form-control-footer
|
|
377
|
+
class="size-${this.size}"
|
|
378
|
+
.errorMessage=${this.invalid ? this.errorMessage : void 0}
|
|
379
|
+
>
|
|
377
380
|
${``}
|
|
378
381
|
<slot id="message" name="message" slot="message">
|
|
379
382
|
<gds-icon-triangle-exclamation
|
|
380
383
|
solid
|
|
381
384
|
></gds-icon-triangle-exclamation>
|
|
382
|
-
${this.
|
|
385
|
+
${this.validationMessage || this.errorMessage}
|
|
383
386
|
</slot>
|
|
384
387
|
</gds-form-control-footer>
|
|
385
388
|
`
|
|
@@ -439,7 +442,7 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
439
442
|
_optionElements = new WeakMap();
|
|
440
443
|
_shouldShowFooter = new WeakSet();
|
|
441
444
|
shouldShowFooter_fn = function() {
|
|
442
|
-
return !this.plain
|
|
445
|
+
return !this.plain;
|
|
443
446
|
};
|
|
444
447
|
_renderCombobox = new WeakMap();
|
|
445
448
|
_renderTriggerButton = new WeakMap();
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
__privateSet
|
|
6
6
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
7
7
|
var _internals;
|
|
8
|
-
import { msg } from "@lit/localize";
|
|
9
8
|
import { property } from "lit/decorators.js";
|
|
10
9
|
import { GdsElement } from "../../gds-element.js";
|
|
11
10
|
import { watch } from "../../utils/decorators/index.js";
|
|
@@ -59,7 +58,7 @@ class GdsFormControlElement extends GdsElement {
|
|
|
59
58
|
customError: value,
|
|
60
59
|
valid: !value
|
|
61
60
|
},
|
|
62
|
-
this.validationMessage ||
|
|
61
|
+
this.errorMessage || this.validationMessage || " ",
|
|
63
62
|
// @ts-expect-error - setValidity actually takes an element as the third argument, but the type definition is wrong.
|
|
64
63
|
this._getValidityAnchor() || void 0
|
|
65
64
|
);
|
|
@@ -99,6 +98,7 @@ class GdsFormControlElement extends GdsElement {
|
|
|
99
98
|
{ ...this.validity, valid: true },
|
|
100
99
|
""
|
|
101
100
|
];
|
|
101
|
+
this.errorMessage = validity[1] || this.errorMessage;
|
|
102
102
|
__privateGet(this, _internals).setValidity(
|
|
103
103
|
validity[0],
|
|
104
104
|
validity[1],
|
package/components/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from '../primitives/menu/menu-heading';
|
|
|
3
3
|
export * from '../primitives/menu/menu-item';
|
|
4
4
|
export * from './button';
|
|
5
5
|
export * from './badge';
|
|
6
|
+
export * from './breadcrumbs';
|
|
6
7
|
export * from './menu-button';
|
|
7
8
|
export * from './context-menu';
|
|
8
9
|
export * from './coachmark';
|
package/components/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "../primitives/menu/menu-heading.js";
|
|
|
3
3
|
export * from "../primitives/menu/menu-item.js";
|
|
4
4
|
export * from "./button/index.js";
|
|
5
5
|
export * from "./badge/index.js";
|
|
6
|
+
export * from "./breadcrumbs/index.js";
|
|
6
7
|
export * from "./menu-button/index.js";
|
|
7
8
|
export * from "./context-menu/index.js";
|
|
8
9
|
export * from "./coachmark/index.js";
|
|
@@ -121,10 +121,10 @@ let Input = class extends GdsFormControlElement {
|
|
|
121
121
|
</gds-field-base>
|
|
122
122
|
${when(
|
|
123
123
|
__privateMethod(this, _shouldShowFooter, shouldShowFooter_fn).call(this),
|
|
124
|
-
() => html
|
|
124
|
+
() => html` <gds-form-control-footer
|
|
125
125
|
class="size-${this.size}"
|
|
126
|
-
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get)
|
|
127
|
-
.
|
|
126
|
+
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get) ? this.maxlength - (this.value?.length || 0) : void 0}
|
|
127
|
+
.errorMessage=${this.invalid ? this.errorMessage : void 0}
|
|
128
128
|
></gds-form-control-footer>`
|
|
129
129
|
)}
|
|
130
130
|
`;
|
|
@@ -135,7 +135,7 @@ let Input = class extends GdsFormControlElement {
|
|
|
135
135
|
};
|
|
136
136
|
_shouldShowFooter = new WeakSet();
|
|
137
137
|
shouldShowFooter_fn = function() {
|
|
138
|
-
return !this.plain
|
|
138
|
+
return !this.plain;
|
|
139
139
|
};
|
|
140
140
|
_handleOnInput = new WeakMap();
|
|
141
141
|
_handleOnChange = new WeakMap();
|
|
@@ -145,7 +145,7 @@ let GdsPopover = class extends GdsElement {
|
|
|
145
145
|
});
|
|
146
146
|
this.addEventListener("focusin", (e) => {
|
|
147
147
|
const t = e.target;
|
|
148
|
-
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA") {
|
|
148
|
+
if (t === this || t.tagName === "INPUT" || t.tagName === "TEXTAREA") {
|
|
149
149
|
this._isVirtKbVisible = true;
|
|
150
150
|
} else {
|
|
151
151
|
this._isVirtKbVisible = false;
|
package/components/pure.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from '../primitives/menu/menu-heading.component';
|
|
|
3
3
|
export * from '../primitives/menu/menu-item.component';
|
|
4
4
|
export * from './button/button.component';
|
|
5
5
|
export * from './badge/badge.component';
|
|
6
|
+
export * from './breadcrumbs/breadcrumbs.component';
|
|
6
7
|
export * from './menu-button/menu-button.component';
|
|
7
8
|
export * from './context-menu/context-menu.component';
|
|
8
9
|
export * from './coachmark/coachmark.component';
|
package/components/pure.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "../primitives/menu/menu-heading.component.js";
|
|
|
3
3
|
export * from "../primitives/menu/menu-item.component.js";
|
|
4
4
|
export * from "./button/button.component.js";
|
|
5
5
|
export * from "./badge/badge.component.js";
|
|
6
|
+
export * from "./breadcrumbs/breadcrumbs.component.js";
|
|
6
7
|
export * from "./menu-button/menu-button.component.js";
|
|
7
8
|
export * from "./context-menu/context-menu.component.js";
|
|
8
9
|
export * from "./coachmark/coachmark.component.js";
|
|
@@ -245,7 +245,7 @@ renderFieldControlFooter_fn = function() {
|
|
|
245
245
|
return html` <gds-form-control-footer
|
|
246
246
|
id="footer"
|
|
247
247
|
class="size-${this.size}"
|
|
248
|
-
.
|
|
248
|
+
.errorMessage=${this.invalid ? this.errorMessage : void 0}
|
|
249
249
|
>
|
|
250
250
|
</gds-form-control-footer>`;
|
|
251
251
|
};
|
|
@@ -188,9 +188,10 @@ let Textarea = class extends GdsFormControlElement {
|
|
|
188
188
|
${when(
|
|
189
189
|
__privateMethod(this, _shouldShowFooter, shouldShowFooter_fn).call(this),
|
|
190
190
|
() => html`<gds-form-control-footer
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
.
|
|
191
|
+
id="footer"
|
|
192
|
+
class="size-${this.size}"
|
|
193
|
+
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get) ? this.maxlength - (this.value?.length || 0) : void 0}
|
|
194
|
+
.errorMessage=${this.invalid ? this.errorMessage : void 0}
|
|
194
195
|
></gds-form-control-footer>`
|
|
195
196
|
)}
|
|
196
197
|
`;
|
|
@@ -239,7 +240,7 @@ let Textarea = class extends GdsFormControlElement {
|
|
|
239
240
|
};
|
|
240
241
|
_shouldShowFooter = new WeakSet();
|
|
241
242
|
shouldShowFooter_fn = function() {
|
|
242
|
-
return !this.plain
|
|
243
|
+
return !this.plain;
|
|
243
244
|
};
|
|
244
245
|
_handleOnInput = new WeakMap();
|
|
245
246
|
_handleOnChange = new WeakMap();
|
|
@@ -276,6 +277,7 @@ renderNativeTextarea_fn = function() {
|
|
|
276
277
|
class="native-control resize-${this.resizable}"
|
|
277
278
|
aria-label=${this.plain && this.label || nothing}
|
|
278
279
|
aria-describedby="supporting-text extended-supporting-text sub-label message"
|
|
280
|
+
aria-errormessage="footer"
|
|
279
281
|
placeholder=" "
|
|
280
282
|
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
281
283
|
autocomplete=${ifDefined(this.autocomplete)}
|
package/generated/locales/da.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `November`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Annuller`,
|
|
12
12
|
"s39938ecdae568740": `September`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Br\xF8dkrummer`,
|
|
13
14
|
"s407a88a592a0987c": `August`,
|
|
14
15
|
"s46d6587089bd0356": `N\xE6ste m\xE5ned`,
|
|
15
16
|
"s49730f3d5751a433": `Indl\xE6ser...`,
|
package/generated/locales/de.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `November`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Abbrechen`,
|
|
12
12
|
"s39938ecdae568740": `September`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Brotkr\xFCmelnavigation`,
|
|
13
14
|
"s407a88a592a0987c": `August`,
|
|
14
15
|
"s46d6587089bd0356": `N\xE4chster Monat`,
|
|
15
16
|
"s49730f3d5751a433": `Laden...`,
|
package/generated/locales/fi.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `Marraskuu`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Peruuta`,
|
|
12
12
|
"s39938ecdae568740": `Syys`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Murupolku`,
|
|
13
14
|
"s407a88a592a0987c": `Elokuu`,
|
|
14
15
|
"s46d6587089bd0356": `Seuraava kuukausi`,
|
|
15
16
|
"s49730f3d5751a433": `Ladataan...`,
|
package/generated/locales/fr.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `Novembre`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Annuler`,
|
|
12
12
|
"s39938ecdae568740": `Septembre`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Fil d'Ariane`,
|
|
13
14
|
"s407a88a592a0987c": `Ao\xFBt`,
|
|
14
15
|
"s46d6587089bd0356": `Mois suivant`,
|
|
15
16
|
"s49730f3d5751a433": `Chargement...`,
|
package/generated/locales/it.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `Novembre`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Annulla`,
|
|
12
12
|
"s39938ecdae568740": `Settembre`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Percorso di navigazione`,
|
|
13
14
|
"s407a88a592a0987c": `Agosto`,
|
|
14
15
|
"s46d6587089bd0356": `Mese successivo`,
|
|
15
16
|
"s49730f3d5751a433": `Caricamento...`,
|
package/generated/locales/nl.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `November`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Annuleren`,
|
|
12
12
|
"s39938ecdae568740": `September`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Kruimelpad`,
|
|
13
14
|
"s407a88a592a0987c": `Augustus`,
|
|
14
15
|
"s46d6587089bd0356": `Volgende maand`,
|
|
15
16
|
"s49730f3d5751a433": `Laden...`,
|
package/generated/locales/no.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `November`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Avbryt`,
|
|
12
12
|
"s39938ecdae568740": `September`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Br\xF8dsmuler`,
|
|
13
14
|
"s407a88a592a0987c": `August`,
|
|
14
15
|
"s46d6587089bd0356": `Neste m\xE5ned`,
|
|
15
16
|
"s49730f3d5751a433": `Laster...`,
|
package/generated/locales/sv.js
CHANGED
|
@@ -10,6 +10,7 @@ const templates = {
|
|
|
10
10
|
"s281846ef0421c71f": `November`,
|
|
11
11
|
"s2ceb11be2290bb1b": `Avbryt`,
|
|
12
12
|
"s39938ecdae568740": `September`,
|
|
13
|
+
"s3b8a6245b12fa2ad": `Br\xF6dsmulor`,
|
|
13
14
|
"s407a88a592a0987c": `Augusti`,
|
|
14
15
|
"s46d6587089bd0356": `N\xE4sta m\xE5nad`,
|
|
15
16
|
"s49730f3d5751a433": `Laddar...`,
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { getReactComponent } from "../../../utils/react";
|
|
2
|
+
import { GdsBreadcrumbs as GdsBreadcrumbsClass } from "../../../components/breadcrumbs/breadcrumbs.component";
|
|
3
|
+
export declare const GdsBreadcrumbs: (props: React.ComponentProps<ReturnType<typeof getReactComponent<GdsBreadcrumbsClass>>>) => import("react").ReactElement<Omit<{
|
|
4
|
+
size?: "small" | "large" | undefined;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
render?: (() => import("lit-html").TemplateResult<1>) | undefined;
|
|
7
|
+
'align-self'?: string | undefined;
|
|
8
|
+
'justify-self'?: string | undefined;
|
|
9
|
+
'place-self'?: string | undefined;
|
|
10
|
+
'grid-column'?: string | undefined;
|
|
11
|
+
'grid-row'?: string | undefined;
|
|
12
|
+
'grid-area'?: string | undefined;
|
|
13
|
+
flex?: string | undefined;
|
|
14
|
+
width?: string | undefined;
|
|
15
|
+
'min-width'?: string | undefined;
|
|
16
|
+
'max-width'?: string | undefined;
|
|
17
|
+
'inline-size'?: string | undefined;
|
|
18
|
+
'min-inline-size'?: string | undefined;
|
|
19
|
+
'max-inline-size'?: string | undefined;
|
|
20
|
+
margin?: string | undefined;
|
|
21
|
+
'margin-inline'?: string | undefined;
|
|
22
|
+
'margin-block'?: string | undefined;
|
|
23
|
+
gdsElementName?: string | undefined;
|
|
24
|
+
_isUsingTransitionalStyles?: boolean | undefined;
|
|
25
|
+
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
26
|
+
connectedCallback?: (() => void) | undefined;
|
|
27
|
+
disconnectedCallback?: (() => void) | undefined;
|
|
28
|
+
readonly renderOptions?: import("lit-html").RenderOptions | undefined;
|
|
29
|
+
readonly renderRoot?: HTMLElement | DocumentFragment | undefined;
|
|
30
|
+
isUpdatePending?: boolean | undefined;
|
|
31
|
+
hasUpdated?: boolean | undefined;
|
|
32
|
+
addController?: ((controller: import("lit").ReactiveController) => void) | undefined;
|
|
33
|
+
removeController?: ((controller: import("lit").ReactiveController) => void) | undefined;
|
|
34
|
+
attributeChangedCallback?: ((name: string, _old: string | null, value: string | null) => void) | undefined;
|
|
35
|
+
requestUpdate?: ((name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void) | undefined;
|
|
36
|
+
readonly updateComplete?: Promise<boolean> | undefined;
|
|
37
|
+
accessKey?: string | undefined;
|
|
38
|
+
readonly accessKeyLabel?: string | undefined;
|
|
39
|
+
autocapitalize?: string | undefined;
|
|
40
|
+
dir?: string | undefined;
|
|
41
|
+
draggable?: boolean | undefined;
|
|
42
|
+
hidden?: boolean | undefined;
|
|
43
|
+
inert?: boolean | undefined;
|
|
44
|
+
innerText?: string | undefined;
|
|
45
|
+
lang?: string | undefined;
|
|
46
|
+
readonly offsetHeight?: number | undefined;
|
|
47
|
+
readonly offsetLeft?: number | undefined;
|
|
48
|
+
readonly offsetParent?: Element | null | undefined;
|
|
49
|
+
readonly offsetTop?: number | undefined;
|
|
50
|
+
readonly offsetWidth?: number | undefined;
|
|
51
|
+
outerText?: string | undefined;
|
|
52
|
+
popover?: string | null | undefined;
|
|
53
|
+
spellcheck?: boolean | undefined;
|
|
54
|
+
title?: string | undefined;
|
|
55
|
+
translate?: boolean | undefined;
|
|
56
|
+
attachInternals?: (() => ElementInternals) | undefined;
|
|
57
|
+
click?: (() => void) | undefined;
|
|
58
|
+
hidePopover?: (() => void) | undefined;
|
|
59
|
+
showPopover?: (() => void) | undefined;
|
|
60
|
+
togglePopover?: ((force?: boolean | undefined) => boolean) | undefined;
|
|
61
|
+
addEventListener?: {
|
|
62
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
63
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
64
|
+
} | undefined;
|
|
65
|
+
removeEventListener?: {
|
|
66
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
67
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
68
|
+
} | undefined;
|
|
69
|
+
readonly attributes?: NamedNodeMap | undefined;
|
|
70
|
+
readonly classList?: DOMTokenList | undefined;
|
|
71
|
+
className?: string | undefined;
|
|
72
|
+
readonly clientHeight?: number | undefined;
|
|
73
|
+
readonly clientLeft?: number | undefined;
|
|
74
|
+
readonly clientTop?: number | undefined;
|
|
75
|
+
readonly clientWidth?: number | undefined;
|
|
76
|
+
id?: string | undefined;
|
|
77
|
+
readonly localName?: string | undefined;
|
|
78
|
+
readonly namespaceURI?: string | null | undefined;
|
|
79
|
+
onfullscreenchange?: ((this: Element, ev: Event) => any) | null | undefined;
|
|
80
|
+
onfullscreenerror?: ((this: Element, ev: Event) => any) | null | undefined;
|
|
81
|
+
outerHTML?: string | undefined;
|
|
82
|
+
readonly ownerDocument?: Document | undefined;
|
|
83
|
+
readonly part?: DOMTokenList | undefined;
|
|
84
|
+
readonly prefix?: string | null | undefined;
|
|
85
|
+
readonly scrollHeight?: number | undefined;
|
|
86
|
+
scrollLeft?: number | undefined;
|
|
87
|
+
scrollTop?: number | undefined;
|
|
88
|
+
readonly scrollWidth?: number | undefined;
|
|
89
|
+
readonly shadowRoot?: ShadowRoot | null | undefined;
|
|
90
|
+
slot?: string | undefined;
|
|
91
|
+
readonly tagName?: string | undefined;
|
|
92
|
+
attachShadow?: ((init: ShadowRootInit) => ShadowRoot) | undefined;
|
|
93
|
+
checkVisibility?: ((options?: CheckVisibilityOptions | undefined) => boolean) | undefined;
|
|
94
|
+
closest?: {
|
|
95
|
+
<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
96
|
+
<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
97
|
+
<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
98
|
+
<E extends Element = Element>(selectors: string): E | null;
|
|
99
|
+
} | undefined;
|
|
100
|
+
computedStyleMap?: (() => StylePropertyMapReadOnly) | undefined;
|
|
101
|
+
getAttribute?: ((qualifiedName: string) => string | null) | undefined;
|
|
102
|
+
getAttributeNS?: ((namespace: string | null, localName: string) => string | null) | undefined;
|
|
103
|
+
getAttributeNames?: (() => string[]) | undefined;
|
|
104
|
+
getAttributeNode?: ((qualifiedName: string) => Attr | null) | undefined;
|
|
105
|
+
getAttributeNodeNS?: ((namespace: string | null, localName: string) => Attr | null) | undefined;
|
|
106
|
+
getBoundingClientRect?: (() => DOMRect) | undefined;
|
|
107
|
+
getClientRects?: (() => DOMRectList) | undefined;
|
|
108
|
+
getElementsByClassName?: ((classNames: string) => HTMLCollectionOf<Element>) | undefined;
|
|
109
|
+
getElementsByTagName?: {
|
|
110
|
+
<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
111
|
+
<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
112
|
+
<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
113
|
+
<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
114
|
+
(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
115
|
+
} | undefined;
|
|
116
|
+
getElementsByTagNameNS?: {
|
|
117
|
+
(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
118
|
+
(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
119
|
+
(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
120
|
+
(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
121
|
+
} | undefined;
|
|
122
|
+
hasAttribute?: ((qualifiedName: string) => boolean) | undefined;
|
|
123
|
+
hasAttributeNS?: ((namespace: string | null, localName: string) => boolean) | undefined;
|
|
124
|
+
hasAttributes?: (() => boolean) | undefined;
|
|
125
|
+
hasPointerCapture?: ((pointerId: number) => boolean) | undefined;
|
|
126
|
+
insertAdjacentElement?: ((where: InsertPosition, element: Element) => Element | null) | undefined;
|
|
127
|
+
insertAdjacentHTML?: ((position: InsertPosition, text: string) => void) | undefined;
|
|
128
|
+
insertAdjacentText?: ((where: InsertPosition, data: string) => void) | undefined;
|
|
129
|
+
matches?: ((selectors: string) => boolean) | undefined;
|
|
130
|
+
releasePointerCapture?: ((pointerId: number) => void) | undefined;
|
|
131
|
+
removeAttribute?: ((qualifiedName: string) => void) | undefined;
|
|
132
|
+
removeAttributeNS?: ((namespace: string | null, localName: string) => void) | undefined;
|
|
133
|
+
removeAttributeNode?: ((attr: Attr) => Attr) | undefined;
|
|
134
|
+
requestFullscreen?: ((options?: FullscreenOptions | undefined) => Promise<void>) | undefined;
|
|
135
|
+
requestPointerLock?: (() => void) | undefined;
|
|
136
|
+
scroll?: {
|
|
137
|
+
(options?: ScrollToOptions | undefined): void;
|
|
138
|
+
(x: number, y: number): void;
|
|
139
|
+
} | undefined;
|
|
140
|
+
scrollBy?: {
|
|
141
|
+
(options?: ScrollToOptions | undefined): void;
|
|
142
|
+
(x: number, y: number): void;
|
|
143
|
+
} | undefined;
|
|
144
|
+
scrollIntoView?: ((arg?: boolean | ScrollIntoViewOptions | undefined) => void) | undefined;
|
|
145
|
+
scrollTo?: {
|
|
146
|
+
(options?: ScrollToOptions | undefined): void;
|
|
147
|
+
(x: number, y: number): void;
|
|
148
|
+
} | undefined;
|
|
149
|
+
setAttribute?: ((qualifiedName: string, value: string) => void) | undefined;
|
|
150
|
+
setAttributeNS?: ((namespace: string | null, qualifiedName: string, value: string) => void) | undefined;
|
|
151
|
+
setAttributeNode?: ((attr: Attr) => Attr | null) | undefined;
|
|
152
|
+
setAttributeNodeNS?: ((attr: Attr) => Attr | null) | undefined;
|
|
153
|
+
setPointerCapture?: ((pointerId: number) => void) | undefined;
|
|
154
|
+
toggleAttribute?: ((qualifiedName: string, force?: boolean | undefined) => boolean) | undefined;
|
|
155
|
+
webkitMatchesSelector?: ((selectors: string) => boolean) | undefined;
|
|
156
|
+
readonly baseURI?: string | undefined;
|
|
157
|
+
readonly childNodes?: NodeListOf<ChildNode> | undefined;
|
|
158
|
+
readonly firstChild?: ChildNode | null | undefined;
|
|
159
|
+
readonly isConnected?: boolean | undefined;
|
|
160
|
+
readonly lastChild?: ChildNode | null | undefined;
|
|
161
|
+
readonly nextSibling?: ChildNode | null | undefined;
|
|
162
|
+
readonly nodeName?: string | undefined;
|
|
163
|
+
readonly nodeType?: number | undefined;
|
|
164
|
+
nodeValue?: string | null | undefined;
|
|
165
|
+
readonly parentElement?: HTMLElement | null | undefined;
|
|
166
|
+
readonly parentNode?: ParentNode | null | undefined;
|
|
167
|
+
readonly previousSibling?: ChildNode | null | undefined;
|
|
168
|
+
textContent?: string | null | undefined;
|
|
169
|
+
appendChild?: (<T extends Node>(node: T) => T) | undefined;
|
|
170
|
+
cloneNode?: ((deep?: boolean | undefined) => Node) | undefined;
|
|
171
|
+
compareDocumentPosition?: ((other: Node) => number) | undefined;
|
|
172
|
+
contains?: ((other: Node | null) => boolean) | undefined;
|
|
173
|
+
getRootNode?: ((options?: GetRootNodeOptions | undefined) => Node) | undefined;
|
|
174
|
+
hasChildNodes?: (() => boolean) | undefined;
|
|
175
|
+
insertBefore?: (<T_1 extends Node>(node: T_1, child: Node | null) => T_1) | undefined;
|
|
176
|
+
isDefaultNamespace?: ((namespace: string | null) => boolean) | undefined;
|
|
177
|
+
isEqualNode?: ((otherNode: Node | null) => boolean) | undefined;
|
|
178
|
+
isSameNode?: ((otherNode: Node | null) => boolean) | undefined;
|
|
179
|
+
lookupNamespaceURI?: ((prefix: string | null) => string | null) | undefined;
|
|
180
|
+
lookupPrefix?: ((namespace: string | null) => string | null) | undefined;
|
|
181
|
+
normalize?: (() => void) | undefined;
|
|
182
|
+
removeChild?: (<T_2 extends Node>(child: T_2) => T_2) | undefined;
|
|
183
|
+
replaceChild?: (<T_3 extends Node>(node: Node, child: T_3) => T_3) | undefined;
|
|
184
|
+
readonly ELEMENT_NODE?: 1 | undefined;
|
|
185
|
+
readonly ATTRIBUTE_NODE?: 2 | undefined;
|
|
186
|
+
readonly TEXT_NODE?: 3 | undefined;
|
|
187
|
+
readonly CDATA_SECTION_NODE?: 4 | undefined;
|
|
188
|
+
readonly ENTITY_REFERENCE_NODE?: 5 | undefined;
|
|
189
|
+
readonly ENTITY_NODE?: 6 | undefined;
|
|
190
|
+
readonly PROCESSING_INSTRUCTION_NODE?: 7 | undefined;
|
|
191
|
+
readonly COMMENT_NODE?: 8 | undefined;
|
|
192
|
+
readonly DOCUMENT_NODE?: 9 | undefined;
|
|
193
|
+
readonly DOCUMENT_TYPE_NODE?: 10 | undefined;
|
|
194
|
+
readonly DOCUMENT_FRAGMENT_NODE?: 11 | undefined;
|
|
195
|
+
readonly NOTATION_NODE?: 12 | undefined;
|
|
196
|
+
readonly DOCUMENT_POSITION_DISCONNECTED?: 1 | undefined;
|
|
197
|
+
readonly DOCUMENT_POSITION_PRECEDING?: 2 | undefined;
|
|
198
|
+
readonly DOCUMENT_POSITION_FOLLOWING?: 4 | undefined;
|
|
199
|
+
readonly DOCUMENT_POSITION_CONTAINS?: 8 | undefined;
|
|
200
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY?: 16 | undefined;
|
|
201
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC?: 32 | undefined;
|
|
202
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
203
|
+
ariaAtomic?: string | null | undefined;
|
|
204
|
+
ariaAutoComplete?: string | null | undefined;
|
|
205
|
+
ariaBusy?: string | null | undefined;
|
|
206
|
+
ariaChecked?: string | null | undefined;
|
|
207
|
+
ariaColCount?: string | null | undefined;
|
|
208
|
+
ariaColIndex?: string | null | undefined;
|
|
209
|
+
ariaColSpan?: string | null | undefined;
|
|
210
|
+
ariaCurrent?: string | null | undefined;
|
|
211
|
+
ariaDescription?: string | null | undefined;
|
|
212
|
+
ariaDisabled?: string | null | undefined;
|
|
213
|
+
ariaExpanded?: string | null | undefined;
|
|
214
|
+
ariaHasPopup?: string | null | undefined;
|
|
215
|
+
ariaHidden?: string | null | undefined;
|
|
216
|
+
ariaInvalid?: string | null | undefined;
|
|
217
|
+
ariaKeyShortcuts?: string | null | undefined;
|
|
218
|
+
ariaLabel?: string | null | undefined;
|
|
219
|
+
ariaLevel?: string | null | undefined;
|
|
220
|
+
ariaLive?: string | null | undefined;
|
|
221
|
+
ariaModal?: string | null | undefined;
|
|
222
|
+
ariaMultiLine?: string | null | undefined;
|
|
223
|
+
ariaMultiSelectable?: string | null | undefined;
|
|
224
|
+
ariaOrientation?: string | null | undefined;
|
|
225
|
+
ariaPlaceholder?: string | null | undefined;
|
|
226
|
+
ariaPosInSet?: string | null | undefined;
|
|
227
|
+
ariaPressed?: string | null | undefined;
|
|
228
|
+
ariaReadOnly?: string | null | undefined;
|
|
229
|
+
ariaRequired?: string | null | undefined;
|
|
230
|
+
ariaRoleDescription?: string | null | undefined;
|
|
231
|
+
ariaRowCount?: string | null | undefined;
|
|
232
|
+
ariaRowIndex?: string | null | undefined;
|
|
233
|
+
ariaRowSpan?: string | null | undefined;
|
|
234
|
+
ariaSelected?: string | null | undefined;
|
|
235
|
+
ariaSetSize?: string | null | undefined;
|
|
236
|
+
ariaSort?: string | null | undefined;
|
|
237
|
+
ariaValueMax?: string | null | undefined;
|
|
238
|
+
ariaValueMin?: string | null | undefined;
|
|
239
|
+
ariaValueNow?: string | null | undefined;
|
|
240
|
+
ariaValueText?: string | null | undefined;
|
|
241
|
+
role?: string | null | undefined;
|
|
242
|
+
animate?: ((keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation) | undefined;
|
|
243
|
+
getAnimations?: ((options?: GetAnimationsOptions | undefined) => Animation[]) | undefined;
|
|
244
|
+
after?: ((...nodes: (string | Node)[]) => void) | undefined;
|
|
245
|
+
before?: ((...nodes: (string | Node)[]) => void) | undefined;
|
|
246
|
+
remove?: (() => void) | undefined;
|
|
247
|
+
replaceWith?: ((...nodes: (string | Node)[]) => void) | undefined;
|
|
248
|
+
innerHTML?: string | undefined;
|
|
249
|
+
readonly nextElementSibling?: Element | null | undefined;
|
|
250
|
+
readonly previousElementSibling?: Element | null | undefined;
|
|
251
|
+
readonly childElementCount?: number | undefined;
|
|
252
|
+
readonly children?: HTMLCollection | undefined;
|
|
253
|
+
readonly firstElementChild?: Element | null | undefined;
|
|
254
|
+
readonly lastElementChild?: Element | null | undefined;
|
|
255
|
+
append?: ((...nodes: (string | Node)[]) => void) | undefined;
|
|
256
|
+
prepend?: ((...nodes: (string | Node)[]) => void) | undefined;
|
|
257
|
+
querySelector?: {
|
|
258
|
+
<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
259
|
+
<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
260
|
+
<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
261
|
+
<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
262
|
+
<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
263
|
+
} | undefined;
|
|
264
|
+
querySelectorAll?: {
|
|
265
|
+
<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
266
|
+
<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
267
|
+
<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
268
|
+
<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
269
|
+
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
270
|
+
} | undefined;
|
|
271
|
+
replaceChildren?: ((...nodes: (string | Node)[]) => void) | undefined;
|
|
272
|
+
readonly assignedSlot?: HTMLSlotElement | null | undefined;
|
|
273
|
+
readonly attributeStyleMap?: StylePropertyMap | undefined;
|
|
274
|
+
readonly style?: CSSStyleDeclaration | undefined;
|
|
275
|
+
contentEditable?: string | undefined;
|
|
276
|
+
enterKeyHint?: string | undefined;
|
|
277
|
+
inputMode?: string | undefined;
|
|
278
|
+
readonly isContentEditable?: boolean | undefined;
|
|
279
|
+
onabort?: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null | undefined;
|
|
280
|
+
onanimationcancel?: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | undefined;
|
|
281
|
+
onanimationend?: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | undefined;
|
|
282
|
+
onanimationiteration?: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | undefined;
|
|
283
|
+
onanimationstart?: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | undefined;
|
|
284
|
+
onauxclick?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
285
|
+
onbeforeinput?: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null | undefined;
|
|
286
|
+
onbeforetoggle?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
287
|
+
onblur?: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null | undefined;
|
|
288
|
+
oncancel?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
289
|
+
oncanplay?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
290
|
+
oncanplaythrough?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
291
|
+
onchange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
292
|
+
onclick?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
293
|
+
onclose?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
294
|
+
oncontextmenu?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
295
|
+
oncopy?: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null | undefined;
|
|
296
|
+
oncuechange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
297
|
+
oncut?: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null | undefined;
|
|
298
|
+
ondblclick?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
299
|
+
ondrag?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
300
|
+
ondragend?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
301
|
+
ondragenter?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
302
|
+
ondragleave?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
303
|
+
ondragover?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
304
|
+
ondragstart?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
305
|
+
ondrop?: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | undefined;
|
|
306
|
+
ondurationchange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
307
|
+
onemptied?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
308
|
+
onended?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
309
|
+
onerror?: OnErrorEventHandler | undefined;
|
|
310
|
+
onfocus?: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null | undefined;
|
|
311
|
+
onformdata?: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null | undefined;
|
|
312
|
+
ongotpointercapture?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
313
|
+
oninput?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
314
|
+
oninvalid?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
315
|
+
onkeydown?: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null | undefined;
|
|
316
|
+
onkeypress?: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null | undefined;
|
|
317
|
+
onkeyup?: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null | undefined;
|
|
318
|
+
onload?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
319
|
+
onloadeddata?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
320
|
+
onloadedmetadata?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
321
|
+
onloadstart?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
322
|
+
onlostpointercapture?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
323
|
+
onmousedown?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
324
|
+
onmouseenter?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
325
|
+
onmouseleave?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
326
|
+
onmousemove?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
327
|
+
onmouseout?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
328
|
+
onmouseover?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
329
|
+
onmouseup?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
330
|
+
onpaste?: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null | undefined;
|
|
331
|
+
onpause?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
332
|
+
onplay?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
333
|
+
onplaying?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
334
|
+
onpointercancel?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
335
|
+
onpointerdown?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
336
|
+
onpointerenter?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
337
|
+
onpointerleave?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
338
|
+
onpointermove?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
339
|
+
onpointerout?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
340
|
+
onpointerover?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
341
|
+
onpointerup?: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | undefined;
|
|
342
|
+
onprogress?: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null | undefined;
|
|
343
|
+
onratechange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
344
|
+
onreset?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
345
|
+
onresize?: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null | undefined;
|
|
346
|
+
onscroll?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
347
|
+
onscrollend?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
348
|
+
onsecuritypolicyviolation?: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null | undefined;
|
|
349
|
+
onseeked?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
350
|
+
onseeking?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
351
|
+
onselect?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
352
|
+
onselectionchange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
353
|
+
onselectstart?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
354
|
+
onslotchange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
355
|
+
onstalled?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
356
|
+
onsubmit?: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null | undefined;
|
|
357
|
+
onsuspend?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
358
|
+
ontimeupdate?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
359
|
+
ontoggle?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
360
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
361
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
362
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
363
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
364
|
+
ontransitioncancel?: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | undefined;
|
|
365
|
+
ontransitionend?: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | undefined;
|
|
366
|
+
ontransitionrun?: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | undefined;
|
|
367
|
+
ontransitionstart?: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | undefined;
|
|
368
|
+
onvolumechange?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
369
|
+
onwaiting?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
370
|
+
onwebkitanimationend?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
371
|
+
onwebkitanimationiteration?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
372
|
+
onwebkitanimationstart?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
373
|
+
onwebkittransitionend?: ((this: GlobalEventHandlers, ev: Event) => any) | null | undefined;
|
|
374
|
+
onwheel?: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null | undefined;
|
|
375
|
+
autofocus?: boolean | undefined;
|
|
376
|
+
readonly dataset?: DOMStringMap | undefined;
|
|
377
|
+
nonce?: string | undefined;
|
|
378
|
+
tabIndex?: number | undefined;
|
|
379
|
+
blur?: (() => void) | undefined;
|
|
380
|
+
focus?: ((options?: FocusOptions | undefined) => void) | undefined;
|
|
381
|
+
}, "children"> & {
|
|
382
|
+
children?: import("react").ReactNode;
|
|
383
|
+
} & Omit<import("react").HTMLAttributes<HTMLElement>, "children"> & import("react").RefAttributes<HTMLElement>, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../../../chunks/chunk.QTSIPXV3.js";
|
|
2
|
+
import { getReactComponent } from "../../../utils/react.js";
|
|
3
|
+
import { GdsBreadcrumbs as GdsBreadcrumbsClass } from "../../../components/breadcrumbs/breadcrumbs.component.js";
|
|
4
|
+
import { createElement } from "react";
|
|
5
|
+
const GdsBreadcrumbs = (props) => {
|
|
6
|
+
GdsBreadcrumbsClass.define();
|
|
7
|
+
const JSXElement = getReactComponent("gds-breadcrumbs");
|
|
8
|
+
const propsWithClass = { ...props, class: props.className };
|
|
9
|
+
return createElement(JSXElement, propsWithClass);
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
GdsBreadcrumbs
|
|
13
|
+
};
|
|
@@ -2,12 +2,12 @@ import { getReactComponent } from "../../../utils/react";
|
|
|
2
2
|
import { GdsFormControlFooter as GdsFormControlFooterClass } from "../../../primitives/form-control-footer/form-control-footer.component";
|
|
3
3
|
export declare const GdsFormControlFooter: (props: React.ComponentProps<ReturnType<typeof getReactComponent<GdsFormControlFooterClass>>>) => import("react").ReactElement<Omit<{
|
|
4
4
|
charCounter?: number | undefined;
|
|
5
|
-
|
|
5
|
+
errorMessage?: string | undefined;
|
|
6
|
+
connectedCallback?: (() => void) | undefined;
|
|
6
7
|
render?: (() => any) | undefined;
|
|
7
8
|
gdsElementName?: string | undefined;
|
|
8
9
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
9
10
|
_dynamicStylesController?: import("../../../utils/controllers/dynamic-styles-controller").DynamicStylesController | undefined;
|
|
10
|
-
connectedCallback?: (() => void) | undefined;
|
|
11
11
|
disconnectedCallback?: (() => void) | undefined;
|
|
12
12
|
readonly renderOptions?: import("lit-html").RenderOptions | undefined;
|
|
13
13
|
readonly renderRoot?: HTMLElement | DocumentFragment | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './badge/index.js';
|
|
2
2
|
export * from './blur/index.js';
|
|
3
|
+
export * from './breadcrumbs/index.js';
|
|
3
4
|
export * from './button/index.js';
|
|
4
5
|
export * from './calendar/index.js';
|
|
5
6
|
export * from './card/index.js';
|
|
@@ -48,6 +49,9 @@ export * from './filter-chip/index.js';
|
|
|
48
49
|
export * from './formatted-account/index.js';
|
|
49
50
|
export * from './formatted-date/index.js';
|
|
50
51
|
export * from './formatted-number/index.js';
|
|
52
|
+
export * from './radio-group/index.js';
|
|
53
|
+
export * from './segment/index.js';
|
|
54
|
+
export * from './sensitive-account/index.js';
|
|
51
55
|
export * from './icons/icon-ai/index.js';
|
|
52
56
|
export * from './icons/icon-airplane-up/index.js';
|
|
53
57
|
export * from './icons/icon-archive/index.js';
|
|
@@ -335,8 +339,5 @@ export * from './icons/icon-youtube/index.js';
|
|
|
335
339
|
export * from './icons/icon-zap/index.js';
|
|
336
340
|
export * from './icons/icon-zoom-in/index.js';
|
|
337
341
|
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
342
|
export * from './sensitive-date/index.js';
|
|
342
343
|
export * from './sensitive-number/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./badge/index.js";
|
|
2
2
|
export * from "./blur/index.js";
|
|
3
|
+
export * from "./breadcrumbs/index.js";
|
|
3
4
|
export * from "./button/index.js";
|
|
4
5
|
export * from "./calendar/index.js";
|
|
5
6
|
export * from "./card/index.js";
|
|
@@ -48,6 +49,9 @@ export * from "./filter-chip/index.js";
|
|
|
48
49
|
export * from "./formatted-account/index.js";
|
|
49
50
|
export * from "./formatted-date/index.js";
|
|
50
51
|
export * from "./formatted-number/index.js";
|
|
52
|
+
export * from "./radio-group/index.js";
|
|
53
|
+
export * from "./segment/index.js";
|
|
54
|
+
export * from "./sensitive-account/index.js";
|
|
51
55
|
export * from "./icons/icon-ai/index.js";
|
|
52
56
|
export * from "./icons/icon-airplane-up/index.js";
|
|
53
57
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -335,8 +339,5 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
335
339
|
export * from "./icons/icon-zap/index.js";
|
|
336
340
|
export * from "./icons/icon-zoom-in/index.js";
|
|
337
341
|
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
342
|
export * from "./sensitive-date/index.js";
|
|
342
343
|
export * from "./sensitive-number/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-core",
|
|
3
3
|
"description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.82.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"type": "module",
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"./components/badge/index.js",
|
|
48
48
|
"./components/blur/blur.js",
|
|
49
49
|
"./components/blur/index.js",
|
|
50
|
+
"./components/breadcrumbs/breadcrumbs.js",
|
|
51
|
+
"./components/breadcrumbs/index.js",
|
|
50
52
|
"./components/button/button.js",
|
|
51
53
|
"./components/button/index.js",
|
|
52
54
|
"./components/calendar/calendar.js",
|
|
@@ -6,6 +6,8 @@ export declare class GdsFormControlFooter extends GdsElement {
|
|
|
6
6
|
#private;
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
8
8
|
charCounter?: number;
|
|
9
|
-
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
private _handleVisibilityChange;
|
|
11
|
+
connectedCallback(): void;
|
|
10
12
|
render(): any;
|
|
11
13
|
}
|
|
@@ -9,6 +9,7 @@ import { when } from "lit/directives/when.js";
|
|
|
9
9
|
import { GdsBadge } from "../../components/badge/badge.component.js";
|
|
10
10
|
import { IconTriangleExclamation } from "../../components/icon/icons/triangle-exclamation.component.js";
|
|
11
11
|
import { GdsElement } from "../../gds-element.js";
|
|
12
|
+
import { watch } from "../../utils/decorators/watch.js";
|
|
12
13
|
import {
|
|
13
14
|
gdsCustomElement,
|
|
14
15
|
html
|
|
@@ -19,22 +20,32 @@ let GdsFormControlFooter = class extends GdsElement {
|
|
|
19
20
|
super(...arguments);
|
|
20
21
|
__privateAdd(this, _renderRemainingCharsBadge);
|
|
21
22
|
}
|
|
23
|
+
_handleVisibilityChange() {
|
|
24
|
+
this.classList.toggle(
|
|
25
|
+
"visually-hidden",
|
|
26
|
+
!this.errorMessage && !this.charCounter
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
super.connectedCallback();
|
|
31
|
+
this._handleVisibilityChange();
|
|
32
|
+
}
|
|
22
33
|
render() {
|
|
23
34
|
return html`<div aria-live="polite">
|
|
24
35
|
<div class="error-message">
|
|
25
36
|
<slot name="message"
|
|
26
37
|
>${when(
|
|
27
|
-
this.
|
|
38
|
+
this.errorMessage,
|
|
28
39
|
() => html`
|
|
29
40
|
<gds-icon-triangle-exclamation
|
|
30
41
|
solid
|
|
31
42
|
></gds-icon-triangle-exclamation>
|
|
32
|
-
${this.
|
|
43
|
+
${this.errorMessage}
|
|
33
44
|
`
|
|
34
45
|
)}</slot
|
|
35
46
|
>
|
|
36
47
|
</div>
|
|
37
|
-
<div class="char-counter">
|
|
48
|
+
<div class="char-counter" aria-hidden="true">
|
|
38
49
|
${when(
|
|
39
50
|
Number.isInteger(this.charCounter),
|
|
40
51
|
() => __privateMethod(this, _renderRemainingCharsBadge, renderRemainingCharsBadge_fn).call(this, this.charCounter)
|
|
@@ -61,7 +72,11 @@ __decorateClass([
|
|
|
61
72
|
], GdsFormControlFooter.prototype, "charCounter", 2);
|
|
62
73
|
__decorateClass([
|
|
63
74
|
property()
|
|
64
|
-
], GdsFormControlFooter.prototype, "
|
|
75
|
+
], GdsFormControlFooter.prototype, "errorMessage", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
watch("charCounter"),
|
|
78
|
+
watch("errorMessage")
|
|
79
|
+
], GdsFormControlFooter.prototype, "_handleVisibilityChange", 1);
|
|
65
80
|
GdsFormControlFooter = __decorateClass([
|
|
66
81
|
gdsCustomElement("gds-form-control-footer", {
|
|
67
82
|
dependsOn: [GdsBadge, IconTriangleExclamation]
|
|
@@ -3,6 +3,14 @@ import { css } from "lit";
|
|
|
3
3
|
const styles = css`
|
|
4
4
|
@layer base, reset, transitional-styles;
|
|
5
5
|
@layer base {
|
|
6
|
+
:host(.visually-hidden) {
|
|
7
|
+
position: absolute;
|
|
8
|
+
clip: rect(0 0 0 0);
|
|
9
|
+
width: 0px;
|
|
10
|
+
height: 0px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
:host > *:not(style) {
|
|
7
15
|
display: flex;
|
|
8
16
|
justify-content: space-between;
|