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.
Files changed (77) hide show
  1. 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
  2. package/dist/cjs/card-fields-wrapper_11.cjs.entry.js +9 -12
  3. package/dist/cjs/index-C-VTnc0I.js.map +1 -1
  4. package/dist/cjs/rebill-change-card.cjs.entry.js +1 -2
  5. package/dist/cjs/rebill-change-card.entry.cjs.js.map +1 -1
  6. package/dist/cjs/rebill-checkout.cjs.entry.js +10 -3
  7. package/dist/cjs/rebill-checkout.entry.cjs.js.map +1 -1
  8. package/dist/cjs/rebill-form.cjs.entry.js +5 -2
  9. package/dist/cjs/rebill-form.entry.cjs.js.map +1 -1
  10. package/dist/cjs/rebill-renewal.cjs.entry.js +26 -2
  11. package/dist/cjs/rebill-renewal.entry.cjs.js.map +1 -1
  12. package/dist/collection/components/change-card/rebill-change-card.js +1 -2
  13. package/dist/collection/components/change-card/rebill-change-card.js.map +1 -1
  14. package/dist/collection/components/checkout/rebill-checkout.js +10 -3
  15. package/dist/collection/components/checkout/rebill-checkout.js.map +1 -1
  16. package/dist/collection/components/renewal/rebill-renewal.js +27 -2
  17. package/dist/collection/components/renewal/rebill-renewal.js.map +1 -1
  18. package/dist/collection/components/shared/form/form.js +5 -2
  19. package/dist/collection/components/shared/form/form.js.map +1 -1
  20. package/dist/collection/components/shared/inputs/input-phone/input-phone.js +9 -12
  21. package/dist/collection/components/shared/inputs/input-phone/input-phone.js.map +1 -1
  22. package/dist/components/p-8BpuJ_V5.js.map +1 -1
  23. package/dist/components/{p-0y1EkPsV.js → p-CRMAYXj0.js} +3 -3
  24. package/dist/components/{p-0y1EkPsV.js.map → p-CRMAYXj0.js.map} +1 -1
  25. package/dist/components/{p-BFqhozQ0.js → p-DKPrueOT.js} +3 -3
  26. package/dist/components/{p-BFqhozQ0.js.map → p-DKPrueOT.js.map} +1 -1
  27. package/dist/components/{p-Cs-pA3OO.js → p-DVaxhIJe.js} +7 -4
  28. package/dist/components/p-DVaxhIJe.js.map +1 -0
  29. package/dist/components/{p-RbKsk0NK.js → p-Dsv10JVE.js} +11 -14
  30. package/dist/components/p-Dsv10JVE.js.map +1 -0
  31. package/dist/components/rebill-change-card.js +5 -6
  32. package/dist/components/rebill-change-card.js.map +1 -1
  33. package/dist/components/rebill-checkout-form.js +1 -1
  34. package/dist/components/rebill-checkout.js +14 -7
  35. package/dist/components/rebill-checkout.js.map +1 -1
  36. package/dist/components/rebill-form.js +1 -1
  37. package/dist/components/rebill-input-phone.js +1 -1
  38. package/dist/components/rebill-renewal.js +31 -7
  39. package/dist/components/rebill-renewal.js.map +1 -1
  40. package/dist/components/root-component.js +1 -1
  41. package/dist/components/user-information-phone.js +1 -1
  42. 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
  43. package/dist/esm/card-fields-wrapper_11.entry.js +9 -12
  44. package/dist/esm/index-BTZ7D7jU.js.map +1 -1
  45. package/dist/esm/rebill-change-card.entry.js +1 -2
  46. package/dist/esm/rebill-change-card.entry.js.map +1 -1
  47. package/dist/esm/rebill-checkout.entry.js +10 -3
  48. package/dist/esm/rebill-checkout.entry.js.map +1 -1
  49. package/dist/esm/rebill-form.entry.js +5 -2
  50. package/dist/esm/rebill-form.entry.js.map +1 -1
  51. package/dist/esm/rebill-renewal.entry.js +27 -3
  52. package/dist/esm/rebill-renewal.entry.js.map +1 -1
  53. 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
  54. package/dist/rebill-web-components-sdk/{p-a8726b6d.entry.js → p-85e7cd6f.entry.js} +2 -2
  55. package/dist/rebill-web-components-sdk/{p-a8726b6d.entry.js.map → p-85e7cd6f.entry.js.map} +1 -1
  56. package/dist/rebill-web-components-sdk/{p-d827e221.entry.js → p-90c50e5b.entry.js} +2 -2
  57. package/dist/rebill-web-components-sdk/p-90c50e5b.entry.js.map +1 -0
  58. package/dist/rebill-web-components-sdk/p-BTZ7D7jU.js.map +1 -1
  59. package/dist/rebill-web-components-sdk/{p-14fb1c5c.entry.js → p-ae158592.entry.js} +2 -2
  60. package/dist/rebill-web-components-sdk/p-ae158592.entry.js.map +1 -0
  61. package/dist/rebill-web-components-sdk/p-d2d7500e.entry.js +2 -0
  62. package/dist/rebill-web-components-sdk/p-d2d7500e.entry.js.map +1 -0
  63. package/dist/rebill-web-components-sdk/{p-1a99d53d.entry.js → p-e6df1fe2.entry.js} +2 -2
  64. package/dist/rebill-web-components-sdk/{p-1a99d53d.entry.js.map → p-e6df1fe2.entry.js.map} +1 -1
  65. package/dist/rebill-web-components-sdk/rebill-change-card.entry.esm.js.map +1 -1
  66. package/dist/rebill-web-components-sdk/rebill-checkout.entry.esm.js.map +1 -1
  67. package/dist/rebill-web-components-sdk/rebill-form.entry.esm.js.map +1 -1
  68. package/dist/rebill-web-components-sdk/rebill-renewal.entry.esm.js.map +1 -1
  69. package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
  70. package/dist/types/components/renewal/rebill-renewal.d.ts +5 -0
  71. package/package.json +1 -1
  72. package/dist/components/p-Cs-pA3OO.js.map +0 -1
  73. package/dist/components/p-RbKsk0NK.js.map +0 -1
  74. package/dist/rebill-web-components-sdk/p-14fb1c5c.entry.js.map +0 -1
  75. package/dist/rebill-web-components-sdk/p-84a8160a.entry.js +0 -2
  76. package/dist/rebill-web-components-sdk/p-84a8160a.entry.js.map +0 -1
  77. 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 = translatedError || translatedValidationError;
