@iankibetsh/shframework 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -2070,12 +2070,12 @@ const _hoisted_4$c = ["onClick"];
2070
2070
  const _hoisted_5$a = ["id"];
2071
2071
  const _hoisted_6$9 = ["id", "aria-labelledby"];
2072
2072
  const _hoisted_7$7 = { key: 0 };
2073
- const _hoisted_8$4 = ["onClick"];
2074
- const _hoisted_9$5 = {
2073
+ const _hoisted_8$5 = ["onClick"];
2074
+ const _hoisted_9$6 = {
2075
2075
  key: 1,
2076
2076
  class: "dropdown-item sh-suggest-no-results"
2077
2077
  };
2078
- const _hoisted_10$4 = {
2078
+ const _hoisted_10$5 = {
2079
2079
  key: 2,
2080
2080
  class: "dropdown-item sh-suggest-no-input"
2081
2081
  };
@@ -2206,14 +2206,14 @@ return (_ctx, _cache) => {
2206
2206
  onClick: $event => (addSuggestion(suggestion)),
2207
2207
  class: vue.normalizeClass(["dropdown-item", vue.unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
2208
2208
  href: "#"
2209
- }, vue.toDisplayString(suggestion.name ?? suggestion.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_8$4)
2209
+ }, vue.toDisplayString(suggestion.name ?? suggestion.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_8$5)
2210
2210
  ]))
2211
2211
  : vue.createCommentVNode("v-if", true)
2212
2212
  ], 64 /* STABLE_FRAGMENT */))
2213
2213
  }), 128 /* KEYED_FRAGMENT */))
2214
2214
  : (vue.unref(searchText))
2215
- ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$5, " No results found "))
2216
- : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$4, " Type to search... "))
2215
+ ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$6, " No results found "))
2216
+ : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$5, " Type to search... "))
2217
2217
  ], 8 /* PROPS */, _hoisted_6$9)
2218
2218
  ]))
2219
2219
  : vue.createCommentVNode("v-if", true)
@@ -2567,9 +2567,9 @@ const _hoisted_4$b = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-excla
2567
2567
  const _hoisted_5$9 = { key: 0 };
2568
2568
  const _hoisted_6$8 = { key: 1 };
2569
2569
  const _hoisted_7$6 = { class: "row" };
2570
- const _hoisted_8$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2571
- const _hoisted_9$4 = { class: "col-md-12" };
2572
- const _hoisted_10$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2570
+ const _hoisted_8$4 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2571
+ const _hoisted_9$5 = { class: "col-md-12" };
2572
+ const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2573
2573
  const _hoisted_11$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2574
2574
  const _hoisted_12$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2575
2575
  const _hoisted_13$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
@@ -2640,8 +2640,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2640
2640
  class: vue.normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
2641
2641
  key: field
