@everymatrix/general-registration 1.0.69

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 (45) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +39141 -0
  3. package/dist/cjs/general-registration.cjs.js +25 -0
  4. package/dist/cjs/index-f6c5854f.js +1331 -0
  5. package/dist/cjs/index.cjs.js +18 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/collection/collection-manifest.json +30 -0
  8. package/dist/collection/components/general-registration/general-registration.css +121 -0
  9. package/dist/collection/components/general-registration/general-registration.js +781 -0
  10. package/dist/collection/components/general-registration/index.js +1 -0
  11. package/dist/collection/index.js +17 -0
  12. package/dist/collection/utils/locale.utils.js +108 -0
  13. package/dist/collection/utils/utils.js +3 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/checkbox-group-input_13.entry.js +39125 -0
  16. package/dist/esm/general-registration.js +20 -0
  17. package/dist/esm/index-8b4a4c93.js +1302 -0
  18. package/dist/esm/index.js +16 -0
  19. package/dist/esm/loader.js +11 -0
  20. package/dist/general-registration/general-registration.esm.js +1 -0
  21. package/dist/general-registration/index.esm.js +1 -0
  22. package/dist/general-registration/p-35ed5ec5.js +2 -0
  23. package/dist/general-registration/p-9dd69761.entry.js +5431 -0
  24. package/dist/general-registration/p-e1255160.js +1 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +87 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  31. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  32. package/dist/types/components/general-registration/general-registration.d.ts +95 -0
  33. package/dist/types/components/general-registration/index.d.ts +1 -0
  34. package/dist/types/components.d.ts +127 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  37. package/dist/types/utils/locale.utils.d.ts +18 -0
  38. package/dist/types/utils/utils.d.ts +1 -0
  39. package/loader/cdn.js +1 -0
  40. package/loader/index.cjs.js +1 -0
  41. package/loader/index.d.ts +24 -0
  42. package/loader/index.es2017.js +1 -0
  43. package/loader/index.js +2 -0
  44. package/loader/package.json +11 -0
  45. package/package.json +29 -0
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'general-registration',
4
+ taskQueue: 'async',
5
+ sourceMap: true,
6
+ minifyJs: false,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www',
14
+ serviceWorker: null // disable service workers
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'general-registration',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,87 @@
1
+ export interface RegistrationConfig {
2
+ type: string;
3
+ content: RegCfgContent;
4
+ }
5
+ interface RegCfgContent {
6
+ actions: string[];
7
+ fields: RegCfgContentField[];
8
+ registrationID: string;
9
+ step: string;
10
+ }
11
+ export interface RegCfgContentField {
12
+ action: string;
13
+ autofill: boolean;
14
+ data?: Values;
15
+ defaultValue: string;
16
+ inputType: string;
17
+ tooltip: string;
18
+ multiple: false;
19
+ name: string;
20
+ readOnly: boolean;
21
+ displayName: string;
22
+ placeholder?: string;
23
+ validate: ValidationSchema;
24
+ }
25
+ export interface ValidationSchema {
26
+ mandatory: boolean;
27
+ type?: string;
28
+ custom?: CustomValidationRules[];
29
+ minLength?: number;
30
+ maxLength?: number;
31
+ min?: number;
32
+ max?: number;
33
+ }
34
+ export interface CustomValidationRules {
35
+ rule: string;
36
+ errorMessage: string;
37
+ errorKey: string;
38
+ pattern?: string;
39
+ displayName?: string;
40
+ }
41
+ export interface CustomRule {
42
+ rule: string;
43
+ errorMessage: string;
44
+ }
45
+ interface Values {
46
+ values?: Option[];
47
+ subFields?: RegCfgContentField[];
48
+ }
49
+ export interface Option {
50
+ value: string;
51
+ label: string;
52
+ }
53
+ export interface InputStateEvent {
54
+ valid: boolean;
55
+ name: string;
56
+ }
57
+ export interface InputValueEvent {
58
+ value: string;
59
+ name: string;
60
+ type?: string;
61
+ }
62
+ export interface InputValue {
63
+ value: string;
64
+ name: string;
65
+ isDuplicate: boolean;
66
+ type?: string;
67
+ }
68
+ export interface InputValidity {
69
+ isValid: boolean;
70
+ name: string;
71
+ }
72
+ export interface RegisterStep {
73
+ registrationId: string;
74
+ }
75
+ export interface StepState {
76
+ event: string;
77
+ type: string;
78
+ }
79
+ export interface PasswordComplexity {
80
+ rule: string;
81
+ passed: boolean;
82
+ ruleKey: string;
83
+ }
84
+ export interface ValueObject {
85
+ name: string;
86
+ }
87
+ export {};
@@ -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;
@@ -0,0 +1,95 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { InputStateEvent, InputValueEvent, RegistrationConfig, RegCfgContentField, StepState, InputValue, InputValidity } from '../../../../general-input/src/utils/types';
3
+ import "../../../../../../dist/packages/stencil/general-input/dist/types/index";
4
+ export declare class GeneralRegistration {
5
+ /**
6
+ * NorWAy Endpoint for all the calls.
7
+ */
8
+ endpoint: string;
9
+ /**
10
+ * Currently selected language
11
+ */
12
+ language: string;
13
+ /**
14
+ * Client custom styling via inline styles
15
+ */
16
+ clientStyling: string;
17
+ /**
18
+ * Client custom styling via url
19
+ */
20
+ clientStylingUrl: string;
21
+ /**
22
+ * Translations via URL
23
+ */
24
+ translationUrl: string;
25
+ /**
26
+ * Date format for date picker
27
+ */
28
+ dateFormat: string;
29
+ /**
30
+ * Boolean that decides the position of the button. e.g. button inside -- true / outside -- false the form.
31
+ */
32
+ buttonInsideForm: boolean;
33
+ /**
34
+ * Affiliate code to be passed in and sent in the registration.
35
+ */
36
+ btag: string;
37
+ /**
38
+ * Boolean flag that tells inputs to emit an event on click.
39
+ */
40
+ emitOnClick: boolean;
41
+ host: HTMLElement;
42
+ errorMessage: string;
43
+ isFormValid: boolean;
44
+ isLoading: boolean;
45
+ isLoadingPOST: boolean;
46
+ registrationStep: string;
47
+ forms: any[];
48
+ limitStylingAppends: boolean;
49
+ autofilled: boolean;
50
+ sendStep(): void;
51
+ handleStylingChange(newValue: string, oldValue: string): void;
52
+ handleStylingUrlChange(newValue: string, oldValue: string): void;
53
+ setFormValidity(): void;
54
+ addBtag(): void;
55
+ private registrationID;
56
+ listOfInputValues: InputValue[];
57
+ listOfInputValidity: InputValidity[];
58
+ listOfActions: any[];
59
+ listOfInputs: any[];
60
+ lastStep: string;
61
+ emitValue: boolean;
62
+ form: HTMLElement;
63
+ errorCode: string;
64
+ backButtonPressed: boolean;
65
+ registerErrors: boolean;
66
+ extraActions: Array<string>;
67
+ registerCredentialsEvent: CustomEvent;
68
+ registrationStepsState: {
69
+ regId: any;
70
+ };
71
+ registrationWidgetLoaded: EventEmitter;
72
+ registrationStepUpdated: EventEmitter<string>;
73
+ checkInputsValidityHandler(event: CustomEvent<InputStateEvent>): void;
74
+ getInputsValueHandler(event: CustomEvent<InputValueEvent>): void;
75
+ componentWillLoad(): Promise<void>;
76
+ componentDidLoad(): void;
77
+ nextHandler(e: any): void;
78
+ backHandler(e: any): void;
79
+ dispatchRegisterCredentialsEvent(): void;
80
+ stepsStateMachine(state: StepState): void;
81
+ getRegisterConfig(registrationID?: string): Promise<RegistrationConfig>;
82
+ setRegisterStep(): void;
83
+ setRegister(): void;
84
+ formatConfig(config: RegistrationConfig): void;
85
+ addBtagValue(): void;
86
+ addTranslation(field: any): void;
87
+ setInitialValidStatus(field: RegCfgContentField): boolean;
88
+ stepChange(action: any): string;
89
+ getInvalidStatus(listOfInputs: any): boolean;
90
+ setClientStyling: () => void;
91
+ setClientStylingURL: () => void;
92
+ renderForm(): any[];
93
+ renderButtons(): HTMLElement;
94
+ render(): any;
95
+ }
@@ -0,0 +1 @@
1
+ export { GeneralRegistration } from './general-registration';
@@ -0,0 +1,127 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ interface GeneralRegistration {
10
+ /**
11
+ * Affiliate code to be passed in and sent in the registration.
12
+ */
13
+ "btag": string;
14
+ /**
15
+ * Boolean that decides the position of the button. e.g. button inside -- true / outside -- false the form.
16
+ */
17
+ "buttonInsideForm": boolean;
18
+ /**
19
+ * Client custom styling via inline styles
20
+ */
21
+ "clientStyling": string;
22
+ /**
23
+ * Client custom styling via url
24
+ */
25
+ "clientStylingUrl": string;
26
+ /**
27
+ * Date format for date picker
28
+ */
29
+ "dateFormat": string;
30
+ /**
31
+ * Boolean flag that tells inputs to emit an event on click.
32
+ */
33
+ "emitOnClick": boolean;
34
+ /**
35
+ * NorWAy Endpoint for all the calls.
36
+ */
37
+ "endpoint": string;
38
+ /**
39
+ * Currently selected language
40
+ */
41
+ "language": string;
42
+ /**
43
+ * Translations via URL
44
+ */
45
+ "translationUrl": string;
46
+ }
47
+ }
48
+ export interface GeneralRegistrationCustomEvent<T> extends CustomEvent<T> {
49
+ detail: T;
50
+ target: HTMLGeneralRegistrationElement;
51
+ }
52
+ declare global {
53
+ interface HTMLGeneralRegistrationElementEventMap {
54
+ "registrationWidgetLoaded": any;
55
+ "registrationStepUpdated": string;
56
+ }
57
+ interface HTMLGeneralRegistrationElement extends Components.GeneralRegistration, HTMLStencilElement {
58
+ addEventListener<K extends keyof HTMLGeneralRegistrationElementEventMap>(type: K, listener: (this: HTMLGeneralRegistrationElement, ev: GeneralRegistrationCustomEvent<HTMLGeneralRegistrationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
59
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
60
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
61
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
62
+ removeEventListener<K extends keyof HTMLGeneralRegistrationElementEventMap>(type: K, listener: (this: HTMLGeneralRegistrationElement, ev: GeneralRegistrationCustomEvent<HTMLGeneralRegistrationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
63
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
64
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
65
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
66
+ }
67
+ var HTMLGeneralRegistrationElement: {
68
+ prototype: HTMLGeneralRegistrationElement;
69
+ new (): HTMLGeneralRegistrationElement;
70
+ };
71
+ interface HTMLElementTagNameMap {
72
+ "general-registration": HTMLGeneralRegistrationElement;
73
+ }
74
+ }
75
+ declare namespace LocalJSX {
76
+ interface GeneralRegistration {
77
+ /**
78
+ * Affiliate code to be passed in and sent in the registration.
79
+ */
80
+ "btag"?: string;
81
+ /**
82
+ * Boolean that decides the position of the button. e.g. button inside -- true / outside -- false the form.
83
+ */
84
+ "buttonInsideForm": boolean;
85
+ /**
86
+ * Client custom styling via inline styles
87
+ */
88
+ "clientStyling"?: string;
89
+ /**
90
+ * Client custom styling via url
91
+ */
92
+ "clientStylingUrl"?: string;
93
+ /**
94
+ * Date format for date picker
95
+ */
96
+ "dateFormat"?: string;
97
+ /**
98
+ * Boolean flag that tells inputs to emit an event on click.
99
+ */
100
+ "emitOnClick"?: boolean;
101
+ /**
102
+ * NorWAy Endpoint for all the calls.
103
+ */
104
+ "endpoint": string;
105
+ /**
106
+ * Currently selected language
107
+ */
108
+ "language"?: string;
109
+ "onRegistrationStepUpdated"?: (event: GeneralRegistrationCustomEvent<string>) => void;
110
+ "onRegistrationWidgetLoaded"?: (event: GeneralRegistrationCustomEvent<any>) => void;
111
+ /**
112
+ * Translations via URL
113
+ */
114
+ "translationUrl"?: string;
115
+ }
116
+ interface IntrinsicElements {
117
+ "general-registration": GeneralRegistration;
118
+ }
119
+ }
120
+ export { LocalJSX as JSX };
121
+ declare module "@stencil/core" {
122
+ export namespace JSX {
123
+ interface IntrinsicElements {
124
+ "general-registration": LocalJSX.GeneralRegistration & JSXBase.HTMLAttributes<HTMLGeneralRegistrationElement>;
125
+ }
126
+ }
127
+ }
@@ -0,0 +1 @@
1
+ export * from './components';