@iankibetsh/shframework 0.3.9 → 0.4.2

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.
Files changed (3) hide show
  1. package/dist/library.js +185 -155
  2. package/dist/library.mjs +185 -155
  3. package/package.json +1 -1
package/dist/library.js CHANGED
@@ -1612,7 +1612,7 @@ const _hoisted_2$6 = {
1612
1612
  style: {"display":"contents"}
1613
1613
  };
1614
1614
  const _hoisted_3$6 = ["src"];
1615
- const _hoisted_4$5 = ["value"];
1615
+ const _hoisted_4$6 = ["value"];
1616
1616
 
1617
1617
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1618
1618
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
@@ -1631,7 +1631,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1631
1631
  return (vue.openBlock(), vue.createElementBlock("option", {
1632
1632
  value: country,
1633
1633
  key: country.dialCode
1634
- }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$5))
1634
+ }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$6))
1635
1635
  }), 128 /* KEYED_FRAGMENT */))
1636
1636
  ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
1637
1637
  [vue.vModelSelect, $data.selectedCountry]
@@ -2033,10 +2033,10 @@ const _hoisted_2$5 = {
2033
2033
  class: "alert alert-danger"
2034
2034
  };
2035
2035
  const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-warning" }, null, -1 /* HOISTED */);
2036
- const _hoisted_4$4 = /*#__PURE__*/vue.createTextVNode(" Error");
2037
- const _hoisted_5$3 = [
2036
+ const _hoisted_4$5 = /*#__PURE__*/vue.createTextVNode(" Error");
2037
+ const _hoisted_5$4 = [
2038
2038
  _hoisted_3$5,
2039
- _hoisted_4$4
2039
+ _hoisted_4$5
2040
2040
  ];
2041
2041
  const _hoisted_6$2 = { class: "row" };
2042
2042
  const _hoisted_7$2 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
@@ -2090,7 +2090,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2090
2090
  vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2091
2091
  vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2092
2092
  (_ctx.form_status == 3)
2093
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, _hoisted_5$3))
2093
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, _hoisted_5$4))
2094
2094
  : vue.createCommentVNode("v-if", true),
