@iankibetsh/shframework 4.2.8 → 4.3.0

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 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 /* HYDRATE_EVENTS, NEED_PATCH */), [
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 /* HYDRATE_EVENTS, NEED_PATCH */), [
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
- let dropdownElem = document.getElementById('dropwdown_section' + id.value);
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
- shApis.doGet(props.url, { all: 1,filter_value: filterValue }).then(res => {
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, HYDRATE_EVENTS */, _hoisted_5$a)
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",
@@ -2190,7 +2203,8 @@ return (_ctx, _cache) => {
2190
2203
  }, [
2191
2204
  (suggestion.name)
2192
2205
  ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_7$8, [
2193
- vue.createElementVNode("a", {
2206
+ vue.createElementVNode("span", {
2207
+ style: {"cursor":"pointer"},
2194
2208
  onClick: $event => (addSuggestion(suggestion)),
2195
2209
  class: vue.normalizeClass(["dropdown-item", vue.unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
2196
2210
  href: "#"
@@ -2640,7 +2654,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2640
2654
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2641
2655
  modelValue: _ctx.form_elements[field],
2642
2656
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2643
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
2657
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
2644
2658
  : vue.createCommentVNode("v-if", true),
2645
2659
  ($options.getFieldType(field) === 'file')
2646
2660
  ? (vue.openBlock(), vue.createElementBlock("input", {
@@ -2654,7 +2668,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2654
2668
  ref: 'file_'+field,
2655
2669
  onChange: $event => ($options.handleFileUpload(field)),
2656
2670
  type: "file"
2657
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$5))
2671
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$5))
2658
2672
  : vue.createCommentVNode("v-if", true),
2659
2673
  ($options.getFieldType(field) === 'numeric')
2660
2674
  ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -2666,7 +2680,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2666
2680
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2667
2681
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2668
2682
  type: "number"
2669
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$5)), [
2683
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$5)), [
2670
2684
  [vue.vModelText, _ctx.form_elements[field]]
2671
2685
  ])
2672
2686
  : vue.createCommentVNode("v-if", true),
@@ -2680,7 +2694,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2680
2694
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2681
2695
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2682
2696
  type: "password"
2683
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$4)), [
2697
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$4)), [
2684
2698
  [vue.vModelText, _ctx.form_elements[field]]
2685
2699
  ])
2686
2700
  : vue.createCommentVNode("v-if", true),
@@ -2695,7 +2709,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2695
2709
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2696
2710
  type: "email",
2697
2711
  required: ""
2698
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$4)), [
2712
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$4)), [
2699
2713
  [vue.vModelText, _ctx.form_elements[field]]
2700
2714
  ])
2701
2715
  : vue.createCommentVNode("v-if", true),
@@ -2708,7 +2722,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2708
2722
  onFocus: $event => ($options.removeErrors(field)),
2709
2723
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
2710
2724
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2711
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14$3)), [
2725
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
2712
2726
  [vue.vModelText, _ctx.form_elements[field]]
2713
2727
  ])
2714
2728
  : vue.createCommentVNode("v-if", true),
@@ -2747,7 +2761,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2747
2761
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2748
2762
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2749
2763
  type: "text"
2750
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15$3)), [
2764
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
2751
2765
  [vue.vModelText, _ctx.form_elements[field]]
2752
2766
  ])
2753
2767
  : vue.createCommentVNode("v-if", true),
@@ -2758,7 +2772,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2758
2772
  onFocus: $event => ($options.removeErrors(field)),
2759
2773
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2760
2774
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2761
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_16$3)), [
2775
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_16$3)), [
2762
2776
  [vue.vModelText, _ctx.form_elements[field]]
2763
2777
  ])
2764
2778
  : vue.createCommentVNode("v-if", true),
@@ -2776,7 +2790,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2776
2790
  value: item.id
2777
2791
  }, vue.toDisplayString(item.name), 9 /* TEXT, PROPS */, _hoisted_18$3))
2778
2792
  }), 128 /* KEYED_FRAGMENT */))
2779
- ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_17$3)), [
2793
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_17$3)), [
2780
2794
  [vue.vModelSelect, _ctx.form_elements[field]]
2781
2795
  ])
2782
2796
  : vue.createCommentVNode("v-if", true),
@@ -2788,7 +2802,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2788
2802
  }), 128 /* KEYED_FRAGMENT */))
2789
2803
  ]),
2790
2804
  ($props.hasTerms)
2791
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, _hoisted_23$1))
2805
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, [..._hoisted_23$1]))
2792
2806
  : vue.createCommentVNode("v-if", true),
2793
2807
  (_ctx.form_status == 1)
