@iankibetsh/shframework 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.js +409 -259
- package/dist/library.mjs +392 -243
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1875,7 +1875,7 @@ const countries = [
|
|
|
1875
1875
|
}
|
|
1876
1876
|
];
|
|
1877
1877
|
|
|
1878
|
-
var script$
|
|
1878
|
+
var script$t = {
|
|
1879
1879
|
name: 'PhoneInput',
|
|
1880
1880
|
props: ['modelValue', 'country_code'],
|
|
1881
1881
|
data () {
|
|
@@ -1937,19 +1937,19 @@ var script$s = {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
1939
|
|
|
1940
|
-
const _hoisted_1$
|
|
1941
|
-
const _hoisted_2$
|
|
1940
|
+
const _hoisted_1$o = { class: "sh-phone mb-3" };
|
|
1941
|
+
const _hoisted_2$e = {
|
|
1942
1942
|
key: 0,
|
|
1943
1943
|
style: {"display":"contents"}
|
|
1944
1944
|
};
|
|
1945
|
-
const _hoisted_3$
|
|
1946
|
-
const _hoisted_4$
|
|
1945
|
+
const _hoisted_3$d = ["src"];
|
|
1946
|
+
const _hoisted_4$d = ["value"];
|
|
1947
1947
|
|
|
1948
1948
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1949
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1949
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
|
|
1950
1950
|
($data.selectedCountry)
|
|
1951
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
1952
|
-
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$
|
|
1951
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$e, [
|
|
1952
|
+
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
|
|
1953
1953
|
vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
|
|
1954
1954
|
]))
|
|
1955
1955
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -1962,7 +1962,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1962
1962
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
1963
1963
|
value: country,
|
|
1964
1964
|
key: country.dialCode
|
|
1965
|
-
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1965
|
+
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
1966
1966
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1967
1967
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1968
1968
|
[vue.vModelSelect, $data.selectedCountry]
|
|
@@ -1980,10 +1980,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1980
1980
|
]))
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
|
-
script$
|
|
1984
|
-
script$
|
|
1983
|
+
script$t.render = render$4;
|
|
1984
|
+
script$t.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
1985
1985
|
|
|
1986
|
-
var script$
|
|
1986
|
+
var script$s = {
|
|
1987
1987
|
name: 'ShEditor',
|
|
1988
1988
|
props: ['modelValue'],
|
|
1989
1989
|
components: {
|
|
@@ -2022,7 +2022,7 @@ var script$r = {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
};
|
|
2024
2024
|
|
|
2025
|
-
const _hoisted_1$
|
|
2025
|
+
const _hoisted_1$n = /*#__PURE__*/vue.createElementVNode("textarea", {
|
|
2026
2026
|
id: "tiny",
|
|
2027
2027
|
style: {"display":"none"},
|
|
2028
2028
|
"data-cy": "tinymce_editor"
|
|
@@ -2032,7 +2032,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2032
2032
|
const _component_editor = vue.resolveComponent("editor");
|
|
2033
2033
|
|
|
2034
2034
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2035
|
-
_hoisted_1$
|
|
2035
|
+
_hoisted_1$n,
|
|
2036
2036
|
vue.createElementVNode("div", {
|
|
2037
2037
|
onFocusin: _cache[1] || (_cache[1] = vue.withModifiers(() => {}, ["stop"])),
|
|
2038
2038
|
class: "sh-editor w-100"
|
|
@@ -2057,19 +2057,19 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2057
2057
|
], 64 /* STABLE_FRAGMENT */))
|
|
2058
2058
|
}
|
|
2059
2059
|
|
|
2060
|
-
script$
|
|
2061
|
-
script$
|
|
2060
|
+
script$s.render = render$3;
|
|
2061
|
+
script$s.__file = "src/lib/components/form-components/ShEditor.vue";
|
|
2062
2062
|
|
|
2063
|
-
const _hoisted_1$
|
|
2063
|
+
const _hoisted_1$m = {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
class: "dropdown sh-suggest"
|
|
2066
2066
|
};
|
|
2067
|
-
const _hoisted_2$
|
|
2068
|
-
const _hoisted_3$
|
|
2069
|
-
const _hoisted_4$
|
|
2070
|
-
const _hoisted_5$
|
|
2071
|
-
const _hoisted_6$
|
|
2072
|
-
const _hoisted_7$
|
|
2067
|
+
const _hoisted_2$d = ["id"];
|
|
2068
|
+
const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
2069
|
+
const _hoisted_4$c = ["onClick"];
|
|
2070
|
+
const _hoisted_5$a = ["id"];
|
|
2071
|
+
const _hoisted_6$9 = ["id", "aria-labelledby"];
|
|
2072
|
+
const _hoisted_7$7 = { key: 0 };
|
|
2073
2073
|
const _hoisted_8$4 = ["onClick"];
|
|
2074
2074
|
const _hoisted_9$5 = {
|
|
2075
2075
|
key: 1,
|
|
@@ -2081,7 +2081,7 @@ const _hoisted_10$4 = {
|
|
|
2081
2081
|
};
|
|
2082
2082
|
|
|
2083
2083
|
|
|
2084
|
-
var script$
|
|
2084
|
+
var script$r = {
|
|
2085
2085
|
__name: 'ShSuggest',
|
|
2086
2086
|
props: ['fillSelects','modelValue'],
|
|
2087
2087
|
emits: ['update:modelValue'],
|
|
@@ -2162,7 +2162,7 @@ function filterData(e){
|
|
|
2162
2162
|
|
|
2163
2163
|
return (_ctx, _cache) => {
|
|
2164
2164
|
return (vue.unref(id))
|
|
2165
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2165
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
|
|
2166
2166
|
vue.createElementVNode("div", {
|
|
2167
2167
|
id: vue.unref(id),
|
|
2168
2168
|
"data-bs-toggle": "dropdown",
|
|
@@ -2171,14 +2171,14 @@ return (_ctx, _cache) => {
|
|
|
2171
2171
|
}, [
|
|
2172
2172
|
vue.createElementVNode("div", null, [
|
|
2173
2173
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
|
|
2174
|
-
return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$
|
|
2174
|
+
return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$c, [
|
|
2175
2175
|
vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
|
|
2176
2176
|
vue.createElementVNode("button", {
|
|
2177
2177
|
onClick: $event => (removeSuggestion(sgt.id)),
|
|
2178
2178
|
type: "button",
|
|
2179
2179
|
class: "btn-close border-start border-1 ms-1",
|
|
2180
2180
|
"aria-label": "Close"
|
|
2181
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
2181
|
+
}, null, 8 /* PROPS */, _hoisted_4$c)
|
|
2182
2182
|
]))
|
|
2183
2183
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2184
2184
|
]),
|
|
@@ -2188,8 +2188,8 @@ return (_ctx, _cache) => {
|
|
|
2188
2188
|
onClick: filterData,
|
|
2189
2189
|
onInput: filterData,
|
|
2190
2190
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2191
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$
|
|
2192
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
2191
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$a)
|
|
2192
|
+
], 8 /* PROPS */, _hoisted_2$d),
|
|
2193
2193
|
vue.createElementVNode("ul", {
|
|
2194
2194
|
class: "dropdown-menu w-100",
|
|
2195
2195
|
id: 'dropwdown_section' + vue.unref(id),
|
|
@@ -2201,7 +2201,7 @@ return (_ctx, _cache) => {
|
|
|
2201
2201
|
key: suggestion.id
|
|
2202
2202
|
}, [
|
|
2203
2203
|
(suggestion.name)
|
|
2204
|
-
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_7$
|
|
2204
|
+
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_7$7, [
|
|
2205
2205
|
vue.createElementVNode("a", {
|
|
2206
2206
|
onClick: $event => (addSuggestion(suggestion)),
|
|
2207
2207
|
class: vue.normalizeClass(["dropdown-item", vue.unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
|
|
@@ -2214,7 +2214,7 @@ return (_ctx, _cache) => {
|
|
|
2214
2214
|
: (vue.unref(searchText))
|
|
2215
2215
|
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$5, " No results found "))
|
|
2216
2216
|
: (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$4, " Type to search... "))
|
|
2217
|
-
], 8 /* PROPS */, _hoisted_6$
|
|
2217
|
+
], 8 /* PROPS */, _hoisted_6$9)
|
|
2218
2218
|
]))
|
|
2219
2219
|
: vue.createCommentVNode("v-if", true)
|
|
2220
2220
|
}
|
|
@@ -2222,16 +2222,16 @@ return (_ctx, _cache) => {
|
|
|
2222
2222
|
|
|
2223
2223
|
};
|
|
2224
2224
|
|
|
2225
|
-
script$
|
|
2226
|
-
script$
|
|
2225
|
+
script$r.__scopeId = "data-v-71cc9569";
|
|
2226
|
+
script$r.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2227
2227
|
|
|
2228
|
-
var script$
|
|
2228
|
+
var script$q = {
|
|
2229
2229
|
name: 'ShForm',
|
|
2230
2230
|
components: {
|
|
2231
|
-
PhoneInput: script$
|
|
2232
|
-
ShSuggest: script$
|
|
2233
|
-
ShEditor: script$
|
|
2234
|
-
ShPhone: script$
|
|
2231
|
+
PhoneInput: script$t,
|
|
2232
|
+
ShSuggest: script$r,
|
|
2233
|
+
ShEditor: script$s,
|
|
2234
|
+
ShPhone: script$t
|
|
2235
2235
|
},
|
|
2236
2236
|
props: [
|
|
2237
2237
|
'action',
|
|
@@ -2553,20 +2553,20 @@ var script$p = {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
};
|
|
2555
2555
|
|
|
2556
|
-
const _hoisted_1$
|
|
2557
|
-
const _hoisted_2$
|
|
2556
|
+
const _hoisted_1$l = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2557
|
+
const _hoisted_2$c = {
|
|
2558
2558
|
ref: "ShAutoForm",
|
|
2559
2559
|
class: "sh-form"
|
|
2560
2560
|
};
|
|
2561
|
-
const _hoisted_3$
|
|
2561
|
+
const _hoisted_3$b = {
|
|
2562
2562
|
key: 0,
|
|
2563
2563
|
class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
|
|
2564
2564
|
role: "alert"
|
|
2565
2565
|
};
|
|
2566
|
-
const _hoisted_4$
|
|
2567
|
-
const _hoisted_5$
|
|
2568
|
-
const _hoisted_6$
|
|
2569
|
-
const _hoisted_7$
|
|
2566
|
+
const _hoisted_4$b = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2567
|
+
const _hoisted_5$9 = { key: 0 };
|
|
2568
|
+
const _hoisted_6$8 = { key: 1 };
|
|
2569
|
+
const _hoisted_7$6 = { class: "row" };
|
|
2570
2570
|
const _hoisted_8$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2571
2571
|
const _hoisted_9$4 = { class: "col-md-12" };
|
|
2572
2572
|
const _hoisted_10$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
@@ -2615,16 +2615,16 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2615
2615
|
const _component_ShEditor = vue.resolveComponent("ShEditor");
|
|
2616
2616
|
|
|
2617
2617
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2618
|
-
_hoisted_1$
|
|
2619
|
-
vue.createElementVNode("form", _hoisted_2$
|
|
2618
|
+
_hoisted_1$l,
|
|
2619
|
+
vue.createElementVNode("form", _hoisted_2$c, [
|
|
2620
2620
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2621
2621
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2622
2622
|
(_ctx.form_status == 3)
|
|
2623
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
2624
|
-
_hoisted_4$
|
|
2623
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
|
|
2624
|
+
_hoisted_4$b,
|
|
2625
2625
|
(_ctx.errorText)
|
|
2626
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
2627
|
-
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$
|
|
2626
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2627
|
+
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
|
|
2628
2628
|
vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2629
2629
|
]))
|
|
2630
2630
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2634,7 +2634,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2634
2634
|
}, null, 512 /* NEED_PATCH */), [
|
|
2635
2635
|
[vue.vModelText, _ctx.form_elements['id']]
|
|
2636
2636
|
]),
|
|
2637
|
-
vue.createElementVNode("div", _hoisted_7$
|
|
2637
|
+
vue.createElementVNode("div", _hoisted_7$6, [
|
|
2638
2638
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.fields, (field) => {
|
|
2639
2639
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
2640
2640
|
class: vue.normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
|
|
@@ -2832,10 +2832,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2832
2832
|
], 64 /* STABLE_FRAGMENT */))
|
|
2833
2833
|
}
|
|
2834
2834
|
|
|
2835
|
-
script$
|
|
2836
|
-
script$
|
|
2835
|
+
script$q.render = render$2;
|
|
2836
|
+
script$q.__file = "src/lib/components/ShForm.vue";
|
|
2837
2837
|
|
|
2838
|
-
var script$
|
|
2838
|
+
var script$p = {
|
|
2839
2839
|
__name: 'EmailInput',
|
|
2840
2840
|
props: ['modelValue','label'],
|
|
2841
2841
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2871,12 +2871,12 @@ return (_ctx, _cache) => {
|
|
|
2871
2871
|
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
|
-
script$
|
|
2874
|
+
script$p.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2875
2875
|
|
|
2876
|
-
const _hoisted_1$
|
|
2876
|
+
const _hoisted_1$k = ["min", "max"];
|
|
2877
2877
|
|
|
2878
2878
|
|
|
2879
|
-
var script$
|
|
2879
|
+
var script$o = {
|
|
2880
2880
|
__name: 'NumberInput',
|
|
2881
2881
|
props: ['modelValue','label','min','max'],
|
|
2882
2882
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2906,7 +2906,7 @@ return (_ctx, _cache) => {
|
|
|
2906
2906
|
onChange: modelValueUpdated,
|
|
2907
2907
|
onKeydown: modelValueUpdated,
|
|
2908
2908
|
onUpdated: modelValueUpdated
|
|
2909
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$
|
|
2909
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$k)), [
|
|
2910
2910
|
[vue.vModelText, inputModel.value]
|
|
2911
2911
|
])
|
|
2912
2912
|
}
|
|
@@ -2914,9 +2914,9 @@ return (_ctx, _cache) => {
|
|
|
2914
2914
|
|
|
2915
2915
|
};
|
|
2916
2916
|
|
|
2917
|
-
script$
|
|
2917
|
+
script$o.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2918
2918
|
|
|
2919
|
-
var script$
|
|
2919
|
+
var script$n = {
|
|
2920
2920
|
__name: 'TextInput',
|
|
2921
2921
|
props: ['modelValue','label','isInvalid'],
|
|
2922
2922
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2952,9 +2952,9 @@ return (_ctx, _cache) => {
|
|
|
2952
2952
|
|
|
2953
2953
|
};
|
|
2954
2954
|
|
|
2955
|
-
script$
|
|
2955
|
+
script$n.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2956
2956
|
|
|
2957
|
-
var script$
|
|
2957
|
+
var script$m = {
|
|
2958
2958
|
__name: 'TextAreaInput',
|
|
2959
2959
|
props: ['modelValue','label'],
|
|
2960
2960
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2990,12 +2990,12 @@ return (_ctx, _cache) => {
|
|
|
2990
2990
|
|
|
2991
2991
|
};
|
|
2992
2992
|
|
|
2993
|
-
script$
|
|
2993
|
+
script$m.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2994
2994
|
|
|
2995
|
-
const _hoisted_1$
|
|
2995
|
+
const _hoisted_1$j = ["value"];
|
|
2996
2996
|
|
|
2997
2997
|
|
|
2998
|
-
var script$
|
|
2998
|
+
var script$l = {
|
|
2999
2999
|
__name: 'SelectInput',
|
|
3000
3000
|
props: ['modelValue','label','data','dataUrl'],
|
|
3001
3001
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3046,7 +3046,7 @@ return (_ctx, _cache) => {
|
|
|
3046
3046
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
3047
3047
|
key: option.id,
|
|
3048
3048
|
value: option.id
|
|
3049
|
-
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3049
|
+
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$j))
|
|
3050
3050
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3051
3051
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
3052
3052
|
[vue.vModelSelect, inputModel.value]
|
|
@@ -3056,9 +3056,9 @@ return (_ctx, _cache) => {
|
|
|
3056
3056
|
|
|
3057
3057
|
};
|
|
3058
3058
|
|
|
3059
|
-
script$
|
|
3059
|
+
script$l.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3060
3060
|
|
|
3061
|
-
var script$
|
|
3061
|
+
var script$k = {
|
|
3062
3062
|
__name: 'PasswordInput',
|
|
3063
3063
|
props: ['modelValue','label'],
|
|
3064
3064
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3094,23 +3094,23 @@ return (_ctx, _cache) => {
|
|
|
3094
3094
|
|
|
3095
3095
|
};
|
|
3096
3096
|
|
|
3097
|
-
script$
|
|
3097
|
+
script$k.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3098
3098
|
|
|
3099
|
-
const _hoisted_1$
|
|
3100
|
-
const _hoisted_2$
|
|
3101
|
-
const _hoisted_3$
|
|
3102
|
-
const _hoisted_4$
|
|
3103
|
-
const _hoisted_5$
|
|
3104
|
-
const _hoisted_6$
|
|
3099
|
+
const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3100
|
+
const _hoisted_2$b = ["innerHTML"];
|
|
3101
|
+
const _hoisted_3$a = ["innerHTML"];
|
|
3102
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
3103
|
+
const _hoisted_5$8 = ["disabled"];
|
|
3104
|
+
const _hoisted_6$7 = {
|
|
3105
3105
|
key: 0,
|
|
3106
3106
|
class: "spinner-border spinner-border-sm",
|
|
3107
3107
|
role: "status",
|
|
3108
3108
|
"aria-hidden": "true"
|
|
3109
3109
|
};
|
|
3110
|
-
const _hoisted_7$
|
|
3110
|
+
const _hoisted_7$5 = { key: 1 };
|
|
3111
3111
|
|
|
3112
3112
|
|
|
3113
|
-
var script$
|
|
3113
|
+
var script$j = {
|
|
3114
3114
|
__name: 'ShAutoForm',
|
|
3115
3115
|
props: [
|
|
3116
3116
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3143,13 +3143,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3143
3143
|
const defaultPhones = ['phone'];
|
|
3144
3144
|
const defaultEmails = ['email'];
|
|
3145
3145
|
const formComponents = vue.inject('formComponents');
|
|
3146
|
-
const TextComponent = formComponents.text ?? script$
|
|
3147
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3148
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3149
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3150
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3151
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3152
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3146
|
+
const TextComponent = formComponents.text ?? script$n;
|
|
3147
|
+
const TextAreaComponent = formComponents.textArea ?? script$m;
|
|
3148
|
+
const EmailComponent = formComponents.email ?? script$p;
|
|
3149
|
+
const PhoneComponent = formComponents.phone ?? script$t;
|
|
3150
|
+
const NumberComponent = formComponents.number ?? script$o;
|
|
3151
|
+
const SelectComponent = formComponents.select ?? script$l;
|
|
3152
|
+
const PasswordComponent = formComponents.password ?? script$k;
|
|
3153
3153
|
if(props.customComponents && props.customComponents[field]) {
|
|
3154
3154
|
return props.customComponents[field]
|
|
3155
3155
|
}
|
|
@@ -3161,16 +3161,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3161
3161
|
}
|
|
3162
3162
|
else
|
|
3163
3163
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3164
|
-
return formComponents.textArea ?? script$
|
|
3164
|
+
return formComponents.textArea ?? script$m
|
|
3165
3165
|
} else
|
|
3166
3166
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3167
|
-
return formComponents.email ?? script$
|
|
3167
|
+
return formComponents.email ?? script$p
|
|
3168
3168
|
} else
|
|
3169
3169
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3170
|
-
return formComponents.phone ?? script$
|
|
3170
|
+
return formComponents.phone ?? script$t
|
|
3171
3171
|
} else
|
|
3172
3172
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3173
|
-
return formComponents.number ?? script$
|
|
3173
|
+
return formComponents.number ?? script$o
|
|
3174
3174
|
}
|
|
3175
3175
|
// else
|
|
3176
3176
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3179,14 +3179,14 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3179
3179
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3180
3180
|
// return formComponents.date ?? DateInput
|
|
3181
3181
|
// }
|
|
3182
|
-
return formComponents.text ?? script$
|
|
3182
|
+
return formComponents.text ?? script$n
|
|
3183
3183
|
};
|
|
3184
3184
|
const shFormElementClasses = vue.ref(null);
|
|
3185
3185
|
shFormElementClasses.value = vue.inject('shFormElementClasses');
|
|
3186
3186
|
const shAutoForm = vue.ref(null);
|
|
3187
3187
|
const closeModal = e => {
|
|
3188
3188
|
setTimeout(() => {
|
|
3189
|
-
const modal = script$
|
|
3189
|
+
const modal = script$j.value.closest('.modal-dialog');
|
|
3190
3190
|
if(modal){
|
|
3191
3191
|
const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
|
|
3192
3192
|
closeBtn && closeBtn.click();
|
|
@@ -3282,7 +3282,7 @@ vue.onMounted((ev)=>{
|
|
|
3282
3282
|
|
|
3283
3283
|
return (_ctx, _cache) => {
|
|
3284
3284
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3285
|
-
_hoisted_1$
|
|
3285
|
+
_hoisted_1$i,
|
|
3286
3286
|
vue.createElementVNode("form", {
|
|
3287
3287
|
class: vue.normalizeClass([__props.formClass, "sh-form"]),
|
|
3288
3288
|
ref_key: "shAutoForm",
|
|
@@ -3299,7 +3299,7 @@ return (_ctx, _cache) => {
|
|
|
3299
3299
|
key: 0,
|
|
3300
3300
|
class: vue.normalizeClass(getElementClass('formLabel')),
|
|
3301
3301
|
innerHTML: field.label
|
|
3302
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_2$
|
|
3302
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_2$b))
|
|
3303
3303
|
: vue.createCommentVNode("v-if", true),
|
|
3304
3304
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
|
|
3305
3305
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
@@ -3313,14 +3313,14 @@ return (_ctx, _cache) => {
|
|
|
3313
3313
|
key: 1,
|
|
3314
3314
|
class: vue.normalizeClass(getElementClass('formLabel')),
|
|
3315
3315
|
innerHTML: field.label
|
|
3316
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_3$
|
|
3316
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
|
|
3317
3317
|
: vue.createCommentVNode("v-if", true),
|
|
3318
3318
|
(field.helper)
|
|
3319
3319
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3320
3320
|
key: 2,
|
|
3321
3321
|
class: vue.normalizeClass(getElementClass('helperText')),
|
|
3322
3322
|
innerHTML: field.helper
|
|
3323
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3323
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3324
3324
|
: vue.createCommentVNode("v-if", true),
|
|
3325
3325
|
(validationErrors.value[field.field])
|
|
3326
3326
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -3343,12 +3343,12 @@ return (_ctx, _cache) => {
|
|
|
3343
3343
|
class: vue.normalizeClass(getElementClass('actionBtn'))
|
|
3344
3344
|
}, [
|
|
3345
3345
|
(loading.value)
|
|
3346
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$
|
|
3346
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$7))
|
|
3347
3347
|
: vue.createCommentVNode("v-if", true),
|
|
3348
3348
|
(!loading.value)
|
|
3349
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$
|
|
3349
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$5, "Submit"))
|
|
3350
3350
|
: vue.createCommentVNode("v-if", true)
|
|
3351
|
-
], 14 /* CLASS, STYLE, PROPS */, _hoisted_5$
|
|
3351
|
+
], 14 /* CLASS, STYLE, PROPS */, _hoisted_5$8)
|
|
3352
3352
|
], 2 /* CLASS */)
|
|
3353
3353
|
], 34 /* CLASS, HYDRATE_EVENTS */)
|
|
3354
3354
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3357,12 +3357,12 @@ return (_ctx, _cache) => {
|
|
|
3357
3357
|
|
|
3358
3358
|
};
|
|
3359
3359
|
|
|
3360
|
-
script$
|
|
3360
|
+
script$j.__file = "src/lib/components/ShAutoForm.vue";
|
|
3361
3361
|
|
|
3362
|
-
const _hoisted_1$
|
|
3363
|
-
const _hoisted_2$
|
|
3362
|
+
const _hoisted_1$h = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3363
|
+
const _hoisted_2$a = { class: "dropdown" };
|
|
3364
3364
|
|
|
3365
|
-
var script$
|
|
3365
|
+
var script$i = {
|
|
3366
3366
|
__name: 'ShDropDownForm',
|
|
3367
3367
|
props: ['action',
|
|
3368
3368
|
'classes',
|
|
@@ -3392,8 +3392,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3392
3392
|
|
|
3393
3393
|
return (_ctx, _cache) => {
|
|
3394
3394
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3395
|
-
_hoisted_1$
|
|
3396
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3395
|
+
_hoisted_1$h,
|
|
3396
|
+
vue.createElementVNode("div", _hoisted_2$a, [
|
|
3397
3397
|
vue.createElementVNode("a", {
|
|
3398
3398
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
3399
3399
|
href: "#",
|
|
@@ -3409,7 +3409,7 @@ return (_ctx, _cache) => {
|
|
|
3409
3409
|
class: "dropdown-menu px-2 py-1",
|
|
3410
3410
|
"aria-labelledby": dropdownId
|
|
3411
3411
|
}, [
|
|
3412
|
-
vue.createVNode(script$
|
|
3412
|
+
vue.createVNode(script$q, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3413
3413
|
])
|
|
3414
3414
|
])
|
|
3415
3415
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3418,21 +3418,21 @@ return (_ctx, _cache) => {
|
|
|
3418
3418
|
|
|
3419
3419
|
};
|
|
3420
3420
|
|
|
3421
|
-
script$
|
|
3421
|
+
script$i.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3422
3422
|
|
|
3423
|
-
const _hoisted_1$
|
|
3424
|
-
const _hoisted_2$
|
|
3425
|
-
const _hoisted_3$
|
|
3426
|
-
const _hoisted_4$
|
|
3427
|
-
const _hoisted_5$
|
|
3423
|
+
const _hoisted_1$g = ["id"];
|
|
3424
|
+
const _hoisted_2$9 = { class: "modal-content" };
|
|
3425
|
+
const _hoisted_3$9 = { class: "modal-header" };
|
|
3426
|
+
const _hoisted_4$9 = { class: "modal-title" };
|
|
3427
|
+
const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
3428
3428
|
class: "btn btn-danger btn-sm",
|
|
3429
3429
|
"data-bs-dismiss": "modal",
|
|
3430
3430
|
"data-dismiss": "modal"
|
|
3431
3431
|
}, "×", -1 /* HOISTED */);
|
|
3432
|
-
const _hoisted_6$
|
|
3433
|
-
const _hoisted_7$
|
|
3432
|
+
const _hoisted_6$6 = { class: "modal-body" };
|
|
3433
|
+
const _hoisted_7$4 = { class: "section" };
|
|
3434
3434
|
|
|
3435
|
-
var script$
|
|
3435
|
+
var script$h = {
|
|
3436
3436
|
__name: 'ShModal',
|
|
3437
3437
|
props: {
|
|
3438
3438
|
modalId: {
|
|
@@ -3469,29 +3469,29 @@ return (_ctx, _cache) => {
|
|
|
3469
3469
|
vue.createElementVNode("div", {
|
|
3470
3470
|
class: vue.normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
|
|
3471
3471
|
}, [
|
|
3472
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3473
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3474
|
-
vue.createElementVNode("h3", _hoisted_4$
|
|
3475
|
-
_hoisted_5$
|
|
3472
|
+
vue.createElementVNode("div", _hoisted_2$9, [
|
|
3473
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
3474
|
+
vue.createElementVNode("h3", _hoisted_4$9, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3475
|
+
_hoisted_5$7
|
|
3476
3476
|
]),
|
|
3477
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
3478
|
-
vue.createElementVNode("div", _hoisted_7$
|
|
3477
|
+
vue.createElementVNode("div", _hoisted_6$6, [
|
|
3478
|
+
vue.createElementVNode("div", _hoisted_7$4, [
|
|
3479
3479
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3480
3480
|
])
|
|
3481
3481
|
])
|
|
3482
3482
|
])
|
|
3483
3483
|
], 2 /* CLASS */)
|
|
3484
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3484
|
+
], 8 /* PROPS */, _hoisted_1$g))
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
|
|
3488
3488
|
};
|
|
3489
3489
|
|
|
3490
|
-
script$
|
|
3490
|
+
script$h.__file = "src/lib/components/ShModal.vue";
|
|
3491
3491
|
|
|
3492
|
-
const _hoisted_1$
|
|
3492
|
+
const _hoisted_1$f = ["href"];
|
|
3493
3493
|
|
|
3494
|
-
var script$
|
|
3494
|
+
var script$g = {
|
|
3495
3495
|
__name: 'ShModalForm',
|
|
3496
3496
|
props: ['action',
|
|
3497
3497
|
'classes',
|
|
@@ -3530,13 +3530,13 @@ return (_ctx, _cache) => {
|
|
|
3530
3530
|
"data-bs-toggle": "modal"
|
|
3531
3531
|
}, [
|
|
3532
3532
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3533
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3534
|
-
vue.createVNode(script$
|
|
3533
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3534
|
+
vue.createVNode(script$h, {
|
|
3535
3535
|
"modal-id": modalId,
|
|
3536
3536
|
"modal-title": __props.modalTitle
|
|
3537
3537
|
}, {
|
|
3538
3538
|
default: vue.withCtx(() => [
|
|
3539
|
-
vue.createVNode(script$
|
|
3539
|
+
vue.createVNode(script$q, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3540
3540
|
]),
|
|
3541
3541
|
_: 1 /* STABLE */
|
|
3542
3542
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3546,11 +3546,11 @@ return (_ctx, _cache) => {
|
|
|
3546
3546
|
|
|
3547
3547
|
};
|
|
3548
3548
|
|
|
3549
|
-
script$
|
|
3549
|
+
script$g.__file = "src/lib/components/ShModalForm.vue";
|
|
3550
3550
|
|
|
3551
|
-
const _hoisted_1$
|
|
3551
|
+
const _hoisted_1$e = ["href"];
|
|
3552
3552
|
|
|
3553
|
-
var script$
|
|
3553
|
+
var script$f = {
|
|
3554
3554
|
__name: 'ShModalFormAuto',
|
|
3555
3555
|
props: ['action',
|
|
3556
3556
|
'classes',
|
|
@@ -3590,13 +3590,13 @@ return (_ctx, _cache) => {
|
|
|
3590
3590
|
"data-bs-toggle": "modal"
|
|
3591
3591
|
}, [
|
|
3592
3592
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3593
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3594
|
-
vue.createVNode(script$
|
|
3593
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$e),
|
|
3594
|
+
vue.createVNode(script$h, {
|
|
3595
3595
|
"modal-id": modalId,
|
|
3596
3596
|
"modal-title": __props.modalTitle
|
|
3597
3597
|
}, {
|
|
3598
3598
|
default: vue.withCtx(() => [
|
|
3599
|
-
vue.createVNode(script$
|
|
3599
|
+
vue.createVNode(script$j, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3600
3600
|
]),
|
|
3601
3601
|
_: 1 /* STABLE */
|
|
3602
3602
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3606,17 +3606,17 @@ return (_ctx, _cache) => {
|
|
|
3606
3606
|
|
|
3607
3607
|
};
|
|
3608
3608
|
|
|
3609
|
-
script$
|
|
3609
|
+
script$f.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3610
3610
|
|
|
3611
|
-
const _hoisted_1$
|
|
3612
|
-
const _hoisted_2$
|
|
3613
|
-
const _hoisted_3$
|
|
3611
|
+
const _hoisted_1$d = ["id"];
|
|
3612
|
+
const _hoisted_2$8 = { class: "offcanvas-header" };
|
|
3613
|
+
const _hoisted_3$8 = {
|
|
3614
3614
|
class: "offcanvas-title",
|
|
3615
3615
|
id: "offcanvasScrollingLabel"
|
|
3616
3616
|
};
|
|
3617
|
-
const _hoisted_4$
|
|
3617
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
3618
3618
|
|
|
3619
|
-
var script$
|
|
3619
|
+
var script$e = {
|
|
3620
3620
|
__name: 'ShCanvas',
|
|
3621
3621
|
props: {
|
|
3622
3622
|
canvasId: {
|
|
@@ -3661,8 +3661,8 @@ return (_ctx, _cache) => {
|
|
|
3661
3661
|
id: __props.canvasId,
|
|
3662
3662
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
3663
3663
|
}, [
|
|
3664
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3665
|
-
vue.createElementVNode("h5", _hoisted_3$
|
|
3664
|
+
vue.createElementVNode("div", _hoisted_2$8, [
|
|
3665
|
+
vue.createElementVNode("h5", _hoisted_3$8, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
3666
3666
|
vue.createElementVNode("button", {
|
|
3667
3667
|
type: "button",
|
|
3668
3668
|
ref: "closecanvas",
|
|
@@ -3672,18 +3672,18 @@ return (_ctx, _cache) => {
|
|
|
3672
3672
|
"aria-label": "Close"
|
|
3673
3673
|
}, null, 512 /* NEED_PATCH */)
|
|
3674
3674
|
]),
|
|
3675
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
3675
|
+
vue.createElementVNode("div", _hoisted_4$8, [
|
|
3676
3676
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3677
3677
|
])
|
|
3678
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3678
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$d))
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
|
|
3682
3682
|
};
|
|
3683
3683
|
|
|
3684
|
-
script$
|
|
3684
|
+
script$e.__file = "src/lib/components/ShCanvas.vue";
|
|
3685
3685
|
|
|
3686
|
-
var script$
|
|
3686
|
+
var script$d = {
|
|
3687
3687
|
name: 'Pagination',
|
|
3688
3688
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3689
3689
|
data () {
|
|
@@ -3754,12 +3754,12 @@ var script$c = {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
};
|
|
3756
3756
|
|
|
3757
|
-
const _hoisted_1$
|
|
3758
|
-
const _hoisted_2$
|
|
3759
|
-
const _hoisted_3$
|
|
3760
|
-
const _hoisted_4$
|
|
3757
|
+
const _hoisted_1$c = { key: 0 };
|
|
3758
|
+
const _hoisted_2$7 = { class: "record_count_body mb-3" };
|
|
3759
|
+
const _hoisted_3$7 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
3760
|
+
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);
|
|
3761
3761
|
const _hoisted_9$3 = [
|
|
3762
|
-
_hoisted_4$
|
|
3762
|
+
_hoisted_4$7
|
|
3763
3763
|
];
|
|
3764
3764
|
const _hoisted_10$2 = { class: "record_counts" };
|
|
3765
3765
|
const _hoisted_11$2 = {
|
|
@@ -3800,9 +3800,9 @@ const _hoisted_22$1 = {
|
|
|
3800
3800
|
|
|
3801
3801
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3802
3802
|
return ($props.paginationStyle !== 'loadMore')
|
|
3803
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3804
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3805
|
-
_hoisted_3$
|
|
3803
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
3804
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
3805
|
+
_hoisted_3$7,
|
|
3806
3806
|
vue.createTextVNode(" "),
|
|
3807
3807
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
3808
3808
|
class: "select_per_page",
|
|
@@ -3872,17 +3872,17 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3872
3872
|
]))
|
|
3873
3873
|
}
|
|
3874
3874
|
|
|
3875
|
-
script$
|
|
3876
|
-
script$
|
|
3875
|
+
script$d.render = render$1;
|
|
3876
|
+
script$d.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3877
3877
|
|
|
3878
|
-
const _hoisted_1$
|
|
3878
|
+
const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3879
3879
|
class: "spinner-border spinner-border-sm me-1",
|
|
3880
3880
|
role: "status",
|
|
3881
3881
|
"aria-hidden": "true"
|
|
3882
3882
|
}, null, -1 /* HOISTED */);
|
|
3883
3883
|
|
|
3884
3884
|
|
|
3885
|
-
var script$
|
|
3885
|
+
var script$c = {
|
|
3886
3886
|
__name: 'ShConfirmAction',
|
|
3887
3887
|
props: {
|
|
3888
3888
|
data: Object,
|
|
@@ -3955,7 +3955,7 @@ return (_ctx, _cache) => {
|
|
|
3955
3955
|
}, [
|
|
3956
3956
|
(processing.value)
|
|
3957
3957
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
3958
|
-
_hoisted_1$
|
|
3958
|
+
_hoisted_1$b,
|
|
3959
3959
|
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
3960
3960
|
], 64 /* STABLE_FRAGMENT */))
|
|
3961
3961
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -3968,15 +3968,15 @@ return (_ctx, _cache) => {
|
|
|
3968
3968
|
|
|
3969
3969
|
};
|
|
3970
3970
|
|
|
3971
|
-
script$
|
|
3971
|
+
script$c.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3972
3972
|
|
|
3973
|
-
const _hoisted_1$
|
|
3973
|
+
const _hoisted_1$a = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3974
3974
|
class: "spinner-border spinner-border-sm me-1",
|
|
3975
3975
|
role: "status",
|
|
3976
3976
|
"aria-hidden": "true"
|
|
3977
3977
|
}, null, -1 /* HOISTED */);
|
|
3978
3978
|
|
|
3979
|
-
var script$
|
|
3979
|
+
var script$b = {
|
|
3980
3980
|
__name: 'ShSilentAction',
|
|
3981
3981
|
props: {
|
|
3982
3982
|
data: Object,
|
|
@@ -4051,7 +4051,7 @@ return (_ctx, _cache) => {
|
|
|
4051
4051
|
}, [
|
|
4052
4052
|
(processing.value)
|
|
4053
4053
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4054
|
-
_hoisted_1$
|
|
4054
|
+
_hoisted_1$a,
|
|
4055
4055
|
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4056
4056
|
], 64 /* STABLE_FRAGMENT */))
|
|
4057
4057
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -4064,9 +4064,9 @@ return (_ctx, _cache) => {
|
|
|
4064
4064
|
|
|
4065
4065
|
};
|
|
4066
4066
|
|
|
4067
|
-
script$
|
|
4067
|
+
script$b.__file = "src/lib/components/ShSilentAction.vue";
|
|
4068
4068
|
|
|
4069
|
-
var script$
|
|
4069
|
+
var script$a = {
|
|
4070
4070
|
name: 'sh-table',
|
|
4071
4071
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4072
4072
|
inject: ['channel'],
|
|
@@ -4298,16 +4298,19 @@ var script$9 = {
|
|
|
4298
4298
|
},
|
|
4299
4299
|
reload () {
|
|
4300
4300
|
this.reloadData();
|
|
4301
|
+
},
|
|
4302
|
+
endPoint() {
|
|
4303
|
+
this.reloadData();
|
|
4301
4304
|
}
|
|
4302
4305
|
},
|
|
4303
4306
|
created () {
|
|
4304
4307
|
this.reloadData();
|
|
4305
4308
|
},
|
|
4306
4309
|
components: {
|
|
4307
|
-
ShSilentAction: script$
|
|
4308
|
-
ShConfirmAction: script$
|
|
4309
|
-
ShCanvas: script$
|
|
4310
|
-
pagination: script$
|
|
4310
|
+
ShSilentAction: script$b,
|
|
4311
|
+
ShConfirmAction: script$c,
|
|
4312
|
+
ShCanvas: script$e,
|
|
4313
|
+
pagination: script$d
|
|
4311
4314
|
},
|
|
4312
4315
|
computed: {
|
|
4313
4316
|
windowWidth: function () {
|
|
@@ -4325,20 +4328,20 @@ var script$9 = {
|
|
|
4325
4328
|
}
|
|
4326
4329
|
};
|
|
4327
4330
|
|
|
4328
|
-
const _hoisted_1$
|
|
4329
|
-
const _hoisted_2$
|
|
4331
|
+
const _hoisted_1$9 = { class: "auto-table mt-2" };
|
|
4332
|
+
const _hoisted_2$6 = {
|
|
4330
4333
|
key: 0,
|
|
4331
4334
|
class: "col-md-4 mb-2"
|
|
4332
4335
|
};
|
|
4333
|
-
const _hoisted_3$
|
|
4334
|
-
const _hoisted_4$
|
|
4335
|
-
const _hoisted_5$
|
|
4336
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4337
|
+
const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
4338
|
+
const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4336
4339
|
class: "spinner-border spinner-border-sm",
|
|
4337
4340
|
role: "status",
|
|
4338
4341
|
"aria-hidden": "true"
|
|
4339
4342
|
}, null, -1 /* HOISTED */);
|
|
4340
|
-
const _hoisted_6$
|
|
4341
|
-
const _hoisted_7$
|
|
4343
|
+
const _hoisted_6$5 = /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
|
|
4344
|
+
const _hoisted_7$3 = {
|
|
4342
4345
|
key: 1,
|
|
4343
4346
|
class: "row"
|
|
4344
4347
|
};
|
|
@@ -4488,9 +4491,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4488
4491
|
const _component_pagination = vue.resolveComponent("pagination");
|
|
4489
4492
|
const _component_sh_canvas = vue.resolveComponent("sh-canvas");
|
|
4490
4493
|
|
|
4491
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4494
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
4492
4495
|
($props.hasDownload)
|
|
4493
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
4496
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
4494
4497
|
vue.createElementVNode("button", {
|
|
4495
4498
|
disabled: $data.downloading,
|
|
4496
4499
|
class: "btn btn-warning btn-sm",
|
|
@@ -4498,18 +4501,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4498
4501
|
}, [
|
|
4499
4502
|
(!$data.downloading)
|
|
4500
4503
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4501
|
-
_hoisted_4$
|
|
4504
|
+
_hoisted_4$6,
|
|
4502
4505
|
vue.createTextVNode(" Export ")
|
|
4503
4506
|
], 64 /* STABLE_FRAGMENT */))
|
|
4504
4507
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
4505
|
-
_hoisted_5$
|
|
4506
|
-
_hoisted_6$
|
|
4508
|
+
_hoisted_5$6,
|
|
4509
|
+
_hoisted_6$5
|
|
4507
4510
|
], 64 /* STABLE_FRAGMENT */))
|
|
4508
|
-
], 8 /* PROPS */, _hoisted_3$
|
|
4511
|
+
], 8 /* PROPS */, _hoisted_3$6)
|
|
4509
4512
|
]))
|
|
4510
4513
|
: vue.createCommentVNode("v-if", true),
|
|
4511
4514
|
(!$props.hideSearch)
|
|
4512
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$
|
|
4515
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
|
|
4513
4516
|
vue.createElementVNode("div", _hoisted_8$2, [
|
|
4514
4517
|
vue.createElementVNode("div", _hoisted_9$2, [
|
|
4515
4518
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -4941,10 +4944,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4941
4944
|
]))
|
|
4942
4945
|
}
|
|
4943
4946
|
|
|
4944
|
-
script$
|
|
4945
|
-
script$
|
|
4947
|
+
script$a.render = render;
|
|
4948
|
+
script$a.__file = "src/lib/components/ShTable.vue";
|
|
4946
4949
|
|
|
4947
|
-
var script$
|
|
4950
|
+
var script$9 = {
|
|
4948
4951
|
__name: 'ShTabs',
|
|
4949
4952
|
props: {
|
|
4950
4953
|
tabs: {
|
|
@@ -5088,22 +5091,22 @@ return (_ctx, _cache) => {
|
|
|
5088
5091
|
|
|
5089
5092
|
};
|
|
5090
5093
|
|
|
5091
|
-
script$
|
|
5094
|
+
script$9.__file = "src/lib/components/ShTabs.vue";
|
|
5092
5095
|
|
|
5093
|
-
const _hoisted_1$
|
|
5096
|
+
const _hoisted_1$8 = {
|
|
5094
5097
|
class: "nav nav-tabs",
|
|
5095
5098
|
role: "tablist"
|
|
5096
5099
|
};
|
|
5097
|
-
const _hoisted_2$
|
|
5100
|
+
const _hoisted_2$5 = {
|
|
5098
5101
|
class: "nav-item",
|
|
5099
5102
|
role: "presentation"
|
|
5100
5103
|
};
|
|
5101
|
-
const _hoisted_3$
|
|
5102
|
-
const _hoisted_4$
|
|
5103
|
-
const _hoisted_5$
|
|
5104
|
-
const _hoisted_6$
|
|
5104
|
+
const _hoisted_3$5 = ["onClick"];
|
|
5105
|
+
const _hoisted_4$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
5106
|
+
const _hoisted_5$5 = { class: "sh_tab_count" };
|
|
5107
|
+
const _hoisted_6$4 = { class: "tab-content" };
|
|
5105
5108
|
|
|
5106
|
-
var script$
|
|
5109
|
+
var script$8 = {
|
|
5107
5110
|
__name: 'ShDynamicTabs',
|
|
5108
5111
|
props: ['tabs','data'],
|
|
5109
5112
|
setup(__props) {
|
|
@@ -5128,9 +5131,9 @@ function setTab(tab){
|
|
|
5128
5131
|
|
|
5129
5132
|
return (_ctx, _cache) => {
|
|
5130
5133
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5131
|
-
vue.createElementVNode("ul", _hoisted_1$
|
|
5134
|
+
vue.createElementVNode("ul", _hoisted_1$8, [
|
|
5132
5135
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
|
|
5133
|
-
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$
|
|
5136
|
+
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$5, [
|
|
5134
5137
|
vue.createElementVNode("button", {
|
|
5135
5138
|
onClick: $event => (setTab(tab)),
|
|
5136
5139
|
class: vue.normalizeClass(["nav-link", vue.unref(currentTab) === tab ? 'active':''])
|
|
@@ -5138,15 +5141,15 @@ return (_ctx, _cache) => {
|
|
|
5138
5141
|
vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
|
|
5139
5142
|
(tab.count || tab.tabCount)
|
|
5140
5143
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
5141
|
-
_hoisted_4$
|
|
5142
|
-
vue.createElementVNode("sup", _hoisted_5$
|
|
5144
|
+
_hoisted_4$5,
|
|
5145
|
+
vue.createElementVNode("sup", _hoisted_5$5, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
|
|
5143
5146
|
], 64 /* STABLE_FRAGMENT */))
|
|
5144
5147
|
: vue.createCommentVNode("v-if", true)
|
|
5145
|
-
], 10 /* CLASS, PROPS */, _hoisted_3$
|
|
5148
|
+
], 10 /* CLASS, PROPS */, _hoisted_3$5)
|
|
5146
5149
|
]))
|
|
5147
5150
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
5148
5151
|
]),
|
|
5149
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
5152
|
+
vue.createElementVNode("div", _hoisted_6$4, [
|
|
5150
5153
|
(vue.unref(currentTab))
|
|
5151
5154
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(currentTab))), null, 16 /* FULL_PROPS */))
|
|
5152
5155
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -5157,12 +5160,12 @@ return (_ctx, _cache) => {
|
|
|
5157
5160
|
|
|
5158
5161
|
};
|
|
5159
5162
|
|
|
5160
|
-
script$
|
|
5163
|
+
script$8.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5161
5164
|
|
|
5162
|
-
const _hoisted_1$
|
|
5165
|
+
const _hoisted_1$7 = ["href"];
|
|
5163
5166
|
|
|
5164
5167
|
|
|
5165
|
-
var script$
|
|
5168
|
+
var script$7 = {
|
|
5166
5169
|
__name: 'ShModalBtn',
|
|
5167
5170
|
props: {
|
|
5168
5171
|
modalId: {
|
|
@@ -5179,18 +5182,18 @@ return (_ctx, _cache) => {
|
|
|
5179
5182
|
"data-bs-toggle": "modal"
|
|
5180
5183
|
}, [
|
|
5181
5184
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5182
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5185
|
+
], 8 /* PROPS */, _hoisted_1$7))
|
|
5183
5186
|
}
|
|
5184
5187
|
}
|
|
5185
5188
|
|
|
5186
5189
|
};
|
|
5187
5190
|
|
|
5188
|
-
script$
|
|
5191
|
+
script$7.__file = "src/lib/components/ShModalBtn.vue";
|
|
5189
5192
|
|
|
5190
|
-
const _hoisted_1$
|
|
5193
|
+
const _hoisted_1$6 = ["href"];
|
|
5191
5194
|
|
|
5192
5195
|
|
|
5193
|
-
var script$
|
|
5196
|
+
var script$6 = {
|
|
5194
5197
|
__name: 'ShCanvasBtn',
|
|
5195
5198
|
props: {
|
|
5196
5199
|
canvasId: {
|
|
@@ -5208,13 +5211,13 @@ return (_ctx, _cache) => {
|
|
|
5208
5211
|
"data-bs-toggle": "offcanvas"
|
|
5209
5212
|
}, [
|
|
5210
5213
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5211
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5214
|
+
], 8 /* PROPS */, _hoisted_1$6))
|
|
5212
5215
|
}
|
|
5213
5216
|
}
|
|
5214
5217
|
|
|
5215
5218
|
};
|
|
5216
5219
|
|
|
5217
|
-
script$
|
|
5220
|
+
script$6.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5218
5221
|
|
|
5219
5222
|
const useUserStore = pinia.defineStore('user-store', {
|
|
5220
5223
|
state: () => ({
|
|
@@ -5313,24 +5316,24 @@ const useUserStore = pinia.defineStore('user-store', {
|
|
|
5313
5316
|
});
|
|
5314
5317
|
|
|
5315
5318
|
const _withScopeId$1 = n => (vue.pushScopeId("data-v-0d4fa0ac"),n=n(),vue.popScopeId(),n);
|
|
5316
|
-
const _hoisted_1$
|
|
5317
|
-
const _hoisted_2$
|
|
5319
|
+
const _hoisted_1$5 = { class: "row permissions-main d-flex" };
|
|
5320
|
+
const _hoisted_2$4 = {
|
|
5318
5321
|
id: "permissions-nav",
|
|
5319
5322
|
class: "col-md-3 d-flex align-items-center py-4"
|
|
5320
5323
|
};
|
|
5321
|
-
const _hoisted_3$
|
|
5324
|
+
const _hoisted_3$4 = {
|
|
5322
5325
|
key: 0,
|
|
5323
5326
|
class: "mx-auto"
|
|
5324
5327
|
};
|
|
5325
|
-
const _hoisted_4$
|
|
5326
|
-
const _hoisted_5$
|
|
5327
|
-
_hoisted_4$
|
|
5328
|
+
const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
|
|
5329
|
+
const _hoisted_5$4 = [
|
|
5330
|
+
_hoisted_4$4
|
|
5328
5331
|
];
|
|
5329
|
-
const _hoisted_6$
|
|
5332
|
+
const _hoisted_6$3 = {
|
|
5330
5333
|
key: 1,
|
|
5331
5334
|
class: "d-flex flex-column w-100 px-2"
|
|
5332
5335
|
};
|
|
5333
|
-
const _hoisted_7$
|
|
5336
|
+
const _hoisted_7$2 = ["checked", "disabled"];
|
|
5334
5337
|
const _hoisted_8$1 = ["onClick"];
|
|
5335
5338
|
const _hoisted_9$1 = {
|
|
5336
5339
|
id: "permissions-content",
|
|
@@ -5353,7 +5356,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5353
5356
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5354
5357
|
|
|
5355
5358
|
|
|
5356
|
-
var script$
|
|
5359
|
+
var script$5 = {
|
|
5357
5360
|
__name: 'ManagePermissions',
|
|
5358
5361
|
emits: ['success'],
|
|
5359
5362
|
setup(__props, { emit }) {
|
|
@@ -5456,11 +5459,11 @@ const getPermissionStyle = permission => {
|
|
|
5456
5459
|
};
|
|
5457
5460
|
|
|
5458
5461
|
return (_ctx, _cache) => {
|
|
5459
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5460
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
5462
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
5463
|
+
vue.createElementVNode("div", _hoisted_2$4, [
|
|
5461
5464
|
(loadingModules.value)
|
|
5462
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5463
|
-
: (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$
|
|
5465
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, _hoisted_5$4))
|
|
5466
|
+
: (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$3, [
|
|
5464
5467
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
|
|
5465
5468
|
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
5466
5469
|
class: vue.normalizeClass(selectedModule.value === module && 'active'),
|
|
@@ -5471,7 +5474,7 @@ return (_ctx, _cache) => {
|
|
|
5471
5474
|
onClick: checkAllPermissions,
|
|
5472
5475
|
disabled: selectedModule.value !== module,
|
|
5473
5476
|
type: "checkbox"
|
|
5474
|
-
}, null, 8 /* PROPS */, _hoisted_7$
|
|
5477
|
+
}, null, 8 /* PROPS */, _hoisted_7$2),
|
|
5475
5478
|
vue.createElementVNode("label", {
|
|
5476
5479
|
class: "text-capitalize",
|
|
5477
5480
|
onClick: $event => (setModule(module))
|
|
@@ -5510,7 +5513,7 @@ return (_ctx, _cache) => {
|
|
|
5510
5513
|
(permissionsChanged.value)
|
|
5511
5514
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
5512
5515
|
vue.createElementVNode("div", _hoisted_17, [
|
|
5513
|
-
vue.createVNode(script$
|
|
5516
|
+
vue.createVNode(script$b, {
|
|
5514
5517
|
onSuccess: permissionsUpdated,
|
|
5515
5518
|
url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
|
|
5516
5519
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5534,13 +5537,13 @@ return (_ctx, _cache) => {
|
|
|
5534
5537
|
|
|
5535
5538
|
};
|
|
5536
5539
|
|
|
5537
|
-
script$
|
|
5538
|
-
script$
|
|
5540
|
+
script$5.__scopeId = "data-v-0d4fa0ac";
|
|
5541
|
+
script$5.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5539
5542
|
|
|
5540
|
-
const _hoisted_1$
|
|
5543
|
+
const _hoisted_1$4 = ["href"];
|
|
5541
5544
|
|
|
5542
5545
|
|
|
5543
|
-
var script$
|
|
5546
|
+
var script$4 = {
|
|
5544
5547
|
__name: 'ShPopups',
|
|
5545
5548
|
setup(__props) {
|
|
5546
5549
|
|
|
@@ -5621,9 +5624,9 @@ return (_ctx, _cache) => {
|
|
|
5621
5624
|
href: '#' + vue.unref(canvasId),
|
|
5622
5625
|
shallowRef: "canvasButton",
|
|
5623
5626
|
class: "d-none"
|
|
5624
|
-
}, "Open Modal", 8 /* PROPS */, _hoisted_1$
|
|
5627
|
+
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5625
5628
|
(popUp.value === 'modal')
|
|
5626
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5629
|
+
? (vue.openBlock(), vue.createBlock(script$h, {
|
|
5627
5630
|
key: 0,
|
|
5628
5631
|
"modal-id": vue.unref(modalId),
|
|
5629
5632
|
"modal-size": size.value
|
|
@@ -5635,7 +5638,7 @@ return (_ctx, _cache) => {
|
|
|
5635
5638
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5636
5639
|
: vue.createCommentVNode("v-if", true),
|
|
5637
5640
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5638
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5641
|
+
? (vue.openBlock(), vue.createBlock(script$e, {
|
|
5639
5642
|
key: 1,
|
|
5640
5643
|
"canvas-id": vue.unref(canvasId),
|
|
5641
5644
|
"canvas-size": size.value,
|
|
@@ -5653,7 +5656,153 @@ return (_ctx, _cache) => {
|
|
|
5653
5656
|
|
|
5654
5657
|
};
|
|
5655
5658
|
|
|
5656
|
-
script$
|
|
5659
|
+
script$4.__file = "src/lib/components/ShPopups.vue";
|
|
5660
|
+
|
|
5661
|
+
const _hoisted_1$3 = { class: "sh-range" };
|
|
5662
|
+
const _hoisted_2$3 = { class: "dropdown" };
|
|
5663
|
+
const _hoisted_3$3 = {
|
|
5664
|
+
class: "form-control dropdown-toggle",
|
|
5665
|
+
href: "#",
|
|
5666
|
+
role: "button",
|
|
5667
|
+
id: "dropdownMenuLink",
|
|
5668
|
+
"data-bs-toggle": "dropdown",
|
|
5669
|
+
"aria-expanded": "false"
|
|
5670
|
+
};
|
|
5671
|
+
const _hoisted_4$3 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */);
|
|
5672
|
+
const _hoisted_5$3 = ["innerHTML"];
|
|
5673
|
+
const _hoisted_6$2 = {
|
|
5674
|
+
class: "dropdown-menu",
|
|
5675
|
+
"aria-labelledby": "dropdownMenuLink"
|
|
5676
|
+
};
|
|
5677
|
+
const _hoisted_7$1 = ["onClick"];
|
|
5678
|
+
|
|
5679
|
+
|
|
5680
|
+
|
|
5681
|
+
var script$3 = {
|
|
5682
|
+
__name: 'ShRange',
|
|
5683
|
+
props: {
|
|
5684
|
+
start: {
|
|
5685
|
+
type: Number,
|
|
5686
|
+
default: 2021
|
|
5687
|
+
},
|
|
5688
|
+
selected: {
|
|
5689
|
+
type: String,
|
|
5690
|
+
default: shRepo.getShConfig('defaultRange', 'This Month')
|
|
5691
|
+
}
|
|
5692
|
+
},
|
|
5693
|
+
emits: ['rangeSelected'],
|
|
5694
|
+
setup(__props, { emit }) {
|
|
5695
|
+
|
|
5696
|
+
const props = __props;
|
|
5697
|
+
|
|
5698
|
+
|
|
5699
|
+
|
|
5700
|
+
|
|
5701
|
+
|
|
5702
|
+
const selectedDate = vue.ref(null);
|
|
5703
|
+
const rangeLabel = vue.ref(null);
|
|
5704
|
+
vue.ref(false);
|
|
5705
|
+
|
|
5706
|
+
const dates = vue.ref([
|
|
5707
|
+
{
|
|
5708
|
+
label: 'Today',
|
|
5709
|
+
value: [moment__default["default"](), moment__default["default"]()]
|
|
5710
|
+
},
|
|
5711
|
+
{
|
|
5712
|
+
label: '7 Days',
|
|
5713
|
+
value: [moment__default["default"]().subtract(7, 'days'), moment__default["default"]()]
|
|
5714
|
+
},
|
|
5715
|
+
{
|
|
5716
|
+
label: 'This week',
|
|
5717
|
+
value: [moment__default["default"]().subtract(1, 'week').startOf('week'), moment__default["default"]().subtract(1, 'week').endOf('week')]
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
label: 'This Month',
|
|
5721
|
+
value: [moment__default["default"]().startOf('month'), moment__default["default"]()]
|
|
5722
|
+
},
|
|
5723
|
+
{
|
|
5724
|
+
label: 'Last Month',
|
|
5725
|
+
value: [moment__default["default"]().subtract(1, 'month').startOf('month'), moment__default["default"]().subtract(1, 'month').endOf('month')]
|
|
5726
|
+
},
|
|
5727
|
+
{
|
|
5728
|
+
label: '1 Month',
|
|
5729
|
+
value: [moment__default["default"]().subtract(29, 'days'), moment__default["default"]()]
|
|
5730
|
+
},
|
|
5731
|
+
{
|
|
5732
|
+
label: '1 Year',
|
|
5733
|
+
value: [moment__default["default"]().subtract(12, 'months'), moment__default["default"]()]
|
|
5734
|
+
},
|
|
5735
|
+
{
|
|
5736
|
+
label: 'All Time',
|
|
5737
|
+
value: [moment__default["default"]('@/2021').startOf('year'), moment__default["default"]()]
|
|
5738
|
+
}
|
|
5739
|
+
]);
|
|
5740
|
+
const setDate = (date, label) => {
|
|
5741
|
+
selectedDate.value = date;
|
|
5742
|
+
rangeLabel.value = '<strong>' + label + '</strong><small>(' + date[0].format('MMMM D, YYYY') + ' - ' + date[1].format('MMMM D, YYYY') + ')</small>';
|
|
5743
|
+
const from = date[0].format('L');
|
|
5744
|
+
const to = date[1].format('L');
|
|
5745
|
+
const period = label.toString().toLowerCase().replaceAll(' ','_');
|
|
5746
|
+
emit('rangeSelected', {
|
|
5747
|
+
from: from,
|
|
5748
|
+
to: to,
|
|
5749
|
+
period: period,
|
|
5750
|
+
query: `from=${from}&to=${to}&period=${period}`
|
|
5751
|
+
});
|
|
5752
|
+
};
|
|
5753
|
+
vue.onMounted(() => {
|
|
5754
|
+
let end = parseInt(moment__default["default"]().format('Y'));
|
|
5755
|
+
while (end >= props.start) {
|
|
5756
|
+
dates.value.push({
|
|
5757
|
+
label: end,
|
|
5758
|
+
value: [moment__default["default"]('@/' + end).startOf('year'), moment__default["default"]('@/' + end).endOf('year')]
|
|
5759
|
+
});
|
|
5760
|
+
end--;
|
|
5761
|
+
}
|
|
5762
|
+
|
|
5763
|
+
dates.value.map(date=>{
|
|
5764
|
+
(`${date.label}`.toLowerCase() === props.selected.toLowerCase()) && setDate(date.value, date.label);
|
|
5765
|
+
});
|
|
5766
|
+
});
|
|
5767
|
+
|
|
5768
|
+
return (_ctx, _cache) => {
|
|
5769
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
5770
|
+
vue.createElementVNode("div", _hoisted_2$3, [
|
|
5771
|
+
vue.createElementVNode("div", _hoisted_3$3, [
|
|
5772
|
+
_hoisted_4$3,
|
|
5773
|
+
vue.createTextVNode(),
|
|
5774
|
+
vue.createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$3)
|
|
5775
|
+
]),
|
|
5776
|
+
vue.createElementVNode("ul", _hoisted_6$2, [
|
|
5777
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dates.value, (date) => {
|
|
5778
|
+
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
5779
|
+
key: date.label,
|
|
5780
|
+
onClick: $event => (setDate(date.value, date.label))
|
|
5781
|
+
}, [
|
|
5782
|
+
vue.createElementVNode("a", {
|
|
5783
|
+
class: vue.normalizeClass(["dropdown-item", date.value === selectedDate.value ? 'active' : '']),
|
|
5784
|
+
href: "#"
|
|
5785
|
+
}, vue.toDisplayString(date.label), 3 /* TEXT, CLASS */)
|
|
5786
|
+
], 8 /* PROPS */, _hoisted_7$1))
|
|
5787
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
5788
|
+
vue.createCommentVNode(" <li>"),
|
|
5789
|
+
vue.createCommentVNode(" <div class=\"dropdown-item\">"),
|
|
5790
|
+
vue.createCommentVNode(" <div @clik=\"showCustom = true\">Custom</div>"),
|
|
5791
|
+
vue.createCommentVNode(" <div v-if=\"showCustom\">"),
|
|
5792
|
+
vue.createCommentVNode(" <input type=\"date\">"),
|
|
5793
|
+
vue.createCommentVNode(" <input type=\"date\">"),
|
|
5794
|
+
vue.createCommentVNode(" </div>"),
|
|
5795
|
+
vue.createCommentVNode(" </div>"),
|
|
5796
|
+
vue.createCommentVNode(" </li>")
|
|
5797
|
+
])
|
|
5798
|
+
])
|
|
5799
|
+
]))
|
|
5800
|
+
}
|
|
5801
|
+
}
|
|
5802
|
+
|
|
5803
|
+
};
|
|
5804
|
+
|
|
5805
|
+
script$3.__file = "src/lib/components/ShRange.vue";
|
|
5657
5806
|
|
|
5658
5807
|
const _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
5659
5808
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
@@ -5697,7 +5846,7 @@ return (_ctx, _cache) => {
|
|
|
5697
5846
|
_hoisted_5$2,
|
|
5698
5847
|
vue.createTextVNode(" ADD DEPARTMENT")
|
|
5699
5848
|
], 512 /* NEED_PATCH */),
|
|
5700
|
-
vue.createVNode(script$
|
|
5849
|
+
vue.createVNode(script$a, {
|
|
5701
5850
|
headers: ['id','name','description', 'created_at'],
|
|
5702
5851
|
"end-point": "sh-departments/list",
|
|
5703
5852
|
actions: {
|
|
@@ -5711,12 +5860,12 @@ return (_ctx, _cache) => {
|
|
|
5711
5860
|
]
|
|
5712
5861
|
}
|
|
5713
5862
|
}),
|
|
5714
|
-
vue.createVNode(script$
|
|
5863
|
+
vue.createVNode(script$h, {
|
|
5715
5864
|
"modal-id": "sh-department_modal",
|
|
5716
5865
|
"modal-title": "Department Form"
|
|
5717
5866
|
}, {
|
|
5718
5867
|
default: vue.withCtx(() => [
|
|
5719
|
-
vue.createVNode(script$
|
|
5868
|
+
vue.createVNode(script$q, {
|
|
5720
5869
|
"success-callback": "departmentAdded",
|
|
5721
5870
|
onDepartmentAdded: departmentAdded,
|
|
5722
5871
|
action: "admin/departments/store",
|
|
@@ -5850,7 +5999,7 @@ return (_ctx, _cache) => {
|
|
|
5850
5999
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
5851
6000
|
_hoisted_3$1,
|
|
5852
6001
|
vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
5853
|
-
vue.createVNode(script$
|
|
6002
|
+
vue.createVNode(script$a, {
|
|
5854
6003
|
actions: {
|
|
5855
6004
|
label: 'Actions',
|
|
5856
6005
|
actions: [
|
|
@@ -5870,12 +6019,12 @@ return (_ctx, _cache) => {
|
|
|
5870
6019
|
headers: ['id',showModule,'created_at'],
|
|
5871
6020
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
5872
6021
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
5873
|
-
vue.createVNode(script$
|
|
6022
|
+
vue.createVNode(script$h, {
|
|
5874
6023
|
"modal-id": "addModule",
|
|
5875
6024
|
"modal-title": "Add Module Department"
|
|
5876
6025
|
}, {
|
|
5877
6026
|
default: vue.withCtx(() => [
|
|
5878
|
-
vue.createVNode(script$
|
|
6027
|
+
vue.createVNode(script$q, {
|
|
5879
6028
|
"reload-select-items": vue.unref(reload),
|
|
5880
6029
|
"success-callback": moduleAdded,
|
|
5881
6030
|
"fill-selects": {
|
|
@@ -5897,7 +6046,7 @@ return (_ctx, _cache) => {
|
|
|
5897
6046
|
ref: permissionCanvasBtn,
|
|
5898
6047
|
"data-bs-toggle": "offcanvas"
|
|
5899
6048
|
}, null, 512 /* NEED_PATCH */),
|
|
5900
|
-
vue.createVNode(script$
|
|
6049
|
+
vue.createVNode(script$e, {
|
|
5901
6050
|
"canvas-id": "permissionsCanvas",
|
|
5902
6051
|
position: "end enlarged",
|
|
5903
6052
|
"canvas-title": "Module Permissions"
|
|
@@ -6012,7 +6161,7 @@ return (_ctx, _cache) => {
|
|
|
6012
6161
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
6013
6162
|
(section.value === 'login')
|
|
6014
6163
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
6015
|
-
vue.createVNode(script$
|
|
6164
|
+
vue.createVNode(script$q, {
|
|
6016
6165
|
class: "sh-login-form",
|
|
6017
6166
|
fields: ['email','password'],
|
|
6018
6167
|
"action-label": "Login",
|
|
@@ -6037,7 +6186,7 @@ return (_ctx, _cache) => {
|
|
|
6037
6186
|
(vue.unref(registerSubTitle))
|
|
6038
6187
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
6039
6188
|
: vue.createCommentVNode("v-if", true),
|
|
6040
|
-
vue.createVNode(script$
|
|
6189
|
+
vue.createVNode(script$q, {
|
|
6041
6190
|
class: "sh-login-form",
|
|
6042
6191
|
fields: vue.unref(registrationFields),
|
|
6043
6192
|
"action-label": "Sign Up",
|
|
@@ -6084,7 +6233,7 @@ const ShFrontend = {
|
|
|
6084
6233
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6085
6234
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6086
6235
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6087
|
-
options.formTextInput ?? script$
|
|
6236
|
+
options.formTextInput ?? script$n;
|
|
6088
6237
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6089
6238
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6090
6239
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6117,7 +6266,7 @@ const ShFrontend = {
|
|
|
6117
6266
|
});
|
|
6118
6267
|
options.router.addRoute({
|
|
6119
6268
|
path: '/sh-departments/manage-permissions/:id',
|
|
6120
|
-
component: script$
|
|
6269
|
+
component: script$5
|
|
6121
6270
|
});
|
|
6122
6271
|
}
|
|
6123
6272
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6130,24 +6279,25 @@ const ShFrontend = {
|
|
|
6130
6279
|
};
|
|
6131
6280
|
|
|
6132
6281
|
exports.Countries = countries;
|
|
6133
|
-
exports.ManagePermissions = script$
|
|
6134
|
-
exports.ShAutoForm = script$
|
|
6135
|
-
exports.ShCanvas = script$
|
|
6136
|
-
exports.ShCanvasBtn = script$
|
|
6137
|
-
exports.ShConfirmAction = script$
|
|
6138
|
-
exports.ShDropDownForm = script$
|
|
6139
|
-
exports.ShDynamicTabs = script$
|
|
6140
|
-
exports.ShForm = script$
|
|
6282
|
+
exports.ManagePermissions = script$5;
|
|
6283
|
+
exports.ShAutoForm = script$j;
|
|
6284
|
+
exports.ShCanvas = script$e;
|
|
6285
|
+
exports.ShCanvasBtn = script$6;
|
|
6286
|
+
exports.ShConfirmAction = script$c;
|
|
6287
|
+
exports.ShDropDownForm = script$i;
|
|
6288
|
+
exports.ShDynamicTabs = script$8;
|
|
6289
|
+
exports.ShForm = script$q;
|
|
6141
6290
|
exports.ShFrontend = ShFrontend;
|
|
6142
|
-
exports.ShModal = script$
|
|
6143
|
-
exports.ShModalBtn = script$
|
|
6144
|
-
exports.ShModalForm = script$
|
|
6145
|
-
exports.ShModalFormAuto = script$
|
|
6146
|
-
exports.ShPhone = script$
|
|
6147
|
-
exports.ShPopups = script$
|
|
6148
|
-
exports.
|
|
6149
|
-
exports.
|
|
6150
|
-
exports.
|
|
6291
|
+
exports.ShModal = script$h;
|
|
6292
|
+
exports.ShModalBtn = script$7;
|
|
6293
|
+
exports.ShModalForm = script$g;
|
|
6294
|
+
exports.ShModalFormAuto = script$f;
|
|
6295
|
+
exports.ShPhone = script$t;
|
|
6296
|
+
exports.ShPopups = script$4;
|
|
6297
|
+
exports.ShRange = script$3;
|
|
6298
|
+
exports.ShSilentAction = script$b;
|
|
6299
|
+
exports.ShTable = script$a;
|
|
6300
|
+
exports.ShTabs = script$9;
|
|
6151
6301
|
exports.shApis = shApis;
|
|
6152
6302
|
exports.shRepo = shRepo;
|
|
6153
6303
|
exports.shStorage = ShStorage;
|