@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
@@ -1,13 +0,0 @@
1
- import { DaffPersistenceService } from '../persistence.interface';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @inheritdoc
5
- */
6
- export declare class DaffNoopStorageService implements DaffPersistenceService {
7
- setItem(key: string, value: any): void;
8
- getItem(key: string): any;
9
- clear(): void;
10
- removeItem(key: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffNoopStorageService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffNoopStorageService>;
13
- }
@@ -1,2 +0,0 @@
1
- import { DaffPersistenceService } from './persistence.interface';
2
- export declare const DaffServerSafePersistenceServiceToken: import("@angular/core").InjectionToken<DaffPersistenceService>, provideDaffServerSafePersistenceServiceToken: <R extends DaffPersistenceService = DaffPersistenceService>(value: R) => import("@angular/core").ValueProvider;
@@ -1,7 +0,0 @@
1
- export interface DaffPersistenceService {
2
- setItem(key: string, value: any): void;
3
- getItem(key: string): any;
4
- clear(): void;
5
- removeItem(key: string): void;
6
- }
7
- export declare const DaffPersistenceServiceToken: import("@angular/core").InjectionToken<DaffPersistenceService>, provideDaffPersistenceService: <R extends DaffPersistenceService = DaffPersistenceService>(value: R) => import("@angular/core").ValueProvider;
@@ -1,6 +0,0 @@
1
- export * from './error/public_api';
2
- export * from './server-error/public_api';
3
- export { DaffLocalStorageService } from './localstorage/localstorage.service';
4
- export { DaffNoopStorageService } from './noopstorage/noopstorage.service';
5
- export { DaffPersistenceService, DaffPersistenceServiceToken, } from './persistence.interface';
6
- export { DaffServerSafePersistenceServiceToken } from './persistence-server-safe.token';
@@ -1,2 +0,0 @@
1
- export { DaffServerSideStorageError, DAFF_SERVER_STORAGE_SERVICE_ERROR_CODE, } from './server-error';
2
- export { DaffServerErrorStorageService } from './server-error.service';
@@ -1,11 +0,0 @@
1
- import { DaffError } from '../../errors/public_api';
2
- import { DaffStorageServiceError } from '../error/error';
3
- export declare const DAFF_SERVER_STORAGE_SERVICE_ERROR_CODE = "DAFF_SERVER_STORAGE_FAILURE";
4
- /**
5
- * An error thrown when there is an attempt to access storage on the server and none is available.
6
- */
7
- export declare class DaffServerSideStorageError extends DaffStorageServiceError implements DaffError {
8
- message: string;
9
- readonly code: string;
10
- constructor(message: string);
11
- }
@@ -1,18 +0,0 @@
1
- import { DaffPersistenceService } from '../persistence.interface';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A storage service meant to be loaded into SSR contexts.
5
- * It will always throw the {@link DaffServerSideStorageError}.
6
- *
7
- * @inheritdoc
8
- */
9
- export declare class DaffServerErrorStorageService implements DaffPersistenceService {
10
- static readonly ERROR_MESSAGE = "The DaffServerErrorStorageService always throws an error.";
11
- setItem(key: string, value: any): void;
12
- getItem(key: string): any;
13
- removeItem(key: string): any;
14
- clear(): void;
15
- private throwError;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffServerErrorStorageService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffServerErrorStorageService>;
18
- }
@@ -1,13 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @docs
5
- * A mock CurrencyPipe that does nothing to a given input.
6
- * This pipe is useful for asserting that a CurrencyPipe is in use via a spy,
7
- * but ignoring the actual underlying implementation
8
- */
9
- export declare class DaffMockCurrencyPipe implements PipeTransform {
10
- transform(value: number): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMockCurrencyPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<DaffMockCurrencyPipe, "currency", false>;
13
- }
@@ -1,29 +0,0 @@
1
- import { DaffCollectionMetadata, DaffFilters, DaffIdentifiable, DaffSortDirectionEnum, DaffSortOption, DaffSortOptions } from '@daffodil/core';
2
- import { DaffNumericallyPaginableFactory } from './numerically-paginable.factory';
3
- import { DaffSortableFactory } from './sortable.factory';
4
- import { DaffModelFactory } from '../factory';
5
- import { DaffFilterFactory } from '../filters/public_api';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Mocked {@link DaffCollectionMetadata} object.
9
- */
10
- export declare class MockCollectionMetadata implements DaffCollectionMetadata {
11
- currentPage: number;
12
- totalPages: number;
13
- pageSize: number;
14
- sortOptions: DaffSortOptions;
15
- appliedSortOption: DaffSortOption['value'];
16
- appliedSortDirection: DaffSortDirectionEnum;
17
- count: number;
18
- ids: DaffIdentifiable['id'][];
19
- filters: DaffFilters;
20
- constructor(pageInfoFactory: DaffNumericallyPaginableFactory, sortFieldsFactory: DaffSortableFactory, filterFactory: DaffFilterFactory);
21
- }
22
- /**
23
- * Factory for creating {@link DaffCollectionMetadata}s.
24
- */
25
- export declare class DaffCollectionMetadataFactory extends DaffModelFactory<DaffCollectionMetadata> {
26
- constructor(pageInfoFactory: DaffNumericallyPaginableFactory, sortFieldsFactory: DaffSortableFactory, filterFactory: DaffFilterFactory);
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCollectionMetadataFactory, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCollectionMetadataFactory>;
29
- }
@@ -1,18 +0,0 @@
1
- import { DaffCollection, DaffCollectionMetadata, DaffIdentifiable } from '@daffodil/core';
2
- import { DaffCollectionMetadataFactory } from './metadata.factory';
3
- import { DaffModelFactory } from '../factory';
4
- /**
5
- * Mocked {@link DaffCollection} object.
6
- *
7
- * It should be customized by passing the factory for the contained entity as the first constructor argument.
8
- */
9
- export declare class MockCollection<T extends DaffIdentifiable = DaffIdentifiable> implements DaffCollection<T> {
10
- private itemFactory;
11
- private metadataFactory;
12
- private _items;
13
- metadata: DaffCollectionMetadata;
14
- data: Record<T["id"], T>;
15
- constructor(itemFactory: DaffModelFactory<T>, metadataFactory: DaffCollectionMetadataFactory);
16
- private createItems;
17
- private createMetadata;
18
- }
@@ -1,8 +0,0 @@
1
- import { DaffNumericallyPaginable } from '@daffodil/core';
2
- import { DaffModelFactory } from '../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class DaffNumericallyPaginableFactory extends DaffModelFactory<DaffNumericallyPaginable> {
5
- constructor();
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffNumericallyPaginableFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffNumericallyPaginableFactory>;
8
- }
@@ -1,7 +0,0 @@
1
- export { DaffNumericallyPaginableFactory } from './numerically-paginable.factory';
2
- export { DaffSortableFactory } from './sortable.factory';
3
- export { DaffSortOptionFactory } from './sort-option.factory';
4
- export { DaffSortOptionsFactory } from './sort-options.factory';
5
- export * from './metadata.factory';
6
- export * from './request.factory';
7
- export * from './mock-collection.class';
@@ -1,25 +0,0 @@
1
- import { DaffCollectionRequest, DaffFilterRequest, DaffSortDirectionEnum } from '@daffodil/core';
2
- import { DaffModelFactory } from '../factory';
3
- import { DaffFilterRequestFactory } from '../filters/public_api';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Mocked {@link DaffCollectionRequest} object.
7
- */
8
- export declare class MockCollectionRequest implements DaffCollectionRequest {
9
- private filterRequestFactory;
10
- currentPage: number;
11
- appliedSortDirection: DaffSortDirectionEnum;
12
- pageSize: number;
13
- appliedSortOption: string;
14
- filterRequests: DaffFilterRequest[];
15
- constructor(filterRequestFactory: DaffFilterRequestFactory);
16
- private createFilterRequests;
17
- }
18
- /**
19
- * Factory for creating {@link DaffCollectionRequest}s.
20
- */
21
- export declare class DaffCollectionRequestFactory extends DaffModelFactory<DaffCollectionRequest> {
22
- constructor(filterRequestFactory: DaffFilterRequestFactory);
23
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCollectionRequestFactory, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCollectionRequestFactory>;
25
- }
@@ -1,8 +0,0 @@
1
- import { DaffSortOption } from '@daffodil/core';
2
- import { DaffModelFactory } from '../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class DaffSortOptionFactory extends DaffModelFactory<DaffSortOption> {
5
- constructor();
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffSortOptionFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffSortOptionFactory>;
8
- }
@@ -1,9 +0,0 @@
1
- import { DaffSortOptions } from '@daffodil/core';
2
- import { DaffSortOptionFactory } from './sort-option.factory';
3
- import { DaffModelFactory } from '../factory';
4
- import * as i0 from "@angular/core";
5
- export declare class DaffSortOptionsFactory extends DaffModelFactory<DaffSortOptions> {
6
- constructor(optionFactory: DaffSortOptionFactory);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffSortOptionsFactory, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffSortOptionsFactory>;
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffSortable } from '@daffodil/core';
2
- import { DaffSortOptionsFactory } from './sort-options.factory';
3
- import { DaffModelFactory } from '../factory';
4
- import * as i0 from "@angular/core";
5
- export declare class DaffSortableFactory extends DaffModelFactory<DaffSortable> {
6
- constructor(optionFactory: DaffSortOptionsFactory);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffSortableFactory, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffSortableFactory>;
9
- }
@@ -1,42 +0,0 @@
1
- import { Constructable } from '@daffodil/core';
2
- import { IDaffModelFactory } from './factory.interface';
3
- /**
4
- * The base class for model factories.
5
- *
6
- * The mock class is passed as the first constructor arg
7
- * and any additional args are passed to the mock class constructor.
8
- *
9
- * The constructor args can be omitted if the `create` method is overridden.
10
- *
11
- * @example Injecting a different factory into a mock class
12
- * ```ts
13
- * class MyMockModel {
14
- * constructor(
15
- * private otherFactory: MyOtherFactory
16
- * ) {}
17
- *
18
- * private createOtherModel() {
19
- * return this.otherFactory.create()
20
- * }
21
- *
22
- * otherModel = this.createOtherModel()
23
- * }
24
- *
25
- * @Injectable()
26
- * class TestFactory extends DaffModelFactory<MyMockModel> {
27
- * constructor(
28
- * otherFactory: MyOtherFactory
29
- * ) {
30
- * super(MyMockModel, otherFactory)
31
- * }
32
- * }
33
- * ```
34
- */
35
- export declare abstract class DaffModelFactory<T extends Record<string, any>, Klass extends Constructable<T> = Constructable<T>> implements IDaffModelFactory<T> {
36
- type?: Klass;
37
- _instantiationArgs: ConstructorParameters<Klass>;
38
- constructor(type?: Klass, ...args: ConstructorParameters<Klass>);
39
- create<R extends T = T>(partial: Partial<T> & T extends R ? Partial<T> : R): T & R;
40
- create(partial?: Partial<T>): T;
41
- createMany(qty?: number, partial?: Partial<T>): T[];
42
- }
@@ -1,4 +0,0 @@
1
- export interface IDaffModelFactory<T> {
2
- create(partial: Partial<T>): T;
3
- createMany(qty: number, partial: Partial<T>): T[];
4
- }
@@ -1,18 +0,0 @@
1
- import { DaffFilter } from '@daffodil/core';
2
- import { DaffModelFactory } from '../factory';
3
- import { DaffFilterEqualFactory } from './type/equal';
4
- import { DaffFilterRangeNumericFactory } from './type/range-numeric';
5
- import * as i0 from "@angular/core";
6
- export declare class MockDaffFilter {
7
- }
8
- /**
9
- * A factory for creating a {@link DaffFilter}.
10
- */
11
- export declare class DaffFilterFactory extends DaffModelFactory<DaffFilter> {
12
- private equalFactory;
13
- private rangeFactory;
14
- constructor(equalFactory: DaffFilterEqualFactory, rangeFactory: DaffFilterRangeNumericFactory);
15
- create(partial?: Partial<DaffFilter>): DaffFilter;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterFactory, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterFactory>;
18
- }
@@ -1,4 +0,0 @@
1
- export { DaffFilterFactory } from './filter.factory';
2
- export { DaffFilterRequestFactory } from './request.factory';
3
- export { DaffFilterToggleRequestFactory } from './toggle-request';
4
- export * from './type/public_api';
@@ -1,13 +0,0 @@
1
- import { DaffFilterRequest } from '@daffodil/core';
2
- import { DaffModelFactory } from '../factory';
3
- import { DaffFilterRequestEqualFactory } from './type/equal/request';
4
- import { DaffFilterRequestRangeNumericFactory } from './type/range-numeric/request';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * A factory for creating a {@link DaffFilterRequest}.
8
- */
9
- export declare class DaffFilterRequestFactory extends DaffModelFactory<DaffFilterRequest> {
10
- constructor(equalFactory: DaffFilterRequestEqualFactory, rangeFactory: DaffFilterRequestRangeNumericFactory);
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRequestFactory, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRequestFactory>;
13
- }
@@ -1,18 +0,0 @@
1
- import { DaffFilterToggleRequest } from '@daffodil/core';
2
- import { DaffModelFactory } from '../factory';
3
- import { DaffFilterToggleRequestEqualFactory } from './type/equal/toggle-request';
4
- import { DaffFilterToggleRequestRangeNumericFactory } from './type/range-numeric/toggle-request';
5
- import * as i0 from "@angular/core";
6
- export declare class MockDaffFilterToggleRequest {
7
- }
8
- /**
9
- * A factory for creating a {@link DaffFilterToggleRequest}.
10
- */
11
- export declare class DaffFilterToggleRequestFactory extends DaffModelFactory<DaffFilterToggleRequest> {
12
- private equalFactory;
13
- private rangeFactory;
14
- constructor(equalFactory: DaffFilterToggleRequestEqualFactory, rangeFactory: DaffFilterToggleRequestRangeNumericFactory);
15
- create(partial?: Partial<DaffFilterToggleRequest>): DaffFilterToggleRequest;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterToggleRequestFactory, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterToggleRequestFactory>;
18
- }
@@ -1,17 +0,0 @@
1
- import { DaffFilterEqualOption } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockDaffFilterEqualOption implements DaffFilterEqualOption {
5
- applied: boolean;
6
- value: string;
7
- label: string;
8
- count: number;
9
- }
10
- /**
11
- * A factory for creating a {@link DaffFilterEqualOption}.
12
- */
13
- export declare class DaffFilterEqualOptionFactory extends DaffModelFactory<DaffFilterEqualOption> {
14
- constructor();
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterEqualOptionFactory, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterEqualOptionFactory>;
17
- }
@@ -1,3 +0,0 @@
1
- export { DaffFilterEqualOptionFactory, MockDaffFilterEqualOption, } from './option';
2
- export { DaffFilterRequestEqualFactory, MockDaffFilterEqualRequest, } from './request';
3
- export { DaffFilterToggleRequestEqualFactory, MockDaffFilterToggleEqualRequest, } from './toggle-request';
@@ -1,16 +0,0 @@
1
- import { DaffFilterEqualRequest, DaffFilterType } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockDaffFilterEqualRequest implements DaffFilterEqualRequest {
5
- type: DaffFilterType.Equal;
6
- name: string;
7
- value: string[];
8
- }
9
- /**
10
- * A factory for creating a {@link DaffFilterEqualRequest}.
11
- */
12
- export declare class DaffFilterRequestEqualFactory extends DaffModelFactory<DaffFilterEqualRequest> {
13
- constructor();
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRequestEqualFactory, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRequestEqualFactory>;
16
- }
@@ -1,16 +0,0 @@
1
- import { DaffFilterEqualToggleRequest, DaffFilterType } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockDaffFilterToggleEqualRequest implements DaffFilterEqualToggleRequest {
5
- type: DaffFilterType.Equal;
6
- name: string;
7
- value: string;
8
- }
9
- /**
10
- * A factory for creating a {@link DaffFilterEqualToggleRequest}.
11
- */
12
- export declare class DaffFilterToggleRequestEqualFactory extends DaffModelFactory<DaffFilterEqualToggleRequest> {
13
- constructor();
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterToggleRequestEqualFactory, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterToggleRequestEqualFactory>;
16
- }
@@ -1,17 +0,0 @@
1
- import { DaffFilterEqual, DaffFilterType } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockFilterEqual implements DaffFilterEqual {
5
- type: DaffFilterType.Equal;
6
- label: string;
7
- name: string;
8
- options: {};
9
- }
10
- /**
11
- * A factory for creating a {@link DaffFilterEqual}.
12
- */
13
- export declare class DaffFilterEqualFactory extends DaffModelFactory<DaffFilterEqual> {
14
- constructor();
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterEqualFactory, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterEqualFactory>;
17
- }
@@ -1,4 +0,0 @@
1
- export * from './equal/public_api';
2
- export * from './range-numeric/public_api';
3
- export { DaffFilterEqualFactory, MockFilterEqual, } from './equal';
4
- export { DaffFilterRangeNumericFactory, MockFilterRangeNumeric, } from './range-numeric';
@@ -1,15 +0,0 @@
1
- import { DaffFilterRangeOption } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockFilterRangeNumericOption implements DaffFilterRangeOption<number> {
5
- value: number;
6
- label: string;
7
- }
8
- /**
9
- * A factory for creating a {@link DaffFilterRangeOption}.
10
- */
11
- export declare class DaffFilterRangeNumericOptionFactory extends DaffModelFactory<DaffFilterRangeOption<number>> {
12
- constructor();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRangeNumericOptionFactory, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRangeNumericOptionFactory>;
15
- }
@@ -1,23 +0,0 @@
1
- import { DaffFilterRangePair, DaffFilterRangeOption } from '@daffodil/core';
2
- import { DaffFilterRangeNumericOptionFactory } from './option';
3
- import { DaffModelFactory } from '../../../factory';
4
- import * as i0 from "@angular/core";
5
- export declare class MockDaffFilterRangeNumericPair implements DaffFilterRangePair<number> {
6
- applied: true;
7
- max: DaffFilterRangeOption<number>;
8
- min: DaffFilterRangeOption<number>;
9
- }
10
- /**
11
- * A factory for creating a {@link DaffFilterRangePair}.
12
- */
13
- export declare class DaffFilterRangeNumericPairFactory extends DaffModelFactory<DaffFilterRangePair<number>> {
14
- private option;
15
- constructor(option: DaffFilterRangeNumericOptionFactory);
16
- create(partial?: Partial<DaffFilterRangePair<number>>): {
17
- applied: true;
18
- min: DaffFilterRangeOption<number>;
19
- max: DaffFilterRangeOption<number>;
20
- };
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRangeNumericPairFactory, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRangeNumericPairFactory>;
23
- }
@@ -1,5 +0,0 @@
1
- export { DaffFilterRangeNumericOptionFactory, MockFilterRangeNumericOption, } from './option';
2
- export { DaffFilterRangeNumericPairFactory, MockDaffFilterRangeNumericPair, } from './pair';
3
- export { DaffFilterRequestRangeNumericFactory, MockDaffFilterRangeNumericRequest, } from './request';
4
- export { DaffFilterRangeNumericRequestOptionFactory, MockDaffFilterRangeNumericRequestOption, } from './request-option';
5
- export { DaffFilterToggleRequestRangeNumericFactory, MockDaffFilterToggleRangeNumericRequest, } from './toggle-request';
@@ -1,15 +0,0 @@
1
- import { DaffFilterRangeRequestOption } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockDaffFilterRangeNumericRequestOption implements DaffFilterRangeRequestOption<number> {
5
- min: number;
6
- max: number;
7
- }
8
- /**
9
- * A factory for creating a {@link DaffFilterRangeRequestOption}.
10
- */
11
- export declare class DaffFilterRangeNumericRequestOptionFactory extends DaffModelFactory<DaffFilterRangeRequestOption<number>> {
12
- constructor();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRangeNumericRequestOptionFactory, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRangeNumericRequestOptionFactory>;
15
- }
@@ -1,23 +0,0 @@
1
- import { DaffFilterRangeNumericRequest, DaffFilterType, DaffFilterRangeRequestOption } from '@daffodil/core';
2
- import { DaffFilterRangeNumericRequestOptionFactory } from './request-option';
3
- import { DaffModelFactory } from '../../../factory';
4
- import * as i0 from "@angular/core";
5
- export declare class MockDaffFilterRangeNumericRequest implements DaffFilterRangeNumericRequest {
6
- type: DaffFilterType.RangeNumeric;
7
- name: string;
8
- value: DaffFilterRangeRequestOption<number>;
9
- }
10
- /**
11
- * A factory for creating a {@link DaffFilterRangeNumericRequest}.
12
- */
13
- export declare class DaffFilterRequestRangeNumericFactory extends DaffModelFactory<DaffFilterRangeNumericRequest> {
14
- private option;
15
- constructor(option?: DaffFilterRangeNumericRequestOptionFactory);
16
- create(partial?: Partial<DaffFilterRangeNumericRequest>): {
17
- type: DaffFilterType.RangeNumeric;
18
- name: string;
19
- value: DaffFilterRangeRequestOption<number>;
20
- };
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRequestRangeNumericFactory, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRequestRangeNumericFactory>;
23
- }
@@ -1,20 +0,0 @@
1
- import { DaffFilterRangeNumericToggleRequest, DaffFilterRangeRequestOption } from '@daffodil/core';
2
- import { DaffFilterType } from '@daffodil/core';
3
- import { DaffFilterRangeNumericRequestOptionFactory } from './request-option';
4
- import { DaffModelFactory } from '../../../factory';
5
- import * as i0 from "@angular/core";
6
- export declare class MockDaffFilterToggleRangeNumericRequest implements DaffFilterRangeNumericToggleRequest {
7
- type: DaffFilterType.RangeNumeric;
8
- name: string;
9
- value: DaffFilterRangeRequestOption<number>;
10
- }
11
- /**
12
- * A factory for creating a {@link DaffFilterRangeNumericToggleRequest}.
13
- */
14
- export declare class DaffFilterToggleRequestRangeNumericFactory extends DaffModelFactory<DaffFilterRangeNumericToggleRequest> {
15
- private option;
16
- constructor(option: DaffFilterRangeNumericRequestOptionFactory);
17
- create(partial?: Partial<DaffFilterRangeNumericToggleRequest>): DaffFilterRangeNumericToggleRequest;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterToggleRequestRangeNumericFactory, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterToggleRequestRangeNumericFactory>;
20
- }
@@ -1,19 +0,0 @@
1
- import { DaffFilterRangeNumeric, DaffFilterType } from '@daffodil/core';
2
- import { DaffModelFactory } from '../../factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockFilterRangeNumeric implements DaffFilterRangeNumeric {
5
- type: DaffFilterType.RangeNumeric;
6
- label: string;
7
- name: string;
8
- min: number;
9
- max: number;
10
- options: {};
11
- }
12
- /**
13
- * A factory for creating a {@link DaffFilterRangeNumeric}.
14
- */
15
- export declare class DaffFilterRangeNumericFactory extends DaffModelFactory<DaffFilterRangeNumeric> {
16
- constructor();
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFilterRangeNumericFactory, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffFilterRangeNumericFactory>;
19
- }
@@ -1,11 +0,0 @@
1
- import { DaffIdentifiable } from '@daffodil/core';
2
- import { DaffModelFactory } from './factory';
3
- import * as i0 from "@angular/core";
4
- export declare class MockDaffIdentifiable implements DaffIdentifiable {
5
- id: string;
6
- }
7
- export declare class DaffIdentifiableFactory extends DaffModelFactory<DaffIdentifiable> {
8
- constructor();
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffIdentifiableFactory, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffIdentifiableFactory>;
11
- }
@@ -1,5 +0,0 @@
1
- export { DaffModelFactory } from './factory';
2
- export { IDaffModelFactory } from './factory.interface';
3
- export * from './identifiable.factory';
4
- export * from './collection/public_api';
5
- export * from './filters/public_api';
@@ -1,4 +0,0 @@
1
- export { DaffMockCurrencyPipe } from './angular/mocks/pipes/currency';
2
- export { DaffCoreTestingModule } from './testing.module';
3
- export { enforceUnique } from './unique/enforce';
4
- export * from './factories/public_api';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./angular/mocks/pipes/currency";
3
- export declare class DaffCoreTestingModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCoreTestingModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCoreTestingModule, [typeof i1.DaffMockCurrencyPipe], never, never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffCoreTestingModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import { EnforceOptions } from 'enforce-unique';
2
- type Func = (...args: Array<any>) => any;
3
- /**
4
- * Wraps `UniqueEnforcer` to provide function-specific instances.
5
- */
6
- export declare const enforceUnique: <T extends Func>(func: T, options?: EnforceOptions) => ReturnType<T>;
7
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * A token type for HTML.
3
- * A string that holds renderable content that is suitable for rendering with `[innerHTML]`.
4
- */
5
- export type HTML = string;
@@ -1 +0,0 @@
1
- export type ID = string;
@@ -1,2 +0,0 @@
1
- export { ID } from './id.type';
2
- export { HTML } from './html.type';
@@ -1,7 +0,0 @@
1
- type Dictionary = Record<string | number | symbol, any>;
2
- /**
3
- * Converts an array into a dictionary.
4
- * Dictionary values are keyed by the return of the specified `getKey`.
5
- */
6
- export declare const daffArrayToDict: <T, R extends keyof Dictionary = string | number | symbol>(array: Array<T>, getKey: (val: T) => R) => Record<R, T>;
7
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Recurses through a tree, collecting each element in that tree and returning it in an array.
3
- * The value of getKey should be a field that contains a list of the same type of object.
4
- * Accepts an optional depth argument which will limit the traversal. This should be used for trees with circular references.
5
- */
6
- export declare const collect: <T>(obj: T, getChildren: (val: T) => T[], depth?: number) => T[];
@@ -1,5 +0,0 @@
1
- /**
2
- * The unary identity function.
3
- * Returns whatever is passed to it.
4
- */
5
- export declare function identity<T>(v: T): T;