@luizleon/sf.prefeiturasp.vuecomponents 6.0.41 → 6.0.43
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/sf.prefeiturasp.vuecomponents.js +30 -14
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/types/components/copiar-texto/CopiarTexto.vue.d.ts +11 -5
- package/dist/types/components/copiar-texto/CopiarTexto.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7296,16 +7296,31 @@ const rr = /* @__PURE__ */ np(ap), Up = (t, e = {}) => {
|
|
|
7296
7296
|
inheritAttrs: !1,
|
|
7297
7297
|
__name: "CopiarTexto",
|
|
7298
7298
|
props: {
|
|
7299
|
-
texto: {}
|
|
7299
|
+
texto: {},
|
|
7300
|
+
visible: { type: Boolean, default: !0 },
|
|
7301
|
+
class: {},
|
|
7302
|
+
style: { type: [Boolean, null, String, Object, Array] },
|
|
7303
|
+
disabled: { type: Boolean },
|
|
7304
|
+
loading: { type: Boolean },
|
|
7305
|
+
size: {},
|
|
7306
|
+
dot: { type: Boolean },
|
|
7307
|
+
dotColor: {},
|
|
7308
|
+
filled: { type: Boolean },
|
|
7309
|
+
buttonProps: {},
|
|
7310
|
+
color: {}
|
|
7300
7311
|
},
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7312
|
+
emits: ["click"],
|
|
7313
|
+
setup(t, { emit: e }) {
|
|
7314
|
+
const n = t, r = e, o = Is(), a = R(!1);
|
|
7315
|
+
let l;
|
|
7316
|
+
const s = () => {
|
|
7317
|
+
const c = { ...o, ...n };
|
|
7318
|
+
return Reflect.deleteProperty(c, "texto"), c;
|
|
7319
|
+
}, i = async (c) => {
|
|
7320
|
+
if (r("click", c), !!n.texto)
|
|
7306
7321
|
try {
|
|
7307
|
-
await navigator.clipboard.writeText(
|
|
7308
|
-
|
|
7322
|
+
await navigator.clipboard.writeText(n.texto), a.value = !0, l && window.clearTimeout(l), l = window.setTimeout(() => {
|
|
7323
|
+
a.value = !1, l = void 0;
|
|
7309
7324
|
}, 3e3);
|
|
7310
7325
|
} catch {
|
|
7311
7326
|
console.error(
|
|
@@ -7314,18 +7329,19 @@ const rr = /* @__PURE__ */ np(ap), Up = (t, e = {}) => {
|
|
|
7314
7329
|
}
|
|
7315
7330
|
};
|
|
7316
7331
|
return hr(() => {
|
|
7317
|
-
|
|
7318
|
-
}), (
|
|
7332
|
+
l && window.clearTimeout(l);
|
|
7333
|
+
}), (c, u) => a.value ? (_(), ee(De, O({ key: 0 }, s(), {
|
|
7319
7334
|
icon: "check_circle",
|
|
7320
7335
|
filled: !0,
|
|
7321
7336
|
button: !1,
|
|
7322
7337
|
color: "success",
|
|
7323
|
-
tooltip: "Copiado"
|
|
7324
|
-
|
|
7338
|
+
tooltip: "Copiado",
|
|
7339
|
+
onClick: u[0] || (u[0] = (m) => r("click", m))
|
|
7340
|
+
}), null, 16)) : (_(), ee(De, O({ key: 1 }, s(), {
|
|
7325
7341
|
icon: "content_copy",
|
|
7326
7342
|
button: !0,
|
|
7327
7343
|
tooltip: "Copiar",
|
|
7328
|
-
onClick:
|
|
7344
|
+
onClick: i
|
|
7329
7345
|
}), null, 16));
|
|
7330
7346
|
}
|
|
7331
7347
|
});
|
|
@@ -8524,13 +8540,13 @@ export {
|
|
|
8524
8540
|
us as AppError,
|
|
8525
8541
|
Ep as AppResult,
|
|
8526
8542
|
Jp as BaseAppState,
|
|
8527
|
-
Gp as CopiarTexto,
|
|
8528
8543
|
Qp as EnsureUniqueRouteNames,
|
|
8529
8544
|
th as GetEnvironmentAsync,
|
|
8530
8545
|
Ha as RemovePreloader,
|
|
8531
8546
|
oo as RestorePreloader,
|
|
8532
8547
|
kn as SfButton,
|
|
8533
8548
|
Hp as SfContent,
|
|
8549
|
+
Gp as SfCopiarTexto,
|
|
8534
8550
|
qs as SfDrawer,
|
|
8535
8551
|
Mr as SfHelpButton,
|
|
8536
8552
|
De as SfIcon,
|