@tekkare/auriga 0.2.90 → 0.2.92

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.90"
7
+ "version": "0.2.92"
8
8
  }
@@ -48,83 +48,90 @@
48
48
  blockCategories !== null &&
49
49
  blockCategories?.length > 0
50
50
  "
51
- class="oip_list v-start gap-16"
51
+ class="oip_list v-start gap-16 stretch"
52
52
  >
53
53
  <div
54
54
  v-for="category in blockCategories"
55
55
  :key="category"
56
- class="oip_list v-start gap-8 category_container"
56
+ class="stretch"
57
57
  >
58
- <div class="category_label">
59
- <arg-icon
60
- v-if="category.icon"
61
- :name="category.icon"
62
- color="var(--medium)"
63
- size="20"
64
- thickness="20"
65
- />
66
- <p>
67
- {{ typeof category === "string" ? category : category.label }}
68
- </p>
69
- </div>
70
- <div class="oip_row v-start gap-16 wrap full_stretch">
71
- <div
72
- v-for="(block, index) in filterCategoryBlocks(category)"
73
- :key="index"
74
- class="oip_card block_card action"
75
- :class="
76
- selectedBlock?.title === block.title ? 'block_selected' : ''
77
- "
78
- @click="selectBlock(block)"
79
- >
80
- <slot
81
- v-if="customizeBlocks"
82
- :name="seperateCustoms ? 'customOther' : 'custom'"
83
- v-bind:block="block"
58
+ <div
59
+ v-if="filterCategoryBlocks(category).length > 0"
60
+ class="oip_list v-start gap-8 category_container"
61
+ >
62
+ <div class="category_label">
63
+ <arg-icon
64
+ v-if="category.icon"
65
+ :name="category.icon"
66
+ color="var(--medium)"
67
+ size="20"
68
+ thickness="20"
84
69
  />
85
- <div v-else class="block_content">
86
- <div
87
- class="oip_row v-center space-between full_stretch card_head"
88
- >
89
- <p class="block_title">
90
- <span v-if="block.country"
91
- ><arg-flag
92
- v-if="block.iso"
93
- :emoji="
94
- block.iso === 'ww' ||
95
- block.iso === 'eu' ||
96
- block.emoji
97
- "
98
- :iso="block.iso"
99
- height="14" />
100
- <arg-flag
101
- v-else
102
- :slug="block.country.toLowerCase()"
103
- :emoji="
104
- block.country === 'world' ||
105
- block.country === 'europe' ||
106
- block.emoji
107
- "
108
- height="14" /></span
109
- >{{ block.title }}
110
- </p>
70
+ <p>
71
+ {{ typeof category === "string" ? category : category.label }}
72
+ </p>
73
+ </div>
74
+ <div class="oip_row v-start gap-16 wrap full_stretch">
75
+ <div
76
+ v-for="(block, index) in filterCategoryBlocks(category)"
77
+ :key="index"
78
+ class="oip_card block_card action"
79
+ :class="
80
+ selectedBlock?.title === block.title ? 'block_selected' : ''
81
+ "
82
+ @click="selectBlock(block)"
83
+ >
84
+ <slot
85
+ v-if="customizeBlocks"
86
+ :name="seperateCustoms ? 'customOther' : 'custom'"
87
+ v-bind:block="block"
88
+ />
89
+ <div v-else class="block_content">
111
90
  <div
112
- v-if="block.population && block.population !== null"
113
- class="oip_row v-center gap-8 population"
91
+ class="oip_row v-center space-between full_stretch card_head"
114
92
  >
115
- <arg-icon
116
- name="UsersThree"
117
- color="var(--medium)"
118
- size="14"
119
- />
120
- <p>
121
- {{
122
- new Intl.NumberFormat("us-US").format(block.population)
123
- }}
93
+ <p class="block_title">
94
+ <span v-if="block.country"
95
+ ><arg-flag
96
+ v-if="block.iso"
97
+ :emoji="
98
+ block.iso === 'ww' ||
99
+ block.iso === 'eu' ||
100
+ block.emoji
101
+ "
102
+ :iso="block.iso"
103
+ height="14" />
104
+ <arg-flag
105
+ v-else
106
+ :slug="block.country.toLowerCase()"
107
+ :emoji="
108
+ block.country === 'world' ||
109
+ block.country === 'europe' ||
110
+ block.emoji
111
+ "
112
+ height="14" /></span
113
+ >{{ block.title }}
124
114
  </p>
