bootstrap-vue-wrapper 2.1.17 → 2.1.19
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 +136 -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-536f72ab"), 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 = ["data-id", "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,20 @@ 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
|
+
"data-id": n.id,
|
|
802
|
+
onClick: ($) => e.$emit("rowClicked", n)
|
|
794
803
|
}, [
|
|
795
804
|
(a(!0), i(b, null, y(e.fields, ($) => (a(), i("td", {
|
|
796
805
|
key: $.key,
|
|
@@ -805,11 +814,11 @@ function Pe(e, t, r, d, v, f) {
|
|
|
805
814
|
S(l(n[$.key]), 1)
|
|
806
815
|
], !0)
|
|
807
816
|
], 2))), 128))
|
|
808
|
-
],
|
|
817
|
+
], 10, Pe))), 128))
|
|
809
818
|
])
|
|
810
819
|
]);
|
|
811
820
|
}
|
|
812
|
-
const
|
|
821
|
+
const mt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-536f72ab"]]), Ve = m({
|
|
813
822
|
name: "BsToast",
|
|
814
823
|
emits: ["shown", "hidden"],
|
|
815
824
|
mounted() {
|
|
@@ -837,7 +846,7 @@ const pt = /* @__PURE__ */ c(me, [["render", Pe], ["__scopeId", "data-v-b32962df
|
|
|
837
846
|
this.$emit("hidden");
|
|
838
847
|
}
|
|
839
848
|
}
|
|
840
|
-
}),
|
|
849
|
+
}), we = {
|
|
841
850
|
ref: "toastRef",
|
|
842
851
|
class: "toast hide",
|
|
843
852
|
role: "alert",
|
|
@@ -845,11 +854,11 @@ const pt = /* @__PURE__ */ c(me, [["render", Pe], ["__scopeId", "data-v-b32962df
|
|
|
845
854
|
"aria-atomic": "true"
|
|
846
855
|
};
|
|
847
856
|
function Ee(e, t, r, d, v, f) {
|
|
848
|
-
return a(), i("div",
|
|
857
|
+
return a(), i("div", we, [
|
|
849
858
|
g(e.$slots, "default")
|
|
850
859
|
], 512);
|
|
851
860
|
}
|
|
852
|
-
const
|
|
861
|
+
const ct = /* @__PURE__ */ c(Ve, [["render", Ee]]), Me = m({
|
|
853
862
|
name: "BsModal",
|
|
854
863
|
props: {
|
|
855
864
|
/**
|
|
@@ -890,50 +899,50 @@ const mt = /* @__PURE__ */ c(Be, [["render", Ee]]), we = m({
|
|
|
890
899
|
B.getOrCreateInstance(e).hide();
|
|
891
900
|
}
|
|
892
901
|
}
|
|
893
|
-
}),
|
|
902
|
+
}), He = {
|
|
894
903
|
ref: "modalRef",
|
|
895
904
|
class: "modal fade",
|
|
896
905
|
tabindex: "-1"
|
|
897
|
-
},
|
|
906
|
+
}, Re = { class: "modal-content" }, Le = {
|
|
898
907
|
key: 0,
|
|
899
908
|
class: "modal-header"
|
|
900
|
-
},
|
|
909
|
+
}, Ae = ["textContent"], Ne = /* @__PURE__ */ s("button", {
|
|
901
910
|
type: "button",
|
|
902
911
|
class: "btn-close",
|
|
903
912
|
"data-bs-dismiss": "modal"
|
|
904
|
-
}, null, -1),
|
|
913
|
+
}, null, -1), Oe = {
|
|
905
914
|
key: 1,
|
|
906
915
|
class: "modal-body"
|
|
907
|
-
},
|
|
916
|
+
}, _e = {
|
|
908
917
|
key: 2,
|
|
909
918
|
class: "modal-footer"
|
|
910
919
|
};
|
|
911
|
-
function
|
|
912
|
-
return a(), i("div",
|
|
913
|
-
|
|
920
|
+
function De(e, t, r, d, v, f) {
|
|
921
|
+
return a(), i("div", He, [
|
|
922
|
+
s("div", {
|
|
914
923
|
class: h(["modal-dialog", e.classDialog])
|
|
915
924
|
}, [
|
|
916
|
-
|
|
917
|
-
e.hideHeader ? u("", !0) : (a(), i("div",
|
|
925
|
+
s("div", Re, [
|
|
926
|
+
e.hideHeader ? u("", !0) : (a(), i("div", Le, [
|
|
918
927
|
g(e.$slots, "header", {}, () => [
|
|
919
|
-
|
|
928
|
+
s("div", {
|
|
920
929
|
class: "h5 modal-title",
|
|
921
930
|
textContent: l(e.title)
|
|
922
|
-
}, null, 8,
|
|
923
|
-
|
|
931
|
+
}, null, 8, Ae),
|
|
932
|
+
Ne
|
|
924
933
|
])
|
|
925
934
|
])),
|
|
926
|
-
e.hideBody ? u("", !0) : (a(), i("div",
|
|
935
|
+
e.hideBody ? u("", !0) : (a(), i("div", Oe, [
|
|
927
936
|
g(e.$slots, "body")
|
|
928
937
|
])),
|
|
929
|
-
e.hideFooter ? u("", !0) : (a(), i("div",
|
|
938
|
+
e.hideFooter ? u("", !0) : (a(), i("div", _e, [
|
|
930
939
|
g(e.$slots, "footer")
|
|
931
940
|
]))
|
|
932
941
|
])
|
|
933
942
|
], 2)
|
|
934
943
|
], 512);
|
|
935
944
|
}
|
|
936
|
-
const
|
|
945
|
+
const gt = /* @__PURE__ */ c(Me, [["render", De]]), qe = m({
|
|
937
946
|
name: "BsSelect",
|
|
938
947
|
props: {
|
|
939
948
|
/**
|
|
@@ -1019,51 +1028,51 @@ const ct = /* @__PURE__ */ c(we, [["render", _e]]), De = m({
|
|
|
1019
1028
|
this.validatorEnabled && this.validator.onInvalid(e);
|
|
1020
1029
|
}
|
|
1021
1030
|
}
|
|
1022
|
-
}),
|
|
1031
|
+
}), Te = ["for", "textContent"], Fe = ["id", "value", "aria-labelledby"], ze = {
|
|
1023
1032
|
key: 0,
|
|
1024
1033
|
value: "",
|
|
1025
1034
|
disabled: "",
|
|
1026
1035
|
hidden: ""
|
|
1027
|
-
},
|
|
1028
|
-
function
|
|
1036
|
+
}, je = ["value", "disabled"], Ue = ["textContent"], Ge = ["id", "textContent"];
|
|
1037
|
+
function Je(e, t, r, d, v, f) {
|
|
1029
1038
|
return a(), i(b, null, [
|
|
1030
1039
|
e.label !== void 0 ? (a(), i("label", {
|
|
1031
1040
|
key: 0,
|
|
1032
1041
|
for: e.id,
|
|
1033
1042
|
class: "form-label",
|
|
1034
1043
|
textContent: l(e.label)
|
|
1035
|
-
}, null, 8,
|
|
1036
|
-
|
|
1044
|
+
}, null, 8, Te)) : u("", !0),
|
|
1045
|
+
s("select", k({
|
|
1037
1046
|
id: e.id,
|
|
1038
1047
|
ref: "inputRef",
|
|
1039
1048
|
class: "form-select",
|
|
1040
1049
|
value: e.modelValue,
|
|
1041
1050
|
"aria-labelledby": e.hint !== void 0 ? e.getHintId() : void 0
|
|
1042
1051
|
}, e.$attrs, {
|
|
1043
|
-
onInput: t[0] || (t[0] = (...
|
|
1044
|
-
onInvalid: t[1] || (t[1] = (...
|
|
1052
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1053
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1045
1054
|
}), [
|
|
1046
|
-
e.placeholder !== void 0 ? (a(), i("option",
|
|
1047
|
-
(a(!0), i(b, null, y(e.options, (
|
|
1055
|
+
e.placeholder !== void 0 ? (a(), i("option", ze, l(e.placeholder), 1)) : u("", !0),
|
|
1056
|
+
(a(!0), i(b, null, y(e.options, (o, n) => (a(), i("option", {
|
|
1048
1057
|
key: n,
|
|
1049
|
-
value:
|
|
1050
|
-
disabled:
|
|
1051
|
-
}, l(
|
|
1052
|
-
], 16,
|
|
1058
|
+
value: o.value,
|
|
1059
|
+
disabled: o.disabled !== void 0 && o.disabled
|
|
1060
|
+
}, l(o.text), 9, je))), 128))
|
|
1061
|
+
], 16, Fe),
|
|
1053
1062
|
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
1054
1063
|
key: 1,
|
|
1055
1064
|
class: "invalid-feedback",
|
|
1056
1065
|
textContent: l(e.validator.getInvalidMessage())
|
|
1057
|
-
}, null, 8,
|
|
1066
|
+
}, null, 8, Ue)) : u("", !0),
|
|
1058
1067
|
e.hint !== void 0 ? (a(), i("div", {
|
|
1059
1068
|
key: 2,
|
|
1060
1069
|
id: e.getHintId(),
|
|
1061
1070
|
class: "form-text",
|
|
1062
1071
|
textContent: l(e.hint)
|
|
1063
|
-
}, null, 8,
|
|
1072
|
+
}, null, 8, Ge)) : u("", !0)
|
|
1064
1073
|
], 64);
|
|
1065
1074
|
}
|
|
1066
|
-
const
|
|
1075
|
+
const bt = /* @__PURE__ */ c(qe, [["render", Je]]), Ke = m({
|
|
1067
1076
|
name: "BsRadio",
|
|
1068
1077
|
props: {
|
|
1069
1078
|
/**
|
|
@@ -1154,12 +1163,12 @@ const gt = /* @__PURE__ */ c(De, [["render", Ge]]), Je = m({
|
|
|
1154
1163
|
this.validatorEnabled && this.validator.onInvalid(e);
|
|
1155
1164
|
}
|
|
1156
1165
|
}
|
|
1157
|
-
}),
|
|
1158
|
-
function
|
|
1166
|
+
}), Qe = ["id", "value", "checked", "aria-describedby"], We = ["for", "textContent"], Xe = ["textContent"], Ye = ["id", "textContent"];
|
|
1167
|
+
function Ze(e, t, r, d, v, f) {
|
|
1159
1168
|
return a(), i("div", {
|
|
1160
1169
|
class: h(["form-check", e.classContainer])
|
|
1161
1170
|
}, [
|
|
1162
|
-
|
|
1171
|
+
s("input", k({
|
|
1163
1172
|
id: e.id,
|
|
1164
1173
|
ref: "inputRef",
|
|
1165
1174
|
value: e.modelValue
|
|
@@ -1168,29 +1177,29 @@ function Ye(e, t, r, d, v, f) {
|
|
|
1168
1177
|
class: "form-check-input",
|
|
1169
1178
|
checked: e.isChecked,
|
|
1170
1179
|
"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,
|
|
1180
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1181
|
+
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1182
|
+
}), null, 16, Qe),
|
|
1174
1183
|
e.label !== void 0 ? (a(), i("label", {
|
|
1175
1184
|
key: 0,
|
|
1176
1185
|
for: e.id,
|
|
1177
1186
|
class: "form-check-label",
|
|
1178
1187
|
textContent: l(e.label)
|
|
1179
|
-
}, null, 8,
|
|
1188
|
+
}, null, 8, We)) : u("", !0),
|
|
1180
1189
|
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
1181
1190
|
key: 1,
|
|
1182
1191
|
class: "invalid-feedback",
|
|
1183
1192
|
textContent: l(e.validator.getInvalidMessage())
|
|
1184
|
-
}, null, 8,
|
|
1193
|
+
}, null, 8, Xe)) : u("", !0),
|
|
1185
1194
|
e.hint !== void 0 ? (a(), i("div", {
|
|
1186
1195
|
key: 2,
|
|
1187
1196
|
id: e.getHintId(),
|
|
1188
1197
|
class: "form-text",
|
|
1189
1198
|
textContent: l(e.hint)
|
|
1190
|
-
}, null, 8,
|
|
1199
|
+
}, null, 8, Ye)) : u("", !0)
|
|
1191
1200
|
], 2);
|
|
1192
1201
|
}
|
|
1193
|
-
const
|
|
1202
|
+
const $t = /* @__PURE__ */ c(Ke, [["render", Ze]]), xe = m({
|
|
1194
1203
|
name: "BsOffcanvas",
|
|
1195
1204
|
props: {
|
|
1196
1205
|
/**
|
|
@@ -1227,46 +1236,46 @@ const bt = /* @__PURE__ */ c(Je, [["render", Ye]]), Ze = m({
|
|
|
1227
1236
|
this.$emit("hidden");
|
|
1228
1237
|
}
|
|
1229
1238
|
}
|
|
1230
|
-
}),
|
|
1239
|
+
}), et = {
|
|
1231
1240
|
ref: "offcanvasRef",
|
|
1232
1241
|
class: "offcanvas",
|
|
1233
1242
|
tabindex: "-1",
|
|
1234
1243
|
"aria-labelledby": "offcanvasTitle"
|
|
1235
|
-
},
|
|
1244
|
+
}, tt = { class: "offcanvas-header" }, nt = ["textContent"], at = /* @__PURE__ */ s("button", {
|
|
1236
1245
|
type: "button",
|
|
1237
1246
|
class: "btn-close text-reset",
|
|
1238
1247
|
"data-bs-dismiss": "offcanvas"
|
|
1239
|
-
}, null, -1),
|
|
1240
|
-
function
|
|
1241
|
-
return a(), i("div",
|
|
1242
|
-
|
|
1248
|
+
}, null, -1), it = { class: "offcanvas-body" };
|
|
1249
|
+
function ot(e, t, r, d, v, f) {
|
|
1250
|
+
return a(), i("div", et, [
|
|
1251
|
+
s("div", tt, [
|
|
1243
1252
|
g(e.$slots, "header", {}, () => [
|
|
1244
|
-
|
|
1253
|
+
s("div", {
|
|
1245
1254
|
id: "offcanvasTitle",
|
|
1246
1255
|
class: "h5 mb-0",
|
|
1247
1256
|
textContent: l(e.title)
|
|
1248
|
-
}, null, 8,
|
|
1249
|
-
|
|
1257
|
+
}, null, 8, nt),
|
|
1258
|
+
at
|
|
1250
1259
|
])
|
|
1251
1260
|
]),
|
|
1252
|
-
|
|
1261
|
+
s("div", it, [
|
|
1253
1262
|
g(e.$slots, "body")
|
|
1254
1263
|
])
|
|
1255
1264
|
], 512);
|
|
1256
1265
|
}
|
|
1257
|
-
const
|
|
1266
|
+
const yt = /* @__PURE__ */ c(xe, [["render", ot]]);
|
|
1258
1267
|
export {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1268
|
+
dt as BsBreadcrumb,
|
|
1269
|
+
ht as BsCheckbox,
|
|
1270
|
+
ut as BsForm,
|
|
1271
|
+
vt as BsInput,
|
|
1272
|
+
gt as BsModal,
|
|
1273
|
+
yt as BsOffcanvas,
|
|
1274
|
+
pt as BsPaginator,
|
|
1275
|
+
$t as BsRadio,
|
|
1276
|
+
bt as BsSelect,
|
|
1277
|
+
mt as BsTable,
|
|
1278
|
+
ft as BsTextarea,
|
|
1279
|
+
ct as BsToast,
|
|
1271
1280
|
I as useValidator
|
|
1272
1281
|
};
|
|
@@ -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-536f72ab]{cursor:pointer}
|