@tekkare/auriga 0.2.78 → 0.2.79

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/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.78"
7
+ "version": "0.2.79"
8
8
  }
@@ -46,12 +46,12 @@
46
46
  v-if="
47
47
  filterBlocks.length > 0 &&
48
48
  blockCategories !== null &&
49
- blockCategories.value.length > 0
49
+ blockCategories.length > 0
50
50
  "
51
51
  class="oip_list v-start gap-16"
52
52
  >
53
53
  <div
54
- v-for="category in blockCategories.value"
54
+ v-for="category in blockCategories"
55
55
  :key="category"
56
56
  class="oip_list v-start gap-8 category_container"
57
57
  >
@@ -268,12 +268,12 @@ export default defineComponent({
268
268
  }
269
269
  const blockCategories = computed(() => {
270
270
  const categories = ref(null);
271
- if (props.appBlocks.length > 0) {
271
+ if (props.appBlocks.length > 0 && props.appBlocks.filter((f) => f.category !== void 0)?.length > 0) {
272
272
  categories.value = [
273
273
  ...new Set(props.appBlocks.map((a) => a.category))
274
274
  ];
275
275
  }
276
- return categories;
276
+ return categories.value;
277
277
  });
278
278
  onBeforeMount(async () => {
279
279
  setLang();
@@ -340,5 +340,5 @@ export default defineComponent({
340
340
  </script>
341
341
 
342
342
  <style scoped>
343
- .arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{align-self:stretch;cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!important}.block_card:not(.block_selected):hover .block_title{color:var(--primary)!important}.block_descr{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-style:normal;font-weight:400;line-height:160%;overflow:hidden}.block_content{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.block_title{align-items:flex-end;display:flex;flex-direction:row;font-size:16px;font-style:normal;font-weight:700;gap:8px;line-height:normal}.block_selected{background:var(--primary)!important;border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important;color:var(--white)!important}.full_stretch{align-self:stretch}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}.block_selected>.block_content>.card_head>.population p,.block_selected>.block_content>.card_head>.population svg{color:var(--white)!important}.home_subtitle{color:var(--dark);font-size:14px;font-style:normal;font-weight:400;line-height:160%}.category_container{border-top:1.5px solid var(--light);padding:24px 0;position:relative}.category_label{align-items:center;background:var(--lightest);border-radius:4px;display:flex;gap:8px;left:24px;padding:4px 12px;position:absolute;top:-14px}p.category_label{color:var(--medium);font-size:14px;font-weight:500;text-transform:uppercase}
343
+ .arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{align-self:stretch;cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!important}.block_card:not(.block_selected):hover .block_title{color:var(--primary)!important}.block_descr{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-style:normal;font-weight:400;line-height:160%;overflow:hidden}.block_content{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.block_title{align-items:flex-end;display:flex;flex-direction:row;font-size:16px;font-style:normal;font-weight:700;gap:8px;line-height:normal}.block_selected{background:var(--primary)!important;border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important;color:var(--white)!important}.full_stretch{align-self:stretch}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}.block_selected>.block_content>.card_head>.population p,.block_selected>.block_content>.card_head>.population svg{color:var(--white)!important}.home_subtitle{color:var(--dark);font-size:14px;font-style:normal;font-weight:400;line-height:160%}.category_container{border-top:1.5px solid var(--light);padding:24px 0;position:relative}.category_label{align-items:center;background:var(--lightest);border-radius:4px;display:flex;gap:8px;left:24px;padding:4px 12px;position:absolute;top:-14px}.category_label>p,p.category_label{color:var(--medium);font-size:14px;font-weight:500;text-transform:uppercase}
344
344
  </style>
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
61
61
  filterBlocks: any;
62
62
  getGlobalTitle: import("vue").ComputedRef<any>;
63
63
  langData: import("vue").Ref<any>;
64
- blockCategories: import("vue").ComputedRef<import("vue").Ref<any>>;
64
+ blockCategories: import("vue").ComputedRef<any>;
65
65
  filterCategoryBlocks: any;
66
66
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectBlock" | "update:Block")[], "onSelectBlock" | "update:Block", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
67
67
  title: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.78",
3
+ "version": "0.2.79",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",