@tekkare/auriga 0.1.9 → 0.1.11

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 (59) 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 +47 -12
  5. package/dist/runtime/components/argActions.vue.d.ts +27 -4
  6. package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
  7. package/dist/runtime/components/argChart.vue +109 -167
  8. package/dist/runtime/components/argChart.vue.d.ts +1 -1
  9. package/dist/runtime/components/argCheckbox.vue +35 -28
  10. package/dist/runtime/components/argCheckbox.vue.d.ts +9 -1
  11. package/dist/runtime/components/argCircleAmount.vue +37 -0
  12. package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
  13. package/dist/runtime/components/argDate.vue +77 -0
  14. package/dist/runtime/components/argDate.vue.d.ts +34 -0
  15. package/dist/runtime/components/argDropdownSelect.vue +5 -19
  16. package/dist/runtime/components/argEmoji.vue +34 -0
  17. package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
  18. package/dist/runtime/components/argErrors.vue +167 -0
  19. package/dist/runtime/components/argErrors.vue.d.ts +54 -0
  20. package/dist/runtime/components/argFileBtn.vue +10 -2
  21. package/dist/runtime/components/argFileBtn.vue.d.ts +9 -0
  22. package/dist/runtime/components/argFilterCard.vue +1 -1
  23. package/dist/runtime/components/argHeader.vue +15 -7
  24. package/dist/runtime/components/argHeader.vue.d.ts +9 -0
  25. package/dist/runtime/components/argHybridChart.vue +277 -0
  26. package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
  27. package/dist/runtime/components/argMainLayout.vue +1 -0
  28. package/dist/runtime/components/argMenuLink.vue +46 -17
  29. package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
  30. package/dist/runtime/components/argMultipleChoice.vue +1 -1
  31. package/dist/runtime/components/argMultipleSelect.vue +29 -17
  32. package/dist/runtime/components/argMultipleSelect.vue.d.ts +8 -0
  33. package/dist/runtime/components/argNumberInput.vue +223 -0
  34. package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
  35. package/dist/runtime/components/argRadioButtons.vue +2 -1
  36. package/dist/runtime/components/argScopeCriteria.vue +91 -0
  37. package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
  38. package/dist/runtime/components/argScopeHeader.vue +90 -0
  39. package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
  40. package/dist/runtime/components/argScopeLayout.vue +61 -0
  41. package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
  42. package/dist/runtime/components/argSidebar.vue +10 -7
  43. package/dist/runtime/components/argSidebar.vue.d.ts +9 -0
  44. package/dist/runtime/components/argSimpleChart.vue +123 -0
  45. package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
  46. package/dist/runtime/components/argSimpleInput.vue +94 -0
  47. package/dist/runtime/components/argSimpleInput.vue.d.ts +40 -0
  48. package/dist/runtime/components/argSimpleLabel.vue +1 -1
  49. package/dist/runtime/components/argSmallAreaChart.vue +138 -0
  50. package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
  51. package/dist/runtime/components/argStyle.vue +90 -65
  52. package/dist/runtime/components/argTags.vue +7 -5
  53. package/dist/runtime/components/argTipsBox.vue +153 -0
  54. package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
  55. package/dist/runtime/components/argTrendIndicator.vue +82 -0
  56. package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
  57. package/dist/runtime/components/argTutoModal.vue +185 -0
  58. package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
  59. package/package.json +2 -1
@@ -1,33 +1,36 @@
1
1
  <template>
2
- <div
3
- class="filter_box"
4
- @focus="selectOption = true"
5
- @focusout="selectOption = false"
6
- tabindex="0"
7
- :class="selectOption ? 'open' : ''"
8
- @click="selectFilter()"
9
- >
10
- <div>
11
- <arg-icon
12
- :name="iconFilter"
13
- :class="[
14
- 'flex',
15
- returnValue ? 'filter_icon_check' : 'filter_icon_select',
16
- disable ? 'disable' : 'filter_icon_select',
17
- ]"
18
- size="24"
19
- :color="iconColor"
20
- />
21
- </div>
22
- <p>{{ filterTitle }}</p>
23
- <arg-tooltip
24
- v-if="infoIcon"
25
- :tooltip-text="tooltipText"
26
- :dir="tooltipDir"
27
- class="filter_tooltip flex"
2
+ <div class="oip_select_display">
3
+ <p class="oip_filter_label">{{ checkbox_label }}</p>
4
+ <div
5
+ class="filter_box"
6
+ @focus="selectOption = true"
7
+ @focusout="selectOption = false"
8
+ tabindex="0"
9
+ :class="selectOption ? 'open' : ''"
10
+ @click="selectFilter()"
28
11
  >
