bootstrap-vue-wrapper 2.1.3 → 2.1.5

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.
Files changed (33) hide show
  1. package/dist/bootstrap-vue-wrapper.js +26 -1282
  2. package/dist/bootstrap-vue-wrapper10.js +51 -0
  3. package/dist/bootstrap-vue-wrapper11.js +50 -0
  4. package/dist/bootstrap-vue-wrapper12.js +43 -0
  5. package/dist/bootstrap-vue-wrapper13.js +34 -0
  6. package/dist/bootstrap-vue-wrapper14.js +54 -0
  7. package/dist/bootstrap-vue-wrapper15.js +27 -0
  8. package/dist/bootstrap-vue-wrapper16.js +9 -0
  9. package/dist/bootstrap-vue-wrapper17.js +23 -0
  10. package/dist/bootstrap-vue-wrapper18.js +78 -0
  11. package/dist/bootstrap-vue-wrapper19.js +104 -0
  12. package/dist/bootstrap-vue-wrapper2.js +32 -0
  13. package/dist/bootstrap-vue-wrapper20.js +78 -0
  14. package/dist/bootstrap-vue-wrapper21.js +114 -0
  15. package/dist/bootstrap-vue-wrapper22.js +1 -0
  16. package/dist/bootstrap-vue-wrapper23.js +108 -0
  17. package/dist/bootstrap-vue-wrapper24.js +1 -0
  18. package/dist/bootstrap-vue-wrapper25.js +34 -0
  19. package/dist/bootstrap-vue-wrapper26.js +59 -0
  20. package/dist/bootstrap-vue-wrapper27.js +92 -0
  21. package/dist/bootstrap-vue-wrapper28.js +97 -0
  22. package/dist/bootstrap-vue-wrapper29.js +43 -0
  23. package/dist/bootstrap-vue-wrapper3.js +18 -0
  24. package/dist/bootstrap-vue-wrapper4.js +39 -0
  25. package/dist/bootstrap-vue-wrapper5.js +43 -0
  26. package/dist/bootstrap-vue-wrapper6.js +39 -0
  27. package/dist/bootstrap-vue-wrapper7.js +63 -0
  28. package/dist/bootstrap-vue-wrapper8.js +75 -0
  29. package/dist/bootstrap-vue-wrapper9.js +19 -0
  30. package/dist/style.css +1 -1
  31. package/package.json +1 -1
  32. package/dist/bootstrap-vue-wrapper.umd.cjs +0 -1
  33. package/dist/components/bs-paginator/index.d.ts +0 -2
