@tekkare/auriga 0.1.8 → 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 (61) 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 +150 -0
  5. package/dist/runtime/components/argActions.vue.d.ts +43 -0
  6. package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
  7. package/dist/runtime/components/argChart.vue +38 -4
  8. package/dist/runtime/components/argChartTableCard.vue +30 -0
  9. package/dist/runtime/components/argChartTableCard.vue.d.ts +2 -0
  10. package/dist/runtime/components/argCheckbox.vue +46 -31
  11. package/dist/runtime/components/argCheckbox.vue.d.ts +20 -3
  12. package/dist/runtime/components/argCircleAmount.vue +37 -0
  13. package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
  14. package/dist/runtime/components/argDataLoader.vue +13 -3
  15. package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
  16. package/dist/runtime/components/argDropdownSelect.vue +5 -19
  17. package/dist/runtime/components/argEmoji.vue +34 -0
  18. package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
  19. package/dist/runtime/components/argFileBtn.vue +10 -2
  20. package/dist/runtime/components/argFileBtn.vue.d.ts +11 -2
  21. package/dist/runtime/components/argFilterCard.vue +37 -9
  22. package/dist/runtime/components/argFilterCard.vue.d.ts +30 -1
  23. package/dist/runtime/components/argFilterTabs.vue +109 -0
  24. package/dist/runtime/components/argFilterTabs.vue.d.ts +64 -0
  25. package/dist/runtime/components/argFooter.vue +21 -20
  26. package/dist/runtime/components/argHeader.vue +22 -8
  27. package/dist/runtime/components/argHeader.vue.d.ts +18 -0
  28. package/dist/runtime/components/argInfoBar.vue +175 -0
  29. package/dist/runtime/components/argInfoBar.vue.d.ts +35 -0
  30. package/dist/runtime/components/argInfoSection.vue +265 -0
  31. package/dist/runtime/components/argInfoSection.vue.d.ts +55 -0
  32. package/dist/runtime/components/argMainLayout.vue +46 -21
  33. package/dist/runtime/components/argMainLayout.vue.d.ts +13 -1
  34. package/dist/runtime/components/argMenuItem.vue +44 -27
  35. package/dist/runtime/components/argMenuItem.vue.d.ts +11 -1
  36. package/dist/runtime/components/argMenuLink.vue +44 -20
  37. package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
  38. package/dist/runtime/components/argMultipleChoice.vue +26 -4
  39. package/dist/runtime/components/argMultipleSelect.vue +797 -0
  40. package/dist/runtime/components/argMultipleSelect.vue.d.ts +151 -0
  41. package/dist/runtime/components/argNavBar.vue +26 -12
  42. package/dist/runtime/components/argNavBar.vue.d.ts +11 -2
  43. package/dist/runtime/components/argRadioButtons.vue +135 -0
  44. package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
  45. package/dist/runtime/components/argScopeCriteria.vue +91 -0
  46. package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
  47. package/dist/runtime/components/argScopeHeader.vue +90 -0
  48. package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
  49. package/dist/runtime/components/argScopeLayout.vue +61 -0
  50. package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
  51. package/dist/runtime/components/argSidebar.vue +97 -14
  52. package/dist/runtime/components/argSidebar.vue.d.ts +17 -2
  53. package/dist/runtime/components/argSimpleLabel.vue +1 -1
  54. package/dist/runtime/components/argStyle.vue +100 -67
  55. package/dist/runtime/components/argSubMenu.vue +79 -37
  56. package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
  57. package/dist/runtime/components/argTable.vue +14 -0
  58. package/dist/runtime/components/argTags.vue +1 -1
  59. package/dist/runtime/components/argTipsBox.vue +153 -0
  60. package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
  61. package/package.json +2 -1
@@ -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;
@@ -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;
@@ -28,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
28
32
  }>;
29
33
  onPreview: () => void;
30
34
  onDownload: () => void;
