readytech-ui-library-v2 0.0.15 → 0.0.16
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 +1 @@
|
|
1
|
-
.lv-button[data-v-ac3af47a]{border:one;background:red;padding:1rem}.class-input[data-v-f440ad26]{border:none;background:green;padding:1rem}.btn-primary[data-v-ce0d0f31]{background-color:#1976d2;color:#fff}.btn-primary[data-v-ce0d0f31]:hover{background-color:#1565c0}.btn-icon[data-v-ce0d0f31]{padding:0;width:48px;height:48px}.btn-disabled[data-v-ce0d0f31]{opacity:.6;pointer-events:none}.v-badge[aria-label][data-v-02392152]:focus{outline:2px solid #005fcc;outline-offset:4px}.avatar-wrapper[data-v-0d49dde0]{display:flex;gap:16px;justify-content:space-around}.avatar[data-v-0d49dde0]{transition:transform .3s ease;outline:none}.avatar[data-v-0d49dde0]:focus{outline:2px solid #005fcc;outline-offset:4px}.avatar[data-v-0d49dde0]:hover{transform:scale(1.1)}.avatar img[data-v-0d49dde0]{border-radius:50%;object-fit:cover}.v-breadcrumbs-wrapper[data-v-5ccff043]{padding:8px}.v-breadcrumbs-wrapper .v-btn[data-v-5ccff043]{text-transform:none;font-size:14px}.v-breadcrumbs-wrapper span[data-v-5ccff043]{color:#0009;font-size:14px}
|
1
|
+
.lv-button[data-v-ac3af47a]{border:one;background:red;padding:1rem}.class-input[data-v-f440ad26]{border:none;background:green;padding:1rem}.btn-primary[data-v-ce0d0f31]{background-color:#1976d2;color:#fff}.btn-primary[data-v-ce0d0f31]:hover{background-color:#1565c0}.btn-icon[data-v-ce0d0f31]{padding:0;width:48px;height:48px}.btn-disabled[data-v-ce0d0f31]{opacity:.6;pointer-events:none}.v-badge[aria-label][data-v-02392152]:focus{outline:2px solid #005fcc;outline-offset:4px}.avatar-wrapper[data-v-0d49dde0]{display:flex;gap:16px;justify-content:space-around}.avatar[data-v-0d49dde0]{transition:transform .3s ease;outline:none}.avatar[data-v-0d49dde0]:focus{outline:2px solid #005fcc;outline-offset:4px}.avatar[data-v-0d49dde0]:hover{transform:scale(1.1)}.avatar img[data-v-0d49dde0]{border-radius:50%;object-fit:cover}.v-breadcrumbs-wrapper[data-v-5ccff043]{padding:8px}.v-breadcrumbs-wrapper .v-btn[data-v-5ccff043]{text-transform:none;font-size:14px}.v-breadcrumbs-wrapper span[data-v-5ccff043]{color:#0009;font-size:14px}.v-alert__close[data-v-bae3eb1c]{height:28px;width:28px}.v-alert[data-v-bae3eb1c]:focus{outline:2px solid var(--alert-focus-color, #005fcc);outline-offset:4px}[v-alert][type=error][data-v-bae3eb1c]{background-color:#ffe6e6;border-color:#c00;color:#c00}[v-alert][type=success][data-v-bae3eb1c]{background-color:#e6ffe6;border-color:green;color:green}[v-alert][dense] .alert-content[data-v-bae3eb1c]{line-height:1.4;font-size:.875rem}
|
@@ -1,27 +1,27 @@
|
|
1
|
-
import { createElementBlock as g, openBlock as
|
1
|
+
import { createElementBlock as g, openBlock as i, renderSlot as y, toDisplayString as m, resolveComponent as c, createBlock as u, mergeProps as x, normalizeClass as S, withCtx as d, createTextVNode as b, computed as v, createVNode as p, createCommentVNode as B, createElementVNode as k } from "vue";
|
2
2
|
const s = (t, a) => {
|
3
3
|
const e = t.__vccOpts || t;
|
4
|
-
for (const [
|
5
|
-
e[
|
4
|
+
for (const [l, r] of a)
|
5
|
+
e[l] = r;
|
6
6
|
return e;
|
7
|
-
},
|
8
|
-
function
|
9
|
-
return
|
10
|
-
|
7
|
+
}, R = {}, C = { class: "lv-button" };
|
8
|
+
function I(t, a) {
|
9
|
+
return i(), g("button", C, [
|
10
|
+
y(t.$slots, "default", {}, void 0, !0)
|
11
11
|
]);
|
12
12
|
}
|
13
|
-
const
|
13
|
+
const z = /* @__PURE__ */ s(R, [["render", I], ["__scopeId", "data-v-ac3af47a"]]), V = {
|
14
14
|
name: "InputTaras",
|
15
15
|
props: {
|
16
16
|
prop: {
|
17
17
|
required: !0
|
18
18
|
}
|
19
19
|
}
|
20
|
-
},
|
21
|
-
function
|
22
|
-
return
|
20
|
+
}, A = { class: "class-input" };
|
21
|
+
function N(t, a, e, l, r, n) {
|
22
|
+
return i(), g("h1", A, m(e.prop) + " taras", 1);
|
23
23
|
}
|
24
|
-
const
|
24
|
+
const L = /* @__PURE__ */ s(V, [["render", N], ["__scopeId", "data-v-f440ad26"]]), T = {
|
25
25
|
name: "RtText",
|
26
26
|
props: {
|
27
27
|
label: {
|
@@ -87,11 +87,11 @@ const N = /* @__PURE__ */ s(I, [["render", V], ["__scopeId", "data-v-f440ad26"]]
|
|
87
87
|
}
|
88
88
|
}
|
89
89
|
};
|
90
|
-
function
|
91
|
-
const
|
92
|
-
return
|
93
|
-
modelValue:
|
94
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
90
|
+
function w(t, a, e, l, r, n) {
|
91
|
+
const o = c("v-text-field");
|
92
|
+
return i(), u(o, x(n.inputProps, {
|
93
|
+
modelValue: n.inputValue,
|
94
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => n.inputValue = f),
|
95
95
|
label: e.label,
|
96
96
|
placeholder: e.placeholder,
|
97
97
|
disabled: e.disabled,
|
@@ -101,10 +101,10 @@ function A(t, a, e, n, l, o) {
|
|
101
101
|
clearable: "",
|
102
102
|
hint: e.hint,
|
103
103
|
autocomplete: e.autocomplete,
|
104
|
-
"onClick:clear":
|
104
|
+
"onClick:clear": n.handleClear
|
105
105
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-messages", "prepend-icon", "hint", "autocomplete", "onClick:clear"]);
|
106
106
|
}
|
107
|
-
const
|
107
|
+
const j = /* @__PURE__ */ s(T, [["render", w], ["__scopeId", "data-v-33b97f38"]]), q = {
|
108
108
|
name: "RtButton",
|
109
109
|
props: {
|
110
110
|
// Button text label
|
@@ -212,24 +212,24 @@ const L = /* @__PURE__ */ s(T, [["render", A], ["__scopeId", "data-v-33b97f38"]]
|
|
212
212
|
setup(t, { emit: a }) {
|
213
213
|
const e = () => {
|
214
214
|
a("click");
|
215
|
-
},
|
215
|
+
}, l = v(() => t.primary ? "flat" : "outlined"), r = v(() => t.label || "Button"), n = v(() => ({
|
216
216
|
"btn-primary": t.primary,
|
217
217
|
"btn-icon": t.icon,
|
218
218
|
"btn-disabled": t.disabled
|
219
219
|
}));
|
220
220
|
return {
|
221
221
|
onClick: e,
|
222
|
-
variant:
|
223
|
-
ariaLabel:
|
224
|
-
buttonClasses:
|
222
|
+
variant: l,
|
223
|
+
ariaLabel: r,
|
224
|
+
buttonClasses: n
|
225
225
|
};
|
226
226
|
}
|
227
227
|
};
|
228
|
-
function O(t, a, e,
|
229
|
-
const
|
230
|
-
return
|
228
|
+
function O(t, a, e, l, r, n) {
|
229
|
+
const o = c("v-btn");
|
230
|
+
return i(), u(o, {
|
231
231
|
type: "button",
|
232
|
-
variant:
|
232
|
+
variant: l.variant,
|
233
233
|
size: e.size,
|
234
234
|
color: e.color,
|
235
235
|
icon: e.icon,
|
@@ -249,19 +249,19 @@ function O(t, a, e, n, l, o) {
|
|
249
249
|
exact: e.exact,
|
250
250
|
append: e.append,
|
251
251
|
"background-color": e.backgroundColor,
|
252
|
-
class: S(
|
253
|
-
onClick:
|
254
|
-
"aria-label":
|
252
|
+
class: S(l.buttonClasses),
|
253
|
+
onClick: l.onClick,
|
254
|
+
"aria-label": l.ariaLabel
|
255
255
|
}, {
|
256
|
-
default:
|
257
|
-
|
258
|
-
b(
|
256
|
+
default: d(() => [
|
257
|
+
y(t.$slots, "default", {}, () => [
|
258
|
+
b(m(e.label), 1)
|
259
259
|
], !0)
|
260
260
|
]),
|
261
261
|
_: 3
|
262
262
|
}, 8, ["variant", "size", "color", "icon", "disabled", "loading", "outlined", "text", "tile", "depressed", "rounded", "block", "href", "target", "elevation", "to", "replace", "exact", "append", "background-color", "class", "onClick", "aria-label"]);
|
263
263
|
}
|
264
|
-
const
|
264
|
+
const h = /* @__PURE__ */ s(q, [["render", O], ["__scopeId", "data-v-ce0d0f31"]]), P = {
|
265
265
|
name: "RtBadge",
|
266
266
|
props: {
|
267
267
|
value: {
|
@@ -303,9 +303,9 @@ const B = /* @__PURE__ */ s(j, [["render", O], ["__scopeId", "data-v-ce0d0f31"]]
|
|
303
303
|
}
|
304
304
|
}
|
305
305
|
};
|
306
|
-
function
|
307
|
-
const
|
308
|
-
return
|
306
|
+
function M(t, a, e, l, r, n) {
|
307
|
+
const o = c("v-badge");
|
308
|
+
return i(), u(o, {
|
309
309
|
value: e.value,
|
310
310
|
color: e.color,
|
311
311
|
dot: e.dot,
|
@@ -315,17 +315,17 @@ function q(t, a, e, n, l, o) {
|
|
315
315
|
bottom: e.bottom,
|
316
316
|
top: e.top,
|
317
317
|
role: "status",
|
318
|
-
"aria-label":
|
318
|
+
"aria-label": n.getAriaLabel,
|
319
319
|
"aria-live": e.dot ? "polite" : "off",
|
320
320
|
tabindex: "0"
|
321
321
|
}, {
|
322
|
-
default:
|
323
|
-
|
322
|
+
default: d(() => [
|
323
|
+
y(t.$slots, "default", {}, void 0, !0)
|
324
324
|
]),
|
325
325
|
_: 3
|
326
326
|
}, 8, ["value", "color", "dot", "overlap", "content", "size", "bottom", "top", "aria-label", "aria-live"]);
|
327
327
|
}
|
328
|
-
const
|
328
|
+
const U = /* @__PURE__ */ s(P, [["render", M], ["__scopeId", "data-v-02392152"]]), D = {
|
329
329
|
name: "RtSnackbar",
|
330
330
|
props: {
|
331
331
|
message: {
|
@@ -362,45 +362,45 @@ const w = /* @__PURE__ */ s(P, [["render", q], ["__scopeId", "data-v-02392152"]]
|
|
362
362
|
snackbar: !1
|
363
363
|
};
|
364
364
|
}
|
365
|
-
},
|
366
|
-
function
|
367
|
-
const
|
368
|
-
return
|
369
|
-
|
365
|
+
}, E = { class: "text-center ma-2" };
|
366
|
+
function H(t, a, e, l, r, n) {
|
367
|
+
const o = c("v-btn"), f = c("v-snackbar");
|
368
|
+
return i(), g("div", E, [
|
369
|
+
p(o, {
|
370
370
|
color: e.buttonColor,
|
371
|
-
onClick: a[0] || (a[0] = (
|
371
|
+
onClick: a[0] || (a[0] = (_) => r.snackbar = !0)
|
372
372
|
}, {
|
373
|
-
default:
|
374
|
-
b(
|
373
|
+
default: d(() => [
|
374
|
+
b(m(e.buttonText), 1)
|
375
375
|
]),
|
376
376
|
_: 1
|
377
377
|
}, 8, ["color"]),
|
378
|
-
|
379
|
-
modelValue:
|
380
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
378
|
+
p(f, {
|
379
|
+
modelValue: r.snackbar,
|
380
|
+
"onUpdate:modelValue": a[2] || (a[2] = (_) => r.snackbar = _),
|
381
381
|
timeout: e.timeout,
|
382
382
|
color: e.snackbarColor
|
383
383
|
}, {
|
384
|
-
actions:
|
385
|
-
|
384
|
+
actions: d(() => [
|
385
|
+
p(o, {
|
386
386
|
color: e.actionButtonColor,
|
387
387
|
variant: "text",
|
388
|
-
onClick: a[1] || (a[1] = (
|
388
|
+
onClick: a[1] || (a[1] = (_) => r.snackbar = !1)
|
389
389
|
}, {
|
390
|
-
default:
|
391
|
-
b(
|
390
|
+
default: d(() => [
|
391
|
+
b(m(e.actionButtonText), 1)
|
392
392
|
]),
|
393
393
|
_: 1
|
394
394
|
}, 8, ["color"])
|
395
395
|
]),
|
396
|
-
default:
|
397
|
-
b(
|
396
|
+
default: d(() => [
|
397
|
+
b(m(e.message) + " ", 1)
|
398
398
|
]),
|
399
399
|
_: 1
|
400
400
|
}, 8, ["modelValue", "timeout", "color"])
|
401
401
|
]);
|
402
402
|
}
|
403
|
-
const
|
403
|
+
const F = /* @__PURE__ */ s(D, [["render", H], ["__scopeId", "data-v-75ce5462"]]), G = {
|
404
404
|
name: "RtImage",
|
405
405
|
props: {
|
406
406
|
src: {
|
@@ -439,9 +439,9 @@ const H = /* @__PURE__ */ s(M, [["render", D], ["__scopeId", "data-v-75ce5462"]]
|
|
439
439
|
}
|
440
440
|
}
|
441
441
|
};
|
442
|
-
function
|
443
|
-
const
|
444
|
-
return
|
442
|
+
function J(t, a, e, l, r, n) {
|
443
|
+
const o = c("v-img");
|
444
|
+
return i(), u(o, {
|
445
445
|
src: e.src,
|
446
446
|
alt: e.alt,
|
447
447
|
"lazy-src": e.lazySrc,
|
@@ -451,21 +451,21 @@ function F(t, a, e, n, l, o) {
|
|
451
451
|
transition: e.transition,
|
452
452
|
class: S(e.classes)
|
453
453
|
}, {
|
454
|
-
placeholder:
|
455
|
-
|
454
|
+
placeholder: d(() => [
|
455
|
+
y(t.$slots, "placeholder", {}, () => [
|
456
456
|
a[0] || (a[0] = b("Loading..."))
|
457
457
|
], !0)
|
458
458
|
]),
|
459
|
-
default:
|
460
|
-
|
459
|
+
default: d(() => [
|
460
|
+
y(t.$slots, "default", {}, void 0, !0)
|
461
461
|
]),
|
462
462
|
_: 3
|
463
463
|
}, 8, ["src", "alt", "lazy-src", "aspect-ratio", "gradient", "loading", "transition", "class"]);
|
464
464
|
}
|
465
|
-
const
|
465
|
+
const K = /* @__PURE__ */ s(G, [["render", J], ["__scopeId", "data-v-f3ff4550"]]), Q = {
|
466
466
|
name: "RtAvatar",
|
467
467
|
components: {
|
468
|
-
RtImage:
|
468
|
+
RtImage: K
|
469
469
|
},
|
470
470
|
props: {
|
471
471
|
avatarImage: {
|
@@ -498,14 +498,14 @@ const G = /* @__PURE__ */ s(E, [["render", F], ["__scopeId", "data-v-f3ff4550"]]
|
|
498
498
|
return this.name ? this.name.split(" ").map((t) => t[0]).join("").toUpperCase() : "";
|
499
499
|
}
|
500
500
|
}
|
501
|
-
},
|
501
|
+
}, W = { class: "avatar-wrapper" }, X = {
|
502
502
|
key: 1,
|
503
503
|
class: "initials"
|
504
504
|
};
|
505
|
-
function
|
506
|
-
const
|
507
|
-
return
|
508
|
-
|
505
|
+
function Y(t, a, e, l, r, n) {
|
506
|
+
const o = c("RtImage"), f = c("v-avatar");
|
507
|
+
return i(), g("div", W, [
|
508
|
+
p(f, {
|
509
509
|
size: e.size,
|
510
510
|
class: "avatar",
|
511
511
|
rounded: e.rounded,
|
@@ -513,21 +513,21 @@ function W(t, a, e, n, l, o) {
|
|
513
513
|
role: "img",
|
514
514
|
"aria-label": e.ariaLabel
|
515
515
|
}, {
|
516
|
-
default:
|
517
|
-
e.avatarImage ? (
|
516
|
+
default: d(() => [
|
517
|
+
e.avatarImage ? (i(), u(o, {
|
518
518
|
key: 0,
|
519
519
|
src: e.avatarImage,
|
520
520
|
alt: e.alt
|
521
|
-
}, null, 8, ["src", "alt"])) : (
|
521
|
+
}, null, 8, ["src", "alt"])) : (i(), g("span", X, m(n.initials), 1))
|
522
522
|
]),
|
523
523
|
_: 1
|
524
524
|
}, 8, ["size", "rounded", "aria-label"])
|
525
525
|
]);
|
526
526
|
}
|
527
|
-
const
|
527
|
+
const Z = /* @__PURE__ */ s(Q, [["render", Y], ["__scopeId", "data-v-0d49dde0"]]), $ = {
|
528
528
|
name: "RtBreadcrumbs",
|
529
529
|
components: {
|
530
|
-
RtButton:
|
530
|
+
RtButton: h
|
531
531
|
},
|
532
532
|
props: {
|
533
533
|
items: {
|
@@ -543,34 +543,165 @@ const X = /* @__PURE__ */ s(J, [["render", W], ["__scopeId", "data-v-0d49dde0"]]
|
|
543
543
|
default: "/"
|
544
544
|
}
|
545
545
|
}
|
546
|
-
},
|
547
|
-
function
|
548
|
-
const
|
549
|
-
return
|
546
|
+
}, ee = { key: 1 };
|
547
|
+
function te(t, a, e, l, r, n) {
|
548
|
+
const o = c("RtButton"), f = c("v-breadcrumbs");
|
549
|
+
return i(), u(f, {
|
550
550
|
class: "v-breadcrumbs-wrapper",
|
551
551
|
divider: e.divider,
|
552
552
|
items: e.items
|
553
553
|
}, {
|
554
|
-
item:
|
555
|
-
|
554
|
+
item: d(({ item: _ }) => [
|
555
|
+
_.to ? (i(), u(o, {
|
556
556
|
key: 0,
|
557
|
-
to:
|
557
|
+
to: _.to,
|
558
558
|
text: ""
|
559
559
|
}, {
|
560
|
-
default:
|
561
|
-
b(
|
560
|
+
default: d(() => [
|
561
|
+
b(m(_.text), 1)
|
562
562
|
]),
|
563
563
|
_: 2
|
564
|
-
}, 1032, ["to"])) : (
|
564
|
+
}, 1032, ["to"])) : (i(), g("span", ee, m(_.text), 1))
|
565
565
|
]),
|
566
566
|
_: 1
|
567
567
|
}, 8, ["divider", "items"]);
|
568
568
|
}
|
569
|
-
const
|
569
|
+
const ae = /* @__PURE__ */ s($, [["render", te], ["__scopeId", "data-v-5ccff043"]]), ne = {
|
570
|
+
name: "RtIcon",
|
571
|
+
props: {
|
572
|
+
// Icon name to display (e.g., 'mdi-home')
|
573
|
+
icon: {
|
574
|
+
type: String,
|
575
|
+
required: !0
|
576
|
+
},
|
577
|
+
// Optional size for the icon (e.g., '24', '36', '48', etc.)
|
578
|
+
size: {
|
579
|
+
type: String,
|
580
|
+
default: "24"
|
581
|
+
},
|
582
|
+
// Optional color for the icon (e.g., 'red', 'blue', 'primary', etc.)
|
583
|
+
color: {
|
584
|
+
type: String,
|
585
|
+
default: ""
|
586
|
+
},
|
587
|
+
// Optional custom class to apply extra styles
|
588
|
+
customClass: {
|
589
|
+
type: String,
|
590
|
+
default: ""
|
591
|
+
}
|
592
|
+
}
|
593
|
+
};
|
594
|
+
function oe(t, a, e, l, r, n) {
|
595
|
+
const o = c("v-icon");
|
596
|
+
return i(), u(o, {
|
597
|
+
size: e.size,
|
598
|
+
color: e.color,
|
599
|
+
class: S(e.customClass),
|
600
|
+
icon: e.icon
|
601
|
+
}, null, 8, ["size", "color", "class", "icon"]);
|
602
|
+
}
|
603
|
+
const le = /* @__PURE__ */ s(ne, [["render", oe], ["__scopeId", "data-v-d688a9cc"]]), re = {
|
604
|
+
name: "RtAlert",
|
605
|
+
components: {
|
606
|
+
RtIcon: le
|
607
|
+
},
|
608
|
+
props: {
|
609
|
+
density: {
|
610
|
+
type: String,
|
611
|
+
default: "default",
|
612
|
+
validator(t) {
|
613
|
+
return ["default", "comfortable", "compact"].includes(t);
|
614
|
+
}
|
615
|
+
},
|
616
|
+
closable: {
|
617
|
+
type: Boolean,
|
618
|
+
default: !1
|
619
|
+
},
|
620
|
+
variant: {
|
621
|
+
type: String,
|
622
|
+
default: "flat",
|
623
|
+
validator(t) {
|
624
|
+
return ["plain", "outlined", "tonal", "flat", "elevated", "text"].includes(t);
|
625
|
+
}
|
626
|
+
},
|
627
|
+
text: {
|
628
|
+
type: String,
|
629
|
+
default: ""
|
630
|
+
},
|
631
|
+
border: {
|
632
|
+
type: String,
|
633
|
+
default: "Start",
|
634
|
+
validator(t) {
|
635
|
+
return ["start", "top", "end", "bottom", "none"].includes(t);
|
636
|
+
}
|
637
|
+
},
|
638
|
+
icon: {
|
639
|
+
type: String,
|
640
|
+
default: "info",
|
641
|
+
validator(t) {
|
642
|
+
return ["info", "success", "error", "warning", "hidden"].includes(t);
|
643
|
+
}
|
644
|
+
},
|
645
|
+
borderColor: {
|
646
|
+
type: String,
|
647
|
+
default: "info",
|
648
|
+
validator(t) {
|
649
|
+
return ["info", "success", "error", "warning", "deep-purple accent-4"].includes(t);
|
650
|
+
}
|
651
|
+
},
|
652
|
+
color: {
|
653
|
+
type: String,
|
654
|
+
default: "info",
|
655
|
+
validator(t) {
|
656
|
+
return ["info", "success", "error", "warning", "hidden"].includes(t);
|
657
|
+
}
|
658
|
+
}
|
659
|
+
},
|
660
|
+
methods: {
|
661
|
+
// Dynamically determine aria-live based on type
|
662
|
+
getAriaLive() {
|
663
|
+
return this.type === "error" || this.type === "warning" ? "assertive" : "polite";
|
664
|
+
}
|
665
|
+
}
|
666
|
+
}, ie = { class: "alert-content" };
|
667
|
+
function de(t, a, e, l, r, n) {
|
668
|
+
const o = c("RtIcon"), f = c("v-alert");
|
669
|
+
return i(), u(f, {
|
670
|
+
text: e.text,
|
671
|
+
type: e.icon,
|
672
|
+
"border-color": e.borderColor,
|
673
|
+
color: e.color,
|
674
|
+
border: e.border,
|
675
|
+
variant: e.variant,
|
676
|
+
closable: e.closable,
|
677
|
+
density: e.density,
|
678
|
+
role: "alert",
|
679
|
+
"aria-live": n.getAriaLive(),
|
680
|
+
"aria-atomic": !0
|
681
|
+
}, {
|
682
|
+
default: d(() => [
|
683
|
+
e.icon ? (i(), u(o, {
|
684
|
+
key: 0,
|
685
|
+
left: "",
|
686
|
+
"aria-hidden": "true"
|
687
|
+
}, {
|
688
|
+
default: d(() => [
|
689
|
+
b(m(e.icon), 1)
|
690
|
+
]),
|
691
|
+
_: 1
|
692
|
+
})) : B("", !0),
|
693
|
+
k("span", ie, [
|
694
|
+
y(t.$slots, "default", {}, void 0, !0)
|
695
|
+
])
|
696
|
+
]),
|
697
|
+
_: 3
|
698
|
+
}, 8, ["text", "type", "border-color", "color", "border", "variant", "closable", "density", "aria-live"]);
|
699
|
+
}
|
700
|
+
const ce = /* @__PURE__ */ s(re, [["render", de], ["__scopeId", "data-v-bae3eb1c"]]), ue = {
|
570
701
|
install: (t, a) => {
|
571
|
-
t.component("LearnVueButton",
|
702
|
+
t.component("LearnVueButton", z), t.component("InputTaras", L), t.component("RtText", j), t.component("RtButton", h), t.component("RtBadge", U), t.component("RtSnackbar", F), t.component("RtAvatar", Z), t.component("RtBreadcrumbs", ae), t.component("RtAlert", ce);
|
572
703
|
}
|
573
704
|
};
|
574
705
|
export {
|
575
|
-
|
706
|
+
ue as default
|
576
707
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("vue")):typeof define=="function"&&define.amd?define(["vue"],i):(e=typeof globalThis<"u"?globalThis:e||self,e["readytech-ui-library-v2"]=i(e.Vue))})(this,function(e){"use strict";const i=(a,n)=>{const t=a.__vccOpts||a;for(const[o,l]of n)t[o]=l;return t},f={},m={class:"lv-button"};function p(a,n){return e.openBlock(),e.createElementBlock("button",m,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const _=i(f,[["render",p],["__scopeId","data-v-ac3af47a"]]),g={name:"InputTaras",props:{prop:{required:!0}}},b={class:"class-input"};function y(a,n,t,o,l,r){return e.openBlock(),e.createElementBlock("h1",b,e.toDisplayString(t.prop)+" taras",1)}const B=i(g,[["render",y],["__scopeId","data-v-f440ad26"]]),k={name:"RtText",props:{label:{type:String,default:"Input Field"},hint:{type:String,default:""},placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessages:{type:[String,Array],default:()=>[]},prependIcon:{type:String,default:""},clearable:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"}},computed:{inputValue:{get(){return this.modelValue},set(a){this.$emit("update:modelValue",a)}},inputProps(){return{...this.$props}}},methods:{handleClear(){this.$emit("clear")}}};function S(a,n,t,o,l,r){const d=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(d,e.mergeProps(r.inputProps,{modelValue:r.inputValue,"onUpdate:modelValue":n[0]||(n[0]=s=>r.inputValue=s),label:t.label,placeholder:t.placeholder,disabled:t.disabled,error:t.error,"error-messages":t.errorMessages,"prepend-icon":t.prependIcon,clearable:"",hint:t.hint,autocomplete:t.autocomplete,"onClick:clear":r.handleClear}),null,16,["modelValue","label","placeholder","disabled","error","error-messages","prepend-icon","hint","autocomplete","onClick:clear"])}const x=i(k,[["render",S],["__scopeId","data-v-33b97f38"]]),h={name:"RtButton",props:{label:{type:String,default:"Click Me"},primary:{type:Boolean,default:!1},size:{type:String,default:"default",validator:a=>["x-small","small","default","large","x-large"].includes(a)},color:{type:String,default:"primary"},backgroundColor:{type:String},icon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},text:{type:String,default:""},tile:{type:Boolean,default:!1},depressed:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},block:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},to:{type:[String,Object],default:null},replace:{type:Boolean,default:!1},exact:{type:Boolean,default:!1},append:{type:Boolean,default:!1},elevation:{type:[Number,String],default:2}},emits:["click"],setup(a,{emit:n}){const t=()=>{n("click")},o=e.computed(()=>a.primary?"flat":"outlined"),l=e.computed(()=>a.label||"Button"),r=e.computed(()=>({"btn-primary":a.primary,"btn-icon":a.icon,"btn-disabled":a.disabled}));return{onClick:t,variant:o,ariaLabel:l,buttonClasses:r}}};function C(a,n,t,o,l,r){const d=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(d,{type:"button",variant:o.variant,size:t.size,color:t.color,icon:t.icon,disabled:t.disabled,loading:t.loading,outlined:t.outlined,text:t.text,tile:t.tile,depressed:t.depressed,rounded:t.rounded,block:t.block,href:t.href,target:t.target,elevation:t.elevation,to:t.to,replace:t.replace,exact:t.exact,append:t.append,"background-color":t.backgroundColor,class:e.normalizeClass(o.buttonClasses),onClick:o.onClick,"aria-label":o.ariaLabel},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)]),_:3},8,["variant","size","color","icon","disabled","loading","outlined","text","tile","depressed","rounded","block","href","target","elevation","to","replace","exact","append","background-color","class","onClick","aria-label"])}const u=i(h,[["render",C],["__scopeId","data-v-ce0d0f31"]]),R={name:"RtBadge",props:{value:{type:[String,Number],default:0},color:{type:String,default:"red"},dot:{type:Boolean,default:!1},overlap:{type:Boolean,default:!1},content:{type:String,default:""},size:{type:[String,Number],default:"20"},bottom:{type:Boolean,default:!1},top:{type:Boolean,default:!1}},computed:{getAriaLabel(){return this.dot?"Notification dot":this.content?`Badge content: ${this.content}`:this.value?`Badge value: ${this.value}`:"Badge"}}};function V(a,n,t,o,l,r){const d=e.resolveComponent("v-badge");return e.openBlock(),e.createBlock(d,{value:t.value,color:t.color,dot:t.dot,overlap:t.overlap,content:t.content,size:t.size,bottom:t.bottom,top:t.top,role:"status","aria-label":r.getAriaLabel,"aria-live":t.dot?"polite":"off",tabindex:"0"},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["value","color","dot","overlap","content","size","bottom","top","aria-label","aria-live"])}const I=i(R,[["render",V],["__scopeId","data-v-02392152"]]),z={name:"RtSnackbar",props:{message:{type:String,default:"Hello, I'm a snackbar!"},timeout:{type:Number,default:6e3},buttonText:{type:String,default:"Open Snackbar"},buttonColor:{type:String,default:"primary"},snackbarColor:{type:String,default:""},actionButtonText:{type:String,default:"Close"},actionButtonColor:{type:String,default:"pink"}},data(){return{snackbar:!1}}},N={class:"text-center ma-2"};function T(a,n,t,o,l,r){const d=e.resolveComponent("v-btn"),s=e.resolveComponent("v-snackbar");return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(d,{color:t.buttonColor,onClick:n[0]||(n[0]=c=>l.snackbar=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.buttonText),1)]),_:1},8,["color"]),e.createVNode(s,{modelValue:l.snackbar,"onUpdate:modelValue":n[2]||(n[2]=c=>l.snackbar=c),timeout:t.timeout,color:t.snackbarColor},{actions:e.withCtx(()=>[e.createVNode(d,{color:t.actionButtonColor,variant:"text",onClick:n[1]||(n[1]=c=>l.snackbar=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.actionButtonText),1)]),_:1},8,["color"])]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.message)+" ",1)]),_:1},8,["modelValue","timeout","color"])])}const w=i(z,[["render",T],["__scopeId","data-v-75ce5462"]]),A={name:"RtImage",props:{src:{type:String,required:!0},alt:{type:String,required:!0},lazySrc:{type:String,default:""},aspectRatio:{type:[Number,String],default:null},gradient:{type:String,default:""},loading:{type:String,default:"lazy",validator:a=>["lazy","eager"].includes(a)},transition:{type:String,default:"fade-transition"},classes:{type:[String,Array,Object],default:()=>""}}};function L(a,n,t,o,l,r){const d=e.resolveComponent("v-img");return e.openBlock(),e.createBlock(d,{src:t.src,alt:t.alt,"lazy-src":t.lazySrc,"aspect-ratio":t.aspectRatio,gradient:t.gradient,loading:t.loading,transition:t.transition,class:e.normalizeClass(t.classes)},{placeholder:e.withCtx(()=>[e.renderSlot(a.$slots,"placeholder",{},()=>[n[0]||(n[0]=e.createTextVNode("Loading..."))],!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["src","alt","lazy-src","aspect-ratio","gradient","loading","transition","class"])}const v={name:"RtAvatar",components:{RtImage:i(A,[["render",L],["__scopeId","data-v-f3ff4550"]])},props:{avatarImage:{type:String,default:"https://randomuser.me/api/portraits/men/32.jpg"},alt:{type:String,default:"Alt"},ariaLabel:{type:String,default:"Aria Label"},name:{type:String,default:"Name"},size:{type:Number,default:50},rounded:{type:Number,default:1}},computed:{initials(){return this.name?this.name.split(" ").map(a=>a[0]).join("").toUpperCase():""}}},D={class:"avatar-wrapper"},E={key:1,class:"initials"};function j(a,n,t,o,l,r){const d=e.resolveComponent("RtImage"),s=e.resolveComponent("v-avatar");return e.openBlock(),e.createElementBlock("div",D,[e.createVNode(s,{size:t.size,class:"avatar",rounded:t.rounded,tabindex:"0",role:"img","aria-label":t.ariaLabel},{default:e.withCtx(()=>[t.avatarImage?(e.openBlock(),e.createBlock(d,{key:0,src:t.avatarImage,alt:t.alt},null,8,["src","alt"])):(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(r.initials),1))]),_:1},8,["size","rounded","aria-label"])])}const q=i(v,[["render",j],["__scopeId","data-v-0d49dde0"]]),O={name:"RtBreadcrumbs",components:{RtButton:u},props:{items:{type:Array,default:()=>[{text:"Home",to:"/"},{text:"Products",to:"/products"},{text:"Details",to:null}]},divider:{type:String,default:"/"}}},P={key:1};function M(a,n,t,o,l,r){const d=e.resolveComponent("RtButton"),s=e.resolveComponent("v-breadcrumbs");return e.openBlock(),e.createBlock(s,{class:"v-breadcrumbs-wrapper",divider:t.divider,items:t.items},{item:e.withCtx(({item:c})=>[c.to?(e.openBlock(),e.createBlock(d,{key:0,to:c.to,text:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.text),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(c.text),1))]),_:1},8,["divider","items"])}const U=i(O,[["render",M],["__scopeId","data-v-5ccff043"]]);return{install:(a,n)=>{a.component("LearnVueButton",_),a.component("InputTaras",B),a.component("RtText",x),a.component("RtButton",u),a.component("RtBadge",I),a.component("RtSnackbar",w),a.component("RtAvatar",q),a.component("RtBreadcrumbs",U)}}});
|
1
|
+
(function(t,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("vue")):typeof define=="function"&&define.amd?define(["vue"],i):(t=typeof globalThis<"u"?globalThis:t||self,t["readytech-ui-library-v2"]=i(t.Vue))})(this,function(t){"use strict";const i=(a,n)=>{const e=a.__vccOpts||a;for(const[r,c]of n)e[r]=c;return e},f={},m={class:"lv-button"};function p(a,n){return t.openBlock(),t.createElementBlock("button",m,[t.renderSlot(a.$slots,"default",{},void 0,!0)])}const _=i(f,[["render",p],["__scopeId","data-v-ac3af47a"]]),g={name:"InputTaras",props:{prop:{required:!0}}},y={class:"class-input"};function b(a,n,e,r,c,o){return t.openBlock(),t.createElementBlock("h1",y,t.toDisplayString(e.prop)+" taras",1)}const B=i(g,[["render",b],["__scopeId","data-v-f440ad26"]]),k={name:"RtText",props:{label:{type:String,default:"Input Field"},hint:{type:String,default:""},placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessages:{type:[String,Array],default:()=>[]},prependIcon:{type:String,default:""},clearable:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"}},computed:{inputValue:{get(){return this.modelValue},set(a){this.$emit("update:modelValue",a)}},inputProps(){return{...this.$props}}},methods:{handleClear(){this.$emit("clear")}}};function S(a,n,e,r,c,o){const l=t.resolveComponent("v-text-field");return t.openBlock(),t.createBlock(l,t.mergeProps(o.inputProps,{modelValue:o.inputValue,"onUpdate:modelValue":n[0]||(n[0]=d=>o.inputValue=d),label:e.label,placeholder:e.placeholder,disabled:e.disabled,error:e.error,"error-messages":e.errorMessages,"prepend-icon":e.prependIcon,clearable:"",hint:e.hint,autocomplete:e.autocomplete,"onClick:clear":o.handleClear}),null,16,["modelValue","label","placeholder","disabled","error","error-messages","prepend-icon","hint","autocomplete","onClick:clear"])}const x=i(k,[["render",S],["__scopeId","data-v-33b97f38"]]),h={name:"RtButton",props:{label:{type:String,default:"Click Me"},primary:{type:Boolean,default:!1},size:{type:String,default:"default",validator:a=>["x-small","small","default","large","x-large"].includes(a)},color:{type:String,default:"primary"},backgroundColor:{type:String},icon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},text:{type:String,default:""},tile:{type:Boolean,default:!1},depressed:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},block:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},to:{type:[String,Object],default:null},replace:{type:Boolean,default:!1},exact:{type:Boolean,default:!1},append:{type:Boolean,default:!1},elevation:{type:[Number,String],default:2}},emits:["click"],setup(a,{emit:n}){const e=()=>{n("click")},r=t.computed(()=>a.primary?"flat":"outlined"),c=t.computed(()=>a.label||"Button"),o=t.computed(()=>({"btn-primary":a.primary,"btn-icon":a.icon,"btn-disabled":a.disabled}));return{onClick:e,variant:r,ariaLabel:c,buttonClasses:o}}};function C(a,n,e,r,c,o){const l=t.resolveComponent("v-btn");return t.openBlock(),t.createBlock(l,{type:"button",variant:r.variant,size:e.size,color:e.color,icon:e.icon,disabled:e.disabled,loading:e.loading,outlined:e.outlined,text:e.text,tile:e.tile,depressed:e.depressed,rounded:e.rounded,block:e.block,href:e.href,target:e.target,elevation:e.elevation,to:e.to,replace:e.replace,exact:e.exact,append:e.append,"background-color":e.backgroundColor,class:t.normalizeClass(r.buttonClasses),onClick:r.onClick,"aria-label":r.ariaLabel},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)],!0)]),_:3},8,["variant","size","color","icon","disabled","loading","outlined","text","tile","depressed","rounded","block","href","target","elevation","to","replace","exact","append","background-color","class","onClick","aria-label"])}const u=i(h,[["render",C],["__scopeId","data-v-ce0d0f31"]]),R={name:"RtBadge",props:{value:{type:[String,Number],default:0},color:{type:String,default:"red"},dot:{type:Boolean,default:!1},overlap:{type:Boolean,default:!1},content:{type:String,default:""},size:{type:[String,Number],default:"20"},bottom:{type:Boolean,default:!1},top:{type:Boolean,default:!1}},computed:{getAriaLabel(){return this.dot?"Notification dot":this.content?`Badge content: ${this.content}`:this.value?`Badge value: ${this.value}`:"Badge"}}};function I(a,n,e,r,c,o){const l=t.resolveComponent("v-badge");return t.openBlock(),t.createBlock(l,{value:e.value,color:e.color,dot:e.dot,overlap:e.overlap,content:e.content,size:e.size,bottom:e.bottom,top:e.top,role:"status","aria-label":o.getAriaLabel,"aria-live":e.dot?"polite":"off",tabindex:"0"},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["value","color","dot","overlap","content","size","bottom","top","aria-label","aria-live"])}const V=i(R,[["render",I],["__scopeId","data-v-02392152"]]),z={name:"RtSnackbar",props:{message:{type:String,default:"Hello, I'm a snackbar!"},timeout:{type:Number,default:6e3},buttonText:{type:String,default:"Open Snackbar"},buttonColor:{type:String,default:"primary"},snackbarColor:{type:String,default:""},actionButtonText:{type:String,default:"Close"},actionButtonColor:{type:String,default:"pink"}},data(){return{snackbar:!1}}},N={class:"text-center ma-2"};function w(a,n,e,r,c,o){const l=t.resolveComponent("v-btn"),d=t.resolveComponent("v-snackbar");return t.openBlock(),t.createElementBlock("div",N,[t.createVNode(l,{color:e.buttonColor,onClick:n[0]||(n[0]=s=>c.snackbar=!0)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.buttonText),1)]),_:1},8,["color"]),t.createVNode(d,{modelValue:c.snackbar,"onUpdate:modelValue":n[2]||(n[2]=s=>c.snackbar=s),timeout:e.timeout,color:e.snackbarColor},{actions:t.withCtx(()=>[t.createVNode(l,{color:e.actionButtonColor,variant:"text",onClick:n[1]||(n[1]=s=>c.snackbar=!1)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionButtonText),1)]),_:1},8,["color"])]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.message)+" ",1)]),_:1},8,["modelValue","timeout","color"])])}const T=i(z,[["render",w],["__scopeId","data-v-75ce5462"]]),v={name:"RtImage",props:{src:{type:String,required:!0},alt:{type:String,required:!0},lazySrc:{type:String,default:""},aspectRatio:{type:[Number,String],default:null},gradient:{type:String,default:""},loading:{type:String,default:"lazy",validator:a=>["lazy","eager"].includes(a)},transition:{type:String,default:"fade-transition"},classes:{type:[String,Array,Object],default:()=>""}}};function A(a,n,e,r,c,o){const l=t.resolveComponent("v-img");return t.openBlock(),t.createBlock(l,{src:e.src,alt:e.alt,"lazy-src":e.lazySrc,"aspect-ratio":e.aspectRatio,gradient:e.gradient,loading:e.loading,transition:e.transition,class:t.normalizeClass(e.classes)},{placeholder:t.withCtx(()=>[t.renderSlot(a.$slots,"placeholder",{},()=>[n[0]||(n[0]=t.createTextVNode("Loading..."))],!0)]),default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["src","alt","lazy-src","aspect-ratio","gradient","loading","transition","class"])}const L={name:"RtAvatar",components:{RtImage:i(v,[["render",A],["__scopeId","data-v-f3ff4550"]])},props:{avatarImage:{type:String,default:"https://randomuser.me/api/portraits/men/32.jpg"},alt:{type:String,default:"Alt"},ariaLabel:{type:String,default:"Aria Label"},name:{type:String,default:"Name"},size:{type:Number,default:50},rounded:{type:Number,default:1}},computed:{initials(){return this.name?this.name.split(" ").map(a=>a[0]).join("").toUpperCase():""}}},D={class:"avatar-wrapper"},E={key:1,class:"initials"};function j(a,n,e,r,c,o){const l=t.resolveComponent("RtImage"),d=t.resolveComponent("v-avatar");return t.openBlock(),t.createElementBlock("div",D,[t.createVNode(d,{size:e.size,class:"avatar",rounded:e.rounded,tabindex:"0",role:"img","aria-label":e.ariaLabel},{default:t.withCtx(()=>[e.avatarImage?(t.openBlock(),t.createBlock(l,{key:0,src:e.avatarImage,alt:e.alt},null,8,["src","alt"])):(t.openBlock(),t.createElementBlock("span",E,t.toDisplayString(o.initials),1))]),_:1},8,["size","rounded","aria-label"])])}const q=i(L,[["render",j],["__scopeId","data-v-0d49dde0"]]),O={name:"RtBreadcrumbs",components:{RtButton:u},props:{items:{type:Array,default:()=>[{text:"Home",to:"/"},{text:"Products",to:"/products"},{text:"Details",to:null}]},divider:{type:String,default:"/"}}},P={key:1};function M(a,n,e,r,c,o){const l=t.resolveComponent("RtButton"),d=t.resolveComponent("v-breadcrumbs");return t.openBlock(),t.createBlock(d,{class:"v-breadcrumbs-wrapper",divider:e.divider,items:e.items},{item:t.withCtx(({item:s})=>[s.to?(t.openBlock(),t.createBlock(l,{key:0,to:s.to,text:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.text),1)]),_:2},1032,["to"])):(t.openBlock(),t.createElementBlock("span",P,t.toDisplayString(s.text),1))]),_:1},8,["divider","items"])}const U=i(O,[["render",M],["__scopeId","data-v-5ccff043"]]),H={name:"RtIcon",props:{icon:{type:String,required:!0},size:{type:String,default:"24"},color:{type:String,default:""},customClass:{type:String,default:""}}};function F(a,n,e,r,c,o){const l=t.resolveComponent("v-icon");return t.openBlock(),t.createBlock(l,{size:e.size,color:e.color,class:t.normalizeClass(e.customClass),icon:e.icon},null,8,["size","color","class","icon"])}const G={name:"RtAlert",components:{RtIcon:i(H,[["render",F],["__scopeId","data-v-d688a9cc"]])},props:{density:{type:String,default:"default",validator(a){return["default","comfortable","compact"].includes(a)}},closable:{type:Boolean,default:!1},variant:{type:String,default:"flat",validator(a){return["plain","outlined","tonal","flat","elevated","text"].includes(a)}},text:{type:String,default:""},border:{type:String,default:"Start",validator(a){return["start","top","end","bottom","none"].includes(a)}},icon:{type:String,default:"info",validator(a){return["info","success","error","warning","hidden"].includes(a)}},borderColor:{type:String,default:"info",validator(a){return["info","success","error","warning","deep-purple accent-4"].includes(a)}},color:{type:String,default:"info",validator(a){return["info","success","error","warning","hidden"].includes(a)}}},methods:{getAriaLive(){return this.type==="error"||this.type==="warning"?"assertive":"polite"}}},J={class:"alert-content"};function K(a,n,e,r,c,o){const l=t.resolveComponent("RtIcon"),d=t.resolveComponent("v-alert");return t.openBlock(),t.createBlock(d,{text:e.text,type:e.icon,"border-color":e.borderColor,color:e.color,border:e.border,variant:e.variant,closable:e.closable,density:e.density,role:"alert","aria-live":o.getAriaLive(),"aria-atomic":!0},{default:t.withCtx(()=>[e.icon?(t.openBlock(),t.createBlock(l,{key:0,left:"","aria-hidden":"true"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.icon),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("span",J,[t.renderSlot(a.$slots,"default",{},void 0,!0)])]),_:3},8,["text","type","border-color","color","border","variant","closable","density","aria-live"])}const Q=i(G,[["render",K],["__scopeId","data-v-bae3eb1c"]]);return{install:(a,n)=>{a.component("LearnVueButton",_),a.component("InputTaras",B),a.component("RtText",x),a.component("RtButton",u),a.component("RtBadge",V),a.component("RtSnackbar",T),a.component("RtAvatar",q),a.component("RtBreadcrumbs",U),a.component("RtAlert",Q)}}});
|