@iankibetsh/shframework 1.4.8 → 1.5.0

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
  }
@@ -95,21 +95,6 @@
95
95
  flex-grow: 1;
96
96
  }
97
97
 
98
- .sh-selected-item{
99
- line-height: unset!important;
100
- }
101
- .sh-suggestion-input{
102
- padding: 0.375rem 0.75rem;
103
- }
104
- .sh-suggest{
105
- margin-bottom: 1rem;
106
- }
107
- .sh-suggest-control::after{
108
- margin-top: auto;
109
- margin-bottom: auto;
110
- margin-right: 0.255em;
111
- }
112
-
113
98
  :root {
114
99
  --ck-z-default: 10555 !important;
115
100
  --ck-z-modal: calc(var(--ck-z-default) + 999) !important;
@@ -131,6 +116,21 @@
131
116
  }
132
117
  }
133
118
 
119
+ .sh-selected-item{
120
+ line-height: unset!important;
121
+ }
122
+ .sh-suggestion-input{
123
+ padding: 0.375rem 0.75rem;
124
+ }
125
+ .sh-suggest{
126
+ margin-bottom: 1rem;
127
+ }
128
+ .sh-suggest-control::after{
129
+ margin-top: auto;
130
+ margin-bottom: auto;
131
+ margin-right: 0.255em;
132
+ }
133
+
134
134
  .sh-forgot-link, .sh-register-link{
135
135
  cursor: pointer;
136
136
  }
package/dist/library.js CHANGED
@@ -2392,8 +2392,11 @@ var script$l = {
2392
2392
  closeModal: function () {
2393
2393
  document.body.style = '';
2394
2394
  setTimeout(() => {
2395
- const closeBtn = this.$refs.ShAutoForm.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
2396
- closeBtn && closeBtn.click();
2395
+ const modal = this.$refs.ShAutoForm.closest('.modal-dialog');
2396
+ if(modal){
2397
+ const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
2398
+ closeBtn && closeBtn.click();
2399
+ }
2397
2400
  this.form_status = 0;
2398
2401
  }, 1500);
2399
2402
  },
@@ -3165,10 +3168,14 @@ const shFormElementClasses = vue.ref(null);
3165
3168
  shFormElementClasses.value = vue.inject('shFormElementClasses');
3166
3169
  const shAutoForm = vue.ref(null);
3167
3170
  const closeModal = e => {
3168
- setTimeout(()=>{
3169
- const closeBtn = shAutoForm.value.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
3170
- closeBtn && closeBtn.click();
3171
- },1000);
3171
+ setTimeout(() => {
3172
+ const modal = script$e.value.closest('.modal-dialog');
3173
+ if(modal){
3174
+ const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
3175
+ closeBtn && closeBtn.click();
3176
+ }
3177
+ this.form_status = 0;
3178
+ }, 1500);
3172
3179
  };
3173
3180
  const getLabel = field => (props.labels && (props.labels[field] !== undefined)) ? props.labels[field]:___default["default"].startCase(___default["default"].camelCase(field));
3174
3181
  const getComponentClass = field => validationErrors.value[field] ? getElementClass('formControl') + ' is-invalid':getElementClass('formControl');
@@ -5112,7 +5119,10 @@ const _hoisted_15 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createEl
5112
5119
 
5113
5120
  var script$3 = {
5114
5121
  __name: 'ManagePermissions',
5115
- setup(__props) {
5122
+ emits: ['success'],
5123
+ setup(__props, { emit }) {
5124
+
5125
+
5116
5126
 
5117
5127
  const userStore =useUserStore();
5118
5128
 
@@ -5154,6 +5164,7 @@ const getModulePermissions = () => {
5154
5164
  };
5155
5165
  const permissionsUpdated = (res)=>{
5156
5166
  userStore.setUser();
5167
+ emit('success');
5157
5168
  departmentModules.value = res.data.departmentModules;
5158
5169
  };
5159
5170
  function reformatModulePermissions(mPs){
package/dist/library.mjs CHANGED
@@ -2379,8 +2379,11 @@ var script$l = {
2379
2379
  closeModal: function () {
2380
2380
  document.body.style = '';
2381
2381
  setTimeout(() => {
2382
- const closeBtn = this.$refs.ShAutoForm.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
2383
- closeBtn && closeBtn.click();
2382
+ const modal = this.$refs.ShAutoForm.closest('.modal-dialog');
2383
+ if(modal){
2384
+ const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
2385
+ closeBtn && closeBtn.click();
2386
+ }
2384
2387
  this.form_status = 0;
2385
2388
  }, 1500);
2386
2389
  },
@@ -3152,10 +3155,14 @@ const shFormElementClasses = ref(null);
3152
3155
  shFormElementClasses.value = inject('shFormElementClasses');
3153
3156
  const shAutoForm = ref(null);
3154
3157
  const closeModal = e => {
3155
- setTimeout(()=>{
3156
- const closeBtn = shAutoForm.value.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
3157
- closeBtn && closeBtn.click();
3158
- },1000);
3158
+ setTimeout(() => {
3159
+ const modal = script$e.value.closest('.modal-dialog');
3160
+ if(modal){
3161
+ const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
3162
+ closeBtn && closeBtn.click();
3163
+ }
3164
+ this.form_status = 0;
3165
+ }, 1500);
3159
3166
  };
3160
3167
  const getLabel = field => (props.labels && (props.labels[field] !== undefined)) ? props.labels[field]:_.startCase(_.camelCase(field));
3161
3168
  const getComponentClass = field => validationErrors.value[field] ? getElementClass('formControl') + ' is-invalid':getElementClass('formControl');
@@ -5099,7 +5106,10 @@ const _hoisted_15 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElemen
5099
5106
 
5100
5107
  var script$3 = {
5101
5108
  __name: 'ManagePermissions',
5102
- setup(__props) {
5109
+ emits: ['success'],
5110
+ setup(__props, { emit }) {
5111
+
5112
+
5103
5113
 
5104
5114
  const userStore =useUserStore();
5105
5115
 
@@ -5141,6 +5151,7 @@ const getModulePermissions = () => {
5141
5151
  };
5142
5152
  const permissionsUpdated = (res)=>{
5143
5153
  userStore.setUser();
5154
+ emit('success');
5144
5155
  departmentModules.value = res.data.departmentModules;
5145
5156
  };
5146
5157
  function reformatModulePermissions(mPs){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",