@iankibetsh/shframework 1.9.1 → 1.9.3
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 +210 -257
- package/dist/library.mjs +195 -220
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -11,34 +11,14 @@ var _ = require('lodash');
|
|
|
11
11
|
var vueRouter = require('vue-router');
|
|
12
12
|
var pinia = require('pinia');
|
|
13
13
|
var bootstrap = require('bootstrap');
|
|
14
|
-
var shGql_js = require('@/lib/repo/graphql/shGql.js');
|
|
15
14
|
|
|
16
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
16
|
|
|
18
|
-
function _interopNamespace(e) {
|
|
19
|
-
if (e && e.__esModule) return e;
|
|
20
|
-
var n = Object.create(null);
|
|
21
|
-
if (e) {
|
|
22
|
-
Object.keys(e).forEach(function (k) {
|
|
23
|
-
if (k !== 'default') {
|
|
24
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
25
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return e[k]; }
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
n["default"] = e;
|
|
33
|
-
return Object.freeze(n);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
17
|
var Axios__default = /*#__PURE__*/_interopDefaultLegacy(Axios);
|
|
37
18
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
38
19
|
var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
|
|
39
20
|
var NProgress__default = /*#__PURE__*/_interopDefaultLegacy(NProgress);
|
|
40
21
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
41
|
-
var shGql_js__default = /*#__PURE__*/_interopDefaultLegacy(shGql_js);
|
|
42
22
|
|
|
43
23
|
function setItem (key, value) {
|
|
44
24
|
let toStore = value;
|
|
@@ -1908,7 +1888,7 @@ const countries = [
|
|
|
1908
1888
|
}
|
|
1909
1889
|
];
|
|
1910
1890
|
|
|
1911
|
-
var script$
|
|
1891
|
+
var script$u = {
|
|
1912
1892
|
name: 'PhoneInput',
|
|
1913
1893
|
props: ['modelValue', 'country_code'],
|
|
1914
1894
|
data () {
|
|
@@ -1979,18 +1959,18 @@ var script$w = {
|
|
|
1979
1959
|
};
|
|
1980
1960
|
|
|
1981
1961
|
const _hoisted_1$o = { class: "sh-phone mb-3" };
|
|
1982
|
-
const _hoisted_2$
|
|
1962
|
+
const _hoisted_2$e = {
|
|
1983
1963
|
key: 0,
|
|
1984
1964
|
style: {"display":"contents"}
|
|
1985
1965
|
};
|
|
1986
|
-
const _hoisted_3$
|
|
1987
|
-
const _hoisted_4$
|
|
1966
|
+
const _hoisted_3$d = ["src"];
|
|
1967
|
+
const _hoisted_4$d = ["value"];
|
|
1988
1968
|
|
|
1989
|
-
function render$
|
|
1969
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1990
1970
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
|
|
1991
1971
|
($data.selectedCountry)
|
|
1992
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
1993
|
-
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$
|
|
1972
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$e, [
|
|
1973
|
+
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
|
|
1994
1974
|
vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
|
|
1995
1975
|
]))
|
|
1996
1976
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2003,7 +1983,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2003
1983
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
2004
1984
|
value: country,
|
|
2005
1985
|
key: country.dialCode
|
|
2006
|
-
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1986
|
+
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
2007
1987
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2008
1988
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
2009
1989
|
[vue.vModelSelect, $data.selectedCountry]
|
|
@@ -2021,16 +2001,16 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2021
2001
|
]))
|
|
2022
2002
|
}
|
|
2023
2003
|
|
|
2024
|
-
script$
|
|
2025
|
-
script$
|
|
2004
|
+
script$u.render = render$3;
|
|
2005
|
+
script$u.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
2026
2006
|
|
|
2027
2007
|
const _hoisted_1$n = {
|
|
2028
2008
|
key: 0,
|
|
2029
2009
|
class: "dropdown sh-suggest"
|
|
2030
2010
|
};
|
|
2031
|
-
const _hoisted_2$
|
|
2032
|
-
const _hoisted_3$
|
|
2033
|
-
const _hoisted_4$
|
|
2011
|
+
const _hoisted_2$d = ["id"];
|
|
2012
|
+
const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
2013
|
+
const _hoisted_4$c = ["onClick"];
|
|
2034
2014
|
const _hoisted_5$a = ["id"];
|
|
2035
2015
|
const _hoisted_6$9 = ["id", "aria-labelledby"];
|
|
2036
2016
|
const _hoisted_7$7 = { key: 0 };
|
|
@@ -2045,7 +2025,7 @@ const _hoisted_10$5 = {
|
|
|
2045
2025
|
};
|
|
2046
2026
|
|
|
2047
2027
|
|
|
2048
|
-
var script$
|
|
2028
|
+
var script$t = {
|
|
2049
2029
|
__name: 'ShSuggest',
|
|
2050
2030
|
props: ['fillSelects','modelValue'],
|
|
2051
2031
|
emits: ['update:modelValue'],
|
|
@@ -2135,14 +2115,14 @@ return (_ctx, _cache) => {
|
|
|
2135
2115
|
}, [
|
|
2136
2116
|
vue.createElementVNode("div", null, [
|
|
2137
2117
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
|
|
2138
|
-
return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$
|
|
2118
|
+
return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$c, [
|
|
2139
2119
|
vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
|
|
2140
2120
|
vue.createElementVNode("button", {
|
|
2141
2121
|
onClick: $event => (removeSuggestion(sgt.id)),
|
|
2142
2122
|
type: "button",
|
|
2143
2123
|
class: "btn-close border-start border-1 ms-1",
|
|
2144
2124
|
"aria-label": "Close"
|
|
2145
|
-
}, null, 8 /* PROPS */, _hoisted_4$
|
|
2125
|
+
}, null, 8 /* PROPS */, _hoisted_4$c)
|
|
2146
2126
|
]))
|
|
2147
2127
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2148
2128
|
]),
|
|
@@ -2153,7 +2133,7 @@ return (_ctx, _cache) => {
|
|
|
2153
2133
|
onInput: filterData,
|
|
2154
2134
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2155
2135
|
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$a)
|
|
2156
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
2136
|
+
], 8 /* PROPS */, _hoisted_2$d),
|
|
2157
2137
|
vue.createElementVNode("ul", {
|
|
2158
2138
|
class: "dropdown-menu w-100",
|
|
2159
2139
|
id: 'dropwdown_section' + vue.unref(id),
|
|
@@ -2186,15 +2166,15 @@ return (_ctx, _cache) => {
|
|
|
2186
2166
|
|
|
2187
2167
|
};
|
|
2188
2168
|
|
|
2189
|
-
script$
|
|
2190
|
-
script$
|
|
2169
|
+
script$t.__scopeId = "data-v-71cc9569";
|
|
2170
|
+
script$t.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2191
2171
|
|
|
2192
|
-
var script$
|
|
2172
|
+
var script$s = {
|
|
2193
2173
|
name: 'ShForm',
|
|
2194
2174
|
components: {
|
|
2195
|
-
PhoneInput: script$
|
|
2196
|
-
ShSuggest: script$
|
|
2197
|
-
ShPhone: script$
|
|
2175
|
+
PhoneInput: script$u,
|
|
2176
|
+
ShSuggest: script$t,
|
|
2177
|
+
ShPhone: script$u
|
|
2198
2178
|
},
|
|
2199
2179
|
props: [
|
|
2200
2180
|
'action',
|
|
@@ -2517,16 +2497,16 @@ var script$u = {
|
|
|
2517
2497
|
};
|
|
2518
2498
|
|
|
2519
2499
|
const _hoisted_1$m = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
2520
|
-
const _hoisted_2$
|
|
2500
|
+
const _hoisted_2$c = {
|
|
2521
2501
|
ref: "ShAutoForm",
|
|
2522
2502
|
class: "sh-form"
|
|
2523
2503
|
};
|
|
2524
|
-
const _hoisted_3$
|
|
2504
|
+
const _hoisted_3$b = {
|
|
2525
2505
|
key: 0,
|
|
2526
2506
|
class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
|
|
2527
2507
|
role: "alert"
|
|
2528
2508
|
};
|
|
2529
|
-
const _hoisted_4$
|
|
2509
|
+
const _hoisted_4$b = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2530
2510
|
const _hoisted_5$9 = { key: 0 };
|
|
2531
2511
|
const _hoisted_6$8 = { key: 1 };
|
|
2532
2512
|
const _hoisted_7$6 = { class: "row" };
|
|
@@ -2572,18 +2552,18 @@ const _hoisted_24$1 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
|
2572
2552
|
"aria-hidden": "true"
|
|
2573
2553
|
}, null, -1 /* HOISTED */);
|
|
2574
2554
|
|
|
2575
|
-
function render$
|
|
2555
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2576
2556
|
const _component_phone_input = vue.resolveComponent("phone-input");
|
|
2577
2557
|
const _component_ShSuggest = vue.resolveComponent("ShSuggest");
|
|
2578
2558
|
|
|
2579
2559
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2580
2560
|
_hoisted_1$m,
|
|
2581
|
-
vue.createElementVNode("form", _hoisted_2$
|
|
2561
|
+
vue.createElementVNode("form", _hoisted_2$c, [
|
|
2582
2562
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2583
2563
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2584
2564
|
(_ctx.form_status == 3)
|
|
2585
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
2586
|
-
_hoisted_4$
|
|
2565
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
|
|
2566
|
+
_hoisted_4$b,
|
|
2587
2567
|
(_ctx.errorText)
|
|
2588
2568
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2589
2569
|
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
|
|
@@ -2783,10 +2763,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2783
2763
|
], 64 /* STABLE_FRAGMENT */))
|
|
2784
2764
|
}
|
|
2785
2765
|
|
|
2786
|
-
script$
|
|
2787
|
-
script$
|
|
2766
|
+
script$s.render = render$2;
|
|
2767
|
+
script$s.__file = "src/lib/components/ShForm.vue";
|
|
2788
2768
|
|
|
2789
|
-
var script$
|
|
2769
|
+
var script$r = {
|
|
2790
2770
|
__name: 'EmailInput',
|
|
2791
2771
|
props: ['modelValue','label'],
|
|
2792
2772
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2826,12 +2806,12 @@ return (_ctx, _cache) => {
|
|
|
2826
2806
|
|
|
2827
2807
|
};
|
|
2828
2808
|
|
|
2829
|
-
script$
|
|
2809
|
+
script$r.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2830
2810
|
|
|
2831
2811
|
const _hoisted_1$l = ["min", "max"];
|
|
2832
2812
|
|
|
2833
2813
|
|
|
2834
|
-
var script$
|
|
2814
|
+
var script$q = {
|
|
2835
2815
|
__name: 'NumberInput',
|
|
2836
2816
|
props: ['modelValue','label','min','max'],
|
|
2837
2817
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2873,9 +2853,9 @@ return (_ctx, _cache) => {
|
|
|
2873
2853
|
|
|
2874
2854
|
};
|
|
2875
2855
|
|
|
2876
|
-
script$
|
|
2856
|
+
script$q.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2877
2857
|
|
|
2878
|
-
var script$
|
|
2858
|
+
var script$p = {
|
|
2879
2859
|
__name: 'TextInput',
|
|
2880
2860
|
props: ['modelValue','label','isInvalid'],
|
|
2881
2861
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2917,9 +2897,9 @@ return (_ctx, _cache) => {
|
|
|
2917
2897
|
|
|
2918
2898
|
};
|
|
2919
2899
|
|
|
2920
|
-
script$
|
|
2900
|
+
script$p.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2921
2901
|
|
|
2922
|
-
var script$
|
|
2902
|
+
var script$o = {
|
|
2923
2903
|
__name: 'TextAreaInput',
|
|
2924
2904
|
props: ['modelValue','label'],
|
|
2925
2905
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2959,12 +2939,12 @@ return (_ctx, _cache) => {
|
|
|
2959
2939
|
|
|
2960
2940
|
};
|
|
2961
2941
|
|
|
2962
|
-
script$
|
|
2942
|
+
script$o.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2963
2943
|
|
|
2964
2944
|
const _hoisted_1$k = ["value"];
|
|
2965
2945
|
|
|
2966
2946
|
|
|
2967
|
-
var script$
|
|
2947
|
+
var script$n = {
|
|
2968
2948
|
__name: 'SelectInput',
|
|
2969
2949
|
props: ['modelValue','label','data','dataUrl'],
|
|
2970
2950
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3029,9 +3009,9 @@ return (_ctx, _cache) => {
|
|
|
3029
3009
|
|
|
3030
3010
|
};
|
|
3031
3011
|
|
|
3032
|
-
script$
|
|
3012
|
+
script$n.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3033
3013
|
|
|
3034
|
-
var script$
|
|
3014
|
+
var script$m = {
|
|
3035
3015
|
__name: 'PasswordInput',
|
|
3036
3016
|
props: ['modelValue','label'],
|
|
3037
3017
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3067,12 +3047,12 @@ return (_ctx, _cache) => {
|
|
|
3067
3047
|
|
|
3068
3048
|
};
|
|
3069
3049
|
|
|
3070
|
-
script$
|
|
3050
|
+
script$m.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3071
3051
|
|
|
3072
3052
|
const _hoisted_1$j = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3073
|
-
const _hoisted_2$
|
|
3074
|
-
const _hoisted_3$
|
|
3075
|
-
const _hoisted_4$
|
|
3053
|
+
const _hoisted_2$b = ["onUpdate:modelValue"];
|
|
3054
|
+
const _hoisted_3$a = ["innerHTML"];
|
|
3055
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
3076
3056
|
const _hoisted_5$8 = ["innerHTML"];
|
|
3077
3057
|
const _hoisted_6$7 = ["disabled"];
|
|
3078
3058
|
const _hoisted_7$5 = {
|
|
@@ -3084,7 +3064,7 @@ const _hoisted_7$5 = {
|
|
|
3084
3064
|
const _hoisted_8$4 = { key: 1 };
|
|
3085
3065
|
|
|
3086
3066
|
|
|
3087
|
-
var script$
|
|
3067
|
+
var script$l = {
|
|
3088
3068
|
__name: 'ShAutoForm',
|
|
3089
3069
|
props: [
|
|
3090
3070
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3117,13 +3097,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3117
3097
|
const defaultPhones = ['phone'];
|
|
3118
3098
|
const defaultEmails = ['email'];
|
|
3119
3099
|
const formComponents = vue.inject('formComponents');
|
|
3120
|
-
const TextComponent = formComponents.text ?? script$
|
|
3121
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3122
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3123
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3124
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3125
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3126
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3100
|
+
const TextComponent = formComponents.text ?? script$p;
|
|
3101
|
+
const TextAreaComponent = formComponents.textArea ?? script$o;
|
|
3102
|
+
const EmailComponent = formComponents.email ?? script$r;
|
|
3103
|
+
const PhoneComponent = formComponents.phone ?? script$u;
|
|
3104
|
+
const NumberComponent = formComponents.number ?? script$q;
|
|
3105
|
+
const SelectComponent = formComponents.select ?? script$n;
|
|
3106
|
+
const PasswordComponent = formComponents.password ?? script$m;
|
|
3127
3107
|
if(props.customComponents && props.customComponents[field]) {
|
|
3128
3108
|
return props.customComponents[field]
|
|
3129
3109
|
}
|
|
@@ -3135,16 +3115,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3135
3115
|
}
|
|
3136
3116
|
else
|
|
3137
3117
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3138
|
-
return formComponents.textArea ?? script$
|
|
3118
|
+
return formComponents.textArea ?? script$o
|
|
3139
3119
|
} else
|
|
3140
3120
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3141
|
-
return formComponents.email ?? script$
|
|
3121
|
+
return formComponents.email ?? script$r
|
|
3142
3122
|
} else
|
|
3143
3123
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3144
|
-
return formComponents.phone ?? script$
|
|
3124
|
+
return formComponents.phone ?? script$u
|
|
3145
3125
|
} else
|
|
3146
3126
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3147
|
-
return formComponents.number ?? script$
|
|
3127
|
+
return formComponents.number ?? script$q
|
|
3148
3128
|
}
|
|
3149
3129
|
// else
|
|
3150
3130
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3153,7 +3133,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3153
3133
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3154
3134
|
// return formComponents.date ?? DateInput
|
|
3155
3135
|
// }
|
|
3156
|
-
return formComponents.text ?? script$
|
|
3136
|
+
return formComponents.text ?? script$p
|
|
3157
3137
|
};
|
|
3158
3138
|
const shFormElementClasses = vue.ref(null);
|
|
3159
3139
|
shFormElementClasses.value = vue.inject('shFormElementClasses');
|
|
@@ -3308,7 +3288,7 @@ return (_ctx, _cache) => {
|
|
|
3308
3288
|
key: 0,
|
|
3309
3289
|
type: "hidden",
|
|
3310
3290
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3311
|
-
}, null, 8 /* PROPS */, _hoisted_2$
|
|
3291
|
+
}, null, 8 /* PROPS */, _hoisted_2$b)), [
|
|
3312
3292
|
[vue.vModelText, formFields.value[index].value]
|
|
3313
3293
|
])
|
|
3314
3294
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -3317,7 +3297,7 @@ return (_ctx, _cache) => {
|
|
|
3317
3297
|
key: 0,
|
|
3318
3298
|
class: vue.normalizeClass(getElementClass('formLabel')),
|
|
3319
3299
|
innerHTML: field.label
|
|
3320
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_3$
|
|
3300
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
|
|
3321
3301
|
: vue.createCommentVNode("v-if", true),
|
|
3322
3302
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
|
|
3323
3303
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
@@ -3331,7 +3311,7 @@ return (_ctx, _cache) => {
|
|
|
3331
3311
|
key: 1,
|
|
3332
3312
|
class: vue.normalizeClass(getElementClass('formLabel')),
|
|
3333
3313
|
innerHTML: field.label
|
|
3334
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3314
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3335
3315
|
: vue.createCommentVNode("v-if", true),
|
|
3336
3316
|
(field.helper)
|
|
3337
3317
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -3374,12 +3354,12 @@ return (_ctx, _cache) => {
|
|
|
3374
3354
|
|
|
3375
3355
|
};
|
|
3376
3356
|
|
|
3377
|
-
script$
|
|
3357
|
+
script$l.__file = "src/lib/components/ShAutoForm.vue";
|
|
3378
3358
|
|
|
3379
3359
|
const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3380
|
-
const _hoisted_2$
|
|
3360
|
+
const _hoisted_2$a = { class: "dropdown" };
|
|
3381
3361
|
|
|
3382
|
-
var script$
|
|
3362
|
+
var script$k = {
|
|
3383
3363
|
__name: 'ShDropDownForm',
|
|
3384
3364
|
props: ['action',
|
|
3385
3365
|
'classes',
|
|
@@ -3410,7 +3390,7 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3410
3390
|
return (_ctx, _cache) => {
|
|
3411
3391
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3412
3392
|
_hoisted_1$i,
|
|
3413
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3393
|
+
vue.createElementVNode("div", _hoisted_2$a, [
|
|
3414
3394
|
vue.createElementVNode("a", {
|
|
3415
3395
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
3416
3396
|
href: "#",
|
|
@@ -3426,7 +3406,7 @@ return (_ctx, _cache) => {
|
|
|
3426
3406
|
class: "dropdown-menu px-2 py-1",
|
|
3427
3407
|
"aria-labelledby": dropdownId
|
|
3428
3408
|
}, [
|
|
3429
|
-
vue.createVNode(script$
|
|
3409
|
+
vue.createVNode(script$s, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3430
3410
|
])
|
|
3431
3411
|
])
|
|
3432
3412
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3435,12 +3415,12 @@ return (_ctx, _cache) => {
|
|
|
3435
3415
|
|
|
3436
3416
|
};
|
|
3437
3417
|
|
|
3438
|
-
script$
|
|
3418
|
+
script$k.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3439
3419
|
|
|
3440
3420
|
const _hoisted_1$h = ["id"];
|
|
3441
|
-
const _hoisted_2$
|
|
3442
|
-
const _hoisted_3$
|
|
3443
|
-
const _hoisted_4$
|
|
3421
|
+
const _hoisted_2$9 = { class: "modal-content" };
|
|
3422
|
+
const _hoisted_3$9 = { class: "modal-header" };
|
|
3423
|
+
const _hoisted_4$9 = { class: "modal-title" };
|
|
3444
3424
|
const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
3445
3425
|
class: "btn btn-danger btn-sm",
|
|
3446
3426
|
"data-bs-dismiss": "modal",
|
|
@@ -3449,7 +3429,7 @@ const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
|
3449
3429
|
const _hoisted_6$6 = { class: "modal-body" };
|
|
3450
3430
|
const _hoisted_7$4 = { class: "section" };
|
|
3451
3431
|
|
|
3452
|
-
var script$
|
|
3432
|
+
var script$j = {
|
|
3453
3433
|
__name: 'ShModal',
|
|
3454
3434
|
props: {
|
|
3455
3435
|
modalId: {
|
|
@@ -3486,9 +3466,9 @@ return (_ctx, _cache) => {
|
|
|
3486
3466
|
vue.createElementVNode("div", {
|
|
3487
3467
|
class: vue.normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
|
|
3488
3468
|
}, [
|
|
3489
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3490
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3491
|
-
vue.createElementVNode("h3", _hoisted_4$
|
|
3469
|
+
vue.createElementVNode("div", _hoisted_2$9, [
|
|
3470
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
3471
|
+
vue.createElementVNode("h3", _hoisted_4$9, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
|
|
3492
3472
|
_hoisted_5$7
|
|
3493
3473
|
]),
|
|
3494
3474
|
vue.createElementVNode("div", _hoisted_6$6, [
|
|
@@ -3504,11 +3484,11 @@ return (_ctx, _cache) => {
|
|
|
3504
3484
|
|
|
3505
3485
|
};
|
|
3506
3486
|
|
|
3507
|
-
script$
|
|
3487
|
+
script$j.__file = "src/lib/components/ShModal.vue";
|
|
3508
3488
|
|
|
3509
3489
|
const _hoisted_1$g = ["href"];
|
|
3510
3490
|
|
|
3511
|
-
var script$
|
|
3491
|
+
var script$i = {
|
|
3512
3492
|
__name: 'ShModalForm',
|
|
3513
3493
|
props: ['action',
|
|
3514
3494
|
'classes',
|
|
@@ -3548,12 +3528,12 @@ return (_ctx, _cache) => {
|
|
|
3548
3528
|
}, [
|
|
3549
3529
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3550
3530
|
], 10 /* CLASS, PROPS */, _hoisted_1$g),
|
|
3551
|
-
vue.createVNode(script$
|
|
3531
|
+
vue.createVNode(script$j, {
|
|
3552
3532
|
"modal-id": modalId,
|
|
3553
3533
|
"modal-title": __props.modalTitle
|
|
3554
3534
|
}, {
|
|
3555
3535
|
default: vue.withCtx(() => [
|
|
3556
|
-
vue.createVNode(script$
|
|
3536
|
+
vue.createVNode(script$s, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3557
3537
|
]),
|
|
3558
3538
|
_: 1 /* STABLE */
|
|
3559
3539
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3563,11 +3543,11 @@ return (_ctx, _cache) => {
|
|
|
3563
3543
|
|
|
3564
3544
|
};
|
|
3565
3545
|
|
|
3566
|
-
script$
|
|
3546
|
+
script$i.__file = "src/lib/components/ShModalForm.vue";
|
|
3567
3547
|
|
|
3568
3548
|
const _hoisted_1$f = ["href"];
|
|
3569
3549
|
|
|
3570
|
-
var script$
|
|
3550
|
+
var script$h = {
|
|
3571
3551
|
__name: 'ShModalFormAuto',
|
|
3572
3552
|
props: ['action',
|
|
3573
3553
|
'classes',
|
|
@@ -3608,12 +3588,12 @@ return (_ctx, _cache) => {
|
|
|
3608
3588
|
}, [
|
|
3609
3589
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3610
3590
|
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3611
|
-
vue.createVNode(script$
|
|
3591
|
+
vue.createVNode(script$j, {
|
|
3612
3592
|
"modal-id": modalId,
|
|
3613
3593
|
"modal-title": __props.modalTitle
|
|
3614
3594
|
}, {
|
|
3615
3595
|
default: vue.withCtx(() => [
|
|
3616
|
-
vue.createVNode(script$
|
|
3596
|
+
vue.createVNode(script$l, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3617
3597
|
]),
|
|
3618
3598
|
_: 1 /* STABLE */
|
|
3619
3599
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3623,17 +3603,17 @@ return (_ctx, _cache) => {
|
|
|
3623
3603
|
|
|
3624
3604
|
};
|
|
3625
3605
|
|
|
3626
|
-
script$
|
|
3606
|
+
script$h.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3627
3607
|
|
|
3628
3608
|
const _hoisted_1$e = ["id"];
|
|
3629
|
-
const _hoisted_2$
|
|
3630
|
-
const _hoisted_3$
|
|
3609
|
+
const _hoisted_2$8 = { class: "offcanvas-header" };
|
|
3610
|
+
const _hoisted_3$8 = {
|
|
3631
3611
|
class: "offcanvas-title",
|
|
3632
3612
|
id: "offcanvasScrollingLabel"
|
|
3633
3613
|
};
|
|
3634
|
-
const _hoisted_4$
|
|
3614
|
+
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
3635
3615
|
|
|
3636
|
-
var script$
|
|
3616
|
+
var script$g = {
|
|
3637
3617
|
__name: 'ShCanvas',
|
|
3638
3618
|
props: {
|
|
3639
3619
|
canvasId: {
|
|
@@ -3678,8 +3658,8 @@ return (_ctx, _cache) => {
|
|
|
3678
3658
|
id: __props.canvasId,
|
|
3679
3659
|
"aria-labelledby": "offcanvasScrollingLabel"
|
|
3680
3660
|
}, [
|
|
3681
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3682
|
-
vue.createElementVNode("h5", _hoisted_3$
|
|
3661
|
+
vue.createElementVNode("div", _hoisted_2$8, [
|
|
3662
|
+
vue.createElementVNode("h5", _hoisted_3$8, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
|
|
3683
3663
|
vue.createElementVNode("button", {
|
|
3684
3664
|
type: "button",
|
|
3685
3665
|
ref: "closecanvas",
|
|
@@ -3689,7 +3669,7 @@ return (_ctx, _cache) => {
|
|
|
3689
3669
|
"aria-label": "Close"
|
|
3690
3670
|
}, null, 512 /* NEED_PATCH */)
|
|
3691
3671
|
]),
|
|
3692
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
3672
|
+
vue.createElementVNode("div", _hoisted_4$8, [
|
|
3693
3673
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3694
3674
|
])
|
|
3695
3675
|
], 10 /* CLASS, PROPS */, _hoisted_1$e))
|
|
@@ -3698,9 +3678,9 @@ return (_ctx, _cache) => {
|
|
|
3698
3678
|
|
|
3699
3679
|
};
|
|
3700
3680
|
|
|
3701
|
-
script$
|
|
3681
|
+
script$g.__file = "src/lib/components/ShCanvas.vue";
|
|
3702
3682
|
|
|
3703
|
-
var script$
|
|
3683
|
+
var script$f = {
|
|
3704
3684
|
name: 'Pagination',
|
|
3705
3685
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3706
3686
|
data () {
|
|
@@ -3772,11 +3752,11 @@ var script$h = {
|
|
|
3772
3752
|
};
|
|
3773
3753
|
|
|
3774
3754
|
const _hoisted_1$d = { key: 0 };
|
|
3775
|
-
const _hoisted_2$
|
|
3776
|
-
const _hoisted_3$
|
|
3777
|
-
const _hoisted_4$
|
|
3755
|
+
const _hoisted_2$7 = { class: "record_count_body mb-3" };
|
|
3756
|
+
const _hoisted_3$7 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
3757
|
+
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);
|
|
3778
3758
|
const _hoisted_9$4 = [
|
|
3779
|
-
_hoisted_4$
|
|
3759
|
+
_hoisted_4$7
|
|
3780
3760
|
];
|
|
3781
3761
|
const _hoisted_10$3 = { class: "record_counts" };
|
|
3782
3762
|
const _hoisted_11$2 = {
|
|
@@ -3819,11 +3799,11 @@ const _hoisted_23$1 = {
|
|
|
3819
3799
|
class: "spinner-border"
|
|
3820
3800
|
};
|
|
3821
3801
|
|
|
3822
|
-
function render$
|
|
3802
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3823
3803
|
return ($props.paginationStyle !== 'loadMore')
|
|
3824
3804
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
|
|
3825
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3826
|
-
_hoisted_3$
|
|
3805
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
3806
|
+
_hoisted_3$7,
|
|
3827
3807
|
vue.createTextVNode(" "),
|
|
3828
3808
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
3829
3809
|
class: "select_per_page",
|
|
@@ -3896,8 +3876,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3896
3876
|
]))
|
|
3897
3877
|
}
|
|
3898
3878
|
|
|
3899
|
-
script$
|
|
3900
|
-
script$
|
|
3879
|
+
script$f.render = render$1;
|
|
3880
|
+
script$f.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3901
3881
|
|
|
3902
3882
|
const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3903
3883
|
class: "spinner-border spinner-border-sm me-1",
|
|
@@ -3906,7 +3886,7 @@ const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("span", {
|
|
|
3906
3886
|
}, null, -1 /* HOISTED */);
|
|
3907
3887
|
|
|
3908
3888
|
|
|
3909
|
-
var script$
|
|
3889
|
+
var script$e = {
|
|
3910
3890
|
__name: 'ShConfirmAction',
|
|
3911
3891
|
props: {
|
|
3912
3892
|
data: Object,
|
|
@@ -3992,7 +3972,7 @@ return (_ctx, _cache) => {
|
|
|
3992
3972
|
|
|
3993
3973
|
};
|
|
3994
3974
|
|
|
3995
|
-
script$
|
|
3975
|
+
script$e.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3996
3976
|
|
|
3997
3977
|
const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3998
3978
|
class: "spinner-border spinner-border-sm me-1",
|
|
@@ -4000,7 +3980,7 @@ const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
|
|
|
4000
3980
|
"aria-hidden": "true"
|
|
4001
3981
|
}, null, -1 /* HOISTED */);
|
|
4002
3982
|
|
|
4003
|
-
var script$
|
|
3983
|
+
var script$d = {
|
|
4004
3984
|
__name: 'ShSilentAction',
|
|
4005
3985
|
props: {
|
|
4006
3986
|
data: Object,
|
|
@@ -4088,9 +4068,9 @@ return (_ctx, _cache) => {
|
|
|
4088
4068
|
|
|
4089
4069
|
};
|
|
4090
4070
|
|
|
4091
|
-
script$
|
|
4071
|
+
script$d.__file = "src/lib/components/ShSilentAction.vue";
|
|
4092
4072
|
|
|
4093
|
-
var script$
|
|
4073
|
+
var script$c = {
|
|
4094
4074
|
name: 'sh-table',
|
|
4095
4075
|
props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4096
4076
|
inject: ['channel'],
|
|
@@ -4345,10 +4325,10 @@ var script$e = {
|
|
|
4345
4325
|
this.reloadData();
|
|
4346
4326
|
},
|
|
4347
4327
|
components: {
|
|
4348
|
-
ShSilentAction: script$
|
|
4349
|
-
ShConfirmAction: script$
|
|
4350
|
-
ShCanvas: script$
|
|
4351
|
-
pagination: script$
|
|
4328
|
+
ShSilentAction: script$d,
|
|
4329
|
+
ShConfirmAction: script$e,
|
|
4330
|
+
ShCanvas: script$g,
|
|
4331
|
+
pagination: script$f
|
|
4352
4332
|
},
|
|
4353
4333
|
computed: {
|
|
4354
4334
|
windowWidth: function () {
|
|
@@ -4367,12 +4347,12 @@ var script$e = {
|
|
|
4367
4347
|
};
|
|
4368
4348
|
|
|
4369
4349
|
const _hoisted_1$a = { class: "auto-table mt-2" };
|
|
4370
|
-
const _hoisted_2$
|
|
4350
|
+
const _hoisted_2$6 = {
|
|
4371
4351
|
key: 0,
|
|
4372
4352
|
class: "col-md-4 mb-2"
|
|
4373
4353
|
};
|
|
4374
|
-
const _hoisted_3$
|
|
4375
|
-
const _hoisted_4$
|
|
4354
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4355
|
+
const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
4376
4356
|
const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
4377
4357
|
class: "spinner-border spinner-border-sm",
|
|
4378
4358
|
role: "status",
|
|
@@ -4522,7 +4502,7 @@ const _hoisted_63 = { key: 0 };
|
|
|
4522
4502
|
const _hoisted_64 = ["href"];
|
|
4523
4503
|
const _hoisted_65 = ["title", "onClick"];
|
|
4524
4504
|
|
|
4525
|
-
function render
|
|
4505
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4526
4506
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
4527
4507
|
const _component_sh_confirm_action = vue.resolveComponent("sh-confirm-action");
|
|
4528
4508
|
const _component_sh_silent_action = vue.resolveComponent("sh-silent-action");
|
|
@@ -4531,7 +4511,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4531
4511
|
|
|
4532
4512
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
4533
4513
|
($props.hasDownload)
|
|
4534
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
4514
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
4535
4515
|
vue.createElementVNode("button", {
|
|
4536
4516
|
disabled: $data.downloading,
|
|
4537
4517
|
class: "btn btn-warning btn-sm",
|
|
@@ -4539,14 +4519,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4539
4519
|
}, [
|
|
4540
4520
|
(!$data.downloading)
|
|
4541
4521
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
4542
|
-
_hoisted_4$
|
|
4522
|
+
_hoisted_4$6,
|
|
4543
4523
|
vue.createTextVNode(" Export ")
|
|
4544
4524
|
], 64 /* STABLE_FRAGMENT */))
|
|
4545
4525
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
4546
4526
|
_hoisted_5$6,
|
|
4547
4527
|
_hoisted_6$5
|
|
4548
4528
|
], 64 /* STABLE_FRAGMENT */))
|
|
4549
|
-
], 8 /* PROPS */, _hoisted_3$
|
|
4529
|
+
], 8 /* PROPS */, _hoisted_3$6)
|
|
4550
4530
|
]))
|
|
4551
4531
|
: vue.createCommentVNode("v-if", true),
|
|
4552
4532
|
(!$props.hideSearch)
|
|
@@ -4982,10 +4962,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4982
4962
|
]))
|
|
4983
4963
|
}
|
|
4984
4964
|
|
|
4985
|
-
script$
|
|
4986
|
-
script$
|
|
4965
|
+
script$c.render = render;
|
|
4966
|
+
script$c.__file = "src/lib/components/ShTable.vue";
|
|
4987
4967
|
|
|
4988
|
-
var script$
|
|
4968
|
+
var script$b = {
|
|
4989
4969
|
__name: 'ShTabs',
|
|
4990
4970
|
props: {
|
|
4991
4971
|
tabs: {
|
|
@@ -5130,22 +5110,22 @@ return (_ctx, _cache) => {
|
|
|
5130
5110
|
|
|
5131
5111
|
};
|
|
5132
5112
|
|
|
5133
|
-
script$
|
|
5113
|
+
script$b.__file = "src/lib/components/ShTabs.vue";
|
|
5134
5114
|
|
|
5135
5115
|
const _hoisted_1$9 = {
|
|
5136
5116
|
class: "nav nav-tabs",
|
|
5137
5117
|
role: "tablist"
|
|
5138
5118
|
};
|
|
5139
|
-
const _hoisted_2$
|
|
5119
|
+
const _hoisted_2$5 = {
|
|
5140
5120
|
class: "nav-item",
|
|
5141
5121
|
role: "presentation"
|
|
5142
5122
|
};
|
|
5143
|
-
const _hoisted_3$
|
|
5144
|
-
const _hoisted_4$
|
|
5123
|
+
const _hoisted_3$5 = ["onClick"];
|
|
5124
|
+
const _hoisted_4$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
|
|
5145
5125
|
const _hoisted_5$5 = { class: "sh_tab_count" };
|
|
5146
5126
|
const _hoisted_6$4 = { class: "tab-content" };
|
|
5147
5127
|
|
|
5148
|
-
var script$
|
|
5128
|
+
var script$a = {
|
|
5149
5129
|
__name: 'ShDynamicTabs',
|
|
5150
5130
|
props: ['tabs','data'],
|
|
5151
5131
|
setup(__props) {
|
|
@@ -5172,7 +5152,7 @@ return (_ctx, _cache) => {
|
|
|
5172
5152
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5173
5153
|
vue.createElementVNode("ul", _hoisted_1$9, [
|
|
5174
5154
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
|
|
5175
|
-
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$
|
|
5155
|
+
return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$5, [
|
|
5176
5156
|
vue.createElementVNode("button", {
|
|
5177
5157
|
onClick: $event => (setTab(tab)),
|
|
5178
5158
|
class: vue.normalizeClass(["nav-link", vue.unref(currentTab) === tab ? 'active':''])
|
|
@@ -5180,11 +5160,11 @@ return (_ctx, _cache) => {
|
|
|
5180
5160
|
vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
|
|
5181
5161
|
(tab.count || tab.tabCount)
|
|
5182
5162
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
5183
|
-
_hoisted_4$
|
|
5163
|
+
_hoisted_4$5,
|
|
5184
5164
|
vue.createElementVNode("sup", _hoisted_5$5, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
|
|
5185
5165
|
], 64 /* STABLE_FRAGMENT */))
|
|
5186
5166
|
: vue.createCommentVNode("v-if", true)
|
|
5187
|
-
], 10 /* CLASS, PROPS */, _hoisted_3$
|
|
5167
|
+
], 10 /* CLASS, PROPS */, _hoisted_3$5)
|
|
5188
5168
|
]))
|
|
5189
5169
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
5190
5170
|
]),
|
|
@@ -5199,12 +5179,12 @@ return (_ctx, _cache) => {
|
|
|
5199
5179
|
|
|
5200
5180
|
};
|
|
5201
5181
|
|
|
5202
|
-
script$
|
|
5182
|
+
script$a.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5203
5183
|
|
|
5204
5184
|
const _hoisted_1$8 = ["href"];
|
|
5205
5185
|
|
|
5206
5186
|
|
|
5207
|
-
var script$
|
|
5187
|
+
var script$9 = {
|
|
5208
5188
|
__name: 'ShModalBtn',
|
|
5209
5189
|
props: {
|
|
5210
5190
|
modalId: {
|
|
@@ -5227,12 +5207,12 @@ return (_ctx, _cache) => {
|
|
|
5227
5207
|
|
|
5228
5208
|
};
|
|
5229
5209
|
|
|
5230
|
-
script$
|
|
5210
|
+
script$9.__file = "src/lib/components/ShModalBtn.vue";
|
|
5231
5211
|
|
|
5232
5212
|
const _hoisted_1$7 = ["href"];
|
|
5233
5213
|
|
|
5234
5214
|
|
|
5235
|
-
var script$
|
|
5215
|
+
var script$8 = {
|
|
5236
5216
|
__name: 'ShCanvasBtn',
|
|
5237
5217
|
props: {
|
|
5238
5218
|
canvasId: {
|
|
@@ -5256,7 +5236,7 @@ return (_ctx, _cache) => {
|
|
|
5256
5236
|
|
|
5257
5237
|
};
|
|
5258
5238
|
|
|
5259
|
-
script$
|
|
5239
|
+
script$8.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5260
5240
|
|
|
5261
5241
|
const useUserStore = pinia.defineStore('user-store', {
|
|
5262
5242
|
state: () => ({
|
|
@@ -5356,17 +5336,17 @@ const useUserStore = pinia.defineStore('user-store', {
|
|
|
5356
5336
|
|
|
5357
5337
|
const _withScopeId$1 = n => (vue.pushScopeId("data-v-0d4fa0ac"),n=n(),vue.popScopeId(),n);
|
|
5358
5338
|
const _hoisted_1$6 = { class: "row permissions-main d-flex" };
|
|
5359
|
-
const _hoisted_2$
|
|
5339
|
+
const _hoisted_2$4 = {
|
|
5360
5340
|
id: "permissions-nav",
|
|
5361
5341
|
class: "col-md-3 d-flex align-items-center py-4"
|
|
5362
5342
|
};
|
|
5363
|
-
const _hoisted_3$
|
|
5343
|
+
const _hoisted_3$4 = {
|
|
5364
5344
|
key: 0,
|
|
5365
5345
|
class: "mx-auto"
|
|
5366
5346
|
};
|
|
5367
|
-
const _hoisted_4$
|
|
5347
|
+
const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
|
|
5368
5348
|
const _hoisted_5$4 = [
|
|
5369
|
-
_hoisted_4$
|
|
5349
|
+
_hoisted_4$4
|
|
5370
5350
|
];
|
|
5371
5351
|
const _hoisted_6$3 = {
|
|
5372
5352
|
key: 1,
|
|
@@ -5395,7 +5375,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5395
5375
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5396
5376
|
|
|
5397
5377
|
|
|
5398
|
-
var script$
|
|
5378
|
+
var script$7 = {
|
|
5399
5379
|
__name: 'ManagePermissions',
|
|
5400
5380
|
emits: ['success'],
|
|
5401
5381
|
setup(__props, { emit }) {
|
|
@@ -5500,9 +5480,9 @@ const getPermissionStyle = permission => {
|
|
|
5500
5480
|
|
|
5501
5481
|
return (_ctx, _cache) => {
|
|
5502
5482
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
5503
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
5483
|
+
vue.createElementVNode("div", _hoisted_2$4, [
|
|
5504
5484
|
(loadingModules.value)
|
|
5505
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5485
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, _hoisted_5$4))
|
|
5506
5486
|
: (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$3, [
|
|
5507
5487
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
|
|
5508
5488
|
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
@@ -5553,7 +5533,7 @@ return (_ctx, _cache) => {
|
|
|
5553
5533
|
(permissionsChanged.value)
|
|
5554
5534
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
5555
5535
|
vue.createElementVNode("div", _hoisted_17, [
|
|
5556
|
-
vue.createVNode(script$
|
|
5536
|
+
vue.createVNode(script$d, {
|
|
5557
5537
|
onSuccess: permissionsUpdated,
|
|
5558
5538
|
url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
|
|
5559
5539
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5577,36 +5557,11 @@ return (_ctx, _cache) => {
|
|
|
5577
5557
|
|
|
5578
5558
|
};
|
|
5579
5559
|
|
|
5580
|
-
script$
|
|
5581
|
-
script$
|
|
5582
|
-
|
|
5583
|
-
const _hoisted_1$5 = { class: "alert alert-info" };
|
|
5584
|
-
const _hoisted_2$4 = /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-border" }, null, -1 /* HOISTED */);
|
|
5585
|
-
const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("span", null, "Loading", -1 /* HOISTED */);
|
|
5586
|
-
const _hoisted_4$4 = [
|
|
5587
|
-
_hoisted_2$4,
|
|
5588
|
-
_hoisted_3$4
|
|
5589
|
-
];
|
|
5590
|
-
|
|
5591
|
-
function render$1(_ctx, _cache) {
|
|
5592
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, _hoisted_4$4))
|
|
5593
|
-
}
|
|
5594
|
-
|
|
5595
|
-
const script$8 = {};
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
script$8.render = render$1;
|
|
5599
|
-
script$8.__file = "src/lib/components/popups/etc/PopupLoading.vue";
|
|
5600
|
-
|
|
5601
|
-
function render(_ctx, _cache) {
|
|
5602
|
-
return (vue.openBlock(), vue.createElementBlock("h5", null, "Error loading popup"))
|
|
5603
|
-
}
|
|
5604
|
-
|
|
5605
|
-
const script$7 = {};
|
|
5560
|
+
script$7.__scopeId = "data-v-0d4fa0ac";
|
|
5561
|
+
script$7.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5606
5562
|
|
|
5563
|
+
const _hoisted_1$5 = ["href"];
|
|
5607
5564
|
|
|
5608
|
-
script$7.render = render;
|
|
5609
|
-
script$7.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
|
|
5610
5565
|
|
|
5611
5566
|
var script$6 = {
|
|
5612
5567
|
__name: 'Popups',
|
|
@@ -5616,18 +5571,19 @@ const route = vueRouter.useRoute();
|
|
|
5616
5571
|
const popUp = vue.ref(route.meta.popUp);
|
|
5617
5572
|
const modalId = ___default["default"].uniqueId('modal_');
|
|
5618
5573
|
const canvasId = ___default["default"].uniqueId('canvas_');
|
|
5619
|
-
|
|
5574
|
+
const componentView = vue.ref(null);
|
|
5620
5575
|
vue.ref(null);
|
|
5621
5576
|
const router = vueRouter.useRouter();
|
|
5622
5577
|
const position = vue.ref(null);
|
|
5623
5578
|
const size = vue.ref(null);
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
popUp.value = pop;
|
|
5627
|
-
position.value = route.query.position ?? route.query.side;
|
|
5628
|
-
size.value = route.query.size;
|
|
5579
|
+
vue.watch(() => route.meta, meta => {
|
|
5580
|
+
popUp.value = meta.popUp ?? meta.popup;
|
|
5629
5581
|
if (popUp.value) {
|
|
5630
|
-
|
|
5582
|
+
// popups.push(meta)
|
|
5583
|
+
// !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
|
|
5584
|
+
position.value = meta.position ?? meta.side;
|
|
5585
|
+
size.value = meta.size;
|
|
5586
|
+
componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5631
5587
|
setTimeout(() => {
|
|
5632
5588
|
initPopup();
|
|
5633
5589
|
}, 100);
|
|
@@ -5638,24 +5594,6 @@ vue.watch(() => route.query.popup, pop => {
|
|
|
5638
5594
|
}, 100);
|
|
5639
5595
|
}
|
|
5640
5596
|
});
|
|
5641
|
-
const loadPopupComponent = ()=>{
|
|
5642
|
-
const component = route.query.comp || '';
|
|
5643
|
-
PopupComponent.value = vue.defineAsyncComponent({
|
|
5644
|
-
// the loader function
|
|
5645
|
-
loader: () => (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(/* @vite-ignore */ `/src/views/popups/${component}Popup.vue`),
|
|
5646
|
-
|
|
5647
|
-
// A component to use while the async component is loading
|
|
5648
|
-
loadingComponent: script$8,
|
|
5649
|
-
// Delay before showing the loading component. Default: 200ms.
|
|
5650
|
-
delay: 200,
|
|
5651
|
-
|
|
5652
|
-
// A component to use if the load fails
|
|
5653
|
-
errorComponent: script$7,
|
|
5654
|
-
// The error component will be displayed if a timeout is
|
|
5655
|
-
// provided and exceeded. Default: Infinity.
|
|
5656
|
-
timeout: 3000
|
|
5657
|
-
});
|
|
5658
|
-
};
|
|
5659
5597
|
const closeOrphanedBackdrops = () => {
|
|
5660
5598
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5661
5599
|
if (offCanvasBackdrop) {
|
|
@@ -5690,37 +5628,42 @@ const initPopup = () => {
|
|
|
5690
5628
|
};
|
|
5691
5629
|
const goBack = () => {
|
|
5692
5630
|
if (route.matched.length) {
|
|
5693
|
-
let backUrl = route.path;
|
|
5694
|
-
|
|
5695
|
-
|
|
5631
|
+
let backUrl = route.matched[route.matched.length - 2].path;
|
|
5632
|
+
const params = route.params;
|
|
5633
|
+
Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]));
|
|
5696
5634
|
router.push(backUrl);
|
|
5697
5635
|
}
|
|
5698
5636
|
};
|
|
5699
5637
|
|
|
5700
5638
|
return (_ctx, _cache) => {
|
|
5701
5639
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5640
|
+
vue.createElementVNode("a", {
|
|
5641
|
+
"data-bs-toggle": "offcanvas",
|
|
5642
|
+
href: '#' + vue.unref(canvasId),
|
|
5643
|
+
shallowRef: "canvasButton",
|
|
5644
|
+
class: "d-none"
|
|
5645
|
+
}, "Open Modal", 8 /* PROPS */, _hoisted_1$5),
|
|
5702
5646
|
(popUp.value === 'modal')
|
|
5703
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5647
|
+
? (vue.openBlock(), vue.createBlock(script$j, {
|
|
5704
5648
|
key: 0,
|
|
5705
5649
|
"modal-id": vue.unref(modalId),
|
|
5706
5650
|
"modal-size": size.value
|
|
5707
5651
|
}, {
|
|
5708
5652
|
default: vue.withCtx(() => [
|
|
5709
|
-
vue.
|
|
5653
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
5710
5654
|
]),
|
|
5711
5655
|
_: 1 /* STABLE */
|
|
5712
5656
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5713
5657
|
: vue.createCommentVNode("v-if", true),
|
|
5714
5658
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5715
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5659
|
+
? (vue.openBlock(), vue.createBlock(script$g, {
|
|
5716
5660
|
key: 1,
|
|
5717
5661
|
"canvas-id": vue.unref(canvasId),
|
|
5718
5662
|
"canvas-size": size.value,
|
|
5719
5663
|
position: position.value
|
|
5720
5664
|
}, {
|
|
5721
5665
|
default: vue.withCtx(() => [
|
|
5722
|
-
vue.
|
|
5723
|
-
vue.createVNode(vue.unref(AsyncComp))
|
|
5666
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
5724
5667
|
]),
|
|
5725
5668
|
_: 1 /* STABLE */
|
|
5726
5669
|
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
@@ -5817,7 +5760,7 @@ return (_ctx, _cache) => {
|
|
|
5817
5760
|
class: "d-none"
|
|
5818
5761
|
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5819
5762
|
(popUp.value === 'modal')
|
|
5820
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5763
|
+
? (vue.openBlock(), vue.createBlock(script$j, {
|
|
5821
5764
|
key: 0,
|
|
5822
5765
|
"modal-id": vue.unref(modalId),
|
|
5823
5766
|
"modal-size": size.value
|
|
@@ -5829,7 +5772,7 @@ return (_ctx, _cache) => {
|
|
|
5829
5772
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5830
5773
|
: vue.createCommentVNode("v-if", true),
|
|
5831
5774
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5832
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5775
|
+
? (vue.openBlock(), vue.createBlock(script$g, {
|
|
5833
5776
|
key: 1,
|
|
5834
5777
|
"canvas-id": vue.unref(canvasId),
|
|
5835
5778
|
"canvas-size": size.value,
|
|
@@ -6080,7 +6023,7 @@ return (_ctx, _cache) => {
|
|
|
6080
6023
|
_hoisted_5$2,
|
|
6081
6024
|
vue.createTextVNode(" ADD DEPARTMENT")
|
|
6082
6025
|
], 512 /* NEED_PATCH */),
|
|
6083
|
-
vue.createVNode(script$
|
|
6026
|
+
vue.createVNode(script$c, {
|
|
6084
6027
|
headers: ['id','name','description', 'created_at'],
|
|
6085
6028
|
"end-point": "sh-departments/list",
|
|
6086
6029
|
actions: {
|
|
@@ -6094,12 +6037,12 @@ return (_ctx, _cache) => {
|
|
|
6094
6037
|
]
|
|
6095
6038
|
}
|
|
6096
6039
|
}),
|
|
6097
|
-
vue.createVNode(script$
|
|
6040
|
+
vue.createVNode(script$j, {
|
|
6098
6041
|
"modal-id": "sh-department_modal",
|
|
6099
6042
|
"modal-title": "Department Form"
|
|
6100
6043
|
}, {
|
|
6101
6044
|
default: vue.withCtx(() => [
|
|
6102
|
-
vue.createVNode(script$
|
|
6045
|
+
vue.createVNode(script$s, {
|
|
6103
6046
|
"success-callback": "departmentAdded",
|
|
6104
6047
|
onDepartmentAdded: departmentAdded,
|
|
6105
6048
|
action: "admin/departments/store",
|
|
@@ -6233,7 +6176,7 @@ return (_ctx, _cache) => {
|
|
|
6233
6176
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
6234
6177
|
_hoisted_3$1,
|
|
6235
6178
|
vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
6236
|
-
vue.createVNode(script$
|
|
6179
|
+
vue.createVNode(script$c, {
|
|
6237
6180
|
actions: {
|
|
6238
6181
|
label: 'Actions',
|
|
6239
6182
|
actions: [
|
|
@@ -6253,12 +6196,12 @@ return (_ctx, _cache) => {
|
|
|
6253
6196
|
headers: ['id',showModule,'created_at'],
|
|
6254
6197
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
6255
6198
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
6256
|
-
vue.createVNode(script$
|
|
6199
|
+
vue.createVNode(script$j, {
|
|
6257
6200
|
"modal-id": "addModule",
|
|
6258
6201
|
"modal-title": "Add Module Department"
|
|
6259
6202
|
}, {
|
|
6260
6203
|
default: vue.withCtx(() => [
|
|
6261
|
-
vue.createVNode(script$
|
|
6204
|
+
vue.createVNode(script$s, {
|
|
6262
6205
|
"reload-select-items": vue.unref(reload),
|
|
6263
6206
|
"success-callback": moduleAdded,
|
|
6264
6207
|
"fill-selects": {
|
|
@@ -6280,7 +6223,7 @@ return (_ctx, _cache) => {
|
|
|
6280
6223
|
ref: permissionCanvasBtn,
|
|
6281
6224
|
"data-bs-toggle": "offcanvas"
|
|
6282
6225
|
}, null, 512 /* NEED_PATCH */),
|
|
6283
|
-
vue.createVNode(script$
|
|
6226
|
+
vue.createVNode(script$g, {
|
|
6284
6227
|
"canvas-id": "permissionsCanvas",
|
|
6285
6228
|
position: "end enlarged",
|
|
6286
6229
|
"canvas-title": "Module Permissions"
|
|
@@ -6395,7 +6338,7 @@ return (_ctx, _cache) => {
|
|
|
6395
6338
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
6396
6339
|
(section.value === 'login')
|
|
6397
6340
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
6398
|
-
vue.createVNode(script$
|
|
6341
|
+
vue.createVNode(script$s, {
|
|
6399
6342
|
class: "sh-login-form",
|
|
6400
6343
|
fields: ['email','password'],
|
|
6401
6344
|
"action-label": "Login",
|
|
@@ -6420,7 +6363,7 @@ return (_ctx, _cache) => {
|
|
|
6420
6363
|
(vue.unref(registerSubTitle))
|
|
6421
6364
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
6422
6365
|
: vue.createCommentVNode("v-if", true),
|
|
6423
|
-
vue.createVNode(script$
|
|
6366
|
+
vue.createVNode(script$s, {
|
|
6424
6367
|
class: "sh-login-form",
|
|
6425
6368
|
fields: vue.unref(registrationFields),
|
|
6426
6369
|
"action-label": "Sign Up",
|
|
@@ -6467,7 +6410,7 @@ const ShFrontend = {
|
|
|
6467
6410
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6468
6411
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6469
6412
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6470
|
-
options.formTextInput ?? script$
|
|
6413
|
+
options.formTextInput ?? script$p;
|
|
6471
6414
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6472
6415
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6473
6416
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6500,7 +6443,7 @@ const ShFrontend = {
|
|
|
6500
6443
|
});
|
|
6501
6444
|
options.router.addRoute({
|
|
6502
6445
|
path: '/sh-departments/manage-permissions/:id',
|
|
6503
|
-
component: script$
|
|
6446
|
+
component: script$7
|
|
6504
6447
|
});
|
|
6505
6448
|
}
|
|
6506
6449
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6512,31 +6455,41 @@ const ShFrontend = {
|
|
|
6512
6455
|
}
|
|
6513
6456
|
};
|
|
6514
6457
|
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
}
|
|
6458
|
+
const query = async qlQuery => {
|
|
6459
|
+
const result = await shApis.graphQlQuery(qlQuery);
|
|
6460
|
+
return result.data
|
|
6461
|
+
};
|
|
6462
|
+
const mutate = async mutation => {
|
|
6463
|
+
const result = await shApis.graphQlMutate(mutation);
|
|
6464
|
+
return result.data
|
|
6465
|
+
};
|
|
6466
|
+
var shGql = {
|
|
6467
|
+
query,
|
|
6468
|
+
mutate
|
|
6469
|
+
};
|
|
6470
|
+
|
|
6519
6471
|
exports.Countries = countries;
|
|
6520
|
-
exports.ManagePermissions = script$
|
|
6521
|
-
exports.ShAutoForm = script$
|
|
6522
|
-
exports.ShCanvas = script$
|
|
6523
|
-
exports.ShCanvasBtn = script$
|
|
6524
|
-
exports.ShConfirmAction = script$
|
|
6525
|
-
exports.ShDropDownForm = script$
|
|
6526
|
-
exports.ShDynamicTabs = script$
|
|
6527
|
-
exports.ShForm = script$
|
|
6472
|
+
exports.ManagePermissions = script$7;
|
|
6473
|
+
exports.ShAutoForm = script$l;
|
|
6474
|
+
exports.ShCanvas = script$g;
|
|
6475
|
+
exports.ShCanvasBtn = script$8;
|
|
6476
|
+
exports.ShConfirmAction = script$e;
|
|
6477
|
+
exports.ShDropDownForm = script$k;
|
|
6478
|
+
exports.ShDynamicTabs = script$a;
|
|
6479
|
+
exports.ShForm = script$s;
|
|
6528
6480
|
exports.ShFrontend = ShFrontend;
|
|
6529
|
-
exports.ShModal = script$
|
|
6530
|
-
exports.ShModalBtn = script$
|
|
6531
|
-
exports.ShModalForm = script$
|
|
6532
|
-
exports.ShModalFormAuto = script$
|
|
6533
|
-
exports.ShPhone = script$
|
|
6481
|
+
exports.ShModal = script$j;
|
|
6482
|
+
exports.ShModalBtn = script$9;
|
|
6483
|
+
exports.ShModalForm = script$i;
|
|
6484
|
+
exports.ShModalFormAuto = script$h;
|
|
6485
|
+
exports.ShPhone = script$u;
|
|
6534
6486
|
exports.ShPopups = script$4;
|
|
6535
6487
|
exports.ShRange = script$3;
|
|
6536
|
-
exports.ShSilentAction = script$
|
|
6537
|
-
exports.ShTable = script$
|
|
6538
|
-
exports.ShTabs = script$
|
|
6488
|
+
exports.ShSilentAction = script$d;
|
|
6489
|
+
exports.ShTable = script$c;
|
|
6490
|
+
exports.ShTabs = script$b;
|
|
6539
6491
|
exports.shApis = shApis;
|
|
6492
|
+
exports.shGql = shGql;
|
|
6540
6493
|
exports.shRepo = shRepo;
|
|
6541
6494
|
exports.shStorage = ShStorage;
|
|
6542
6495
|
exports.useUserStore = useUserStore;
|