@everymatrix/general-registration 1.10.24 → 1.10.26
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 +132 -91
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-dfef7446.js → index-c322b593.js} +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/general-registration/general-registration.js +37 -28
- package/dist/components/checkbox-group-input2.js +1 -5
- package/dist/components/date-input2.js +1 -1
- package/dist/components/email-input2.js +8 -4
- package/dist/components/field-mixin.js +2 -2
- package/dist/components/general-input2.js +7 -20
- package/dist/components/general-registration.js +37 -28
- package/dist/components/number-input2.js +5 -3
- package/dist/components/password-input2.js +36 -17
- package/dist/components/select-input2.js +7 -6
- package/dist/components/tel-input2.js +5 -3
- package/dist/components/text-input2.js +8 -4
- package/dist/components/tooltipIcon.js +17 -0
- package/dist/esm/checkbox-group-input_13.entry.js +132 -91
- package/dist/esm/general-registration.js +2 -2
- package/dist/esm/{index-fdb6785f.js → index-e6868e88.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-64b59a7b.js → p-d7d35144.js} +1 -1
- package/dist/general-registration/{p-7852ad99.entry.js → p-f82ab839.entry.js} +138 -138
- package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +1 -0
- package/dist/types/components/general-registration/general-registration.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h as h$2, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$2, g as getElement, H as Host } from './index-e6868e88.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
4
4
|
const TRANSLATIONS$1 = {
|
|
@@ -10,12 +10,29 @@ const TRANSLATIONS$1 = {
|
|
|
10
10
|
"passwordStrength": "Password strength",
|
|
11
11
|
"passwordStrengthWeak": "is not adequate",
|
|
12
12
|
"passwordStrengthStrong": "is adequate",
|
|
13
|
+
"SpecialCharactersNotAllowed": 'Should not contain special characters',
|
|
14
|
+
"InvalidEmailFormat": "Invalid email format.",
|
|
15
|
+
"EmailNotMatching": "Emails not matching!",
|
|
16
|
+
"PasswordNotMatching": "Passwords not matching",
|
|
17
|
+
"MustIncludeNumber": "include a number",
|
|
18
|
+
"MustContainCapital": "contain capital letters",
|
|
19
|
+
"MustIncludePunctation": "punctuation",
|
|
13
20
|
},
|
|
14
21
|
"hu": {
|
|
15
22
|
"dateError": 'A választott dátumnak {min} és {max} között kell lennie',
|
|
16
23
|
"numberLengthError": 'A számnak {min} és {max} között kell lennie',
|
|
17
24
|
"lengthError": `A hossznak {minLength} és {maxLength} között kell lennie`,
|
|
18
25
|
"requiredError": 'Ez a beviteli mező kötelező.',
|
|
26
|
+
"passwordStrength": "Jelszó erőssége",
|
|
27
|
+
"passwordStrengthWeak": "nem megfelelő",
|
|
28
|
+
"passwordStrengthStrong": "megfelelő",
|
|
29
|
+
"SpecialCharactersNotAllowed": 'Nem tartalmazhat speciális karaktereket',
|
|
30
|
+
"InvalidEmailFormat": "Érvénytelen e-mail formátum.",
|
|
31
|
+
"EmailNotMatching": "Az e-mailek nem egyeznek!",
|
|
32
|
+
"PasswordNotMatching": "A jelszavak nem egyeznek",
|
|
33
|
+
"MustIncludeNumber": "tartalmaznia kell egy számot",
|
|
34
|
+
"MustContainCapital": "nagybetűket kell tartalmaznia",
|
|
35
|
+
"MustIncludePunctation": "írásjelet"
|
|
19
36
|
}
|
|
20
37
|
};
|
|
21
38
|
const translate$2 = (key, customLang, values) => {
|
|
@@ -46,7 +63,7 @@ const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD
|
|
|
46
63
|
*/
|
|
47
64
|
class Lumo extends HTMLElement {
|
|
48
65
|
static get version() {
|
|
49
|
-
return '23.3.
|
|
66
|
+
return '23.3.19';
|
|
50
67
|
}
|
|
51
68
|
}
|
|
52
69
|
|
|
@@ -10538,7 +10555,7 @@ const registered = new Set();
|
|
|
10538
10555
|
const ElementMixin = (superClass) =>
|
|
10539
10556
|
class VaadinElementMixin extends DirMixin(superClass) {
|
|
10540
10557
|
static get version() {
|
|
10541
|
-
return '23.3.
|
|
10558
|
+
return '23.3.19';
|
|
10542
10559
|
}
|
|
10543
10560
|
|
|
10544
10561
|
/** @protected */
|
|
@@ -14701,10 +14718,6 @@ const CheckboxGroupInput = class {
|
|
|
14701
14718
|
* Default value for the input.
|
|
14702
14719
|
*/
|
|
14703
14720
|
this.defaultValue = '';
|
|
14704
|
-
/**
|
|
14705
|
-
* Options of the input.
|
|
14706
|
-
*/
|
|
14707
|
-
this.options = [];
|
|
14708
14721
|
/**
|
|
14709
14722
|
* Client custom styling via inline style
|
|
14710
14723
|
*/
|
|
@@ -29315,7 +29328,7 @@ const DateInput = class {
|
|
|
29315
29328
|
return null;
|
|
29316
29329
|
}
|
|
29317
29330
|
render() {
|
|
29318
|
-
let invalidClass;
|
|
29331
|
+
let invalidClass = '';
|
|
29319
29332
|
if (this.touched) {
|
|
29320
29333
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
29321
29334
|
}
|
|
@@ -29427,9 +29440,11 @@ const EmailInput = class {
|
|
|
29427
29440
|
}
|
|
29428
29441
|
}
|
|
29429
29442
|
setErrorMessage() {
|
|
29430
|
-
var _a;
|
|
29443
|
+
var _a, _b, _c, _d;
|
|
29431
29444
|
if (this.inputReference.validity.patternMismatch) {
|
|
29432
|
-
|
|
29445
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
29446
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
29447
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
29433
29448
|
}
|
|
29434
29449
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
29435
29450
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -29438,7 +29453,9 @@ const EmailInput = class {
|
|
|
29438
29453
|
return translate$2('requiredError', this.language);
|
|
29439
29454
|
}
|
|
29440
29455
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
29441
|
-
|
|
29456
|
+
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
29457
|
+
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
29458
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
29442
29459
|
}
|
|
29443
29460
|
}
|
|
29444
29461
|
renderTooltip() {
|
|
@@ -29448,7 +29465,7 @@ const EmailInput = class {
|
|
|
29448
29465
|
return null;
|
|
29449
29466
|
}
|
|
29450
29467
|
render() {
|
|
29451
|
-
let invalidClass;
|
|
29468
|
+
let invalidClass = '';
|
|
29452
29469
|
if (this.touched) {
|
|
29453
29470
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
29454
29471
|
}
|
|
@@ -29476,7 +29493,7 @@ const GeneralInput = class {
|
|
|
29476
29493
|
*/
|
|
29477
29494
|
this.clientStyling = '';
|
|
29478
29495
|
}
|
|
29479
|
-
|
|
29496
|
+
renderInput() {
|
|
29480
29497
|
var _a;
|
|
29481
29498
|
switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
29482
29499
|
case 'text':
|
|
@@ -29505,6 +29522,9 @@ const GeneralInput = class {
|
|
|
29505
29522
|
return h$2("p", null, "The ", this.type, " input type is not valid");
|
|
29506
29523
|
}
|
|
29507
29524
|
}
|
|
29525
|
+
render() {
|
|
29526
|
+
return (h$2(Host, { class: `general-input--${this.name}` }, this.renderInput()));
|
|
29527
|
+
}
|
|
29508
29528
|
};
|
|
29509
29529
|
GeneralInput.style = generalInputCss;
|
|
29510
29530
|
|
|
@@ -29640,29 +29660,9 @@ const GeneralRegistration = class {
|
|
|
29640
29660
|
componentWillLoad() {
|
|
29641
29661
|
return this.getRegisterConfig()
|
|
29642
29662
|
.then((config) => {
|
|
29643
|
-
|
|
29644
|
-
|
|
29645
|
-
|
|
29646
|
-
if (TRANSLATIONS[this.language][field.name]) {
|
|
29647
|
-
Object.keys(TRANSLATIONS[this.language][field.name]).forEach((key) => {
|
|
29648
|
-
field[key] = TRANSLATIONS[this.language][field.name][key];
|
|
29649
|
-
});
|
|
29650
|
-
}
|
|
29651
|
-
return field;
|
|
29652
|
-
});
|
|
29653
|
-
})
|
|
29654
|
-
.catch((error) => {
|
|
29655
|
-
console.error('Failed to fetch translations:', error);
|
|
29656
|
-
}).finally(() => {
|
|
29657
|
-
this.formatConfig(config);
|
|
29658
|
-
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
29659
|
-
});
|
|
29660
|
-
}
|
|
29661
|
-
else {
|
|
29662
|
-
this.formatConfig(config);
|
|
29663
|
-
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
29664
|
-
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
29665
|
-
}
|
|
29663
|
+
this.formatConfig(config);
|
|
29664
|
+
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
29665
|
+
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
29666
29666
|
});
|
|
29667
29667
|
}
|
|
29668
29668
|
componentDidLoad() {
|
|
@@ -29862,10 +29862,7 @@ const GeneralRegistration = class {
|
|
|
29862
29862
|
})
|
|
29863
29863
|
.then((data) => {
|
|
29864
29864
|
this.isLoading = false;
|
|
29865
|
-
|
|
29866
|
-
alert(`User registered - the user ID is ${data.userId}`);
|
|
29867
|
-
}
|
|
29868
|
-
window.postMessage({ type: 'registrationSuccessful' }, window.location.href);
|
|
29865
|
+
window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId }, window.location.href);
|
|
29869
29866
|
})
|
|
29870
29867
|
.catch((err) => {
|
|
29871
29868
|
this.isLoading = false;
|
|
@@ -29941,7 +29938,32 @@ const GeneralRegistration = class {
|
|
|
29941
29938
|
if (this.listOfActions.some(action => action == '/register')) {
|
|
29942
29939
|
this.lastStep = this.registrationStep;
|
|
29943
29940
|
}
|
|
29944
|
-
|
|
29941
|
+
// The translations for fields happens here.
|
|
29942
|
+
if (this.translationUrl) {
|
|
29943
|
+
getTranslations(this.translationUrl).then(() => {
|
|
29944
|
+
this.listOfInputs.forEach(field => {
|
|
29945
|
+
var _a, _b;
|
|
29946
|
+
this.addTranslation(field);
|
|
29947
|
+
// Logic for fields types that have subfields
|
|
29948
|
+
if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'togglecheckbox') {
|
|
29949
|
+
field.data.subFields.forEach(subField => this.addTranslation(subField));
|
|
29950
|
+
}
|
|
29951
|
+
if (((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'checkboxgroup') {
|
|
29952
|
+
this.addTranslation(field);
|
|
29953
|
+
field.data.subFields.forEach(subField => this.addTranslation(subField));
|
|
29954
|
+
}
|
|
29955
|
+
return field;
|
|
29956
|
+
});
|
|
29957
|
+
})
|
|
29958
|
+
.catch((error) => {
|
|
29959
|
+
console.error('Failed to fetch translations:', error);
|
|
29960
|
+
}).finally(() => {
|
|
29961
|
+
this.forms = [...this.forms, { [this.registrationStep]: this.listOfInputs }];
|
|
29962
|
+
});
|
|
29963
|
+
}
|
|
29964
|
+
else {
|
|
29965
|
+
this.forms = [...this.forms, { [this.registrationStep]: this.listOfInputs }];
|
|
29966
|
+
}
|
|
29945
29967
|
// Add the step to the registrationStepsData
|
|
29946
29968
|
this.registrationStepsState.regId = this.registrationID;
|
|
29947
29969
|
if (!this.registrationStepsState[this.registrationStep]) {
|
|
@@ -29953,6 +29975,13 @@ const GeneralRegistration = class {
|
|
|
29953
29975
|
};
|
|
29954
29976
|
}
|
|
29955
29977
|
}
|
|
29978
|
+
addTranslation(field) {
|
|
29979
|
+
if (TRANSLATIONS[this.language][field.name]) {
|
|
29980
|
+
Object.keys(TRANSLATIONS[this.language][field.name]).forEach((key) => {
|
|
29981
|
+
field[key] = TRANSLATIONS[this.language][field.name][key];
|
|
29982
|
+
});
|
|
29983
|
+
}
|
|
29984
|
+
}
|
|
29956
29985
|
setInitialValidStatus(field) {
|
|
29957
29986
|
var _a, _b;
|
|
29958
29987
|
// Input type checkbox, with no validation are valid
|
|
@@ -30094,9 +30123,11 @@ const NumberInput = class {
|
|
|
30094
30123
|
}
|
|
30095
30124
|
}
|
|
30096
30125
|
setErrorMessage() {
|
|
30097
|
-
var _a;
|
|
30126
|
+
var _a, _b;
|
|
30098
30127
|
if (this.inputReference.validity.patternMismatch) {
|
|
30099
|
-
|
|
30128
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
30129
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
30130
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
30100
30131
|
}
|
|
30101
30132
|
if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow) {
|
|
30102
30133
|
return translate$2('numberLengthError', this.language, { values: { min: this.validation.min, max: this.validation.max } });
|
|
@@ -30112,7 +30143,7 @@ const NumberInput = class {
|
|
|
30112
30143
|
return null;
|
|
30113
30144
|
}
|
|
30114
30145
|
render() {
|
|
30115
|
-
let invalidClass;
|
|
30146
|
+
let invalidClass = '';
|
|
30116
30147
|
if (this.touched) {
|
|
30117
30148
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30118
30149
|
}
|
|
@@ -30762,7 +30793,8 @@ class PasswordField extends TextField {
|
|
|
30762
30793
|
super();
|
|
30763
30794
|
this._setType('password');
|
|
30764
30795
|
this.__boundRevealButtonClick = this._onRevealButtonClick.bind(this);
|
|
30765
|
-
this.
|
|
30796
|
+
this.__boundRevealButtonMouseDown = this._onRevealButtonMouseDown.bind(this);
|
|
30797
|
+
this.__lastChange = '';
|
|
30766
30798
|
}
|
|
30767
30799
|
|
|
30768
30800
|
/** @protected */
|
|
@@ -30779,7 +30811,7 @@ class PasswordField extends TextField {
|
|
|
30779
30811
|
btn.disabled = host.disabled;
|
|
30780
30812
|
|
|
30781
30813
|
btn.addEventListener('click', host.__boundRevealButtonClick);
|
|
30782
|
-
btn.addEventListener('
|
|
30814
|
+
btn.addEventListener('mousedown', host.__boundRevealButtonMouseDown);
|
|
30783
30815
|
},
|
|
30784
30816
|
);
|
|
30785
30817
|
this.addController(this._revealButtonController);
|
|
@@ -30794,6 +30826,19 @@ class PasswordField extends TextField {
|
|
|
30794
30826
|
}
|
|
30795
30827
|
}
|
|
30796
30828
|
|
|
30829
|
+
/**
|
|
30830
|
+
* Override an event listener inherited from `InputControlMixin`
|
|
30831
|
+
* to store the value at the moment of the native `change` event.
|
|
30832
|
+
* @param {Event} event
|
|
30833
|
+
* @protected
|
|
30834
|
+
* @override
|
|
30835
|
+
*/
|
|
30836
|
+
_onChange(event) {
|
|
30837
|
+
super._onChange(event);
|
|
30838
|
+
|
|
30839
|
+
this.__lastChange = this.inputElement.value;
|
|
30840
|
+
}
|
|
30841
|
+
|
|
30797
30842
|
/**
|
|
30798
30843
|
* Override method inherited from `FocusMixin` to mark field as focused
|
|
30799
30844
|
* when focus moves to the reveal button using Shift Tab.
|
|
@@ -30830,6 +30875,12 @@ class PasswordField extends TextField {
|
|
|
30830
30875
|
|
|
30831
30876
|
if (!focused) {
|
|
30832
30877
|
this._setPasswordVisible(false);
|
|
30878
|
+
|
|
30879
|
+
// Detect if `focusout` was prevented and if so, dispatch `change` event manually.
|
|
30880
|
+
if (this.__lastChange !== this.inputElement.value) {
|
|
30881
|
+
this.__lastChange = this.inputElement.value;
|
|
30882
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
30883
|
+
}
|
|
30833
30884
|
} else {
|
|
30834
30885
|
const isButtonFocused = this.getRootNode().activeElement === this._revealNode;
|
|
30835
30886
|
// Remove focus-ring from the field when the reveal button gets focused
|
|
@@ -30865,10 +30916,10 @@ class PasswordField extends TextField {
|
|
|
30865
30916
|
}
|
|
30866
30917
|
|
|
30867
30918
|
/** @private */
|
|
30868
|
-
|
|
30869
|
-
// Cancel the following
|
|
30919
|
+
_onRevealButtonMouseDown(e) {
|
|
30920
|
+
// Cancel the following focusout event
|
|
30870
30921
|
e.preventDefault();
|
|
30871
|
-
|
|
30922
|
+
|
|
30872
30923
|
// Focus the input to avoid problem with password still visible
|
|
30873
30924
|
// when user clicks the reveal button and then clicks outside.
|
|
30874
30925
|
this.inputElement.focus();
|
|
@@ -30921,7 +30972,7 @@ class PasswordField extends TextField {
|
|
|
30921
30972
|
|
|
30922
30973
|
customElements.define(PasswordField.is, PasswordField);
|
|
30923
30974
|
|
|
30924
|
-
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{width:100%}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#2A3841}.password__label--required::after{content:\"*\";font-family:inherit;color:#2A3841;margin-left:2px}.password__input{width:inherit;border:none;margin-bottom:5px}.password__input[focused]::part(input-field){border-color:#3E3E3E}.password__input[invalid]::part(input-field){border-color:#cc0000b3}.password__input::part(input-field){border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;width:100%;position:relative;border:2px solid #DEE1EE}.password__input>input:placeholder-shown{color:#979797}.password__error-message{color:#cc0000b3}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:#FFFFFF;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;height:150px;border:1px solid #B0B0B0}.password__complexity--strength{display:flex;justify-content:space-evenly}.password__complexity--strength meter::-webkit-meter-optimum-value{background:#1F1F1F}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:\"\";position:absolute;width:25px;height:25px;border-top:1px solid #B0B0B0;border-right:0 solid #B0B0B0;border-left:1px solid #B0B0B0;border-bottom:0 solid #B0B0B0;bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:#FFFFFF}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}";
|
|
30975
|
+
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100%}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#2A3841}.password__label--required::after{content:\"*\";font-family:inherit;color:#2A3841;margin-left:2px}.password__input{width:inherit;border:none;margin-bottom:5px}.password__input[focused]::part(input-field){border-color:#3E3E3E}.password__input[invalid]::part(input-field){border-color:#cc0000b3}.password__input::part(input-field){border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;width:100%;position:relative;border:2px solid #DEE1EE}.password__input>input:placeholder-shown{color:#979797}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:#FFFFFF;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;height:150px;border:1px solid #B0B0B0}.password__complexity--strength{display:flex;justify-content:space-evenly}.password__complexity--strength meter::-webkit-meter-optimum-value{background:#1F1F1F}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:\"\";position:absolute;width:25px;height:25px;border-top:1px solid #B0B0B0;border-right:0 solid #B0B0B0;border-left:1px solid #B0B0B0;border-bottom:0 solid #B0B0B0;bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:#FFFFFF}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}";
|
|
30925
30976
|
|
|
30926
30977
|
const PasswordInput = class {
|
|
30927
30978
|
constructor(hostRef) {
|
|
@@ -31008,9 +31059,6 @@ const PasswordInput = class {
|
|
|
31008
31059
|
if (event.composedPath()[0] !== this.tooltipReference)
|
|
31009
31060
|
this.showTooltip = false;
|
|
31010
31061
|
}
|
|
31011
|
-
connectedCallback() {
|
|
31012
|
-
// this.validationPattern = this.setPattern();
|
|
31013
|
-
}
|
|
31014
31062
|
componentDidRender() {
|
|
31015
31063
|
// start custom styling area
|
|
31016
31064
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -31063,9 +31111,11 @@ const PasswordInput = class {
|
|
|
31063
31111
|
}
|
|
31064
31112
|
}
|
|
31065
31113
|
setErrorMessage() {
|
|
31066
|
-
var _a;
|
|
31114
|
+
var _a, _b, _c, _d;
|
|
31067
31115
|
if (this.inputReference.validity.patternMismatch) {
|
|
31068
|
-
|
|
31116
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
31117
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
31118
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
31069
31119
|
}
|
|
31070
31120
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
31071
31121
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -31074,7 +31124,9 @@ const PasswordInput = class {
|
|
|
31074
31124
|
return translate$2('requiredError', this.language);
|
|
31075
31125
|
}
|
|
31076
31126
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
31077
|
-
|
|
31127
|
+
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
31128
|
+
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
31129
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
31078
31130
|
}
|
|
31079
31131
|
}
|
|
31080
31132
|
renderTooltip() {
|
|
@@ -31088,14 +31140,12 @@ const PasswordInput = class {
|
|
|
31088
31140
|
const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
|
|
31089
31141
|
const meterValue = passedRules / totalRules;
|
|
31090
31142
|
const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
|
|
31091
|
-
|
|
31092
|
-
return;
|
|
31093
|
-
return (h$2("div", { class: `password__complexity` }, h$2("div", { class: 'password__complexity--strength' }, h$2("p", { class: 'password__complexity--text' }, translate$2('passwordStrength', this.language), "\u00A0", h$2("span", { class: 'password__complexity--text-bold' }, translate$2(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), h$2("meter", { value: meterValue, min: "0", max: "1" })), h$2("div", null, this.passwordComplexity.map((complexity, index) => {
|
|
31094
|
-
return (h$2("div", { key: index }, h$2("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), h$2("span", null, complexity.rule)));
|
|
31143
|
+
return (h$2("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, h$2("div", { class: 'password__complexity--strength' }, h$2("p", { class: 'password__complexity--text' }, translate$2('passwordStrength', this.language), "\u00A0", h$2("span", { class: 'password__complexity--text-bold' }, translate$2(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), h$2("meter", { value: meterValue, min: "0", max: "1" })), h$2("div", null, this.passwordComplexity.map((complexity, index) => {
|
|
31144
|
+
return (h$2("div", { key: index }, h$2("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), h$2("span", null, translate$2(`${complexity.rule}`, this.language) ? translate$2(`${complexity.rule}`, this.language) : complexity.rule)));
|
|
31095
31145
|
}))));
|
|
31096
31146
|
}
|
|
31097
31147
|
render() {
|
|
31098
|
-
let invalidClass;
|
|
31148
|
+
let invalidClass = '';
|
|
31099
31149
|
if (this.touched) {
|
|
31100
31150
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
31101
31151
|
}
|
|
@@ -35581,8 +35631,10 @@ const SelectInput = class {
|
|
|
35581
35631
|
componentWillLoad() {
|
|
35582
35632
|
if (this.action && !this.options.length) {
|
|
35583
35633
|
if (this.action.split(" ")[0] == 'GET') {
|
|
35584
|
-
|
|
35585
|
-
|
|
35634
|
+
const endpoint = this.action.split(" ")[1];
|
|
35635
|
+
return this.getOptions(endpoint).then((options) => {
|
|
35636
|
+
const firstKey = Object.keys(options)[0];
|
|
35637
|
+
this.displayedOptions = options[firstKey].map(option => {
|
|
35586
35638
|
return { label: option.Name, value: option.Alpha2Code };
|
|
35587
35639
|
});
|
|
35588
35640
|
});
|
|
@@ -35606,9 +35658,8 @@ const SelectInput = class {
|
|
|
35606
35658
|
this.valueHandler({ name: this.name, value: this.value });
|
|
35607
35659
|
}
|
|
35608
35660
|
}
|
|
35609
|
-
getOptions() {
|
|
35610
|
-
|
|
35611
|
-
const url = new URL("https://demo-api.stage.norway.everymatrix.com/v1/player/countries");
|
|
35661
|
+
getOptions(endpoint) {
|
|
35662
|
+
const url = new URL(endpoint);
|
|
35612
35663
|
return new Promise((resolve, reject) => {
|
|
35613
35664
|
fetch(url.href)
|
|
35614
35665
|
.then((res) => res.json())
|
|
@@ -35635,7 +35686,7 @@ const SelectInput = class {
|
|
|
35635
35686
|
return null;
|
|
35636
35687
|
}
|
|
35637
35688
|
render() {
|
|
35638
|
-
let invalidClass;
|
|
35689
|
+
let invalidClass = '';
|
|
35639
35690
|
if (this.touched) {
|
|
35640
35691
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
35641
35692
|
}
|
|
@@ -35775,9 +35826,11 @@ const TelInput = class {
|
|
|
35775
35826
|
}
|
|
35776
35827
|
}
|
|
35777
35828
|
setErrorMessage() {
|
|
35778
|
-
var _a;
|
|
35829
|
+
var _a, _b;
|
|
35779
35830
|
if (this.inputReference.validity.patternMismatch) {
|
|
35780
|
-
|
|
35831
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
35832
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
35833
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
35781
35834
|
}
|
|
35782
35835
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
35783
35836
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -35793,7 +35846,7 @@ const TelInput = class {
|
|
|
35793
35846
|
return null;
|
|
35794
35847
|
}
|
|
35795
35848
|
render() {
|
|
35796
|
-
let invalidClass;
|
|
35849
|
+
let invalidClass = '';
|
|
35797
35850
|
if (this.touched) {
|
|
35798
35851
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
35799
35852
|
}
|
|
@@ -35931,9 +35984,11 @@ const TextInput = class {
|
|
|
35931
35984
|
}
|
|
35932
35985
|
}
|
|
35933
35986
|
setErrorMessage() {
|
|
35934
|
-
var _a;
|
|
35987
|
+
var _a, _b, _c, _d;
|
|
35935
35988
|
if (this.inputReference.validity.patternMismatch) {
|
|
35936
|
-
|
|
35989
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
35990
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
35991
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
35937
35992
|
}
|
|
35938
35993
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
35939
35994
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -35942,7 +35997,9 @@ const TextInput = class {
|
|
|
35942
35997
|
return translate$2('requiredError', this.language);
|
|
35943
35998
|
}
|
|
35944
35999
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
35945
|
-
|
|
36000
|
+
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
36001
|
+
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
36002
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
35946
36003
|
}
|
|
35947
36004
|
}
|
|
35948
36005
|
renderTooltip() {
|
|
@@ -35952,7 +36009,7 @@ const TextInput = class {
|
|
|
35952
36009
|
return null;
|
|
35953
36010
|
}
|
|
35954
36011
|
render() {
|
|
35955
|
-
let invalidClass;
|
|
36012
|
+
let invalidClass = '';
|
|
35956
36013
|
if (this.touched) {
|
|
35957
36014
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
35958
36015
|
}
|
|
@@ -35977,10 +36034,6 @@ const ToggleCheckboxInput = class {
|
|
|
35977
36034
|
* Default value for the input.
|
|
35978
36035
|
*/
|
|
35979
36036
|
this.defaultValue = '';
|
|
35980
|
-
/**
|
|
35981
|
-
* Options of the input.
|
|
35982
|
-
*/
|
|
35983
|
-
this.options = [];
|
|
35984
36037
|
/**
|
|
35985
36038
|
* Client custom styling via inline style
|
|
35986
36039
|
*/
|
|
@@ -35994,13 +36047,9 @@ const ToggleCheckboxInput = class {
|
|
|
35994
36047
|
this.stylingContainer.prepend(sheet);
|
|
35995
36048
|
};
|
|
35996
36049
|
}
|
|
35997
|
-
validityChanged() {
|
|
35998
|
-
}
|
|
35999
36050
|
validityStateHandler(inputStateEvent) {
|
|
36000
36051
|
this.sendValidityState.emit(inputStateEvent);
|
|
36001
36052
|
}
|
|
36002
|
-
emitValueHandler(newValue) {
|
|
36003
|
-
}
|
|
36004
36053
|
valueHandler(inputValueEvent) {
|
|
36005
36054
|
this.sendInputValue.emit(inputValueEvent);
|
|
36006
36055
|
}
|
|
@@ -36010,8 +36059,6 @@ const ToggleCheckboxInput = class {
|
|
|
36010
36059
|
if (event.composedPath()[0] !== this.tooltipReference)
|
|
36011
36060
|
this.showTooltip = false;
|
|
36012
36061
|
}
|
|
36013
|
-
connectedCallback() {
|
|
36014
|
-
}
|
|
36015
36062
|
componentDidRender() {
|
|
36016
36063
|
// start custom styling area
|
|
36017
36064
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -36021,8 +36068,6 @@ const ToggleCheckboxInput = class {
|
|
|
36021
36068
|
}
|
|
36022
36069
|
// end custom styling area
|
|
36023
36070
|
}
|
|
36024
|
-
componentDidLoad() {
|
|
36025
|
-
}
|
|
36026
36071
|
handleClick() {
|
|
36027
36072
|
this.showFields = this.checkboxReference.checked;
|
|
36028
36073
|
this.errorMessage = this.setErrorMessage();
|
|
@@ -36048,13 +36093,9 @@ const ToggleCheckboxInput = class {
|
|
|
36048
36093
|
render() {
|
|
36049
36094
|
return h$2("div", { class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h$2("div", { class: 'togglecheckbox__wrapper--flex' }, h$2("input", { 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$2("small", { class: 'togglecheckbox__error-message' }, this.errorMessage), h$2("div", { class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
|
|
36050
36095
|
h$2("img", { class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h$2("div", { class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
|
|
36051
|
-
return h$2("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,
|
|
36096
|
+
return h$2("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 });
|
|
36052
36097
|
})));
|
|
36053
36098
|
}
|
|
36054
|
-
static get watchers() { return {
|
|
36055
|
-
"isValid": ["validityChanged"],
|
|
36056
|
-
"emitValue": ["emitValueHandler"]
|
|
36057
|
-
}; }
|
|
36058
36099
|
};
|
|
36059
36100
|
ToggleCheckboxInput.style = toggleCheckboxInputCss;
|
|
36060
36101
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e6868e88.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["checkbox-group-input_13",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"dateFormat":[513,"date-format"],"buttonInsideForm":[516,"button-inside-form"],"errorMessage":[32],"isFormValid":[32],"isLoading":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[
|
|
16
|
+
return bootstrapLazy([["checkbox-group-input_13",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"dateFormat":[513,"date-format"],"buttonInsideForm":[516,"button-inside-form"],"errorMessage":[32],"isFormValid":[32],"isLoading":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[16],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"showFields":[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-group-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"selectedValues":[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"dateFormat":[513,"date-format"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32],"passwordComplexity":[32],"showPopup":[32]},[[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]]],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[520,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]]]]], options);
|
|
17
17
|
});
|
|
@@ -1296,4 +1296,4 @@ const flush = () => {
|
|
|
1296
1296
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1297
1297
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1298
1298
|
|
|
1299
|
-
export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
|
1299
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e6868e88.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["checkbox-group-input_13",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"dateFormat":[513,"date-format"],"buttonInsideForm":[516,"button-inside-form"],"errorMessage":[32],"isFormValid":[32],"isLoading":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[
|
|
13
|
+
return bootstrapLazy([["checkbox-group-input_13",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"dateFormat":[513,"date-format"],"buttonInsideForm":[516,"button-inside-form"],"errorMessage":[32],"isFormValid":[32],"isLoading":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[16],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"showFields":[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-group-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"selectedValues":[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"dateFormat":[513,"date-format"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32],"passwordComplexity":[32],"showPopup":[32]},[[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]]],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[520,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|