v-sistec-features 1.6.2 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +1 -1
- package/dist/index-SOrsDdYZ.js +710 -0
- package/dist/index.js +1 -1
- package/dist/{plugin-CS5DnmVr.js → plugin-BWcXrGKi.js} +65 -59
- package/dist/toast/components/ToastComponent.vue.d.ts +6 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/useToastStore.d.ts +15 -0
- package/dist/toast.js +50 -0
- package/dist/v-sistec-features.css +1 -1
- package/package.json +9 -3
- package/src/core/plugin.ts +9 -0
- package/src/toast/components/ToastComponent.vue +20 -0
- package/src/toast/index.ts +2 -0
- package/src/toast/useToastStore.ts +53 -0
package/dist/index.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import Wr from "v-required";
|
|
2
|
-
|
|
2
|
+
import { s as Rr } from "./index-SOrsDdYZ.js";
|
|
3
|
+
function Br(F, Ye) {
|
|
3
4
|
for (var $ = 0; $ < Ye.length; $++) {
|
|
4
5
|
const Z = Ye[$];
|
|
5
6
|
if (typeof Z != "string" && !Array.isArray(Z)) {
|
|
6
7
|
for (const he in Z)
|
|
7
|
-
if (he !== "default" && !(he in
|
|
8
|
+
if (he !== "default" && !(he in F)) {
|
|
8
9
|
const D = Object.getOwnPropertyDescriptor(Z, he);
|
|
9
|
-
D && Object.defineProperty(
|
|
10
|
+
D && Object.defineProperty(F, he, D.get ? D : {
|
|
10
11
|
enumerable: !0,
|
|
11
12
|
get: () => Z[he]
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(
|
|
17
|
+
return Object.freeze(Object.defineProperty(F, Symbol.toStringTag, { value: "Module" }));
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
19
|
+
function Vr(F) {
|
|
20
|
+
return F && F.__esModule && Object.prototype.hasOwnProperty.call(F, "default") ? F.default : F;
|
|
20
21
|
}
|
|
21
22
|
var ot = { exports: {} };
|
|
22
23
|
/*!
|
|
@@ -25,12 +26,12 @@ var ot = { exports: {} };
|
|
|
25
26
|
* Copyright 2018-2025 codecalm.net Paweł Kuna
|
|
26
27
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
27
28
|
*/
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
return hs || (hs = 1, (function(
|
|
29
|
+
var Ur = ot.exports, hs;
|
|
30
|
+
function Kr() {
|
|
31
|
+
return hs || (hs = 1, (function(F, Ye) {
|
|
31
32
|
(function($, Z) {
|
|
32
33
|
Z(Ye);
|
|
33
|
-
})(
|
|
34
|
+
})(Ur, function($) {
|
|
34
35
|
const Z = document.querySelectorAll('[data-bs-toggle="autosize"]');
|
|
35
36
|
Z.length && Z.forEach(function(i) {
|
|
36
37
|
window.autosize && window.autosize(i);
|
|
@@ -51,7 +52,7 @@ function Ur() {
|
|
|
51
52
|
}), [].slice.call(document.querySelectorAll("[data-mask]")).map(function(i) {
|
|
52
53
|
window.IMask && new window.IMask(i, { mask: i.dataset.mask, lazy: i.dataset["mask-visible"] === "true" });
|
|
53
54
|
});
|
|
54
|
-
var D = "top",
|
|
55
|
+
var D = "top", H = "bottom", q = "right", P = "left", rt = "auto", $e = [D, H, q, P], ye = "start", De = "end", gi = "clippingParents", xt = "viewport", Ie = "popper", _i = "reference", kt = $e.reduce(function(i, e) {
|
|
55
56
|
return i.concat([e + "-" + ye, e + "-" + De]);
|
|
56
57
|
}, []), St = [].concat($e, [rt]).reduce(function(i, e) {
|
|
57
58
|
return i.concat([e, e + "-" + ye, e + "-" + De]);
|
|
@@ -59,7 +60,7 @@ function Ur() {
|
|
|
59
60
|
function ee(i) {
|
|
60
61
|
return i ? (i.nodeName || "").toLowerCase() : null;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function z(i) {
|
|
63
64
|
if (i == null) return window;
|
|
64
65
|
if (i.toString() !== "[object Window]") {
|
|
65
66
|
var e = i.ownerDocument;
|
|
@@ -68,13 +69,13 @@ function Ur() {
|
|
|
68
69
|
return i;
|
|
69
70
|
}
|
|
70
71
|
function we(i) {
|
|
71
|
-
return i instanceof
|
|
72
|
+
return i instanceof z(i).Element || i instanceof Element;
|
|
72
73
|
}
|
|
73
74
|
function B(i) {
|
|
74
|
-
return i instanceof
|
|
75
|
+
return i instanceof z(i).HTMLElement || i instanceof HTMLElement;
|
|
75
76
|
}
|
|
76
77
|
function Lt(i) {
|
|
77
|
-
return typeof ShadowRoot < "u" && (i instanceof
|
|
78
|
+
return typeof ShadowRoot < "u" && (i instanceof z(i).ShadowRoot || i instanceof ShadowRoot);
|
|
78
79
|
}
|
|
79
80
|
const $t = { name: "applyStyles", enabled: !0, phase: "write", fn: function(i) {
|
|
80
81
|
var e = i.state;
|
|
@@ -115,7 +116,7 @@ function Ur() {
|
|
|
115
116
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
116
117
|
var n = i.getBoundingClientRect(), s = 1, o = 1;
|
|
117
118
|
e && B(i) && (s = i.offsetWidth > 0 && Pe(n.width) / i.offsetWidth || 1, o = i.offsetHeight > 0 && Pe(n.height) / i.offsetHeight || 1);
|
|
118
|
-
var r = (we(i) ?
|
|
119
|
+
var r = (we(i) ? z(i) : window).visualViewport, a = !ki() && t, c = (n.left + (a && r ? r.offsetLeft : 0)) / s, h = (n.top + (a && r ? r.offsetTop : 0)) / o, d = n.width / s, u = n.height / o;
|
|
119
120
|
return { width: d, height: u, top: h, right: c + d, bottom: h + u, left: c, x: c, y: h };
|
|
120
121
|
}
|
|
121
122
|
function It(i) {
|
|
@@ -135,7 +136,7 @@ function Ur() {
|
|
|
135
136
|
return !1;
|
|
136
137
|
}
|
|
137
138
|
function oe(i) {
|
|
138
|
-
return
|
|
139
|
+
return z(i).getComputedStyle(i);
|
|
139
140
|
}
|
|
140
141
|
function fs(i) {
|
|
141
142
|
return ["table", "td", "th"].indexOf(ee(i)) >= 0;
|
|
@@ -150,7 +151,7 @@ function Ur() {
|
|
|
150
151
|
return B(i) && oe(i).position !== "fixed" ? i.offsetParent : null;
|
|
151
152
|
}
|
|
152
153
|
function Je(i) {
|
|
153
|
-
for (var e =
|
|
154
|
+
for (var e = z(i), t = Li(i); t && fs(t) && oe(t).position === "static"; ) t = Li(t);
|
|
154
155
|
return t && (ee(t) === "html" || ee(t) === "body" && oe(t).position === "static") ? e : t || (function(n) {
|
|
155
156
|
var s = /firefox/i.test(Dt());
|
|
156
157
|
if (/Trident/i.test(Dt()) && B(n) && oe(n).position === "fixed") return null;
|
|
@@ -178,11 +179,11 @@ function Ur() {
|
|
|
178
179
|
}, {});
|
|
179
180
|
}
|
|
180
181
|
const Ii = { name: "arrow", enabled: !0, phase: "main", fn: function(i) {
|
|
181
|
-
var e, t = i.state, n = i.name, s = i.options, o = t.elements.arrow, r = t.modifiersData.popperOffsets, a = te(t.placement), c = Pt(a), h = [P,
|
|
182
|
+
var e, t = i.state, n = i.name, s = i.options, o = t.elements.arrow, r = t.modifiersData.popperOffsets, a = te(t.placement), c = Pt(a), h = [P, q].indexOf(a) >= 0 ? "height" : "width";
|
|
182
183
|
if (o && r) {
|
|
183
184
|
var d = (function(O, T) {
|
|
184
185
|
return $i(typeof (O = typeof O == "function" ? O(Object.assign({}, T.rects, { placement: T.placement })) : O) != "number" ? O : Di(O, $e));
|
|
185
|
-
})(s.padding, t), u = It(o), b = c === "y" ? D : P, p = c === "y" ?
|
|
186
|
+
})(s.padding, t), u = It(o), b = c === "y" ? D : P, p = c === "y" ? H : q, g = t.rects.reference[h] + t.rects.reference[c] - r[c] - t.rects.popper[h], m = r[c] - t.rects.reference[c], _ = Je(o), C = _ ? c === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, k = g / 2 - m / 2, y = d[b], A = C - u[h] - d[p], v = C / 2 - u[h] / 2 + k, w = Ge(y, v, A), E = c;
|
|
186
187
|
t.modifiersData[n] = ((e = {})[E] = w, e.centerOffset = w - v, e);
|
|
187
188
|
}
|
|
188
189
|
}, effect: function(i) {
|
|
@@ -199,13 +200,13 @@ function Ur() {
|
|
|
199
200
|
var C = r.hasOwnProperty("x"), k = r.hasOwnProperty("y"), y = P, A = D, v = window;
|
|
200
201
|
if (h) {
|
|
201
202
|
var w = Je(t), E = "clientHeight", O = "clientWidth";
|
|
202
|
-
w ===
|
|
203
|
+
w === z(t) && oe(w = de(t)).position !== "static" && a === "absolute" && (E = "scrollHeight", O = "scrollWidth"), (s === D || (s === P || s === q) && o === De) && (A = H, m -= (u && w === v && v.visualViewport ? v.visualViewport.height : w[E]) - n.height, m *= c ? 1 : -1), s !== P && (s !== D && s !== H || o !== De) || (y = q, p -= (u && w === v && v.visualViewport ? v.visualViewport.width : w[O]) - n.width, p *= c ? 1 : -1);
|
|
203
204
|
}
|
|
204
|
-
var T, L = Object.assign({ position: a }, h && ps),
|
|
205
|
+
var T, L = Object.assign({ position: a }, h && ps), R = d === !0 ? (function(G, N) {
|
|
205
206
|
var Q = G.x, X = G.y, S = N.devicePixelRatio || 1;
|
|
206
207
|
return { x: Pe(Q * S) / S || 0, y: Pe(X * S) / S || 0 };
|
|
207
|
-
})({ x: p, y: m },
|
|
208
|
-
return p =
|
|
208
|
+
})({ x: p, y: m }, z(t)) : { x: p, y: m };
|
|
209
|
+
return p = R.x, m = R.y, c ? Object.assign({}, L, ((T = {})[A] = k ? "0" : "", T[y] = C ? "0" : "", T.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", T)) : Object.assign({}, L, ((e = {})[A] = k ? m + "px" : "", e[y] = C ? p + "px" : "", e.transform = "", e));
|
|
209
210
|
}
|
|
210
211
|
const Nt = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: function(i) {
|
|
211
212
|
var e = i.state, t = i.options, n = t.gpuAcceleration, s = n === void 0 || n, o = t.adaptive, r = o === void 0 || o, a = t.roundOffsets, c = a === void 0 || a, h = { placement: te(e.placement), variation: je(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: s, isFixed: e.options.strategy === "fixed" };
|
|
@@ -214,7 +215,7 @@ function Ur() {
|
|
|
214
215
|
var ct = { passive: !0 };
|
|
215
216
|
const jt = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
|
|
216
217
|
}, effect: function(i) {
|
|
217
|
-
var e = i.state, t = i.instance, n = i.options, s = n.scroll, o = s === void 0 || s, r = n.resize, a = r === void 0 || r, c =
|
|
218
|
+
var e = i.state, t = i.instance, n = i.options, s = n.scroll, o = s === void 0 || s, r = n.resize, a = r === void 0 || r, c = z(e.elements.popper), h = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
218
219
|
return o && h.forEach(function(d) {
|
|
219
220
|
d.addEventListener("scroll", t.update, ct);
|
|
220
221
|
}), a && c.addEventListener("resize", t.update, ct), function() {
|
|
@@ -236,7 +237,7 @@ function Ur() {
|
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
239
|
function Mt(i) {
|
|
239
|
-
var e =
|
|
240
|
+
var e = z(i);
|
|
240
241
|
return { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
241
242
|
}
|
|
242
243
|
function Ft(i) {
|
|
@@ -252,7 +253,7 @@ function Ur() {
|
|
|
252
253
|
function Ze(i, e) {
|
|
253
254
|
var t;
|
|
254
255
|
e === void 0 && (e = []);
|
|
255
|
-
var n = ji(i), s = n === ((t = i.ownerDocument) == null ? void 0 : t.body), o =
|
|
256
|
+
var n = ji(i), s = n === ((t = i.ownerDocument) == null ? void 0 : t.body), o = z(n), r = s ? [o].concat(o.visualViewport || [], Ht(n) ? n : []) : n, a = e.concat(r);
|
|
256
257
|
return s ? a : a.concat(Ze(lt(r)));
|
|
257
258
|
}
|
|
258
259
|
function qt(i) {
|
|
@@ -260,7 +261,7 @@ function Ur() {
|
|
|
260
261
|
}
|
|
261
262
|
function Mi(i, e, t) {
|
|
262
263
|
return e === xt ? qt((function(n, s) {
|
|
263
|
-
var o =
|
|
264
|
+
var o = z(n), r = de(n), a = o.visualViewport, c = r.clientWidth, h = r.clientHeight, d = 0, u = 0;
|
|
264
265
|
if (a) {
|
|
265
266
|
c = a.width, h = a.height;
|
|
266
267
|
var b = ki();
|
|
@@ -281,10 +282,10 @@ function Ur() {
|
|
|
281
282
|
case D:
|
|
282
283
|
e = { x: a, y: t.y - n.height };
|
|
283
284
|
break;
|
|
284
|
-
case
|
|
285
|
+
case H:
|
|
285
286
|
e = { x: a, y: t.y + t.height };
|
|
286
287
|
break;
|
|
287
|
-
case
|
|
288
|
+
case q:
|
|
288
289
|
e = { x: t.x + t.width, y: c };
|
|
289
290
|
break;
|
|
290
291
|
case P:
|
|
@@ -319,11 +320,11 @@ function Ur() {
|
|
|
319
320
|
return x.top = Ae(Y.top, x.top), x.right = at(Y.right, x.right), x.bottom = at(Y.bottom, x.bottom), x.left = Ae(Y.left, x.left), x;
|
|
320
321
|
}, Mi(N, Xe, S));
|
|
321
322
|
return I.width = I.right - I.left, I.height = I.bottom - I.top, I.x = I.left, I.y = I.top, I;
|
|
322
|
-
})(we(A) ? A : A.contextElement || de(i.elements.popper), c, d, r), w = Ne(i.elements.reference), E = Fi({ reference: w, element: y, placement: s }), O = qt(Object.assign({}, y, E)), T = b === Ie ? O : w, L = { top: v.top - T.top + C.top, bottom: T.bottom - v.bottom + C.bottom, left: v.left - T.left + C.left, right: T.right - v.right + C.right },
|
|
323
|
-
if (b === Ie &&
|
|
324
|
-
var G =
|
|
323
|
+
})(we(A) ? A : A.contextElement || de(i.elements.popper), c, d, r), w = Ne(i.elements.reference), E = Fi({ reference: w, element: y, placement: s }), O = qt(Object.assign({}, y, E)), T = b === Ie ? O : w, L = { top: v.top - T.top + C.top, bottom: T.bottom - v.bottom + C.bottom, left: v.left - T.left + C.left, right: T.right - v.right + C.right }, R = i.modifiersData.offset;
|
|
324
|
+
if (b === Ie && R) {
|
|
325
|
+
var G = R[s];
|
|
325
326
|
Object.keys(L).forEach(function(N) {
|
|
326
|
-
var Q = [
|
|
327
|
+
var Q = [q, H].indexOf(N) >= 0 ? 1 : -1, X = [D, H].indexOf(N) >= 0 ? "y" : "x";
|
|
327
328
|
L[N] += G[X] * Q;
|
|
328
329
|
});
|
|
329
330
|
}
|
|
@@ -354,10 +355,10 @@ function Ur() {
|
|
|
354
355
|
})(_) : [ut(_)]), y = [_].concat(k).reduce(function(x, j) {
|
|
355
356
|
return x.concat(te(j) === rt ? _s(e, { placement: j, boundary: d, rootBoundary: u, padding: h, flipVariations: g, allowedAutoPlacements: m }) : j);
|
|
356
357
|
}, []), A = e.rects.reference, v = e.rects.popper, w = /* @__PURE__ */ new Map(), E = !0, O = y[0], T = 0; T < y.length; T++) {
|
|
357
|
-
var L = y[T],
|
|
358
|
+
var L = y[T], R = te(L), G = je(L) === ye, N = [D, H].indexOf(R) >= 0, Q = N ? "width" : "height", X = Me(e, { placement: L, boundary: d, rootBoundary: u, altBoundary: b, padding: h }), S = N ? G ? q : P : G ? H : D;
|
|
358
359
|
A[Q] > v[Q] && (S = ut(S));
|
|
359
360
|
var ne = ut(S), se = [];
|
|
360
|
-
if (o && se.push(X[
|
|
361
|
+
if (o && se.push(X[R] <= 0), a && se.push(X[S] <= 0, X[ne] <= 0), se.every(function(x) {
|
|
361
362
|
return x;
|
|
362
363
|
})) {
|
|
363
364
|
O = L, E = !1;
|
|
@@ -381,7 +382,7 @@ function Ur() {
|
|
|
381
382
|
return t === void 0 && (t = { x: 0, y: 0 }), { top: i.top - e.height - t.y, right: i.right - e.width + t.x, bottom: i.bottom - e.height + t.y, left: i.left - e.width - t.x };
|
|
382
383
|
}
|
|
383
384
|
function zi(i) {
|
|
384
|
-
return [D,
|
|
385
|
+
return [D, q, H, P].some(function(e) {
|
|
385
386
|
return i[e] >= 0;
|
|
386
387
|
});
|
|
387
388
|
}
|
|
@@ -392,7 +393,7 @@ function Ur() {
|
|
|
392
393
|
var e = i.state, t = i.options, n = i.name, s = t.offset, o = s === void 0 ? [0, 0] : s, r = St.reduce(function(d, u) {
|
|
393
394
|
return d[u] = (function(b, p, g) {
|
|
394
395
|
var m = te(b), _ = [P, D].indexOf(m) >= 0 ? -1 : 1, C = typeof g == "function" ? g(Object.assign({}, p, { placement: b })) : g, k = C[0], y = C[1];
|
|
395
|
-
return k = k || 0, y = (y || 0) * _, [P,
|
|
396
|
+
return k = k || 0, y = (y || 0) * _, [P, q].indexOf(m) >= 0 ? { x: y, y: k } : { x: k, y };
|
|
396
397
|
})(u, e.rects, o), d;
|
|
397
398
|
}, {}), a = r[e.placement], c = a.x, h = a.y;
|
|
398
399
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += h), e.modifiersData[n] = r;
|
|
@@ -400,14 +401,14 @@ function Ur() {
|
|
|
400
401
|
var e = i.state, t = i.name;
|
|
401
402
|
e.modifiersData[t] = Fi({ reference: e.rects.reference, element: e.rects.popper, placement: e.placement });
|
|
402
403
|
}, data: {} }, Bi = { name: "preventOverflow", enabled: !0, phase: "main", fn: function(i) {
|
|
403
|
-
var e = i.state, t = i.options, n = i.name, s = t.mainAxis, o = s === void 0 || s, r = t.altAxis, a = r !== void 0 && r, c = t.boundary, h = t.rootBoundary, d = t.altBoundary, u = t.padding, b = t.tether, p = b === void 0 || b, g = t.tetherOffset, m = g === void 0 ? 0 : g, _ = Me(e, { boundary: c, rootBoundary: h, padding: u, altBoundary: d }), C = te(e.placement), k = je(e.placement), y = !k, A = Pt(C), v = A === "x" ? "y" : "x", w = e.modifiersData.popperOffsets, E = e.rects.reference, O = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, { placement: e.placement })) : m, L = typeof T == "number" ? { mainAxis: T, altAxis: T } : Object.assign({ mainAxis: 0, altAxis: 0 }, T),
|
|
404
|
+
var e = i.state, t = i.options, n = i.name, s = t.mainAxis, o = s === void 0 || s, r = t.altAxis, a = r !== void 0 && r, c = t.boundary, h = t.rootBoundary, d = t.altBoundary, u = t.padding, b = t.tether, p = b === void 0 || b, g = t.tetherOffset, m = g === void 0 ? 0 : g, _ = Me(e, { boundary: c, rootBoundary: h, padding: u, altBoundary: d }), C = te(e.placement), k = je(e.placement), y = !k, A = Pt(C), v = A === "x" ? "y" : "x", w = e.modifiersData.popperOffsets, E = e.rects.reference, O = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, { placement: e.placement })) : m, L = typeof T == "number" ? { mainAxis: T, altAxis: T } : Object.assign({ mainAxis: 0, altAxis: 0 }, T), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, G = { x: 0, y: 0 };
|
|
404
405
|
if (w) {
|
|
405
406
|
if (o) {
|
|
406
|
-
var N, Q = A === "y" ? D : P, X = A === "y" ?
|
|
407
|
+
var N, Q = A === "y" ? D : P, X = A === "y" ? H : q, S = A === "y" ? "height" : "width", ne = w[A], se = ne + _[Q], Xe = ne - _[X], I = p ? -O[S] / 2 : 0, x = k === ye ? E[S] : O[S], j = k === ye ? -O[S] : -E[S], Y = e.elements.arrow, ve = p && Y ? It(Y) : { width: 0, height: 0 }, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : { top: 0, right: 0, bottom: 0, left: 0 }, Zn = Tt[Q], es = Tt[X], Ct = Ge(0, E[S], ve[S]), Pr = y ? E[S] / 2 - I - Ct - Zn - L.mainAxis : x - Ct - Zn - L.mainAxis, Nr = y ? -E[S] / 2 + I + Ct + es + L.mainAxis : j + Ct + es + L.mainAxis, fi = e.elements.arrow && Je(e.elements.arrow), jr = fi ? A === "y" ? fi.clientTop || 0 : fi.clientLeft || 0 : 0, ts = (N = R?.[A]) != null ? N : 0, Mr = ne + Nr - ts, is = Ge(p ? at(se, ne + Pr - ts - jr) : se, ne, p ? Ae(Xe, Mr) : Xe);
|
|
407
408
|
w[A] = is, G[A] = is - ne;
|
|
408
409
|
}
|
|
409
410
|
if (a) {
|
|
410
|
-
var ns, Fr = A === "x" ? D : P, Hr = A === "x" ?
|
|
411
|
+
var ns, Fr = A === "x" ? D : P, Hr = A === "x" ? H : q, Le = w[v], Ot = v === "y" ? "height" : "width", ss = Le + _[Fr], os = Le - _[Hr], pi = [D, P].indexOf(C) !== -1, rs = (ns = R?.[v]) != null ? ns : 0, as = pi ? ss : Le - E[Ot] - O[Ot] - rs + L.altAxis, ls = pi ? Le + E[Ot] + O[Ot] - rs - L.altAxis : os, cs = p && pi ? (function(qr, zr, mi) {
|
|
411
412
|
var us = Ge(qr, zr, mi);
|
|
412
413
|
return us > mi ? mi : us;
|
|
413
414
|
})(as, Le, ls) : Ge(p ? as : ss, Le, p ? ls : os);
|
|
@@ -422,7 +423,7 @@ function Ur() {
|
|
|
422
423
|
var b = u.getBoundingClientRect(), p = Pe(b.width) / u.offsetWidth || 1, g = Pe(b.height) / u.offsetHeight || 1;
|
|
423
424
|
return p !== 1 || g !== 1;
|
|
424
425
|
})(e), a = de(e), c = Ne(i, r, t), h = { scrollLeft: 0, scrollTop: 0 }, d = { x: 0, y: 0 };
|
|
425
|
-
return (o || !o && !t) && ((ee(e) !== "body" || Ht(a)) && (h = (n = e) !==
|
|
426
|
+
return (o || !o && !t) && ((ee(e) !== "body" || Ht(a)) && (h = (n = e) !== z(n) && B(n) ? { scrollLeft: (s = n).scrollLeft, scrollTop: s.scrollTop } : Mt(n)), B(e) ? ((d = Ne(e, !0)).x += e.clientLeft, d.y += e.clientTop) : a && (d.x = Ft(a))), { x: c.left + h.scrollLeft - d.x, y: c.top + h.scrollTop - d.y, width: c.width, height: c.height };
|
|
426
427
|
}
|
|
427
428
|
function vs(i) {
|
|
428
429
|
var e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = [];
|
|
@@ -516,7 +517,7 @@ function Ur() {
|
|
|
516
517
|
};
|
|
517
518
|
}
|
|
518
519
|
var ys = ht(), ws = ht({ defaultModifiers: [jt, zt, Nt, $t] }), Wt = ht({ defaultModifiers: [jt, zt, Nt, $t, Ri, Hi, Bi, Ii, Wi] });
|
|
519
|
-
const Ki = Object.freeze(Object.defineProperty({ __proto__: null, afterMain: Ei, afterRead: yi, afterWrite: Oi, applyStyles: $t, arrow: Ii, auto: rt, basePlacements: $e, beforeMain: wi, beforeRead: bi, beforeWrite: Ti, bottom:
|
|
520
|
+
const Ki = Object.freeze(Object.defineProperty({ __proto__: null, afterMain: Ei, afterRead: yi, afterWrite: Oi, applyStyles: $t, arrow: Ii, auto: rt, basePlacements: $e, beforeMain: wi, beforeRead: bi, beforeWrite: Ti, bottom: H, clippingParents: gi, computeStyles: Nt, createPopper: Wt, createPopperBase: ys, createPopperLite: ws, detectOverflow: Me, end: De, eventListeners: jt, flip: Hi, hide: Wi, left: P, main: Ai, modifierPhases: xi, offset: Ri, placements: St, popper: Ie, popperGenerator: ht, popperOffsets: zt, preventOverflow: Bi, read: vi, reference: _i, right: q, start: ye, top: D, variationPlacements: kt, viewport: xt, write: Ci }, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ new Map(), Rt = { set(i, e, t) {
|
|
520
521
|
fe.has(i) || fe.set(i, /* @__PURE__ */ new Map());
|
|
521
522
|
const n = fe.get(i);
|
|
522
523
|
n.has(e) || n.size === 0 ? n.set(e, t) : console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);
|
|
@@ -1101,7 +1102,7 @@ function Ur() {
|
|
|
1101
1102
|
for (const e of f.getMultipleElementsFromSelector(this)) Te.getOrCreateInstance(e, { toggle: !1 }).toggle();
|
|
1102
1103
|
}), U(Te);
|
|
1103
1104
|
const mn = "dropdown", Ce = ".bs.dropdown", ti = ".data-api", so = "ArrowUp", gn = "ArrowDown", oo = `hide${Ce}`, ro = `hidden${Ce}`, ao = `show${Ce}`, lo = `shown${Ce}`, _n = `click${Ce}${ti}`, bn = `keydown${Ce}${ti}`, co = `keyup${Ce}${ti}`, Ve = "show", Oe = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)', uo = `${Oe}.${Ve}`, bt = ".dropdown-menu", ho = V() ? "top-end" : "top-start", fo = V() ? "top-start" : "top-end", po = V() ? "bottom-end" : "bottom-start", mo = V() ? "bottom-start" : "bottom-end", go = V() ? "left-start" : "right-start", _o = V() ? "right-start" : "left-start", bo = { autoClose: !0, boundary: "clippingParents", display: "dynamic", offset: [0, 2], popperConfig: null, reference: "toggle" }, vo = { autoClose: "(boolean|string)", boundary: "(string|element)", display: "string", offset: "(array|string|function)", popperConfig: "(null|object|function)", reference: "(string|element|object)" };
|
|
1104
|
-
class
|
|
1105
|
+
class W extends J {
|
|
1105
1106
|
constructor(e, t) {
|
|
1106
1107
|
super(e, t), this._popper = null, this._parent = this._element.parentNode, this._menu = f.next(this._element, bt)[0] || f.prev(this._element, bt)[0] || f.findOne(bt, this._parent), this._inNavbar = this._detectNavbar();
|
|
1107
1108
|
}
|
|
@@ -1182,7 +1183,7 @@ function Ur() {
|
|
|
1182
1183
|
}
|
|
1183
1184
|
static jQueryInterface(e) {
|
|
1184
1185
|
return this.each(function() {
|
|
1185
|
-
const t =
|
|
1186
|
+
const t = W.getOrCreateInstance(this, e);
|
|
1186
1187
|
if (typeof e == "string") {
|
|
1187
1188
|
if (t[e] === void 0) throw new TypeError(`No method named "${e}"`);
|
|
1188
1189
|
t[e]();
|
|
@@ -1193,7 +1194,7 @@ function Ur() {
|
|
|
1193
1194
|
if (e.button === 2 || e.type === "keyup" && e.key !== "Tab") return;
|
|
1194
1195
|
const t = f.find(uo);
|
|
1195
1196
|
for (const n of t) {
|
|
1196
|
-
const s =
|
|
1197
|
+
const s = W.getInstance(n);
|
|
1197
1198
|
if (!s || s._config.autoClose === !1) continue;
|
|
1198
1199
|
const o = e.composedPath(), r = o.includes(s._menu);
|
|
1199
1200
|
if (o.includes(s._element) || s._config.autoClose === "inside" && !r || s._config.autoClose === "outside" && r || s._menu.contains(e.target) && (e.type === "keyup" && e.key === "Tab" || /input|select|option|textarea|form/i.test(e.target.tagName))) continue;
|
|
@@ -1205,14 +1206,14 @@ function Ur() {
|
|
|
1205
1206
|
const t = /input|textarea/i.test(e.target.tagName), n = e.key === "Escape", s = [so, gn].includes(e.key);
|
|
1206
1207
|
if (!s && !n || t && !n) return;
|
|
1207
1208
|
e.preventDefault();
|
|
1208
|
-
const o = this.matches(Oe) ? this : f.prev(this, Oe)[0] || f.next(this, Oe)[0] || f.findOne(Oe, e.delegateTarget.parentNode), r =
|
|
1209
|
+
const o = this.matches(Oe) ? this : f.prev(this, Oe)[0] || f.next(this, Oe)[0] || f.findOne(Oe, e.delegateTarget.parentNode), r = W.getOrCreateInstance(o);
|
|
1209
1210
|
if (s) return e.stopPropagation(), r.show(), void r._selectMenuItem(e);
|
|
1210
1211
|
r._isShown() && (e.stopPropagation(), r.hide(), o.focus());
|
|
1211
1212
|
}
|
|
1212
1213
|
}
|
|
1213
|
-
l.on(document, bn, Oe,
|
|
1214
|
-
i.preventDefault(),
|
|
1215
|
-
}), U(
|
|
1214
|
+
l.on(document, bn, Oe, W.dataApiKeydownHandler), l.on(document, bn, bt, W.dataApiKeydownHandler), l.on(document, _n, W.clearMenus), l.on(document, co, W.clearMenus), l.on(document, _n, Oe, function(i) {
|
|
1215
|
+
i.preventDefault(), W.getOrCreateInstance(this).toggle();
|
|
1216
|
+
}), U(W);
|
|
1216
1217
|
const vn = "backdrop", yn = "show", wn = `mousedown.bs.${vn}`, yo = { className: "modal-backdrop", clickCallback: null, isAnimated: !1, isVisible: !0, rootElement: "body" }, wo = { className: "string", clickCallback: "(function|null)", isAnimated: "boolean", isVisible: "boolean", rootElement: "(element|string)" };
|
|
1217
1218
|
class An extends tt {
|
|
1218
1219
|
constructor(e) {
|
|
@@ -2034,10 +2035,10 @@ function Ur() {
|
|
|
2034
2035
|
}
|
|
2035
2036
|
}
|
|
2036
2037
|
ft(Se), U(Se);
|
|
2037
|
-
const Dr = Object.freeze(Object.defineProperty({ __proto__: null, Alert: He, Button: qe, Carousel: Ee, Collapse: Te, Dropdown:
|
|
2038
|
+
const Dr = Object.freeze(Object.defineProperty({ __proto__: null, Alert: He, Button: qe, Carousel: Ee, Collapse: Te, Dropdown: W, Modal: _e, Offcanvas: ie, Popover: Ue, ScrollSpy: Qe, Tab: ue, Toast: Se, Tooltip: ce }, Symbol.toStringTag, { value: "Module" }));
|
|
2038
2039
|
[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')).map(function(i) {
|
|
2039
2040
|
let e = { boundary: i.getAttribute("data-bs-boundary") === "viewport" ? document.querySelector(".btn") : "clippingParents" };
|
|
2040
|
-
return new
|
|
2041
|
+
return new W(i, e);
|
|
2041
2042
|
}), [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(i) {
|
|
2042
2043
|
let e = { delay: { show: 50, hide: 50 }, html: i.getAttribute("data-bs-html") === "true", placement: i.getAttribute("data-bs-placement") ?? "auto" };
|
|
2043
2044
|
return new ce(i, e);
|
|
@@ -2067,20 +2068,25 @@ function Ur() {
|
|
|
2067
2068
|
const t = getComputedStyle(document.body).getPropertyValue(`--${Jn}${i}`).trim();
|
|
2068
2069
|
return e !== 1 ? Gn(t, e) : t;
|
|
2069
2070
|
}, hexToRgba: Gn, prefix: Jn }, Symbol.toStringTag, { value: "Module" }));
|
|
2070
|
-
$.Alert = He, $.Button = qe, $.Carousel = Ee, $.Collapse = Te, $.Dropdown =
|
|
2071
|
+
$.Alert = He, $.Button = qe, $.Carousel = Ee, $.Collapse = Te, $.Dropdown = W, $.Modal = _e, $.Offcanvas = ie, $.Popover = Ue, $.ScrollSpy = Qe, $.Tab = ue, $.Toast = Se, $.Tooltip = ce, $.bootstrap = Dr, $.tabler = Ir, Object.defineProperty($, Symbol.toStringTag, { value: "Module" });
|
|
2071
2072
|
});
|
|
2072
2073
|
})(ot, ot.exports)), ot.exports;
|
|
2073
2074
|
}
|
|
2074
|
-
var ds =
|
|
2075
|
-
const
|
|
2075
|
+
var ds = Kr();
|
|
2076
|
+
const Qr = /* @__PURE__ */ Vr(ds), Xr = /* @__PURE__ */ Br({
|
|
2076
2077
|
__proto__: null,
|
|
2077
|
-
default:
|
|
2078
|
+
default: Qr
|
|
2078
2079
|
}, [ds]), Yr = {
|
|
2080
|
+
transition: "Vue-Toastification__bounce",
|
|
2081
|
+
maxToasts: 20,
|
|
2082
|
+
newestOnTop: !0,
|
|
2083
|
+
toastClassName: "custom-toast-class"
|
|
2084
|
+
}, Zr = {
|
|
2079
2085
|
// até o momento não usamos opções nem o app, mas deixei aqui caso precise no futuro
|
|
2080
|
-
install: (
|
|
2081
|
-
window.bootstrap =
|
|
2086
|
+
install: (F, Ye) => {
|
|
2087
|
+
window.bootstrap = Xr, F.directive("required", Wr), F.use(Rr, Yr);
|
|
2082
2088
|
}
|
|
2083
2089
|
};
|
|
2084
2090
|
export {
|
|
2085
|
-
|
|
2091
|
+
Zr as S
|
|
2086
2092
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
content?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
+
content?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useToastStore } from './useToastStore';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define os tipos de toast aceitos.
|
|
3
|
+
* 1 = success
|
|
4
|
+
* 2 = error
|
|
5
|
+
* 3 = info
|
|
6
|
+
*/
|
|
7
|
+
type ToastStoreType = 1 | 2 | 3;
|
|
8
|
+
export declare const useToastStore: import('pinia').StoreDefinition<"toastStore", Pick<{
|
|
9
|
+
showToast: (title: string, body: string, type: ToastStoreType) => void;
|
|
10
|
+
}, never>, Pick<{
|
|
11
|
+
showToast: (title: string, body: string, type: ToastStoreType) => void;
|
|
12
|
+
}, never>, Pick<{
|
|
13
|
+
showToast: (title: string, body: string, type: ToastStoreType) => void;
|
|
14
|
+
}, "showToast">>;
|
|
15
|
+
export {};
|
package/dist/toast.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { u as a } from "./index-SOrsDdYZ.js";
|
|
2
|
+
import { defineComponent as i, createElementBlock as p, openBlock as l, createElementVNode as n, toDisplayString as m } from "vue";
|
|
3
|
+
import { defineStore as d } from "pinia";
|
|
4
|
+
const _ = { class: "t-container" }, f = { class: "d-flex flex-column gap-1" }, u = { class: "m-0 p-0 fs-3 bold" }, h = ["innerHTML"], T = /* @__PURE__ */ i({
|
|
5
|
+
__name: "ToastComponent",
|
|
6
|
+
props: ["content"],
|
|
7
|
+
setup(s) {
|
|
8
|
+
const t = s;
|
|
9
|
+
return (c, r) => (l(), p("div", _, [
|
|
10
|
+
n("div", f, [
|
|
11
|
+
n("h1", u, m(t.content.title), 1),
|
|
12
|
+
n("p", {
|
|
13
|
+
class: "m-0 p-0 text-white",
|
|
14
|
+
innerHTML: t.content.body
|
|
15
|
+
}, null, 8, h)
|
|
16
|
+
])
|
|
17
|
+
]));
|
|
18
|
+
}
|
|
19
|
+
}), w = d("toastStore", () => ({
|
|
20
|
+
showToast: (t, c, r) => {
|
|
21
|
+
const o = a(), e = {
|
|
22
|
+
component: T,
|
|
23
|
+
props: {
|
|
24
|
+
content: {
|
|
25
|
+
title: t,
|
|
26
|
+
body: c
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
switch (r) {
|
|
31
|
+
case 1:
|
|
32
|
+
o.success(e, {});
|
|
33
|
+
break;
|
|
34
|
+
case 2:
|
|
35
|
+
o.error(e, {
|
|
36
|
+
timeout: 7e3
|
|
37
|
+
});
|
|
38
|
+
break;
|
|
39
|
+
case 3:
|
|
40
|
+
o.info(e, {});
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
console.info("Tipo de toast não encontrado");
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
export {
|
|
49
|
+
w as useToastStore
|
|
50
|
+
};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Copyright 2018-2025 The Tabler Authors
|
|
9
9
|
* Copyright 2018-2025 codecalm.net Paweł Kuna
|
|
10
10
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
11
|
-
*/[data-bs-theme-base=slate]{--tblr-gray-50:#f8fafc;--tblr-gray-100:#f1f5f9;--tblr-gray-200:#e2e8f0;--tblr-gray-300:#cbd5e1;--tblr-gray-400:#94a3b8;--tblr-gray-500:#64748b;--tblr-gray-600:#475569;--tblr-gray-700:#334155;--tblr-gray-800:#1e293b;--tblr-gray-900:#0f172a;--tblr-gray-950:#020617}[data-bs-theme-base=gray]{--tblr-gray-50:#f9fafb;--tblr-gray-100:#f3f4f6;--tblr-gray-200:#e5e7eb;--tblr-gray-300:#d1d5db;--tblr-gray-400:#9ca3af;--tblr-gray-500:#6b7280;--tblr-gray-600:#4b5563;--tblr-gray-700:#374151;--tblr-gray-800:#1f2937;--tblr-gray-900:#111827;--tblr-gray-950:#030712}[data-bs-theme-base=zinc]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f4f4f5;--tblr-gray-200:#e4e4e7;--tblr-gray-300:#d4d4d8;--tblr-gray-400:#a1a1aa;--tblr-gray-500:#71717a;--tblr-gray-600:#52525b;--tblr-gray-700:#3f3f46;--tblr-gray-800:#27272a;--tblr-gray-900:#18181b;--tblr-gray-950:#09090b}[data-bs-theme-base=neutral]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f5f5f5;--tblr-gray-200:#e5e5e5;--tblr-gray-300:#d4d4d4;--tblr-gray-400:#a3a3a3;--tblr-gray-500:#737373;--tblr-gray-600:#525252;--tblr-gray-700:#404040;--tblr-gray-800:#262626;--tblr-gray-900:#171717;--tblr-gray-950:#0a0a0a}[data-bs-theme-base=stone]{--tblr-gray-50:#fafaf9;--tblr-gray-100:#f5f5f4;--tblr-gray-200:#e7e5e4;--tblr-gray-300:#d6d3d1;--tblr-gray-400:#a8a29e;--tblr-gray-500:#78716c;--tblr-gray-600:#57534e;--tblr-gray-700:#44403c;--tblr-gray-800:#292524;--tblr-gray-900:#1c1917;--tblr-gray-950:#0c0a09}[data-bs-theme-base=pink]{--tblr-gray-50:#fdf2f8;--tblr-gray-100:#fce7f3;--tblr-gray-200:#fbcfe8;--tblr-gray-300:#f9a8d4;--tblr-gray-400:#f472b6;--tblr-gray-500:#ec4899;--tblr-gray-600:#db2777;--tblr-gray-700:#be185d;--tblr-gray-800:#9d174d;--tblr-gray-900:#831843;--tblr-gray-950:#500724}[data-bs-theme-primary=blue]{--tblr-primary:#066fd1;--tblr-primary-rgb:6,111,209}[data-bs-theme-primary=azure]{--tblr-primary:#4299e1;--tblr-primary-rgb:66,153,225}[data-bs-theme-primary=indigo]{--tblr-primary:#4263eb;--tblr-primary-rgb:66,99,235}[data-bs-theme-primary=purple]{--tblr-primary:#ae3ec9;--tblr-primary-rgb:174,62,201}[data-bs-theme-primary=pink]{--tblr-primary:#d6336c;--tblr-primary-rgb:214,51,108}[data-bs-theme-primary=red]{--tblr-primary:#d63939;--tblr-primary-rgb:214,57,57}[data-bs-theme-primary=orange]{--tblr-primary:#f76707;--tblr-primary-rgb:247,103,7}[data-bs-theme-primary=yellow]{--tblr-primary:#f59f00;--tblr-primary-rgb:245,159,0}[data-bs-theme-primary=lime]{--tblr-primary:#74b816;--tblr-primary-rgb:116,184,22}[data-bs-theme-primary=green]{--tblr-primary:#2fb344;--tblr-primary-rgb:47,179,68}[data-bs-theme-primary=teal]{--tblr-primary:#0ca678;--tblr-primary-rgb:12,166,120}[data-bs-theme-primary=cyan]{--tblr-primary:#17a2b8;--tblr-primary-rgb:23,162,184}[data-bs-theme-radius="0"]{--tblr-border-radius-scale:0}[data-bs-theme-radius="0.5"]{--tblr-border-radius-scale:.5}[data-bs-theme-radius="1"]{--tblr-border-radius-scale:1}[data-bs-theme-radius="1.5"]{--tblr-border-radius-scale:1.5}[data-bs-theme-radius="2"]{--tblr-border-radius-scale:2}[data-bs-theme-primary=inverted]{--tblr-primary:var(--tblr-gray-800);--tblr-primary-fg:var(--tblr-light);--tblr-primary-rgb:31,41,55}[data-bs-theme-primary=inverted] [data-bs-theme=dark],[data-bs-theme-primary=inverted][data-bs-theme=dark]{--tblr-primary:#f9fafb;--tblr-primary-fg:var(--tblr-dark);--tblr-primary-rgb:249,250,251}[data-bs-theme-font=monospace]{--tblr-body-font-family:var(--tblr-font-monospace);--tblr-body-font-size:80%}[data-bs-theme-font=sans-serif]{--tblr-body-font-family:var(--tblr-font-sans-serif)}[data-bs-theme-font=serif]{--tblr-body-font-family:var(--tblr-font-serif)}[data-bs-theme-font=comic]{--tblr-body-font-family:var(--tblr-font-comic)}:root{--color-error-inputs: red}[data-bs-theme=dark]{--color-error-inputs: oklch(.666 .179 58.318)}.style-custom-v-required-default{display:flex!important;justify-content:center!important;flex-direction:column!important;gap:2px}.style-custom-v-required-error .v-required-span{color:var(--color-error-inputs)!important;white-space:pre-wrap}.multiselect__tags{background-color:var(--cor-bg-inputs);border:var(--border-inputs);border-radius:5px!important;font-size:.875rem;line-height:1.4285714286}.multiselect__placeholder{color:var(--color-text-multiselect)!important}.style-custom-v-required-error input,.style-custom-v-required-error select,.style-custom-v-required-error textarea{border:2px solid var(--color-error-inputs)!important;color:var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__tags{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__input{border:none!important}.style-custom-v-required-error .multiselect__placeholder{color:var(--color-error-inputs)!important}.style-custom-v-required-error .image-drop-zone{border-color:var(--color-error-inputs)!important}.style-custom-v-required-error .quillWrapper{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error input::placeholder{color:var(--color-error-inputs)!important}.rotate-180[data-v-df81be49] svg{transform:rotate(180deg)}.page-select[data-v-df81be49]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-df81be49]{border:none;--cor-escurecida: color-mix(in srgb, var(--tblr-primary), #000 25%);background:transparent;padding:1px 10px;border-radius:7px;margin:0!important;transition:color .15s ease-in-out,background-color .15s ease-in-out}.page-estilo[data-v-df81be49]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-df81be49]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-df81be49] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-df81be49] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-df81be49]{margin:0!important;padding:0!important}.scroll-finish-style[data-v-08efb648]{color:#6c757d;display:block;text-align:center;margin-top:1rem;margin-bottom:1rem}.rotate-180[data-v-78d23729] svg{transform:rotate(180deg)}.page-select[data-v-78d23729]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-78d23729]{border:none;--cor-escurecida: color-mix(in srgb, var(--tblr-primary), #000 25%);background:transparent;padding:1px 10px;border-radius:7px;margin:0!important;transition:color .15s ease-in-out,background-color .15s ease-in-out}.page-estilo[data-v-78d23729]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-78d23729]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-78d23729] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-78d23729] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-78d23729]{margin:0!important;padding:0!important}.inputClose[data-v-dc655be7]{color:var(--tblr-icon-color);z-index:10;position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:1.2em;min-width:2.5rem;display:flex;justify-content:center}.inputClose[data-v-dc655be7]:hover{cursor:pointer}.selected[data-v-dc655be7]:hover{background-color:#b02a2a!important;color:#fff!important}.table-responsive[data-v-f75d7012]{overflow-x:auto}.state-feedback[data-v-f75d7012]{padding:1rem;text-align:center}.state-feedback.error[data-v-f75d7012]{color:red}.pagination-controls[data-v-f75d7012]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-f75d7012]{width:40px;height:40px;border-radius:4px}.container-img[data-v-f75d7012]{aspect-ratio:1;display:flex;justify-content:center;overflow:hidden;position:relative;max-width:40px;min-width:40px}.container-img .img-tamanho-cover[data-v-f75d7012]{position:absolute;top:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:.5;filter:blur(4px)}.container-img .img-tamanho[data-v-f75d7012]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-f75d7012]{cursor:pointer}.container-img.container-img-preview[data-v-f75d7012]:hover{border-style:dashed;border-color:var(--tblr-primary);border-width:2px;transition:border-width .15s ease-in-out}.container-img.container-img-preview:hover .img-tamanho[data-v-f75d7012]{opacity:.3}.erro-custom-container[data-v-f75d7012]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-f75d7012]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-f75d7012]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-f75d7012]{position:fixed;z-index:9999;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;padding:5px;pointer-events:none;transition:opacity .2s ease-in-out}.image-preview-container .image-preview-large[data-v-f75d7012]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-f75d7012]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-f75d7012]{border-color:#ffffff5f!important}.ghost-item[data-v-f75d7012]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-f75d7012]{cursor:grabbing;background:var(--tblr-primary);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;opacity:.5;background-color:var(--tblr-primary-bg-subtle);filter:grayscale(0) invert(0)}.header-draggable[data-v-f75d7012]{cursor:grab}.column-move-move[data-v-f75d7012]{transition:transform .4s ease}.column-move-enter-active[data-v-f75d7012],.column-move-leave-active[data-v-f75d7012]{transition:all .4s ease}.header-ordering[data-v-f75d7012]{display:flex;justify-content:space-between}
|
|
11
|
+
*/[data-bs-theme-base=slate]{--tblr-gray-50:#f8fafc;--tblr-gray-100:#f1f5f9;--tblr-gray-200:#e2e8f0;--tblr-gray-300:#cbd5e1;--tblr-gray-400:#94a3b8;--tblr-gray-500:#64748b;--tblr-gray-600:#475569;--tblr-gray-700:#334155;--tblr-gray-800:#1e293b;--tblr-gray-900:#0f172a;--tblr-gray-950:#020617}[data-bs-theme-base=gray]{--tblr-gray-50:#f9fafb;--tblr-gray-100:#f3f4f6;--tblr-gray-200:#e5e7eb;--tblr-gray-300:#d1d5db;--tblr-gray-400:#9ca3af;--tblr-gray-500:#6b7280;--tblr-gray-600:#4b5563;--tblr-gray-700:#374151;--tblr-gray-800:#1f2937;--tblr-gray-900:#111827;--tblr-gray-950:#030712}[data-bs-theme-base=zinc]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f4f4f5;--tblr-gray-200:#e4e4e7;--tblr-gray-300:#d4d4d8;--tblr-gray-400:#a1a1aa;--tblr-gray-500:#71717a;--tblr-gray-600:#52525b;--tblr-gray-700:#3f3f46;--tblr-gray-800:#27272a;--tblr-gray-900:#18181b;--tblr-gray-950:#09090b}[data-bs-theme-base=neutral]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f5f5f5;--tblr-gray-200:#e5e5e5;--tblr-gray-300:#d4d4d4;--tblr-gray-400:#a3a3a3;--tblr-gray-500:#737373;--tblr-gray-600:#525252;--tblr-gray-700:#404040;--tblr-gray-800:#262626;--tblr-gray-900:#171717;--tblr-gray-950:#0a0a0a}[data-bs-theme-base=stone]{--tblr-gray-50:#fafaf9;--tblr-gray-100:#f5f5f4;--tblr-gray-200:#e7e5e4;--tblr-gray-300:#d6d3d1;--tblr-gray-400:#a8a29e;--tblr-gray-500:#78716c;--tblr-gray-600:#57534e;--tblr-gray-700:#44403c;--tblr-gray-800:#292524;--tblr-gray-900:#1c1917;--tblr-gray-950:#0c0a09}[data-bs-theme-base=pink]{--tblr-gray-50:#fdf2f8;--tblr-gray-100:#fce7f3;--tblr-gray-200:#fbcfe8;--tblr-gray-300:#f9a8d4;--tblr-gray-400:#f472b6;--tblr-gray-500:#ec4899;--tblr-gray-600:#db2777;--tblr-gray-700:#be185d;--tblr-gray-800:#9d174d;--tblr-gray-900:#831843;--tblr-gray-950:#500724}[data-bs-theme-primary=blue]{--tblr-primary:#066fd1;--tblr-primary-rgb:6,111,209}[data-bs-theme-primary=azure]{--tblr-primary:#4299e1;--tblr-primary-rgb:66,153,225}[data-bs-theme-primary=indigo]{--tblr-primary:#4263eb;--tblr-primary-rgb:66,99,235}[data-bs-theme-primary=purple]{--tblr-primary:#ae3ec9;--tblr-primary-rgb:174,62,201}[data-bs-theme-primary=pink]{--tblr-primary:#d6336c;--tblr-primary-rgb:214,51,108}[data-bs-theme-primary=red]{--tblr-primary:#d63939;--tblr-primary-rgb:214,57,57}[data-bs-theme-primary=orange]{--tblr-primary:#f76707;--tblr-primary-rgb:247,103,7}[data-bs-theme-primary=yellow]{--tblr-primary:#f59f00;--tblr-primary-rgb:245,159,0}[data-bs-theme-primary=lime]{--tblr-primary:#74b816;--tblr-primary-rgb:116,184,22}[data-bs-theme-primary=green]{--tblr-primary:#2fb344;--tblr-primary-rgb:47,179,68}[data-bs-theme-primary=teal]{--tblr-primary:#0ca678;--tblr-primary-rgb:12,166,120}[data-bs-theme-primary=cyan]{--tblr-primary:#17a2b8;--tblr-primary-rgb:23,162,184}[data-bs-theme-radius="0"]{--tblr-border-radius-scale:0}[data-bs-theme-radius="0.5"]{--tblr-border-radius-scale:.5}[data-bs-theme-radius="1"]{--tblr-border-radius-scale:1}[data-bs-theme-radius="1.5"]{--tblr-border-radius-scale:1.5}[data-bs-theme-radius="2"]{--tblr-border-radius-scale:2}[data-bs-theme-primary=inverted]{--tblr-primary:var(--tblr-gray-800);--tblr-primary-fg:var(--tblr-light);--tblr-primary-rgb:31,41,55}[data-bs-theme-primary=inverted] [data-bs-theme=dark],[data-bs-theme-primary=inverted][data-bs-theme=dark]{--tblr-primary:#f9fafb;--tblr-primary-fg:var(--tblr-dark);--tblr-primary-rgb:249,250,251}[data-bs-theme-font=monospace]{--tblr-body-font-family:var(--tblr-font-monospace);--tblr-body-font-size:80%}[data-bs-theme-font=sans-serif]{--tblr-body-font-family:var(--tblr-font-sans-serif)}[data-bs-theme-font=serif]{--tblr-body-font-family:var(--tblr-font-serif)}[data-bs-theme-font=comic]{--tblr-body-font-family:var(--tblr-font-comic)}:root{--color-error-inputs: red}[data-bs-theme=dark]{--color-error-inputs: oklch(.666 .179 58.318)}.style-custom-v-required-default{display:flex!important;justify-content:center!important;flex-direction:column!important;gap:2px}.style-custom-v-required-error .v-required-span{color:var(--color-error-inputs)!important;white-space:pre-wrap}.multiselect__tags{background-color:var(--cor-bg-inputs);border:var(--border-inputs);border-radius:5px!important;font-size:.875rem;line-height:1.4285714286}.multiselect__placeholder{color:var(--color-text-multiselect)!important}.style-custom-v-required-error input,.style-custom-v-required-error select,.style-custom-v-required-error textarea{border:2px solid var(--color-error-inputs)!important;color:var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__tags{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__input{border:none!important}.style-custom-v-required-error .multiselect__placeholder{color:var(--color-error-inputs)!important}.style-custom-v-required-error .image-drop-zone{border-color:var(--color-error-inputs)!important}.style-custom-v-required-error .quillWrapper{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error input::placeholder{color:var(--color-error-inputs)!important}.t-container{width:100%;display:flex;justify-content:space-between;align-items:center;color:#fff}.rotate-180[data-v-df81be49] svg{transform:rotate(180deg)}.page-select[data-v-df81be49]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-df81be49]{border:none;--cor-escurecida: color-mix(in srgb, var(--tblr-primary), #000 25%);background:transparent;padding:1px 10px;border-radius:7px;margin:0!important;transition:color .15s ease-in-out,background-color .15s ease-in-out}.page-estilo[data-v-df81be49]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-df81be49]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-df81be49] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-df81be49] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-df81be49]{margin:0!important;padding:0!important}.scroll-finish-style[data-v-08efb648]{color:#6c757d;display:block;text-align:center;margin-top:1rem;margin-bottom:1rem}.rotate-180[data-v-78d23729] svg{transform:rotate(180deg)}.page-select[data-v-78d23729]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-78d23729]{border:none;--cor-escurecida: color-mix(in srgb, var(--tblr-primary), #000 25%);background:transparent;padding:1px 10px;border-radius:7px;margin:0!important;transition:color .15s ease-in-out,background-color .15s ease-in-out}.page-estilo[data-v-78d23729]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-78d23729]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-78d23729] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-78d23729] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-78d23729]{margin:0!important;padding:0!important}.inputClose[data-v-dc655be7]{color:var(--tblr-icon-color);z-index:10;position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:1.2em;min-width:2.5rem;display:flex;justify-content:center}.inputClose[data-v-dc655be7]:hover{cursor:pointer}.selected[data-v-dc655be7]:hover{background-color:#b02a2a!important;color:#fff!important}.table-responsive[data-v-f75d7012]{overflow-x:auto}.state-feedback[data-v-f75d7012]{padding:1rem;text-align:center}.state-feedback.error[data-v-f75d7012]{color:red}.pagination-controls[data-v-f75d7012]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-f75d7012]{width:40px;height:40px;border-radius:4px}.container-img[data-v-f75d7012]{aspect-ratio:1;display:flex;justify-content:center;overflow:hidden;position:relative;max-width:40px;min-width:40px}.container-img .img-tamanho-cover[data-v-f75d7012]{position:absolute;top:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:.5;filter:blur(4px)}.container-img .img-tamanho[data-v-f75d7012]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-f75d7012]{cursor:pointer}.container-img.container-img-preview[data-v-f75d7012]:hover{border-style:dashed;border-color:var(--tblr-primary);border-width:2px;transition:border-width .15s ease-in-out}.container-img.container-img-preview:hover .img-tamanho[data-v-f75d7012]{opacity:.3}.erro-custom-container[data-v-f75d7012]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-f75d7012]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-f75d7012]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-f75d7012]{position:fixed;z-index:9999;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;padding:5px;pointer-events:none;transition:opacity .2s ease-in-out}.image-preview-container .image-preview-large[data-v-f75d7012]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-f75d7012]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-f75d7012]{border-color:#ffffff5f!important}.ghost-item[data-v-f75d7012]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-f75d7012]{cursor:grabbing;background:var(--tblr-primary);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;opacity:.5;background-color:var(--tblr-primary-bg-subtle);filter:grayscale(0) invert(0)}.header-draggable[data-v-f75d7012]{cursor:grab}.column-move-move[data-v-f75d7012]{transition:transform .4s ease}.column-move-enter-active[data-v-f75d7012],.column-move-leave-active[data-v-f75d7012]{transition:all .4s ease}.header-ordering[data-v-f75d7012]{display:flex;justify-content:space-between}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v-sistec-features",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.1",
|
|
5
5
|
"author": "Márlon Bento Azevedo (https://github.com/marlon-bento)",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
"./style.css": {
|
|
35
35
|
"import": "./dist/v-sistec-features.css",
|
|
36
36
|
"require": "./dist/v-sistec-features.css"
|
|
37
|
+
},
|
|
38
|
+
"./toast": {
|
|
39
|
+
"import": "./dist/toast.js",
|
|
40
|
+
"types": "./dist/toast.d.ts"
|
|
37
41
|
}
|
|
38
42
|
},
|
|
39
43
|
"files": [
|
|
@@ -70,7 +74,9 @@
|
|
|
70
74
|
"dependencies": {
|
|
71
75
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
72
76
|
"@tabler/core": "^1.4.0",
|
|
73
|
-
"v-required": "^2.0
|
|
74
|
-
"
|
|
77
|
+
"v-required": "^2.1.0",
|
|
78
|
+
"vue-toastification": "^2.0.0-rc.5",
|
|
79
|
+
"v3-infinite-loading": "^1.3.2",
|
|
80
|
+
"pinia": "^2.1.0 || ^3.0.0"
|
|
75
81
|
}
|
|
76
82
|
}
|
package/src/core/plugin.ts
CHANGED
|
@@ -26,6 +26,14 @@ import '@tabler/core/dist/css/tabler-themes.min.css'
|
|
|
26
26
|
import * as Tabler from '@tabler/core/dist/js/tabler.min.js';
|
|
27
27
|
import vRequired from "v-required"
|
|
28
28
|
import '../assets/v-required-style.css'
|
|
29
|
+
import Toast from "vue-toastification";
|
|
30
|
+
|
|
31
|
+
const options_toast = {
|
|
32
|
+
transition: "Vue-Toastification__bounce",
|
|
33
|
+
maxToasts: 20,
|
|
34
|
+
newestOnTop: true,
|
|
35
|
+
toastClassName: "custom-toast-class",
|
|
36
|
+
};
|
|
29
37
|
|
|
30
38
|
const SistecPlugin = {
|
|
31
39
|
// até o momento não usamos opções nem o app, mas deixei aqui caso precise no futuro
|
|
@@ -36,6 +44,7 @@ const SistecPlugin = {
|
|
|
36
44
|
// futuros upgrades podem ser feitos aqui
|
|
37
45
|
// Ex: app.component('MeuComponente', MeuComponente);
|
|
38
46
|
app.directive('required', vRequired);
|
|
47
|
+
app.use(Toast, options_toast);
|
|
39
48
|
}
|
|
40
49
|
};
|
|
41
50
|
export { SistecPlugin };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="t-container">
|
|
3
|
+
<div class="d-flex flex-column gap-1">
|
|
4
|
+
<h1 class="m-0 p-0 fs-3 bold">{{ props.content.title }}</h1>
|
|
5
|
+
<p class="m-0 p-0 text-white" v-html="props.content.body"></p>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
const props = defineProps(["content"]);
|
|
11
|
+
</script>
|
|
12
|
+
<style>
|
|
13
|
+
.t-container {
|
|
14
|
+
width: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
align-items: center;
|
|
18
|
+
color: white;
|
|
19
|
+
}
|
|
20
|
+
</style>
|