bootstrap-vue-wrapper 2.1.17 → 2.1.18
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/bootstrap-vue-wrapper.js +135 -127
- package/dist/components/bs-table/BsTable.vue.d.ts +17 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, resolveComponent as
|
|
1
|
+
import { defineComponent as m, resolveComponent as w, openBlock as a, createElementBlock as i, createElementVNode as s, Fragment as b, renderList as y, normalizeClass as h, createBlock as E, withCtx as M, createTextVNode as S, toDisplayString as l, renderSlot as g, ref as C, createCommentVNode as u, mergeProps as k, resolveDirective as H, withDirectives as R, pushScopeId as L, popScopeId as A } from "vue";
|
|
2
2
|
import { useI18n as N } from "vue-i18n";
|
|
3
3
|
import { Toast as P, Modal as B, Offcanvas as V } from "bootstrap";
|
|
4
4
|
const O = m({
|
|
@@ -30,14 +30,14 @@ const O = m({
|
|
|
30
30
|
return r;
|
|
31
31
|
}, _ = { "aria-label": "breadcrumb" }, D = { class: "breadcrumb" }, q = ["textContent"];
|
|
32
32
|
function T(e, t, r, d, v, f) {
|
|
33
|
-
const
|
|
33
|
+
const o = w("router-link");
|
|
34
34
|
return a(), i("nav", _, [
|
|
35
|
-
|
|
35
|
+
s("ol", D, [
|
|
36
36
|
(a(!0), i(b, null, y(e.items, (n, p) => (a(), i("li", {
|
|
37
37
|
key: p,
|
|
38
38
|
class: h(["breadcrumb-item", { active: !e.isRouteAvailable(n) }])
|
|
39
39
|
}, [
|
|
40
|
-
e.isRouteAvailable(n) ? (a(),
|
|
40
|
+
e.isRouteAvailable(n) ? (a(), E(o, {
|
|
41
41
|
key: 0,
|
|
42
42
|
to: n.route
|
|
43
43
|
}, {
|
|
@@ -53,7 +53,7 @@ function T(e, t, r, d, v, f) {
|
|
|
53
53
|
])
|
|
54
54
|
]);
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const dt = /* @__PURE__ */ c(O, [["render", T]]), F = m({
|
|
57
57
|
name: "BsForm",
|
|
58
58
|
emits: ["submit"],
|
|
59
59
|
data() {
|
|
@@ -78,12 +78,12 @@ function z(e, t, r, d, v, f) {
|
|
|
78
78
|
"was-validated": e.submitClicked
|
|
79
79
|
}]),
|
|
80
80
|
novalidate: "",
|
|
81
|
-
onSubmit: t[0] || (t[0] = (...
|
|
81
|
+
onSubmit: t[0] || (t[0] = (...o) => e.onSubmit && e.onSubmit(...o))
|
|
82
82
|
}, [
|
|
83
83
|
g(e.$slots, "default")
|
|
84
84
|
], 34);
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const ut = /* @__PURE__ */ c(F, [["render", z]]);
|
|
87
87
|
function I(e) {
|
|
88
88
|
const { t } = N(), r = C(null);
|
|
89
89
|
function d(n) {
|
|
@@ -124,12 +124,12 @@ function I(e) {
|
|
|
124
124
|
function f(n) {
|
|
125
125
|
n.target !== null && (r.value = v(n.target));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function o() {
|
|
128
128
|
return r.value;
|
|
129
129
|
}
|
|
130
130
|
return {
|
|
131
131
|
onInvalid: f,
|
|
132
|
-
getInvalidMessage:
|
|
132
|
+
getInvalidMessage: o,
|
|
133
133
|
setCustomError: d
|
|
134
134
|
};
|
|
135
135
|
}
|
|
@@ -214,15 +214,15 @@ function Q(e, t, r, d, v, f) {
|
|
|
214
214
|
class: "form-label",
|
|
215
215
|
textContent: l(e.label)
|
|
216
216
|
}, null, 8, U)) : u("", !0),
|
|
217
|
-
|
|
217
|
+
s("input", k({
|
|
218
218
|
id: e.id,
|
|
219
219
|
ref: "inputRef",
|
|
220
220
|
value: e.modelValue,
|
|
221
221
|
class: "form-control"
|
|
222
222
|
}, e.$attrs, {
|
|
223
223
|
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
224
|
-
onInput: t[0] || (t[0] = (...
|
|
225
|
-
onInvalid: t[1] || (t[1] = (...
|
|
224
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
225
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
226
226
|
}), null, 16, G),
|
|
227
227
|
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
228
228
|
key: 1,
|
|
@@ -237,7 +237,7 @@ function Q(e, t, r, d, v, f) {
|
|
|
237
237
|
}, null, 8, K)) : u("", !0)
|
|
238
238
|
], 64);
|
|
239
239
|
}
|
|
240
|
-
const
|
|
240
|
+
const vt = /* @__PURE__ */ c(j, [["render", Q]]), W = m({
|
|
241
241
|
name: "BsCheckbox",
|
|
242
242
|
props: {
|
|
243
243
|
/**
|
|
@@ -340,7 +340,7 @@ function ee(e, t, r, d, v, f) {
|
|
|
340
340
|
return a(), i("div", {
|
|
341
341
|
class: h(["form-check", e.classContainer])
|
|
342
342
|
}, [
|
|
343
|
-
|
|
343
|
+
s("input", k({
|
|
344
344
|
id: e.id,
|
|
345
345
|
ref: "inputRef",
|
|
346
346
|
value: e.modelValue
|
|
@@ -349,8 +349,8 @@ function ee(e, t, r, d, v, f) {
|
|
|
349
349
|
class: "form-check-input",
|
|
350
350
|
checked: e.isChecked,
|
|
351
351
|
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
352
|
-
onInput: t[0] || (t[0] = (...
|
|
353
|
-
onInvalid: t[1] || (t[1] = (...
|
|
352
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
353
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
354
354
|
}), null, 16, X),
|
|
355
355
|
e.label !== void 0 ? (a(), i("label", {
|
|
356
356
|
key: 0,
|
|
@@ -371,7 +371,7 @@ function ee(e, t, r, d, v, f) {
|
|
|
371
371
|
}, null, 8, x)) : u("", !0)
|
|
372
372
|
], 2);
|
|
373
373
|
}
|
|
374
|
-
const
|
|
374
|
+
const ht = /* @__PURE__ */ c(W, [["render", ee]]), te = m({
|
|
375
375
|
name: "BsTextarea",
|
|
376
376
|
props: {
|
|
377
377
|
/**
|
|
@@ -443,8 +443,8 @@ const vt = /* @__PURE__ */ c(W, [["render", ee]]), te = m({
|
|
|
443
443
|
this.validatorEnabled && this.validator.onInvalid(e);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
}), ne = ["for", "textContent"], ae = ["id", "value", "aria-describedby"], ie = ["textContent"],
|
|
447
|
-
function
|
|
446
|
+
}), ne = ["for", "textContent"], ae = ["id", "value", "aria-describedby"], ie = ["textContent"], oe = ["id", "textContent"];
|
|
447
|
+
function se(e, t, r, d, v, f) {
|
|
448
448
|
return a(), i(b, null, [
|
|
449
449
|
e.label !== void 0 ? (a(), i("label", {
|
|
450
450
|
key: 0,
|
|
@@ -452,15 +452,15 @@ function oe(e, t, r, d, v, f) {
|
|
|
452
452
|
class: "form-label",
|
|
453
453
|
textContent: l(e.label)
|
|
454
454
|
}, null, 8, ne)) : u("", !0),
|
|
455
|
-
|
|
455
|
+
s("textarea", k({
|
|
456
456
|
id: e.id,
|
|
457
457
|
ref: "inputRef",
|
|
458
458
|
value: e.modelValue
|
|
459
459
|
}, e.$attrs, {
|
|
460
460
|
class: "form-control",
|
|
461
461
|
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
462
|
-
onInput: t[0] || (t[0] = (...
|
|
463
|
-
onInvalid: t[1] || (t[1] = (...
|
|
462
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
463
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
464
464
|
}), null, 16, ae),
|
|
465
465
|
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
466
466
|
key: 1,
|
|
@@ -472,10 +472,10 @@ function oe(e, t, r, d, v, f) {
|
|
|
472
472
|
id: e.getHintId(),
|
|
473
473
|
class: "form-text",
|
|
474
474
|
textContent: l(e.hint)
|
|
475
|
-
}, null, 8,
|
|
475
|
+
}, null, 8, oe)) : u("", !0)
|
|
476
476
|
], 64);
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const ft = /* @__PURE__ */ c(te, [["render", se]]), le = m({
|
|
479
479
|
name: "BsPaginator",
|
|
480
480
|
props: {
|
|
481
481
|
/**
|
|
@@ -587,59 +587,59 @@ const ht = /* @__PURE__ */ c(te, [["render", oe]]), le = m({
|
|
|
587
587
|
}), re = { class: "pagination" }, de = ["textContent"], ue = ["textContent"], ve = ["onClick", "textContent"], he = ["textContent"], fe = ["textContent"];
|
|
588
588
|
function pe(e, t, r, d, v, f) {
|
|
589
589
|
return a(), i("nav", null, [
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
s("ul", re, [
|
|
591
|
+
s("li", {
|
|
592
592
|
class: h(["page-item page-item-first", { disabled: e.isPageActive(1) }])
|
|
593
593
|
}, [
|
|
594
|
-
|
|
594
|
+
s("div", {
|
|
595
595
|
class: "page-link",
|
|
596
|
-
onClick: t[0] || (t[0] = (
|
|
596
|
+
onClick: t[0] || (t[0] = (o) => e.onPageClick(1)),
|
|
597
597
|
textContent: l(e.firstPageLabel)
|
|
598
598
|
}, null, 8, de)
|
|
599
599
|
], 2),
|
|
600
|
-
|
|
600
|
+
s("li", {
|
|
601
601
|
class: h(["page-item page-item-previous", { disabled: e.isPageActive(1) }])
|
|
602
602
|
}, [
|
|
603
|
-
|
|
603
|
+
s("div", {
|
|
604
604
|
class: "page-link",
|
|
605
|
-
onClick: t[1] || (t[1] = (
|
|
605
|
+
onClick: t[1] || (t[1] = (o) => e.onPageClick(e.currentPage - 1)),
|
|
606
606
|
textContent: l(e.previousPageLabel)
|
|
607
607
|
}, null, 8, ue)
|
|
608
608
|
], 2),
|
|
609
|
-
(a(!0), i(b, null, y(e.getVisiblePages(), (
|
|
609
|
+
(a(!0), i(b, null, y(e.getVisiblePages(), (o, n) => (a(), i("li", {
|
|
610
610
|
key: n,
|
|
611
611
|
class: h(["page-item page-item-number", {
|
|
612
|
-
active: e.isPageActive(
|
|
612
|
+
active: e.isPageActive(o)
|
|
613
613
|
}])
|
|
614
614
|
}, [
|
|
615
|
-
|
|
615
|
+
s("div", {
|
|
616
616
|
class: "page-link",
|
|
617
|
-
onClick: (p) => e.onPageClick(
|
|
618
|
-
textContent: l(
|
|
617
|
+
onClick: (p) => e.onPageClick(o),
|
|
618
|
+
textContent: l(o)
|
|
619
619
|
}, null, 8, ve)
|
|
620
620
|
], 2))), 128)),
|
|
621
|
-
|
|
621
|
+
s("li", {
|
|
622
622
|
class: h(["page-item page-item-next", { disabled: e.isPageActive(e.getPageCount()) }])
|
|
623
623
|
}, [
|
|
624
|
-
|
|
624
|
+
s("div", {
|
|
625
625
|
class: "page-link",
|
|
626
|
-
onClick: t[2] || (t[2] = (
|
|
626
|
+
onClick: t[2] || (t[2] = (o) => e.onPageClick(e.currentPage + 1)),
|
|
627
627
|
textContent: l(e.nextPageLabel)
|
|
628
628
|
}, null, 8, he)
|
|
629
629
|
], 2),
|
|
630
|
-
|
|
630
|
+
s("li", {
|
|
631
631
|
class: h(["page-item page-item-last", { disabled: e.isPageActive(e.getPageCount()) }])
|
|
632
632
|
}, [
|
|
633
|
-
|
|
633
|
+
s("div", {
|
|
634
634
|
class: "page-link",
|
|
635
|
-
onClick: t[3] || (t[3] = (
|
|
635
|
+
onClick: t[3] || (t[3] = (o) => e.onPageClick(e.getPageCount())),
|
|
636
636
|
textContent: l(e.lastPageLabel)
|
|
637
637
|
}, null, 8, fe)
|
|
638
638
|
], 2)
|
|
639
639
|
])
|
|
640
640
|
]);
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const pt = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67"]]), me = m({
|
|
643
643
|
name: "BsTable",
|
|
644
644
|
props: {
|
|
645
645
|
/**
|
|
@@ -690,9 +690,16 @@ const ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67
|
|
|
690
690
|
tdClass: {
|
|
691
691
|
type: String,
|
|
692
692
|
default: void 0
|
|
693
|
+
},
|
|
694
|
+
/**
|
|
695
|
+
* row is clickable
|
|
696
|
+
*/
|
|
697
|
+
rowClickable: {
|
|
698
|
+
type: Boolean,
|
|
699
|
+
default: !1
|
|
693
700
|
}
|
|
694
701
|
},
|
|
695
|
-
emits: ["orderChanged"],
|
|
702
|
+
emits: ["orderChanged", "rowClicked"],
|
|
696
703
|
methods: {
|
|
697
704
|
/**
|
|
698
705
|
* Is order by active by field?
|
|
@@ -742,14 +749,14 @@ const ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67
|
|
|
742
749
|
this.isSortableField(e) && this.$emit("orderChanged", { sortDesc: this.calcSortDesc(e.key), orderBy: e.key });
|
|
743
750
|
}
|
|
744
751
|
}
|
|
745
|
-
}), ce = (e) => (L("data-v-
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
], -1)), ke = { key: 1 }, Ie = ["colspan"], Se = { class: "text-center text-muted small" };
|
|
748
|
-
function
|
|
749
|
-
const
|
|
752
|
+
}), ce = (e) => (L("data-v-fffb8cf0"), e = e(), A(), e), ge = { class: "table" }, be = ["onClick"], $e = { key: 0 }, ye = ["colspan"], Ce = /* @__PURE__ */ ce(() => /* @__PURE__ */ s("div", { class: "d-flex justify-content-center p-2" }, [
|
|
753
|
+
/* @__PURE__ */ s("div", { class: "spinner-border spinner-border-sm" })
|
|
754
|
+
], -1)), ke = { key: 1 }, Ie = ["colspan"], Se = { class: "text-center text-muted small" }, Pe = ["onClick"];
|
|
755
|
+
function Be(e, t, r, d, v, f) {
|
|
756
|
+
const o = H("t");
|
|
750
757
|
return a(), i("table", ge, [
|
|
751
|
-
|
|
752
|
-
|
|
758
|
+
s("thead", null, [
|
|
759
|
+
s("tr", null, [
|
|
753
760
|
(a(!0), i(b, null, y(e.fields, (n) => (a(), i("th", {
|
|
754
761
|
key: n.key,
|
|
755
762
|
class: h({
|
|
@@ -769,9 +776,9 @@ function Pe(e, t, r, d, v, f) {
|
|
|
769
776
|
], 10, be))), 128))
|
|
770
777
|
])
|
|
771
778
|
]),
|
|
772
|
-
|
|
779
|
+
s("tbody", null, [
|
|
773
780
|
e.isLoading ? (a(), i("tr", $e, [
|
|
774
|
-
|
|
781
|
+
s("td", {
|
|
775
782
|
colspan: e.fields.length
|
|
776
783
|
}, [
|
|
777
784
|
g(e.$slots, "loading", {}, () => [
|
|
@@ -779,18 +786,19 @@ function Pe(e, t, r, d, v, f) {
|
|
|
779
786
|
], !0)
|
|
780
787
|
], 8, ye)
|
|
781
788
|
])) : e.items.length === 0 ? (a(), i("tr", ke, [
|
|
782
|
-
|
|
789
|
+
s("td", {
|
|
783
790
|
colspan: e.fields.length
|
|
784
791
|
}, [
|
|
785
792
|
g(e.$slots, "empty", {}, () => [
|
|
786
|
-
R(
|
|
787
|
-
[
|
|
793
|
+
R(s("div", Se, null, 512), [
|
|
794
|
+
[o, "table.empty_text"]
|
|
788
795
|
])
|
|
789
796
|
], !0)
|
|
790
797
|
], 8, Ie)
|
|
791
798
|
])) : (a(!0), i(b, { key: 2 }, y(e.items, (n, p) => (a(), i("tr", {
|
|
792
799
|
key: p,
|
|
793
|
-
class: h(n.trClass)
|
|
800
|
+
class: h([n.trClass || "", { "cursor-pointer": e.rowClickable }]),
|
|
801
|
+
onClick: ($) => e.$emit("rowClicked", n)
|
|
794
802
|
}, [
|
|
795
803
|
(a(!0), i(b, null, y(e.fields, ($) => (a(), i("td", {
|
|
796
804
|
key: $.key,
|
|
@@ -805,11 +813,11 @@ function Pe(e, t, r, d, v, f) {
|
|
|
805
813
|
S(l(n[$.key]), 1)
|
|
806
814
|
], !0)
|
|
807
815
|
], 2))), 128))
|
|
808
|
-
],
|
|
816
|
+
], 10, Pe))), 128))
|
|
809
817
|
])
|
|
810
818
|
]);
|
|
811
819
|
}
|
|
812
|
-
const
|
|
820
|
+
const mt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-fffb8cf0"]]), Ve = m({
|
|
813
821
|
name: "BsToast",
|
|
814
822
|
emits: ["shown", "hidden"],
|
|
815
823
|
mounted() {
|
|
@@ -837,7 +845,7 @@ const pt = /* @__PURE__ */ c(me, [["render", Pe], ["__scopeId", "data-v-b32962df
|
|
|
837
845
|
this.$emit("hidden");
|
|
838
846
|
}
|
|
839
847
|
}
|
|
840
|
-
}),
|
|
848
|
+
}), we = {
|
|
841
849
|
ref: "toastRef",
|
|
842
850
|
class: "toast hide",
|
|
843
851
|
role: "alert",
|
|
@@ -845,11 +853,11 @@ const pt = /* @__PURE__ */ c(me, [["render", Pe], ["__scopeId", "data-v-b32962df
|
|
|
845
853
|
"aria-atomic": "true"
|
|
846
854
|
};
|
|
847
855
|
function Ee(e, t, r, d, v, f) {
|
|
848
|
-
return a(), i("div",
|
|
856
|
+
return a(), i("div", we, [
|
|
849
857
|
g(e.$slots, "default")
|
|
850
858
|
], 512);
|
|
851
859
|
}
|
|
852
|
-
const
|
|
860
|
+
const ct = /* @__PURE__ */ c(Ve, [["render", Ee]]), Me = m({
|
|
853
861
|
name: "BsModal",
|
|
854
862
|
props: {
|
|
855
863
|
/**
|
|
@@ -890,50 +898,50 @@ const mt = /* @__PURE__ */ c(Be, [["render", Ee]]), we = m({
|
|
|
890
898
|
B.getOrCreateInstance(e).hide();
|
|
891
899
|
}
|
|
892
900
|
}
|
|
893
|
-
}),
|
|
901
|
+
}), He = {
|
|
894
902
|
ref: "modalRef",
|
|
895
903
|
class: "modal fade",
|
|
896
904
|
tabindex: "-1"
|
|
897
|
-
},
|
|
905
|
+
}, Re = { class: "modal-content" }, Le = {
|
|
898
906
|
key: 0,
|
|
899
907
|
class: "modal-header"
|
|
900
|
-
},
|
|
908
|
+
}, Ae = ["textContent"], Ne = /* @__PURE__ */ s("button", {
|
|
901
909
|
type: "button",
|
|
902
910
|
class: "btn-close",
|
|
903
911
|
"data-bs-dismiss": "modal"
|
|
904
|
-
}, null, -1),
|
|
912
|
+
}, null, -1), Oe = {
|
|
905
913
|
key: 1,
|
|
906
914
|
class: "modal-body"
|
|
907
|
-
},
|
|
915
|
+
}, _e = {
|
|
908
916
|
key: 2,
|
|
909
917
|
class: "modal-footer"
|
|
910
918
|
};
|
|
911
|
-
function
|
|
912
|
-
return a(), i("div",
|
|
913
|
-
|
|
919
|
+
function De(e, t, r, d, v, f) {
|
|
920
|
+
return a(), i("div", He, [
|
|
921
|
+
s("div", {
|
|
914
922
|
class: h(["modal-dialog", e.classDialog])
|
|
915
923
|
}, [
|
|
916
|
-
|
|
917
|
-
e.hideHeader ? u("", !0) : (a(), i("div",
|
|
924
|
+
s("div", Re, [
|
|
925
|
+
e.hideHeader ? u("", !0) : (a(), i("div", Le, [
|
|
918
926
|
g(e.$slots, "header", {}, () => [
|
|
919
|
-
|
|
927
|
+
s("div", {
|
|
920
928
|
class: "h5 modal-title",
|
|
921
929
|
textContent: l(e.title)
|
|
922
|
-
}, null, 8,
|
|
923
|
-
|
|
930
|
+
}, null, 8, Ae),
|
|
931
|
+
Ne
|
|
924
932
|
])
|
|
925
933
|
])),
|
|
926
|
-
e.hideBody ? u("", !0) : (a(), i("div",
|
|
934
|
+
e.hideBody ? u("", !0) : (a(), i("div", Oe, [
|
|
927
935
|
g(e.$slots, "body")
|
|
928
936
|
])),
|
|
929
|
-
e.hideFooter ? u("", !0) : (a(), i("div",
|
|
937
|
+
e.hideFooter ? u("", !0) : (a(), i("div", _e, [
|
|
930
938
|
g(e.$slots, "footer")
|
|
931
939
|
]))
|
|
932
940
|
])
|
|
933
941
|
], 2)
|
|
934
942
|
], 512);
|
|
935
943
|
}
|
|
936
|
-
const
|
|
944
|
+
const gt = /* @__PURE__ */ c(Me, [["render", De]]), qe = m({
|
|
937
945
|
name: "BsSelect",
|
|
938
946
|
props: {
|
|
939
947
|
/**
|
|
@@ -1019,51 +1027,51 @@ const ct = /* @__PURE__ */ c(we, [["render", _e]]), De = m({
|
|
|
1019
1027
|
this.validatorEnabled && this.validator.onInvalid(e);
|
|
1020
1028
|
}
|
|
1021
1029
|
}
|
|
1022
|
-
}),
|
|
1030
|
+
}), Te = ["for", "textContent"], Fe = ["id", "value", "aria-labelledby"], ze = {
|
|
1023
1031
|
key: 0,
|
|
1024
1032
|
value: "",
|
|
1025
1033
|
disabled: "",
|
|
1026
1034
|
hidden: ""
|
|
1027
|
-
},
|
|
1028
|
-
function
|
|
1035
|
+
}, je = ["value", "disabled"], Ue = ["textContent"], Ge = ["id", "textContent"];
|
|
1036
|
+
function Je(e, t, r, d, v, f) {
|
|
1029
1037
|
return a(), i(b, null, [
|
|
1030
1038
|
e.label !== void 0 ? (a(), i("label", {
|
|
1031
1039
|
key: 0,
|
|
1032
1040
|
for: e.id,
|
|
1033
1041
|
class: "form-label",
|
|
1034
1042
|
textContent: l(e.label)
|
|
1035
|
-
}, null, 8,
|
|
1036
|
-
|
|
1043
|
+
}, null, 8, Te)) : u("", !0),
|
|
1044
|
+
s("select", k({
|
|
1037
1045
|
id: e.id,
|
|
1038
1046
|
ref: "inputRef",
|
|
1039
1047
|
class: "form-select",
|
|
1040
1048
|
value: e.modelValue,
|
|
1041
1049
|
"aria-labelledby": e.hint !== void 0 ? e.getHintId() : void 0
|
|
1042
1050
|
}, e.$attrs, {
|
|
1043
|
-
onInput: t[0] || (t[0] = (...
|
|
1044
|
-
onInvalid: t[1] || (t[1] = (...
|
|
1051
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1052
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1045
1053
|
}), [
|
|
1046
|
-
e.placeholder !== void 0 ? (a(), i("option",
|
|
1047
|
-
(a(!0), i(b, null, y(e.options, (
|
|
1054
|
+
e.placeholder !== void 0 ? (a(), i("option", ze, l(e.placeholder), 1)) : u("", !0),
|
|
1055
|
+
(a(!0), i(b, null, y(e.options, (o, n) => (a(), i("option", {
|
|
1048
1056
|
key: n,
|
|
1049
|
-
value:
|
|
1050
|
-
disabled:
|
|
1051
|
-
}, l(
|
|
1052
|
-
], 16,
|
|
1057
|
+
value: o.value,
|
|
1058
|
+
disabled: o.disabled !== void 0 && o.disabled
|
|
1059
|
+
}, l(o.text), 9, je))), 128))
|
|
1060
|
+
], 16, Fe),
|
|
1053
1061
|
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
1054
1062
|
key: 1,
|
|
1055
1063
|
class: "invalid-feedback",
|
|
1056
1064
|
textContent: l(e.validator.getInvalidMessage())
|
|
1057
|
-
}, null, 8,
|
|
1065
|
+
}, null, 8, Ue)) : u("", !0),
|
|
1058
1066
|
e.hint !== void 0 ? (a(), i("div", {
|
|
1059
1067
|
key: 2,
|
|
1060
1068
|
id: e.getHintId(),
|
|
1061
1069
|
class: "form-text",
|
|
1062
1070
|
textContent: l(e.hint)
|
|
1063
|
-
}, null, 8,
|
|
1071
|
+
}, null, 8, Ge)) : u("", !0)
|
|
1064
1072
|
], 64);
|
|
1065
1073
|
}
|
|
1066
|
-
const
|
|
1074
|
+
const bt = /* @__PURE__ */ c(qe, [["render", Je]]), Ke = m({
|
|
1067
1075
|
name: "BsRadio",
|
|
1068
1076
|
props: {
|
|
1069
1077
|
/**
|
|
@@ -1154,12 +1162,12 @@ const gt = /* @__PURE__ */ c(De, [["render", Ge]]), Je = m({
|
|
|
1154
1162
|
this.validatorEnabled && this.validator.onInvalid(e);
|
|
1155
1163
|
}
|
|
1156
1164
|
}
|
|
1157
|
-
}),
|
|
1158
|
-
function
|
|
1165
|
+
}), Qe = ["id", "value", "checked", "aria-describedby"], We = ["for", "textContent"], Xe = ["textContent"], Ye = ["id", "textContent"];
|
|
1166
|
+
function Ze(e, t, r, d, v, f) {
|
|
1159
1167
|
return a(), i("div", {
|
|
1160
1168
|
class: h(["form-check", e.classContainer])
|
|
1161
1169
|
}, [
|
|
1162
|
-
|
|
1170
|
+
s("input", k({
|
|
1163
1171
|
id: e.id,
|
|
1164
1172
|
ref: "inputRef",
|
|
1165
1173
|
value: e.modelValue
|
|
@@ -1168,29 +1176,29 @@ function Ye(e, t, r, d, v, f) {
|
|
|
1168
1176
|
class: "form-check-input",
|
|
1169
1177
|
checked: e.isChecked,
|
|
1170
1178
|
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
1171
|
-
onInput: t[0] || (t[0] = (...
|
|
1172
|
-
onInvalid: t[1] || (t[1] = (...
|
|
1173
|
-
}), null, 16,
|
|
1179
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1180
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1181
|
+
}), null, 16, Qe),
|
|
1174
1182
|
e.label !== void 0 ? (a(), i("label", {
|
|
1175
1183
|
key: 0,
|
|
1176
1184
|
for: e.id,
|
|
1177
1185
|
class: "form-check-label",
|
|
1178
1186
|
textContent: l(e.label)
|
|
1179
|
-
}, null, 8,
|
|
1187
|
+
}, null, 8, We)) : u("", !0),
|
|
1180
1188
|
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
1181
1189
|
key: 1,
|
|
1182
1190
|
class: "invalid-feedback",
|
|
1183
1191
|
textContent: l(e.validator.getInvalidMessage())
|
|
1184
|
-
}, null, 8,
|
|
1192
|
+
}, null, 8, Xe)) : u("", !0),
|
|
1185
1193
|
e.hint !== void 0 ? (a(), i("div", {
|
|
1186
1194
|
key: 2,
|
|
1187
1195
|
id: e.getHintId(),
|
|
1188
1196
|
class: "form-text",
|
|
1189
1197
|
textContent: l(e.hint)
|
|
1190
|
-
}, null, 8,
|
|
1198
|
+
}, null, 8, Ye)) : u("", !0)
|
|
1191
1199
|
], 2);
|
|
1192
1200
|
}
|
|
1193
|
-
const
|
|
1201
|
+
const $t = /* @__PURE__ */ c(Ke, [["render", Ze]]), xe = m({
|
|
1194
1202
|
name: "BsOffcanvas",
|
|
1195
1203
|
props: {
|
|
1196
1204
|
/**
|
|
@@ -1227,46 +1235,46 @@ const bt = /* @__PURE__ */ c(Je, [["render", Ye]]), Ze = m({
|
|
|
1227
1235
|
this.$emit("hidden");
|
|
1228
1236
|
}
|
|
1229
1237
|
}
|
|
1230
|
-
}),
|
|
1238
|
+
}), et = {
|
|
1231
1239
|
ref: "offcanvasRef",
|
|
1232
1240
|
class: "offcanvas",
|
|
1233
1241
|
tabindex: "-1",
|
|
1234
1242
|
"aria-labelledby": "offcanvasTitle"
|
|
1235
|
-
},
|
|
1243
|
+
}, tt = { class: "offcanvas-header" }, nt = ["textContent"], at = /* @__PURE__ */ s("button", {
|
|
1236
1244
|
type: "button",
|
|
1237
1245
|
class: "btn-close text-reset",
|
|
1238
1246
|
"data-bs-dismiss": "offcanvas"
|
|
1239
|
-
}, null, -1),
|
|
1240
|
-
function
|
|
1241
|
-
return a(), i("div",
|
|
1242
|
-
|
|
1247
|
+
}, null, -1), it = { class: "offcanvas-body" };
|
|
1248
|
+
function ot(e, t, r, d, v, f) {
|
|
1249
|
+
return a(), i("div", et, [
|
|
1250
|
+
s("div", tt, [
|
|
1243
1251
|
g(e.$slots, "header", {}, () => [
|
|
1244
|
-
|
|
1252
|
+
s("div", {
|
|
1245
1253
|
id: "offcanvasTitle",
|
|
1246
1254
|
class: "h5 mb-0",
|
|
1247
1255
|
textContent: l(e.title)
|
|
1248
|
-
}, null, 8,
|
|
1249
|
-
|
|
1256
|
+
}, null, 8, nt),
|
|
1257
|
+
at
|
|
1250
1258
|
])
|
|
1251
1259
|
]),
|
|
1252
|
-
|
|
1260
|
+
s("div", it, [
|
|
1253
1261
|
g(e.$slots, "body")
|
|
1254
1262
|
])
|
|
1255
1263
|
], 512);
|
|
1256
1264
|
}
|
|
1257
|
-
const
|
|
1265
|
+
const yt = /* @__PURE__ */ c(xe, [["render", ot]]);
|
|
1258
1266
|
export {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1267
|
+
dt as BsBreadcrumb,
|
|
1268
|
+
ht as BsCheckbox,
|
|
1269
|
+
ut as BsForm,
|
|
1270
|
+
vt as BsInput,
|
|
1271
|
+
gt as BsModal,
|
|
1272
|
+
yt as BsOffcanvas,
|
|
1273
|
+
pt as BsPaginator,
|
|
1274
|
+
$t as BsRadio,
|
|
1275
|
+
bt as BsSelect,
|
|
1276
|
+
mt as BsTable,
|
|
1277
|
+
ft as BsTextarea,
|
|
1278
|
+
ct as BsToast,
|
|
1271
1279
|
I as useValidator
|
|
1272
1280
|
};
|
|
@@ -50,6 +50,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
type: StringConstructor;
|
|
51
51
|
default: undefined;
|
|
52
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* row is clickable
|
|
55
|
+
*/
|
|
56
|
+
rowClickable: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
53
60
|
}, unknown, unknown, {}, {
|
|
54
61
|
/**
|
|
55
62
|
* Is order by active by field?
|
|
@@ -84,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
91
|
* Table head clicked.
|
|
85
92
|
*/
|
|
86
93
|
onHeadClick(field: Field): void;
|
|
87
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "orderChanged"[], "orderChanged", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("orderChanged" | "rowClicked")[], "orderChanged" | "rowClicked", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
95
|
/**
|
|
89
96
|
* Field list
|
|
90
97
|
*/
|
|
@@ -134,13 +141,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
141
|
type: StringConstructor;
|
|
135
142
|
default: undefined;
|
|
136
143
|
};
|
|
144
|
+
/**
|
|
145
|
+
* row is clickable
|
|
146
|
+
*/
|
|
147
|
+
rowClickable: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
137
151
|
}>> & {
|
|
138
152
|
onOrderChanged?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
139
154
|
}, {
|
|
140
155
|
isLoading: boolean;
|
|
141
156
|
orderBy: string;
|
|
142
157
|
sortDesc: boolean;
|
|
143
158
|
thClass: string;
|
|
144
159
|
tdClass: string;
|
|
160
|
+
rowClickable: boolean;
|
|
145
161
|
}, {}>;
|
|
146
162
|
export default _default;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-link[data-v-ff85ae67]{cursor:pointer}.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67],.page-item-number[data-v-ff85ae67]:not(.active){display:none}@media (min-width: 576px){.page-item-number[data-v-ff85ae67]:not(.active){display:block}}@media (min-width: 992px){.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67]{display:block}}.cursor-pointer[data-v-
|
|
1
|
+
.page-link[data-v-ff85ae67]{cursor:pointer}.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67],.page-item-number[data-v-ff85ae67]:not(.active){display:none}@media (min-width: 576px){.page-item-number[data-v-ff85ae67]:not(.active){display:block}}@media (min-width: 992px){.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67]{display:block}}.cursor-pointer[data-v-fffb8cf0]{cursor:pointer}
|