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