@everymatrix/general-input 1.55.0 → 1.56.2
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_10.cjs.entry.js +11892 -11814
- package/dist/cjs/general-input.cjs.entry.js +1 -1
- package/dist/cjs/general-input.cjs.js +3 -3
- package/dist/cjs/{index-01420a64.js → index-bce82d29.js} +7 -41
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +10 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +9 -2
- package/dist/collection/components/checkbox-input/checkbox-input.js +9 -2
- package/dist/collection/components/date-input/date-input.js +9 -2
- package/dist/collection/components/email-input/email-input.js +9 -2
- package/dist/collection/components/number-input/number-input.js +9 -2
- package/dist/collection/components/password-input/password-input.js +9 -2
- package/dist/collection/components/radio-input/radio-input.js +9 -2
- package/dist/collection/components/select-input/select-input.js +9 -2
- package/dist/collection/components/tel-input/tel-input.js +9 -2
- package/dist/collection/components/text-input/text-input.js +9 -2
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +12 -2
- package/dist/esm/checkbox-group-input_10.entry.js +11892 -11814
- package/dist/esm/general-input.entry.js +1 -1
- package/dist/esm/general-input.js +4 -4
- package/dist/esm/{index-542cff81.js → index-34f25346.js} +7 -41
- package/dist/esm/loader.js +3 -3
- package/dist/esm/toggle-checkbox-input.entry.js +10 -3
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/p-063fdb7d.entry.js +4463 -0
- package/dist/general-input/{p-3cab3b95.entry.js → p-261db8d1.entry.js} +1 -1
- package/dist/general-input/p-8b2b0da7.js +2 -0
- package/dist/general-input/p-e2eb81ed.entry.js +1 -0
- package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +1 -0
- package/dist/types/components/checkbox-input/checkbox-input.d.ts +1 -0
- package/dist/types/components/date-input/date-input.d.ts +1 -0
- package/dist/types/components/email-input/email-input.d.ts +1 -0
- package/dist/types/components/number-input/number-input.d.ts +1 -0
- package/dist/types/components/password-input/password-input.d.ts +1 -0
- package/dist/types/components/radio-input/radio-input.d.ts +1 -0
- package/dist/types/components/select-input/select-input.d.ts +1 -0
- package/dist/types/components/tel-input/tel-input.d.ts +1 -0
- package/dist/types/components/text-input/text-input.d.ts +1 -0
- package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/general-input/p-3ce1e382.js +0 -2
- package/dist/general-input/p-e5532cb1.entry.js +0 -1
- package/dist/general-input/p-ff2306f9.entry.js +0 -5909
|
@@ -46,6 +46,10 @@ export class TelInput {
|
|
|
46
46
|
this.limitStylingAppends = false;
|
|
47
47
|
this.showTooltip = false;
|
|
48
48
|
}
|
|
49
|
+
handleStylingChange(newValue, oldValue) {
|
|
50
|
+
if (newValue !== oldValue)
|
|
51
|
+
this.setClientStyling();
|
|
52
|
+
}
|
|
49
53
|
validityChanged() {
|
|
50
54
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
51
55
|
if (this.emitValue == true) {
|
|
@@ -156,8 +160,8 @@ export class TelInput {
|
|
|
156
160
|
if (this.touched) {
|
|
157
161
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
158
162
|
}
|
|
159
|
-
return h("div", { key: '
|
|
160
|
-
h("img", { key: '
|
|
163
|
+
return h("div", { key: 'f0f70d8568ba083ee19f9e73e5921104f599e15f', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '8da9e1c2a6b3ca19caff07540f0218266de22bb2', class: 'tel__wrapper--flex-label' }, h("label", { key: 'd0d90bc96e3ea853f401bae9be3f033d4cfd9b17', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'fdf7929f51edcbea8568b35804b0d9e9a93a7249', class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
164
|
+
h("img", { key: '0fbc9b5e8c5feef727caa71ef07d4ae80007e04a', class: 'tel__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("div", { key: 'b4a11808a7ae5e5cddce47b51a51003bce3a84f8', class: `tel__wrapper--flex ${invalidClass}` }, h("vaadin-combo-box", { key: '2d81ff4c11e559f302a8446816f4aca0de2cfcef', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), h("input", { key: 'ab52185589bf4d52205bad4cecc9c7ecb54cd409', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), h("small", { key: '6d219de32297bc2fab31995b5a33b14f2eea21d9', class: 'tel__error-message' }, this.errorMessage));
|
|
161
165
|
}
|
|
162
166
|
static get is() { return "tel-input"; }
|
|
163
167
|
static get encapsulation() { return "shadow"; }
|
|
@@ -439,6 +443,9 @@ export class TelInput {
|
|
|
439
443
|
}
|
|
440
444
|
static get watchers() {
|
|
441
445
|
return [{
|
|
446
|
+
"propName": "clientStyling",
|
|
447
|
+
"methodName": "handleStylingChange"
|
|
448
|
+
}, {
|
|
442
449
|
"propName": "isValid",
|
|
443
450
|
"methodName": "validityChanged"
|
|
444
451
|
}, {
|
|
@@ -49,6 +49,10 @@ export class TextInput {
|
|
|
49
49
|
this.limitStylingAppends = false;
|
|
50
50
|
this.showTooltip = false;
|
|
51
51
|
}
|
|
52
|
+
handleStylingChange(newValue, oldValue) {
|
|
53
|
+
if (newValue !== oldValue)
|
|
54
|
+
this.setClientStyling();
|
|
55
|
+
}
|
|
52
56
|
validityChanged() {
|
|
53
57
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
54
58
|
if (this.emitValue == true) {
|
|
@@ -154,8 +158,8 @@ export class TextInput {
|
|
|
154
158
|
if (this.touched) {
|
|
155
159
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
156
160
|
}
|
|
157
|
-
return h("div", { key: '
|
|
158
|
-
h("img", { key: '
|
|
161
|
+
return h("div", { key: 'e297f841a57c6acf854535a786916aa641831556', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, h("div", { key: '7fd284a58e58d5c61a03caf4cc317b8dd9dbd82f', class: 'text__wrapper--flex' }, h("label", { key: 'f80a2003386ec867e5310190a7568105c2912569', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'e8f5197bd370100406d600be5a336f85f4c6934d', class: 'text__wrapper--relative' }, this.tooltip &&
|
|
162
|
+
h("img", { key: 'ff8c38fe3495a41a41ac4a1569169ce26a1ec9ce', class: 'text__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("input", { key: '581106e515810ab43f7d6b6eda504ccf23906b0e', name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), h("small", { key: '20620710026982d5fb670a3173bab57a7fa9e7ce', class: 'text__error-message' }, this.errorMessage));
|
|
159
163
|
}
|
|
160
164
|
static get is() { return "text-input"; }
|
|
161
165
|
static get encapsulation() { return "shadow"; }
|
|
@@ -438,6 +442,9 @@ export class TextInput {
|
|
|
438
442
|
}
|
|
439
443
|
static get watchers() {
|
|
440
444
|
return [{
|
|
445
|
+
"propName": "clientStyling",
|
|
446
|
+
"methodName": "handleStylingChange"
|
|
447
|
+
}, {
|
|
441
448
|
"propName": "isValid",
|
|
442
449
|
"methodName": "validityChanged"
|
|
443
450
|
}, {
|
|
@@ -25,6 +25,10 @@ export class ToggleCheckboxInput {
|
|
|
25
25
|
this.showTooltip = false;
|
|
26
26
|
this.showFields = this.defaultValue === 'true';
|
|
27
27
|
}
|
|
28
|
+
handleStylingChange(newValue, oldValue) {
|
|
29
|
+
if (newValue !== oldValue)
|
|
30
|
+
this.setClientStyling();
|
|
31
|
+
}
|
|
28
32
|
validityStateHandler(inputStateEvent) {
|
|
29
33
|
this.sendValidityState.emit(inputStateEvent);
|
|
30
34
|
}
|
|
@@ -70,8 +74,8 @@ export class ToggleCheckboxInput {
|
|
|
70
74
|
return null;
|
|
71
75
|
}
|
|
72
76
|
render() {
|
|
73
|
-
return h("div", { key: '
|
|
74
|
-
h("img", { key: '
|
|
77
|
+
return h("div", { key: 'e8be91ce94cf76ebecc58a433ab567ab549f4692', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: 'dd42a6316cda06e357843165329de7525a24e3d5', class: 'togglecheckbox__wrapper--flex' }, h("input", { key: '932a6f8caeafa0d006f636484e33dda246c314d0', 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: 'cbc789c8a5c21debc05971ff347371fbc25d4975', class: 'togglecheckbox__error-message' }, this.errorMessage), h("div", { key: 'a5ce470c985829eb1f5a0567bb974cc15e3d0d64', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
|
|
78
|
+
h("img", { key: 'faef05dd9341ffe44b6833ca8f4c86b85ed61956', class: 'togglecheckbox__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h("div", { key: '89fed5f103acecca78fa53eea64d57574ef42727', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
|
|
75
79
|
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 });
|
|
76
80
|
})));
|
|
77
81
|
}
|
|
@@ -325,6 +329,12 @@ export class ToggleCheckboxInput {
|
|
|
325
329
|
}
|
|
326
330
|
}];
|
|
327
331
|
}
|
|
332
|
+
static get watchers() {
|
|
333
|
+
return [{
|
|
334
|
+
"propName": "clientStyling",
|
|
335
|
+
"methodName": "handleStylingChange"
|
|
336
|
+
}];
|
|
337
|
+
}
|
|
328
338
|
static get listeners() {
|
|
329
339
|
return [{
|
|
330
340
|
"name": "click",
|