v-sistec-features 1.32.0 → 1.32.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/Modals/components/ModalAviso.vue.d.ts +2 -0
- package/dist/Modals/components/ModalBaseDefault.vue.d.ts +2 -0
- package/dist/Modals/components/ModalConfirmacao.vue.d.ts +2 -0
- package/dist/Modals/components/ModalConfirmacaoCheckbox.vue.d.ts +2 -0
- package/dist/Modals/components/ModalConfirmacaoInput.vue.d.ts +2 -0
- package/dist/Modals/components/ModalConfirmacaoSimples.vue.d.ts +2 -0
- package/dist/Modals/components/ModalInformacao.vue.d.ts +2 -0
- package/dist/Modals/components/ModalPerigo.vue.d.ts +2 -0
- package/dist/Modals/components/ModalSucesso.vue.d.ts +2 -0
- package/dist/Modals/components/interno/ModalDialogoInterno.vue.d.ts +2 -0
- package/dist/Modals.js +317 -310
- package/dist/v-sistec-features.css +1 -1
- package/package.json +1 -1
- package/src/Modals/components/ModalAviso.vue +2 -1
- package/src/Modals/components/ModalBaseDefault.vue +6 -3
- package/src/Modals/components/ModalConfirmacao.vue +2 -1
- package/src/Modals/components/ModalConfirmacaoCheckbox.vue +2 -1
- package/src/Modals/components/ModalConfirmacaoInput.vue +2 -0
- package/src/Modals/components/ModalConfirmacaoSimples.vue +7 -4
- package/src/Modals/components/ModalInformacao.vue +2 -1
- package/src/Modals/components/ModalPerigo.vue +2 -1
- package/src/Modals/components/ModalSucesso.vue +2 -1
- package/src/Modals/components/interno/ModalDialogoInterno.vue +6 -3
package/dist/Modals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, openBlock as f, createElementBlock as h, normalizeClass as V, computed as b, watch as z, onUnmounted as N, createBlock as
|
|
1
|
+
import { defineComponent as E, openBlock as f, createElementBlock as h, normalizeClass as V, computed as b, watch as z, onUnmounted as N, createBlock as A, Teleport as R, withModifiers as j, createElementVNode as g, normalizeStyle as T, createCommentVNode as C, renderSlot as t, createTextVNode as p, toDisplayString as x, useSlots as M, unref as l, createSlots as I, withCtx as i, createVNode as D, normalizeProps as v, guardReactiveProps as y, ref as G, withDirectives as P, vModelCheckbox as Q, vModelText as O, withKeys as W } from "vue";
|
|
2
2
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import { IconHelpCircle as X, IconAlertTriangle as J, IconCircleCheck as Y, IconAlertCircle as Z, IconInfoCircle as _, IconMessageReport as ee } from "@tabler/icons-vue";
|
|
4
4
|
const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
@@ -9,12 +9,12 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
9
9
|
flutuante: { type: Boolean, default: !1 }
|
|
10
10
|
},
|
|
11
11
|
emits: ["click"],
|
|
12
|
-
setup(e, { emit:
|
|
13
|
-
const
|
|
12
|
+
setup(e, { emit: S }) {
|
|
13
|
+
const o = e, d = S;
|
|
14
14
|
function c(s) {
|
|
15
|
-
|
|
15
|
+
o.desabilitado || d("click", s);
|
|
16
16
|
}
|
|
17
|
-
return (s,
|
|
17
|
+
return (s, n) => (f(), h("button", {
|
|
18
18
|
type: "button",
|
|
19
19
|
class: V(["btn-fechar", { "btn-fechar-flutuante": e.flutuante }]),
|
|
20
20
|
title: e.titulo,
|
|
@@ -63,37 +63,37 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
63
63
|
carregando: { type: Boolean, default: !1 },
|
|
64
64
|
classeCorpo: { type: String, default: "" }
|
|
65
65
|
},
|
|
66
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
67
|
-
setup(e, { emit:
|
|
68
|
-
const
|
|
69
|
-
get: () =>
|
|
66
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
67
|
+
setup(e, { emit: S }) {
|
|
68
|
+
const o = e, d = S, c = b(() => o.tamanho || o.size), s = b({
|
|
69
|
+
get: () => o.modelValue,
|
|
70
70
|
set: (u) => d("update:modelValue", u)
|
|
71
|
-
}),
|
|
71
|
+
}), n = b(() => !o.fecharAoClicarFora || o.carregando), r = b(() => !o.fecharComEsc || o.carregando), a = b(() => !o.corBarraTopo || o.corBarraTopo === "brand" ? "" : `bg-${o.corBarraTopo}`), m = b(() => o.corBarraTopo === "brand" ? { backgroundColor: "var(--color-brand, var(--tblr-primary, #206bc4))" } : {}), $ = b(() => o.corBotaoConfirmar === "brand" ? "btn-salvar-base" : `btn-${o.corBotaoConfirmar}`), k = b(() => o.corBotaoConfirmar === "brand" ? {
|
|
72
72
|
backgroundColor: "var(--color-brand, var(--tblr-primary, #206bc4))",
|
|
73
73
|
color: "var(--text-inverse, #ffffff)"
|
|
74
74
|
} : {});
|
|
75
|
-
function
|
|
76
|
-
u.key === "Escape" && s.value && !
|
|
75
|
+
function F(u) {
|
|
76
|
+
u.key === "Escape" && s.value && !r.value && B();
|
|
77
77
|
}
|
|
78
78
|
z(
|
|
79
79
|
s,
|
|
80
80
|
(u) => {
|
|
81
|
-
typeof window > "u"
|
|
81
|
+
u && d("abriu"), !(typeof window > "u") && (u ? window.addEventListener("keydown", F) : window.removeEventListener("keydown", F));
|
|
82
82
|
},
|
|
83
83
|
{ immediate: !0 }
|
|
84
84
|
), N(() => {
|
|
85
|
-
typeof window < "u" && window.removeEventListener("keydown",
|
|
85
|
+
typeof window < "u" && window.removeEventListener("keydown", F);
|
|
86
86
|
});
|
|
87
87
|
function U() {
|
|
88
|
-
|
|
88
|
+
n.value || B();
|
|
89
89
|
}
|
|
90
90
|
function B() {
|
|
91
|
-
|
|
91
|
+
o.carregando || (s.value = !1, d("cancelar"), d("fechar"));
|
|
92
92
|
}
|
|
93
93
|
function w() {
|
|
94
|
-
|
|
94
|
+
o.desabilitarConfirmar || o.carregando || (d("confirmar"), o.fecharAoConfirmar && (s.value = !1));
|
|
95
95
|
}
|
|
96
|
-
return (u, H) => (f(),
|
|
96
|
+
return (u, H) => (f(), A(R, { to: "body" }, [
|
|
97
97
|
s.value ? (f(), h("div", {
|
|
98
98
|
key: 0,
|
|
99
99
|
id: e.id ? String(e.id) : void 0,
|
|
@@ -107,17 +107,17 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
107
107
|
}, [
|
|
108
108
|
e.corBarraTopo ? (f(), h("div", {
|
|
109
109
|
key: 0,
|
|
110
|
-
class: V(["modal-status-topo",
|
|
110
|
+
class: V(["modal-status-topo", a.value]),
|
|
111
111
|
style: T(m.value)
|
|
112
112
|
}, null, 6)) : C("", !0),
|
|
113
|
-
|
|
113
|
+
t(u.$slots, "barrinha-header", {}, void 0, !0),
|
|
114
114
|
e.ocultarCabecalho ? C("", !0) : (f(), h("div", re, [
|
|
115
115
|
g("h3", ne, [
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
t(u.$slots, "title-header", {}, () => [
|
|
117
|
+
p(x(e.titulo), 1)
|
|
118
118
|
], !0)
|
|
119
119
|
]),
|
|
120
|
-
e.mostrarBotaoFechar ? (f(),
|
|
120
|
+
e.mostrarBotaoFechar ? (f(), A(K, {
|
|
121
121
|
key: 0,
|
|
122
122
|
desabilitado: e.carregando,
|
|
123
123
|
onClick: B
|
|
@@ -126,12 +126,12 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
126
126
|
g("div", {
|
|
127
127
|
class: V(["modal-body", e.classeCorpo])
|
|
128
128
|
}, [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
t(u.$slots, "default", {}, void 0, !0),
|
|
130
|
+
t(u.$slots, "conteudo", {}, void 0, !0),
|
|
131
|
+
t(u.$slots, "content", {}, void 0, !0)
|
|
132
132
|
], 2),
|
|
133
133
|
e.ocultarRodape ? C("", !0) : (f(), h("div", le, [
|
|
134
|
-
|
|
134
|
+
t(u.$slots, "footer", {
|
|
135
135
|
fechar: B,
|
|
136
136
|
confirmar: w
|
|
137
137
|
}, () => [
|
|
@@ -143,22 +143,22 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
143
143
|
onClick: B
|
|
144
144
|
}, x(e.textoCancelar), 9, ie)) : C("", !0),
|
|
145
145
|
g("div", de, [
|
|
146
|
-
|
|
146
|
+
t(u.$slots, "botoes-esquerda", {
|
|
147
147
|
fechar: B,
|
|
148
148
|
confirmar: w
|
|
149
149
|
}, void 0, !0),
|
|
150
150
|
e.mostrarBotaoConfirmar ? (f(), h("button", {
|
|
151
151
|
key: 0,
|
|
152
152
|
type: "button",
|
|
153
|
-
class: V(["btn",
|
|
153
|
+
class: V(["btn", $.value]),
|
|
154
154
|
style: T(k.value),
|
|
155
155
|
disabled: e.desabilitarConfirmar || e.carregando,
|
|
156
156
|
onClick: w
|
|
157
157
|
}, [
|
|
158
158
|
e.carregando ? (f(), h("span", se)) : C("", !0),
|
|
159
|
-
|
|
159
|
+
p(" " + x(e.textoConfirmar), 1)
|
|
160
160
|
], 14, ce)) : C("", !0),
|
|
161
|
-
|
|
161
|
+
t(u.$slots, "botoes-direita", {
|
|
162
162
|
fechar: B,
|
|
163
163
|
confirmar: w
|
|
164
164
|
}, void 0, !0)
|
|
@@ -169,13 +169,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
169
169
|
], 40, te)) : C("", !0)
|
|
170
170
|
]));
|
|
171
171
|
}
|
|
172
|
-
}), ea = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-
|
|
172
|
+
}), ea = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-d187b0ac"]]), fe = { class: "modal-body text-center py-4 px-4" }, me = {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: "modal-titulo-dialogo mb-2"
|
|
175
|
-
}, be = { class: "modal-descricao-dialogo" },
|
|
175
|
+
}, be = { class: "modal-descricao-dialogo" }, ve = {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "mt-3 text-start"
|
|
178
|
-
},
|
|
178
|
+
}, ye = {
|
|
179
179
|
key: 2,
|
|
180
180
|
class: "mt-3"
|
|
181
181
|
}, Ce = {
|
|
@@ -218,29 +218,29 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
218
218
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
219
219
|
carregando: { type: Boolean, default: !1 }
|
|
220
220
|
},
|
|
221
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
222
|
-
setup(e, { emit:
|
|
223
|
-
const
|
|
221
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
222
|
+
setup(e, { emit: S }) {
|
|
223
|
+
const o = M(), d = e, c = S, s = b({
|
|
224
224
|
get: () => d.modelValue,
|
|
225
225
|
set: (u) => c("update:modelValue", u)
|
|
226
|
-
}),
|
|
226
|
+
}), n = b(() => !d.fecharAoClicarFora || d.carregando), r = b(() => !d.fecharComEsc || d.carregando), a = b(() => !d.corTopo || d.corTopo === "brand" ? "" : `bg-${d.corTopo}`), m = b(() => d.corTopo === "brand" ? { backgroundColor: "var(--color-brand, var(--tblr-primary, #206bc4))" } : {}), $ = b(() => d.corBotaoConfirmar === "brand" ? "btn-brand-custom text-white" : `btn-${d.corBotaoConfirmar}`), k = b(() => d.corBotaoConfirmar === "brand" ? {
|
|
227
227
|
backgroundColor: "var(--color-brand, var(--tblr-primary, #206bc4))",
|
|
228
228
|
borderColor: "var(--color-brand, var(--tblr-primary, #206bc4))"
|
|
229
229
|
} : {});
|
|
230
|
-
function
|
|
231
|
-
u.key === "Escape" && s.value && !
|
|
230
|
+
function F(u) {
|
|
231
|
+
u.key === "Escape" && s.value && !r.value && B();
|
|
232
232
|
}
|
|
233
233
|
z(
|
|
234
234
|
s,
|
|
235
235
|
(u) => {
|
|
236
|
-
typeof window > "u"
|
|
236
|
+
u && c("abriu"), !(typeof window > "u") && (u ? window.addEventListener("keydown", F) : window.removeEventListener("keydown", F));
|
|
237
237
|
},
|
|
238
238
|
{ immediate: !0 }
|
|
239
239
|
), N(() => {
|
|
240
|
-
typeof window < "u" && window.removeEventListener("keydown",
|
|
240
|
+
typeof window < "u" && window.removeEventListener("keydown", F);
|
|
241
241
|
});
|
|
242
242
|
function U() {
|
|
243
|
-
|
|
243
|
+
n.value || B();
|
|
244
244
|
}
|
|
245
245
|
function B() {
|
|
246
246
|
d.carregando || (s.value = !1, c("cancelar"), c("fechar"));
|
|
@@ -248,7 +248,7 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
248
248
|
function w() {
|
|
249
249
|
d.desabilitarConfirmar || d.carregando || (c("confirmar"), d.fecharAoConfirmar && (s.value = !1));
|
|
250
250
|
}
|
|
251
|
-
return (u, H) => (f(),
|
|
251
|
+
return (u, H) => (f(), A(R, { to: "body" }, [
|
|
252
252
|
s.value ? (f(), h("div", {
|
|
253
253
|
key: 0,
|
|
254
254
|
class: "modal-overlay",
|
|
@@ -261,42 +261,42 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
261
261
|
}, [
|
|
262
262
|
e.corTopo ? (f(), h("div", {
|
|
263
263
|
key: 0,
|
|
264
|
-
class: V(["modal-status-topo",
|
|
264
|
+
class: V(["modal-status-topo", a.value]),
|
|
265
265
|
style: T(m.value)
|
|
266
266
|
}, null, 6)) : C("", !0),
|
|
267
|
-
e.mostrarBotaoFechar ? (f(),
|
|
267
|
+
e.mostrarBotaoFechar ? (f(), A(K, {
|
|
268
268
|
key: 1,
|
|
269
269
|
flutuante: "",
|
|
270
270
|
desabilitado: e.carregando,
|
|
271
271
|
onClick: B
|
|
272
272
|
}, null, 8, ["desabilitado"])) : C("", !0),
|
|
273
273
|
g("div", fe, [
|
|
274
|
-
|
|
275
|
-
e.titulo || l(
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
t(u.$slots, "icone", {}, void 0, !0),
|
|
275
|
+
e.titulo || l(o).titulo ? (f(), h("h3", me, [
|
|
276
|
+
t(u.$slots, "titulo", {}, () => [
|
|
277
|
+
p(x(e.titulo), 1)
|
|
278
278
|
], !0)
|
|
279
279
|
])) : C("", !0),
|
|
280
280
|
g("div", be, [
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
t(u.$slots, "default", {}, () => [
|
|
282
|
+
p(x(e.descricao), 1)
|
|
283
283
|
], !0)
|
|
284
284
|
]),
|
|
285
|
-
l(
|
|
286
|
-
|
|
285
|
+
l(o).conteudo ? (f(), h("div", ve, [
|
|
286
|
+
t(u.$slots, "conteudo", {}, void 0, !0)
|
|
287
287
|
])) : C("", !0),
|
|
288
|
-
l(
|
|
289
|
-
|
|
288
|
+
l(o).extra ? (f(), h("div", ye, [
|
|
289
|
+
t(u.$slots, "extra", {}, void 0, !0)
|
|
290
290
|
])) : C("", !0)
|
|
291
291
|
]),
|
|
292
292
|
e.ocultarRodape ? C("", !0) : (f(), h("div", Ce, [
|
|
293
293
|
g("div", he, [
|
|
294
294
|
g("div", Be, [
|
|
295
|
-
|
|
295
|
+
t(u.$slots, "footer", {
|
|
296
296
|
cancelar: B,
|
|
297
297
|
confirmar: w
|
|
298
298
|
}, () => [
|
|
299
|
-
|
|
299
|
+
t(u.$slots, "botoes-esquerda", {
|
|
300
300
|
cancelar: B,
|
|
301
301
|
confirmar: w
|
|
302
302
|
}, void 0, !0),
|
|
@@ -308,23 +308,23 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
308
308
|
onClick: B
|
|
309
309
|
}, x(e.textoCancelar), 9, $e)
|
|
310
310
|
])) : C("", !0),
|
|
311
|
-
|
|
311
|
+
t(u.$slots, "botoes-meio", {
|
|
312
312
|
cancelar: B,
|
|
313
313
|
confirmar: w
|
|
314
314
|
}, void 0, !0),
|
|
315
315
|
e.mostrarBotaoConfirmar ? (f(), h("div", ke, [
|
|
316
316
|
g("button", {
|
|
317
317
|
type: "button",
|
|
318
|
-
class: V(["btn w-100",
|
|
318
|
+
class: V(["btn w-100", $.value]),
|
|
319
319
|
style: T(k.value),
|
|
320
320
|
disabled: e.desabilitarConfirmar || e.carregando,
|
|
321
321
|
onClick: w
|
|
322
322
|
}, [
|
|
323
323
|
e.carregando ? (f(), h("span", Ve)) : C("", !0),
|
|
324
|
-
|
|
324
|
+
p(" " + x(e.textoConfirmar), 1)
|
|
325
325
|
], 14, Se)
|
|
326
326
|
])) : C("", !0),
|
|
327
|
-
|
|
327
|
+
t(u.$slots, "botoes-direita", {
|
|
328
328
|
cancelar: B,
|
|
329
329
|
confirmar: w
|
|
330
330
|
}, void 0, !0)
|
|
@@ -336,7 +336,7 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
336
336
|
], 32)) : C("", !0)
|
|
337
337
|
]));
|
|
338
338
|
}
|
|
339
|
-
}), L = /* @__PURE__ */ q(we, [["__scopeId", "data-v-
|
|
339
|
+
}), L = /* @__PURE__ */ q(we, [["__scopeId", "data-v-7bddeae9"]]), xe = /* @__PURE__ */ E({
|
|
340
340
|
__name: "ModalConfirmacao",
|
|
341
341
|
props: {
|
|
342
342
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -355,15 +355,15 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
355
355
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
356
356
|
carregando: { type: Boolean, default: !1 }
|
|
357
357
|
},
|
|
358
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
359
|
-
setup(e, { emit:
|
|
360
|
-
const
|
|
358
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
359
|
+
setup(e, { emit: S }) {
|
|
360
|
+
const o = M(), d = e, c = S, s = b({
|
|
361
361
|
get: () => d.modelValue,
|
|
362
|
-
set: (
|
|
362
|
+
set: (n) => c("update:modelValue", n)
|
|
363
363
|
});
|
|
364
|
-
return (
|
|
364
|
+
return (n, r) => (f(), A(L, {
|
|
365
365
|
modelValue: s.value,
|
|
366
|
-
"onUpdate:modelValue":
|
|
366
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
|
|
367
367
|
tamanho: e.tamanho,
|
|
368
368
|
"cor-topo": e.corTema,
|
|
369
369
|
"cor-botao-confirmar": e.corTema,
|
|
@@ -379,12 +379,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
379
379
|
"fechar-ao-confirmar": e.fecharAoConfirmar,
|
|
380
380
|
"desabilitar-confirmar": e.desabilitarConfirmar,
|
|
381
381
|
carregando: e.carregando,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
382
|
+
onAbriu: r[1] || (r[1] = (a) => c("abriu")),
|
|
383
|
+
onConfirmar: r[2] || (r[2] = (a) => c("confirmar")),
|
|
384
|
+
onCancelar: r[3] || (r[3] = (a) => c("cancelar")),
|
|
385
|
+
onFechar: r[4] || (r[4] = (a) => c("fechar"))
|
|
385
386
|
}, I({
|
|
386
387
|
icone: i(() => [
|
|
387
|
-
|
|
388
|
+
t(n.$slots, "icone", {}, () => [
|
|
388
389
|
D(l(X), {
|
|
389
390
|
class: V(["icon mb-2 icone-destaque", e.corTema === "brand" ? "" : `text-${e.corTema}`]),
|
|
390
391
|
style: T(e.corTema === "brand" ? { color: "var(--color-brand, var(--tblr-primary))" } : {}),
|
|
@@ -394,65 +395,65 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
394
395
|
]),
|
|
395
396
|
_: 2
|
|
396
397
|
}, [
|
|
397
|
-
l(
|
|
398
|
+
l(o).titulo ? {
|
|
398
399
|
name: "titulo",
|
|
399
400
|
fn: i(() => [
|
|
400
|
-
|
|
401
|
+
t(n.$slots, "titulo", {}, void 0, !0)
|
|
401
402
|
]),
|
|
402
403
|
key: "0"
|
|
403
404
|
} : void 0,
|
|
404
|
-
l(
|
|
405
|
+
l(o).default ? {
|
|
405
406
|
name: "default",
|
|
406
407
|
fn: i(() => [
|
|
407
|
-
|
|
408
|
+
t(n.$slots, "default", {}, void 0, !0)
|
|
408
409
|
]),
|
|
409
410
|
key: "1"
|
|
410
411
|
} : void 0,
|
|
411
|
-
l(
|
|
412
|
+
l(o).conteudo ? {
|
|
412
413
|
name: "conteudo",
|
|
413
414
|
fn: i(() => [
|
|
414
|
-
|
|
415
|
+
t(n.$slots, "conteudo", {}, void 0, !0)
|
|
415
416
|
]),
|
|
416
417
|
key: "2"
|
|
417
418
|
} : void 0,
|
|
418
|
-
l(
|
|
419
|
+
l(o).extra ? {
|
|
419
420
|
name: "extra",
|
|
420
421
|
fn: i(() => [
|
|
421
|
-
|
|
422
|
+
t(n.$slots, "extra", {}, void 0, !0)
|
|
422
423
|
]),
|
|
423
424
|
key: "3"
|
|
424
425
|
} : void 0,
|
|
425
|
-
l(
|
|
426
|
+
l(o)["botoes-esquerda"] ? {
|
|
426
427
|
name: "botoes-esquerda",
|
|
427
|
-
fn: i((
|
|
428
|
-
|
|
428
|
+
fn: i((a) => [
|
|
429
|
+
t(n.$slots, "botoes-esquerda", v(y(a)), void 0, !0)
|
|
429
430
|
]),
|
|
430
431
|
key: "4"
|
|
431
432
|
} : void 0,
|
|
432
|
-
l(
|
|
433
|
+
l(o)["botoes-meio"] ? {
|
|
433
434
|
name: "botoes-meio",
|
|
434
|
-
fn: i((
|
|
435
|
-
|
|
435
|
+
fn: i((a) => [
|
|
436
|
+
t(n.$slots, "botoes-meio", v(y(a)), void 0, !0)
|
|
436
437
|
]),
|
|
437
438
|
key: "5"
|
|
438
439
|
} : void 0,
|
|
439
|
-
l(
|
|
440
|
+
l(o)["botoes-direita"] ? {
|
|
440
441
|
name: "botoes-direita",
|
|
441
|
-
fn: i((
|
|
442
|
-
|
|
442
|
+
fn: i((a) => [
|
|
443
|
+
t(n.$slots, "botoes-direita", v(y(a)), void 0, !0)
|
|
443
444
|
]),
|
|
444
445
|
key: "6"
|
|
445
446
|
} : void 0,
|
|
446
|
-
l(
|
|
447
|
+
l(o).footer ? {
|
|
447
448
|
name: "footer",
|
|
448
|
-
fn: i((
|
|
449
|
-
|
|
449
|
+
fn: i((a) => [
|
|
450
|
+
t(n.$slots, "footer", v(y(a)), void 0, !0)
|
|
450
451
|
]),
|
|
451
452
|
key: "7"
|
|
452
453
|
} : void 0
|
|
453
454
|
]), 1032, ["modelValue", "tamanho", "cor-topo", "cor-botao-confirmar", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "fechar-ao-confirmar", "desabilitar-confirmar", "carregando"]));
|
|
454
455
|
}
|
|
455
|
-
}), aa = /* @__PURE__ */ q(xe, [["__scopeId", "data-v-
|
|
456
|
+
}), aa = /* @__PURE__ */ q(xe, [["__scopeId", "data-v-b2c5657f"]]), Ae = /* @__PURE__ */ E({
|
|
456
457
|
__name: "ModalPerigo",
|
|
457
458
|
props: {
|
|
458
459
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -470,15 +471,15 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
470
471
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
471
472
|
carregando: { type: Boolean, default: !1 }
|
|
472
473
|
},
|
|
473
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
474
|
-
setup(e, { emit:
|
|
475
|
-
const
|
|
474
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
475
|
+
setup(e, { emit: S }) {
|
|
476
|
+
const o = M(), d = e, c = S, s = b({
|
|
476
477
|
get: () => d.modelValue,
|
|
477
|
-
set: (
|
|
478
|
+
set: (n) => c("update:modelValue", n)
|
|
478
479
|
});
|
|
479
|
-
return (
|
|
480
|
+
return (n, r) => (f(), A(L, {
|
|
480
481
|
modelValue: s.value,
|
|
481
|
-
"onUpdate:modelValue":
|
|
482
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
|
|
482
483
|
tamanho: e.tamanho,
|
|
483
484
|
"cor-topo": "danger",
|
|
484
485
|
"cor-botao-confirmar": "danger",
|
|
@@ -494,12 +495,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
494
495
|
"fechar-ao-confirmar": e.fecharAoConfirmar,
|
|
495
496
|
"desabilitar-confirmar": e.desabilitarConfirmar,
|
|
496
497
|
carregando: e.carregando,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
onAbriu: r[1] || (r[1] = (a) => c("abriu")),
|
|
499
|
+
onConfirmar: r[2] || (r[2] = (a) => c("confirmar")),
|
|
500
|
+
onCancelar: r[3] || (r[3] = (a) => c("cancelar")),
|
|
501
|
+
onFechar: r[4] || (r[4] = (a) => c("fechar"))
|
|
500
502
|
}, I({
|
|
501
503
|
icone: i(() => [
|
|
502
|
-
|
|
504
|
+
t(n.$slots, "icone", {}, () => [
|
|
503
505
|
D(l(J), {
|
|
504
506
|
class: "icon mb-2 text-danger icone-destaque",
|
|
505
507
|
"stroke-width": "1.5"
|
|
@@ -508,65 +510,65 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
508
510
|
]),
|
|
509
511
|
_: 2
|
|
510
512
|
}, [
|
|
511
|
-
l(
|
|
513
|
+
l(o).titulo ? {
|
|
512
514
|
name: "titulo",
|
|
513
515
|
fn: i(() => [
|
|
514
|
-
|
|
516
|
+
t(n.$slots, "titulo", {}, void 0, !0)
|
|
515
517
|
]),
|
|
516
518
|
key: "0"
|
|
517
519
|
} : void 0,
|
|
518
|
-
l(
|
|
520
|
+
l(o).default ? {
|
|
519
521
|
name: "default",
|
|
520
522
|
fn: i(() => [
|
|
521
|
-
|
|
523
|
+
t(n.$slots, "default", {}, void 0, !0)
|
|
522
524
|
]),
|
|
523
525
|
key: "1"
|
|
524
526
|
} : void 0,
|
|
525
|
-
l(
|
|
527
|
+
l(o).conteudo ? {
|
|
526
528
|
name: "conteudo",
|
|
527
529
|
fn: i(() => [
|
|
528
|
-
|
|
530
|
+
t(n.$slots, "conteudo", {}, void 0, !0)
|
|
529
531
|
]),
|
|
530
532
|
key: "2"
|
|
531
533
|
} : void 0,
|
|
532
|
-
l(
|
|
534
|
+
l(o).extra ? {
|
|
533
535
|
name: "extra",
|
|
534
536
|
fn: i(() => [
|
|
535
|
-
|
|
537
|
+
t(n.$slots, "extra", {}, void 0, !0)
|
|
536
538
|
]),
|
|
537
539
|
key: "3"
|
|
538
540
|
} : void 0,
|
|
539
|
-
l(
|
|
541
|
+
l(o)["botoes-esquerda"] ? {
|
|
540
542
|
name: "botoes-esquerda",
|
|
541
|
-
fn: i((
|
|
542
|
-
|
|
543
|
+
fn: i((a) => [
|
|
544
|
+
t(n.$slots, "botoes-esquerda", v(y(a)), void 0, !0)
|
|
543
545
|
]),
|
|
544
546
|
key: "4"
|
|
545
547
|
} : void 0,
|
|
546
|
-
l(
|
|
548
|
+
l(o)["botoes-meio"] ? {
|
|
547
549
|
name: "botoes-meio",
|
|
548
|
-
fn: i((
|
|
549
|
-
|
|
550
|
+
fn: i((a) => [
|
|
551
|
+
t(n.$slots, "botoes-meio", v(y(a)), void 0, !0)
|
|
550
552
|
]),
|
|
551
553
|
key: "5"
|
|
552
554
|
} : void 0,
|
|
553
|
-
l(
|
|
555
|
+
l(o)["botoes-direita"] ? {
|
|
554
556
|
name: "botoes-direita",
|
|
555
|
-
fn: i((
|
|
556
|
-
|
|
557
|
+
fn: i((a) => [
|
|
558
|
+
t(n.$slots, "botoes-direita", v(y(a)), void 0, !0)
|
|
557
559
|
]),
|
|
558
560
|
key: "6"
|
|
559
561
|
} : void 0,
|
|
560
|
-
l(
|
|
562
|
+
l(o).footer ? {
|
|
561
563
|
name: "footer",
|
|
562
|
-
fn: i((
|
|
563
|
-
|
|
564
|
+
fn: i((a) => [
|
|
565
|
+
t(n.$slots, "footer", v(y(a)), void 0, !0)
|
|
564
566
|
]),
|
|
565
567
|
key: "7"
|
|
566
568
|
} : void 0
|
|
567
569
|
]), 1032, ["modelValue", "tamanho", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "fechar-ao-confirmar", "desabilitar-confirmar", "carregando"]));
|
|
568
570
|
}
|
|
569
|
-
}), oa = /* @__PURE__ */ q(
|
|
571
|
+
}), oa = /* @__PURE__ */ q(Ae, [["__scopeId", "data-v-8bf0a86f"]]), pe = /* @__PURE__ */ E({
|
|
570
572
|
__name: "ModalSucesso",
|
|
571
573
|
props: {
|
|
572
574
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -584,15 +586,15 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
584
586
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
585
587
|
carregando: { type: Boolean, default: !1 }
|
|
586
588
|
},
|
|
587
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
588
|
-
setup(e, { emit:
|
|
589
|
-
const
|
|
589
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
590
|
+
setup(e, { emit: S }) {
|
|
591
|
+
const o = M(), d = e, c = S, s = b({
|
|
590
592
|
get: () => d.modelValue,
|
|
591
|
-
set: (
|
|
593
|
+
set: (n) => c("update:modelValue", n)
|
|
592
594
|
});
|
|
593
|
-
return (
|
|
595
|
+
return (n, r) => (f(), A(L, {
|
|
594
596
|
modelValue: s.value,
|
|
595
|
-
"onUpdate:modelValue":
|
|
597
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
|
|
596
598
|
tamanho: e.tamanho,
|
|
597
599
|
"cor-topo": "success",
|
|
598
600
|
"cor-botao-confirmar": "success",
|
|
@@ -608,12 +610,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
608
610
|
"fechar-ao-confirmar": e.fecharAoConfirmar,
|
|
609
611
|
"desabilitar-confirmar": e.desabilitarConfirmar,
|
|
610
612
|
carregando: e.carregando,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
613
|
+
onAbriu: r[1] || (r[1] = (a) => c("abriu")),
|
|
614
|
+
onConfirmar: r[2] || (r[2] = (a) => c("confirmar")),
|
|
615
|
+
onCancelar: r[3] || (r[3] = (a) => c("cancelar")),
|
|
616
|
+
onFechar: r[4] || (r[4] = (a) => c("fechar"))
|
|
614
617
|
}, I({
|
|
615
618
|
icone: i(() => [
|
|
616
|
-
|
|
619
|
+
t(n.$slots, "icone", {}, () => [
|
|
617
620
|
D(l(Y), {
|
|
618
621
|
class: "icon mb-2 text-success icone-destaque",
|
|
619
622
|
"stroke-width": "1.5"
|
|
@@ -622,65 +625,65 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
622
625
|
]),
|
|
623
626
|
_: 2
|
|
624
627
|
}, [
|
|
625
|
-
l(
|
|
628
|
+
l(o).titulo ? {
|
|
626
629
|
name: "titulo",
|
|
627
630
|
fn: i(() => [
|
|
628
|
-
|
|
631
|
+
t(n.$slots, "titulo", {}, void 0, !0)
|
|
629
632
|
]),
|
|
630
633
|
key: "0"
|
|
631
634
|
} : void 0,
|
|
632
|
-
l(
|
|
635
|
+
l(o).default ? {
|
|
633
636
|
name: "default",
|
|
634
637
|
fn: i(() => [
|
|
635
|
-
|
|
638
|
+
t(n.$slots, "default", {}, void 0, !0)
|
|
636
639
|
]),
|
|
637
640
|
key: "1"
|
|
638
641
|
} : void 0,
|
|
639
|
-
l(
|
|
642
|
+
l(o).conteudo ? {
|
|
640
643
|
name: "conteudo",
|
|
641
644
|
fn: i(() => [
|
|
642
|
-
|
|
645
|
+
t(n.$slots, "conteudo", {}, void 0, !0)
|
|
643
646
|
]),
|
|
644
647
|
key: "2"
|
|
645
648
|
} : void 0,
|
|
646
|
-
l(
|
|
649
|
+
l(o).extra ? {
|
|
647
650
|
name: "extra",
|
|
648
651
|
fn: i(() => [
|
|
649
|
-
|
|
652
|
+
t(n.$slots, "extra", {}, void 0, !0)
|
|
650
653
|
]),
|
|
651
654
|
key: "3"
|
|
652
655
|
} : void 0,
|
|
653
|
-
l(
|
|
656
|
+
l(o)["botoes-esquerda"] ? {
|
|
654
657
|
name: "botoes-esquerda",
|
|
655
|
-
fn: i((
|
|
656
|
-
|
|
658
|
+
fn: i((a) => [
|
|
659
|
+
t(n.$slots, "botoes-esquerda", v(y(a)), void 0, !0)
|
|
657
660
|
]),
|
|
658
661
|
key: "4"
|
|
659
662
|
} : void 0,
|
|
660
|
-
l(
|
|
663
|
+
l(o)["botoes-meio"] ? {
|
|
661
664
|
name: "botoes-meio",
|
|
662
|
-
fn: i((
|
|
663
|
-
|
|
665
|
+
fn: i((a) => [
|
|
666
|
+
t(n.$slots, "botoes-meio", v(y(a)), void 0, !0)
|
|
664
667
|
]),
|
|
665
668
|
key: "5"
|
|
666
669
|
} : void 0,
|
|
667
|
-
l(
|
|
670
|
+
l(o)["botoes-direita"] ? {
|
|
668
671
|
name: "botoes-direita",
|
|
669
|
-
fn: i((
|
|
670
|
-
|
|
672
|
+
fn: i((a) => [
|
|
673
|
+
t(n.$slots, "botoes-direita", v(y(a)), void 0, !0)
|
|
671
674
|
]),
|
|
672
675
|
key: "6"
|
|
673
676
|
} : void 0,
|
|
674
|
-
l(
|
|
677
|
+
l(o).footer ? {
|
|
675
678
|
name: "footer",
|
|
676
|
-
fn: i((
|
|
677
|
-
|
|
679
|
+
fn: i((a) => [
|
|
680
|
+
t(n.$slots, "footer", v(y(a)), void 0, !0)
|
|
678
681
|
]),
|
|
679
682
|
key: "7"
|
|
680
683
|
} : void 0
|
|
681
684
|
]), 1032, ["modelValue", "tamanho", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "fechar-ao-confirmar", "desabilitar-confirmar", "carregando"]));
|
|
682
685
|
}
|
|
683
|
-
}), ta = /* @__PURE__ */ q(
|
|
686
|
+
}), ta = /* @__PURE__ */ q(pe, [["__scopeId", "data-v-d768592f"]]), Fe = /* @__PURE__ */ E({
|
|
684
687
|
__name: "ModalAviso",
|
|
685
688
|
props: {
|
|
686
689
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -699,15 +702,15 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
699
702
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
700
703
|
carregando: { type: Boolean, default: !1 }
|
|
701
704
|
},
|
|
702
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
703
|
-
setup(e, { emit:
|
|
704
|
-
const
|
|
705
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
706
|
+
setup(e, { emit: S }) {
|
|
707
|
+
const o = M(), d = e, c = S, s = b({
|
|
705
708
|
get: () => d.modelValue,
|
|
706
|
-
set: (
|
|
709
|
+
set: (n) => c("update:modelValue", n)
|
|
707
710
|
});
|
|
708
|
-
return (
|
|
711
|
+
return (n, r) => (f(), A(L, {
|
|
709
712
|
modelValue: s.value,
|
|
710
|
-
"onUpdate:modelValue":
|
|
713
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
|
|
711
714
|
tamanho: e.tamanho,
|
|
712
715
|
"cor-topo": e.usarCorBrand ? "brand" : "warning",
|
|
713
716
|
"cor-botao-confirmar": e.usarCorBrand ? "brand" : "warning",
|
|
@@ -723,12 +726,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
723
726
|
"fechar-ao-confirmar": e.fecharAoConfirmar,
|
|
724
727
|
"desabilitar-confirmar": e.desabilitarConfirmar,
|
|
725
728
|
carregando: e.carregando,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
+
onAbriu: r[1] || (r[1] = (a) => c("abriu")),
|
|
730
|
+
onConfirmar: r[2] || (r[2] = (a) => c("confirmar")),
|
|
731
|
+
onCancelar: r[3] || (r[3] = (a) => c("cancelar")),
|
|
732
|
+
onFechar: r[4] || (r[4] = (a) => c("fechar"))
|
|
729
733
|
}, I({
|
|
730
734
|
icone: i(() => [
|
|
731
|
-
|
|
735
|
+
t(n.$slots, "icone", {}, () => [
|
|
732
736
|
D(l(Z), {
|
|
733
737
|
class: V(["icon mb-2 icone-destaque", e.usarCorBrand ? "" : "text-warning"]),
|
|
734
738
|
style: T(e.usarCorBrand ? { color: "var(--color-brand, var(--tblr-primary))" } : {}),
|
|
@@ -738,65 +742,65 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
738
742
|
]),
|
|
739
743
|
_: 2
|
|
740
744
|
}, [
|
|
741
|
-
l(
|
|
745
|
+
l(o).titulo ? {
|
|
742
746
|
name: "titulo",
|
|
743
747
|
fn: i(() => [
|
|
744
|
-
|
|
748
|
+
t(n.$slots, "titulo", {}, void 0, !0)
|
|
745
749
|
]),
|
|
746
750
|
key: "0"
|
|
747
751
|
} : void 0,
|
|
748
|
-
l(
|
|
752
|
+
l(o).default ? {
|
|
749
753
|
name: "default",
|
|
750
754
|
fn: i(() => [
|
|
751
|
-
|
|
755
|
+
t(n.$slots, "default", {}, void 0, !0)
|
|
752
756
|
]),
|
|
753
757
|
key: "1"
|
|
754
758
|
} : void 0,
|
|
755
|
-
l(
|
|
759
|
+
l(o).conteudo ? {
|
|
756
760
|
name: "conteudo",
|
|
757
761
|
fn: i(() => [
|
|
758
|
-
|
|
762
|
+
t(n.$slots, "conteudo", {}, void 0, !0)
|
|
759
763
|
]),
|
|
760
764
|
key: "2"
|
|
761
765
|
} : void 0,
|
|
762
|
-
l(
|
|
766
|
+
l(o).extra ? {
|
|
763
767
|
name: "extra",
|
|
764
768
|
fn: i(() => [
|
|
765
|
-
|
|
769
|
+
t(n.$slots, "extra", {}, void 0, !0)
|
|
766
770
|
]),
|
|
767
771
|
key: "3"
|
|
768
772
|
} : void 0,
|
|
769
|
-
l(
|
|
773
|
+
l(o)["botoes-esquerda"] ? {
|
|
770
774
|
name: "botoes-esquerda",
|
|
771
|
-
fn: i((
|
|
772
|
-
|
|
775
|
+
fn: i((a) => [
|
|
776
|
+
t(n.$slots, "botoes-esquerda", v(y(a)), void 0, !0)
|
|
773
777
|
]),
|
|
774
778
|
key: "4"
|
|
775
779
|
} : void 0,
|
|
776
|
-
l(
|
|
780
|
+
l(o)["botoes-meio"] ? {
|
|
777
781
|
name: "botoes-meio",
|
|
778
|
-
fn: i((
|
|
779
|
-
|
|
782
|
+
fn: i((a) => [
|
|
783
|
+
t(n.$slots, "botoes-meio", v(y(a)), void 0, !0)
|
|
780
784
|
]),
|
|
781
785
|
key: "5"
|
|
782
786
|
} : void 0,
|
|
783
|
-
l(
|
|
787
|
+
l(o)["botoes-direita"] ? {
|
|
784
788
|
name: "botoes-direita",
|
|
785
|
-
fn: i((
|
|
786
|
-
|
|
789
|
+
fn: i((a) => [
|
|
790
|
+
t(n.$slots, "botoes-direita", v(y(a)), void 0, !0)
|
|
787
791
|
]),
|
|
788
792
|
key: "6"
|
|
789
793
|
} : void 0,
|
|
790
|
-
l(
|
|
794
|
+
l(o).footer ? {
|
|
791
795
|
name: "footer",
|
|
792
|
-
fn: i((
|
|
793
|
-
|
|
796
|
+
fn: i((a) => [
|
|
797
|
+
t(n.$slots, "footer", v(y(a)), void 0, !0)
|
|
794
798
|
]),
|
|
795
799
|
key: "7"
|
|
796
800
|
} : void 0
|
|
797
801
|
]), 1032, ["modelValue", "tamanho", "cor-topo", "cor-botao-confirmar", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "fechar-ao-confirmar", "desabilitar-confirmar", "carregando"]));
|
|
798
802
|
}
|
|
799
|
-
}), ra = /* @__PURE__ */ q(
|
|
803
|
+
}), ra = /* @__PURE__ */ q(Fe, [["__scopeId", "data-v-490cbe95"]]), Te = /* @__PURE__ */ E({
|
|
800
804
|
__name: "ModalInformacao",
|
|
801
805
|
props: {
|
|
802
806
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -815,15 +819,15 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
815
819
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
816
820
|
carregando: { type: Boolean, default: !1 }
|
|
817
821
|
},
|
|
818
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
819
|
-
setup(e, { emit:
|
|
820
|
-
const
|
|
822
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
823
|
+
setup(e, { emit: S }) {
|
|
824
|
+
const o = M(), d = e, c = S, s = b({
|
|
821
825
|
get: () => d.modelValue,
|
|
822
|
-
set: (
|
|
826
|
+
set: (n) => c("update:modelValue", n)
|
|
823
827
|
});
|
|
824
|
-
return (
|
|
828
|
+
return (n, r) => (f(), A(L, {
|
|
825
829
|
modelValue: s.value,
|
|
826
|
-
"onUpdate:modelValue":
|
|
830
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
|
|
827
831
|
tamanho: e.tamanho,
|
|
828
832
|
"cor-topo": e.usarCorBrand ? "brand" : "info",
|
|
829
833
|
"cor-botao-confirmar": e.usarCorBrand ? "brand" : "info",
|
|
@@ -839,12 +843,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
839
843
|
"fechar-ao-confirmar": e.fecharAoConfirmar,
|
|
840
844
|
"desabilitar-confirmar": e.desabilitarConfirmar,
|
|
841
845
|
carregando: e.carregando,
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
846
|
+
onAbriu: r[1] || (r[1] = (a) => c("abriu")),
|
|
847
|
+
onConfirmar: r[2] || (r[2] = (a) => c("confirmar")),
|
|
848
|
+
onCancelar: r[3] || (r[3] = (a) => c("cancelar")),
|
|
849
|
+
onFechar: r[4] || (r[4] = (a) => c("fechar"))
|
|
845
850
|
}, I({
|
|
846
851
|
icone: i(() => [
|
|
847
|
-
|
|
852
|
+
t(n.$slots, "icone", {}, () => [
|
|
848
853
|
D(l(_), {
|
|
849
854
|
class: V(["icon mb-2 icone-destaque", e.usarCorBrand ? "" : "text-info"]),
|
|
850
855
|
style: T(e.usarCorBrand ? { color: "var(--color-brand, var(--tblr-primary))" } : {}),
|
|
@@ -854,65 +859,65 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
854
859
|
]),
|
|
855
860
|
_: 2
|
|
856
861
|
}, [
|
|
857
|
-
l(
|
|
862
|
+
l(o).titulo ? {
|
|
858
863
|
name: "titulo",
|
|
859
864
|
fn: i(() => [
|
|
860
|
-
|
|
865
|
+
t(n.$slots, "titulo", {}, void 0, !0)
|
|
861
866
|
]),
|
|
862
867
|
key: "0"
|
|
863
868
|
} : void 0,
|
|
864
|
-
l(
|
|
869
|
+
l(o).default ? {
|
|
865
870
|
name: "default",
|
|
866
871
|
fn: i(() => [
|
|
867
|
-
|
|
872
|
+
t(n.$slots, "default", {}, void 0, !0)
|
|
868
873
|
]),
|
|
869
874
|
key: "1"
|
|
870
875
|
} : void 0,
|
|
871
|
-
l(
|
|
876
|
+
l(o).conteudo ? {
|
|
872
877
|
name: "conteudo",
|
|
873
878
|
fn: i(() => [
|
|
874
|
-
|
|
879
|
+
t(n.$slots, "conteudo", {}, void 0, !0)
|
|
875
880
|
]),
|
|
876
881
|
key: "2"
|
|
877
882
|
} : void 0,
|
|
878
|
-
l(
|
|
883
|
+
l(o).extra ? {
|
|
879
884
|
name: "extra",
|
|
880
885
|
fn: i(() => [
|
|
881
|
-
|
|
886
|
+
t(n.$slots, "extra", {}, void 0, !0)
|
|
882
887
|
]),
|
|
883
888
|
key: "3"
|
|
884
889
|
} : void 0,
|
|
885
|
-
l(
|
|
890
|
+
l(o)["botoes-esquerda"] ? {
|
|
886
891
|
name: "botoes-esquerda",
|
|
887
|
-
fn: i((
|
|
888
|
-
|
|
892
|
+
fn: i((a) => [
|
|
893
|
+
t(n.$slots, "botoes-esquerda", v(y(a)), void 0, !0)
|
|
889
894
|
]),
|
|
890
895
|
key: "4"
|
|
891
896
|
} : void 0,
|
|
892
|
-
l(
|
|
897
|
+
l(o)["botoes-meio"] ? {
|
|
893
898
|
name: "botoes-meio",
|
|
894
|
-
fn: i((
|
|
895
|
-
|
|
899
|
+
fn: i((a) => [
|
|
900
|
+
t(n.$slots, "botoes-meio", v(y(a)), void 0, !0)
|
|
896
901
|
]),
|
|
897
902
|
key: "5"
|
|
898
903
|
} : void 0,
|
|
899
|
-
l(
|
|
904
|
+
l(o)["botoes-direita"] ? {
|
|
900
905
|
name: "botoes-direita",
|
|
901
|
-
fn: i((
|
|
902
|
-
|
|
906
|
+
fn: i((a) => [
|
|
907
|
+
t(n.$slots, "botoes-direita", v(y(a)), void 0, !0)
|
|
903
908
|
]),
|
|
904
909
|
key: "6"
|
|
905
910
|
} : void 0,
|
|
906
|
-
l(
|
|
911
|
+
l(o).footer ? {
|
|
907
912
|
name: "footer",
|
|
908
|
-
fn: i((
|
|
909
|
-
|
|
913
|
+
fn: i((a) => [
|
|
914
|
+
t(n.$slots, "footer", v(y(a)), void 0, !0)
|
|
910
915
|
]),
|
|
911
916
|
key: "7"
|
|
912
917
|
} : void 0
|
|
913
918
|
]), 1032, ["modelValue", "tamanho", "cor-topo", "cor-botao-confirmar", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "fechar-ao-confirmar", "desabilitar-confirmar", "carregando"]));
|
|
914
919
|
}
|
|
915
|
-
}), na = /* @__PURE__ */ q(Te, [["__scopeId", "data-v-
|
|
920
|
+
}), na = /* @__PURE__ */ q(Te, [["__scopeId", "data-v-c48d12e3"]]), Ee = { class: "mt-2 text-start d-inline-block" }, qe = { class: "form-check mb-0 user-select-none cursor-pointer" }, Me = ["disabled"], Ie = { class: "form-check-label" }, De = /* @__PURE__ */ E({
|
|
916
921
|
__name: "ModalConfirmacaoCheckbox",
|
|
917
922
|
props: {
|
|
918
923
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -932,17 +937,17 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
932
937
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
933
938
|
carregando: { type: Boolean, default: !1 }
|
|
934
939
|
},
|
|
935
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
936
|
-
setup(e, { emit:
|
|
937
|
-
const
|
|
940
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
941
|
+
setup(e, { emit: S }) {
|
|
942
|
+
const o = M(), d = e, c = S, s = G(!1), n = b({
|
|
938
943
|
get: () => d.modelValue,
|
|
939
|
-
set: (
|
|
944
|
+
set: (r) => c("update:modelValue", r)
|
|
940
945
|
});
|
|
941
|
-
return z(
|
|
942
|
-
|
|
943
|
-
}), (
|
|
944
|
-
modelValue:
|
|
945
|
-
"onUpdate:modelValue":
|
|
946
|
+
return z(n, (r) => {
|
|
947
|
+
r && (s.value = !1);
|
|
948
|
+
}), (r, a) => (f(), A(L, {
|
|
949
|
+
modelValue: n.value,
|
|
950
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => n.value = m),
|
|
946
951
|
tamanho: e.tamanho,
|
|
947
952
|
"cor-topo": e.corTema,
|
|
948
953
|
"cor-botao-confirmar": e.corTema,
|
|
@@ -958,12 +963,13 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
958
963
|
"fechar-ao-confirmar": e.fecharAoConfirmar,
|
|
959
964
|
"desabilitar-confirmar": !s.value || e.desabilitarConfirmar,
|
|
960
965
|
carregando: e.carregando,
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
966
|
+
onAbriu: a[2] || (a[2] = (m) => c("abriu")),
|
|
967
|
+
onConfirmar: a[3] || (a[3] = (m) => c("confirmar")),
|
|
968
|
+
onCancelar: a[4] || (a[4] = (m) => c("cancelar")),
|
|
969
|
+
onFechar: a[5] || (a[5] = (m) => c("fechar"))
|
|
964
970
|
}, I({
|
|
965
971
|
icone: i(() => [
|
|
966
|
-
|
|
972
|
+
t(r.$slots, "icone", {}, () => [
|
|
967
973
|
D(l(J), {
|
|
968
974
|
class: V(["icon mb-2 icone-destaque", e.corTema === "brand" ? "" : `text-${e.corTema}`]),
|
|
969
975
|
style: T(e.corTema === "brand" ? { color: "var(--color-brand, var(--tblr-primary))" } : {}),
|
|
@@ -975,7 +981,7 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
975
981
|
g("div", Ee, [
|
|
976
982
|
g("label", qe, [
|
|
977
983
|
P(g("input", {
|
|
978
|
-
"onUpdate:modelValue":
|
|
984
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => s.value = m),
|
|
979
985
|
class: "form-check-input",
|
|
980
986
|
type: "checkbox",
|
|
981
987
|
disabled: e.carregando
|
|
@@ -983,68 +989,68 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
983
989
|
[Q, s.value]
|
|
984
990
|
]),
|
|
985
991
|
g("span", Ie, [
|
|
986
|
-
|
|
987
|
-
|
|
992
|
+
t(r.$slots, "texto-checkbox", {}, () => [
|
|
993
|
+
p(x(e.textoCheckbox), 1)
|
|
988
994
|
], !0)
|
|
989
995
|
])
|
|
990
996
|
])
|
|
991
997
|
]),
|
|
992
|
-
|
|
998
|
+
t(r.$slots, "extra", {}, void 0, !0)
|
|
993
999
|
]),
|
|
994
1000
|
_: 2
|
|
995
1001
|
}, [
|
|
996
|
-
l(
|
|
1002
|
+
l(o).titulo ? {
|
|
997
1003
|
name: "titulo",
|
|
998
1004
|
fn: i(() => [
|
|
999
|
-
|
|
1005
|
+
t(r.$slots, "titulo", {}, void 0, !0)
|
|
1000
1006
|
]),
|
|
1001
1007
|
key: "0"
|
|
1002
1008
|
} : void 0,
|
|
1003
|
-
l(
|
|
1009
|
+
l(o).default ? {
|
|
1004
1010
|
name: "default",
|
|
1005
1011
|
fn: i(() => [
|
|
1006
|
-
|
|
1012
|
+
t(r.$slots, "default", {}, void 0, !0)
|
|
1007
1013
|
]),
|
|
1008
1014
|
key: "1"
|
|
1009
1015
|
} : void 0,
|
|
1010
|
-
l(
|
|
1016
|
+
l(o).conteudo ? {
|
|
1011
1017
|
name: "conteudo",
|
|
1012
1018
|
fn: i(() => [
|
|
1013
|
-
|
|
1019
|
+
t(r.$slots, "conteudo", {}, void 0, !0)
|
|
1014
1020
|
]),
|
|
1015
1021
|
key: "2"
|
|
1016
1022
|
} : void 0,
|
|
1017
|
-
l(
|
|
1023
|
+
l(o)["botoes-esquerda"] ? {
|
|
1018
1024
|
name: "botoes-esquerda",
|
|
1019
1025
|
fn: i((m) => [
|
|
1020
|
-
|
|
1026
|
+
t(r.$slots, "botoes-esquerda", v(y(m)), void 0, !0)
|
|
1021
1027
|
]),
|
|
1022
1028
|
key: "3"
|
|
1023
1029
|
} : void 0,
|
|
1024
|
-
l(
|
|
1030
|
+
l(o)["botoes-meio"] ? {
|
|
1025
1031
|
name: "botoes-meio",
|
|
1026
1032
|
fn: i((m) => [
|
|
1027
|
-
|
|
1033
|
+
t(r.$slots, "botoes-meio", v(y(m)), void 0, !0)
|
|
1028
1034
|
]),
|
|
1029
1035
|
key: "4"
|
|
1030
1036
|
} : void 0,
|
|
1031
|
-
l(
|
|
1037
|
+
l(o)["botoes-direita"] ? {
|
|
1032
1038
|
name: "botoes-direita",
|
|
1033
1039
|
fn: i((m) => [
|
|
1034
|
-
|
|
1040
|
+
t(r.$slots, "botoes-direita", v(y(m)), void 0, !0)
|
|
1035
1041
|
]),
|
|
1036
1042
|
key: "5"
|
|
1037
1043
|
} : void 0,
|
|
1038
|
-
l(
|
|
1044
|
+
l(o).footer ? {
|
|
1039
1045
|
name: "footer",
|
|
1040
1046
|
fn: i((m) => [
|
|
1041
|
-
|
|
1047
|
+
t(r.$slots, "footer", v(y(m)), void 0, !0)
|
|
1042
1048
|
]),
|
|
1043
1049
|
key: "6"
|
|
1044
1050
|
} : void 0
|
|
1045
1051
|
]), 1032, ["modelValue", "tamanho", "cor-topo", "cor-botao-confirmar", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "fechar-ao-confirmar", "desabilitar-confirmar", "carregando"]));
|
|
1046
1052
|
}
|
|
1047
|
-
}), la = /* @__PURE__ */ q(De, [["__scopeId", "data-v-
|
|
1053
|
+
}), la = /* @__PURE__ */ q(De, [["__scopeId", "data-v-e564346e"]]), Le = {
|
|
1048
1054
|
key: 0,
|
|
1049
1055
|
class: "form-label fw-medium"
|
|
1050
1056
|
}, Ue = {
|
|
@@ -1078,25 +1084,25 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1078
1084
|
fecharAoConfirmar: { type: Boolean, default: !1 },
|
|
1079
1085
|
carregando: { type: Boolean, default: !1 }
|
|
1080
1086
|
},
|
|
1081
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
1082
|
-
setup(e, { emit:
|
|
1083
|
-
const
|
|
1087
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
1088
|
+
setup(e, { emit: S }) {
|
|
1089
|
+
const o = M(), d = e, c = S, s = G(""), n = b({
|
|
1084
1090
|
get: () => d.modelValue,
|
|
1085
1091
|
set: (m) => c("update:modelValue", m)
|
|
1086
1092
|
});
|
|
1087
|
-
z(
|
|
1093
|
+
z(n, (m) => {
|
|
1088
1094
|
m && d.limparAoAbrir && (s.value = "");
|
|
1089
1095
|
});
|
|
1090
|
-
const
|
|
1096
|
+
const r = b(() => {
|
|
1091
1097
|
const m = s.value.trim();
|
|
1092
1098
|
return d.palavraChaveConfirmacao ? m !== d.palavraChaveConfirmacao : d.obrigatorio ? m.length === 0 : !1;
|
|
1093
1099
|
});
|
|
1094
|
-
function
|
|
1095
|
-
|
|
1100
|
+
function a() {
|
|
1101
|
+
r.value || d.carregando || (c("confirmar", s.value.trim()), d.fecharAoConfirmar && (n.value = !1));
|
|
1096
1102
|
}
|
|
1097
|
-
return (m,
|
|
1098
|
-
modelValue:
|
|
1099
|
-
"onUpdate:modelValue":
|
|
1103
|
+
return (m, $) => (f(), A(L, {
|
|
1104
|
+
modelValue: n.value,
|
|
1105
|
+
"onUpdate:modelValue": $[2] || ($[2] = (k) => n.value = k),
|
|
1100
1106
|
tamanho: e.tamanho,
|
|
1101
1107
|
"cor-topo": e.corTema,
|
|
1102
1108
|
"cor-botao-confirmar": e.corTema,
|
|
@@ -1110,14 +1116,15 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1110
1116
|
"fechar-ao-clicar-fora": e.fecharAoClicarFora,
|
|
1111
1117
|
"fechar-com-esc": e.fecharComEsc,
|
|
1112
1118
|
"fechar-ao-confirmar": !1,
|
|
1113
|
-
"desabilitar-confirmar":
|
|
1119
|
+
"desabilitar-confirmar": r.value,
|
|
1114
1120
|
carregando: e.carregando,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1121
|
+
onAbriu: $[3] || ($[3] = (k) => c("abriu")),
|
|
1122
|
+
onConfirmar: a,
|
|
1123
|
+
onCancelar: $[4] || ($[4] = (k) => c("cancelar")),
|
|
1124
|
+
onFechar: $[5] || ($[5] = (k) => c("fechar"))
|
|
1118
1125
|
}, I({
|
|
1119
1126
|
icone: i(() => [
|
|
1120
|
-
|
|
1127
|
+
t(m.$slots, "icone", {}, () => [
|
|
1121
1128
|
D(l(ee), {
|
|
1122
1129
|
class: V(["icon mb-2 icone-destaque", e.corTema === "brand" ? "" : `text-${e.corTema}`]),
|
|
1123
1130
|
style: T(e.corTema === "brand" ? { color: "var(--color-brand, var(--tblr-primary))" } : {}),
|
|
@@ -1127,12 +1134,12 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1127
1134
|
]),
|
|
1128
1135
|
conteudo: i(() => [
|
|
1129
1136
|
e.rotuloInput ? (f(), h("label", Le, [
|
|
1130
|
-
|
|
1137
|
+
p(x(e.rotuloInput) + " ", 1),
|
|
1131
1138
|
e.obrigatorio ? (f(), h("span", Ue, "*")) : C("", !0)
|
|
1132
1139
|
])) : C("", !0),
|
|
1133
1140
|
e.multiplasLinhas ? P((f(), h("textarea", {
|
|
1134
1141
|
key: 1,
|
|
1135
|
-
"onUpdate:modelValue":
|
|
1142
|
+
"onUpdate:modelValue": $[0] || ($[0] = (k) => s.value = k),
|
|
1136
1143
|
class: "form-control",
|
|
1137
1144
|
rows: e.linhasTextarea,
|
|
1138
1145
|
placeholder: e.placeholder,
|
|
@@ -1141,76 +1148,76 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1141
1148
|
[O, s.value]
|
|
1142
1149
|
]) : P((f(), h("input", {
|
|
1143
1150
|
key: 2,
|
|
1144
|
-
"onUpdate:modelValue":
|
|
1151
|
+
"onUpdate:modelValue": $[1] || ($[1] = (k) => s.value = k),
|
|
1145
1152
|
type: "text",
|
|
1146
1153
|
class: "form-control",
|
|
1147
1154
|
placeholder: e.placeholder,
|
|
1148
1155
|
disabled: e.carregando,
|
|
1149
|
-
onKeyup: W(
|
|
1156
|
+
onKeyup: W(a, ["enter"])
|
|
1150
1157
|
}, null, 40, Pe)), [
|
|
1151
1158
|
[O, s.value]
|
|
1152
1159
|
]),
|
|
1153
1160
|
e.palavraChaveConfirmacao ? (f(), h("small", Ne, [
|
|
1154
|
-
|
|
1161
|
+
$[6] || ($[6] = p(" Digite ", -1)),
|
|
1155
1162
|
g("strong", null, x(e.palavraChaveConfirmacao), 1),
|
|
1156
|
-
|
|
1163
|
+
$[7] || ($[7] = p(" para liberar a confirmação. ", -1))
|
|
1157
1164
|
])) : C("", !0),
|
|
1158
|
-
|
|
1165
|
+
t(m.$slots, "conteudo", {}, void 0, !0)
|
|
1159
1166
|
]),
|
|
1160
1167
|
_: 2
|
|
1161
1168
|
}, [
|
|
1162
|
-
l(
|
|
1169
|
+
l(o).titulo ? {
|
|
1163
1170
|
name: "titulo",
|
|
1164
1171
|
fn: i(() => [
|
|
1165
|
-
|
|
1172
|
+
t(m.$slots, "titulo", {}, void 0, !0)
|
|
1166
1173
|
]),
|
|
1167
1174
|
key: "0"
|
|
1168
1175
|
} : void 0,
|
|
1169
|
-
l(
|
|
1176
|
+
l(o).default ? {
|
|
1170
1177
|
name: "default",
|
|
1171
1178
|
fn: i(() => [
|
|
1172
|
-
|
|
1179
|
+
t(m.$slots, "default", {}, void 0, !0)
|
|
1173
1180
|
]),
|
|
1174
1181
|
key: "1"
|
|
1175
1182
|
} : void 0,
|
|
1176
|
-
l(
|
|
1183
|
+
l(o).extra ? {
|
|
1177
1184
|
name: "extra",
|
|
1178
1185
|
fn: i(() => [
|
|
1179
|
-
|
|
1186
|
+
t(m.$slots, "extra", {}, void 0, !0)
|
|
1180
1187
|
]),
|
|
1181
1188
|
key: "2"
|
|
1182
1189
|
} : void 0,
|
|
1183
|
-
l(
|
|
1190
|
+
l(o)["botoes-esquerda"] ? {
|
|
1184
1191
|
name: "botoes-esquerda",
|
|
1185
1192
|
fn: i((k) => [
|
|
1186
|
-
|
|
1193
|
+
t(m.$slots, "botoes-esquerda", v(y(k)), void 0, !0)
|
|
1187
1194
|
]),
|
|
1188
1195
|
key: "3"
|
|
1189
1196
|
} : void 0,
|
|
1190
|
-
l(
|
|
1197
|
+
l(o)["botoes-meio"] ? {
|
|
1191
1198
|
name: "botoes-meio",
|
|
1192
1199
|
fn: i((k) => [
|
|
1193
|
-
|
|
1200
|
+
t(m.$slots, "botoes-meio", v(y(k)), void 0, !0)
|
|
1194
1201
|
]),
|
|
1195
1202
|
key: "4"
|
|
1196
1203
|
} : void 0,
|
|
1197
|
-
l(
|
|
1204
|
+
l(o)["botoes-direita"] ? {
|
|
1198
1205
|
name: "botoes-direita",
|
|
1199
1206
|
fn: i((k) => [
|
|
1200
|
-
|
|
1207
|
+
t(m.$slots, "botoes-direita", v(y(k)), void 0, !0)
|
|
1201
1208
|
]),
|
|
1202
1209
|
key: "5"
|
|
1203
1210
|
} : void 0,
|
|
1204
|
-
l(
|
|
1211
|
+
l(o).footer ? {
|
|
1205
1212
|
name: "footer",
|
|
1206
1213
|
fn: i((k) => [
|
|
1207
|
-
|
|
1214
|
+
t(m.$slots, "footer", v(y(k)), void 0, !0)
|
|
1208
1215
|
]),
|
|
1209
1216
|
key: "6"
|
|
1210
1217
|
} : void 0
|
|
1211
1218
|
]), 1032, ["modelValue", "tamanho", "cor-topo", "cor-botao-confirmar", "titulo", "descricao", "texto-cancelar", "texto-confirmar", "mostrar-botao-cancelar", "mostrar-botao-confirmar", "mostrar-botao-fechar", "fechar-ao-clicar-fora", "fechar-com-esc", "desabilitar-confirmar", "carregando"]));
|
|
1212
1219
|
}
|
|
1213
|
-
}), ia = /* @__PURE__ */ q(Re, [["__scopeId", "data-v-
|
|
1220
|
+
}), ia = /* @__PURE__ */ q(Re, [["__scopeId", "data-v-4c009ca6"]]), je = { class: "modal-titulo-simples" }, Ke = { class: "modal-descricao-simples mt-1" }, He = {
|
|
1214
1221
|
key: 0,
|
|
1215
1222
|
class: "mt-3"
|
|
1216
1223
|
}, Oe = { class: "modal-footer" }, Ge = ["disabled"], Je = { class: "d-flex gap-2 align-items-center flex-wrap ms-auto" }, Qe = ["disabled"], We = {
|
|
@@ -1242,29 +1249,29 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1242
1249
|
desabilitarConfirmar: { type: Boolean, default: !1 },
|
|
1243
1250
|
carregando: { type: Boolean, default: !1 }
|
|
1244
1251
|
},
|
|
1245
|
-
emits: ["update:modelValue", "confirmar", "cancelar", "fechar"],
|
|
1246
|
-
setup(e, { emit:
|
|
1247
|
-
const
|
|
1252
|
+
emits: ["update:modelValue", "abriu", "confirmar", "cancelar", "fechar"],
|
|
1253
|
+
setup(e, { emit: S }) {
|
|
1254
|
+
const o = M(), d = e, c = S, s = b({
|
|
1248
1255
|
get: () => d.modelValue,
|
|
1249
1256
|
set: (u) => c("update:modelValue", u)
|
|
1250
|
-
}),
|
|
1257
|
+
}), n = b(() => !d.fecharAoClicarFora || d.carregando), r = b(() => !d.fecharComEsc || d.carregando), a = b(() => !d.corBarraTopo || d.corBarraTopo === "brand" ? "" : `bg-${d.corBarraTopo}`), m = b(() => d.corBarraTopo === "brand" ? { backgroundColor: "var(--color-brand, var(--tblr-primary, #206bc4))" } : {}), $ = b(() => d.corBotaoConfirmar === "brand" ? "btn-brand-custom text-white" : `btn-${d.corBotaoConfirmar}`), k = b(() => d.corBotaoConfirmar === "brand" ? {
|
|
1251
1258
|
backgroundColor: "var(--color-brand, var(--tblr-primary, #206bc4))",
|
|
1252
1259
|
borderColor: "var(--color-brand, var(--tblr-primary, #206bc4))"
|
|
1253
1260
|
} : {});
|
|
1254
|
-
function
|
|
1255
|
-
u.key === "Escape" && s.value && !
|
|
1261
|
+
function F(u) {
|
|
1262
|
+
u.key === "Escape" && s.value && !r.value && B();
|
|
1256
1263
|
}
|
|
1257
1264
|
z(
|
|
1258
1265
|
s,
|
|
1259
1266
|
(u) => {
|
|
1260
|
-
typeof window > "u"
|
|
1267
|
+
u && c("abriu"), !(typeof window > "u") && (u ? window.addEventListener("keydown", F) : window.removeEventListener("keydown", F));
|
|
1261
1268
|
},
|
|
1262
1269
|
{ immediate: !0 }
|
|
1263
1270
|
), N(() => {
|
|
1264
|
-
typeof window < "u" && window.removeEventListener("keydown",
|
|
1271
|
+
typeof window < "u" && window.removeEventListener("keydown", F);
|
|
1265
1272
|
});
|
|
1266
1273
|
function U() {
|
|
1267
|
-
|
|
1274
|
+
n.value || B();
|
|
1268
1275
|
}
|
|
1269
1276
|
function B() {
|
|
1270
1277
|
d.carregando || (s.value = !1, c("cancelar"), c("fechar"));
|
|
@@ -1272,7 +1279,7 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1272
1279
|
function w() {
|
|
1273
1280
|
d.desabilitarConfirmar || d.carregando || (c("confirmar"), d.fecharAoConfirmar && (s.value = !1));
|
|
1274
1281
|
}
|
|
1275
|
-
return (u, H) => (f(),
|
|
1282
|
+
return (u, H) => (f(), A(R, { to: "body" }, [
|
|
1276
1283
|
s.value ? (f(), h("div", {
|
|
1277
1284
|
key: 0,
|
|
1278
1285
|
class: "modal-overlay",
|
|
@@ -1285,10 +1292,10 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1285
1292
|
}, [
|
|
1286
1293
|
e.corBarraTopo ? (f(), h("div", {
|
|
1287
1294
|
key: 0,
|
|
1288
|
-
class: V(["modal-status-topo",
|
|
1295
|
+
class: V(["modal-status-topo", a.value]),
|
|
1289
1296
|
style: T(m.value)
|
|
1290
1297
|
}, null, 6)) : C("", !0),
|
|
1291
|
-
e.mostrarBotaoFechar ? (f(),
|
|
1298
|
+
e.mostrarBotaoFechar ? (f(), A(K, {
|
|
1292
1299
|
key: 1,
|
|
1293
1300
|
flutuante: "",
|
|
1294
1301
|
desabilitado: e.carregando,
|
|
@@ -1298,21 +1305,21 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1298
1305
|
class: V(["modal-body", { "pe-5": e.mostrarBotaoFechar }])
|
|
1299
1306
|
}, [
|
|
1300
1307
|
g("div", je, [
|
|
1301
|
-
|
|
1302
|
-
|
|
1308
|
+
t(u.$slots, "titulo", {}, () => [
|
|
1309
|
+
p(x(e.titulo), 1)
|
|
1303
1310
|
], !0)
|
|
1304
1311
|
]),
|
|
1305
1312
|
g("div", Ke, [
|
|
1306
|
-
|
|
1307
|
-
|
|
1313
|
+
t(u.$slots, "default", {}, () => [
|
|
1314
|
+
p(x(e.descricao), 1)
|
|
1308
1315
|
], !0)
|
|
1309
1316
|
]),
|
|
1310
|
-
l(
|
|
1311
|
-
|
|
1317
|
+
l(o).conteudo ? (f(), h("div", He, [
|
|
1318
|
+
t(u.$slots, "conteudo", {}, void 0, !0)
|
|
1312
1319
|
])) : C("", !0)
|
|
1313
1320
|
], 2),
|
|
1314
1321
|
g("div", Oe, [
|
|
1315
|
-
|
|
1322
|
+
t(u.$slots, "footer", {
|
|
1316
1323
|
cancelar: B,
|
|
1317
1324
|
confirmar: w
|
|
1318
1325
|
}, () => [
|
|
@@ -1324,19 +1331,19 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1324
1331
|
onClick: B
|
|
1325
1332
|
}, x(e.textoCancelar), 9, Ge)) : C("", !0),
|
|
1326
1333
|
g("div", Je, [
|
|
1327
|
-
|
|
1334
|
+
t(u.$slots, "botoes-extras", {
|
|
1328
1335
|
cancelar: B,
|
|
1329
1336
|
confirmar: w
|
|
1330
1337
|
}, void 0, !0),
|
|
1331
1338
|
g("button", {
|
|
1332
1339
|
type: "button",
|
|
1333
|
-
class: V(["btn text-nowrap",
|
|
1340
|
+
class: V(["btn text-nowrap", $.value]),
|
|
1334
1341
|
style: T(k.value),
|
|
1335
1342
|
disabled: e.desabilitarConfirmar || e.carregando,
|
|
1336
1343
|
onClick: w
|
|
1337
1344
|
}, [
|
|
1338
1345
|
e.carregando ? (f(), h("span", We)) : C("", !0),
|
|
1339
|
-
|
|
1346
|
+
p(" " + x(e.textoConfirmar), 1)
|
|
1340
1347
|
], 14, Qe)
|
|
1341
1348
|
])
|
|
1342
1349
|
], !0)
|
|
@@ -1345,7 +1352,7 @@ const ae = ["title", "aria-label", "disabled"], oe = /* @__PURE__ */ E({
|
|
|
1345
1352
|
], 32)) : C("", !0)
|
|
1346
1353
|
]));
|
|
1347
1354
|
}
|
|
1348
|
-
}), da = /* @__PURE__ */ q(Xe, [["__scopeId", "data-v-
|
|
1355
|
+
}), da = /* @__PURE__ */ q(Xe, [["__scopeId", "data-v-e1b2d0ce"]]);
|
|
1349
1356
|
export {
|
|
1350
1357
|
K as BotaoFechar,
|
|
1351
1358
|
ra as ModalAviso,
|