@everymatrix/general-registration 1.90.24 → 1.90.25
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/{GeneralAnimationLoading-DvwHUxLh-2326dad2.js → GeneralAnimationLoading-lTLzF5jR-8645dd28.js} +20 -20
- package/dist/cjs/{PlayerConsents-C93YUnq0-af99ac14.js → PlayerConsents-Duni8Aqx-1d0f4f21.js} +507 -479
- package/dist/cjs/checkbox-group-input_15.cjs.entry.js +96 -45
- package/dist/esm/{GeneralAnimationLoading-DvwHUxLh-4d6766a1.js → GeneralAnimationLoading-lTLzF5jR-501a49e3.js} +7 -7
- package/dist/esm/{PlayerConsents-C93YUnq0-2e7ff8d3.js → PlayerConsents-Duni8Aqx-dd7cf325.js} +501 -473
- package/dist/esm/checkbox-group-input_15.entry.js +96 -45
- package/dist/general-registration/{GeneralAnimationLoading-DvwHUxLh-4d6766a1.js → GeneralAnimationLoading-lTLzF5jR-501a49e3.js} +1 -1
- package/dist/general-registration/{PlayerConsents-C93YUnq0-2e7ff8d3.js → PlayerConsents-Duni8Aqx-dd7cf325.js} +1 -1
- package/dist/general-registration/checkbox-group-input_15.entry.js +58 -58
- package/package.json +1 -1
|
@@ -14516,7 +14516,7 @@ if (typeof window != "undefined") {
|
|
|
14516
14516
|
}
|
|
14517
14517
|
};
|
|
14518
14518
|
};
|
|
14519
|
-
customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-
|
|
14519
|
+
customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-Duni8Aqx-1d0f4f21.js'); }).then((e) => e.P).then(({ default: e }) => {
|
|
14520
14520
|
!customElements.get("player-consents") && customElements.define("player-consents", e.element);
|
|
14521
14521
|
});
|
|
14522
14522
|
}
|
|
@@ -16620,6 +16620,7 @@ const TelInput = class {
|
|
|
16620
16620
|
}
|
|
16621
16621
|
this.debounceTime = setTimeout(() => {
|
|
16622
16622
|
this.isValid = this.isValidValue();
|
|
16623
|
+
this.applyCustomError();
|
|
16623
16624
|
this.errorMessage = this.setErrorMessage();
|
|
16624
16625
|
this.emitValueHandler(true);
|
|
16625
16626
|
}, 500);
|
|
@@ -16627,6 +16628,7 @@ const TelInput = class {
|
|
|
16627
16628
|
this.handleBlur = () => {
|
|
16628
16629
|
this.touched = true;
|
|
16629
16630
|
this.isValid = this.isValidValue();
|
|
16631
|
+
this.applyCustomError();
|
|
16630
16632
|
this.errorMessage = this.setErrorMessage();
|
|
16631
16633
|
};
|
|
16632
16634
|
this.name = undefined;
|
|
@@ -16684,6 +16686,60 @@ const TelInput = class {
|
|
|
16684
16686
|
this.showTooltip = false;
|
|
16685
16687
|
}
|
|
16686
16688
|
}
|
|
16689
|
+
resetValidationState() {
|
|
16690
|
+
this.lastCustomErrorKey = undefined;
|
|
16691
|
+
this.lastCustomErrorMessage = undefined;
|
|
16692
|
+
this.inputReference.setCustomValidity('');
|
|
16693
|
+
}
|
|
16694
|
+
isMissingValue(value) {
|
|
16695
|
+
return this.validation.mandatory && value === '';
|
|
16696
|
+
}
|
|
16697
|
+
isFixedLength(value) {
|
|
16698
|
+
const min = this.validation.minLength;
|
|
16699
|
+
const max = this.validation.maxLength;
|
|
16700
|
+
return !!(min && max && min === max && value.length !== min);
|
|
16701
|
+
}
|
|
16702
|
+
isTooShort(value) {
|
|
16703
|
+
const min = this.validation.minLength;
|
|
16704
|
+
return !!(min && value.length < min);
|
|
16705
|
+
}
|
|
16706
|
+
isTooLong(value) {
|
|
16707
|
+
const max = this.validation.maxLength;
|
|
16708
|
+
return !!(max && value.length > max);
|
|
16709
|
+
}
|
|
16710
|
+
failsPattern(value) {
|
|
16711
|
+
if (!this.validationPattern)
|
|
16712
|
+
return false;
|
|
16713
|
+
let patternRegex;
|
|
16714
|
+
try {
|
|
16715
|
+
patternRegex = new RegExp(this.validationPattern);
|
|
16716
|
+
}
|
|
16717
|
+
catch (e) {
|
|
16718
|
+
console.warn('Invalid validationPattern:', this.validationPattern, e);
|
|
16719
|
+
return false;
|
|
16720
|
+
}
|
|
16721
|
+
return !patternRegex.test(value);
|
|
16722
|
+
}
|
|
16723
|
+
failsCustomRules(value) {
|
|
16724
|
+
const customs = (this.validation.custom || [])
|
|
16725
|
+
.filter(c => c.rule === 'regex' && c.pattern);
|
|
16726
|
+
// Skip the first rule (already validated in failsPattern)
|
|
16727
|
+
const [, ...additionalRules] = customs;
|
|
16728
|
+
for (const rule of additionalRules) {
|
|
16729
|
+
let regex;
|
|
16730
|
+
try {
|
|
16731
|
+
regex = new RegExp(rule.pattern);
|
|
16732
|
+
}
|
|
16733
|
+
catch (e) {
|
|
16734
|
+
console.warn('Invalid regex pattern:', rule.pattern, e);
|
|
16735
|
+
continue;
|
|
16736
|
+
}
|
|
16737
|
+
if (!regex.test(value)) {
|
|
16738
|
+
return true;
|
|
16739
|
+
}
|
|
16740
|
+
}
|
|
16741
|
+
return false;
|
|
16742
|
+
}
|
|
16687
16743
|
connectedCallback() {
|
|
16688
16744
|
var _a;
|
|
16689
16745
|
this.validationPattern = this.setPattern();
|
|
@@ -16746,52 +16802,26 @@ const TelInput = class {
|
|
|
16746
16802
|
this.emitValueHandler(true);
|
|
16747
16803
|
}
|
|
16748
16804
|
isValidValue() {
|
|
16749
|
-
|
|
16805
|
+
var _a, _b;
|
|
16806
|
+
if (!this.inputReference)
|
|
16750
16807
|
return false;
|
|
16751
|
-
|
|
16752
|
-
this.
|
|
16753
|
-
|
|
16754
|
-
this.
|
|
16755
|
-
if (this.validation.mandatory && (!this.phoneValue || this.phoneValue.trim() === '')) {
|
|
16808
|
+
this.resetValidationState();
|
|
16809
|
+
const value = (_b = (_a = this.phoneValue) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
|
|
16810
|
+
const isEmpty = value === '';
|
|
16811
|
+
if (this.isMissingValue(value))
|
|
16756
16812
|
return false;
|
|
16757
|
-
|
|
16758
|
-
|
|
16759
|
-
|
|
16760
|
-
}
|
|
16761
|
-
if (this.validation.minLength && this.phoneValue.length < this.validation.minLength) {
|
|
16813
|
+
if (isEmpty)
|
|
16814
|
+
return true;
|
|
16815
|
+
if (this.isFixedLength(value))
|
|
16762
16816
|
return false;
|
|
16763
|
-
|
|
16764
|
-
|
|
16817
|
+
if (this.isTooShort(value))
|
|
16818
|
+
return false;
|
|
16819
|
+
if (this.isTooLong(value))
|
|
16820
|
+
return false;
|
|
16821
|
+
if (this.failsPattern(value))
|
|
16822
|
+
return false;
|
|
16823
|
+
if (this.failsCustomRules(value))
|
|
16765
16824
|
return false;
|
|
16766
|
-
}
|
|
16767
|
-
if (this.validationPattern) {
|
|
16768
|
-
const patternRegex = new RegExp(this.validationPattern);
|
|
16769
|
-
if (!patternRegex.test(this.phoneValue)) {
|
|
16770
|
-
return false;
|
|
16771
|
-
}
|
|
16772
|
-
}
|
|
16773
|
-
if (this.enableCustomRegexValidation) {
|
|
16774
|
-
const customs = (this.validation.custom || []).filter(c => c.rule === 'regex' && c.pattern);
|
|
16775
|
-
if (customs.length > 1) {
|
|
16776
|
-
// First regex is used as <input> pattern; validate only the remaining rules here
|
|
16777
|
-
const additionalRules = customs.slice(1);
|
|
16778
|
-
for (const rule of additionalRules) {
|
|
16779
|
-
let regex;
|
|
16780
|
-
try {
|
|
16781
|
-
regex = new RegExp(rule.pattern);
|
|
16782
|
-
}
|
|
16783
|
-
catch (_a) {
|
|
16784
|
-
continue;
|
|
16785
|
-
}
|
|
16786
|
-
if (!regex.test(this.phoneValue)) {
|
|
16787
|
-
this.lastCustomErrorKey = rule.errorKey;
|
|
16788
|
-
this.lastCustomErrorMessage = rule.errorMessage;
|
|
16789
|
-
this.inputReference.setCustomValidity('customError');
|
|
16790
|
-
return false;
|
|
16791
|
-
}
|
|
16792
|
-
}
|
|
16793
|
-
}
|
|
16794
|
-
}
|
|
16795
16825
|
return true;
|
|
16796
16826
|
}
|
|
16797
16827
|
setPattern() {
|
|
@@ -16833,6 +16863,27 @@ const TelInput = class {
|
|
|
16833
16863
|
return translated ? translated : (this.lastCustomErrorMessage || '');
|
|
16834
16864
|
}
|
|
16835
16865
|
}
|
|
16866
|
+
applyCustomError() {
|
|
16867
|
+
const customs = (this.validation.custom || [])
|
|
16868
|
+
.filter(c => c.rule === 'regex' && c.pattern);
|
|
16869
|
+
const [, ...additionalRules] = customs;
|
|
16870
|
+
for (const rule of additionalRules) {
|
|
16871
|
+
let regex;
|
|
16872
|
+
try {
|
|
16873
|
+
regex = new RegExp(rule.pattern);
|
|
16874
|
+
}
|
|
16875
|
+
catch (e) {
|
|
16876
|
+
console.warn('[applyCustomError] invalid regex pattern:', rule.pattern, e);
|
|
16877
|
+
continue;
|
|
16878
|
+
}
|
|
16879
|
+
if (!regex.test(this.phoneValue)) {
|
|
16880
|
+
this.lastCustomErrorKey = rule.errorKey;
|
|
16881
|
+
this.lastCustomErrorMessage = rule.errorMessage;
|
|
16882
|
+
this.inputReference.setCustomValidity('customError');
|
|
16883
|
+
return;
|
|
16884
|
+
}
|
|
16885
|
+
}
|
|
16886
|
+
}
|
|
16836
16887
|
renderTooltip() {
|
|
16837
16888
|
if (this.showTooltip) {
|
|
16838
16889
|
return (index.h("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
@@ -16845,8 +16896,8 @@ const TelInput = class {
|
|
|
16845
16896
|
if (this.touched) {
|
|
16846
16897
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
16847
16898
|
}
|
|
16848
|
-
return index.h("div", { key: '
|
|
16849
|
-
index.h("img", { key: '
|
|
16899
|
+
return index.h("div", { key: '82da44bb2bacec9efb3631e377978d678e766919', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '4ca8d6dde2d3f8e15e2d26d593297519e0c94053', class: 'tel__wrapper--flex-label' }, index.h("label", { key: '3b0e2736fd47537b2ecd80cf49a146992d59474e', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '1577aafc7b68128e91cdfe9ddc563bbad9d7b901', class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
16900
|
+
index.h("img", { key: 'cb6576e1248fc52f937c685d59d994a1d098d7cc', class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("div", { key: 'a1e9f3c68691fbb61947cd41c0ffddcd124b4bbb', class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { key: '9aa33a487f019ee7393e29a0ce0d1836a23f5e09', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.disablePhonePrefix, onChange: (e) => this.handlePrefixInput(e) }), index.h("input", { key: '21d69c041b9a5f5f6fb1e6d7b392945cafe99e87', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: (_a = this.phoneValue) !== null && _a !== void 0 ? _a : '', placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), index.h("small", { key: '76febe89ad7ee581eb5fc79658d81123da08ccdd', class: 'tel__error-message' }, this.errorMessage));
|
|
16850
16901
|
}
|
|
16851
16902
|
static get watchers() { return {
|
|
16852
16903
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as ar, i as nr, s as _t, f as X, k as or, a as
|
|
1
|
+
import { S as ar, i as nr, s as _t, f as X, k as or, a as cn, e as T, b as L$1, n as $, d as O, o as gn, g as Tn, h as Mn, j as Nn, c as Re } from './PlayerConsents-Duni8Aqx-dd7cf325.js';
|
|
2
2
|
|
|
3
3
|
function L(t) {
|
|
4
|
-
|
|
4
|
+
cn(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
5
5
|
}
|
|
6
6
|
function j(t) {
|
|
7
7
|
let i;
|
|
8
8
|
return {
|
|
9
9
|
c() {
|
|
10
|
-
i =
|
|
10
|
+
i = T("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
11
11
|
},
|
|
12
12
|
m(n, l) {
|
|
13
13
|
L$1(n, i, l), t[4](i);
|
|
@@ -22,7 +22,7 @@ function j(t) {
|
|
|
22
22
|
}
|
|
23
23
|
function w(t, i, n) {
|
|
24
24
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s, o;
|
|
25
|
-
|
|
25
|
+
gn(() => () => {
|
|
26
26
|
});
|
|
27
27
|
function u(e) {
|
|
28
28
|
Re[e ? "unshift" : "push"](() => {
|
|
@@ -33,9 +33,9 @@ function w(t, i, n) {
|
|
|
33
33
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
34
34
|
}, t.$$.update = () => {
|
|
35
35
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
36
|
-
3 && l && s &&
|
|
37
|
-
5 && a && s &&
|
|
38
|
-
9 && r && s &&
|
|
36
|
+
3 && l && s && Tn(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
37
|
+
5 && a && s && Mn(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
38
|
+
9 && r && s && Nn(s, `${r}.Style`, o);
|
|
39
39
|
}, [
|
|
40
40
|
s,
|
|
41
41
|
l,
|