@formity/system 0.1.0 → 0.2.1

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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/types/callbacks/custom.d.ts +9 -3
  9. package/dist/types/callbacks/custom.d.ts.map +1 -1
  10. package/dist/types/callbacks/static.d.ts +6 -0
  11. package/dist/types/callbacks/static.d.ts.map +1 -1
  12. package/dist/types/callbacks.d.ts +12 -0
  13. package/dist/types/callbacks.d.ts.map +1 -1
  14. package/dist/types/flow/cursor.d.ts +6 -0
  15. package/dist/types/flow/cursor.d.ts.map +1 -1
  16. package/dist/types/flow/entries.d.ts +36 -1
  17. package/dist/types/flow/entries.d.ts.map +1 -1
  18. package/dist/types/flow/flow.d.ts +6 -0
  19. package/dist/types/flow/flow.d.ts.map +1 -1
  20. package/dist/types/flow/position.d.ts +21 -1
  21. package/dist/types/flow/position.d.ts.map +1 -1
  22. package/dist/types/schema/custom.d.ts +142 -4
  23. package/dist/types/schema/custom.d.ts.map +1 -1
  24. package/dist/types/schema/static.d.ts +40 -1
  25. package/dist/types/schema/static.d.ts.map +1 -1
  26. package/dist/types/utils.d.ts +31 -0
  27. package/dist/types/utils.d.ts.map +1 -1
  28. package/dist/types/values/return.d.ts +16 -8
  29. package/dist/types/values/return.d.ts.map +1 -1
  30. package/dist/types/values/yield.d.ts +16 -8
  31. package/dist/types/values/yield.d.ts.map +1 -1
  32. package/dist/types/values.d.ts +38 -1
  33. package/dist/types/values.d.ts.map +1 -1
  34. package/dist/utils/entries/flow.cond.d.ts +25 -0
  35. package/dist/utils/entries/flow.cond.d.ts.map +1 -1
  36. package/dist/utils/entries/flow.cond.test.d.ts +2 -0
  37. package/dist/utils/entries/flow.cond.test.d.ts.map +1 -0
  38. package/dist/utils/entries/flow.d.ts +56 -1
  39. package/dist/utils/entries/flow.d.ts.map +1 -1
  40. package/dist/utils/entries/flow.list.d.ts +25 -0
  41. package/dist/utils/entries/flow.list.d.ts.map +1 -1
  42. package/dist/utils/entries/flow.list.test.d.ts +2 -0
  43. package/dist/utils/entries/flow.list.test.d.ts.map +1 -0
  44. package/dist/utils/entries/flow.loop.d.ts +25 -0
  45. package/dist/utils/entries/flow.loop.d.ts.map +1 -1
  46. package/dist/utils/entries/flow.loop.test.d.ts +2 -0
  47. package/dist/utils/entries/flow.loop.test.d.ts.map +1 -0
  48. package/dist/utils/entries/flow.switch.d.ts +32 -0
  49. package/dist/utils/entries/flow.switch.d.ts.map +1 -0
  50. package/dist/utils/entries/flow.switch.test.d.ts +2 -0
  51. package/dist/utils/entries/flow.switch.test.d.ts.map +1 -0
  52. package/dist/utils/entries/flow.test.d.ts +2 -0
  53. package/dist/utils/entries/flow.test.d.ts.map +1 -0
  54. package/dist/utils/entries/form.d.ts +26 -0
  55. package/dist/utils/entries/form.d.ts.map +1 -1
  56. package/dist/utils/entries/form.test.d.ts +2 -0
  57. package/dist/utils/entries/form.test.d.ts.map +1 -0
  58. package/dist/utils/flow.d.ts +8 -0
  59. package/dist/utils/flow.d.ts.map +1 -1
  60. package/dist/utils/flow.test.d.ts +2 -0
  61. package/dist/utils/flow.test.d.ts.map +1 -0
  62. package/dist/utils/form.d.ts +12 -0
  63. package/dist/utils/form.d.ts.map +1 -1
  64. package/dist/utils/form.test.d.ts +2 -0
  65. package/dist/utils/form.test.d.ts.map +1 -0
  66. package/dist/utils/navigate.d.ts +41 -0
  67. package/dist/utils/navigate.d.ts.map +1 -1
  68. package/dist/utils/navigate.test.d.ts +2 -0
  69. package/dist/utils/navigate.test.d.ts.map +1 -0
  70. package/dist/utils/schema/flow.cond.d.ts +27 -0
  71. package/dist/utils/schema/flow.cond.d.ts.map +1 -1
  72. package/dist/utils/schema/flow.cond.test.d.ts +2 -0
  73. package/dist/utils/schema/flow.cond.test.d.ts.map +1 -0
  74. package/dist/utils/schema/flow.d.ts +35 -0
  75. package/dist/utils/schema/flow.d.ts.map +1 -1
  76. package/dist/utils/schema/flow.list.d.ts +26 -0
  77. package/dist/utils/schema/flow.list.d.ts.map +1 -1
  78. package/dist/utils/schema/flow.list.test.d.ts +2 -0
  79. package/dist/utils/schema/flow.list.test.d.ts.map +1 -0
  80. package/dist/utils/schema/flow.loop.d.ts +28 -0
  81. package/dist/utils/schema/flow.loop.d.ts.map +1 -1
  82. package/dist/utils/schema/flow.loop.test.d.ts +2 -0
  83. package/dist/utils/schema/flow.loop.test.d.ts.map +1 -0
  84. package/dist/utils/schema/flow.switch.d.ts +34 -0
  85. package/dist/utils/schema/flow.switch.d.ts.map +1 -0
  86. package/dist/utils/schema/flow.switch.test.d.ts +2 -0
  87. package/dist/utils/schema/flow.switch.test.d.ts.map +1 -0
  88. package/dist/utils/schema/flow.test.d.ts +2 -0
  89. package/dist/utils/schema/flow.test.d.ts.map +1 -0
  90. package/dist/utils/schema/form.d.ts +6 -0
  91. package/dist/utils/schema/form.d.ts.map +1 -1
  92. package/dist/utils/schema/return.d.ts +6 -0
  93. package/dist/utils/schema/return.d.ts.map +1 -1
  94. package/dist/utils/schema/variables.d.ts +6 -0
  95. package/dist/utils/schema/variables.d.ts.map +1 -1
  96. package/dist/utils/schema/yield.d.ts +6 -0
  97. package/dist/utils/schema/yield.d.ts.map +1 -1
  98. package/package.json +2 -2
