@sebgroup/green-core 3.4.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/dialog/dialog.component.js +5 -3
- package/components/form-summary/summary.component.d.ts +4 -2
- package/components/form-summary/summary.component.js +116 -55
- package/components/form-summary/summary.styles.js +16 -2
- package/components/segmented-control/segmented-control.component.js +9 -4
- package/custom-elements.json +18942 -18902
- package/gds-element.js +1 -1
- package/generated/locales/da.d.ts +1 -1
- package/generated/locales/da.js +1 -1
- package/generated/locales/de.d.ts +1 -1
- package/generated/locales/de.js +1 -1
- package/generated/locales/fi.d.ts +1 -1
- package/generated/locales/fi.js +1 -1
- package/generated/locales/fr.d.ts +1 -1
- package/generated/locales/fr.js +1 -1
- package/generated/locales/it.d.ts +1 -1
- package/generated/locales/it.js +1 -1
- package/generated/locales/nl.d.ts +1 -1
- package/generated/locales/nl.js +1 -1
- package/generated/locales/no.d.ts +1 -1
- package/generated/locales/no.js +1 -1
- package/generated/locales/sv.d.ts +1 -1
- package/generated/locales/sv.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/form-summary/angular.md +3 -1
- package/generated/mcp/form-summary/api.md +9 -2
- package/generated/mcp/form-summary/guidelines.md +6 -2
- package/generated/mcp/form-summary/react.md +3 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/pagination/guidelines.md +16 -6
- package/generated/mcp/tokens.json +1 -1
- package/generated/react/index.d.ts +2 -2
- package/generated/react/index.js +2 -2
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
package/gds-element.js
CHANGED
|
@@ -16,7 +16,7 @@ class GdsElement extends LitElement {
|
|
|
16
16
|
/**
|
|
17
17
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
18
18
|
*/
|
|
19
|
-
this.semanticVersion = "3.
|
|
19
|
+
this.semanticVersion = "3.5.1";
|
|
20
20
|
this.syncFirstRender = false;
|
|
21
21
|
this._isUsingTransitionalStyles = false;
|
|
22
22
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/da.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `L\xF8r`,
|
|
60
60
|
"s987ac119fac8d621": `S\xF8n`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `V\xE6lg dagens dato`,
|
|
62
|
-
"s9af3c72c33088826": str`Der er ${0} fejl, der skal rettes, før du kan fortsætte:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Ingen data tilg\xE6ngelige`,
|
|
64
63
|
"sa3a7061ff10a8138": `r\xE6kker`,
|
|
65
64
|
"sa6f2645578b2d2bc": `\xC5r`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Fejl ved indl\xE6sning af data`,
|
|
71
70
|
"sbc083a1dbee9af73": `Februar`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Datatabul med`,
|
|
72
|
+
"scab955958b9b783e": str`Der er fejl, der skal rettes, før du kan fortsætte`,
|
|
73
73
|
"scb6b9cb49cf93277": `April`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `S\xF8g i tabel`,
|
|
75
75
|
"sd186574aa8a68ecb": `Ingen resultater for`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/de.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `Sa`,
|
|
60
60
|
"s987ac119fac8d621": `So`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `W\xE4hlen Sie das heutige Datum`,
|
|
62
|
-
"s9af3c72c33088826": str`Es gibt ${0} Fehler zu beheben, bevor du fortfahren kannst:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Keine Daten verf\xFCgbar`,
|
|
64
63
|
"sa3a7061ff10a8138": `Zeilen`,
|
|
65
64
|
"sa6f2645578b2d2bc": `Jahr`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Fehler beim Laden von Daten`,
|
|
71
70
|
"sbc083a1dbee9af73": `Februar`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Datentabelle mit`,
|
|
72
|
+
"scab955958b9b783e": str`Es gibt Fehler, die korrigiert werden müssen, bevor Sie fortfahren können`,
|
|
73
73
|
"scb6b9cb49cf93277": `April`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `Tabelle durchsuchen`,
|
|
75
75
|
"sd186574aa8a68ecb": `Keine Ergebnisse f\xFCr`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/fi.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `La`,
|
|
60
60
|
"s987ac119fac8d621": `Su`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `Valitse t\xE4m\xE4n p\xE4iv\xE4n p\xE4iv\xE4m\xE4\xE4r\xE4`,
|
|
62
|
-
"s9af3c72c33088826": str`On ${0} virhettä, jotka täytyy korjata ennen kuin voit jatkaa:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Ei tietoja saatavilla`,
|
|
64
63
|
"sa3a7061ff10a8138": `rivit`,
|
|
65
64
|
"sa6f2645578b2d2bc": `Vuosi`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Virhe tietojen lataamisessa`,
|
|
71
70
|
"sbc083a1dbee9af73": `Helmikuu`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Tietojen taulukko, jossa on`,
|
|
72
|
+
"scab955958b9b783e": str`Korjattavia virheitä ennen kuin voit jatkaa`,
|
|
73
73
|
"scb6b9cb49cf93277": `Huhti`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `Etsi taulukosta`,
|
|
75
75
|
"sd186574aa8a68ecb": `Ei tuloksia kohteelle`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/fr.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `Sam`,
|
|
60
60
|
"s987ac119fac8d621": `Dim`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `S\xE9lectionnez la date du jour`,
|
|
62
|
-
"s9af3c72c33088826": str`Il y a ${0} erreur(s) à corriger avant de pouvoir continuer :`,
|
|
63
62
|
"sa26d7a273074cbf9": `Aucune donn\xE9e disponible`,
|
|
64
63
|
"sa3a7061ff10a8138": `lignes`,
|
|
65
64
|
"sa6f2645578b2d2bc": `Ann\xE9e`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Erreur lors du chargement des donn\xE9es`,
|
|
71
70
|
"sbc083a1dbee9af73": `F\xE9vrier`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Tableau de donn\xE9es avec`,
|
|
72
|
+
"scab955958b9b783e": str`Il y a des erreurs à corriger avant de pouvoir continuer`,
|
|
73
73
|
"scb6b9cb49cf93277": `Avril`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `Rechercher dans le tableau`,
|
|
75
75
|
"sd186574aa8a68ecb": `Aucun r\xE9sultat pour`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/it.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `Sab`,
|
|
60
60
|
"s987ac119fac8d621": `Dom`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `Seleziona la data odierna`,
|
|
62
|
-
"s9af3c72c33088826": str`Ci sono ${0} errori da correggere prima di poter continuare:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Nessun dato disponibile`,
|
|
64
63
|
"sa3a7061ff10a8138": `righe`,
|
|
65
64
|
"sa6f2645578b2d2bc": `Anno`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Errore nel caricamento dei dati`,
|
|
71
70
|
"sbc083a1dbee9af73": `Febbraio`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Tabella dati con`,
|
|
72
|
+
"scab955958b9b783e": str`Ci sono errori da correggere prima di poter continuare`,
|
|
73
73
|
"scb6b9cb49cf93277": `Aprile`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `Cerca nella tabella`,
|
|
75
75
|
"sd186574aa8a68ecb": `Nessun risultato per`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/nl.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `Za`,
|
|
60
60
|
"s987ac119fac8d621": `Zo`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `Selecteer de datum van vandaag`,
|
|
62
|
-
"s9af3c72c33088826": str`Er zijn ${0} fouten die gecorrigeerd moeten worden voordat je verder kunt gaan:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Geen gegevens beschikbaar`,
|
|
64
63
|
"sa3a7061ff10a8138": `rijen`,
|
|
65
64
|
"sa6f2645578b2d2bc": `Jaar`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Fout bij het laden van gegevens`,
|
|
71
70
|
"sbc083a1dbee9af73": `Februari`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Gegevenstabel met`,
|
|
72
|
+
"scab955958b9b783e": str`Er zijn fouten die gecorrigeerd moeten worden voordat u kunt doorgaan`,
|
|
73
73
|
"scb6b9cb49cf93277": `April`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `Zoek tabel`,
|
|
75
75
|
"sd186574aa8a68ecb": `Geen resultaten voor`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/no.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `L\xF8r`,
|
|
60
60
|
"s987ac119fac8d621": `S\xF8n`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `Velg dagens dato`,
|
|
62
|
-
"s9af3c72c33088826": str`Det er ${0} feil som må rettes før du kan fortsette:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Ingen data tilgjengelig`,
|
|
64
63
|
"sa3a7061ff10a8138": `rader`,
|
|
65
64
|
"sa6f2645578b2d2bc": `\xC5r`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Feil ved lasting av data`,
|
|
71
70
|
"sbc083a1dbee9af73": `Februar`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Datatabell med`,
|
|
72
|
+
"scab955958b9b783e": str`Det er feil som må rettes før du kan fortsette`,
|
|
73
73
|
"scb6b9cb49cf93277": `April`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `S\xF8k i tabell`,
|
|
75
75
|
"sd186574aa8a68ecb": `Ingen resultater for`,
|
|
@@ -57,7 +57,6 @@ export declare const templates: {
|
|
|
57
57
|
s9836b719fa8ef857: string;
|
|
58
58
|
s987ac119fac8d621: string;
|
|
59
59
|
s98dfb7a8cd8ec342: string;
|
|
60
|
-
s9af3c72c33088826: import("@lit/localize").StrResult;
|
|
61
60
|
sa26d7a273074cbf9: string;
|
|
62
61
|
sa3a7061ff10a8138: string;
|
|
63
62
|
sa6f2645578b2d2bc: string;
|
|
@@ -68,6 +67,7 @@ export declare const templates: {
|
|
|
68
67
|
sbbea6041f19ec177: string;
|
|
69
68
|
sbc083a1dbee9af73: string;
|
|
70
69
|
sc9ba1c07c319d0ab: string;
|
|
70
|
+
scab955958b9b783e: import("@lit/localize").StrResult;
|
|
71
71
|
scb6b9cb49cf93277: string;
|
|
72
72
|
scfe20e6b9fcd18ad: string;
|
|
73
73
|
sd186574aa8a68ecb: string;
|
package/generated/locales/sv.js
CHANGED
|
@@ -59,7 +59,6 @@ const templates = {
|
|
|
59
59
|
"s9836b719fa8ef857": `L\xF6r`,
|
|
60
60
|
"s987ac119fac8d621": `S\xF6n`,
|
|
61
61
|
"s98dfb7a8cd8ec342": `V\xE4lj dagens datum`,
|
|
62
|
-
"s9af3c72c33088826": str`Det finns ${0} fel att åtgärda innan du kan fortsätta:`,
|
|
63
62
|
"sa26d7a273074cbf9": `Inga data tillg\xE4ngliga`,
|
|
64
63
|
"sa3a7061ff10a8138": `rader`,
|
|
65
64
|
"sa6f2645578b2d2bc": `\xC5r`,
|
|
@@ -70,6 +69,7 @@ const templates = {
|
|
|
70
69
|
"sbbea6041f19ec177": `Fel vid inladdning av data`,
|
|
71
70
|
"sbc083a1dbee9af73": `Februari`,
|
|
72
71
|
"sc9ba1c07c319d0ab": `Datatabell med`,
|
|
72
|
+
"scab955958b9b783e": str`Det finns fel att rätta innan du kan fortsätta`,
|
|
73
73
|
"scb6b9cb49cf93277": `April`,
|
|
74
74
|
"scfe20e6b9fcd18ad": `S\xF6ktabell`,
|
|
75
75
|
"sd186574aa8a68ecb": `Inga resultat f\xF6r`,
|
|
@@ -9,11 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
| Name | Type | Default | Description |
|
|
11
11
|
|------|------|---------|-------------|
|
|
12
|
-
| `hideErrors` | `boolean` | `-` |
|
|
12
|
+
| `hideErrors` | `boolean` | `-` | |
|
|
13
13
|
| `reactive` | `boolean` | `-` | Whether to refresh the summary automatically as controls in the form change validation state. Avoid this setting if the summary is located above the form controls, as it may cause the form to jump around as the summary is updated. |
|
|
14
14
|
| `syncFirstRender` | `boolean` | `-` | Force the element to perform a synchronous first render and apply style expression properties in `connectedCallback`. This guarantees that the child DOM always remains projected in DOM, since the element will attach the shadowRoot and run the first render pass in the same event loop cycle, and that declarative layout will be applied once slotted DOM is projected. Note: This will cause the first render pass to be blocking. Use sparingly and only when necessary, such as when the element needs to be measured synchronously after being added to the DOM. |
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
## Slots
|
|
18
|
+
|
|
19
|
+
| Name | Description |
|
|
20
|
+
|------|-------------|
|
|
21
|
+
| `header` | Optional slot for customizing the header of the summary. |
|
|
22
|
+
|
|
23
|
+
|
|
17
24
|
## Methods
|
|
18
25
|
|
|
19
26
|
### `focus(options?: FocusOptions): void`
|
|
@@ -26,4 +33,4 @@ Focuses the first focusable element in the summary.
|
|
|
26
33
|
|
|
27
34
|
### `refresh(): void`
|
|
28
35
|
|
|
29
|
-
Refresh the component to
|
|
36
|
+
Refresh the component to reflect the current state of the form.
|
|
@@ -9,11 +9,15 @@ Form summary shows all form errors in one place.
|
|
|
9
9
|
|
|
10
10
|
Form summary works automatically when placed in a form with form controls from Green Core. It has two update modes, `default` and `reactive`. In the default mode, a `refresh()` method needs to be called for the component to update and reflect the current state of the form. In the `reactive` mode, it will update on the fly as soon as the status of a control in the form changes. The `reactive` mode requires less setup to use, but the `default` mode allows for more control over the behavior.
|
|
11
11
|
|
|
12
|
-
####
|
|
12
|
+
#### Fieldset labels
|
|
13
|
+
|
|
14
|
+
To reflect the structure of the form, the summary content can be grouped using fieldset labels. These act as headings for related fields and help users quickly understand how the information is organized. By mirroring the same grouping as in the form, it becomes easier to recognize and review the content, improving both clarity and confidence before submission.
|
|
15
|
+
|
|
16
|
+
### Accessibility
|
|
13
17
|
|
|
14
18
|
Semantically, the form summary is represented as a navigation region containing an unordered list of links.
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
### Compatibility
|
|
17
21
|
|
|
18
22
|
Form summary is mainly intended for use with form controls from Green Core, but it also works with generic native form controls by using data-attributes.
|
|
19
23
|
|
package/generated/mcp/icons.json
CHANGED
package/generated/mcp/index.json
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
# Pagination
|
|
2
2
|
|
|
3
|
-
Pagination helps users navigate large result sets by dividing content into clear, manageable pages.
|
|
3
|
+
Pagination helps users navigate large result sets by dividing content into clear, manageable pages.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Overview
|
|
7
7
|
|
|
8
8
|
### Usage
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
Pagination is used to divide large amounts of content into smaller pages, making it easier to navigate and understand a dataset. It is most useful when content cannot be displayed at once, or when users need to move through information in a defined order.
|
|
11
|
+
|
|
12
|
+
Use pagination when it improves readability and control, for example in tables or long lists, search results, or content listings. Avoid using pagination for small datasets or when continuous scrolling provides a better experience.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Behaviour
|
|
17
|
+
|
|
18
|
+
Pagination should clearly indicate the current page and keep navigation consistent and predictable. Unavailable actions should be disabled at the start or end of the page range. When used with data tables, the item range and total number of items should be displayed.
|
|
19
|
+
|
|
20
|
+
### Accessibility
|
|
21
|
+
|
|
22
|
+
Pagination should use a semantic navigation structure and ensure that all controls are keyboard accessible. The current page should be communicated programmatically, and visual styling alone should not be relied on to convey state.
|
|
23
|
+
|
|
24
|
+
### Do's and don'ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './alert/index.js';
|
|
2
|
+
export * from './blur/index.js';
|
|
2
3
|
export * from './badge/index.js';
|
|
3
4
|
export * from './breadcrumbs/index.js';
|
|
4
|
-
export * from './blur/index.js';
|
|
5
|
-
export * from './calendar/index.js';
|
|
6
5
|
export * from './button/index.js';
|
|
6
|
+
export * from './calendar/index.js';
|
|
7
7
|
export * from './card/index.js';
|
|
8
8
|
export * from './card-linked/index.js';
|
|
9
9
|
export * from './checkbox/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "./alert/index.js";
|
|
2
|
+
export * from "./blur/index.js";
|
|
2
3
|
export * from "./badge/index.js";
|
|
3
4
|
export * from "./breadcrumbs/index.js";
|
|
4
|
-
export * from "./blur/index.js";
|
|
5
|
-
export * from "./calendar/index.js";
|
|
6
5
|
export * from "./button/index.js";
|
|
6
|
+
export * from "./calendar/index.js";
|
|
7
7
|
export * from "./card/index.js";
|
|
8
8
|
export * from "./card-linked/index.js";
|
|
9
9
|
export * from "./checkbox/index.js";
|
package/package.json
CHANGED