@iankibetsh/shframework 4.2.4 → 4.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.
- package/dist/library.js +33 -30
- package/dist/library.mjs +37 -34
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -406,7 +406,7 @@ const axios = Axios__default["default"].create({
|
|
|
406
406
|
window.shAxionInstance = axios;
|
|
407
407
|
function doGet (endPoint, data,extraConfig) {
|
|
408
408
|
updateSession();
|
|
409
|
-
|
|
409
|
+
let config = {
|
|
410
410
|
headers: {
|
|
411
411
|
Authorization: 'Bearer ' + ShStorage.getItem('access_token')
|
|
412
412
|
}
|
|
@@ -416,7 +416,8 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
416
416
|
}
|
|
417
417
|
return axios.get(endPoint, {
|
|
418
418
|
params: data,
|
|
419
|
-
crossOrigin: true
|
|
419
|
+
crossOrigin: true,
|
|
420
|
+
...config
|
|
420
421
|
})
|
|
421
422
|
}
|
|
422
423
|
function doPost (endPoint, data, extraConfig) {
|
|
@@ -5928,13 +5929,36 @@ return (_ctx, _cache) => {
|
|
|
5928
5929
|
script$6.__scopeId = "data-v-0d4fa0ac";
|
|
5929
5930
|
script$6.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5930
5931
|
|
|
5931
|
-
const
|
|
5932
|
+
const useAppStore = pinia.defineStore('sh-app',{
|
|
5933
|
+
state: ()=>{
|
|
5934
|
+
return {
|
|
5935
|
+
refreshKey: 0,
|
|
5936
|
+
appData: {}
|
|
5937
|
+
}
|
|
5938
|
+
},
|
|
5939
|
+
actions: {
|
|
5940
|
+
refreshPage () {
|
|
5941
|
+
this.refreshKey++;
|
|
5942
|
+
return true
|
|
5943
|
+
},
|
|
5944
|
+
refresh () {
|
|
5945
|
+
this.refreshKey++;
|
|
5946
|
+
return true
|
|
5947
|
+
},
|
|
5948
|
+
reload () {
|
|
5949
|
+
this.refreshKey++;
|
|
5950
|
+
return true
|
|
5951
|
+
}
|
|
5952
|
+
}
|
|
5953
|
+
});
|
|
5932
5954
|
|
|
5955
|
+
const _hoisted_1$3 = ["href"];
|
|
5933
5956
|
|
|
5934
5957
|
var script$5 = {
|
|
5935
5958
|
__name: 'ShRoutePopups',
|
|
5936
5959
|
setup(__props) {
|
|
5937
5960
|
|
|
5961
|
+
const {refreshKey} = pinia.storeToRefs(useAppStore());
|
|
5938
5962
|
const route = vueRouter.useRoute();
|
|
5939
5963
|
const popUp = vue.ref(route.meta.popUp);
|
|
5940
5964
|
const modalId = ___default["default"].uniqueId('modal_');
|
|
@@ -6023,7 +6047,7 @@ return (_ctx, _cache) => {
|
|
|
6023
6047
|
"data-bs-keyboard": "false"
|
|
6024
6048
|
}, {
|
|
6025
6049
|
default: vue.withCtx(() => [
|
|
6026
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
6050
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value), { key: vue.unref(refreshKey) }))
|
|
6027
6051
|
]),
|
|
6028
6052
|
_: 1 /* STABLE */
|
|
6029
6053
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6037,7 +6061,7 @@ return (_ctx, _cache) => {
|
|
|
6037
6061
|
position: position.value
|
|
6038
6062
|
}, {
|
|
6039
6063
|
default: vue.withCtx(() => [
|
|
6040
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
6064
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value), { key: vue.unref(refreshKey) }))
|
|
6041
6065
|
]),
|
|
6042
6066
|
_: 1 /* STABLE */
|
|
6043
6067
|
}, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
|
|
@@ -6087,6 +6111,8 @@ const size = vue.ref(null);
|
|
|
6087
6111
|
const title = vue.ref(null);
|
|
6088
6112
|
vue.ref(null);
|
|
6089
6113
|
|
|
6114
|
+
const {refreshKey} = storeToRefs(useAppStore());
|
|
6115
|
+
|
|
6090
6116
|
vue.watch(() => route.query.popup, pop => {
|
|
6091
6117
|
popUp.value = pop;
|
|
6092
6118
|
position.value = route.query.position ?? route.query.side;
|
|
@@ -6170,7 +6196,7 @@ return (_ctx, _cache) => {
|
|
|
6170
6196
|
"modal-size": size.value
|
|
6171
6197
|
}, {
|
|
6172
6198
|
default: vue.withCtx(() => [
|
|
6173
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
|
|
6199
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent)), { key: vue.unref(refreshKey) }))
|
|
6174
6200
|
]),
|
|
6175
6201
|
_: 1 /* STABLE */
|
|
6176
6202
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6184,7 +6210,7 @@ return (_ctx, _cache) => {
|
|
|
6184
6210
|
position: position.value
|
|
6185
6211
|
}, {
|
|
6186
6212
|
default: vue.withCtx(() => [
|
|
6187
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
|
|
6213
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent)), { key: vue.unref(refreshKey) }))
|
|
6188
6214
|
]),
|
|
6189
6215
|
_: 1 /* STABLE */
|
|
6190
6216
|
}, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
|
|
@@ -6197,29 +6223,6 @@ return (_ctx, _cache) => {
|
|
|
6197
6223
|
|
|
6198
6224
|
script$3.__file = "src/lib/components/popups/ShQueryPopups.vue";
|
|
6199
6225
|
|
|
6200
|
-
const useAppStore = pinia.defineStore('sh-app',{
|
|
6201
|
-
state: ()=>{
|
|
6202
|
-
return {
|
|
6203
|
-
refreshKey: 0,
|
|
6204
|
-
appData: {}
|
|
6205
|
-
}
|
|
6206
|
-
},
|
|
6207
|
-
actions: {
|
|
6208
|
-
refreshPage () {
|
|
6209
|
-
this.refreshKey++;
|
|
6210
|
-
return true
|
|
6211
|
-
},
|
|
6212
|
-
refresh () {
|
|
6213
|
-
this.refreshKey++;
|
|
6214
|
-
return true
|
|
6215
|
-
},
|
|
6216
|
-
reload () {
|
|
6217
|
-
this.refreshKey++;
|
|
6218
|
-
return true
|
|
6219
|
-
}
|
|
6220
|
-
}
|
|
6221
|
-
});
|
|
6222
|
-
|
|
6223
6226
|
const _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
6224
6227
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
6225
6228
|
const _hoisted_3$2 = { class: "card-body" };
|
package/dist/library.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { Modal, Offcanvas } from 'bootstrap';
|
|
|
5
5
|
import NProgress from 'nprogress';
|
|
6
6
|
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, unref, normalizeClass, resolveComponent, createBlock, resolveDynamicComponent, watch, inject, mergeProps, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps, withCtx, vModelCheckbox, shallowRef, pushScopeId, popScopeId, markRaw, computed, isRef } from 'vue';
|
|
7
7
|
import _ from 'lodash';
|
|
8
|
-
import { defineStore, storeToRefs } from 'pinia';
|
|
8
|
+
import { defineStore, storeToRefs as storeToRefs$1 } from 'pinia';
|
|
9
9
|
import { useRoute, useRouter } from 'vue-router';
|
|
10
10
|
|
|
11
11
|
function setItem (key, value) {
|
|
@@ -394,7 +394,7 @@ const axios = Axios.create({
|
|
|
394
394
|
window.shAxionInstance = axios;
|
|
395
395
|
function doGet (endPoint, data,extraConfig) {
|
|
396
396
|
updateSession();
|
|
397
|
-
|
|
397
|
+
let config = {
|
|
398
398
|
headers: {
|
|
399
399
|
Authorization: 'Bearer ' + ShStorage.getItem('access_token')
|
|
400
400
|
}
|
|
@@ -404,7 +404,8 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
404
404
|
}
|
|
405
405
|
return axios.get(endPoint, {
|
|
406
406
|
params: data,
|
|
407
|
-
crossOrigin: true
|
|
407
|
+
crossOrigin: true,
|
|
408
|
+
...config
|
|
408
409
|
})
|
|
409
410
|
}
|
|
410
411
|
function doPost (endPoint, data, extraConfig) {
|
|
@@ -4926,7 +4927,7 @@ var script$b = /*#__PURE__*/Object.assign(__default__, {
|
|
|
4926
4927
|
|
|
4927
4928
|
const noRecordsComponent = inject('noRecordsComponent', script$g);
|
|
4928
4929
|
|
|
4929
|
-
const {user} = storeToRefs(useUserStore());
|
|
4930
|
+
const {user} = storeToRefs$1(useUserStore());
|
|
4930
4931
|
|
|
4931
4932
|
return (_ctx, _cache) => {
|
|
4932
4933
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -5916,13 +5917,36 @@ return (_ctx, _cache) => {
|
|
|
5916
5917
|
script$6.__scopeId = "data-v-0d4fa0ac";
|
|
5917
5918
|
script$6.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5918
5919
|
|
|
5919
|
-
const
|
|
5920
|
+
const useAppStore = defineStore('sh-app',{
|
|
5921
|
+
state: ()=>{
|
|
5922
|
+
return {
|
|
5923
|
+
refreshKey: 0,
|
|
5924
|
+
appData: {}
|
|
5925
|
+
}
|
|
5926
|
+
},
|
|
5927
|
+
actions: {
|
|
5928
|
+
refreshPage () {
|
|
5929
|
+
this.refreshKey++;
|
|
5930
|
+
return true
|
|
5931
|
+
},
|
|
5932
|
+
refresh () {
|
|
5933
|
+
this.refreshKey++;
|
|
5934
|
+
return true
|
|
5935
|
+
},
|
|
5936
|
+
reload () {
|
|
5937
|
+
this.refreshKey++;
|
|
5938
|
+
return true
|
|
5939
|
+
}
|
|
5940
|
+
}
|
|
5941
|
+
});
|
|
5920
5942
|
|
|
5943
|
+
const _hoisted_1$3 = ["href"];
|
|
5921
5944
|
|
|
5922
5945
|
var script$5 = {
|
|
5923
5946
|
__name: 'ShRoutePopups',
|
|
5924
5947
|
setup(__props) {
|
|
5925
5948
|
|
|
5949
|
+
const {refreshKey} = storeToRefs$1(useAppStore());
|
|
5926
5950
|
const route = useRoute();
|
|
5927
5951
|
const popUp = ref(route.meta.popUp);
|
|
5928
5952
|
const modalId = _.uniqueId('modal_');
|
|
@@ -6011,7 +6035,7 @@ return (_ctx, _cache) => {
|
|
|
6011
6035
|
"data-bs-keyboard": "false"
|
|
6012
6036
|
}, {
|
|
6013
6037
|
default: withCtx(() => [
|
|
6014
|
-
(openBlock(), createBlock(resolveDynamicComponent(componentView.value)))
|
|
6038
|
+
(openBlock(), createBlock(resolveDynamicComponent(componentView.value), { key: unref(refreshKey) }))
|
|
6015
6039
|
]),
|
|
6016
6040
|
_: 1 /* STABLE */
|
|
6017
6041
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6025,7 +6049,7 @@ return (_ctx, _cache) => {
|
|
|
6025
6049
|
position: position.value
|
|
6026
6050
|
}, {
|
|
6027
6051
|
default: withCtx(() => [
|
|
6028
|
-
(openBlock(), createBlock(resolveDynamicComponent(componentView.value)))
|
|
6052
|
+
(openBlock(), createBlock(resolveDynamicComponent(componentView.value), { key: unref(refreshKey) }))
|
|
6029
6053
|
]),
|
|
6030
6054
|
_: 1 /* STABLE */
|
|
6031
6055
|
}, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
|
|
@@ -6075,6 +6099,8 @@ const size = ref(null);
|
|
|
6075
6099
|
const title = ref(null);
|
|
6076
6100
|
ref(null);
|
|
6077
6101
|
|
|
6102
|
+
const {refreshKey} = storeToRefs(useAppStore());
|
|
6103
|
+
|
|
6078
6104
|
watch(() => route.query.popup, pop => {
|
|
6079
6105
|
popUp.value = pop;
|
|
6080
6106
|
position.value = route.query.position ?? route.query.side;
|
|
@@ -6158,7 +6184,7 @@ return (_ctx, _cache) => {
|
|
|
6158
6184
|
"modal-size": size.value
|
|
6159
6185
|
}, {
|
|
6160
6186
|
default: withCtx(() => [
|
|
6161
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
6187
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent)), { key: unref(refreshKey) }))
|
|
6162
6188
|
]),
|
|
6163
6189
|
_: 1 /* STABLE */
|
|
6164
6190
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6172,7 +6198,7 @@ return (_ctx, _cache) => {
|
|
|
6172
6198
|
position: position.value
|
|
6173
6199
|
}, {
|
|
6174
6200
|
default: withCtx(() => [
|
|
6175
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
6201
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent)), { key: unref(refreshKey) }))
|
|
6176
6202
|
]),
|
|
6177
6203
|
_: 1 /* STABLE */
|
|
6178
6204
|
}, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
|
|
@@ -6185,29 +6211,6 @@ return (_ctx, _cache) => {
|
|
|
6185
6211
|
|
|
6186
6212
|
script$3.__file = "src/lib/components/popups/ShQueryPopups.vue";
|
|
6187
6213
|
|
|
6188
|
-
const useAppStore = defineStore('sh-app',{
|
|
6189
|
-
state: ()=>{
|
|
6190
|
-
return {
|
|
6191
|
-
refreshKey: 0,
|
|
6192
|
-
appData: {}
|
|
6193
|
-
}
|
|
6194
|
-
},
|
|
6195
|
-
actions: {
|
|
6196
|
-
refreshPage () {
|
|
6197
|
-
this.refreshKey++;
|
|
6198
|
-
return true
|
|
6199
|
-
},
|
|
6200
|
-
refresh () {
|
|
6201
|
-
this.refreshKey++;
|
|
6202
|
-
return true
|
|
6203
|
-
},
|
|
6204
|
-
reload () {
|
|
6205
|
-
this.refreshKey++;
|
|
6206
|
-
return true
|
|
6207
|
-
}
|
|
6208
|
-
}
|
|
6209
|
-
});
|
|
6210
|
-
|
|
6211
6214
|
const _hoisted_1$2 = /*#__PURE__*/createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
6212
6215
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
6213
6216
|
const _hoisted_3$2 = { class: "card-body" };
|
|
@@ -6325,7 +6328,7 @@ let modulePermissions = ref(null);
|
|
|
6325
6328
|
let selectedPermissions = ref([]);
|
|
6326
6329
|
const userStore = useUserStore();
|
|
6327
6330
|
|
|
6328
|
-
storeToRefs(userStore);
|
|
6331
|
+
storeToRefs$1(userStore);
|
|
6329
6332
|
|
|
6330
6333
|
onMounted(() => {
|
|
6331
6334
|
getDepartment();
|
|
@@ -6539,7 +6542,7 @@ var script = {
|
|
|
6539
6542
|
const router = useRouter();
|
|
6540
6543
|
const userStore = useUserStore();
|
|
6541
6544
|
userStore.setUser();
|
|
6542
|
-
const {user} = storeToRefs(userStore);
|
|
6545
|
+
const {user} = storeToRefs$1(userStore);
|
|
6543
6546
|
const section = ref('login');
|
|
6544
6547
|
const registerEndpoint = inject('registerEndpoint');
|
|
6545
6548
|
const loginEndpoint = inject('loginEndpoint');
|