ballerina-core 1.0.220 → 1.0.222

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 (213) hide show
  1. package/bin/main.d.ts +1 -1
  2. package/bin/src/api-response-handler/coroutines/runner.d.ts +9 -2
  3. package/bin/src/api-response-handler/state.d.ts +12 -12
  4. package/bin/src/async/domains/mirroring/domains/collection/coroutines/synchronizers.d.ts +400 -75
  5. package/bin/src/async/domains/mirroring/domains/collection/state.d.ts +38 -25
  6. package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-collection/state.d.ts +12 -8
  7. package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-collection-entity/state.d.ts +12 -9
  8. package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-entities/state.d.ts +17 -8
  9. package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-entity/state.d.ts +16 -13
  10. package/bin/src/async/domains/mirroring/domains/entity/state.d.ts +12 -9
  11. package/bin/src/async/domains/mirroring/domains/singleton/coroutines/synchronizers.d.ts +233 -41
  12. package/bin/src/async/domains/mirroring/domains/singleton/state.d.ts +24 -15
  13. package/bin/src/async/domains/mirroring/domains/synchronized-entities/state.d.ts +16 -10
  14. package/bin/src/async/domains/synchronized/coroutines/synchronize.d.ts +29 -4
  15. package/bin/src/collections/domains/immutable/domains/list/state.d.ts +19 -15
  16. package/bin/src/collections/domains/immutable/domains/map/state.d.ts +30 -16
  17. package/bin/src/collections/domains/immutable/domains/orderedMap/state.d.ts +53 -25
  18. package/bin/src/collections/domains/valueOrErrors/state.d.ts +53 -27
  19. package/bin/src/coroutines/builder.d.ts +135 -49
  20. package/bin/src/coroutines/state.d.ts +186 -71
  21. package/bin/src/coroutines/template.d.ts +17 -8
  22. package/bin/src/debounced/coroutines/debounce.d.ts +15 -6
  23. package/bin/src/debounced/state.d.ts +26 -19
  24. package/bin/src/forms/domains/attachments/views/attachments-view.d.ts +4 -4
  25. package/bin/src/forms/domains/collection/domains/reference/state.d.ts +29 -22
  26. package/bin/src/forms/domains/collection/domains/selection/state.d.ts +37 -15
  27. package/bin/src/forms/domains/dispatched-forms/built-ins/state.d.ts +555 -120
  28. package/bin/src/forms/domains/dispatched-forms/built-ins/state.js +1983 -740
  29. package/bin/src/forms/domains/dispatched-forms/deserializer/coroutines/runner.d.ts +22 -2
  30. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/apis/state.d.ts +119 -63
  31. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/enum/state.d.ts +35 -19
  32. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/list/state.d.ts +60 -28
  33. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.d.ts +121 -56
  34. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/map/state.d.ts +42 -15
  35. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.d.ts +70 -29
  36. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/one/state.d.ts +61 -18
  37. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/primitive/state.d.ts +20 -10
  38. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/readOnly/state.d.ts +50 -19
  39. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.d.ts +42 -11
  40. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/state.d.ts +49 -19
  41. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/state.js +129 -55
  42. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/stream/state.d.ts +29 -14
  43. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/sum/state.d.ts +49 -19
  44. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/sumUnitDate/state.d.ts +21 -13
  45. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/domains/tableCellRenderer/state.d.ts +39 -10
  46. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.d.ts +79 -34
  47. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/tuple/state.d.ts +37 -13
  48. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/union/state.d.ts +40 -15
  49. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.d.ts +107 -19
  50. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/types/state.d.ts +410 -221
  51. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.d.ts +103 -51
  52. package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.js +255 -94
  53. package/bin/src/forms/domains/dispatched-forms/deserializer/state.d.ts +327 -87
  54. package/bin/src/forms/domains/dispatched-forms/deserializer/template.d.ts +27 -2
  55. package/bin/src/forms/domains/dispatched-forms/runner/coroutines/runner.d.ts +27 -4
  56. package/bin/src/forms/domains/dispatched-forms/runner/coroutines/runner.js +136 -82
  57. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/base-64-file/state.d.ts +35 -7
  58. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/base-64-file/template.d.ts +28 -4
  59. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/boolean/state.d.ts +33 -7
  60. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/boolean/template.d.ts +25 -4
  61. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/date/state.d.ts +56 -19
  62. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/date/template.d.ts +29 -7
  63. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum/state.d.ts +43 -15
  64. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum/template.d.ts +41 -8
  65. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum-multiselect/state.d.ts +45 -11
  66. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum-multiselect/template.d.ts +42 -8
  67. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/injectables/state.d.ts +55 -19
  68. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.d.ts +76 -27
  69. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.d.ts.map +1 -1
  70. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.js.map +1 -1
  71. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.d.ts.map +1 -1
  72. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.js +104 -290
  73. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.js.map +1 -1
  74. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/lookup-type/state.d.ts +41 -7
  75. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/lookup-type/template.d.ts +45 -4
  76. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/map/state.d.ts +103 -26
  77. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/map/template.d.ts +64 -9
  78. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/number/state.d.ts +37 -7
  79. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/number/template.d.ts +29 -4
  80. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/_debouncer.d.ts +50 -13
  81. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/_initializeOne.d.ts +59 -12
  82. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/_initializeStream.d.ts +47 -11
  83. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/builder.d.ts +3868 -1065
  84. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/runner.d.ts +161 -36
  85. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/state.d.ts +245 -80
  86. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/template.d.ts +61 -10
  87. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/readOnly/state.d.ts +65 -20
  88. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/readOnly/template.d.ts +47 -6
  89. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/record/state.d.ts +81 -21
  90. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/record/template.d.ts +59 -10
  91. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream/state.d.ts +123 -49
  92. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream/template.d.ts +45 -8
  93. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream-multiselect/state.d.ts +121 -51
  94. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream-multiselect/template.d.ts +45 -8
  95. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/secret/state.d.ts +38 -8
  96. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/secret/template.d.ts +29 -4
  97. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/state.d.ts +58 -34
  98. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/string/state.d.ts +38 -8
  99. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/string/template.d.ts +29 -4
  100. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/sum/state.d.ts +93 -29
  101. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/sum/template.d.ts +55 -7
  102. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/builder.d.ts +2737 -931
  103. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/infiniteLoader.d.ts +48 -10
  104. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/initialiseFiltersAndSorting.d.ts +54 -10
  105. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/initialiseTable.d.ts +56 -12
  106. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/loadWithRetries.d.ts +33 -3
  107. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/runner.d.ts +130 -26
  108. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/state.d.ts +406 -186
  109. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/template.d.ts +102 -15
  110. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/tuple/state.d.ts +75 -18
  111. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/tuple/template.d.ts +51 -6
  112. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/union/state.d.ts +76 -18
  113. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/union/template.d.ts +51 -6
  114. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/unit/state.d.ts +45 -13
  115. package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/unit/template.d.ts +29 -6
  116. package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.d.ts +600 -440
  117. package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.d.ts.map +1 -1
  118. package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.js +5 -11
  119. package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.js.map +1 -1
  120. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.d.ts +24 -5
  121. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.d.ts +26 -6
  122. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.d.ts +23 -5
  123. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/multiSelection/state.d.ts +22 -5
  124. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.d.ts +41 -6
  125. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.d.ts +57 -7
  126. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/primitive/state.d.ts +22 -5
  127. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.d.ts +24 -5
  128. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.d.ts +26 -5
  129. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.d.ts +49 -6
  130. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/singleSelectionDispatcher/state.d.ts +22 -5
  131. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.d.ts +25 -5
  132. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.d.ts +54 -7
  133. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.d.ts +25 -5
  134. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.d.ts +25 -5
  135. package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.d.ts +44 -6
  136. package/bin/src/forms/domains/dispatched-forms/runner/domains/traversal/state.d.ts +38 -18
  137. package/bin/src/forms/domains/dispatched-forms/runner/domains/traversal/state.js +773 -423
  138. package/bin/src/forms/domains/dispatched-forms/runner/state.d.ts +90 -37
  139. package/bin/src/forms/domains/dispatched-forms/runner/template.d.ts +28 -4
  140. package/bin/src/forms/domains/launcher/coroutines/runner.d.ts +12 -4
  141. package/bin/src/forms/domains/launcher/domains/create/coroutines/runner.d.ts +16 -3
  142. package/bin/src/forms/domains/launcher/domains/create/state.d.ts +236 -121
  143. package/bin/src/forms/domains/launcher/domains/create/template.d.ts +20 -6
  144. package/bin/src/forms/domains/launcher/domains/edit/coroutines/runner.d.ts +16 -3
  145. package/bin/src/forms/domains/launcher/domains/edit/state.d.ts +230 -121
  146. package/bin/src/forms/domains/launcher/domains/edit/template.d.ts +20 -6
  147. package/bin/src/forms/domains/launcher/domains/passthrough/coroutines/runner.d.ts +20 -5
  148. package/bin/src/forms/domains/launcher/domains/passthrough/state.d.ts +123 -58
  149. package/bin/src/forms/domains/launcher/domains/passthrough/template.d.ts +23 -6
  150. package/bin/src/forms/domains/launcher/state.d.ts +62 -43
  151. package/bin/src/forms/domains/launcher/template.d.ts +35 -15
  152. package/bin/src/forms/domains/parser/coroutines/runner.d.ts +13 -5
  153. package/bin/src/forms/domains/parser/domains/built-ins/state.d.ts +135 -71
  154. package/bin/src/forms/domains/parser/domains/deltas/state.d.ts +417 -296
  155. package/bin/src/forms/domains/parser/domains/injectables/state.d.ts +29 -20
  156. package/bin/src/forms/domains/parser/domains/layout/state.d.ts +78 -49
  157. package/bin/src/forms/domains/parser/domains/predicates/domains/extractor/state.d.ts +19 -6
  158. package/bin/src/forms/domains/parser/domains/predicates/state.d.ts +503 -315
  159. package/bin/src/forms/domains/parser/domains/renderer/state.d.ts +245 -92
  160. package/bin/src/forms/domains/parser/domains/types/state.d.ts +170 -130
  161. package/bin/src/forms/domains/parser/domains/validator/state.d.ts +143 -117
  162. package/bin/src/forms/domains/parser/state.d.ts +217 -82
  163. package/bin/src/forms/domains/parser/state.js +612 -373
  164. package/bin/src/forms/domains/parser/template.d.ts +13 -5
  165. package/bin/src/forms/domains/primitives/domains/base-64-file/state.d.ts +19 -11
  166. package/bin/src/forms/domains/primitives/domains/base-64-file/template.d.ts +18 -7
  167. package/bin/src/forms/domains/primitives/domains/boolean/state.d.ts +19 -11
  168. package/bin/src/forms/domains/primitives/domains/boolean/template.d.ts +24 -8
  169. package/bin/src/forms/domains/primitives/domains/date/state.d.ts +39 -20
  170. package/bin/src/forms/domains/primitives/domains/date/template.d.ts +18 -7
  171. package/bin/src/forms/domains/primitives/domains/enum/state.d.ts +31 -15
  172. package/bin/src/forms/domains/primitives/domains/enum/template.d.ts +18 -7
  173. package/bin/src/forms/domains/primitives/domains/enum-multiselect/state.d.ts +17 -8
  174. package/bin/src/forms/domains/primitives/domains/enum-multiselect/template.d.ts +18 -7
  175. package/bin/src/forms/domains/primitives/domains/list/state.d.ts +45 -24
  176. package/bin/src/forms/domains/primitives/domains/list/template.d.ts +38 -13
  177. package/bin/src/forms/domains/primitives/domains/map/state.d.ts +68 -29
  178. package/bin/src/forms/domains/primitives/domains/map/template.d.ts +65 -25
  179. package/bin/src/forms/domains/primitives/domains/number/state.d.ts +19 -11
  180. package/bin/src/forms/domains/primitives/domains/number/template.d.ts +24 -8
  181. package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream/state.d.ts +89 -42
  182. package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream/template.d.ts +22 -8
  183. package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream-multiselect/state.d.ts +18 -9
  184. package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream-multiselect/template.d.ts +18 -7
  185. package/bin/src/forms/domains/primitives/domains/secret/state.d.ts +19 -11
  186. package/bin/src/forms/domains/primitives/domains/secret/template.d.ts +18 -7
  187. package/bin/src/forms/domains/primitives/domains/string/state.d.ts +21 -13
  188. package/bin/src/forms/domains/primitives/domains/string/template.d.ts +18 -7
  189. package/bin/src/forms/domains/primitives/domains/sum/state.d.ts +62 -22
  190. package/bin/src/forms/domains/primitives/domains/sum/template.d.ts +48 -16
  191. package/bin/src/forms/domains/primitives/domains/tuple/state.d.ts +48 -23
  192. package/bin/src/forms/domains/primitives/domains/tuple/template.d.ts +46 -18
  193. package/bin/src/forms/domains/primitives/domains/unit/state.d.ts +17 -10
  194. package/bin/src/forms/domains/primitives/domains/unit/template.d.ts +9 -4
  195. package/bin/src/forms/domains/singleton/state.d.ts +144 -43
  196. package/bin/src/forms/domains/singleton/template.d.ts +177 -88
  197. package/bin/src/infinite-data-stream/coroutines/builder.d.ts +209 -27
  198. package/bin/src/infinite-data-stream/coroutines/infiniteLoader.d.ts +21 -5
  199. package/bin/src/infinite-data-stream/coroutines/runner.d.ts +11 -3
  200. package/bin/src/infinite-data-stream/template.d.ts +10 -3
  201. package/bin/src/queue/state.d.ts +23 -7
  202. package/bin/src/template/state.d.ts +153 -45
  203. package/bin/src/validation/state.d.ts +23 -9
  204. package/bin/src/value/domains/mutable-value/state.d.ts +3 -3
  205. package/bin/src/value-infinite-data-stream/coroutines/builder.d.ts +207 -25
  206. package/bin/src/value-infinite-data-stream/coroutines/infiniteLoader.d.ts +4 -2
  207. package/bin/src/value-infinite-data-stream/coroutines/runner.d.ts +8 -2
  208. package/bin/src/value-infinite-data-stream/state.d.ts +134 -68
  209. package/bin/src/value-infinite-data-stream/template.d.ts +7 -2
  210. package/package.json +1 -1
  211. package/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.ts +17 -1
  212. package/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.tsx +44 -3
  213. package/src/forms/domains/dispatched-forms/runner/domains/deltas/state.ts +13 -22
