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.
- package/dist/bootstrap-vue-wrapper.js +26 -1282
- package/dist/bootstrap-vue-wrapper10.js +51 -0
- package/dist/bootstrap-vue-wrapper11.js +50 -0
- package/dist/bootstrap-vue-wrapper12.js +43 -0
- package/dist/bootstrap-vue-wrapper13.js +34 -0
- package/dist/bootstrap-vue-wrapper14.js +54 -0
- package/dist/bootstrap-vue-wrapper15.js +27 -0
- package/dist/bootstrap-vue-wrapper16.js +9 -0
- package/dist/bootstrap-vue-wrapper17.js +23 -0
- package/dist/bootstrap-vue-wrapper18.js +78 -0
- package/dist/bootstrap-vue-wrapper19.js +104 -0
- package/dist/bootstrap-vue-wrapper2.js +32 -0
- package/dist/bootstrap-vue-wrapper20.js +78 -0
- package/dist/bootstrap-vue-wrapper21.js +114 -0
- package/dist/bootstrap-vue-wrapper22.js +1 -0
- package/dist/bootstrap-vue-wrapper23.js +108 -0
- package/dist/bootstrap-vue-wrapper24.js +1 -0
- package/dist/bootstrap-vue-wrapper25.js +34 -0
- package/dist/bootstrap-vue-wrapper26.js +59 -0
- package/dist/bootstrap-vue-wrapper27.js +92 -0
- package/dist/bootstrap-vue-wrapper28.js +97 -0
- package/dist/bootstrap-vue-wrapper29.js +43 -0
- package/dist/bootstrap-vue-wrapper3.js +18 -0
- package/dist/bootstrap-vue-wrapper4.js +39 -0
- package/dist/bootstrap-vue-wrapper5.js +43 -0
- package/dist/bootstrap-vue-wrapper6.js +39 -0
- package/dist/bootstrap-vue-wrapper7.js +63 -0
- package/dist/bootstrap-vue-wrapper8.js +75 -0
- package/dist/bootstrap-vue-wrapper9.js +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/bootstrap-vue-wrapper.umd.cjs +0 -1
- package/dist/components/bs-paginator/index.d.ts +0 -2
|
@@ -1,1284 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
methods: {
|
|
16
|
-
/**
|
|
17
|
-
* Is route available
|
|
18
|
-
*
|
|
19
|
-
* @param item
|
|
20
|
-
* @returns {boolean}
|
|
21
|
-
*/
|
|
22
|
-
isRouteAvailable(e) {
|
|
23
|
-
return e.route !== void 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}), c = (e, t) => {
|
|
27
|
-
const r = e.__vccOpts || e;
|
|
28
|
-
for (const [d, v] of t)
|
|
29
|
-
r[d] = v;
|
|
30
|
-
return r;
|
|
31
|
-
}, D = { "aria-label": "breadcrumb" }, q = { class: "breadcrumb" }, T = ["textContent"];
|
|
32
|
-
function F(e, t, r, d, v, f) {
|
|
33
|
-
const o = w("router-link");
|
|
34
|
-
return a(), i("nav", D, [
|
|
35
|
-
s("ol", q, [
|
|
36
|
-
(a(!0), i(b, null, y(e.items, (n, p) => (a(), i("li", {
|
|
37
|
-
key: p,
|
|
38
|
-
class: h(["breadcrumb-item", { active: !e.isRouteAvailable(n) }])
|
|
39
|
-
}, [
|
|
40
|
-
e.isRouteAvailable(n) ? (a(), M(o, {
|
|
41
|
-
key: 0,
|
|
42
|
-
to: n.route
|
|
43
|
-
}, {
|
|
44
|
-
default: H(() => [
|
|
45
|
-
S(l(n.title), 1)
|
|
46
|
-
]),
|
|
47
|
-
_: 2
|
|
48
|
-
}, 1032, ["to"])) : (a(), i("span", {
|
|
49
|
-
key: 1,
|
|
50
|
-
textContent: l(n.title)
|
|
51
|
-
}, null, 8, T))
|
|
52
|
-
], 2))), 128))
|
|
53
|
-
])
|
|
54
|
-
]);
|
|
55
|
-
}
|
|
56
|
-
const rt = /* @__PURE__ */ c(_, [["render", F]]), z = m({
|
|
57
|
-
name: "BsForm",
|
|
58
|
-
emits: ["submit"],
|
|
59
|
-
data() {
|
|
60
|
-
return {
|
|
61
|
-
submitClicked: !1
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
/**
|
|
66
|
-
* On submit event.
|
|
67
|
-
*
|
|
68
|
-
* @param event
|
|
69
|
-
*/
|
|
70
|
-
onSubmit(e) {
|
|
71
|
-
e.preventDefault(), this.submitClicked = !0, this.$emit("submit", e);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
function j(e, t, r, d, v, f) {
|
|
76
|
-
return a(), i("form", {
|
|
77
|
-
class: h(["needs-validation", {
|
|
78
|
-
"was-validated": e.submitClicked
|
|
79
|
-
}]),
|
|
80
|
-
novalidate: "",
|
|
81
|
-
onSubmit: t[0] || (t[0] = (...o) => e.onSubmit && e.onSubmit(...o))
|
|
82
|
-
}, [
|
|
83
|
-
g(e.$slots, "default")
|
|
84
|
-
], 34);
|
|
85
|
-
}
|
|
86
|
-
const dt = /* @__PURE__ */ c(z, [["render", j]]);
|
|
87
|
-
function I(e) {
|
|
88
|
-
const { t } = N(), r = C(null);
|
|
89
|
-
function d(n) {
|
|
90
|
-
const p = e.value;
|
|
91
|
-
p !== null && (n !== null ? p.setCustomValidity(n) : p.setCustomValidity(""), r.value = v(p));
|
|
92
|
-
}
|
|
93
|
-
function v(n) {
|
|
94
|
-
if (n.validity.valueMissing)
|
|
95
|
-
return t("validator.error.value_missing");
|
|
96
|
-
if (n.validity.tooShort)
|
|
97
|
-
return t("validator.error.too_short", [n.minLength]);
|
|
98
|
-
if (n.validity.tooLong)
|
|
99
|
-
return t("validator.error.too_long", [n.maxLength]);
|
|
100
|
-
if (n.validity.rangeUnderflow)
|
|
101
|
-
return t("validator.error.range_underflow", [n.min]);
|
|
102
|
-
if (n.validity.rangeOverflow)
|
|
103
|
-
return t("validator.error.range_overflow", [n.max]);
|
|
104
|
-
if (n.validity.typeMismatch) {
|
|
105
|
-
if (n.type === "email")
|
|
106
|
-
return t("validator.error.type_mismatch.email");
|
|
107
|
-
if (n.type === "url")
|
|
108
|
-
return t("validator.error.type_mismatch.url");
|
|
109
|
-
}
|
|
110
|
-
if (n.validity.badInput) {
|
|
111
|
-
if (n.type === "number")
|
|
112
|
-
return t("validator.error.bad_input.number");
|
|
113
|
-
if (n.type === "date")
|
|
114
|
-
return t("validator.error.bad_input.date");
|
|
115
|
-
}
|
|
116
|
-
if (n.validity.patternMismatch)
|
|
117
|
-
return t("validator.error.pattern_mismatch");
|
|
118
|
-
if (n.validity.stepMismatch) {
|
|
119
|
-
const p = Math.floor(Number(n.value) / Number(n.step)) * Number(n.step), $ = Math.ceil(Number(n.value) / Number(n.step)) * Number(n.step);
|
|
120
|
-
return t("validator.error.step_mismatch", [p, $]);
|
|
121
|
-
}
|
|
122
|
-
return n.validity.customError ? n.validationMessage : null;
|
|
123
|
-
}
|
|
124
|
-
function f(n) {
|
|
125
|
-
n.target !== null && (r.value = v(n.target));
|
|
126
|
-
}
|
|
127
|
-
function o() {
|
|
128
|
-
return r.value;
|
|
129
|
-
}
|
|
130
|
-
return {
|
|
131
|
-
onInvalid: f,
|
|
132
|
-
getInvalidMessage: o,
|
|
133
|
-
setCustomError: d
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
const U = m({
|
|
137
|
-
name: "BsInput",
|
|
138
|
-
props: {
|
|
139
|
-
/**
|
|
140
|
-
* Value for v-model
|
|
141
|
-
*/
|
|
142
|
-
modelValue: {
|
|
143
|
-
type: [String, Number],
|
|
144
|
-
default: null
|
|
145
|
-
},
|
|
146
|
-
/**
|
|
147
|
-
* Html id
|
|
148
|
-
*/
|
|
149
|
-
id: {
|
|
150
|
-
type: String,
|
|
151
|
-
required: !0
|
|
152
|
-
},
|
|
153
|
-
/**
|
|
154
|
-
* Label for input
|
|
155
|
-
*/
|
|
156
|
-
label: {
|
|
157
|
-
type: String,
|
|
158
|
-
default: void 0
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* Attribute hint
|
|
162
|
-
*/
|
|
163
|
-
hint: {
|
|
164
|
-
type: String,
|
|
165
|
-
default: void 0
|
|
166
|
-
},
|
|
167
|
-
/**
|
|
168
|
-
* Enable or disable validator
|
|
169
|
-
*/
|
|
170
|
-
validatorEnabled: {
|
|
171
|
-
type: Boolean,
|
|
172
|
-
default: !0
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
emits: ["update:modelValue"],
|
|
176
|
-
setup() {
|
|
177
|
-
const e = C(null);
|
|
178
|
-
return {
|
|
179
|
-
inputRef: e,
|
|
180
|
-
validator: I(e)
|
|
181
|
-
};
|
|
182
|
-
},
|
|
183
|
-
methods: {
|
|
184
|
-
/**
|
|
185
|
-
* Hint id is generated
|
|
186
|
-
*/
|
|
187
|
-
getHintId() {
|
|
188
|
-
return this.id + "Hint";
|
|
189
|
-
},
|
|
190
|
-
/**
|
|
191
|
-
* On input event
|
|
192
|
-
*
|
|
193
|
-
* @param event
|
|
194
|
-
*/
|
|
195
|
-
onInput(e) {
|
|
196
|
-
const t = e.target;
|
|
197
|
-
this.$emit("update:modelValue", t.value);
|
|
198
|
-
},
|
|
199
|
-
/**
|
|
200
|
-
* On invalid event
|
|
201
|
-
*
|
|
202
|
-
* @param event
|
|
203
|
-
*/
|
|
204
|
-
onInvalid(e) {
|
|
205
|
-
this.validatorEnabled && this.validator.onInvalid(e);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}), G = ["for", "textContent"], J = ["id", "value", "aria-describedby"], K = ["textContent"], Q = ["id", "textContent"];
|
|
209
|
-
function W(e, t, r, d, v, f) {
|
|
210
|
-
return a(), i(b, null, [
|
|
211
|
-
e.label !== void 0 ? (a(), i("label", {
|
|
212
|
-
key: 0,
|
|
213
|
-
for: e.id,
|
|
214
|
-
class: "form-label",
|
|
215
|
-
textContent: l(e.label)
|
|
216
|
-
}, null, 8, G)) : u("", !0),
|
|
217
|
-
s("input", k({
|
|
218
|
-
id: e.id,
|
|
219
|
-
ref: "inputRef",
|
|
220
|
-
value: e.modelValue,
|
|
221
|
-
class: "form-control"
|
|
222
|
-
}, e.$attrs, {
|
|
223
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
224
|
-
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
225
|
-
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
226
|
-
}), null, 16, J),
|
|
227
|
-
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
228
|
-
key: 1,
|
|
229
|
-
class: "invalid-feedback",
|
|
230
|
-
textContent: l(e.validator.getInvalidMessage())
|
|
231
|
-
}, null, 8, K)) : u("", !0),
|
|
232
|
-
e.hint !== void 0 ? (a(), i("div", {
|
|
233
|
-
key: 2,
|
|
234
|
-
id: e.getHintId(),
|
|
235
|
-
class: "form-text",
|
|
236
|
-
textContent: l(e.hint)
|
|
237
|
-
}, null, 8, Q)) : u("", !0)
|
|
238
|
-
], 64);
|
|
239
|
-
}
|
|
240
|
-
const ut = /* @__PURE__ */ c(U, [["render", W]]), X = m({
|
|
241
|
-
name: "BsCheckbox",
|
|
242
|
-
props: {
|
|
243
|
-
/**
|
|
244
|
-
* Value for checkbox if v-model is array.
|
|
245
|
-
*/
|
|
246
|
-
value: {
|
|
247
|
-
type: String,
|
|
248
|
-
default: null
|
|
249
|
-
},
|
|
250
|
-
/**
|
|
251
|
-
* Value for v-model
|
|
252
|
-
*/
|
|
253
|
-
modelValue: {
|
|
254
|
-
type: [Array, Boolean],
|
|
255
|
-
default: null
|
|
256
|
-
},
|
|
257
|
-
/**
|
|
258
|
-
* Html id
|
|
259
|
-
*/
|
|
260
|
-
id: {
|
|
261
|
-
type: String,
|
|
262
|
-
required: !0
|
|
263
|
-
},
|
|
264
|
-
/**
|
|
265
|
-
* Label for input
|
|
266
|
-
*/
|
|
267
|
-
label: {
|
|
268
|
-
type: String,
|
|
269
|
-
default: void 0
|
|
270
|
-
},
|
|
271
|
-
/**
|
|
272
|
-
* Attribute hint
|
|
273
|
-
*/
|
|
274
|
-
hint: {
|
|
275
|
-
type: String,
|
|
276
|
-
default: void 0
|
|
277
|
-
},
|
|
278
|
-
/**
|
|
279
|
-
* Input container div class.
|
|
280
|
-
*/
|
|
281
|
-
classContainer: {
|
|
282
|
-
type: String,
|
|
283
|
-
default: void 0
|
|
284
|
-
},
|
|
285
|
-
/**
|
|
286
|
-
* Enable or disable validator
|
|
287
|
-
*/
|
|
288
|
-
validatorEnabled: {
|
|
289
|
-
type: Boolean,
|
|
290
|
-
default: !0
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
emits: ["update:modelValue"],
|
|
294
|
-
setup() {
|
|
295
|
-
const e = C(null);
|
|
296
|
-
return {
|
|
297
|
-
inputRef: e,
|
|
298
|
-
validator: I(e)
|
|
299
|
-
};
|
|
300
|
-
},
|
|
301
|
-
computed: {
|
|
302
|
-
/**
|
|
303
|
-
* Checkbox is checked or not.
|
|
304
|
-
*/
|
|
305
|
-
isChecked() {
|
|
306
|
-
return this.modelValue instanceof Array ? this.modelValue.includes(this.value) : this.modelValue === !0;
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
methods: {
|
|
310
|
-
/**
|
|
311
|
-
* Hint id is generated
|
|
312
|
-
*/
|
|
313
|
-
getHintId() {
|
|
314
|
-
return this.id + "Hint";
|
|
315
|
-
},
|
|
316
|
-
/**
|
|
317
|
-
* On input event
|
|
318
|
-
*
|
|
319
|
-
* @param event
|
|
320
|
-
*/
|
|
321
|
-
onInput(e) {
|
|
322
|
-
const r = e.target.checked;
|
|
323
|
-
if (this.modelValue instanceof Array) {
|
|
324
|
-
const d = [...this.modelValue];
|
|
325
|
-
r ? d.push(this.value) : d.splice(d.indexOf(this.value), 1), this.$emit("update:modelValue", d);
|
|
326
|
-
} else
|
|
327
|
-
this.$emit("update:modelValue", r);
|
|
328
|
-
},
|
|
329
|
-
/**
|
|
330
|
-
* On invalid event
|
|
331
|
-
*
|
|
332
|
-
* @param event
|
|
333
|
-
*/
|
|
334
|
-
onInvalid(e) {
|
|
335
|
-
this.validatorEnabled && this.validator.onInvalid(e);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}), Y = ["id", "value", "checked", "aria-describedby"], Z = ["for", "textContent"], x = ["textContent"], ee = ["id", "textContent"];
|
|
339
|
-
function te(e, t, r, d, v, f) {
|
|
340
|
-
return a(), i("div", {
|
|
341
|
-
class: h(["form-check", e.classContainer])
|
|
342
|
-
}, [
|
|
343
|
-
s("input", k({
|
|
344
|
-
id: e.id,
|
|
345
|
-
ref: "inputRef",
|
|
346
|
-
value: e.modelValue
|
|
347
|
-
}, e.$attrs, {
|
|
348
|
-
type: "checkbox",
|
|
349
|
-
class: "form-check-input",
|
|
350
|
-
checked: e.isChecked,
|
|
351
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
352
|
-
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
353
|
-
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
354
|
-
}), null, 16, Y),
|
|
355
|
-
e.label !== void 0 ? (a(), i("label", {
|
|
356
|
-
key: 0,
|
|
357
|
-
for: e.id,
|
|
358
|
-
class: "form-check-label",
|
|
359
|
-
textContent: l(e.label)
|
|
360
|
-
}, null, 8, Z)) : u("", !0),
|
|
361
|
-
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
362
|
-
key: 1,
|
|
363
|
-
class: "invalid-feedback",
|
|
364
|
-
textContent: l(e.validator.getInvalidMessage())
|
|
365
|
-
}, null, 8, x)) : u("", !0),
|
|
366
|
-
e.hint !== void 0 ? (a(), i("div", {
|
|
367
|
-
key: 2,
|
|
368
|
-
id: e.getHintId(),
|
|
369
|
-
class: "form-text",
|
|
370
|
-
textContent: l(e.hint)
|
|
371
|
-
}, null, 8, ee)) : u("", !0)
|
|
372
|
-
], 2);
|
|
373
|
-
}
|
|
374
|
-
const vt = /* @__PURE__ */ c(X, [["render", te]]), ne = m({
|
|
375
|
-
name: "BsTextarea",
|
|
376
|
-
props: {
|
|
377
|
-
/**
|
|
378
|
-
* Value for v-model
|
|
379
|
-
*/
|
|
380
|
-
modelValue: {
|
|
381
|
-
type: [String, Number],
|
|
382
|
-
default: null
|
|
383
|
-
},
|
|
384
|
-
/**
|
|
385
|
-
* Html id
|
|
386
|
-
*/
|
|
387
|
-
id: {
|
|
388
|
-
type: String,
|
|
389
|
-
required: !0
|
|
390
|
-
},
|
|
391
|
-
/**
|
|
392
|
-
* Label for textarea
|
|
393
|
-
*/
|
|
394
|
-
label: {
|
|
395
|
-
type: String,
|
|
396
|
-
default: void 0
|
|
397
|
-
},
|
|
398
|
-
/**
|
|
399
|
-
* Attribute hint
|
|
400
|
-
*/
|
|
401
|
-
hint: {
|
|
402
|
-
type: String,
|
|
403
|
-
default: void 0
|
|
404
|
-
},
|
|
405
|
-
/**
|
|
406
|
-
* Enable or disable validator
|
|
407
|
-
*/
|
|
408
|
-
validatorEnabled: {
|
|
409
|
-
type: Boolean,
|
|
410
|
-
default: !0
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
emits: ["update:modelValue"],
|
|
414
|
-
setup() {
|
|
415
|
-
const e = C(null);
|
|
416
|
-
return {
|
|
417
|
-
inputRef: e,
|
|
418
|
-
validator: I(e)
|
|
419
|
-
};
|
|
420
|
-
},
|
|
421
|
-
methods: {
|
|
422
|
-
/**
|
|
423
|
-
* Hint id is generated
|
|
424
|
-
*/
|
|
425
|
-
getHintId() {
|
|
426
|
-
return this.id + "Hint";
|
|
427
|
-
},
|
|
428
|
-
/**
|
|
429
|
-
* On input event
|
|
430
|
-
*
|
|
431
|
-
* @param event
|
|
432
|
-
*/
|
|
433
|
-
onInput(e) {
|
|
434
|
-
const t = e.target;
|
|
435
|
-
this.$emit("update:modelValue", t.value);
|
|
436
|
-
},
|
|
437
|
-
/**
|
|
438
|
-
* On invalid event
|
|
439
|
-
*
|
|
440
|
-
* @param event
|
|
441
|
-
*/
|
|
442
|
-
onInvalid(e) {
|
|
443
|
-
this.validatorEnabled && this.validator.onInvalid(e);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}), ae = ["for", "textContent"], ie = ["id", "value", "aria-describedby"], oe = ["textContent"], se = ["id", "textContent"];
|
|
447
|
-
function le(e, t, r, d, v, f) {
|
|
448
|
-
return a(), i(b, null, [
|
|
449
|
-
e.label !== void 0 ? (a(), i("label", {
|
|
450
|
-
key: 0,
|
|
451
|
-
for: e.id,
|
|
452
|
-
class: "form-label",
|
|
453
|
-
textContent: l(e.label)
|
|
454
|
-
}, null, 8, ae)) : u("", !0),
|
|
455
|
-
s("textarea", k({
|
|
456
|
-
id: e.id,
|
|
457
|
-
ref: "inputRef",
|
|
458
|
-
value: e.modelValue
|
|
459
|
-
}, e.$attrs, {
|
|
460
|
-
class: "form-control",
|
|
461
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
462
|
-
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
463
|
-
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
464
|
-
}), null, 16, ie),
|
|
465
|
-
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
466
|
-
key: 1,
|
|
467
|
-
class: "invalid-feedback",
|
|
468
|
-
textContent: l(e.validator.getInvalidMessage())
|
|
469
|
-
}, null, 8, oe)) : u("", !0),
|
|
470
|
-
e.hint !== void 0 ? (a(), i("div", {
|
|
471
|
-
key: 2,
|
|
472
|
-
id: e.getHintId(),
|
|
473
|
-
class: "form-text",
|
|
474
|
-
textContent: l(e.hint)
|
|
475
|
-
}, null, 8, se)) : u("", !0)
|
|
476
|
-
], 64);
|
|
477
|
-
}
|
|
478
|
-
const ht = /* @__PURE__ */ c(ne, [["render", le]]), re = m({
|
|
479
|
-
name: "BsPaginator",
|
|
480
|
-
props: {
|
|
481
|
-
/**
|
|
482
|
-
* Total count of items.
|
|
483
|
-
*/
|
|
484
|
-
totalCount: {
|
|
485
|
-
type: Number,
|
|
486
|
-
required: !0
|
|
487
|
-
},
|
|
488
|
-
/**
|
|
489
|
-
* Page size
|
|
490
|
-
*/
|
|
491
|
-
pageSize: {
|
|
492
|
-
type: Number,
|
|
493
|
-
required: !0
|
|
494
|
-
},
|
|
495
|
-
/**
|
|
496
|
-
* Current page
|
|
497
|
-
*/
|
|
498
|
-
currentPage: {
|
|
499
|
-
type: Number,
|
|
500
|
-
required: !0
|
|
501
|
-
},
|
|
502
|
-
/**
|
|
503
|
-
* Max visible page
|
|
504
|
-
*/
|
|
505
|
-
maxVisiblePage: {
|
|
506
|
-
type: Number,
|
|
507
|
-
default: 5
|
|
508
|
-
},
|
|
509
|
-
/**
|
|
510
|
-
* First page label
|
|
511
|
-
*/
|
|
512
|
-
firstPageLabel: {
|
|
513
|
-
type: String,
|
|
514
|
-
default: "«"
|
|
515
|
-
},
|
|
516
|
-
/**
|
|
517
|
-
* Previous page label
|
|
518
|
-
*/
|
|
519
|
-
previousPageLabel: {
|
|
520
|
-
type: String,
|
|
521
|
-
default: "‹"
|
|
522
|
-
},
|
|
523
|
-
/**
|
|
524
|
-
* Next page label
|
|
525
|
-
*/
|
|
526
|
-
nextPageLabel: {
|
|
527
|
-
type: String,
|
|
528
|
-
default: "›"
|
|
529
|
-
},
|
|
530
|
-
/**
|
|
531
|
-
* Last page label
|
|
532
|
-
*/
|
|
533
|
-
lastPageLabel: {
|
|
534
|
-
type: String,
|
|
535
|
-
default: "»"
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
emits: ["pageChanged"],
|
|
539
|
-
methods: {
|
|
540
|
-
/**
|
|
541
|
-
* Count of pages
|
|
542
|
-
*
|
|
543
|
-
* @returns {number}
|
|
544
|
-
*/
|
|
545
|
-
getPageCount() {
|
|
546
|
-
return Math.ceil(this.totalCount / this.pageSize);
|
|
547
|
-
},
|
|
548
|
-
/**
|
|
549
|
-
* Visible page list
|
|
550
|
-
*
|
|
551
|
-
* @returns {*[]}
|
|
552
|
-
*/
|
|
553
|
-
getVisiblePages() {
|
|
554
|
-
const e = [], t = this.getPageRange();
|
|
555
|
-
for (let r = t.beginPage; r <= t.endPage; r += 1)
|
|
556
|
-
e.push(r + 1);
|
|
557
|
-
return e;
|
|
558
|
-
},
|
|
559
|
-
/**
|
|
560
|
-
* Is page active, or not
|
|
561
|
-
*
|
|
562
|
-
* @param page
|
|
563
|
-
* @returns {boolean}
|
|
564
|
-
*/
|
|
565
|
-
isPageActive(e) {
|
|
566
|
-
return e === this.currentPage;
|
|
567
|
-
},
|
|
568
|
-
/**
|
|
569
|
-
* On page click
|
|
570
|
-
*/
|
|
571
|
-
onPageClick(e) {
|
|
572
|
-
this.isPageActive(e) || this.$emit("pageChanged", e);
|
|
573
|
-
},
|
|
574
|
-
/**
|
|
575
|
-
* Page range, example: 3 available page, current page 3, range is: [1, 3] (zero-based)
|
|
576
|
-
*
|
|
577
|
-
* @returns {{beginPage: number, endPage: number}}
|
|
578
|
-
*/
|
|
579
|
-
getPageRange() {
|
|
580
|
-
let e = Math.max(0, this.currentPage - this.maxVisiblePage / 2), t = e + this.maxVisiblePage - 1;
|
|
581
|
-
return t >= this.getPageCount() && (t = this.getPageCount() - 1, e = Math.max(0, t - this.maxVisiblePage + 1)), {
|
|
582
|
-
beginPage: Math.floor(e),
|
|
583
|
-
endPage: Math.floor(t)
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}), de = { class: "pagination" }, ue = ["textContent"], ve = ["textContent"], he = ["onClick", "textContent"], fe = ["textContent"], pe = ["textContent"];
|
|
588
|
-
function me(e, t, r, d, v, f) {
|
|
589
|
-
return a(), i("nav", null, [
|
|
590
|
-
s("ul", de, [
|
|
591
|
-
s("li", {
|
|
592
|
-
class: h(["page-item page-item-first", { disabled: e.isPageActive(1) }])
|
|
593
|
-
}, [
|
|
594
|
-
s("div", {
|
|
595
|
-
class: "page-link",
|
|
596
|
-
onClick: t[0] || (t[0] = (o) => e.onPageClick(1)),
|
|
597
|
-
textContent: l(e.firstPageLabel)
|
|
598
|
-
}, null, 8, ue)
|
|
599
|
-
], 2),
|
|
600
|
-
s("li", {
|
|
601
|
-
class: h(["page-item page-item-previous", { disabled: e.isPageActive(1) }])
|
|
602
|
-
}, [
|
|
603
|
-
s("div", {
|
|
604
|
-
class: "page-link",
|
|
605
|
-
onClick: t[1] || (t[1] = (o) => e.onPageClick(e.currentPage - 1)),
|
|
606
|
-
textContent: l(e.previousPageLabel)
|
|
607
|
-
}, null, 8, ve)
|
|
608
|
-
], 2),
|
|
609
|
-
(a(!0), i(b, null, y(e.getVisiblePages(), (o, n) => (a(), i("li", {
|
|
610
|
-
key: n,
|
|
611
|
-
class: h(["page-item page-item-number", {
|
|
612
|
-
active: e.isPageActive(o)
|
|
613
|
-
}])
|
|
614
|
-
}, [
|
|
615
|
-
s("div", {
|
|
616
|
-
class: "page-link",
|
|
617
|
-
onClick: (p) => e.onPageClick(o),
|
|
618
|
-
textContent: l(o)
|
|
619
|
-
}, null, 8, he)
|
|
620
|
-
], 2))), 128)),
|
|
621
|
-
s("li", {
|
|
622
|
-
class: h(["page-item page-item-next", { disabled: e.isPageActive(e.getPageCount()) }])
|
|
623
|
-
}, [
|
|
624
|
-
s("div", {
|
|
625
|
-
class: "page-link",
|
|
626
|
-
onClick: t[2] || (t[2] = (o) => e.onPageClick(e.currentPage + 1)),
|
|
627
|
-
textContent: l(e.nextPageLabel)
|
|
628
|
-
}, null, 8, fe)
|
|
629
|
-
], 2),
|
|
630
|
-
s("li", {
|
|
631
|
-
class: h(["page-item page-item-last", { disabled: e.isPageActive(e.getPageCount()) }])
|
|
632
|
-
}, [
|
|
633
|
-
s("div", {
|
|
634
|
-
class: "page-link",
|
|
635
|
-
onClick: t[3] || (t[3] = (o) => e.onPageClick(e.getPageCount())),
|
|
636
|
-
textContent: l(e.lastPageLabel)
|
|
637
|
-
}, null, 8, pe)
|
|
638
|
-
], 2)
|
|
639
|
-
])
|
|
640
|
-
]);
|
|
641
|
-
}
|
|
642
|
-
const ft = /* @__PURE__ */ c(re, [["render", me], ["__scopeId", "data-v-ff85ae67"]]), ce = m({
|
|
643
|
-
name: "BsTable",
|
|
644
|
-
props: {
|
|
645
|
-
/**
|
|
646
|
-
* Field list
|
|
647
|
-
*/
|
|
648
|
-
fields: {
|
|
649
|
-
type: Array,
|
|
650
|
-
required: !0
|
|
651
|
-
},
|
|
652
|
-
/**
|
|
653
|
-
* Item list
|
|
654
|
-
*/
|
|
655
|
-
items: {
|
|
656
|
-
type: Array,
|
|
657
|
-
required: !0
|
|
658
|
-
},
|
|
659
|
-
/**
|
|
660
|
-
* Items loading
|
|
661
|
-
*/
|
|
662
|
-
isLoading: {
|
|
663
|
-
type: Boolean,
|
|
664
|
-
default: !1
|
|
665
|
-
},
|
|
666
|
-
/**
|
|
667
|
-
* Order by field name
|
|
668
|
-
*/
|
|
669
|
-
orderBy: {
|
|
670
|
-
type: String,
|
|
671
|
-
default: void 0
|
|
672
|
-
},
|
|
673
|
-
/**
|
|
674
|
-
* Sort is descending or ascending
|
|
675
|
-
*/
|
|
676
|
-
sortDesc: {
|
|
677
|
-
type: Boolean,
|
|
678
|
-
default: void 0
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
* th element css lass
|
|
682
|
-
*/
|
|
683
|
-
thClass: {
|
|
684
|
-
type: String,
|
|
685
|
-
default: void 0
|
|
686
|
-
},
|
|
687
|
-
/**
|
|
688
|
-
* td element css class
|
|
689
|
-
*/
|
|
690
|
-
tdClass: {
|
|
691
|
-
type: String,
|
|
692
|
-
default: void 0
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
emits: ["orderChanged"],
|
|
696
|
-
methods: {
|
|
697
|
-
/**
|
|
698
|
-
* Is order by active by field?
|
|
699
|
-
*
|
|
700
|
-
* @param fieldKey
|
|
701
|
-
* @returns {boolean}
|
|
702
|
-
*/
|
|
703
|
-
isActiveOrderBy(e) {
|
|
704
|
-
return e === this.orderBy;
|
|
705
|
-
},
|
|
706
|
-
/**
|
|
707
|
-
* Is field sortable?
|
|
708
|
-
*
|
|
709
|
-
* @param field
|
|
710
|
-
* @returns {boolean}
|
|
711
|
-
*/
|
|
712
|
-
isSortableField(e) {
|
|
713
|
-
return e.sort === void 0 || e.sort;
|
|
714
|
-
},
|
|
715
|
-
/**
|
|
716
|
-
* Sort icon class.
|
|
717
|
-
*
|
|
718
|
-
* @returns {string}
|
|
719
|
-
*/
|
|
720
|
-
getSortIconClass() {
|
|
721
|
-
if (this.sortDesc === void 0)
|
|
722
|
-
throw new Error("Sort desc value is null, cannot calculate the sort icon!");
|
|
723
|
-
return this.sortDesc ? "bi bi-caret-up-fill" : "bi bi-caret-down-fill";
|
|
724
|
-
},
|
|
725
|
-
/**
|
|
726
|
-
* Calcuate sort desc value on click
|
|
727
|
-
* Returns null if there is no sortDesc value.
|
|
728
|
-
*/
|
|
729
|
-
calcSortDesc(e) {
|
|
730
|
-
return this.sortDesc === void 0 ? null : this.isOrderByChanged(e) ? !1 : !this.sortDesc;
|
|
731
|
-
},
|
|
732
|
-
/**
|
|
733
|
-
* Is order by changed?
|
|
734
|
-
*/
|
|
735
|
-
isOrderByChanged(e) {
|
|
736
|
-
return this.orderBy !== e;
|
|
737
|
-
},
|
|
738
|
-
/**
|
|
739
|
-
* Table head clicked.
|
|
740
|
-
*/
|
|
741
|
-
onHeadClick(e) {
|
|
742
|
-
this.isSortableField(e) && this.$emit("orderChanged", { sortDesc: this.calcSortDesc(e.key), orderBy: e.key });
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
}), ge = (e) => (L("data-v-7c949d62"), e = e(), O(), e), be = { class: "table" }, $e = ["onClick"], ye = { key: 0 }, Ce = ["colspan"], ke = /* @__PURE__ */ ge(() => /* @__PURE__ */ s("div", { class: "d-flex justify-content-center p-2" }, [
|
|
746
|
-
/* @__PURE__ */ s("div", { class: "spinner-border spinner-border-sm" })
|
|
747
|
-
], -1)), Ie = { key: 1 }, Se = ["colspan"], Be = { class: "text-center text-muted small" };
|
|
748
|
-
function Pe(e, t, r, d, v, f) {
|
|
749
|
-
const o = R("t");
|
|
750
|
-
return a(), i("table", be, [
|
|
751
|
-
s("thead", null, [
|
|
752
|
-
s("tr", null, [
|
|
753
|
-
(a(!0), i(b, null, y(e.fields, (n) => (a(), i("th", {
|
|
754
|
-
key: n.key,
|
|
755
|
-
class: h({
|
|
756
|
-
"cursor-pointer": e.isSortableField(n),
|
|
757
|
-
"text-decoration-underline": e.isActiveOrderBy(n.key),
|
|
758
|
-
thClass: e.thClass
|
|
759
|
-
}),
|
|
760
|
-
onClick: (p) => e.onHeadClick(n)
|
|
761
|
-
}, [
|
|
762
|
-
g(e.$slots, "tr", {}, () => [
|
|
763
|
-
S(l(n.label) + " ", 1),
|
|
764
|
-
e.isActiveOrderBy(n.key) && e.sortDesc !== void 0 ? (a(), i("i", {
|
|
765
|
-
key: 0,
|
|
766
|
-
class: h(e.getSortIconClass())
|
|
767
|
-
}, null, 2)) : u("", !0)
|
|
768
|
-
], !0)
|
|
769
|
-
], 10, $e))), 128))
|
|
770
|
-
])
|
|
771
|
-
]),
|
|
772
|
-
s("tbody", null, [
|
|
773
|
-
e.isLoading ? (a(), i("tr", ye, [
|
|
774
|
-
s("td", {
|
|
775
|
-
colspan: e.fields.length
|
|
776
|
-
}, [
|
|
777
|
-
g(e.$slots, "loading", {}, () => [
|
|
778
|
-
ke
|
|
779
|
-
], !0)
|
|
780
|
-
], 8, Ce)
|
|
781
|
-
])) : e.items.length === 0 ? (a(), i("tr", Ie, [
|
|
782
|
-
s("td", {
|
|
783
|
-
colspan: e.fields.length
|
|
784
|
-
}, [
|
|
785
|
-
g(e.$slots, "empty", {}, () => [
|
|
786
|
-
A(s("div", Be, null, 512), [
|
|
787
|
-
[o, "table.empty_text"]
|
|
788
|
-
])
|
|
789
|
-
], !0)
|
|
790
|
-
], 8, Se)
|
|
791
|
-
])) : (a(!0), i(b, { key: 2 }, y(e.items, (n, p) => (a(), i("tr", {
|
|
792
|
-
key: p,
|
|
793
|
-
class: h(n.trClass)
|
|
794
|
-
}, [
|
|
795
|
-
(a(!0), i(b, null, y(e.fields, ($) => (a(), i("td", {
|
|
796
|
-
key: $.key,
|
|
797
|
-
class: h(e.tdClass)
|
|
798
|
-
}, [
|
|
799
|
-
g(e.$slots, "td", {
|
|
800
|
-
key: p,
|
|
801
|
-
field: $.key,
|
|
802
|
-
row: n,
|
|
803
|
-
value: $.key in n ? n[$.key] : null
|
|
804
|
-
}, () => [
|
|
805
|
-
S(l(n[$.key]), 1)
|
|
806
|
-
], !0)
|
|
807
|
-
], 2))), 128))
|
|
808
|
-
], 2))), 128))
|
|
809
|
-
])
|
|
810
|
-
]);
|
|
811
|
-
}
|
|
812
|
-
const pt = /* @__PURE__ */ c(ce, [["render", Pe], ["__scopeId", "data-v-7c949d62"]]), P = B.Toast, Ve = m({
|
|
813
|
-
name: "BsToast",
|
|
814
|
-
emits: ["shown", "hidden"],
|
|
815
|
-
mounted() {
|
|
816
|
-
const e = this.$refs.toastRef;
|
|
817
|
-
P.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.toast", this.onShown), e.addEventListener("hidden.bs.toast", this.onHidden);
|
|
818
|
-
},
|
|
819
|
-
methods: {
|
|
820
|
-
/**
|
|
821
|
-
* Trigger toast hide event.
|
|
822
|
-
*/
|
|
823
|
-
hide() {
|
|
824
|
-
const e = this.$refs.toastRef;
|
|
825
|
-
P.getOrCreateInstance(e).hide();
|
|
826
|
-
},
|
|
827
|
-
/**
|
|
828
|
-
* Hidden event.
|
|
829
|
-
*/
|
|
830
|
-
onShown() {
|
|
831
|
-
this.$emit("shown");
|
|
832
|
-
},
|
|
833
|
-
/**
|
|
834
|
-
* Hidden event.
|
|
835
|
-
*/
|
|
836
|
-
onHidden() {
|
|
837
|
-
this.$emit("hidden");
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}), Ee = {
|
|
841
|
-
ref: "toastRef",
|
|
842
|
-
class: "toast hide",
|
|
843
|
-
role: "alert",
|
|
844
|
-
"aria-live": "assertive",
|
|
845
|
-
"aria-atomic": "true"
|
|
846
|
-
};
|
|
847
|
-
function we(e, t, r, d, v, f) {
|
|
848
|
-
return a(), i("div", Ee, [
|
|
849
|
-
g(e.$slots, "default")
|
|
850
|
-
], 512);
|
|
851
|
-
}
|
|
852
|
-
const mt = /* @__PURE__ */ c(Ve, [["render", we]]), V = B.Modal, Me = m({
|
|
853
|
-
name: "BsModal",
|
|
854
|
-
props: {
|
|
855
|
-
/**
|
|
856
|
-
* Modal title
|
|
857
|
-
*/
|
|
858
|
-
title: {
|
|
859
|
-
type: String,
|
|
860
|
-
required: !0
|
|
861
|
-
},
|
|
862
|
-
classDialog: {
|
|
863
|
-
type: [String, Object],
|
|
864
|
-
default: null
|
|
865
|
-
},
|
|
866
|
-
hideHeader: {
|
|
867
|
-
type: Boolean,
|
|
868
|
-
default: !1
|
|
869
|
-
},
|
|
870
|
-
hideBody: {
|
|
871
|
-
type: Boolean,
|
|
872
|
-
default: !1
|
|
873
|
-
},
|
|
874
|
-
hideFooter: {
|
|
875
|
-
type: Boolean,
|
|
876
|
-
default: !1
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
emits: ["shown", "hidden"],
|
|
880
|
-
mounted() {
|
|
881
|
-
const e = this.$refs.modalRef;
|
|
882
|
-
V.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.modal", this.onShown), e.addEventListener("hidden.bs.modal", this.onHidden);
|
|
883
|
-
},
|
|
884
|
-
methods: {
|
|
885
|
-
/**
|
|
886
|
-
* Trigger modal hide event.
|
|
887
|
-
*/
|
|
888
|
-
hide() {
|
|
889
|
-
const e = this.$refs.modalRef;
|
|
890
|
-
V.getOrCreateInstance(e).hide();
|
|
891
|
-
},
|
|
892
|
-
/**
|
|
893
|
-
* Shown event.
|
|
894
|
-
*/
|
|
895
|
-
onShown() {
|
|
896
|
-
this.$emit("shown");
|
|
897
|
-
},
|
|
898
|
-
/**
|
|
899
|
-
* Hidden event.
|
|
900
|
-
*/
|
|
901
|
-
onHidden() {
|
|
902
|
-
this.$emit("hidden");
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
}), He = {
|
|
906
|
-
ref: "modalRef",
|
|
907
|
-
class: "modal fade",
|
|
908
|
-
tabindex: "-1",
|
|
909
|
-
"aria-hidden": "true"
|
|
910
|
-
}, Re = { class: "modal-content" }, Ae = {
|
|
911
|
-
key: 0,
|
|
912
|
-
class: "modal-header"
|
|
913
|
-
}, Le = ["textContent"], Oe = /* @__PURE__ */ s("button", {
|
|
914
|
-
type: "button",
|
|
915
|
-
class: "btn-close",
|
|
916
|
-
"data-bs-dismiss": "modal"
|
|
917
|
-
}, null, -1), Ne = {
|
|
918
|
-
key: 1,
|
|
919
|
-
class: "modal-body"
|
|
920
|
-
}, _e = {
|
|
921
|
-
key: 2,
|
|
922
|
-
class: "modal-footer"
|
|
923
|
-
};
|
|
924
|
-
function De(e, t, r, d, v, f) {
|
|
925
|
-
return a(), i("div", He, [
|
|
926
|
-
s("div", {
|
|
927
|
-
class: h(["modal-dialog", e.classDialog])
|
|
928
|
-
}, [
|
|
929
|
-
s("div", Re, [
|
|
930
|
-
e.hideHeader ? u("", !0) : (a(), i("div", Ae, [
|
|
931
|
-
g(e.$slots, "header", {}, () => [
|
|
932
|
-
s("div", {
|
|
933
|
-
class: "h5 modal-title",
|
|
934
|
-
textContent: l(e.title)
|
|
935
|
-
}, null, 8, Le),
|
|
936
|
-
Oe
|
|
937
|
-
])
|
|
938
|
-
])),
|
|
939
|
-
e.hideBody ? u("", !0) : (a(), i("div", Ne, [
|
|
940
|
-
g(e.$slots, "body")
|
|
941
|
-
])),
|
|
942
|
-
e.hideFooter ? u("", !0) : (a(), i("div", _e, [
|
|
943
|
-
g(e.$slots, "footer")
|
|
944
|
-
]))
|
|
945
|
-
])
|
|
946
|
-
], 2)
|
|
947
|
-
], 512);
|
|
948
|
-
}
|
|
949
|
-
const ct = /* @__PURE__ */ c(Me, [["render", De]]), qe = m({
|
|
950
|
-
name: "BsSelect",
|
|
951
|
-
props: {
|
|
952
|
-
/**
|
|
953
|
-
* Value for v-model
|
|
954
|
-
*/
|
|
955
|
-
modelValue: {
|
|
956
|
-
type: [String, Number, Array],
|
|
957
|
-
default: null
|
|
958
|
-
},
|
|
959
|
-
/**
|
|
960
|
-
* Html id
|
|
961
|
-
*/
|
|
962
|
-
id: {
|
|
963
|
-
type: String,
|
|
964
|
-
required: !0
|
|
965
|
-
},
|
|
966
|
-
/**
|
|
967
|
-
* Label for input
|
|
968
|
-
*/
|
|
969
|
-
label: {
|
|
970
|
-
type: String,
|
|
971
|
-
default: void 0
|
|
972
|
-
},
|
|
973
|
-
/**
|
|
974
|
-
* Attribute hint
|
|
975
|
-
*/
|
|
976
|
-
hint: {
|
|
977
|
-
type: String,
|
|
978
|
-
default: void 0
|
|
979
|
-
},
|
|
980
|
-
/**
|
|
981
|
-
* Options
|
|
982
|
-
*/
|
|
983
|
-
options: {
|
|
984
|
-
type: Array,
|
|
985
|
-
required: !0
|
|
986
|
-
},
|
|
987
|
-
/**
|
|
988
|
-
* Placeholder
|
|
989
|
-
*/
|
|
990
|
-
placeholder: {
|
|
991
|
-
type: String,
|
|
992
|
-
default: void 0
|
|
993
|
-
},
|
|
994
|
-
/**
|
|
995
|
-
* Enable or disable validator
|
|
996
|
-
*/
|
|
997
|
-
validatorEnabled: {
|
|
998
|
-
type: Boolean,
|
|
999
|
-
default: !0
|
|
1000
|
-
}
|
|
1001
|
-
},
|
|
1002
|
-
emits: ["update:modelValue"],
|
|
1003
|
-
setup() {
|
|
1004
|
-
const e = C(null);
|
|
1005
|
-
return {
|
|
1006
|
-
inputRef: e,
|
|
1007
|
-
validator: I(e)
|
|
1008
|
-
};
|
|
1009
|
-
},
|
|
1010
|
-
methods: {
|
|
1011
|
-
/**
|
|
1012
|
-
* Hint id is generated
|
|
1013
|
-
*/
|
|
1014
|
-
getHintId() {
|
|
1015
|
-
return this.id + "Hint";
|
|
1016
|
-
},
|
|
1017
|
-
/**
|
|
1018
|
-
* On input event
|
|
1019
|
-
*
|
|
1020
|
-
* @param event
|
|
1021
|
-
*/
|
|
1022
|
-
onInput(e) {
|
|
1023
|
-
const t = e.target;
|
|
1024
|
-
this.$emit("update:modelValue", t.value);
|
|
1025
|
-
},
|
|
1026
|
-
/**
|
|
1027
|
-
* On invalid event
|
|
1028
|
-
*
|
|
1029
|
-
* @param event
|
|
1030
|
-
*/
|
|
1031
|
-
onInvalid(e) {
|
|
1032
|
-
this.validatorEnabled && this.validator.onInvalid(e);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}), Te = ["for", "textContent"], Fe = ["id", "value", "aria-labelledby"], ze = {
|
|
1036
|
-
key: 0,
|
|
1037
|
-
value: "",
|
|
1038
|
-
disabled: "",
|
|
1039
|
-
hidden: ""
|
|
1040
|
-
}, je = ["value"], Ue = ["textContent"], Ge = ["id", "textContent"];
|
|
1041
|
-
function Je(e, t, r, d, v, f) {
|
|
1042
|
-
return a(), i(b, null, [
|
|
1043
|
-
e.label !== void 0 ? (a(), i("label", {
|
|
1044
|
-
key: 0,
|
|
1045
|
-
for: e.id,
|
|
1046
|
-
class: "form-label",
|
|
1047
|
-
textContent: l(e.label)
|
|
1048
|
-
}, null, 8, Te)) : u("", !0),
|
|
1049
|
-
s("select", k({
|
|
1050
|
-
id: e.id,
|
|
1051
|
-
ref: "inputRef",
|
|
1052
|
-
class: "form-select",
|
|
1053
|
-
value: e.modelValue,
|
|
1054
|
-
"aria-labelledby": e.hint !== void 0 ? e.getHintId() : void 0
|
|
1055
|
-
}, e.$attrs, {
|
|
1056
|
-
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1057
|
-
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1058
|
-
}), [
|
|
1059
|
-
e.placeholder !== void 0 ? (a(), i("option", ze, l(e.placeholder), 1)) : u("", !0),
|
|
1060
|
-
(a(!0), i(b, null, y(e.options, (o, n) => (a(), i("option", {
|
|
1061
|
-
key: n,
|
|
1062
|
-
value: o.value
|
|
1063
|
-
}, l(o.text), 9, je))), 128))
|
|
1064
|
-
], 16, Fe),
|
|
1065
|
-
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
1066
|
-
key: 1,
|
|
1067
|
-
class: "invalid-feedback",
|
|
1068
|
-
textContent: l(e.validator.getInvalidMessage())
|
|
1069
|
-
}, null, 8, Ue)) : u("", !0),
|
|
1070
|
-
e.hint !== void 0 ? (a(), i("div", {
|
|
1071
|
-
key: 2,
|
|
1072
|
-
id: e.getHintId(),
|
|
1073
|
-
class: "form-text",
|
|
1074
|
-
textContent: l(e.hint)
|
|
1075
|
-
}, null, 8, Ge)) : u("", !0)
|
|
1076
|
-
], 64);
|
|
1077
|
-
}
|
|
1078
|
-
const gt = /* @__PURE__ */ c(qe, [["render", Je]]), Ke = m({
|
|
1079
|
-
name: "BsRadio",
|
|
1080
|
-
props: {
|
|
1081
|
-
/**
|
|
1082
|
-
* Radio value
|
|
1083
|
-
*/
|
|
1084
|
-
value: {
|
|
1085
|
-
type: [String, Number],
|
|
1086
|
-
default: null
|
|
1087
|
-
},
|
|
1088
|
-
/**
|
|
1089
|
-
* Value for v-model
|
|
1090
|
-
*/
|
|
1091
|
-
modelValue: {
|
|
1092
|
-
type: [String, Number],
|
|
1093
|
-
default: null
|
|
1094
|
-
},
|
|
1095
|
-
/**
|
|
1096
|
-
* Html id
|
|
1097
|
-
*/
|
|
1098
|
-
id: {
|
|
1099
|
-
type: String,
|
|
1100
|
-
required: !0
|
|
1101
|
-
},
|
|
1102
|
-
/**
|
|
1103
|
-
* Label for input
|
|
1104
|
-
*/
|
|
1105
|
-
label: {
|
|
1106
|
-
type: String,
|
|
1107
|
-
default: void 0
|
|
1108
|
-
},
|
|
1109
|
-
/**
|
|
1110
|
-
* Attribute hint
|
|
1111
|
-
*/
|
|
1112
|
-
hint: {
|
|
1113
|
-
type: String,
|
|
1114
|
-
default: void 0
|
|
1115
|
-
},
|
|
1116
|
-
/**
|
|
1117
|
-
* Input container div class.
|
|
1118
|
-
*/
|
|
1119
|
-
classContainer: {
|
|
1120
|
-
type: String,
|
|
1121
|
-
default: void 0
|
|
1122
|
-
},
|
|
1123
|
-
/**
|
|
1124
|
-
* Enable or disable validator
|
|
1125
|
-
*/
|
|
1126
|
-
validatorEnabled: {
|
|
1127
|
-
type: Boolean,
|
|
1128
|
-
default: !0
|
|
1129
|
-
}
|
|
1130
|
-
},
|
|
1131
|
-
emits: ["update:modelValue"],
|
|
1132
|
-
setup() {
|
|
1133
|
-
const e = C(null);
|
|
1134
|
-
return {
|
|
1135
|
-
inputRef: e,
|
|
1136
|
-
validator: I(e)
|
|
1137
|
-
};
|
|
1138
|
-
},
|
|
1139
|
-
computed: {
|
|
1140
|
-
/**
|
|
1141
|
-
* Radio is checked or not.
|
|
1142
|
-
*/
|
|
1143
|
-
isChecked() {
|
|
1144
|
-
return this.modelValue === this.value;
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
methods: {
|
|
1148
|
-
/**
|
|
1149
|
-
* Hint id is generated
|
|
1150
|
-
*/
|
|
1151
|
-
getHintId() {
|
|
1152
|
-
return this.id + "Hint";
|
|
1153
|
-
},
|
|
1154
|
-
/**
|
|
1155
|
-
* On input event
|
|
1156
|
-
*/
|
|
1157
|
-
onInput() {
|
|
1158
|
-
this.$emit("update:modelValue", this.value);
|
|
1159
|
-
},
|
|
1160
|
-
/**
|
|
1161
|
-
* On invalid event
|
|
1162
|
-
*
|
|
1163
|
-
* @param event
|
|
1164
|
-
*/
|
|
1165
|
-
onInvalid(e) {
|
|
1166
|
-
this.validatorEnabled && this.validator.onInvalid(e);
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
}), Qe = ["id", "value", "checked", "aria-describedby"], We = ["for", "textContent"], Xe = ["textContent"], Ye = ["id", "textContent"];
|
|
1170
|
-
function Ze(e, t, r, d, v, f) {
|
|
1171
|
-
return a(), i("div", {
|
|
1172
|
-
class: h(["form-check", e.classContainer])
|
|
1173
|
-
}, [
|
|
1174
|
-
s("input", k({
|
|
1175
|
-
id: e.id,
|
|
1176
|
-
ref: "inputRef",
|
|
1177
|
-
value: e.modelValue
|
|
1178
|
-
}, e.$attrs, {
|
|
1179
|
-
type: "radio",
|
|
1180
|
-
class: "form-check-input",
|
|
1181
|
-
checked: e.isChecked,
|
|
1182
|
-
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
|
|
1183
|
-
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
|
|
1184
|
-
onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
|
|
1185
|
-
}), null, 16, Qe),
|
|
1186
|
-
e.label !== void 0 ? (a(), i("label", {
|
|
1187
|
-
key: 0,
|
|
1188
|
-
for: e.id,
|
|
1189
|
-
class: "form-check-label",
|
|
1190
|
-
textContent: l(e.label)
|
|
1191
|
-
}, null, 8, We)) : u("", !0),
|
|
1192
|
-
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
|
|
1193
|
-
key: 1,
|
|
1194
|
-
class: "invalid-feedback",
|
|
1195
|
-
textContent: l(e.validator.getInvalidMessage())
|
|
1196
|
-
}, null, 8, Xe)) : u("", !0),
|
|
1197
|
-
e.hint !== void 0 ? (a(), i("div", {
|
|
1198
|
-
key: 2,
|
|
1199
|
-
id: e.getHintId(),
|
|
1200
|
-
class: "form-text",
|
|
1201
|
-
textContent: l(e.hint)
|
|
1202
|
-
}, null, 8, Ye)) : u("", !0)
|
|
1203
|
-
], 2);
|
|
1204
|
-
}
|
|
1205
|
-
const bt = /* @__PURE__ */ c(Ke, [["render", Ze]]), E = B.Offcanvas, xe = m({
|
|
1206
|
-
name: "BsOffcanvas",
|
|
1207
|
-
props: {
|
|
1208
|
-
/**
|
|
1209
|
-
* Offcanvas title
|
|
1210
|
-
*/
|
|
1211
|
-
title: {
|
|
1212
|
-
type: String,
|
|
1213
|
-
required: !0
|
|
1214
|
-
}
|
|
1215
|
-
},
|
|
1216
|
-
emits: ["shown", "hidden"],
|
|
1217
|
-
mounted() {
|
|
1218
|
-
const e = this.$refs.offcanvasRef;
|
|
1219
|
-
E.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.offcanvas", this.onShown), e.addEventListener("hidden.bs.offcanvas", this.onHidden);
|
|
1220
|
-
},
|
|
1221
|
-
methods: {
|
|
1222
|
-
/**
|
|
1223
|
-
* Trigger offcanvas hide event.
|
|
1224
|
-
*/
|
|
1225
|
-
hide() {
|
|
1226
|
-
const e = this.$refs.offcanvasRef;
|
|
1227
|
-
E.getOrCreateInstance(e).hide();
|
|
1228
|
-
},
|
|
1229
|
-
/**
|
|
1230
|
-
* Shown event.
|
|
1231
|
-
*/
|
|
1232
|
-
onShown() {
|
|
1233
|
-
this.$emit("shown");
|
|
1234
|
-
},
|
|
1235
|
-
/**
|
|
1236
|
-
* Hidden event.
|
|
1237
|
-
*/
|
|
1238
|
-
onHidden() {
|
|
1239
|
-
this.$emit("hidden");
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
}), et = {
|
|
1243
|
-
ref: "offcanvasRef",
|
|
1244
|
-
class: "offcanvas",
|
|
1245
|
-
tabindex: "-1",
|
|
1246
|
-
"aria-labelledby": "offcanvasTitle"
|
|
1247
|
-
}, tt = { class: "offcanvas-header" }, nt = ["textContent"], at = /* @__PURE__ */ s("button", {
|
|
1248
|
-
type: "button",
|
|
1249
|
-
class: "btn-close text-reset",
|
|
1250
|
-
"data-bs-dismiss": "offcanvas"
|
|
1251
|
-
}, null, -1), it = { class: "offcanvas-body" };
|
|
1252
|
-
function ot(e, t, r, d, v, f) {
|
|
1253
|
-
return a(), i("div", et, [
|
|
1254
|
-
s("div", tt, [
|
|
1255
|
-
g(e.$slots, "header", {}, () => [
|
|
1256
|
-
s("div", {
|
|
1257
|
-
id: "offcanvasTitle",
|
|
1258
|
-
class: "h5 mb-0",
|
|
1259
|
-
textContent: l(e.title)
|
|
1260
|
-
}, null, 8, nt),
|
|
1261
|
-
at
|
|
1262
|
-
])
|
|
1263
|
-
]),
|
|
1264
|
-
s("div", it, [
|
|
1265
|
-
g(e.$slots, "body")
|
|
1266
|
-
])
|
|
1267
|
-
], 512);
|
|
1268
|
-
}
|
|
1269
|
-
const $t = /* @__PURE__ */ c(xe, [["render", ot]]);
|
|
1
|
+
import { default as o } from "./bootstrap-vue-wrapper2.js";
|
|
2
|
+
import { default as t } from "./bootstrap-vue-wrapper3.js";
|
|
3
|
+
import { default as s } from "./bootstrap-vue-wrapper4.js";
|
|
4
|
+
import { default as l } from "./bootstrap-vue-wrapper5.js";
|
|
5
|
+
import { default as u } from "./bootstrap-vue-wrapper6.js";
|
|
6
|
+
import { default as p } from "./bootstrap-vue-wrapper7.js";
|
|
7
|
+
import { default as c } from "./bootstrap-vue-wrapper8.js";
|
|
8
|
+
import { default as i } from "./bootstrap-vue-wrapper9.js";
|
|
9
|
+
import { default as T } from "./bootstrap-vue-wrapper10.js";
|
|
10
|
+
import { default as h } from "./bootstrap-vue-wrapper11.js";
|
|
11
|
+
import { default as v } from "./bootstrap-vue-wrapper12.js";
|
|
12
|
+
import { default as F } from "./bootstrap-vue-wrapper13.js";
|
|
13
|
+
import { useValidator as M } from "./bootstrap-vue-wrapper14.js";
|
|
1270
14
|
export {
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
15
|
+
o as BsBreadcrumb,
|
|
16
|
+
l as BsCheckbox,
|
|
17
|
+
t as BsForm,
|
|
18
|
+
s as BsInput,
|
|
19
|
+
T as BsModal,
|
|
20
|
+
F as BsOffcanvas,
|
|
21
|
+
p as BsPaginator,
|
|
22
|
+
v as BsRadio,
|
|
23
|
+
h as BsSelect,
|
|
24
|
+
c as BsTable,
|
|
25
|
+
u as BsTextarea,
|
|
26
|
+
i as BsToast,
|
|
27
|
+
M as useValidator
|
|
1284
28
|
};
|