@iankibetsh/shframework 1.7.0 → 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 +411 -260
- package/dist/library.mjs +394 -244
- package/package.json +1 -1
package/dist/library.mjs
CHANGED
|
@@ -1862,7 +1862,7 @@ const countries = [
|
|
|
1862
1862
|
}
|
|
1863
1863
|
];
|
|
1864
1864
|
|
|
1865
|
-
var script$
|
|
1865
|
+
var script$t = {
|
|
1866
1866
|
name: 'PhoneInput',
|
|
1867
1867
|
props: ['modelValue', 'country_code'],
|
|
1868
1868
|
data () {
|
|
@@ -1924,19 +1924,19 @@ var script$s = {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
};
|
|
1926
1926
|
|
|
1927
|
-
const _hoisted_1$
|
|
1928
|
-
const _hoisted_2$
|
|
1927
|
+
const _hoisted_1$o = { class: "sh-phone mb-3" };
|
|
1928
|
+
const _hoisted_2$e = {
|
|
1929
1929
|
key: 0,
|
|
1930
1930
|
style: {"display":"contents"}
|
|
1931
1931
|
};
|
|
1932
|
-
const _hoisted_3$
|
|
1933
|
-
const _hoisted_4$
|
|
1932
|
+
const _hoisted_3$d = ["src"];
|
|
1933
|
+
const _hoisted_4$d = ["value"];
|
|
1934
1934
|
|
|
1935
1935
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1936
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1936
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
1937
1937
|
($data.selectedCountry)
|
|
1938
|
-
? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1939
|
-
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$
|
|
1938
|
+
? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
1939
|
+
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
|
|
1940
1940
|
createTextVNode(" " + toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
|
|
1941
1941
|
]))
|
|
1942
1942
|
: createCommentVNode("v-if", true),
|
|
@@ -1949,7 +1949,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1949
1949
|
return (openBlock(), createElementBlock("option", {
|
|
1950
1950
|
value: country,
|
|
1951
1951
|
key: country.dialCode
|
|
1952
|
-
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1952
|
+
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
1953
1953
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1954
1954
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1955
1955
|
[vModelSelect, $data.selectedCountry]
|
|
@@ -1967,10 +1967,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1967
1967
|
]))
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
|
-
script$
|
|
1971
|
-
script$
|
|
1970
|
+
script$t.render = render$4;
|
|
1971
|
+
script$t.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
1972
1972
|
|
|
1973
|
-
var script$
|
|
1973
|
+
var script$s = {
|
|
1974
1974
|
name: 'ShEditor',
|
|
1975
1975
|
props: ['modelValue'],
|
|
1976
1976
|
components: {
|
|
@@ -2009,7 +2009,7 @@ var script$r = {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
};
|
|
2011
2011
|
|
|
2012
|
-
const _hoisted_1$
|
|
2012
|
+
const _hoisted_1$n = /*#__PURE__*/createElementVNode("textarea", {
|
|
2013
2013
|
id: "tiny",
|
|
2014
2014
|
style: {"display":"none"},
|
|
2015
2015
|
"data-cy": "tinymce_editor"
|
|
@@ -2019,7 +2019,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2019
2019
|
const _component_editor = resolveComponent("editor");
|
|
2020
2020
|
|
|
2021
2021
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2022
|
-
_hoisted_1$
|
|
2022
|
+
_hoisted_1$n,
|
|
2023
2023
|
createElementVNode("div", {
|
|
2024
2024
|
onFocusin: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
2025
2025
|
class: "sh-editor w-100"
|
|
@@ -2044,19 +2044,19 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2044
2044
|
], 64 /* STABLE_FRAGMENT */))
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
|
-
script$
|
|
2048
|
-
script$
|
|
2047
|
+
script$s.render = render$3;
|
|
2048
|
+
script$s.__file = "src/lib/components/form-components/ShEditor.vue";
|
|
2049
2049
|
|
|
2050
|
-
const _hoisted_1$
|
|
2050
|
+
const _hoisted_1$m = {
|
|
2051
2051
|
key: 0,
|
|
2052
2052
|
class: "dropdown sh-suggest"
|
|
2053
2053
|
};
|
|
2054
|
-
const _hoisted_2$
|
|
2055
|
-
const _hoisted_3$
|
|
2056
|
-
const _hoisted_4$
|
|
2057
|
-
const _hoisted_5$
|
|
2058
|
-
const _hoisted_6$
|
|
2059
|
-
const _hoisted_7$
|
|
2054
|
+
const _hoisted_2$d = ["id"];
|
|
2055
|
+
const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
2056
|
+
const _hoisted_4$c = ["onClick"];
|
|
2057
|
+
const _hoisted_5$a = ["id"];
|
|
2058
|
+
const _hoisted_6$9 = ["id", "aria-labelledby"];
|
|
2059
|
+
const _hoisted_7$7 = { key: 0 };
|
|
2060
2060
|
const _hoisted_8$4 = ["onClick"];
|
|
2061
2061
|
const _hoisted_9$5 = {
|
|
2062
2062
|
key: 1,
|
|
@@ -2068,7 +2068,7 @@ const _hoisted_10$4 = {
|
|
|
2068
2068
|
};
|
|
2069
2069
|
|
|
2070
2070
|
|
|
2071
|
-
var script$
|
|
2071
|
+
var script$r = {
|
|
2072
2072
|
__name: 'ShSuggest',
|
|
2073
2073
|
props: ['fillSelects','modelValue'],
|
|
2074
2074
|
emits: ['update:modelValue'],
|
|
@@ -2149,7 +2149,7 @@ function filterData(e){
|
|
|
2149
2149
|
|
|
2150
2150
|
return (_ctx, _cache) => {
|
|
2151
2151
|
return (unref(id))
|
|
2152
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2152
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
2153
2153
|
createElementVNode("div", {
|
|
2154
2154
|
id: unref(id),
|
|
2155
2155
|
"data-bs-toggle": "dropdown",
|
|
@@ -2158,14 +2158,14 @@ return (_ctx, _cache) => {
|
|
|
2158
2158
|
}, [
|
|
2159
2159
|
createElementVNode("div", null, [
|
|
2160
2160
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectedSuggestions), (sgt) => {
|
|
2161
|
-
return (openBlock(), createElementBlock("h5", _hoisted_3$
|
|
2161
|
+
return (openBlock(), createElementBlock("h5", _hoisted_3$c, [
|
|
2162
2162
|
createTextVNode(toDisplayString(sgt.name) + " ", 1 /* TEXT */),
|
|
2163
2163
|
createElementVNode("button", {
|
|
2164
2164
|
onClick: $event => (removeSuggestion(sgt.id)),
|
|
2165
2165
|
type: "button",
|
|
2166
2166
|
class: "btn-close border-start border-1 ms-1",
|
|
2167
2167
|
"aria-label": "Close"
|
|
2168
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
2168
|
+
}, null, 8 /* PROPS */, _hoisted_4$c)
|
|
2169
2169
|
]))
|
|
2170
2170
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2171
2171
|
]),
|
|
@@ -2175,8 +2175,8 @@ return (_ctx, _cache) => {
|
|
|
2175
2175
|
onClick: filterData,
|
|
2176
2176
|
onInput: filterData,
|
|
2177
2177
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2178
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$
|
|
2179
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
2178
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$a)
|
|
2179
|
+
], 8 /* PROPS */, _hoisted_2$d),
|
|
2180
2180
|
createElementVNode("ul", {
|
|
2181
2181
|
class: "dropdown-menu w-100",
|
|
2182
2182
|
id: 'dropwdown_section' + unref(id),
|
|
@@ -2188,7 +2188,7 @@ return (_ctx, _cache) => {
|
|
|
2188
2188
|
key: suggestion.id
|
|
2189
2189
|
}, [
|
|
2190
2190
|
(suggestion.name)
|
|
2191
|
-
? (openBlock(), createElementBlock("li", _hoisted_7$
|
|
2191
|
+
? (openBlock(), createElementBlock("li", _hoisted_7$7, [
|
|
2192
2192
|
createElementVNode("a", {
|
|
2193
2193
|
onClick: $event => (addSuggestion(suggestion)),
|
|
2194
2194
|
class: normalizeClass(["dropdown-item", unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
|
|
@@ -2201,7 +2201,7 @@ return (_ctx, _cache) => {
|
|
|
2201
2201
|
: (unref(searchText))
|
|
2202
2202
|
? (openBlock(), createElementBlock("li", _hoisted_9$5, " No results found "))
|
|
2203
2203
|
: (openBlock(), createElementBlock("li", _hoisted_10$4, " Type to search... "))
|
|
2204
|
-
], 8 /* PROPS */, _hoisted_6$
|
|
2204
|
+
], 8 /* PROPS */, _hoisted_6$9)
|
|
2205
2205
|
]))
|
|
2206
2206
|
: createCommentVNode("v-if", true)
|
|
2207
2207
|
}
|
|
@@ -2209,16 +2209,16 @@ return (_ctx, _cache) => {
|
|
|
2209
2209
|
|
|
2210
2210
|
};
|
|
2211
2211
|
|
|
2212
|
-
script$
|
|
2213
|
-
script$
|
|
2212
|
+
script$r.__scopeId = "data-v-71cc9569";
|
|
2213
|
+
script$r.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2214
2214
|
|
|
2215
|
-
var script$
|
|
2215
|
+
var script$q = {
|
|
2216
2216
|
name: 'ShForm',
|
|
2217
2217
|
components: {
|
|
2218
|
-
PhoneInput: script$
|
|
2219
|
-
ShSuggest: script$
|
|
2220
|
-
ShEditor: script$
|
|
2221
|
-
ShPhone: script$
|
|
2218
|
+
PhoneInput: script$t,
|
|
2219
|
+
ShSuggest: script$r,
|
|
2220
|
+
ShEditor: script$s,
|
|
2221
|
+
ShPhone: script$t
|
|
2222
2222
|
},
|
|
2223
2223
|
props: [
|
|
2224
2224
|
'action',
|
|
@@ -2540,20 +2540,20 @@ var script$p = {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
2542
|
|
|
2543
|
-
const _hoisted_1$
|
|
2544
|
-
const _hoisted_2$
|
|
2543
|
+
const _hoisted_1$l = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2544
|
+
const _hoisted_2$c = {
|
|
2545
2545
|
ref: "ShAutoForm",
|
|
2546
2546
|
class: "sh-form"
|
|
2547
2547
|
};
|
|
2548
|
-
const _hoisted_3$
|
|
2548
|
+
const _hoisted_3$b = {
|
|
2549
2549
|
key: 0,
|
|
2550
2550
|
class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
|
|
2551
2551
|
role: "alert"
|
|
2552
2552
|
};
|
|
2553
|
-
const _hoisted_4$
|
|
2554
|
-
const _hoisted_5$
|
|
2555
|
-
const _hoisted_6$
|
|
2556
|
-
const _hoisted_7$
|
|
2553
|
+
const _hoisted_4$b = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2554
|
+
const _hoisted_5$9 = { key: 0 };
|
|
2555
|
+
const _hoisted_6$8 = { key: 1 };
|
|
2556
|
+
const _hoisted_7$6 = { class: "row" };
|
|
2557
2557
|
const _hoisted_8$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2558
2558
|
const _hoisted_9$4 = { class: "col-md-12" };
|
|
2559
2559
|
const _hoisted_10$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
@@ -2602,16 +2602,16 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2602
2602
|
const _component_ShEditor = resolveComponent("ShEditor");
|
|
2603
2603
|
|
|
2604
2604
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2605
|
-
_hoisted_1$
|
|
2606
|
-
createElementVNode("form", _hoisted_2$
|
|
2605
|
+
_hoisted_1$l,
|
|
2606
|
+
createElementVNode("form", _hoisted_2$c, [
|
|
2607
2607
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2608
2608
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2609
2609
|
(_ctx.form_status == 3)
|
|
2610
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2611
|
-
_hoisted_4$
|
|
2610
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
2611
|
+
_hoisted_4$b,
|
|
2612
2612
|
(_ctx.errorText)
|
|
2613
|
-
? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2614
|
-
: (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2613
|
+
? (openBlock(), createElementBlock("span", _hoisted_5$9, toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2614
|
+
: (openBlock(), createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
|
|
2615
2615
|
createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2616
2616
|
]))
|
|
2617
2617
|
: createCommentVNode("v-if", true),
|
|
@@ -2621,7 +2621,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2621
2621
|
}, null, 512 /* NEED_PATCH */), [
|
|
2622
2622
|
[vModelText, _ctx.form_elements['id']]
|
|
2623
2623
|
]),
|
|
2624
|
-
createElementVNode("div", _hoisted_7$
|
|
2624
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
2625
2625
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.fields, (field) => {
|
|
2626
2626
|
return (openBlock(), createElementBlock("div", {
|
|
2627
2627
|
class: normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
|
|
@@ -2819,10 +2819,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2819
2819
|
], 64 /* STABLE_FRAGMENT */))
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
|
-
script$
|
|
2823
|
-
script$
|
|
2822
|
+
script$q.render = render$2;
|
|
2823
|
+
script$q.__file = "src/lib/components/ShForm.vue";
|
|
2824
2824
|
|
|
2825
|
-
var script$
|
|
2825
|
+
var script$p = {
|
|
2826
2826
|
__name: 'EmailInput',
|
|
2827
2827
|
props: ['modelValue','label'],
|
|
2828
2828
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2858,12 +2858,12 @@ return (_ctx, _cache) => {
|
|
|
2858
2858
|
|
|
2859
2859
|
};
|
|
2860
2860
|
|
|
2861
|
-
script$
|
|
2861
|
+
script$p.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2862
2862
|
|
|
2863
|
-
const _hoisted_1$
|
|
2863
|
+
const _hoisted_1$k = ["min", "max"];
|
|
2864
2864
|
|
|
2865
2865
|
|
|
2866
|
-
var script$
|
|
2866
|
+
var script$o = {
|
|
2867
2867
|
__name: 'NumberInput',
|
|
2868
2868
|
props: ['modelValue','label','min','max'],
|
|
2869
2869
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2893,7 +2893,7 @@ return (_ctx, _cache) => {
|
|
|
2893
2893
|
onChange: modelValueUpdated,
|
|
2894
2894
|
onKeydown: modelValueUpdated,
|
|
2895
2895
|
onUpdated: modelValueUpdated
|
|
2896
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$
|
|
2896
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$k)), [
|
|
2897
2897
|
[vModelText, inputModel.value]
|
|
2898
2898
|
])
|
|
2899
2899
|
}
|
|
@@ -2901,9 +2901,9 @@ return (_ctx, _cache) => {
|
|
|
2901
2901
|
|
|
2902
2902
|
};
|
|
2903
2903
|
|
|
2904
|
-
script$
|
|
2904
|
+
script$o.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2905
2905
|
|
|
2906
|
-
var script$
|
|
2906
|
+
var script$n = {
|
|
2907
2907
|
__name: 'TextInput',
|
|
2908
2908
|
props: ['modelValue','label','isInvalid'],
|
|
2909
2909
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2939,9 +2939,9 @@ return (_ctx, _cache) => {
|
|
|
2939
2939
|
|
|
2940
2940
|
};
|
|
2941
2941
|
|
|
2942
|
-
script$
|
|
2942
|
+
script$n.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2943
2943
|
|
|
2944
|
-
var script$
|
|
2944
|
+
var script$m = {
|
|
2945
2945
|
__name: 'TextAreaInput',
|
|
2946
2946
|
props: ['modelValue','label'],
|
|
2947
2947
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2977,12 +2977,12 @@ return (_ctx, _cache) => {
|
|
|
2977
2977
|
|
|
2978
2978
|
};
|
|
2979
2979
|
|
|
2980
|
-
script$
|
|
2980
|
+
script$m.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2981
2981
|
|
|
2982
|
-
const _hoisted_1$
|
|
2982
|
+
const _hoisted_1$j = ["value"];
|
|
2983
2983
|
|
|
2984
2984
|
|
|
2985
|
-
var script$
|
|
2985
|
+
var script$l = {
|
|
2986
2986
|
__name: 'SelectInput',
|
|
2987
2987
|
props: ['modelValue','label','data','dataUrl'],
|
|
2988
2988
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3033,7 +3033,7 @@ return (_ctx, _cache) => {
|
|
|
3033
3033
|
return (openBlock(), createElementBlock("option", {
|
|
3034
3034
|
key: option.id,
|
|
3035
3035
|
value: option.id
|
|
3036
|
-
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3036
|
+
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$j))
|
|
3037
3037
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3038
3038
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
3039
3039
|
[vModelSelect, inputModel.value]
|
|
@@ -3043,9 +3043,9 @@ return (_ctx, _cache) => {
|
|
|
3043
3043
|
|
|
3044
3044
|
};
|
|
3045
3045
|
|
|
3046
|
-
script$
|
|
3046
|
+
script$l.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3047
3047
|
|
|
3048
|
-
var script$
|
|
3048
|
+
var script$k = {
|
|
3049
3049
|
__name: 'PasswordInput',
|
|
3050
3050
|
props: ['modelValue','label'],
|
|
3051
3051
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3081,23 +3081,23 @@ return (_ctx, _cache) => {
|
|
|
3081
3081
|
|
|
3082
3082
|
};
|
|
3083
3083
|
|
|
3084
|
-
script$
|
|
3084
|
+
script$k.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3085
3085
|
|
|
3086
|
-
const _hoisted_1$
|
|
3087
|
-
const _hoisted_2$
|
|
3088
|
-
const _hoisted_3$
|
|
3089
|
-
const _hoisted_4$
|
|
3090
|
-
const _hoisted_5$
|
|
3091
|
-
const _hoisted_6$
|
|
3086
|
+
const _hoisted_1$i = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3087
|
+
const _hoisted_2$b = ["innerHTML"];
|
|
3088
|
+
const _hoisted_3$a = ["innerHTML"];
|
|
3089
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
3090
|
+
const _hoisted_5$8 = ["disabled"];
|
|
3091
|
+
const _hoisted_6$7 = {
|
|
3092
3092
|
key: 0,
|
|
3093
3093
|
class: "spinner-border spinner-border-sm",
|
|
3094
3094
|
role: "status",
|
|
3095
3095
|
"aria-hidden": "true"
|
|
3096
3096
|
};
|
|
3097
|
-
const _hoisted_7$
|
|
3097
|
+
const _hoisted_7$5 = { key: 1 };
|
|
3098
3098
|
|
|
3099
3099
|
|
|
3100
|
-
var script$
|
|
3100
|
+
var script$j = {
|
|
3101
3101
|
__name: 'ShAutoForm',
|
|
3102
3102
|
props: [
|
|
3103
3103
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3130,13 +3130,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3130
3130
|
const defaultPhones = ['phone'];
|
|
3131
3131
|
const defaultEmails = ['email'];
|
|
3132
3132
|
const formComponents = inject('formComponents');
|
|
3133
|
-
const TextComponent = formComponents.text ?? script$
|
|
3134
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3135
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3136
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3137
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3138
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3139
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3133
|
+
const TextComponent = formComponents.text ?? script$n;
|
|
3134
|
+
const TextAreaComponent = formComponents.textArea ?? script$m;
|
|
3135
|
+
const EmailComponent = formComponents.email ?? script$p;
|
|
3136
|
+
const PhoneComponent = formComponents.phone ?? script$t;
|
|
3137
|
+
const NumberComponent = formComponents.number ?? script$o;
|
|
3138
|
+
const SelectComponent = formComponents.select ?? script$l;
|
|
3139
|
+
const PasswordComponent = formComponents.password ?? script$k;
|
|
3140
3140
|
if(props.customComponents && props.customComponents[field]) {
|
|
3141
3141
|
return props.customComponents[field]
|
|
3142
3142
|
}
|
|
@@ -3148,16 +3148,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3148
3148
|
}
|
|
3149
3149
|
else
|
|
3150
3150
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3151
|
-
return formComponents.textArea ?? script$
|
|
3151
|
+
return formComponents.textArea ?? script$m
|
|
3152
3152
|
} else
|
|
3153
3153
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3154
|
-
return formComponents.email ?? script$
|
|
3154
|
+
return formComponents.email ?? script$p
|
|
3155
3155
|
} else
|
|
3156
3156
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3157
|
-
return formComponents.phone ?? script$
|
|
3157
|
+
return formComponents.phone ?? script$t
|
|
3158
3158
|
} else
|
|
3159
3159
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3160
|
-
return formComponents.number ?? script$
|
|
3160
|
+
return formComponents.number ?? script$o
|
|
3161
3161
|
}
|
|
3162
3162
|
// else
|
|
3163
3163
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3166,14 +3166,14 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3166
3166
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3167
3167
|
// return formComponents.date ?? DateInput
|
|
3168
3168
|
// }
|
|
3169
|
-
return formComponents.text ?? script$
|
|
3169
|
+
return formComponents.text ?? script$n
|
|
3170
3170
|
};
|
|
3171
3171
|
const shFormElementClasses = ref(null);
|
|
3172
3172
|
shFormElementClasses.value = inject('shFormElementClasses');
|
|
3173
3173
|
const shAutoForm = ref(null);
|
|
3174
3174
|
const closeModal = e => {
|
|
3175
3175
|
setTimeout(() => {
|
|
3176
|
-
const modal = script$
|
|
3176
|
+
const modal = script$j.value.closest('.modal-dialog');
|
|
3177
3177
|
if(modal){
|
|
3178
3178
|
const closeBtn = modal.querySelector('[data-bs-dismiss="modal"]');
|
|
3179
3179
|
closeBtn && closeBtn.click();
|
|
@@ -3269,7 +3269,7 @@ onMounted((ev)=>{
|
|
|
3269
3269
|
|
|
3270
3270
|
return (_ctx, _cache) => {
|
|
3271
3271
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3272
|
-
_hoisted_1$
|
|
3272
|
+
_hoisted_1$i,
|
|
3273
3273
|
createElementVNode("form", {
|
|
3274
3274
|
class: normalizeClass([__props.formClass, "sh-form"]),
|
|
3275
3275
|
ref_key: "shAutoForm",
|
|
@@ -3286,7 +3286,7 @@ return (_ctx, _cache) => {
|
|
|
3286
3286
|
key: 0,
|
|
3287
3287
|
class: normalizeClass(getElementClass('formLabel')),
|
|
3288
3288
|
innerHTML: field.label
|
|
3289
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_2$
|
|
3289
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_2$b))
|
|
3290
3290
|
: createCommentVNode("v-if", true),
|
|
3291
3291
|
(openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(getComponentProps(field), {
|
|
3292
3292
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
@@ -3300,14 +3300,14 @@ return (_ctx, _cache) => {
|
|
|
3300
3300
|
key: 1,
|
|
3301
3301
|
class: normalizeClass(getElementClass('formLabel')),
|
|
3302
3302
|
innerHTML: field.label
|
|
3303
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_3$
|
|
3303
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
|
|
3304
3304
|
: createCommentVNode("v-if", true),
|
|
3305
3305
|
(field.helper)
|
|
3306
3306
|
? (openBlock(), createElementBlock("div", {
|
|
3307
3307
|
key: 2,
|
|
3308
3308
|
class: normalizeClass(getElementClass('helperText')),
|
|
3309
3309
|
innerHTML: field.helper
|
|
3310
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3310
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3311
3311
|
: createCommentVNode("v-if", true),
|
|
3312
3312
|
(validationErrors.value[field.field])
|
|
3313
3313
|
? (openBlock(), createElementBlock("div", {
|
|
@@ -3330,12 +3330,12 @@ return (_ctx, _cache) => {
|
|
|
3330
3330
|
class: normalizeClass(getElementClass('actionBtn'))
|
|
3331
3331
|
}, [
|
|
3332
3332
|
(loading.value)
|
|
3333
|
-
? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
3333
|
+
? (openBlock(), createElementBlock("span", _hoisted_6$7))
|
|
3334
3334
|
: createCommentVNode("v-if", true),
|
|
3335
3335
|
(!loading.value)
|
|
3336
|
-
? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
3336
|
+
? (openBlock(), createElementBlock("span", _hoisted_7$5, "Submit"))
|
|
3337
3337
|
: createCommentVNode("v-if", true)
|
|
3338
|
-
], 14 /* CLASS, STYLE, PROPS */, _hoisted_5$
|
|
3338
|
+
], 14 /* CLASS, STYLE, PROPS */, _hoisted_5$8)
|
|
3339
3339
|
], 2 /* CLASS */)
|
|
3340
3340
|
], 34 /* CLASS, HYDRATE_EVENTS */)
|
|
3341
3341
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3344,12 +3344,12 @@ return (_ctx, _cache) => {
|
|
|
3344
3344
|
|
|
3345
3345
|
};
|
|
3346
3346
|
|
|
3347
|
-
script$
|
|
3347
|
+
script$j.__file = "src/lib/components/ShAutoForm.vue";
|
|
3348
3348
|
|
|
3349
|
-
const _hoisted_1$
|
|
3350
|
-
const _hoisted_2$
|
|
3349
|
+
const _hoisted_1$h = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3350
|
+
const _hoisted_2$a = { class: "dropdown" };
|
|
3351
3351
|
|
|
3352
|
-
var script$
|
|
3352
|
+
var script$i = {
|
|
3353
3353
|
__name: 'ShDropDownForm',
|
|
3354
3354
|
props: ['action',
|
|
3355
3355
|
'classes',
|
|
@@ -3379,8 +3379,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3379
3379
|
|
|
3380
3380
|
return (_ctx, _cache) => {
|
|
3381
3381
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3382
|
-
_hoisted_1$
|
|
3383
|
-
createElementVNode("div", _hoisted_2$
|
|
3382
|
+
_hoisted_1$h,
|
|
3383
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
3384
3384
|
createElementVNode("a", {
|
|
3385
3385
|
class: normalizeClass(unref(btnClass)),
|
|
3386
3386
|
href: "#",
|
|
@@ -3396,7 +3396,7 @@ return (_ctx, _cache) => {
|
|
|
3396
3396
|
class: "dropdown-menu px-2 py-1",
|
|
3397
3397
|
"aria-labelledby": dropdownId
|
|
3398
3398
|
}, [
|
|
3399
|
-
createVNode(script$
|
|
3399
|
+
createVNode(script$q, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3400
3400
|
])
|
|
3401
3401
|
])
|
|
3402
3402
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3405,21 +3405,21 @@ return (_ctx, _cache) => {
|
|
|
3405
3405
|
|
|
3406
3406
|
};
|
|
3407
3407
|
|
|
3408
|
-
script$
|
|
3408
|
+
script$i.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3409
3409
|
|
|
3410
|
-
const _hoisted_1$
|
|
3411
|
-
const _hoisted_2$
|
|
3412
|
-
const _hoisted_3$
|
|
3413
|
-
const _hoisted_4$
|
|
3414
|
-
const _hoisted_5$
|
|
3410
|
+
const _hoisted_1$g = ["id"];
|
|
3411
|
+
const _hoisted_2$9 = { class: "modal-content" };
|
|
3412
|
+
const _hoisted_3$9 = { class: "modal-header" };
|
|
3413
|
+
const _hoisted_4$9 = { class: "modal-title" };
|
|
3414
|
+
const _hoisted_5$7 = /*#__PURE__*/createElementVNode("button", {
|
|
3415
3415
|
class: "btn btn-danger btn-sm",
|
|
3416
3416
|
"data-bs-dismiss": "modal",
|
|
3417
3417
|
"data-dismiss": "modal"
|
|
3418
3418
|
}, "×", -1 /* HOISTED */);
|
|
3419
|
-
const _hoisted_6$
|
|
3420
|
-
const _hoisted_7$
|
|
3419
|
+
const _hoisted_6$6 = { class: "modal-body" };
|
|
3420
|
+
const _hoisted_7$4 = { class: "section" };
|
|
3421
3421
|
|
|
3422
|
-
var script$
|
|
3422
|
+
var script$h = {
|
|
3423
3423
|
__name: 'ShModal',
|
|
3424
3424
|
props: {
|
|
3425
3425
|
modalId: {
|
|
@@ -3456,29 +3456,29 @@ return (_ctx, _cache) => {
|
|
|
3456
3456
|
createElementVNode("div", {
|
|
3457
3457
|
class: normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
|
|
3458
3458
|
}, [
|
|
3459
|
-
createElementVNode("div", _hoisted_2$
|
|
3460
|
-
createElementVNode("div", _hoisted_3$
|
|
3461
|
-
createElementVNode("h3", _hoisted_4$
|
|
3462
|
-
_hoisted_5$
|
|
3459
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
3460
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
3461
|
+
createElementVNode("h3", _hoisted_4$9, toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3462
|
+
_hoisted_5$7
|
|
3463
3463
|
]),
|
|
3464
|
-
createElementVNode("div", _hoisted_6$
|
|
3465
|
-
createElementVNode("div", _hoisted_7$
|
|
3464
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
3465
|
+
createElementVNode("div", _hoisted_7$4, [
|
|
3466
3466
|
renderSlot(_ctx.$slots, "default")
|
|
3467
3467
|
])
|
|
3468
3468
|
])
|
|
3469
3469
|
])
|
|
3470
3470
|
], 2 /* CLASS */)
|
|
3471
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3471
|
+
], 8 /* PROPS */, _hoisted_1$g))
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
3474
|
|
|
3475
3475
|
};
|
|
3476
3476
|
|
|
3477
|
-
script$
|
|
3477
|
+
script$h.__file = "src/lib/components/ShModal.vue";
|
|
3478
3478
|
|
|
3479
|
-
const _hoisted_1$
|
|
3479
|
+
const _hoisted_1$f = ["href"];
|
|
3480
3480
|
|
|
3481
|
-
var script$
|
|
3481
|
+
var script$g = {
|
|
3482
3482
|
__name: 'ShModalForm',
|
|
3483
3483
|
props: ['action',
|
|
3484
3484
|
'classes',
|
|
@@ -3517,13 +3517,13 @@ return (_ctx, _cache) => {
|
|
|
3517
3517
|
"data-bs-toggle": "modal"
|
|
3518
3518
|
}, [
|
|
3519
3519
|
renderSlot(_ctx.$slots, "default")
|
|
3520
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3521
|
-
createVNode(script$
|
|
3520
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3521
|
+
createVNode(script$h, {
|
|
3522
3522
|
"modal-id": modalId,
|
|
3523
3523
|
"modal-title": __props.modalTitle
|
|
3524
3524
|
}, {
|
|
3525
3525
|
default: withCtx(() => [
|
|
3526
|
-
createVNode(script$
|
|
3526
|
+
createVNode(script$q, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3527
3527
|
]),
|
|
3528
3528
|
_: 1 /* STABLE */
|
|
3529
3529
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3533,11 +3533,11 @@ return (_ctx, _cache) => {
|
|
|
3533
3533
|
|
|
3534
3534
|
};
|
|
3535
3535
|
|
|
3536
|
-
script$
|
|
3536
|
+
script$g.__file = "src/lib/components/ShModalForm.vue";
|
|
3537
3537
|
|
|
3538
|
-
const _hoisted_1$
|
|
3538
|
+
const _hoisted_1$e = ["href"];
|
|
3539
3539
|
|
|
3540
|
-
var script$
|
|
3540
|
+
var script$f = {
|
|
3541
3541
|
__name: 'ShModalFormAuto',
|
|
3542
3542
|
props: ['action',
|
|
3543
3543
|
'classes',
|
|
@@ -3577,13 +3577,13 @@ return (_ctx, _cache) => {
|
|
|
3577
3577
|
"data-bs-toggle": "modal"
|
|
3578
3578
|
}, [
|
|
3579
3579
|
renderSlot(_ctx.$slots, "default")
|
|
3580
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3581
|
-
createVNode(script$
|
|
3580
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$e),
|
|
3581
|
+
createVNode(script$h, {
|
|
3582
3582
|
"modal-id": modalId,
|
|
3583
3583
|
"modal-title": __props.modalTitle
|
|
3584
3584
|
}, {
|
|
3585
3585
|
default: withCtx(() => [
|
|
3586
|
-
createVNode(script$
|
|
3586
|
+
createVNode(script$j, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3587
3587
|
]),
|
|
3588
3588
|
_: 1 /* STABLE */
|
|
3589
3589
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3593,17 +3593,17 @@ return (_ctx, _cache) => {
|
|
|
3593
3593
|
|
|
3594
3594
|
};
|
|
3595
3595
|
|
|
3596
|
-
script$
|
|
3596
|
+
script$f.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3597
3597
|
|
|
3598
|
-
const _hoisted_1$
|
|
3599
|
-
const _hoisted_2$
|
|
3600
|
-
const _hoisted_3$
|
|
3598
|
+
const _hoisted_1$d = ["id"];
|
|
3599
|
+
const _hoisted_2$8 = { class: "offcanvas-header" };
|
|
3600
|
+
const _hoisted_3$8 = {
|
|
3601
3601
|
class: "offcanvas-title",
|
|
3602
3602
|
id: "offcanvasScrollingLabel"
|
|
3603
3603
|
};
|
|
3604
|
-
const _hoisted_4$
|
|
3604
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
3605
3605
|
|
|
3606
|
-
var script$
|
|
3606
|
+
var script$e = {
|
|
3607
3607
|
__name: 'ShCanvas',
|
|
3608
3608
|
props: {
|
|
3609
3609
|
canvasId: {
|
|
@@ -3648,8 +3648,8 @@ return (_ctx, _cache) => {
|
|
|
3648
3648
|
id: __props.canvasId,
|
|
3649
3649
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
3650
3650
|
}, [
|
|
3651
|
-
createElementVNode("div", _hoisted_2$
|
|
3652
|
-
createElementVNode("h5", _hoisted_3$
|
|
3651
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
3652
|
+
createElementVNode("h5", _hoisted_3$8, toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
3653
3653
|
createElementVNode("button", {
|
|
3654
3654
|
type: "button",
|
|
3655
3655
|
ref: "closecanvas",
|
|
@@ -3659,18 +3659,18 @@ return (_ctx, _cache) => {
|
|
|
3659
3659
|
"aria-label": "Close"
|
|
3660
3660
|
}, null, 512 /* NEED_PATCH */)
|
|
3661
3661
|
]),
|
|
3662
|
-
createElementVNode("div", _hoisted_4$
|
|
3662
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
3663
3663
|
renderSlot(_ctx.$slots, "default")
|
|
3664
3664
|
])
|
|
3665
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
3665
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$d))
|
|
3666
3666
|
}
|
|
3667
3667
|
}
|
|
3668
3668
|
|
|
3669
3669
|
};
|
|
3670
3670
|
|
|
3671
|
-
script$
|
|
3671
|
+
script$e.__file = "src/lib/components/ShCanvas.vue";
|
|
3672
3672
|
|
|
3673
|
-
var script$
|
|
3673
|
+
var script$d = {
|
|
3674
3674
|
name: 'Pagination',
|
|
3675
3675
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3676
3676
|
data () {
|
|
@@ -3741,12 +3741,12 @@ var script$c = {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
};
|
|
3743
3743
|
|
|
3744
|
-
const _hoisted_1$
|
|
3745
|
-
const _hoisted_2$
|
|
3746
|
-
const _hoisted_3$
|
|
3747
|
-
const _hoisted_4$
|
|
3744
|
+
const _hoisted_1$c = { key: 0 };
|
|
3745
|
+
const _hoisted_2$7 = { class: "record_count_body mb-3" };
|
|
3746
|
+
const _hoisted_3$7 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
3747
|
+
const _hoisted_4$7 = /*#__PURE__*/createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
3748
3748
|
const _hoisted_9$3 = [
|
|
3749
|
-
_hoisted_4$
|
|
3749
|
+
_hoisted_4$7
|
|
3750
3750
|
];
|
|
3751
3751
|
const _hoisted_10$2 = { class: "record_counts" };
|
|
3752
3752
|
const _hoisted_11$2 = {
|
|
@@ -3787,9 +3787,9 @@ const _hoisted_22$1 = {
|
|
|
3787
3787
|
|
|
3788
3788
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3789
3789
|
return ($props.paginationStyle !== 'loadMore')
|
|
3790
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3791
|
-
createElementVNode("div", _hoisted_2$
|
|
3792
|
-
_hoisted_3$
|
|
3790
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
3791
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
3792
|
+
_hoisted_3$7,
|
|
3793
3793
|
createTextVNode(" "),
|
|
3794
3794
|
withDirectives(createElementVNode("select", {
|
|
3795
3795
|
class: "select_per_page",
|
|
@@ -3859,17 +3859,17 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3859
3859
|
]))
|
|
3860
3860
|
}
|
|
3861
3861
|
|
|
3862
|
-
script$
|
|
3863
|
-
script$
|
|
3862
|
+
script$d.render = render$1;
|
|
3863
|
+
script$d.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3864
3864
|
|
|
3865
|
-
const _hoisted_1$
|
|
3865
|
+
const _hoisted_1$b = /*#__PURE__*/createElementVNode("span", {
|
|
3866
3866
|
class: "spinner-border spinner-border-sm me-1",
|
|
3867
3867
|
role: "status",
|
|
3868
3868
|
"aria-hidden": "true"
|
|
3869
3869
|
}, null, -1 /* HOISTED */);
|
|
3870
3870
|
|
|
3871
3871
|
|
|
3872
|
-
var script$
|
|
3872
|
+
var script$c = {
|
|
3873
3873
|
__name: 'ShConfirmAction',
|
|
3874
3874
|
props: {
|
|
3875
3875
|
data: Object,
|
|
@@ -3942,7 +3942,7 @@ return (_ctx, _cache) => {
|
|
|
3942
3942
|
}, [
|
|
3943
3943
|
(processing.value)
|
|
3944
3944
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3945
|
-
_hoisted_1$
|
|
3945
|
+
_hoisted_1$b,
|
|
3946
3946
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
3947
3947
|
], 64 /* STABLE_FRAGMENT */))
|
|
3948
3948
|
: createCommentVNode("v-if", true),
|
|
@@ -3955,15 +3955,15 @@ return (_ctx, _cache) => {
|
|
|
3955
3955
|
|
|
3956
3956
|
};
|
|
3957
3957
|
|
|
3958
|
-
script$
|
|
3958
|
+
script$c.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3959
3959
|
|
|
3960
|
-
const _hoisted_1$
|
|
3960
|
+
const _hoisted_1$a = /*#__PURE__*/createElementVNode("span", {
|
|
3961
3961
|
class: "spinner-border spinner-border-sm me-1",
|
|
3962
3962
|
role: "status",
|
|
3963
3963
|
"aria-hidden": "true"
|
|
3964
3964
|
}, null, -1 /* HOISTED */);
|
|
3965
3965
|
|
|
3966
|
-
var script$
|
|
3966
|
+
var script$b = {
|
|
3967
3967
|
__name: 'ShSilentAction',
|
|
3968
3968
|
props: {
|
|
3969
3969
|
data: Object,
|
|
@@ -4038,7 +4038,7 @@ return (_ctx, _cache) => {
|
|
|
4038
4038
|
}, [
|
|
4039
4039
|
(processing.value)
|
|
4040
4040
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4041
|
-
_hoisted_1$
|
|
4041
|
+
_hoisted_1$a,
|
|
4042
4042
|
createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
|
|
4043
4043
|
], 64 /* STABLE_FRAGMENT */))
|
|
4044
4044
|
: createCommentVNode("v-if", true),
|
|
@@ -4051,9 +4051,9 @@ return (_ctx, _cache) => {
|
|
|
4051
4051
|
|
|
4052
4052
|
};
|
|
4053
4053
|
|
|
4054
|
-
script$
|
|
4054
|
+
script$b.__file = "src/lib/components/ShSilentAction.vue";
|
|
4055
4055
|
|
|
4056
|
-
var script$
|
|
4056
|
+
var script$a = {
|
|
4057
4057
|
name: 'sh-table',
|
|
4058
4058
|
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4059
4059
|
inject: ['channel'],
|
|
@@ -4285,16 +4285,19 @@ var script$9 = {
|
|
|
4285
4285
|
},
|
|
4286
4286
|
reload () {
|
|
4287
4287
|
this.reloadData();
|
|
4288
|
+
},
|
|
4289
|
+
endPoint() {
|
|
4290
|
+
this.reloadData();
|
|
4288
4291
|
}
|
|
4289
4292
|
},
|
|
4290
4293
|
created () {
|
|
4291
4294
|
this.reloadData();
|
|
4292
4295
|
},
|
|
4293
4296
|
components: {
|
|
4294
|
-
ShSilentAction: script$
|
|
4295
|
-
ShConfirmAction: script$
|
|
4296
|
-
ShCanvas: script$
|
|
4297
|
-
pagination: script$
|
|
4297
|
+
ShSilentAction: script$b,
|
|
4298
|
+
ShConfirmAction: script$c,
|
|
4299
|
+
ShCanvas: script$e,
|
|
4300
|
+
pagination: script$d
|
|
4298
4301
|
},
|
|
4299
4302
|
computed: {
|
|
4300
4303
|
windowWidth: function () {
|
|
@@ -4312,20 +4315,20 @@ var script$9 = {
|
|
|
4312
4315
|
}
|
|
4313
4316
|
};
|
|
4314
4317
|
|
|
4315
|
-
const _hoisted_1$
|
|
4316
|
-
const _hoisted_2$
|
|
4318
|
+
const _hoisted_1$9 = { class: "auto-table mt-2" };
|
|
4319
|
+
const _hoisted_2$6 = {
|
|
4317
4320
|
key: 0,
|
|
4318
4321
|
class: "col-md-4 mb-2"
|
|
4319
4322
|
};
|
|
4320
|
-
const _hoisted_3$
|
|
4321
|
-
const _hoisted_4$
|
|
4322
|
-
const _hoisted_5$
|
|
4323
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4324
|
+
const _hoisted_4$6 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
4325
|
+
const _hoisted_5$6 = /*#__PURE__*/createElementVNode("span", {
|
|
4323
4326
|
class: "spinner-border spinner-border-sm",
|
|
4324
4327
|
role: "status",
|
|
4325
4328
|
"aria-hidden": "true"
|
|
4326
4329
|
}, null, -1 /* HOISTED */);
|
|
4327
|
-
const _hoisted_6$
|
|
4328
|
-
const _hoisted_7$
|
|
4330
|
+
const _hoisted_6$5 = /*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
|
|
4331
|
+
const _hoisted_7$3 = {
|
|
4329
4332
|
key: 1,
|
|
4330
4333
|
class: "row"
|
|
4331
4334
|
};
|
|
@@ -4475,9 +4478,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4475
4478
|
const _component_pagination = resolveComponent("pagination");
|
|
4476
4479
|
const _component_sh_canvas = resolveComponent("sh-canvas");
|
|
4477
4480
|
|
|
4478
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4481
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
4479
4482
|
($props.hasDownload)
|
|
4480
|
-
? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4483
|
+
? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
4481
4484
|
createElementVNode("button", {
|
|
4482
4485
|
disabled: $data.downloading,
|
|
4483
4486
|
class: "btn btn-warning btn-sm",
|
|
@@ -4485,18 +4488,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4485
4488
|
}, [
|
|
4486
4489
|
(!$data.downloading)
|
|
4487
4490
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4488
|
-
_hoisted_4$
|
|
4491
|
+
_hoisted_4$6,
|
|
4489
4492
|
createTextVNode(" Export ")
|
|
4490
4493
|
], 64 /* STABLE_FRAGMENT */))
|
|
4491
4494
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4492
|
-
_hoisted_5$
|
|
4493
|
-
_hoisted_6$
|
|
4495
|
+
_hoisted_5$6,
|
|
4496
|
+
_hoisted_6$5
|
|
4494
4497
|
], 64 /* STABLE_FRAGMENT */))
|
|
4495
|
-
], 8 /* PROPS */, _hoisted_3$
|
|
4498
|
+
], 8 /* PROPS */, _hoisted_3$6)
|
|
4496
4499
|
]))
|
|
4497
4500
|
: createCommentVNode("v-if", true),
|
|
4498
4501
|
(!$props.hideSearch)
|
|
4499
|
-
? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
4502
|
+
? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
4500
4503
|
createElementVNode("div", _hoisted_8$2, [
|
|
4501
4504
|
createElementVNode("div", _hoisted_9$2, [
|
|
4502
4505
|
withDirectives(createElementVNode("input", {
|
|
@@ -4617,10 +4620,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4617
4620
|
(typeof key === 'string' && $props.links && $props.links[key])
|
|
4618
4621
|
? (openBlock(), createBlock(_component_router_link, {
|
|
4619
4622
|
key: 0,
|
|
4623
|
+
target: $props.links[key].target ? '_blank':'',
|
|
4620
4624
|
to: $options.replaceLinkUrl($props.links[key],record),
|
|
4621
4625
|
class: normalizeClass($options.getLinkClass($props.links[key])),
|
|
4622
4626
|
innerHTML: record[key]
|
|
4623
|
-
}, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
|
|
4627
|
+
}, null, 8 /* PROPS */, ["target", "to", "class", "innerHTML"]))
|
|
4624
4628
|
: ($options.getFieldType(key) === 'numeric')
|
|
4625
4629
|
? (openBlock(), createElementBlock("span", _hoisted_37, toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
4626
4630
|
: ($options.getFieldType(key) === 'money')
|
|
@@ -4927,10 +4931,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4927
4931
|
]))
|
|
4928
4932
|
}
|
|
4929
4933
|
|
|
4930
|
-
script$
|
|
4931
|
-
script$
|
|
4934
|
+
script$a.render = render;
|
|
4935
|
+
script$a.__file = "src/lib/components/ShTable.vue";
|
|
4932
4936
|
|
|
4933
|
-
var script$
|
|
4937
|
+
var script$9 = {
|
|
4934
4938
|
__name: 'ShTabs',
|
|
4935
4939
|
props: {
|
|
4936
4940
|
tabs: {
|
|
@@ -5074,22 +5078,22 @@ return (_ctx, _cache) => {
|
|
|
5074
5078
|
|
|
5075
5079
|
};
|
|
5076
5080
|
|
|
5077
|
-
script$
|
|
5081
|
+
script$9.__file = "src/lib/components/ShTabs.vue";
|
|
5078
5082
|
|
|
5079
|
-
const _hoisted_1$
|
|
5083
|
+
const _hoisted_1$8 = {
|
|
5080
5084
|
class: "nav nav-tabs",
|
|
5081
5085
|
role: "tablist"
|
|
5082
5086
|
};
|
|
5083
|
-
const _hoisted_2$
|
|
5087
|
+
const _hoisted_2$5 = {
|
|
5084
5088
|
class: "nav-item",
|
|
5085
5089
|
role: "presentation"
|
|
5086
5090
|
};
|
|
5087
|
-
const _hoisted_3$
|
|
5088
|
-
const _hoisted_4$
|
|
5089
|
-
const _hoisted_5$
|
|
5090
|
-
const _hoisted_6$
|
|
5091
|
+
const _hoisted_3$5 = ["onClick"];
|
|
5092
|
+
const _hoisted_4$5 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
5093
|
+
const _hoisted_5$5 = { class: "sh_tab_count" };
|
|
5094
|
+
const _hoisted_6$4 = { class: "tab-content" };
|
|
5091
5095
|
|
|
5092
|
-
var script$
|
|
5096
|
+
var script$8 = {
|
|
5093
5097
|
__name: 'ShDynamicTabs',
|
|
5094
5098
|
props: ['tabs','data'],
|
|
5095
5099
|
setup(__props) {
|
|
@@ -5114,9 +5118,9 @@ function setTab(tab){
|
|
|
5114
5118
|
|
|
5115
5119
|
return (_ctx, _cache) => {
|
|
5116
5120
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
5117
|
-
createElementVNode("ul", _hoisted_1$
|
|
5121
|
+
createElementVNode("ul", _hoisted_1$8, [
|
|
5118
5122
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
|
|
5119
|
-
return (openBlock(), createElementBlock("li", _hoisted_2$
|
|
5123
|
+
return (openBlock(), createElementBlock("li", _hoisted_2$5, [
|
|
5120
5124
|
createElementVNode("button", {
|
|
5121
5125
|
onClick: $event => (setTab(tab)),
|
|
5122
5126
|
class: normalizeClass(["nav-link", unref(currentTab) === tab ? 'active':''])
|
|
@@ -5124,15 +5128,15 @@ return (_ctx, _cache) => {
|
|
|
5124
5128
|
createTextVNode(toDisplayString(tab.label) + " ", 1 /* TEXT */),
|
|
5125
5129
|
(tab.count || tab.tabCount)
|
|
5126
5130
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5127
|
-
_hoisted_4$
|
|
5128
|
-
createElementVNode("sup", _hoisted_5$
|
|
5131
|
+
_hoisted_4$5,
|
|
5132
|
+
createElementVNode("sup", _hoisted_5$5, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
|
|
5129
5133
|
], 64 /* STABLE_FRAGMENT */))
|
|
5130
5134
|
: createCommentVNode("v-if", true)
|
|
5131
|
-
], 10 /* CLASS, PROPS */, _hoisted_3$
|
|
5135
|
+
], 10 /* CLASS, PROPS */, _hoisted_3$5)
|
|
5132
5136
|
]))
|
|
5133
5137
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
5134
5138
|
]),
|
|
5135
|
-
createElementVNode("div", _hoisted_6$
|
|
5139
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
5136
5140
|
(unref(currentTab))
|
|
5137
5141
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), normalizeProps(mergeProps({ key: 0 }, unref(currentTab))), null, 16 /* FULL_PROPS */))
|
|
5138
5142
|
: createCommentVNode("v-if", true)
|
|
@@ -5143,12 +5147,12 @@ return (_ctx, _cache) => {
|
|
|
5143
5147
|
|
|
5144
5148
|
};
|
|
5145
5149
|
|
|
5146
|
-
script$
|
|
5150
|
+
script$8.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5147
5151
|
|
|
5148
|
-
const _hoisted_1$
|
|
5152
|
+
const _hoisted_1$7 = ["href"];
|
|
5149
5153
|
|
|
5150
5154
|
|
|
5151
|
-
var script$
|
|
5155
|
+
var script$7 = {
|
|
5152
5156
|
__name: 'ShModalBtn',
|
|
5153
5157
|
props: {
|
|
5154
5158
|
modalId: {
|
|
@@ -5165,18 +5169,18 @@ return (_ctx, _cache) => {
|
|
|
5165
5169
|
"data-bs-toggle": "modal"
|
|
5166
5170
|
}, [
|
|
5167
5171
|
renderSlot(_ctx.$slots, "default")
|
|
5168
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5172
|
+
], 8 /* PROPS */, _hoisted_1$7))
|
|
5169
5173
|
}
|
|
5170
5174
|
}
|
|
5171
5175
|
|
|
5172
5176
|
};
|
|
5173
5177
|
|
|
5174
|
-
script$
|
|
5178
|
+
script$7.__file = "src/lib/components/ShModalBtn.vue";
|
|
5175
5179
|
|
|
5176
|
-
const _hoisted_1$
|
|
5180
|
+
const _hoisted_1$6 = ["href"];
|
|
5177
5181
|
|
|
5178
5182
|
|
|
5179
|
-
var script$
|
|
5183
|
+
var script$6 = {
|
|
5180
5184
|
__name: 'ShCanvasBtn',
|
|
5181
5185
|
props: {
|
|
5182
5186
|
canvasId: {
|
|
@@ -5194,13 +5198,13 @@ return (_ctx, _cache) => {
|
|
|
5194
5198
|
"data-bs-toggle": "offcanvas"
|
|
5195
5199
|
}, [
|
|
5196
5200
|
renderSlot(_ctx.$slots, "default")
|
|
5197
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5201
|
+
], 8 /* PROPS */, _hoisted_1$6))
|
|
5198
5202
|
}
|
|
5199
5203
|
}
|
|
5200
5204
|
|
|
5201
5205
|
};
|
|
5202
5206
|
|
|
5203
|
-
script$
|
|
5207
|
+
script$6.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5204
5208
|
|
|
5205
5209
|
const useUserStore = defineStore('user-store', {
|
|
5206
5210
|
state: () => ({
|
|
@@ -5299,24 +5303,24 @@ const useUserStore = defineStore('user-store', {
|
|
|
5299
5303
|
});
|
|
5300
5304
|
|
|
5301
5305
|
const _withScopeId$1 = n => (pushScopeId("data-v-0d4fa0ac"),n=n(),popScopeId(),n);
|
|
5302
|
-
const _hoisted_1$
|
|
5303
|
-
const _hoisted_2$
|
|
5306
|
+
const _hoisted_1$5 = { class: "row permissions-main d-flex" };
|
|
5307
|
+
const _hoisted_2$4 = {
|
|
5304
5308
|
id: "permissions-nav",
|
|
5305
5309
|
class: "col-md-3 d-flex align-items-center py-4"
|
|
5306
5310
|
};
|
|
5307
|
-
const _hoisted_3$
|
|
5311
|
+
const _hoisted_3$4 = {
|
|
5308
5312
|
key: 0,
|
|
5309
5313
|
class: "mx-auto"
|
|
5310
5314
|
};
|
|
5311
|
-
const _hoisted_4$
|
|
5312
|
-
const _hoisted_5$
|
|
5313
|
-
_hoisted_4$
|
|
5315
|
+
const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
|
|
5316
|
+
const _hoisted_5$4 = [
|
|
5317
|
+
_hoisted_4$4
|
|
5314
5318
|
];
|
|
5315
|
-
const _hoisted_6$
|
|
5319
|
+
const _hoisted_6$3 = {
|
|
5316
5320
|
key: 1,
|
|
5317
5321
|
class: "d-flex flex-column w-100 px-2"
|
|
5318
5322
|
};
|
|
5319
|
-
const _hoisted_7$
|
|
5323
|
+
const _hoisted_7$2 = ["checked", "disabled"];
|
|
5320
5324
|
const _hoisted_8$1 = ["onClick"];
|
|
5321
5325
|
const _hoisted_9$1 = {
|
|
5322
5326
|
id: "permissions-content",
|
|
@@ -5339,7 +5343,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5339
5343
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5340
5344
|
|
|
5341
5345
|
|
|
5342
|
-
var script$
|
|
5346
|
+
var script$5 = {
|
|
5343
5347
|
__name: 'ManagePermissions',
|
|
5344
5348
|
emits: ['success'],
|
|
5345
5349
|
setup(__props, { emit }) {
|
|
@@ -5442,11 +5446,11 @@ const getPermissionStyle = permission => {
|
|
|
5442
5446
|
};
|
|
5443
5447
|
|
|
5444
5448
|
return (_ctx, _cache) => {
|
|
5445
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5446
|
-
createElementVNode("div", _hoisted_2$
|
|
5449
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
5450
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
5447
5451
|
(loadingModules.value)
|
|
5448
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5449
|
-
: (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
5452
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$4, _hoisted_5$4))
|
|
5453
|
+
: (openBlock(), createElementBlock("ul", _hoisted_6$3, [
|
|
5450
5454
|
(openBlock(true), createElementBlock(Fragment, null, renderList(modules.value, (module) => {
|
|
5451
5455
|
return (openBlock(), createElementBlock("li", {
|
|
5452
5456
|
class: normalizeClass(selectedModule.value === module && 'active'),
|
|
@@ -5457,7 +5461,7 @@ return (_ctx, _cache) => {
|
|
|
5457
5461
|
onClick: checkAllPermissions,
|
|
5458
5462
|
disabled: selectedModule.value !== module,
|
|
5459
5463
|
type: "checkbox"
|
|
5460
|
-
}, null, 8 /* PROPS */, _hoisted_7$
|
|
5464
|
+
}, null, 8 /* PROPS */, _hoisted_7$2),
|
|
5461
5465
|
createElementVNode("label", {
|
|
5462
5466
|
class: "text-capitalize",
|
|
5463
5467
|
onClick: $event => (setModule(module))
|
|
@@ -5496,7 +5500,7 @@ return (_ctx, _cache) => {
|
|
|
5496
5500
|
(permissionsChanged.value)
|
|
5497
5501
|
? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
5498
5502
|
createElementVNode("div", _hoisted_17, [
|
|
5499
|
-
createVNode(script$
|
|
5503
|
+
createVNode(script$b, {
|
|
5500
5504
|
onSuccess: permissionsUpdated,
|
|
5501
5505
|
url: `sh-departments/department/permissions/${unref(departmentId)}/${selectedModule.value}`,
|
|
5502
5506
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5520,13 +5524,13 @@ return (_ctx, _cache) => {
|
|
|
5520
5524
|
|
|
5521
5525
|
};
|
|
5522
5526
|
|
|
5523
|
-
script$
|
|
5524
|
-
script$
|
|
5527
|
+
script$5.__scopeId = "data-v-0d4fa0ac";
|
|
5528
|
+
script$5.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5525
5529
|
|
|
5526
|
-
const _hoisted_1$
|
|
5530
|
+
const _hoisted_1$4 = ["href"];
|
|
5527
5531
|
|
|
5528
5532
|
|
|
5529
|
-
var script$
|
|
5533
|
+
var script$4 = {
|
|
5530
5534
|
__name: 'ShPopups',
|
|
5531
5535
|
setup(__props) {
|
|
5532
5536
|
|
|
@@ -5607,9 +5611,9 @@ return (_ctx, _cache) => {
|
|
|
5607
5611
|
href: '#' + unref(canvasId),
|
|
5608
5612
|
shallowRef: "canvasButton",
|
|
5609
5613
|
class: "d-none"
|
|
5610
|
-
}, "Open Modal", 8 /* PROPS */, _hoisted_1$
|
|
5614
|
+
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5611
5615
|
(popUp.value === 'modal')
|
|
5612
|
-
? (openBlock(), createBlock(script$
|
|
5616
|
+
? (openBlock(), createBlock(script$h, {
|
|
5613
5617
|
key: 0,
|
|
5614
5618
|
"modal-id": unref(modalId),
|
|
5615
5619
|
"modal-size": size.value
|
|
@@ -5621,7 +5625,7 @@ return (_ctx, _cache) => {
|
|
|
5621
5625
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5622
5626
|
: createCommentVNode("v-if", true),
|
|
5623
5627
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5624
|
-
? (openBlock(), createBlock(script$
|
|
5628
|
+
? (openBlock(), createBlock(script$e, {
|
|
5625
5629
|
key: 1,
|
|
5626
5630
|
"canvas-id": unref(canvasId),
|
|
5627
5631
|
"canvas-size": size.value,
|
|
@@ -5639,7 +5643,153 @@ return (_ctx, _cache) => {
|
|
|
5639
5643
|
|
|
5640
5644
|
};
|
|
5641
5645
|
|
|
5642
|
-
script$
|
|
5646
|
+
script$4.__file = "src/lib/components/ShPopups.vue";
|
|
5647
|
+
|
|
5648
|
+
const _hoisted_1$3 = { class: "sh-range" };
|
|
5649
|
+
const _hoisted_2$3 = { class: "dropdown" };
|
|
5650
|
+
const _hoisted_3$3 = {
|
|
5651
|
+
class: "form-control dropdown-toggle",
|
|
5652
|
+
href: "#",
|
|
5653
|
+
role: "button",
|
|
5654
|
+
id: "dropdownMenuLink",
|
|
5655
|
+
"data-bs-toggle": "dropdown",
|
|
5656
|
+
"aria-expanded": "false"
|
|
5657
|
+
};
|
|
5658
|
+
const _hoisted_4$3 = /*#__PURE__*/createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */);
|
|
5659
|
+
const _hoisted_5$3 = ["innerHTML"];
|
|
5660
|
+
const _hoisted_6$2 = {
|
|
5661
|
+
class: "dropdown-menu",
|
|
5662
|
+
"aria-labelledby": "dropdownMenuLink"
|
|
5663
|
+
};
|
|
5664
|
+
const _hoisted_7$1 = ["onClick"];
|
|
5665
|
+
|
|
5666
|
+
|
|
5667
|
+
|
|
5668
|
+
var script$3 = {
|
|
5669
|
+
__name: 'ShRange',
|
|
5670
|
+
props: {
|
|
5671
|
+
start: {
|
|
5672
|
+
type: Number,
|
|
5673
|
+
default: 2021
|
|
5674
|
+
},
|
|
5675
|
+
selected: {
|
|
5676
|
+
type: String,
|
|
5677
|
+
default: shRepo.getShConfig('defaultRange', 'This Month')
|
|
5678
|
+
}
|
|
5679
|
+
},
|
|
5680
|
+
emits: ['rangeSelected'],
|
|
5681
|
+
setup(__props, { emit }) {
|
|
5682
|
+
|
|
5683
|
+
const props = __props;
|
|
5684
|
+
|
|
5685
|
+
|
|
5686
|
+
|
|
5687
|
+
|
|
5688
|
+
|
|
5689
|
+
const selectedDate = ref(null);
|
|
5690
|
+
const rangeLabel = ref(null);
|
|
5691
|
+
ref(false);
|
|
5692
|
+
|
|
5693
|
+
const dates = ref([
|
|
5694
|
+
{
|
|
5695
|
+
label: 'Today',
|
|
5696
|
+
value: [moment(), moment()]
|
|
5697
|
+
},
|
|
5698
|
+
{
|
|
5699
|
+
label: '7 Days',
|
|
5700
|
+
value: [moment().subtract(7, 'days'), moment()]
|
|
5701
|
+
},
|
|
5702
|
+
{
|
|
5703
|
+
label: 'This week',
|
|
5704
|
+
value: [moment().subtract(1, 'week').startOf('week'), moment().subtract(1, 'week').endOf('week')]
|
|
5705
|
+
},
|
|
5706
|
+
{
|
|
5707
|
+
label: 'This Month',
|
|
5708
|
+
value: [moment().startOf('month'), moment()]
|
|
5709
|
+
},
|
|
5710
|
+
{
|
|
5711
|
+
label: 'Last Month',
|
|
5712
|
+
value: [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
|
|
5713
|
+
},
|
|
5714
|
+
{
|
|
5715
|
+
label: '1 Month',
|
|
5716
|
+
value: [moment().subtract(29, 'days'), moment()]
|
|
5717
|
+
},
|
|
5718
|
+
{
|
|
5719
|
+
label: '1 Year',
|
|
5720
|
+
value: [moment().subtract(12, 'months'), moment()]
|
|
5721
|
+
},
|
|
5722
|
+
{
|
|
5723
|
+
label: 'All Time',
|
|
5724
|
+
value: [moment('@/2021').startOf('year'), moment()]
|
|
5725
|
+
}
|
|
5726
|
+
]);
|
|
5727
|
+
const setDate = (date, label) => {
|
|
5728
|
+
selectedDate.value = date;
|
|
5729
|
+
rangeLabel.value = '<strong>' + label + '</strong><small>(' + date[0].format('MMMM D, YYYY') + ' - ' + date[1].format('MMMM D, YYYY') + ')</small>';
|
|
5730
|
+
const from = date[0].format('L');
|
|
5731
|
+
const to = date[1].format('L');
|
|
5732
|
+
const period = label.toString().toLowerCase().replaceAll(' ','_');
|
|
5733
|
+
emit('rangeSelected', {
|
|
5734
|
+
from: from,
|
|
5735
|
+
to: to,
|
|
5736
|
+
period: period,
|
|
5737
|
+
query: `from=${from}&to=${to}&period=${period}`
|
|
5738
|
+
});
|
|
5739
|
+
};
|
|
5740
|
+
onMounted(() => {
|
|
5741
|
+
let end = parseInt(moment().format('Y'));
|
|
5742
|
+
while (end >= props.start) {
|
|
5743
|
+
dates.value.push({
|
|
5744
|
+
label: end,
|
|
5745
|
+
value: [moment('@/' + end).startOf('year'), moment('@/' + end).endOf('year')]
|
|
5746
|
+
});
|
|
5747
|
+
end--;
|
|
5748
|
+
}
|
|
5749
|
+
|
|
5750
|
+
dates.value.map(date=>{
|
|
5751
|
+
(`${date.label}`.toLowerCase() === props.selected.toLowerCase()) && setDate(date.value, date.label);
|
|
5752
|
+
});
|
|
5753
|
+
});
|
|
5754
|
+
|
|
5755
|
+
return (_ctx, _cache) => {
|
|
5756
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
5757
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
5758
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
5759
|
+
_hoisted_4$3,
|
|
5760
|
+
createTextVNode(),
|
|
5761
|
+
createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$3)
|
|
5762
|
+
]),
|
|
5763
|
+
createElementVNode("ul", _hoisted_6$2, [
|
|
5764
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(dates.value, (date) => {
|
|
5765
|
+
return (openBlock(), createElementBlock("li", {
|
|
5766
|
+
key: date.label,
|
|
5767
|
+
onClick: $event => (setDate(date.value, date.label))
|
|
5768
|
+
}, [
|
|
5769
|
+
createElementVNode("a", {
|
|
5770
|
+
class: normalizeClass(["dropdown-item", date.value === selectedDate.value ? 'active' : '']),
|
|
5771
|
+
href: "#"
|
|
5772
|
+
}, toDisplayString(date.label), 3 /* TEXT, CLASS */)
|
|
5773
|
+
], 8 /* PROPS */, _hoisted_7$1))
|
|
5774
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
5775
|
+
createCommentVNode(" <li>"),
|
|
5776
|
+
createCommentVNode(" <div class=\"dropdown-item\">"),
|
|
5777
|
+
createCommentVNode(" <div @clik=\"showCustom = true\">Custom</div>"),
|
|
5778
|
+
createCommentVNode(" <div v-if=\"showCustom\">"),
|
|
5779
|
+
createCommentVNode(" <input type=\"date\">"),
|
|
5780
|
+
createCommentVNode(" <input type=\"date\">"),
|
|
5781
|
+
createCommentVNode(" </div>"),
|
|
5782
|
+
createCommentVNode(" </div>"),
|
|
5783
|
+
createCommentVNode(" </li>")
|
|
5784
|
+
])
|
|
5785
|
+
])
|
|
5786
|
+
]))
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5789
|
+
|
|
5790
|
+
};
|
|
5791
|
+
|
|
5792
|
+
script$3.__file = "src/lib/components/ShRange.vue";
|
|
5643
5793
|
|
|
5644
5794
|
const _hoisted_1$2 = /*#__PURE__*/createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
|
|
5645
5795
|
const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
|
|
@@ -5683,7 +5833,7 @@ return (_ctx, _cache) => {
|
|
|
5683
5833
|
_hoisted_5$2,
|
|
5684
5834
|
createTextVNode(" ADD DEPARTMENT")
|
|
5685
5835
|
], 512 /* NEED_PATCH */),
|
|
5686
|
-
createVNode(script$
|
|
5836
|
+
createVNode(script$a, {
|
|
5687
5837
|
headers: ['id','name','description', 'created_at'],
|
|
5688
5838
|
"end-point": "sh-departments/list",
|
|
5689
5839
|
actions: {
|
|
@@ -5697,12 +5847,12 @@ return (_ctx, _cache) => {
|
|
|
5697
5847
|
]
|
|
5698
5848
|
}
|
|
5699
5849
|
}),
|
|
5700
|
-
createVNode(script$
|
|
5850
|
+
createVNode(script$h, {
|
|
5701
5851
|
"modal-id": "sh-department_modal",
|
|
5702
5852
|
"modal-title": "Department Form"
|
|
5703
5853
|
}, {
|
|
5704
5854
|
default: withCtx(() => [
|
|
5705
|
-
createVNode(script$
|
|
5855
|
+
createVNode(script$q, {
|
|
5706
5856
|
"success-callback": "departmentAdded",
|
|
5707
5857
|
onDepartmentAdded: departmentAdded,
|
|
5708
5858
|
action: "admin/departments/store",
|
|
@@ -5836,7 +5986,7 @@ return (_ctx, _cache) => {
|
|
|
5836
5986
|
createElementVNode("div", _hoisted_2$1, [
|
|
5837
5987
|
_hoisted_3$1,
|
|
5838
5988
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
5839
|
-
createVNode(script$
|
|
5989
|
+
createVNode(script$a, {
|
|
5840
5990
|
actions: {
|
|
5841
5991
|
label: 'Actions',
|
|
5842
5992
|
actions: [
|
|
@@ -5856,12 +6006,12 @@ return (_ctx, _cache) => {
|
|
|
5856
6006
|
headers: ['id',showModule,'created_at'],
|
|
5857
6007
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
5858
6008
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
5859
|
-
createVNode(script$
|
|
6009
|
+
createVNode(script$h, {
|
|
5860
6010
|
"modal-id": "addModule",
|
|
5861
6011
|
"modal-title": "Add Module Department"
|
|
5862
6012
|
}, {
|
|
5863
6013
|
default: withCtx(() => [
|
|
5864
|
-
createVNode(script$
|
|
6014
|
+
createVNode(script$q, {
|
|
5865
6015
|
"reload-select-items": unref(reload),
|
|
5866
6016
|
"success-callback": moduleAdded,
|
|
5867
6017
|
"fill-selects": {
|
|
@@ -5883,7 +6033,7 @@ return (_ctx, _cache) => {
|
|
|
5883
6033
|
ref: permissionCanvasBtn,
|
|
5884
6034
|
"data-bs-toggle": "offcanvas"
|
|
5885
6035
|
}, null, 512 /* NEED_PATCH */),
|
|
5886
|
-
createVNode(script$
|
|
6036
|
+
createVNode(script$e, {
|
|
5887
6037
|
"canvas-id": "permissionsCanvas",
|
|
5888
6038
|
position: "end enlarged",
|
|
5889
6039
|
"canvas-title": "Module Permissions"
|
|
@@ -5998,7 +6148,7 @@ return (_ctx, _cache) => {
|
|
|
5998
6148
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5999
6149
|
(section.value === 'login')
|
|
6000
6150
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
6001
|
-
createVNode(script$
|
|
6151
|
+
createVNode(script$q, {
|
|
6002
6152
|
class: "sh-login-form",
|
|
6003
6153
|
fields: ['email','password'],
|
|
6004
6154
|
"action-label": "Login",
|
|
@@ -6023,7 +6173,7 @@ return (_ctx, _cache) => {
|
|
|
6023
6173
|
(unref(registerSubTitle))
|
|
6024
6174
|
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
6025
6175
|
: createCommentVNode("v-if", true),
|
|
6026
|
-
createVNode(script$
|
|
6176
|
+
createVNode(script$q, {
|
|
6027
6177
|
class: "sh-login-form",
|
|
6028
6178
|
fields: unref(registrationFields),
|
|
6029
6179
|
"action-label": "Sign Up",
|
|
@@ -6070,7 +6220,7 @@ const ShFrontend = {
|
|
|
6070
6220
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6071
6221
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6072
6222
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6073
|
-
options.formTextInput ?? script$
|
|
6223
|
+
options.formTextInput ?? script$n;
|
|
6074
6224
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6075
6225
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6076
6226
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6103,7 +6253,7 @@ const ShFrontend = {
|
|
|
6103
6253
|
});
|
|
6104
6254
|
options.router.addRoute({
|
|
6105
6255
|
path: '/sh-departments/manage-permissions/:id',
|
|
6106
|
-
component: script$
|
|
6256
|
+
component: script$5
|
|
6107
6257
|
});
|
|
6108
6258
|
}
|
|
6109
6259
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6115,4 +6265,4 @@ const ShFrontend = {
|
|
|
6115
6265
|
}
|
|
6116
6266
|
};
|
|
6117
6267
|
|
|
6118
|
-
export { countries as Countries, script$
|
|
6268
|
+
export { countries as Countries, script$5 as ManagePermissions, script$j as ShAutoForm, script$e as ShCanvas, script$6 as ShCanvasBtn, script$c as ShConfirmAction, script$i as ShDropDownForm, script$8 as ShDynamicTabs, script$q as ShForm, ShFrontend, script$h as ShModal, script$7 as ShModalBtn, script$g as ShModalForm, script$f as ShModalFormAuto, script$t as ShPhone, script$4 as ShPopups, script$3 as ShRange, script$b as ShSilentAction, script$a as ShTable, script$9 as ShTabs, shApis, shRepo, ShStorage as shStorage, useUserStore };
|