@@ -6,89 +6,204 @@ import { BasicFun } from "../fun/state";
6
6
  import { Guid, SimpleCallback } from "../../main";
7
7
  export type DeltaT = number;
8
8
  export type Coroutine<context, state, result> = {
9
- ([context, deltaT]: [context, DeltaT]): CoroutineStep<context, state, result>;
10
- embed: <parentContext, parentState>(narrow: BasicFun<parentContext, context | undefined>, widen: BasicFun<BasicUpdater<state>, BasicUpdater<parentState>>) => Coroutine<parentContext, parentState, result>;
11
- then: <nextResult>(f: BasicFun<result, Coroutine<context, state, nextResult>>) => Coroutine<context, state, nextResult>;
12
- seq: <nextResult>(k: Coroutine<context, state, nextResult>) => Coroutine<context, state, nextResult>;
9
+ ([context, deltaT]: [context, DeltaT]): CoroutineStep<context, state, result>;
10
+ embed: <parentContext, parentState>(
11
+ narrow: BasicFun<parentContext, context | undefined>,
12
+ widen: BasicFun<BasicUpdater<state>, BasicUpdater<parentState>>,
13
+ ) => Coroutine<parentContext, parentState, result>;
14
+ then: <nextResult>(
15
+ f: BasicFun<result, Coroutine<context, state, nextResult>>,
16
+ ) => Coroutine<context, state, nextResult>;
17
+ seq: <nextResult>(
18
+ k: Coroutine<context, state, nextResult>,
19
+ ) => Coroutine<context, state, nextResult>;
13
20
  };
