@iankibetsh/shframework 1.0.2 → 1.0.4

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 +102 -133
  2. package/dist/library.mjs +102 -133
  3. package/package.json +1 -1
package/dist/library.js CHANGED
@@ -1636,19 +1636,19 @@ var script$e = {
1636
1636
  }
1637
1637
  };
1638
1638
 
1639
- const _hoisted_1$e = { class: "sh-phone mb-3" };
1640
- const _hoisted_2$c = {
1639
+ const _hoisted_1$d = { class: "sh-phone mb-3" };
1640
+ const _hoisted_2$b = {
1641
1641
  key: 0,
1642
1642
  style: {"display":"contents"}
1643
1643
  };
1644
- const _hoisted_3$b = ["src"];
1645
- const _hoisted_4$b = ["value"];
1644
+ const _hoisted_3$a = ["src"];
1645
+ const _hoisted_4$a = ["value"];
1646
1646
 
1647
1647
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1648
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
1648
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
1649
1649
  ($data.selectedCountry)
1650
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$c, [
1651
- vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$b),
1650
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
1651
+ vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$a),
1652
1652
  vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
1653
1653
  ]))
1654
1654
  : vue.createCommentVNode("v-if", true),
@@ -1661,7 +1661,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1661
1661
  return (vue.openBlock(), vue.createElementBlock("option", {
1662
1662
  value: country,
1663
1663
  key: country.dialCode
1664
- }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$b))
1664
+ }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$a))
1665
1665
  }), 128 /* KEYED_FRAGMENT */))
1666
1666
  ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
1667
1667
  [vue.vModelSelect, $data.selectedCountry]
@@ -1721,7 +1721,7 @@ var script$d = {
1721
1721
  }
1722
1722
  };
1723
1723
 