2794
2808
  ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -2818,12 +2832,10 @@ var script$s = {
2818
2832
  __name: 'EmailInput',
2819
2833
  props: ['modelValue','label'],
2820
2834
  emits: ['update:modelValue','clearValidationErrors'],
2821
- setup(__props, { emit }) {
2835
+ setup(__props, { emit: __emit }) {
2822
2836
 
2823
2837
  const props = __props;
2824
-
2825
-
2826
-
2838
+ const emit = __emit;
2827
2839
  const inputModel = vue.ref(null);
2828
2840
 
2829
2841
  const modelValueUpdated = (e) => {
@@ -2846,7 +2858,7 @@ return (_ctx, _cache) => {
2846
2858
  onChange: modelValueUpdated,
2847
2859
  onKeydown: modelValueUpdated,
2848
2860
  onUpdated: modelValueUpdated
2849
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2861
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
2850
2862
  [vue.vModelText, inputModel.value]
2851
2863
  ])
2852
2864
  }
@@ -2863,12 +2875,10 @@ var script$r = {
2863
2875
  __name: 'NumberInput',
2864
2876
  props: ['modelValue','label','min','max'],
2865
2877
  emits: ['update:modelValue','clearValidationErrors'],
2866
- setup(__props, { emit }) {
2878
+ setup(__props, { emit: __emit }) {
2867
2879
 
2868
2880
  const props = __props;
2869
-
2870
-
2871
-
2881
+ const emit = __emit;
2872
2882
  const inputModel = vue.ref(null);
2873
2883
 
2874
2884
  const modelValueUpdated = (e) => {
@@ -2893,7 +2903,7 @@ return (_ctx, _cache) => {
2893
2903
  onChange: modelValueUpdated,
2894
2904
  onKeydown: modelValueUpdated,
2895
2905
  onUpdated: modelValueUpdated
2896
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$l)), [
2906
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$l)), [
2897
2907
  [vue.vModelText, inputModel.value]
2898
2908
  ])
2899
2909
  }
@@ -2907,12 +2917,10 @@ var script$q = {
2907
2917
  __name: 'TextInput',
2908
2918
  props: ['modelValue','label','isInvalid'],
2909
2919
  emits: ['update:modelValue','clearValidationErrors'],
2910
- setup(__props, { emit }) {
2920
+ setup(__props, { emit: __emit }) {
2911
2921
 
2912
2922
  const props = __props;
2913
-
2914
-
2915
-
2923
+ const emit = __emit;
2916
2924
  const inputModel = vue.ref(null);
2917
2925
 
2918
2926
  const modelValueUpdated = (e) => {
@@ -2937,7 +2945,7 @@ return (_ctx, _cache) => {
2937
2945
  onChange: modelValueUpdated,
2938
2946
  onKeydown: modelValueUpdated,
2939
2947
  onUpdated: modelValueUpdated
2940
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2948
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
2941
2949
  [vue.vModelText, inputModel.value]
2942
2950
  ])
2943
2951
  }
@@ -2951,12 +2959,10 @@ var script$p = {
2951
2959
  __name: 'TextAreaInput',
2952
2960
  props: ['modelValue','label'],
2953
2961
  emits: ['update:modelValue','clearValidationErrors'],
2954
- setup(__props, { emit }) {
2962
+ setup(__props, { emit: __emit }) {
2955
2963
 
2956
2964
  const props = __props;
2957
-
2958
-
2959
-
2965
+ const emit = __emit;
2960
2966
  const inputModel = vue.ref(null);
2961
2967
 
2962
2968
  const modelValueUpdated = (e) => {
@@ -2979,7 +2985,7 @@ return (_ctx, _cache) => {
2979
2985
  onChange: modelValueUpdated,
2980
2986
  onKeydown: modelValueUpdated,
2981
2987
  onUpdated: modelValueUpdated
2982
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2988
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
2983
2989
  [vue.vModelText, inputModel.value]
2984
2990
  ])
2985
2991
  }
@@ -2996,12 +3002,10 @@ var script$o = {
2996
3002
  __name: 'SelectInput',
2997
3003
  props: ['modelValue','label','data','dataUrl'],
2998
3004
  emits: ['update:modelValue','clearValidationErrors'],
2999
- setup(__props, { emit }) {
3005
+ setup(__props, { emit: __emit }) {
3000
3006
 
3001
3007
  const props = __props;
3002
-
3003
-
3004
-
3008
+ const emit = __emit;
3005
3009
  const inputModel = vue.ref(null);
3006
3010
  const selectOptions = vue.ref(null);
3007
3011
  const modelValueUpdated = (e) => {
@@ -3050,7 +3054,7 @@ return (_ctx, _cache) => {
3050
3054
  value: option.id
3051
3055
  }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$k))
3052
3056
  }), 128 /* KEYED_FRAGMENT */))
3053
- ], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
3057
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3054
3058
  [vue.vModelSelect, inputModel.value]
3055
3059
  ])
3056
3060
  }
@@ -3064,12 +3068,10 @@ var script$n = {
3064
3068
  __name: 'PasswordInput',
3065
3069
  props: ['modelValue','label'],
3066
3070
  emits: ['update:modelValue','clearValidationErrors'],
3067
- setup(__props, { emit }) {
3071
+ setup(__props, { emit: __emit }) {
3068
3072
 
3069
3073
  const props = __props;
3070
-
3071
-
3072
-
3074
+ const emit = __emit;
3073
3075
  const inputModel = vue.ref(null);
3074
3076
 
3075
3077
  const modelValueUpdated = (e) => {
@@ -3088,7 +3090,7 @@ return (_ctx, _cache) => {
3088
3090
  onChange: modelValueUpdated,
3089
3091
  onKeydown: modelValueUpdated,
3090
3092
  onUpdated: modelValueUpdated
3091
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
3093
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3092
3094
  [vue.vModelText, inputModel.value]
3093
3095
  ])
3094
3096
  }
@@ -3140,12 +3142,10 @@ var script$m = {
3140
3142
  'phones','numbers','selects','dates','gqlMutation'
3141
3143
  ],
3142
3144
  emits: ['success','fieldChanged','formSubmitted','formError'],
3143
- setup(__props, { emit }) {
3145
+ setup(__props, { emit: __emit }) {
3144
3146
 
3145
3147
  const props = __props;
3146
-
3147
-
3148
-
3148
+ const emit = __emit;
3149
3149
  const formFields = vue.ref([]);
3150
3150
  const getFieldComponent = (fieldObj)=>{
3151
3151
  if(fieldObj.component){
@@ -3378,7 +3378,7 @@ return (_ctx, _cache) => {
3378
3378
  }, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
3379
3379
  : vue.createCommentVNode("v-if", true),
3380
3380
  (vue.unref(isFloating))
3381
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, _hoisted_9$5))
3381
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, [..._hoisted_9$5]))
3382
3382
  : vue.createCommentVNode("v-if", true),
3383
3383
  (field.helper)
3384
3384
  ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -3414,7 +3414,7 @@ return (_ctx, _cache) => {
3414
3414
  : vue.createCommentVNode("v-if", true)
3415
3415
  ], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
3416
3416
  ], 2 /* CLASS */)
