@iankibetsh/shframework 1.8.5 → 1.8.7

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.
@@ -1,36 +1,4 @@
1
1
 
2
- .colored-toast.swal2-icon-success {
3
- background-color: #a5dc86 !important;
4
- }
5
-
6
- .colored-toast.swal2-icon-error {
7
- background-color: #f27474 !important;
8
- }
9
-
10
- .colored-toast.swal2-icon-warning {
11
- background-color: #f8bb86 !important;
12
- }
13
-
14
- .colored-toast.swal2-icon-info {
15
- background-color: #3fc3ee !important;
16
- }
17
-
18
- .colored-toast.swal2-icon-question {
19
- background-color: #87adbd !important;
20
- }
21
-
22
- .colored-toast .swal2-title {
23
- color: white;
24
- }
25
-
26
- .colored-toast .swal2-close {
27
- color: white;
28
- }
29
-
30
- .colored-toast .swal2-html-container {
31
- color: white;
32
- }
33
-
34
2
  .sh-phone{
35
3
  display: flex;
36
4
  width: 100%;
@@ -63,6 +31,38 @@
63
31
  opacity: 0.5;
64
32
  }
65
33
 
34
+ .colored-toast.swal2-icon-success {
35
+ background-color: #a5dc86 !important;
36
+ }
37
+
38
+ .colored-toast.swal2-icon-error {
39
+ background-color: #f27474 !important;
40
+ }
41
+
42
+ .colored-toast.swal2-icon-warning {
43
+ background-color: #f8bb86 !important;
44
+ }
45
+
46
+ .colored-toast.swal2-icon-info {
47
+ background-color: #3fc3ee !important;
48
+ }
49
+
50
+ .colored-toast.swal2-icon-question {
51
+ background-color: #87adbd !important;
52
+ }
53
+
54
+ .colored-toast .swal2-title {
55
+ color: white;
56
+ }
57
+
58
+ .colored-toast .swal2-close {
59
+ color: white;
60
+ }
61
+
62
+ .colored-toast .swal2-html-container {
63
+ color: white;
64
+ }
65
+
66
66
  .permissions-main {
67
67
  background: #edeff2;
68
68
  }
package/dist/library.js CHANGED
@@ -3130,7 +3130,6 @@ const closeModal = e => {
3130
3130
  const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
3131
3131
  closeBtn && closeBtn.click();
3132
3132
  }
3133
- this.form_status = 0;
3134
3133
  }, 1500);
3135
3134
  };
3136
3135
  const getLabel = field => (props.labels && (props.labels[field] !== undefined)) ? props.labels[field]:___default["default"].startCase(___default["default"].camelCase(field));
@@ -5016,7 +5015,8 @@ const tabExistsInUrl = () => {
5016
5015
  const setCounts = (res) => {
5017
5016
  Object.keys(res).forEach(key => {
5018
5017
  let elem = document.getElementsByClassName('sh_tab_' + key);
5019
- if (elem) {
5018
+ if (elem.length > 0) {
5019
+ elem = elem[0];
5020
5020
  let txt = elem.innerHTML;
5021
5021
  txt = txt.split('<i class="d-none"></i>')[0];
5022
5022
  if (parseInt(res[key]) > 0) {
package/dist/library.mjs CHANGED
@@ -3118,7 +3118,6 @@ const closeModal = e => {
3118
3118
  const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
3119
3119
  closeBtn && closeBtn.click();
3120
3120
  }
3121
- this.form_status = 0;
3122
3121
  }, 1500);
3123
3122
  };
3124
3123
  const getLabel = field => (props.labels && (props.labels[field] !== undefined)) ? props.labels[field]:_.startCase(_.camelCase(field));
@@ -5004,7 +5003,8 @@ const tabExistsInUrl = () => {
5004
5003
  const setCounts = (res) => {
5005
5004
  Object.keys(res).forEach(key => {
5006
5005
  let elem = document.getElementsByClassName('sh_tab_' + key);
5007
- if (elem) {
5006
+ if (elem.length > 0) {
5007
+ elem = elem[0];
5008
5008
  let txt = elem.innerHTML;
5009
5009
  txt = txt.split('<i class="d-none"></i>')[0];
5010
5010
  if (parseInt(res[key]) > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",