@iankibetsh/shframework 1.0.6 → 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/library.js +161 -85
- package/dist/library.mjs +151 -76
- package/package.json +1 -1
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$f = {
|
|
|
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$e = {
|
|
|
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$c = {
|
|
|
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$8 = {
|
|
|
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$7 = {
|
|
|
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');
|
|
@@ -3105,7 +3105,7 @@ var shRepo = {
|
|
|
3105
3105
|
formatDate
|
|
3106
3106
|
};
|
|
3107
3107
|
|
|
3108
|
-
var script$
|
|
3108
|
+
var script$7 = {
|
|
3109
3109
|
name: 'sh-table',
|
|
3110
3110
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover'],
|
|
3111
3111
|
inject: ['channel'],
|
|
@@ -3319,8 +3319,8 @@ var script$6 = {
|
|
|
3319
3319
|
this.reloadData();
|
|
3320
3320
|
},
|
|
3321
3321
|
components: {
|
|
3322
|
-
ShCanvas: script$
|
|
3323
|
-
pagination: script$
|
|
3322
|
+
ShCanvas: script$9,
|
|
3323
|
+
pagination: script$8
|
|
3324
3324
|
},
|
|
3325
3325
|
computed: {
|
|
3326
3326
|
windowWidth: function () {
|
|
@@ -3338,7 +3338,7 @@ var script$6 = {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
};
|
|
3340
3340
|
|
|
3341
|
-
const _hoisted_1$
|
|
3341
|
+
const _hoisted_1$6 = { class: "auto-table mt-2" };
|
|
3342
3342
|
const _hoisted_2$4 = {
|
|
3343
3343
|
key: 0,
|
|
3344
3344
|
class: "col-md-4 mb-2"
|
|
@@ -3498,7 +3498,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3498
3498
|
const _component_pagination = vue.resolveComponent("pagination");
|
|
3499
3499
|
const _component_sh_canvas = vue.resolveComponent("sh-canvas");
|
|
3500
3500
|
|
|
3501
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3501
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
3502
3502
|
($props.hasDownload)
|
|
3503
3503
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
|
|
3504
3504
|
vue.createElementVNode("button", {
|
|
@@ -3908,10 +3908,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3908
3908
|
]))
|
|
3909
3909
|
}
|
|
3910
3910
|
|
|
3911
|
-
script$
|
|
3912
|
-
script$
|
|
3911
|
+
script$7.render = render$1;
|
|
3912
|
+
script$7.__file = "src/lib/components/ShTable.vue";
|
|
3913
3913
|
|
|
3914
|
-
var script$
|
|
3914
|
+
var script$6 = {
|
|
3915
3915
|
name: 'ShTabs',
|
|
3916
3916
|
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
|
|
3917
3917
|
data () {
|
|
@@ -4032,10 +4032,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4032
4032
|
], 64 /* STABLE_FRAGMENT */))
|
|
4033
4033
|
}
|
|
4034
4034
|
|
|
4035
|
-
script$
|
|
4036
|
-
script$
|
|
4035
|
+
script$6.render = render;
|
|
4036
|
+
script$6.__file = "src/lib/components/ShTabs.vue";
|
|
4037
4037
|
|
|
4038
|
-
const _hoisted_1$
|
|
4038
|
+
const _hoisted_1$5 = {
|
|
4039
4039
|
class: "nav nav-tabs",
|
|
4040
4040
|
role: "tablist"
|
|
4041
4041
|
};
|
|
@@ -4046,7 +4046,7 @@ const _hoisted_2$3 = {
|
|
|
4046
4046
|
const _hoisted_3$3 = ["onClick"];
|
|
4047
4047
|
const _hoisted_4$3 = { class: "tab-content" };
|
|
4048
4048
|
|
|
4049
|
-
var script$
|
|
4049
|
+
var script$5 = {
|
|
4050
4050
|
__name: 'ShDynamicTabs',
|
|
4051
4051
|
props: ['tabs','data'],
|
|
4052
4052
|
setup(__props) {
|
|
@@ -4071,7 +4071,7 @@ function setTab(tab){
|
|
|
4071
4071
|
|
|
4072
4072
|
return (_ctx, _cache) => {
|
|
4073
4073
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4074
|
-
vue.createElementVNode("ul", _hoisted_1$
|
|
4074
|
+
vue.createElementVNode("ul", _hoisted_1$5, [
|
|
4075
4075
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
|
|
4076
4076
|
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$3, [
|
|
4077
4077
|
vue.createElementVNode("button", {
|
|
@@ -4092,15 +4092,15 @@ return (_ctx, _cache) => {
|
|
|
4092
4092
|
|
|
4093
4093
|
};
|
|
4094
4094
|
|
|
4095
|
-
script$
|
|
4095
|
+
script$5.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
4096
4096
|
|
|
4097
|
-
const _hoisted_1$
|
|
4097
|
+
const _hoisted_1$4 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4098
4098
|
class: "spinner-border spinner-border-sm me-1",
|
|
4099
4099
|
role: "status",
|
|
4100
4100
|
"aria-hidden": "true"
|
|
4101
4101
|
}, null, -1 /* HOISTED */);
|
|
4102
4102
|
|
|
4103
|
-
var script$
|
|
4103
|
+
var script$4 = {
|
|
4104
4104
|
__name: 'ShSilentAction',
|
|
4105
4105
|
props: {
|
|
4106
4106
|
data: Object,
|
|
@@ -4148,6 +4148,81 @@ function runAction(){
|
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
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
|
+
|
|
4151
4226
|
return (_ctx, _cache) => {
|
|
4152
4227
|
return (vue.openBlock(), vue.createElementBlock("a", {
|
|
4153
4228
|
class: vue.normalizeClass(processing.value ? 'disabled':''),
|
|
@@ -4168,7 +4243,7 @@ return (_ctx, _cache) => {
|
|
|
4168
4243
|
|
|
4169
4244
|
};
|
|
4170
4245
|
|
|
4171
|
-
script$3.__file = "src/lib/components/
|
|
4246
|
+
script$3.__file = "src/lib/components/ShConfirmAction.vue";
|
|
4172
4247
|
|
|
4173
4248
|
const useUserStore = pinia.defineStore('user-store', {
|
|
4174
4249
|
state: () => ({
|
|
@@ -4296,7 +4371,7 @@ return (_ctx, _cache) => {
|
|
|
4296
4371
|
_hoisted_5$2,
|
|
4297
4372
|
vue.createTextVNode(" ADD DEPARTMENT")
|
|
4298
4373
|
], 512 /* NEED_PATCH */),
|
|
4299
|
-
vue.createVNode(script$
|
|
4374
|
+
vue.createVNode(script$7, {
|
|
4300
4375
|
headers: ['id','name','description', 'created_at'],
|
|
4301
4376
|
"end-point": "admin/departments/list",
|
|
4302
4377
|
actions: {
|
|
@@ -4310,12 +4385,12 @@ return (_ctx, _cache) => {
|
|
|
4310
4385
|
]
|
|
4311
4386
|
}
|
|
4312
4387
|
}),
|
|
4313
|
-
vue.createVNode(script$
|
|
4388
|
+
vue.createVNode(script$b, {
|
|
4314
4389
|
"modal-id": "sh-department_modal",
|
|
4315
4390
|
"modal-title": "Department Form"
|
|
4316
4391
|
}, {
|
|
4317
4392
|
default: vue.withCtx(() => [
|
|
4318
|
-
vue.createVNode(script$
|
|
4393
|
+
vue.createVNode(script$d, {
|
|
4319
4394
|
"success-callback": "departmentAdded",
|
|
4320
4395
|
onDepartmentAdded: departmentAdded,
|
|
4321
4396
|
action: "admin/departments/store",
|
|
@@ -4447,7 +4522,7 @@ return (_ctx, _cache) => {
|
|
|
4447
4522
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
4448
4523
|
_hoisted_3$1,
|
|
4449
4524
|
vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
4450
|
-
vue.createVNode(script$
|
|
4525
|
+
vue.createVNode(script$7, {
|
|
4451
4526
|
actions: {
|
|
4452
4527
|
label: 'Actions',
|
|
4453
4528
|
actions: [
|
|
@@ -4467,12 +4542,12 @@ return (_ctx, _cache) => {
|
|
|
4467
4542
|
headers: ['id',showModule,'created_at'],
|
|
4468
4543
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
4469
4544
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
4470
|
-
vue.createVNode(script$
|
|
4545
|
+
vue.createVNode(script$b, {
|
|
4471
4546
|
"modal-id": "addModule",
|
|
4472
4547
|
"modal-title": "Add Module Department"
|
|
4473
4548
|
}, {
|
|
4474
4549
|
default: vue.withCtx(() => [
|
|
4475
|
-
vue.createVNode(script$
|
|
4550
|
+
vue.createVNode(script$d, {
|
|
4476
4551
|
"reload-select-items": vue.unref(reload),
|
|
4477
4552
|
"success-callback": moduleAdded,
|
|
4478
4553
|
"fill-selects": {
|
|
@@ -4494,7 +4569,7 @@ return (_ctx, _cache) => {
|
|
|
4494
4569
|
ref: permissionCanvasBtn,
|
|
4495
4570
|
"data-bs-toggle": "offcanvas"
|
|
4496
4571
|
}, null, 512 /* NEED_PATCH */),
|
|
4497
|
-
vue.createVNode(script$
|
|
4572
|
+
vue.createVNode(script$9, {
|
|
4498
4573
|
"canvas-id": "permissionsCanvas",
|
|
4499
4574
|
position: "end enlarged",
|
|
4500
4575
|
"canvas-title": "Module Permissions"
|
|
@@ -4609,7 +4684,7 @@ return (_ctx, _cache) => {
|
|
|
4609
4684
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
4610
4685
|
(section.value === 'login')
|
|
4611
4686
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
4612
|
-
vue.createVNode(script$
|
|
4687
|
+
vue.createVNode(script$d, {
|
|
4613
4688
|
class: "sh-login-form",
|
|
4614
4689
|
fields: ['email','password'],
|
|
4615
4690
|
"action-label": "Login",
|
|
@@ -4634,7 +4709,7 @@ return (_ctx, _cache) => {
|
|
|
4634
4709
|
(vue.unref(registerSubTitle))
|
|
4635
4710
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
4636
4711
|
: vue.createCommentVNode("v-if", true),
|
|
4637
|
-
vue.createVNode(script$
|
|
4712
|
+
vue.createVNode(script$d, {
|
|
4638
4713
|
class: "sh-login-form",
|
|
4639
4714
|
fields: vue.unref(registrationFields),
|
|
4640
4715
|
"action-label": "Sign Up",
|
|
@@ -4698,17 +4773,18 @@ const ShFrontend = {
|
|
|
4698
4773
|
}
|
|
4699
4774
|
};
|
|
4700
4775
|
|
|
4701
|
-
exports.ShCanvas = script$
|
|
4702
|
-
exports.
|
|
4703
|
-
exports.
|
|
4704
|
-
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;
|
|
4705
4781
|
exports.ShFrontend = ShFrontend;
|
|
4706
|
-
exports.ShModal = script$
|
|
4707
|
-
exports.ShModalForm = script$
|
|
4708
|
-
exports.ShPhone = script$
|
|
4709
|
-
exports.ShSilentAction = script$
|
|
4710
|
-
exports.ShTable = script$
|
|
4711
|
-
exports.ShTabs = script$
|
|
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;
|
|
4712
4788
|
exports.shApis = shApis;
|
|
4713
4789
|
exports.shRepo = shRepo;
|
|
4714
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$f = {
|
|
|
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$e = {
|
|
|
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$c = {
|
|
|
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$8 = {
|
|
|
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$7 = {
|
|
|
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');
|
|
@@ -3093,7 +3093,7 @@ var shRepo = {
|
|
|
3093
3093
|
formatDate
|
|
3094
3094
|
};
|
|
3095
3095
|
|
|
3096
|
-
var script$
|
|
3096
|
+
var script$7 = {
|
|
3097
3097
|
name: 'sh-table',
|
|
3098
3098
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover'],
|
|
3099
3099
|
inject: ['channel'],
|
|
@@ -3307,8 +3307,8 @@ var script$6 = {
|
|
|
3307
3307
|
this.reloadData();
|
|
3308
3308
|
},
|
|
3309
3309
|
components: {
|
|
3310
|
-
ShCanvas: script$
|
|
3311
|
-
pagination: script$
|
|
3310
|
+
ShCanvas: script$9,
|
|
3311
|
+
pagination: script$8
|
|
3312
3312
|
},
|
|
3313
3313
|
computed: {
|
|
3314
3314
|
windowWidth: function () {
|
|
@@ -3326,7 +3326,7 @@ var script$6 = {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
};
|
|
3328
3328
|
|
|
3329
|
-
const _hoisted_1$
|
|
3329
|
+
const _hoisted_1$6 = { class: "auto-table mt-2" };
|
|
3330
3330
|
const _hoisted_2$4 = {
|
|
3331
3331
|
key: 0,
|
|
3332
3332
|
class: "col-md-4 mb-2"
|
|
@@ -3486,7 +3486,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3486
3486
|
const _component_pagination = resolveComponent("pagination");
|
|
3487
3487
|
const _component_sh_canvas = resolveComponent("sh-canvas");
|
|
3488
3488
|
|
|
3489
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3489
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
3490
3490
|
($props.hasDownload)
|
|
3491
3491
|
? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
3492
3492
|
createElementVNode("button", {
|
|
@@ -3896,10 +3896,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3896
3896
|
]))
|
|
3897
3897
|
}
|
|
3898
3898
|
|
|
3899
|
-
script$
|
|
3900
|
-
script$
|
|
3899
|
+
script$7.render = render$1;
|
|
3900
|
+
script$7.__file = "src/lib/components/ShTable.vue";
|
|
3901
3901
|
|
|
3902
|
-
var script$
|
|
3902
|
+
var script$6 = {
|
|
3903
3903
|
name: 'ShTabs',
|
|
3904
3904
|
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
|
|
3905
3905
|
data () {
|
|
@@ -4020,10 +4020,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4020
4020
|
], 64 /* STABLE_FRAGMENT */))
|
|
4021
4021
|
}
|
|
4022
4022
|
|
|
4023
|
-
script$
|
|
4024
|
-
script$
|
|
4023
|
+
script$6.render = render;
|
|
4024
|
+
script$6.__file = "src/lib/components/ShTabs.vue";
|
|
4025
4025
|
|
|
4026
|
-
const _hoisted_1$
|
|
4026
|
+
const _hoisted_1$5 = {
|
|
4027
4027
|
class: "nav nav-tabs",
|
|
4028
4028
|
role: "tablist"
|
|
4029
4029
|
};
|
|
@@ -4034,7 +4034,7 @@ const _hoisted_2$3 = {
|
|
|
4034
4034
|
const _hoisted_3$3 = ["onClick"];
|
|
4035
4035
|
const _hoisted_4$3 = { class: "tab-content" };
|
|
4036
4036
|
|
|
4037
|
-
var script$
|
|
4037
|
+
var script$5 = {
|
|
4038
4038
|
__name: 'ShDynamicTabs',
|
|
4039
4039
|
props: ['tabs','data'],
|
|
4040
4040
|
setup(__props) {
|
|
@@ -4059,7 +4059,7 @@ function setTab(tab){
|
|
|
4059
4059
|
|
|
4060
4060
|
return (_ctx, _cache) => {
|
|
4061
4061
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
4062
|
-
createElementVNode("ul", _hoisted_1$
|
|
4062
|
+
createElementVNode("ul", _hoisted_1$5, [
|
|
4063
4063
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
|
|
4064
4064
|
return (openBlock(), createElementBlock("li", _hoisted_2$3, [
|
|
4065
4065
|
createElementVNode("button", {
|
|
@@ -4080,15 +4080,15 @@ return (_ctx, _cache) => {
|
|
|
4080
4080
|
|
|
4081
4081
|
};
|
|
4082
4082
|
|
|
4083
|
-
script$
|
|
4083
|
+
script$5.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
4084
4084
|
|
|
4085
|
-
const _hoisted_1$
|
|
4085
|
+
const _hoisted_1$4 = /*#__PURE__*/createElementVNode("span", {
|
|
4086
4086
|
class: "spinner-border spinner-border-sm me-1",
|
|
4087
4087
|
role: "status",
|
|
4088
4088
|
"aria-hidden": "true"
|
|
4089
4089
|
}, null, -1 /* HOISTED */);
|
|
4090
4090
|
|
|
4091
|
-
var script$
|
|
4091
|
+
var script$4 = {
|
|
4092
4092
|
__name: 'ShSilentAction',
|
|
4093
4093
|
props: {
|
|
4094
4094
|
data: Object,
|
|
@@ -4136,6 +4136,81 @@ function runAction(){
|
|
|
4136
4136
|
}
|
|
4137
4137
|
}
|
|
4138
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
|
+
|
|
4139
4214
|
return (_ctx, _cache) => {
|
|
4140
4215
|
return (openBlock(), createElementBlock("a", {
|
|
4141
4216
|
class: normalizeClass(processing.value ? 'disabled':''),
|
|
@@ -4156,7 +4231,7 @@ return (_ctx, _cache) => {
|
|
|
4156
4231
|
|
|
4157
4232
|
};
|
|
4158
4233
|
|
|
4159
|
-
script$3.__file = "src/lib/components/
|
|
4234
|
+
script$3.__file = "src/lib/components/ShConfirmAction.vue";
|
|
4160
4235
|
|
|
4161
4236
|
const useUserStore = defineStore('user-store', {
|
|
4162
4237
|
state: () => ({
|
|
@@ -4284,7 +4359,7 @@ return (_ctx, _cache) => {
|
|
|
4284
4359
|
_hoisted_5$2,
|
|
4285
4360
|
createTextVNode(" ADD DEPARTMENT")
|
|
4286
4361
|
], 512 /* NEED_PATCH */),
|
|
4287
|
-
createVNode(script$
|
|
4362
|
+
createVNode(script$7, {
|
|
4288
4363
|
headers: ['id','name','description', 'created_at'],
|
|
4289
4364
|
"end-point": "admin/departments/list",
|
|
4290
4365
|
actions: {
|
|
@@ -4298,12 +4373,12 @@ return (_ctx, _cache) => {
|
|
|
4298
4373
|
]
|
|
4299
4374
|
}
|
|
4300
4375
|
}),
|
|
4301
|
-
createVNode(script$
|
|
4376
|
+
createVNode(script$b, {
|
|
4302
4377
|
"modal-id": "sh-department_modal",
|
|
4303
4378
|
"modal-title": "Department Form"
|
|
4304
4379
|
}, {
|
|
4305
4380
|
default: withCtx(() => [
|
|
4306
|
-
createVNode(script$
|
|
4381
|
+
createVNode(script$d, {
|
|
4307
4382
|
"success-callback": "departmentAdded",
|
|
4308
4383
|
onDepartmentAdded: departmentAdded,
|
|
4309
4384
|
action: "admin/departments/store",
|
|
@@ -4435,7 +4510,7 @@ return (_ctx, _cache) => {
|
|
|
4435
4510
|
createElementVNode("div", _hoisted_2$1, [
|
|
4436
4511
|
_hoisted_3$1,
|
|
4437
4512
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
4438
|
-
createVNode(script$
|
|
4513
|
+
createVNode(script$7, {
|
|
4439
4514
|
actions: {
|
|
4440
4515
|
label: 'Actions',
|
|
4441
4516
|
actions: [
|
|
@@ -4455,12 +4530,12 @@ return (_ctx, _cache) => {
|
|
|
4455
4530
|
headers: ['id',showModule,'created_at'],
|
|
4456
4531
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
4457
4532
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
4458
|
-
createVNode(script$
|
|
4533
|
+
createVNode(script$b, {
|
|
4459
4534
|
"modal-id": "addModule",
|
|
4460
4535
|
"modal-title": "Add Module Department"
|
|
4461
4536
|
}, {
|
|
4462
4537
|
default: withCtx(() => [
|
|
4463
|
-
createVNode(script$
|
|
4538
|
+
createVNode(script$d, {
|
|
4464
4539
|
"reload-select-items": unref(reload),
|
|
4465
4540
|
"success-callback": moduleAdded,
|
|
4466
4541
|
"fill-selects": {
|
|
@@ -4482,7 +4557,7 @@ return (_ctx, _cache) => {
|
|
|
4482
4557
|
ref: permissionCanvasBtn,
|
|
4483
4558
|
"data-bs-toggle": "offcanvas"
|
|
4484
4559
|
}, null, 512 /* NEED_PATCH */),
|
|
4485
|
-
createVNode(script$
|
|
4560
|
+
createVNode(script$9, {
|
|
4486
4561
|
"canvas-id": "permissionsCanvas",
|
|
4487
4562
|
position: "end enlarged",
|
|
4488
4563
|
"canvas-title": "Module Permissions"
|
|
@@ -4597,7 +4672,7 @@ return (_ctx, _cache) => {
|
|
|
4597
4672
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4598
4673
|
(section.value === 'login')
|
|
4599
4674
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
4600
|
-
createVNode(script$
|
|
4675
|
+
createVNode(script$d, {
|
|
4601
4676
|
class: "sh-login-form",
|
|
4602
4677
|
fields: ['email','password'],
|
|
4603
4678
|
"action-label": "Login",
|
|
@@ -4622,7 +4697,7 @@ return (_ctx, _cache) => {
|
|
|
4622
4697
|
(unref(registerSubTitle))
|
|
4623
4698
|
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
4624
4699
|
: createCommentVNode("v-if", true),
|
|
4625
|
-
createVNode(script$
|
|
4700
|
+
createVNode(script$d, {
|
|
4626
4701
|
class: "sh-login-form",
|
|
4627
4702
|
fields: unref(registrationFields),
|
|
4628
4703
|
"action-label": "Sign Up",
|
|
@@ -4686,4 +4761,4 @@ const ShFrontend = {
|
|
|
4686
4761
|
}
|
|
4687
4762
|
};
|
|
4688
4763
|
|
|
4689
|
-
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 };
|