@zitadel/components 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
Files changed (37) hide show
  1. package/README.md +4 -0
  2. package/dist/atoms/index.d.mts +1 -1
  3. package/dist/atoms/index.mjs +1 -1
  4. package/dist/atoms/zl-button.d.ts +10 -0
  5. package/dist/atoms/zl-button.d.ts.map +1 -1
  6. package/dist/atoms/zl-field.d.ts +4 -0
  7. package/dist/atoms/zl-field.d.ts.map +1 -1
  8. package/dist/{atoms-eOxuoGDq.mjs → atoms-Dh5J7QwT.mjs} +115 -19
  9. package/dist/atoms-Dh5J7QwT.mjs.map +1 -0
  10. package/dist/default-DD6GYdEe.mjs +6 -0
  11. package/dist/default-DD6GYdEe.mjs.map +1 -0
  12. package/dist/{index-QC-a9dn0.d.mts → index-AOp9ms-2.d.mts} +6 -3
  13. package/dist/{index-QC-a9dn0.d.mts.map → index-AOp9ms-2.d.mts.map} +1 -1
  14. package/dist/{index-DmtnqUIY.d.mts → index-B1nizGvK.d.mts} +70 -26
  15. package/dist/index-B1nizGvK.d.mts.map +1 -0
  16. package/dist/index.d.mts +3 -3
  17. package/dist/index.mjs +3 -3
  18. package/dist/manifests.mjs +1 -1
  19. package/dist/orchestrator/font-loader.d.ts.map +1 -1
  20. package/dist/orchestrator/index.d.mts +2 -2
  21. package/dist/orchestrator/index.mjs +2 -2
  22. package/dist/orchestrator/locales/de.d.ts.map +1 -1
  23. package/dist/orchestrator/locales/en.d.ts.map +1 -1
  24. package/dist/orchestrator/locales/it.d.ts.map +1 -1
  25. package/dist/orchestrator/sanitiser.d.ts.map +1 -1
  26. package/dist/orchestrator/zitadel-login.d.ts +3 -0
  27. package/dist/orchestrator/zitadel-login.d.ts.map +1 -1
  28. package/dist/{orchestrator-Dds72XrU.mjs → orchestrator-e33w1C7V.mjs} +83 -24
  29. package/dist/orchestrator-e33w1C7V.mjs.map +1 -0
  30. package/dist/standalone.mjs +195 -40
  31. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  32. package/package.json +2 -2
  33. package/dist/atoms-eOxuoGDq.mjs.map +0 -1
  34. package/dist/default-DP74t2io.mjs +0 -6
  35. package/dist/default-DP74t2io.mjs.map +0 -1
  36. package/dist/index-DmtnqUIY.d.mts.map +0 -1
  37. package/dist/orchestrator-Dds72XrU.mjs.map +0 -1
