@tekkare/auriga 0.1.10 → 0.1.12

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 (43) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/allFlags.vue +245 -0
  3. package/dist/runtime/components/allFlags.vue.d.ts +8 -0
  4. package/dist/runtime/components/argActions.vue +11 -6
  5. package/dist/runtime/components/argActions.vue.d.ts +12 -3
  6. package/dist/runtime/components/argChart.vue +109 -167
  7. package/dist/runtime/components/argChart.vue.d.ts +1 -1
  8. package/dist/runtime/components/argChartTableCard.vue +12 -2
  9. package/dist/runtime/components/argChartTableCard.vue.d.ts +22 -1
  10. package/dist/runtime/components/argComplexSelect.vue +1 -1
  11. package/dist/runtime/components/argDate.vue +77 -0
  12. package/dist/runtime/components/argDate.vue.d.ts +34 -0
  13. package/dist/runtime/components/argErrors.vue +168 -0
  14. package/dist/runtime/components/argErrors.vue.d.ts +56 -0
  15. package/dist/runtime/components/argFilterCard.vue +1 -0
  16. package/dist/runtime/components/argFlag.vue +447 -217
  17. package/dist/runtime/components/argFlag.vue.d.ts +4 -4
  18. package/dist/runtime/components/argHybridChart.vue +277 -0
  19. package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
  20. package/dist/runtime/components/argMainLayout.vue +1 -0
  21. package/dist/runtime/components/argMenuLink.vue +43 -15
  22. package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
  23. package/dist/runtime/components/argNumberInput.vue +223 -0
  24. package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
  25. package/dist/runtime/components/argSearchInput.vue +1 -2
  26. package/dist/runtime/components/argSearchInput.vue.d.ts +0 -2
  27. package/dist/runtime/components/argSimpleChart.vue +123 -0
  28. package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
  29. package/dist/runtime/components/argSimpleInput.vue +99 -0
  30. package/dist/runtime/components/argSimpleInput.vue.d.ts +48 -0
  31. package/dist/runtime/components/argSmallAreaChart.vue +138 -0
  32. package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
  33. package/dist/runtime/components/argSourceContainer.vue +34 -0
  34. package/dist/runtime/components/argSourceContainer.vue.d.ts +2 -0
  35. package/dist/runtime/components/argStyle.vue +8 -0
  36. package/dist/runtime/components/argTable.vue +45 -8
  37. package/dist/runtime/components/argTable.vue.d.ts +14 -2
  38. package/dist/runtime/components/argTags.vue +6 -4
  39. package/dist/runtime/components/argTrendIndicator.vue +82 -0
  40. package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
  41. package/dist/runtime/components/argTutoModal.vue +186 -0
  42. package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
  43. package/package.json +2 -1
@@ -329,7 +329,7 @@ export default defineComponent({
329
329
  });
330
330
  function changeInput() {
331
331
  setTimeout(() => {
332
- emit("changeAddInputValue", searchNameAdd);
332
+ emit("changeAddInputValue", searchNameAdd.value);
333
333
  }, 500);
334
334
  }
