@iankibetsh/shframework 5.5.7 → 5.5.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.
@@ -1,36 +1,4 @@
1
1
 
2
- .sh-phone{
3
- display: flex;
4
- width: 100%;
5
- align-items: center;
6
- padding: 0 0.25rem;
7
- }
8
- .phone-country{
9
- width: 2rem;
10
- border: none;
11
- align-self: center;
12
- outline: none !important;
13
- padding: 0.4rem;
14
- border-right: 1px solid #0003;
15
- }
16
- .phone-number{
17
- width: calc(100% - 2.2rem);
18
- border: none;
19
- align-self: center;
20
- outline: none;
21
- margin-bottom: 0;
22
- padding: 0.4rem;
23
- }
24
- .sh-phone img{
25
- padding: 0.125rem;
26
- width: 2rem;
27
- height: 2rem;
28
- }
29
- .phone-number::placeholder{
30
- font-weight: 300;
31
- opacity: 0.5;
32
- }
33
-
34
2
  .colored-toast.swal2-icon-success {
35
3
  background-color: #a5dc86 !important;
36
4
  }
@@ -63,6 +31,38 @@
63
31
  color: white;
64
32
  }
65
33
 
34
+ .sh-phone{
35
+ display: flex;
36
+ width: 100%;
37
+ align-items: center;
38
+ padding: 0 0.25rem;
39
+ }
40
+ .phone-country{
41
+ width: 2rem;
42
+ border: none;
43
+ align-self: center;
44
+ outline: none !important;
45
+ padding: 0.4rem;
46
+ border-right: 1px solid #0003;
47
+ }
48
+ .phone-number{
49
+ width: calc(100% - 2.2rem);
50
+ border: none;
51
+ align-self: center;
52
+ outline: none;
53
+ margin-bottom: 0;
54
+ padding: 0.4rem;
55
+ }
56
+ .sh-phone img{
57
+ padding: 0.125rem;
58
+ width: 2rem;
59
+ height: 2rem;
60
+ }
61
+ .phone-number::placeholder{
62
+ font-weight: 300;
63
+ opacity: 0.5;
64
+ }
65
+
66
66
  .permissions-main {
67
67
  background: #edeff2;
68
68
  }
package/dist/library.js CHANGED
@@ -2140,7 +2140,7 @@ var script$A = {
2140
2140
  }
2141
2141
  };
2142
2142
 
