@daffodil/core 0.88.1 → 0.90.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 (293) hide show
  1. package/external-script/index.d.ts +95 -1
  2. package/external-script/testing/index.d.ts +44 -1
  3. package/fesm2022/daffodil-core-external-script-testing.mjs +3 -3
  4. package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -1
  5. package/fesm2022/daffodil-core-external-script.mjs +4 -5
  6. package/fesm2022/daffodil-core-external-script.mjs.map +1 -1
  7. package/fesm2022/daffodil-core-graphql.mjs +3 -3
  8. package/fesm2022/daffodil-core-graphql.mjs.map +1 -1
  9. package/fesm2022/daffodil-core-routing.mjs +3 -3
  10. package/fesm2022/daffodil-core-routing.mjs.map +1 -1
  11. package/fesm2022/daffodil-core-state-testing.mjs +6 -6
  12. package/fesm2022/daffodil-core-state-testing.mjs.map +1 -1
  13. package/fesm2022/daffodil-core-state.mjs +2 -0
  14. package/fesm2022/daffodil-core-state.mjs.map +1 -1
  15. package/fesm2022/daffodil-core-testing.mjs +67 -67
  16. package/fesm2022/daffodil-core-testing.mjs.map +1 -1
  17. package/fesm2022/daffodil-core.mjs +77 -21
  18. package/fesm2022/daffodil-core.mjs.map +1 -1
  19. package/graphql/index.d.ts +64 -1
  20. package/index.d.ts +1322 -1
  21. package/package.json +1 -1
  22. package/routing/index.d.ts +86 -1
  23. package/state/index.d.ts +649 -1
  24. package/state/testing/index.d.ts +46 -1
  25. package/testing/index.d.ts +363 -1
  26. package/async/maybe.type.d.ts +0 -2
  27. package/base64/base64.interface.d.ts +0 -14
  28. package/base64/browser/browser.service.d.ts +0 -12
  29. package/base64/public_api.d.ts +0 -3
  30. package/base64/server/public_api.d.ts +0 -1
  31. package/base64/server/server.service.d.ts +0 -14
  32. package/canonically-locateable/canonically-locateable.interface.d.ts +0 -9
  33. package/collection/build-metadata.d.ts +0 -6
  34. package/collection/build-request.d.ts +0 -6
  35. package/collection/collection.interface.d.ts +0 -16
  36. package/collection/countable.interface.d.ts +0 -9
  37. package/collection/error-map.d.ts +0 -4
  38. package/collection/metadata.interface.d.ts +0 -12
  39. package/collection/page-out-of-bounds.error.d.ts +0 -9
  40. package/collection/paginable.d.ts +0 -10
  41. package/collection/public_api.d.ts +0 -10
  42. package/collection/request.interface.d.ts +0 -27
  43. package/collection/sortable.d.ts +0 -41
  44. package/constructable/constructable.d.ts +0 -24
  45. package/decorators/debounce.decorator.d.ts +0 -47
  46. package/decorators/public_api.d.ts +0 -1
  47. package/errors/error-map.d.ts +0 -8
  48. package/errors/error.interface.d.ts +0 -17
  49. package/errors/inheritable-error.d.ts +0 -22
  50. package/errors/is-error.d.ts +0 -4
  51. package/errors/public_api.d.ts +0 -4
  52. package/external-script/external-script.service.d.ts +0 -50
  53. package/external-script/interface.d.ts +0 -11
  54. package/external-script/public_api.d.ts +0 -3
  55. package/external-script/script.d.ts +0 -32
  56. package/external-script/testing/constants.d.ts +0 -4
  57. package/external-script/testing/external-script.service.d.ts +0 -37
  58. package/external-script/testing/public_api.d.ts +0 -2
  59. package/filterable/filter-base.d.ts +0 -24
  60. package/filterable/filter-option-base.d.ts +0 -9
  61. package/filterable/filter-option.d.ts +0 -6
  62. package/filterable/filter-request.d.ts +0 -7
  63. package/filterable/filter-toggle-request.d.ts +0 -6
  64. package/filterable/filter.d.ts +0 -9
  65. package/filterable/filterable.d.ts +0 -10
  66. package/filterable/filters.type.d.ts +0 -5
  67. package/filterable/public_api.d.ts +0 -12
  68. package/filterable/type/equal/filter.d.ts +0 -24
  69. package/filterable/type/equal/option.d.ts +0 -19
  70. package/filterable/type/equal/public_api.d.ts +0 -4
  71. package/filterable/type/equal/request.d.ts +0 -18
  72. package/filterable/type/equal/toggle-request.d.ts +0 -18
  73. package/filterable/type/filter-type.d.ts +0 -7
  74. package/filterable/type/range/filter-base.d.ts +0 -23
  75. package/filterable/type/range/option.d.ts +0 -14
  76. package/filterable/type/range/pair.d.ts +0 -20
  77. package/filterable/type/range/public_api.d.ts +0 -6
  78. package/filterable/type/range/request-base.d.ts +0 -20
  79. package/filterable/type/range/request-option.d.ts +0 -14
  80. package/filterable/type/range/separator.d.ts +0 -5
  81. package/filterable/type/range-numeric/filter.d.ts +0 -11
  82. package/filterable/type/range-numeric/public_api.d.ts +0 -3
  83. package/filterable/type/range-numeric/request.d.ts +0 -11
  84. package/filterable/type/range-numeric/toggle-request.d.ts +0 -12
  85. package/filters/array-to-dict/array-to-dict.d.ts +0 -5
  86. package/filters/behaviors/apply/apply-filter.d.ts +0 -8
  87. package/filters/behaviors/apply/apply-request-to-filters.d.ts +0 -8
  88. package/filters/behaviors/apply/apply-requests-to-filters.d.ts +0 -8
  89. package/filters/behaviors/apply/public_api.d.ts +0 -3
  90. package/filters/behaviors/clear/clear-filter.d.ts +0 -8
  91. package/filters/behaviors/clear/clear-filters.d.ts +0 -8
  92. package/filters/behaviors/clear/public_api.d.ts +0 -2
  93. package/filters/behaviors/remove/public_api.d.ts +0 -3
  94. package/filters/behaviors/remove/remove-filter.d.ts +0 -9
  95. package/filters/behaviors/remove/remove-request-from-filters.d.ts +0 -8
  96. package/filters/behaviors/remove/remove-requests-from-filters.d.ts +0 -9
  97. package/filters/behaviors/toggle/public_api.d.ts +0 -2
  98. package/filters/behaviors/toggle/toggle-request-on-filters.d.ts +0 -6
  99. package/filters/behaviors/toggle/toggle.d.ts +0 -6
  100. package/filters/compute-applied-filters/compute-applied-filters.d.ts +0 -6
  101. package/filters/errors/codes.enum.d.ts +0 -9
  102. package/filters/errors/filter-not-found.error.d.ts +0 -8
  103. package/filters/errors/public_api.d.ts +0 -4
  104. package/filters/errors/request-name-mismatch.error.d.ts +0 -9
  105. package/filters/errors/request-type-mismatch.error.d.ts +0 -9
  106. package/filters/errors/unknown-filter-type.error.d.ts +0 -9
  107. package/filters/find-applied/find-applied-options.d.ts +0 -5
  108. package/filters/find-applied/public_api.d.ts +0 -1
  109. package/filters/is-applied/is-filter-applied.d.ts +0 -5
  110. package/filters/is-applied/is-toggle-request-applied-to-filter.d.ts +0 -5
  111. package/filters/is-applied/public_api.d.ts +0 -2
  112. package/filters/public_api.d.ts +0 -13
  113. package/filters/to-request/filter-to-request.d.ts +0 -6
  114. package/filters/to-request/filters-to-requests.d.ts +0 -6
  115. package/filters/to-request/public_api.d.ts +0 -2
  116. package/filters/type/equal/array-to-dict/option.d.ts +0 -5
  117. package/filters/type/equal/behaviors/apply/apply.d.ts +0 -8
  118. package/filters/type/equal/behaviors/clear/clear.d.ts +0 -8
  119. package/filters/type/equal/behaviors/remove/remove.d.ts +0 -11
  120. package/filters/type/equal/behaviors/toggle/toggle.d.ts +0 -11
  121. package/filters/type/equal/is-applied/is-applied.d.ts +0 -5
  122. package/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.d.ts +0 -5
  123. package/filters/type/equal/public_api.d.ts +0 -1
  124. package/filters/type/equal/to-request/filter-to-request.d.ts +0 -5
  125. package/filters/type/range/array-to-dict/pair.d.ts +0 -5
  126. package/filters/type/range/behaviors/apply/apply.d.ts +0 -8
  127. package/filters/type/range/behaviors/clear/clear.d.ts +0 -8
  128. package/filters/type/range/behaviors/remove/remove.d.ts +0 -11
  129. package/filters/type/range/behaviors/toggle/toggle.d.ts +0 -10
  130. package/filters/type/range/compute-pair-label.d.ts +0 -1
  131. package/filters/type/range/is-applied/is-applied.d.ts +0 -5
  132. package/filters/type/range/is-applied/is-toggle-request-applied-to-filter.d.ts +0 -5
  133. package/filters/type/range/public_api.d.ts +0 -2
  134. package/filters/type/range/to-request/filter-to-request.d.ts +0 -5
  135. package/filters/type/range-numeric/to-request/filter-to-request.d.ts +0 -5
  136. package/filters/validators/public_api.d.ts +0 -2
  137. package/filters/validators/request-name-match.d.ts +0 -7
  138. package/filters/validators/request-type-match.d.ts +0 -7
  139. package/graphql/apollo/cacheable-operations/cacheable-operations-link.interface.d.ts +0 -4
  140. package/graphql/apollo/public_api.d.ts +0 -3
  141. package/graphql/apollo/queued-apollo/queued-apollo.service.d.ts +0 -29
  142. package/graphql/apollo/validator/type.d.ts +0 -8
  143. package/graphql/fragments/build-fragment-definition.d.ts +0 -8
  144. package/graphql/fragments/build-fragment-name-spread.d.ts +0 -11
  145. package/graphql/fragments/public_api.d.ts +0 -2
  146. package/graphql/public_api.d.ts +0 -2
  147. package/identifiable/array-to-dict.d.ts +0 -5
  148. package/identifiable/identifiable.interface.d.ts +0 -10
  149. package/identifiable/public_api.d.ts +0 -2
  150. package/injection-tokens/config.factory.d.ts +0 -9
  151. package/injection-tokens/config.type.d.ts +0 -18
  152. package/injection-tokens/multi.factory.d.ts +0 -8
  153. package/injection-tokens/multi.type.d.ts +0 -15
  154. package/injection-tokens/public_api.d.ts +0 -10
  155. package/injection-tokens/services.factory.d.ts +0 -8
  156. package/injection-tokens/services.type.d.ts +0 -15
  157. package/injection-tokens/single.factory.d.ts +0 -8
  158. package/injection-tokens/single.type.d.ts +0 -14
  159. package/injection-tokens/singleton.factory.d.ts +0 -8
  160. package/injection-tokens/singleton.type.d.ts +0 -15
  161. package/injection-tokens/token-constuctor-params.type.d.ts +0 -3
  162. package/kindable/kindable.interface.d.ts +0 -9
  163. package/kindable/public_api.d.ts +0 -1
  164. package/locateable/locateable.interface.d.ts +0 -10
  165. package/merge/merge.d.ts +0 -64
  166. package/merge/mergers/array-concat.d.ts +0 -1
  167. package/merge/mergers/dict-assign.d.ts +0 -1
  168. package/merge/mergers/public_api.d.ts +0 -3
  169. package/merge/mergers/type.d.ts +0 -4
  170. package/merge/public_api.d.ts +0 -3
  171. package/merge/strategy.type.d.ts +0 -8
  172. package/operators/all-of.pipe.d.ts +0 -6
  173. package/operators/any-of.pipe.d.ts +0 -6
  174. package/operators/backoff.pipe.d.ts +0 -7
  175. package/operators/catch-and-arrayify-errors.pipe.d.ts +0 -6
  176. package/operators/public_api.d.ts +0 -4
  177. package/orderable/orderable.d.ts +0 -9
  178. package/public_api.d.ts +0 -20
  179. package/routing/public_api.d.ts +0 -2
  180. package/routing/query-param-filter/public_api.d.ts +0 -2
  181. package/routing/query-param-filter/request-builder/equal.d.ts +0 -6
  182. package/routing/query-param-filter/request-builder/public_api.d.ts +0 -2
  183. package/routing/query-param-filter/request-builder/type.d.ts +0 -6
  184. package/routing/query-param-filter/type.d.ts +0 -16
  185. package/routing/uri/normalizer.service.d.ts +0 -22
  186. package/routing/uri/public_api.d.ts +0 -2
  187. package/routing/uri/truncation/file-extension.d.ts +0 -9
  188. package/routing/uri/truncation/leading-path-segments.d.ts +0 -5
  189. package/routing/uri/truncation/leading-slash.d.ts +0 -11
  190. package/routing/uri/truncation/public_api.d.ts +0 -4
  191. package/routing/uri/truncation/query-fragment.d.ts +0 -5
  192. package/state/actions/failure.type.d.ts +0 -13
  193. package/state/actions/public_api.d.ts +0 -1
  194. package/state/collection/actions.d.ts +0 -73
  195. package/state/collection/adapter.class.d.ts +0 -35
  196. package/state/collection/facade.d.ts +0 -34
  197. package/state/collection/facade.interface.d.ts +0 -54
  198. package/state/collection/initial-state.d.ts +0 -2
  199. package/state/collection/public_api.d.ts +0 -6
  200. package/state/collection/selector-factory.d.ts +0 -62
  201. package/state/errors/errorable.type.d.ts +0 -7
  202. package/state/errors/public_api.d.ts +0 -3
  203. package/state/errors/state-error.interface.d.ts +0 -18
  204. package/state/errors/transform-error-to-state-error.d.ts +0 -7
  205. package/state/operation/adapter.d.ts +0 -24
  206. package/state/operation/entity/adapter.d.ts +0 -84
  207. package/state/operation/entity/helpers/create-fake-id.d.ts +0 -7
  208. package/state/operation/entity/public_api.d.ts +0 -5
  209. package/state/operation/entity/selectors.d.ts +0 -24
  210. package/state/operation/entity/state.type.d.ts +0 -8
  211. package/state/operation/entity/type.d.ts +0 -15
  212. package/state/operation/facade.type.d.ts +0 -34
  213. package/state/operation/public_api.d.ts +0 -5
  214. package/state/operation/selectors.d.ts +0 -38
  215. package/state/operation/state.d.ts +0 -9
  216. package/state/operators/public_api.d.ts +0 -1
  217. package/state/operators/substream.pipe.d.ts +0 -26
  218. package/state/public_api.d.ts +0 -8
  219. package/state/reducers/create-meta.d.ts +0 -5
  220. package/state/reducers/identity.d.ts +0 -6
  221. package/state/reducers/public_api.d.ts +0 -2
  222. package/state/states/helpers.d.ts +0 -9
  223. package/state/states/loading.d.ts +0 -5
  224. package/state/states/mutable-loading.d.ts +0 -6
  225. package/state/states/public_api.d.ts +0 -5
  226. package/state/states/state.enum.d.ts +0 -48
  227. package/state/states/stateable.interface.d.ts +0 -8
  228. package/state/store/facade.d.ts +0 -3
  229. package/state/testing/mock-collection-facade.d.ts +0 -26
  230. package/state/testing/mock-operation-facade.d.ts +0 -20
  231. package/state/testing/public_api.d.ts +0 -2
  232. package/storage/error/error.d.ts +0 -7
  233. package/storage/error/error.service.d.ts +0 -15
  234. package/storage/error/public_api.d.ts +0 -2
  235. package/storage/localstorage/localstorage.service.d.ts +0 -23
  236. package/storage/noopstorage/noopstorage.service.d.ts +0 -13
  237. package/storage/persistence-server-safe.token.d.ts +0 -2
  238. package/storage/persistence.interface.d.ts +0 -7
  239. package/storage/public_api.d.ts +0 -6
  240. package/storage/server-error/public_api.d.ts +0 -2
  241. package/storage/server-error/server-error.d.ts +0 -11
  242. package/storage/server-error/server-error.service.d.ts +0 -18
  243. package/testing/angular/mocks/pipes/currency.d.ts +0 -13
  244. package/testing/factories/collection/metadata.factory.d.ts +0 -29
  245. package/testing/factories/collection/mock-collection.class.d.ts +0 -18
  246. package/testing/factories/collection/numerically-paginable.factory.d.ts +0 -8
  247. package/testing/factories/collection/public_api.d.ts +0 -7
  248. package/testing/factories/collection/request.factory.d.ts +0 -25
  249. package/testing/factories/collection/sort-option.factory.d.ts +0 -8
  250. package/testing/factories/collection/sort-options.factory.d.ts +0 -9
  251. package/testing/factories/collection/sortable.factory.d.ts +0 -9
  252. package/testing/factories/factory.d.ts +0 -42
  253. package/testing/factories/factory.interface.d.ts +0 -4
  254. package/testing/factories/filters/filter.factory.d.ts +0 -18
  255. package/testing/factories/filters/public_api.d.ts +0 -4
  256. package/testing/factories/filters/request.factory.d.ts +0 -13
  257. package/testing/factories/filters/toggle-request.d.ts +0 -18
  258. package/testing/factories/filters/type/equal/option.d.ts +0 -17
  259. package/testing/factories/filters/type/equal/public_api.d.ts +0 -3
  260. package/testing/factories/filters/type/equal/request.d.ts +0 -16
  261. package/testing/factories/filters/type/equal/toggle-request.d.ts +0 -16
  262. package/testing/factories/filters/type/equal.d.ts +0 -17
  263. package/testing/factories/filters/type/public_api.d.ts +0 -4
  264. package/testing/factories/filters/type/range-numeric/option.d.ts +0 -15
  265. package/testing/factories/filters/type/range-numeric/pair.d.ts +0 -23
  266. package/testing/factories/filters/type/range-numeric/public_api.d.ts +0 -5
  267. package/testing/factories/filters/type/range-numeric/request-option.d.ts +0 -15
  268. package/testing/factories/filters/type/range-numeric/request.d.ts +0 -23
  269. package/testing/factories/filters/type/range-numeric/toggle-request.d.ts +0 -20
  270. package/testing/factories/filters/type/range-numeric.d.ts +0 -19
  271. package/testing/factories/identifiable.factory.d.ts +0 -11
  272. package/testing/factories/public_api.d.ts +0 -5
  273. package/testing/public_api.d.ts +0 -4
  274. package/testing/testing.module.d.ts +0 -7
  275. package/testing/unique/enforce.d.ts +0 -7
  276. package/types/html.type.d.ts +0 -5
  277. package/types/id.type.d.ts +0 -1
  278. package/types/public_api.d.ts +0 -2
  279. package/utils/array-to-dict.d.ts +0 -7
  280. package/utils/collect.d.ts +0 -6
  281. package/utils/identity.d.ts +0 -5
  282. package/utils/long-arithmetic.d.ts +0 -43
  283. package/utils/observe.d.ts +0 -9
  284. package/utils/public_api.d.ts +0 -16
  285. package/utils/random-slice.d.ts +0 -7
  286. package/utils/random-subset.d.ts +0 -7
  287. package/utils/range.d.ts +0 -12
  288. package/utils/sample.d.ts +0 -4
  289. package/utils/shallow-compare.d.ts +0 -6
  290. package/utils/shuffle.d.ts +0 -5
  291. package/utils/unique.d.ts +0 -8
  292. package/validator/field-presence.d.ts +0 -6
  293. package/validator/public_api.d.ts +0 -1
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/core","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/core"]}}},"version":"0.88.1","description":"Interfaces built for daffodil/state","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/core":"^19.0.0","@angular/common":"^19.0.0","rxjs":"7.8.1"},"optionalDependencies":{"graphql":"^16.10.0","@angular/router":"^19.0.0","@apollo/client":"^3.12.6","@ngrx/store":"^19.0.0","angular-in-memory-web-api":"^0.19.0","apollo-angular":"^10.0.3","@faker-js/faker":"^9.8.0","enforce-unique":"^1.3.0"},"module":"fesm2022/daffodil-core.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-core.mjs"},"./external-script":{"types":"./external-script/index.d.ts","default":"./fesm2022/daffodil-core-external-script.mjs"},"./graphql":{"types":"./graphql/index.d.ts","default":"./fesm2022/daffodil-core-graphql.mjs"},"./routing":{"types":"./routing/index.d.ts","default":"./fesm2022/daffodil-core-routing.mjs"},"./testing":{"types":"./testing/index.d.ts","default":"./fesm2022/daffodil-core-testing.mjs"},"./state":{"types":"./state/index.d.ts","default":"./fesm2022/daffodil-core-state.mjs"},"./external-script/testing":{"types":"./external-script/testing/index.d.ts","default":"./fesm2022/daffodil-core-external-script-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","default":"./fesm2022/daffodil-core-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
1
+ {"name":"@daffodil/core","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/core"]}}},"version":"0.90.0","description":"Interfaces built for daffodil/state","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/core":"^20.0.0","@angular/common":"^20.0.0","rxjs":"^7.0.0"},"optionalDependencies":{"graphql":"^16.10.0","@angular/router":"^20.0.0","@apollo/client":"^3.12.6","@ngrx/store":"^20.0.0","angular-in-memory-web-api":"^0.20.0","apollo-angular":"^11.0.0","@faker-js/faker":"^9.8.0","enforce-unique":"^1.3.0"},"module":"fesm2022/daffodil-core.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-core.mjs"},"./external-script":{"types":"./external-script/index.d.ts","default":"./fesm2022/daffodil-core-external-script.mjs"},"./graphql":{"types":"./graphql/index.d.ts","default":"./fesm2022/daffodil-core-graphql.mjs"},"./routing":{"types":"./routing/index.d.ts","default":"./fesm2022/daffodil-core-routing.mjs"},"./state":{"types":"./state/index.d.ts","default":"./fesm2022/daffodil-core-state.mjs"},"./testing":{"types":"./testing/index.d.ts","default":"./fesm2022/daffodil-core-testing.mjs"},"./external-script/testing":{"types":"./external-script/testing/index.d.ts","default":"./fesm2022/daffodil-core-external-script-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","default":"./fesm2022/daffodil-core-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.6.2"}}
@@ -1 +1,86 @@
1
- export * from './public_api';
1
+ import { UrlSerializer, ParamMap } from '@angular/router';
2
+ import * as i0 from '@angular/core';
3
+ import { DaffFilterRequest, DaffFilter, DaffFilterEqualRequest } from '@daffodil/core';
4
+
5
+ /**
6
+ * Truncates the file extension from the end of the URI.
7
+ * Captures the truncated URI in the `uri` named group.
8
+ */
9
+ declare const DAFF_TRUNCATE_FILE_EXTENSION_REGEX: RegExp;
10
+ /**
11
+ * Truncates the file extension from the end of the URI.
12
+ */
13
+ declare const daffUriTruncateFileExtension: (uri: string) => string;
14
+
15
+ /**
16
+ * Truncates leading path segments from a URI.
17
+ * e.g. /foo/bar/baz.html -> baz.html
18
+ */
19
+ declare const daffUriTruncateLeadingPathSegments: (uri: string) => string;
20
+
21
+ /**
22
+ * A regex to truncate the leading slash from a URI,
23
+ * capturing the truncated in the `uri` group.
24
+ * e.g. /foo/bar/baz.html -> foo/bar/baz.html
25
+ */
26
+ declare const DAFF_TRUNCATE_LEADING_SLASH_REGEX: RegExp;
27
+ /**
28
+ * Truncates the leading slash from a URI.
29
+ * e.g. /foo/bar/baz.html -> foo/bar/baz.html
30
+ */
31
+ declare const daffUriTruncateLeadingSlash: (uri: string) => string;
32
+
33
+ /**
34
+ * Truncates query parameters and fragments from a URI.
35
+ * e.g. /foo/bar/baz.html?thing=test#id -> /foo/bar/baz.html
36
+ */
37
+ declare const daffUriTruncateQueryFragment: (uri: string) => string;
38
+
39
+ /**
40
+ * Processes URIs to remove extraneous Angular-specific information.
41
+ */
42
+ declare class DaffRoutingUriNormalizer {
43
+ private urlParser;
44
+ constructor(urlParser: UrlSerializer);
45
+ /**
46
+ * Normalizes an Angular router path into a useable URI.
47
+ * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment')` -> `'some/url.html?query=param#fragment'`
48
+ *
49
+ * Optionally accepts an outlet to target.
50
+ * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment', 'secondary')` -> `'outlet?query=param#fragment'`
51
+ *
52
+ * @param uri The URI to normalize.
53
+ * @param outlet An optional outlet to process into a URI.
54
+ */
55
+ normalize(uri: string, outlet?: string): string;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffRoutingUriNormalizer, never>;
57
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffRoutingUriNormalizer>;
58
+ }
59
+
60
+ /**
61
+ * Accepts a list of values set to a particular URL query param and returns a filter request.
62
+ */
63
+ type DaffRoutingQueryParamFilterRequestBuilder<T extends DaffFilterRequest = DaffFilterRequest> = (filterName: string, qpValue: ReturnType<ParamMap['getAll']>) => T;
64
+
65
+ interface DaffRoutingQueryParamFilter {
66
+ /**
67
+ * The name of the filter.
68
+ */
69
+ filterName: DaffFilter['name'];
70
+ /**
71
+ * The query param to use for this filter.
72
+ */
73
+ queryParam: string;
74
+ /**
75
+ * The filter request builder.
76
+ */
77
+ builder: DaffRoutingQueryParamFilterRequestBuilder;
78
+ }
79
+
80
+ /**
81
+ * A standard filter request builder that creates an equal filter request with the query params values.
82
+ */
83
+ declare const daffRoutingQueryParamFilterRequestEqualBuilder: DaffRoutingQueryParamFilterRequestBuilder<DaffFilterEqualRequest>;
84
+
85
+ export { DAFF_TRUNCATE_FILE_EXTENSION_REGEX, DAFF_TRUNCATE_LEADING_SLASH_REGEX, DaffRoutingUriNormalizer, daffRoutingQueryParamFilterRequestEqualBuilder, daffUriTruncateFileExtension, daffUriTruncateLeadingPathSegments, daffUriTruncateLeadingSlash, daffUriTruncateQueryFragment };
86
+ export type { DaffRoutingQueryParamFilter, DaffRoutingQueryParamFilterRequestBuilder };