@everymatrix/general-registration 1.10.1 → 1.10.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-input_11.cjs.entry.js +28186 -770
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-c04f4a2a.js → index-9a07d1e9.js} +5 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/general-registration/general-registration.js +299 -224
- package/dist/components/checkbox-input2.js +10 -5
- package/dist/components/date-input2.js +6493 -19
- package/dist/components/email-input2.js +7 -20
- package/dist/components/general-input2.js +11 -9
- package/dist/components/general-registration.js +299 -223
- package/dist/components/locale.utils.js +2 -1
- package/dist/components/number-input2.js +7 -20
- package/dist/components/password-input2.js +9 -1
- package/dist/components/radio-input2.js +3 -12
- package/dist/components/select-input2.js +16 -19
- package/dist/components/tel-input2.js +35 -21
- package/dist/components/text-input2.js +5 -4
- package/dist/components/vaadin-combo-box.js +4423 -0
- package/dist/components/virtual-keyboard-controller.js +16466 -0
- package/dist/esm/checkbox-input_11.entry.js +28193 -777
- package/dist/esm/general-registration.js +2 -2
- package/dist/esm/{index-79f297c1.js → index-0505440f.js} +5 -1
- package/dist/esm/loader.js +2 -2
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/p-1a88a312.js +1 -0
- package/dist/general-registration/p-7c69629f.entry.js +3164 -0
- package/dist/types/Users/{user/workspace/everymatrix → adrian.pripon/Documents/Work/stencil}/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +8 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +2 -0
- package/dist/types/components/general-registration/general-registration.d.ts +267 -11
- package/package.json +6 -4
- package/dist/general-registration/p-0e7175cd.js +0 -1
- package/dist/general-registration/p-cadaffbe.entry.js +0 -1
- package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +0 -2
- /package/dist/types/Users/{user/workspace/everymatrix → adrian.pripon/Documents/Work/stencil}/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/locale.utils.d.ts +0 -0
|
@@ -10,9 +10,13 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
12
12
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
13
|
+
/**
|
|
14
|
+
* Default value for the input.
|
|
15
|
+
*/
|
|
16
|
+
this.defaultValue = '';
|
|
17
|
+
this.value = '';
|
|
13
18
|
}
|
|
14
19
|
validityChanged() {
|
|
15
|
-
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
16
20
|
if (this.emitValue == true) {
|
|
17
21
|
this.valueHandler({ name: this.name, value: this.value });
|
|
18
22
|
}
|
|
@@ -28,13 +32,12 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
28
32
|
valueHandler(inputValueEvent) {
|
|
29
33
|
this.sendInputValue.emit(inputValueEvent);
|
|
30
34
|
}
|
|
31
|
-
connectedCallback() {
|
|
32
|
-
}
|
|
33
35
|
handleClick() {
|
|
34
|
-
this.value = this.inputReference.checked;
|
|
36
|
+
this.value = this.inputReference.checked.toString();
|
|
35
37
|
this.errorMessage = this.setErrorMessage();
|
|
36
38
|
this.isValid = this.setValidity();
|
|
37
39
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
40
|
+
this.emitValueHandler(true);
|
|
38
41
|
}
|
|
39
42
|
setValidity() {
|
|
40
43
|
return this.inputReference.validity.valid;
|
|
@@ -45,7 +48,7 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
render() {
|
|
48
|
-
return h("div", { class: 'checkbox__wrapper' }, h("input", { type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, required: this.validation.mandatory, value:
|
|
51
|
+
return h("div", { class: 'checkbox__wrapper' }, h("input", { type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: !!this.defaultValue, readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), h("label", { htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), h("small", { class: 'checkbox__error-message' }, this.errorMessage));
|
|
49
52
|
}
|
|
50
53
|
static get watchers() { return {
|
|
51
54
|
"isValid": ["validityChanged"],
|
|
@@ -55,6 +58,8 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
55
58
|
}, [1, "checkbox-input", {
|
|
56
59
|
"name": [1],
|
|
57
60
|
"displayName": [1, "display-name"],
|
|
61
|
+
"defaultValue": [1, "default-value"],
|
|
62
|
+
"autofilled": [4],
|
|
58
63
|
"validation": [16],
|
|
59
64
|
"language": [1],
|
|
60
65
|
"emitValue": [4, "emit-value"],
|