115
+ <div
116
+ v-if="block.population && block.population !== null"
117
+ class="oip_row v-center gap-8 population"
118
+ >
119
+ <arg-icon
120
+ name="UsersThree"
121
+ color="var(--medium)"
122
+ size="14"
123
+ />
124
+ <p>
125
+ {{
126
+ new Intl.NumberFormat("us-US").format(
127
+ block.population
128
+ )
129
+ }}
130
+ </p>
131
+ </div>
125
132
  </div>
133
+ <p class="block_descr">{{ block.description }}</p>
126
134
  </div>
127
- <p class="block_descr">{{ block.description }}</p>
128
135
  </div>
129
136
  </div>
130
137
  </div>
@@ -259,7 +266,7 @@ export default defineComponent({
259
266
  type: String,
260
267
  default: "en",
261
268
  validator: (value) => {
262
- return ["en", "fr"].includes(value);
269
+ return ["en", "fr", "es", "jp", "kr"].includes(value);
263
270
  }
264
271
  }
265
272
  },
@@ -321,7 +328,9 @@ export default defineComponent({
321
328
  return props.appBlocks.length > 0 ? props.appBlocks.filter((a) => includesValue(a)) : null;
322
329
  });
323
330
  const filterCategoryBlocks = (cat) => {
324
- return props.appBlocks.length > 0 ? props.appBlocks.filter(
331
+ return props.appBlocks.length > 0 ? searchBlocks.value.length > 0 ? props.appBlocks.filter(
332
+ (a) => typeof cat === "string" ? a.category === cat && includesValue(a) : a.category.label === cat.label && includesValue(a)
333
+ ) : props.appBlocks.filter(
325
334
  (a) => typeof cat === "string" ? a.category === cat : a.category.label === cat.label
326
335
  ) : null;
327
336
  };
@@ -357,5 +366,5 @@ export default defineComponent({
357
366
  </script>
358
367
 
359
368
  <style scoped>
360
- .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}
369
+ .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}.stretch{align-self:stretch}
361
370
  </style>
@@ -0,0 +1,118 @@
1
+ <template>
2
+ <div
3
+ class="oip_product_card"
4
+ :class="`${app}_banner`"
5
+ :style="` background: linear-gradient(
6
+ 90deg,
7
+ rgba(255, 255, 255, 0.9) 41%,
8
+ rgba(255, 255, 255, 0) 100%
9
+ ),
10
+ url(&quot;${getBackground}&quot;) lightgray 50% / cover no-repeat;`"
11
+ >
12
+ <p :class="['banner_title', `${app}_title_color`]">{{ getTitle }}</p>
13
+ <p class="oip_body banner_text">{{ getText }}</p>
14
+ <div class="oip_row v-center gap-16" v-if="defaultActions">
15
+ <arg-btn
16
+ :btn-style="`${app === 'oip' ? 'primary' : app}-fill`"
17
+ @on-click="$emit('onTrial')"
18
+ >Free trial</arg-btn
19
+ >
20
+ <arg-btn
21
+ :btn-style="`${app === 'oip' ? 'primary' : app}-stroke`"
22
+ @on-click="$emit('onContact')"
23
+ >Contact sales</arg-btn
24
+ >
25
+ </div>
26
+ <slot v-else name="actions" />
27
+ </div>
28
+ </template>
29
+
30
+ <script>
31
+ import {
32
+ computed,
33
+ defineComponent
34
+ } from "vue";
35
+ import argBtn from "./argBtn.vue";
36
+ import { oipBG, bankBG, discoveryBG } from "../../assets";
37
+ export default defineComponent({
38
+ name: "argProductCard",
39
+ components: { argBtn },
40
+ props: {
41
+ app: {
42
+ type: String,
43
+ default: "oip",
44
+ validator: (value) => {
45
+ return ["oip", "discovery", "bank"].includes(value);
46
+ }
47
+ },
48
+ defaultActions: {
49
+ type: Boolean,
50
+ default: true
51
+ },
52
+ customTitle: {
53
+ type: String || void 0 || null,
54
+ default: void 0
55
+ },
56
+ customText: {
57
+ type: String || void 0 || null,
58
+ default: void 0
59
+ }
60
+ },
61
+ emits: ["onTrial", "onContact"],
62
+ setup(props, { emit }) {
63
+ const getBackground = computed(() => {
64
+ switch (props.app) {
65
+ case "oip":
66
+ return oipBG;
67
+ case "discovery":
68
+ return discoveryBG;
69
+ case "bank":
70
+ return bankBG;
71
+ default:
72
+ return oipBG;
73
+ }
74
+ });
75
+ const getTitle = computed(() => {
76
+ if (props.customTitle && props.customTitle !== null) {
77
+ return props.customTitle;
78
+ } else {
79
+ switch (props.app) {
80
+ case "oip":
81
+ return "OIP Healthcare\xAE";
82
+ case "discovery":
83
+ return "Accelerate Your Research Today!";
84
+ case "bank":
85
+ return "OIP Databank\xAE";
86
+ default:
87
+ return "OIP Healthcare\xAE";
88
+ }
89
+ }
90
+ });
91
+ const getText = computed(() => {
92
+ if (props.customText && props.customText !== null) {
93
+ return props.customText;
94
+ } else {
95
+ switch (props.app) {
96
+ case "oip":
97
+ return "Spider totalus peruvian-night-powder moon mrs wheels. Invisibility vulture-hat crush ridgeback holly broomstick rock-cake broomstick for.";
98
+ case "discovery":
99
+ return "Take your drug discovery process to the next level with OIP Discovery\xAE. Sign up now to explore cutting-edge data and reports from the most trusted scientific sources.";
100
+ case "bank":
101
+ return "OIP Databank gathers all major open data decisive for healthcare project, in a single, simple and ready-to-use data infrastructure. Start building today with your own tools and explore our data packages";
102
+ default:
103
+ return "Spider totalus peruvian-night-powder moon mrs wheels. Invisibility vulture-hat crush ridgeback holly broomstick rock-cake broomstick for.";
104
+ }
105
+ }
106
+ });
107
+ return {
108
+ getTitle,
109
+ getText,
110
+ getBackground
111
+ };
112
+ }
113
+ });
114
+ </script>
115
+
116
+ <style scoped>
117
+ .oip_product_card{align-items:flex-start;align-self:stretch;background:linear-gradient(90deg,hsla(0,0%,100%,.9) 41%,hsla(0,0%,100%,0));border-radius:12px;box-shadow:0 6px 8px 0 rgba(30,41,59,.1);display:flex;flex-direction:column;gap:24px;padding:40px}.bank_banner{border:1px solid rgba(224,67,128,.1)!important}.oip_banner{border:1px solid rgba(65,100,238,.1)!important}.discovery_banner{border:1px solid rgba(7,129,111,.1)!important}.banner_title{font-size:26px;font-style:normal;font-weight:900;line-height:normal}.bank_title_color{color:var(--bank)}.discovery_title_color{color:var(--discovery)}.oip_title_color{color:var(--primary)}.banner_text{max-width:550px;width:50%}
118
+ </style>
@@ -0,0 +1,50 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ app: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ validator: (value: string) => boolean;
6
+ };
7
+ defaultActions: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ customTitle: {
12
+ type: StringConstructor;
13
+ default: undefined;
14
+ };
15
+ customText: {
16
+ type: StringConstructor;
17
+ default: undefined;
18
+ };
19
+ }, {
20
+ getTitle: import("vue").ComputedRef<string>;
21
+ getText: import("vue").ComputedRef<string>;
22
+ getBackground: import("vue").ComputedRef<any>;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onTrial" | "onContact")[], "onTrial" | "onContact", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ app: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ validator: (value: string) => boolean;
28
+ };
29
+ defaultActions: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ customTitle: {
34
+ type: StringConstructor;
35
+ default: undefined;
36
+ };
37
+ customText: {
38
+ type: StringConstructor;
39
+ default: undefined;
40
+ };
41
+ }>> & {
42
+ onOnTrial?: ((...args: any[]) => any) | undefined;
43
+ onOnContact?: ((...args: any[]) => any) | undefined;
44
+ }, {
45
+ customTitle: string;
46
+ app: string;
47
+ defaultActions: boolean;
48
+ customText: string;
49
+ }, {}>;
50
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.90",
3
+ "version": "0.2.92",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",