scope360-core 0.0.149 → 0.0.150

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.
@@ -1309,12 +1309,13 @@ const fw = {
1309
1309
  default: "text",
1310
1310
  type: String
1311
1311
  },
1312
- pattern: String
1312
+ pattern: String,
1313
+ hasSave: Boolean
1313
1314
  }, {
1314
1315
  modelValue: {},
1315
1316
  modelModifiers: {}
1316
1317
  }),
1317
- emits: /* @__PURE__ */ Lt(["input", "enter"], ["update:modelValue"]),
1318
+ emits: /* @__PURE__ */ Lt(["input", "enter", "save"], ["update:modelValue"]),
1318
1319
  setup(t, { emit: e }) {
1319
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) => {
1320
1321
  navigator.clipboard.writeText(u).then(() => {
@@ -1354,7 +1355,7 @@ const fw = {
1354
1355
  class: de([
1355
1356
  "scope-input__icon-wrapper",
1356
1357
  `-${t.size}`,
1357
- { "-only-search": t.haveClearButton || t.haveCopyButton && !t.icon, "-with-label": !!t.label }
1358
+ { "-only-search": t.haveClearButton || t.hasSave || t.haveCopyButton && !t.icon, "-with-label": !!t.label }
1358
1359
  ])
1359
1360
  }, [
1360
1361
  t.icon ? (D(), pe(M(tt), {
@@ -1378,12 +1379,17 @@ const fw = {
1378
1379
  key: 3,
1379
1380
  class: "scope-input__clear",
1380
1381
  icon: "checked"
1381
- })) : H("", !0)
1382
+ })) : H("", !0),
1383
+ t.hasSave && i.value.length ? (D(), E("div", {
1384
+ key: 4,
1385
+ class: "scope-input__save",
1386
+ onClick: c[5] || (c[5] = (d) => s("save"))
1387
+ }, "Save")) : H("", !0)
1382
1388
  ], 2),
1383
1389
  t.invalid ? (D(), E("div", _w, ae(t.errorMessage), 1)) : H("", !0)
1384
1390
  ], 2));
1385
1391
  }
1386
- }, bV = /* @__PURE__ */ Ue(vw, [["__scopeId", "data-v-2149bd6b"]]), bw = { class: "scope-radio-label" }, ww = ["value"], kw = { class: "scope-text" }, xw = {
1392
+ }, bV = /* @__PURE__ */ Ue(vw, [["__scopeId", "data-v-4f314610"]]), bw = { class: "scope-radio-label" }, ww = ["value"], kw = { class: "scope-text" }, xw = {
1387
1393
  __name: "Radio",
1388
1394
  props: /* @__PURE__ */ Lt({
1389
1395
  value: String | Object | Boolean | Number,