@iankibetsh/shframework 0.7.7 → 0.7.8
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 +246 -246
- package/dist/library.mjs +247 -247
- package/package.json +4 -4
package/dist/library.js
CHANGED
|
@@ -1642,7 +1642,7 @@ const _hoisted_2$b = {
|
|
|
1642
1642
|
style: {"display":"contents"}
|
|
1643
1643
|
};
|
|
1644
1644
|
const _hoisted_3$b = ["src"];
|
|
1645
|
-
const _hoisted_4$
|
|
1645
|
+
const _hoisted_4$a = ["value"];
|
|
1646
1646
|
|
|
1647
1647
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1648
1648
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
@@ -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$
|
|
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]
|
|
@@ -1765,16 +1765,16 @@ const _hoisted_1$a = {
|
|
|
1765
1765
|
};
|
|
1766
1766
|
const _hoisted_2$a = ["id"];
|
|
1767
1767
|
const _hoisted_3$a = { class: "badge bg-secondary m-1 sh-selected-item" };
|
|
1768
|
-
const _hoisted_4$
|
|
1769
|
-
const _hoisted_5$
|
|
1770
|
-
const _hoisted_6$
|
|
1768
|
+
const _hoisted_4$9 = ["onClick"];
|
|
1769
|
+
const _hoisted_5$5 = ["id"];
|
|
1770
|
+
const _hoisted_6$4 = ["id", "aria-labelledby"];
|
|
1771
1771
|
const _hoisted_7$4 = { key: 0 };
|
|
1772
1772
|
const _hoisted_8$3 = ["onClick"];
|
|
1773
|
-
const _hoisted_9$
|
|
1773
|
+
const _hoisted_9$4 = {
|
|
1774
1774
|
key: 1,
|
|
1775
1775
|
class: "dropdown-item sh-suggest-no-results"
|
|
1776
1776
|
};
|
|
1777
|
-
const _hoisted_10$
|
|
1777
|
+
const _hoisted_10$3 = {
|
|
1778
1778
|
key: 2,
|
|
1779
1779
|
class: "dropdown-item sh-suggest-no-input"
|
|
1780
1780
|
};
|
|
@@ -1877,7 +1877,7 @@ return (_ctx, _cache) => {
|
|
|
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$
|
|
1880
|
+
}, null, 8 /* PROPS */, _hoisted_4$9)
|
|
1881
1881
|
]))
|
|
1882
1882
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
1883
1883
|
]),
|
|
@@ -1887,7 +1887,7 @@ 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$
|
|
1890
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$5)
|
|
1891
1891
|
], 8 /* PROPS */, _hoisted_2$a),
|
|
1892
1892
|
vue.createElementVNode("ul", {
|
|
1893
1893
|
class: "dropdown-menu w-100",
|
|
@@ -1911,9 +1911,9 @@ return (_ctx, _cache) => {
|
|
|
1911
1911
|
], 64 /* STABLE_FRAGMENT */))
|
|
1912
1912
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1913
1913
|
: (vue.unref(searchText))
|
|
1914
|
-
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$
|
|
1915
|
-
: (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$
|
|
1916
|
-
], 8 /* PROPS */, _hoisted_6$
|
|
1914
|
+
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$4, " No results found "))
|
|
1915
|
+
: (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$3, " Type to search... "))
|
|
1916
|
+
], 8 /* PROPS */, _hoisted_6$4)
|
|
1917
1917
|
]))
|
|
1918
1918
|
: vue.createCommentVNode("v-if", true)
|
|
1919
1919
|
}
|
|
@@ -1945,7 +1945,8 @@ var script$9 = {
|
|
|
1945
1945
|
'textAreas',
|
|
1946
1946
|
'files',
|
|
1947
1947
|
'phones',
|
|
1948
|
-
'numbers'
|
|
1948
|
+
'numbers',
|
|
1949
|
+
'customComponent'
|
|
1949
1950
|
],
|
|
1950
1951
|
data: function () {
|
|
1951
1952
|
return {
|
|
@@ -1987,6 +1988,9 @@ var script$9 = {
|
|
|
1987
1988
|
}
|
|
1988
1989
|
},
|
|
1989
1990
|
getFieldType: function (field) {
|
|
1991
|
+
if(this.customComponent && this.customComponent[field]){
|
|
1992
|
+
return 'component'
|
|
1993
|
+
}
|
|
1990
1994
|
if(this.suggests && this.suggests.includes(field)){
|
|
1991
1995
|
return 'suggest'
|
|
1992
1996
|
}
|
|
@@ -2246,13 +2250,13 @@ const _hoisted_2$9 = {
|
|
|
2246
2250
|
role: "alert"
|
|
2247
2251
|
};
|
|
2248
2252
|
const _hoisted_3$9 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
|
|
2249
|
-
const _hoisted_4$
|
|
2250
|
-
const _hoisted_5$
|
|
2251
|
-
const _hoisted_6$
|
|
2253
|
+
const _hoisted_4$8 = { key: 0 };
|
|
2254
|
+
const _hoisted_5$4 = { key: 1 };
|
|
2255
|
+
const _hoisted_6$3 = { class: "row" };
|
|
2252
2256
|
const _hoisted_7$3 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2253
2257
|
const _hoisted_8$2 = { class: "col-md-12" };
|
|
2254
|
-
const _hoisted_9$
|
|
2255
|
-
const _hoisted_10$
|
|
2258
|
+
const _hoisted_9$3 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
2259
|
+
const _hoisted_10$2 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2256
2260
|
const _hoisted_11$2 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2257
2261
|
const _hoisted_12$2 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2258
2262
|
const _hoisted_13$2 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
|
|
@@ -2261,7 +2265,7 @@ const _hoisted_15$2 = ["name", "onFocus", "onUpdate:modelValue"];
|
|
|
2261
2265
|
const _hoisted_16$2 = ["name", "onFocus", "onUpdate:modelValue"];
|
|
2262
2266
|
const _hoisted_17$2 = ["value"];
|
|
2263
2267
|
const _hoisted_18$2 = {
|
|
2264
|
-
key:
|
|
2268
|
+
key: 12,
|
|
2265
2269
|
class: "invalid-feedback"
|
|
2266
2270
|
};
|
|
2267
2271
|
const _hoisted_19$2 = {
|
|
@@ -2285,16 +2289,11 @@ const _hoisted_22$2 = [
|
|
|
2285
2289
|
_hoisted_20$2,
|
|
2286
2290
|
_hoisted_21$2
|
|
2287
2291
|
];
|
|
2288
|
-
const _hoisted_23$
|
|
2292
|
+
const _hoisted_23$1 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
2289
2293
|
class: "spinner-border spinner-border-sm",
|
|
2290
2294
|
role: "status",
|
|
2291
2295
|
"aria-hidden": "true"
|
|
2292
2296
|
}, null, -1 /* HOISTED */);
|
|
2293
|
-
const _hoisted_24$1 = /*#__PURE__*/vue.createTextVNode(" Processing... ");
|
|
2294
|
-
const _hoisted_25$1 = [
|
|
2295
|
-
_hoisted_23$2,
|
|
2296
|
-
_hoisted_24$1
|
|
2297
|
-
];
|
|
2298
2297
|
|
|
2299
2298
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2300
2299
|
const _component_ShPhone = vue.resolveComponent("ShPhone");
|
|
@@ -2308,23 +2307,18 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2308
2307
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
|
|
2309
2308
|
_hoisted_3$9,
|
|
2310
2309
|
(_ctx.errorText)
|
|
2311
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
2312
|
-
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
2313
|
-
vue.
|
|
2314
|
-
onClick: _cache[0] || (_cache[0] = (...args) => ($options.hideError && $options.hideError(...args))),
|
|
2315
|
-
type: "button",
|
|
2316
|
-
class: "btn-close",
|
|
2317
|
-
"aria-label": "Close"
|
|
2318
|
-
})
|
|
2310
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$8, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
|
|
2311
|
+
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$4, "Unexpected Error Occurred")),
|
|
2312
|
+
vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
|
|
2319
2313
|
]))
|
|
2320
2314
|
: vue.createCommentVNode("v-if", true),
|
|
2321
2315
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
2322
2316
|
type: "hidden",
|
|
2323
|
-
"onUpdate:modelValue": _cache[
|
|
2317
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.form_elements['id']) = $event))
|
|
2324
2318
|
}, null, 512 /* NEED_PATCH */), [
|
|
2325
2319
|
[vue.vModelText, _ctx.form_elements['id']]
|
|
2326
2320
|
]),
|
|
2327
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
2321
|
+
vue.createElementVNode("div", _hoisted_6$3, [
|
|
2328
2322
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.fields, (field) => {
|
|
2329
2323
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
2330
2324
|
class: vue.normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
|
|
@@ -2332,9 +2326,21 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2332
2326
|
}, [
|
|
2333
2327
|
vue.createElementVNode("label", _hoisted_7$3, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
|
|
2334
2328
|
vue.createElementVNode("div", _hoisted_8$2, [
|
|
2329
|
+
($options.getFieldType(field) === 'component')
|
|
2330
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.customComponent[field]), {
|
|
2331
|
+
key: 0,
|
|
2332
|
+
"data-cy": field,
|
|
2333
|
+
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2334
|
+
name: field,
|
|
2335
|
+
onFocus: $event => ($options.removeErrors(field)),
|
|
2336
|
+
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2337
|
+
modelValue: _ctx.form_elements[field],
|
|
2338
|
+
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
|
|
2339
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, ["data-cy", "placeholder", "name", "onFocus", "class", "modelValue", "onUpdate:modelValue"]))
|
|
2340
|
+
: vue.createCommentVNode("v-if", true),
|
|
2335
2341
|
($options.getFieldType(field) === 'file')
|
|
2336
2342
|
? (vue.openBlock(), vue.createElementBlock("input", {
|
|
2337
|
-
key:
|
|
2343
|
+
key: 1,
|
|
2338
2344
|
"data-cy": field,
|
|
2339
2345
|
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2340
2346
|
name: field,
|
|
@@ -2344,11 +2350,11 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2344
2350
|
ref: 'file_'+field,
|
|
2345
2351
|
onChange: $event => ($options.handleFileUpload(field)),
|
|
2346
2352
|
type: "file"
|
|
2347
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_9$
|
|
2353
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_9$3))
|
|
2348
2354
|
: vue.createCommentVNode("v-if", true),
|
|
2349
2355
|
($options.getFieldType(field) === 'numeric')
|
|
2350
2356
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2351
|
-
key:
|
|
2357
|
+
key: 2,
|
|
2352
2358
|
"data-cy": field,
|
|
2353
2359
|
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2354
2360
|
name: field,
|
|
@@ -2356,13 +2362,13 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2356
2362
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2357
2363
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2358
2364
|
type: "number"
|
|
2359
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$
|
|
2365
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$2)), [
|
|
2360
2366
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2361
2367
|
])
|
|
2362
2368
|
: vue.createCommentVNode("v-if", true),
|
|
2363
2369
|
($options.getFieldType(field) === 'password')
|
|
2364
2370
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2365
|
-
key:
|
|
2371
|
+
key: 3,
|
|
2366
2372
|
"data-cy": field,
|
|
2367
2373
|
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2368
2374
|
name: field,
|
|
@@ -2376,7 +2382,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2376
2382
|
: vue.createCommentVNode("v-if", true),
|
|
2377
2383
|
($options.getFieldType(field) === 'email')
|
|
2378
2384
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2379
|
-
key:
|
|
2385
|
+
key: 4,
|
|
2380
2386
|
"data-cy": field,
|
|
2381
2387
|
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2382
2388
|
name: field,
|
|
@@ -2391,7 +2397,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2391
2397
|
: vue.createCommentVNode("v-if", true),
|
|
2392
2398
|
($options.getFieldType(field) === 'datepicker' && $options.isDisabled(field) === false)
|
|
2393
2399
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2394
|
-
key:
|
|
2400
|
+
key: 5,
|
|
2395
2401
|
"data-cy": field,
|
|
2396
2402
|
type: "datetime-local",
|
|
2397
2403
|
name: field,
|
|
@@ -2404,7 +2410,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2404
2410
|
: vue.createCommentVNode("v-if", true),
|
|
2405
2411
|
($options.getFieldType(field) === 'phone')
|
|
2406
2412
|
? (vue.openBlock(), vue.createBlock(_component_ShPhone, {
|
|
2407
|
-
key:
|
|
2413
|
+
key: 6,
|
|
2408
2414
|
country_code: $props.country_code,
|
|
2409
2415
|
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2410
2416
|
name: field,
|
|
@@ -2417,7 +2423,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2417
2423
|
: vue.createCommentVNode("v-if", true),
|
|
2418
2424
|
($options.getFieldType(field) === 'suggest')
|
|
2419
2425
|
? (vue.openBlock(), vue.createBlock(_component_ShSuggest, {
|
|
2420
|
-
key:
|
|
2426
|
+
key: 7,
|
|
2421
2427
|
"select-data": _ctx.selectData[field],
|
|
2422
2428
|
"fill-selects": $props.fillSelects[field],
|
|
2423
2429
|
class: vue.normalizeClass(_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field),
|
|
@@ -2427,7 +2433,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2427
2433
|
: vue.createCommentVNode("v-if", true),
|
|
2428
2434
|
($options.getFieldType(field) === 'editor')
|
|
2429
2435
|
? (vue.openBlock(), vue.createBlock(_component_ShEditor, {
|
|
2430
|
-
key:
|
|
2436
|
+
key: 8,
|
|
2431
2437
|
placeholder: _ctx.allPlaceHolders[field] ? _ctx.allPlaceHolders[field] : '',
|
|
2432
2438
|
name: field,
|
|
2433
2439
|
onFocus: $event => ($options.removeErrors(field)),
|
|
@@ -2438,7 +2444,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2438
2444
|
: vue.createCommentVNode("v-if", true),
|
|
2439
2445
|
($options.getFieldType(field) === 'text')
|
|
2440
2446
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2441
|
-
key:
|
|
2447
|
+
key: 9,
|
|
2442
2448
|
disabled: $options.isDisabled(field),
|
|
2443
2449
|
placeholder: field === 'phone_number' ? 'e.g 0712 345 678':'',
|
|
2444
2450
|
name: field,
|
|
@@ -2452,7 +2458,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2452
2458
|
: vue.createCommentVNode("v-if", true),
|
|
2453
2459
|
($options.getFieldType(field) === 'textarea')
|
|
2454
2460
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
2455
|
-
key:
|
|
2461
|
+
key: 10,
|
|
2456
2462
|
name: field,
|
|
2457
2463
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2458
2464
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
@@ -2463,7 +2469,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2463
2469
|
: vue.createCommentVNode("v-if", true),
|
|
2464
2470
|
($options.getFieldType(field) === 'select' && _ctx.selectData[field] != null)
|
|
2465
2471
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("select", {
|
|
2466
|
-
key:
|
|
2472
|
+
key: 11,
|
|
2467
2473
|
name: field,
|
|
2468
2474
|
onFocus: $event => ($options.removeErrors(field)),
|
|
2469
2475
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
@@ -2495,13 +2501,16 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2495
2501
|
class: vue.normalizeClass(["btn btn-primary", $options.getSubmitBtnClass()]),
|
|
2496
2502
|
type: "button",
|
|
2497
2503
|
disabled: ""
|
|
2498
|
-
},
|
|
2504
|
+
}, [
|
|
2505
|
+
_hoisted_23$1,
|
|
2506
|
+
vue.createTextVNode(" Processing... ")
|
|
2507
|
+
], 2 /* CLASS */))
|
|
2499
2508
|
: (vue.openBlock(), vue.createElementBlock("button", {
|
|
2500
2509
|
key: 3,
|
|
2501
2510
|
"data-cy": "sh_form_submit",
|
|
2502
2511
|
class: vue.normalizeClass(["mb-2 form-submit-btn", $options.getSubmitBtnClass()]),
|
|
2503
2512
|
type: "button",
|
|
2504
|
-
onClick: _cache[
|
|
2513
|
+
onClick: _cache[1] || (_cache[1] = (...args) => ($options.submitForm && $options.submitForm(...args)))
|
|
2505
2514
|
}, vue.toDisplayString($props.actionLabel ? $props.actionLabel:'Submit'), 3 /* TEXT, CLASS */))
|
|
2506
2515
|
], 512 /* NEED_PATCH */))
|
|
2507
2516
|
}
|
|
@@ -2532,7 +2541,7 @@ const _hoisted_3$8 = {
|
|
|
2532
2541
|
class: "offcanvas-title",
|
|
2533
2542
|
id: "offcanvasScrollingLabel"
|
|
2534
2543
|
};
|
|
2535
|
-
const _hoisted_4$
|
|
2544
|
+
const _hoisted_4$7 = { class: "offcanvas-body" };
|
|
2536
2545
|
|
|
2537
2546
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2538
2547
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -2553,7 +2562,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2553
2562
|
"aria-label": "Close"
|
|
2554
2563
|
}, null, 512 /* NEED_PATCH */)
|
|
2555
2564
|
]),
|
|
2556
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
2565
|
+
vue.createElementVNode("div", _hoisted_4$7, [
|
|
2557
2566
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2558
2567
|
])
|
|
2559
2568
|
], 10 /* CLASS, PROPS */, _hoisted_1$8))
|
|
@@ -2572,13 +2581,13 @@ var script$7 = {
|
|
|
2572
2581
|
const _hoisted_1$7 = ["id"];
|
|
2573
2582
|
const _hoisted_2$7 = { class: "modal-content" };
|
|
2574
2583
|
const _hoisted_3$7 = { class: "modal-header" };
|
|
2575
|
-
const _hoisted_4$
|
|
2576
|
-
const _hoisted_5$
|
|
2584
|
+
const _hoisted_4$6 = { class: "modal-title" };
|
|
2585
|
+
const _hoisted_5$3 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
2577
2586
|
class: "btn btn-danger btn-sm",
|
|
2578
2587
|
"data-bs-dismiss": "modal",
|
|
2579
2588
|
"data-dismiss": "modal"
|
|
2580
2589
|
}, "×", -1 /* HOISTED */);
|
|
2581
|
-
const _hoisted_6$
|
|
2590
|
+
const _hoisted_6$2 = { class: "modal-body" };
|
|
2582
2591
|
const _hoisted_7$2 = { class: "section" };
|
|
2583
2592
|
|
|
2584
2593
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -2592,10 +2601,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2592
2601
|
}, [
|
|
2593
2602
|
vue.createElementVNode("div", _hoisted_2$7, [
|
|
2594
2603
|
vue.createElementVNode("div", _hoisted_3$7, [
|
|
2595
|
-
vue.createElementVNode("h3", _hoisted_4$
|
|
2596
|
-
_hoisted_5$
|
|
2604
|
+
vue.createElementVNode("h3", _hoisted_4$6, vue.toDisplayString($props.modalTitle), 1 /* TEXT */),
|
|
2605
|
+
_hoisted_5$3
|
|
2597
2606
|
]),
|
|
2598
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
2607
|
+
vue.createElementVNode("div", _hoisted_6$2, [
|
|
2599
2608
|
vue.createElementVNode("div", _hoisted_7$2, [
|
|
2600
2609
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2601
2610
|
])
|
|
@@ -2682,44 +2691,43 @@ var script$6 = {
|
|
|
2682
2691
|
const _hoisted_1$6 = { key: 0 };
|
|
2683
2692
|
const _hoisted_2$6 = { class: "record_count_body mb-3" };
|
|
2684
2693
|
const _hoisted_3$6 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
|
|
2685
|
-
const _hoisted_4$
|
|
2686
|
-
const
|
|
2687
|
-
|
|
2688
|
-
_hoisted_5$5
|
|
2694
|
+
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);
|
|
2695
|
+
const _hoisted_9$2 = [
|
|
2696
|
+
_hoisted_4$5
|
|
2689
2697
|
];
|
|
2690
|
-
const
|
|
2691
|
-
const
|
|
2698
|
+
const _hoisted_10$1 = { class: "record_counts" };
|
|
2699
|
+
const _hoisted_11$1 = {
|
|
2692
2700
|
key: 0,
|
|
2693
2701
|
"aria-label": "Page navigation"
|
|
2694
2702
|
};
|
|
2695
|
-
const
|
|
2696
|
-
const
|
|
2703
|
+
const _hoisted_12$1 = { class: "pagination" };
|
|
2704
|
+
const _hoisted_13$1 = {
|
|
2697
2705
|
key: 0,
|
|
2698
2706
|
class: "page-link"
|
|
2699
2707
|
};
|
|
2700
|
-
const
|
|
2708
|
+
const _hoisted_14$1 = {
|
|
2701
2709
|
key: 1,
|
|
2702
2710
|
class: "page-link"
|
|
2703
2711
|
};
|
|
2704
|
-
const
|
|
2705
|
-
const
|
|
2706
|
-
const
|
|
2712
|
+
const _hoisted_15$1 = ["onClick"];
|
|
2713
|
+
const _hoisted_16$1 = { key: 1 };
|
|
2714
|
+
const _hoisted_17$1 = {
|
|
2707
2715
|
key: 0,
|
|
2708
2716
|
class: "text-center"
|
|
2709
2717
|
};
|
|
2710
|
-
const
|
|
2718
|
+
const _hoisted_18$1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
2711
2719
|
class: "spinner-border",
|
|
2712
2720
|
role: "status"
|
|
2713
2721
|
}, null, -1 /* HOISTED */);
|
|
2714
|
-
const
|
|
2715
|
-
|
|
2722
|
+
const _hoisted_19$1 = [
|
|
2723
|
+
_hoisted_18$1
|
|
2716
2724
|
];
|
|
2717
|
-
const
|
|
2725
|
+
const _hoisted_20$1 = {
|
|
2718
2726
|
key: 1,
|
|
2719
2727
|
class: "text-center"
|
|
2720
2728
|
};
|
|
2721
|
-
const
|
|
2722
|
-
const
|
|
2729
|
+
const _hoisted_21$1 = { class: "per_page_show" };
|
|
2730
|
+
const _hoisted_22$1 = {
|
|
2723
2731
|
key: 2,
|
|
2724
2732
|
class: "text-center"
|
|
2725
2733
|
};
|
|
@@ -2729,19 +2737,19 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2729
2737
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
2730
2738
|
vue.createElementVNode("div", _hoisted_2$6, [
|
|
2731
2739
|
_hoisted_3$6,
|
|
2732
|
-
|
|
2740
|
+
vue.createTextVNode(" "),
|
|
2733
2741
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
2734
2742
|
class: "select_per_page",
|
|
2735
2743
|
onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
|
|
2736
2744
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.per_page) = $event))
|
|
2737
|
-
},
|
|
2745
|
+
}, _hoisted_9$2, 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
|
|
2738
2746
|
[vue.vModelSelect, $data.per_page]
|
|
2739
2747
|
]),
|
|
2740
|
-
vue.createElementVNode("span",
|
|
2748
|
+
vue.createElementVNode("span", _hoisted_10$1, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
2741
2749
|
]),
|
|
2742
2750
|
($props.pagination_data != null)
|
|
2743
|
-
? (vue.openBlock(), vue.createElementBlock("nav",
|
|
2744
|
-
vue.createElementVNode("ul",
|
|
2751
|
+
? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_11$1, [
|
|
2752
|
+
vue.createElementVNode("ul", _hoisted_12$1, [
|
|
2745
2753
|
vue.createElementVNode("li", {
|
|
2746
2754
|
class: vue.normalizeClass([$options.getActivePage === 1 ? 'disabled' : '' , "page-item"])
|
|
2747
2755
|
}, [
|
|
@@ -2756,14 +2764,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2756
2764
|
key: page
|
|
2757
2765
|
}, [
|
|
2758
2766
|
($options.getActivePage === page)
|
|
2759
|
-
? (vue.openBlock(), vue.createElementBlock("a",
|
|
2767
|
+
? (vue.openBlock(), vue.createElementBlock("a", _hoisted_13$1, vue.toDisplayString(page), 1 /* TEXT */))
|
|
2760
2768
|
: (['..','...'].includes(page))
|
|
2761
|
-
? (vue.openBlock(), vue.createElementBlock("a",
|
|
2769
|
+
? (vue.openBlock(), vue.createElementBlock("a", _hoisted_14$1, vue.toDisplayString(page), 1 /* TEXT */))
|
|
2762
2770
|
: (vue.openBlock(), vue.createElementBlock("a", {
|
|
2763
2771
|
key: 2,
|
|
2764
2772
|
onClick: $event => ($options.changeTableKey('page',page)),
|
|
2765
2773
|
class: "page-link"
|
|
2766
|
-
}, vue.toDisplayString(page), 9 /* TEXT, PROPS */,
|
|
2774
|
+
}, vue.toDisplayString(page), 9 /* TEXT, PROPS */, _hoisted_15$1))
|
|
2767
2775
|
], 2 /* CLASS */))
|
|
2768
2776
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
2769
2777
|
vue.createElementVNode("li", {
|
|
@@ -2778,17 +2786,17 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2778
2786
|
]))
|
|
2779
2787
|
: vue.createCommentVNode("v-if", true)
|
|
2780
2788
|
]))
|
|
2781
|
-
: (vue.openBlock(), vue.createElementBlock("div",
|
|
2789
|
+
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
|
|
2782
2790
|
(this.pagination_data.loading === 1)
|
|
2783
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
2791
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, _hoisted_19$1))
|
|
2784
2792
|
: vue.createCommentVNode("v-if", true),
|
|
2785
2793
|
(!$props.hideCount)
|
|
2786
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
2787
|
-
vue.createElementVNode("span",
|
|
2794
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, [
|
|
2795
|
+
vue.createElementVNode("span", _hoisted_21$1, "Showing " + vue.toDisplayString($props.pagination_data.displayCount) + " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
|
|
2788
2796
|
]))
|
|
2789
2797
|
: vue.createCommentVNode("v-if", true),
|
|
2790
2798
|
(this.pagination_data.loading !== 1 && $props.pagination_data.displayCount < $props.pagination_data.record_count && !$props.hideLoadMore)
|
|
2791
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
2799
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22$1, [
|
|
2792
2800
|
vue.createElementVNode("button", {
|
|
2793
2801
|
class: "btn btn-sm btn-primary mt-1",
|
|
2794
2802
|
onClick: _cache[4] || (_cache[4] = (...args) => ($options.loadMoreRecords && $options.loadMoreRecords(...args)))
|
|
@@ -3214,72 +3222,71 @@ const _hoisted_2$5 = {
|
|
|
3214
3222
|
class: "col-md-4 mb-2"
|
|
3215
3223
|
};
|
|
3216
3224
|
const _hoisted_3$5 = ["disabled"];
|
|
3217
|
-
const _hoisted_4$
|
|
3218
|
-
const _hoisted_5$
|
|
3219
|
-
const _hoisted_6$2 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3225
|
+
const _hoisted_4$4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
|
|
3226
|
+
const _hoisted_5$2 = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3220
3227
|
class: "spinner-border spinner-border-sm",
|
|
3221
3228
|
role: "status",
|
|
3222
3229
|
"aria-hidden": "true"
|
|
3223
3230
|
}, null, -1 /* HOISTED */);
|
|
3224
|
-
const
|
|
3225
|
-
const
|
|
3231
|
+
const _hoisted_6$1 = /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
|
|
3232
|
+
const _hoisted_7$1 = {
|
|
3226
3233
|
key: 1,
|
|
3227
3234
|
class: "row"
|
|
3228
3235
|
};
|
|
3229
|
-
const
|
|
3230
|
-
const
|
|
3231
|
-
const
|
|
3232
|
-
const
|
|
3236
|
+
const _hoisted_8$1 = { class: "col-12 mb-3" };
|
|
3237
|
+
const _hoisted_9$1 = { class: "sh-search-bar" };
|
|
3238
|
+
const _hoisted_10 = ["placeholder"];
|
|
3239
|
+
const _hoisted_11 = {
|
|
3233
3240
|
key: 0,
|
|
3234
3241
|
class: "text-center"
|
|
3235
3242
|
};
|
|
3236
|
-
const
|
|
3243
|
+
const _hoisted_12 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
3237
3244
|
class: "spinner-border",
|
|
3238
3245
|
role: "status"
|
|
3239
3246
|
}, [
|
|
3240
3247
|
/*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
3241
3248
|
], -1 /* HOISTED */);
|
|
3242
|
-
const
|
|
3243
|
-
|
|
3249
|
+
const _hoisted_13 = [
|
|
3250
|
+
_hoisted_12
|
|
3244
3251
|
];
|
|
3245
|
-
const
|
|
3252
|
+
const _hoisted_14 = {
|
|
3246
3253
|
key: 1,
|
|
3247
3254
|
class: "alert alert-danger"
|
|
3248
3255
|
};
|
|
3249
|
-
const
|
|
3250
|
-
const
|
|
3256
|
+
const _hoisted_15 = { colspan: 2 };
|
|
3257
|
+
const _hoisted_16 = {
|
|
3251
3258
|
key: 0,
|
|
3252
3259
|
class: "text-center"
|
|
3253
3260
|
};
|
|
3254
|
-
const
|
|
3261
|
+
const _hoisted_17 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
3255
3262
|
class: "spinner-border",
|
|
3256
3263
|
role: "status"
|
|
3257
3264
|
}, [
|
|
3258
3265
|
/*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
3259
3266
|
], -1 /* HOISTED */);
|
|
3260
|
-
const
|
|
3261
|
-
|
|
3267
|
+
const _hoisted_18 = [
|
|
3268
|
+
_hoisted_17
|
|
3262
3269
|
];
|
|
3263
|
-
const
|
|
3270
|
+
const _hoisted_19 = {
|
|
3264
3271
|
key: 1,
|
|
3265
3272
|
class: "alert alert-danger"
|
|
3266
3273
|
};
|
|
3267
|
-
const
|
|
3268
|
-
const
|
|
3274
|
+
const _hoisted_20 = { colspan: 2 };
|
|
3275
|
+
const _hoisted_21 = { class: "sh-thead" };
|
|
3276
|
+
const _hoisted_22 = ["onClick"];
|
|
3269
3277
|
const _hoisted_23 = ["onClick"];
|
|
3270
3278
|
const _hoisted_24 = ["onClick"];
|
|
3271
|
-
const _hoisted_25 =
|
|
3272
|
-
const _hoisted_26 = {
|
|
3279
|
+
const _hoisted_25 = {
|
|
3273
3280
|
key: 0,
|
|
3274
3281
|
class: "text-capitalize"
|
|
3275
3282
|
};
|
|
3276
|
-
const
|
|
3277
|
-
const
|
|
3283
|
+
const _hoisted_26 = { class: "sh-tbody" };
|
|
3284
|
+
const _hoisted_27 = {
|
|
3278
3285
|
key: 0,
|
|
3279
3286
|
class: "text-center"
|
|
3280
3287
|
};
|
|
3281
|
-
const
|
|
3282
|
-
const
|
|
3288
|
+
const _hoisted_28 = ["colspan"];
|
|
3289
|
+
const _hoisted_29 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
|
|
3283
3290
|
/*#__PURE__*/vue.createElementVNode("div", {
|
|
3284
3291
|
class: "spinner-border",
|
|
3285
3292
|
role: "status"
|
|
@@ -3287,47 +3294,42 @@ const _hoisted_30 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-ce
|
|
|
3287
3294
|
/*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
3288
3295
|
])
|
|
3289
3296
|
], -1 /* HOISTED */);
|
|
3290
|
-
const
|
|
3291
|
-
|
|
3297
|
+
const _hoisted_30 = [
|
|
3298
|
+
_hoisted_29
|
|
3292
3299
|
];
|
|
3293
|
-
const
|
|
3300
|
+
const _hoisted_31 = {
|
|
3294
3301
|
key: 1,
|
|
3295
3302
|
class: "text-center alert alert-danger"
|
|
3296
3303
|
};
|
|
3297
|
-
const
|
|
3298
|
-
const
|
|
3304
|
+
const _hoisted_32 = ["colspan"];
|
|
3305
|
+
const _hoisted_33 = {
|
|
3299
3306
|
key: 2,
|
|
3300
3307
|
class: "text-center alert alert-info no_records"
|
|
3301
3308
|
};
|
|
3302
|
-
const
|
|
3303
|
-
const
|
|
3304
|
-
const
|
|
3305
|
-
const
|
|
3306
|
-
|
|
3307
|
-
_hoisted_37
|
|
3308
|
-
];
|
|
3309
|
-
const _hoisted_39 = ["onClick"];
|
|
3310
|
-
const _hoisted_40 = { key: 1 };
|
|
3311
|
-
const _hoisted_41 = {
|
|
3309
|
+
const _hoisted_34 = ["colspan"];
|
|
3310
|
+
const _hoisted_35 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */);
|
|
3311
|
+
const _hoisted_36 = ["onClick"];
|
|
3312
|
+
const _hoisted_37 = { key: 1 };
|
|
3313
|
+
const _hoisted_38 = {
|
|
3312
3314
|
key: 2,
|
|
3313
3315
|
class: "text-success fw-bold"
|
|
3314
3316
|
};
|
|
3315
|
-
const
|
|
3316
|
-
const
|
|
3317
|
-
const
|
|
3318
|
-
const
|
|
3319
|
-
const
|
|
3317
|
+
const _hoisted_39 = { key: 3 };
|
|
3318
|
+
const _hoisted_40 = ["innerHTML"];
|
|
3319
|
+
const _hoisted_41 = ["innerHTML"];
|
|
3320
|
+
const _hoisted_42 = ["innerHTML"];
|
|
3321
|
+
const _hoisted_43 = {
|
|
3320
3322
|
key: 0,
|
|
3321
3323
|
style: {"white-space":"nowrap"}
|
|
3322
3324
|
};
|
|
3323
|
-
const
|
|
3324
|
-
const
|
|
3325
|
-
const
|
|
3326
|
-
const
|
|
3325
|
+
const _hoisted_44 = ["href"];
|
|
3326
|
+
const _hoisted_45 = ["title", "onClick"];
|
|
3327
|
+
const _hoisted_46 = { key: 5 };
|
|
3328
|
+
const _hoisted_47 = {
|
|
3327
3329
|
key: 0,
|
|
3328
3330
|
class: "text-center"
|
|
3329
3331
|
};
|
|
3330
|
-
const
|
|
3332
|
+
const _hoisted_48 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
|
|
3331
3333
|
/*#__PURE__*/vue.createElementVNode("div", {
|
|
3332
3334
|
class: "spinner-border",
|
|
3333
3335
|
role: "status"
|
|
@@ -3335,39 +3337,39 @@ const _hoisted_51 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-ce
|
|
|
3335
3337
|
/*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
|
|
3336
3338
|
])
|
|
3337
3339
|
], -1 /* HOISTED */);
|
|
3338
|
-
const
|
|
3339
|
-
|
|
3340
|
+
const _hoisted_49 = [
|
|
3341
|
+
_hoisted_48
|
|
3340
3342
|
];
|
|
3341
|
-
const
|
|
3342
|
-
const
|
|
3343
|
+
const _hoisted_50 = { key: 1 };
|
|
3344
|
+
const _hoisted_51 = {
|
|
3343
3345
|
key: 2,
|
|
3344
3346
|
class: "mobile-list-items"
|
|
3345
3347
|
};
|
|
3346
|
-
const
|
|
3347
|
-
const
|
|
3348
|
+
const _hoisted_52 = ["onClick"];
|
|
3349
|
+
const _hoisted_53 = {
|
|
3348
3350
|
key: 0,
|
|
3349
3351
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
3350
3352
|
};
|
|
3351
|
-
const
|
|
3353
|
+
const _hoisted_54 = {
|
|
3352
3354
|
key: 1,
|
|
3353
3355
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
3354
3356
|
};
|
|
3355
|
-
const
|
|
3357
|
+
const _hoisted_55 = {
|
|
3356
3358
|
key: 2,
|
|
3357
3359
|
class: "mb-1 font-weight-bold text-capitalize profile-form-title"
|
|
3358
3360
|
};
|
|
3359
|
-
const
|
|
3360
|
-
const
|
|
3361
|
+
const _hoisted_56 = { key: 1 };
|
|
3362
|
+
const _hoisted_57 = {
|
|
3361
3363
|
key: 2,
|
|
3362
3364
|
class: "text-primary fw-bold"
|
|
3363
3365
|
};
|
|
3364
|
-
const
|
|
3365
|
-
const
|
|
3366
|
-
const
|
|
3367
|
-
const
|
|
3368
|
-
const
|
|
3369
|
-
const
|
|
3370
|
-
const
|
|
3366
|
+
const _hoisted_58 = ["innerHTML"];
|
|
3367
|
+
const _hoisted_59 = ["innerHTML"];
|
|
3368
|
+
const _hoisted_60 = ["innerHTML"];
|
|
3369
|
+
const _hoisted_61 = /*#__PURE__*/vue.createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */);
|
|
3370
|
+
const _hoisted_62 = { key: 0 };
|
|
3371
|
+
const _hoisted_63 = ["href"];
|
|
3372
|
+
const _hoisted_64 = ["title", "onClick"];
|
|
3371
3373
|
|
|
3372
3374
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3373
3375
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
@@ -3384,27 +3386,27 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3384
3386
|
}, [
|
|
3385
3387
|
(!$data.downloading)
|
|
3386
3388
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
3387
|
-
_hoisted_4$
|
|
3388
|
-
|
|
3389
|
+
_hoisted_4$4,
|
|
3390
|
+
vue.createTextVNode(" Export ")
|
|
3389
3391
|
], 64 /* STABLE_FRAGMENT */))
|
|
3390
3392
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
+
_hoisted_5$2,
|
|
3394
|
+
_hoisted_6$1
|
|
3393
3395
|
], 64 /* STABLE_FRAGMENT */))
|
|
3394
3396
|
], 8 /* PROPS */, _hoisted_3$5)
|
|
3395
3397
|
]))
|
|
3396
3398
|
: vue.createCommentVNode("v-if", true),
|
|
3397
3399
|
(!$props.hideSearch)
|
|
3398
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3399
|
-
vue.createElementVNode("div",
|
|
3400
|
-
vue.createElementVNode("div",
|
|
3400
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
|
|
3401
|
+
vue.createElementVNode("div", _hoisted_8$1, [
|
|
3402
|
+
vue.createElementVNode("div", _hoisted_9$1, [
|
|
3401
3403
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
3402
3404
|
type: "search",
|
|
3403
3405
|
onChange: _cache[1] || (_cache[1] = $event => ($options.reloadData(1))),
|
|
3404
3406
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (($data.filter_value) = $event)),
|
|
3405
3407
|
placeholder: $props.searchPlaceholder ? $props.searchPlaceholder : 'Search',
|
|
3406
3408
|
class: "form-control sh-search-input"
|
|
3407
|
-
}, null, 40 /* PROPS, HYDRATE_EVENTS */,
|
|
3409
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_10), [
|
|
3408
3410
|
[vue.vModelText, $data.filter_value]
|
|
3409
3411
|
])
|
|
3410
3412
|
])
|
|
@@ -3414,10 +3416,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3414
3416
|
($options.hasDefaultSlot)
|
|
3415
3417
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
3416
3418
|
($data.loading === 'loading')
|
|
3417
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3419
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, _hoisted_13))
|
|
3418
3420
|
: ($data.loading === 'error')
|
|
3419
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3420
|
-
vue.createElementVNode("span",
|
|
3421
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
3422
|
+
vue.createElementVNode("span", _hoisted_15, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
|
|
3421
3423
|
]))
|
|
3422
3424
|
: vue.createCommentVNode("v-if", true),
|
|
3423
3425
|
($data.loading === 'done')
|
|
@@ -3433,10 +3435,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3433
3435
|
($options.hasRecordsSlot)
|
|
3434
3436
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
3435
3437
|
($data.loading === 'loading')
|
|
3436
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3438
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, _hoisted_18))
|
|
3437
3439
|
: ($data.loading === 'error')
|
|
3438
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3439
|
-
vue.createElementVNode("span",
|
|
3440
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
3441
|
+
vue.createElementVNode("span", _hoisted_20, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
|
|
3440
3442
|
]))
|
|
3441
3443
|
: vue.createCommentVNode("v-if", true),
|
|
3442
3444
|
($data.loading === 'done')
|
|
@@ -3451,7 +3453,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3451
3453
|
key: 4,
|
|
3452
3454
|
class: vue.normalizeClass(["table sh-table", $props.tableHover ? 'table-hover':''])
|
|
3453
3455
|
}, [
|
|
3454
|
-
vue.createElementVNode("thead",
|
|
3456
|
+
vue.createElementVNode("thead", _hoisted_21, [
|
|
3455
3457
|
vue.createElementVNode("tr", null, [
|
|
3456
3458
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.headers, (title) => {
|
|
3457
3459
|
return (vue.openBlock(), vue.createElementBlock("th", {
|
|
@@ -3462,43 +3464,46 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3462
3464
|
key: 0,
|
|
3463
3465
|
class: "text-capitalize",
|
|
3464
3466
|
onClick: $event => ($options.changeKey('order_by',title))
|
|
3465
|
-
}, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */,
|
|
3467
|
+
}, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_22))
|
|
3466
3468
|
: (typeof title === 'function')
|
|
3467
3469
|
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
3468
3470
|
key: 1,
|
|
3469
3471
|
class: "text-capitalize",
|
|
3470
3472
|
onClick: $event => ($options.changeKey('order_by',title))
|
|
3471
|
-
}, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */,
|
|
3473
|
+
}, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
|
|
3472
3474
|
: (vue.openBlock(), vue.createElementBlock("a", {
|
|
3473
3475
|
key: 2,
|
|
3474
3476
|
class: "text-capitalize",
|
|
3475
3477
|
onClick: $event => ($options.changeKey('order_by',title[0]))
|
|
3476
|
-
}, vue.toDisplayString(title[1].replace(/_/g, ' ')), 9 /* TEXT, PROPS */,
|
|
3478
|
+
}, vue.toDisplayString(title[1].replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
3477
3479
|
]))
|
|
3478
3480
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
3479
3481
|
($props.actions)
|
|
3480
|
-
? (vue.openBlock(), vue.createElementBlock("th",
|
|
3482
|
+
? (vue.openBlock(), vue.createElementBlock("th", _hoisted_25, vue.toDisplayString($props.actions.label), 1 /* TEXT */))
|
|
3481
3483
|
: vue.createCommentVNode("v-if", true)
|
|
3482
3484
|
])
|
|
3483
3485
|
]),
|
|
3484
|
-
vue.createElementVNode("tbody",
|
|
3486
|
+
vue.createElementVNode("tbody", _hoisted_26, [
|
|
3485
3487
|
($data.loading === 'loading')
|
|
3486
|
-
? (vue.openBlock(), vue.createElementBlock("tr",
|
|
3488
|
+
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_27, [
|
|
3487
3489
|
vue.createElementVNode("td", {
|
|
3488
3490
|
colspan: $props.headers.length
|
|
3489
|
-
},
|
|
3491
|
+
}, _hoisted_30, 8 /* PROPS */, _hoisted_28)
|
|
3490
3492
|
]))
|
|
3491
3493
|
: ($data.loading === 'error')
|
|
3492
|
-
? (vue.openBlock(), vue.createElementBlock("tr",
|
|
3494
|
+
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_31, [
|
|
3493
3495
|
vue.createElementVNode("td", {
|
|
3494
3496
|
colspan: $props.headers.length
|
|
3495
|
-
}, vue.toDisplayString($data.loading_error), 9 /* TEXT, PROPS */,
|
|
3497
|
+
}, vue.toDisplayString($data.loading_error), 9 /* TEXT, PROPS */, _hoisted_32)
|
|
3496
3498
|
]))
|
|
3497
3499
|
: ($data.records.length === 0)
|
|
3498
|
-
? (vue.openBlock(), vue.createElementBlock("tr",
|
|
3500
|
+
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_33, [
|
|
3499
3501
|
vue.createElementVNode("td", {
|
|
3500
3502
|
colspan: $props.actions ? $props.headers.length + 1 : $props.headers.length
|
|
3501
|
-
},
|
|
3503
|
+
}, [
|
|
3504
|
+
_hoisted_35,
|
|
3505
|
+
vue.createTextVNode(" No records found ")
|
|
3506
|
+
], 8 /* PROPS */, _hoisted_34)
|
|
3502
3507
|
]))
|
|
3503
3508
|
: ($data.loading === 'done')
|
|
3504
3509
|
? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList($data.records, (record, index) => {
|
|
@@ -3519,29 +3524,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3519
3524
|
innerHTML: record[key]
|
|
3520
3525
|
}, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
|
|
3521
3526
|
: ($options.getFieldType(key) === 'numeric')
|
|
3522
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3527
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_37, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
3523
3528
|
: ($options.getFieldType(key) === 'money')
|
|
3524
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3529
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_38, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
3525
3530
|
: ($options.getFieldType(key) === 'date')
|
|
3526
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3531
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_39, vue.toDisplayString($options.formatDate(record[key])), 1 /* TEXT */))
|
|
3527
3532
|
: (typeof key === 'string')
|
|
3528
3533
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3529
3534
|
key: 4,
|
|
3530
3535
|
innerHTML: record[key]
|
|
3531
|
-
}, null, 8 /* PROPS */,
|
|
3536
|
+
}, null, 8 /* PROPS */, _hoisted_40))
|
|
3532
3537
|
: (typeof key === 'function')
|
|
3533
3538
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3534
3539
|
key: 5,
|
|
3535
3540
|
innerHTML: key(record, index)
|
|
3536
|
-
}, null, 8 /* PROPS */,
|
|
3541
|
+
}, null, 8 /* PROPS */, _hoisted_41))
|
|
3537
3542
|
: (vue.openBlock(), vue.createElementBlock("span", {
|
|
3538
3543
|
key: 6,
|
|
3539
3544
|
innerHTML: record[key[0]]
|
|
3540
|
-
}, null, 8 /* PROPS */,
|
|
3545
|
+
}, null, 8 /* PROPS */, _hoisted_42))
|
|
3541
3546
|
]))
|
|
3542
3547
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
3543
3548
|
($props.actions)
|
|
3544
|
-
? (vue.openBlock(), vue.createElementBlock("td",
|
|
3549
|
+
? (vue.openBlock(), vue.createElementBlock("td", _hoisted_43, [
|
|
3545
3550
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.actions.actions, (act) => {
|
|
3546
3551
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
3547
3552
|
key: act.path
|
|
@@ -3564,7 +3569,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3564
3569
|
}, null, 2 /* CLASS */))
|
|
3565
3570
|
: vue.createCommentVNode("v-if", true),
|
|
3566
3571
|
vue.createTextVNode(" " + vue.toDisplayString(act.label), 1 /* TEXT */)
|
|
3567
|
-
], 10 /* CLASS, PROPS */,
|
|
3572
|
+
], 10 /* CLASS, PROPS */, _hoisted_44))
|
|
3568
3573
|
: (act.emits)
|
|
3569
3574
|
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
3570
3575
|
key: 1,
|
|
@@ -3579,7 +3584,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3579
3584
|
}, null, 2 /* CLASS */))
|
|
3580
3585
|
: vue.createCommentVNode("v-if", true),
|
|
3581
3586
|
vue.createTextVNode(" " + vue.toDisplayString(act.label), 1 /* TEXT */)
|
|
3582
|
-
], 10 /* CLASS, PROPS */,
|
|
3587
|
+
], 10 /* CLASS, PROPS */, _hoisted_45))
|
|
3583
3588
|
: (!act.emits)
|
|
3584
3589
|
? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
3585
3590
|
key: 2,
|
|
@@ -3607,20 +3612,20 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3607
3612
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3608
3613
|
]))
|
|
3609
3614
|
: vue.createCommentVNode("v-if", true)
|
|
3610
|
-
], 10 /* CLASS, PROPS */,
|
|
3615
|
+
], 10 /* CLASS, PROPS */, _hoisted_36))
|
|
3611
3616
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3612
3617
|
: vue.createCommentVNode("v-if", true)
|
|
3613
3618
|
])
|
|
3614
3619
|
], 2 /* CLASS */))
|
|
3615
|
-
: (vue.openBlock(), vue.createElementBlock("div",
|
|
3620
|
+
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_46, [
|
|
3616
3621
|
($data.loading === 'loading')
|
|
3617
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3622
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_47, _hoisted_49))
|
|
3618
3623
|
: ($data.loading === 'error')
|
|
3619
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3624
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, [
|
|
3620
3625
|
vue.createElementVNode("span", null, vue.toDisplayString($data.loading_error), 1 /* TEXT */)
|
|
3621
3626
|
]))
|
|
3622
3627
|
: ($data.loading === 'done')
|
|
3623
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3628
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_51, [
|
|
3624
3629
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.records, (record, index) => {
|
|
3625
3630
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
3626
3631
|
key: record.id
|
|
@@ -3635,10 +3640,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3635
3640
|
key: key[0]
|
|
3636
3641
|
}, [
|
|
3637
3642
|
(typeof key === 'string' )
|
|
3638
|
-
? (vue.openBlock(), vue.createElementBlock("p",
|
|
3643
|
+
? (vue.openBlock(), vue.createElementBlock("p", _hoisted_53, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
|
|
3639
3644
|
: (typeof key === 'function')
|
|
3640
|
-
? (vue.openBlock(), vue.createElementBlock("p",
|
|
3641
|
-
: (vue.openBlock(), vue.createElementBlock("p",
|
|
3645
|
+
? (vue.openBlock(), vue.createElementBlock("p", _hoisted_54, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
|
|
3646
|
+
: (vue.openBlock(), vue.createElementBlock("p", _hoisted_55, vue.toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
|
|
3642
3647
|
vue.createElementVNode("span", null, [
|
|
3643
3648
|
(typeof key === 'string' && $props.links && $props.links[key])
|
|
3644
3649
|
? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
@@ -3648,29 +3653,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3648
3653
|
innerHTML: record[key]
|
|
3649
3654
|
}, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
|
|
3650
3655
|
: ($options.getFieldType(key) === 'numeric')
|
|
3651
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3656
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_56, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
3652
3657
|
: ($options.getFieldType(key) === 'money')
|
|
3653
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3658
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_57, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
3654
3659
|
: (typeof key === 'string')
|
|
3655
3660
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3656
3661
|
key: 3,
|
|
3657
3662
|
innerHTML: record[key]
|
|
3658
|
-
}, null, 8 /* PROPS */,
|
|
3663
|
+
}, null, 8 /* PROPS */, _hoisted_58))
|
|
3659
3664
|
: (typeof key === 'function')
|
|
3660
3665
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3661
3666
|
key: 4,
|
|
3662
3667
|
innerHTML: key(record, index )
|
|
3663
|
-
}, null, 8 /* PROPS */,
|
|
3668
|
+
}, null, 8 /* PROPS */, _hoisted_59))
|
|
3664
3669
|
: (vue.openBlock(), vue.createElementBlock("span", {
|
|
3665
3670
|
key: 5,
|
|
3666
3671
|
innerHTML: record[key[0]]
|
|
3667
|
-
}, null, 8 /* PROPS */,
|
|
3672
|
+
}, null, 8 /* PROPS */, _hoisted_60))
|
|
3668
3673
|
]),
|
|
3669
|
-
|
|
3674
|
+
_hoisted_61
|
|
3670
3675
|
], 64 /* STABLE_FRAGMENT */))
|
|
3671
3676
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
3672
3677
|
($props.actions)
|
|
3673
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
3678
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_62, [
|
|
3674
3679
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.actions.actions, (act) => {
|
|
3675
3680
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
3676
3681
|
key: act.path
|
|
@@ -3693,7 +3698,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3693
3698
|
}, null, 2 /* CLASS */))
|
|
3694
3699
|
: vue.createCommentVNode("v-if", true),
|
|
3695
3700
|
vue.createTextVNode(" " + vue.toDisplayString(act.label), 1 /* TEXT */)
|
|
3696
|
-
], 10 /* CLASS, PROPS */,
|
|
3701
|
+
], 10 /* CLASS, PROPS */, _hoisted_63))
|
|
3697
3702
|
: (act.emits)
|
|
3698
3703
|
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
3699
3704
|
key: 1,
|
|
@@ -3708,7 +3713,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3708
3713
|
}, null, 2 /* CLASS */))
|
|
3709
3714
|
: vue.createCommentVNode("v-if", true),
|
|
3710
3715
|
vue.createTextVNode(" " + vue.toDisplayString(act.label), 1 /* TEXT */)
|
|
3711
|
-
], 10 /* CLASS, PROPS */,
|
|
3716
|
+
], 10 /* CLASS, PROPS */, _hoisted_64))
|
|
3712
3717
|
: (!act.emits)
|
|
3713
3718
|
? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
3714
3719
|
key: 2,
|
|
@@ -3736,7 +3741,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3736
3741
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3737
3742
|
]))
|
|
3738
3743
|
: vue.createCommentVNode("v-if", true)
|
|
3739
|
-
], 8 /* PROPS */,
|
|
3744
|
+
], 8 /* PROPS */, _hoisted_52)
|
|
3740
3745
|
], 64 /* STABLE_FRAGMENT */))
|
|
3741
3746
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3742
3747
|
]))
|
|
@@ -3874,8 +3879,8 @@ const _hoisted_1$4 = {
|
|
|
3874
3879
|
};
|
|
3875
3880
|
const _hoisted_2$4 = ["data-bs-target"];
|
|
3876
3881
|
const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-chevron-right float-end" }, null, -1 /* HOISTED */);
|
|
3877
|
-
const _hoisted_4$
|
|
3878
|
-
const _hoisted_5$
|
|
3882
|
+
const _hoisted_4$3 = ["id"];
|
|
3883
|
+
const _hoisted_5$1 = { class: "tab-content" };
|
|
3879
3884
|
|
|
3880
3885
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3881
3886
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
@@ -3926,10 +3931,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3926
3931
|
]))
|
|
3927
3932
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3928
3933
|
], 2 /* CLASS */)
|
|
3929
|
-
], 10 /* CLASS, PROPS */, _hoisted_4$
|
|
3934
|
+
], 10 /* CLASS, PROPS */, _hoisted_4$3)
|
|
3930
3935
|
]))
|
|
3931
3936
|
: vue.createCommentVNode("v-if", true),
|
|
3932
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
3937
|
+
vue.createElementVNode("div", _hoisted_5$1, [
|
|
3933
3938
|
vue.createVNode(_component_router_view, {
|
|
3934
3939
|
currentTab: $data.currentTab,
|
|
3935
3940
|
sharedData: $props.sharedData,
|
|
@@ -3951,7 +3956,7 @@ const _hoisted_2$3 = {
|
|
|
3951
3956
|
role: "presentation"
|
|
3952
3957
|
};
|
|
3953
3958
|
const _hoisted_3$3 = ["onClick"];
|
|
3954
|
-
const _hoisted_4$
|
|
3959
|
+
const _hoisted_4$2 = { class: "tab-content" };
|
|
3955
3960
|
|
|
3956
3961
|
var script$3 = {
|
|
3957
3962
|
__name: 'ShDynamicTabs',
|
|
@@ -3988,7 +3993,7 @@ return (_ctx, _cache) => {
|
|
|
3988
3993
|
]))
|
|
3989
3994
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
3990
3995
|
]),
|
|
3991
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
3996
|
+
vue.createElementVNode("div", _hoisted_4$2, [
|
|
3992
3997
|
(vue.unref(currentTab))
|
|
3993
3998
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), { key: 0 }))
|
|
3994
3999
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -4093,11 +4098,6 @@ const _hoisted_2$2 = {
|
|
|
4093
4098
|
class: "btn btn-info btn-sm"
|
|
4094
4099
|
};
|
|
4095
4100
|
const _hoisted_3$2 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
|
|
4096
|
-
const _hoisted_4$2 = /*#__PURE__*/vue.createTextVNode(" ADD DEPARTMENT");
|
|
4097
|
-
const _hoisted_5$2 = [
|
|
4098
|
-
_hoisted_3$2,
|
|
4099
|
-
_hoisted_4$2
|
|
4100
|
-
];
|
|
4101
4101
|
|
|
4102
4102
|
|
|
4103
4103
|
var script$2 = {
|
|
@@ -4124,7 +4124,10 @@ function departmentAdded (response) {
|
|
|
4124
4124
|
return (_ctx, _cache) => {
|
|
4125
4125
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4126
4126
|
_hoisted_1$2,
|
|
4127
|
-
vue.createElementVNode("a", _hoisted_2$2,
|
|
4127
|
+
vue.createElementVNode("a", _hoisted_2$2, [
|
|
4128
|
+
_hoisted_3$2,
|
|
4129
|
+
vue.createTextVNode(" ADD DEPARTMENT")
|
|
4130
|
+
], 512 /* NEED_PATCH */),
|
|
4128
4131
|
vue.createVNode(script$5, {
|
|
4129
4132
|
headers: ['id','name','description', 'created_at'],
|
|
4130
4133
|
"end-point": "admin/departments/list",
|
|
@@ -4172,11 +4175,6 @@ const _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("a", {
|
|
|
4172
4175
|
const _hoisted_2$1 = { class: "text-primary text-capitalize" };
|
|
4173
4176
|
const _hoisted_3$1 = ["value"];
|
|
4174
4177
|
const _hoisted_4$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */);
|
|
4175
|
-
const _hoisted_5$1 = /*#__PURE__*/vue.createTextVNode(" Submit");
|
|
4176
|
-
const _hoisted_6$1 = [
|
|
4177
|
-
_hoisted_4$1,
|
|
4178
|
-
_hoisted_5$1
|
|
4179
|
-
];
|
|
4180
4178
|
|
|
4181
4179
|
var script$1 = {
|
|
4182
4180
|
__name: 'Department',
|
|
@@ -4351,7 +4349,10 @@ return (_ctx, _cache) => {
|
|
|
4351
4349
|
vue.createElementVNode("button", {
|
|
4352
4350
|
onClick: submitPermissions,
|
|
4353
4351
|
class: "btn btn-info"
|
|
4354
|
-
},
|
|
4352
|
+
}, [
|
|
4353
|
+
_hoisted_4$1,
|
|
4354
|
+
vue.createTextVNode(" Submit")
|
|
4355
|
+
])
|
|
4355
4356
|
], 64 /* STABLE_FRAGMENT */))
|
|
4356
4357
|
: vue.createCommentVNode("v-if", true)
|
|
4357
4358
|
]),
|
|
@@ -4371,27 +4372,26 @@ const _hoisted_1 = {
|
|
|
4371
4372
|
key: 0,
|
|
4372
4373
|
class: "alert alert-info"
|
|
4373
4374
|
};
|
|
4374
|
-
const _hoisted_2 =
|
|
4375
|
-
const _hoisted_3 = {
|
|
4375
|
+
const _hoisted_2 = {
|
|
4376
4376
|
key: 0,
|
|
4377
4377
|
class: "sh-login-section"
|
|
4378
4378
|
};
|
|
4379
|
-
const
|
|
4380
|
-
const
|
|
4381
|
-
const
|
|
4382
|
-
const
|
|
4379
|
+
const _hoisted_3 = { class: "sh-auth-footer" };
|
|
4380
|
+
const _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/vue.createElementVNode("strong", { class: "sh-forgot-link text-primary" }, "Forgotten password?", -1 /* HOISTED */));
|
|
4381
|
+
const _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/vue.createElementVNode("strong", { class: "bi-dot" }, null, -1 /* HOISTED */));
|
|
4382
|
+
const _hoisted_6 = {
|
|
4383
4383
|
key: 1,
|
|
4384
4384
|
class: "sh-register-section"
|
|
4385
4385
|
};
|
|
4386
|
-
const
|
|
4386
|
+
const _hoisted_7 = {
|
|
4387
4387
|
key: 0,
|
|
4388
4388
|
class: "sh-register-title"
|
|
4389
4389
|
};
|
|
4390
|
-
const
|
|
4390
|
+
const _hoisted_8 = {
|
|
4391
4391
|
key: 1,
|
|
4392
4392
|
class: "sh-register-link"
|
|
4393
4393
|
};
|
|
4394
|
-
const
|
|
4394
|
+
const _hoisted_9 = { class: "sh-auth-footer" };
|
|
4395
4395
|
|
|
4396
4396
|
var script = {
|
|
4397
4397
|
__name: 'ShAuth',
|
|
@@ -4426,12 +4426,12 @@ function loginSuccessful(res){
|
|
|
4426
4426
|
return (_ctx, _cache) => {
|
|
4427
4427
|
return (vue.unref(user))
|
|
4428
4428
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
4429
|
-
|
|
4429
|
+
vue.createTextVNode("You are signed is as "),
|
|
4430
4430
|
vue.createElementVNode("strong", null, vue.toDisplayString(vue.unref(user).name), 1 /* TEXT */)
|
|
4431
4431
|
]))
|
|
4432
4432
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
4433
4433
|
(section.value === 'login')
|
|
4434
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
4434
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
4435
4435
|
vue.createVNode(script$9, {
|
|
4436
4436
|
class: "sh-login-form",
|
|
4437
4437
|
fields: ['email','password'],
|
|
@@ -4439,9 +4439,9 @@ return (_ctx, _cache) => {
|
|
|
4439
4439
|
action: vue.unref(loginEndpoint),
|
|
4440
4440
|
"success-callback": loginSuccessful
|
|
4441
4441
|
}, null, 8 /* PROPS */, ["action"]),
|
|
4442
|
-
vue.createElementVNode("div",
|
|
4442
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
4443
|
+
_hoisted_4,
|
|
4443
4444
|
_hoisted_5,
|
|
4444
|
-
_hoisted_6,
|
|
4445
4445
|
vue.createElementVNode("strong", {
|
|
4446
4446
|
onClick: _cache[0] || (_cache[0] = $event => (goToSection('register'))),
|
|
4447
4447
|
class: "sh-register-link text-primary"
|
|
@@ -4450,12 +4450,12 @@ return (_ctx, _cache) => {
|
|
|
4450
4450
|
]))
|
|
4451
4451
|
: vue.createCommentVNode("v-if", true),
|
|
4452
4452
|
(section.value === 'register')
|
|
4453
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
4453
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
4454
4454
|
(vue.unref(registerTitle))
|
|
4455
|
-
? (vue.openBlock(), vue.createElementBlock("h3",
|
|
4455
|
+
? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_7, vue.toDisplayString(vue.unref(registerTitle)), 1 /* TEXT */))
|
|
4456
4456
|
: vue.createCommentVNode("v-if", true),
|
|
4457
4457
|
(vue.unref(registerSubTitle))
|
|
4458
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
4458
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
4459
4459
|
: vue.createCommentVNode("v-if", true),
|
|
4460
4460
|
vue.createVNode(script$9, {
|
|
4461
4461
|
class: "sh-login-form",
|
|
@@ -4464,7 +4464,7 @@ return (_ctx, _cache) => {
|
|
|
4464
4464
|
action: vue.unref(registerEndpoint),
|
|
4465
4465
|
"success-callback": loginSuccessful
|
|
4466
4466
|
}, null, 8 /* PROPS */, ["fields", "action"]),
|
|
4467
|
-
vue.createElementVNode("div",
|
|
4467
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
4468
4468
|
vue.createElementVNode("strong", {
|
|
4469
4469
|
onClick: _cache[1] || (_cache[1] = $event => (goToSection('login'))),
|
|
4470
4470
|
class: "sh-register-link text-primary"
|