rebill-web-components-sdk 1.10.5 → 1.10.7-beta.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/cjs/card-fields-wrapper.card-identification.card-iframe.card-skeleton.rebill-address-form.rebill-address-search.rebill-input-combo.rebill-input-phone.rebill-installments.selectable-card.single-payment-method.entry.cjs.js.map +1 -1
- package/dist/cjs/card-fields-wrapper_11.cjs.entry.js +9 -12
- package/dist/cjs/index-C-VTnc0I.js.map +1 -1
- package/dist/cjs/rebill-change-card.cjs.entry.js +1 -2
- package/dist/cjs/rebill-change-card.entry.cjs.js.map +1 -1
- package/dist/cjs/rebill-checkout.cjs.entry.js +10 -3
- package/dist/cjs/rebill-checkout.entry.cjs.js.map +1 -1
- package/dist/cjs/rebill-form.cjs.entry.js +5 -2
- package/dist/cjs/rebill-form.entry.cjs.js.map +1 -1
- package/dist/cjs/rebill-renewal.cjs.entry.js +26 -2
- package/dist/cjs/rebill-renewal.entry.cjs.js.map +1 -1
- package/dist/collection/components/change-card/rebill-change-card.js +1 -2
- package/dist/collection/components/change-card/rebill-change-card.js.map +1 -1
- package/dist/collection/components/checkout/rebill-checkout.js +10 -3
- package/dist/collection/components/checkout/rebill-checkout.js.map +1 -1
- package/dist/collection/components/renewal/rebill-renewal.js +27 -2
- package/dist/collection/components/renewal/rebill-renewal.js.map +1 -1
- package/dist/collection/components/shared/form/form.js +5 -2
- package/dist/collection/components/shared/form/form.js.map +1 -1
- package/dist/collection/components/shared/inputs/input-phone/input-phone.js +9 -12
- package/dist/collection/components/shared/inputs/input-phone/input-phone.js.map +1 -1
- package/dist/components/p-8BpuJ_V5.js.map +1 -1
- package/dist/components/{p-0y1EkPsV.js → p-CRMAYXj0.js} +3 -3
- package/dist/components/{p-0y1EkPsV.js.map → p-CRMAYXj0.js.map} +1 -1
- package/dist/components/{p-BFqhozQ0.js → p-DKPrueOT.js} +3 -3
- package/dist/components/{p-BFqhozQ0.js.map → p-DKPrueOT.js.map} +1 -1
- package/dist/components/{p-Cs-pA3OO.js → p-DVaxhIJe.js} +7 -4
- package/dist/components/p-DVaxhIJe.js.map +1 -0
- package/dist/components/{p-RbKsk0NK.js → p-Dsv10JVE.js} +11 -14
- package/dist/components/p-Dsv10JVE.js.map +1 -0
- package/dist/components/rebill-change-card.js +5 -6
- package/dist/components/rebill-change-card.js.map +1 -1
- package/dist/components/rebill-checkout-form.js +1 -1
- package/dist/components/rebill-checkout.js +14 -7
- package/dist/components/rebill-checkout.js.map +1 -1
- package/dist/components/rebill-form.js +1 -1
- package/dist/components/rebill-input-phone.js +1 -1
- package/dist/components/rebill-renewal.js +31 -7
- package/dist/components/rebill-renewal.js.map +1 -1
- package/dist/components/root-component.js +1 -1
- package/dist/components/user-information-phone.js +1 -1
- package/dist/esm/card-fields-wrapper.card-identification.card-iframe.card-skeleton.rebill-address-form.rebill-address-search.rebill-input-combo.rebill-input-phone.rebill-installments.selectable-card.single-payment-method.entry.js.map +1 -1
- package/dist/esm/card-fields-wrapper_11.entry.js +9 -12
- package/dist/esm/index-BTZ7D7jU.js.map +1 -1
- package/dist/esm/rebill-change-card.entry.js +1 -2
- package/dist/esm/rebill-change-card.entry.js.map +1 -1
- package/dist/esm/rebill-checkout.entry.js +10 -3
- package/dist/esm/rebill-checkout.entry.js.map +1 -1
- package/dist/esm/rebill-form.entry.js +5 -2
- package/dist/esm/rebill-form.entry.js.map +1 -1
- package/dist/esm/rebill-renewal.entry.js +27 -3
- package/dist/esm/rebill-renewal.entry.js.map +1 -1
- package/dist/rebill-web-components-sdk/card-fields-wrapper.card-identification.card-iframe.card-skeleton.rebill-address-form.rebill-address-search.rebill-input-combo.rebill-input-phone.rebill-installments.selectable-card.single-payment-method.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-a8726b6d.entry.js → p-85e7cd6f.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-a8726b6d.entry.js.map → p-85e7cd6f.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/{p-d827e221.entry.js → p-90c50e5b.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-90c50e5b.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-BTZ7D7jU.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-14fb1c5c.entry.js → p-ae158592.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-ae158592.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-d2d7500e.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-d2d7500e.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-1a99d53d.entry.js → p-e6df1fe2.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-1a99d53d.entry.js.map → p-e6df1fe2.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/rebill-change-card.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-checkout.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-form.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-renewal.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/dist/types/components/renewal/rebill-renewal.d.ts +5 -0
- package/package.json +1 -1
- package/dist/components/p-Cs-pA3OO.js.map +0 -1
- package/dist/components/p-RbKsk0NK.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-14fb1c5c.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-84a8160a.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-84a8160a.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-d827e221.entry.js.map +0 -1
|
@@ -4054,20 +4054,17 @@ const InputPhone = class {
|
|
|
4054
4054
|
this.input.emit({ id: this.validationErrorId, value: validationResult.isValid.toString() });
|
|
4055
4055
|
};
|
|
4056
4056
|
emitBlurPhone = async () => {
|
|
4057
|
-
await PhoneValidator.validate(this.value, {
|
|
4057
|
+
const validation = await PhoneValidator.validate(this.value, {
|
|
4058
4058
|
required: this.required,
|
|
4059
4059
|
country: this.selectedCountry,
|
|
4060
4060
|
});
|
|
4061
|
-
// this.blurPhone.emit({
|
|
4062
|
-
// id: this.phoneNumberId,
|
|
4063
|
-
// value: this.value,
|
|
4064
|
-
// });
|
|
4065
|
-
// this.blurPhone.emit({
|
|
4066
|
-
// id: this.countryCodeId,
|
|
4067
|
-
// value: this.selectedCountry.dialCode,
|
|
4068
|
-
// });
|
|
4069
4061
|
this.blur.emit({ id: this.phoneNumberId, value: this.value });
|
|
4070
4062
|
this.blur.emit({ id: this.countryCodeId, value: this.selectedCountry.dialCode });
|
|
4063
|
+
// Emit also the validation flag so the form can validate the correct schema field on blur
|
|
4064
|
+
this.blur.emit({
|
|
4065
|
+
id: this.validationErrorId,
|
|
4066
|
+
value: validation.isValid.toString(),
|
|
4067
|
+
});
|
|
4071
4068
|
};
|
|
4072
4069
|
handleClickOutside = (event) => {
|
|
4073
4070
|
const target = event.target;
|
|
@@ -4101,11 +4098,11 @@ const InputPhone = class {
|
|
|
4101
4098
|
// Usar translateError para ambos tipos de errores
|
|
4102
4099
|
const translatedError = this.translateError(this.error);
|
|
4103
4100
|
const translatedValidationError = this.translateError(this.validationError);
|
|
4104
|
-
const displayError =
|
|
4105
|
-
return (index.h("div", { key: '
|
|
4101
|
+
const displayError = translatedValidationError || translatedError;
|
|
4102
|
+
return (index.h("div", { key: '8ba4b3763fed5beaa63d3c03997a5d3225bdac2b', class: "input-container" }, index.h("div", { key: '4d8a081c6818b007a66e749ade19ed2a03bcbfa2', class: inputClasses }, index.h("div", { key: 'b99f8c73cb689ecf8b6b23c99dfea1fbc8d7679a', class: "input-combo-select country-selector", onClick: this.toggleDropdown }, index.h("span", { key: '579c92643304fb84edffd02eaafa0c8d053dea67', class: "flag" }, this.selectedCountry.flag), index.h("span", { key: '87323ab9edab7a9716b3f25526d343faa5789d22', class: "dial-code" }, this.selectedCountry.dialCode), index.h("span", { key: 'abe6273a9664575c362ee793412baca2a2128810', class: `dropdown-arrow ${this.isDropdownOpen ? 'open' : ''}` }, "\u25BC")), this.isDropdownOpen && (index.h("div", { key: 'cf8da028b705288941dad87e277cbccf6a4a6830', class: "country-dropdown" }, this.searchable && (index.h("div", { key: 'c803f6f2b353618554edfa51204e9ec4cf3331d3', class: "search-container", onClick: this.handleSearchClick }, index.h("div", { key: '128a73017eee1f7d4e1ee5dcf4a20f09bc45889e', class: "search-input-wrapper" }, index.h("rebill-icon", { key: '9fdd3b1c87db54bb16c97ea895c548ed548a9677', name: "search", size: "16px", class: "search-icon" }), index.h("input", { key: 'a87ef75600838f3a9f4196fd66574eac53ef342e', ref: el => (this.searchInputRef = el), type: "text", class: "search-input", placeholder: this.searchPlaceholder, value: this.searchTerm, onInput: this.handleSearchInput, onClick: this.handleSearchClick }), this.searchTerm && (index.h("button", { key: 'c0c46bad64ec034a954d9714568ff95ee39f88b4', type: "button", class: "clear-search", onClick: event => {
|
|
4106
4103
|
event.stopPropagation();
|
|
4107
4104
|
this.clearSearch();
|
|
4108
|
-
}, "aria-label": "Clear search" }, index.h("rebill-icon", { key: '
|
|
4105
|
+
}, "aria-label": "Clear search" }, index.h("rebill-icon", { key: '2c37884a69bdc23cee3d2c02f45c066e6bebc835', name: "x", size: "16px" })))))), this.filteredCountries.length > 0 ? (this.filteredCountries.map(country => (index.h("div", { key: country.code, class: "country-option", onClick: e => this.selectCountry(country, e) }, index.h("span", { class: "flag" }, country.flag), index.h("span", { class: "country-name" }, country.name), index.h("span", { class: "dial-code" }, country.dialCode))))) : (index.h("div", { class: "no-results" }, "No se encontraron resultados")))), index.h("input", { key: '18afad61f393316cb5128d64de384c3873921685', id: this.phoneNumberId, type: "tel", class: "input-combo-element phone-number-input", placeholder: this.placeholder, value: this.value, onInput: this.onInput, onBlur: this.onPhoneBlurPhone, disabled: this.disabled, required: this.required })), displayError && index.h("span", { key: '7c1cedfe0647fd05df06229d36784b5d6340f84f', class: "error-message" }, displayError)));
|
|
4109
4106
|
}
|
|
4110
4107
|
};
|
|
4111
4108
|
InputPhone.style = inputPhoneCss;
|