@@ -1,3 +1,3 @@
1
- import { t as default_default } from "../default-DP74t2io.mjs";
2
- import { A as ZitadelLogout, C as BrandingAssets, D as BrandingTheme, E as BrandingShape, F as Locale, I as en, M as builtinLocales, N as it, O as BrandingTypography, P as de, S as Branding, T as BrandingPalette, _ as applyBrandingTokens, a as LiquidContext, b as ResolvedTheme, c as getCurrentStep, d as createSanitiser, f as MANDATORY_GATES_MARKER, g as applyFontUrl, h as TEMPLATE_NAMES, i as FlowMessage, j as ZitadelLogin, k as FlowLayout, l as startFlow, m as patchMandatoryGates, n as FlowError, o as BrandingValidationResult, p as mandatoryGatesMarkerComment, r as FlowIdentity, s as validateBranding, t as layoutChromeCss, u as submitStep, v as buildBrandingStylesheet, w as BrandingAttribution, x as ThemeController, y as resolveTheme } from "../index-QC-a9dn0.mjs";
1
+ import { t as default_default } from "../default-DD6GYdEe.mjs";
2
+ import { A as ZitadelLogout, C as BrandingAssets, D as BrandingTheme, E as BrandingShape, F as Locale, I as en, M as builtinLocales, N as it, O as BrandingTypography, P as de, S as Branding, T as BrandingPalette, _ as applyBrandingTokens, a as LiquidContext, b as ResolvedTheme, c as getCurrentStep, d as createSanitiser, f as MANDATORY_GATES_MARKER, g as applyFontUrl, h as TEMPLATE_NAMES, i as FlowMessage, j as ZitadelLogin, k as FlowLayout, l as startFlow, m as patchMandatoryGates, n as FlowError, o as BrandingValidationResult, p as mandatoryGatesMarkerComment, r as FlowIdentity, s as validateBranding, t as layoutChromeCss, u as submitStep, v as buildBrandingStylesheet, w as BrandingAttribution, x as ThemeController, y as resolveTheme } from "../index-AOp9ms-2.mjs";
3
3
  export { Branding, BrandingAssets, BrandingAttribution, BrandingPalette, BrandingShape, BrandingTheme, BrandingTypography, BrandingValidationResult, FlowError, FlowIdentity, FlowLayout, FlowMessage, LiquidContext, Locale, MANDATORY_GATES_MARKER, ResolvedTheme, TEMPLATE_NAMES, ThemeController, ZitadelLogin, ZitadelLogout, applyBrandingTokens, applyFontUrl, buildBrandingStylesheet, builtinLocales, createSanitiser, de, default_default as defaultTemplate, en, getCurrentStep, it, layoutChromeCss, mandatoryGatesMarkerComment, patchMandatoryGates, resolveTheme, startFlow, submitStep, validateBranding };
@@ -1,3 +1,3 @@
1
- import { _ as buildBrandingStylesheet, a as createSanitiser, b as startFlow, c as de, d as MANDATORY_GATES_MARKER, f as mandatoryGatesMarkerComment, g as applyBrandingTokens, h as validateBranding, i as layout_chrome_default, l as en, m as applyFontUrl, n as ZitadelLogin, o as builtinLocales, p as patchMandatoryGates, r as ThemeController, s as it, t as ZitadelLogout, u as TEMPLATE_NAMES, v as resolveTheme, x as submitStep, y as getCurrentStep } from "../orchestrator-Dds72XrU.mjs";
2
- import { t as default_default } from "../default-DP74t2io.mjs";
1
+ import { _ as buildBrandingStylesheet, a as createSanitiser, b as startFlow, c as de, d as MANDATORY_GATES_MARKER, f as mandatoryGatesMarkerComment, g as applyBrandingTokens, h as validateBranding, i as layout_chrome_default, l as en, m as applyFontUrl, n as ZitadelLogin, o as builtinLocales, p as patchMandatoryGates, r as ThemeController, s as it, t as ZitadelLogout, u as TEMPLATE_NAMES, v as resolveTheme, x as submitStep, y as getCurrentStep } from "../orchestrator-e33w1C7V.mjs";
2
+ import { t as default_default } from "../default-DD6GYdEe.mjs";
3
3
  export { MANDATORY_GATES_MARKER, TEMPLATE_NAMES, ThemeController, ZitadelLogin, ZitadelLogout, applyBrandingTokens, applyFontUrl, buildBrandingStylesheet, builtinLocales, createSanitiser, de, default_default as defaultTemplate, en, getCurrentStep, it, layout_chrome_default as layoutChromeCss, mandatoryGatesMarkerComment, patchMandatoryGates, resolveTheme, startFlow, submitStep, validateBranding };