@@ -1,9 +1,64 @@
1
1
  import type { ItemEntries, FlowEntries } from "../../types/flow/entries";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Returns the value that is in the given `FlowEntries` object using the following parameters:
5
+ *
6
+ * - `path`: The path within the `FlowEntries` object that contains a `FormEntries` object.
7
+ * - `name`: The name of the value within the `FormEntries` object.
8
+ * - `keys`: The list of keys that is used to access the value within the `FormEntries` object.
9
+ * - `defaultValue`: The default value to return if the value is not found.
10
+ *
11
+ * @param flow The `FlowEntries` object.
12
+ * @param path The path within the `FlowEntries` object that contains a `FormEntries` object.
13
+ * @param name The name of the value within the `FormEntries` object.
14
+ * @param keys The list of keys that is used to access the value within the `FormEntries` object.
15
+ * @param defaultValue The default value to return if the value is not found.
16
+ * @returns The value that is in the given `FlowEntries` object or the default value if the value is not found.
17
+ */
3
18
  export declare function get(flow: FlowEntries, path: Position[], name: string, keys: PropertyKey[], defaultValue: unknown): unknown;
4
- export declare function set(flow: FlowEntries, path: Position[], name: string, keys: PropertyKey[], value: unknown): FlowEntries;
19
+ /**
20
+ * Sets the value in the given `FlowEntries` object using the following parameters:
21
+ *
22
+ * - `path`: The path within the `FlowEntries` object that contains a `FormEntries` object.
23
+ * - `name`: The name of the value within the `FormEntries` object.
24
+ * - `keys`: The list of keys that is used to access the value within the `FormEntries` object.
25
+ * - `value`: The value to set.
26
+ *
27
+ * @param flow The `FlowEntries` object.
28
+ * @param path The path within the `FlowEntries` object that contains a `FormEntries` object.
29
+ * @param name The name of the value within the `FormEntries` object.
30
+ * @param keys The list of keys that is used to access the value within the `FormEntries` object.
31
+ * @param data The value to set.
32
+ * @returns The updated `FlowEntries` object.
33
+ */
34
+ export declare function set(flow: FlowEntries, path: Position[], name: string, keys: PropertyKey[], data: unknown): FlowEntries;
35
+ /**
36
+ * Creates a `FlowEntries` object.
37
+ *
38
+ * @returns The created `FlowEntries` object.
39
+ */
5
40
  export declare function create(position: Position): FlowEntries;
