@iankibetsh/shframework 1.0.5 → 1.0.7
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 +32 -32
- package/dist/library.js +237 -89
- package/dist/library.mjs +227 -81
- package/package.json +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.colored-toast.swal2-icon-success {
|
|
3
|
-
background-color: #a5dc86 !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.colored-toast.swal2-icon-error {
|
|
7
|
-
background-color: #f27474 !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.colored-toast.swal2-icon-warning {
|
|
11
|
-
background-color: #f8bb86 !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.colored-toast.swal2-icon-info {
|
|
15
|
-
background-color: #3fc3ee !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.colored-toast.swal2-icon-question {
|
|
19
|
-
background-color: #87adbd !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.colored-toast .swal2-title {
|
|
23
|
-
color: white;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.colored-toast .swal2-close {
|
|
27
|
-
color: white;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.colored-toast .swal2-html-container {
|
|
31
|
-
color: white;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
2
|
.sh-phone{
|
|
35
3
|
display: flex;
|
|
36
4
|
width: 100%;
|
|
@@ -63,6 +31,38 @@
|
|
|
63
31
|
opacity: 0.5;
|
|
64
32
|
}
|
|
65
33
|
|
|
34
|
+
.colored-toast.swal2-icon-success {
|
|
35
|
+
background-color: #a5dc86 !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.colored-toast.swal2-icon-error {
|
|
39
|
+
background-color: #f27474 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.colored-toast.swal2-icon-warning {
|
|
43
|
+
background-color: #f8bb86 !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.colored-toast.swal2-icon-info {
|
|
47
|
+
background-color: #3fc3ee !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.colored-toast.swal2-icon-question {
|
|
51
|
+
background-color: #87adbd !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.colored-toast .swal2-title {
|
|
55
|
+
color: white;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.colored-toast .swal2-close {
|
|
59
|
+
color: white;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.colored-toast .swal2-html-container {
|
|
63
|
+
color: white;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
:root {
|
|
67
67
|
--ck-z-default: 10555 !important;
|
|
68
68
|
--ck-z-modal: calc(var(--ck-z-default) + 999) !important;
|
package/dist/library.js
CHANGED
|
@@ -1574,7 +1574,7 @@ const countries = [
|
|
|
1574
1574
|
}
|
|
1575
1575
|
];
|
|
1576
1576
|
|
|
1577
|
-
var script$
|
|
1577
|
+
var script$g = {
|
|
1578
1578
|
name: 'ShPhone',
|
|
1579
1579
|
props: ['modelValue', 'country_code'],
|
|
1580
1580
|
data () {
|
|
@@ -1636,7 +1636,7 @@ var script$e = {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
1639
|
-
const _hoisted_1$
|
|
1639
|
+
const _hoisted_1$f = { class: "sh-phone mb-3" };
|
|
1640
1640
|
const _hoisted_2$b = {
|
|
1641
1641
|
key: 0,
|
|
1642
1642
|
style: {"display":"contents"}
|
|
@@ -1645,7 +1645,7 @@ const _hoisted_3$a = ["src"];
|
|
|
1645
1645
|
const _hoisted_4$a = ["value"];
|
|
1646
1646
|
|
|
1647
1647
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1648
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1648
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
|
|
1649
1649
|
($data.selectedCountry)
|
|
1650
1650
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
|
|
1651
1651
|
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$a),
|
|
@@ -1679,10 +1679,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1679
1679
|
]))
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
|
-
script$
|
|
1683
|
-
script$
|
|
1682
|
+
script$g.render = render$7;
|
|
1683
|
+
script$g.__file = "src/lib/components/ShPhone.vue";
|
|
1684
1684
|
|
|
1685
|
-
var script$
|
|
1685
|
+
var script$f = {
|
|
1686
1686
|
name: 'ShEditor',
|
|
1687
1687
|
props: ['modelValue'],
|
|
1688
1688
|
components: {
|
|
@@ -1721,7 +1721,7 @@ var script$d = {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
1723
|
|
|
1724
|
-
const _hoisted_1$
|
|
1724
|
+
const _hoisted_1$e = /*#__PURE__*/vue.createElementVNode("textarea", {
|
|
1725
1725
|
id: "tiny",
|
|
1726
1726
|
style: {"display":"none"},
|
|
1727
1727
|
"data-cy": "tinymce_editor"
|
|
@@ -1731,7 +1731,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1731
1731
|
const _component_editor = vue.resolveComponent("editor");
|
|
1732
1732
|
|
|
1733
1733
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
1734
|
-
_hoisted_1$
|
|
1734
|
+
_hoisted_1$e,
|
|
1735
1735
|
vue.createElementVNode("div", {
|
|
1736
1736
|
onFocusin: _cache[1] || (_cache[1] = vue.withModifiers(() => {}, ["stop"])),
|
|
1737
1737
|
class: "sh-editor w-100"
|
|
@@ -1756,10 +1756,10 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1756
1756
|
], 64 /* STABLE_FRAGMENT */))
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
|
-
script$
|
|
1760
|
-
script$
|
|
1759
|
+
script$f.render = render$6;
|
|
1760
|
+
script$f.__file = "src/lib/components/FormComponent/ShEditor.vue";
|
|
1761
1761
|
|
|
1762
|
-
const _hoisted_1$
|
|
1762
|
+
const _hoisted_1$d = {
|
|
1763
1763
|
key: 0,
|
|
1764
1764
|
class: "dropdown sh-suggest"
|
|
1765
1765
|
};
|
|
@@ -1780,7 +1780,7 @@ const _hoisted_10$3 = {
|
|
|
1780
1780
|
};
|
|
1781
1781
|
|
|
1782
1782
|
|
|
1783
|
-
var script$
|
|
1783
|
+
var script$e = {
|
|
1784
1784
|
__name: 'ShSuggest',
|
|
1785
1785
|
props: ['fillSelects','modelValue'],
|
|
1786
1786
|
emits: ['update:modelValue'],
|
|
@@ -1861,7 +1861,7 @@ function filterData(e){
|
|
|
1861
1861
|
|
|
1862
1862
|
return (_ctx, _cache) => {
|
|
1863
1863
|
return (vue.unref(id))
|
|
1864
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1864
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
|
|
1865
1865
|
vue.createElementVNode("div", {
|
|
1866
1866
|
id: vue.unref(id),
|
|
1867
1867
|
"data-bs-toggle": "dropdown",
|
|
@@ -1921,15 +1921,15 @@ return (_ctx, _cache) => {
|
|
|
1921
1921
|
|
|
1922
1922
|
};
|
|
1923
1923
|
|
|
1924
|
-
script$
|
|
1925
|
-
script$
|
|
1924
|
+
script$e.__scopeId = "data-v-5b767123";
|
|
1925
|
+
script$e.__file = "src/lib/components/FormComponent/ShSuggest.vue";
|
|
1926
1926
|
|
|
1927
|
-
var script$
|
|
1927
|
+
var script$d = {
|
|
1928
1928
|
name: 'ShForm',
|
|
1929
1929
|
components: {
|
|
1930
|
-
ShSuggest: script$
|
|
1931
|
-
ShEditor: script$
|
|
1932
|
-
ShPhone: script$
|
|
1930
|
+
ShSuggest: script$e,
|
|
1931
|
+
ShEditor: script$f,
|
|
1932
|
+
ShPhone: script$g
|
|
1933
1933
|
},
|
|
1934
1934
|
props: [
|
|
1935
1935
|
'action',
|
|
@@ -2241,7 +2241,7 @@ var script$b = {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
};
|
|
2243
2243
|
|
|
2244
|
-
const _hoisted_1$
|
|
2244
|
+
const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2245
2245
|
const _hoisted_2$9 = {
|
|
2246
2246
|
ref: "ShAutoForm",
|
|
2247
2247
|
class: "sh-form"
|
|
@@ -2303,7 +2303,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2303
2303
|
const _component_ShEditor = vue.resolveComponent("ShEditor");
|
|
2304
2304
|
|
|
2305
2305
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2306
|
-
_hoisted_1$
|
|
2306
|
+
_hoisted_1$c,
|
|
2307
2307
|
vue.createElementVNode("form", _hoisted_2$9, [
|
|
2308
2308
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2309
2309
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
@@ -2520,13 +2520,13 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2520
2520
|
], 64 /* STABLE_FRAGMENT */))
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
script$
|
|
2524
|
-
script$
|
|
2523
|
+
script$d.render = render$5;
|
|
2524
|
+
script$d.__file = "src/lib/components/ShForm.vue";
|
|
2525
2525
|
|
|
2526
|
-
const _hoisted_1$
|
|
2526
|
+
const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
2527
2527
|
const _hoisted_2$8 = { class: "dropdown" };
|
|
2528
2528
|
|
|
2529
|
-
var script$
|
|
2529
|
+
var script$c = {
|
|
2530
2530
|
__name: 'ShDropDownForm',
|
|
2531
2531
|
props: ['action',
|
|
2532
2532
|
'classes',
|
|
@@ -2556,7 +2556,7 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
2556
2556
|
|
|
2557
2557
|
return (_ctx, _cache) => {
|
|
2558
2558
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2559
|
-
_hoisted_1$
|
|
2559
|
+
_hoisted_1$b,
|
|
2560
2560
|
vue.createElementVNode("div", _hoisted_2$8, [
|
|
2561
2561
|
vue.createElementVNode("a", {
|
|
2562
2562
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
@@ -2573,7 +2573,7 @@ return (_ctx, _cache) => {
|
|
|
2573
2573
|
class: "dropdown-menu px-2 py-1",
|
|
2574
2574
|
"aria-labelledby": dropdownId
|
|
2575
2575
|
}, [
|
|
2576
|
-
vue.createVNode(script$
|
|
2576
|
+
vue.createVNode(script$d, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
2577
2577
|
])
|
|
2578
2578
|
])
|
|
2579
2579
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -2582,16 +2582,16 @@ return (_ctx, _cache) => {
|
|
|
2582
2582
|
|
|
2583
2583
|
};
|
|
2584
2584
|
|
|
2585
|
-
script$
|
|
2585
|
+
script$c.__file = "src/lib/components/ShDropDownForm.vue";
|
|
2586
2586
|
|
|
2587
|
-
var script$
|
|
2587
|
+
var script$b = {
|
|
2588
2588
|
name: 'ShModal',
|
|
2589
2589
|
props: ['modalTitle', 'modalId', 'modalSize'],
|
|
2590
2590
|
components: {
|
|
2591
2591
|
}
|
|
2592
2592
|
};
|
|
2593
2593
|
|
|
2594
|
-
const _hoisted_1$
|
|
2594
|
+
const _hoisted_1$a = ["id"];
|
|
2595
2595
|
const _hoisted_2$7 = { class: "modal-content" };
|
|
2596
2596
|
const _hoisted_3$7 = { class: "modal-header" };
|
|
2597
2597
|
const _hoisted_4$7 = { class: "modal-title" };
|
|
@@ -2624,15 +2624,15 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2624
2624
|
])
|
|
2625
2625
|
])
|
|
2626
2626
|
], 2 /* CLASS */)
|
|
2627
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
2627
|
+
], 8 /* PROPS */, _hoisted_1$a))
|
|
2628
2628
|
}
|
|
2629
2629
|
|
|
2630
|
-
script$
|
|
2631
|
-
script$
|
|
2630
|
+
script$b.render = render$4;
|
|
2631
|
+
script$b.__file = "src/lib/components/ShModal.vue";
|
|
2632
2632
|
|
|
2633
|
-
const _hoisted_1$
|
|
2633
|
+
const _hoisted_1$9 = ["href"];
|
|
2634
2634
|
|
|
2635
|
-
var script$
|
|
2635
|
+
var script$a = {
|
|
2636
2636
|
__name: 'ShModalForm',
|
|
2637
2637
|
props: ['action',
|
|
2638
2638
|
'classes',
|
|
@@ -2668,13 +2668,13 @@ return (_ctx, _cache) => {
|
|
|
2668
2668
|
"data-bs-toggle": "modal"
|
|
2669
2669
|
}, [
|
|
2670
2670
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2671
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
2672
|
-
vue.createVNode(script$
|
|
2671
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$9),
|
|
2672
|
+
vue.createVNode(script$b, {
|
|
2673
2673
|
"modal-id": modalId,
|
|
2674
2674
|
"modal-title": __props.modalTitle
|
|
2675
2675
|
}, {
|
|
2676
2676
|
default: vue.withCtx(() => [
|
|
2677
|
-
vue.createVNode(script$
|
|
2677
|
+
vue.createVNode(script$d, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
2678
2678
|
]),
|
|
2679
2679
|
_: 1 /* STABLE */
|
|
2680
2680
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -2684,9 +2684,9 @@ return (_ctx, _cache) => {
|
|
|
2684
2684
|
|
|
2685
2685
|
};
|
|
2686
2686
|
|
|
2687
|
-
script$
|
|
2687
|
+
script$a.__file = "src/lib/components/ShModalForm.vue";
|
|
2688
2688
|
|
|
2689
|
-
var script$
|
|
2689
|
+
var script$9 = {
|
|
2690
2690
|
name: 'ShCanvas',
|
|
2691
2691
|
props: ['canvasTitle', 'canvasId', 'position','canvasSize'],
|
|
2692
2692
|
components: {
|
|
@@ -2703,7 +2703,7 @@ var script$7 = {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
};
|
|
2705
2705
|
|
|
2706
|
-
const _hoisted_1$
|
|
2706
|
+
const _hoisted_1$8 = ["id"];
|
|
2707
2707
|
const _hoisted_2$6 = { class: "offcanvas-header" };
|
|
2708
2708
|
const _hoisted_3$6 = {
|
|
2709
2709
|
class: "offcanvas-title",
|
|
@@ -2733,13 +2733,13 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2733
2733
|
vue.createElementVNode("div", _hoisted_4$6, [
|
|
2734
2734
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2735
2735
|
])
|
|
2736
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
2736
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$8))
|
|
2737
2737
|
}
|
|
2738
2738
|
|
|
2739
|
-
script$
|
|
2740
|
-
script$
|
|
2739
|
+
script$9.render = render$3;
|
|
2740
|
+
script$9.__file = "src/lib/components/ShCanvas.vue";
|
|
2741
2741
|
|
|
2742
|
-
var script$
|
|
2742
|
+
var script$8 = {
|
|
2743
2743
|
name: 'Pagination',
|
|
2744
2744
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore'],
|
|
2745
2745
|
data () {
|
|
@@ -2810,7 +2810,7 @@ var script$6 = {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
};
|
|
2812
2812
|
|
|
2813
|
-
const _hoisted_1$
|
|
2813
|
+
const _hoisted_1$7 = { key: 0 };
|
|
2814
2814
|
const _hoisted_2$5 = { class: "record_count_body mb-3" };
|
|
2815
2815
|
const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2816
2816
|
const _hoisted_4$5 = /*#__PURE__*/vue.createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
@@ -2856,7 +2856,7 @@ const _hoisted_22$1 = {
|
|
|
2856
2856
|
|
|
2857
2857
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2858
2858
|
return (!$props.loadMore)
|
|
2859
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2859
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
2860
2860
|
vue.createElementVNode("div", _hoisted_2$5, [
|
|
2861
2861
|
_hoisted_3$5,
|
|
2862
2862
|
vue.createTextVNode(" "),
|
|
@@ -2928,8 +2928,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2928
2928
|
]))
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
-
script$
|
|
2932
|
-
script$
|
|
2931
|
+
script$8.render = render$2;
|
|
2932
|
+
script$8.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
2933
2933
|
|
|
2934
2934
|
function swalSuccess (message) {
|
|
2935
2935
|
Swal__default["default"].fire('Success!', message, 'success');
|
|
@@ -3069,20 +3069,15 @@ async function runPlainRequest (url, message, title, data) {
|
|
|
3069
3069
|
showLoaderOnConfirm: true,
|
|
3070
3070
|
preConfirm: () => {
|
|
3071
3071
|
return shApis.doPost(url, data).then(function (response) {
|
|
3072
|
-
Swal__default["default"].fire('Success!', 'Action completed successfully', 'success');
|
|
3073
3072
|
return {
|
|
3074
3073
|
response: response.data,
|
|
3075
3074
|
success: true
|
|
3076
3075
|
}
|
|
3077
3076
|
})
|
|
3078
|
-
.catch(
|
|
3079
|
-
if (typeof reason.response === 'undefined') {
|
|
3080
|
-
Swal__default["default"].fire('Error!', `Connection to ${url} lost`, 'error');
|
|
3081
|
-
} else {
|
|
3082
|
-
Swal__default["default"].fire(`Error ${reason.response.status}`, reason.response.statusText, 'error');
|
|
3083
|
-
}
|
|
3077
|
+
.catch(error => {
|
|
3084
3078
|
return {
|
|
3085
|
-
success: false
|
|
3079
|
+
success: false,
|
|
3080
|
+
error: error
|
|
3086
3081
|
}
|
|
3087
3082
|
})
|
|
3088
3083
|
},
|
|
@@ -3110,7 +3105,7 @@ var shRepo = {
|
|
|
3110
3105
|
formatDate
|
|
3111
3106
|
};
|
|
3112
3107
|
|
|
3113
|
-
var script$
|
|
3108
|
+
var script$7 = {
|
|
3114
3109
|
name: 'sh-table',
|
|
3115
3110
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover'],
|
|
3116
3111
|
inject: ['channel'],
|
|
@@ -3324,8 +3319,8 @@ var script$5 = {
|
|
|
3324
3319
|
this.reloadData();
|
|
3325
3320
|
},
|
|
3326
3321
|
components: {
|
|
3327
|
-
ShCanvas: script$
|
|
3328
|
-
pagination: script$
|
|
3322
|
+
ShCanvas: script$9,
|
|
3323
|
+
pagination: script$8
|
|
3329
3324
|
},
|
|
3330
3325
|
computed: {
|
|
3331
3326
|
windowWidth: function () {
|
|
@@ -3343,7 +3338,7 @@ var script$5 = {
|
|
|
3343
3338
|
}
|
|
3344
3339
|
};
|
|
3345
3340
|
|
|
3346
|
-
const _hoisted_1$
|
|
3341
|
+
const _hoisted_1$6 = { class: "auto-table mt-2" };
|
|
3347
3342
|
const _hoisted_2$4 = {
|
|
3348
3343
|
key: 0,
|
|
3349
3344
|
class: "col-md-4 mb-2"
|
|
@@ -3503,7 +3498,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3503
3498
|
const _component_pagination = vue.resolveComponent("pagination");
|
|
3504
3499
|
const _component_sh_canvas = vue.resolveComponent("sh-canvas");
|
|
3505
3500
|
|
|
3506
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3501
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
3507
3502
|
($props.hasDownload)
|
|
3508
3503
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
|
|
3509
3504
|
vue.createElementVNode("button", {
|
|
@@ -3913,10 +3908,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3913
3908
|
]))
|
|
3914
3909
|
}
|
|
3915
3910
|
|
|
3916
|
-
script$
|
|
3917
|
-
script$
|
|
3911
|
+
script$7.render = render$1;
|
|
3912
|
+
script$7.__file = "src/lib/components/ShTable.vue";
|
|
3918
3913
|
|
|
3919
|
-
var script$
|
|
3914
|
+
var script$6 = {
|
|
3920
3915
|
name: 'ShTabs',
|
|
3921
3916
|
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
|
|
3922
3917
|
data () {
|
|
@@ -4037,10 +4032,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4037
4032
|
], 64 /* STABLE_FRAGMENT */))
|
|
4038
4033
|
}
|
|
4039
4034
|
|
|
4040
|
-
script$
|
|
4041
|
-
script$
|
|
4035
|
+
script$6.render = render;
|
|
4036
|
+
script$6.__file = "src/lib/components/ShTabs.vue";
|
|
4042
4037
|
|
|
4043
|
-
const _hoisted_1$
|
|
4038
|
+
const _hoisted_1$5 = {
|
|
4044
4039
|
class: "nav nav-tabs",
|
|
4045
4040
|
role: "tablist"
|
|
4046
4041
|
};
|
|
@@ -4051,7 +4046,7 @@ const _hoisted_2$3 = {
|
|
|
4051
4046
|
const _hoisted_3$3 = ["onClick"];
|
|
4052
4047
|
const _hoisted_4$3 = { class: "tab-content" };
|
|
4053
4048
|
|
|
4054
|
-
var script$
|
|
4049
|
+
var script$5 = {
|
|
4055
4050
|
__name: 'ShDynamicTabs',
|
|
4056
4051
|
props: ['tabs','data'],
|
|
4057
4052
|
setup(__props) {
|
|
@@ -4076,7 +4071,7 @@ function setTab(tab){
|
|
|
4076
4071
|
|
|
4077
4072
|
return (_ctx, _cache) => {
|
|
4078
4073
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4079
|
-
vue.createElementVNode("ul", _hoisted_1$
|
|
4074
|
+
vue.createElementVNode("ul", _hoisted_1$5, [
|
|
4080
4075
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
|
|
4081
4076
|
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$3, [
|
|
4082
4077
|
vue.createElementVNode("button", {
|
|
@@ -4097,7 +4092,158 @@ return (_ctx, _cache) => {
|
|
|
4097
4092
|
|
|
4098
4093
|
};
|
|
4099
4094
|
|
|
4100
|
-
script$
|
|
4095
|
+
script$5.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
4096
|
+
|
|
4097
|
+
const _hoisted_1$4 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4098
|
+
class: "spinner-border spinner-border-sm me-1",
|
|
4099
|
+
role: "status",
|
|
4100
|
+
"aria-hidden": "true"
|
|
4101
|
+
}, null, -1 /* HOISTED */);
|
|
4102
|
+
|
|
4103
|
+
var script$4 = {
|
|
4104
|
+
__name: 'ShSilentAction',
|
|
4105
|
+
props: {
|
|
4106
|
+
data: Object,
|
|
4107
|
+
loadingMessage: {
|
|
4108
|
+
type: String,
|
|
4109
|
+
default: 'Processing'
|
|
4110
|
+
},
|
|
4111
|
+
method: {
|
|
4112
|
+
type: String,
|
|
4113
|
+
default: 'POST'
|
|
4114
|
+
},
|
|
4115
|
+
url: {
|
|
4116
|
+
type: String,
|
|
4117
|
+
required: true
|
|
4118
|
+
}
|
|
4119
|
+
},
|
|
4120
|
+
emits: ['actionSuccessful','actionFailed'],
|
|
4121
|
+
setup(__props, { emit }) {
|
|
4122
|
+
|
|
4123
|
+
const props = __props;
|
|
4124
|
+
|
|
4125
|
+
|
|
4126
|
+
const processing = vue.ref(false);
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
function runAction(){
|
|
4130
|
+
processing.value = true;
|
|
4131
|
+
if(props.method === 'POST'){
|
|
4132
|
+
shApis.doPost(props.url,props.data).then(res=>{
|
|
4133
|
+
emit('actionSuccessful',res);
|
|
4134
|
+
processing.value = false;
|
|
4135
|
+
}).catch(reason=>{
|
|
4136
|
+
emit('actionFailed', reason);
|
|
4137
|
+
processing.value = false;
|
|
4138
|
+
});
|
|
4139
|
+
}
|
|
4140
|
+
if(props.method === 'GET'){
|
|
4141
|
+
shApis.doGet(props.url,props.data).then(res=>{
|
|
4142
|
+
emit('actionSuccessful',res);
|
|
4143
|
+
processing.value = false;
|
|
4144
|
+
}).catch(reason=>{
|
|
4145
|
+
emit('actionFailed', reason);
|
|
4146
|
+
processing.value = false;
|
|
4147
|
+
});
|
|
4148
|
+
}
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
return (_ctx, _cache) => {
|
|
4152
|
+
return (vue.openBlock(), vue.createElementBlock("a", {
|
|
4153
|
+
class: vue.normalizeClass(processing.value ? 'disabled':''),
|
|
4154
|
+
onClick: runAction
|
|
4155
|
+
}, [
|
|
4156
|
+
(processing.value)
|
|
4157
|
+
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4158
|
+
_hoisted_1$4,
|
|
4159
|
+
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4160
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4161
|
+
: vue.createCommentVNode("v-if", true),
|
|
4162
|
+
(!processing.value)
|
|
4163
|
+
? vue.renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
4164
|
+
: vue.createCommentVNode("v-if", true)
|
|
4165
|
+
], 2 /* CLASS */))
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
script$4.__file = "src/lib/components/ShSilentAction.vue";
|
|
4172
|
+
|
|
4173
|
+
const _hoisted_1$3 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4174
|
+
class: "spinner-border spinner-border-sm me-1",
|
|
4175
|
+
role: "status",
|
|
4176
|
+
"aria-hidden": "true"
|
|
4177
|
+
}, null, -1 /* HOISTED */);
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
var script$3 = {
|
|
4181
|
+
__name: 'ShConfirmAction',
|
|
4182
|
+
props: {
|
|
4183
|
+
data: Object,
|
|
4184
|
+
title: String,
|
|
4185
|
+
message: String,
|
|
4186
|
+
url: {
|
|
4187
|
+
type: String,
|
|
4188
|
+
required: true
|
|
4189
|
+
},
|
|
4190
|
+
loadingMessage: {
|
|
4191
|
+
type: String,
|
|
4192
|
+
default: 'Processing'
|
|
4193
|
+
}
|
|
4194
|
+
},
|
|
4195
|
+
emits: ['actionSuccessful', 'actionFailed','actionCanceled'],
|
|
4196
|
+
setup(__props, { emit }) {
|
|
4197
|
+
|
|
4198
|
+
const props = __props;
|
|
4199
|
+
|
|
4200
|
+
|
|
4201
|
+
const processing = vue.ref(false);
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
function runAction () {
|
|
4205
|
+
processing.value = true;
|
|
4206
|
+
shRepo.runPlainRequest(props.url, props.message, props.title, props.data).then(res => {
|
|
4207
|
+
if(res.isConfirmed){
|
|
4208
|
+
const value = res.value;
|
|
4209
|
+
if(value.status){
|
|
4210
|
+
emit('actionSuccessful', res);
|
|
4211
|
+
processing.value = false;
|
|
4212
|
+
} else {
|
|
4213
|
+
emit('actionFailed', value);
|
|
4214
|
+
processing.value = false;
|
|
4215
|
+
}
|
|
4216
|
+
} else {
|
|
4217
|
+
emit('actionCanceled');
|
|
4218
|
+
processing.value = false;
|
|
4219
|
+
}
|
|
4220
|
+
}).catch(ex => {
|
|
4221
|
+
emit('actionFailed', ex);
|
|
4222
|
+
processing.value = false;
|
|
4223
|
+
});
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
return (_ctx, _cache) => {
|
|
4227
|
+
return (vue.openBlock(), vue.createElementBlock("a", {
|
|
4228
|
+
class: vue.normalizeClass(processing.value ? 'disabled':''),
|
|
4229
|
+
onClick: runAction
|
|
4230
|
+
}, [
|
|
4231
|
+
(processing.value)
|
|
4232
|
+
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4233
|
+
_hoisted_1$3,
|
|
4234
|
+
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4235
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4236
|
+
: vue.createCommentVNode("v-if", true),
|
|
4237
|
+
(!processing.value)
|
|
4238
|
+
? vue.renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
4239
|
+
: vue.createCommentVNode("v-if", true)
|
|
4240
|
+
], 2 /* CLASS */))
|
|
4241
|
+
}
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
};
|
|
4245
|
+
|
|
4246
|
+
script$3.__file = "src/lib/components/ShConfirmAction.vue";
|
|
4101
4247
|
|
|
4102
4248
|
const useUserStore = pinia.defineStore('user-store', {
|
|
4103
4249
|
state: () => ({
|
|
@@ -4225,7 +4371,7 @@ return (_ctx, _cache) => {
|
|
|
4225
4371
|
_hoisted_5$2,
|
|
4226
4372
|
vue.createTextVNode(" ADD DEPARTMENT")
|
|
4227
4373
|
], 512 /* NEED_PATCH */),
|
|
4228
|
-
vue.createVNode(script$
|
|
4374
|
+
vue.createVNode(script$7, {
|
|
4229
4375
|
headers: ['id','name','description', 'created_at'],
|
|
4230
4376
|
"end-point": "admin/departments/list",
|
|
4231
4377
|
actions: {
|
|
@@ -4239,12 +4385,12 @@ return (_ctx, _cache) => {
|
|
|
4239
4385
|
]
|
|
4240
4386
|
}
|
|
4241
4387
|
}),
|
|
4242
|
-
vue.createVNode(script$
|
|
4388
|
+
vue.createVNode(script$b, {
|
|
4243
4389
|
"modal-id": "sh-department_modal",
|
|
4244
4390
|
"modal-title": "Department Form"
|
|
4245
4391
|
}, {
|
|
4246
4392
|
default: vue.withCtx(() => [
|
|
4247
|
-
vue.createVNode(script$
|
|
4393
|
+
vue.createVNode(script$d, {
|
|
4248
4394
|
"success-callback": "departmentAdded",
|
|
4249
4395
|
onDepartmentAdded: departmentAdded,
|
|
4250
4396
|
action: "admin/departments/store",
|
|
@@ -4376,7 +4522,7 @@ return (_ctx, _cache) => {
|
|
|
4376
4522
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
4377
4523
|
_hoisted_3$1,
|
|
4378
4524
|
vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
4379
|
-
vue.createVNode(script$
|
|
4525
|
+
vue.createVNode(script$7, {
|
|
4380
4526
|
actions: {
|
|
4381
4527
|
label: 'Actions',
|
|
4382
4528
|
actions: [
|
|
@@ -4396,12 +4542,12 @@ return (_ctx, _cache) => {
|
|
|
4396
4542
|
headers: ['id',showModule,'created_at'],
|
|
4397
4543
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
4398
4544
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
4399
|
-
vue.createVNode(script$
|
|
4545
|
+
vue.createVNode(script$b, {
|
|
4400
4546
|
"modal-id": "addModule",
|
|
4401
4547
|
"modal-title": "Add Module Department"
|
|
4402
4548
|
}, {
|
|
4403
4549
|
default: vue.withCtx(() => [
|
|
4404
|
-
vue.createVNode(script$
|
|
4550
|
+
vue.createVNode(script$d, {
|
|
4405
4551
|
"reload-select-items": vue.unref(reload),
|
|
4406
4552
|
"success-callback": moduleAdded,
|
|
4407
4553
|
"fill-selects": {
|
|
@@ -4423,7 +4569,7 @@ return (_ctx, _cache) => {
|
|
|
4423
4569
|
ref: permissionCanvasBtn,
|
|
4424
4570
|
"data-bs-toggle": "offcanvas"
|
|
4425
4571
|
}, null, 512 /* NEED_PATCH */),
|
|
4426
|
-
vue.createVNode(script$
|
|
4572
|
+
vue.createVNode(script$9, {
|
|
4427
4573
|
"canvas-id": "permissionsCanvas",
|
|
4428
4574
|
position: "end enlarged",
|
|
4429
4575
|
"canvas-title": "Module Permissions"
|
|
@@ -4538,7 +4684,7 @@ return (_ctx, _cache) => {
|
|
|
4538
4684
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
4539
4685
|
(section.value === 'login')
|
|
4540
4686
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
4541
|
-
vue.createVNode(script$
|
|
4687
|
+
vue.createVNode(script$d, {
|
|
4542
4688
|
class: "sh-login-form",
|
|
4543
4689
|
fields: ['email','password'],
|
|
4544
4690
|
"action-label": "Login",
|
|
@@ -4563,7 +4709,7 @@ return (_ctx, _cache) => {
|
|
|
4563
4709
|
(vue.unref(registerSubTitle))
|
|
4564
4710
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
4565
4711
|
: vue.createCommentVNode("v-if", true),
|
|
4566
|
-
vue.createVNode(script$
|
|
4712
|
+
vue.createVNode(script$d, {
|
|
4567
4713
|
class: "sh-login-form",
|
|
4568
4714
|
fields: vue.unref(registrationFields),
|
|
4569
4715
|
"action-label": "Sign Up",
|
|
@@ -4627,16 +4773,18 @@ const ShFrontend = {
|
|
|
4627
4773
|
}
|
|
4628
4774
|
};
|
|
4629
4775
|
|
|
4630
|
-
exports.ShCanvas = script$
|
|
4631
|
-
exports.
|
|
4632
|
-
exports.
|
|
4633
|
-
exports.
|
|
4776
|
+
exports.ShCanvas = script$9;
|
|
4777
|
+
exports.ShConfirmAction = script$3;
|
|
4778
|
+
exports.ShDropDownForm = script$c;
|
|
4779
|
+
exports.ShDynamicTabs = script$5;
|
|
4780
|
+
exports.ShForm = script$d;
|
|
4634
4781
|
exports.ShFrontend = ShFrontend;
|
|
4635
|
-
exports.ShModal = script$
|
|
4636
|
-
exports.ShModalForm = script$
|
|
4637
|
-
exports.ShPhone = script$
|
|
4638
|
-
exports.
|
|
4639
|
-
exports.
|
|
4782
|
+
exports.ShModal = script$b;
|
|
4783
|
+
exports.ShModalForm = script$a;
|
|
4784
|
+
exports.ShPhone = script$g;
|
|
4785
|
+
exports.ShSilentAction = script$4;
|
|
4786
|
+
exports.ShTable = script$7;
|
|
4787
|
+
exports.ShTabs = script$6;
|
|
4640
4788
|
exports.shApis = shApis;
|
|
4641
4789
|
exports.shRepo = shRepo;
|
|
4642
4790
|
exports.shStorage = ShStorage;
|
package/dist/library.mjs
CHANGED
|
@@ -1562,7 +1562,7 @@ const countries = [
|
|
|
1562
1562
|
}
|
|
1563
1563
|
];
|
|
1564
1564
|
|
|
1565
|
-
var script$
|
|
1565
|
+
var script$g = {
|
|
1566
1566
|
name: 'ShPhone',
|
|
1567
1567
|
props: ['modelValue', 'country_code'],
|
|
1568
1568
|
data () {
|
|
@@ -1624,7 +1624,7 @@ var script$e = {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
};
|
|
1626
1626
|
|
|
1627
|
-
const _hoisted_1$
|
|
1627
|
+
const _hoisted_1$f = { class: "sh-phone mb-3" };
|
|
1628
1628
|
const _hoisted_2$b = {
|
|
1629
1629
|
key: 0,
|
|
1630
1630
|
style: {"display":"contents"}
|
|
@@ -1633,7 +1633,7 @@ const _hoisted_3$a = ["src"];
|
|
|
1633
1633
|
const _hoisted_4$a = ["value"];
|
|
1634
1634
|
|
|
1635
1635
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1636
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1636
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
1637
1637
|
($data.selectedCountry)
|
|
1638
1638
|
? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
1639
1639
|
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$a),
|
|
@@ -1667,10 +1667,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1667
1667
|
]))
|
|
1668
1668
|
}
|
|
1669
1669
|
|
|
1670
|
-
script$
|
|
1671
|
-
script$
|
|
1670
|
+
script$g.render = render$7;
|
|
1671
|
+
script$g.__file = "src/lib/components/ShPhone.vue";
|
|
1672
1672
|
|
|
1673
|
-
var script$
|
|
1673
|
+
var script$f = {
|
|
1674
1674
|
name: 'ShEditor',
|
|
1675
1675
|
props: ['modelValue'],
|
|
1676
1676
|
components: {
|
|
@@ -1709,7 +1709,7 @@ var script$d = {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
};
|
|
1711
1711
|
|
|
1712
|
-
const _hoisted_1$
|
|
1712
|
+
const _hoisted_1$e = /*#__PURE__*/createElementVNode("textarea", {
|
|
1713
1713
|
id: "tiny",
|
|
1714
1714
|
style: {"display":"none"},
|
|
1715
1715
|
"data-cy": "tinymce_editor"
|
|
@@ -1719,7 +1719,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1719
1719
|
const _component_editor = resolveComponent("editor");
|
|
1720
1720
|
|
|
1721
1721
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
1722
|
-
_hoisted_1$
|
|
1722
|
+
_hoisted_1$e,
|
|
1723
1723
|
createElementVNode("div", {
|
|
1724
1724
|
onFocusin: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
1725
1725
|
class: "sh-editor w-100"
|
|
@@ -1744,10 +1744,10 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1744
1744
|
], 64 /* STABLE_FRAGMENT */))
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
|
-
script$
|
|
1748
|
-
script$
|
|
1747
|
+
script$f.render = render$6;
|
|
1748
|
+
script$f.__file = "src/lib/components/FormComponent/ShEditor.vue";
|
|
1749
1749
|
|
|
1750
|
-
const _hoisted_1$
|
|
1750
|
+
const _hoisted_1$d = {
|
|
1751
1751
|
key: 0,
|
|
1752
1752
|
class: "dropdown sh-suggest"
|
|
1753
1753
|
};
|
|
@@ -1768,7 +1768,7 @@ const _hoisted_10$3 = {
|
|
|
1768
1768
|
};
|
|
1769
1769
|
|
|
1770
1770
|
|
|
1771
|
-
var script$
|
|
1771
|
+
var script$e = {
|
|
1772
1772
|
__name: 'ShSuggest',
|
|
1773
1773
|
props: ['fillSelects','modelValue'],
|
|
1774
1774
|
emits: ['update:modelValue'],
|
|
@@ -1849,7 +1849,7 @@ function filterData(e){
|
|
|
1849
1849
|
|
|
1850
1850
|
return (_ctx, _cache) => {
|
|
1851
1851
|
return (unref(id))
|
|
1852
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1852
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
1853
1853
|
createElementVNode("div", {
|
|
1854
1854
|
id: unref(id),
|
|
1855
1855
|
"data-bs-toggle": "dropdown",
|
|
@@ -1909,15 +1909,15 @@ return (_ctx, _cache) => {
|
|
|
1909
1909
|
|
|
1910
1910
|
};
|
|
1911
1911
|
|
|
1912
|
-
script$
|
|
1913
|
-
script$
|
|
1912
|
+
script$e.__scopeId = "data-v-5b767123";
|
|
1913
|
+
script$e.__file = "src/lib/components/FormComponent/ShSuggest.vue";
|
|
1914
1914
|
|
|
1915
|
-
var script$
|
|
1915
|
+
var script$d = {
|
|
1916
1916
|
name: 'ShForm',
|
|
1917
1917
|
components: {
|
|
1918
|
-
ShSuggest: script$
|
|
1919
|
-
ShEditor: script$
|
|
1920
|
-
ShPhone: script$
|
|
1918
|
+
ShSuggest: script$e,
|
|
1919
|
+
ShEditor: script$f,
|
|
1920
|
+
ShPhone: script$g
|
|
1921
1921
|
},
|
|
1922
1922
|
props: [
|
|
1923
1923
|
'action',
|
|
@@ -2229,7 +2229,7 @@ var script$b = {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
};
|
|
2231
2231
|
|
|
2232
|
-
const _hoisted_1$
|
|
2232
|
+
const _hoisted_1$c = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2233
2233
|
const _hoisted_2$9 = {
|
|
2234
2234
|
ref: "ShAutoForm",
|
|
2235
2235
|
class: "sh-form"
|
|
@@ -2291,7 +2291,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2291
2291
|
const _component_ShEditor = resolveComponent("ShEditor");
|
|
2292
2292
|
|
|
2293
2293
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2294
|
-
_hoisted_1$
|
|
2294
|
+
_hoisted_1$c,
|
|
2295
2295
|
createElementVNode("form", _hoisted_2$9, [
|
|
2296
2296
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2297
2297
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
@@ -2508,13 +2508,13 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2508
2508
|
], 64 /* STABLE_FRAGMENT */))
|
|
2509
2509
|
}
|
|
2510
2510
|
|
|
2511
|
-
script$
|
|
2512
|
-
script$
|
|
2511
|
+
script$d.render = render$5;
|
|
2512
|
+
script$d.__file = "src/lib/components/ShForm.vue";
|
|
2513
2513
|
|
|
2514
|
-
const _hoisted_1$
|
|
2514
|
+
const _hoisted_1$b = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
2515
2515
|
const _hoisted_2$8 = { class: "dropdown" };
|
|
2516
2516
|
|
|
2517
|
-
var script$
|
|
2517
|
+
var script$c = {
|
|
2518
2518
|
__name: 'ShDropDownForm',
|
|
2519
2519
|
props: ['action',
|
|
2520
2520
|
'classes',
|
|
@@ -2544,7 +2544,7 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
2544
2544
|
|
|
2545
2545
|
return (_ctx, _cache) => {
|
|
2546
2546
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2547
|
-
_hoisted_1$
|
|
2547
|
+
_hoisted_1$b,
|
|
2548
2548
|
createElementVNode("div", _hoisted_2$8, [
|
|
2549
2549
|
createElementVNode("a", {
|
|
2550
2550
|
class: normalizeClass(unref(btnClass)),
|
|
@@ -2561,7 +2561,7 @@ return (_ctx, _cache) => {
|
|
|
2561
2561
|
class: "dropdown-menu px-2 py-1",
|
|
2562
2562
|
"aria-labelledby": dropdownId
|
|
2563
2563
|
}, [
|
|
2564
|
-
createVNode(script$
|
|
2564
|
+
createVNode(script$d, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
2565
2565
|
])
|
|
2566
2566
|
])
|
|
2567
2567
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -2570,16 +2570,16 @@ return (_ctx, _cache) => {
|
|
|
2570
2570
|
|
|
2571
2571
|
};
|
|
2572
2572
|
|
|
2573
|
-
script$
|
|
2573
|
+
script$c.__file = "src/lib/components/ShDropDownForm.vue";
|
|
2574
2574
|
|
|
2575
|
-
var script$
|
|
2575
|
+
var script$b = {
|
|
2576
2576
|
name: 'ShModal',
|
|
2577
2577
|
props: ['modalTitle', 'modalId', 'modalSize'],
|
|
2578
2578
|
components: {
|
|
2579
2579
|
}
|
|
2580
2580
|
};
|
|
2581
2581
|
|
|
2582
|
-
const _hoisted_1$
|
|
2582
|
+
const _hoisted_1$a = ["id"];
|
|
2583
2583
|
const _hoisted_2$7 = { class: "modal-content" };
|
|
2584
2584
|
const _hoisted_3$7 = { class: "modal-header" };
|
|
2585
2585
|
const _hoisted_4$7 = { class: "modal-title" };
|
|
@@ -2612,15 +2612,15 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2612
2612
|
])
|
|
2613
2613
|
])
|
|
2614
2614
|
], 2 /* CLASS */)
|
|
2615
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
2615
|
+
], 8 /* PROPS */, _hoisted_1$a))
|
|
2616
2616
|
}
|
|
2617
2617
|
|
|
2618
|
-
script$
|
|
2619
|
-
script$
|
|
2618
|
+
script$b.render = render$4;
|
|
2619
|
+
script$b.__file = "src/lib/components/ShModal.vue";
|
|
2620
2620
|
|
|
2621
|
-
const _hoisted_1$
|
|
2621
|
+
const _hoisted_1$9 = ["href"];
|
|
2622
2622
|
|
|
2623
|
-
var script$
|
|
2623
|
+
var script$a = {
|
|
2624
2624
|
__name: 'ShModalForm',
|
|
2625
2625
|
props: ['action',
|
|
2626
2626
|
'classes',
|
|
@@ -2656,13 +2656,13 @@ return (_ctx, _cache) => {
|
|
|
2656
2656
|
"data-bs-toggle": "modal"
|
|
2657
2657
|
}, [
|
|
2658
2658
|
renderSlot(_ctx.$slots, "default")
|
|
2659
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
2660
|
-
createVNode(script$
|
|
2659
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$9),
|
|
2660
|
+
createVNode(script$b, {
|
|
2661
2661
|
"modal-id": modalId,
|
|
2662
2662
|
"modal-title": __props.modalTitle
|
|
2663
2663
|
}, {
|
|
2664
2664
|
default: withCtx(() => [
|
|
2665
|
-
createVNode(script$
|
|
2665
|
+
createVNode(script$d, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
2666
2666
|
]),
|
|
2667
2667
|
_: 1 /* STABLE */
|
|
2668
2668
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -2672,9 +2672,9 @@ return (_ctx, _cache) => {
|
|
|
2672
2672
|
|
|
2673
2673
|
};
|
|
2674
2674
|
|
|
2675
|
-
script$
|
|
2675
|
+
script$a.__file = "src/lib/components/ShModalForm.vue";
|
|
2676
2676
|
|
|
2677
|
-
var script$
|
|
2677
|
+
var script$9 = {
|
|
2678
2678
|
name: 'ShCanvas',
|
|
2679
2679
|
props: ['canvasTitle', 'canvasId', 'position','canvasSize'],
|
|
2680
2680
|
components: {
|
|
@@ -2691,7 +2691,7 @@ var script$7 = {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
};
|
|
2693
2693
|
|
|
2694
|
-
const _hoisted_1$
|
|
2694
|
+
const _hoisted_1$8 = ["id"];
|
|
2695
2695
|
const _hoisted_2$6 = { class: "offcanvas-header" };
|
|
2696
2696
|
const _hoisted_3$6 = {
|
|
2697
2697
|
class: "offcanvas-title",
|
|
@@ -2721,13 +2721,13 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2721
2721
|
createElementVNode("div", _hoisted_4$6, [
|
|
2722
2722
|
renderSlot(_ctx.$slots, "default")
|
|
2723
2723
|
])
|
|
2724
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
2724
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$8))
|
|
2725
2725
|
}
|
|
2726
2726
|
|
|
2727
|
-
script$
|
|
2728
|
-
script$
|
|
2727
|
+
script$9.render = render$3;
|
|
2728
|
+
script$9.__file = "src/lib/components/ShCanvas.vue";
|
|
2729
2729
|
|
|
2730
|
-
var script$
|
|
2730
|
+
var script$8 = {
|
|
2731
2731
|
name: 'Pagination',
|
|
2732
2732
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore'],
|
|
2733
2733
|
data () {
|
|
@@ -2798,7 +2798,7 @@ var script$6 = {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
};
|
|
2800
2800
|
|
|
2801
|
-
const _hoisted_1$
|
|
2801
|
+
const _hoisted_1$7 = { key: 0 };
|
|
2802
2802
|
const _hoisted_2$5 = { class: "record_count_body mb-3" };
|
|
2803
2803
|
const _hoisted_3$5 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2804
2804
|
const _hoisted_4$5 = /*#__PURE__*/createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
@@ -2844,7 +2844,7 @@ const _hoisted_22$1 = {
|
|
|
2844
2844
|
|
|
2845
2845
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2846
2846
|
return (!$props.loadMore)
|
|
2847
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2847
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
2848
2848
|
createElementVNode("div", _hoisted_2$5, [
|
|
2849
2849
|
_hoisted_3$5,
|
|
2850
2850
|
createTextVNode(" "),
|
|
@@ -2916,8 +2916,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2916
2916
|
]))
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
|
-
script$
|
|
2920
|
-
script$
|
|
2919
|
+
script$8.render = render$2;
|
|
2920
|
+
script$8.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
2921
2921
|
|
|
2922
2922
|
function swalSuccess (message) {
|
|
2923
2923
|
Swal.fire('Success!', message, 'success');
|
|
@@ -3057,20 +3057,15 @@ async function runPlainRequest (url, message, title, data) {
|
|
|
3057
3057
|
showLoaderOnConfirm: true,
|
|
3058
3058
|
preConfirm: () => {
|
|
3059
3059
|
return shApis.doPost(url, data).then(function (response) {
|
|
3060
|
-
Swal.fire('Success!', 'Action completed successfully', 'success');
|
|
3061
3060
|
return {
|
|
3062
3061
|
response: response.data,
|
|
3063
3062
|
success: true
|
|
3064
3063
|
}
|
|
3065
3064
|
})
|
|
3066
|
-
.catch(
|
|
3067
|
-
if (typeof reason.response === 'undefined') {
|
|
3068
|
-
Swal.fire('Error!', `Connection to ${url} lost`, 'error');
|
|
3069
|
-
} else {
|
|
3070
|
-
Swal.fire(`Error ${reason.response.status}`, reason.response.statusText, 'error');
|
|
3071
|
-
}
|
|
3065
|
+
.catch(error => {
|
|
3072
3066
|
return {
|
|
3073
|
-
success: false
|
|
3067
|
+
success: false,
|
|
3068
|
+
error: error
|
|
3074
3069
|
}
|
|
3075
3070
|
})
|
|
3076
3071
|
},
|
|
@@ -3098,7 +3093,7 @@ var shRepo = {
|
|
|
3098
3093
|
formatDate
|
|
3099
3094
|
};
|
|
3100
3095
|
|
|
3101
|
-
var script$
|
|
3096
|
+
var script$7 = {
|
|
3102
3097
|
name: 'sh-table',
|
|
3103
3098
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover'],
|
|
3104
3099
|
inject: ['channel'],
|
|
@@ -3312,8 +3307,8 @@ var script$5 = {
|
|
|
3312
3307
|
this.reloadData();
|
|
3313
3308
|
},
|
|
3314
3309
|
components: {
|
|
3315
|
-
ShCanvas: script$
|
|
3316
|
-
pagination: script$
|
|
3310
|
+
ShCanvas: script$9,
|
|
3311
|
+
pagination: script$8
|
|
3317
3312
|
},
|
|
3318
3313
|
computed: {
|
|
3319
3314
|
windowWidth: function () {
|
|
@@ -3331,7 +3326,7 @@ var script$5 = {
|
|
|
3331
3326
|
}
|
|
3332
3327
|
};
|
|
3333
3328
|
|
|
3334
|
-
const _hoisted_1$
|
|
3329
|
+
const _hoisted_1$6 = { class: "auto-table mt-2" };
|
|
3335
3330
|
const _hoisted_2$4 = {
|
|
3336
3331
|
key: 0,
|
|
3337
3332
|
class: "col-md-4 mb-2"
|
|
@@ -3491,7 +3486,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3491
3486
|
const _component_pagination = resolveComponent("pagination");
|
|
3492
3487
|
const _component_sh_canvas = resolveComponent("sh-canvas");
|
|
3493
3488
|
|
|
3494
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3489
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
3495
3490
|
($props.hasDownload)
|
|
3496
3491
|
? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
3497
3492
|
createElementVNode("button", {
|
|
@@ -3901,10 +3896,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3901
3896
|
]))
|
|
3902
3897
|
}
|
|
3903
3898
|
|
|
3904
|
-
script$
|
|
3905
|
-
script$
|
|
3899
|
+
script$7.render = render$1;
|
|
3900
|
+
script$7.__file = "src/lib/components/ShTable.vue";
|
|
3906
3901
|
|
|
3907
|
-
var script$
|
|
3902
|
+
var script$6 = {
|
|
3908
3903
|
name: 'ShTabs',
|
|
3909
3904
|
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
|
|
3910
3905
|
data () {
|
|
@@ -4025,10 +4020,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4025
4020
|
], 64 /* STABLE_FRAGMENT */))
|
|
4026
4021
|
}
|
|
4027
4022
|
|
|
4028
|
-
script$
|
|
4029
|
-
script$
|
|
4023
|
+
script$6.render = render;
|
|
4024
|
+
script$6.__file = "src/lib/components/ShTabs.vue";
|
|
4030
4025
|
|
|
4031
|
-
const _hoisted_1$
|
|
4026
|
+
const _hoisted_1$5 = {
|
|
4032
4027
|
class: "nav nav-tabs",
|
|
4033
4028
|
role: "tablist"
|
|
4034
4029
|
};
|
|
@@ -4039,7 +4034,7 @@ const _hoisted_2$3 = {
|
|
|
4039
4034
|
const _hoisted_3$3 = ["onClick"];
|
|
4040
4035
|
const _hoisted_4$3 = { class: "tab-content" };
|
|
4041
4036
|
|
|
4042
|
-
var script$
|
|
4037
|
+
var script$5 = {
|
|
4043
4038
|
__name: 'ShDynamicTabs',
|
|
4044
4039
|
props: ['tabs','data'],
|
|
4045
4040
|
setup(__props) {
|
|
@@ -4064,7 +4059,7 @@ function setTab(tab){
|
|
|
4064
4059
|
|
|
4065
4060
|
return (_ctx, _cache) => {
|
|
4066
4061
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
4067
|
-
createElementVNode("ul", _hoisted_1$
|
|
4062
|
+
createElementVNode("ul", _hoisted_1$5, [
|
|
4068
4063
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
|
|
4069
4064
|
return (openBlock(), createElementBlock("li", _hoisted_2$3, [
|
|
4070
4065
|
createElementVNode("button", {
|
|
@@ -4085,7 +4080,158 @@ return (_ctx, _cache) => {
|
|
|
4085
4080
|
|
|
4086
4081
|
};
|
|
4087
4082
|
|
|
4088
|
-
script$
|
|
4083
|
+
script$5.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
4084
|
+
|
|
4085
|
+
const _hoisted_1$4 = /*#__PURE__*/createElementVNode("span", {
|
|
4086
|
+
class: "spinner-border spinner-border-sm me-1",
|
|
4087
|
+
role: "status",
|
|
4088
|
+
"aria-hidden": "true"
|
|
4089
|
+
}, null, -1 /* HOISTED */);
|
|
4090
|
+
|
|
4091
|
+
var script$4 = {
|
|
4092
|
+
__name: 'ShSilentAction',
|
|
4093
|
+
props: {
|
|
4094
|
+
data: Object,
|
|
4095
|
+
loadingMessage: {
|
|
4096
|
+
type: String,
|
|
4097
|
+
default: 'Processing'
|
|
4098
|
+
},
|
|
4099
|
+
method: {
|
|
4100
|
+
type: String,
|
|
4101
|
+
default: 'POST'
|
|
4102
|
+
},
|
|
4103
|
+
url: {
|
|
4104
|
+
type: String,
|
|
4105
|
+
required: true
|
|
4106
|
+
}
|
|
4107
|
+
},
|
|
4108
|
+
emits: ['actionSuccessful','actionFailed'],
|
|
4109
|
+
setup(__props, { emit }) {
|
|
4110
|
+
|
|
4111
|
+
const props = __props;
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
const processing = ref(false);
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
function runAction(){
|
|
4118
|
+
processing.value = true;
|
|
4119
|
+
if(props.method === 'POST'){
|
|
4120
|
+
shApis.doPost(props.url,props.data).then(res=>{
|
|
4121
|
+
emit('actionSuccessful',res);
|
|
4122
|
+
processing.value = false;
|
|
4123
|
+
}).catch(reason=>{
|
|
4124
|
+
emit('actionFailed', reason);
|
|
4125
|
+
processing.value = false;
|
|
4126
|
+
});
|
|
4127
|
+
}
|
|
4128
|
+
if(props.method === 'GET'){
|
|
4129
|
+
shApis.doGet(props.url,props.data).then(res=>{
|
|
4130
|
+
emit('actionSuccessful',res);
|
|
4131
|
+
processing.value = false;
|
|
4132
|
+
}).catch(reason=>{
|
|
4133
|
+
emit('actionFailed', reason);
|
|
4134
|
+
processing.value = false;
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
return (_ctx, _cache) => {
|
|
4140
|
+
return (openBlock(), createElementBlock("a", {
|
|
4141
|
+
class: normalizeClass(processing.value ? 'disabled':''),
|
|
4142
|
+
onClick: runAction
|
|
4143
|
+
}, [
|
|
4144
|
+
(processing.value)
|
|
4145
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4146
|
+
_hoisted_1$4,
|
|
4147
|
+
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4148
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4149
|
+
: createCommentVNode("v-if", true),
|
|
4150
|
+
(!processing.value)
|
|
4151
|
+
? renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
4152
|
+
: createCommentVNode("v-if", true)
|
|
4153
|
+
], 2 /* CLASS */))
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
|
|
4157
|
+
};
|
|
4158
|
+
|
|
4159
|
+
script$4.__file = "src/lib/components/ShSilentAction.vue";
|
|
4160
|
+
|
|
4161
|
+
const _hoisted_1$3 = /*#__PURE__*/createElementVNode("span", {
|
|
4162
|
+
class: "spinner-border spinner-border-sm me-1",
|
|
4163
|
+
role: "status",
|
|
4164
|
+
"aria-hidden": "true"
|
|
4165
|
+
}, null, -1 /* HOISTED */);
|
|
4166
|
+
|
|
4167
|
+
|
|
4168
|
+
var script$3 = {
|
|
4169
|
+
__name: 'ShConfirmAction',
|
|
4170
|
+
props: {
|
|
4171
|
+
data: Object,
|
|
4172
|
+
title: String,
|
|
4173
|
+
message: String,
|
|
4174
|
+
url: {
|
|
4175
|
+
type: String,
|
|
4176
|
+
required: true
|
|
4177
|
+
},
|
|
4178
|
+
loadingMessage: {
|
|
4179
|
+
type: String,
|
|
4180
|
+
default: 'Processing'
|
|
4181
|
+
}
|
|
4182
|
+
},
|
|
4183
|
+
emits: ['actionSuccessful', 'actionFailed','actionCanceled'],
|
|
4184
|
+
setup(__props, { emit }) {
|
|
4185
|
+
|
|
4186
|
+
const props = __props;
|
|
4187
|
+
|
|
4188
|
+
|
|
4189
|
+
const processing = ref(false);
|
|
4190
|
+
|
|
4191
|
+
|
|
4192
|
+
function runAction () {
|
|
4193
|
+
processing.value = true;
|
|
4194
|
+
shRepo.runPlainRequest(props.url, props.message, props.title, props.data).then(res => {
|
|
4195
|
+
if(res.isConfirmed){
|
|
4196
|
+
const value = res.value;
|
|
4197
|
+
if(value.status){
|
|
4198
|
+
emit('actionSuccessful', res);
|
|
4199
|
+
processing.value = false;
|
|
4200
|
+
} else {
|
|
4201
|
+
emit('actionFailed', value);
|
|
4202
|
+
processing.value = false;
|
|
4203
|
+
}
|
|
4204
|
+
} else {
|
|
4205
|
+
emit('actionCanceled');
|
|
4206
|
+
processing.value = false;
|
|
4207
|
+
}
|
|
4208
|
+
}).catch(ex => {
|
|
4209
|
+
emit('actionFailed', ex);
|
|
4210
|
+
processing.value = false;
|
|
4211
|
+
});
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
return (_ctx, _cache) => {
|
|
4215
|
+
return (openBlock(), createElementBlock("a", {
|
|
4216
|
+
class: normalizeClass(processing.value ? 'disabled':''),
|
|
4217
|
+
onClick: runAction
|
|
4218
|
+
}, [
|
|
4219
|
+
(processing.value)
|
|
4220
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4221
|
+
_hoisted_1$3,
|
|
4222
|
+
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4223
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4224
|
+
: createCommentVNode("v-if", true),
|
|
4225
|
+
(!processing.value)
|
|
4226
|
+
? renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
4227
|
+
: createCommentVNode("v-if", true)
|
|
4228
|
+
], 2 /* CLASS */))
|
|
4229
|
+
}
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
};
|
|
4233
|
+
|
|
4234
|
+
script$3.__file = "src/lib/components/ShConfirmAction.vue";
|
|
4089
4235
|
|
|
4090
4236
|
const useUserStore = defineStore('user-store', {
|
|
4091
4237
|
state: () => ({
|
|
@@ -4213,7 +4359,7 @@ return (_ctx, _cache) => {
|
|
|
4213
4359
|
_hoisted_5$2,
|
|
4214
4360
|
createTextVNode(" ADD DEPARTMENT")
|
|
4215
4361
|
], 512 /* NEED_PATCH */),
|
|
4216
|
-
createVNode(script$
|
|
4362
|
+
createVNode(script$7, {
|
|
4217
4363
|
headers: ['id','name','description', 'created_at'],
|
|
4218
4364
|
"end-point": "admin/departments/list",
|
|
4219
4365
|
actions: {
|
|
@@ -4227,12 +4373,12 @@ return (_ctx, _cache) => {
|
|
|
4227
4373
|
]
|
|
4228
4374
|
}
|
|
4229
4375
|
}),
|
|
4230
|
-
createVNode(script$
|
|
4376
|
+
createVNode(script$b, {
|
|
4231
4377
|
"modal-id": "sh-department_modal",
|
|
4232
4378
|
"modal-title": "Department Form"
|
|
4233
4379
|
}, {
|
|
4234
4380
|
default: withCtx(() => [
|
|
4235
|
-
createVNode(script$
|
|
4381
|
+
createVNode(script$d, {
|
|
4236
4382
|
"success-callback": "departmentAdded",
|
|
4237
4383
|
onDepartmentAdded: departmentAdded,
|
|
4238
4384
|
action: "admin/departments/store",
|
|
@@ -4364,7 +4510,7 @@ return (_ctx, _cache) => {
|
|
|
4364
4510
|
createElementVNode("div", _hoisted_2$1, [
|
|
4365
4511
|
_hoisted_3$1,
|
|
4366
4512
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
4367
|
-
createVNode(script$
|
|
4513
|
+
createVNode(script$7, {
|
|
4368
4514
|
actions: {
|
|
4369
4515
|
label: 'Actions',
|
|
4370
4516
|
actions: [
|
|
@@ -4384,12 +4530,12 @@ return (_ctx, _cache) => {
|
|
|
4384
4530
|
headers: ['id',showModule,'created_at'],
|
|
4385
4531
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
4386
4532
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
4387
|
-
createVNode(script$
|
|
4533
|
+
createVNode(script$b, {
|
|
4388
4534
|
"modal-id": "addModule",
|
|
4389
4535
|
"modal-title": "Add Module Department"
|
|
4390
4536
|
}, {
|
|
4391
4537
|
default: withCtx(() => [
|
|
4392
|
-
createVNode(script$
|
|
4538
|
+
createVNode(script$d, {
|
|
4393
4539
|
"reload-select-items": unref(reload),
|
|
4394
4540
|
"success-callback": moduleAdded,
|
|
4395
4541
|
"fill-selects": {
|
|
@@ -4411,7 +4557,7 @@ return (_ctx, _cache) => {
|
|
|
4411
4557
|
ref: permissionCanvasBtn,
|
|
4412
4558
|
"data-bs-toggle": "offcanvas"
|
|
4413
4559
|
}, null, 512 /* NEED_PATCH */),
|
|
4414
|
-
createVNode(script$
|
|
4560
|
+
createVNode(script$9, {
|
|
4415
4561
|
"canvas-id": "permissionsCanvas",
|
|
4416
4562
|
position: "end enlarged",
|
|
4417
4563
|
"canvas-title": "Module Permissions"
|
|
@@ -4526,7 +4672,7 @@ return (_ctx, _cache) => {
|
|
|
4526
4672
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4527
4673
|
(section.value === 'login')
|
|
4528
4674
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
4529
|
-
createVNode(script$
|
|
4675
|
+
createVNode(script$d, {
|
|
4530
4676
|
class: "sh-login-form",
|
|
4531
4677
|
fields: ['email','password'],
|
|
4532
4678
|
"action-label": "Login",
|
|
@@ -4551,7 +4697,7 @@ return (_ctx, _cache) => {
|
|
|
4551
4697
|
(unref(registerSubTitle))
|
|
4552
4698
|
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
4553
4699
|
: createCommentVNode("v-if", true),
|
|
4554
|
-
createVNode(script$
|
|
4700
|
+
createVNode(script$d, {
|
|
4555
4701
|
class: "sh-login-form",
|
|
4556
4702
|
fields: unref(registrationFields),
|
|
4557
4703
|
"action-label": "Sign Up",
|
|
@@ -4615,4 +4761,4 @@ const ShFrontend = {
|
|
|
4615
4761
|
}
|
|
4616
4762
|
};
|
|
4617
4763
|
|
|
4618
|
-
export { script$
|
|
4764
|
+
export { script$9 as ShCanvas, script$3 as ShConfirmAction, script$c as ShDropDownForm, script$5 as ShDynamicTabs, script$d as ShForm, ShFrontend, script$b as ShModal, script$a as ShModalForm, script$g as ShPhone, script$4 as ShSilentAction, script$7 as ShTable, script$6 as ShTabs, shApis, shRepo, ShStorage as shStorage, useUserStore };
|