@ahoo-wang/wow-view-engine 9.9.0 → 10.0.0-alpha.4
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/README.md +27 -28
- package/README.zh-CN.md +27 -28
- package/dist/{actions-C0tWfkL5.js → actions-CgaL6eEe.js} +25 -22
- package/dist/actions-CgaL6eEe.js.map +1 -0
- package/dist/analysis/compile.d.ts +1 -1
- package/dist/analysis/compile.d.ts.map +1 -1
- package/dist/analysis/serverLines.d.ts +1 -1
- package/dist/analysis/serverLines.d.ts.map +1 -1
- package/dist/analysis/top.d.ts +1 -1
- package/dist/analysis/top.d.ts.map +1 -1
- package/dist/capabilities/analysis.d.ts +1 -1
- package/dist/capabilities/analysis.d.ts.map +1 -1
- package/dist/capabilities/cache.d.ts +18 -1
- package/dist/capabilities/cache.d.ts.map +1 -1
- package/dist/capabilities/fields.d.ts +1 -1
- package/dist/capabilities/fields.d.ts.map +1 -1
- package/dist/capabilities/limits.d.ts +1 -1
- package/dist/capabilities/limits.d.ts.map +1 -1
- package/dist/capabilities/match.d.ts +1 -1
- package/dist/capabilities/match.d.ts.map +1 -1
- package/dist/capabilities/narrow.d.ts +1 -1
- package/dist/capabilities/narrow.d.ts.map +1 -1
- package/dist/capabilities/open.d.ts +1 -1
- package/dist/capabilities/open.d.ts.map +1 -1
- package/dist/capabilities/record.d.ts +1 -1
- package/dist/capabilities/record.d.ts.map +1 -1
- package/dist/{clickDraft-CHI2bGry.js → clickDraft-CdUtkL4y.js} +2 -2
- package/dist/{clickDraft-CHI2bGry.js.map → clickDraft-CdUtkL4y.js.map} +1 -1
- package/dist/filter/compile.d.ts +1 -1
- package/dist/filter/compile.d.ts.map +1 -1
- package/dist/filter/fieldKind.d.ts +1 -1
- package/dist/filter/fieldKind.d.ts.map +1 -1
- package/dist/filter/kinds/dateTime.d.ts.map +1 -1
- package/dist/filter/kinds/deletion.d.ts +1 -1
- package/dist/filter/kinds/deletion.d.ts.map +1 -1
- package/dist/filter/kinds/duration.d.ts +1 -1
- package/dist/filter/kinds/duration.d.ts.map +1 -1
- package/dist/filter/kinds/entries.d.ts +1 -1
- package/dist/filter/kinds/entries.d.ts.map +1 -1
- package/dist/filter/kinds/presence.d.ts +1 -1
- package/dist/filter/kinds/presence.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +157 -112
- package/dist/index.js.map +1 -1
- package/dist/model/analysis.d.ts +1 -1
- package/dist/model/analysis.d.ts.map +1 -1
- package/dist/model/definition.d.ts +1 -1
- package/dist/model/definition.d.ts.map +1 -1
- package/dist/model/field.d.ts +1 -1
- package/dist/model/field.d.ts.map +1 -1
- package/dist/model/filter.d.ts +1 -1
- package/dist/model/filter.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/useDatasets.d.ts +33 -0
- package/dist/react/useDatasets.d.ts.map +1 -0
- package/dist/{react-CNRANfkk.js → react-BuHt29n6.js} +963 -918
- package/dist/react-BuHt29n6.js.map +1 -0
- package/dist/react.js +3 -3
- package/dist/record/compile.d.ts +1 -1
- package/dist/record/compile.d.ts.map +1 -1
- package/dist/record/kanban.d.ts +1 -1
- package/dist/record/kanban.d.ts.map +1 -1
- package/dist/record/project.d.ts +1 -1
- package/dist/record/project.d.ts.map +1 -1
- package/dist/runtime/admission.d.ts +1 -1
- package/dist/runtime/admission.d.ts.map +1 -1
- package/dist/runtime/dashboardRuntime.d.ts +5 -0
- package/dist/runtime/dashboardRuntime.d.ts.map +1 -1
- package/dist/runtime/datasetResources.d.ts +89 -14
- package/dist/runtime/datasetResources.d.ts.map +1 -1
- package/dist/runtime/define/analysis.d.ts +1 -1
- package/dist/runtime/define/analysis.d.ts.map +1 -1
- package/dist/runtime/define/defineDataset.d.ts +1 -1
- package/dist/runtime/define/defineDataset.d.ts.map +1 -1
- package/dist/runtime/define/defineView.d.ts +1 -1
- package/dist/runtime/define/defineView.d.ts.map +1 -1
- package/dist/runtime/define/fields.d.ts +1 -1
- package/dist/runtime/define/fields.d.ts.map +1 -1
- package/dist/runtime/environment.d.ts +4 -4
- package/dist/runtime/environment.d.ts.map +1 -1
- package/dist/runtime/failure/queryFailure.d.ts +1 -1
- package/dist/runtime/failure/sourceReason.d.ts +20 -24
- package/dist/runtime/failure/sourceReason.d.ts.map +1 -1
- package/dist/runtime/queryWeight.d.ts +1 -1
- package/dist/runtime/queryWeight.d.ts.map +1 -1
- package/dist/runtime/source.d.ts +5 -3
- package/dist/runtime/source.d.ts.map +1 -1
- package/dist/runtime/viewEngine.d.ts +7 -0
- package/dist/runtime/viewEngine.d.ts.map +1 -1
- package/dist/store/localStorageSnapshot.d.ts +1 -3
- package/dist/store/localStorageSnapshot.d.ts.map +1 -1
- package/dist/testing/aggregate.d.ts +1 -1
- package/dist/testing/aggregate.d.ts.map +1 -1
- package/dist/testing/calendar.d.ts +1 -1
- package/dist/testing/calendar.d.ts.map +1 -1
- package/dist/testing/expression.d.ts +1 -1
- package/dist/testing/expression.d.ts.map +1 -1
- package/dist/testing/filter.d.ts +1 -1
- package/dist/testing/filter.d.ts.map +1 -1
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/ui/DatasetWorkbench.d.ts +45 -0
- package/dist/ui/DatasetWorkbench.d.ts.map +1 -0
- package/dist/ui/datasetBindings.d.ts +27 -0
- package/dist/ui/datasetBindings.d.ts.map +1 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/messages/datasets.d.ts +12 -0
- package/dist/ui/messages/datasets.d.ts.map +1 -0
- package/dist/ui/messages/en.d.ts +6 -0
- package/dist/ui/messages/en.d.ts.map +1 -1
- package/dist/ui/messages/view.d.ts +1 -0
- package/dist/ui/messages/view.d.ts.map +1 -1
- package/dist/ui/messages/zh-CN.d.ts.map +1 -1
- package/dist/ui.js +10821 -10667
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-CCAMk8vM.js → viewRuntimeTypes-B3B6hbXr.js} +36 -29
- package/dist/viewRuntimeTypes-B3B6hbXr.js.map +1 -0
- package/package.json +6 -7
- package/dist/actions-C0tWfkL5.js.map +0 -1
- package/dist/react-CNRANfkk.js.map +0 -1
- package/dist/viewRuntimeTypes-CCAMk8vM.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $a as e, $i as t, $r as n, A as r, Ao as i, At as a, B as o, Ba as s, Co as c, Cs as l, D as u, Da as d, Dt as f, E as p, Ea as m, Ei as h, Eo as g, Et as ee, F as te, Fn as ne, Ft as re, G as ie, Ga as ae, Gt as _, Ha as v, Hr as oe, Hs as se, I as ce, Ja as le, Jn as y, Jr as ue, Jt as de, K as b, Ka as fe, Kn as pe, Kr as me, L as he, La as x, Ln as ge, Ls as S, Lt as
|
|
2
|
-
import { AggregationGroupType as un, QueryErrorCodes as R } from "@ahoo-wang/wow-client";
|
|
1
|
+
import { $a as e, $i as t, $r as n, A as r, Ao as i, At as a, B as o, Ba as s, Co as c, Cs as l, D as u, Da as d, Dt as f, E as p, Ea as m, Ei as h, Eo as g, Et as ee, F as te, Fn as ne, Ft as re, G as ie, Ga as ae, Gt as _, Ha as v, Hr as oe, Hs as se, I as ce, Ja as le, Jn as y, Jr as ue, Jt as de, K as b, Ka as fe, Kn as pe, Kr as me, L as he, La as x, Ln as ge, Ls as S, Lt as _e, M as ve, Mn as ye, Mo as C, N as be, Nn as xe, No as Se, O as Ce, Oa as w, Oi as we, Os as Te, P as Ee, Po as De, Pt as Oe, Qa as ke, Qi as Ae, Qs as je, Qt as Me, R as Ne, Ra as Pe, Rs as T, Rt as Fe, S as Ie, So as E, Ss as Le, St as Re, T as D, Ti as ze, Ts as Be, U as Ve, Us as He, Va as O, Vr as Ue, W as We, Wr as Ge, Wt as Ke, X as qe, Xa as Je, Xs as Ye, Y as Xe, Yt as k, Z as Ze, Zi as Qe, Zt as $e, _a as et, _t as tt, an as A, ar as nt, as as rt, at as it, b as at, bi as ot, bo as st, cc as ct, cn as lt, co as j, cs as ut, da as M, di as dt, dr as ft, ec as pt, en as mt, eo as ht, et as gt, ga as N, gi as _t, go as vt, gt as yt, ht as bt, in as P, it as xt, ja as St, ji as Ct, jo as wt, k as Tt, ka as Et, ks as Dt, kt as Ot, lc as kt, ln as At, lo as jt, ls as Mt, lt as Nt, mt as Pt, no as Ft, nt as It, oc as Lt, oi as Rt, or as zt, pr as Bt, pt as Vt, q as Ht, qi as F, qr as Ut, qt as Wt, rc as Gt, rn as I, rt as Kt, sn as qt, tn as Jt, tt as Yt, ur as Xt, ut as Zt, vs as Qt, w as $t, wo as en, x as tn, xi as nn, xo as rn, xt as an, yi as on, yo as sn, ys as cn, z as ln, zs as L } from "./actions-CgaL6eEe.js";
|
|
2
|
+
import { AggregationGroupType as un, QueryErrorCodes as R } from "@ahoo-wang/wow-client/dsl";
|
|
3
3
|
import { dequal as z } from "dequal";
|
|
4
4
|
//#region src/model/config.ts
|
|
5
5
|
var dn = [
|
|
@@ -647,7 +647,7 @@ function yr(e, t, n, r) {
|
|
|
647
647
|
}
|
|
648
648
|
function br(e, t, n = /* @__PURE__ */ new Set()) {
|
|
649
649
|
let r = [t], i = B(e.chart, r, e.metrics, n);
|
|
650
|
-
if (
|
|
650
|
+
if (ye({
|
|
651
651
|
groups: r,
|
|
652
652
|
metrics: e.metrics,
|
|
653
653
|
chart: i
|
|
@@ -2558,7 +2558,7 @@ function To(e) {
|
|
|
2558
2558
|
tab: l,
|
|
2559
2559
|
waiting: f && !u && h === null && !Q(c),
|
|
2560
2560
|
fields: m?.definition.fields ?? [],
|
|
2561
|
-
...
|
|
2561
|
+
...ve(r, g, e.held),
|
|
2562
2562
|
...ko(t, r, m, a)
|
|
2563
2563
|
}];
|
|
2564
2564
|
});
|
|
@@ -2752,7 +2752,7 @@ var Vo = class {
|
|
|
2752
2752
|
let t = e?.unit ?? s.unit;
|
|
2753
2753
|
t !== void 0 && (c.unit = t);
|
|
2754
2754
|
}
|
|
2755
|
-
let { filters: l, refused: u } =
|
|
2755
|
+
let { filters: l, refused: u } = _e(a, c, this.host.kinds);
|
|
2756
2756
|
return z(l, o) || this.commit(l), {
|
|
2757
2757
|
refused: u,
|
|
2758
2758
|
moved: i
|
|
@@ -2787,18 +2787,18 @@ var Vo = class {
|
|
|
2787
2787
|
});
|
|
2788
2788
|
}
|
|
2789
2789
|
put(e) {
|
|
2790
|
-
let { filters: t, refused: n } =
|
|
2790
|
+
let { filters: t, refused: n } = _e(this.host.applied(), e, this.host.kinds);
|
|
2791
2791
|
return n.length > 0 ? n : (z(t, this.host.current()) || this.commit(t), []);
|
|
2792
2792
|
}
|
|
2793
2793
|
take(e) {
|
|
2794
|
-
let { filters: t, refused: n } =
|
|
2794
|
+
let { filters: t, refused: n } = _e(this.host.applied(), e, this.host.kinds);
|
|
2795
2795
|
return z(t, this.host.current()) || this.commit(t), n;
|
|
2796
2796
|
}
|
|
2797
2797
|
commit(e) {
|
|
2798
2798
|
this.host.commit(e), this.host.started() && (this.timer.stop(), this.timer.sync(300));
|
|
2799
2799
|
}
|
|
2800
2800
|
on(e) {
|
|
2801
|
-
let t = this.host.current(), { filters: n } =
|
|
2801
|
+
let t = this.host.current(), { filters: n } = _e(e, t, this.host.kinds);
|
|
2802
2802
|
return z(n, t) ? t : n;
|
|
2803
2803
|
}
|
|
2804
2804
|
candidatesOf(e) {
|
|
@@ -3658,7 +3658,7 @@ var bs = class {
|
|
|
3658
3658
|
}
|
|
3659
3659
|
};
|
|
3660
3660
|
function xs(e) {
|
|
3661
|
-
return rn(e) ? e.code !== "UNAVAILABLE" : u(e);
|
|
3661
|
+
return rn(e) ? e.code !== "UNAVAILABLE" : u(e) && e.issue.code !== "view.definition.not-found";
|
|
3662
3662
|
}
|
|
3663
3663
|
//#endregion
|
|
3664
3664
|
//#region src/runtime/dashboard/opening.ts
|
|
@@ -3683,7 +3683,7 @@ function Cs(e) {
|
|
|
3683
3683
|
panels: [],
|
|
3684
3684
|
resolving: !1,
|
|
3685
3685
|
tab: ln(i, null),
|
|
3686
|
-
filters:
|
|
3686
|
+
filters: _e(i, null, o).filters,
|
|
3687
3687
|
history: Zo,
|
|
3688
3688
|
building: !1,
|
|
3689
3689
|
readerRefresh: null,
|
|
@@ -3692,7 +3692,7 @@ function Cs(e) {
|
|
|
3692
3692
|
}
|
|
3693
3693
|
//#endregion
|
|
3694
3694
|
//#region src/runtime/dashboardRuntime.ts
|
|
3695
|
-
var
|
|
3695
|
+
var $ = class extends ds {
|
|
3696
3696
|
constructor(e) {
|
|
3697
3697
|
super(), this.kind = "dashboard", this.requestedTab = null, this.synced = !1, this.filtersOut = null, this.anchors = /* @__PURE__ */ new Map(), this.timeOf = qa((e) => this.viewOf(e)), this.options = e, this.id = e.id, this.definition = e.definition, this.kinds = e.kinds, this.limits = e.limits, this.environment = e.environment, this.references = new bs(e.resolve, () => this.settled()), this.canonical = Ka((e) => this.viewOf(e)), this.children = new gs(e.createPanelRuntime, (e) => {
|
|
3698
3698
|
this.store.retime(), this.refreshPanelIssues(e);
|
|
@@ -3764,7 +3764,7 @@ var ws = class extends ds {
|
|
|
3764
3764
|
admit: (e) => this.admit(e, this.state.scope),
|
|
3765
3765
|
blocking: r,
|
|
3766
3766
|
apply: () => this.apply(),
|
|
3767
|
-
refresh: () => this.rerun(
|
|
3767
|
+
refresh: () => this.rerun(ws),
|
|
3768
3768
|
holding: () => this.rules.holdsTimer() || this.children.loading(),
|
|
3769
3769
|
interval: () => this.rules.intervalInForce(),
|
|
3770
3770
|
expiresAt: () => this.children.rolloverAt(this.onTab()),
|
|
@@ -3823,6 +3823,9 @@ var ws = class extends ds {
|
|
|
3823
3823
|
refresh() {
|
|
3824
3824
|
this.rerun();
|
|
3825
3825
|
}
|
|
3826
|
+
retryReferences() {
|
|
3827
|
+
this.disposed || this.references.retryFailed() && this.store.setState({ resolving: !0 });
|
|
3828
|
+
}
|
|
3826
3829
|
rerun(e) {
|
|
3827
3830
|
this.disposed || (this.references.retryFailed() && this.store.setState({ resolving: !0 }), this.anchors.size > 0 && this.sync(), this.children.refresh(this.onTab(), e));
|
|
3828
3831
|
}
|
|
@@ -3983,12 +3986,12 @@ var ws = class extends ds {
|
|
|
3983
3986
|
t && this.store.setState({ panels: t });
|
|
3984
3987
|
}
|
|
3985
3988
|
};
|
|
3986
|
-
function
|
|
3989
|
+
function ws(e) {
|
|
3987
3990
|
return Fo(e.getSnapshot().query.error);
|
|
3988
3991
|
}
|
|
3989
3992
|
//#endregion
|
|
3990
3993
|
//#region src/runtime/commandChecks.ts
|
|
3991
|
-
function
|
|
3994
|
+
function Ts(e) {
|
|
3992
3995
|
switch (Se(e)) {
|
|
3993
3996
|
case "empty": throw new D(j("view.title.empty", ["title"]));
|
|
3994
3997
|
case "too-long": throw new D(j("view.title.too-long", ["title"], { max: 120 }));
|
|
@@ -4016,7 +4019,7 @@ var ks = class {
|
|
|
4016
4019
|
this.host = e;
|
|
4017
4020
|
}
|
|
4018
4021
|
async rename(e, t) {
|
|
4019
|
-
t =
|
|
4022
|
+
t = Ts(t);
|
|
4020
4023
|
let { revision: n, runtime: r } = await this.host.locate(e, "rename"), i = {
|
|
4021
4024
|
action: "rename",
|
|
4022
4025
|
id: e,
|
|
@@ -4077,9 +4080,9 @@ var ks = class {
|
|
|
4077
4080
|
this.host = e;
|
|
4078
4081
|
}
|
|
4079
4082
|
async save(e, t, n, r) {
|
|
4080
|
-
let i = e instanceof
|
|
4083
|
+
let i = e instanceof $ ? e : null, a = i && Ms(i, t, n);
|
|
4081
4084
|
if (!i || !a) throw new D(j(As[n], [], { panel: t }));
|
|
4082
|
-
let { definitionId: o, config: s } = a, c = this.host.registry.require(o), l =
|
|
4085
|
+
let { definitionId: o, config: s } = a, c = this.host.registry.require(o), l = Ts(r.title);
|
|
4083
4086
|
if (c.kind !== "data" || s.kind === "dashboard") throw new D(j("runtime.kind.not-declared", [], {
|
|
4084
4087
|
definition: o,
|
|
4085
4088
|
kind: s.kind
|
|
@@ -4132,7 +4135,7 @@ function Ns() {
|
|
|
4132
4135
|
//#region src/runtime/publish.ts
|
|
4133
4136
|
async function Ps(e, t, n, r) {
|
|
4134
4137
|
let i = Qt(n) ? null : await r();
|
|
4135
|
-
if (!i ||
|
|
4138
|
+
if (!i || C(i.scope)) throw new D(j("view.system.read-only", [], { action: "publish" }));
|
|
4136
4139
|
let { definitionId: a, title: o, config: s } = i;
|
|
4137
4140
|
return e.requireCreate(a, "system"), await t.dispatch({
|
|
4138
4141
|
action: "create",
|
|
@@ -4146,7 +4149,7 @@ async function Ps(e, t, n, r) {
|
|
|
4146
4149
|
}, void 0);
|
|
4147
4150
|
}
|
|
4148
4151
|
async function Fs(e, t, n = "system") {
|
|
4149
|
-
if (!
|
|
4152
|
+
if (!C(n) || e.kind !== "dashboard") return;
|
|
4150
4153
|
let r = [];
|
|
4151
4154
|
for (let n of e.panels) {
|
|
4152
4155
|
if (!I(n)) continue;
|
|
@@ -4158,7 +4161,7 @@ async function Fs(e, t, n = "system") {
|
|
|
4158
4161
|
scope: "system",
|
|
4159
4162
|
title: ""
|
|
4160
4163
|
} : t(e)));
|
|
4161
|
-
if (i.every((e) => e !== void 0 &&
|
|
4164
|
+
if (i.every((e) => e !== void 0 && C(e.scope))) continue;
|
|
4162
4165
|
let a = n.owned === void 0 ? i[0]?.title : void 0;
|
|
4163
4166
|
r.push(n.title ?? a ?? n.id);
|
|
4164
4167
|
}
|
|
@@ -4416,7 +4419,7 @@ var Ws = {
|
|
|
4416
4419
|
changeAudience: !1
|
|
4417
4420
|
};
|
|
4418
4421
|
function Ks(e, t) {
|
|
4419
|
-
if (e.scope !== void 0 &&
|
|
4422
|
+
if (e.scope !== void 0 && C(e.scope)) {
|
|
4420
4423
|
if (!qs(e, t)) return {
|
|
4421
4424
|
...Gs,
|
|
4422
4425
|
readOnly: !0
|
|
@@ -4472,7 +4475,7 @@ var Js = class {
|
|
|
4472
4475
|
}
|
|
4473
4476
|
};
|
|
4474
4477
|
function Ys(e, t) {
|
|
4475
|
-
return
|
|
4478
|
+
return C(t) ? e.editSystem === !0 : i(t) === "shared" ? e.createShared : e.createPersonal;
|
|
4476
4479
|
}
|
|
4477
4480
|
//#endregion
|
|
4478
4481
|
//#region src/runtime/preferences.ts
|
|
@@ -5033,7 +5036,7 @@ var bc = { status: "idle" }, xc = class {
|
|
|
5033
5036
|
}
|
|
5034
5037
|
};
|
|
5035
5038
|
function Cc(e) {
|
|
5036
|
-
return e instanceof xc || e instanceof
|
|
5039
|
+
return e instanceof xc || e instanceof $;
|
|
5037
5040
|
}
|
|
5038
5041
|
//#endregion
|
|
5039
5042
|
//#region src/runtime/summaries.ts
|
|
@@ -5549,7 +5552,7 @@ var nl = 3, rl = class {
|
|
|
5549
5552
|
definition: e.id,
|
|
5550
5553
|
kind: t.kind
|
|
5551
5554
|
}));
|
|
5552
|
-
let r = new
|
|
5555
|
+
let r = new $({
|
|
5553
5556
|
id: this.newRuntimeId(),
|
|
5554
5557
|
definition: e,
|
|
5555
5558
|
config: t,
|
|
@@ -5947,7 +5950,7 @@ var pl = class {
|
|
|
5947
5950
|
let n = this.registry.ofDefinition(await this.readInstance(e), t.definitionId);
|
|
5948
5951
|
await this.capabilities.prepareFor(n);
|
|
5949
5952
|
let r = await this.tabs.opensOn(n, t.tab), i = this.attach(n, t.scopeFilter ?? null);
|
|
5950
|
-
if (i instanceof
|
|
5953
|
+
if (i instanceof $) try {
|
|
5951
5954
|
i.opensOn(r, t.filters, t.held), await i.ready();
|
|
5952
5955
|
} catch (e) {
|
|
5953
5956
|
throw this.runtimes.forget(i), e;
|
|
@@ -5960,7 +5963,7 @@ var pl = class {
|
|
|
5960
5963
|
}
|
|
5961
5964
|
create(e, t) {
|
|
5962
5965
|
let n = this.registry.require(e);
|
|
5963
|
-
|
|
5966
|
+
Ts(t.title), this.capabilities.warm(n);
|
|
5964
5967
|
let r = this.build(n, t.config, {
|
|
5965
5968
|
title: t.title,
|
|
5966
5969
|
scope: t.scope,
|
|
@@ -5973,7 +5976,7 @@ var pl = class {
|
|
|
5973
5976
|
if (Os(t, t.issuesAt(n.scope)), !n.saved) {
|
|
5974
5977
|
let e = {
|
|
5975
5978
|
definitionId: t.definition.id,
|
|
5976
|
-
title:
|
|
5979
|
+
title: Ts(n.title),
|
|
5977
5980
|
scope: n.scope,
|
|
5978
5981
|
config: Es(t, n.draft)
|
|
5979
5982
|
};
|
|
@@ -5996,7 +5999,7 @@ var pl = class {
|
|
|
5996
5999
|
async saveAs(e, t) {
|
|
5997
6000
|
let n = this.runtimes.require(e), r = n.getSnapshot();
|
|
5998
6001
|
Os(n, n.issuesAt(t.scope));
|
|
5999
|
-
let i =
|
|
6002
|
+
let i = Ts(t.title);
|
|
6000
6003
|
return this.guard.requireCreate(n.definition.id, t.scope), await this.ledger.dispatch({
|
|
6001
6004
|
action: "create",
|
|
6002
6005
|
input: {
|
|
@@ -6070,6 +6073,10 @@ var pl = class {
|
|
|
6070
6073
|
async resolveConflict(e, t) {
|
|
6071
6074
|
return this.ledger.resolveConflict(e, t);
|
|
6072
6075
|
}
|
|
6076
|
+
register(e) {
|
|
6077
|
+
super.register(e);
|
|
6078
|
+
for (let e of this.runtimes.all()) e instanceof $ && e.retryReferences();
|
|
6079
|
+
}
|
|
6073
6080
|
openRuntimes() {
|
|
6074
6081
|
return this.runtimes.all();
|
|
6075
6082
|
}
|
|
@@ -6139,4 +6146,4 @@ function vl(e) {
|
|
|
6139
6146
|
//#endregion
|
|
6140
6147
|
export { Ni as $, Qn as $t, ca as A, Or as At, Xi as B, yr as Bt, va as C, Wr as Ct, ha as D, kr as Dt, sa as E, Fr as Et, ma as F, dr as Ft, xi as G, V as Gt, Zi as H, cr as Ht, Qi as I, mr as It, ji as J, Jn as Jt, wi as K, nr as Kt, Yi as L, fr as Lt, ua as M, lr as Mt, fa as N, ur as Nt, aa as O, Ar as Ot, la as P, pr as Pt, Di as Q, rr as Qt, qi as R, vr as Rt, _a as S, Hr as St, pa as T, Mr as Tt, Si as U, qn as Ut, Ki as V, ir as Vt, Mi as W, Gn as Wt, Ci as X, Xn as Xt, Oi as Y, Yn as Yt, Ei as Z, H as Zt, Io as _, Cn as _n, Jr as _t, Uc as a, Hn as an, U as at, Za as b, gn as bn, qr as bt, Ac as c, zn as cn, Yr as ct, nc as d, B as dn, ei as dt, $n as en, ki as et, Zs as f, kn as fn, K as ft, Lo as g, wn as gn, ii as gt, Ns as h, Sn as hn, oi as ht, $c as i, Pn as in, Zr as it, da as j, wr as jt, oa as k, jr as kt, sc as l, Rn as ln, W as lt, Ys as m, En as mn, ui as mt, _l as n, Wn as nn, Qr as nt, kc as o, Vn as on, $r as ot, Ks as p, Dn as pn, li as pt, Ai as q, er as qt, gl as r, Nn as rn, Xr as rt, jc as s, Ln as sn, si as st, vl as t, Un as tn, ai as tt, rc as u, Bn as un, G as ut, Fo as v, vn, Gr as vt, ia as w, Pr as wt, Fa as x, mn as xn, Ur as xt, oo as y, dn as yn, Kr as yt, Ji as z, Cr as zt };
|
|
6141
6148
|
|
|
6142
|
-
//# sourceMappingURL=viewRuntimeTypes-
|
|
6149
|
+
//# sourceMappingURL=viewRuntimeTypes-B3B6hbXr.js.map
|