@qonto/embed-sdk 0.41.1 → 0.42.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.
Files changed (82) hide show
  1. package/README.md +13 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.umd.js +658 -1
  5. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js +1 -0
  6. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js +6 -0
  7. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/default-msg.js +6 -0
  8. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/deferred.js +6 -0
  9. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/fnv1a64.js +6 -0
  10. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/id-generation.js +6 -0
  11. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/locale-status-event.js +6 -0
  12. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-controller.js +6 -0
  13. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js +6 -0
  14. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/runtime-msg.js +6 -0
  15. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js +6 -0
  16. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +6 -0
  17. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js +6 -0
  18. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +6 -0
  19. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +6 -0
  20. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +6 -0
  21. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +1 -0
  22. package/dist/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +6 -0
  23. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +6 -0
  24. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +6 -0
  25. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +6 -0
  26. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +1 -0
  27. package/dist/src/beneficiaries/beneficiaries.js +1 -1
  28. package/dist/src/index.js +1 -1
  29. package/dist/src/organizations/organizations.js +1 -1
  30. package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
  31. package/dist/src/transactions/transactions.js +1 -1
  32. package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.js +4 -0
  33. package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.styles.js +130 -0
  34. package/dist/src/ui/customizable-components/button/qonto-button.js +6 -0
  35. package/dist/src/ui/customizable-components/button/qonto-button.styles.js +153 -0
  36. package/dist/src/ui/customizable-components/icons/icon-checkmark-rounded-filled.js +15 -0
  37. package/dist/src/ui/customizable-components/icons/icon-clock-filled.js +9 -0
  38. package/dist/src/ui/customizable-components/icons/icon-declined.js +12 -0
  39. package/dist/src/ui/customizable-components/icons/icon-error-filled.js +10 -0
  40. package/dist/src/ui/customizable-components/icons/icon-in-progress.js +13 -0
  41. package/dist/src/ui/customizable-components/icons/icon-warning.js +15 -0
  42. package/dist/src/ui/customizable-components/localize/configure-localization.js +1 -0
  43. package/dist/src/ui/customizable-components/localize/generated/locale-codes.js +1 -0
  44. package/dist/src/ui/customizable-components/localize/generated/locales/de.js +1 -0
  45. package/dist/src/ui/customizable-components/localize/generated/locales/es.js +1 -0
  46. package/dist/src/ui/customizable-components/localize/generated/locales/fr.js +1 -0
  47. package/dist/src/ui/customizable-components/localize/generated/locales/it.js +1 -0
  48. package/dist/src/ui/customizable-components/localize/generated/locales/nl.js +1 -0
  49. package/dist/src/ui/customizable-components/localize/generated/locales/pt.js +1 -0
  50. package/dist/src/ui/customizable-components/styles/styles.css.js +1 -0
  51. package/dist/src/ui/customizable-components/transfer-list/transfer-list.events.js +1 -0
  52. package/dist/src/ui/customizable-components/transfer-list/transfer-list.js +51 -0
  53. package/dist/src/ui/customizable-components/transfer-list/transfer-list.styles.js +160 -0
  54. package/dist/src/ui/customizable-components/transfer-list/transfer-list.utils.js +1 -0
  55. package/dist/src/ui/customizable-components/utils/format-date.js +1 -0
  56. package/dist/src/ui/customizable-components/utils/format-money.js +1 -0
  57. package/dist/src/ui/customizable-components/utils/locales.js +1 -0
  58. package/dist/src/ui/index.js +1 -0
  59. package/dist/src/ui/ui-elements/transfer-list.js +1 -0
  60. package/dist/src/ui/ui-elements.constants.js +1 -0
  61. package/dist/src/ui/ui-elements.validation.js +1 -0
  62. package/dist/ui/customizable-components/localize/configure-localization.d.ts +6 -0
  63. package/dist/ui/customizable-components/localize/configure-localization.d.ts.map +1 -0
  64. package/dist/ui/customizable-components/localize/generated/locale-codes.d.ts +14 -0
  65. package/dist/ui/customizable-components/localize/generated/locale-codes.d.ts.map +1 -0
  66. package/dist/ui/customizable-components/localize/generated/locales/de.d.ts +18 -0
  67. package/dist/ui/customizable-components/localize/generated/locales/de.d.ts.map +1 -0
  68. package/dist/ui/customizable-components/localize/generated/locales/es.d.ts +18 -0
  69. package/dist/ui/customizable-components/localize/generated/locales/es.d.ts.map +1 -0
  70. package/dist/ui/customizable-components/localize/generated/locales/fr.d.ts +18 -0
  71. package/dist/ui/customizable-components/localize/generated/locales/fr.d.ts.map +1 -0
  72. package/dist/ui/customizable-components/localize/generated/locales/it.d.ts +18 -0
  73. package/dist/ui/customizable-components/localize/generated/locales/it.d.ts.map +1 -0
  74. package/dist/ui/customizable-components/localize/generated/locales/nl.d.ts +18 -0
  75. package/dist/ui/customizable-components/localize/generated/locales/nl.d.ts.map +1 -0
  76. package/dist/ui/customizable-components/localize/generated/locales/pt.d.ts +18 -0
  77. package/dist/ui/customizable-components/localize/generated/locales/pt.d.ts.map +1 -0
  78. package/dist/ui/customizable-components/transfer-list/transfer-list.d.ts +1 -0
  79. package/dist/ui/customizable-components/transfer-list/transfer-list.d.ts.map +1 -1
  80. package/dist/ui/customizable-components/transfer-list/transfer-list.styles.d.ts.map +1 -1
  81. package/dist/ui/ui-elements/transfer-list.d.ts.map +1 -1
  82. package/package.json +6 -2