2095
2095
  vue.withDirectives(vue.createElementVNode("input", {
2096
2096
  type: "hidden",
@@ -2293,7 +2293,7 @@ const _hoisted_3$4 = {
2293
2293
  class: "offcanvas-title",
2294
2294
  id: "offcanvasScrollingLabel"
2295
2295
  };
2296
- const _hoisted_4$3 = { class: "offcanvas-body" };
2296
+ const _hoisted_4$4 = { class: "offcanvas-body" };
2297
2297
 
2298
2298
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2299
2299
  return (vue.openBlock(), vue.createElementBlock("div", {
@@ -2314,7 +2314,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2314
2314
  "aria-label": "Close"
2315
2315
  }, null, 512 /* NEED_PATCH */)
2316
2316
  ]),
2317
- vue.createElementVNode("div", _hoisted_4$3, [
2317
+ vue.createElementVNode("div", _hoisted_4$4, [
2318
2318
  vue.renderSlot(_ctx.$slots, "default")
2319
2319
  ])
2320
2320
  ], 10 /* CLASS, PROPS */, _hoisted_1$4))
@@ -2333,8 +2333,8 @@ var script$3 = {
2333
2333
  const _hoisted_1$3 = ["id"];
2334
2334
  const _hoisted_2$3 = { class: "modal-content" };
2335
2335
  const _hoisted_3$3 = { class: "modal-header" };
2336
- const _hoisted_4$2 = { class: "modal-title" };
2337
- const _hoisted_5$2 = /*#__PURE__*/vue.createElementVNode("button", {
2336
+ const _hoisted_4$3 = { class: "modal-title" };
2337
+ const _hoisted_5$3 = /*#__PURE__*/vue.createElementVNode("button", {
2338
2338
  class: "btn btn-danger btn-sm",
2339
2339
  "data-bs-dismiss": "modal",
2340
2340
  "data-dismiss": "modal"
@@ -2355,8 +2355,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2355
2355
  }, [
2356
2356
  vue.createElementVNode("div", _hoisted_2$3, [
2357
2357
  vue.createElementVNode("div", _hoisted_3$3, [
2358
- vue.createElementVNode("h3", _hoisted_4$2, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
2359
- _hoisted_5$2
2358
+ vue.createElementVNode("h3", _hoisted_4$3, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
2359
+ _hoisted_5$3
2360
2360
  ]),
2361
2361
  vue.createElementVNode("div", _hoisted_6$1, [
2362
2362
  vue.createElementVNode("div", _hoisted_7$1, [
@@ -2445,10 +2445,10 @@ var script$2 = {
2445
2445
  const _hoisted_1$2 = { key: 0 };
2446
2446
  const _hoisted_2$2 = { class: "record_count_body mb-3" };
2447
2447
  const _hoisted_3$2 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2448
- const _hoisted_4$1 = /*#__PURE__*/vue.createTextVNode("  ");
2449
- const _hoisted_5$1 = /*#__PURE__*/vue.createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
2448
+ const _hoisted_4$2 = /*#__PURE__*/vue.createTextVNode("  ");
2449
+ const _hoisted_5$2 = /*#__PURE__*/vue.createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
2450
2450
  const _hoisted_10$1 = [
2451
- _hoisted_5$1
2451
+ _hoisted_5$2
2452
2452
  ];
2453
2453
  const _hoisted_11$1 = { class: "record_counts" };
2454
2454
  const _hoisted_12$1 = {
@@ -2492,7 +2492,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2492
2492
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
2493
2493
  vue.createElementVNode("div", _hoisted_2$2, [
2494
2494
  _hoisted_3$2,
2495
- _hoisted_4$1,
2495
+ _hoisted_4$2,
2496
2496
  vue.withDirectives(vue.createElementVNode("select", {
2497
2497
  class: "select_per_page",
2498
2498
  onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
@@ -2959,8 +2959,8 @@ const _hoisted_2$1 = {
2959
2959
  class: "col-md-4 mb-2"
2960
2960
  };
2961
2961
  const _hoisted_3$1 = ["disabled"];
2962
- const _hoisted_4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
2963
- const _hoisted_5 = /*#__PURE__*/vue.createTextVNode(" Export ");
2962
+ const _hoisted_4$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
2963
+ const _hoisted_5$1 = /*#__PURE__*/vue.createTextVNode(" Export ");
2964
2964
  const _hoisted_6 = /*#__PURE__*/vue.createElementVNode("span", {
2965
2965
  class: "spinner-border spinner-border-sm",
2966
2966
  role: "status",
@@ -2974,60 +2974,57 @@ const _hoisted_8 = {
2974
2974
  const _hoisted_9 = { class: "col-12 mb-3" };
2975
2975
  const _hoisted_10 = { class: "sh-search-bar" };
2976
2976
  const _hoisted_11 = ["placeholder"];
2977
- const _hoisted_12 = /*#__PURE__*/vue.createElementVNode("span", { class: "sh-search-icon" }, [
2978
- /*#__PURE__*/vue.createElementVNode("i", { class: "bi bi-search mb-0" })
2979
- ], -1 /* HOISTED */);
2980
- const _hoisted_13 = {
2977
+ const _hoisted_12 = {
2981
2978
  key: 0,
2982
2979
  class: "text-center"
2983
2980
  };
2984
- const _hoisted_14 = /*#__PURE__*/vue.createElementVNode("div", {
2981
+ const _hoisted_13 = /*#__PURE__*/vue.createElementVNode("div", {
2985
2982
  class: "spinner-border",
2986
2983
  role: "status"
2987
2984
  }, [
2988
2985
  /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
2989
2986
  ], -1 /* HOISTED */);
2990
- const _hoisted_15 = [
2991
- _hoisted_14
2987
+ const _hoisted_14 = [
2988
+ _hoisted_13
2992
2989
  ];
2993
- const _hoisted_16 = {
2990
+ const _hoisted_15 = {
2994
2991
  key: 1,
2995
2992
  class: "alert alert-danger"
2996
2993
  };
2997
- const _hoisted_17 = { colspan: 2 };
2998
- const _hoisted_18 = {
2994
+ const _hoisted_16 = { colspan: 2 };
2995
+ const _hoisted_17 = {
2999
2996
  key: 0,
3000
2997
  class: "text-center"
3001
2998
  };
3002
- const _hoisted_19 = /*#__PURE__*/vue.createElementVNode("div", {
2999
+ const _hoisted_18 = /*#__PURE__*/vue.createElementVNode("div", {
3003
3000
  class: "spinner-border",
3004
3001
  role: "status"
3005
3002
  }, [
3006
3003
  /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
3007
3004
  ], -1 /* HOISTED */);
3008
- const _hoisted_20 = [
3009
- _hoisted_19
3005
+ const _hoisted_19 = [
3006
+ _hoisted_18
3010
3007
  ];
3011
- const _hoisted_21 = {
3008
+ const _hoisted_20 = {
3012
3009
  key: 1,
3013
3010
  class: "alert alert-danger"
3014
3011
  };
3015
- const _hoisted_22 = { colspan: 2 };
3016
- const _hoisted_23 = { class: "sh-thead" };
3012
+ const _hoisted_21 = { colspan: 2 };
3013
+ const _hoisted_22 = { class: "sh-thead" };
3014
+ const _hoisted_23 = ["onClick"];
3017
3015
  const _hoisted_24 = ["onClick"];
3018
3016
  const _hoisted_25 = ["onClick"];
3019
- const _hoisted_26 = ["onClick"];
3020
- const _hoisted_27 = {
3017
+ const _hoisted_26 = {
3021
3018
  key: 0,
3022
3019
  class: "text-capitalize"
3023
3020
  };
3024
- const _hoisted_28 = { class: "sh-tbody" };
3025
- const _hoisted_29 = {
3021
+ const _hoisted_27 = { class: "sh-tbody" };
3022
+ const _hoisted_28 = {
3026
3023
  key: 0,
3027
3024
  class: "text-center"
3028
3025
  };
3029
- const _hoisted_30 = ["colspan"];
3030
- const _hoisted_31 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
3026
+ const _hoisted_29 = ["colspan"];
3027
+ const _hoisted_30 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
3031
3028
  /*#__PURE__*/vue.createElementVNode("div", {
3032
3029
  class: "spinner-border",
3033
3030
  role: "status"
@@ -3035,46 +3032,46 @@ const _hoisted_31 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-ce
3035
3032
  /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
3036
3033
  ])
3037
3034
  ], -1 /* HOISTED */);
3038
- const _hoisted_32 = [
3039
- _hoisted_31
3035
+ const _hoisted_31 = [
3036
+ _hoisted_30
3040
3037
  ];
3041
- const _hoisted_33 = {
3038
+ const _hoisted_32 = {
3042
3039
  key: 1,
3043
3040
  class: "text-center alert alert-danger"
3044
3041
  };
3045
- const _hoisted_34 = ["colspan"];
3046
- const _hoisted_35 = {
3042
+ const _hoisted_33 = ["colspan"];
3043
+ const _hoisted_34 = {
3047
3044
  key: 2,
3048
3045
  class: "text-center alert alert-info no_records"
3049
3046
  };
3050
- const _hoisted_36 = ["colspan"];
3051
- const _hoisted_37 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */);
3052
- const _hoisted_38 = /*#__PURE__*/vue.createTextVNode(" No records found ");
3053
- const _hoisted_39 = [
3054
- _hoisted_37,
3055
- _hoisted_38
3047
+ const _hoisted_35 = ["colspan"];
3048
+ const _hoisted_36 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */);
3049
+ const _hoisted_37 = /*#__PURE__*/vue.createTextVNode(" No records found ");
3050
+ const _hoisted_38 = [
3051
+ _hoisted_36,
3052
+ _hoisted_37
3056
3053
  ];
3057
- const _hoisted_40 = ["onClick"];
3058
- const _hoisted_41 = { key: 1 };
3059
- const _hoisted_42 = {
3054
+ const _hoisted_39 = ["onClick"];
3055
+ const _hoisted_40 = { key: 1 };
3056
+ const _hoisted_41 = {
3060
3057
  key: 2,
3061
3058
  class: "text-success fw-bold"
3062
3059
  };
3063
- const _hoisted_43 = { key: 3 };
3060
+ const _hoisted_42 = { key: 3 };
3061
+ const _hoisted_43 = ["innerHTML"];
3064
3062
  const _hoisted_44 = ["innerHTML"];
3065
3063
  const _hoisted_45 = ["innerHTML"];
3066
- const _hoisted_46 = ["innerHTML"];
3067
- const _hoisted_47 = {
3064
+ const _hoisted_46 = {
3068
3065
  key: 0,
3069
3066
  style: {"white-space":"nowrap"}
3070
3067
  };
3071
- const _hoisted_48 = ["title", "onClick"];
3072
- const _hoisted_49 = { key: 5 };
3073
- const _hoisted_50 = {
3068
+ const _hoisted_47 = ["title", "onClick"];
3069
+ const _hoisted_48 = { key: 5 };
3070
+ const _hoisted_49 = {
3074
3071
  key: 0,
3075
3072
  class: "text-center"
3076
3073
  };
3077
- const _hoisted_51 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
3074
+ const _hoisted_50 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
3078
3075
  /*#__PURE__*/vue.createElementVNode("div", {
3079
3076
  class: "spinner-border",
3080
3077
  role: "status"
@@ -3082,38 +3079,38 @@ const _hoisted_51 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-ce
3082
3079
  /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
3083
3080
  ])
3084
3081
  ], -1 /* HOISTED */);
3085
- const _hoisted_52 = [
3086
- _hoisted_51
3082
+ const _hoisted_51 = [
3083
+ _hoisted_50
3087
3084
  ];
3088
- const _hoisted_53 = { key: 1 };
3089
- const _hoisted_54 = {
3085
+ const _hoisted_52 = { key: 1 };
3086
+ const _hoisted_53 = {
3090
3087
  key: 2,
3091
3088
  class: "mobile-list-items"
3092
3089
  };
3093
- const _hoisted_55 = ["onClick"];
3094
- const _hoisted_56 = {
3090
+ const _hoisted_54 = ["onClick"];
3091
+ const _hoisted_55 = {
3095
3092
  key: 0,
3096
3093
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
3097
3094
  };
3098
- const _hoisted_57 = {
3095
+ const _hoisted_56 = {
3099
3096
  key: 1,
3100
3097
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
3101
3098
  };
3102
- const _hoisted_58 = {
3099
+ const _hoisted_57 = {
3103
3100
  key: 2,
3104
3101
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
3105
3102
  };
3106
- const _hoisted_59 = { key: 1 };
3107
- const _hoisted_60 = {
3103
+ const _hoisted_58 = { key: 1 };
3104
+ const _hoisted_59 = {
3108
3105
  key: 2,
3109
3106
  class: "text-primary fw-bold"
3110
3107
  };
3108
+ const _hoisted_60 = ["innerHTML"];
3111
3109
  const _hoisted_61 = ["innerHTML"];
3112
3110
  const _hoisted_62 = ["innerHTML"];
3113
- const _hoisted_63 = ["innerHTML"];
3114
- const _hoisted_64 = /*#__PURE__*/vue.createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */);
3115
- const _hoisted_65 = { key: 0 };
3116
- const _hoisted_66 = ["title", "onClick"];
3111
+ const _hoisted_63 = /*#__PURE__*/vue.createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */);
3112
+ const _hoisted_64 = { key: 0 };
3113
+ const _hoisted_65 = ["title", "onClick"];
3117
3114
 
3118
3115
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3119
3116
  const _component_router_link = vue.resolveComponent("router-link");
@@ -3129,8 +3126,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3129
3126
  }, [
3130
3127
  (!$data.downloading)
3131
3128
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
3132
- _hoisted_4,
3133
- _hoisted_5
3129
+ _hoisted_4$1,
3130
+ _hoisted_5$1
3134
3131
  ], 64 /* STABLE_FRAGMENT */))
3135
3132
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
3136
3133
  _hoisted_6,
@@ -3144,15 +3141,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3144
3141
  vue.createElementVNode("div", _hoisted_9, [
3145
3142
  vue.createElementVNode("div", _hoisted_10, [
3146
3143
  vue.withDirectives(vue.createElementVNode("input", {
3147
- type: "text",
3144
+ type: "search",
3148
3145
  onChange: _cache[1] || (_cache[1] = $event => ($options.reloadData(1))),
3149
3146
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (($data.filter_value) = $event)),
3150
3147
  placeholder: $props.searchPlaceholder ? $props.searchPlaceholder : 'Search',
3151
3148
  class: "form-control sh-search-input"
3152
3149
  }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_11), [
3153
3150
  [vue.vModelText, $data.filter_value]
3154
- ]),
3155
- _hoisted_12
3151
+ ])
3156
3152
  ])
3157
3153
  ])
3158
3154
  ]))
@@ -3160,10 +3156,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3160
3156
  ($options.hasDefaultSlot)
3161
3157
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
3162
3158
  ($data.loading === 'loading')
3163
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, _hoisted_15))
3159
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, _hoisted_14))
3164
3160
  : ($data.loading === 'error')
3165
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
3166
- vue.createElementVNode("span", _hoisted_17, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
3161
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
3162
+ vue.createElementVNode("span", _hoisted_16, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
3167
3163
  ]))
3168
3164
  : vue.createCommentVNode("v-if", true),
3169
3165
  ($data.loading === 'done')
@@ -3179,10 +3175,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3179
3175
  ($options.hasRecordsSlot)
3180
3176
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
3181
3177
  ($data.loading === 'loading')
3182
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, _hoisted_20))
3178
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, _hoisted_19))
3183
3179
  : ($data.loading === 'error')
3184
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
3185
- vue.createElementVNode("span", _hoisted_22, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
3180
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
3181
+ vue.createElementVNode("span", _hoisted_21, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
3186
3182
  ]))
3187
3183
  : vue.createCommentVNode("v-if", true),
3188
3184
  ($data.loading === 'done')
@@ -3197,7 +3193,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3197
3193
  key: 4,
3198
3194
  class: vue.normalizeClass(["table sh-table", $props.tableHover ? 'table-hover':''])
3199
3195
  }, [
3200
- vue.createElementVNode("thead", _hoisted_23, [
3196
+ vue.createElementVNode("thead", _hoisted_22, [
3201
3197
  vue.createElementVNode("tr", null, [
3202
3198
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.headers, (title) => {
3203
3199
  return (vue.openBlock(), vue.createElementBlock("th", {
@@ -3208,43 +3204,43 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3208
3204
  key: 0,
3209
3205
  class: "text-capitalize",
3210
3206
  onClick: $event => ($options.changeKey('order_by',title))
3211
- }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
3207
+ }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
3212
3208
  : (typeof title === 'function')
3213
3209
  ? (vue.openBlock(), vue.createElementBlock("a", {
3214
3210
  key: 1,
3215
3211
  class: "text-capitalize",
3216
3212
  onClick: $event => ($options.changeKey('order_by',title))
3217
- }, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
3213
+ }, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
3218
3214
  : (vue.openBlock(), vue.createElementBlock("a", {
3219
3215
  key: 2,
3220
3216
  class: "text-capitalize",
3221
3217
  onClick: $event => ($options.changeKey('order_by',title[0]))
3222
- }, vue.toDisplayString(title[1].replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_26))
3218
+ }, vue.toDisplayString(title[1].replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
3223
3219
  ]))
3224
3220
  }), 128 /* KEYED_FRAGMENT */)),
3225
3221
  ($props.actions)
3226
- ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_27, vue.toDisplayString($props.actions.label), 1 /* TEXT */))
3222
+ ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_26, vue.toDisplayString($props.actions.label), 1 /* TEXT */))
3227
3223
  : vue.createCommentVNode("v-if", true)
3228
3224
  ])
3229
3225
  ]),
3230
- vue.createElementVNode("tbody", _hoisted_28, [
3226
+ vue.createElementVNode("tbody", _hoisted_27, [
3231
3227
  ($data.loading === 'loading')
3232
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_29, [
3228
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_28, [
3233
3229
  vue.createElementVNode("td", {
3234
3230
  colspan: $props.headers.length
3235
- }, _hoisted_32, 8 /* PROPS */, _hoisted_30)
3231
+ }, _hoisted_31, 8 /* PROPS */, _hoisted_29)
3236
3232
  ]))
3237
3233
  : ($data.loading === 'error')
3238
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_33, [
3234
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_32, [
3239
3235
  vue.createElementVNode("td", {
3240
3236
  colspan: $props.headers.length
3241
- }, vue.toDisplayString($data.loading_error), 9 /* TEXT, PROPS */, _hoisted_34)
3237
+ }, vue.toDisplayString($data.loading_error), 9 /* TEXT, PROPS */, _hoisted_33)
3242
3238
  ]))
3243
3239
  : ($data.records.length === 0)
3244
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_35, [
3240
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_34, [
3245
3241
  vue.createElementVNode("td", {
3246
3242
  colspan: $props.actions ? $props.headers.length + 1 : $props.headers.length
3247
- }, _hoisted_39, 8 /* PROPS */, _hoisted_36)
3243
+ }, _hoisted_38, 8 /* PROPS */, _hoisted_35)
3248
3244
  ]))
3249
3245
  : ($data.loading === 'done')
3250
3246
  ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList($data.records, (record, index) => {
@@ -3265,29 +3261,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3265
3261
  innerHTML: record[key]
3266
3262
  }, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
3267
3263
  : ($options.getFieldType(key) === 'numeric')
3268
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_41, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3264
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_40, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3269
3265
  : ($options.getFieldType(key) === 'money')
3270
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_42, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3266
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_41, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3271
3267
  : ($options.getFieldType(key) === 'date')
3272
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_43, vue.toDisplayString($options.formatDate(record[key])), 1 /* TEXT */))
3268
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_42, vue.toDisplayString($options.formatDate(record[key])), 1 /* TEXT */))
3273
3269
  : (typeof key === 'string')
3274
3270
  ? (vue.openBlock(), vue.createElementBlock("span", {
3275
3271
  key: 4,
3276
3272
  innerHTML: record[key]
3277
- }, null, 8 /* PROPS */, _hoisted_44))
3273
+ }, null, 8 /* PROPS */, _hoisted_43))
3278
3274
  : (typeof key === 'function')
3279
3275
  ? (vue.openBlock(), vue.createElementBlock("span", {
3280
3276
  key: 5,
3281
3277
  innerHTML: key(record, index)
3282
- }, null, 8 /* PROPS */, _hoisted_45))
3278
+ }, null, 8 /* PROPS */, _hoisted_44))
3283
3279
  : (vue.openBlock(), vue.createElementBlock("span", {
3284
3280
  key: 6,
3285
3281
  innerHTML: record[key[0]]
3286
- }, null, 8 /* PROPS */, _hoisted_46))
3282
+ }, null, 8 /* PROPS */, _hoisted_45))
3287
3283
  ]))