14
21
  export declare const Coroutine: {
15
- Create: <context, state, result>(p: BasicFun<[context, DeltaT], CoroutineStep<context, state, result>>) => Coroutine<context, state, result>;
16
- UpdateState: <context, state>(stateUpdater: BasicFun<state, BasicUpdater<state>>) => Coroutine<context, state, Unit>;
17
- SetState: <context, state>(stateUpdater: BasicUpdater<state>) => Coroutine<context, state, Unit>;
18
- GetState: <context, state>() => Coroutine<context, state, context>;
19
- Start: <context, state>() => Coroutine<context, state, Unit>;
20
- Return: <context, state, result>(result: result) => Coroutine<context, state, result>;
21
- Yield: <context, state, result>(next: Coroutine<context, state, result>) => Coroutine<context, state, result>;
22
- Waiting: <context, state, result>(msLeft: number, next: Coroutine<context, state, result>) => Coroutine<context, state, result>;
23
- MapContext: <childContext, result, parentContext, state>(p: Coroutine<childContext, state, result>, narrow: BasicFun<parentContext, childContext | undefined>) => Coroutine<parentContext, state, result>;
24
- Embed: <childContext, childState, result, parentContext, parentState>(p: Coroutine<childContext, childState, result>, narrow: BasicFun<parentContext, childContext | undefined>, widen: BasicFun<BasicUpdater<childState>, BasicUpdater<parentState>>) => Coroutine<parentContext, parentState, result>;
25
- MapState: <context, state, newState, result>(p: Coroutine<context, state, result>, f: BasicFun<BasicUpdater<state>, BasicUpdater<newState>>) => Coroutine<context, newState, result>;
26
- Tick: <context, state, result>(context: context, p: Coroutine<context, state, result>, deltaT: number) => {
22
+ Create: <context, state, result>(
23
+ p: BasicFun<[context, DeltaT], CoroutineStep<context, state, result>>,
24
+ ) => Coroutine<context, state, result>;
25
+ UpdateState: <context, state>(
26
+ stateUpdater: BasicFun<state, BasicUpdater<state>>,
27
+ ) => Coroutine<context, state, Unit>;
28
+ SetState: <context, state>(
29
+ stateUpdater: BasicUpdater<state>,
30
+ ) => Coroutine<context, state, Unit>;
31
+ GetState: <context, state>() => Coroutine<context, state, context>;
32
+ Start: <context, state>() => Coroutine<context, state, Unit>;
33
+ Return: <context, state, result>(
34
+ result: result,
35
+ ) => Coroutine<context, state, result>;
36
+ Yield: <context, state, result>(
37
+ next: Coroutine<context, state, result>,
38
+ ) => Coroutine<context, state, result>;
39
+ Waiting: <context, state, result>(
40
+ msLeft: number,
41
+ next: Coroutine<context, state, result>,
42
+ ) => Coroutine<context, state, result>;
43
+ MapContext: <childContext, result, parentContext, state>(
44
+ p: Coroutine<childContext, state, result>,
45
+ narrow: BasicFun<parentContext, childContext | undefined>,
46
+ ) => Coroutine<parentContext, state, result>;
47
+ Embed: <childContext, childState, result, parentContext, parentState>(
48
+ p: Coroutine<childContext, childState, result>,
49
+ narrow: BasicFun<parentContext, childContext | undefined>,
50
+ widen: BasicFun<BasicUpdater<childState>, BasicUpdater<parentState>>,
51
+ ) => Coroutine<parentContext, parentState, result>;
52
+ MapState: <context, state, newState, result>(
53
+ p: Coroutine<context, state, result>,
54
+ f: BasicFun<BasicUpdater<state>, BasicUpdater<newState>>,
55
+ ) => Coroutine<context, newState, result>;
56
+ Tick: <context, state, result>(
57
+ context: context,
58
+ p: Coroutine<context, state, result>,
59
+ deltaT: number,
60
+ ) =>
61
+ | {
27
62
  kind: "continuing";
28
63
  excludeOthers?: true;
29
64
  state: BasicUpdater<state> | undefined;
30
65
  next: Coroutine<context, state, result>;
31
- } | {
66
+ }
67
+ | {
32
68
  kind: "done";
33
69
  state: BasicUpdater<state> | undefined;
34
70
  result: result;
35
- };
36
- Nothing: <context, state, result>() => Coroutine<context, state, result>;
37
- Any: <context, state, result>(ps: Array<Coroutine<context, state, result>>) => Coroutine<context, state, result>;
38
- All: <context, state, result>(ps: Array<Coroutine<context, state, result>>) => Coroutine<context, state, Array<result>>;
39
- Repeat: <context, state>(p: Coroutine<context, state, Unit>) => Coroutine<context, state, Unit>;
40
- Seq: <context, state>(ps: Array<Coroutine<context, state, Unit>>) => Coroutine<context, state, Unit>;
41
- For: <context, state, element>(collection: Collection<number, element>, p: BasicFun<element, Coroutine<context, state, Unit>>) => Coroutine<context, state, Unit>;
42
- While: <context, state>(predicate: BasicFun<[context], boolean>, p: Coroutine<context, state, Unit>) => Coroutine<context, state, Unit>;
43
- Wait: <context, state>(ms: number) => Coroutine<context, state, Unit>;
44
- Await: <context, state, result, error>(promise: BasicFun<Unit, Promise<result>>, onCatch: BasicFun<any, error>, debugName?: string) => Coroutine<context, state, Sum<result, error>>;
45
- On: <eventKind, event, context extends {
46
- inboundEvents: Map<eventKind, OrderedMap<Guid, event>>;
47
- }, state extends {
48
- inboundEvents: Map<eventKind, OrderedMap<Guid, event>>;
49
- }, matchedEvent extends InboundKindFromContext<context>>(kind: matchedEvent, filter?: BasicFun<[InboundEventFromContext<context & state> & {
50
- kind: matchedEvent;
51
- }, context & state], boolean>) => Coroutine<context & state, state, InboundEventFromContext<context & state> & {
52
- kind: matchedEvent;
53
- }>;
54
- Trigger: <context, state extends {
55
- outboundEvents: Map<kind, OrderedMap<Guid, event>>;
56
- }, event extends {
57
- id: Guid;
58
- kind: kind;
59
- }, kind extends string>(event: event) => Coroutine<context & state, state, Unit>;
60
- Do: <context, state>(action: SimpleCallback<void>) => Coroutine<context, state, Unit>;
71
+ };
72
+ Nothing: <context, state, result>() => Coroutine<context, state, result>;
73
+ Any: <context, state, result>(
74
+ ps: Array<Coroutine<context, state, result>>,
75
+ ) => Coroutine<context, state, result>;
76
+ All: <context, state, result>(
77
+ ps: Array<Coroutine<context, state, result>>,
78
+ ) => Coroutine<context, state, Array<result>>;
79
+ Repeat: <context, state>(
80
+ p: Coroutine<context, state, Unit>,
81
+ ) => Coroutine<context, state, Unit>;
82
+ Seq: <context, state>(
83
+ ps: Array<Coroutine<context, state, Unit>>,
84
+ ) => Coroutine<context, state, Unit>;
85
+ For: <context, state, element>(
86
+ collection: Collection<number, element>,
87
+ p: BasicFun<element, Coroutine<context, state, Unit>>,
88
+ ) => Coroutine<context, state, Unit>;
89
+ While: <context, state>(
90
+ predicate: BasicFun<[context], boolean>,
91
+ p: Coroutine<context, state, Unit>,
92
+ ) => Coroutine<context, state, Unit>;
93
+ Wait: <context, state>(ms: number) => Coroutine<context, state, Unit>;
94
+ Await: <context, state, result, error>(
95
+ promise: BasicFun<Unit, Promise<result>>,
96
+ onCatch: BasicFun<any, error>,
97
+ debugName?: string,
98
+ ) => Coroutine<context, state, Sum<result, error>>;
99
+ On: <
100
+ eventKind,
101
+ event,
102
+ context extends {
103
+ inboundEvents: Map<eventKind, OrderedMap<Guid, event>>;
104
+ },
105
+ state extends {
106
+ inboundEvents: Map<eventKind, OrderedMap<Guid, event>>;
107
+ },
108
+ matchedEvent extends InboundKindFromContext<context>,
109
+ >(
110
+ kind: matchedEvent,
111
+ filter?: BasicFun<
112
+ [
113
+ InboundEventFromContext<context & state> & {
114
+ kind: matchedEvent;
115
+ },
116
+ context & state,
117
+ ],
118
+ boolean
119
+ >,
120
+ ) => Coroutine<
121
+ context & state,
122
+ state,
123
+ InboundEventFromContext<context & state> & {
124
+ kind: matchedEvent;
125
+ }
126
+ >;
127
+ Trigger: <
128
+ context,
129
+ state extends {
130
+ outboundEvents: Map<kind, OrderedMap<Guid, event>>;
131
+ },
132
+ event extends {
133
+ id: Guid;
134
+ kind: kind;
135
+ },
136
+ kind extends string,
137
+ >(
138
+ event: event,
139
+ ) => Coroutine<context & state, state, Unit>;
140
+ Do: <context, state>(
141
+ action: SimpleCallback<void>,
142
+ ) => Coroutine<context, state, Unit>;
61
143
  };
