sprof 0.1.52 → 0.1.54
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/sprof.js +8 -9
- package/dist/sprof.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sprof.js
CHANGED
|
@@ -1475,7 +1475,7 @@ class ie {
|
|
|
1475
1475
|
static BuildSafeUrl(e, i, n) {
|
|
1476
1476
|
try {
|
|
1477
1477
|
const s = new URL(e);
|
|
1478
|
-
return
|
|
1478
|
+
return i && (s.port = i.toString()), Ps(s.toString(), n);
|
|
1479
1479
|
} catch {
|
|
1480
1480
|
throw new Error(`Invalid host URL: ${e}`);
|
|
1481
1481
|
}
|
|
@@ -4508,7 +4508,7 @@ var ps = /* @__PURE__ */ ((t) => (t.ContentType = "Content-Type", t.Token = "tok
|
|
|
4508
4508
|
const ue = class ue {
|
|
4509
4509
|
//SetupV
|
|
4510
4510
|
static Setup(e = "http://localhost", i, n = "api") {
|
|
4511
|
-
|
|
4511
|
+
this.baseUrl = ie.BuildSafeUrl(e, i, n), this.host = e, this.apiVersion = n;
|
|
4512
4512
|
}
|
|
4513
4513
|
static newWebSocket(e) {
|
|
4514
4514
|
const i = this.host.replace("http", "ws") + "/ws/" + e;
|
|
@@ -4744,7 +4744,7 @@ class de {
|
|
|
4744
4744
|
this.AppendToAll((o = r.data) == null ? void 0 : o.items);
|
|
4745
4745
|
return;
|
|
4746
4746
|
}
|
|
4747
|
-
|
|
4747
|
+
this.SetAllWithCount(r.data);
|
|
4748
4748
|
}
|
|
4749
4749
|
}
|
|
4750
4750
|
async Create(e) {
|
|
@@ -4795,10 +4795,10 @@ class de {
|
|
|
4795
4795
|
// COMMITS //
|
|
4796
4796
|
// ======= //
|
|
4797
4797
|
SetAll(e) {
|
|
4798
|
-
this.items.splice(0, this.items.length),
|
|
4798
|
+
this.items.splice(0, this.items.length), e && this.items.push(...e.map((i) => new this.classConstructor(i)));
|
|
4799
4799
|
}
|
|
4800
4800
|
SetAllWithCount(e) {
|
|
4801
|
-
|
|
4801
|
+
this.SetAll(e.items), this.count.value = e.count;
|
|
4802
4802
|
}
|
|
4803
4803
|
RemoveItem(e) {
|
|
4804
4804
|
const i = this.items.findIndex((n) => n.id === e);
|
|
@@ -5170,8 +5170,7 @@ const th = (() => {
|
|
|
5170
5170
|
e.value = !0;
|
|
5171
5171
|
try {
|
|
5172
5172
|
r && await r();
|
|
5173
|
-
} catch
|
|
5174
|
-
console.log(o);
|
|
5173
|
+
} catch {
|
|
5175
5174
|
return;
|
|
5176
5175
|
}
|
|
5177
5176
|
};
|
|
@@ -7616,7 +7615,7 @@ const ts = /* @__PURE__ */ new WeakMap(), Qm = (t, e) => {
|
|
|
7616
7615
|
emits: /* @__PURE__ */ Oe(["blur", "input", "focus"], ["update:modelValue"]),
|
|
7617
7616
|
setup(t, { emit: e }) {
|
|
7618
7617
|
const i = e, n = kt(t, "modelValue"), s = (r) => {
|
|
7619
|
-
r.inputType === "insertText" &&
|
|
7618
|
+
r.inputType === "insertText" && i("input", n.value);
|
|
7620
7619
|
};
|
|
7621
7620
|
return (r, o) => (g(), b("div", {
|
|
7622
7621
|
class: "text-field",
|
|
@@ -7655,7 +7654,7 @@ const ts = /* @__PURE__ */ new WeakMap(), Qm = (t, e) => {
|
|
|
7655
7654
|
], 4)
|
|
7656
7655
|
], 4));
|
|
7657
7656
|
}
|
|
7658
|
-
}), Dn = /* @__PURE__ */ A(ng, [["__scopeId", "data-v-
|
|
7657
|
+
}), Dn = /* @__PURE__ */ A(ng, [["__scopeId", "data-v-69fc2ea7"]]), pa = /* @__PURE__ */ $({
|
|
7659
7658
|
__name: "PInputDate",
|
|
7660
7659
|
props: /* @__PURE__ */ Oe({
|
|
7661
7660
|
placeholder: {
|