3288
3284
  }), 128 /* KEYED_FRAGMENT */)),
3289
3285
  ($props.actions)
3290
- ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_47, [
3286
+ ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_46, [
3291
3287
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.actions.actions, (act) => {
3292
3288
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3293
3289
  key: act.path
@@ -3302,7 +3298,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3302
3298
  title: act.title,
3303
3299
  class: vue.normalizeClass(act.class ? act.class:'btn btn-default'),
3304
3300
  onClick: $event => ($options.doEmitAction(act.emits,record))
3305
- }, vue.toDisplayString(act.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_48))
3301
+ }, vue.toDisplayString(act.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_47))
3306
3302
  : vue.createCommentVNode("v-if", true),
3307
3303
  (!act.emits)
3308
3304
  ? (vue.openBlock(), vue.createBlock(_component_router_link, {
@@ -3325,20 +3321,20 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3325
3321
  }), 128 /* KEYED_FRAGMENT */))
3326
3322
  ]))
3327
3323
  : vue.createCommentVNode("v-if", true)
3328
- ], 10 /* CLASS, PROPS */, _hoisted_40))
3324
+ ], 10 /* CLASS, PROPS */, _hoisted_39))
3329
3325
  }), 128 /* KEYED_FRAGMENT */))
3330
3326
  : vue.createCommentVNode("v-if", true)
