@iankibetsh/shframework 1.6.2 → 1.6.4
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 +42 -42
- package/dist/library.js +296 -187
- package/dist/library.mjs +282 -175
- package/package.json +1 -1
package/dist/library.mjs
CHANGED
|
@@ -1861,7 +1861,7 @@ const countries = [
|
|
|
1861
1861
|
}
|
|
1862
1862
|
];
|
|
1863
1863
|
|
|
1864
|
-
var script$
|
|
1864
|
+
var script$r = {
|
|
1865
1865
|
name: 'PhoneInput',
|
|
1866
1866
|
props: ['modelValue', 'country_code'],
|
|
1867
1867
|
data () {
|
|
@@ -1923,7 +1923,7 @@ var script$p = {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
};
|
|
1925
1925
|
|
|
1926
|
-
const _hoisted_1$
|
|
1926
|
+
const _hoisted_1$m = { class: "sh-phone mb-3" };
|
|
1927
1927
|
const _hoisted_2$d = {
|
|
1928
1928
|
key: 0,
|
|
1929
1929
|
style: {"display":"contents"}
|
|
@@ -1931,8 +1931,8 @@ const _hoisted_2$d = {
|
|
|
1931
1931
|
const _hoisted_3$c = ["src"];
|
|
1932
1932
|
const _hoisted_4$c = ["value"];
|
|
1933
1933
|
|
|
1934
|
-
function render$
|
|
1935
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1934
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1935
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
1936
1936
|
($data.selectedCountry)
|
|
1937
1937
|
? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
1938
1938
|
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$c),
|
|
@@ -1966,10 +1966,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1966
1966
|
]))
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
|
-
script$
|
|
1970
|
-
script$
|
|
1969
|
+
script$r.render = render$5;
|
|
1970
|
+
script$r.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
1971
1971
|
|
|
1972
|
-
var script$
|
|
1972
|
+
var script$q = {
|
|
1973
1973
|
name: 'ShEditor',
|
|
1974
1974
|
props: ['modelValue'],
|
|
1975
1975
|
components: {
|
|
@@ -2008,17 +2008,17 @@ var script$o = {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
2010
|
|
|
2011
|
-
const _hoisted_1$
|
|
2011
|
+
const _hoisted_1$l = /*#__PURE__*/createElementVNode("textarea", {
|
|
2012
2012
|
id: "tiny",
|
|
2013
2013
|
style: {"display":"none"},
|
|
2014
2014
|
"data-cy": "tinymce_editor"
|
|
2015
2015
|
}, null, -1 /* HOISTED */);
|
|
2016
2016
|
|
|
2017
|
-
function render$
|
|
2017
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2018
2018
|
const _component_editor = resolveComponent("editor");
|
|
2019
2019
|
|
|
2020
2020
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2021
|
-
_hoisted_1$
|
|
2021
|
+
_hoisted_1$l,
|
|
2022
2022
|
createElementVNode("div", {
|
|
2023
2023
|
onFocusin: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
2024
2024
|
class: "sh-editor w-100"
|
|
@@ -2043,10 +2043,10 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2043
2043
|
], 64 /* STABLE_FRAGMENT */))
|
|
2044
2044
|
}
|
|
2045
2045
|
|
|
2046
|
-
script$
|
|
2047
|
-
script$
|
|
2046
|
+
script$q.render = render$4;
|
|
2047
|
+
script$q.__file = "src/lib/components/form-components/ShEditor.vue";
|
|
2048
2048
|
|
|
2049
|
-
const _hoisted_1$
|
|
2049
|
+
const _hoisted_1$k = {
|
|
2050
2050
|
key: 0,
|
|
2051
2051
|
class: "dropdown sh-suggest"
|
|
2052
2052
|
};
|
|
@@ -2067,7 +2067,7 @@ const _hoisted_10$4 = {
|
|
|
2067
2067
|
};
|
|
2068
2068
|
|
|
2069
2069
|
|
|
2070
|
-
var script$
|
|
2070
|
+
var script$p = {
|
|
2071
2071
|
__name: 'ShSuggest',
|
|
2072
2072
|
props: ['fillSelects','modelValue'],
|
|
2073
2073
|
emits: ['update:modelValue'],
|
|
@@ -2148,7 +2148,7 @@ function filterData(e){
|
|
|
2148
2148
|
|
|
2149
2149
|
return (_ctx, _cache) => {
|
|
2150
2150
|
return (unref(id))
|
|
2151
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2151
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
2152
2152
|
createElementVNode("div", {
|
|
2153
2153
|
id: unref(id),
|
|
2154
2154
|
"data-bs-toggle": "dropdown",
|
|
@@ -2208,16 +2208,16 @@ return (_ctx, _cache) => {
|
|
|
2208
2208
|
|
|
2209
2209
|
};
|
|
2210
2210
|
|
|
2211
|
-
script$
|
|
2212
|
-
script$
|
|
2211
|
+
script$p.__scopeId = "data-v-71cc9569";
|
|
2212
|
+
script$p.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2213
2213
|
|
|
2214
|
-
var script$
|
|
2214
|
+
var script$o = {
|
|
2215
2215
|
name: 'ShForm',
|
|
2216
2216
|
components: {
|
|
2217
|
-
PhoneInput: script$
|
|
2218
|
-
ShSuggest: script$
|
|
2219
|
-
ShEditor: script$
|
|
2220
|
-
ShPhone: script$
|
|
2217
|
+
PhoneInput: script$r,
|
|
2218
|
+
ShSuggest: script$p,
|
|
2219
|
+
ShEditor: script$q,
|
|
2220
|
+
ShPhone: script$r
|
|
2221
2221
|
},
|
|
2222
2222
|
props: [
|
|
2223
2223
|
'action',
|
|
@@ -2383,10 +2383,21 @@ var script$m = {
|
|
|
2383
2383
|
closeModal: function () {
|
|
2384
2384
|
document.body.style = '';
|
|
2385
2385
|
setTimeout(() => {
|
|
2386
|
-
const
|
|
2387
|
-
if(
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2386
|
+
const form = this.$refs.ShAutoForm;
|
|
2387
|
+
if(form){
|
|
2388
|
+
const modal = form.closest('.modal-dialog');
|
|
2389
|
+
if(modal){
|
|
2390
|
+
const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
|
|
2391
|
+
closeBtn && closeBtn.click();
|
|
2392
|
+
}
|
|
2393
|
+
} else {
|
|
2394
|
+
//form was mysteriously unmounted! try remove any modal backdrop if possible
|
|
2395
|
+
const modalBackdrop = document.querySelector('.modal-backdrop');
|
|
2396
|
+
if(modalBackdrop) {
|
|
2397
|
+
if(!document.querySelector('.modal.show')){
|
|
2398
|
+
modalBackdrop.remove();
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2390
2401
|
}
|
|
2391
2402
|
this.form_status = 0;
|
|
2392
2403
|
}, 1500);
|
|
@@ -2528,7 +2539,7 @@ var script$m = {
|
|
|
2528
2539
|
}
|
|
2529
2540
|
};
|
|
2530
2541
|
|
|
2531
|
-
const _hoisted_1$
|
|
2542
|
+
const _hoisted_1$j = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2532
2543
|
const _hoisted_2$b = {
|
|
2533
2544
|
ref: "ShAutoForm",
|
|
2534
2545
|
class: "sh-form"
|
|
@@ -2584,13 +2595,13 @@ const _hoisted_24$1 = /*#__PURE__*/createElementVNode("span", {
|
|
|
2584
2595
|
"aria-hidden": "true"
|
|
2585
2596
|
}, null, -1 /* HOISTED */);
|
|
2586
2597
|
|
|
2587
|
-
function render$
|
|
2598
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2588
2599
|
const _component_phone_input = resolveComponent("phone-input");
|
|
2589
2600
|
const _component_ShSuggest = resolveComponent("ShSuggest");
|
|
2590
2601
|
const _component_ShEditor = resolveComponent("ShEditor");
|
|
2591
2602
|
|
|
2592
2603
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2593
|
-
_hoisted_1$
|
|
2604
|
+
_hoisted_1$j,
|
|
2594
2605
|
createElementVNode("form", _hoisted_2$b, [
|
|
2595
2606
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2596
2607
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
@@ -2807,10 +2818,10 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2807
2818
|
], 64 /* STABLE_FRAGMENT */))
|
|
2808
2819
|
}
|
|
2809
2820
|
|
|
2810
|
-
script$
|
|
2811
|
-
script$
|
|
2821
|
+
script$o.render = render$3;
|
|
2822
|
+
script$o.__file = "src/lib/components/ShForm.vue";
|
|
2812
2823
|
|
|
2813
|
-
var script$
|
|
2824
|
+
var script$n = {
|
|
2814
2825
|
__name: 'EmailInput',
|
|
2815
2826
|
props: ['modelValue','label'],
|
|
2816
2827
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2846,12 +2857,12 @@ return (_ctx, _cache) => {
|
|
|
2846
2857
|
|
|
2847
2858
|
};
|
|
2848
2859
|
|
|
2849
|
-
script$
|
|
2860
|
+
script$n.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2850
2861
|
|
|
2851
|
-
const _hoisted_1$
|
|
2862
|
+
const _hoisted_1$i = ["min", "max"];
|
|
2852
2863
|
|
|
2853
2864
|
|
|
2854
|
-
var script$
|
|
2865
|
+
var script$m = {
|
|
2855
2866
|
__name: 'NumberInput',
|
|
2856
2867
|
props: ['modelValue','label','min','max'],
|
|
2857
2868
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2881,7 +2892,7 @@ return (_ctx, _cache) => {
|
|
|
2881
2892
|
onChange: modelValueUpdated,
|
|
2882
2893
|
onKeydown: modelValueUpdated,
|
|
2883
2894
|
onUpdated: modelValueUpdated
|
|
2884
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$
|
|
2895
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$i)), [
|
|
2885
2896
|
[vModelText, inputModel.value]
|
|
2886
2897
|
])
|
|
2887
2898
|
}
|
|
@@ -2889,9 +2900,9 @@ return (_ctx, _cache) => {
|
|
|
2889
2900
|
|
|
2890
2901
|
};
|
|
2891
2902
|
|
|
2892
|
-
script$
|
|
2903
|
+
script$m.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2893
2904
|
|
|
2894
|
-
var script$
|
|
2905
|
+
var script$l = {
|
|
2895
2906
|
__name: 'TextInput',
|
|
2896
2907
|
props: ['modelValue','label','isInvalid'],
|
|
2897
2908
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2927,9 +2938,9 @@ return (_ctx, _cache) => {
|
|
|
2927
2938
|
|
|
2928
2939
|
};
|
|
2929
2940
|
|
|
2930
|
-
script$
|
|
2941
|
+
script$l.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2931
2942
|
|
|
2932
|
-
var script$
|
|
2943
|
+
var script$k = {
|
|
2933
2944
|
__name: 'TextAreaInput',
|
|
2934
2945
|
props: ['modelValue','label'],
|
|
2935
2946
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2965,12 +2976,12 @@ return (_ctx, _cache) => {
|
|
|
2965
2976
|
|
|
2966
2977
|
};
|
|
2967
2978
|
|
|
2968
|
-
script$
|
|
2979
|
+
script$k.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2969
2980
|
|
|
2970
|
-
const _hoisted_1$
|
|
2981
|
+
const _hoisted_1$h = ["value"];
|
|
2971
2982
|
|
|
2972
2983
|
|
|
2973
|
-
var script$
|
|
2984
|
+
var script$j = {
|
|
2974
2985
|
__name: 'SelectInput',
|
|
2975
2986
|
props: ['modelValue','label','data','dataUrl'],
|
|
2976
2987
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3021,7 +3032,7 @@ return (_ctx, _cache) => {
|
|
|
3021
3032
|
return (openBlock(), createElementBlock("option", {
|
|
3022
3033
|
key: option.id,
|
|
3023
3034
|
value: option.id
|
|
3024
|
-
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3035
|
+
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$h))
|
|
3025
3036
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3026
3037
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
3027
3038
|
[vModelSelect, inputModel.value]
|
|
@@ -3031,9 +3042,9 @@ return (_ctx, _cache) => {
|
|
|
3031
3042
|
|
|
3032
3043
|
};
|
|
3033
3044
|
|
|
3034
|
-
script$
|
|
3045
|
+
script$j.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3035
3046
|
|
|
3036
|
-
var script$
|
|
3047
|
+
var script$i = {
|
|
3037
3048
|
__name: 'PasswordInput',
|
|
3038
3049
|
props: ['modelValue','label'],
|
|
3039
3050
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3069,9 +3080,9 @@ return (_ctx, _cache) => {
|
|
|
3069
3080
|
|
|
3070
3081
|
};
|
|
3071
3082
|
|
|
3072
|
-
script$
|
|
3083
|
+
script$i.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3073
3084
|
|
|
3074
|
-
const _hoisted_1$
|
|
3085
|
+
const _hoisted_1$g = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3075
3086
|
const _hoisted_2$a = ["innerHTML"];
|
|
3076
3087
|
const _hoisted_3$9 = ["innerHTML"];
|
|
3077
3088
|
const _hoisted_4$9 = ["innerHTML"];
|
|
@@ -3085,13 +3096,14 @@ const _hoisted_6$6 = {
|
|
|
3085
3096
|
const _hoisted_7$4 = { key: 1 };
|
|
3086
3097
|
|
|
3087
3098
|
|
|
3088
|
-
var script$
|
|
3099
|
+
var script$h = {
|
|
3089
3100
|
__name: 'ShAutoForm',
|
|
3090
3101
|
props: [
|
|
3091
3102
|
'action','successCallback','retainDataAfterSubmission',
|
|
3092
3103
|
'successMessage','fields','customComponents','placeHolders',
|
|
3093
3104
|
'formClasses',
|
|
3094
3105
|
'helperTexts','labels','data',
|
|
3106
|
+
'formClass',
|
|
3095
3107
|
'actionLabel',
|
|
3096
3108
|
'textAreas',
|
|
3097
3109
|
'currentData',
|
|
@@ -3117,13 +3129,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3117
3129
|
const defaultPhones = ['phone'];
|
|
3118
3130
|
const defaultEmails = ['email'];
|
|
3119
3131
|
const formComponents = inject('formComponents');
|
|
3120
|
-
const TextComponent = formComponents.text ?? script$
|
|
3121
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3122
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3123
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3124
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3125
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3126
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3132
|
+
const TextComponent = formComponents.text ?? script$l;
|
|
3133
|
+
const TextAreaComponent = formComponents.textArea ?? script$k;
|
|
3134
|
+
const EmailComponent = formComponents.email ?? script$n;
|
|
3135
|
+
const PhoneComponent = formComponents.phone ?? script$r;
|
|
3136
|
+
const NumberComponent = formComponents.number ?? script$m;
|
|
3137
|
+
const SelectComponent = formComponents.select ?? script$j;
|
|
3138
|
+
const PasswordComponent = formComponents.password ?? script$i;
|
|
3127
3139
|
if(props.customComponents && props.customComponents[field]) {
|
|
3128
3140
|
return props.customComponents[field]
|
|
3129
3141
|
}
|
|
@@ -3135,16 +3147,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3135
3147
|
}
|
|
3136
3148
|
else
|
|
3137
3149
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3138
|
-
return formComponents.textArea ?? script$
|
|
3150
|
+
return formComponents.textArea ?? script$k
|
|
3139
3151
|
} else
|
|
3140
3152
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3141
|
-
return formComponents.email ?? script$
|
|
3153
|
+
return formComponents.email ?? script$n
|
|
3142
3154
|
} else
|
|
3143
3155
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3144
|
-
return formComponents.phone ?? script$
|
|
3156
|
+
return formComponents.phone ?? script$r
|
|
3145
3157
|
} else
|
|
3146
3158
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3147
|
-
return formComponents.number ?? script$
|
|
3159
|
+
return formComponents.number ?? script$m
|
|
3148
3160
|
}
|
|
3149
3161
|
// else
|
|
3150
3162
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3153,14 +3165,14 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3153
3165
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3154
3166
|
// return formComponents.date ?? DateInput
|
|
3155
3167
|
// }
|
|
3156
|
-
return formComponents.text ?? script$
|
|
3168
|
+
return formComponents.text ?? script$l
|
|
3157
3169
|
};
|
|
3158
3170
|
const shFormElementClasses = ref(null);
|
|
3159
3171
|
shFormElementClasses.value = inject('shFormElementClasses');
|
|
3160
3172
|
const shAutoForm = ref(null);
|
|
3161
3173
|
const closeModal = e => {
|
|
3162
3174
|
setTimeout(() => {
|
|
3163
|
-
const modal = script$
|
|
3175
|
+
const modal = script$h.value.closest('.modal-dialog');
|
|
3164
3176
|
if(modal){
|
|
3165
3177
|
const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
|
|
3166
3178
|
closeBtn && closeBtn.click();
|
|
@@ -3256,11 +3268,11 @@ onMounted((ev)=>{
|
|
|
3256
3268
|
|
|
3257
3269
|
return (_ctx, _cache) => {
|
|
3258
3270
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3259
|
-
_hoisted_1$
|
|
3271
|
+
_hoisted_1$g,
|
|
3260
3272
|
createElementVNode("form", {
|
|
3273
|
+
class: normalizeClass([__props.formClass, "sh-form"]),
|
|
3261
3274
|
ref_key: "shAutoForm",
|
|
3262
3275
|
ref: shAutoForm,
|
|
3263
|
-
class: "sh-form",
|
|
3264
3276
|
onSubmit: _cache[0] || (_cache[0] = e => submitForm(e))
|
|
3265
3277
|
}, [
|
|
3266
3278
|
(openBlock(true), createElementBlock(Fragment, null, renderList(formFields.value, (field, index) => {
|
|
@@ -3324,19 +3336,19 @@ return (_ctx, _cache) => {
|
|
|
3324
3336
|
: createCommentVNode("v-if", true)
|
|
3325
3337
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_5$7)
|
|
3326
3338
|
], 2 /* CLASS */)
|
|
3327
|
-
],
|
|
3339
|
+
], 34 /* CLASS, HYDRATE_EVENTS */)
|
|
3328
3340
|
], 64 /* STABLE_FRAGMENT */))
|
|
3329
3341
|
}
|
|
3330
3342
|
}
|
|
3331
3343
|
|
|
3332
3344
|
};
|
|
3333
3345
|
|
|
3334
|
-
script$
|
|
3346
|
+
script$h.__file = "src/lib/components/ShAutoForm.vue";
|
|
3335
3347
|
|
|
3336
|
-
const _hoisted_1$
|
|
3348
|
+
const _hoisted_1$f = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3337
3349
|
const _hoisted_2$9 = { class: "dropdown" };
|
|
3338
3350
|
|
|
3339
|
-
var script$
|
|
3351
|
+
var script$g = {
|
|
3340
3352
|
__name: 'ShDropDownForm',
|
|
3341
3353
|
props: ['action',
|
|
3342
3354
|
'classes',
|
|
@@ -3366,7 +3378,7 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3366
3378
|
|
|
3367
3379
|
return (_ctx, _cache) => {
|
|
3368
3380
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3369
|
-
_hoisted_1$
|
|
3381
|
+
_hoisted_1$f,
|
|
3370
3382
|
createElementVNode("div", _hoisted_2$9, [
|
|
3371
3383
|
createElementVNode("a", {
|
|
3372
3384
|
class: normalizeClass(unref(btnClass)),
|
|
@@ -3383,7 +3395,7 @@ return (_ctx, _cache) => {
|
|
|
3383
3395
|
class: "dropdown-menu px-2 py-1",
|
|
3384
3396
|
"aria-labelledby": dropdownId
|
|
3385
3397
|
}, [
|
|
3386
|
-
createVNode(script$
|
|
3398
|
+
createVNode(script$o, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3387
3399
|
])
|
|
3388
3400
|
])
|
|
3389
3401
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3392,16 +3404,9 @@ return (_ctx, _cache) => {
|
|
|
3392
3404
|
|
|
3393
3405
|
};
|
|
3394
3406
|
|
|
3395
|
-
script$
|
|
3407
|
+
script$g.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3396
3408
|
|
|
3397
|
-
|
|
3398
|
-
name: 'ShModal',
|
|
3399
|
-
props: ['modalTitle', 'modalId', 'modalSize'],
|
|
3400
|
-
components: {
|
|
3401
|
-
}
|
|
3402
|
-
};
|
|
3403
|
-
|
|
3404
|
-
const _hoisted_1$c = ["id"];
|
|
3409
|
+
const _hoisted_1$e = ["id"];
|
|
3405
3410
|
const _hoisted_2$8 = { class: "modal-content" };
|
|
3406
3411
|
const _hoisted_3$8 = { class: "modal-header" };
|
|
3407
3412
|
const _hoisted_4$8 = { class: "modal-title" };
|
|
@@ -3413,18 +3418,46 @@ const _hoisted_5$6 = /*#__PURE__*/createElementVNode("button", {
|
|
|
3413
3418
|
const _hoisted_6$5 = { class: "modal-body" };
|
|
3414
3419
|
const _hoisted_7$3 = { class: "section" };
|
|
3415
3420
|
|
|
3416
|
-
|
|
3421
|
+
var script$f = {
|
|
3422
|
+
__name: 'ShModal',
|
|
3423
|
+
props: {
|
|
3424
|
+
modalId: {
|
|
3425
|
+
required: true,
|
|
3426
|
+
type: String
|
|
3427
|
+
},
|
|
3428
|
+
modalTitle: {
|
|
3429
|
+
type: String
|
|
3430
|
+
},
|
|
3431
|
+
modalSize: {
|
|
3432
|
+
type: String
|
|
3433
|
+
}
|
|
3434
|
+
},
|
|
3435
|
+
emits: ['modalClosed'],
|
|
3436
|
+
setup(__props, { emit }) {
|
|
3437
|
+
|
|
3438
|
+
const props = __props;
|
|
3439
|
+
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
onMounted(()=>{
|
|
3443
|
+
const modal = document.getElementById(props.modalId);
|
|
3444
|
+
modal.addEventListener('hidden.bs.modal', event => {
|
|
3445
|
+
event.target.id == props.modalId && emit('modalClosed');
|
|
3446
|
+
});
|
|
3447
|
+
});
|
|
3448
|
+
|
|
3449
|
+
return (_ctx, _cache) => {
|
|
3417
3450
|
return (openBlock(), createElementBlock("div", {
|
|
3418
3451
|
class: "modal fade",
|
|
3419
|
-
id:
|
|
3452
|
+
id: __props.modalId,
|
|
3420
3453
|
"aria-hidden": "true"
|
|
3421
3454
|
}, [
|
|
3422
3455
|
createElementVNode("div", {
|
|
3423
|
-
class: normalizeClass(["modal-dialog", `modal-${
|
|
3456
|
+
class: normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
|
|
3424
3457
|
}, [
|
|
3425
3458
|
createElementVNode("div", _hoisted_2$8, [
|
|
3426
3459
|
createElementVNode("div", _hoisted_3$8, [
|
|
3427
|
-
createElementVNode("h3", _hoisted_4$8, toDisplayString(
|
|
3460
|
+
createElementVNode("h3", _hoisted_4$8, toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3428
3461
|
_hoisted_5$6
|
|
3429
3462
|
]),
|
|
3430
3463
|
createElementVNode("div", _hoisted_6$5, [
|
|
@@ -3434,15 +3467,17 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3434
3467
|
])
|
|
3435
3468
|
])
|
|
3436
3469
|
], 2 /* CLASS */)
|
|
3437
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3470
|
+
], 8 /* PROPS */, _hoisted_1$e))
|
|
3471
|
+
}
|
|
3438
3472
|
}
|
|
3439
3473
|
|
|
3440
|
-
|
|
3441
|
-
script$d.__file = "src/lib/components/ShModal.vue";
|
|
3474
|
+
};
|
|
3442
3475
|
|
|
3443
|
-
|
|
3476
|
+
script$f.__file = "src/lib/components/ShModal.vue";
|
|
3444
3477
|
|
|
3445
|
-
|
|
3478
|
+
const _hoisted_1$d = ["href"];
|
|
3479
|
+
|
|
3480
|
+
var script$e = {
|
|
3446
3481
|
__name: 'ShModalForm',
|
|
3447
3482
|
props: ['action',
|
|
3448
3483
|
'classes',
|
|
@@ -3481,13 +3516,13 @@ return (_ctx, _cache) => {
|
|
|
3481
3516
|
"data-bs-toggle": "modal"
|
|
3482
3517
|
}, [
|
|
3483
3518
|
renderSlot(_ctx.$slots, "default")
|
|
3484
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3485
|
-
createVNode(script$
|
|
3519
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$d),
|
|
3520
|
+
createVNode(script$f, {
|
|
3486
3521
|
"modal-id": modalId,
|
|
3487
3522
|
"modal-title": __props.modalTitle
|
|
3488
3523
|
}, {
|
|
3489
3524
|
default: withCtx(() => [
|
|
3490
|
-
createVNode(script$
|
|
3525
|
+
createVNode(script$o, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3491
3526
|
]),
|
|
3492
3527
|
_: 1 /* STABLE */
|
|
3493
3528
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3497,11 +3532,11 @@ return (_ctx, _cache) => {
|
|
|
3497
3532
|
|
|
3498
3533
|
};
|
|
3499
3534
|
|
|
3500
|
-
script$
|
|
3535
|
+
script$e.__file = "src/lib/components/ShModalForm.vue";
|
|
3501
3536
|
|
|
3502
|
-
const _hoisted_1$
|
|
3537
|
+
const _hoisted_1$c = ["href"];
|
|
3503
3538
|
|
|
3504
|
-
var script$
|
|
3539
|
+
var script$d = {
|
|
3505
3540
|
__name: 'ShModalFormAuto',
|
|
3506
3541
|
props: ['action',
|
|
3507
3542
|
'classes',
|
|
@@ -3541,13 +3576,13 @@ return (_ctx, _cache) => {
|
|
|
3541
3576
|
"data-bs-toggle": "modal"
|
|
3542
3577
|
}, [
|
|
3543
3578
|
renderSlot(_ctx.$slots, "default")
|
|
3544
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3545
|
-
createVNode(script$
|
|
3579
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$c),
|
|
3580
|
+
createVNode(script$f, {
|
|
3546
3581
|
"modal-id": modalId,
|
|
3547
3582
|
"modal-title": __props.modalTitle
|
|
3548
3583
|
}, {
|
|
3549
3584
|
default: withCtx(() => [
|
|
3550
|
-
createVNode(script$
|
|
3585
|
+
createVNode(script$h, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3551
3586
|
]),
|
|
3552
3587
|
_: 1 /* STABLE */
|
|
3553
3588
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3557,26 +3592,9 @@ return (_ctx, _cache) => {
|
|
|
3557
3592
|
|
|
3558
3593
|
};
|
|
3559
3594
|
|
|
3560
|
-
script$
|
|
3561
|
-
|
|
3562
|
-
var script$a = {
|
|
3563
|
-
name: 'ShCanvas',
|
|
3564
|
-
props: ['canvasTitle', 'canvasId', 'position','canvasSize'],
|
|
3565
|
-
components: {
|
|
3566
|
-
},
|
|
3567
|
-
data () {
|
|
3568
|
-
return {
|
|
3569
|
-
side: this.position === undefined ? 'offcanvas-start' : 'offcanvas-' + this.position
|
|
3570
|
-
}
|
|
3571
|
-
},
|
|
3572
|
-
methods: {
|
|
3573
|
-
offcanvasClosed: function () {
|
|
3574
|
-
this.$emit('offcanvasClosed');
|
|
3575
|
-
}
|
|
3576
|
-
}
|
|
3577
|
-
};
|
|
3595
|
+
script$d.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3578
3596
|
|
|
3579
|
-
const _hoisted_1$
|
|
3597
|
+
const _hoisted_1$b = ["id"];
|
|
3580
3598
|
const _hoisted_2$7 = { class: "offcanvas-header" };
|
|
3581
3599
|
const _hoisted_3$7 = {
|
|
3582
3600
|
class: "offcanvas-title",
|
|
@@ -3584,20 +3602,57 @@ const _hoisted_3$7 = {
|
|
|
3584
3602
|
};
|
|
3585
3603
|
const _hoisted_4$7 = { class: "offcanvas-body" };
|
|
3586
3604
|
|
|
3587
|
-
|
|
3605
|
+
var script$c = {
|
|
3606
|
+
__name: 'ShCanvas',
|
|
3607
|
+
props: {
|
|
3608
|
+
canvasId: {
|
|
3609
|
+
required: true,
|
|
3610
|
+
type: String
|
|
3611
|
+
},
|
|
3612
|
+
canvasTitle: {
|
|
3613
|
+
type: String
|
|
3614
|
+
},
|
|
3615
|
+
position: {
|
|
3616
|
+
type: String
|
|
3617
|
+
},
|
|
3618
|
+
canvasSize: {
|
|
3619
|
+
type: String
|
|
3620
|
+
},
|
|
3621
|
+
side: {
|
|
3622
|
+
type: String
|
|
3623
|
+
}
|
|
3624
|
+
},
|
|
3625
|
+
emits: ['canvasClosed'],
|
|
3626
|
+
setup(__props, { emit }) {
|
|
3627
|
+
|
|
3628
|
+
const props = __props;
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
const pos = ref(props.position ?? props.side);
|
|
3633
|
+
const canvasSide = ref(pos.value ? `offcanvas-${pos.value}` : 'offcanvas-start');
|
|
3634
|
+
|
|
3635
|
+
onMounted(()=>{
|
|
3636
|
+
const canvas = document.getElementById(props.canvasId);
|
|
3637
|
+
canvas.addEventListener('hidden.bs.offcanvas', event => {
|
|
3638
|
+
event.target.id === props.canvasId && emit('canvasClosed');
|
|
3639
|
+
});
|
|
3640
|
+
});
|
|
3641
|
+
|
|
3642
|
+
return (_ctx, _cache) => {
|
|
3588
3643
|
return (openBlock(), createElementBlock("div", {
|
|
3589
|
-
class: normalizeClass(["offcanvas",
|
|
3644
|
+
class: normalizeClass(["offcanvas", canvasSide.value +' '+ __props.canvasSize + '']),
|
|
3590
3645
|
"data-bs-scroll": "true",
|
|
3591
3646
|
tabindex: "-1",
|
|
3592
|
-
id:
|
|
3647
|
+
id: __props.canvasId,
|
|
3593
3648
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
3594
3649
|
}, [
|
|
3595
3650
|
createElementVNode("div", _hoisted_2$7, [
|
|
3596
|
-
createElementVNode("h5", _hoisted_3$7, toDisplayString(
|
|
3651
|
+
createElementVNode("h5", _hoisted_3$7, toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
3597
3652
|
createElementVNode("button", {
|
|
3598
3653
|
type: "button",
|
|
3599
3654
|
ref: "closecanvas",
|
|
3600
|
-
onClick: _cache[0] || (_cache[0] = (...args) => (
|
|
3655
|
+
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.offcanvasClosed && _ctx.offcanvasClosed(...args))),
|
|
3601
3656
|
class: "btn-close text-reset",
|
|
3602
3657
|
"data-bs-dismiss": "offcanvas",
|
|
3603
3658
|
"aria-label": "Close"
|
|
@@ -3606,13 +3661,15 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3606
3661
|
createElementVNode("div", _hoisted_4$7, [
|
|
3607
3662
|
renderSlot(_ctx.$slots, "default")
|
|
3608
3663
|
])
|
|
3609
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3664
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$b))
|
|
3665
|
+
}
|
|
3610
3666
|
}
|
|
3611
3667
|
|
|
3612
|
-
|
|
3613
|
-
script$a.__file = "src/lib/components/ShCanvas.vue";
|
|
3668
|
+
};
|
|
3614
3669
|
|
|
3615
|
-
|
|
3670
|
+
script$c.__file = "src/lib/components/ShCanvas.vue";
|
|
3671
|
+
|
|
3672
|
+
var script$b = {
|
|
3616
3673
|
name: 'Pagination',
|
|
3617
3674
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3618
3675
|
data () {
|
|
@@ -3683,7 +3740,7 @@ var script$9 = {
|
|
|
3683
3740
|
}
|
|
3684
3741
|
};
|
|
3685
3742
|
|
|
3686
|
-
const _hoisted_1$
|
|
3743
|
+
const _hoisted_1$a = { key: 0 };
|
|
3687
3744
|
const _hoisted_2$6 = { class: "record_count_body mb-3" };
|
|
3688
3745
|
const _hoisted_3$6 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
3689
3746
|
const _hoisted_4$6 = /*#__PURE__*/createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
@@ -3729,7 +3786,7 @@ const _hoisted_22$1 = {
|
|
|
3729
3786
|
|
|
3730
3787
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3731
3788
|
return ($props.paginationStyle !== 'loadMore')
|
|
3732
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3789
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
3733
3790
|
createElementVNode("div", _hoisted_2$6, [
|
|
3734
3791
|
_hoisted_3$6,
|
|
3735
3792
|
createTextVNode(" "),
|
|
@@ -3801,17 +3858,17 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3801
3858
|
]))
|
|
3802
3859
|
}
|
|
3803
3860
|
|
|
3804
|
-
script$
|
|
3805
|
-
script$
|
|
3861
|
+
script$b.render = render$2;
|
|
3862
|
+
script$b.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3806
3863
|
|
|
3807
|
-
const _hoisted_1$
|
|
3864
|
+
const _hoisted_1$9 = /*#__PURE__*/createElementVNode("span", {
|
|
3808
3865
|
class: "spinner-border spinner-border-sm me-1",
|
|
3809
3866
|
role: "status",
|
|
3810
3867
|
"aria-hidden": "true"
|
|
3811
3868
|
}, null, -1 /* HOISTED */);
|
|
3812
3869
|
|
|
3813
3870
|
|
|
3814
|
-
var script$
|
|
3871
|
+
var script$a = {
|
|
3815
3872
|
__name: 'ShConfirmAction',
|
|
3816
3873
|
props: {
|
|
3817
3874
|
data: Object,
|
|
@@ -3884,7 +3941,7 @@ return (_ctx, _cache) => {
|
|
|
3884
3941
|
}, [
|
|
3885
3942
|
(processing.value)
|
|
3886
3943
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3887
|
-
_hoisted_1$
|
|
3944
|
+
_hoisted_1$9,
|
|
3888
3945
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
3889
3946
|
], 64 /* STABLE_FRAGMENT */))
|
|
3890
3947
|
: createCommentVNode("v-if", true),
|
|
@@ -3897,15 +3954,15 @@ return (_ctx, _cache) => {
|
|
|
3897
3954
|
|
|
3898
3955
|
};
|
|
3899
3956
|
|
|
3900
|
-
script$
|
|
3957
|
+
script$a.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3901
3958
|
|
|
3902
|
-
const _hoisted_1$
|
|
3959
|
+
const _hoisted_1$8 = /*#__PURE__*/createElementVNode("span", {
|
|
3903
3960
|
class: "spinner-border spinner-border-sm me-1",
|
|
3904
3961
|
role: "status",
|
|
3905
3962
|
"aria-hidden": "true"
|
|
3906
3963
|
}, null, -1 /* HOISTED */);
|
|
3907
3964
|
|
|
3908
|
-
var script$
|
|
3965
|
+
var script$9 = {
|
|
3909
3966
|
__name: 'ShSilentAction',
|
|
3910
3967
|
props: {
|
|
3911
3968
|
data: Object,
|
|
@@ -3980,7 +4037,7 @@ return (_ctx, _cache) => {
|
|
|
3980
4037
|
}, [
|
|
3981
4038
|
(processing.value)
|
|
3982
4039
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3983
|
-
_hoisted_1$
|
|
4040
|
+
_hoisted_1$8,
|
|
3984
4041
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
3985
4042
|
], 64 /* STABLE_FRAGMENT */))
|
|
3986
4043
|
: createCommentVNode("v-if", true),
|
|
@@ -3993,9 +4050,9 @@ return (_ctx, _cache) => {
|
|
|
3993
4050
|
|
|
3994
4051
|
};
|
|
3995
4052
|
|
|
3996
|
-
script$
|
|
4053
|
+
script$9.__file = "src/lib/components/ShSilentAction.vue";
|
|
3997
4054
|
|
|
3998
|
-
var script$
|
|
4055
|
+
var script$8 = {
|
|
3999
4056
|
name: 'sh-table',
|
|
4000
4057
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4001
4058
|
inject: ['channel'],
|
|
@@ -4034,14 +4091,12 @@ var script$6 = {
|
|
|
4034
4091
|
methods: {
|
|
4035
4092
|
userTyping: function(){
|
|
4036
4093
|
if (this.timeOut){
|
|
4037
|
-
console.log('timer cleared');
|
|
4038
4094
|
clearTimeout(this.timeOut);
|
|
4039
4095
|
}
|
|
4040
4096
|
const self = this;
|
|
4041
4097
|
this.timeOut = setTimeout(()=>{
|
|
4042
|
-
console.log('Searching');
|
|
4043
4098
|
self.reloadData(1);
|
|
4044
|
-
},
|
|
4099
|
+
},800);
|
|
4045
4100
|
},
|
|
4046
4101
|
cleanCanvasProps: function (actions) {
|
|
4047
4102
|
let replaced = actions;
|
|
@@ -4076,7 +4131,6 @@ var script$6 = {
|
|
|
4076
4131
|
this.reloadData();
|
|
4077
4132
|
},
|
|
4078
4133
|
getLinkClass: function (config) {
|
|
4079
|
-
console.log(config);
|
|
4080
4134
|
if (typeof config === 'object') {
|
|
4081
4135
|
return config.class
|
|
4082
4136
|
}
|
|
@@ -4125,10 +4179,10 @@ var script$6 = {
|
|
|
4125
4179
|
},
|
|
4126
4180
|
replaceLinkUrl: function (path, obj) {
|
|
4127
4181
|
if (typeof path === 'object') {
|
|
4128
|
-
path = path.link;
|
|
4182
|
+
path = path.link ?? path.url;
|
|
4129
4183
|
}
|
|
4130
4184
|
var matches = path.match(/\{(.*?)\}/g);
|
|
4131
|
-
matches.forEach(key => {
|
|
4185
|
+
matches && matches.forEach(key => {
|
|
4132
4186
|
key = key.replace('{', '');
|
|
4133
4187
|
key = key.replace('}', '');
|
|
4134
4188
|
path = path.replace(`{${key}}`, obj[key]);
|
|
@@ -4167,7 +4221,6 @@ var script$6 = {
|
|
|
4167
4221
|
// window.open(this.appUrl + 'external-download?file=' + res.data.file + '&name=' + res.data.name, '_blank').focus()
|
|
4168
4222
|
}
|
|
4169
4223
|
}).catch(reason => {
|
|
4170
|
-
console.log(reason);
|
|
4171
4224
|
this.downloading = false;
|
|
4172
4225
|
const error = (typeof reason.response === 'undefined') ? 'Error getting data from backend' : `${reason.response.status}:${reason.response.statusText}`;
|
|
4173
4226
|
shRepo.swalError('Error', error);
|
|
@@ -4212,9 +4265,6 @@ var script$6 = {
|
|
|
4212
4265
|
this.pagination_data.displayCount = totalShown;
|
|
4213
4266
|
const scrollingElement = (document.scrollingElement || document.body);
|
|
4214
4267
|
scrollingElement.scrollTop = scrollingElement.scrollHeight;
|
|
4215
|
-
// const all = []
|
|
4216
|
-
// console.log(all.push(response.data))
|
|
4217
|
-
// console.log(this.records, response.data)
|
|
4218
4268
|
} else {
|
|
4219
4269
|
this.records = response.data;
|
|
4220
4270
|
}
|
|
@@ -4240,10 +4290,10 @@ var script$6 = {
|
|
|
4240
4290
|
this.reloadData();
|
|
4241
4291
|
},
|
|
4242
4292
|
components: {
|
|
4243
|
-
ShSilentAction: script$
|
|
4244
|
-
ShConfirmAction: script$
|
|
4245
|
-
ShCanvas: script$
|
|
4246
|
-
pagination: script$
|
|
4293
|
+
ShSilentAction: script$9,
|
|
4294
|
+
ShConfirmAction: script$a,
|
|
4295
|
+
ShCanvas: script$c,
|
|
4296
|
+
pagination: script$b
|
|
4247
4297
|
},
|
|
4248
4298
|
computed: {
|
|
4249
4299
|
windowWidth: function () {
|
|
@@ -4261,7 +4311,7 @@ var script$6 = {
|
|
|
4261
4311
|
}
|
|
4262
4312
|
};
|
|
4263
4313
|
|
|
4264
|
-
const _hoisted_1$
|
|
4314
|
+
const _hoisted_1$7 = { class: "auto-table mt-2" };
|
|
4265
4315
|
const _hoisted_2$5 = {
|
|
4266
4316
|
key: 0,
|
|
4267
4317
|
class: "col-md-4 mb-2"
|
|
@@ -4424,7 +4474,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4424
4474
|
const _component_pagination = resolveComponent("pagination");
|
|
4425
4475
|
const _component_sh_canvas = resolveComponent("sh-canvas");
|
|
4426
4476
|
|
|
4427
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4477
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
4428
4478
|
($props.hasDownload)
|
|
4429
4479
|
? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
4430
4480
|
createElementVNode("button", {
|
|
@@ -4878,10 +4928,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4878
4928
|
]))
|
|
4879
4929
|
}
|
|
4880
4930
|
|
|
4881
|
-
script$
|
|
4882
|
-
script$
|
|
4931
|
+
script$8.render = render$1;
|
|
4932
|
+
script$8.__file = "src/lib/components/ShTable.vue";
|
|
4883
4933
|
|
|
4884
|
-
var script$
|
|
4934
|
+
var script$7 = {
|
|
4885
4935
|
name: 'ShTabs',
|
|
4886
4936
|
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
|
|
4887
4937
|
data () {
|
|
@@ -5002,10 +5052,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5002
5052
|
], 64 /* STABLE_FRAGMENT */))
|
|
5003
5053
|
}
|
|
5004
5054
|
|
|
5005
|
-
script$
|
|
5006
|
-
script$
|
|
5055
|
+
script$7.render = render;
|
|
5056
|
+
script$7.__file = "src/lib/components/ShTabs.vue";
|
|
5007
5057
|
|
|
5008
|
-
const _hoisted_1$
|
|
5058
|
+
const _hoisted_1$6 = {
|
|
5009
5059
|
class: "nav nav-tabs",
|
|
5010
5060
|
role: "tablist"
|
|
5011
5061
|
};
|
|
@@ -5018,7 +5068,7 @@ const _hoisted_4$4 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, n
|
|
|
5018
5068
|
const _hoisted_5$4 = { class: "sh_tab_count" };
|
|
5019
5069
|
const _hoisted_6$3 = { class: "tab-content" };
|
|
5020
5070
|
|
|
5021
|
-
var script$
|
|
5071
|
+
var script$6 = {
|
|
5022
5072
|
__name: 'ShDynamicTabs',
|
|
5023
5073
|
props: ['tabs','data'],
|
|
5024
5074
|
setup(__props) {
|
|
@@ -5043,7 +5093,7 @@ function setTab(tab){
|
|
|
5043
5093
|
|
|
5044
5094
|
return (_ctx, _cache) => {
|
|
5045
5095
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
5046
|
-
createElementVNode("ul", _hoisted_1$
|
|
5096
|
+
createElementVNode("ul", _hoisted_1$6, [
|
|
5047
5097
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
|
|
5048
5098
|
return (openBlock(), createElementBlock("li", _hoisted_2$4, [
|
|
5049
5099
|
createElementVNode("button", {
|
|
@@ -5072,7 +5122,64 @@ return (_ctx, _cache) => {
|
|
|
5072
5122
|
|
|
5073
5123
|
};
|
|
5074
5124
|
|
|
5075
|
-
script$
|
|
5125
|
+
script$6.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5126
|
+
|
|
5127
|
+
const _hoisted_1$5 = ["href"];
|
|
5128
|
+
|
|
5129
|
+
|
|
5130
|
+
var script$5 = {
|
|
5131
|
+
__name: 'ShModalBtn',
|
|
5132
|
+
props: {
|
|
5133
|
+
modalId: {
|
|
5134
|
+
required: true
|
|
5135
|
+
}
|
|
5136
|
+
},
|
|
5137
|
+
setup(__props) {
|
|
5138
|
+
|
|
5139
|
+
|
|
5140
|
+
|
|
5141
|
+
return (_ctx, _cache) => {
|
|
5142
|
+
return (openBlock(), createElementBlock("a", {
|
|
5143
|
+
href: `#${__props.modalId}`,
|
|
5144
|
+
"data-bs-toggle": "modal"
|
|
5145
|
+
}, [
|
|
5146
|
+
renderSlot(_ctx.$slots, "default")
|
|
5147
|
+
], 8 /* PROPS */, _hoisted_1$5))
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
|
|
5151
|
+
};
|
|
5152
|
+
|
|
5153
|
+
script$5.__file = "src/lib/components/ShModalBtn.vue";
|
|
5154
|
+
|
|
5155
|
+
const _hoisted_1$4 = ["href"];
|
|
5156
|
+
|
|
5157
|
+
|
|
5158
|
+
var script$4 = {
|
|
5159
|
+
__name: 'ShCanvasBtn',
|
|
5160
|
+
props: {
|
|
5161
|
+
canvasId: {
|
|
5162
|
+
required: true,
|
|
5163
|
+
type: String
|
|
5164
|
+
}
|
|
5165
|
+
},
|
|
5166
|
+
setup(__props) {
|
|
5167
|
+
|
|
5168
|
+
|
|
5169
|
+
|
|
5170
|
+
return (_ctx, _cache) => {
|
|
5171
|
+
return (openBlock(), createElementBlock("a", {
|
|
5172
|
+
href: `#${__props.canvasId}`,
|
|
5173
|
+
"data-bs-toggle": "offcanvas"
|
|
5174
|
+
}, [
|
|
5175
|
+
renderSlot(_ctx.$slots, "default")
|
|
5176
|
+
], 8 /* PROPS */, _hoisted_1$4))
|
|
5177
|
+
}
|
|
5178
|
+
}
|
|
5179
|
+
|
|
5180
|
+
};
|
|
5181
|
+
|
|
5182
|
+
script$4.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5076
5183
|
|
|
5077
5184
|
const useUserStore = defineStore('user-store', {
|
|
5078
5185
|
state: () => ({
|
|
@@ -5368,7 +5475,7 @@ return (_ctx, _cache) => {
|
|
|
5368
5475
|
(permissionsChanged.value)
|
|
5369
5476
|
? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
5370
5477
|
createElementVNode("div", _hoisted_17, [
|
|
5371
|
-
createVNode(script$
|
|
5478
|
+
createVNode(script$9, {
|
|
5372
5479
|
onSuccess: permissionsUpdated,
|
|
5373
5480
|
url: `sh-departments/department/permissions/${unref(departmentId)}/${selectedModule.value}`,
|
|
5374
5481
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5437,7 +5544,7 @@ return (_ctx, _cache) => {
|
|
|
5437
5544
|
_hoisted_5$2,
|
|
5438
5545
|
createTextVNode(" ADD DEPARTMENT")
|
|
5439
5546
|
], 512 /* NEED_PATCH */),
|
|
5440
|
-
createVNode(script$
|
|
5547
|
+
createVNode(script$8, {
|
|
5441
5548
|
headers: ['id','name','description', 'created_at'],
|
|
5442
5549
|
"end-point": "sh-departments/list",
|
|
5443
5550
|
actions: {
|
|
@@ -5451,12 +5558,12 @@ return (_ctx, _cache) => {
|
|
|
5451
5558
|
]
|
|
5452
5559
|
}
|
|
5453
5560
|
}),
|
|
5454
|
-
createVNode(script$
|
|
5561
|
+
createVNode(script$f, {
|
|
5455
5562
|
"modal-id": "sh-department_modal",
|
|
5456
5563
|
"modal-title": "Department Form"
|
|
5457
5564
|
}, {
|
|
5458
5565
|
default: withCtx(() => [
|
|
5459
|
-
createVNode(script$
|
|
5566
|
+
createVNode(script$o, {
|
|
5460
5567
|
"success-callback": "departmentAdded",
|
|
5461
5568
|
onDepartmentAdded: departmentAdded,
|
|
5462
5569
|
action: "admin/departments/store",
|
|
@@ -5590,7 +5697,7 @@ return (_ctx, _cache) => {
|
|
|
5590
5697
|
createElementVNode("div", _hoisted_2$1, [
|
|
5591
5698
|
_hoisted_3$1,
|
|
5592
5699
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
5593
|
-
createVNode(script$
|
|
5700
|
+
createVNode(script$8, {
|
|
5594
5701
|
actions: {
|
|
5595
5702
|
label: 'Actions',
|
|
5596
5703
|
actions: [
|
|
@@ -5610,12 +5717,12 @@ return (_ctx, _cache) => {
|
|
|
5610
5717
|
headers: ['id',showModule,'created_at'],
|
|
5611
5718
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
5612
5719
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
5613
|
-
createVNode(script$
|
|
5720
|
+
createVNode(script$f, {
|
|
5614
5721
|
"modal-id": "addModule",
|
|
5615
5722
|
"modal-title": "Add Module Department"
|
|
5616
5723
|
}, {
|
|
5617
5724
|
default: withCtx(() => [
|
|
5618
|
-
createVNode(script$
|
|
5725
|
+
createVNode(script$o, {
|
|
5619
5726
|
"reload-select-items": unref(reload),
|
|
5620
5727
|
"success-callback": moduleAdded,
|
|
5621
5728
|
"fill-selects": {
|
|
@@ -5637,7 +5744,7 @@ return (_ctx, _cache) => {
|
|
|
5637
5744
|
ref: permissionCanvasBtn,
|
|
5638
5745
|
"data-bs-toggle": "offcanvas"
|
|
5639
5746
|
}, null, 512 /* NEED_PATCH */),
|
|
5640
|
-
createVNode(script$
|
|
5747
|
+
createVNode(script$c, {
|
|
5641
5748
|
"canvas-id": "permissionsCanvas",
|
|
5642
5749
|
position: "end enlarged",
|
|
5643
5750
|
"canvas-title": "Module Permissions"
|
|
@@ -5752,7 +5859,7 @@ return (_ctx, _cache) => {
|
|
|
5752
5859
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5753
5860
|
(section.value === 'login')
|
|
5754
5861
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
5755
|
-
createVNode(script$
|
|
5862
|
+
createVNode(script$o, {
|
|
5756
5863
|
class: "sh-login-form",
|
|
5757
5864
|
fields: ['email','password'],
|
|
5758
5865
|
"action-label": "Login",
|
|
@@ -5777,7 +5884,7 @@ return (_ctx, _cache) => {
|
|
|
5777
5884
|
(unref(registerSubTitle))
|
|
5778
5885
|
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
5779
5886
|
: createCommentVNode("v-if", true),
|
|
5780
|
-
createVNode(script$
|
|
5887
|
+
createVNode(script$o, {
|
|
5781
5888
|
class: "sh-login-form",
|
|
5782
5889
|
fields: unref(registrationFields),
|
|
5783
5890
|
"action-label": "Sign Up",
|
|
@@ -5824,7 +5931,7 @@ const ShFrontend = {
|
|
|
5824
5931
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
5825
5932
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
5826
5933
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
5827
|
-
options.formTextInput ?? script$
|
|
5934
|
+
options.formTextInput ?? script$l;
|
|
5828
5935
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
5829
5936
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
5830
5937
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -5869,4 +5976,4 @@ const ShFrontend = {
|
|
|
5869
5976
|
}
|
|
5870
5977
|
};
|
|
5871
5978
|
|
|
5872
|
-
export { countries as Countries, script$3 as ManagePermissions, script$
|
|
5979
|
+
export { countries as Countries, script$3 as ManagePermissions, script$h as ShAutoForm, script$c as ShCanvas, script$4 as ShCanvasBtn, script$a as ShConfirmAction, script$g as ShDropDownForm, script$6 as ShDynamicTabs, script$o as ShForm, ShFrontend, script$f as ShModal, script$5 as ShModalBtn, script$e as ShModalForm, script$d as ShModalFormAuto, script$r as ShPhone, script$9 as ShSilentAction, script$8 as ShTable, script$7 as ShTabs, shApis, shRepo, ShStorage as shStorage, useUserStore };
|