@everymatrix/general-registration 1.10.10 → 1.10.12
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 +342 -5342
- package/dist/cjs/general-registration.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/general-registration/general-registration.js +11 -8
- package/dist/components/checkbox-input2.js +23 -2
- package/dist/components/date-input2.js +20873 -3018
- package/dist/components/email-input2.js +23 -2
- package/dist/components/general-input2.js +31 -11
- package/dist/components/general-registration.js +9 -6
- package/dist/components/number-input2.js +23 -2
- package/dist/components/password-input2.js +24 -719
- package/dist/components/radio-input2.js +22 -3
- package/dist/components/select-input2.js +24 -4
- package/dist/components/tel-input2.js +24 -4
- package/dist/components/text-input2.js +23 -2
- package/dist/esm/checkbox-input_11.entry.js +342 -5342
- package/dist/esm/general-registration.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-fb5bf415.entry.js → p-3700b17b.entry.js} +99 -548
- package/dist/types/components/general-registration/general-registration.d.ts +2 -2
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/components/input-field-shared-styles.js +0 -13776
- package/dist/components/pattern-mixin.js +0 -84
- package/dist/components/vaadin-button.js +0 -1432
- package/dist/components/vaadin-combo-box.js +0 -4344
- package/dist/components/virtual-keyboard-controller.js +0 -2693
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["checkbox-input_11.cjs",[[1,"general-registration",{"endpoint":[1],"language":[1],"clientStyling":[
|
|
18
|
+
return index.bootstrapLazy([["checkbox-input_11.cjs",[[1,"general-registration",{"endpoint":[1],"language":[1],"clientStyling":[1025,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"errorMessage":[32],"emitValue":[32],"isFormValid":[32],"listOfInputs":[32],"isLoading":[32],"limitStylingAppends":[32],"registrationStep":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[1],"name":[1],"displayName":[1,"display-name"],"action":[1],"validation":[16],"options":[8],"language":[1],"autofilled":[4],"defaultValue":[8,"default-value"],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"limitStylingAppends":[32]}],[1,"checkbox-input",{"name":[1],"displayName":[1,"display-name"],"defaultValue":[1,"default-value"],"autofilled":[4],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"date-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"email-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"password-input",{"name":[1],"displayName":[1,"display-name"],"defaultValue":[1,"default-value"],"autofilled":[4],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]],[1,"radio-input",{"name":[1],"displayName":[1,"display-name"],"optionsGroup":[16],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"select-input",{"name":[1],"displayName":[1,"display-name"],"action":[1],"defaultValue":[1,"default-value"],"autofilled":[4],"options":[16],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"tel-input",{"name":[1],"displayName":[1,"display-name"],"showLabels":[4,"show-labels"],"action":[1],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]}],[1,"text-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"rules":[1],"language":[1],"checkValidity":[4,"check-validity"],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["checkbox-input_11.cjs",[[1,"general-registration",{"endpoint":[1],"language":[1],"clientStyling":[
|
|
17
|
+
return index.bootstrapLazy([["checkbox-input_11.cjs",[[1,"general-registration",{"endpoint":[1],"language":[1],"clientStyling":[1025,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"errorMessage":[32],"emitValue":[32],"isFormValid":[32],"listOfInputs":[32],"isLoading":[32],"limitStylingAppends":[32],"registrationStep":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[1],"name":[1],"displayName":[1,"display-name"],"action":[1],"validation":[16],"options":[8],"language":[1],"autofilled":[4],"defaultValue":[8,"default-value"],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"limitStylingAppends":[32]}],[1,"checkbox-input",{"name":[1],"displayName":[1,"display-name"],"defaultValue":[1,"default-value"],"autofilled":[4],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"date-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"email-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"password-input",{"name":[1],"displayName":[1,"display-name"],"defaultValue":[1,"default-value"],"autofilled":[4],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]],[1,"radio-input",{"name":[1],"displayName":[1,"display-name"],"optionsGroup":[16],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"select-input",{"name":[1],"displayName":[1,"display-name"],"action":[1],"defaultValue":[1,"default-value"],"autofilled":[4],"options":[16],"validation":[16],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"tel-input",{"name":[1],"displayName":[1,"display-name"],"showLabels":[4,"show-labels"],"action":[1],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"language":[1],"emitValue":[4,"emit-value"],"clientStyling":[1,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]}],[1,"text-input",{"name":[1],"displayName":[1,"display-name"],"validation":[16],"defaultValue":[1,"default-value"],"autofilled":[4],"rules":[1],"language":[1],"checkValidity":[4,"check-validity"],"emitValue":[4,"emit-value"],"isDuplicateInput":[4,"is-duplicate-input"],"clientStyling":[1,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -8,11 +8,11 @@ export class GeneralRegistration {
|
|
|
8
8
|
*/
|
|
9
9
|
this.language = 'en';
|
|
10
10
|
/**
|
|
11
|
-
* Client custom styling via
|
|
11
|
+
* Client custom styling via inline styles
|
|
12
12
|
*/
|
|
13
13
|
this.clientStyling = '';
|
|
14
14
|
/**
|
|
15
|
-
* Client custom styling via url
|
|
15
|
+
* Client custom styling via url
|
|
16
16
|
*/
|
|
17
17
|
this.clientStylingUrl = '';
|
|
18
18
|
this.emitValue = false;
|
|
@@ -37,6 +37,7 @@ export class GeneralRegistration {
|
|
|
37
37
|
.then((res) => res.text())
|
|
38
38
|
.then((data) => {
|
|
39
39
|
cssFile.innerHTML = data;
|
|
40
|
+
this.clientStyling = data;
|
|
40
41
|
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
41
42
|
});
|
|
42
43
|
};
|
|
@@ -67,8 +68,10 @@ export class GeneralRegistration {
|
|
|
67
68
|
}
|
|
68
69
|
componentDidRender() {
|
|
69
70
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
70
|
-
this.
|
|
71
|
-
|
|
71
|
+
if (this.clientStyling)
|
|
72
|
+
this.setClientStyling();
|
|
73
|
+
if (this.clientStylingUrl)
|
|
74
|
+
this.setClientStylingURL();
|
|
72
75
|
this.limitStylingAppends = true;
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -297,7 +300,7 @@ export class GeneralRegistration {
|
|
|
297
300
|
return listOfInputs.filter(input => input.isValid == false).length > 0;
|
|
298
301
|
}
|
|
299
302
|
renderInputs() {
|
|
300
|
-
return (this.listOfInputs.map(input => h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data ? input.data.values : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput })));
|
|
303
|
+
return (this.listOfInputs.map(input => h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data ? input.data.values : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling })));
|
|
301
304
|
}
|
|
302
305
|
;
|
|
303
306
|
renderButtons() {
|
|
@@ -359,7 +362,7 @@ export class GeneralRegistration {
|
|
|
359
362
|
},
|
|
360
363
|
"clientStyling": {
|
|
361
364
|
"type": "string",
|
|
362
|
-
"mutable":
|
|
365
|
+
"mutable": true,
|
|
363
366
|
"complexType": {
|
|
364
367
|
"original": "string",
|
|
365
368
|
"resolved": "string",
|
|
@@ -369,7 +372,7 @@ export class GeneralRegistration {
|
|
|
369
372
|
"optional": false,
|
|
370
373
|
"docs": {
|
|
371
374
|
"tags": [],
|
|
372
|
-
"text": "Client custom styling via
|
|
375
|
+
"text": "Client custom styling via inline styles"
|
|
373
376
|
},
|
|
374
377
|
"attribute": "client-styling",
|
|
375
378
|
"reflect": false,
|
|
@@ -387,7 +390,7 @@ export class GeneralRegistration {
|
|
|
387
390
|
"optional": false,
|
|
388
391
|
"docs": {
|
|
389
392
|
"tags": [],
|
|
390
|
-
"text": "Client custom styling via url
|
|
393
|
+
"text": "Client custom styling via url"
|
|
391
394
|
},
|
|
392
395
|
"attribute": "client-styling-url",
|
|
393
396
|
"reflect": false,
|
|
@@ -14,7 +14,17 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
14
14
|
* Default value for the input.
|
|
15
15
|
*/
|
|
16
16
|
this.defaultValue = '';
|
|
17
|
+
/**
|
|
18
|
+
* Client custom styling via inline style
|
|
19
|
+
*/
|
|
20
|
+
this.clientStyling = '';
|
|
21
|
+
this.limitStylingAppends = false;
|
|
17
22
|
this.value = '';
|
|
23
|
+
this.setClientStyling = () => {
|
|
24
|
+
let sheet = document.createElement('style');
|
|
25
|
+
sheet.innerHTML = this.clientStyling;
|
|
26
|
+
this.stylingContainer.prepend(sheet);
|
|
27
|
+
};
|
|
18
28
|
}
|
|
19
29
|
validityChanged() {
|
|
20
30
|
if (this.emitValue == true) {
|
|
@@ -32,6 +42,15 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
32
42
|
valueHandler(inputValueEvent) {
|
|
33
43
|
this.sendInputValue.emit(inputValueEvent);
|
|
34
44
|
}
|
|
45
|
+
componentDidRender() {
|
|
46
|
+
// start custom styling area
|
|
47
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
48
|
+
if (this.clientStyling)
|
|
49
|
+
this.setClientStyling();
|
|
50
|
+
this.limitStylingAppends = true;
|
|
51
|
+
}
|
|
52
|
+
// end custom styling area
|
|
53
|
+
}
|
|
35
54
|
componentDidLoad() {
|
|
36
55
|
if (this.defaultValue) {
|
|
37
56
|
this.value = this.defaultValue;
|
|
@@ -54,7 +73,7 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
54
73
|
}
|
|
55
74
|
}
|
|
56
75
|
render() {
|
|
57
|
-
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", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), h("small", { class: 'checkbox__error-message' }, this.errorMessage));
|
|
76
|
+
return h("div", { class: 'checkbox__wrapper', ref: el => this.stylingContainer = el }, 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", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), h("small", { class: 'checkbox__error-message' }, this.errorMessage));
|
|
58
77
|
}
|
|
59
78
|
static get watchers() { return {
|
|
60
79
|
"isValid": ["validityChanged"],
|
|
@@ -69,8 +88,10 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
69
88
|
"validation": [16],
|
|
70
89
|
"language": [1],
|
|
71
90
|
"emitValue": [4, "emit-value"],
|
|
91
|
+
"clientStyling": [1, "client-styling"],
|
|
72
92
|
"errorMessage": [32],
|
|
73
|
-
"isValid": [32]
|
|
93
|
+
"isValid": [32],
|
|
94
|
+
"limitStylingAppends": [32]
|
|
74
95
|
}]);
|
|
75
96
|
function defineCustomElement() {
|
|
76
97
|
if (typeof customElements === "undefined") {
|