3331
3327
  ])
3332
3328
  ], 2 /* CLASS */))
3333
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_49, [
3329
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_48, [
3334
3330
  ($data.loading === 'loading')
3335
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, _hoisted_52))
3331
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_49, _hoisted_51))
3336
3332
  : ($data.loading === 'error')
3337
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_53, [
3333
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_52, [
3338
3334
  vue.createElementVNode("span", null, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
3339
3335
  ]))
3340
3336
  : ($data.loading === 'done')
3341
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_54, [
3337
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_53, [
3342
3338
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.records, (record, index) => {
3343
3339
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3344
3340
  key: record.id
@@ -3353,10 +3349,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3353
3349
  key: key[0]
3354
3350
  }, [
3355
3351
  (typeof key === 'string' )
3356
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_56, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
3352
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_55, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
3357
3353
  : (typeof key === 'function')
3358
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_57, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
3359
- : (vue.openBlock(), vue.createElementBlock("p", _hoisted_58, vue.toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
3354
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_56, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
3355
+ : (vue.openBlock(), vue.createElementBlock("p", _hoisted_57, vue.toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
3360
3356
  vue.createElementVNode("span", null, [
3361
3357
  (typeof key === 'string' && $props.links && $props.links[key])
3362
3358
  ? (vue.openBlock(), vue.createBlock(_component_router_link, {
@@ -3366,29 +3362,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3366
3362
  innerHTML: record[key]
3367
3363
  }, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
3368
3364
  : ($options.getFieldType(key) === 'numeric')
3369
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_59, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3365
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_58, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3370
3366
  : ($options.getFieldType(key) === 'money')
3371
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_60, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3367
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_59, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
3372
3368
  : (typeof key === 'string')
3373
3369
  ? (vue.openBlock(), vue.createElementBlock("span", {
3374
3370
  key: 3,
3375
3371
  innerHTML: record[key]
3376
- }, null, 8 /* PROPS */, _hoisted_61))
3372
+ }, null, 8 /* PROPS */, _hoisted_60))
3377
3373
  : (typeof key === 'function')
3378
3374
  ? (vue.openBlock(), vue.createElementBlock("span", {
3379
3375
  key: 4,
3380
3376
  innerHTML: key(record, index )
3381
- }, null, 8 /* PROPS */, _hoisted_62))
3377
+ }, null, 8 /* PROPS */, _hoisted_61))
3382
3378
  : (vue.openBlock(), vue.createElementBlock("span", {
3383
3379
  key: 5,
3384
3380
  innerHTML: record[key[0]]
3385
- }, null, 8 /* PROPS */, _hoisted_63))
3381
+ }, null, 8 /* PROPS */, _hoisted_62))
3386
3382
  ]),
