@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.
Files changed (57) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-c5061e5a.js +1315 -0
  3. package/dist/cjs/loader.cjs.js +7 -13
  4. package/dist/cjs/player-user-consents_2.cjs.entry.js +504 -0
  5. package/dist/cjs/user-action-controller.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +5 -11
  7. package/dist/collection/components/user-action-controller/index.js +1 -0
  8. package/dist/collection/components/user-action-controller/user-action-controller.css +37 -0
  9. package/dist/collection/components/user-action-controller/user-action-controller.js +418 -328
  10. package/dist/collection/utils/locale.utils.js +66 -0
  11. package/dist/collection/utils/utils.js +1 -1
  12. package/dist/esm/app-globals-0f993ce5.js +3 -0
  13. package/dist/esm/index-02b86e76.js +1288 -0
  14. package/dist/esm/loader.js +7 -13
  15. package/dist/esm/player-user-consents_2.entry.js +499 -0
  16. package/dist/esm/user-action-controller.js +14 -11
  17. package/dist/stencil.config.dev.js +17 -0
  18. package/dist/stencil.config.js +14 -19
  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
  20. 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
  21. package/dist/types/components/user-action-controller/index.d.ts +1 -0
  22. package/dist/types/components/user-action-controller/user-action-controller.d.ts +68 -68
  23. package/dist/types/components.d.ts +28 -40
  24. package/dist/types/stencil-public-runtime.d.ts +142 -33
  25. package/dist/types/utils/locale.utils.d.ts +2 -0
  26. package/dist/user-action-controller/p-4bd71dba.entry.js +1 -0
  27. package/dist/user-action-controller/p-b996e8b8.js +2 -0
  28. package/dist/user-action-controller/p-e1255160.js +1 -0
  29. package/dist/user-action-controller/user-action-controller.esm.js +1 -1
  30. package/loader/cdn.js +1 -3
  31. package/loader/index.cjs.js +1 -3
  32. package/loader/index.d.ts +13 -1
  33. package/loader/index.es2017.js +1 -3
  34. package/loader/index.js +1 -3
  35. package/loader/package.json +1 -0
  36. package/package.json +16 -3
  37. package/dist/cjs/generic-user-consent_3.cjs.entry.js +0 -210
  38. package/dist/cjs/index-5b463836.js +0 -1285
  39. package/dist/components/generic-user-consent.js +0 -6
  40. package/dist/components/generic-user-consent2.js +0 -93
  41. package/dist/components/index.d.ts +0 -26
  42. package/dist/components/index.js +0 -1
  43. package/dist/components/legislation-wrapper.js +0 -6
  44. package/dist/components/legislation-wrapper2.js +0 -33
  45. package/dist/components/user-action-controller.d.ts +0 -11
  46. package/dist/components/user-action-controller.js +0 -168
  47. package/dist/esm/generic-user-consent_3.entry.js +0 -204
  48. package/dist/esm/index-e34db4b0.js +0 -1259
  49. package/dist/esm/polyfills/core-js.js +0 -11
  50. package/dist/esm/polyfills/css-shim.js +0 -1
  51. package/dist/esm/polyfills/dom.js +0 -79
  52. package/dist/esm/polyfills/es5-html-element.js +0 -1
  53. package/dist/esm/polyfills/index.js +0 -34
  54. package/dist/esm/polyfills/system.js +0 -6
  55. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/user-action-controller/.stencil/packages/user-action-controller/stencil.config.d.ts +0 -2
  56. package/dist/user-action-controller/p-20213f37.js +0 -1
  57. package/dist/user-action-controller/p-2a14a5fe.entry.js +0 -1
@@ -1,73 +1,73 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
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
- type: string;
6
- value: boolean | string;
3
+ type: string;
4
+ value: boolean | string;
7
5
  }