62
144
  export type CoroutineStep<context, state, result> = {
63
- newState: BasicUpdater<state> | undefined;
64
- } & ({
65
- kind: "result";
66
- result: result;
67
- } | {
68
- kind: "then";
69
- p: Coroutine<context, state, any>;
70
- k: BasicFun<any, Coroutine<context, state, result>>;
71
- } | {
72
- kind: "yield";
73
- next: Coroutine<context, state, result>;
74
- } | {
75
- kind: "waiting";
76
- msLeft: number;
77
- next: Coroutine<context, state, result>;
78
- }) & {};
145
+ newState: BasicUpdater<state> | undefined;
146
+ } & (
147
+ | {
148
+ kind: "result";
149
+ result: result;
150
+ }
151
+ | {
152
+ kind: "then";
153
+ p: Coroutine<context, state, any>;
154
+ k: BasicFun<any, Coroutine<context, state, result>>;
155
+ }
156
+ | {
157
+ kind: "yield";
158
+ next: Coroutine<context, state, result>;
159
+ }
160
+ | {
161
+ kind: "waiting";
162
+ msLeft: number;
163
+ next: Coroutine<context, state, result>;
164
+ }
165
+ ) & {};
79
166
  export declare const CoroutineStep: {
80
- Result: <context, state, result>(newState: BasicUpdater<state> | undefined, result: result) => CoroutineStep<context, state, result>;
81
- Then: <context, state, result>(newState: BasicUpdater<state> | undefined, p: Coroutine<context, state, any>, k: BasicFun<any, Coroutine<context, state, result>>) => CoroutineStep<context, state, result>;
82
- Yield: <context, state, result>(newState: BasicUpdater<state> | undefined, next: Coroutine<context, state, result>) => CoroutineStep<context, state, result>;
83
- Waiting: <context, state, result>(newState: BasicUpdater<state> | undefined, msLeft: number, next: Coroutine<context, state, result>) => CoroutineStep<context, state, result>;
84
- MapContext: <childContext, parentContext, state, result>(p: CoroutineStep<childContext, state, result>, narrow: BasicFun<parentContext, childContext | undefined>) => CoroutineStep<parentContext, state, result>;
85
- MapState: <context, state, newState, result>(p: CoroutineStep<context, state, result>, f: BasicFun<BasicUpdater<state>, BasicUpdater<newState>>) => CoroutineStep<context, newState, result>;
86
- Embed: <childContext, childState, result, parentContext, parentState>(p: CoroutineStep<childContext, childState, result>, narrow: BasicFun<parentContext, childContext | undefined>, widen: BasicFun<BasicUpdater<childState>, BasicUpdater<parentState>>) => CoroutineStep<parentContext, parentState, result>;
167
+ Result: <context, state, result>(
168
+ newState: BasicUpdater<state> | undefined,
169
+ result: result,
170
+ ) => CoroutineStep<context, state, result>;
171
+ Then: <context, state, result>(
172
+ newState: BasicUpdater<state> | undefined,
173
+ p: Coroutine<context, state, any>,
174
+ k: BasicFun<any, Coroutine<context, state, result>>,
175
+ ) => CoroutineStep<context, state, result>;
176
+ Yield: <context, state, result>(
177
+ newState: BasicUpdater<state> | undefined,
178
+ next: Coroutine<context, state, result>,
179
+ ) => CoroutineStep<context, state, result>;
180
+ Waiting: <context, state, result>(
181
+ newState: BasicUpdater<state> | undefined,
182
+ msLeft: number,
183
+ next: Coroutine<context, state, result>,
184
+ ) => CoroutineStep<context, state, result>;
185
+ MapContext: <childContext, parentContext, state, result>(
186
+ p: CoroutineStep<childContext, state, result>,
187
+ narrow: BasicFun<parentContext, childContext | undefined>,
188
+ ) => CoroutineStep<parentContext, state, result>;
189
+ MapState: <context, state, newState, result>(
190
+ p: CoroutineStep<context, state, result>,
191
+ f: BasicFun<BasicUpdater<state>, BasicUpdater<newState>>,
192
+ ) => CoroutineStep<context, newState, result>;
193
+ Embed: <childContext, childState, result, parentContext, parentState>(
194
+ p: CoroutineStep<childContext, childState, result>,
195
+ narrow: BasicFun<parentContext, childContext | undefined>,
196
+ widen: BasicFun<BasicUpdater<childState>, BasicUpdater<parentState>>,
197
+ ) => CoroutineStep<parentContext, parentState, result>;
87
198
  };
