@iankibetsh/shframework 5.2.9 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist/library.mjs.css +32 -32
- package/dist/library.js +607 -643
- package/dist/library.mjs +608 -644
- package/package.json +13 -13
package/dist/library.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import moment from 'moment';
|
|
|
3
3
|
import Swal from 'sweetalert2';
|
|
4
4
|
import { Modal, Offcanvas } from 'bootstrap';
|
|
5
5
|
import NProgress from 'nprogress';
|
|
6
|
-
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, watch, unref, normalizeClass, createBlock, resolveDynamicComponent, resolveComponent, inject, mergeProps, renderSlot, normalizeStyle, computed, createVNode, withCtx, vModelCheckbox, shallowRef, normalizeProps,
|
|
6
|
+
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, watch, unref, normalizeClass, createBlock, resolveDynamicComponent, resolveComponent, inject, mergeProps, renderSlot, normalizeStyle, computed, createVNode, withCtx, vModelCheckbox, shallowRef, normalizeProps, markRaw, isRef } from 'vue';
|
|
7
7
|
import _ from 'lodash';
|
|
8
8
|
import { defineStore, storeToRefs } from 'pinia';
|
|
9
9
|
import { useRoute, useRouter } from 'vue-router';
|
|
@@ -92,7 +92,6 @@ function setTabCounts(url){
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
function formatHttpCatchError(reason){
|
|
95
|
-
console.log(reason);
|
|
96
95
|
let error = '';
|
|
97
96
|
if (typeof reason !== 'undefined') {
|
|
98
97
|
if (typeof reason.response !== 'undefined') {
|
|
@@ -123,14 +122,12 @@ function formatHttpCatchError(reason){
|
|
|
123
122
|
|
|
124
123
|
function getMenuCount(url){
|
|
125
124
|
shApis.doGet(url).then(res => {
|
|
126
|
-
console.log(res);
|
|
127
125
|
});
|
|
128
126
|
}
|
|
129
127
|
|
|
130
128
|
const signOutUser = () => {
|
|
131
129
|
const loginUrl = getShConfig('loginUrl', 'auth/login');
|
|
132
130
|
const logoutApiEndPoint = getShConfig('logoutApiEndpoint', 'auth/logout');
|
|
133
|
-
console.log(loginUrl, logoutApiEndPoint);
|
|
134
131
|
shApis.doPost(logoutApiEndPoint).then(res => {
|
|
135
132
|
shStorage.removeItem('access_token');
|
|
136
133
|
shStorage.removeItem('user');
|
|
@@ -2093,7 +2090,7 @@ var script$A = {
|
|
|
2093
2090
|
}
|
|
2094
2091
|
};
|
|
2095
2092
|
|
|
2096
|
-
const _hoisted_1$
|
|
2093
|
+
const _hoisted_1$q = {
|
|
2097
2094
|
class: "sh-phone mb-3",
|
|
2098
2095
|
style: {"display":"flex"}
|
|
2099
2096
|
};
|
|
@@ -2101,15 +2098,15 @@ const _hoisted_2$i = {
|
|
|
2101
2098
|
key: 0,
|
|
2102
2099
|
style: {"display":"contents"}
|
|
2103
2100
|
};
|
|
2104
|
-
const _hoisted_3$
|
|
2105
|
-
const _hoisted_4$
|
|
2106
|
-
const _hoisted_5$
|
|
2101
|
+
const _hoisted_3$f = ["src"];
|
|
2102
|
+
const _hoisted_4$e = ["value"];
|
|
2103
|
+
const _hoisted_5$c = ["disabled"];
|
|
2107
2104
|
|
|
2108
2105
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2109
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2106
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
2110
2107
|
($data.selectedCountry)
|
|
2111
2108
|
? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
2112
|
-
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$
|
|
2109
|
+
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
|
|
2113
2110
|
createTextVNode(" " + toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
|
|
2114
2111
|
]))
|
|
2115
2112
|
: createCommentVNode("v-if", true),
|
|
@@ -2122,7 +2119,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2122
2119
|
return (openBlock(), createElementBlock("option", {
|
|
2123
2120
|
value: country,
|
|
2124
2121
|
key: country.dialCode
|
|
2125
|
-
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
2122
|
+
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$e))
|
|
2126
2123
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2127
2124
|
], 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
2128
2125
|
[vModelSelect, $data.selectedCountry]
|
|
@@ -2135,7 +2132,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2135
2132
|
onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
|
|
2136
2133
|
placeholder: "712345678",
|
|
2137
2134
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
|
|
2138
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$
|
|
2135
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$c), [
|
|
2139
2136
|
[vModelText, $data.input]
|
|
2140
2137
|
])
|
|
2141
2138
|
]))
|
|
@@ -2144,22 +2141,22 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2144
2141
|
script$A.render = render$4;
|
|
2145
2142
|
script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
2146
2143
|
|
|
2147
|
-
const _hoisted_1$
|
|
2144
|
+
const _hoisted_1$p = {
|
|
2148
2145
|
key: 0,
|
|
2149
2146
|
class: "dropdown sh-suggest"
|
|
2150
2147
|
};
|
|
2151
2148
|
const _hoisted_2$h = ["id"];
|
|
2152
|
-
const _hoisted_3$
|
|
2153
|
-
const _hoisted_4$
|
|
2154
|
-
const _hoisted_5$
|
|
2155
|
-
const _hoisted_6$
|
|
2156
|
-
const _hoisted_7$
|
|
2157
|
-
const _hoisted_8$
|
|
2158
|
-
const _hoisted_9$
|
|
2149
|
+
const _hoisted_3$e = { class: "sh-suggestions-holder" };
|
|
2150
|
+
const _hoisted_4$d = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
2151
|
+
const _hoisted_5$b = ["onClick"];
|
|
2152
|
+
const _hoisted_6$9 = ["id"];
|
|
2153
|
+
const _hoisted_7$8 = ["id", "aria-labelledby"];
|
|
2154
|
+
const _hoisted_8$7 = ["onClick"];
|
|
2155
|
+
const _hoisted_9$7 = {
|
|
2159
2156
|
key: 1,
|
|
2160
2157
|
class: "dropdown-item sh-suggest-no-results"
|
|
2161
2158
|
};
|
|
2162
|
-
const _hoisted_10$
|
|
2159
|
+
const _hoisted_10$5 = {
|
|
2163
2160
|
key: 2,
|
|
2164
2161
|
class: "dropdown-item sh-suggest-no-input"
|
|
2165
2162
|
};
|
|
@@ -2310,23 +2307,23 @@ watch(()=>props.modelValue, (newValue)=>{
|
|
|
2310
2307
|
|
|
2311
2308
|
return (_ctx, _cache) => {
|
|
2312
2309
|
return (unref(id))
|
|
2313
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2310
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
2314
2311
|
createElementVNode("div", {
|
|
2315
2312
|
id: unref(id),
|
|
2316
2313
|
"data-bs-toggle": "dropdown",
|
|
2317
2314
|
class: "p-0 d-flex sh-suggest-control dropdown-toggle",
|
|
2318
2315
|
"aria-expanded": "false"
|
|
2319
2316
|
}, [
|
|
2320
|
-
createElementVNode("div", _hoisted_3$
|
|
2317
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
2321
2318
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectedSuggestions), (sgt) => {
|
|
2322
|
-
return (openBlock(), createElementBlock("h5", _hoisted_4$
|
|
2319
|
+
return (openBlock(), createElementBlock("h5", _hoisted_4$d, [
|
|
2323
2320
|
createTextVNode(toDisplayString(sgt.name) + " ", 1 /* TEXT */),
|
|
2324
2321
|
createElementVNode("button", {
|
|
2325
2322
|
onClick: $event => (removeSuggestion(sgt.id)),
|
|
2326
2323
|
type: "button",
|
|
2327
2324
|
class: "btn-close border-start border-1 ms-1",
|
|
2328
2325
|
"aria-label": "Close"
|
|
2329
|
-
}, null, 8 /* PROPS */, _hoisted_5$
|
|
2326
|
+
}, null, 8 /* PROPS */, _hoisted_5$b)
|
|
2330
2327
|
]))
|
|
2331
2328
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2332
2329
|
]),
|
|
@@ -2336,7 +2333,7 @@ return (_ctx, _cache) => {
|
|
|
2336
2333
|
onInput: filterData,
|
|
2337
2334
|
onChange: filterData,
|
|
2338
2335
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2339
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$
|
|
2336
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$9)
|
|
2340
2337
|
], 8 /* PROPS */, _hoisted_2$h),
|
|
2341
2338
|
createElementVNode("ul", {
|
|
2342
2339
|
class: normalizeClass([(!unref(suggestions) || unref(suggestions).length === 0) ? 'no-sh-suggestions':'sh-found-suggestions', "dropdown-menu w-100"]),
|
|
@@ -2364,14 +2361,14 @@ return (_ctx, _cache) => {
|
|
|
2364
2361
|
class: normalizeClass(["dropdown-item", unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
|
|
2365
2362
|
href: "#"
|
|
2366
2363
|
}, toDisplayString(suggestion.name ?? suggestion.text), 3 /* TEXT, CLASS */))
|
|
2367
|
-
], 8 /* PROPS */, _hoisted_8$
|
|
2364
|
+
], 8 /* PROPS */, _hoisted_8$7))
|
|
2368
2365
|
: createCommentVNode("v-if", true)
|
|
2369
2366
|
], 64 /* STABLE_FRAGMENT */))
|
|
2370
2367
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2371
2368
|
: (unref(searchText))
|
|
2372
|
-
? (openBlock(), createElementBlock("li", _hoisted_9$
|
|
2373
|
-
: (openBlock(), createElementBlock("li", _hoisted_10$
|
|
2374
|
-
], 10 /* CLASS, PROPS */, _hoisted_7$
|
|
2369
|
+
? (openBlock(), createElementBlock("li", _hoisted_9$7, " No results found "))
|
|
2370
|
+
: (openBlock(), createElementBlock("li", _hoisted_10$5, " Type to search... "))
|
|
2371
|
+
], 10 /* CLASS, PROPS */, _hoisted_7$8)
|
|
2375
2372
|
]))
|
|
2376
2373
|
: createCommentVNode("v-if", true)
|
|
2377
2374
|
}
|
|
@@ -2720,7 +2717,7 @@ var script$y = {
|
|
|
2720
2717
|
}
|
|
2721
2718
|
},
|
|
2722
2719
|
created: function () {
|
|
2723
|
-
console.log('created')
|
|
2720
|
+
// console.log('created')
|
|
2724
2721
|
if (this.labels) {
|
|
2725
2722
|
this.allLabels = this.labels;
|
|
2726
2723
|
}
|
|
@@ -2736,83 +2733,59 @@ var script$y = {
|
|
|
2736
2733
|
}
|
|
2737
2734
|
};
|
|
2738
2735
|
|
|
2739
|
-
const _hoisted_1$
|
|
2740
|
-
const _hoisted_2$g = {
|
|
2736
|
+
const _hoisted_1$o = {
|
|
2741
2737
|
ref: "ShAutoForm",
|
|
2742
2738
|
class: "sh-form"
|
|
2743
2739
|
};
|
|
2744
|
-
const
|
|
2740
|
+
const _hoisted_2$g = {
|
|
2745
2741
|
key: 0,
|
|
2746
2742
|
class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
|
|
2747
2743
|
role: "alert"
|
|
2748
2744
|
};
|
|
2749
|
-
const
|
|
2750
|
-
const
|
|
2751
|
-
const
|
|
2752
|
-
const
|
|
2753
|
-
const
|
|
2754
|
-
const
|
|
2755
|
-
const
|
|
2756
|
-
const
|
|
2757
|
-
const
|
|
2758
|
-
const
|
|
2759
|
-
const
|
|
2760
|
-
const
|
|
2761
|
-
const
|
|
2762
|
-
const
|
|
2763
|
-
const
|
|
2764
|
-
const _hoisted_19$1 = {
|
|
2745
|
+
const _hoisted_3$d = { key: 0 };
|
|
2746
|
+
const _hoisted_4$c = { key: 1 };
|
|
2747
|
+
const _hoisted_5$a = { class: "row" };
|
|
2748
|
+
const _hoisted_6$8 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2749
|
+
const _hoisted_7$7 = { class: "col-md-12" };
|
|
2750
|
+
const _hoisted_8$6 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
2751
|
+
const _hoisted_9$6 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2752
|
+
const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2753
|
+
const _hoisted_11$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2754
|
+
const _hoisted_12$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
|
|
2755
|
+
const _hoisted_13$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2756
|
+
const _hoisted_14$3 = ["name", "onFocus", "onUpdate:modelValue"];
|
|
2757
|
+
const _hoisted_15$3 = ["name", "onFocus", "onUpdate:modelValue"];
|
|
2758
|
+
const _hoisted_16$1 = ["value"];
|
|
2759
|
+
const _hoisted_17$1 = {
|
|
2765
2760
|
key: 11,
|
|
2766
2761
|
class: "invalid-feedback"
|
|
2767
2762
|
};
|
|
2768
|
-
const
|
|
2769
|
-
const
|
|
2770
|
-
const
|
|
2771
|
-
const
|
|
2772
|
-
const
|
|
2773
|
-
const
|
|
2774
|
-
const
|
|
2763
|
+
const _hoisted_18$1 = { class: "form-check me-1" };
|
|
2764
|
+
const _hoisted_19$1 = ["value", "disabled", "checked"];
|
|
2765
|
+
const _hoisted_20$1 = { class: "form-check-label" };
|
|
2766
|
+
const _hoisted_21$1 = { class: "form-check me-1" };
|
|
2767
|
+
const _hoisted_22$1 = ["name", "value"];
|
|
2768
|
+
const _hoisted_23$1 = { class: "form-check-label" };
|
|
2769
|
+
const _hoisted_24$1 = {
|
|
2775
2770
|
key: 1,
|
|
2776
2771
|
class: "row"
|
|
2777
2772
|
};
|
|
2778
|
-
const _hoisted_27$1 = /*#__PURE__*/createElementVNode("h5", null, "Confirm and Submit", -1 /* HOISTED */);
|
|
2779
|
-
const _hoisted_28$1 = /*#__PURE__*/createElementVNode("p", null, [
|
|
2780
|
-
/*#__PURE__*/createTextVNode("By clicking submit, you agree to our "),
|
|
2781
|
-
/*#__PURE__*/createElementVNode("a", {
|
|
2782
|
-
target: "_blank",
|
|
2783
|
-
href: "/"
|
|
2784
|
-
}, "terms and conditions"),
|
|
2785
|
-
/*#__PURE__*/createTextVNode(" and that you have read our "),
|
|
2786
|
-
/*#__PURE__*/createElementVNode("a", {
|
|
2787
|
-
target: "_blank",
|
|
2788
|
-
href: "https://hauzisha.co.ke/privacy-policy"
|
|
2789
|
-
}, "privacy policy")
|
|
2790
|
-
], -1 /* HOISTED */);
|
|
2791
|
-
const _hoisted_29$1 = [
|
|
2792
|
-
_hoisted_27$1,
|
|
2793
|
-
_hoisted_28$1
|
|
2794
|
-
];
|
|
2795
|
-
const _hoisted_30$1 = /*#__PURE__*/createElementVNode("span", {
|
|
2796
|
-
class: "spinner-border spinner-border-sm",
|
|
2797
|
-
role: "status",
|
|
2798
|
-
"aria-hidden": "true"
|
|
2799
|
-
}, null, -1 /* HOISTED */);
|
|
2800
2773
|
|
|
2801
2774
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2802
2775
|
const _component_phone_input = resolveComponent("phone-input");
|
|
2803
2776
|
const _component_ShSuggest = resolveComponent("ShSuggest");
|
|
2804
2777
|
|
|
2805
2778
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2806
|
-
|
|
2807
|
-
createElementVNode("form",
|
|
2779
|
+
_cache[5] || (_cache[5] = createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */)),
|
|
2780
|
+
createElementVNode("form", _hoisted_1$o, [
|
|
2808
2781
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2809
2782
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2810
2783
|
(_ctx.form_status == 3)
|
|
2811
|
-
? (openBlock(), createElementBlock("div",
|
|
2812
|
-
|
|
2784
|
+
? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
2785
|
+
_cache[2] || (_cache[2] = createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */)),
|
|
2813
2786
|
(_ctx.errorText)
|
|
2814
|
-
? (openBlock(), createElementBlock("span",
|
|
2815
|
-
: (openBlock(), createElementBlock("span",
|
|
2787
|
+
? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2788
|
+
: (openBlock(), createElementBlock("span", _hoisted_4$c, "Unexpected Error Occurred")),
|
|
2816
2789
|
createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2817
2790
|
]))
|
|
2818
2791
|
: createCommentVNode("v-if", true),
|
|
@@ -2822,14 +2795,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2822
2795
|
}, null, 512 /* NEED_PATCH */), [
|
|
2823
2796
|
[vModelText, _ctx.form_elements['id']]
|
|
2824
2797
|
]),
|
|
2825
|
-
createElementVNode("div",
|
|
2798
|
+
createElementVNode("div", _hoisted_5$a, [
|
|
2826
2799
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.fields, (field) => {
|
|
2827
2800
|
return (openBlock(), createElementBlock("div", {
|
|
2828
2801
|
class: normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
|
|
2829
2802
|
key: field
|
|
2830
2803
|
}, [
|
|
2831
|
-
createElementVNode("label",
|
|
2832
|
-
createElementVNode("div",
|
|
2804
|
+
createElementVNode("label", _hoisted_6$8, toDisplayString($options.getLabel(field)), 1 /* TEXT */),
|
|
2805
|
+
createElementVNode("div", _hoisted_7$7, [
|
|
2833
2806
|
($options.getFieldType(field) === 'component')
|
|
2834
2807
|
? (openBlock(), createBlock(resolveDynamicComponent($props.customComponent[field]), {
|
|
2835
2808
|
key: 0,
|
|
@@ -2854,7 +2827,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2854
2827
|
ref: 'file_'+field,
|
|
2855
2828
|
onChange: $event => ($options.handleFileUpload(field)),
|
|
2856
2829
|
type: "file"
|
|
2857
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2830
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8$6))
|
|
2858
2831
|
: createCommentVNode("v-if", true),
|
|
2859
2832
|
($options.getFieldType(field) === 'numeric')
|
|
2860
2833
|
? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -2866,7 +2839,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2866
2839
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2867
2840
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2868
2841
|
type: "number"
|
|
2869
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2842
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_9$6)), [
|
|
2870
2843
|
[vModelText, _ctx.form_elements[field]]
|
|
2871
2844
|
])
|
|
2872
2845
|
: createCommentVNode("v-if", true),
|
|
@@ -2880,7 +2853,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2880
2853
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2881
2854
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2882
2855
|
type: "password"
|
|
2883
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2856
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$4)), [
|
|
2884
2857
|
[vModelText, _ctx.form_elements[field]]
|
|
2885
2858
|
])
|
|
2886
2859
|
: createCommentVNode("v-if", true),
|
|
@@ -2895,7 +2868,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2895
2868
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2896
2869
|
type: "email",
|
|
2897
2870
|
required: ""
|
|
2898
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2871
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$3)), [
|
|
2899
2872
|
[vModelText, _ctx.form_elements[field]]
|
|
2900
2873
|
])
|
|
2901
2874
|
: createCommentVNode("v-if", true),
|
|
@@ -2908,7 +2881,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2908
2881
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2909
2882
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
|
|
2910
2883
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2911
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2884
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$3)), [
|
|
2912
2885
|
[vModelText, _ctx.form_elements[field]]
|
|
2913
2886
|
])
|
|
2914
2887
|
: createCommentVNode("v-if", true),
|
|
@@ -2947,7 +2920,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2947
2920
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2948
2921
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2949
2922
|
type: "text"
|
|
2950
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2923
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$3)), [
|
|
2951
2924
|
[vModelText, _ctx.form_elements[field]]
|
|
2952
2925
|
])
|
|
2953
2926
|
: createCommentVNode("v-if", true),
|
|
@@ -2958,7 +2931,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2958
2931
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2959
2932
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2960
2933
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2961
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2934
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
|
|
2962
2935
|
[vModelText, _ctx.form_elements[field]]
|
|
2963
2936
|
])
|
|
2964
2937
|
: createCommentVNode("v-if", true),
|
|
@@ -2974,28 +2947,28 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2974
2947
|
return (openBlock(), createElementBlock("option", {
|
|
2975
2948
|
key: $props.fillSelects[field].value ? item[$props.fillSelects[field].value]:item.id,
|
|
2976
2949
|
value: $props.fillSelects[field].value ? item[$props.fillSelects[field].value]:item.id
|
|
2977
|
-
}, toDisplayString($props.fillSelects[field].column ? item[$props.fillSelects[field].column]:item.name), 9 /* TEXT, PROPS */,
|
|
2950
|
+
}, toDisplayString($props.fillSelects[field].column ? item[$props.fillSelects[field].column]:item.name), 9 /* TEXT, PROPS */, _hoisted_16$1))
|
|
2978
2951
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2979
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */,
|
|
2952
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
|
|
2980
2953
|
[vModelSelect, _ctx.form_elements[field]]
|
|
2981
2954
|
])
|
|
2982
2955
|
: createCommentVNode("v-if", true),
|
|
2983
2956
|
(_ctx.form_errors[field] != null )
|
|
2984
|
-
? (openBlock(), createElementBlock("div",
|
|
2957
|
+
? (openBlock(), createElementBlock("div", _hoisted_17$1, toDisplayString(_ctx.form_errors[field][0]), 1 /* TEXT */))
|
|
2985
2958
|
: createCommentVNode("v-if", true),
|
|
2986
2959
|
createElementVNode("div", {
|
|
2987
2960
|
class: normalizeClass($props.checkBoxes?.display ? ($props.checkBoxes.display =='row' ? 'd-flex': '' ) : '' )
|
|
2988
2961
|
}, [
|
|
2989
2962
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.checkboxData[field], (item) => {
|
|
2990
|
-
return (openBlock(), createElementBlock("div",
|
|
2963
|
+
return (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
2991
2964
|
createElementVNode("input", {
|
|
2992
2965
|
class: "form-check-input",
|
|
2993
2966
|
type: "checkbox",
|
|
2994
2967
|
value: item.id,
|
|
2995
2968
|
disabled: item.disabled,
|
|
2996
2969
|
checked: item.checked
|
|
2997
|
-
}, null, 8 /* PROPS */,
|
|
2998
|
-
createElementVNode("label",
|
|
2970
|
+
}, null, 8 /* PROPS */, _hoisted_19$1),
|
|
2971
|
+
createElementVNode("label", _hoisted_20$1, toDisplayString(item.label), 1 /* TEXT */)
|
|
2999
2972
|
]))
|
|
3000
2973
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
3001
2974
|
], 2 /* CLASS */),
|
|
@@ -3003,14 +2976,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3003
2976
|
class: normalizeClass($props.radioBoxes?.display ? ($props.radioBoxes.display =='row' ? 'd-flex': '' ) : '' )
|
|
3004
2977
|
}, [
|
|
3005
2978
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.radioboxData[field], (item) => {
|
|
3006
|
-
return (openBlock(), createElementBlock("div",
|
|
2979
|
+
return (openBlock(), createElementBlock("div", _hoisted_21$1, [
|
|
3007
2980
|
createElementVNode("input", {
|
|
3008
2981
|
class: "form-check-input",
|
|
3009
2982
|
type: "radio",
|
|
3010
2983
|
name: field,
|
|
3011
2984
|
value: item.value
|
|
3012
|
-
}, null, 8 /* PROPS */,
|
|
3013
|
-
createElementVNode("label",
|
|
2985
|
+
}, null, 8 /* PROPS */, _hoisted_22$1),
|
|
2986
|
+
createElementVNode("label", _hoisted_23$1, toDisplayString(item.label), 1 /* TEXT */)
|
|
3014
2987
|
]))
|
|
3015
2988
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
3016
2989
|
], 2 /* CLASS */)
|
|
@@ -3019,7 +2992,21 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3019
2992
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3020
2993
|
]),
|
|
3021
2994
|
($props.hasTerms)
|
|
3022
|
-
? (openBlock(), createElementBlock("div",
|
|
2995
|
+
? (openBlock(), createElementBlock("div", _hoisted_24$1, _cache[3] || (_cache[3] = [
|
|
2996
|
+
createElementVNode("h5", null, "Confirm and Submit", -1 /* HOISTED */),
|
|
2997
|
+
createElementVNode("p", null, [
|
|
2998
|
+
createTextVNode("By clicking submit, you agree to our "),
|
|
2999
|
+
createElementVNode("a", {
|
|
3000
|
+
target: "_blank",
|
|
3001
|
+
href: "/"
|
|
3002
|
+
}, "terms and conditions"),
|
|
3003
|
+
createTextVNode(" and that you have read our "),
|
|
3004
|
+
createElementVNode("a", {
|
|
3005
|
+
target: "_blank",
|
|
3006
|
+
href: "https://hauzisha.co.ke/privacy-policy"
|
|
3007
|
+
}, "privacy policy")
|
|
3008
|
+
], -1 /* HOISTED */)
|
|
3009
|
+
])))
|
|
3023
3010
|
: createCommentVNode("v-if", true),
|
|
3024
3011
|
(_ctx.form_status == 1)
|
|
3025
3012
|
? (openBlock(), createElementBlock("button", {
|
|
@@ -3027,10 +3014,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3027
3014
|
class: normalizeClass(["btn btn-primary", $options.getSubmitBtnClass()]),
|
|
3028
3015
|
type: "button",
|
|
3029
3016
|
disabled: ""
|
|
3030
|
-
}, [
|
|
3031
|
-
|
|
3017
|
+
}, _cache[4] || (_cache[4] = [
|
|
3018
|
+
createElementVNode("span", {
|
|
3019
|
+
class: "spinner-border spinner-border-sm",
|
|
3020
|
+
role: "status",
|
|
3021
|
+
"aria-hidden": "true"
|
|
3022
|
+
}, null, -1 /* HOISTED */),
|
|
3032
3023
|
createTextVNode(" Processing... ")
|
|
3033
|
-
], 2 /* CLASS */))
|
|
3024
|
+
]), 2 /* CLASS */))
|
|
3034
3025
|
: (openBlock(), createElementBlock("button", {
|
|
3035
3026
|
key: 3,
|
|
3036
3027
|
"data-cy": "sh_form_submit",
|
|
@@ -3085,7 +3076,7 @@ return (_ctx, _cache) => {
|
|
|
3085
3076
|
|
|
3086
3077
|
script$x.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
3087
3078
|
|
|
3088
|
-
const _hoisted_1$
|
|
3079
|
+
const _hoisted_1$n = ["min", "max"];
|
|
3089
3080
|
|
|
3090
3081
|
|
|
3091
3082
|
var script$w = {
|
|
@@ -3120,7 +3111,7 @@ return (_ctx, _cache) => {
|
|
|
3120
3111
|
onChange: modelValueUpdated,
|
|
3121
3112
|
onKeydown: modelValueUpdated,
|
|
3122
3113
|
onUpdated: modelValueUpdated
|
|
3123
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$
|
|
3114
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
|
|
3124
3115
|
[vModelText, inputModel.value]
|
|
3125
3116
|
])
|
|
3126
3117
|
}
|
|
@@ -3212,7 +3203,7 @@ return (_ctx, _cache) => {
|
|
|
3212
3203
|
|
|
3213
3204
|
script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
3214
3205
|
|
|
3215
|
-
const _hoisted_1$
|
|
3206
|
+
const _hoisted_1$m = ["value"];
|
|
3216
3207
|
|
|
3217
3208
|
|
|
3218
3209
|
var script$t = {
|
|
@@ -3230,7 +3221,6 @@ const modelValueUpdated = (e) => {
|
|
|
3230
3221
|
emit('update:modelValue',inputModel);
|
|
3231
3222
|
};
|
|
3232
3223
|
onMounted(()=>{
|
|
3233
|
-
console.log(props);
|
|
3234
3224
|
props.modelValue && (inputModel.value = props.modelValue);
|
|
3235
3225
|
const options = props.data ?? props.options;
|
|
3236
3226
|
if(options){
|
|
@@ -3270,7 +3260,7 @@ return (_ctx, _cache) => {
|
|
|
3270
3260
|
return (openBlock(), createElementBlock("option", {
|
|
3271
3261
|
key: option.id,
|
|
3272
3262
|
value: option.id
|
|
3273
|
-
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3263
|
+
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
|
|
3274
3264
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3275
3265
|
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3276
3266
|
[vModelSelect, inputModel.value]
|
|
@@ -3360,35 +3350,26 @@ return (_ctx, _cache) => {
|
|
|
3360
3350
|
|
|
3361
3351
|
script$r.__file = "src/lib/components/form-components/DateInput.vue";
|
|
3362
3352
|
|
|
3363
|
-
const _hoisted_1$
|
|
3364
|
-
const _hoisted_2$f = ["
|
|
3365
|
-
const _hoisted_3$
|
|
3366
|
-
const _hoisted_4$d = {
|
|
3353
|
+
const _hoisted_1$l = ["name", "onUpdate:modelValue"];
|
|
3354
|
+
const _hoisted_2$f = ["innerHTML"];
|
|
3355
|
+
const _hoisted_3$c = {
|
|
3367
3356
|
key: 0,
|
|
3368
3357
|
class: "text-danger sh-required"
|
|
3369
3358
|
};
|
|
3370
|
-
const
|
|
3371
|
-
const
|
|
3359
|
+
const _hoisted_4$b = ["innerHTML"];
|
|
3360
|
+
const _hoisted_5$9 = {
|
|
3372
3361
|
key: 2,
|
|
3373
3362
|
class: "form-notch"
|
|
3374
3363
|
};
|
|
3375
|
-
const
|
|
3376
|
-
const
|
|
3377
|
-
const
|
|
3378
|
-
const _hoisted_10$6 = [
|
|
3379
|
-
_hoisted_7$7,
|
|
3380
|
-
_hoisted_8$6,
|
|
3381
|
-
_hoisted_9$6
|
|
3382
|
-
];
|
|
3383
|
-
const _hoisted_11$6 = ["innerHTML"];
|
|
3384
|
-
const _hoisted_12$5 = ["disabled"];
|
|
3385
|
-
const _hoisted_13$3 = {
|
|
3364
|
+
const _hoisted_6$7 = ["innerHTML"];
|
|
3365
|
+
const _hoisted_7$6 = ["disabled"];
|
|
3366
|
+
const _hoisted_8$5 = {
|
|
3386
3367
|
key: 0,
|
|
3387
3368
|
class: "spinner-border spinner-border-sm",
|
|
3388
3369
|
role: "status",
|
|
3389
3370
|
"aria-hidden": "true"
|
|
3390
3371
|
};
|
|
3391
|
-
const
|
|
3372
|
+
const _hoisted_9$5 = { key: 1 };
|
|
3392
3373
|
|
|
3393
3374
|
|
|
3394
3375
|
var script$q = {
|
|
@@ -3575,7 +3556,6 @@ const handlefailedRequest = reason => {
|
|
|
3575
3556
|
};
|
|
3576
3557
|
const submitBtnWidth = ref(null);
|
|
3577
3558
|
const setExistingData = (existingData) => {
|
|
3578
|
-
console.log(existingData,props);
|
|
3579
3559
|
if (existingData) {
|
|
3580
3560
|
const newFields = formFields.value.map(fl => {
|
|
3581
3561
|
if (existingData[fl.field]) {
|
|
@@ -3594,7 +3574,7 @@ watch(() => props.currentData, (newData) => {
|
|
|
3594
3574
|
setExistingData(newData);
|
|
3595
3575
|
});
|
|
3596
3576
|
onMounted((ev) => {
|
|
3597
|
-
|
|
3577
|
+
|
|
3598
3578
|
props.fields && props.fields.map(field => {
|
|
3599
3579
|
let fieldObj = {};
|
|
3600
3580
|
if (typeof field === 'object') {
|
|
@@ -3635,7 +3615,7 @@ onMounted((ev) => {
|
|
|
3635
3615
|
|
|
3636
3616
|
return (_ctx, _cache) => {
|
|
3637
3617
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3638
|
-
|
|
3618
|
+
_cache[2] || (_cache[2] = createElementVNode("div", null, null, -1 /* HOISTED */)),
|
|
3639
3619
|
createElementVNode("form", {
|
|
3640
3620
|
class: normalizeClass([__props.formClass, "sh-auto-form"]),
|
|
3641
3621
|
ref_key: "shAutoForm",
|
|
@@ -3653,7 +3633,7 @@ return (_ctx, _cache) => {
|
|
|
3653
3633
|
type: "hidden",
|
|
3654
3634
|
name: field.field,
|
|
3655
3635
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3656
|
-
}, null, 8 /* PROPS */,
|
|
3636
|
+
}, null, 8 /* PROPS */, _hoisted_1$l)), [
|
|
3657
3637
|
[vModelText, formFields.value[index].value]
|
|
3658
3638
|
])
|
|
3659
3639
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -3665,9 +3645,9 @@ return (_ctx, _cache) => {
|
|
|
3665
3645
|
createElementVNode("span", {
|
|
3666
3646
|
innerHTML: field.label,
|
|
3667
3647
|
class: "sh-label"
|
|
3668
|
-
}, null, 8 /* PROPS */,
|
|
3648
|
+
}, null, 8 /* PROPS */, _hoisted_2$f),
|
|
3669
3649
|
(field.required)
|
|
3670
|
-
? (openBlock(), createElementBlock("span",
|
|
3650
|
+
? (openBlock(), createElementBlock("span", _hoisted_3$c, "*"))
|
|
3671
3651
|
: createCommentVNode("v-if", true)
|
|
3672
3652
|
], 2 /* CLASS */))
|
|
3673
3653
|
: createCommentVNode("v-if", true),
|
|
@@ -3683,17 +3663,21 @@ return (_ctx, _cache) => {
|
|
|
3683
3663
|
key: 1,
|
|
3684
3664
|
class: normalizeClass(getElementClass('formLabel')),
|
|
3685
3665
|
innerHTML: field.label
|
|
3686
|
-
}, null, 10 /* CLASS, PROPS */,
|
|
3666
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_4$b))
|
|
3687
3667
|
: createCommentVNode("v-if", true),
|
|
3688
3668
|
(unref(isFloating))
|
|
3689
|
-
? (openBlock(), createElementBlock("div",
|
|
3669
|
+
? (openBlock(), createElementBlock("div", _hoisted_5$9, [...(_cache[1] || (_cache[1] = [
|
|
3670
|
+
createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */),
|
|
3671
|
+
createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */),
|
|
3672
|
+
createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */)
|
|
3673
|
+
]))]))
|
|
3690
3674
|
: createCommentVNode("v-if", true),
|
|
3691
3675
|
(field.helper)
|
|
3692
3676
|
? (openBlock(), createElementBlock("div", {
|
|
3693
3677
|
key: 3,
|
|
3694
3678
|
class: normalizeClass(getElementClass('helperText')),
|
|
3695
3679
|
innerHTML: field.helper
|
|
3696
|
-
}, null, 10 /* CLASS, PROPS */,
|
|
3680
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_6$7))
|
|
3697
3681
|
: createCommentVNode("v-if", true),
|
|
3698
3682
|
(validationErrors.value[field.field])
|
|
3699
3683
|
? (openBlock(), createElementBlock("div", {
|
|
@@ -3716,12 +3700,12 @@ return (_ctx, _cache) => {
|
|
|
3716
3700
|
class: normalizeClass(getElementClass('actionBtn'))
|
|
3717
3701
|
}, [
|
|
3718
3702
|
(loading.value)
|
|
3719
|
-
? (openBlock(), createElementBlock("span",
|
|
3703
|
+
? (openBlock(), createElementBlock("span", _hoisted_8$5))
|
|
3720
3704
|
: createCommentVNode("v-if", true),
|
|
3721
3705
|
(!loading.value)
|
|
3722
|
-
? (openBlock(), createElementBlock("span",
|
|
3706
|
+
? (openBlock(), createElementBlock("span", _hoisted_9$5, "Submit"))
|
|
3723
3707
|
: createCommentVNode("v-if", true)
|
|
3724
|
-
], 14 /* CLASS, STYLE, PROPS */,
|
|
3708
|
+
], 14 /* CLASS, STYLE, PROPS */, _hoisted_7$6)
|
|
3725
3709
|
], 2 /* CLASS */)
|
|
3726
3710
|
], 34 /* CLASS, NEED_HYDRATION */)
|
|
3727
3711
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3732,18 +3716,12 @@ return (_ctx, _cache) => {
|
|
|
3732
3716
|
|
|
3733
3717
|
script$q.__file = "src/lib/components/ShAutoForm.vue";
|
|
3734
3718
|
|
|
3735
|
-
const _hoisted_1$
|
|
3719
|
+
const _hoisted_1$k = ["id", "data-bs-backdrop"];
|
|
3736
3720
|
const _hoisted_2$e = { class: "modal-content" };
|
|
3737
|
-
const _hoisted_3$
|
|
3738
|
-
const _hoisted_4$
|
|
3739
|
-
const _hoisted_5$
|
|
3740
|
-
|
|
3741
|
-
class: "btn-close sh-modal-close",
|
|
3742
|
-
"data-bs-dismiss": "modal",
|
|
3743
|
-
"aria-label": "Close"
|
|
3744
|
-
}, null, -1 /* HOISTED */);
|
|
3745
|
-
const _hoisted_6$7 = { class: "modal-body" };
|
|
3746
|
-
const _hoisted_7$6 = { class: "section" };
|
|
3721
|
+
const _hoisted_3$b = { class: "modal-header" };
|
|
3722
|
+
const _hoisted_4$a = { class: "modal-title flex-fill" };
|
|
3723
|
+
const _hoisted_5$8 = { class: "modal-body" };
|
|
3724
|
+
const _hoisted_6$6 = { class: "section" };
|
|
3747
3725
|
|
|
3748
3726
|
|
|
3749
3727
|
var script$p = {
|
|
@@ -3805,18 +3783,23 @@ return (_ctx, _cache) => {
|
|
|
3805
3783
|
class: normalizeClass(["modal-dialog", modalClasses.value])
|
|
3806
3784
|
}, [
|
|
3807
3785
|
createElementVNode("div", _hoisted_2$e, [
|
|
3808
|
-
createElementVNode("div", _hoisted_3$
|
|
3809
|
-
createElementVNode("h3", _hoisted_4$
|
|
3810
|
-
|
|
3786
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
3787
|
+
createElementVNode("h3", _hoisted_4$a, toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3788
|
+
_cache[0] || (_cache[0] = createElementVNode("button", {
|
|
3789
|
+
type: "button",
|
|
3790
|
+
class: "btn-close sh-modal-close",
|
|
3791
|
+
"data-bs-dismiss": "modal",
|
|
3792
|
+
"aria-label": "Close"
|
|
3793
|
+
}, null, -1 /* HOISTED */))
|
|
3811
3794
|
]),
|
|
3812
|
-
createElementVNode("div",
|
|
3813
|
-
createElementVNode("div",
|
|
3795
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
3796
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
3814
3797
|
renderSlot(_ctx.$slots, "default")
|
|
3815
3798
|
])
|
|
3816
3799
|
])
|
|
3817
3800
|
])
|
|
3818
3801
|
], 2 /* CLASS */)
|
|
3819
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3802
|
+
], 8 /* PROPS */, _hoisted_1$k))
|
|
3820
3803
|
}
|
|
3821
3804
|
}
|
|
3822
3805
|
|
|
@@ -3824,10 +3807,9 @@ return (_ctx, _cache) => {
|
|
|
3824
3807
|
|
|
3825
3808
|
script$p.__file = "src/lib/components/ShModal.vue";
|
|
3826
3809
|
|
|
3827
|
-
const _hoisted_1$
|
|
3828
|
-
const _hoisted_2$d =
|
|
3829
|
-
const _hoisted_3$
|
|
3830
|
-
const _hoisted_4$b = ["aria-labelledby"];
|
|
3810
|
+
const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
|
|
3811
|
+
const _hoisted_2$d = ["id"];
|
|
3812
|
+
const _hoisted_3$a = ["aria-labelledby"];
|
|
3831
3813
|
|
|
3832
3814
|
var script$o = {
|
|
3833
3815
|
__name: 'ShDropDownForm',
|
|
@@ -3877,8 +3859,8 @@ const formError = (res)=>{
|
|
|
3877
3859
|
|
|
3878
3860
|
return (_ctx, _cache) => {
|
|
3879
3861
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3880
|
-
|
|
3881
|
-
createElementVNode("div",
|
|
3862
|
+
_cache[0] || (_cache[0] = createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */)),
|
|
3863
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
3882
3864
|
createElementVNode("a", {
|
|
3883
3865
|
class: normalizeClass(unref(btnClass)),
|
|
3884
3866
|
href: "#",
|
|
@@ -3889,7 +3871,7 @@ return (_ctx, _cache) => {
|
|
|
3889
3871
|
"aria-expanded": "false"
|
|
3890
3872
|
}, [
|
|
3891
3873
|
renderSlot(_ctx.$slots, "default")
|
|
3892
|
-
], 10 /* CLASS, PROPS */,
|
|
3874
|
+
], 10 /* CLASS, PROPS */, _hoisted_2$d),
|
|
3893
3875
|
createElementVNode("div", {
|
|
3894
3876
|
class: "dropdown-menu px-2 py-1",
|
|
3895
3877
|
"aria-labelledby": _ctx.dropdownId
|
|
@@ -3901,7 +3883,7 @@ return (_ctx, _cache) => {
|
|
|
3901
3883
|
onFormError: formError,
|
|
3902
3884
|
key: JSON.stringify(__props.currentData ?? {})
|
|
3903
3885
|
}, props), null, 16 /* FULL_PROPS */))
|
|
3904
|
-
], 8 /* PROPS */,
|
|
3886
|
+
], 8 /* PROPS */, _hoisted_3$a)
|
|
3905
3887
|
])
|
|
3906
3888
|
], 64 /* STABLE_FRAGMENT */))
|
|
3907
3889
|
}
|
|
@@ -3911,7 +3893,7 @@ return (_ctx, _cache) => {
|
|
|
3911
3893
|
|
|
3912
3894
|
script$o.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3913
3895
|
|
|
3914
|
-
const _hoisted_1$
|
|
3896
|
+
const _hoisted_1$i = ["href"];
|
|
3915
3897
|
|
|
3916
3898
|
var script$n = {
|
|
3917
3899
|
__name: 'ShModalForm',
|
|
@@ -3973,7 +3955,7 @@ return (_ctx, _cache) => {
|
|
|
3973
3955
|
onClick: emitClick
|
|
3974
3956
|
}, [
|
|
3975
3957
|
renderSlot(_ctx.$slots, "default")
|
|
3976
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3958
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$i),
|
|
3977
3959
|
createVNode(script$p, {
|
|
3978
3960
|
"modal-size": __props.modalSize,
|
|
3979
3961
|
"modal-id": unref(realModalId),
|
|
@@ -3998,7 +3980,7 @@ return (_ctx, _cache) => {
|
|
|
3998
3980
|
|
|
3999
3981
|
script$n.__file = "src/lib/components/ShModalForm.vue";
|
|
4000
3982
|
|
|
4001
|
-
const _hoisted_1$
|
|
3983
|
+
const _hoisted_1$h = ["href"];
|
|
4002
3984
|
|
|
4003
3985
|
var script$m = {
|
|
4004
3986
|
__name: 'ShModalFormAuto',
|
|
@@ -4039,7 +4021,7 @@ return (_ctx, _cache) => {
|
|
|
4039
4021
|
"data-bs-toggle": "modal"
|
|
4040
4022
|
}, [
|
|
4041
4023
|
renderSlot(_ctx.$slots, "default")
|
|
4042
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
4024
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$h),
|
|
4043
4025
|
createVNode(script$p, {
|
|
4044
4026
|
"modal-id": modalId,
|
|
4045
4027
|
"modal-title": __props.modalTitle,
|
|
@@ -4058,20 +4040,20 @@ return (_ctx, _cache) => {
|
|
|
4058
4040
|
|
|
4059
4041
|
script$m.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
4060
4042
|
|
|
4061
|
-
const _hoisted_1$
|
|
4043
|
+
const _hoisted_1$g = ["data-bs-scroll", "id"];
|
|
4062
4044
|
const _hoisted_2$c = { class: "offcanvas-header" };
|
|
4063
|
-
const _hoisted_3$
|
|
4045
|
+
const _hoisted_3$9 = {
|
|
4064
4046
|
class: "offcanvas-title",
|
|
4065
4047
|
id: "offcanvasScrollingLabel"
|
|
4066
4048
|
};
|
|
4067
|
-
const _hoisted_4$
|
|
4049
|
+
const _hoisted_4$9 = {
|
|
4068
4050
|
type: "button",
|
|
4069
4051
|
ref: "closecanvas",
|
|
4070
4052
|
class: "btn-close sh-offcanvas-close",
|
|
4071
4053
|
"data-bs-dismiss": "offcanvas",
|
|
4072
4054
|
"aria-label": "Close"
|
|
4073
4055
|
};
|
|
4074
|
-
const _hoisted_5$
|
|
4056
|
+
const _hoisted_5$7 = { class: "offcanvas-body" };
|
|
4075
4057
|
|
|
4076
4058
|
var script$l = {
|
|
4077
4059
|
__name: 'ShCanvas',
|
|
@@ -4120,13 +4102,13 @@ return (_ctx, _cache) => {
|
|
|
4120
4102
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
4121
4103
|
}, [
|
|
4122
4104
|
createElementVNode("div", _hoisted_2$c, [
|
|
4123
|
-
createElementVNode("h5", _hoisted_3$
|
|
4124
|
-
createElementVNode("button", _hoisted_4$
|
|
4105
|
+
createElementVNode("h5", _hoisted_3$9, toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
4106
|
+
createElementVNode("button", _hoisted_4$9, null, 512 /* NEED_PATCH */)
|
|
4125
4107
|
]),
|
|
4126
|
-
createElementVNode("div", _hoisted_5$
|
|
4108
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
4127
4109
|
renderSlot(_ctx.$slots, "default")
|
|
4128
4110
|
])
|
|
4129
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
4111
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$g))
|
|
4130
4112
|
}
|
|
4131
4113
|
}
|
|
4132
4114
|
|
|
@@ -4134,12 +4116,12 @@ return (_ctx, _cache) => {
|
|
|
4134
4116
|
|
|
4135
4117
|
script$l.__file = "src/lib/components/ShCanvas.vue";
|
|
4136
4118
|
|
|
4137
|
-
const _hoisted_1$
|
|
4119
|
+
const _hoisted_1$f = { class: "callout callout-info" };
|
|
4138
4120
|
|
|
4139
4121
|
function render$2(_ctx, _cache) {
|
|
4140
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4122
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
4141
4123
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4142
|
-
createTextVNode(" No records found ")
|
|
4124
|
+
_cache[0] || (_cache[0] = createTextVNode(" No records found "))
|
|
4143
4125
|
])
|
|
4144
4126
|
]))
|
|
4145
4127
|
}
|
|
@@ -4247,13 +4229,6 @@ const useUserStore = defineStore('user-store', {
|
|
|
4247
4229
|
}
|
|
4248
4230
|
});
|
|
4249
4231
|
|
|
4250
|
-
const _hoisted_1$g = /*#__PURE__*/createElementVNode("span", {
|
|
4251
|
-
class: "spinner-border spinner-border-sm me-1",
|
|
4252
|
-
role: "status",
|
|
4253
|
-
"aria-hidden": "true"
|
|
4254
|
-
}, null, -1 /* HOISTED */);
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
4232
|
var script$j = {
|
|
4258
4233
|
__name: 'ShConfirmAction',
|
|
4259
4234
|
props: {
|
|
@@ -4330,7 +4305,11 @@ return (_ctx, _cache) => {
|
|
|
4330
4305
|
}, [
|
|
4331
4306
|
(processing.value)
|
|
4332
4307
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4333
|
-
|
|
4308
|
+
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
4309
|
+
class: "spinner-border spinner-border-sm me-1",
|
|
4310
|
+
role: "status",
|
|
4311
|
+
"aria-hidden": "true"
|
|
4312
|
+
}, null, -1 /* HOISTED */)),
|
|
4334
4313
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4335
4314
|
], 64 /* STABLE_FRAGMENT */))
|
|
4336
4315
|
: createCommentVNode("v-if", true),
|
|
@@ -4345,12 +4324,6 @@ return (_ctx, _cache) => {
|
|
|
4345
4324
|
|
|
4346
4325
|
script$j.__file = "src/lib/components/ShConfirmAction.vue";
|
|
4347
4326
|
|
|
4348
|
-
const _hoisted_1$f = /*#__PURE__*/createElementVNode("span", {
|
|
4349
|
-
class: "spinner-border spinner-border-sm me-1",
|
|
4350
|
-
role: "status",
|
|
4351
|
-
"aria-hidden": "true"
|
|
4352
|
-
}, null, -1 /* HOISTED */);
|
|
4353
|
-
|
|
4354
4327
|
var script$i = {
|
|
4355
4328
|
__name: 'ShSilentAction',
|
|
4356
4329
|
props: {
|
|
@@ -4429,7 +4402,11 @@ return (_ctx, _cache) => {
|
|
|
4429
4402
|
}, [
|
|
4430
4403
|
(processing.value)
|
|
4431
4404
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4432
|
-
|
|
4405
|
+
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
4406
|
+
class: "spinner-border spinner-border-sm me-1",
|
|
4407
|
+
role: "status",
|
|
4408
|
+
"aria-hidden": "true"
|
|
4409
|
+
}, null, -1 /* HOISTED */)),
|
|
4433
4410
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4434
4411
|
], 64 /* STABLE_FRAGMENT */))
|
|
4435
4412
|
: createCommentVNode("v-if", true),
|
|
@@ -4607,15 +4584,15 @@ const _hoisted_2$a = {
|
|
|
4607
4584
|
"data-bs-toggle": "dropdown",
|
|
4608
4585
|
"aria-expanded": "false"
|
|
4609
4586
|
};
|
|
4610
|
-
const _hoisted_3$
|
|
4587
|
+
const _hoisted_3$8 = {
|
|
4611
4588
|
key: 1,
|
|
4612
4589
|
class: "bi bi-three-dots"
|
|
4613
4590
|
};
|
|
4614
|
-
const _hoisted_4$
|
|
4591
|
+
const _hoisted_4$8 = {
|
|
4615
4592
|
key: 2,
|
|
4616
4593
|
class: "bi bi-three-dots-vertical"
|
|
4617
4594
|
};
|
|
4618
|
-
const _hoisted_5$
|
|
4595
|
+
const _hoisted_5$6 = { class: "dropdown-menu" };
|
|
4619
4596
|
|
|
4620
4597
|
|
|
4621
4598
|
var script$g = {
|
|
@@ -4639,10 +4616,10 @@ return (_ctx, _cache) => {
|
|
|
4639
4616
|
class: normalizeClass(unref(icon))
|
|
4640
4617
|
}, null, 2 /* CLASS */))
|
|
4641
4618
|
: (unref(type) === 'dropdown-horizontal')
|
|
4642
|
-
? (openBlock(), createElementBlock("i", _hoisted_3$
|
|
4643
|
-
: (openBlock(), createElementBlock("i", _hoisted_4$
|
|
4619
|
+
? (openBlock(), createElementBlock("i", _hoisted_3$8))
|
|
4620
|
+
: (openBlock(), createElementBlock("i", _hoisted_4$8))
|
|
4644
4621
|
]),
|
|
4645
|
-
createElementVNode("ul", _hoisted_5$
|
|
4622
|
+
createElementVNode("ul", _hoisted_5$6, [
|
|
4646
4623
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(actionItems), (act) => {
|
|
4647
4624
|
return (openBlock(), createElementBlock("li", {
|
|
4648
4625
|
key: act.label
|
|
@@ -4755,45 +4732,37 @@ var script$f = {
|
|
|
4755
4732
|
|
|
4756
4733
|
const _hoisted_1$c = { key: 0 };
|
|
4757
4734
|
const _hoisted_2$9 = { class: "record_count_body mb-3" };
|
|
4758
|
-
const _hoisted_3$
|
|
4759
|
-
const _hoisted_4$
|
|
4760
|
-
const _hoisted_5$
|
|
4761
|
-
const _hoisted_6$6 = {
|
|
4735
|
+
const _hoisted_3$7 = ["value"];
|
|
4736
|
+
const _hoisted_4$7 = { class: "record_counts" };
|
|
4737
|
+
const _hoisted_5$5 = {
|
|
4762
4738
|
key: 0,
|
|
4763
4739
|
"aria-label": "Page navigation"
|
|
4764
4740
|
};
|
|
4765
|
-
const
|
|
4766
|
-
const
|
|
4741
|
+
const _hoisted_6$5 = { class: "pagination" };
|
|
4742
|
+
const _hoisted_7$5 = {
|
|
4767
4743
|
key: 0,
|
|
4768
4744
|
class: "page-link"
|
|
4769
4745
|
};
|
|
4770
|
-
const
|
|
4746
|
+
const _hoisted_8$4 = {
|
|
4771
4747
|
key: 1,
|
|
4772
4748
|
class: "page-link"
|
|
4773
4749
|
};
|
|
4774
|
-
const
|
|
4775
|
-
const
|
|
4776
|
-
const
|
|
4750
|
+
const _hoisted_9$4 = ["onClick"];
|
|
4751
|
+
const _hoisted_10$3 = { key: 1 };
|
|
4752
|
+
const _hoisted_11$2 = {
|
|
4777
4753
|
key: 0,
|
|
4778
4754
|
class: "text-center"
|
|
4779
4755
|
};
|
|
4780
|
-
const
|
|
4781
|
-
class: "spinner-border",
|
|
4782
|
-
role: "status"
|
|
4783
|
-
}, null, -1 /* HOISTED */);
|
|
4784
|
-
const _hoisted_14$2 = [
|
|
4785
|
-
_hoisted_13$2
|
|
4786
|
-
];
|
|
4787
|
-
const _hoisted_15$2 = {
|
|
4756
|
+
const _hoisted_12$2 = {
|
|
4788
4757
|
key: 1,
|
|
4789
4758
|
class: "text-center"
|
|
4790
4759
|
};
|
|
4791
|
-
const
|
|
4792
|
-
const
|
|
4760
|
+
const _hoisted_13$2 = { class: "per_page_show" };
|
|
4761
|
+
const _hoisted_14$2 = {
|
|
4793
4762
|
key: 2,
|
|
4794
4763
|
class: "text-center"
|
|
4795
4764
|
};
|
|
4796
|
-
const
|
|
4765
|
+
const _hoisted_15$2 = {
|
|
4797
4766
|
key: 1,
|
|
4798
4767
|
class: "spinner-border"
|
|
4799
4768
|
};
|
|
@@ -4802,24 +4771,24 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4802
4771
|
return ($props.paginationStyle !== 'loadMore')
|
|
4803
4772
|
? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
4804
4773
|
createElementVNode("div", _hoisted_2$9, [
|
|
4805
|
-
|
|
4806
|
-
createTextVNode(" "),
|
|
4774
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */)),
|
|
4775
|
+
_cache[6] || (_cache[6] = createTextVNode(" ")),
|
|
4807
4776
|
withDirectives(createElementVNode("select", {
|
|
4808
4777
|
class: "select_per_page",
|
|
4809
4778
|
onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
|
|
4810
4779
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.per_page) = $event))
|
|
4811
4780
|
}, [
|
|
4812
4781
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.pageOptions, (option) => {
|
|
4813
|
-
return (openBlock(), createElementBlock("option", { value: option }, toDisplayString(option), 9 /* TEXT, PROPS */,
|
|
4782
|
+
return (openBlock(), createElementBlock("option", { value: option }, toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_3$7))
|
|
4814
4783
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
4815
4784
|
], 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
4816
4785
|
[vModelSelect, $data.per_page]
|
|
4817
4786
|
]),
|
|
4818
|
-
createElementVNode("span",
|
|
4787
|
+
createElementVNode("span", _hoisted_4$7, " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
4819
4788
|
]),
|
|
4820
4789
|
($props.pagination_data != null)
|
|
4821
|
-
? (openBlock(), createElementBlock("nav",
|
|
4822
|
-
createElementVNode("ul",
|
|
4790
|
+
? (openBlock(), createElementBlock("nav", _hoisted_5$5, [
|
|
4791
|
+
createElementVNode("ul", _hoisted_6$5, [
|
|
4823
4792
|
createElementVNode("li", {
|
|
4824
4793
|
class: normalizeClass([$options.getActivePage === 1 ? 'disabled' : '' , "page-item"])
|
|
4825
4794
|
}, [
|
|
@@ -4834,14 +4803,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4834
4803
|
key: page
|
|
4835
4804
|
}, [
|
|
4836
4805
|
($options.getActivePage === page)
|
|
4837
|
-
? (openBlock(), createElementBlock("a",
|
|
4806
|
+
? (openBlock(), createElementBlock("a", _hoisted_7$5, toDisplayString(page), 1 /* TEXT */))
|
|
4838
4807
|
: (['..','...'].includes(page))
|
|
4839
|
-
? (openBlock(), createElementBlock("a",
|
|
4808
|
+
? (openBlock(), createElementBlock("a", _hoisted_8$4, toDisplayString(page), 1 /* TEXT */))
|
|
4840
4809
|
: (openBlock(), createElementBlock("a", {
|
|
4841
4810
|
key: 2,
|
|
4842
4811
|
onClick: $event => ($options.changeTableKey('page',page)),
|
|
4843
4812
|
class: "page-link"
|
|
4844
|
-
}, toDisplayString(page), 9 /* TEXT, PROPS */,
|
|
4813
|
+
}, toDisplayString(page), 9 /* TEXT, PROPS */, _hoisted_9$4))
|
|
4845
4814
|
], 2 /* CLASS */))
|
|
4846
4815
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
4847
4816
|
createElementVNode("li", {
|
|
@@ -4856,24 +4825,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4856
4825
|
]))
|
|
4857
4826
|
: createCommentVNode("v-if", true)
|
|
4858
4827
|
]))
|
|
4859
|
-
: (openBlock(), createElementBlock("div",
|
|
4828
|
+
: (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
4860
4829
|
(this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
|
|
4861
|
-
? (openBlock(), createElementBlock("div",
|
|
4830
|
+
? (openBlock(), createElementBlock("div", _hoisted_11$2, _cache[7] || (_cache[7] = [
|
|
4831
|
+
createElementVNode("div", {
|
|
4832
|
+
class: "spinner-border",
|
|
4833
|
+
role: "status"
|
|
4834
|
+
}, null, -1 /* HOISTED */)
|
|
4835
|
+
])))
|
|
4862
4836
|
: createCommentVNode("v-if", true),
|
|
4863
4837
|
(!$props.hideCount)
|
|
4864
|
-
? (openBlock(), createElementBlock("div",
|
|
4865
|
-
createElementVNode("span",
|
|
4838
|
+
? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
4839
|
+
createElementVNode("span", _hoisted_13$2, "Showing " + toDisplayString($props.pagination_data.displayCount) + " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
4866
4840
|
]))
|
|
4867
4841
|
: createCommentVNode("v-if", true),
|
|
4868
4842
|
($props.pagination_data.displayCount < $props.pagination_data.record_count && !$props.hideLoadMore)
|
|
4869
|
-
? (openBlock(), createElementBlock("div",
|
|
4843
|
+
? (openBlock(), createElementBlock("div", _hoisted_14$2, [
|
|
4870
4844
|
(this.pagination_data.loading !== 1)
|
|
4871
4845
|
? (openBlock(), createElementBlock("button", {
|
|
4872
4846
|
key: 0,
|
|
4873
4847
|
class: "btn btn-sm btn-primary mt-1",
|
|
4874
4848
|
onClick: _cache[4] || (_cache[4] = (...args) => ($options.loadMoreRecords && $options.loadMoreRecords(...args)))
|
|
4875
4849
|
}, " Load More "))
|
|
4876
|
-
: (openBlock(), createElementBlock("span",
|
|
4850
|
+
: (openBlock(), createElementBlock("span", _hoisted_15$2))
|
|
4877
4851
|
]))
|
|
4878
4852
|
: createCommentVNode("v-if", true)
|
|
4879
4853
|
]))
|
|
@@ -4884,7 +4858,7 @@ script$f.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
|
4884
4858
|
|
|
4885
4859
|
const _hoisted_1$b = { class: "sh-range" };
|
|
4886
4860
|
const _hoisted_2$8 = { class: "dropdown" };
|
|
4887
|
-
const _hoisted_3$
|
|
4861
|
+
const _hoisted_3$6 = {
|
|
4888
4862
|
class: "form-control dropdown-toggle",
|
|
4889
4863
|
href: "#",
|
|
4890
4864
|
role: "button",
|
|
@@ -4892,17 +4866,15 @@ const _hoisted_3$7 = {
|
|
|
4892
4866
|
"data-bs-toggle": "dropdown",
|
|
4893
4867
|
"aria-expanded": "false"
|
|
4894
4868
|
};
|
|
4895
|
-
const _hoisted_4$
|
|
4896
|
-
const _hoisted_5$
|
|
4897
|
-
const _hoisted_6$5 = {
|
|
4869
|
+
const _hoisted_4$6 = ["innerHTML"];
|
|
4870
|
+
const _hoisted_5$4 = {
|
|
4898
4871
|
class: "dropdown-menu sh-range-dropdown",
|
|
4899
4872
|
"aria-labelledby": "dropdownMenuLink"
|
|
4900
4873
|
};
|
|
4901
|
-
const
|
|
4902
|
-
const
|
|
4903
|
-
const
|
|
4904
|
-
const
|
|
4905
|
-
const _hoisted_11$4 = /*#__PURE__*/createElementVNode("span", null, "Custom", -1 /* HOISTED */);
|
|
4874
|
+
const _hoisted_6$4 = { class: "sh-range-preset" };
|
|
4875
|
+
const _hoisted_7$4 = ["onClick"];
|
|
4876
|
+
const _hoisted_8$3 = { class: "border-top" };
|
|
4877
|
+
const _hoisted_9$3 = { class: "dropdown-item d-flex flex-column" };
|
|
4906
4878
|
|
|
4907
4879
|
|
|
4908
4880
|
|
|
@@ -5017,13 +4989,13 @@ onMounted(() => {
|
|
|
5017
4989
|
return (_ctx, _cache) => {
|
|
5018
4990
|
return (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
5019
4991
|
createElementVNode("div", _hoisted_2$8, [
|
|
5020
|
-
createElementVNode("div", _hoisted_3$
|
|
5021
|
-
|
|
5022
|
-
createTextVNode(),
|
|
5023
|
-
createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */,
|
|
4992
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
4993
|
+
_cache[2] || (_cache[2] = createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */)),
|
|
4994
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
4995
|
+
createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_4$6)
|
|
5024
4996
|
]),
|
|
5025
|
-
createElementVNode("div",
|
|
5026
|
-
createElementVNode("ul",
|
|
4997
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
4998
|
+
createElementVNode("ul", _hoisted_6$4, [
|
|
5027
4999
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dates.value, (date) => {
|
|
5028
5000
|
return (openBlock(), createElementBlock("li", {
|
|
5029
5001
|
key: date.label,
|
|
@@ -5033,13 +5005,13 @@ return (_ctx, _cache) => {
|
|
|
5033
5005
|
class: normalizeClass(["dropdown-item", date.value === selectedDate.value ? 'active' : '']),
|
|
5034
5006
|
href: "#"
|
|
5035
5007
|
}, toDisplayString(date.label), 3 /* TEXT, CLASS */)
|
|
5036
|
-
], 8 /* PROPS */,
|
|
5008
|
+
], 8 /* PROPS */, _hoisted_7$4))
|
|
5037
5009
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5038
5010
|
]),
|
|
5039
5011
|
createElementVNode("ul", null, [
|
|
5040
|
-
createElementVNode("li",
|
|
5041
|
-
createElementVNode("div",
|
|
5042
|
-
|
|
5012
|
+
createElementVNode("li", _hoisted_8$3, [
|
|
5013
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
5014
|
+
_cache[4] || (_cache[4] = createElementVNode("span", null, "Custom", -1 /* HOISTED */)),
|
|
5043
5015
|
createElementVNode("div", null, [
|
|
5044
5016
|
withDirectives(createElementVNode("input", {
|
|
5045
5017
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((customFrom).value = $event)),
|
|
@@ -5079,170 +5051,121 @@ const _hoisted_2$7 = {
|
|
|
5079
5051
|
key: 0,
|
|
5080
5052
|
class: "col-md-4 mb-2"
|
|
5081
5053
|
};
|
|
5082
|
-
const _hoisted_3$
|
|
5083
|
-
const _hoisted_4$
|
|
5084
|
-
const _hoisted_5$5 = /*#__PURE__*/createElementVNode("span", {
|
|
5085
|
-
class: "spinner-border spinner-border-sm",
|
|
5086
|
-
role: "status",
|
|
5087
|
-
"aria-hidden": "true"
|
|
5088
|
-
}, null, -1 /* HOISTED */);
|
|
5089
|
-
const _hoisted_6$4 = /*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
|
|
5090
|
-
const _hoisted_7$3 = {
|
|
5054
|
+
const _hoisted_3$5 = ["disabled"];
|
|
5055
|
+
const _hoisted_4$5 = {
|
|
5091
5056
|
key: 1,
|
|
5092
5057
|
class: "row"
|
|
5093
5058
|
};
|
|
5094
|
-
const
|
|
5095
|
-
const
|
|
5096
|
-
const
|
|
5059
|
+
const _hoisted_5$3 = { class: "col-12 mb-3 d-flex justify-content-between flex-column flex-md-row flex-lg-row" };
|
|
5060
|
+
const _hoisted_6$3 = ["placeholder"];
|
|
5061
|
+
const _hoisted_7$3 = {
|
|
5097
5062
|
key: 0,
|
|
5098
5063
|
class: "input-group-text exact_checkbox"
|
|
5099
5064
|
};
|
|
5100
|
-
const
|
|
5101
|
-
const _hoisted_12$3 = {
|
|
5065
|
+
const _hoisted_8$2 = {
|
|
5102
5066
|
key: 0,
|
|
5103
5067
|
class: "sh-range-selector"
|
|
5104
5068
|
};
|
|
5105
|
-
const
|
|
5069
|
+
const _hoisted_9$2 = {
|
|
5106
5070
|
key: 0,
|
|
5107
5071
|
class: "text-center"
|
|
5108
5072
|
};
|
|
5109
|
-
const
|
|
5110
|
-
class: "spinner-border",
|
|
5111
|
-
role: "status"
|
|
5112
|
-
}, [
|
|
5113
|
-
/*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5114
|
-
], -1 /* HOISTED */);
|
|
5115
|
-
const _hoisted_15$1 = [
|
|
5116
|
-
_hoisted_14$1
|
|
5117
|
-
];
|
|
5118
|
-
const _hoisted_16$1 = {
|
|
5073
|
+
const _hoisted_10$2 = {
|
|
5119
5074
|
key: 1,
|
|
5120
5075
|
class: "alert alert-danger"
|
|
5121
5076
|
};
|
|
5122
|
-
const
|
|
5077
|
+
const _hoisted_11$1 = {
|
|
5123
5078
|
key: 0,
|
|
5124
5079
|
class: "text-center"
|
|
5125
5080
|
};
|
|
5126
|
-
const
|
|
5127
|
-
class: "spinner-border",
|
|
5128
|
-
role: "status"
|
|
5129
|
-
}, [
|
|
5130
|
-
/*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5131
|
-
], -1 /* HOISTED */);
|
|
5132
|
-
const _hoisted_19 = [
|
|
5133
|
-
_hoisted_18$1
|
|
5134
|
-
];
|
|
5135
|
-
const _hoisted_20 = {
|
|
5081
|
+
const _hoisted_12$1 = {
|
|
5136
5082
|
key: 1,
|
|
5137
5083
|
class: "alert alert-danger error-loading"
|
|
5138
5084
|
};
|
|
5139
|
-
const
|
|
5140
|
-
const
|
|
5141
|
-
const
|
|
5142
|
-
const
|
|
5143
|
-
const
|
|
5144
|
-
const
|
|
5145
|
-
const
|
|
5085
|
+
const _hoisted_13$1 = { class: "sh-thead" };
|
|
5086
|
+
const _hoisted_14$1 = { key: 0 };
|
|
5087
|
+
const _hoisted_15$1 = ["onClick"];
|
|
5088
|
+
const _hoisted_16 = ["onClick"];
|
|
5089
|
+
const _hoisted_17 = ["onClick"];
|
|
5090
|
+
const _hoisted_18 = ["onClick"];
|
|
5091
|
+
const _hoisted_19 = {
|
|
5146
5092
|
key: 0,
|
|
5147
5093
|
class: "text-capitalize"
|
|
5148
5094
|
};
|
|
5149
|
-
const
|
|
5150
|
-
const
|
|
5095
|
+
const _hoisted_20 = { class: "sh-tbody" };
|
|
5096
|
+
const _hoisted_21 = {
|
|
5151
5097
|
key: 0,
|
|
5152
5098
|
class: "text-center"
|
|
5153
5099
|
};
|
|
5154
|
-
const
|
|
5155
|
-
const
|
|
5156
|
-
/*#__PURE__*/createElementVNode("div", {
|
|
5157
|
-
class: "spinner-border",
|
|
5158
|
-
role: "status"
|
|
5159
|
-
}, [
|
|
5160
|
-
/*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5161
|
-
])
|
|
5162
|
-
], -1 /* HOISTED */);
|
|
5163
|
-
const _hoisted_32 = [
|
|
5164
|
-
_hoisted_31
|
|
5165
|
-
];
|
|
5166
|
-
const _hoisted_33 = {
|
|
5100
|
+
const _hoisted_22 = ["colspan"];
|
|
5101
|
+
const _hoisted_23 = {
|
|
5167
5102
|
key: 1,
|
|
5168
5103
|
class: "text-center alert alert-danger"
|
|
5169
5104
|
};
|
|
5170
|
-
const
|
|
5171
|
-
const
|
|
5105
|
+
const _hoisted_24 = ["colspan"];
|
|
5106
|
+
const _hoisted_25 = {
|
|
5172
5107
|
key: 2,
|
|
5173
5108
|
class: "text-center alert alert-info no_records"
|
|
5174
5109
|
};
|
|
5175
|
-
const
|
|
5176
|
-
const
|
|
5177
|
-
const
|
|
5178
|
-
const
|
|
5179
|
-
const
|
|
5110
|
+
const _hoisted_26 = ["colspan"];
|
|
5111
|
+
const _hoisted_27 = ["onClick"];
|
|
5112
|
+
const _hoisted_28 = { key: 0 };
|
|
5113
|
+
const _hoisted_29 = { key: 1 };
|
|
5114
|
+
const _hoisted_30 = {
|
|
5180
5115
|
key: 2,
|
|
5181
5116
|
class: "text-success fw-bold"
|
|
5182
5117
|
};
|
|
5183
|
-
const
|
|
5184
|
-
const
|
|
5185
|
-
const
|
|
5186
|
-
const
|
|
5187
|
-
const
|
|
5188
|
-
const
|
|
5189
|
-
const
|
|
5190
|
-
const
|
|
5118
|
+
const _hoisted_31 = { key: 3 };
|
|
5119
|
+
const _hoisted_32 = ["innerHTML"];
|
|
5120
|
+
const _hoisted_33 = ["innerHTML"];
|
|
5121
|
+
const _hoisted_34 = ["innerHTML"];
|
|
5122
|
+
const _hoisted_35 = ["innerHTML"];
|
|
5123
|
+
const _hoisted_36 = ["innerHTML"];
|
|
5124
|
+
const _hoisted_37 = ["innerHTML"];
|
|
5125
|
+
const _hoisted_38 = {
|
|
5191
5126
|
key: 0,
|
|
5192
5127
|
style: {"white-space":"nowrap"}
|
|
5193
5128
|
};
|
|
5194
|
-
const
|
|
5195
|
-
const
|
|
5129
|
+
const _hoisted_39 = { key: 5 };
|
|
5130
|
+
const _hoisted_40 = {
|
|
5196
5131
|
key: 0,
|
|
5197
5132
|
class: "text-center"
|
|
5198
5133
|
};
|
|
5199
|
-
const
|
|
5200
|
-
|
|
5201
|
-
class: "spinner-border",
|
|
5202
|
-
role: "status"
|
|
5203
|
-
}, [
|
|
5204
|
-
/*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5205
|
-
])
|
|
5206
|
-
], -1 /* HOISTED */);
|
|
5207
|
-
const _hoisted_52 = [
|
|
5208
|
-
_hoisted_51
|
|
5209
|
-
];
|
|
5210
|
-
const _hoisted_53 = { key: 1 };
|
|
5211
|
-
const _hoisted_54 = {
|
|
5134
|
+
const _hoisted_41 = { key: 1 };
|
|
5135
|
+
const _hoisted_42 = {
|
|
5212
5136
|
key: 2,
|
|
5213
5137
|
class: "mobile-list-items"
|
|
5214
5138
|
};
|
|
5215
|
-
const
|
|
5216
|
-
const
|
|
5139
|
+
const _hoisted_43 = ["onClick"];
|
|
5140
|
+
const _hoisted_44 = {
|
|
5217
5141
|
key: 0,
|
|
5218
5142
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
5219
5143
|
};
|
|
5220
|
-
const
|
|
5144
|
+
const _hoisted_45 = {
|
|
5221
5145
|
key: 1,
|
|
5222
5146
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
5223
5147
|
};
|
|
5224
|
-
const
|
|
5148
|
+
const _hoisted_46 = {
|
|
5225
5149
|
key: 2,
|
|
5226
5150
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
5227
5151
|
};
|
|
5228
|
-
const
|
|
5152
|
+
const _hoisted_47 = {
|
|
5229
5153
|
key: 3,
|
|
5230
5154
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
5231
5155
|
};
|
|
5232
|
-
const
|
|
5233
|
-
const
|
|
5156
|
+
const _hoisted_48 = { key: 1 };
|
|
5157
|
+
const _hoisted_49 = {
|
|
5234
5158
|
key: 2,
|
|
5235
5159
|
class: "text-primary fw-bold"
|
|
5236
5160
|
};
|
|
5237
|
-
const
|
|
5238
|
-
const
|
|
5239
|
-
const
|
|
5240
|
-
const
|
|
5241
|
-
const
|
|
5242
|
-
const
|
|
5243
|
-
const
|
|
5244
|
-
const
|
|
5245
|
-
const _hoisted_70 = { key: 0 };
|
|
5161
|
+
const _hoisted_50 = { key: 3 };
|
|
5162
|
+
const _hoisted_51 = ["innerHTML"];
|
|
5163
|
+
const _hoisted_52 = ["innerHTML"];
|
|
5164
|
+
const _hoisted_53 = ["innerHTML"];
|
|
5165
|
+
const _hoisted_54 = ["innerHTML"];
|
|
5166
|
+
const _hoisted_55 = ["innerHTML"];
|
|
5167
|
+
const _hoisted_56 = ["innerHTML"];
|
|
5168
|
+
const _hoisted_57 = { key: 0 };
|
|
5246
5169
|
|
|
5247
5170
|
const __default__ = {
|
|
5248
5171
|
name: 'sh-table',
|
|
@@ -5571,7 +5494,7 @@ const __default__ = {
|
|
|
5571
5494
|
};
|
|
5572
5495
|
|
|
5573
5496
|
|
|
5574
|
-
var script$d =
|
|
5497
|
+
var script$d = /*@__PURE__*/Object.assign(__default__, {
|
|
5575
5498
|
setup(__props) {
|
|
5576
5499
|
|
|
5577
5500
|
const noRecordsComponent = inject('noRecordsComponent', script$k);
|
|
@@ -5586,6 +5509,16 @@ const cleanColumn = col=>{
|
|
|
5586
5509
|
return newCol
|
|
5587
5510
|
};
|
|
5588
5511
|
|
|
5512
|
+
const showColumn = header=>{
|
|
5513
|
+
if(typeof header === 'string'){
|
|
5514
|
+
return true
|
|
5515
|
+
}
|
|
5516
|
+
if(typeof header === 'object' && header.validator) {
|
|
5517
|
+
return header.validator()
|
|
5518
|
+
}
|
|
5519
|
+
return true
|
|
5520
|
+
};
|
|
5521
|
+
|
|
5589
5522
|
|
|
5590
5523
|
return (_ctx, _cache) => {
|
|
5591
5524
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -5600,19 +5533,23 @@ return (_ctx, _cache) => {
|
|
|
5600
5533
|
}, [
|
|
5601
5534
|
(!_ctx.downloading)
|
|
5602
5535
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5603
|
-
|
|
5604
|
-
createTextVNode(" Export ")
|
|
5536
|
+
_cache[7] || (_cache[7] = createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */)),
|
|
5537
|
+
_cache[8] || (_cache[8] = createTextVNode(" Export "))
|
|
5605
5538
|
], 64 /* STABLE_FRAGMENT */))
|
|
5606
5539
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5607
|
-
|
|
5608
|
-
|
|
5540
|
+
_cache[9] || (_cache[9] = createElementVNode("span", {
|
|
5541
|
+
class: "spinner-border spinner-border-sm",
|
|
5542
|
+
role: "status",
|
|
5543
|
+
"aria-hidden": "true"
|
|
5544
|
+
}, null, -1 /* HOISTED */)),
|
|
5545
|
+
_cache[10] || (_cache[10] = createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */))
|
|
5609
5546
|
], 64 /* STABLE_FRAGMENT */))
|
|
5610
|
-
], 8 /* PROPS */, _hoisted_3$
|
|
5547
|
+
], 8 /* PROPS */, _hoisted_3$5)
|
|
5611
5548
|
]))
|
|
5612
5549
|
: createCommentVNode("v-if", true),
|
|
5613
5550
|
(!__props.hideSearch)
|
|
5614
|
-
? (openBlock(), createElementBlock("div",
|
|
5615
|
-
createElementVNode("div",
|
|
5551
|
+
? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
5552
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
5616
5553
|
createElementVNode("div", {
|
|
5617
5554
|
class: normalizeClass(["sh-search-bar input-group", __props.hasRange ? 'me-2':''])
|
|
5618
5555
|
}, [
|
|
@@ -5624,11 +5561,11 @@ return (_ctx, _cache) => {
|
|
|
5624
5561
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
|
|
5625
5562
|
placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
|
|
5626
5563
|
class: "form-control sh-search-input"
|
|
5627
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */,
|
|
5564
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$3), [
|
|
5628
5565
|
[vModelText, _ctx.filter_value]
|
|
5629
5566
|
]),
|
|
5630
5567
|
(_ctx.filter_value.length > 1)
|
|
5631
|
-
? (openBlock(), createElementBlock("span",
|
|
5568
|
+
? (openBlock(), createElementBlock("span", _hoisted_7$3, [
|
|
5632
5569
|
withDirectives(createElementVNode("input", {
|
|
5633
5570
|
onChange: _cache[5] || (_cache[5] = (...args) => (_ctx.reloadData && _ctx.reloadData(...args))),
|
|
5634
5571
|
value: true,
|
|
@@ -5637,12 +5574,12 @@ return (_ctx, _cache) => {
|
|
|
5637
5574
|
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
5638
5575
|
[vModelCheckbox, _ctx.exactMatch]
|
|
5639
5576
|
]),
|
|
5640
|
-
|
|
5577
|
+
_cache[11] || (_cache[11] = createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */))
|
|
5641
5578
|
]))
|
|
5642
5579
|
: createCommentVNode("v-if", true)
|
|
5643
5580
|
], 2 /* CLASS */),
|
|
5644
5581
|
(__props.hasRange)
|
|
5645
|
-
? (openBlock(), createElementBlock("div",
|
|
5582
|
+
? (openBlock(), createElementBlock("div", _hoisted_8$2, [
|
|
5646
5583
|
createVNode(script$e, {
|
|
5647
5584
|
onRangeSelected: _ctx.rangeChanged,
|
|
5648
5585
|
selected: __props.selectedRange
|
|
@@ -5655,9 +5592,16 @@ return (_ctx, _cache) => {
|
|
|
5655
5592
|
(_ctx.hasDefaultSlot)
|
|
5656
5593
|
? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5657
5594
|
(_ctx.loading === 'loading')
|
|
5658
|
-
? (openBlock(), createElementBlock("div",
|
|
5595
|
+
? (openBlock(), createElementBlock("div", _hoisted_9$2, _cache[12] || (_cache[12] = [
|
|
5596
|
+
createElementVNode("div", {
|
|
5597
|
+
class: "spinner-border",
|
|
5598
|
+
role: "status"
|
|
5599
|
+
}, [
|
|
5600
|
+
createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5601
|
+
], -1 /* HOISTED */)
|
|
5602
|
+
])))
|
|
5659
5603
|
: (_ctx.loading === 'error')
|
|
5660
|
-
? (openBlock(), createElementBlock("div",
|
|
5604
|
+
? (openBlock(), createElementBlock("div", _hoisted_10$2, [
|
|
5661
5605
|
createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
5662
5606
|
]))
|
|
5663
5607
|
: createCommentVNode("v-if", true),
|
|
@@ -5673,9 +5617,16 @@ return (_ctx, _cache) => {
|
|
|
5673
5617
|
: (_ctx.hasRecordsSlot)
|
|
5674
5618
|
? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
5675
5619
|
(_ctx.loading === 'loading' && !__props.cacheKey)
|
|
5676
|
-
? (openBlock(), createElementBlock("div",
|
|
5620
|
+
? (openBlock(), createElementBlock("div", _hoisted_11$1, _cache[13] || (_cache[13] = [
|
|
5621
|
+
createElementVNode("div", {
|
|
5622
|
+
class: "spinner-border",
|
|
5623
|
+
role: "status"
|
|
5624
|
+
}, [
|
|
5625
|
+
createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5626
|
+
], -1 /* HOISTED */)
|
|
5627
|
+
])))
|
|
5677
5628
|
: (_ctx.loading === 'error' && !__props.cacheKey)
|
|
5678
|
-
? (openBlock(), createElementBlock("div",
|
|
5629
|
+
? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
5679
5630
|
createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
5680
5631
|
]))
|
|
5681
5632
|
: createCommentVNode("v-if", true),
|
|
@@ -5684,7 +5635,7 @@ return (_ctx, _cache) => {
|
|
|
5684
5635
|
(!_ctx.records || _ctx.records.length === 0)
|
|
5685
5636
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(noRecordsComponent)), { key: 0 }, {
|
|
5686
5637
|
default: withCtx(() => [
|
|
5687
|
-
|
|
5638
|
+
_cache[14] || (_cache[14] = createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */)),
|
|
5688
5639
|
createTextVNode(" " + toDisplayString(__props.noRecordsMessage ?? 'No records found'), 1 /* TEXT */)
|
|
5689
5640
|
]),
|
|
5690
5641
|
_: 1 /* STABLE */
|
|
@@ -5699,63 +5650,76 @@ return (_ctx, _cache) => {
|
|
|
5699
5650
|
key: 4,
|
|
5700
5651
|
class: normalizeClass(["table sh-table", __props.tableHover ? 'table-hover':''])
|
|
5701
5652
|
}, [
|
|
5702
|
-
createElementVNode("thead",
|
|
5653
|
+
createElementVNode("thead", _hoisted_13$1, [
|
|
5703
5654
|
createElementVNode("tr", null, [
|
|
5704
5655
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tableHeaders, (title) => {
|
|
5705
|
-
return (openBlock(), createElementBlock(
|
|
5706
|
-
(
|
|
5707
|
-
? (openBlock(), createElementBlock("
|
|
5708
|
-
|
|
5709
|
-
class: "text-capitalize",
|
|
5710
|
-
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5711
|
-
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
|
|
5712
|
-
: (typeof title === 'object')
|
|
5713
|
-
? (openBlock(), createElementBlock("a", {
|
|
5714
|
-
key: 1,
|
|
5715
|
-
class: "text-capitalize",
|
|
5716
|
-
onClick: $event => (_ctx.changeKey('order_by',title.key))
|
|
5717
|
-
}, toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
5718
|
-
: (typeof title === 'function')
|
|
5719
|
-
? (openBlock(), createElementBlock("a", {
|
|
5720
|
-
key: 2,
|
|
5721
|
-
class: "text-capitalize",
|
|
5722
|
-
onClick: $event => (_ctx.changeKey('order_by',title(null)))
|
|
5723
|
-
}, toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
|
|
5724
|
-
: (typeof title !== 'undefined')
|
|
5656
|
+
return (openBlock(), createElementBlock(Fragment, { key: title }, [
|
|
5657
|
+
(showColumn(title))
|
|
5658
|
+
? (openBlock(), createElementBlock("th", _hoisted_14$1, [
|
|
5659
|
+
(typeof title === 'string')
|
|
5725
5660
|
? (openBlock(), createElementBlock("a", {
|
|
5726
|
-
key:
|
|
5661
|
+
key: 0,
|
|
5727
5662
|
class: "text-capitalize",
|
|
5728
5663
|
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5729
|
-
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */,
|
|
5730
|
-
:
|
|
5731
|
-
|
|
5664
|
+
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_15$1))
|
|
5665
|
+
: (typeof title === 'object')
|
|
5666
|
+
? (openBlock(), createElementBlock("a", {
|
|
5667
|
+
key: 1,
|
|
5668
|
+
class: "text-capitalize",
|
|
5669
|
+
onClick: $event => (_ctx.changeKey('order_by',title.key))
|
|
5670
|
+
}, toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_16))
|
|
5671
|
+
: (typeof title === 'function')
|
|
5672
|
+
? (openBlock(), createElementBlock("a", {
|
|
5673
|
+
key: 2,
|
|
5674
|
+
class: "text-capitalize",
|
|
5675
|
+
onClick: $event => (_ctx.changeKey('order_by',title(null)))
|
|
5676
|
+
}, toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_17))
|
|
5677
|
+
: (typeof title !== 'undefined')
|
|
5678
|
+
? (openBlock(), createElementBlock("a", {
|
|
5679
|
+
key: 3,
|
|
5680
|
+
class: "text-capitalize",
|
|
5681
|
+
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5682
|
+
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_18))
|
|
5683
|
+
: createCommentVNode("v-if", true)
|
|
5684
|
+
]))
|
|
5685
|
+
: createCommentVNode("v-if", true)
|
|
5686
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5732
5687
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
5733
5688
|
(__props.actions)
|
|
5734
|
-
? (openBlock(), createElementBlock("th",
|
|
5689
|
+
? (openBlock(), createElementBlock("th", _hoisted_19, toDisplayString(__props.actions.label), 1 /* TEXT */))
|
|
5735
5690
|
: createCommentVNode("v-if", true)
|
|
5736
5691
|
])
|
|
5737
5692
|
]),
|
|
5738
|
-
createElementVNode("tbody",
|
|
5693
|
+
createElementVNode("tbody", _hoisted_20, [
|
|
5739
5694
|
(_ctx.loading === 'loading')
|
|
5740
|
-
? (openBlock(), createElementBlock("tr",
|
|
5695
|
+
? (openBlock(), createElementBlock("tr", _hoisted_21, [
|
|
5741
5696
|
createElementVNode("td", {
|
|
5742
5697
|
colspan: _ctx.tableHeaders.length
|
|
5743
|
-
}, [
|
|
5698
|
+
}, _cache[15] || (_cache[15] = [
|
|
5699
|
+
createElementVNode("div", { class: "text-center" }, [
|
|
5700
|
+
createElementVNode("div", {
|
|
5701
|
+
class: "spinner-border",
|
|
5702
|
+
role: "status"
|
|
5703
|
+
}, [
|
|
5704
|
+
createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5705
|
+
])
|
|
5706
|
+
], -1 /* HOISTED */)
|
|
5707
|
+
]), 8 /* PROPS */, _hoisted_22)
|
|
5744
5708
|
]))
|
|
5745
5709
|
: (_ctx.loading === 'error')
|
|
5746
|
-
? (openBlock(), createElementBlock("tr",
|
|
5710
|
+
? (openBlock(), createElementBlock("tr", _hoisted_23, [
|
|
5747
5711
|
createElementVNode("td", {
|
|
5748
5712
|
colspan: _ctx.tableHeaders.length
|
|
5749
|
-
}, toDisplayString(_ctx.loading_error), 9 /* TEXT, PROPS */,
|
|
5713
|
+
}, toDisplayString(_ctx.loading_error), 9 /* TEXT, PROPS */, _hoisted_24)
|
|
5750
5714
|
]))
|
|
5751
5715
|
: (_ctx.records.length === 0)
|
|
5752
|
-
? (openBlock(), createElementBlock("tr",
|
|
5716
|
+
? (openBlock(), createElementBlock("tr", _hoisted_25, [
|
|
5753
5717
|
createElementVNode("td", {
|
|
5754
5718
|
colspan: __props.actions ? _ctx.tableHeaders.length + 1 : _ctx.tableHeaders.length
|
|
5755
|
-
}, [
|
|
5756
|
-
|
|
5719
|
+
}, _cache[16] || (_cache[16] = [
|
|
5720
|
+
createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */),
|
|
5757
5721
|
createTextVNode(" No records found ")
|
|
5758
|
-
], 8 /* PROPS */,
|
|
5722
|
+
]), 8 /* PROPS */, _hoisted_26)
|
|
5759
5723
|
]))
|
|
5760
5724
|
: (_ctx.loading === 'done')
|
|
5761
5725
|
? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(_ctx.records, (record, index) => {
|
|
@@ -5765,60 +5729,64 @@ return (_ctx, _cache) => {
|
|
|
5765
5729
|
onClick: $event => (_ctx.rowSelected(record))
|
|
5766
5730
|
}, [
|
|
5767
5731
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tableHeaders, (key) => {
|
|
5768
|
-
return (openBlock(), createElementBlock(
|
|
5769
|
-
(
|
|
5770
|
-
? (openBlock(),
|
|
5771
|
-
key
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
innerHTML: record[key]
|
|
5787
|
-
}, null, 8 /* PROPS */, _hoisted_42))
|
|
5788
|
-
: (typeof key === 'function')
|
|
5789
|
-
? (openBlock(), createElementBlock("span", {
|
|
5790
|
-
key: 5,
|
|
5791
|
-
innerHTML: key(record, index)
|
|
5792
|
-
}, null, 8 /* PROPS */, _hoisted_43))
|
|
5793
|
-
: (typeof key === 'object' && key.callBack)
|
|
5794
|
-
? (openBlock(), createElementBlock("span", {
|
|
5795
|
-
key: 6,
|
|
5796
|
-
innerHTML: key.callBack(record, index)
|
|
5797
|
-
}, null, 8 /* PROPS */, _hoisted_44))
|
|
5798
|
-
: (typeof key === 'object' && key.callback)
|
|
5732
|
+
return (openBlock(), createElementBlock(Fragment, { key: key }, [
|
|
5733
|
+
(showColumn(key))
|
|
5734
|
+
? (openBlock(), createElementBlock("td", _hoisted_28, [
|
|
5735
|
+
(typeof key === 'string' && __props.links && __props.links[key])
|
|
5736
|
+
? (openBlock(), createBlock(_component_router_link, {
|
|
5737
|
+
key: 0,
|
|
5738
|
+
target: __props.links[key].target ? '_blank':'',
|
|
5739
|
+
to: _ctx.replaceLinkUrl(__props.links[key],record),
|
|
5740
|
+
class: normalizeClass(_ctx.getLinkClass(__props.links[key])),
|
|
5741
|
+
innerHTML: record[key]
|
|
5742
|
+
}, null, 8 /* PROPS */, ["target", "to", "class", "innerHTML"]))
|
|
5743
|
+
: (_ctx.getFieldType(key) === 'numeric')
|
|
5744
|
+
? (openBlock(), createElementBlock("span", _hoisted_29, toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5745
|
+
: (_ctx.getFieldType(key) === 'money')
|
|
5746
|
+
? (openBlock(), createElementBlock("span", _hoisted_30, toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5747
|
+
: (_ctx.getFieldType(key) === 'date')
|
|
5748
|
+
? (openBlock(), createElementBlock("span", _hoisted_31, toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
|
|
5749
|
+
: (typeof key === 'string')
|
|
5799
5750
|
? (openBlock(), createElementBlock("span", {
|
|
5800
|
-
key:
|
|
5801
|
-
innerHTML: key
|
|
5802
|
-
}, null, 8 /* PROPS */,
|
|
5803
|
-
: (typeof key === '
|
|
5804
|
-
? (openBlock(),
|
|
5805
|
-
key:
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
: (typeof key === 'object')
|
|
5751
|
+
key: 4,
|
|
5752
|
+
innerHTML: record[key]
|
|
5753
|
+
}, null, 8 /* PROPS */, _hoisted_32))
|
|
5754
|
+
: (typeof key === 'function')
|
|
5755
|
+
? (openBlock(), createElementBlock("span", {
|
|
5756
|
+
key: 5,
|
|
5757
|
+
innerHTML: key(record, index)
|
|
5758
|
+
}, null, 8 /* PROPS */, _hoisted_33))
|
|
5759
|
+
: (typeof key === 'object' && key.callBack)
|
|
5810
5760
|
? (openBlock(), createElementBlock("span", {
|
|
5811
|
-
key:
|
|
5812
|
-
innerHTML:
|
|
5813
|
-
}, null, 8 /* PROPS */,
|
|
5814
|
-
: (
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5761
|
+
key: 6,
|
|
5762
|
+
innerHTML: key.callBack(record, index)
|
|
5763
|
+
}, null, 8 /* PROPS */, _hoisted_34))
|
|
5764
|
+
: (typeof key === 'object' && key.callback)
|
|
5765
|
+
? (openBlock(), createElementBlock("span", {
|
|
5766
|
+
key: 7,
|
|
5767
|
+
innerHTML: key.callback(record, index)
|
|
5768
|
+
}, null, 8 /* PROPS */, _hoisted_35))
|
|
5769
|
+
: (typeof key === 'object' && key.component)
|
|
5770
|
+
? (openBlock(), createBlock(resolveDynamicComponent(key.component), mergeProps({
|
|
5771
|
+
key: 8,
|
|
5772
|
+
item: record,
|
|
5773
|
+
ref_for: true
|
|
5774
|
+
}, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
|
|
5775
|
+
: (typeof key === 'object')
|
|
5776
|
+
? (openBlock(), createElementBlock("span", {
|
|
5777
|
+
key: 9,
|
|
5778
|
+
innerHTML: record[key.key ?? key.field]
|
|
5779
|
+
}, null, 8 /* PROPS */, _hoisted_36))
|
|
5780
|
+
: (openBlock(), createElementBlock("span", {
|
|
5781
|
+
key: 10,
|
|
5782
|
+
innerHTML: record[key[0]]
|
|
5783
|
+
}, null, 8 /* PROPS */, _hoisted_37))
|
|
5784
|
+
]))
|
|
5785
|
+
: createCommentVNode("v-if", true)
|
|
5786
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5819
5787
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
5820
5788
|
(__props.actions)
|
|
5821
|
-
? (openBlock(), createElementBlock("td",
|
|
5789
|
+
? (openBlock(), createElementBlock("td", _hoisted_38, [
|
|
5822
5790
|
createVNode(script$g, {
|
|
5823
5791
|
emitAction: _ctx.doEmitAction,
|
|
5824
5792
|
actions: __props.actions,
|
|
@@ -5826,20 +5794,29 @@ return (_ctx, _cache) => {
|
|
|
5826
5794
|
}, null, 8 /* PROPS */, ["emitAction", "actions", "record"])
|
|
5827
5795
|
]))
|
|
5828
5796
|
: createCommentVNode("v-if", true)
|
|
5829
|
-
], 10 /* CLASS, PROPS */,
|
|
5797
|
+
], 10 /* CLASS, PROPS */, _hoisted_27))
|
|
5830
5798
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5831
5799
|
: createCommentVNode("v-if", true)
|
|
5832
5800
|
])
|
|
5833
5801
|
], 2 /* CLASS */))
|
|
5834
|
-
: (openBlock(), createElementBlock("div",
|
|
5802
|
+
: (openBlock(), createElementBlock("div", _hoisted_39, [
|
|
5835
5803
|
(_ctx.loading === 'loading')
|
|
5836
|
-
? (openBlock(), createElementBlock("div",
|
|
5804
|
+
? (openBlock(), createElementBlock("div", _hoisted_40, _cache[17] || (_cache[17] = [
|
|
5805
|
+
createElementVNode("div", { class: "text-center" }, [
|
|
5806
|
+
createElementVNode("div", {
|
|
5807
|
+
class: "spinner-border",
|
|
5808
|
+
role: "status"
|
|
5809
|
+
}, [
|
|
5810
|
+
createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
5811
|
+
])
|
|
5812
|
+
], -1 /* HOISTED */)
|
|
5813
|
+
])))
|
|
5837
5814
|
: (_ctx.loading === 'error')
|
|
5838
|
-
? (openBlock(), createElementBlock("div",
|
|
5815
|
+
? (openBlock(), createElementBlock("div", _hoisted_41, [
|
|
5839
5816
|
createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
5840
5817
|
]))
|
|
5841
5818
|
: (_ctx.loading === 'done')
|
|
5842
|
-
? (openBlock(), createElementBlock("div",
|
|
5819
|
+
? (openBlock(), createElementBlock("div", _hoisted_42, [
|
|
5843
5820
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.records, (record, index) => {
|
|
5844
5821
|
return (openBlock(), createElementBlock("div", {
|
|
5845
5822
|
key: record.id,
|
|
@@ -5850,68 +5827,72 @@ return (_ctx, _cache) => {
|
|
|
5850
5827
|
return (openBlock(), createElementBlock(Fragment, {
|
|
5851
5828
|
key: key[0]
|
|
5852
5829
|
}, [
|
|
5853
|
-
(
|
|
5854
|
-
? (openBlock(), createElementBlock(
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
key
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
innerHTML: key.callBack(record, index)
|
|
5883
|
-
}, null, 8 /* PROPS */, _hoisted_64))
|
|
5884
|
-
: (typeof key === 'object' && key.callback)
|
|
5885
|
-
? (openBlock(), createElementBlock("span", {
|
|
5886
|
-
key: 6,
|
|
5887
|
-
innerHTML: key.callback(record, index)
|
|
5888
|
-
}, null, 8 /* PROPS */, _hoisted_65))
|
|
5889
|
-
: (typeof key === 'object' && key.component)
|
|
5890
|
-
? (openBlock(), createBlock(resolveDynamicComponent(key.component), mergeProps({
|
|
5891
|
-
key: 7,
|
|
5892
|
-
item: record,
|
|
5893
|
-
ref_for: true
|
|
5894
|
-
}, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
|
|
5895
|
-
: (typeof key === 'object')
|
|
5830
|
+
(showColumn(key))
|
|
5831
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5832
|
+
(typeof key === 'string' )
|
|
5833
|
+
? (openBlock(), createElementBlock("p", _hoisted_44, toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
|
|
5834
|
+
: (typeof key === 'function')
|
|
5835
|
+
? (openBlock(), createElementBlock("p", _hoisted_45, toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
|
|
5836
|
+
: (typeof key === 'object')
|
|
5837
|
+
? (openBlock(), createElementBlock("p", _hoisted_46, toDisplayString(key.label ?? key.key.replace(/_/g, ' ')), 1 /* TEXT */))
|
|
5838
|
+
: (openBlock(), createElementBlock("p", _hoisted_47, toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
|
|
5839
|
+
createElementVNode("span", null, [
|
|
5840
|
+
(typeof key === 'string' && __props.links && __props.links[key])
|
|
5841
|
+
? (openBlock(), createBlock(_component_router_link, {
|
|
5842
|
+
key: 0,
|
|
5843
|
+
to: _ctx.replaceLinkUrl(__props.links[key],record),
|
|
5844
|
+
class: normalizeClass(_ctx.getLinkClass(__props.links[key])),
|
|
5845
|
+
innerHTML: record[key]
|
|
5846
|
+
}, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
|
|
5847
|
+
: (_ctx.getFieldType(key) === 'numeric')
|
|
5848
|
+
? (openBlock(), createElementBlock("span", _hoisted_48, toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5849
|
+
: (_ctx.getFieldType(key) === 'money')
|
|
5850
|
+
? (openBlock(), createElementBlock("span", _hoisted_49, "KES " + toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5851
|
+
: (_ctx.getFieldType(key) === 'date')
|
|
5852
|
+
? (openBlock(), createElementBlock("span", _hoisted_50, toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
|
|
5853
|
+
: (typeof key === 'string')
|
|
5854
|
+
? (openBlock(), createElementBlock("span", {
|
|
5855
|
+
key: 4,
|
|
5856
|
+
innerHTML: record[key]
|
|
5857
|
+
}, null, 8 /* PROPS */, _hoisted_51))
|
|
5858
|
+
: (typeof key === 'object' && key.callBack)
|
|
5896
5859
|
? (openBlock(), createElementBlock("span", {
|
|
5897
|
-
key:
|
|
5898
|
-
innerHTML:
|
|
5899
|
-
}, null, 8 /* PROPS */,
|
|
5900
|
-
: (typeof key === '
|
|
5860
|
+
key: 5,
|
|
5861
|
+
innerHTML: key.callBack(record, index)
|
|
5862
|
+
}, null, 8 /* PROPS */, _hoisted_52))
|
|
5863
|
+
: (typeof key === 'object' && key.callback)
|
|
5901
5864
|
? (openBlock(), createElementBlock("span", {
|
|
5902
|
-
key:
|
|
5903
|
-
innerHTML: key(record, index
|
|
5904
|
-
}, null, 8 /* PROPS */,
|
|
5905
|
-
: (
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5865
|
+
key: 6,
|
|
5866
|
+
innerHTML: key.callback(record, index)
|
|
5867
|
+
}, null, 8 /* PROPS */, _hoisted_53))
|
|
5868
|
+
: (typeof key === 'object' && key.component)
|
|
5869
|
+
? (openBlock(), createBlock(resolveDynamicComponent(key.component), mergeProps({
|
|
5870
|
+
key: 7,
|
|
5871
|
+
item: record,
|
|
5872
|
+
ref_for: true
|
|
5873
|
+
}, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
|
|
5874
|
+
: (typeof key === 'object')
|
|
5875
|
+
? (openBlock(), createElementBlock("span", {
|
|
5876
|
+
key: 8,
|
|
5877
|
+
innerHTML: record[key.key ?? key.field]
|
|
5878
|
+
}, null, 8 /* PROPS */, _hoisted_54))
|
|
5879
|
+
: (typeof key === 'function')
|
|
5880
|
+
? (openBlock(), createElementBlock("span", {
|
|
5881
|
+
key: 9,
|
|
5882
|
+
innerHTML: key(record, index )
|
|
5883
|
+
}, null, 8 /* PROPS */, _hoisted_55))
|
|
5884
|
+
: (openBlock(), createElementBlock("span", {
|
|
5885
|
+
key: 10,
|
|
5886
|
+
innerHTML: record[key[0]]
|
|
5887
|
+
}, null, 8 /* PROPS */, _hoisted_56))
|
|
5888
|
+
])
|
|
5889
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5890
|
+
: createCommentVNode("v-if", true),
|
|
5891
|
+
_cache[18] || (_cache[18] = createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */))
|
|
5911
5892
|
], 64 /* STABLE_FRAGMENT */))
|
|
5912
5893
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
5913
5894
|
(__props.actions)
|
|
5914
|
-
? (openBlock(), createElementBlock("div",
|
|
5895
|
+
? (openBlock(), createElementBlock("div", _hoisted_57, [
|
|
5915
5896
|
createVNode(script$g, {
|
|
5916
5897
|
emitAction: _ctx.doEmitAction,
|
|
5917
5898
|
actions: __props.actions,
|
|
@@ -5919,7 +5900,7 @@ return (_ctx, _cache) => {
|
|
|
5919
5900
|
}, null, 8 /* PROPS */, ["emitAction", "actions", "record"])
|
|
5920
5901
|
]))
|
|
5921
5902
|
: createCommentVNode("v-if", true)
|
|
5922
|
-
], 8 /* PROPS */,
|
|
5903
|
+
], 8 /* PROPS */, _hoisted_43))
|
|
5923
5904
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5924
5905
|
]))
|
|
5925
5906
|
: createCommentVNode("v-if", true)
|
|
@@ -6134,9 +6115,8 @@ const _hoisted_1$9 = {
|
|
|
6134
6115
|
role: "presentation"
|
|
6135
6116
|
};
|
|
6136
6117
|
const _hoisted_2$6 = ["onClick"];
|
|
6137
|
-
const _hoisted_3$
|
|
6138
|
-
const _hoisted_4$
|
|
6139
|
-
const _hoisted_5$4 = { class: "tab-content" };
|
|
6118
|
+
const _hoisted_3$4 = { class: "sh_tab_count" };
|
|
6119
|
+
const _hoisted_4$4 = { class: "tab-content" };
|
|
6140
6120
|
|
|
6141
6121
|
var script$b = {
|
|
6142
6122
|
__name: 'ShDynamicTabs',
|
|
@@ -6178,15 +6158,15 @@ return (_ctx, _cache) => {
|
|
|
6178
6158
|
createTextVNode(toDisplayString(tab.label) + " ", 1 /* TEXT */),
|
|
6179
6159
|
(tab.count || tab.tabCount)
|
|
6180
6160
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
6181
|
-
|
|
6182
|
-
createElementVNode("sup",
|
|
6161
|
+
_cache[0] || (_cache[0] = createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */)),
|
|
6162
|
+
createElementVNode("sup", _hoisted_3$4, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
|
|
6183
6163
|
], 64 /* STABLE_FRAGMENT */))
|
|
6184
6164
|
: createCommentVNode("v-if", true)
|
|
6185
6165
|
], 10 /* CLASS, PROPS */, _hoisted_2$6)
|
|
6186
6166
|
]))
|
|
6187
6167
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
6188
6168
|
], 2 /* CLASS */),
|
|
6189
|
-
createElementVNode("div",
|
|
6169
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
6190
6170
|
(unref(currentTab))
|
|
6191
6171
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), normalizeProps(mergeProps({ key: 0 }, unref(currentTab))), null, 16 /* FULL_PROPS */))
|
|
6192
6172
|
: createCommentVNode("v-if", true)
|
|
@@ -6252,45 +6232,39 @@ return (_ctx, _cache) => {
|
|
|
6252
6232
|
|
|
6253
6233
|
script$9.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
6254
6234
|
|
|
6255
|
-
const _withScopeId$1 = n => (pushScopeId("data-v-0d4fa0ac"),n=n(),popScopeId(),n);
|
|
6256
6235
|
const _hoisted_1$6 = { class: "row permissions-main d-flex" };
|
|
6257
6236
|
const _hoisted_2$5 = {
|
|
6258
6237
|
id: "permissions-nav",
|
|
6259
6238
|
class: "col-md-3 d-flex align-items-center py-4"
|
|
6260
6239
|
};
|
|
6261
|
-
const _hoisted_3$
|
|
6240
|
+
const _hoisted_3$3 = {
|
|
6262
6241
|
key: 0,
|
|
6263
6242
|
class: "mx-auto"
|
|
6264
6243
|
};
|
|
6265
|
-
const _hoisted_4$
|
|
6266
|
-
const _hoisted_5$3 = [
|
|
6267
|
-
_hoisted_4$4
|
|
6268
|
-
];
|
|
6269
|
-
const _hoisted_6$3 = {
|
|
6244
|
+
const _hoisted_4$3 = {
|
|
6270
6245
|
key: 1,
|
|
6271
6246
|
class: "d-flex flex-column w-100 px-2"
|
|
6272
6247
|
};
|
|
6273
|
-
const
|
|
6274
|
-
const
|
|
6275
|
-
const
|
|
6248
|
+
const _hoisted_5$2 = ["checked", "onClick", "disabled"];
|
|
6249
|
+
const _hoisted_6$2 = ["onClick"];
|
|
6250
|
+
const _hoisted_7$2 = {
|
|
6276
6251
|
id: "permissions-content",
|
|
6277
6252
|
class: "col-md-9 py-4 px-4"
|
|
6278
6253
|
};
|
|
6279
|
-
const
|
|
6280
|
-
const
|
|
6254
|
+
const _hoisted_8$1 = { class: "p-2 rounded-2 bg-white h-100" };
|
|
6255
|
+
const _hoisted_9$1 = {
|
|
6281
6256
|
key: 0,
|
|
6282
6257
|
class: "alert alert-info"
|
|
6283
6258
|
};
|
|
6284
|
-
const
|
|
6285
|
-
const
|
|
6286
|
-
const
|
|
6287
|
-
const
|
|
6288
|
-
const
|
|
6259
|
+
const _hoisted_10$1 = { key: 1 };
|
|
6260
|
+
const _hoisted_11 = { class: "row row-cols-3" };
|
|
6261
|
+
const _hoisted_12 = { class: "col" };
|
|
6262
|
+
const _hoisted_13 = ["value"];
|
|
6263
|
+
const _hoisted_14 = {
|
|
6289
6264
|
key: 0,
|
|
6290
6265
|
class: "w-100 row"
|
|
6291
6266
|
};
|
|
6292
|
-
const
|
|
6293
|
-
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
6267
|
+
const _hoisted_15 = { class: "col-md-3" };
|
|
6294
6268
|
|
|
6295
6269
|
|
|
6296
6270
|
var script$8 = {
|
|
@@ -6400,8 +6374,10 @@ return (_ctx, _cache) => {
|
|
|
6400
6374
|
return (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
6401
6375
|
createElementVNode("div", _hoisted_2$5, [
|
|
6402
6376
|
(loadingModules.value)
|
|
6403
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
6404
|
-
|
|
6377
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$3, _cache[1] || (_cache[1] = [
|
|
6378
|
+
createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */)
|
|
6379
|
+
])))
|
|
6380
|
+
: (openBlock(), createElementBlock("ul", _hoisted_4$3, [
|
|
6405
6381
|
(openBlock(true), createElementBlock(Fragment, null, renderList(modules.value, (module) => {
|
|
6406
6382
|
return (openBlock(), createElementBlock("li", {
|
|
6407
6383
|
class: normalizeClass(selectedModule.value === module && 'active'),
|
|
@@ -6412,23 +6388,23 @@ return (_ctx, _cache) => {
|
|
|
6412
6388
|
onClick: $event => (checkAllPermissions(module)),
|
|
6413
6389
|
disabled: selectedModule.value !== module,
|
|
6414
6390
|
type: "checkbox"
|
|
6415
|
-
}, null, 8 /* PROPS */,
|
|
6391
|
+
}, null, 8 /* PROPS */, _hoisted_5$2),
|
|
6416
6392
|
createElementVNode("label", {
|
|
6417
6393
|
class: "text-capitalize",
|
|
6418
6394
|
onClick: $event => (setModule(module))
|
|
6419
|
-
}, toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */,
|
|
6395
|
+
}, toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_6$2)
|
|
6420
6396
|
], 2 /* CLASS */))
|
|
6421
6397
|
}), 128 /* KEYED_FRAGMENT */))
|
|
6422
6398
|
]))
|
|
6423
6399
|
]),
|
|
6424
|
-
createElementVNode("div",
|
|
6425
|
-
createElementVNode("div",
|
|
6400
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
6401
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
6426
6402
|
(loading.value)
|
|
6427
|
-
? (openBlock(), createElementBlock("div",
|
|
6428
|
-
: (openBlock(), createElementBlock("div",
|
|
6429
|
-
createElementVNode("div",
|
|
6403
|
+
? (openBlock(), createElementBlock("div", _hoisted_9$1, " loading ... "))
|
|
6404
|
+
: (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
6405
|
+
createElementVNode("div", _hoisted_11, [
|
|
6430
6406
|
(openBlock(true), createElementBlock(Fragment, null, renderList(modulePermissions.value, (permissions) => {
|
|
6431
|
-
return (openBlock(), createElementBlock("div",
|
|
6407
|
+
return (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
6432
6408
|
(openBlock(true), createElementBlock(Fragment, null, renderList(permissions, (permission) => {
|
|
6433
6409
|
return (openBlock(), createElementBlock("label", {
|
|
6434
6410
|
onClick: setPermissionsChanged,
|
|
@@ -6439,7 +6415,7 @@ return (_ctx, _cache) => {
|
|
|
6439
6415
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((selectedPermissions).value = $event)),
|
|
6440
6416
|
value: permission,
|
|
6441
6417
|
type: "checkbox"
|
|
6442
|
-
}, null, 8 /* PROPS */,
|
|
6418
|
+
}, null, 8 /* PROPS */, _hoisted_13), [
|
|
6443
6419
|
[vModelCheckbox, selectedPermissions.value]
|
|
6444
6420
|
]),
|
|
6445
6421
|
createTextVNode(" " + toDisplayString(getLabel(permission)), 1 /* TEXT */)
|
|
@@ -6449,18 +6425,18 @@ return (_ctx, _cache) => {
|
|
|
6449
6425
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
6450
6426
|
]),
|
|
6451
6427
|
(permissionsChanged.value)
|
|
6452
|
-
? (openBlock(), createElementBlock("div",
|
|
6453
|
-
createElementVNode("div",
|
|
6428
|
+
? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
6429
|
+
createElementVNode("div", _hoisted_15, [
|
|
6454
6430
|
createVNode(script$i, {
|
|
6455
6431
|
onSuccess: permissionsUpdated,
|
|
6456
6432
|
url: `sh-departments/department/permissions/${unref(departmentId)}/${selectedModule.value}`,
|
|
6457
6433
|
data: {permissions: selectedPermissions.value},
|
|
6458
6434
|
class: "btn btn-primary d-block"
|
|
6459
6435
|
}, {
|
|
6460
|
-
default: withCtx(() => [
|
|
6461
|
-
|
|
6436
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
6437
|
+
createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */),
|
|
6462
6438
|
createTextVNode(" Save")
|
|
6463
|
-
]),
|
|
6439
|
+
])),
|
|
6464
6440
|
_: 1 /* STABLE */
|
|
6465
6441
|
}, 8 /* PROPS */, ["url", "data"])
|
|
6466
6442
|
])
|
|
@@ -6799,19 +6775,14 @@ script$4.__file = "src/lib/components/ShCardLayout.vue";
|
|
|
6799
6775
|
|
|
6800
6776
|
const _hoisted_1$3 = { class: "container" };
|
|
6801
6777
|
const _hoisted_2$3 = { class: "row" };
|
|
6802
|
-
const _hoisted_3$
|
|
6778
|
+
const _hoisted_3$2 = {
|
|
6803
6779
|
key: 0,
|
|
6804
6780
|
class: "col-md-6"
|
|
6805
6781
|
};
|
|
6806
|
-
const _hoisted_4$
|
|
6807
|
-
const _hoisted_5$
|
|
6808
|
-
const _hoisted_6$
|
|
6809
|
-
const _hoisted_7$1 =
|
|
6810
|
-
const _hoisted_8$1 = /*#__PURE__*/createElementVNode("i", { class: "bi-key" }, null, -1 /* HOISTED */);
|
|
6811
|
-
const _hoisted_9$1 = { class: "col-md-6" };
|
|
6812
|
-
const _hoisted_10$1 = /*#__PURE__*/createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */);
|
|
6813
|
-
const _hoisted_11$1 = /*#__PURE__*/createElementVNode("h5", { class: "card-title" }, "Profile Picture", -1 /* HOISTED */);
|
|
6814
|
-
const _hoisted_12$1 = ["src"];
|
|
6782
|
+
const _hoisted_4$2 = { class: "table" };
|
|
6783
|
+
const _hoisted_5$1 = { class: "card-footer" };
|
|
6784
|
+
const _hoisted_6$1 = { class: "col-md-6" };
|
|
6785
|
+
const _hoisted_7$1 = ["src"];
|
|
6815
6786
|
|
|
6816
6787
|
var script$3 = {
|
|
6817
6788
|
__name: 'ShUserProfile',
|
|
@@ -6848,11 +6819,11 @@ return (_ctx, _cache) => {
|
|
|
6848
6819
|
createElementVNode("div", _hoisted_1$3, [
|
|
6849
6820
|
createElementVNode("div", _hoisted_2$3, [
|
|
6850
6821
|
(unref(user))
|
|
6851
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
6822
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
6852
6823
|
createVNode(script$4, null, {
|
|
6853
6824
|
default: withCtx(() => [
|
|
6854
|
-
|
|
6855
|
-
createElementVNode("table",
|
|
6825
|
+
_cache[5] || (_cache[5] = createElementVNode("h5", { class: "card-title" }, "Details", -1 /* HOISTED */)),
|
|
6826
|
+
createElementVNode("table", _hoisted_4$2, [
|
|
6856
6827
|
createElementVNode("tbody", null, [
|
|
6857
6828
|
(openBlock(), createElementBlock(Fragment, null, renderList(UserdetailsColumns, (column) => {
|
|
6858
6829
|
return createElementVNode("tr", {
|
|
@@ -6864,7 +6835,7 @@ return (_ctx, _cache) => {
|
|
|
6864
6835
|
}), 64 /* STABLE_FRAGMENT */))
|
|
6865
6836
|
])
|
|
6866
6837
|
]),
|
|
6867
|
-
createElementVNode("div",
|
|
6838
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
6868
6839
|
(unref(user))
|
|
6869
6840
|
? (openBlock(), createBlock(script$n, {
|
|
6870
6841
|
key: 0,
|
|
@@ -6875,10 +6846,10 @@ return (_ctx, _cache) => {
|
|
|
6875
6846
|
onSuccess: _cache[0] || (_cache[0] = $event => (detailsUpdated('details'))),
|
|
6876
6847
|
fields: ['name','email','phone']
|
|
6877
6848
|
}, {
|
|
6878
|
-
default: withCtx(() => [
|
|
6879
|
-
|
|
6849
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
6850
|
+
createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */),
|
|
6880
6851
|
createTextVNode(" Edit Details")
|
|
6881
|
-
]),
|
|
6852
|
+
])),
|
|
6882
6853
|
_: 1 /* STABLE */
|
|
6883
6854
|
}, 8 /* PROPS */, ["current-data"]))
|
|
6884
6855
|
: createCommentVNode("v-if", true),
|
|
@@ -6904,10 +6875,10 @@ return (_ctx, _cache) => {
|
|
|
6904
6875
|
}
|
|
6905
6876
|
]
|
|
6906
6877
|
}, {
|
|
6907
|
-
default: withCtx(() => [
|
|
6908
|
-
|
|
6878
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
6879
|
+
createElementVNode("i", { class: "bi-key" }, null, -1 /* HOISTED */),
|
|
6909
6880
|
createTextVNode(" Change Password")
|
|
6910
|
-
]),
|
|
6881
|
+
])),
|
|
6911
6882
|
_: 1 /* STABLE */
|
|
6912
6883
|
}))
|
|
6913
6884
|
: createCommentVNode("v-if", true)
|
|
@@ -6917,7 +6888,7 @@ return (_ctx, _cache) => {
|
|
|
6917
6888
|
})
|
|
6918
6889
|
]))
|
|
6919
6890
|
: createCommentVNode("v-if", true),
|
|
6920
|
-
createElementVNode("div",
|
|
6891
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
6921
6892
|
createVNode(script$4, null, {
|
|
6922
6893
|
default: withCtx(() => [
|
|
6923
6894
|
createVNode(script$n, {
|
|
@@ -6931,19 +6902,19 @@ return (_ctx, _cache) => {
|
|
|
6931
6902
|
type: 'file',
|
|
6932
6903
|
}]
|
|
6933
6904
|
}, {
|
|
6934
|
-
default: withCtx(() => [
|
|
6935
|
-
|
|
6936
|
-
]),
|
|
6905
|
+
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
6906
|
+
createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */)
|
|
6907
|
+
])),
|
|
6937
6908
|
_: 1 /* STABLE */
|
|
6938
6909
|
}),
|
|
6939
6910
|
createElementVNode("div", null, [
|
|
6940
|
-
|
|
6911
|
+
_cache[7] || (_cache[7] = createElementVNode("h5", { class: "card-title" }, "Profile Picture", -1 /* HOISTED */)),
|
|
6941
6912
|
createElementVNode("img", {
|
|
6942
6913
|
src: showProfilePicture(unref(user)?.profile_picture),
|
|
6943
6914
|
class: "img-fluid",
|
|
6944
6915
|
alt: "profie-picture",
|
|
6945
6916
|
style: {"width":"100%","height":"330px"}
|
|
6946
|
-
}, null, 8 /* PROPS */,
|
|
6917
|
+
}, null, 8 /* PROPS */, _hoisted_7$1)
|
|
6947
6918
|
])
|
|
6948
6919
|
]),
|
|
6949
6920
|
_: 1 /* STABLE */
|
|
@@ -6961,10 +6932,8 @@ return (_ctx, _cache) => {
|
|
|
6961
6932
|
|
|
6962
6933
|
script$3.__file = "src/lib/components/core/auth/ShUserProfile.vue";
|
|
6963
6934
|
|
|
6964
|
-
const _hoisted_1$2 =
|
|
6965
|
-
const _hoisted_2$2 = { class: "card
|
|
6966
|
-
const _hoisted_3$2 = { class: "card-body" };
|
|
6967
|
-
const _hoisted_4$2 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
6935
|
+
const _hoisted_1$2 = { class: "card sh-departments-card shadow" };
|
|
6936
|
+
const _hoisted_2$2 = { class: "card-body" };
|
|
6968
6937
|
|
|
6969
6938
|
|
|
6970
6939
|
var script$2 = {
|
|
@@ -6989,19 +6958,19 @@ department.value = dept;
|
|
|
6989
6958
|
|
|
6990
6959
|
return (_ctx, _cache) => {
|
|
6991
6960
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
6992
|
-
|
|
6993
|
-
createElementVNode("div",
|
|
6994
|
-
createElementVNode("div",
|
|
6961
|
+
_cache[2] || (_cache[2] = createElementVNode("h5", null, "Departments", -1 /* HOISTED */)),
|
|
6962
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
6963
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
6995
6964
|
createElementVNode("a", {
|
|
6996
6965
|
onClick: _cache[0] || (_cache[0] = $event => (editDepartment(null))),
|
|
6997
6966
|
"data-bs-toggle": "modal",
|
|
6998
6967
|
ref: "addDeptBtn",
|
|
6999
6968
|
href: "#sh_department_modal",
|
|
7000
6969
|
class: "btn btn-info btn-sm"
|
|
7001
|
-
}, [
|
|
7002
|
-
|
|
6970
|
+
}, _cache[1] || (_cache[1] = [
|
|
6971
|
+
createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */),
|
|
7003
6972
|
createTextVNode(" ADD DEPARTMENT")
|
|
7004
|
-
], 512 /* NEED_PATCH */),
|
|
6973
|
+
]), 512 /* NEED_PATCH */),
|
|
7005
6974
|
createVNode(script$d, {
|
|
7006
6975
|
reload: unref(reload),
|
|
7007
6976
|
headers: ['id','name','description', 'created_at'],
|
|
@@ -7052,17 +7021,8 @@ const _hoisted_1$1 = {
|
|
|
7052
7021
|
class: "card sh-department-view shadow"
|
|
7053
7022
|
};
|
|
7054
7023
|
const _hoisted_2$1 = { class: "card-body" };
|
|
7055
|
-
const _hoisted_3$1 =
|
|
7056
|
-
|
|
7057
|
-
class: "btn btn-info btn-sm",
|
|
7058
|
-
"data-bs-toggle": "modal"
|
|
7059
|
-
}, [
|
|
7060
|
-
/*#__PURE__*/createElementVNode("i", { class: "bi-plus" }),
|
|
7061
|
-
/*#__PURE__*/createTextVNode(" ADD Module")
|
|
7062
|
-
], -1 /* HOISTED */);
|
|
7063
|
-
const _hoisted_4$1 = { class: "text-primary text-capitalize" };
|
|
7064
|
-
const _hoisted_5$1 = ["value"];
|
|
7065
|
-
const _hoisted_6$1 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */);
|
|
7024
|
+
const _hoisted_3$1 = { class: "text-primary text-capitalize" };
|
|
7025
|
+
const _hoisted_4$1 = ["value"];
|
|
7066
7026
|
|
|
7067
7027
|
var script$1 = {
|
|
7068
7028
|
__name: 'Department',
|
|
@@ -7160,7 +7120,14 @@ return (_ctx, _cache) => {
|
|
|
7160
7120
|
return (unref(department))
|
|
7161
7121
|
? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
7162
7122
|
createElementVNode("div", _hoisted_2$1, [
|
|
7163
|
-
|
|
7123
|
+
_cache[2] || (_cache[2] = createElementVNode("a", {
|
|
7124
|
+
href: "#addModule",
|
|
7125
|
+
class: "btn btn-info btn-sm",
|
|
7126
|
+
"data-bs-toggle": "modal"
|
|
7127
|
+
}, [
|
|
7128
|
+
createElementVNode("i", { class: "bi-plus" }),
|
|
7129
|
+
createTextVNode(" ADD Module")
|
|
7130
|
+
], -1 /* HOISTED */)),
|
|
7164
7131
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
7165
7132
|
createVNode(script$d, {
|
|
7166
7133
|
actions: {
|
|
@@ -7217,7 +7184,7 @@ return (_ctx, _cache) => {
|
|
|
7217
7184
|
default: withCtx(() => [
|
|
7218
7185
|
(unref(getModule))
|
|
7219
7186
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7220
|
-
createElementVNode("h5",
|
|
7187
|
+
createElementVNode("h5", _hoisted_3$1, "Permissions for " + toDisplayString(unref(getModule).module), 1 /* TEXT */),
|
|
7221
7188
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(modulePermissions), (permission) => {
|
|
7222
7189
|
return (openBlock(), createElementBlock("div", {
|
|
7223
7190
|
key: permission,
|
|
@@ -7230,7 +7197,7 @@ return (_ctx, _cache) => {
|
|
|
7230
7197
|
type: "checkbox",
|
|
7231
7198
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(selectedPermissions) ? (selectedPermissions).value = $event : selectedPermissions = $event)),
|
|
7232
7199
|
value: permission
|
|
7233
|
-
}, null, 8 /* PROPS */,
|
|
7200
|
+
}, null, 8 /* PROPS */, _hoisted_4$1), [
|
|
7234
7201
|
[vModelCheckbox, unref(selectedPermissions)]
|
|
7235
7202
|
]),
|
|
7236
7203
|
createTextVNode(" " + toDisplayString(getPermissionLabel(permission)), 1 /* TEXT */)
|
|
@@ -7240,10 +7207,10 @@ return (_ctx, _cache) => {
|
|
|
7240
7207
|
createElementVNode("button", {
|
|
7241
7208
|
onClick: submitPermissions,
|
|
7242
7209
|
class: "btn btn-info"
|
|
7243
|
-
}, [
|
|
7244
|
-
|
|
7210
|
+
}, _cache[1] || (_cache[1] = [
|
|
7211
|
+
createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */),
|
|
7245
7212
|
createTextVNode(" Submit")
|
|
7246
|
-
])
|
|
7213
|
+
]))
|
|
7247
7214
|
], 64 /* STABLE_FRAGMENT */))
|
|
7248
7215
|
: createCommentVNode("v-if", true)
|
|
7249
7216
|
]),
|
|
@@ -7259,7 +7226,6 @@ return (_ctx, _cache) => {
|
|
|
7259
7226
|
|
|
7260
7227
|
script$1.__file = "src/lib/components/core/Departments/department/Department.vue";
|
|
7261
7228
|
|
|
7262
|
-
const _withScopeId = n => (pushScopeId("data-v-2911509a"),n=n(),popScopeId(),n);
|
|
7263
7229
|
const _hoisted_1 = {
|
|
7264
7230
|
key: 0,
|
|
7265
7231
|
class: "alert alert-info"
|
|
@@ -7270,30 +7236,28 @@ const _hoisted_2 = {
|
|
|
7270
7236
|
style: {"min-width":"400px"}
|
|
7271
7237
|
};
|
|
7272
7238
|
const _hoisted_3 = { class: "sh-auth-footer" };
|
|
7273
|
-
const _hoisted_4 =
|
|
7274
|
-
const _hoisted_5 = {
|
|
7239
|
+
const _hoisted_4 = {
|
|
7275
7240
|
key: 1,
|
|
7276
7241
|
class: "sh-login-section"
|
|
7277
7242
|
};
|
|
7278
|
-
const
|
|
7243
|
+
const _hoisted_5 = {
|
|
7279
7244
|
key: 0,
|
|
7280
7245
|
class: "sh-login-title"
|
|
7281
7246
|
};
|
|
7282
|
-
const
|
|
7283
|
-
const
|
|
7284
|
-
const _hoisted_9 = {
|
|
7247
|
+
const _hoisted_6 = { class: "sh-auth-footer" };
|
|
7248
|
+
const _hoisted_7 = {
|
|
7285
7249
|
key: 2,
|
|
7286
7250
|
class: "sh-register-section"
|
|
7287
7251
|
};
|
|
7288
|
-
const
|
|
7252
|
+
const _hoisted_8 = {
|
|
7289
7253
|
key: 0,
|
|
7290
7254
|
class: "sh-register-title"
|
|
7291
7255
|
};
|
|
7292
|
-
const
|
|
7256
|
+
const _hoisted_9 = {
|
|
7293
7257
|
key: 1,
|
|
7294
7258
|
class: "sh-register-link"
|
|
7295
7259
|
};
|
|
7296
|
-
const
|
|
7260
|
+
const _hoisted_10 = { class: "sh-auth-footer" };
|
|
7297
7261
|
|
|
7298
7262
|
var script = {
|
|
7299
7263
|
__name: 'ShAuth',
|
|
@@ -7339,7 +7303,7 @@ const forgotSuccessful = ()=>{
|
|
|
7339
7303
|
return (_ctx, _cache) => {
|
|
7340
7304
|
return (unref(user))
|
|
7341
7305
|
? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7342
|
-
createTextVNode("You are signed is as "),
|
|
7306
|
+
_cache[4] || (_cache[4] = createTextVNode("You are signed is as ")),
|
|
7343
7307
|
createElementVNode("strong", null, toDisplayString(unref(user).name), 1 /* TEXT */)
|
|
7344
7308
|
]))
|
|
7345
7309
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -7356,17 +7320,17 @@ return (_ctx, _cache) => {
|
|
|
7356
7320
|
createElementVNode("strong", {
|
|
7357
7321
|
onClick: _cache[0] || (_cache[0] = $event => (goToSection('login'))),
|
|
7358
7322
|
class: "sh-register-link text-primary"
|
|
7359
|
-
}, [
|
|
7360
|
-
|
|
7323
|
+
}, _cache[5] || (_cache[5] = [
|
|
7324
|
+
createElementVNode("i", { class: "bi bi-arrow-left" }, null, -1 /* HOISTED */),
|
|
7361
7325
|
createTextVNode(" Back to Login ")
|
|
7362
|
-
])
|
|
7326
|
+
]))
|
|
7363
7327
|
])
|
|
7364
7328
|
]))
|
|
7365
7329
|
: createCommentVNode("v-if", true),
|
|
7366
7330
|
(section.value === 'login')
|
|
7367
|
-
? (openBlock(), createElementBlock("div",
|
|
7331
|
+
? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
7368
7332
|
(unref(loginTitle))
|
|
7369
|
-
? (openBlock(), createElementBlock("h3",
|
|
7333
|
+
? (openBlock(), createElementBlock("h3", _hoisted_5, toDisplayString(unref(loginTitle)), 1 /* TEXT */))
|
|
7370
7334
|
: createCommentVNode("v-if", true),
|
|
7371
7335
|
createVNode(script$y, {
|
|
7372
7336
|
class: "sh-login-form",
|
|
@@ -7375,12 +7339,12 @@ return (_ctx, _cache) => {
|
|
|
7375
7339
|
action: unref(loginEndpoint),
|
|
7376
7340
|
"success-callback": loginSuccessful
|
|
7377
7341
|
}, null, 8 /* PROPS */, ["action"]),
|
|
7378
|
-
createElementVNode("div",
|
|
7342
|
+
createElementVNode("div", _hoisted_6, [
|
|
7379
7343
|
createElementVNode("strong", {
|
|
7380
7344
|
class: "sh-forgot-link text-primary",
|
|
7381
7345
|
onClick: _cache[1] || (_cache[1] = $event => (goToSection('forgot')))
|
|
7382
7346
|
}, "Forgotten password?"),
|
|
7383
|
-
|
|
7347
|
+
_cache[6] || (_cache[6] = createElementVNode("strong", { class: "bi-dot" }, null, -1 /* HOISTED */)),
|
|
7384
7348
|
createElementVNode("strong", {
|
|
7385
7349
|
onClick: _cache[2] || (_cache[2] = $event => (goToSection('register'))),
|
|
7386
7350
|
class: "sh-register-link text-primary"
|
|
@@ -7389,12 +7353,12 @@ return (_ctx, _cache) => {
|
|
|
7389
7353
|
]))
|
|
7390
7354
|
: createCommentVNode("v-if", true),
|
|
7391
7355
|
(section.value === 'register')
|
|
7392
|
-
? (openBlock(), createElementBlock("div",
|
|
7356
|
+
? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
7393
7357
|
(unref(registerTitle))
|
|
7394
|
-
? (openBlock(), createElementBlock("h3",
|
|
7358
|
+
? (openBlock(), createElementBlock("h3", _hoisted_8, toDisplayString(unref(registerTitle)), 1 /* TEXT */))
|
|
7395
7359
|
: createCommentVNode("v-if", true),
|
|
7396
7360
|
(unref(registerSubTitle))
|
|
7397
|
-
? (openBlock(), createElementBlock("span",
|
|
7361
|
+
? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
7398
7362
|
: createCommentVNode("v-if", true),
|
|
7399
7363
|
createVNode(script$y, {
|
|
7400
7364
|
class: "sh-login-form",
|
|
@@ -7403,7 +7367,7 @@ return (_ctx, _cache) => {
|
|
|
7403
7367
|
action: unref(registerEndpoint),
|
|
7404
7368
|
"success-callback": loginSuccessful
|
|
7405
7369
|
}, null, 8 /* PROPS */, ["fields", "action"]),
|
|
7406
|
-
createElementVNode("div",
|
|
7370
|
+
createElementVNode("div", _hoisted_10, [
|
|
7407
7371
|
createElementVNode("strong", {
|
|
7408
7372
|
onClick: _cache[3] || (_cache[3] = $event => (goToSection('login'))),
|
|
7409
7373
|
class: "sh-register-link text-primary"
|