@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c322b593.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
8
8
|
const TRANSLATIONS$1 = {
|
|
@@ -14,12 +14,29 @@ const TRANSLATIONS$1 = {
|
|
|
14
14
|
"passwordStrength": "Password strength",
|
|
15
15
|
"passwordStrengthWeak": "is not adequate",
|
|
16
16
|
"passwordStrengthStrong": "is adequate",
|
|
17
|
+
"SpecialCharactersNotAllowed": 'Should not contain special characters',
|
|
18
|
+
"InvalidEmailFormat": "Invalid email format.",
|
|
19
|
+
"EmailNotMatching": "Emails not matching!",
|
|
20
|
+
"PasswordNotMatching": "Passwords not matching",
|
|
21
|
+
"MustIncludeNumber": "include a number",
|
|
22
|
+
"MustContainCapital": "contain capital letters",
|
|
23
|
+
"MustIncludePunctation": "punctuation",
|
|
17
24
|
},
|
|
18
25
|
"hu": {
|
|
19
26
|
"dateError": 'A választott dátumnak {min} és {max} között kell lennie',
|
|
20
27
|
"numberLengthError": 'A számnak {min} és {max} között kell lennie',
|
|
21
28
|
"lengthError": `A hossznak {minLength} és {maxLength} között kell lennie`,
|
|
22
29
|
"requiredError": 'Ez a beviteli mező kötelező.',
|
|
30
|
+
"passwordStrength": "Jelszó erőssége",
|
|
31
|
+
"passwordStrengthWeak": "nem megfelelő",
|
|
32
|
+
"passwordStrengthStrong": "megfelelő",
|
|
33
|
+
"SpecialCharactersNotAllowed": 'Nem tartalmazhat speciális karaktereket',
|
|
34
|
+
"InvalidEmailFormat": "Érvénytelen e-mail formátum.",
|
|
35
|
+
"EmailNotMatching": "Az e-mailek nem egyeznek!",
|
|
36
|
+
"PasswordNotMatching": "A jelszavak nem egyeznek",
|
|
37
|
+
"MustIncludeNumber": "tartalmaznia kell egy számot",
|
|
38
|
+
"MustContainCapital": "nagybetűket kell tartalmaznia",
|
|
39
|
+
"MustIncludePunctation": "írásjelet"
|
|
23
40
|
}
|
|
24
41
|
};
|
|
25
42
|
const translate$2 = (key, customLang, values) => {
|
|
@@ -50,7 +67,7 @@ const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD
|
|
|
50
67
|
*/
|
|
51
68
|
class Lumo extends HTMLElement {
|
|
52
69
|
static get version() {
|
|
53
|
-
return '23.3.
|
|
70
|
+
return '23.3.19';
|
|
54
71
|
}
|
|
55
72
|
}
|
|
56
73
|
|
|
@@ -10542,7 +10559,7 @@ const registered = new Set();
|
|
|
10542
10559
|
const ElementMixin = (superClass) =>
|
|
10543
10560
|
class VaadinElementMixin extends DirMixin(superClass) {
|
|
10544
10561
|
static get version() {
|
|
10545
|
-
return '23.3.
|
|
10562
|
+
return '23.3.19';
|
|
10546
10563
|
}
|
|
10547
10564
|
|
|
10548
10565
|
/** @protected */
|
|
@@ -14705,10 +14722,6 @@ const CheckboxGroupInput = class {
|
|
|
14705
14722
|
* Default value for the input.
|
|
14706
14723
|
*/
|
|
14707
14724
|
this.defaultValue = '';
|
|
14708
|
-
/**
|
|
14709
|
-
* Options of the input.
|
|
14710
|
-
*/
|
|
14711
|
-
this.options = [];
|
|
14712
14725
|
/**
|
|
14713
14726
|
* Client custom styling via inline style
|
|
14714
14727
|
*/
|
|
@@ -29319,7 +29332,7 @@ const DateInput = class {
|
|
|
29319
29332
|
return null;
|
|
29320
29333
|
}
|
|
29321
29334
|
render() {
|
|
29322
|
-
let invalidClass;
|
|
29335
|
+
let invalidClass = '';
|
|
29323
29336
|
if (this.touched) {
|
|
29324
29337
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
29325
29338
|
}
|
|
@@ -29431,9 +29444,11 @@ const EmailInput = class {
|
|
|
29431
29444
|
}
|
|
29432
29445
|
}
|
|
29433
29446
|
setErrorMessage() {
|
|
29434
|
-
var _a;
|
|
29447
|
+
var _a, _b, _c, _d;
|
|
29435
29448
|
if (this.inputReference.validity.patternMismatch) {
|
|
29436
|
-
|
|
29449
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
29450
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
29451
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
29437
29452
|
}
|
|
29438
29453
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
29439
29454
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -29442,7 +29457,9 @@ const EmailInput = class {
|
|
|
29442
29457
|
return translate$2('requiredError', this.language);
|
|
29443
29458
|
}
|
|
29444
29459
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
29445
|
-
|
|
29460
|
+
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
29461
|
+
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
29462
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
29446
29463
|
}
|
|
29447
29464
|
}
|
|
29448
29465
|
renderTooltip() {
|
|
@@ -29452,7 +29469,7 @@ const EmailInput = class {
|
|
|
29452
29469
|
return null;
|
|
29453
29470
|
}
|
|
29454
29471
|
render() {
|
|
29455
|
-
let invalidClass;
|
|
29472
|
+
let invalidClass = '';
|
|
29456
29473
|
if (this.touched) {
|
|
29457
29474
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
29458
29475
|
}
|
|
@@ -29480,7 +29497,7 @@ const GeneralInput = class {
|
|
|
29480
29497
|
*/
|
|
29481
29498
|
this.clientStyling = '';
|
|
29482
29499
|
}
|
|
29483
|
-
|
|
29500
|
+
renderInput() {
|
|
29484
29501
|
var _a;
|
|
29485
29502
|
switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
29486
29503
|
case 'text':
|
|
@@ -29509,6 +29526,9 @@ const GeneralInput = class {
|
|
|
29509
29526
|
return index.h("p", null, "The ", this.type, " input type is not valid");
|
|
29510
29527
|
}
|
|
29511
29528
|
}
|
|
29529
|
+
render() {
|
|
29530
|
+
return (index.h(index.Host, { class: `general-input--${this.name}` }, this.renderInput()));
|
|
29531
|
+
}
|
|
29512
29532
|
};
|
|
29513
29533
|
GeneralInput.style = generalInputCss;
|
|
29514
29534
|
|
|
@@ -29644,29 +29664,9 @@ const GeneralRegistration = class {
|
|
|
29644
29664
|
componentWillLoad() {
|
|
29645
29665
|
return this.getRegisterConfig()
|
|
29646
29666
|
.then((config) => {
|
|
29647
|
-
|
|
29648
|
-
|
|
29649
|
-
|
|
29650
|
-
if (TRANSLATIONS[this.language][field.name]) {
|
|
29651
|
-
Object.keys(TRANSLATIONS[this.language][field.name]).forEach((key) => {
|
|
29652
|
-
field[key] = TRANSLATIONS[this.language][field.name][key];
|
|
29653
|
-
});
|
|
29654
|
-
}
|
|
29655
|
-
return field;
|
|
29656
|
-
});
|
|
29657
|
-
})
|
|
29658
|
-
.catch((error) => {
|
|
29659
|
-
console.error('Failed to fetch translations:', error);
|
|
29660
|
-
}).finally(() => {
|
|
29661
|
-
this.formatConfig(config);
|
|
29662
|
-
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
29663
|
-
});
|
|
29664
|
-
}
|
|
29665
|
-
else {
|
|
29666
|
-
this.formatConfig(config);
|
|
29667
|
-
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
29668
|
-
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
29669
|
-
}
|
|
29667
|
+
this.formatConfig(config);
|
|
29668
|
+
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
29669
|
+
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
29670
29670
|
});
|
|
29671
29671
|
}
|
|
29672
29672
|
componentDidLoad() {
|
|
@@ -29866,10 +29866,7 @@ const GeneralRegistration = class {
|
|
|
29866
29866
|
})
|
|
29867
29867
|
.then((data) => {
|
|
29868
29868
|
this.isLoading = false;
|
|
29869
|
-
|
|
29870
|
-
alert(`User registered - the user ID is ${data.userId}`);
|
|
29871
|
-
}
|
|
29872
|
-
window.postMessage({ type: 'registrationSuccessful' }, window.location.href);
|
|
29869
|
+
window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId }, window.location.href);
|
|
29873
29870
|
})
|
|
29874
29871
|
.catch((err) => {
|
|
29875
29872
|
this.isLoading = false;
|
|
@@ -29945,7 +29942,32 @@ const GeneralRegistration = class {
|
|
|
29945
29942
|
if (this.listOfActions.some(action => action == '/register')) {
|
|
29946
29943
|
this.lastStep = this.registrationStep;
|
|
29947
29944
|
}
|
|
29948
|
-
|
|
29945
|
+
// The translations for fields happens here.
|
|
29946
|
+
if (this.translationUrl) {
|
|
29947
|
+
getTranslations(this.translationUrl).then(() => {
|
|
29948
|
+
this.listOfInputs.forEach(field => {
|
|
29949
|
+
var _a, _b;
|
|
29950
|
+
this.addTranslation(field);
|
|
29951
|
+
// Logic for fields types that have subfields
|
|
29952
|
+
if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'togglecheckbox') {
|
|
29953
|
+
field.data.subFields.forEach(subField => this.addTranslation(subField));
|
|
29954
|
+
}
|
|
29955
|
+
if (((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'checkboxgroup') {
|
|
29956
|
+
this.addTranslation(field);
|
|
29957
|
+
field.data.subFields.forEach(subField => this.addTranslation(subField));
|
|
29958
|
+
}
|
|
29959
|
+
return field;
|
|
29960
|
+
});
|
|
29961
|
+
})
|
|
29962
|
+
.catch((error) => {
|
|
29963
|
+
console.error('Failed to fetch translations:', error);
|
|
29964
|
+
}).finally(() => {
|
|
29965
|
+
this.forms = [...this.forms, { [this.registrationStep]: this.listOfInputs }];
|
|
29966
|
+
});
|
|
29967
|
+
}
|
|
29968
|
+
else {
|
|
29969
|
+
this.forms = [...this.forms, { [this.registrationStep]: this.listOfInputs }];
|
|
29970
|
+
}
|
|
29949
29971
|
// Add the step to the registrationStepsData
|
|
29950
29972
|
this.registrationStepsState.regId = this.registrationID;
|
|
29951
29973
|
if (!this.registrationStepsState[this.registrationStep]) {
|
|
@@ -29957,6 +29979,13 @@ const GeneralRegistration = class {
|
|
|
29957
29979
|
};
|
|
29958
29980
|
}
|
|
29959
29981
|
}
|
|
29982
|
+
addTranslation(field) {
|
|
29983
|
+
if (TRANSLATIONS[this.language][field.name]) {
|
|
29984
|
+
Object.keys(TRANSLATIONS[this.language][field.name]).forEach((key) => {
|
|
29985
|
+
field[key] = TRANSLATIONS[this.language][field.name][key];
|
|
29986
|
+
});
|
|
29987
|
+
}
|
|
29988
|
+
}
|
|
29960
29989
|
setInitialValidStatus(field) {
|
|
29961
29990
|
var _a, _b;
|
|
29962
29991
|
// Input type checkbox, with no validation are valid
|
|
@@ -30098,9 +30127,11 @@ const NumberInput = class {
|
|
|
30098
30127
|
}
|
|
30099
30128
|
}
|
|
30100
30129
|
setErrorMessage() {
|
|
30101
|
-
var _a;
|
|
30130
|
+
var _a, _b;
|
|
30102
30131
|
if (this.inputReference.validity.patternMismatch) {
|
|
30103
|
-
|
|
30132
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
30133
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
30134
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
30104
30135
|
}
|
|
30105
30136
|
if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow) {
|
|
30106
30137
|
return translate$2('numberLengthError', this.language, { values: { min: this.validation.min, max: this.validation.max } });
|
|
@@ -30116,7 +30147,7 @@ const NumberInput = class {
|
|
|
30116
30147
|
return null;
|
|
30117
30148
|
}
|
|
30118
30149
|
render() {
|
|
30119
|
-
let invalidClass;
|
|
30150
|
+
let invalidClass = '';
|
|
30120
30151
|
if (this.touched) {
|
|
30121
30152
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30122
30153
|
}
|
|
@@ -30766,7 +30797,8 @@ class PasswordField extends TextField {
|
|
|
30766
30797
|
super();
|
|
30767
30798
|
this._setType('password');
|
|
30768
30799
|
this.__boundRevealButtonClick = this._onRevealButtonClick.bind(this);
|
|
30769
|
-
this.
|
|
30800
|
+
this.__boundRevealButtonMouseDown = this._onRevealButtonMouseDown.bind(this);
|
|
30801
|
+
this.__lastChange = '';
|
|
30770
30802
|
}
|
|
30771
30803
|
|
|
30772
30804
|
/** @protected */
|
|
@@ -30783,7 +30815,7 @@ class PasswordField extends TextField {
|
|
|
30783
30815
|
btn.disabled = host.disabled;
|
|
30784
30816
|
|
|
30785
30817
|
btn.addEventListener('click', host.__boundRevealButtonClick);
|
|
30786
|
-
btn.addEventListener('
|
|
30818
|
+
btn.addEventListener('mousedown', host.__boundRevealButtonMouseDown);
|
|
30787
30819
|
},
|
|
30788
30820
|
);
|
|
30789
30821
|
this.addController(this._revealButtonController);
|
|
@@ -30798,6 +30830,19 @@ class PasswordField extends TextField {
|
|
|
30798
30830
|
}
|
|
30799
30831
|
}
|
|
30800
30832
|
|
|
30833
|
+
/**
|
|
30834
|
+
* Override an event listener inherited from `InputControlMixin`
|
|
30835
|
+
* to store the value at the moment of the native `change` event.
|
|
30836
|
+
* @param {Event} event
|
|
30837
|
+
* @protected
|
|
30838
|
+
* @override
|
|
30839
|
+
*/
|
|
30840
|
+
_onChange(event) {
|
|
30841
|
+
super._onChange(event);
|
|
30842
|
+
|
|
30843
|
+
this.__lastChange = this.inputElement.value;
|
|
30844
|
+
}
|
|
30845
|
+
|
|
30801
30846
|
/**
|
|
30802
30847
|
* Override method inherited from `FocusMixin` to mark field as focused
|
|
30803
30848
|
* when focus moves to the reveal button using Shift Tab.
|
|
@@ -30834,6 +30879,12 @@ class PasswordField extends TextField {
|
|
|
30834
30879
|
|
|
30835
30880
|
if (!focused) {
|
|
30836
30881
|
this._setPasswordVisible(false);
|
|
30882
|
+
|
|
30883
|
+
// Detect if `focusout` was prevented and if so, dispatch `change` event manually.
|
|
30884
|
+
if (this.__lastChange !== this.inputElement.value) {
|
|
30885
|
+
this.__lastChange = this.inputElement.value;
|
|
30886
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
30887
|
+
}
|
|
30837
30888
|
} else {
|
|
30838
30889
|
const isButtonFocused = this.getRootNode().activeElement === this._revealNode;
|
|
30839
30890
|
// Remove focus-ring from the field when the reveal button gets focused
|
|
@@ -30869,10 +30920,10 @@ class PasswordField extends TextField {
|
|
|
30869
30920
|
}
|
|
30870
30921
|
|
|
30871
30922
|
/** @private */
|
|
30872
|
-
|
|
30873
|
-
// Cancel the following
|
|
30923
|
+
_onRevealButtonMouseDown(e) {
|
|
30924
|
+
// Cancel the following focusout event
|
|
30874
30925
|
e.preventDefault();
|
|
30875
|
-
|
|
30926
|
+
|
|
30876
30927
|
// Focus the input to avoid problem with password still visible
|
|
30877
30928
|
// when user clicks the reveal button and then clicks outside.
|
|
30878
30929
|
this.inputElement.focus();
|
|
@@ -30925,7 +30976,7 @@ class PasswordField extends TextField {
|
|
|
30925
30976
|
|
|
30926
30977
|
customElements.define(PasswordField.is, PasswordField);
|
|
30927
30978
|
|
|
30928
|
-
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}";
|
|
30979
|
+
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}";
|
|
30929
30980
|
|
|
30930
30981
|
const PasswordInput = class {
|
|
30931
30982
|
constructor(hostRef) {
|
|
@@ -31012,9 +31063,6 @@ const PasswordInput = class {
|
|
|
31012
31063
|
if (event.composedPath()[0] !== this.tooltipReference)
|
|
31013
31064
|
this.showTooltip = false;
|
|
31014
31065
|
}
|
|
31015
|
-
connectedCallback() {
|
|
31016
|
-
// this.validationPattern = this.setPattern();
|
|
31017
|
-
}
|
|
31018
31066
|
componentDidRender() {
|
|
31019
31067
|
// start custom styling area
|
|
31020
31068
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -31067,9 +31115,11 @@ const PasswordInput = class {
|
|
|
31067
31115
|
}
|
|
31068
31116
|
}
|
|
31069
31117
|
setErrorMessage() {
|
|
31070
|
-
var _a;
|
|
31118
|
+
var _a, _b, _c, _d;
|
|
31071
31119
|
if (this.inputReference.validity.patternMismatch) {
|
|
31072
|
-
|
|
31120
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
31121
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
31122
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
31073
31123
|
}
|
|
31074
31124
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
31075
31125
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -31078,7 +31128,9 @@ const PasswordInput = class {
|
|
|
31078
31128
|
return translate$2('requiredError', this.language);
|
|
31079
31129
|
}
|
|
31080
31130
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
31081
|
-
|
|
31131
|
+
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
31132
|
+
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
31133
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
31082
31134
|
}
|
|
31083
31135
|
}
|
|
31084
31136
|
renderTooltip() {
|
|
@@ -31092,14 +31144,12 @@ const PasswordInput = class {
|
|
|
31092
31144
|
const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
|
|
31093
31145
|
const meterValue = passedRules / totalRules;
|
|
31094
31146
|
const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
|
|
31095
|
-
|
|
31096
|
-
return;
|
|
31097
|
-
return (index.h("div", { class: `password__complexity` }, index.h("div", { class: 'password__complexity--strength' }, index.h("p", { class: 'password__complexity--text' }, translate$2('passwordStrength', this.language), "\u00A0", index.h("span", { class: 'password__complexity--text-bold' }, translate$2(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), index.h("meter", { value: meterValue, min: "0", max: "1" })), index.h("div", null, this.passwordComplexity.map((complexity, index$1) => {
|
|
31098
|
-
return (index.h("div", { key: index$1 }, index.h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), index.h("span", null, complexity.rule)));
|
|
31147
|
+
return (index.h("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, index.h("div", { class: 'password__complexity--strength' }, index.h("p", { class: 'password__complexity--text' }, translate$2('passwordStrength', this.language), "\u00A0", index.h("span", { class: 'password__complexity--text-bold' }, translate$2(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), index.h("meter", { value: meterValue, min: "0", max: "1" })), index.h("div", null, this.passwordComplexity.map((complexity, index$1) => {
|
|
31148
|
+
return (index.h("div", { key: index$1 }, index.h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), index.h("span", null, translate$2(`${complexity.rule}`, this.language) ? translate$2(`${complexity.rule}`, this.language) : complexity.rule)));
|
|
31099
31149
|
}))));
|
|
31100
31150
|
}
|
|
31101
31151
|
render() {
|
|
31102
|
-
let invalidClass;
|
|
31152
|
+
let invalidClass = '';
|
|
31103
31153
|
if (this.touched) {
|
|
31104
31154
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
31105
31155
|
}
|
|
@@ -35585,8 +35635,10 @@ const SelectInput = class {
|
|
|
35585
35635
|
componentWillLoad() {
|
|
35586
35636
|
if (this.action && !this.options.length) {
|
|
35587
35637
|
if (this.action.split(" ")[0] == 'GET') {
|
|
35588
|
-
|
|
35589
|
-
|
|
35638
|
+
const endpoint = this.action.split(" ")[1];
|
|
35639
|
+
return this.getOptions(endpoint).then((options) => {
|
|
35640
|
+
const firstKey = Object.keys(options)[0];
|
|
35641
|
+
this.displayedOptions = options[firstKey].map(option => {
|
|
35590
35642
|
return { label: option.Name, value: option.Alpha2Code };
|
|
35591
35643
|
});
|
|
35592
35644
|
});
|
|
@@ -35610,9 +35662,8 @@ const SelectInput = class {
|
|
|
35610
35662
|
this.valueHandler({ name: this.name, value: this.value });
|
|
35611
35663
|
}
|
|
35612
35664
|
}
|
|
35613
|
-
getOptions() {
|
|
35614
|
-
|
|
35615
|
-
const url = new URL("https://demo-api.stage.norway.everymatrix.com/v1/player/countries");
|
|
35665
|
+
getOptions(endpoint) {
|
|
35666
|
+
const url = new URL(endpoint);
|
|
35616
35667
|
return new Promise((resolve, reject) => {
|
|
35617
35668
|
fetch(url.href)
|
|
35618
35669
|
.then((res) => res.json())
|
|
@@ -35639,7 +35690,7 @@ const SelectInput = class {
|
|
|
35639
35690
|
return null;
|
|
35640
35691
|
}
|
|
35641
35692
|
render() {
|
|
35642
|
-
let invalidClass;
|
|
35693
|
+
let invalidClass = '';
|
|
35643
35694
|
if (this.touched) {
|
|
35644
35695
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
35645
35696
|
}
|
|
@@ -35779,9 +35830,11 @@ const TelInput = class {
|
|
|
35779
35830
|
}
|
|
35780
35831
|
}
|
|
35781
35832
|
setErrorMessage() {
|
|
35782
|
-
var _a;
|
|
35833
|
+
var _a, _b;
|
|
35783
35834
|
if (this.inputReference.validity.patternMismatch) {
|
|
35784
|
-
|
|
35835
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
35836
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
35837
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
35785
35838
|
}
|
|
35786
35839
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
35787
35840
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -35797,7 +35850,7 @@ const TelInput = class {
|
|
|
35797
35850
|
return null;
|
|
35798
35851
|
}
|
|
35799
35852
|
render() {
|
|
35800
|
-
let invalidClass;
|
|
35853
|
+
let invalidClass = '';
|
|
35801
35854
|
if (this.touched) {
|
|
35802
35855
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
35803
35856
|
}
|
|
@@ -35935,9 +35988,11 @@ const TextInput = class {
|
|
|
35935
35988
|
}
|
|
35936
35989
|
}
|
|
35937
35990
|
setErrorMessage() {
|
|
35938
|
-
var _a;
|
|
35991
|
+
var _a, _b, _c, _d;
|
|
35939
35992
|
if (this.inputReference.validity.patternMismatch) {
|
|
35940
|
-
|
|
35993
|
+
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
35994
|
+
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
35995
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
35941
35996
|
}
|
|
35942
35997
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
35943
35998
|
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
@@ -35946,7 +36001,9 @@ const TextInput = class {
|
|
|
35946
36001
|
return translate$2('requiredError', this.language);
|
|
35947
36002
|
}
|
|
35948
36003
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
35949
|
-
|
|
36004
|
+
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
36005
|
+
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
36006
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
35950
36007
|
}
|
|
35951
36008
|
}
|
|
35952
36009
|
renderTooltip() {
|
|
@@ -35956,7 +36013,7 @@ const TextInput = class {
|
|
|
35956
36013
|
return null;
|
|
35957
36014
|
}
|
|
35958
36015
|
render() {
|
|
35959
|
-
let invalidClass;
|
|
36016
|
+
let invalidClass = '';
|
|
35960
36017
|
if (this.touched) {
|
|
35961
36018
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
35962
36019
|
}
|
|
@@ -35981,10 +36038,6 @@ const ToggleCheckboxInput = class {
|
|
|
35981
36038
|
* Default value for the input.
|
|
35982
36039
|
*/
|
|
35983
36040
|
this.defaultValue = '';
|
|
35984
|
-
/**
|
|
35985
|
-
* Options of the input.
|
|
35986
|
-
*/
|
|
35987
|
-
this.options = [];
|
|
35988
36041
|
/**
|
|
35989
36042
|
* Client custom styling via inline style
|
|
35990
36043
|
*/
|
|
@@ -35998,13 +36051,9 @@ const ToggleCheckboxInput = class {
|
|
|
35998
36051
|
this.stylingContainer.prepend(sheet);
|
|
35999
36052
|
};
|
|
36000
36053
|
}
|
|
36001
|
-
validityChanged() {
|
|
36002
|
-
}
|
|
36003
36054
|
validityStateHandler(inputStateEvent) {
|
|
36004
36055
|
this.sendValidityState.emit(inputStateEvent);
|
|
36005
36056
|
}
|
|
36006
|
-
emitValueHandler(newValue) {
|
|
36007
|
-
}
|
|
36008
36057
|
valueHandler(inputValueEvent) {
|
|
36009
36058
|
this.sendInputValue.emit(inputValueEvent);
|
|
36010
36059
|
}
|
|
@@ -36014,8 +36063,6 @@ const ToggleCheckboxInput = class {
|
|
|
36014
36063
|
if (event.composedPath()[0] !== this.tooltipReference)
|
|
36015
36064
|
this.showTooltip = false;
|
|
36016
36065
|
}
|
|
36017
|
-
connectedCallback() {
|
|
36018
|
-
}
|
|
36019
36066
|
componentDidRender() {
|
|
36020
36067
|
// start custom styling area
|
|
36021
36068
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -36025,8 +36072,6 @@ const ToggleCheckboxInput = class {
|
|
|
36025
36072
|
}
|
|
36026
36073
|
// end custom styling area
|
|
36027
36074
|
}
|
|
36028
|
-
componentDidLoad() {
|
|
36029
|
-
}
|
|
36030
36075
|
handleClick() {
|
|
36031
36076
|
this.showFields = this.checkboxReference.checked;
|
|
36032
36077
|
this.errorMessage = this.setErrorMessage();
|
|
@@ -36052,13 +36097,9 @@ const ToggleCheckboxInput = class {
|
|
|
36052
36097
|
render() {
|
|
36053
36098
|
return index.h("div", { class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { class: 'togglecheckbox__wrapper--flex' }, index.h("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()), index.h("small", { class: 'togglecheckbox__error-message' }, this.errorMessage), index.h("div", { class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
|
|
36054
36099
|
index.h("img", { class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("div", { class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
|
|
36055
|
-
return index.h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language,
|
|
36100
|
+
return index.h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder });
|
|
36056
36101
|
})));
|
|
36057
36102
|
}
|
|
36058
|
-
static get watchers() { return {
|
|
36059
|
-
"isValid": ["validityChanged"],
|
|
36060
|
-
"emitValue": ["emitValueHandler"]
|
|
36061
|
-
}; }
|
|
36062
36103
|
};
|
|
36063
36104
|
ToggleCheckboxInput.style = toggleCheckboxInputCss;
|
|
36064
36105
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-c322b593.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["checkbox-group-input_13.cjs",[[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":[
|
|
18
|
+
return index.bootstrapLazy([["checkbox-group-input_13.cjs",[[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);
|
|
19
19
|
});
|
|
@@ -1318,6 +1318,7 @@ const flush = () => {
|
|
|
1318
1318
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1319
1319
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1320
1320
|
|
|
1321
|
+
exports.Host = Host;
|
|
1321
1322
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1322
1323
|
exports.createEvent = createEvent;
|
|
1323
1324
|
exports.getElement = getElement;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c322b593.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -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-group-input_13.cjs",[[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":[
|
|
17
|
+
return index.bootstrapLazy([["checkbox-group-input_13.cjs",[[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);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|