@everymatrix/general-registration-hsl 0.0.1
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/checkbox-group-input_14.cjs.entry.js +13098 -0
- package/dist/cjs/general-registration-hsl-e3c6c171.js +1071 -0
- package/dist/cjs/general-registration-hsl.cjs.js +25 -0
- package/dist/cjs/index-f6112702.js +1323 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +31 -0
- package/dist/collection/components/general-registration-hsl/general-registration-hsl.css +130 -0
- package/dist/collection/components/general-registration-hsl/general-registration-hsl.js +1107 -0
- package/dist/collection/components/general-registration-hsl/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +202 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/checkbox-group-input_14.entry.js +13081 -0
- package/dist/esm/general-registration-hsl-4e3648d7.js +1069 -0
- package/dist/esm/general-registration-hsl.js +20 -0
- package/dist/esm/index-8c1bd3e8.js +1294 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/general-registration-hsl/app-globals-0f993ce5.js +1 -0
- package/dist/general-registration-hsl/checkbox-group-input_14.entry.js +5614 -0
- package/dist/general-registration-hsl/general-registration-hsl-4e3648d7.js +15 -0
- package/dist/general-registration-hsl/general-registration-hsl.esm.js +1 -0
- package/dist/general-registration-hsl/index-8c1bd3e8.js +2 -0
- package/dist/general-registration-hsl/index.esm.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/packages/stencil/general-input-hsl/src/utils/types.d.ts +111 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/packages/stencil/general-registration-hsl/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/packages/stencil/general-registration-hsl/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/packages/stencil/general-registration-hsl/storybook/main.d.ts +3 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/packages/stencil/general-registration-hsl/storybook/preview.d.ts +70 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration-hsl/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/general-registration-hsl/general-registration-hsl.d.ts +142 -0
- package/dist/types/components/general-registration-hsl/index.d.ts +1 -0
- package/dist/types/components.d.ts +137 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +14 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { getStoryFiles, detectUsedPackages, parseTsConfig, exec, filterParsedPathsByUsedPackages } from "../../../../libs/common/src/storybook/storybook-utils";
|
|
3
|
+
const config = {
|
|
4
|
+
stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
|
|
5
|
+
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
|
|
6
|
+
docs: {
|
|
7
|
+
defaultName: 'Documentation',
|
|
8
|
+
autodocs: 'tag'
|
|
9
|
+
},
|
|
10
|
+
framework: {
|
|
11
|
+
name: '@storybook/web-components-vite',
|
|
12
|
+
options: {}
|
|
13
|
+
},
|
|
14
|
+
// Async viteFinal to build dependent packages before finalizing configuration.
|
|
15
|
+
viteFinal: async (config) => {
|
|
16
|
+
const storyFiles = getStoryFiles(path.resolve(__dirname, '../'));
|
|
17
|
+
const usedPackages = detectUsedPackages(storyFiles);
|
|
18
|
+
const buildPromises = usedPackages.map(async (pkg) => {
|
|
19
|
+
try {
|
|
20
|
+
console.log(`Building package ${pkg}...`);
|
|
21
|
+
const { stdout, stderr } = await exec(`nx run ${pkg}:build`);
|
|
22
|
+
console.log(`Built package ${pkg}: ${stdout}`);
|
|
23
|
+
if (stderr) {
|
|
24
|
+
console.error(`Build warning/error for package ${pkg}: ${stderr}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error(`Error building package ${pkg}:`, error);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
await Promise.all(buildPromises);
|
|
32
|
+
const parsedPaths = parseTsConfig() || {};
|
|
33
|
+
const filteredParsedPaths = filterParsedPathsByUsedPackages(parsedPaths, usedPackages);
|
|
34
|
+
return Object.assign(Object.assign({}, config), { resolve: {
|
|
35
|
+
alias: Object.assign({}, filteredParsedPaths)
|
|
36
|
+
}, define: {
|
|
37
|
+
process: {
|
|
38
|
+
env: {}
|
|
39
|
+
}
|
|
40
|
+
} });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export default config;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { themes } from "@storybook/theming";
|
|
2
|
+
export const parameters = {
|
|
3
|
+
darkMode: {
|
|
4
|
+
dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
|
|
5
|
+
light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
|
|
6
|
+
current: 'light',
|
|
7
|
+
stylePreview: true
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { exec as execCallback } from 'child_process';
|
|
3
|
+
export declare const exec: typeof execCallback.__promisify__;
|
|
4
|
+
/**
|
|
5
|
+
* Recursively retrieves all story files (.stories.ts/.stories.tsx) in a directory.
|
|
6
|
+
* @param dir The directory to search.
|
|
7
|
+
* @returns Array of story file paths.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getStoryFiles: (dir: string) => string[];
|
|
10
|
+
/**
|
|
11
|
+
* Detects which internal packages are used in the provided story files.
|
|
12
|
+
* It looks at every import that starts with the given package alias prefix,
|
|
13
|
+
* then extracts the package name (the segment immediately following the prefix).
|
|
14
|
+
*
|
|
15
|
+
* @param stories Array of story file paths.
|
|
16
|
+
* @returns Array of unique package names (e.g. ['foo', 'bar']).
|
|
17
|
+
*/
|
|
18
|
+
export declare const detectUsedPackages: (stories: string[]) => string[];
|
|
19
|
+
/**
|
|
20
|
+
* Extracts all import paths from a file using the TypeScript compiler API.
|
|
21
|
+
* @param filePath The file path to parse.
|
|
22
|
+
* @returns Array of import strings.
|
|
23
|
+
*/
|
|
24
|
+
export declare const extractImports: (filePath: string) => string[];
|
|
25
|
+
/**
|
|
26
|
+
* Parses the tsconfig paths and resolves them to absolute paths.
|
|
27
|
+
* @param tsconfigPath The path to the tsconfig file.
|
|
28
|
+
* @returns An object mapping alias keys to absolute paths.
|
|
29
|
+
*/
|
|
30
|
+
export declare const parseTsConfig: () => Record<string, string> | null;
|
|
31
|
+
/**
|
|
32
|
+
* Filters the parsed tsconfig alias mapping to only include keys that correspond
|
|
33
|
+
* to the used packages.
|
|
34
|
+
*
|
|
35
|
+
* @param parsedPaths The full alias mapping from tsconfig.
|
|
36
|
+
* @param usedPackages Array of package names that are used (e.g. ['foo', 'bar']).
|
|
37
|
+
* @returns Filtered alias mapping.
|
|
38
|
+
*/
|
|
39
|
+
export declare const filterParsedPathsByUsedPackages: (parsedPaths: Record<string, string>, usedPackages: string[]) => Record<string, string>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export interface RegistrationConfig {
|
|
2
|
+
type: string;
|
|
3
|
+
content: RegCfgContent;
|
|
4
|
+
}
|
|
5
|
+
interface RegCfgContent {
|
|
6
|
+
actions: string[];
|
|
7
|
+
fields: RegCfgContentField[];
|
|
8
|
+
verifications: string[];
|
|
9
|
+
registrationID: string;
|
|
10
|
+
step: string;
|
|
11
|
+
}
|
|
12
|
+
export interface RegCfgContentField {
|
|
13
|
+
action: string;
|
|
14
|
+
autofill: boolean;
|
|
15
|
+
data?: Values;
|
|
16
|
+
defaultValue: string;
|
|
17
|
+
inputType: string;
|
|
18
|
+
tooltip: string;
|
|
19
|
+
multiple: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
readOnly: boolean;
|
|
22
|
+
displayName: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
validate: ValidationSchema;
|
|
25
|
+
}
|
|
26
|
+
export interface ValidationSchema {
|
|
27
|
+
mandatory: boolean;
|
|
28
|
+
type?: string;
|
|
29
|
+
custom?: CustomValidationRules[];
|
|
30
|
+
minLength?: number;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
min?: number;
|
|
33
|
+
max?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface CustomValidationRules {
|
|
36
|
+
rule: string;
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
errorKey: string;
|
|
39
|
+
pattern?: string;
|
|
40
|
+
displayName?: string;
|
|
41
|
+
correlationField?: string;
|
|
42
|
+
correlationValue?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CustomRule {
|
|
45
|
+
rule: string;
|
|
46
|
+
errorMessage: string;
|
|
47
|
+
}
|
|
48
|
+
interface Values {
|
|
49
|
+
values?: Option[];
|
|
50
|
+
subFields?: RegCfgContentField[];
|
|
51
|
+
}
|
|
52
|
+
export interface Option {
|
|
53
|
+
value: string;
|
|
54
|
+
label: string;
|
|
55
|
+
}
|
|
56
|
+
export interface InputStateEvent {
|
|
57
|
+
valid: boolean;
|
|
58
|
+
name: string;
|
|
59
|
+
}
|
|
60
|
+
export interface InputValueEvent {
|
|
61
|
+
value: string;
|
|
62
|
+
name: string;
|
|
63
|
+
type?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface InputValue {
|
|
66
|
+
value: any;
|
|
67
|
+
name: string;
|
|
68
|
+
isDuplicate: boolean;
|
|
69
|
+
type?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface InputValidity {
|
|
72
|
+
isValid: boolean;
|
|
73
|
+
name: string;
|
|
74
|
+
}
|
|
75
|
+
export interface RegisterStep {
|
|
76
|
+
registrationId: string;
|
|
77
|
+
}
|
|
78
|
+
export interface StepState {
|
|
79
|
+
event: string;
|
|
80
|
+
type: string;
|
|
81
|
+
}
|
|
82
|
+
export interface PasswordComplexity {
|
|
83
|
+
rule: string;
|
|
84
|
+
passed: boolean;
|
|
85
|
+
ruleKey: string;
|
|
86
|
+
}
|
|
87
|
+
export interface ValueObject {
|
|
88
|
+
name: string;
|
|
89
|
+
}
|
|
90
|
+
export interface InputType {
|
|
91
|
+
name: string;
|
|
92
|
+
inputType: string;
|
|
93
|
+
displayName: string;
|
|
94
|
+
validate: ValidationSchema;
|
|
95
|
+
action: string;
|
|
96
|
+
multiple: boolean;
|
|
97
|
+
autofill: boolean;
|
|
98
|
+
readOnly: boolean;
|
|
99
|
+
data?: {
|
|
100
|
+
subFields?: InputType[];
|
|
101
|
+
values?: Option[];
|
|
102
|
+
};
|
|
103
|
+
defaultValue: string;
|
|
104
|
+
isDuplicateInput?: boolean;
|
|
105
|
+
tooltip: string;
|
|
106
|
+
placeholder?: string;
|
|
107
|
+
customInfo?: {
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const parameters: {
|
|
2
|
+
darkMode: {
|
|
3
|
+
dark: {
|
|
4
|
+
appBg: string;
|
|
5
|
+
base: "light" | "dark";
|
|
6
|
+
colorPrimary: string;
|
|
7
|
+
colorSecondary: string;
|
|
8
|
+
appContentBg: string;
|
|
9
|
+
appPreviewBg: string;
|
|
10
|
+
appBorderColor: string;
|
|
11
|
+
appBorderRadius: number;
|
|
12
|
+
fontBase: string;
|
|
13
|
+
fontCode: string;
|
|
14
|
+
textColor: string;
|
|
15
|
+
textInverseColor: string;
|
|
16
|
+
textMutedColor: string;
|
|
17
|
+
barTextColor: string;
|
|
18
|
+
barHoverColor: string;
|
|
19
|
+
barSelectedColor: string;
|
|
20
|
+
barBg: string;
|
|
21
|
+
buttonBg: string;
|
|
22
|
+
buttonBorder: string;
|
|
23
|
+
booleanBg: string;
|
|
24
|
+
booleanSelectedBg: string;
|
|
25
|
+
inputBg: string;
|
|
26
|
+
inputBorder: string;
|
|
27
|
+
inputTextColor: string;
|
|
28
|
+
inputBorderRadius: number;
|
|
29
|
+
brandTitle?: string;
|
|
30
|
+
brandUrl?: string;
|
|
31
|
+
brandImage?: string;
|
|
32
|
+
brandTarget?: string;
|
|
33
|
+
gridCellSize?: number;
|
|
34
|
+
};
|
|
35
|
+
light: {
|
|
36
|
+
appBg: string;
|
|
37
|
+
base: "light" | "dark";
|
|
38
|
+
colorPrimary: string;
|
|
39
|
+
colorSecondary: string;
|
|
40
|
+
appContentBg: string;
|
|
41
|
+
appPreviewBg: string;
|
|
42
|
+
appBorderColor: string;
|
|
43
|
+
appBorderRadius: number;
|
|
44
|
+
fontBase: string;
|
|
45
|
+
fontCode: string;
|
|
46
|
+
textColor: string;
|
|
47
|
+
textInverseColor: string;
|
|
48
|
+
textMutedColor: string;
|
|
49
|
+
barTextColor: string;
|
|
50
|
+
barHoverColor: string;
|
|
51
|
+
barSelectedColor: string;
|
|
52
|
+
barBg: string;
|
|
53
|
+
buttonBg: string;
|
|
54
|
+
buttonBorder: string;
|
|
55
|
+
booleanBg: string;
|
|
56
|
+
booleanSelectedBg: string;
|
|
57
|
+
inputBg: string;
|
|
58
|
+
inputBorder: string;
|
|
59
|
+
inputTextColor: string;
|
|
60
|
+
inputBorderRadius: number;
|
|
61
|
+
brandTitle?: string;
|
|
62
|
+
brandUrl?: string;
|
|
63
|
+
brandImage?: string;
|
|
64
|
+
brandTarget?: string;
|
|
65
|
+
gridCellSize?: number;
|
|
66
|
+
};
|
|
67
|
+
current: string;
|
|
68
|
+
stylePreview: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { InputStateEvent, InputValueEvent, RegistrationConfig, RegCfgContentField, StepState, InputValue, InputValidity, InputType, ValidationSchema } from '../../../../general-input-hsl/src/utils/types';
|
|
3
|
+
import "../../../../../../dist/packages/stencil/general-input-hsl/dist/types/index";
|
|
4
|
+
import "../../../../../../dist/packages/svelte/player-consents/es2015/player-consents";
|
|
5
|
+
export declare class GeneralRegistrationHsl {
|
|
6
|
+
/**
|
|
7
|
+
* NorWAy Endpoint for all the calls.
|
|
8
|
+
*/
|
|
9
|
+
endpoint: string;
|
|
10
|
+
/**
|
|
11
|
+
* Currently selected language
|
|
12
|
+
*/
|
|
13
|
+
language: string;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via inline styles
|
|
16
|
+
*/
|
|
17
|
+
clientStyling: string;
|
|
18
|
+
/**
|
|
19
|
+
* Client custom styling via streamStyling
|
|
20
|
+
*/
|
|
21
|
+
mbSource: string;
|
|
22
|
+
/**
|
|
23
|
+
* Client custom styling via url
|
|
24
|
+
*/
|
|
25
|
+
clientStylingUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Translations via URL
|
|
28
|
+
*/
|
|
29
|
+
translationUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* Date format for date picker
|
|
32
|
+
*/
|
|
33
|
+
dateFormat: string;
|
|
34
|
+
/**
|
|
35
|
+
* Boolean that decides the position of the button. e.g. button inside -- true / outside -- false the form.
|
|
36
|
+
*/
|
|
37
|
+
buttonInsideForm: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Affiliate code to be passed in and sent in the registration.
|
|
40
|
+
*/
|
|
41
|
+
btag: string;
|
|
42
|
+
/**
|
|
43
|
+
* Boolean flag that tells inputs to emit an event on click.
|
|
44
|
+
*/
|
|
45
|
+
emitOnClick: boolean;
|
|
46
|
+
host: HTMLElement;
|
|
47
|
+
errorMessage: string;
|
|
48
|
+
isFormValid: boolean;
|
|
49
|
+
isConsentValid: boolean;
|
|
50
|
+
isConsentReady: boolean;
|
|
51
|
+
isLoading: boolean;
|
|
52
|
+
isLoadingPOST: boolean;
|
|
53
|
+
registrationStep: string;
|
|
54
|
+
forms: Record<string, InputType[]>[];
|
|
55
|
+
limitStylingAppends: boolean;
|
|
56
|
+
autofilled: boolean;
|
|
57
|
+
isInitalInteraction: boolean;
|
|
58
|
+
sendStep(): void;
|
|
59
|
+
handleStylingChange(newValue: string, oldValue: string): void;
|
|
60
|
+
handleStylingUrlChange(newValue: string, oldValue: string): void;
|
|
61
|
+
setFormValidity(): void;
|
|
62
|
+
addBtag(): void;
|
|
63
|
+
registrationWidgetLoaded: EventEmitter;
|
|
64
|
+
registrationStepUpdated: EventEmitter<string>;
|
|
65
|
+
validationChange: EventEmitter<any>;
|
|
66
|
+
checkInputsValidityHandler(event: CustomEvent<InputStateEvent>): void;
|
|
67
|
+
getInputsValueHandler(event: CustomEvent<InputValueEvent>): void;
|
|
68
|
+
handleRequestTwofa(): void;
|
|
69
|
+
messageHandler(e: MessageEvent): void;
|
|
70
|
+
private registrationID;
|
|
71
|
+
private stylingSubscription;
|
|
72
|
+
listOfInputValues: InputValue[];
|
|
73
|
+
listOfInputValidity: InputValidity[];
|
|
74
|
+
listOfActions: string[];
|
|
75
|
+
listOfInputs: InputType[];
|
|
76
|
+
conditionalValidationMap: Record<string, Record<string, Record<string, ValidationSchema>>>;
|
|
77
|
+
lastStep: string;
|
|
78
|
+
emitValue: boolean;
|
|
79
|
+
form: HTMLElement;
|
|
80
|
+
errorCode: string;
|
|
81
|
+
backButtonPressed: boolean;
|
|
82
|
+
registerErrors: boolean;
|
|
83
|
+
extraActions: string[];
|
|
84
|
+
registerCredentialsEvent: CustomEvent;
|
|
85
|
+
twofaDestination: string;
|
|
86
|
+
registrationStepsState: {
|
|
87
|
+
regId: any;
|
|
88
|
+
};
|
|
89
|
+
componentWillLoad(): Promise<void>;
|
|
90
|
+
componentDidLoad(): void;
|
|
91
|
+
disconnectedCallback(): void;
|
|
92
|
+
/**
|
|
93
|
+
* This function produces the conditionalValidationMap object presented below
|
|
94
|
+
*
|
|
95
|
+
* this.conditionalValidationMap =
|
|
96
|
+
* {
|
|
97
|
+
* correlationField: {
|
|
98
|
+
* correlationValue: {
|
|
99
|
+
* field: {
|
|
100
|
+
* ...validation
|
|
101
|
+
* },
|
|
102
|
+
* ...
|
|
103
|
+
* },
|
|
104
|
+
* ...
|
|
105
|
+
* },
|
|
106
|
+
* ...
|
|
107
|
+
* }
|
|
108
|
+
*
|
|
109
|
+
* - this object describes the conditional validation of some fields based on the value of others.
|
|
110
|
+
* - correlationField is the conditioning field, correlationValue is the value of the correlationField for which
|
|
111
|
+
* a certain validation is applied to the affected fields. {...validation} is an object of type ValidationSchema
|
|
112
|
+
*/
|
|
113
|
+
setupConditionalValidationMap(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Whenever a field changes its value, we check if it is conditioning any other fields and
|
|
116
|
+
* if it is we update the validation of the affected fields.
|
|
117
|
+
*/
|
|
118
|
+
handleConditionalValidation(correlationField: string, correlationValue: string): void;
|
|
119
|
+
nextHandler(e: Event): void;
|
|
120
|
+
backHandler(e: Event): void;
|
|
121
|
+
dispatchRegisterCredentialsEvent(): void;
|
|
122
|
+
stepsStateMachine(state: StepState): void;
|
|
123
|
+
triggerNotification(errMsg: string, errType?: string): void;
|
|
124
|
+
getRegisterConfig(registrationID?: string): Promise<RegistrationConfig>;
|
|
125
|
+
setRegisterStep(): void;
|
|
126
|
+
setRegister(): void;
|
|
127
|
+
formatConfig(config: RegistrationConfig): void;
|
|
128
|
+
addBtagValue(): void;
|
|
129
|
+
addTranslation(field: any): void;
|
|
130
|
+
setInitialValidStatus(field: RegCfgContentField): boolean;
|
|
131
|
+
stepChange(action: any): string;
|
|
132
|
+
getInvalidStatus(listOfInputs: any): boolean;
|
|
133
|
+
setClientStyling: () => void;
|
|
134
|
+
setClientStylingURL: () => void;
|
|
135
|
+
setStreamStyling: (domain: any) => void;
|
|
136
|
+
handleInitialClick: (e: any) => void;
|
|
137
|
+
renderErrorMessage(errorMsg: string): HTMLElement;
|
|
138
|
+
renderForm(): any[];
|
|
139
|
+
renderConsents(): HTMLElement;
|
|
140
|
+
renderButtons(): HTMLElement;
|
|
141
|
+
render(): any;
|
|
142
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GeneralRegistrationHsl } from './general-registration-hsl';
|
|
@@ -0,0 +1,137 @@
|
|
|
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 GeneralRegistrationHsl {
|
|
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
|
+
* Client custom styling via streamStyling
|
|
44
|
+
*/
|
|
45
|
+
"mbSource": string;
|
|
46
|
+
/**
|
|
47
|
+
* Translations via URL
|
|
48
|
+
*/
|
|
49
|
+
"translationUrl": string;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface GeneralRegistrationHslCustomEvent<T> extends CustomEvent<T> {
|
|
53
|
+
detail: T;
|
|
54
|
+
target: HTMLGeneralRegistrationHslElement;
|
|
55
|
+
}
|
|
56
|
+
declare global {
|
|
57
|
+
interface HTMLGeneralRegistrationHslElementEventMap {
|
|
58
|
+
"registrationWidgetLoaded": any;
|
|
59
|
+
"registrationStepUpdated": string;
|
|
60
|
+
"validationChange": any;
|
|
61
|
+
}
|
|
62
|
+
interface HTMLGeneralRegistrationHslElement extends Components.GeneralRegistrationHsl, HTMLStencilElement {
|
|
63
|
+
addEventListener<K extends keyof HTMLGeneralRegistrationHslElementEventMap>(type: K, listener: (this: HTMLGeneralRegistrationHslElement, ev: GeneralRegistrationHslCustomEvent<HTMLGeneralRegistrationHslElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
64
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
65
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
66
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
67
|
+
removeEventListener<K extends keyof HTMLGeneralRegistrationHslElementEventMap>(type: K, listener: (this: HTMLGeneralRegistrationHslElement, ev: GeneralRegistrationHslCustomEvent<HTMLGeneralRegistrationHslElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
68
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
69
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
70
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
71
|
+
}
|
|
72
|
+
var HTMLGeneralRegistrationHslElement: {
|
|
73
|
+
prototype: HTMLGeneralRegistrationHslElement;
|
|
74
|
+
new (): HTMLGeneralRegistrationHslElement;
|
|
75
|
+
};
|
|
76
|
+
interface HTMLElementTagNameMap {
|
|
77
|
+
"general-registration-hsl": HTMLGeneralRegistrationHslElement;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
declare namespace LocalJSX {
|
|
81
|
+
interface GeneralRegistrationHsl {
|
|
82
|
+
/**
|
|
83
|
+
* Affiliate code to be passed in and sent in the registration.
|
|
84
|
+
*/
|
|
85
|
+
"btag"?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Boolean that decides the position of the button. e.g. button inside -- true / outside -- false the form.
|
|
88
|
+
*/
|
|
89
|
+
"buttonInsideForm": boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Client custom styling via inline styles
|
|
92
|
+
*/
|
|
93
|
+
"clientStyling"?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Client custom styling via url
|
|
96
|
+
*/
|
|
97
|
+
"clientStylingUrl"?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Date format for date picker
|
|
100
|
+
*/
|
|
101
|
+
"dateFormat"?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Boolean flag that tells inputs to emit an event on click.
|
|
104
|
+
*/
|
|
105
|
+
"emitOnClick"?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* NorWAy Endpoint for all the calls.
|
|
108
|
+
*/
|
|
109
|
+
"endpoint": string;
|
|
110
|
+
/**
|
|
111
|
+
* Currently selected language
|
|
112
|
+
*/
|
|
113
|
+
"language"?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Client custom styling via streamStyling
|
|
116
|
+
*/
|
|
117
|
+
"mbSource"?: string;
|
|
118
|
+
"onRegistrationStepUpdated"?: (event: GeneralRegistrationHslCustomEvent<string>) => void;
|
|
119
|
+
"onRegistrationWidgetLoaded"?: (event: GeneralRegistrationHslCustomEvent<any>) => void;
|
|
120
|
+
"onValidationChange"?: (event: GeneralRegistrationHslCustomEvent<any>) => void;
|
|
121
|
+
/**
|
|
122
|
+
* Translations via URL
|
|
123
|
+
*/
|
|
124
|
+
"translationUrl"?: string;
|
|
125
|
+
}
|
|
126
|
+
interface IntrinsicElements {
|
|
127
|
+
"general-registration-hsl": GeneralRegistrationHsl;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export { LocalJSX as JSX };
|
|
131
|
+
declare module "@stencil/core" {
|
|
132
|
+
export namespace JSX {
|
|
133
|
+
interface IntrinsicElements {
|
|
134
|
+
"general-registration-hsl": LocalJSX.GeneralRegistrationHsl & JSXBase.HTMLAttributes<HTMLGeneralRegistrationHslElement>;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/general-registration-hsl';
|