2642
2642
  }, [
2643
- vue.createElementVNode("label", _hoisted_8$3, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2644
- vue.createElementVNode("div", _hoisted_9$4, [
2643
+ vue.createElementVNode("label", _hoisted_8$4, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2644
+ vue.createElementVNode("div", _hoisted_9$5, [
2645
2645
  ($options.getFieldType(field) === 'component')
2646
2646
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.customComponent[field]), {
2647
2647
  key: 0,
@@ -2666,7 +2666,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2666
2666
  ref: 'file_'+field,
2667
2667
  onChange: $event => ($options.handleFileUpload(field)),
2668
2668
  type: "file"
2669
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$3))
2669
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$4))
2670
2670
  : vue.createCommentVNode("v-if", true),
2671
2671
  ($options.getFieldType(field) === 'numeric')
2672
2672
  ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -3758,10 +3758,10 @@ const _hoisted_1$c = { key: 0 };
3758
3758
  const _hoisted_2$7 = { class: "record_count_body mb-3" };
3759
3759
  const _hoisted_3$7 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
3760
3760
  const _hoisted_4$7 = /*#__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);
3761
- const _hoisted_9$3 = [
3761
+ const _hoisted_9$4 = [
3762
3762
  _hoisted_4$7
3763
3763
  ];
3764
- const _hoisted_10$2 = { class: "record_counts" };
3764
+ const _hoisted_10$3 = { class: "record_counts" };
3765
3765
  const _hoisted_11$2 = {
3766
3766
  key: 0,
3767
3767
  "aria-label": "Page navigation"
@@ -3808,10 +3808,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3808
3808
  class: "select_per_page",
3809
3809
  onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
3810
3810
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.per_page) = $event))
3811
- }, _hoisted_9$3, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
3811
+ }, _hoisted_9$4, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
3812
3812
  [vue.vModelSelect, $data.per_page]
3813
3813
  ]),
3814
- vue.createElementVNode("span", _hoisted_10$2, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
3814
+ vue.createElementVNode("span", _hoisted_10$3, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
3815
3815
  ]),
3816
3816
  ($props.pagination_data != null)
3817
3817
  ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_11$2, [
@@ -4345,9 +4345,9 @@ const _hoisted_7$3 = {
4345
4345
  key: 1,
4346
4346
  class: "row"
4347
4347
  };
4348
- const _hoisted_8$2 = { class: "col-12 mb-3" };
4349
- const _hoisted_9$2 = { class: "sh-search-bar" };
4350
- const _hoisted_10$1 = ["placeholder"];
4348
+ const _hoisted_8$3 = { class: "col-12 mb-3" };
4349
+ const _hoisted_9$3 = { class: "sh-search-bar" };
4350
+ const _hoisted_10$2 = ["placeholder"];
4351
4351
  const _hoisted_11$1 = {
4352
4352
  key: 0,
4353
4353
  class: "text-center"
@@ -4513,8 +4513,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4513
4513
  : vue.createCommentVNode("v-if", true),
4514
4514
  (!$props.hideSearch)
4515
4515
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
4516
- vue.createElementVNode("div", _hoisted_8$2, [
4517
- vue.createElementVNode("div", _hoisted_9$2, [
4516
+ vue.createElementVNode("div", _hoisted_8$3, [
4517
+ vue.createElementVNode("div", _hoisted_9$3, [
4518
4518
  vue.withDirectives(vue.createElementVNode("input", {
4519
4519
  onKeydown: _cache[1] || (_cache[1] = (...args) => ($options.userTyping && $options.userTyping(...args))),
4520
4520
  onKeyup: _cache[2] || (_cache[2] = (...args) => ($options.userTyping && $options.userTyping(...args))),
@@ -4523,7 +4523,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4523
4523
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (($data.filter_value) = $event)),
4524
4524
  placeholder: $props.searchPlaceholder ? $props.searchPlaceholder : 'Search',
4525
4525
  class: "form-control sh-search-input"
4526
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10$1), [
4526
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10$2), [
4527
4527
  [vue.vModelText, $data.filter_value]
4528
4528
  ])
4529
4529
  ])
@@ -5334,12 +5334,12 @@ const _hoisted_6$3 = {
5334
5334
  class: "d-flex flex-column w-100 px-2"
5335
5335
  };
5336
5336
  const _hoisted_7$2 = ["checked", "disabled"];
5337
- const _hoisted_8$1 = ["onClick"];
5338
- const _hoisted_9$1 = {
5337
+ const _hoisted_8$2 = ["onClick"];
5338
+ const _hoisted_9$2 = {
5339
5339
  id: "permissions-content",
5340
5340
  class: "col-md-9 py-4 px-4"
5341
5341
  };
5342
- const _hoisted_10 = { class: "p-2 rounded-2 bg-white h-100" };
5342
+ const _hoisted_10$1 = { class: "p-2 rounded-2 bg-white h-100" };
5343
5343
  const _hoisted_11 = {
5344
5344
  key: 0,
5345
5345
  class: "alert alert-info"
@@ -5478,13 +5478,13 @@ return (_ctx, _cache) => {
5478
5478
  vue.createElementVNode("label", {
5479
5479
  class: "text-capitalize",
5480
5480
  onClick: $event => (setModule(module))
5481
- }, vue.toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_8$1)
5481
+ }, vue.toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_8$2)
5482
5482
  ], 2 /* CLASS */))
5483
5483
  }), 128 /* KEYED_FRAGMENT */))
5484
5484
  ]))
5485
5485
  ]),
