@ahoo-wang/wow-view-engine 9.2.1 → 9.2.3
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 +14 -4
- package/README.zh-CN.md +14 -4
- package/dist/{actions-CCMywJ9Z.js → actions-HgK33Jzg.js} +1816 -1764
- package/dist/actions-HgK33Jzg.js.map +1 -0
- package/dist/analysis/queryFilter.d.ts.map +1 -1
- package/dist/{clickDraft-ha-JMs8X.js → clickDraft-CLkSgQNG.js} +2 -2
- package/dist/{clickDraft-ha-JMs8X.js.map → clickDraft-CLkSgQNG.js.map} +1 -1
- package/dist/filter/compile.d.ts.map +1 -1
- package/dist/filter/describe.d.ts.map +1 -1
- package/dist/filter/fieldKind.d.ts +10 -0
- package/dist/filter/fieldKind.d.ts.map +1 -1
- package/dist/filter/index.d.ts +1 -0
- package/dist/filter/index.d.ts.map +1 -1
- package/dist/filter/kinds/enum.d.ts.map +1 -1
- package/dist/filter/read.d.ts +17 -0
- package/dist/filter/read.d.ts.map +1 -0
- package/dist/filter/validate.d.ts.map +1 -1
- package/dist/index.js +43 -43
- package/dist/index.js.map +1 -1
- package/dist/{react-Cq_EFiHY.js → react-2oicrdUx.js} +774 -774
- package/dist/{react-Cq_EFiHY.js.map → react-2oicrdUx.js.map} +1 -1
- package/dist/react.js +2 -2
- package/dist/runtime/actionReads.d.ts +20 -0
- package/dist/runtime/actionReads.d.ts.map +1 -0
- package/dist/runtime/admission.d.ts +13 -5
- package/dist/runtime/admission.d.ts.map +1 -1
- package/dist/runtime/failure/issueReport.d.ts +2 -0
- package/dist/runtime/failure/issueReport.d.ts.map +1 -1
- package/dist/runtime/resources.d.ts +14 -0
- package/dist/runtime/resources.d.ts.map +1 -1
- package/dist/runtime/runtimeFactory.d.ts +13 -1
- package/dist/runtime/runtimeFactory.d.ts.map +1 -1
- package/dist/runtime/viewEngine.d.ts.map +1 -1
- package/dist/testing.js +39 -32
- package/dist/testing.js.map +1 -1
- package/dist/ui/actions/ActionSurface.d.ts.map +1 -1
- package/dist/ui/kit/focus.d.ts +34 -0
- package/dist/ui/kit/focus.d.ts.map +1 -1
- package/dist/ui/kit/popups.d.ts +11 -3
- package/dist/ui/kit/popups.d.ts.map +1 -1
- package/dist/ui/messages/actions.d.ts +1 -0
- package/dist/ui/messages/actions.d.ts.map +1 -1
- package/dist/ui/messages/definition.d.ts +1 -0
- package/dist/ui/messages/definition.d.ts.map +1 -1
- package/dist/ui/messages/en.d.ts +2 -0
- package/dist/ui/messages/en.d.ts.map +1 -1
- package/dist/ui/messages/zh-CN.d.ts.map +1 -1
- package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
- package/dist/ui.js +8353 -8277
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-m9IzLozY.js → viewRuntimeTypes-JEPw0nsg.js} +1241 -1121
- package/dist/viewRuntimeTypes-JEPw0nsg.js.map +1 -0
- package/package.json +8 -8
- package/dist/actions-CCMywJ9Z.js.map +0 -1
- package/dist/viewRuntimeTypes-m9IzLozY.js.map +0 -1
package/dist/react.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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";
|
|
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 };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Issue } from '../model/index.js';
|
|
2
|
+
import { RecordRow } from '../record/index.js';
|
|
3
|
+
import { RecordActions } from './actions.js';
|
|
4
|
+
import { RecordViewRuntime } from './viewRuntimeTypes.js';
|
|
5
|
+
/**
|
|
6
|
+
* Watches what the declared actions read off the rows of `runtime`, in a
|
|
7
|
+
* development build; anywhere else it does nothing. `told` is the engine's
|
|
8
|
+
* own: one view opened twice is told of a field once.
|
|
9
|
+
*/
|
|
10
|
+
export declare function watchActionReads(runtime: RecordViewRuntime, report: (found: Issue) => void, told: Set<string>): void;
|
|
11
|
+
/**
|
|
12
|
+
* `list` as the surface over `runtime` asks it, about `rows`: unchanged
|
|
13
|
+
* unless the runtime is watched (`watchActionReads`, development only), and
|
|
14
|
+
* then each action's rules — `hidden`, `available`, `changesAt` — read
|
|
15
|
+
* those rows through a proxy that tells of a field they did not fetch. A
|
|
16
|
+
* row not among them (the record detail's, read whole) is handed as it is,
|
|
17
|
+
* and so is every row `run` is handed.
|
|
18
|
+
*/
|
|
19
|
+
export declare function watchedActions(list: RecordActions | undefined, runtime: RecordViewRuntime | null, rows: readonly RecordRow[]): RecordActions | undefined;
|
|
20
|
+
//# sourceMappingURL=actionReads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionReads.d.ts","sourceRoot":"","sources":["../../src/runtime/actionReads.ts"],"names":[],"mappings":"AA+BA,OAAO,EAIL,KAAK,KAAK,EAEX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAA+B,aAAa,EAAE,MAAM,cAAc,CAAC;AAE/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AA0B/D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,EAC9B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAChB,IAAI,CAyCN;AAkBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,OAAO,EAAE,iBAAiB,GAAG,IAAI,EACjC,IAAI,EAAE,SAAS,SAAS,EAAE,GACzB,aAAa,GAAG,SAAS,CA2C3B"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { QueryModelDescriptor } from '@ahoo-wang/wow-client';
|
|
2
2
|
import { Issue, RuntimeLimits, ViewDefinition } from '../model/index.js';
|
|
3
3
|
import { FieldKindRegistry } from '../filter/index.js';
|
|
4
|
+
import { ViewSource } from './source.js';
|
|
4
5
|
/**
|
|
5
6
|
* What `admit` takes one of: a definition, or a resource holding one — the
|
|
6
7
|
* shape a host registers (host-integration.md 4), so a host's list of
|
|
7
|
-
* resources is passed as it is.
|
|
8
|
+
* resources is passed as it is, sources and all.
|
|
8
9
|
*/
|
|
9
10
|
export type Admissible = ViewDefinition | {
|
|
10
11
|
definition: ViewDefinition;
|
|
12
|
+
source?: ViewSource;
|
|
11
13
|
};
|
|
12
14
|
export interface AdmitOptions {
|
|
13
15
|
/** The words the definitions' keys are said in (`ViewEngineOptions.text`). */
|
|
@@ -26,10 +28,16 @@ export type AdmitFinding = Issue & {
|
|
|
26
28
|
*
|
|
27
29
|
* Each definition is admitted as the engine admits it when registered —
|
|
28
30
|
* its keys said in `text`, its own rules, its boards against every other
|
|
29
|
-
* definition (C)
|
|
30
|
-
* a source would narrow it (N5),
|
|
31
|
-
*
|
|
32
|
-
* its
|
|
31
|
+
* definition (C), each judged as declared, keys and all — and each data
|
|
32
|
+
* definition narrowed to its descriptor as a source would narrow it (N5),
|
|
33
|
+
* what that takes away said too. Given a full resource list — at least
|
|
34
|
+
* one resource carrying its `source` — a data definition passed as a
|
|
35
|
+
* resource is held to the engine's start-up check as well: a source
|
|
36
|
+
* registered under its `source` key by one of the resources passed, or
|
|
37
|
+
* `definition.source.unregistered`. A list of `{ definition }` alone says
|
|
38
|
+
* nothing of sources and is not checked for them. A definition over a
|
|
39
|
+
* source with no descriptor given is said to be, since its capabilities go
|
|
40
|
+
* unchecked.
|
|
33
41
|
*/
|
|
34
42
|
export declare function admit(definitions: readonly Admissible[], descriptors: Readonly<Record<string, QueryModelDescriptor>>, options?: AdmitOptions): AdmitFinding[];
|
|
35
43
|
//# sourceMappingURL=admission.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admission.d.ts","sourceRoot":"","sources":["../../src/runtime/admission.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"admission.d.ts","sourceRoot":"","sources":["../../src/runtime/admission.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GACpB,cAAc,GAAG;IAAE,UAAU,EAAE,cAAc,CAAC;IAAC,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAEvE,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACjC;AAED,oDAAoD;AACpD,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,KAAK,CACnB,WAAW,EAAE,SAAS,UAAU,EAAE,EAClC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,EAC3D,OAAO,GAAE,YAAiB,GACzB,YAAY,EAAE,CAkDhB"}
|
|
@@ -17,6 +17,8 @@ export declare function issueHint(code: string): string | undefined;
|
|
|
17
17
|
* definition's at once — each finding on its own line with its hint.
|
|
18
18
|
*/
|
|
19
19
|
export declare function consoleIssueReporter(sink: IssueConsole): IssueReporter;
|
|
20
|
+
/** True in a development build: `NODE_ENV` says `development`. */
|
|
21
|
+
export declare function inDevelopment(): boolean;
|
|
20
22
|
/**
|
|
21
23
|
* The reporter an engine uses when its host passes no `onIssue`: the
|
|
22
24
|
* console's, in development; none otherwise.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueReport.d.ts","sourceRoot":"","sources":["../../../src/runtime/failure/issueReport.ts"],"names":[],"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GAAG,MAAM,GAAG,SAAS,CAS1D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,aAAa,CA8BtE;AAWD,kEAAkE;AAClE,wBAAgB,aAAa,IAAI,OAAO,CAMvC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,aAAa,GAAG,SAAS,CAEhE"}
|
|
@@ -31,6 +31,8 @@ export declare abstract class EngineResources {
|
|
|
31
31
|
private readonly lacking;
|
|
32
32
|
/** Where findings go: the host's `onIssue`, or the development default. */
|
|
33
33
|
private readonly reporter;
|
|
34
|
+
/** The ids a binding named that no resource registers, each told once. */
|
|
35
|
+
private readonly unbound;
|
|
34
36
|
constructor(host: ResourceHost);
|
|
35
37
|
/**
|
|
36
38
|
* Every registered definition, by id, as it was declared: its keys
|
|
@@ -59,6 +61,18 @@ export declare abstract class EngineResources {
|
|
|
59
61
|
* that language had it and lacks it again.
|
|
60
62
|
*/
|
|
61
63
|
setText(text: TextResolver | undefined, language?: string): void;
|
|
64
|
+
/**
|
|
65
|
+
* Whether a binding the host made (`bind`, host-integration.md 4) names a
|
|
66
|
+
* registered definition. One that names none binds nothing — the routes,
|
|
67
|
+
* the reading and the actions it carries would be lost without a word, a
|
|
68
|
+
* misspelt id looking like a design — so it is told through `onIssue` as
|
|
69
|
+
* `binding.definition.unknown`, once per id. A warning, not an error: a
|
|
70
|
+
* binding may be meant for an engine nested further down (bindings pass
|
|
71
|
+
* to inner hosts), or for a resource a feature flag left out, and a
|
|
72
|
+
* binding that matches nothing breaks nothing. `ViewHost` asks this of
|
|
73
|
+
* every binding it is given.
|
|
74
|
+
*/
|
|
75
|
+
checkBinding(definitionId: string): boolean;
|
|
62
76
|
/**
|
|
63
77
|
* A finding with nobody to reject (`onIssue`), with the resource it is
|
|
64
78
|
* about where there is one.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/runtime/resources.ts"],"names":[],"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;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5E,6EAA6E;IAC7E,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiC;IACzD,6EAA6E;IAC7E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,2EAA2E;IAC3E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4B;IACrD,0EAA0E;IAC1E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;gBAEhB,IAAI,EAAE,YAAY;IAkB/C;;;OAGG;IACH,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAErD;IAED;;;;OAIG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI7C;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,EAAE,QAAQ,SAAK,GAAG,IAAI;IA6B5D;;;;;;;;;;OAUG;IACH,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAiB3C;;;OAGG;IACH,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAIvD,0DAA0D;IAC1D,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIzC,6DAA6D;IAC7D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAStC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;CAQ1C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterTree, RuntimeLimits, ViewConfig, ViewDefinition, ViewInstance, ViewScope } from '../model/index.js';
|
|
1
|
+
import { FilterTree, Issue, RuntimeLimits, ViewConfig, ViewDefinition, ViewInstance, ViewScope } from '../model/index.js';
|
|
2
2
|
import { FieldKindRegistry } from '../filter/index.js';
|
|
3
3
|
import { RuntimeEnvironment } from './environment.js';
|
|
4
4
|
import { RequestRunner } from './requestRunner.js';
|
|
@@ -31,13 +31,25 @@ interface RuntimeFactoryHost {
|
|
|
31
31
|
* where the descriptor contradicts the definition).
|
|
32
32
|
*/
|
|
33
33
|
readonly capabilities: SourceCapabilities;
|
|
34
|
+
/**
|
|
35
|
+
* A finding with nobody to reject (`onIssue`): in development, a declared
|
|
36
|
+
* action's rule that read a field its rows did not fetch (`actionReads.ts`).
|
|
37
|
+
*/
|
|
38
|
+
report?(found: Issue): void;
|
|
34
39
|
}
|
|
35
40
|
export declare class RuntimeFactory {
|
|
36
41
|
private readonly host;
|
|
37
42
|
private sequence;
|
|
43
|
+
/** The fields each view was told its actions read unfetched; see `watched`. */
|
|
44
|
+
private readonly toldUnfetched;
|
|
38
45
|
constructor(host: RuntimeFactoryHost);
|
|
39
46
|
build(definition: ViewDefinition, config: ViewConfig, identity: RuntimeIdentity, scopeFilter?: FilterTree | null): ManagedViewRuntime;
|
|
40
47
|
private buildData;
|
|
48
|
+
/**
|
|
49
|
+
* `runtime`, its declared actions' reads watched where it is a Record
|
|
50
|
+
* view's — in development only (`watchActionReads`).
|
|
51
|
+
*/
|
|
52
|
+
private watched;
|
|
41
53
|
private buildDashboard;
|
|
42
54
|
/**
|
|
43
55
|
* Holds room in the query queue for a board's panels while it is open
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../../src/runtime/runtimeFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../../src/runtime/runtimeFactory.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAOV,UAAU,EACV,KAAK,EACL,aAAa,EACb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,mBAAmB,CAAC;A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AAE,WAAW,GAClB,OAAO,CAAC,YAAY,GAAG,eAAe,GAAG,IAAI,CAAC;IAIjD,2EAA2E;IAC3E,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIvC;;;;OAIG;IACG,eAAe,CACnB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,YAAY,GAAG,eAAe,GAAG,IAAI,CAAC;IAIjD,+DAA+D;IAC/D,YAAY,IAAI,SAAS,WAAW,EAAE;IAItC;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAIjC,OAAO,IAAI,IAAI;IASf,OAAO,CAAC,MAAM;IAiBd,OAAO,CAAC,KAAK;YAWC,gBAAgB;IAQ9B;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAmBlB;;;;;OAKG;YACW,MAAM;CA0BrB"}
|
package/dist/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
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";
|
|
@@ -630,31 +630,38 @@ function $(e, t, n) {
|
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region src/runtime/admission.ts
|
|
632
632
|
function Xe(t, n, r = {}) {
|
|
633
|
-
let
|
|
634
|
-
...
|
|
633
|
+
let i = r.kinds ?? d, a = {
|
|
634
|
+
...f,
|
|
635
635
|
...r.limits
|
|
636
|
-
},
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
636
|
+
}, o = (e) => r.text?.(e), s = t.map((e) => "definition" in e ? {
|
|
637
|
+
definition: e.definition,
|
|
638
|
+
resource: !0
|
|
639
|
+
} : {
|
|
640
|
+
definition: e,
|
|
641
|
+
resource: !1
|
|
642
|
+
}), c = new Set(t.flatMap((e) => "definition" in e && e.source && e.definition.kind === "data" ? [e.definition.source] : [])), l = c.size > 0, u = new Map(s.map(({ definition: e }) => [e.id, e]));
|
|
643
|
+
return s.flatMap(({ definition: t, resource: r }) => [
|
|
644
|
+
...m(t, o).findings,
|
|
645
|
+
...l && r && t.kind === "data" && !c.has(t.source) ? [e("definition.source.unregistered", ["source"], { source: t.source })] : [],
|
|
646
|
+
...Ze(t, n, i),
|
|
647
|
+
...p(t, i, {
|
|
648
|
+
limits: a,
|
|
649
|
+
definitions: (e) => u.get(e)
|
|
650
|
+
})
|
|
651
|
+
].map((e) => ({
|
|
652
|
+
...e,
|
|
653
|
+
definition: t.id
|
|
652
654
|
})));
|
|
653
655
|
}
|
|
656
|
+
function Ze(t, n, r) {
|
|
657
|
+
if (t.kind !== "data") return [];
|
|
658
|
+
let i = n[t.source];
|
|
659
|
+
return i ? u(t, i, r).findings : [e("definition.descriptor.missing", ["source"], { source: t.source }, "warning")];
|
|
660
|
+
}
|
|
654
661
|
//#endregion
|
|
655
662
|
//#region src/testing/actions.ts
|
|
656
|
-
function
|
|
657
|
-
let d = new Map(
|
|
663
|
+
function Qe(e, l, { now: u = Date.now() } = {}) {
|
|
664
|
+
let d = new Map(l.map((e) => [e.key, e])), f = (t) => {
|
|
658
665
|
let n = e.find((e) => e.id === t);
|
|
659
666
|
if (!n) throw Error(`No action "${t}".`);
|
|
660
667
|
return n;
|
|
@@ -668,7 +675,7 @@ function Ze(e, i, { now: u = Date.now() } = {}) {
|
|
|
668
675
|
};
|
|
669
676
|
return {
|
|
670
677
|
ids: e.map((e) => e.id),
|
|
671
|
-
at: (t) =>
|
|
678
|
+
at: (t) => c(e, t).map((e) => e.id),
|
|
672
679
|
state: (e, t, n) => {
|
|
673
680
|
let r = f(e);
|
|
674
681
|
return ee(r, m(t), n ? {
|
|
@@ -676,14 +683,14 @@ function Ze(e, i, { now: u = Date.now() } = {}) {
|
|
|
676
683
|
input: p(r, n)
|
|
677
684
|
} : { now: u });
|
|
678
685
|
},
|
|
679
|
-
bulk(e, n =
|
|
680
|
-
let
|
|
686
|
+
bulk(e, n = l.map((e) => e.key), r) {
|
|
687
|
+
let i = f(e), a = t(i, n, (e) => d.get(e), r ? {
|
|
681
688
|
now: u,
|
|
682
|
-
input: p(
|
|
689
|
+
input: p(i, r)
|
|
683
690
|
} : { now: u });
|
|
684
691
|
return {
|
|
685
|
-
...
|
|
686
|
-
reasons:
|
|
692
|
+
...a,
|
|
693
|
+
reasons: o(a.refused).map(({ reason: e, keys: t }) => ({
|
|
687
694
|
reason: e,
|
|
688
695
|
count: t.length,
|
|
689
696
|
keys: t
|
|
@@ -707,19 +714,19 @@ function Ze(e, i, { now: u = Date.now() } = {}) {
|
|
|
707
714
|
required: t.required !== !1
|
|
708
715
|
})) : null;
|
|
709
716
|
},
|
|
710
|
-
choice: (e) =>
|
|
717
|
+
choice: (e) => s(f(e))?.options ?? null,
|
|
711
718
|
missing: (e, t) => {
|
|
712
719
|
let n = f(e);
|
|
713
|
-
return
|
|
720
|
+
return i(n, p(n, t));
|
|
714
721
|
},
|
|
715
|
-
changesAt: (t) => te(e, t === void 0 ?
|
|
722
|
+
changesAt: (t) => te(e, t === void 0 ? l : [m(t)], u),
|
|
716
723
|
run: (e, t, n) => {
|
|
717
724
|
let r = f(e);
|
|
718
|
-
return
|
|
725
|
+
return a(r, d.get(t), p(r, n), u);
|
|
719
726
|
}
|
|
720
727
|
};
|
|
721
728
|
}
|
|
722
729
|
//#endregion
|
|
723
|
-
export {
|
|
730
|
+
export { l as ActionRefusedError, Qe as actionHarness, Xe as admit, xe as matches, We as memorySource, re as resolveNavigation };
|
|
724
731
|
|
|
725
732
|
//# sourceMappingURL=testing.js.map
|