@iankibetsh/shframework 0.6.7 → 0.6.9

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,6 +31,21 @@
31
31
  opacity: 0.5;
32
32
  }
33
33
 
34
+ .sh-selected-item{
35
+ line-height: unset!important;
36
+ }
37
+ .sh-suggestion-input{
38
+ padding: 0.375rem 0.75rem;
39
+ }
40
+ .sh-suggest{
41
+ margin-bottom: 1rem;
42
+ }
43
+ .sh-suggest-control::after{
44
+ margin-top: auto;
45
+ margin-bottom: auto;
46
+ margin-right: 0.255em;
47
+ }
48
+
34
49
  :root {
35
50
  --ck-z-default: 10555 !important;
36
51
  --ck-z-modal: calc(var(--ck-z-default) + 999) !important;
@@ -55,18 +70,3 @@
55
70
  .sh-forgot-link, .sh-register-link{
56
71
  cursor: pointer;
57
72
  }
58
-
59
- .sh-selected-item{
60
- line-height: unset!important;
61
- }
62
- .sh-suggestion-input{
63
- padding: 0.375rem 0.75rem;
64
- }
65
- .sh-suggest{
66
- margin-bottom: 1rem;
67
- }
68
- .sh-suggest-control::after{
69
- margin-top: auto;
70
- margin-bottom: auto;
71
- margin-right: 0.255em;
72
- }
package/dist/library.js CHANGED
@@ -2516,7 +2516,7 @@ var script$8 = {
2516
2516
  },
2517
2517
  data () {
2518
2518
  return {
2519
- side: this.position === undefined ? 'offcanvas-bottom' : 'offcanvas-' + this.position
2519
+ side: this.position === undefined ? 'offcanvas-start' : 'offcanvas-' + this.position
2520
2520
  }
2521
2521
  },
2522
2522
  methods: {
@@ -3942,6 +3942,10 @@ const useUserStore = pinia.defineStore('user-store', {
3942
3942
  this.user = user;
3943
3943
  }).catch((reason) => {
3944
3944
  if (reason.response && reason.response.status) {
3945
+ if(reason.response.status === 401) {
3946
+ ShStorage.setItem('user',null);
3947
+ this.user = null;
3948
+ }
3945
3949
  this.loggedOut = true;
3946
3950
  }
3947
3951
  });
package/dist/library.mjs CHANGED
@@ -2504,7 +2504,7 @@ var script$8 = {
2504
2504
  },
2505
2505
  data () {
2506
2506
  return {
2507
- side: this.position === undefined ? 'offcanvas-bottom' : 'offcanvas-' + this.position
2507
+ side: this.position === undefined ? 'offcanvas-start' : 'offcanvas-' + this.position
2508
2508
  }
2509
2509
  },
2510
2510
  methods: {
@@ -3930,6 +3930,10 @@ const useUserStore = defineStore('user-store', {
3930
3930
  this.user = user;
3931
3931
  }).catch((reason) => {
3932
3932
  if (reason.response && reason.response.status) {
3933
+ if(reason.response.status === 401) {
3934
+ ShStorage.setItem('user',null);
3935
+ this.user = null;
3936
+ }
3933
3937
  this.loggedOut = true;
3934
3938
  }
3935
3939
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",