@skyservice-developers/vue-dev-kit 2.22.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,786 +0,0 @@
1
- import { BAlert as b, BBadge as y, BButton as h, BFormCheckbox as v, BFormCheckboxGroup as S, BCollapse as g, BDropdown as $, BDropdownDivider as k, BDropdownItem as B, BFormFile as x, BFormGroup as V, BFormInput as z, BInputGroup as w, BSpinner as F, BProgress as A, BFormRadio as R, BFormRadioGroup as C, BFormSelectOption as T, BFormSelect as I, BSkeleton as O, BTab as N, BTabs as D, BFormTags as j, BFormTextarea as G, VBTooltip as P } from "bootstrap-vue";
2
- import { BButton as Yt, BootstrapCompat as Zt } from "./compat.js";
3
- const i = (n) => n === "success" ? !0 : n === "error" ? !1 : null, _ = (n) => n === "outline" ? "outline-primary" : n, s = (n) => n === "md" || !n ? null : n, d = (n) => ({
4
- success: "success",
5
- error: "danger",
6
- warning: "warning",
7
- info: "info",
8
- pending: "warning",
9
- default: "secondary"
10
- })[n] || "info", u = (n) => (n || []).map(
11
- (e) => e !== null && typeof e == "object" ? {
12
- value: e.value,
13
- text: e.text !== void 0 ? e.text : String(e.value),
14
- disabled: !!e.disabled
15
- } : { value: e, text: String(e), disabled: !1 }
16
- );
17
- function r(n, e, a, t, p, c, o, Jt) {
18
- var l = typeof n == "function" ? n.options : n;
19
- return e && (l.render = e, l.staticRenderFns = a, l._compiled = !0), {
20
- exports: n,
21
- options: l
22
- };
23
- }
24
- const M = {
25
- name: "SkyAlert",
26
- components: { BAlert: b },
27
- inheritAttrs: !1,
28
- props: {
29
- tone: {
30
- type: String,
31
- default: "info",
32
- validator: (n) => ["success", "error", "warning", "info"].includes(n)
33
- },
34
- // Vue 3-версія малює власну іконку; BootstrapVue іконок не має,
35
- // тож проп приймаємо заради паритету контракту, але він не діє.
36
- showIcon: { type: Boolean, default: !0 },
37
- dismissible: { type: Boolean, default: !1 }
38
- },
39
- computed: {
40
- bsVariant() {
41
- return d(this.tone);
42
- }
43
- }
44
- };
45
- var L = function() {
46
- var e = this, a = e._self._c;
47
- return a("b-alert", e._b({ attrs: { show: "", variant: e.bsVariant, dismissible: e.dismissible }, on: { dismissed: function(t) {
48
- return e.$emit("dismissed");
49
- } } }, "b-alert", e.$attrs, !1), [e._t("default")], 2);
50
- }, q = [], E = /* @__PURE__ */ r(
51
- M,
52
- L,
53
- q
54
- );
55
- const U = E.exports, H = {
56
- name: "SkyBadge",
57
- components: { BBadge: y },
58
- inheritAttrs: !1,
59
- props: {
60
- tone: { type: String, default: "default" },
61
- label: { type: String, default: "" },
62
- // Крапка-індикатор є лише у Vue 3-версії; приймаємо заради паритету.
63
- dot: { type: Boolean, default: !0 },
64
- pill: { type: Boolean, default: !1 }
65
- },
66
- computed: {
67
- bsVariant() {
68
- return d(this.tone);
69
- }
70
- }
71
- };
72
- var J = function() {
73
- var e = this, a = e._self._c;
74
- return a("b-badge", e._b({ attrs: { variant: e.bsVariant, pill: e.pill } }, "b-badge", e.$attrs, !1), [e._t("default", function() {
75
- return [e._v(e._s(e.label))];
76
- })], 2);
77
- }, K = [], Q = /* @__PURE__ */ r(
78
- H,
79
- J,
80
- K
81
- );
82
- const W = Q.exports, X = (n) => n === "sm" || n === "lg";
83
- function Y(n = {}) {
84
- const { variant: e = "primary", size: a = "md", block: t, loading: p, icon: c } = n, o = ["sky-btn", `sky-btn-${e}`];
85
- return X(a) && o.push(`sky-btn-${a}`), t && o.push("sky-btn-block"), p && o.push("sky-btn-loading"), c && o.push("sky-btn-icon"), o;
86
- }
87
- const Z = ["sky-btn-spinner", "spinner-border", "spinner-border-sm"], ee = {
88
- name: "SkyButton",
89
- components: { BButton: h },
90
- inheritAttrs: !1,
91
- props: {
92
- variant: {
93
- type: String,
94
- default: "primary",
95
- validator: (n) => ["primary", "danger", "secondary", "outline"].includes(n)
96
- },
97
- size: {
98
- type: String,
99
- default: "md",
100
- validator: (n) => ["sm", "md", "lg"].includes(n)
101
- },
102
- type: { type: String, default: "button" },
103
- loading: { type: Boolean, default: !1 },
104
- disabled: { type: Boolean, default: !1 },
105
- block: { type: Boolean, default: !1 },
106
- icon: { type: Boolean, default: !1 }
107
- },
108
- computed: {
109
- bsVariant() {
110
- return _(this.variant);
111
- },
112
- bsSize() {
113
- return s(this.size);
114
- },
115
- skyClasses() {
116
- return Y(this.$props);
117
- },
118
- spinnerClasses() {
119
- return Z;
120
- }
121
- }
122
- };
123
- var te = function() {
124
- var e = this, a = e._self._c;
125
- return a("b-button", e._g(e._b({ class: e.skyClasses, attrs: { variant: e.bsVariant, size: e.bsSize, type: e.type, block: e.block, disabled: e.disabled || e.loading } }, "b-button", e.$attrs, !1), e.$listeners), [e.loading ? a("span", { class: e.spinnerClasses, attrs: { "aria-hidden": "true" } }) : e._e(), e._t("default")], 2);
126
- }, ne = [], ae = /* @__PURE__ */ r(
127
- ee,
128
- te,
129
- ne
130
- );
131
- const re = ae.exports, se = {
132
- name: "SkyCheckbox",
133
- components: { BFormCheckbox: v },
134
- inheritAttrs: !1,
135
- model: { prop: "modelValue", event: "update:modelValue" },
136
- props: {
137
- modelValue: { type: [Boolean, Array, String, Number], default: !1 },
138
- value: { type: [String, Number, Boolean], default: !0 },
139
- uncheckedValue: { type: [String, Number, Boolean], default: !1 },
140
- // `switch` — зарезервоване слово, тому проп оголошено через `props` як рядок нижче.
141
- switch: { type: Boolean, default: !1 },
142
- disabled: { type: Boolean, default: !1 },
143
- indeterminate: { type: Boolean, default: !1 },
144
- size: { type: String, default: "md" },
145
- name: { type: String, default: void 0 },
146
- id: { type: String, default: void 0 }
147
- },
148
- computed: {
149
- switchMode() {
150
- return this.$props.switch;
151
- },
152
- bsSize() {
153
- return s(this.size);
154
- }
155
- }
156
- };
157
- var oe = function() {
158
- var e = this, a = e._self._c;
159
- return a("b-form-checkbox", e._b({ attrs: { id: e.id, checked: e.modelValue, value: e.value, "unchecked-value": e.uncheckedValue, switch: e.switchMode, disabled: e.disabled, indeterminate: e.indeterminate, size: e.bsSize, name: e.name }, on: { input: function(t) {
160
- e.$emit("update:modelValue", t), e.$emit("input", t);
161
- }, change: function(t) {
162
- return e.$emit("change", t);
163
- } } }, "b-form-checkbox", e.$attrs, !1), [e._t("default")], 2);
164
- }, ie = [], le = /* @__PURE__ */ r(
165
- se,
166
- oe,
167
- ie
168
- );
169
- const de = le.exports, ue = {
170
- name: "SkyCheckboxGroup",
171
- components: { BFormCheckboxGroup: S },
172
- inheritAttrs: !1,
173
- model: { prop: "modelValue", event: "update:modelValue" },
174
- props: {
175
- modelValue: { type: Array, default: () => [] },
176
- options: { type: Array, default: () => [] },
177
- name: { type: String, default: void 0 },
178
- stacked: { type: Boolean, default: !1 },
179
- disabled: { type: Boolean, default: !1 },
180
- size: { type: String, default: "md" },
181
- id: { type: String, default: void 0 }
182
- },
183
- computed: {
184
- bsOptions() {
185
- return u(this.options);
186
- },
187
- bsSize() {
188
- return s(this.size);
189
- }
190
- }
191
- };
192
- var pe = function() {
193
- var e = this, a = e._self._c;
194
- return a("b-form-checkbox-group", e._b({ attrs: { id: e.id, checked: e.modelValue, options: e.bsOptions, name: e.name, stacked: e.stacked, disabled: e.disabled, size: e.bsSize }, on: { input: function(t) {
195
- e.$emit("update:modelValue", t), e.$emit("input", t);
196
- }, change: function(t) {
197
- return e.$emit("change", t);
198
- } } }, "b-form-checkbox-group", e.$attrs, !1), [e._t("default")], 2);
199
- }, ce = [], fe = /* @__PURE__ */ r(
200
- ue,
201
- pe,
202
- ce
203
- );
204
- const me = fe.exports, _e = {
205
- name: "SkyCollapse",
206
- components: { BCollapse: g },
207
- inheritAttrs: !1,
208
- model: { prop: "modelValue", event: "update:modelValue" },
209
- props: {
210
- modelValue: { type: Boolean, default: !1 },
211
- id: { type: String, default: void 0 },
212
- accordion: { type: String, default: void 0 }
213
- }
214
- };
215
- var be = function() {
216
- var e = this, a = e._self._c;
217
- return a("b-collapse", e._b({ attrs: { id: e.id, visible: e.modelValue, accordion: e.accordion }, on: { input: function(t) {
218
- e.$emit("update:modelValue", t), e.$emit("input", t);
219
- }, show: function(t) {
220
- return e.$emit("show");
221
- }, hidden: function(t) {
222
- return e.$emit("hide");
223
- } } }, "b-collapse", e.$attrs, !1), [e._t("default")], 2);
224
- }, ye = [], he = /* @__PURE__ */ r(
225
- _e,
226
- be,
227
- ye
228
- );
229
- const ve = he.exports, Se = {
230
- name: "SkyDropdown",
231
- components: { BDropdown: $ },
232
- inheritAttrs: !1,
233
- props: {
234
- text: { type: String, default: "" },
235
- variant: { type: String, default: "secondary" },
236
- size: { type: String, default: "md" },
237
- disabled: { type: Boolean, default: !1 },
238
- align: {
239
- type: String,
240
- default: "left",
241
- validator: (n) => ["left", "right"].includes(n)
242
- },
243
- block: { type: Boolean, default: !1 },
244
- menuClass: { type: [String, Array, Object], default: void 0 },
245
- // Проп нашого форку BootstrapVue: виїжджає як `data-icon` на кнопці-тоглі.
246
- icon: { type: String, default: "" }
247
- },
248
- computed: {
249
- bsVariant() {
250
- return _(this.variant);
251
- },
252
- bsSize() {
253
- return s(this.size);
254
- }
255
- }
256
- };
257
- var ge = function() {
258
- var e = this, a = e._self._c;
259
- return a("b-dropdown", e._g(e._b({ attrs: { text: e.text, variant: e.bsVariant, size: e.bsSize, disabled: e.disabled, right: e.align === "right", block: e.block, "menu-class": e.menuClass, icon: e.icon }, scopedSlots: e._u([e.$slots.trigger ? { key: "button-content", fn: function() {
260
- return [e._t("trigger")];
261
- }, proxy: !0 } : null], null, !0) }, "b-dropdown", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
262
- }, $e = [], ke = /* @__PURE__ */ r(
263
- Se,
264
- ge,
265
- $e
266
- );
267
- const Be = ke.exports, xe = {
268
- name: "SkyDropdownDivider",
269
- components: { BDropdownDivider: k },
270
- inheritAttrs: !1
271
- };
272
- var Ve = function() {
273
- var e = this, a = e._self._c;
274
- return a("b-dropdown-divider", e._b({}, "b-dropdown-divider", e.$attrs, !1));
275
- }, ze = [], we = /* @__PURE__ */ r(
276
- xe,
277
- Ve,
278
- ze
279
- );
280
- const Fe = we.exports, Ae = {
281
- name: "SkyDropdownItem",
282
- components: { BDropdownItem: B },
283
- inheritAttrs: !1,
284
- props: {
285
- href: { type: String, default: void 0 },
286
- disabled: { type: Boolean, default: !1 }
287
- }
288
- };
289
- var Re = function() {
290
- var e = this, a = e._self._c;
291
- return a("b-dropdown-item", e._g(e._b({ attrs: { href: e.href, disabled: e.disabled } }, "b-dropdown-item", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
292
- }, Ce = [], Te = /* @__PURE__ */ r(
293
- Ae,
294
- Re,
295
- Ce
296
- );
297
- const Ie = Te.exports, Oe = {
298
- name: "SkyFileInput",
299
- components: { BFormFile: x },
300
- inheritAttrs: !1,
301
- model: { prop: "modelValue", event: "update:modelValue" },
302
- props: {
303
- modelValue: { type: [Object, Array], default: null },
304
- accept: { type: String, default: "" },
305
- multiple: { type: Boolean, default: !1 },
306
- placeholder: { type: String, default: "" },
307
- browseText: { type: String, default: void 0 },
308
- dropPlaceholder: { type: String, default: void 0 },
309
- state: { type: String, default: "default" }
310
- },
311
- computed: {
312
- bsState() {
313
- return i(this.state);
314
- }
315
- }
316
- };
317
- var Ne = function() {
318
- var e = this, a = e._self._c;
319
- return a("b-form-file", e._b({ attrs: { value: e.modelValue, accept: e.accept, multiple: e.multiple, placeholder: e.placeholder, "browse-text": e.browseText, "drop-placeholder": e.dropPlaceholder, state: e.bsState }, on: { input: function(t) {
320
- e.$emit("update:modelValue", t), e.$emit("input", t);
321
- }, change: function(t) {
322
- return e.$emit("change", t);
323
- } } }, "b-form-file", e.$attrs, !1));
324
- }, De = [], je = /* @__PURE__ */ r(
325
- Oe,
326
- Ne,
327
- De
328
- );
329
- const Ge = je.exports, Pe = {
330
- name: "SkyFormGroup",
331
- components: { BFormGroup: V },
332
- inheritAttrs: !1,
333
- props: {
334
- label: { type: String, default: "" },
335
- labelFor: { type: String, default: void 0 },
336
- description: { type: String, default: "" },
337
- invalidFeedback: { type: String, default: "" },
338
- state: { type: String, default: "default" },
339
- labelCols: { type: [String, Number], default: void 0 },
340
- contentCols: { type: [String, Number], default: void 0 }
341
- },
342
- computed: {
343
- bsState() {
344
- return i(this.state);
345
- }
346
- }
347
- };
348
- var Me = function() {
349
- var e = this, a = e._self._c;
350
- return a("b-form-group", e._b({ attrs: { label: e.label, "label-for": e.labelFor, description: e.description, "invalid-feedback": e.invalidFeedback, state: e.bsState, "label-cols": e.labelCols, "content-cols": e.contentCols }, scopedSlots: e._u([e.$slots.label ? { key: "label", fn: function() {
351
- return [e._t("label")];
352
- }, proxy: !0 } : null, e.$slots.description ? { key: "description", fn: function() {
353
- return [e._t("description")];
354
- }, proxy: !0 } : null], null, !0) }, "b-form-group", e.$attrs, !1), [e._t("default")], 2);
355
- }, Le = [], qe = /* @__PURE__ */ r(
356
- Pe,
357
- Me,
358
- Le
359
- );
360
- const Ee = qe.exports, Ue = {
361
- name: "SkyInput",
362
- components: { BFormInput: z },
363
- inheritAttrs: !1,
364
- model: { prop: "modelValue", event: "update:modelValue" },
365
- props: {
366
- modelValue: { type: [String, Number], default: "" },
367
- type: { type: String, default: "text" },
368
- placeholder: { type: String, default: "" },
369
- id: { type: String, default: void 0 },
370
- disabled: { type: Boolean, default: !1 },
371
- state: { type: String, default: "default" },
372
- hint: { type: String, default: "" }
373
- },
374
- computed: {
375
- bsState() {
376
- return i(this.state);
377
- }
378
- },
379
- methods: {
380
- // Місця виклику керують фокусом програмно — контракт має це давати.
381
- focus() {
382
- this.$refs.input && this.$refs.input.focus();
383
- },
384
- blur() {
385
- this.$refs.input && this.$refs.input.blur();
386
- },
387
- select() {
388
- this.$refs.input && this.$refs.input.select();
389
- }
390
- }
391
- };
392
- var He = function() {
393
- var e = this, a = e._self._c;
394
- return e.hint ? a("div", { staticClass: "sky-input-with-hint" }, [a("b-form-input", e._b({ ref: "input", attrs: { id: e.id, type: e.type, value: e.modelValue, placeholder: e.placeholder, disabled: e.disabled, state: e.bsState }, on: { input: function(t) {
395
- e.$emit("update:modelValue", t), e.$emit("input", t);
396
- }, change: function(t) {
397
- return e.$emit("change", t);
398
- }, blur: function(t) {
399
- return e.$emit("blur", t);
400
- }, focus: function(t) {
401
- return e.$emit("focus", t);
402
- } } }, "b-form-input", e.$attrs, !1)), a("small", { staticClass: "setting-hint", class: e.state }, [e._v(e._s(e.hint))])], 1) : a("b-form-input", e._b({ ref: "input", attrs: { id: e.id, type: e.type, value: e.modelValue, placeholder: e.placeholder, disabled: e.disabled, state: e.bsState }, on: { input: function(t) {
403
- e.$emit("update:modelValue", t), e.$emit("input", t);
404
- }, change: function(t) {
405
- return e.$emit("change", t);
406
- }, blur: function(t) {
407
- return e.$emit("blur", t);
408
- }, focus: function(t) {
409
- return e.$emit("focus", t);
410
- } } }, "b-form-input", e.$attrs, !1));
411
- }, Je = [], Ke = /* @__PURE__ */ r(
412
- Ue,
413
- He,
414
- Je
415
- );
416
- const Qe = Ke.exports, We = {
417
- name: "SkyInputGroup",
418
- components: { BInputGroup: w },
419
- inheritAttrs: !1,
420
- props: {
421
- size: { type: String, default: "md" },
422
- prepend: { type: String, default: void 0 },
423
- append: { type: String, default: void 0 }
424
- },
425
- computed: {
426
- bsSize() {
427
- return s(this.size);
428
- }
429
- }
430
- };
431
- var Xe = function() {
432
- var e = this, a = e._self._c;
433
- return a("b-input-group", e._b({ attrs: { size: e.bsSize, prepend: e.prepend, append: e.append }, scopedSlots: e._u([e.$slots.prepend ? { key: "prepend", fn: function() {
434
- return [e._t("prepend")];
435
- }, proxy: !0 } : null, e.$slots.append ? { key: "append", fn: function() {
436
- return [e._t("append")];
437
- }, proxy: !0 } : null], null, !0) }, "b-input-group", e.$attrs, !1), [e._t("default")], 2);
438
- }, Ye = [], Ze = /* @__PURE__ */ r(
439
- We,
440
- Xe,
441
- Ye
442
- );
443
- const et = Ze.exports, tt = {
444
- name: "SkyLoader",
445
- components: { BSpinner: F },
446
- inheritAttrs: !1,
447
- props: {
448
- text: { type: String, default: "" },
449
- size: { type: String, default: "md" },
450
- tone: { type: String, default: "default" },
451
- inline: { type: Boolean, default: !1 }
452
- },
453
- computed: {
454
- bsVariant() {
455
- return d(this.tone);
456
- }
457
- }
458
- };
459
- var nt = function() {
460
- var e = this, a = e._self._c;
461
- return a("b-spinner", e._b({ attrs: { small: e.size === "sm", variant: e.bsVariant, label: e.text } }, "b-spinner", e.$attrs, !1));
462
- }, at = [], rt = /* @__PURE__ */ r(
463
- tt,
464
- nt,
465
- at
466
- );
467
- const st = rt.exports, ot = {
468
- name: "SkyProgress",
469
- components: { BProgress: A },
470
- inheritAttrs: !1,
471
- props: {
472
- value: { type: Number, default: 0 },
473
- max: { type: Number, default: 100 },
474
- showValue: { type: Boolean, default: !1 },
475
- precision: { type: Number, default: 0 },
476
- tone: { type: String, default: "info" },
477
- height: { type: String, default: void 0 }
478
- },
479
- computed: {
480
- bsVariant() {
481
- return d(this.tone);
482
- }
483
- }
484
- };
485
- var it = function() {
486
- var e = this, a = e._self._c;
487
- return a("b-progress", e._b({ attrs: { value: e.value, max: e.max, "show-value": e.showValue, precision: e.precision, variant: e.bsVariant, height: e.height } }, "b-progress", e.$attrs, !1));
488
- }, lt = [], dt = /* @__PURE__ */ r(
489
- ot,
490
- it,
491
- lt
492
- );
493
- const ut = dt.exports, pt = {
494
- name: "SkyRadio",
495
- components: { BFormRadio: R },
496
- inheritAttrs: !1,
497
- model: { prop: "modelValue", event: "update:modelValue" },
498
- props: {
499
- modelValue: { type: [String, Number, Boolean], default: null },
500
- value: { type: [String, Number, Boolean], required: !0 },
501
- name: { type: String, default: void 0 },
502
- disabled: { type: Boolean, default: !1 },
503
- size: { type: String, default: "md" },
504
- id: { type: String, default: void 0 }
505
- },
506
- computed: {
507
- bsSize() {
508
- return s(this.size);
509
- }
510
- }
511
- };
512
- var ct = function() {
513
- var e = this, a = e._self._c;
514
- return a("b-form-radio", e._b({ attrs: { id: e.id, checked: e.modelValue, value: e.value, name: e.name, disabled: e.disabled, size: e.bsSize }, on: { input: function(t) {
515
- e.$emit("update:modelValue", t), e.$emit("input", t);
516
- }, change: function(t) {
517
- return e.$emit("change", t);
518
- } } }, "b-form-radio", e.$attrs, !1), [e._t("default")], 2);
519
- }, ft = [], mt = /* @__PURE__ */ r(
520
- pt,
521
- ct,
522
- ft
523
- );
524
- const _t = mt.exports, bt = {
525
- name: "SkyRadioGroup",
526
- components: { BFormRadioGroup: C },
527
- inheritAttrs: !1,
528
- model: { prop: "modelValue", event: "update:modelValue" },
529
- props: {
530
- modelValue: { type: [String, Number, Boolean], default: null },
531
- options: { type: Array, default: () => [] },
532
- name: { type: String, default: void 0 },
533
- stacked: { type: Boolean, default: !1 },
534
- disabled: { type: Boolean, default: !1 },
535
- size: { type: String, default: "md" },
536
- id: { type: String, default: void 0 }
537
- },
538
- computed: {
539
- bsOptions() {
540
- return u(this.options);
541
- },
542
- bsSize() {
543
- return s(this.size);
544
- }
545
- }
546
- };
547
- var yt = function() {
548
- var e = this, a = e._self._c;
549
- return a("b-form-radio-group", e._b({ attrs: { id: e.id, checked: e.modelValue, options: e.bsOptions, name: e.name, stacked: e.stacked, disabled: e.disabled, size: e.bsSize }, on: { input: function(t) {
550
- e.$emit("update:modelValue", t), e.$emit("input", t);
551
- }, change: function(t) {
552
- return e.$emit("change", t);
553
- } } }, "b-form-radio-group", e.$attrs, !1), [e._t("default")], 2);
554
- }, ht = [], vt = /* @__PURE__ */ r(
555
- bt,
556
- yt,
557
- ht
558
- );
559
- const St = vt.exports, gt = {
560
- name: "SkySelect",
561
- components: { BFormSelect: I, BFormSelectOption: T },
562
- inheritAttrs: !1,
563
- model: { prop: "modelValue", event: "update:modelValue" },
564
- props: {
565
- modelValue: { type: [String, Number], default: void 0 },
566
- options: { type: Array, default: () => [] },
567
- id: { type: String, default: void 0 },
568
- disabled: { type: Boolean, default: !1 },
569
- state: { type: String, default: "default" },
570
- placeholder: { type: String, default: "" },
571
- hint: { type: String, default: "" }
572
- },
573
- computed: {
574
- bsOptions() {
575
- return u(this.options);
576
- },
577
- bsState() {
578
- return i(this.state);
579
- }
580
- }
581
- };
582
- var $t = function() {
583
- var e = this, a = e._self._c;
584
- return e.hint ? a("div", { staticClass: "sky-select-with-hint" }, [a("b-form-select", e._b({ attrs: { id: e.id, value: e.modelValue, options: e.bsOptions, disabled: e.disabled, state: e.bsState }, on: { input: function(t) {
585
- e.$emit("update:modelValue", t), e.$emit("input", t);
586
- }, change: function(t) {
587
- return e.$emit("change", t);
588
- } }, scopedSlots: e._u([e.placeholder ? { key: "first", fn: function() {
589
- return [a("b-form-select-option", { attrs: { value: "", disabled: "" } }, [e._v(e._s(e.placeholder))])];
590
- }, proxy: !0 } : null], null, !0) }, "b-form-select", e.$attrs, !1), [e._t("default")], 2), a("small", { staticClass: "setting-hint", class: e.state }, [e._v(e._s(e.hint))])], 1) : a("b-form-select", e._b({ attrs: { id: e.id, value: e.modelValue, options: e.bsOptions, disabled: e.disabled, state: e.bsState }, on: { input: function(t) {
591
- e.$emit("update:modelValue", t), e.$emit("input", t);
592
- }, change: function(t) {
593
- return e.$emit("change", t);
594
- } }, scopedSlots: e._u([e.placeholder ? { key: "first", fn: function() {
595
- return [a("b-form-select-option", { attrs: { value: "", disabled: "" } }, [e._v(e._s(e.placeholder))])];
596
- }, proxy: !0 } : null], null, !0) }, "b-form-select", e.$attrs, !1), [e._t("default")], 2);
597
- }, kt = [], Bt = /* @__PURE__ */ r(
598
- gt,
599
- $t,
600
- kt
601
- );
602
- const xt = Bt.exports, Vt = {
603
- name: "SkySkeleton",
604
- components: { BSkeleton: O },
605
- inheritAttrs: !1,
606
- props: {
607
- type: {
608
- type: String,
609
- default: "text",
610
- validator: (n) => ["text", "avatar", "button", "input"].includes(n)
611
- },
612
- width: { type: String, default: void 0 },
613
- height: { type: String, default: void 0 },
614
- animation: { type: String, default: "wave" }
615
- }
616
- };
617
- var zt = function() {
618
- var e = this, a = e._self._c;
619
- return a("b-skeleton", e._b({ attrs: { type: e.type, width: e.width, height: e.height, animation: e.animation } }, "b-skeleton", e.$attrs, !1));
620
- }, wt = [], Ft = /* @__PURE__ */ r(
621
- Vt,
622
- zt,
623
- wt
624
- );
625
- const At = Ft.exports, Rt = {
626
- name: "SkyTabs",
627
- components: { BTabs: D, BTab: N },
628
- inheritAttrs: !1,
629
- model: { prop: "modelValue", event: "update:modelValue" },
630
- props: {
631
- modelValue: { type: [String, Number], default: void 0 },
632
- options: { type: Array, default: () => [] },
633
- disabled: { type: Boolean, default: !1 }
634
- },
635
- computed: {
636
- normalized() {
637
- return u(this.options);
638
- },
639
- activeIndex() {
640
- const n = this.normalized.findIndex((e) => e.value === this.modelValue);
641
- return n === -1 ? 0 : n;
642
- }
643
- },
644
- methods: {
645
- onIndexChange(n) {
646
- const e = this.normalized[n];
647
- e && e.value !== this.modelValue && this.$emit("update:modelValue", e.value);
648
- }
649
- }
650
- };
651
- var Ct = function() {
652
- var e = this, a = e._self._c;
653
- return a("b-tabs", e._b({ attrs: { value: e.activeIndex }, on: { input: e.onIndexChange } }, "b-tabs", e.$attrs, !1), e._l(e.normalized, function(t) {
654
- return a("b-tab", { key: t.value, attrs: { title: t.text, disabled: e.disabled || t.disabled } });
655
- }), 1);
656
- }, Tt = [], It = /* @__PURE__ */ r(
657
- Rt,
658
- Ct,
659
- Tt
660
- );
661
- const Ot = It.exports, Nt = {
662
- name: "SkyTagsInput",
663
- components: { BFormTags: j },
664
- inheritAttrs: !1,
665
- model: { prop: "modelValue", event: "update:modelValue" },
666
- props: {
667
- modelValue: { type: Array, default: () => [] },
668
- placeholder: { type: String, default: "" },
669
- size: { type: String, default: "md" },
670
- separator: { type: [String, Array], default: void 0 },
671
- addOnChange: { type: Boolean, default: !1 },
672
- removeOnDelete: { type: Boolean, default: !1 },
673
- duplicateTagText: { type: String, default: void 0 },
674
- addButtonText: { type: String, default: void 0 },
675
- inputId: { type: String, default: void 0 },
676
- autofocus: { type: Boolean, default: !1 },
677
- noOuterFocus: { type: Boolean, default: !1 }
678
- },
679
- computed: {
680
- bsSize() {
681
- return s(this.size);
682
- }
683
- }
684
- };
685
- var Dt = function() {
686
- var e = this, a = e._self._c;
687
- return a("b-form-tags", e._b({ attrs: { value: e.modelValue, placeholder: e.placeholder, size: e.bsSize, separator: e.separator, "add-on-change": e.addOnChange, "remove-on-delete": e.removeOnDelete, "duplicate-tag-text": e.duplicateTagText, "add-button-text": e.addButtonText, "input-id": e.inputId, autofocus: e.autofocus, "no-outer-focus": e.noOuterFocus }, on: { input: function(t) {
688
- e.$emit("update:modelValue", t), e.$emit("input", t);
689
- } } }, "b-form-tags", e.$attrs, !1));
690
- }, jt = [], Gt = /* @__PURE__ */ r(
691
- Nt,
692
- Dt,
693
- jt
694
- );
695
- const Pt = Gt.exports, Mt = {
696
- name: "SkyTextarea",
697
- components: { BFormTextarea: G },
698
- inheritAttrs: !1,
699
- model: { prop: "modelValue", event: "update:modelValue" },
700
- props: {
701
- modelValue: { type: [String, Number], default: "" },
702
- rows: { type: [String, Number], default: 3 },
703
- maxRows: { type: [String, Number], default: void 0 },
704
- placeholder: { type: String, default: "" },
705
- id: { type: String, default: void 0 },
706
- disabled: { type: Boolean, default: !1 },
707
- state: { type: String, default: "default" }
708
- },
709
- computed: {
710
- bsState() {
711
- return i(this.state);
712
- }
713
- }
714
- };
715
- var Lt = function() {
716
- var e = this, a = e._self._c;
717
- return a("b-form-textarea", e._b({ attrs: { id: e.id, value: e.modelValue, rows: e.rows, "max-rows": e.maxRows, placeholder: e.placeholder, disabled: e.disabled, state: e.bsState }, on: { input: function(t) {
718
- e.$emit("update:modelValue", t), e.$emit("input", t);
719
- }, change: function(t) {
720
- return e.$emit("change", t);
721
- }, blur: function(t) {
722
- return e.$emit("blur", t);
723
- } } }, "b-form-textarea", e.$attrs, !1));
724
- }, qt = [], Et = /* @__PURE__ */ r(
725
- Mt,
726
- Lt,
727
- qt
728
- );
729
- const Ut = Et.exports, f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
730
- __proto__: null,
731
- SkyAlert: U,
732
- SkyBadge: W,
733
- SkyButton: re,
734
- SkyCheckbox: de,
735
- SkyCheckboxGroup: me,
736
- SkyCollapse: ve,
737
- SkyDropdown: Be,
738
- SkyDropdownDivider: Fe,
739
- SkyDropdownItem: Ie,
740
- SkyFileInput: Ge,
741
- SkyFormGroup: Ee,
742
- SkyInput: Qe,
743
- SkyInputGroup: et,
744
- SkyLoader: st,
745
- SkyProgress: ut,
746
- SkyRadio: _t,
747
- SkyRadioGroup: St,
748
- SkySelect: xt,
749
- SkySkeleton: At,
750
- SkyTabs: Ot,
751
- SkyTagsInput: Pt,
752
- SkyTextarea: Ut
753
- }, Symbol.toStringTag, { value: "Module" })), Ht = P, m = { SkyTooltip: Ht }, Qt = {
754
- install(n) {
755
- Object.keys(f).forEach((e) => n.component(e, f[e])), Object.keys(m).forEach((e) => n.directive(e, m[e]));
756
- }
757
- };
758
- export {
759
- Yt as BButton,
760
- Zt as BootstrapCompat,
761
- U as SkyAlert,
762
- W as SkyBadge,
763
- re as SkyButton,
764
- de as SkyCheckbox,
765
- me as SkyCheckboxGroup,
766
- ve as SkyCollapse,
767
- Be as SkyDropdown,
768
- Fe as SkyDropdownDivider,
769
- Ie as SkyDropdownItem,
770
- Ge as SkyFileInput,
771
- Ee as SkyFormGroup,
772
- Qe as SkyInput,
773
- et as SkyInputGroup,
774
- st as SkyLoader,
775
- ut as SkyProgress,
776
- _t as SkyRadio,
777
- St as SkyRadioGroup,
778
- xt as SkySelect,
779
- At as SkySkeleton,
780
- Ot as SkyTabs,
781
- Pt as SkyTagsInput,
782
- Ut as SkyTextarea,
783
- Ht as SkyTooltip,
784
- Qt as default,
785
- m as directives
786
- };