@iankibetsh/shframework 5.4.5 → 5.4.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.
@@ -1,36 +1,4 @@
1
1
 
2
- .sh-phone{
3
- display: flex;
4
- width: 100%;
5
- align-items: center;
6
- padding: 0 0.25rem;
7
- }
8
- .phone-country{
9
- width: 2rem;
10
- border: none;
11
- align-self: center;
12
- outline: none !important;
13
- padding: 0.4rem;
14
- border-right: 1px solid #0003;
15
- }
16
- .phone-number{
17
- width: calc(100% - 2.2rem);
18
- border: none;
19
- align-self: center;
20
- outline: none;
21
- margin-bottom: 0;
22
- padding: 0.4rem;
23
- }
24
- .sh-phone img{
25
- padding: 0.125rem;
26
- width: 2rem;
27
- height: 2rem;
28
- }
29
- .phone-number::placeholder{
30
- font-weight: 300;
31
- opacity: 0.5;
32
- }
33
-
34
2
  .colored-toast.swal2-icon-success {
35
3
  background-color: #a5dc86 !important;
36
4
  }
@@ -63,6 +31,38 @@
63
31
  color: white;
64
32
  }
65
33
 
34
+ .sh-phone{
35
+ display: flex;
36
+ width: 100%;
37
+ align-items: center;
38
+ padding: 0 0.25rem;
39
+ }
40
+ .phone-country{
41
+ width: 2rem;
42
+ border: none;
43
+ align-self: center;
44
+ outline: none !important;
45
+ padding: 0.4rem;
46
+ border-right: 1px solid #0003;
47
+ }
48
+ .phone-number{
49
+ width: calc(100% - 2.2rem);
50
+ border: none;
51
+ align-self: center;
52
+ outline: none;
53
+ margin-bottom: 0;
54
+ padding: 0.4rem;
55
+ }
56
+ .sh-phone img{
57
+ padding: 0.125rem;
58
+ width: 2rem;
59
+ height: 2rem;
60
+ }
61
+ .phone-number::placeholder{
62
+ font-weight: 300;
63
+ opacity: 0.5;
64
+ }
65
+
66
66
  .permissions-main {
67
67
  background: #edeff2;
68
68
  }
package/dist/library.js CHANGED
@@ -4185,7 +4185,9 @@ const useUserStore = pinia.defineStore('user-store', {
4185
4185
  };
4186
4186
  }
4187
4187
  this.user = user;
4188
- shApis.doGet(vue.inject('userEndpoint')).then(res => {
4188
+ const userEndpoint = vue.inject('userEndpoint','auth/user') ?? 'auth/user?defaults=1';
4189
+
4190
+ shApis.doGet(userEndpoint).then(res => {
4189
4191
  let user = res.data.user;
4190
4192
  if (typeof(user) === 'undefined') {
4191
4193
  user = res.data;
@@ -7560,8 +7562,8 @@ const ShFrontend = {
7560
7562
  const noRecordsComponent = options.noRecordsComponent ?? script$k;
7561
7563
  const registrationFields = options.registrationFields ?? ['name','email','phone','password','password_confirmation'];
7562
7564
  const AuthComponent = options.authComponent ?? script;
7563
- const baseApiUrl = options.baseApiUrl ?? undefined.VITE_APP_API_URL;
7564
7565
  const userEndpoint = options.userEndpoint ?? 'auth/user';
7566
+ const baseApiUrl = options.baseApiUrl ?? undefined.VITE_APP_API_URL;
7565
7567
  app.provide('loginEndpoint',loginEndpoint);
7566
7568
  app.provide('registerEndpoint', registerEndpoint);
7567
7569
  app.provide('registrationFields', registrationFields);
package/dist/library.mjs CHANGED
@@ -4173,7 +4173,9 @@ const useUserStore = defineStore('user-store', {
4173
4173
  };
4174
4174
  }
4175
4175
  this.user = user;
4176
- shApis.doGet(inject('userEndpoint')).then(res => {
4176
+ const userEndpoint = inject('userEndpoint','auth/user') ?? 'auth/user?defaults=1';
4177
+
4178
+ shApis.doGet(userEndpoint).then(res => {
4177
4179
  let user = res.data.user;
4178
4180
  if (typeof(user) === 'undefined') {
4179
4181
  user = res.data;
@@ -7548,8 +7550,8 @@ const ShFrontend = {
7548
7550
  const noRecordsComponent = options.noRecordsComponent ?? script$k;
7549
7551
  const registrationFields = options.registrationFields ?? ['name','email','phone','password','password_confirmation'];
7550
7552
  const AuthComponent = options.authComponent ?? script;
7551
- const baseApiUrl = options.baseApiUrl ?? import.meta.env.VITE_APP_API_URL;
7552
7553
  const userEndpoint = options.userEndpoint ?? 'auth/user';
7554
+ const baseApiUrl = options.baseApiUrl ?? import.meta.env.VITE_APP_API_URL;
7553
7555
  app.provide('loginEndpoint',loginEndpoint);
7554
7556
  app.provide('registerEndpoint', registerEndpoint);
7555
7557
  app.provide('registrationFields', registrationFields);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.4.5",
3
+ "version": "5.4.6",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",