@tekkare/auriga 0.1.45 → 0.1.47

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.1.45"
7
+ "version": "0.1.47"
8
8
  }
@@ -514,7 +514,7 @@ export default defineComponent({
514
514
  background: var(--pure-white);
515
515
  border: 1.5px solid var(--dividers);
516
516
  border-radius: 8px;
517
- align-self: stretch;
517
+ width: calc(100% - 24px);
518
518
  height: 40px;
519
519
  }
520
520
 
@@ -143,7 +143,7 @@ export default defineComponent({
143
143
  font-size: 14px;
144
144
  line-height: 16px;
145
145
  height: 40px;
146
- width: 228px;
146
+ width: 202px;
147
147
  cursor: pointer;
148
148
  }
149
149
  .filter_tooltip {
@@ -120,8 +120,7 @@ export default defineComponent({
120
120
  }
121
121
 
122
122
  .full-width {
123
- align-self: stretch;
124
- flex-basis: 100%;
123
+ width: 100%;
125
124
  }
126
125
 
127
126
  .filter-icon {
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  <p class="theme_descr">{{ selected.description }}</p>
25
25
  </div>
26
- <div>
26
+ <div class="selected_block_links">
27
27
  <div v-for="(item, index) in selected.links" :key="index">
28
28
  <arg-sub-menu
29
29
  v-if="item.subLinks"
@@ -115,4 +115,9 @@ export default defineComponent({
115
115
  font-weight: 400;
116
116
  line-height: 160%;
117
117
  }
118
+ .selected_block_links {
119
+ display: flex;
120
+ flex-direction: column;
121
+ gap: 4px;
122
+ }
118
123
  </style>
@@ -22,7 +22,7 @@
22
22
  import {
23
23
  onMounted,
24
24
  defineComponent,
25
- onBeforeUpdate
25
+ onUpdated
26
26
  } from "vue";
27
27
  import argFooter from "./argFooter.vue";
28
28
  import argStyle from "./argStyle.vue";
@@ -46,7 +46,7 @@ export default defineComponent({
46
46
  window.addEventListener("popstate", adjustMarginForBody);
47
47
  window.addEventListener("click", adjustMarginForBody);
48
48
  });
49
- onBeforeUpdate(() => {
49
+ onUpdated(() => {
50
50
  adjustMarginForBody();
51
51
  });
52
52
  function adjustMarginForBody() {
@@ -56,6 +56,7 @@ import {
56
56
  onMounted,
57
57
  ref,
58
58
  computed,
59
+ watch,
59
60
  defineComponent,
60
61
  onUnmounted
61
62
  } from "vue";
@@ -82,6 +83,14 @@ export default defineComponent({
82
83
  selectedScope.value = props.active_scope;
83
84
  }
84
85
  });
86
+ watch(
87
+ () => props.active_scope,
88
+ (new_scopes) => {
89
+ if (new_scopes !== null) {
90
+ selectedScope.value = new_scopes;
91
+ }
92
+ }
93
+ );
85
94
  const getTitle = computed(() => {
86
95
  if (props.scopes.length > 0) {
87
96
  return props.lang === "en" ? "Change scope" : "Changer de scope";
@@ -220,6 +220,7 @@ export default defineComponent({
220
220
  width: 50%;
221
221
  flex: 1 1 0;
222
222
  display: flex;
223
+ align-self: stretch;
223
224
  }
224
225
 
225
226
  .arg_save_header > h1 {
@@ -276,6 +277,7 @@ textarea::placeholder {
276
277
  justify-content: center;
277
278
  white-space: wrap;
278
279
  text-align: center;
280
+ align-self: stretch;
279
281
  }
280
282
 
281
283
  .cursor-pointer {
@@ -79,7 +79,7 @@ export default defineComponent({
79
79
  background: var(--pure-white);
80
80
  border: 1.5px solid var(--dividers);
81
81
  border-radius: 8px;
82
- align-self: stretch;
82
+ width: calc(100% - 24px);
83
83
  margin: 5px 0px;
84
84
  min-height: 40px;
85
85
  }
@@ -61,7 +61,7 @@ export default defineComponent({
61
61
 
62
62
  .oip_select_block {
63
63
  cursor: pointer;
64
- width: 222px;
64
+ width: 202px;
65
65
  padding: 12px;
66
66
  display: flex;
67
67
  align-items: center;
@@ -91,6 +91,7 @@ body {
91
91
  color: var(--independence);
92
92
  background: var(--background);
93
93
  margin: 0px;
94
+ text-wrap: pretty;
94
95
  }
95
96
  a {
96
97
  text-decoration: none;
@@ -707,6 +708,7 @@ button {
707
708
  flex-direction: row;
708
709
  justify-content: center;
709
710
  align-items: center;
711
+ text-wrap: pretty;
710
712
  }
711
713
  .oip_button_loading {
712
714
  position: absolute;
@@ -1,7 +1,18 @@
1
1
  <template>
2
2
  <div :class="sidebarOpen ? 'arg_sub_menu' : 'arg_sub_small'">
3
3
  <button class="arg_sub_menu_button" @click="openMenu = !openMenu">
4
- <span v-show="sidebarOpen">{{ label }}</span>
4
+ <div class="oip_row v-center gap-4">
5
+ <arg-icon
6
+ v-if="icon !== null"
7
+ :name="icon"
8
+ size="12"
9
+ color="var(--cool-grey)"
10
+ thickness="30"
11
+ :class="[openMenu ? 'active_icon' : '']"
12
+ />
13
+ <arg-flag v-else-if="flagIso !== null" :iso="flagIso" emoji />
14
+ <span v-show="sidebarOpen">{{ label }}</span>
15
+ </div>
5
16
  <arg-tooltip
6
17
  :tooltip-text="label"
7
18
  :disable="sidebarOpen"
@@ -16,7 +27,7 @@
16
27
  :class="[
17
28
  'action_icon',
18
29
  sidebarOpen ? '' : 'icon_sb',
19
- openMenu ? 'active_icon' : '',
30
+ openMenu ? 'active_icon rotate_icon' : '',
20
31
  ]"
21
32
  />
22
33
  </arg-tooltip>
@@ -38,7 +49,8 @@ export default defineComponent({
38
49
  components: { argIcon, argTooltip },
39
50
  props: {
40
51
  label: { type: String, required: true },
41
- icon: { type: String },
52
+ icon: { type: String, default: null },
53
+ flagIso: { type: String, default: null },
42
54
  defaultCollapseState: { type: Boolean, default: true },
43
55
  sidebarOpen: { type: Boolean, default: true }
44
56
  },
@@ -106,7 +118,10 @@ export default defineComponent({
106
118
  }
107
119
 
108
120
  .active_icon {
109
- transform: rotate(180deg);
110
121
  color: var(--primary) !important;
111
122
  }
123
+
124
+ .rotate_icon {
125
+ transform: rotate(180deg);
126
+ }
112
127
  </style>
@@ -5,6 +5,11 @@ declare const _default: import("vue").DefineComponent<{
5
5
  };
6
6
  icon: {
7
7
  type: StringConstructor;
8
+ default: null;
9
+ };
10
+ flagIso: {
11
+ type: StringConstructor;
12
+ default: null;
8
13
  };
9
14
  defaultCollapseState: {
10
15
  type: BooleanConstructor;
@@ -23,6 +28,11 @@ declare const _default: import("vue").DefineComponent<{
23
28
  };
24
29
  icon: {
25
30
  type: StringConstructor;
31
+ default: null;
32
+ };
33
+ flagIso: {
34
+ type: StringConstructor;
35
+ default: null;
26
36
  };
27
37
  defaultCollapseState: {
28
38
  type: BooleanConstructor;
@@ -33,7 +43,9 @@ declare const _default: import("vue").DefineComponent<{
33
43
  default: boolean;
34
44
  };
35
45
  }>>, {
46
+ icon: string;
36
47
  sidebarOpen: boolean;
48
+ flagIso: string;
37
49
  defaultCollapseState: boolean;
38
50
  }, {}>;
39
51
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",