@everymatrix/general-input 1.76.0 → 1.76.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.
- package/dist/cjs/checkbox-group-input_13.cjs.entry.js +491 -2398
- package/dist/cjs/general-input.cjs.js +2 -2
- package/dist/cjs/{index-9179e91b.js → index-3b546c2c.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +7 -7
- package/dist/collection/components/checkbox-input/checkbox-input.js +6 -6
- package/dist/collection/components/date-input/date-input.js +8 -8
- package/dist/collection/components/email-input/email-input.js +7 -7
- package/dist/collection/components/number-input/number-input.js +7 -7
- package/dist/collection/components/password-input/password-input.js +7 -7
- package/dist/collection/components/radio-input/radio-input.js +7 -7
- package/dist/collection/components/select-input/select-input.js +10 -10
- package/dist/collection/components/tel-input/tel-input.js +7 -7
- package/dist/collection/components/text-input/text-input.js +7 -7
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +7 -7
- package/dist/collection/components/twofa-input/twofa-input.js +7 -7
- package/dist/esm/checkbox-group-input_13.entry.js +491 -2398
- package/dist/esm/general-input.js +3 -3
- package/dist/esm/{index-ed8fc8f4.js → index-ca174b7a.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/general-input/checkbox-group-input_13.entry.js +445 -2374
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/{index-ed8fc8f4.js → index-ca174b7a.js} +1 -1
- package/package.json +1 -1
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/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
|
-
|
|
46
|
-
|
|
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: '
|
|
97
|
-
h("img", { key: '
|
|
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": "
|
|
362
|
-
"capture":
|
|
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
|
-
|
|
113
|
-
|
|
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: '
|
|
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: '
|
|
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": "
|
|
491
|
-
"capture":
|
|
490
|
+
"target": "window",
|
|
491
|
+
"capture": true,
|
|
492
492
|
"passive": false
|
|
493
493
|
}];
|
|
494
494
|
}
|