5486
- vue.createElementVNode("div", _hoisted_9$1, [
5487
- vue.createElementVNode("div", _hoisted_10, [
5486
+ vue.createElementVNode("div", _hoisted_9$2, [
5487
+ vue.createElementVNode("div", _hoisted_10$1, [
5488
5488
  (loading.value)
5489
5489
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, " loading ... "))
5490
5490
  : (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, [
@@ -5675,6 +5675,9 @@ const _hoisted_6$2 = {
5675
5675
  "aria-labelledby": "dropdownMenuLink"
5676
5676
  };
5677
5677
  const _hoisted_7$1 = ["onClick"];
5678
+ const _hoisted_8$1 = { class: "border-top" };
5679
+ const _hoisted_9$1 = { class: "dropdown-item d-flex flex-column" };
5680
+ const _hoisted_10 = /*#__PURE__*/vue.createElementVNode("span", null, "Custom", -1 /* HOISTED */);
5678
5681
 
5679
5682
 
5680
5683
 
@@ -5702,6 +5705,13 @@ const props = __props;
5702
5705
  const selectedDate = vue.ref(null);
5703
5706
  const rangeLabel = vue.ref(null);
5704
5707
  vue.ref(false);
5708
+ const customFrom = vue.ref(null);
5709
+ const customTo = vue.ref(null);
5710
+
5711
+ const applyCustom = ()=>{
5712
+ const date = [moment__default["default"](customFrom.value),moment__default["default"](customTo.value)];
5713
+ setDate(date,'Custom');
5714
+ };
5705
5715
 
5706
5716
  const dates = vue.ref([
5707
5717
  {
@@ -5725,8 +5735,16 @@ const dates = vue.ref([
5725
5735
  value: [moment__default["default"]().subtract(1, 'month').startOf('month'), moment__default["default"]().subtract(1, 'month').endOf('month')]
5726
5736
  },
5727
5737
  {
5728
- label: '1 Month',
5729
- value: [moment__default["default"]().subtract(29, 'days'), moment__default["default"]()]
5738
+ label: 'Last 30 days',
5739
+ value: [moment__default["default"]().subtract(30, 'days'), moment__default["default"]()]
5740
+ },
5741
+ {
5742
+ label: 'Last 60 days',
5743
+ value: [moment__default["default"]().subtract(60, 'days'), moment__default["default"]()]
5744
+ },
5745
+ {
5746
+ label: 'Last 90 days',
5747
+ value: [moment__default["default"]().subtract(90, 'days'), moment__default["default"]()]
5730
5748
  },
5731
5749
  {
5732
5750
  label: '1 Year',
@@ -5785,15 +5803,32 @@ return (_ctx, _cache) => {
5785
5803
  }, vue.toDisplayString(date.label), 3 /* TEXT, CLASS */)
5786
5804
  ], 8 /* PROPS */, _hoisted_7$1))
5787
5805
  }), 128 /* KEYED_FRAGMENT */)),
5788
- vue.createCommentVNode(" <li>"),
5789
- vue.createCommentVNode(" <div class=\"dropdown-item\">"),
5790
- vue.createCommentVNode(" <div @clik=\"showCustom = true\">Custom</div>"),
5791
- vue.createCommentVNode(" <div v-if=\"showCustom\">"),
5792
- vue.createCommentVNode(" <input type=\"date\">"),
5793
- vue.createCommentVNode(" <input type=\"date\">"),
5794
- vue.createCommentVNode(" </div>"),
5795
- vue.createCommentVNode(" </div>"),
5796
- vue.createCommentVNode(" </li>")
5806
+ vue.createElementVNode("li", _hoisted_8$1, [
5807
+ vue.createElementVNode("div", _hoisted_9$1, [
5808
+ _hoisted_10,
5809
+ vue.createElementVNode("div", null, [
5810
+ vue.withDirectives(vue.createElementVNode("input", {
5811
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((customFrom).value = $event)),
5812
+ type: "date"
5813
+ }, null, 512 /* NEED_PATCH */), [
5814
+ [vue.vModelText, customFrom.value]
5815
+ ]),
5816
+ vue.withDirectives(vue.createElementVNode("input", {
5817
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((customTo).value = $event)),
5818
+ type: "date"
5819
+ }, null, 512 /* NEED_PATCH */), [
5820
+ [vue.vModelText, customTo.value]
5821
+ ])
5822
+ ]),
5823
+ (customFrom.value && customTo.value)
5824
+ ? (vue.openBlock(), vue.createElementBlock("button", {
5825
+ key: 0,
5826
+ class: "btn btn-sm btn-info mt-1",
5827
+ onClick: applyCustom
5828
+ }, "Apply"))
5829
+ : vue.createCommentVNode("v-if", true)
5830
+ ])
5831
+ ])
5797
5832
  ])
5798
5833
  ])
