bootstrap-vue-wrapper 2.2.1 → 2.3.1

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/index.d.ts CHANGED
@@ -1,16 +1,4 @@
1
- export { default as BsBreadcrumb } from './components/bs-breadcrumb/BsBreadcrumb.vue';
2
- export { default as BsForm } from './components/bs-form/BsForm.vue';
3
- export { default as BsInput } from './components/bs-input/BsInput.vue';
4
- export { default as BsCheckbox } from './components/bs-checkbox/BsCheckbox.vue';
5
- export { default as BsTextarea } from './components/bs-textarea/BsTextarea.vue';
6
- export { default as BsPaginator } from './components/bs-paginator/BsPaginator.vue';
7
- export { default as BsTable } from './components/bs-table/BsTable.vue';
1
+ export * from './ssr-safe';
8
2
  export { default as BsToast } from './components/bs-toast/BsToast.vue';
9
3
  export { default as BsModal } from './components/bs-modal/BsModal.vue';
10
- export { default as BsSelect } from './components/bs-select/BsSelect.vue';
11
- export { default as BsRadio } from './components/bs-radio/BsRadio.vue';
12
4
  export { default as BsOffcanvas } from './components/bs-offcanvas/BsOffcanvas.vue';
13
- export type { default as BreadCrumbItem } from './types/BreadcrumbItem.ts';
14
- export type { default as Option } from './types/Option.ts';
15
- export type { default as Field } from './types/Field.ts';
16
- export { useValidator } from './components/validator/Validator.ts';
package/dist/index.js CHANGED
@@ -5,24 +5,24 @@ import { default as l } from "./components/bs-checkbox/BsCheckbox.vue.js";
5
5
  import { default as u } from "./components/bs-textarea/BsTextarea.vue.js";
6
6
  import { default as p } from "./components/bs-paginator/BsPaginator.vue.js";
7
7
  import { default as c } from "./components/bs-table/BsTable.vue.js";
8
- import { default as i } from "./components/bs-toast/BsToast.vue.js";
9
- import { default as T } from "./components/bs-modal/BsModal.vue.js";
10
- import { default as h } from "./components/bs-select/BsSelect.vue.js";
11
- import { default as v } from "./components/bs-radio/BsRadio.vue.js";
12
- import { default as F } from "./components/bs-offcanvas/BsOffcanvas.vue.js";
13
- import { useValidator as M } from "./components/validator/Validator.js";
8
+ import { default as i } from "./components/bs-select/BsSelect.vue.js";
9
+ import { default as T } from "./components/bs-radio/BsRadio.vue.js";
10
+ import { useValidator as h } from "./components/validator/Validator.js";
11
+ import { default as v } from "./components/bs-toast/BsToast.vue.js";
12
+ import { default as F } from "./components/bs-modal/BsModal.vue.js";
13
+ import { default as M } from "./components/bs-offcanvas/BsOffcanvas.vue.js";
14
14
  export {
15
15
  o as BsBreadcrumb,
16
16
  l as BsCheckbox,
17
17
  t as BsForm,
18
18
  s as BsInput,
19
- T as BsModal,
20
- F as BsOffcanvas,
19
+ F as BsModal,
20
+ M as BsOffcanvas,
21
21
  p as BsPaginator,
22
- v as BsRadio,
23
- h as BsSelect,
22
+ T as BsRadio,
23
+ i as BsSelect,
24
24
  c as BsTable,
25
25
  u as BsTextarea,
26
- i as BsToast,
27
- M as useValidator
26
+ v as BsToast,
27
+ h as useValidator
28
28
  };
@@ -0,0 +1,13 @@
1
+ export { default as BsBreadcrumb } from './components/bs-breadcrumb/BsBreadcrumb.vue';
2
+ export { default as BsForm } from './components/bs-form/BsForm.vue';
3
+ export { default as BsInput } from './components/bs-input/BsInput.vue';
4
+ export { default as BsCheckbox } from './components/bs-checkbox/BsCheckbox.vue';
5
+ export { default as BsTextarea } from './components/bs-textarea/BsTextarea.vue';
6
+ export { default as BsPaginator } from './components/bs-paginator/BsPaginator.vue';
7
+ export { default as BsTable } from './components/bs-table/BsTable.vue';
8
+ export { default as BsSelect } from './components/bs-select/BsSelect.vue';
9
+ export { default as BsRadio } from './components/bs-radio/BsRadio.vue';
10
+ export type { default as BreadCrumbItem } from './types/BreadcrumbItem.ts';
11
+ export type { default as Option } from './types/Option.ts';
12
+ export type { default as Field } from './types/Field.ts';
13
+ export { useValidator } from './components/validator/Validator.ts';
@@ -0,0 +1,22 @@
1
+ import { default as r } from "./components/bs-breadcrumb/BsBreadcrumb.vue.js";
2
+ import { default as t } from "./components/bs-form/BsForm.vue.js";
3
+ import { default as s } from "./components/bs-input/BsInput.vue.js";
4
+ import { default as l } from "./components/bs-checkbox/BsCheckbox.vue.js";
5
+ import { default as u } from "./components/bs-textarea/BsTextarea.vue.js";
6
+ import { default as p } from "./components/bs-paginator/BsPaginator.vue.js";
7
+ import { default as b } from "./components/bs-table/BsTable.vue.js";
8
+ import { default as i } from "./components/bs-select/BsSelect.vue.js";
9
+ import { default as T } from "./components/bs-radio/BsRadio.vue.js";
10
+ import { useValidator as h } from "./components/validator/Validator.js";
11
+ export {
12
+ r as BsBreadcrumb,
13
+ l as BsCheckbox,
14
+ t as BsForm,
15
+ s as BsInput,
16
+ p as BsPaginator,
17
+ T as BsRadio,
18
+ i as BsSelect,
19
+ b as BsTable,
20
+ u as BsTextarea,
21
+ h as useValidator
22
+ };
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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-vue-wrapper",
3
- "version": "2.2.1",
3
+ "version": "2.3.1",
4
4
  "description": "Bootstrap 5 components in Vue3 wrapper.",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,6 +12,10 @@
12
12
  ".": {
13
13
  "import": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts"
15
+ },
16
+ "./ssr-safe": {
17
+ "import": "./dist/ssr-safe.js",
18
+ "types": "./dist/ssr-safe.d.ts"
15
19
  }
16
20
  },
17
21
  "files": [