@everymatrix/general-registration 1.65.3 → 1.65.5
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 +283 -291
- package/dist/collection/components/general-registration/general-registration.css +6 -1
- package/dist/collection/components/general-registration/general-registration.js +9 -6
- package/dist/esm/checkbox-group-input_13.entry.js +283 -291
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-18d74eb7.entry.js → p-aece0d4d.entry.js} +217 -231
- package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +19 -0
- package/package.json +1 -1
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
.registration__error-message {
|
|
30
30
|
color: var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
31
|
-
font-size: 13px;
|
|
31
|
+
font-size: var(--emw-font-size-small, 13px);
|
|
32
32
|
display: block;
|
|
33
33
|
justify-content: center;
|
|
34
34
|
text-align: center;
|
|
@@ -100,6 +100,11 @@
|
|
|
100
100
|
animation: dash 1.5s ease-in-out infinite;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
.input-description {
|
|
104
|
+
margin-top: 5px;
|
|
105
|
+
font-size: var(--emw-font-size-x-small, 12px);
|
|
106
|
+
}
|
|
107
|
+
|
|
103
108
|
@keyframes rotate {
|
|
104
109
|
100% {
|
|
105
110
|
transform: rotate(360deg);
|
|
@@ -351,7 +351,7 @@ export class GeneralRegistration {
|
|
|
351
351
|
}
|
|
352
352
|
setRegisterStep() {
|
|
353
353
|
this.isLoadingPOST = true;
|
|
354
|
-
const url = new URL(
|
|
354
|
+
const url = new URL('/v1/player/legislation/registration/step/', this.endpoint);
|
|
355
355
|
const registerStep = {
|
|
356
356
|
registrationId: this.registrationID,
|
|
357
357
|
registerUserDto: this.listOfInputValues
|
|
@@ -714,11 +714,14 @@ export class GeneralRegistration {
|
|
|
714
714
|
}
|
|
715
715
|
renderForm() {
|
|
716
716
|
return this.forms.map((form, index) => {
|
|
717
|
-
return h("form", { action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index + 1}` ? 'hidden' : ''}`, ref: el => this.form = el, onClick: this.handleInitialClick }, form[this.registrationStep] && form[this.registrationStep].map(input =>
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
717
|
+
return h("form", { action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index + 1}` ? 'hidden' : ''}`, ref: el => this.form = el, onClick: this.handleInitialClick }, form[this.registrationStep] && form[this.registrationStep].map((input) => {
|
|
718
|
+
var _a;
|
|
719
|
+
return h("div", { key: input.name, class: "input-wrapper" }, h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
|
|
720
|
+
? (input.inputType.toLowerCase() === 'checkboxgroup' || input.inputType.toLowerCase() === 'togglecheckbox')
|
|
721
|
+
? input.data.subFields
|
|
722
|
+
: input.data.values
|
|
723
|
+
: [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder, dateFormat: this.dateFormat, "translation-url": this.translationUrl, emitOnClick: this.emitOnClick, onClick: this.handleInitialClick }), ((_a = input.customInfo) === null || _a === void 0 ? void 0 : _a.description) && (h("div", { class: "input-description" }, input.customInfo.description)));
|
|
724
|
+
}), this.isConsentReady && this.renderConsents(), this.buttonInsideForm && this.renderButtons(), h("div", { class: 'registration__wrapper--flex' }, h("p", { class: 'registration__error-message', innerHTML: this.errorMessage })));
|
|
722
725
|
});
|
|
723
726
|
}
|
|
724
727
|
;
|