2143
- const _hoisted_1$r = {
2143
+ const _hoisted_1$q = {
2144
2144
  class: "sh-phone mb-3",
2145
2145
  style: {"display":"flex"}
2146
2146
  };
@@ -2153,7 +2153,7 @@ const _hoisted_4$f = ["value"];
2153
2153
  const _hoisted_5$c = ["disabled"];
2154
2154
 
2155
2155
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2156
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
2156
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
2157
2157
  ($data.selectedCountry)
2158
2158
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, [
2159
2159
  vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
@@ -2191,7 +2191,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2191
2191
  script$A.render = render$4;
2192
2192
  script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
2193
2193
 
2194
- const _hoisted_1$q = {
2194
+ const _hoisted_1$p = {
2195
2195
  key: 0,
2196
2196
  class: "dropdown sh-suggest"
2197
2197
  };
@@ -2358,7 +2358,7 @@ vue.watch(()=>props.modelValue, (newValue)=>{
2358
2358
 
2359
2359
  return (_ctx, _cache) => {
2360
2360
  return (vue.unref(id))
2361
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
2361
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
2362
2362
  vue.createElementVNode("div", {
2363
2363
  id: vue.unref(id),
2364
2364
  "data-bs-toggle": "dropdown",
@@ -2784,7 +2784,7 @@ var script$y = {
2784
2784
  }
2785
2785
  };
2786
2786
 
2787
- const _hoisted_1$p = {
2787
+ const _hoisted_1$o = {
2788
2788
  ref: "ShAutoForm",
2789
2789
  class: "sh-form"
2790
2790
  };
@@ -2828,7 +2828,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2828
2828
 
2829
2829
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2830
2830
  _cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* CACHED */)),
2831
- vue.createElementVNode("form", _hoisted_1$p, [
2831
+ vue.createElementVNode("form", _hoisted_1$o, [
2832
2832
  vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2833
2833
  vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2834
2834
  (_ctx.form_status == 3)
@@ -3127,7 +3127,7 @@ return (_ctx, _cache) => {
3127
3127
 
3128
3128
  script$x.__file = "src/lib/components/form-components/EmailInput.vue";
3129
3129
 
3130
- const _hoisted_1$o = ["min", "max"];
3130
+ const _hoisted_1$n = ["min", "max"];
3131
3131
 
3132
3132
 
3133
3133
  var script$w = {
@@ -3162,7 +3162,7 @@ return (_ctx, _cache) => {
3162
3162
  onChange: modelValueUpdated,
3163
3163
  onKeydown: modelValueUpdated,
3164
3164
  onUpdated: modelValueUpdated
3165
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$o)), [
3165
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
3166
3166
  [vue.vModelText, inputModel.value]
3167
3167
  ])
3168
3168
  }
@@ -3254,7 +3254,7 @@ return (_ctx, _cache) => {
3254
3254
 
3255
3255
  script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
3256
3256
 
3257
- const _hoisted_1$n = ["value"];
3257
+ const _hoisted_1$m = ["value"];
3258
3258
 
3259
3259
 
3260
3260
  var script$t = {
@@ -3311,7 +3311,7 @@ return (_ctx, _cache) => {
3311
3311
  return (vue.openBlock(), vue.createElementBlock("option", {
3312
3312
  key: option.id,
3313
3313
  value: option.id
3314
- }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$n))
3314
+ }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
3315
3315
  }), 128 /* KEYED_FRAGMENT */))
3316
3316
  ], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3317
3317
  [vue.vModelSelect, inputModel.value]
@@ -3401,7 +3401,7 @@ return (_ctx, _cache) => {
3401
3401
 
3402
3402
  script$r.__file = "src/lib/components/form-components/DateInput.vue";
3403
3403
 
3404
- const _hoisted_1$m = ["name", "onUpdate:modelValue"];
3404
+ const _hoisted_1$l = ["name", "onUpdate:modelValue"];
3405
3405
  const _hoisted_2$f = ["innerHTML"];
3406
3406
  const _hoisted_3$c = {
3407
3407
  key: 0,
@@ -3686,7 +3686,7 @@ return (_ctx, _cache) => {
3686
3686
  type: "hidden",
3687
3687
  name: field.field,
3688
3688
  "onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
3689
- }, null, 8 /* PROPS */, _hoisted_1$m)), [
3689
+ }, null, 8 /* PROPS */, _hoisted_1$l)), [
3690
3690
  [vue.vModelText, formFields.value[index].value]
3691
3691
  ])
3692
3692
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -3768,7 +3768,7 @@ return (_ctx, _cache) => {
3768
3768
 
3769
3769
  script$q.__file = "src/lib/components/ShAutoForm.vue";
3770
3770
 
3771
- const _hoisted_1$l = ["id", "data-bs-backdrop"];
3771
+ const _hoisted_1$k = ["id", "data-bs-backdrop"];
3772
3772
  const _hoisted_2$e = { class: "modal-content" };
3773
3773
  const _hoisted_3$b = { class: "modal-header" };
3774
3774
  const _hoisted_4$b = { class: "modal-title flex-fill" };
@@ -3851,7 +3851,7 @@ return (_ctx, _cache) => {
3851
3851
  ])
3852
3852
  ])
3853
3853
  ], 2 /* CLASS */)
3854
- ], 8 /* PROPS */, _hoisted_1$l))
3854
+ ], 8 /* PROPS */, _hoisted_1$k))
3855
3855
  }
3856
3856
  }
3857
3857
 