@@ -0,0 +1,10 @@
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";const l=e`
2
+ <svg fill="none" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden=true>
3
+ <path
4
+ clip-rule="evenodd"
5
+ d="M11.77 5.43 6.57.233A.806.806 0 0 0 6 0a.806.806 0 0 0-.57.233L.23 5.43a.82.82 0 0 0 0 1.14l5.2 5.197A.806.806 0 0 0 6 12a.806.806 0 0 0 .57-.232l5.2-5.198a.82.82 0 0 0 0-1.14ZM5.5 3.464a.5.5 0 0 1 1 0v3a.5.5 0 0 1-1 0v-3ZM6 9.036a.65.65 0 1 0 0-1.3.65.65 0 0 0 0 1.3Z"
6
+ fill="currentColor"
7
+ fill-rule="evenodd"
8
+ />
9
+ </svg>
10
+ `;export{l as iconErrorFilled};
@@ -0,0 +1,13 @@
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";const l=e`<svg
2
+ fill="none"
3
+ viewBox="0 0 12 12"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ aria-hidden=true
6
+ >
7
+ <path
8
+ clip-rule="evenodd"
9
+ d="M6 0C2.685 0 0 2.685 0 6s2.685 6 6 6 6-2.685 6-6-2.685-6-6-6ZM2.891 5.513c.042-.844.499-1.613 1.249-2.108 1.185-.78 2.831-.664 3.874.263l.345-.226a.49.49 0 0 1 .712.214c.038.087.049.18.034.274l-.18 1.061a.482.482 0 0 1-.548.402L7.2 5.228a.486.486 0 0 1-.413-.375.475.475 0 0 1 .027-.29.473.473 0 0 1 .183-.224l.158-.105c-.72-.491-1.736-.503-2.479-.015-.487.322-.784.813-.81 1.342v.056a.532.532 0 0 1-.146.342.506.506 0 0 1-.341.146h-.015a.475.475 0 0 1-.476-.473v-.12h.003Zm6.218.97C9.068 7.332 8.61 8.1 7.86 8.596a3.205 3.205 0 0 1-1.744.518h-.015a3.21 3.21 0 0 1-2.115-.78l-.341.224a.51.51 0 0 1-.27.083.495.495 0 0 1-.45-.296.468.468 0 0 1-.03-.278l.18-1.057a.482.482 0 0 1 .547-.402l1.182.162c.097.015.187.06.262.127a.497.497 0 0 1 .12.54.511.511 0 0 1-.183.225l-.158.105c.72.488 1.736.503 2.479.015.487-.322.784-.813.813-1.346v-.056a.508.508 0 0 1 .495-.487.482.482 0 0 1 .48.487v.105H9.11Z"
10
+ fill="currentColor"
11
+ fill-rule="evenodd"
12
+ />
13
+ </svg>`;export{l as iconInProgress};
@@ -0,0 +1,15 @@
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";const l=e`
2
+ <svg
3
+ fill="none"
4
+ viewBox="0 0 12 12"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ aria-hidden=true
7
+ >
8
+ <path
9
+ clip-rule="evenodd"
10
+ d="m6.713 1.112 5.176 8.955a.823.823 0 0 1-.713 1.237H.824a.823.823 0 0 1-.713-1.237l5.176-8.955a.818.818 0 0 1 1.426 0ZM5.5 4.187a.5.5 0 0 1 1 0v3a.5.5 0 1 1-1 0v-3ZM6 9.76a.65.65 0 1 0 0-1.3.65.65 0 0 0 0 1.3Z"
11
+ fill="currentColor"
12
+ fill-rule="evenodd"
13
+ />
14
+ </svg>
15
+ `;export{l as iconWarning};
@@ -0,0 +1 @@
1
+ import{configureLocalization as e}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{targetLocales as o,sourceLocale as l}from"./generated/locale-codes.js";import*as r from"./generated/locales/es.js";import*as s from"./generated/locales/fr.js";import*as a from"./generated/locales/de.js";import*as t from"./generated/locales/nl.js";import*as m from"./generated/locales/pt.js";import*as i from"./generated/locales/it.js";const c={es:r,fr:s,de:a,nl:t,pt:m,it:i},{getLocale:n,setLocale:d}=e({sourceLocale:l,targetLocales:o,loadLocale:(e="en")=>new Promise((o=>o(c[e])))});export{n as getLocale,d as setLocale};
@@ -0,0 +1 @@
1
+ const e="en",t=["de","es","fr","it","nl","pt"];export{e as sourceLocale,t as targetLocales};
@@ -0,0 +1 @@
1
+ import{str as e}from"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const a={s09ca90bfc68e29fc:"Geplantes Datum",s0fbf6dc6a1966408:"Nächste",s12bda6ed4915b346:"In Bearbeitung",s270283cc22e1d66b:e`Seite ${0} von ${1} anzeigen (${2} Gesamtelemente)`,s5033dab8c17f05f2:"Abgeschlossen",s6686fcc6d2c8f0bd:"Notiz",s78636b92c1a3909c:"Ausstehend",s9b6901ac422f46a7:"Abgelehnt",sa30c4d3b566b6b1a:"Abgebrochen",sad3e3c8146fc920f:"Status",sba98a7152d80b949:"Betrag",sbf9c5c5a8e5efad4:"Fehlgeschlagen",sf3ff78cc329d3528:"Vorherige",sfda3e4a519cfc5ba:"Abgerechnet",sfe88d270aa3e71da:"Referenz"};export{a as templates};
@@ -0,0 +1 @@
1
+ import{str as e}from"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const a={s09ca90bfc68e29fc:"Fecha prevista",s0fbf6dc6a1966408:"Siguiente",s12bda6ed4915b346:"En proceso",s270283cc22e1d66b:e`Mostrando página ${0} de ${1} (${2} elementos en total)`,s5033dab8c17f05f2:"Completado",s6686fcc6d2c8f0bd:"Nota",s78636b92c1a3909c:"Pendiente",s9b6901ac422f46a7:"Rechazado",sa30c4d3b566b6b1a:"Cancelado",sad3e3c8146fc920f:"Estado",sba98a7152d80b949:"Importe",sbf9c5c5a8e5efad4:"Fallido",sf3ff78cc329d3528:"Anterior",sfda3e4a519cfc5ba:"Liquidado",sfe88d270aa3e71da:"Referencia"};export{a as templates};
@@ -0,0 +1 @@
1
+ import{str as e}from"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const a={s09ca90bfc68e29fc:"Date prévue",s0fbf6dc6a1966408:"Suivant",s12bda6ed4915b346:"En cours",s270283cc22e1d66b:e`Affichage de la page ${0} sur ${1} (${2} éléments au total)`,s5033dab8c17f05f2:"Terminé",s6686fcc6d2c8f0bd:"Note",s78636b92c1a3909c:"En attente",s9b6901ac422f46a7:"Refusé",sa30c4d3b566b6b1a:"Annulé",sad3e3c8146fc920f:"Statut",sba98a7152d80b949:"Montant",sbf9c5c5a8e5efad4:"Échoué",sf3ff78cc329d3528:"Précédent",sfda3e4a519cfc5ba:"Réglé",sfe88d270aa3e71da:"Référence"};export{a as templates};
@@ -0,0 +1 @@
1
+ import{str as a}from"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const e={s09ca90bfc68e29fc:"Data programmata",s0fbf6dc6a1966408:"Successivo",s12bda6ed4915b346:"In elaborazione",s270283cc22e1d66b:a`Mostra pagina ${0} di ${1} (${2} elementi totali)`,s5033dab8c17f05f2:"Completato",s6686fcc6d2c8f0bd:"Nota",s78636b92c1a3909c:"In sospeso",s9b6901ac422f46a7:"Rifiutato",sa30c4d3b566b6b1a:"Annullato",sad3e3c8146fc920f:"Stato",sba98a7152d80b949:"Importo",sbf9c5c5a8e5efad4:"Non riuscito",sf3ff78cc329d3528:"Precedente",sfda3e4a519cfc5ba:"Regolato",sfe88d270aa3e71da:"Causale"};export{e as templates};
@@ -0,0 +1 @@
1
+ import{str as e}from"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const a={s09ca90bfc68e29fc:"Geplande datum",s0fbf6dc6a1966408:"Volgende",s12bda6ed4915b346:"Bezig met verwerken",s270283cc22e1d66b:e`Pagina ${0} van ${1} weergeven (${2} totaal aantal items)`,s5033dab8c17f05f2:"Voltooid",s6686fcc6d2c8f0bd:"Notitie",s78636b92c1a3909c:"In afwachting",s9b6901ac422f46a7:"Geweigerd",sa30c4d3b566b6b1a:"Geannuleerd",sad3e3c8146fc920f:"Status",sba98a7152d80b949:"Bedrag",sbf9c5c5a8e5efad4:"Mislukt",sf3ff78cc329d3528:"Vorige",sfda3e4a519cfc5ba:"Afgehandeld",sfe88d270aa3e71da:"Referentie"};export{a as templates};
@@ -0,0 +1 @@
1
+ import{str as a}from"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const e={s09ca90bfc68e29fc:"Data agendada",s0fbf6dc6a1966408:"Próximo",s12bda6ed4915b346:"Em processamento",s270283cc22e1d66b:a`Mostrando página ${0} de ${1} (${2} itens no total)`,s5033dab8c17f05f2:"Concluído",s6686fcc6d2c8f0bd:"Nota",s78636b92c1a3909c:"Pendente",s9b6901ac422f46a7:"Recusado",sa30c4d3b566b6b1a:"Cancelado",sad3e3c8146fc920f:"Estado",sba98a7152d80b949:"Quantidade",sbf9c5c5a8e5efad4:"Falhou",sf3ff78cc329d3528:"Anterior",sfda3e4a519cfc5ba:"Liquidado",sfe88d270aa3e71da:"Referência"};export{e as templates};
@@ -0,0 +1 @@
1
+ import a from"../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var r='@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:500 900;src:url(/fonts/polysans-median.woff2) format("woff2"),url(/fonts/polysans-median.woff) format("woff")}@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:400;src:url(/fonts/polysans-neutral.woff2) format("woff2"),url(/fonts/polysans-neutral.woff) format("woff")}@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:100 300;src:url(/fonts/polysans-slim.woff2) format("woff2"),url(/fonts/polysans-slim.woff) format("woff")}:root *{--default-font-family:PolySans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-family:var(--qonto-font-family,var(--default-font-family))}:root{--font-weight-median:600;--font-weight-neutral:400;--font-weight-slim:300;--title-1-font-size:32px;--title-1-font-weight:var(--font-weight-median);--title-1-line-height:40px;--title-2-font-size:24px;--title-2-font-weight:var(--font-weight-median);--title-2-line-height:32px;--title-3-font-size:20px;--title-3-font-weight:var(--font-weight-neutral);--title-3-line-height:32px;--title-4-font-size:16px;--title-4-font-weight:var(--font-weight-neutral);--title-4-line-height:24px;--body-1-font-size:14px;--body-1-font-weight:var(--font-weight-neutral);--body-1-line-height:24px;--body-2-font-size:14px;--body-2-font-weight:var(--font-weight-slim);--body-2-line-height:24px;--body-link-font-size:14px;--body-link-font-weight:var(--font-weight-neutral);--body-link-line-height:24px;--caption-font-size:12px;--caption-font-weight:var(--font-weight-neutral);--caption-line-height:16px;--caption-bold-font-size:12px;--caption-bold-font-weight:var(--font-weight-median);--caption-bold-line-height:16px;--caption-link-font-size:12px;--caption-link-font-weight:var(--font-weight-neutral);--caption-link-line-height:16px;--primary-black:#050505;--primary-white:#fff;--plum1000:#461068;--plum900:#7b4db8;--plum800:#a585db;--plum100:#bfa6ea;--plum50:#d5c8ff;--sakura1000:#7e0f4c;--sakura900:#c24b89;--sakura800:#e975b2;--sakura100:#ffacd6;--sakura50:#ffdfea;--mint1000:#0d5563;--mint900:#2f95a0;--mint800:#66c8c8;--mint100:#9be5da;--mint50:#c8ffec;--blueberry1000:#093b75;--blueberry900:#3275c4;--blueberry800:#71a5e0;--blueberry100:#9bc5ea;--blueberry50:#c6e6fb;--mustard1000:#705208;--mustard900:#c5a635;--mustard800:#f0e060;--mustard100:#f5f596;--mustard50:#faffa4;--peach1000:#7a250c;--peach900:#ce6033;--peach800:#ff9e75;--peach100:#ffb590;--peach50:#ffc9a6;--gray900:#1a1a1a;--gray800:#262626;--gray700:#3d3d3d;--gray600:#616161;--gray500:#8f8f8f;--gray400:#b8b8b8;--gray300:#ccc;--gray200:#e0e0e0;--gray100:#e8e8e8;--gray50:#f5f5f5;--gray25:#f9f9f9;--success1000:#0f7a3d;--success800:#2bad5f;--success400:#66db7c;--success300:#a5f2a3;--success50:#e6ffe4;--warning1000:#b04e10;--warning800:#dc9433;--warning400:#ffd870;--warning300:#ffe5aa;--warning50:#fff2d9;--error1000:#b81818;--error800:#e04545;--error400:#ff8585;--error300:#ffbabe;--error50:#ffe8e8;--elevation-default:var(--primary-white);--elevation-low:var(--gray25);--elevation-mid:var(--primary-white);--elevation-high:var(--primary-white);--background-primary:var(--qonto-color-primary,var(--primary-black));--background-secondary:var(--gray100);--background-tertiary:var(--gray50);--background-accent-low:var(--blueberry50);--background-accent-high:var(--blueberry900);--background-accent-static:var(--blueberry800);--background-success-low:var(--success50);--background-success-high:var(--success800);--background-warning-low:var(--warning50);--background-warning-high:var(--warning800);--background-error-low:var(--error50);--background-error-high:var(--error800);--background-modal-overlay:#61616199;--background-panel-overlay:#6161611a;--background-toggle:var(--gray400);--background-toggle-button:var(--primary-white);--background-skeleton-shimmer:var(--gray200);--background-feature-discoverability:var(--mustard50);--background-free-trial:var(--mint50);--background-upgrade-low:var(--peach50);--background-upgrade-high:var(--peach1000);--background-activate:var(--plum50);--background-splitscreen-peach:var(--peach50);--content-primary-a:var(--qonto-content-color-primary,var(--primary-black));--content-primary-b:var(--primary-white);--content-secondary:var(--gray600);--content-tertiary:var(--gray500);--content-accent:var(--blueberry900);--content-success:var(--success1000);--content-warning:var(--warning1000);--content-error:var(--error1000);--content-primary-a-static:var(--primary-black);--content-primary-b-static:var(--primary-white);--border-primary:var(--primary-black);--border-secondary:var(--gray300);--border-tertiary:var(--gray100);--border-avatar:#05050533;--border-accent-low:var(--blueberry50);--border-accent-high:var(--blueberry900);--border-accent-static:var(--blueberry100);--border-success:var(--success800);--border-warning:var(--warning800);--border-error:var(--error800);--border-upsell:var(--mint800);--dataviz-balance:var(--blueberry800);--dataviz-change:var(--warning800);--dataviz-inflows:var(--success400);--dataviz-outflows:var(--error400);--dataviz-slice-1:var(--plum800);--dataviz-slice-2:var(--mint800);--dataviz-slice-3:var(--blueberry800);--dataviz-slice-4:var(--mustard800);--dataviz-slice-5:var(--peach800);--dataviz-slice-6:var(--plum50);--dataviz-slice-7:var(--sakura800);--dataviz-other:var(--gray400);--dataviz-uncategorized:var(--gray200);--dataviz-empty:var(--gray50);--analytic-label-cat-1:var(--error800);--analytic-label-cat-2:var(--success800);--analytic-label-cat-3:var(--warning800);--analytic-label-cat-4:var(--mint800);--analytic-label-cat-5:var(--mustard800);--analytic-label-cat-6:var(--peach800);--analytic-label-cat-7:var(--blueberry800);--analytic-label-cat-8:var(--plum800);--analytic-label-cat-9:var(--sakura800);--analytic-label-cat10:var(--plum50);--category-purple:var(--plum100);--category-mint:var(--mint100);--category-mustard:var(--mustard100);--category-peach:var(--peach100);--category-blue:var(--blueberry100);--category-green:var(--success300);--category-pink:var(--sakura100);--category-gray:var(--gray100);--shadow-color-low:#0505050f;--shadow-color-high:#0505051f;--state-selected:var(--gray50);--state-primary-a-hover:#05050514;--state-disabled:#f5f5f573;--state-primary-a-pressed:#0505051f;--state-primary-b-hover:#ffffff14;--state-primary-b-pressed:#ffffff1f}:root .dark-theme{--elevation-default:var(--primary-black);--elevation-low:var(--gray900);--elevation-mid:var(--gray900);--elevation-high:var(--gray800);--background-primary:var(--gray25);--background-secondary:var(--gray600);--background-tertiary:var(--gray700);--background-accent-low:var(--blueberry1000);--background-accent-high:var(--blueberry900);--background-accent-static:var(--blueberry800);--background-success-low:var(--success1000);--background-success-high:var(--success800);--background-warning-low:var(--warning1000);--background-warning-high:var(--warning300);--background-error-low:var(--error1000);--background-error-high:var(--error800);--background-modal-overlay:#05050599;--background-panel-overlay:#05050566;--background-toggle:var(--gray600);--background-toggle-button:var(--gray300);--background-skeleton-shimmer:var(--gray700);--background-feature-discoverability:var(--mustard1000);--background-free-trial:var(--mint900);--background-upgrade-low:var(--peach900);--background-upgrade-high:var(--peach50);--background-activate:var(--plum900);--background-splitscreen-peach:var(--peach900);--content-primary-a:var(--gray25);--content-primary-b:var(--primary-black);--content-secondary:var(--gray300);--content-tertiary:var(--gray500);--content-accent:var(--blueberry800);--content-success:var(--success400);--content-warning:var(--warning400);--content-error:var(--error400);--content-primary-a-static:var(--primary-black);--content-primary-b-static:var(--primary-white);--border-primary:var(--gray25);--border-secondary:var(--gray500);--border-tertiary:#ffffff29;--border-avatar:#ffffff40;--border-accent-low:var(--blueberry1000);--border-accent-high:var(--blueberry800);--border-accent-static:var(--blueberry100);--border-success:var(--success400);--border-warning:var(--warning800);--border-error:var(--error400);--border-upsell:var(--mint100);--dataviz-balance:var(--blueberry800);--dataviz-change:var(--warning800);--dataviz-inflows:var(--success800);--dataviz-outflows:var(--error800);--dataviz-slice-1:var(--plum800);--dataviz-slice-2:var(--mint800);--dataviz-slice-3:var(--blueberry800);--dataviz-slice-4:var(--mustard800);--dataviz-slice-5:var(--peach800);--dataviz-slice-6:var(--plum50);--dataviz-slice-7:var(--sakura800);--dataviz-other:var(--gray400);--dataviz-uncategorized:var(--gray600);--dataviz-empty:var(--gray700);--category-purple:var(--plum100);--category-mint:var(--mint100);--category-mustard:var(--mustard100);--category-peach:var(--peach100);--category-blue:var(--blueberry100);--category-green:var(--success300);--category-pink:var(--sakura100);--category-gray:var(--gray100);--shadow-color-low:#05050552;--shadow-color-high:#050505a3;--state-selected:var(--gray700);--state-primary-a-hover:#ffffff14;--state-disabled:#f5f5f573;--state-primary-a-pressed:#ffffff1f;--state-primary-b-hover:#05050514;--state-primary-b-pressed:#0505051f;color-scheme:dark}:root,:root .dark-theme{--separator-bottom:inset 0 -1px 0 0 var(--border-tertiary);--shadow-low:0 3px 3px 0 var(--shadow-color-low);--shadow-high:0 3px 12px 0 var(--shadow-color-high);--background-placeholder:linear-gradient(to right,var(--background-secondary) 8%,var(--background-skeleton-shimmer) 18%,var(--background-secondary) 33%);--gradient-50:linear-gradient(90deg,var(--plum50),var(--blueberry50),var(--mint50));--gradient-800:linear-gradient(90deg,var(--plum800),var(--blueberry800),var(--mint800));--gradient-900:linear-gradient(90deg,var(--plum900),var(--blueberry900),var(--mint800));--gradient-1000:linear-gradient(90deg,var(--plum1000),var(--blueberry1000),var(--mint1000));--qonto-intelligence-gradient-content:var(--gradient-900);--qonto-intelligence-gradient-stroke:var(--gradient-900);--qonto-intelligence-gradient-background-high:var(--gradient-1000);--qonto-intelligence-gradient-background-low:var(--gradient-50);--qintelligence50:linear-gradient(90deg,var(--plum50) 0%,var(--blueberry50) 50%,var(--mint50) 100%);--qintelligence100:linear-gradient(90deg,var(--plum800) 0%,var(--blueberry800) 51.92%,var(--mint800) 100%);--qintelligence800:linear-gradient(90deg,var(--plum900) 0%,var(--blueberry900) 47.6%,var(--mint800) 100%);--qintelligence1000:linear-gradient(90deg,var(--plum1000) 0%,var(--blueberry1000) 50%,var(--mint900) 100%);--qintelligence-border:linear-gradient(90deg,var(--plum900) 0%,var(--blueberry900) 50%,var(--mint800) 100%)}:root{--overlay-primary-a-color:var(--primary-black);--overlay-primary-b-color:var(--primary-white);--qintelligence-low:var(--qintelligence50);--qintelligence-high:var(--qintelligence1000)}:root .dark-theme{--overlay-primary-a-color:var(--primary-white);--overlay-primary-b-color:var(--primary-black);--qintelligence-low:var(--qintelligence1000);--qintelligence-high:var(--qintelligence50)}:root{--overlay-opacity:0;--hover-opacity:0.08;--pressed-opacity:0.12;--disabled-opacity:0.45}.overlay{position:relative;&:after{background-color:var(--overlay-primary-a-color);content:"";height:100%;left:0;opacity:var(--overlay-opacity);pointer-events:none;position:absolute;top:0;width:100%}&:hover:after{--overlay-opacity:var(--hover-opacity)}&:active:after{--overlay-opacity:var(--pressed-opacity)}&[disabled]{cursor:not-allowed;&:after{--overlay-primary-a-color:var(--primary-white);--overlay-opacity:var(--disabled-opacity);cursor:not-allowed}}}';a(r);export{r as default};
@@ -0,0 +1 @@
1
+ class e extends CustomEvent{constructor(e){super("transfer-selected",{detail:e,bubbles:!0,composed:!0})}}export{e as TransferSelectedEvent};
@@ -0,0 +1,51 @@
1
+ import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{customElement as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{str as n}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as r}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as l}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{transferListStyles as d}from"./transfer-list.styles.js";import"../styles/styles.css.js";import{formatDate as m}from"../utils/format-date.js";import{formatMoney as p}from"../utils/format-money.js";import{TransferSelectedEvent as c}from"./transfer-list.events.js";import{renderLoadingTableRowsMarkup as u,mapTransferStatusToBadgeLevel as h}from"./transfer-list.utils.js";import{getSepaTransfers as g}from"../../../sepa-transfers/sepa-transfers.js";import{setLocale as f,getLocale as _}from"../localize/configure-localization.js";import"../button/qonto-button.js";import{TRANSFER_STATUSES as v}from"../../../common/constants.js";let y=class extends o{constructor(){super(...arguments),this.locale="en",this.isLoading=!1}connectedCallback(){super.connectedCallback(),f(this.locale),this.fetchTransfers()}updated(t){t.has("locale")&&f(this.locale)}async fetchTransfers(t){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const{paginationSettings:e={}}=this.operationSettings,o=await g({operationSettings:{...this.operationSettings,paginationSettings:{page:t??e.page??1,itemsPerPage:e.itemsPerPage??20}}});this.transfers=o.transfers,this.paginationState=o.meta}catch(t){console.error("Failed to load SEPA transfers:",t),this.error="Failed to load transfers. Please try again."}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch transfers")}handleRowClick(t){this.dispatchEvent(new c({transfer:t}))}handlePreviousPage(){this.paginationState?.previousPage&&this.fetchTransfers(this.paginationState.previousPage)}handleNextPage(){this.paginationState?.nextPage&&this.fetchTransfers(this.paginationState.nextPage)}render(){return this.error?e`<div data-error>${this.error}</div>`:e`
2
+ <table>
3
+ <thead>
4
+ <tr>
5
+ <th>${r("Scheduled Date")}</th>
6
+ <th>${r("Reference")}</th>
7
+ <th>${r("Note")}</th>
8
+ <th>${r("Status")}</th>
9
+ <th>${r("Amount")}</th>
10
+ </tr>
11
+ </thead>
12
+ <tbody>
13
+ ${this.isLoading||!this.transfers?u():""}
14
+ ${0===this.transfers?.length?"There are no transfers yet":this.transfers?.map((t=>e`
15
+ <tr @click=${()=>this.handleRowClick(t)}>
16
+ <td>
17
+ ${m({date:t.scheduledDate,locale:_(),token:"date-year-s"})}
18
+ </td>
19
+ <td>${t.reference}</td>
20
+ <td>${t.note}</td>
21
+ <td>
22
+ <qonto-badge-status
23
+ level="${h(t.status)}"
24
+ >${function(t){switch(t){case v.PENDING:return r("Pending");case v.PROCESSING:return r("Processing");case v.CANCELED:return r("Canceled");case v.DECLINED:return r("Declined");case v.SETTLED:return r("Settled");case v.FAILED:return r("Failed");case v.COMPLETED:return r("Completed");default:return t}}(t.status)}</qonto-badge-status
25
+ >
26
+ </td>
27
+ <td>
28
+ ${p({amount:t.amount,currency:t.amountCurrency,locale:_(),token:"money-iso-sign-decimal"})}
29
+ </td>
30
+ </tr>
31
+ `))}
32
+ </tbody>
33
+ </table>
34
+ ${this.paginationState?e`<div data-pagination>
35
+ <span
36
+ >${r(n`Showing page ${this.paginationState.currentPage} of ${this.paginationState.totalPages} (${this.paginationState.totalItems} total items)`)}</span
37
+ >
38
+ <div data-pagination-buttons>
39
+ <qonto-button
40
+ variant="secondary"
41
+ ?disabled=${null===this.paginationState.previousPage||this.isLoading}
42
+ @click=${this.handlePreviousPage}
43
+ >${r("Previous")}</qonto-button
44
+ ><qonto-button
45
+ variant="secondary"
46
+ ?disabled=${null===this.paginationState.nextPage||this.isLoading}
47
+ @click=${this.handleNextPage}
48
+ >${r("Next")}</qonto-button
49
+ </div>
50
+ </div>`:""}
51
+ `}};y.styles=d,t([s({type:Object})],y.prototype,"operationSettings",void 0),t([s({type:String})],y.prototype,"locale",void 0),t([a()],y.prototype,"transfers",void 0),t([a()],y.prototype,"paginationState",void 0),t([a()],y.prototype,"isLoading",void 0),t([a()],y.prototype,"error",void 0),y=t([l(),i("qonto-transfer-list")],y);export{y as TransferList};
@@ -0,0 +1,160 @@
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";const o=e`
2
+ :host {
3
+ --default-table-border: 1px solid var(--border-tertiary);
4
+
5
+ display: block;
6
+ width: 100%;
7
+ font-family: var(--qonto-embed-font-family, 'PolySans Qonto', sans-serif);
8
+ }
9
+
10
+ table {
11
+ width: 100%;
12
+ border-collapse: collapse;
13
+ background-color: var(
14
+ --qonto-embed-table-background-color,
15
+ var(--elevation-default)
16
+ );
17
+ border: var(--qonto-embed-table-border, none);
18
+ text-transform: capitalize;
19
+ }
20
+
21
+ thead {
22
+ background-color: var(
23
+ --qonto-embed-table-header-row-background-color,
24
+ var(--qonto-embed-table-background-color, var(--elevation-default))
25
+ );
26
+ color: var(
27
+ --qonto-embed-table-header-row-font-color,
28
+ var(--content-secondary)
29
+ );
30
+ font-size: var(
31
+ --qonto-embed-table-header-row-font-size,
32
+ var(--caption-bold-font-size)
33
+ );
34
+ line-height: var(
35
+ --qonto-embed-table-header-row-line-height,
36
+ var(--caption-bold-line-height)
37
+ );
38
+ white-space: nowrap;
39
+ }
40
+
41
+ thead tr {
42
+ height: var(--qonto-embed-table-header-row-height, 40px);
43
+ border-top: var(
44
+ --qonto-embed-table-header-row-border-top,
45
+ var(--qonto-embed-table-header-row-border, var(--default-table-border))
46
+ );
47
+ border-right: var(
48
+ --qonto-embed-table-header-row-border-right,
49
+ var(--qonto-embed-table-header-row-border, none)
50
+ );
51
+ border-bottom: var(
52
+ --qonto-embed-table-header-row-border-bottom,
53
+ var(--qonto-embed-table-header-row-border, var(--default-table-border))
54
+ );
55
+ border-left: var(
56
+ --qonto-embed-table-header-row-border-left,
57
+ var(--qonto-embed-table-header-row-border, none)
58
+ );
59
+ }
60
+
61
+ th {
62
+ padding: 11px 8px;
63
+ font-weight: var(
64
+ --qonto-embed-table-header-row-font-weight,
65
+ var(--qonto-embed-table-font-weight, var(--caption-bold-font-weight))
66
+ );
67
+ text-align: left;
68
+ text-transform: var(--qonto-embed-table-header-row-text-transform, none);
69
+ }
70
+
71
+ tbody tr {
72
+ height: var(--qonto-embed-table-body-row-height, 64px);
73
+ cursor: pointer;
74
+ border-top: var(
75
+ --qonto-embed-table-body-row-border-top,
76
+ var(--qonto-embed-table-body-row-border, var(--default-table-border))
77
+ );
78
+ border-right: var(
79
+ --qonto-embed-table-body-row-border-right,
80
+ var(--qonto-embed-table-body-row-border, none)
81
+ );
82
+ border-bottom: var(
83
+ --qonto-embed-table-body-row-border-bottom,
84
+ var(--qonto-embed-table-body-row-border, var(--default-table-border))
85
+ );
86
+ border-left: var(
87
+ --qonto-embed-table-body-row-border-left,
88
+ var(--qonto-embed-table-body-row-border, none)
89
+ );
90
+
91
+ &:is(:hover, :nth-child(even):hover) {
92
+ background-color: var(
93
+ --qonto-embed-table-body-row-background-color-hover,
94
+ var(--elevation-low)
95
+ );
96
+ }
97
+ &:nth-child(even) {
98
+ background-color: var(
99
+ --qonto-embed-table-body-row-alternate-background-color,
100
+ var(--qonto-embed-table-background-color, var(--elevation-default))
101
+ );
102
+ }
103
+ }
104
+
105
+ td {
106
+ padding: 11px 8px;
107
+ text-align: left;
108
+ font-weight: var(
109
+ --qonto-embed-table-body-font-weight,
110
+ var(--qonto-embed-table-font-weight, var(--body-2-font-weight))
111
+ );
112
+ font-size: var(
113
+ --qonto-embed-table-body-font-size,
114
+ var(--qonto-embed-table-font-size, var(--body-2-font-size))
115
+ );
116
+ line-height: var(
117
+ --qonto-embed-table-body-row-line-height,
118
+ var(--body-2-line-height)
119
+ );
120
+ color: var(--qonto-embed-table-body-font-color, var(--content-primary-a));
121
+ white-space: nowrap;
122
+ }
123
+
124
+ [data-pagination] {
125
+ width: 100%;
126
+ margin-top: var(--qonto-embed-table-pagination-separation, 16px);
127
+ font-weight: var(--qonto-embed-table-font-weight, 400);
128
+ font-size: var(--qonto-embed-table-body-font-size, 14px);
129
+ display: flex;
130
+ align-items: center;
131
+ justify-content: space-between;
132
+ }
133
+
134
+ [data-pagination-buttons] {
135
+ display: flex;
136
+ gap: 8px;
137
+ }
138
+
139
+ [data-pagination] {
140
+ width: 100%;
141
+ margin-top: var(--qonto-embed-table-pagination-separation, 16px);
142
+ color: var(
143
+ --qonto-embed-table-pagination-font-color,
144
+ var(--content-primary-a)
145
+ );
146
+ font-weight: 400;
147
+ font-size: var(
148
+ --qonto-embed-table-pagination-font-size,
149
+ var(--qonto-embed-table-body-font-size, 14px)
150
+ );
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: space-between;
154
+ }
155
+
156
+ [data-pagination-buttons] {
157
+ display: flex;
158
+ gap: 8px;
159
+ }
160
+ `;export{o as transferListStyles};
@@ -0,0 +1 @@
1
+ import{BADGE_LEVELS as t}from"../badge-status/qonto-badge-status.js";import{TRANSFER_STATUSES as e}from"../../../common/constants.js";import{unsafeHTML as n}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js";function o(n){switch(n){case e.SETTLED:return t.VALIDATED;case e.DECLINED:return t.DECLINED;case e.PENDING:return t.WAITING;case e.PROCESSING:return t.IN_PROGRESS;case e.CANCELED:return t.ERROR;default:return t.INACTIVE}}function l(){const t=Array.from({length:3},(()=>'\n <tr>\n <td><qonto-skeleton-loader-line width="80px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="120px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="150px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="100px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="60px"></qonto-skeleton-loader-line></td>\n </tr>\n ')).join("");return n(t)}export{o as mapTransferStatusToBadgeLevel,l as renderLoadingTableRowsMarkup};
@@ -0,0 +1 @@
1
+ import{LOCALE_CODES as e}from"./locales.js";const t={compact:{day:"2-digit",month:"2-digit",year:"numeric"},"date-s":{month:"short",day:"2-digit"},"month-year-l":{month:"long",year:"numeric"},"month-year-s":{month:"short",year:"numeric"},"date-year-s":{day:"2-digit",month:"short",year:"numeric"},"date-year-l":{day:"2-digit",month:"long",year:"numeric"},"week-date-l":{month:"long",weekday:"long",day:"2-digit"},"date-time-l":{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"},"date-time-s":{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"},"time-hm":{hour:"2-digit",minute:"2-digit"}},a={en:{compact:([e,,t,,a])=>`${t?.value}-${e?.value}-${a?.value}`,"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},fr:{"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},de:{"date-time-l":e=>e.map((({value:e},t)=>[3,5].includes(t)?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},it:{"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},es:{compact:e=>e.map((({type:e,value:t})=>"literal"===e?"-":t)).join(""),"week-date-l":e=>e.map((({value:e},t)=>1===t?" ":e)).join("")},pt:{"date-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"month-year-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"date-year-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"date-time-l":e=>e.map((({value:e,type:t})=>"literal"===t&&" às "===e?", ":e)).join(""),"date-time-s":e=>e.map((({value:e,type:t})=>"literal"===t&&" às "===e?", ":"literal"===t&&" de "===e?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join("")},nl:{"date-s":e=>e.map((({value:e,type:t})=>"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).reverse().join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-l":e=>e.map((({value:e,type:t})=>"literal"===t&&" om "===e?", ":e)).join(""),"week-date-l":e=>e.map((({value:e,type:t},a)=>1===a&&"literal"===t?", ":e)).join("")}},i=({date:i,locale:m,token:l="compact"})=>{const o=Array.isArray(m)?m[0].toLocaleLowerCase():m.toLocaleLowerCase();if(!(t=>e.includes(t))(o))return"";const n=t[l],r=a[o][l],d=new Intl.DateTimeFormat(m,n);try{return r?.(d.formatToParts(new Date(i)))??d.format(new Date(i))}catch{return""}};export{t as FORMAT_OPTIONS,i as formatDate};
@@ -0,0 +1 @@
1
+ import{LOCALES as e}from"./locales.js";const s={ISO:"money-iso",ISO_COMPACT:"money-iso-compact",ISO_SIGN_COMPACT:"money-iso-sign-compact",ISO_SIGN_DECIMAL:"money-iso-sign-decimal",SYMBOL:"money-symbol",SYMBOL_COMPACT:"money-symbol-compact",SYMBOL_SIGN_COMPACT:"money-symbol-sign-compact",SYMBOL_SIGN_DECIMAL:"money-symbol-sign-decimal"},o={[s.ISO]:{useSymbol:!1,sign:"auto",decimals:"always"},[s.ISO_COMPACT]:{useSymbol:!1,sign:"auto",decimals:"if-needed"},[s.ISO_SIGN_COMPACT]:{useSymbol:!1,sign:"always",decimals:"if-needed"},[s.ISO_SIGN_DECIMAL]:{useSymbol:!1,sign:"always",decimals:"always"},[s.SYMBOL]:{useSymbol:!0,sign:"auto",decimals:"always"},[s.SYMBOL_COMPACT]:{useSymbol:!0,sign:"auto",decimals:"if-needed"},[s.SYMBOL_SIGN_COMPACT]:{useSymbol:!0,sign:"always",decimals:"if-needed"},[s.SYMBOL_SIGN_DECIMAL]:{useSymbol:!0,sign:"always",decimals:"always"}},n={"pt-PT":(e,{amount:s})=>e.map((({type:e,value:o})=>"group"===e?Math.abs(s)>=1e4?o.replace(/\s/g,"."):o.replace(/\s/g,""):o)).join(""),"en-US":(e,{useSymbol:s})=>e.map((({type:e,value:o})=>s&&"literal"===e?o.replace(/\s/g,""):o)).join(""),"es-ES":e=>{const s=[];for(const o of e)if("integer"===o.type){const e=o.value.replace(/\B(?=(?:\d{3})+(?!\d))/g,".");s.push(e)}else s.push(o.value);return s.join("")},"it-IT":e=>{const s=[];for(const o of e)if("integer"===o.type){const e=o.value.replace(/\B(?=(?:\d{3})+(?!\d))/g,".");s.push(e)}else s.push(o.value);return s.join("")}};function a({amount:a,locale:i="en-US",currency:l="EUR",token:m=s.ISO,placeholder:t="--",overrides:c={}}){const r=Number(a);if(!Number.isFinite(r))return t;const u=function(s){const o=e.find((e=>e.code===s));return o?.locale||s}(i),{useSymbol:y,sign:S,decimals:d}=o[m],p={style:"currency",currency:l,currencyDisplay:y?"symbol":"code",signDisplay:"always"===S&&0===r?"exceptZero":S,..."if-needed"!==d||r%1!=0?{}:{minimumFractionDigits:0,maximumFractionDigits:0},...c},O=new Intl.NumberFormat(u,p),g=n[u];if(g){return g(O.formatToParts(r),{amount:r,useSymbol:y})}return O.format(r)}export{s as MONEY_TOKENS,a as formatMoney};
@@ -0,0 +1 @@
1
+ const e={EN:{name:"English",code:"en",locale:"en-US"},FR:{name:"Français",code:"fr",locale:"fr-FR"},IT:{name:"Italiano",code:"it",locale:"it-IT"},DE:{name:"Deutsch",code:"de",locale:"de-DE"},ES:{name:"Español",code:"es",locale:"es-ES"},PT:{name:"Português",code:"pt",locale:"pt-PT"},NL:{name:"Nederlands",code:"nl",locale:"nl-NL"}},a=Object.values(e),l=a.map((e=>e.code));export{a as LOCALES,e as LOCALES_DEFINITION,l as LOCALE_CODES};
@@ -0,0 +1 @@
1
+ import"./customizable-components/transfer-list/transfer-list.js";import{isRunningInServer as t}from"../common/runtime/runtime.validation.js";import{validateCreateUIElementParams as e}from"./ui-elements.validation.js";import{validateOperationSettingsParams as n}from"../validation/operation-settings-validation.js";import{UI_ELEMENT_NAMES as i}from"./ui-elements.constants.js";import{createTransferListElement as o}from"./ui-elements/transfer-list.js";const r=async({uiElementSettings:r,operationSettings:m})=>{if(t())return;const{uiElementName:s}=e(r),{uiParentElementId:a}=n(m,{requiresUI:!0}),l=document.getElementById(a);if(!l)throw new Error(`Could not find container element with id: ${a}`);if(s===i.TRANSFER_LIST)return void await o({containerElement:l,uiElementSettings:r,operationSettings:m});const u=document.createElement(`qonto-${s}`);l.appendChild(u)};export{r as createUIElement};
@@ -0,0 +1 @@
1
+ import{localeManager as e}from"../../common/locale/locale-manager.js";function t({containerElement:t,uiElementSettings:n,operationSettings:o}){const a=document.createElement("qonto-transfer-list");a.operationSettings=o,a.locale=o?.locale||e.getLocale(),a.addEventListener("transfer-selected",(e=>{n?.uiElementEventListener?.({eventName:"transfer-selected",eventDetail:e.detail})})),t.appendChild(a)}export{t as createTransferListElement};
@@ -0,0 +1 @@
1
+ const t={TRANSFER_LIST:"transfer-list"};export{t as UI_ELEMENT_NAMES};
@@ -0,0 +1 @@
1
+ import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{UI_ELEMENT_NAMES as t}from"./ui-elements.constants.js";function n(n){if(!n?.uiElementName)throw new e("uiElementSettings.uiElementName is required when calling createUIElement");const i=Object.values(t);if(!i.includes(n?.uiElementName))throw new e(`uiElementSettings.uiElementName must be one of ${i.join(", ")}`);return{uiElementName:n.uiElementName}}export{n as validateCreateUIElementParams};
@@ -0,0 +1,6 @@
1
+ export declare const getLocale: (() => string) & {
2
+ _LIT_LOCALIZE_GET_LOCALE_?: never;
3
+ }, setLocale: ((newLocale: string) => Promise<void>) & {
4
+ _LIT_LOCALIZE_SET_LOCALE_?: never;
5
+ };
6
+ //# sourceMappingURL=configure-localization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configure-localization.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/localize/configure-localization.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAQ,SAAS;;GAAE,SAAS;;CAMjC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The locale code that templates in this source code are written in.
3
+ */
4
+ export declare const sourceLocale = "en";
5
+ /**
6
+ * The other locale codes that this application is localized into. Sorted
7
+ * lexicographically.
8
+ */
9
+ export declare const targetLocales: readonly ["de", "es", "fr", "it", "nl", "pt"];
10
+ /**
11
+ * All valid project locale codes. Sorted lexicographically.
12
+ */
13
+ export declare const allLocales: readonly ["de", "en", "es", "fr", "it", "nl", "pt"];
14
+ //# sourceMappingURL=locale-codes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-codes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/customizable-components/localize/generated/locale-codes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,aAAa,+CAAgD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,UAAU,qDAAsD,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const templates: {
2
+ s09ca90bfc68e29fc: string;
3
+ s0fbf6dc6a1966408: string;
4
+ s12bda6ed4915b346: string;
5
+ s270283cc22e1d66b: import("@lit/localize").StrResult;
6
+ s5033dab8c17f05f2: string;
7
+ s6686fcc6d2c8f0bd: string;
8
+ s78636b92c1a3909c: string;
9
+ s9b6901ac422f46a7: string;
10
+ sa30c4d3b566b6b1a: string;
11
+ sad3e3c8146fc920f: string;
12
+ sba98a7152d80b949: string;
13
+ sbf9c5c5a8e5efad4: string;
14
+ sf3ff78cc329d3528: string;
15
+ sfda3e4a519cfc5ba: string;
16
+ sfe88d270aa3e71da: string;
17
+ };
18
+ //# sourceMappingURL=de.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/de.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const templates: {
2
+ s09ca90bfc68e29fc: string;
3
+ s0fbf6dc6a1966408: string;
4
+ s12bda6ed4915b346: string;
5
+ s270283cc22e1d66b: import("@lit/localize").StrResult;
6
+ s5033dab8c17f05f2: string;
7
+ s6686fcc6d2c8f0bd: string;
8
+ s78636b92c1a3909c: string;
9
+ s9b6901ac422f46a7: string;
10
+ sa30c4d3b566b6b1a: string;
11
+ sad3e3c8146fc920f: string;
12
+ sba98a7152d80b949: string;
13
+ sbf9c5c5a8e5efad4: string;
14
+ sf3ff78cc329d3528: string;
15
+ sfda3e4a519cfc5ba: string;
16
+ sfe88d270aa3e71da: string;
17
+ };
18
+ //# sourceMappingURL=es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/es.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const templates: {
2
+ s09ca90bfc68e29fc: string;
3
+ s0fbf6dc6a1966408: string;
4
+ s12bda6ed4915b346: string;
5
+ s270283cc22e1d66b: import("@lit/localize").StrResult;
6
+ s5033dab8c17f05f2: string;
7
+ s6686fcc6d2c8f0bd: string;
8
+ s78636b92c1a3909c: string;
9
+ s9b6901ac422f46a7: string;
10
+ sa30c4d3b566b6b1a: string;
11
+ sad3e3c8146fc920f: string;
12
+ sba98a7152d80b949: string;
13
+ sbf9c5c5a8e5efad4: string;
14
+ sf3ff78cc329d3528: string;
15
+ sfda3e4a519cfc5ba: string;
16
+ sfe88d270aa3e71da: string;
17
+ };
18
+ //# sourceMappingURL=fr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/fr.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const templates: {
2
+ s09ca90bfc68e29fc: string;
3
+ s0fbf6dc6a1966408: string;
4
+ s12bda6ed4915b346: string;
5
+ s270283cc22e1d66b: import("@lit/localize").StrResult;
6
+ s5033dab8c17f05f2: string;
7
+ s6686fcc6d2c8f0bd: string;
8
+ s78636b92c1a3909c: string;
9
+ s9b6901ac422f46a7: string;
10
+ sa30c4d3b566b6b1a: string;
11
+ sad3e3c8146fc920f: string;
12
+ sba98a7152d80b949: string;
13
+ sbf9c5c5a8e5efad4: string;
14
+ sf3ff78cc329d3528: string;
15
+ sfda3e4a519cfc5ba: string;
16
+ sfe88d270aa3e71da: string;
17
+ };
18
+ //# sourceMappingURL=it.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/it.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const templates: {
2
+ s09ca90bfc68e29fc: string;
3
+ s0fbf6dc6a1966408: string;
4
+ s12bda6ed4915b346: string;
5
+ s270283cc22e1d66b: import("@lit/localize").StrResult;
6
+ s5033dab8c17f05f2: string;
7
+ s6686fcc6d2c8f0bd: string;
8
+ s78636b92c1a3909c: string;
9
+ s9b6901ac422f46a7: string;
10
+ sa30c4d3b566b6b1a: string;
11
+ sad3e3c8146fc920f: string;
12
+ sba98a7152d80b949: string;
13
+ sbf9c5c5a8e5efad4: string;
14
+ sf3ff78cc329d3528: string;
15
+ sfda3e4a519cfc5ba: string;
16
+ sfe88d270aa3e71da: string;
17
+ };
18
+ //# sourceMappingURL=nl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/nl.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const templates: {
2
+ s09ca90bfc68e29fc: string;
3
+ s0fbf6dc6a1966408: string;
4
+ s12bda6ed4915b346: string;
5
+ s270283cc22e1d66b: import("@lit/localize").StrResult;
6
+ s5033dab8c17f05f2: string;
7
+ s6686fcc6d2c8f0bd: string;
8
+ s78636b92c1a3909c: string;
9
+ s9b6901ac422f46a7: string;
10
+ sa30c4d3b566b6b1a: string;
11
+ sad3e3c8146fc920f: string;
12
+ sba98a7152d80b949: string;
13
+ sbf9c5c5a8e5efad4: string;
14
+ sf3ff78cc329d3528: string;
15
+ sfda3e4a519cfc5ba: string;
16
+ sfe88d270aa3e71da: string;
17
+ };
18
+ //# sourceMappingURL=pt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/pt.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
@@ -11,6 +11,7 @@ export declare class TransferList extends LitElement {
11
11
  private isLoading;
12
12
  private error;
13
13
  connectedCallback(): void;
14
+ updated(changedProperties: Map<string, unknown>): void;
14
15
  private fetchTransfers;
15
16
  private handleRowClick;
16
17
  private handlePreviousPage;
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAGnF,OAAO,2BAA2B,CAAC;AACnC,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAsB;IAGnC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,SAAS,CAA6B;IAG9C,OAAO,CAAC,eAAe,CAA8B;IAGrD,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAElC,iBAAiB;YAKH,cAAc;IA+B5B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,cAAc;IAMtB,MAAM;CA6EP"}
1
+ {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAInF,OAAO,2BAA2B,CAAC;AA6BnC,qBAEa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAsB;IAGnC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,SAAS,CAA6B;IAG9C,OAAO,CAAC,eAAe,CAA8B;IAGrD,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAElC,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;YAMjC,cAAc;IA+B5B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,cAAc;IAMtB,MAAM;CA8EP"}
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBAwJ9B,CAAC"}
1
+ {"version":3,"file":"transfer-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBA+J9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../src/ui/ui-elements/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGpE;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,IAAI,CAiBtC"}
1
+ {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../src/ui/ui-elements/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAIpE;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,IAAI,CAoBtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qonto/embed-sdk",
3
- "version": "0.41.1",
3
+ "version": "0.42.0",
4
4
  "description": "Library to embed Qonto features in your application",
5
5
  "type": "module",
6
6
  "exports": {
@@ -74,7 +74,9 @@
74
74
  "test": "vitest run",
75
75
  "test:coverage": "vitest run --coverage",
76
76
  "test:watch": "vitest",
77
- "typecheck": "tsc --noEmit"
77
+ "typecheck": "tsc --noEmit",
78
+ "ui-elements:localize:build": "lit-localize --config ./src/ui/customizable-components/lit-localize.json build",
79
+ "ui-elements:localize:extract": "lit-localize --config ./src/ui/customizable-components/lit-localize.json extract"
78
80
  },
79
81
  "browserslist": [
80
82
  "last 6 Chrome major version",
@@ -84,6 +86,7 @@
84
86
  "last 6 opera major version"
85
87
  ],
86
88
  "dependencies": {
89
+ "@lit/localize": "^0.12.2",
87
90
  "lit": "^3.3.1",
88
91
  "uuid": "^11.1.0"
89
92
  },
@@ -91,6 +94,7 @@
91
94
  "@commitlint/cli": "^19.8.0",
92
95
  "@commitlint/config-conventional": "^19.8.0",
93
96
  "@eslint/js": "^9.24.0",
97
+ "@lit/localize-tools": "^0.8.0",
94
98
  "@rollup/plugin-alias": "^5.1.1",
95
99
  "@rollup/plugin-commonjs": "^28.0.3",
96
100
  "@rollup/plugin-node-resolve": "^16.0.1",