@daffodil/core 0.66.1 → 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.
- package/constructable/constructable.d.ts +1 -1
- package/{esm2020 → esm2022}/base64/browser/browser.service.mjs +6 -6
- package/{esm2020 → esm2022}/base64/server/server.service.mjs +6 -6
- package/{esm2020 → esm2022}/graphql/apollo/queued-apollo/queued-apollo.service.mjs +5 -5
- package/{esm2020 → esm2022}/routing/uri/normalizer.service.mjs +5 -5
- package/{esm2020 → esm2022}/state/states/state.enum.mjs +1 -1
- package/{esm2020 → esm2022}/state/testing/mock-collection-facade.mjs +4 -4
- package/{esm2020 → esm2022}/state/testing/mock-operation-facade.mjs +4 -4
- package/esm2022/storage/error/error.service.mjs +33 -0
- package/{esm2020 → esm2022}/storage/localstorage/localstorage.service.mjs +6 -6
- package/{esm2020 → esm2022}/storage/noopstorage/noopstorage.service.mjs +4 -4
- package/esm2022/storage/server-error/server-error.service.mjs +36 -0
- package/{esm2020 → esm2022}/testing/angular/mocks/pipes/currency.mjs +4 -4
- package/{esm2020 → esm2022}/testing/factories/address.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/collection/metadata.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/collection/numerically-paginable.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/collection/request.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/collection/sort-option.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/collection/sort-options.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/collection/sortable.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/filter.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/request.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/toggle-request.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/equal/option.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/equal/request.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/equal/toggle-request.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/equal.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/option.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/pair.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/request-option.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/request.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/toggle-request.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/identifiable.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/testing.module.mjs +5 -5
- package/esm2022/utils/range.mjs +13 -0
- package/{fesm2020 → fesm2022}/daffodil-core-graphql.mjs +4 -4
- package/{fesm2020 → fesm2022}/daffodil-core-graphql.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-core-routing.mjs +4 -4
- package/{fesm2020 → fesm2022}/daffodil-core-routing.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/daffodil-core-state-testing.mjs +6 -6
- package/{fesm2020 → fesm2022}/daffodil-core-state-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-core-testing.mjs +91 -91
- package/fesm2022/daffodil-core-testing.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/daffodil-core.mjs +27 -27
- package/fesm2022/daffodil-core.mjs.map +1 -0
- package/filterable/filter-option.d.ts +1 -1
- package/filterable/filter-request.d.ts +1 -1
- package/filterable/filter-toggle-request.d.ts +1 -1
- package/filterable/filter.d.ts +1 -1
- package/filterable/filters.type.d.ts +1 -1
- package/package.json +1 -1
- package/routing/query-param-filter/request-builder/type.d.ts +1 -1
- package/state/collection/actions.d.ts +1 -1
- package/state/errors/transform-error-to-state-error.d.ts +1 -1
- package/state/operation/entity/state.type.d.ts +1 -1
- package/state/operation/entity/type.d.ts +1 -1
- package/state/operators/substream.pipe.d.ts +3 -3
- package/state/states/loading.d.ts +1 -1
- package/state/states/mutable-loading.d.ts +1 -1
- package/types/id.type.d.ts +1 -1
- package/utils/array-to-dict.d.ts +1 -1
- package/esm2020/storage/error/error.service.mjs +0 -33
- package/esm2020/storage/server-error/server-error.service.mjs +0 -36
- package/esm2020/utils/range.mjs +0 -13
- package/fesm2015/daffodil-core-graphql.mjs +0 -108
- package/fesm2015/daffodil-core-graphql.mjs.map +0 -1
- package/fesm2015/daffodil-core-routing.mjs +0 -122
- package/fesm2015/daffodil-core-routing.mjs.map +0 -1
- package/fesm2015/daffodil-core-state-testing.mjs.map +0 -1
- package/fesm2015/daffodil-core-state.mjs +0 -342
- package/fesm2015/daffodil-core-state.mjs.map +0 -1
- package/fesm2015/daffodil-core-testing.mjs +0 -659
- package/fesm2015/daffodil-core-testing.mjs.map +0 -1
- package/fesm2015/daffodil-core.mjs +0 -1064
- package/fesm2015/daffodil-core.mjs.map +0 -1
- package/fesm2020/daffodil-core-state-testing.mjs +0 -63
- package/fesm2020/daffodil-core-testing.mjs.map +0 -1
- package/fesm2020/daffodil-core.mjs.map +0 -1
- /package/{esm2020 → esm2022}/address/address.mjs +0 -0
- /package/{esm2020 → esm2022}/base64/base64.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/base64/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/base64/server/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/canonically-locateable/canonically-locateable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/build-metadata.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/build-request.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/collection.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/countable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/error-map.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/metadata.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/page-out-of-bounds.error.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/paginable.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/request.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/collection/sortable.mjs +0 -0
- /package/{esm2020 → esm2022}/constructable/constructable.mjs +0 -0
- /package/{esm2020 → esm2022}/daffodil-core.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/error-map.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/error.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/inheritable-error.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/is-error.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filter-base.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filter-option-base.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filter-option.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filter-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filter-toggle-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filterable.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/filters.type.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/equal/filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/equal/option.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/equal/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/equal/request.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/equal/toggle-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/filter-type.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/filter-base.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/option.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/pair.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/request-base.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/request-option.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range/separator.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range-numeric/filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range-numeric/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range-numeric/request.mjs +0 -0
- /package/{esm2020 → esm2022}/filterable/type/range-numeric/toggle-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/array-to-dict/array-to-dict.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/apply/apply-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/apply/apply-request-to-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/apply/apply-requests-to-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/apply/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/clear/clear-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/clear/clear-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/clear/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/remove/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/remove/remove-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/remove/remove-request-from-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/remove/remove-requests-from-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/toggle/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/toggle/toggle-request-on-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/behaviors/toggle/toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/compute-applied-filters/compute-applied-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/errors/codes.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/errors/filter-not-found.error.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/errors/request-name-mismatch.error.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/errors/request-type-mismatch.error.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/errors/unknown-filter-type.error.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/find-applied/find-applied-options.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/find-applied/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/is-applied/is-filter-applied.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/is-applied/is-toggle-request-applied-to-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/is-applied/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/to-request/filter-to-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/to-request/filters-to-requests.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/to-request/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/array-to-dict/option.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/behaviors/apply/apply.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/behaviors/clear/clear.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/behaviors/remove/remove.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/behaviors/toggle/toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/is-applied/is-applied.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/equal/to-request/filter-to-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/array-to-dict/pair.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/behaviors/apply/apply.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/behaviors/clear/clear.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/behaviors/remove/remove.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/behaviors/toggle/toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/compute-pair-label.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/is-applied/is-applied.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/is-applied/is-toggle-request-applied-to-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range/to-request/filter-to-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/type/range-numeric/to-request/filter-to-request.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/validators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/validators/request-name-match.mjs +0 -0
- /package/{esm2020 → esm2022}/filters/validators/request-type-match.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/apollo/cacheable-operations/cacheable-operations-link.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/apollo/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/daffodil-core-graphql.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/fragments/build-fragment-definition.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/fragments/build-fragment-name-spread.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/fragments/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/index.mjs +0 -0
- /package/{esm2020 → esm2022}/graphql/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/identifiable/array-to-dict.mjs +0 -0
- /package/{esm2020 → esm2022}/identifiable/identifiable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/identifiable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/kindable/kindable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/kindable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/locateable/locateable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/operators/all-of.pipe.mjs +0 -0
- /package/{esm2020 → esm2022}/operators/any-of.pipe.mjs +0 -0
- /package/{esm2020 → esm2022}/operators/backoff.pipe.mjs +0 -0
- /package/{esm2020 → esm2022}/operators/catch-and-arrayify-errors.pipe.mjs +0 -0
- /package/{esm2020 → esm2022}/operators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/orderable/orderable.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/daffodil-core-routing.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/query-param-filter/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/query-param-filter/request-builder/equal.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/query-param-filter/request-builder/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/query-param-filter/request-builder/type.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/query-param-filter/type.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/reducers/clear-errors/navigated-entity-reducer-factory.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/reducers/clear-errors/navigated.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/reducers/clear-errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/reducers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/uri/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/uri/truncation/file-extension.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/uri/truncation/leading-path-segments.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/uri/truncation/leading-slash.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/uri/truncation/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/uri/truncation/query-fragment.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/failure.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/adapter.class.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/facade.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/facade.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/initial-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/collection/selector-factory.mjs +0 -0
- /package/{esm2020 → esm2022}/state/daffodil-core-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/errors/errorable.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/errors/state-error.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/errors/transform-error-to-state-error.mjs +0 -0
- /package/{esm2020 → esm2022}/state/index.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/entity/adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/entity/helpers.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/entity/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/entity/selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/entity/state.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/entity/type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/facade.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operation/state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/operators/substream.pipe.mjs +0 -0
- /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/create-meta.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/identity.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/states/loading.mjs +0 -0
- /package/{esm2020 → esm2022}/state/states/mutable-loading.mjs +0 -0
- /package/{esm2020 → esm2022}/state/states/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/states/stateable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/store/facade.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/daffodil-core-state-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/error/error.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/error/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/persistence-server-safe.token.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/persistence.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/server-error/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/storage/server-error/server-error.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/angular/interfaces/in-memory-data-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/daffodil-core-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/collection/mock-collection.class.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/collection/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/factory.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/factory.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/filters/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/filters/type/equal/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/filters/type/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/filters/type/range-numeric/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/types/id.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/array-to-dict.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/collect.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/long-arithmetic.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/random-slice.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/random-subset.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/sample.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/shallow-compare.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/shuffle.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/unique.mjs +0 -0
- /package/{fesm2020 → fesm2022}/daffodil-core-state.mjs +0 -0
- /package/{fesm2020 → fesm2022}/daffodil-core-state.mjs.map +0 -0
|
@@ -1,659 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe, NgModule, Injectable } from '@angular/core';
|
|
3
|
-
import { range, DaffSortDirectionEnum, DaffFilterType, daffFilterArrayToDict, daffIdentifiableArrayToDict } from '@daffodil/core';
|
|
4
|
-
import { faker } from '@faker-js/faker/locale/en_US';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @docs
|
|
8
|
-
* A mock CurrencyPipe that does nothing to a given input.
|
|
9
|
-
* This pipe is useful for asserting that a CurrencyPipe is in use via a spy,
|
|
10
|
-
* but ignoring the actual underlying implementation
|
|
11
|
-
*/
|
|
12
|
-
class DaffMockCurrencyPipe {
|
|
13
|
-
transform(value) { }
|
|
14
|
-
;
|
|
15
|
-
}
|
|
16
|
-
/** @nocollapse */ DaffMockCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMockCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
-
/** @nocollapse */ DaffMockCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffMockCurrencyPipe, name: "currency" });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMockCurrencyPipe, decorators: [{
|
|
19
|
-
type: Pipe,
|
|
20
|
-
args: [{ name: 'currency' }]
|
|
21
|
-
}] });
|
|
22
|
-
|
|
23
|
-
class DaffCoreTestingModule {
|
|
24
|
-
}
|
|
25
|
-
/** @nocollapse */ DaffCoreTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCoreTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
26
|
-
/** @nocollapse */ DaffCoreTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffCoreTestingModule, declarations: [DaffMockCurrencyPipe] });
|
|
27
|
-
/** @nocollapse */ DaffCoreTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCoreTestingModule });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCoreTestingModule, decorators: [{
|
|
29
|
-
type: NgModule,
|
|
30
|
-
args: [{
|
|
31
|
-
declarations: [
|
|
32
|
-
DaffMockCurrencyPipe,
|
|
33
|
-
],
|
|
34
|
-
}]
|
|
35
|
-
}] });
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The base class for model factories.
|
|
39
|
-
*
|
|
40
|
-
* The mock class is passed as the first constructor arg
|
|
41
|
-
* and any additional args are passed to the mock class constructor.
|
|
42
|
-
*
|
|
43
|
-
* The constructor args can be omitted if the `create` method is overridden.
|
|
44
|
-
*
|
|
45
|
-
* The following example demonstrates using this feature to inject
|
|
46
|
-
* a different factory into a mock class.
|
|
47
|
-
*
|
|
48
|
-
* ```ts
|
|
49
|
-
* class MyMockModel {
|
|
50
|
-
* constructor(
|
|
51
|
-
* private otherFactory: MyOtherFactory
|
|
52
|
-
* ) {}
|
|
53
|
-
*
|
|
54
|
-
* private createOtherModel() {
|
|
55
|
-
* return this.otherFactory.create()
|
|
56
|
-
* }
|
|
57
|
-
*
|
|
58
|
-
* otherModel = this.createOtherModel()
|
|
59
|
-
* }
|
|
60
|
-
*
|
|
61
|
-
* @Injectable()
|
|
62
|
-
* class TestFactory extends DaffModelFactory<MyMockModel> {
|
|
63
|
-
* constructor(
|
|
64
|
-
* otherFactory: MyOtherFactory
|
|
65
|
-
* ) {
|
|
66
|
-
* super(MyMockModel, otherFactory)
|
|
67
|
-
* }
|
|
68
|
-
* }
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
class DaffModelFactory {
|
|
72
|
-
constructor(type, ...args) {
|
|
73
|
-
this.type = type;
|
|
74
|
-
this._instantiationArgs = args;
|
|
75
|
-
}
|
|
76
|
-
create(partial = {}) {
|
|
77
|
-
if (!this.type) {
|
|
78
|
-
throw new Error('`type` is required if `create` is not overriden.');
|
|
79
|
-
}
|
|
80
|
-
return Object.assign(Object.assign({}, new this.type(...this._instantiationArgs)), partial);
|
|
81
|
-
}
|
|
82
|
-
createMany(qty = 1, partial = {}) {
|
|
83
|
-
return range(0, qty - 1).map(() => this.create(partial));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated
|
|
89
|
-
* Prefer the `MockDaffAddress` of daffodil/geography/testing`
|
|
90
|
-
*/
|
|
91
|
-
class MockDaffAddress {
|
|
92
|
-
constructor() {
|
|
93
|
-
this.firstname = faker.name.firstName();
|
|
94
|
-
this.lastname = faker.name.lastName();
|
|
95
|
-
this.street = faker.address.streetName();
|
|
96
|
-
this.city = faker.address.city();
|
|
97
|
-
this.state = faker.address.stateAbbr();
|
|
98
|
-
this.email = faker.internet.email();
|
|
99
|
-
this.postcode = faker.address.zipCode();
|
|
100
|
-
this.telephone = faker.phone.phoneNumber();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated
|
|
105
|
-
* Prefer the `DaffAddressFactory` of `daffodil/geography/testing`
|
|
106
|
-
*/
|
|
107
|
-
class DaffAddressFactory extends DaffModelFactory {
|
|
108
|
-
constructor() {
|
|
109
|
-
super(MockDaffAddress);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
/** @nocollapse */ DaffAddressFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
113
|
-
/** @nocollapse */ DaffAddressFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAddressFactory, providedIn: 'root' });
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAddressFactory, decorators: [{
|
|
115
|
-
type: Injectable,
|
|
116
|
-
args: [{
|
|
117
|
-
providedIn: 'root',
|
|
118
|
-
}]
|
|
119
|
-
}], ctorParameters: function () { return []; } });
|
|
120
|
-
|
|
121
|
-
class MockDaffIdentifiable {
|
|
122
|
-
constructor() {
|
|
123
|
-
this.id = faker.datatype.uuid();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
class DaffIdentifiableFactory extends DaffModelFactory {
|
|
127
|
-
constructor() {
|
|
128
|
-
super(MockDaffIdentifiable);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
/** @nocollapse */ DaffIdentifiableFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffIdentifiableFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
132
|
-
/** @nocollapse */ DaffIdentifiableFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffIdentifiableFactory, providedIn: 'root' });
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffIdentifiableFactory, decorators: [{
|
|
134
|
-
type: Injectable,
|
|
135
|
-
args: [{
|
|
136
|
-
providedIn: 'root',
|
|
137
|
-
}]
|
|
138
|
-
}], ctorParameters: function () { return []; } });
|
|
139
|
-
|
|
140
|
-
class MockDaffNumericallyPaginable {
|
|
141
|
-
constructor() {
|
|
142
|
-
this.totalPages = faker.datatype.number({ min: 1, max: 100 });
|
|
143
|
-
this.currentPage = faker.datatype.number({ min: 1, max: this.totalPages });
|
|
144
|
-
this.pageSize = faker.datatype.number({ min: 1, max: 100 });
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
class DaffNumericallyPaginableFactory extends DaffModelFactory {
|
|
148
|
-
constructor() {
|
|
149
|
-
super(MockDaffNumericallyPaginable);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
/** @nocollapse */ DaffNumericallyPaginableFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffNumericallyPaginableFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
153
|
-
/** @nocollapse */ DaffNumericallyPaginableFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffNumericallyPaginableFactory, providedIn: 'root' });
|
|
154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffNumericallyPaginableFactory, decorators: [{
|
|
155
|
-
type: Injectable,
|
|
156
|
-
args: [{
|
|
157
|
-
providedIn: 'root',
|
|
158
|
-
}]
|
|
159
|
-
}], ctorParameters: function () { return []; } });
|
|
160
|
-
|
|
161
|
-
class MockDaffSortOption {
|
|
162
|
-
constructor() {
|
|
163
|
-
this.label = faker.random.word();
|
|
164
|
-
this.value = faker.random.word();
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
class DaffSortOptionFactory extends DaffModelFactory {
|
|
168
|
-
constructor() {
|
|
169
|
-
super(MockDaffSortOption);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
/** @nocollapse */ DaffSortOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
173
|
-
/** @nocollapse */ DaffSortOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortOptionFactory, providedIn: 'root' });
|
|
174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortOptionFactory, decorators: [{
|
|
175
|
-
type: Injectable,
|
|
176
|
-
args: [{
|
|
177
|
-
providedIn: 'root',
|
|
178
|
-
}]
|
|
179
|
-
}], ctorParameters: function () { return []; } });
|
|
180
|
-
|
|
181
|
-
class MockDaffSortOptions {
|
|
182
|
-
constructor(optionFactory) {
|
|
183
|
-
this.optionFactory = optionFactory;
|
|
184
|
-
this.options = this.createOptions();
|
|
185
|
-
this.default = faker.helpers.arrayElement(this.options).value;
|
|
186
|
-
}
|
|
187
|
-
createOptions() {
|
|
188
|
-
return this.optionFactory.createMany(faker.datatype.number({ min: 1, max: 5 }));
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
class DaffSortOptionsFactory extends DaffModelFactory {
|
|
192
|
-
constructor(optionFactory) {
|
|
193
|
-
super(MockDaffSortOptions, optionFactory);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
/** @nocollapse */ DaffSortOptionsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortOptionsFactory, deps: [{ token: DaffSortOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
197
|
-
/** @nocollapse */ DaffSortOptionsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortOptionsFactory, providedIn: 'root' });
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortOptionsFactory, decorators: [{
|
|
199
|
-
type: Injectable,
|
|
200
|
-
args: [{
|
|
201
|
-
providedIn: 'root',
|
|
202
|
-
}]
|
|
203
|
-
}], ctorParameters: function () { return [{ type: DaffSortOptionFactory }]; } });
|
|
204
|
-
|
|
205
|
-
class MockDaffSortable {
|
|
206
|
-
constructor(optionFactory) {
|
|
207
|
-
this.optionFactory = optionFactory;
|
|
208
|
-
this.sortOptions = this.createOptions();
|
|
209
|
-
this.appliedSortOption = faker.helpers.arrayElement(this.sortOptions.options).value;
|
|
210
|
-
this.appliedSortDirection = faker.helpers.arrayElement([DaffSortDirectionEnum.Ascending, DaffSortDirectionEnum.Descending]);
|
|
211
|
-
}
|
|
212
|
-
createOptions() {
|
|
213
|
-
return this.optionFactory.create();
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
class DaffSortableFactory extends DaffModelFactory {
|
|
217
|
-
constructor(optionFactory) {
|
|
218
|
-
super(MockDaffSortable, optionFactory);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
/** @nocollapse */ DaffSortableFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortableFactory, deps: [{ token: DaffSortOptionsFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
222
|
-
/** @nocollapse */ DaffSortableFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortableFactory, providedIn: 'root' });
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSortableFactory, decorators: [{
|
|
224
|
-
type: Injectable,
|
|
225
|
-
args: [{
|
|
226
|
-
providedIn: 'root',
|
|
227
|
-
}]
|
|
228
|
-
}], ctorParameters: function () { return [{ type: DaffSortOptionsFactory }]; } });
|
|
229
|
-
|
|
230
|
-
class MockFilterEqual {
|
|
231
|
-
constructor() {
|
|
232
|
-
this.type = DaffFilterType.Equal;
|
|
233
|
-
this.label = faker.random.word();
|
|
234
|
-
this.name = faker.datatype.uuid();
|
|
235
|
-
this.options = {};
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* A factory for creating a {@link DaffFilterEqual}.
|
|
240
|
-
*/
|
|
241
|
-
class DaffFilterEqualFactory extends DaffModelFactory {
|
|
242
|
-
constructor() {
|
|
243
|
-
super(MockFilterEqual);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
/** @nocollapse */ DaffFilterEqualFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterEqualFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
247
|
-
/** @nocollapse */ DaffFilterEqualFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterEqualFactory, providedIn: 'root' });
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterEqualFactory, decorators: [{
|
|
249
|
-
type: Injectable,
|
|
250
|
-
args: [{
|
|
251
|
-
providedIn: 'root',
|
|
252
|
-
}]
|
|
253
|
-
}], ctorParameters: function () { return []; } });
|
|
254
|
-
|
|
255
|
-
class MockFilterRangeNumeric {
|
|
256
|
-
constructor() {
|
|
257
|
-
this.type = DaffFilterType.RangeNumeric;
|
|
258
|
-
this.label = faker.random.word();
|
|
259
|
-
this.name = faker.datatype.uuid();
|
|
260
|
-
this.min = faker.datatype.number({ min: 1, max: 10 });
|
|
261
|
-
this.max = faker.datatype.number({ min: 10, max: 200 });
|
|
262
|
-
this.options = {};
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* A factory for creating a {@link DaffFilterRangeNumeric}.
|
|
267
|
-
*/
|
|
268
|
-
class DaffFilterRangeNumericFactory extends DaffModelFactory {
|
|
269
|
-
constructor() {
|
|
270
|
-
super(MockFilterRangeNumeric);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
/** @nocollapse */ DaffFilterRangeNumericFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
274
|
-
/** @nocollapse */ DaffFilterRangeNumericFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericFactory, providedIn: 'root' });
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericFactory, decorators: [{
|
|
276
|
-
type: Injectable,
|
|
277
|
-
args: [{
|
|
278
|
-
providedIn: 'root',
|
|
279
|
-
}]
|
|
280
|
-
}], ctorParameters: function () { return []; } });
|
|
281
|
-
|
|
282
|
-
class MockDaffFilter {
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* A factory for creating a {@link DaffFilter}.
|
|
286
|
-
*/
|
|
287
|
-
class DaffFilterFactory extends DaffModelFactory {
|
|
288
|
-
constructor(equalFactory, rangeFactory) {
|
|
289
|
-
super(MockDaffFilter);
|
|
290
|
-
this.equalFactory = equalFactory;
|
|
291
|
-
this.rangeFactory = rangeFactory;
|
|
292
|
-
}
|
|
293
|
-
create(partial = {}) {
|
|
294
|
-
let factory;
|
|
295
|
-
switch (partial.type) {
|
|
296
|
-
case DaffFilterType.Equal:
|
|
297
|
-
factory = this.equalFactory;
|
|
298
|
-
break;
|
|
299
|
-
case DaffFilterType.RangeNumeric:
|
|
300
|
-
factory = this.rangeFactory;
|
|
301
|
-
break;
|
|
302
|
-
default:
|
|
303
|
-
factory = faker.datatype.number({ min: 1, max: 2 }) === 2
|
|
304
|
-
? this.equalFactory
|
|
305
|
-
: this.rangeFactory;
|
|
306
|
-
break;
|
|
307
|
-
}
|
|
308
|
-
return Object.assign(Object.assign({}, new this.type()), factory.create(partial));
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
/** @nocollapse */ DaffFilterFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterFactory, deps: [{ token: DaffFilterEqualFactory }, { token: DaffFilterRangeNumericFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
312
|
-
/** @nocollapse */ DaffFilterFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterFactory, providedIn: 'root' });
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterFactory, decorators: [{
|
|
314
|
-
type: Injectable,
|
|
315
|
-
args: [{
|
|
316
|
-
providedIn: 'root',
|
|
317
|
-
}]
|
|
318
|
-
}], ctorParameters: function () { return [{ type: DaffFilterEqualFactory }, { type: DaffFilterRangeNumericFactory }]; } });
|
|
319
|
-
|
|
320
|
-
class MockDaffFilterEqualRequest {
|
|
321
|
-
constructor() {
|
|
322
|
-
this.type = DaffFilterType.Equal;
|
|
323
|
-
this.name = faker.random.word();
|
|
324
|
-
this.value = [faker.datatype.uuid()];
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* A factory for creating a {@link DaffFilterEqualRequest}.
|
|
329
|
-
*/
|
|
330
|
-
class DaffFilterRequestEqualFactory extends DaffModelFactory {
|
|
331
|
-
constructor() {
|
|
332
|
-
super(MockDaffFilterEqualRequest);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
/** @nocollapse */ DaffFilterRequestEqualFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestEqualFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
336
|
-
/** @nocollapse */ DaffFilterRequestEqualFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestEqualFactory, providedIn: 'root' });
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestEqualFactory, decorators: [{
|
|
338
|
-
type: Injectable,
|
|
339
|
-
args: [{
|
|
340
|
-
providedIn: 'root',
|
|
341
|
-
}]
|
|
342
|
-
}], ctorParameters: function () { return []; } });
|
|
343
|
-
|
|
344
|
-
class MockDaffFilterRangeNumericRequestOption {
|
|
345
|
-
constructor() {
|
|
346
|
-
this.min = faker.datatype.number({ min: 0, max: 100 });
|
|
347
|
-
this.max = faker.datatype.number({ min: 100, max: 1000 });
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* A factory for creating a {@link DaffFilterRangeRequestOption}.
|
|
352
|
-
*/
|
|
353
|
-
class DaffFilterRangeNumericRequestOptionFactory extends DaffModelFactory {
|
|
354
|
-
constructor() {
|
|
355
|
-
super(MockDaffFilterRangeNumericRequestOption);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
/** @nocollapse */ DaffFilterRangeNumericRequestOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericRequestOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
359
|
-
/** @nocollapse */ DaffFilterRangeNumericRequestOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericRequestOptionFactory, providedIn: 'root' });
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericRequestOptionFactory, decorators: [{
|
|
361
|
-
type: Injectable,
|
|
362
|
-
args: [{
|
|
363
|
-
providedIn: 'root',
|
|
364
|
-
}]
|
|
365
|
-
}], ctorParameters: function () { return []; } });
|
|
366
|
-
|
|
367
|
-
class MockDaffFilterRangeNumericRequest {
|
|
368
|
-
constructor() {
|
|
369
|
-
this.type = DaffFilterType.RangeNumeric;
|
|
370
|
-
this.name = faker.random.word();
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* A factory for creating a {@link DaffFilterRangeNumericRequest}.
|
|
375
|
-
*/
|
|
376
|
-
class DaffFilterRequestRangeNumericFactory extends DaffModelFactory {
|
|
377
|
-
constructor(option = new DaffFilterRangeNumericRequestOptionFactory()) {
|
|
378
|
-
super(MockDaffFilterRangeNumericRequest);
|
|
379
|
-
this.option = option;
|
|
380
|
-
}
|
|
381
|
-
create(partial = {}) {
|
|
382
|
-
return Object.assign(Object.assign(Object.assign({}, new this.type()), { value: this.option.create() }), partial);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
/** @nocollapse */ DaffFilterRequestRangeNumericFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestRangeNumericFactory, deps: [{ token: DaffFilterRangeNumericRequestOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
386
|
-
/** @nocollapse */ DaffFilterRequestRangeNumericFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestRangeNumericFactory, providedIn: 'root' });
|
|
387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestRangeNumericFactory, decorators: [{
|
|
388
|
-
type: Injectable,
|
|
389
|
-
args: [{
|
|
390
|
-
providedIn: 'root',
|
|
391
|
-
}]
|
|
392
|
-
}], ctorParameters: function () { return [{ type: DaffFilterRangeNumericRequestOptionFactory }]; } });
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* A factory for creating a {@link DaffFilterRequest}.
|
|
396
|
-
*/
|
|
397
|
-
class DaffFilterRequestFactory extends DaffModelFactory {
|
|
398
|
-
constructor(equalFactory, rangeFactory) {
|
|
399
|
-
super(faker.datatype.number({ min: 1, max: 2 }) === 2 ? equalFactory.type : rangeFactory.type);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
/** @nocollapse */ DaffFilterRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestFactory, deps: [{ token: DaffFilterRequestEqualFactory }, { token: DaffFilterRequestRangeNumericFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
403
|
-
/** @nocollapse */ DaffFilterRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestFactory, providedIn: 'root' });
|
|
404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRequestFactory, decorators: [{
|
|
405
|
-
type: Injectable,
|
|
406
|
-
args: [{
|
|
407
|
-
providedIn: 'root',
|
|
408
|
-
}]
|
|
409
|
-
}], ctorParameters: function () { return [{ type: DaffFilterRequestEqualFactory }, { type: DaffFilterRequestRangeNumericFactory }]; } });
|
|
410
|
-
|
|
411
|
-
class MockDaffFilterToggleEqualRequest {
|
|
412
|
-
constructor() {
|
|
413
|
-
this.type = DaffFilterType.Equal;
|
|
414
|
-
this.name = faker.random.word();
|
|
415
|
-
this.value = faker.datatype.uuid();
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* A factory for creating a {@link DaffFilterEqualToggleRequest}.
|
|
420
|
-
*/
|
|
421
|
-
class DaffFilterToggleRequestEqualFactory extends DaffModelFactory {
|
|
422
|
-
constructor() {
|
|
423
|
-
super(MockDaffFilterToggleEqualRequest);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
/** @nocollapse */ DaffFilterToggleRequestEqualFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestEqualFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
427
|
-
/** @nocollapse */ DaffFilterToggleRequestEqualFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestEqualFactory, providedIn: 'root' });
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestEqualFactory, decorators: [{
|
|
429
|
-
type: Injectable,
|
|
430
|
-
args: [{
|
|
431
|
-
providedIn: 'root',
|
|
432
|
-
}]
|
|
433
|
-
}], ctorParameters: function () { return []; } });
|
|
434
|
-
|
|
435
|
-
class MockDaffFilterToggleRangeNumericRequest {
|
|
436
|
-
constructor() {
|
|
437
|
-
this.type = DaffFilterType.RangeNumeric;
|
|
438
|
-
this.name = faker.random.word();
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* A factory for creating a {@link DaffFilterRangeNumericToggleRequest}.
|
|
443
|
-
*/
|
|
444
|
-
class DaffFilterToggleRequestRangeNumericFactory extends DaffModelFactory {
|
|
445
|
-
constructor(option) {
|
|
446
|
-
super(MockDaffFilterToggleRangeNumericRequest);
|
|
447
|
-
this.option = option;
|
|
448
|
-
}
|
|
449
|
-
create(partial = {}) {
|
|
450
|
-
return Object.assign(Object.assign(Object.assign({}, new this.type()), { value: this.option.create() }), partial);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
/** @nocollapse */ DaffFilterToggleRequestRangeNumericFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestRangeNumericFactory, deps: [{ token: DaffFilterRangeNumericRequestOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
454
|
-
/** @nocollapse */ DaffFilterToggleRequestRangeNumericFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestRangeNumericFactory, providedIn: 'root' });
|
|
455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestRangeNumericFactory, decorators: [{
|
|
456
|
-
type: Injectable,
|
|
457
|
-
args: [{
|
|
458
|
-
providedIn: 'root',
|
|
459
|
-
}]
|
|
460
|
-
}], ctorParameters: function () { return [{ type: DaffFilterRangeNumericRequestOptionFactory }]; } });
|
|
461
|
-
|
|
462
|
-
class MockDaffFilterToggleRequest {
|
|
463
|
-
}
|
|
464
|
-
/**
|
|
465
|
-
* A factory for creating a {@link DaffFilterToggleRequest}.
|
|
466
|
-
*/
|
|
467
|
-
class DaffFilterToggleRequestFactory extends DaffModelFactory {
|
|
468
|
-
constructor(equalFactory, rangeFactory) {
|
|
469
|
-
super(MockDaffFilterToggleRequest);
|
|
470
|
-
this.equalFactory = equalFactory;
|
|
471
|
-
this.rangeFactory = rangeFactory;
|
|
472
|
-
}
|
|
473
|
-
create(partial) {
|
|
474
|
-
return Object.assign(Object.assign({}, new this.type()), faker.datatype.number({ min: 1, max: 2 }) === 2 ? this.equalFactory.create() : this.rangeFactory.create());
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
/** @nocollapse */ DaffFilterToggleRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestFactory, deps: [{ token: DaffFilterToggleRequestEqualFactory }, { token: DaffFilterToggleRequestRangeNumericFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
478
|
-
/** @nocollapse */ DaffFilterToggleRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestFactory, providedIn: 'root' });
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterToggleRequestFactory, decorators: [{
|
|
480
|
-
type: Injectable,
|
|
481
|
-
args: [{
|
|
482
|
-
providedIn: 'root',
|
|
483
|
-
}]
|
|
484
|
-
}], ctorParameters: function () { return [{ type: DaffFilterToggleRequestEqualFactory }, { type: DaffFilterToggleRequestRangeNumericFactory }]; } });
|
|
485
|
-
|
|
486
|
-
class MockDaffFilterEqualOption {
|
|
487
|
-
constructor() {
|
|
488
|
-
this.applied = false;
|
|
489
|
-
this.value = faker.datatype.uuid();
|
|
490
|
-
this.label = faker.random.word();
|
|
491
|
-
this.count = faker.datatype.number({ min: 1, max: 1000 });
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* A factory for creating a {@link DaffFilterEqualOption}.
|
|
496
|
-
*/
|
|
497
|
-
class DaffFilterEqualOptionFactory extends DaffModelFactory {
|
|
498
|
-
constructor() {
|
|
499
|
-
super(MockDaffFilterEqualOption);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
/** @nocollapse */ DaffFilterEqualOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterEqualOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
503
|
-
/** @nocollapse */ DaffFilterEqualOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterEqualOptionFactory, providedIn: 'root' });
|
|
504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterEqualOptionFactory, decorators: [{
|
|
505
|
-
type: Injectable,
|
|
506
|
-
args: [{
|
|
507
|
-
providedIn: 'root',
|
|
508
|
-
}]
|
|
509
|
-
}], ctorParameters: function () { return []; } });
|
|
510
|
-
|
|
511
|
-
class MockFilterRangeNumericOption {
|
|
512
|
-
constructor() {
|
|
513
|
-
this.value = faker.datatype.number({ min: 0, max: 10 });
|
|
514
|
-
this.label = faker.random.alpha({ count: 3 });
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* A factory for creating a {@link DaffFilterRangeOption}.
|
|
519
|
-
*/
|
|
520
|
-
class DaffFilterRangeNumericOptionFactory extends DaffModelFactory {
|
|
521
|
-
constructor() {
|
|
522
|
-
super(MockFilterRangeNumericOption);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
/** @nocollapse */ DaffFilterRangeNumericOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
526
|
-
/** @nocollapse */ DaffFilterRangeNumericOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericOptionFactory, providedIn: 'root' });
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericOptionFactory, decorators: [{
|
|
528
|
-
type: Injectable,
|
|
529
|
-
args: [{
|
|
530
|
-
providedIn: 'root',
|
|
531
|
-
}]
|
|
532
|
-
}], ctorParameters: function () { return []; } });
|
|
533
|
-
|
|
534
|
-
class MockDaffFilterRangeNumericPair {
|
|
535
|
-
constructor() {
|
|
536
|
-
this.applied = true;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* A factory for creating a {@link DaffFilterRangePair}.
|
|
541
|
-
*/
|
|
542
|
-
class DaffFilterRangeNumericPairFactory extends DaffModelFactory {
|
|
543
|
-
constructor(option) {
|
|
544
|
-
super(MockDaffFilterRangeNumericPair);
|
|
545
|
-
this.option = option;
|
|
546
|
-
}
|
|
547
|
-
create(partial = {}) {
|
|
548
|
-
return Object.assign(Object.assign(Object.assign({}, new this.type()), { min: this.option.create({ value: faker.datatype.number({ min: 0, max: 100 }) }), max: this.option.create({ value: faker.datatype.number({ min: 100, max: 1000 }) }) }), partial);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
/** @nocollapse */ DaffFilterRangeNumericPairFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericPairFactory, deps: [{ token: DaffFilterRangeNumericOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
552
|
-
/** @nocollapse */ DaffFilterRangeNumericPairFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericPairFactory, providedIn: 'root' });
|
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffFilterRangeNumericPairFactory, decorators: [{
|
|
554
|
-
type: Injectable,
|
|
555
|
-
args: [{
|
|
556
|
-
providedIn: 'root',
|
|
557
|
-
}]
|
|
558
|
-
}], ctorParameters: function () { return [{ type: DaffFilterRangeNumericOptionFactory }]; } });
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Mocked {@link DaffCollectionMetadata} object.
|
|
562
|
-
*/
|
|
563
|
-
class MockCollectionMetadata {
|
|
564
|
-
constructor(pageInfoFactory, sortFieldsFactory, filterFactory) {
|
|
565
|
-
const _pageInfo = pageInfoFactory.create();
|
|
566
|
-
const _sortFields = sortFieldsFactory.create();
|
|
567
|
-
this.count = faker.datatype.number({ min: 1, max: 1000 });
|
|
568
|
-
this.ids = new Array(this.count).fill(null).map(() => faker.datatype.uuid());
|
|
569
|
-
this.currentPage = _pageInfo.currentPage;
|
|
570
|
-
this.totalPages = _pageInfo.totalPages;
|
|
571
|
-
this.pageSize = _pageInfo.pageSize;
|
|
572
|
-
this.appliedSortDirection = _sortFields.appliedSortDirection;
|
|
573
|
-
this.appliedSortOption = _sortFields.appliedSortOption;
|
|
574
|
-
this.sortOptions = _sortFields.sortOptions;
|
|
575
|
-
this.filters = daffFilterArrayToDict(filterFactory.createMany(faker.datatype.number({ min: 1, max: 5 })));
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Factory for creating {@link DaffCollectionMetadata}s.
|
|
580
|
-
*/
|
|
581
|
-
class DaffCollectionMetadataFactory extends DaffModelFactory {
|
|
582
|
-
constructor(pageInfoFactory, sortFieldsFactory, filterFactory) {
|
|
583
|
-
super(MockCollectionMetadata, pageInfoFactory, sortFieldsFactory, filterFactory);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
/** @nocollapse */ DaffCollectionMetadataFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCollectionMetadataFactory, deps: [{ token: DaffNumericallyPaginableFactory }, { token: DaffSortableFactory }, { token: DaffFilterFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
587
|
-
/** @nocollapse */ DaffCollectionMetadataFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCollectionMetadataFactory, providedIn: 'root' });
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCollectionMetadataFactory, decorators: [{
|
|
589
|
-
type: Injectable,
|
|
590
|
-
args: [{
|
|
591
|
-
providedIn: 'root',
|
|
592
|
-
}]
|
|
593
|
-
}], ctorParameters: function () { return [{ type: DaffNumericallyPaginableFactory }, { type: DaffSortableFactory }, { type: DaffFilterFactory }]; } });
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* Mocked {@link DaffCollectionRequest} object.
|
|
597
|
-
*/
|
|
598
|
-
class MockCollectionRequest {
|
|
599
|
-
constructor(filterRequestFactory) {
|
|
600
|
-
this.filterRequestFactory = filterRequestFactory;
|
|
601
|
-
this.currentPage = faker.datatype.number({ min: 1, max: 100 });
|
|
602
|
-
this.appliedSortDirection = faker.helpers.arrayElement([DaffSortDirectionEnum.Ascending, DaffSortDirectionEnum.Descending]);
|
|
603
|
-
this.pageSize = faker.datatype.number({ min: 1, max: 100 });
|
|
604
|
-
this.appliedSortOption = faker.random.word();
|
|
605
|
-
this.filterRequests = this.createFilterRequests();
|
|
606
|
-
}
|
|
607
|
-
createFilterRequests() {
|
|
608
|
-
return this.filterRequestFactory.createMany(faker.datatype.number({ min: 1, max: 5 }));
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* Factory for creating {@link DaffCollectionRequest}s.
|
|
613
|
-
*/
|
|
614
|
-
class DaffCollectionRequestFactory extends DaffModelFactory {
|
|
615
|
-
constructor(filterRequestFactory) {
|
|
616
|
-
super(MockCollectionRequest, filterRequestFactory);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
/** @nocollapse */ DaffCollectionRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCollectionRequestFactory, deps: [{ token: DaffFilterRequestFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
620
|
-
/** @nocollapse */ DaffCollectionRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCollectionRequestFactory, providedIn: 'root' });
|
|
621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCollectionRequestFactory, decorators: [{
|
|
622
|
-
type: Injectable,
|
|
623
|
-
args: [{
|
|
624
|
-
providedIn: 'root',
|
|
625
|
-
}]
|
|
626
|
-
}], ctorParameters: function () { return [{ type: DaffFilterRequestFactory }]; } });
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Mocked {@link DaffCollection} object.
|
|
630
|
-
*
|
|
631
|
-
* It should be customized by passing the factory for the contained entity as the first constructor argument.
|
|
632
|
-
*/
|
|
633
|
-
class MockCollection {
|
|
634
|
-
constructor(itemFactory, metadataFactory) {
|
|
635
|
-
this.itemFactory = itemFactory;
|
|
636
|
-
this.metadataFactory = metadataFactory;
|
|
637
|
-
this._items = this.createItems();
|
|
638
|
-
this.metadata = this.createMetadata();
|
|
639
|
-
this.data = daffIdentifiableArrayToDict(this._items);
|
|
640
|
-
}
|
|
641
|
-
createItems() {
|
|
642
|
-
return this.itemFactory.createMany();
|
|
643
|
-
}
|
|
644
|
-
createMetadata() {
|
|
645
|
-
return this.metadataFactory.create({
|
|
646
|
-
ids: this._items.map(({ id }) => id),
|
|
647
|
-
count: this._items.length,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
//@angular/core
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Generated bundle index. Do not edit.
|
|
656
|
-
*/
|
|
657
|
-
|
|
658
|
-
export { DaffAddressFactory, DaffCollectionMetadataFactory, DaffCollectionRequestFactory, DaffCoreTestingModule, DaffFilterEqualFactory, DaffFilterEqualOptionFactory, DaffFilterFactory, DaffFilterRangeNumericFactory, DaffFilterRangeNumericOptionFactory, DaffFilterRangeNumericPairFactory, DaffFilterRangeNumericRequestOptionFactory, DaffFilterRequestEqualFactory, DaffFilterRequestFactory, DaffFilterRequestRangeNumericFactory, DaffFilterToggleRequestEqualFactory, DaffFilterToggleRequestFactory, DaffFilterToggleRequestRangeNumericFactory, DaffIdentifiableFactory, DaffMockCurrencyPipe, DaffModelFactory, DaffNumericallyPaginableFactory, DaffSortOptionFactory, DaffSortOptionsFactory, DaffSortableFactory, MockCollection, MockCollectionMetadata, MockCollectionRequest, MockDaffAddress, MockDaffFilterEqualOption, MockDaffFilterEqualRequest, MockDaffFilterRangeNumericPair, MockDaffFilterRangeNumericRequest, MockDaffFilterRangeNumericRequestOption, MockDaffFilterToggleEqualRequest, MockDaffFilterToggleRangeNumericRequest, MockDaffIdentifiable, MockFilterEqual, MockFilterRangeNumeric, MockFilterRangeNumericOption };
|
|
659
|
-
//# sourceMappingURL=daffodil-core-testing.mjs.map
|