@luizleon/sf.prefeiturasp.vuecomponents 6.0.41 → 6.0.42

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