@iankibetsh/shframework 1.6.8 → 1.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.
- package/dist/dist/library.mjs.css +15 -15
- package/dist/library.js +27 -19
- package/dist/library.mjs +27 -19
- package/package.json +1 -1
|
@@ -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
|
@@ -5539,6 +5539,7 @@ script$4.__file = "src/lib/components/core/Departments/department/ManagePermissi
|
|
|
5539
5539
|
|
|
5540
5540
|
const _hoisted_1$3 = ["href"];
|
|
5541
5541
|
|
|
5542
|
+
|
|
5542
5543
|
var script$3 = {
|
|
5543
5544
|
__name: 'ShPopups',
|
|
5544
5545
|
setup(__props) {
|
|
@@ -5553,58 +5554,65 @@ const router = vueRouter.useRouter();
|
|
|
5553
5554
|
const position = vue.ref(null);
|
|
5554
5555
|
const size = vue.ref(null);
|
|
5555
5556
|
const popups = [];
|
|
5556
|
-
const popupPaths =[];
|
|
5557
|
-
vue.watch(()=>route.meta, meta=>{
|
|
5557
|
+
const popupPaths = [];
|
|
5558
|
+
vue.watch(() => route.meta, meta => {
|
|
5558
5559
|
popUp.value = meta.popUp ?? meta.popup;
|
|
5559
|
-
if(popUp.value){
|
|
5560
|
+
if (popUp.value) {
|
|
5560
5561
|
// popups.push(meta)
|
|
5561
5562
|
!popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta);
|
|
5562
5563
|
position.value = meta.position ?? meta.side;
|
|
5563
5564
|
size.value = meta.size;
|
|
5564
|
-
componentView.value = vue.markRaw(route.matched[route.matched.length-1].components.default);
|
|
5565
|
-
setTimeout(()=>{
|
|
5565
|
+
componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5566
|
+
setTimeout(() => {
|
|
5566
5567
|
initPopup();
|
|
5567
|
-
},100);
|
|
5568
|
+
}, 100);
|
|
5568
5569
|
} else {
|
|
5569
5570
|
//no pop up, check if we have any unclosed backdrop
|
|
5570
|
-
setTimeout(()=>{
|
|
5571
|
+
setTimeout(() => {
|
|
5571
5572
|
closeOrphanedBackdrops();
|
|
5572
|
-
},100);
|
|
5573
|
+
}, 100);
|
|
5573
5574
|
}
|
|
5574
5575
|
});
|
|
5575
|
-
const closeOrphanedBackdrops = ()=>{
|
|
5576
|
+
const closeOrphanedBackdrops = () => {
|
|
5576
5577
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5577
|
-
if(offCanvasBackdrop) {
|
|
5578
|
-
if(!document.querySelector('.offcanvas.show')){
|
|
5578
|
+
if (offCanvasBackdrop) {
|
|
5579
|
+
if (!document.querySelector('.offcanvas.show')) {
|
|
5579
5580
|
offCanvasBackdrop.remove();
|
|
5580
5581
|
}
|
|
5581
5582
|
}
|
|
5582
5583
|
const modalBackdrop = document.querySelector('.modal-backdrop');
|
|
5583
|
-
if(modalBackdrop) {
|
|
5584
|
-
if(!document.querySelector('.modal.show')){
|
|
5584
|
+
if (modalBackdrop) {
|
|
5585
|
+
if (!document.querySelector('.modal.show')) {
|
|
5585
5586
|
modalBackdrop.remove();
|
|
5586
5587
|
}
|
|
5587
5588
|
}
|
|
5588
5589
|
};
|
|
5589
|
-
const initPopup = ()=>{
|
|
5590
|
-
if(popUp.value === 'modal') {
|
|
5590
|
+
const initPopup = () => {
|
|
5591
|
+
if (popUp.value === 'modal') {
|
|
5591
5592
|
// modalButton.value.click()
|
|
5592
5593
|
const modal = document.getElementById(modalId);
|
|
5593
|
-
const bsModal = new bootstrap.Modal(modal,{});
|
|
5594
|
+
const bsModal = new bootstrap.Modal(modal, {});
|
|
5594
5595
|
bsModal.show();
|
|
5595
5596
|
modal.addEventListener('hidden.bs.modal', event => {
|
|
5596
5597
|
event.target.id === modalId && goBack();
|
|
5597
5598
|
});
|
|
5598
|
-
} else if (['offcanvas','canvas','offCanvas'].includes(popUp.value)){
|
|
5599
|
+
} else if (['offcanvas', 'canvas', 'offCanvas'].includes(popUp.value)) {
|
|
5599
5600
|
const offCanvas = document.getElementById(canvasId);
|
|
5600
|
-
const bsOffCanvas = new bootstrap.Offcanvas(offCanvas,{});
|
|
5601
|
+
const bsOffCanvas = new bootstrap.Offcanvas(offCanvas, {});
|
|
5601
5602
|
bsOffCanvas.show();
|
|
5602
5603
|
offCanvas.addEventListener('hidden.bs.offcanvas', event => {
|
|
5603
5604
|
event.target.id === canvasId && goBack();
|
|
5604
5605
|
});
|
|
5605
5606
|
}
|
|
5606
5607
|
};
|
|
5607
|
-
const goBack = ()=>
|
|
5608
|
+
const goBack = () => {
|
|
5609
|
+
if (route.matched.length) {
|
|
5610
|
+
let backUrl = route.matched[route.matched.length - 2].path;
|
|
5611
|
+
const params = route.params;
|
|
5612
|
+
Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]));
|
|
5613
|
+
router.push(backUrl);
|
|
5614
|
+
}
|
|
5615
|
+
};
|
|
5608
5616
|
|
|
5609
5617
|
return (_ctx, _cache) => {
|
|
5610
5618
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
package/dist/library.mjs
CHANGED
|
@@ -5526,6 +5526,7 @@ script$4.__file = "src/lib/components/core/Departments/department/ManagePermissi
|
|
|
5526
5526
|
|
|
5527
5527
|
const _hoisted_1$3 = ["href"];
|
|
5528
5528
|
|
|
5529
|
+
|
|
5529
5530
|
var script$3 = {
|
|
5530
5531
|
__name: 'ShPopups',
|
|
5531
5532
|
setup(__props) {
|
|
@@ -5540,58 +5541,65 @@ const router = useRouter();
|
|
|
5540
5541
|
const position = ref(null);
|
|
5541
5542
|
const size = ref(null);
|
|
5542
5543
|
const popups = [];
|
|
5543
|
-
const popupPaths =[];
|
|
5544
|
-
watch(()=>route.meta, meta=>{
|
|
5544
|
+
const popupPaths = [];
|
|
5545
|
+
watch(() => route.meta, meta => {
|
|
5545
5546
|
popUp.value = meta.popUp ?? meta.popup;
|
|
5546
|
-
if(popUp.value){
|
|
5547
|
+
if (popUp.value) {
|
|
5547
5548
|
// popups.push(meta)
|
|
5548
5549
|
!popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta);
|
|
5549
5550
|
position.value = meta.position ?? meta.side;
|
|
5550
5551
|
size.value = meta.size;
|
|
5551
|
-
componentView.value = markRaw(route.matched[route.matched.length-1].components.default);
|
|
5552
|
-
setTimeout(()=>{
|
|
5552
|
+
componentView.value = markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5553
|
+
setTimeout(() => {
|
|
5553
5554
|
initPopup();
|
|
5554
|
-
},100);
|
|
5555
|
+
}, 100);
|
|
5555
5556
|
} else {
|
|
5556
5557
|
//no pop up, check if we have any unclosed backdrop
|
|
5557
|
-
setTimeout(()=>{
|
|
5558
|
+
setTimeout(() => {
|
|
5558
5559
|
closeOrphanedBackdrops();
|
|
5559
|
-
},100);
|
|
5560
|
+
}, 100);
|
|
5560
5561
|
}
|
|
5561
5562
|
});
|
|
5562
|
-
const closeOrphanedBackdrops = ()=>{
|
|
5563
|
+
const closeOrphanedBackdrops = () => {
|
|
5563
5564
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5564
|
-
if(offCanvasBackdrop) {
|
|
5565
|
-
if(!document.querySelector('.offcanvas.show')){
|
|
5565
|
+
if (offCanvasBackdrop) {
|
|
5566
|
+
if (!document.querySelector('.offcanvas.show')) {
|
|
5566
5567
|
offCanvasBackdrop.remove();
|
|
5567
5568
|
}
|
|
5568
5569
|
}
|
|
5569
5570
|
const modalBackdrop = document.querySelector('.modal-backdrop');
|
|
5570
|
-
if(modalBackdrop) {
|
|
5571
|
-
if(!document.querySelector('.modal.show')){
|
|
5571
|
+
if (modalBackdrop) {
|
|
5572
|
+
if (!document.querySelector('.modal.show')) {
|
|
5572
5573
|
modalBackdrop.remove();
|
|
5573
5574
|
}
|
|
5574
5575
|
}
|
|
5575
5576
|
};
|
|
5576
|
-
const initPopup = ()=>{
|
|
5577
|
-
if(popUp.value === 'modal') {
|
|
5577
|
+
const initPopup = () => {
|
|
5578
|
+
if (popUp.value === 'modal') {
|
|
5578
5579
|
// modalButton.value.click()
|
|
5579
5580
|
const modal = document.getElementById(modalId);
|
|
5580
|
-
const bsModal = new Modal(modal,{});
|
|
5581
|
+
const bsModal = new Modal(modal, {});
|
|
5581
5582
|
bsModal.show();
|
|
5582
5583
|
modal.addEventListener('hidden.bs.modal', event => {
|
|
5583
5584
|
event.target.id === modalId && goBack();
|
|
5584
5585
|
});
|
|
5585
|
-
} else if (['offcanvas','canvas','offCanvas'].includes(popUp.value)){
|
|
5586
|
+
} else if (['offcanvas', 'canvas', 'offCanvas'].includes(popUp.value)) {
|
|
5586
5587
|
const offCanvas = document.getElementById(canvasId);
|
|
5587
|
-
const bsOffCanvas = new Offcanvas(offCanvas,{});
|
|
5588
|
+
const bsOffCanvas = new Offcanvas(offCanvas, {});
|
|
5588
5589
|
bsOffCanvas.show();
|
|
5589
5590
|
offCanvas.addEventListener('hidden.bs.offcanvas', event => {
|
|
5590
5591
|
event.target.id === canvasId && goBack();
|
|
5591
5592
|
});
|
|
5592
5593
|
}
|
|
5593
5594
|
};
|
|
5594
|
-
const goBack = ()=>
|
|
5595
|
+
const goBack = () => {
|
|
5596
|
+
if (route.matched.length) {
|
|
5597
|
+
let backUrl = route.matched[route.matched.length - 2].path;
|
|
5598
|
+
const params = route.params;
|
|
5599
|
+
Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]));
|
|
5600
|
+
router.push(backUrl);
|
|
5601
|
+
}
|
|
5602
|
+
};
|
|
5595
5603
|
|
|
5596
5604
|
return (_ctx, _cache) => {
|
|
5597
5605
|
return (openBlock(), createElementBlock(Fragment, null, [
|