3417
- ], 34 /* CLASS, HYDRATE_EVENTS */)
3417
+ ], 34 /* CLASS, NEED_HYDRATION */)
3418
3418
  ], 64 /* STABLE_FRAGMENT */))
3419
3419
  }
3420
3420
  }
@@ -3447,8 +3447,6 @@ var script$l = {
3447
3447
 
3448
3448
  const props = __props;
3449
3449
 
3450
-
3451
-
3452
3450
  vue.ref(props);
3453
3451
  let btnClass=props.class;
3454
3452
  const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
@@ -3520,12 +3518,10 @@ var script$k = {
3520
3518
  }
3521
3519
  },
3522
3520
  emits: ['modalClosed'],
3523
- setup(__props, { emit }) {
3521
+ setup(__props, { emit: __emit }) {
3524
3522
 
3523
+ const emit = __emit;
3525
3524
  const props = __props;
3526
-
3527
-
3528
-
3529
3525
  vue.onMounted(() => {
3530
3526
  const modal = document.getElementById(props.modalId);
3531
3527
  modal.addEventListener('hidden.bs.modal', event => {
@@ -3582,12 +3578,10 @@ var script$j = {
3582
3578
  'numbers',
3583
3579
  'customComponent','modalTitle','class','successMessage'],
3584
3580
  emits: ['success'],
3585
- setup(__props, { emit }) {
3581
+ setup(__props, { emit: __emit }) {
3586
3582
 
3587
3583
  const props = __props;
3588
-
3589
-
3590
-
3584
+ const emit = __emit;
3591
3585
  vue.ref(props);
3592
3586
  let btnClass=props.class;
3593
3587
  const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
@@ -3641,12 +3635,10 @@ var script$i = {
3641
3635
  'numbers',
3642
3636
  'customComponent','modalTitle','class','successMessage'],
3643
3637
  emits: ['success'],
3644
- setup(__props, { emit }) {
3638
+ setup(__props, { emit: __emit }) {
3645
3639
 
3646
3640
  const props = __props;
3647
-
3648
-
3649
-
3641
+ const emit = __emit;
3650
3642
  const formProps = vue.ref(props);
3651
3643
  let btnClass=props.class;
3652
3644
  const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
@@ -3710,12 +3702,10 @@ var script$h = {
3710
3702
  }
3711
3703
  },
3712
3704
  emits: ['canvasClosed'],
3713
- setup(__props, { emit }) {
3705
+ setup(__props, { emit: __emit }) {
3714
3706
 
3707
+ const emit = __emit;
3715
3708
  const props = __props;
3716
-
3717
-
3718
-
3719
3709
  const pos = vue.ref(props.position ?? props.side);
3720
3710
  const canvasSide = vue.ref(pos.value ? `offcanvas-${pos.value}` : 'offcanvas-start');
3721
3711
 
@@ -4006,7 +3996,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4006
3996
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.pageOptions, (option) => {
4007
3997
  return (vue.openBlock(), vue.createElementBlock("option", { value: option }, vue.toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_4$7))
4008
3998
  }), 256 /* UNKEYED_FRAGMENT */))
4009
- ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
3999
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */), [
4010
4000
  [vue.vModelSelect, $data.per_page]
4011
4001
  ]),
4012
4002
  vue.createElementVNode("span", _hoisted_5$6, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
@@ -4052,7 +4042,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4052
4042
  ]))
4053
4043
  : (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$3, [
4054
4044
  (this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
4055
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, _hoisted_14$2))
4045
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [..._hoisted_14$2]))
4056
4046
  : vue.createCommentVNode("v-if", true),
4057
4047
  (!$props.hideCount)
4058
4048
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$2, [
@@ -4107,14 +4097,12 @@ var script$e = {
4107
4097
  }
4108
4098
  },
4109
4099
  emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
4110
- setup(__props, { emit }) {
4100
+ setup(__props, { emit: __emit }) {
4111
4101
 
4112
4102
  const props = __props;
4113
4103
 
4114
-
4115
-
4116
4104
  const processing = vue.ref(false);
4117
-
4105
+ const emit = __emit;
4118
4106
  const actionSuccessful = (res)=>{
4119
4107
  processing.value = false;
4120
4108
  res.actionType = 'silentAction';
@@ -4206,13 +4194,11 @@ var script$d = {
4206
4194
  }
4207
4195
  },
4208
4196
  emits: ['actionSuccessful','actionFailed','success'],
4209
- setup(__props, { emit }) {
4197
+ setup(__props, { emit: __emit }) {
4210
4198
 
4211
4199
  const props = __props;
4212
-
4213
-
4214
4200
  const processing = vue.ref(false);
4215
-
4201
+ const emit = __emit;
4216
4202
  const actionSuccessful = (res)=>{
4217
4203
  processing.value = false;
4218
4204
  res.actionType = 'silentAction';
@@ -4309,13 +4295,11 @@ var script$c = {
4309
4295
  }
4310
4296
  },
4311
4297
  emits: ['rangeSelected'],
4312
- setup(__props, { emit }) {
4298
+ setup(__props, { emit: __emit }) {
4313
4299
 
4314
4300
  const props = __props;
4315
4301
 
4316
-
4317
-
4318
-
4302
+ const emit = __emit;
4319
4303
 
4320
4304
  const selectedDate = vue.ref(null);
4321
4305
  const rangeLabel = vue.ref(null);
@@ -4983,7 +4967,7 @@ return (_ctx, _cache) => {
4983
4967
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
4984
4968
  placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
4985
4969
  class: "form-control sh-search-input"
4986
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10$1), [
4970
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_10$1), [
4987
4971
  [vue.vModelText, _ctx.filter_value]
4988
4972
  ]),
4989
4973
  (_ctx.filter_value.length > 1)
@@ -4993,7 +4977,7 @@ return (_ctx, _cache) => {
4993
4977
  value: true,
4994
4978
  "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((_ctx.exactMatch) = $event)),
4995
4979
  type: "checkbox"
4996
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
4980
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
4997
4981
  [vue.vModelCheckbox, _ctx.exactMatch]
4998
4982
  ]),
4999
4983
  _hoisted_12$1
@@ -5006,7 +4990,7 @@ return (_ctx, _cache) => {
5006
4990
  (_ctx.hasDefaultSlot)
5007
4991
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
5008
4992
  (_ctx.loading === 'loading')
5009
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, _hoisted_15$1))
4993
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, [..._hoisted_15$1]))
5010
4994
  : (_ctx.loading === 'error')
5011
4995
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
5012
4996
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
@@ -5024,7 +5008,7 @@ return (_ctx, _cache) => {
5024
5008
  : (_ctx.hasRecordsSlot)
5025
5009
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
5026
5010
  (_ctx.loading === 'loading' && !__props.cacheKey)
5027
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, _hoisted_19))
5011
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, [..._hoisted_19]))
5028
5012
  : (_ctx.loading === 'error' && !__props.cacheKey)
5029
5013
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
5030
5014
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
@@ -5085,7 +5069,7 @@ return (_ctx, _cache) => {
5085
5069
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_28, [
5086
5070
  vue.createElementVNode("td", {
5087
5071
  colspan: _ctx.tableHeaders.length
5088
- }, _hoisted_31, 8 /* PROPS */, _hoisted_29)
5072
+ }, [..._hoisted_31], 8 /* PROPS */, _hoisted_29)
5089
5073
  ]))
