@consent.software/catalog 1.6.0 → 2.0.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.
- package/dist_bundle/bundle.js +632 -401
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/consentsoftware-cookieconsent.d.ts +4 -20
- package/dist_ts_web/elements/consentsoftware-cookieconsent.js +267 -303
- package/dist_ts_web/elements/consentsoftware-header.d.ts +3 -4
- package/dist_ts_web/elements/consentsoftware-header.js +89 -38
- package/dist_ts_web/elements/consentsoftware-mainselection.d.ts +6 -7
- package/dist_ts_web/elements/consentsoftware-mainselection.js +126 -54
- package/dist_ts_web/elements/consentsoftware-tabs.d.ts +4 -5
- package/dist_ts_web/elements/consentsoftware-tabs.js +109 -62
- package/dist_ts_web/elements/consentsoftware-toggle.d.ts +11 -9
- package/dist_ts_web/elements/consentsoftware-toggle.js +262 -214
- package/dist_ts_web/elements/shared.d.ts +35 -1
- package/dist_ts_web/elements/shared.js +36 -2
- package/dist_ts_web/pages/page1.d.ts +1 -1
- package/dist_ts_web/pages/page1.js +2 -2
- package/dist_watch/bundle.js +10228 -4196
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +9 -9
- package/readme.md +149 -80
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/consentsoftware-cookieconsent.ts +150 -218
- package/ts_web/elements/consentsoftware-header.ts +40 -23
- package/ts_web/elements/consentsoftware-mainselection.ts +63 -33
- package/ts_web/elements/consentsoftware-tabs.ts +51 -37
- package/ts_web/elements/consentsoftware-toggle.ts +123 -107
- package/ts_web/elements/shared.ts +38 -2
- package/ts_web/pages/page1.ts +1 -1
- package/ts_web/tsconfig.json +4 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@consent.software/catalog',
|
|
6
|
-
version: '
|
|
6
|
+
version: '2.0.0',
|
|
7
7
|
description: 'A library of web components designed to integrate robust consent management capabilities into web applications, ensuring compliance with privacy regulations.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsMkJBQTJCO0lBQ2pDLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSwrSkFBK0o7Q0FDN0ssQ0FBQSJ9
|
|
@@ -1,36 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeesElement, type TemplateResult } from '@design.estate/dees-element';
|
|
2
2
|
import * as csWebclient from '@consent.software/webclient';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'consentsoftware-cookieconsent': ConsentsoftwareCookieconsent;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export declare class ConsentsoftwareCookieconsent extends
|
|
8
|
+
export declare class ConsentsoftwareCookieconsent extends DeesElement {
|
|
9
9
|
static demo: () => TemplateResult<1>;
|
|
10
10
|
csWebclientInstance: csWebclient.CsWebclient;
|
|
11
11
|
csWebclientRan: boolean;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Define component styles with CSS variables that adjust based on theme.
|
|
15
|
-
* The default variables serve as baseline for the light theme.
|
|
16
|
-
* Theme-specific overrides modify these for dark mode.
|
|
17
|
-
*/
|
|
18
|
-
static styles: import("lit").CSSResult;
|
|
12
|
+
static styles: import("@design.estate/dees-element").CSSResult[];
|
|
19
13
|
constructor();
|
|
20
14
|
render(): TemplateResult;
|
|
21
15
|
/**
|
|
22
16
|
* Lifecycle method called when the element is connected to the DOM.
|
|
23
|
-
*
|
|
17
|
+
* Displays the consent banner if no cookie levels are set.
|
|
24
18
|
*/
|
|
25
19
|
connectedCallback(): Promise<void>;
|
|
26
20
|
firstUpdated(): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Called after updates. Logs banner height and runs consent scripts if necessary.
|
|
29
|
-
*/
|
|
30
|
-
updated(): Promise<void>;
|
|
31
21
|
/**
|
|
32
22
|
* Handles consent button clicks, sets cookie levels, and hides the banner.
|
|
33
|
-
* Uses theme variables for styling transitions.
|
|
34
23
|
*/
|
|
35
24
|
private handleConsentButtonClick;
|
|
36
25
|
/**
|
|
@@ -38,9 +27,4 @@ export declare class ConsentsoftwareCookieconsent extends LitElement {
|
|
|
38
27
|
* triggers a shake animation as feedback.
|
|
39
28
|
*/
|
|
40
29
|
private pageOverlayClick;
|
|
41
|
-
/**
|
|
42
|
-
* Dynamically switches the theme between light and dark.
|
|
43
|
-
* Listens for system theme changes to update the component's theme.
|
|
44
|
-
*/
|
|
45
|
-
private updateTheme;
|
|
46
30
|
}
|