@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.
Files changed (81) hide show
  1. package/README.md +21 -7
  2. package/dist/chunk-25I6JDIK.js +28 -0
  3. package/dist/chunk-25I6JDIK.js.map +1 -0
  4. package/dist/chunk-5Q2W6HBA.js +201 -0
  5. package/dist/chunk-5Q2W6HBA.js.map +1 -0
  6. package/dist/chunk-GCXV76WU.js +213 -0
  7. package/dist/chunk-GCXV76WU.js.map +1 -0
  8. package/dist/chunk-GKV77RAS.js +46 -0
  9. package/dist/chunk-GKV77RAS.js.map +1 -0
  10. package/dist/chunk-IIJRJGZQ.js +128 -0
  11. package/dist/chunk-IIJRJGZQ.js.map +1 -0
  12. package/dist/chunk-IM2AHWBR.js +99 -0
  13. package/dist/chunk-IM2AHWBR.js.map +1 -0
  14. package/dist/chunk-LBFZXYCY.js +44 -0
  15. package/dist/chunk-LBFZXYCY.js.map +1 -0
  16. package/dist/chunk-OD3VYXUY.js +156 -0
  17. package/dist/chunk-OD3VYXUY.js.map +1 -0
  18. package/dist/chunk-PM55AHRO.js +52 -0
  19. package/dist/chunk-PM55AHRO.js.map +1 -0
  20. package/dist/chunk-RPA7DNSK.js +41 -0
  21. package/dist/chunk-RPA7DNSK.js.map +1 -0
  22. package/dist/chunk-V3OV2XQT.js +12 -0
  23. package/dist/chunk-V3OV2XQT.js.map +1 -0
  24. package/dist/chunk-VTPUDBSJ.js +61 -0
  25. package/dist/chunk-VTPUDBSJ.js.map +1 -0
  26. package/dist/chunk-XYQ7NXQZ.js +31 -0
  27. package/dist/chunk-XYQ7NXQZ.js.map +1 -0
  28. package/dist/chunk-YEVVR6FE.js +66 -0
  29. package/dist/chunk-YEVVR6FE.js.map +1 -0
  30. package/dist/core/contracts.d.ts +114 -0
  31. package/dist/core/contracts.js +4 -0
  32. package/dist/core/contracts.js.map +1 -0
  33. package/dist/core/date-format.d.ts +87 -0
  34. package/dist/core/date-format.js +3 -0
  35. package/dist/core/date-format.js.map +1 -0
  36. package/dist/core/derive.d.ts +55 -0
  37. package/dist/core/derive.js +6 -0
  38. package/dist/core/derive.js.map +1 -0
  39. package/dist/core/descriptor.d.ts +172 -0
  40. package/dist/core/descriptor.js +3 -0
  41. package/dist/core/descriptor.js.map +1 -0
  42. package/dist/core/gate-validator.d.ts +27 -0
  43. package/dist/core/gate-validator.js +4 -0
  44. package/dist/core/gate-validator.js.map +1 -0
  45. package/dist/core/gate.d.ts +144 -0
  46. package/dist/core/gate.js +12 -0
  47. package/dist/core/gate.js.map +1 -0
  48. package/dist/core/gating-fields.d.ts +38 -0
  49. package/dist/core/gating-fields.js +6 -0
  50. package/dist/core/gating-fields.js.map +1 -0
  51. package/dist/core/index.d.ts +13 -623
  52. package/dist/core/index.js +14 -1
  53. package/dist/core/normalize-schema.d.ts +30 -0
  54. package/dist/core/normalize-schema.js +4 -0
  55. package/dist/core/normalize-schema.js.map +1 -0
  56. package/dist/core/own-property.d.ts +46 -0
  57. package/dist/core/own-property.js +3 -0
  58. package/dist/core/own-property.js.map +1 -0
  59. package/dist/core/readiness.d.ts +91 -0
  60. package/dist/core/readiness.js +4 -0
  61. package/dist/core/readiness.js.map +1 -0
  62. package/dist/core/schema-utils.d.ts +86 -0
  63. package/dist/core/schema-utils.js +3 -0
  64. package/dist/core/schema-utils.js.map +1 -0
  65. package/dist/core/validation-message.d.ts +39 -0
  66. package/dist/core/validation-message.js +4 -0
  67. package/dist/core/validation-message.js.map +1 -0
  68. package/dist/core/values.d.ts +98 -0
  69. package/dist/core/values.js +10 -0
  70. package/dist/core/values.js.map +1 -0
  71. package/dist/core/wire-format.d.ts +95 -0
  72. package/dist/core/wire-format.js +6 -0
  73. package/dist/core/wire-format.js.map +1 -0
  74. package/dist/react/index.d.ts +43 -2
  75. package/dist/react/index.js +166 -64
  76. package/dist/react/index.js.map +1 -1
  77. package/dist/styles.css +1 -1
  78. package/package.json +7 -1
  79. package/dist/chunk-S6KOTTGD.js +0 -990
  80. package/dist/chunk-S6KOTTGD.js.map +0 -1
  81. 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,6 @@
1
+ export { gatingFieldsFromInputs } from '../chunk-YEVVR6FE.js';
2
+ import '../chunk-OD3VYXUY.js';
3
+ import '../chunk-XYQ7NXQZ.js';
4
+ import '../chunk-V3OV2XQT.js';
5
+ //# sourceMappingURL=gating-fields.js.map
6
+ //# sourceMappingURL=gating-fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"gating-fields.js"}