335
335
  function isInViewport(el) {
@@ -0,0 +1,77 @@
1
+ <template>
2
+ <span>{{ formatDate(rawDate) }}</span>
3
+ </template>
4
+
5
+ <script>
6
+ import {
7
+ defineComponent
8
+ } from "vue";
9
+ export default defineComponent({
10
+ name: "argDate",
11
+ props: {
12
+ rawDate: {
13
+ type: String,
14
+ required: true
15
+ },
16
+ lang: {
17
+ type: String,
18
+ default: "en"
19
+ },
20
+ compact: {
21
+ type: Boolean,
22
+ default: false
23
+ }
24
+ },
25
+ setup(props) {
26
+ function monthToString(month) {
27
+ if (month === 0) {
28
+ return props.lang === "fr" ? props.compact ? "Jan." : "Janvier" : props.compact ? "Jan" : "January";
29
+ }
30
+ if (month === 1) {
31
+ return props.lang === "fr" ? props.compact ? "F\xE9v." : "F\xE9vrier" : props.compact ? "Feb." : "February";
32
+ }
33
+ if (month === 2) {
34
+ return props.lang === "fr" ? props.compact ? "Mar." : "Mars" : props.compact ? "Mar." : "March";
35
+ }
36
+ if (month === 3) {
37
+ return props.lang === "fr" ? props.compact ? "Avr." : "Avril" : props.compact ? "Apr." : "April";
38
+ }
39
+ if (month === 4) {
40
+ return props.lang === "fr" ? "Mai" : "May";
41
+ }
42
+ if (month === 5) {
43
+ return props.lang === "fr" ? "Juin" : props.compact ? "Jun." : "June";
44
+ }
45
+ if (month === 6) {
46
+ return props.lang === "fr" ? props.compact ? "Juil." : "Juillet" : props.compact ? "Jul." : "July";
47
+ }
48
+ if (month === 7) {
49
+ return props.lang === "fr" ? props.compact ? "Ao\xFB." : "Ao\xFBt" : props.compact ? "Aug." : "August";
50
+ }
51
+ if (month === 8) {
52
+ return props.lang === "fr" ? props.compact ? "Sep." : "Septembre" : props.compact ? "Sep." : "September";
53
+ }
54
+ if (month === 9) {
55
+ return props.lang === "fr" ? props.compact ? "Oct." : "Octobre" : props.compact ? "Oct." : "October";
56
+ }
57
+ if (month === 10) {
58
+ return props.lang === "fr" ? props.compact ? "Nov." : "Novembre" : props.compact ? "Nov." : "November";
59
+ }
60
+ if (month === 11) {
61
+ return props.lang === "fr" ? props.compact ? "D\xE9c." : "D\xE9cembre" : props.compact ? "Dec." : "December";
62
+ }
63
+ }
64
+ function formatDate(str) {
65
+ const date = new Date(str);
66
+ const fullDate = `${date.getDate()} ${monthToString(
67
+ date.getMonth()
68
+ )}, ${date.getFullYear()}`;
69
+ return fullDate;
70
+ }
71
+ return {
72
+ formatDate,
73
+ monthToString
74
+ };
75
+ }
76
+ });
77
+ </script>
@@ -0,0 +1,34 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ rawDate: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ lang: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ compact: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }, {
15
+ formatDate: (str: string) => string;
16
+ monthToString: (month: number) => "Jan." | "Janvier" | "Jan" | "January" | "Fév." | "Février" | "Feb." | "February" | "Mar." | "Mars" | "March" | "Avr." | "Avril" | "Apr." | "April" | "Mai" | "May" | "Juin" | "Jun." | "June" | "Juil." | "Juillet" | "Jul." | "July" | "Aoû." | "Août" | "Aug." | "August" | "Sep." | "Septembre" | "September" | "Oct." | "Octobre" | "October" | "Nov." | "Novembre" | "November" | "Déc." | "Décembre" | "Dec." | "December" | undefined;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ rawDate: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ lang: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ compact: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }>>, {
31
+ lang: string;
32
+ compact: boolean;
33
+ }, {}>;
34
+ export default _default;
@@ -0,0 +1,168 @@
1
+ <template>
2
+ <div class="oip_error">
3
+ <div class="icon_circle">
4
+ <arg-icon :name="getIconName" size="44" color="var(--cool-grey)" />
5
+ </div>
6
+ <div class="error_text">
7
+ <p class="error_title">{{ getErrorName }}</p>
8
+ <p class="error_descr">{{ getErrorText }}</p>
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import {
15
+ computed,
16
+ defineComponent
17
+ } from "vue";
18
+ import argIcon from "./argIcon.vue";
19
+ export default defineComponent({
20
+ name: "argErrors",
21
+ components: {
22
+ argIcon
23
+ },
24
+ props: {
25
+ errorType: {
26
+ type: String,
27
+ default: "result",
28
+ required: true
29
+ },
30
+ errorTitle: {
31
+ type: String,
32
+ default: null
33
+ },
34
+ errorText: {
35
+ type: String,
36
+ default: null
37
+ },
38
+ errorIcon: {
39
+ type: String,
40
+ default: null
41
+ }
42
+ },
43
+ setup(props) {
44
+ const values = [
45
+ {
46
+ type: "selection",
47
+ title: "No selection yet",
48
+ text: "You need to select your scope to view any results or data. Please choose one of the options below to proceed."
49
+ },
50
+ {
51
+ type: "result",
52
+ title: "No results found",
53
+ text: "Your search criteria did not match any results. Please change your criteria or contact us for assistance."
54
+ },
55
+ {
56
+ type: "access",
57
+ title: "Unauthorised access",
58
+ text: "It seems that you do not have access to this page. Reach out to your manager or contact us for assistance."
59
+ },
60
+ {
61
+ type: "network",
62
+ title: "Network issue",
63
+ text: "It seems that we are experiencing some network issues. Please try again in a few minutes or contact us for assistance."
64
+ },
65
+ {
66
+ type: "not-found",
67
+ title: "Page not found",
68
+ text: "Oops it seems like this page doesn\u2019t exist anymore. Go back to OIP or contact us for assistance."
69
+ }
70
+ ];
71
+ const icons = [
72
+ { type: "selection", value: "CrosshairSimple" },
73
+ { type: "result", value: "MagnifyingGlass" },
74
+ { type: "access", value: "Prohibit" },
75
+ { type: "network", value: "Plugs" },
76
+ { type: "not-found", value: "LinkBreak" }
77
+ ];
78
+ const getIconName = computed(() => {
79
+ if (props.errorIcon === null) {
80
+ let icon = "";
81
+ for (let i = 0; i < icons.length; i++) {
82
+ if (icons[i].type === props.errorType) {
83
+ icon = icons[i].value;
84
+ }
85
+ }
86
+ return icon;
87
+ } else
88
+ return props.errorIcon;
89
+ });
90
+ const getErrorText = computed(() => {
91
+ if (props.errorText === null) {
92
+ let title = "";
93
+ for (let i = 0; i < values.length; i++) {
94
+ if (values[i].type === props.errorType) {
95
+ title = values[i].text;
96
+ }
97
+ }
98
+ return title;
99
+ } else
100
+ return props.errorText;
101
+ });
102
+ const getErrorName = computed(() => {
103
+ if (props.errorTitle === null) {
104
+ let title = "";
105
+ for (let i = 0; i < values.length; i++) {
106
+ if (values[i].type === props.errorType) {
107
+ title = values[i].title;
108
+ }
109
+ }
110
+ return title;
111
+ } else
112
+ return props.errorTitle;
113
+ });
114
+ return {
115
+ values,
116
+ icons,
117
+ getErrorName,
118
+ getErrorText,
119
+ getIconName
120
+ };
121
+ }
122
+ });
123
+ </script>
124
+
125
+ <style scoped>
126
+ .oip_error {
127
+ display: flex;
128
+ max-width: 409px;
129
+ flex-direction: column;
130
+ align-items: center;
131
+ gap: 24px;
132
+ }
133
+
134
+ .icon_circle {
135
+ display: flex;
136
+ border-radius: 50px;
137
+ background: var(--base-dividers, #ececf2);
138
+ flex-direction: column;
139
+ justify-content: center;
140
+ align-items: center;
141
+ padding: 10px;
142
+ }
143
+
144
+ .error_text {
145
+ display: flex;
146
+ flex-direction: column;
147
+ align-items: center;
148
+ gap: 8px;
149
+ align-self: stretch;
150
+ text-align: center;
151
+ }
152
+
153
+ .error_title {
154
+ font-size: 16px;
155
+ font-style: normal;
156
+ font-weight: 700;
157
+ line-height: normal;
158
+ text-align: center;
159
+ }
160
+
161
+ .error_descr {
162
+ font-size: 14px;
163
+ font-style: normal;
164
+ font-weight: 400;
165
+ line-height: 160%;
166
+ color: var(--cool-grey);
167
+ }
168
+ </style>
@@ -0,0 +1,56 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ errorType: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ required: true;
6
+ };
7
+ errorTitle: {
8
+ type: StringConstructor;
9
+ default: null;
10
+ };
11
+ errorText: {
12
+ type: StringConstructor;
13
+ default: null;
14
+ };
15
+ errorIcon: {
16
+ type: StringConstructor;
17
+ default: null;
18
+ };
19
+ }, {
20
+ values: {
21
+ type: string;
22
+ title: string;
23
+ text: string;
24
+ }[];
25
+ icons: {
26
+ type: string;
27
+ value: string;
28
+ }[];
29
+ getErrorName: import("vue").ComputedRef<string>;
30
+ getErrorText: import("vue").ComputedRef<string>;
31
+ getIconName: import("vue").ComputedRef<string>;
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ errorType: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ required: true;
37
+ };
38
+ errorTitle: {
39
+ type: StringConstructor;
40
+ default: null;
41
+ };
42
+ errorText: {
43
+ type: StringConstructor;
44
+ default: null;
45
+ };
46
+ errorIcon: {
47
+ type: StringConstructor;
48
+ default: null;
49
+ };
50
+ }>>, {
51
+ errorType: string;
52
+ errorTitle: string;
53
+ errorText: string;
54
+ errorIcon: string;
55
+ }, {}>;
56
+ export default _default;
@@ -81,6 +81,7 @@ export default defineComponent({
81
81
  transition: all ease 0.7s;
82
82
  cursor: pointer;
83
83
  z-index: 98;
84
+ width: calc(100% - 48px);
84
85
  }
85
86
 
86
87
  .filter_card {