@tekkare/auriga 0.2.92 → 0.2.94

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.92"
7
+ "version": "0.2.94"
8
8
  }
@@ -238,7 +238,7 @@ export default defineComponent({
238
238
  search_placeholder_add: { type: String, default: null },
239
239
  search_placeholder_del: { type: String, default: null },
240
240
  need_apply: { type: Boolean, default: false },
241
- select_placeholder: { type: String, required: false },
241
+ // select_placeholder: { type: String, required: false },
242
242
  smart_selection_table: {
243
243
  type: Array || null,
244
244
  required: false,
@@ -28,10 +28,6 @@ declare const _default: import("vue").DefineComponent<{
28
28
  type: BooleanConstructor;
29
29
  default: boolean;
30
30
  };
31
- select_placeholder: {
32
- type: StringConstructor;
33
- required: false;
34
- };
35
31
  smart_selection_table: {
36
32
  type: ArrayConstructor;
37
33
  required: false;
@@ -210,10 +206,6 @@ declare const _default: import("vue").DefineComponent<{
210
206
  type: BooleanConstructor;
211
207
  default: boolean;
212
208
  };
213
- select_placeholder: {
214
- type: StringConstructor;
215
- required: false;
216
- };
217
209
  smart_selection_table: {
218
210
  type: ArrayConstructor;
219
211
  required: false;
@@ -52,6 +52,7 @@
52
52
  class="my-4"
53
53
  />
54
54
  <arg-sub-menu sidebar-open :label="item.linkName">
55
+ {{ item.subLinks.map((a) => a.newTab) }}
55
56
  <arg-menu-item
56
57
  v-for="(subLink, subIndex) in item.subLinks"
57
58
  :key="subIndex"
@@ -59,6 +60,7 @@
59
60
  :label="subLink.name"
60
61
  :to="subLink.to"
61
62
  :icon="subLink.icon"
63
+ :new-tab="subLink.newTab === undefined ? true : subLink.newTab"
62
64
  />
63
65
  </arg-sub-menu>
64
66
  <arg-line-break
@@ -72,6 +74,7 @@
72
74
  :label="item.linkName"
73
75
  :to="item.linkUrl"
74
76
  :icon="item.linkIcon"
77
+ :new-tab="item.newTab === undefined ? true : item.newTab"
75
78
  />
76
79
  </div>
77
80
  </div>
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <NuxtLink :to="to" class="auriga_menu_item" activeClass="is-active">
2
+ <NuxtLink
3
+ :to="to"
4
+ class="auriga_menu_item"
5
+ activeClass="is-active"
6
+ :target="newTab ? '_blank' : '_self'"
7
+ >
3
8
  <arg-tooltip
4
9
  :tooltip-text="label"
5
10
  :disable="sidebarOpen"
@@ -50,7 +55,8 @@ export default defineComponent({
50
55
  return true;
51
56
  }
52
57
  },
53
- label: { type: String, required: true }
58
+ label: { type: String, required: true },
59
+ newTab: { type: Boolean || void 0, default: false }
54
60
  }
55
61
  });
56
62
  </script>
@@ -20,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
20
20
  type: StringConstructor;
21
21
  required: true;
22
22
  };
23
+ newTab: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
23
27
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
28
  to: {
25
29
  type: StringConstructor;
@@ -42,5 +46,11 @@ declare const _default: import("vue").DefineComponent<{
42
46
  type: StringConstructor;
43
47
  required: true;
44
48
  };
45
- }>>, {}, {}>;
49
+ newTab: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>>, {
54
+ newTab: boolean;
55
+ }, {}>;
46
56
  export default _default;
@@ -1,6 +1,11 @@
1
1
  <template>
2
2
  <div>
3
- <nuxt-link v-if="!isAction" :to="to" class="arg_menu_link">
3
+ <nuxt-link
4
+ v-if="!isAction"
5
+ :to="to"
6
+ class="arg_menu_link"
7
+ :target="newTab ? '_blank' : '_self'"
8
+ >
4
9
  <arg-tooltip
5
10
  :tooltip-text="label"
6
11
  :disable="sidebarOpen"
@@ -44,7 +49,8 @@ export default defineComponent({
44
49
  label: { type: String, required: true },
45
50
  to: { type: String, default: "/" },
46
51
  sidebarOpen: { type: Boolean, default: true },
47
- isAction: { type: Boolean, default: false }
52
+ isAction: { type: Boolean, default: false },
53
+ newTab: { type: Boolean || void 0, default: false }
48
54
  },
49
55
  emits: ["onClick"],
50
56
  setup(props, { emit }) {
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
19
19
  type: BooleanConstructor;
20
20
  default: boolean;
21
21
  };
22
+ newTab: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
22
26
  }, {
23
27
  sendAction: () => void;
24
28
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -42,11 +46,16 @@ declare const _default: import("vue").DefineComponent<{
42
46
  type: BooleanConstructor;
43
47
  default: boolean;
44
48
  };
49
+ newTab: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
45
53
  }>> & {
46
54
  onOnClick?: ((...args: any[]) => any) | undefined;
47
55
  }, {
48
56
  sidebarOpen: boolean;
49
57
  to: string;
58
+ newTab: boolean;
50
59
  isAction: boolean;
51
60
  }, {}>;
52
61
  export default _default;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="oip_product_card"
4
- :class="`${app}_banner`"
4
+ :class="[isFindMore ? '' : `p-40 ${app}_banner`]"
5
5
  :style="` background: linear-gradient(
6
6
  90deg,
7
7
  rgba(255, 255, 255, 0.9) 41%,
@@ -9,21 +9,51 @@
9
9
  ),
