@everymatrix/general-registration 1.60.1 → 1.60.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_13.cjs.entry.js +320 -217
- package/dist/cjs/general-registration.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/general-registration/general-registration.js +129 -6
- package/dist/collection/components/general-registration/general-registration.stories.js +5 -1
- package/dist/esm/checkbox-group-input_13.entry.js +320 -217
- package/dist/esm/general-registration.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-89a98305.entry.js → p-7bd184b6.entry.js} +132 -132
- 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 +36 -0
- package/dist/types/components/general-registration/general-registration.stories.d.ts +1 -1
- package/dist/types/components.d.ts +10 -0
- package/package.json +1 -1
- 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/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /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/types/Users/{maria.bumbar/Desktop → 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/{maria.bumbar/Desktop → 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/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → 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/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -15,6 +15,10 @@ export declare class GeneralRegistration {
|
|
|
15
15
|
* Client custom styling via inline styles
|
|
16
16
|
*/
|
|
17
17
|
clientStyling: string;
|
|
18
|
+
/**
|
|
19
|
+
* Client custom styling via streamStyling
|
|
20
|
+
*/
|
|
21
|
+
mbSource: string;
|
|
18
22
|
/**
|
|
19
23
|
* Client custom styling via url
|
|
20
24
|
*/
|
|
@@ -57,10 +61,12 @@ export declare class GeneralRegistration {
|
|
|
57
61
|
setFormValidity(): void;
|
|
58
62
|
addBtag(): void;
|
|
59
63
|
private registrationID;
|
|
64
|
+
private stylingSubscription;
|
|
60
65
|
listOfInputValues: InputValue[];
|
|
61
66
|
listOfInputValidity: InputValidity[];
|
|
62
67
|
listOfActions: any[];
|
|
63
68
|
listOfInputs: any[];
|
|
69
|
+
conditionalValidationMap: Record<string, any>;
|
|
64
70
|
lastStep: string;
|
|
65
71
|
emitValue: boolean;
|
|
66
72
|
form: HTMLElement;
|
|
@@ -74,10 +80,39 @@ export declare class GeneralRegistration {
|
|
|
74
80
|
};
|
|
75
81
|
registrationWidgetLoaded: EventEmitter;
|
|
76
82
|
registrationStepUpdated: EventEmitter<string>;
|
|
83
|
+
validationChange: EventEmitter<any>;
|
|
77
84
|
checkInputsValidityHandler(event: CustomEvent<InputStateEvent>): void;
|
|
78
85
|
getInputsValueHandler(event: CustomEvent<InputValueEvent>): void;
|
|
79
86
|
componentWillLoad(): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* This function produces the conditionalValidationMap object presented below
|
|
89
|
+
*
|
|
90
|
+
* this.conditionalValidationMap =
|
|
91
|
+
* {
|
|
92
|
+
* correlationField: {
|
|
93
|
+
* correlationValue: {
|
|
94
|
+
* field: {
|
|
95
|
+
* ...validation
|
|
96
|
+
* },
|
|
97
|
+
* ...
|
|
98
|
+
* },
|
|
99
|
+
* ...
|
|
100
|
+
* },
|
|
101
|
+
* ...
|
|
102
|
+
* }
|
|
103
|
+
*
|
|
104
|
+
* - this object describes the conditional validation of some fields based on the value of others.
|
|
105
|
+
* - correlationField is the conditioning field, correlationValue is the value of the correlationField for which
|
|
106
|
+
* a certain validation is applied to the affected fields. {...validation} is an object of type ValidationSchema
|
|
107
|
+
*/
|
|
108
|
+
setupConditionalValidationMap(): void;
|
|
109
|
+
/**
|
|
110
|
+
* Whenever a field changes its value, we check if it is conditioning any other fields and
|
|
111
|
+
* if it is we update the validation of the affected fields.
|
|
112
|
+
*/
|
|
113
|
+
handleConditionalValidation(correlationField: string, correlationValue: string): void;
|
|
80
114
|
componentDidLoad(): void;
|
|
115
|
+
disconnectedCallback(): void;
|
|
81
116
|
messageHandler(e: any): void;
|
|
82
117
|
nextHandler(e: any): void;
|
|
83
118
|
backHandler(e: any): void;
|
|
@@ -94,6 +129,7 @@ export declare class GeneralRegistration {
|
|
|
94
129
|
getInvalidStatus(listOfInputs: any): boolean;
|
|
95
130
|
setClientStyling: () => void;
|
|
96
131
|
setClientStylingURL: () => void;
|
|
132
|
+
setStreamStyling: (domain: any) => void;
|
|
97
133
|
renderForm(): any[];
|
|
98
134
|
handleInitialClick: (e: any) => void;
|
|
99
135
|
renderConsents(): HTMLElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/web-components';
|
|
2
|
-
import
|
|
2
|
+
import "../../../../../../dist/packages/stencil/general-registration/dist/types/index";
|
|
3
3
|
declare const meta: Meta;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Default: any;
|
|
@@ -39,6 +39,10 @@ export namespace Components {
|
|
|
39
39
|
* Currently selected language
|
|
40
40
|
*/
|
|
41
41
|
"language": string;
|
|
42
|
+
/**
|
|
43
|
+
* Client custom styling via streamStyling
|
|
44
|
+
*/
|
|
45
|
+
"mbSource": string;
|
|
42
46
|
/**
|
|
43
47
|
* Translations via URL
|
|
44
48
|
*/
|
|
@@ -53,6 +57,7 @@ declare global {
|
|
|
53
57
|
interface HTMLGeneralRegistrationElementEventMap {
|
|
54
58
|
"registrationWidgetLoaded": any;
|
|
55
59
|
"registrationStepUpdated": string;
|
|
60
|
+
"validationChange": any;
|
|
56
61
|
}
|
|
57
62
|
interface HTMLGeneralRegistrationElement extends Components.GeneralRegistration, HTMLStencilElement {
|
|
58
63
|
addEventListener<K extends keyof HTMLGeneralRegistrationElementEventMap>(type: K, listener: (this: HTMLGeneralRegistrationElement, ev: GeneralRegistrationCustomEvent<HTMLGeneralRegistrationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -106,8 +111,13 @@ declare namespace LocalJSX {
|
|
|
106
111
|
* Currently selected language
|
|
107
112
|
*/
|
|
108
113
|
"language"?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Client custom styling via streamStyling
|
|
116
|
+
*/
|
|
117
|
+
"mbSource"?: string;
|
|
109
118
|
"onRegistrationStepUpdated"?: (event: GeneralRegistrationCustomEvent<string>) => void;
|
|
110
119
|
"onRegistrationWidgetLoaded"?: (event: GeneralRegistrationCustomEvent<any>) => void;
|
|
120
|
+
"onValidationChange"?: (event: GeneralRegistrationCustomEvent<any>) => void;
|
|
111
121
|
/**
|
|
112
122
|
* Translations via URL
|
|
113
123
|
*/
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|