29
- <arg-icon name="Info" color="var(--cool-grey)" size="16" />
30
- </arg-tooltip>
12
+ <div>
13
+ <arg-icon
14
+ :name="iconFilter"
15
+ :class="[
16
+ 'flex',
17
+ returnValue ? 'filter_icon_check' : 'filter_icon_select',
18
+ disable ? 'disable' : 'filter_icon_select',
19
+ ]"
20
+ size="24"
21
+ :color="iconColor"
22
+ />
23
+ </div>
24
+ <p>{{ filterTitle }}</p>
25
+ <arg-tooltip
26
+ v-if="infoIcon"
27
+ :tooltip-text="tooltipText"
28
+ :dir="tooltipDir"
29
+ class="filter_tooltip flex"
30
+ >
31
+ <arg-icon name="QuestionFill" color="var(--cool-grey)" size="16" />
32
+ </arg-tooltip>
33
+ </div>
31
34
  </div>
32
35
  </template>
33
36
 
@@ -67,6 +70,10 @@ export default defineComponent({
67
70
  tooltipDir: {
68
71
  type: String,
69
72
  default: "top"
73
+ },
74
+ checkbox_label: {
75
+ type: String,
76
+ required: true
70
77
  }
71
78
  },
72
79
  emits: ["handleClick", "update:Check"],
@@ -23,8 +23,12 @@ declare const _default: import("vue").DefineComponent<{
23
23
  type: StringConstructor;
24
24
  default: string;
25
25
  };
26
+ checkbox_label: {
27
+ type: StringConstructor;
28
+ required: true;
29
+ };
26
30
  }, {
27
- iconFilter: import("vue").ComputedRef<"MinusSquareDisable" | "CheckSquareFill" | "Square">;
31
+ iconFilter: import("vue").ComputedRef<"CheckSquareFill" | "MinusSquareDisable" | "Square">;
28
32
  iconColor: import("vue").ComputedRef<"var(--wild-blue-yonder)" | "var(--independence)" | "var(--accent)">;
29
33
  selectFilter: () => void;
30
34
  selectOption: import("vue").Ref<boolean>;
@@ -54,6 +58,10 @@ declare const _default: import("vue").DefineComponent<{
54
58
  type: StringConstructor;
55
59
  default: string;
56
60
  };
61
+ checkbox_label: {
62
+ type: StringConstructor;
63
+ required: true;
64
+ };
57
65
  }>> & {
58
66
  onHandleClick?: ((...args: any[]) => any) | undefined;
59
67
  "onUpdate:Check"?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <div class="filters_amount">
3
+ {{ amount }}
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import {
9
+ defineComponent
10
+ } from "vue";
11
+ export default defineComponent({
12
+ name: "argCircleAmount",
13
+ props: {
14
+ amount: {
15
+ type: [Number, String],
16
+ required: true
17
+ }
18
+ }
19
+ });
20
+ </script>
21
+ <style scoped>
22
+ .filters_amount {
23
+ display: flex;
24
+ padding: 2px 8px;
25
+
26
+ flex-direction: column;
27
+ justify-content: center;
28
+ align-items: center;
29
+ gap: 8px;
30
+ border-radius: 16px;
31
+ border: 1px solid var(--base-dividers, #ececf2);
32
+ font-size: 12px;
33
+ font-style: normal;
34
+ font-weight: 700;
35
+ line-height: normal;
36
+ }
37
+ </style>
@@ -0,0 +1,12 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ amount: {
3
+ type: (StringConstructor | NumberConstructor)[];
4
+ required: true;
5
+ };
6
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ amount: {
8
+ type: (StringConstructor | NumberConstructor)[];
9
+ required: true;
10
+ };
11
+ }>>, {}, {}>;
12
+ export default _default;
@@ -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
+ short: {
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.short ? "Jan." : "Janvier" : props.short ? "Jan" : "January";
29
+ }
30
+ if (month === 1) {
31
+ return props.lang === "fr" ? props.short ? "F\xE9v." : "F\xE9vrier" : props.short ? "Feb." : "February";
32
+ }
33
+ if (month === 2) {
34
+ return props.lang === "fr" ? props.short ? "Mar." : "Mars" : props.short ? "Mar." : "March";
35
+ }
36
+ if (month === 3) {
37
+ return props.lang === "fr" ? props.short ? "Avr." : "Avril" : props.short ? "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.short ? "Jun." : "June";
44
+ }
45
+ if (month === 6) {
46
+ return props.lang === "fr" ? props.short ? "Juil." : "Juillet" : props.short ? "Jul." : "July";
47
+ }
48
+ if (month === 7) {
49
+ return props.lang === "fr" ? props.short ? "Ao\xFB." : "Ao\xFBt" : props.short ? "Aug." : "August";
50
+ }
51
+ if (month === 8) {
52
+ return props.lang === "fr" ? props.short ? "Sep." : "Septembre" : props.short ? "Sep." : "September";
53
+ }
54
+ if (month === 9) {
55
+ return props.lang === "fr" ? props.short ? "Oct." : "Octobre" : props.short ? "Oct." : "October";
56
+ }
57
+ if (month === 10) {
58
+ return props.lang === "fr" ? props.short ? "Nov." : "Novembre" : props.short ? "Nov." : "November";
59
+ }
60
+ if (month === 11) {
61
+ return props.lang === "fr" ? props.short ? "D\xE9c." : "D\xE9cembre" : props.short ? "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
+ short: {
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
+ short: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }>>, {
31
+ lang: string;
32
+ short: boolean;
33
+ }, {}>;
34
+ export default _default;
@@ -10,11 +10,13 @@
10
10
  >
11
11
  <arg-tooltip
12
12
  class="full_width"
13
- :disable="!isEllipsisActive"
14
- :tooltipText="selected_item ? selected_item : ''"
13
+ :disable="
14
+ selected_item !== null ? true : !isEllipsisActive ? true : false
15
+ "
16
+ :tooltipText="selected_item !== null ? selected_item : ''"
15
17
  >
16
18
  <span
17
- :class="selected_item ? '' : 'oip_empty_select'"
19
+ :class="selected_item !== null ? '' : 'oip_empty_select'"
18
20
  :id="`label_${selected_item}`"
19
21
  >{{ selected_item === null ? empty_msg : selected_item }}</span
20
22
  >
@@ -152,14 +154,6 @@ export default defineComponent({
152
154
  if (props.watch_default_change) {
153
155
  selected_item.value = new_element_table[props.default_select];
154
156
  selected_number.value = props.default_select;
155
- emit(
156
- "changeElement",
157
- props.return_value ? selected_item.value : selected_number.value
158
- );
159
- emit(
160
- "update:Selection",
161
- props.return_value ? selected_item.value : selected_number.value
162
- );
163
157
  }
164
158
  }
165
159
  );
@@ -169,14 +163,6 @@ export default defineComponent({
169
163
  if (!props.values_disabled.includes(new_default_select)) {
170
164
  selected_item.value = props.element_table[new_default_select];
171
165
  selected_number.value = new_default_select;
172
- emit(
173
- "changeElement",
174
- props.return_value ? selected_item.value : selected_number.value
175
- );
176
- emit(
177
- "update:Selection",
178
- props.return_value ? selected_item.value : selected_number.value
179
- );
180
166
  }
181
167
  }
182
168
  );
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <p :style="`font-size: ${emojiSize}px`" v-html="getEmojiCode"></p>
3
+ </template>
4
+
5
+ <script>
6
+ import {
7
+ computed,
8
+ defineComponent
9
+ } from "vue";
10
+ export default defineComponent({
11
+ name: "argEmoji",
12
+ props: {
13
+ emojiName: {
14
+ type: String,
15
+ required: true
16
+ },
17
+ emojiSize: {
18
+ type: [String, Number],
19
+ default: "20"
20
+ }
21
+ },
22
+ setup(props) {
23
+ const allEmojis = {
24
+ Lightbulb: "&#128161;",
25
+ Pin: "&#128205;",
26
+ Television: "&#128250;"
27
+ };
28
+ const getEmojiCode = computed(() => {
29
+ return allEmojis[props.emojiName];
30
+ });
31
+ return { allEmojis, getEmojiCode };
32
+ }
33
+ });
34
+ </script>
@@ -0,0 +1,29 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ emojiName: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ emojiSize: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: string;
9
+ };
10
+ }, {
11
+ allEmojis: {
12
+ Lightbulb: string;
13
+ Pin: string;
14
+ Television: string;
15
+ };
16
+ getEmojiCode: import("vue").ComputedRef<any>;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ emojiName: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ emojiSize: {
23
+ type: (StringConstructor | NumberConstructor)[];
24
+ default: string;
25
+ };
26
+ }>>, {
27
+ emojiSize: string | number;
28
+ }, {}>;
29
+ export default _default;
@@ -0,0 +1,167 @@
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
+ },
29
+ errorTitle: {
30
+ type: String,
31
+ default: null
32
+ },
33
+ errorText: {
34
+ type: String,
35
+ default: null
36
+ },
37
+ errorIcon: {
38
+ type: String,
39
+ default: null
40
+ }
41
+ },
42
+ setup(props) {
43
+ const values = [
44
+ {
45
+ type: "selection",
46
+ title: "No selection yet",
47
+ text: "You need to select your scope to view any results or data. Please choose one of the options below to proceed."
48
+ },
49
+ {
50
+ type: "result",
51
+ title: "No results found",
52
+ text: "Your search criteria did not match any results. Please change your criteria or contact us for assistance."
53
+ },
54
+ {
55
+ type: "access",
56
+ title: "Unauthorised access",
57
+ text: "It seems that you do not have access to this page. Reach out to your manager or contact us for assistance."
58
+ },
59
+ {
60
+ type: "network",
61
+ title: "Network issue",
62
+ text: "It seems that we are experiencing some network issues. Please try again in a few minutes or contact us for assistance."
63
+ },
64
+ {
65
+ type: "not-found",
66
+ title: "Page not found",
67
+ text: "Oops it seems like this page doesn\u2019t exist anymore. Go back to OIP or contact us for assistance."
68
+ }
69
+ ];
70
+ const icons = [
71
+ { type: "selection", value: "CrosshairSimple" },
72
+ { type: "result", value: "MagnifyingGlass" },
73
+ { type: "access", value: "Prohibit" },
74
+ { type: "network", value: "Plugs" },
75
+ { type: "not-found", value: "LinkBreak" }
76
+ ];
77
+ const getIconName = computed(() => {
78
+ if (props.errorIcon === null) {
79
+ let icon = "";
80
+ for (let i = 0; i < icons.length; i++) {
81
+ if (icons[i].type === props.errorType) {
82
+ icon = icons[i].value;
83
+ }
84
+ }
85
+ return icon;
86
+ } else
87
+ return props.errorIcon;
88
+ });
89
+ const getErrorText = computed(() => {
90
+ if (props.errorText === null) {
91
+ let title = "";
92
+ for (let i = 0; i < values.length; i++) {
93
+ if (values[i].type === props.errorType) {
94
+ title = values[i].text;
95
+ }
96
+ }
97
+ return title;
98
+ } else
99
+ return props.errorText;
100
+ });
101
+ const getErrorName = computed(() => {
102
+ if (props.errorTitle === null) {
103
+ let title = "";
104
+ for (let i = 0; i < values.length; i++) {
105
+ if (values[i].type === props.errorType) {
106
+ title = values[i].title;
107
+ }
108
+ }
109
+ return title;
110
+ } else
111
+ return props.errorTitle;
112
+ });
113
+ return {
114
+ values,
115
+ icons,
116
+ getErrorName,
117
+ getErrorText,
118
+ getIconName
119
+ };
120
+ }
121
+ });
122
+ </script>
123
+
124
+ <style scoped>
125
+ .oip_error {
126
+ display: flex;
127
+ max-width: 409px;
128
+ flex-direction: column;
129
+ align-items: center;
130
+ gap: 24px;
131
+ }
132
+
133
+ .icon_circle {
134
+ display: flex;
135
+ border-radius: 50px;
136
+ background: var(--base-dividers, #ececf2);
137
+ flex-direction: column;
138
+ justify-content: center;
139
+ align-items: center;
140
+ padding: 10px;
141
+ }
142
+
143
+ .error_text {
144
+ display: flex;
145
+ flex-direction: column;
146
+ align-items: center;
147
+ gap: 8px;
148
+ align-self: stretch;
149
+ text-align: center;
150
+ }
151
+
152
+ .error_title {
153
+ font-size: 16px;
154
+ font-style: normal;
155
+ font-weight: 700;
156
+ line-height: normal;
157
+ text-align: center;
158
+ }
159
+
160
+ .error_descr {
161
+ font-size: 14px;
162
+ font-style: normal;
163
+ font-weight: 400;
164
+ line-height: 160%;
165
+ color: var(--cool-grey);
166
+ }
167
+ </style>
@@ -0,0 +1,54 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ errorType: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ errorTitle: {
7
+ type: StringConstructor;
8
+ default: null;
9
+ };
10
+ errorText: {
11
+ type: StringConstructor;
12
+ default: null;
13
+ };
14
+ errorIcon: {
15
+ type: StringConstructor;
16
+ default: null;
17
+ };
18
+ }, {
19
+ values: {
20
+ type: string;
21
+ title: string;
22
+ text: string;
23
+ }[];
24
+ icons: {
25
+ type: string;
26
+ value: string;
27
+ }[];
28
+ getErrorName: import("vue").ComputedRef<string>;
29
+ getErrorText: import("vue").ComputedRef<string>;
30
+ getIconName: import("vue").ComputedRef<string>;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ errorType: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ errorTitle: {
37
+ type: StringConstructor;
38
+ default: null;
39
+ };
40
+ errorText: {
41
+ type: StringConstructor;
42
+ default: null;
43
+ };
44
+ errorIcon: {
45
+ type: StringConstructor;
46
+ default: null;
47
+ };
48
+ }>>, {
49
+ errorType: string;
50
+ errorTitle: string;
51
+ errorText: string;
52
+ errorIcon: string;
53
+ }, {}>;
54
+ export default _default;
@@ -3,7 +3,7 @@
3
3
  <client-only><arg-style /></client-only>