8
6
  export declare class UserActionController {
9
- /**
10
- * the endpoint required for the update call
11
- */
12
- endpoint: string;
13
- /**
14
- * user session required for the update call
15
- */
16
- userSession: string;
17
- /**
18
- * user id required for the update call
19
- */
20
- userId: string;
21
- /**
22
- * wether or not to include the submit button (in case we want to compose a different )
23
- */
24
- includeSubmitButton: boolean;
25
- /**
26
- * the text of the button, if button is enabled
27
- */
28
- submitButtonText: string;
29
- /**
30
- * the title of the action group
31
- */
32
- userNoticeText: string;
33
- /**
34
- * which user action widgets are included
35
- */
36
- activeUserActions: string;
37
- /**
38
- * Property used to display the close/cancel button
39
- */
40
- showCloseButton: boolean;
41
- /**
42
- * Use postMessage event to communicate
43
- */
44
- usePostmessage: boolean;
45
- /**
46
- * Event name to be sent when the button is clicked
47
- */
48
- postMessageEvent: string;
49
- /**
50
- * Event emitted when the close button is clicked
51
- */
52
- closeButtonEvent: EventEmitter<any>;
53
- private consentTitles;
54
- /**
55
- * Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
56
- */
57
- queryFired: boolean;
58
- readyActionsCount: number;
59
- receivedQueryResponses: number;
60
- private mandatoryActions;
61
- private requiredActionsCount;
62
- private expectedQueryResponses;
63
- private userActions;
64
- determineMandatoryActions(): Promise<void>;
65
- handleQueryResponse(): void;
66
- updateUserConsents(): void;
67
- handleApplyClick(): void;
68
- handleClose(): void;
69
- userLegislationConsentHandler(event: CustomEvent<LegislationConsentEvent>): void;
70
- componentWillLoad(): Promise<void>;
71
- render(): any;
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
- * which user action widgets are included
11
+ * Client custom styling via inline style
12
12
  */
13
- "activeUserActions": string;
13
+ "clientStyling": string;
14
14
  /**
15
- * the endpoint required for the update call
15
+ * Client custom styling via url
16
16
  */
17
- "endpoint": string;
17
+ "clientStylingUrl": string;
18
18
  /**
19
- * wether or not to include the submit button (in case we want to compose a different )
19
+ * the endpoint required for the update call
20
20
  */
21
- "includeSubmitButton": boolean;
21
+ "endpoint": string;
22
22
  /**
23
- * Event name to be sent when the button is clicked
23
+ * Select GM version
24
24
  */
25
- "postMessageEvent": string;
25
+ "gmVersion": string;
26
26
  /**
27
- * Property used to display the close/cancel button
27
+ * whether or not to include the submit button (in case we want to compose a different )
28
28
  */
29
- "showCloseButton": boolean;
29
+ "includeSubmitButton": boolean;
30
30
  /**
31
- * the text of the button, if button is enabled
31
+ * Language
32
32
  */
33
- "submitButtonText": string;
33
+ "lang": string;
34
34
  /**
35
- * Use postMessage event to communicate
35
+ * Translation url
36
36
  */
37
- "usePostmessage": boolean;
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
- * which user action widgets are included
67
- */
68
- "activeUserActions": string;
69
- /**
70
- * the endpoint required for the update call
62
+ * Client custom styling via inline style
71
63
  */
72
- "endpoint": string;
64
+ "clientStyling"?: string;
73
65
  /**
74
- * wether or not to include the submit button (in case we want to compose a different )
66
+ * Client custom styling via url
75
67
  */
76
- "includeSubmitButton": boolean;
68
+ "clientStylingUrl"?: string;
77
69
  /**
78
- * Event emitted when the close button is clicked
70
+ * the endpoint required for the update call
79
71
  */
80
- "onCloseButtonClicked"?: (event: CustomEvent<any>) => void;
72
+ "endpoint": string;
81
73
  /**
82
- * Event name to be sent when the button is clicked
74
+ * Select GM version
83
75
  */
84
- "postMessageEvent"?: string;
76
+ "gmVersion"?: string;
85
77
  /**
86
- * Property used to display the close/cancel button
78
+ * whether or not to include the submit button (in case we want to compose a different )
87
79
  */
88
- "showCloseButton": boolean;
80
+ "includeSubmitButton": boolean;
89
81
  /**
90
- * the text of the button, if button is enabled
82
+ * Language
91
83
  */
92
- "submitButtonText"?: string;
84
+ "lang"?: string;
93
85
  /**
94
- * Use postMessage event to communicate
86
+ * Translation url
95
87
  */
96
- "usePostmessage": boolean;
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
  */