41
+ /**
42
+ * Clones a `FlowEntries` object.
43
+ *
44
+ * @param flow A `FlowEntries` object.
45
+ * @returns The cloned `FlowEntries` object.
46
+ */
6
47
  export declare function clone(flow: FlowEntries): FlowEntries;
48
+ /**
49
+ * Returns the `ItemEntries` object at the given position within the given `FlowEntries` object, or `null` if there is no item at the given position.
50
+ *
51
+ * @param flow The `FlowEntries` object.
52
+ * @param position The position within the `FlowEntries` object.
53
+ * @returns The `ItemEntries` object at the given position within the `FlowEntries` object, or `null` if there is no item at the given position.
54
+ */
7
55
  export declare function getItem(flow: FlowEntries, position: Position): ItemEntries | null;
56
+ /**
57
+ * Sets the `ItemEntries` object at the given position within the given `FlowEntries` object.
58
+ *
59
+ * @param flow The `FlowEntries` object.
60
+ * @param position The position within the `FlowEntries` object.
61
+ * @param item The `ItemEntries` object to set.
62
+ */
8
63
  export declare function setItem(flow: FlowEntries, position: Position, item: ItemEntries): void;
9
64
  //# sourceMappingURL=flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAO1D,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,QAAQ,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,OAAO,GACpB,OAAO,CAUT;AAED,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,QAAQ,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,KAAK,EAAE,OAAO,GACb,WAAW,CA2Bb;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,CAStD;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CASpD;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CASpB;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CASN"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAQ1D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,QAAQ,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,OAAO,GACpB,OAAO,CAUT;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,QAAQ,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,IAAI,EAAE,OAAO,GACZ,WAAW,CA2Bb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,CAWtD;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAWpD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CAWpB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CAWN"}
@@ -1,7 +1,32 @@
1
1
  import type { ItemEntries, FlowEntries, ListEntries } from "../../types/flow/entries";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Creates a `ListEntries` object.
5
+ *
6
+ * @returns The created `ListEntries` object.
7
+ */
3
8
  export declare function create(): FlowEntries;
9
+ /**
10
+ * Clones a `ListEntries` object.
11
+ *
12
+ * @param flow A `ListEntries` object.
13
+ * @returns The cloned `ListEntries` object.
14
+ */
4
15
  export declare function clone(flow: ListEntries): FlowEntries;
16
+ /**
17
+ * Returns the `ItemEntries` object at the given position within the given `ListEntries` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `ListEntries` object.
20
+ * @param position The position within the `ListEntries` object.
21
+ * @returns The `ItemEntries` object at the given position within the `ListEntries` object, or `null` if there is no item at the given position.
22
+ */
5
23
  export declare function getItem(flow: ListEntries, position: Position): ItemEntries | null;
24
+ /**
25
+ * Sets the `ItemEntries` object at the given position within the given `ListEntries` object.
26
+ *
27
+ * @param flow The `ListEntries` object.
28
+ * @param position The position within the `ListEntries` object.
29
+ * @param item The `ItemEntries` object to set.
30
+ */
6
31
  export declare function setItem(flow: ListEntries, position: Position, item: ItemEntries): void;
