@ahoo-wang/wow-view-engine 9.7.0 → 9.8.0

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/react.js CHANGED
@@ -1,3 +1,3 @@
1
- import { d as e } from "./viewRuntimeTypes-JEPw0nsg.js";
2
- import { A as t, C as n, D as r, E as i, F as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, h as b, i as x, j as S, k as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, w as M, x as N, z as P } from "./react-2oicrdUx.js";
1
+ import { d as e } from "./viewRuntimeTypes-DSFYiS5g.js";
2
+ import { A as t, C as n, D as r, E as i, F as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, h as b, i as x, j as S, k as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, w as M, x as N, z as P } from "./react-Bk_WxJCP.js";
3
3
  export { v as VALUE_CANDIDATE_DEBOUNCE_MS, d as browserRuntimeEnvironment, P as documentVisibility, r as failureReasons, o as kindMismatch, N as ownedNavigation, s as retryableOpen, e as toIssue, S as useAnalysisEditor, t as useAnalysisResult, l as useAutoRefresh, n as useDashboard, g as useFilterEditor, w as useHandOver, D as useHandedConditions, x as useHandedRemoval, O as useInstanceSync, T as useLeaveGuard, c as useOpenView, f as usePanelFollowUps, i as useRecordActions, j as useRecordDetail, m as useRecordExport, b as useRecordTable, C as useRefreshCountdown, h as useReleaseDeleted, E as useSaveCommands, p as useSearchBox, M as useUnavailable, y as useValueCandidates, u as useViewEngine, A as useViewList, _ as useViewManager, a as useViewRuntime, k as useWorkbench };
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Ua as e, _ as t, c as n, d as r, f as i, g as a, h as o, l as s, m as c, n as l, nt as u, o as ee, p as te, pi as d, ro as f, u as ne, x as p, y as m } from "./actions-HgK33Jzg.js";
1
+ import { Ua as e, _ as t, c as n, d as r, f as i, g as a, h as o, l as s, m as c, n as l, nt as u, o as ee, p as te, pi as d, ro as f, u as ne, x as p, y as m } from "./actions-DDwX_NYM.js";
2
2
  import { t as re } from "./routes-DvPNPlQP.js";
3
3
  import { AGGREGATION_LIMITS as ie, AggregationDatePart as h, AggregationDateUnit as g, AggregationExpressionOperator as _, AggregationExpressionType as v, AggregationFunction as y, AggregationGroupType as b, AggregationMetricType as x, ComparisonOperator as S, DEFAULT_PAGINATION as ae, DateDiffUnit as C, DeletionState as w, DerivedExpressionType as T, FilterOperator as E, HavingExpressionType as D, SearchMode as oe, SortDirection as O, StringComparison as se, TimeUnit as k } from "@ahoo-wang/wow-client";
4
4
  import ce from "dayjs";
