@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.
Files changed (24) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +296 -212
  2. package/dist/cjs/general-registration.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/general-registration/general-registration.js +88 -1
  5. package/dist/esm/checkbox-group-input_13.entry.js +296 -212
  6. package/dist/esm/general-registration.js +1 -1
  7. package/dist/esm/loader.js +1 -1
  8. package/dist/general-registration/general-registration.esm.js +1 -1
  9. package/dist/general-registration/{p-89a98305.entry.js → p-6bdde858.entry.js} +132 -132
  10. 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
  11. 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
  12. package/dist/types/components/general-registration/general-registration.d.ts +29 -0
  13. package/dist/types/components.d.ts +2 -0
  14. package/package.json +1 -1
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  16. 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
  17. /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
  18. /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
  19. /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
  20. /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
  21. /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
  22. /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
  23. /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
  24. /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
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-registration",
3
- "version": "1.60.1",
3
+ "version": "1.61.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;