@tekkare/auriga 0.1.3 → 0.1.5

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 (47) 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 +663 -0
  4. package/dist/runtime/components/argChart.vue.d.ts +110 -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 +118 -23
  8. package/dist/runtime/components/argComplexSelect.vue.d.ts +57 -2
  9. package/dist/runtime/components/argDropdownSelect.vue +27 -28
  10. package/dist/runtime/components/argDropdownSelect.vue.d.ts +20 -3
  11. package/dist/runtime/components/argFlag.vue +277 -0
  12. package/dist/runtime/components/argFlag.vue.d.ts +258 -0
  13. package/dist/runtime/components/argFooter.vue +41 -0
  14. package/dist/runtime/components/argFooter.vue.d.ts +2 -0
  15. package/dist/runtime/components/argHeader.vue +96 -0
  16. package/dist/runtime/components/argHeader.vue.d.ts +44 -0
  17. package/dist/runtime/components/argHeaderTabs.vue +10 -12
  18. package/dist/runtime/components/argHeaderTabs.vue.d.ts +2 -3
  19. package/dist/runtime/components/argInfoBar.vue +0 -0
  20. package/dist/runtime/components/argLineBreak.vue +21 -0
  21. package/dist/runtime/components/argLineBreak.vue.d.ts +2 -0
  22. package/dist/runtime/components/argMainLayout.vue +56 -0
  23. package/dist/runtime/components/argMainLayout.vue.d.ts +2 -0
  24. package/dist/runtime/components/argMenuItem.vue +73 -0
  25. package/dist/runtime/components/argMenuItem.vue.d.ts +36 -0
  26. package/dist/runtime/components/argMenuLink.vue +39 -0
  27. package/dist/runtime/components/argMenuLink.vue.d.ts +32 -0
  28. package/dist/runtime/components/argMultipleChoice.vue +2 -2
  29. package/dist/runtime/components/argMultipleChoice.vue.d.ts +2 -2
  30. package/dist/runtime/components/argNavBar.vue +319 -0
  31. package/dist/runtime/components/argNavBar.vue.d.ts +35 -0
  32. package/dist/runtime/components/argNote.vue +87 -0
  33. package/dist/runtime/components/argNote.vue.d.ts +42 -0
  34. package/dist/runtime/components/argSearchInput.vue +2 -1
  35. package/dist/runtime/components/argSearchInput.vue.d.ts +2 -0
  36. package/dist/runtime/components/argSidebar.vue +114 -0
  37. package/dist/runtime/components/argSidebar.vue.d.ts +33 -0
  38. package/dist/runtime/components/argSimpleLabel.vue +57 -14
  39. package/dist/runtime/components/argSimpleLabel.vue.d.ts +18 -0
  40. package/dist/runtime/components/argStyle.vue +14 -1
  41. package/dist/runtime/components/argSubMenu.vue +67 -0
  42. package/dist/runtime/components/argSubMenu.vue.d.ts +30 -0
  43. package/dist/runtime/components/argSwitch.vue +153 -0
  44. package/dist/runtime/components/argSwitch.vue.d.ts +37 -0
  45. package/dist/runtime/components/argTable.vue.d.ts +3 -3
  46. package/dist/runtime/components/argTooltip.vue +1 -1
  47. package/package.json +6 -3
@@ -1,29 +1,26 @@
1
1
  <template>
2
2
  <div>
3
3
  <!-- Simple select -->
4
- <arg-simple-label
5
- :disabled="disabled"
6
- @click.stop="changeDisplay()"
7
- :class="isDisplay ? 'open' : ''"
8
- >
9
- <span
10
- v-if="
11
- selected_item === null ||
12
- selected_item.length === 0 ||
13
- change_title === false
14
- "
15
- >
16
- <slot></slot>
17
- </span>
18
- <arg-tooltip
19
- v-else
20
- class="full_width"
21
- :disable="!isEllipsisActive"
22
- :tooltipText="selected_item"
4
+ <div class="oip_select_display">
5
+ <p class="oip_filter_label">{{ dropdown_label }}</p>
6
+ <arg-simple-label
7
+ :disabled="disabled"
8
+ @click.stop="changeDisplay()"
9
+ :class="isDisplay ? 'open' : ''"
23
10
  >
