@iankibetsh/shframework 4.2.7 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist/library.mjs.css +15 -15
- package/dist/library.js +86 -111
- package/dist/library.mjs +86 -111
- package/package.json +2 -2
|
@@ -63,6 +63,21 @@
|
|
|
63
63
|
color: white;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
.sh-selected-item{
|
|
67
|
+
line-height: unset!important;
|
|
68
|
+
}
|
|
69
|
+
.sh-suggestion-input{
|
|
70
|
+
padding: 0.375rem 0.75rem;
|
|
71
|
+
}
|
|
72
|
+
.sh-suggest{
|
|
73
|
+
margin-bottom: 1rem;
|
|
74
|
+
}
|
|
75
|
+
.sh-suggest-control::after{
|
|
76
|
+
margin-top: auto;
|
|
77
|
+
margin-bottom: auto;
|
|
78
|
+
margin-right: 0.255em;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
.permissions-main {
|
|
67
82
|
background: #edeff2;
|
|
68
83
|
}
|
|
@@ -95,21 +110,6 @@
|
|
|
95
110
|
flex-grow: 1;
|
|
96
111
|
}
|
|
97
112
|
|
|
98
|
-
.sh-selected-item{
|
|
99
|
-
line-height: unset!important;
|
|
100
|
-
}
|
|
101
|
-
.sh-suggestion-input{
|
|
102
|
-
padding: 0.375rem 0.75rem;
|
|
103
|
-
}
|
|
104
|
-
.sh-suggest{
|
|
105
|
-
margin-bottom: 1rem;
|
|
106
|
-
}
|
|
107
|
-
.sh-suggest-control::after{
|
|
108
|
-
margin-top: auto;
|
|
109
|
-
margin-bottom: auto;
|
|
110
|
-
margin-right: 0.255em;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
113
|
.callout{
|
|
114
114
|
--bs-link-color-rgb: 110,168,254;
|
|
115
115
|
--bs-code-color: #e685b5;
|
package/dist/library.js
CHANGED
|
@@ -2025,7 +2025,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2025
2025
|
key: country.dialCode
|
|
2026
2026
|
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
2027
2027
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2028
|
-
], 544 /*
|
|
2028
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
2029
2029
|
[vue.vModelSelect, $data.selectedCountry]
|
|
2030
2030
|
]),
|
|
2031
2031
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -2035,7 +2035,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2035
2035
|
onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
|
|
2036
2036
|
placeholder: "712345678",
|
|
2037
2037
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
|
|
2038
|
-
}, null, 544 /*
|
|
2038
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
2039
2039
|
[vue.vModelText, $data.input]
|
|
2040
2040
|
])
|
|
2041
2041
|
]))
|
|
@@ -2069,12 +2069,10 @@ var script$u = {
|
|
|
2069
2069
|
__name: 'ShSuggest',
|
|
2070
2070
|
props: ['data','allowMultiple','url','modelValue'],
|
|
2071
2071
|
emits: ['update:modelValue'],
|
|
2072
|
-
setup(__props, { emit }) {
|
|
2072
|
+
setup(__props, { emit: __emit }) {
|
|
2073
2073
|
|
|
2074
2074
|
const props = __props;
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2075
|
+
const emit = __emit;
|
|
2078
2076
|
let id = vue.ref(null);
|
|
2079
2077
|
vue.ref(null);
|
|
2080
2078
|
let suggestions = vue.ref(null);
|
|
@@ -2113,6 +2111,7 @@ function updateModelValue(){
|
|
|
2113
2111
|
});
|
|
2114
2112
|
emit('update:modelValue', ids);
|
|
2115
2113
|
}
|
|
2114
|
+
hideDropDown();
|
|
2116
2115
|
}
|
|
2117
2116
|
function removeSuggestion(sgt){
|
|
2118
2117
|
selectedSuggestions.value = selectedSuggestions.value.filter(selectedSgt=>{
|
|
@@ -2124,18 +2123,11 @@ function removeSuggestion(sgt){
|
|
|
2124
2123
|
}
|
|
2125
2124
|
let searchText = vue.ref(null);
|
|
2126
2125
|
function filterData(e){
|
|
2127
|
-
|
|
2128
|
-
if(!dropdownElem.classList.contains('show')){
|
|
2129
|
-
dropdownElem.classList.add('show');
|
|
2130
|
-
}
|
|
2126
|
+
showDropDown();
|
|
2131
2127
|
let filterValue = e.target.innerText;
|
|
2132
2128
|
searchText.value = filterValue;
|
|
2133
2129
|
if (props.url) {
|
|
2134
|
-
|
|
2135
|
-
suggestions.value = res.data.data ?? res.data;
|
|
2136
|
-
}).catch(res => {
|
|
2137
|
-
console.log(res);
|
|
2138
|
-
});
|
|
2130
|
+
fetchRemoteData();
|
|
2139
2131
|
} else if(props.data) {
|
|
2140
2132
|
suggestions.value = props.data.filter(item=>{
|
|
2141
2133
|
if(item.name.toLowerCase().includes(filterValue.toLowerCase())){
|
|
@@ -2147,6 +2139,27 @@ function filterData(e){
|
|
|
2147
2139
|
}
|
|
2148
2140
|
}
|
|
2149
2141
|
|
|
2142
|
+
const fetchRemoteData = ()=>{
|
|
2143
|
+
shApis.doGet(props.url, { all: 1 }).then(res => {
|
|
2144
|
+
suggestions.value = res.data.data ?? res.data;
|
|
2145
|
+
}).catch(res => {
|
|
2146
|
+
console.log(res);
|
|
2147
|
+
});
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
const showDropDown = ()=>{
|
|
2151
|
+
let dropdownElem = document.getElementById('dropwdown_section' + id.value);
|
|
2152
|
+
if(!dropdownElem.classList.contains('show')){
|
|
2153
|
+
dropdownElem.classList.add('show');
|
|
2154
|
+
}
|
|
2155
|
+
};
|
|
2156
|
+
const hideDropDown = ()=>{
|
|
2157
|
+
let dropdownElem = document.getElementById('dropwdown_section' + id.value);
|
|
2158
|
+
if(dropdownElem.classList.contains('show')){
|
|
2159
|
+
dropdownElem.classList.remove('show');
|
|
2160
|
+
}
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2150
2163
|
return (_ctx, _cache) => {
|
|
2151
2164
|
return (vue.unref(id))
|
|
2152
2165
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
@@ -2176,7 +2189,7 @@ return (_ctx, _cache) => {
|
|
|
2176
2189
|
onInput: filterData,
|
|
2177
2190
|
onChange: filterData,
|
|
2178
2191
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2179
|
-
}, null, 40 /* PROPS,
|
|
2192
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$a)
|
|
2180
2193
|
], 8 /* PROPS */, _hoisted_2$d),
|
|
2181
2194
|
vue.createElementVNode("ul", {
|
|
2182
2195
|
class: "dropdown-menu w-100",
|
|
@@ -2640,7 +2653,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2640
2653
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2641
2654
|
modelValue: _ctx.form_elements[field],
|
|
2642
2655
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2643
|
-
}, null, 40 /* PROPS,
|
|
2656
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
|
|
2644
2657
|
: vue.createCommentVNode("v-if", true),
|
|
2645
2658
|
($options.getFieldType(field) === 'file')
|
|
2646
2659
|
? (vue.openBlock(), vue.createElementBlock("input", {
|
|
@@ -2654,7 +2667,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2654
2667
|
ref: 'file_'+field,
|
|
2655
2668
|
onChange: $event => ($options.handleFileUpload(field)),
|
|
2656
2669
|
type: "file"
|
|
2657
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2670
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$5))
|
|
2658
2671
|
: vue.createCommentVNode("v-if", true),
|
|
2659
2672
|
($options.getFieldType(field) === 'numeric')
|
|
2660
2673
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
@@ -2666,7 +2679,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2666
2679
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2667
2680
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2668
2681
|
type: "number"
|
|
2669
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2682
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$5)), [
|
|
2670
2683
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2671
2684
|
])
|
|
2672
2685
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2680,7 +2693,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2680
2693
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2681
2694
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2682
2695
|
type: "password"
|
|
2683
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2696
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$4)), [
|
|
2684
2697
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2685
2698
|
])
|
|
2686
2699
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2695,7 +2708,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2695
2708
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2696
2709
|
type: "email",
|
|
2697
2710
|
required: ""
|
|
2698
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2711
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$4)), [
|
|
2699
2712
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2700
2713
|
])
|
|
2701
2714
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2708,7 +2721,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2708
2721
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2709
2722
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
|
|
2710
2723
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2711
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2724
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
|
|
2712
2725
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2713
2726
|
])
|
|
2714
2727
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2747,7 +2760,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2747
2760
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2748
2761
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2749
2762
|
type: "text"
|
|
2750
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2763
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
|
|
2751
2764
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2752
2765
|
])
|
|
2753
2766
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2758,7 +2771,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2758
2771
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2759
2772
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2760
2773
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2761
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2774
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_16$3)), [
|
|
2762
2775
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2763
2776
|
])
|
|
2764
2777
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2776,7 +2789,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2776
2789
|
value: item.id
|
|
2777
2790
|
}, vue.toDisplayString(item.name), 9 /* TEXT, PROPS */, _hoisted_18$3))
|
|
2778
2791
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2779
|
-
], 42 /* CLASS, PROPS,
|
|
2792
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_17$3)), [
|
|
2780
2793
|
[vue.vModelSelect, _ctx.form_elements[field]]
|
|
2781
2794
|
])
|
|
2782
2795
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2788,7 +2801,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2788
2801
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2789
2802
|
]),
|
|
2790
2803
|
($props.hasTerms)
|
|
2791
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, _hoisted_23$1))
|
|
2804
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, [..._hoisted_23$1]))
|
|
2792
2805
|
: vue.createCommentVNode("v-if", true),
|
|
2793
2806
|
(_ctx.form_status == 1)
|
|
2794
2807
|
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
@@ -2818,12 +2831,10 @@ var script$s = {
|
|
|
2818
2831
|
__name: 'EmailInput',
|
|
2819
2832
|
props: ['modelValue','label'],
|
|
2820
2833
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2821
|
-
setup(__props, { emit }) {
|
|
2834
|
+
setup(__props, { emit: __emit }) {
|
|
2822
2835
|
|
|
2823
2836
|
const props = __props;
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2837
|
+
const emit = __emit;
|
|
2827
2838
|
const inputModel = vue.ref(null);
|
|
2828
2839
|
|
|
2829
2840
|
const modelValueUpdated = (e) => {
|
|
@@ -2846,7 +2857,7 @@ return (_ctx, _cache) => {
|
|
|
2846
2857
|
onChange: modelValueUpdated,
|
|
2847
2858
|
onKeydown: modelValueUpdated,
|
|
2848
2859
|
onUpdated: modelValueUpdated
|
|
2849
|
-
}, null, 544 /*
|
|
2860
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
2850
2861
|
[vue.vModelText, inputModel.value]
|
|
2851
2862
|
])
|
|
2852
2863
|
}
|
|
@@ -2863,12 +2874,10 @@ var script$r = {
|
|
|
2863
2874
|
__name: 'NumberInput',
|
|
2864
2875
|
props: ['modelValue','label','min','max'],
|
|
2865
2876
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2866
|
-
setup(__props, { emit }) {
|
|
2877
|
+
setup(__props, { emit: __emit }) {
|
|
2867
2878
|
|
|
2868
2879
|
const props = __props;
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2880
|
+
const emit = __emit;
|
|
2872
2881
|
const inputModel = vue.ref(null);
|
|
2873
2882
|
|
|
2874
2883
|
const modelValueUpdated = (e) => {
|
|
@@ -2893,7 +2902,7 @@ return (_ctx, _cache) => {
|
|
|
2893
2902
|
onChange: modelValueUpdated,
|
|
2894
2903
|
onKeydown: modelValueUpdated,
|
|
2895
2904
|
onUpdated: modelValueUpdated
|
|
2896
|
-
}, null, 40 /* PROPS,
|
|
2905
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$l)), [
|
|
2897
2906
|
[vue.vModelText, inputModel.value]
|
|
2898
2907
|
])
|
|
2899
2908
|
}
|
|
@@ -2907,12 +2916,10 @@ var script$q = {
|
|
|
2907
2916
|
__name: 'TextInput',
|
|
2908
2917
|
props: ['modelValue','label','isInvalid'],
|
|
2909
2918
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2910
|
-
setup(__props, { emit }) {
|
|
2919
|
+
setup(__props, { emit: __emit }) {
|
|
2911
2920
|
|
|
2912
2921
|
const props = __props;
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2922
|
+
const emit = __emit;
|
|
2916
2923
|
const inputModel = vue.ref(null);
|
|
2917
2924
|
|
|
2918
2925
|
const modelValueUpdated = (e) => {
|
|
@@ -2937,7 +2944,7 @@ return (_ctx, _cache) => {
|
|
|
2937
2944
|
onChange: modelValueUpdated,
|
|
2938
2945
|
onKeydown: modelValueUpdated,
|
|
2939
2946
|
onUpdated: modelValueUpdated
|
|
2940
|
-
}, null, 544 /*
|
|
2947
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
2941
2948
|
[vue.vModelText, inputModel.value]
|
|
2942
2949
|
])
|
|
2943
2950
|
}
|
|
@@ -2951,12 +2958,10 @@ var script$p = {
|
|
|
2951
2958
|
__name: 'TextAreaInput',
|
|
2952
2959
|
props: ['modelValue','label'],
|
|
2953
2960
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2954
|
-
setup(__props, { emit }) {
|
|
2961
|
+
setup(__props, { emit: __emit }) {
|
|
2955
2962
|
|
|
2956
2963
|
const props = __props;
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2964
|
+
const emit = __emit;
|
|
2960
2965
|
const inputModel = vue.ref(null);
|
|
2961
2966
|
|
|
2962
2967
|
const modelValueUpdated = (e) => {
|
|
@@ -2979,7 +2984,7 @@ return (_ctx, _cache) => {
|
|
|
2979
2984
|
onChange: modelValueUpdated,
|
|
2980
2985
|
onKeydown: modelValueUpdated,
|
|
2981
2986
|
onUpdated: modelValueUpdated
|
|
2982
|
-
}, null, 544 /*
|
|
2987
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
2983
2988
|
[vue.vModelText, inputModel.value]
|
|
2984
2989
|
])
|
|
2985
2990
|
}
|
|
@@ -2996,12 +3001,10 @@ var script$o = {
|
|
|
2996
3001
|
__name: 'SelectInput',
|
|
2997
3002
|
props: ['modelValue','label','data','dataUrl'],
|
|
2998
3003
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2999
|
-
setup(__props, { emit }) {
|
|
3004
|
+
setup(__props, { emit: __emit }) {
|
|
3000
3005
|
|
|
3001
3006
|
const props = __props;
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3007
|
+
const emit = __emit;
|
|
3005
3008
|
const inputModel = vue.ref(null);
|
|
3006
3009
|
const selectOptions = vue.ref(null);
|
|
3007
3010
|
const modelValueUpdated = (e) => {
|
|
@@ -3050,7 +3053,7 @@ return (_ctx, _cache) => {
|
|
|
3050
3053
|
value: option.id
|
|
3051
3054
|
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$k))
|
|
3052
3055
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3053
|
-
], 544 /*
|
|
3056
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3054
3057
|
[vue.vModelSelect, inputModel.value]
|
|
3055
3058
|
])
|
|
3056
3059
|
}
|
|
@@ -3064,12 +3067,10 @@ var script$n = {
|
|
|
3064
3067
|
__name: 'PasswordInput',
|
|
3065
3068
|
props: ['modelValue','label'],
|
|
3066
3069
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
3067
|
-
setup(__props, { emit }) {
|
|
3070
|
+
setup(__props, { emit: __emit }) {
|
|
3068
3071
|
|
|
3069
3072
|
const props = __props;
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
+
const emit = __emit;
|
|
3073
3074
|
const inputModel = vue.ref(null);
|
|
3074
3075
|
|
|
3075
3076
|
const modelValueUpdated = (e) => {
|
|
@@ -3088,7 +3089,7 @@ return (_ctx, _cache) => {
|
|
|
3088
3089
|
onChange: modelValueUpdated,
|
|
3089
3090
|
onKeydown: modelValueUpdated,
|
|
3090
3091
|
onUpdated: modelValueUpdated
|
|
3091
|
-
}, null, 544 /*
|
|
3092
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3092
3093
|
[vue.vModelText, inputModel.value]
|
|
3093
3094
|
])
|
|
3094
3095
|
}
|
|
@@ -3140,12 +3141,10 @@ var script$m = {
|
|
|
3140
3141
|
'phones','numbers','selects','dates','gqlMutation'
|
|
3141
3142
|
],
|
|
3142
3143
|
emits: ['success','fieldChanged','formSubmitted','formError'],
|
|
3143
|
-
setup(__props, { emit }) {
|
|
3144
|
+
setup(__props, { emit: __emit }) {
|
|
3144
3145
|
|
|
3145
3146
|
const props = __props;
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3147
|
+
const emit = __emit;
|
|
3149
3148
|
const formFields = vue.ref([]);
|
|
3150
3149
|
const getFieldComponent = (fieldObj)=>{
|
|
3151
3150
|
if(fieldObj.component){
|
|
@@ -3378,7 +3377,7 @@ return (_ctx, _cache) => {
|
|
|
3378
3377
|
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3379
3378
|
: vue.createCommentVNode("v-if", true),
|
|
3380
3379
|
(vue.unref(isFloating))
|
|
3381
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, _hoisted_9$5))
|
|
3380
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, [..._hoisted_9$5]))
|
|
3382
3381
|
: vue.createCommentVNode("v-if", true),
|
|
3383
3382
|
(field.helper)
|
|
3384
3383
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -3414,7 +3413,7 @@ return (_ctx, _cache) => {
|
|
|
3414
3413
|
: vue.createCommentVNode("v-if", true)
|
|
3415
3414
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
|
|
3416
3415
|
], 2 /* CLASS */)
|
|
3417
|
-
], 34 /* CLASS,
|
|
3416
|
+
], 34 /* CLASS, NEED_HYDRATION */)
|
|
3418
3417
|
], 64 /* STABLE_FRAGMENT */))
|
|
3419
3418
|
}
|
|
3420
3419
|
}
|
|
@@ -3447,8 +3446,6 @@ var script$l = {
|
|
|
3447
3446
|
|
|
3448
3447
|
const props = __props;
|
|
3449
3448
|
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
3449
|
vue.ref(props);
|
|
3453
3450
|
let btnClass=props.class;
|
|
3454
3451
|
const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
@@ -3520,12 +3517,10 @@ var script$k = {
|
|
|
3520
3517
|
}
|
|
3521
3518
|
},
|
|
3522
3519
|
emits: ['modalClosed'],
|
|
3523
|
-
setup(__props, { emit }) {
|
|
3520
|
+
setup(__props, { emit: __emit }) {
|
|
3524
3521
|
|
|
3522
|
+
const emit = __emit;
|
|
3525
3523
|
const props = __props;
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
3524
|
vue.onMounted(() => {
|
|
3530
3525
|
const modal = document.getElementById(props.modalId);
|
|
3531
3526
|
modal.addEventListener('hidden.bs.modal', event => {
|
|
@@ -3582,12 +3577,10 @@ var script$j = {
|
|
|
3582
3577
|
'numbers',
|
|
3583
3578
|
'customComponent','modalTitle','class','successMessage'],
|
|
3584
3579
|
emits: ['success'],
|
|
3585
|
-
setup(__props, { emit }) {
|
|
3580
|
+
setup(__props, { emit: __emit }) {
|
|
3586
3581
|
|
|
3587
3582
|
const props = __props;
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3583
|
+
const emit = __emit;
|
|
3591
3584
|
vue.ref(props);
|
|
3592
3585
|
let btnClass=props.class;
|
|
3593
3586
|
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
@@ -3641,12 +3634,10 @@ var script$i = {
|
|
|
3641
3634
|
'numbers',
|
|
3642
3635
|
'customComponent','modalTitle','class','successMessage'],
|
|
3643
3636
|
emits: ['success'],
|
|
3644
|
-
setup(__props, { emit }) {
|
|
3637
|
+
setup(__props, { emit: __emit }) {
|
|
3645
3638
|
|
|
3646
3639
|
const props = __props;
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3640
|
+
const emit = __emit;
|
|
3650
3641
|
const formProps = vue.ref(props);
|
|
3651
3642
|
let btnClass=props.class;
|
|
3652
3643
|
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
@@ -3710,12 +3701,10 @@ var script$h = {
|
|
|
3710
3701
|
}
|
|
3711
3702
|
},
|
|
3712
3703
|
emits: ['canvasClosed'],
|
|
3713
|
-
setup(__props, { emit }) {
|
|
3704
|
+
setup(__props, { emit: __emit }) {
|
|
3714
3705
|
|
|
3706
|
+
const emit = __emit;
|
|
3715
3707
|
const props = __props;
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
3708
|
const pos = vue.ref(props.position ?? props.side);
|
|
3720
3709
|
const canvasSide = vue.ref(pos.value ? `offcanvas-${pos.value}` : 'offcanvas-start');
|
|
3721
3710
|
|
|
@@ -4006,7 +3995,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4006
3995
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.pageOptions, (option) => {
|
|
4007
3996
|
return (vue.openBlock(), vue.createElementBlock("option", { value: option }, vue.toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_4$7))
|
|
4008
3997
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
4009
|
-
], 544 /*
|
|
3998
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
4010
3999
|
[vue.vModelSelect, $data.per_page]
|
|
4011
4000
|
]),
|
|
4012
4001
|
vue.createElementVNode("span", _hoisted_5$6, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
@@ -4052,7 +4041,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4052
4041
|
]))
|
|
4053
4042
|
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$3, [
|
|
4054
4043
|
(this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
|
|
4055
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, _hoisted_14$2))
|
|
4044
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [..._hoisted_14$2]))
|
|
4056
4045
|
: vue.createCommentVNode("v-if", true),
|
|
4057
4046
|
(!$props.hideCount)
|
|
4058
4047
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$2, [
|
|
@@ -4107,14 +4096,12 @@ var script$e = {
|
|
|
4107
4096
|
}
|
|
4108
4097
|
},
|
|
4109
4098
|
emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
|
|
4110
|
-
setup(__props, { emit }) {
|
|
4099
|
+
setup(__props, { emit: __emit }) {
|
|
4111
4100
|
|
|
4112
4101
|
const props = __props;
|
|
4113
4102
|
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
4103
|
const processing = vue.ref(false);
|
|
4117
|
-
|
|
4104
|
+
const emit = __emit;
|
|
4118
4105
|
const actionSuccessful = (res)=>{
|
|
4119
4106
|
processing.value = false;
|
|
4120
4107
|
res.actionType = 'silentAction';
|
|
@@ -4206,13 +4193,11 @@ var script$d = {
|
|
|
4206
4193
|
}
|
|
4207
4194
|
},
|
|
4208
4195
|
emits: ['actionSuccessful','actionFailed','success'],
|
|
4209
|
-
setup(__props, { emit }) {
|
|
4196
|
+
setup(__props, { emit: __emit }) {
|
|
4210
4197
|
|
|
4211
4198
|
const props = __props;
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
4199
|
const processing = vue.ref(false);
|
|
4215
|
-
|
|
4200
|
+
const emit = __emit;
|
|
4216
4201
|
const actionSuccessful = (res)=>{
|
|
4217
4202
|
processing.value = false;
|
|
4218
4203
|
res.actionType = 'silentAction';
|
|
@@ -4309,13 +4294,11 @@ var script$c = {
|
|
|
4309
4294
|
}
|
|
4310
4295
|
},
|
|
4311
4296
|
emits: ['rangeSelected'],
|
|
4312
|
-
setup(__props, { emit }) {
|
|
4297
|
+
setup(__props, { emit: __emit }) {
|
|
4313
4298
|
|
|
4314
4299
|
const props = __props;
|
|
4315
4300
|
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4301
|
+
const emit = __emit;
|
|
4319
4302
|
|
|
4320
4303
|
const selectedDate = vue.ref(null);
|
|
4321
4304
|
const rangeLabel = vue.ref(null);
|
|
@@ -4983,7 +4966,7 @@ return (_ctx, _cache) => {
|
|
|
4983
4966
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
|
|
4984
4967
|
placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
|
|
4985
4968
|
class: "form-control sh-search-input"
|
|
4986
|
-
}, null, 40 /* PROPS,
|
|
4969
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_10$1), [
|
|
4987
4970
|
[vue.vModelText, _ctx.filter_value]
|
|
4988
4971
|
]),
|
|
4989
4972
|
(_ctx.filter_value.length > 1)
|
|
@@ -4993,7 +4976,7 @@ return (_ctx, _cache) => {
|
|
|
4993
4976
|
value: true,
|
|
4994
4977
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((_ctx.exactMatch) = $event)),
|
|
4995
4978
|
type: "checkbox"
|
|
4996
|
-
}, null, 544 /*
|
|
4979
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
4997
4980
|
[vue.vModelCheckbox, _ctx.exactMatch]
|
|
4998
4981
|
]),
|
|
4999
4982
|
_hoisted_12$1
|
|
@@ -5006,7 +4989,7 @@ return (_ctx, _cache) => {
|
|
|
5006
4989
|
(_ctx.hasDefaultSlot)
|
|
5007
4990
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
5008
4991
|
(_ctx.loading === 'loading')
|
|
5009
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, _hoisted_15$1))
|
|
4992
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, [..._hoisted_15$1]))
|
|
5010
4993
|
: (_ctx.loading === 'error')
|
|
5011
4994
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
|
|
5012
4995
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
@@ -5024,7 +5007,7 @@ return (_ctx, _cache) => {
|
|
|
5024
5007
|
: (_ctx.hasRecordsSlot)
|
|
5025
5008
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
5026
5009
|
(_ctx.loading === 'loading' && !__props.cacheKey)
|
|
5027
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, _hoisted_19))
|
|
5010
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, [..._hoisted_19]))
|
|
5028
5011
|
: (_ctx.loading === 'error' && !__props.cacheKey)
|
|
5029
5012
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
|
|
5030
5013
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
@@ -5085,7 +5068,7 @@ return (_ctx, _cache) => {
|
|
|
5085
5068
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_28, [
|
|
5086
5069
|
vue.createElementVNode("td", {
|
|
5087
5070
|
colspan: _ctx.tableHeaders.length
|
|
5088
|
-
}, _hoisted_31, 8 /* PROPS */, _hoisted_29)
|
|
5071
|
+
}, [..._hoisted_31], 8 /* PROPS */, _hoisted_29)
|
|
5089
5072
|
]))
|
|
5090
5073
|
: (_ctx.loading === 'error')
|
|
5091
5074
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_32, [
|
|
@@ -5257,7 +5240,7 @@ return (_ctx, _cache) => {
|
|
|
5257
5240
|
], 2 /* CLASS */))
|
|
5258
5241
|
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_47, [
|
|
5259
5242
|
(_ctx.loading === 'loading')
|
|
5260
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_48, _hoisted_50))
|
|
5243
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_48, [..._hoisted_50]))
|
|
5261
5244
|
: (_ctx.loading === 'error')
|
|
5262
5245
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_51, [
|
|
5263
5246
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
@@ -5464,8 +5447,6 @@ var script$a = {
|
|
|
5464
5447
|
setup(__props) {
|
|
5465
5448
|
|
|
5466
5449
|
const props = __props;
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
5450
|
const route = vueRouter.useRoute();
|
|
5470
5451
|
const router = vueRouter.useRouter();
|
|
5471
5452
|
const currentTab = vue.ref('');
|
|
@@ -5593,8 +5574,6 @@ var script$9 = {
|
|
|
5593
5574
|
setup(__props) {
|
|
5594
5575
|
|
|
5595
5576
|
const props = __props;
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
5577
|
const tabs = props.tabs;
|
|
5599
5578
|
let currentTab = vue.shallowRef(null);
|
|
5600
5579
|
const generatedId = vue.ref(null);
|
|
@@ -5658,8 +5637,6 @@ var script$8 = {
|
|
|
5658
5637
|
},
|
|
5659
5638
|
setup(__props) {
|
|
5660
5639
|
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
5640
|
return (_ctx, _cache) => {
|
|
5664
5641
|
return (vue.openBlock(), vue.createElementBlock("a", {
|
|
5665
5642
|
href: `#${__props.modalId}`,
|
|
@@ -5687,8 +5664,6 @@ var script$7 = {
|
|
|
5687
5664
|
},
|
|
5688
5665
|
setup(__props) {
|
|
5689
5666
|
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
5667
|
return (_ctx, _cache) => {
|
|
5693
5668
|
return (vue.openBlock(), vue.createElementBlock("a", {
|
|
5694
5669
|
href: `#${__props.canvasId}`,
|
|
@@ -5747,9 +5722,9 @@ const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createEl
|
|
|
5747
5722
|
var script$6 = {
|
|
5748
5723
|
__name: 'ManagePermissions',
|
|
5749
5724
|
emits: ['success'],
|
|
5750
|
-
setup(__props, { emit }) {
|
|
5751
|
-
|
|
5725
|
+
setup(__props, { emit: __emit }) {
|
|
5752
5726
|
|
|
5727
|
+
const emit = __emit;
|
|
5753
5728
|
|
|
5754
5729
|
const userStore =useUserStore();
|
|
5755
5730
|
|
|
@@ -5851,7 +5826,7 @@ return (_ctx, _cache) => {
|
|
|
5851
5826
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
5852
5827
|
vue.createElementVNode("div", _hoisted_2$3, [
|
|
5853
5828
|
(loadingModules.value)
|
|
5854
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, _hoisted_5$2))
|
|
5829
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [..._hoisted_5$2]))
|
|
5855
5830
|
: (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$2, [
|
|
5856
5831
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
|
|
5857
5832
|
return (vue.openBlock(), vue.createElementBlock("li", {
|
package/dist/library.mjs
CHANGED
|
@@ -2013,7 +2013,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2013
2013
|
key: country.dialCode
|
|
2014
2014
|
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
|
|
2015
2015
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2016
|
-
], 544 /*
|
|
2016
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
2017
2017
|
[vModelSelect, $data.selectedCountry]
|
|
2018
2018
|
]),
|
|
2019
2019
|
withDirectives(createElementVNode("input", {
|
|
@@ -2023,7 +2023,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2023
2023
|
onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
|
|
2024
2024
|
placeholder: "712345678",
|
|
2025
2025
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
|
|
2026
|
-
}, null, 544 /*
|
|
2026
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
2027
2027
|
[vModelText, $data.input]
|
|
2028
2028
|
])
|
|
2029
2029
|
]))
|
|
@@ -2057,12 +2057,10 @@ var script$u = {
|
|
|
2057
2057
|
__name: 'ShSuggest',
|
|
2058
2058
|
props: ['data','allowMultiple','url','modelValue'],
|
|
2059
2059
|
emits: ['update:modelValue'],
|
|
2060
|
-
setup(__props, { emit }) {
|
|
2060
|
+
setup(__props, { emit: __emit }) {
|
|
2061
2061
|
|
|
2062
2062
|
const props = __props;
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2063
|
+
const emit = __emit;
|
|
2066
2064
|
let id = ref(null);
|
|
2067
2065
|
ref(null);
|
|
2068
2066
|
let suggestions = ref(null);
|
|
@@ -2101,6 +2099,7 @@ function updateModelValue(){
|
|
|
2101
2099
|
});
|
|
2102
2100
|
emit('update:modelValue', ids);
|
|
2103
2101
|
}
|
|
2102
|
+
hideDropDown();
|
|
2104
2103
|
}
|
|
2105
2104
|
function removeSuggestion(sgt){
|
|
2106
2105
|
selectedSuggestions.value = selectedSuggestions.value.filter(selectedSgt=>{
|
|
@@ -2112,18 +2111,11 @@ function removeSuggestion(sgt){
|
|
|
2112
2111
|
}
|
|
2113
2112
|
let searchText = ref(null);
|
|
2114
2113
|
function filterData(e){
|
|
2115
|
-
|
|
2116
|
-
if(!dropdownElem.classList.contains('show')){
|
|
2117
|
-
dropdownElem.classList.add('show');
|
|
2118
|
-
}
|
|
2114
|
+
showDropDown();
|
|
2119
2115
|
let filterValue = e.target.innerText;
|
|
2120
2116
|
searchText.value = filterValue;
|
|
2121
2117
|
if (props.url) {
|
|
2122
|
-
|
|
2123
|
-
suggestions.value = res.data.data ?? res.data;
|
|
2124
|
-
}).catch(res => {
|
|
2125
|
-
console.log(res);
|
|
2126
|
-
});
|
|
2118
|
+
fetchRemoteData();
|
|
2127
2119
|
} else if(props.data) {
|
|
2128
2120
|
suggestions.value = props.data.filter(item=>{
|
|
2129
2121
|
if(item.name.toLowerCase().includes(filterValue.toLowerCase())){
|
|
@@ -2135,6 +2127,27 @@ function filterData(e){
|
|
|
2135
2127
|
}
|
|
2136
2128
|
}
|
|
2137
2129
|
|
|
2130
|
+
const fetchRemoteData = ()=>{
|
|
2131
|
+
shApis.doGet(props.url, { all: 1 }).then(res => {
|
|
2132
|
+
suggestions.value = res.data.data ?? res.data;
|
|
2133
|
+
}).catch(res => {
|
|
2134
|
+
console.log(res);
|
|
2135
|
+
});
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
const showDropDown = ()=>{
|
|
2139
|
+
let dropdownElem = document.getElementById('dropwdown_section' + id.value);
|
|
2140
|
+
if(!dropdownElem.classList.contains('show')){
|
|
2141
|
+
dropdownElem.classList.add('show');
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
2144
|
+
const hideDropDown = ()=>{
|
|
2145
|
+
let dropdownElem = document.getElementById('dropwdown_section' + id.value);
|
|
2146
|
+
if(dropdownElem.classList.contains('show')){
|
|
2147
|
+
dropdownElem.classList.remove('show');
|
|
2148
|
+
}
|
|
2149
|
+
};
|
|
2150
|
+
|
|
2138
2151
|
return (_ctx, _cache) => {
|
|
2139
2152
|
return (unref(id))
|
|
2140
2153
|
? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
@@ -2164,7 +2177,7 @@ return (_ctx, _cache) => {
|
|
|
2164
2177
|
onInput: filterData,
|
|
2165
2178
|
onChange: filterData,
|
|
2166
2179
|
class: "flex-fill h-100 sh-suggestion-input"
|
|
2167
|
-
}, null, 40 /* PROPS,
|
|
2180
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$a)
|
|
2168
2181
|
], 8 /* PROPS */, _hoisted_2$d),
|
|
2169
2182
|
createElementVNode("ul", {
|
|
2170
2183
|
class: "dropdown-menu w-100",
|
|
@@ -2628,7 +2641,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2628
2641
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2629
2642
|
modelValue: _ctx.form_elements[field],
|
|
2630
2643
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2631
|
-
}, null, 40 /* PROPS,
|
|
2644
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
|
|
2632
2645
|
: createCommentVNode("v-if", true),
|
|
2633
2646
|
($options.getFieldType(field) === 'file')
|
|
2634
2647
|
? (openBlock(), createElementBlock("input", {
|
|
@@ -2642,7 +2655,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2642
2655
|
ref: 'file_'+field,
|
|
2643
2656
|
onChange: $event => ($options.handleFileUpload(field)),
|
|
2644
2657
|
type: "file"
|
|
2645
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2658
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$5))
|
|
2646
2659
|
: createCommentVNode("v-if", true),
|
|
2647
2660
|
($options.getFieldType(field) === 'numeric')
|
|
2648
2661
|
? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -2654,7 +2667,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2654
2667
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2655
2668
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2656
2669
|
type: "number"
|
|
2657
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2670
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$5)), [
|
|
2658
2671
|
[vModelText, _ctx.form_elements[field]]
|
|
2659
2672
|
])
|
|
2660
2673
|
: createCommentVNode("v-if", true),
|
|
@@ -2668,7 +2681,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2668
2681
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2669
2682
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2670
2683
|
type: "password"
|
|
2671
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2684
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$4)), [
|
|
2672
2685
|
[vModelText, _ctx.form_elements[field]]
|
|
2673
2686
|
])
|
|
2674
2687
|
: createCommentVNode("v-if", true),
|
|
@@ -2683,7 +2696,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2683
2696
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2684
2697
|
type: "email",
|
|
2685
2698
|
required: ""
|
|
2686
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2699
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$4)), [
|
|
2687
2700
|
[vModelText, _ctx.form_elements[field]]
|
|
2688
2701
|
])
|
|
2689
2702
|
: createCommentVNode("v-if", true),
|
|
@@ -2696,7 +2709,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2696
2709
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2697
2710
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
|
|
2698
2711
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2699
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2712
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
|
|
2700
2713
|
[vModelText, _ctx.form_elements[field]]
|
|
2701
2714
|
])
|
|
2702
2715
|
: createCommentVNode("v-if", true),
|
|
@@ -2735,7 +2748,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2735
2748
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2736
2749
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2737
2750
|
type: "text"
|
|
2738
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2751
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
|
|
2739
2752
|
[vModelText, _ctx.form_elements[field]]
|
|
2740
2753
|
])
|
|
2741
2754
|
: createCommentVNode("v-if", true),
|
|
@@ -2746,7 +2759,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2746
2759
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2747
2760
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2748
2761
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2749
|
-
}, null, 42 /* CLASS, PROPS,
|
|
2762
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_16$3)), [
|
|
2750
2763
|
[vModelText, _ctx.form_elements[field]]
|
|
2751
2764
|
])
|
|
2752
2765
|
: createCommentVNode("v-if", true),
|
|
@@ -2764,7 +2777,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2764
2777
|
value: item.id
|
|
2765
2778
|
}, toDisplayString(item.name), 9 /* TEXT, PROPS */, _hoisted_18$3))
|
|
2766
2779
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2767
|
-
], 42 /* CLASS, PROPS,
|
|
2780
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_17$3)), [
|
|
2768
2781
|
[vModelSelect, _ctx.form_elements[field]]
|
|
2769
2782
|
])
|
|
2770
2783
|
: createCommentVNode("v-if", true),
|
|
@@ -2776,7 +2789,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2776
2789
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2777
2790
|
]),
|
|
2778
2791
|
($props.hasTerms)
|
|
2779
|
-
? (openBlock(), createElementBlock("div", _hoisted_20$1, _hoisted_23$1))
|
|
2792
|
+
? (openBlock(), createElementBlock("div", _hoisted_20$1, [..._hoisted_23$1]))
|
|
2780
2793
|
: createCommentVNode("v-if", true),
|
|
2781
2794
|
(_ctx.form_status == 1)
|
|
2782
2795
|
? (openBlock(), createElementBlock("button", {
|
|
@@ -2806,12 +2819,10 @@ var script$s = {
|
|
|
2806
2819
|
__name: 'EmailInput',
|
|
2807
2820
|
props: ['modelValue','label'],
|
|
2808
2821
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2809
|
-
setup(__props, { emit }) {
|
|
2822
|
+
setup(__props, { emit: __emit }) {
|
|
2810
2823
|
|
|
2811
2824
|
const props = __props;
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2825
|
+
const emit = __emit;
|
|
2815
2826
|
const inputModel = ref(null);
|
|
2816
2827
|
|
|
2817
2828
|
const modelValueUpdated = (e) => {
|
|
@@ -2834,7 +2845,7 @@ return (_ctx, _cache) => {
|
|
|
2834
2845
|
onChange: modelValueUpdated,
|
|
2835
2846
|
onKeydown: modelValueUpdated,
|
|
2836
2847
|
onUpdated: modelValueUpdated
|
|
2837
|
-
}, null, 544 /*
|
|
2848
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
2838
2849
|
[vModelText, inputModel.value]
|
|
2839
2850
|
])
|
|
2840
2851
|
}
|
|
@@ -2851,12 +2862,10 @@ var script$r = {
|
|
|
2851
2862
|
__name: 'NumberInput',
|
|
2852
2863
|
props: ['modelValue','label','min','max'],
|
|
2853
2864
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2854
|
-
setup(__props, { emit }) {
|
|
2865
|
+
setup(__props, { emit: __emit }) {
|
|
2855
2866
|
|
|
2856
2867
|
const props = __props;
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2868
|
+
const emit = __emit;
|
|
2860
2869
|
const inputModel = ref(null);
|
|
2861
2870
|
|
|
2862
2871
|
const modelValueUpdated = (e) => {
|
|
@@ -2881,7 +2890,7 @@ return (_ctx, _cache) => {
|
|
|
2881
2890
|
onChange: modelValueUpdated,
|
|
2882
2891
|
onKeydown: modelValueUpdated,
|
|
2883
2892
|
onUpdated: modelValueUpdated
|
|
2884
|
-
}, null, 40 /* PROPS,
|
|
2893
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$l)), [
|
|
2885
2894
|
[vModelText, inputModel.value]
|
|
2886
2895
|
])
|
|
2887
2896
|
}
|
|
@@ -2895,12 +2904,10 @@ var script$q = {
|
|
|
2895
2904
|
__name: 'TextInput',
|
|
2896
2905
|
props: ['modelValue','label','isInvalid'],
|
|
2897
2906
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2898
|
-
setup(__props, { emit }) {
|
|
2907
|
+
setup(__props, { emit: __emit }) {
|
|
2899
2908
|
|
|
2900
2909
|
const props = __props;
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2910
|
+
const emit = __emit;
|
|
2904
2911
|
const inputModel = ref(null);
|
|
2905
2912
|
|
|
2906
2913
|
const modelValueUpdated = (e) => {
|
|
@@ -2925,7 +2932,7 @@ return (_ctx, _cache) => {
|
|
|
2925
2932
|
onChange: modelValueUpdated,
|
|
2926
2933
|
onKeydown: modelValueUpdated,
|
|
2927
2934
|
onUpdated: modelValueUpdated
|
|
2928
|
-
}, null, 544 /*
|
|
2935
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
2929
2936
|
[vModelText, inputModel.value]
|
|
2930
2937
|
])
|
|
2931
2938
|
}
|
|
@@ -2939,12 +2946,10 @@ var script$p = {
|
|
|
2939
2946
|
__name: 'TextAreaInput',
|
|
2940
2947
|
props: ['modelValue','label'],
|
|
2941
2948
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2942
|
-
setup(__props, { emit }) {
|
|
2949
|
+
setup(__props, { emit: __emit }) {
|
|
2943
2950
|
|
|
2944
2951
|
const props = __props;
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2952
|
+
const emit = __emit;
|
|
2948
2953
|
const inputModel = ref(null);
|
|
2949
2954
|
|
|
2950
2955
|
const modelValueUpdated = (e) => {
|
|
@@ -2967,7 +2972,7 @@ return (_ctx, _cache) => {
|
|
|
2967
2972
|
onChange: modelValueUpdated,
|
|
2968
2973
|
onKeydown: modelValueUpdated,
|
|
2969
2974
|
onUpdated: modelValueUpdated
|
|
2970
|
-
}, null, 544 /*
|
|
2975
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
2971
2976
|
[vModelText, inputModel.value]
|
|
2972
2977
|
])
|
|
2973
2978
|
}
|
|
@@ -2984,12 +2989,10 @@ var script$o = {
|
|
|
2984
2989
|
__name: 'SelectInput',
|
|
2985
2990
|
props: ['modelValue','label','data','dataUrl'],
|
|
2986
2991
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
2987
|
-
setup(__props, { emit }) {
|
|
2992
|
+
setup(__props, { emit: __emit }) {
|
|
2988
2993
|
|
|
2989
2994
|
const props = __props;
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2995
|
+
const emit = __emit;
|
|
2993
2996
|
const inputModel = ref(null);
|
|
2994
2997
|
const selectOptions = ref(null);
|
|
2995
2998
|
const modelValueUpdated = (e) => {
|
|
@@ -3038,7 +3041,7 @@ return (_ctx, _cache) => {
|
|
|
3038
3041
|
value: option.id
|
|
3039
3042
|
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$k))
|
|
3040
3043
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3041
|
-
], 544 /*
|
|
3044
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3042
3045
|
[vModelSelect, inputModel.value]
|
|
3043
3046
|
])
|
|
3044
3047
|
}
|
|
@@ -3052,12 +3055,10 @@ var script$n = {
|
|
|
3052
3055
|
__name: 'PasswordInput',
|
|
3053
3056
|
props: ['modelValue','label'],
|
|
3054
3057
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
3055
|
-
setup(__props, { emit }) {
|
|
3058
|
+
setup(__props, { emit: __emit }) {
|
|
3056
3059
|
|
|
3057
3060
|
const props = __props;
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
+
const emit = __emit;
|
|
3061
3062
|
const inputModel = ref(null);
|
|
3062
3063
|
|
|
3063
3064
|
const modelValueUpdated = (e) => {
|
|
@@ -3076,7 +3077,7 @@ return (_ctx, _cache) => {
|
|
|
3076
3077
|
onChange: modelValueUpdated,
|
|
3077
3078
|
onKeydown: modelValueUpdated,
|
|
3078
3079
|
onUpdated: modelValueUpdated
|
|
3079
|
-
}, null, 544 /*
|
|
3080
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3080
3081
|
[vModelText, inputModel.value]
|
|
3081
3082
|
])
|
|
3082
3083
|
}
|
|
@@ -3128,12 +3129,10 @@ var script$m = {
|
|
|
3128
3129
|
'phones','numbers','selects','dates','gqlMutation'
|
|
3129
3130
|
],
|
|
3130
3131
|
emits: ['success','fieldChanged','formSubmitted','formError'],
|
|
3131
|
-
setup(__props, { emit }) {
|
|
3132
|
+
setup(__props, { emit: __emit }) {
|
|
3132
3133
|
|
|
3133
3134
|
const props = __props;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3135
|
+
const emit = __emit;
|
|
3137
3136
|
const formFields = ref([]);
|
|
3138
3137
|
const getFieldComponent = (fieldObj)=>{
|
|
3139
3138
|
if(fieldObj.component){
|
|
@@ -3366,7 +3365,7 @@ return (_ctx, _cache) => {
|
|
|
3366
3365
|
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3367
3366
|
: createCommentVNode("v-if", true),
|
|
3368
3367
|
(unref(isFloating))
|
|
3369
|
-
? (openBlock(), createElementBlock("div", _hoisted_5$8, _hoisted_9$5))
|
|
3368
|
+
? (openBlock(), createElementBlock("div", _hoisted_5$8, [..._hoisted_9$5]))
|
|
3370
3369
|
: createCommentVNode("v-if", true),
|
|
3371
3370
|
(field.helper)
|
|
3372
3371
|
? (openBlock(), createElementBlock("div", {
|
|
@@ -3402,7 +3401,7 @@ return (_ctx, _cache) => {
|
|
|
3402
3401
|
: createCommentVNode("v-if", true)
|
|
3403
3402
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
|
|
3404
3403
|
], 2 /* CLASS */)
|
|
3405
|
-
], 34 /* CLASS,
|
|
3404
|
+
], 34 /* CLASS, NEED_HYDRATION */)
|
|
3406
3405
|
], 64 /* STABLE_FRAGMENT */))
|
|
3407
3406
|
}
|
|
3408
3407
|
}
|
|
@@ -3435,8 +3434,6 @@ var script$l = {
|
|
|
3435
3434
|
|
|
3436
3435
|
const props = __props;
|
|
3437
3436
|
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
3437
|
ref(props);
|
|
3441
3438
|
let btnClass=props.class;
|
|
3442
3439
|
const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
@@ -3508,12 +3505,10 @@ var script$k = {
|
|
|
3508
3505
|
}
|
|
3509
3506
|
},
|
|
3510
3507
|
emits: ['modalClosed'],
|
|
3511
|
-
setup(__props, { emit }) {
|
|
3508
|
+
setup(__props, { emit: __emit }) {
|
|
3512
3509
|
|
|
3510
|
+
const emit = __emit;
|
|
3513
3511
|
const props = __props;
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
3512
|
onMounted(() => {
|
|
3518
3513
|
const modal = document.getElementById(props.modalId);
|
|
3519
3514
|
modal.addEventListener('hidden.bs.modal', event => {
|
|
@@ -3570,12 +3565,10 @@ var script$j = {
|
|
|
3570
3565
|
'numbers',
|
|
3571
3566
|
'customComponent','modalTitle','class','successMessage'],
|
|
3572
3567
|
emits: ['success'],
|
|
3573
|
-
setup(__props, { emit }) {
|
|
3568
|
+
setup(__props, { emit: __emit }) {
|
|
3574
3569
|
|
|
3575
3570
|
const props = __props;
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3571
|
+
const emit = __emit;
|
|
3579
3572
|
ref(props);
|
|
3580
3573
|
let btnClass=props.class;
|
|
3581
3574
|
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
@@ -3629,12 +3622,10 @@ var script$i = {
|
|
|
3629
3622
|
'numbers',
|
|
3630
3623
|
'customComponent','modalTitle','class','successMessage'],
|
|
3631
3624
|
emits: ['success'],
|
|
3632
|
-
setup(__props, { emit }) {
|
|
3625
|
+
setup(__props, { emit: __emit }) {
|
|
3633
3626
|
|
|
3634
3627
|
const props = __props;
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3628
|
+
const emit = __emit;
|
|
3638
3629
|
const formProps = ref(props);
|
|
3639
3630
|
let btnClass=props.class;
|
|
3640
3631
|
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
@@ -3698,12 +3689,10 @@ var script$h = {
|
|
|
3698
3689
|
}
|
|
3699
3690
|
},
|
|
3700
3691
|
emits: ['canvasClosed'],
|
|
3701
|
-
setup(__props, { emit }) {
|
|
3692
|
+
setup(__props, { emit: __emit }) {
|
|
3702
3693
|
|
|
3694
|
+
const emit = __emit;
|
|
3703
3695
|
const props = __props;
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
3696
|
const pos = ref(props.position ?? props.side);
|
|
3708
3697
|
const canvasSide = ref(pos.value ? `offcanvas-${pos.value}` : 'offcanvas-start');
|
|
3709
3698
|
|
|
@@ -3994,7 +3983,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3994
3983
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.pageOptions, (option) => {
|
|
3995
3984
|
return (openBlock(), createElementBlock("option", { value: option }, toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_4$7))
|
|
3996
3985
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
3997
|
-
], 544 /*
|
|
3986
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
3998
3987
|
[vModelSelect, $data.per_page]
|
|
3999
3988
|
]),
|
|
4000
3989
|
createElementVNode("span", _hoisted_5$6, " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
@@ -4040,7 +4029,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4040
4029
|
]))
|
|
4041
4030
|
: (openBlock(), createElementBlock("div", _hoisted_11$3, [
|
|
4042
4031
|
(this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
|
|
4043
|
-
? (openBlock(), createElementBlock("div", _hoisted_12$2, _hoisted_14$2))
|
|
4032
|
+
? (openBlock(), createElementBlock("div", _hoisted_12$2, [..._hoisted_14$2]))
|
|
4044
4033
|
: createCommentVNode("v-if", true),
|
|
4045
4034
|
(!$props.hideCount)
|
|
4046
4035
|
? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
@@ -4095,14 +4084,12 @@ var script$e = {
|
|
|
4095
4084
|
}
|
|
4096
4085
|
},
|
|
4097
4086
|
emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
|
|
4098
|
-
setup(__props, { emit }) {
|
|
4087
|
+
setup(__props, { emit: __emit }) {
|
|
4099
4088
|
|
|
4100
4089
|
const props = __props;
|
|
4101
4090
|
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
4091
|
const processing = ref(false);
|
|
4105
|
-
|
|
4092
|
+
const emit = __emit;
|
|
4106
4093
|
const actionSuccessful = (res)=>{
|
|
4107
4094
|
processing.value = false;
|
|
4108
4095
|
res.actionType = 'silentAction';
|
|
@@ -4194,13 +4181,11 @@ var script$d = {
|
|
|
4194
4181
|
}
|
|
4195
4182
|
},
|
|
4196
4183
|
emits: ['actionSuccessful','actionFailed','success'],
|
|
4197
|
-
setup(__props, { emit }) {
|
|
4184
|
+
setup(__props, { emit: __emit }) {
|
|
4198
4185
|
|
|
4199
4186
|
const props = __props;
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
4187
|
const processing = ref(false);
|
|
4203
|
-
|
|
4188
|
+
const emit = __emit;
|
|
4204
4189
|
const actionSuccessful = (res)=>{
|
|
4205
4190
|
processing.value = false;
|
|
4206
4191
|
res.actionType = 'silentAction';
|
|
@@ -4297,13 +4282,11 @@ var script$c = {
|
|
|
4297
4282
|
}
|
|
4298
4283
|
},
|
|
4299
4284
|
emits: ['rangeSelected'],
|
|
4300
|
-
setup(__props, { emit }) {
|
|
4285
|
+
setup(__props, { emit: __emit }) {
|
|
4301
4286
|
|
|
4302
4287
|
const props = __props;
|
|
4303
4288
|
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4289
|
+
const emit = __emit;
|
|
4307
4290
|
|
|
4308
4291
|
const selectedDate = ref(null);
|
|
4309
4292
|
const rangeLabel = ref(null);
|
|
@@ -4971,7 +4954,7 @@ return (_ctx, _cache) => {
|
|
|
4971
4954
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
|
|
4972
4955
|
placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
|
|
4973
4956
|
class: "form-control sh-search-input"
|
|
4974
|
-
}, null, 40 /* PROPS,
|
|
4957
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_10$1), [
|
|
4975
4958
|
[vModelText, _ctx.filter_value]
|
|
4976
4959
|
]),
|
|
4977
4960
|
(_ctx.filter_value.length > 1)
|
|
@@ -4981,7 +4964,7 @@ return (_ctx, _cache) => {
|
|
|
4981
4964
|
value: true,
|
|
4982
4965
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((_ctx.exactMatch) = $event)),
|
|
4983
4966
|
type: "checkbox"
|
|
4984
|
-
}, null, 544 /*
|
|
4967
|
+
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
4985
4968
|
[vModelCheckbox, _ctx.exactMatch]
|
|
4986
4969
|
]),
|
|
4987
4970
|
_hoisted_12$1
|
|
@@ -4994,7 +4977,7 @@ return (_ctx, _cache) => {
|
|
|
4994
4977
|
(_ctx.hasDefaultSlot)
|
|
4995
4978
|
? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4996
4979
|
(_ctx.loading === 'loading')
|
|
4997
|
-
? (openBlock(), createElementBlock("div", _hoisted_13$1, _hoisted_15$1))
|
|
4980
|
+
? (openBlock(), createElementBlock("div", _hoisted_13$1, [..._hoisted_15$1]))
|
|
4998
4981
|
: (_ctx.loading === 'error')
|
|
4999
4982
|
? (openBlock(), createElementBlock("div", _hoisted_16$1, [
|
|
5000
4983
|
createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
@@ -5012,7 +4995,7 @@ return (_ctx, _cache) => {
|
|
|
5012
4995
|
: (_ctx.hasRecordsSlot)
|
|
5013
4996
|
? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
5014
4997
|
(_ctx.loading === 'loading' && !__props.cacheKey)
|
|
5015
|
-
? (openBlock(), createElementBlock("div", _hoisted_17$1, _hoisted_19))
|
|
4998
|
+
? (openBlock(), createElementBlock("div", _hoisted_17$1, [..._hoisted_19]))
|
|
5016
4999
|
: (_ctx.loading === 'error' && !__props.cacheKey)
|
|
5017
5000
|
? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
5018
5001
|
createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
@@ -5073,7 +5056,7 @@ return (_ctx, _cache) => {
|
|
|
5073
5056
|
? (openBlock(), createElementBlock("tr", _hoisted_28, [
|
|
5074
5057
|
createElementVNode("td", {
|
|
5075
5058
|
colspan: _ctx.tableHeaders.length
|
|
5076
|
-
}, _hoisted_31, 8 /* PROPS */, _hoisted_29)
|
|
5059
|
+
}, [..._hoisted_31], 8 /* PROPS */, _hoisted_29)
|
|
5077
5060
|
]))
|
|
5078
5061
|
: (_ctx.loading === 'error')
|
|
5079
5062
|
? (openBlock(), createElementBlock("tr", _hoisted_32, [
|
|
@@ -5245,7 +5228,7 @@ return (_ctx, _cache) => {
|
|
|
5245
5228
|
], 2 /* CLASS */))
|
|
5246
5229
|
: (openBlock(), createElementBlock("div", _hoisted_47, [
|
|
5247
5230
|
(_ctx.loading === 'loading')
|
|
5248
|
-
? (openBlock(), createElementBlock("div", _hoisted_48, _hoisted_50))
|
|
5231
|
+
? (openBlock(), createElementBlock("div", _hoisted_48, [..._hoisted_50]))
|
|
5249
5232
|
: (_ctx.loading === 'error')
|
|
5250
5233
|
? (openBlock(), createElementBlock("div", _hoisted_51, [
|
|
5251
5234
|
createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
|
|
@@ -5452,8 +5435,6 @@ var script$a = {
|
|
|
5452
5435
|
setup(__props) {
|
|
5453
5436
|
|
|
5454
5437
|
const props = __props;
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
5438
|
const route = useRoute();
|
|
5458
5439
|
const router = useRouter();
|
|
5459
5440
|
const currentTab = ref('');
|
|
@@ -5581,8 +5562,6 @@ var script$9 = {
|
|
|
5581
5562
|
setup(__props) {
|
|
5582
5563
|
|
|
5583
5564
|
const props = __props;
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
5565
|
const tabs = props.tabs;
|
|
5587
5566
|
let currentTab = shallowRef(null);
|
|
5588
5567
|
const generatedId = ref(null);
|
|
@@ -5646,8 +5625,6 @@ var script$8 = {
|
|
|
5646
5625
|
},
|
|
5647
5626
|
setup(__props) {
|
|
5648
5627
|
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
5628
|
return (_ctx, _cache) => {
|
|
5652
5629
|
return (openBlock(), createElementBlock("a", {
|
|
5653
5630
|
href: `#${__props.modalId}`,
|
|
@@ -5675,8 +5652,6 @@ var script$7 = {
|
|
|
5675
5652
|
},
|
|
5676
5653
|
setup(__props) {
|
|
5677
5654
|
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
5655
|
return (_ctx, _cache) => {
|
|
5681
5656
|
return (openBlock(), createElementBlock("a", {
|
|
5682
5657
|
href: `#${__props.canvasId}`,
|
|
@@ -5735,9 +5710,9 @@ const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElemen
|
|
|
5735
5710
|
var script$6 = {
|
|
5736
5711
|
__name: 'ManagePermissions',
|
|
5737
5712
|
emits: ['success'],
|
|
5738
|
-
setup(__props, { emit }) {
|
|
5739
|
-
|
|
5713
|
+
setup(__props, { emit: __emit }) {
|
|
5740
5714
|
|
|
5715
|
+
const emit = __emit;
|
|
5741
5716
|
|
|
5742
5717
|
const userStore =useUserStore();
|
|
5743
5718
|
|
|
@@ -5839,7 +5814,7 @@ return (_ctx, _cache) => {
|
|
|
5839
5814
|
return (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
5840
5815
|
createElementVNode("div", _hoisted_2$3, [
|
|
5841
5816
|
(loadingModules.value)
|
|
5842
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$3, _hoisted_5$2))
|
|
5817
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$3, [..._hoisted_5$2]))
|
|
5843
5818
|
: (openBlock(), createElementBlock("ul", _hoisted_6$2, [
|
|
5844
5819
|
(openBlock(true), createElementBlock(Fragment, null, renderList(modules.value, (module) => {
|
|
5845
5820
|
return (openBlock(), createElementBlock("li", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iankibetsh/shframework",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.9",
|
|
4
4
|
"description": "Vue library for handling laravel backend",
|
|
5
5
|
"main": "dist/library.js",
|
|
6
6
|
"module": "dist/library.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"moment": "^2.29.3",
|
|
29
29
|
"nprogress": "^0.2.0",
|
|
30
30
|
"pinia": "^2.0.22",
|
|
31
|
-
"sweetalert2": "^11.
|
|
31
|
+
"sweetalert2": "^11.10.5",
|
|
32
32
|
"vue": "^3.2.37",
|
|
33
33
|
"lodash": "^4.17.21"
|
|
34
34
|
},
|