@iankibetsh/shframework 4.2.9 → 4.3.1
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 +24 -3
- package/dist/library.mjs +24 -3
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -2203,7 +2203,8 @@ return (_ctx, _cache) => {
|
|
|
2203
2203
|
}, [
|
|
2204
2204
|
(suggestion.name)
|
|
2205
2205
|
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_7$8, [
|
|
2206
|
-
vue.createElementVNode("
|
|
2206
|
+
vue.createElementVNode("span", {
|
|
2207
|
+
style: {"cursor":"pointer"},
|
|
2207
2208
|
onClick: $event => (addSuggestion(suggestion)),
|
|
2208
2209
|
class: vue.normalizeClass(["dropdown-item", vue.unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
|
|
2209
2210
|
href: "#"
|
|
@@ -3576,7 +3577,7 @@ var script$j = {
|
|
|
3576
3577
|
'phones',
|
|
3577
3578
|
'numbers',
|
|
3578
3579
|
'customComponent','modalTitle','class','successMessage'],
|
|
3579
|
-
emits: ['success'],
|
|
3580
|
+
emits: ['success','fieldChanged','formSubmitted','formError','modalId'],
|
|
3580
3581
|
setup(__props, { emit: __emit }) {
|
|
3581
3582
|
|
|
3582
3583
|
const props = __props;
|
|
@@ -3587,6 +3588,21 @@ const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3587
3588
|
const success = (res)=>{
|
|
3588
3589
|
emit('success',res);
|
|
3589
3590
|
};
|
|
3591
|
+
vue.onMounted(()=>{
|
|
3592
|
+
emit('modalId',modalId);
|
|
3593
|
+
});
|
|
3594
|
+
|
|
3595
|
+
const fieldChanged = (field, value)=>{
|
|
3596
|
+
emit('fieldChanged',field, value);
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
const formSubmitted = (res)=>{
|
|
3600
|
+
emit('formSubmitted',res);
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
const formError = (res)=>{
|
|
3604
|
+
emit('formError',res);
|
|
3605
|
+
};
|
|
3590
3606
|
|
|
3591
3607
|
return (_ctx, _cache) => {
|
|
3592
3608
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
@@ -3602,7 +3618,12 @@ return (_ctx, _cache) => {
|
|
|
3602
3618
|
"modal-title": __props.modalTitle
|
|
3603
3619
|
}, {
|
|
3604
3620
|
default: vue.withCtx(() => [
|
|
3605
|
-
vue.createVNode(script$
|
|
3621
|
+
vue.createVNode(script$m, vue.mergeProps({
|
|
3622
|
+
onSuccess: success,
|
|
3623
|
+
onFieldChanged: fieldChanged,
|
|
3624
|
+
onFormSubmitted: formSubmitted,
|
|
3625
|
+
onFormError: formError
|
|
3626
|
+
}, props), null, 16 /* FULL_PROPS */)
|
|
3606
3627
|
]),
|
|
3607
3628
|
_: 1 /* STABLE */
|
|
3608
3629
|
}, 8 /* PROPS */, ["modal-title"])
|
package/dist/library.mjs
CHANGED
|
@@ -2191,7 +2191,8 @@ return (_ctx, _cache) => {
|
|
|
2191
2191
|
}, [
|
|
2192
2192
|
(suggestion.name)
|
|
2193
2193
|
? (openBlock(), createElementBlock("li", _hoisted_7$8, [
|
|
2194
|
-
createElementVNode("
|
|
2194
|
+
createElementVNode("span", {
|
|
2195
|
+
style: {"cursor":"pointer"},
|
|
2195
2196
|
onClick: $event => (addSuggestion(suggestion)),
|
|
2196
2197
|
class: normalizeClass(["dropdown-item", unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
|
|
2197
2198
|
href: "#"
|
|
@@ -3564,7 +3565,7 @@ var script$j = {
|
|
|
3564
3565
|
'phones',
|
|
3565
3566
|
'numbers',
|
|
3566
3567
|
'customComponent','modalTitle','class','successMessage'],
|
|
3567
|
-
emits: ['success'],
|
|
3568
|
+
emits: ['success','fieldChanged','formSubmitted','formError','modalId'],
|
|
3568
3569
|
setup(__props, { emit: __emit }) {
|
|
3569
3570
|
|
|
3570
3571
|
const props = __props;
|
|
@@ -3575,6 +3576,21 @@ const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3575
3576
|
const success = (res)=>{
|
|
3576
3577
|
emit('success',res);
|
|
3577
3578
|
};
|
|
3579
|
+
onMounted(()=>{
|
|
3580
|
+
emit('modalId',modalId);
|
|
3581
|
+
});
|
|
3582
|
+
|
|
3583
|
+
const fieldChanged = (field, value)=>{
|
|
3584
|
+
emit('fieldChanged',field, value);
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
const formSubmitted = (res)=>{
|
|
3588
|
+
emit('formSubmitted',res);
|
|
3589
|
+
};
|
|
3590
|
+
|
|
3591
|
+
const formError = (res)=>{
|
|
3592
|
+
emit('formError',res);
|
|
3593
|
+
};
|
|
3578
3594
|
|
|
3579
3595
|
return (_ctx, _cache) => {
|
|
3580
3596
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -3590,7 +3606,12 @@ return (_ctx, _cache) => {
|
|
|
3590
3606
|
"modal-title": __props.modalTitle
|
|
3591
3607
|
}, {
|
|
3592
3608
|
default: withCtx(() => [
|
|
3593
|
-
createVNode(script$
|
|
3609
|
+
createVNode(script$m, mergeProps({
|
|
3610
|
+
onSuccess: success,
|
|
3611
|
+
onFieldChanged: fieldChanged,
|
|
3612
|
+
onFormSubmitted: formSubmitted,
|
|
3613
|
+
onFormError: formError
|
|
3614
|
+
}, props), null, 16 /* FULL_PROPS */)
|
|
3594
3615
|
]),
|
|
3595
3616
|
_: 1 /* STABLE */
|
|
3596
3617
|
}, 8 /* PROPS */, ["modal-title"])
|