88
199
  export type InboundEventFromContext<s> = s extends {
89
- inboundEvents: Map<infer _kind, OrderedMap<Guid, infer event>>;
90
- } ? event : never;
200
+ inboundEvents: Map<infer _kind, OrderedMap<Guid, infer event>>;
201
+ }
202
+ ? event
203
+ : never;
91
204
  export type InboundKindFromContext<s> = s extends {
92
- inboundEvents: Map<infer kind, OrderedMap<Guid, infer _event>>;
93
- } ? kind : never;
94
- //# sourceMappingURL=state.d.ts.map
205
+ inboundEvents: Map<infer kind, OrderedMap<Guid, infer _event>>;
206
+ }
207
+ ? kind
208
+ : never;
209
+ //# sourceMappingURL=state.d.ts.map
@@ -3,15 +3,24 @@ import { BasicFun } from "../fun/state";
3
3
  import { Coroutine } from "./state";
4
4
  import { Template, TemplateProps } from "../template/state";
5
5
  export type CoroutineComponentOptions<context, state> = {
6
- interval?: number;
7
- key?: BasicFun<TemplateProps<context & state, state, Unit>, string>;
8
- restartWhenFinished?: boolean;
9
- runFilter?: BasicFun<TemplateProps<context & state, state, Unit>, boolean>;
6
+ interval?: number;
7
+ key?: BasicFun<TemplateProps<context & state, state, Unit>, string>;
8
+ restartWhenFinished?: boolean;
9
+ runFilter?: BasicFun<TemplateProps<context & state, state, Unit>, boolean>;
10
10
  };