5090
5074
  : (_ctx.loading === 'error')
5091
5075
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_32, [
@@ -5257,7 +5241,7 @@ return (_ctx, _cache) => {
5257
5241
  ], 2 /* CLASS */))
5258
5242
  : (vue.openBlock(), vue.createElementBlock("div", _hoisted_47, [
5259
5243
  (_ctx.loading === 'loading')
5260
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_48, _hoisted_50))
5244
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_48, [..._hoisted_50]))
5261
5245
  : (_ctx.loading === 'error')
5262
5246
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_51, [
5263
5247
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
@@ -5464,8 +5448,6 @@ var script$a = {
5464
5448
  setup(__props) {
5465
5449
 
5466
5450
  const props = __props;
5467
-
5468
-
5469
5451
  const route = vueRouter.useRoute();
5470
5452
  const router = vueRouter.useRouter();
5471
5453
  const currentTab = vue.ref('');
@@ -5593,8 +5575,6 @@ var script$9 = {
5593
5575
  setup(__props) {
5594
5576
 
5595
5577
  const props = __props;
5596
-
5597
-
5598
5578
  const tabs = props.tabs;
5599
5579
  let currentTab = vue.shallowRef(null);
5600
5580
  const generatedId = vue.ref(null);
@@ -5658,8 +5638,6 @@ var script$8 = {
5658
5638
  },
5659
5639
  setup(__props) {
5660
5640
 
5661
-
5662
-
5663
5641
  return (_ctx, _cache) => {
5664
5642
  return (vue.openBlock(), vue.createElementBlock("a", {
5665
5643
  href: `#${__props.modalId}`,
@@ -5687,8 +5665,6 @@ var script$7 = {
5687
5665
  },
5688
5666
  setup(__props) {
5689
5667
 
5690
-
5691
-
5692
5668
  return (_ctx, _cache) => {
5693
5669
  return (vue.openBlock(), vue.createElementBlock("a", {
5694
5670
  href: `#${__props.canvasId}`,
@@ -5747,9 +5723,9 @@ const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createEl
5747
5723
  var script$6 = {
5748
5724
  __name: 'ManagePermissions',
5749
5725
  emits: ['success'],
5750
- setup(__props, { emit }) {
5751
-
5726
+ setup(__props, { emit: __emit }) {
5752
5727
 
5728
+ const emit = __emit;
5753
5729
 
5754
5730
  const userStore =useUserStore();
5755
5731
 
@@ -5851,7 +5827,7 @@ return (_ctx, _cache) => {
5851
5827
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
5852
5828
  vue.createElementVNode("div", _hoisted_2$3, [
5853
5829
  (loadingModules.value)
5854
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, _hoisted_5$2))
5830
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [..._hoisted_5$2]))
5855
5831
  : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$2, [
5856
5832
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
5857
5833
  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 /* HYDRATE_EVENTS, NEED_PATCH */), [
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 /* HYDRATE_EVENTS, NEED_PATCH */), [
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
- let dropdownElem = document.getElementById('dropwdown_section' + id.value);
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
- shApis.doGet(props.url, { all: 1,filter_value: filterValue }).then(res => {
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, HYDRATE_EVENTS */, _hoisted_5$a)
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",
@@ -2178,7 +2191,8 @@ return (_ctx, _cache) => {
2178
2191
  }, [
2179
2192
  (suggestion.name)
2180
2193
  ? (openBlock(), createElementBlock("li", _hoisted_7$8, [
2181
- createElementVNode("a", {
2194
+ createElementVNode("span", {
2195
+ style: {"cursor":"pointer"},
2182
2196
  onClick: $event => (addSuggestion(suggestion)),
2183
2197
  class: normalizeClass(["dropdown-item", unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
2184
2198
  href: "#"
@@ -2628,7 +2642,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2628
2642
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2629
2643
  modelValue: _ctx.form_elements[field],
2630
2644
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2631
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
2645
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
2632
2646
  : createCommentVNode("v-if", true),
2633
2647
  ($options.getFieldType(field) === 'file')
2634
2648
  ? (openBlock(), createElementBlock("input", {
@@ -2642,7 +2656,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2642
2656
  ref: 'file_'+field,
2643
2657
  onChange: $event => ($options.handleFileUpload(field)),
2644
2658
  type: "file"
2645
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$5))
2659
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$5))
2646
2660
  : createCommentVNode("v-if", true),
2647
2661
  ($options.getFieldType(field) === 'numeric')
2648
2662
  ? withDirectives((openBlock(), createElementBlock("input", {
@@ -2654,7 +2668,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2654
2668
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2655
2669
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2656
2670
  type: "number"
2657
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$5)), [
2671
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$5)), [
2658
2672
  [vModelText, _ctx.form_elements[field]]
2659
2673
  ])
2660
2674
  : createCommentVNode("v-if", true),
@@ -2668,7 +2682,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2668
2682
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2669
2683
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2670
2684
  type: "password"
2671
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$4)), [
2685
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$4)), [
2672
2686
  [vModelText, _ctx.form_elements[field]]
2673
2687
  ])
2674
2688
  : createCommentVNode("v-if", true),
@@ -2683,7 +2697,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2683
2697
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2684
2698
  type: "email",
2685
2699
  required: ""
2686
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$4)), [
2700
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$4)), [
2687
2701
  [vModelText, _ctx.form_elements[field]]
2688
2702
  ])
2689
2703
  : createCommentVNode("v-if", true),
@@ -2696,7 +2710,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2696
2710
  onFocus: $event => ($options.removeErrors(field)),
2697
2711
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
2698
2712
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2699
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14$3)), [
2713
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
2700
2714
  [vModelText, _ctx.form_elements[field]]
2701
2715
  ])
2702
2716
  : createCommentVNode("v-if", true),
@@ -2735,7 +2749,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2735
2749
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2736
2750
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2737
2751
  type: "text"
2738
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15$3)), [
2752
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
2739
2753
  [vModelText, _ctx.form_elements[field]]
2740
2754
  ])
2741
2755
  : createCommentVNode("v-if", true),
@@ -2746,7 +2760,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2746
2760
  onFocus: $event => ($options.removeErrors(field)),
2747
2761
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2748
2762
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2749
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_16$3)), [
2763
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_16$3)), [
2750
2764
  [vModelText, _ctx.form_elements[field]]
2751
2765
  ])
2752
2766
  : createCommentVNode("v-if", true),
@@ -2764,7 +2778,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2764
2778
  value: item.id
2765
2779
  }, toDisplayString(item.name), 9 /* TEXT, PROPS */, _hoisted_18$3))
2766
2780
  }), 128 /* KEYED_FRAGMENT */))
2767
- ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_17$3)), [
2781
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_17$3)), [
2768
2782
  [vModelSelect, _ctx.form_elements[field]]
2769
2783
  ])
