@tekkare/auriga 0.1.9 → 0.1.10

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.
Files changed (37) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/allIcons.vue +1112 -0
  3. package/dist/runtime/components/allIcons.vue.d.ts +6 -0
  4. package/dist/runtime/components/argActions.vue +39 -9
  5. package/dist/runtime/components/argActions.vue.d.ts +15 -1
  6. package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
  7. package/dist/runtime/components/argCheckbox.vue +35 -28
  8. package/dist/runtime/components/argCheckbox.vue.d.ts +9 -1
  9. package/dist/runtime/components/argCircleAmount.vue +37 -0
  10. package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
  11. package/dist/runtime/components/argDropdownSelect.vue +5 -19
  12. package/dist/runtime/components/argEmoji.vue +34 -0
  13. package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
  14. package/dist/runtime/components/argFileBtn.vue +10 -2
  15. package/dist/runtime/components/argFileBtn.vue.d.ts +9 -0
  16. package/dist/runtime/components/argFilterCard.vue +0 -1
  17. package/dist/runtime/components/argHeader.vue +15 -7
  18. package/dist/runtime/components/argHeader.vue.d.ts +9 -0
  19. package/dist/runtime/components/argMenuLink.vue +3 -2
  20. package/dist/runtime/components/argMultipleChoice.vue +1 -1
  21. package/dist/runtime/components/argMultipleSelect.vue +29 -17
  22. package/dist/runtime/components/argMultipleSelect.vue.d.ts +8 -0
  23. package/dist/runtime/components/argRadioButtons.vue +2 -1
  24. package/dist/runtime/components/argScopeCriteria.vue +91 -0
  25. package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
  26. package/dist/runtime/components/argScopeHeader.vue +90 -0
  27. package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
  28. package/dist/runtime/components/argScopeLayout.vue +61 -0
  29. package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
  30. package/dist/runtime/components/argSidebar.vue +10 -7
  31. package/dist/runtime/components/argSidebar.vue.d.ts +9 -0
  32. package/dist/runtime/components/argSimpleLabel.vue +1 -1
  33. package/dist/runtime/components/argStyle.vue +82 -65
  34. package/dist/runtime/components/argTags.vue +1 -1
  35. package/dist/runtime/components/argTipsBox.vue +153 -0
  36. package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
  37. package/package.json +2 -1
@@ -2,22 +2,33 @@
2
2
  <div>
3
3
  <arg-style />
4
4
  <!-- Simple select -->
5
- <arg-simple-label
6
- :disabled="disabled"
7
- :show_amount="show_amount"
8
- :amount_value="selected_items.length"
9
- @click="changeDisplay()"
10
- :class="isDisplay ? 'open' : ''"
11
- >
12
- <p :class="show_amount === true ? 'oip_crop big' : 'oip_crop small'">
13
- {{
14
- (nested && selected_nested.length > 0) ||
15
- (!nested && selected_items.length > 0)
16
- ? getAllSelect
17
- : emptyMsg
18
- }}
19
- </p>
20
- </arg-simple-label>
5
+ <div class="oip_select_display">
6
+ <p class="oip_filter_label">{{ multiple_label }}</p>
7
+ <arg-simple-label
8
+ :disabled="disabled"
9
+ :show_amount="show_amount"
10
+ :amount_value="selected_items.length"
11
+ @click="changeDisplay()"
12
+ :class="isDisplay ? 'open' : ''"
13
+ >
14
+ <p
15
+ :class="[
16
+ show_amount === true ? 'oip_crop big' : 'oip_crop small',
17
+ (nested && selected_nested.length > 0) ||
18
+ (!nested && selected_items.length > 0)
19
+ ? ''
20
+ : 'oip_empty_select',
21
+ ]"
22
+ >
23
+ {{
24
+ (nested && selected_nested.length > 0) ||
25
+ (!nested && selected_items.length > 0)
26
+ ? getAllSelect
27
+ : emptyMsg
28
+ }}
29
+ </p>
30
+ </arg-simple-label>
31
+ </div>
21
32
 
22
33
  <div
23
34
  :style="isDisplay === false ? 'display : none' : ''"
