@everymatrix/general-input 1.76.0 → 1.76.1

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 (33) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +491 -2398
  2. package/dist/cjs/general-input.cjs.js +2 -2
  3. package/dist/cjs/{index-9179e91b.js → index-3b546c2c.js} +2 -2
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +7 -7
  6. package/dist/collection/components/checkbox-input/checkbox-input.js +6 -6
  7. package/dist/collection/components/date-input/date-input.js +8 -8
  8. package/dist/collection/components/email-input/email-input.js +7 -7
  9. package/dist/collection/components/number-input/number-input.js +7 -7
  10. package/dist/collection/components/password-input/password-input.js +7 -7
  11. package/dist/collection/components/radio-input/radio-input.js +7 -7
  12. package/dist/collection/components/select-input/select-input.js +10 -10
  13. package/dist/collection/components/tel-input/tel-input.js +7 -7
  14. package/dist/collection/components/text-input/text-input.js +7 -7
  15. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +7 -7
  16. package/dist/collection/components/twofa-input/twofa-input.js +7 -7
  17. package/dist/esm/checkbox-group-input_13.entry.js +491 -2398
  18. package/dist/esm/general-input.js +3 -3
  19. package/dist/esm/{index-ed8fc8f4.js → index-ca174b7a.js} +2 -2
  20. package/dist/esm/loader.js +3 -3
  21. package/dist/general-input/checkbox-group-input_13.entry.js +449 -2378
  22. package/dist/general-input/general-input.esm.js +1 -1
  23. package/dist/general-input/{index-ed8fc8f4.js → index-ca174b7a.js} +1 -1
  24. package/package.json +1 -1
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +0 -0
  27. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +0 -0
  28. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/storybook/main.d.ts +0 -0
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/storybook/preview.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/index.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  33. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -42,10 +42,10 @@ export class ToggleCheckboxInput {
42
42
  this.sendInputValue.emit(inputValueEvent);
43
43
  }
44
44
  handleClickOutside(event) {
45
- if (event.composedPath()[0] === this.tooltipIconReference)
46
- return;
47
- if (event.composedPath()[0] !== this.tooltipReference)
45
+ const path = event.composedPath();
46
+ if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
48
47
  this.showTooltip = false;
48
+ }
49
49
  }
