@everymatrix/user-action-controller 1.0.0 → 1.0.70
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/index-c5061e5a.js +1315 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/player-user-consents_2.cjs.entry.js +504 -0
- package/dist/cjs/user-action-controller.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +5 -11
- package/dist/collection/components/user-action-controller/index.js +1 -0
- package/dist/collection/components/user-action-controller/user-action-controller.css +37 -0
- package/dist/collection/components/user-action-controller/user-action-controller.js +418 -328
- package/dist/collection/utils/locale.utils.js +66 -0
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-02b86e76.js +1288 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/player-user-consents_2.entry.js +499 -0
- package/dist/esm/user-action-controller.js +14 -11
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-action-controller/index.d.ts +1 -0
- package/dist/types/components/user-action-controller/user-action-controller.d.ts +68 -68
- package/dist/types/components.d.ts +28 -40
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/user-action-controller/p-4bd71dba.entry.js +1 -0
- package/dist/user-action-controller/p-b996e8b8.js +2 -0
- package/dist/user-action-controller/p-e1255160.js +1 -0
- package/dist/user-action-controller/user-action-controller.esm.js +1 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +16 -3
- package/dist/cjs/generic-user-consent_3.cjs.entry.js +0 -210
- package/dist/cjs/index-5b463836.js +0 -1285
- package/dist/components/generic-user-consent.js +0 -6
- package/dist/components/generic-user-consent2.js +0 -93
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/legislation-wrapper.js +0 -6
- package/dist/components/legislation-wrapper2.js +0 -33
- package/dist/components/user-action-controller.d.ts +0 -11
- package/dist/components/user-action-controller.js +0 -168
- package/dist/esm/generic-user-consent_3.entry.js +0 -204
- package/dist/esm/index-e34db4b0.js +0 -1259
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/user-action-controller/.stencil/packages/user-action-controller/stencil.config.d.ts +0 -2
- package/dist/user-action-controller/p-20213f37.js +0 -1
- package/dist/user-action-controller/p-2a14a5fe.entry.js +0 -1
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '@everymatrix/legislation-wrapper';
|
|
3
|
-
import '@everymatrix/generic-user-consent';
|
|
1
|
+
import "../../../../../../dist/packages/stencil/player-user-consents/dist/types/index";
|
|
4
2
|
interface LegislationConsentEvent {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type: string;
|
|
4
|
+
value: boolean | string;
|
|
7
5
|
}
|
|
8
6
|
export declare class UserActionController {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
7
|
+
/**
|
|
8
|
+
* the endpoint required for the update call
|
|
9
|
+
*/
|
|
10
|
+
endpoint: string;
|
|
11
|
+
/**
|
|
12
|
+
* user session required for the update call
|
|
13
|
+
*/
|
|
14
|
+
userSession: string;
|
|
15
|
+
/**
|
|
16
|
+
* user id required for the update call
|
|
17
|
+
*/
|
|
18
|
+
userId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Language
|
|
21
|
+
*/
|
|
22
|
+
lang: string;
|
|
23
|
+
/**
|
|
24
|
+
* whether or not to include the submit button (in case we want to compose a different )
|
|
25
|
+
*/
|
|
26
|
+
includeSubmitButton: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Select GM version
|
|
29
|
+
*/
|
|
30
|
+
gmVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
* Translation url
|
|
33
|
+
*/
|
|
34
|
+
translationUrl: string;
|
|
35
|
+
/**
|
|
36
|
+
* Client custom styling via inline style
|
|
37
|
+
*/
|
|
38
|
+
clientStyling: string;
|
|
39
|
+
/**
|
|
40
|
+
* Client custom styling via url
|
|
41
|
+
*/
|
|
42
|
+
clientStylingUrl: string;
|
|
43
|
+
handleNewTranslations(): void;
|
|
44
|
+
handleQueryResponse(): void;
|
|
45
|
+
userLegislationConsentHandler(event: CustomEvent<LegislationConsentEvent>): void;
|
|
46
|
+
/**
|
|
47
|
+
* Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
|
|
48
|
+
*/
|
|
49
|
+
queryFired: boolean;
|
|
50
|
+
readyActionsCount: number;
|
|
51
|
+
activeUserActions: Array<string>;
|
|
52
|
+
userActionsValidated: boolean;
|
|
53
|
+
receivedQueryResponses: number;
|
|
54
|
+
private limitStylingAppends;
|
|
55
|
+
private isLoading;
|
|
56
|
+
private mandatoryActionsChecked;
|
|
57
|
+
private mandatoryItems;
|
|
58
|
+
private mandatoryActions;
|
|
59
|
+
private userActions;
|
|
60
|
+
private stylingContainer;
|
|
61
|
+
private consentTitles;
|
|
62
|
+
determineUserActionsCore(): Promise<void>;
|
|
63
|
+
determineUserActions16(): Promise<void>;
|
|
64
|
+
updateUserConsents(): void;
|
|
65
|
+
handleApplyClick(): void;
|
|
66
|
+
componentWillLoad(): Promise<void>;
|
|
67
|
+
componentDidRender(): void;
|
|
68
|
+
setClientStyling: () => void;
|
|
69
|
+
setClientStylingURL: () => void;
|
|
70
|
+
calcMandatoryActions(): void;
|
|
71
|
+
render(): any;
|
|
72
72
|
}
|
|
73
73
|
export {};
|
|
@@ -8,41 +8,37 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface UserActionController {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Client custom styling via inline style
|
|
12
12
|
*/
|
|
13
|
-
"
|
|
13
|
+
"clientStyling": string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Client custom styling via url
|
|
16
16
|
*/
|
|
17
|
-
"
|
|
17
|
+
"clientStylingUrl": string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* the endpoint required for the update call
|
|
20
20
|
*/
|
|
21
|
-
"
|
|
21
|
+
"endpoint": string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Select GM version
|
|
24
24
|
*/
|
|
25
|
-
"
|
|
25
|
+
"gmVersion": string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* whether or not to include the submit button (in case we want to compose a different )
|
|
28
28
|
*/
|
|
29
|
-
"
|
|
29
|
+
"includeSubmitButton": boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Language
|
|
32
32
|
*/
|
|
33
|
-
"
|
|
33
|
+
"lang": string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Translation url
|
|
36
36
|
*/
|
|
37
|
-
"
|
|
37
|
+
"translationUrl": string;
|
|
38
38
|
/**
|
|
39
39
|
* user id required for the update call
|
|
40
40
|
*/
|
|
41
41
|
"userId": string;
|
|
42
|
-
/**
|
|
43
|
-
* the title of the action group
|
|
44
|
-
*/
|
|
45
|
-
"userNoticeText": string;
|
|
46
42
|
/**
|
|
47
43
|
* user session required for the update call
|
|
48
44
|
*/
|
|
@@ -63,45 +59,37 @@ declare global {
|
|
|
63
59
|
declare namespace LocalJSX {
|
|
64
60
|
interface UserActionController {
|
|
65
61
|
/**
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
"activeUserActions": string;
|
|
69
|
-
/**
|
|
70
|
-
* the endpoint required for the update call
|
|
62
|
+
* Client custom styling via inline style
|
|
71
63
|
*/
|
|
72
|
-
"
|
|
64
|
+
"clientStyling"?: string;
|
|
73
65
|
/**
|
|
74
|
-
*
|
|
66
|
+
* Client custom styling via url
|
|
75
67
|
*/
|
|
76
|
-
"
|
|
68
|
+
"clientStylingUrl"?: string;
|
|
77
69
|
/**
|
|
78
|
-
*
|
|
70
|
+
* the endpoint required for the update call
|
|
79
71
|
*/
|
|
80
|
-
"
|
|
72
|
+
"endpoint": string;
|
|
81
73
|
/**
|
|
82
|
-
*
|
|
74
|
+
* Select GM version
|
|
83
75
|
*/
|
|
84
|
-
"
|
|
76
|
+
"gmVersion"?: string;
|
|
85
77
|
/**
|
|
86
|
-
*
|
|
78
|
+
* whether or not to include the submit button (in case we want to compose a different )
|
|
87
79
|
*/
|
|
88
|
-
"
|
|
80
|
+
"includeSubmitButton": boolean;
|
|
89
81
|
/**
|
|
90
|
-
*
|
|
82
|
+
* Language
|
|
91
83
|
*/
|
|
92
|
-
"
|
|
84
|
+
"lang"?: string;
|
|
93
85
|
/**
|
|
94
|
-
*
|
|
86
|
+
* Translation url
|
|
95
87
|
*/
|
|
96
|
-
"
|
|
88
|
+
"translationUrl"?: string;
|
|
97
89
|
/**
|
|
98
90
|
* user id required for the update call
|
|
99
91
|
*/
|
|
100
92
|
"userId": string;
|
|
101
|
-
/**
|
|
102
|
-
* the title of the action group
|
|
103
|
-
*/
|
|
104
|
-
"userNoticeText"?: string;
|
|
105
93
|
/**
|
|
106
94
|
* user session required for the update call
|
|
107
95
|
*/
|