@tekkare/auriga 0.1.4 → 0.1.6

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 (45) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/argAdvancedSearchBar.vue +2 -1
  3. package/dist/runtime/components/argChart.vue +691 -0
  4. package/dist/runtime/components/argChart.vue.d.ts +119 -0
  5. package/dist/runtime/components/argCheckbox.vue +153 -0
  6. package/dist/runtime/components/argCheckbox.vue.d.ts +58 -0
  7. package/dist/runtime/components/argComplexSelect.vue +141 -40
  8. package/dist/runtime/components/argComplexSelect.vue.d.ts +55 -0
  9. package/dist/runtime/components/argDropdownSelect.vue +36 -29
  10. package/dist/runtime/components/argDropdownSelect.vue.d.ts +21 -11
  11. package/dist/runtime/components/argFilterCard.vue +130 -0
  12. package/dist/runtime/components/argFilterCard.vue.d.ts +19 -0
  13. package/dist/runtime/components/argFlag.vue +277 -0
  14. package/dist/runtime/components/argFlag.vue.d.ts +258 -0
  15. package/dist/runtime/components/argFooter.vue +41 -0
  16. package/dist/runtime/components/argFooter.vue.d.ts +2 -0
  17. package/dist/runtime/components/argHeader.vue +96 -0
  18. package/dist/runtime/components/argHeader.vue.d.ts +44 -0
  19. package/dist/runtime/components/argHeaderTabs.vue +7 -3
  20. package/dist/runtime/components/argInfoBar.vue +0 -0
  21. package/dist/runtime/components/argLineBreak.vue +21 -0
  22. package/dist/runtime/components/argLineBreak.vue.d.ts +2 -0
  23. package/dist/runtime/components/argMainLayout.vue +56 -0
  24. package/dist/runtime/components/argMainLayout.vue.d.ts +2 -0
  25. package/dist/runtime/components/argMenuItem.vue +73 -0
  26. package/dist/runtime/components/argMenuItem.vue.d.ts +36 -0
  27. package/dist/runtime/components/argMenuLink.vue +39 -0
  28. package/dist/runtime/components/argMenuLink.vue.d.ts +32 -0
  29. package/dist/runtime/components/argNavBar.vue +320 -0
  30. package/dist/runtime/components/argNavBar.vue.d.ts +35 -0
  31. package/dist/runtime/components/argNote.vue +87 -0
  32. package/dist/runtime/components/argNote.vue.d.ts +42 -0
  33. package/dist/runtime/components/argSidebar.vue +110 -0
  34. package/dist/runtime/components/argSidebar.vue.d.ts +33 -0
  35. package/dist/runtime/components/argSimpleLabel.vue +56 -13
  36. package/dist/runtime/components/argSimpleLabel.vue.d.ts +18 -0
  37. package/dist/runtime/components/argStyle.vue +10 -0
  38. package/dist/runtime/components/argSubMenu.vue +67 -0
  39. package/dist/runtime/components/argSubMenu.vue.d.ts +30 -0
  40. package/dist/runtime/components/argSwitch.vue +158 -0
  41. package/dist/runtime/components/argSwitch.vue.d.ts +45 -0
  42. package/dist/runtime/components/argTable.vue +201 -141
  43. package/dist/runtime/components/argTable.vue.d.ts +22 -3
  44. package/dist/runtime/components/argTooltip.vue +1 -1
  45. package/package.json +6 -3
@@ -3,7 +3,16 @@
3
3
  <span class="oip_select_label" :class="disabled ? 'disabled' : ''">
4
4
  <slot></slot>
5
5
  </span>
6
- <arg-icon class="oip_select_caret_down" name="CaretDown"></arg-icon>
6
+ <div v-if="show_amount && amount_value > 0" class="arg-circle-amount">
7
+ <span>{{ amount_value > 99 ? "99+" : amount_value }}</span>
8
+ </div>
9
+ <arg-icon
10
+ class="oip_select_caret_down"
11
+ name="CaretDown"
12
+ size="16"
13
+ color="var(--cool-grey)"
14
+ thickness="32"
15
+ />
7
16
  </div>
8
17
  </template>
9
18
 
@@ -19,7 +28,9 @@ export default defineComponent({
19
28
  disabled: {
20
29
  type: Boolean,
21
30
  default: false
22
- }
31
+ },
32
+ show_amount: { type: Boolean, default: false },
33
+ amount_value: { type: Number, default: null }
23
34
  }
