@arbocollab/arbo-plugin-item-table 0.1.257 → 0.1.258
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/lib/es/index.es.js +12 -10
- package/lib/style.css +1 -1
- package/lib/umd/index.umd.js +3 -3
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -28465,18 +28465,18 @@ const Wee = ["type", "value", "placeholder", "max", "min", "disabled", "readonly
|
|
|
28465
28465
|
}
|
|
28466
28466
|
);
|
|
28467
28467
|
const h = q(() => l.value.length > 0), f = {
|
|
28468
|
-
text: (I) => I.slice(0, r.maxLength
|
|
28468
|
+
text: (I) => I.slice(0, r.maxLength ?? 255),
|
|
28469
28469
|
number: (I) => {
|
|
28470
28470
|
const z = r.minValue < 0;
|
|
28471
28471
|
let ee = I.replace(z ? /[^\d.-]/g : /[^\d.]/g, "");
|
|
28472
28472
|
const me = ee.split(".");
|
|
28473
28473
|
me.length > 2 && (ee = me[0] + "." + me.slice(1).join("")), ee = ee.replace(/-/g, (ae, _) => _ === 0 ? ae : "");
|
|
28474
28474
|
const de = ee.startsWith("-") ? "-" : "", oe = ee.replace("-", "").split(".");
|
|
28475
|
-
return oe[0].length > 17 && (oe[0] = oe[0].substring(0, 17)), r.maxDecimalChar !== void 0 && oe.length > 1 && (oe[1] = oe[1].substring(0, r.maxDecimalChar)), ee = de + oe.join("."), ee;
|
|
28475
|
+
return oe[0].length > 17 && (oe[0] = oe[0].substring(0, 17)), r.maxDecimalChar !== void 0 && oe.length > 1 && (oe[1] = oe[1].substring(0, r.maxDecimalChar)), ee = de + oe.join("."), r.maxLength !== void 0 && ee.length > r.maxLength && (ee = ee.slice(0, r.maxLength).replace(/\.$/, ""), ee === "-" && (ee = "")), ee;
|
|
28476
28476
|
},
|
|
28477
|
-
email: (I) => I.replace(/\s/g, "").slice(0, r.maxLength
|
|
28478
|
-
url: (I) => I.replace(/\s/g, "").slice(0, r.maxLength
|
|
28479
|
-
tel: (I) => I.replace(/[^\d+\-() ]/g, "").slice(0, r.maxLength
|
|
28477
|
+
email: (I) => I.replace(/\s/g, "").slice(0, r.maxLength ?? 255),
|
|
28478
|
+
url: (I) => I.replace(/\s/g, "").slice(0, r.maxLength ?? 255),
|
|
28479
|
+
tel: (I) => I.replace(/[^\d+\-() ]/g, "").slice(0, r.maxLength ?? 20)
|
|
28480
28480
|
}, p = (I) => {
|
|
28481
28481
|
const z = f[r.type];
|
|
28482
28482
|
return z ? z(I) : I;
|
|
@@ -28496,9 +28496,10 @@ const Wee = ["type", "value", "placeholder", "max", "min", "disabled", "readonly
|
|
|
28496
28496
|
}
|
|
28497
28497
|
if (ee.value !== j) {
|
|
28498
28498
|
const oe = Math.max(0, xe.length - j.length);
|
|
28499
|
-
ee.value = j
|
|
28500
|
-
|
|
28501
|
-
|
|
28499
|
+
if (ee.value = j, ee.selectionStart !== null) {
|
|
28500
|
+
const ae = Math.max(0, Math.min(me - oe, j.length));
|
|
28501
|
+
ee.setSelectionRange(ae, ae);
|
|
28502
|
+
}
|
|
28502
28503
|
}
|
|
28503
28504
|
de !== j && (l.value = j, i("input", j), r.autoEmit && g(j));
|
|
28504
28505
|
}, y = (I) => {
|
|
@@ -50415,6 +50416,7 @@ const Upe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAPoAgMAAAAwzTx3A
|
|
|
50415
50416
|
"model-value": f.value,
|
|
50416
50417
|
type: "number",
|
|
50417
50418
|
"max-decimal-char": 0,
|
|
50419
|
+
maxLength: 4,
|
|
50418
50420
|
"show-clear": !1,
|
|
50419
50421
|
ref_key: "counterRef",
|
|
50420
50422
|
ref: i,
|
|
@@ -50526,7 +50528,7 @@ const Upe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAPoAgMAAAAwzTx3A
|
|
|
50526
50528
|
])
|
|
50527
50529
|
], 512));
|
|
50528
50530
|
}
|
|
50529
|
-
}), uge = /* @__PURE__ */ Et(lge, [["__scopeId", "data-v-
|
|
50531
|
+
}), uge = /* @__PURE__ */ Et(lge, [["__scopeId", "data-v-9b837594"]]), ZP = {
|
|
50530
50532
|
text: Ya,
|
|
50531
50533
|
id: void 0,
|
|
50532
50534
|
assignees: qie,
|
|
@@ -92035,7 +92037,7 @@ const jIe = {
|
|
|
92035
92037
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
92036
92038
|
}, OPe = {
|
|
92037
92039
|
$style: FPe
|
|
92038
|
-
}, MPe = /* @__PURE__ */ Et(DPe, [["__cssModules", OPe]]), MG = "0.1.
|
|
92040
|
+
}, MPe = /* @__PURE__ */ Et(DPe, [["__cssModules", OPe]]), MG = "0.1.258", NPe = { key: 0 }, LPe = /* @__PURE__ */ it({
|
|
92039
92041
|
__name: "app",
|
|
92040
92042
|
setup(e) {
|
|
92041
92043
|
const t = q(() => n.id.length === 0 || n.workspaceId.length === 0), n = /* @__PURE__ */ Vo({
|