@daffodil/core 0.66.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/constructable/constructable.d.ts +1 -1
  2. package/{esm2020 → esm2022}/base64/browser/browser.service.mjs +6 -6
  3. package/{esm2020 → esm2022}/base64/server/server.service.mjs +6 -6
  4. package/{esm2020 → esm2022}/graphql/apollo/queued-apollo/queued-apollo.service.mjs +5 -5
  5. package/{esm2020 → esm2022}/routing/uri/normalizer.service.mjs +5 -5
  6. package/{esm2020 → esm2022}/state/states/state.enum.mjs +1 -1
  7. package/{esm2020 → esm2022}/state/testing/mock-collection-facade.mjs +4 -4
  8. package/{esm2020 → esm2022}/state/testing/mock-operation-facade.mjs +4 -4
  9. package/esm2022/storage/error/error.service.mjs +33 -0
  10. package/{esm2020 → esm2022}/storage/localstorage/localstorage.service.mjs +6 -6
  11. package/{esm2020 → esm2022}/storage/noopstorage/noopstorage.service.mjs +4 -4
  12. package/esm2022/storage/server-error/server-error.service.mjs +36 -0
  13. package/{esm2020 → esm2022}/testing/angular/mocks/pipes/currency.mjs +4 -4
  14. package/{esm2020 → esm2022}/testing/factories/address.factory.mjs +5 -5
  15. package/{esm2020 → esm2022}/testing/factories/collection/metadata.factory.mjs +5 -5
  16. package/{esm2020 → esm2022}/testing/factories/collection/numerically-paginable.factory.mjs +5 -5
  17. package/{esm2020 → esm2022}/testing/factories/collection/request.factory.mjs +5 -5
  18. package/{esm2020 → esm2022}/testing/factories/collection/sort-option.factory.mjs +5 -5
  19. package/{esm2020 → esm2022}/testing/factories/collection/sort-options.factory.mjs +5 -5
  20. package/{esm2020 → esm2022}/testing/factories/collection/sortable.factory.mjs +5 -5
  21. package/{esm2020 → esm2022}/testing/factories/filters/filter.factory.mjs +5 -5
  22. package/{esm2020 → esm2022}/testing/factories/filters/request.factory.mjs +5 -5
  23. package/{esm2020 → esm2022}/testing/factories/filters/toggle-request.mjs +5 -5
  24. package/{esm2020 → esm2022}/testing/factories/filters/type/equal/option.mjs +5 -5
  25. package/{esm2020 → esm2022}/testing/factories/filters/type/equal/request.mjs +5 -5
  26. package/{esm2020 → esm2022}/testing/factories/filters/type/equal/toggle-request.mjs +5 -5
  27. package/{esm2020 → esm2022}/testing/factories/filters/type/equal.mjs +5 -5
  28. package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/option.mjs +5 -5
  29. package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/pair.mjs +5 -5
  30. package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/request-option.mjs +5 -5
  31. package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/request.mjs +5 -5
  32. package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/toggle-request.mjs +5 -5
  33. package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric.mjs +5 -5
  34. package/{esm2020 → esm2022}/testing/factories/identifiable.factory.mjs +5 -5
  35. package/{esm2020 → esm2022}/testing/testing.module.mjs +5 -5
  36. package/esm2022/utils/range.mjs +13 -0
  37. package/{fesm2020 → fesm2022}/daffodil-core-graphql.mjs +4 -4
  38. package/{fesm2020 → fesm2022}/daffodil-core-graphql.mjs.map +1 -1
  39. package/{fesm2020 → fesm2022}/daffodil-core-routing.mjs +4 -4
  40. package/{fesm2020 → fesm2022}/daffodil-core-routing.mjs.map +1 -1
  41. package/{fesm2015 → fesm2022}/daffodil-core-state-testing.mjs +6 -6
  42. package/{fesm2020 → fesm2022}/daffodil-core-state-testing.mjs.map +1 -1
  43. package/{fesm2020 → fesm2022}/daffodil-core-testing.mjs +91 -91
  44. package/fesm2022/daffodil-core-testing.mjs.map +1 -0
  45. package/{fesm2020 → fesm2022}/daffodil-core.mjs +27 -27
  46. package/fesm2022/daffodil-core.mjs.map +1 -0
  47. package/filterable/filter-option.d.ts +1 -1
  48. package/filterable/filter-request.d.ts +1 -1
  49. package/filterable/filter-toggle-request.d.ts +1 -1
  50. package/filterable/filter.d.ts +1 -1
  51. package/filterable/filters.type.d.ts +1 -1
  52. package/package.json +1 -1
  53. package/routing/query-param-filter/request-builder/type.d.ts +1 -1
  54. package/state/collection/actions.d.ts +1 -1
  55. package/state/errors/transform-error-to-state-error.d.ts +1 -1
  56. package/state/operation/entity/state.type.d.ts +1 -1
  57. package/state/operation/entity/type.d.ts +1 -1
  58. package/state/operators/substream.pipe.d.ts +3 -3
  59. package/state/states/loading.d.ts +1 -1
  60. package/state/states/mutable-loading.d.ts +1 -1
  61. package/types/id.type.d.ts +1 -1
  62. package/utils/array-to-dict.d.ts +1 -1
  63. package/esm2020/storage/error/error.service.mjs +0 -33
  64. package/esm2020/storage/server-error/server-error.service.mjs +0 -36
  65. package/esm2020/utils/range.mjs +0 -13
  66. package/fesm2015/daffodil-core-graphql.mjs +0 -108
  67. package/fesm2015/daffodil-core-graphql.mjs.map +0 -1
  68. package/fesm2015/daffodil-core-routing.mjs +0 -122
  69. package/fesm2015/daffodil-core-routing.mjs.map +0 -1
  70. package/fesm2015/daffodil-core-state-testing.mjs.map +0 -1
  71. package/fesm2015/daffodil-core-state.mjs +0 -342
  72. package/fesm2015/daffodil-core-state.mjs.map +0 -1
  73. package/fesm2015/daffodil-core-testing.mjs +0 -659
  74. package/fesm2015/daffodil-core-testing.mjs.map +0 -1
  75. package/fesm2015/daffodil-core.mjs +0 -1064
  76. package/fesm2015/daffodil-core.mjs.map +0 -1
  77. package/fesm2020/daffodil-core-state-testing.mjs +0 -63
  78. package/fesm2020/daffodil-core-testing.mjs.map +0 -1
  79. package/fesm2020/daffodil-core.mjs.map +0 -1
  80. /package/{esm2020 → esm2022}/address/address.mjs +0 -0
  81. /package/{esm2020 → esm2022}/base64/base64.interface.mjs +0 -0
  82. /package/{esm2020 → esm2022}/base64/public_api.mjs +0 -0
  83. /package/{esm2020 → esm2022}/base64/server/public_api.mjs +0 -0
  84. /package/{esm2020 → esm2022}/canonically-locateable/canonically-locateable.interface.mjs +0 -0
  85. /package/{esm2020 → esm2022}/collection/build-metadata.mjs +0 -0
  86. /package/{esm2020 → esm2022}/collection/build-request.mjs +0 -0
  87. /package/{esm2020 → esm2022}/collection/collection.interface.mjs +0 -0
  88. /package/{esm2020 → esm2022}/collection/countable.interface.mjs +0 -0
  89. /package/{esm2020 → esm2022}/collection/error-map.mjs +0 -0
  90. /package/{esm2020 → esm2022}/collection/metadata.interface.mjs +0 -0
  91. /package/{esm2020 → esm2022}/collection/page-out-of-bounds.error.mjs +0 -0
  92. /package/{esm2020 → esm2022}/collection/paginable.mjs +0 -0
  93. /package/{esm2020 → esm2022}/collection/public_api.mjs +0 -0
  94. /package/{esm2020 → esm2022}/collection/request.interface.mjs +0 -0
  95. /package/{esm2020 → esm2022}/collection/sortable.mjs +0 -0
  96. /package/{esm2020 → esm2022}/constructable/constructable.mjs +0 -0
  97. /package/{esm2020 → esm2022}/daffodil-core.mjs +0 -0
  98. /package/{esm2020 → esm2022}/errors/error-map.mjs +0 -0
  99. /package/{esm2020 → esm2022}/errors/error.interface.mjs +0 -0
  100. /package/{esm2020 → esm2022}/errors/inheritable-error.mjs +0 -0
  101. /package/{esm2020 → esm2022}/errors/is-error.mjs +0 -0
  102. /package/{esm2020 → esm2022}/errors/public_api.mjs +0 -0
  103. /package/{esm2020 → esm2022}/filterable/filter-base.mjs +0 -0
  104. /package/{esm2020 → esm2022}/filterable/filter-option-base.mjs +0 -0
  105. /package/{esm2020 → esm2022}/filterable/filter-option.mjs +0 -0
  106. /package/{esm2020 → esm2022}/filterable/filter-request.mjs +0 -0
  107. /package/{esm2020 → esm2022}/filterable/filter-toggle-request.mjs +0 -0
  108. /package/{esm2020 → esm2022}/filterable/filter.mjs +0 -0
  109. /package/{esm2020 → esm2022}/filterable/filterable.mjs +0 -0
  110. /package/{esm2020 → esm2022}/filterable/filters.type.mjs +0 -0
  111. /package/{esm2020 → esm2022}/filterable/public_api.mjs +0 -0
  112. /package/{esm2020 → esm2022}/filterable/type/equal/filter.mjs +0 -0
  113. /package/{esm2020 → esm2022}/filterable/type/equal/option.mjs +0 -0
  114. /package/{esm2020 → esm2022}/filterable/type/equal/public_api.mjs +0 -0
  115. /package/{esm2020 → esm2022}/filterable/type/equal/request.mjs +0 -0
  116. /package/{esm2020 → esm2022}/filterable/type/equal/toggle-request.mjs +0 -0
  117. /package/{esm2020 → esm2022}/filterable/type/filter-type.mjs +0 -0
  118. /package/{esm2020 → esm2022}/filterable/type/range/filter-base.mjs +0 -0
  119. /package/{esm2020 → esm2022}/filterable/type/range/option.mjs +0 -0
  120. /package/{esm2020 → esm2022}/filterable/type/range/pair.mjs +0 -0
  121. /package/{esm2020 → esm2022}/filterable/type/range/public_api.mjs +0 -0
  122. /package/{esm2020 → esm2022}/filterable/type/range/request-base.mjs +0 -0
  123. /package/{esm2020 → esm2022}/filterable/type/range/request-option.mjs +0 -0
  124. /package/{esm2020 → esm2022}/filterable/type/range/separator.mjs +0 -0
  125. /package/{esm2020 → esm2022}/filterable/type/range-numeric/filter.mjs +0 -0
  126. /package/{esm2020 → esm2022}/filterable/type/range-numeric/public_api.mjs +0 -0
  127. /package/{esm2020 → esm2022}/filterable/type/range-numeric/request.mjs +0 -0
  128. /package/{esm2020 → esm2022}/filterable/type/range-numeric/toggle-request.mjs +0 -0
  129. /package/{esm2020 → esm2022}/filters/array-to-dict/array-to-dict.mjs +0 -0
  130. /package/{esm2020 → esm2022}/filters/behaviors/apply/apply-filter.mjs +0 -0
  131. /package/{esm2020 → esm2022}/filters/behaviors/apply/apply-request-to-filters.mjs +0 -0
  132. /package/{esm2020 → esm2022}/filters/behaviors/apply/apply-requests-to-filters.mjs +0 -0
  133. /package/{esm2020 → esm2022}/filters/behaviors/apply/public_api.mjs +0 -0
  134. /package/{esm2020 → esm2022}/filters/behaviors/clear/clear-filter.mjs +0 -0
  135. /package/{esm2020 → esm2022}/filters/behaviors/clear/clear-filters.mjs +0 -0
  136. /package/{esm2020 → esm2022}/filters/behaviors/clear/public_api.mjs +0 -0
  137. /package/{esm2020 → esm2022}/filters/behaviors/remove/public_api.mjs +0 -0
  138. /package/{esm2020 → esm2022}/filters/behaviors/remove/remove-filter.mjs +0 -0
  139. /package/{esm2020 → esm2022}/filters/behaviors/remove/remove-request-from-filters.mjs +0 -0
  140. /package/{esm2020 → esm2022}/filters/behaviors/remove/remove-requests-from-filters.mjs +0 -0
  141. /package/{esm2020 → esm2022}/filters/behaviors/toggle/public_api.mjs +0 -0
  142. /package/{esm2020 → esm2022}/filters/behaviors/toggle/toggle-request-on-filters.mjs +0 -0
  143. /package/{esm2020 → esm2022}/filters/behaviors/toggle/toggle.mjs +0 -0
  144. /package/{esm2020 → esm2022}/filters/compute-applied-filters/compute-applied-filters.mjs +0 -0
  145. /package/{esm2020 → esm2022}/filters/errors/codes.enum.mjs +0 -0
  146. /package/{esm2020 → esm2022}/filters/errors/filter-not-found.error.mjs +0 -0
  147. /package/{esm2020 → esm2022}/filters/errors/public_api.mjs +0 -0
  148. /package/{esm2020 → esm2022}/filters/errors/request-name-mismatch.error.mjs +0 -0
  149. /package/{esm2020 → esm2022}/filters/errors/request-type-mismatch.error.mjs +0 -0
  150. /package/{esm2020 → esm2022}/filters/errors/unknown-filter-type.error.mjs +0 -0
  151. /package/{esm2020 → esm2022}/filters/find-applied/find-applied-options.mjs +0 -0
  152. /package/{esm2020 → esm2022}/filters/find-applied/public_api.mjs +0 -0
  153. /package/{esm2020 → esm2022}/filters/is-applied/is-filter-applied.mjs +0 -0
  154. /package/{esm2020 → esm2022}/filters/is-applied/is-toggle-request-applied-to-filter.mjs +0 -0
  155. /package/{esm2020 → esm2022}/filters/is-applied/public_api.mjs +0 -0
  156. /package/{esm2020 → esm2022}/filters/public_api.mjs +0 -0
  157. /package/{esm2020 → esm2022}/filters/to-request/filter-to-request.mjs +0 -0
  158. /package/{esm2020 → esm2022}/filters/to-request/filters-to-requests.mjs +0 -0
  159. /package/{esm2020 → esm2022}/filters/to-request/public_api.mjs +0 -0
  160. /package/{esm2020 → esm2022}/filters/type/equal/array-to-dict/option.mjs +0 -0
  161. /package/{esm2020 → esm2022}/filters/type/equal/behaviors/apply/apply.mjs +0 -0
  162. /package/{esm2020 → esm2022}/filters/type/equal/behaviors/clear/clear.mjs +0 -0
  163. /package/{esm2020 → esm2022}/filters/type/equal/behaviors/remove/remove.mjs +0 -0
  164. /package/{esm2020 → esm2022}/filters/type/equal/behaviors/toggle/toggle.mjs +0 -0
  165. /package/{esm2020 → esm2022}/filters/type/equal/is-applied/is-applied.mjs +0 -0
  166. /package/{esm2020 → esm2022}/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.mjs +0 -0
  167. /package/{esm2020 → esm2022}/filters/type/equal/public_api.mjs +0 -0
  168. /package/{esm2020 → esm2022}/filters/type/equal/to-request/filter-to-request.mjs +0 -0
  169. /package/{esm2020 → esm2022}/filters/type/range/array-to-dict/pair.mjs +0 -0
  170. /package/{esm2020 → esm2022}/filters/type/range/behaviors/apply/apply.mjs +0 -0
  171. /package/{esm2020 → esm2022}/filters/type/range/behaviors/clear/clear.mjs +0 -0
  172. /package/{esm2020 → esm2022}/filters/type/range/behaviors/remove/remove.mjs +0 -0
  173. /package/{esm2020 → esm2022}/filters/type/range/behaviors/toggle/toggle.mjs +0 -0
  174. /package/{esm2020 → esm2022}/filters/type/range/compute-pair-label.mjs +0 -0
  175. /package/{esm2020 → esm2022}/filters/type/range/is-applied/is-applied.mjs +0 -0
  176. /package/{esm2020 → esm2022}/filters/type/range/is-applied/is-toggle-request-applied-to-filter.mjs +0 -0
  177. /package/{esm2020 → esm2022}/filters/type/range/public_api.mjs +0 -0
  178. /package/{esm2020 → esm2022}/filters/type/range/to-request/filter-to-request.mjs +0 -0
  179. /package/{esm2020 → esm2022}/filters/type/range-numeric/to-request/filter-to-request.mjs +0 -0
  180. /package/{esm2020 → esm2022}/filters/validators/public_api.mjs +0 -0
  181. /package/{esm2020 → esm2022}/filters/validators/request-name-match.mjs +0 -0
  182. /package/{esm2020 → esm2022}/filters/validators/request-type-match.mjs +0 -0
  183. /package/{esm2020 → esm2022}/graphql/apollo/cacheable-operations/cacheable-operations-link.interface.mjs +0 -0
  184. /package/{esm2020 → esm2022}/graphql/apollo/public_api.mjs +0 -0
  185. /package/{esm2020 → esm2022}/graphql/daffodil-core-graphql.mjs +0 -0
  186. /package/{esm2020 → esm2022}/graphql/fragments/build-fragment-definition.mjs +0 -0
  187. /package/{esm2020 → esm2022}/graphql/fragments/build-fragment-name-spread.mjs +0 -0
  188. /package/{esm2020 → esm2022}/graphql/fragments/public_api.mjs +0 -0
  189. /package/{esm2020 → esm2022}/graphql/index.mjs +0 -0
  190. /package/{esm2020 → esm2022}/graphql/public_api.mjs +0 -0
  191. /package/{esm2020 → esm2022}/identifiable/array-to-dict.mjs +0 -0
  192. /package/{esm2020 → esm2022}/identifiable/identifiable.interface.mjs +0 -0
  193. /package/{esm2020 → esm2022}/identifiable/public_api.mjs +0 -0
  194. /package/{esm2020 → esm2022}/index.mjs +0 -0
  195. /package/{esm2020 → esm2022}/kindable/kindable.interface.mjs +0 -0
  196. /package/{esm2020 → esm2022}/kindable/public_api.mjs +0 -0
  197. /package/{esm2020 → esm2022}/locateable/locateable.interface.mjs +0 -0
  198. /package/{esm2020 → esm2022}/operators/all-of.pipe.mjs +0 -0
  199. /package/{esm2020 → esm2022}/operators/any-of.pipe.mjs +0 -0
  200. /package/{esm2020 → esm2022}/operators/backoff.pipe.mjs +0 -0
  201. /package/{esm2020 → esm2022}/operators/catch-and-arrayify-errors.pipe.mjs +0 -0
  202. /package/{esm2020 → esm2022}/operators/public_api.mjs +0 -0
  203. /package/{esm2020 → esm2022}/orderable/orderable.mjs +0 -0
  204. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  205. /package/{esm2020 → esm2022}/routing/daffodil-core-routing.mjs +0 -0
  206. /package/{esm2020 → esm2022}/routing/index.mjs +0 -0
  207. /package/{esm2020 → esm2022}/routing/public_api.mjs +0 -0
  208. /package/{esm2020 → esm2022}/routing/query-param-filter/public_api.mjs +0 -0
  209. /package/{esm2020 → esm2022}/routing/query-param-filter/request-builder/equal.mjs +0 -0
  210. /package/{esm2020 → esm2022}/routing/query-param-filter/request-builder/public_api.mjs +0 -0
  211. /package/{esm2020 → esm2022}/routing/query-param-filter/request-builder/type.mjs +0 -0
  212. /package/{esm2020 → esm2022}/routing/query-param-filter/type.mjs +0 -0
  213. /package/{esm2020 → esm2022}/routing/reducers/clear-errors/navigated-entity-reducer-factory.mjs +0 -0
  214. /package/{esm2020 → esm2022}/routing/reducers/clear-errors/navigated.reducer.mjs +0 -0
  215. /package/{esm2020 → esm2022}/routing/reducers/clear-errors/public_api.mjs +0 -0
  216. /package/{esm2020 → esm2022}/routing/reducers/public_api.mjs +0 -0
  217. /package/{esm2020 → esm2022}/routing/uri/public_api.mjs +0 -0
  218. /package/{esm2020 → esm2022}/routing/uri/truncation/file-extension.mjs +0 -0
  219. /package/{esm2020 → esm2022}/routing/uri/truncation/leading-path-segments.mjs +0 -0
  220. /package/{esm2020 → esm2022}/routing/uri/truncation/leading-slash.mjs +0 -0
  221. /package/{esm2020 → esm2022}/routing/uri/truncation/public_api.mjs +0 -0
  222. /package/{esm2020 → esm2022}/routing/uri/truncation/query-fragment.mjs +0 -0
  223. /package/{esm2020 → esm2022}/state/actions/failure.type.mjs +0 -0
  224. /package/{esm2020 → esm2022}/state/actions/public_api.mjs +0 -0
  225. /package/{esm2020 → esm2022}/state/collection/actions.mjs +0 -0
  226. /package/{esm2020 → esm2022}/state/collection/adapter.class.mjs +0 -0
  227. /package/{esm2020 → esm2022}/state/collection/facade.interface.mjs +0 -0
  228. /package/{esm2020 → esm2022}/state/collection/facade.mjs +0 -0
  229. /package/{esm2020 → esm2022}/state/collection/initial-state.mjs +0 -0
  230. /package/{esm2020 → esm2022}/state/collection/public_api.mjs +0 -0
  231. /package/{esm2020 → esm2022}/state/collection/selector-factory.mjs +0 -0
  232. /package/{esm2020 → esm2022}/state/daffodil-core-state.mjs +0 -0
  233. /package/{esm2020 → esm2022}/state/errors/errorable.type.mjs +0 -0
  234. /package/{esm2020 → esm2022}/state/errors/public_api.mjs +0 -0
  235. /package/{esm2020 → esm2022}/state/errors/state-error.interface.mjs +0 -0
  236. /package/{esm2020 → esm2022}/state/errors/transform-error-to-state-error.mjs +0 -0
  237. /package/{esm2020 → esm2022}/state/index.mjs +0 -0
  238. /package/{esm2020 → esm2022}/state/operation/adapter.mjs +0 -0
  239. /package/{esm2020 → esm2022}/state/operation/entity/adapter.mjs +0 -0
  240. /package/{esm2020 → esm2022}/state/operation/entity/helpers.mjs +0 -0
  241. /package/{esm2020 → esm2022}/state/operation/entity/public_api.mjs +0 -0
  242. /package/{esm2020 → esm2022}/state/operation/entity/selectors.mjs +0 -0
  243. /package/{esm2020 → esm2022}/state/operation/entity/state.type.mjs +0 -0
  244. /package/{esm2020 → esm2022}/state/operation/entity/type.mjs +0 -0
  245. /package/{esm2020 → esm2022}/state/operation/facade.type.mjs +0 -0
  246. /package/{esm2020 → esm2022}/state/operation/public_api.mjs +0 -0
  247. /package/{esm2020 → esm2022}/state/operation/selectors.mjs +0 -0
  248. /package/{esm2020 → esm2022}/state/operation/state.mjs +0 -0
  249. /package/{esm2020 → esm2022}/state/operators/public_api.mjs +0 -0
  250. /package/{esm2020 → esm2022}/state/operators/substream.pipe.mjs +0 -0
  251. /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
  252. /package/{esm2020 → esm2022}/state/reducers/create-meta.mjs +0 -0
  253. /package/{esm2020 → esm2022}/state/reducers/identity.mjs +0 -0
  254. /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
  255. /package/{esm2020 → esm2022}/state/states/loading.mjs +0 -0
  256. /package/{esm2020 → esm2022}/state/states/mutable-loading.mjs +0 -0
  257. /package/{esm2020 → esm2022}/state/states/public_api.mjs +0 -0
  258. /package/{esm2020 → esm2022}/state/states/stateable.interface.mjs +0 -0
  259. /package/{esm2020 → esm2022}/state/store/facade.mjs +0 -0
  260. /package/{esm2020 → esm2022}/state/testing/daffodil-core-state-testing.mjs +0 -0
  261. /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
  262. /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
  263. /package/{esm2020 → esm2022}/storage/error/error.mjs +0 -0
  264. /package/{esm2020 → esm2022}/storage/error/public_api.mjs +0 -0
  265. /package/{esm2020 → esm2022}/storage/persistence-server-safe.token.mjs +0 -0
  266. /package/{esm2020 → esm2022}/storage/persistence.interface.mjs +0 -0
  267. /package/{esm2020 → esm2022}/storage/public_api.mjs +0 -0
  268. /package/{esm2020 → esm2022}/storage/server-error/public_api.mjs +0 -0
  269. /package/{esm2020 → esm2022}/storage/server-error/server-error.mjs +0 -0
  270. /package/{esm2020 → esm2022}/testing/angular/interfaces/in-memory-data-service.interface.mjs +0 -0
  271. /package/{esm2020 → esm2022}/testing/daffodil-core-testing.mjs +0 -0
  272. /package/{esm2020 → esm2022}/testing/factories/collection/mock-collection.class.mjs +0 -0
  273. /package/{esm2020 → esm2022}/testing/factories/collection/public_api.mjs +0 -0
  274. /package/{esm2020 → esm2022}/testing/factories/factory.interface.mjs +0 -0
  275. /package/{esm2020 → esm2022}/testing/factories/factory.mjs +0 -0
  276. /package/{esm2020 → esm2022}/testing/factories/filters/public_api.mjs +0 -0
  277. /package/{esm2020 → esm2022}/testing/factories/filters/type/equal/public_api.mjs +0 -0
  278. /package/{esm2020 → esm2022}/testing/factories/filters/type/public_api.mjs +0 -0
  279. /package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/public_api.mjs +0 -0
  280. /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
  281. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  282. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
  283. /package/{esm2020 → esm2022}/types/id.type.mjs +0 -0
  284. /package/{esm2020 → esm2022}/types/public_api.mjs +0 -0
  285. /package/{esm2020 → esm2022}/utils/array-to-dict.mjs +0 -0
  286. /package/{esm2020 → esm2022}/utils/collect.mjs +0 -0
  287. /package/{esm2020 → esm2022}/utils/long-arithmetic.mjs +0 -0
  288. /package/{esm2020 → esm2022}/utils/public_api.mjs +0 -0
  289. /package/{esm2020 → esm2022}/utils/random-slice.mjs +0 -0
  290. /package/{esm2020 → esm2022}/utils/random-subset.mjs +0 -0
  291. /package/{esm2020 → esm2022}/utils/sample.mjs +0 -0
  292. /package/{esm2020 → esm2022}/utils/shallow-compare.mjs +0 -0
  293. /package/{esm2020 → esm2022}/utils/shuffle.mjs +0 -0
  294. /package/{esm2020 → esm2022}/utils/unique.mjs +0 -0
  295. /package/{fesm2020 → fesm2022}/daffodil-core-state.mjs +0 -0
  296. /package/{fesm2020 → fesm2022}/daffodil-core-state.mjs.map +0 -0
