@dargmuesli/nuxt-cookie-control 4.0.3 → 5.0.0-beta.2
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/README.md +2 -2
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/CookieControl.vue +4 -4
- package/dist/runtime/styles.css +12 -12
- package/dist/runtime/types.d.ts +1 -1
- package/dist/runtime/types.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,8 +162,8 @@ isCookieIdVisible: false,
|
|
|
162
162
|
// If css is set to false, you will still be able to access your color variables.
|
|
163
163
|
isCssEnabled: true,
|
|
164
164
|
|
|
165
|
-
// Switch to toggle the css variables
|
|
166
|
-
|
|
165
|
+
// Switch to toggle the css variables ponyfill.
|
|
166
|
+
isCssPonyfillEnabled: false,
|
|
167
167
|
|
|
168
168
|
// Switch to toggle the separation of cookie name and description in the configuration modal by a dash.
|
|
169
169
|
isDashInDescriptionEnabled: true,
|
package/dist/module.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ interface ModuleOptions {
|
|
|
42
42
|
isControlButtonEnabled: boolean;
|
|
43
43
|
isCookieIdVisible: boolean;
|
|
44
44
|
isCssEnabled: boolean;
|
|
45
|
-
|
|
45
|
+
isCssPonyfillEnabled: boolean;
|
|
46
46
|
isDashInDescriptionEnabled: boolean;
|
|
47
47
|
isIframeBlocked: boolean | {
|
|
48
48
|
initialState: boolean;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
|
|
|
2
2
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
|
|
3
3
|
|
|
4
4
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
5
|
-
const version = "
|
|
5
|
+
const version = "5.0.0-beta.2";
|
|
6
6
|
|
|
7
7
|
const en = {
|
|
8
8
|
accept: "Accept",
|
|
@@ -63,7 +63,7 @@ const DEFAULTS = {
|
|
|
63
63
|
isControlButtonEnabled: true,
|
|
64
64
|
isCookieIdVisible: false,
|
|
65
65
|
isCssEnabled: true,
|
|
66
|
-
|
|
66
|
+
isCssPonyfillEnabled: false,
|
|
67
67
|
isDashInDescriptionEnabled: true,
|
|
68
68
|
isIframeBlocked: false,
|
|
69
69
|
domain: "",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
v-text="localeStrings?.settingsUnsaved"
|
|
53
53
|
/>
|
|
54
54
|
<div class="cookieControl__ModalContent">
|
|
55
|
-
<div>
|
|
55
|
+
<div class="cookieControl__ModalContentInner">
|
|
56
56
|
<slot name="modal" />
|
|
57
57
|
<button
|
|
58
58
|
class="cookieControl__ModalClose"
|
|
59
59
|
@click="isModalActive = false"
|
|
60
60
|
v-text="localeStrings?.close"
|
|
61
61
|
/>
|
|
62
|
-
<
|
|
62
|
+
<template v-for="cookieType in CookieType" :key="cookieType">
|
|
63
63
|
<template v-if="moduleOptions.cookies[cookieType].length">
|
|
64
64
|
<h3
|
|
65
65
|
v-text="
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
</li>
|
|
131
131
|
</ul>
|
|
132
132
|
</template>
|
|
133
|
-
</
|
|
133
|
+
</template>
|
|
134
134
|
<div class="cookieControl__ModalButtons">
|
|
135
135
|
<button
|
|
136
136
|
@click="
|
|
@@ -294,7 +294,7 @@ onBeforeMount(async () => {
|
|
|
294
294
|
variables[`cookie-control-${key}`] = `${moduleOptions.colors[key]}`
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
if (moduleOptions.
|
|
297
|
+
if (moduleOptions.isCssPonyfillEnabled) {
|
|
298
298
|
const module = await import('css-vars-ponyfill')
|
|
299
299
|
const cssVars = module.default
|
|
300
300
|
cssVars({ variables })
|
package/dist/runtime/styles.css
CHANGED
|
@@ -175,7 +175,6 @@
|
|
|
175
175
|
}
|
|
176
176
|
.cookieControl__Modal > div {
|
|
177
177
|
font-size: initial;
|
|
178
|
-
padding-top: 80px;
|
|
179
178
|
}
|
|
180
179
|
.cookieControl__Modal button {
|
|
181
180
|
color: var(--cookie-control-modalButtonColor);
|
|
@@ -203,7 +202,7 @@
|
|
|
203
202
|
}
|
|
204
203
|
.cookieControl__ModalContent h3 {
|
|
205
204
|
font-size: 24px;
|
|
206
|
-
margin:
|
|
205
|
+
margin: 15px 0px;
|
|
207
206
|
}
|
|
208
207
|
.cookieControl__ModalContent h3:first-of-type {
|
|
209
208
|
margin-top: 0;
|
|
@@ -265,6 +264,11 @@
|
|
|
265
264
|
transform: translate3d(0, -50%, 0);
|
|
266
265
|
background-color: var(--cookie-control-checkboxInactiveCircleBackground);
|
|
267
266
|
}
|
|
267
|
+
.cookieControl__ModalContentInner {
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-direction: column;
|
|
270
|
+
gap: 10px;
|
|
271
|
+
}
|
|
268
272
|
.cookieControl__ModalInputWrapper {
|
|
269
273
|
display: flex;
|
|
270
274
|
align-items: flex-start;
|
|
@@ -278,17 +282,15 @@
|
|
|
278
282
|
text-transform: none;
|
|
279
283
|
}
|
|
280
284
|
.cookieControl__ModalClose {
|
|
281
|
-
|
|
285
|
+
align-self: flex-end;
|
|
282
286
|
top: 20px;
|
|
283
287
|
right: 20px;
|
|
284
288
|
}
|
|
285
289
|
.cookieControl__ModalButtons {
|
|
286
290
|
display: flex;
|
|
287
|
-
margin-top:
|
|
288
|
-
align-items:
|
|
289
|
-
|
|
290
|
-
.cookieControl__ModalButtons button + button {
|
|
291
|
-
margin-left: 20px;
|
|
291
|
+
margin-top: 40px;
|
|
292
|
+
align-items: stretch;
|
|
293
|
+
gap: 20px;
|
|
292
294
|
}
|
|
293
295
|
.cookieControl__ModalUnsaved {
|
|
294
296
|
position: absolute;
|
|
@@ -335,7 +337,7 @@
|
|
|
335
337
|
bottom: 0;
|
|
336
338
|
max-width: none;
|
|
337
339
|
max-height: 100%;
|
|
338
|
-
padding:
|
|
340
|
+
padding: 20px;
|
|
339
341
|
}
|
|
340
342
|
.cookieControl__BarButtons {
|
|
341
343
|
width: 100%;
|
|
@@ -352,13 +354,11 @@
|
|
|
352
354
|
.cookieControl__BarContainer,
|
|
353
355
|
.cookieControl__ModalButtons {
|
|
354
356
|
flex-direction: column;
|
|
357
|
+
gap: 0;
|
|
355
358
|
}
|
|
356
359
|
.cookieControl__ModalButtons button {
|
|
357
360
|
width: 100%;
|
|
358
361
|
}
|
|
359
|
-
.cookieControl__ModalButtons button + button {
|
|
360
|
-
margin: 10px 0 0;
|
|
361
|
-
}
|
|
362
362
|
}
|
|
363
363
|
.cookieControl__ControlButton {
|
|
364
364
|
position: fixed;
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ModuleOptions {
|
|
|
45
45
|
isControlButtonEnabled: boolean;
|
|
46
46
|
isCookieIdVisible: boolean;
|
|
47
47
|
isCssEnabled: boolean;
|
|
48
|
-
|
|
48
|
+
isCssPonyfillEnabled: boolean;
|
|
49
49
|
isDashInDescriptionEnabled: boolean;
|
|
50
50
|
isIframeBlocked: boolean | {
|
|
51
51
|
initialState: boolean;
|
package/dist/runtime/types.mjs
CHANGED