@tekkare/auriga 0.1.14 → 0.1.16

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.14"
7
+ "version": "0.1.16"
8
8
  }
@@ -13,10 +13,9 @@
13
13
 
14
14
  <script>
15
15
  import {
16
+ onMounted,
16
17
  ref,
17
- watch,
18
- defineComponent,
19
- onBeforeMount
18
+ defineComponent
20
19
  } from "vue";
21
20
  export default defineComponent({
22
21
  name: "argFilterTabs",
@@ -27,7 +26,7 @@ export default defineComponent({
27
26
  },
28
27
  index_menu: {
29
28
  type: [Number, String],
30
- default: 0
29
+ default: null
31
30
  },
32
31
  returnValue: {
33
32
  type: Boolean,
@@ -37,24 +36,19 @@ export default defineComponent({
37
36
  emits: ["changeValue", "update:Tab"],
38
37
  setup(props, { emit }) {
39
38
  const activeTab = ref(0);
40
- watch(
41
- () => props.index_menu,
42
- (new_index_menu) => {
43
- setDefaultTab();
44
- changeTab(activeTab.value);
45
- }
46
- );
47
- onBeforeMount(() => {
39
+ onMounted(() => {
48
40
  setDefaultTab();
49
41
  changeTab(activeTab.value);
50
42
  });
51
43
  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;
44
+ if (props.index_menu !== null) {
45
+ if (typeof props.index_menu === "string") {
46
+ activeTab.value = props.tabs.findIndex(
47
+ (a) => a.value === props.index_menu
48
+ );
49
+ } else if (typeof activeTab.value === "number") {
50
+ activeTab.value = props.index_menu;
51
+ }
58
52
  }
59
53
  }
60
54
  function changeTab(index) {
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  };
19
19
  index_menu: {
20
20
  type: (StringConstructor | NumberConstructor)[];
21
- default: number;
21
+ default: null;
22
22
  };
23
23
  returnValue: {
24
24
  type: BooleanConstructor;
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  };
49
49
  index_menu: {
50
50
  type: (StringConstructor | NumberConstructor)[];
51
- default: number;
51
+ default: null;
52
52
  };
53
53
  returnValue: {
54
54
  type: BooleanConstructor;
@@ -12,6 +12,7 @@ import {
12
12
  defineComponent
13
13
  } from "vue";
14
14
  export default defineComponent({
15
+ name: "argNoData",
15
16
  props: {
16
17
  text: {
17
18
  type: String,
@@ -29,6 +29,7 @@
29
29
  <script>
30
30
  import {
31
31
  ref,
32
+ watch,
32
33
  defineComponent
33
34
  } from "vue";
34
35
  import argFilterTabs from "./argFilterTabs.vue";
@@ -48,8 +49,16 @@ export default defineComponent({
48
49
  }
49
50
  }
50
51
  },
51
- setup() {
52
+ emits: ["update:Criteria", "onChangeCriteria"],
53
+ setup(props, { emit }) {
52
54
  const activeTab = ref("new");
55
+ watch(
56
+ () => activeTab.value,
57
+ (new_active_tab) => {
58
+ emit("update:Criteria", new_active_tab);
59
+ emit("onChangeCriteria", new_active_tab);
60
+ }
61
+ );
53
62
  const scopeTabs = [
54
63
  { name: "New scope criteria", value: "new" },
55
64
  { name: "Apply an existing scope", value: "saved" }
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  name: string;
19
19
  value: string;
20
20
  }[];
21
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Criteria" | "onChangeCriteria")[], "update:Criteria" | "onChangeCriteria", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
22
  scopeTitle: {
23
23
  type: StringConstructor;
24
24
  default: string;
@@ -28,7 +28,10 @@ declare const _default: import("vue").DefineComponent<{
28
28
  default: string;
29
29
  validator: (value: string) => boolean;
30
30
  };
31
- }>>, {
31
+ }>> & {
32
+ "onUpdate:Criteria"?: ((...args: any[]) => any) | undefined;
33
+ onOnChangeCriteria?: ((...args: any[]) => any) | undefined;
34
+ }, {
32
35
  lang: string;
33
36
  scopeTitle: string;
34
37
  }, {}>;
@@ -19,7 +19,7 @@ import {
19
19
  } from "vue";
20
20
  const ApexCharts = defineAsyncComponent(() => import("vue3-apexcharts"));
21
21
  export default defineComponent({
22
- name: "argChart",
22
+ name: "argSmallAreaChart",
23
23
  components: { apexchart: ApexCharts },
24
24
  props: {
25
25
  series: {
@@ -49,7 +49,7 @@ import {
49
49
  import argEmoji from "./argEmoji.vue";
50
50
  import argIcon from "./argIcon.vue";
51
51
  export default defineComponent({
52
- name: "argInfoBox",
52
+ name: "argTipsBox",
53
53
  components: { argEmoji, argIcon },
54
54
  props: {
55
55
  haveClose: {
@@ -110,13 +110,13 @@ export default defineComponent({
110
110
  bottom: 0;
111
111
  height: 0px;
112
112
  width: 0px;
113
- padding: 53px 82px;
114
113
  display: flex;
115
114
  align-items: center;
116
115
  justify-content: center;
117
116
  }
118
117
 
119
118
  .arg_tuto_modal_open {
119
+ padding: 53px 82px;
120
120
  z-index: 99;
121
121
  background-color: rgba(0, 0, 0, 0.4);
122
122
  width: calc(100% - 164px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",