@@ -2,4 +2,4 @@ import { DaffState } from './state.enum';
2
2
  /**
3
3
  * A state description for an object that is read-only.
4
4
  */
5
- export declare type DaffLoadingState = DaffState.Resolving | DaffState.Stable;
5
+ export type DaffLoadingState = DaffState.Resolving | DaffState.Stable;
@@ -3,4 +3,4 @@ import { DaffState } from './state.enum';
3
3
  /**
4
4
  * A description for an object that is both readable and writable.
5
5
  */
6
- export declare type DaffMutableLoadingState = DaffLoadingState | DaffState.Mutating;
6
+ export type DaffMutableLoadingState = DaffLoadingState | DaffState.Mutating;
@@ -1 +1 @@
1
- export declare type ID = string;
1
+ export type ID = string;
@@ -1,4 +1,4 @@
1
- declare type Dictionary = Record<string | number | symbol, any>;
1
+ type Dictionary = Record<string | number | symbol, any>;
2
2
  /**
3
3
  * Converts an array into a dictionary.
4
4
  * Dictionary values are keyed by the return of the specified `getKey`.
@@ -1,33 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { DaffStorageServiceError } from './error';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @inheritdoc
6
- */
7
- export class DaffErrorStorageService {
8
- setItem(key, value) {
9
- this.throwError();
10
- }
11
- getItem(key) {
12
- this.throwError();
13
- }
14
- removeItem(key) {
15
- this.throwError();
16
- }
17
- clear() {
18
- this.throwError();
19
- }
20
- throwError() {
21
- throw new DaffStorageServiceError(DaffErrorStorageService.ERROR_MESSAGE);
22
- }
23
- }
24
- DaffErrorStorageService.ERROR_MESSAGE = 'The DaffErrorStorageService always throws an error.';
25
- /** @nocollapse */ DaffErrorStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffErrorStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
26
- /** @nocollapse */ DaffErrorStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffErrorStorageService, providedIn: 'root' });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffErrorStorageService, decorators: [{
28
- type: Injectable,
29
- args: [{
30
- providedIn: 'root',
31
- }]
32
- }] });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvc3RvcmFnZS9lcnJvci9lcnJvci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sU0FBUyxDQUFDOztBQUdsRDs7R0FFRztBQUlILE1BQU0sT0FBTyx1QkFBdUI7SUFHbEMsT0FBTyxDQUFDLEdBQVcsRUFBRSxLQUFVO1FBQzdCLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNwQixDQUFDO0lBRUQsT0FBTyxDQUFDLEdBQVc7UUFDakIsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQ3BCLENBQUM7SUFFRCxVQU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AgfVxuXG4gIGdldEl0ZW0oa2V5OiBzdHJpbmcpOiBhbnkge1xuICAgIHRoaXMudGhyb3dFcnJvcigpO1xuICB9XG5cbiAgcmVtb3ZlSXRlbShrZXk6IHN0cmluZyk6IGFueSB7XG4gICAgdGhpcy50aHJvd0Vycm9yKCk7XG4gIH1cblxuICBjbGVhcigpe1xuICAgIHRoaXMudGhyb3dFcnJvcigpO1xuICB9XG5cbiAgcHJpdmF0ZSB0aHJvd0Vycm9yKCkge1xuICAgIHRocm93IG5ldyBEYWZmU3RvcmFnZVNlcnZpY2VFcnJvcihEYWZmRXJyb3JTdG9yYWdlU2VydmljZS5FUlJPUl9NRVNTQUdFKTtcbiAgfVxufVxuIl19
@@ -1,36 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { DaffServerSideStorageError } from './server-error';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * A storage service meant to be loaded into SSR contexts.
6
- * It will always throw the {@link DaffServerSideStorageError}.
7
- *
8
- * @inheritdoc
9
- */
10
- export class DaffServerErrorStorageService {
11
- setItem(key, value) {
12
- this.throwError();
13
- }
14
- getItem(key) {
15
- this.throwError();
16
- }
17
- removeItem(key) {
18
- this.throwError();
19
- }
20
- clear() {
21
- this.throwError();
22
- }
23
- throwError() {
24
- throw new DaffServerSideStorageError(DaffServerErrorStorageService.ERROR_MESSAGE);
25
- }
26
- }
27
- DaffServerErrorStorageService.ERROR_MESSAGE = 'The DaffServerErrorStorageService always throws an error.';
28
- /** @nocollapse */ DaffServerErrorStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffServerErrorStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
29
- /** @nocollapse */ DaffServerErrorStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffServerErrorStorageService, providedIn: 'root' });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffServerErrorStorageService, decorators: [{
31
- type: Injectable,
32
- args: [{
33
- providedIn: 'root',
34
- }]
35
- }] });
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVyLWVycm9yLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL3N0b3JhZ2Uvc2VydmVyLWVycm9yL3NlcnZlci1lcnJvci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBRzVEOzs7OztHQUtHO0FBSUgsTUFBTSxPQUFPLDZCQUE2QjtJQUd4QyxPQUFPLENBQUMsR0FBVyxFQUFFLEtBQVU7UUFDN0IsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQ3BCLENBQUM7SUFFRCxPQUFPLENBQUMsR0FBVztRQUNqQixJQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDcEIsQ0FBQztJQUVELFVBQVUsQ0FBQyxHQUFXO1FBQ3BCLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNwQixDQUFDO0lBRUQsS0FBSztRQUNILElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNwQixDQUFDO0lBRU8sVUFBVTtRQUNoQixNQUFNLElBQUksMEJBQTBCLENBQUMsNkJBQTZCLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDcEYsQ0FBQzs7QUFwQmUsMkNBQWEsR0FBRywyREFBMkQsQ0FBQzs2SUFEakYsNkJBQTZCO2lKQUE3Qiw2QkFBNkIsY0FGNUIsTUFBTTsyRkFFUCw2QkFBNkI7a0JBSHpDLFV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d0Vycm9yKCk7XG4gIH1cblxuICBjbGVhcigpe1xuICAgIHRoaXMudGhyb3dFcnJvcigpO1xuICB9XG5cbiAgcHJpdmF0ZSB0aHJvd0Vycm9yKCkge1xuICAgIHRocm93IG5ldyBEYWZmU2VydmVyU2lkZVN0b3JhZ2VFcnJvcihEYWZmU2VydmVyRXJyb3JTdG9yYWdlU2VydmljZS5FUlJPUl9NRVNTQUdFKTtcbiAgfVxufVxuIl19
@@ -1,13 +0,0 @@
1
- /**
2
- * Range
3
- *
4
- * Range accepts two inputs, a `start` and an `end`
5
- * and returns an array filled with numbers from
6
- * `start` to `end`.
7
- *
8
- * @param start
9
- * @param end
10
- * @returns number
11
- */
12
- export const range = (start, end) => Array.apply(null, Array(end - start + 1)).map((val, index) => index + start);
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFuZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL3V0aWxzL3JhbmdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7O0dBVUc7QUFDSCxNQUFNLENBQUMsTUFBTSxLQUFLLEdBQUcsQ0FBQyxLQUFhLEVBQUUsR0FBVyxFQUFpQixFQUFFLENBQ2pFLEtBQUssQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxHQUFHLEdBQUcsS0FBSyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxFQUFFLEtBQUssRUFBRSxFQUFFLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBSYW5nZVxuICpcbiAqIFJhbmdlIGFjY2VwdHMgdHdvIGlucHV0cywgYSBgc3RhcnRgIGFuZCBhbiBgZW5kYFxuICogYW5kIHJldHVybnMgYW4gYXJyYXkgZmlsbGVkIHdpdGggbnVtYmVycyBmcm9tXG4gKiBgc3RhcnRgIHRvIGBlbmRgLlxuICpcbiAqIEBwYXJhbSBzdGFydFxuICogQHBhcmFtIGVuZFxuICogQHJldHVybnMgbnVtYmVyXG4gKi9cbmV4cG9ydCBjb25zdCByYW5nZSA9IChzdGFydDogbnVtYmVyLCBlbmQ6IG51bWJlcik6IEFycmF5PG51bWJlcj4gPT5cbiAgQXJyYXkuYXBwbHkobnVsbCwgQXJyYXkoZW5kIC0gc3RhcnQgKyAxKSkubWFwKCh2YWwsIGluZGV4KSA9PiBpbmRleCArIHN0YXJ0KTtcblxuIl19
@@ -1,108 +0,0 @@
1
- import { unique } from '@daffodil/core';
2
- import * as i0 from '@angular/core';
3
- import { Injectable } from '@angular/core';
4
- import { Observable } from 'rxjs';
5
- import * as i1 from 'apollo-angular';
6
-
7
- const getFragmentNames = (fragment) => fragment.definitions.filter(def => def.kind === 'FragmentDefinition').map(def => def.name.value);
8
- /**
9
- * Builds a list of the first fragment name present inside the specified GraphQL document nodes.
10
- * Returns an empty array if no fragments have been defined or if null is passed.
11
- *
12
- * @param fragments The created fragments.
13
- */
14
- const daffGetFragmentNames = (...fragments) => fragments.reduce((acc, fragment) => {
15
- const names = getFragmentNames(fragment);
16
- if (names[0]) {
17
- acc.push(names[0]);
18
- }
19
- return acc;
20
- }, []);
21
- /**
22
- * Builds a string of fragment names that can be interpolated into a GraphQL query.
23
- * Each name is separated by a newline character: '\n'.
24
- * If an empty array is passed, an empty string is returned.
25
- * Only the first fragment name from each passed fragment is returned.
26
- *
27
- * @param fragments A list of GraphQL documents that contain fragments.
28
- */
29
- const daffBuildFragmentNameSpread = (...fragments) => unique(daffGetFragmentNames(...fragments)).reduce((acc, name) => acc.concat(`...${name}\n`), '');
30
-
31
- /**
32
- * Builds a string of fragment definitions that can be interpolated into a GraphQL query.
33
- * Each definition is separated by a newline character: '\n'.
34
- *
35
- * @param documents A list of GraphQL documents that should only contain fragments.
36
- */
37
- const daffBuildFragmentDefinition = (...documents) => documents.reduce((acc, fragment) => acc.concat(`${fragment.loc.source.body}\n`), '');
38
-
39
- /**
40
- * A service that will queue mutate calls to Apollo.
41
- * It will not send subsequent mutate requests until the previous one has been completed.
42
- * This is useful for avoiding race conditions on the backend.
43
- * This should be used alongside Apollo.
44
- */
45
- class DaffQueuedApollo {
46
- constructor(apollo) {
47
- this.apollo = apollo;
48
- this.queue = [];
49
- }
50
- /**
51
- * Queue up a mutate request.
52
- * The request will not actually be queued until the returned observable is subscribed.
53
- * If the queue is empty, the request will be sent when it enters the queue.
54
- * Otherwise, it will be sent when it reaches the front of the queue.
55
- * The observable will complete after it emits once.
56
- *
57
- * @param options Mutation options.
58
- */
59
- mutate(options) {
60
- return new Observable(subscriber => this.addRequestToQueue(subscriber, this.apollo.mutate(options)));
61
- }
62
- addRequestToQueue(subscriber, request) {
63
- this.queue.push(() => {
64
- const sub = request.subscribe({
65
- next: response => {
66
- // emit the outer observable
67
- subscriber.next(response);
68
- subscriber.complete();
69
- this.finishRequestSubscription(sub);
70
- },
71
- error: error => {
72
- subscriber.error(error);
73
- this.finishRequestSubscription(sub);
74
- },
75
- complete: () => {
76
- subscriber.complete();
77
- this.finishRequestSubscription(sub);
78
- },
79
- });
80
- });
81
- // start the queue if previously empty
82
- if (this.queue.length === 1) {
83
- this.queue[0]();
84
- }
85
- }
86
- finishRequestSubscription(requestSubscription) {
87
- var _a, _b;
88
- requestSubscription.unsubscribe();
89
- // process queue
90
- this.queue.shift();
91
- (_b = (_a = this.queue)[0]) === null || _b === void 0 ? void 0 : _b.call(_a);
92
- }
93
- }
94
- /** @nocollapse */ DaffQueuedApollo.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffQueuedApollo, deps: [{ token: i1.Apollo }], target: i0.ɵɵFactoryTarget.Injectable });
95
- /** @nocollapse */ DaffQueuedApollo.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffQueuedApollo, providedIn: 'root' });
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffQueuedApollo, decorators: [{
97
- type: Injectable,
98
- args: [{
99
- providedIn: 'root',
100
- }]
101
- }], ctorParameters: function () { return [{ type: i1.Apollo }]; } });
102
-
103
- /**
104
- * Generated bundle index. Do not edit.
105
- */
106
-
107
- export { DaffQueuedApollo, daffBuildFragmentDefinition, daffBuildFragmentNameSpread };
108
- //# sourceMappingURL=daffodil-core-graphql.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-core-graphql.mjs","sources":["../../../libs/core/graphql/src/fragments/build-fragment-name-spread.ts","../../../libs/core/graphql/src/fragments/build-fragment-definition.ts","../../../libs/core/graphql/src/apollo/queued-apollo/queued-apollo.service.ts","../../../libs/core/graphql/src/daffodil-core-graphql.ts"],"sourcesContent":["import {\n DocumentNode,\n FragmentDefinitionNode,\n} from 'graphql';\n\nimport { unique } from '@daffodil/core';\n\nexport const getFragmentNames = (fragment: DocumentNode) =>\n fragment.definitions.filter(def =>\n def.kind === 'FragmentDefinition',\n ).map(def =>\n (<FragmentDefinitionNode>def).name.value,\n );\n\n/**\n * Builds a list of the first fragment name present inside the specified GraphQL document nodes.\n * Returns an empty array if no fragments have been defined or if null is passed.\n *\n * @param fragments The created fragments.\n */\nconst daffGetFragmentNames = (...fragments: DocumentNode[]): string[] =>\n fragments.reduce((acc, fragment) => {\n const names = getFragmentNames(fragment);\n if (names[0]) {\n acc.push(names[0]);\n }\n return acc;\n }, []);\n\n/**\n * Builds a string of fragment names that can be interpolated into a GraphQL query.\n * Each name is separated by a newline character: '\\n'.\n * If an empty array is passed, an empty string is returned.\n * Only the first fragment name from each passed fragment is returned.\n *\n * @param fragments A list of GraphQL documents that contain fragments.\n */\nexport const daffBuildFragmentNameSpread = (...fragments: DocumentNode[]): string =>\n unique(daffGetFragmentNames(...fragments)).reduce((acc, name) => acc.concat(`...${name}\\n`), '');\n","import { DocumentNode } from 'graphql';\n\n/**\n * Builds a string of fragment definitions that can be interpolated into a GraphQL query.\n * Each definition is separated by a newline character: '\\n'.\n *\n * @param documents A list of GraphQL documents that should only contain fragments.\n */\nexport const daffBuildFragmentDefinition = (...documents: DocumentNode[]): string =>\n documents.reduce((acc, fragment) => acc.concat(`${fragment.loc.source.body}\\n`), '');\n","import { Injectable } from '@angular/core';\nimport {\n MutationOptions,\n FetchResult,\n} from '@apollo/client/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n Subscriber,\n Subscription,\n} from 'rxjs';\n\n/**\n * A service that will queue mutate calls to Apollo.\n * It will not send subsequent mutate requests until the previous one has been completed.\n * This is useful for avoiding race conditions on the backend.\n * This should be used alongside Apollo.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffQueuedApollo {\n queue: (() => void)[] = [];\n\n constructor(\n private apollo: Apollo,\n ) {}\n\n /**\n * Queue up a mutate request.\n * The request will not actually be queued until the returned observable is subscribed.\n * If the queue is empty, the request will be sent when it enters the queue.\n * Otherwise, it will be sent when it reaches the front of the queue.\n * The observable will complete after it emits once.\n *\n * @param options Mutation options.\n */\n mutate<T, V = Record<string, any>>(options: MutationOptions<T, V>): Observable<FetchResult<T>> {\n return new Observable(subscriber => this.addRequestToQueue(subscriber, this.apollo.mutate(options)));\n }\n\n private addRequestToQueue(subscriber: Subscriber<any>, request: Observable<any>): void {\n this.queue.push(() => {\n const sub = request.subscribe({\n next: response => {\n // emit the outer observable\n subscriber.next(response);\n subscriber.complete();\n\n this.finishRequestSubscription(sub);\n },\n error: error => {\n subscriber.error(error);\n this.finishRequestSubscription(sub);\n },\n complete: () => {\n subscriber.complete();\n this.finishRequestSubscription(sub);\n },\n });\n });\n\n // start the queue if previously empty\n if (this.queue.length === 1) {\n this.queue[0]();\n }\n }\n\n private finishRequestSubscription(requestSubscription: Subscription): void {\n requestSubscription.unsubscribe();\n\n // process que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C;;AAGlC,QAAA,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACnB,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,KAAK,EAAC,CAAC,CAAC,kDAAI,CAAC;KACnB;;gIArDU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAhB,mBAAA,gBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA,CAAA;2FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACpBD;;AAEG;;;;"}
@@ -1,122 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
3
- import * as i1 from '@angular/router';
4
- import { PRIMARY_OUTLET } from '@angular/router';
5
- import { createEntityAdapter } from '@ngrx/entity';
6
- import { ROUTER_NAVIGATED } from '@ngrx/router-store';
7
- import { DaffFilterType } from '@daffodil/core';
8
-
9
- /**
10
- * Truncates the file extension from the end of the URI.
11
- * Captures the truncated URI in the `uri` named group.
12
- */
13
- const DAFF_TRUNCATE_FILE_EXTENSION_REGEX = /(.*)(?=\.)/;
14
- /**
15
- * Truncates the file extension from the end of the URI.
16
- */
17
- const daffUriTruncateFileExtension = (uri) => { var _a; return ((_a = uri.match(DAFF_TRUNCATE_FILE_EXTENSION_REGEX)) === null || _a === void 0 ? void 0 : _a[0]) || uri; };
18
-
19
- /**
20
- * Truncates leading path segments from a URI.
21
- * e.g. /foo/bar/baz.html -> baz.html
22
- */
23
- const daffUriTruncateLeadingPathSegments = (uri) => uri.split('/').pop();
24
-
25
- /**
26
- * A regex to truncate the leading slash from a URI,
27
- * capturing the truncated in the `uri` group.
28
- * e.g. /foo/bar/baz.html -> foo/bar/baz.html
29
- */
30
- const DAFF_TRUNCATE_LEADING_SLASH_REGEX = /^\/?(?<uri>.+)$/;
31
- /**
32
- * Truncates the leading slash from a URI.
33
- * e.g. /foo/bar/baz.html -> foo/bar/baz.html
34
- */
35
- const daffUriTruncateLeadingSlash = (uri) => { var _a; return ((_a = uri.match(DAFF_TRUNCATE_LEADING_SLASH_REGEX)) === null || _a === void 0 ? void 0 : _a.groups.uri) || uri; };
36
-
37
- /**
38
- * Truncates query parameters and fragments from a URI.
39
- * e.g. /foo/bar/baz.html?thing=test#id -> /foo/bar/baz.html
40
- */
41
- const daffUriTruncateQueryFragment = (uri) => {
42
- if (uri[0] !== '/') {
43
- uri = `/${uri}`;
44
- }
45
- return uri.replace(/(\?.*)|(#.*)/, '');
46
- };
47
-
48
- /**
49
- * Processes URIs to remove extraneous Angular-specific information.
50
- */
51
- class DaffRoutingUriNormalizer {
52
- constructor(urlParser) {
53
- this.urlParser = urlParser;
54
- }
55
- /**
56
- * Normalizes an Angular router path into a useable URI.
57
- * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment')` -> `'some/url.html?query=param#fragment'`
58
- *
59
- * Optionally accepts an outlet to target.
60
- * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment', 'secondary')` -> `'outlet?query=param#fragment'`
61
- *
62
- * @param uri The URI to normalize.
63
- * @param outlet An optional outlet to process into a URI.
64
- */
65
- normalize(uri, outlet = PRIMARY_OUTLET) {
66
- const urlTree = this.urlParser.parse(uri);
67
- urlTree.root.children = {
68
- [PRIMARY_OUTLET]: urlTree.root.children[outlet],
69
- };
70
- return this.urlParser.serialize(urlTree);
71
- }
72
- }
73
- /** @nocollapse */ DaffRoutingUriNormalizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffRoutingUriNormalizer, deps: [{ token: i1.UrlSerializer }], target: i0.ɵɵFactoryTarget.Injectable });
74
- /** @nocollapse */ DaffRoutingUriNormalizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffRoutingUriNormalizer, providedIn: 'root' });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffRoutingUriNormalizer, decorators: [{
76
- type: Injectable,
77
- args: [{
78
- providedIn: 'root',
79
- }]
80
- }], ctorParameters: function () { return [{ type: i1.UrlSerializer }]; } });
81
-
82
- /**
83
- * Creates a reducer that will clear all contextual errors from entities in state when `ROUTER_NAVIGATED` is dispatched.
84
- */
85
- function daffRouterStateNavigatedClearEntityErrorsReducerFactory(adapter = createEntityAdapter()) {
86
- return (state, action) => {
87
- switch (action.type) {
88
- case ROUTER_NAVIGATED:
89
- return adapter.map((entity) => (Object.assign(Object.assign({}, entity), { daffErrors: [] })), state);
90
- default:
91
- return state;
92
- }
93
- };
94
- }
95
-
96
- /**
97
- * A reducer that will clear all errors from state when `ROUTER_NAVIGATED` is dispatched.
98
- */
99
- function daffRouterStateNavigatedClearErrorsReducer(state, action) {
100
- switch (action.type) {
101
- case ROUTER_NAVIGATED:
102
- return Object.assign(Object.assign({}, state), { daffErrors: [] });
103
- default:
104
- return state;
105
- }
106
- }
107
-
108
- /**
109
- * A standard filter request builder that creates an equal filter request with the query params values.
110
- */
111
- const daffRoutingQueryParamFilterRequestEqualBuilder = (filterName, qpValue) => ({
112
- type: DaffFilterType.Equal,
113
- name: filterName,
114
- value: qpValue,
115
- });
116
-
117
- /**
118
- * Generated bundle index. Do not edit.
119
- */
120
-
121
- export { DAFF_TRUNCATE_FILE_EXTENSION_REGEX, DAFF_TRUNCATE_LEADING_SLASH_REGEX, DaffRoutingUriNormalizer, daffRouterStateNavigatedClearEntityErrorsReducerFactory, daffRouterStateNavigatedClearErrorsReducer, daffRoutingQueryParamFilterRequestEqualBuilder, daffUriTruncateFileExtension, daffUriTruncateLeadingPathSegments, daffUriTruncateLeadingSlash, daffUriTruncateQueryFragment };
122
- //# sourceMappingURL=daffodil-core-routing.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-core-routing.mjs","sources":["../../../libs/core/routing/src/uri/truncation/file-extension.ts","../../../libs/core/routing/src/uri/truncation/leading-path-segments.ts","../../../libs/core/routing/src/uri/truncation/leading-slash.ts","../../../libs/core/routing/src/uri/truncation/query-fragment.ts","../../../libs/core/routing/src/uri/normalizer.service.ts","../../../libs/core/routing/src/reducers/clear-errors/navigated-entity-reducer-factory.ts","../../../libs/core/routing/src/reducers/clear-errors/navigated.reducer.ts","../../../libs/core/routing/src/query-param-filter/request-builder/equal.ts","../../../libs/core/routing/src/daffodil-core-routing.ts"],"sourcesContent":["/**\n * Truncates the file extension from the end of the URI.\n * Captures the truncated URI in the `uri` named group.\n */\nexport const DAFF_TRUNCATE_FILE_EXTENSION_REGEX = /(.*)(?=\\.)/;\n/**\n * Truncates the file extension from the end of the URI.\n */\nexport const daffUriTruncateFileExtension = (uri: string): string => uri.match(DAFF_TRUNCATE_FILE_EXTENSION_REGEX)?.[0] || uri;\n","/**\n * Truncates leading path segments from a URI.\n * e.g. /foo/bar/baz.html -> baz.html\n */\nexport const daffUriTruncateLeadingPathSegments = (uri: string): string =>\n uri.split('/').pop();\n","/**\n * A regex to truncate the leading slash from a URI,\n * capturing the truncated in the `uri` group.\n * e.g. /foo/bar/baz.html -> foo/bar/baz.html\n */\nexport const DAFF_TRUNCATE_LEADING_SLASH_REGEX = /^\\/?(?<uri>.+)$/;\n/**\n * Truncates the leading slash from a URI.\n * e.g. /foo/bar/baz.html -> foo/bar/baz.html\n */\nexport const daffUriTruncateLeadingSlash = (uri: string): string =>\n uri.match(DAFF_TRUNCATE_LEADING_SLASH_REGEX)?.groups.uri || uri;\n","/**\n * Truncates query parameters and fragments from a URI.\n * e.g. /foo/bar/baz.html?thing=test#id -> /foo/bar/baz.html\n */\nexport const daffUriTruncateQueryFragment = (uri: string): string => {\n if(uri[0] !== '/') {\n uri = `/${uri}`;\n }\n return uri.replace(/(\\?.*)|(#.*)/, '');\n};\n","import { Injectable } from '@angular/core';\nimport {\n UrlSerializer,\n UrlTree,\n PRIMARY_OUTLET,\n} from '@angular/router';\n\n/**\n * Processes URIs to remove extraneous Angular-specific information.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffRoutingUriNormalizer {\n constructor(\n private urlParser: UrlSerializer,\n ) {}\n\n /**\n * Normalizes an Angular router path into a useable URI.\n * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment')` -> `'some/url.html?query=param#fragment'`\n *\n * Optionally accepts an outlet to target.\n * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment', 'secondary')` -> `'outlet?query=param#fragment'`\n *\n * @param uri The URI to normalize.\n * @param outlet An optional outlet to process into a URI.\n */\n normalize(uri: string, outlet = PRIMARY_OUTLET): string {\n const urlTree: UrlTree = this.urlParser.parse(uri);\n urlTree.root.children = {\n [PRIMARY_OUTLET]: urlTree.root.children[outlet],\n };\n\n return this.urlParser.serialize(urlTree);\n }\n}\n","import {\n createEntityAdapter,\n EntityAdapter,\n EntityState,\n} from '@ngrx/entity';\nimport {\n RouterAction,\n ROUTER_NAVIGATED,\n} from '@ngrx/router-store';\n\nimport { DaffErrorable } from '@daffodil/core/state';\n\n/**\n * Creates a reducer that will clear all contextual errors from entities in state when `ROUTER_NAVIGATED` is dispatched.\n */\nexport function daffRouterStateNavigatedClearEntityErrorsReducerFactory<T extends DaffErrorable = DaffErrorable>(adapter: EntityAdapter<T> = createEntityAdapter<T>()) {\n return (state: EntityState<T>, action: RouterAction<unknown>): EntityState<T> => {\n switch (action.type) {\n case ROUTER_NAVIGATED:\n return adapter.map(\n (entity) => ({\n ...entity,\n daffErrors: [],\n }),\n state,\n );\n\n default:\n return state;\n }\n };\n}\n","import {\n RouterAction,\n ROUTER_NAVIGATED,\n} from '@ngrx/router-store';\n\nimport { DaffErrorable } from '@daffodil/core/state';\n\n/**\n * A reducer that will clear all errors from state when `ROUTER_NAVIGATED` is dispatched.\n */\nexport function daffRouterStateNavigatedClearErrorsReducer<T extends DaffErrorable = DaffErrorable>(state: T, action: RouterAction<unknown>): T {\n switch (action.type) {\n case ROUTER_NAVIGATED:\n return {\n ...state,\n daffErrors: [],\n };\n\n default:\n return state;\n }\n}\n","import {\n DaffFilterEqualRequest,\n DaffFilterType,\n} from '@daffodil/core';\n\nimport { DaffRoutingQueryParamFilterRequestBuilder } from './type';\n\n/**\n * A standard filter request builder that creates an equal filter request with the query params values.\n */\nexport const daffRoutingQueryParamFilterRequestEqualBuilder: DaffRoutingQueryParamFilterRequestBuilder<DaffFilterEqualRequest>\n = (filterName, qpValue) => ({\n type: DaffFilterType.Equal,\n name: filterName,\n value: qpValue,\n });\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AACI,MAAM,kCAAkC,GAAG,aAAa;AAC/D;;AAEG;AACU,MAAA,4BAA4B,GAAG,CAAC,GAAW,KAAa,EAAA,IAAA,EAAA,CAAA,CAAA,OAAA,CAAA,CAAA,EAAA,GAAA,GAAG,CAAC,KAAK,CAAC,kCAAkC,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,CAAC,CAAC,KAAI,GAAG,CAAA;;ACR9H;;;AAGG;AACU,MAAA,kCAAkC,GAAG,CAAC,GAAW,KAC5D,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG;;ACLpB;;;;AAIG;AACI,MAAM,iCAAiC,GAAG,kBAAkB;AACnE;;;AAGG;AACU,MAAA,2BAA2B,GAAG,CAAC,GAAW,KAAY,EAAA,IAAA,EAAA,CAAA,CACjE,OAAA,CAAA,CAAA,EAAA,GAA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wBAAwB,cAFvB,MAAM,EAAA,CAAA,CAAA;2FAEP,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACAD;;AAEG;SACa,uDAAuD,CAA0C,OAAA,GAA4B,mBAAmB,EAAK,EAAA;AACnK,IAAA,OAAO,CAAC,KAAqB,EAAE,MAA6B,KAAoB;QAC9E,QAAQ,MAAM,CAAC,IAAI;AACjB,YAAA,KAAK,gBAAgB;AACnB,gBAAA,OAAO,OAAO,CAAC,GAAG,CAChB,CAAC,MAAM,sCACF,MAAM,CAAA,EAAA,EACT,UAAU,EAAE,EAAE,IACd,EACF,KAAK,CACN,CAAC;AAEJ,YAAA;AACE,gBAAA,OAAO,KAAK,CAAC;AAChB,SAAA;AACH,KAAC,CAAC;AACJ;;ACxBA;;AAEG;AACa,SAAA,0CAA0C,CAA0C,KAAQ,EAAE,MAA6B,EAAA;IACzI,QAAQ,MAAM,CAAC,IAAI;AACjB,QAAA,KAAK,gBAAgB;AACnB,YAAA,OAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACK,KAAK,CAAA,EAAA,EACR,UAAU,EAAE,EAAE,EACd,CAAA,CAAA;AAEJ,QAAA;AACE,YAAA,OAAO,KAAK,CAAC;AAChB,KAAA;AACH;;ACdA;;AAEG;AACU,MAAA,8CAA8C,GACxD,CAAC,UAAU,EAAE,OAAO,MAAM;IAC1B,IAAI,EAAE,cAAc,CAAC,KAAK;AAC1B,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,KAAK,EAAE,OAAO;AACf,CAAA;;ACfF;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-core-state-testing.mjs","sources":["../../../libs/core/state/testing/src/mock-collection-facade.ts","../../../libs/core/state/testing/src/mock-operation-facade.ts","../../../libs/core/state/testing/src/daffodil-core-state-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport {\n DaffCollectionMetadata,\n DaffCollectionRequest,\n DaffFilters,\n DaffSortDirectionEnum,\n DaffSortOption,\n} from '@daffodil/core';\nimport { DaffCollectionFacadeInterface } from '@daffodil/core/state';\n\n/**\n * Can be used to mock out the {@link DaffCollectionFacade} in testing environments.\n *\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffCollectionFacade implements DaffCollectionFacadeInterface {\n metadata$: BehaviorSubject<DaffCollectionMetadata> = new BehaviorSubject(null);\n request$: BehaviorSubject<DaffCollectionRequest> = new BehaviorSubject(null);\n count$: BehaviorSubject<number> = new BehaviorSubject(0);\n currentPage$: BehaviorSubject<number> = new BehaviorSubject(0);\n totalPages$: BehaviorSubject<number> = new BehaviorSubject(0);\n pageSize$: BehaviorSubject<number> = new BehaviorSubject(0);\n sortOptions$: BehaviorSubject<DaffSortOption[]> = new BehaviorSubject([]);\n appliedSortOption$: BehaviorSubject<string> = new BehaviorSubject(null);\n appliedSortDirection$: BehaviorSubject<DaffSortDirectionEnum> = new BehaviorSubject(null);\n filters$: BehaviorSubject<DaffFilters> = new BehaviorSubject({});\n appliedFilters$: BehaviorSubject<DaffFilters> = new BehaviorSubject({});\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport {\n DaffOperationStateFacadeInterface,\n DaffState,\n DaffStateError,\n} from '@daffodil/core/state';\n\n/**\n * Can be used to mock out the {@link DaffOperationStateFacade} in testing environments.\n *\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffOperationStateFacade implements DaffOperationStateFacadeInterface {\n loadingState$ = new BehaviorSubject<DaffState>(DaffState.Stable);\n loading$ = new BehaviorSubject<boolean>(false);\n resolving$ = new BehaviorSubject<boolean>(false);\n mutating$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n hasErrors$ = new BehaviorSubject<boolean>(false);\n\n dispatch(action: Action) {};\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAaA;;;;AAIG;MAEU,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;QAEE,IAAA,CAAA,SAAS,GAA4C,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC/E,IAAA,CAAA,QAAQ,GAA2C,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7E,IAAA,CAAA,MAAM,GAA4B,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QACzD,IAAA,CAAA,YAAY,GAA4B,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QAC/D,IAAA,CAAA,WAAW,GAA4B,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QAC9D,IAAA,CAAA,SAAS,GAA4B,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QAC5D,IAAA,CAAA,YAAY,GAAsC,IAAI,eAAe,CAAC,EAAE,CAAC,CAAC;QAC1E,IAAA,CAAA,kBAAkB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QACxE,IAAA,CAAA,qBAAqB,GAA2C,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC1F,IAAA,CAAA,QAAQ,GAAiC,IAAI,eAAe,CAAC,EAAE,CAAC,CAAC;QACjE,IAAA,CAAA,eAAe,GAAiC,IAAI,eAAe,CAAC,EAAE,CAAC,CAAC;KAGzE;IADC,QAAQ,CAAC,MAAc,EAAA,GAAI;;;wIAbhB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAxB,mBAAA,wBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAA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