3387
- _hoisted_64
3383
+ _hoisted_63
3388
3384
  ], 64 /* STABLE_FRAGMENT */))
3389
3385
  }), 128 /* KEYED_FRAGMENT */)),
3390
3386
  ($props.actions)
3391
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_65, [
3387
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_64, [
3392
3388
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.actions.actions, (act) => {
3393
3389
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3394
3390
  key: act.path
@@ -3403,7 +3399,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3403
3399
  title: act.title,
3404
3400
  class: vue.normalizeClass(act.class ? act.class:'btn btn-default'),
3405
3401
  onClick: $event => ($options.doEmitAction(act.emits,record))
3406
- }, vue.toDisplayString(act.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_66))
3402
+ }, vue.toDisplayString(act.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_65))
3407
3403
  : vue.createCommentVNode("v-if", true),
3408
3404
  (!act.emits)
3409
3405
  ? (vue.openBlock(), vue.createBlock(_component_router_link, {
@@ -3426,7 +3422,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3426
3422
  }), 128 /* KEYED_FRAGMENT */))
3427
3423
  ]))
3428
3424
  : vue.createCommentVNode("v-if", true)
3429
- ], 8 /* PROPS */, _hoisted_55)
3425
+ ], 8 /* PROPS */, _hoisted_54)
3430
3426
  ], 64 /* STABLE_FRAGMENT */))