50
50
  componentDidRender() {
51
51
  // start custom styling area
@@ -93,8 +93,8 @@ export class ToggleCheckboxInput {
93
93
  return null;
94
94
  }
95
95
  render() {
96
- return h("div", { key: '6315588766319c4ac7a88646b01bc577858ad718', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '20d6999aaf0499b8b840a28dab89242953b4610d', class: 'togglecheckbox__wrapper--flex' }, h("input", { key: '73b699abf4904e4f2133e30d8dea250c9fe13ac3', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), h("small", { key: '4d10247f1dae300d0f5133accdd544a90fa4d5a7', class: 'togglecheckbox__error-message' }, this.errorMessage), h("div", { key: '9c95cef35e58875b96710d3b64b9af1be27204c5', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
97
- h("img", { key: '9774edae6bad4715fd20798a7be25eb71c3c4cf0', class: 'togglecheckbox__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h("div", { key: '70ad3ec894a32439e2dcea617e2a5b773c5456b1', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
96
+ return h("div", { key: '355926a9da2977c88b7ae205ddd6468d1a86e2d2', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '3bbf491f4fdf22800ad091de584bcac3c2018308', class: 'togglecheckbox__wrapper--flex' }, h("input", { key: '14654df4ce258c95c7bc23ffd2420c5f0d5eb65e', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), h("small", { key: 'db4624ed73f644db0a8f0b92738497fca64ea035', class: 'togglecheckbox__error-message' }, this.errorMessage), h("div", { key: '898d353c570f9ce19c758585f721f6cb50c35fb0', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
97
+ h("img", { key: '1007896417922d0e2bcaaf4c65a5f362e5e3bb49', class: 'togglecheckbox__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h("div", { key: '260480a129168c8868ae0539ba9f9edbec35f87b', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
98
98
  return h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder, ref: el => this.subFieldsObject[subfield.name] = el });
99
99
  })));
100
100
  }
@@ -358,8 +358,8 @@ export class ToggleCheckboxInput {
358
358
  return [{
359
359
  "name": "click",
360
360
  "method": "handleClickOutside",
361
- "target": "document",
362
- "capture": false,
361
+ "target": "window",
362
+ "capture": true,
363
363
  "passive": false
364
364
  }];
365
365
  }
@@ -109,10 +109,10 @@ export class TwofaInput {
109
109
  this.sendInputValue.emit(inputValueEvent);
110
110
  }
111
111
  handleClickOutside(event) {
112
- if (event.composedPath()[0] === this.tooltipIconReference)
113
- return;
114
- if (event.composedPath()[0] !== this.tooltipReference)
112
+ const path = event.composedPath();
113
+ if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
115
114
  this.showTooltip = false;
115
+ }
116
116
  }
117
117
  connectedCallback() {
118
118
  this.validationPattern = this.setPattern();
@@ -195,9 +195,9 @@ export class TwofaInput {
195
195
  return null;
196
196
  }
197
197
  render() {
198
- return (h("div", { key: '97c1955fececc6f3998375f4c8176ceaed66856a', class: "twofa" }, h("div", { key: 'ee2243931d8e5c6a5aadf1e78d1851449806d2b2', class: 'twofa__error-message' }, h("p", { key: '20a8ccad2e6501c73e3672f6ae325f8539e2d21a' }, this.errorMessage)), h("div", { key: 'bb33610a8be04b86378026c02099620749b81a4b', class: "twofa__description", innerHTML: translate('twofaDescription', this.language, { values: { destination: this.destination } }) }), h("div", { key: 'af3ea38ed6468eb2de66aed810ba50a850bf21a9', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((char, idx) => {
198
+ return (h("div", { key: '0f7d2f80e6335fcb08b1c61f6e52f51205a30092', class: "twofa" }, h("div", { key: 'd23240ccceb2ac4af5c5a2a1800eccd6013271e3', class: 'twofa__error-message' }, h("p", { key: '72fafd1608f5ae7402be900800100a141fefb72a' }, this.errorMessage)), h("div", { key: '98f5a5614fb895672a175d0415f66b5849b82f85', class: "twofa__description", innerHTML: translate('twofaDescription', this.language, { values: { destination: this.destination } }) }), h("div", { key: '5fd4f8999dc44e372369f03223d53c1d56a1eab4', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((char, idx) => {
199
199
  return (h("input", { key: idx, ref: el => this.setInputRef(el, idx), id: `otp-input-${idx}`, type: "text", maxLength: 2, value: char, onInput: (event) => this.handleInput(event, idx), onKeyDown: (event) => this.handleKeyDown(event, idx), onPaste: (event) => this.handlePaste(event) }));
200
- })), h("div", { key: 'f385bd6dc93896d918a5cc1365b59bedd47d5bb0', class: "twofa__button-wrapper" }, h("p", { key: '3623f0391e0e5923cd6b3bfd74d203905486209f', class: "twofa__resend-message" }, translate('twofaResendMessage', this.language)), h("button", { key: '497660604f87dbf4ce1ce51ecd041e82ab5dd33a', class: "twofa__resend-button", onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable }, this.isResendButtonAvailable
200
+ })), h("div", { key: 'b6e5b2ba4e10cbbd092aaef4d13e0f6a640b3c29', class: "twofa__button-wrapper" }, h("p", { key: 'eba4ae1393d89db6729cfff7d5bc4eb5a4ab0b43', class: "twofa__resend-message" }, translate('twofaResendMessage', this.language)), h("button", { key: '58069e9cb76ecf1776f0733a9f8bc20387e71ad3', class: "twofa__resend-button", onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable }, this.isResendButtonAvailable
201
201
  ? translate('twofaResendButton', this.language)
202
202
  : this.formatTime()))));
203
203
  }
@@ -487,8 +487,8 @@ export class TwofaInput {
487
487
  return [{
488
488
  "name": "click",
489
489
  "method": "handleClickOutside",
490
- "target": "document",
491
- "capture": false,
490
+ "target": "window",
491
+ "capture": true,
492
492
  "passive": false
493
493
  }];
494
494
  }