@iankibetsh/shframework 1.7.4 → 1.7.6
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 +17 -10
- package/dist/library.mjs +17 -10
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -2519,7 +2519,7 @@ const _hoisted_22$2 = /*#__PURE__*/vue.createElementVNode("p", null, [
|
|
|
2519
2519
|
href: "https://hauzisha.co.ke/privacy-policy"
|
|
2520
2520
|
}, "privacy policy")
|
|
2521
2521
|
], -1 /* HOISTED */);
|
|
2522
|
-
const _hoisted_23$
|
|
2522
|
+
const _hoisted_23$2 = [
|
|
2523
2523
|
_hoisted_21$2,
|
|
2524
2524
|
_hoisted_22$2
|
|
2525
2525
|
];
|
|
@@ -2717,7 +2717,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2717
2717
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2718
2718
|
]),
|
|
2719
2719
|
($props.hasTerms)
|
|
2720
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$2, _hoisted_23$
|
|
2720
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$2, _hoisted_23$2))
|
|
2721
2721
|
: vue.createCommentVNode("v-if", true),
|
|
2722
2722
|
(_ctx.form_status == 1)
|
|
2723
2723
|
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
@@ -3705,6 +3705,10 @@ const _hoisted_22$1 = {
|
|
|
3705
3705
|
key: 2,
|
|
3706
3706
|
class: "text-center"
|
|
3707
3707
|
};
|
|
3708
|
+
const _hoisted_23$1 = {
|
|
3709
|
+
key: 1,
|
|
3710
|
+
class: "spinner-border"
|
|
3711
|
+
};
|
|
3708
3712
|
|
|
3709
3713
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3710
3714
|
return ($props.paginationStyle !== 'loadMore')
|
|
@@ -3769,12 +3773,15 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3769
3773
|
vue.createElementVNode("span", _hoisted_21$1, "Showing " + vue.toDisplayString($props.pagination_data.displayCount) + " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
3770
3774
|
]))
|
|
3771
3775
|
: vue.createCommentVNode("v-if", true),
|
|
3772
|
-
(
|
|
3776
|
+
($props.pagination_data.displayCount < $props.pagination_data.record_count && !$props.hideLoadMore)
|
|
3773
3777
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22$1, [
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
+
(this.pagination_data.loading !== 1)
|
|
3779
|
+
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
3780
|
+
key: 0,
|
|
3781
|
+
class: "btn btn-sm btn-primary mt-1",
|
|
3782
|
+
onClick: _cache[4] || (_cache[4] = (...args) => ($options.loadMoreRecords && $options.loadMoreRecords(...args)))
|
|
3783
|
+
}, " Load More "))
|
|
3784
|
+
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_23$1))
|
|
3778
3785
|
]))
|
|
3779
3786
|
: vue.createCommentVNode("v-if", true)
|
|
3780
3787
|
]))
|
|
@@ -5666,14 +5673,14 @@ const dates = vue.ref([
|
|
|
5666
5673
|
const setDate = (date, label) => {
|
|
5667
5674
|
selectedDate.value = date;
|
|
5668
5675
|
rangeLabel.value = '<strong>' + label + '</strong><small>(' + date[0].format('MMMM D, YYYY') + ' - ' + date[1].format('MMMM D, YYYY') + ')</small>';
|
|
5669
|
-
const from = date[0]
|
|
5670
|
-
const to = date[1]
|
|
5676
|
+
const from = date[0];
|
|
5677
|
+
const to = date[1];
|
|
5671
5678
|
const period = label.toString().toLowerCase().replaceAll(' ','_');
|
|
5672
5679
|
emit('rangeSelected', {
|
|
5673
5680
|
from: from,
|
|
5674
5681
|
to: to,
|
|
5675
5682
|
period: period,
|
|
5676
|
-
query: `from=${from}&to=${to}&period=${period}`
|
|
5683
|
+
query: `from=${from.format('L')}&to=${to.format('L')}&period=${period}`
|
|
5677
5684
|
});
|
|
5678
5685
|
};
|
|
5679
5686
|
vue.onMounted(() => {
|
package/dist/library.mjs
CHANGED
|
@@ -2507,7 +2507,7 @@ const _hoisted_22$2 = /*#__PURE__*/createElementVNode("p", null, [
|
|
|
2507
2507
|
href: "https://hauzisha.co.ke/privacy-policy"
|
|
2508
2508
|
}, "privacy policy")
|
|
2509
2509
|
], -1 /* HOISTED */);
|
|
2510
|
-
const _hoisted_23$
|
|
2510
|
+
const _hoisted_23$2 = [
|
|
2511
2511
|
_hoisted_21$2,
|
|
2512
2512
|
_hoisted_22$2
|
|
2513
2513
|
];
|
|
@@ -2705,7 +2705,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2705
2705
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2706
2706
|
]),
|
|
2707
2707
|
($props.hasTerms)
|
|
2708
|
-
? (openBlock(), createElementBlock("div", _hoisted_20$2, _hoisted_23$
|
|
2708
|
+
? (openBlock(), createElementBlock("div", _hoisted_20$2, _hoisted_23$2))
|
|
2709
2709
|
: createCommentVNode("v-if", true),
|
|
2710
2710
|
(_ctx.form_status == 1)
|
|
2711
2711
|
? (openBlock(), createElementBlock("button", {
|
|
@@ -3693,6 +3693,10 @@ const _hoisted_22$1 = {
|
|
|
3693
3693
|
key: 2,
|
|
3694
3694
|
class: "text-center"
|
|
3695
3695
|
};
|
|
3696
|
+
const _hoisted_23$1 = {
|
|
3697
|
+
key: 1,
|
|
3698
|
+
class: "spinner-border"
|
|
3699
|
+
};
|
|
3696
3700
|
|
|
3697
3701
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3698
3702
|
return ($props.paginationStyle !== 'loadMore')
|
|
@@ -3757,12 +3761,15 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3757
3761
|
createElementVNode("span", _hoisted_21$1, "Showing " + toDisplayString($props.pagination_data.displayCount) + " of " + toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
3758
3762
|
]))
|
|
3759
3763
|
: createCommentVNode("v-if", true),
|
|
3760
|
-
(
|
|
3764
|
+
($props.pagination_data.displayCount < $props.pagination_data.record_count && !$props.hideLoadMore)
|
|
3761
3765
|
? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
+
(this.pagination_data.loading !== 1)
|
|
3767
|
+
? (openBlock(), createElementBlock("button", {
|
|
3768
|
+
key: 0,
|
|
3769
|
+
class: "btn btn-sm btn-primary mt-1",
|
|
3770
|
+
onClick: _cache[4] || (_cache[4] = (...args) => ($options.loadMoreRecords && $options.loadMoreRecords(...args)))
|
|
3771
|
+
}, " Load More "))
|
|
3772
|
+
: (openBlock(), createElementBlock("span", _hoisted_23$1))
|
|
3766
3773
|
]))
|
|
3767
3774
|
: createCommentVNode("v-if", true)
|
|
3768
3775
|
]))
|
|
@@ -5654,14 +5661,14 @@ const dates = ref([
|
|
|
5654
5661
|
const setDate = (date, label) => {
|
|
5655
5662
|
selectedDate.value = date;
|
|
5656
5663
|
rangeLabel.value = '<strong>' + label + '</strong><small>(' + date[0].format('MMMM D, YYYY') + ' - ' + date[1].format('MMMM D, YYYY') + ')</small>';
|
|
5657
|
-
const from = date[0]
|
|
5658
|
-
const to = date[1]
|
|
5664
|
+
const from = date[0];
|
|
5665
|
+
const to = date[1];
|
|
5659
5666
|
const period = label.toString().toLowerCase().replaceAll(' ','_');
|
|
5660
5667
|
emit('rangeSelected', {
|
|
5661
5668
|
from: from,
|
|
5662
5669
|
to: to,
|
|
5663
5670
|
period: period,
|
|
5664
|
-
query: `from=${from}&to=${to}&period=${period}`
|
|
5671
|
+
query: `from=${from.format('L')}&to=${to.format('L')}&period=${period}`
|
|
5665
5672
|
});
|
|
5666
5673
|
};
|
|
5667
5674
|
onMounted(() => {
|