5799
5834
  ]))
package/dist/library.mjs CHANGED
@@ -2057,12 +2057,12 @@ const _hoisted_4$c = ["onClick"];
2057
2057
  const _hoisted_5$a = ["id"];
2058
2058
  const _hoisted_6$9 = ["id", "aria-labelledby"];
2059
2059
  const _hoisted_7$7 = { key: 0 };
2060
- const _hoisted_8$4 = ["onClick"];
2061
- const _hoisted_9$5 = {
2060
+ const _hoisted_8$5 = ["onClick"];
2061
+ const _hoisted_9$6 = {
2062
2062
  key: 1,
2063
2063
  class: "dropdown-item sh-suggest-no-results"
2064
2064
  };
2065
- const _hoisted_10$4 = {
2065
+ const _hoisted_10$5 = {
2066
2066
  key: 2,
2067
2067
  class: "dropdown-item sh-suggest-no-input"
2068
2068
  };
@@ -2193,14 +2193,14 @@ return (_ctx, _cache) => {
2193
2193
  onClick: $event => (addSuggestion(suggestion)),
2194
2194
  class: normalizeClass(["dropdown-item", unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
2195
2195
  href: "#"
2196
- }, toDisplayString(suggestion.name ?? suggestion.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_8$4)
2196
+ }, toDisplayString(suggestion.name ?? suggestion.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_8$5)
2197
2197
  ]))
2198
2198
  : createCommentVNode("v-if", true)
2199
2199
  ], 64 /* STABLE_FRAGMENT */))
2200
2200
  }), 128 /* KEYED_FRAGMENT */))
2201
2201
  : (unref(searchText))
2202
- ? (openBlock(), createElementBlock("li", _hoisted_9$5, " No results found "))
2203
- : (openBlock(), createElementBlock("li", _hoisted_10$4, " Type to search... "))
2202
+ ? (openBlock(), createElementBlock("li", _hoisted_9$6, " No results found "))
2203
+ : (openBlock(), createElementBlock("li", _hoisted_10$5, " Type to search... "))
2204
2204
  ], 8 /* PROPS */, _hoisted_6$9)
2205
2205
  ]))
2206
2206
  : createCommentVNode("v-if", true)
@@ -2554,9 +2554,9 @@ const _hoisted_4$b = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamati
2554
2554
  const _hoisted_5$9 = { key: 0 };
2555
2555
  const _hoisted_6$8 = { key: 1 };
2556
2556
  const _hoisted_7$6 = { class: "row" };
2557
- const _hoisted_8$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2558
- const _hoisted_9$4 = { class: "col-md-12" };
2559
- const _hoisted_10$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2557
+ const _hoisted_8$4 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2558
+ const _hoisted_9$5 = { class: "col-md-12" };
2559
+ const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2560
2560
  const _hoisted_11$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2561
2561
  const _hoisted_12$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2562
2562
  const _hoisted_13$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
@@ -2627,8 +2627,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2627
2627
  class: normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
2628
2628
  key: field
