@pipelex/mthds-form 0.3.0 → 0.5.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/README.md +21 -7
- package/dist/chunk-25I6JDIK.js +28 -0
- package/dist/chunk-25I6JDIK.js.map +1 -0
- package/dist/chunk-5Q2W6HBA.js +201 -0
- package/dist/chunk-5Q2W6HBA.js.map +1 -0
- package/dist/chunk-GCXV76WU.js +213 -0
- package/dist/chunk-GCXV76WU.js.map +1 -0
- package/dist/chunk-GKV77RAS.js +46 -0
- package/dist/chunk-GKV77RAS.js.map +1 -0
- package/dist/chunk-IIJRJGZQ.js +128 -0
- package/dist/chunk-IIJRJGZQ.js.map +1 -0
- package/dist/chunk-IM2AHWBR.js +99 -0
- package/dist/chunk-IM2AHWBR.js.map +1 -0
- package/dist/chunk-LBFZXYCY.js +44 -0
- package/dist/chunk-LBFZXYCY.js.map +1 -0
- package/dist/chunk-OD3VYXUY.js +156 -0
- package/dist/chunk-OD3VYXUY.js.map +1 -0
- package/dist/chunk-PM55AHRO.js +52 -0
- package/dist/chunk-PM55AHRO.js.map +1 -0
- package/dist/chunk-RPA7DNSK.js +41 -0
- package/dist/chunk-RPA7DNSK.js.map +1 -0
- package/dist/chunk-V3OV2XQT.js +12 -0
- package/dist/chunk-V3OV2XQT.js.map +1 -0
- package/dist/chunk-VTPUDBSJ.js +61 -0
- package/dist/chunk-VTPUDBSJ.js.map +1 -0
- package/dist/chunk-XYQ7NXQZ.js +31 -0
- package/dist/chunk-XYQ7NXQZ.js.map +1 -0
- package/dist/chunk-YEVVR6FE.js +66 -0
- package/dist/chunk-YEVVR6FE.js.map +1 -0
- package/dist/core/contracts.d.ts +114 -0
- package/dist/core/contracts.js +4 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/core/date-format.d.ts +87 -0
- package/dist/core/date-format.js +3 -0
- package/dist/core/date-format.js.map +1 -0
- package/dist/core/derive.d.ts +55 -0
- package/dist/core/derive.js +6 -0
- package/dist/core/derive.js.map +1 -0
- package/dist/core/descriptor.d.ts +172 -0
- package/dist/core/descriptor.js +3 -0
- package/dist/core/descriptor.js.map +1 -0
- package/dist/core/gate-validator.d.ts +27 -0
- package/dist/core/gate-validator.js +4 -0
- package/dist/core/gate-validator.js.map +1 -0
- package/dist/core/gate.d.ts +144 -0
- package/dist/core/gate.js +12 -0
- package/dist/core/gate.js.map +1 -0
- package/dist/core/gating-fields.d.ts +38 -0
- package/dist/core/gating-fields.js +6 -0
- package/dist/core/gating-fields.js.map +1 -0
- package/dist/core/index.d.ts +13 -623
- package/dist/core/index.js +14 -1
- package/dist/core/normalize-schema.d.ts +30 -0
- package/dist/core/normalize-schema.js +4 -0
- package/dist/core/normalize-schema.js.map +1 -0
- package/dist/core/own-property.d.ts +46 -0
- package/dist/core/own-property.js +3 -0
- package/dist/core/own-property.js.map +1 -0
- package/dist/core/readiness.d.ts +91 -0
- package/dist/core/readiness.js +4 -0
- package/dist/core/readiness.js.map +1 -0
- package/dist/core/schema-utils.d.ts +86 -0
- package/dist/core/schema-utils.js +3 -0
- package/dist/core/schema-utils.js.map +1 -0
- package/dist/core/validation-message.d.ts +39 -0
- package/dist/core/validation-message.js +4 -0
- package/dist/core/validation-message.js.map +1 -0
- package/dist/core/values.d.ts +98 -0
- package/dist/core/values.js +10 -0
- package/dist/core/values.js.map +1 -0
- package/dist/core/wire-format.d.ts +95 -0
- package/dist/core/wire-format.js +6 -0
- package/dist/core/wire-format.js.map +1 -0
- package/dist/react/index.d.ts +43 -2
- package/dist/react/index.js +166 -64
- package/dist/react/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +7 -1
- package/dist/chunk-S6KOTTGD.js +0 -990
- package/dist/chunk-S6KOTTGD.js.map +0 -1
- package/dist/descriptor-DPrrfAjL.d.ts +0 -101
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { apiInputsFromSchemaData, buildRunInputsSchema, gateRunInputs, prepareRunInputs, validateRunInputs } from '../chunk-IM2AHWBR.js';
|
|
2
|
+
import '../chunk-LBFZXYCY.js';
|
|
3
|
+
import '../chunk-GCXV76WU.js';
|
|
4
|
+
import '../chunk-PM55AHRO.js';
|
|
5
|
+
import '../chunk-VTPUDBSJ.js';
|
|
6
|
+
import '../chunk-GKV77RAS.js';
|
|
7
|
+
import '../chunk-YEVVR6FE.js';
|
|
8
|
+
import '../chunk-OD3VYXUY.js';
|
|
9
|
+
import '../chunk-XYQ7NXQZ.js';
|
|
10
|
+
import '../chunk-V3OV2XQT.js';
|
|
11
|
+
//# sourceMappingURL=gate.js.map
|
|
12
|
+
//# sourceMappingURL=gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"gate.js"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PipeInputContract } from 'mthds/protocol';
|
|
2
|
+
import { RunField } from './descriptor.js';
|
|
3
|
+
import './contracts.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The gate's own field tree - structural, schema-derived, and private.
|
|
7
|
+
*
|
|
8
|
+
* `gateRunInputs` re-applies the Run button's emptiness rule with
|
|
9
|
+
* `mustBeFilled`/`fieldFilled`, which read a `RunField` tree. The RENDER tree
|
|
10
|
+
* is built from the wire input-form descriptor - but the gate must not require
|
|
11
|
+
* that artifact: the descriptor is a presentation view, and the workspace
|
|
12
|
+
* doctrine is that a machine consumer never needs it to validate a payload -
|
|
13
|
+
* `json_schema` keeps that job. A server holds contracts; it may never have
|
|
14
|
+
* asked for the view.
|
|
15
|
+
*
|
|
16
|
+
* So the gate walks the contract's `json_schema` into the MINIMAL tree the
|
|
17
|
+
* emptiness predicates read: `object` nodes with their required children,
|
|
18
|
+
* `list` nodes with their declared bounds, and opaque leaves. This is not a
|
|
19
|
+
* revival of the deleted heuristics - it reads exactly the keywords ajv itself
|
|
20
|
+
* enforces (`type`, `properties`, `required`, `items`, `minItems`, `maxItems`)
|
|
21
|
+
* and decides nothing about what a field IS. No kind here ever reaches a
|
|
22
|
+
* renderer: the tree exists for one call inside `gateRunInputs` and is not
|
|
23
|
+
* exported from the package.
|
|
24
|
+
*
|
|
25
|
+
* Agreement with the browser's readiness (which runs over the render tree) is
|
|
26
|
+
* held by construction - both trees take required children and list bounds
|
|
27
|
+
* from the same model the engine derived both artifacts from - and asserted in
|
|
28
|
+
* `gate-agreement.test.ts`, which runs both sides over one table.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The tree `gateRunInputs`' emptiness re-check runs over, one node per input,
|
|
33
|
+
* with `gating` stamped from the contract - the same `inputMustBeFilled` the
|
|
34
|
+
* Run button's `required` list is built from.
|
|
35
|
+
*/
|
|
36
|
+
declare function gatingFieldsFromInputs(inputs: Record<string, PipeInputContract>): RunField[];
|
|
37
|
+
|
|
38
|
+
export { gatingFieldsFromInputs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"gating-fields.js"}
|