@iankibetsh/shframework 5.5.7 → 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 +32 -77
- package/dist/library.mjs +31 -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
|
};
|
|
@@ -2358,7 +2360,7 @@ vue.watch(()=>props.modelValue, (newValue)=>{
|
|
|
2358
2360
|
|
|
2359
2361
|
return (_ctx, _cache) => {
|
|
2360
2362
|
return (vue.unref(id))
|
|
2361
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2363
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
2362
2364
|
vue.createElementVNode("div", {
|
|
2363
2365
|
id: vue.unref(id),
|
|
2364
2366
|
"data-bs-toggle": "dropdown",
|
|
@@ -2784,7 +2786,7 @@ var script$y = {
|
|
|
2784
2786
|
}
|
|
2785
2787
|
};
|
|
2786
2788
|
|
|
2787
|
-
const _hoisted_1$
|
|
2789
|
+
const _hoisted_1$o = {
|
|
2788
2790
|
ref: "ShAutoForm",
|
|
2789
2791
|
class: "sh-form"
|
|
2790
2792
|
};
|
|
@@ -2828,7 +2830,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2828
2830
|
|
|
2829
2831
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2830
2832
|
_cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* CACHED */)),
|
|
2831
|
-
vue.createElementVNode("form", _hoisted_1$
|
|
2833
|
+
vue.createElementVNode("form", _hoisted_1$o, [
|
|
2832
2834
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2833
2835
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2834
2836
|
(_ctx.form_status == 3)
|
|
@@ -3127,7 +3129,7 @@ return (_ctx, _cache) => {
|
|
|
3127
3129
|
|
|
3128
3130
|
script$x.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
3129
3131
|
|
|
3130
|
-
const _hoisted_1$
|
|
3132
|
+
const _hoisted_1$n = ["min", "max"];
|
|
3131
3133
|
|
|
3132
3134
|
|
|
3133
3135
|
var script$w = {
|
|
@@ -3162,7 +3164,7 @@ return (_ctx, _cache) => {
|
|
|
3162
3164
|
onChange: modelValueUpdated,
|
|
3163
3165
|
onKeydown: modelValueUpdated,
|
|
3164
3166
|
onUpdated: modelValueUpdated
|
|
3165
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$
|
|
3167
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
|
|
3166
3168
|
[vue.vModelText, inputModel.value]
|
|
3167
3169
|
])
|
|
3168
3170
|
}
|
|
@@ -3254,7 +3256,7 @@ return (_ctx, _cache) => {
|
|
|
3254
3256
|
|
|
3255
3257
|
script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
3256
3258
|
|
|
3257
|
-
const _hoisted_1$
|
|
3259
|
+
const _hoisted_1$m = ["value"];
|
|
3258
3260
|
|
|
3259
3261
|
|
|
3260
3262
|
var script$t = {
|
|
@@ -3311,7 +3313,7 @@ return (_ctx, _cache) => {
|
|
|
3311
3313
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
3312
3314
|
key: option.id,
|
|
3313
3315
|
value: option.id
|
|
3314
|
-
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3316
|
+
}, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
|
|
3315
3317
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3316
3318
|
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3317
3319
|
[vue.vModelSelect, inputModel.value]
|
|
@@ -3401,7 +3403,7 @@ return (_ctx, _cache) => {
|
|
|
3401
3403
|
|
|
3402
3404
|
script$r.__file = "src/lib/components/form-components/DateInput.vue";
|
|
3403
3405
|
|
|
3404
|
-
const _hoisted_1$
|
|
3406
|
+
const _hoisted_1$l = ["name", "onUpdate:modelValue"];
|
|
3405
3407
|
const _hoisted_2$f = ["innerHTML"];
|
|
3406
3408
|
const _hoisted_3$c = {
|
|
3407
3409
|
key: 0,
|
|
@@ -3686,7 +3688,7 @@ return (_ctx, _cache) => {
|
|
|
3686
3688
|
type: "hidden",
|
|
3687
3689
|
name: field.field,
|
|
3688
3690
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3689
|
-
}, null, 8 /* PROPS */, _hoisted_1$
|
|
3691
|
+
}, null, 8 /* PROPS */, _hoisted_1$l)), [
|
|
3690
3692
|
[vue.vModelText, formFields.value[index].value]
|
|
3691
3693
|
])
|
|
3692
3694
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -3768,7 +3770,7 @@ return (_ctx, _cache) => {
|
|
|
3768
3770
|
|
|
3769
3771
|
script$q.__file = "src/lib/components/ShAutoForm.vue";
|
|
3770
3772
|
|
|
3771
|
-
const _hoisted_1$
|
|
3773
|
+
const _hoisted_1$k = ["id", "data-bs-backdrop"];
|
|
3772
3774
|
const _hoisted_2$e = { class: "modal-content" };
|
|
3773
3775
|
const _hoisted_3$b = { class: "modal-header" };
|
|
3774
3776
|
const _hoisted_4$b = { class: "modal-title flex-fill" };
|
|
@@ -3851,7 +3853,7 @@ return (_ctx, _cache) => {
|
|
|
3851
3853
|
])
|
|
3852
3854
|
])
|
|
3853
3855
|
], 2 /* CLASS */)
|
|
3854
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3856
|
+
], 8 /* PROPS */, _hoisted_1$k))
|
|
3855
3857
|
}
|
|
3856
3858
|
}
|
|
3857
3859
|
|
|
@@ -3859,7 +3861,7 @@ return (_ctx, _cache) => {
|
|
|
3859
3861
|
|
|
3860
3862
|
script$p.__file = "src/lib/components/ShModal.vue";
|
|
3861
3863
|
|
|
3862
|
-
const _hoisted_1$
|
|
3864
|
+
const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
|
|
3863
3865
|
|
|
3864
3866
|
var script$o = {
|
|
3865
3867
|
__name: 'ShDropDownForm',
|
|
@@ -3911,7 +3913,7 @@ const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3911
3913
|
return (_ctx, _cache) => {
|
|
3912
3914
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3913
3915
|
_cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
|
|
3914
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
3916
|
+
vue.createElementVNode("div", _hoisted_1$j, [
|
|
3915
3917
|
vue.createElementVNode("a", {
|
|
3916
3918
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
3917
3919
|
href: "#",
|
|
@@ -3944,7 +3946,7 @@ return (_ctx, _cache) => {
|
|
|
3944
3946
|
|
|
3945
3947
|
script$o.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3946
3948
|
|
|
3947
|
-
const _hoisted_1$
|
|
3949
|
+
const _hoisted_1$i = ["href"];
|
|
3948
3950
|
|
|
3949
3951
|
var script$n = {
|
|
3950
3952
|
__name: 'ShModalForm',
|
|
@@ -3993,9 +3995,6 @@ const formError = (res)=>{
|
|
|
3993
3995
|
emit('formError',res);
|
|
3994
3996
|
};
|
|
3995
3997
|
|
|
3996
|
-
const emitClick = ()=>{
|
|
3997
|
-
emit('click');
|
|
3998
|
-
};
|
|
3999
3998
|
|
|
4000
3999
|
|
|
4001
4000
|
const allProps = vue.ref({});
|
|
@@ -4010,15 +4009,12 @@ const cleanedProp = vue.computed(()=>{
|
|
|
4010
4009
|
});
|
|
4011
4010
|
|
|
4012
4011
|
return (_ctx, _cache) => {
|
|
4013
|
-
return (vue.openBlock(), vue.createElementBlock(
|
|
4014
|
-
vue.
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
}, [
|
|
4020
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
4021
|
-
], 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"),
|
|
4022
4018
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
4023
4019
|
vue.createVNode(script$p, {
|
|
4024
4020
|
"modal-size": __props.modalSize,
|
|
@@ -4039,7 +4035,7 @@ return (_ctx, _cache) => {
|
|
|
4039
4035
|
_: 1 /* STABLE */
|
|
4040
4036
|
}, 8 /* PROPS */, ["modal-size", "modal-id", "modal-title"])
|
|
4041
4037
|
]))
|
|
4042
|
-
],
|
|
4038
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$i))
|
|
4043
4039
|
}
|
|
4044
4040
|
}
|
|
4045
4041
|
|
|
@@ -4047,59 +4043,18 @@ return (_ctx, _cache) => {
|
|
|
4047
4043
|
|
|
4048
4044
|
script$n.__file = "src/lib/components/ShModalForm.vue";
|
|
4049
4045
|
|
|
4050
|
-
const _hoisted_1$i = ["href"];
|
|
4051
|
-
|
|
4052
4046
|
var script$m = {
|
|
4053
4047
|
__name: 'ShModalFormAuto',
|
|
4054
|
-
|
|
4055
|
-
'classes',
|
|
4056
|
-
'hasTerms',
|
|
4057
|
-
'country_code',
|
|
4058
|
-
'submitBtnClass',
|
|
4059
|
-
'fields',
|
|
4060
|
-
'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
|
|
4061
|
-
'modalSize',
|
|
4062
|
-
'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
|
|
4063
|
-
'failedCallback', 'labels', 'editors',
|
|
4064
|
-
'datePickers',
|
|
4065
|
-
'textAreas',
|
|
4066
|
-
'files',
|
|
4067
|
-
'phones',
|
|
4068
|
-
'numbers',
|
|
4069
|
-
'customComponent','modalTitle','class','successMessage'],
|
|
4070
|
-
emits: ['success'],
|
|
4071
|
-
setup(__props, { emit: __emit }) {
|
|
4048
|
+
setup(__props) {
|
|
4072
4049
|
|
|
4073
|
-
const props = __props;
|
|
4074
|
-
const emit = __emit;
|
|
4075
|
-
const formProps = vue.ref(props);
|
|
4076
|
-
let btnClass=props.class;
|
|
4077
|
-
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
4078
|
-
const success = (res)=>{
|
|
4079
|
-
emit('success',res);
|
|
4080
|
-
};
|
|
4081
|
-
delete formProps.class;
|
|
4082
4050
|
|
|
4083
4051
|
return (_ctx, _cache) => {
|
|
4084
|
-
return (vue.openBlock(), vue.
|
|
4085
|
-
vue.
|
|
4086
|
-
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
4087
|
-
href: '#' + modalId,
|
|
4088
|
-
"data-bs-toggle": "modal"
|
|
4089
|
-
}, [
|
|
4052
|
+
return (vue.openBlock(), vue.createBlock(ShModalForm__default["default"], null, {
|
|
4053
|
+
default: vue.withCtx(() => [
|
|
4090
4054
|
vue.renderSlot(_ctx.$slots, "default")
|
|
4091
|
-
]
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
"modal-title": __props.modalTitle,
|
|
4095
|
-
"modal-size": __props.modalSize
|
|
4096
|
-
}, {
|
|
4097
|
-
default: vue.withCtx(() => [
|
|
4098
|
-
vue.createVNode(script$q, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
4099
|
-
]),
|
|
4100
|
-
_: 1 /* STABLE */
|
|
4101
|
-
}, 8 /* PROPS */, ["modal-title", "modal-size"])
|
|
4102
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
4055
|
+
]),
|
|
4056
|
+
_: 3 /* FORWARDED */
|
|
4057
|
+
}))
|
|
4103
4058
|
}
|
|
4104
4059
|
}
|
|
4105
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
|
};
|
|
@@ -2347,7 +2348,7 @@ watch(()=>props.modelValue, (newValue)=>{
|
|
|
2347
2348
|
|
|
2348
2349
|
return (_ctx, _cache) => {
|
|
2349
2350
|
return (unref(id))
|
|
2350
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2351
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
2351
2352
|
createElementVNode("div", {
|
|
2352
2353
|
id: unref(id),
|
|
2353
2354
|
"data-bs-toggle": "dropdown",
|
|
@@ -2773,7 +2774,7 @@ var script$y = {
|
|
|
2773
2774
|
}
|
|
2774
2775
|
};
|
|
2775
2776
|
|
|
2776
|
-
const _hoisted_1$
|
|
2777
|
+
const _hoisted_1$o = {
|
|
2777
2778
|
ref: "ShAutoForm",
|
|
2778
2779
|
class: "sh-form"
|
|
2779
2780
|
};
|
|
@@ -2817,7 +2818,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2817
2818
|
|
|
2818
2819
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
2819
2820
|
_cache[5] || (_cache[5] = createElementVNode("h5", { class: "d-none" }, null, -1 /* CACHED */)),
|
|
2820
|
-
createElementVNode("form", _hoisted_1$
|
|
2821
|
+
createElementVNode("form", _hoisted_1$o, [
|
|
2821
2822
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2822
2823
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2823
2824
|
(_ctx.form_status == 3)
|
|
@@ -3116,7 +3117,7 @@ return (_ctx, _cache) => {
|
|
|
3116
3117
|
|
|
3117
3118
|
script$x.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
3118
3119
|
|
|
3119
|
-
const _hoisted_1$
|
|
3120
|
+
const _hoisted_1$n = ["min", "max"];
|
|
3120
3121
|
|
|
3121
3122
|
|
|
3122
3123
|
var script$w = {
|
|
@@ -3151,7 +3152,7 @@ return (_ctx, _cache) => {
|
|
|
3151
3152
|
onChange: modelValueUpdated,
|
|
3152
3153
|
onKeydown: modelValueUpdated,
|
|
3153
3154
|
onUpdated: modelValueUpdated
|
|
3154
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$
|
|
3155
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
|
|
3155
3156
|
[vModelText, inputModel.value]
|
|
3156
3157
|
])
|
|
3157
3158
|
}
|
|
@@ -3243,7 +3244,7 @@ return (_ctx, _cache) => {
|
|
|
3243
3244
|
|
|
3244
3245
|
script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
3245
3246
|
|
|
3246
|
-
const _hoisted_1$
|
|
3247
|
+
const _hoisted_1$m = ["value"];
|
|
3247
3248
|
|
|
3248
3249
|
|
|
3249
3250
|
var script$t = {
|
|
@@ -3300,7 +3301,7 @@ return (_ctx, _cache) => {
|
|
|
3300
3301
|
return (openBlock(), createElementBlock("option", {
|
|
3301
3302
|
key: option.id,
|
|
3302
3303
|
value: option.id
|
|
3303
|
-
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$
|
|
3304
|
+
}, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
|
|
3304
3305
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3305
3306
|
], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
|
|
3306
3307
|
[vModelSelect, inputModel.value]
|
|
@@ -3390,7 +3391,7 @@ return (_ctx, _cache) => {
|
|
|
3390
3391
|
|
|
3391
3392
|
script$r.__file = "src/lib/components/form-components/DateInput.vue";
|
|
3392
3393
|
|
|
3393
|
-
const _hoisted_1$
|
|
3394
|
+
const _hoisted_1$l = ["name", "onUpdate:modelValue"];
|
|
3394
3395
|
const _hoisted_2$f = ["innerHTML"];
|
|
3395
3396
|
const _hoisted_3$c = {
|
|
3396
3397
|
key: 0,
|
|
@@ -3675,7 +3676,7 @@ return (_ctx, _cache) => {
|
|
|
3675
3676
|
type: "hidden",
|
|
3676
3677
|
name: field.field,
|
|
3677
3678
|
"onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
|
|
3678
|
-
}, null, 8 /* PROPS */, _hoisted_1$
|
|
3679
|
+
}, null, 8 /* PROPS */, _hoisted_1$l)), [
|
|
3679
3680
|
[vModelText, formFields.value[index].value]
|
|
3680
3681
|
])
|
|
3681
3682
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -3757,7 +3758,7 @@ return (_ctx, _cache) => {
|
|
|
3757
3758
|
|
|
3758
3759
|
script$q.__file = "src/lib/components/ShAutoForm.vue";
|
|
3759
3760
|
|
|
3760
|
-
const _hoisted_1$
|
|
3761
|
+
const _hoisted_1$k = ["id", "data-bs-backdrop"];
|
|
3761
3762
|
const _hoisted_2$e = { class: "modal-content" };
|
|
3762
3763
|
const _hoisted_3$b = { class: "modal-header" };
|
|
3763
3764
|
const _hoisted_4$b = { class: "modal-title flex-fill" };
|
|
@@ -3840,7 +3841,7 @@ return (_ctx, _cache) => {
|
|
|
3840
3841
|
])
|
|
3841
3842
|
])
|
|
3842
3843
|
], 2 /* CLASS */)
|
|
3843
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3844
|
+
], 8 /* PROPS */, _hoisted_1$k))
|
|
3844
3845
|
}
|
|
3845
3846
|
}
|
|
3846
3847
|
|
|
@@ -3848,7 +3849,7 @@ return (_ctx, _cache) => {
|
|
|
3848
3849
|
|
|
3849
3850
|
script$p.__file = "src/lib/components/ShModal.vue";
|
|
3850
3851
|
|
|
3851
|
-
const _hoisted_1$
|
|
3852
|
+
const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
|
|
3852
3853
|
|
|
3853
3854
|
var script$o = {
|
|
3854
3855
|
__name: 'ShDropDownForm',
|
|
@@ -3900,7 +3901,7 @@ const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3900
3901
|
return (_ctx, _cache) => {
|
|
3901
3902
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3902
3903
|
_cache[0] || (_cache[0] = createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
|
|
3903
|
-
createElementVNode("div", _hoisted_1$
|
|
3904
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
3904
3905
|
createElementVNode("a", {
|
|
3905
3906
|
class: normalizeClass(unref(btnClass)),
|
|
3906
3907
|
href: "#",
|
|
@@ -3933,7 +3934,7 @@ return (_ctx, _cache) => {
|
|
|
3933
3934
|
|
|
3934
3935
|
script$o.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3935
3936
|
|
|
3936
|
-
const _hoisted_1$
|
|
3937
|
+
const _hoisted_1$i = ["href"];
|
|
3937
3938
|
|
|
3938
3939
|
var script$n = {
|
|
3939
3940
|
__name: 'ShModalForm',
|
|
@@ -3982,9 +3983,6 @@ const formError = (res)=>{
|
|
|
3982
3983
|
emit('formError',res);
|
|
3983
3984
|
};
|
|
3984
3985
|
|
|
3985
|
-
const emitClick = ()=>{
|
|
3986
|
-
emit('click');
|
|
3987
|
-
};
|
|
3988
3986
|
|
|
3989
3987
|
|
|
3990
3988
|
const allProps = ref({});
|
|
@@ -3999,15 +3997,12 @@ const cleanedProp = computed(()=>{
|
|
|
3999
3997
|
});
|
|
4000
3998
|
|
|
4001
3999
|
return (_ctx, _cache) => {
|
|
4002
|
-
return (openBlock(), createElementBlock(
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
}, [
|
|
4009
|
-
renderSlot(_ctx.$slots, "default")
|
|
4010
|
-
], 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"),
|
|
4011
4006
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4012
4007
|
createVNode(script$p, {
|
|
4013
4008
|
"modal-size": __props.modalSize,
|
|
@@ -4028,7 +4023,7 @@ return (_ctx, _cache) => {
|
|
|
4028
4023
|
_: 1 /* STABLE */
|
|
4029
4024
|
}, 8 /* PROPS */, ["modal-size", "modal-id", "modal-title"])
|
|
4030
4025
|
]))
|
|
4031
|
-
],
|
|
4026
|
+
], 10 /* CLASS, PROPS */, _hoisted_1$i))
|
|
4032
4027
|
}
|
|
4033
4028
|
}
|
|
4034
4029
|
|
|
@@ -4036,59 +4031,18 @@ return (_ctx, _cache) => {
|
|
|
4036
4031
|
|
|
4037
4032
|
script$n.__file = "src/lib/components/ShModalForm.vue";
|
|
4038
4033
|
|
|
4039
|
-
const _hoisted_1$i = ["href"];
|
|
4040
|
-
|
|
4041
4034
|
var script$m = {
|
|
4042
4035
|
__name: 'ShModalFormAuto',
|
|
4043
|
-
|
|
4044
|
-
'classes',
|
|
4045
|
-
'hasTerms',
|
|
4046
|
-
'country_code',
|
|
4047
|
-
'submitBtnClass',
|
|
4048
|
-
'fields',
|
|
4049
|
-
'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
|
|
4050
|
-
'modalSize',
|
|
4051
|
-
'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
|
|
4052
|
-
'failedCallback', 'labels', 'editors',
|
|
4053
|
-
'datePickers',
|
|
4054
|
-
'textAreas',
|
|
4055
|
-
'files',
|
|
4056
|
-
'phones',
|
|
4057
|
-
'numbers',
|
|
4058
|
-
'customComponent','modalTitle','class','successMessage'],
|
|
4059
|
-
emits: ['success'],
|
|
4060
|
-
setup(__props, { emit: __emit }) {
|
|
4036
|
+
setup(__props) {
|
|
4061
4037
|
|
|
4062
|
-
const props = __props;
|
|
4063
|
-
const emit = __emit;
|
|
4064
|
-
const formProps = ref(props);
|
|
4065
|
-
let btnClass=props.class;
|
|
4066
|
-
const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
4067
|
-
const success = (res)=>{
|
|
4068
|
-
emit('success',res);
|
|
4069
|
-
};
|
|
4070
|
-
delete formProps.class;
|
|
4071
4038
|
|
|
4072
4039
|
return (_ctx, _cache) => {
|
|
4073
|
-
return (openBlock(),
|
|
4074
|
-
|
|
4075
|
-
class: normalizeClass(unref(btnClass)),
|
|
4076
|
-
href: '#' + modalId,
|
|
4077
|
-
"data-bs-toggle": "modal"
|
|
4078
|
-
}, [
|
|
4040
|
+
return (openBlock(), createBlock(ShModalForm, null, {
|
|
4041
|
+
default: withCtx(() => [
|
|
4079
4042
|
renderSlot(_ctx.$slots, "default")
|
|
4080
|
-
]
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
"modal-title": __props.modalTitle,
|
|
4084
|
-
"modal-size": __props.modalSize
|
|
4085
|
-
}, {
|
|
4086
|
-
default: withCtx(() => [
|
|
4087
|
-
createVNode(script$q, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
4088
|
-
]),
|
|
4089
|
-
_: 1 /* STABLE */
|
|
4090
|
-
}, 8 /* PROPS */, ["modal-title", "modal-size"])
|
|
4091
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
4043
|
+
]),
|
|
4044
|
+
_: 3 /* FORWARDED */
|
|
4045
|
+
}))
|
|
4092
4046
|
}
|
|
4093
4047
|
}
|
|
4094
4048
|
|