@iankibetsh/shframework 0.4.1 → 0.4.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.
- package/dist/library.js +88 -51
- package/dist/library.mjs +88 -51
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1612,7 +1612,7 @@ const _hoisted_2$6 = {
|
|
|
1612
1612
|
style: {"display":"contents"}
|
|
1613
1613
|
};
|
|
1614
1614
|
const _hoisted_3$6 = ["src"];
|
|
1615
|
-
const _hoisted_4$
|
|
1615
|
+
const _hoisted_4$6 = ["value"];
|
|
1616
1616
|
|
|
1617
1617
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1618
1618
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
@@ -1631,7 +1631,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1631
1631
|
return (vue.openBlock(), vue.createElementBlock("option", {
|
|
1632
1632
|
value: country,
|
|
1633
1633
|
key: country.dialCode
|
|
1634
|
-
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1634
|
+
}, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$6))
|
|
1635
1635
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1636
1636
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1637
1637
|
[vue.vModelSelect, $data.selectedCountry]
|
|
@@ -2033,10 +2033,10 @@ const _hoisted_2$5 = {
|
|
|
2033
2033
|
class: "alert alert-danger"
|
|
2034
2034
|
};
|
|
2035
2035
|
const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-warning" }, null, -1 /* HOISTED */);
|
|
2036
|
-
const _hoisted_4$
|
|
2037
|
-
const _hoisted_5$
|
|
2036
|
+
const _hoisted_4$5 = /*#__PURE__*/vue.createTextVNode(" Error");
|
|
2037
|
+
const _hoisted_5$4 = [
|
|
2038
2038
|
_hoisted_3$5,
|
|
2039
|
-
_hoisted_4$
|
|
2039
|
+
_hoisted_4$5
|
|
2040
2040
|
];
|
|
2041
2041
|
const _hoisted_6$2 = { class: "row" };
|
|
2042
2042
|
const _hoisted_7$2 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
@@ -2090,7 +2090,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2090
2090
|
vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2091
2091
|
vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2092
2092
|
(_ctx.form_status == 3)
|
|
2093
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, _hoisted_5$
|
|
2093
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, _hoisted_5$4))
|
|
2094
2094
|
: vue.createCommentVNode("v-if", true),
|
|
2095
2095
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
2096
2096
|
type: "hidden",
|
|
@@ -2293,7 +2293,7 @@ const _hoisted_3$4 = {
|
|
|
2293
2293
|
class: "offcanvas-title",
|
|
2294
2294
|
id: "offcanvasScrollingLabel"
|
|
2295
2295
|
};
|
|
2296
|
-
const _hoisted_4$
|
|
2296
|
+
const _hoisted_4$4 = { class: "offcanvas-body" };
|
|
2297
2297
|
|
|
2298
2298
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2299
2299
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -2314,7 +2314,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2314
2314
|
"aria-label": "Close"
|
|
2315
2315
|
}, null, 512 /* NEED_PATCH */)
|
|
2316
2316
|
]),
|
|
2317
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
2317
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
2318
2318
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2319
2319
|
])
|
|
2320
2320
|
], 10 /* CLASS, PROPS */, _hoisted_1$4))
|
|
@@ -2333,8 +2333,8 @@ var script$3 = {
|
|
|
2333
2333
|
const _hoisted_1$3 = ["id"];
|
|
2334
2334
|
const _hoisted_2$3 = { class: "modal-content" };
|
|
2335
2335
|
const _hoisted_3$3 = { class: "modal-header" };
|
|
2336
|
-
const _hoisted_4$
|
|
2337
|
-
const _hoisted_5$
|
|
2336
|
+
const _hoisted_4$3 = { class: "modal-title" };
|
|
2337
|
+
const _hoisted_5$3 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
2338
2338
|
class: "btn btn-danger btn-sm",
|
|
2339
2339
|
"data-bs-dismiss": "modal",
|
|
2340
2340
|
"data-dismiss": "modal"
|
|
@@ -2355,8 +2355,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2355
2355
|
}, [
|
|
2356
2356
|
vue.createElementVNode("div", _hoisted_2$3, [
|
|
2357
2357
|
vue.createElementVNode("div", _hoisted_3$3, [
|
|
2358
|
-
vue.createElementVNode("h3", _hoisted_4$
|
|
2359
|
-
_hoisted_5$
|
|
2358
|
+
vue.createElementVNode("h3", _hoisted_4$3, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
|
|
2359
|
+
_hoisted_5$3
|
|
2360
2360
|
]),
|
|
2361
2361
|
vue.createElementVNode("div", _hoisted_6$1, [
|
|
2362
2362
|
vue.createElementVNode("div", _hoisted_7$1, [
|
|
@@ -2445,10 +2445,10 @@ var script$2 = {
|
|
|
2445
2445
|
const _hoisted_1$2 = { key: 0 };
|
|
2446
2446
|
const _hoisted_2$2 = { class: "record_count_body mb-3" };
|
|
2447
2447
|
const _hoisted_3$2 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2448
|
-
const _hoisted_4$
|
|
2449
|
-
const _hoisted_5$
|
|
2448
|
+
const _hoisted_4$2 = /*#__PURE__*/vue.createTextVNode(" ");
|
|
2449
|
+
const _hoisted_5$2 = /*#__PURE__*/vue.createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
|
|
2450
2450
|
const _hoisted_10$1 = [
|
|
2451
|
-
_hoisted_5$
|
|
2451
|
+
_hoisted_5$2
|
|
2452
2452
|
];
|
|
2453
2453
|
const _hoisted_11$1 = { class: "record_counts" };
|
|
2454
2454
|
const _hoisted_12$1 = {
|
|
@@ -2492,7 +2492,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2492
2492
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
2493
2493
|
vue.createElementVNode("div", _hoisted_2$2, [
|
|
2494
2494
|
_hoisted_3$2,
|
|
2495
|
-
_hoisted_4$
|
|
2495
|
+
_hoisted_4$2,
|
|
2496
2496
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
2497
2497
|
class: "select_per_page",
|
|
2498
2498
|
onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
|
|
@@ -2959,8 +2959,8 @@ const _hoisted_2$1 = {
|
|
|
2959
2959
|
class: "col-md-4 mb-2"
|
|
2960
2960
|
};
|
|
2961
2961
|
const _hoisted_3$1 = ["disabled"];
|
|
2962
|
-
const _hoisted_4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
2963
|
-
const _hoisted_5 = /*#__PURE__*/vue.createTextVNode(" Export ");
|
|
2962
|
+
const _hoisted_4$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
2963
|
+
const _hoisted_5$1 = /*#__PURE__*/vue.createTextVNode(" Export ");
|
|
2964
2964
|
const _hoisted_6 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
2965
2965
|
class: "spinner-border spinner-border-sm",
|
|
2966
2966
|
role: "status",
|
|
@@ -3126,8 +3126,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3126
3126
|
}, [
|
|
3127
3127
|
(!$data.downloading)
|
|
3128
3128
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
3129
|
-
_hoisted_4,
|
|
3130
|
-
_hoisted_5
|
|
3129
|
+
_hoisted_4$1,
|
|
3130
|
+
_hoisted_5$1
|
|
3131
3131
|
], 64 /* STABLE_FRAGMENT */))
|
|
3132
3132
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
3133
3133
|
_hoisted_6,
|
|
@@ -3447,10 +3447,12 @@ script$1.__file = "src/views/ShTable.vue";
|
|
|
3447
3447
|
|
|
3448
3448
|
var script = {
|
|
3449
3449
|
name: 'ShTabs',
|
|
3450
|
-
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts'],
|
|
3450
|
+
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
|
|
3451
3451
|
data () {
|
|
3452
3452
|
return {
|
|
3453
|
-
currentTab: ''
|
|
3453
|
+
currentTab: '',
|
|
3454
|
+
generatedId: null,
|
|
3455
|
+
isResponsive: typeof this.responsive !== 'undefined'
|
|
3454
3456
|
}
|
|
3455
3457
|
},
|
|
3456
3458
|
watch: {
|
|
@@ -3470,9 +3472,16 @@ var script = {
|
|
|
3470
3472
|
}
|
|
3471
3473
|
},
|
|
3472
3474
|
mounted () {
|
|
3475
|
+
this.generatedId = 'tab' + Math.random().toString(36).slice(2);
|
|
3473
3476
|
this.resetTabCounts();
|
|
3477
|
+
this.setTab(this.tabs[0]);
|
|
3474
3478
|
},
|
|
3475
3479
|
methods: {
|
|
3480
|
+
setTab: function(tab){
|
|
3481
|
+
if(tab){
|
|
3482
|
+
this.currentTab = tab.replace(/_/g, ' ');
|
|
3483
|
+
}
|
|
3484
|
+
},
|
|
3476
3485
|
setTabCounts: function (tabCounts) {
|
|
3477
3486
|
if (typeof tabCounts === 'object') {
|
|
3478
3487
|
this.setCounts(tabCounts);
|
|
@@ -3504,7 +3513,7 @@ var script = {
|
|
|
3504
3513
|
},
|
|
3505
3514
|
setCounts: function (res) {
|
|
3506
3515
|
Object.keys(res).forEach(key => {
|
|
3507
|
-
|
|
3516
|
+
let elem = document.getElementsByClassName('sh_tab_' + key);
|
|
3508
3517
|
if (elem) {
|
|
3509
3518
|
let txt = elem.innerHTML;
|
|
3510
3519
|
txt = txt.split('<i class="d-none"></i>')[0];
|
|
@@ -3517,47 +3526,75 @@ var script = {
|
|
|
3517
3526
|
}
|
|
3518
3527
|
};
|
|
3519
3528
|
|
|
3520
|
-
const _hoisted_1 = {
|
|
3521
|
-
|
|
3522
|
-
class: "
|
|
3523
|
-
role: "tablist"
|
|
3529
|
+
const _hoisted_1 = {
|
|
3530
|
+
key: 0,
|
|
3531
|
+
class: "navbar navbar-expand-lg sh-horizontal-tabs"
|
|
3524
3532
|
};
|
|
3525
|
-
const
|
|
3533
|
+
const _hoisted_2 = ["data-bs-target"];
|
|
3534
|
+
const _hoisted_3 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
|
|
3535
|
+
const _hoisted_4 = ["id"];
|
|
3536
|
+
const _hoisted_5 = { class: "tab-content" };
|
|
3526
3537
|
|
|
3527
3538
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3528
3539
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
3529
3540
|
const _component_router_view = vue.resolveComponent("router-view");
|
|
3530
3541
|
|
|
3531
|
-
return (vue.openBlock(), vue.createElementBlock(
|
|
3532
|
-
|
|
3533
|
-
(vue.openBlock(
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3542
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3543
|
+
($data.generatedId)
|
|
3544
|
+
? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_1, [
|
|
3545
|
+
($data.isResponsive)
|
|
3546
|
+
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
3547
|
+
key: 0,
|
|
3548
|
+
href: "#",
|
|
3549
|
+
class: "form-control navbar-toggler text-capitalize",
|
|
3550
|
+
"data-bs-toggle": "collapse",
|
|
3551
|
+
"data-bs-target": '#' + $data.generatedId,
|
|
3552
|
+
"aria-controls": "navbarNav",
|
|
3553
|
+
"aria-expanded": "false",
|
|
3554
|
+
"aria-label": "Toggle navigation"
|
|
3555
|
+
}, [
|
|
3556
|
+
vue.createTextVNode(vue.toDisplayString($data.currentTab) + " ", 1 /* TEXT */),
|
|
3557
|
+
_hoisted_3
|
|
3558
|
+
], 8 /* PROPS */, _hoisted_2))
|
|
3559
|
+
: vue.createCommentVNode("v-if", true),
|
|
3560
|
+
vue.createElementVNode("div", {
|
|
3561
|
+
class: vue.normalizeClass($data.isResponsive ? 'collapse navbar-collapse':''),
|
|
3562
|
+
id: $data.generatedId
|
|
3563
|
+
}, [
|
|
3564
|
+
vue.createElementVNode("ul", {
|
|
3565
|
+
class: vue.normalizeClass($data.isResponsive ? 'navbar-nav nav':'nav')
|
|
3566
|
+
}, [
|
|
3567
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.tabs, (tab) => {
|
|
3568
|
+
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
3569
|
+
class: "nav-item",
|
|
3570
|
+
key: tab
|
|
3571
|
+
}, [
|
|
3572
|
+
vue.createVNode(_component_router_link, {
|
|
3573
|
+
onClick: $event => ($options.setTab(tab)),
|
|
3574
|
+
"active-class": 'active',
|
|
3575
|
+
class: vue.normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
|
|
3576
|
+
to: $props.baseUrl+'/tab/'+tab,
|
|
3577
|
+
role: "tab"
|
|
3578
|
+
}, {
|
|
3579
|
+
default: vue.withCtx(() => [
|
|
3580
|
+
vue.createTextVNode(vue.toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
|
|
3581
|
+
]),
|
|
3582
|
+
_: 2 /* DYNAMIC */
|
|
3583
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
|
|
3584
|
+
]))
|
|
3585
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
3586
|
+
], 2 /* CLASS */)
|
|
3587
|
+
], 10 /* CLASS, PROPS */, _hoisted_4)
|
|
3550
3588
|
]))
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
vue.createElementVNode("div", _hoisted_3, [
|
|
3589
|
+
: vue.createCommentVNode("v-if", true),
|
|
3590
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
3554
3591
|
vue.createVNode(_component_router_view, {
|
|
3555
3592
|
currentTab: $data.currentTab,
|
|
3556
3593
|
sharedData: $props.sharedData,
|
|
3557
3594
|
tabCounts: $props.tabCounts
|
|
3558
3595
|
}, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
|
|
3559
3596
|
])
|
|
3560
|
-
]))
|
|
3597
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
3561
3598
|
}
|
|
3562
3599
|
|
|
3563
3600
|
script.render = render;
|
package/dist/library.mjs
CHANGED
|
@@ -1600,7 +1600,7 @@ const _hoisted_2$6 = {
|
|
|
1600
1600
|
style: {"display":"contents"}
|
|
1601
1601
|
};
|
|
1602
1602
|
const _hoisted_3$6 = ["src"];
|
|
1603
|
-
const _hoisted_4$
|
|
1603
|
+
const _hoisted_4$6 = ["value"];
|
|
1604
1604
|
|
|
1605
1605
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1606
1606
|
return (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
@@ -1619,7 +1619,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1619
1619
|
return (openBlock(), createElementBlock("option", {
|
|
1620
1620
|
value: country,
|
|
1621
1621
|
key: country.dialCode
|
|
1622
|
-
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$
|
|
1622
|
+
}, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$6))
|
|
1623
1623
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1624
1624
|
], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
1625
1625
|
[vModelSelect, $data.selectedCountry]
|
|
@@ -2021,10 +2021,10 @@ const _hoisted_2$5 = {
|
|
|
2021
2021
|
class: "alert alert-danger"
|
|
2022
2022
|
};
|
|
2023
2023
|
const _hoisted_3$5 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-warning" }, null, -1 /* HOISTED */);
|
|
2024
|
-
const _hoisted_4$
|
|
2025
|
-
const _hoisted_5$
|
|
2024
|
+
const _hoisted_4$5 = /*#__PURE__*/createTextVNode(" Error");
|
|
2025
|
+
const _hoisted_5$4 = [
|
|
2026
2026
|
_hoisted_3$5,
|
|
2027
|
-
_hoisted_4$
|
|
2027
|
+
_hoisted_4$5
|
|
2028
2028
|
];
|
|
2029
2029
|
const _hoisted_6$2 = { class: "row" };
|
|
2030
2030
|
const _hoisted_7$2 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
@@ -2078,7 +2078,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2078
2078
|
createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
|
|
2079
2079
|
createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
|
|
2080
2080
|
(_ctx.form_status == 3)
|
|
2081
|
-
? (openBlock(), createElementBlock("div", _hoisted_2$5, _hoisted_5$
|
|
2081
|
+
? (openBlock(), createElementBlock("div", _hoisted_2$5, _hoisted_5$4))
|
|
2082
2082
|
: createCommentVNode("v-if", true),
|
|
2083
2083
|
withDirectives(createElementVNode("input", {
|
|
2084
2084
|
type: "hidden",
|
|
@@ -2281,7 +2281,7 @@ const _hoisted_3$4 = {
|
|
|
2281
2281
|
class: "offcanvas-title",
|
|
2282
2282
|
id: "offcanvasScrollingLabel"
|
|
2283
2283
|
};
|
|
2284
|
-
const _hoisted_4$
|
|
2284
|
+
const _hoisted_4$4 = { class: "offcanvas-body" };
|
|
2285
2285
|
|
|
2286
2286
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2287
2287
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -2302,7 +2302,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2302
2302
|
"aria-label": "Close"
|
|
2303
2303
|
}, null, 512 /* NEED_PATCH */)
|
|
2304
2304
|
]),
|
|
2305
|
-
createElementVNode("div", _hoisted_4$
|
|
2305
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
2306
2306
|
renderSlot(_ctx.$slots, "default")
|
|
2307
2307
|
])
|
|
2308
2308
|
], 10 /* CLASS, PROPS */, _hoisted_1$4))
|
|
@@ -2321,8 +2321,8 @@ var script$3 = {
|
|
|
2321
2321
|
const _hoisted_1$3 = ["id"];
|
|
2322
2322
|
const _hoisted_2$3 = { class: "modal-content" };
|
|
2323
2323
|
const _hoisted_3$3 = { class: "modal-header" };
|
|
2324
|
-
const _hoisted_4$
|
|
2325
|
-
const _hoisted_5$
|
|
2324
|
+
const _hoisted_4$3 = { class: "modal-title" };
|
|
2325
|
+
const _hoisted_5$3 = /*#__PURE__*/createElementVNode("button", {
|
|
2326
2326
|
class: "btn btn-danger btn-sm",
|
|
2327
2327
|
"data-bs-dismiss": "modal",
|
|
2328
2328
|
"data-dismiss": "modal"
|
|
@@ -2343,8 +2343,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2343
2343
|
}, [
|
|
2344
2344
|
createElementVNode("div", _hoisted_2$3, [
|
|
2345
2345
|
createElementVNode("div", _hoisted_3$3, [
|
|
2346
|
-
createElementVNode("h3", _hoisted_4$
|
|
2347
|
-
_hoisted_5$
|
|
2346
|
+
createElementVNode("h3", _hoisted_4$3, toDisplayString($props.modalTitle), 1 /* TEXT */),
|
|
2347
|
+
_hoisted_5$3
|
|
2348
2348
|
]),
|
|
2349
2349
|
createElementVNode("div", _hoisted_6$1, [
|
|
2350
2350
|
createElementVNode("div", _hoisted_7$1, [
|
|
@@ -2433,10 +2433,10 @@ var script$2 = {
|
|
|
2433
2433
|
const _hoisted_1$2 = { key: 0 };
|
|
2434
2434
|
const _hoisted_2$2 = { class: "record_count_body mb-3" };
|
|
2435
2435
|
const _hoisted_3$2 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2436
|
-
const _hoisted_4$
|
|
2437
|
-
const _hoisted_5$
|
|
2436
|
+
const _hoisted_4$2 = /*#__PURE__*/createTextVNode(" ");
|
|
2437
|
+
const _hoisted_5$2 = /*#__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);
|
|
2438
2438
|
const _hoisted_10$1 = [
|
|
2439
|
-
_hoisted_5$
|
|
2439
|
+
_hoisted_5$2
|
|
2440
2440
|
];
|
|
2441
2441
|
const _hoisted_11$1 = { class: "record_counts" };
|
|
2442
2442
|
const _hoisted_12$1 = {
|
|
@@ -2480,7 +2480,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2480
2480
|
? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
2481
2481
|
createElementVNode("div", _hoisted_2$2, [
|
|
2482
2482
|
_hoisted_3$2,
|
|
2483
|
-
_hoisted_4$
|
|
2483
|
+
_hoisted_4$2,
|
|
2484
2484
|
withDirectives(createElementVNode("select", {
|
|
2485
2485
|
class: "select_per_page",
|
|
2486
2486
|
onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
|
|
@@ -2947,8 +2947,8 @@ const _hoisted_2$1 = {
|
|
|
2947
2947
|
class: "col-md-4 mb-2"
|
|
2948
2948
|
};
|
|
2949
2949
|
const _hoisted_3$1 = ["disabled"];
|
|
2950
|
-
const _hoisted_4 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
2951
|
-
const _hoisted_5 = /*#__PURE__*/createTextVNode(" Export ");
|
|
2950
|
+
const _hoisted_4$1 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
2951
|
+
const _hoisted_5$1 = /*#__PURE__*/createTextVNode(" Export ");
|
|
2952
2952
|
const _hoisted_6 = /*#__PURE__*/createElementVNode("span", {
|
|
2953
2953
|
class: "spinner-border spinner-border-sm",
|
|
2954
2954
|
role: "status",
|
|
@@ -3114,8 +3114,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3114
3114
|
}, [
|
|
3115
3115
|
(!$data.downloading)
|
|
3116
3116
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3117
|
-
_hoisted_4,
|
|
3118
|
-
_hoisted_5
|
|
3117
|
+
_hoisted_4$1,
|
|
3118
|
+
_hoisted_5$1
|
|
3119
3119
|
], 64 /* STABLE_FRAGMENT */))
|
|
3120
3120
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3121
3121
|
_hoisted_6,
|
|
@@ -3435,10 +3435,12 @@ script$1.__file = "src/views/ShTable.vue";
|
|
|
3435
3435
|
|
|
3436
3436
|
var script = {
|
|
3437
3437
|
name: 'ShTabs',
|
|
3438
|
-
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts'],
|
|
3438
|
+
props: ['tabs', 'baseUrl', 'sharedData', 'tabCounts', 'responsive'],
|
|
3439
3439
|
data () {
|
|
3440
3440
|
return {
|
|
3441
|
-
currentTab: ''
|
|
3441
|
+
currentTab: '',
|
|
3442
|
+
generatedId: null,
|
|
3443
|
+
isResponsive: typeof this.responsive !== 'undefined'
|
|
3442
3444
|
}
|
|
3443
3445
|
},
|
|
3444
3446
|
watch: {
|
|
@@ -3458,9 +3460,16 @@ var script = {
|
|
|
3458
3460
|
}
|
|
3459
3461
|
},
|
|
3460
3462
|
mounted () {
|
|
3463
|
+
this.generatedId = 'tab' + Math.random().toString(36).slice(2);
|
|
3461
3464
|
this.resetTabCounts();
|
|
3465
|
+
this.setTab(this.tabs[0]);
|
|
3462
3466
|
},
|
|
3463
3467
|
methods: {
|
|
3468
|
+
setTab: function(tab){
|
|
3469
|
+
if(tab){
|
|
3470
|
+
this.currentTab = tab.replace(/_/g, ' ');
|
|
3471
|
+
}
|
|
3472
|
+
},
|
|
3464
3473
|
setTabCounts: function (tabCounts) {
|
|
3465
3474
|
if (typeof tabCounts === 'object') {
|
|
3466
3475
|
this.setCounts(tabCounts);
|
|
@@ -3492,7 +3501,7 @@ var script = {
|
|
|
3492
3501
|
},
|
|
3493
3502
|
setCounts: function (res) {
|
|
3494
3503
|
Object.keys(res).forEach(key => {
|
|
3495
|
-
|
|
3504
|
+
let elem = document.getElementsByClassName('sh_tab_' + key);
|
|
3496
3505
|
if (elem) {
|
|
3497
3506
|
let txt = elem.innerHTML;
|
|
3498
3507
|
txt = txt.split('<i class="d-none"></i>')[0];
|
|
@@ -3505,47 +3514,75 @@ var script = {
|
|
|
3505
3514
|
}
|
|
3506
3515
|
};
|
|
3507
3516
|
|
|
3508
|
-
const _hoisted_1 = {
|
|
3509
|
-
|
|
3510
|
-
class: "
|
|
3511
|
-
role: "tablist"
|
|
3517
|
+
const _hoisted_1 = {
|
|
3518
|
+
key: 0,
|
|
3519
|
+
class: "navbar navbar-expand-lg sh-horizontal-tabs"
|
|
3512
3520
|
};
|
|
3513
|
-
const
|
|
3521
|
+
const _hoisted_2 = ["data-bs-target"];
|
|
3522
|
+
const _hoisted_3 = /*#__PURE__*/createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
|
|
3523
|
+
const _hoisted_4 = ["id"];
|
|
3524
|
+
const _hoisted_5 = { class: "tab-content" };
|
|
3514
3525
|
|
|
3515
3526
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3516
3527
|
const _component_router_link = resolveComponent("router-link");
|
|
3517
3528
|
const _component_router_view = resolveComponent("router-view");
|
|
3518
3529
|
|
|
3519
|
-
return (openBlock(), createElementBlock(
|
|
3520
|
-
|
|
3521
|
-
(openBlock(
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3530
|
+
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3531
|
+
($data.generatedId)
|
|
3532
|
+
? (openBlock(), createElementBlock("nav", _hoisted_1, [
|
|
3533
|
+
($data.isResponsive)
|
|
3534
|
+
? (openBlock(), createElementBlock("a", {
|
|
3535
|
+
key: 0,
|
|
3536
|
+
href: "#",
|
|
3537
|
+
class: "form-control navbar-toggler text-capitalize",
|
|
3538
|
+
"data-bs-toggle": "collapse",
|
|
3539
|
+
"data-bs-target": '#' + $data.generatedId,
|
|
3540
|
+
"aria-controls": "navbarNav",
|
|
3541
|
+
"aria-expanded": "false",
|
|
3542
|
+
"aria-label": "Toggle navigation"
|
|
3543
|
+
}, [
|
|
3544
|
+
createTextVNode(toDisplayString($data.currentTab) + " ", 1 /* TEXT */),
|
|
3545
|
+
_hoisted_3
|
|
3546
|
+
], 8 /* PROPS */, _hoisted_2))
|
|
3547
|
+
: createCommentVNode("v-if", true),
|
|
3548
|
+
createElementVNode("div", {
|
|
3549
|
+
class: normalizeClass($data.isResponsive ? 'collapse navbar-collapse':''),
|
|
3550
|
+
id: $data.generatedId
|
|
3551
|
+
}, [
|
|
3552
|
+
createElementVNode("ul", {
|
|
3553
|
+
class: normalizeClass($data.isResponsive ? 'navbar-nav nav':'nav')
|
|
3554
|
+
}, [
|
|
3555
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.tabs, (tab) => {
|
|
3556
|
+
return (openBlock(), createElementBlock("li", {
|
|
3557
|
+
class: "nav-item",
|
|
3558
|
+
key: tab
|
|
3559
|
+
}, [
|
|
3560
|
+
createVNode(_component_router_link, {
|
|
3561
|
+
onClick: $event => ($options.setTab(tab)),
|
|
3562
|
+
"active-class": 'active',
|
|
3563
|
+
class: normalizeClass(["nav-link text-capitalize", 'sh_tab_' + tab]),
|
|
3564
|
+
to: $props.baseUrl+'/tab/'+tab,
|
|
3565
|
+
role: "tab"
|
|
3566
|
+
}, {
|
|
3567
|
+
default: withCtx(() => [
|
|
3568
|
+
createTextVNode(toDisplayString(tab.replace(/_/g, ' ')), 1 /* TEXT */)
|
|
3569
|
+
]),
|
|
3570
|
+
_: 2 /* DYNAMIC */
|
|
3571
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
|
|
3572
|
+
]))
|
|
3573
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
3574
|
+
], 2 /* CLASS */)
|
|
3575
|
+
], 10 /* CLASS, PROPS */, _hoisted_4)
|
|
3538
3576
|
]))
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
createElementVNode("div", _hoisted_3, [
|
|
3577
|
+
: createCommentVNode("v-if", true),
|
|
3578
|
+
createElementVNode("div", _hoisted_5, [
|
|
3542
3579
|
createVNode(_component_router_view, {
|
|
3543
3580
|
currentTab: $data.currentTab,
|
|
3544
3581
|
sharedData: $props.sharedData,
|
|
3545
3582
|
tabCounts: $props.tabCounts
|
|
3546
3583
|
}, null, 8 /* PROPS */, ["currentTab", "sharedData", "tabCounts"])
|
|
3547
3584
|
])
|
|
3548
|
-
]))
|
|
3585
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
3549
3586
|
}
|
|
3550
3587
|
|
|
3551
3588
|
script.render = render;
|