package/dist/ui.js CHANGED
@@ -1,7 +1,7 @@
1
- import { $i as e, $t as t, Ai as n, As as r, B as i, Bi as a, Bt as o, Ca as s, Ci as c, Cr as l, Cs as u, Ct as d, Dr as f, Ds as p, Ei as m, En as h, Fi as g, Fs as _, G as v, Hs as y, Ht as b, It as x, Ja as S, Ji as C, Jo as w, Jr as T, Ki as E, Ko as D, La as O, Lr as k, Lt as A, Mr as j, Nr as M, Nt as N, O as P, Os as F, Pn as I, Pr as L, Ps as R, Pt as z, Q as B, Qo as V, R as H, Ri as U, Rn as W, Rt as G, Sa as K, Si as q, Sn as J, Sr as ee, Ss as te, Tr as ne, Tt as re, Ui as ie, Uo as ae, Ur as oe, Va as se, Vo as ce, Wi as le, Wr as ue, X as de, Xa as fe, Xt as pe, Y as me, Yi as he, Zr as ge, Zt as _e, _n as ve, _o as ye, _r as be, _s as xe, ai as Se, an as Ce, bi as we, br as Te, bs as Ee, c as De, d as Oe, do as ke, dr as Ae, en as je, es as Me, fn as Ne, fr as Pe, go as Fe, gr as Ie, ha as Le, hn as Re, ho as ze, hr as Be, hs as Ve, in as He, ir as Ue, is as We, jr as Ge, ka as Ke, ki as qe, kr as Je, l as Ye, la as Xe, ln as Ze, lo as Qe, lr as $e, ls as et, m as tt, mn as nt, mr as rt, no as it, nr as at, oi as ot, os as st, pn as ct, po as lt, pr as ut, qa as dt, qt as ft, rn as pt, rr as mt, sn as ht, tn as gt, ts as _t, ua as vt, un as yt, ur as bt, vr as xt, vs as St, wn as Ct, wr as wt, ws as Tt, xn as Et, xr as Dt, yn as Ot, yr as kt, z as At, zr as jt } from "./actions-HgK33Jzg.js";
2
- import { B as Mt, Jt as Nt, Qt as Pt, R as Ft, Wt as It, Yt as Lt, Zt as Rt, _ as zt, _t as Bt, a as Vt, b as Ht, ct as Ut, d as Wt, gt as Gt, i as Kt, m as qt, n as Jt, ot as Yt, p as Xt, pt as Zt, qt as Qt, s as $t, t as en, tt as tn, ut as nn, vt as rn } from "./viewRuntimeTypes-JEPw0nsg.js";
3
- import { a as an, c as on, f as sn, i as cn, l as ln, m as un, n as dn, o as fn, p as pn, r as mn, t as hn, u as gn } from "./clickDraft-CLkSgQNG.js";
4
- import { A as _n, C as vn, D as yn, E as bn, F as xn, I as Sn, L as Cn, M as wn, N as Tn, O as En, S as Dn, T as On, _ as kn, b as An, f as jn, g as Mn, h as Nn, j as Pn, k as Fn, l as In, m as Ln, t as Rn, v as zn, w as Bn, x as Vn, y as Hn } from "./react-2oicrdUx.js";
1
+ import { $i as e, $t as t, Ai as n, As as r, B as i, Bi as a, Bt as o, Ca as s, Ci as c, Cr as l, Cs as u, Ct as d, Dr as f, Ds as p, Ei as m, En as h, Fi as g, Fs as _, G as v, Hs as y, Ht as b, It as x, Ja as S, Ji as C, Jo as w, Jr as T, Ki as E, Ko as D, La as O, Lr as k, Lt as A, Mr as j, Nr as M, Nt as N, O as P, Os as F, Pn as I, Pr as L, Ps as R, Pt as z, Q as B, Qo as V, R as H, Ri as U, Rn as W, Rt as G, Sa as K, Si as q, Sn as J, Sr as ee, Ss as te, Tr as ne, Tt as re, Ui as ie, Uo as ae, Ur as oe, Va as se, Vo as ce, Wi as le, Wr as ue, X as de, Xa as fe, Xt as pe, Y as me, Yi as he, Zr as ge, Zt as _e, _n as ve, _o as ye, _r as be, _s as xe, ai as Se, an as Ce, bi as we, br as Te, bs as Ee, c as De, d as Oe, do as ke, dr as Ae, en as je, es as Me, fn as Ne, fr as Pe, go as Fe, gr as Ie, ha as Le, hn as Re, ho as ze, hr as Be, hs as Ve, in as He, ir as Ue, is as We, jr as Ge, ka as Ke, ki as qe, kr as Je, l as Ye, la as Xe, ln as Ze, lo as Qe, lr as $e, ls as et, m as tt, mn as nt, mr as rt, no as it, nr as at, oi as ot, os as st, pn as ct, po as lt, pr as ut, qa as dt, qt as ft, rn as pt, rr as mt, sn as ht, tn as gt, ts as _t, ua as vt, un as yt, ur as bt, vr as xt, vs as St, wn as Ct, wr as wt, ws as Tt, xn as Et, xr as Dt, yn as Ot, yr as kt, z as At, zr as jt } from "./actions-DDwX_NYM.js";
2
+ import { B as Mt, Jt as Nt, Qt as Pt, R as Ft, Wt as It, Yt as Lt, Zt as Rt, _ as zt, _t as Bt, a as Vt, b as Ht, ct as Ut, d as Wt, gt as Gt, i as Kt, m as qt, n as Jt, ot as Yt, p as Xt, pt as Zt, qt as Qt, s as $t, t as en, tt as tn, ut as nn, vt as rn } from "./viewRuntimeTypes-DSFYiS5g.js";
3
+ import { a as an, c as on, f as sn, i as cn, l as ln, m as un, n as dn, o as fn, p as pn, r as mn, t as hn, u as gn } from "./clickDraft-DVzI9buA.js";
4
+ import { A as _n, C as vn, D as yn, E as bn, F as xn, I as Sn, L as Cn, M as wn, N as Tn, O as En, S as Dn, T as On, _ as kn, b as An, f as jn, g as Mn, h as Nn, j as Pn, k as Fn, l as In, m as Ln, t as Rn, v as zn, w as Bn, x as Vn, y as Hn } from "./react-Bk_WxJCP.js";
5
5
  import { a as Un, c as Wn, i as Gn, n as Kn, r as qn, s as Jn, t as Yn } from "./cartesianBrush-HLU12ig5.js";
