@everymatrix/general-input 1.65.1 → 1.65.3

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 (26) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +7 -4
  2. package/dist/cjs/general-input.cjs.entry.js +1308 -218
  3. package/dist/cjs/{locale.utils-ae578c17.js → locale.utils-f0ae0a97.js} +6 -0
  4. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +1 -1
  5. package/dist/collection/components/password-input/password-input.js +6 -3
  6. package/dist/collection/utils/locale.utils.js +6 -0
  7. package/dist/esm/checkbox-group-input_10.entry.js +7 -4
  8. package/dist/esm/general-input.entry.js +1308 -218
  9. package/dist/esm/{locale.utils-fc81f22a.js → locale.utils-14c3dac3.js} +6 -0
  10. package/dist/esm/toggle-checkbox-input.entry.js +1 -1
  11. package/dist/general-input/general-input.esm.js +1 -1
  12. package/dist/general-input/p-aa258411.js +1 -0
  13. package/dist/general-input/{p-2820ef34.entry.js → p-d60ab9f7.entry.js} +1298 -194
  14. package/dist/general-input/{p-5dc3b631.entry.js → p-e6ce8179.entry.js} +1 -1
  15. package/dist/general-input/{p-0a442cba.entry.js → p-eab6dd39.entry.js} +1 -1
  16. package/package.json +1 -1
  17. package/dist/general-input/p-80314011.js +0 -1
  18. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  19. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +0 -0
  20. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +0 -0
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/storybook/main.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/storybook/preview.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → raul.vasile/workspace/everymatrix}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bce82d29.js');
6
- const locale_utils = require('./locale.utils-ae578c17.js');
6
+ const locale_utils = require('./locale.utils-f0ae0a97.js');
7
7
  const tooltipIcon = require('./tooltipIcon-7e9ee226.js');
8
8
 
9
9
  const checkboxGroupInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:\"Roboto\";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}";
@@ -5939,7 +5939,7 @@ const PasswordInput = class {
5939
5939
  }
5940
5940
  }
5941
5941
  setErrorMessage() {
5942
- var _a, _b, _c, _d;
5942
+ var _a, _b, _c, _d, _e;
5943
5943
  if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
5944
5944
  return locale_utils.translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
5945
5945
  }
@@ -5959,6 +5959,9 @@ const PasswordInput = class {
5959
5959
  const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
5960
5960
  return locale_utils.translate(`${errorCode}`, this.language) ? locale_utils.translate(`${errorCode}`, this.language) : errorMessage;
5961
5961
  }
5962
+ if (!((_e = this.passwordComplexity) === null || _e === void 0 ? void 0 : _e.every(complexity => complexity.passed)) && !this.showPopup) {
5963
+ return locale_utils.translate('invalidPassword', this.language);
5964
+ }
5962
5965
  }
5963
5966
  renderTooltip() {
5964
5967
  if (this.showTooltip) {
@@ -5980,8 +5983,8 @@ const PasswordInput = class {
5980
5983
  if (this.touched) {
5981
5984
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
5982
5985
  }
5983
- return index.h("div", { key: '7df2b034611f7384a1eb4470e39ee580e0ae6ce5', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'fbf309a458ccfd7c7133b7f65fafc061ad7e5c37', class: 'password__wrapper--flex' }, index.h("label", { key: 'f15c05d6fa8690d6a120ab2ad56127665618cb94', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'd191b29e231685f0ceb7e42f9b1e9471450662bd', class: 'password__wrapper--relative' }, this.tooltip &&
5984
- index.h("img", { key: '23052474b109d273ba94e80cbd9d72986c373910', class: 'password__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: 'cfd7bb8bf495f77037f2a519701e609f18ce072f', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), index.h("small", { key: 'e8aa77d19ed2497659f784da065720be6fa64bfd', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
5986
+ return index.h("div", { key: 'd5757f6d03b0c3ad30b57b9c62d8cd7c8802a37a', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '7e7508731d7397b6c578335715c711ea97c46d3a', class: 'password__wrapper--flex' }, index.h("label", { key: 'ce4fd50f4f9ae7fb772df496784a3869e29618b6', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '640fa5664eede59b585bfd314854615cf4da46c1', class: 'password__wrapper--relative' }, this.tooltip &&
5987
+ index.h("img", { key: '0c0d0d71bf84c3ab6b0804424405ffacb1e87660', class: 'password__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: '4a966b226d6ec04fbebcad8cf12896bbc05b84fa', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), index.h("small", { key: '1218d65c065a0dcc1b17d1422e08849b9b3de5ce', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
5985
5988
  }
5986
5989
  get element() { return index.getElement(this); }
5987
5990
  static get watchers() { return {