7
32
  //# sourceMappingURL=flow.list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE,wBAAgB,MAAM,IAAI,WAAW,CAEpC;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAEpD;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CAIpB;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CAGN"}
1
+ {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,WAAW,CAEpC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CAIpB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.list.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.list.test.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.list.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,32 @@
1
1
  import type { ItemEntries, FlowEntries, LoopEntries } from "../../types/flow/entries";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Creates a `LoopEntries` object.
5
+ *
6
+ * @returns The created `LoopEntries` object.
7
+ */
3
8
  export declare function create(): FlowEntries;
9
+ /**
10
+ * Clones a `LoopEntries` object.
11
+ *
12
+ * @param flow A `LoopEntries` object.
13
+ * @returns The cloned `LoopEntries` object.
14
+ */
4
15
  export declare function clone(flow: LoopEntries): FlowEntries;
16
+ /**
17
+ * Returns the `ItemEntries` object at the given position within the given `LoopEntries` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `LoopEntries` object.
20
+ * @param position The position within the `LoopEntries` object.
21
+ * @returns The `ItemEntries` object at the given position within the `LoopEntries` object, or `null` if there is no item at the given position.
22
+ */
5
23
  export declare function getItem(flow: LoopEntries, position: Position): ItemEntries | null;
24
+ /**
25
+ * Sets the `ItemEntries` object at the given position within the given `LoopEntries` object.
26
+ *
27
+ * @param flow The `LoopEntries` object.
28
+ * @param position The position within the `LoopEntries` object.
29
+ * @param item The `ItemEntries` object to set.
30
+ */
6
31
  export declare function setItem(flow: LoopEntries, position: Position, item: ItemEntries): void;
7
32
  //# sourceMappingURL=flow.loop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.loop.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE,wBAAgB,MAAM,IAAI,WAAW,CAEpC;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAEpD;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CAIpB;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CAGN"}
1
+ {"version":3,"file":"flow.loop.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,WAAW,CAEpC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CAIpB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.loop.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.loop.test.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.loop.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import type { ItemEntries, FlowEntries, SwitchEntries } from "../../types/flow/entries";
2
+ import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Creates a `SwitchEntries` object.
5
+ *
6
+ * @returns The created `SwitchEntries` object.
7
+ */
8
+ export declare function create(): FlowEntries;
9
+ /**
10
+ * Clones a `SwitchEntries` object.
11
+ *
12
+ * @param flow A `SwitchEntries` object.
13
+ * @returns The cloned `SwitchEntries` object.
14
+ */
15
+ export declare function clone(flow: SwitchEntries): FlowEntries;
16
+ /**
17
+ * Returns the `ItemEntries` object at the given position within the given `SwitchEntries` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `SwitchEntries` object.
20
+ * @param position The position within the `SwitchEntries` object.
21
+ * @returns The `ItemEntries` object at the given position within the `SwitchEntries` object, or `null` if there is no item at the given position.
22
+ */
23
+ export declare function getItem(flow: SwitchEntries, position: Position): ItemEntries | null;
24
+ /**
25
+ * Sets the `ItemEntries` object at the given position within the given `SwitchEntries` object.
26
+ *
27
+ * @param flow The `SwitchEntries` object.
28
+ * @param position The position within the `SwitchEntries` object.
29
+ * @param item The `ItemEntries` object to set.
30
+ */
31
+ export declare function setItem(flow: SwitchEntries, position: Position, item: ItemEntries): void;
32
+ //# sourceMappingURL=flow.switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.switch.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACd,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAkB,MAAM,2BAA2B,CAAC;AAE1E;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,WAAW,CAEpC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,aAAa,GAAG,WAAW,CAQtD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ,GACjB,WAAW,GAAG,IAAI,CAUpB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,WAAW,GAChB,IAAI,CAWN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.switch.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.switch.test.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.switch.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.test.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/flow.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,30 @@
1
1
  import type { FormEntries } from "../../types/flow/entries";
2
+ /**
3
+ * Returns the value that is in the given `FormEntries` object using the following parameters:
4
+ *
5
+ * - `name`: The name of the value within the `FormEntries` object.
6
+ * - `keys`: The list of keys that is used to access the value within the `FormEntries` object.
7
+ * - `defaultValue`: The default value to return if the value is not found.
8
+ *
9
+ * @param form The `FormEntries` object.
10
+ * @param name The name of the value within the `FormEntries` object.
11
+ * @param keys The list of keys that is used to access the value within the `FormEntries` object.
12
+ * @param defaultValue The default value to return if the value is not found.
13
+ * @returns The value that is in the given `FormEntries` object or the default value if the value is not found.
14
+ */
2
15
  export declare function get(form: FormEntries, name: string, keys: PropertyKey[], defaultValue: unknown): unknown;
16
+ /**
17
+ * Sets the value in the given `FormEntries` object using the following parameters:
18
+ *
19
+ * - `name`: The name of the value within the `FormEntries` object.
20
+ * - `keys`: The list of keys that is used to access the value within the `FormEntries` object.
21
+ * - `data`: The value to set.
22
+ *
23
+ * @param form The `FormEntries` object.
24
+ * @param name The name of the value within the `FormEntries` object.
25
+ * @param keys The list of keys that is used to access the value within the `FormEntries` object.
26
+ * @param data The value to set.
27
+ * @returns The updated `FormEntries` object.
28
+ */
3
29
  export declare function set(form: FormEntries, name: string, keys: PropertyKey[], data: unknown): FormEntries;
4
30
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,0BAA0B,CAAC;AAEzE,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,OAAO,GACpB,OAAO,CAaT;AAED,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,IAAI,EAAE,OAAO,GACZ,WAAW,CAsBb"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,0BAA0B,CAAC;AAEzE;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,OAAO,GACpB,OAAO,CAaT;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,IAAI,EAAE,OAAO,GACZ,WAAW,CAsBb"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.test.d.ts","sourceRoot":"","sources":["../../../src/utils/entries/form.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,13 @@
1
1
  import type { Flow } from "../types/flow/flow";
2
2
  import type { ListSchema as CustomListSchema } from "../types/schema/custom";
3
3
  import type { ListValues } from "../types/values";
4
+ /**
5
+ * Returns the current state of the multi-step form after updating the values of the current form.
6
+ *
7
+ * @param flow The current state of the multi-step form.
8
+ * @param schema The `ListSchema` object representing the multi-step form.
9
+ * @param values An object containing the values of the current form.
10
+ * @returns The current state of the multi-step form after updating the values of the current form.
11
+ */
4
12
  export declare function getFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, values: object): Flow;
5
13
  //# sourceMappingURL=flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/utils/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,wBAAgB,OAAO,CACrB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,GACb,IAAI,CAGN"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/utils/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,GACb,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.test.d.ts","sourceRoot":"","sources":["../../src/utils/flow.test.ts"],"names":[],"mappings":""}
@@ -2,5 +2,17 @@ import type { Flow } from "../types/flow/flow";
2
2
  import type { ListSchema as CustomListSchema } from "../types/schema/custom";
3
3
  import type { ListValues } from "../types/values";
4
4
  import type { OnNext, OnBack, GetFlow, SetFlow } from "../types/callbacks";
5
+ /**
6
+ * Returns the rendered form for the current step of the multi-step form.
7
+ *
8
+ * @param flow The current state of the multi-step form.
9
+ * @param schema The `ListSchema` object representing the multi-step form.
10
+ * @param params An object containing the parameters for the form.
11
+ * @param onNext A callback function used to navigate to the next step of the multi-step form.
12
+ * @param onBack A callback function used to navigate to the previous step of the multi-step form.
13
+ * @param getFlow A callback function used to get the current state of the multi-step form.
14
+ * @param setFlow A callback function used to set the current state of the multi-step form.
15
+ * @returns The rendered form for the current step of the multi-step form.
16
+ */
5
17
  export declare function getForm<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, params: Params, onNext: OnNext, onBack: OnBack, getFlow: GetFlow, setFlow: SetFlow): Render;
