@iankibetsh/shframework 1.9.9 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.js +325 -317
- package/dist/library.mjs +309 -284
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -14,24 +14,6 @@ var bootstrap = require('bootstrap');
|
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
16
|
|
|
17
|
-
function _interopNamespace(e) {
|
|
18
|
-
if (e && e.__esModule) return e;
|
|
19
|
-
var n = Object.create(null);
|
|
20
|
-
if (e) {
|
|
21
|
-
Object.keys(e).forEach(function (k) {
|
|
22
|
-
if (k !== 'default') {
|
|
23
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return e[k]; }
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
n["default"] = e;
|
|
32
|
-
return Object.freeze(n);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
17
|
var Axios__default = /*#__PURE__*/_interopDefaultLegacy(Axios);
|
|
36
18
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
37
19
|
var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
|
|
@@ -1910,7 +1892,7 @@ const countries = [
|
|
|
1910
1892
|
}
|
|
1911
1893
|
];
|
|
1912
1894
|
|
|
1913
|
-
var script$
|
|
1895
|
+
var script$u = {
|
|
1914
1896
|
name: 'PhoneInput',
|
|
1915
1897
|
props: ['modelValue', 'country_code'],
|
|
1916
1898
|
data () {
|
|
@@ -1980,19 +1962,19 @@ var script$v = {
|
|
|
1980
1962
|
}
|
|
1981
1963
|
};
|
|
1982
1964
|
|
|
1983
|
-
const _hoisted_1$
|
|
1984
|
-
const _hoisted_2$
|
|
1965
|
+
const _hoisted_1$n = { class: "sh-phone mb-3" };
|
|
1966
|
+
const _hoisted_2$e = {
|
|
1985
1967
|
key: 0,
|
|
1986
1968
|
style: {"display":"contents"}
|
|
1987
1969
|
};
|
|
1988
|
-
const _hoisted_3$
|
|
1989
|
-
const _hoisted_4$
|
|
1970
|
+
const _hoisted_3$d = ["src"];
|
|
1971
|
+
const _hoisted_4$d = ["value"];
|
|
1990
1972
|
|
|
1991
|
-
function render$
|
|
1992
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1973
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1974
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
1993
1975
|
($data.selectedCountry)
|
|
1994
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
1995
|
-
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$
|
|
1976
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$e, [
|
|
1977
|
+
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
|
|
1996
1978
|
vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
|
|
1997
1979
|
]))
|
|
1998
1980
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2005,7 +1987,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2005
1987
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
2006
1988
|
value: country,
|
|
2007
1989
|
key: country.dialCode
|
|
2008
|
-
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1990
|
+
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
2009
1991
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2010
1992
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
2011
1993
|
[vue.vModelSelect, $data.selectedCountry]
|
|
@@ -2023,17 +2005,17 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2023
2005
|
]))
|
|
2024
2006
|
}
|
|
2025
2007
|
|
|
2026
|
-
script$
|
|
2027
|
-
script$
|
|
2008
|
+
script$u.render = render$3;
|
|
2009
|
+
script$u.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
2028
2010
|
|
|
2029
|
-
const _hoisted_1$
|
|
2011
|
+
const _hoisted_1$m = {
|
|
2030
2012
|
key: 0,
|
|
2031
2013
|
class: "dropdown sh-suggest"
|
|
2032
2014
|
};
|
|
2033
|
-
const _hoisted_2$
|
|
2034
|
-
const _hoisted_3$
|
|
2035
|
-
const _hoisted_4$
|
|
2036
|
-
const _hoisted_5$
|
|
2015
|
+
const _hoisted_2$d = ["id"];
|
|
2016
|
+
const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
2017
|
+
const _hoisted_4$c = ["onClick"];
|
|
2018
|
+
const _hoisted_5$9 = ["id"];
|
|
2037
2019
|
const _hoisted_6$8 = ["id", "aria-labelledby"];
|
|
2038
2020
|
const _hoisted_7$7 = { key: 0 };
|
|
2039
2021
|
const _hoisted_8$6 = ["onClick"];
|
|
@@ -2047,7 +2029,7 @@ const _hoisted_10$5 = {
|
|
|
2047
2029
|
};
|
|
2048
2030
|
|
|
2049
2031
|
|
|
2050
|
-
var script$
|
|
2032
|
+
var script$t = {
|
|
2051
2033
|
__name: 'ShSuggest',
|
|
2052
2034
|
props: ['fillSelects','modelValue'],
|
|
2053
2035
|
emits: ['update:modelValue'],
|
|
@@ -2128,7 +2110,7 @@ function filterData(e){
|
|
|
2128
2110
|
|
|
2129
2111
|
return (_ctx, _cache) => {
|
|
2130
2112
|
return (vue.unref(id))
|
|
2131
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2113
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
|
|
2132
2114
|
vue.createElementVNode("div", {
|
|
2133
2115
|
id: vue.unref(id),
|
|
2134
2116
|
"data-bs-toggle": "dropdown",
|
|
@@ -2137,14 +2119,14 @@ return (_ctx, _cache) => {
|
|
|
2137
2119
|
}, [
|
|
2138
2120
|
vue.createElementVNode("div", null, [
|
|
2139
2121
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
|
|
2140
|
-
return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$
|
|
2122
|
+
return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$c, [
|
|
2141
2123
|
vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
|
|
2142
2124
|
vue.createElementVNode("button", {
|
|
2143
2125
|
onClick: $event => (removeSuggestion(sgt.id)),
|
|
2144
2126
|
type: "button",
|
|
2145
2127
|
class: "btn-close border-start border-1 ms-1",
|
|
2146
2128
|
"aria-label": "Close"
|
|
2147
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
2129
|
+
}, null, 8 /* PROPS */, _hoisted_4$c)
|
|
2148
2130
|
]))
|
|
2149
2131
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2150
2132
|
]),
|
|
@@ -2154,8 +2136,8 @@ return (_ctx, _cache) => {
|
|
|
2154
2136
|
onClick: filterData,
|
|
2155
2137
|
onInput: filterData,
|
|
2156
2138
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2157
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$
|
|
2158
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
2139
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$9)
|
|
2140
|
+
], 8 /* PROPS */, _hoisted_2$d),
|
|
2159
2141
|
vue.createElementVNode("ul", {
|
|
2160
2142
|
class: "dropdown-menu w-100",
|
|
2161
2143
|
id: 'dropwdown_section' + vue.unref(id),
|
|
@@ -2188,15 +2170,15 @@ return (_ctx, _cache) => {
|
|
|
2188
2170
|
|
|
2189
2171
|
};
|
|
2190
2172
|
|
|
2191
|
-
script$
|
|
2192
|
-
script$
|
|
2173
|
+
script$t.__scopeId = "data-v-71cc9569";
|
|
2174
|
+
script$t.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2193
2175
|
|
|
2194
|
-
var script$
|
|
2176
|
+
var script$s = {
|
|
2195
2177
|
name: 'ShForm',
|
|
2196
2178
|
components: {
|
|
2197
|
-
PhoneInput: script$
|
|
2198
|
-
ShSuggest: script$
|
|
2199
|
-
ShPhone: script$
|
|
2179
|
+
PhoneInput: script$u,
|
|
2180
|
+
ShSuggest: script$t,
|
|
2181
|
+
ShPhone: script$u
|
|
2200
2182
|
},
|
|
2201
2183
|
props: [
|
|
2202
2184
|
'action',
|
|
@@ -2518,18 +2500,18 @@ var script$t = {
|
|
|
2518
2500
|
}
|
|
2519
2501
|
};
|
|
2520
2502
|
|
|
2521
|
-
const _hoisted_1$
|
|
2522
|
-
const _hoisted_2$
|
|
2503
|
+
const _hoisted_1$l = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2504
|
+
const _hoisted_2$c = {
|
|
2523
2505
|
ref: "ShAutoForm",
|
|
2524
2506
|
class: "sh-form"
|
|
2525
2507
|
};
|
|
2526
|
-
const _hoisted_3$
|
|
2508
|
+
const _hoisted_3$b = {
|
|
2527
2509
|
key: 0,
|
|
2528
2510
|
class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
|
|
2529
2511
|
role: "alert"
|
|
2530
2512
|
};
|
|
2531
|
-
const _hoisted_4$
|
|
2532
|
-
const _hoisted_5$
|
|
2513
|
+
const _hoisted_4$b = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2514
|
+
const _hoisted_5$8 = { key: 0 };
|
|
2533
2515
|
const _hoisted_6$7 = { key: 1 };
|
|
2534
2516
|
const _hoisted_7$6 = { class: "row" };
|
|
2535
2517
|
const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
@@ -2574,20 +2556,20 @@ const _hoisted_24$1 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
|
2574
2556
|
"aria-hidden": "true"
|
|
2575
2557
|
}, null, -1 /* HOISTED */);
|
|
2576
2558
|
|
|
2577
|
-
function render$
|
|
2559
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2578
2560
|
const _component_phone_input = vue.resolveComponent("phone-input");
|
|
2579
2561
|
const _component_ShSuggest = vue.resolveComponent("ShSuggest");
|
|
2580
2562
|
|
|
2581
2563
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2582
|
-
_hoisted_1$
|
|
2583
|
-
vue.createElementVNode("form", _hoisted_2$
|
|
2564
|
+
_hoisted_1$l,
|
|
2565
|
+
vue.createElementVNode("form", _hoisted_2$c, [
|
|
2584
2566
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2585
2567
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2586
2568
|
(_ctx.form_status == 3)
|
|
2587
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
2588
|
-
_hoisted_4$
|
|
2569
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
|
|
2570
|
+
_hoisted_4$b,
|
|
2589
2571
|
(_ctx.errorText)
|
|
2590
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
2572
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$8, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2591
2573
|
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
|
|
2592
2574
|
vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2593
2575
|
]))
|
|
@@ -2785,10 +2767,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2785
2767
|
], 64 /* STABLE_FRAGMENT */))
|
|
2786
2768
|
}
|
|
2787
2769
|
|
|
2788
|
-
script$
|
|
2789
|
-
script$
|
|
2770
|
+
script$s.render = render$2;
|
|
2771
|
+
script$s.__file = "src/lib/components/ShForm.vue";
|
|
2790
2772
|
|
|
2791
|
-
var script$
|
|
2773
|
+
var script$r = {
|
|
2792
2774
|
__name: 'EmailInput',
|
|
2793
2775
|
props: ['modelValue','label'],
|
|
2794
2776
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2828,12 +2810,12 @@ return (_ctx, _cache) => {
|
|
|
2828
2810
|
|
|
2829
2811
|
};
|
|
2830
2812
|
|
|
2831
|
-
script$
|
|
2813
|
+
script$r.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2832
2814
|
|
|
2833
|
-
const _hoisted_1$
|
|
2815
|
+
const _hoisted_1$k = ["min", "max"];
|
|
2834
2816
|
|
|
2835
2817
|
|
|
2836
|
-
var script$
|
|
2818
|
+
var script$q = {
|
|
2837
2819
|
__name: 'NumberInput',
|
|
2838
2820
|
props: ['modelValue','label','min','max'],
|
|
2839
2821
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2867,7 +2849,7 @@ return (_ctx, _cache) => {
|
|
|
2867
2849
|
onChange: modelValueUpdated,
|
|
2868
2850
|
onKeydown: modelValueUpdated,
|
|
2869
2851
|
onUpdated: modelValueUpdated
|
|
2870
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$
|
|
2852
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$k)), [
|
|
2871
2853
|
[vue.vModelText, inputModel.value]
|
|
2872
2854
|
])
|
|
2873
2855
|
}
|
|
@@ -2875,9 +2857,9 @@ return (_ctx, _cache) => {
|
|
|
2875
2857
|
|
|
2876
2858
|
};
|
|
2877
2859
|
|
|
2878
|
-
script$
|
|
2860
|
+
script$q.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2879
2861
|
|
|
2880
|
-
var script$
|
|
2862
|
+
var script$p = {
|
|
2881
2863
|
__name: 'TextInput',
|
|
2882
2864
|
props: ['modelValue','label','isInvalid'],
|
|
2883
2865
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2919,9 +2901,9 @@ return (_ctx, _cache) => {
|
|
|
2919
2901
|
|
|
2920
2902
|
};
|
|
2921
2903
|
|
|
2922
|
-
script$
|
|
2904
|
+
script$p.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2923
2905
|
|
|
2924
|
-
var script$
|
|
2906
|
+
var script$o = {
|
|
2925
2907
|
__name: 'TextAreaInput',
|
|
2926
2908
|
props: ['modelValue','label'],
|
|
2927
2909
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2961,12 +2943,12 @@ return (_ctx, _cache) => {
|
|
|
2961
2943
|
|
|
2962
2944
|
};
|
|
2963
2945
|
|
|
2964
|
-
script$
|
|
2946
|
+
script$o.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2965
2947
|
|
|
2966
|
-
const _hoisted_1$
|
|
2948
|
+
const _hoisted_1$j = ["value"];
|
|
2967
2949
|
|
|
2968
2950
|
|
|
2969
|
-
var script$
|
|
2951
|
+
var script$n = {
|
|
2970
2952
|
__name: 'SelectInput',
|
|
2971
2953
|
props: ['modelValue','label','data','dataUrl'],
|
|
2972
2954
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3021,7 +3003,7 @@ return (_ctx, _cache) => {
|
|
|
3021
3003
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
3022
3004
|
key: option.id,
|
|
3023
3005
|
value: option.id
|
|
3024
|
-
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3006
|
+
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$j))
|
|
3025
3007
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3026
3008
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
3027
3009
|
[vue.vModelSelect, inputModel.value]
|
|
@@ -3031,9 +3013,9 @@ return (_ctx, _cache) => {
|
|
|
3031
3013
|
|
|
3032
3014
|
};
|
|
3033
3015
|
|
|
3034
|
-
script$
|
|
3016
|
+
script$n.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3035
3017
|
|
|
3036
|
-
var script$
|
|
3018
|
+
var script$m = {
|
|
3037
3019
|
__name: 'PasswordInput',
|
|
3038
3020
|
props: ['modelValue','label'],
|
|
3039
3021
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3069,13 +3051,13 @@ return (_ctx, _cache) => {
|
|
|
3069
3051
|
|
|
3070
3052
|
};
|
|
3071
3053
|
|
|
3072
|
-
script$
|
|
3054
|
+
script$m.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3073
3055
|
|
|
3074
|
-
const _hoisted_1$
|
|
3075
|
-
const _hoisted_2$
|
|
3076
|
-
const _hoisted_3$
|
|
3077
|
-
const _hoisted_4$
|
|
3078
|
-
const _hoisted_5$
|
|
3056
|
+
const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3057
|
+
const _hoisted_2$b = ["onUpdate:modelValue"];
|
|
3058
|
+
const _hoisted_3$a = ["innerHTML"];
|
|
3059
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
3060
|
+
const _hoisted_5$7 = ["innerHTML"];
|
|
3079
3061
|
const _hoisted_6$6 = ["disabled"];
|
|
3080
3062
|
const _hoisted_7$5 = {
|
|
3081
3063
|
key: 0,
|
|
@@ -3086,7 +3068,7 @@ const _hoisted_7$5 = {
|
|
|
3086
3068
|
const _hoisted_8$4 = { key: 1 };
|
|
3087
3069
|
|
|
3088
3070
|
|
|
3089
|
-
var script$
|
|
3071
|
+
var script$l = {
|
|
3090
3072
|
__name: 'ShAutoForm',
|
|
3091
3073
|
props: [
|
|
3092
3074
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3119,13 +3101,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3119
3101
|
const defaultPhones = ['phone'];
|
|
3120
3102
|
const defaultEmails = ['email'];
|
|
3121
3103
|
const formComponents = vue.inject('formComponents');
|
|
3122
|
-
const TextComponent = formComponents.text ?? script$
|
|
3123
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3124
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3125
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3126
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3127
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3128
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3104
|
+
const TextComponent = formComponents.text ?? script$p;
|
|
3105
|
+
const TextAreaComponent = formComponents.textArea ?? script$o;
|
|
3106
|
+
const EmailComponent = formComponents.email ?? script$r;
|
|
3107
|
+
const PhoneComponent = formComponents.phone ?? script$u;
|
|
3108
|
+
const NumberComponent = formComponents.number ?? script$q;
|
|
3109
|
+
const SelectComponent = formComponents.select ?? script$n;
|
|
3110
|
+
const PasswordComponent = formComponents.password ?? script$m;
|
|
3129
3111
|
if(props.customComponents && props.customComponents[field]) {
|
|
3130
3112
|
return props.customComponents[field]
|
|
3131
3113
|
}
|
|
@@ -3137,16 +3119,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3137
3119
|
}
|
|
3138
3120
|
else
|
|
3139
3121
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3140
|
-
return formComponents.textArea ?? script$
|
|
3122
|
+
return formComponents.textArea ?? script$o
|
|
3141
3123
|
} else
|
|
3142
3124
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3143
|
-
return formComponents.email ?? script$
|
|
3125
|
+
return formComponents.email ?? script$r
|
|
3144
3126
|
} else
|
|
3145
3127
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3146
|
-
return formComponents.phone ?? script$
|
|
3128
|
+
return formComponents.phone ?? script$u
|
|
3147
3129
|
} else
|
|
3148
3130
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3149
|
-
return formComponents.number ?? script$
|
|
3131
|
+
return formComponents.number ?? script$q
|
|
3150
3132
|
}
|
|
3151
3133
|
// else
|
|
3152
3134
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3155,7 +3137,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3155
3137
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3156
3138
|
// return formComponents.date ?? DateInput
|
|
3157
3139
|
// }
|
|
3158
|
-
return formComponents.text ?? script$
|
|
3140
|
+
return formComponents.text ?? script$p
|
|
3159
3141
|
};
|
|
3160
3142
|
const shFormElementClasses = vue.ref(null);
|
|
3161
3143
|
shFormElementClasses.value = vue.inject('shFormElementClasses');
|
|
@@ -3293,7 +3275,7 @@ vue.onMounted((ev)=>{
|
|
|
3293
3275
|
|
|
3294
3276
|
return (_ctx, _cache) => {
|
|
3295
3277
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3296
|
-
_hoisted_1$
|
|
3278
|
+
_hoisted_1$i,
|
|
3297
3279
|
vue.createElementVNode("form", {
|
|
3298
3280
|
class: vue.normalizeClass([__props.formClass, "sh-form"]),
|
|
3299
3281
|
ref_key: "shAutoForm",
|
|
@@ -3310,7 +3292,7 @@ return (_ctx, _cache) => {
|
|
|
3310
3292
|
key: 0,
|
|
3311
3293
|
type: "hidden",
|
|
3312
3294
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3313
|
-
}, null, 8 /* PROPS */, _hoisted_2$
|
|
3295
|
+
}, null, 8 /* PROPS */, _hoisted_2$b)), [
|
|
3314
3296
|
[vue.vModelText, formFields.value[index].value]
|
|
3315
3297
|
])
|
|
3316
3298
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -3319,7 +3301,7 @@ return (_ctx, _cache) => {
|
|
|
3319
3301
|
key: 0,
|
|
3320
3302
|
class: vue.normalizeClass(getElementClass('formLabel')),
|
|
3321
3303
|
innerHTML: field.label
|
|
3322
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_3$
|
|
3304
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
|
|
3323
3305
|
: vue.createCommentVNode("v-if", true),
|
|
3324
3306
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
|
|
3325
3307
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
@@ -3333,14 +3315,14 @@ return (_ctx, _cache) => {
|
|
|
3333
3315
|
key: 1,
|
|
3334
3316
|
class: vue.normalizeClass(getElementClass('formLabel')),
|
|
3335
3317
|
innerHTML: field.label
|
|
3336
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3318
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3337
3319
|
: vue.createCommentVNode("v-if", true),
|
|
3338
3320
|
(field.helper)
|
|
3339
3321
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3340
3322
|
key: 2,
|
|
3341
3323
|
class: vue.normalizeClass(getElementClass('helperText')),
|
|
3342
3324
|
innerHTML: field.helper
|
|
3343
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_5$
|
|
3325
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_5$7))
|
|
3344
3326
|
: vue.createCommentVNode("v-if", true),
|
|
3345
3327
|
(validationErrors.value[field.field])
|
|
3346
3328
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -3376,12 +3358,12 @@ return (_ctx, _cache) => {
|
|
|
3376
3358
|
|
|
3377
3359
|
};
|
|
3378
3360
|
|
|
3379
|
-
script$
|
|
3361
|
+
script$l.__file = "src/lib/components/ShAutoForm.vue";
|
|
3380
3362
|
|
|
3381
|
-
const _hoisted_1$
|
|
3382
|
-
const _hoisted_2$
|
|
3363
|
+
const _hoisted_1$h = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3364
|
+
const _hoisted_2$a = { class: "dropdown" };
|
|
3383
3365
|
|
|
3384
|
-
var script$
|
|
3366
|
+
var script$k = {
|
|
3385
3367
|
__name: 'ShDropDownForm',
|
|
3386
3368
|
props: ['action',
|
|
3387
3369
|
'classes',
|
|
@@ -3411,8 +3393,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3411
3393
|
|
|
3412
3394
|
return (_ctx, _cache) => {
|
|
3413
3395
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3414
|
-
_hoisted_1$
|
|
3415
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3396
|
+
_hoisted_1$h,
|
|
3397
|
+
vue.createElementVNode("div", _hoisted_2$a, [
|
|
3416
3398
|
vue.createElementVNode("a", {
|
|
3417
3399
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
3418
3400
|
href: "#",
|
|
@@ -3428,7 +3410,7 @@ return (_ctx, _cache) => {
|
|
|
3428
3410
|
class: "dropdown-menu px-2 py-1",
|
|
3429
3411
|
"aria-labelledby": dropdownId
|
|
3430
3412
|
}, [
|
|
3431
|
-
vue.createVNode(script$
|
|
3413
|
+
vue.createVNode(script$s, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3432
3414
|
])
|
|
3433
3415
|
])
|
|
3434
3416
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3437,13 +3419,13 @@ return (_ctx, _cache) => {
|
|
|
3437
3419
|
|
|
3438
3420
|
};
|
|
3439
3421
|
|
|
3440
|
-
script$
|
|
3422
|
+
script$k.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3441
3423
|
|
|
3442
|
-
const _hoisted_1$
|
|
3443
|
-
const _hoisted_2$
|
|
3444
|
-
const _hoisted_3$
|
|
3445
|
-
const _hoisted_4$
|
|
3446
|
-
const _hoisted_5$
|
|
3424
|
+
const _hoisted_1$g = ["id"];
|
|
3425
|
+
const _hoisted_2$9 = { class: "modal-content" };
|
|
3426
|
+
const _hoisted_3$9 = { class: "modal-header" };
|
|
3427
|
+
const _hoisted_4$9 = { class: "modal-title" };
|
|
3428
|
+
const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
3447
3429
|
class: "btn btn-danger btn-sm",
|
|
3448
3430
|
"data-bs-dismiss": "modal",
|
|
3449
3431
|
"data-dismiss": "modal"
|
|
@@ -3451,7 +3433,7 @@ const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
|
3451
3433
|
const _hoisted_6$5 = { class: "modal-body" };
|
|
3452
3434
|
const _hoisted_7$4 = { class: "section" };
|
|
3453
3435
|
|
|
3454
|
-
var script$
|
|
3436
|
+
var script$j = {
|
|
3455
3437
|
__name: 'ShModal',
|
|
3456
3438
|
props: {
|
|
3457
3439
|
modalId: {
|
|
@@ -3488,10 +3470,10 @@ return (_ctx, _cache) => {
|
|
|
3488
3470
|
vue.createElementVNode("div", {
|
|
3489
3471
|
class: vue.normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
|
|
3490
3472
|
}, [
|
|
3491
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3492
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3493
|
-
vue.createElementVNode("h3", _hoisted_4$
|
|
3494
|
-
_hoisted_5$
|
|
3473
|
+
vue.createElementVNode("div", _hoisted_2$9, [
|
|
3474
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
3475
|
+
vue.createElementVNode("h3", _hoisted_4$9, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3476
|
+
_hoisted_5$6
|
|
3495
3477
|
]),
|
|
3496
3478
|
vue.createElementVNode("div", _hoisted_6$5, [
|
|
3497
3479
|
vue.createElementVNode("div", _hoisted_7$4, [
|
|
@@ -3500,17 +3482,17 @@ return (_ctx, _cache) => {
|
|
|
3500
3482
|
])
|
|
3501
3483
|
])
|
|
3502
3484
|
], 2 /* CLASS */)
|
|
3503
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3485
|
+
], 8 /* PROPS */, _hoisted_1$g))
|
|
3504
3486
|
}
|
|
3505
3487
|
}
|
|
3506
3488
|
|
|
3507
3489
|
};
|
|
3508
3490
|
|
|
3509
|
-
script$
|
|
3491
|
+
script$j.__file = "src/lib/components/ShModal.vue";
|
|
3510
3492
|
|
|
3511
|
-
const _hoisted_1$
|
|
3493
|
+
const _hoisted_1$f = ["href"];
|
|
3512
3494
|
|
|
3513
|
-
var script$
|
|
3495
|
+
var script$i = {
|
|
3514
3496
|
__name: 'ShModalForm',
|
|
3515
3497
|
props: ['action',
|
|
3516
3498
|
'classes',
|
|
@@ -3549,13 +3531,13 @@ return (_ctx, _cache) => {
|
|
|
3549
3531
|
"data-bs-toggle": "modal"
|
|
3550
3532
|
}, [
|
|
3551
3533
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3552
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3553
|
-
vue.createVNode(script$
|
|
3534
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3535
|
+
vue.createVNode(script$j, {
|
|
3554
3536
|
"modal-id": modalId,
|
|
3555
3537
|
"modal-title": __props.modalTitle
|
|
3556
3538
|
}, {
|
|
3557
3539
|
default: vue.withCtx(() => [
|
|
3558
|
-
vue.createVNode(script$
|
|
3540
|
+
vue.createVNode(script$s, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3559
3541
|
]),
|
|
3560
3542
|
_: 1 /* STABLE */
|
|
3561
3543
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3565,11 +3547,11 @@ return (_ctx, _cache) => {
|
|
|
3565
3547
|
|
|
3566
3548
|
};
|
|
3567
3549
|
|
|
3568
|
-
script$
|
|
3550
|
+
script$i.__file = "src/lib/components/ShModalForm.vue";
|
|
3569
3551
|
|
|
3570
|
-
const _hoisted_1$
|
|
3552
|
+
const _hoisted_1$e = ["href"];
|
|
3571
3553
|
|
|
3572
|
-
var script$
|
|
3554
|
+
var script$h = {
|
|
3573
3555
|
__name: 'ShModalFormAuto',
|
|
3574
3556
|
props: ['action',
|
|
3575
3557
|
'classes',
|
|
@@ -3609,13 +3591,13 @@ return (_ctx, _cache) => {
|
|
|
3609
3591
|
"data-bs-toggle": "modal"
|
|
3610
3592
|
}, [
|
|
3611
3593
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3612
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3613
|
-
vue.createVNode(script$
|
|
3594
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$e),
|
|
3595
|
+
vue.createVNode(script$j, {
|
|
3614
3596
|
"modal-id": modalId,
|
|
3615
3597
|
"modal-title": __props.modalTitle
|
|
3616
3598
|
}, {
|
|
3617
3599
|
default: vue.withCtx(() => [
|
|
3618
|
-
vue.createVNode(script$
|
|
3600
|
+
vue.createVNode(script$l, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3619
3601
|
]),
|
|
3620
3602
|
_: 1 /* STABLE */
|
|
3621
3603
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3625,17 +3607,17 @@ return (_ctx, _cache) => {
|
|
|
3625
3607
|
|
|
3626
3608
|
};
|
|
3627
3609
|
|
|
3628
|
-
script$
|
|
3610
|
+
script$h.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3629
3611
|
|
|
3630
|
-
const _hoisted_1$
|
|
3631
|
-
const _hoisted_2$
|
|
3632
|
-
const _hoisted_3$
|
|
3612
|
+
const _hoisted_1$d = ["id"];
|
|
3613
|
+
const _hoisted_2$8 = { class: "offcanvas-header" };
|
|
3614
|
+
const _hoisted_3$8 = {
|
|
3633
3615
|
class: "offcanvas-title",
|
|
3634
3616
|
id: "offcanvasScrollingLabel"
|
|
3635
3617
|
};
|
|
3636
|
-
const _hoisted_4$
|
|
3618
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
3637
3619
|
|
|
3638
|
-
var script$
|
|
3620
|
+
var script$g = {
|
|
3639
3621
|
__name: 'ShCanvas',
|
|
3640
3622
|
props: {
|
|
3641
3623
|
canvasId: {
|
|
@@ -3680,8 +3662,8 @@ return (_ctx, _cache) => {
|
|
|
3680
3662
|
id: __props.canvasId,
|
|
3681
3663
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
3682
3664
|
}, [
|
|
3683
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3684
|
-
vue.createElementVNode("h5", _hoisted_3$
|
|
3665
|
+
vue.createElementVNode("div", _hoisted_2$8, [
|
|
3666
|
+
vue.createElementVNode("h5", _hoisted_3$8, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
3685
3667
|
vue.createElementVNode("button", {
|
|
3686
3668
|
type: "button",
|
|
3687
3669
|
ref: "closecanvas",
|
|
@@ -3691,18 +3673,18 @@ return (_ctx, _cache) => {
|
|
|
3691
3673
|
"aria-label": "Close"
|
|
3692
3674
|
}, null, 512 /* NEED_PATCH */)
|
|
3693
3675
|
]),
|
|
3694
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
3676
|
+
vue.createElementVNode("div", _hoisted_4$8, [
|
|
3695
3677
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3696
3678
|
])
|
|
3697
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3679
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$d))
|
|
3698
3680
|
}
|
|
3699
3681
|
}
|
|
3700
3682
|
|
|
3701
3683
|
};
|
|
3702
3684
|
|
|
3703
|
-
script$
|
|
3685
|
+
script$g.__file = "src/lib/components/ShCanvas.vue";
|
|
3704
3686
|
|
|
3705
|
-
var script$
|
|
3687
|
+
var script$f = {
|
|
3706
3688
|
name: 'Pagination',
|
|
3707
3689
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3708
3690
|
data () {
|
|
@@ -3773,12 +3755,12 @@ var script$g = {
|
|
|
3773
3755
|
}
|
|
3774
3756
|
};
|
|
3775
3757
|
|
|
3776
|
-
const _hoisted_1$
|
|
3777
|
-
const _hoisted_2$
|
|
3778
|
-
const _hoisted_3$
|
|
3779
|
-
const _hoisted_4$
|
|
3758
|
+
const _hoisted_1$c = { key: 0 };
|
|
3759
|
+
const _hoisted_2$7 = { class: "record_count_body mb-3" };
|
|
3760
|
+
const _hoisted_3$7 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
3761
|
+
const _hoisted_4$7 = /*#__PURE__*/vue.createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
3780
3762
|
const _hoisted_9$4 = [
|
|
3781
|
-
_hoisted_4$
|
|
3763
|
+
_hoisted_4$7
|
|
3782
3764
|
];
|
|
3783
3765
|
const _hoisted_10$3 = { class: "record_counts" };
|
|
3784
3766
|
const _hoisted_11$2 = {
|
|
@@ -3821,11 +3803,11 @@ const _hoisted_23$1 = {
|
|
|
3821
3803
|
class: "spinner-border"
|
|
3822
3804
|
};
|
|
3823
3805
|
|
|
3824
|
-
function render$
|
|
3806
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3825
3807
|
return ($props.paginationStyle !== 'loadMore')
|
|
3826
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3827
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3828
|
-
_hoisted_3$
|
|
3808
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
3809
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
3810
|
+
_hoisted_3$7,
|
|
3829
3811
|
vue.createTextVNode(" "),
|
|
3830
3812
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
3831
3813
|
class: "select_per_page",
|
|
@@ -3898,17 +3880,17 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3898
3880
|
]))
|
|
3899
3881
|
}
|
|
3900
3882
|
|
|
3901
|
-
script$
|
|
3902
|
-
script$
|
|
3883
|
+
script$f.render = render$1;
|
|
3884
|
+
script$f.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3903
3885
|
|
|
3904
|
-
const _hoisted_1$
|
|
3886
|
+
const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3905
3887
|
class: "spinner-border spinner-border-sm me-1",
|
|
3906
3888
|
role: "status",
|
|
3907
3889
|
"aria-hidden": "true"
|
|
3908
3890
|
}, null, -1 /* HOISTED */);
|
|
3909
3891
|
|
|
3910
3892
|
|
|
3911
|
-
var script$
|
|
3893
|
+
var script$e = {
|
|
3912
3894
|
__name: 'ShConfirmAction',
|
|
3913
3895
|
props: {
|
|
3914
3896
|
data: Object,
|
|
@@ -3981,7 +3963,7 @@ return (_ctx, _cache) => {
|
|
|
3981
3963
|
}, [
|
|
3982
3964
|
(processing.value)
|
|
3983
3965
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
3984
|
-
_hoisted_1$
|
|
3966
|
+
_hoisted_1$b,
|
|
3985
3967
|
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
3986
3968
|
], 64 /* STABLE_FRAGMENT */))
|
|
3987
3969
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -3994,15 +3976,15 @@ return (_ctx, _cache) => {
|
|
|
3994
3976
|
|
|
3995
3977
|
};
|
|
3996
3978
|
|
|
3997
|
-
script$
|
|
3979
|
+
script$e.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3998
3980
|
|
|
3999
|
-
const _hoisted_1$
|
|
3981
|
+
const _hoisted_1$a = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4000
3982
|
class: "spinner-border spinner-border-sm me-1",
|
|
4001
3983
|
role: "status",
|
|
4002
3984
|
"aria-hidden": "true"
|
|
4003
3985
|
}, null, -1 /* HOISTED */);
|
|
4004
3986
|
|
|
4005
|
-
var script$
|
|
3987
|
+
var script$d = {
|
|
4006
3988
|
__name: 'ShSilentAction',
|
|
4007
3989
|
props: {
|
|
4008
3990
|
data: Object,
|
|
@@ -4077,7 +4059,7 @@ return (_ctx, _cache) => {
|
|
|
4077
4059
|
}, [
|
|
4078
4060
|
(processing.value)
|
|
4079
4061
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4080
|
-
_hoisted_1$
|
|
4062
|
+
_hoisted_1$a,
|
|
4081
4063
|
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4082
4064
|
], 64 /* STABLE_FRAGMENT */))
|
|
4083
4065
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -4090,9 +4072,9 @@ return (_ctx, _cache) => {
|
|
|
4090
4072
|
|
|
4091
4073
|
};
|
|
4092
4074
|
|
|
4093
|
-
script$
|
|
4075
|
+
script$d.__file = "src/lib/components/ShSilentAction.vue";
|
|
4094
4076
|
|
|
4095
|
-
var script$
|
|
4077
|
+
var script$c = {
|
|
4096
4078
|
name: 'sh-table',
|
|
4097
4079
|
props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4098
4080
|
inject: ['channel'],
|
|
@@ -4347,10 +4329,10 @@ var script$d = {
|
|
|
4347
4329
|
this.reloadData();
|
|
4348
4330
|
},
|
|
4349
4331
|
components: {
|
|
4350
|
-
ShSilentAction: script$
|
|
4351
|
-
ShConfirmAction: script$
|
|
4352
|
-
ShCanvas: script$
|
|
4353
|
-
pagination: script$
|
|
4332
|
+
ShSilentAction: script$d,
|
|
4333
|
+
ShConfirmAction: script$e,
|
|
4334
|
+
ShCanvas: script$g,
|
|
4335
|
+
pagination: script$f
|
|
4354
4336
|
},
|
|
4355
4337
|
computed: {
|
|
4356
4338
|
windowWidth: function () {
|
|
@@ -4368,14 +4350,14 @@ var script$d = {
|
|
|
4368
4350
|
}
|
|
4369
4351
|
};
|
|
4370
4352
|
|
|
4371
|
-
const _hoisted_1$
|
|
4372
|
-
const _hoisted_2$
|
|
4353
|
+
const _hoisted_1$9 = { class: "auto-table mt-2" };
|
|
4354
|
+
const _hoisted_2$6 = {
|
|
4373
4355
|
key: 0,
|
|
4374
4356
|
class: "col-md-4 mb-2"
|
|
4375
4357
|
};
|
|
4376
|
-
const _hoisted_3$
|
|
4377
|
-
const _hoisted_4$
|
|
4378
|
-
const _hoisted_5$
|
|
4358
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4359
|
+
const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
4360
|
+
const _hoisted_5$5 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4379
4361
|
class: "spinner-border spinner-border-sm",
|
|
4380
4362
|
role: "status",
|
|
4381
4363
|
"aria-hidden": "true"
|
|
@@ -4524,16 +4506,16 @@ const _hoisted_63 = { key: 0 };
|
|
|
4524
4506
|
const _hoisted_64 = ["href"];
|
|
4525
4507
|
const _hoisted_65 = ["title", "onClick"];
|
|
4526
4508
|
|
|
4527
|
-
function render
|
|
4509
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4528
4510
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
4529
4511
|
const _component_sh_confirm_action = vue.resolveComponent("sh-confirm-action");
|
|
4530
4512
|
const _component_sh_silent_action = vue.resolveComponent("sh-silent-action");
|
|
4531
4513
|
const _component_pagination = vue.resolveComponent("pagination");
|
|
4532
4514
|
const _component_sh_canvas = vue.resolveComponent("sh-canvas");
|
|
4533
4515
|
|
|
4534
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4516
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
4535
4517
|
($props.hasDownload)
|
|
4536
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
4518
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
4537
4519
|
vue.createElementVNode("button", {
|
|
4538
4520
|
disabled: $data.downloading,
|
|
4539
4521
|
class: "btn btn-warning btn-sm",
|
|
@@ -4541,14 +4523,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4541
4523
|
}, [
|
|
4542
4524
|
(!$data.downloading)
|
|
4543
4525
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4544
|
-
_hoisted_4$
|
|
4526
|
+
_hoisted_4$6,
|
|
4545
4527
|
vue.createTextVNode(" Export ")
|
|
4546
4528
|
], 64 /* STABLE_FRAGMENT */))
|
|
4547
4529
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
4548
|
-
_hoisted_5$
|
|
4530
|
+
_hoisted_5$5,
|
|
4549
4531
|
_hoisted_6$4
|
|
4550
4532
|
], 64 /* STABLE_FRAGMENT */))
|
|
4551
|
-
], 8 /* PROPS */, _hoisted_3$
|
|
4533
|
+
], 8 /* PROPS */, _hoisted_3$6)
|
|
4552
4534
|
]))
|
|
4553
4535
|
: vue.createCommentVNode("v-if", true),
|
|
4554
4536
|
(!$props.hideSearch)
|
|
@@ -4984,10 +4966,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4984
4966
|
]))
|
|
4985
4967
|
}
|
|
4986
4968
|
|
|
4987
|
-
script$
|
|
4988
|
-
script$
|
|
4969
|
+
script$c.render = render;
|
|
4970
|
+
script$c.__file = "src/lib/components/ShTable.vue";
|
|
4989
4971
|
|
|
4990
|
-
var script$
|
|
4972
|
+
var script$b = {
|
|
4991
4973
|
__name: 'ShTabs',
|
|
4992
4974
|
props: {
|
|
4993
4975
|
tabs: {
|
|
@@ -5132,18 +5114,18 @@ return (_ctx, _cache) => {
|
|
|
5132
5114
|
|
|
5133
5115
|
};
|
|
5134
5116
|
|
|
5135
|
-
script$
|
|
5117
|
+
script$b.__file = "src/lib/components/ShTabs.vue";
|
|
5136
5118
|
|
|
5137
|
-
const _hoisted_1$
|
|
5119
|
+
const _hoisted_1$8 = {
|
|
5138
5120
|
class: "nav-item",
|
|
5139
5121
|
role: "presentation"
|
|
5140
5122
|
};
|
|
5141
|
-
const _hoisted_2$
|
|
5142
|
-
const _hoisted_3$
|
|
5143
|
-
const _hoisted_4$
|
|
5144
|
-
const _hoisted_5$
|
|
5123
|
+
const _hoisted_2$5 = ["onClick"];
|
|
5124
|
+
const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
5125
|
+
const _hoisted_4$5 = { class: "sh_tab_count" };
|
|
5126
|
+
const _hoisted_5$4 = { class: "tab-content" };
|
|
5145
5127
|
|
|
5146
|
-
var script$
|
|
5128
|
+
var script$a = {
|
|
5147
5129
|
__name: 'ShDynamicTabs',
|
|
5148
5130
|
props: ['tabs','data'],
|
|
5149
5131
|
setup(__props) {
|
|
@@ -5173,7 +5155,7 @@ return (_ctx, _cache) => {
|
|
|
5173
5155
|
role: "tablist"
|
|
5174
5156
|
}, [
|
|
5175
5157
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
|
|
5176
|
-
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_1$
|
|
5158
|
+
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_1$8, [
|
|
5177
5159
|
vue.createElementVNode("button", {
|
|
5178
5160
|
onClick: $event => (setTab(tab)),
|
|
5179
5161
|
class: vue.normalizeClass(["nav-link", vue.unref(currentTab) === tab ? 'active':''])
|
|
@@ -5181,15 +5163,15 @@ return (_ctx, _cache) => {
|
|
|
5181
5163
|
vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
|
|
5182
5164
|
(tab.count || tab.tabCount)
|
|
5183
5165
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
5184
|
-
_hoisted_3$
|
|
5185
|
-
vue.createElementVNode("sup", _hoisted_4$
|
|
5166
|
+
_hoisted_3$5,
|
|
5167
|
+
vue.createElementVNode("sup", _hoisted_4$5, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
|
|
5186
5168
|
], 64 /* STABLE_FRAGMENT */))
|
|
5187
5169
|
: vue.createCommentVNode("v-if", true)
|
|
5188
|
-
], 10 /* CLASS, PROPS */, _hoisted_2$
|
|
5170
|
+
], 10 /* CLASS, PROPS */, _hoisted_2$5)
|
|
5189
5171
|
]))
|
|
5190
5172
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
5191
5173
|
], 2 /* CLASS */),
|
|
5192
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
5174
|
+
vue.createElementVNode("div", _hoisted_5$4, [
|
|
5193
5175
|
(vue.unref(currentTab))
|
|
5194
5176
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(currentTab))), null, 16 /* FULL_PROPS */))
|
|
5195
5177
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -5200,12 +5182,12 @@ return (_ctx, _cache) => {
|
|
|
5200
5182
|
|
|
5201
5183
|
};
|
|
5202
5184
|
|
|
5203
|
-
script$
|
|
5185
|
+
script$a.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5204
5186
|
|
|
5205
|
-
const _hoisted_1$
|
|
5187
|
+
const _hoisted_1$7 = ["href"];
|
|
5206
5188
|
|
|
5207
5189
|
|
|
5208
|
-
var script$
|
|
5190
|
+
var script$9 = {
|
|
5209
5191
|
__name: 'ShModalBtn',
|
|
5210
5192
|
props: {
|
|
5211
5193
|
modalId: {
|
|
@@ -5222,18 +5204,18 @@ return (_ctx, _cache) => {
|
|
|
5222
5204
|
"data-bs-toggle": "modal"
|
|
5223
5205
|
}, [
|
|
5224
5206
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5225
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5207
|
+
], 8 /* PROPS */, _hoisted_1$7))
|
|
5226
5208
|
}
|
|
5227
5209
|
}
|
|
5228
5210
|
|
|
5229
5211
|
};
|
|
5230
5212
|
|
|
5231
|
-
script$
|
|
5213
|
+
script$9.__file = "src/lib/components/ShModalBtn.vue";
|
|
5232
5214
|
|
|
5233
|
-
const _hoisted_1$
|
|
5215
|
+
const _hoisted_1$6 = ["href"];
|
|
5234
5216
|
|
|
5235
5217
|
|
|
5236
|
-
var script$
|
|
5218
|
+
var script$8 = {
|
|
5237
5219
|
__name: 'ShCanvasBtn',
|
|
5238
5220
|
props: {
|
|
5239
5221
|
canvasId: {
|
|
@@ -5251,13 +5233,13 @@ return (_ctx, _cache) => {
|
|
|
5251
5233
|
"data-bs-toggle": "offcanvas"
|
|
5252
5234
|
}, [
|
|
5253
5235
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5254
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5236
|
+
], 8 /* PROPS */, _hoisted_1$6))
|
|
5255
5237
|
}
|
|
5256
5238
|
}
|
|
5257
5239
|
|
|
5258
5240
|
};
|
|
5259
5241
|
|
|
5260
|
-
script$
|
|
5242
|
+
script$8.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5261
5243
|
|
|
5262
5244
|
const useUserStore = pinia.defineStore('user-store', {
|
|
5263
5245
|
state: () => ({
|
|
@@ -5356,18 +5338,18 @@ const useUserStore = pinia.defineStore('user-store', {
|
|
|
5356
5338
|
});
|
|
5357
5339
|
|
|
5358
5340
|
const _withScopeId$1 = n => (vue.pushScopeId("data-v-0d4fa0ac"),n=n(),vue.popScopeId(),n);
|
|
5359
|
-
const _hoisted_1$
|
|
5360
|
-
const _hoisted_2$
|
|
5341
|
+
const _hoisted_1$5 = { class: "row permissions-main d-flex" };
|
|
5342
|
+
const _hoisted_2$4 = {
|
|
5361
5343
|
id: "permissions-nav",
|
|
5362
5344
|
class: "col-md-3 d-flex align-items-center py-4"
|
|
5363
5345
|
};
|
|
5364
|
-
const _hoisted_3$
|
|
5346
|
+
const _hoisted_3$4 = {
|
|
5365
5347
|
key: 0,
|
|
5366
5348
|
class: "mx-auto"
|
|
5367
5349
|
};
|
|
5368
|
-
const _hoisted_4$
|
|
5369
|
-
const _hoisted_5$
|
|
5370
|
-
_hoisted_4$
|
|
5350
|
+
const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
|
|
5351
|
+
const _hoisted_5$3 = [
|
|
5352
|
+
_hoisted_4$4
|
|
5371
5353
|
];
|
|
5372
5354
|
const _hoisted_6$3 = {
|
|
5373
5355
|
key: 1,
|
|
@@ -5396,7 +5378,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5396
5378
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5397
5379
|
|
|
5398
5380
|
|
|
5399
|
-
var script$
|
|
5381
|
+
var script$7 = {
|
|
5400
5382
|
__name: 'ManagePermissions',
|
|
5401
5383
|
emits: ['success'],
|
|
5402
5384
|
setup(__props, { emit }) {
|
|
@@ -5500,10 +5482,10 @@ const getPermissionStyle = permission => {
|
|
|
5500
5482
|
};
|
|
5501
5483
|
|
|
5502
5484
|
return (_ctx, _cache) => {
|
|
5503
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5504
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
5485
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
5486
|
+
vue.createElementVNode("div", _hoisted_2$4, [
|
|
5505
5487
|
(loadingModules.value)
|
|
5506
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5488
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, _hoisted_5$3))
|
|
5507
5489
|
: (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$3, [
|
|
5508
5490
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
|
|
5509
5491
|
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
@@ -5554,7 +5536,7 @@ return (_ctx, _cache) => {
|
|
|
5554
5536
|
(permissionsChanged.value)
|
|
5555
5537
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
5556
5538
|
vue.createElementVNode("div", _hoisted_17, [
|
|
5557
|
-
vue.createVNode(script$
|
|
5539
|
+
vue.createVNode(script$d, {
|
|
5558
5540
|
onSuccess: permissionsUpdated,
|
|
5559
5541
|
url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
|
|
5560
5542
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5578,13 +5560,13 @@ return (_ctx, _cache) => {
|
|
|
5578
5560
|
|
|
5579
5561
|
};
|
|
5580
5562
|
|
|
5581
|
-
script$
|
|
5582
|
-
script$
|
|
5563
|
+
script$7.__scopeId = "data-v-0d4fa0ac";
|
|
5564
|
+
script$7.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5583
5565
|
|
|
5584
|
-
const _hoisted_1$
|
|
5566
|
+
const _hoisted_1$4 = ["href"];
|
|
5585
5567
|
|
|
5586
5568
|
|
|
5587
|
-
var script$
|
|
5569
|
+
var script$6 = {
|
|
5588
5570
|
__name: 'ShRoutePopups',
|
|
5589
5571
|
setup(__props) {
|
|
5590
5572
|
|
|
@@ -5597,6 +5579,7 @@ vue.ref(null);
|
|
|
5597
5579
|
const router = vueRouter.useRouter();
|
|
5598
5580
|
const position = vue.ref(null);
|
|
5599
5581
|
const size = vue.ref(null);
|
|
5582
|
+
const title = vue.ref(null);
|
|
5600
5583
|
vue.watch(() => route.meta, meta => {
|
|
5601
5584
|
popUp.value = meta.popUp ?? meta.popup;
|
|
5602
5585
|
if (popUp.value) {
|
|
@@ -5604,6 +5587,7 @@ vue.watch(() => route.meta, meta => {
|
|
|
5604
5587
|
// !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
|
|
5605
5588
|
position.value = meta.position ?? meta.side;
|
|
5606
5589
|
size.value = meta.size;
|
|
5590
|
+
title.value = meta.title;
|
|
5607
5591
|
componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5608
5592
|
setTimeout(() => {
|
|
5609
5593
|
initPopup();
|
|
@@ -5612,7 +5596,7 @@ vue.watch(() => route.meta, meta => {
|
|
|
5612
5596
|
//no pop up, check if we have any unclosed backdrop
|
|
5613
5597
|
setTimeout(() => {
|
|
5614
5598
|
closeOrphanedBackdrops();
|
|
5615
|
-
},
|
|
5599
|
+
}, 500);
|
|
5616
5600
|
}
|
|
5617
5601
|
});
|
|
5618
5602
|
const closeOrphanedBackdrops = () => {
|
|
@@ -5663,10 +5647,11 @@ return (_ctx, _cache) => {
|
|
|
5663
5647
|
href: '#' + vue.unref(canvasId),
|
|
5664
5648
|
shallowRef: "canvasButton",
|
|
5665
5649
|
class: "d-none"
|
|
5666
|
-
}, "Open Modal", 8 /* PROPS */, _hoisted_1$
|
|
5650
|
+
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5667
5651
|
(popUp.value === 'modal')
|
|
5668
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5652
|
+
? (vue.openBlock(), vue.createBlock(script$j, {
|
|
5669
5653
|
key: 0,
|
|
5654
|
+
"modal-title": title.value,
|
|
5670
5655
|
"modal-id": vue.unref(modalId),
|
|
5671
5656
|
"modal-size": size.value
|
|
5672
5657
|
}, {
|
|
@@ -5674,12 +5659,13 @@ return (_ctx, _cache) => {
|
|
|
5674
5659
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
5675
5660
|
]),
|
|
5676
5661
|
_: 1 /* STABLE */
|
|
5677
|
-
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5662
|
+
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
5678
5663
|
: vue.createCommentVNode("v-if", true),
|
|
5679
5664
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5680
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5665
|
+
? (vue.openBlock(), vue.createBlock(script$g, {
|
|
5681
5666
|
key: 1,
|
|
5682
5667
|
"canvas-id": vue.unref(canvasId),
|
|
5668
|
+
"canvas-title": title.value,
|
|
5683
5669
|
"canvas-size": size.value,
|
|
5684
5670
|
position: position.value
|
|
5685
5671
|
}, {
|
|
@@ -5687,7 +5673,7 @@ return (_ctx, _cache) => {
|
|
|
5687
5673
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
5688
5674
|
]),
|
|
5689
5675
|
_: 1 /* STABLE */
|
|
5690
|
-
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
5676
|
+
}, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
|
|
5691
5677
|
: vue.createCommentVNode("v-if", true)
|
|
5692
5678
|
], 64 /* STABLE_FRAGMENT */))
|
|
5693
5679
|
}
|
|
@@ -5695,56 +5681,56 @@ return (_ctx, _cache) => {
|
|
|
5695
5681
|
|
|
5696
5682
|
};
|
|
5697
5683
|
|
|
5698
|
-
script$
|
|
5699
|
-
|
|
5700
|
-
const _hoisted_1$4 = { class: "alert alert-info" };
|
|
5701
|
-
const _hoisted_2$4 = /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-border" }, null, -1 /* HOISTED */);
|
|
5702
|
-
const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("span", null, "Loading", -1 /* HOISTED */);
|
|
5703
|
-
const _hoisted_4$4 = [
|
|
5704
|
-
_hoisted_2$4,
|
|
5705
|
-
_hoisted_3$4
|
|
5706
|
-
];
|
|
5707
|
-
|
|
5708
|
-
function render$1(_ctx, _cache) {
|
|
5709
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, _hoisted_4$4))
|
|
5710
|
-
}
|
|
5684
|
+
script$6.__file = "src/lib/components/popups/ShRoutePopups.vue";
|
|
5711
5685
|
|
|
5712
|
-
|
|
5686
|
+
var script$5 = {
|
|
5687
|
+
__name: 'ShQueryForm',
|
|
5688
|
+
setup(__props) {
|
|
5713
5689
|
|
|
5690
|
+
const route = vueRouter.useRoute();
|
|
5714
5691
|
|
|
5715
|
-
|
|
5716
|
-
|
|
5692
|
+
const fields = route.query.fields.split(',');
|
|
5693
|
+
const action = route.query.action;
|
|
5717
5694
|
|
|
5718
|
-
|
|
5719
|
-
return (vue.openBlock(), vue.
|
|
5695
|
+
return (_ctx, _cache) => {
|
|
5696
|
+
return (vue.openBlock(), vue.createBlock(script$l, {
|
|
5697
|
+
fields: vue.unref(fields),
|
|
5698
|
+
action: vue.unref(action)
|
|
5699
|
+
}, null, 8 /* PROPS */, ["fields", "action"]))
|
|
5700
|
+
}
|
|
5720
5701
|
}
|
|
5721
5702
|
|
|
5722
|
-
|
|
5723
|
-
|
|
5703
|
+
};
|
|
5724
5704
|
|
|
5725
|
-
script$5.
|
|
5726
|
-
script$5.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
|
|
5705
|
+
script$5.__file = "src/lib/components/ShQueryForm.vue";
|
|
5727
5706
|
|
|
5728
5707
|
var script$4 = {
|
|
5729
5708
|
__name: 'ShQueryPopups',
|
|
5730
5709
|
setup(__props) {
|
|
5731
5710
|
|
|
5732
5711
|
const route = vueRouter.useRoute();
|
|
5733
|
-
const popUp = vue.ref(route.
|
|
5712
|
+
const popUp = vue.ref(route.query.popUp);
|
|
5734
5713
|
const modalId = ___default["default"].uniqueId('modal_');
|
|
5735
5714
|
const canvasId = ___default["default"].uniqueId('canvas_');
|
|
5736
|
-
let
|
|
5715
|
+
let popupComponent = vue.ref(null);
|
|
5737
5716
|
vue.ref(null);
|
|
5738
5717
|
const router = vueRouter.useRouter();
|
|
5739
5718
|
const position = vue.ref(null);
|
|
5740
5719
|
const size = vue.ref(null);
|
|
5741
|
-
const
|
|
5720
|
+
const title = vue.ref(null);
|
|
5721
|
+
vue.ref(null);
|
|
5722
|
+
|
|
5742
5723
|
vue.watch(() => route.query.popup, pop => {
|
|
5743
5724
|
popUp.value = pop;
|
|
5744
5725
|
position.value = route.query.position ?? route.query.side;
|
|
5745
5726
|
size.value = route.query.size;
|
|
5727
|
+
title.value = route.query.title;
|
|
5728
|
+
let queryComponent = route.query.comp ?? route.query.component;
|
|
5729
|
+
if(queryComponent && ['shqueryform','queryform'].includes(queryComponent.toLowerCase())) {
|
|
5730
|
+
queryComponent = script$5;
|
|
5731
|
+
}
|
|
5732
|
+
popupComponent.value = queryComponent;
|
|
5746
5733
|
if (popUp.value) {
|
|
5747
|
-
loadPopupComponent();
|
|
5748
5734
|
setTimeout(() => {
|
|
5749
5735
|
initPopup();
|
|
5750
5736
|
}, 100);
|
|
@@ -5752,27 +5738,10 @@ vue.watch(() => route.query.popup, pop => {
|
|
|
5752
5738
|
//no pop up, check if we have any unclosed backdrop
|
|
5753
5739
|
setTimeout(() => {
|
|
5754
5740
|
closeOrphanedBackdrops();
|
|
5755
|
-
},
|
|
5741
|
+
}, 500);
|
|
5756
5742
|
}
|
|
5757
5743
|
});
|
|
5758
|
-
|
|
5759
|
-
const component = route.query.comp || '';
|
|
5760
|
-
PopupComponent.value = vue.defineAsyncComponent({
|
|
5761
|
-
// the loader function
|
|
5762
|
-
loader: () => (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`../../../views/popups/${component}Popup.vue`),
|
|
5763
|
-
|
|
5764
|
-
// A component to use while the async component is loading
|
|
5765
|
-
loadingComponent: script$6,
|
|
5766
|
-
// Delay before showing the loading component. Default: 200ms.
|
|
5767
|
-
delay: 200,
|
|
5768
|
-
|
|
5769
|
-
// A component to use if the load fails
|
|
5770
|
-
errorComponent: script$5,
|
|
5771
|
-
// The error component will be displayed if a timeout is
|
|
5772
|
-
// provided and exceeded. Default: Infinity.
|
|
5773
|
-
timeout: 3000
|
|
5774
|
-
});
|
|
5775
|
-
};
|
|
5744
|
+
|
|
5776
5745
|
const closeOrphanedBackdrops = () => {
|
|
5777
5746
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5778
5747
|
if (offCanvasBackdrop) {
|
|
@@ -5817,30 +5786,31 @@ const goBack = () => {
|
|
|
5817
5786
|
return (_ctx, _cache) => {
|
|
5818
5787
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5819
5788
|
(popUp.value === 'modal')
|
|
5820
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5789
|
+
? (vue.openBlock(), vue.createBlock(script$j, {
|
|
5821
5790
|
key: 0,
|
|
5791
|
+
"modal-title": title.value,
|
|
5822
5792
|
"modal-id": vue.unref(modalId),
|
|
5823
5793
|
"modal-size": size.value
|
|
5824
5794
|
}, {
|
|
5825
5795
|
default: vue.withCtx(() => [
|
|
5826
|
-
vue.
|
|
5796
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
|
|
5827
5797
|
]),
|
|
5828
5798
|
_: 1 /* STABLE */
|
|
5829
|
-
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5799
|
+
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
5830
5800
|
: vue.createCommentVNode("v-if", true),
|
|
5831
5801
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5832
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5833
|
-
|
|
5802
|
+
? (vue.openBlock(), vue.createBlock(script$g, {
|
|
5803
|
+
"canvas-title": title.value,
|
|
5804
|
+
key: size.value + position.value,
|
|
5834
5805
|
"canvas-id": vue.unref(canvasId),
|
|
5835
5806
|
"canvas-size": size.value,
|
|
5836
5807
|
position: position.value
|
|
5837
5808
|
}, {
|
|
5838
5809
|
default: vue.withCtx(() => [
|
|
5839
|
-
vue.
|
|
5840
|
-
vue.createVNode(vue.unref(AsyncComp))
|
|
5810
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
|
|
5841
5811
|
]),
|
|
5842
5812
|
_: 1 /* STABLE */
|
|
5843
|
-
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
5813
|
+
}, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
|
|
5844
5814
|
: vue.createCommentVNode("v-if", true)
|
|
5845
5815
|
], 64 /* STABLE_FRAGMENT */))
|
|
5846
5816
|
}
|
|
@@ -5861,7 +5831,7 @@ const _hoisted_3$3 = {
|
|
|
5861
5831
|
"aria-expanded": "false"
|
|
5862
5832
|
};
|
|
5863
5833
|
const _hoisted_4$3 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */);
|
|
5864
|
-
const _hoisted_5$
|
|
5834
|
+
const _hoisted_5$2 = ["innerHTML"];
|
|
5865
5835
|
const _hoisted_6$2 = {
|
|
5866
5836
|
class: "dropdown-menu",
|
|
5867
5837
|
"aria-labelledby": "dropdownMenuLink"
|
|
@@ -5981,7 +5951,7 @@ return (_ctx, _cache) => {
|
|
|
5981
5951
|
vue.createElementVNode("div", _hoisted_3$3, [
|
|
5982
5952
|
_hoisted_4$3,
|
|
5983
5953
|
vue.createTextVNode(),
|
|
5984
|
-
vue.createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$
|
|
5954
|
+
vue.createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$2)
|
|
5985
5955
|
]),
|
|
5986
5956
|
vue.createElementVNode("ul", _hoisted_6$2, [
|
|
5987
5957
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dates.value, (date) => {
|
|
@@ -6031,16 +6001,33 @@ return (_ctx, _cache) => {
|
|
|
6031
6001
|
|
|
6032
6002
|
script$3.__file = "src/lib/components/ShRange.vue";
|
|
6033
6003
|
|
|
6004
|
+
const useAppStore = pinia.defineStore('sh-app',{
|
|
6005
|
+
state: ()=>{
|
|
6006
|
+
return {
|
|
6007
|
+
refreshKey: 0,
|
|
6008
|
+
appData: {}
|
|
6009
|
+
}
|
|
6010
|
+
},
|
|
6011
|
+
actions: {
|
|
6012
|
+
refreshPage () {
|
|
6013
|
+
this.refreshKey++;
|
|
6014
|
+
return true
|
|
6015
|
+
},
|
|
6016
|
+
refresh () {
|
|
6017
|
+
this.refreshKey++;
|
|
6018
|
+
return true
|
|
6019
|
+
},
|
|
6020
|
+
reload () {
|
|
6021
|
+
this.refreshKey++;
|
|
6022
|
+
return true
|
|
6023
|
+
}
|
|
6024
|
+
}
|
|
6025
|
+
});
|
|
6026
|
+
|
|
6034
6027
|
const _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
6035
6028
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
6036
6029
|
const _hoisted_3$2 = { class: "card-body" };
|
|
6037
|
-
const _hoisted_4$2 = {
|
|
6038
|
-
"data-bs-toggle": "modal",
|
|
6039
|
-
ref: "addDeptBtn",
|
|
6040
|
-
href: "#sh-department_modal",
|
|
6041
|
-
class: "btn btn-info btn-sm"
|
|
6042
|
-
};
|
|
6043
|
-
const _hoisted_5$2 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
6030
|
+
const _hoisted_4$2 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
6044
6031
|
|
|
6045
6032
|
|
|
6046
6033
|
var script$2 = {
|
|
@@ -6055,21 +6042,40 @@ function departmentAdded (response) {
|
|
|
6055
6042
|
reload.value += 1;
|
|
6056
6043
|
}
|
|
6057
6044
|
|
|
6045
|
+
const department = vue.ref(null);
|
|
6046
|
+
const editDepartment = dept=>{
|
|
6047
|
+
department.value = dept;
|
|
6048
|
+
if(dept) {
|
|
6049
|
+
new bootstrap.Modal(document.getElementById('sh_department_modal'),{}).show();
|
|
6050
|
+
}
|
|
6051
|
+
};
|
|
6052
|
+
|
|
6058
6053
|
return (_ctx, _cache) => {
|
|
6059
6054
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
6060
6055
|
_hoisted_1$2,
|
|
6061
6056
|
vue.createElementVNode("div", _hoisted_2$2, [
|
|
6062
6057
|
vue.createElementVNode("div", _hoisted_3$2, [
|
|
6063
|
-
vue.createElementVNode("a",
|
|
6064
|
-
|
|
6058
|
+
vue.createElementVNode("a", {
|
|
6059
|
+
onClick: _cache[0] || (_cache[0] = $event => (editDepartment(null))),
|
|
6060
|
+
"data-bs-toggle": "modal",
|
|
6061
|
+
ref: "addDeptBtn",
|
|
6062
|
+
href: "#sh_department_modal",
|
|
6063
|
+
class: "btn btn-info btn-sm"
|
|
6064
|
+
}, [
|
|
6065
|
+
_hoisted_4$2,
|
|
6065
6066
|
vue.createTextVNode(" ADD DEPARTMENT")
|
|
6066
6067
|
], 512 /* NEED_PATCH */),
|
|
6067
|
-
vue.createVNode(script$
|
|
6068
|
+
vue.createVNode(script$c, {
|
|
6068
6069
|
headers: ['id','name','description', 'created_at'],
|
|
6069
6070
|
"end-point": "sh-departments/list",
|
|
6070
6071
|
actions: {
|
|
6071
6072
|
label: 'Action',
|
|
6072
6073
|
actions: [
|
|
6074
|
+
{
|
|
6075
|
+
label: 'Edit',
|
|
6076
|
+
emits: editDepartment,
|
|
6077
|
+
class: 'btn btn-warning bi-pen btn-sm me-1'
|
|
6078
|
+
},
|
|
6073
6079
|
{
|
|
6074
6080
|
label: 'Permissions',
|
|
6075
6081
|
path: '/sh-departments/manage-permissions/{id}',
|
|
@@ -6077,18 +6083,19 @@ return (_ctx, _cache) => {
|
|
|
6077
6083
|
}
|
|
6078
6084
|
]
|
|
6079
6085
|
}
|
|
6080
|
-
}),
|
|
6081
|
-
vue.createVNode(script$
|
|
6082
|
-
"modal-id": "
|
|
6086
|
+
}, null, 8 /* PROPS */, ["actions"]),
|
|
6087
|
+
vue.createVNode(script$j, {
|
|
6088
|
+
"modal-id": "sh_department_modal",
|
|
6083
6089
|
"modal-title": "Department Form"
|
|
6084
6090
|
}, {
|
|
6085
6091
|
default: vue.withCtx(() => [
|
|
6086
|
-
vue.createVNode(script$
|
|
6092
|
+
vue.createVNode(script$s, {
|
|
6087
6093
|
"success-callback": "departmentAdded",
|
|
6094
|
+
"current-data": department.value,
|
|
6088
6095
|
onDepartmentAdded: departmentAdded,
|
|
6089
6096
|
action: "admin/departments/store",
|
|
6090
6097
|
fields: ['name','description']
|
|
6091
|
-
})
|
|
6098
|
+
}, null, 8 /* PROPS */, ["current-data"])
|
|
6092
6099
|
]),
|
|
6093
6100
|
_: 1 /* STABLE */
|
|
6094
6101
|
})
|
|
@@ -6217,7 +6224,7 @@ return (_ctx, _cache) => {
|
|
|
6217
6224
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
6218
6225
|
_hoisted_3$1,
|
|
6219
6226
|
vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
6220
|
-
vue.createVNode(script$
|
|
6227
|
+
vue.createVNode(script$c, {
|
|
6221
6228
|
actions: {
|
|
6222
6229
|
label: 'Actions',
|
|
6223
6230
|
actions: [
|
|
@@ -6237,12 +6244,12 @@ return (_ctx, _cache) => {
|
|
|
6237
6244
|
headers: ['id',showModule,'created_at'],
|
|
6238
6245
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
6239
6246
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
6240
|
-
vue.createVNode(script$
|
|
6247
|
+
vue.createVNode(script$j, {
|
|
6241
6248
|
"modal-id": "addModule",
|
|
6242
6249
|
"modal-title": "Add Module Department"
|
|
6243
6250
|
}, {
|
|
6244
6251
|
default: vue.withCtx(() => [
|
|
6245
|
-
vue.createVNode(script$
|
|
6252
|
+
vue.createVNode(script$s, {
|
|
6246
6253
|
"reload-select-items": vue.unref(reload),
|
|
6247
6254
|
"success-callback": moduleAdded,
|
|
6248
6255
|
"fill-selects": {
|
|
@@ -6264,7 +6271,7 @@ return (_ctx, _cache) => {
|
|
|
6264
6271
|
ref: permissionCanvasBtn,
|
|
6265
6272
|
"data-bs-toggle": "offcanvas"
|
|
6266
6273
|
}, null, 512 /* NEED_PATCH */),
|
|
6267
|
-
vue.createVNode(script$
|
|
6274
|
+
vue.createVNode(script$g, {
|
|
6268
6275
|
"canvas-id": "permissionsCanvas",
|
|
6269
6276
|
position: "end enlarged",
|
|
6270
6277
|
"canvas-title": "Module Permissions"
|
|
@@ -6379,7 +6386,7 @@ return (_ctx, _cache) => {
|
|
|
6379
6386
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
6380
6387
|
(section.value === 'login')
|
|
6381
6388
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
6382
|
-
vue.createVNode(script$
|
|
6389
|
+
vue.createVNode(script$s, {
|
|
6383
6390
|
class: "sh-login-form",
|
|
6384
6391
|
fields: ['email','password'],
|
|
6385
6392
|
"action-label": "Login",
|
|
@@ -6404,7 +6411,7 @@ return (_ctx, _cache) => {
|
|
|
6404
6411
|
(vue.unref(registerSubTitle))
|
|
6405
6412
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
6406
6413
|
: vue.createCommentVNode("v-if", true),
|
|
6407
|
-
vue.createVNode(script$
|
|
6414
|
+
vue.createVNode(script$s, {
|
|
6408
6415
|
class: "sh-login-form",
|
|
6409
6416
|
fields: vue.unref(registrationFields),
|
|
6410
6417
|
"action-label": "Sign Up",
|
|
@@ -6451,7 +6458,7 @@ const ShFrontend = {
|
|
|
6451
6458
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6452
6459
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6453
6460
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6454
|
-
options.formTextInput ?? script$
|
|
6461
|
+
options.formTextInput ?? script$p;
|
|
6455
6462
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6456
6463
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6457
6464
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6484,7 +6491,7 @@ const ShFrontend = {
|
|
|
6484
6491
|
});
|
|
6485
6492
|
options.router.addRoute({
|
|
6486
6493
|
path: '/sh-departments/manage-permissions/:id',
|
|
6487
|
-
component: script$
|
|
6494
|
+
component: script$7
|
|
6488
6495
|
});
|
|
6489
6496
|
}
|
|
6490
6497
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6510,28 +6517,29 @@ var shGql = {
|
|
|
6510
6517
|
};
|
|
6511
6518
|
|
|
6512
6519
|
exports.Countries = countries;
|
|
6513
|
-
exports.ManagePermissions = script$
|
|
6514
|
-
exports.ShAutoForm = script$
|
|
6515
|
-
exports.ShCanvas = script$
|
|
6516
|
-
exports.ShCanvasBtn = script$
|
|
6517
|
-
exports.ShConfirmAction = script$
|
|
6518
|
-
exports.ShDropDownForm = script$
|
|
6519
|
-
exports.ShDynamicTabs = script$
|
|
6520
|
-
exports.ShForm = script$
|
|
6520
|
+
exports.ManagePermissions = script$7;
|
|
6521
|
+
exports.ShAutoForm = script$l;
|
|
6522
|
+
exports.ShCanvas = script$g;
|
|
6523
|
+
exports.ShCanvasBtn = script$8;
|
|
6524
|
+
exports.ShConfirmAction = script$e;
|
|
6525
|
+
exports.ShDropDownForm = script$k;
|
|
6526
|
+
exports.ShDynamicTabs = script$a;
|
|
6527
|
+
exports.ShForm = script$s;
|
|
6521
6528
|
exports.ShFrontend = ShFrontend;
|
|
6522
|
-
exports.ShModal = script$
|
|
6523
|
-
exports.ShModalBtn = script$
|
|
6524
|
-
exports.ShModalForm = script$
|
|
6525
|
-
exports.ShModalFormAuto = script$
|
|
6526
|
-
exports.ShPhone = script$
|
|
6529
|
+
exports.ShModal = script$j;
|
|
6530
|
+
exports.ShModalBtn = script$9;
|
|
6531
|
+
exports.ShModalForm = script$i;
|
|
6532
|
+
exports.ShModalFormAuto = script$h;
|
|
6533
|
+
exports.ShPhone = script$u;
|
|
6527
6534
|
exports.ShQueryPopups = script$4;
|
|
6528
6535
|
exports.ShRange = script$3;
|
|
6529
|
-
exports.ShRoutePopups = script$
|
|
6530
|
-
exports.ShSilentAction = script$
|
|
6531
|
-
exports.ShTable = script$
|
|
6532
|
-
exports.ShTabs = script$
|
|
6536
|
+
exports.ShRoutePopups = script$6;
|
|
6537
|
+
exports.ShSilentAction = script$d;
|
|
6538
|
+
exports.ShTable = script$c;
|
|
6539
|
+
exports.ShTabs = script$b;
|
|
6533
6540
|
exports.shApis = shApis;
|
|
6534
6541
|
exports.shGql = shGql;
|
|
6535
6542
|
exports.shRepo = shRepo;
|
|
6536
6543
|
exports.shStorage = ShStorage;
|
|
6544
|
+
exports.useAppStore = useAppStore;
|
|
6537
6545
|
exports.useUserStore = useUserStore;
|