bootstrap-vue-wrapper 2.2.2 → 2.3.2

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,77 +1,85 @@
1
- import h from "./BsTable.vue2.js";
2
- import { resolveDirective as y, openBlock as s, createElementBlock as o, createElementVNode as r, Fragment as d, renderList as c, normalizeClass as n, renderSlot as a, createTextVNode as p, toDisplayString as u, createCommentVNode as m, withDirectives as v, pushScopeId as C, popScopeId as b } from "vue";
1
+ import y from "./BsTable.vue2.js";
2
+ import { resolveDirective as v, openBlock as t, createElementBlock as o, createElementVNode as r, Fragment as d, renderList as c, normalizeClass as a, renderSlot as n, createTextVNode as p, toDisplayString as u, createCommentVNode as h, withDirectives as m, pushScopeId as C, popScopeId as _ } from "vue";
3
3
  import "./BsTable.vue3.js";
4
- import _ from "../../_virtual/_plugin-vue_export-helper.js";
5
- const $ = (e) => (C("data-v-536f72ab"), e = e(), b(), e), f = { class: "table" }, g = ["onClick"], S = { key: 0 }, w = ["colspan"], B = /* @__PURE__ */ $(() => /* @__PURE__ */ r("div", { class: "d-flex justify-content-center p-2" }, [
4
+ import $ from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const b = (e) => (C("data-v-17dfe1d3"), e = e(), _(), e), f = { class: "table" }, g = ["onClick"], w = { key: 0 }, S = ["colspan"], B = /* @__PURE__ */ b(() => /* @__PURE__ */ r("div", { class: "d-flex justify-content-center p-2" }, [
6
6
  /* @__PURE__ */ r("div", { class: "spinner-border spinner-border-sm" })
7
- ], -1)), I = { key: 1 }, D = ["colspan"], N = { class: "text-center text-muted small" }, V = ["data-id", "onClick"];
8
- function A(e, E, F, L, O, T) {
9
- const k = y("t");
10
- return s(), o("table", f, [
7
+ ], -1)), D = { key: 1 }, I = ["colspan"], N = { class: "text-center text-muted small" }, V = ["data-id", "onClick"], A = { key: 0 }, E = ["colspan"];
8
+ function F(e, L, O, T, j, z) {
9
+ const k = v("t");
10
+ return t(), o("table", f, [
11
11
  r("thead", null, [
12
12
  r("tr", null, [
13
- (s(!0), o(d, null, c(e.fields, (t) => (s(), o("th", {
14
- key: t.key,
15
- class: n({
16
- "cursor-pointer": e.isSortableField(t),
17
- "text-decoration-underline": e.isActiveOrderBy(t.key),
13
+ (t(!0), o(d, null, c(e.fields, (s) => (t(), o("th", {
14
+ key: s.key,
15
+ class: a({
16
+ "cursor-pointer": e.isSortableField(s),
17
+ "text-decoration-underline": e.isActiveOrderBy(s.key),
18
18
  thClass: e.thClass
19
19
  }),
20
- onClick: (i) => e.onHeadClick(t)
20
+ onClick: (i) => e.onHeadClick(s)
21
21
  }, [
22
- a(e.$slots, "tr", {}, () => [
23
- p(u(t.label) + " ", 1),
24
- e.isActiveOrderBy(t.key) && e.sortDesc !== void 0 ? (s(), o("i", {
22
+ n(e.$slots, "tr", {}, () => [
23
+ p(u(s.label) + " ", 1),
24
+ e.isActiveOrderBy(s.key) && e.sortDesc !== void 0 ? (t(), o("i", {
25
25
  key: 0,
26
- class: n(e.getSortIconClass())
27
- }, null, 2)) : m("", !0)
26
+ class: a(e.getSortIconClass())
27
+ }, null, 2)) : h("", !0)
28
28
  ], !0)
29
29
  ], 10, g))), 128))
30
30
  ])
31
31
  ]),
32
32
  r("tbody", null, [
33
- e.isLoading ? (s(), o("tr", S, [
33
+ e.isLoading ? (t(), o("tr", w, [
34
34
  r("td", {
35
35
  colspan: e.fields.length
36
36
  }, [
37
- a(e.$slots, "loading", {}, () => [
37
+ n(e.$slots, "loading", {}, () => [
38
38
  B
39
39
  ], !0)
40
- ], 8, w)
41
- ])) : e.items.length === 0 ? (s(), o("tr", I, [
40
+ ], 8, S)
41
+ ])) : e.items.length === 0 ? (t(), o("tr", D, [
42
42
  r("td", {
43
43
  colspan: e.fields.length
44
44
  }, [
45
- a(e.$slots, "empty", {}, () => [
46
- v(r("div", N, null, 512), [
45
+ n(e.$slots, "empty", {}, () => [
46
+ m(r("div", N, null, 512), [
47
47
  [k, "table.empty_text"]
48
48
  ])
49
49
  ], !0)
50
- ], 8, D)
51
- ])) : (s(!0), o(d, { key: 2 }, c(e.items, (t, i) => (s(), o("tr", {
52
- key: i,
53
- class: n([t.trClass || "", { "cursor-pointer": e.rowClickable }]),
54
- "data-id": t.id,
55
- onClick: (l) => e.$emit("rowClicked", t)
56
- }, [
57
- (s(!0), o(d, null, c(e.fields, (l) => (s(), o("td", {
58
- key: l.key,
59
- class: n(e.tdClass)
50
+ ], 8, I)
51
+ ])) : (t(!0), o(d, { key: 2 }, c(e.items, (s, i) => (t(), o(d, { key: i }, [
52
+ r("tr", {
53
+ class: a([s.trClass || "", { "cursor-pointer": e.rowClickable }]),
54
+ "data-id": s.id,
55
+ onClick: (l) => e.$emit("rowClicked", s)
60
56
  }, [
61
- a(e.$slots, "td", {
62
- key: i,
63
- field: l.key,
64
- row: t,
65
- value: l.key in t ? t[l.key] : null
66
- }, () => [
67
- p(u(t[l.key]), 1)
68
- ], !0)
69
- ], 2))), 128))
70
- ], 10, V))), 128))
57
+ (t(!0), o(d, null, c(e.fields, (l) => (t(), o("td", {
58
+ key: l.key,
59
+ class: a(e.tdClass)
60
+ }, [
61
+ n(e.$slots, "td", {
62
+ key: i,
63
+ field: l.key,
64
+ row: s,
65
+ value: l.key in s ? s[l.key] : null
66
+ }, () => [
67
+ p(u(s[l.key]), 1)
68
+ ], !0)
69
+ ], 2))), 128))
70
+ ], 10, V),
71
+ s._showRowDetails ? (t(), o("tr", A, [
72
+ r("td", {
73
+ colspan: e.fields.length
74
+ }, [
75
+ n(e.$slots, "row-details", { row: s }, void 0, !0)
76
+ ], 8, E)
77
+ ])) : h("", !0)
78
+ ], 64))), 128))
71
79
  ])
72
80
  ]);
73
81
  }
74
- const G = /* @__PURE__ */ _(h, [["render", A], ["__scopeId", "data-v-536f72ab"]]);
82
+ const J = /* @__PURE__ */ $(y, [["render", F], ["__scopeId", "data-v-17dfe1d3"]]);
75
83
  export {
76
- G as default
84
+ J as default
77
85
  };
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-536f72ab]{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-17dfe1d3]{cursor:pointer}
@@ -2,6 +2,7 @@ export default interface BreadcrumbItem {
2
2
  route?: {
3
3
  name: string;
4
4
  query?: string;
5
+ params?: Record<string, string | number>;
5
6
  };
6
7
  title: string;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-vue-wrapper",
3
- "version": "2.2.2",
3
+ "version": "2.3.2",
4
4
  "description": "Bootstrap 5 components in Vue3 wrapper.",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",