@@ -0,0 +1,51 @@
1
+ import l from "./bootstrap-vue-wrapper26.js";
2
+ import { openBlock as o, createElementBlock as t, createElementVNode as s, normalizeClass as i, renderSlot as d, toDisplayString as n, createCommentVNode as a } from "vue";
3
+ import r from "./bootstrap-vue-wrapper16.js";
4
+ const c = {
5
+ ref: "modalRef",
6
+ class: "modal fade",
7
+ tabindex: "-1",
8
+ "aria-hidden": "true"
9
+ }, m = { class: "modal-content" }, h = {
10
+ key: 0,
11
+ class: "modal-header"
12
+ }, _ = ["textContent"], f = /* @__PURE__ */ s("button", {
13
+ type: "button",
14
+ class: "btn-close",
15
+ "data-bs-dismiss": "modal"
16
+ }, null, -1), p = {
17
+ key: 1,
18
+ class: "modal-body"
19
+ }, u = {
20
+ key: 2,
21
+ class: "modal-footer"
22
+ };
23
+ function y(e, b, v, $, k, B) {
24
+ return o(), t("div", c, [
25
+ s("div", {
26
+ class: i(["modal-dialog", e.classDialog])
27
+ }, [
28
+ s("div", m, [
29
+ e.hideHeader ? a("", !0) : (o(), t("div", h, [
30
+ d(e.$slots, "header", {}, () => [
31
+ s("div", {
32
+ class: "h5 modal-title",
33
+ textContent: n(e.title)
34
+ }, null, 8, _),
35
+ f
36
+ ])
37
+ ])),
38
+ e.hideBody ? a("", !0) : (o(), t("div", p, [
39
+ d(e.$slots, "body")
40
+ ])),
41
+ e.hideFooter ? a("", !0) : (o(), t("div", u, [
42
+ d(e.$slots, "footer")
43
+ ]))
44
+ ])
45
+ ], 2)
46
+ ], 512);
47
+ }
48
+ const E = /* @__PURE__ */ r(l, [["render", y]]);
49
+ export {
50
+ E as default
51
+ };
@@ -0,0 +1,50 @@
1
+ import s from "./bootstrap-vue-wrapper27.js";
2
+ import { openBlock as t, createElementBlock as n, Fragment as d, toDisplayString as l, createCommentVNode as a, createElementVNode as u, mergeProps as v, renderList as p } from "vue";
3
+ import m from "./bootstrap-vue-wrapper16.js";
4
+ const f = ["for", "textContent"], b = ["id", "value", "aria-labelledby"], I = {
5
+ key: 0,
6
+ value: "",
7
+ disabled: "",
8
+ hidden: ""
9
+ }, g = ["value"], h = ["textContent"], k = ["id", "textContent"];
10
+ function y(e, i, C, $, B, E) {
11
+ return t(), n(d, null, [
12
+ e.label !== void 0 ? (t(), n("label", {
13
+ key: 0,
14
+ for: e.id,
15
+ class: "form-label",
16
+ textContent: l(e.label)
17
+ }, null, 8, f)) : a("", !0),
18
+ u("select", v({
19
+ id: e.id,
20
+ ref: "inputRef",
21
+ class: "form-select",
22
+ value: e.modelValue,
23
+ "aria-labelledby": e.hint !== void 0 ? e.getHintId() : void 0
24
+ }, e.$attrs, {
25
+ onInput: i[0] || (i[0] = (...o) => e.onInput && e.onInput(...o)),
26
+ onInvalid: i[1] || (i[1] = (...o) => e.onInvalid && e.onInvalid(...o))
27
+ }), [
28
+ e.placeholder !== void 0 ? (t(), n("option", I, l(e.placeholder), 1)) : a("", !0),
29
+ (t(!0), n(d, null, p(e.options, (o, r) => (t(), n("option", {
30
+ key: r,
31
+ value: o.value
32
+ }, l(o.text), 9, g))), 128))
33
+ ], 16, b),
34
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (t(), n("div", {
35
+ key: 1,
36
+ class: "invalid-feedback",
37
+ textContent: l(e.validator.getInvalidMessage())
38
+ }, null, 8, h)) : a("", !0),
39
+ e.hint !== void 0 ? (t(), n("div", {
40
+ key: 2,
41
+ id: e.getHintId(),
42
+ class: "form-text",
43
+ textContent: l(e.hint)
44
+ }, null, 8, k)) : a("", !0)
45
+ ], 64);
46
+ }
47
+ const N = /* @__PURE__ */ m(s, [["render", y]]);
48
+ export {
49
+ N as default
50
+ };
@@ -0,0 +1,43 @@
1
+ import a from "./bootstrap-vue-wrapper28.js";
2
+ import { openBlock as t, createElementBlock as o, normalizeClass as r, createElementVNode as s, mergeProps as u, toDisplayString as d, createCommentVNode as l } from "vue";
3
+ import p from "./bootstrap-vue-wrapper16.js";
4
+ const m = ["id", "value", "checked", "aria-describedby"], v = ["for", "textContent"], f = ["textContent"], k = ["id", "textContent"];
5
+ function b(e, n, h, C, I, c) {
6
+ return t(), o("div", {
7
+ class: r(["form-check", e.classContainer])
8
+ }, [
9
+ s("input", u({
10
+ id: e.id,
11
+ ref: "inputRef",
12
+ value: e.modelValue
13
+ }, e.$attrs, {
14
+ type: "radio",
15
+ class: "form-check-input",
16
+ checked: e.isChecked,
17
+ "aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
18
+ onInput: n[0] || (n[0] = (...i) => e.onInput && e.onInput(...i)),
19
+ onInvalid: n[1] || (n[1] = (...i) => e.onInvalid && e.onInvalid(...i))
20
+ }), null, 16, m),
21
+ e.label !== void 0 ? (t(), o("label", {
22
+ key: 0,
23
+ for: e.id,
24
+ class: "form-check-label",
25
+ textContent: d(e.label)
26
+ }, null, 8, v)) : l("", !0),
27
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (t(), o("div", {
28
+ key: 1,
29
+ class: "invalid-feedback",
30
+ textContent: d(e.validator.getInvalidMessage())
31
+ }, null, 8, f)) : l("", !0),
32
+ e.hint !== void 0 ? (t(), o("div", {
33
+ key: 2,
34
+ id: e.getHintId(),
35
+ class: "form-text",
36
+ textContent: d(e.hint)
37
+ }, null, 8, k)) : l("", !0)
38
+ ], 2);
39
+ }
40
+ const B = /* @__PURE__ */ p(a, [["render", b]]);
41
+ export {
42
+ B as default
43
+ };
@@ -0,0 +1,34 @@
1
+ import o from "./bootstrap-vue-wrapper29.js";
2
+ import { openBlock as a, createElementBlock as n, createElementVNode as t, renderSlot as s, toDisplayString as c } from "vue";
3
+ import f from "./bootstrap-vue-wrapper16.js";
4
+ const i = {
5
+ ref: "offcanvasRef",
6
+ class: "offcanvas",
7
+ tabindex: "-1",
8
+ "aria-labelledby": "offcanvasTitle"
9
+ }, l = { class: "offcanvas-header" }, r = ["textContent"], d = /* @__PURE__ */ t("button", {
10
+ type: "button",
11
+ class: "btn-close text-reset",
12
+ "data-bs-dismiss": "offcanvas"
13
+ }, null, -1), _ = { class: "offcanvas-body" };
14
+ function p(e, v, m, b, h, u) {
15
+ return a(), n("div", i, [
16
+ t("div", l, [
17
+ s(e.$slots, "header", {}, () => [
18
+ t("div", {
19
+ id: "offcanvasTitle",
20
+ class: "h5 mb-0",
21
+ textContent: c(e.title)
22
+ }, null, 8, r),
23
+ d
24
+ ])
25
+ ]),
26
+ t("div", _, [
27
+ s(e.$slots, "body")
28
+ ])
29
+ ], 512);
30
+ }
31
+ const B = /* @__PURE__ */ f(o, [["render", p]]);
32
+ export {
33
+ B as default
34
+ };
@@ -0,0 +1,54 @@
1
+ import { ref as v } from "vue";
2
+ import { useI18n as m } from "vue-i18n";
3
+ function c(i) {
4
+ const { t: e } = m(), t = v(null);
5
+ function l(r) {
6
+ const a = i.value;
7
+ a !== null && (r !== null ? a.setCustomValidity(r) : a.setCustomValidity(""), t.value = o(a));
8
+ }
9
+ function o(r) {
10
+ if (r.validity.valueMissing)
11
+ return e("validator.error.value_missing");
12
+ if (r.validity.tooShort)
13
+ return e("validator.error.too_short", [r.minLength]);
14
+ if (r.validity.tooLong)
15
+ return e("validator.error.too_long", [r.maxLength]);
16
+ if (r.validity.rangeUnderflow)
17
+ return e("validator.error.range_underflow", [r.min]);
18
+ if (r.validity.rangeOverflow)
19
+ return e("validator.error.range_overflow", [r.max]);
20
+ if (r.validity.typeMismatch) {
21
+ if (r.type === "email")
22
+ return e("validator.error.type_mismatch.email");
23
+ if (r.type === "url")
24
+ return e("validator.error.type_mismatch.url");
25
+ }
26
+ if (r.validity.badInput) {
27
+ if (r.type === "number")
28
+ return e("validator.error.bad_input.number");
29
+ if (r.type === "date")
30
+ return e("validator.error.bad_input.date");
31
+ }
32
+ if (r.validity.patternMismatch)
33
+ return e("validator.error.pattern_mismatch");
34
+ if (r.validity.stepMismatch) {
35
+ const a = Math.floor(Number(r.value) / Number(r.step)) * Number(r.step), d = Math.ceil(Number(r.value) / Number(r.step)) * Number(r.step);
36
+ return e("validator.error.step_mismatch", [a, d]);
37
+ }
38
+ return r.validity.customError ? r.validationMessage : null;
39
+ }
40
+ function n(r) {
41
+ r.target !== null && (t.value = o(r.target));
42
+ }
43
+ function s() {
44
+ return t.value;
45
+ }
46
+ return {
47
+ onInvalid: n,
48
+ getInvalidMessage: s,
49
+ setCustomError: l
50
+ };
51
+ }
52
+ export {
53
+ c as useValidator
54
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as r } from "vue";
2
+ const o = r({
3
+ name: "BsBreadcrumb",
4
+ props: {
5
+ /**
6
+ * List of breadcrumb items.
7
+ */
8
+ items: {
9
+ type: Array,
10
+ required: !0
11
+ }
12
+ },
13
+ methods: {
14
+ /**
15
+ * Is route available
16
+ *
17
+ * @param item
18
+ * @returns {boolean}
19
+ */
20
+ isRouteAvailable(e) {
21
+ return e.route !== void 0;
22
+ }
23
+ }
24
+ });
25
+ export {
26
+ o as default
27
+ };
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -0,0 +1,23 @@
1
+ import { defineComponent as e } from "vue";
2
+ const m = e({
3
+ name: "BsForm",
4
+ emits: ["submit"],
5
+ data() {
6
+ return {
7
+ submitClicked: !1
8
+ };
9
+ },
10
+ methods: {
11
+ /**
12
+ * On submit event.
13
+ *
14
+ * @param event
15
+ */
16
+ onSubmit(t) {
17
+ t.preventDefault(), this.submitClicked = !0, this.$emit("submit", t);
18
+ }
19
+ }
20
+ });
21
+ export {
22
+ m as default
23
+ };
@@ -0,0 +1,78 @@
1
+ import { useValidator as a } from "./bootstrap-vue-wrapper14.js";
2
+ import { defineComponent as i, ref as n } from "vue";
3
+ const d = i({
4
+ name: "BsInput",
5
+ props: {
6
+ /**
7
+ * Value for v-model
8
+ */
9
+ modelValue: {
10
+ type: [String, Number],
11
+ default: null
12
+ },
13
+ /**
14
+ * Html id
15
+ */
16
+ id: {
17
+ type: String,
18
+ required: !0
19
+ },
20
+ /**
21
+ * Label for input
22
+ */
23
+ label: {
24
+ type: String,
25
+ default: void 0
26
+ },
27
+ /**
28
+ * Attribute hint
29
+ */
30
+ hint: {
31
+ type: String,
32
+ default: void 0
33
+ },
34
+ /**
35
+ * Enable or disable validator
36
+ */
37
+ validatorEnabled: {
38
+ type: Boolean,
39
+ default: !0
40
+ }
41
+ },
42
+ emits: ["update:modelValue"],
43
+ setup() {
44
+ const t = n(null);
45
+ return {
46
+ inputRef: t,
47
+ validator: a(t)
48
+ };
49
+ },
50
+ methods: {
51
+ /**
52
+ * Hint id is generated
53
+ */
54
+ getHintId() {
55
+ return this.id + "Hint";
56
+ },
57
+ /**
58
+ * On input event
59
+ *
60
+ * @param event
61
+ */
62
+ onInput(t) {
63
+ const e = t.target;
64
+ this.$emit("update:modelValue", e.value);
65
+ },
66
+ /**
67
+ * On invalid event
68
+ *
69
+ * @param event
70
+ */
71
+ onInvalid(t) {
72
+ this.validatorEnabled && this.validator.onInvalid(t);
73
+ }
74
+ }
75
+ });
76
+ export {
77
+ d as default
78
+ };
@@ -0,0 +1,104 @@
1
+ import { useValidator as i } from "./bootstrap-vue-wrapper14.js";
2
+ import { defineComponent as l, ref as n } from "vue";
3
+ const r = l({
4
+ name: "BsCheckbox",
5
+ props: {
6
+ /**
7
+ * Value for checkbox if v-model is array.
8
+ */
9
+ value: {
10
+ type: String,
11
+ default: null
12
+ },
13
+ /**
14
+ * Value for v-model
15
+ */
16
+ modelValue: {
17
+ type: [Array, Boolean],
18
+ default: null
19
+ },
20
+ /**
21
+ * Html id
22
+ */
23
+ id: {
24
+ type: String,
25
+ required: !0
26
+ },
27
+ /**
28
+ * Label for input
29
+ */
30
+ label: {
31
+ type: String,
32
+ default: void 0
33
+ },
34
+ /**
35
+ * Attribute hint
36
+ */
37
+ hint: {
38
+ type: String,
39
+ default: void 0
40
+ },
41
+ /**
42
+ * Input container div class.
43
+ */
44
+ classContainer: {
45
+ type: String,
46
+ default: void 0
47
+ },
48
+ /**
49
+ * Enable or disable validator
50
+ */
51
+ validatorEnabled: {
52
+ type: Boolean,
53
+ default: !0
54
+ }
55
+ },
56
+ emits: ["update:modelValue"],
57
+ setup() {
58
+ const e = n(null);
59
+ return {
60
+ inputRef: e,
61
+ validator: i(e)
62
+ };
63
+ },
64
+ computed: {
65
+ /**
66
+ * Checkbox is checked or not.
67
+ */
68
+ isChecked() {
69
+ return this.modelValue instanceof Array ? this.modelValue.includes(this.value) : this.modelValue === !0;
70
+ }
71
+ },
72
+ methods: {
73
+ /**
74
+ * Hint id is generated
75
+ */
76
+ getHintId() {
77
+ return this.id + "Hint";
78
+ },
79
+ /**
80
+ * On input event
81
+ *
82
+ * @param event
83
+ */
84
+ onInput(e) {
85
+ const a = e.target.checked;
86
+ if (this.modelValue instanceof Array) {
87
+ const t = [...this.modelValue];
88
+ a ? t.push(this.value) : t.splice(t.indexOf(this.value), 1), this.$emit("update:modelValue", t);
89
+ } else
90
+ this.$emit("update:modelValue", a);
91
+ },
92
+ /**
93
+ * On invalid event
94
+ *
95
+ * @param event
96
+ */
97
+ onInvalid(e) {
98
+ this.validatorEnabled && this.validator.onInvalid(e);
99
+ }
100
+ }
101
+ });
102
+ export {
103
+ r as default
104
+ };
@@ -0,0 +1,32 @@
1
+ import s from "./bootstrap-vue-wrapper15.js";
2
+ import { resolveComponent as c, openBlock as t, createElementBlock as o, createElementVNode as i, Fragment as u, renderList as d, normalizeClass as m, createBlock as _, withCtx as p, createTextVNode as b, toDisplayString as n } from "vue";
3
+ import f from "./bootstrap-vue-wrapper16.js";
4
+ const k = { "aria-label": "breadcrumb" }, h = { class: "breadcrumb" }, v = ["textContent"];
5
+ function B(r, C, x, y, $, g) {
6
+ const a = c("router-link");
7
+ return t(), o("nav", k, [
8
+ i("ol", h, [
9
+ (t(!0), o(u, null, d(r.items, (e, l) => (t(), o("li", {
10
+ key: l,
11
+ class: m(["breadcrumb-item", { active: !r.isRouteAvailable(e) }])
12
+ }, [
13
+ r.isRouteAvailable(e) ? (t(), _(a, {
14
+ key: 0,
15
+ to: e.route
16
+ }, {
17
+ default: p(() => [
18
+ b(n(e.title), 1)
19
+ ]),
20
+ _: 2
21
+ }, 1032, ["to"])) : (t(), o("span", {
22
+ key: 1,
23
+ textContent: n(e.title)
24
+ }, null, 8, v))
25
+ ], 2))), 128))
26
+ ])
27
+ ]);
28
+ }
29
+ const R = /* @__PURE__ */ f(s, [["render", B]]);
30
+ export {
31
+ R as default
32
+ };
@@ -0,0 +1,78 @@
1
+ import { useValidator as a } from "./bootstrap-vue-wrapper14.js";
2
+ import { defineComponent as i, ref as n } from "vue";
3
+ const d = i({
4
+ name: "BsTextarea",
5
+ props: {
6
+ /**
7
+ * Value for v-model
8
+ */
9
+ modelValue: {
10
+ type: [String, Number],
11
+ default: null
12
+ },
13
+ /**
14
+ * Html id
15
+ */
16
+ id: {
17
+ type: String,
18
+ required: !0
19
+ },
20
+ /**
21
+ * Label for textarea
22
+ */
23
+ label: {
24
+ type: String,
25
+ default: void 0
26
+ },
27
+ /**
28
+ * Attribute hint
29
+ */
30
+ hint: {
31
+ type: String,
32
+ default: void 0
33
+ },
34
+ /**
35
+ * Enable or disable validator
36
+ */
37
+ validatorEnabled: {
38
+ type: Boolean,
39
+ default: !0
40
+ }
41
+ },
42
+ emits: ["update:modelValue"],
43
+ setup() {
44
+ const t = n(null);
45
+ return {
46
+ inputRef: t,
47
+ validator: a(t)
48
+ };
49
+ },
50
+ methods: {
51
+ /**
52
+ * Hint id is generated
53
+ */
54
+ getHintId() {
55
+ return this.id + "Hint";
56
+ },
57
+ /**
58
+ * On input event
59
+ *
60
+ * @param event
61
+ */
62
+ onInput(t) {
63
+ const e = t.target;
64
+ this.$emit("update:modelValue", e.value);
65
+ },
66
+ /**
67
+ * On invalid event
68
+ *
69
+ * @param event
70
+ */
71
+ onInvalid(t) {
72
+ this.validatorEnabled && this.validator.onInvalid(t);
73
+ }
74
+ }
75
+ });
76
+ export {
77
+ d as default
78
+ };
@@ -0,0 +1,114 @@
1
+ import { defineComponent as i } from "vue";
2
+ const r = i({
3
+ name: "BsPaginator",
4
+ props: {
5
+ /**
6
+ * Total count of items.
7
+ */
8
+ totalCount: {
9
+ type: Number,
10
+ required: !0
11
+ },
12
+ /**
13
+ * Page size
14
+ */
15
+ pageSize: {
16
+ type: Number,
17
+ required: !0
18
+ },
19
+ /**
20
+ * Current page
21
+ */
22
+ currentPage: {
23
+ type: Number,
24
+ required: !0
25
+ },
26
+ /**
27
+ * Max visible page
28
+ */
29
+ maxVisiblePage: {
30
+ type: Number,
31
+ default: 5
32
+ },
33
+ /**
34
+ * First page label
35
+ */
36
+ firstPageLabel: {
37
+ type: String,
38
+ default: "«"
39
+ },
40
+ /**
41
+ * Previous page label
42
+ */
43
+ previousPageLabel: {
44
+ type: String,
45
+ default: "‹"
46
+ },
47
+ /**
48
+ * Next page label
49
+ */
50
+ nextPageLabel: {
51
+ type: String,
52
+ default: "›"
53
+ },
54
+ /**
55
+ * Last page label
56
+ */
57
+ lastPageLabel: {
58
+ type: String,
59
+ default: "»"
60
+ }
61
+ },
62
+ emits: ["pageChanged"],
63
+ methods: {
64
+ /**
65
+ * Count of pages
66
+ *
67
+ * @returns {number}
68
+ */
69
+ getPageCount() {
70
+ return Math.ceil(this.totalCount / this.pageSize);
71
+ },
72
+ /**
73
+ * Visible page list
74
+ *
75
+ * @returns {*[]}
76
+ */
77
+ getVisiblePages() {
78
+ const e = [], t = this.getPageRange();
79
+ for (let a = t.beginPage; a <= t.endPage; a += 1)
80
+ e.push(a + 1);
81
+ return e;
82
+ },
83
+ /**
84
+ * Is page active, or not
85
+ *
86
+ * @param page
87
+ * @returns {boolean}
88
+ */
89
+ isPageActive(e) {
90
+ return e === this.currentPage;
91
+ },
92
+ /**
93
+ * On page click
94
+ */
95
+ onPageClick(e) {
96
+ this.isPageActive(e) || this.$emit("pageChanged", e);
97
+ },
98
+ /**
99
+ * Page range, example: 3 available page, current page 3, range is: [1, 3] (zero-based)
100
+ *
101
+ * @returns {{beginPage: number, endPage: number}}
102
+ */
103
+ getPageRange() {
104
+ let e = Math.max(0, this.currentPage - this.maxVisiblePage / 2), t = e + this.maxVisiblePage - 1;
105
+ return t >= this.getPageCount() && (t = this.getPageCount() - 1, e = Math.max(0, t - this.maxVisiblePage + 1)), {
106
+ beginPage: Math.floor(e),
107
+ endPage: Math.floor(t)
108
+ };
109
+ }
110
+ }
111
+ });
112
+ export {
113
+ r as default
114
+ };