@dargmuesli/nuxt-cookie-control 10.0.0-beta.2 → 10.0.0-beta.4
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.mts +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/ClientOnlyPrerender.d.vue.ts +15 -0
- package/dist/runtime/components/ClientOnlyPrerender.vue.d.ts +5 -4
- package/dist/runtime/components/CookieControl.d.vue.ts +29 -0
- package/dist/runtime/components/CookieControl.vue +162 -129
- package/dist/runtime/components/CookieControl.vue.d.ts +10 -9
- package/dist/runtime/components/CookieIframe.d.vue.ts +13 -0
- package/dist/runtime/components/CookieIframe.vue.d.ts +5 -4
- package/dist/runtime/locale/ar.js +2 -0
- package/dist/runtime/locale/az.js +2 -0
- package/dist/runtime/locale/be.js +2 -0
- package/dist/runtime/locale/bg.js +2 -0
- package/dist/runtime/locale/ca.js +2 -0
- package/dist/runtime/locale/cs.js +2 -0
- package/dist/runtime/locale/da.js +2 -0
- package/dist/runtime/locale/de.js +2 -0
- package/dist/runtime/locale/en.js +2 -0
- package/dist/runtime/locale/es.js +2 -0
- package/dist/runtime/locale/fi.js +2 -0
- package/dist/runtime/locale/fr.js +2 -0
- package/dist/runtime/locale/hr.js +2 -0
- package/dist/runtime/locale/hu.js +2 -0
- package/dist/runtime/locale/id.js +2 -0
- package/dist/runtime/locale/it.js +2 -0
- package/dist/runtime/locale/ja.js +2 -0
- package/dist/runtime/locale/km.js +2 -0
- package/dist/runtime/locale/ko.js +2 -0
- package/dist/runtime/locale/lt.js +2 -0
- package/dist/runtime/locale/nl.js +2 -0
- package/dist/runtime/locale/no.js +2 -0
- package/dist/runtime/locale/oc.js +2 -0
- package/dist/runtime/locale/pl.js +2 -0
- package/dist/runtime/locale/pt.js +2 -0
- package/dist/runtime/locale/ro.js +2 -0
- package/dist/runtime/locale/rs.js +2 -0
- package/dist/runtime/locale/ru.js +2 -0
- package/dist/runtime/locale/sk.js +2 -0
- package/dist/runtime/locale/sl.js +2 -0
- package/dist/runtime/locale/sv.js +2 -0
- package/dist/runtime/locale/tr.js +5 -3
- package/dist/runtime/locale/uk.js +2 -0
- package/dist/runtime/locale/zh.js +2 -0
- package/dist/runtime/styles.css +1 -1
- package/dist/runtime/types.d.ts +2 -0
- package/package.json +16 -26
package/README.md
CHANGED
|
@@ -162,10 +162,10 @@ cookieNameCookiesEnabledIds: 'ncc_e',
|
|
|
162
162
|
cookieOptions: {
|
|
163
163
|
path: '/',
|
|
164
164
|
sameSite: 'strict',
|
|
165
|
-
}
|
|
165
|
+
},
|
|
166
166
|
|
|
167
167
|
// Switch to toggle the "accept necessary" button.
|
|
168
|
-
isAcceptNecessaryButtonEnabled: true
|
|
168
|
+
isAcceptNecessaryButtonEnabled: true,
|
|
169
169
|
|
|
170
170
|
// Switch to toggle the button that opens the configuration modal.
|
|
171
171
|
isControlButtonEnabled: true,
|
package/dist/module.d.mts
CHANGED
|
@@ -18,6 +18,7 @@ interface LocaleStrings {
|
|
|
18
18
|
acceptAll: string;
|
|
19
19
|
bannerDescription: string;
|
|
20
20
|
bannerTitle: string;
|
|
21
|
+
buttonCookies: string;
|
|
21
22
|
close: string;
|
|
22
23
|
cookiesFunctional: string;
|
|
23
24
|
cookiesNecessary: string;
|
|
@@ -27,6 +28,7 @@ interface LocaleStrings {
|
|
|
27
28
|
declineAll: string;
|
|
28
29
|
here: string;
|
|
29
30
|
manageCookies: string;
|
|
31
|
+
modalTitle: string;
|
|
30
32
|
save: string;
|
|
31
33
|
settingsUnsaved: string;
|
|
32
34
|
}
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -106,11 +106,11 @@ const DEFAULTS = {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
109
|
-
const version = "10.0.0-beta.
|
|
109
|
+
const version = "10.0.0-beta.4";
|
|
110
110
|
|
|
111
111
|
const resolver = createResolver(import.meta.url);
|
|
112
112
|
const runtimeDir = resolver.resolve("./runtime");
|
|
113
|
-
const module = defineNuxtModule({
|
|
113
|
+
const module$1 = defineNuxtModule({
|
|
114
114
|
meta: {
|
|
115
115
|
name,
|
|
116
116
|
version,
|
|
@@ -231,4 +231,4 @@ const pushCss = (moduleOptions, nuxt) => {
|
|
|
231
231
|
nuxt.options.css.push(resolver.resolve(runtimeDir, "styles.css"));
|
|
232
232
|
};
|
|
233
233
|
|
|
234
|
-
export { module as default };
|
|
234
|
+
export { module$1 as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_10: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
declare var __VLS_1: {},
|
|
1
|
+
declare var __VLS_1: {}, __VLS_10: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
9
10
|
export default _default;
|
|
10
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
11
12
|
new (): {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Cookie, Locale } from '#cookie-control/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
locale?: Locale;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_14: {}, __VLS_16: {}, __VLS_24: {}, __VLS_26: {
|
|
6
|
+
cookie: Cookie;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
bar?: (props: typeof __VLS_14) => any;
|
|
10
|
+
} & {
|
|
11
|
+
controlButton?: (props: typeof __VLS_16) => any;
|
|
12
|
+
} & {
|
|
13
|
+
modal?: (props: typeof __VLS_24) => any;
|
|
14
|
+
} & {
|
|
15
|
+
cookie?: (props: typeof __VLS_26) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
18
|
+
accept: () => void;
|
|
19
|
+
acceptPartial: () => void;
|
|
20
|
+
decline: () => void;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -13,30 +13,39 @@
|
|
|
13
13
|
<p v-text="localeStrings?.bannerDescription" />
|
|
14
14
|
</slot>
|
|
15
15
|
</div>
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
<ul class="cookieControl__BarButtons">
|
|
17
|
+
<li>
|
|
18
|
+
<button
|
|
19
|
+
type="button"
|
|
20
|
+
@click="acceptAll()"
|
|
21
|
+
v-text="localeStrings?.accept"
|
|
22
|
+
/>
|
|
23
|
+
</li>
|
|
24
|
+
<li v-if="moduleOptions.isAcceptNecessaryButtonEnabled">
|
|
25
|
+
<button
|
|
26
|
+
type="button"
|
|
27
|
+
@click="acceptNecessary()"
|
|
28
|
+
v-text="localeStrings?.decline"
|
|
29
|
+
/>
|
|
30
|
+
</li>
|
|
31
|
+
<li>
|
|
32
|
+
<button
|
|
33
|
+
type="button"
|
|
34
|
+
aria-haspopup="dialog"
|
|
35
|
+
:aria-controls="id"
|
|
36
|
+
@click="isModalActive = true"
|
|
37
|
+
v-text="localeStrings?.manageCookies"
|
|
38
|
+
/>
|
|
39
|
+
</li>
|
|
40
|
+
</ul>
|
|
34
41
|
</div>
|
|
35
42
|
</div>
|
|
36
43
|
</transition>
|
|
37
44
|
<button
|
|
38
45
|
v-if="moduleOptions.isControlButtonEnabled && isConsentGiven"
|
|
39
|
-
aria-label="
|
|
46
|
+
:aria-label="localeStrings?.buttonCookies"
|
|
47
|
+
aria-haspopup="dialog"
|
|
48
|
+
:aria-controls="id"
|
|
40
49
|
:class="[
|
|
41
50
|
'cookieControl__ControlButton',
|
|
42
51
|
`cookieControl__ControlButton--${moduleOptions.controlButtonPosition}`
|
|
@@ -54,154 +63,167 @@
|
|
|
54
63
|
</svg>
|
|
55
64
|
</slot>
|
|
56
65
|
</button>
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
<dialog
|
|
67
|
+
:id="id"
|
|
68
|
+
ref="dialog"
|
|
69
|
+
:aria-label="localeStrings?.modalTitle"
|
|
70
|
+
@close="isModalActive = false"
|
|
71
|
+
>
|
|
72
|
+
<transition name="cookieControl__Modal">
|
|
73
|
+
<div
|
|
74
|
+
v-if="isModalActive"
|
|
75
|
+
class="cookieControl__Modal"
|
|
76
|
+
@click.self="onModalClick"
|
|
77
|
+
>
|
|
78
|
+
<p
|
|
79
|
+
v-if="isSaved"
|
|
80
|
+
class="cookieControl__ModalUnsaved"
|
|
81
|
+
v-text="localeStrings?.settingsUnsaved"
|
|
82
|
+
/>
|
|
83
|
+
<div class="cookieControl__ModalContent">
|
|
84
|
+
<div class="cookieControl__ModalContentInner">
|
|
85
|
+
<button
|
|
86
|
+
v-if="!moduleOptions.isModalForced"
|
|
87
|
+
class="cookieControl__ModalClose"
|
|
88
|
+
type="button"
|
|
89
|
+
autofocus
|
|
90
|
+
@click="isModalActive = false"
|
|
91
|
+
v-text="localeStrings?.close"
|
|
92
|
+
/>
|
|
93
|
+
<slot name="modal" />
|
|
94
|
+
<template v-for="cookieType in CookieType" :key="cookieType">
|
|
95
|
+
<template v-if="moduleOptions.cookies[cookieType].length">
|
|
96
|
+
<h2
|
|
97
|
+
v-text="
|
|
82
98
|
localeStrings && (cookieType === CookieType.NECESSARY ? localeStrings.cookiesNecessary : localeStrings.cookiesOptional)
|
|
83
99
|
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
/>
|
|
101
|
+
<ul>
|
|
102
|
+
<li
|
|
103
|
+
v-for="cookie in moduleOptions.cookies[cookieType]"
|
|
104
|
+
:key="cookie.id"
|
|
105
|
+
>
|
|
106
|
+
<slot name="cookie" v-bind="{ cookie }">
|
|
107
|
+
<div class="cookieControl__ModalInputWrapper">
|
|
108
|
+
<input
|
|
109
|
+
v-if="
|
|
94
110
|
cookieType === CookieType.NECESSARY && cookie.name !== 'functional'
|
|
95
111
|
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
:id="resolveTranslatable(cookie.name, locale)"
|
|
113
|
+
type="checkbox"
|
|
114
|
+
disabled
|
|
115
|
+
checked
|
|
116
|
+
/>
|
|
117
|
+
<input
|
|
118
|
+
v-else
|
|
119
|
+
:id="resolveTranslatable(cookie.name, locale)"
|
|
120
|
+
type="checkbox"
|
|
121
|
+
:checked="
|
|
106
122
|
getCookieIds(localCookiesEnabled).includes(
|
|
107
123
|
cookie.id
|
|
108
124
|
)
|
|
109
125
|
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
>
|
|
121
|
-
{{ getName(cookie.name) }}
|
|
122
|
-
<span v-if="cookie.description">
|
|
123
|
-
{{ getDescription(cookie.description) }}
|
|
124
|
-
</span>
|
|
125
|
-
<span
|
|
126
|
-
v-if="
|
|
127
|
-
moduleOptions.isCookieIdVisible && cookie.targetCookieIds
|
|
128
|
-
"
|
|
129
|
-
>
|
|
130
|
-
<br />
|
|
131
|
-
{{
|
|
132
|
-
"IDs: " + cookie.targetCookieIds.map((id) => `"${id}"`).join(", ")
|
|
133
|
-
}}
|
|
134
|
-
</span>
|
|
135
|
-
<template
|
|
136
|
-
v-if="Object.entries(cookie.links || {}).length"
|
|
126
|
+
@change="toggleCookie(cookie)"
|
|
127
|
+
/>
|
|
128
|
+
<button type="button" @click="toggleButton($event)">
|
|
129
|
+
{{ getName(cookie.name) }}
|
|
130
|
+
</button>
|
|
131
|
+
<label
|
|
132
|
+
class="cookieControl__ModalCookieName"
|
|
133
|
+
:for="resolveTranslatable(cookie.name, locale)"
|
|
134
|
+
tabindex="0"
|
|
135
|
+
@keydown="toggleLabel($event)"
|
|
137
136
|
>
|
|
137
|
+
{{ getName(cookie.name) }}
|
|
138
|
+
<span v-if="cookie.description">
|
|
139
|
+
{{ getDescription(cookie.description) }}
|
|
140
|
+
</span>
|
|
138
141
|
<span
|
|
139
|
-
v-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
:key="entry[0]"
|
|
142
|
+
v-if="
|
|
143
|
+
moduleOptions.isCookieIdVisible && cookie.targetCookieIds
|
|
144
|
+
"
|
|
143
145
|
>
|
|
144
146
|
<br />
|
|
145
|
-
|
|
146
|
-
:
|
|
147
|
-
|
|
147
|
+
{{
|
|
148
|
+
"IDs: " + cookie.targetCookieIds.map((id) => `"${id}"`).join(", ")
|
|
149
|
+
}}
|
|
150
|
+
</span>
|
|
151
|
+
<template
|
|
152
|
+
v-if="Object.entries(cookie.links || {}).length"
|
|
153
|
+
>
|
|
154
|
+
<span
|
|
155
|
+
v-for="entry in Object.entries(
|
|
156
|
+
cookie.links || {}
|
|
157
|
+
)"
|
|
158
|
+
:key="entry[0]"
|
|
159
|
+
>
|
|
160
|
+
<br />
|
|
161
|
+
<NuxtLink
|
|
162
|
+
:to="entry[0]"
|
|
163
|
+
@click="
|
|
148
164
|
!entry[0].toLowerCase().startsWith('http') ? isModalActive = false : null
|
|
149
165
|
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
166
|
+
>
|
|
167
|
+
{{ entry[1] || entry[0] }}
|
|
168
|
+
</NuxtLink>
|
|
169
|
+
</span>
|
|
170
|
+
</template>
|
|
171
|
+
</label>
|
|
172
|
+
</div>
|
|
173
|
+
</slot>
|
|
174
|
+
</li>
|
|
175
|
+
</ul>
|
|
176
|
+
</template>
|
|
160
177
|
</template>
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
178
|
+
<ul class="cookieControl__ModalButtons">
|
|
179
|
+
<li>
|
|
180
|
+
<button
|
|
181
|
+
type="button"
|
|
182
|
+
@click="
|
|
166
183
|
() => {
|
|
167
184
|
acceptPartial();
|
|
168
185
|
isModalActive = false;
|
|
169
186
|
}
|
|
170
187
|
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
188
|
+
v-text="localeStrings?.save"
|
|
189
|
+
/>
|
|
190
|
+
</li>
|
|
191
|
+
<li>
|
|
192
|
+
<button
|
|
193
|
+
type="button"
|
|
194
|
+
@click="
|
|
176
195
|
() => {
|
|
177
196
|
acceptAll();
|
|
178
197
|
isModalActive = false;
|
|
179
198
|
}
|
|
180
199
|
"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
v-if="!moduleOptions.isModalForced"
|
|
185
|
-
|
|
186
|
-
|
|
200
|
+
v-text="localeStrings?.acceptAll"
|
|
201
|
+
/>
|
|
202
|
+
</li>
|
|
203
|
+
<li v-if="!moduleOptions.isModalForced">
|
|
204
|
+
<button
|
|
205
|
+
type="button"
|
|
206
|
+
@click="
|
|
187
207
|
() => {
|
|
188
208
|
moduleOptions.declineAllAcceptsNecessary ? acceptNecessary() : acceptNone();
|
|
189
209
|
isModalActive = false;
|
|
190
210
|
}
|
|
191
211
|
"
|
|
192
|
-
|
|
193
|
-
|
|
212
|
+
v-text="localeStrings?.declineAll"
|
|
213
|
+
/>
|
|
214
|
+
</li>
|
|
215
|
+
</ul>
|
|
194
216
|
</div>
|
|
195
217
|
</div>
|
|
196
218
|
</div>
|
|
197
|
-
</
|
|
198
|
-
</
|
|
219
|
+
</transition>
|
|
220
|
+
</dialog>
|
|
199
221
|
</aside>
|
|
200
222
|
</ClientOnlyPrerender>
|
|
201
223
|
</template>
|
|
202
224
|
|
|
203
225
|
<script setup>
|
|
204
|
-
import { ref, computed, onBeforeMount, watch } from "vue";
|
|
226
|
+
import { ref, computed, onBeforeMount, watch, useTemplateRef, useId } from "vue";
|
|
205
227
|
import ClientOnlyPrerender from "#cookie-control/components/ClientOnlyPrerender.vue";
|
|
206
228
|
import { COOKIE_ID_SEPARATOR } from "#cookie-control/constants";
|
|
207
229
|
import {
|
|
@@ -224,6 +246,7 @@ const {
|
|
|
224
246
|
moduleOptions
|
|
225
247
|
} = useCookieControl();
|
|
226
248
|
const nuxtApp = useNuxtApp();
|
|
249
|
+
const id = useId();
|
|
227
250
|
const expires = new Date(Date.now() + moduleOptions.cookieExpiryOffsetMs);
|
|
228
251
|
const preselectedCookies = moduleOptions.cookies[CookieType.OPTIONAL].filter(
|
|
229
252
|
(cookie) => cookie.isPreselected
|
|
@@ -373,6 +396,16 @@ watch(isConsentGiven, (current, _previous) => {
|
|
|
373
396
|
cookieIsConsentGiven.value = current ? allCookieIdsString : "0";
|
|
374
397
|
}
|
|
375
398
|
});
|
|
399
|
+
const templateRefDialog = useTemplateRef("dialog");
|
|
400
|
+
watch(isModalActive, (current, previous) => {
|
|
401
|
+
if (!templateRefDialog.value) return;
|
|
402
|
+
if (!previous && current && !templateRefDialog.value.open) {
|
|
403
|
+
templateRefDialog.value.showModal();
|
|
404
|
+
}
|
|
405
|
+
if (previous && !current && templateRefDialog.value.open) {
|
|
406
|
+
templateRefDialog.value.close();
|
|
407
|
+
}
|
|
408
|
+
});
|
|
376
409
|
watch(
|
|
377
410
|
() => locale,
|
|
378
411
|
(locale2) => {
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import type { Locale } from '#cookie-control/types';
|
|
1
|
+
import type { Cookie, Locale } from '#cookie-control/types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
locale?: Locale;
|
|
4
4
|
};
|
|
5
|
-
declare var
|
|
6
|
-
cookie:
|
|
5
|
+
declare var __VLS_14: {}, __VLS_16: {}, __VLS_24: {}, __VLS_26: {
|
|
6
|
+
cookie: Cookie;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
bar?: (props: typeof
|
|
9
|
+
bar?: (props: typeof __VLS_14) => any;
|
|
10
10
|
} & {
|
|
11
|
-
controlButton?: (props: typeof
|
|
11
|
+
controlButton?: (props: typeof __VLS_16) => any;
|
|
12
12
|
} & {
|
|
13
|
-
modal?: (props: typeof
|
|
13
|
+
modal?: (props: typeof __VLS_24) => any;
|
|
14
14
|
} & {
|
|
15
|
-
cookie?: (props: typeof
|
|
15
|
+
cookie?: (props: typeof __VLS_26) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
18
18
|
accept: () => void;
|
|
19
19
|
acceptPartial: () => void;
|
|
20
20
|
decline: () => void;
|
|
21
21
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
23
24
|
export default _default;
|
|
24
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
25
26
|
new (): {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
iframe?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
|
-
iframe?: (props: typeof
|
|
3
|
+
iframe?: (props: typeof __VLS_8) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -3,6 +3,7 @@ export default {
|
|
|
3
3
|
acceptAll: "\u0642\u0628\u0648\u0644 \u0627\u0644\u0643\u0644",
|
|
4
4
|
bannerDescription: "\u0646\u062D\u0646 \u0646\u0633\u062A\u062E\u062F\u0645 \u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0646\u0627 \u0648\u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0627\u0644\u062C\u0647\u0627\u062A \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629 \u062D\u062A\u0649 \u0646\u062A\u0645\u0643\u0646 \u0645\u0646 \u0639\u0631\u0636 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0642\u0639 \u0648\u0641\u0647\u0645 \u0643\u064A\u0641\u064A\u0629 \u0627\u0633\u062A\u062E\u062F\u0627\u0645\u0647 \u0628\u0634\u0643\u0644 \u0623\u0641\u0636\u0644 \u060C \u0628\u0647\u062F\u0641 \u062A\u062D\u0633\u064A\u0646 \u0627\u0644\u062E\u062F\u0645\u0627\u062A \u0627\u0644\u062A\u064A \u0646\u0642\u062F\u0645\u0647\u0627. \u0625\u0630\u0627 \u0648\u0627\u0635\u0644\u062A \u0627\u0644\u062A\u0635\u0641\u062D \u060C \u0641\u0625\u0646\u0646\u0627 \u0646\u0639\u062A\u0628\u0631 \u0623\u0646\u0643 \u0642\u0628\u0644\u062A \u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637.",
|
|
5
5
|
bannerTitle: "\u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637",
|
|
6
|
+
buttonCookies: "\u0641\u062A\u062D \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637",
|
|
6
7
|
close: "\u0625\u063A\u0644\u0627\u0642",
|
|
7
8
|
cookiesFunctional: "\u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0627\u0644\u0648\u0638\u064A\u0641\u064A\u0629",
|
|
8
9
|
cookiesNecessary: "\u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0627\u0644\u0636\u0631\u0648\u0631\u064A\u0629",
|
|
@@ -12,6 +13,7 @@ export default {
|
|
|
12
13
|
here: "\u0647\u0646\u0627",
|
|
13
14
|
iframeBlocked: "\u0644\u0631\u0624\u064A\u0629 \u0647\u0630\u0627 \u060C \u064A\u0631\u062C\u0649 \u062A\u0645\u0643\u064A\u0646 \u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0627\u0644\u0648\u0638\u064A\u0641\u064A\u0629",
|
|
14
15
|
manageCookies: "\u0625\u062F\u0627\u0631\u0629 \u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637",
|
|
16
|
+
modalTitle: "\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0645\u0644\u0641\u0627\u062A \u062A\u0639\u0631\u064A\u0641 \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637",
|
|
15
17
|
save: "\u062D\u0641\u0638",
|
|
16
18
|
settingsUnsaved: "\u0644\u062F\u064A\u0643 \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u063A\u064A\u0631 \u0645\u062D\u0641\u0648\u0638\u0629"
|
|
17
19
|
};
|
|
@@ -3,6 +3,7 @@ export default {
|
|
|
3
3
|
acceptAll: "Ham\u0131s\u0131n\u0131 q\u0259bul et",
|
|
4
4
|
bannerDescription: "Biz \xF6z kukil\u0259rimizd\u0259n v\u0259 \xFC\xE7\xFCnc\xFC t\u0259r\u0259f kukil\u0259rind\u0259n istifad\u0259 edirik ki, biz bu veb-sayt\u0131 d\xFCzg\xFCn g\xF6st\u0259r\u0259 bil\u0259k v\u0259 t\u0259klif etdiyimiz xidm\u0259tl\u0259ri t\u0259kmill\u0259\u015Fdirm\u0259k m\u0259qs\u0259dil\u0259 bu veb-saytdan nec\u0259 istifad\u0259 olundu\u011Funu daha yax\u015F\u0131 ba\u015Fa d\xFC\u015F\u0259k. Kukid\u0259n istifad\u0259 icaz\u0259l\u0259ri il\u0259 ba\u011Fl\u0131 q\u0259rar bu bannerd\u0259 se\xE7im edildikd\u0259n sonra g\xF6r\xFCn\u0259c\u0259k kuki d\xFCym\u0259sind\u0259n istifad\u0259 etm\u0259kl\u0259 ist\u0259nil\u0259n vaxt d\u0259yi\u015Fdiril\u0259 bil\u0259r.",
|
|
5
5
|
bannerTitle: "Kukil\u0259r",
|
|
6
|
+
buttonCookies: "Kuki ayarlar\u0131n\u0131 a\xE7",
|
|
6
7
|
close: "Ba\u011Fla",
|
|
7
8
|
cookiesFunctional: "Funksional kukil\u0259r",
|
|
8
9
|
cookiesNecessary: "Z\u0259ruri kukil\u0259r",
|
|
@@ -12,6 +13,7 @@ export default {
|
|
|
12
13
|
here: "burada",
|
|
13
14
|
iframeBlocked: "Bunu g\xF6rm\u0259k \xFC\xE7\xFCn funksional kukil\u0259ri aktiv edin",
|
|
14
15
|
manageCookies: "Kukil\u0259ri idar\u0259 et",
|
|
16
|
+
modalTitle: "Kuki ayarlar\u0131",
|
|
15
17
|
save: "Yadda saxla",
|
|
16
18
|
settingsUnsaved: "Yadda saxlanmam\u0131\u015F ayarlar\u0131n\u0131z var"
|
|
17
19
|
};
|
|
@@ -3,6 +3,7 @@ export default {
|
|
|
3
3
|
acceptAll: "\u041F\u0440\u044B\u043D\u044F\u0446\u044C \u0443\u0441\u0451",
|
|
4
4
|
bannerDescription: "\u041C\u044B \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0435\u043C \u043D\u0430\u0448\u044B\u044F \u045E\u043B\u0430\u0441\u043D\u044B\u044F cookie-\u0444\u0430\u0439\u043B\u044B \u0456 cookie-\u0444\u0430\u0439\u043B\u044B \u0442\u0440\u044D\u0446\u0456\u0445 \u0441\u0442\u0430\u0440\u043E\u043D, \u043A\u0430\u0431 \u043C\u044B \u043C\u0430\u0433\u043B\u0456 \u043F\u0430\u043A\u0430\u0437\u0430\u0446\u044C \u0432\u0430\u043C \u0433\u044D\u0442\u044B \u0432\u044D\u0431-\u0441\u0430\u0439\u0442 \u0456 \u043B\u0435\u043F\u0448 \u0440\u0430\u0437\u0443\u043C\u0435\u0446\u044C, \u044F\u043A \u0432\u044B \u044F\u0433\u043E \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0435\u0446\u0435, \u0437 \u043C\u044D\u0442\u0430\u0439 \u043F\u0430\u043B\u0435\u043F\u0448\u044D\u043D\u043D\u044F \u043F\u0440\u0430\u043F\u0430\u043D\u0430\u0432\u0430\u043D\u044B\u0445 \u043D\u0430\u043C\u0456 \u043F\u0430\u0441\u043B\u0443\u0433. \u041A\u0430\u043B\u0456 \u0432\u044B \u043F\u0440\u0430\u0446\u044F\u0433\u043D\u0435\u0446\u0435 \u043F\u0440\u0430\u0433\u043B\u044F\u0434, \u043C\u044B \u0431\u0443\u0434\u0437\u0435\u043C \u043B\u0456\u0447\u044B\u0446\u044C, \u0448\u0442\u043E \u0432\u044B \u043F\u0440\u044B\u043D\u044F\u043B\u0456 cookie-\u0444\u0430\u0439\u043B\u044B.",
|
|
5
5
|
bannerTitle: "Cookie-\u0444\u0430\u0439\u043B\u044B",
|
|
6
|
+
buttonCookies: "\u0410\u0434\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 cookie",
|
|
6
7
|
close: "\u0417\u0430\u0447\u044B\u043D\u0456\u0446\u044C",
|
|
7
8
|
cookiesFunctional: "\u0424\u0443\u043D\u043A\u0446\u044B\u044F\u043D\u0430\u043B\u044C\u043D\u044B\u044F cookie-\u0444\u0430\u0439\u043B\u044B",
|
|
8
9
|
cookiesNecessary: "\u041D\u0435\u0430\u0431\u0445\u043E\u0434\u043D\u044B\u044F cookie-\u0444\u0430\u0439\u043B\u044B",
|
|
@@ -12,6 +13,7 @@ export default {
|
|
|
12
13
|
here: "\u0442\u0443\u0442",
|
|
13
14
|
iframeBlocked: "\u041A\u0430\u0431 \u0443\u0431\u0430\u0447\u044B\u0446\u044C \u0433\u044D\u0442\u0430, \u0443\u043A\u043B\u044E\u0447\u044B\u0446\u0435 \u0444\u0443\u043D\u043A\u0446\u044B\u044F\u043D\u0430\u043B\u044C\u043D\u044B\u044F cookie-\u0444\u0430\u0439\u043B\u044B",
|
|
14
15
|
manageCookies: "\u041A\u0456\u0440\u0430\u0432\u0430\u043D\u043D\u0435 cookie-\u0444\u0430\u0439\u043B\u0430\u043C\u0456",
|
|
16
|
+
modalTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 cookie",
|
|
15
17
|
save: "\u0417\u0430\u0445\u0430\u0432\u0430\u0446\u044C",
|
|
16
18
|
settingsUnsaved: "\u0423 \u0432\u0430\u0441 \u0437\u0430\u0441\u0442\u0430\u043B\u0456\u0441\u044F \u043D\u0435\u0437\u0430\u0445\u0430\u0432\u0430\u043D\u044B\u044F \u043D\u0430\u043B\u0430\u0434\u044B"
|
|
17
19
|
};
|
|
@@ -3,6 +3,7 @@ export default {
|
|
|
3
3
|
acceptAll: "\u041F\u0440\u0438\u0435\u043C\u0438 \u0432\u0441\u0438\u0447\u043A\u0438",
|
|
4
4
|
bannerDescription: '\u041D\u0438\u0435 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043C\u0435 \u043D\u0430\u0448\u0438 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438" \u0438 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438" \u043E\u0442 \u0442\u0440\u0435\u0442\u0438 \u0441\u0442\u0440\u0430\u043D\u0438, \u0437\u0430 \u0434\u0430 \u043C\u043E\u0436\u0435\u043C \u0434\u0430 \u043F\u043E\u043A\u0430\u0437\u0432\u0430\u043C\u0435 \u043F\u0440\u0430\u0432\u0438\u043B\u043D\u043E \u0442\u043E\u0437\u0438 \u0443\u0435\u0431 \u0441\u0430\u0439\u0442 \u0438 \u0434\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043C \u043F\u043E-\u0434\u043E\u0431\u0440\u0435 \u043A\u0430\u043A \u0441\u0435 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430, \u0441 \u0446\u0435\u043B \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043F\u0440\u0435\u0434\u043B\u0430\u0433\u0430\u043D\u0438\u0442\u0435 \u043E\u0442 \u043D\u0430\u0441 \u0443\u0441\u043B\u0443\u0433\u0438. \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435\u0442\u043E \u0437\u0430 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438" \u043C\u043E\u0436\u0435 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u0440\u043E\u043C\u0435\u043D\u0435\u043D\u043E \u043F\u043E \u0432\u0441\u044F\u043A\u043E \u0432\u0440\u0435\u043C\u0435, \u043A\u0430\u0442\u043E \u0441\u0435 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430 \u0431\u0443\u0442\u043E\u043D\u044A\u0442 \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438, \u043A\u043E\u0439\u0442\u043E \u0449\u0435 \u0441\u0435 \u043F\u043E\u044F\u0432\u0438 \u0441\u043B\u0435\u0434 \u043A\u0430\u0442\u043E \u0431\u044A\u0434\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u0435\u043D \u0438\u0437\u0431\u043E\u0440 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0431\u0430\u043D\u0435\u0440.',
|
|
5
5
|
bannerTitle: '"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"',
|
|
6
|
+
buttonCookies: '\u041E\u0442\u0432\u043E\u0440\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\u0442\u0435 \u0437\u0430 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"',
|
|
6
7
|
close: "\u0417\u0430\u0442\u0432\u043E\u0440\u0438",
|
|
7
8
|
cookiesFunctional: '\u0424\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u043D\u0438 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"',
|
|
8
9
|
cookiesNecessary: '\u041D\u0443\u0436\u043D\u0438 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"',
|
|
@@ -12,6 +13,7 @@ export default {
|
|
|
12
13
|
here: "\u0442\u0443\u043A",
|
|
13
14
|
iframeBlocked: '\u0417\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u043E\u0432\u0430, \u043C\u043E\u043B\u044F, \u043F\u043E\u0437\u0432\u043E\u043B\u0435\u0442\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u043D\u0438\u0442\u0435 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"',
|
|
14
15
|
manageCookies: "\u0412\u0438\u0436\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435 \u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u0442\u0435",
|
|
16
|
+
modalTitle: '\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0437\u0430 "\u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"',
|
|
15
17
|
save: "\u0417\u0430\u043F\u0430\u0437\u0438",
|
|
16
18
|
settingsUnsaved: "\u0418\u043C\u0430\u0442\u0435 \u043D\u0435\u0437\u0430\u043F\u0430\u0437\u0435\u043D\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"
|
|
17
19
|
};
|