6
6
  import { t as Xn } from "./routes-DvPNPlQP.js";
7
7
  import { formatRgb as Zn, interpolate as Qn, modeHsl as $n, modeLab as er, modeLch as tr, modeLrgb as nr, modeOklab as rr, modeOklch as ir, modeP3 as ar, modeRgb as or, parse as sr, useMode as cr, wcagContrast as lr } from "culori/fn";
@@ -13850,11 +13850,7 @@ function WC(e) {
13850
13850
  let y = v, b = xr(null), x = (e, t, i, a) => {
13851
13851
  if (!r) return;
13852
13852
  let o = b.current;
13853
- if (y && a && o && o !== e && n.rows.includes(o)) {
13854
- r(o, t, i, e);
13855
- return;
13856
- }
13857
- b.current = e, r(e, t, i);
13853
+ y && a && o && o !== e && n.rows.includes(o) ? r(o, t, i, e) : (b.current = e, r(e, t, i));
13858
13854
  }, S = xr(null), C;
13859
13855
  t[6] === Symbol.for("react.memo_cache_sentinel") ? (C = () => [...S.current?.querySelectorAll(HC) ?? []], t[6] = C) : C = t[6];
13860
13856
  let w = C, T;
@@ -15795,16 +15791,10 @@ function pE(e) {
15795
15791
  t[8] !== a || t[9] !== n ? (g = a.label("label.panel.handle", { title: n }), t[8] = a, t[9] = n, t[10] = g) : g = t[10];
15796
15792
  let _ = l ? "secondary" : "ghost", v;
15797
15793
  t[11] !== m || t[12] !== a || t[13] !== o || t[14] !== n ? (v = (e) => {
15798
- if (e.detail === 0) {
15799
- if (f.current.arranging) {
15800
- m(!0);
15801
- return;
15802
- }
15803
- f.current = {
15804
- arranging: !0,
15805
- steps: 0
15806
- }, u(!0), o?.(a.label("label.panel.arranging", { title: n }));
15807
- }
15794
+ e.detail === 0 && (f.current.arranging ? m(!0) : (f.current = {
15795
+ arranging: !0,
15796
+ steps: 0
15797
+ }, u(!0), o?.(a.label("label.panel.arranging", { title: n }))));
15808
15798
  }, t[11] = m, t[12] = a, t[13] = o, t[14] = n, t[15] = v) : v = t[15];
15809
15799
  let y;
15810
15800
  t[16] !== m || t[17] !== a || t[18] !== r || t[19] !== o || t[20] !== n ? (y = (e) => {
@@ -16278,13 +16268,7 @@ function KE(e, t, ...n) {
16278
16268
  e.target === e.currentTarget && Ox(e.currentTarget, s());
16279
16269
  },
16280
16270
  onKeyDown: (n) => {
16281
- if (n.target === n.currentTarget) {
16282
- if (n.key === "Enter" || n.key === " ") {
16283
- n.preventDefault(), t(e);
16284
- return;
16285
- }
16286
- jx(n, s(), ...i);
16287
- }
16271
+ n.target === n.currentTarget && (n.key === "Enter" || n.key === " " ? (n.preventDefault(), t(e)) : jx(n, s(), ...i));
16288
16272
  }
16289
16273
  }), r[5] = i, r[6] = a, r[7] = s, r[8] = t, r[9] = l) : l = r[9];
16290
16274
  let u;
@@ -18206,11 +18190,7 @@ function WO(e) {
18206
18190
  let _ = g, v;
18207
18191
  t[6] !== h || t[7] !== r || t[8] !== u || t[9] !== s || t[10] !== _ || t[11] !== n ? (v = (e) => {
18208
18192
  let t = e.from ?? h, i = e.to ?? _;
18209
- if (t.day === "") {
18210
- r(null);
18211
- return;
18212
- }
18213
- r(dt(s ? {
18193
+ t.day === "" ? r(null) : r(dt(s ? {
18214
18194
  ...n,
18215
18195
  from: JO(t),
18216
18196
  to: i.day === "" ? void 0 : JO(i)
@@ -18476,11 +18456,7 @@ function ak(e) {
18476
18456
  }, t[18] = i, t[19] = k);
18477
18457
  let A;
18478
18458
  t[20] === n ? A = t[21] : (A = (e, t) => {
18479
- if (t.reason === "input-clear" && !t.isItemPress) {
18480
- t.cancel();
18481
- return;
18482
- }
18483
- m(e.length === 0 ? null : {
18459
+ t.reason === "input-clear" && !t.isItemPress ? t.cancel() : m(e.length === 0 ? null : {
18484
18460
  text: e,
18485
18461
  over: n
18486
18462
  });
@@ -19589,11 +19565,7 @@ function sA(e) {
19589
19565
  }, t[0] = r, t[1] = b);
19590
19566
  let x;
19591
19567
  t[2] === r ? x = t[3] : (x = (e, t) => {
19592
- if (t.reason !== "input-change" && !t.isItemPress) {
19593
- t.cancel();
19594
- return;
19595
- }
19596
- t.reason === "input-change" && f(e), r(e);
19568
+ t.reason !== "input-change" && !t.isItemPress ? t.cancel() : (t.reason === "input-change" && f(e), r(e));
19597
19569
  }, t[2] = r, t[3] = x);
19598
19570
  let S;
19599
19571
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (S = (e) => {
@@ -19651,11 +19623,7 @@ function cA(e) {
19651
19623
  }, t[5] = S, t[6] = g, t[7] = x, t[8] = T, t[9] = E) : E = t[9];
19652
19624
  let D = E, O;
19653
19625
  t[10] === n ? O = t[11] : (O = (e, t) => {
19654
- if (t.reason === "input-clear" && !t.isItemPress) {
19655
- t.cancel();
19656
- return;
19657
- }
19658
- p(e.length === 0 ? null : {
19626
+ t.reason === "input-clear" && !t.isItemPress ? t.cancel() : p(e.length === 0 ? null : {
19659
19627
  text: e,
19660
19628
  over: n
19661
19629
  });
@@ -19913,11 +19881,7 @@ function pA(e) {
19913
19881
  P = `${u}-none`, k = w ? Av : vu;
19914
19882
  let G;
19915
19883
  t[42] !== C[0] || t[43] !== C.length || t[44] !== a || t[45] !== E ? (G = () => {
19916
- if (C.length > 0) {
19917
- h(E), Uu([...d.current?.querySelectorAll("[data-field]") ?? []].find((e) => e.getAttribute("data-field") === C[0]));
19918
- return;
19919
- }
19920
- a();
19884
+ C.length > 0 ? (h(E), Uu([...d.current?.querySelectorAll("[data-field]") ?? []].find((e) => e.getAttribute("data-field") === C[0]))) : a();
19921
19885
  }, t[42] = C[0], t[43] = C.length, t[44] = a, t[45] = E, t[46] = G) : G = t[46], F = G, j = du, I = g, t[47] === o ? L = t[48] : (L = (e) => {
19922
19886
  e || o();
19923
19887
  }, t[47] = o, t[48] = L), A = yd, R = "action-dialog", z = _.id, B = w && !f.form ? "alertdialog" : "dialog", t[49] === s ? V = t[50] : (V = s ? { finalFocus: s } : {}, t[49] = s, t[50] = V);
@@ -21070,16 +21034,11 @@ function Sj(e) {
21070
21034
  t[0] !== i || t[1] !== d.pickable ? (v = d.pickable ? HE(i) : null, t[0] = i, t[1] = d.pickable, t[2] = v) : v = t[2];
21071
21035
  let y = v, b;
21072
21036
  t[3] !== c || t[4] !== s || t[5] !== y || t[6] !== i || t[7] !== d ? (b = y === null || !i ? void 0 : (e, t, n, r) => {
21073
- if (y === "menu" || r) {
21074
- _(LE(e, t, n, r));
21075
- return;
21076
- }
21077
- if (y === "filter") {
21037
+ if (y === "menu" || r) _(LE(e, t, n, r));
21038
+ else if (y === "filter") {
21078
21039
  let t = WE(i.crossFilter(e), s, Cj(d.followUp(e), s, c));
21079
21040
  t && i.say(t);
21080
- return;
21081
- }
21082
- i.destination(e).then((r) => {
21041
+ } else i.destination(e).then((r) => {
21083
21042
  r && ("to" in r ? i.navigate?.(r.to) : "refused" in r ? i.say(s.issue(r.refused)) : (i.say(s.issue(r.fallback)), _(LE(e, t, n))));
21084
21043
  });
21085
21044
  }, t[3] = c, t[4] = s, t[5] = y, t[6] = i, t[7] = d, t[8] = b) : b = t[8];
@@ -25696,11 +25655,7 @@ function IF(e) {
25696
25655
  fields: i.runtime?.fields ?? null,
25697
25656
  own: r.filterFields
25698
25657
  });
25699
- if (t === void 0) {
25700
- T(!0);
25701
- return;
25702
- }
25703
- r.edit?.setPanelClick(i.id, t), s();
25658
+ t === void 0 ? T(!0) : (r.edit?.setPanelClick(i.id, t), s());
25704
25659
  }, t[13] = r.edit, t[14] = r.filterFields, t[15] = h, t[16] = u, t[17] = s, t[18] = i.id, t[19] = i.runtime?.fields, t[20] = b.board, t[21] = b.status, t[22] = k) : k = t[22];
25705
25660
  let A = k, j;
25706
25661
  t[23] === h ? j = t[24] : (j = mn(h), t[23] = h, t[24] = j);
@@ -27012,11 +26967,8 @@ function kI(e) {
27012
26967
  t[4] !== s || t[5] !== c || t[6] !== o || t[7] !== i ? (y = (e, t, n) => {
27013
26968
  let r = n !== void 0 && n;
27014
26969
  if (e) {
27015
- if (r) {
27016
- c?.(e);
27017
- return;
27018
- }
27019
- switch (e) {
26970
+ if (r) c?.(e);
26971
+ else switch (e) {
27020
26972
  case "delete":
27021
26973
  s?.(), c?.(e);
27022
26974
  return;
@@ -29280,19 +29232,13 @@ function aR(e) {
29280
29232
  let ve;
29281
29233
  t[52] !== ee || t[53] !== r || t[54] !== v || t[55] !== S?.what || t[56] !== q ? (ve = (e) => {
29282
29234
  let t = S?.what;
29283
- if (v && t) {
29284
- if (t.mode === "replace") {
29285
- v.replacePanelView(t.panelId, e.id);
29286
- return;
29287
- }
29288
- r.preload(e.id).then(() => {
29289
- let t = y.current;
29290
- t && ee(t.addPanel({
29291
- kind: "view",
29292
- instanceId: e.id
29293
- }, q()), e.title);
29294
- });
29295
- }
29235
+ v && t && (t.mode === "replace" ? v.replacePanelView(t.panelId, e.id) : r.preload(e.id).then(() => {
29236
+ let t = y.current;
29237
+ t && ee(t.addPanel({
29238
+ kind: "view",
29239
+ instanceId: e.id
29240
+ }, q()), e.title);
29241
+ }));
29296
29242
  }, t[52] = ee, t[53] = r, t[54] = v, t[55] = S?.what, t[56] = q, t[57] = ve) : ve = t[57];
29297
29243
  let ye;
29298
29244
  t[58] !== n || t[59] !== G || t[60] !== o || t[61] !== me || t[62] !== he || t[63] !== _e || t[64] !== ve ? (ye = /* @__PURE__ */ Z(EF, {
@@ -34561,13 +34507,7 @@ function xV(e) {
34561
34507
  let t = Y(4), n = xr(null), r = xr(null), i = xr(null), a = xr(e), o, s;
34562
34508
  t[0] === e ? (o = t[1], s = t[2]) : (o = () => {
34563
34509
  let t = a.current;
34564
- if (t !== e) {
34565
- if (a.current = e, e !== null) {
34566
- t === "options" && e === "picker" && r.current ? r.current.focus() : n.current?.focus();
34567
- return;
34568
- }
34569
- t !== null && i.current?.focus();
34570
- }
34510
+ t !== e && (a.current = e, e === null ? t !== null && i.current?.focus() : t === "options" && e === "picker" && r.current ? r.current.focus() : n.current?.focus());
34571
34511
  }, s = [e], t[0] = e, t[1] = o, t[2] = s), vr(o, s);
34572
34512
  let c;
34573
34513
  return t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = {
@@ -36739,11 +36679,7 @@ function eU(e) {
36739
36679
  let S = String(l === "percent" ? 1 : 2), C;
36740
36680
  t[26] !== l || t[27] !== h || t[28] !== d ? (C = (e) => {
36741
36681
  let t = h(l);
36742
- if (e === null) {
36743
- d(vt(t, "decimals"));
36744
- return;
36745
- }
36746
- Number.isInteger(e) && e >= 0 && e <= 6 && d({
36682
+ e === null ? d(vt(t, "decimals")) : Number.isInteger(e) && e >= 0 && e <= 6 && d({
36747
36683
  ...t,
36748
36684
  decimals: e
36749
36685
  });
@@ -38323,15 +38259,7 @@ function aW({ state: e, hasConditions: t, filter: n, runtime: r, openEditor: i }
38323
38259
  return {
38324
38260
  wayOut: a,
38325
38261
  take: () => {
38326
- if (a === "clear") {
38327
- n.clear(), n.submit();
38328
- return;
38329
- }
38330
- if (a === "restore" && o?.kind !== "dashboard" && o && r) {
38331
- r.edit({ filter: o.filter }), r.apply();
38332
- return;
38333
- }
38334
- i();
38262
+ a === "clear" ? (n.clear(), n.submit()) : a === "restore" && o?.kind !== "dashboard" && o && r ? (r.edit({ filter: o.filter }), r.apply()) : i();
38335
38263
  }
38336
38264
  };
38337
38265
  }
@@ -42978,11 +42906,7 @@ function WG(e, t, n, r) {
42978
42906
  if (o === l.current) return;
42979
42907
  l.current = o;
42980
42908
  let e = u.current;
42981
- if (e === null) {
42982
- o === null ? c() : s(o);
42983
- return;
42984
- }
42985
- d || (u.current = null, o !== null && s(t.label("label.status.then", {
42909
+ e === null ? o === null ? c() : s(o) : d || (u.current = null, o !== null && s(t.label("label.status.then", {
42986
42910
  first: e,
42987
42911
  then: o
42988
42912
  })));