@daffodil/core 0.87.2 → 0.89.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/external-script/index.d.ts +95 -1
- package/external-script/testing/index.d.ts +44 -1
- package/fesm2022/daffodil-core-external-script-testing.mjs +3 -3
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-external-script.mjs +4 -5
- package/fesm2022/daffodil-core-external-script.mjs.map +1 -1
- package/fesm2022/daffodil-core-graphql.mjs +3 -3
- package/fesm2022/daffodil-core-graphql.mjs.map +1 -1
- package/fesm2022/daffodil-core-routing.mjs +4 -38
- package/fesm2022/daffodil-core-routing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state-testing.mjs +6 -6
- package/fesm2022/daffodil-core-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state.mjs +2 -0
- package/fesm2022/daffodil-core-state.mjs.map +1 -1
- package/fesm2022/daffodil-core-testing.mjs +67 -67
- package/fesm2022/daffodil-core-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core.mjs +125 -33
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/graphql/index.d.ts +64 -1
- package/index.d.ts +1305 -1
- package/package.json +1 -1
- package/routing/index.d.ts +86 -1
- package/state/index.d.ts +649 -1
- package/state/testing/index.d.ts +46 -1
- package/testing/index.d.ts +363 -1
- package/async/maybe.type.d.ts +0 -2
- package/base64/base64.interface.d.ts +0 -14
- package/base64/browser/browser.service.d.ts +0 -12
- package/base64/public_api.d.ts +0 -3
- package/base64/server/public_api.d.ts +0 -1
- package/base64/server/server.service.d.ts +0 -14
- package/canonically-locateable/canonically-locateable.interface.d.ts +0 -9
- package/collection/build-metadata.d.ts +0 -6
- package/collection/build-request.d.ts +0 -6
- package/collection/collection.interface.d.ts +0 -16
- package/collection/countable.interface.d.ts +0 -9
- package/collection/error-map.d.ts +0 -4
- package/collection/metadata.interface.d.ts +0 -12
- package/collection/page-out-of-bounds.error.d.ts +0 -9
- package/collection/paginable.d.ts +0 -10
- package/collection/public_api.d.ts +0 -10
- package/collection/request.interface.d.ts +0 -27
- package/collection/sortable.d.ts +0 -41
- package/constructable/constructable.d.ts +0 -24
- package/errors/error-map.d.ts +0 -8
- package/errors/error.interface.d.ts +0 -17
- package/errors/inheritable-error.d.ts +0 -22
- package/errors/is-error.d.ts +0 -4
- package/errors/public_api.d.ts +0 -4
- package/external-script/external-script.service.d.ts +0 -50
- package/external-script/interface.d.ts +0 -11
- package/external-script/public_api.d.ts +0 -3
- package/external-script/script.d.ts +0 -32
- package/external-script/testing/constants.d.ts +0 -4
- package/external-script/testing/external-script.service.d.ts +0 -37
- package/external-script/testing/public_api.d.ts +0 -2
- package/filterable/filter-base.d.ts +0 -24
- package/filterable/filter-option-base.d.ts +0 -9
- package/filterable/filter-option.d.ts +0 -6
- package/filterable/filter-request.d.ts +0 -7
- package/filterable/filter-toggle-request.d.ts +0 -6
- package/filterable/filter.d.ts +0 -9
- package/filterable/filterable.d.ts +0 -10
- package/filterable/filters.type.d.ts +0 -5
- package/filterable/public_api.d.ts +0 -12
- package/filterable/type/equal/filter.d.ts +0 -24
- package/filterable/type/equal/option.d.ts +0 -19
- package/filterable/type/equal/public_api.d.ts +0 -4
- package/filterable/type/equal/request.d.ts +0 -18
- package/filterable/type/equal/toggle-request.d.ts +0 -18
- package/filterable/type/filter-type.d.ts +0 -7
- package/filterable/type/range/filter-base.d.ts +0 -23
- package/filterable/type/range/option.d.ts +0 -14
- package/filterable/type/range/pair.d.ts +0 -20
- package/filterable/type/range/public_api.d.ts +0 -6
- package/filterable/type/range/request-base.d.ts +0 -20
- package/filterable/type/range/request-option.d.ts +0 -14
- package/filterable/type/range/separator.d.ts +0 -5
- package/filterable/type/range-numeric/filter.d.ts +0 -11
- package/filterable/type/range-numeric/public_api.d.ts +0 -3
- package/filterable/type/range-numeric/request.d.ts +0 -11
- package/filterable/type/range-numeric/toggle-request.d.ts +0 -12
- package/filters/array-to-dict/array-to-dict.d.ts +0 -5
- package/filters/behaviors/apply/apply-filter.d.ts +0 -8
- package/filters/behaviors/apply/apply-request-to-filters.d.ts +0 -8
- package/filters/behaviors/apply/apply-requests-to-filters.d.ts +0 -8
- package/filters/behaviors/apply/public_api.d.ts +0 -3
- package/filters/behaviors/clear/clear-filter.d.ts +0 -8
- package/filters/behaviors/clear/clear-filters.d.ts +0 -8
- package/filters/behaviors/clear/public_api.d.ts +0 -2
- package/filters/behaviors/remove/public_api.d.ts +0 -3
- package/filters/behaviors/remove/remove-filter.d.ts +0 -9
- package/filters/behaviors/remove/remove-request-from-filters.d.ts +0 -8
- package/filters/behaviors/remove/remove-requests-from-filters.d.ts +0 -9
- package/filters/behaviors/toggle/public_api.d.ts +0 -2
- package/filters/behaviors/toggle/toggle-request-on-filters.d.ts +0 -6
- package/filters/behaviors/toggle/toggle.d.ts +0 -6
- package/filters/compute-applied-filters/compute-applied-filters.d.ts +0 -6
- package/filters/errors/codes.enum.d.ts +0 -9
- package/filters/errors/filter-not-found.error.d.ts +0 -8
- package/filters/errors/public_api.d.ts +0 -4
- package/filters/errors/request-name-mismatch.error.d.ts +0 -9
- package/filters/errors/request-type-mismatch.error.d.ts +0 -9
- package/filters/errors/unknown-filter-type.error.d.ts +0 -9
- package/filters/find-applied/find-applied-options.d.ts +0 -5
- package/filters/find-applied/public_api.d.ts +0 -1
- package/filters/is-applied/is-filter-applied.d.ts +0 -5
- package/filters/is-applied/is-toggle-request-applied-to-filter.d.ts +0 -5
- package/filters/is-applied/public_api.d.ts +0 -2
- package/filters/public_api.d.ts +0 -13
- package/filters/to-request/filter-to-request.d.ts +0 -6
- package/filters/to-request/filters-to-requests.d.ts +0 -6
- package/filters/to-request/public_api.d.ts +0 -2
- package/filters/type/equal/array-to-dict/option.d.ts +0 -5
- package/filters/type/equal/behaviors/apply/apply.d.ts +0 -8
- package/filters/type/equal/behaviors/clear/clear.d.ts +0 -8
- package/filters/type/equal/behaviors/remove/remove.d.ts +0 -11
- package/filters/type/equal/behaviors/toggle/toggle.d.ts +0 -11
- package/filters/type/equal/is-applied/is-applied.d.ts +0 -5
- package/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.d.ts +0 -5
- package/filters/type/equal/public_api.d.ts +0 -1
- package/filters/type/equal/to-request/filter-to-request.d.ts +0 -5
- package/filters/type/range/array-to-dict/pair.d.ts +0 -5
- package/filters/type/range/behaviors/apply/apply.d.ts +0 -8
- package/filters/type/range/behaviors/clear/clear.d.ts +0 -8
- package/filters/type/range/behaviors/remove/remove.d.ts +0 -11
- package/filters/type/range/behaviors/toggle/toggle.d.ts +0 -10
- package/filters/type/range/compute-pair-label.d.ts +0 -1
- package/filters/type/range/is-applied/is-applied.d.ts +0 -5
- package/filters/type/range/is-applied/is-toggle-request-applied-to-filter.d.ts +0 -5
- package/filters/type/range/public_api.d.ts +0 -2
- package/filters/type/range/to-request/filter-to-request.d.ts +0 -5
- package/filters/type/range-numeric/to-request/filter-to-request.d.ts +0 -5
- package/filters/validators/public_api.d.ts +0 -2
- package/filters/validators/request-name-match.d.ts +0 -7
- package/filters/validators/request-type-match.d.ts +0 -7
- package/graphql/apollo/cacheable-operations/cacheable-operations-link.interface.d.ts +0 -4
- package/graphql/apollo/public_api.d.ts +0 -3
- package/graphql/apollo/queued-apollo/queued-apollo.service.d.ts +0 -29
- package/graphql/apollo/validator/type.d.ts +0 -8
- package/graphql/fragments/build-fragment-definition.d.ts +0 -8
- package/graphql/fragments/build-fragment-name-spread.d.ts +0 -11
- package/graphql/fragments/public_api.d.ts +0 -2
- package/graphql/public_api.d.ts +0 -2
- package/identifiable/array-to-dict.d.ts +0 -5
- package/identifiable/identifiable.interface.d.ts +0 -10
- package/identifiable/public_api.d.ts +0 -2
- package/injection-tokens/config.factory.d.ts +0 -9
- package/injection-tokens/config.type.d.ts +0 -18
- package/injection-tokens/multi.factory.d.ts +0 -8
- package/injection-tokens/multi.type.d.ts +0 -15
- package/injection-tokens/public_api.d.ts +0 -10
- package/injection-tokens/services.factory.d.ts +0 -8
- package/injection-tokens/services.type.d.ts +0 -15
- package/injection-tokens/single.factory.d.ts +0 -8
- package/injection-tokens/single.type.d.ts +0 -14
- package/injection-tokens/singleton.factory.d.ts +0 -8
- package/injection-tokens/singleton.type.d.ts +0 -15
- package/injection-tokens/token-constuctor-params.type.d.ts +0 -3
- package/kindable/kindable.interface.d.ts +0 -9
- package/kindable/public_api.d.ts +0 -1
- package/locateable/locateable.interface.d.ts +0 -10
- package/merge/merge.d.ts +0 -64
- package/merge/mergers/array-concat.d.ts +0 -1
- package/merge/mergers/dict-assign.d.ts +0 -1
- package/merge/mergers/public_api.d.ts +0 -3
- package/merge/mergers/type.d.ts +0 -4
- package/merge/public_api.d.ts +0 -3
- package/merge/strategy.type.d.ts +0 -8
- package/operators/all-of.pipe.d.ts +0 -6
- package/operators/any-of.pipe.d.ts +0 -6
- package/operators/backoff.pipe.d.ts +0 -7
- package/operators/catch-and-arrayify-errors.pipe.d.ts +0 -6
- package/operators/public_api.d.ts +0 -4
- package/orderable/orderable.d.ts +0 -9
- package/public_api.d.ts +0 -19
- package/routing/public_api.d.ts +0 -3
- package/routing/query-param-filter/public_api.d.ts +0 -2
- package/routing/query-param-filter/request-builder/equal.d.ts +0 -6
- package/routing/query-param-filter/request-builder/public_api.d.ts +0 -2
- package/routing/query-param-filter/request-builder/type.d.ts +0 -6
- package/routing/query-param-filter/type.d.ts +0 -16
- package/routing/reducers/clear-errors/navigated-entity-reducer-factory.d.ts +0 -7
- package/routing/reducers/clear-errors/navigated.reducer.d.ts +0 -6
- package/routing/reducers/clear-errors/public_api.d.ts +0 -2
- package/routing/reducers/public_api.d.ts +0 -1
- package/routing/uri/normalizer.service.d.ts +0 -22
- package/routing/uri/public_api.d.ts +0 -2
- package/routing/uri/truncation/file-extension.d.ts +0 -9
- package/routing/uri/truncation/leading-path-segments.d.ts +0 -5
- package/routing/uri/truncation/leading-slash.d.ts +0 -11
- package/routing/uri/truncation/public_api.d.ts +0 -4
- package/routing/uri/truncation/query-fragment.d.ts +0 -5
- package/state/actions/failure.type.d.ts +0 -13
- package/state/actions/public_api.d.ts +0 -1
- package/state/collection/actions.d.ts +0 -73
- package/state/collection/adapter.class.d.ts +0 -35
- package/state/collection/facade.d.ts +0 -34
- package/state/collection/facade.interface.d.ts +0 -54
- package/state/collection/initial-state.d.ts +0 -2
- package/state/collection/public_api.d.ts +0 -6
- package/state/collection/selector-factory.d.ts +0 -62
- package/state/errors/errorable.type.d.ts +0 -7
- package/state/errors/public_api.d.ts +0 -3
- package/state/errors/state-error.interface.d.ts +0 -18
- package/state/errors/transform-error-to-state-error.d.ts +0 -7
- package/state/operation/adapter.d.ts +0 -24
- package/state/operation/entity/adapter.d.ts +0 -84
- package/state/operation/entity/helpers/create-fake-id.d.ts +0 -7
- package/state/operation/entity/public_api.d.ts +0 -5
- package/state/operation/entity/selectors.d.ts +0 -24
- package/state/operation/entity/state.type.d.ts +0 -8
- package/state/operation/entity/type.d.ts +0 -15
- package/state/operation/facade.type.d.ts +0 -34
- package/state/operation/public_api.d.ts +0 -5
- package/state/operation/selectors.d.ts +0 -38
- package/state/operation/state.d.ts +0 -9
- package/state/operators/public_api.d.ts +0 -1
- package/state/operators/substream.pipe.d.ts +0 -26
- package/state/public_api.d.ts +0 -8
- package/state/reducers/create-meta.d.ts +0 -5
- package/state/reducers/identity.d.ts +0 -6
- package/state/reducers/public_api.d.ts +0 -2
- package/state/states/helpers.d.ts +0 -9
- package/state/states/loading.d.ts +0 -5
- package/state/states/mutable-loading.d.ts +0 -6
- package/state/states/public_api.d.ts +0 -5
- package/state/states/state.enum.d.ts +0 -48
- package/state/states/stateable.interface.d.ts +0 -8
- package/state/store/facade.d.ts +0 -3
- package/state/testing/mock-collection-facade.d.ts +0 -26
- package/state/testing/mock-operation-facade.d.ts +0 -20
- package/state/testing/public_api.d.ts +0 -2
- package/storage/error/error.d.ts +0 -7
- package/storage/error/error.service.d.ts +0 -15
- package/storage/error/public_api.d.ts +0 -2
- package/storage/localstorage/localstorage.service.d.ts +0 -23
- package/storage/noopstorage/noopstorage.service.d.ts +0 -13
- package/storage/persistence-server-safe.token.d.ts +0 -2
- package/storage/persistence.interface.d.ts +0 -7
- package/storage/public_api.d.ts +0 -6
- package/storage/server-error/public_api.d.ts +0 -2
- package/storage/server-error/server-error.d.ts +0 -11
- package/storage/server-error/server-error.service.d.ts +0 -18
- package/testing/angular/mocks/pipes/currency.d.ts +0 -13
- package/testing/factories/collection/metadata.factory.d.ts +0 -29
- package/testing/factories/collection/mock-collection.class.d.ts +0 -18
- package/testing/factories/collection/numerically-paginable.factory.d.ts +0 -8
- package/testing/factories/collection/public_api.d.ts +0 -7
- package/testing/factories/collection/request.factory.d.ts +0 -25
- package/testing/factories/collection/sort-option.factory.d.ts +0 -8
- package/testing/factories/collection/sort-options.factory.d.ts +0 -9
- package/testing/factories/collection/sortable.factory.d.ts +0 -9
- package/testing/factories/factory.d.ts +0 -42
- package/testing/factories/factory.interface.d.ts +0 -4
- package/testing/factories/filters/filter.factory.d.ts +0 -18
- package/testing/factories/filters/public_api.d.ts +0 -4
- package/testing/factories/filters/request.factory.d.ts +0 -13
- package/testing/factories/filters/toggle-request.d.ts +0 -18
- package/testing/factories/filters/type/equal/option.d.ts +0 -17
- package/testing/factories/filters/type/equal/public_api.d.ts +0 -3
- package/testing/factories/filters/type/equal/request.d.ts +0 -16
- package/testing/factories/filters/type/equal/toggle-request.d.ts +0 -16
- package/testing/factories/filters/type/equal.d.ts +0 -17
- package/testing/factories/filters/type/public_api.d.ts +0 -4
- package/testing/factories/filters/type/range-numeric/option.d.ts +0 -15
- package/testing/factories/filters/type/range-numeric/pair.d.ts +0 -23
- package/testing/factories/filters/type/range-numeric/public_api.d.ts +0 -5
- package/testing/factories/filters/type/range-numeric/request-option.d.ts +0 -15
- package/testing/factories/filters/type/range-numeric/request.d.ts +0 -23
- package/testing/factories/filters/type/range-numeric/toggle-request.d.ts +0 -20
- package/testing/factories/filters/type/range-numeric.d.ts +0 -19
- package/testing/factories/identifiable.factory.d.ts +0 -11
- package/testing/factories/public_api.d.ts +0 -5
- package/testing/public_api.d.ts +0 -4
- package/testing/testing.module.d.ts +0 -7
- package/testing/unique/enforce.d.ts +0 -7
- package/types/html.type.d.ts +0 -5
- package/types/id.type.d.ts +0 -1
- package/types/public_api.d.ts +0 -2
- package/utils/array-to-dict.d.ts +0 -7
- package/utils/collect.d.ts +0 -6
- package/utils/identity.d.ts +0 -5
- package/utils/long-arithmetic.d.ts +0 -43
- package/utils/observe.d.ts +0 -9
- package/utils/public_api.d.ts +0 -16
- package/utils/random-slice.d.ts +0 -7
- package/utils/random-subset.d.ts +0 -7
- package/utils/range.d.ts +0 -12
- package/utils/sample.d.ts +0 -4
- package/utils/shallow-compare.d.ts +0 -6
- package/utils/shuffle.d.ts +0 -5
- package/utils/unique.d.ts +0 -8
- package/validator/field-presence.d.ts +0 -6
- package/validator/public_api.d.ts +0 -1
|
@@ -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,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,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,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
|
-
}
|
package/testing/public_api.d.ts
DELETED
|
@@ -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 {};
|
package/types/html.type.d.ts
DELETED
package/types/id.type.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ID = string;
|
package/types/public_api.d.ts
DELETED
package/utils/array-to-dict.d.ts
DELETED
|
@@ -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 {};
|
package/utils/collect.d.ts
DELETED
|
@@ -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[];
|
package/utils/identity.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A helper function to compute a power of 10 required to convert a decimal number to an integer
|
|
3
|
-
* This function will fail if the given number has more than 16 significant figures or
|
|
4
|
-
* the value of the number is greater than 10^11
|
|
5
|
-
*
|
|
6
|
-
* @param number
|
|
7
|
-
*/
|
|
8
|
-
export declare function daffPrecision(number: number): number;
|
|
9
|
-
/**
|
|
10
|
-
* A function to add long numbers accurately with conversions and integer math.
|
|
11
|
-
* This function only guarantees correct answers when the numbers given and the result are less than
|
|
12
|
-
* 16 significant figures and less than 10^11
|
|
13
|
-
*
|
|
14
|
-
* @param numbers
|
|
15
|
-
*/
|
|
16
|
-
export declare function daffAdd(...numbers: number[]): number;
|
|
17
|
-
/**
|
|
18
|
-
* A function to subtract long numbers accurately with conversions and integer math.
|
|
19
|
-
* This function only guarantees correct answers when the numbers given and the result are each less than
|
|
20
|
-
* 16 significant figures and less than 10^11
|
|
21
|
-
*
|
|
22
|
-
* @param numbers
|
|
23
|
-
*/
|
|
24
|
-
export declare function daffSubtract(...numbers: number[]): number;
|
|
25
|
-
/**
|
|
26
|
-
* A function to multiply long numbers accurately with conversions and integer math.
|
|
27
|
-
* This function only guarantees correct answers when the numbers given and the result are each less than 16 significant figures
|
|
28
|
-
* and less than 10^11
|
|
29
|
-
*
|
|
30
|
-
* @param numbers
|
|
31
|
-
*/
|
|
32
|
-
export declare function daffMultiply(...numbers: number[]): number;
|
|
33
|
-
/**
|
|
34
|
-
* A function to divide long numbers accurately with conversions and integer math.
|
|
35
|
-
* This function only guarantees correct answers when the numbers given and the result are each less than 16 significant figures
|
|
36
|
-
* and less than 10^11
|
|
37
|
-
*
|
|
38
|
-
* Returns NaN when attempting to use NaN as an input.
|
|
39
|
-
* Returns NaN when attempting to divide by 0 or null.
|
|
40
|
-
*
|
|
41
|
-
* @param numbers
|
|
42
|
-
*/
|
|
43
|
-
export declare function daffDivide(...numbers: number[]): number;
|
package/utils/observe.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { MaybeAsync } from '../async/maybe.type';
|
|
3
|
-
/**
|
|
4
|
-
* Converts a value to an observable.
|
|
5
|
-
* If the value is an observable, just returns that observable.
|
|
6
|
-
* If the value is a promise, converts it to an observable (see rxjs `from`).
|
|
7
|
-
* If the value is neither, just returns an observable that immediately emits the value.
|
|
8
|
-
*/
|
|
9
|
-
export declare function observe<T>(val: MaybeAsync<T>): Observable<T>;
|