1724
- const _hoisted_1$d = /*#__PURE__*/vue.createElementVNode("textarea", {
1724
+ const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("textarea", {
1725
1725
  id: "tiny",
1726
1726
  style: {"display":"none"},
1727
1727
  "data-cy": "tinymce_editor"
@@ -1731,7 +1731,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1731
1731
  const _component_editor = vue.resolveComponent("editor");
1732
1732
 
1733
1733
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
1734
- _hoisted_1$d,
1734
+ _hoisted_1$c,
1735
1735
  vue.createElementVNode("div", {
1736
1736
  onFocusin: _cache[1] || (_cache[1] = vue.withModifiers(() => {}, ["stop"])),
1737
1737
  class: "sh-editor w-100"
@@ -1759,14 +1759,14 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1759
1759
  script$d.render = render$6;
1760
1760
  script$d.__file = "src/lib/components/FormComponent/ShEditor.vue";
1761
1761
 
1762
- const _hoisted_1$c = {
1762
+ const _hoisted_1$b = {
1763
1763
  key: 0,
1764
1764
  class: "dropdown sh-suggest"
1765
1765
  };
1766
- const _hoisted_2$b = ["id"];
1767
- const _hoisted_3$a = { class: "badge bg-secondary m-1 sh-selected-item" };
1768
- const _hoisted_4$a = ["onClick"];
1769
- const _hoisted_5$7 = ["id"];
1766
+ const _hoisted_2$a = ["id"];
1767
+ const _hoisted_3$9 = { class: "badge bg-secondary m-1 sh-selected-item" };
1768
+ const _hoisted_4$9 = ["onClick"];
1769
+ const _hoisted_5$6 = ["id"];
1770
1770
  const _hoisted_6$5 = ["id", "aria-labelledby"];
1771
1771
  const _hoisted_7$4 = { key: 0 };
1772
1772
  const _hoisted_8$3 = ["onClick"];
@@ -1861,7 +1861,7 @@ function filterData(e){
1861
1861
 
1862
1862
  return (_ctx, _cache) => {
1863
1863
  return (vue.unref(id))
1864
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
1864
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
1865
1865
  vue.createElementVNode("div", {
1866
1866
  id: vue.unref(id),
1867
1867
  "data-bs-toggle": "dropdown",
@@ -1870,14 +1870,14 @@ return (_ctx, _cache) => {
1870
1870
  }, [
1871
1871
  vue.createElementVNode("div", null, [
1872
1872
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
1873
- return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$a, [
1873
+ return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$9, [
1874
1874
  vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
1875
1875
  vue.createElementVNode("button", {
1876
1876
  onClick: $event => (removeSuggestion(sgt.id)),
1877
1877
  type: "button",
1878
1878
  class: "btn-close border-start border-1 ms-1",
1879
1879
  "aria-label": "Close"
1880
- }, null, 8 /* PROPS */, _hoisted_4$a)
1880
+ }, null, 8 /* PROPS */, _hoisted_4$9)
1881
1881
  ]))
1882
1882
  }), 256 /* UNKEYED_FRAGMENT */))
1883
1883
  ]),
@@ -1887,8 +1887,8 @@ return (_ctx, _cache) => {
1887
1887
  onClick: filterData,
1888
1888
  onInput: filterData,
1889
1889
  class: "flex-fill h-100 sh-suggestion-input"
1890
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$7)
1891
- ], 8 /* PROPS */, _hoisted_2$b),
1890
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$6)
1891
+ ], 8 /* PROPS */, _hoisted_2$a),
1892
1892
  vue.createElementVNode("ul", {
1893
1893
  class: "dropdown-menu w-100",
1894
1894
  id: 'dropwdown_section' + vue.unref(id),
@@ -2241,18 +2241,18 @@ var script$b = {
2241
2241
  }
2242
2242
  };
2243
2243
 
2244
- const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2245
- const _hoisted_2$a = {
2244
+ const _hoisted_1$a = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2245
+ const _hoisted_2$9 = {
2246
2246
  ref: "ShAutoForm",
2247
2247
  class: "sh-form"
2248
2248
  };
2249
- const _hoisted_3$9 = {
2249
+ const _hoisted_3$8 = {
2250
2250
  key: 0,
2251
2251
  class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
2252
2252
  role: "alert"
2253
2253
  };
2254
- const _hoisted_4$9 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2255
- const _hoisted_5$6 = { key: 0 };
2254
+ const _hoisted_4$8 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2255
+ const _hoisted_5$5 = { key: 0 };
2256
2256
  const _hoisted_6$4 = { key: 1 };
2257
2257
  const _hoisted_7$3 = { class: "row" };
2258
2258
  const _hoisted_8$2 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
@@ -2303,15 +2303,15 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2303
2303
  const _component_ShEditor = vue.resolveComponent("ShEditor");
2304
2304
 
2305
2305
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2306
- _hoisted_1$b,
2307
- vue.createElementVNode("form", _hoisted_2$a, [
2306
+ _hoisted_1$a,
2307
+ vue.createElementVNode("form", _hoisted_2$9, [
2308
2308
  vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2309
2309
  vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2310
2310
  (_ctx.form_status == 3)
2311
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$9, [
2312
- _hoisted_4$9,
2311
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$8, [
2312
+ _hoisted_4$8,
2313
2313
  (_ctx.errorText)
2314
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$6, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2314
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$5, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2315
2315
  : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$4, "Unexpected Error Occurred")),
2316
2316
  vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2317
2317
  ]))
@@ -2523,8 +2523,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2523
2523
  script$b.render = render$5;
2524
2524
  script$b.__file = "src/lib/components/ShForm.vue";
2525
2525
 
2526
- const _hoisted_1$a = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
2527
- const _hoisted_2$9 = { class: "dropdown" };
2526
+ const _hoisted_1$9 = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
2527
+ const _hoisted_2$8 = { class: "dropdown" };
2528
2528
 
2529
2529
  var script$a = {
2530
2530
  __name: 'ShDropDownForm',
@@ -2556,8 +2556,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
2556
2556
 
2557
2557
  return (_ctx, _cache) => {
2558
2558
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2559
- _hoisted_1$a,
2560
- vue.createElementVNode("div", _hoisted_2$9, [
2559
+ _hoisted_1$9,
2560
+ vue.createElementVNode("div", _hoisted_2$8, [
2561
2561
  vue.createElementVNode("a", {
2562
2562
  class: vue.normalizeClass(vue.unref(btnClass)),
2563
2563
  href: "#",
@@ -2591,11 +2591,11 @@ var script$9 = {
2591
2591
  }
2592
2592
  };
2593
2593
 
2594
- const _hoisted_1$9 = ["id"];
2595
- const _hoisted_2$8 = { class: "modal-content" };
2596
- const _hoisted_3$8 = { class: "modal-header" };
2597
- const _hoisted_4$8 = { class: "modal-title" };
2598
- const _hoisted_5$5 = /*#__PURE__*/vue.createElementVNode("button", {
2594
+ const _hoisted_1$8 = ["id"];
2595
+ const _hoisted_2$7 = { class: "modal-content" };
2596
+ const _hoisted_3$7 = { class: "modal-header" };
2597
+ const _hoisted_4$7 = { class: "modal-title" };
2598
+ const _hoisted_5$4 = /*#__PURE__*/vue.createElementVNode("button", {
2599
2599
  class: "btn btn-danger btn-sm",
2600
2600
  "data-bs-dismiss": "modal",
2601
2601
  "data-dismiss": "modal"
@@ -2612,10 +2612,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2612
2612
  vue.createElementVNode("div", {
2613
2613
  class: vue.normalizeClass(["modal-dialog", `modal-${$props.modalSize}`])
2614
2614
  }, [
2615
- vue.createElementVNode("div", _hoisted_2$8, [
2616
- vue.createElementVNode("div", _hoisted_3$8, [
2617
- vue.createElementVNode("h3", _hoisted_4$8, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
2618
- _hoisted_5$5
2615
+ vue.createElementVNode("div", _hoisted_2$7, [
2616
+ vue.createElementVNode("div", _hoisted_3$7, [
2617
+ vue.createElementVNode("h3", _hoisted_4$7, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
2618
+ _hoisted_5$4
2619
2619
  ]),
2620
2620
  vue.createElementVNode("div", _hoisted_6$3, [
2621
2621
  vue.createElementVNode("div", _hoisted_7$2, [
@@ -2624,13 +2624,13 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2624
2624
  ])
2625
2625
  ])
2626
2626
  ], 2 /* CLASS */)
2627
- ], 8 /* PROPS */, _hoisted_1$9))
2627
+ ], 8 /* PROPS */, _hoisted_1$8))
2628
2628
  }
2629
2629
 
2630
2630
  script$9.render = render$4;
2631
2631
  script$9.__file = "src/lib/components/ShModal.vue";
2632
2632
 
2633
- const _hoisted_1$8 = ["href"];
2633
+ const _hoisted_1$7 = ["href"];
2634
2634
 
2635
2635
  var script$8 = {
2636
2636
  __name: 'ShModalForm',
@@ -2668,7 +2668,7 @@ return (_ctx, _cache) => {
2668
2668
  "data-bs-toggle": "modal"
2669
2669
  }, [
2670
2670
  vue.renderSlot(_ctx.$slots, "default")
2671
- ], 10 /* CLASS, PROPS */, _hoisted_1$8),
2671
+ ], 10 /* CLASS, PROPS */, _hoisted_1$7),
2672
2672
  vue.createVNode(script$9, {
2673
2673
  "modal-id": modalId,
2674
2674
  "modal-title": __props.modalTitle
@@ -2703,13 +2703,13 @@ var script$7 = {
2703
2703
  }
2704
2704
  };
2705
2705
 
2706
- const _hoisted_1$7 = ["id"];
2707
- const _hoisted_2$7 = { class: "offcanvas-header" };
2708
- const _hoisted_3$7 = {
2706
+ const _hoisted_1$6 = ["id"];
2707
+ const _hoisted_2$6 = { class: "offcanvas-header" };
2708
+ const _hoisted_3$6 = {
2709
2709
  class: "offcanvas-title",
2710
2710
  id: "offcanvasScrollingLabel"
2711
2711
  };
2712
- const _hoisted_4$7 = { class: "offcanvas-body" };
2712
+ const _hoisted_4$6 = { class: "offcanvas-body" };
2713
2713
 
2714
2714
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2715
2715
  return (vue.openBlock(), vue.createElementBlock("div", {
@@ -2719,8 +2719,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2719
2719
  id: $props.canvasId,
2720
2720
  "aria-labelledby": "offcanvasScrollingLabel"
2721
2721
  }, [
2722
- vue.createElementVNode("div", _hoisted_2$7, [
2723
- vue.createElementVNode("h5", _hoisted_3$7, vue.toDisplayString($props.canvasTitle), 1 /* TEXT */),
2722
+ vue.createElementVNode("div", _hoisted_2$6, [
2723
+ vue.createElementVNode("h5", _hoisted_3$6, vue.toDisplayString($props.canvasTitle), 1 /* TEXT */),
2724
2724
  vue.createElementVNode("button", {
2725
2725
  type: "button",
2726
2726
  ref: "closecanvas",
@@ -2730,10 +2730,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2730
2730
  "aria-label": "Close"
2731
2731
  }, null, 512 /* NEED_PATCH */)
2732
2732
  ]),
2733
- vue.createElementVNode("div", _hoisted_4$7, [
2733
+ vue.createElementVNode("div", _hoisted_4$6, [
2734
2734
  vue.renderSlot(_ctx.$slots, "default")
2735
2735
  ])
2736
- ], 10 /* CLASS, PROPS */, _hoisted_1$7))
2736
+ ], 10 /* CLASS, PROPS */, _hoisted_1$6))
2737
2737
  }
2738
2738
 
2739
2739
  script$7.render = render$3;
@@ -2810,12 +2810,12 @@ var script$6 = {
2810
2810
  }
2811
2811
  };
2812
2812
 
2813
- const _hoisted_1$6 = { key: 0 };
2814
- const _hoisted_2$6 = { class: "record_count_body mb-3" };
2815
- const _hoisted_3$6 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2816
- const _hoisted_4$6 = /*#__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);
2813
+ const _hoisted_1$5 = { key: 0 };
2814
+ const _hoisted_2$5 = { class: "record_count_body mb-3" };
2815
+ const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2816
+ const _hoisted_4$5 = /*#__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);
2817
2817
  const _hoisted_9$2 = [
2818
- _hoisted_4$6
2818
+ _hoisted_4$5
2819
2819
  ];
2820
2820
  const _hoisted_10$1 = { class: "record_counts" };
2821
2821
  const _hoisted_11$1 = {
@@ -2856,9 +2856,9 @@ const _hoisted_22$1 = {
2856
2856
 
2857
2857
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2858
2858
  return (!$props.loadMore)
2859
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
2860
- vue.createElementVNode("div", _hoisted_2$6, [
2861
- _hoisted_3$6,
2859
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
2860
+ vue.createElementVNode("div", _hoisted_2$5, [
2861
+ _hoisted_3$5,
2862
2862
  vue.createTextVNode("  "),
2863
2863
  vue.withDirectives(vue.createElementVNode("select", {
2864
2864
  class: "select_per_page",
@@ -3343,14 +3343,14 @@ var script$5 = {
3343
3343
  }
3344
3344
  };
3345
3345
 
3346
- const _hoisted_1$5 = { class: "auto-table mt-2" };
3347
- const _hoisted_2$5 = {
3346
+ const _hoisted_1$4 = { class: "auto-table mt-2" };
3347
+ const _hoisted_2$4 = {
3348
3348
  key: 0,
3349
3349
  class: "col-md-4 mb-2"
3350
3350
  };
3351
- const _hoisted_3$5 = ["disabled"];
3352
- const _hoisted_4$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
3353
- const _hoisted_5$4 = /*#__PURE__*/vue.createElementVNode("span", {
3351
+ const _hoisted_3$4 = ["disabled"];
3352
+ const _hoisted_4$4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
3353
+ const _hoisted_5$3 = /*#__PURE__*/vue.createElementVNode("span", {
3354
3354
  class: "spinner-border spinner-border-sm",
3355
3355
  role: "status",
3356
3356
  "aria-hidden": "true"
@@ -3503,9 +3503,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3503
3503
  const _component_pagination = vue.resolveComponent("pagination");
3504
3504
  const _component_sh_canvas = vue.resolveComponent("sh-canvas");
3505
3505
 
3506
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
3506
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
3507
3507
  ($props.hasDownload)
3508
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
3508
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
3509
3509
  vue.createElementVNode("button", {
3510
3510
  disabled: $data.downloading,
3511
3511
  class: "btn btn-warning btn-sm",
@@ -3513,14 +3513,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3513
3513
  }, [
3514
3514
  (!$data.downloading)
3515
3515
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
3516
- _hoisted_4$5,
3516
+ _hoisted_4$4,
3517
3517
  vue.createTextVNode(" Export ")
3518
3518
  ], 64 /* STABLE_FRAGMENT */))
3519
3519
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
3520
- _hoisted_5$4,
3520
+ _hoisted_5$3,
3521
3521
  _hoisted_6$2
3522
3522
  ], 64 /* STABLE_FRAGMENT */))
3523
- ], 8 /* PROPS */, _hoisted_3$5)
3523
+ ], 8 /* PROPS */, _hoisted_3$4)
3524
3524
  ]))
3525
3525
  : vue.createCommentVNode("v-if", true),
3526
3526
  (!$props.hideSearch)
@@ -3921,7 +3921,7 @@ script$5.__file = "src/lib/components/ShTable.vue";
3921
3921
 
3922
3922
  var script$4 = {
3923
3923
  name: 'ShTabs',
3924
- props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
3924
+ props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
3925
3925
  data () {
3926
3926
  return {
3927
3927
  currentTab: '',
@@ -3946,13 +3946,13 @@ var script$4 = {
3946
3946
  }
3947
3947
  },
3948
3948
  mounted () {
3949
- this.generatedId = 'tab' + Math.random().toString(36).slice(2);
3949
+ this.generatedId = 'tab' + Math.random().toString(36).slice(2);
3950
3950
  this.resetTabCounts();
3951
3951
  this.setTab(this.tabs[0]);
3952
3952
  },
3953
3953
  methods: {
3954
- setTab: function(tab){
3955
- if(tab){
3954
+ setTab: function (tab) {
3955
+ if (tab) {
3956
3956
  this.currentTab = tab.replace(/_/g, ' ');
3957
3957
  }
3958
3958
  },
@@ -4000,74 +4000,43 @@ var script$4 = {
4000
4000
  }
4001
4001
  };
4002
4002
 
4003
- const _hoisted_1$4 = {
4004
- key: 0,
4005
- class: "navbar navbar-expand-lg sh-horizontal-tabs"
4006
- };
4007
- const _hoisted_2$4 = ["data-bs-target"];
4008
- const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
4009
- const _hoisted_4$4 = ["id"];
4010
- const _hoisted_5$3 = { class: "tab-content" };
4011
-
4012
4003
  function render(_ctx, _cache, $props, $setup, $data, $options) {
4013
4004
  const _component_router_link = vue.resolveComponent("router-link");
4014
4005
  const _component_router_view = vue.resolveComponent("router-view");
4015
4006
 
4016
4007
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
4017
- ($data.generatedId)
4018
- ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_1$4, [
4019
- ($data.isResponsive)
4020
- ? (vue.openBlock(), vue.createElementBlock("a", {
4021
- key: 0,
4022
- href: "#",
4023
- class: "form-control navbar-toggler text-capitalize",
4024
- "data-bs-toggle": "collapse",
4025
- "data-bs-target": '#' + $data.generatedId,
4026
- "aria-controls": "navbarNav",
4027
- "aria-expanded": "false",
4028
- "aria-label": "Toggle navigation"
4029
- }, [
4030
- vue.createTextVNode(vue.toDisplayString($data.currentTab) + " ", 1 /* TEXT */),
4031
- _hoisted_3$4
4032
- ], 8 /* PROPS */, _hoisted_2$4))
4033
- : vue.createCommentVNode("v-if", true),
4034
- vue.createElementVNode("div", {
4035
- class: vue.normalizeClass($data.isResponsive ? 'collapse navbar-collapse':''),
4036
- id: $data.generatedId
4037
- }, [
4038
- vue.createElementVNode("ul", {
4039
- class: vue.normalizeClass($data.isResponsive ? 'navbar-nav nav':'nav')
4040
- }, [
4041
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.tabs, (tab) => {
4042
- return (vue.openBlock(), vue.createElementBlock("li", {
4043
- class: "nav-item",
4044
- key: tab
4045
- }, [
4046
- vue.createVNode(_component_router_link, {
4047
- onClick: $event => ($options.setTab(tab)),
4048
- "active-class": 'active',
4049
- class: vue.normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
4050
- to: $props.baseUrl+'/tab/'+tab,
4051
- role: "tab"
4052
- }, {
4053
- default: vue.withCtx(() => [
4054
- vue.createTextVNode(vue.toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
4055
- ]),
4056
- _: 2 /* DYNAMIC */
4057
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
4058
- ]))
4059
- }), 128 /* KEYED_FRAGMENT */))
4060
- ], 2 /* CLASS */)
4061
- ], 10 /* CLASS, PROPS */, _hoisted_4$4)
4008
+ vue.createElementVNode("ul", {
4009
+ class: vue.normalizeClass(["nav nav-tabs sh-tabs", $props.classes])
4010
+ }, [
4011
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.tabs, (tab) => {
4012
+ return (vue.openBlock(), vue.createElementBlock("li", {
4013
+ class: "nav-item",
4014
+ key: tab
4015
+ }, [
4016
+ vue.createVNode(_component_router_link, {
4017
+ onClick: $event => ($options.setTab(tab)),
4018
+ "active-class": 'active',
4019
+ class: vue.normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
4020
+ to: $props.baseUrl+'/tab/'+tab,
4021
+ role: "tab"
4022
+ }, {
4023
+ default: vue.withCtx(() => [
4024
+ vue.createTextVNode(vue.toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
4025
+ ]),
4026
+ _: 2 /* DYNAMIC */
4027
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
4062
4028
  ]))
4063
- : vue.createCommentVNode("v-if", true),
4064
- vue.createElementVNode("div", _hoisted_5$3, [
4029
+ }), 128 /* KEYED_FRAGMENT */))
4030
+ ], 2 /* CLASS */),
4031
+ vue.createElementVNode("div", {
4032
+ class: vue.normalizeClass(["tab-content", $props.classTwo])
4033
+ }, [
4065
4034
  vue.createVNode(_component_router_view, {
4066
4035
  currentTab: $data.currentTab,
4067
4036
  sharedData: $props.sharedData,
4068
4037
  tabCounts: $props.tabCounts
4069
4038
  }, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
4070
- ])
4039
+ ], 2 /* CLASS */)
4071
4040
  ], 64 /* STABLE_FRAGMENT */))
4072
4041
  }
4073
4042
 
package/dist/library.mjs CHANGED
@@ -1624,19 +1624,19 @@ var script$e = {
1624
1624
  }
1625
1625
  };
1626
1626
 
1627
- const _hoisted_1$e = { class: "sh-phone mb-3" };
1628
- const _hoisted_2$c = {
1627
+ const _hoisted_1$d = { class: "sh-phone mb-3" };
1628
+ const _hoisted_2$b = {
1629
1629
  key: 0,
1630
1630
  style: {"display":"contents"}
1631
1631
  };
1632
- const _hoisted_3$b = ["src"];
1633
- const _hoisted_4$b = ["value"];
1632
+ const _hoisted_3$a = ["src"];
1633
+ const _hoisted_4$a = ["value"];
1634
1634
 
1635
1635
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1636
- return (openBlock(), createElementBlock("div", _hoisted_1$e, [
1636
+ return (openBlock(), createElementBlock("div", _hoisted_1$d, [
1637
1637
  ($data.selectedCountry)
1638
- ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
1639
- createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$b),
1638
+ ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
1639
+ createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$a),
1640
1640
  createTextVNode(" " + toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
1641
1641
  ]))
1642
1642
  : createCommentVNode("v-if", true),
@@ -1649,7 +1649,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1649
1649
  return (openBlock(), createElementBlock("option", {
1650
1650
  value: country,
1651
1651
  key: country.dialCode
1652
- }, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$b))
1652
+ }, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$a))
1653
1653
  }), 128 /* KEYED_FRAGMENT */))
1654
1654
  ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
1655
1655
  [vModelSelect, $data.selectedCountry]
@@ -1709,7 +1709,7 @@ var script$d = {
1709
1709
  }
1710
1710
  };
1711
1711
 
1712
- const _hoisted_1$d = /*#__PURE__*/createElementVNode("textarea", {
1712
+ const _hoisted_1$c = /*#__PURE__*/createElementVNode("textarea", {
1713
1713
  id: "tiny",
1714
1714
  style: {"display":"none"},
1715
1715
  "data-cy": "tinymce_editor"
@@ -1719,7 +1719,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1719
1719
  const _component_editor = resolveComponent("editor");
1720
1720
 
1721
1721
  return (openBlock(), createElementBlock(Fragment, null, [
1722
- _hoisted_1$d,
1722
+ _hoisted_1$c,
1723
1723
  createElementVNode("div", {
1724
1724
  onFocusin: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
1725
1725
  class: "sh-editor w-100"
@@ -1747,14 +1747,14 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1747
1747
  script$d.render = render$6;
1748
1748
  script$d.__file = "src/lib/components/FormComponent/ShEditor.vue";
1749
1749
 
1750
- const _hoisted_1$c = {
1750
+ const _hoisted_1$b = {
1751
1751
  key: 0,
1752
1752
  class: "dropdown sh-suggest"
1753
1753
  };
1754
- const _hoisted_2$b = ["id"];
1755
- const _hoisted_3$a = { class: "badge bg-secondary m-1 sh-selected-item" };
1756
- const _hoisted_4$a = ["onClick"];
1757
- const _hoisted_5$7 = ["id"];
1754
+ const _hoisted_2$a = ["id"];
1755
+ const _hoisted_3$9 = { class: "badge bg-secondary m-1 sh-selected-item" };
1756
+ const _hoisted_4$9 = ["onClick"];
1757
+ const _hoisted_5$6 = ["id"];
1758
1758
  const _hoisted_6$5 = ["id", "aria-labelledby"];
1759
1759
  const _hoisted_7$4 = { key: 0 };
1760
1760
  const _hoisted_8$3 = ["onClick"];
@@ -1849,7 +1849,7 @@ function filterData(e){
1849
1849
 
1850
1850
  return (_ctx, _cache) => {
1851
1851
  return (unref(id))
1852
- ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
1852
+ ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
1853
1853
  createElementVNode("div", {
1854
1854
  id: unref(id),
1855
1855
  "data-bs-toggle": "dropdown",
@@ -1858,14 +1858,14 @@ return (_ctx, _cache) => {
1858
1858
  }, [
1859
1859
  createElementVNode("div", null, [
1860
1860
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectedSuggestions), (sgt) => {
1861
- return (openBlock(), createElementBlock("h5", _hoisted_3$a, [
1861
+ return (openBlock(), createElementBlock("h5", _hoisted_3$9, [
1862
1862
  createTextVNode(toDisplayString(sgt.name) + " ", 1 /* TEXT */),
1863
1863
  createElementVNode("button", {
1864
1864
  onClick: $event => (removeSuggestion(sgt.id)),
1865
1865
  type: "button",
1866
1866
  class: "btn-close border-start border-1 ms-1",
1867
1867
  "aria-label": "Close"
1868
- }, null, 8 /* PROPS */, _hoisted_4$a)
1868
+ }, null, 8 /* PROPS */, _hoisted_4$9)
1869
1869
  ]))
1870
1870
  }), 256 /* UNKEYED_FRAGMENT */))
1871
1871
  ]),
@@ -1875,8 +1875,8 @@ return (_ctx, _cache) => {
1875
1875
  onClick: filterData,
1876
1876
  onInput: filterData,
1877
1877
  class: "flex-fill h-100 sh-suggestion-input"
1878
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$7)
1879
- ], 8 /* PROPS */, _hoisted_2$b),
1878
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$6)
1879
+ ], 8 /* PROPS */, _hoisted_2$a),
1880
1880
  createElementVNode("ul", {
1881
1881
  class: "dropdown-menu w-100",
1882
1882
  id: 'dropwdown_section' + unref(id),
@@ -2229,18 +2229,18 @@ var script$b = {
2229
2229
  }
2230
2230
  };
2231
2231
 
2232
- const _hoisted_1$b = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2233
- const _hoisted_2$a = {
2232
+ const _hoisted_1$a = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2233
+ const _hoisted_2$9 = {
2234
2234
  ref: "ShAutoForm",
2235
2235
  class: "sh-form"
2236
2236
  };
2237
- const _hoisted_3$9 = {
2237
+ const _hoisted_3$8 = {
2238
2238
  key: 0,
2239
2239
  class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
2240
2240
  role: "alert"
2241
2241
  };
2242
- const _hoisted_4$9 = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2243
- const _hoisted_5$6 = { key: 0 };
2242
+ const _hoisted_4$8 = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2243
+ const _hoisted_5$5 = { key: 0 };
2244
2244
  const _hoisted_6$4 = { key: 1 };
2245
2245
  const _hoisted_7$3 = { class: "row" };
2246
2246
  const _hoisted_8$2 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
@@ -2291,15 +2291,15 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2291
2291
  const _component_ShEditor = resolveComponent("ShEditor");
2292
2292
 
2293
2293
  return (openBlock(), createElementBlock(Fragment, null, [
2294
- _hoisted_1$b,
2295
- createElementVNode("form", _hoisted_2$a, [
2294
+ _hoisted_1$a,
2295
+ createElementVNode("form", _hoisted_2$9, [
2296
2296
  createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2297
2297
  createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2298
2298
  (_ctx.form_status == 3)
2299
- ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
2300
- _hoisted_4$9,
2299
+ ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
2300
+ _hoisted_4$8,
2301
2301
  (_ctx.errorText)
2302
- ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(_ctx.errorText), 1 /* TEXT */))
2302
+ ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(_ctx.errorText), 1 /* TEXT */))
2303
2303
  : (openBlock(), createElementBlock("span", _hoisted_6$4, "Unexpected Error Occurred")),
2304
2304
  createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2305
2305
  ]))
@@ -2511,8 +2511,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2511
2511
  script$b.render = render$5;
2512
2512
  script$b.__file = "src/lib/components/ShForm.vue";
2513
2513
 
2514
- const _hoisted_1$a = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
2515
- const _hoisted_2$9 = { class: "dropdown" };
2514
+ const _hoisted_1$9 = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
2515
+ const _hoisted_2$8 = { class: "dropdown" };
2516
2516
 
2517
2517
  var script$a = {
2518
2518
  __name: 'ShDropDownForm',
@@ -2544,8 +2544,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
2544
2544
 
2545
2545
  return (_ctx, _cache) => {
2546
2546
  return (openBlock(), createElementBlock(Fragment, null, [
2547
- _hoisted_1$a,
2548
- createElementVNode("div", _hoisted_2$9, [
2547
+ _hoisted_1$9,
2548
+ createElementVNode("div", _hoisted_2$8, [
2549
2549
  createElementVNode("a", {
2550
2550
  class: normalizeClass(unref(btnClass)),
2551
2551
  href: "#",
@@ -2579,11 +2579,11 @@ var script$9 = {
2579
2579
  }
2580
2580
  };
2581
2581
 
2582
- const _hoisted_1$9 = ["id"];
2583
- const _hoisted_2$8 = { class: "modal-content" };
2584
- const _hoisted_3$8 = { class: "modal-header" };
2585
- const _hoisted_4$8 = { class: "modal-title" };
2586
- const _hoisted_5$5 = /*#__PURE__*/createElementVNode("button", {
2582
+ const _hoisted_1$8 = ["id"];
2583
+ const _hoisted_2$7 = { class: "modal-content" };
2584
+ const _hoisted_3$7 = { class: "modal-header" };
2585
+ const _hoisted_4$7 = { class: "modal-title" };
2586
+ const _hoisted_5$4 = /*#__PURE__*/createElementVNode("button", {
2587
2587
  class: "btn btn-danger btn-sm",
2588
2588
  "data-bs-dismiss": "modal",
2589
2589
  "data-dismiss": "modal"
@@ -2600,10 +2600,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2600
2600
  createElementVNode("div", {
2601
2601
  class: normalizeClass(["modal-dialog", `modal-${$props.modalSize}`])
2602
2602
  }, [
2603
- createElementVNode("div", _hoisted_2$8, [
2604
- createElementVNode("div", _hoisted_3$8, [
2605
- createElementVNode("h3", _hoisted_4$8, toDisplayString($props.modalTitle), 1 /* TEXT */),
2606
- _hoisted_5$5
2603
+ createElementVNode("div", _hoisted_2$7, [
2604
+ createElementVNode("div", _hoisted_3$7, [
2605
+ createElementVNode("h3", _hoisted_4$7, toDisplayString($props.modalTitle), 1 /* TEXT */),
2606
+ _hoisted_5$4
2607
2607
  ]),
2608
2608
  createElementVNode("div", _hoisted_6$3, [
2609
2609
  createElementVNode("div", _hoisted_7$2, [
@@ -2612,13 +2612,13 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2612
2612
  ])
2613
2613
  ])
2614
2614
  ], 2 /* CLASS */)
2615
- ], 8 /* PROPS */, _hoisted_1$9))
2615
+ ], 8 /* PROPS */, _hoisted_1$8))
2616
2616
  }
2617
2617
 
2618
2618
  script$9.render = render$4;
2619
2619
  script$9.__file = "src/lib/components/ShModal.vue";
2620
2620
 
2621
- const _hoisted_1$8 = ["href"];
2621
+ const _hoisted_1$7 = ["href"];
2622
2622
 
2623
2623
  var script$8 = {
2624
2624
  __name: 'ShModalForm',
@@ -2656,7 +2656,7 @@ return (_ctx, _cache) => {
2656
2656
  "data-bs-toggle": "modal"
2657
2657
  }, [
2658
2658
  renderSlot(_ctx.$slots, "default")
2659
- ], 10 /* CLASS, PROPS */, _hoisted_1$8),
2659
+ ], 10 /* CLASS, PROPS */, _hoisted_1$7),
2660
2660
  createVNode(script$9, {
2661
2661
  "modal-id": modalId,
2662
2662
  "modal-title": __props.modalTitle
@@ -2691,13 +2691,13 @@ var script$7 = {
2691
2691
  }
2692
2692
  };
2693
2693
 
2694
- const _hoisted_1$7 = ["id"];
2695
- const _hoisted_2$7 = { class: "offcanvas-header" };
2696
- const _hoisted_3$7 = {
2694
+ const _hoisted_1$6 = ["id"];
2695
+ const _hoisted_2$6 = { class: "offcanvas-header" };
2696
+ const _hoisted_3$6 = {
2697
2697
  class: "offcanvas-title",
2698
2698
  id: "offcanvasScrollingLabel"
2699
2699
  };
2700
- const _hoisted_4$7 = { class: "offcanvas-body" };
2700
+ const _hoisted_4$6 = { class: "offcanvas-body" };
2701
2701
 
2702
2702
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2703
2703
  return (openBlock(), createElementBlock("div", {
@@ -2707,8 +2707,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2707
2707
  id: $props.canvasId,
2708
2708
  "aria-labelledby": "offcanvasScrollingLabel"
2709
2709
  }, [
2710
- createElementVNode("div", _hoisted_2$7, [
2711
- createElementVNode("h5", _hoisted_3$7, toDisplayString($props.canvasTitle), 1 /* TEXT */),
2710
+ createElementVNode("div", _hoisted_2$6, [
2711
+ createElementVNode("h5", _hoisted_3$6, toDisplayString($props.canvasTitle), 1 /* TEXT */),
2712
2712
  createElementVNode("button", {
2713
2713
  type: "button",
2714
2714
  ref: "closecanvas",
@@ -2718,10 +2718,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2718
2718
  "aria-label": "Close"
2719
2719
  }, null, 512 /* NEED_PATCH */)
2720
2720
  ]),
2721
- createElementVNode("div", _hoisted_4$7, [
2721
+ createElementVNode("div", _hoisted_4$6, [
2722
2722
  renderSlot(_ctx.$slots, "default")
2723
2723
  ])
2724
- ], 10 /* CLASS, PROPS */, _hoisted_1$7))
2724
+ ], 10 /* CLASS, PROPS */, _hoisted_1$6))
2725
2725
  }
2726
2726
 
2727
2727
  script$7.render = render$3;
@@ -2798,12 +2798,12 @@ var script$6 = {
2798
2798
  }
2799
2799
  };
2800
2800
 
2801
- const _hoisted_1$6 = { key: 0 };
2802
- const _hoisted_2$6 = { class: "record_count_body mb-3" };
2803
- const _hoisted_3$6 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2804
- const _hoisted_4$6 = /*#__PURE__*/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);
2801
+ const _hoisted_1$5 = { key: 0 };
2802
+ const _hoisted_2$5 = { class: "record_count_body mb-3" };
2803
+ const _hoisted_3$5 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2804
+ const _hoisted_4$5 = /*#__PURE__*/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);
2805
2805
  const _hoisted_9$2 = [
2806
- _hoisted_4$6
2806
+ _hoisted_4$5
2807
2807
  ];
2808
2808
  const _hoisted_10$1 = { class: "record_counts" };
2809
2809
  const _hoisted_11$1 = {
@@ -2844,9 +2844,9 @@ const _hoisted_22$1 = {
2844
2844
 
2845
2845
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2846
2846
  return (!$props.loadMore)
2847
- ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
2848
- createElementVNode("div", _hoisted_2$6, [
2849
- _hoisted_3$6,
2847
+ ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
2848
+ createElementVNode("div", _hoisted_2$5, [
2849
+ _hoisted_3$5,
2850
2850
  createTextVNode("  "),
2851
2851
  withDirectives(createElementVNode("select", {
2852
2852
  class: "select_per_page",
@@ -3331,14 +3331,14 @@ var script$5 = {
3331
3331
  }
3332
3332
  };
3333
3333
 
3334
- const _hoisted_1$5 = { class: "auto-table mt-2" };
3335
- const _hoisted_2$5 = {
3334
+ const _hoisted_1$4 = { class: "auto-table mt-2" };
3335
+ const _hoisted_2$4 = {
3336
3336
  key: 0,
3337
3337
  class: "col-md-4 mb-2"
3338
3338
  };
3339
- const _hoisted_3$5 = ["disabled"];
3340
- const _hoisted_4$5 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
3341
- const _hoisted_5$4 = /*#__PURE__*/createElementVNode("span", {
3339
+ const _hoisted_3$4 = ["disabled"];
3340
+ const _hoisted_4$4 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
3341
+ const _hoisted_5$3 = /*#__PURE__*/createElementVNode("span", {
3342
3342
  class: "spinner-border spinner-border-sm",
3343
3343
  role: "status",
3344
3344
  "aria-hidden": "true"
@@ -3491,9 +3491,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3491
3491
  const _component_pagination = resolveComponent("pagination");
3492
3492
  const _component_sh_canvas = resolveComponent("sh-canvas");
3493
3493
 
3494
- return (openBlock(), createElementBlock("div", _hoisted_1$5, [
3494
+ return (openBlock(), createElementBlock("div", _hoisted_1$4, [
3495
3495
  ($props.hasDownload)
3496
- ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
3496
+ ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
3497
3497
  createElementVNode("button", {
3498
3498
  disabled: $data.downloading,
3499
3499
  class: "btn btn-warning btn-sm",
@@ -3501,14 +3501,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3501
3501
  }, [
3502
3502
  (!$data.downloading)
3503
3503
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3504
- _hoisted_4$5,
3504
+ _hoisted_4$4,
3505
3505
  createTextVNode(" Export ")
3506
3506
  ], 64 /* STABLE_FRAGMENT */))
3507
3507
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3508
- _hoisted_5$4,
3508
+ _hoisted_5$3,
3509
3509
  _hoisted_6$2
3510
3510
  ], 64 /* STABLE_FRAGMENT */))
3511
- ], 8 /* PROPS */, _hoisted_3$5)
3511
+ ], 8 /* PROPS */, _hoisted_3$4)
3512
3512
  ]))
3513
3513
  : createCommentVNode("v-if", true),
3514
3514
  (!$props.hideSearch)
@@ -3909,7 +3909,7 @@ script$5.__file = "src/lib/components/ShTable.vue";
3909
3909
 
3910
3910
  var script$4 = {
3911
3911
  name: 'ShTabs',
3912
- props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
3912
+ props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
3913
3913
  data () {
3914
3914
  return {
3915
3915
  currentTab: '',
@@ -3934,13 +3934,13 @@ var script$4 = {
3934
3934
  }
3935
3935
  },
3936
3936
  mounted () {
3937
- this.generatedId = 'tab' + Math.random().toString(36).slice(2);
3937
+ this.generatedId = 'tab' + Math.random().toString(36).slice(2);
3938
3938
  this.resetTabCounts();
3939
3939
  this.setTab(this.tabs[0]);
3940
3940
  },
3941
3941
  methods: {
3942
- setTab: function(tab){
3943
- if(tab){
3942
+ setTab: function (tab) {
3943
+ if (tab) {
3944
3944
  this.currentTab = tab.replace(/_/g, ' ');
3945
3945
  }
3946
3946
  },
@@ -3988,74 +3988,43 @@ var script$4 = {
3988
3988
  }
3989
3989
  };
3990
3990
 
3991
- const _hoisted_1$4 = {
3992
- key: 0,
3993
- class: "navbar navbar-expand-lg sh-horizontal-tabs"
3994
- };
3995
- const _hoisted_2$4 = ["data-bs-target"];
3996
- const _hoisted_3$4 = /*#__PURE__*/createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
3997
- const _hoisted_4$4 = ["id"];
3998
- const _hoisted_5$3 = { class: "tab-content" };
3999
-
4000
3991
  function render(_ctx, _cache, $props, $setup, $data, $options) {
4001
3992
  const _component_router_link = resolveComponent("router-link");
4002
3993
  const _component_router_view = resolveComponent("router-view");
4003
3994
 
4004
3995
  return (openBlock(), createElementBlock(Fragment, null, [
4005
- ($data.generatedId)
4006
- ? (openBlock(), createElementBlock("nav", _hoisted_1$4, [
4007
- ($data.isResponsive)
4008
- ? (openBlock(), createElementBlock("a", {
4009
- key: 0,
4010
- href: "#",
4011
- class: "form-control navbar-toggler text-capitalize",
4012
- "data-bs-toggle": "collapse",
4013
- "data-bs-target": '#' + $data.generatedId,
4014
- "aria-controls": "navbarNav",
4015
- "aria-expanded": "false",
4016
- "aria-label": "Toggle navigation"
4017
- }, [
4018
- createTextVNode(toDisplayString($data.currentTab) + " ", 1 /* TEXT */),
4019
- _hoisted_3$4
4020
- ], 8 /* PROPS */, _hoisted_2$4))
4021
- : createCommentVNode("v-if", true),
4022
- createElementVNode("div", {
4023
- class: normalizeClass($data.isResponsive ? 'collapse navbar-collapse':''),
4024
- id: $data.generatedId
4025
- }, [
4026
- createElementVNode("ul", {
4027
- class: normalizeClass($data.isResponsive ? 'navbar-nav nav':'nav')
4028
- }, [
4029
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.tabs, (tab) => {
4030
- return (openBlock(), createElementBlock("li", {
4031
- class: "nav-item",
4032
- key: tab
4033
- }, [
4034
- createVNode(_component_router_link, {
4035
- onClick: $event => ($options.setTab(tab)),
4036
- "active-class": 'active',
4037
- class: normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
4038
- to: $props.baseUrl+'/tab/'+tab,
4039
- role: "tab"
4040
- }, {
4041
- default: withCtx(() => [
4042
- createTextVNode(toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
4043
- ]),
4044
- _: 2 /* DYNAMIC */
4045
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
4046
- ]))
4047
- }), 128 /* KEYED_FRAGMENT */))
4048
- ], 2 /* CLASS */)
4049
- ], 10 /* CLASS, PROPS */, _hoisted_4$4)
3996
+ createElementVNode("ul", {
3997
+ class: normalizeClass(["nav nav-tabs sh-tabs", $props.classes])
3998
+ }, [
3999
+ (openBlock(true), createElementBlock(Fragment, null, renderList($props.tabs, (tab) => {
4000
+ return (openBlock(), createElementBlock("li", {
4001
+ class: "nav-item",
4002
+ key: tab
4003
+ }, [
4004
+ createVNode(_component_router_link, {
4005
+ onClick: $event => ($options.setTab(tab)),
4006
+ "active-class": 'active',
4007
+ class: normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
4008
+ to: $props.baseUrl+'/tab/'+tab,
4009
+ role: "tab"
4010
+ }, {
4011
+ default: withCtx(() => [
4012
+ createTextVNode(toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
4013
+ ]),
4014
+ _: 2 /* DYNAMIC */
4015
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
4050
4016
  ]))
4051
- : createCommentVNode("v-if", true),
4052
- createElementVNode("div", _hoisted_5$3, [
4017
+ }), 128 /* KEYED_FRAGMENT */))
4018
+ ], 2 /* CLASS */),
4019
+ createElementVNode("div", {
4020
+ class: normalizeClass(["tab-content", $props.classTwo])
4021
+ }, [
4053
4022
  createVNode(_component_router_view, {
4054
4023
  currentTab: $data.currentTab,
4055
4024
  sharedData: $props.sharedData,
4056
4025
  tabCounts: $props.tabCounts
4057
4026
  }, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
4058
- ])
4027
+ ], 2 /* CLASS */)
4059
4028
  ], 64 /* STABLE_FRAGMENT */))
4060
4029
  }
4061
4030
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",