@@ -306,7 +317,8 @@ export default defineComponent({
306
317
  multiple_columns: { type: Boolean, default: false },
307
318
  options_disable: { type: Array, default: () => [] },
308
319
  show_amount: { type: Boolean, default: true },
309
- emptyMsg: { type: String, default: "No selection" }
320
+ emptyMsg: { type: String, default: "No selection" },
321
+ multiple_label: { type: String, required: true }
310
322
  },
311
323
  emits: ["changeElement", "update:Selection", "changeInputValue", "onClose"],
312
324
  setup(props, { emit }) {
@@ -47,6 +47,10 @@ declare const _default: import("vue").DefineComponent<{
47
47
  type: StringConstructor;
48
48
  default: string;
49
49
  };
50
+ multiple_label: {
51
+ type: StringConstructor;
52
+ required: true;
53
+ };
50
54
  }, {
51
55
  del_all: () => void;
52
56
  del_all_cat: (index: number) => void;
@@ -124,6 +128,10 @@ declare const _default: import("vue").DefineComponent<{
124
128
  type: StringConstructor;
125
129
  default: string;
126
130
  };
131
+ multiple_label: {
132
+ type: StringConstructor;
133
+ required: true;
134
+ };
127
135
  }>> & {
128
136
  onOnClose?: ((...args: any[]) => any) | undefined;
129
137
  onChangeElement?: ((...args: any[]) => any) | undefined;
@@ -41,7 +41,7 @@ export default defineComponent({
41
41
  },
42
42
  returnValue: {
43
43
  type: Boolean,
44
- default: false
44
+ default: true
45
45
  },
46
46
  dir: {
47
47
  type: String,
@@ -117,6 +117,7 @@ export default defineComponent({
117
117
 
118
118
  .radio_display {
119
119
  display: flex;
120
+ width: 100%;
120
121
  }
121
122
 
122
123
  .radio_row {
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <div class="oip_card arg_scope_card">
3
+ <arg-filter-tabs
4
+ v-model:Tab="activeTab"
5
+ :tabs="lang === 'fr' ? frScopeTabs : scopeTabs"
6
+ return-value
7
+ />
8
+ <div v-show="activeTab === 'new'" class="arg_scope_new">
9
+ <div class="oip_row v-center gap-8">
10
+ <h1>{{ lang === "fr" ? "Critère scope" : "Scope criteria" }}</h1>
11
+ <slot name="filtersAmount" />
12
+ </div>
13
+ <div class="oip_row v-center gap-16 wrap">
14
+ <slot name="new" />
15
+ </div>
16
+ </div>
17
+ <div v-show="activeTab === 'saved'" class="arg_scope_save">
18
+ <div class="oip_row v-center gap-8">
19
+ <h1>
20
+ {{ lang === "fr" ? "Vos scopes enregistrés" : "Your saved scope" }}
21
+ </h1>
22
+ <slot name="scopeAmount" />
23
+ </div>
24
+ <slot name="saved" />
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ import {
31
+ ref,
32
+ defineComponent
33
+ } from "vue";
34
+ import argFilterTabs from "./argFilterTabs.vue";
35
+ export default defineComponent({
36
+ name: "argScopeCriteria",
37
+ components: { argFilterTabs },
38
+ props: {
39
+ scopeTitle: {
40
+ type: String,
41
+ default: "My scope"
42
+ },
43
+ lang: {
44
+ type: String,
45
+ default: "en",
46
+ validator: (value) => {
47
+ return ["en", "fr"].includes(value);
48
+ }
49
+ }
50
+ },
51
+ setup() {
52
+ const activeTab = ref("new");
53
+ const scopeTabs = [
54
+ { name: "New scope criteria", value: "new" },
55
+ { name: "Apply an existing scope", value: "saved" }
56
+ ];
57
+ const frScopeTabs = [
58
+ { name: "Nouveau crit\xE8re scope", value: "new" },
59
+ { name: "Appliquer un scope existant", value: "saved" }
60
+ ];
61
+ return { activeTab, scopeTabs, frScopeTabs };
62
+ }
63
+ });
64
+ </script>
65
+
66
+ <style scoped>
67
+ .arg_scope_card {
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: flex-start;
71
+ gap: 24px;
72
+ width: calc(100% - 48px);
73
+ }
74
+ .arg_scope_new,
75
+ .arg_scope_save {
76
+ display: flex;
77
+ align-items: flex-start;
78
+ align-content: flex-start;
79
+ flex-direction: column;
80
+ gap: 16px var(--m, 16px);
81
+ width: 100%;
82
+ }
83
+
84
+ .arg_scope_new h1,
85
+ .arg_scope_save h1 {
86
+ font-size: 20px;
87
+ font-style: normal;
88
+ font-weight: 900;
89
+ line-height: normal;
90
+ }
91
+ </style>
@@ -0,0 +1,35 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ scopeTitle: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ lang: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ validator: (value: string) => boolean;
10
+ };
11
+ }, {
12
+ activeTab: import("vue").Ref<string>;
13
+ scopeTabs: {
14
+ name: string;
15
+ value: string;
16
+ }[];
17
+ frScopeTabs: {
18
+ name: string;
19
+ value: string;
20
+ }[];
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ scopeTitle: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ lang: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ validator: (value: string) => boolean;
30
+ };
31
+ }>>, {
32
+ lang: string;
33
+ scopeTitle: string;
34
+ }, {}>;
35
+ export default _default;
@@ -0,0 +1,90 @@
1
+ <template>
2
+ <div class="arg_scope_header">
3
+ <div class="oip_row v-center gap-16">
4
+ <arg-actions :lang="lang" action-type="cancel" @onCancel="goBack()" />
5
+ <h1 class="scope_title">{{ scopeTitle }}</h1>
6
+ </div>
7
+ <div class="oip_row v-center gap-16">
8
+ <arg-actions
9
+ :lang="lang"
10
+ action-type="see-analysis"
11
+ @onSeeAnalysis="seeAnalysis()"
12
+ />
13
+ <arg-actions
14
+ :lang="lang"
15
+ action-type="save-analysis"
16
+ @onSaveAnalysis="saveAnalysis()"
17
+ />
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ import {
24
+ defineComponent
25
+ } from "vue";
26
+ import { useRouter } from "vue-router";
27
+ import argActions from "./argActions.vue";
28
+ export default defineComponent({
29
+ name: "argScopeHeader",
30
+ components: { argActions },
31
+ props: {
32
+ scopeTitle: {
33
+ type: String,
34
+ default: "My scope"
35
+ },
36
+ lang: {
37
+ type: String,
38
+ default: "en",
39
+ validator: (value) => {
40
+ return ["en", "fr"].includes(value);
41
+ }
42
+ }
43
+ },
44
+ emits: ["seeAnalysis", "saveAnalysis"],
45
+ setup(props, { emit }) {
46
+ const router = useRouter();
47
+ function goBack() {
48
+ router.back();
49
+ }
50
+ function seeAnalysis() {
51
+ emit("seeAnalysis");
52
+ }
53
+ function saveAnalysis() {
54
+ emit("saveAnalysis");
55
+ }
56
+ return {
57
+ router,
58
+ goBack,
59
+ seeAnalysis,
60
+ saveAnalysis
61
+ };
62
+ }
63
+ });
64
+ </script>
65
+
66
+ <style scoped>
67
+ .arg_scope_header {
68
+ display: flex;
69
+ flex-direction: row;
70
+ padding: var(--l, 24px);
71
+ align-items: center;
72
+ justify-content: space-between;
73
+ gap: var(--m, 16px);
74
+
75
+ align-self: stretch;
76
+ border-radius: var(--None, 0px);
77
+
78
+ border-bottom: 1px solid var(--base-dividers, #ececf2);
79
+ background: rgba(253, 253, 255, 0.8);
80
+
81
+ backdrop-filter: blur(12px);
82
+ }
83
+
84
+ .scope_title {
85
+ font-size: 20px;
86
+ font-style: normal;
87
+ font-weight: 900;
88
+ line-height: normal;
89
+ }
90
+ </style>
@@ -0,0 +1,33 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ scopeTitle: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ lang: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ validator: (value: string) => boolean;
10
+ };
11
+ }, {
12
+ router: import("vue-router").Router;
13
+ goBack: () => void;
14
+ seeAnalysis: () => void;
15
+ saveAnalysis: () => void;
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("seeAnalysis" | "saveAnalysis")[], "seeAnalysis" | "saveAnalysis", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ scopeTitle: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ lang: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ validator: (value: string) => boolean;
25
+ };
26
+ }>> & {
27
+ onSeeAnalysis?: ((...args: any[]) => any) | undefined;
28
+ onSaveAnalysis?: ((...args: any[]) => any) | undefined;
29
+ }, {
30
+ lang: string;
31
+ scopeTitle: string;
32
+ }, {}>;
33
+ export default _default;
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <div class="arg_main_scope">
3
+ <slot name="header" />
4
+ <div class="arg_scope_layout_body">
5
+ <slot name="body" />
6
+ </div>
7
+ <argFooter />
8
+ </div>
9
+ </template>
10
+ <script>
11
+ import {
12
+ onMounted,
13
+ defineComponent
14
+ } from "vue";
15
+ import argIcon from "./argIcon.vue";
16
+ import argStyle from "./argStyle.vue";
17
+ import argFooter from "./argFooter.vue";
18
+ export default defineComponent({
19
+ name: "argMainLayout",
20
+ components: { argIcon, argStyle, argFooter },
21
+ props: {
22
+ sidebarOpen: {
23
+ type: Boolean,
24
+ default: true
25
+ }
26
+ },
27
+ setup() {
28
+ onMounted(() => {
29
+ adjustMarginForBody();
30
+ window.addEventListener("resize", adjustMarginForBody);
31
+ });
32
+ function adjustMarginForBody() {
33
+ const fixedHeader = document.getElementById("arg_header");
34
+ const bodyContent = document.getElementById("arg_main_layout_section");
35
+ const infoBar = document.getElementById("arg_info_section");
36
+ if (fixedHeader && bodyContent) {
37
+ const headerHeight = fixedHeader.offsetHeight;
38
+ bodyContent.style.marginTop = `${headerHeight}px`;
39
+ }
40
+ if (fixedHeader && infoBar) {
41
+ const headerHeight = fixedHeader.offsetHeight;
42
+ infoBar.style.top = `${headerHeight + 8}px`;
43
+ }
44
+ }
45
+ }
46
+ });
47
+ </script>
48
+ <style>
49
+ .arg_main_scope {
50
+ display: flex;
51
+ flex-direction: column;
52
+ align-items: center;
53
+ }
54
+ .arg_scope_layout_body {
55
+ min-height: calc(100vh - 77px);
56
+ padding: 8px;
57
+ max-width: 1088px;
58
+ min-width: 50%;
59
+ margin-top: 32px;
60
+ }
61
+ </style>
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ sidebarOpen: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ sidebarOpen: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }>>, {
12
+ sidebarOpen: boolean;
13
+ }, {}>;
14
+ export default _default;
@@ -38,8 +38,9 @@
38
38
  </div>
39
39
  </div>
40
40
 
41
- <h1 class="arg_sidebar_title">
42
- <span v-show="sidebarOpen">{{ name }}</span>
41
+ <h1 v-show="sidebarOpen" class="arg_sidebar_title">
42
+ <span v-if="appIso"><arg-flag :iso="appIso" emoji /></span>
43
+ <span>{{ name }}</span>
43
44
  </h1>
44
45
  <div class="arg_sidebar_body">
45
46
  <div class="arg_sidebar_content">
@@ -61,12 +62,15 @@ import {
61
62
  defineComponent
62
63
  } from "vue";
63
64
  import argIcon from "./argIcon.vue";
64
- import argStyle from "./argStyle.vue";
65
65
  export default defineComponent({
66
66
  name: "argSidebar",
67
- components: { argIcon, argStyle },
67
+ components: { argIcon },
68
68
  props: {
69
69
  name: { type: String, required: true },
70
+ appIso: {
71
+ type: String,
72
+ default: null
73
+ },
70
74
  lang: {
71
75
  type: String,
72
76
  default: "en",
@@ -151,10 +155,9 @@ export default defineComponent({
151
155
  }
152
156
  .arg_sidebar_title {
153
157
  display: flex;
158
+ flex-direction: row;
154
159
  padding: 0px 8px;
155
- flex-direction: column;
156
- justify-content: center;
157
- align-items: flex-start;
160
+ align-items: center;
158
161
  gap: 8px;
159
162
  align-self: stretch;
160
163
  font-size: 20px;
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: StringConstructor;
4
4
  required: true;
5
5
  };
6
+ appIso: {
7
+ type: StringConstructor;
8
+ default: null;
9
+ };
6
10
  lang: {
7
11
  type: StringConstructor;
8
12
  default: string;
@@ -20,6 +24,10 @@ declare const _default: import("vue").DefineComponent<{
20
24
  type: StringConstructor;
21
25
  required: true;
22
26
  };
27
+ appIso: {
28
+ type: StringConstructor;
29
+ default: null;
30
+ };
23
31
  lang: {
24
32
  type: StringConstructor;
25
33
  default: string;
@@ -34,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
34
42
  "onUpdate:Sidebar"?: ((...args: any[]) => any) | undefined;
35
43
  }, {
36
44
  lang: string;
45
+ appIso: string;
37
46
  homeLink: string;
38
47
  }, {}>;
39
48
  export default _default;
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
 
54
54
  .oip_select_block {
55
55
  cursor: pointer;
56
- width: 228px;
56
+ width: 222px;
57
57
  padding: 12px;
58
58
  display: flex;
59
59
  align-items: center;