6
18
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAK3E,wBAAgB,OAAO,CACrB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,GACf,MAAM,CAYR"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAK3E;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CACrB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,GACf,MAAM,CAYR"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.test.d.ts","sourceRoot":"","sources":["../../src/utils/form.test.ts"],"names":[],"mappings":""}
@@ -3,7 +3,48 @@ import type { ListSchema as CustomListSchema } from "../types/schema/custom";
3
3
  import type { OnYield as CustomOnYield } from "../types/callbacks/custom";
4
4
  import type { OnReturn as CustomOnReturn } from "../types/callbacks/custom";
5
5
  import type { ListValues } from "../types/values";
6
+ /**
7
+ * Initializes the multi-step form and returns its initial state, including a cursor
8
+ * pointing to the first form step. If no form step is found, or if a return operation
9
+ * is encountered before reaching a form, an error is thrown.
10
+ *
11
+ * During traversal of the multi-step form, the `onYield` callback is triggered whenever
12
+ * a yield operation is encountered, allowing for intermediate values to be processed.
13
+ *
14
+ * @param schema The `ListSchema` object that defines the structure and behavior of the multi-step form.
15
+ * @param values An object containing the initial input values for the multi-step form.
16
+ * @param onYield A callback function triggered when the multi-step form yields values.
17
+ * @returns The initial state of the form as a `Flow` object.
18
+ *
19
+ * @throws An error if no form step is found or if a return operation is encountered before a form step.
20
+ */
6
21
  export declare function initFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(schema: CustomListSchema<Render, Values, Inputs, Params>, values: Inputs, onYield: CustomOnYield<Values>): Flow;
