aloha-vue 1.0.312 → 1.0.313

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/docs/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@popperjs/core": "2.11.6",
15
- "aloha-css": "1.0.90",
15
+ "aloha-css": "1.0.91",
16
16
  "dompurify": "2.4.1",
17
17
  "fecha": "^4.2.3",
18
18
  "lodash-es": "^4.17.21",
@@ -16,6 +16,7 @@ export default {
16
16
  addNotification({
17
17
  text: type,
18
18
  type,
19
+ timeout: 0,
19
20
  });
20
21
  };
21
22
 
@@ -37,6 +37,23 @@ export default {
37
37
  id: "tab_3",
38
38
  },
39
39
  ],
40
+ dataTabs3: [
41
+ {
42
+ id: "tab_1",
43
+ slotContent: "content1",
44
+ slotTab: "tab1",
45
+ },
46
+ {
47
+ id: "tab_2",
48
+ slotContent: "content2",
49
+ slotTab: "tab2",
50
+ },
51
+ {
52
+ id: "tab_3",
53
+ slotContent: "content3",
54
+ slotTab: "tab3",
55
+ },
56
+ ],
40
57
  };
41
58
  },
42
59
  };
@@ -49,3 +49,30 @@ div
49
49
  v-slot:content="{ tab }"
50
50
  )
51
51
  span {{ tab }}
52
+
53
+ a-tabs(
54
+ :data="dataTabs3"
55
+ :is-boxed="true"
56
+ )
57
+ template(
58
+ v-slot:content1
59
+ )
60
+ span content1
61
+
62
+ template(
63
+ v-slot:content2
64
+ )
65
+ span content2
66
+
67
+ template(
68
+ v-slot:tab1
69
+ )
70
+ span tab1
71
+ template(
72
+ v-slot:tab2
73
+ )
74
+ span tab2
75
+ template(
76
+ v-slot:tab3
77
+ )
78
+ span tab3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.312",
4
+ "version": "1.0.313",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -4,6 +4,7 @@ import {
4
4
  } from "vue";
5
5
 
6
6
  import {
7
+ isNil,
7
8
  values,
8
9
  } from "lodash-es";
9
10
 
@@ -28,7 +29,7 @@ export default function ANotificationAPI() {
28
29
  }
29
30
 
30
31
  export function addNotification({ text, type = "success", timeout }) {
31
- const TIMEOUT_LOCAL = timeout || notificationTimeout;
32
+ const TIMEOUT_LOCAL = isNil(timeout) ? notificationTimeout : timeout;
32
33
  const CURRENT_INDEX = notificationsCount;
33
34
  notificationsObj.value[CURRENT_INDEX] = {
34
35
  text,