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