@tekkare/auriga 0.1.49 → 0.1.51

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.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.1.49"
7
+ "version": "0.1.51"
8
8
  }
@@ -193,7 +193,7 @@ export default defineComponent({
193
193
  const shortcutIndex = ref(-1);
194
194
  const removeSelected = ref(false);
195
195
  const hoverTag = ref();
196
- const showInfo = ref();
196
+ const showInfo = ref(false);
197
197
  const regexSearch = /^[\s\.\+\/\!]|(?:[\+\/\!\s])[\s{1,}\.{1,}\+{1,}\/{1,}\!{1,}]|[\s{1,}\.1,}\+{1,}\/{1,}\!{1,}]$|\s+[\+\/]|\s+$/g;
198
198
  const iconColor = computed(() => {
199
199
  if (typing.value === true) {
@@ -208,7 +208,7 @@ export default defineComponent({
208
208
  return false;
209
209
  });
210
210
  const infoHeight = computed(() => {
211
- if (showInfo.value = true) {
211
+ if (showInfo.value === true) {
212
212
  const infoSection = document.getElementById("info");
213
213
  const shortcutSection = document.getElementById("shortcuts");
214
214
  if (infoSection !== null && shortcutSection !== null) {
@@ -337,11 +337,13 @@ export default defineComponent({
337
337
  value.value = "";
338
338
  }
339
339
  function getKeyword(keyword) {
340
+ let returnKeyword = "";
340
341
  for (let i = 0; i < shortcuts.value.length; i++) {
341
342
  if (keyword === shortcuts.value[i].symbol) {
342
- return shortcuts.value[i].keyword;
343
+ returnKeyword = shortcuts.value[i].keyword;
343
344
  }
344
345
  }
346
+ return returnKeyword;
345
347
  }
346
348
  function addTag() {
347
349
  if (removeSelected.value === true) {
@@ -381,7 +383,7 @@ export default defineComponent({
381
383
  }
382
384
  } else if (arrayValues.length > 0) {
383
385
  for (let i = 0; i < arrayValues.length; i++) {
384
- let arraySearchValue = arrayValues[i].replace(regexSearch, "");
386
+ const arraySearchValue = arrayValues[i].replace(regexSearch, "");
385
387
  if (arraySearchValue.length > 0) {
386
388
  if (searchedWords.value.filter(
387
389
  (f) => f.value === arraySearchValue
@@ -5,10 +5,34 @@ declare const _default: import("vue").DefineComponent<{
5
5
  };
6
6
  customShortcuts: {
7
7
  type: {
8
- (arrayLength: number): any[];
9
- (...items: any[]): any[];
10
- new (arrayLength: number): any[];
11
- new (...items: any[]): any[];
8
+ (arrayLength: number): {
9
+ keyword: "";
10
+ value: "";
11
+ symbol: "";
12
+ }[];
13
+ (...items: {
14
+ keyword: "";
15
+ value: "";
16
+ symbol: "";
17
+ }[]): {
18
+ keyword: "";
19
+ value: "";
20
+ symbol: "";
21
+ }[];
22
+ new (arrayLength: number): {
23
+ keyword: "";
24
+ value: "";
25
+ symbol: "";
26
+ }[];
27
+ new (...items: {
28
+ keyword: "";
29
+ value: "";
30
+ symbol: "";
31
+ }[]): {
32
+ keyword: "";
33
+ value: "";
34
+ symbol: "";
35
+ }[];
12
36
  isArray(arg: any): arg is any[];
13
37
  readonly prototype: any[];
14
38
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -27,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
27
51
  removeTag: (tagIndex: any) => void;
28
52
  selectSearch: (item: any) => void;
29
53
  emptySearch: () => void;
30
- getKeyword: (keyword: string) => string | undefined;
54
+ getKeyword: (keyword: string) => string;
31
55
  handleDuplicate: (tag: any) => void;
32
56
  addTag: () => void;
33
57
  resetSearch: () => void;
@@ -43,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
43
67
  }[]>;
44
68
  hoverShortcut: import("vue").Ref<string>;
45
69
  selectedShortcut: import("vue").Ref<string>;
46
- searchedWords: import("vue").Ref<never[]>;
70
+ searchedWords: any;
47
71
  closeIndex: import("vue").Ref<any>;
48
72
  value: import("vue").Ref<string>;
49
73
  selectedTag: import("vue").Ref<any>;
@@ -53,7 +77,7 @@ declare const _default: import("vue").DefineComponent<{
53
77
  shortcutIndex: import("vue").Ref<number>;
54
78
  removeSelected: import("vue").Ref<boolean>;
55
79
  hoverTag: import("vue").Ref<any>;
56
- showInfo: import("vue").Ref<any>;
80
+ showInfo: import("vue").Ref<boolean>;
57
81
  regexSearch: RegExp;
58
82
  iconColor: import("vue").ComputedRef<"var(--primary)" | "var(--wild-blue-yonder)">;
59
83
  hasShortcut: import("vue").ComputedRef<boolean>;
@@ -65,10 +89,34 @@ declare const _default: import("vue").DefineComponent<{
65
89
  };
66
90
  customShortcuts: {
67
91
  type: {
68
- (arrayLength: number): any[];
69
- (...items: any[]): any[];
70
- new (arrayLength: number): any[];
71
- new (...items: any[]): any[];
92
+ (arrayLength: number): {
93
+ keyword: "";
94
+ value: "";
95
+ symbol: "";
96
+ }[];
97
+ (...items: {
98
+ keyword: "";
99
+ value: "";
100
+ symbol: "";
101
+ }[]): {
102
+ keyword: "";
103
+ value: "";
104
+ symbol: "";
105
+ }[];
106
+ new (arrayLength: number): {
107
+ keyword: "";
108
+ value: "";
109
+ symbol: "";
110
+ }[];
111
+ new (...items: {
112
+ keyword: "";
113
+ value: "";
114
+ symbol: "";
115
+ }[]): {
116
+ keyword: "";
117
+ value: "";
118
+ symbol: "";
119
+ }[];
72
120
  isArray(arg: any): arg is any[];
73
121
  readonly prototype: any[];
74
122
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -85,6 +133,10 @@ declare const _default: import("vue").DefineComponent<{
85
133
  onOnClose?: ((...args: any[]) => any) | undefined;
86
134
  }, {
87
135
  placeHolderValue: string;
88
- customShortcuts: any[];
136
+ customShortcuts: {
137
+ keyword: "";
138
+ value: "";
139
+ symbol: "";
140
+ }[];
89
141
  }, {}>;
90
142
  export default _default;
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  element_table: {
3
3
  type: {
4
- (arrayLength: number): string[];
5
- (...items: string[]): string[];
6
- new (arrayLength: number): string[];
7
- new (...items: string[]): string[];
4
+ (arrayLength: number): String[];
5
+ (...items: String[]): String[];
6
+ new (arrayLength: number): String[];
7
+ new (...items: String[]): String[];
8
8
  isArray(arg: any): arg is any[];
9
9
  readonly prototype: any[];
10
10
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -159,10 +159,10 @@ declare const _default: import("vue").DefineComponent<{
159
159
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "changeAddInputValue" | "update:Selection")[], "changeElement" | "changeAddInputValue" | "update:Selection", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
160
160
  element_table: {
161
161
  type: {
162
- (arrayLength: number): string[];
163
- (...items: string[]): string[];
164
- new (arrayLength: number): string[];
165
- new (...items: string[]): string[];
162
+ (arrayLength: number): String[];
163
+ (...items: String[]): String[];
164
+ new (arrayLength: number): String[];
165
+ new (...items: String[]): String[];
166
166
  isArray(arg: any): arg is any[];
167
167
  readonly prototype: any[];
168
168
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  element_table: {
3
3
  type: {
4
- (arrayLength: number): string[];
5
- (...items: string[]): string[];
6
- new (arrayLength: number): string[];
7
- new (...items: string[]): string[];
4
+ (arrayLength: number): String[];
5
+ (...items: String[]): String[];
6
+ new (arrayLength: number): String[];
7
+ new (...items: String[]): String[];
8
8
  isArray(arg: any): arg is any[];
9
9
  readonly prototype: any[];
10
10
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -108,10 +108,10 @@ declare const _default: import("vue").DefineComponent<{
108
108
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:Selection" | "changeInputValue")[], "changeElement" | "update:Selection" | "changeInputValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
109
  element_table: {
110
110
  type: {
111
- (arrayLength: number): string[];
112
- (...items: string[]): string[];
113
- new (arrayLength: number): string[];
114
- new (...items: string[]): string[];
111
+ (arrayLength: number): String[];
112
+ (...items: String[]): String[];
113
+ new (arrayLength: number): String[];
114
+ new (...items: String[]): String[];
115
115
  isArray(arg: any): arg is any[];
116
116
  readonly prototype: any[];
117
117
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -5,7 +5,7 @@
5
5
  <div class="arg_main_layout_body">
6
6
  <div
7
7
  class="arg_info"
8
- :class="infoOpen ? 'arg_info_open' : 'arg_info_closed'"
8
+ :class="toolbarOpen ? 'arg_info_open' : 'arg_info_closed'"
9
9
  id="arg_info_section"
10
10
  >
11
11
  <slot name="toolbar" />
@@ -34,7 +34,7 @@ export default defineComponent({
34
34
  type: Boolean,
35
35
  default: true
36
36
  },
37
- infoOpen: {
37
+ toolbarOpen: {
38
38
  type: Boolean,
39
39
  default: false
40
40
  }
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
5
5
  };
6
- infoOpen: {
6
+ toolbarOpen: {
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
@@ -12,12 +12,12 @@ declare const _default: import("vue").DefineComponent<{
12
12
  type: BooleanConstructor;
13
13
  default: boolean;
14
14
  };
15
- infoOpen: {
15
+ toolbarOpen: {
16
16
  type: BooleanConstructor;
17
17
  default: boolean;
18
18
  };
19
19
  }>>, {
20
20
  sidebarOpen: boolean;
21
- infoOpen: boolean;
21
+ toolbarOpen: boolean;
22
22
  }, {}>;
23
23
  export default _default;
@@ -34,10 +34,10 @@ declare const _default: import("vue").DefineComponent<{
34
34
  };
35
35
  default_select: {
36
36
  type: {
37
- (arrayLength: number): any[];
38
- (...items: any[]): any[];
39
- new (arrayLength: number): any[];
40
- new (...items: any[]): any[];
37
+ (arrayLength: number): String[];
38
+ (...items: String[]): String[];
39
+ new (arrayLength: number): String[];
40
+ new (...items: String[]): String[];
41
41
  isArray(arg: any): arg is any[];
42
42
  readonly prototype: any[];
43
43
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -176,10 +176,10 @@ declare const _default: import("vue").DefineComponent<{
176
176
  };
177
177
  default_select: {
178
178
  type: {
179
- (arrayLength: number): any[];
180
- (...items: any[]): any[];
181
- new (arrayLength: number): any[];
182
- new (...items: any[]): any[];
179
+ (arrayLength: number): String[];
180
+ (...items: String[]): String[];
181
+ new (arrayLength: number): String[];
182
+ new (...items: String[]): String[];
183
183
  isArray(arg: any): arg is any[];
184
184
  readonly prototype: any[];
185
185
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -265,7 +265,7 @@ declare const _default: import("vue").DefineComponent<{
265
265
  empty_content_msg: string;
266
266
  search: boolean;
267
267
  filter_placeholder: string;
268
- default_select: any[];
268
+ default_select: String[];
269
269
  nested: boolean;
270
270
  show_all: boolean;
271
271
  preselection_all: boolean;
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  elements: {
3
3
  type: {
4
- (arrayLength: number): string[];
5
- (...items: string[]): string[];
6
- new (arrayLength: number): string[];
7
- new (...items: string[]): string[];
4
+ (arrayLength: number): String[];
5
+ (...items: String[]): String[];
6
+ new (arrayLength: number): String[];
7
+ new (...items: String[]): String[];
8
8
  isArray(arg: any): arg is any[];
9
9
  readonly prototype: any[];
10
10
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -36,10 +36,10 @@ declare const _default: import("vue").DefineComponent<{
36
36
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:Selection")[], "changeElement" | "update:Selection", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
37
  elements: {
38
38
  type: {
39
- (arrayLength: number): string[];
40
- (...items: string[]): string[];
41
- new (arrayLength: number): string[];
42
- new (...items: string[]): string[];
39
+ (arrayLength: number): String[];
40
+ (...items: String[]): String[];
41
+ new (arrayLength: number): String[];
42
+ new (...items: String[]): String[];
43
43
  isArray(arg: any): arg is any[];
44
44
  readonly prototype: any[];
45
45
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -23,6 +23,7 @@ import argIcon from "./argIcon.vue";
23
23
  import {
24
24
  onMounted,
25
25
  ref,
26
+ watch,
26
27
  defineComponent
27
28
  } from "vue";
28
29
  export default defineComponent({
@@ -56,6 +57,15 @@ export default defineComponent({
56
57
  selectedRadio.value = props.defaultSelect;
57
58
  }
58
59
  });
60
+ watch(
61
+ () => props.defaultSelect,
62
+ (new_default) => {
63
+ if (typeof new_default === "number") {
64
+ selectedRadio.value = new_default;
65
+ } else
66
+ selectedRadio.value = null;
67
+ }
68
+ );
59
69
  function selectRadio(index, value) {
60
70
  selectedRadio.value = index;
61
71
  if (props.returnValue) {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="oip_info_bar">
3
3
  <div
4
- v-for="(item, index) in infoArray"
4
+ v-for="(item, index) in toolbarArray"
5
5
  :key="index"
6
6
  class="oip_info_item"
7
7
  :class="item.name === 'Sources' ? 'relative' : ''"
@@ -31,13 +31,12 @@ export default defineComponent({
31
31
  name: "argToolbar",
32
32
  components: { argIcon, argTooltip },
33
33
  props: {
34
- infoArray: {
34
+ toolbarArray: {
35
35
  type: Array,
36
36
  default: () => [
37
37
  { name: "Tips", icon: "Lightbulb" },
38
38
  { name: "Sources", icon: "Database" },
39
- { name: "Info", icon: "Info" },
40
- { name: "Metadata", icon: "CirclesFour" }
39
+ { name: "Info", icon: "Info" }
41
40
  ]
42
41
  },
43
42
  sourceAmount: {
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- infoArray: {
2
+ toolbarArray: {
3
3
  type: ArrayConstructor;
4
4
  default: () => {
5
5
  name: string;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  activeMenu: import("vue").Ref<string>;
16
16
  openMenu: (item: string) => void;
17
17
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "openToolbar"[], "openToolbar", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
- infoArray: {
18
+ toolbarArray: {
19
19
  type: ArrayConstructor;
20
20
  default: () => {
21
21
  name: string;
@@ -29,6 +29,6 @@ declare const _default: import("vue").DefineComponent<{
29
29
  }>> & {
30
30
  onOpenToolbar?: ((...args: any[]) => any) | undefined;
31
31
  }, {
32
- infoArray: unknown[];
32
+ toolbarArray: unknown[];
33
33
  }, {}>;
34
34
  export default _default;
@@ -14,7 +14,7 @@
14
14
  >
15
15
  <div class="oip_info_sidebar">
16
16
  <div
17
- v-for="(item, index) in infoArray"
17
+ v-for="(item, index) in toolbarArray"
18
18
  :key="index"
19
19
  class="oip_info_menu"
20
20
  :class="trueActiveMenu === item.name ? 'active_info_menu' : ''"
@@ -38,9 +38,12 @@
38
38
  </div>
39
39
  <div class="oip_info_content">
40
40
  <div
41
- v-for="(item, index) in infoArray"
41
+ v-for="(item, index) in toolbarArray"
42
42
  :key="index"
43
- :class="trueActiveMenu === item.name ? '' : 'hide'"
43
+ :class="[
44
+ 'toolbar_menu_content',
45
+ trueActiveMenu === item.name ? '' : 'hide',
46
+ ]"
44
47
  >
45
48
  <slot :name="item.name" />
46
49
  </div>
@@ -70,13 +73,12 @@ export default defineComponent({
70
73
  type: String,
71
74
  default: ""
72
75
  },
73
- infoArray: {
76
+ toolbarArray: {
74
77
  type: Array,
75
78
  default: () => [
76
79
  { name: "Tips", icon: "Lightbulb" },
77
80
  { name: "Sources", icon: "Database" },
78
- { name: "Info", icon: "Info" },
79
- { name: "Metadata", icon: "CirclesFour" }
81
+ { name: "Info", icon: "Info" }
80
82
  ]
81
83
  },
82
84
  sourceAmount: {
@@ -262,4 +264,8 @@ export default defineComponent({
262
264
  font-weight: 900;
263
265
  line-height: normal;
264
266
  }
267
+
268
+ .toolbar_menu_content {
269
+ align-self: stretch;
270
+ }
265
271
  </style>
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  };
10
- infoArray: {
10
+ toolbarArray: {
11
11
  type: ArrayConstructor;
12
12
  default: () => {
13
13
  name: string;
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  type: StringConstructor;
33
33
  default: string;
34
34
  };
35
- infoArray: {
35
+ toolbarArray: {
36
36
  type: ArrayConstructor;
37
37
  default: () => {
38
38
  name: string;
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
47
47
  "onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
48
48
  "onUpdate:Open"?: ((...args: any[]) => any) | undefined;
49
49
  }, {
50
- infoArray: unknown[];
51
- activeMenu: string;
52
50
  toolbarOpen: boolean;
51
+ toolbarArray: unknown[];
52
+ activeMenu: string;
53
53
  }, {}>;
54
54
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",