@everymatrix/general-registration 1.60.1 → 1.61.0
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 +296 -212
- 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 +88 -1
- package/dist/esm/checkbox-group-input_13.entry.js +296 -212
- 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-6bdde858.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 +29 -0
- package/dist/types/components.d.ts +2 -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
|
@@ -61,6 +61,7 @@ export declare class GeneralRegistration {
|
|
|
61
61
|
listOfInputValidity: InputValidity[];
|
|
62
62
|
listOfActions: any[];
|
|
63
63
|
listOfInputs: any[];
|
|
64
|
+
conditionalValidationMap: Record<string, any>;
|
|
64
65
|
lastStep: string;
|
|
65
66
|
emitValue: boolean;
|
|
66
67
|
form: HTMLElement;
|
|
@@ -74,9 +75,37 @@ export declare class GeneralRegistration {
|
|
|
74
75
|
};
|
|
75
76
|
registrationWidgetLoaded: EventEmitter;
|
|
76
77
|
registrationStepUpdated: EventEmitter<string>;
|
|
78
|
+
validationChange: EventEmitter<any>;
|
|
77
79
|
checkInputsValidityHandler(event: CustomEvent<InputStateEvent>): void;
|
|
78
80
|
getInputsValueHandler(event: CustomEvent<InputValueEvent>): void;
|
|
79
81
|
componentWillLoad(): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* This function produces the conditionalValidationMap object presented below
|
|
84
|
+
*
|
|
85
|
+
* this.conditionalValidationMap =
|
|
86
|
+
* {
|
|
87
|
+
* correlationField: {
|
|
88
|
+
* correlationValue: {
|
|
89
|
+
* field: {
|
|
90
|
+
* ...validation
|
|
91
|
+
* },
|
|
92
|
+
* ...
|
|
93
|
+
* },
|
|
94
|
+
* ...
|
|
95
|
+
* },
|
|
96
|
+
* ...
|
|
97
|
+
* }
|
|
98
|
+
*
|
|
99
|
+
* - this object describes the conditional validation of some fields based on the value of others.
|
|
100
|
+
* - correlationField is the conditioning field, correlationValue is the value of the correlationField for which
|
|
101
|
+
* a certain validation is applied to the affected fields. {...validation} is an object of type ValidationSchema
|
|
102
|
+
*/
|
|
103
|
+
setupConditionalValidationMap(): void;
|
|
104
|
+
/**
|
|
105
|
+
* Whenever a field changes its value, we check if it is conditioning any other fields and
|
|
106
|
+
* if it is we update the validation of the affected fields.
|
|
107
|
+
*/
|
|
108
|
+
handleConditionalValidation(correlationField: string, correlationValue: string): void;
|
|
80
109
|
componentDidLoad(): void;
|
|
81
110
|
messageHandler(e: any): void;
|
|
82
111
|
nextHandler(e: any): void;
|
|
@@ -53,6 +53,7 @@ declare global {
|
|
|
53
53
|
interface HTMLGeneralRegistrationElementEventMap {
|
|
54
54
|
"registrationWidgetLoaded": any;
|
|
55
55
|
"registrationStepUpdated": string;
|
|
56
|
+
"validationChange": any;
|
|
56
57
|
}
|
|
57
58
|
interface HTMLGeneralRegistrationElement extends Components.GeneralRegistration, HTMLStencilElement {
|
|
58
59
|
addEventListener<K extends keyof HTMLGeneralRegistrationElementEventMap>(type: K, listener: (this: HTMLGeneralRegistrationElement, ev: GeneralRegistrationCustomEvent<HTMLGeneralRegistrationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -108,6 +109,7 @@ declare namespace LocalJSX {
|
|
|
108
109
|
"language"?: string;
|
|
109
110
|
"onRegistrationStepUpdated"?: (event: GeneralRegistrationCustomEvent<string>) => void;
|
|
110
111
|
"onRegistrationWidgetLoaded"?: (event: GeneralRegistrationCustomEvent<any>) => void;
|
|
112
|
+
"onValidationChange"?: (event: GeneralRegistrationCustomEvent<any>) => void;
|
|
111
113
|
/**
|
|
112
114
|
* Translations via URL
|
|
113
115
|
*/
|
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
|