@iankibetsh/shframework 1.9.9 → 2.0.0
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 +294 -320
- package/dist/library.mjs +278 -287
- package/package.json +1 -1
package/dist/library.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import Axios from 'axios';
|
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import Swal from 'sweetalert2';
|
|
4
4
|
import NProgress from 'nprogress';
|
|
5
|
-
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, unref, normalizeClass, resolveComponent, createBlock, resolveDynamicComponent, watch, inject, mergeProps, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps, withCtx, createStaticVNode, shallowRef, vModelCheckbox, pushScopeId, popScopeId, markRaw,
|
|
5
|
+
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, unref, normalizeClass, resolveComponent, createBlock, resolveDynamicComponent, watch, inject, mergeProps, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps, withCtx, createStaticVNode, shallowRef, vModelCheckbox, pushScopeId, popScopeId, markRaw, computed, isRef } from 'vue';
|
|
6
6
|
import _ from 'lodash';
|
|
7
7
|
import { useRoute, useRouter } from 'vue-router';
|
|
8
8
|
import { defineStore, storeToRefs } from 'pinia';
|
|
@@ -1880,7 +1880,7 @@ const countries = [
|
|
|
1880
1880
|
}
|
|
1881
1881
|
];
|
|
1882
1882
|
|
|
1883
|
-
var script$
|
|
1883
|
+
var script$t = {
|
|
1884
1884
|
name: 'PhoneInput',
|
|
1885
1885
|
props: ['modelValue', 'country_code'],
|
|
1886
1886
|
data () {
|
|
@@ -1950,19 +1950,19 @@ var script$v = {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
};
|
|
1952
1952
|
|
|
1953
|
-
const _hoisted_1$
|
|
1954
|
-
const _hoisted_2$
|
|
1953
|
+
const _hoisted_1$n = { class: "sh-phone mb-3" };
|
|
1954
|
+
const _hoisted_2$e = {
|
|
1955
1955
|
key: 0,
|
|
1956
1956
|
style: {"display":"contents"}
|
|
1957
1957
|
};
|
|
1958
|
-
const _hoisted_3$
|
|
1959
|
-
const _hoisted_4$
|
|
1958
|
+
const _hoisted_3$d = ["src"];
|
|
1959
|
+
const _hoisted_4$d = ["value"];
|
|
1960
1960
|
|
|
1961
|
-
function render$
|
|
1962
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1961
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1962
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
1963
1963
|
($data.selectedCountry)
|
|
1964
|
-
? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1965
|
-
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$
|
|
1964
|
+
? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
1965
|
+
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
|
|
1966
1966
|
createTextVNode(" " + toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
|
|
1967
1967
|
]))
|
|
1968
1968
|
: createCommentVNode("v-if", true),
|
|
@@ -1975,7 +1975,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1975
1975
|
return (openBlock(), createElementBlock("option", {
|
|
1976
1976
|
value: country,
|
|
1977
1977
|
key: country.dialCode
|
|
1978
|
-
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1978
|
+
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
1979
1979
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1980
1980
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1981
1981
|
[vModelSelect, $data.selectedCountry]
|
|
@@ -1993,17 +1993,17 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1993
1993
|
]))
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
|
-
script$
|
|
1997
|
-
script$
|
|
1996
|
+
script$t.render = render$3;
|
|
1997
|
+
script$t.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
1998
1998
|
|
|
1999
|
-
const _hoisted_1$
|
|
1999
|
+
const _hoisted_1$m = {
|
|
2000
2000
|
key: 0,
|
|
2001
2001
|
class: "dropdown sh-suggest"
|
|
2002
2002
|
};
|
|
2003
|
-
const _hoisted_2$
|
|
2004
|
-
const _hoisted_3$
|
|
2005
|
-
const _hoisted_4$
|
|
2006
|
-
const _hoisted_5$
|
|
2003
|
+
const _hoisted_2$d = ["id"];
|
|
2004
|
+
const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
2005
|
+
const _hoisted_4$c = ["onClick"];
|
|
2006
|
+
const _hoisted_5$9 = ["id"];
|
|
2007
2007
|
const _hoisted_6$8 = ["id", "aria-labelledby"];
|
|
2008
2008
|
const _hoisted_7$7 = { key: 0 };
|
|
2009
2009
|
const _hoisted_8$6 = ["onClick"];
|
|
@@ -2017,7 +2017,7 @@ const _hoisted_10$5 = {
|
|
|
2017
2017
|
};
|
|
2018
2018
|
|
|
2019
2019
|
|
|
2020
|
-
var script$
|
|
2020
|
+
var script$s = {
|
|
2021
2021
|
__name: 'ShSuggest',
|
|
2022
2022
|
props: ['fillSelects','modelValue'],
|
|
2023
2023
|
emits: ['update:modelValue'],
|
|
@@ -2098,7 +2098,7 @@ function filterData(e){
|
|
|
2098
2098
|
|
|
2099
2099
|
return (_ctx, _cache) => {
|
|
2100
2100
|
return (unref(id))
|
|
2101
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2101
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
2102
2102
|
createElementVNode("div", {
|
|
2103
2103
|
id: unref(id),
|
|
2104
2104
|
"data-bs-toggle": "dropdown",
|
|
@@ -2107,14 +2107,14 @@ return (_ctx, _cache) => {
|
|
|
2107
2107
|
}, [
|
|
2108
2108
|
createElementVNode("div", null, [
|
|
2109
2109
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectedSuggestions), (sgt) => {
|
|
2110
|
-
return (openBlock(), createElementBlock("h5", _hoisted_3$
|
|
2110
|
+
return (openBlock(), createElementBlock("h5", _hoisted_3$c, [
|
|
2111
2111
|
createTextVNode(toDisplayString(sgt.name) + " ", 1 /* TEXT */),
|
|
2112
2112
|
createElementVNode("button", {
|
|
2113
2113
|
onClick: $event => (removeSuggestion(sgt.id)),
|
|
2114
2114
|
type: "button",
|
|
2115
2115
|
class: "btn-close border-start border-1 ms-1",
|
|
2116
2116
|
"aria-label": "Close"
|
|
2117
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
2117
|
+
}, null, 8 /* PROPS */, _hoisted_4$c)
|
|
2118
2118
|
]))
|
|
2119
2119
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2120
2120
|
]),
|
|
@@ -2124,8 +2124,8 @@ return (_ctx, _cache) => {
|
|
|
2124
2124
|
onClick: filterData,
|
|
2125
2125
|
onInput: filterData,
|
|
2126
2126
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2127
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$
|
|
2128
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
2127
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$9)
|
|
2128
|
+
], 8 /* PROPS */, _hoisted_2$d),
|
|
2129
2129
|
createElementVNode("ul", {
|
|
2130
2130
|
class: "dropdown-menu w-100",
|
|
2131
2131
|
id: 'dropwdown_section' + unref(id),
|
|
@@ -2158,15 +2158,15 @@ return (_ctx, _cache) => {
|
|
|
2158
2158
|
|
|
2159
2159
|
};
|
|
2160
2160
|
|
|
2161
|
-
script$
|
|
2162
|
-
script$
|
|
2161
|
+
script$s.__scopeId = "data-v-71cc9569";
|
|
2162
|
+
script$s.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2163
2163
|
|
|
2164
|
-
var script$
|
|
2164
|
+
var script$r = {
|
|
2165
2165
|
name: 'ShForm',
|
|
2166
2166
|
components: {
|
|
2167
|
-
PhoneInput: script$
|
|
2168
|
-
ShSuggest: script$
|
|
2169
|
-
ShPhone: script$
|
|
2167
|
+
PhoneInput: script$t,
|
|
2168
|
+
ShSuggest: script$s,
|
|
2169
|
+
ShPhone: script$t
|
|
2170
2170
|
},
|
|
2171
2171
|
props: [
|
|
2172
2172
|
'action',
|
|
@@ -2488,18 +2488,18 @@ var script$t = {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
};
|
|
2490
2490
|
|
|
2491
|
-
const _hoisted_1$
|
|
2492
|
-
const _hoisted_2$
|
|
2491
|
+
const _hoisted_1$l = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2492
|
+
const _hoisted_2$c = {
|
|
2493
2493
|
ref: "ShAutoForm",
|
|
2494
2494
|
class: "sh-form"
|
|
2495
2495
|
};
|
|
2496
|
-
const _hoisted_3$
|
|
2496
|
+
const _hoisted_3$b = {
|
|
2497
2497
|
key: 0,
|
|
2498
2498
|
class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
|
|
2499
2499
|
role: "alert"
|
|
2500
2500
|
};
|
|
2501
|
-
const _hoisted_4$
|
|
2502
|
-
const _hoisted_5$
|
|
2501
|
+
const _hoisted_4$b = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2502
|
+
const _hoisted_5$8 = { key: 0 };
|
|
2503
2503
|
const _hoisted_6$7 = { key: 1 };
|
|
2504
2504
|
const _hoisted_7$6 = { class: "row" };
|
|
2505
2505
|
const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
@@ -2544,20 +2544,20 @@ const _hoisted_24$1 = /*#__PURE__*/createElementVNode("span", {
|
|
|
2544
2544
|
"aria-hidden": "true"
|
|
2545
2545
|
}, null, -1 /* HOISTED */);
|
|
2546
2546
|
|
|
2547
|
-
function render$
|
|
2547
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2548
2548
|
const _component_phone_input = resolveComponent("phone-input");
|
|
2549
2549
|
const _component_ShSuggest = resolveComponent("ShSuggest");
|
|
2550
2550
|
|
|
2551
2551
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2552
|
-
_hoisted_1$
|
|
2553
|
-
createElementVNode("form", _hoisted_2$
|
|
2552
|
+
_hoisted_1$l,
|
|
2553
|
+
createElementVNode("form", _hoisted_2$c, [
|
|
2554
2554
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2555
2555
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2556
2556
|
(_ctx.form_status == 3)
|
|
2557
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2558
|
-
_hoisted_4$
|
|
2557
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
2558
|
+
_hoisted_4$b,
|
|
2559
2559
|
(_ctx.errorText)
|
|
2560
|
-
? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2560
|
+
? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2561
2561
|
: (openBlock(), createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
|
|
2562
2562
|
createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2563
2563
|
]))
|
|
@@ -2755,10 +2755,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2755
2755
|
], 64 /* STABLE_FRAGMENT */))
|
|
2756
2756
|
}
|
|
2757
2757
|
|
|
2758
|
-
script$
|
|
2759
|
-
script$
|
|
2758
|
+
script$r.render = render$2;
|
|
2759
|
+
script$r.__file = "src/lib/components/ShForm.vue";
|
|
2760
2760
|
|
|
2761
|
-
var script$
|
|
2761
|
+
var script$q = {
|
|
2762
2762
|
__name: 'EmailInput',
|
|
2763
2763
|
props: ['modelValue','label'],
|
|
2764
2764
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2798,12 +2798,12 @@ return (_ctx, _cache) => {
|
|
|
2798
2798
|
|
|
2799
2799
|
};
|
|
2800
2800
|
|
|
2801
|
-
script$
|
|
2801
|
+
script$q.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2802
2802
|
|
|
2803
|
-
const _hoisted_1$
|
|
2803
|
+
const _hoisted_1$k = ["min", "max"];
|
|
2804
2804
|
|
|
2805
2805
|
|
|
2806
|
-
var script$
|
|
2806
|
+
var script$p = {
|
|
2807
2807
|
__name: 'NumberInput',
|
|
2808
2808
|
props: ['modelValue','label','min','max'],
|
|
2809
2809
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2837,7 +2837,7 @@ return (_ctx, _cache) => {
|
|
|
2837
2837
|
onChange: modelValueUpdated,
|
|
2838
2838
|
onKeydown: modelValueUpdated,
|
|
2839
2839
|
onUpdated: modelValueUpdated
|
|
2840
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$
|
|
2840
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$k)), [
|
|
2841
2841
|
[vModelText, inputModel.value]
|
|
2842
2842
|
])
|
|
2843
2843
|
}
|
|
@@ -2845,9 +2845,9 @@ return (_ctx, _cache) => {
|
|
|
2845
2845
|
|
|
2846
2846
|
};
|
|
2847
2847
|
|
|
2848
|
-
script$
|
|
2848
|
+
script$p.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2849
2849
|
|
|
2850
|
-
var script$
|
|
2850
|
+
var script$o = {
|
|
2851
2851
|
__name: 'TextInput',
|
|
2852
2852
|
props: ['modelValue','label','isInvalid'],
|
|
2853
2853
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2889,9 +2889,9 @@ return (_ctx, _cache) => {
|
|
|
2889
2889
|
|
|
2890
2890
|
};
|
|
2891
2891
|
|
|
2892
|
-
script$
|
|
2892
|
+
script$o.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2893
2893
|
|
|
2894
|
-
var script$
|
|
2894
|
+
var script$n = {
|
|
2895
2895
|
__name: 'TextAreaInput',
|
|
2896
2896
|
props: ['modelValue','label'],
|
|
2897
2897
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2931,12 +2931,12 @@ return (_ctx, _cache) => {
|
|
|
2931
2931
|
|
|
2932
2932
|
};
|
|
2933
2933
|
|
|
2934
|
-
script$
|
|
2934
|
+
script$n.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2935
2935
|
|
|
2936
|
-
const _hoisted_1$
|
|
2936
|
+
const _hoisted_1$j = ["value"];
|
|
2937
2937
|
|
|
2938
2938
|
|
|
2939
|
-
var script$
|
|
2939
|
+
var script$m = {
|
|
2940
2940
|
__name: 'SelectInput',
|
|
2941
2941
|
props: ['modelValue','label','data','dataUrl'],
|
|
2942
2942
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2991,7 +2991,7 @@ return (_ctx, _cache) => {
|
|
|
2991
2991
|
return (openBlock(), createElementBlock("option", {
|
|
2992
2992
|
key: option.id,
|
|
2993
2993
|
value: option.id
|
|
2994
|
-
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
2994
|
+
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$j))
|
|
2995
2995
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2996
2996
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
2997
2997
|
[vModelSelect, inputModel.value]
|
|
@@ -3001,9 +3001,9 @@ return (_ctx, _cache) => {
|
|
|
3001
3001
|
|
|
3002
3002
|
};
|
|
3003
3003
|
|
|
3004
|
-
script$
|
|
3004
|
+
script$m.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3005
3005
|
|
|
3006
|
-
var script$
|
|
3006
|
+
var script$l = {
|
|
3007
3007
|
__name: 'PasswordInput',
|
|
3008
3008
|
props: ['modelValue','label'],
|
|
3009
3009
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3039,13 +3039,13 @@ return (_ctx, _cache) => {
|
|
|
3039
3039
|
|
|
3040
3040
|
};
|
|
3041
3041
|
|
|
3042
|
-
script$
|
|
3042
|
+
script$l.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3043
3043
|
|
|
3044
|
-
const _hoisted_1$
|
|
3045
|
-
const _hoisted_2$
|
|
3046
|
-
const _hoisted_3$
|
|
3047
|
-
const _hoisted_4$
|
|
3048
|
-
const _hoisted_5$
|
|
3044
|
+
const _hoisted_1$i = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3045
|
+
const _hoisted_2$b = ["onUpdate:modelValue"];
|
|
3046
|
+
const _hoisted_3$a = ["innerHTML"];
|
|
3047
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
3048
|
+
const _hoisted_5$7 = ["innerHTML"];
|
|
3049
3049
|
const _hoisted_6$6 = ["disabled"];
|
|
3050
3050
|
const _hoisted_7$5 = {
|
|
3051
3051
|
key: 0,
|
|
@@ -3056,7 +3056,7 @@ const _hoisted_7$5 = {
|
|
|
3056
3056
|
const _hoisted_8$4 = { key: 1 };
|
|
3057
3057
|
|
|
3058
3058
|
|
|
3059
|
-
var script$
|
|
3059
|
+
var script$k = {
|
|
3060
3060
|
__name: 'ShAutoForm',
|
|
3061
3061
|
props: [
|
|
3062
3062
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3089,13 +3089,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3089
3089
|
const defaultPhones = ['phone'];
|
|
3090
3090
|
const defaultEmails = ['email'];
|
|
3091
3091
|
const formComponents = inject('formComponents');
|
|
3092
|
-
const TextComponent = formComponents.text ?? script$
|
|
3093
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3094
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3095
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3096
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3097
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3098
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3092
|
+
const TextComponent = formComponents.text ?? script$o;
|
|
3093
|
+
const TextAreaComponent = formComponents.textArea ?? script$n;
|
|
3094
|
+
const EmailComponent = formComponents.email ?? script$q;
|
|
3095
|
+
const PhoneComponent = formComponents.phone ?? script$t;
|
|
3096
|
+
const NumberComponent = formComponents.number ?? script$p;
|
|
3097
|
+
const SelectComponent = formComponents.select ?? script$m;
|
|
3098
|
+
const PasswordComponent = formComponents.password ?? script$l;
|
|
3099
3099
|
if(props.customComponents && props.customComponents[field]) {
|
|
3100
3100
|
return props.customComponents[field]
|
|
3101
3101
|
}
|
|
@@ -3107,16 +3107,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3107
3107
|
}
|
|
3108
3108
|
else
|
|
3109
3109
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3110
|
-
return formComponents.textArea ?? script$
|
|
3110
|
+
return formComponents.textArea ?? script$n
|
|
3111
3111
|
} else
|
|
3112
3112
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3113
|
-
return formComponents.email ?? script$
|
|
3113
|
+
return formComponents.email ?? script$q
|
|
3114
3114
|
} else
|
|
3115
3115
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3116
|
-
return formComponents.phone ?? script$
|
|
3116
|
+
return formComponents.phone ?? script$t
|
|
3117
3117
|
} else
|
|
3118
3118
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3119
|
-
return formComponents.number ?? script$
|
|
3119
|
+
return formComponents.number ?? script$p
|
|
3120
3120
|
}
|
|
3121
3121
|
// else
|
|
3122
3122
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3125,7 +3125,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3125
3125
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3126
3126
|
// return formComponents.date ?? DateInput
|
|
3127
3127
|
// }
|
|
3128
|
-
return formComponents.text ?? script$
|
|
3128
|
+
return formComponents.text ?? script$o
|
|
3129
3129
|
};
|
|
3130
3130
|
const shFormElementClasses = ref(null);
|
|
3131
3131
|
shFormElementClasses.value = inject('shFormElementClasses');
|
|
@@ -3263,7 +3263,7 @@ onMounted((ev)=>{
|
|
|
3263
3263
|
|
|
3264
3264
|
return (_ctx, _cache) => {
|
|
3265
3265
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3266
|
-
_hoisted_1$
|
|
3266
|
+
_hoisted_1$i,
|
|
3267
3267
|
createElementVNode("form", {
|
|
3268
3268
|
class: normalizeClass([__props.formClass, "sh-form"]),
|
|
3269
3269
|
ref_key: "shAutoForm",
|
|
@@ -3280,7 +3280,7 @@ return (_ctx, _cache) => {
|
|
|
3280
3280
|
key: 0,
|
|
3281
3281
|
type: "hidden",
|
|
3282
3282
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3283
|
-
}, null, 8 /* PROPS */, _hoisted_2$
|
|
3283
|
+
}, null, 8 /* PROPS */, _hoisted_2$b)), [
|
|
3284
3284
|
[vModelText, formFields.value[index].value]
|
|
3285
3285
|
])
|
|
3286
3286
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -3289,7 +3289,7 @@ return (_ctx, _cache) => {
|
|
|
3289
3289
|
key: 0,
|
|
3290
3290
|
class: normalizeClass(getElementClass('formLabel')),
|
|
3291
3291
|
innerHTML: field.label
|
|
3292
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_3$
|
|
3292
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
|
|
3293
3293
|
: createCommentVNode("v-if", true),
|
|
3294
3294
|
(openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(getComponentProps(field), {
|
|
3295
3295
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
@@ -3303,14 +3303,14 @@ return (_ctx, _cache) => {
|
|
|
3303
3303
|
key: 1,
|
|
3304
3304
|
class: normalizeClass(getElementClass('formLabel')),
|
|
3305
3305
|
innerHTML: field.label
|
|
3306
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3306
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3307
3307
|
: createCommentVNode("v-if", true),
|
|
3308
3308
|
(field.helper)
|
|
3309
3309
|
? (openBlock(), createElementBlock("div", {
|
|
3310
3310
|
key: 2,
|
|
3311
3311
|
class: normalizeClass(getElementClass('helperText')),
|
|
3312
3312
|
innerHTML: field.helper
|
|
3313
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_5$
|
|
3313
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_5$7))
|
|
3314
3314
|
: createCommentVNode("v-if", true),
|
|
3315
3315
|
(validationErrors.value[field.field])
|
|
3316
3316
|
? (openBlock(), createElementBlock("div", {
|
|
@@ -3346,12 +3346,12 @@ return (_ctx, _cache) => {
|
|
|
3346
3346
|
|
|
3347
3347
|
};
|
|
3348
3348
|
|
|
3349
|
-
script$
|
|
3349
|
+
script$k.__file = "src/lib/components/ShAutoForm.vue";
|
|
3350
3350
|
|
|
3351
|
-
const _hoisted_1$
|
|
3352
|
-
const _hoisted_2$
|
|
3351
|
+
const _hoisted_1$h = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3352
|
+
const _hoisted_2$a = { class: "dropdown" };
|
|
3353
3353
|
|
|
3354
|
-
var script$
|
|
3354
|
+
var script$j = {
|
|
3355
3355
|
__name: 'ShDropDownForm',
|
|
3356
3356
|
props: ['action',
|
|
3357
3357
|
'classes',
|
|
@@ -3381,8 +3381,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3381
3381
|
|
|
3382
3382
|
return (_ctx, _cache) => {
|
|
3383
3383
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3384
|
-
_hoisted_1$
|
|
3385
|
-
createElementVNode("div", _hoisted_2$
|
|
3384
|
+
_hoisted_1$h,
|
|
3385
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
3386
3386
|
createElementVNode("a", {
|
|
3387
3387
|
class: normalizeClass(unref(btnClass)),
|
|
3388
3388
|
href: "#",
|
|
@@ -3398,7 +3398,7 @@ return (_ctx, _cache) => {
|
|
|
3398
3398
|
class: "dropdown-menu px-2 py-1",
|
|
3399
3399
|
"aria-labelledby": dropdownId
|
|
3400
3400
|
}, [
|
|
3401
|
-
createVNode(script$
|
|
3401
|
+
createVNode(script$r, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3402
3402
|
])
|
|
3403
3403
|
])
|
|
3404
3404
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3407,13 +3407,13 @@ return (_ctx, _cache) => {
|
|
|
3407
3407
|
|
|
3408
3408
|
};
|
|
3409
3409
|
|
|
3410
|
-
script$
|
|
3410
|
+
script$j.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3411
3411
|
|
|
3412
|
-
const _hoisted_1$
|
|
3413
|
-
const _hoisted_2$
|
|
3414
|
-
const _hoisted_3$
|
|
3415
|
-
const _hoisted_4$
|
|
3416
|
-
const _hoisted_5$
|
|
3412
|
+
const _hoisted_1$g = ["id"];
|
|
3413
|
+
const _hoisted_2$9 = { class: "modal-content" };
|
|
3414
|
+
const _hoisted_3$9 = { class: "modal-header" };
|
|
3415
|
+
const _hoisted_4$9 = { class: "modal-title" };
|
|
3416
|
+
const _hoisted_5$6 = /*#__PURE__*/createElementVNode("button", {
|
|
3417
3417
|
class: "btn btn-danger btn-sm",
|
|
3418
3418
|
"data-bs-dismiss": "modal",
|
|
3419
3419
|
"data-dismiss": "modal"
|
|
@@ -3421,7 +3421,7 @@ const _hoisted_5$7 = /*#__PURE__*/createElementVNode("button", {
|
|
|
3421
3421
|
const _hoisted_6$5 = { class: "modal-body" };
|
|
3422
3422
|
const _hoisted_7$4 = { class: "section" };
|
|
3423
3423
|
|
|
3424
|
-
var script$
|
|
3424
|
+
var script$i = {
|
|
3425
3425
|
__name: 'ShModal',
|
|
3426
3426
|
props: {
|
|
3427
3427
|
modalId: {
|
|
@@ -3458,10 +3458,10 @@ return (_ctx, _cache) => {
|
|
|
3458
3458
|
createElementVNode("div", {
|
|
3459
3459
|
class: normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
|
|
3460
3460
|
}, [
|
|
3461
|
-
createElementVNode("div", _hoisted_2$
|
|
3462
|
-
createElementVNode("div", _hoisted_3$
|
|
3463
|
-
createElementVNode("h3", _hoisted_4$
|
|
3464
|
-
_hoisted_5$
|
|
3461
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
3462
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
3463
|
+
createElementVNode("h3", _hoisted_4$9, toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3464
|
+
_hoisted_5$6
|
|
3465
3465
|
]),
|
|
3466
3466
|
createElementVNode("div", _hoisted_6$5, [
|
|
3467
3467
|
createElementVNode("div", _hoisted_7$4, [
|
|
@@ -3470,17 +3470,17 @@ return (_ctx, _cache) => {
|
|
|
3470
3470
|
])
|
|
3471
3471
|
])
|
|
3472
3472
|
], 2 /* CLASS */)
|
|
3473
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3473
|
+
], 8 /* PROPS */, _hoisted_1$g))
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
3476
|
|
|
3477
3477
|
};
|
|
3478
3478
|
|
|
3479
|
-
script$
|
|
3479
|
+
script$i.__file = "src/lib/components/ShModal.vue";
|
|
3480
3480
|
|
|
3481
|
-
const _hoisted_1$
|
|
3481
|
+
const _hoisted_1$f = ["href"];
|
|
3482
3482
|
|
|
3483
|
-
var script$
|
|
3483
|
+
var script$h = {
|
|
3484
3484
|
__name: 'ShModalForm',
|
|
3485
3485
|
props: ['action',
|
|
3486
3486
|
'classes',
|
|
@@ -3519,13 +3519,13 @@ return (_ctx, _cache) => {
|
|
|
3519
3519
|
"data-bs-toggle": "modal"
|
|
3520
3520
|
}, [
|
|
3521
3521
|
renderSlot(_ctx.$slots, "default")
|
|
3522
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3523
|
-
createVNode(script$
|
|
3522
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3523
|
+
createVNode(script$i, {
|
|
3524
3524
|
"modal-id": modalId,
|
|
3525
3525
|
"modal-title": __props.modalTitle
|
|
3526
3526
|
}, {
|
|
3527
3527
|
default: withCtx(() => [
|
|
3528
|
-
createVNode(script$
|
|
3528
|
+
createVNode(script$r, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3529
3529
|
]),
|
|
3530
3530
|
_: 1 /* STABLE */
|
|
3531
3531
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3535,11 +3535,11 @@ return (_ctx, _cache) => {
|
|
|
3535
3535
|
|
|
3536
3536
|
};
|
|
3537
3537
|
|
|
3538
|
-
script$
|
|
3538
|
+
script$h.__file = "src/lib/components/ShModalForm.vue";
|
|
3539
3539
|
|
|
3540
|
-
const _hoisted_1$
|
|
3540
|
+
const _hoisted_1$e = ["href"];
|
|
3541
3541
|
|
|
3542
|
-
var script$
|
|
3542
|
+
var script$g = {
|
|
3543
3543
|
__name: 'ShModalFormAuto',
|
|
3544
3544
|
props: ['action',
|
|
3545
3545
|
'classes',
|
|
@@ -3579,13 +3579,13 @@ return (_ctx, _cache) => {
|
|
|
3579
3579
|
"data-bs-toggle": "modal"
|
|
3580
3580
|
}, [
|
|
3581
3581
|
renderSlot(_ctx.$slots, "default")
|
|
3582
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3583
|
-
createVNode(script$
|
|
3582
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$e),
|
|
3583
|
+
createVNode(script$i, {
|
|
3584
3584
|
"modal-id": modalId,
|
|
3585
3585
|
"modal-title": __props.modalTitle
|
|
3586
3586
|
}, {
|
|
3587
3587
|
default: withCtx(() => [
|
|
3588
|
-
createVNode(script$
|
|
3588
|
+
createVNode(script$k, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3589
3589
|
]),
|
|
3590
3590
|
_: 1 /* STABLE */
|
|
3591
3591
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3595,17 +3595,17 @@ return (_ctx, _cache) => {
|
|
|
3595
3595
|
|
|
3596
3596
|
};
|
|
3597
3597
|
|
|
3598
|
-
script$
|
|
3598
|
+
script$g.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3599
3599
|
|
|
3600
|
-
const _hoisted_1$
|
|
3601
|
-
const _hoisted_2$
|
|
3602
|
-
const _hoisted_3$
|
|
3600
|
+
const _hoisted_1$d = ["id"];
|
|
3601
|
+
const _hoisted_2$8 = { class: "offcanvas-header" };
|
|
3602
|
+
const _hoisted_3$8 = {
|
|
3603
3603
|
class: "offcanvas-title",
|
|
3604
3604
|
id: "offcanvasScrollingLabel"
|
|
3605
3605
|
};
|
|
3606
|
-
const _hoisted_4$
|
|
3606
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
3607
3607
|
|
|
3608
|
-
var script$
|
|
3608
|
+
var script$f = {
|
|
3609
3609
|
__name: 'ShCanvas',
|
|
3610
3610
|
props: {
|
|
3611
3611
|
canvasId: {
|
|
@@ -3650,8 +3650,8 @@ return (_ctx, _cache) => {
|
|
|
3650
3650
|
id: __props.canvasId,
|
|
3651
3651
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
3652
3652
|
}, [
|
|
3653
|
-
createElementVNode("div", _hoisted_2$
|
|
3654
|
-
createElementVNode("h5", _hoisted_3$
|
|
3653
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
3654
|
+
createElementVNode("h5", _hoisted_3$8, toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
3655
3655
|
createElementVNode("button", {
|
|
3656
3656
|
type: "button",
|
|
3657
3657
|
ref: "closecanvas",
|
|
@@ -3661,18 +3661,18 @@ return (_ctx, _cache) => {
|
|
|
3661
3661
|
"aria-label": "Close"
|
|
3662
3662
|
}, null, 512 /* NEED_PATCH */)
|
|
3663
3663
|
]),
|
|
3664
|
-
createElementVNode("div", _hoisted_4$
|
|
3664
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
3665
3665
|
renderSlot(_ctx.$slots, "default")
|
|
3666
3666
|
])
|
|
3667
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3667
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$d))
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
3670
|
|
|
3671
3671
|
};
|
|
3672
3672
|
|
|
3673
|
-
script$
|
|
3673
|
+
script$f.__file = "src/lib/components/ShCanvas.vue";
|
|
3674
3674
|
|
|
3675
|
-
var script$
|
|
3675
|
+
var script$e = {
|
|
3676
3676
|
name: 'Pagination',
|
|
3677
3677
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3678
3678
|
data () {
|
|
@@ -3743,12 +3743,12 @@ var script$g = {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
};
|
|
3745
3745
|
|
|
3746
|
-
const _hoisted_1$
|
|
3747
|
-
const _hoisted_2$
|
|
3748
|
-
const _hoisted_3$
|
|
3749
|
-
const _hoisted_4$
|
|
3746
|
+
const _hoisted_1$c = { key: 0 };
|
|
3747
|
+
const _hoisted_2$7 = { class: "record_count_body mb-3" };
|
|
3748
|
+
const _hoisted_3$7 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
3749
|
+
const _hoisted_4$7 = /*#__PURE__*/createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
3750
3750
|
const _hoisted_9$4 = [
|
|
3751
|
-
_hoisted_4$
|
|
3751
|
+
_hoisted_4$7
|
|
3752
3752
|
];
|
|
3753
3753
|
const _hoisted_10$3 = { class: "record_counts" };
|
|
3754
3754
|
const _hoisted_11$2 = {
|
|
@@ -3791,11 +3791,11 @@ const _hoisted_23$1 = {
|
|
|
3791
3791
|
class: "spinner-border"
|
|
3792
3792
|
};
|
|
3793
3793
|
|
|
3794
|
-
function render$
|
|
3794
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3795
3795
|
return ($props.paginationStyle !== 'loadMore')
|
|
3796
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3797
|
-
createElementVNode("div", _hoisted_2$
|
|
3798
|
-
_hoisted_3$
|
|
3796
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
3797
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
3798
|
+
_hoisted_3$7,
|
|
3799
3799
|
createTextVNode(" "),
|
|
3800
3800
|
withDirectives(createElementVNode("select", {
|
|
3801
3801
|
class: "select_per_page",
|
|
@@ -3868,17 +3868,17 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3868
3868
|
]))
|
|
3869
3869
|
}
|
|
3870
3870
|
|
|
3871
|
-
script$
|
|
3872
|
-
script$
|
|
3871
|
+
script$e.render = render$1;
|
|
3872
|
+
script$e.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3873
3873
|
|
|
3874
|
-
const _hoisted_1$
|
|
3874
|
+
const _hoisted_1$b = /*#__PURE__*/createElementVNode("span", {
|
|
3875
3875
|
class: "spinner-border spinner-border-sm me-1",
|
|
3876
3876
|
role: "status",
|
|
3877
3877
|
"aria-hidden": "true"
|
|
3878
3878
|
}, null, -1 /* HOISTED */);
|
|
3879
3879
|
|
|
3880
3880
|
|
|
3881
|
-
var script$
|
|
3881
|
+
var script$d = {
|
|
3882
3882
|
__name: 'ShConfirmAction',
|
|
3883
3883
|
props: {
|
|
3884
3884
|
data: Object,
|
|
@@ -3951,7 +3951,7 @@ return (_ctx, _cache) => {
|
|
|
3951
3951
|
}, [
|
|
3952
3952
|
(processing.value)
|
|
3953
3953
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3954
|
-
_hoisted_1$
|
|
3954
|
+
_hoisted_1$b,
|
|
3955
3955
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
3956
3956
|
], 64 /* STABLE_FRAGMENT */))
|
|
3957
3957
|
: createCommentVNode("v-if", true),
|
|
@@ -3964,15 +3964,15 @@ return (_ctx, _cache) => {
|
|
|
3964
3964
|
|
|
3965
3965
|
};
|
|
3966
3966
|
|
|
3967
|
-
script$
|
|
3967
|
+
script$d.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3968
3968
|
|
|
3969
|
-
const _hoisted_1$
|
|
3969
|
+
const _hoisted_1$a = /*#__PURE__*/createElementVNode("span", {
|
|
3970
3970
|
class: "spinner-border spinner-border-sm me-1",
|
|
3971
3971
|
role: "status",
|
|
3972
3972
|
"aria-hidden": "true"
|
|
3973
3973
|
}, null, -1 /* HOISTED */);
|
|
3974
3974
|
|
|
3975
|
-
var script$
|
|
3975
|
+
var script$c = {
|
|
3976
3976
|
__name: 'ShSilentAction',
|
|
3977
3977
|
props: {
|
|
3978
3978
|
data: Object,
|
|
@@ -4047,7 +4047,7 @@ return (_ctx, _cache) => {
|
|
|
4047
4047
|
}, [
|
|
4048
4048
|
(processing.value)
|
|
4049
4049
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4050
|
-
_hoisted_1$
|
|
4050
|
+
_hoisted_1$a,
|
|
4051
4051
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4052
4052
|
], 64 /* STABLE_FRAGMENT */))
|
|
4053
4053
|
: createCommentVNode("v-if", true),
|
|
@@ -4060,9 +4060,9 @@ return (_ctx, _cache) => {
|
|
|
4060
4060
|
|
|
4061
4061
|
};
|
|
4062
4062
|
|
|
4063
|
-
script$
|
|
4063
|
+
script$c.__file = "src/lib/components/ShSilentAction.vue";
|
|
4064
4064
|
|
|
4065
|
-
var script$
|
|
4065
|
+
var script$b = {
|
|
4066
4066
|
name: 'sh-table',
|
|
4067
4067
|
props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4068
4068
|
inject: ['channel'],
|
|
@@ -4317,10 +4317,10 @@ var script$d = {
|
|
|
4317
4317
|
this.reloadData();
|
|
4318
4318
|
},
|
|
4319
4319
|
components: {
|
|
4320
|
-
ShSilentAction: script$
|
|
4321
|
-
ShConfirmAction: script$
|
|
4322
|
-
ShCanvas: script$
|
|
4323
|
-
pagination: script$
|
|
4320
|
+
ShSilentAction: script$c,
|
|
4321
|
+
ShConfirmAction: script$d,
|
|
4322
|
+
ShCanvas: script$f,
|
|
4323
|
+
pagination: script$e
|
|
4324
4324
|
},
|
|
4325
4325
|
computed: {
|
|
4326
4326
|
windowWidth: function () {
|
|
@@ -4338,14 +4338,14 @@ var script$d = {
|
|
|
4338
4338
|
}
|
|
4339
4339
|
};
|
|
4340
4340
|
|
|
4341
|
-
const _hoisted_1$
|
|
4342
|
-
const _hoisted_2$
|
|
4341
|
+
const _hoisted_1$9 = { class: "auto-table mt-2" };
|
|
4342
|
+
const _hoisted_2$6 = {
|
|
4343
4343
|
key: 0,
|
|
4344
4344
|
class: "col-md-4 mb-2"
|
|
4345
4345
|
};
|
|
4346
|
-
const _hoisted_3$
|
|
4347
|
-
const _hoisted_4$
|
|
4348
|
-
const _hoisted_5$
|
|
4346
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4347
|
+
const _hoisted_4$6 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
4348
|
+
const _hoisted_5$5 = /*#__PURE__*/createElementVNode("span", {
|
|
4349
4349
|
class: "spinner-border spinner-border-sm",
|
|
4350
4350
|
role: "status",
|
|
4351
4351
|
"aria-hidden": "true"
|
|
@@ -4494,16 +4494,16 @@ const _hoisted_63 = { key: 0 };
|
|
|
4494
4494
|
const _hoisted_64 = ["href"];
|
|
4495
4495
|
const _hoisted_65 = ["title", "onClick"];
|
|
4496
4496
|
|
|
4497
|
-
function render
|
|
4497
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4498
4498
|
const _component_router_link = resolveComponent("router-link");
|
|
4499
4499
|
const _component_sh_confirm_action = resolveComponent("sh-confirm-action");
|
|
4500
4500
|
const _component_sh_silent_action = resolveComponent("sh-silent-action");
|
|
4501
4501
|
const _component_pagination = resolveComponent("pagination");
|
|
4502
4502
|
const _component_sh_canvas = resolveComponent("sh-canvas");
|
|
4503
4503
|
|
|
4504
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4504
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
4505
4505
|
($props.hasDownload)
|
|
4506
|
-
? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4506
|
+
? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
4507
4507
|
createElementVNode("button", {
|
|
4508
4508
|
disabled: $data.downloading,
|
|
4509
4509
|
class: "btn btn-warning btn-sm",
|
|
@@ -4511,14 +4511,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4511
4511
|
}, [
|
|
4512
4512
|
(!$data.downloading)
|
|
4513
4513
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4514
|
-
_hoisted_4$
|
|
4514
|
+
_hoisted_4$6,
|
|
4515
4515
|
createTextVNode(" Export ")
|
|
4516
4516
|
], 64 /* STABLE_FRAGMENT */))
|
|
4517
4517
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4518
|
-
_hoisted_5$
|
|
4518
|
+
_hoisted_5$5,
|
|
4519
4519
|
_hoisted_6$4
|
|
4520
4520
|
], 64 /* STABLE_FRAGMENT */))
|
|
4521
|
-
], 8 /* PROPS */, _hoisted_3$
|
|
4521
|
+
], 8 /* PROPS */, _hoisted_3$6)
|
|
4522
4522
|
]))
|
|
4523
4523
|
: createCommentVNode("v-if", true),
|
|
4524
4524
|
(!$props.hideSearch)
|
|
@@ -4954,10 +4954,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4954
4954
|
]))
|
|
4955
4955
|
}
|
|
4956
4956
|
|
|
4957
|
-
script$
|
|
4958
|
-
script$
|
|
4957
|
+
script$b.render = render;
|
|
4958
|
+
script$b.__file = "src/lib/components/ShTable.vue";
|
|
4959
4959
|
|
|
4960
|
-
var script$
|
|
4960
|
+
var script$a = {
|
|
4961
4961
|
__name: 'ShTabs',
|
|
4962
4962
|
props: {
|
|
4963
4963
|
tabs: {
|
|
@@ -5102,18 +5102,18 @@ return (_ctx, _cache) => {
|
|
|
5102
5102
|
|
|
5103
5103
|
};
|
|
5104
5104
|
|
|
5105
|
-
script$
|
|
5105
|
+
script$a.__file = "src/lib/components/ShTabs.vue";
|
|
5106
5106
|
|
|
5107
|
-
const _hoisted_1$
|
|
5107
|
+
const _hoisted_1$8 = {
|
|
5108
5108
|
class: "nav-item",
|
|
5109
5109
|
role: "presentation"
|
|
5110
5110
|
};
|
|
5111
|
-
const _hoisted_2$
|
|
5112
|
-
const _hoisted_3$
|
|
5113
|
-
const _hoisted_4$
|
|
5114
|
-
const _hoisted_5$
|
|
5111
|
+
const _hoisted_2$5 = ["onClick"];
|
|
5112
|
+
const _hoisted_3$5 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
5113
|
+
const _hoisted_4$5 = { class: "sh_tab_count" };
|
|
5114
|
+
const _hoisted_5$4 = { class: "tab-content" };
|
|
5115
5115
|
|
|
5116
|
-
var script$
|
|
5116
|
+
var script$9 = {
|
|
5117
5117
|
__name: 'ShDynamicTabs',
|
|
5118
5118
|
props: ['tabs','data'],
|
|
5119
5119
|
setup(__props) {
|
|
@@ -5143,7 +5143,7 @@ return (_ctx, _cache) => {
|
|
|
5143
5143
|
role: "tablist"
|
|
5144
5144
|
}, [
|
|
5145
5145
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
|
|
5146
|
-
return (openBlock(), createElementBlock("li", _hoisted_1$
|
|
5146
|
+
return (openBlock(), createElementBlock("li", _hoisted_1$8, [
|
|
5147
5147
|
createElementVNode("button", {
|
|
5148
5148
|
onClick: $event => (setTab(tab)),
|
|
5149
5149
|
class: normalizeClass(["nav-link", unref(currentTab) === tab ? 'active':''])
|
|
@@ -5151,15 +5151,15 @@ return (_ctx, _cache) => {
|
|
|
5151
5151
|
createTextVNode(toDisplayString(tab.label) + " ", 1 /* TEXT */),
|
|
5152
5152
|
(tab.count || tab.tabCount)
|
|
5153
5153
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5154
|
-
_hoisted_3$
|
|
5155
|
-
createElementVNode("sup", _hoisted_4$
|
|
5154
|
+
_hoisted_3$5,
|
|
5155
|
+
createElementVNode("sup", _hoisted_4$5, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
|
|
5156
5156
|
], 64 /* STABLE_FRAGMENT */))
|
|
5157
5157
|
: createCommentVNode("v-if", true)
|
|
5158
|
-
], 10 /* CLASS, PROPS */, _hoisted_2$
|
|
5158
|
+
], 10 /* CLASS, PROPS */, _hoisted_2$5)
|
|
5159
5159
|
]))
|
|
5160
5160
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
5161
5161
|
], 2 /* CLASS */),
|
|
5162
|
-
createElementVNode("div", _hoisted_5$
|
|
5162
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
5163
5163
|
(unref(currentTab))
|
|
5164
5164
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), normalizeProps(mergeProps({ key: 0 }, unref(currentTab))), null, 16 /* FULL_PROPS */))
|
|
5165
5165
|
: createCommentVNode("v-if", true)
|
|
@@ -5170,12 +5170,12 @@ return (_ctx, _cache) => {
|
|
|
5170
5170
|
|
|
5171
5171
|
};
|
|
5172
5172
|
|
|
5173
|
-
script$
|
|
5173
|
+
script$9.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5174
5174
|
|
|
5175
|
-
const _hoisted_1$
|
|
5175
|
+
const _hoisted_1$7 = ["href"];
|
|
5176
5176
|
|
|
5177
5177
|
|
|
5178
|
-
var script$
|
|
5178
|
+
var script$8 = {
|
|
5179
5179
|
__name: 'ShModalBtn',
|
|
5180
5180
|
props: {
|
|
5181
5181
|
modalId: {
|
|
@@ -5192,18 +5192,18 @@ return (_ctx, _cache) => {
|
|
|
5192
5192
|
"data-bs-toggle": "modal"
|
|
5193
5193
|
}, [
|
|
5194
5194
|
renderSlot(_ctx.$slots, "default")
|
|
5195
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5195
|
+
], 8 /* PROPS */, _hoisted_1$7))
|
|
5196
5196
|
}
|
|
5197
5197
|
}
|
|
5198
5198
|
|
|
5199
5199
|
};
|
|
5200
5200
|
|
|
5201
|
-
script$
|
|
5201
|
+
script$8.__file = "src/lib/components/ShModalBtn.vue";
|
|
5202
5202
|
|
|
5203
|
-
const _hoisted_1$
|
|
5203
|
+
const _hoisted_1$6 = ["href"];
|
|
5204
5204
|
|
|
5205
5205
|
|
|
5206
|
-
var script$
|
|
5206
|
+
var script$7 = {
|
|
5207
5207
|
__name: 'ShCanvasBtn',
|
|
5208
5208
|
props: {
|
|
5209
5209
|
canvasId: {
|
|
@@ -5221,13 +5221,13 @@ return (_ctx, _cache) => {
|
|
|
5221
5221
|
"data-bs-toggle": "offcanvas"
|
|
5222
5222
|
}, [
|
|
5223
5223
|
renderSlot(_ctx.$slots, "default")
|
|
5224
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5224
|
+
], 8 /* PROPS */, _hoisted_1$6))
|
|
5225
5225
|
}
|
|
5226
5226
|
}
|
|
5227
5227
|
|
|
5228
5228
|
};
|
|
5229
5229
|
|
|
5230
|
-
script$
|
|
5230
|
+
script$7.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5231
5231
|
|
|
5232
5232
|
const useUserStore = defineStore('user-store', {
|
|
5233
5233
|
state: () => ({
|
|
@@ -5326,18 +5326,18 @@ const useUserStore = defineStore('user-store', {
|
|
|
5326
5326
|
});
|
|
5327
5327
|
|
|
5328
5328
|
const _withScopeId$1 = n => (pushScopeId("data-v-0d4fa0ac"),n=n(),popScopeId(),n);
|
|
5329
|
-
const _hoisted_1$
|
|
5330
|
-
const _hoisted_2$
|
|
5329
|
+
const _hoisted_1$5 = { class: "row permissions-main d-flex" };
|
|
5330
|
+
const _hoisted_2$4 = {
|
|
5331
5331
|
id: "permissions-nav",
|
|
5332
5332
|
class: "col-md-3 d-flex align-items-center py-4"
|
|
5333
5333
|
};
|
|
5334
|
-
const _hoisted_3$
|
|
5334
|
+
const _hoisted_3$4 = {
|
|
5335
5335
|
key: 0,
|
|
5336
5336
|
class: "mx-auto"
|
|
5337
5337
|
};
|
|
5338
|
-
const _hoisted_4$
|
|
5339
|
-
const _hoisted_5$
|
|
5340
|
-
_hoisted_4$
|
|
5338
|
+
const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
|
|
5339
|
+
const _hoisted_5$3 = [
|
|
5340
|
+
_hoisted_4$4
|
|
5341
5341
|
];
|
|
5342
5342
|
const _hoisted_6$3 = {
|
|
5343
5343
|
key: 1,
|
|
@@ -5366,7 +5366,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5366
5366
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5367
5367
|
|
|
5368
5368
|
|
|
5369
|
-
var script$
|
|
5369
|
+
var script$6 = {
|
|
5370
5370
|
__name: 'ManagePermissions',
|
|
5371
5371
|
emits: ['success'],
|
|
5372
5372
|
setup(__props, { emit }) {
|
|
@@ -5470,10 +5470,10 @@ const getPermissionStyle = permission => {
|
|
|
5470
5470
|
};
|
|
5471
5471
|
|
|
5472
5472
|
return (_ctx, _cache) => {
|
|
5473
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5474
|
-
createElementVNode("div", _hoisted_2$
|
|
5473
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
5474
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
5475
5475
|
(loadingModules.value)
|
|
5476
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5476
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$4, _hoisted_5$3))
|
|
5477
5477
|
: (openBlock(), createElementBlock("ul", _hoisted_6$3, [
|
|
5478
5478
|
(openBlock(true), createElementBlock(Fragment, null, renderList(modules.value, (module) => {
|
|
5479
5479
|
return (openBlock(), createElementBlock("li", {
|
|
@@ -5524,7 +5524,7 @@ return (_ctx, _cache) => {
|
|
|
5524
5524
|
(permissionsChanged.value)
|
|
5525
5525
|
? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
5526
5526
|
createElementVNode("div", _hoisted_17, [
|
|
5527
|
-
createVNode(script$
|
|
5527
|
+
createVNode(script$c, {
|
|
5528
5528
|
onSuccess: permissionsUpdated,
|
|
5529
5529
|
url: `sh-departments/department/permissions/${unref(departmentId)}/${selectedModule.value}`,
|
|
5530
5530
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5548,13 +5548,13 @@ return (_ctx, _cache) => {
|
|
|
5548
5548
|
|
|
5549
5549
|
};
|
|
5550
5550
|
|
|
5551
|
-
script$
|
|
5552
|
-
script$
|
|
5551
|
+
script$6.__scopeId = "data-v-0d4fa0ac";
|
|
5552
|
+
script$6.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5553
5553
|
|
|
5554
|
-
const _hoisted_1$
|
|
5554
|
+
const _hoisted_1$4 = ["href"];
|
|
5555
5555
|
|
|
5556
5556
|
|
|
5557
|
-
var script$
|
|
5557
|
+
var script$5 = {
|
|
5558
5558
|
__name: 'ShRoutePopups',
|
|
5559
5559
|
setup(__props) {
|
|
5560
5560
|
|
|
@@ -5582,7 +5582,7 @@ watch(() => route.meta, meta => {
|
|
|
5582
5582
|
//no pop up, check if we have any unclosed backdrop
|
|
5583
5583
|
setTimeout(() => {
|
|
5584
5584
|
closeOrphanedBackdrops();
|
|
5585
|
-
},
|
|
5585
|
+
}, 500);
|
|
5586
5586
|
}
|
|
5587
5587
|
});
|
|
5588
5588
|
const closeOrphanedBackdrops = () => {
|
|
@@ -5633,9 +5633,9 @@ return (_ctx, _cache) => {
|
|
|
5633
5633
|
href: '#' + unref(canvasId),
|
|
5634
5634
|
shallowRef: "canvasButton",
|
|
5635
5635
|
class: "d-none"
|
|
5636
|
-
}, "Open Modal", 8 /* PROPS */, _hoisted_1$
|
|
5636
|
+
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5637
5637
|
(popUp.value === 'modal')
|
|
5638
|
-
? (openBlock(), createBlock(script$
|
|
5638
|
+
? (openBlock(), createBlock(script$i, {
|
|
5639
5639
|
key: 0,
|
|
5640
5640
|
"modal-id": unref(modalId),
|
|
5641
5641
|
"modal-size": size.value
|
|
@@ -5647,7 +5647,7 @@ return (_ctx, _cache) => {
|
|
|
5647
5647
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5648
5648
|
: createCommentVNode("v-if", true),
|
|
5649
5649
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5650
|
-
? (openBlock(), createBlock(script$
|
|
5650
|
+
? (openBlock(), createBlock(script$f, {
|
|
5651
5651
|
key: 1,
|
|
5652
5652
|
"canvas-id": unref(canvasId),
|
|
5653
5653
|
"canvas-size": size.value,
|
|
@@ -5665,56 +5665,28 @@ return (_ctx, _cache) => {
|
|
|
5665
5665
|
|
|
5666
5666
|
};
|
|
5667
5667
|
|
|
5668
|
-
script$
|
|
5669
|
-
|
|
5670
|
-
const _hoisted_1$4 = { class: "alert alert-info" };
|
|
5671
|
-
const _hoisted_2$4 = /*#__PURE__*/createElementVNode("span", { class: "spinner-border" }, null, -1 /* HOISTED */);
|
|
5672
|
-
const _hoisted_3$4 = /*#__PURE__*/createElementVNode("span", null, "Loading", -1 /* HOISTED */);
|
|
5673
|
-
const _hoisted_4$4 = [
|
|
5674
|
-
_hoisted_2$4,
|
|
5675
|
-
_hoisted_3$4
|
|
5676
|
-
];
|
|
5677
|
-
|
|
5678
|
-
function render$1(_ctx, _cache) {
|
|
5679
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$4, _hoisted_4$4))
|
|
5680
|
-
}
|
|
5681
|
-
|
|
5682
|
-
const script$6 = {};
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
script$6.render = render$1;
|
|
5686
|
-
script$6.__file = "src/lib/components/popups/etc/PopupLoading.vue";
|
|
5687
|
-
|
|
5688
|
-
function render(_ctx, _cache) {
|
|
5689
|
-
return (openBlock(), createElementBlock("h5", null, "Error loading popup"))
|
|
5690
|
-
}
|
|
5691
|
-
|
|
5692
|
-
const script$5 = {};
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
script$5.render = render;
|
|
5696
|
-
script$5.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
|
|
5668
|
+
script$5.__file = "src/lib/components/popups/ShRoutePopups.vue";
|
|
5697
5669
|
|
|
5698
5670
|
var script$4 = {
|
|
5699
5671
|
__name: 'ShQueryPopups',
|
|
5700
5672
|
setup(__props) {
|
|
5701
5673
|
|
|
5702
5674
|
const route = useRoute();
|
|
5703
|
-
const popUp = ref(route.
|
|
5675
|
+
const popUp = ref(route.query.popUp);
|
|
5704
5676
|
const modalId = _.uniqueId('modal_');
|
|
5705
5677
|
const canvasId = _.uniqueId('canvas_');
|
|
5706
|
-
let
|
|
5678
|
+
let popupComponent = ref(null);
|
|
5707
5679
|
ref(null);
|
|
5708
5680
|
const router = useRouter();
|
|
5709
5681
|
const position = ref(null);
|
|
5710
5682
|
const size = ref(null);
|
|
5711
|
-
|
|
5683
|
+
ref(null);
|
|
5712
5684
|
watch(() => route.query.popup, pop => {
|
|
5713
5685
|
popUp.value = pop;
|
|
5714
5686
|
position.value = route.query.position ?? route.query.side;
|
|
5715
5687
|
size.value = route.query.size;
|
|
5688
|
+
popupComponent.value = route.query.comp ?? route.query.component;
|
|
5716
5689
|
if (popUp.value) {
|
|
5717
|
-
loadPopupComponent();
|
|
5718
5690
|
setTimeout(() => {
|
|
5719
5691
|
initPopup();
|
|
5720
5692
|
}, 100);
|
|
@@ -5722,27 +5694,10 @@ watch(() => route.query.popup, pop => {
|
|
|
5722
5694
|
//no pop up, check if we have any unclosed backdrop
|
|
5723
5695
|
setTimeout(() => {
|
|
5724
5696
|
closeOrphanedBackdrops();
|
|
5725
|
-
},
|
|
5697
|
+
}, 500);
|
|
5726
5698
|
}
|
|
5727
5699
|
});
|
|
5728
|
-
|
|
5729
|
-
const component = route.query.comp || '';
|
|
5730
|
-
PopupComponent.value = defineAsyncComponent({
|
|
5731
|
-
// the loader function
|
|
5732
|
-
loader: () => import(`../../../views/popups/${component}Popup.vue`),
|
|
5733
|
-
|
|
5734
|
-
// A component to use while the async component is loading
|
|
5735
|
-
loadingComponent: script$6,
|
|
5736
|
-
// Delay before showing the loading component. Default: 200ms.
|
|
5737
|
-
delay: 200,
|
|
5738
|
-
|
|
5739
|
-
// A component to use if the load fails
|
|
5740
|
-
errorComponent: script$5,
|
|
5741
|
-
// The error component will be displayed if a timeout is
|
|
5742
|
-
// provided and exceeded. Default: Infinity.
|
|
5743
|
-
timeout: 3000
|
|
5744
|
-
});
|
|
5745
|
-
};
|
|
5700
|
+
|
|
5746
5701
|
const closeOrphanedBackdrops = () => {
|
|
5747
5702
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5748
5703
|
if (offCanvasBackdrop) {
|
|
@@ -5787,27 +5742,26 @@ const goBack = () => {
|
|
|
5787
5742
|
return (_ctx, _cache) => {
|
|
5788
5743
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
5789
5744
|
(popUp.value === 'modal')
|
|
5790
|
-
? (openBlock(), createBlock(script$
|
|
5745
|
+
? (openBlock(), createBlock(script$i, {
|
|
5791
5746
|
key: 0,
|
|
5792
5747
|
"modal-id": unref(modalId),
|
|
5793
5748
|
"modal-size": size.value
|
|
5794
5749
|
}, {
|
|
5795
5750
|
default: withCtx(() => [
|
|
5796
|
-
|
|
5751
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
5797
5752
|
]),
|
|
5798
5753
|
_: 1 /* STABLE */
|
|
5799
5754
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5800
5755
|
: createCommentVNode("v-if", true),
|
|
5801
5756
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5802
|
-
? (openBlock(), createBlock(script$
|
|
5803
|
-
key:
|
|
5757
|
+
? (openBlock(), createBlock(script$f, {
|
|
5758
|
+
key: size.value + position.value,
|
|
5804
5759
|
"canvas-id": unref(canvasId),
|
|
5805
5760
|
"canvas-size": size.value,
|
|
5806
5761
|
position: position.value
|
|
5807
5762
|
}, {
|
|
5808
5763
|
default: withCtx(() => [
|
|
5809
|
-
|
|
5810
|
-
createVNode(unref(AsyncComp))
|
|
5764
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
5811
5765
|
]),
|
|
5812
5766
|
_: 1 /* STABLE */
|
|
5813
5767
|
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
@@ -5831,7 +5785,7 @@ const _hoisted_3$3 = {
|
|
|
5831
5785
|
"aria-expanded": "false"
|
|
5832
5786
|
};
|
|
5833
5787
|
const _hoisted_4$3 = /*#__PURE__*/createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */);
|
|
5834
|
-
const _hoisted_5$
|
|
5788
|
+
const _hoisted_5$2 = ["innerHTML"];
|
|
5835
5789
|
const _hoisted_6$2 = {
|
|
5836
5790
|
class: "dropdown-menu",
|
|
5837
5791
|
"aria-labelledby": "dropdownMenuLink"
|
|
@@ -5951,7 +5905,7 @@ return (_ctx, _cache) => {
|
|
|
5951
5905
|
createElementVNode("div", _hoisted_3$3, [
|
|
5952
5906
|
_hoisted_4$3,
|
|
5953
5907
|
createTextVNode(),
|
|
5954
|
-
createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$
|
|
5908
|
+
createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$2)
|
|
5955
5909
|
]),
|
|
5956
5910
|
createElementVNode("ul", _hoisted_6$2, [
|
|
5957
5911
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dates.value, (date) => {
|
|
@@ -6001,16 +5955,33 @@ return (_ctx, _cache) => {
|
|
|
6001
5955
|
|
|
6002
5956
|
script$3.__file = "src/lib/components/ShRange.vue";
|
|
6003
5957
|
|
|
5958
|
+
const useAppStore = defineStore('sh-app',{
|
|
5959
|
+
state: ()=>{
|
|
5960
|
+
return {
|
|
5961
|
+
refreshKey: 0,
|
|
5962
|
+
appData: {}
|
|
5963
|
+
}
|
|
5964
|
+
},
|
|
5965
|
+
actions: {
|
|
5966
|
+
refreshPage () {
|
|
5967
|
+
this.refreshKey++;
|
|
5968
|
+
return true
|
|
5969
|
+
},
|
|
5970
|
+
refresh () {
|
|
5971
|
+
this.refreshKey++;
|
|
5972
|
+
return true
|
|
5973
|
+
},
|
|
5974
|
+
reload () {
|
|
5975
|
+
this.refreshKey++;
|
|
5976
|
+
return true
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
});
|
|
5980
|
+
|
|
6004
5981
|
const _hoisted_1$2 = /*#__PURE__*/createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
6005
5982
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
6006
5983
|
const _hoisted_3$2 = { class: "card-body" };
|
|
6007
|
-
const _hoisted_4$2 = {
|
|
6008
|
-
"data-bs-toggle": "modal",
|
|
6009
|
-
ref: "addDeptBtn",
|
|
6010
|
-
href: "#sh-department_modal",
|
|
6011
|
-
class: "btn btn-info btn-sm"
|
|
6012
|
-
};
|
|
6013
|
-
const _hoisted_5$2 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
5984
|
+
const _hoisted_4$2 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
6014
5985
|
|
|
6015
5986
|
|
|
6016
5987
|
var script$2 = {
|
|
@@ -6025,21 +5996,40 @@ function departmentAdded (response) {
|
|
|
6025
5996
|
reload.value += 1;
|
|
6026
5997
|
}
|
|
6027
5998
|
|
|
5999
|
+
const department = ref(null);
|
|
6000
|
+
const editDepartment = dept=>{
|
|
6001
|
+
department.value = dept;
|
|
6002
|
+
if(dept) {
|
|
6003
|
+
new Modal(document.getElementById('sh_department_modal'),{}).show();
|
|
6004
|
+
}
|
|
6005
|
+
};
|
|
6006
|
+
|
|
6028
6007
|
return (_ctx, _cache) => {
|
|
6029
6008
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
6030
6009
|
_hoisted_1$2,
|
|
6031
6010
|
createElementVNode("div", _hoisted_2$2, [
|
|
6032
6011
|
createElementVNode("div", _hoisted_3$2, [
|
|
6033
|
-
createElementVNode("a",
|
|
6034
|
-
|
|
6012
|
+
createElementVNode("a", {
|
|
6013
|
+
onClick: _cache[0] || (_cache[0] = $event => (editDepartment(null))),
|
|
6014
|
+
"data-bs-toggle": "modal",
|
|
6015
|
+
ref: "addDeptBtn",
|
|
6016
|
+
href: "#sh_department_modal",
|
|
6017
|
+
class: "btn btn-info btn-sm"
|
|
6018
|
+
}, [
|
|
6019
|
+
_hoisted_4$2,
|
|
6035
6020
|
createTextVNode(" ADD DEPARTMENT")
|
|
6036
6021
|
], 512 /* NEED_PATCH */),
|
|
6037
|
-
createVNode(script$
|
|
6022
|
+
createVNode(script$b, {
|
|
6038
6023
|
headers: ['id','name','description', 'created_at'],
|
|
6039
6024
|
"end-point": "sh-departments/list",
|
|
6040
6025
|
actions: {
|
|
6041
6026
|
label: 'Action',
|
|
6042
6027
|
actions: [
|
|
6028
|
+
{
|
|
6029
|
+
label: 'Edit',
|
|
6030
|
+
emits: editDepartment,
|
|
6031
|
+
class: 'btn btn-warning bi-pen btn-sm me-1'
|
|
6032
|
+
},
|
|
6043
6033
|
{
|
|
6044
6034
|
label: 'Permissions',
|
|
6045
6035
|
path: '/sh-departments/manage-permissions/{id}',
|
|
@@ -6047,18 +6037,19 @@ return (_ctx, _cache) => {
|
|
|
6047
6037
|
}
|
|
6048
6038
|
]
|
|
6049
6039
|
}
|
|
6050
|
-
}),
|
|
6051
|
-
createVNode(script$
|
|
6052
|
-
"modal-id": "
|
|
6040
|
+
}, null, 8 /* PROPS */, ["actions"]),
|
|
6041
|
+
createVNode(script$i, {
|
|
6042
|
+
"modal-id": "sh_department_modal",
|
|
6053
6043
|
"modal-title": "Department Form"
|
|
6054
6044
|
}, {
|
|
6055
6045
|
default: withCtx(() => [
|
|
6056
|
-
createVNode(script$
|
|
6046
|
+
createVNode(script$r, {
|
|
6057
6047
|
"success-callback": "departmentAdded",
|
|
6048
|
+
"current-data": department.value,
|
|
6058
6049
|
onDepartmentAdded: departmentAdded,
|
|
6059
6050
|
action: "admin/departments/store",
|
|
6060
6051
|
fields: ['name','description']
|
|
6061
|
-
})
|
|
6052
|
+
}, null, 8 /* PROPS */, ["current-data"])
|
|
6062
6053
|
]),
|
|
6063
6054
|
_: 1 /* STABLE */
|
|
6064
6055
|
})
|
|
@@ -6187,7 +6178,7 @@ return (_ctx, _cache) => {
|
|
|
6187
6178
|
createElementVNode("div", _hoisted_2$1, [
|
|
6188
6179
|
_hoisted_3$1,
|
|
6189
6180
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
6190
|
-
createVNode(script$
|
|
6181
|
+
createVNode(script$b, {
|
|
6191
6182
|
actions: {
|
|
6192
6183
|
label: 'Actions',
|
|
6193
6184
|
actions: [
|
|
@@ -6207,12 +6198,12 @@ return (_ctx, _cache) => {
|
|
|
6207
6198
|
headers: ['id',showModule,'created_at'],
|
|
6208
6199
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
6209
6200
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
6210
|
-
createVNode(script$
|
|
6201
|
+
createVNode(script$i, {
|
|
6211
6202
|
"modal-id": "addModule",
|
|
6212
6203
|
"modal-title": "Add Module Department"
|
|
6213
6204
|
}, {
|
|
6214
6205
|
default: withCtx(() => [
|
|
6215
|
-
createVNode(script$
|
|
6206
|
+
createVNode(script$r, {
|
|
6216
6207
|
"reload-select-items": unref(reload),
|
|
6217
6208
|
"success-callback": moduleAdded,
|
|
6218
6209
|
"fill-selects": {
|
|
@@ -6234,7 +6225,7 @@ return (_ctx, _cache) => {
|
|
|
6234
6225
|
ref: permissionCanvasBtn,
|
|
6235
6226
|
"data-bs-toggle": "offcanvas"
|
|
6236
6227
|
}, null, 512 /* NEED_PATCH */),
|
|
6237
|
-
createVNode(script$
|
|
6228
|
+
createVNode(script$f, {
|
|
6238
6229
|
"canvas-id": "permissionsCanvas",
|
|
6239
6230
|
position: "end enlarged",
|
|
6240
6231
|
"canvas-title": "Module Permissions"
|
|
@@ -6349,7 +6340,7 @@ return (_ctx, _cache) => {
|
|
|
6349
6340
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6350
6341
|
(section.value === 'login')
|
|
6351
6342
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
6352
|
-
createVNode(script$
|
|
6343
|
+
createVNode(script$r, {
|
|
6353
6344
|
class: "sh-login-form",
|
|
6354
6345
|
fields: ['email','password'],
|
|
6355
6346
|
"action-label": "Login",
|
|
@@ -6374,7 +6365,7 @@ return (_ctx, _cache) => {
|
|
|
6374
6365
|
(unref(registerSubTitle))
|
|
6375
6366
|
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
6376
6367
|
: createCommentVNode("v-if", true),
|
|
6377
|
-
createVNode(script$
|
|
6368
|
+
createVNode(script$r, {
|
|
6378
6369
|
class: "sh-login-form",
|
|
6379
6370
|
fields: unref(registrationFields),
|
|
6380
6371
|
"action-label": "Sign Up",
|
|
@@ -6421,7 +6412,7 @@ const ShFrontend = {
|
|
|
6421
6412
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6422
6413
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6423
6414
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6424
|
-
options.formTextInput ?? script$
|
|
6415
|
+
options.formTextInput ?? script$o;
|
|
6425
6416
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6426
6417
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6427
6418
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6454,7 +6445,7 @@ const ShFrontend = {
|
|
|
6454
6445
|
});
|
|
6455
6446
|
options.router.addRoute({
|
|
6456
6447
|
path: '/sh-departments/manage-permissions/:id',
|
|
6457
|
-
component: script$
|
|
6448
|
+
component: script$6
|
|
6458
6449
|
});
|
|
6459
6450
|
}
|
|
6460
6451
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6479,4 +6470,4 @@ var shGql = {
|
|
|
6479
6470
|
mutate
|
|
6480
6471
|
};
|
|
6481
6472
|
|
|
6482
|
-
export { countries as Countries, script$
|
|
6473
|
+
export { countries as Countries, script$6 as ManagePermissions, script$k as ShAutoForm, script$f as ShCanvas, script$7 as ShCanvasBtn, script$d as ShConfirmAction, script$j as ShDropDownForm, script$9 as ShDynamicTabs, script$r as ShForm, ShFrontend, script$i as ShModal, script$8 as ShModalBtn, script$h as ShModalForm, script$g as ShModalFormAuto, script$t as ShPhone, script$4 as ShQueryPopups, script$3 as ShRange, script$5 as ShRoutePopups, script$c as ShSilentAction, script$b as ShTable, script$a as ShTabs, shApis, shGql, shRepo, ShStorage as shStorage, useAppStore, useUserStore };
|