@qonto/embed-sdk 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beneficiaries/beneficiaries.d.ts.map +1 -1
- package/dist/cards/cards.d.ts.map +1 -1
- package/dist/cards/cards.helper.d.ts.map +1 -1
- package/dist/common/common.test.d.ts +2 -0
- package/dist/common/common.test.d.ts.map +1 -0
- package/dist/common/common.utils.d.ts +3 -0
- package/dist/common/common.utils.d.ts.map +1 -0
- package/dist/common/environment/environment-manager.d.ts +2 -2
- package/dist/common/environment/environment-manager.d.ts.map +1 -1
- package/dist/common/network/network.d.ts.map +1 -1
- package/dist/common/operation-settings/operation-settings.d.ts +2 -2
- package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
- package/dist/errors/EmbedApiError.d.ts +9 -1
- package/dist/errors/EmbedApiError.d.ts.map +1 -1
- package/dist/iframe/embed-iframe.d.ts +2 -1
- package/dist/iframe/embed-iframe.d.ts.map +1 -1
- package/dist/iframe/iframe-manager.d.ts +2 -1
- package/dist/iframe/iframe-manager.d.ts.map +1 -1
- package/dist/index.umd.js +47 -47
- package/dist/mocks/node.d.ts +1 -1
- package/dist/mocks/node.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -1
- package/dist/src/common/common.utils.js +1 -0
- package/dist/src/common/environment/environment-manager.js +1 -1
- package/dist/src/common/network/network.js +1 -1
- package/dist/src/errors/EmbedApiError.js +1 -1
- package/dist/src/iframe/embed-iframe.js +1 -1
- package/dist/src/iframe/iframe-manager.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.api.js +1 -1
- package/dist/src/ui/ui-elements.js +1 -1
- package/dist/src/validation/operation-settings-validation.js +1 -1
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.d.ts +46 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts +32 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts.map +1 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts +14 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts.map +1 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts +2 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/index.d.ts +3 -0
- package/dist/ui/customizable-components/lottie-player/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts +17 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts +2 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts +6 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/index.d.ts +3 -0
- package/dist/ui/customizable-components/select-field/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-option.d.ts +48 -0
- package/dist/ui/customizable-components/select-field/qonto-option.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.d.ts +111 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/index.d.ts +2 -0
- package/dist/ui/customizable-components/text-field/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.d.ts +31 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts +14 -0
- package/dist/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts +13 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts +25 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts +4 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +53 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts +11 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts +12 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +25 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts +53 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts +41 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts +7 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements.d.ts.map +1 -1
- package/dist/validation/operation-settings-validation.d.ts +2 -1
- package/dist/validation/operation-settings-validation.d.ts.map +1 -1
- package/package.json +14 -1
- package/dist/src/errors/EmbedUIElementError.js +0 -1
package/dist/mocks/node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const server: import("msw/
|
|
1
|
+
export declare const server: import("msw/node").SetupServerApi;
|
|
2
2
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/mocks/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/mocks/node.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/mocks/node.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,mCAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-transfers.d.ts","sourceRoot":"","sources":["../../../src/sepa-transfers/bulk-transfers/bulk-transfers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,YAAY,EAEZ,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"bulk-transfers.d.ts","sourceRoot":"","sources":["../../../src/sepa-transfers/bulk-transfers/bulk-transfers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,YAAY,EAEZ,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAqB9C;;;;;;;;;;;;GAYG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,GACjD,OAAO,CAAC,wBAAwB,CAAC,CA0BnC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAgB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,8BAA8B,CAAC,GAAG,cAAc,CACpE,+BAA+B,EAAE,EACjC,YAAY,GAAG,SAAS,CACzB,CAyFA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EmbedOperationError as e}from"../errors/EmbedOperationError.js";function t(t){let n=null;if(n="function"==typeof t?t():document.getElementById(t),!(n&&n instanceof HTMLElement))throw new e(`Could not install the UI Element because the parent element with id ${t} was not found.\nPlease make sure to pass a valid parentElementId or ensure the parentElementId function returns a valid element.`);return n}export{t as getUIParentElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ENVIRONMENTS as n,BRANCHES as t}from"../constants.js";const e="https://embed.qonto.com",r="https://embed-js{branch}.staging.qonto.co",s="https://embed.dev.qonto.co",c={[n.PRODUCTION]:{
|
|
1
|
+
import{ENVIRONMENTS as n,BRANCHES as t}from"../constants.js";const e="https://embed.qonto.com",r="https://embed-js{branch}.staging.qonto.co",s="https://embed.dev.qonto.co",c={[n.PRODUCTION]:{EMBED_BASE_URL:e,EMBED_URL:`${e}/connect`,THIRD_PARTY_API_URL:"https://thirdparty.qonto.com"},[n.STAGING]:{EMBED_BASE_URL:r,EMBED_URL:`${r}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"},[n.LOCAL]:{EMBED_BASE_URL:s,EMBED_URL:`${s}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"}};class o{constructor(){this.environment=n.PRODUCTION,this.branch=t.SANDBOX;const e=process.env.QONTO_EMBED_ENVIRONMENT,r=process.env.QONTO_EMBED_BRANCH;this.environment=Object.values(n).includes(e)?e:n.PRODUCTION,this.branch=Object.values(t).includes(r)?r:t.SANDBOX}static getInstance(){return o.instance||(o.instance=new o),o.instance}setEnvironment(n){this.environment=n}getEnvironment(){return this.environment}isProductionEnvironment(){return this.environment===n.PRODUCTION}setBranch(n){this.branch=n}getBranch(){return this.branch}clear(){this.environment=n.PRODUCTION,this.branch=t.MASTER}getEnvironmentUrls(){if(this.environment===n.PRODUCTION)return c.production;{const n=c[this.environment];return Object.entries(n).reduce(((n,[t,e])=>({...n,[t]:e.replace("{branch}",`-${this.branch}`)})),{})}}}const i=o.getInstance();export{o as EnvironmentManager,i as environmentManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{authManager as e}from"../auth/auth.js";import{operationSettingsManager as o}from"../operation-settings/operation-settings.js";import{localeManager as
|
|
1
|
+
import{authManager as e}from"../auth/auth.js";import{operationSettingsManager as o}from"../operation-settings/operation-settings.js";import{localeManager as t}from"../locale/locale-manager.js";import{EmbedApiError as n}from"../../errors/EmbedApiError.js";import{base64Encode as r,base64Decode as a}from"../codec/codec.js";import{environmentManager as s}from"../environment/environment-manager.js";function i({accessToken:n,stagingToken:r,idempotencyKey:a,mfaPreference:s}){const i=new Headers;i.append("Authorization",`Bearer ${n}`);const p=r||e.getStagingToken();p&&i.append("X-Qonto-Staging-Token",p),a&&i.append("X-Qonto-Idempotency-Key",a);const c=s||o.getMFAPreference();return c&&i.append("X-Qonto-2fa-Preference",c),i.append("Content-Type","application/json"),i.append("Accept-Language",t.getLocale()),i}async function p({path:e,options:o}){const t=`${s.getEnvironmentUrls().THIRD_PARTY_API_URL}${e}`,r=await fetch(t,{...o,headers:i(o.headers),body:o.body?JSON.stringify(o.body):void 0});if(204===r.status)return;const a=await r.json();if(!r.ok)throw a.errors?new n({code:r.status,message:a.errors.map((e=>`${e.code}: ${e.detail}`))}):new n({code:r.status,message:`${a.code}: ${a.detail}`,data:a});return a}function c(e){const o={method:e.options.method,headers:e.options.headers,path:e.path,payload:e.options?.body},t=JSON.stringify(o);return r(t)}function d(e){return JSON.parse(a(e))}export{i as buildRequestHeaders,d as decodeNetworkResponse,c as encodeNetworkCall,p as makeNetworkCall};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QontoEmbedSdkError as
|
|
1
|
+
import{QontoEmbedSdkError as e}from"./QontoEmbedSdkError.js";class o extends e{constructor({message:e,data:o,code:r}){super(),this.code=500;const s=Array.isArray(e)?e.join("\n"):e;this.name="EmbedApiError",this.message=`The call to the Embed API failed with the following errors:\n${s}`,this.data=o||{},this.code=r||this.code}}export{o as EmbedApiError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IFRAME_EVENTS as e}from"../common/constants.js";import{EmbedOperationError as t}from"../errors/EmbedOperationError.js";import{buildIframeMessage as s}from"./iframe-message-builder.js";class
|
|
1
|
+
import{IFRAME_EVENTS as e}from"../common/constants.js";import{EmbedOperationError as t}from"../errors/EmbedOperationError.js";import{buildIframeMessage as s}from"./iframe-message-builder.js";import{getUIParentElement as i}from"../common/common.utils.js";class n{constructor(e){this.options=e,this.iframe=null,this.parentElement=null,this.messageListeners=new Map,this.defaultTimeout=3e4;const t=new URL(e.iframeUrl);this.targetOrigin=`${t.protocol}//${t.host}`}async initialize(){if(this.iframe)return this;if(this.parentElement=i(this.options.parentElementId),!this.parentElement)throw new t(`Could not install the authentication UI because the parent element with id ${this.options.parentElementId} was not found.\nPlease make sure to pass a valid parentElementId when calling the method.`);return new Promise(((s,i)=>{this.iframe=document.createElement("iframe"),this.iframe.src=this.options.iframeUrl,this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none";const n=this.options.timeout||this.defaultTimeout,r=setTimeout((()=>{window.removeEventListener("message",a),i(new t(`Could not install the authentication UI because the timeout of ${n}ms was reached.\nPlease make sure the application can reach the Internet.`))}),n),a=t=>{t.data.eventId===e.READY&&(clearTimeout(r),window.removeEventListener("message",a),s(this))};window.addEventListener("message",a),this.parentElement?.appendChild(this.iframe)}))}postMessage(e){if(!this.iframe||!this.iframe.contentWindow)return Promise.reject(new t("Attempted to perform an Embed operation without having the authentication UI initialized."));const i=s(e);return new Promise(((e,s)=>{const n=r=>{if(r.data?.actionId===i.actionId){if("error"===r.data.status)return this.removeMessageListener(i.actionId,n),s(new t(`An error occurred when performing the action ${i.actionId}.\n${JSON.stringify(r.data.payload)}`));this.removeMessageListener(i.actionId,n),e(r.data.payload)}};this.addMessageListener(i.actionId,n),this.iframe?.contentWindow?.postMessage(i,this.targetOrigin)}))}addMessageListener(e,t){this.messageListeners.has(e)||this.messageListeners.set(e,[]);this.messageListeners.get(e).push(t),window.addEventListener("message",t)}removeMessageListener(e,t){const s=this.messageListeners.get(e);if(s){const e=s.indexOf(t);-1!==e&&(s.splice(e,1),window.removeEventListener("message",t))}}destroy(){this.messageListeners.forEach((e=>{e.forEach((e=>{window.removeEventListener("message",e)}))})),this.messageListeners.clear(),this.iframe&&this.parentElement&&(this.parentElement.removeChild(this.iframe),this.iframe=null)}}export{n as EmbedIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EmbedIframe as e}from"./embed-iframe.js";import{environmentManager as n}from"../common/environment/environment-manager.js";import{localeManager as o}from"../common/locale/locale-manager.js";function t({accessToken:e,stagingToken:t,locale:m,debugMode:r}){const a=r||!1,i=m||o.getLocale(),c=n.getEnvironmentUrls().
|
|
1
|
+
import{EmbedIframe as e}from"./embed-iframe.js";import{environmentManager as n}from"../common/environment/environment-manager.js";import{localeManager as o}from"../common/locale/locale-manager.js";function t({accessToken:e,stagingToken:t,locale:m,debugMode:r}){const a=r||!1,i=m||o.getLocale(),c=n.getEnvironmentUrls().EMBED_URL,l=t?`;staging_token=${encodeURIComponent(t)}`:"";return`${c}?debug=${a}&lang=${encodeURIComponent(i)}#access_token=${encodeURIComponent(e)}${l}`}function m({parentElementId:n,iframeUrl:o}){return new e({parentElementId:n,iframeUrl:o}).initialize()}export{t as buildIframeUrl,m as createIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeNetworkCall as e,buildRequestHeaders as n}from"../../common/network/network.js";import{environmentManager as s}from"../../common/environment/environment-manager.js";import{addPaginationParamsToUrl as
|
|
1
|
+
import{makeNetworkCall as e,buildRequestHeaders as n}from"../../common/network/network.js";import{environmentManager as s}from"../../common/environment/environment-manager.js";import{addPaginationParamsToUrl as a}from"../../common/api-pagination/api-pagination.js";import{EmbedApiError as o}from"../../errors/EmbedApiError.js";import{SEPA_ENDPOINT as r}from"../sepa-transfers.api.js";import{serializeToSepaPayeeDataObject as t}from"../sepa-transfers.serializer.js";const i="/v2/sepa/bulk_transfers";async function c({accessToken:e,stagingToken:r,paginationSettings:t}){const c={method:"GET",headers:n({accessToken:e,stagingToken:r})},m=new URL(`${s.getEnvironmentUrls().THIRD_PARTY_API_URL}${i}`),g=a({endpointUrl:m,paginationSettings:t}),p=await fetch(g,c);if(!p.ok)throw new o({message:"Failed to fetch SEPA bulk transfers"});const k=await p.json();if(k.errors)throw new o({message:k.errors.map((e=>`${e.code}: ${e.detail}`))});return{bulkTransfers:k.bulk_transfers,meta:k.meta}}async function m({accessToken:e,stagingToken:a,bulkTransferId:r}){const t={method:"GET",headers:n({accessToken:e,stagingToken:a})},c=new URL(`${s.getEnvironmentUrls().THIRD_PARTY_API_URL}${i}/${r}`),m=await fetch(c,t),g=await m.json();if(g.errors)throw new o({message:g.errors.map((e=>`${e.code}: ${e.detail}`))});return g.bulk_transfer}function g({sepaPayees:e,accessToken:n,stagingToken:s}){return{path:`${r}/bulk_verify_payee`,options:{method:"POST",headers:{accessToken:n,stagingToken:s},body:{requests:e.map(t)}}}}async function p({sepaPayees:n,accessToken:s,stagingToken:a}){const o=g({sepaPayees:n,accessToken:s,stagingToken:a});return await e(o)}export{i as BULK_TRANSFERS_ENDPOINT,m as getBulkTransfer,c as getBulkTransfers,g as prepareVerifySepaPayeesCall,p as verifySepaPayees};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isRunningInServer as
|
|
1
|
+
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/create-transfer-list-element.js";import{getUIParentElement as m}from"../common/common.utils.js";const r=async r=>{if(t())return;const{uiElementSettings:s,operationSettings:a={}}=r,{uiElementName:l}=e(s),{uiParentElementId:u}=n(a,{requiresUI:!0}),c=m(u);if(l===i.TRANSFER_LIST)return void o({containerElement:c,uiElementSettings:s,operationSettings:a});const p=document.createElement(`qonto-${l}`);c.appendChild(p)};export{r as createUIElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{MFA_METHODS as t}from"../common/constants.js";import{environmentManager as o}from"../common/environment/environment-manager.js";const r={requiresUI:!1};function i(i,{requiresUI:s}=r){const a=i?.uiParentElementId||n.getUIParentElementId();if(s
|
|
1
|
+
import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{MFA_METHODS as t}from"../common/constants.js";import{environmentManager as o}from"../common/environment/environment-manager.js";const r={requiresUI:!1};function i(i,{requiresUI:s}=r){const a=i?.uiParentElementId||n.getUIParentElementId();if(s){if(!a)throw new e("operationSettings parameter must have a uiParentElementId for the called function.\nYou can pass it either to the initialize function or in a per function basis.");if(!["string","function"].includes(typeof a))throw new e("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const u=i?.mfaPreference||n.getMFAPreference();if(u){const n=(m=Object.values(t),o.isProductionEnvironment()?m.filter((e=>e!==t.MOCK)):m);if(!n.includes(u))throw new e(`operationSettings.mfaPreference must be one of ${n.join(", ")}`);if(o.isProductionEnvironment()&&u===t.MOCK)throw new e("operationSettings.mfaPreference cannot be set to mock in production environment.")}var m;const c=i?.debugMode||n.getDebugMode();if(void 0!==c&&"boolean"!=typeof c)throw new e("operationSettings.debugMode must be a boolean.");const f=i?.proxyRequestFunction||n.getProxyRequestFunction();if(f&&"function"!=typeof f)throw new e("operationSettings.proxyRequestFunction must be a function.");return{...i,uiParentElementId:a,mfaPreference:u,debugMode:c,proxyRequestFunction:f}}export{i as validateOperationSettingsParams};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../styles/styles.css';
|
|
3
|
+
export declare class QontoAmountField extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
locale: string;
|
|
11
|
+
private _value;
|
|
12
|
+
get value(): number;
|
|
13
|
+
set value(val: number | string);
|
|
14
|
+
/**
|
|
15
|
+
* Whether the amount field is in an error state
|
|
16
|
+
*/
|
|
17
|
+
error: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Error message to display below the amount field
|
|
20
|
+
*/
|
|
21
|
+
errorMessage: string;
|
|
22
|
+
private displayValue;
|
|
23
|
+
private isFocused;
|
|
24
|
+
private decimalPlaces;
|
|
25
|
+
private get hasValue();
|
|
26
|
+
/**
|
|
27
|
+
* Computed property that returns true if error styles should be shown
|
|
28
|
+
* (either error is explicitly true or errorMessage is provided)
|
|
29
|
+
*/
|
|
30
|
+
private get hasError();
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
33
|
+
private updateDisplayValue;
|
|
34
|
+
private showRawValueForEditing;
|
|
35
|
+
private handleFocus;
|
|
36
|
+
private handleBlur;
|
|
37
|
+
private handleInput;
|
|
38
|
+
private handleChange;
|
|
39
|
+
render(): import("lit").TemplateResult<1>;
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLElementTagNameMap {
|
|
43
|
+
'qonto-amount-field': QontoAmountField;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=qonto-amount-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-amount-field.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/amount-field/qonto-amount-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,sBAAsB,CAAC;AAE9B,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BAA0B;IAGvC,EAAE,EAAE,MAAM,CAAM;IAGhB,KAAK,EAAE,MAAM,CAAM;IAGnB,QAAQ,EAAE,MAAM,CAAS;IAGzB,WAAW,EAAE,MAAM,CAAU;IAG7B,QAAQ,EAAE,OAAO,CAAS;IAG1B,MAAM,EAAE,MAAM,CAAQ;IAItB,OAAO,CAAC,MAAM,CAAa;IAE3B,IACI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAI7B;IAED;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAS;IAEvB;;OAEG;IAEH,YAAY,EAAE,MAAM,CAAM;IAG1B,OAAO,CAAC,YAAY,CAAc;IAGlC,OAAO,CAAC,SAAS,CAAkB;IAEnC,OAAO,CAAC,aAAa,CAAa;IAElC,OAAO,KAAK,QAAQ,GAEnB;IAED;;;OAGG;IACH,OAAO,KAAK,QAAQ,GAEnB;IAED,iBAAiB;IAKjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,YAAY;IAepB,MAAM;CAqCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-amount-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/amount-field/qonto-amount-field.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBAgMlC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a numeric amount with locale-specific formatting
|
|
3
|
+
* @param value - The numeric value to format
|
|
4
|
+
* @param locale - The locale to use for formatting (default: 'en-US')
|
|
5
|
+
* @param decimalPlaces - Number of decimal places to display (default: 2)
|
|
6
|
+
* @returns Formatted string representation of the amount
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* formatAmount(1234.56, 'en', 2) // "1,234.56"
|
|
10
|
+
* formatAmount(1234.56, 'fr', 2) // "1 234,56"
|
|
11
|
+
* formatAmount(1234.5, 'en', 2) // "1,234.50"
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatAmount(value: number, locale?: string, decimalPlaces?: number): string;
|
|
14
|
+
/**
|
|
15
|
+
* Parses a string input to a numeric value
|
|
16
|
+
* Handles various input formats including:
|
|
17
|
+
* - Comma and period separators
|
|
18
|
+
* - Negative numbers
|
|
19
|
+
* - Empty strings
|
|
20
|
+
*
|
|
21
|
+
* @param input - The string to parse
|
|
22
|
+
* @returns The parsed numeric value, or 0 if input is invalid
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* parseAmount("1,234.56") // 1234.56
|
|
26
|
+
* parseAmount("1.234,56") // 1234.56
|
|
27
|
+
* parseAmount("-100") // -100
|
|
28
|
+
* parseAmount("") // 0
|
|
29
|
+
* parseAmount("abc") // 0
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseAmount(input: string): number;
|
|
32
|
+
//# sourceMappingURL=qonto-amount-field.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-amount-field.utils.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/amount-field/qonto-amount-field.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAa,EACrB,aAAa,GAAE,MAAU,GACxB,MAAM,CAcR;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAqCjD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../styles/styles.css';
|
|
3
|
+
export declare class QontoBeneficiaryCard extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
beneficiaryName: string;
|
|
6
|
+
iban: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
private footerSlot;
|
|
9
|
+
private hasFooterContent;
|
|
10
|
+
private checkSlotContent;
|
|
11
|
+
firstUpdated(): void;
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=qonto-beneficiary-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-beneficiary-card.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,sBAAsB,CAAC;AAG9B,qBACa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAA8B;IAG3C,eAAe,EAAE,MAAM,CAAM;IAG7B,IAAI,EAAE,MAAM,CAAM;IAGlB,QAAQ,EAAE,MAAM,CAAM;IAGtB,OAAO,CAAC,UAAU,CAAmB;IAGrC,OAAO,CAAC,gBAAgB,CAAS;IAEjC,OAAO,CAAC,gBAAgB;IAMxB,YAAY;IAIZ,MAAM;CAcP"}
|
package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-beneficiary-card.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,yBA2ItC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { type LottieAnimationData } from './qonto-lottie-player.types.ts';
|
|
3
|
+
import '../styles/styles.css';
|
|
4
|
+
export declare class QontoLottiePlayer extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
animationData?: LottieAnimationData;
|
|
7
|
+
private containerRef;
|
|
8
|
+
private animation?;
|
|
9
|
+
protected firstUpdated(): void;
|
|
10
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
12
|
+
private loadAnimation;
|
|
13
|
+
private renderAnimation;
|
|
14
|
+
private destroyAnimation;
|
|
15
|
+
render(): import("lit").TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=qonto-lottie-player.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-lottie-player.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/qonto-lottie-player.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,OAAO,sBAAsB,CAAC;AAE9B,qBACa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,0BAA2B;IAGxC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IAEpC,OAAO,CAAC,YAAY,CAAoC;IACxD,OAAO,CAAC,SAAS,CAAC,CAAgB;cAEf,YAAY,IAAI,IAAI;IAI9B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMtD,oBAAoB,IAAI,IAAI;IAKrC,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,gBAAgB;IAOxB,MAAM;CAGP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-lottie-player.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/qonto-lottie-player.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,yBASnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-lottie-player.types.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/qonto-lottie-player.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/select-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* QontoOption - A composable option element for qonto-select-field
|
|
4
|
+
*
|
|
5
|
+
* This component represents a single option within a qonto-select-field.
|
|
6
|
+
* It accepts custom content through its default slot and communicates
|
|
7
|
+
* with its parent select field component.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <qonto-option value="acc1">
|
|
12
|
+
* <div class="account-card">
|
|
13
|
+
* <span>Main Account</span>
|
|
14
|
+
* <span>€12,345.67</span>
|
|
15
|
+
* </div>
|
|
16
|
+
* </qonto-option>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class QontoOption extends LitElement {
|
|
20
|
+
static styles: import("lit").CSSResult;
|
|
21
|
+
/**
|
|
22
|
+
* The value associated with this option
|
|
23
|
+
* This is what gets emitted when the option is selected
|
|
24
|
+
*/
|
|
25
|
+
value: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this option is disabled
|
|
28
|
+
* Disabled options cannot be selected
|
|
29
|
+
*/
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Internal attribute to track if this option is selected
|
|
33
|
+
* Managed by the parent qonto-select-field component
|
|
34
|
+
*/
|
|
35
|
+
selected: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Internal attribute to track if this option is focused
|
|
38
|
+
* Managed by the parent qonto-select-field component
|
|
39
|
+
*/
|
|
40
|
+
focused: boolean;
|
|
41
|
+
render(): import("lit").TemplateResult<1>;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
'qonto-option': QontoOption;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=qonto-option.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-option.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/select-field/qonto-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAIX;IAEF;;;OAGG;IAEH,KAAK,EAAE,MAAM,CAAM;IAEnB;;;OAGG;IAEH,QAAQ,EAAE,OAAO,CAAS;IAE1B;;;OAGG;IAEH,QAAQ,EAAE,OAAO,CAAS;IAE1B;;;OAGG;IAEH,OAAO,EAAE,OAAO,CAAS;IAEzB,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../styles/styles.css';
|
|
3
|
+
export declare class QontoSelectField extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
/**
|
|
6
|
+
* The ID of the select element
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Label text displayed above the select field
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Placeholder text shown when no option is selected
|
|
15
|
+
*/
|
|
16
|
+
placeholder: string;
|
|
17
|
+
/**
|
|
18
|
+
* Currently selected value
|
|
19
|
+
*/
|
|
20
|
+
value: string;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the select field is disabled
|
|
23
|
+
*/
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the select field is in an error state
|
|
27
|
+
*/
|
|
28
|
+
error: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Error message to display below the select field
|
|
31
|
+
*/
|
|
32
|
+
errorMessage: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the select field is read-only
|
|
35
|
+
*/
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the dropdown is currently open
|
|
39
|
+
*/
|
|
40
|
+
private isOpen;
|
|
41
|
+
/**
|
|
42
|
+
* Index of the currently focused option (for keyboard navigation)
|
|
43
|
+
*/
|
|
44
|
+
private focusedIndex;
|
|
45
|
+
/**
|
|
46
|
+
* Cached array of option elements
|
|
47
|
+
*/
|
|
48
|
+
private optionElements;
|
|
49
|
+
private dropdownElement?;
|
|
50
|
+
private triggerElement?;
|
|
51
|
+
private optionsSlot?;
|
|
52
|
+
/**
|
|
53
|
+
* Computed property that returns true if error styles should be shown
|
|
54
|
+
* (either error is explicitly true or errorMessage is provided)
|
|
55
|
+
*/
|
|
56
|
+
private get hasError();
|
|
57
|
+
/**
|
|
58
|
+
* Handle click outside to close dropdown
|
|
59
|
+
*/
|
|
60
|
+
private handleClickOutside;
|
|
61
|
+
connectedCallback(): void;
|
|
62
|
+
disconnectedCallback(): void;
|
|
63
|
+
firstUpdated(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Update option elements cache when children change
|
|
66
|
+
*/
|
|
67
|
+
private handleSlotChange;
|
|
68
|
+
/**
|
|
69
|
+
* Update selected and focused states on option elements
|
|
70
|
+
*/
|
|
71
|
+
private updateOptionStates;
|
|
72
|
+
/**
|
|
73
|
+
* Scroll the focused option into view
|
|
74
|
+
*/
|
|
75
|
+
private scrollFocusedOptionIntoView;
|
|
76
|
+
/**
|
|
77
|
+
* Watch for value changes to update option states
|
|
78
|
+
*/
|
|
79
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
80
|
+
/**
|
|
81
|
+
* Toggle dropdown open/close
|
|
82
|
+
*/
|
|
83
|
+
private toggleDropdown;
|
|
84
|
+
/**
|
|
85
|
+
* Close dropdown
|
|
86
|
+
*/
|
|
87
|
+
private closeDropdown;
|
|
88
|
+
/**
|
|
89
|
+
* Handle option selection
|
|
90
|
+
*/
|
|
91
|
+
private selectOption;
|
|
92
|
+
/**
|
|
93
|
+
* Handle keyboard navigation
|
|
94
|
+
*/
|
|
95
|
+
private handleKeyDown;
|
|
96
|
+
/**
|
|
97
|
+
* Render the selected value display by cloning the selected option's content
|
|
98
|
+
*/
|
|
99
|
+
private renderSelectedDisplay;
|
|
100
|
+
/**
|
|
101
|
+
* Handle option click from the dropdown
|
|
102
|
+
*/
|
|
103
|
+
private handleOptionClick;
|
|
104
|
+
render(): import("lit").TemplateResult<1>;
|
|
105
|
+
}
|
|
106
|
+
declare global {
|
|
107
|
+
interface HTMLElementTagNameMap {
|
|
108
|
+
'qonto-select-field': QontoSelectField;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=qonto-select-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-select-field.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/select-field/qonto-select-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,sBAAsB,CAAC;AAE9B,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BAA0B;IAEvC;;OAEG;IAEH,EAAE,EAAE,MAAM,CAAuB;IAEjC;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAM;IAEnB;;OAEG;IAEH,WAAW,EAAE,MAAM,CAAsB;IAEzC;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAM;IAEnB;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAS;IAE1B;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAS;IAEvB;;OAEG;IAEH,YAAY,EAAE,MAAM,CAAM;IAE1B;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAS;IAE1B;;OAEG;IAEH,OAAO,CAAC,MAAM,CAAkB;IAEhC;;OAEG;IAEH,OAAO,CAAC,YAAY,CAAc;IAElC;;OAEG;IAEH,OAAO,CAAC,cAAc,CAAqB;IAG3C,OAAO,CAAC,eAAe,CAAC,CAAc;IAGtC,OAAO,CAAC,cAAc,CAAC,CAAc;IAGrC,OAAO,CAAC,WAAW,CAAC,CAAkB;IAEtC;;;OAGG;IACH,OAAO,KAAK,QAAQ,GAEnB;IAED;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAKxB;IAEF,iBAAiB;IAKjB,oBAAoB;IAKpB,YAAY;IAiBZ;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAmBnC;;OAEG;IACH,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAkB/C;;OAEG;IACH,OAAO,CAAC,cAAc;IAoBtB;;OAEG;IACH,OAAO,CAAC,aAAa;IAKrB;;OAEG;IACH,OAAO,CAAC,YAAY;IAgBpB;;OAEG;IACH,OAAO,CAAC,aAAa;IA0DrB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQzB,MAAM;CA4FP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-select-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/select-field/qonto-select-field.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBA8TlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/text-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../styles/styles.css';
|
|
3
|
+
export declare class QontoTextField extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
value: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the text field is in an error state
|
|
12
|
+
*/
|
|
13
|
+
error: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Error message to display below the text field
|
|
16
|
+
*/
|
|
17
|
+
errorMessage: string;
|
|
18
|
+
/**
|
|
19
|
+
* Computed property that returns true if error styles should be shown
|
|
20
|
+
* (either error is explicitly true or errorMessage is provided)
|
|
21
|
+
*/
|
|
22
|
+
private get hasError();
|
|
23
|
+
private handleInput;
|
|
24
|
+
render(): import("lit").TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'qonto-text-field': QontoTextField;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=qonto-text-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-text-field.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/text-field/qonto-text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,sBAAsB,CAAC;AAE9B,qBACa,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAC,MAAM,0BAAwB;IAGrC,EAAE,EAAE,MAAM,CAAM;IAGhB,KAAK,EAAE,MAAM,CAAM;IAGnB,WAAW,EAAE,MAAM,CAAiB;IAGpC,KAAK,EAAE,MAAM,CAAM;IAGnB,QAAQ,EAAE,OAAO,CAAS;IAE1B;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAS;IAEvB;;OAEG;IAEH,YAAY,EAAE,MAAM,CAAM;IAE1B;;;OAGG;IACH,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,WAAW;IAcnB,MAAM;CAgCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-text-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/text-field/qonto-text-field.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,yBAmJhC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const CUSTOM_CSS_PREFIX = "custom-props-css";
|
|
2
|
+
/**
|
|
3
|
+
* A Storybook decorator that adds a link to a CSS file in the document head if not already present.
|
|
4
|
+
* Useful for loading custom properties from CSS files to style components in stories.
|
|
5
|
+
* @param pathToCSSFile - The path to the CSS file to be added.
|
|
6
|
+
*/
|
|
7
|
+
export declare function decorateStoryWithCustomPropsFromCss(pathToCSSFile: string): (storyFn: () => string) => import("lit").TemplateResult<1>;
|
|
8
|
+
/**
|
|
9
|
+
* Removes all custom CSS links from the document. It is meant to be setup as a global decorator in
|
|
10
|
+
* preview.tsx to ensure a clean state between stories.
|
|
11
|
+
* @param storyFn - The story function to be executed after removing the CSS links.
|
|
12
|
+
*/
|
|
13
|
+
export declare const removeCustomCssLinks: (storyFn: () => string) => string;
|
|
14
|
+
//# sourceMappingURL=storybook-define-custom-props-from-css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storybook-define-custom-props-from-css.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/utils/storybook-define-custom-props-from-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,aAAa,EAAE,MAAM,IAC/D,SAAS,MAAM,MAAM,qCAkB9B;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,MAAM,WAIzD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './sepa-transfer-creation';
|
|
2
|
+
import type { UIElementCreatorParams } from '@ui/ui-elements.types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates and renders a SEPA transfer creation UI element.
|
|
5
|
+
* The component provides a form interface for users to create new SEPA transfers.
|
|
6
|
+
*
|
|
7
|
+
* @param params - Object containing:
|
|
8
|
+
* - containerElement: The DOM element where the component will be appended
|
|
9
|
+
* - operationSettings: Settings passed to the component (accessToken, proxyRequestFunction, locale, etc.)
|
|
10
|
+
* - uiElementSettings: Optional settings including event listeners
|
|
11
|
+
*/
|
|
12
|
+
export declare function createSepaTransferCreationElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<never>): void;
|
|
13
|
+
//# sourceMappingURL=create-sepa-transfer-creation-element.d.ts.map
|
package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-sepa-transfer-creation-element.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAIpE;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,EAChD,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,IAAI,CA+BtC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../../../customizable-components/styles/styles.css';
|
|
3
|
+
import '../../../customizable-components/text/qonto-text-heading.ts';
|
|
4
|
+
import '../../../customizable-components/text/qonto-text-body.ts';
|
|
5
|
+
import '../../../customizable-components/button/qonto-button.ts';
|
|
6
|
+
import '../../../customizable-components/beneficiary-card/qonto-beneficiary-card.ts';
|
|
7
|
+
import type { OperationSettings } from '@validation/operation-settings-validation.ts';
|
|
8
|
+
/**
|
|
9
|
+
* Step 1: Recipient Information
|
|
10
|
+
* Collects recipient name and IBAN for the SEPA transfer.
|
|
11
|
+
*/
|
|
12
|
+
export declare class BeneficiarySelectionPage extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
operationSettings: OperationSettings | undefined;
|
|
15
|
+
locale: string;
|
|
16
|
+
private beneficiaries;
|
|
17
|
+
private paginationState;
|
|
18
|
+
private isLoading;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
21
|
+
private fetchBeneficiaries;
|
|
22
|
+
private handleNext;
|
|
23
|
+
render(): import("lit").TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=beneficiary-selection-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beneficiary-selection-page.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AASvC,OAAO,oDAAoD,CAAC;AAC5D,OAAO,6DAA6D,CAAC;AACrE,OAAO,0DAA0D,CAAC;AAClE,OAAO,yDAAyD,CAAC;AACjE,OAAO,6EAA6E,CAAC;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAKtF;;;GAGG;AACH,qBAEa,wBAAyB,SAAQ,UAAU;IACtD,MAAM,CAAC,MAAM,0BAAkC;IAG/C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,aAAa,CAA4B;IAGjD,OAAO,CAAC,eAAe,CAA8B;IAGrD,OAAO,CAAC,SAAS,CAAkB;IAEnC,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;YAMjC,kBAAkB;IA8BhC,OAAO,CAAC,UAAU;IAUlB,MAAM;CA+BP"}
|
package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beneficiary-selection-page.styles.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,yBAqE1C,CAAC"}
|
package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../../../customizable-components/skeleton-loader/qonto-skeleton-loader-line.ts';
|
|
2
|
+
export declare function renderSkeletonCard(): import("lit").TemplateResult<1>;
|
|
3
|
+
export declare function renderLoadingState(): import("lit").TemplateResult<1>;
|
|
4
|
+
//# sourceMappingURL=beneficiary-selection-page.utils.d.ts.map
|
package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beneficiary-selection-page.utils.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.ts"],"names":[],"mappings":"AAEA,OAAO,gFAAgF,CAAC;AAExF,wBAAgB,kBAAkB,oCAejC;AAED,wBAAgB,kBAAkB,oCAIjC"}
|