11
11
  type CoroutineReadonlyContext<context, state> = {
12
- initialCoroutine: Coroutine<context, state, Unit>;
13
- options?: CoroutineComponentOptions<context, state>;
12
+ initialCoroutine: Coroutine<context, state, Unit>;
13
+ options?: CoroutineComponentOptions<context, state>;
14
14
  };
15
- export declare const CoroutineTemplate: <context, state, foreignMutations>() => Template<context & CoroutineReadonlyContext<context, state> & state, state, foreignMutations, Unit>;
15
+ export declare const CoroutineTemplate: <
16
+ context,
17
+ state,
18
+ foreignMutations,
19
+ >() => Template<
20
+ context & CoroutineReadonlyContext<context, state> & state,
21
+ state,
22
+ foreignMutations,
23
+ Unit
24
+ >;
16
25
  export {};
17
- //# sourceMappingURL=template.d.ts.map
26
+ //# sourceMappingURL=template.d.ts.map
@@ -2,9 +2,18 @@ import { ApiResultStatus } from "../../apiResultStatus/state";
2
2
  import { Coroutine } from "../../coroutines/state";
3
3
  import { Unit } from "../../fun/domains/unit/state";
4
4
  import { Debounced, DebouncedStatus, DirtyStatus } from "../state";
5
- export declare const Debounce: <value, context = Unit>(k: Coroutine<value & context, value, ApiResultStatus>, debounceDurationInMs: number, waitBeforeRetryOnTransientFailure?: number) => Coroutine<context & value & {
6
- lastUpdated: number;
7
- dirty: DirtyStatus;
8
- status: import("../../../main").Sum<DebouncedStatus, "debug off">;
9
- }, Debounced<value>, Unit>;
10
- //# sourceMappingURL=debounce.d.ts.map
5
+ export declare const Debounce: <value, context = Unit>(
6
+ k: Coroutine<value & context, value, ApiResultStatus>,
7
+ debounceDurationInMs: number,
8
+ waitBeforeRetryOnTransientFailure?: number,
9
+ ) => Coroutine<
10
+ context &
11
+ value & {
12
+ lastUpdated: number;
13
+ dirty: DirtyStatus;
14
+ status: import("../../../main").Sum<DebouncedStatus, "debug off">;
15
+ },
16
+ Debounced<value>,
17
+ Unit
18
+ >;
19
+ //# sourceMappingURL=debounce.d.ts.map
@@ -1,28 +1,35 @@
1
1
  import { Sum } from "../../main";
