@everymatrix/general-registration 1.53.0 → 1.53.10
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_14.cjs.entry.js → checkbox-group-input_13.cjs.entry.js} +1820 -991
- package/dist/cjs/general-registration.cjs.js +3 -3
- package/dist/cjs/{index-e11c50f2.js → index-ed891a0d.js} +177 -80
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -7
- package/dist/collection/components/general-registration/general-registration.js +50 -21
- package/dist/esm/{checkbox-group-input_14.entry.js → checkbox-group-input_13.entry.js} +1868 -1038
- package/dist/esm/general-registration.js +4 -4
- package/dist/esm/{index-a3724f84.js → index-d069ae9e.js} +177 -80
- package/dist/esm/loader.js +3 -3
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/p-30224c7b.js +2 -0
- package/dist/general-registration/{p-0925f5f9.entry.js → p-a04c166c.entry.js} +1878 -892
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-registration/general-registration.d.ts +1 -1
- package/package.json +1 -1
- package/dist/general-registration/p-0095c1dc.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed891a0d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["checkbox-group-
|
|
11
|
+
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"],"btag":[513],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isFormValid":[32],"isConsentValid":[32],"isConsentReady":[32],"isLoading":[32],"isLoadingPOST":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32],"autofilled":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"],[8,"message","messageHandler"]],{"registrationStep":["sendStep"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"forms":["setFormValidity"],"btag":["addBtag"]}],[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"],"translationUrl":[513,"translation-url"],"emitOnClick":[516,"emit-on-click"]}],[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"]],{"isValid":["validityChanged"],"selectedValues":["setValue"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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"],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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],"value":[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"value":["valueChanged"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[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"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -4,16 +4,10 @@
|
|
|
4
4
|
],
|
|
5
5
|
"compiler": {
|
|
6
6
|
"name": "@stencil/core",
|
|
7
|
-
"version": "4.
|
|
7
|
+
"version": "4.25.1",
|
|
8
8
|
"typescriptVersion": "5.5.4"
|
|
9
9
|
},
|
|
10
10
|
"collections": [
|
|
11
|
-
{
|
|
12
|
-
"name": "@everymatrix/general-consents",
|
|
13
|
-
"tags": [
|
|
14
|
-
"general-consents"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
11
|
{
|
|
18
12
|
"name": "@everymatrix/general-input",
|
|
19
13
|
"tags": [
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { getTranslations, translate, TRANSLATIONS, DEFAULT_LANGUAGE } from "../../utils/locale.utils";
|
|
3
3
|
import "../../../../../general-input/dist/types/index";
|
|
4
|
-
import "
|
|
4
|
+
import "@everymatrix/player-consents/dist";
|
|
5
5
|
export class GeneralRegistration {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Currently selected language
|
|
9
|
+
*/
|
|
10
|
+
this.language = 'en';
|
|
11
|
+
/**
|
|
12
|
+
* Client custom styling via inline styles
|
|
13
|
+
*/
|
|
14
|
+
this.clientStyling = '';
|
|
15
|
+
/**
|
|
16
|
+
* Client custom styling via url
|
|
17
|
+
*/
|
|
18
|
+
this.clientStylingUrl = '';
|
|
19
|
+
/**
|
|
20
|
+
* Translations via URL
|
|
21
|
+
*/
|
|
22
|
+
this.translationUrl = '';
|
|
23
|
+
/**
|
|
24
|
+
* Affiliate code to be passed in and sent in the registration.
|
|
25
|
+
*/
|
|
26
|
+
this.btag = null;
|
|
27
|
+
/**
|
|
28
|
+
* Boolean flag that tells inputs to emit an event on click.
|
|
29
|
+
*/
|
|
30
|
+
this.emitOnClick = false;
|
|
31
|
+
this.isConsentValid = false;
|
|
32
|
+
this.isConsentReady = false;
|
|
33
|
+
this.isLoading = true;
|
|
34
|
+
this.forms = [];
|
|
35
|
+
this.limitStylingAppends = false;
|
|
36
|
+
this.autofilled = false;
|
|
7
37
|
this.listOfInputValues = [];
|
|
8
38
|
this.listOfInputValidity = [];
|
|
9
39
|
this.listOfActions = [];
|
|
@@ -31,25 +61,6 @@ export class GeneralRegistration {
|
|
|
31
61
|
setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
|
|
32
62
|
});
|
|
33
63
|
};
|
|
34
|
-
this.endpoint = undefined;
|
|
35
|
-
this.language = 'en';
|
|
36
|
-
this.clientStyling = '';
|
|
37
|
-
this.clientStylingUrl = '';
|
|
38
|
-
this.translationUrl = '';
|
|
39
|
-
this.dateFormat = undefined;
|
|
40
|
-
this.buttonInsideForm = undefined;
|
|
41
|
-
this.btag = null;
|
|
42
|
-
this.emitOnClick = false;
|
|
43
|
-
this.errorMessage = undefined;
|
|
44
|
-
this.isFormValid = undefined;
|
|
45
|
-
this.isConsentValid = false;
|
|
46
|
-
this.isConsentReady = false;
|
|
47
|
-
this.isLoading = true;
|
|
48
|
-
this.isLoadingPOST = undefined;
|
|
49
|
-
this.registrationStep = undefined;
|
|
50
|
-
this.forms = [];
|
|
51
|
-
this.limitStylingAppends = false;
|
|
52
|
-
this.autofilled = false;
|
|
53
64
|
}
|
|
54
65
|
sendStep() {
|
|
55
66
|
this.registrationStepUpdated.emit(this.registrationStep);
|
|
@@ -582,7 +593,7 @@ export class GeneralRegistration {
|
|
|
582
593
|
}
|
|
583
594
|
;
|
|
584
595
|
renderConsents() {
|
|
585
|
-
return (h("div", { class: "consentsContainer" }, h("
|
|
596
|
+
return (h("div", { class: "consentsContainer" }, h("player-consents", { endpoint: this.endpoint })));
|
|
586
597
|
}
|
|
587
598
|
renderButtons() {
|
|
588
599
|
return (h("div", { class: `registration__buttons-wrapper ${this.autofilled ? 'registration__buttons-wrapper--autofilled' : ''}` }, this.isLoadingPOST
|
|
@@ -623,6 +634,8 @@ export class GeneralRegistration {
|
|
|
623
634
|
"tags": [],
|
|
624
635
|
"text": "NorWAy Endpoint for all the calls."
|
|
625
636
|
},
|
|
637
|
+
"getter": false,
|
|
638
|
+
"setter": false,
|
|
626
639
|
"attribute": "endpoint",
|
|
627
640
|
"reflect": true
|
|
628
641
|
},
|
|
@@ -640,6 +653,8 @@ export class GeneralRegistration {
|
|
|
640
653
|
"tags": [],
|
|
641
654
|
"text": "Currently selected language"
|
|
642
655
|
},
|
|
656
|
+
"getter": false,
|
|
657
|
+
"setter": false,
|
|
643
658
|
"attribute": "language",
|
|
644
659
|
"reflect": true,
|
|
645
660
|
"defaultValue": "'en'"
|
|
@@ -658,6 +673,8 @@ export class GeneralRegistration {
|
|
|
658
673
|
"tags": [],
|
|
659
674
|
"text": "Client custom styling via inline styles"
|
|
660
675
|
},
|
|
676
|
+
"getter": false,
|
|
677
|
+
"setter": false,
|
|
661
678
|
"attribute": "client-styling",
|
|
662
679
|
"reflect": true,
|
|
663
680
|
"defaultValue": "''"
|
|
@@ -676,6 +693,8 @@ export class GeneralRegistration {
|
|
|
676
693
|
"tags": [],
|
|
677
694
|
"text": "Client custom styling via url"
|
|
678
695
|
},
|
|
696
|
+
"getter": false,
|
|
697
|
+
"setter": false,
|
|
679
698
|
"attribute": "client-styling-url",
|
|
680
699
|
"reflect": true,
|
|
681
700
|
"defaultValue": "''"
|
|
@@ -694,6 +713,8 @@ export class GeneralRegistration {
|
|
|
694
713
|
"tags": [],
|
|
695
714
|
"text": "Translations via URL"
|
|
696
715
|
},
|
|
716
|
+
"getter": false,
|
|
717
|
+
"setter": false,
|
|
697
718
|
"attribute": "translation-url",
|
|
698
719
|
"reflect": true,
|
|
699
720
|
"defaultValue": "''"
|
|
@@ -712,6 +733,8 @@ export class GeneralRegistration {
|
|
|
712
733
|
"tags": [],
|
|
713
734
|
"text": "Date format for date picker"
|
|
714
735
|
},
|
|
736
|
+
"getter": false,
|
|
737
|
+
"setter": false,
|
|
715
738
|
"attribute": "date-format",
|
|
716
739
|
"reflect": true
|
|
717
740
|
},
|
|
@@ -729,6 +752,8 @@ export class GeneralRegistration {
|
|
|
729
752
|
"tags": [],
|
|
730
753
|
"text": "Boolean that decides the position of the button. e.g. button inside -- true / outside -- false the form."
|
|
731
754
|
},
|
|
755
|
+
"getter": false,
|
|
756
|
+
"setter": false,
|
|
732
757
|
"attribute": "button-inside-form",
|
|
733
758
|
"reflect": true
|
|
734
759
|
},
|
|
@@ -746,6 +771,8 @@ export class GeneralRegistration {
|
|
|
746
771
|
"tags": [],
|
|
747
772
|
"text": "Affiliate code to be passed in and sent in the registration."
|
|
748
773
|
},
|
|
774
|
+
"getter": false,
|
|
775
|
+
"setter": false,
|
|
749
776
|
"attribute": "btag",
|
|
750
777
|
"reflect": true,
|
|
751
778
|
"defaultValue": "null"
|
|
@@ -764,6 +791,8 @@ export class GeneralRegistration {
|
|
|
764
791
|
"tags": [],
|
|
765
792
|
"text": "Boolean flag that tells inputs to emit an event on click."
|
|
766
793
|
},
|
|
794
|
+
"getter": false,
|
|
795
|
+
"setter": false,
|
|
767
796
|
"attribute": "emit-on-click",
|
|
768
797
|
"reflect": true,
|
|
769
798
|
"defaultValue": "false"
|