3431
3427
  }), 128 /* KEYED_FRAGMENT */))
3432
3428
  ]))
@@ -3451,10 +3447,12 @@ script$1.__file = "src/views/ShTable.vue";
3451
3447
 
3452
3448
  var script = {
3453
3449
  name: 'ShTabs',
3454
- props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts'],
3450
+ props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
3455
3451
  data () {
3456
3452
  return {
3457
- currentTab: ''
3453
+ currentTab: '',
3454
+ generatedId: null,
3455
+ isResponsive: typeof this.responsive !== 'undefined'
3458
3456
  }
3459
3457
  },
3460
3458
  watch: {
@@ -3474,9 +3472,14 @@ var script = {
3474
3472
  }
3475
3473
  },
3476
3474
  mounted () {
3475
+ this.generatedId = 'tab' + Math.random().toString(36).slice(2);
3477
3476
  this.resetTabCounts();
3477
+ this.setTab(this.tabs[0]);
3478
3478
  },
3479
3479
  methods: {
3480
+ setTab: function(tab){
3481
+ this.currentTab = tab.replace(/_/g, ' ');
3482
+ },
3480
3483
  setTabCounts: function (tabCounts) {
3481
3484
  if (typeof tabCounts === 'object') {
3482
3485
  this.setCounts(tabCounts);
@@ -3508,7 +3511,7 @@ var script = {
3508
3511
  },
3509
3512
  setCounts: function (res) {
3510
3513
  Object.keys(res).forEach(key => {
3511
- const elem = document.getElementById('sh_tab_' + key);
3514
+ let elem = document.getElementsByClassName('sh_tab_' + key);
3512
3515
  if (elem) {
3513
3516
  let txt = elem.innerHTML;
3514
3517
  txt = txt.split('<i class="d-none"></i>')[0];
@@ -3521,48 +3524,75 @@ var script = {
3521
3524
  }
3522
3525
  };
3523
3526
 
3524
- const _hoisted_1 = { class: "common_tabs" };
3525
- const _hoisted_2 = {
3526
- class: "nav nav-tabs mb-2",
3527
- id: "myTab",
3528
- role: "tablist"
3527
+ const _hoisted_1 = {
3528
+ key: 0,
3529
+ class: "navbar navbar-expand-lg sh-horizontal-tabs"
3529
3530
  };
3530
- const _hoisted_3 = { class: "tab-content" };
3531
+ const _hoisted_2 = ["data-bs-target"];
3532
+ const _hoisted_3 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
3533
+ const _hoisted_4 = ["id"];
3534
+ const _hoisted_5 = { class: "tab-content" };
3531
3535
 
3532
3536
  function render(_ctx, _cache, $props, $setup, $data, $options) {
3533
3537
  const _component_router_link = vue.resolveComponent("router-link");
3534
3538
  const _component_router_view = vue.resolveComponent("router-view");
3535
3539
 
3536
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
3537
- vue.createElementVNode("ul", _hoisted_2, [
3538
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.tabs, (tab) => {
3539
- return (vue.openBlock(), vue.createElementBlock("li", {
3540
- class: "nav-item",
3541
- key: tab
3542
- }, [
3543
- vue.createVNode(_component_router_link, {
3544
- "active-class": 'active',
3545
- class: "nav-link text-capitalize",
3546
- to: $props.baseUrl+'/tab/'+tab,
3547
- role: "tab",
3548
- id: 'sh_tab_' + tab
3549
- }, {
3550
- default: vue.withCtx(() => [
3551
- vue.createTextVNode(vue.toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
3552
- ]),
3553
- _: 2 /* DYNAMIC */
3554
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to", "id"])
3540
+ return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3541
+ ($data.generatedId)
3542
+ ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_1, [
3543
+ ($data.isResponsive)
3544
+ ? (vue.openBlock(), vue.createElementBlock("a", {
3545
+ key: 0,
3546
+ href: "#",
3547
+ class: "form-control navbar-toggler text-capitalize",
3548
+ "data-bs-toggle": "collapse",
3549
+ "data-bs-target": '#' + $data.generatedId,
3550
+ "aria-controls": "navbarNav",
3551
+ "aria-expanded": "false",
3552
+ "aria-label": "Toggle navigation"
3553
+ }, [
3554
+ vue.createTextVNode(vue.toDisplayString($data.currentTab) + " ", 1 /* TEXT */),
3555
+ _hoisted_3
3556
+ ], 8 /* PROPS */, _hoisted_2))
3557
+ : vue.createCommentVNode("v-if", true),
3558
+ vue.createElementVNode("div", {
3559
+ class: vue.normalizeClass($data.isResponsive ? 'collapse navbar-collapse':''),
3560
+ id: $data.generatedId
3561
+ }, [
3562
+ vue.createElementVNode("ul", {
3563
+ class: vue.normalizeClass($data.isResponsive ? 'navbar-nav nav':'nav')
3564
+ }, [
3565
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.tabs, (tab) => {
3566
+ return (vue.openBlock(), vue.createElementBlock("li", {
3567
+ class: "nav-item",
3568
+ key: tab
3569
+ }, [
3570
+ vue.createVNode(_component_router_link, {
3571
+ onClick: $event => ($options.setTab(tab)),
3572
+ "active-class": 'active',
3573
+ class: vue.normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
3574
+ to: $props.baseUrl+'/tab/'+tab,
3575
+ role: "tab"
3576
+ }, {
3577
+ default: vue.withCtx(() => [
3578
+ vue.createTextVNode(vue.toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
3579
+ ]),
3580
+ _: 2 /* DYNAMIC */
3581
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
3582
+ ]))
3583
+ }), 128 /* KEYED_FRAGMENT */))
3584
+ ], 2 /* CLASS */)
3585
+ ], 10 /* CLASS, PROPS */, _hoisted_4)
3555
3586
  ]))
3556
- }), 128 /* KEYED_FRAGMENT */))
3557
- ]),
3558
- vue.createElementVNode("div", _hoisted_3, [
3587
+ : vue.createCommentVNode("v-if", true),
3588
+ vue.createElementVNode("div", _hoisted_5, [
3559
3589
  vue.createVNode(_component_router_view, {
3560
3590
  currentTab: $data.currentTab,
3561
3591
  sharedData: $props.sharedData,
3562
3592
  tabCounts: $props.tabCounts
3563
3593
  }, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
3564
3594
  ])
3565
- ]))
3595
+ ], 64 /* STABLE_FRAGMENT */))
3566
3596
  }
3567
3597
 
3568
3598
  script.render = render;