@ryuzaki13/react-foundation-lib 2.22.0 → 2.23.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/analytical-table/buildAnalyticalTableModel.d.ts +5 -2
- package/dist/analytical-table/buildAnalyticalTableModel.d.ts.map +1 -1
- package/dist/analytical-table/{calculations.d.ts → definition/calculations.d.ts} +1 -1
- package/dist/analytical-table/definition/calculations.d.ts.map +1 -0
- package/dist/analytical-table/definition/compileAnalyticalTableDefinition.d.ts +4 -0
- package/dist/analytical-table/definition/compileAnalyticalTableDefinition.d.ts.map +1 -0
- package/dist/analytical-table/definition/types.d.ts +70 -0
- package/dist/analytical-table/definition/types.d.ts.map +1 -0
- package/dist/analytical-table/definition/validateAnalyticalView.d.ts +5 -0
- package/dist/analytical-table/definition/validateAnalyticalView.d.ts.map +1 -0
- package/dist/analytical-table/{dateColumns.d.ts → dynamic-columns/dateColumns.d.ts} +2 -1
- package/dist/analytical-table/dynamic-columns/dateColumns.d.ts.map +1 -0
- package/dist/analytical-table/dynamic-columns/index.d.ts +3 -0
- package/dist/analytical-table/dynamic-columns/index.d.ts.map +1 -0
- package/dist/analytical-table/{dateColumnTypes.d.ts → dynamic-columns/types.d.ts} +3 -3
- package/dist/analytical-table/dynamic-columns/types.d.ts.map +1 -0
- package/dist/analytical-table/index.d.ts +7 -5
- package/dist/analytical-table/index.d.ts.map +1 -1
- package/dist/analytical-table/index.js +348 -187
- package/dist/analytical-table/index.js.map +1 -1
- package/dist/analytical-table/projections/expansion.d.ts +4 -0
- package/dist/analytical-table/projections/expansion.d.ts.map +1 -0
- package/dist/analytical-table/{exportProjection.d.ts → projections/exportProjection.d.ts} +1 -1
- package/dist/analytical-table/projections/exportProjection.d.ts.map +1 -0
- package/dist/analytical-table/projections/indexAnalyticalRows.d.ts +4 -0
- package/dist/analytical-table/projections/indexAnalyticalRows.d.ts.map +1 -0
- package/dist/analytical-table/projections/resolveRowsProjection.d.ts +4 -0
- package/dist/analytical-table/projections/resolveRowsProjection.d.ts.map +1 -0
- package/dist/analytical-table/{exportTypes.d.ts → projections/types.d.ts} +2 -2
- package/dist/analytical-table/projections/types.d.ts.map +1 -0
- package/dist/analytical-table/{aggregation.d.ts → runtime/aggregation.d.ts} +1 -1
- package/dist/analytical-table/runtime/aggregation.d.ts.map +1 -0
- package/dist/analytical-table/runtime/buildGroupedModel.d.ts +11 -0
- package/dist/analytical-table/runtime/buildGroupedModel.d.ts.map +1 -0
- package/dist/analytical-table/runtime/createAnalyticalTableRuntime.d.ts +10 -0
- package/dist/analytical-table/runtime/createAnalyticalTableRuntime.d.ts.map +1 -0
- package/dist/analytical-table/runtime/filtering.d.ts +7 -0
- package/dist/analytical-table/runtime/filtering.d.ts.map +1 -0
- package/dist/analytical-table/runtime/grouping.d.ts +10 -0
- package/dist/analytical-table/runtime/grouping.d.ts.map +1 -0
- package/dist/analytical-table/runtime/hierarchy.d.ts +20 -0
- package/dist/analytical-table/runtime/hierarchy.d.ts.map +1 -0
- package/dist/analytical-table/runtime/sorting.d.ts +5 -0
- package/dist/analytical-table/runtime/sorting.d.ts.map +1 -0
- package/dist/analytical-table/runtime/totals.d.ts +12 -0
- package/dist/analytical-table/runtime/totals.d.ts.map +1 -0
- package/dist/analytical-table/runtime/types.d.ts +71 -0
- package/dist/analytical-table/runtime/types.d.ts.map +1 -0
- package/dist/analytical-table/{valueComparison.d.ts → runtime/valueComparison.d.ts} +1 -1
- package/dist/analytical-table/runtime/valueComparison.d.ts.map +1 -0
- package/dist/analytical-table/types.d.ts +4 -7
- package/dist/analytical-table/types.d.ts.map +1 -1
- package/dist/chunks/{formatters-DNrfrzK0.js → formatters-D1ob2OkI.js} +19 -19
- package/dist/chunks/{formatters-DNrfrzK0.js.map → formatters-D1ob2OkI.js.map} +1 -1
- package/dist/error-report/index.js +1 -1
- package/dist/formatters/index.js +1 -1
- package/dist/odata-service/formatters.d.ts +2 -2
- package/dist/table/index.js.map +1 -1
- package/dist/table/useTableRowSelection.d.ts +1 -1
- package/dist/table/useTableRowSelection.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/analytical-table/README.mdx +232 -143
- package/dist/analytical-table/aggregation.d.ts.map +0 -1
- package/dist/analytical-table/calculationTypes.d.ts +0 -11
- package/dist/analytical-table/calculationTypes.d.ts.map +0 -1
- package/dist/analytical-table/calculations.d.ts.map +0 -1
- package/dist/analytical-table/columnTypes.d.ts +0 -30
- package/dist/analytical-table/columnTypes.d.ts.map +0 -1
- package/dist/analytical-table/dataTypes.d.ts +0 -14
- package/dist/analytical-table/dataTypes.d.ts.map +0 -1
- package/dist/analytical-table/dateColumnTypes.d.ts.map +0 -1
- package/dist/analytical-table/dateColumns.d.ts.map +0 -1
- package/dist/analytical-table/expansion.d.ts +0 -4
- package/dist/analytical-table/expansion.d.ts.map +0 -1
- package/dist/analytical-table/exportProjection.d.ts.map +0 -1
- package/dist/analytical-table/exportTypes.d.ts.map +0 -1
- package/dist/analytical-table/filtering.d.ts +0 -4
- package/dist/analytical-table/filtering.d.ts.map +0 -1
- package/dist/analytical-table/indexAnalyticalRows.d.ts +0 -4
- package/dist/analytical-table/indexAnalyticalRows.d.ts.map +0 -1
- package/dist/analytical-table/modelTypes.d.ts +0 -43
- package/dist/analytical-table/modelTypes.d.ts.map +0 -1
- package/dist/analytical-table/valueComparison.d.ts.map +0 -1
- package/dist/analytical-table/viewTypes.d.ts +0 -24
- package/dist/analytical-table/viewTypes.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e, r as t, x as n } from "./array-D-_yMMUK.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { compileTableFormula as r } from "../formulas/index.js";
|
|
3
|
+
import { i } from "./isRecord-DXDTW-jA.js";
|
|
4
4
|
import { It as a, Mn as o, _t as s, ln as c, mn as l, vn as u } from "./odata-service-tp2U5yIr.js";
|
|
5
5
|
import { S as d, _ as f, c as ee, d as p, g as m, n as te, o as ne, p as re, t as h, v as ie } from "./validate-C8cQm_9m.js";
|
|
6
6
|
import { t as ae } from "./string-comparison-BKT7PXmq.js";
|
|
@@ -822,7 +822,7 @@ function on(e) {
|
|
|
822
822
|
ok: !1,
|
|
823
823
|
reason: "pipeline_invalid"
|
|
824
824
|
};
|
|
825
|
-
let { steps: n } = t.plan,
|
|
825
|
+
let { steps: n } = t.plan, i = n.some((e) => e.type === "rowBasedOverride"), a = n.some((e) => e.type === "typedValueFormat"), o = n.find((e) => e.type === "resolveValueState"), s = o?.config.valueSource, c = s?.kind === "formula" ? r({
|
|
826
826
|
formulaId: s.formulaId,
|
|
827
827
|
keys: s.dependencyIds
|
|
828
828
|
}) : void 0;
|
|
@@ -844,7 +844,7 @@ function on(e) {
|
|
|
844
844
|
} : {
|
|
845
845
|
ok: !0,
|
|
846
846
|
executor: {
|
|
847
|
-
hasRowBasedOverride:
|
|
847
|
+
hasRowBasedOverride: i,
|
|
848
848
|
hasTypedValueFormat: a,
|
|
849
849
|
execute: (t) => {
|
|
850
850
|
let r = t.value, i = "none", o = !1, u = !0, f = "left", p;
|
|
@@ -917,39 +917,39 @@ function cn(e) {
|
|
|
917
917
|
return e === void 0 || typeof e == "string";
|
|
918
918
|
}
|
|
919
919
|
function ln(e) {
|
|
920
|
-
return e === void 0 ? !0 :
|
|
920
|
+
return e === void 0 ? !0 : i(e) ? cn(e.numberPresetName) && cn(e.datePresetName) : !1;
|
|
921
921
|
}
|
|
922
922
|
function un(e) {
|
|
923
|
-
return
|
|
923
|
+
return i(e) ? e.mode === "field" ? typeof e.fieldKey == "string" && $(e.fallbackToRaw) : e.mode === "formula" && typeof e.formulaId == "string" && (e.dependencyIds === void 0 || Array.isArray(e.dependencyIds) && e.dependencyIds.every((e) => typeof e == "string")) && $(e.fallbackToRaw) : !1;
|
|
924
924
|
}
|
|
925
925
|
function dn(e) {
|
|
926
|
-
return typeof e == "number" ||
|
|
926
|
+
return typeof e == "number" || i(e) && typeof e.value == "number" && (e.boundary === void 0 || e.boundary === "lower" || e.boundary === "upper");
|
|
927
927
|
}
|
|
928
928
|
function fn(e) {
|
|
929
|
-
if (!
|
|
930
|
-
let { resolver: t, icon: n } = e,
|
|
931
|
-
return !(n === void 0 ||
|
|
929
|
+
if (!i(e) || !i(e.resolver)) return !1;
|
|
930
|
+
let { resolver: t, icon: n } = e, r = e.valueSource, a = r === void 0 || i(r) && (r.kind === "value" || r.kind === "formula" && typeof r.formulaId == "string" && Array.isArray(r.dependencyIds) && r.dependencyIds.every((e) => typeof e == "string"));
|
|
931
|
+
return !(n === void 0 || i(n) && $(n.enabled) && $(n.showValue) && (n.position === void 0 || n.position === "left" || n.position === "right")) || !a ? !1 : t.kind === "fixed" ? i(t.entries) && Object.values(t.entries).every(Q) && (t.fallbackState === void 0 || Q(t.fallbackState)) : t.kind === "threshold" && Array.isArray(t.thresholds) && t.thresholds.every(dn) && Array.isArray(t.states) && t.states.every(Q) && (t.invalidState === void 0 || Q(t.invalidState));
|
|
932
932
|
}
|
|
933
933
|
function pn(e) {
|
|
934
|
-
return !
|
|
934
|
+
return !i(e) || typeof e.id != "string" ? !1 : e.type === "normalizeLeadingZeros" ? e.config === void 0 || i(e.config) && (e.config.fixed === void 0 || typeof e.config.fixed == "number") : e.type === "rowBasedOverride" ? un(e.config) : e.type === "resolveValueState" ? fn(e.config) : e.type === "typedValueFormat" && ln(e.config);
|
|
935
935
|
}
|
|
936
936
|
function mn(e) {
|
|
937
|
-
return
|
|
937
|
+
return i(e) && Array.isArray(e.steps) && e.steps.every(pn);
|
|
938
938
|
}
|
|
939
939
|
function hn(e) {
|
|
940
|
-
return
|
|
940
|
+
return i(e) && typeof e.x == "number" && typeof e.y == "number";
|
|
941
941
|
}
|
|
942
942
|
function gn(e) {
|
|
943
|
-
return !
|
|
943
|
+
return !i(e) || typeof e.id != "string" || !hn(e.position) ? !1 : e.type === "source" || e.type === "sink" || pn(e);
|
|
944
944
|
}
|
|
945
945
|
function _n(e) {
|
|
946
|
-
return
|
|
946
|
+
return i(e) && typeof e.id == "string" && typeof e.source == "string" && typeof e.target == "string";
|
|
947
947
|
}
|
|
948
948
|
function vn(e) {
|
|
949
|
-
return
|
|
949
|
+
return i(e) && Array.isArray(e.nodes) && e.nodes.every(gn) && Array.isArray(e.edges) && e.edges.every(_n);
|
|
950
950
|
}
|
|
951
951
|
function yn(e) {
|
|
952
|
-
return
|
|
952
|
+
return i(e) && e.version === 1 && (e.plan === void 0 || mn(e.plan)) && (e.graph === void 0 || vn(e.graph)) && (mn(e.plan) || vn(e.graph));
|
|
953
953
|
}
|
|
954
954
|
function bn(e) {
|
|
955
955
|
if (yn(e) && h(e).ok) return p(e);
|
|
@@ -1099,7 +1099,7 @@ function Mn(e, t) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
function Nn(e) {
|
|
1101
1101
|
if (!e.formulaId) return;
|
|
1102
|
-
let t =
|
|
1102
|
+
let t = r({
|
|
1103
1103
|
formulaId: e.formulaId,
|
|
1104
1104
|
keys: e.formulaDependencies
|
|
1105
1105
|
});
|
|
@@ -1202,4 +1202,4 @@ function Hn(e, t) {
|
|
|
1202
1202
|
//#endregion
|
|
1203
1203
|
export { R as $, jt as A, Be as At, wt as B, he as Bt, X as C, Pe as Ct, It as D, We as Dt, Ft as E, Ie as Et, xt as F, ze as Ft, H as G, ue as Gt, St as H, fe as Ht, V as I, qe as It, Dt as J, Et as K, le as Kt, bt as L, De as Lt, Mt as M, Ge as Mt, Nt as N, Re as Nt, G as O, He as Ot, kt as P, Ke as Pt, F as Q, W as R, b as Rt, Ut as S, Ve as St, zt as T, Ue as Tt, Ct as U, de as Ut, U as V, pe as Vt, Ot as W, _ as Wt, ft as X, I as Y, ct as Z, Bt as _, Xe as _t, Rn as a, at, Ht as b, w as bt, wn as c, Qe as ct, on as d, k as dt, L as et, Z as f, j as ft, qt as g, D as gt, Jt as h, $e as ht, Ln as i, ot as it, At as j, Le as jt, Pt as k, Me as kt, Cn as l, O as lt, en as m, M as mt, Bn as n, lt as nt, zn as o, P as ot, tn as p, N as pt, B as q, g as qt, Vn as r, it as rt, kn as s, Ze as st, Hn as t, ut as tt, bn as u, A as ut, Y as v, Ye as vt, Rt as w, Fe as wt, J as x, Ne as xt, Vt as y, Je as yt, Tt as z, me as zt };
|
|
1204
1204
|
|
|
1205
|
-
//# sourceMappingURL=formatters-
|
|
1205
|
+
//# sourceMappingURL=formatters-D1ob2OkI.js.map
|