2
2
  import { BasicUpdater, Updater } from "../fun/domains/updater/state";
3
3
  export type DirtyStatus = "dirty" | "not dirty" | "dirty but being processed";
4
- export type DebouncedStatus = "waiting for dirty" | "just detected dirty, starting processing" | "processing finished" | "state was still dirty but being processed, resetting to not dirty" | "processing shortcircuited" | "state was changed underwater back to dirty, leaving the dirty flag alone" | "inner call failed with transient failure";
4
+ export type DebouncedStatus =
5
+ | "waiting for dirty"
6
+ | "just detected dirty, starting processing"
7
+ | "processing finished"
8
+ | "state was still dirty but being processed, resetting to not dirty"
9
+ | "processing shortcircuited"
10
+ | "state was changed underwater back to dirty, leaving the dirty flag alone"
11
+ | "inner call failed with transient failure";
5
12
  export type Debounced<Value> = Value & {
6
- lastUpdated: number;
7
- dirty: DirtyStatus;
8
- status: Sum<DebouncedStatus, "debug off">;
13
+ lastUpdated: number;
14
+ dirty: DirtyStatus;
15
+ status: Sum<DebouncedStatus, "debug off">;
9
16
  };
10
17
  export declare const Debounced: {
11
- Default: <v>(initialValue: v, debug?: boolean) => Debounced<v>;
12
- Updaters: {
13
- Core: {
14
- status: <v>(_: BasicUpdater<DebouncedStatus>) => Updater<Debounced<v>>;
15
- dirty: <v>(_: BasicUpdater<DirtyStatus>) => Updater<Debounced<v>>;
16
- lastUpdated: <v>(_: BasicUpdater<number>) => Updater<Debounced<v>>;
17
- valueWithoutDebouncing: <v>(_: BasicUpdater<v>) => Updater<Debounced<v>>;
18
- value: <v>(_: BasicUpdater<v>) => Updater<Debounced<v>>;
19
- };
20
- Template: {
21
- value: <v>(_: BasicUpdater<v>) => Updater<Debounced<v>>;
22
- };
18
+ Default: <v>(initialValue: v, debug?: boolean) => Debounced<v>;
19
+ Updaters: {
20
+ Core: {
21
+ status: <v>(_: BasicUpdater<DebouncedStatus>) => Updater<Debounced<v>>;
22
+ dirty: <v>(_: BasicUpdater<DirtyStatus>) => Updater<Debounced<v>>;
23
+ lastUpdated: <v>(_: BasicUpdater<number>) => Updater<Debounced<v>>;
24
+ valueWithoutDebouncing: <v>(_: BasicUpdater<v>) => Updater<Debounced<v>>;
25
+ value: <v>(_: BasicUpdater<v>) => Updater<Debounced<v>>;
23
26
  };
24
- Operations: {
25
- shouldCoroutineRun: <v>(_: Debounced<v>) => boolean;
27
+ Template: {
28
+ value: <v>(_: BasicUpdater<v>) => Updater<Debounced<v>>;
26
29
  };
30
+ };
31
+ Operations: {
32
+ shouldCoroutineRun: <v>(_: Debounced<v>) => boolean;
33
+ };
27
34
  };
28
- //# sourceMappingURL=state.d.ts.map
35
+ //# sourceMappingURL=state.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { OrderedMap } from "immutable";
2
2
  import { Guid, SimpleCallback } from "../../../../../main";
3
3
  export declare const AttachmentsList: (props: {
4
- attachments: OrderedMap<Guid, File>;
5
- add: SimpleCallback<[Guid, File]>;
6
- remove: SimpleCallback<Guid>;
4
+ attachments: OrderedMap<Guid, File>;
5
+ add: SimpleCallback<[Guid, File]>;
6
+ remove: SimpleCallback<Guid>;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=attachments-view.d.ts.map
8
+ //# sourceMappingURL=attachments-view.d.ts.map
@@ -1,30 +1,37 @@
1
1
  export type CollectionReference = {
2
- Id: string;
3
- DisplayValue: string;
4
- source?: "enum" | "stream";
2
+ Id: string;
3
+ DisplayValue: string;
4
+ source?: "enum" | "stream";
5
5
  };
6
6
  export declare const CollectionReference: {
7
- Default: ((Id: string, DisplayValue: string, source?: "enum" | "stream") => CollectionReference) & {
8
- empty: () => CollectionReference;
9
- };
10
- Updaters: {
11
- DisplayValue: import("../../../../../../main").Widening<CollectionReference, "DisplayValue">;
12
- Id: import("../../../../../../main").Widening<CollectionReference, "Id">;
13
- };
14
- Operations: {
15
- IsCollectionReference: (value: any) => value is CollectionReference;
16
- };
7
+ Default: ((
8
+ Id: string,
9
+ DisplayValue: string,
10
+ source?: "enum" | "stream",
11
+ ) => CollectionReference) & {
12
+ empty: () => CollectionReference;
13
+ };
14
+ Updaters: {
15
+ DisplayValue: import("../../../../../../main").Widening<
16
+ CollectionReference,
17
+ "DisplayValue"
18
+ >;
19
+ Id: import("../../../../../../main").Widening<CollectionReference, "Id">;
20
+ };
21
+ Operations: {
22
+ IsCollectionReference: (value: any) => value is CollectionReference;
23
+ };
17
24
  };
18
25
  export type EnumReference = {
19
- Value: string;
26
+ Value: string;
20
27
  };
21
28
  export declare const EnumReference: {
22
- Default: (value: string) => EnumReference;
23
- Updaters: {
24
- Value: import("../../../../../../main").Widening<EnumReference, "Value">;
25
- };
26
- Operations: {
27
- IsEnumReference: (value: any) => value is EnumReference;
28
- };
29
+ Default: (value: string) => EnumReference;
30
+ Updaters: {
31
+ Value: import("../../../../../../main").Widening<EnumReference, "Value">;
32
+ };
33
+ Operations: {
34
+ IsEnumReference: (value: any) => value is EnumReference;
35
+ };
29
36
  };
30
- //# sourceMappingURL=state.d.ts.map
37
+ //# sourceMappingURL=state.d.ts.map
@@ -1,18 +1,40 @@
1
1
  import { Sum } from "../../../../../../main";
2
2
  import { CollectionReference, EnumReference } from "../reference/state";
3
- export type CollectionSelection<Element extends CollectionReference | EnumReference> = Sum<Element, "no selection">;
4
- export declare const CollectionSelection: <Element extends CollectionReference | EnumReference>() => {
5
- Default: {
6
- left: import("../../../../../fun/state").Fun<Element, Sum<Element, "no selection">>;
7
- right: import("../../../../../fun/state").Fun<"no selection", Sum<Element, "no selection">>;
8
- };
9
- Updaters: {
10
- left: import("../../../../../fun/state").Fun<import("../../../../../../main").BasicUpdater<Element>, import("../../../../../../main").Updater<Sum<Element, "no selection">>>;
11
- right: import("../../../../../fun/state").Fun<import("../../../../../../main").BasicUpdater<"no selection">, import("../../../../../../main").Updater<Sum<Element, "no selection">>>;
12
- map2: <a, b, a1, b1>(l: import("../../../../../fun/state").BasicFun<a, a1>, r: import("../../../../../fun/state").BasicFun<b, b1>) => import("../../../../../fun/state").Fun<Sum<a, b>, Sum<a1, b1>>;
13
- };
14
- Operations: {
15
- fold: <a, b_1, c>(l: import("../../../../../fun/state").BasicFun<a, c>, r: import("../../../../../fun/state").BasicFun<b_1, c>) => import("../../../../../fun/state").Fun<Sum<a, b_1>, c>;
16
- };
3
+ export type CollectionSelection<
4
+ Element extends CollectionReference | EnumReference,
5
+ > = Sum<Element, "no selection">;
6
+ export declare const CollectionSelection: <
7
+ Element extends CollectionReference | EnumReference,
8
+ >() => {
9
+ Default: {
10
+ left: import("../../../../../fun/state").Fun<
11
+ Element,
12
+ Sum<Element, "no selection">
13
+ >;
14
+ right: import("../../../../../fun/state").Fun<
15
+ "no selection",
16
+ Sum<Element, "no selection">
17
+ >;
18
+ };
19
+ Updaters: {
20
+ left: import("../../../../../fun/state").Fun<
21
+ import("../../../../../../main").BasicUpdater<Element>,
22
+ import("../../../../../../main").Updater<Sum<Element, "no selection">>
23
+ >;
24
+ right: import("../../../../../fun/state").Fun<
25
+ import("../../../../../../main").BasicUpdater<"no selection">,
26
+ import("../../../../../../main").Updater<Sum<Element, "no selection">>
27
+ >;
28
+ map2: <a, b, a1, b1>(
29
+ l: import("../../../../../fun/state").BasicFun<a, a1>,
30
+ r: import("../../../../../fun/state").BasicFun<b, b1>,
31
+ ) => import("../../../../../fun/state").Fun<Sum<a, b>, Sum<a1, b1>>;
32
+ };
33
+ Operations: {
34
+ fold: <a, b_1, c>(
35
+ l: import("../../../../../fun/state").BasicFun<a, c>,
36
+ r: import("../../../../../fun/state").BasicFun<b_1, c>,
37
+ ) => import("../../../../../fun/state").Fun<Sum<a, b_1>, c>;
38
+ };
17
39
  };
18
- //# sourceMappingURL=state.d.ts.map
40
+ //# sourceMappingURL=state.d.ts.map