@iankibetsh/shframework 4.2.5 → 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 +30 -28
- package/dist/library.mjs +34 -32
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -5929,13 +5929,36 @@ return (_ctx, _cache) => {
|
|
|
5929
5929
|
script$6.__scopeId = "data-v-0d4fa0ac";
|
|
5930
5930
|
script$6.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5931
5931
|
|
|
5932
|
-
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
|
+
});
|
|
5933
5954
|
|
|
5955
|
+
const _hoisted_1$3 = ["href"];
|
|
5934
5956
|
|
|
5935
5957
|
var script$5 = {
|
|
5936
5958
|
__name: 'ShRoutePopups',
|
|
5937
5959
|
setup(__props) {
|
|
5938
5960
|
|
|
5961
|
+
const {refreshKey} = pinia.storeToRefs(useAppStore());
|
|
5939
5962
|
const route = vueRouter.useRoute();
|
|
5940
5963
|
const popUp = vue.ref(route.meta.popUp);
|
|
5941
5964
|
const modalId = ___default["default"].uniqueId('modal_');
|
|
@@ -6024,7 +6047,7 @@ return (_ctx, _cache) => {
|
|
|
6024
6047
|
"data-bs-keyboard": "false"
|
|
6025
6048
|
}, {
|
|
6026
6049
|
default: vue.withCtx(() => [
|
|
6027
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
6050
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value), { key: vue.unref(refreshKey) }))
|
|
6028
6051
|
]),
|
|
6029
6052
|
_: 1 /* STABLE */
|
|
6030
6053
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6038,7 +6061,7 @@ return (_ctx, _cache) => {
|
|
|
6038
6061
|
position: position.value
|
|
6039
6062
|
}, {
|
|
6040
6063
|
default: vue.withCtx(() => [
|
|
6041
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
6064
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value), { key: vue.unref(refreshKey) }))
|
|
6042
6065
|
]),
|
|
6043
6066
|
_: 1 /* STABLE */
|
|
6044
6067
|
}, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
|
|
@@ -6088,6 +6111,8 @@ const size = vue.ref(null);
|
|
|
6088
6111
|
const title = vue.ref(null);
|
|
6089
6112
|
vue.ref(null);
|
|
6090
6113
|
|
|
6114
|
+
const {refreshKey} = storeToRefs(useAppStore());
|
|
6115
|
+
|
|
6091
6116
|
vue.watch(() => route.query.popup, pop => {
|
|
6092
6117
|
popUp.value = pop;
|
|
6093
6118
|
position.value = route.query.position ?? route.query.side;
|
|
@@ -6171,7 +6196,7 @@ return (_ctx, _cache) => {
|
|
|
6171
6196
|
"modal-size": size.value
|
|
6172
6197
|
}, {
|
|
6173
6198
|
default: vue.withCtx(() => [
|
|
6174
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
|
|
6199
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent)), { key: vue.unref(refreshKey) }))
|
|
6175
6200
|
]),
|
|
6176
6201
|
_: 1 /* STABLE */
|
|
6177
6202
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6185,7 +6210,7 @@ return (_ctx, _cache) => {
|
|
|
6185
6210
|
position: position.value
|
|
6186
6211
|
}, {
|
|
6187
6212
|
default: vue.withCtx(() => [
|
|
6188
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
|
|
6213
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent)), { key: vue.unref(refreshKey) }))
|
|
6189
6214
|
]),
|
|
6190
6215
|
_: 1 /* STABLE */
|
|
6191
6216
|
}, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
|
|
@@ -6198,29 +6223,6 @@ return (_ctx, _cache) => {
|
|
|
6198
6223
|
|
|
6199
6224
|
script$3.__file = "src/lib/components/popups/ShQueryPopups.vue";
|
|
6200
6225
|
|
|
6201
|
-
const useAppStore = pinia.defineStore('sh-app',{
|
|
6202
|
-
state: ()=>{
|
|
6203
|
-
return {
|
|
6204
|
-
refreshKey: 0,
|
|
6205
|
-
appData: {}
|
|
6206
|
-
}
|
|
6207
|
-
},
|
|
6208
|
-
actions: {
|
|
6209
|
-
refreshPage () {
|
|
6210
|
-
this.refreshKey++;
|
|
6211
|
-
return true
|
|
6212
|
-
},
|
|
6213
|
-
refresh () {
|
|
6214
|
-
this.refreshKey++;
|
|
6215
|
-
return true
|
|
6216
|
-
},
|
|
6217
|
-
reload () {
|
|
6218
|
-
this.refreshKey++;
|
|
6219
|
-
return true
|
|
6220
|
-
}
|
|
6221
|
-
}
|
|
6222
|
-
});
|
|
6223
|
-
|
|
6224
6226
|
const _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
6225
6227
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
6226
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) {
|
|
@@ -4927,7 +4927,7 @@ var script$b = /*#__PURE__*/Object.assign(__default__, {
|
|
|
4927
4927
|
|
|
4928
4928
|
const noRecordsComponent = inject('noRecordsComponent', script$g);
|
|
4929
4929
|
|
|
4930
|
-
const {user} = storeToRefs(useUserStore());
|
|
4930
|
+
const {user} = storeToRefs$1(useUserStore());
|
|
4931
4931
|
|
|
4932
4932
|
return (_ctx, _cache) => {
|
|
4933
4933
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -5917,13 +5917,36 @@ return (_ctx, _cache) => {
|
|
|
5917
5917
|
script$6.__scopeId = "data-v-0d4fa0ac";
|
|
5918
5918
|
script$6.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5919
5919
|
|
|
5920
|
-
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
|
+
});
|
|
5921
5942
|
|
|
5943
|
+
const _hoisted_1$3 = ["href"];
|
|
5922
5944
|
|
|
5923
5945
|
var script$5 = {
|
|
5924
5946
|
__name: 'ShRoutePopups',
|
|
5925
5947
|
setup(__props) {
|
|
5926
5948
|
|
|
5949
|
+
const {refreshKey} = storeToRefs$1(useAppStore());
|
|
5927
5950
|
const route = useRoute();
|
|
5928
5951
|
const popUp = ref(route.meta.popUp);
|
|
5929
5952
|
const modalId = _.uniqueId('modal_');
|
|
@@ -6012,7 +6035,7 @@ return (_ctx, _cache) => {
|
|
|
6012
6035
|
"data-bs-keyboard": "false"
|
|
6013
6036
|
}, {
|
|
6014
6037
|
default: withCtx(() => [
|
|
6015
|
-
(openBlock(), createBlock(resolveDynamicComponent(componentView.value)))
|
|
6038
|
+
(openBlock(), createBlock(resolveDynamicComponent(componentView.value), { key: unref(refreshKey) }))
|
|
6016
6039
|
]),
|
|
6017
6040
|
_: 1 /* STABLE */
|
|
6018
6041
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6026,7 +6049,7 @@ return (_ctx, _cache) => {
|
|
|
6026
6049
|
position: position.value
|
|
6027
6050
|
}, {
|
|
6028
6051
|
default: withCtx(() => [
|
|
6029
|
-
(openBlock(), createBlock(resolveDynamicComponent(componentView.value)))
|
|
6052
|
+
(openBlock(), createBlock(resolveDynamicComponent(componentView.value), { key: unref(refreshKey) }))
|
|
6030
6053
|
]),
|
|
6031
6054
|
_: 1 /* STABLE */
|
|
6032
6055
|
}, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
|
|
@@ -6076,6 +6099,8 @@ const size = ref(null);
|
|
|
6076
6099
|
const title = ref(null);
|
|
6077
6100
|
ref(null);
|
|
6078
6101
|
|
|
6102
|
+
const {refreshKey} = storeToRefs(useAppStore());
|
|
6103
|
+
|
|
6079
6104
|
watch(() => route.query.popup, pop => {
|
|
6080
6105
|
popUp.value = pop;
|
|
6081
6106
|
position.value = route.query.position ?? route.query.side;
|
|
@@ -6159,7 +6184,7 @@ return (_ctx, _cache) => {
|
|
|
6159
6184
|
"modal-size": size.value
|
|
6160
6185
|
}, {
|
|
6161
6186
|
default: withCtx(() => [
|
|
6162
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
6187
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent)), { key: unref(refreshKey) }))
|
|
6163
6188
|
]),
|
|
6164
6189
|
_: 1 /* STABLE */
|
|
6165
6190
|
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
@@ -6173,7 +6198,7 @@ return (_ctx, _cache) => {
|
|
|
6173
6198
|
position: position.value
|
|
6174
6199
|
}, {
|
|
6175
6200
|
default: withCtx(() => [
|
|
6176
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
6201
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent)), { key: unref(refreshKey) }))
|
|
6177
6202
|
]),
|
|
6178
6203
|
_: 1 /* STABLE */
|
|
6179
6204
|
}, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
|
|
@@ -6186,29 +6211,6 @@ return (_ctx, _cache) => {
|
|
|
6186
6211
|
|
|
6187
6212
|
script$3.__file = "src/lib/components/popups/ShQueryPopups.vue";
|
|
6188
6213
|
|
|
6189
|
-
const useAppStore = defineStore('sh-app',{
|
|
6190
|
-
state: ()=>{
|
|
6191
|
-
return {
|
|
6192
|
-
refreshKey: 0,
|
|
6193
|
-
appData: {}
|
|
6194
|
-
}
|
|
6195
|
-
},
|
|
6196
|
-
actions: {
|
|
6197
|
-
refreshPage () {
|
|
6198
|
-
this.refreshKey++;
|
|
6199
|
-
return true
|
|
6200
|
-
},
|
|
6201
|
-
refresh () {
|
|
6202
|
-
this.refreshKey++;
|
|
6203
|
-
return true
|
|
6204
|
-
},
|
|
6205
|
-
reload () {
|
|
6206
|
-
this.refreshKey++;
|
|
6207
|
-
return true
|
|
6208
|
-
}
|
|
6209
|
-
}
|
|
6210
|
-
});
|
|
6211
|
-
|
|
6212
6214
|
const _hoisted_1$2 = /*#__PURE__*/createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
6213
6215
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
6214
6216
|
const _hoisted_3$2 = { class: "card-body" };
|
|
@@ -6326,7 +6328,7 @@ let modulePermissions = ref(null);
|
|
|
6326
6328
|
let selectedPermissions = ref([]);
|
|
6327
6329
|
const userStore = useUserStore();
|
|
6328
6330
|
|
|
6329
|
-
storeToRefs(userStore);
|
|
6331
|
+
storeToRefs$1(userStore);
|
|
6330
6332
|
|
|
6331
6333
|
onMounted(() => {
|
|
6332
6334
|
getDepartment();
|
|
@@ -6540,7 +6542,7 @@ var script = {
|
|
|
6540
6542
|
const router = useRouter();
|
|
6541
6543
|
const userStore = useUserStore();
|
|
6542
6544
|
userStore.setUser();
|
|
6543
|
-
const {user} = storeToRefs(userStore);
|
|
6545
|
+
const {user} = storeToRefs$1(userStore);
|
|
6544
6546
|
const section = ref('login');
|
|
6545
6547
|
const registerEndpoint = inject('registerEndpoint');
|
|
6546
6548
|
const loginEndpoint = inject('loginEndpoint');
|