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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, resolveComponent as E, openBlock as a, createElementBlock as i, createElementVNode as o, Fragment as b, renderList as y, normalizeClass as h, createBlock as w, 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";
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 s = E("router-link");
33
+ const o = w("router-link");
34
34
  return a(), i("nav", _, [
35
- o("ol", D, [
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(), w(s, {
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 rt = /* @__PURE__ */ c(O, [["render", T]]), F = m({
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] = (...s) => e.onSubmit && e.onSubmit(...s))
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 dt = /* @__PURE__ */ c(F, [["render", z]]);
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 s() {
127
+ function o() {
128
128
  return r.value;
129
129
  }
130
130
  return {
131
131
  onInvalid: f,
132
- getInvalidMessage: s,
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
- o("input", k({
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] = (...s) => e.onInput && e.onInput(...s)),
225
- onInvalid: t[1] || (t[1] = (...s) => e.onInvalid && e.onInvalid(...s))
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 ut = /* @__PURE__ */ c(j, [["render", Q]]), W = m({
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
- o("input", k({
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] = (...s) => e.onInput && e.onInput(...s)),
353
- onInvalid: t[1] || (t[1] = (...s) => e.onInvalid && e.onInvalid(...s))
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 vt = /* @__PURE__ */ c(W, [["render", ee]]), te = m({
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"], se = ["id", "textContent"];
447
- function oe(e, t, r, d, v, f) {
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
- o("textarea", k({
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] = (...s) => e.onInput && e.onInput(...s)),
463
- onInvalid: t[1] || (t[1] = (...s) => e.onInvalid && e.onInvalid(...s))
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, se)) : u("", !0)
475
+ }, null, 8, oe)) : u("", !0)
476
476
  ], 64);
477
477
  }
478
- const ht = /* @__PURE__ */ c(te, [["render", oe]]), le = m({
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
- o("ul", re, [
591
- o("li", {
590
+ s("ul", re, [
591
+ s("li", {
592
592
  class: h(["page-item page-item-first", { disabled: e.isPageActive(1) }])
593
593
  }, [
594
- o("div", {
594
+ s("div", {
595
595
  class: "page-link",
596
- onClick: t[0] || (t[0] = (s) => e.onPageClick(1)),
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
- o("li", {
600
+ s("li", {
601
601
  class: h(["page-item page-item-previous", { disabled: e.isPageActive(1) }])
602
602
  }, [
603
- o("div", {
603
+ s("div", {
604
604
  class: "page-link",
605
- onClick: t[1] || (t[1] = (s) => e.onPageClick(e.currentPage - 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(), (s, n) => (a(), i("li", {
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(s)
612
+ active: e.isPageActive(o)
613
613
  }])
614
614
  }, [
615
- o("div", {
615
+ s("div", {
616
616
  class: "page-link",
617
- onClick: (p) => e.onPageClick(s),
618
- textContent: l(s)
617
+ onClick: (p) => e.onPageClick(o),
618
+ textContent: l(o)
619
619
  }, null, 8, ve)
620
620
  ], 2))), 128)),
621
- o("li", {
621
+ s("li", {
622
622
  class: h(["page-item page-item-next", { disabled: e.isPageActive(e.getPageCount()) }])
623
623
  }, [
624
- o("div", {
624
+ s("div", {
625
625
  class: "page-link",
626
- onClick: t[2] || (t[2] = (s) => e.onPageClick(e.currentPage + 1)),
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
- o("li", {
630
+ s("li", {
631
631
  class: h(["page-item page-item-last", { disabled: e.isPageActive(e.getPageCount()) }])
632
632
  }, [
633
- o("div", {
633
+ s("div", {
634
634
  class: "page-link",
635
- onClick: t[3] || (t[3] = (s) => e.onPageClick(e.getPageCount())),
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 ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67"]]), me = m({
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-b32962df"), e = e(), A(), e), ge = { class: "table" }, be = ["onClick"], $e = { key: 0 }, ye = ["colspan"], Ce = /* @__PURE__ */ ce(() => /* @__PURE__ */ o("div", { class: "d-flex justify-content-center p-2" }, [
746
- /* @__PURE__ */ o("div", { class: "spinner-border spinner-border-sm" })
747
- ], -1)), ke = { key: 1 }, Ie = ["colspan"], Se = { class: "text-center text-muted small" };
748
- function Pe(e, t, r, d, v, f) {
749
- const s = H("t");
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
- o("thead", null, [
752
- o("tr", null, [
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
- o("tbody", null, [
779
+ s("tbody", null, [
773
780
  e.isLoading ? (a(), i("tr", $e, [
774
- o("td", {
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
- o("td", {
789
+ s("td", {
783
790
  colspan: e.fields.length
784
791
  }, [
785
792
  g(e.$slots, "empty", {}, () => [
786
- R(o("div", Se, null, 512), [
787
- [s, "table.empty_text"]
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
- ], 2))), 128))
816
+ ], 10, Pe))), 128))
809
817
  ])
810
818
  ]);
811
819
  }
812
- const pt = /* @__PURE__ */ c(me, [["render", Pe], ["__scopeId", "data-v-b32962df"]]), Be = m({
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
- }), Ve = {
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", Ve, [
856
+ return a(), i("div", we, [
849
857
  g(e.$slots, "default")
850
858
  ], 512);
851
859
  }
852
- const mt = /* @__PURE__ */ c(Be, [["render", Ee]]), we = m({
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
- }), Me = {
901
+ }), He = {
894
902
  ref: "modalRef",
895
903
  class: "modal fade",
896
904
  tabindex: "-1"
897
- }, He = { class: "modal-content" }, Re = {
905
+ }, Re = { class: "modal-content" }, Le = {
898
906
  key: 0,
899
907
  class: "modal-header"
900
- }, Le = ["textContent"], Ae = /* @__PURE__ */ o("button", {
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), Ne = {
912
+ }, null, -1), Oe = {
905
913
  key: 1,
906
914
  class: "modal-body"
907
- }, Oe = {
915
+ }, _e = {
908
916
  key: 2,
909
917
  class: "modal-footer"
910
918
  };
911
- function _e(e, t, r, d, v, f) {
912
- return a(), i("div", Me, [
913
- o("div", {
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
- o("div", He, [
917
- e.hideHeader ? u("", !0) : (a(), i("div", Re, [
924
+ s("div", Re, [
925
+ e.hideHeader ? u("", !0) : (a(), i("div", Le, [
918
926
  g(e.$slots, "header", {}, () => [
919
- o("div", {
927
+ s("div", {
920
928
  class: "h5 modal-title",
921
929
  textContent: l(e.title)
922
- }, null, 8, Le),
923
- Ae
930
+ }, null, 8, Ae),
931
+ Ne
924
932
  ])
925
933
  ])),
926
- e.hideBody ? u("", !0) : (a(), i("div", Ne, [
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", Oe, [
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 ct = /* @__PURE__ */ c(we, [["render", _e]]), De = m({
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
- }), qe = ["for", "textContent"], Te = ["id", "value", "aria-labelledby"], Fe = {
1030
+ }), Te = ["for", "textContent"], Fe = ["id", "value", "aria-labelledby"], ze = {
1023
1031
  key: 0,
1024
1032
  value: "",
1025
1033
  disabled: "",
1026
1034
  hidden: ""
1027
- }, ze = ["value", "disabled"], je = ["textContent"], Ue = ["id", "textContent"];
1028
- function Ge(e, t, r, d, v, f) {
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, qe)) : u("", !0),
1036
- o("select", k({
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] = (...s) => e.onInput && e.onInput(...s)),
1044
- onInvalid: t[1] || (t[1] = (...s) => e.onInvalid && e.onInvalid(...s))
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", Fe, l(e.placeholder), 1)) : u("", !0),
1047
- (a(!0), i(b, null, y(e.options, (s, n) => (a(), i("option", {
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: s.value,
1050
- disabled: s.disabled !== void 0 && s.disabled
1051
- }, l(s.text), 9, ze))), 128))
1052
- ], 16, Te),
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, je)) : u("", !0),
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, Ue)) : u("", !0)
1071
+ }, null, 8, Ge)) : u("", !0)
1064
1072
  ], 64);
1065
1073
  }
1066
- const gt = /* @__PURE__ */ c(De, [["render", Ge]]), Je = m({
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
- }), Ke = ["id", "value", "checked", "aria-describedby"], Qe = ["for", "textContent"], We = ["textContent"], Xe = ["id", "textContent"];
1158
- function Ye(e, t, r, d, v, f) {
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
- o("input", k({
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] = (...s) => e.onInput && e.onInput(...s)),
1172
- onInvalid: t[1] || (t[1] = (...s) => e.onInvalid && e.onInvalid(...s))
1173
- }), null, 16, Ke),
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, Qe)) : u("", !0),
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, We)) : u("", !0),
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, Xe)) : u("", !0)
1198
+ }, null, 8, Ye)) : u("", !0)
1191
1199
  ], 2);
1192
1200
  }
1193
- const bt = /* @__PURE__ */ c(Je, [["render", Ye]]), Ze = m({
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
- }), xe = {
1238
+ }), et = {
1231
1239
  ref: "offcanvasRef",
1232
1240
  class: "offcanvas",
1233
1241
  tabindex: "-1",
1234
1242
  "aria-labelledby": "offcanvasTitle"
1235
- }, et = { class: "offcanvas-header" }, tt = ["textContent"], nt = /* @__PURE__ */ o("button", {
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), at = { class: "offcanvas-body" };
1240
- function it(e, t, r, d, v, f) {
1241
- return a(), i("div", xe, [
1242
- o("div", et, [
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
- o("div", {
1252
+ s("div", {
1245
1253
  id: "offcanvasTitle",
1246
1254
  class: "h5 mb-0",
1247
1255
  textContent: l(e.title)
1248
- }, null, 8, tt),
1249
- nt
1256
+ }, null, 8, nt),
1257
+ at
1250
1258
  ])
1251
1259
  ]),
1252
- o("div", at, [
1260
+ s("div", it, [
1253
1261
  g(e.$slots, "body")
1254
1262
  ])
1255
1263
  ], 512);
1256
1264
  }
1257
- const $t = /* @__PURE__ */ c(Ze, [["render", it]]);
1265
+ const yt = /* @__PURE__ */ c(xe, [["render", ot]]);
1258
1266
  export {
1259
- rt as BsBreadcrumb,
1260
- vt as BsCheckbox,
1261
- dt as BsForm,
1262
- ut as BsInput,
1263
- ct as BsModal,
1264
- $t as BsOffcanvas,
1265
- ft as BsPaginator,
1266
- bt as BsRadio,
1267
- gt as BsSelect,
1268
- pt as BsTable,
1269
- ht as BsTextarea,
1270
- mt as BsToast,
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-b32962df]{cursor:pointer}
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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-vue-wrapper",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "description": "Bootstrap 5 components in Vue3 wrapper.",
5
5
  "module": "./dist/bootstrap-vue-wrapper.js",
6
6
  "types": "./dist/index.d.ts",