@iankibetsh/shframework 5.2.4 → 5.2.6

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.
@@ -31,38 +31,6 @@
31
31
  opacity: 0.5;
32
32
  }
33
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
34
  .permissions-main {
67
35
  background: #edeff2;
68
36
  }
@@ -111,6 +79,42 @@
111
79
  margin-right: 0.255em;
112
80
  }
113
81
 
82
+ .colored-toast.swal2-icon-success {
83
+ background-color: #a5dc86 !important;
84
+ }
85
+
86
+ .colored-toast.swal2-icon-error {
87
+ background-color: #f27474 !important;
88
+ }
89
+
90
+ .colored-toast.swal2-icon-warning {
91
+ background-color: #f8bb86 !important;
92
+ }
93
+
94
+ .colored-toast.swal2-icon-info {
95
+ background-color: #3fc3ee !important;
96
+ }
97
+
98
+ .colored-toast.swal2-icon-question {
99
+ background-color: #87adbd !important;
100
+ }
101
+
102
+ .colored-toast .swal2-title {
103
+ color: white;
104
+ }
105
+
106
+ .colored-toast .swal2-close {
107
+ color: white;
108
+ }
109
+
110
+ .colored-toast .swal2-html-container {
111
+ color: white;
112
+ }
113
+
114
+ .sh-forgot-link, .sh-register-link{
115
+ cursor: pointer;
116
+ }
117
+
114
118
  .callout{
115
119
  --bs-link-color-rgb: 110,168,254;
116
120
  --bs-code-color: #e685b5;
@@ -126,7 +130,3 @@
126
130
  --bd-callout-bg: var(--bs-info-bg-subtle);
127
131
  --bd-callout-border: var(--bs-info-border-subtle);
128
132
  }
129
-
130
- .sh-forgot-link, .sh-register-link{
131
- cursor: pointer;
132
- }
package/dist/library.js CHANGED
@@ -437,11 +437,18 @@ const axios = Axios__default["default"].create({
437
437
  window.shAxionInstance = axios;
438
438
  function doGet (endPoint, data,extraConfig) {
439
439
  updateSession();
440
- let config = {
441
- headers: {
442
- Authorization: 'Bearer ' + shStorage.getItem('access_token')
440
+ let accessToken = shStorage.getItem('access_token');
441
+ if(accessToken === 'undefined' || accessToken === 'null'){
442
+ accessToken = null;
443
+ }
444
+ let config = {};
445
+ if(accessToken){
446
+ config = {
447
+ headers: {
448
+ Authorization: 'Bearer ' + accessToken
449
+ }
450
+ };
443
451
  }
444
- };
445
452
  if (extraConfig) {
446
453
  Object.assign(config, extraConfig);
447
454
  }
@@ -3730,6 +3737,7 @@ const _hoisted_2$e = { class: "modal-content" };
3730
3737
  const _hoisted_3$c = { class: "modal-header" };
3731
3738
  const _hoisted_4$c = { class: "modal-title flex-fill" };
3732
3739
  const _hoisted_5$9 = /*#__PURE__*/vue.createElementVNode("button", {
3740
+ type: "button",
3733
3741
  class: "btn btn-danger btn-sm",
3734
3742
  "data-bs-dismiss": "modal",
3735
3743
  "data-dismiss": "modal"
@@ -3817,7 +3825,7 @@ return (_ctx, _cache) => {
3817
3825
  script$p.__file = "src/lib/components/ShModal.vue";
3818
3826
 
3819
3827
  const _hoisted_1$l = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3820
- const _hoisted_2$d = { class: "dropdown" };
3828
+ const _hoisted_2$d = { class: "dropdown sh-dropdown-form" };
3821
3829
  const _hoisted_3$b = ["id"];
3822
3830
  const _hoisted_4$b = ["aria-labelledby"];
3823
3831
 
package/dist/library.mjs CHANGED
@@ -425,11 +425,18 @@ const axios = Axios.create({
425
425
  window.shAxionInstance = axios;
426
426
  function doGet (endPoint, data,extraConfig) {
427
427
  updateSession();
428
- let config = {
429
- headers: {
430
- Authorization: 'Bearer ' + shStorage.getItem('access_token')
428
+ let accessToken = shStorage.getItem('access_token');
429
+ if(accessToken === 'undefined' || accessToken === 'null'){
430
+ accessToken = null;
431
+ }
432
+ let config = {};
433
+ if(accessToken){
434
+ config = {
435
+ headers: {
436
+ Authorization: 'Bearer ' + accessToken
437
+ }
438
+ };
431
439
  }
432
- };
433
440
  if (extraConfig) {
434
441
  Object.assign(config, extraConfig);
435
442
  }
@@ -3718,6 +3725,7 @@ const _hoisted_2$e = { class: "modal-content" };
3718
3725
  const _hoisted_3$c = { class: "modal-header" };
3719
3726
  const _hoisted_4$c = { class: "modal-title flex-fill" };
3720
3727
  const _hoisted_5$9 = /*#__PURE__*/createElementVNode("button", {
3728
+ type: "button",
3721
3729
  class: "btn btn-danger btn-sm",
3722
3730
  "data-bs-dismiss": "modal",
3723
3731
  "data-dismiss": "modal"
@@ -3805,7 +3813,7 @@ return (_ctx, _cache) => {
3805
3813
  script$p.__file = "src/lib/components/ShModal.vue";
3806
3814
 
3807
3815
  const _hoisted_1$l = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3808
- const _hoisted_2$d = { class: "dropdown" };
3816
+ const _hoisted_2$d = { class: "dropdown sh-dropdown-form" };
3809
3817
  const _hoisted_3$b = ["id"];
3810
3818
  const _hoisted_4$b = ["aria-labelledby"];
3811
3819
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.2.4",
3
+ "version": "5.2.6",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",