4105
- return (index.h("div", { key: '9bfb1a075b9ea338d062f260ca89e3036ad489ae', class: "input-container" }, index.h("div", { key: '60af8d6684ef5c3b576de699ba522ec0d8147bf0', class: inputClasses }, index.h("div", { key: 'f48255f3bb5fdea49bd3a6d8617939f89e111465', class: "input-combo-select country-selector", onClick: this.toggleDropdown }, index.h("span", { key: 'c824bbb3c4c14ad31f45aaf5414b4000f3364a18', class: "flag" }, this.selectedCountry.flag), index.h("span", { key: '0a1f614c791c4bd3490fb9b259d7aba5fb179210', class: "dial-code" }, this.selectedCountry.dialCode), index.h("span", { key: 'f9eb3ac4c2675afc7445dcfbc0cf0f0a70c8e721', class: `dropdown-arrow ${this.isDropdownOpen ? 'open' : ''}` }, "\u25BC")), this.isDropdownOpen && (index.h("div", { key: 'e0ef26d1fa03ccadf93955f4775f7e965f2e8988', class: "country-dropdown" }, this.searchable && (index.h("div", { key: '18bb6464cd28a58137cedbf62c5487f43daf62a8', class: "search-container", onClick: this.handleSearchClick }, index.h("div", { key: '844c66e1899ba58ce199fcb7f76a056629c8a887', class: "search-input-wrapper" }, index.h("rebill-icon", { key: '35d725f71c63307f2f62a528919723469c4584b7', name: "search", size: "16px", class: "search-icon" }), index.h("input", { key: '9b0abbc8b57424841a611dc76892979b7ae29955', 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: 'c9426b67a6121cfa453d43ffe1ca83a257303f86', type: "button", class: "clear-search", onClick: event => {
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: '0c6c770adc4587627336ad73d5740931d2fc35d7', 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: '7a1a13857f138578f13a8c3430f1f41afc115d96', 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: 'cb53860dcc25c54579ac45c7a785bb3e540b3c3a', class: "error-message" }, displayError)));
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;