10
10
  url(&quot;${getBackground}&quot;) lightgray 50% / cover no-repeat;`"
11
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
12
+ <div
13
+ class="oip_list v-start stretch"
14
+ :class="isFindMore ? `absolute_bg gap-16 ${app}_banner` : 'gap-24'"
15
+ >
16
+ <div :class="['banner_title', `${app}_title_color`]">
17
+ <p v-if="!textSlots">
18
+ {{ getTitle }}
19
+ </p>
20
+ <slot v-else name="title" />
21
+ </div>
22
+ <div class="oip_body banner_text">
23
+ <p v-if="!textSlots && !getText.includes('</p>')">
24
+ {{ getText }}
25
+ </p>
26
+ <p v-if="!textSlots && getText.includes('</p>')" v-html="getText" />
27
+ <slot v-else name="text" />
28
+ </div>
29
+ <div
30
+ class="oip_row v-center gap-16"
31
+ v-if="defaultActions && haveActions && !isFindMore"
19
32
  >
20
- <arg-btn
21
- :btn-style="`${app === 'oip' ? 'primary' : app}-stroke`"
22
- @on-click="$emit('onContact')"
23
- >Contact sales</arg-btn
33
+ <arg-btn
34
+ :btn-style="`${app === 'oip' ? 'primary' : app}-fill`"
35
+ @on-click="$emit('onTrial')"
36
+ >Free trial</arg-btn
37
+ >
38
+ <arg-btn
39
+ :btn-style="`${app === 'oip' ? 'primary' : app}-stroke`"
40
+ @on-click="$emit('onContact')"
41
+ >Contact sales</arg-btn
42
+ >
43
+ </div>
44
+ <div
45
+ class="oip_row v-center gap-16"
46
+ v-else-if="defaultActions && haveActions && isFindMore"
24
47
  >
48
+ <arg-btn
49
+ :btn-style="`${app === 'oip' ? 'primary' : app}-fill`"
50
+ @on-click="$emit('onContact')"
51
+ suffix-icon="ArrowRight"
52
+ >Contact support</arg-btn
53
+ >
54
+ </div>
55
+ <slot v-else-if="haveActions" name="actions" />
25
56
  </div>
26
- <slot v-else name="actions" />
27
57
  </div>
28
58
  </template>
29
59
 
@@ -41,10 +71,19 @@ export default defineComponent({
41
71
  app: {
42
72
  type: String,
43
73
  default: "oip",
74
+ required: true,
44
75
  validator: (value) => {
45
76
  return ["oip", "discovery", "bank"].includes(value);
46
77
  }
47
78
  },
79
+ haveActions: {
80
+ type: Boolean,
81
+ default: true
82
+ },
83
+ textSlots: {
84
+ type: Boolean,
85
+ default: false
86
+ },
48
87
  defaultActions: {
49
88
  type: Boolean,
50
89
  default: true
@@ -56,6 +95,10 @@ export default defineComponent({
56
95
  customText: {
57
96
  type: String || void 0 || null,
58
97
  default: void 0
98
+ },
99
+ isFindMore: {
100
+ type: Boolean,
101
+ default: false
59
102
  }
60
103
  },
61
104
  emits: ["onTrial", "onContact"],
@@ -75,6 +118,8 @@ export default defineComponent({
75
118
  const getTitle = computed(() => {
76
119
  if (props.customTitle && props.customTitle !== null) {
77
120
  return props.customTitle;
121
+ } else if (props.isFindMore) {
122
+ return "Not finding what you're looking for ?";
78
123
  } else {
79
124
  switch (props.app) {
80
125
  case "oip":
@@ -91,6 +136,8 @@ export default defineComponent({
91
136
  const getText = computed(() => {
92
137
  if (props.customText && props.customText !== null) {
93
138
  return props.customText;
139
+ } else if (props.isFindMore) {
140
+ return `<p class="oip_body banner_text">Our database grows daily, if you're seeking a specific theme, feel free to contact us, and <b>we'll gladly add the perfect app for you!</b></p>`;
94
141
  } else {
95
142
  switch (props.app) {
96
143
  case "oip":
@@ -114,5 +161,5 @@ export default defineComponent({
114
161
  </script>
115
162
 
116
163
  <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%}
164
+ .oip_product_card{align-self:stretch;border-radius:12px;box-shadow:0 6px 8px 0 rgba(30,41,59,.1);display:flex;flex-direction:column;position:relative}.p-24{padding:24px}.p-40{padding:40px}.absolute_bg{align-self:stretch;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:hsla(0,0%,100%,.7)!important;border-radius:8px;bottom:0;left:0;padding:24px;position:relative;top:0;width:calc(100% - 48px)}.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}
118
165
  </style>
@@ -2,8 +2,17 @@ declare const _default: import("vue").DefineComponent<{
2
2
  app: {
3
3
  type: StringConstructor;
4
4
  default: string;
5
+ required: true;
5
6
  validator: (value: string) => boolean;
6
7
  };
8
+ haveActions: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ textSlots: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
7
16
  defaultActions: {
8
17
  type: BooleanConstructor;
9
18
  default: boolean;
@@ -16,6 +25,10 @@ declare const _default: import("vue").DefineComponent<{
16
25
  type: StringConstructor;
17
26
  default: undefined;
18
27
  };
28
+ isFindMore: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
19
32
  }, {
20
33
  getTitle: import("vue").ComputedRef<string>;
21
34
  getText: import("vue").ComputedRef<string>;
@@ -24,8 +37,17 @@ declare const _default: import("vue").DefineComponent<{
24
37
  app: {
25
38
  type: StringConstructor;
26
39
  default: string;
40
+ required: true;
27
41
  validator: (value: string) => boolean;
28
42
  };
43
+ haveActions: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ textSlots: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
29
51
  defaultActions: {
30
52
  type: BooleanConstructor;
31
53
  default: boolean;
@@ -38,13 +60,20 @@ declare const _default: import("vue").DefineComponent<{
38
60
  type: StringConstructor;
39
61
  default: undefined;
40
62
  };
63
+ isFindMore: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
41
67
  }>> & {
42
68
  onOnTrial?: ((...args: any[]) => any) | undefined;
43
69
  onOnContact?: ((...args: any[]) => any) | undefined;
44
70
  }, {
45
71
  customTitle: string;
46
72
  app: string;
73
+ haveActions: boolean;
74
+ textSlots: boolean;
47
75
  defaultActions: boolean;
48
76
  customText: string;
77
+ isFindMore: boolean;
49
78
  }, {}>;
50
79
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.92",
3
+ "version": "0.2.94",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",