4
4
  <arg-icon :name="fileIcon.icon" :color="fileIcon.color" size="24" />
5
5
  <div class="prmt_file_name_group">
6
- <arg-tooltip :tooltipText="fileName">
6
+ <arg-tooltip :disable="tooltipDisable" :tooltipText="fileName">
7
7
  <h1 class="prmt_file_name">
8
8
  {{ fileName }}
9
9
  </h1>
@@ -21,9 +21,11 @@ import {
21
21
  defineComponent
22
22
  } from "vue";
23
23
  import argIcon from "./argIcon.vue";
24
+ import argTooltip from "./argTooltip.vue";
25
+ import argStyle from "./argStyle.vue";
24
26
  export default defineComponent({
25
27
  name: "argFileBtn",
26
- components: { argIcon },
28
+ components: { argIcon, argTooltip, argStyle },
27
29
  props: {
28
30
  fileType: {
29
31
  type: String,
@@ -46,6 +48,10 @@ export default defineComponent({
46
48
  type: Boolean,
47
49
  default: false,
48
50
  required: false
51
+ },
52
+ tooltipDisable: {
53
+ type: Boolean,
54
+ default: false
49
55
  }
50
56
  },
51
57
  emits: ["onPreview", "onDownload"],
@@ -66,6 +72,8 @@ export default defineComponent({
66
72
  iconName = { icon: "FileJpg", color: "#3E3F5E" };
67
73
  } else if (ft === "MP4" || ft === "AVI" || ft === "MOV") {
68
74
  iconName = { icon: "FileVideo", color: "#3E3F5E" };
75
+ } else if (ft === "PPT" || ft == "PPTX") {
76
+ iconName = { icon: "FilePpt", color: "#3E3F5E" };
69
77
  }
70
78
  }
71
79
  return iconName;
@@ -21,6 +21,10 @@ declare const _default: import("vue").DefineComponent<{
21
21
  default: boolean;
22
22
  required: false;
23
23
  };
24
+ tooltipDisable: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
24
28
  }, {
25
29
  fileIcon: import("vue").ComputedRef<{
26
30
  icon: string;
@@ -51,11 +55,16 @@ declare const _default: import("vue").DefineComponent<{
51
55
  default: boolean;
52
56
  required: false;
53
57
  };
58
+ tooltipDisable: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
54
62
  }>> & {
55
63
  onOnDownload?: ((...args: any[]) => any) | undefined;
56
64
  onOnPreview?: ((...args: any[]) => any) | undefined;
57
65
  }, {
58
66
  download: boolean;
59
67
  preview: boolean;
68
+ tooltipDisable: boolean;
60
69
  }, {}>;
61
70
  export default _default;
@@ -71,7 +71,6 @@ export default defineComponent({
71
71
  <style scoped>
72
72
  .oip_filter_card {
73
73
  display: flex;
74
- max-width: 1008px;
75
74
  padding: 16px 24px;
76
75
  flex-direction: column;
77
76
  align-items: flex-start;
@@ -82,6 +81,7 @@ export default defineComponent({
82
81
  transition: all ease 0.7s;
83
82
  cursor: pointer;
84
83
  z-index: 98;
84
+ width: calc(100% - 32px);
85
85
  }
86
86
 
87
87
  .filter_card {