@iankibetsh/shframework 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,4 @@
1
1
 
2
- .sh-phone{
3
- display: flex;
4
- width: 100%;
5
- align-items: center;
6
- padding: 0 0.25rem;
7
- }
8
- .phone-country{
9
- width: 2rem;
10
- border: none;
11
- align-self: center;
12
- outline: none !important;
13
- padding: 0.4rem;
14
- border-right: 1px solid #0003;
15
- }
16
- .phone-number{
17
- width: calc(100% - 2.2rem);
18
- border: none;
19
- align-self: center;
20
- outline: none;
21
- margin-bottom: 0;
22
- padding: 0.4rem;
23
- }
24
- .sh-phone img{
25
- padding: 0.125rem;
26
- width: 2rem;
27
- height: 2rem;
28
- }
29
- .phone-number::placeholder{
30
- font-weight: 300;
31
- opacity: 0.5;
32
- }
33
-
34
2
  .colored-toast.swal2-icon-success {
35
3
  background-color: #a5dc86 !important;
36
4
  }
@@ -63,6 +31,38 @@
63
31
  color: white;
64
32
  }
65
33
 
34
+ .sh-phone{
35
+ display: flex;
36
+ width: 100%;
37
+ align-items: center;
38
+ padding: 0 0.25rem;
39
+ }
40
+ .phone-country{
41
+ width: 2rem;
42
+ border: none;
43
+ align-self: center;
44
+ outline: none !important;
45
+ padding: 0.4rem;
46
+ border-right: 1px solid #0003;
47
+ }
48
+ .phone-number{
49
+ width: calc(100% - 2.2rem);
50
+ border: none;
51
+ align-self: center;
52
+ outline: none;
53
+ margin-bottom: 0;
54
+ padding: 0.4rem;
55
+ }
56
+ .sh-phone img{
57
+ padding: 0.125rem;
58
+ width: 2rem;
59
+ height: 2rem;
60
+ }
61
+ .phone-number::placeholder{
62
+ font-weight: 300;
63
+ opacity: 0.5;
64
+ }
65
+
66
66
  :root {
67
67
  --ck-z-default: 10555 !important;
68
68
  --ck-z-modal: calc(var(--ck-z-default) + 999) !important;
package/dist/library.js CHANGED
@@ -1636,8 +1636,8 @@ 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
  };
@@ -1645,9 +1645,9 @@ const _hoisted_3$a = ["src"];
1645
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, [
1650
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
1651
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
  ]))
@@ -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,11 +1759,11 @@ 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"];
1766
+ const _hoisted_2$a = ["id"];
1767
1767
  const _hoisted_3$9 = { class: "badge bg-secondary m-1 sh-selected-item" };
1768
1768
  const _hoisted_4$9 = ["onClick"];
1769
1769
  const _hoisted_5$6 = ["id"];
@@ -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",
@@ -1888,7 +1888,7 @@ return (_ctx, _cache) => {
1888
1888
  onInput: filterData,
1889
1889
  class: "flex-fill h-100 sh-suggestion-input"
1890
1890
  }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$6)
1891
- ], 8 /* PROPS */, _hoisted_2$b),
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,8 +2241,8 @@ 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
  };
@@ -2303,8 +2303,8 @@ 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)
@@ -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,8 +2591,8 @@ var script$9 = {
2591
2591
  }
2592
2592
  };
2593
2593
 
2594
- const _hoisted_1$9 = ["id"];
2595
- const _hoisted_2$8 = { class: "modal-content" };
2594
+ const _hoisted_1$8 = ["id"];
2595
+ const _hoisted_2$7 = { class: "modal-content" };
2596
2596
  const _hoisted_3$7 = { class: "modal-header" };
2597
2597
  const _hoisted_4$7 = { class: "modal-title" };
