@opendesign-plus-test/components 0.0.1-rc.283 → 0.0.1-rc.284
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/chunk-element-plus.cjs.js +1 -1
- package/dist/chunk-element-plus.es.js +99 -113
- package/dist/components/activity/index.d.ts +9 -9
- package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/components/anchor-bar/index.d.ts +9 -9
- package/dist/components/article/index.d.ts +25 -25
- package/dist/components/article-anchor/OArticleAnchor.vue.d.ts +176 -0
- package/dist/components/article-anchor/index.d.ts +185 -9
- package/dist/components/article-pagination/index.d.ts +17 -17
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/brand/index.d.ts +15 -15
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +1 -1
- package/dist/components/community-updates/index.d.ts +14 -14
- package/dist/components/cookie-notice/OCookieNotice.vue.d.ts +3 -9
- package/dist/components/cookie-notice/index.d.ts +2 -15
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -2
- package/dist/components/doc-layout/index.d.ts +1 -0
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +3 -9
- package/dist/components/events/index.d.ts +20 -20
- package/dist/components/footer/index.d.ts +3 -3
- package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/components/header/index.d.ts +28 -28
- package/dist/components/header-search/index.d.ts +13 -13
- package/dist/components/html-viewer/utils.d.ts +1 -1
- package/dist/components/logo-swiper/index.d.ts +11 -11
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +51 -51
- package/dist/components/org/index.d.ts +9 -9
- package/dist/components/recursion-menu/index.d.ts +3 -3
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/components/search-result/index.d.ts +31 -31
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/user-center/index.d.ts +18 -18
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1724 -1706
- package/dist/treeshaking/_virtual/~icons/components/icon-link.mjs +0 -2
- package/dist/treeshaking/components/activity/index.d.ts +9 -9
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
- package/dist/treeshaking/components/article/components/DocTitle.mjs +2 -2
- package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +4 -3
- package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_4ead9b6d_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_d7f11be9_lang.css} +50 -50
- package/dist/treeshaking/components/article/index.d.ts +25 -25
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.d.ts +176 -0
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +46 -19
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css +37 -0
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_7fff2dcb_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css} +10 -13
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_c895f349_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css} +12 -18
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPc.vue_vue_type_style_index_0_scoped_a480e4e7_lang.css → ArticleAnchorPc.vue_vue_type_style_index_0_scoped_2f93d5ed_lang.css} +13 -13
- package/dist/treeshaking/components/article-anchor/index.d.ts +185 -9
- package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/brand/index.d.ts +15 -15
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +1 -1
- package/dist/treeshaking/components/community-updates/index.d.ts +14 -14
- package/dist/treeshaking/components/cookie-notice/OCookieNotice.mjs +2 -2
- package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue.d.ts +3 -9
- package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue_vue_type_script_setup_true_lang.mjs +35 -43
- package/dist/treeshaking/components/cookie-notice/{OCookieNotice.vue_vue_type_style_index_0_scoped_6f0c80fe_lang.css → OCookieNotice.vue_vue_type_style_index_0_scoped_a7993ee9_lang.css} +57 -57
- package/dist/treeshaking/components/cookie-notice/index.d.ts +2 -15
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +33 -7
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css} +63 -51
- package/dist/treeshaking/components/doc-layout/index.d.ts +1 -0
- package/dist/treeshaking/components/element-plus/OElCookieNotice.mjs +2 -2
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue.d.ts +3 -9
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_script_setup_true_lang.mjs +27 -44
- package/dist/treeshaking/components/element-plus/{OElCookieNotice.vue_vue_type_style_index_1_scoped_5fa9f6f1_lang.css → OElCookieNotice.vue_vue_type_style_index_1_scoped_d9e2bcf9_lang.css} +153 -153
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/footer/components/FooterList.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +1 -2
- package/dist/treeshaking/components/footer/components/{FooterList.vue_vue_type_style_index_0_scoped_0ed4bc5f_lang.css → FooterList.vue_vue_type_style_index_0_scoped_1d7a4555_lang.css} +106 -106
- package/dist/treeshaking/components/footer/components/FooterSimple.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +1 -2
- package/dist/treeshaking/components/footer/components/{FooterSimple.vue_vue_type_style_index_0_scoped_42242446_lang.css → FooterSimple.vue_vue_type_style_index_0_scoped_bb36ddad_lang.css} +25 -25
- package/dist/treeshaking/components/footer/index.d.ts +3 -3
- package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/treeshaking/components/header/index.d.ts +28 -28
- package/dist/treeshaking/components/header-search/index.d.ts +13 -13
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +2 -3
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_2f5d08df_lang.css +196 -0
- package/dist/treeshaking/components/html-viewer/utils.d.ts +1 -1
- package/dist/treeshaking/components/html-viewer/utils.mjs +3 -22
- package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/markdown/components/MarkdownCode.mjs +2 -2
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue_vue_type_style_index_0_lang.css +4 -0
- package/dist/treeshaking/components/markdown/components/{MarkdownCode.vue_vue_type_style_index_1_scoped_a65c7007_lang.css → MarkdownCode.vue_vue_type_style_index_1_scoped_e878a7c0_lang.css} +56 -56
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +51 -51
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/treeshaking/components/search-result/index.d.ts +31 -31
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/user-center/index.d.ts +18 -18
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css +0 -18
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_ba52bc9c_lang.css +0 -318
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_1_lang.css +0 -20
|
@@ -33,7 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
33
33
|
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
data: CommunityUpdatesItemT[] | Record<string, CommunityUpdatesItemT[]>;
|
|
36
|
-
tabs: import('
|
|
36
|
+
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
37
37
|
moreHref: string;
|
|
38
38
|
moreText: string;
|
|
39
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -2,7 +2,7 @@ import { App } from 'vue';
|
|
|
2
2
|
declare const OCommunityUpdates: {
|
|
3
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
4
|
activeTab?: string;
|
|
5
|
-
} & import('
|
|
5
|
+
} & import('../../index').CommunityUpdatesPropsT> & Readonly<{
|
|
6
6
|
"onTab-change"?: ((value: string) => any) | undefined;
|
|
7
7
|
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
8
8
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -10,8 +10,8 @@ declare const OCommunityUpdates: {
|
|
|
10
10
|
} & {
|
|
11
11
|
"tab-change": (value: string) => any;
|
|
12
12
|
}, import('vue').PublicProps, {
|
|
13
|
-
data: import('
|
|
14
|
-
tabs: import('
|
|
13
|
+
data: import('../../index').CommunityUpdatesItemT[] | Record<string, import('../../index').CommunityUpdatesItemT[]>;
|
|
14
|
+
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
15
15
|
moreHref: string;
|
|
16
16
|
moreText: string;
|
|
17
17
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -23,12 +23,12 @@ declare const OCommunityUpdates: {
|
|
|
23
23
|
Defaults: {};
|
|
24
24
|
}, Readonly<{
|
|
25
25
|
activeTab?: string;
|
|
26
|
-
} & import('
|
|
26
|
+
} & import('../../index').CommunityUpdatesPropsT> & Readonly<{
|
|
27
27
|
"onTab-change"?: ((value: string) => any) | undefined;
|
|
28
28
|
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
29
29
|
}>, {}, {}, {}, {}, {
|
|
30
|
-
data: import('
|
|
31
|
-
tabs: import('
|
|
30
|
+
data: import('../../index').CommunityUpdatesItemT[] | Record<string, import('../../index').CommunityUpdatesItemT[]>;
|
|
31
|
+
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
32
32
|
moreHref: string;
|
|
33
33
|
moreText: string;
|
|
34
34
|
}>;
|
|
@@ -37,7 +37,7 @@ declare const OCommunityUpdates: {
|
|
|
37
37
|
__isSuspense?: never;
|
|
38
38
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
39
39
|
activeTab?: string;
|
|
40
|
-
} & import('
|
|
40
|
+
} & import('../../index').CommunityUpdatesPropsT> & Readonly<{
|
|
41
41
|
"onTab-change"?: ((value: string) => any) | undefined;
|
|
42
42
|
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
43
43
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -45,20 +45,20 @@ declare const OCommunityUpdates: {
|
|
|
45
45
|
} & {
|
|
46
46
|
"tab-change": (value: string) => any;
|
|
47
47
|
}, string, {
|
|
48
|
-
data: import('
|
|
49
|
-
tabs: import('
|
|
48
|
+
data: import('../../index').CommunityUpdatesItemT[] | Record<string, import('../../index').CommunityUpdatesItemT[]>;
|
|
49
|
+
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
50
50
|
moreHref: string;
|
|
51
51
|
moreText: string;
|
|
52
52
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
53
53
|
$slots: Readonly<{
|
|
54
54
|
card?: (props: {
|
|
55
|
-
item: import('
|
|
55
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
56
56
|
index: number;
|
|
57
57
|
tab: string;
|
|
58
58
|
}) => any;
|
|
59
59
|
}> & {
|
|
60
60
|
card?: (props: {
|
|
61
|
-
item: import('
|
|
61
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
62
62
|
index: number;
|
|
63
63
|
tab: string;
|
|
64
64
|
}) => any;
|
|
@@ -68,7 +68,7 @@ declare const OCommunityUpdates: {
|
|
|
68
68
|
};
|
|
69
69
|
declare const OCommunityUpdatesCard: {
|
|
70
70
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
71
|
-
item: import('
|
|
71
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
72
72
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
73
73
|
P: {};
|
|
74
74
|
B: {};
|
|
@@ -77,13 +77,13 @@ declare const OCommunityUpdatesCard: {
|
|
|
77
77
|
M: {};
|
|
78
78
|
Defaults: {};
|
|
79
79
|
}, Readonly<{
|
|
80
|
-
item: import('
|
|
80
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
81
81
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
82
82
|
__isFragment?: never;
|
|
83
83
|
__isTeleport?: never;
|
|
84
84
|
__isSuspense?: never;
|
|
85
85
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
86
|
-
item: import('
|
|
86
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
87
87
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
88
88
|
install(app: App): void;
|
|
89
89
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OCookieNotice_vue_vue_type_script_setup_true_lang_default from "./OCookieNotice.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OCookieNotice.
|
|
3
|
+
import './OCookieNotice.vue_vue_type_style_index_0_scoped_a7993ee9_lang.css';
|
|
4
4
|
// src/components/cookie-notice/OCookieNotice.vue
|
|
5
|
-
var OCookieNotice_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OCookieNotice_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var OCookieNotice_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OCookieNotice_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a7993ee9"]]);
|
|
6
6
|
export { OCookieNotice_default as default };
|
|
@@ -5,18 +5,12 @@ type __VLS_Props = {
|
|
|
5
5
|
wrapper?: string | HTMLElement;
|
|
6
6
|
cookieDomain: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
'analysisAllowed'?: boolean;
|
|
10
|
-
} & __VLS_Props;
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
12
9
|
check(): void;
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
"update:analysisAllowed": (value: boolean) => any;
|
|
15
|
-
} & {
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
11
|
"update:visible": (value: boolean) => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
13
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
19
|
-
"onUpdate:analysisAllowed"?: ((value: boolean) => any) | undefined;
|
|
20
14
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
15
|
cookieNoticeRef: HTMLDivElement;
|
|
22
16
|
}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useI18n } from "../../i18n/index.mjs";
|
|
2
2
|
import ClientOnly_default from "../common/ClientOnly.mjs";
|
|
3
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent,
|
|
3
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onMounted, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
|
|
4
4
|
import { OButton, ODialog, OIcon, OIconClose, OSwitch } from "@opensig/opendesign";
|
|
5
5
|
import { useScreen } from "@opendesign-plus/composables";
|
|
6
6
|
import { useVModel } from "@vueuse/core";
|
|
@@ -52,20 +52,14 @@ var COOKIE_KEY_ZH = "agreed-cookiepolicy-zh";
|
|
|
52
52
|
var COOKIE_KEY_EN = "agreed-cookiepolicy-en";
|
|
53
53
|
var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
54
54
|
__name: "OCookieNotice",
|
|
55
|
-
props:
|
|
55
|
+
props: {
|
|
56
56
|
visible: { type: Boolean },
|
|
57
57
|
community: {},
|
|
58
58
|
detailUrl: {},
|
|
59
59
|
wrapper: {},
|
|
60
60
|
cookieDomain: {}
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
},
|
|
66
|
-
"analysisAllowedModifiers": {}
|
|
67
|
-
}),
|
|
68
|
-
emits: /*@__PURE__*/ mergeModels(["update:visible"], ["update:analysisAllowed"]),
|
|
61
|
+
},
|
|
62
|
+
emits: ["update:visible"],
|
|
69
63
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
70
64
|
const props = __props;
|
|
71
65
|
const emit = __emit;
|
|
@@ -81,8 +75,7 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
81
75
|
return false;
|
|
82
76
|
});
|
|
83
77
|
const cookieKey = computed(() => isZh.value ? COOKIE_KEY_ZH : COOKIE_KEY_EN);
|
|
84
|
-
const analysisAllowed =
|
|
85
|
-
let syncingAnalysisAllowed = false;
|
|
78
|
+
const analysisAllowed = ref(false);
|
|
86
79
|
const visibleVmodel = useVModel(props, "visible", emit, { defaultValue: false });
|
|
87
80
|
const getCookie = (key) => {
|
|
88
81
|
const cookie = document.cookie.split(";").find((row) => row.split("=")[0].trim() === encodeURIComponent(key));
|
|
@@ -116,52 +109,43 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
116
109
|
if (isZh.value) return getCookie(cookieKey.value) === NOT_SHOW_BUT_AGREED;
|
|
117
110
|
return getCookie(cookieKey.value) === ALL_AGREED;
|
|
118
111
|
};
|
|
119
|
-
const syncAnalysisAllowed = () => {
|
|
120
|
-
syncingAnalysisAllowed = true;
|
|
121
|
-
analysisAllowed.value = isAllAgreed();
|
|
122
|
-
syncingAnalysisAllowed = false;
|
|
123
|
-
};
|
|
124
112
|
onMounted(() => {
|
|
125
|
-
syncAnalysisAllowed();
|
|
126
113
|
if (isNotSigned()) toggleNoticeVisible(true);
|
|
127
114
|
});
|
|
128
115
|
watch(locale, () => {
|
|
129
116
|
toggleNoticeVisible(isNotSigned());
|
|
130
117
|
});
|
|
131
118
|
const acceptAll = () => {
|
|
119
|
+
analysisAllowed.value = true;
|
|
132
120
|
removeCookie(cookieKey.value, props.cookieDomain ?? location.hostname);
|
|
133
121
|
setCookie(cookieKey.value, ALL_AGREED, 180, props.cookieDomain ?? location.hostname);
|
|
134
|
-
toggleDlgVisible(false);
|
|
135
122
|
toggleNoticeVisible(false);
|
|
136
123
|
};
|
|
137
124
|
const rejectAll = () => {
|
|
125
|
+
analysisAllowed.value = false;
|
|
138
126
|
removeCookie(cookieKey.value, props.cookieDomain ?? location.hostname);
|
|
139
127
|
setCookie(cookieKey.value, NECCESSARY_AGREED, 180, props.cookieDomain ?? location.hostname);
|
|
140
|
-
toggleDlgVisible(false);
|
|
141
128
|
toggleNoticeVisible(false);
|
|
142
129
|
};
|
|
143
|
-
const applyConsent = (val) => {
|
|
144
|
-
if (val) acceptAll();
|
|
145
|
-
else rejectAll();
|
|
146
|
-
};
|
|
147
|
-
const setAnalysisAllowed = (val) => {
|
|
148
|
-
if (analysisAllowed.value === val) applyConsent(val);
|
|
149
|
-
else analysisAllowed.value = val;
|
|
150
|
-
};
|
|
151
|
-
watch(analysisAllowed, (val) => {
|
|
152
|
-
if (!syncingAnalysisAllowed) applyConsent(val);
|
|
153
|
-
}, { flush: "sync" });
|
|
154
130
|
const dlgActions = computed(() => {
|
|
155
131
|
if (isPhone.value) return [{
|
|
156
132
|
id: "save",
|
|
157
133
|
label: t("cookie.saveSetting"),
|
|
158
134
|
variant: "text",
|
|
159
|
-
onClick: () =>
|
|
135
|
+
onClick: () => {
|
|
136
|
+
if (analysisAllowed.value) acceptAll();
|
|
137
|
+
else rejectAll();
|
|
138
|
+
toggleDlgVisible(false);
|
|
139
|
+
}
|
|
160
140
|
}, {
|
|
161
141
|
id: "allowAll",
|
|
162
142
|
label: t("cookie.acceptAll"),
|
|
163
143
|
variant: "text",
|
|
164
|
-
onClick: () =>
|
|
144
|
+
onClick: () => {
|
|
145
|
+
analysisAllowed.value = true;
|
|
146
|
+
acceptAll();
|
|
147
|
+
toggleDlgVisible(false);
|
|
148
|
+
}
|
|
165
149
|
}];
|
|
166
150
|
return [{
|
|
167
151
|
id: "save",
|
|
@@ -170,7 +154,11 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
170
154
|
variant: "outline",
|
|
171
155
|
size: "medium",
|
|
172
156
|
round: "pill",
|
|
173
|
-
onClick: () =>
|
|
157
|
+
onClick: () => {
|
|
158
|
+
if (analysisAllowed.value) acceptAll();
|
|
159
|
+
else rejectAll();
|
|
160
|
+
toggleDlgVisible(false);
|
|
161
|
+
}
|
|
174
162
|
}, {
|
|
175
163
|
id: "allowAll",
|
|
176
164
|
color: "primary",
|
|
@@ -178,11 +166,15 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
178
166
|
variant: "outline",
|
|
179
167
|
size: "medium",
|
|
180
168
|
round: "pill",
|
|
181
|
-
onClick: () =>
|
|
169
|
+
onClick: () => {
|
|
170
|
+
analysisAllowed.value = true;
|
|
171
|
+
acceptAll();
|
|
172
|
+
toggleDlgVisible(false);
|
|
173
|
+
}
|
|
182
174
|
}];
|
|
183
175
|
});
|
|
184
176
|
const onDlgChange = (val) => {
|
|
185
|
-
if (val)
|
|
177
|
+
if (val) analysisAllowed.value = isAllAgreed();
|
|
186
178
|
};
|
|
187
179
|
__expose({ check() {
|
|
188
180
|
if (isAllAgreed() === visibleVmodel.value) toggleNoticeVisible();
|
|
@@ -205,7 +197,7 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
205
197
|
"font-size": "24px",
|
|
206
198
|
"margin-right": "4px"
|
|
207
199
|
} }, {
|
|
208
|
-
default: withCtx(() => [(openBlock(), createElementBlock("svg", _hoisted_4, [..._cache[
|
|
200
|
+
default: withCtx(() => [(openBlock(), createElementBlock("svg", _hoisted_4, [..._cache[4] || (_cache[4] = [createElementVNode("path", {
|
|
209
201
|
fill: "var(--o-color-primary1)",
|
|
210
202
|
d: "M21 12c0 4.971-4.029 9-9 9s-9-4.029-9-9c0-4.971 4.029-9 9-9s9 4.029 9 9z"
|
|
211
203
|
}, null, -1), createElementVNode("path", {
|
|
@@ -230,13 +222,13 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
230
222
|
target: "_blank",
|
|
231
223
|
rel: "noopener noreferrer"
|
|
232
224
|
}, toDisplayString(unref(t)("cookie.about")), 9, _hoisted_10),
|
|
233
|
-
_cache[
|
|
225
|
+
_cache[5] || (_cache[5] = createTextVNode(". ", -1))
|
|
234
226
|
]), createElementVNode("div", _hoisted_11, [
|
|
235
227
|
createVNode(unref(OButton), {
|
|
236
228
|
round: "pill",
|
|
237
229
|
variant: "outline",
|
|
238
230
|
color: "primary",
|
|
239
|
-
onClick:
|
|
231
|
+
onClick: acceptAll
|
|
240
232
|
}, {
|
|
241
233
|
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("cookie.acceptAll")), 1)]),
|
|
242
234
|
_: 1
|
|
@@ -245,7 +237,7 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
245
237
|
round: "pill",
|
|
246
238
|
variant: "outline",
|
|
247
239
|
color: "primary",
|
|
248
|
-
onClick:
|
|
240
|
+
onClick: rejectAll
|
|
249
241
|
}, {
|
|
250
242
|
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("cookie.rejectAll")), 1)]),
|
|
251
243
|
_: 1
|
|
@@ -254,14 +246,14 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
254
246
|
round: "pill",
|
|
255
247
|
variant: "outline",
|
|
256
248
|
color: "primary",
|
|
257
|
-
onClick: _cache[
|
|
249
|
+
onClick: _cache[1] || (_cache[1] = ($event) => toggleDlgVisible(true))
|
|
258
250
|
}, {
|
|
259
251
|
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("cookie.manage")), 1)]),
|
|
260
252
|
_: 1
|
|
261
253
|
})
|
|
262
254
|
])])) : createCommentVNode("", true)], 10, _hoisted_2)]), createVNode(unref(ODialog), {
|
|
263
255
|
visible: isDlgVisible.value,
|
|
264
|
-
"onUpdate:visible": _cache[
|
|
256
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => isDlgVisible.value = $event),
|
|
265
257
|
size: unref(leLaptop) ? "medium" : "large",
|
|
266
258
|
"phone-half-full": unref(lePadV),
|
|
267
259
|
"main-class": enableGrid.value ? "o-cookie-notice-dlg-main" : "",
|
|
@@ -273,7 +265,7 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
273
265
|
header: withCtx(() => [createElementVNode("span", _hoisted_12, toDisplayString(unref(t)("cookie.manage")), 1)]),
|
|
274
266
|
default: withCtx(() => [createElementVNode("div", _hoisted_13, [createElementVNode("div", _hoisted_14, [createElementVNode("div", _hoisted_15, [createElementVNode("span", _hoisted_16, toDisplayString(unref(t)("cookie.necessaryCookie")), 1), createElementVNode("span", _hoisted_17, toDisplayString(unref(t)("cookie.alwaysOn")), 1)]), createElementVNode("div", _hoisted_18, toDisplayString(unref(t)("cookie.necessaryCookieDetail")), 1)]), createElementVNode("div", _hoisted_19, [createElementVNode("div", _hoisted_20, [createElementVNode("span", _hoisted_21, toDisplayString(unref(t)("cookie.analyticalCookie")), 1), createElementVNode("span", _hoisted_22, [createVNode(unref(OSwitch), {
|
|
275
267
|
modelValue: analysisAllowed.value,
|
|
276
|
-
"onUpdate:modelValue": _cache[
|
|
268
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => analysisAllowed.value = $event)
|
|
277
269
|
}, null, 8, ["modelValue"])])]), createElementVNode("div", _hoisted_23, toDisplayString(unref(t)("cookie.analyticalCookieDetail")), 1)])])]),
|
|
278
270
|
_: 1
|
|
279
271
|
}, 8, [
|