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