bootstrap-vue-wrapper 3.0.10 → 3.0.11

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 +1 @@
1
- .page-link[data-v-f98dc134]{cursor:pointer}.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134],.page-item-number[data-v-f98dc134]:not(.active){display:none}@media(min-width:576px){.page-item-number[data-v-f98dc134]:not(.active){display:block}}@media(min-width:992px){.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134]{display:block}}.cursor-pointer[data-v-4b67cfc2]{cursor:pointer}
1
+ .page-link[data-v-f98dc134]{cursor:pointer}.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134],.page-item-number[data-v-f98dc134]:not(.active){display:none}@media(min-width:576px){.page-item-number[data-v-f98dc134]:not(.active){display:block}}@media(min-width:992px){.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134]{display:block}}.cursor-pointer[data-v-f3847220]{cursor:pointer}.bs-skeleton-line[data-v-f3847220]{display:block;width:100%;height:.85em;border-radius:999px;margin:.25rem 0;--sk-base: color-mix(in srgb, var(--bs-body-color) 10%, transparent);--sk-shine: color-mix(in srgb, var(--bs-body-color) 18%, transparent);background-image:linear-gradient(90deg,var(--sk-base) 0%,var(--sk-shine) 20%,var(--sk-base) 40%,var(--sk-base) 100%);background-size:200% 100%;background-position:100% 0;animation:bs-skeleton-shimmer-f3847220 1.15s ease-in-out infinite}@supports not (color: color-mix(in srgb,black,white)){.bs-skeleton-line[data-v-f3847220]{background-image:linear-gradient(90deg,#00000014,#00000024 20%,#00000014 40% 100%)}}@keyframes bs-skeleton-shimmer-f3847220{to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.bs-skeleton-line[data-v-f3847220]{animation:none}}
@@ -70,6 +70,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
70
70
  type: StringConstructor;
71
71
  default: string;
72
72
  };
73
+ /**
74
+ * Use skeleton loading instead of spinner when isLoading is true
75
+ */
76
+ skeletonLoading: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
73
80
  }>, {}, {}, {}, {
74
81
  /**
75
82
  * Is order by active by field?
@@ -173,6 +180,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
173
180
  type: StringConstructor;
174
181
  default: string;
175
182
  };
183
+ /**
184
+ * Use skeleton loading instead of spinner when isLoading is true
185
+ */
186
+ skeletonLoading: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
176
190
  }>> & Readonly<{
177
191
  onOrderChanged?: ((...args: any[]) => any) | undefined;
178
192
  onRowClicked?: ((...args: any[]) => any) | undefined;
@@ -186,5 +200,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
186
200
  emptyText: string;
187
201
  sortAscIconClass: string;
188
202
  sortDescIconClass: string;
203
+ skeletonLoading: boolean;
189
204
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
190
205
  export default _default;
@@ -1,86 +1,92 @@
1
1
  import h from "./BsTable.vue2.js";
2
- import { openBlock as t, createElementBlock as o, createElementVNode as r, Fragment as a, renderList as u, normalizeClass as d, renderSlot as l, createTextVNode as y, toDisplayString as c, createCommentVNode as p } from "vue";
2
+ import { openBlock as t, createElementBlock as o, createElementVNode as n, Fragment as l, renderList as p, normalizeClass as i, renderSlot as d, createTextVNode as c, toDisplayString as y, createCommentVNode as u } from "vue";
3
3
  /* empty css */
4
4
  import C from "../../_virtual/_plugin-vue_export-helper.js";
5
- const m = { class: "table" }, v = ["onClick"], $ = { key: 0 }, b = ["colspan"], g = { key: 1 }, f = ["colspan"], w = ["textContent"], B = ["data-id", "onClick"], S = { key: 0 }, T = ["colspan"];
6
- function _(e, k, D, N, V, A) {
5
+ const m = { class: "table" }, v = ["onClick"], g = { key: 0 }, $ = ["colspan"], b = { key: 1 }, f = ["colspan"], w = ["textContent"], L = ["data-id", "onClick"], B = { key: 1 }, S = { key: 0 }, T = ["colspan"];
6
+ function D(e, a, N, V, A, E) {
7
7
  return t(), o("table", m, [
8
- r("thead", null, [
9
- r("tr", null, [
10
- (t(!0), o(a, null, u(e.fields, (s) => (t(), o("th", {
8
+ n("thead", null, [
9
+ n("tr", null, [
10
+ (t(!0), o(l, null, p(e.fields, (s) => (t(), o("th", {
11
11
  key: s.key,
12
- class: d({
12
+ class: i({
13
13
  "cursor-pointer": e.isSortableField(s),
14
14
  "active-order-by": e.isActiveOrderBy(s.key),
15
15
  thClass: e.thClass
16
16
  }),
17
- onClick: (i) => e.onHeadClick(s)
17
+ onClick: (k) => e.onHeadClick(s)
18
18
  }, [
19
- l(e.$slots, "tr", {}, () => [
20
- y(c(s.label) + " ", 1),
19
+ d(e.$slots, "tr", {}, () => [
20
+ c(y(s.label) + " ", 1),
21
21
  e.isActiveOrderBy(s.key) && e.sortDesc !== void 0 ? (t(), o("i", {
22
22
  key: 0,
23
- class: d(e.getSortIconClass())
24
- }, null, 2)) : p("", !0)
23
+ class: i(e.getSortIconClass())
24
+ }, null, 2)) : u("", !0)
25
25
  ], !0)
26
26
  ], 10, v))), 128))
27
27
  ])
28
28
  ]),
29
- r("tbody", null, [
30
- e.isLoading ? (t(), o("tr", $, [
31
- r("td", {
29
+ n("tbody", null, [
30
+ e.isLoading && !e.skeletonLoading ? (t(), o("tr", g, [
31
+ n("td", {
32
32
  colspan: e.fields.length
33
33
  }, [
34
- l(e.$slots, "loading", {}, () => [
35
- k[0] || (k[0] = r("div", { class: "d-flex justify-content-center p-2" }, [
36
- r("div", { class: "spinner-border spinner-border-sm" })
34
+ d(e.$slots, "loading", {}, () => [
35
+ a[0] || (a[0] = n("div", { class: "d-flex justify-content-center p-2" }, [
36
+ n("div", { class: "spinner-border spinner-border-sm" })
37
37
  ], -1))
38
38
  ], !0)
39
- ], 8, b)
40
- ])) : e.items.length === 0 ? (t(), o("tr", g, [
41
- r("td", {
39
+ ], 8, $)
40
+ ])) : e.items.length === 0 ? (t(), o("tr", b, [
41
+ n("td", {
42
42
  colspan: e.fields.length
43
43
  }, [
44
- l(e.$slots, "empty", {}, () => [
44
+ d(e.$slots, "empty", {}, () => [
45
45
  e.emptyText !== void 0 ? (t(), o("div", {
46
46
  key: 0,
47
47
  class: "text-center text-muted small",
48
- textContent: c(e.emptyText)
49
- }, null, 8, w)) : p("", !0)
48
+ textContent: y(e.emptyText)
49
+ }, null, 8, w)) : u("", !0)
50
50
  ], !0)
51
51
  ], 8, f)
52
- ])) : (t(!0), o(a, { key: 2 }, u(e.items, (s, i) => (t(), o(a, { key: i }, [
53
- r("tr", {
54
- class: d([s.trClass || "", { "cursor-pointer": e.rowClickable }]),
52
+ ])) : (t(!0), o(l, { key: 2 }, p(e.items, (s, k) => (t(), o(l, { key: k }, [
53
+ n("tr", {
54
+ class: i([s.trClass || "", { "cursor-pointer": e.rowClickable }]),
55
55
  "data-id": s.id,
56
- onClick: (n) => e.$emit("rowClicked", s)
56
+ onClick: (r) => e.$emit("rowClicked", s)
57
57
  }, [
58
- (t(!0), o(a, null, u(e.fields, (n) => (t(), o("td", {
59
- key: n.key,
60
- class: d(n.tdClass || e.tdClass)
58
+ (t(!0), o(l, null, p(e.fields, (r) => (t(), o(l, {
59
+ key: r.key
61
60
  }, [
62
- l(e.$slots, "td", {
63
- key: i,
64
- field: n.key,
65
- row: s,
66
- value: n.key in s ? s[n.key] : null
67
- }, () => [
68
- y(c(s[n.key]), 1)
69
- ], !0)
70
- ], 2))), 128))
71
- ], 10, B),
72
- s._showRowDetails ? (t(), o("tr", S, [
73
- r("td", {
61
+ e.isLoading ? e.skeletonLoading ? (t(), o("td", B, [...a[1] || (a[1] = [
62
+ n("div", { class: "bs-skeleton-line" }, null, -1)
63
+ ])])) : u("", !0) : (t(), o("td", {
64
+ key: 0,
65
+ class: i(r.tdClass || e.tdClass)
66
+ }, [
67
+ d(e.$slots, "td", {
68
+ key: k,
69
+ field: r.key,
70
+ row: s,
71
+ value: r.key in s ? s[r.key] : null
72
+ }, () => [
73
+ c(y(s[r.key]), 1)
74
+ ], !0)
75
+ ], 2))
76
+ ], 64))), 128))
77
+ ], 10, L),
78
+ s._showRowDetails && !e.isLoading ? (t(), o("tr", S, [
79
+ n("td", {
74
80
  colspan: e.fields.length
75
81
  }, [
76
- l(e.$slots, "row-details", { row: s }, void 0, !0)
82
+ d(e.$slots, "row-details", { row: s }, void 0, !0)
77
83
  ], 8, T)
78
- ])) : p("", !0)
84
+ ])) : u("", !0)
79
85
  ], 64))), 128))
80
86
  ])
81
87
  ]);
82
88
  }
83
- const O = /* @__PURE__ */ C(h, [["render", _], ["__scopeId", "data-v-4b67cfc2"]]);
89
+ const z = /* @__PURE__ */ C(h, [["render", D], ["__scopeId", "data-v-f3847220"]]);
84
90
  export {
85
- O as default
91
+ z as default
86
92
  };
@@ -70,6 +70,13 @@ const s = t({
70
70
  sortDescIconClass: {
71
71
  type: String,
72
72
  default: "bi bi-caret-up-fill"
73
+ },
74
+ /**
75
+ * Use skeleton loading instead of spinner when isLoading is true
76
+ */
77
+ skeletonLoading: {
78
+ type: Boolean,
79
+ default: !1
73
80
  }
74
81
  },
75
82
  emits: ["orderChanged", "rowClicked"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-vue-wrapper",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "Bootstrap 5 components in Vue3 wrapper.",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",