22
+ /**
23
+ * Navigates to the next form step of the multi-step form and returns the updated state.
24
+ * If there is no next form step, the returned state contains the current form step.
25
+ *
26
+ * The `onYield` callback is triggered whenever a yield operation is encountered during traversal,
27
+ * allowing for intermediate values to be processed.
28
+ *
29
+ * The `onReturn` callback is triggered whenever a return operation is encountered during traversal,
30
+ * allowing for final values to be processed.
31
+ *
32
+ * @param flow The current state of the multi-step form.
33
+ * @param schema The `ListSchema` object representing the multi-step form.
34
+ * @param values An object containing the generated values within the multi-step form.
35
+ * @param onYield A callback function triggered when the multi-step form yields values.
36
+ * @param onReturn A callback function triggered when the multi-step form returns values.
37
+ * @returns The updated state of the multi-step form.
38
+ */
7
39
  export declare function nextFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, values: object, onYield: CustomOnYield<Values>, onReturn: CustomOnReturn<Values>): Flow;
40
+ /**
41
+ * Navigates to the previous form step of the multi-step form and returns the updated state.
42
+ * If there is no previous form step, the returned state contains the current form step.
43
+ *
44
+ * @param flow The current state of the multi-step form.
45
+ * @param schema The `ListSchema` object representing the multi-step form.
46
+ * @param values An object containing the generated values within the multi-step form.
47
+ * @returns The updated state of the multi-step form.
48
+ */
8
49
  export declare function prevFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, values: object): Flow;
9
50
  //# sourceMappingURL=navigate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../src/utils/navigate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAUlD,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,GAC7B,IAAI,CAKN;AA4ED,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,QAAQ,EAAE,cAAc,CAAC,MAAM,CAAC,QAMjC;AAkHD,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,GACb,IAAI,CAGN"}