24
- <p :id="`label_${selected_item}`">{{ selected_item }}</p>
25
- </arg-tooltip>
26
- </arg-simple-label>
11
+ <arg-tooltip
12
+ class="full_width"
13
+ :disable="!isEllipsisActive"
14
+ :tooltipText="selected_item ? selected_item : ''"
15
+ >
16
+ <span
17
+ :class="selected_item ? '' : 'oip_empty_select'"
18
+ :id="`label_${selected_item}`"
19
+ >{{ selected_item === null ? empty_msg : selected_item }}</span
20
+ >
21
+ </arg-tooltip>
22
+ </arg-simple-label>
23
+ </div>
27
24
  <!-- Dropdown select -->
28
25
  <div
29
26
  :style="isDisplay === false ? 'display : none' : ''"
@@ -134,16 +131,18 @@ export default defineComponent({
134
131
  watch_default_change: { type: Boolean, default: true },
135
132
  disabled: { type: Boolean, default: false },
136
133
  return_value: { type: Boolean, default: false },
137
- values_disabled: { type: Array, default: () => [] }
134
+ values_disabled: { type: Array, default: () => [] },
135
+ empty_msg: { type: String, default: "No selection" },
136
+ dropdown_label: { type: String, required: true }
138
137
  },
139
- emits: ["changeElement", "update:Value"],
138
+ emits: ["changeElement", "update:Selection"],
140
139
  setup(props, { emit }) {
141
140
  const isDisplay = ref(false);
142
141
  const searchName = ref("");
143
142
  const labelElement = ref();
144
143
  const isEllipsisActive = ref(false);
145
144
  const table_values = ref(props.element_table);
146
- const selected_item = ref(props.element_table[props.default_select]);
145
+ const selected_item = props.default_select ? ref(props.element_table[props.default_select]) : ref(null);
147
146
  const selected_number = ref(props.default_select);
148
147
  watch(
149
148
  () => props.element_table,
@@ -156,7 +155,7 @@ export default defineComponent({
156
155
  props.return_value ? selected_item.value : selected_number.value
157
156
  );
158
157
  emit(
159
- "update:Value",
158
+ "update:Selection",
160
159
  props.return_value ? selected_item.value : selected_number.value
161
160
  );
162
161
  }
@@ -173,7 +172,7 @@ export default defineComponent({
173
172
  props.return_value ? selected_item.value : selected_number.value
174
173
  );
175
174
  emit(
176
- "update:Value",
175
+ "update:Selection",
177
176
  props.return_value ? selected_item.value : selected_number.value
178
177
  );
179
178
  }
@@ -200,7 +199,7 @@ export default defineComponent({
200
199
  props.return_value ? selected_item.value : selected_number.value
201
200
  );
202
201
  emit(
203
- "update:Value",
202
+ "update:Selection",
204
203
  props.return_value ? selected_item.value : selected_number.value
205
204
  );
206
205
  }
@@ -54,20 +54,28 @@ declare const _default: import("vue").DefineComponent<{
54
54
  type: ArrayConstructor;
55
55
  default: () => never[];
56
56
  };
57
+ empty_msg: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ dropdown_label: {
62
+ type: StringConstructor;
63
+ required: true;
64
+ };
57
65
  }, {
58
66
  isDisplay: import("vue").Ref<boolean>;
59
67
  searchName: import("vue").Ref<string>;
60
68
  labelElement: import("vue").Ref<any>;
61
69
  isEllipsisActive: import("vue").Ref<boolean>;
62
70
  table_values: import("vue").Ref<string[]>;
63
- selected_item: import("vue").Ref<string>;
71
+ selected_item: import("vue").Ref<string> | import("vue").Ref<null>;
64
72
  selected_number: import("vue").Ref<number>;
65
73
  checkActiveEllipsis: () => void;
66
74
  add_element: (element: string, index: number) => void;
67
75
  closeDropdown: () => void;
68
76
  filterName: () => string[];
69
77
  changeDisplay: () => void;
70
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Value" | "changeElement")[], "update:Value" | "changeElement", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
+ }, 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<{
71
79
  element_table: {
72
80
  type: {
73
81
  (arrayLength: number): string[];
@@ -123,12 +131,21 @@ declare const _default: import("vue").DefineComponent<{
123
131
  type: ArrayConstructor;
124
132
  default: () => never[];
125
133
  };
134
+ empty_msg: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ dropdown_label: {
139
+ type: StringConstructor;
140
+ required: true;
141
+ };
126
142
  }>> & {
127
- "onUpdate:Value"?: ((...args: any[]) => any) | undefined;
128
143
  onChangeElement?: ((...args: any[]) => any) | undefined;
144
+ "onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
129
145
  }, {
130
146
  return_value: boolean;
131
147
  disabled: boolean;
148
+ empty_msg: string;
132
149
  search: boolean;
133
150
  filter_placeholder: string;
134
151
  change_title: boolean;