@everymatrix/general-registration 1.10.11 → 1.10.13
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 +211 -22
- 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 +7 -6
- package/dist/components/checkbox-input2.js +23 -2
- package/dist/components/date-input2.js +23 -2
- package/dist/components/email-input2.js +23 -2
- package/dist/components/general-input2.js +31 -10
- package/dist/components/general-registration.js +5 -4
- package/dist/components/number-input2.js +23 -2
- package/dist/components/password-input2.js +23 -2
- package/dist/components/radio-input2.js +22 -3
- package/dist/components/select-input2.js +23 -2
- package/dist/components/tel-input2.js +23 -2
- package/dist/components/text-input2.js +23 -2
- package/dist/esm/checkbox-input_11.entry.js +211 -22
- 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-b5f7ebdd.entry.js → p-c7e0b72f.entry.js} +16 -16
- 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
|
@@ -44,7 +44,17 @@ const CheckboxInput = class {
|
|
|
44
44
|
* Default value for the input.
|
|
45
45
|
*/
|
|
46
46
|
this.defaultValue = '';
|
|
47
|
+
/**
|
|
48
|
+
* Client custom styling via inline style
|
|
49
|
+
*/
|
|
50
|
+
this.clientStyling = '';
|
|
51
|
+
this.limitStylingAppends = false;
|
|
47
52
|
this.value = '';
|
|
53
|
+
this.setClientStyling = () => {
|
|
54
|
+
let sheet = document.createElement('style');
|
|
55
|
+
sheet.innerHTML = this.clientStyling;
|
|
56
|
+
this.stylingContainer.prepend(sheet);
|
|
57
|
+
};
|
|
48
58
|
}
|
|
49
59
|
validityChanged() {
|
|
50
60
|
if (this.emitValue == true) {
|
|
@@ -62,6 +72,15 @@ const CheckboxInput = class {
|
|
|
62
72
|
valueHandler(inputValueEvent) {
|
|
63
73
|
this.sendInputValue.emit(inputValueEvent);
|
|
64
74
|
}
|
|
75
|
+
componentDidRender() {
|
|
76
|
+
// start custom styling area
|
|
77
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
78
|
+
if (this.clientStyling)
|
|
79
|
+
this.setClientStyling();
|
|
80
|
+
this.limitStylingAppends = true;
|
|
81
|
+
}
|
|
82
|
+
// end custom styling area
|
|
83
|
+
}
|
|
65
84
|
componentDidLoad() {
|
|
66
85
|
if (this.defaultValue) {
|
|
67
86
|
this.value = this.defaultValue;
|
|
@@ -84,7 +103,7 @@ const CheckboxInput = class {
|
|
|
84
103
|
}
|
|
85
104
|
}
|
|
86
105
|
render() {
|
|
87
|
-
return index.h("div", { class: 'checkbox__wrapper' }, index.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() }), index.h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("small", { class: 'checkbox__error-message' }, this.errorMessage));
|
|
106
|
+
return index.h("div", { class: 'checkbox__wrapper', ref: el => this.stylingContainer = el }, index.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() }), index.h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("small", { class: 'checkbox__error-message' }, this.errorMessage));
|
|
88
107
|
}
|
|
89
108
|
static get watchers() { return {
|
|
90
109
|
"isValid": ["validityChanged"],
|
|
@@ -23042,6 +23061,16 @@ const DateInput = class {
|
|
|
23042
23061
|
index.registerInstance(this, hostRef);
|
|
23043
23062
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
23044
23063
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
23064
|
+
/**
|
|
23065
|
+
* Client custom styling via inline style
|
|
23066
|
+
*/
|
|
23067
|
+
this.clientStyling = '';
|
|
23068
|
+
this.limitStylingAppends = false;
|
|
23069
|
+
this.setClientStyling = () => {
|
|
23070
|
+
let sheet = document.createElement('style');
|
|
23071
|
+
sheet.innerHTML = this.clientStyling;
|
|
23072
|
+
this.stylingContainer.prepend(sheet);
|
|
23073
|
+
};
|
|
23045
23074
|
}
|
|
23046
23075
|
validityChanged() {
|
|
23047
23076
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -23060,6 +23089,15 @@ const DateInput = class {
|
|
|
23060
23089
|
valueHandler(inputValueEvent) {
|
|
23061
23090
|
this.sendInputValue.emit(inputValueEvent);
|
|
23062
23091
|
}
|
|
23092
|
+
componentDidRender() {
|
|
23093
|
+
// start custom styling area
|
|
23094
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
23095
|
+
if (this.clientStyling)
|
|
23096
|
+
this.setClientStyling();
|
|
23097
|
+
this.limitStylingAppends = true;
|
|
23098
|
+
}
|
|
23099
|
+
// end custom styling area
|
|
23100
|
+
}
|
|
23063
23101
|
componentDidLoad() {
|
|
23064
23102
|
this.inputReference = this.element.shadowRoot.querySelector('input');
|
|
23065
23103
|
if (this.defaultValue) {
|
|
@@ -23087,7 +23125,7 @@ const DateInput = class {
|
|
|
23087
23125
|
}
|
|
23088
23126
|
render() {
|
|
23089
23127
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'date__input--invalid';
|
|
23090
|
-
return index.h("div", { class: 'date__wrapper' }, index.h("label", { class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'date__error-message' }, this.errorMessage));
|
|
23128
|
+
return index.h("div", { class: 'date__wrapper', ref: el => this.stylingContainer = el }, index.h("label", { class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'date__error-message' }, this.errorMessage));
|
|
23091
23129
|
}
|
|
23092
23130
|
get element() { return index.getElement(this); }
|
|
23093
23131
|
static get watchers() { return {
|
|
@@ -23104,7 +23142,17 @@ const EmailInput = class {
|
|
|
23104
23142
|
index.registerInstance(this, hostRef);
|
|
23105
23143
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
23106
23144
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
23145
|
+
/**
|
|
23146
|
+
* Client custom styling via inline style
|
|
23147
|
+
*/
|
|
23148
|
+
this.clientStyling = '';
|
|
23149
|
+
this.limitStylingAppends = false;
|
|
23107
23150
|
this.validationPattern = '';
|
|
23151
|
+
this.setClientStyling = () => {
|
|
23152
|
+
let sheet = document.createElement('style');
|
|
23153
|
+
sheet.innerHTML = this.clientStyling;
|
|
23154
|
+
this.stylingContainer.prepend(sheet);
|
|
23155
|
+
};
|
|
23108
23156
|
}
|
|
23109
23157
|
validityChanged() {
|
|
23110
23158
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -23133,6 +23181,15 @@ const EmailInput = class {
|
|
|
23133
23181
|
connectedCallback() {
|
|
23134
23182
|
this.validationPattern = this.setPattern();
|
|
23135
23183
|
}
|
|
23184
|
+
componentDidRender() {
|
|
23185
|
+
// start custom styling area
|
|
23186
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
23187
|
+
if (this.clientStyling)
|
|
23188
|
+
this.setClientStyling();
|
|
23189
|
+
this.limitStylingAppends = true;
|
|
23190
|
+
}
|
|
23191
|
+
// end custom styling area
|
|
23192
|
+
}
|
|
23136
23193
|
componentDidLoad() {
|
|
23137
23194
|
if (this.defaultValue) {
|
|
23138
23195
|
this.value = this.defaultValue;
|
|
@@ -23172,7 +23229,7 @@ const EmailInput = class {
|
|
|
23172
23229
|
}
|
|
23173
23230
|
render() {
|
|
23174
23231
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'email__input--invalid';
|
|
23175
|
-
return index.h("div", { class: 'email__wrapper' }, index.h("input", { id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => this.handleInput(e) }), index.h("label", { class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'email__error-message' }, this.errorMessage));
|
|
23232
|
+
return index.h("div", { class: 'email__wrapper', ref: el => this.stylingContainer = el }, index.h("input", { id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => this.handleInput(e) }), index.h("label", { class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'email__error-message' }, this.errorMessage));
|
|
23176
23233
|
}
|
|
23177
23234
|
static get watchers() { return {
|
|
23178
23235
|
"isValid": ["validityChanged"],
|
|
@@ -23190,27 +23247,46 @@ const GeneralInput = class {
|
|
|
23190
23247
|
* Type the general-input should take. Can take the default HTML input values.
|
|
23191
23248
|
*/
|
|
23192
23249
|
this.type = 'text';
|
|
23250
|
+
/**
|
|
23251
|
+
* Client custom styling via inline style
|
|
23252
|
+
*/
|
|
23253
|
+
this.clientStyling = '';
|
|
23254
|
+
this.limitStylingAppends = false;
|
|
23255
|
+
this.setClientStyling = () => {
|
|
23256
|
+
let sheet = document.createElement('style');
|
|
23257
|
+
sheet.innerHTML = this.clientStyling;
|
|
23258
|
+
this.stylingContainer.prepend(sheet);
|
|
23259
|
+
};
|
|
23260
|
+
}
|
|
23261
|
+
componentDidRender() {
|
|
23262
|
+
// start custom styling area
|
|
23263
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
23264
|
+
if (this.clientStyling)
|
|
23265
|
+
this.setClientStyling();
|
|
23266
|
+
this.limitStylingAppends = true;
|
|
23267
|
+
}
|
|
23268
|
+
// end custom styling area
|
|
23193
23269
|
}
|
|
23194
23270
|
render() {
|
|
23195
23271
|
switch (this.type.toLowerCase()) {
|
|
23196
23272
|
case 'text':
|
|
23197
|
-
return index.h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput });
|
|
23273
|
+
return index.h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling });
|
|
23198
23274
|
case 'email':
|
|
23199
|
-
return index.h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput });
|
|
23275
|
+
return index.h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling });
|
|
23200
23276
|
case 'number':
|
|
23201
|
-
return index.h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
|
|
23277
|
+
return index.h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
23202
23278
|
case 'checkbox':
|
|
23203
|
-
return index.h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language });
|
|
23279
|
+
return index.h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling });
|
|
23204
23280
|
case 'datetime':
|
|
23205
|
-
return index.h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
|
|
23281
|
+
return index.h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
23206
23282
|
case 'password':
|
|
23207
|
-
return index.h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput });
|
|
23283
|
+
return index.h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling });
|
|
23208
23284
|
case 'radio':
|
|
23209
|
-
return index.h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language });
|
|
23285
|
+
return index.h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
23210
23286
|
case 'tel':
|
|
23211
|
-
return index.h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled });
|
|
23287
|
+
return index.h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling });
|
|
23212
23288
|
case 'dropdown':
|
|
23213
|
-
return index.h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language });
|
|
23289
|
+
return index.h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling });
|
|
23214
23290
|
default:
|
|
23215
23291
|
return index.h("p", null, "The ", this.type, " input type is not valid");
|
|
23216
23292
|
}
|
|
@@ -23259,11 +23335,11 @@ const GeneralRegistration = class {
|
|
|
23259
23335
|
*/
|
|
23260
23336
|
this.language = 'en';
|
|
23261
23337
|
/**
|
|
23262
|
-
* Client custom styling via
|
|
23338
|
+
* Client custom styling via inline styles
|
|
23263
23339
|
*/
|
|
23264
23340
|
this.clientStyling = '';
|
|
23265
23341
|
/**
|
|
23266
|
-
* Client custom styling via url
|
|
23342
|
+
* Client custom styling via url
|
|
23267
23343
|
*/
|
|
23268
23344
|
this.clientStylingUrl = '';
|
|
23269
23345
|
this.emitValue = false;
|
|
@@ -23288,6 +23364,7 @@ const GeneralRegistration = class {
|
|
|
23288
23364
|
.then((res) => res.text())
|
|
23289
23365
|
.then((data) => {
|
|
23290
23366
|
cssFile.innerHTML = data;
|
|
23367
|
+
this.clientStyling = data;
|
|
23291
23368
|
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
23292
23369
|
});
|
|
23293
23370
|
};
|
|
@@ -23550,7 +23627,7 @@ const GeneralRegistration = class {
|
|
|
23550
23627
|
return listOfInputs.filter(input => input.isValid == false).length > 0;
|
|
23551
23628
|
}
|
|
23552
23629
|
renderInputs() {
|
|
23553
|
-
return (this.listOfInputs.map(input => index.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 })));
|
|
23630
|
+
return (this.listOfInputs.map(input => index.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 })));
|
|
23554
23631
|
}
|
|
23555
23632
|
;
|
|
23556
23633
|
renderButtons() {
|
|
@@ -23575,6 +23652,16 @@ const NumberInput = class {
|
|
|
23575
23652
|
index.registerInstance(this, hostRef);
|
|
23576
23653
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
23577
23654
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
23655
|
+
/**
|
|
23656
|
+
* Client custom styling via inline style
|
|
23657
|
+
*/
|
|
23658
|
+
this.clientStyling = '';
|
|
23659
|
+
this.limitStylingAppends = false;
|
|
23660
|
+
this.setClientStyling = () => {
|
|
23661
|
+
let sheet = document.createElement('style');
|
|
23662
|
+
sheet.innerHTML = this.clientStyling;
|
|
23663
|
+
this.stylingContainer.prepend(sheet);
|
|
23664
|
+
};
|
|
23578
23665
|
}
|
|
23579
23666
|
validityChanged() {
|
|
23580
23667
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -23593,6 +23680,15 @@ const NumberInput = class {
|
|
|
23593
23680
|
valueHandler(inputValueEvent) {
|
|
23594
23681
|
this.sendInputValue.emit(inputValueEvent);
|
|
23595
23682
|
}
|
|
23683
|
+
componentDidRender() {
|
|
23684
|
+
// start custom styling area
|
|
23685
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
23686
|
+
if (this.clientStyling)
|
|
23687
|
+
this.setClientStyling();
|
|
23688
|
+
this.limitStylingAppends = true;
|
|
23689
|
+
}
|
|
23690
|
+
// end custom styling area
|
|
23691
|
+
}
|
|
23596
23692
|
componentDidLoad() {
|
|
23597
23693
|
if (this.defaultValue) {
|
|
23598
23694
|
this.value = this.defaultValue;
|
|
@@ -23619,7 +23715,7 @@ const NumberInput = class {
|
|
|
23619
23715
|
}
|
|
23620
23716
|
render() {
|
|
23621
23717
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'number__input--invalid';
|
|
23622
|
-
return index.h("div", { class: 'number__wrapper' }, index.h("input", { ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("label", { class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'number__error-message' }, this.errorMessage));
|
|
23718
|
+
return index.h("div", { class: 'number__wrapper', ref: el => this.stylingContainer = el }, index.h("input", { ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("label", { class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'number__error-message' }, this.errorMessage));
|
|
23623
23719
|
}
|
|
23624
23720
|
static get watchers() { return {
|
|
23625
23721
|
"isValid": ["validityChanged"],
|
|
@@ -24434,8 +24530,18 @@ const PasswordInput = class {
|
|
|
24434
24530
|
* Default value for the input.
|
|
24435
24531
|
*/
|
|
24436
24532
|
this.defaultValue = '';
|
|
24533
|
+
/**
|
|
24534
|
+
* Client custom styling via inline style
|
|
24535
|
+
*/
|
|
24536
|
+
this.clientStyling = '';
|
|
24537
|
+
this.limitStylingAppends = false;
|
|
24437
24538
|
this.value = '';
|
|
24438
24539
|
this.validationPattern = '';
|
|
24540
|
+
this.setClientStyling = () => {
|
|
24541
|
+
let sheet = document.createElement('style');
|
|
24542
|
+
sheet.innerHTML = this.clientStyling;
|
|
24543
|
+
this.stylingContainer.prepend(sheet);
|
|
24544
|
+
};
|
|
24439
24545
|
}
|
|
24440
24546
|
validityChanged() {
|
|
24441
24547
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -24464,6 +24570,15 @@ const PasswordInput = class {
|
|
|
24464
24570
|
connectedCallback() {
|
|
24465
24571
|
this.validationPattern = this.setPattern();
|
|
24466
24572
|
}
|
|
24573
|
+
componentDidRender() {
|
|
24574
|
+
// start custom styling area
|
|
24575
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
24576
|
+
if (this.clientStyling)
|
|
24577
|
+
this.setClientStyling();
|
|
24578
|
+
this.limitStylingAppends = true;
|
|
24579
|
+
}
|
|
24580
|
+
// end custom styling area
|
|
24581
|
+
}
|
|
24467
24582
|
componentDidLoad() {
|
|
24468
24583
|
this.inputReference = this.element.shadowRoot.querySelector('input');
|
|
24469
24584
|
if (this.defaultValue) {
|
|
@@ -24504,7 +24619,7 @@ const PasswordInput = class {
|
|
|
24504
24619
|
}
|
|
24505
24620
|
render() {
|
|
24506
24621
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'password__input--invalid';
|
|
24507
|
-
return index.h("div", { class: 'password__wrapper' }, index.h("vaadin-password-field", { type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue,
|
|
24622
|
+
return index.h("div", { class: 'password__wrapper', ref: el => this.stylingContainer = el }, index.h("vaadin-password-field", { type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue,
|
|
24508
24623
|
// ref={(el) => this.inputReference = el as HTMLInputElement}
|
|
24509
24624
|
required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, onBlur: (e) => this.handleInput(e) }), index.h("label", { class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'password__error-message' }, this.errorMessage));
|
|
24510
24625
|
}
|
|
@@ -24523,6 +24638,16 @@ const RadioInput = class {
|
|
|
24523
24638
|
index.registerInstance(this, hostRef);
|
|
24524
24639
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
24525
24640
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
24641
|
+
/**
|
|
24642
|
+
* Client custom styling via inline style
|
|
24643
|
+
*/
|
|
24644
|
+
this.clientStyling = '';
|
|
24645
|
+
this.limitStylingAppends = false;
|
|
24646
|
+
this.setClientStyling = () => {
|
|
24647
|
+
let sheet = document.createElement('style');
|
|
24648
|
+
sheet.innerHTML = this.clientStyling;
|
|
24649
|
+
this.stylingContainer.prepend(sheet);
|
|
24650
|
+
};
|
|
24526
24651
|
}
|
|
24527
24652
|
validityChanged() {
|
|
24528
24653
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -24541,7 +24666,14 @@ const RadioInput = class {
|
|
|
24541
24666
|
validityStateHandler(inputStateEvent) {
|
|
24542
24667
|
this.sendValidityState.emit(inputStateEvent);
|
|
24543
24668
|
}
|
|
24544
|
-
|
|
24669
|
+
componentDidRender() {
|
|
24670
|
+
// start custom styling area
|
|
24671
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
24672
|
+
if (this.clientStyling)
|
|
24673
|
+
this.setClientStyling();
|
|
24674
|
+
this.limitStylingAppends = true;
|
|
24675
|
+
}
|
|
24676
|
+
// end custom styling area
|
|
24545
24677
|
}
|
|
24546
24678
|
handleClick(event) {
|
|
24547
24679
|
this.value = event.target.value;
|
|
@@ -24559,7 +24691,7 @@ const RadioInput = class {
|
|
|
24559
24691
|
}
|
|
24560
24692
|
}
|
|
24561
24693
|
render() {
|
|
24562
|
-
return index.h("fieldset", { class: 'radio__fieldset' }, index.h("legend", { class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { class: 'radio__error-message' }, this.errorMessage));
|
|
24694
|
+
return index.h("fieldset", { class: 'radio__fieldset', ref: el => this.stylingContainer = el }, index.h("legend", { class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { class: 'radio__error-message' }, this.errorMessage));
|
|
24563
24695
|
}
|
|
24564
24696
|
static get watchers() { return {
|
|
24565
24697
|
"isValid": ["validityChanged"],
|
|
@@ -28924,6 +29056,16 @@ const SelectInput = class {
|
|
|
28924
29056
|
* Options of the input.
|
|
28925
29057
|
*/
|
|
28926
29058
|
this.options = [];
|
|
29059
|
+
/**
|
|
29060
|
+
* Client custom styling via inline style
|
|
29061
|
+
*/
|
|
29062
|
+
this.clientStyling = '';
|
|
29063
|
+
this.limitStylingAppends = false;
|
|
29064
|
+
this.setClientStyling = () => {
|
|
29065
|
+
let sheet = document.createElement('style');
|
|
29066
|
+
sheet.innerHTML = this.clientStyling;
|
|
29067
|
+
this.stylingContainer.prepend(sheet);
|
|
29068
|
+
};
|
|
28927
29069
|
}
|
|
28928
29070
|
validityChanged() {
|
|
28929
29071
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -28956,6 +29098,15 @@ const SelectInput = class {
|
|
|
28956
29098
|
}
|
|
28957
29099
|
}
|
|
28958
29100
|
}
|
|
29101
|
+
componentDidRender() {
|
|
29102
|
+
// start custom styling area
|
|
29103
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
29104
|
+
if (this.clientStyling)
|
|
29105
|
+
this.setClientStyling();
|
|
29106
|
+
this.limitStylingAppends = true;
|
|
29107
|
+
}
|
|
29108
|
+
// end custom styling area
|
|
29109
|
+
}
|
|
28959
29110
|
componentDidLoad() {
|
|
28960
29111
|
this.inputReference = this.element.shadowRoot.querySelector('input');
|
|
28961
29112
|
if (this.defaultValue) {
|
|
@@ -28994,7 +29145,7 @@ const SelectInput = class {
|
|
|
28994
29145
|
}
|
|
28995
29146
|
render() {
|
|
28996
29147
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'select__input--invalid';
|
|
28997
|
-
return index.h("div", { class: 'select__wrapper' }, index.h("label", { class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, items: this.displayedOptions, onBlur: (e) => this.handleChange(e) }), index.h("small", { class: 'select__error-message' }, this.errorMessage));
|
|
29148
|
+
return index.h("div", { class: 'select__wrapper', ref: el => this.stylingContainer = el }, index.h("label", { class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, items: this.displayedOptions, onBlur: (e) => this.handleChange(e) }), index.h("small", { class: 'select__error-message' }, this.errorMessage));
|
|
28998
29149
|
}
|
|
28999
29150
|
get element() { return index.getElement(this); }
|
|
29000
29151
|
static get watchers() { return {
|
|
@@ -29011,7 +29162,17 @@ const TelInput = class {
|
|
|
29011
29162
|
index.registerInstance(this, hostRef);
|
|
29012
29163
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
29013
29164
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
29165
|
+
/**
|
|
29166
|
+
* Client custom styling via inline style
|
|
29167
|
+
*/
|
|
29168
|
+
this.clientStyling = '';
|
|
29169
|
+
this.limitStylingAppends = false;
|
|
29014
29170
|
this.validationPattern = '';
|
|
29171
|
+
this.setClientStyling = () => {
|
|
29172
|
+
let sheet = document.createElement('style');
|
|
29173
|
+
sheet.innerHTML = this.clientStyling;
|
|
29174
|
+
this.stylingContainer.prepend(sheet);
|
|
29175
|
+
};
|
|
29015
29176
|
}
|
|
29016
29177
|
validityChanged() {
|
|
29017
29178
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -29048,6 +29209,15 @@ const TelInput = class {
|
|
|
29048
29209
|
}
|
|
29049
29210
|
}
|
|
29050
29211
|
}
|
|
29212
|
+
componentDidRender() {
|
|
29213
|
+
// start custom styling area
|
|
29214
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
29215
|
+
if (this.clientStyling)
|
|
29216
|
+
this.setClientStyling();
|
|
29217
|
+
this.limitStylingAppends = true;
|
|
29218
|
+
}
|
|
29219
|
+
// end custom styling area
|
|
29220
|
+
}
|
|
29051
29221
|
componentDidLoad() {
|
|
29052
29222
|
if (this.defaultValue) {
|
|
29053
29223
|
this.value = `${this.prefixValue}|${this.phoneValue}`;
|
|
@@ -29099,7 +29269,7 @@ const TelInput = class {
|
|
|
29099
29269
|
}
|
|
29100
29270
|
render() {
|
|
29101
29271
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'tel__wrapper--flex--invalid';
|
|
29102
|
-
return index.h("div", { class: 'tel__wrapper' }, index.h("div", { class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onBlur: (e) => this.prefixValue = e.target.value }), index.h("input", { type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onBlur: (e) => this.handleInput(e) })), index.h("label", { class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'tel__error-message' }, this.errorMessage));
|
|
29272
|
+
return index.h("div", { class: 'tel__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onBlur: (e) => this.prefixValue = e.target.value }), index.h("input", { type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onBlur: (e) => this.handleInput(e) })), index.h("label", { class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("small", { class: 'tel__error-message' }, this.errorMessage));
|
|
29103
29273
|
}
|
|
29104
29274
|
static get watchers() { return {
|
|
29105
29275
|
"isValid": ["validityChanged"],
|
|
@@ -29119,10 +29289,20 @@ const TextInput = class {
|
|
|
29119
29289
|
* Default value for the input.
|
|
29120
29290
|
*/
|
|
29121
29291
|
this.defaultValue = '';
|
|
29292
|
+
/**
|
|
29293
|
+
* Client custom styling via inline style
|
|
29294
|
+
*/
|
|
29295
|
+
this.clientStyling = '';
|
|
29122
29296
|
this.errorMessage = '';
|
|
29297
|
+
this.limitStylingAppends = false;
|
|
29123
29298
|
this.value = '';
|
|
29124
29299
|
this.customRules = [];
|
|
29125
29300
|
this.validationPattern = '';
|
|
29301
|
+
this.setClientStyling = () => {
|
|
29302
|
+
let sheet = document.createElement('style');
|
|
29303
|
+
sheet.innerHTML = this.clientStyling;
|
|
29304
|
+
this.stylingContainer.prepend(sheet);
|
|
29305
|
+
};
|
|
29126
29306
|
}
|
|
29127
29307
|
validityChanged() {
|
|
29128
29308
|
if (this.emitValue == true) {
|
|
@@ -29150,6 +29330,15 @@ const TextInput = class {
|
|
|
29150
29330
|
connectedCallback() {
|
|
29151
29331
|
this.validationPattern = this.setPattern();
|
|
29152
29332
|
}
|
|
29333
|
+
componentDidRender() {
|
|
29334
|
+
// start custom styling area
|
|
29335
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
29336
|
+
if (this.clientStyling)
|
|
29337
|
+
this.setClientStyling();
|
|
29338
|
+
this.limitStylingAppends = true;
|
|
29339
|
+
}
|
|
29340
|
+
// end custom styling area
|
|
29341
|
+
}
|
|
29153
29342
|
componentDidLoad() {
|
|
29154
29343
|
if (this.defaultValue) {
|
|
29155
29344
|
this.value = this.defaultValue;
|
|
@@ -29189,7 +29378,7 @@ const TextInput = class {
|
|
|
29189
29378
|
}
|
|
29190
29379
|
render() {
|
|
29191
29380
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
29192
|
-
return index.h("div", { class: 'text__wrapper' }, index.h("label", { class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("input", { name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => { this.handleInput(e); } }), index.h("small", { class: 'text__error-message' }, this.errorMessage));
|
|
29381
|
+
return index.h("div", { class: 'text__wrapper', ref: el => this.stylingContainer = el }, index.h("label", { class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("input", { name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => { this.handleInput(e); } }), index.h("small", { class: 'text__error-message' }, this.errorMessage));
|
|
29193
29382
|
}
|
|
29194
29383
|
static get watchers() { return {
|
|
29195
29384
|
"isValid": ["validityChanged"],
|
|
@@ -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
|
};
|
|
@@ -299,7 +300,7 @@ export class GeneralRegistration {
|
|
|
299
300
|
return listOfInputs.filter(input => input.isValid == false).length > 0;
|
|
300
301
|
}
|
|
301
302
|
renderInputs() {
|
|
302
|
-
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 })));
|
|
303
304
|
}
|
|
304
305
|
;
|
|
305
306
|
renderButtons() {
|
|
@@ -361,7 +362,7 @@ export class GeneralRegistration {
|
|
|
361
362
|
},
|
|
362
363
|
"clientStyling": {
|
|
363
364
|
"type": "string",
|
|
364
|
-
"mutable":
|
|
365
|
+
"mutable": true,
|
|
365
366
|
"complexType": {
|
|
366
367
|
"original": "string",
|
|
367
368
|
"resolved": "string",
|
|
@@ -371,7 +372,7 @@ export class GeneralRegistration {
|
|
|
371
372
|
"optional": false,
|
|
372
373
|
"docs": {
|
|
373
374
|
"tags": [],
|
|
374
|
-
"text": "Client custom styling via
|
|
375
|
+
"text": "Client custom styling via inline styles"
|
|
375
376
|
},
|
|
376
377
|
"attribute": "client-styling",
|
|
377
378
|
"reflect": false,
|
|
@@ -389,7 +390,7 @@ export class GeneralRegistration {
|
|
|
389
390
|
"optional": false,
|
|
390
391
|
"docs": {
|
|
391
392
|
"tags": [],
|
|
392
|
-
"text": "Client custom styling via url
|
|
393
|
+
"text": "Client custom styling via url"
|
|
393
394
|
},
|
|
394
395
|
"attribute": "client-styling-url",
|
|
395
396
|
"reflect": false,
|