2598
2598
  const _hoisted_5$4 = /*#__PURE__*/vue.createElementVNode("button", {
@@ -2612,7 +2612,7 @@ 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, [
2615
+ vue.createElementVNode("div", _hoisted_2$7, [
2616
2616
  vue.createElementVNode("div", _hoisted_3$7, [
2617
2617
  vue.createElementVNode("h3", _hoisted_4$7, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
2618
2618
  _hoisted_5$4
@@ -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,8 +2703,8 @@ var script$7 = {
2703
2703
  }
2704
2704
  };
2705
2705
 
2706
- const _hoisted_1$7 = ["id"];
2707
- const _hoisted_2$7 = { class: "offcanvas-header" };
2706
+ const _hoisted_1$6 = ["id"];
2707
+ const _hoisted_2$6 = { class: "offcanvas-header" };
2708
2708
  const _hoisted_3$6 = {
2709
2709
  class: "offcanvas-title",
2710
2710
  id: "offcanvasScrollingLabel"
@@ -2719,7 +2719,7 @@ 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, [
2722
+ vue.createElementVNode("div", _hoisted_2$6, [
2723
2723
  vue.createElementVNode("h5", _hoisted_3$6, vue.toDisplayString($props.canvasTitle), 1 /* TEXT */),
2724
2724
  vue.createElementVNode("button", {
2725
2725
  type: "button",
@@ -2733,7 +2733,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2733
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,8 +2810,8 @@ 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" };
2813
+ const _hoisted_1$5 = { key: 0 };
2814
+ const _hoisted_2$5 = { class: "record_count_body mb-3" };
2815
2815
  const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2816
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 = [
@@ -2856,8 +2856,8 @@ 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, [
2859
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
2860
+ vue.createElementVNode("div", _hoisted_2$5, [
2861
2861
  _hoisted_3$5,
2862
2862
  vue.createTextVNode("  "),
2863
2863
  vue.withDirectives(vue.createElementVNode("select", {
@@ -3343,8 +3343,8 @@ 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
  };
@@ -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",
@@ -3901,10 +3901,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3901
3901
  }, {
3902
3902
  default: vue.withCtx(() => [
3903
3903
  ($data.selectedRecord)
3904
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(action.canvasComponent), {
3905
- key: 0,
3906
- record: $data.selectedRecord
3907
- }, null, 8 /* PROPS */, ["record"]))
3904
+ ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(action.canvasComponent), vue.mergeProps({ key: 0 }, action, { record: $data.selectedRecord }), null, 16 /* FULL_PROPS */, ["record"]))
3908
3905
  : vue.createCommentVNode("v-if", true)
3909
3906
  ]),
3910
3907
  _: 2 /* DYNAMIC */
@@ -3921,7 +3918,7 @@ script$5.__file = "src/lib/components/ShTable.vue";
3921
3918
 
3922
3919
  var script$4 = {
3923
3920
  name: 'ShTabs',
3924
- props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
3921
+ props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
3925
3922
  data () {
3926
3923
  return {
3927
3924
  currentTab: '',
@@ -4000,15 +3997,14 @@ var script$4 = {
4000
3997
  }
4001
3998
  };
4002
3999
 
4003
- const _hoisted_1$4 = { class: "nav nav-tabs sh-tabs" };
4004
- const _hoisted_2$4 = { class: "tab-content" };
4005
-
4006
4000
  function render(_ctx, _cache, $props, $setup, $data, $options) {
4007
4001
  const _component_router_link = vue.resolveComponent("router-link");
4008
4002
  const _component_router_view = vue.resolveComponent("router-view");
4009
4003
 
4010
4004
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
4011
- vue.createElementVNode("ul", _hoisted_1$4, [
4005
+ vue.createElementVNode("ul", {
4006
+ class: vue.normalizeClass(["nav nav-tabs sh-tabs", $props.classes])
4007
+ }, [
4012
4008
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.tabs, (tab) => {
4013
4009
  return (vue.openBlock(), vue.createElementBlock("li", {
4014
4010
  class: "nav-item",
@@ -4028,14 +4024,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4028
4024
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
4029
4025
  ]))
4030
4026
  }), 128 /* KEYED_FRAGMENT */))
4031
- ]),
4032
- vue.createElementVNode("div", _hoisted_2$4, [
4027
+ ], 2 /* CLASS */),
4028
+ vue.createElementVNode("div", {
4029
+ class: vue.normalizeClass(["tab-content", $props.classTwo])
4030
+ }, [
4033
4031
  vue.createVNode(_component_router_view, {
4034
4032
  currentTab: $data.currentTab,
4035
4033
  sharedData: $props.sharedData,
4036
4034
  tabCounts: $props.tabCounts
4037
4035
  }, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
4038
- ])
4036
+ ], 2 /* CLASS */)
4039
4037
  ], 64 /* STABLE_FRAGMENT */))
4040
4038
  }
4041
4039
 
package/dist/library.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import Axios from 'axios';
2
2
  import moment from 'moment';
3
- import { inject, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, resolveComponent, withModifiers, createVNode, ref, onMounted, unref, normalizeClass, createBlock, resolveDynamicComponent, renderSlot, normalizeProps, guardReactiveProps, withCtx, createStaticVNode, shallowRef, mergeProps, computed, isRef, vModelCheckbox, watch, pushScopeId, popScopeId } from 'vue';
3
+ import { inject, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, resolveComponent, withModifiers, createVNode, ref, onMounted, unref, normalizeClass, createBlock, resolveDynamicComponent, renderSlot, normalizeProps, guardReactiveProps, withCtx, createStaticVNode, mergeProps, shallowRef, computed, isRef, vModelCheckbox, watch, pushScopeId, popScopeId } from 'vue';
4
4
  import NProgress from 'nprogress';
5
5
  import Editor from '@tinymce/tinymce-vue';
6
6
  import Swal from 'sweetalert2';
@@ -1624,8 +1624,8 @@ 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
  };
@@ -1633,9 +1633,9 @@ const _hoisted_3$a = ["src"];
1633
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, [
1638
+ ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
1639
1639
  createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$a),
1640
1640
  createTextVNode(" " + toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
1641
1641
  ]))
@@ -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,11 +1747,11 @@ 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"];
1754
+ const _hoisted_2$a = ["id"];
1755
1755
  const _hoisted_3$9 = { class: "badge bg-secondary m-1 sh-selected-item" };
1756
1756
  const _hoisted_4$9 = ["onClick"];
1757
1757
  const _hoisted_5$6 = ["id"];
@@ -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",
@@ -1876,7 +1876,7 @@ return (_ctx, _cache) => {
1876
1876
  onInput: filterData,
1877
1877
  class: "flex-fill h-100 sh-suggestion-input"
1878
1878
  }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$6)
1879
- ], 8 /* PROPS */, _hoisted_2$b),
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,8 +2229,8 @@ 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
  };
@@ -2291,8 +2291,8 @@ 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)
@@ -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,8 +2579,8 @@ var script$9 = {
2579
2579
  }
2580
2580
  };
2581
2581
 
2582
- const _hoisted_1$9 = ["id"];
2583
- const _hoisted_2$8 = { class: "modal-content" };
2582
+ const _hoisted_1$8 = ["id"];
2583
+ const _hoisted_2$7 = { class: "modal-content" };
2584
2584
  const _hoisted_3$7 = { class: "modal-header" };
2585
2585
  const _hoisted_4$7 = { class: "modal-title" };
2586
2586
  const _hoisted_5$4 = /*#__PURE__*/createElementVNode("button", {
@@ -2600,7 +2600,7 @@ 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, [
2603
+ createElementVNode("div", _hoisted_2$7, [
2604
2604
  createElementVNode("div", _hoisted_3$7, [
2605
2605
  createElementVNode("h3", _hoisted_4$7, toDisplayString($props.modalTitle), 1 /* TEXT */),
2606
2606
  _hoisted_5$4
@@ -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,8 +2691,8 @@ var script$7 = {
2691
2691
  }
2692
2692
  };
2693
2693
 
2694
- const _hoisted_1$7 = ["id"];
2695
- const _hoisted_2$7 = { class: "offcanvas-header" };
2694
+ const _hoisted_1$6 = ["id"];
2695
+ const _hoisted_2$6 = { class: "offcanvas-header" };
2696
2696
  const _hoisted_3$6 = {
2697
2697
  class: "offcanvas-title",
2698
2698
  id: "offcanvasScrollingLabel"
@@ -2707,7 +2707,7 @@ 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, [
2710
+ createElementVNode("div", _hoisted_2$6, [
2711
2711
  createElementVNode("h5", _hoisted_3$6, toDisplayString($props.canvasTitle), 1 /* TEXT */),
2712
2712
  createElementVNode("button", {
2713
2713
  type: "button",
@@ -2721,7 +2721,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2721
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,8 +2798,8 @@ 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" };
2801
+ const _hoisted_1$5 = { key: 0 };
2802
+ const _hoisted_2$5 = { class: "record_count_body mb-3" };
2803
2803
  const _hoisted_3$5 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
2804
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 = [
@@ -2844,8 +2844,8 @@ 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, [
2847
+ ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
2848
+ createElementVNode("div", _hoisted_2$5, [
2849
2849
  _hoisted_3$5,
2850
2850
  createTextVNode("  "),
2851
2851
  withDirectives(createElementVNode("select", {
@@ -3331,8 +3331,8 @@ 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
  };
@@ -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",
@@ -3889,10 +3889,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3889
3889
  }, {
3890
3890
  default: withCtx(() => [
3891
3891
  ($data.selectedRecord)
3892
- ? (openBlock(), createBlock(resolveDynamicComponent(action.canvasComponent), {
3893
- key: 0,
3894
- record: $data.selectedRecord
3895
- }, null, 8 /* PROPS */, ["record"]))
3892
+ ? (openBlock(), createBlock(resolveDynamicComponent(action.canvasComponent), mergeProps({ key: 0 }, action, { record: $data.selectedRecord }), null, 16 /* FULL_PROPS */, ["record"]))
3896
3893
  : createCommentVNode("v-if", true)
3897
3894
  ]),
3898
3895
  _: 2 /* DYNAMIC */
@@ -3909,7 +3906,7 @@ script$5.__file = "src/lib/components/ShTable.vue";
3909
3906
 
3910
3907
  var script$4 = {
3911
3908
  name: 'ShTabs',
3912
- props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
3909
+ props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive','classOne','classTwo','classes'],
3913
3910
  data () {
3914
3911
  return {
3915
3912
  currentTab: '',
@@ -3988,15 +3985,14 @@ var script$4 = {
3988
3985
  }
3989
3986
  };
3990
3987
 
3991
- const _hoisted_1$4 = { class: "nav nav-tabs sh-tabs" };
3992
- const _hoisted_2$4 = { class: "tab-content" };
3993
-
3994
3988
  function render(_ctx, _cache, $props, $setup, $data, $options) {
3995
3989
  const _component_router_link = resolveComponent("router-link");
3996
3990
  const _component_router_view = resolveComponent("router-view");
3997
3991
 
3998
3992
  return (openBlock(), createElementBlock(Fragment, null, [
3999
- createElementVNode("ul", _hoisted_1$4, [
3993
+ createElementVNode("ul", {
3994
+ class: normalizeClass(["nav nav-tabs sh-tabs", $props.classes])
3995
+ }, [
4000
3996
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.tabs, (tab) => {
4001
3997
  return (openBlock(), createElementBlock("li", {
4002
3998
  class: "nav-item",
@@ -4016,14 +4012,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4016
4012
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
4017
4013
  ]))
4018
4014
  }), 128 /* KEYED_FRAGMENT */))
4019
- ]),
4020
- createElementVNode("div", _hoisted_2$4, [
4015
+ ], 2 /* CLASS */),
4016
+ createElementVNode("div", {
4017
+ class: normalizeClass(["tab-content", $props.classTwo])
4018
+ }, [
4021
4019
  createVNode(_component_router_view, {
4022
4020
  currentTab: $data.currentTab,
4023
4021
  sharedData: $props.sharedData,
4024
4022
  tabCounts: $props.tabCounts
4025
4023
  }, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
4026
- ])
4024
+ ], 2 /* CLASS */)
4027
4025
  ], 64 /* STABLE_FRAGMENT */))
4028
4026
  }
4029
4027
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",