@everymatrix/general-input-hsl 0.2.4 → 0.2.6

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 (25) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +6 -4
  2. package/dist/cjs/general-input-hsl-d0a63037.js +6224 -0
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/collection/components/date-input/date-input.js +5 -3
  5. package/dist/collection/utils/locale.utils.js +3 -1
  6. package/dist/esm/checkbox-group-input_13.entry.js +7 -5
  7. package/dist/esm/general-input-hsl-2cc3b207.js +6221 -0
  8. package/dist/esm/index.js +1 -1
  9. package/dist/general-input-hsl/checkbox-group-input_13.entry.js +1 -1
  10. package/dist/general-input-hsl/{general-input-hsl-6aa9ea0d.js → general-input-hsl-2cc3b207.js} +450 -2379
  11. package/dist/general-input-hsl/index.esm.js +1 -1
  12. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.d.ts +2 -0
  13. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.dev.d.ts +2 -0
  14. package/package.json +1 -1
  15. package/dist/cjs/general-input-hsl-8faa8062.js +0 -8129
  16. package/dist/esm/general-input-hsl-6aa9ea0d.js +0 -8126
  17. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.d.ts +0 -2
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.dev.d.ts +0 -2
  19. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  20. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/storybook/main.d.ts +0 -0
  21. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/storybook/preview.d.ts +0 -0
  22. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-input-hsl/.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-160616a9.js');
6
- const generalInputHsl = require('./general-input-hsl-8faa8062.js');
6
+ const generalInputHsl = require('./general-input-hsl-d0a63037.js');
7
7
 
8
8
  const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==';
9
9
 
@@ -5753,7 +5753,9 @@ const DateInput = class {
5753
5753
  return generalInputHsl.translate('dateError2', this.language);
5754
5754
  }
5755
5755
  if (!isMatch(this.formattedValue, this.dateFormat)) {
5756
- return generalInputHsl.translate('dateFormatError', this.language);
5756
+ const screenSize = window.screen.width;
5757
+ const isShowingKeyboard = screenSize > 450 && screenSize <= 550;
5758
+ return `${generalInputHsl.translate('dateFormatError', this.language)} ${isShowingKeyboard ? `(${generalInputHsl.translate('forExample', this.language)} ${this.placeholder})` : ''}`;
5757
5759
  }
5758
5760
  }
5759
5761
  renderTooltip() {
@@ -5767,8 +5769,8 @@ const DateInput = class {
5767
5769
  if (this.touched) {
5768
5770
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
5769
5771
  }
5770
- return index.h("div", { key: 'f2a2e6f7adf273e07934af51763f900f9051e5b1', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("label", { key: '70b360618031d48816fedf22d55119af01514de1', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { key: 'c463d260a39cde5ccb98dde604d74cdb8ebde287', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e) }), index.h("small", { key: 'cb7fb9acafcedfa80321f5f1d16b705ad00d8bdd', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
5771
- index.h("img", { key: '535e3a1875cd328c3dd5627672afdc4fd32b078c', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
5772
+ return index.h("div", { key: '301d146ebbab317532abcc4a6c89ee39701d209f', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("label", { key: '7d54ab1dd228b629b23c5a58aa9a8289c16f5da9', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { key: '47883cdb6b3391d39fb4e3dddeb2eb499ccd5f0f', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e) }), index.h("small", { key: '6f30b5737c42f11875ae834d2ef973c9bc6f6dd7', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
5773
+ index.h("img", { key: 'a0de5106dbfbb2f799963cfd5aa6692ae8f68532', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
5772
5774
  }
5773
5775
  get element() { return index.getElement(this); }
5774
5776
  static get watchers() { return {