@daffodil/core 0.63.2 → 0.64.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/collection/collection.interface.d.ts +1 -1
- package/collection/metadata.interface.d.ts +2 -2
- package/collection/request.interface.d.ts +1 -1
- package/errors/error-map.d.ts +1 -1
- package/esm2020/base64/browser/browser.service.mjs +3 -3
- package/esm2020/base64/server/server.service.mjs +3 -3
- package/esm2020/collection/build-request.mjs +1 -1
- package/esm2020/collection/collection.interface.mjs +1 -1
- package/esm2020/collection/metadata.interface.mjs +1 -1
- package/esm2020/collection/request.interface.mjs +1 -1
- package/esm2020/errors/error-map.mjs +1 -1
- package/esm2020/filterable/type/equal/filter.mjs +1 -1
- package/esm2020/filterable/type/range/filter-base.mjs +1 -1
- package/esm2020/filterable/type/range/pair.mjs +1 -1
- package/esm2020/filters/behaviors/apply/apply-request-to-filters.mjs +1 -1
- package/esm2020/filters/behaviors/apply/apply-requests-to-filters.mjs +1 -1
- package/esm2020/filters/behaviors/clear/clear-filters.mjs +1 -1
- package/esm2020/filters/behaviors/remove/remove-request-from-filters.mjs +1 -1
- package/esm2020/filters/behaviors/remove/remove-requests-from-filters.mjs +1 -1
- package/esm2020/filters/behaviors/toggle/toggle-request-on-filters.mjs +1 -1
- package/esm2020/filters/errors/filter-not-found.error.mjs +2 -2
- package/esm2020/filters/errors/request-name-mismatch.error.mjs +2 -2
- package/esm2020/filters/errors/request-type-mismatch.error.mjs +2 -2
- package/esm2020/filters/errors/unknown-filter-type.error.mjs +2 -2
- package/esm2020/filters/to-request/filters-to-requests.mjs +1 -1
- package/esm2020/graphql/apollo/queued-apollo/queued-apollo.service.mjs +3 -3
- package/esm2020/identifiable/array-to-dict.mjs +1 -1
- package/esm2020/routing/uri/normalizer.service.mjs +3 -3
- package/esm2020/state/operation/adapter.mjs +5 -5
- package/esm2020/state/operation/entity/adapter.mjs +11 -11
- package/esm2020/state/operation/entity/helpers.mjs +5 -5
- package/esm2020/state/operation/facade.type.mjs +1 -1
- package/esm2020/state/operation/selectors.mjs +4 -4
- package/esm2020/state/operation/state.mjs +2 -2
- package/esm2020/state/testing/mock-collection-facade.mjs +3 -3
- package/esm2020/state/testing/mock-operation-facade.mjs +5 -5
- package/esm2020/storage/error/error.service.mjs +4 -4
- package/esm2020/storage/localstorage/localstorage.service.mjs +3 -3
- package/esm2020/storage/noopstorage/noopstorage.service.mjs +3 -3
- package/esm2020/storage/server-error/server-error.service.mjs +4 -4
- package/esm2020/testing/angular/mocks/pipes/currency.mjs +3 -3
- package/esm2020/testing/factories/address.factory.mjs +3 -3
- package/esm2020/testing/factories/collection/metadata.factory.mjs +6 -6
- package/esm2020/testing/factories/collection/mock-collection.class.mjs +1 -1
- package/esm2020/testing/factories/collection/numerically-paginable.factory.mjs +3 -3
- package/esm2020/testing/factories/collection/request.factory.mjs +3 -3
- package/esm2020/testing/factories/collection/sort-option.factory.mjs +3 -3
- package/esm2020/testing/factories/collection/sort-options.factory.mjs +5 -5
- package/esm2020/testing/factories/collection/sortable.factory.mjs +5 -5
- package/esm2020/testing/factories/filters/filter.factory.mjs +5 -5
- package/esm2020/testing/factories/filters/request.factory.mjs +5 -5
- package/esm2020/testing/factories/filters/toggle-request.mjs +5 -5
- package/esm2020/testing/factories/filters/type/equal/option.mjs +3 -3
- package/esm2020/testing/factories/filters/type/equal/request.mjs +3 -3
- package/esm2020/testing/factories/filters/type/equal/toggle-request.mjs +3 -3
- package/esm2020/testing/factories/filters/type/equal.mjs +3 -3
- package/esm2020/testing/factories/filters/type/range-numeric/option.mjs +3 -3
- package/esm2020/testing/factories/filters/type/range-numeric/pair.mjs +5 -5
- package/esm2020/testing/factories/filters/type/range-numeric/request-option.mjs +3 -3
- package/esm2020/testing/factories/filters/type/range-numeric/request.mjs +5 -5
- package/esm2020/testing/factories/filters/type/range-numeric/toggle-request.mjs +5 -5
- package/esm2020/testing/factories/filters/type/range-numeric.mjs +3 -3
- package/esm2020/testing/factories/identifiable.factory.mjs +3 -3
- package/esm2020/testing/testing.module.mjs +4 -4
- package/fesm2015/daffodil-core-graphql.mjs +3 -3
- package/fesm2015/daffodil-core-routing.mjs +3 -3
- package/fesm2015/daffodil-core-state-testing.mjs +7 -7
- package/fesm2015/daffodil-core-state-testing.mjs.map +1 -1
- package/fesm2015/daffodil-core-state.mjs +22 -22
- package/fesm2015/daffodil-core-state.mjs.map +1 -1
- package/fesm2015/daffodil-core-testing.mjs +70 -70
- package/fesm2015/daffodil-core-testing.mjs.map +1 -1
- package/fesm2015/daffodil-core.mjs +18 -18
- package/fesm2015/daffodil-core.mjs.map +1 -1
- package/fesm2020/daffodil-core-graphql.mjs +3 -3
- package/fesm2020/daffodil-core-routing.mjs +3 -3
- package/fesm2020/daffodil-core-state-testing.mjs +7 -7
- package/fesm2020/daffodil-core-state-testing.mjs.map +1 -1
- package/fesm2020/daffodil-core-state.mjs +22 -22
- package/fesm2020/daffodil-core-state.mjs.map +1 -1
- package/fesm2020/daffodil-core-testing.mjs +70 -70
- package/fesm2020/daffodil-core-testing.mjs.map +1 -1
- package/fesm2020/daffodil-core.mjs +18 -18
- package/fesm2020/daffodil-core.mjs.map +1 -1
- package/filterable/type/equal/filter.d.ts +1 -1
- package/filterable/type/range/filter-base.d.ts +1 -1
- package/filterable/type/range/pair.d.ts +1 -1
- package/package.json +1 -1
- package/state/operation/entity/adapter.d.ts +1 -1
- package/state/operation/facade.type.d.ts +1 -1
- package/testing/angular/mocks/pipes/currency.d.ts +1 -1
- package/testing/factories/collection/metadata.factory.d.ts +2 -2
- package/testing/factories/collection/mock-collection.class.d.ts +1 -1
- package/testing/factories/collection/sort-options.factory.d.ts +1 -1
- package/testing/factories/collection/sortable.factory.d.ts +1 -1
- package/testing/factories/filters/filter.factory.d.ts +1 -1
- package/testing/factories/filters/request.factory.d.ts +1 -1
- package/testing/factories/filters/toggle-request.d.ts +1 -1
- package/testing/factories/filters/type/range-numeric/pair.d.ts +1 -1
- package/testing/factories/filters/type/range-numeric/request.d.ts +1 -1
- package/testing/factories/filters/type/range-numeric/toggle-request.d.ts +1 -1
- package/daffodil-core.d.ts +0 -5
- package/graphql/daffodil-core-graphql.d.ts +0 -5
- package/graphql/package.json +0 -1
- package/routing/daffodil-core-routing.d.ts +0 -5
- package/routing/package.json +0 -1
- package/state/daffodil-core-state.d.ts +0 -5
- package/state/package.json +0 -1
- package/state/testing/daffodil-core-state-testing.d.ts +0 -5
- package/state/testing/package.json +0 -1
- package/testing/daffodil-core-testing.d.ts +0 -5
- package/testing/package.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-core-state.mjs","sources":["../../../libs/core/state/src/operators/substream.pipe.ts","../../../libs/core/state/src/errors/transform-error-to-state-error.ts","../../../libs/core/state/src/reducers/create-meta.ts","../../../libs/core/state/src/reducers/identity.ts","../../../libs/core/state/src/collection/adapter.class.ts","../../../libs/core/state/src/collection/initial-state.ts","../../../libs/core/state/src/collection/selector-factory.ts","../../../libs/core/state/src/collection/facade.ts","../../../libs/core/state/src/operation/adapter.ts","../../../libs/core/state/src/operation/state.ts","../../../libs/core/state/src/operation/selectors.ts","../../../libs/core/state/src/operation/entity/selectors.ts","../../../libs/core/state/src/operation/entity/adapter.ts","../../../libs/core/state/src/operation/entity/helpers.ts","../../../libs/core/state/src/daffodil-core-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\nimport { pipe } from 'rxjs';\nimport {\n scan,\n filter,\n} from 'rxjs/operators';\n\nexport type ActionType = Action['type'];\nexport type ActionSequenceStep = ActionType | ActionType[];\nexport type ActionSequence = ActionSequenceStep[];\n\nconst compareActionSequenceStep = (step: ActionSequenceStep, action: Action): boolean => Array.isArray(step)\n ? step.reduce((acc, type) => acc || action.type === type, false)\n : action.type === step;\n\n/**\n * Watches for a particular stream of actions in the specified order and\n * emits a list of those actions once all sequence steps have been matched.\n *\n * This will find the first occurence of the substream and not necessarily the most concise or recent substream.\n * For example, substream([A, B]) encountering an action stream of [A1, A2, B1, B2] will emit [A1, B1].\n * When a substream is found and emitted, the list is reset and it will continue to listen to the action stream.\n *\n * You can indicate that a particular step in the sequence can be matched by mutiple actions by passing an array for that step.\n * For example, if the first step of the sequence could be action A or action B: substream([[A, B], C]).\n * An action stream of [A1, C1] would cause substream to emit [A1, C1].\n * An action stream of [B1, C1] would cause substream to emit [B1, C1].\n * An action stream of [A1, B1, C1] would cause substream to emit [A1, C1].\n *\n * You can optionally pass a list of terminators.\n * If a terminator is encountered in the action stream, any partially matched substream is reset.\n * For example, substream([A, B], C) would not emit anything for an action stream of [A1, C1, B1].\n *\n * @param sequence The sequence of action types that define the substream to listen for.\n * @param terminators A list of terminators, any of which interrupt and reset a partially matched substream.\n */\nexport const substream = (sequence: ActionSequence, ...terminators: ActionType[]) => {\n const isFullMatch = matchedSubstream => matchedSubstream.length === sequence.length;\n const accumulateMatchedSubstream = (matchedSubstream, action) =>\n compareActionSequenceStep(sequence[matchedSubstream.length], action)\n ? [\n ...matchedSubstream,\n action,\n ]\n : matchedSubstream;\n\n return pipe(\n scan<Action, Action[]>((matchedSubstream, action) =>\n terminators.indexOf(action.type) > -1\n // terminator found, reset the list\n ? []\n : accumulateMatchedSubstream(\n // reset the list if fully matched\n isFullMatch(matchedSubstream) ? [] : matchedSubstream,\n action,\n ),\n []),\n filter(isFullMatch),\n );\n};\n","import { DaffError } from '@daffodil/core';\n\nimport { DaffStateError } from './state-error.interface';\n\nexport type ErrorTransformer = (DaffError) => DaffStateError;\n\n/**\n * Transforms an error instance to a state error object.\n */\nexport function daffTransformErrorToStateError({ code, message, recoverable }: DaffError): DaffStateError {\n return { code, message, recoverable };\n}\n","import {\n Action,\n ActionReducer,\n} from '@ngrx/store';\n\n/**\n * Creates and returns a composite reducer that invokes each of the passed reducers in turn.\n */\nexport function daffComposeReducers<\n T,\n V extends Action = Action\n>(reducers: ActionReducer<T, V>[]): ActionReducer<T, V> {\n return (state: T, action: V): T =>\n reducers.reduce((nextState, reducer) => reducer(nextState, action), state);\n}\n","import { Action } from '@ngrx/store';\n\n/**\n * A simple reducer that simply returns the passed state.\n * This is useful for stubbing out parts of state that are not covered in an injected extra reducer map.\n */\nexport const daffIdentityReducer = <T = unknown>(state: T, action: Action): T => state;\n","import { defaultMemoize } from '@ngrx/store';\n\nimport {\n daffCollectionBuildMetadataFromRequest,\n DaffCollectionMetadata,\n DaffCollectionRequest,\n DaffFilters,\n} from '@daffodil/core';\n\n/**\n * Provides an abstracted way to manage a collection state.\n */\nexport class DaffCollectionStateAdapter<T extends DaffCollectionMetadata = DaffCollectionMetadata> {\n /**\n * Stores a collection request in state.\n * This is useful when you want to preemptively reduce a request before waiting for a response.\n */\n storeRequest(request: DaffCollectionRequest, state: T): T {\n return {\n ...state,\n ...daffCollectionBuildMetadataFromRequest(request),\n };\n }\n\n /**\n * Sets the page size.\n */\n setPageSize(size: number, state: T): T {\n return {\n ...state,\n pageSize: size,\n currentPage: 1,\n };\n }\n\n /**\n * Sets the current page.\n */\n setCurrentPage(page: number, state: T): T {\n return {\n ...state,\n currentPage: page,\n };\n }\n\n /**\n * Sets the sorting option and direction.\n */\n setSort(option: string, direction: string, state: T): T {\n return {\n ...state,\n appliedSortOption: option,\n appliedSortDirection: direction,\n };\n }\n\n /**\n * Sets the collection filters.\n */\n setFilters(filters: DaffFilters, state: T): T {\n return {\n ...state,\n currentPage: 1,\n filters: filters || {},\n };\n }\n\n /**\n * Set the entire collection metadata at once.\n */\n setMetadata(metadata: DaffCollectionMetadata, state: T): T {\n return {\n ...state,\n ids: metadata.ids,\n count: metadata.count,\n currentPage: metadata.currentPage,\n pageSize: metadata.pageSize,\n sortOptions: metadata.sortOptions,\n totalPages: metadata.totalPages,\n appliedSortOption: metadata.appliedSortOption || state.appliedSortOption,\n appliedSortDirection: metadata.appliedSortDirection || state.appliedSortDirection,\n filters: metadata.filters || {},\n };\n }\n}\n\n/**\n * Create the adapter for the collection state.\n */\nexport const getCollectionStateAdapter: <T extends DaffCollectionMetadata = DaffCollectionMetadata>() => DaffCollectionStateAdapter<T>\n = defaultMemoize(() => new DaffCollectionStateAdapter()).memoized;\n","import { DaffCollectionMetadata } from '@daffodil/core';\n\nexport const daffCollectionReducerInitialState: DaffCollectionMetadata = {\n count: 0,\n appliedSortOption: null,\n appliedSortDirection: null,\n currentPage: null,\n pageSize: null,\n totalPages: null,\n sortOptions: {\n default: null,\n options: [],\n },\n ids: [],\n filters: {},\n};\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffCollectionMetadata,\n DaffCollectionRequest,\n daffComputeAppliedFilters,\n DaffFilters,\n} from '@daffodil/core';\n\n/**\n * An interface to describe all selectors related to the collection metadata.\n */\nexport interface DaffCollectionMemoizedSelectors<\n TState,\n TMetadata extends DaffCollectionMetadata = DaffCollectionMetadata\n> {\n /**\n * Selects the metadata for the collection.\n */\n selectCollectionMetadata: MemoizedSelector<TState, TMetadata>;\n /**\n * Builds a request that matches the current collection.\n */\n selectCollectionRequest: MemoizedSelector<TState, DaffCollectionRequest>;\n /**\n * Selects the total number of items of the collection.\n */\n selectCollectionCount: MemoizedSelector<TState, TMetadata['count']>;\n /**\n * Selects the current page of items of the collection.\n */\n selectCollectionCurrentPage: MemoizedSelector<TState, TMetadata['currentPage']>;\n /**\n * Selects the total number of pages of items that exist in the collection.\n */\n selectCollectionTotalPages: MemoizedSelector<TState, TMetadata['totalPages']>;\n /**\n * Selects the number of items on each collection.\n */\n selectCollectionPageSize: MemoizedSelector<TState, TMetadata['pageSize']>;\n /**\n * Selects the sort options that may be applied to the collection.\n */\n selectCollectionSortOptions: MemoizedSelector<TState, TMetadata['sortOptions']['options']>;\n /**\n * Selects the applied sorting option if one is applied.\n */\n selectCollectionAppliedSortOption: MemoizedSelector<TState, TMetadata['appliedSortOption']>;\n /**\n * Selects the applied sorting direction if a sorting option is applied.\n */\n selectCollectionAppliedSortDirection: MemoizedSelector<TState, TMetadata['appliedSortDirection']>;\n /**\n * Selects the applied sorting direction if a sorting option is applied.\n */\n selectCollectionIds: MemoizedSelector<TState, TMetadata['ids']>;\n /**\n * Selects the filters that may be applied to the collection.\n */\n selectCollectionFilters: MemoizedSelector<TState, TMetadata['filters']>;\n /**\n * Returns a dict of filters and only their applied options.\n * Filters with no applied options will be omitted.\n */\n selectCollectionAppliedFilters: MemoizedSelector<TState, DaffFilters>;\n}\n\n/**\n * Creates collection selectors.\n *\n * @param selectCollectionState A selector for the particular collection state upon which the returned selectors should operate.\n */\nexport const daffCollectionSelectorFactory = <\n TState,\n TMetadata extends DaffCollectionMetadata = DaffCollectionMetadata\n>(\n selectCollectionState: MemoizedSelector<TState, TMetadata>,\n): DaffCollectionMemoizedSelectors<TState, TMetadata> => {\n\n const selectCollectionMetadata = createSelector(\n selectCollectionState,\n state => state,\n );\n\n const selectCollectionRequest = createSelector(\n selectCollectionMetadata,\n metadata => ({\n appliedSortOption: metadata.appliedSortOption,\n appliedSortDirection: metadata.appliedSortDirection,\n currentPage: metadata.currentPage,\n pageSize: metadata.pageSize,\n }),\n );\n\n const selectCollectionCount = createSelector(\n selectCollectionMetadata,\n state => state.count,\n );\n\n const selectCollectionCurrentPage = createSelector(\n selectCollectionMetadata,\n state => state.currentPage,\n );\n\n const selectCollectionTotalPages = createSelector(\n selectCollectionMetadata,\n state => state.totalPages,\n );\n\n const selectCollectionPageSize = createSelector(\n selectCollectionMetadata,\n state => state.pageSize,\n );\n\n const selectCollectionSortOptions = createSelector(\n selectCollectionMetadata,\n state => state.sortOptions.options,\n );\n\n const selectCollectionAppliedSortOption = createSelector(\n selectCollectionMetadata,\n state => state.appliedSortOption,\n );\n\n const selectCollectionAppliedSortDirection = createSelector(\n selectCollectionMetadata,\n state => state.appliedSortDirection,\n );\n\n const selectCollectionIds = createSelector(\n selectCollectionMetadata,\n state => state.ids,\n );\n\n const selectCollectionFilters = createSelector(\n selectCollectionMetadata,\n state => state.filters,\n );\n\n const selectCollectionAppliedFilters = createSelector(\n selectCollectionFilters,\n filters => daffComputeAppliedFilters(filters),\n );\n\n return {\n selectCollectionMetadata,\n selectCollectionRequest,\n selectCollectionCount,\n selectCollectionCurrentPage,\n selectCollectionTotalPages,\n selectCollectionPageSize,\n selectCollectionSortOptions,\n selectCollectionAppliedSortOption,\n selectCollectionAppliedSortDirection,\n selectCollectionIds,\n selectCollectionFilters,\n selectCollectionAppliedFilters,\n };\n};\n","import {\n Store,\n select,\n Action,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffCollectionMetadata,\n DaffCollectionRequest,\n DaffFilters,\n DaffSortDirectionEnum,\n DaffSortOption,\n} from '@daffodil/core';\n\nimport { DaffCollectionFacadeInterface } from './facade.interface';\nimport { DaffCollectionMemoizedSelectors } from './selector-factory';\n\n/**\n * An abstract class for a collection facade.\n * It is configurable via its constructor parameters.\n * The particular collection state from which\n * this facade will read is determined by the selectors passed.\n *\n * @inheritdoc\n */\nexport abstract class DaffCollectionFacade<\n TState,\n TMetadata extends DaffCollectionMetadata = DaffCollectionMetadata\n> implements DaffCollectionFacadeInterface<TMetadata> {\n metadata$: Observable<TMetadata>;\n request$: Observable<DaffCollectionRequest>;\n count$: Observable<number>;\n currentPage$: Observable<number>;\n totalPages$: Observable<number>;\n pageSize$: Observable<number>;\n sortOptions$: Observable<DaffSortOption[]>;\n appliedSortOption$: Observable<string>;\n appliedSortDirection$: Observable<DaffSortDirectionEnum>;\n filters$: Observable<DaffFilters>;\n appliedFilters$: Observable<DaffFilters>;\n\n constructor(\n protected store: Store<TState>,\n selectors: DaffCollectionMemoizedSelectors<TState, TMetadata>,\n ) {\n\t this.metadata$ = this.store.pipe(select(selectors.selectCollectionMetadata));\n\t this.request$ = this.store.pipe(select(selectors.selectCollectionRequest));\n\t this.count$ = this.store.pipe(select(selectors.selectCollectionCount));\n\t this.currentPage$ = this.store.pipe(select(selectors.selectCollectionCurrentPage));\n\t this.totalPages$ = this.store.pipe(select(selectors.selectCollectionTotalPages));\n\t this.pageSize$ = this.store.pipe(select(selectors.selectCollectionPageSize));\n\t this.sortOptions$ = this.store.pipe(select(selectors.selectCollectionSortOptions));\n\t this.appliedSortOption$ = this.store.pipe(select(selectors.selectCollectionAppliedSortOption));\n\t this.appliedSortDirection$ = this.store.pipe(select(selectors.selectCollectionAppliedSortDirection));\n this.filters$ = this.store.pipe(select(selectors.selectCollectionFilters));\n\t this.appliedFilters$ = this.store.pipe(select(selectors.selectCollectionAppliedFilters));\n }\n\n /**\n * Dispatches the given action.\n *\n * @param action action to dispatch.\n */\n dispatch(action: Action) {\n\t this.store.dispatch(action);\n }\n}\n","import { DaffState } from '../states/public_api';\nimport { DaffOperationState } from './state';\n\n/**\n * Puts the state in a \"resolving\" state that correspondes to loading platform data in a GET fashion.\n * Sets loading to `DaffState.Resolving`\n */\nexport function daffStartResolution <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffState: DaffState.Resolving,\n };\n};\n\n/**\n * Puts the state in a \"mutating\" state that correspondes to loading platform data in a POST or PUT fashion.\n */\nexport function daffStartMutation <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffState: DaffState.Mutating,\n };\n};\n\n/**\n * Indicates a successfully completed operation.\n * Sets loading to stable and resets errors.\n */\nexport function daffCompleteOperation <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffState: DaffState.Stable,\n daffErrors: [],\n };\n};\n\n/**\n * Indicates a failed operation.\n * Sets loading to stable and stores errors.\n */\nexport function daffOperationFailed <T extends DaffOperationState = DaffOperationState>(errors: T['daffErrors'], state: T): T {\n return {\n ...state,\n daffState: DaffState.Stable,\n daffErrors: errors,\n };\n};\n\n/**\n * Resets errors.\n */\nexport function daffClearErrors <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffErrors: [],\n };\n};\n","import { DaffErrorable } from '../errors/public_api';\nimport {\n DaffState,\n DaffStateable,\n} from '../states/public_api';\n\n/**\n * A basic operation state.\n * Represents the current state of an operation and any associated errors.\n */\nexport interface DaffOperationState extends DaffErrorable, DaffStateable {}\n\nexport const daffOperationInitialState: DaffOperationState = {\n daffState: DaffState.Stable,\n daffErrors: [],\n};\n","import {\n createSelector,\n MemoizedSelector,\n Selector,\n} from '@ngrx/store';\n\nimport { DaffState } from '../states/public_api';\nimport { DaffOperationState } from './state';\n\n/**\n * Selectors for an operation state.\n */\nexport interface DaffOperationStateSelectors<\n TRootState,\n TState extends DaffOperationState = DaffOperationState\n> {\n /**\n * Selects the loading state enum.\n */\n selectLoadingState: MemoizedSelector<TRootState, TState['daffState']>;\n /**\n * Selects whether the operation state is in any of the loading states.\n */\n selectLoading: MemoizedSelector<TRootState, boolean>;\n /**\n * Selects whether the operation state is resolving.\n */\n selectResolving: MemoizedSelector<TRootState, boolean>;\n /**\n * Selects whether the operation state is mutating.\n */\n selectMutating: MemoizedSelector<TRootState, boolean>;\n /**\n * Selects the errors in the operation state.\n */\n selectErrors: MemoizedSelector<TRootState, TState['daffErrors']>;\n /**\n * Selects whether the operation state has any errors.\n * If so, it should be considered to be in an \"error\" state.\n */\n selectHasErrors: MemoizedSelector<TRootState, boolean>;\n}\n\n/**\n * Creates a set of selectors for an operation state.\n *\n * @param selectState The feature selector for the operation state.\n */\nexport function daffOperationStateSelectorFactory <\n TRootState,\n TState extends DaffOperationState = DaffOperationState\n>(\n selectState: Selector<TRootState, TState>,\n): DaffOperationStateSelectors<TRootState, TState> {\n const selectLoadingState = createSelector(\n selectState,\n state => state.daffState,\n );\n const selectLoading = createSelector(\n selectLoadingState,\n loadingState => loadingState !== DaffState.Stable,\n );\n const selectResolving = createSelector(\n selectLoadingState,\n loadingState => loadingState === DaffState.Resolving,\n );\n const selectMutating = createSelector(\n selectLoadingState,\n loadingState => loadingState === DaffState.Mutating,\n );\n const selectErrors = createSelector(\n selectState,\n state => state.daffErrors,\n );\n const selectHasErrors = createSelector(\n selectErrors,\n errors => errors.length > 0,\n );\n\n return {\n selectLoadingState,\n selectLoading,\n selectResolving,\n selectMutating,\n selectErrors,\n selectHasErrors,\n };\n};\n","import type { EntitySelectors } from '@ngrx/entity/src/models';\nimport {\n createSelector,\n defaultMemoize,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffIdentifiable } from '@daffodil/core';\n\nimport { DaffOperationEntity } from './type';\n\n/**\n * Selectors for an operation state.\n */\nexport interface DaffOperationEntityStateSelectors<\n TRootState,\n T extends DaffIdentifiable = DaffIdentifiable\n> {\n /**\n * Selects an entity by ID.\n */\n selectEntity: (id: T['id']) => MemoizedSelector<TRootState, DaffOperationEntity<T>>;\n\n /**\n * Optimistically selects the list of entities.\n * This excludes temporary entities with errors.\n */\n selectOptimisticList: MemoizedSelector<TRootState, DaffOperationEntity<T>[]>;\n}\n\n/**\n * Creates a set of selectors for an entity operation state.\n *\n * @param selectState The feature selector for the entity operation state.\n */\nexport function daffOperationEntityStateSelectorFactory<\n TRootState,\n T extends DaffIdentifiable = DaffIdentifiable\n>(\n entitySelectors: EntitySelectors<DaffOperationEntity<T>, TRootState>,\n): DaffOperationEntityStateSelectors<TRootState, T> {\n const selectEntity: (id: T['id']) => MemoizedSelector<TRootState, DaffOperationEntity<T>>\n = defaultMemoize((id) => createSelector(\n entitySelectors.selectEntities,\n entities => entities[id],\n )).memoized;\n\n const selectOptimisticList = createSelector(\n entitySelectors.selectAll,\n (entities) => entities.filter(entity =>\n // ignore entities that are deleting\n // entity.daffState !== DaffState.Deleting &&\n // ignore placeholders with errors\n !(entity.daffTemp && entity.daffErrors.length > 0),\n ),\n );\n\n return {\n selectEntity,\n selectOptimisticList,\n };\n};\n","import {\n createEntityAdapter,\n EntityAdapter,\n} from '@ngrx/entity';\n\nimport { DaffIdentifiable } from '@daffodil/core';\n\nimport { DaffStateError } from '../../errors/public_api';\nimport { DaffState } from '../../states/public_api';\nimport {\n daffOperationEntityStateSelectorFactory,\n DaffOperationEntityStateSelectors,\n} from './selectors';\nimport { DaffOperationEntityState } from './state.type';\nimport { DaffOperationEntity } from './type';\n\n/**\n * An entity state adapter that takes care of managing contextual operation and error state for entities.\n */\nexport interface DaffOperationEntityStateAdapter<T extends DaffIdentifiable = DaffIdentifiable> {\n /**\n * Stores a list of entities in state and resets them all to stable.\n */\n list<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entities: T[], state: S): S;\n /**\n * Optimistically adds a placeholder entity into state if necessary and sets the entity to resolving.\n */\n preload<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(id: string, state: S): S;\n /**\n * Upserts the entity into state and resets operation state and errors.\n */\n load<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: T, state: S): S;\n /**\n * Adds a placeholder entity into state if `placeholderId` is specified and sets state to adding.\n */\n preadd<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: T, state: S, placeholderId?: string): S;\n /**\n * Adds the entity into state, sets operation state to added, and resets errors.\n */\n add<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: T, state: S, placeholderId?: string): S;\n /**\n * Sets the entity's operation state to mutating.\n */\n preupdate<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: Partial<T> & DaffIdentifiable, state: S): S;\n /**\n * Upserts the entity into state, sets operation state to mutated, and resets errors.\n */\n update<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: Partial<T> & DaffIdentifiable, state: S): S;\n /**\n * Sets the entity's operation state to deleting.\n */\n preremove<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, state: S): S;\n /**\n * Removes the entity from state.\n */\n remove<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, state: S): S;\n /**\n * Resets the entity's operation state and stores errors on the entity.\n */\n operationFailed<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, errors: DaffStateError[], state: S): S;\n /**\n * Resets the entity's operation state to stable.\n */\n resetState<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, state: S): S;\n /**\n * Gets an empty entity state.\n */\n getInitialState<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(state?: S): S;\n /**\n * Gets entity selectors.\n */\n getSelectors<TRootState>(selectState: (state: TRootState) => DaffOperationEntityState<T>): DaffOperationEntityStateSelectors<TRootState, T>;\n}\n\nexport function daffCreateOperationEntityStateAdapter<T extends DaffIdentifiable = DaffIdentifiable>(adapter: EntityAdapter<DaffOperationEntity<T>> = createEntityAdapter<DaffOperationEntity<T>>()): DaffOperationEntityStateAdapter<T> {\n return {\n list: (entities, state) => adapter.setAll(\n entities.map<DaffOperationEntity<T>>(entity => ({\n ...entity,\n daffState: DaffState.Stable,\n daffErrors: [],\n daffTemp: false,\n })),\n state,\n ),\n preload: (key, state) =>\n adapter.upsertOne(<DaffOperationEntity<T>>{\n // TODO: allow for non identifiable entities?\n id: key,\n daffState: DaffState.Resolving,\n daffErrors: [],\n daffTemp: !state.entities[key],\n }, state),\n load: (entity, state) =>\n adapter.upsertOne({\n ...entity,\n daffState: DaffState.Stable,\n daffErrors: [],\n daffTemp: false,\n }, state),\n preadd: (entity, state, placeholderId) =>\n placeholderId\n ? adapter.addOne({\n ...entity,\n // TODO: allow for non identifiable entities?\n id: placeholderId,\n daffState: DaffState.Adding,\n daffErrors: [],\n daffTemp: true,\n }, state)\n : state,\n add: (entity, state, placeholderId) =>\n adapter.upsertOne({\n ...entity,\n daffState: DaffState.Added,\n daffErrors: [],\n daffTemp: false,\n }, placeholderId ? adapter.removeOne(placeholderId, state) : state),\n preupdate: (entity, state) =>\n adapter.upsertOne({\n ...state.entities[entity.id],\n daffState: DaffState.Mutating,\n daffErrors: [],\n }, state),\n update: (entity, state) =>\n adapter.updateOne({\n id: entity.id,\n changes: <Partial<DaffOperationEntity<T>>>{\n ...entity,\n daffState: DaffState.Mutated,\n daffErrors: [],\n daffTemp: false,\n },\n }, state),\n preremove: (key, state) =>\n adapter.upsertOne({\n ...state.entities[key],\n daffErrors: [],\n daffState: DaffState.Deleting,\n }, state),\n remove: adapter.removeOne,\n operationFailed: (key, errors, state) =>\n adapter.upsertOne({\n ...state.entities[key],\n daffState: DaffState.Stable,\n daffErrors: errors,\n }, state),\n resetState: (key, state) =>\n adapter.upsertOne({\n ...state.entities[key],\n daffState: DaffState.Stable,\n }, state),\n getInitialState: adapter.getInitialState,\n getSelectors: <TRootState>(selectState) => daffOperationEntityStateSelectorFactory<TRootState, T>(adapter.getSelectors(selectState)),\n };\n}\n","import { DaffState } from '../../states/public_api';\n\n/**\n * Returns whether the state is one that represents an operation in progress.\n */\nexport function daffStateIsLoading(daffState: DaffState): boolean {\n return daffState === DaffState.Adding\n || daffState === DaffState.Mutating\n || daffState === DaffState.Resolving\n || daffState === DaffState.Deleting;\n}\n\n/**\n * Generate a fake ID for use with placeholder entities.\n *\n * @param key An optional key that can augment the randomly generated ID.\n * @returns A string cont\n */\nexport function daffOperationEntityCreateFakeId(key: string = ''): string {\n return `ε-${Date.now()}-${key}`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAWA,MAAM,yBAAyB,GAAG,CAAC,IAAwB,EAAE,MAAc,KAAc,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;MACxG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,KAAK,CAAC;AAChE,MAAE,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;AAoBG;AACU,MAAA,SAAS,GAAG,CAAC,QAAwB,EAAE,GAAG,WAAyB,KAAI;AAClF,IAAA,MAAM,WAAW,GAAG,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,CAAC;AACpF,IAAA,MAAM,0BAA0B,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAC1D,yBAAyB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;AAClE,UAAE;AACA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O,CAAC,SAAS,iCACZ,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CACtB,EAAA,EAAA,SAAS,EAAkB,QAAA,eAC3B,UAAU,EAAE,MAAM,EAAA,CAAA,EACjB,KAAK,CAAC;QACX,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,KACrB,OAAO,CAAC,SAAS,CACZ,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CACtB,EAAA,EAAA,SAAS,EAAkB,QAAA,eAC1B,CAAA,EAAA,KAAK,CAAC;QACX,eAAe,EAAE,OAAO,CAAC,eAAe;AACxC,QAAA,YAAY,EAAE,CAAa,WAAW,KAAK,uCAAuC,CAAgB,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;KACrI,CAAC;AACJ;;ACzJA;;AAEG;AACG,SAAU,kBAAkB,CAAC,SAAoB,EAAA;AACrD,IAAA,OAAO,SAAS,KAAqB,QAAA;WAChC,SAAS,KAAuB,UAAA;WAChC,SAAS,KAAwB,WAAA;AACjC,WAAA,SAAS,+BAAwB;AACxC,CAAC;AAED;;;;;AAKG;AACa,SAAA,+BAA+B,CAAC,GAAA,GAAc,EAAE,EAAA;IAC9D,OAAO,CAAA,EAAA,EAAK,IAAI,CAAC,GAAG,EAAE,CAAI,CAAA,EAAA,GAAG,EAAE,CAAC;AAClC;;ACpBA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"daffodil-core-state.mjs","sources":["../../../libs/core/state/src/operators/substream.pipe.ts","../../../libs/core/state/src/errors/transform-error-to-state-error.ts","../../../libs/core/state/src/reducers/create-meta.ts","../../../libs/core/state/src/reducers/identity.ts","../../../libs/core/state/src/collection/adapter.class.ts","../../../libs/core/state/src/collection/initial-state.ts","../../../libs/core/state/src/collection/selector-factory.ts","../../../libs/core/state/src/collection/facade.ts","../../../libs/core/state/src/operation/adapter.ts","../../../libs/core/state/src/operation/state.ts","../../../libs/core/state/src/operation/selectors.ts","../../../libs/core/state/src/operation/entity/selectors.ts","../../../libs/core/state/src/operation/entity/adapter.ts","../../../libs/core/state/src/operation/entity/helpers.ts","../../../libs/core/state/src/daffodil-core-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\nimport { pipe } from 'rxjs';\nimport {\n scan,\n filter,\n} from 'rxjs/operators';\n\nexport type ActionType = Action['type'];\nexport type ActionSequenceStep = ActionType | ActionType[];\nexport type ActionSequence = ActionSequenceStep[];\n\nconst compareActionSequenceStep = (step: ActionSequenceStep, action: Action): boolean => Array.isArray(step)\n ? step.reduce((acc, type) => acc || action.type === type, false)\n : action.type === step;\n\n/**\n * Watches for a particular stream of actions in the specified order and\n * emits a list of those actions once all sequence steps have been matched.\n *\n * This will find the first occurence of the substream and not necessarily the most concise or recent substream.\n * For example, substream([A, B]) encountering an action stream of [A1, A2, B1, B2] will emit [A1, B1].\n * When a substream is found and emitted, the list is reset and it will continue to listen to the action stream.\n *\n * You can indicate that a particular step in the sequence can be matched by mutiple actions by passing an array for that step.\n * For example, if the first step of the sequence could be action A or action B: substream([[A, B], C]).\n * An action stream of [A1, C1] would cause substream to emit [A1, C1].\n * An action stream of [B1, C1] would cause substream to emit [B1, C1].\n * An action stream of [A1, B1, C1] would cause substream to emit [A1, C1].\n *\n * You can optionally pass a list of terminators.\n * If a terminator is encountered in the action stream, any partially matched substream is reset.\n * For example, substream([A, B], C) would not emit anything for an action stream of [A1, C1, B1].\n *\n * @param sequence The sequence of action types that define the substream to listen for.\n * @param terminators A list of terminators, any of which interrupt and reset a partially matched substream.\n */\nexport const substream = (sequence: ActionSequence, ...terminators: ActionType[]) => {\n const isFullMatch = matchedSubstream => matchedSubstream.length === sequence.length;\n const accumulateMatchedSubstream = (matchedSubstream, action) =>\n compareActionSequenceStep(sequence[matchedSubstream.length], action)\n ? [\n ...matchedSubstream,\n action,\n ]\n : matchedSubstream;\n\n return pipe(\n scan<Action, Action[]>((matchedSubstream, action) =>\n terminators.indexOf(action.type) > -1\n // terminator found, reset the list\n ? []\n : accumulateMatchedSubstream(\n // reset the list if fully matched\n isFullMatch(matchedSubstream) ? [] : matchedSubstream,\n action,\n ),\n []),\n filter(isFullMatch),\n );\n};\n","import { DaffError } from '@daffodil/core';\n\nimport { DaffStateError } from './state-error.interface';\n\nexport type ErrorTransformer = (DaffError) => DaffStateError;\n\n/**\n * Transforms an error instance to a state error object.\n */\nexport function daffTransformErrorToStateError({ code, message, recoverable }: DaffError): DaffStateError {\n return { code, message, recoverable };\n}\n","import {\n Action,\n ActionReducer,\n} from '@ngrx/store';\n\n/**\n * Creates and returns a composite reducer that invokes each of the passed reducers in turn.\n */\nexport function daffComposeReducers<\n T,\n V extends Action = Action\n>(reducers: ActionReducer<T, V>[]): ActionReducer<T, V> {\n return (state: T, action: V): T =>\n reducers.reduce((nextState, reducer) => reducer(nextState, action), state);\n}\n","import { Action } from '@ngrx/store';\n\n/**\n * A simple reducer that simply returns the passed state.\n * This is useful for stubbing out parts of state that are not covered in an injected extra reducer map.\n */\nexport const daffIdentityReducer = <T = unknown>(state: T, action: Action): T => state;\n","import { defaultMemoize } from '@ngrx/store';\n\nimport {\n daffCollectionBuildMetadataFromRequest,\n DaffCollectionMetadata,\n DaffCollectionRequest,\n DaffFilters,\n} from '@daffodil/core';\n\n/**\n * Provides an abstracted way to manage a collection state.\n */\nexport class DaffCollectionStateAdapter<T extends DaffCollectionMetadata = DaffCollectionMetadata> {\n /**\n * Stores a collection request in state.\n * This is useful when you want to preemptively reduce a request before waiting for a response.\n */\n storeRequest(request: DaffCollectionRequest, state: T): T {\n return {\n ...state,\n ...daffCollectionBuildMetadataFromRequest(request),\n };\n }\n\n /**\n * Sets the page size.\n */\n setPageSize(size: number, state: T): T {\n return {\n ...state,\n pageSize: size,\n currentPage: 1,\n };\n }\n\n /**\n * Sets the current page.\n */\n setCurrentPage(page: number, state: T): T {\n return {\n ...state,\n currentPage: page,\n };\n }\n\n /**\n * Sets the sorting option and direction.\n */\n setSort(option: string, direction: string, state: T): T {\n return {\n ...state,\n appliedSortOption: option,\n appliedSortDirection: direction,\n };\n }\n\n /**\n * Sets the collection filters.\n */\n setFilters(filters: DaffFilters, state: T): T {\n return {\n ...state,\n currentPage: 1,\n filters: filters || {},\n };\n }\n\n /**\n * Set the entire collection metadata at once.\n */\n setMetadata(metadata: DaffCollectionMetadata, state: T): T {\n return {\n ...state,\n ids: metadata.ids,\n count: metadata.count,\n currentPage: metadata.currentPage,\n pageSize: metadata.pageSize,\n sortOptions: metadata.sortOptions,\n totalPages: metadata.totalPages,\n appliedSortOption: metadata.appliedSortOption || state.appliedSortOption,\n appliedSortDirection: metadata.appliedSortDirection || state.appliedSortDirection,\n filters: metadata.filters || {},\n };\n }\n}\n\n/**\n * Create the adapter for the collection state.\n */\nexport const getCollectionStateAdapter: <T extends DaffCollectionMetadata = DaffCollectionMetadata>() => DaffCollectionStateAdapter<T>\n = defaultMemoize(() => new DaffCollectionStateAdapter()).memoized;\n","import { DaffCollectionMetadata } from '@daffodil/core';\n\nexport const daffCollectionReducerInitialState: DaffCollectionMetadata = {\n count: 0,\n appliedSortOption: null,\n appliedSortDirection: null,\n currentPage: null,\n pageSize: null,\n totalPages: null,\n sortOptions: {\n default: null,\n options: [],\n },\n ids: [],\n filters: {},\n};\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffCollectionMetadata,\n DaffCollectionRequest,\n daffComputeAppliedFilters,\n DaffFilters,\n} from '@daffodil/core';\n\n/**\n * An interface to describe all selectors related to the collection metadata.\n */\nexport interface DaffCollectionMemoizedSelectors<\n TState,\n TMetadata extends DaffCollectionMetadata = DaffCollectionMetadata\n> {\n /**\n * Selects the metadata for the collection.\n */\n selectCollectionMetadata: MemoizedSelector<TState, TMetadata>;\n /**\n * Builds a request that matches the current collection.\n */\n selectCollectionRequest: MemoizedSelector<TState, DaffCollectionRequest>;\n /**\n * Selects the total number of items of the collection.\n */\n selectCollectionCount: MemoizedSelector<TState, TMetadata['count']>;\n /**\n * Selects the current page of items of the collection.\n */\n selectCollectionCurrentPage: MemoizedSelector<TState, TMetadata['currentPage']>;\n /**\n * Selects the total number of pages of items that exist in the collection.\n */\n selectCollectionTotalPages: MemoizedSelector<TState, TMetadata['totalPages']>;\n /**\n * Selects the number of items on each collection.\n */\n selectCollectionPageSize: MemoizedSelector<TState, TMetadata['pageSize']>;\n /**\n * Selects the sort options that may be applied to the collection.\n */\n selectCollectionSortOptions: MemoizedSelector<TState, TMetadata['sortOptions']['options']>;\n /**\n * Selects the applied sorting option if one is applied.\n */\n selectCollectionAppliedSortOption: MemoizedSelector<TState, TMetadata['appliedSortOption']>;\n /**\n * Selects the applied sorting direction if a sorting option is applied.\n */\n selectCollectionAppliedSortDirection: MemoizedSelector<TState, TMetadata['appliedSortDirection']>;\n /**\n * Selects the applied sorting direction if a sorting option is applied.\n */\n selectCollectionIds: MemoizedSelector<TState, TMetadata['ids']>;\n /**\n * Selects the filters that may be applied to the collection.\n */\n selectCollectionFilters: MemoizedSelector<TState, TMetadata['filters']>;\n /**\n * Returns a dict of filters and only their applied options.\n * Filters with no applied options will be omitted.\n */\n selectCollectionAppliedFilters: MemoizedSelector<TState, DaffFilters>;\n}\n\n/**\n * Creates collection selectors.\n *\n * @param selectCollectionState A selector for the particular collection state upon which the returned selectors should operate.\n */\nexport const daffCollectionSelectorFactory = <\n TState,\n TMetadata extends DaffCollectionMetadata = DaffCollectionMetadata\n>(\n selectCollectionState: MemoizedSelector<TState, TMetadata>,\n): DaffCollectionMemoizedSelectors<TState, TMetadata> => {\n\n const selectCollectionMetadata = createSelector(\n selectCollectionState,\n state => state,\n );\n\n const selectCollectionRequest = createSelector(\n selectCollectionMetadata,\n metadata => ({\n appliedSortOption: metadata.appliedSortOption,\n appliedSortDirection: metadata.appliedSortDirection,\n currentPage: metadata.currentPage,\n pageSize: metadata.pageSize,\n }),\n );\n\n const selectCollectionCount = createSelector(\n selectCollectionMetadata,\n state => state.count,\n );\n\n const selectCollectionCurrentPage = createSelector(\n selectCollectionMetadata,\n state => state.currentPage,\n );\n\n const selectCollectionTotalPages = createSelector(\n selectCollectionMetadata,\n state => state.totalPages,\n );\n\n const selectCollectionPageSize = createSelector(\n selectCollectionMetadata,\n state => state.pageSize,\n );\n\n const selectCollectionSortOptions = createSelector(\n selectCollectionMetadata,\n state => state.sortOptions.options,\n );\n\n const selectCollectionAppliedSortOption = createSelector(\n selectCollectionMetadata,\n state => state.appliedSortOption,\n );\n\n const selectCollectionAppliedSortDirection = createSelector(\n selectCollectionMetadata,\n state => state.appliedSortDirection,\n );\n\n const selectCollectionIds = createSelector(\n selectCollectionMetadata,\n state => state.ids,\n );\n\n const selectCollectionFilters = createSelector(\n selectCollectionMetadata,\n state => state.filters,\n );\n\n const selectCollectionAppliedFilters = createSelector(\n selectCollectionFilters,\n filters => daffComputeAppliedFilters(filters),\n );\n\n return {\n selectCollectionMetadata,\n selectCollectionRequest,\n selectCollectionCount,\n selectCollectionCurrentPage,\n selectCollectionTotalPages,\n selectCollectionPageSize,\n selectCollectionSortOptions,\n selectCollectionAppliedSortOption,\n selectCollectionAppliedSortDirection,\n selectCollectionIds,\n selectCollectionFilters,\n selectCollectionAppliedFilters,\n };\n};\n","import {\n Store,\n select,\n Action,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffCollectionMetadata,\n DaffCollectionRequest,\n DaffFilters,\n DaffSortDirectionEnum,\n DaffSortOption,\n} from '@daffodil/core';\n\nimport { DaffCollectionFacadeInterface } from './facade.interface';\nimport { DaffCollectionMemoizedSelectors } from './selector-factory';\n\n/**\n * An abstract class for a collection facade.\n * It is configurable via its constructor parameters.\n * The particular collection state from which\n * this facade will read is determined by the selectors passed.\n *\n * @inheritdoc\n */\nexport abstract class DaffCollectionFacade<\n TState,\n TMetadata extends DaffCollectionMetadata = DaffCollectionMetadata\n> implements DaffCollectionFacadeInterface<TMetadata> {\n metadata$: Observable<TMetadata>;\n request$: Observable<DaffCollectionRequest>;\n count$: Observable<number>;\n currentPage$: Observable<number>;\n totalPages$: Observable<number>;\n pageSize$: Observable<number>;\n sortOptions$: Observable<DaffSortOption[]>;\n appliedSortOption$: Observable<string>;\n appliedSortDirection$: Observable<DaffSortDirectionEnum>;\n filters$: Observable<DaffFilters>;\n appliedFilters$: Observable<DaffFilters>;\n\n constructor(\n protected store: Store<TState>,\n selectors: DaffCollectionMemoizedSelectors<TState, TMetadata>,\n ) {\n\t this.metadata$ = this.store.pipe(select(selectors.selectCollectionMetadata));\n\t this.request$ = this.store.pipe(select(selectors.selectCollectionRequest));\n\t this.count$ = this.store.pipe(select(selectors.selectCollectionCount));\n\t this.currentPage$ = this.store.pipe(select(selectors.selectCollectionCurrentPage));\n\t this.totalPages$ = this.store.pipe(select(selectors.selectCollectionTotalPages));\n\t this.pageSize$ = this.store.pipe(select(selectors.selectCollectionPageSize));\n\t this.sortOptions$ = this.store.pipe(select(selectors.selectCollectionSortOptions));\n\t this.appliedSortOption$ = this.store.pipe(select(selectors.selectCollectionAppliedSortOption));\n\t this.appliedSortDirection$ = this.store.pipe(select(selectors.selectCollectionAppliedSortDirection));\n this.filters$ = this.store.pipe(select(selectors.selectCollectionFilters));\n\t this.appliedFilters$ = this.store.pipe(select(selectors.selectCollectionAppliedFilters));\n }\n\n /**\n * Dispatches the given action.\n *\n * @param action action to dispatch.\n */\n dispatch(action: Action) {\n\t this.store.dispatch(action);\n }\n}\n","import { DaffOperationState } from './state';\nimport { DaffState } from '../states/public_api';\n\n/**\n * Puts the state in a \"resolving\" state that correspondes to loading platform data in a GET fashion.\n * Sets loading to `DaffState.Resolving`\n */\nexport function daffStartResolution <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffState: DaffState.Resolving,\n };\n};\n\n/**\n * Puts the state in a \"mutating\" state that correspondes to loading platform data in a POST or PUT fashion.\n */\nexport function daffStartMutation <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffState: DaffState.Mutating,\n };\n};\n\n/**\n * Indicates a successfully completed operation.\n * Sets loading to stable and resets errors.\n */\nexport function daffCompleteOperation <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffState: DaffState.Stable,\n daffErrors: [],\n };\n};\n\n/**\n * Indicates a failed operation.\n * Sets loading to stable and stores errors.\n */\nexport function daffOperationFailed <T extends DaffOperationState = DaffOperationState>(errors: T['daffErrors'], state: T): T {\n return {\n ...state,\n daffState: DaffState.Stable,\n daffErrors: errors,\n };\n};\n\n/**\n * Resets errors.\n */\nexport function daffClearErrors <T extends DaffOperationState = DaffOperationState>(state: T): T {\n return {\n ...state,\n daffErrors: [],\n };\n};\n","import { DaffErrorable } from '../errors/public_api';\nimport {\n DaffState,\n DaffStateable,\n} from '../states/public_api';\n\n/**\n * A basic operation state.\n * Represents the current state of an operation and any associated errors.\n */\nexport interface DaffOperationState extends DaffErrorable, DaffStateable {}\n\nexport const daffOperationInitialState: DaffOperationState = {\n daffState: DaffState.Stable,\n daffErrors: [],\n};\n","import {\n createSelector,\n MemoizedSelector,\n Selector,\n} from '@ngrx/store';\n\nimport { DaffOperationState } from './state';\nimport { DaffState } from '../states/public_api';\n\n/**\n * Selectors for an operation state.\n */\nexport interface DaffOperationStateSelectors<\n TRootState,\n TState extends DaffOperationState = DaffOperationState\n> {\n /**\n * Selects the loading state enum.\n */\n selectLoadingState: MemoizedSelector<TRootState, TState['daffState']>;\n /**\n * Selects whether the operation state is in any of the loading states.\n */\n selectLoading: MemoizedSelector<TRootState, boolean>;\n /**\n * Selects whether the operation state is resolving.\n */\n selectResolving: MemoizedSelector<TRootState, boolean>;\n /**\n * Selects whether the operation state is mutating.\n */\n selectMutating: MemoizedSelector<TRootState, boolean>;\n /**\n * Selects the errors in the operation state.\n */\n selectErrors: MemoizedSelector<TRootState, TState['daffErrors']>;\n /**\n * Selects whether the operation state has any errors.\n * If so, it should be considered to be in an \"error\" state.\n */\n selectHasErrors: MemoizedSelector<TRootState, boolean>;\n}\n\n/**\n * Creates a set of selectors for an operation state.\n *\n * @param selectState The feature selector for the operation state.\n */\nexport function daffOperationStateSelectorFactory <\n TRootState,\n TState extends DaffOperationState = DaffOperationState\n>(\n selectState: Selector<TRootState, TState>,\n): DaffOperationStateSelectors<TRootState, TState> {\n const selectLoadingState = createSelector(\n selectState,\n state => state.daffState,\n );\n const selectLoading = createSelector(\n selectLoadingState,\n loadingState => loadingState !== DaffState.Stable,\n );\n const selectResolving = createSelector(\n selectLoadingState,\n loadingState => loadingState === DaffState.Resolving,\n );\n const selectMutating = createSelector(\n selectLoadingState,\n loadingState => loadingState === DaffState.Mutating,\n );\n const selectErrors = createSelector(\n selectState,\n state => state.daffErrors,\n );\n const selectHasErrors = createSelector(\n selectErrors,\n errors => errors.length > 0,\n );\n\n return {\n selectLoadingState,\n selectLoading,\n selectResolving,\n selectMutating,\n selectErrors,\n selectHasErrors,\n };\n};\n","import type { EntitySelectors } from '@ngrx/entity/src/models';\nimport {\n createSelector,\n defaultMemoize,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffIdentifiable } from '@daffodil/core';\n\nimport { DaffOperationEntity } from './type';\n\n/**\n * Selectors for an operation state.\n */\nexport interface DaffOperationEntityStateSelectors<\n TRootState,\n T extends DaffIdentifiable = DaffIdentifiable\n> {\n /**\n * Selects an entity by ID.\n */\n selectEntity: (id: T['id']) => MemoizedSelector<TRootState, DaffOperationEntity<T>>;\n\n /**\n * Optimistically selects the list of entities.\n * This excludes temporary entities with errors.\n */\n selectOptimisticList: MemoizedSelector<TRootState, DaffOperationEntity<T>[]>;\n}\n\n/**\n * Creates a set of selectors for an entity operation state.\n *\n * @param selectState The feature selector for the entity operation state.\n */\nexport function daffOperationEntityStateSelectorFactory<\n TRootState,\n T extends DaffIdentifiable = DaffIdentifiable\n>(\n entitySelectors: EntitySelectors<DaffOperationEntity<T>, TRootState>,\n): DaffOperationEntityStateSelectors<TRootState, T> {\n const selectEntity: (id: T['id']) => MemoizedSelector<TRootState, DaffOperationEntity<T>>\n = defaultMemoize((id) => createSelector(\n entitySelectors.selectEntities,\n entities => entities[id],\n )).memoized;\n\n const selectOptimisticList = createSelector(\n entitySelectors.selectAll,\n (entities) => entities.filter(entity =>\n // ignore entities that are deleting\n // entity.daffState !== DaffState.Deleting &&\n // ignore placeholders with errors\n !(entity.daffTemp && entity.daffErrors.length > 0),\n ),\n );\n\n return {\n selectEntity,\n selectOptimisticList,\n };\n};\n","import {\n createEntityAdapter,\n EntityAdapter,\n} from '@ngrx/entity';\n\nimport { DaffIdentifiable } from '@daffodil/core';\n\nimport {\n daffOperationEntityStateSelectorFactory,\n DaffOperationEntityStateSelectors,\n} from './selectors';\nimport { DaffOperationEntityState } from './state.type';\nimport { DaffOperationEntity } from './type';\nimport { DaffStateError } from '../../errors/public_api';\nimport { DaffState } from '../../states/public_api';\n\n/**\n * An entity state adapter that takes care of managing contextual operation and error state for entities.\n */\nexport interface DaffOperationEntityStateAdapter<T extends DaffIdentifiable = DaffIdentifiable> {\n /**\n * Stores a list of entities in state and resets them all to stable.\n */\n list<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entities: T[], state: S): S;\n /**\n * Optimistically adds a placeholder entity into state if necessary and sets the entity to resolving.\n */\n preload<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(id: string, state: S): S;\n /**\n * Upserts the entity into state and resets operation state and errors.\n */\n load<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: T, state: S): S;\n /**\n * Adds a placeholder entity into state if `placeholderId` is specified and sets state to adding.\n */\n preadd<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: T, state: S, placeholderId?: string): S;\n /**\n * Adds the entity into state, sets operation state to added, and resets errors.\n */\n add<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: T, state: S, placeholderId?: string): S;\n /**\n * Sets the entity's operation state to mutating.\n */\n preupdate<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: Partial<T> & DaffIdentifiable, state: S): S;\n /**\n * Upserts the entity into state, sets operation state to mutated, and resets errors.\n */\n update<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(entity: Partial<T> & DaffIdentifiable, state: S): S;\n /**\n * Sets the entity's operation state to deleting.\n */\n preremove<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, state: S): S;\n /**\n * Removes the entity from state.\n */\n remove<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, state: S): S;\n /**\n * Resets the entity's operation state and stores errors on the entity.\n */\n operationFailed<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, errors: DaffStateError[], state: S): S;\n /**\n * Resets the entity's operation state to stable.\n */\n resetState<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(key: string, state: S): S;\n /**\n * Gets an empty entity state.\n */\n getInitialState<S extends DaffOperationEntityState<T> = DaffOperationEntityState<T>>(state?: S): S;\n /**\n * Gets entity selectors.\n */\n getSelectors<TRootState>(selectState: (state: TRootState) => DaffOperationEntityState<T>): DaffOperationEntityStateSelectors<TRootState, T>;\n}\n\nexport function daffCreateOperationEntityStateAdapter<T extends DaffIdentifiable = DaffIdentifiable>(adapter: EntityAdapter<DaffOperationEntity<T>> = createEntityAdapter<DaffOperationEntity<T>>()): DaffOperationEntityStateAdapter<T> {\n return {\n list: (entities, state) => adapter.setAll(\n entities.map<DaffOperationEntity<T>>(entity => ({\n ...entity,\n daffState: DaffState.Stable,\n daffErrors: [],\n daffTemp: false,\n })),\n state,\n ),\n preload: (key, state) =>\n adapter.upsertOne(<DaffOperationEntity<T>>{\n // TODO: allow for non identifiable entities?\n id: key,\n daffState: DaffState.Resolving,\n daffErrors: [],\n daffTemp: !state.entities[key],\n }, state),\n load: (entity, state) =>\n adapter.upsertOne({\n ...entity,\n daffState: DaffState.Stable,\n daffErrors: [],\n daffTemp: false,\n }, state),\n preadd: (entity, state, placeholderId) =>\n placeholderId\n ? adapter.addOne({\n ...entity,\n // TODO: allow for non identifiable entities?\n id: placeholderId,\n daffState: DaffState.Adding,\n daffErrors: [],\n daffTemp: true,\n }, state)\n : state,\n add: (entity, state, placeholderId) =>\n adapter.upsertOne({\n ...entity,\n daffState: DaffState.Added,\n daffErrors: [],\n daffTemp: false,\n }, placeholderId ? adapter.removeOne(placeholderId, state) : state),\n preupdate: (entity, state) =>\n adapter.upsertOne({\n ...state.entities[entity.id],\n daffState: DaffState.Mutating,\n daffErrors: [],\n }, state),\n update: (entity, state) =>\n adapter.updateOne({\n id: entity.id,\n changes: <Partial<DaffOperationEntity<T>>>{\n ...entity,\n daffState: DaffState.Mutated,\n daffErrors: [],\n daffTemp: false,\n },\n }, state),\n preremove: (key, state) =>\n adapter.upsertOne({\n ...state.entities[key],\n daffErrors: [],\n daffState: DaffState.Deleting,\n }, state),\n remove: adapter.removeOne,\n operationFailed: (key, errors, state) =>\n adapter.upsertOne({\n ...state.entities[key],\n daffState: DaffState.Stable,\n daffErrors: errors,\n }, state),\n resetState: (key, state) =>\n adapter.upsertOne({\n ...state.entities[key],\n daffState: DaffState.Stable,\n }, state),\n getInitialState: adapter.getInitialState,\n getSelectors: <TRootState>(selectState) => daffOperationEntityStateSelectorFactory<TRootState, T>(adapter.getSelectors(selectState)),\n };\n}\n","import { DaffState } from '../../states/public_api';\n\n/**\n * Returns whether the state is one that represents an operation in progress.\n */\nexport function daffStateIsLoading(daffState: DaffState): boolean {\n return daffState === DaffState.Adding\n || daffState === DaffState.Mutating\n || daffState === DaffState.Resolving\n || daffState === DaffState.Deleting;\n}\n\n/**\n * Generate a fake ID for use with placeholder entities.\n *\n * @param key An optional key that can augment the randomly generated ID.\n * @returns A string cont\n */\nexport function daffOperationEntityCreateFakeId(key: string = ''): string {\n return `ε-${Date.now()}-${key}`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAWA,MAAM,yBAAyB,GAAG,CAAC,IAAwB,EAAE,MAAc,KAAc,KAAK,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wB,WAAA;AACjC,WAAA,SAAS,yCAAwB;AACxC,CAAC;AAED;;;;;AAKG;AACa,SAAA,+BAA+B,CAAC,GAAA,GAAc,EAAE,EAAA;IAC9D,OAAO,CAAA,EAAA,EAAK,IAAI,CAAC,GAAG,EAAE,CAAI,CAAA,EAAA,GAAG,EAAE,CAAC;AAClC;;ACpBA;;AAEG;;;;"}
|
|
@@ -13,19 +13,19 @@ class DaffMockCurrencyPipe {
|
|
|
13
13
|
transform(value) { }
|
|
14
14
|
;
|
|
15
15
|
}
|
|
16
|
-
/** @nocollapse */ DaffMockCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
/** @nocollapse */ DaffMockCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
19
|
type: Pipe,
|
|
20
20
|
args: [{ name: 'currency' }]
|
|
21
21
|
}] });
|
|
22
22
|
|
|
23
23
|
class DaffCoreTestingModule {
|
|
24
24
|
}
|
|
25
|
-
/** @nocollapse */ DaffCoreTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
/** @nocollapse */ DaffCoreTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
27
|
-
/** @nocollapse */ DaffCoreTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
29
|
type: NgModule,
|
|
30
30
|
args: [{
|
|
31
31
|
declarations: [
|
|
@@ -109,9 +109,9 @@ class DaffAddressFactory extends DaffModelFactory {
|
|
|
109
109
|
super(MockDaffAddress);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
/** @nocollapse */ DaffAddressFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
113
|
-
/** @nocollapse */ DaffAddressFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
115
|
type: Injectable,
|
|
116
116
|
args: [{
|
|
117
117
|
providedIn: 'root',
|
|
@@ -128,9 +128,9 @@ class DaffIdentifiableFactory extends DaffModelFactory {
|
|
|
128
128
|
super(MockDaffIdentifiable);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
/** @nocollapse */ DaffIdentifiableFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
/** @nocollapse */ DaffIdentifiableFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
134
|
type: Injectable,
|
|
135
135
|
args: [{
|
|
136
136
|
providedIn: 'root',
|
|
@@ -149,9 +149,9 @@ class DaffNumericallyPaginableFactory extends DaffModelFactory {
|
|
|
149
149
|
super(MockDaffNumericallyPaginable);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
/** @nocollapse */ DaffNumericallyPaginableFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
153
|
-
/** @nocollapse */ DaffNumericallyPaginableFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
155
|
type: Injectable,
|
|
156
156
|
args: [{
|
|
157
157
|
providedIn: 'root',
|
|
@@ -169,9 +169,9 @@ class DaffSortOptionFactory extends DaffModelFactory {
|
|
|
169
169
|
super(MockDaffSortOption);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
/** @nocollapse */ DaffSortOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
173
|
-
/** @nocollapse */ DaffSortOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
175
|
type: Injectable,
|
|
176
176
|
args: [{
|
|
177
177
|
providedIn: 'root',
|
|
@@ -193,9 +193,9 @@ class DaffSortOptionsFactory extends DaffModelFactory {
|
|
|
193
193
|
super(MockDaffSortOptions, optionFactory);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
/** @nocollapse */ DaffSortOptionsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
197
|
-
/** @nocollapse */ DaffSortOptionsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
199
|
type: Injectable,
|
|
200
200
|
args: [{
|
|
201
201
|
providedIn: 'root',
|
|
@@ -218,9 +218,9 @@ class DaffSortableFactory extends DaffModelFactory {
|
|
|
218
218
|
super(MockDaffSortable, optionFactory);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
/** @nocollapse */ DaffSortableFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
222
|
-
/** @nocollapse */ DaffSortableFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
224
|
type: Injectable,
|
|
225
225
|
args: [{
|
|
226
226
|
providedIn: 'root',
|
|
@@ -243,9 +243,9 @@ class DaffFilterEqualFactory extends DaffModelFactory {
|
|
|
243
243
|
super(MockFilterEqual);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
/** @nocollapse */ DaffFilterEqualFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
247
|
-
/** @nocollapse */ DaffFilterEqualFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
249
|
type: Injectable,
|
|
250
250
|
args: [{
|
|
251
251
|
providedIn: 'root',
|
|
@@ -270,9 +270,9 @@ class DaffFilterRangeNumericFactory extends DaffModelFactory {
|
|
|
270
270
|
super(MockFilterRangeNumeric);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
/** @nocollapse */ DaffFilterRangeNumericFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
274
|
-
/** @nocollapse */ DaffFilterRangeNumericFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
276
|
type: Injectable,
|
|
277
277
|
args: [{
|
|
278
278
|
providedIn: 'root',
|
|
@@ -308,9 +308,9 @@ class DaffFilterFactory extends DaffModelFactory {
|
|
|
308
308
|
return Object.assign(Object.assign({}, new this.type()), factory.create(partial));
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
/** @nocollapse */ DaffFilterFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
312
|
-
/** @nocollapse */ DaffFilterFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
314
|
type: Injectable,
|
|
315
315
|
args: [{
|
|
316
316
|
providedIn: 'root',
|
|
@@ -332,9 +332,9 @@ class DaffFilterRequestEqualFactory extends DaffModelFactory {
|
|
|
332
332
|
super(MockDaffFilterEqualRequest);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
/** @nocollapse */ DaffFilterRequestEqualFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
336
|
-
/** @nocollapse */ DaffFilterRequestEqualFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
338
|
type: Injectable,
|
|
339
339
|
args: [{
|
|
340
340
|
providedIn: 'root',
|
|
@@ -355,9 +355,9 @@ class DaffFilterRangeNumericRequestOptionFactory extends DaffModelFactory {
|
|
|
355
355
|
super(MockDaffFilterRangeNumericRequestOption);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
/** @nocollapse */ DaffFilterRangeNumericRequestOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
359
|
-
/** @nocollapse */ DaffFilterRangeNumericRequestOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
361
|
type: Injectable,
|
|
362
362
|
args: [{
|
|
363
363
|
providedIn: 'root',
|
|
@@ -382,9 +382,9 @@ class DaffFilterRequestRangeNumericFactory extends DaffModelFactory {
|
|
|
382
382
|
return Object.assign(Object.assign(Object.assign({}, new this.type()), { value: this.option.create() }), partial);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
/** @nocollapse */ DaffFilterRequestRangeNumericFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
386
|
-
/** @nocollapse */ DaffFilterRequestRangeNumericFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
388
|
type: Injectable,
|
|
389
389
|
args: [{
|
|
390
390
|
providedIn: 'root',
|
|
@@ -399,9 +399,9 @@ class DaffFilterRequestFactory extends DaffModelFactory {
|
|
|
399
399
|
super(faker.datatype.number({ min: 1, max: 2 }) === 2 ? equalFactory.type : rangeFactory.type);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
/** @nocollapse */ DaffFilterRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
403
|
-
/** @nocollapse */ DaffFilterRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
405
|
type: Injectable,
|
|
406
406
|
args: [{
|
|
407
407
|
providedIn: 'root',
|
|
@@ -423,9 +423,9 @@ class DaffFilterToggleRequestEqualFactory extends DaffModelFactory {
|
|
|
423
423
|
super(MockDaffFilterToggleEqualRequest);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
/** @nocollapse */ DaffFilterToggleRequestEqualFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
427
|
-
/** @nocollapse */ DaffFilterToggleRequestEqualFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
429
|
type: Injectable,
|
|
430
430
|
args: [{
|
|
431
431
|
providedIn: 'root',
|
|
@@ -450,9 +450,9 @@ class DaffFilterToggleRequestRangeNumericFactory extends DaffModelFactory {
|
|
|
450
450
|
return Object.assign(Object.assign(Object.assign({}, new this.type()), { value: this.option.create() }), partial);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
/** @nocollapse */ DaffFilterToggleRequestRangeNumericFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
454
|
-
/** @nocollapse */ DaffFilterToggleRequestRangeNumericFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
456
|
type: Injectable,
|
|
457
457
|
args: [{
|
|
458
458
|
providedIn: 'root',
|
|
@@ -474,9 +474,9 @@ class DaffFilterToggleRequestFactory extends DaffModelFactory {
|
|
|
474
474
|
return Object.assign(Object.assign({}, new this.type()), faker.datatype.number({ min: 1, max: 2 }) === 2 ? this.equalFactory.create() : this.rangeFactory.create());
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
/** @nocollapse */ DaffFilterToggleRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
478
|
-
/** @nocollapse */ DaffFilterToggleRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
480
|
type: Injectable,
|
|
481
481
|
args: [{
|
|
482
482
|
providedIn: 'root',
|
|
@@ -499,9 +499,9 @@ class DaffFilterEqualOptionFactory extends DaffModelFactory {
|
|
|
499
499
|
super(MockDaffFilterEqualOption);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
/** @nocollapse */ DaffFilterEqualOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
503
|
-
/** @nocollapse */ DaffFilterEqualOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
505
|
type: Injectable,
|
|
506
506
|
args: [{
|
|
507
507
|
providedIn: 'root',
|
|
@@ -522,9 +522,9 @@ class DaffFilterRangeNumericOptionFactory extends DaffModelFactory {
|
|
|
522
522
|
super(MockFilterRangeNumericOption);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
/** @nocollapse */ DaffFilterRangeNumericOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
526
|
-
/** @nocollapse */ DaffFilterRangeNumericOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
528
|
type: Injectable,
|
|
529
529
|
args: [{
|
|
530
530
|
providedIn: 'root',
|
|
@@ -548,9 +548,9 @@ class DaffFilterRangeNumericPairFactory extends DaffModelFactory {
|
|
|
548
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
549
|
}
|
|
550
550
|
}
|
|
551
|
-
/** @nocollapse */ DaffFilterRangeNumericPairFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
552
|
-
/** @nocollapse */ DaffFilterRangeNumericPairFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
554
|
type: Injectable,
|
|
555
555
|
args: [{
|
|
556
556
|
providedIn: 'root',
|
|
@@ -583,9 +583,9 @@ class DaffCollectionMetadataFactory extends DaffModelFactory {
|
|
|
583
583
|
super(MockCollectionMetadata, pageInfoFactory, sortFieldsFactory, filterFactory);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
/** @nocollapse */ DaffCollectionMetadataFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
587
|
-
/** @nocollapse */ DaffCollectionMetadataFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
589
|
type: Injectable,
|
|
590
590
|
args: [{
|
|
591
591
|
providedIn: 'root',
|
|
@@ -616,9 +616,9 @@ class DaffCollectionRequestFactory extends DaffModelFactory {
|
|
|
616
616
|
super(MockCollectionRequest, filterRequestFactory);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
/** @nocollapse */ DaffCollectionRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
620
|
-
/** @nocollapse */ DaffCollectionRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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
622
|
type: Injectable,
|
|
623
623
|
args: [{
|
|
624
624
|
providedIn: 'root',
|