@iankibetsh/shframework 0.7.8 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist/library.mjs.css +15 -15
- package/dist/library.js +153 -137
- package/dist/library.mjs +154 -138
- package/package.json +1 -1
|
@@ -63,6 +63,21 @@
|
|
|
63
63
|
color: white;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
.sh-selected-item{
|
|
67
|
+
line-height: unset!important;
|
|
68
|
+
}
|
|
69
|
+
.sh-suggestion-input{
|
|
70
|
+
padding: 0.375rem 0.75rem;
|
|
71
|
+
}
|
|
72
|
+
.sh-suggest{
|
|
73
|
+
margin-bottom: 1rem;
|
|
74
|
+
}
|
|
75
|
+
.sh-suggest-control::after{
|
|
76
|
+
margin-top: auto;
|
|
77
|
+
margin-bottom: auto;
|
|
78
|
+
margin-right: 0.255em;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
:root {
|
|
67
82
|
--ck-z-default: 10555 !important;
|
|
68
83
|
--ck-z-modal: calc(var(--ck-z-default) + 999) !important;
|
|
@@ -84,21 +99,6 @@
|
|
|
84
99
|
}
|
|
85
100
|
}
|
|
86
101
|
|
|
87
|
-
.sh-selected-item{
|
|
88
|
-
line-height: unset!important;
|
|
89
|
-
}
|
|
90
|
-
.sh-suggestion-input{
|
|
91
|
-
padding: 0.375rem 0.75rem;
|
|
92
|
-
}
|
|
93
|
-
.sh-suggest{
|
|
94
|
-
margin-bottom: 1rem;
|
|
95
|
-
}
|
|
96
|
-
.sh-suggest-control::after{
|
|
97
|
-
margin-top: auto;
|
|
98
|
-
margin-bottom: auto;
|
|
99
|
-
margin-right: 0.255em;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
102
|
.sh-forgot-link, .sh-register-link{
|
|
103
103
|
cursor: pointer;
|
|
104
104
|
}
|
package/dist/library.js
CHANGED
|
@@ -1642,7 +1642,7 @@ const _hoisted_2$b = {
|
|
|
1642
1642
|
style: {"display":"contents"}
|
|
1643
1643
|
};
|
|
1644
1644
|
const _hoisted_3$b = ["src"];
|
|
1645
|
-
const _hoisted_4$
|
|
1645
|
+
const _hoisted_4$b = ["value"];
|
|
1646
1646
|
|
|
1647
1647
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1648
1648
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
@@ -1661,7 +1661,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1661
1661
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
1662
1662
|
value: country,
|
|
1663
1663
|
key: country.dialCode
|
|
1664
|
-
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1664
|
+
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$b))
|
|
1665
1665
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1666
1666
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1667
1667
|
[vue.vModelSelect, $data.selectedCountry]
|
|
@@ -1765,9 +1765,9 @@ const _hoisted_1$a = {
|
|
|
1765
1765
|
};
|
|
1766
1766
|
const _hoisted_2$a = ["id"];
|
|
1767
1767
|
const _hoisted_3$a = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
1768
|
-
const _hoisted_4$
|
|
1769
|
-
const _hoisted_5$
|
|
1770
|
-
const _hoisted_6$
|
|
1768
|
+
const _hoisted_4$a = ["onClick"];
|
|
1769
|
+
const _hoisted_5$6 = ["id"];
|
|
1770
|
+
const _hoisted_6$5 = ["id", "aria-labelledby"];
|
|
1771
1771
|
const _hoisted_7$4 = { key: 0 };
|
|
1772
1772
|
const _hoisted_8$3 = ["onClick"];
|
|
1773
1773
|
const _hoisted_9$4 = {
|
|
@@ -1877,7 +1877,7 @@ return (_ctx, _cache) => {
|
|
|
1877
1877
|
type: "button",
|
|
1878
1878
|
class: "btn-close border-start border-1 ms-1",
|
|
1879
1879
|
"aria-label": "Close"
|
|
1880
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
1880
|
+
}, null, 8 /* PROPS */, _hoisted_4$a)
|
|
1881
1881
|
]))
|
|
1882
1882
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
1883
1883
|
]),
|
|
@@ -1887,7 +1887,7 @@ return (_ctx, _cache) => {
|
|
|
1887
1887
|
onClick: filterData,
|
|
1888
1888
|
onInput: filterData,
|
|
1889
1889
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
1890
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$
|
|
1890
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$6)
|
|
1891
1891
|
], 8 /* PROPS */, _hoisted_2$a),
|
|
1892
1892
|
vue.createElementVNode("ul", {
|
|
1893
1893
|
class: "dropdown-menu w-100",
|
|
@@ -1913,7 +1913,7 @@ return (_ctx, _cache) => {
|
|
|
1913
1913
|
: (vue.unref(searchText))
|
|
1914
1914
|
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$4, " No results found "))
|
|
1915
1915
|
: (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$3, " Type to search... "))
|
|
1916
|
-
], 8 /* PROPS */, _hoisted_6$
|
|
1916
|
+
], 8 /* PROPS */, _hoisted_6$5)
|
|
1917
1917
|
]))
|
|
1918
1918
|
: vue.createCommentVNode("v-if", true)
|
|
1919
1919
|
}
|
|
@@ -2250,9 +2250,9 @@ const _hoisted_2$9 = {
|
|
|
2250
2250
|
role: "alert"
|
|
2251
2251
|
};
|
|
2252
2252
|
const _hoisted_3$9 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2253
|
-
const _hoisted_4$
|
|
2254
|
-
const _hoisted_5$
|
|
2255
|
-
const _hoisted_6$
|
|
2253
|
+
const _hoisted_4$9 = { key: 0 };
|
|
2254
|
+
const _hoisted_5$5 = { key: 1 };
|
|
2255
|
+
const _hoisted_6$4 = { class: "row" };
|
|
2256
2256
|
const _hoisted_7$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2257
2257
|
const _hoisted_8$2 = { class: "col-md-12" };
|
|
2258
2258
|
const _hoisted_9$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
@@ -2307,8 +2307,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2307
2307
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
|
|
2308
2308
|
_hoisted_3$9,
|
|
2309
2309
|
(_ctx.errorText)
|
|
2310
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
2311
|
-
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
2310
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$9, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2311
|
+
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$5, "Unexpected Error Occurred")),
|
|
2312
2312
|
vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2313
2313
|
]))
|
|
2314
2314
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2318,7 +2318,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2318
2318
|
}, null, 512 /* NEED_PATCH */), [
|
|
2319
2319
|
[vue.vModelText, _ctx.form_elements['id']]
|
|
2320
2320
|
]),
|
|
2321
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
2321
|
+
vue.createElementVNode("div", _hoisted_6$4, [
|
|
2322
2322
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.fields, (field) => {
|
|
2323
2323
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
2324
2324
|
class: vue.normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
|
|
@@ -2541,7 +2541,7 @@ const _hoisted_3$8 = {
|
|
|
2541
2541
|
class: "offcanvas-title",
|
|
2542
2542
|
id: "offcanvasScrollingLabel"
|
|
2543
2543
|
};
|
|
2544
|
-
const _hoisted_4$
|
|
2544
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
2545
2545
|
|
|
2546
2546
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2547
2547
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -2562,7 +2562,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2562
2562
|
"aria-label": "Close"
|
|
2563
2563
|
}, null, 512 /* NEED_PATCH */)
|
|
2564
2564
|
]),
|
|
2565
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
2565
|
+
vue.createElementVNode("div", _hoisted_4$8, [
|
|
2566
2566
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2567
2567
|
])
|
|
2568
2568
|
], 10 /* CLASS, PROPS */, _hoisted_1$8))
|
|
@@ -2581,13 +2581,13 @@ var script$7 = {
|
|
|
2581
2581
|
const _hoisted_1$7 = ["id"];
|
|
2582
2582
|
const _hoisted_2$7 = { class: "modal-content" };
|
|
2583
2583
|
const _hoisted_3$7 = { class: "modal-header" };
|
|
2584
|
-
const _hoisted_4$
|
|
2585
|
-
const _hoisted_5$
|
|
2584
|
+
const _hoisted_4$7 = { class: "modal-title" };
|
|
2585
|
+
const _hoisted_5$4 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
2586
2586
|
class: "btn btn-danger btn-sm",
|
|
2587
2587
|
"data-bs-dismiss": "modal",
|
|
2588
2588
|
"data-dismiss": "modal"
|
|
2589
2589
|
}, "×", -1 /* HOISTED */);
|
|
2590
|
-
const _hoisted_6$
|
|
2590
|
+
const _hoisted_6$3 = { class: "modal-body" };
|
|
2591
2591
|
const _hoisted_7$2 = { class: "section" };
|
|
2592
2592
|
|
|
2593
2593
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -2601,10 +2601,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2601
2601
|
}, [
|
|
2602
2602
|
vue.createElementVNode("div", _hoisted_2$7, [
|
|
2603
2603
|
vue.createElementVNode("div", _hoisted_3$7, [
|
|
2604
|
-
vue.createElementVNode("h3", _hoisted_4$
|
|
2605
|
-
_hoisted_5$
|
|
2604
|
+
vue.createElementVNode("h3", _hoisted_4$7, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
|
|
2605
|
+
_hoisted_5$4
|
|
2606
2606
|
]),
|
|
2607
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
2607
|
+
vue.createElementVNode("div", _hoisted_6$3, [
|
|
2608
2608
|
vue.createElementVNode("div", _hoisted_7$2, [
|
|
2609
2609
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2610
2610
|
])
|
|
@@ -2691,9 +2691,9 @@ var script$6 = {
|
|
|
2691
2691
|
const _hoisted_1$6 = { key: 0 };
|
|
2692
2692
|
const _hoisted_2$6 = { class: "record_count_body mb-3" };
|
|
2693
2693
|
const _hoisted_3$6 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2694
|
-
const _hoisted_4$
|
|
2694
|
+
const _hoisted_4$6 = /*#__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);
|
|
2695
2695
|
const _hoisted_9$2 = [
|
|
2696
|
-
_hoisted_4$
|
|
2696
|
+
_hoisted_4$6
|
|
2697
2697
|
];
|
|
2698
2698
|
const _hoisted_10$1 = { class: "record_counts" };
|
|
2699
2699
|
const _hoisted_11$1 = {
|
|
@@ -3222,13 +3222,13 @@ const _hoisted_2$5 = {
|
|
|
3222
3222
|
class: "col-md-4 mb-2"
|
|
3223
3223
|
};
|
|
3224
3224
|
const _hoisted_3$5 = ["disabled"];
|
|
3225
|
-
const _hoisted_4$
|
|
3226
|
-
const _hoisted_5$
|
|
3225
|
+
const _hoisted_4$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
3226
|
+
const _hoisted_5$3 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3227
3227
|
class: "spinner-border spinner-border-sm",
|
|
3228
3228
|
role: "status",
|
|
3229
3229
|
"aria-hidden": "true"
|
|
3230
3230
|
}, null, -1 /* HOISTED */);
|
|
3231
|
-
const _hoisted_6$
|
|
3231
|
+
const _hoisted_6$2 = /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
|
|
3232
3232
|
const _hoisted_7$1 = {
|
|
3233
3233
|
key: 1,
|
|
3234
3234
|
class: "row"
|
|
@@ -3386,12 +3386,12 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3386
3386
|
}, [
|
|
3387
3387
|
(!$data.downloading)
|
|
3388
3388
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
3389
|
-
_hoisted_4$
|
|
3389
|
+
_hoisted_4$5,
|
|
3390
3390
|
vue.createTextVNode(" Export ")
|
|
3391
3391
|
], 64 /* STABLE_FRAGMENT */))
|
|
3392
3392
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
3393
|
-
_hoisted_5$
|
|
3394
|
-
_hoisted_6$
|
|
3393
|
+
_hoisted_5$3,
|
|
3394
|
+
_hoisted_6$2
|
|
3395
3395
|
], 64 /* STABLE_FRAGMENT */))
|
|
3396
3396
|
], 8 /* PROPS */, _hoisted_3$5)
|
|
3397
3397
|
]))
|
|
@@ -3879,8 +3879,8 @@ const _hoisted_1$4 = {
|
|
|
3879
3879
|
};
|
|
3880
3880
|
const _hoisted_2$4 = ["data-bs-target"];
|
|
3881
3881
|
const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
|
|
3882
|
-
const _hoisted_4$
|
|
3883
|
-
const _hoisted_5$
|
|
3882
|
+
const _hoisted_4$4 = ["id"];
|
|
3883
|
+
const _hoisted_5$2 = { class: "tab-content" };
|
|
3884
3884
|
|
|
3885
3885
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3886
3886
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
@@ -3931,10 +3931,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3931
3931
|
]))
|
|
3932
3932
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3933
3933
|
], 2 /* CLASS */)
|
|
3934
|
-
], 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3934
|
+
], 10 /* CLASS, PROPS */, _hoisted_4$4)
|
|
3935
3935
|
]))
|
|
3936
3936
|
: vue.createCommentVNode("v-if", true),
|
|
3937
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
3937
|
+
vue.createElementVNode("div", _hoisted_5$2, [
|
|
3938
3938
|
vue.createVNode(_component_router_view, {
|
|
3939
3939
|
currentTab: $data.currentTab,
|
|
3940
3940
|
sharedData: $props.sharedData,
|
|
@@ -3956,7 +3956,7 @@ const _hoisted_2$3 = {
|
|
|
3956
3956
|
role: "presentation"
|
|
3957
3957
|
};
|
|
3958
3958
|
const _hoisted_3$3 = ["onClick"];
|
|
3959
|
-
const _hoisted_4$
|
|
3959
|
+
const _hoisted_4$3 = { class: "tab-content" };
|
|
3960
3960
|
|
|
3961
3961
|
var script$3 = {
|
|
3962
3962
|
__name: 'ShDynamicTabs',
|
|
@@ -3993,7 +3993,7 @@ return (_ctx, _cache) => {
|
|
|
3993
3993
|
]))
|
|
3994
3994
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
3995
3995
|
]),
|
|
3996
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
3996
|
+
vue.createElementVNode("div", _hoisted_4$3, [
|
|
3997
3997
|
(vue.unref(currentTab))
|
|
3998
3998
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), { key: 0 }))
|
|
3999
3999
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -4090,14 +4090,15 @@ const useUserStore = pinia.defineStore('user-store', {
|
|
|
4090
4090
|
}
|
|
4091
4091
|
});
|
|
4092
4092
|
|
|
4093
|
-
const _hoisted_1$2 =
|
|
4094
|
-
const _hoisted_2$2 = {
|
|
4093
|
+
const _hoisted_1$2 = { class: "card sh-departments-card shadow" };
|
|
4094
|
+
const _hoisted_2$2 = { class: "card-body" };
|
|
4095
|
+
const _hoisted_3$2 = {
|
|
4095
4096
|
"data-bs-toggle": "modal",
|
|
4096
4097
|
ref: "addDeptBtn",
|
|
4097
4098
|
href: "#sh-department_modal",
|
|
4098
4099
|
class: "btn btn-info btn-sm"
|
|
4099
4100
|
};
|
|
4100
|
-
const
|
|
4101
|
+
const _hoisted_4$2 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
4101
4102
|
|
|
4102
4103
|
|
|
4103
4104
|
var script$2 = {
|
|
@@ -4123,15 +4124,19 @@ function departmentAdded (response) {
|
|
|
4123
4124
|
|
|
4124
4125
|
return (_ctx, _cache) => {
|
|
4125
4126
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4127
|
+
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: ".system-title" }, [
|
|
4128
|
+
vue.createTextVNode("Departments")
|
|
4129
|
+
])),
|
|
4130
|
+
vue.createElementVNode("div", _hoisted_1$2, [
|
|
4131
|
+
vue.createElementVNode("div", _hoisted_2$2, [
|
|
4132
|
+
vue.createElementVNode("a", _hoisted_3$2, [
|
|
4133
|
+
_hoisted_4$2,
|
|
4134
|
+
vue.createTextVNode(" ADD DEPARTMENT")
|
|
4135
|
+
], 512 /* NEED_PATCH */),
|
|
4136
|
+
vue.createVNode(script$5, {
|
|
4137
|
+
headers: ['id','name','description', 'created_at'],
|
|
4138
|
+
"end-point": "admin/departments/list",
|
|
4139
|
+
actions: {
|
|
4135
4140
|
label: 'Action',
|
|
4136
4141
|
actions: [
|
|
4137
4142
|
{
|
|
@@ -4141,21 +4146,23 @@ return (_ctx, _cache) => {
|
|
|
4141
4146
|
}
|
|
4142
4147
|
]
|
|
4143
4148
|
}
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4149
|
+
}),
|
|
4150
|
+
vue.createVNode(script$7, {
|
|
4151
|
+
"modal-id": "sh-department_modal",
|
|
4152
|
+
"modal-title": "Department Form"
|
|
4153
|
+
}, {
|
|
4154
|
+
default: vue.withCtx(() => [
|
|
4155
|
+
vue.createVNode(script$9, {
|
|
4156
|
+
"success-callback": "departmentAdded",
|
|
4157
|
+
onDepartmentAdded: departmentAdded,
|
|
4158
|
+
action: "admin/departments/store",
|
|
4159
|
+
fields: ['name','description']
|
|
4160
|
+
})
|
|
4161
|
+
]),
|
|
4162
|
+
_: 1 /* STABLE */
|
|
4155
4163
|
})
|
|
4156
|
-
])
|
|
4157
|
-
|
|
4158
|
-
})
|
|
4164
|
+
])
|
|
4165
|
+
])
|
|
4159
4166
|
], 64 /* STABLE_FRAGMENT */))
|
|
4160
4167
|
}
|
|
4161
4168
|
}
|
|
@@ -4164,7 +4171,12 @@ return (_ctx, _cache) => {
|
|
|
4164
4171
|
|
|
4165
4172
|
script$2.__file = "src/lib/components/core/Departments/Departments.vue";
|
|
4166
4173
|
|
|
4167
|
-
const _hoisted_1$1 =
|
|
4174
|
+
const _hoisted_1$1 = {
|
|
4175
|
+
key: 0,
|
|
4176
|
+
class: "card sh-department-view shadow"
|
|
4177
|
+
};
|
|
4178
|
+
const _hoisted_2$1 = { class: "card-body" };
|
|
4179
|
+
const _hoisted_3$1 = /*#__PURE__*/vue.createElementVNode("a", {
|
|
4168
4180
|
href: "#addModule",
|
|
4169
4181
|
class: "btn btn-info btn-sm",
|
|
4170
4182
|
"data-bs-toggle": "modal"
|
|
@@ -4172,9 +4184,9 @@ const _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("a", {
|
|
|
4172
4184
|
/*#__PURE__*/vue.createElementVNode("i", { class: "bi-plus" }),
|
|
4173
4185
|
/*#__PURE__*/vue.createTextVNode(" ADD Module")
|
|
4174
4186
|
], -1 /* HOISTED */);
|
|
4175
|
-
const
|
|
4176
|
-
const
|
|
4177
|
-
const
|
|
4187
|
+
const _hoisted_4$1 = { class: "text-primary text-capitalize" };
|
|
4188
|
+
const _hoisted_5$1 = ["value"];
|
|
4189
|
+
const _hoisted_6$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */);
|
|
4178
4190
|
|
|
4179
4191
|
var script$1 = {
|
|
4180
4192
|
__name: 'Department',
|
|
@@ -4268,11 +4280,14 @@ function submitPermissions() {
|
|
|
4268
4280
|
|
|
4269
4281
|
return (_ctx, _cache) => {
|
|
4270
4282
|
return (vue.unref(department))
|
|
4271
|
-
? (vue.openBlock(), vue.createElementBlock(
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4283
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
4284
|
+
vue.createElementVNode("div", _hoisted_2$1, [
|
|
4285
|
+
_hoisted_3$1,
|
|
4286
|
+
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: ".system-title" }, [
|
|
4287
|
+
vue.createTextVNode("Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */)
|
|
4288
|
+
])),
|
|
4289
|
+
vue.createVNode(script$5, {
|
|
4290
|
+
actions: {
|
|
4276
4291
|
label: 'Actions',
|
|
4277
4292
|
actions: [
|
|
4278
4293
|
{
|
|
@@ -4287,78 +4302,79 @@ return (_ctx, _cache) => {
|
|
|
4287
4302
|
}
|
|
4288
4303
|
]
|
|
4289
4304
|
},
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4305
|
+
reload: vue.unref(reload),
|
|
4306
|
+
headers: ['id',showModule,'created_at'],
|
|
4307
|
+
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
4308
|
+
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
4309
|
+
vue.createVNode(script$7, {
|
|
4310
|
+
"modal-id": "addModule",
|
|
4311
|
+
"modal-title": "Add Module Department"
|
|
4312
|
+
}, {
|
|
4313
|
+
default: vue.withCtx(() => [
|
|
4314
|
+
vue.createVNode(script$9, {
|
|
4315
|
+
"reload-select-items": vue.unref(reload),
|
|
4316
|
+
"success-callback": moduleAdded,
|
|
4317
|
+
"fill-selects": {
|
|
4303
4318
|
permission_module: {
|
|
4304
4319
|
url: 'admin/departments/department/list-pending-modules/' + id.value,
|
|
4305
4320
|
suggests: true
|
|
4306
4321
|
}
|
|
4307
4322
|
},
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
}, [
|
|
4335
|
-
vue.createElementVNode("label", {
|
|
4336
|
-
class: vue.normalizeClass(["list-group-item pb-0 text-capitalize", 'ms-' + getPermissionLeft(permission)])
|
|
4323
|
+
fields: ['permission_module'],
|
|
4324
|
+
action: 'admin/departments/department/add-module/' + id.value
|
|
4325
|
+
}, null, 8 /* PROPS */, ["reload-select-items", "fill-selects", "action"])
|
|
4326
|
+
]),
|
|
4327
|
+
_: 1 /* STABLE */
|
|
4328
|
+
}),
|
|
4329
|
+
vue.createElementVNode("a", {
|
|
4330
|
+
href: "#permissionsCanvas",
|
|
4331
|
+
class: "d-none",
|
|
4332
|
+
ref_key: "permissionCanvasBtn",
|
|
4333
|
+
ref: permissionCanvasBtn,
|
|
4334
|
+
"data-bs-toggle": "offcanvas"
|
|
4335
|
+
}, null, 512 /* NEED_PATCH */),
|
|
4336
|
+
vue.createVNode(script$8, {
|
|
4337
|
+
"canvas-id": "permissionsCanvas",
|
|
4338
|
+
position: "end enlarged",
|
|
4339
|
+
"canvas-title": "Module Permissions"
|
|
4340
|
+
}, {
|
|
4341
|
+
default: vue.withCtx(() => [
|
|
4342
|
+
(vue.unref(getModule))
|
|
4343
|
+
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4344
|
+
vue.createElementVNode("h5", _hoisted_4$1, "Permissions for " + vue.toDisplayString(vue.unref(getModule).module), 1 /* TEXT */),
|
|
4345
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(modulePermissions), (permission) => {
|
|
4346
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
4347
|
+
key: permission,
|
|
4348
|
+
class: "list-group p-0"
|
|
4337
4349
|
}, [
|
|
4338
|
-
vue.
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4350
|
+
vue.createElementVNode("label", {
|
|
4351
|
+
class: vue.normalizeClass(["list-group-item pb-0 text-capitalize", 'ms-' + getPermissionLeft(permission)])
|
|
4352
|
+
}, [
|
|
4353
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
4354
|
+
type: "checkbox",
|
|
4355
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(selectedPermissions) ? (selectedPermissions).value = $event : selectedPermissions = $event)),
|
|
4356
|
+
value: permission
|
|
4357
|
+
}, null, 8 /* PROPS */, _hoisted_5$1), [
|
|
4358
|
+
[vue.vModelCheckbox, vue.unref(selectedPermissions)]
|
|
4359
|
+
]),
|
|
4360
|
+
vue.createTextVNode(" " + vue.toDisplayString(getPermissionLabel(permission)), 1 /* TEXT */)
|
|
4361
|
+
], 2 /* CLASS */)
|
|
4362
|
+
]))
|
|
4363
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
4364
|
+
vue.createElementVNode("button", {
|
|
4365
|
+
onClick: submitPermissions,
|
|
4366
|
+
class: "btn btn-info"
|
|
4367
|
+
}, [
|
|
4368
|
+
_hoisted_6$1,
|
|
4369
|
+
vue.createTextVNode(" Submit")
|
|
4370
|
+
])
|
|
4371
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4372
|
+
: vue.createCommentVNode("v-if", true)
|
|
4373
|
+
]),
|
|
4374
|
+
_: 1 /* STABLE */
|
|
4375
|
+
})
|
|
4376
|
+
])
|
|
4377
|
+
]))
|
|
4362
4378
|
: vue.createCommentVNode("v-if", true)
|
|
4363
4379
|
}
|
|
4364
4380
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Axios from 'axios';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
-
import { inject, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, resolveComponent, withModifiers, createVNode, ref, onMounted, unref, normalizeClass, createBlock, resolveDynamicComponent, renderSlot, createStaticVNode, withCtx, shallowRef, computed, isRef, vModelCheckbox, watch, pushScopeId, popScopeId } from 'vue';
|
|
3
|
+
import { inject, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, resolveComponent, withModifiers, createVNode, ref, onMounted, unref, normalizeClass, createBlock, resolveDynamicComponent, renderSlot, createStaticVNode, withCtx, shallowRef, Teleport, computed, isRef, vModelCheckbox, watch, pushScopeId, popScopeId } from 'vue';
|
|
4
4
|
import NProgress from 'nprogress';
|
|
5
5
|
import Editor from '@tinymce/tinymce-vue';
|
|
6
6
|
import Swal from 'sweetalert2';
|
|
@@ -1630,7 +1630,7 @@ const _hoisted_2$b = {
|
|
|
1630
1630
|
style: {"display":"contents"}
|
|
1631
1631
|
};
|
|
1632
1632
|
const _hoisted_3$b = ["src"];
|
|
1633
|
-
const _hoisted_4$
|
|
1633
|
+
const _hoisted_4$b = ["value"];
|
|
1634
1634
|
|
|
1635
1635
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1636
1636
|
return (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
@@ -1649,7 +1649,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1649
1649
|
return (openBlock(), createElementBlock("option", {
|
|
1650
1650
|
value: country,
|
|
1651
1651
|
key: country.dialCode
|
|
1652
|
-
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1652
|
+
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$b))
|
|
1653
1653
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1654
1654
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1655
1655
|
[vModelSelect, $data.selectedCountry]
|
|
@@ -1753,9 +1753,9 @@ const _hoisted_1$a = {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
const _hoisted_2$a = ["id"];
|
|
1755
1755
|
const _hoisted_3$a = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
1756
|
-
const _hoisted_4$
|
|
1757
|
-
const _hoisted_5$
|
|
1758
|
-
const _hoisted_6$
|
|
1756
|
+
const _hoisted_4$a = ["onClick"];
|
|
1757
|
+
const _hoisted_5$6 = ["id"];
|
|
1758
|
+
const _hoisted_6$5 = ["id", "aria-labelledby"];
|
|
1759
1759
|
const _hoisted_7$4 = { key: 0 };
|
|
1760
1760
|
const _hoisted_8$3 = ["onClick"];
|
|
1761
1761
|
const _hoisted_9$4 = {
|
|
@@ -1865,7 +1865,7 @@ return (_ctx, _cache) => {
|
|
|
1865
1865
|
type: "button",
|
|
1866
1866
|
class: "btn-close border-start border-1 ms-1",
|
|
1867
1867
|
"aria-label": "Close"
|
|
1868
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
1868
|
+
}, null, 8 /* PROPS */, _hoisted_4$a)
|
|
1869
1869
|
]))
|
|
1870
1870
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
1871
1871
|
]),
|
|
@@ -1875,7 +1875,7 @@ return (_ctx, _cache) => {
|
|
|
1875
1875
|
onClick: filterData,
|
|
1876
1876
|
onInput: filterData,
|
|
1877
1877
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
1878
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$
|
|
1878
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$6)
|
|
1879
1879
|
], 8 /* PROPS */, _hoisted_2$a),
|
|
1880
1880
|
createElementVNode("ul", {
|
|
1881
1881
|
class: "dropdown-menu w-100",
|
|
@@ -1901,7 +1901,7 @@ return (_ctx, _cache) => {
|
|
|
1901
1901
|
: (unref(searchText))
|
|
1902
1902
|
? (openBlock(), createElementBlock("li", _hoisted_9$4, " No results found "))
|
|
1903
1903
|
: (openBlock(), createElementBlock("li", _hoisted_10$3, " Type to search... "))
|
|
1904
|
-
], 8 /* PROPS */, _hoisted_6$
|
|
1904
|
+
], 8 /* PROPS */, _hoisted_6$5)
|
|
1905
1905
|
]))
|
|
1906
1906
|
: createCommentVNode("v-if", true)
|
|
1907
1907
|
}
|
|
@@ -2238,9 +2238,9 @@ const _hoisted_2$9 = {
|
|
|
2238
2238
|
role: "alert"
|
|
2239
2239
|
};
|
|
2240
2240
|
const _hoisted_3$9 = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2241
|
-
const _hoisted_4$
|
|
2242
|
-
const _hoisted_5$
|
|
2243
|
-
const _hoisted_6$
|
|
2241
|
+
const _hoisted_4$9 = { key: 0 };
|
|
2242
|
+
const _hoisted_5$5 = { key: 1 };
|
|
2243
|
+
const _hoisted_6$4 = { class: "row" };
|
|
2244
2244
|
const _hoisted_7$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2245
2245
|
const _hoisted_8$2 = { class: "col-md-12" };
|
|
2246
2246
|
const _hoisted_9$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
@@ -2295,8 +2295,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2295
2295
|
? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
2296
2296
|
_hoisted_3$9,
|
|
2297
2297
|
(_ctx.errorText)
|
|
2298
|
-
? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2299
|
-
: (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2298
|
+
? (openBlock(), createElementBlock("span", _hoisted_4$9, toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2299
|
+
: (openBlock(), createElementBlock("span", _hoisted_5$5, "Unexpected Error Occurred")),
|
|
2300
2300
|
createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2301
2301
|
]))
|
|
2302
2302
|
: createCommentVNode("v-if", true),
|
|
@@ -2306,7 +2306,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2306
2306
|
}, null, 512 /* NEED_PATCH */), [
|
|
2307
2307
|
[vModelText, _ctx.form_elements['id']]
|
|
2308
2308
|
]),
|
|
2309
|
-
createElementVNode("div", _hoisted_6$
|
|
2309
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
2310
2310
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.fields, (field) => {
|
|
2311
2311
|
return (openBlock(), createElementBlock("div", {
|
|
2312
2312
|
class: normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
|
|
@@ -2529,7 +2529,7 @@ const _hoisted_3$8 = {
|
|
|
2529
2529
|
class: "offcanvas-title",
|
|
2530
2530
|
id: "offcanvasScrollingLabel"
|
|
2531
2531
|
};
|
|
2532
|
-
const _hoisted_4$
|
|
2532
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
2533
2533
|
|
|
2534
2534
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2535
2535
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -2550,7 +2550,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2550
2550
|
"aria-label": "Close"
|
|
2551
2551
|
}, null, 512 /* NEED_PATCH */)
|
|
2552
2552
|
]),
|
|
2553
|
-
createElementVNode("div", _hoisted_4$
|
|
2553
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
2554
2554
|
renderSlot(_ctx.$slots, "default")
|
|
2555
2555
|
])
|
|
2556
2556
|
], 10 /* CLASS, PROPS */, _hoisted_1$8))
|
|
@@ -2569,13 +2569,13 @@ var script$7 = {
|
|
|
2569
2569
|
const _hoisted_1$7 = ["id"];
|
|
2570
2570
|
const _hoisted_2$7 = { class: "modal-content" };
|
|
2571
2571
|
const _hoisted_3$7 = { class: "modal-header" };
|
|
2572
|
-
const _hoisted_4$
|
|
2573
|
-
const _hoisted_5$
|
|
2572
|
+
const _hoisted_4$7 = { class: "modal-title" };
|
|
2573
|
+
const _hoisted_5$4 = /*#__PURE__*/createElementVNode("button", {
|
|
2574
2574
|
class: "btn btn-danger btn-sm",
|
|
2575
2575
|
"data-bs-dismiss": "modal",
|
|
2576
2576
|
"data-dismiss": "modal"
|
|
2577
2577
|
}, "×", -1 /* HOISTED */);
|
|
2578
|
-
const _hoisted_6$
|
|
2578
|
+
const _hoisted_6$3 = { class: "modal-body" };
|
|
2579
2579
|
const _hoisted_7$2 = { class: "section" };
|
|
2580
2580
|
|
|
2581
2581
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -2589,10 +2589,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2589
2589
|
}, [
|
|
2590
2590
|
createElementVNode("div", _hoisted_2$7, [
|
|
2591
2591
|
createElementVNode("div", _hoisted_3$7, [
|
|
2592
|
-
createElementVNode("h3", _hoisted_4$
|
|
2593
|
-
_hoisted_5$
|
|
2592
|
+
createElementVNode("h3", _hoisted_4$7, toDisplayString($props.modalTitle), 1 /* TEXT */),
|
|
2593
|
+
_hoisted_5$4
|
|
2594
2594
|
]),
|
|
2595
|
-
createElementVNode("div", _hoisted_6$
|
|
2595
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
2596
2596
|
createElementVNode("div", _hoisted_7$2, [
|
|
2597
2597
|
renderSlot(_ctx.$slots, "default")
|
|
2598
2598
|
])
|
|
@@ -2679,9 +2679,9 @@ var script$6 = {
|
|
|
2679
2679
|
const _hoisted_1$6 = { key: 0 };
|
|
2680
2680
|
const _hoisted_2$6 = { class: "record_count_body mb-3" };
|
|
2681
2681
|
const _hoisted_3$6 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2682
|
-
const _hoisted_4$
|
|
2682
|
+
const _hoisted_4$6 = /*#__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);
|
|
2683
2683
|
const _hoisted_9$2 = [
|
|
2684
|
-
_hoisted_4$
|
|
2684
|
+
_hoisted_4$6
|
|
2685
2685
|
];
|
|
2686
2686
|
const _hoisted_10$1 = { class: "record_counts" };
|
|
2687
2687
|
const _hoisted_11$1 = {
|
|
@@ -3210,13 +3210,13 @@ const _hoisted_2$5 = {
|
|
|
3210
3210
|
class: "col-md-4 mb-2"
|
|
3211
3211
|
};
|
|
3212
3212
|
const _hoisted_3$5 = ["disabled"];
|
|
3213
|
-
const _hoisted_4$
|
|
3214
|
-
const _hoisted_5$
|
|
3213
|
+
const _hoisted_4$5 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
3214
|
+
const _hoisted_5$3 = /*#__PURE__*/createElementVNode("span", {
|
|
3215
3215
|
class: "spinner-border spinner-border-sm",
|
|
3216
3216
|
role: "status",
|
|
3217
3217
|
"aria-hidden": "true"
|
|
3218
3218
|
}, null, -1 /* HOISTED */);
|
|
3219
|
-
const _hoisted_6$
|
|
3219
|
+
const _hoisted_6$2 = /*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
|
|
3220
3220
|
const _hoisted_7$1 = {
|
|
3221
3221
|
key: 1,
|
|
3222
3222
|
class: "row"
|
|
@@ -3374,12 +3374,12 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3374
3374
|
}, [
|
|
3375
3375
|
(!$data.downloading)
|
|
3376
3376
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3377
|
-
_hoisted_4$
|
|
3377
|
+
_hoisted_4$5,
|
|
3378
3378
|
createTextVNode(" Export ")
|
|
3379
3379
|
], 64 /* STABLE_FRAGMENT */))
|
|
3380
3380
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3381
|
-
_hoisted_5$
|
|
3382
|
-
_hoisted_6$
|
|
3381
|
+
_hoisted_5$3,
|
|
3382
|
+
_hoisted_6$2
|
|
3383
3383
|
], 64 /* STABLE_FRAGMENT */))
|
|
3384
3384
|
], 8 /* PROPS */, _hoisted_3$5)
|
|
3385
3385
|
]))
|
|
@@ -3867,8 +3867,8 @@ const _hoisted_1$4 = {
|
|
|
3867
3867
|
};
|
|
3868
3868
|
const _hoisted_2$4 = ["data-bs-target"];
|
|
3869
3869
|
const _hoisted_3$4 = /*#__PURE__*/createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
|
|
3870
|
-
const _hoisted_4$
|
|
3871
|
-
const _hoisted_5$
|
|
3870
|
+
const _hoisted_4$4 = ["id"];
|
|
3871
|
+
const _hoisted_5$2 = { class: "tab-content" };
|
|
3872
3872
|
|
|
3873
3873
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3874
3874
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -3919,10 +3919,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3919
3919
|
]))
|
|
3920
3920
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3921
3921
|
], 2 /* CLASS */)
|
|
3922
|
-
], 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3922
|
+
], 10 /* CLASS, PROPS */, _hoisted_4$4)
|
|
3923
3923
|
]))
|
|
3924
3924
|
: createCommentVNode("v-if", true),
|
|
3925
|
-
createElementVNode("div", _hoisted_5$
|
|
3925
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
3926
3926
|
createVNode(_component_router_view, {
|
|
3927
3927
|
currentTab: $data.currentTab,
|
|
3928
3928
|
sharedData: $props.sharedData,
|
|
@@ -3944,7 +3944,7 @@ const _hoisted_2$3 = {
|
|
|
3944
3944
|
role: "presentation"
|
|
3945
3945
|
};
|
|
3946
3946
|
const _hoisted_3$3 = ["onClick"];
|
|
3947
|
-
const _hoisted_4$
|
|
3947
|
+
const _hoisted_4$3 = { class: "tab-content" };
|
|
3948
3948
|
|
|
3949
3949
|
var script$3 = {
|
|
3950
3950
|
__name: 'ShDynamicTabs',
|
|
@@ -3981,7 +3981,7 @@ return (_ctx, _cache) => {
|
|
|
3981
3981
|
]))
|
|
3982
3982
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
3983
3983
|
]),
|
|
3984
|
-
createElementVNode("div", _hoisted_4$
|
|
3984
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
3985
3985
|
(unref(currentTab))
|
|
3986
3986
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), { key: 0 }))
|
|
3987
3987
|
: createCommentVNode("v-if", true)
|
|
@@ -4078,14 +4078,15 @@ const useUserStore = defineStore('user-store', {
|
|
|
4078
4078
|
}
|
|
4079
4079
|
});
|
|
4080
4080
|
|
|
4081
|
-
const _hoisted_1$2 =
|
|
4082
|
-
const _hoisted_2$2 = {
|
|
4081
|
+
const _hoisted_1$2 = { class: "card sh-departments-card shadow" };
|
|
4082
|
+
const _hoisted_2$2 = { class: "card-body" };
|
|
4083
|
+
const _hoisted_3$2 = {
|
|
4083
4084
|
"data-bs-toggle": "modal",
|
|
4084
4085
|
ref: "addDeptBtn",
|
|
4085
4086
|
href: "#sh-department_modal",
|
|
4086
4087
|
class: "btn btn-info btn-sm"
|
|
4087
4088
|
};
|
|
4088
|
-
const
|
|
4089
|
+
const _hoisted_4$2 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
4089
4090
|
|
|
4090
4091
|
|
|
4091
4092
|
var script$2 = {
|
|
@@ -4111,15 +4112,19 @@ function departmentAdded (response) {
|
|
|
4111
4112
|
|
|
4112
4113
|
return (_ctx, _cache) => {
|
|
4113
4114
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4115
|
+
(openBlock(), createBlock(Teleport, { to: ".system-title" }, [
|
|
4116
|
+
createTextVNode("Departments")
|
|
4117
|
+
])),
|
|
4118
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
4119
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
4120
|
+
createElementVNode("a", _hoisted_3$2, [
|
|
4121
|
+
_hoisted_4$2,
|
|
4122
|
+
createTextVNode(" ADD DEPARTMENT")
|
|
4123
|
+
], 512 /* NEED_PATCH */),
|
|
4124
|
+
createVNode(script$5, {
|
|
4125
|
+
headers: ['id','name','description', 'created_at'],
|
|
4126
|
+
"end-point": "admin/departments/list",
|
|
4127
|
+
actions: {
|
|
4123
4128
|
label: 'Action',
|
|
4124
4129
|
actions: [
|
|
4125
4130
|
{
|
|
@@ -4129,21 +4134,23 @@ return (_ctx, _cache) => {
|
|
|
4129
4134
|
}
|
|
4130
4135
|
]
|
|
4131
4136
|
}
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4137
|
+
}),
|
|
4138
|
+
createVNode(script$7, {
|
|
4139
|
+
"modal-id": "sh-department_modal",
|
|
4140
|
+
"modal-title": "Department Form"
|
|
4141
|
+
}, {
|
|
4142
|
+
default: withCtx(() => [
|
|
4143
|
+
createVNode(script$9, {
|
|
4144
|
+
"success-callback": "departmentAdded",
|
|
4145
|
+
onDepartmentAdded: departmentAdded,
|
|
4146
|
+
action: "admin/departments/store",
|
|
4147
|
+
fields: ['name','description']
|
|
4148
|
+
})
|
|
4149
|
+
]),
|
|
4150
|
+
_: 1 /* STABLE */
|
|
4143
4151
|
})
|
|
4144
|
-
])
|
|
4145
|
-
|
|
4146
|
-
})
|
|
4152
|
+
])
|
|
4153
|
+
])
|
|
4147
4154
|
], 64 /* STABLE_FRAGMENT */))
|
|
4148
4155
|
}
|
|
4149
4156
|
}
|
|
@@ -4152,7 +4159,12 @@ return (_ctx, _cache) => {
|
|
|
4152
4159
|
|
|
4153
4160
|
script$2.__file = "src/lib/components/core/Departments/Departments.vue";
|
|
4154
4161
|
|
|
4155
|
-
const _hoisted_1$1 =
|
|
4162
|
+
const _hoisted_1$1 = {
|
|
4163
|
+
key: 0,
|
|
4164
|
+
class: "card sh-department-view shadow"
|
|
4165
|
+
};
|
|
4166
|
+
const _hoisted_2$1 = { class: "card-body" };
|
|
4167
|
+
const _hoisted_3$1 = /*#__PURE__*/createElementVNode("a", {
|
|
4156
4168
|
href: "#addModule",
|
|
4157
4169
|
class: "btn btn-info btn-sm",
|
|
4158
4170
|
"data-bs-toggle": "modal"
|
|
@@ -4160,9 +4172,9 @@ const _hoisted_1$1 = /*#__PURE__*/createElementVNode("a", {
|
|
|
4160
4172
|
/*#__PURE__*/createElementVNode("i", { class: "bi-plus" }),
|
|
4161
4173
|
/*#__PURE__*/createTextVNode(" ADD Module")
|
|
4162
4174
|
], -1 /* HOISTED */);
|
|
4163
|
-
const
|
|
4164
|
-
const
|
|
4165
|
-
const
|
|
4175
|
+
const _hoisted_4$1 = { class: "text-primary text-capitalize" };
|
|
4176
|
+
const _hoisted_5$1 = ["value"];
|
|
4177
|
+
const _hoisted_6$1 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */);
|
|
4166
4178
|
|
|
4167
4179
|
var script$1 = {
|
|
4168
4180
|
__name: 'Department',
|
|
@@ -4256,11 +4268,14 @@ function submitPermissions() {
|
|
|
4256
4268
|
|
|
4257
4269
|
return (_ctx, _cache) => {
|
|
4258
4270
|
return (unref(department))
|
|
4259
|
-
? (openBlock(), createElementBlock(
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4271
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
4272
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
4273
|
+
_hoisted_3$1,
|
|
4274
|
+
(openBlock(), createBlock(Teleport, { to: ".system-title" }, [
|
|
4275
|
+
createTextVNode("Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */)
|
|
4276
|
+
])),
|
|
4277
|
+
createVNode(script$5, {
|
|
4278
|
+
actions: {
|
|
4264
4279
|
label: 'Actions',
|
|
4265
4280
|
actions: [
|
|
4266
4281
|
{
|
|
@@ -4275,78 +4290,79 @@ return (_ctx, _cache) => {
|
|
|
4275
4290
|
}
|
|
4276
4291
|
]
|
|
4277
4292
|
},
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4293
|
+
reload: unref(reload),
|
|
4294
|
+
headers: ['id',showModule,'created_at'],
|
|
4295
|
+
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
4296
|
+
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
4297
|
+
createVNode(script$7, {
|
|
4298
|
+
"modal-id": "addModule",
|
|
4299
|
+
"modal-title": "Add Module Department"
|
|
4300
|
+
}, {
|
|
4301
|
+
default: withCtx(() => [
|
|
4302
|
+
createVNode(script$9, {
|
|
4303
|
+
"reload-select-items": unref(reload),
|
|
4304
|
+
"success-callback": moduleAdded,
|
|
4305
|
+
"fill-selects": {
|
|
4291
4306
|
permission_module: {
|
|
4292
4307
|
url: 'admin/departments/department/list-pending-modules/' + id.value,
|
|
4293
4308
|
suggests: true
|
|
4294
4309
|
}
|
|
4295
4310
|
},
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
}, [
|
|
4323
|
-
createElementVNode("label", {
|
|
4324
|
-
class: normalizeClass(["list-group-item pb-0 text-capitalize", 'ms-' + getPermissionLeft(permission)])
|
|
4311
|
+
fields: ['permission_module'],
|
|
4312
|
+
action: 'admin/departments/department/add-module/' + id.value
|
|
4313
|
+
}, null, 8 /* PROPS */, ["reload-select-items", "fill-selects", "action"])
|
|
4314
|
+
]),
|
|
4315
|
+
_: 1 /* STABLE */
|
|
4316
|
+
}),
|
|
4317
|
+
createElementVNode("a", {
|
|
4318
|
+
href: "#permissionsCanvas",
|
|
4319
|
+
class: "d-none",
|
|
4320
|
+
ref_key: "permissionCanvasBtn",
|
|
4321
|
+
ref: permissionCanvasBtn,
|
|
4322
|
+
"data-bs-toggle": "offcanvas"
|
|
4323
|
+
}, null, 512 /* NEED_PATCH */),
|
|
4324
|
+
createVNode(script$8, {
|
|
4325
|
+
"canvas-id": "permissionsCanvas",
|
|
4326
|
+
position: "end enlarged",
|
|
4327
|
+
"canvas-title": "Module Permissions"
|
|
4328
|
+
}, {
|
|
4329
|
+
default: withCtx(() => [
|
|
4330
|
+
(unref(getModule))
|
|
4331
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4332
|
+
createElementVNode("h5", _hoisted_4$1, "Permissions for " + toDisplayString(unref(getModule).module), 1 /* TEXT */),
|
|
4333
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(modulePermissions), (permission) => {
|
|
4334
|
+
return (openBlock(), createElementBlock("div", {
|
|
4335
|
+
key: permission,
|
|
4336
|
+
class: "list-group p-0"
|
|
4325
4337
|
}, [
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4338
|
+
createElementVNode("label", {
|
|
4339
|
+
class: normalizeClass(["list-group-item pb-0 text-capitalize", 'ms-' + getPermissionLeft(permission)])
|
|
4340
|
+
}, [
|
|
4341
|
+
withDirectives(createElementVNode("input", {
|
|
4342
|
+
type: "checkbox",
|
|
4343
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(selectedPermissions) ? (selectedPermissions).value = $event : selectedPermissions = $event)),
|
|
4344
|
+
value: permission
|
|
4345
|
+
}, null, 8 /* PROPS */, _hoisted_5$1), [
|
|
4346
|
+
[vModelCheckbox, unref(selectedPermissions)]
|
|
4347
|
+
]),
|
|
4348
|
+
createTextVNode(" " + toDisplayString(getPermissionLabel(permission)), 1 /* TEXT */)
|
|
4349
|
+
], 2 /* CLASS */)
|
|
4350
|
+
]))
|
|
4351
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
4352
|
+
createElementVNode("button", {
|
|
4353
|
+
onClick: submitPermissions,
|
|
4354
|
+
class: "btn btn-info"
|
|
4355
|
+
}, [
|
|
4356
|
+
_hoisted_6$1,
|
|
4357
|
+
createTextVNode(" Submit")
|
|
4358
|
+
])
|
|
4359
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4360
|
+
: createCommentVNode("v-if", true)
|
|
4361
|
+
]),
|
|
4362
|
+
_: 1 /* STABLE */
|
|
4363
|
+
})
|
|
4364
|
+
])
|
|
4365
|
+
]))
|
|
4350
4366
|
: createCommentVNode("v-if", true)
|
|
4351
4367
|
}
|
|
4352
4368
|
}
|