@consent.software/catalog 1.3.4 → 1.3.5
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 +10 -10
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/consentsoftware-cookieconsent.js +6 -5
- package/dist_ts_web/elements/consentsoftware-header.js +2 -2
- package/dist_ts_web/elements/consentsoftware-mainselection.js +3 -4
- package/dist_ts_web/elements/consentsoftware-tabs.js +1 -1
- package/dist_watch/bundle.js +43062 -0
- package/dist_watch/bundle.js.map +7 -0
- package/dist_watch/index.html +28 -0
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/consentsoftware-cookieconsent.ts +5 -4
- package/ts_web/elements/consentsoftware-header.ts +2 -2
- package/ts_web/elements/consentsoftware-mainselection.ts +2 -3
- package/ts_web/elements/consentsoftware-tabs.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -81,7 +81,7 @@ ${n}
|
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
|
-
`}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?(this.setAttribute("show","false"),this.setAttribute("gotIt","true")):(this.setAttribute("show","true"),this.setAttribute("gotIt","false"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(0, 0, 0, 0.
|
|
84
|
+
`}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?(this.setAttribute("show","false"),this.setAttribute("gotIt","true")):(this.setAttribute("show","true"),this.setAttribute("gotIt","false"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(0, 0, 0, 0.1)",o.style.backdropFilter="blur(2px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async setLevel(r,o){console.log(`Set level to ${o}`),await this.csWebclientInstance.setCookieLevels(o),this.setAttribute("gotIt","true"),await Ar(300),this.setAttribute("show","false"),this.updated()}updateTheme(){let r=window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r?"dark":"light",window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{this.theme=o.matches?"dark":"light"})}};Or.demo=()=>Ne`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Or.styles=Xe`
|
|
85
85
|
:host {
|
|
86
86
|
font-family: ${$n};
|
|
87
87
|
/* Default theme variables */
|
|
@@ -134,8 +134,9 @@ ${n}
|
|
|
134
134
|
display: block;
|
|
135
135
|
color: var(--text-color);
|
|
136
136
|
background: var(--background-color);
|
|
137
|
-
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.
|
|
137
|
+
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
|
|
138
138
|
position: realtive;
|
|
139
|
+
border: 1px dotted rgba(255, 255, 255, 0.1);
|
|
139
140
|
border-top: 1px solid var(--accent-color);
|
|
140
141
|
border-radius: 16px;
|
|
141
142
|
max-width: 1100px;
|
|
@@ -201,9 +202,9 @@ ${n}
|
|
|
201
202
|
.info-container {
|
|
202
203
|
color: var(--text-color);
|
|
203
204
|
text-align: center;
|
|
204
|
-
line-height:
|
|
205
|
+
line-height: 3em;
|
|
205
206
|
background: rgba(0, 0, 0, 0.1);
|
|
206
|
-
border-top: 1px
|
|
207
|
+
border-top: 1px dotted rgba(255, 255, 255, 0.1);
|
|
207
208
|
font-size: 0.8em;
|
|
208
209
|
color: rgba(255, 255, 255, 0.5);
|
|
209
210
|
}
|
|
@@ -238,10 +239,10 @@ ${n}
|
|
|
238
239
|
`}};go.demo=()=>Ne`<consentsoftware-tabs></consentsoftware-tabs>`,go.styles=Xe`
|
|
239
240
|
:host {
|
|
240
241
|
display: block;
|
|
241
|
-
line-height:
|
|
242
|
+
line-height: 3em;
|
|
242
243
|
text-align: center;
|
|
243
244
|
font-family: ${$n};
|
|
244
|
-
border-bottom: 1px
|
|
245
|
+
border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
.heading {
|
|
@@ -266,8 +267,6 @@ ${n}
|
|
|
266
267
|
:host {
|
|
267
268
|
display: block;
|
|
268
269
|
position: relative;
|
|
269
|
-
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
270
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
271
270
|
}
|
|
272
271
|
|
|
273
272
|
.maincontainer {
|
|
@@ -278,7 +277,8 @@ ${n}
|
|
|
278
277
|
.itemBox {
|
|
279
278
|
padding: 16px;
|
|
280
279
|
text-align: center;
|
|
281
|
-
border-right: 1px solid
|
|
280
|
+
border-right: 1px solid;
|
|
281
|
+
border-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%) 1;
|
|
282
282
|
}
|
|
283
283
|
.itemBox:last-child {
|
|
284
284
|
border-right: none;
|
|
@@ -351,7 +351,7 @@ ${n}
|
|
|
351
351
|
<div class="tabs">
|
|
352
352
|
<div class="tab" @click=${this.handleClick}>Consent</div>
|
|
353
353
|
<div class="tab" @click=${this.handleClick}>Details</div>
|
|
354
|
-
<div class="tab" @click=${this.handleClick}>
|
|
354
|
+
<div class="tab" @click=${this.handleClick}>Cookie Policy + Legal Info</div>
|
|
355
355
|
</div>
|
|
356
356
|
<div class="selector"></div>
|
|
357
357
|
`}async handleClick(e){let o=e.target.closest(".tab");if(o){let n=this.shadowRoot?.querySelector(".selector");n&&(n.style.left=`${o.offsetLeft}px`,n.style.width=`${o.offsetWidth}px`)}}};bo.demo=()=>Ne`<consentsoftware-tabs></consentsoftware-tabs>`,bo.styles=Xe`
|