bootstrap-vue-wrapper 2.0.3 → 2.0.4
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.
- package/dist/bootstrap-vue-wrapper.mjs +27 -24
- package/dist/bootstrap-vue-wrapper.umd.js +1 -1
- package/dist/components/bs-breadcrumb/BsBreadcrumb.vue.d.ts +1 -1
- package/dist/components/bs-checkbox/BsCheckbox.vue.d.ts +4 -4
- package/dist/components/bs-input/BsInput.vue.d.ts +3 -3
- package/dist/components/bs-radio/BsRadio.vue.d.ts +2 -2
- package/dist/components/bs-select/BsSelect.vue.d.ts +3 -3
- package/dist/components/bs-table/BsTable.vue.d.ts +10 -10
- package/dist/components/bs-textarea/BsTextarea.vue.d.ts +3 -3
- package/dist/components/validator/Validator.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, resolveComponent as
|
|
1
|
+
import { defineComponent as m, resolveComponent as E, openBlock as a, createElementBlock as i, createElementVNode as s, Fragment as b, renderList as y, normalizeClass as h, createBlock as w, withCtx as H, createTextVNode as S, toDisplayString as l, renderSlot as g, ref as C, createCommentVNode as u, mergeProps as k, resolveDirective as M, withDirectives as R, pushScopeId as A, popScopeId as L } from "vue";
|
|
2
2
|
import { useI18n as N } from "vue-i18n";
|
|
3
3
|
import { Toast as B, Modal as P, Offcanvas as V } from "bootstrap";
|
|
4
4
|
const O = m({
|
|
@@ -30,18 +30,18 @@ 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 o =
|
|
33
|
+
const o = E("router-link");
|
|
34
34
|
return a(), i("nav", _, [
|
|
35
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(),
|
|
40
|
+
e.isRouteAvailable(n) ? (a(), w(o, {
|
|
41
41
|
key: 0,
|
|
42
42
|
to: n.route
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
44
|
+
default: H(() => [
|
|
45
45
|
S(l(n.title), 1)
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
@@ -220,7 +220,7 @@ function Q(e, t, r, d, v, f) {
|
|
|
220
220
|
value: e.modelValue,
|
|
221
221
|
class: "form-control"
|
|
222
222
|
}, e.$attrs, {
|
|
223
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() :
|
|
223
|
+
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
224
224
|
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
225
225
|
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
226
226
|
}), null, 16, G),
|
|
@@ -348,7 +348,7 @@ function ee(e, t, r, d, v, f) {
|
|
|
348
348
|
type: "checkbox",
|
|
349
349
|
class: "form-check-input",
|
|
350
350
|
checked: e.isChecked,
|
|
351
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() :
|
|
351
|
+
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
352
352
|
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
353
353
|
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
354
354
|
}), null, 16, X),
|
|
@@ -458,7 +458,7 @@ function se(e, t, r, d, v, f) {
|
|
|
458
458
|
value: e.modelValue
|
|
459
459
|
}, e.$attrs, {
|
|
460
460
|
class: "form-control",
|
|
461
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() :
|
|
461
|
+
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
462
462
|
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
463
463
|
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
464
464
|
}), null, 16, ae),
|
|
@@ -657,7 +657,7 @@ const ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67
|
|
|
657
657
|
required: !0
|
|
658
658
|
},
|
|
659
659
|
/**
|
|
660
|
-
* Items
|
|
660
|
+
* Items loading
|
|
661
661
|
*/
|
|
662
662
|
isLoading: {
|
|
663
663
|
type: Boolean,
|
|
@@ -697,7 +697,7 @@ const ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67
|
|
|
697
697
|
/**
|
|
698
698
|
* Is order by active by field?
|
|
699
699
|
*
|
|
700
|
-
* @param
|
|
700
|
+
* @param fieldKey
|
|
701
701
|
* @returns {boolean}
|
|
702
702
|
*/
|
|
703
703
|
isActiveOrderBy(e) {
|
|
@@ -742,11 +742,11 @@ const ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67
|
|
|
742
742
|
this.isSortableField(e) && this.$emit("orderChanged", { sortDesc: this.calcSortDesc(e.key), orderBy: e.key });
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
}), ce = (e) => (A("data-v-
|
|
745
|
+
}), ce = (e) => (A("data-v-7c949d62"), e = e(), L(), 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" }, [
|
|
746
746
|
/* @__PURE__ */ s("div", { class: "spinner-border spinner-border-sm" })
|
|
747
747
|
], -1)), ke = { key: 1 }, Ie = ["colspan"], Se = { class: "text-center text-muted small" };
|
|
748
748
|
function Be(e, t, r, d, v, f) {
|
|
749
|
-
const o =
|
|
749
|
+
const o = M("t");
|
|
750
750
|
return a(), i("table", ge, [
|
|
751
751
|
s("thead", null, [
|
|
752
752
|
s("tr", null, [
|
|
@@ -809,7 +809,7 @@ function Be(e, t, r, d, v, f) {
|
|
|
809
809
|
])
|
|
810
810
|
]);
|
|
811
811
|
}
|
|
812
|
-
const pt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-
|
|
812
|
+
const pt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-7c949d62"]]), Pe = m({
|
|
813
813
|
name: "BsToast",
|
|
814
814
|
emits: ["shown", "hidden"],
|
|
815
815
|
mounted() {
|
|
@@ -821,7 +821,8 @@ const pt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-e8d4b4dc
|
|
|
821
821
|
* Trigger toast hide event.
|
|
822
822
|
*/
|
|
823
823
|
hide() {
|
|
824
|
-
|
|
824
|
+
const e = this.$refs.toastRef;
|
|
825
|
+
B.getOrCreateInstance(e).hide();
|
|
825
826
|
},
|
|
826
827
|
/**
|
|
827
828
|
* Hidden event.
|
|
@@ -843,12 +844,12 @@ const pt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-e8d4b4dc
|
|
|
843
844
|
"aria-live": "assertive",
|
|
844
845
|
"aria-atomic": "true"
|
|
845
846
|
};
|
|
846
|
-
function
|
|
847
|
+
function Ee(e, t, r, d, v, f) {
|
|
847
848
|
return a(), i("div", Ve, [
|
|
848
849
|
g(e.$slots, "default")
|
|
849
850
|
], 512);
|
|
850
851
|
}
|
|
851
|
-
const mt = /* @__PURE__ */ c(Pe, [["render",
|
|
852
|
+
const mt = /* @__PURE__ */ c(Pe, [["render", Ee]]), we = m({
|
|
852
853
|
name: "BsModal",
|
|
853
854
|
props: {
|
|
854
855
|
/**
|
|
@@ -885,7 +886,8 @@ const mt = /* @__PURE__ */ c(Pe, [["render", we]]), He = m({
|
|
|
885
886
|
* Trigger modal hide event.
|
|
886
887
|
*/
|
|
887
888
|
hide() {
|
|
888
|
-
|
|
889
|
+
const e = this.$refs.modalRef;
|
|
890
|
+
P.getOrCreateInstance(e).hide();
|
|
889
891
|
},
|
|
890
892
|
/**
|
|
891
893
|
* Shown event.
|
|
@@ -900,12 +902,12 @@ const mt = /* @__PURE__ */ c(Pe, [["render", we]]), He = m({
|
|
|
900
902
|
this.$emit("hidden");
|
|
901
903
|
}
|
|
902
904
|
}
|
|
903
|
-
}),
|
|
905
|
+
}), He = {
|
|
904
906
|
ref: "modalRef",
|
|
905
907
|
class: "modal fade",
|
|
906
908
|
tabindex: "-1",
|
|
907
909
|
"aria-hidden": "true"
|
|
908
|
-
},
|
|
910
|
+
}, Me = { class: "modal-content" }, Re = {
|
|
909
911
|
key: 0,
|
|
910
912
|
class: "modal-header"
|
|
911
913
|
}, Ae = ["textContent"], Le = /* @__PURE__ */ s("button", {
|
|
@@ -920,11 +922,11 @@ const mt = /* @__PURE__ */ c(Pe, [["render", we]]), He = m({
|
|
|
920
922
|
class: "modal-footer"
|
|
921
923
|
};
|
|
922
924
|
function _e(e, t, r, d, v, f) {
|
|
923
|
-
return a(), i("div",
|
|
925
|
+
return a(), i("div", He, [
|
|
924
926
|
s("div", {
|
|
925
927
|
class: h(["modal-dialog", e.classDialog])
|
|
926
928
|
}, [
|
|
927
|
-
s("div",
|
|
929
|
+
s("div", Me, [
|
|
928
930
|
e.hideHeader ? u("", !0) : (a(), i("div", Re, [
|
|
929
931
|
g(e.$slots, "header", {}, () => [
|
|
930
932
|
s("div", {
|
|
@@ -944,7 +946,7 @@ function _e(e, t, r, d, v, f) {
|
|
|
944
946
|
], 2)
|
|
945
947
|
], 512);
|
|
946
948
|
}
|
|
947
|
-
const ct = /* @__PURE__ */ c(
|
|
949
|
+
const ct = /* @__PURE__ */ c(we, [["render", _e]]), De = m({
|
|
948
950
|
name: "BsSelect",
|
|
949
951
|
props: {
|
|
950
952
|
/**
|
|
@@ -1049,7 +1051,7 @@ function Ge(e, t, r, d, v, f) {
|
|
|
1049
1051
|
ref: "inputRef",
|
|
1050
1052
|
class: "form-select",
|
|
1051
1053
|
value: e.modelValue,
|
|
1052
|
-
"aria-labelledby": e.hint !== void 0 ? e.getHintId() :
|
|
1054
|
+
"aria-labelledby": e.hint !== void 0 ? e.getHintId() : void 0
|
|
1053
1055
|
}, e.$attrs, {
|
|
1054
1056
|
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1055
1057
|
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
@@ -1177,7 +1179,7 @@ function Ye(e, t, r, d, v, f) {
|
|
|
1177
1179
|
type: "radio",
|
|
1178
1180
|
class: "form-check-input",
|
|
1179
1181
|
checked: e.isChecked,
|
|
1180
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() :
|
|
1182
|
+
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
1181
1183
|
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1182
1184
|
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1183
1185
|
}), null, 16, Ke),
|
|
@@ -1221,7 +1223,8 @@ const bt = /* @__PURE__ */ c(Je, [["render", Ye]]), Ze = m({
|
|
|
1221
1223
|
* Trigger offcanvas hide event.
|
|
1222
1224
|
*/
|
|
1223
1225
|
hide() {
|
|
1224
|
-
|
|
1226
|
+
const e = this.$refs.offcanvasRef;
|
|
1227
|
+
V.getOrCreateInstance(e).hide();
|
|
1225
1228
|
},
|
|
1226
1229
|
/**
|
|
1227
1230
|
* Shown event.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-i18n"),require("bootstrap")):typeof define=="function"&&define.amd?define(["exports","vue","vue-i18n","bootstrap"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.BootstrapVueWrapper={},i.Vue,i.vueI18n,i.bootstrap))})(this,function(i,e,g,f){"use strict";const u=e.defineComponent({name:"BsBreadcrumb",props:{items:{type:Array,required:!0}},methods:{isRouteAvailable(t){return t.route!==void 0}}}),m=(t,n)=>{const l=t.__vccOpts||t;for(const[r,s]of n)l[r]=s;return l},k={"aria-label":"breadcrumb"},y={class:"breadcrumb"},b=["textContent"];function B(t,n,l,r,s,d){const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",k,[e.createElementVNode("ol",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:c,class:e.normalizeClass(["breadcrumb-item",{active:!t.isRouteAvailable(o)}])},[t.isRouteAvailable(o)?(e.openBlock(),e.createBlock(a,{key:0,to:o.route},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",{key:1,textContent:e.toDisplayString(o.title)},null,8,b))],2))),128))])])}const $=m(u,[["render",B]]),C=e.defineComponent({name:"BsForm",emits:["submit"],data(){return{submitClicked:!1}},methods:{onSubmit(t){t.preventDefault(),this.submitClicked=!0,this.$emit("submit",t)}}});function E(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass(["needs-validation",{"was-validated":t.submitClicked}]),novalidate:"",onSubmit:n[0]||(n[0]=(...a)=>t.onSubmit&&t.onSubmit(...a))},[e.renderSlot(t.$slots,"default")],34)}const S=m(C,[["render",E]]);function h(t){const{t:n}=g.useI18n(),l=e.ref(null);function r(o){const c=t.value;c!==null&&(o!==null?c.setCustomValidity(o):c.setCustomValidity(""),l.value=s(c))}function s(o){if(o.validity.valueMissing)return n("validator.error.value_missing");if(o.validity.tooShort)return n("validator.error.too_short",[o.minLength]);if(o.validity.tooLong)return n("validator.error.too_long",[o.maxLength]);if(o.validity.rangeUnderflow)return n("validator.error.range_underflow",[o.min]);if(o.validity.rangeOverflow)return n("validator.error.range_overflow",[o.max]);if(o.validity.typeMismatch){if(o.type==="email")return n("validator.error.type_mismatch.email");if(o.type==="url")return n("validator.error.type_mismatch.url")}if(o.validity.badInput){if(o.type==="number")return n("validator.error.bad_input.number");if(o.type==="date")return n("validator.error.bad_input.date")}if(o.validity.patternMismatch)return n("validator.error.pattern_mismatch");if(o.validity.stepMismatch){const c=Math.floor(Number(o.value)/Number(o.step))*Number(o.step),p=Math.ceil(Number(o.value)/Number(o.step))*Number(o.step);return n("validator.error.step_mismatch",[c,p])}return o.validity.customError?o.validationMessage:null}function d(o){o.target!==null&&(l.value=s(o.target))}function a(){return l.value}return{onInvalid:d,getInvalidMessage:a,setCustomError:r}}const V=e.defineComponent({name:"BsInput",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=e.ref(null);return{inputRef:t,validator:h(t)}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const n=t.target;this.$emit("update:modelValue",n.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),I=["for","textContent"],N=["id","value","aria-describedby"],P=["textContent"],D=["id","textContent"];function M(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.label!==void 0?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.id,class:"form-label",textContent:e.toDisplayString(t.label)},null,8,I)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue,class:"form-control"},t.$attrs,{"aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:n[0]||(n[0]=(...a)=>t.onInput&&t.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>t.onInvalid&&t.onInvalid(...a))}),null,16,N),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(e.openBlock(),e.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:e.toDisplayString(t.validator.getInvalidMessage())},null,8,P)):e.createCommentVNode("",!0),t.hint!==void 0?(e.openBlock(),e.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:e.toDisplayString(t.hint)},null,8,D)):e.createCommentVNode("",!0)],64)}const v=m(V,[["render",M]]),w=e.defineComponent({name:"BsCheckbox",props:{value:{type:String,default:null},modelValue:{type:[Array,Boolean],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=e.ref(null);return{inputRef:t,validator:h(t)}},computed:{isChecked(){return this.modelValue instanceof Array?this.modelValue.includes(this.value):this.modelValue===!0}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const l=t.target.checked;if(this.modelValue instanceof Array){const r=[...this.modelValue];l?r.push(this.value):r.splice(r.indexOf(this.value),1),this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",l)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),H=["id","value","checked","aria-describedby"],R=["for","textContent"],L=["textContent"],A=["id","textContent"];function O(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-check",t.classContainer])},[e.createElementVNode("input",e.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue},t.$attrs,{type:"checkbox",class:"form-check-input",checked:t.isChecked,"aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:n[0]||(n[0]=(...a)=>t.onInput&&t.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>t.onInvalid&&t.onInvalid(...a))}),null,16,H),t.label!==void 0?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.id,class:"form-check-label",textContent:e.toDisplayString(t.label)},null,8,R)):e.createCommentVNode("",!0),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(e.openBlock(),e.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:e.toDisplayString(t.validator.getInvalidMessage())},null,8,L)):e.createCommentVNode("",!0),t.hint!==void 0?(e.openBlock(),e.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:e.toDisplayString(t.hint)},null,8,A)):e.createCommentVNode("",!0)],2)}const T=m(w,[["render",O]]),_=e.defineComponent({name:"BsTextarea",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=e.ref(null);return{inputRef:t,validator:h(t)}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const n=t.target;this.$emit("update:modelValue",n.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),q=["for","textContent"],F=["id","value","aria-describedby"],z=["textContent"],j=["id","textContent"];function U(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.label!==void 0?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.id,class:"form-label",textContent:e.toDisplayString(t.label)},null,8,q)):e.createCommentVNode("",!0),e.createElementVNode("textarea",e.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue},t.$attrs,{class:"form-control","aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:n[0]||(n[0]=(...a)=>t.onInput&&t.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>t.onInvalid&&t.onInvalid(...a))}),null,16,F),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(e.openBlock(),e.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:e.toDisplayString(t.validator.getInvalidMessage())},null,8,z)):e.createCommentVNode("",!0),t.hint!==void 0?(e.openBlock(),e.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:e.toDisplayString(t.hint)},null,8,j)):e.createCommentVNode("",!0)],64)}const W=m(_,[["render",U]]),G=e.defineComponent({name:"BsPaginator",props:{totalCount:{type:Number,required:!0},pageSize:{type:Number,required:!0},currentPage:{type:Number,required:!0},maxVisiblePage:{type:Number,default:5},firstPageLabel:{type:String,default:"«"},previousPageLabel:{type:String,default:"‹"},nextPageLabel:{type:String,default:"›"},lastPageLabel:{type:String,default:"»"}},emits:["pageChanged"],methods:{getPageCount(){return Math.ceil(this.totalCount/this.pageSize)},getVisiblePages(){const t=[],n=this.getPageRange();for(let l=n.beginPage;l<=n.endPage;l+=1)t.push(l+1);return t},isPageActive(t){return t===this.currentPage},onPageClick(t){this.isPageActive(t)||this.$emit("pageChanged",t)},getPageRange(){let t=Math.max(0,this.currentPage-this.maxVisiblePage/2),n=t+this.maxVisiblePage-1;return n>=this.getPageCount()&&(n=this.getPageCount()-1,t=Math.max(0,n-this.maxVisiblePage+1)),{beginPage:Math.floor(t),endPage:Math.floor(n)}}}}),J={class:"pagination"},K=["textContent"],Q=["textContent"],X=["onClick","textContent"],Y=["textContent"],Z=["textContent"];function x(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("ul",J,[e.createElementVNode("li",{class:e.normalizeClass(["page-item page-item-first",{disabled:t.isPageActive(1)}])},[e.createElementVNode("div",{class:"page-link",onClick:n[0]||(n[0]=a=>t.onPageClick(1)),textContent:e.toDisplayString(t.firstPageLabel)},null,8,K)],2),e.createElementVNode("li",{class:e.normalizeClass(["page-item page-item-previous",{disabled:t.isPageActive(1)}])},[e.createElementVNode("div",{class:"page-link",onClick:n[1]||(n[1]=a=>t.onPageClick(t.currentPage-1)),textContent:e.toDisplayString(t.previousPageLabel)},null,8,Q)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.getVisiblePages(),(a,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(["page-item page-item-number",{active:t.isPageActive(a)}])},[e.createElementVNode("div",{class:"page-link",onClick:c=>t.onPageClick(a),textContent:e.toDisplayString(a)},null,8,X)],2))),128)),e.createElementVNode("li",{class:e.normalizeClass(["page-item page-item-next",{disabled:t.isPageActive(t.getPageCount())}])},[e.createElementVNode("div",{class:"page-link",onClick:n[2]||(n[2]=a=>t.onPageClick(t.currentPage+1)),textContent:e.toDisplayString(t.nextPageLabel)},null,8,Y)],2),e.createElementVNode("li",{class:e.normalizeClass(["page-item page-item-last",{disabled:t.isPageActive(t.getPageCount())}])},[e.createElementVNode("div",{class:"page-link",onClick:n[3]||(n[3]=a=>t.onPageClick(t.getPageCount())),textContent:e.toDisplayString(t.lastPageLabel)},null,8,Z)],2)])])}const ee=m(G,[["render",x],["__scopeId","data-v-ff85ae67"]]),te=e.defineComponent({name:"BsTable",props:{fields:{type:Array,required:!0},items:{type:Array,required:!0},isLoading:{type:Boolean,default:!1},orderBy:{type:String,default:void 0},sortDesc:{type:Boolean,default:void 0},thClass:{type:String,default:void 0},tdClass:{type:String,default:void 0}},emits:["orderChanged"],methods:{isActiveOrderBy(t){return t===this.orderBy},isSortableField(t){return t.sort===void 0||t.sort},getSortIconClass(){if(this.sortDesc===void 0)throw new Error("Sort desc value is null, cannot calculate the sort icon!");return this.sortDesc?"bi bi-caret-up-fill":"bi bi-caret-down-fill"},calcSortDesc(t){return this.sortDesc===void 0?null:this.isOrderByChanged(t)?!1:!this.sortDesc},isOrderByChanged(t){return this.orderBy!==t},onHeadClick(t){this.isSortableField(t)&&this.$emit("orderChanged",{sortDesc:this.calcSortDesc(t.key),orderBy:t.key})}}}),ne=t=>(e.pushScopeId("data-v-e8d4b4dc"),t=t(),e.popScopeId(),t),oe={class:"table"},ae=["onClick"],le={key:0},ie=["colspan"],re=ne(()=>e.createElementVNode("div",{class:"d-flex justify-content-center p-2"},[e.createElementVNode("div",{class:"spinner-border spinner-border-sm"})],-1)),se={key:1},de=["colspan"],ce={class:"text-center text-muted small"};function me(t,n,l,r,s,d){const a=e.resolveDirective("t");return e.openBlock(),e.createElementBlock("table",oe,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,o=>(e.openBlock(),e.createElementBlock("th",{key:o.key,class:e.normalizeClass({"cursor-pointer":t.isSortableField(o),"text-decoration-underline":t.isActiveOrderBy(o.key),thClass:t.thClass}),onClick:c=>t.onHeadClick(o)},[e.renderSlot(t.$slots,"tr",{},()=>[e.createTextVNode(e.toDisplayString(o.label)+" ",1),t.isActiveOrderBy(o.key)&&t.sortDesc!==void 0?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(t.getSortIconClass())},null,2)):e.createCommentVNode("",!0)],!0)],10,ae))),128))])]),e.createElementVNode("tbody",null,[t.isLoading?(e.openBlock(),e.createElementBlock("tr",le,[e.createElementVNode("td",{colspan:t.fields.length},[e.renderSlot(t.$slots,"loading",{},()=>[re],!0)],8,ie)])):t.items.length===0?(e.openBlock(),e.createElementBlock("tr",se,[e.createElementVNode("td",{colspan:t.fields.length},[e.renderSlot(t.$slots,"empty",{},()=>[e.withDirectives(e.createElementVNode("div",ce,null,512),[[a,"table.empty_text"]])],!0)],8,de)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.items,(o,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c,class:e.normalizeClass(o.trClass)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,p=>(e.openBlock(),e.createElementBlock("td",{key:p.key,class:e.normalizeClass(t.tdClass)},[e.renderSlot(t.$slots,"td",{key:c,field:p.key,row:o,value:p.key in o?o[p.key]:null},()=>[e.createTextVNode(e.toDisplayString(o[p.key]),1)],!0)],2))),128))],2))),128))])])}const pe=m(te,[["render",me],["__scopeId","data-v-e8d4b4dc"]]),fe=e.defineComponent({name:"BsToast",emits:["shown","hidden"],mounted(){const t=this.$refs.toastRef;f.Toast.getOrCreateInstance(t).show(),t.addEventListener("shown.bs.toast",this.onShown),t.addEventListener("hidden.bs.toast",this.onHidden)},methods:{hide(){f.Toast.getOrCreateInstance(this.$refs.toastRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),he={ref:"toastRef",class:"toast hide",role:"alert","aria-live":"assertive","aria-atomic":"true"};function ge(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(t.$slots,"default")],512)}const ue=m(fe,[["render",ge]]),ke=e.defineComponent({name:"BsModal",props:{title:{type:String,required:!0},classDialog:{type:[String,Object],default:null},hideHeader:{type:Boolean,default:!1},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1}},emits:["shown","hidden"],mounted(){const t=this.$refs.modalRef;f.Modal.getOrCreateInstance(t).show(),t.addEventListener("shown.bs.modal",this.onShown),t.addEventListener("hidden.bs.modal",this.onHidden)},methods:{hide(){f.Modal.getOrCreateInstance(this.$refs.modalRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),ye={ref:"modalRef",class:"modal fade",tabindex:"-1","aria-hidden":"true"},be={class:"modal-content"},Be={key:0,class:"modal-header"},$e=["textContent"],Ce=e.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"},null,-1),Ee={key:1,class:"modal-body"},Se={key:2,class:"modal-footer"};function Ve(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",{class:e.normalizeClass(["modal-dialog",t.classDialog])},[e.createElementVNode("div",be,[t.hideHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("div",{class:"h5 modal-title",textContent:e.toDisplayString(t.title)},null,8,$e),Ce])])),t.hideBody?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ee,[e.renderSlot(t.$slots,"body")])),t.hideFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(t.$slots,"footer")]))])],2)],512)}const Ie=m(ke,[["render",Ve]]),Ne=e.defineComponent({name:"BsSelect",props:{modelValue:{type:[String,Number,Array],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},options:{type:Array,required:!0},placeholder:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=e.ref(null);return{inputRef:t,validator:h(t)}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const n=t.target;this.$emit("update:modelValue",n.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),Pe=["for","textContent"],De=["id","value","aria-labelledby"],Me={key:0,value:"",disabled:"",hidden:""},ve=["value"],we=["textContent"],He=["id","textContent"];function Re(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.label!==void 0?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.id,class:"form-label",textContent:e.toDisplayString(t.label)},null,8,Pe)):e.createCommentVNode("",!0),e.createElementVNode("select",e.mergeProps({id:t.id,ref:"inputRef",class:"form-select",value:t.modelValue,"aria-labelledby":t.hint!==void 0?t.getHintId():null},t.$attrs,{onInput:n[0]||(n[0]=(...a)=>t.onInput&&t.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>t.onInvalid&&t.onInvalid(...a))}),[t.placeholder!==void 0?(e.openBlock(),e.createElementBlock("option",Me,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(a,o)=>(e.openBlock(),e.createElementBlock("option",{key:o,value:a.value},e.toDisplayString(a.text),9,ve))),128))],16,De),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(e.openBlock(),e.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:e.toDisplayString(t.validator.getInvalidMessage())},null,8,we)):e.createCommentVNode("",!0),t.hint!==void 0?(e.openBlock(),e.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:e.toDisplayString(t.hint)},null,8,He)):e.createCommentVNode("",!0)],64)}const Le=m(Ne,[["render",Re]]),Ae=e.defineComponent({name:"BsRadio",props:{value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=e.ref(null);return{inputRef:t,validator:h(t)}},computed:{isChecked(){return this.modelValue===this.value}},methods:{getHintId(){return this.id+"Hint"},onInput(){this.$emit("update:modelValue",this.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),Oe=["id","value","checked","aria-describedby"],Te=["for","textContent"],_e=["textContent"],qe=["id","textContent"];function Fe(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-check",t.classContainer])},[e.createElementVNode("input",e.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue},t.$attrs,{type:"radio",class:"form-check-input",checked:t.isChecked,"aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:n[0]||(n[0]=(...a)=>t.onInput&&t.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>t.onInvalid&&t.onInvalid(...a))}),null,16,Oe),t.label!==void 0?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.id,class:"form-check-label",textContent:e.toDisplayString(t.label)},null,8,Te)):e.createCommentVNode("",!0),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(e.openBlock(),e.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:e.toDisplayString(t.validator.getInvalidMessage())},null,8,_e)):e.createCommentVNode("",!0),t.hint!==void 0?(e.openBlock(),e.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:e.toDisplayString(t.hint)},null,8,qe)):e.createCommentVNode("",!0)],2)}const ze=m(Ae,[["render",Fe]]),je=e.defineComponent({name:"BsOffcanvas",props:{title:{type:String,required:!0}},emits:["shown","hidden"],mounted(){const t=this.$refs.offcanvasRef;f.Offcanvas.getOrCreateInstance(t).show(),t.addEventListener("shown.bs.offcanvas",this.onShown),t.addEventListener("hidden.bs.offcanvas",this.onHidden)},methods:{hide(){f.Offcanvas.getOrCreateInstance(this.$refs.offcanvasRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),Ue={ref:"offcanvasRef",class:"offcanvas",tabindex:"-1","aria-labelledby":"offcanvasTitle"},We={class:"offcanvas-header"},Ge=["textContent"],Je=e.createElementVNode("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas"},null,-1),Ke={class:"offcanvas-body"};function Qe(t,n,l,r,s,d){return e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",We,[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("div",{id:"offcanvasTitle",class:"h5 mb-0",textContent:e.toDisplayString(t.title)},null,8,Ge),Je])]),e.createElementVNode("div",Ke,[e.renderSlot(t.$slots,"body")])],512)}const Xe=m(je,[["render",Qe]]);i.BsBreadcrumb=$,i.BsCheckbox=T,i.BsForm=S,i.BsInput=v,i.BsModal=Ie,i.BsOffcanvas=Xe,i.BsPaginator=ee,i.BsRadio=ze,i.BsSelect=Le,i.BsTable=pe,i.BsTextarea=W,i.BsToast=ue,i.useValidator=h,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(i,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-i18n"),require("bootstrap")):typeof define=="function"&&define.amd?define(["exports","vue","vue-i18n","bootstrap"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.BootstrapVueWrapper={},i.Vue,i.vueI18n,i.bootstrap))})(this,function(i,t,g,f){"use strict";const u=t.defineComponent({name:"BsBreadcrumb",props:{items:{type:Array,required:!0}},methods:{isRouteAvailable(e){return e.route!==void 0}}}),m=(e,n)=>{const l=e.__vccOpts||e;for(const[r,s]of n)l[r]=s;return l},k={"aria-label":"breadcrumb"},y={class:"breadcrumb"},b=["textContent"];function B(e,n,l,r,s,d){const a=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("nav",k,[t.createElementVNode("ol",y,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,c)=>(t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["breadcrumb-item",{active:!e.isRouteAvailable(o)}])},[e.isRouteAvailable(o)?(t.openBlock(),t.createBlock(a,{key:0,to:o.route},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:2},1032,["to"])):(t.openBlock(),t.createElementBlock("span",{key:1,textContent:t.toDisplayString(o.title)},null,8,b))],2))),128))])])}const $=m(u,[["render",B]]),C=t.defineComponent({name:"BsForm",emits:["submit"],data(){return{submitClicked:!1}},methods:{onSubmit(e){e.preventDefault(),this.submitClicked=!0,this.$emit("submit",e)}}});function E(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("form",{class:t.normalizeClass(["needs-validation",{"was-validated":e.submitClicked}]),novalidate:"",onSubmit:n[0]||(n[0]=(...a)=>e.onSubmit&&e.onSubmit(...a))},[t.renderSlot(e.$slots,"default")],34)}const S=m(C,[["render",E]]);function h(e){const{t:n}=g.useI18n(),l=t.ref(null);function r(o){const c=e.value;c!==null&&(o!==null?c.setCustomValidity(o):c.setCustomValidity(""),l.value=s(c))}function s(o){if(o.validity.valueMissing)return n("validator.error.value_missing");if(o.validity.tooShort)return n("validator.error.too_short",[o.minLength]);if(o.validity.tooLong)return n("validator.error.too_long",[o.maxLength]);if(o.validity.rangeUnderflow)return n("validator.error.range_underflow",[o.min]);if(o.validity.rangeOverflow)return n("validator.error.range_overflow",[o.max]);if(o.validity.typeMismatch){if(o.type==="email")return n("validator.error.type_mismatch.email");if(o.type==="url")return n("validator.error.type_mismatch.url")}if(o.validity.badInput){if(o.type==="number")return n("validator.error.bad_input.number");if(o.type==="date")return n("validator.error.bad_input.date")}if(o.validity.patternMismatch)return n("validator.error.pattern_mismatch");if(o.validity.stepMismatch){const c=Math.floor(Number(o.value)/Number(o.step))*Number(o.step),p=Math.ceil(Number(o.value)/Number(o.step))*Number(o.step);return n("validator.error.step_mismatch",[c,p])}return o.validity.customError?o.validationMessage:null}function d(o){o.target!==null&&(l.value=s(o.target))}function a(){return l.value}return{onInvalid:d,getInvalidMessage:a,setCustomError:r}}const V=t.defineComponent({name:"BsInput",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=t.ref(null);return{inputRef:e,validator:h(e)}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const n=e.target;this.$emit("update:modelValue",n.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),I=["for","textContent"],N=["id","value","aria-describedby"],P=["textContent"],D=["id","textContent"];function v(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.label!==void 0?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.id,class:"form-label",textContent:t.toDisplayString(e.label)},null,8,I)):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue,class:"form-control"},e.$attrs,{"aria-describedby":e.hint!==void 0?e.getHintId():void 0,onInput:n[0]||(n[0]=(...a)=>e.onInput&&e.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>e.onInvalid&&e.onInvalid(...a))}),null,16,N),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(t.openBlock(),t.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:t.toDisplayString(e.validator.getInvalidMessage())},null,8,P)):t.createCommentVNode("",!0),e.hint!==void 0?(t.openBlock(),t.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:t.toDisplayString(e.hint)},null,8,D)):t.createCommentVNode("",!0)],64)}const M=m(V,[["render",v]]),w=t.defineComponent({name:"BsCheckbox",props:{value:{type:String,default:null},modelValue:{type:[Array,Boolean],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=t.ref(null);return{inputRef:e,validator:h(e)}},computed:{isChecked(){return this.modelValue instanceof Array?this.modelValue.includes(this.value):this.modelValue===!0}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const l=e.target.checked;if(this.modelValue instanceof Array){const r=[...this.modelValue];l?r.push(this.value):r.splice(r.indexOf(this.value),1),this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",l)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),H=["id","value","checked","aria-describedby"],R=["for","textContent"],L=["textContent"],A=["id","textContent"];function O(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["form-check",e.classContainer])},[t.createElementVNode("input",t.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue},e.$attrs,{type:"checkbox",class:"form-check-input",checked:e.isChecked,"aria-describedby":e.hint!==void 0?e.getHintId():void 0,onInput:n[0]||(n[0]=(...a)=>e.onInput&&e.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>e.onInvalid&&e.onInvalid(...a))}),null,16,H),e.label!==void 0?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.id,class:"form-check-label",textContent:t.toDisplayString(e.label)},null,8,R)):t.createCommentVNode("",!0),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(t.openBlock(),t.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:t.toDisplayString(e.validator.getInvalidMessage())},null,8,L)):t.createCommentVNode("",!0),e.hint!==void 0?(t.openBlock(),t.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:t.toDisplayString(e.hint)},null,8,A)):t.createCommentVNode("",!0)],2)}const T=m(w,[["render",O]]),_=t.defineComponent({name:"BsTextarea",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=t.ref(null);return{inputRef:e,validator:h(e)}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const n=e.target;this.$emit("update:modelValue",n.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),q=["for","textContent"],F=["id","value","aria-describedby"],z=["textContent"],j=["id","textContent"];function U(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.label!==void 0?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.id,class:"form-label",textContent:t.toDisplayString(e.label)},null,8,q)):t.createCommentVNode("",!0),t.createElementVNode("textarea",t.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue},e.$attrs,{class:"form-control","aria-describedby":e.hint!==void 0?e.getHintId():void 0,onInput:n[0]||(n[0]=(...a)=>e.onInput&&e.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>e.onInvalid&&e.onInvalid(...a))}),null,16,F),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(t.openBlock(),t.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:t.toDisplayString(e.validator.getInvalidMessage())},null,8,z)):t.createCommentVNode("",!0),e.hint!==void 0?(t.openBlock(),t.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:t.toDisplayString(e.hint)},null,8,j)):t.createCommentVNode("",!0)],64)}const W=m(_,[["render",U]]),G=t.defineComponent({name:"BsPaginator",props:{totalCount:{type:Number,required:!0},pageSize:{type:Number,required:!0},currentPage:{type:Number,required:!0},maxVisiblePage:{type:Number,default:5},firstPageLabel:{type:String,default:"«"},previousPageLabel:{type:String,default:"‹"},nextPageLabel:{type:String,default:"›"},lastPageLabel:{type:String,default:"»"}},emits:["pageChanged"],methods:{getPageCount(){return Math.ceil(this.totalCount/this.pageSize)},getVisiblePages(){const e=[],n=this.getPageRange();for(let l=n.beginPage;l<=n.endPage;l+=1)e.push(l+1);return e},isPageActive(e){return e===this.currentPage},onPageClick(e){this.isPageActive(e)||this.$emit("pageChanged",e)},getPageRange(){let e=Math.max(0,this.currentPage-this.maxVisiblePage/2),n=e+this.maxVisiblePage-1;return n>=this.getPageCount()&&(n=this.getPageCount()-1,e=Math.max(0,n-this.maxVisiblePage+1)),{beginPage:Math.floor(e),endPage:Math.floor(n)}}}}),J={class:"pagination"},K=["textContent"],Q=["textContent"],X=["onClick","textContent"],Y=["textContent"],Z=["textContent"];function x(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("nav",null,[t.createElementVNode("ul",J,[t.createElementVNode("li",{class:t.normalizeClass(["page-item page-item-first",{disabled:e.isPageActive(1)}])},[t.createElementVNode("div",{class:"page-link",onClick:n[0]||(n[0]=a=>e.onPageClick(1)),textContent:t.toDisplayString(e.firstPageLabel)},null,8,K)],2),t.createElementVNode("li",{class:t.normalizeClass(["page-item page-item-previous",{disabled:e.isPageActive(1)}])},[t.createElementVNode("div",{class:"page-link",onClick:n[1]||(n[1]=a=>e.onPageClick(e.currentPage-1)),textContent:t.toDisplayString(e.previousPageLabel)},null,8,Q)],2),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.getVisiblePages(),(a,o)=>(t.openBlock(),t.createElementBlock("li",{key:o,class:t.normalizeClass(["page-item page-item-number",{active:e.isPageActive(a)}])},[t.createElementVNode("div",{class:"page-link",onClick:c=>e.onPageClick(a),textContent:t.toDisplayString(a)},null,8,X)],2))),128)),t.createElementVNode("li",{class:t.normalizeClass(["page-item page-item-next",{disabled:e.isPageActive(e.getPageCount())}])},[t.createElementVNode("div",{class:"page-link",onClick:n[2]||(n[2]=a=>e.onPageClick(e.currentPage+1)),textContent:t.toDisplayString(e.nextPageLabel)},null,8,Y)],2),t.createElementVNode("li",{class:t.normalizeClass(["page-item page-item-last",{disabled:e.isPageActive(e.getPageCount())}])},[t.createElementVNode("div",{class:"page-link",onClick:n[3]||(n[3]=a=>e.onPageClick(e.getPageCount())),textContent:t.toDisplayString(e.lastPageLabel)},null,8,Z)],2)])])}const ee=m(G,[["render",x],["__scopeId","data-v-ff85ae67"]]),te=t.defineComponent({name:"BsTable",props:{fields:{type:Array,required:!0},items:{type:Array,required:!0},isLoading:{type:Boolean,default:!1},orderBy:{type:String,default:void 0},sortDesc:{type:Boolean,default:void 0},thClass:{type:String,default:void 0},tdClass:{type:String,default:void 0}},emits:["orderChanged"],methods:{isActiveOrderBy(e){return e===this.orderBy},isSortableField(e){return e.sort===void 0||e.sort},getSortIconClass(){if(this.sortDesc===void 0)throw new Error("Sort desc value is null, cannot calculate the sort icon!");return this.sortDesc?"bi bi-caret-up-fill":"bi bi-caret-down-fill"},calcSortDesc(e){return this.sortDesc===void 0?null:this.isOrderByChanged(e)?!1:!this.sortDesc},isOrderByChanged(e){return this.orderBy!==e},onHeadClick(e){this.isSortableField(e)&&this.$emit("orderChanged",{sortDesc:this.calcSortDesc(e.key),orderBy:e.key})}}}),ne=e=>(t.pushScopeId("data-v-7c949d62"),e=e(),t.popScopeId(),e),oe={class:"table"},ae=["onClick"],le={key:0},ie=["colspan"],re=ne(()=>t.createElementVNode("div",{class:"d-flex justify-content-center p-2"},[t.createElementVNode("div",{class:"spinner-border spinner-border-sm"})],-1)),se={key:1},de=["colspan"],ce={class:"text-center text-muted small"};function me(e,n,l,r,s,d){const a=t.resolveDirective("t");return t.openBlock(),t.createElementBlock("table",oe,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fields,o=>(t.openBlock(),t.createElementBlock("th",{key:o.key,class:t.normalizeClass({"cursor-pointer":e.isSortableField(o),"text-decoration-underline":e.isActiveOrderBy(o.key),thClass:e.thClass}),onClick:c=>e.onHeadClick(o)},[t.renderSlot(e.$slots,"tr",{},()=>[t.createTextVNode(t.toDisplayString(o.label)+" ",1),e.isActiveOrderBy(o.key)&&e.sortDesc!==void 0?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(e.getSortIconClass())},null,2)):t.createCommentVNode("",!0)],!0)],10,ae))),128))])]),t.createElementVNode("tbody",null,[e.isLoading?(t.openBlock(),t.createElementBlock("tr",le,[t.createElementVNode("td",{colspan:e.fields.length},[t.renderSlot(e.$slots,"loading",{},()=>[re],!0)],8,ie)])):e.items.length===0?(t.openBlock(),t.createElementBlock("tr",se,[t.createElementVNode("td",{colspan:e.fields.length},[t.renderSlot(e.$slots,"empty",{},()=>[t.withDirectives(t.createElementVNode("div",ce,null,512),[[a,"table.empty_text"]])],!0)],8,de)])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.items,(o,c)=>(t.openBlock(),t.createElementBlock("tr",{key:c,class:t.normalizeClass(o.trClass)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fields,p=>(t.openBlock(),t.createElementBlock("td",{key:p.key,class:t.normalizeClass(e.tdClass)},[t.renderSlot(e.$slots,"td",{key:c,field:p.key,row:o,value:p.key in o?o[p.key]:null},()=>[t.createTextVNode(t.toDisplayString(o[p.key]),1)],!0)],2))),128))],2))),128))])])}const pe=m(te,[["render",me],["__scopeId","data-v-7c949d62"]]),fe=t.defineComponent({name:"BsToast",emits:["shown","hidden"],mounted(){const e=this.$refs.toastRef;f.Toast.getOrCreateInstance(e).show(),e.addEventListener("shown.bs.toast",this.onShown),e.addEventListener("hidden.bs.toast",this.onHidden)},methods:{hide(){const e=this.$refs.toastRef;f.Toast.getOrCreateInstance(e).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),he={ref:"toastRef",class:"toast hide",role:"alert","aria-live":"assertive","aria-atomic":"true"};function ge(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("div",he,[t.renderSlot(e.$slots,"default")],512)}const ue=m(fe,[["render",ge]]),ke=t.defineComponent({name:"BsModal",props:{title:{type:String,required:!0},classDialog:{type:[String,Object],default:null},hideHeader:{type:Boolean,default:!1},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1}},emits:["shown","hidden"],mounted(){const e=this.$refs.modalRef;f.Modal.getOrCreateInstance(e).show(),e.addEventListener("shown.bs.modal",this.onShown),e.addEventListener("hidden.bs.modal",this.onHidden)},methods:{hide(){const e=this.$refs.modalRef;f.Modal.getOrCreateInstance(e).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),ye={ref:"modalRef",class:"modal fade",tabindex:"-1","aria-hidden":"true"},be={class:"modal-content"},Be={key:0,class:"modal-header"},$e=["textContent"],Ce=t.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"},null,-1),Ee={key:1,class:"modal-body"},Se={key:2,class:"modal-footer"};function Ve(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("div",ye,[t.createElementVNode("div",{class:t.normalizeClass(["modal-dialog",e.classDialog])},[t.createElementVNode("div",be,[e.hideHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Be,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("div",{class:"h5 modal-title",textContent:t.toDisplayString(e.title)},null,8,$e),Ce])])),e.hideBody?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ee,[t.renderSlot(e.$slots,"body")])),e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Se,[t.renderSlot(e.$slots,"footer")]))])],2)],512)}const Ie=m(ke,[["render",Ve]]),Ne=t.defineComponent({name:"BsSelect",props:{modelValue:{type:[String,Number,Array],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},options:{type:Array,required:!0},placeholder:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=t.ref(null);return{inputRef:e,validator:h(e)}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const n=e.target;this.$emit("update:modelValue",n.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),Pe=["for","textContent"],De=["id","value","aria-labelledby"],ve={key:0,value:"",disabled:"",hidden:""},Me=["value"],we=["textContent"],He=["id","textContent"];function Re(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.label!==void 0?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.id,class:"form-label",textContent:t.toDisplayString(e.label)},null,8,Pe)):t.createCommentVNode("",!0),t.createElementVNode("select",t.mergeProps({id:e.id,ref:"inputRef",class:"form-select",value:e.modelValue,"aria-labelledby":e.hint!==void 0?e.getHintId():void 0},e.$attrs,{onInput:n[0]||(n[0]=(...a)=>e.onInput&&e.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>e.onInvalid&&e.onInvalid(...a))}),[e.placeholder!==void 0?(t.openBlock(),t.createElementBlock("option",ve,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(a,o)=>(t.openBlock(),t.createElementBlock("option",{key:o,value:a.value},t.toDisplayString(a.text),9,Me))),128))],16,De),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(t.openBlock(),t.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:t.toDisplayString(e.validator.getInvalidMessage())},null,8,we)):t.createCommentVNode("",!0),e.hint!==void 0?(t.openBlock(),t.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:t.toDisplayString(e.hint)},null,8,He)):t.createCommentVNode("",!0)],64)}const Le=m(Ne,[["render",Re]]),Ae=t.defineComponent({name:"BsRadio",props:{value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=t.ref(null);return{inputRef:e,validator:h(e)}},computed:{isChecked(){return this.modelValue===this.value}},methods:{getHintId(){return this.id+"Hint"},onInput(){this.$emit("update:modelValue",this.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),Oe=["id","value","checked","aria-describedby"],Te=["for","textContent"],_e=["textContent"],qe=["id","textContent"];function Fe(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["form-check",e.classContainer])},[t.createElementVNode("input",t.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue},e.$attrs,{type:"radio",class:"form-check-input",checked:e.isChecked,"aria-describedby":e.hint!==void 0?e.getHintId():void 0,onInput:n[0]||(n[0]=(...a)=>e.onInput&&e.onInput(...a)),onInvalid:n[1]||(n[1]=(...a)=>e.onInvalid&&e.onInvalid(...a))}),null,16,Oe),e.label!==void 0?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.id,class:"form-check-label",textContent:t.toDisplayString(e.label)},null,8,Te)):t.createCommentVNode("",!0),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(t.openBlock(),t.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:t.toDisplayString(e.validator.getInvalidMessage())},null,8,_e)):t.createCommentVNode("",!0),e.hint!==void 0?(t.openBlock(),t.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:t.toDisplayString(e.hint)},null,8,qe)):t.createCommentVNode("",!0)],2)}const ze=m(Ae,[["render",Fe]]),je=t.defineComponent({name:"BsOffcanvas",props:{title:{type:String,required:!0}},emits:["shown","hidden"],mounted(){const e=this.$refs.offcanvasRef;f.Offcanvas.getOrCreateInstance(e).show(),e.addEventListener("shown.bs.offcanvas",this.onShown),e.addEventListener("hidden.bs.offcanvas",this.onHidden)},methods:{hide(){const e=this.$refs.offcanvasRef;f.Offcanvas.getOrCreateInstance(e).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),Ue={ref:"offcanvasRef",class:"offcanvas",tabindex:"-1","aria-labelledby":"offcanvasTitle"},We={class:"offcanvas-header"},Ge=["textContent"],Je=t.createElementVNode("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas"},null,-1),Ke={class:"offcanvas-body"};function Qe(e,n,l,r,s,d){return t.openBlock(),t.createElementBlock("div",Ue,[t.createElementVNode("div",We,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("div",{id:"offcanvasTitle",class:"h5 mb-0",textContent:t.toDisplayString(e.title)},null,8,Ge),Je])]),t.createElementVNode("div",Ke,[t.renderSlot(e.$slots,"body")])],512)}const Xe=m(je,[["render",Qe]]);i.BsBreadcrumb=$,i.BsCheckbox=T,i.BsForm=S,i.BsInput=M,i.BsModal=Ie,i.BsOffcanvas=Xe,i.BsPaginator=ee,i.BsRadio=ze,i.BsSelect=Le,i.BsTable=pe,i.BsTextarea=W,i.BsToast=ue,i.useValidator=h,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
* @param item
|
|
21
21
|
* @returns {boolean}
|
|
22
22
|
*/
|
|
23
|
-
isRouteAvailable(item:
|
|
23
|
+
isRouteAvailable(item: BreadcrumbItem): boolean;
|
|
24
24
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
/**
|
|
26
26
|
* List of breadcrumb items.
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
}, {
|
|
53
53
|
inputRef: Ref<HTMLInputElement | null>;
|
|
54
54
|
validator: {
|
|
55
|
-
onInvalid: (event:
|
|
55
|
+
onInvalid: (event: Event) => void;
|
|
56
56
|
getInvalidMessage: () => string | null;
|
|
57
57
|
setCustomError: (data: string) => void;
|
|
58
58
|
};
|
|
@@ -65,19 +65,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
/**
|
|
66
66
|
* Hint id is generated
|
|
67
67
|
*/
|
|
68
|
-
getHintId():
|
|
68
|
+
getHintId(): string;
|
|
69
69
|
/**
|
|
70
70
|
* On input event
|
|
71
71
|
*
|
|
72
72
|
* @param event
|
|
73
73
|
*/
|
|
74
|
-
onInput(event:
|
|
74
|
+
onInput(event: Event): void;
|
|
75
75
|
/**
|
|
76
76
|
* On invalid event
|
|
77
77
|
*
|
|
78
78
|
* @param event
|
|
79
79
|
*/
|
|
80
|
-
onInvalid(event:
|
|
80
|
+
onInvalid(event: Event): void;
|
|
81
81
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
82
|
/**
|
|
83
83
|
* Value for checkbox if v-model is array.
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
}, {
|
|
39
39
|
inputRef: Ref<HTMLInputElement | null>;
|
|
40
40
|
validator: {
|
|
41
|
-
onInvalid: (event:
|
|
41
|
+
onInvalid: (event: Event) => void;
|
|
42
42
|
getInvalidMessage: () => string | null;
|
|
43
43
|
setCustomError: (data: string) => void;
|
|
44
44
|
};
|
|
@@ -52,13 +52,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
*
|
|
53
53
|
* @param event
|
|
54
54
|
*/
|
|
55
|
-
onInput(event:
|
|
55
|
+
onInput(event: Event): void;
|
|
56
56
|
/**
|
|
57
57
|
* On invalid event
|
|
58
58
|
*
|
|
59
59
|
* @param event
|
|
60
60
|
*/
|
|
61
|
-
onInvalid(event:
|
|
61
|
+
onInvalid(event: Event): void;
|
|
62
62
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
/**
|
|
64
64
|
* Value for v-model
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
}, {
|
|
53
53
|
inputRef: Ref<HTMLInputElement | null>;
|
|
54
54
|
validator: {
|
|
55
|
-
onInvalid: (event:
|
|
55
|
+
onInvalid: (event: Event) => void;
|
|
56
56
|
getInvalidMessage: () => string | null;
|
|
57
57
|
setCustomError: (data: string) => void;
|
|
58
58
|
};
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
*
|
|
76
76
|
* @param event
|
|
77
77
|
*/
|
|
78
|
-
onInvalid(event:
|
|
78
|
+
onInvalid(event: Event): void;
|
|
79
79
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
80
|
/**
|
|
81
81
|
* Radio value
|
|
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
}, {
|
|
57
57
|
inputRef: Ref<HTMLInputElement | null>;
|
|
58
58
|
validator: {
|
|
59
|
-
onInvalid: (event:
|
|
59
|
+
onInvalid: (event: Event) => void;
|
|
60
60
|
getInvalidMessage: () => string | null;
|
|
61
61
|
setCustomError: (data: string) => void;
|
|
62
62
|
};
|
|
@@ -70,13 +70,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
70
|
*
|
|
71
71
|
* @param event
|
|
72
72
|
*/
|
|
73
|
-
onInput(event:
|
|
73
|
+
onInput(event: Event): void;
|
|
74
74
|
/**
|
|
75
75
|
* On invalid event
|
|
76
76
|
*
|
|
77
77
|
* @param event
|
|
78
78
|
*/
|
|
79
|
-
onInvalid(event:
|
|
79
|
+
onInvalid(event: Event): void;
|
|
80
80
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
81
|
/**
|
|
82
82
|
* Value for v-model
|
|
@@ -16,11 +16,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
* Item list
|
|
17
17
|
*/
|
|
18
18
|
items: {
|
|
19
|
-
type:
|
|
19
|
+
type: PropType<any[]>;
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
* Items
|
|
23
|
+
* Items loading
|
|
24
24
|
*/
|
|
25
25
|
isLoading: {
|
|
26
26
|
type: BooleanConstructor;
|
|
@@ -58,17 +58,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
/**
|
|
59
59
|
* Is order by active by field?
|
|
60
60
|
*
|
|
61
|
-
* @param
|
|
61
|
+
* @param fieldKey
|
|
62
62
|
* @returns {boolean}
|
|
63
63
|
*/
|
|
64
|
-
isActiveOrderBy(
|
|
64
|
+
isActiveOrderBy(fieldKey: string): boolean;
|
|
65
65
|
/**
|
|
66
66
|
* Is field sortable?
|
|
67
67
|
*
|
|
68
68
|
* @param field
|
|
69
69
|
* @returns {boolean}
|
|
70
70
|
*/
|
|
71
|
-
isSortableField(field:
|
|
71
|
+
isSortableField(field: Field): boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Sort icon class.
|
|
74
74
|
*
|
|
@@ -79,15 +79,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
79
|
* Calcuate sort desc value on click
|
|
80
80
|
* Returns null if there is no sortDesc value.
|
|
81
81
|
*/
|
|
82
|
-
calcSortDesc(
|
|
82
|
+
calcSortDesc(fieldKey: string): boolean | null;
|
|
83
83
|
/**
|
|
84
84
|
* Is order by changed?
|
|
85
85
|
*/
|
|
86
|
-
isOrderByChanged(
|
|
86
|
+
isOrderByChanged(fieldKey: string): boolean;
|
|
87
87
|
/**
|
|
88
88
|
* Table head clicked.
|
|
89
89
|
*/
|
|
90
|
-
onHeadClick(field:
|
|
90
|
+
onHeadClick(field: Field): void;
|
|
91
91
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "orderChanged"[], "orderChanged", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
92
|
/**
|
|
93
93
|
* Field list
|
|
@@ -100,11 +100,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
100
|
* Item list
|
|
101
101
|
*/
|
|
102
102
|
items: {
|
|
103
|
-
type:
|
|
103
|
+
type: PropType<any[]>;
|
|
104
104
|
required: true;
|
|
105
105
|
};
|
|
106
106
|
/**
|
|
107
|
-
* Items
|
|
107
|
+
* Items loading
|
|
108
108
|
*/
|
|
109
109
|
isLoading: {
|
|
110
110
|
type: BooleanConstructor;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
}, {
|
|
39
39
|
inputRef: Ref<HTMLInputElement | null>;
|
|
40
40
|
validator: {
|
|
41
|
-
onInvalid: (event:
|
|
41
|
+
onInvalid: (event: Event) => void;
|
|
42
42
|
getInvalidMessage: () => string | null;
|
|
43
43
|
setCustomError: (data: string) => void;
|
|
44
44
|
};
|
|
@@ -52,13 +52,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
*
|
|
53
53
|
* @param event
|
|
54
54
|
*/
|
|
55
|
-
onInput(event:
|
|
55
|
+
onInput(event: Event): void;
|
|
56
56
|
/**
|
|
57
57
|
* On invalid event
|
|
58
58
|
*
|
|
59
59
|
* @param event
|
|
60
60
|
*/
|
|
61
|
-
onInvalid(event:
|
|
61
|
+
onInvalid(event: Event): void;
|
|
62
62
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
/**
|
|
64
64
|
* Value for v-model
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
export declare function useValidator(inputRef: Ref<HTMLInputElement | null>): {
|
|
3
|
-
onInvalid: (event:
|
|
3
|
+
onInvalid: (event: Event) => void;
|
|
4
4
|
getInvalidMessage: () => string | null;
|
|
5
5
|
setCustomError: (data: string) => void;
|
|
6
6
|
};
|
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-
|
|
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-7c949d62]{cursor:pointer}
|