@govbr-ds/webcomponents 1.7.0 → 1.7.1
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 +12 -40
- package/dist/webcomponents.common.js +25 -22
- package/dist/webcomponents.common.js.map +1 -1
- package/dist/webcomponents.umd.js +25 -22
- package/dist/webcomponents.umd.js.map +1 -1
- package/dist/webcomponents.umd.min.js +2 -2
- package/dist/webcomponents.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -18826,7 +18826,7 @@ const store = createStore({
|
|
|
18826
18826
|
setCookies(context, cookies) {
|
|
18827
18827
|
cookies.forEach(cookie => {
|
|
18828
18828
|
;
|
|
18829
|
-
cookie.alert = cookie?.alert || null, cookie.optIn = context.getters.categories.filter(category => category.id === cookie.catetoryId)[0]?.optIn || cookie.optIn || false, cookie.enable = context.getters.categories.filter(category => category.id === cookie.categoryId)[0]?.enable
|
|
18829
|
+
cookie.alert = cookie?.alert || null, cookie.optIn = context.getters.categories.filter(category => category.id === cookie.catetoryId)[0]?.optIn || cookie.optIn || false, cookie.enable = cookie.optIn ? context.getters.categories.filter(category => category.id === cookie.categoryId)[0]?.enable : cookie?.enable || false;
|
|
18830
18830
|
});
|
|
18831
18831
|
context.commit('setCookies', cookies);
|
|
18832
18832
|
context.dispatch('setCategoriesInitialIndeterminate');
|
|
@@ -18850,7 +18850,7 @@ const store = createStore({
|
|
|
18850
18850
|
});
|
|
18851
18851
|
if (indeterminate) {
|
|
18852
18852
|
context.dispatch('setAllIndeterminate', true);
|
|
18853
|
-
} else if (context.getters.categories.filter(category => category.enable === true) === context.getters.categories.length || context.getters.categories.filter(category => category.enable === false) === context.getters.categories.length) {
|
|
18853
|
+
} else if (context.getters.categories.filter(category => category.enable === true).length === context.getters.categories.length || context.getters.categories.filter(category => category.enable === false).length === context.getters.categories.length) {
|
|
18854
18854
|
context.dispatch('setAllIndeterminate', false);
|
|
18855
18855
|
} else {
|
|
18856
18856
|
context.dispatch('setAllIndeterminate', true);
|
|
@@ -19577,43 +19577,43 @@ function CookiebarCategory_cevue_type_template_id_8f662f00_render(_ctx, _cache,
|
|
|
19577
19577
|
}
|
|
19578
19578
|
;// CONCATENATED MODULE: ./src/library/components/Cookiebar/CookiebarCategory.ce.vue?vue&type=template&id=8f662f00
|
|
19579
19579
|
|
|
19580
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/library/components/Cookiebar/CookiebarCookie.ce.vue?vue&type=template&id=
|
|
19580
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/library/components/Cookiebar/CookiebarCookie.ce.vue?vue&type=template&id=0c9b1f4c
|
|
19581
19581
|
|
|
19582
|
-
const
|
|
19582
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_1 = {
|
|
19583
19583
|
class: "cookie"
|
|
19584
19584
|
};
|
|
19585
|
-
const
|
|
19585
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_2 = {
|
|
19586
19586
|
class: "container-fluid"
|
|
19587
19587
|
};
|
|
19588
|
-
const
|
|
19588
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_3 = {
|
|
19589
19589
|
class: "row justify-content-end"
|
|
19590
19590
|
};
|
|
19591
|
-
const
|
|
19591
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_4 = {
|
|
19592
19592
|
class: "col-sm-5 col-md-3 col-lg-2 mb-3"
|
|
19593
19593
|
};
|
|
19594
|
-
const
|
|
19594
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_5 = {
|
|
19595
19595
|
key: 0,
|
|
19596
19596
|
class: "col-12 message"
|
|
19597
19597
|
};
|
|
19598
|
-
const
|
|
19598
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_6 = {
|
|
19599
19599
|
class: "container-fluid"
|
|
19600
19600
|
};
|
|
19601
|
-
const
|
|
19601
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_7 = {
|
|
19602
19602
|
class: "row mb-1"
|
|
19603
19603
|
};
|
|
19604
|
-
const
|
|
19604
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_8 = {
|
|
19605
19605
|
class: "col-sm-3 col-md-2 col-xl-1"
|
|
19606
19606
|
};
|
|
19607
|
-
const
|
|
19607
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_9 = {
|
|
19608
19608
|
class: "col-sm"
|
|
19609
19609
|
};
|
|
19610
|
-
const
|
|
19610
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_10 = {
|
|
19611
19611
|
class: "row mb-1"
|
|
19612
19612
|
};
|
|
19613
|
-
const
|
|
19613
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_11 = {
|
|
19614
19614
|
class: "col-sm-3 col-md-2 col-xl-1"
|
|
19615
19615
|
};
|
|
19616
|
-
const
|
|
19616
|
+
const CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_12 = {
|
|
19617
19617
|
class: "col-sm"
|
|
19618
19618
|
};
|
|
19619
19619
|
const _hoisted_13 = {
|
|
@@ -19652,19 +19652,19 @@ const _hoisted_23 = {
|
|
|
19652
19652
|
const _hoisted_24 = {
|
|
19653
19653
|
class: "col-sm"
|
|
19654
19654
|
};
|
|
19655
|
-
function
|
|
19655
|
+
function CookiebarCookie_cevue_type_template_id_0c9b1f4c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19656
19656
|
const _component_BrSwitch = resolveComponent("BrSwitch");
|
|
19657
19657
|
const _component_BrMessage = resolveComponent("BrMessage");
|
|
19658
19658
|
const _component_BrCard = resolveComponent("BrCard");
|
|
19659
|
-
return openBlock(), createElementBlock("div",
|
|
19660
|
-
header: withCtx(() => [createBaseVNode("div",
|
|
19659
|
+
return openBlock(), createElementBlock("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_1, [createVNode(_component_BrCard, null, {
|
|
19660
|
+
header: withCtx(() => [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_2, [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_3, [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_4, [withDirectives(createVNode(_component_BrSwitch, {
|
|
19661
19661
|
id: `cookie-${_ctx.categoryIndex}${_ctx.cookieIndex}`,
|
|
19662
19662
|
label: _ctx.isEnable ? _ctx.disableCookieLabel : _ctx.enableCookieLabel,
|
|
19663
19663
|
checked: _ctx.isEnable,
|
|
19664
19664
|
value: String(_ctx.isEnable),
|
|
19665
19665
|
"checkgroup-child": `category-${_ctx.categoryId}`,
|
|
19666
19666
|
"onUpdate:checked": _ctx.updateEnable
|
|
19667
|
-
}, null, 8, ["id", "label", "checked", "value", "checkgroup-child", "onUpdate:checked"]), [[vShow, !_ctx.isCookieOptIn]])]), _ctx.cookie.alert && !_ctx.isEnable ? (openBlock(), createElementBlock("div",
|
|
19667
|
+
}, null, 8, ["id", "label", "checked", "value", "checkgroup-child", "onUpdate:checked"]), [[vShow, !_ctx.isCookieOptIn && !_ctx.isCategoryOptIn]])]), _ctx.cookie.alert && !_ctx.isEnable ? (openBlock(), createElementBlock("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_5, [createVNode(_component_BrMessage, {
|
|
19668
19668
|
feedback: "",
|
|
19669
19669
|
state: "warning",
|
|
19670
19670
|
"show-icon": ""
|
|
@@ -19672,11 +19672,11 @@ function CookiebarCookie_cevue_type_template_id_c7eb6c4a_render(_ctx, _cache, $p
|
|
|
19672
19672
|
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.cookie.alert), 1)]),
|
|
19673
19673
|
_: 1
|
|
19674
19674
|
})])) : createCommentVNode("", true)])])]),
|
|
19675
|
-
content: withCtx(() => [createBaseVNode("div",
|
|
19675
|
+
content: withCtx(() => [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_6, [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_7, [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_8, [createBaseVNode("span", null, [createBaseVNode("strong", null, toDisplayString(_ctx.cookieLabel), 1)])]), createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_9, [createBaseVNode("span", null, toDisplayString(_ctx.cookie.name), 1)])]), createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_10, [createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_11, [createBaseVNode("span", null, [createBaseVNode("strong", null, toDisplayString(_ctx.expiryLabel), 1)])]), createBaseVNode("div", CookiebarCookie_cevue_type_template_id_0c9b1f4c_hoisted_12, [createBaseVNode("span", null, toDisplayString(_ctx.cookie.expiry), 1)])]), createBaseVNode("div", _hoisted_13, [createBaseVNode("div", _hoisted_14, [createBaseVNode("span", null, [createBaseVNode("strong", null, toDisplayString(_ctx.domainLabel), 1)])]), createBaseVNode("div", _hoisted_15, [createBaseVNode("span", null, toDisplayString(_ctx.cookie.domain), 1)])]), createBaseVNode("div", _hoisted_16, [createBaseVNode("div", _hoisted_17, [createBaseVNode("span", null, [createBaseVNode("strong", null, toDisplayString(_ctx.companyLabel), 1)])]), createBaseVNode("div", _hoisted_18, [createBaseVNode("span", null, toDisplayString(_ctx.cookie.company), 1)])]), createBaseVNode("div", _hoisted_19, [createBaseVNode("div", _hoisted_20, [createBaseVNode("span", null, [createBaseVNode("strong", null, toDisplayString(_ctx.purposeLabel), 1)])]), createBaseVNode("div", _hoisted_21, [createBaseVNode("span", null, toDisplayString(_ctx.cookie.purpose), 1)])]), createBaseVNode("div", _hoisted_22, [createBaseVNode("div", _hoisted_23, [createBaseVNode("span", null, [createBaseVNode("strong", null, toDisplayString(_ctx.descriptionLabel), 1)])]), createBaseVNode("div", _hoisted_24, [createBaseVNode("span", null, toDisplayString(_ctx.cookie.description), 1)])])])]),
|
|
19676
19676
|
_: 1
|
|
19677
19677
|
})]);
|
|
19678
19678
|
}
|
|
19679
|
-
;// CONCATENATED MODULE: ./src/library/components/Cookiebar/CookiebarCookie.ce.vue?vue&type=template&id=
|
|
19679
|
+
;// CONCATENATED MODULE: ./src/library/components/Cookiebar/CookiebarCookie.ce.vue?vue&type=template&id=0c9b1f4c
|
|
19680
19680
|
|
|
19681
19681
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/library/components/Switch/Switch.ce.vue?vue&type=template&id=81441e8c
|
|
19682
19682
|
|
|
@@ -19964,6 +19964,9 @@ const CookiebarCookie = {
|
|
|
19964
19964
|
disableCookieLabel() {
|
|
19965
19965
|
return Cookiebar_store.getters.labels?.disableCookie;
|
|
19966
19966
|
},
|
|
19967
|
+
isCategoryOptIn() {
|
|
19968
|
+
return Cookiebar_store.getters.isCategoryOptIn(this.categoryId);
|
|
19969
|
+
},
|
|
19967
19970
|
isCookieOptIn() {
|
|
19968
19971
|
return Cookiebar_store.getters.isCookieOptIn(this.categoryId, this.cookieId);
|
|
19969
19972
|
}
|
|
@@ -19988,7 +19991,7 @@ const CookiebarCookie = {
|
|
|
19988
19991
|
|
|
19989
19992
|
|
|
19990
19993
|
;
|
|
19991
|
-
const CookiebarCookie_ce_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CookiebarCookie_cevue_type_script_lang_js, [['render',
|
|
19994
|
+
const CookiebarCookie_ce_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CookiebarCookie_cevue_type_script_lang_js, [['render',CookiebarCookie_cevue_type_template_id_0c9b1f4c_render]])
|
|
19992
19995
|
|
|
19993
19996
|
/* harmony default export */ var CookiebarCookie_ce = (CookiebarCookie_ce_exports_);
|
|
19994
19997
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/library/components/Cookiebar/CookiebarCategory.ce.vue?vue&type=script&lang=js
|