@@ -3859,7 +3859,7 @@ return (_ctx, _cache) => {
3859
3859
 
3860
3860
  script$p.__file = "src/lib/components/ShModal.vue";
3861
3861
 
3862
- const _hoisted_1$k = { class: "dropdown sh-dropdown-form" };
3862
+ const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
3863
3863
 
3864
3864
  var script$o = {
3865
3865
  __name: 'ShDropDownForm',
@@ -3911,7 +3911,7 @@ const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
3911
3911
  return (_ctx, _cache) => {
3912
3912
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3913
3913
  _cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
3914
- vue.createElementVNode("div", _hoisted_1$k, [
3914
+ vue.createElementVNode("div", _hoisted_1$j, [
3915
3915
  vue.createElementVNode("a", {
3916
3916
  class: vue.normalizeClass(vue.unref(btnClass)),
3917
3917
  href: "#",
@@ -3944,7 +3944,7 @@ return (_ctx, _cache) => {
3944
3944
 
3945
3945
  script$o.__file = "src/lib/components/ShDropDownForm.vue";
3946
3946
 
3947
- const _hoisted_1$j = ["href"];
3947
+ const _hoisted_1$i = ["href"];
3948
3948
 
3949
3949
  var script$n = {
3950
3950
  __name: 'ShModalForm',
@@ -3993,9 +3993,6 @@ const formError = (res)=>{
3993
3993
  emit('formError',res);
3994
3994
  };
3995
3995
 
3996
- const emitClick = ()=>{
3997
- emit('click');
3998
- };
3999
3996
 
4000
3997
 
4001
3998
  const allProps = vue.ref({});
@@ -4010,15 +4007,12 @@ const cleanedProp = vue.computed(()=>{
4010
4007
  });
4011
4008
 
4012
4009
  return (_ctx, _cache) => {
4013
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
4014
- vue.createElementVNode("a", {
4015
- class: vue.normalizeClass(vue.unref(btnClass)),
4016
- href: '#' + vue.unref(realModalId),
4017
- "data-bs-toggle": "modal",
4018
- onClick: emitClick
4019
- }, [
4020
- vue.renderSlot(_ctx.$slots, "default")
4021
- ], 10 /* CLASS, PROPS */, _hoisted_1$j),
4010
+ return (vue.openBlock(), vue.createElementBlock("a", {
4011
+ class: vue.normalizeClass(vue.unref(btnClass)),
4012
+ href: '#' + vue.unref(realModalId),
4013
+ "data-bs-toggle": "modal"
4014
+ }, [
4015
+ vue.renderSlot(_ctx.$slots, "default"),
4022
4016
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
4023
4017
  vue.createVNode(script$p, {
4024
4018
  "modal-size": __props.modalSize,
@@ -4039,7 +4033,7 @@ return (_ctx, _cache) => {
4039
4033
  _: 1 /* STABLE */
4040
4034
  }, 8 /* PROPS */, ["modal-size", "modal-id", "modal-title"])
4041
4035
  ]))
4042
- ], 64 /* STABLE_FRAGMENT */))
4036
+ ], 10 /* CLASS, PROPS */, _hoisted_1$i))
4043
4037
  }
4044
4038
  }
4045
4039
 
@@ -4047,59 +4041,18 @@ return (_ctx, _cache) => {
4047
4041
 
4048
4042
  script$n.__file = "src/lib/components/ShModalForm.vue";
4049
4043
 
4050
- const _hoisted_1$i = ["href"];
4051
-
4052
4044
  var script$m = {
4053
4045
  __name: 'ShModalFormAuto',
4054
- props: ['action',
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 }) {
4046
+ setup(__props) {
4072
4047
 
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
4048
 
4083
4049
  return (_ctx, _cache) => {
4084
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
4085
- vue.createElementVNode("a", {
4086
- class: vue.normalizeClass(vue.unref(btnClass)),
4087
- href: '#' + modalId,
4088
- "data-bs-toggle": "modal"
4089
- }, [
4050
+ return (vue.openBlock(), vue.createBlock(script$n, null, {
4051
+ default: vue.withCtx(() => [
4090
4052
  vue.renderSlot(_ctx.$slots, "default")
4091
- ], 10 /* CLASS, PROPS */, _hoisted_1$i),
4092
- vue.createVNode(script$p, {
4093
- "modal-id": modalId,
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 */))
4053
+ ]),
4054
+ _: 3 /* FORWARDED */
4055
+ }))
4103
4056
  }
4104
4057
  }
4105
4058
 
package/dist/library.mjs CHANGED
@@ -2129,7 +2129,7 @@ var script$A = {
2129
2129
  }
2130
2130
  };
2131
2131
 
2132
- const _hoisted_1$r = {
2132
+ const _hoisted_1$q = {
2133
2133
  class: "sh-phone mb-3",
2134
2134
  style: {"display":"flex"}
2135
2135
  };
@@ -2142,7 +2142,7 @@ const _hoisted_4$f = ["value"];
2142
2142
  const _hoisted_5$c = ["disabled"];
2143
2143
 
2144
2144
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2145
- return (openBlock(), createElementBlock("div", _hoisted_1$r, [
2145
+ return (openBlock(), createElementBlock("div", _hoisted_1$q, [
2146
2146
  ($data.selectedCountry)
2147
2147
  ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
2148
2148
  createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
@@ -2180,7 +2180,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2180
2180
  script$A.render = render$4;
2181
2181
  script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
2182
2182
 
2183
- const _hoisted_1$q = {
2183
+ const _hoisted_1$p = {
2184
2184
  key: 0,
2185
2185
  class: "dropdown sh-suggest"
2186
2186
  };
@@ -2347,7 +2347,7 @@ watch(()=>props.modelValue, (newValue)=>{
2347
2347
 
2348
2348
  return (_ctx, _cache) => {
2349
2349
  return (unref(id))
2350
- ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
2350
+ ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
2351
2351
  createElementVNode("div", {
2352
2352
  id: unref(id),
2353
2353
  "data-bs-toggle": "dropdown",
@@ -2773,7 +2773,7 @@ var script$y = {
2773
2773
  }
2774
2774
  };
2775
2775
 
2776
- const _hoisted_1$p = {
2776
+ const _hoisted_1$o = {
2777
2777
  ref: "ShAutoForm",
2778
2778
  class: "sh-form"
2779
2779
  };
@@ -2817,7 +2817,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2817
2817
 
2818
2818
  return (openBlock(), createElementBlock(Fragment, null, [
2819
2819
  _cache[5] || (_cache[5] = createElementVNode("h5", { class: "d-none" }, null, -1 /* CACHED */)),
2820
- createElementVNode("form", _hoisted_1$p, [
2820
+ createElementVNode("form", _hoisted_1$o, [
2821
2821
  createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2822
2822
  createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2823
2823
  (_ctx.form_status == 3)
@@ -3116,7 +3116,7 @@ return (_ctx, _cache) => {
3116
3116
 
3117
3117
  script$x.__file = "src/lib/components/form-components/EmailInput.vue";
3118
3118
 
3119
- const _hoisted_1$o = ["min", "max"];
3119
+ const _hoisted_1$n = ["min", "max"];
3120
3120
 
3121
3121
 
3122
3122
  var script$w = {
@@ -3151,7 +3151,7 @@ return (_ctx, _cache) => {
3151
3151
  onChange: modelValueUpdated,
3152
3152
  onKeydown: modelValueUpdated,
3153
3153
  onUpdated: modelValueUpdated
3154
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$o)), [
3154
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
3155
3155
  [vModelText, inputModel.value]
3156
3156
  ])
3157
3157
  }
@@ -3243,7 +3243,7 @@ return (_ctx, _cache) => {
3243
3243
 
3244
3244
  script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
3245
3245
 
3246
- const _hoisted_1$n = ["value"];
3246
+ const _hoisted_1$m = ["value"];
3247
3247
 
3248
3248
 
3249
3249
  var script$t = {
@@ -3300,7 +3300,7 @@ return (_ctx, _cache) => {
3300
3300
  return (openBlock(), createElementBlock("option", {
3301
3301
  key: option.id,
3302
3302
  value: option.id
3303
- }, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$n))
3303
+ }, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
3304
3304
  }), 128 /* KEYED_FRAGMENT */))
3305
3305
  ], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3306
3306
  [vModelSelect, inputModel.value]
@@ -3390,7 +3390,7 @@ return (_ctx, _cache) => {
3390
3390
 
3391
3391
  script$r.__file = "src/lib/components/form-components/DateInput.vue";
3392
3392
 
3393
- const _hoisted_1$m = ["name", "onUpdate:modelValue"];
3393
+ const _hoisted_1$l = ["name", "onUpdate:modelValue"];
3394
3394
  const _hoisted_2$f = ["innerHTML"];
3395
3395
  const _hoisted_3$c = {
3396
3396
  key: 0,
@@ -3675,7 +3675,7 @@ return (_ctx, _cache) => {
3675
3675
  type: "hidden",
3676
3676
  name: field.field,
3677
3677
  "onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
3678
- }, null, 8 /* PROPS */, _hoisted_1$m)), [
3678
+ }, null, 8 /* PROPS */, _hoisted_1$l)), [
3679
3679
  [vModelText, formFields.value[index].value]
3680
3680
  ])
3681
3681
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -3757,7 +3757,7 @@ return (_ctx, _cache) => {
3757
3757
 
3758
3758
  script$q.__file = "src/lib/components/ShAutoForm.vue";
3759
3759
 
3760
- const _hoisted_1$l = ["id", "data-bs-backdrop"];
3760
+ const _hoisted_1$k = ["id", "data-bs-backdrop"];
3761
3761
  const _hoisted_2$e = { class: "modal-content" };
3762
3762
  const _hoisted_3$b = { class: "modal-header" };
3763
3763
  const _hoisted_4$b = { class: "modal-title flex-fill" };
@@ -3840,7 +3840,7 @@ return (_ctx, _cache) => {
3840
3840
  ])
3841
3841
  ])
3842
3842
  ], 2 /* CLASS */)
3843
- ], 8 /* PROPS */, _hoisted_1$l))
3843
+ ], 8 /* PROPS */, _hoisted_1$k))
3844
3844
  }
3845
3845
  }
3846
3846
 
@@ -3848,7 +3848,7 @@ return (_ctx, _cache) => {
3848
3848
 
3849
3849
  script$p.__file = "src/lib/components/ShModal.vue";
3850
3850
 
3851
- const _hoisted_1$k = { class: "dropdown sh-dropdown-form" };
3851
+ const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
3852
3852
 
3853
3853
  var script$o = {
3854
3854
  __name: 'ShDropDownForm',
@@ -3900,7 +3900,7 @@ const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
3900
3900
  return (_ctx, _cache) => {
3901
3901
  return (openBlock(), createElementBlock(Fragment, null, [
3902
3902
  _cache[0] || (_cache[0] = createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
3903
- createElementVNode("div", _hoisted_1$k, [
3903
+ createElementVNode("div", _hoisted_1$j, [
3904
3904
  createElementVNode("a", {
3905
3905
  class: normalizeClass(unref(btnClass)),
3906
3906
  href: "#",
@@ -3933,7 +3933,7 @@ return (_ctx, _cache) => {
3933
3933
 
3934
3934
  script$o.__file = "src/lib/components/ShDropDownForm.vue";
3935
3935
 
3936
- const _hoisted_1$j = ["href"];
3936
+ const _hoisted_1$i = ["href"];
3937
3937
 
3938
3938
  var script$n = {
3939
3939
  __name: 'ShModalForm',
@@ -3982,9 +3982,6 @@ const formError = (res)=>{
3982
3982
  emit('formError',res);
3983
3983
  };
3984
3984
 
3985
- const emitClick = ()=>{
3986
- emit('click');
3987
- };
3988
3985
 
3989
3986
 
3990
3987
  const allProps = ref({});
@@ -3999,15 +3996,12 @@ const cleanedProp = computed(()=>{
3999
3996
  });
4000
3997
 
4001
3998
  return (_ctx, _cache) => {
4002
- return (openBlock(), createElementBlock(Fragment, null, [
4003
- createElementVNode("a", {
4004
- class: normalizeClass(unref(btnClass)),
4005
- href: '#' + unref(realModalId),
4006
- "data-bs-toggle": "modal",
4007
- onClick: emitClick
4008
- }, [
4009
- renderSlot(_ctx.$slots, "default")
4010
- ], 10 /* CLASS, PROPS */, _hoisted_1$j),
3999
+ return (openBlock(), createElementBlock("a", {
4000
+ class: normalizeClass(unref(btnClass)),
4001
+ href: '#' + unref(realModalId),
4002
+ "data-bs-toggle": "modal"
4003
+ }, [
4004
+ renderSlot(_ctx.$slots, "default"),
4011
4005
  (openBlock(), createBlock(Teleport, { to: "body" }, [
4012
4006
  createVNode(script$p, {
4013
4007
  "modal-size": __props.modalSize,
@@ -4028,7 +4022,7 @@ return (_ctx, _cache) => {
4028
4022
  _: 1 /* STABLE */
4029
4023
  }, 8 /* PROPS */, ["modal-size", "modal-id", "modal-title"])
4030
4024
  ]))
4031
- ], 64 /* STABLE_FRAGMENT */))
4025
+ ], 10 /* CLASS, PROPS */, _hoisted_1$i))
4032
4026
  }
4033
4027
  }
4034
4028
 
@@ -4036,59 +4030,18 @@ return (_ctx, _cache) => {
4036
4030
 
4037
4031
  script$n.__file = "src/lib/components/ShModalForm.vue";
4038
4032
 
4039
- const _hoisted_1$i = ["href"];
4040
-
4041
4033
  var script$m = {
4042
4034
  __name: 'ShModalFormAuto',
4043
- props: ['action',
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 }) {
4035
+ setup(__props) {
4061
4036
 
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
4037
 
4072
4038
  return (_ctx, _cache) => {
4073
- return (openBlock(), createElementBlock(Fragment, null, [
4074
- createElementVNode("a", {
4075
- class: normalizeClass(unref(btnClass)),
4076
- href: '#' + modalId,
4077
- "data-bs-toggle": "modal"
4078
- }, [
4039
+ return (openBlock(), createBlock(script$n, null, {
4040
+ default: withCtx(() => [
4079
4041
  renderSlot(_ctx.$slots, "default")
4080
- ], 10 /* CLASS, PROPS */, _hoisted_1$i),
4081
- createVNode(script$p, {
4082
- "modal-id": modalId,
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 */))
4042
+ ]),
4043
+ _: 3 /* FORWARDED */
4044
+ }))
4092
4045
  }
4093
4046
  }
4094
4047
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.5.7",
3
+ "version": "5.5.9",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",