1
+ {"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../src/utils/navigate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAUlD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,GAC7B,IAAI,CAKN;AA4ED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,QAAQ,EAAE,cAAc,CAAC,MAAM,CAAC,QAMjC;AAkHD;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,GACb,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=navigate.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigate.test.d.ts","sourceRoot":"","sources":["../../src/utils/navigate.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,34 @@
1
1
  import type { ItemSchema, CondSchema } from "../../types/schema/static";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Type guard for `CondSchema` objects.
5
+ *
6
+ * @param schema An `ItemSchema` object.
7
+ * @returns A boolean indicating whether the `schema` is a `CondSchema` object.
8
+ */
3
9
  export declare function is(schema: ItemSchema): schema is CondSchema;
10
+ /**
11
+ * Returns the initial position for the given `CondSchema` object if there is an initial position, otherwise it returns `null`.
12
+ *
13
+ * @param schema A `CondSchema` object.
14
+ * @param values An object containing the generated values within the multi-step form.
15
+ * @returns A `Position` object representing the initial position, or `null` if there is no initial position.
16
+ */
4
17
  export declare function into(schema: CondSchema, values: object): Position | null;
18
+ /**
19
+ * Returns the next position for the given `CondSchema` object if there is a next position, otherwise it returns `null`.
20
+ *
21
+ * @param schema A `CondSchema` object.
22
+ * @param position A `Position` object representing the current position.
23
+ * @returns A `Position` object representing the next position, or `null` if there is no next position.
24
+ */
5
25
  export declare function next(schema: CondSchema, position: Position): Position | null;
26
+ /**
27
+ * Returns the `ItemSchema` object at the given position within the given `CondSchema` object.
28
+ *
29
+ * @param schema The `CondSchema` object.
30
+ * @param position The position within the `CondSchema` object.
31
+ * @returns The `ItemSchema` object at the given position within the `CondSchema` object.
32
+ */
6
33
  export declare function at(schema: CondSchema, position: Position): ItemSchema;
7
34
  //# sourceMappingURL=flow.cond.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.cond.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.cond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWxE;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
1
+ {"version":3,"file":"flow.cond.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.cond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWxE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.cond.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.cond.test.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.cond.test.ts"],"names":[],"mappings":""}
@@ -1,8 +1,43 @@
1
1
  import type { ItemSchema, FlowSchema } from "../../types/schema/static";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Type guard for `FlowSchema` objects.
5
+ *
6
+ * @param schema An `ItemSchema` object.
7
+ * @returns A boolean indicating whether the `schema` is a `FlowSchema` object.
8
+ */
3
9
  export declare function is(schema: ItemSchema): schema is FlowSchema;
10
+ /**
11
+ * Returns the initial position for the given `FlowSchema` object if there is an initial position, otherwise it returns `null`.
12
+ *
13
+ * @param schema A `FlowSchema` object.
14
+ * @param values An object containing the generated values within the multi-step form.
15
+ * @returns A `Position` object representing the initial position, or `null` if there is no initial position.
16
+ */
4
17
  export declare function into(schema: FlowSchema, values: object): Position | null;
18
+ /**
19
+ * Returns the next position for the given `FlowSchema` object if there is a next position, otherwise it returns `null`.
20
+ *
21
+ * @param schema A `FlowSchema` object.
22
+ * @param position A `Position` object representing the current position.
23
+ * @param values An object containing the generated values within the multi-step form.
24
+ * @returns A `Position` object representing the next position, or `null` if there is no next position.
25
+ */
5
26
  export declare function next(schema: FlowSchema, position: Position, values: object): Position | null;
27
+ /**
28
+ * Returns the `ItemSchema` object at the given position within the given `FlowSchema` object.
29
+ *
30
+ * @param schema The `FlowSchema` object.
31
+ * @param position The position within the `FlowSchema` object.
32
+ * @returns The `ItemSchema` object at the given position within the `FlowSchema` object.
33
+ */
6
34
  export declare function at(schema: FlowSchema, position: Position): ItemSchema;
35
+ /**
36
+ * Returns the `ItemSchema` object at the given path within the given `FlowSchema` object.
37
+ *
38
+ * @param schema The `FlowSchema` object.
39
+ * @param path The path within the `FlowSchema` object.
40
+ * @returns The `ItemSchema` object at the given path within the `FlowSchema` object.
41
+ */
7
42
  export declare function find(schema: FlowSchema, path: Position[]): ItemSchema;
8
43
  //# sourceMappingURL=flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAM1D,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAM3D;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWxE;AAED,wBAAgB,IAAI,CAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,QAAQ,GAAG,IAAI,CAWjB;AAED,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAWrE;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,cAOxD"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAO1D;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAO3D;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAcxE;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,QAAQ,GAAG,IAAI,CAcjB;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAcrE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,cAOxD"}
@@ -1,7 +1,33 @@
1
1
  import type { ItemSchema, ListSchema } from "../../types/schema/static";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Type guard for `ListSchema` objects.
5
+ *
6
+ * @param schema An `ItemSchema` object.
7
+ * @returns A boolean indicating whether the `schema` is a `ListSchema` object.
8
+ */
3
9
  export declare function is(schema: ItemSchema): schema is ListSchema;
10
+ /**
11
+ * Returns the initial position for the given `ListSchema` object if there is an initial position, otherwise it returns `null`.
12
+ *
13
+ * @param schema A `ListSchema` object.
14
+ * @returns A `Position` object representing the initial position, or `null` if there is no initial position.
15
+ */
4
16
  export declare function into(schema: ListSchema): Position | null;
17
+ /**
18
+ * Returns the next position for the given `ListSchema` object if there is a next position, otherwise it returns `null`.
19
+ *
20
+ * @param schema A `ListSchema` object.
21
+ * @param position A `Position` object representing the current position.
22
+ * @returns A `Position` object representing the next position, or `null` if there is no next position.
23
+ */
5
24
  export declare function next(schema: ListSchema, position: Position): Position | null;
25
+ /**
26
+ * Returns the `ItemSchema` object at the given position within the given `ListSchema` object.
27
+ *
28
+ * @param schema The `ListSchema` object.
29
+ * @param position The position within the `ListSchema` object.
30
+ * @returns The `ItemSchema` object at the given position within the `ListSchema` object.
31
+ */
6
32
  export declare function at(schema: ListSchema, position: Position): ItemSchema;
7
33
  //# sourceMappingURL=flow.list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAKxD;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
1
+ {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAKxD;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.list.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.list.test.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.list.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,35 @@
1
1
  import type { ItemSchema, LoopSchema } from "../../types/schema/static";
2
2
  import type { Position } from "../../types/flow/position";
3
+ /**
4
+ * Type guard for `LoopSchema` objects.
5
+ *
6
+ * @param schema An `ItemSchema` object.
7
+ * @returns A boolean indicating whether the `schema` is a `LoopSchema` object.
8
+ */
3
9
  export declare function is(schema: ItemSchema): schema is LoopSchema;
10
+ /**
11
+ * Returns the initial position for the given `LoopSchema` object if there is an initial position, otherwise it returns `null`.
12
+ *
13
+ * @param schema A `LoopSchema` object.
14
+ * @param values An object containing the generated values within the multi-step form.
15
+ * @returns A `Position` object representing the initial position, or `null` if there is no initial position.
16
+ */
4
17
  export declare function into(schema: LoopSchema, values: object): Position | null;
18
+ /**
19
+ * Returns the next position for the given `LoopSchema` object if there is a next position, otherwise it returns `null`.
20
+ *
21
+ * @param schema A `LoopSchema` object.
22
+ * @param position A `Position` object representing the current position.
23
+ * @param values An object containing the generated values within the multi-step form.
24
+ * @returns A `Position` object representing the next position, or `null` if there is no next position.
25
+ */
5
26
  export declare function next(schema: LoopSchema, position: Position, values: object): Position | null;
27
+ /**
28
+ * Returns the `ItemSchema` object at the given position within the given `LoopSchema` object.
29
+ *
30
+ * @param schema The `LoopSchema` object.
31
+ * @param position The position within the `LoopSchema` object.
32
+ * @returns The `ItemSchema` object at the given position within the `LoopSchema` object.
33
+ */
6
34
  export declare function at(schema: LoopSchema, position: Position): ItemSchema;
7
35
  //# sourceMappingURL=flow.loop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.loop.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAOxE;AAED,wBAAgB,IAAI,CAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,QAAQ,GAAG,IAAI,CASjB;AAED,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
1
+ {"version":3,"file":"flow.loop.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAOxE;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,QAAQ,GAAG,IAAI,CASjB;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.loop.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.loop.test.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.loop.test.ts"],"names":[],"mappings":""}