2629
2629
  }, [
2630
- createElementVNode("label", _hoisted_8$3, toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2631
- createElementVNode("div", _hoisted_9$4, [
2630
+ createElementVNode("label", _hoisted_8$4, toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2631
+ createElementVNode("div", _hoisted_9$5, [
2632
2632
  ($options.getFieldType(field) === 'component')
2633
2633
  ? (openBlock(), createBlock(resolveDynamicComponent($props.customComponent[field]), {
2634
2634
  key: 0,
@@ -2653,7 +2653,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2653
2653
  ref: 'file_'+field,
2654
2654
  onChange: $event => ($options.handleFileUpload(field)),
2655
2655
  type: "file"
2656
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$3))
2656
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$4))
2657
2657
  : createCommentVNode("v-if", true),
2658
2658
  ($options.getFieldType(field) === 'numeric')
2659
2659
  ? withDirectives((openBlock(), createElementBlock("input", {
@@ -3745,10 +3745,10 @@ const _hoisted_1$c = { key: 0 };
3745
3745
  const _hoisted_2$7 = { class: "record_count_body mb-3" };
3746
3746
  const _hoisted_3$7 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
3747
3747
  const _hoisted_4$7 = /*#__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);
3748
- const _hoisted_9$3 = [
3748
+ const _hoisted_9$4 = [
3749
3749
  _hoisted_4$7
3750
3750
  ];
3751
- const _hoisted_10$2 = { class: "record_counts" };
3751
+ const _hoisted_10$3 = { class: "record_counts" };
3752
3752
  const _hoisted_11$2 = {
3753
3753
  key: 0,
3754
3754
  "aria-label": "Page navigation"
@@ -3795,10 +3795,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3795
3795
  class: "select_per_page",
3796
3796
  onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
3797
3797
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.per_page) = $event))
3798
- }, _hoisted_9$3, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
3798
+ }, _hoisted_9$4, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
3799
3799
  [vModelSelect, $data.per_page]
3800
3800
  ]),
3801
- createElementVNode("span", _hoisted_10$2, " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
3801
+ createElementVNode("span", _hoisted_10$3, " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
3802
3802
  ]),
3803
3803
  ($props.pagination_data != null)
3804
3804
  ? (openBlock(), createElementBlock("nav", _hoisted_11$2, [
@@ -4332,9 +4332,9 @@ const _hoisted_7$3 = {
4332
4332
  key: 1,
4333
4333
  class: "row"
4334
4334
  };
4335
- const _hoisted_8$2 = { class: "col-12 mb-3" };
4336
- const _hoisted_9$2 = { class: "sh-search-bar" };
4337
- const _hoisted_10$1 = ["placeholder"];
4335
+ const _hoisted_8$3 = { class: "col-12 mb-3" };
4336
+ const _hoisted_9$3 = { class: "sh-search-bar" };
4337
+ const _hoisted_10$2 = ["placeholder"];
4338
4338
  const _hoisted_11$1 = {
4339
4339
  key: 0,
4340
4340
  class: "text-center"
@@ -4500,8 +4500,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4500
4500
  : createCommentVNode("v-if", true),
4501
4501
  (!$props.hideSearch)
4502
4502
  ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
4503
- createElementVNode("div", _hoisted_8$2, [
4504
- createElementVNode("div", _hoisted_9$2, [
4503
+ createElementVNode("div", _hoisted_8$3, [
4504
+ createElementVNode("div", _hoisted_9$3, [
4505
4505
  withDirectives(createElementVNode("input", {
4506
4506
  onKeydown: _cache[1] || (_cache[1] = (...args) => ($options.userTyping && $options.userTyping(...args))),
4507
4507
  onKeyup: _cache[2] || (_cache[2] = (...args) => ($options.userTyping && $options.userTyping(...args))),
@@ -4510,7 +4510,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4510
4510
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (($data.filter_value) = $event)),
4511
4511
  placeholder: $props.searchPlaceholder ? $props.searchPlaceholder : 'Search',
4512
4512
  class: "form-control sh-search-input"
4513
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10$1), [
4513
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10$2), [
4514
4514
  [vModelText, $data.filter_value]
4515
4515
  ])
4516
4516
  ])
@@ -5321,12 +5321,12 @@ const _hoisted_6$3 = {
5321
5321
  class: "d-flex flex-column w-100 px-2"
5322
5322
  };
5323
5323
  const _hoisted_7$2 = ["checked", "disabled"];
5324
- const _hoisted_8$1 = ["onClick"];
5325
- const _hoisted_9$1 = {
5324
+ const _hoisted_8$2 = ["onClick"];
5325
+ const _hoisted_9$2 = {
5326
5326
  id: "permissions-content",
5327
5327
  class: "col-md-9 py-4 px-4"
5328
5328
  };
5329
- const _hoisted_10 = { class: "p-2 rounded-2 bg-white h-100" };
5329
+ const _hoisted_10$1 = { class: "p-2 rounded-2 bg-white h-100" };
5330
5330
  const _hoisted_11 = {
5331
5331
  key: 0,
5332
5332
  class: "alert alert-info"
@@ -5465,13 +5465,13 @@ return (_ctx, _cache) => {
5465
5465
  createElementVNode("label", {
5466
5466
  class: "text-capitalize",
5467
5467
  onClick: $event => (setModule(module))
5468
- }, toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_8$1)
5468
+ }, toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_8$2)
5469
5469
  ], 2 /* CLASS */))
5470
5470
  }), 128 /* KEYED_FRAGMENT */))
5471
5471
  ]))
5472
5472
  ]),
