scope360-core 0.0.154 → 0.0.156

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.
@@ -1316,18 +1316,20 @@ const fw = {
1316
1316
  modelModifiers: {}
1317
1317
  }),
1318
1318
  emits: /* @__PURE__ */ Lt(["input", "enter", "save"], ["update:modelValue"]),
1319
- setup(t, { emit: e }) {
1320
- const { error: n } = Eb(), s = e, i = un(t, "modelValue"), r = t, a = U(() => r.width ? { width: r.width } : null), o = Q(!1), l = (u) => {
1321
- navigator.clipboard.writeText(u).then(() => {
1322
- o.value = !0;
1323
- const c = setTimeout(() => {
1324
- o.value = !1, clearTimeout(c);
1319
+ setup(t, { expose: e, emit: n }) {
1320
+ const { error: s } = Eb(), i = n, r = Q(null), a = un(t, "modelValue"), o = t, l = U(() => o.width ? { width: o.width } : null), u = Q(!1), c = () => {
1321
+ r.value.focus();
1322
+ }, d = (h) => {
1323
+ navigator.clipboard.writeText(h).then(() => {
1324
+ u.value = !0;
1325
+ const f = setTimeout(() => {
1326
+ u.value = !1, clearTimeout(f);
1325
1327
  }, 3e3);
1326
- }).catch((c) => {
1327
- n(c);
1328
+ }).catch((f) => {
1329
+ s(f);
1328
1330
  });
1329
1331
  };
1330
- return (u, c) => (D(), E("div", {
1332
+ return e({ focus: c }), (h, f) => (D(), E("div", {
1331
1333
  class: de(["scope-input", { "-have-icon": t.icon, "-full-width": t.fullWidth, "-clear-button": t.haveClearButton || t.haveCopyButton, "-only-search": t.haveClearButton || t.haveCopyButton && !t.icon }])
1332
1334
  }, [
1333
1335
  t.label ? (D(), E("div", pw, ae(t.label), 1)) : H("", !0),
@@ -1336,19 +1338,21 @@ const fw = {
1336
1338
  }, [
1337
1339
  t.sideSign ? (D(), E("div", gw, ae(t.sideSign), 1)) : H("", !0),
1338
1340
  Xt(P("input", {
1341
+ ref_key: "inputRef",
1342
+ ref: r,
1339
1343
  disabled: t.disabled,
1340
1344
  class: de([`-${t.size}`, { "-invalid": t.invalid, "-side-sign": !!t.sideSign }]),
1341
- "onUpdate:modelValue": c[0] || (c[0] = (d) => i.value = d),
1342
- style: Ct(a.value),
1345
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => a.value = p),
1346
+ style: Ct(l.value),
1343
1347
  placeholder: t.placeholder,
1344
1348
  veeBind: t.veeBind,
1345
- onInput: c[1] || (c[1] = (d) => s("input")),
1346
- onKeyup: c[2] || (c[2] = ge((d) => s("enter"), ["enter"])),
1349
+ onInput: f[1] || (f[1] = (p) => i("input")),
1350
+ onKeyup: f[2] || (f[2] = ge((p) => i("enter"), ["enter"])),
1347
1351
  maxlength: t.maxLength,
1348
1352
  pattern: t.pattern,
1349
1353
  type: t.type
1350
1354
  }, null, 46, yw), [
1351
- [Fb, i.value]
1355
+ [Fb, a.value]
1352
1356
  ])
1353
1357
  ], 2),
1354
1358
  P("div", {
@@ -1367,29 +1371,29 @@ const fw = {
1367
1371
  key: 1,
1368
1372
  class: "scope-input__clear",
1369
1373
  icon: "cross",
1370
- onClick: c[3] || (c[3] = (d) => i.value = "")
1374
+ onClick: f[3] || (f[3] = (p) => a.value = "")
1371
1375
  })) : H("", !0),
1372
- t.haveCopyButton && !o.value ? (D(), pe(M(tt), {
1376
+ t.haveCopyButton && !u.value ? (D(), pe(M(tt), {
1373
1377
  key: 2,
1374
1378
  class: "scope-input__clear",
1375
1379
  icon: "copy",
1376
- onClick: c[4] || (c[4] = (d) => l(i.value))
1380
+ onClick: f[4] || (f[4] = (p) => d(a.value))
1377
1381
  })) : H("", !0),
1378
- t.haveCopyButton && o.value ? (D(), pe(M(tt), {
1382
+ t.haveCopyButton && u.value ? (D(), pe(M(tt), {
1379
1383
  key: 3,
1380
1384
  class: "scope-input__clear",
1381
1385
  icon: "checked"
1382
1386
  })) : H("", !0),
1383
- t.hasSave && i.value.length ? (D(), E("div", {
1387
+ t.hasSave && a.value.length ? (D(), E("div", {
1384
1388
  key: 4,
1385
1389
  class: "scope-input__save",
1386
- onClick: c[5] || (c[5] = (d) => s("save"))
1390
+ onClick: f[5] || (f[5] = (p) => i("save"))
1387
1391
  }, "Save")) : H("", !0)
1388
1392
  ], 2),
1389
1393
  t.invalid ? (D(), E("div", _w, ae(t.errorMessage), 1)) : H("", !0)
1390
1394
  ], 2));
1391
1395
  }
1392
- }, bV = /* @__PURE__ */ Ue(vw, [["__scopeId", "data-v-4f314610"]]), bw = { class: "scope-radio-label" }, ww = ["value"], kw = { class: "scope-text" }, xw = {
1396
+ }, bV = /* @__PURE__ */ Ue(vw, [["__scopeId", "data-v-235732f5"]]), bw = { class: "scope-radio-label" }, ww = ["value"], kw = { class: "scope-text" }, xw = {
1393
1397
  __name: "Radio",
1394
1398
  props: /* @__PURE__ */ Lt({
1395
1399
  value: String | Object | Boolean | Number,