31
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onPreview" | "onDownload")[], "onPreview" | "onDownload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onDownload" | "onPreview")[], "onDownload" | "onPreview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
36
  fileType: {
33
37
  type: StringConstructor;
34
38
  required: false;
@@ -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
- onOnPreview?: ((...args: any[]) => any) | undefined;
56
63
  onOnDownload?: ((...args: any[]) => any) | undefined;
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;
@@ -8,7 +8,14 @@
8
8
  <div class="oip_row v-center gap-8">
9
9
  <p class="filters_title">Filters</p>
10
10
  <div class="filters_amount">{{ filters_amount }}</div>
11
- <p class="filters_clear" @click.stop="clear()">Clear all</p>
11
+ <p
12
+ v-if="saveScope && filtersOpen"
13
+ class="filters_save"
14
+ @click.stop="save()"
15
+ >
16
+ {{ saveScopeMsg }}
17
+ </p>
18
+ <p class="filters_clear" @click.stop="clear()">{{ clearMsg }}</p>
12
19
  </div>
13
20
  <div class="oip_row v-center gap-8">
14
21
  <arg-icon
@@ -22,8 +29,9 @@
22
29
  </div>
23
30
  </div>
24
31
  <div class="filters_section" @click.stop>
25
- <div class="filters_row oip_row v-center gap-16 wrap">
26
- <slot />
32
+ <slot name="Search" />
33
+ <div class="filters_row oip_row v-center gap-16 full-width wrap">
34
+ <slot name="Filters" />
27
35
  </div>
28
36
  </div>
29
37
  </div>
@@ -37,17 +45,24 @@ import {
37
45
  export default defineComponent({
38
46
  name: "argFilterCard",
39
47
  props: {
40
- filters_amount: { type: Number, default: 0 }
48
+ filters_amount: { type: Number, default: 0 },
49
+ saveScope: { type: Boolean, default: true },
50
+ clearMsg: { type: String, default: "Clear all" },
51
+ saveScopeMsg: { type: String, default: "Save scope" }
41
52
  },
42
- emits: ["clearFilters"],
53
+ emits: ["clearFilters", "saveScope"],
43
54
  setup(props, { emit }) {
44
55
  const filtersOpen = ref(false);
45
56
  function clear() {
46
57
  emit("clearFilters");
47
58
  }
59
+ function save() {
60
+ emit("saveScope");
61
+ }
48
62
  return {
49
63
  filtersOpen,
50
- clear
64
+ clear,
65
+ save
51
66
  };
52
67
  }
53
68
  });
@@ -56,7 +71,6 @@ export default defineComponent({
56
71
  <style scoped>
57
72
  .oip_filter_card {
58
73
  display: flex;
59
- max-width: 1008px;
60
74
  padding: 16px 24px;
61
75
  flex-direction: column;
62
76
  align-items: flex-start;
@@ -66,6 +80,7 @@ export default defineComponent({
66
80
  backdrop-filter: blur(12px);
67
81
  transition: all ease 0.7s;
68
82
  cursor: pointer;
83
+ z-index: 98;
69
84
  }
70
85
 
71
86
  .filter_card {
@@ -111,20 +126,33 @@ export default defineComponent({
111
126
  border: 1px solid var(--base-dividers, #ececf2);
112
127
  }
113
128
 
114
- .filters_clear {
129
+ .filters_clear,
130
+ .filters_save {
115
131
  font-size: 14px;
116
132
  font-style: normal;
117
133
  font-weight: 500;
118
134
  line-height: normal;
119
135
  text-decoration-line: underline;
120
- color: var(--system-alert, #ef4444);
121
136
  cursor: pointer;
122
137
  }
123
138
 
139
+ .filters_clear {
140
+ color: var(--system-alert, #ef4444);
141
+ }
142
+ .filters_save {
143
+ color: var(--primary-primary, #2176ff);
144
+ }
145
+
124
146
  .filters_collapse {
125
147
  font-size: 14px;
126
148
  font-style: normal;
127
149
  font-weight: 400;
128
150
  line-height: 160%;
129
151
  }
152
+ .filters_section {
153
+ display: flex;
154
+ flex-direction: column;
155
+ align-items: flex-start;
156
+ gap: 16px;
157
+ }
130
158
  </style>
@@ -3,17 +3,46 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: NumberConstructor;
4
4
  default: number;
5
5
  };
6
+ saveScope: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ clearMsg: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ saveScopeMsg: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
6
18
  }, {
7
19
  filtersOpen: import("vue").Ref<boolean>;
8
20
  clear: () => void;
9
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clearFilters"[], "clearFilters", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ save: () => void;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clearFilters" | "saveScope")[], "clearFilters" | "saveScope", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
23
  filters_amount: {
11
24
  type: NumberConstructor;
12
25
  default: number;
13
26
  };
27
+ saveScope: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ clearMsg: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ saveScopeMsg: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
14
39
  }>> & {
15
40
  onClearFilters?: ((...args: any[]) => any) | undefined;
41
+ onSaveScope?: ((...args: any[]) => any) | undefined;
16
42
  }, {
43
+ saveScope: boolean;
17
44
  filters_amount: number;
45
+ clearMsg: string;
46
+ saveScopeMsg: string;
18
47
  }, {}>;
19
48
  export default _default;
@@ -0,0 +1,109 @@
1
+ <template>
2
+ <div class="oip_switch_tabs">
3
+ <div
4
+ v-for="(tab, index) in tabs"
5
+ :key="index"
6
+ :class="['oip_switcher_tab', activeTab === index ? 'active_tab' : '']"
7
+ @click="changeTab(index)"
8
+ >
9
+ {{ tab.name }}
10
+ </div>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ import {
16
+ ref,
17
+ watch,
18
+ defineComponent,
19
+ onBeforeMount
20
+ } from "vue";
21
+ export default defineComponent({
22
+ name: "argFilterTabs",
23
+ props: {
24
+ tabs: {
25
+ type: Array,
26
+ required: true
27
+ },
28
+ index_menu: {
29
+ type: [Number, String],
30
+ default: 0
31
+ },
32
+ returnValue: {
33
+ type: Boolean,
34
+ default: true
35
+ }
36
+ },
37
+ emits: ["changeValue", "update:Tab"],
38
+ setup(props, { emit }) {
39
+ const activeTab = ref(0);
40
+ watch(
41
+ () => props.index_menu,
42
+ (new_index_menu) => {
43
+ setDefaultTab();
44
+ changeTab(activeTab.value);
45
+ }
46
+ );
47
+ onBeforeMount(() => {
48
+ setDefaultTab();
49
+ changeTab(activeTab.value);
50
+ });
51
+ function setDefaultTab() {
52
+ if (typeof props.index_menu === "string") {
53
+ activeTab.value = props.tabs.findIndex(
54
+ (a) => a.value === props.index_menu
55
+ );
56
+ } else if (typeof activeTab.value === "number") {
57
+ activeTab.value = props.index_menu;
58
+ }
59
+ }
60
+ function changeTab(index) {
61
+ activeTab.value = index;
62
+ let returnedValue;
63
+ if (props.returnValue) {
64
+ returnedValue = props.tabs[index].value;
65
+ } else
66
+ returnedValue = index;
67
+ emit("update:Tab", returnedValue);
68
+ emit("changeValue", returnedValue);
69
+ }
70
+ return {
71
+ activeTab,
72
+ setDefaultTab,
73
+ changeTab
74
+ };
75
+ }
76
+ });
77
+ </script>
78
+
79
+ <style scoped>
80
+ .oip_switch_tabs {
81
+ display: flex;
82
+ padding: 4px;
83
+ align-items: center;
84
+ border-radius: 12px;
85
+ background: var(--background);
86
+ width: fit-content;
87
+ }
88
+
89
+ .oip_switcher_tab {
90
+ display: flex;
91
+ padding: 8px 24px;
92
+ justify-content: center;
93
+ align-items: center;
94
+ gap: 6px;
95
+ border-radius: 8px;
96
+ cursor: pointer;
97
+ font-size: 14px;
98
+ font-style: normal;
99
+ font-weight: 700;
100
+ line-height: normal;
101
+ color: var(--cool-grey);
102
+ }
103
+ .active_tab {
104
+ background: #fdfdff;
105
+ /* Small Elevation */
106
+ box-shadow: 0px 0px 8px 0px rgba(62, 63, 94, 0.12);
107
+ color: var(--text-theme-light-med-em, #4f4b5c) !important;
108
+ }
109
+ </style>
@@ -0,0 +1,64 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ tabs: {
3
+ type: {
4
+ (arrayLength: number): Object[];
5
+ (...items: Object[]): Object[];
6
+ new (arrayLength: number): Object[];
7
+ new (...items: Object[]): Object[];
8
+ isArray(arg: any): arg is any[];
9
+ readonly prototype: any[];
10
+ from<T>(arrayLike: ArrayLike<T>): T[];
11
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
12
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
13
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
14
+ of<T_4>(...items: T_4[]): T_4[];
15
+ readonly [Symbol.species]: ArrayConstructor;
16
+ };
17
+ required: true;
18
+ };
19
+ index_menu: {
20
+ type: (StringConstructor | NumberConstructor)[];
21
+ default: number;
22
+ };
23
+ returnValue: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }, {
28
+ activeTab: import("vue").Ref<number>;
29
+ setDefaultTab: () => void;
30
+ changeTab: (index: number) => void;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeValue" | "update:Tab")[], "changeValue" | "update:Tab", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ tabs: {
33
+ type: {
34
+ (arrayLength: number): Object[];
35
+ (...items: Object[]): Object[];
36
+ new (arrayLength: number): Object[];
37
+ new (...items: Object[]): Object[];
38
+ isArray(arg: any): arg is any[];
39
+ readonly prototype: any[];
40
+ from<T>(arrayLike: ArrayLike<T>): T[];
41
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
42
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
43
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
44
+ of<T_4>(...items: T_4[]): T_4[];
45
+ readonly [Symbol.species]: ArrayConstructor;
46
+ };
47
+ required: true;
48
+ };
49
+ index_menu: {
50
+ type: (StringConstructor | NumberConstructor)[];
51
+ default: number;
52
+ };
53
+ returnValue: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ }>> & {
58
+ onChangeValue?: ((...args: any[]) => any) | undefined;
59
+ "onUpdate:Tab"?: ((...args: any[]) => any) | undefined;
60
+ }, {
61
+ returnValue: boolean;
62
+ index_menu: string | number;
63
+ }, {}>;
64
+ export default _default;
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="oip_footer">
3
- <div class="oip_footer_text">
4
- <h2>Powered by</h2>
5
- <img src="https://rcd-media.com/tekkare/logos/tekkare_logo.svg" />
6
- </div>
3
+ <div class="oip_footer_text">
4
+ <h2>Powered by</h2>
5
+ <img src="https://rcd-media.com/tekkare/logos/tekkare_logo.svg" />
6
+ </div>
7
7
  </div>
8
8
  </template>
9
9
  <script>
@@ -19,23 +19,24 @@ export default defineComponent({
19
19
  </script>
20
20
  <style>
21
21
  .oip_footer {
22
- background: var(--pure-white);
23
- padding: 24px 96px;
24
- margin-top: 24px;
25
- box-shadow: 0px 4px 8px rgba(37, 99, 235, 0.04), 0px 0px 2px rgba(37, 99, 235, 0.06), 0px 0px 1px rgba(37, 99, 235, 0.04);
22
+ background: var(--background);
23
+ padding: 24px 96px;
24
+ margin-top: 24px;
25
+ box-shadow: 0px 4px 8px rgba(37, 99, 235, 0.04),
26
+ 0px 0px 2px rgba(37, 99, 235, 0.06), 0px 0px 1px rgba(37, 99, 235, 0.04);
26
27
  }
27
28
  .oip_footer_text {
28
- display: flex;
29
- flex-direction: row;
30
- justify-content: flex-end;
31
- gap: 24px;
32
- align-items: flex-end;
29
+ display: flex;
30
+ flex-direction: row;
31
+ justify-content: flex-end;
32
+ gap: 24px;
33
+ align-items: flex-end;
33
34
  }
34
- .oip_footer_text h2{
35
- font-style: normal;
36
- font-size: 14px;
37
- line-height: 16px;
38
- color: var(--independence);
39
- font-weight: normal;
35
+ .oip_footer_text h2 {
36
+ font-style: normal;
37
+ font-size: 14px;
38
+ line-height: 16px;
39
+ color: var(--independence);
40
+ font-weight: normal;
40
41
  }
41
- </style>
42
+ </style>
@@ -1,12 +1,18 @@
1
1
  <template>
2
- <div class="arg_header" id="arg_header">
2
+ <div
3
+ class="arg_header"
4
+ :class="sidebarOpen ? 'arg_header_with_sidebar' : 'arg_header_no_sidebar'"
5
+ id="arg_header"
6
+ >
3
7
  <div class="arg_header_title_group">
4
- <nuxt-link :to="backTo" v-if="backTo" class="arg_header_back_button">
5
- <arg-icon name="CaretLeft" size="20px" />
6
- </nuxt-link>
7
- <button @click="goBack()" v-else class="arg_header_back_button">
8
- <arg-icon name="CaretLeft" size="20px" />
9
- </button>
8
+ <div v-if="haveReturn">
9
+ <nuxt-link :to="backTo" v-if="backTo" class="arg_header_back_button">
10
+ <arg-icon name="CaretLeft" size="20px" />
11
+ </nuxt-link>
12
+ <button @click="goBack()" v-else class="arg_header_back_button">
13
+ <arg-icon name="CaretLeft" size="20px" />
14
+ </button>
15
+ </div>
10
16
  <h1 class="arg_header_title">
11
17
  {{ title }}
12
18
  </h1>
@@ -34,8 +40,10 @@ export default defineComponent({
34
40
  props: {
35
41
  title: { type: String, required: true },
36
42
  backTo: { type: String, required: false },
43
+ haveReturn: { type: Boolean, default: false },
37
44
  tabs: { type: Array, required: false },
38
- index_menu: { type: [String, Number], default: 1 }
45
+ index_menu: { type: [String, Number], default: 1 },
46
+ sidebarOpen: { type: Boolean, default: false }
39
47
  },
40
48
  emits: ["updateMenu", "update:Menu"],
41
49
  setup(props, { emit }) {
@@ -71,6 +79,12 @@ export default defineComponent({
71
79
  width: 100%;
72
80
  box-sizing: border-box;
73
81
  }
82
+ .arg_header_with_sidebar {
83
+ left: 200px;
84
+ }
85
+ .arg_header_no_sidebar {
86
+ left: 52px;
87
+ }
74
88
  .arg_header_title_group {
75
89
  display: flex;
76
90
  align-items: center;
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  required: false;
9
9
  };
10
+ haveReturn: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  tabs: {
11
15
  type: ArrayConstructor;
12
16
  required: false;
@@ -15,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
15
19
  type: (StringConstructor | NumberConstructor)[];
16
20
  default: number;
17
21
  };
22
+ sidebarOpen: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
18
26
  }, {
19
27
  goBack: () => void;
20
28
  updateMenu: (value: number | string) => void;
@@ -27,6 +35,10 @@ declare const _default: import("vue").DefineComponent<{
27
35
  type: StringConstructor;
28
36
  required: false;
29
37
  };
38
+ haveReturn: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
30
42
  tabs: {
31
43
  type: ArrayConstructor;
32
44
  required: false;
@@ -35,10 +47,16 @@ declare const _default: import("vue").DefineComponent<{
35
47
  type: (StringConstructor | NumberConstructor)[];
36
48
  default: number;
37
49
  };
50
+ sidebarOpen: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
38
54
  }>> & {
39
55
  onUpdateMenu?: ((...args: any[]) => any) | undefined;
40
56
  "onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
41
57
  }, {
42
58
  index_menu: string | number;
59
+ haveReturn: boolean;
60
+ sidebarOpen: boolean;
43
61
  }, {}>;
44
62
  export default _default;