2770
2784
  : createCommentVNode("v-if", true),
@@ -2776,7 +2790,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2776
2790
  }), 128 /* KEYED_FRAGMENT */))
2777
2791
  ]),
2778
2792
  ($props.hasTerms)
2779
- ? (openBlock(), createElementBlock("div", _hoisted_20$1, _hoisted_23$1))
2793
+ ? (openBlock(), createElementBlock("div", _hoisted_20$1, [..._hoisted_23$1]))
2780
2794
  : createCommentVNode("v-if", true),
2781
2795
  (_ctx.form_status == 1)
2782
2796
  ? (openBlock(), createElementBlock("button", {
@@ -2806,12 +2820,10 @@ var script$s = {
2806
2820
  __name: 'EmailInput',
2807
2821
  props: ['modelValue','label'],
2808
2822
  emits: ['update:modelValue','clearValidationErrors'],
2809
- setup(__props, { emit }) {
2823
+ setup(__props, { emit: __emit }) {
2810
2824
 
2811
2825
  const props = __props;
2812
-
2813
-
2814
-
2826
+ const emit = __emit;
2815
2827
  const inputModel = ref(null);
2816
2828
 
2817
2829
  const modelValueUpdated = (e) => {
@@ -2834,7 +2846,7 @@ return (_ctx, _cache) => {
2834
2846
  onChange: modelValueUpdated,
2835
2847
  onKeydown: modelValueUpdated,
2836
2848
  onUpdated: modelValueUpdated
2837
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2849
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
2838
2850
  [vModelText, inputModel.value]
2839
2851
  ])
2840
2852
  }
@@ -2851,12 +2863,10 @@ var script$r = {
2851
2863
  __name: 'NumberInput',
2852
2864
  props: ['modelValue','label','min','max'],
2853
2865
  emits: ['update:modelValue','clearValidationErrors'],
2854
- setup(__props, { emit }) {
2866
+ setup(__props, { emit: __emit }) {
2855
2867
 
2856
2868
  const props = __props;
2857
-
2858
-
2859
-
2869
+ const emit = __emit;
2860
2870
  const inputModel = ref(null);
2861
2871
 
2862
2872
  const modelValueUpdated = (e) => {
@@ -2881,7 +2891,7 @@ return (_ctx, _cache) => {
2881
2891
  onChange: modelValueUpdated,
2882
2892
  onKeydown: modelValueUpdated,
2883
2893
  onUpdated: modelValueUpdated
2884
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$l)), [
2894
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$l)), [
2885
2895
  [vModelText, inputModel.value]
2886
2896
  ])
2887
2897
  }
@@ -2895,12 +2905,10 @@ var script$q = {
2895
2905
  __name: 'TextInput',
2896
2906
  props: ['modelValue','label','isInvalid'],
2897
2907
  emits: ['update:modelValue','clearValidationErrors'],
2898
- setup(__props, { emit }) {
2908
+ setup(__props, { emit: __emit }) {
2899
2909
 
2900
2910
  const props = __props;
2901
-
2902
-
2903
-
2911
+ const emit = __emit;
2904
2912
  const inputModel = ref(null);
2905
2913
 
2906
2914
  const modelValueUpdated = (e) => {
@@ -2925,7 +2933,7 @@ return (_ctx, _cache) => {
2925
2933
  onChange: modelValueUpdated,
2926
2934
  onKeydown: modelValueUpdated,
2927
2935
  onUpdated: modelValueUpdated
2928
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2936
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
2929
2937
  [vModelText, inputModel.value]
2930
2938
  ])
2931
2939
  }
@@ -2939,12 +2947,10 @@ var script$p = {
2939
2947
  __name: 'TextAreaInput',
2940
2948
  props: ['modelValue','label'],
2941
2949
  emits: ['update:modelValue','clearValidationErrors'],
2942
- setup(__props, { emit }) {
2950
+ setup(__props, { emit: __emit }) {
2943
2951
 
2944
2952
  const props = __props;
2945
-
2946
-
2947
-
2953
+ const emit = __emit;
2948
2954
  const inputModel = ref(null);
2949
2955
 
2950
2956
  const modelValueUpdated = (e) => {
@@ -2967,7 +2973,7 @@ return (_ctx, _cache) => {
2967
2973
  onChange: modelValueUpdated,
2968
2974
  onKeydown: modelValueUpdated,
2969
2975
  onUpdated: modelValueUpdated
2970
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2976
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
2971
2977
  [vModelText, inputModel.value]
2972
2978
  ])
2973
2979
  }
@@ -2984,12 +2990,10 @@ var script$o = {
2984
2990
  __name: 'SelectInput',
2985
2991
  props: ['modelValue','label','data','dataUrl'],
2986
2992
  emits: ['update:modelValue','clearValidationErrors'],
2987
- setup(__props, { emit }) {
2993
+ setup(__props, { emit: __emit }) {
2988
2994
 
2989
2995
  const props = __props;
2990
-
2991
-
2992
-
2996
+ const emit = __emit;
2993
2997
  const inputModel = ref(null);
2994
2998
  const selectOptions = ref(null);
2995
2999
  const modelValueUpdated = (e) => {
@@ -3038,7 +3042,7 @@ return (_ctx, _cache) => {
3038
3042
  value: option.id
3039
3043
  }, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$k))
3040
3044
  }), 128 /* KEYED_FRAGMENT */))
3041
- ], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
3045
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3042
3046
  [vModelSelect, inputModel.value]
3043
3047
  ])
3044
3048
  }
@@ -3052,12 +3056,10 @@ var script$n = {
3052
3056
  __name: 'PasswordInput',
3053
3057
  props: ['modelValue','label'],
3054
3058
  emits: ['update:modelValue','clearValidationErrors'],
3055
- setup(__props, { emit }) {
3059
+ setup(__props, { emit: __emit }) {
3056
3060
 
3057
3061
  const props = __props;
3058
-
3059
-
3060
-
3062
+ const emit = __emit;
3061
3063
  const inputModel = ref(null);
3062
3064
 
3063
3065
  const modelValueUpdated = (e) => {
@@ -3076,7 +3078,7 @@ return (_ctx, _cache) => {
3076
3078
  onChange: modelValueUpdated,
3077
3079
  onKeydown: modelValueUpdated,
3078
3080
  onUpdated: modelValueUpdated
3079
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
3081
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3080
3082
  [vModelText, inputModel.value]
3081
3083
  ])
3082
3084
  }
@@ -3128,12 +3130,10 @@ var script$m = {
3128
3130
  'phones','numbers','selects','dates','gqlMutation'
3129
3131
  ],
3130
3132
  emits: ['success','fieldChanged','formSubmitted','formError'],
3131
- setup(__props, { emit }) {
3133
+ setup(__props, { emit: __emit }) {
3132
3134
 
3133
3135
  const props = __props;
3134
-
3135
-
3136
-
3136
+ const emit = __emit;
3137
3137
  const formFields = ref([]);
3138
3138
  const getFieldComponent = (fieldObj)=>{
3139
3139
  if(fieldObj.component){
@@ -3366,7 +3366,7 @@ return (_ctx, _cache) => {
3366
3366
  }, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
3367
3367
  : createCommentVNode("v-if", true),
3368
3368
  (unref(isFloating))
3369
- ? (openBlock(), createElementBlock("div", _hoisted_5$8, _hoisted_9$5))
3369
+ ? (openBlock(), createElementBlock("div", _hoisted_5$8, [..._hoisted_9$5]))
3370
3370
  : createCommentVNode("v-if", true),
3371
3371
  (field.helper)
3372
3372
  ? (openBlock(), createElementBlock("div", {
@@ -3402,7 +3402,7 @@ return (_ctx, _cache) => {
3402
3402
  : createCommentVNode("v-if", true)
3403
3403
  ], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
3404
3404
  ], 2 /* CLASS */)
3405
- ], 34 /* CLASS, HYDRATE_EVENTS */)
3405
+ ], 34 /* CLASS, NEED_HYDRATION */)
3406
3406
  ], 64 /* STABLE_FRAGMENT */))
3407
3407
  }
3408
3408
  }
@@ -3435,8 +3435,6 @@ var script$l = {
3435
3435
 
3436
3436
  const props = __props;
3437
3437
 
3438
-
3439
-
3440
3438
  ref(props);
3441
3439
  let btnClass=props.class;
3442
3440
  const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
@@ -3508,12 +3506,10 @@ var script$k = {
3508
3506
  }
3509
3507
  },
3510
3508
  emits: ['modalClosed'],
3511
- setup(__props, { emit }) {
3509
+ setup(__props, { emit: __emit }) {
3512
3510
 
3511
+ const emit = __emit;
3513
3512
  const props = __props;
3514
-
3515
-
3516
-
3517
3513
  onMounted(() => {
3518
3514
  const modal = document.getElementById(props.modalId);
3519
3515
  modal.addEventListener('hidden.bs.modal', event => {
@@ -3570,12 +3566,10 @@ var script$j = {
3570
3566
  'numbers',
3571
3567
  'customComponent','modalTitle','class','successMessage'],
3572
3568
  emits: ['success'],
3573
- setup(__props, { emit }) {
3569
+ setup(__props, { emit: __emit }) {
3574
3570
 
3575
3571
  const props = __props;
3576
-
3577
-
3578
-
3572
+ const emit = __emit;
3579
3573
  ref(props);
3580
3574
  let btnClass=props.class;
3581
3575
  const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
@@ -3629,12 +3623,10 @@ var script$i = {
3629
3623
  'numbers',
3630
3624
  'customComponent','modalTitle','class','successMessage'],
3631
3625
  emits: ['success'],
3632
- setup(__props, { emit }) {
3626
+ setup(__props, { emit: __emit }) {
3633
3627
 
3634
3628
  const props = __props;
3635
-
3636
-
3637
-
3629
+ const emit = __emit;
3638
3630
  const formProps = ref(props);
3639
3631
  let btnClass=props.class;
3640
3632
  const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
@@ -3698,12 +3690,10 @@ var script$h = {
3698
3690
  }
3699
3691
  },
3700
3692
  emits: ['canvasClosed'],
3701
- setup(__props, { emit }) {
3693
+ setup(__props, { emit: __emit }) {
3702
3694
 
3695
+ const emit = __emit;
3703
3696
  const props = __props;
3704
-
3705
-
3706
-
3707
3697
  const pos = ref(props.position ?? props.side);
3708
3698
  const canvasSide = ref(pos.value ? `offcanvas-${pos.value}` : 'offcanvas-start');
3709
3699
 
@@ -3994,7 +3984,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
3994
3984
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.pageOptions, (option) => {
3995
3985
  return (openBlock(), createElementBlock("option", { value: option }, toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_4$7))
3996
3986
  }), 256 /* UNKEYED_FRAGMENT */))
3997
- ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
3987
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */), [
3998
3988
  [vModelSelect, $data.per_page]
3999
3989
  ]),
4000
3990
  createElementVNode("span", _hoisted_5$6, " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
@@ -4040,7 +4030,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4040
4030
  ]))
4041
4031
  : (openBlock(), createElementBlock("div", _hoisted_11$3, [
4042
4032
  (this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
4043
- ? (openBlock(), createElementBlock("div", _hoisted_12$2, _hoisted_14$2))
4033
+ ? (openBlock(), createElementBlock("div", _hoisted_12$2, [..._hoisted_14$2]))
4044
4034
  : createCommentVNode("v-if", true),
4045
4035
  (!$props.hideCount)
4046
4036
  ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
@@ -4095,14 +4085,12 @@ var script$e = {
4095
4085
  }
4096
4086
  },
4097
4087
  emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
4098
- setup(__props, { emit }) {
4088
+ setup(__props, { emit: __emit }) {
4099
4089
 
4100
4090
  const props = __props;
4101
4091
 
4102
-
4103
-
4104
4092
  const processing = ref(false);
4105
-
4093
+ const emit = __emit;
4106
4094
  const actionSuccessful = (res)=>{
4107
4095
  processing.value = false;
4108
4096
  res.actionType = 'silentAction';
@@ -4194,13 +4182,11 @@ var script$d = {
4194
4182
  }
4195
4183
  },
4196
4184
  emits: ['actionSuccessful','actionFailed','success'],
4197
- setup(__props, { emit }) {
4185
+ setup(__props, { emit: __emit }) {
4198
4186
 
4199
4187
  const props = __props;
4200
-
4201
-
4202
4188
  const processing = ref(false);
4203
-
4189
+ const emit = __emit;
4204
4190
  const actionSuccessful = (res)=>{
4205
4191
  processing.value = false;
4206
4192
  res.actionType = 'silentAction';
@@ -4297,13 +4283,11 @@ var script$c = {
4297
4283
  }
4298
4284
  },
4299
4285
  emits: ['rangeSelected'],
4300
- setup(__props, { emit }) {
4286
+ setup(__props, { emit: __emit }) {
4301
4287
 
4302
4288
  const props = __props;
4303
4289
 
4304
-
4305
-
4306
-
4290
+ const emit = __emit;
4307
4291
 
4308
4292
  const selectedDate = ref(null);
4309
4293
  const rangeLabel = ref(null);
@@ -4971,7 +4955,7 @@ return (_ctx, _cache) => {
4971
4955
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
4972
4956
  placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
4973
4957
  class: "form-control sh-search-input"
4974
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10$1), [
4958
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_10$1), [
4975
4959
  [vModelText, _ctx.filter_value]
4976
4960
  ]),
4977
4961
  (_ctx.filter_value.length > 1)
@@ -4981,7 +4965,7 @@ return (_ctx, _cache) => {
4981
4965
  value: true,
4982
4966
  "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((_ctx.exactMatch) = $event)),
4983
4967
  type: "checkbox"
4984
- }, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
4968
+ }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
4985
4969
  [vModelCheckbox, _ctx.exactMatch]
4986
4970
  ]),
4987
4971
  _hoisted_12$1
@@ -4994,7 +4978,7 @@ return (_ctx, _cache) => {
4994
4978
  (_ctx.hasDefaultSlot)
4995
4979
  ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
4996
4980
  (_ctx.loading === 'loading')
4997
- ? (openBlock(), createElementBlock("div", _hoisted_13$1, _hoisted_15$1))
4981
+ ? (openBlock(), createElementBlock("div", _hoisted_13$1, [..._hoisted_15$1]))
4998
4982
  : (_ctx.loading === 'error')
4999
4983
  ? (openBlock(), createElementBlock("div", _hoisted_16$1, [
5000
4984
  createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
@@ -5012,7 +4996,7 @@ return (_ctx, _cache) => {
5012
4996
  : (_ctx.hasRecordsSlot)
5013
4997
  ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
5014
4998
  (_ctx.loading === 'loading' && !__props.cacheKey)
5015
- ? (openBlock(), createElementBlock("div", _hoisted_17$1, _hoisted_19))
4999
+ ? (openBlock(), createElementBlock("div", _hoisted_17$1, [..._hoisted_19]))
5016
5000
  : (_ctx.loading === 'error' && !__props.cacheKey)
5017
5001
  ? (openBlock(), createElementBlock("div", _hoisted_20, [
5018
5002
  createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
@@ -5073,7 +5057,7 @@ return (_ctx, _cache) => {
5073
5057
  ? (openBlock(), createElementBlock("tr", _hoisted_28, [
5074
5058
  createElementVNode("td", {
5075
5059
  colspan: _ctx.tableHeaders.length
5076
- }, _hoisted_31, 8 /* PROPS */, _hoisted_29)
5060
+ }, [..._hoisted_31], 8 /* PROPS */, _hoisted_29)
5077
5061
  ]))
5078
5062
  : (_ctx.loading === 'error')
5079
5063
  ? (openBlock(), createElementBlock("tr", _hoisted_32, [
@@ -5245,7 +5229,7 @@ return (_ctx, _cache) => {
5245
5229
  ], 2 /* CLASS */))
5246
5230
  : (openBlock(), createElementBlock("div", _hoisted_47, [
5247
5231
  (_ctx.loading === 'loading')
5248
- ? (openBlock(), createElementBlock("div", _hoisted_48, _hoisted_50))
5232
+ ? (openBlock(), createElementBlock("div", _hoisted_48, [..._hoisted_50]))
5249
5233
  : (_ctx.loading === 'error')
5250
5234
  ? (openBlock(), createElementBlock("div", _hoisted_51, [
5251
5235
  createElementVNode("span", null, toDisplayString(_ctx.loading_error), 1 /* TEXT */)
@@ -5452,8 +5436,6 @@ var script$a = {
5452
5436
  setup(__props) {
5453
5437
 
5454
5438
  const props = __props;
5455
-
5456
-
5457
5439
  const route = useRoute();
5458
5440
  const router = useRouter();
5459
5441
  const currentTab = ref('');
@@ -5581,8 +5563,6 @@ var script$9 = {
5581
5563
  setup(__props) {
5582
5564
 
5583
5565
  const props = __props;
5584
-
5585
-
5586
5566
  const tabs = props.tabs;
5587
5567
  let currentTab = shallowRef(null);
5588
5568
  const generatedId = ref(null);
@@ -5646,8 +5626,6 @@ var script$8 = {
5646
5626
  },
5647
5627
  setup(__props) {
5648
5628
 
5649
-
5650
-
5651
5629
  return (_ctx, _cache) => {
5652
5630
  return (openBlock(), createElementBlock("a", {
5653
5631
  href: `#${__props.modalId}`,
@@ -5675,8 +5653,6 @@ var script$7 = {
5675
5653
  },
5676
5654
  setup(__props) {
5677
5655
 
5678
-
5679
-
5680
5656
  return (_ctx, _cache) => {
5681
5657
  return (openBlock(), createElementBlock("a", {
5682
5658
  href: `#${__props.canvasId}`,
@@ -5735,9 +5711,9 @@ const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElemen
5735
5711
  var script$6 = {
5736
5712
  __name: 'ManagePermissions',
5737
5713
  emits: ['success'],
5738
- setup(__props, { emit }) {
5739
-
5714
+ setup(__props, { emit: __emit }) {
5740
5715
 
5716
+ const emit = __emit;
5741
5717
 
5742
5718
  const userStore =useUserStore();
5743
5719
 
@@ -5839,7 +5815,7 @@ return (_ctx, _cache) => {
5839
5815
  return (openBlock(), createElementBlock("div", _hoisted_1$4, [
5840
5816
  createElementVNode("div", _hoisted_2$3, [
5841
5817
  (loadingModules.value)
5842
- ? (openBlock(), createElementBlock("div", _hoisted_3$3, _hoisted_5$2))
5818
+ ? (openBlock(), createElementBlock("div", _hoisted_3$3, [..._hoisted_5$2]))
5843
5819
  : (openBlock(), createElementBlock("ul", _hoisted_6$2, [
5844
5820
  (openBlock(true), createElementBlock(Fragment, null, renderList(modules.value, (module) => {
5845
5821
  return (openBlock(), createElementBlock("li", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.2.8",
3
+ "version": "4.3.0",
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.4.14",
31
+ "sweetalert2": "^11.10.5",
32
32
  "vue": "^3.2.37",
33
33
  "lodash": "^4.17.21"
34
34
  },