@consent.software/catalog

the catalog for the cookieconsent box.

readme.md for @consent.software/catalog

A sleek, modern library of web components for seamless consent management integration. Built with Lit and designed for GDPR/CCPA compliance out of the box.

Issue Reporting and Security

For reporting bugs, issues, or security vulnerabilities, please visit community.foss.global/. This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a code.foss.global/ account to submit Pull Requests directly.

Features

Installation

npm install @consent.software/catalog
# or
pnpm add @consent.software/catalog

Quick Start

Import the components and add the consent banner to your page:

import '@consent.software/catalog';

// That's it! Add the component to your HTML
<consentsoftware-cookieconsent></consentsoftware-cookieconsent>

Components

<consentsoftware-cookieconsent>

<consentsoftware-cookieconsent></consentsoftware-cookieconsent>

Features:

<consentsoftware-toggle>

A draggable toggle switch component with touch support.

<consentsoftware-toggle>Label Text</consentsoftware-toggle>
<consentsoftware-toggle required>Required</consentsoftware-toggle>

Properties:

Events:

<consentsoftware-tabs>

Tab navigation component with animated indicator.

<consentsoftware-tabs></consentsoftware-tabs>

Displays three tabs: Consent, Details, and Cookie Policy.

<consentsoftware-header>

Simple header component for the consent modal.

<consentsoftware-header></consentsoftware-header>

<consentsoftware-mainselection>

Grid layout containing toggle switches for each cookie category.

<consentsoftware-mainselection></consentsoftware-mainselection>

Backend Integration

This catalog integrates with the @consent.software/webclient package for backend communication:

import { CsWebclient } from '@consent.software/webclient';

const client = new CsWebclient();

// Check current consent levels
const levels = await client.getCookieLevels();
if (!levels) {
  // Show consent dialog
}

// Set consent levels programmatically
await client.setCookieLevels(['functional', 'analytics']);

// Run consent-dependent scripts
await client.getAndRunConsentTuples();

Styling & Theming

The components use CSS custom properties for easy theming:

consentsoftware-cookieconsent {
  /* Text and colors */
  --text-color: #333;
  --background-color: #eeeeee;
  --accent-color: #333333;

  /* Buttons */
  --button-bg: #ffffff;
  --button-hover-bg: #f2f2f2;

  /* Links */
  --link-color: #333;
  --icon-color: #4496f5;

  /* Modal */
  --modal-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
  --info-bg: rgba(0, 0, 0, 0.1);
  --info-text: rgba(0, 0, 0, 0.5);
}

The component automatically switches to dark theme variables when theme="dark" is set or when the system prefers dark mode.

Level Description
functional Required cookies for site operation (always enabled)
preferences User preference cookies
analytics Statistics and analytics tracking
marketing Marketing and advertising cookies

Browser Support

Built with modern ES modules and requires browsers with native Custom Elements v1 support.

Development

# Install dependencies
pnpm install

# Build the project
pnpm run build

# Watch mode for development
pnpm run watch

This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the LICENSE file.

Please note: The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.

Trademarks

This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.

Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.

Company Information

Task Venture Capital GmbH Registered at District Court Bremen HRB 35230 HB, Germany

By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.

changelog.md for @consent.software/catalog

2025-11-30 - 2.0.1 - fix(consentsoftware-cookieconsent)

2025-11-30 - 2.0.0 - BREAKING CHANGE(elements)

Migrate web components to @design.estate/dees-element, introduce shared theme colors and cssManager, and update imports/usages across ts_web.

2025-11-30 - 1.6.1 - fix(build)

Update TypeScript config and build tooling; use accessor for Lit properties; bump deps and adjust package metadata

2025-01-22 - 1.6.0 - feat(elements)

Enhance theme handling and CSS organization for consent component

2025-01-21 - 1.5.4 - fix(consentsoftware-components)

Add interactive consent software components for managing cookie levels.

2025-01-20 - 1.5.3 - fix(consentsoftware-cookieconsent)

Fix visual inconsistencies in the consent software modal overlay and shadow.

2025-01-20 - 1.5.2 - fix(core)

No changes detected

2025-01-20 - 1.5.1 - fix(consentsoftware-cookieconsent)

Adjusted shake animation duration and box-shadow for modalBox in consent cookie component.

2025-01-20 - 1.5.0 - feat(consentsoftware-cookieconsent)

2025-01-17 - 1.4.5 - fix(elements)

Fix issues in consentsoftware-cookieconsent component

2025-01-17 - 1.4.4 - fix(core)

Update LitElement properties to use accessors

2025-01-17 - 1.4.3 - fix(consentsoftware-cookieconsent)

Fix transition property in consent button styles and add HTMLElementTagNameMap declaration for global interface.

2025-01-16 - 1.4.2 - fix(cookieconsent)

Fix user-select property in consentsoftware-cookieconsent component for consistency in interaction.

2025-01-16 - 1.4.1 - fix(consentsoftware-toggle)

Fix issue in drag event handling logic for the toggle component.

2025-01-16 - 1.4.0 - feat(toggle component)

2025-01-16 - 1.3.5 - fix(elements)

Improved styling consistency across several components

2025-01-14 - 1.3.4 - fix(dependencies)

Corrected build script and updated @consent.software/webclient dependency version

2025-01-14 - 1.3.3 - fix(package.json)

Fixed incorrect main and typings fields, replacing with exports field

2025-01-14 - 1.3.2 - fix(core)

No code changes detected, maintain current state.

2025-01-14 - 1.3.1 - fix(package setup)

Fix package metadata and dependency consistency

2025-01-14 - 1.3.0 - feat(elements)

2025-01-13 - 1.2.0 - feat(pages)

Add initial structure for pages with page1 component

2025-01-13 - 1.1.0 - feat(core)

Refactor and enhance consent management components

2025-01-09 - 1.0.81 - fix(core)

Package updated to ensure compliance with privacy regulations.

2025-01-09 - 1.0.80 - fix(core)

Remove deprecated GitLab CI configuration and update metadata for improved compatibility and efficiency.

2025-01-09 - 1.0.79 - Initial Release

Initial release of the project.