24
35
  });
25
36
  </script>
@@ -42,13 +53,15 @@ export default defineComponent({
42
53
 
43
54
  .oip_select_block {
44
55
  cursor: pointer;
45
- width: 180px;
46
- padding: 12px 20px;
56
+ width: 228px;
57
+ padding: 12px;
47
58
  display: flex;
59
+ align-items: center;
60
+ gap: 4px;
48
61
  border: 1.5px solid var(--dividers);
49
62
  border-radius: 8px;
50
63
  background: var(--pure-white);
51
- max-width: 270px;
64
+ position: relative;
52
65
  }
53
66
 
54
67
  .oip_select_block:hover,
@@ -77,23 +90,26 @@ export default defineComponent({
77
90
  .oip_select_label .prmt_tooltip {
78
91
  display: flex;
79
92
  }
80
- .oip_select_label > p,
81
- .oip_select_label .prmt_tooltip p {
82
- width: 95%;
93
+ .oip_select_label > span,
94
+ .oip_select_label .prmt_tooltip span {
95
+ display: block;
96
+ width: 98%;
83
97
  overflow: hidden;
84
98
  white-space: nowrap;
85
99
  text-overflow: ellipsis;
86
- margin: 0;
87
100
  }
88
101
 
89
102
  .oip_select_label {
90
- width: 95%;
103
+ width: 90%;
91
104
  font-weight: 700;
92
105
  font-size: 14px;
93
106
  line-height: 16px;
94
107
  color: var(--independence);
95
108
  max-height: 16px;
96
- margin: 0px;
109
+ }
110
+
111
+ .oip_select_block svg {
112
+ flex-shrink: 0 !important;
97
113
  }
98
114
 
99
115
  .oip_select_label.disabled {
@@ -101,8 +117,6 @@ export default defineComponent({
101
117
  }
102
118
 
103
119
  .oip_select_caret_down {
104
- width: 12px;
105
- height: 12px;
106
120
  float: right;
107
121
  margin-left: auto;
108
122
  }
@@ -206,6 +220,35 @@ export default defineComponent({
206
220
  fill: var(--accent) !important;
207
221
  color: var(--pure-white) !important;
208
222
  }
223
+ .arg-circle-amount {
224
+ display: flex;
225
+ width: 20px;
226
+ height: 20px;
227
+ flex-direction: column;
228
+ justify-content: center;
229
+ align-items: center;
230
+ gap: 10px;
231
+ border-radius: 50%;
232
+ background: #e9f1ff;
233
+ color: var(--primary);
234
+ padding: 4px;
235
+ font-size: 14px;
236
+ font-style: normal;
237
+ font-weight: 600;
238
+ flex-shrink: 0;
239
+ position: absolute;
240
+ right: 40px;
241
+ }
242
+ .oip_empty_select {
243
+ font-weight: 600;
244
+ color: var(--cool-grey);
245
+ }
246
+ .oip_select_display {
247
+ display: flex;
248
+ flex-direction: column;
249
+ align-items: flex-start;
250
+ gap: 4px;
251
+ }
209
252
  </style>
210
253
  <style scoped>
211
254
  .oip_select_complex_selection_loop > svg.add {
@@ -3,12 +3,30 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
5
5
  };
6
+ show_amount: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ amount_value: {
11
+ type: NumberConstructor;
12
+ default: null;
13
+ };
6
14
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
15
  disabled: {
8
16
  type: BooleanConstructor;
9
17
  default: boolean;
10
18
  };
19
+ show_amount: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ amount_value: {
24
+ type: NumberConstructor;
25
+ default: null;
26
+ };
11
27
  }>>, {
12
28
  disabled: boolean;
29
+ show_amount: boolean;
30
+ amount_value: number;
13
31
  }, {}>;
14
32
  export default _default;
@@ -62,6 +62,7 @@ export default defineComponent({
62
62
  --nested-table-bg: #eaeaf5;
63
63
  --table-hover: #dddded;
64
64
  --base-dividers: #ececf2;
65
+ --not-quite-white: #fdfdff;
65
66
 
66
67
  /*SHADOWS*/
67
68
  --container-shadow: 0px 0px 40px rgba(94, 92, 154, 0.06);
@@ -980,4 +981,13 @@ button {
980
981
  gap: 10px;
981
982
  flex-wrap: wrap;
982
983
  }
984
+ .arg_sub_menu .arg_sub_menu .arg_sub_menu_button {
985
+ padding-left: 24px !important;
986
+ }
987
+ .arg_sub_menu .arg_sub_menu .auriga_menu_item {
988
+ padding-left: 40px !important;
989
+ }
990
+ .arg_sub_menu .auriga_menu_item {
991
+ padding-left: 24px !important;
992
+ }
983
993
  </style>
@@ -0,0 +1,67 @@
1
+ <template>
2
+ <div class="arg_sub_menu">
3
+ <button class="arg_sub_menu_button" @click="openMenu = !openMenu">
4
+ {{label}}
5
+ <arg-icon name="CaretUp" size="12" color="var(--primary)" thickness="30" v-if="openMenu"/>
6
+ <arg-icon name="CaretDown" size="12" color="var(--primary)" thickness="30" v-else/>
7
+ </button>
8
+ <div v-show="openMenu" class="arg_sub_menu_content">
9
+ <slot/>
10
+ </div>
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import {
15
+ ref,
16
+ defineComponent
17
+ } from "vue";
18
+ import argIcon from "./argIcon.vue";
19
+ import argStyle from "./argStyle.vue";
20
+ export default defineComponent({
21
+ name: "argSubMenu",
22
+ components: { argIcon, argStyle },
23
+ props: {
24
+ label: { type: String, required: true },
25
+ icon: { type: String },
26
+ defaultCollapseState: { type: Boolean, default: true }
27
+ },
28
+ setup(props) {
29
+ let openMenu = ref(props.defaultCollapseState);
30
+ return {
31
+ openMenu
32
+ };
33
+ }
34
+ });
35
+ </script>
36
+ <style>
37
+ .arg_sub_menu{
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: flex-start;
41
+ gap: 8px;
42
+ align-self: stretch;
43
+ width: 100%;
44
+ cursor: pointer;
45
+ }
46
+
47
+ .arg_sub_menu_button{
48
+ width: 100%;
49
+ outline: none;
50
+ border: 0px solid transparent;
51
+ background-color: transparent;
52
+ padding: 0;
53
+ display: flex;
54
+ padding: 3px 8px 6px 8px;
55
+ align-items: center;
56
+ gap: 10px;
57
+ align-self: stretch;
58
+ font-size: 14px;
59
+ font-style: normal;
60
+ font-weight: 700;
61
+ line-height: normal;
62
+ cursor: pointer;
63
+ }
64
+ .arg_sub_menu_content{
65
+ width: 100%;
66
+ }
67
+ </style>
@@ -0,0 +1,30 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ icon: {
7
+ type: StringConstructor;
8
+ };
9
+ defaultCollapseState: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }, {
14
+ openMenu: import("vue").Ref<boolean>;
15
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ label: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ icon: {
21
+ type: StringConstructor;
22
+ };
23
+ defaultCollapseState: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>>, {
28
+ defaultCollapseState: boolean;
29
+ }, {}>;
30
+ export default _default;
@@ -0,0 +1,158 @@
1
+ <template>
2
+ <div class="oip_select_display">
3
+ <p class="oip_filter_label">{{ switch_label }}</p>
4
+ <div
5
+ @click="changeValue"
6
+ class="prmt_parent_switch"
7
+ @focus="activate_switch = true"
8
+ @focusout="activate_switch = false"
9
+ tabindex="0"
10
+ :class="activate_switch ? 'open' : ''"
11
+ >
12
+ <div
13
+ :class="[
14
+ 'prmt_switch_text',
15
+ true_is_active ? 'prmt_switch_is_active' : 'prmt_switch_is_inactive',
16
+ ]"
17
+ >
18
+ {{ active_text }}
19
+ </div>
20
+ <div
21
+ :class="[
22
+ 'prmt_switch',
23
+ true_is_active ? 'prmt_switch_is_active' : 'prmt_switch_is_inactive',
24
+ ]"
25
+ >
26
+ <div
27
+ :class="[
28
+ 'prmt_switch_round',
29
+ true_is_active
30
+ ? 'prmt_switch_is_active'
31
+ : 'prmt_switch_is_inactive',
32
+ ]"
33
+ ></div>
34
+ </div>
35
+ <div
36
+ :class="[
37
+ 'prmt_switch_text',
38
+ true_is_active ? 'prmt_switch_is_inactive' : 'prmt_switch_is_active',
39
+ ]"
40
+ >
41
+ {{ inactive_text }}
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import {
49
+ ref,
50
+ watch,
51
+ defineComponent
52
+ } from "vue";
53
+ export default defineComponent({
54
+ name: "argSwitch",
55
+ props: {
56
+ active_text: { type: String, required: true },
57
+ inactive_text: { type: String, required: true },
58
+ is_active: { type: Boolean, default: true },
59
+ switch_label: { type: String, required: true }
60
+ },
61
+ emits: ["changeValue", "update:Switch"],
62
+ setup(props, { emit }) {
63
+ const true_is_active = ref(true);
64
+ const activate_switch = ref(false);
65
+ true_is_active.value = props.is_active;
66
+ watch(
67
+ () => props.is_active,
68
+ (new_is_active) => {
69
+ true_is_active.value = new_is_active;
70
+ emit("changeValue", true_is_active.value);
71
+ emit("update:Switch", true_is_active.value);
72
+ }
73
+ );
74
+ function changeValue() {
75
+ emit("changeValue", !true_is_active.value);
76
+ emit("update:Switch", !true_is_active.value);
77
+ true_is_active.value = !true_is_active.value;
78
+ }
79
+ return {
80
+ changeValue,
81
+ activate_switch,
82
+ true_is_active
83
+ };
84
+ }
85
+ });
86
+ </script>
87
+
88
+ <style>
89
+ .prmt_switch_pause {
90
+ vertical-align: baseline !important;
91
+ fill: var(--dividers) !important;
92
+ color: var(--dividers) !important;
93
+ margin: 0 0 5% 11%;
94
+ stroke-width: 0px !important;
95
+ }
96
+ .prmt_switch_text {
97
+ font-weight: 700;
98
+ font-size: 14px;
99
+ line-height: 16px;
100
+ transition: all 300ms ease;
101
+ }
102
+ .prmt_switch_text.prmt_switch_is_inactive {
103
+ color: var(--lavendar-grey);
104
+ }
105
+ .prmt_switch_text.prmt_switch_is_active {
106
+ color: var(--independence);
107
+ }
108
+ .prmt_switch {
109
+ transition: all 300ms ease;
110
+ width: 36px;
111
+ height: 18px;
112
+ border-radius: 35.7px;
113
+ padding: 0 2px;
114
+ }
115
+
116
+ .prmt_switch.prmt_switch_is_active {
117
+ border: 1px solid var(--accent);
118
+ background-color: var(--accent);
119
+ }
120
+ .prmt_switch.prmt_switch_is_inactive {
121
+ background-color: var(--accent);
122
+ border: 1px solid var(--accent);
123
+ }
124
+
125
+ .prmt_switch_round.prmt_switch_is_active {
126
+ left: 0;
127
+ }
128
+ .prmt_switch_round.prmt_switch_is_inactive {
129
+ transform: translateX(100%);
130
+ }
131
+
132
+ .prmt_switch_round {
133
+ transition: all 300ms ease;
134
+ margin-bottom: 2px;
135
+ background-color: var(--pure-white);
136
+ border: solid 0.5px var(--more);
137
+ border-radius: 50%;
138
+ width: 16px;
139
+ height: 16px;
140
+ box-shadow: var(--button-big-shadow);
141
+ }
142
+
143
+ .prmt_parent_switch {
144
+ background-color: var(--pure-white);
145
+ cursor: pointer;
146
+ display: flex;
147
+ align-items: center;
148
+ width: fit-content;
149
+ gap: 10px;
150
+ border: solid 1.5px var(--dividers);
151
+ border-radius: 8px;
152
+ padding: 10px 17px;
153
+ }
154
+ .prmt_parent_switch:focus-within {
155
+ border: 1.5px solid var(--primary) !important;
156
+ box-shadow: 0px 0px 0px 4px rgba(33, 118, 255, 0.1) !important;
157
+ }
158
+ </style>
@@ -0,0 +1,45 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ active_text: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ inactive_text: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ is_active: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ switch_label: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ }, {
19
+ changeValue: () => void;
20
+ activate_switch: import("vue").Ref<boolean>;
21
+ true_is_active: import("vue").Ref<boolean>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeValue" | "update:Switch")[], "changeValue" | "update:Switch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ active_text: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ inactive_text: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ is_active: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ switch_label: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
39
+ }>> & {
40
+ onChangeValue?: ((...args: any[]) => any) | undefined;
41
+ "onUpdate:Switch"?: ((...args: any[]) => any) | undefined;
42
+ }, {
43
+ is_active: boolean;
44
+ }, {}>;
45
+ export default _default;