@daffodil/core 0.80.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constructable/constructable.d.ts +1 -1
- package/external-script/external-script.service.d.ts +1 -1
- package/external-script/script.d.ts +1 -2
- package/external-script/testing/external-script.service.d.ts +1 -4
- package/fesm2022/daffodil-core-external-script-testing.mjs +4 -7
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-external-script.mjs +4 -4
- 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 +3 -3
- 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 +3 -3
- package/fesm2022/daffodil-core-state.mjs.map +1 -1
- package/fesm2022/daffodil-core-testing.mjs +73 -106
- package/fesm2022/daffodil-core-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core.mjs +104 -19
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/merge/merge.d.ts +64 -0
- package/merge/mergers/array-concat.d.ts +1 -0
- package/merge/mergers/dict-assign.d.ts +1 -0
- package/merge/mergers/public_api.d.ts +3 -0
- package/merge/mergers/type.d.ts +4 -0
- package/merge/public_api.d.ts +3 -0
- package/merge/strategy.type.d.ts +8 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/state/states/mutable-loading.d.ts +1 -1
- package/state/states/state.enum.d.ts +0 -15
- package/testing/factories/factory.d.ts +1 -3
- package/testing/factories/public_api.d.ts +0 -1
- package/address/address.d.ts +0 -13
- package/esm2022/address/address.mjs +0 -2
- package/esm2022/async/maybe.type.mjs +0 -2
- package/esm2022/base64/base64.interface.mjs +0 -20
- package/esm2022/base64/browser/browser.service.mjs +0 -31
- package/esm2022/base64/public_api.mjs +0 -4
- package/esm2022/base64/server/public_api.mjs +0 -2
- package/esm2022/base64/server/server.service.mjs +0 -33
- package/esm2022/canonically-locateable/canonically-locateable.interface.mjs +0 -2
- package/esm2022/collection/build-metadata.mjs +0 -16
- package/esm2022/collection/build-request.mjs +0 -12
- package/esm2022/collection/collection.interface.mjs +0 -2
- package/esm2022/collection/countable.interface.mjs +0 -2
- package/esm2022/collection/error-map.mjs +0 -5
- package/esm2022/collection/metadata.interface.mjs +0 -2
- package/esm2022/collection/page-out-of-bounds.error.mjs +0 -12
- package/esm2022/collection/paginable.mjs +0 -2
- package/esm2022/collection/public_api.mjs +0 -11
- package/esm2022/collection/request.interface.mjs +0 -2
- package/esm2022/collection/sortable.mjs +0 -11
- package/esm2022/constructable/constructable.mjs +0 -2
- package/esm2022/daffodil-core.mjs +0 -5
- package/esm2022/errors/error-map.mjs +0 -2
- package/esm2022/errors/error.interface.mjs +0 -2
- package/esm2022/errors/inheritable-error.mjs +0 -26
- package/esm2022/errors/is-error.mjs +0 -6
- package/esm2022/errors/public_api.mjs +0 -3
- package/esm2022/external-script/daffodil-core-external-script.mjs +0 -5
- package/esm2022/external-script/external-script.service.mjs +0 -90
- package/esm2022/external-script/index.mjs +0 -2
- package/esm2022/external-script/interface.mjs +0 -2
- package/esm2022/external-script/public_api.mjs +0 -2
- package/esm2022/external-script/script.mjs +0 -2
- package/esm2022/external-script/testing/constants.mjs +0 -2
- package/esm2022/external-script/testing/daffodil-core-external-script-testing.mjs +0 -5
- package/esm2022/external-script/testing/external-script.service.mjs +0 -53
- package/esm2022/external-script/testing/index.mjs +0 -2
- package/esm2022/external-script/testing/public_api.mjs +0 -2
- package/esm2022/filterable/filter-base.mjs +0 -2
- package/esm2022/filterable/filter-option-base.mjs +0 -2
- package/esm2022/filterable/filter-option.mjs +0 -2
- package/esm2022/filterable/filter-request.mjs +0 -2
- package/esm2022/filterable/filter-toggle-request.mjs +0 -2
- package/esm2022/filterable/filter.mjs +0 -2
- package/esm2022/filterable/filterable.mjs +0 -2
- package/esm2022/filterable/filters.type.mjs +0 -2
- package/esm2022/filterable/public_api.mjs +0 -5
- package/esm2022/filterable/type/equal/filter.mjs +0 -2
- package/esm2022/filterable/type/equal/option.mjs +0 -2
- package/esm2022/filterable/type/equal/public_api.mjs +0 -2
- package/esm2022/filterable/type/equal/request.mjs +0 -2
- package/esm2022/filterable/type/equal/toggle-request.mjs +0 -2
- package/esm2022/filterable/type/filter-type.mjs +0 -9
- package/esm2022/filterable/type/range/filter-base.mjs +0 -2
- package/esm2022/filterable/type/range/option.mjs +0 -2
- package/esm2022/filterable/type/range/pair.mjs +0 -2
- package/esm2022/filterable/type/range/public_api.mjs +0 -2
- package/esm2022/filterable/type/range/request-base.mjs +0 -2
- package/esm2022/filterable/type/range/request-option.mjs +0 -2
- package/esm2022/filterable/type/range/separator.mjs +0 -6
- package/esm2022/filterable/type/range-numeric/filter.mjs +0 -2
- package/esm2022/filterable/type/range-numeric/public_api.mjs +0 -2
- package/esm2022/filterable/type/range-numeric/request.mjs +0 -2
- package/esm2022/filterable/type/range-numeric/toggle-request.mjs +0 -2
- package/esm2022/filters/array-to-dict/array-to-dict.mjs +0 -6
- package/esm2022/filters/behaviors/apply/apply-filter.mjs +0 -24
- package/esm2022/filters/behaviors/apply/apply-request-to-filters.mjs +0 -12
- package/esm2022/filters/behaviors/apply/apply-requests-to-filters.mjs +0 -12
- package/esm2022/filters/behaviors/apply/public_api.mjs +0 -4
- package/esm2022/filters/behaviors/clear/clear-filter.mjs +0 -21
- package/esm2022/filters/behaviors/clear/clear-filters.mjs +0 -12
- package/esm2022/filters/behaviors/clear/public_api.mjs +0 -3
- package/esm2022/filters/behaviors/remove/public_api.mjs +0 -4
- package/esm2022/filters/behaviors/remove/remove-filter.mjs +0 -25
- package/esm2022/filters/behaviors/remove/remove-request-from-filters.mjs +0 -12
- package/esm2022/filters/behaviors/remove/remove-requests-from-filters.mjs +0 -13
- package/esm2022/filters/behaviors/toggle/public_api.mjs +0 -3
- package/esm2022/filters/behaviors/toggle/toggle-request-on-filters.mjs +0 -10
- package/esm2022/filters/behaviors/toggle/toggle.mjs +0 -22
- package/esm2022/filters/compute-applied-filters/compute-applied-filters.mjs +0 -21
- package/esm2022/filters/errors/codes.enum.mjs +0 -11
- package/esm2022/filters/errors/filter-not-found.error.mjs +0 -12
- package/esm2022/filters/errors/public_api.mjs +0 -5
- package/esm2022/filters/errors/request-name-mismatch.error.mjs +0 -13
- package/esm2022/filters/errors/request-type-mismatch.error.mjs +0 -13
- package/esm2022/filters/errors/unknown-filter-type.error.mjs +0 -13
- package/esm2022/filters/find-applied/find-applied-options.mjs +0 -5
- package/esm2022/filters/find-applied/public_api.mjs +0 -2
- package/esm2022/filters/is-applied/is-filter-applied.mjs +0 -18
- package/esm2022/filters/is-applied/is-toggle-request-applied-to-filter.mjs +0 -18
- package/esm2022/filters/is-applied/public_api.mjs +0 -3
- package/esm2022/filters/public_api.mjs +0 -14
- package/esm2022/filters/to-request/filter-to-request.mjs +0 -20
- package/esm2022/filters/to-request/filters-to-requests.mjs +0 -15
- package/esm2022/filters/to-request/public_api.mjs +0 -3
- package/esm2022/filters/type/equal/array-to-dict/option.mjs +0 -6
- package/esm2022/filters/type/equal/behaviors/apply/apply.mjs +0 -20
- package/esm2022/filters/type/equal/behaviors/clear/clear.mjs +0 -17
- package/esm2022/filters/type/equal/behaviors/remove/remove.mjs +0 -23
- package/esm2022/filters/type/equal/behaviors/toggle/toggle.mjs +0 -24
- package/esm2022/filters/type/equal/is-applied/is-applied.mjs +0 -5
- package/esm2022/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.mjs +0 -5
- package/esm2022/filters/type/equal/public_api.mjs +0 -2
- package/esm2022/filters/type/equal/to-request/filter-to-request.mjs +0 -17
- package/esm2022/filters/type/range/array-to-dict/pair.mjs +0 -7
- package/esm2022/filters/type/range/behaviors/apply/apply.mjs +0 -24
- package/esm2022/filters/type/range/behaviors/clear/clear.mjs +0 -11
- package/esm2022/filters/type/range/behaviors/remove/remove.mjs +0 -17
- package/esm2022/filters/type/range/behaviors/toggle/toggle.mjs +0 -15
- package/esm2022/filters/type/range/compute-pair-label.mjs +0 -3
- package/esm2022/filters/type/range/is-applied/is-applied.mjs +0 -5
- package/esm2022/filters/type/range/is-applied/is-toggle-request-applied-to-filter.mjs +0 -6
- package/esm2022/filters/type/range/public_api.mjs +0 -3
- package/esm2022/filters/type/range/to-request/filter-to-request.mjs +0 -19
- package/esm2022/filters/type/range-numeric/to-request/filter-to-request.mjs +0 -6
- package/esm2022/filters/validators/public_api.mjs +0 -3
- package/esm2022/filters/validators/request-name-match.mjs +0 -16
- package/esm2022/filters/validators/request-type-match.mjs +0 -12
- package/esm2022/graphql/apollo/cacheable-operations/cacheable-operations-link.interface.mjs +0 -2
- package/esm2022/graphql/apollo/public_api.mjs +0 -2
- package/esm2022/graphql/apollo/queued-apollo/queued-apollo.service.mjs +0 -68
- package/esm2022/graphql/daffodil-core-graphql.mjs +0 -5
- package/esm2022/graphql/fragments/build-fragment-definition.mjs +0 -8
- package/esm2022/graphql/fragments/build-fragment-name-spread.mjs +0 -25
- package/esm2022/graphql/fragments/public_api.mjs +0 -3
- package/esm2022/graphql/index.mjs +0 -2
- package/esm2022/graphql/public_api.mjs +0 -3
- package/esm2022/identifiable/array-to-dict.mjs +0 -6
- package/esm2022/identifiable/identifiable.interface.mjs +0 -2
- package/esm2022/identifiable/public_api.mjs +0 -2
- package/esm2022/index.mjs +0 -2
- package/esm2022/injection-tokens/config.factory.mjs +0 -24
- package/esm2022/injection-tokens/config.type.mjs +0 -2
- package/esm2022/injection-tokens/multi.factory.mjs +0 -25
- package/esm2022/injection-tokens/multi.type.mjs +0 -2
- package/esm2022/injection-tokens/public_api.mjs +0 -11
- package/esm2022/injection-tokens/services.factory.mjs +0 -25
- package/esm2022/injection-tokens/services.type.mjs +0 -2
- package/esm2022/injection-tokens/single.factory.mjs +0 -18
- package/esm2022/injection-tokens/single.type.mjs +0 -2
- package/esm2022/injection-tokens/singleton.factory.mjs +0 -18
- package/esm2022/injection-tokens/singleton.type.mjs +0 -2
- package/esm2022/injection-tokens/token-constuctor-params.type.mjs +0 -2
- package/esm2022/kindable/kindable.interface.mjs +0 -2
- package/esm2022/kindable/public_api.mjs +0 -2
- package/esm2022/locateable/locateable.interface.mjs +0 -2
- package/esm2022/operators/all-of.pipe.mjs +0 -7
- package/esm2022/operators/any-of.pipe.mjs +0 -7
- package/esm2022/operators/backoff.pipe.mjs +0 -17
- package/esm2022/operators/catch-and-arrayify-errors.pipe.mjs +0 -6
- package/esm2022/operators/public_api.mjs +0 -5
- package/esm2022/orderable/orderable.mjs +0 -2
- package/esm2022/public_api.mjs +0 -13
- package/esm2022/routing/daffodil-core-routing.mjs +0 -5
- package/esm2022/routing/index.mjs +0 -2
- package/esm2022/routing/public_api.mjs +0 -4
- package/esm2022/routing/query-param-filter/public_api.mjs +0 -2
- package/esm2022/routing/query-param-filter/request-builder/equal.mjs +0 -10
- package/esm2022/routing/query-param-filter/request-builder/public_api.mjs +0 -2
- package/esm2022/routing/query-param-filter/request-builder/type.mjs +0 -2
- package/esm2022/routing/query-param-filter/type.mjs +0 -2
- package/esm2022/routing/reducers/clear-errors/navigated-entity-reducer-factory.mjs +0 -19
- package/esm2022/routing/reducers/clear-errors/navigated.reducer.mjs +0 -16
- package/esm2022/routing/reducers/clear-errors/public_api.mjs +0 -3
- package/esm2022/routing/reducers/public_api.mjs +0 -2
- package/esm2022/routing/uri/normalizer.service.mjs +0 -38
- package/esm2022/routing/uri/public_api.mjs +0 -3
- package/esm2022/routing/uri/truncation/file-extension.mjs +0 -10
- package/esm2022/routing/uri/truncation/leading-path-segments.mjs +0 -6
- package/esm2022/routing/uri/truncation/leading-slash.mjs +0 -12
- package/esm2022/routing/uri/truncation/public_api.mjs +0 -5
- package/esm2022/routing/uri/truncation/query-fragment.mjs +0 -11
- package/esm2022/state/actions/failure.type.mjs +0 -2
- package/esm2022/state/actions/public_api.mjs +0 -2
- package/esm2022/state/collection/actions.mjs +0 -2
- package/esm2022/state/collection/adapter.class.mjs +0 -78
- package/esm2022/state/collection/facade.interface.mjs +0 -2
- package/esm2022/state/collection/facade.mjs +0 -34
- package/esm2022/state/collection/initial-state.mjs +0 -15
- package/esm2022/state/collection/public_api.mjs +0 -7
- package/esm2022/state/collection/selector-factory.mjs +0 -41
- package/esm2022/state/daffodil-core-state.mjs +0 -5
- package/esm2022/state/errors/errorable.type.mjs +0 -2
- package/esm2022/state/errors/public_api.mjs +0 -2
- package/esm2022/state/errors/state-error.interface.mjs +0 -2
- package/esm2022/state/errors/transform-error-to-state-error.mjs +0 -7
- package/esm2022/state/index.mjs +0 -2
- package/esm2022/state/operation/adapter.mjs +0 -56
- package/esm2022/state/operation/entity/adapter.mjs +0 -106
- package/esm2022/state/operation/entity/helpers/create-fake-id.mjs +0 -10
- package/esm2022/state/operation/entity/public_api.mjs +0 -4
- package/esm2022/state/operation/entity/selectors.mjs +0 -21
- package/esm2022/state/operation/entity/state.type.mjs +0 -2
- package/esm2022/state/operation/entity/type.mjs +0 -2
- package/esm2022/state/operation/facade.type.mjs +0 -2
- package/esm2022/state/operation/public_api.mjs +0 -5
- package/esm2022/state/operation/selectors.mjs +0 -25
- package/esm2022/state/operation/state.mjs +0 -5
- package/esm2022/state/operators/public_api.mjs +0 -2
- package/esm2022/state/operators/substream.pipe.mjs +0 -42
- package/esm2022/state/public_api.mjs +0 -8
- package/esm2022/state/reducers/create-meta.mjs +0 -7
- package/esm2022/state/reducers/identity.mjs +0 -6
- package/esm2022/state/reducers/public_api.mjs +0 -3
- package/esm2022/state/states/helpers.mjs +0 -15
- package/esm2022/state/states/loading.mjs +0 -2
- package/esm2022/state/states/mutable-loading.mjs +0 -2
- package/esm2022/state/states/public_api.mjs +0 -2
- package/esm2022/state/states/state.enum.mjs +0 -2
- package/esm2022/state/states/stateable.interface.mjs +0 -2
- package/esm2022/state/store/facade.mjs +0 -2
- package/esm2022/state/testing/daffodil-core-state-testing.mjs +0 -5
- package/esm2022/state/testing/index.mjs +0 -2
- package/esm2022/state/testing/mock-collection-facade.mjs +0 -32
- package/esm2022/state/testing/mock-operation-facade.mjs +0 -27
- package/esm2022/state/testing/public_api.mjs +0 -3
- package/esm2022/storage/error/error.mjs +0 -10
- package/esm2022/storage/error/error.service.mjs +0 -33
- package/esm2022/storage/error/public_api.mjs +0 -3
- package/esm2022/storage/localstorage/localstorage.service.mjs +0 -46
- package/esm2022/storage/noopstorage/noopstorage.service.mjs +0 -24
- package/esm2022/storage/persistence-server-safe.token.mjs +0 -20
- package/esm2022/storage/persistence.interface.mjs +0 -16
- package/esm2022/storage/public_api.mjs +0 -7
- package/esm2022/storage/server-error/public_api.mjs +0 -3
- package/esm2022/storage/server-error/server-error.mjs +0 -13
- package/esm2022/storage/server-error/server-error.service.mjs +0 -36
- package/esm2022/testing/angular/mocks/pipes/currency.mjs +0 -19
- package/esm2022/testing/daffodil-core-testing.mjs +0 -5
- package/esm2022/testing/factories/address.factory.mjs +0 -38
- package/esm2022/testing/factories/collection/metadata.factory.mjs +0 -46
- package/esm2022/testing/factories/collection/mock-collection.class.mjs +0 -25
- package/esm2022/testing/factories/collection/numerically-paginable.factory.mjs +0 -25
- package/esm2022/testing/factories/collection/public_api.mjs +0 -8
- package/esm2022/testing/factories/collection/request.factory.mjs +0 -40
- package/esm2022/testing/factories/collection/sort-option.factory.mjs +0 -24
- package/esm2022/testing/factories/collection/sort-options.factory.mjs +0 -30
- package/esm2022/testing/factories/collection/sortable.factory.mjs +0 -32
- package/esm2022/testing/factories/factory.interface.mjs +0 -2
- package/esm2022/testing/factories/factory.mjs +0 -54
- package/esm2022/testing/factories/filters/filter.factory.mjs +0 -50
- package/esm2022/testing/factories/filters/public_api.mjs +0 -5
- package/esm2022/testing/factories/filters/request.factory.mjs +0 -25
- package/esm2022/testing/factories/filters/toggle-request.mjs +0 -35
- package/esm2022/testing/factories/filters/type/equal/option.mjs +0 -29
- package/esm2022/testing/factories/filters/type/equal/public_api.mjs +0 -4
- package/esm2022/testing/factories/filters/type/equal/request.mjs +0 -29
- package/esm2022/testing/factories/filters/type/equal/toggle-request.mjs +0 -29
- package/esm2022/testing/factories/filters/type/equal.mjs +0 -30
- package/esm2022/testing/factories/filters/type/public_api.mjs +0 -5
- package/esm2022/testing/factories/filters/type/range-numeric/option.mjs +0 -27
- package/esm2022/testing/factories/filters/type/range-numeric/pair.mjs +0 -37
- package/esm2022/testing/factories/filters/type/range-numeric/public_api.mjs +0 -6
- package/esm2022/testing/factories/filters/type/range-numeric/request-option.mjs +0 -27
- package/esm2022/testing/factories/filters/type/range-numeric/request.mjs +0 -38
- package/esm2022/testing/factories/filters/type/range-numeric/toggle-request.mjs +0 -38
- package/esm2022/testing/factories/filters/type/range-numeric.mjs +0 -32
- package/esm2022/testing/factories/identifiable.factory.mjs +0 -23
- package/esm2022/testing/factories/public_api.mjs +0 -6
- package/esm2022/testing/index.mjs +0 -2
- package/esm2022/testing/public_api.mjs +0 -6
- package/esm2022/testing/testing.module.mjs +0 -17
- package/esm2022/types/id.type.mjs +0 -2
- package/esm2022/types/public_api.mjs +0 -2
- package/esm2022/utils/array-to-dict.mjs +0 -9
- package/esm2022/utils/collect.mjs +0 -9
- package/esm2022/utils/identity.mjs +0 -8
- package/esm2022/utils/long-arithmetic.mjs +0 -96
- package/esm2022/utils/observe.mjs +0 -11
- package/esm2022/utils/public_api.mjs +0 -17
- package/esm2022/utils/random-slice.mjs +0 -20
- package/esm2022/utils/random-subset.mjs +0 -15
- package/esm2022/utils/range.mjs +0 -13
- package/esm2022/utils/sample.mjs +0 -6
- package/esm2022/utils/shallow-compare.mjs +0 -16
- package/esm2022/utils/shuffle.mjs +0 -16
- package/esm2022/utils/unique.mjs +0 -9
- package/testing/factories/address.factory.d.ts +0 -26
package/esm2022/utils/sample.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { randomSlice } from './random-slice';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a random element of an array.
|
|
4
|
-
*/
|
|
5
|
-
export const sample = (array) => randomSlice(array, 1)[0];
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FtcGxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy91dGlscy9zYW1wbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTdDOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFHLENBQUksS0FBVSxFQUFLLEVBQUUsQ0FBQyxXQUFXLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmFuZG9tU2xpY2UgfSBmcm9tICcuL3JhbmRvbS1zbGljZSc7XG5cbi8qKlxuICogUmV0dXJucyBhIHJhbmRvbSBlbGVtZW50IG9mIGFuIGFycmF5LlxuICovXG5leHBvcnQgY29uc3Qgc2FtcGxlID0gPFQ+KGFycmF5OiBUW10pOiBUID0+IHJhbmRvbVNsaWNlKGFycmF5LCAxKVswXTtcbiJdfQ==
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shallow compares two objects using a list of provided property keys to enumerate the values.
|
|
3
|
-
* `null` and `undefined` are considered equal for the purposes of the comparison.
|
|
4
|
-
* A strict equality comparison is used for truthy property values.
|
|
5
|
-
*/
|
|
6
|
-
export function shallowCompare(obj1, obj2, props) {
|
|
7
|
-
return !!(obj1 && obj2 && props.reduce((acc, prop) => {
|
|
8
|
-
const p1 = obj1[prop];
|
|
9
|
-
const p2 = obj2[prop];
|
|
10
|
-
return acc && (
|
|
11
|
-
// undefined and null are treated as equal
|
|
12
|
-
(p1 === undefined || p1 === null) && (p2 === undefined || p2 === null)
|
|
13
|
-
|| p1 === p2);
|
|
14
|
-
}, true));
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhbGxvdy1jb21wYXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy91dGlscy9zaGFsbG93LWNvbXBhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxjQUFjLENBQUksSUFBTyxFQUFFLElBQU8sRUFBRSxLQUF1QztJQUN6RixPQUFPLENBQUMsQ0FBQyxDQUFDLElBQUksSUFBSSxJQUFJLElBQUksS0FBSyxDQUFDLE1BQU0sQ0FDcEMsQ0FBQyxHQUFHLEVBQUUsSUFBSSxFQUFFLEVBQUU7UUFDWixNQUFNLEVBQUUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDdEIsTUFBTSxFQUFFLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3RCLE9BQU8sR0FBRyxJQUFJO1FBQ1osMENBQTBDO1FBQzFDLENBQUMsRUFBRSxLQUFLLFNBQVMsSUFBSSxFQUFFLEtBQUssSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssU0FBUyxJQUFJLEVBQUUsS0FBSyxJQUFJLENBQUM7ZUFDakUsRUFBRSxLQUFLLEVBQUUsQ0FDZixDQUFDO0lBQ0osQ0FBQyxFQUNELElBQUksQ0FDTCxDQUFDLENBQUM7QUFDTCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTaGFsbG93IGNvbXBhcmVzIHR3byBvYmplY3RzIHVzaW5nIGEgbGlzdCBvZiBwcm92aWRlZCBwcm9wZXJ0eSBrZXlzIHRvIGVudW1lcmF0ZSB0aGUgdmFsdWVzLlxuICogYG51bGxgIGFuZCBgdW5kZWZpbmVkYCBhcmUgY29uc2lkZXJlZCBlcXVhbCBmb3IgdGhlIHB1cnBvc2VzIG9mIHRoZSBjb21wYXJpc29uLlxuICogQSBzdHJpY3QgZXF1YWxpdHkgY29tcGFyaXNvbiBpcyB1c2VkIGZvciB0cnV0aHkgcHJvcGVydHkgdmFsdWVzLlxuICovXG5leHBvcnQgZnVuY3Rpb24gc2hhbGxvd0NvbXBhcmU8VD4ob2JqMTogVCwgb2JqMjogVCwgcHJvcHM6IChUIGV4dGVuZHMgVCA/IGtleW9mIFQ6IG5ldmVyKVtdKTogYm9vbGVhbiB7XG4gIHJldHVybiAhIShvYmoxICYmIG9iajIgJiYgcHJvcHMucmVkdWNlKFxuICAgIChhY2MsIHByb3ApID0+IHtcbiAgICAgIGNvbnN0IHAxID0gb2JqMVtwcm9wXTtcbiAgICAgIGNvbnN0IHAyID0gb2JqMltwcm9wXTtcbiAgICAgIHJldHVybiBhY2MgJiYgKFxuICAgICAgICAvLyB1bmRlZmluZWQgYW5kIG51bGwgYXJlIHRyZWF0ZWQgYXMgZXF1YWxcbiAgICAgICAgKHAxID09PSB1bmRlZmluZWQgfHwgcDEgPT09IG51bGwpICYmIChwMiA9PT0gdW5kZWZpbmVkIHx8IHAyID09PSBudWxsKVxuICAgICAgICAgIHx8IHAxID09PSBwMlxuICAgICAgKTtcbiAgICB9LFxuICAgIHRydWUsXG4gICkpO1xufVxuIl19
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Immutable Fisher-Yates Shuffle
|
|
3
|
-
* https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle
|
|
4
|
-
*/
|
|
5
|
-
export const shuffle = (array) => {
|
|
6
|
-
const result = [];
|
|
7
|
-
array.forEach((el, i) => {
|
|
8
|
-
const s = Math.floor(Math.random() * (i + 1));
|
|
9
|
-
if (s !== i) {
|
|
10
|
-
result[i] = result[s];
|
|
11
|
-
}
|
|
12
|
-
result[s] = el;
|
|
13
|
-
});
|
|
14
|
-
return result;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2h1ZmZsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvdXRpbHMvc2h1ZmZsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsQ0FBSSxLQUFVLEVBQU8sRUFBRTtJQUM1QyxNQUFNLE1BQU0sR0FBRyxFQUFFLENBQUM7SUFDbEIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUN0QixNQUFNLENBQUMsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzlDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDO1lBQ1osTUFBTSxDQUFDLENBQUMsQ0FBQyxHQUFHLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUN4QixDQUFDO1FBQ0QsTUFBTSxDQUFDLENBQUMsQ0FBQyxHQUFHLEVBQUUsQ0FBQztJQUNqQixDQUFDLENBQUMsQ0FBQztJQUNILE9BQU8sTUFBTSxDQUFDO0FBQ2hCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSW1tdXRhYmxlIEZpc2hlci1ZYXRlcyBTaHVmZmxlXG4gKiBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9GaXNoZXIlRTIlODAlOTNZYXRlc19zaHVmZmxlXG4gKi9cbmV4cG9ydCBjb25zdCBzaHVmZmxlID0gPFQ+KGFycmF5OiBUW10pOiBUW10gPT4ge1xuICBjb25zdCByZXN1bHQgPSBbXTtcbiAgYXJyYXkuZm9yRWFjaCgoZWwsIGkpID0+IHtcbiAgICBjb25zdCBzID0gTWF0aC5mbG9vcihNYXRoLnJhbmRvbSgpICogKGkgKyAxKSk7XG4gICAgaWYoIHMgIT09IGkgKXtcbiAgICAgIHJlc3VsdFtpXSA9IHJlc3VsdFtzXTtcbiAgICB9XG4gICAgcmVzdWx0W3NdID0gZWw7XG4gIH0pO1xuICByZXR1cm4gcmVzdWx0O1xufTtcbiJdfQ==
|
package/esm2022/utils/unique.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Filters an array of elements, removing duplicates.
|
|
3
|
-
* Does not guarantee order of filtered elements.
|
|
4
|
-
*
|
|
5
|
-
* An optional comparator function may be passed for arbitrary comparison behavior.
|
|
6
|
-
* The default is a strict equality comparison: `a === b`.
|
|
7
|
-
*/
|
|
8
|
-
export const unique = (array, comparator = (a, b) => a === b) => array.filter((a, index) => array.slice(index + 1).filter(b => comparator(a, b)).length === 0);
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pcXVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy91dGlscy91bmlxdWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBQ0gsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFHLENBQUksS0FBVSxFQUFFLGFBQXNDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsRUFBTyxFQUFFLENBQ3BHLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxFQUFFLEVBQUUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssR0FBRyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBGaWx0ZXJzIGFuIGFycmF5IG9mIGVsZW1lbnRzLCByZW1vdmluZyBkdXBsaWNhdGVzLlxuICogRG9lcyBub3QgZ3VhcmFudGVlIG9yZGVyIG9mIGZpbHRlcmVkIGVsZW1lbnRzLlxuICpcbiAqIEFuIG9wdGlvbmFsIGNvbXBhcmF0b3IgZnVuY3Rpb24gbWF5IGJlIHBhc3NlZCBmb3IgYXJiaXRyYXJ5IGNvbXBhcmlzb24gYmVoYXZpb3IuXG4gKiBUaGUgZGVmYXVsdCBpcyBhIHN0cmljdCBlcXVhbGl0eSBjb21wYXJpc29uOiBgYSA9PT0gYmAuXG4gKi9cbmV4cG9ydCBjb25zdCB1bmlxdWUgPSA8VD4oYXJyYXk6IFRbXSwgY29tcGFyYXRvcjogKGE6IFQsIGI6IFQpID0+IGJvb2xlYW4gPSAoYSwgYikgPT4gYSA9PT0gYik6IFRbXSA9PlxuICBhcnJheS5maWx0ZXIoKGEsIGluZGV4KSA9PiBhcnJheS5zbGljZShpbmRleCArIDEpLmZpbHRlcihiID0+IGNvbXBhcmF0b3IoYSwgYikpLmxlbmd0aCA9PT0gMCk7XG4iXX0=
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DaffAddress } from '@daffodil/core';
|
|
2
|
-
import { DaffModelFactory } from './factory';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Deprecated in version 0.78.0. Will be removed in version 0.81.0.
|
|
6
|
-
* Prefer the `MockDaffAddress` of daffodil/geography/testing`
|
|
7
|
-
*/
|
|
8
|
-
export declare class MockDaffAddress implements DaffAddress {
|
|
9
|
-
firstname: string;
|
|
10
|
-
lastname: string;
|
|
11
|
-
street: string;
|
|
12
|
-
city: string;
|
|
13
|
-
state: string;
|
|
14
|
-
email: string;
|
|
15
|
-
postcode: string;
|
|
16
|
-
telephone: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Deprecated in version 0.78.0. Will be removed in version 0.81.0.
|
|
20
|
-
* Prefer the `DaffAddressFactory` of `daffodil/geography/testing`
|
|
21
|
-
*/
|
|
22
|
-
export declare class DaffAddressFactory extends DaffModelFactory<DaffAddress> {
|
|
23
|
-
constructor();
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAddressFactory, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAddressFactory>;
|
|
26
|
-
}
|