5473
- createElementVNode("div", _hoisted_9$1, [
5474
- createElementVNode("div", _hoisted_10, [
5473
+ createElementVNode("div", _hoisted_9$2, [
5474
+ createElementVNode("div", _hoisted_10$1, [
5475
5475
  (loading.value)
5476
5476
  ? (openBlock(), createElementBlock("div", _hoisted_11, " loading ... "))
5477
5477
  : (openBlock(), createElementBlock("div", _hoisted_12, [
@@ -5662,6 +5662,9 @@ const _hoisted_6$2 = {
5662
5662
  "aria-labelledby": "dropdownMenuLink"
5663
5663
  };
5664
5664
  const _hoisted_7$1 = ["onClick"];
5665
+ const _hoisted_8$1 = { class: "border-top" };
5666
+ const _hoisted_9$1 = { class: "dropdown-item d-flex flex-column" };
5667
+ const _hoisted_10 = /*#__PURE__*/createElementVNode("span", null, "Custom", -1 /* HOISTED */);
5665
5668
 
5666
5669
 
5667
5670
 
@@ -5689,6 +5692,13 @@ const props = __props;
5689
5692
  const selectedDate = ref(null);
5690
5693
  const rangeLabel = ref(null);
5691
5694
  ref(false);
5695
+ const customFrom = ref(null);
5696
+ const customTo = ref(null);
5697
+
5698
+ const applyCustom = ()=>{
5699
+ const date = [moment(customFrom.value),moment(customTo.value)];
5700
+ setDate(date,'Custom');
5701
+ };
5692
5702
 
5693
5703
  const dates = ref([
5694
5704
  {
@@ -5712,8 +5722,16 @@ const dates = ref([
5712
5722
  value: [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
5713
5723
  },
5714
5724
  {
5715
- label: '1 Month',
5716
- value: [moment().subtract(29, 'days'), moment()]
5725
+ label: 'Last 30 days',
5726
+ value: [moment().subtract(30, 'days'), moment()]
5727
+ },
5728
+ {
5729
+ label: 'Last 60 days',
5730
+ value: [moment().subtract(60, 'days'), moment()]
5731
+ },
5732
+ {
5733
+ label: 'Last 90 days',
5734
+ value: [moment().subtract(90, 'days'), moment()]
5717
5735
  },
5718
5736
  {
5719
5737
  label: '1 Year',
@@ -5772,15 +5790,32 @@ return (_ctx, _cache) => {
5772
5790
  }, toDisplayString(date.label), 3 /* TEXT, CLASS */)
5773
5791
  ], 8 /* PROPS */, _hoisted_7$1))
5774
5792
  }), 128 /* KEYED_FRAGMENT */)),
5775
- createCommentVNode(" <li>"),
5776
- createCommentVNode(" <div class=\"dropdown-item\">"),
5777
- createCommentVNode(" <div @clik=\"showCustom = true\">Custom</div>"),
5778
- createCommentVNode(" <div v-if=\"showCustom\">"),
5779
- createCommentVNode(" <input type=\"date\">"),
5780
- createCommentVNode(" <input type=\"date\">"),
5781
- createCommentVNode(" </div>"),
5782
- createCommentVNode(" </div>"),
5783
- createCommentVNode(" </li>")
5793
+ createElementVNode("li", _hoisted_8$1, [
5794
+ createElementVNode("div", _hoisted_9$1, [
5795
+ _hoisted_10,
5796
+ createElementVNode("div", null, [
5797
+ withDirectives(createElementVNode("input", {
5798
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((customFrom).value = $event)),
5799
+ type: "date"
5800
+ }, null, 512 /* NEED_PATCH */), [
5801
+ [vModelText, customFrom.value]
5802
+ ]),
5803
+ withDirectives(createElementVNode("input", {
5804
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((customTo).value = $event)),
5805
+ type: "date"
5806
+ }, null, 512 /* NEED_PATCH */), [
5807
+ [vModelText, customTo.value]
5808
+ ])
5809
+ ]),
5810
+ (customFrom.value && customTo.value)
5811
+ ? (openBlock(), createElementBlock("button", {
5812
+ key: 0,
5813
+ class: "btn btn-sm btn-info mt-1",
5814
+ onClick: applyCustom
5815
+ }, "Apply"))
5816
+ : createCommentVNode("v-if", true)
5817
+ ])
5818
+ ])
5784
5819
  ])
5785
5820
  ])
5786
5821
  ]))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",