@iankibetsh/shframework 5.5.6 → 5.5.8
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 +33 -77
- package/dist/library.mjs +32 -77
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -9,6 +9,7 @@ var bootstrap = require('bootstrap');
|
|
|
9
9
|
var NProgress = require('nprogress');
|
|
10
10
|
var vue = require('vue');
|
|
11
11
|
var _ = require('lodash');
|
|
12
|
+
var ShModalForm = require('@/lib/components/ShModalForm.vue');
|
|
12
13
|
var pinia = require('pinia');
|
|
13
14
|
var vueRouter = require('vue-router');
|
|
14
15
|
|
|
@@ -18,6 +19,7 @@ var Axios__default = /*#__PURE__*/_interopDefaultLegacy(Axios);
|
|
|
18
19
|
var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
|
|
19
20
|
var NProgress__default = /*#__PURE__*/_interopDefaultLegacy(NProgress);
|
|
20
21
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
22
|
+
var ShModalForm__default = /*#__PURE__*/_interopDefaultLegacy(ShModalForm);
|
|
21
23
|
|
|
22
24
|
function setItem (key, value) {
|
|
23
25
|
let toStore = value;
|
|
@@ -2140,7 +2142,7 @@ var script$A = {
|
|
|
2140
2142
|
}
|
|
2141
2143
|
};
|
|
2142
2144
|
|
|
2143
|
-
const _hoisted_1$
|
|
2145
|
+
const _hoisted_1$q = {
|
|
2144
2146
|
class: "sh-phone mb-3",
|
|
2145
2147
|
style: {"display":"flex"}
|
|
2146
2148
|
};
|
|
@@ -2153,7 +2155,7 @@ const _hoisted_4$f = ["value"];
|
|
|
2153
2155
|
const _hoisted_5$c = ["disabled"];
|
|
2154
2156
|
|
|
2155
2157
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2156
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2158
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
|
|
2157
2159
|
($data.selectedCountry)
|
|
2158
2160
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, [
|
|
2159
2161
|
vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
|
|
@@ -2191,7 +2193,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2191
2193
|
script$A.render = render$4;
|
|
2192
2194
|
script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
2193
2195
|
|
|
2194
|
-
const _hoisted_1$
|
|
2196
|
+
const _hoisted_1$p = {
|
|
2195
2197
|
key: 0,
|
|
2196
2198
|
class: "dropdown sh-suggest"
|
|
2197
2199
|
};
|
|
@@ -2350,6 +2352,7 @@ const initializeExisting = (currentValue)=>{
|
|
|
2350
2352
|
}
|
|
2351
2353
|
};
|
|
2352
2354
|
vue.watch(()=>props.modelValue, (newValue)=>{
|
|
2355
|
+
selectedSuggestions.value = [];
|
|
2353
2356
|
if(newValue) {
|
|
2354
2357
|
initializeExisting(newValue);
|
|
2355
2358
|
}
|
|
@@ -2357,7 +2360,7 @@ vue.watch(()=>props.modelValue, (newValue)=>{
|
|
|
2357
2360
|
|
|
2358
2361
|
return (_ctx, _cache) => {
|
|
2359
2362
|
return (vue.unref(id))
|
|
2360
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2363
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
2361
2364
|
vue.createElementVNode("div", {
|
|
2362
2365
|
id: vue.unref(id),
|
|
2363
2366
|
"data-bs-toggle": "dropdown",
|
|
@@ -2783,7 +2786,7 @@ var script$y = {
|
|
|
2783
2786
|
}
|
|
2784
2787
|
};
|
|
2785
2788
|
|
|
2786
|
-
const _hoisted_1$
|
|
2789
|
+
const _hoisted_1$o = {
|
|
2787
2790
|
ref: "ShAutoForm",
|
|
2788
2791
|
class: "sh-form"
|
|
2789
2792
|
};
|
|
@@ -2827,7 +2830,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2827
2830
|
|
|
2828
2831
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2829
2832
|
_cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* CACHED */)),
|
|
2830
|
-
vue.createElementVNode("form", _hoisted_1$
|
|
2833
|
+
vue.createElementVNode("form", _hoisted_1$o, [
|
|
2831
2834
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2832
2835
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2833
2836
|
(_ctx.form_status == 3)
|
|
@@ -3126,7 +3129,7 @@ return (_ctx, _cache) => {
|
|
|
3126
3129
|
|
|
3127
3130
|
script$x.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
3128
3131
|
|
|
3129
|
-
const _hoisted_1$
|
|
3132
|
+
const _hoisted_1$n = ["min", "max"];
|
|
3130
3133
|
|
|
3131
3134
|
|
|
3132
3135
|
var script$w = {
|
|
@@ -3161,7 +3164,7 @@ return (_ctx, _cache) => {
|
|
|
3161
3164
|
onChange: modelValueUpdated,
|
|
3162
3165
|
onKeydown: modelValueUpdated,
|
|
3163
3166
|
onUpdated: modelValueUpdated
|
|
3164
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$
|
|
3167
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
|
|
3165
3168
|
[vue.vModelText, inputModel.value]
|
|
3166
3169
|
])
|
|
3167
3170
|
}
|
|
@@ -3253,7 +3256,7 @@ return (_ctx, _cache) => {
|
|
|
3253
3256
|
|
|
3254
3257
|
script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
3255
3258
|
|
|
3256
|
-
const _hoisted_1$
|
|
3259
|
+
const _hoisted_1$m = ["value"];
|
|
3257
3260
|
|
|
3258
3261
|
|
|
3259
3262
|
var script$t = {
|
|
@@ -3310,7 +3313,7 @@ return (_ctx, _cache) => {
|
|
|
3310
3313
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
3311
3314
|
key: option.id,
|
|
3312
3315
|
value: option.id
|
|
3313
|
-
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3316
|
+
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
|
|
3314
3317
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3315
3318
|
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3316
3319
|
[vue.vModelSelect, inputModel.value]
|
|
@@ -3400,7 +3403,7 @@ return (_ctx, _cache) => {
|
|
|
3400
3403
|
|
|
3401
3404
|
script$r.__file = "src/lib/components/form-components/DateInput.vue";
|
|
3402
3405
|
|
|
3403
|
-
const _hoisted_1$
|
|
3406
|
+
const _hoisted_1$l = ["name", "onUpdate:modelValue"];
|
|
3404
3407
|
const _hoisted_2$f = ["innerHTML"];
|
|
3405
3408
|
const _hoisted_3$c = {
|
|
3406
3409
|
key: 0,
|
|
@@ -3685,7 +3688,7 @@ return (_ctx, _cache) => {
|
|
|
3685
3688
|
type: "hidden",
|
|
3686
3689
|
name: field.field,
|
|
3687
3690
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3688
|
-
}, null, 8 /* PROPS */, _hoisted_1$
|
|
3691
|
+
}, null, 8 /* PROPS */, _hoisted_1$l)), [
|
|
3689
3692
|
[vue.vModelText, formFields.value[index].value]
|
|
3690
3693
|
])
|
|
3691
3694
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -3767,7 +3770,7 @@ return (_ctx, _cache) => {
|
|
|
3767
3770
|
|
|
3768
3771
|
script$q.__file = "src/lib/components/ShAutoForm.vue";
|
|
3769
3772
|
|
|
3770
|
-
const _hoisted_1$
|
|
3773
|
+
const _hoisted_1$k = ["id", "data-bs-backdrop"];
|
|
3771
3774
|
const _hoisted_2$e = { class: "modal-content" };
|
|
3772
3775
|
const _hoisted_3$b = { class: "modal-header" };
|
|
3773
3776
|
const _hoisted_4$b = { class: "modal-title flex-fill" };
|
|
@@ -3850,7 +3853,7 @@ return (_ctx, _cache) => {
|
|
|
3850
3853
|
])
|
|
3851
3854
|
])
|
|
3852
3855
|
], 2 /* CLASS */)
|
|
3853
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3856
|
+
], 8 /* PROPS */, _hoisted_1$k))
|
|
3854
3857
|
}
|
|
3855
3858
|
}
|
|
3856
3859
|
|
|
@@ -3858,7 +3861,7 @@ return (_ctx, _cache) => {
|
|
|
3858
3861
|
|
|
3859
3862
|
script$p.__file = "src/lib/components/ShModal.vue";
|
|
3860
3863
|
|
|
3861
|
-
const _hoisted_1$
|
|
3864
|
+
const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
|
|
3862
3865
|
|
|
3863
3866
|
var script$o = {
|
|
3864
3867
|
__name: 'ShDropDownForm',
|
|
@@ -3910,7 +3913,7 @@ const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3910
3913
|
return (_ctx, _cache) => {
|
|
3911
3914
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3912
3915
|
_cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
|
|
3913
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
3916
|
+
vue.createElementVNode("div", _hoisted_1$j, [
|
|
3914
3917
|
vue.createElementVNode("a", {
|
|
3915
3918
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
3916
3919
|
href: "#",
|
|
@@ -3943,7 +3946,7 @@ return (_ctx, _cache) => {
|
|
|
3943
3946
|
|
|
3944
3947
|
script$o.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3945
3948
|
|
|
3946
|
-
const _hoisted_1$
|
|
3949
|
+
const _hoisted_1$i = ["href"];
|
|
3947
3950
|
|
|
3948
3951
|
var script$n = {
|
|
3949
3952
|
__name: 'ShModalForm',
|
|
@@ -3992,9 +3995,6 @@ const formError = (res)=>{
|
|
|
3992
3995
|
emit('formError',res);
|
|
3993
3996
|
};
|
|
3994
3997
|
|
|
3995
|
-
const emitClick = ()=>{
|
|
3996
|
-
emit('click');
|
|
3997
|
-
};
|
|
3998
3998
|
|
|
3999
3999
|
|
|
4000
4000
|
const allProps = vue.ref({});
|
|
@@ -4009,15 +4009,12 @@ const cleanedProp = vue.computed(()=>{
|
|
|
4009
4009
|
});
|
|
4010
4010
|
|
|
4011
4011
|
return (_ctx, _cache) => {
|
|
4012
|
-
return (vue.openBlock(), vue.createElementBlock(
|
|
4013
|
-
vue.
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
}, [
|
|
4019
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
4020
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$j),
|
|
4012
|
+
return (vue.openBlock(), vue.createElementBlock("a", {
|
|
4013
|
+
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
4014
|
+
href: '#' + vue.unref(realModalId),
|
|
4015
|
+
"data-bs-toggle": "modal"
|
|
4016
|
+
}, [
|
|
4017
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
4021
4018
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
4022
4019
|
vue.createVNode(script$p, {
|
|
4023
4020
|
"modal-size": __props.modalSize,
|
|
@@ -4038,7 +4035,7 @@ return (_ctx, _cache) => {
|
|
|
4038
4035
|
_: 1 /* STABLE */
|
|
4039
4036
|
}, 8 /* PROPS */, ["modal-size", "modal-id", "modal-title"])
|
|
4040
4037
|
]))
|
|
4041
|
-
],
|
|
4038
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$i))
|
|
4042
4039
|
}
|
|
4043
4040
|
}
|
|
4044
4041
|
|
|
@@ -4046,59 +4043,18 @@ return (_ctx, _cache) => {
|
|
|
4046
4043
|
|
|
4047
4044
|
script$n.__file = "src/lib/components/ShModalForm.vue";
|
|
4048
4045
|
|
|
4049
|
-
const _hoisted_1$i = ["href"];
|
|
4050
|
-
|
|
4051
4046
|
var script$m = {
|
|
4052
4047
|
__name: 'ShModalFormAuto',
|
|
4053
|
-
|
|
4054
|
-
'classes',
|
|
4055
|
-
'hasTerms',
|
|
4056
|
-
'country_code',
|
|
4057
|
-
'submitBtnClass',
|
|
4058
|
-
'fields',
|
|
4059
|
-
'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
|
|
4060
|
-
'modalSize',
|
|
4061
|
-
'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
|
|
4062
|
-
'failedCallback', 'labels', 'editors',
|
|
4063
|
-
'datePickers',
|
|
4064
|
-
'textAreas',
|
|
4065
|
-
'files',
|
|
4066
|
-
'phones',
|
|
4067
|
-
'numbers',
|
|
4068
|
-
'customComponent','modalTitle','class','successMessage'],
|
|
4069
|
-
emits: ['success'],
|
|
4070
|
-
setup(__props, { emit: __emit }) {
|
|
4048
|
+
setup(__props) {
|
|
4071
4049
|
|
|
4072
|
-
const props = __props;
|
|
4073
|
-
const emit = __emit;
|
|
4074
|
-
const formProps = vue.ref(props);
|
|
4075
|
-
let btnClass=props.class;
|
|
4076
|
-
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
4077
|
-
const success = (res)=>{
|
|
4078
|
-
emit('success',res);
|
|
4079
|
-
};
|
|
4080
|
-
delete formProps.class;
|
|
4081
4050
|
|
|
4082
4051
|
return (_ctx, _cache) => {
|
|
4083
|
-
return (vue.openBlock(), vue.
|
|
4084
|
-
vue.
|
|
4085
|
-
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
4086
|
-
href: '#' + modalId,
|
|
4087
|
-
"data-bs-toggle": "modal"
|
|
4088
|
-
}, [
|
|
4052
|
+
return (vue.openBlock(), vue.createBlock(ShModalForm__default["default"], null, {
|
|
4053
|
+
default: vue.withCtx(() => [
|
|
4089
4054
|
vue.renderSlot(_ctx.$slots, "default")
|
|
4090
|
-
]
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
"modal-title": __props.modalTitle,
|
|
4094
|
-
"modal-size": __props.modalSize
|
|
4095
|
-
}, {
|
|
4096
|
-
default: vue.withCtx(() => [
|
|
4097
|
-
vue.createVNode(script$q, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
4098
|
-
]),
|
|
4099
|
-
_: 1 /* STABLE */
|
|
4100
|
-
}, 8 /* PROPS */, ["modal-title", "modal-size"])
|
|
4101
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
4055
|
+
]),
|
|
4056
|
+
_: 3 /* FORWARDED */
|
|
4057
|
+
}))
|
|
4102
4058
|
}
|
|
4103
4059
|
}
|
|
4104
4060
|
|
package/dist/library.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { Modal, Offcanvas } from 'bootstrap';
|
|
|
5
5
|
import NProgress from 'nprogress';
|
|
6
6
|
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, watch, unref, normalizeClass, createBlock, resolveDynamicComponent, resolveComponent, inject, useTemplateRef, mergeProps, renderSlot, normalizeStyle, computed, Teleport, createVNode, withCtx, useSlots, onBeforeUnmount, reactive, vModelCheckbox, resolveDirective, shallowRef, normalizeProps, markRaw, isRef } from 'vue';
|
|
7
7
|
import _ from 'lodash';
|
|
8
|
+
import ShModalForm from '@/lib/components/ShModalForm.vue';
|
|
8
9
|
import { defineStore, storeToRefs } from 'pinia';
|
|
9
10
|
import { useRoute, useRouter } from 'vue-router';
|
|
10
11
|
|
|
@@ -2129,7 +2130,7 @@ var script$A = {
|
|
|
2129
2130
|
}
|
|
2130
2131
|
};
|
|
2131
2132
|
|
|
2132
|
-
const _hoisted_1$
|
|
2133
|
+
const _hoisted_1$q = {
|
|
2133
2134
|
class: "sh-phone mb-3",
|
|
2134
2135
|
style: {"display":"flex"}
|
|
2135
2136
|
};
|
|
@@ -2142,7 +2143,7 @@ const _hoisted_4$f = ["value"];
|
|
|
2142
2143
|
const _hoisted_5$c = ["disabled"];
|
|
2143
2144
|
|
|
2144
2145
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2145
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2146
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
2146
2147
|
($data.selectedCountry)
|
|
2147
2148
|
? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
2148
2149
|
createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
|
|
@@ -2180,7 +2181,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2180
2181
|
script$A.render = render$4;
|
|
2181
2182
|
script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
2182
2183
|
|
|
2183
|
-
const _hoisted_1$
|
|
2184
|
+
const _hoisted_1$p = {
|
|
2184
2185
|
key: 0,
|
|
2185
2186
|
class: "dropdown sh-suggest"
|
|
2186
2187
|
};
|
|
@@ -2339,6 +2340,7 @@ const initializeExisting = (currentValue)=>{
|
|
|
2339
2340
|
}
|
|
2340
2341
|
};
|
|
2341
2342
|
watch(()=>props.modelValue, (newValue)=>{
|
|
2343
|
+
selectedSuggestions.value = [];
|
|
2342
2344
|
if(newValue) {
|
|
2343
2345
|
initializeExisting(newValue);
|
|
2344
2346
|
}
|
|
@@ -2346,7 +2348,7 @@ watch(()=>props.modelValue, (newValue)=>{
|
|
|
2346
2348
|
|
|
2347
2349
|
return (_ctx, _cache) => {
|
|
2348
2350
|
return (unref(id))
|
|
2349
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2351
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
2350
2352
|
createElementVNode("div", {
|
|
2351
2353
|
id: unref(id),
|
|
2352
2354
|
"data-bs-toggle": "dropdown",
|
|
@@ -2772,7 +2774,7 @@ var script$y = {
|
|
|
2772
2774
|
}
|
|
2773
2775
|
};
|
|
2774
2776
|
|
|
2775
|
-
const _hoisted_1$
|
|
2777
|
+
const _hoisted_1$o = {
|
|
2776
2778
|
ref: "ShAutoForm",
|
|
2777
2779
|
class: "sh-form"
|
|
2778
2780
|
};
|
|
@@ -2816,7 +2818,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2816
2818
|
|
|
2817
2819
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2818
2820
|
_cache[5] || (_cache[5] = createElementVNode("h5", { class: "d-none" }, null, -1 /* CACHED */)),
|
|
2819
|
-
createElementVNode("form", _hoisted_1$
|
|
2821
|
+
createElementVNode("form", _hoisted_1$o, [
|
|
2820
2822
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2821
2823
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2822
2824
|
(_ctx.form_status == 3)
|
|
@@ -3115,7 +3117,7 @@ return (_ctx, _cache) => {
|
|
|
3115
3117
|
|
|
3116
3118
|
script$x.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
3117
3119
|
|
|
3118
|
-
const _hoisted_1$
|
|
3120
|
+
const _hoisted_1$n = ["min", "max"];
|
|
3119
3121
|
|
|
3120
3122
|
|
|
3121
3123
|
var script$w = {
|
|
@@ -3150,7 +3152,7 @@ return (_ctx, _cache) => {
|
|
|
3150
3152
|
onChange: modelValueUpdated,
|
|
3151
3153
|
onKeydown: modelValueUpdated,
|
|
3152
3154
|
onUpdated: modelValueUpdated
|
|
3153
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$
|
|
3155
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
|
|
3154
3156
|
[vModelText, inputModel.value]
|
|
3155
3157
|
])
|
|
3156
3158
|
}
|
|
@@ -3242,7 +3244,7 @@ return (_ctx, _cache) => {
|
|
|
3242
3244
|
|
|
3243
3245
|
script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
3244
3246
|
|
|
3245
|
-
const _hoisted_1$
|
|
3247
|
+
const _hoisted_1$m = ["value"];
|
|
3246
3248
|
|
|
3247
3249
|
|
|
3248
3250
|
var script$t = {
|
|
@@ -3299,7 +3301,7 @@ return (_ctx, _cache) => {
|
|
|
3299
3301
|
return (openBlock(), createElementBlock("option", {
|
|
3300
3302
|
key: option.id,
|
|
3301
3303
|
value: option.id
|
|
3302
|
-
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3304
|
+
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
|
|
3303
3305
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3304
3306
|
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3305
3307
|
[vModelSelect, inputModel.value]
|
|
@@ -3389,7 +3391,7 @@ return (_ctx, _cache) => {
|
|
|
3389
3391
|
|
|
3390
3392
|
script$r.__file = "src/lib/components/form-components/DateInput.vue";
|
|
3391
3393
|
|
|
3392
|
-
const _hoisted_1$
|
|
3394
|
+
const _hoisted_1$l = ["name", "onUpdate:modelValue"];
|
|
3393
3395
|
const _hoisted_2$f = ["innerHTML"];
|
|
3394
3396
|
const _hoisted_3$c = {
|
|
3395
3397
|
key: 0,
|
|
@@ -3674,7 +3676,7 @@ return (_ctx, _cache) => {
|
|
|
3674
3676
|
type: "hidden",
|
|
3675
3677
|
name: field.field,
|
|
3676
3678
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3677
|
-
}, null, 8 /* PROPS */, _hoisted_1$
|
|
3679
|
+
}, null, 8 /* PROPS */, _hoisted_1$l)), [
|
|
3678
3680
|
[vModelText, formFields.value[index].value]
|
|
3679
3681
|
])
|
|
3680
3682
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -3756,7 +3758,7 @@ return (_ctx, _cache) => {
|
|
|
3756
3758
|
|
|
3757
3759
|
script$q.__file = "src/lib/components/ShAutoForm.vue";
|
|
3758
3760
|
|
|
3759
|
-
const _hoisted_1$
|
|
3761
|
+
const _hoisted_1$k = ["id", "data-bs-backdrop"];
|
|
3760
3762
|
const _hoisted_2$e = { class: "modal-content" };
|
|
3761
3763
|
const _hoisted_3$b = { class: "modal-header" };
|
|
3762
3764
|
const _hoisted_4$b = { class: "modal-title flex-fill" };
|
|
@@ -3839,7 +3841,7 @@ return (_ctx, _cache) => {
|
|
|
3839
3841
|
])
|
|
3840
3842
|
])
|
|
3841
3843
|
], 2 /* CLASS */)
|
|
3842
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3844
|
+
], 8 /* PROPS */, _hoisted_1$k))
|
|
3843
3845
|
}
|
|
3844
3846
|
}
|
|
3845
3847
|
|
|
@@ -3847,7 +3849,7 @@ return (_ctx, _cache) => {
|
|
|
3847
3849
|
|
|
3848
3850
|
script$p.__file = "src/lib/components/ShModal.vue";
|
|
3849
3851
|
|
|
3850
|
-
const _hoisted_1$
|
|
3852
|
+
const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
|
|
3851
3853
|
|
|
3852
3854
|
var script$o = {
|
|
3853
3855
|
__name: 'ShDropDownForm',
|
|
@@ -3899,7 +3901,7 @@ const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3899
3901
|
return (_ctx, _cache) => {
|
|
3900
3902
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3901
3903
|
_cache[0] || (_cache[0] = createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
|
|
3902
|
-
createElementVNode("div", _hoisted_1$
|
|
3904
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
3903
3905
|
createElementVNode("a", {
|
|
3904
3906
|
class: normalizeClass(unref(btnClass)),
|
|
3905
3907
|
href: "#",
|
|
@@ -3932,7 +3934,7 @@ return (_ctx, _cache) => {
|
|
|
3932
3934
|
|
|
3933
3935
|
script$o.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3934
3936
|
|
|
3935
|
-
const _hoisted_1$
|
|
3937
|
+
const _hoisted_1$i = ["href"];
|
|
3936
3938
|
|
|
3937
3939
|
var script$n = {
|
|
3938
3940
|
__name: 'ShModalForm',
|
|
@@ -3981,9 +3983,6 @@ const formError = (res)=>{
|
|
|
3981
3983
|
emit('formError',res);
|
|
3982
3984
|
};
|
|
3983
3985
|
|
|
3984
|
-
const emitClick = ()=>{
|
|
3985
|
-
emit('click');
|
|
3986
|
-
};
|
|
3987
3986
|
|
|
3988
3987
|
|
|
3989
3988
|
const allProps = ref({});
|
|
@@ -3998,15 +3997,12 @@ const cleanedProp = computed(()=>{
|
|
|
3998
3997
|
});
|
|
3999
3998
|
|
|
4000
3999
|
return (_ctx, _cache) => {
|
|
4001
|
-
return (openBlock(), createElementBlock(
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
}, [
|
|
4008
|
-
renderSlot(_ctx.$slots, "default")
|
|
4009
|
-
], 10 /* CLASS, PROPS */, _hoisted_1$j),
|
|
4000
|
+
return (openBlock(), createElementBlock("a", {
|
|
4001
|
+
class: normalizeClass(unref(btnClass)),
|
|
4002
|
+
href: '#' + unref(realModalId),
|
|
4003
|
+
"data-bs-toggle": "modal"
|
|
4004
|
+
}, [
|
|
4005
|
+
renderSlot(_ctx.$slots, "default"),
|
|
4010
4006
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4011
4007
|
createVNode(script$p, {
|
|
4012
4008
|
"modal-size": __props.modalSize,
|
|
@@ -4027,7 +4023,7 @@ return (_ctx, _cache) => {
|
|
|
4027
4023
|
_: 1 /* STABLE */
|
|
4028
4024
|
}, 8 /* PROPS */, ["modal-size", "modal-id", "modal-title"])
|
|
4029
4025
|
]))
|
|
4030
|
-
],
|
|
4026
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$i))
|
|
4031
4027
|
}
|
|
4032
4028
|
}
|
|
4033
4029
|
|
|
@@ -4035,59 +4031,18 @@ return (_ctx, _cache) => {
|
|
|
4035
4031
|
|
|
4036
4032
|
script$n.__file = "src/lib/components/ShModalForm.vue";
|
|
4037
4033
|
|
|
4038
|
-
const _hoisted_1$i = ["href"];
|
|
4039
|
-
|
|
4040
4034
|
var script$m = {
|
|
4041
4035
|
__name: 'ShModalFormAuto',
|
|
4042
|
-
|
|
4043
|
-
'classes',
|
|
4044
|
-
'hasTerms',
|
|
4045
|
-
'country_code',
|
|
4046
|
-
'submitBtnClass',
|
|
4047
|
-
'fields',
|
|
4048
|
-
'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
|
|
4049
|
-
'modalSize',
|
|
4050
|
-
'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
|
|
4051
|
-
'failedCallback', 'labels', 'editors',
|
|
4052
|
-
'datePickers',
|
|
4053
|
-
'textAreas',
|
|
4054
|
-
'files',
|
|
4055
|
-
'phones',
|
|
4056
|
-
'numbers',
|
|
4057
|
-
'customComponent','modalTitle','class','successMessage'],
|
|
4058
|
-
emits: ['success'],
|
|
4059
|
-
setup(__props, { emit: __emit }) {
|
|
4036
|
+
setup(__props) {
|
|
4060
4037
|
|
|
4061
|
-
const props = __props;
|
|
4062
|
-
const emit = __emit;
|
|
4063
|
-
const formProps = ref(props);
|
|
4064
|
-
let btnClass=props.class;
|
|
4065
|
-
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
4066
|
-
const success = (res)=>{
|
|
4067
|
-
emit('success',res);
|
|
4068
|
-
};
|
|
4069
|
-
delete formProps.class;
|
|
4070
4038
|
|
|
4071
4039
|
return (_ctx, _cache) => {
|
|
4072
|
-
return (openBlock(),
|
|
4073
|
-
|
|
4074
|
-
class: normalizeClass(unref(btnClass)),
|
|
4075
|
-
href: '#' + modalId,
|
|
4076
|
-
"data-bs-toggle": "modal"
|
|
4077
|
-
}, [
|
|
4040
|
+
return (openBlock(), createBlock(ShModalForm, null, {
|
|
4041
|
+
default: withCtx(() => [
|
|
4078
4042
|
renderSlot(_ctx.$slots, "default")
|
|
4079
|
-
]
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
"modal-title": __props.modalTitle,
|
|
4083
|
-
"modal-size": __props.modalSize
|
|
4084
|
-
}, {
|
|
4085
|
-
default: withCtx(() => [
|
|
4086
|
-
createVNode(script$q, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
4087
|
-
]),
|
|
4088
|
-
_: 1 /* STABLE */
|
|
4089
|
-
}, 8 /* PROPS */, ["modal-title", "modal-size"])
|
|
4090
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
4043
|
+
]),
|
|
4044
|
+
_: 3 /* FORWARDED */
|
|
4045
|
+
}))
|
|
4091
4046
|
}
|
|
4092
4047
|
}
|
|
4093
4048
|
|