@@ -1 +1 @@
1
- {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/de.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,MAyJhB,CAAC"}
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/de.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,MAgKhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4JrC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgKrC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/it.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,MAyJhB,CAAC"}
1
+ {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/it.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,MAgKhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sanitiser.d.ts","sourceRoot":"","sources":["../../src/orchestrator/sanitiser.ts"],"names":[],"mappings":"AAyGA;;;GAGG;AACH,wBAAgB,eAAe,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAsB1D"}
1
+ {"version":3,"file":"sanitiser.d.ts","sourceRoot":"","sources":["../../src/orchestrator/sanitiser.ts"],"names":[],"mappings":"AA0GA;;;GAGG;AACH,wBAAgB,eAAe,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAsB1D"}
@@ -172,7 +172,10 @@ export declare class ZitadelLogin extends LitElement {
172
172
  */
173
173
  private deriveIdentity;
174
174
  private applyValuesToFields;
175
+ private captureValuesFromFields;
176
+ private currentFieldValue;
175
177
  private handleAtomInput;
178
+ private syncFieldElementValue;
176
179
  private handleAtomSubmit;
177
180
  /** Secondary navigation rows (`data-action` on `.zl-card-nav__link`). */
178
181
  private handleDelegatedAction;
@@ -1 +1 @@
1
- {"version":3,"file":"zitadel-login.d.ts","sourceRoot":"","sources":["../../src/orchestrator/zitadel-login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAGV,qBAAqB,EAGtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAa,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKjE,OAAO,mBAAmB,CAAC;AAgB3B,OAAO,EAAsB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAQrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,O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avD;IAEQ,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAIpD;YASa,sBAAsB;IAU3B,MAAM,oCAkBd;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,iBAAiB;IASzB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAe7B,8DAA8D;IAC9D,OAAO,KAAK,YAAY,GAEvB;YAEa,SAAS;IA4BvB,OAAO,CAAC,aAAa;YA0BP,iBAAiB;IAoC/B,OAAO,CAAC,UAAU;IAuDlB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,uBAAuB;IAyB/B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,eAAe,CAOrB;IAEF,OAAO,CAAC,qBAAqB;IAgB7B,OAAO,CAAC,gBAAgB,CAGtB;IAEF,yEAAyE;IACzE,OAAO,CAAC,qBAAqB,CAO3B;IAEF,OAAO,CAAC,gBAAgB,CAatB;IAEF;;;;OAIG;IACH,OAAO,CAAC,mBAAmB,CAUzB;IAEF;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,kBAAkB,CAexB;IAEF,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,qBAAqB;YAQf,MAAM;IAqCpB,OAAO,CAAC,oBAAoB;CAO7B;AAWD,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
@@ -1,6 +1,6 @@
1
- import { _ as __decorate, b as t, v as focusVisibleStyles, x as emit, y as baseHostStyles } from "./atoms-eOxuoGDq.mjs";
1
+ import { _ as __decorate, b as t, v as focusVisibleStyles, x as emit, y as baseHostStyles } from "./atoms-Dh5J7QwT.mjs";
2
2
  import { r as tokensCss } from "./tokens-TXmurodq.mjs";
3
- import { t as default_default } from "./default-DP74t2io.mjs";
3
+ import { t as default_default } from "./default-DD6GYdEe.mjs";
4
4
  import { manifestRegistry } from "./manifests.mjs";
5
5
  import { LitElement, css, html, nothing } from "lit";
6
6
  import { customElement, property, state } from "lit/decorators.js";
@@ -1572,30 +1572,35 @@ function sanitiseUrl(value, field, issues) {
1572
1572
  //#endregion
1573
1573
  //#region src/orchestrator/font-loader.ts
1574
1574
  /**
1575
- * Inject `branding.font_url` as `<link rel="stylesheet">` inside the
1576
- * `<zitadel-login>` Shadow DOM. Per `docs/design/branding/templates.md`:
1575
+ * Inject `branding.font_url` as `<link rel="stylesheet">` into the host
1576
+ * document's `<head>`. Per `docs/design/branding/templates.md`:
1577
1577
  *
1578
1578
  * "The `font_url` stylesheet is injected by the orchestrator; the template
1579
1579
  * does not emit the `<link>` tag itself."
1580
1580
  *
1581
+ * The link must live at document level, not inside the shadow root:
1582
+ * browsers ignore `@font-face` rules declared in shadow-tree stylesheets,
1583
+ * so a shadow-scoped link would never register the font faces and every
1584
+ * branded font silently falls back to the system stack. `font-family`
1585
+ * references inside the shadow tree resolve against document-level faces.
1586
+ *
1581
1587
  * Idempotent: calling with the same URL is a no-op; calling with a new URL
1582
1588
  * replaces the previous link. Calling with `null`/`undefined` removes any
1583
1589
  * previously injected link.
1584
1590
  */
1585
1591
  const LINK_ID = "zl-font-link";
1586
1592
  function applyFontUrl(shadowRoot, fontUrl) {
1587
- const existing = shadowRoot.getElementById?.(LINK_ID);
1593
+ const ownerDocument = shadowRoot.ownerDocument ?? document;
1594
+ const existing = ownerDocument.head.querySelector(`link#${LINK_ID}`);
1588
1595
  if (!fontUrl) {
1589
1596
  existing?.remove();
1590
1597
  return;
1591
1598
  }
1592
- if (existing && existing.href === fontUrl) return;
1593
- existing?.remove();
1594
- const link = (shadowRoot.ownerDocument ?? document).createElement("link");
1599
+ const link = existing ?? ownerDocument.createElement("link");
1595
1600
  link.id = LINK_ID;
1596
1601
  link.rel = "stylesheet";
1597
- link.href = fontUrl;
1598
- shadowRoot.prepend(link);
1602
+ if (link.href !== fontUrl) link.href = fontUrl;
1603
+ if (!existing) ownerDocument.head.appendChild(link);
1599
1604
  }
1600
1605
  //#endregion
1601
1606
  //#region src/internal/escape-html.ts
@@ -1823,8 +1828,9 @@ const en = {
1823
1828
  "identifier.description": "Enter your email to continue",
1824
1829
  "identifier.field.email": "Work email",
1825
1830
  "identifier.field.email.placeholder": "you@company.com",
1826
- "identifier.action.submit": "Continue",
1827
- "identifier.action.continue": "Continue",
1831
+ "identifier.field.password": "Password",
1832
+ "identifier.action.submit": "Sign in",
1833
+ "identifier.action.continue": "Sign in",
1828
1834
  "identifier.action.passkey": "Sign in with a passkey",
1829
1835
  "identifier.action.register.lead": "Don't have an account? ",
1830
1836
  "identifier.action.register.link": "Sign up",
@@ -1873,7 +1879,7 @@ const en = {
1873
1879
  "password.action.register.lead": "Don't have an account? ",
1874
1880
  "password.action.register.link": "Sign up",
1875
1881
  "register.title": "Create your account",
1876
- "register.description": "Enter your email to get started",
1882
+ "register.description": "",
1877
1883
  "register.field.email": "Work email",
1878
1884
  "register.field.email.placeholder": "you@company.com",
1879
1885
  "register.field.password": "Password",
@@ -1881,8 +1887,10 @@ const en = {
1881
1887
  "register.field.givenName": "Given name",
1882
1888
  "register.field.familyName": "Family name",
1883
1889
  "register.field.dateOfBirth": "Date of birth",
1890
+ "register.field.dateOfBirth.placeholder": "YYYY-MM-DD",
1891
+ "register.field.dateOfBirth.help": "Use YYYY-MM-DD.",
1884
1892
  "register.action.password": "Continue with password",
1885
- "register.action.passkey": "Register with a passkey",
1893
+ "register.action.passkey": "Continue with a passkey",
1886
1894
  "register.action.submit": "Sign up",
1887
1895
  "register.action.sign_in.lead": "Already have an account? ",
1888
1896
  "register.action.sign_in.link": "Sign in",
@@ -1921,8 +1929,9 @@ const de = {
1921
1929
  "identifier.description": "Gib deine E-Mail-Adresse ein, um fortzufahren",
1922
1930
  "identifier.field.email": "E-Mail",
1923
1931
  "identifier.field.email.placeholder": "du@unternehmen.com",
1924
- "identifier.action.submit": "Weiter",
1925
- "identifier.action.continue": "Weiter",
1932
+ "identifier.field.password": "Passwort",
1933
+ "identifier.action.submit": "Anmelden",
1934
+ "identifier.action.continue": "Anmelden",
1926
1935
  "identifier.action.passkey": "Mit Passkey anmelden",
1927
1936
  "identifier.action.register.lead": "Noch kein Konto? ",
1928
1937
  "identifier.action.register.link": "Registrieren",
@@ -1971,13 +1980,18 @@ const de = {
1971
1980
  "password.action.register.lead": "Noch kein Konto? ",
1972
1981
  "password.action.register.link": "Registrieren",
1973
1982
  "register.title": "Konto erstellen",
1974
- "register.description": "Gib deine E-Mail-Adresse ein, um loszulegen",
1983
+ "register.description": "",
1975
1984
  "register.field.email": "E-Mail",
1976
1985
  "register.field.email.placeholder": "du@unternehmen.com",
1977
1986
  "register.field.password": "Passwort",
1978
1987
  "register.field.password.help": "Mindestens 8 Zeichen, einschließlich eines Sonderzeichens und einer Zahl.",
1988
+ "register.field.givenName": "Vorname",
1989
+ "register.field.familyName": "Nachname",
1990
+ "register.field.dateOfBirth": "Geburtsdatum",
1991
+ "register.field.dateOfBirth.placeholder": "JJJJ-MM-TT",
1992
+ "register.field.dateOfBirth.help": "Verwende JJJJ-MM-TT.",
1979
1993
  "register.action.password": "Mit Passwort fortfahren",
1980
- "register.action.passkey": "Mit Passkey registrieren",
1994
+ "register.action.passkey": "Weiter mit Passkey",
1981
1995
  "register.action.submit": "Registrieren",
1982
1996
  "register.action.sign_in.lead": "Bereits ein Konto? ",
1983
1997
  "register.action.sign_in.link": "Anmelden",
@@ -2015,8 +2029,9 @@ const it = {
2015
2029
  "identifier.description": "Inserisci la tua e-mail per continuare",
2016
2030
  "identifier.field.email": "E-mail aziendale",
2017
2031
  "identifier.field.email.placeholder": "tu@azienda.com",
2018
- "identifier.action.submit": "Continua",
2019
- "identifier.action.continue": "Continua",
2032
+ "identifier.field.password": "Password",
2033
+ "identifier.action.submit": "Accedi",
2034
+ "identifier.action.continue": "Accedi",
2020
2035
  "identifier.action.passkey": "Accedi con passkey",
2021
2036
  "identifier.action.register.lead": "Non hai un account? ",
2022
2037
  "identifier.action.register.link": "Registrati",
@@ -2065,13 +2080,18 @@ const it = {
2065
2080
  "password.action.register.lead": "Non hai un account? ",
2066
2081
  "password.action.register.link": "Registrati",
2067
2082
  "register.title": "Crea il tuo account",
2068
- "register.description": "Inserisci la tua e-mail per iniziare",
2083
+ "register.description": "",
2069
2084
  "register.field.email": "E-mail aziendale",
2070
2085
  "register.field.email.placeholder": "tu@azienda.com",
2071
2086
  "register.field.password": "Password",
2072
2087
  "register.field.password.help": "Almeno 8 caratteri, incluso un simbolo e un numero.",
2088
+ "register.field.givenName": "Nome",
2089
+ "register.field.familyName": "Cognome",
2090
+ "register.field.dateOfBirth": "Data di nascita",
2091
+ "register.field.dateOfBirth.placeholder": "AAAA-MM-GG",
2092
+ "register.field.dateOfBirth.help": "Usa AAAA-MM-GG.",
2073
2093
  "register.action.password": "Continua con password",
2074
- "register.action.passkey": "Registrati con passkey",
2094
+ "register.action.passkey": "Continua con passkey",
2075
2095
  "register.action.submit": "Registrati",
2076
2096
  "register.action.sign_in.lead": "Hai già un account? ",
2077
2097
  "register.action.sign_in.link": "Accedi",
@@ -2198,6 +2218,7 @@ const COMMON_ATTRS = [
2198
2218
  "style",
2199
2219
  "name",
2200
2220
  "for",
2221
+ "data-testid",
2201
2222
  "data-theme",
2202
2223
  "hidden"
2203
2224
  ];
@@ -2705,6 +2726,31 @@ let ZitadelLogin = class ZitadelLogin extends LitElement {
2705
2726
  if (field.value !== next) field.value = next;
2706
2727
  }
2707
2728
  }
2729
+ captureValuesFromFields() {
2730
+ const root = this.shadowRoot;
2731
+ if (!root) return this.formValues;
2732
+ const fields = root.querySelectorAll("zl-field");
2733
+ if (fields.length === 0) return this.formValues;
2734
+ const next = { ...this.formValues };
2735
+ let changed = false;
2736
+ for (const field of fields) {
2737
+ const name = field.getAttribute("name");
2738
+ const value = this.currentFieldValue(field);
2739
+ if (!name || value === void 0) continue;
2740
+ if (field.value !== value) field.value = value;
2741
+ if (next[name] !== value) {
2742
+ next[name] = value;
2743
+ changed = true;
2744
+ }
2745
+ }
2746
+ if (changed) this.formValues = next;
2747
+ return next;
2748
+ }
2749
+ currentFieldValue(field) {
2750
+ const native = field.shadowRoot?.querySelector("input");
2751
+ if (native && native.value !== field.value) return native.value;
2752
+ return typeof field.value === "string" ? field.value : void 0;
2753
+ }
2708
2754
  handleAtomInput = (event) => {
2709
2755
  if (!event.detail) return;
2710
2756
  const { name, value } = event.detail;
@@ -2713,11 +2759,23 @@ let ZitadelLogin = class ZitadelLogin extends LitElement {
2713
2759
  ...this.formValues,
2714
2760
  [name]: value
2715
2761
  };
2762
+ this.syncFieldElementValue(name, value);
2716
2763
  emit(this, "zitadel-flow-input", {
2717
2764
  name,
2718
2765
  value
2719
2766
  });
2720
2767
  };
2768
+ syncFieldElementValue(name, value) {
2769
+ const root = this.shadowRoot;
2770
+ if (!root) return;
2771
+ const fields = root.querySelectorAll("zl-field");
2772
+ for (const field of fields) {
2773
+ if (field.getAttribute("name") !== name) continue;
2774
+ if (field.value !== value) field.value = value;
2775
+ const native = field.shadowRoot?.querySelector("input");
2776
+ if (native && native.value !== value) native.value = value;
2777
+ }
2778
+ }
2721
2779
  handleAtomSubmit = (event) => {
2722
2780
  if (this.loading) return;
2723
2781
  this.submit(event.detail?.action ?? null);
@@ -2795,10 +2853,11 @@ let ZitadelLogin = class ZitadelLogin extends LitElement {
2795
2853
  const { id, session_token } = this.response;
2796
2854
  this.loading = true;
2797
2855
  try {
2856
+ const formValues = this.captureValuesFromFields();
2798
2857
  const stepFieldKeys = Object.keys(this.response.step.fields ?? {});
2799
2858
  const fields = {};
2800
2859
  for (const key of stepFieldKeys) {
2801
- const value = this.formValues[key];
2860
+ const value = formValues[key];
2802
2861
  if (value !== void 0) fields[key] = value;
2803
2862
  }
2804
2863
  const body = {
@@ -3301,4 +3360,4 @@ function fillTemplateTokens(fragment, name, email, initial) {
3301
3360
  //#endregion
3302
3361
  export { buildBrandingStylesheet as _, createSanitiser as a, startFlow as b, de as c, MANDATORY_GATES_MARKER as d, mandatoryGatesMarkerComment as f, applyBrandingTokens as g, validateBranding as h, layout_chrome_default as i, en as l, applyFontUrl as m, ZitadelLogin as n, builtinLocales as o, patchMandatoryGates as p, ThemeController as r, it as s, ZitadelLogout as t, TEMPLATE_NAMES as u, resolveTheme as v, submitStep as x, getCurrentStep as y };
3303
3362
 
3304
- //# sourceMappingURL=orchestrator-Dds72XrU.mjs.map
3363
+ //# sourceMappingURL=orchestrator-e33w1C7V.mjs.map