@daffodil/category 0.39.12 → 0.41.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/daffodil-category.d.ts +1 -0
- package/driver/daffodil-category-driver.d.ts +1 -0
- package/driver/in-memory/backend/category.service.d.ts +3 -0
- package/driver/in-memory/daffodil-category-driver-in-memory.d.ts +1 -0
- package/driver/in-memory/drivers/category-driver.module.d.ts +5 -0
- package/driver/in-memory/drivers/category.service.d.ts +3 -0
- package/driver/in-memory/package.json +5 -6
- package/driver/magento/category-driver.module.d.ts +5 -0
- package/driver/magento/category.service.d.ts +3 -0
- package/driver/magento/daffodil-category-driver-magento.d.ts +1 -1
- package/driver/magento/package.json +5 -6
- package/driver/magento/queries/fragments/category-tree.d.ts +1 -1
- package/driver/magento/queries/get-category.d.ts +1 -1
- package/driver/magento/queries/get-filter-types.d.ts +1 -1
- package/driver/magento/queries/get-products.d.ts +1 -1
- package/driver/magento/testing/daffodil-category-driver-magento-testing.d.ts +1 -0
- package/driver/magento/testing/factories/aggregation/aggregation.factory.d.ts +3 -0
- package/driver/magento/testing/factories/aggregation/type/price.factory.d.ts +3 -0
- package/driver/magento/testing/factories/aggregation/type/select.factory.d.ts +3 -0
- package/driver/magento/testing/factories/category.factory.d.ts +3 -0
- package/driver/magento/testing/factories/filter-type-field.factory.d.ts +3 -0
- package/driver/magento/testing/factories/page-info.factory.d.ts +3 -0
- package/driver/magento/testing/factories/sort-fields.factory.d.ts +3 -0
- package/driver/magento/testing/package.json +5 -6
- package/driver/magento/transformers/applied-filter-transformer.service.d.ts +3 -0
- package/driver/magento/transformers/applied-sort-option-transformer.service.d.ts +3 -0
- package/driver/magento/transformers/category-page-config-transformer.service.d.ts +3 -0
- package/driver/magento/transformers/category-response-transform.service.d.ts +3 -0
- package/driver/magento/transformers/category-transformer.service.d.ts +3 -0
- package/driver/package.json +5 -6
- package/driver/testing/daffodil-category-driver-testing.d.ts +1 -0
- package/driver/testing/drivers/category-driver.module.d.ts +5 -0
- package/driver/testing/drivers/category.service.d.ts +3 -0
- package/driver/testing/package.json +5 -6
- package/{esm2015/daffodil-category.js → esm2020/daffodil-category.mjs} +0 -0
- package/{esm2015/driver/daffodil-category-driver.js → esm2020/driver/daffodil-category-driver.mjs} +0 -0
- package/{esm2015/driver/in-memory/backend/category.service.js → esm2020/driver/in-memory/backend/category.service.mjs} +9 -13
- package/{esm2015/driver/in-memory/backend/public_api.js → esm2020/driver/in-memory/backend/public_api.mjs} +0 -0
- package/{esm2015/driver/in-memory/daffodil-category-driver-in-memory.js → esm2020/driver/in-memory/daffodil-category-driver-in-memory.mjs} +0 -0
- package/esm2020/driver/in-memory/drivers/category-driver.module.mjs +35 -0
- package/esm2020/driver/in-memory/drivers/category.service.mjs +37 -0
- package/{esm2015/driver/in-memory/drivers/public_api.js → esm2020/driver/in-memory/drivers/public_api.mjs} +0 -0
- package/{esm2015/driver/in-memory/index.js → esm2020/driver/in-memory/index.mjs} +0 -0
- package/{esm2015/driver/in-memory/public_api.js → esm2020/driver/in-memory/public_api.mjs} +0 -0
- package/{esm2015/driver/index.js → esm2020/driver/index.mjs} +0 -0
- package/{esm2015/driver/interfaces/category-service.interface.js → esm2020/driver/interfaces/category-service.interface.mjs} +0 -0
- package/esm2020/driver/magento/category-driver.module.mjs +74 -0
- package/esm2020/driver/magento/category.service.mjs +124 -0
- package/{esm2015/driver/magento/config/default.js → esm2020/driver/magento/config/default.mjs} +0 -0
- package/esm2020/driver/magento/daffodil-category-driver-magento.mjs +5 -0
- package/{esm2015/driver/magento/index.js → esm2020/driver/magento/index.mjs} +0 -0
- package/{esm2015/driver/magento/interfaces/config.interface.js → esm2020/driver/magento/interfaces/config.interface.mjs} +0 -0
- package/{esm2015/driver/magento/interfaces/public_api.js → esm2020/driver/magento/interfaces/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/models/aggregation.js → esm2020/driver/magento/models/aggregation.mjs} +0 -0
- package/{esm2015/driver/magento/models/category.js → esm2020/driver/magento/models/category.mjs} +0 -0
- package/{esm2015/driver/magento/models/complete-category-response.js → esm2020/driver/magento/models/complete-category-response.mjs} +0 -0
- package/{esm2015/driver/magento/models/filter-type-field.interface.js → esm2020/driver/magento/models/filter-type-field.interface.mjs} +0 -0
- package/{esm2015/driver/magento/models/filter-type.enum.js → esm2020/driver/magento/models/filter-type.enum.mjs} +0 -0
- package/{esm2015/driver/magento/models/get-category-response.js → esm2020/driver/magento/models/get-category-response.mjs} +0 -0
- package/{esm2015/driver/magento/models/get-filter-types-response.interface.js → esm2020/driver/magento/models/get-filter-types-response.interface.mjs} +0 -0
- package/{esm2015/driver/magento/models/get-products-response.js → esm2020/driver/magento/models/get-products-response.mjs} +0 -0
- package/{esm2015/driver/magento/models/page-info.js → esm2020/driver/magento/models/page-info.mjs} +0 -0
- package/{esm2015/driver/magento/models/public_api.js → esm2020/driver/magento/models/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/models/requests/custom-metadata-attribute.js → esm2020/driver/magento/models/requests/custom-metadata-attribute.mjs} +0 -0
- package/{esm2015/driver/magento/models/requests/filters.js → esm2020/driver/magento/models/requests/filters.mjs} +0 -0
- package/{esm2015/driver/magento/models/requests/get-products-by-categories-request.js → esm2020/driver/magento/models/requests/get-products-by-categories-request.mjs} +0 -0
- package/{esm2015/driver/magento/models/requests/sort.js → esm2020/driver/magento/models/requests/sort.mjs} +0 -0
- package/{esm2015/driver/magento/models/sort-fields.js → esm2020/driver/magento/models/sort-fields.mjs} +0 -0
- package/{esm2015/driver/magento/public_api.js → esm2020/driver/magento/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/queries/fragments/category-tree.js → esm2020/driver/magento/queries/fragments/category-tree.mjs} +0 -0
- package/{esm2015/driver/magento/queries/fragments/public_api.js → esm2020/driver/magento/queries/fragments/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/queries/get-category.js → esm2020/driver/magento/queries/get-category.mjs} +0 -0
- package/{esm2015/driver/magento/queries/get-filter-types.js → esm2020/driver/magento/queries/get-filter-types.mjs} +0 -0
- package/{esm2015/driver/magento/queries/get-products.js → esm2020/driver/magento/queries/get-products.mjs} +0 -0
- package/{esm2015/driver/magento/queries/public_api.js → esm2020/driver/magento/queries/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/testing/daffodil-category-driver-magento-testing.js → esm2020/driver/magento/testing/daffodil-category-driver-magento-testing.mjs} +0 -0
- package/esm2020/driver/magento/testing/factories/aggregation/aggregation.factory.mjs +24 -0
- package/{esm2015/driver/magento/testing/factories/aggregation/public_api.js → esm2020/driver/magento/testing/factories/aggregation/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/testing/factories/aggregation/type/price.factory.js → esm2020/driver/magento/testing/factories/aggregation/type/price.factory.mjs} +9 -9
- package/{esm2015/driver/magento/testing/factories/aggregation/type/select.factory.js → esm2020/driver/magento/testing/factories/aggregation/type/select.factory.mjs} +9 -9
- package/{esm2015/driver/magento/testing/factories/category.factory.js → esm2020/driver/magento/testing/factories/category.factory.mjs} +9 -9
- package/esm2020/driver/magento/testing/factories/filter-type-field.factory.mjs +32 -0
- package/esm2020/driver/magento/testing/factories/page-info.factory.mjs +25 -0
- package/{esm2015/driver/magento/testing/factories/public_api.js → esm2020/driver/magento/testing/factories/public_api.mjs} +0 -0
- package/esm2020/driver/magento/testing/factories/sort-fields.factory.mjs +28 -0
- package/{esm2015/driver/magento/testing/index.js → esm2020/driver/magento/testing/index.mjs} +0 -0
- package/{esm2015/driver/magento/testing/public_api.js → esm2020/driver/magento/testing/public_api.mjs} +0 -0
- package/esm2020/driver/magento/transformers/applied-filter-transformer.service.mjs +63 -0
- package/esm2020/driver/magento/transformers/applied-sort-option-transformer.service.mjs +28 -0
- package/esm2020/driver/magento/transformers/category-page-config-transformer.service.mjs +35 -0
- package/esm2020/driver/magento/transformers/category-response-transform.service.mjs +32 -0
- package/esm2020/driver/magento/transformers/category-transformer.service.mjs +38 -0
- package/{esm2015/driver/magento/transformers/public_api.js → esm2020/driver/magento/transformers/public_api.mjs} +0 -0
- package/esm2020/driver/magento/transformers/pure/aggregate/add-metadata-types-to-aggregates.mjs +16 -0
- package/{esm2015/driver/magento/transformers/pure/aggregate/get-matched-attribute-type.js → esm2020/driver/magento/transformers/pure/aggregate/get-matched-attribute-type.mjs} +0 -0
- package/{esm2015/driver/magento/transformers/pure/aggregate/transform.js → esm2020/driver/magento/transformers/pure/aggregate/transform.mjs} +0 -0
- package/{esm2015/driver/magento/transformers/pure/aggregate/type/equal.js → esm2020/driver/magento/transformers/pure/aggregate/type/equal.mjs} +0 -0
- package/{esm2015/driver/magento/transformers/pure/aggregate/type/range.js → esm2020/driver/magento/transformers/pure/aggregate/type/range.mjs} +0 -0
- package/esm2020/driver/magento/transformers/pure/sort-default-option-first.mjs +12 -0
- package/{esm2015/driver/magento/transformers/truncate-url.js → esm2020/driver/magento/transformers/truncate-url.mjs} +0 -0
- package/{esm2015/driver/public_api.js → esm2020/driver/public_api.mjs} +0 -0
- package/{esm2015/driver/testing/daffodil-category-driver-testing.js → esm2020/driver/testing/daffodil-category-driver-testing.mjs} +0 -0
- package/esm2020/driver/testing/drivers/category-driver.module.mjs +35 -0
- package/esm2020/driver/testing/drivers/category.service.mjs +42 -0
- package/{esm2015/driver/testing/drivers/public_api.js → esm2020/driver/testing/drivers/public_api.mjs} +0 -0
- package/{esm2015/driver/testing/index.js → esm2020/driver/testing/index.mjs} +0 -0
- package/{esm2015/driver/testing/public_api.js → esm2020/driver/testing/public_api.mjs} +0 -0
- package/esm2020/errors/codes.enum.mjs +12 -0
- package/esm2020/errors/map.mjs +8 -0
- package/{esm2015/errors/public_api.js → esm2020/errors/public_api.mjs} +0 -0
- package/{esm2015/filters/array-to-dict/array-to-dict.js → esm2020/filters/array-to-dict/array-to-dict.mjs} +0 -0
- package/{esm2015/filters/behaviors/apply/apply-filter.js → esm2020/filters/behaviors/apply/apply-filter.mjs} +0 -0
- package/esm2020/filters/behaviors/apply/apply-request-to-filters.mjs +12 -0
- package/{esm2015/filters/behaviors/apply/apply-requests-to-filters.js → esm2020/filters/behaviors/apply/apply-requests-to-filters.mjs} +2 -2
- package/{esm2015/filters/behaviors/apply/public_api.js → esm2020/filters/behaviors/apply/public_api.mjs} +0 -0
- package/{esm2015/filters/behaviors/clear/clear-filter.js → esm2020/filters/behaviors/clear/clear-filter.mjs} +0 -0
- package/{esm2015/filters/behaviors/clear/clear-filters.js → esm2020/filters/behaviors/clear/clear-filters.mjs} +0 -0
- package/{esm2015/filters/behaviors/clear/public_api.js → esm2020/filters/behaviors/clear/public_api.mjs} +0 -0
- package/{esm2015/filters/behaviors/remove/public_api.js → esm2020/filters/behaviors/remove/public_api.mjs} +0 -0
- package/{esm2015/filters/behaviors/remove/remove-filter.js → esm2020/filters/behaviors/remove/remove-filter.mjs} +0 -0
- package/esm2020/filters/behaviors/remove/remove-request-from-filters.mjs +12 -0
- package/{esm2015/filters/behaviors/remove/remove-requests-from-filters.js → esm2020/filters/behaviors/remove/remove-requests-from-filters.mjs} +2 -2
- package/{esm2015/filters/behaviors/toggle/public_api.js → esm2020/filters/behaviors/toggle/public_api.mjs} +0 -0
- package/esm2020/filters/behaviors/toggle/toggle-request-on-filters.mjs +10 -0
- package/{esm2015/filters/behaviors/toggle/toggle.js → esm2020/filters/behaviors/toggle/toggle.mjs} +0 -0
- package/esm2020/filters/compute-applied-filters/compute-applied-filters.mjs +21 -0
- package/{esm2015/filters/errors/codes.enum.js → esm2020/filters/errors/codes.enum.mjs} +0 -0
- package/{esm2015/filters/errors/filter-not-found.error.js → esm2020/filters/errors/filter-not-found.error.mjs} +0 -0
- package/{esm2015/filters/errors/map.js → esm2020/filters/errors/map.mjs} +0 -0
- package/{esm2015/filters/errors/public_api.js → esm2020/filters/errors/public_api.mjs} +0 -0
- package/{esm2015/filters/errors/request-name-mismatch.error.js → esm2020/filters/errors/request-name-mismatch.error.mjs} +0 -0
- package/{esm2015/filters/errors/request-type-mismatch.error.js → esm2020/filters/errors/request-type-mismatch.error.mjs} +0 -0
- package/{esm2015/filters/errors/unknown-filter-type.error.js → esm2020/filters/errors/unknown-filter-type.error.mjs} +0 -0
- package/{esm2015/filters/find-applied/find-applied-options.js → esm2020/filters/find-applied/find-applied-options.mjs} +0 -0
- package/{esm2015/filters/find-applied/public_api.js → esm2020/filters/find-applied/public_api.mjs} +0 -0
- package/{esm2015/filters/is-applied/is-filter-applied.js → esm2020/filters/is-applied/is-filter-applied.mjs} +0 -0
- package/{esm2015/filters/is-applied/is-toggle-request-applied-to-filter.js → esm2020/filters/is-applied/is-toggle-request-applied-to-filter.mjs} +0 -0
- package/{esm2015/filters/is-applied/public_api.js → esm2020/filters/is-applied/public_api.mjs} +0 -0
- package/{esm2015/filters/public_api.js → esm2020/filters/public_api.mjs} +0 -0
- package/{esm2015/filters/to-request/filter-to-request.js → esm2020/filters/to-request/filter-to-request.mjs} +0 -0
- package/{esm2015/filters/to-request/filters-to-requests.js → esm2020/filters/to-request/filters-to-requests.mjs} +0 -0
- package/{esm2015/filters/to-request/public_api.js → esm2020/filters/to-request/public_api.mjs} +0 -0
- package/{esm2015/filters/type/equal/array-to-dict/option.js → esm2020/filters/type/equal/array-to-dict/option.mjs} +0 -0
- package/esm2020/filters/type/equal/behaviors/apply/apply.mjs +20 -0
- package/esm2020/filters/type/equal/behaviors/clear/clear.mjs +17 -0
- package/esm2020/filters/type/equal/behaviors/remove/remove.mjs +23 -0
- package/esm2020/filters/type/equal/behaviors/toggle/toggle.mjs +24 -0
- package/{esm2015/filters/type/equal/is-applied/is-applied.js → esm2020/filters/type/equal/is-applied/is-applied.mjs} +0 -0
- package/esm2020/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.mjs +5 -0
- package/{esm2015/filters/type/equal/public_api.js → esm2020/filters/type/equal/public_api.mjs} +0 -0
- package/{esm2015/filters/type/equal/to-request/filter-to-request.js → esm2020/filters/type/equal/to-request/filter-to-request.mjs} +0 -0
- package/{esm2015/filters/type/range/array-to-dict/pair.js → esm2020/filters/type/range/array-to-dict/pair.mjs} +0 -0
- package/esm2020/filters/type/range/behaviors/apply/apply.mjs +24 -0
- package/esm2020/filters/type/range/behaviors/clear/clear.mjs +11 -0
- package/esm2020/filters/type/range/behaviors/remove/remove.mjs +17 -0
- package/{esm2015/filters/type/range/behaviors/toggle/toggle.js → esm2020/filters/type/range/behaviors/toggle/toggle.mjs} +0 -0
- package/{esm2015/filters/type/range/compute-pair-label.js → esm2020/filters/type/range/compute-pair-label.mjs} +0 -0
- package/{esm2015/filters/type/range/is-applied/is-applied.js → esm2020/filters/type/range/is-applied/is-applied.mjs} +0 -0
- package/{esm2015/filters/type/range/is-applied/is-toggle-request-applied-to-filter.js → esm2020/filters/type/range/is-applied/is-toggle-request-applied-to-filter.mjs} +0 -0
- package/{esm2015/filters/type/range/public_api.js → esm2020/filters/type/range/public_api.mjs} +0 -0
- package/{esm2015/filters/type/range/to-request/filter-to-request.js → esm2020/filters/type/range/to-request/filter-to-request.mjs} +0 -0
- package/{esm2015/filters/type/range-numeric/to-request/filter-to-request.js → esm2020/filters/type/range-numeric/to-request/filter-to-request.mjs} +0 -0
- package/{esm2015/filters/validators/public_api.js → esm2020/filters/validators/public_api.mjs} +0 -0
- package/{esm2015/filters/validators/request-name-match.js → esm2020/filters/validators/request-name-match.mjs} +0 -0
- package/{esm2015/filters/validators/request-type-match.js → esm2020/filters/validators/request-type-match.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/injection-tokens/error-matcher.token.js → esm2020/injection-tokens/error-matcher.token.mjs} +0 -0
- package/{esm2015/injection-tokens/public_api.js → esm2020/injection-tokens/public_api.mjs} +0 -0
- package/{esm2015/models/category-breadcrumb.js → esm2020/models/category-breadcrumb.mjs} +0 -0
- package/{esm2015/models/category-page-metadata.js → esm2020/models/category-page-metadata.mjs} +0 -0
- package/{esm2015/models/category-request.js → esm2020/models/category-request.mjs} +0 -0
- package/{esm2015/models/category.js → esm2020/models/category.mjs} +0 -0
- package/{esm2015/models/filters/category-filter-base.js → esm2020/models/filters/category-filter-base.mjs} +0 -0
- package/{esm2015/models/filters/category-filter-option-base.js → esm2020/models/filters/category-filter-option-base.mjs} +0 -0
- package/{esm2015/models/filters/category-filter-option.js → esm2020/models/filters/category-filter-option.mjs} +0 -0
- package/{esm2015/models/filters/category-filter.js → esm2020/models/filters/category-filter.mjs} +0 -0
- package/{esm2015/models/filters/category-filterable.js → esm2020/models/filters/category-filterable.mjs} +0 -0
- package/{esm2015/models/filters/filter-request.js → esm2020/models/filters/filter-request.mjs} +0 -0
- package/{esm2015/models/filters/filter-toggle-request.js → esm2020/models/filters/filter-toggle-request.mjs} +0 -0
- package/{esm2015/models/filters/public_api.js → esm2020/models/filters/public_api.mjs} +0 -0
- package/{esm2015/models/filters/type/category-filter-type.js → esm2020/models/filters/type/category-filter-type.mjs} +0 -0
- package/{esm2015/models/filters/type/equal/filter.js → esm2020/models/filters/type/equal/filter.mjs} +0 -0
- package/{esm2015/models/filters/type/equal/option.js → esm2020/models/filters/type/equal/option.mjs} +0 -0
- package/{esm2015/models/filters/type/equal/public_api.js → esm2020/models/filters/type/equal/public_api.mjs} +0 -0
- package/{esm2015/models/filters/type/equal/request.js → esm2020/models/filters/type/equal/request.mjs} +0 -0
- package/{esm2015/models/filters/type/equal/toggle-request.js → esm2020/models/filters/type/equal/toggle-request.mjs} +0 -0
- package/{esm2015/models/filters/type/range/filter-base.js → esm2020/models/filters/type/range/filter-base.mjs} +0 -0
- package/{esm2015/models/filters/type/range/option.js → esm2020/models/filters/type/range/option.mjs} +0 -0
- package/{esm2015/models/filters/type/range/pair.js → esm2020/models/filters/type/range/pair.mjs} +0 -0
- package/{esm2015/models/filters/type/range/public_api.js → esm2020/models/filters/type/range/public_api.mjs} +0 -0
- package/{esm2015/models/filters/type/range/request-base.js → esm2020/models/filters/type/range/request-base.mjs} +0 -0
- package/{esm2015/models/filters/type/range/request-option.js → esm2020/models/filters/type/range/request-option.mjs} +0 -0
- package/{esm2015/models/filters/type/range/separator.js → esm2020/models/filters/type/range/separator.mjs} +0 -0
- package/{esm2015/models/filters/type/range-numeric/filter.js → esm2020/models/filters/type/range-numeric/filter.mjs} +0 -0
- package/{esm2015/models/filters/type/range-numeric/public_api.js → esm2020/models/filters/type/range-numeric/public_api.mjs} +0 -0
- package/{esm2015/models/filters/type/range-numeric/request.js → esm2020/models/filters/type/range-numeric/request.mjs} +0 -0
- package/{esm2015/models/filters/type/range-numeric/toggle-request.js → esm2020/models/filters/type/range-numeric/toggle-request.mjs} +0 -0
- package/{esm2015/models/generic-category.js → esm2020/models/generic-category.mjs} +0 -0
- package/{esm2015/models/get-category-response.js → esm2020/models/get-category-response.mjs} +0 -0
- package/{esm2015/models/public_api.js → esm2020/models/public_api.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/routing/daffodil-category-routing.js → esm2020/routing/daffodil-category-routing.mjs} +0 -0
- package/{esm2015/routing/index.js → esm2020/routing/index.mjs} +0 -0
- package/{esm2015/routing/public_api.js → esm2020/routing/public_api.mjs} +0 -0
- package/esm2020/routing/resolvers/category-page/category-page.resolver.mjs +28 -0
- package/esm2020/routing/resolvers/category-page-id/category-page-id.resolver.mjs +40 -0
- package/esm2020/routing/resolvers/category-page-url/category-page-url.resolver.mjs +50 -0
- package/{esm2015/routing/resolvers/public_api.js → esm2020/routing/resolvers/public_api.mjs} +0 -0
- package/{esm2015/state/actions/category-page-filter.actions.js → esm2020/state/actions/category-page-filter.actions.mjs} +0 -0
- package/{esm2015/state/actions/category-page.actions.js → esm2020/state/actions/category-page.actions.mjs} +0 -0
- package/{esm2015/state/actions/category.actions.js → esm2020/state/actions/category.actions.mjs} +0 -0
- package/esm2020/state/category-state.module.mjs +35 -0
- package/esm2020/state/daffodil-category-state.mjs +5 -0
- package/esm2020/state/effects/category-page-filter.effects.mjs +53 -0
- package/esm2020/state/effects/category-page.effects.mjs +64 -0
- package/esm2020/state/effects/category.effects.mjs +30 -0
- package/{esm2015/state/facades/category-facade.interface.js → esm2020/state/facades/category-facade.interface.mjs} +0 -0
- package/{esm2015/state/facades/category.facade.js → esm2020/state/facades/category.facade.mjs} +9 -11
- package/{esm2015/state/index.js → esm2020/state/index.mjs} +0 -0
- package/{esm2015/state/public_api.js → esm2020/state/public_api.mjs} +0 -0
- package/{esm2015/state/reducers/category/category-reducer-state.interface.js → esm2020/state/reducers/category/category-reducer-state.interface.mjs} +0 -0
- package/esm2020/state/reducers/category/category.reducer.mjs +157 -0
- package/{esm2015/state/reducers/category/pure/build-metadata-from-request.js → esm2020/state/reducers/category/pure/build-metadata-from-request.mjs} +0 -0
- package/{esm2015/state/reducers/category-entities/category-entities-adapter.js → esm2020/state/reducers/category-entities/category-entities-adapter.mjs} +0 -0
- package/esm2020/state/reducers/category-entities/category-entities.reducer.mjs +19 -0
- package/{esm2015/state/reducers/category-reducers.interface.js → esm2020/state/reducers/category-reducers.interface.mjs} +0 -0
- package/{esm2015/state/reducers/category-reducers.js → esm2020/state/reducers/category-reducers.mjs} +0 -0
- package/{esm2015/state/reducers/category-store-feature-key.js → esm2020/state/reducers/category-store-feature-key.mjs} +0 -0
- package/{esm2015/state/reducers/public_api.js → esm2020/state/reducers/public_api.mjs} +0 -0
- package/esm2020/state/selectors/category-entities/category-entities.selector.mjs +29 -0
- package/{esm2015/state/selectors/category-feature.selector.js → esm2020/state/selectors/category-feature.selector.mjs} +6 -8
- package/esm2020/state/selectors/category-page/category-page.selector.mjs +59 -0
- package/esm2020/state/selectors/category.selector.mjs +40 -0
- package/esm2020/state/testing/category-testing.module.mjs +23 -0
- package/{esm2015/state/testing/daffodil-category-state-testing.js → esm2020/state/testing/daffodil-category-state-testing.mjs} +0 -0
- package/{esm2015/state/testing/index.js → esm2020/state/testing/index.mjs} +0 -0
- package/esm2020/state/testing/mock-category-facade.mjs +52 -0
- package/{esm2015/state/testing/public_api.js → esm2020/state/testing/public_api.mjs} +0 -0
- package/{esm2015/testing/daffodil-category-testing.js → esm2020/testing/daffodil-category-testing.mjs} +0 -0
- package/{esm2015/testing/factories/category-page-metadata.factory.js → esm2020/testing/factories/category-page-metadata.factory.mjs} +9 -9
- package/{esm2015/testing/factories/category.factory.js → esm2020/testing/factories/category.factory.mjs} +9 -9
- package/esm2020/testing/factories/filters/filter.factory.mjs +50 -0
- package/{esm2015/testing/factories/filters/public_api.js → esm2020/testing/factories/filters/public_api.mjs} +0 -0
- package/esm2020/testing/factories/filters/request.factory.mjs +27 -0
- package/esm2020/testing/factories/filters/toggle-request.mjs +35 -0
- package/esm2020/testing/factories/filters/type/equal/option.mjs +29 -0
- package/{esm2015/testing/factories/filters/type/equal/public_api.js → esm2020/testing/factories/filters/type/equal/public_api.mjs} +0 -0
- package/esm2020/testing/factories/filters/type/equal/request.mjs +29 -0
- package/esm2020/testing/factories/filters/type/equal/toggle-request.mjs +29 -0
- package/esm2020/testing/factories/filters/type/equal.mjs +30 -0
- package/{esm2015/testing/factories/filters/type/public_api.js → esm2020/testing/factories/filters/type/public_api.mjs} +0 -0
- package/esm2020/testing/factories/filters/type/range-numeric/option.mjs +27 -0
- package/esm2020/testing/factories/filters/type/range-numeric/pair.mjs +37 -0
- package/{esm2015/testing/factories/filters/type/range-numeric/public_api.js → esm2020/testing/factories/filters/type/range-numeric/public_api.mjs} +0 -0
- package/esm2020/testing/factories/filters/type/range-numeric/request-option.mjs +27 -0
- package/esm2020/testing/factories/filters/type/range-numeric/request.mjs +38 -0
- package/esm2020/testing/factories/filters/type/range-numeric/toggle-request.mjs +38 -0
- package/esm2020/testing/factories/filters/type/range-numeric.mjs +32 -0
- package/{esm2015/testing/factories/public_api.js → esm2020/testing/factories/public_api.mjs} +0 -0
- package/{esm2015/testing/helpers/category-helper.js → esm2020/testing/helpers/category-helper.mjs} +0 -0
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
- package/fesm2015/{daffodil-category-driver-in-memory.js → daffodil-category-driver-in-memory.mjs} +36 -34
- package/fesm2015/daffodil-category-driver-in-memory.mjs.map +1 -0
- package/fesm2015/daffodil-category-driver-magento-testing.mjs +214 -0
- package/fesm2015/daffodil-category-driver-magento-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-category-driver-magento.js → daffodil-category-driver-magento.mjs} +88 -73
- package/fesm2015/daffodil-category-driver-magento.mjs.map +1 -0
- package/fesm2015/daffodil-category-driver-testing.mjs +79 -0
- package/fesm2015/daffodil-category-driver-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-category-driver.js → daffodil-category-driver.mjs} +1 -1
- package/fesm2015/daffodil-category-driver.mjs.map +1 -0
- package/fesm2015/daffodil-category-routing.mjs +109 -0
- package/fesm2015/daffodil-category-routing.mjs.map +1 -0
- package/fesm2015/{daffodil-category-state-testing.js → daffodil-category-state-testing.mjs} +22 -13
- package/fesm2015/daffodil-category-state-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-category-state.js → daffodil-category-state.mjs} +105 -121
- package/fesm2015/daffodil-category-state.mjs.map +1 -0
- package/fesm2015/daffodil-category-testing.mjs +438 -0
- package/fesm2015/daffodil-category-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-category.js → daffodil-category.mjs} +1 -1
- package/fesm2015/daffodil-category.mjs.map +1 -0
- package/fesm2020/daffodil-category-driver-in-memory.mjs +199 -0
- package/fesm2020/daffodil-category-driver-in-memory.mjs.map +1 -0
- package/fesm2020/daffodil-category-driver-magento-testing.mjs +214 -0
- package/fesm2020/daffodil-category-driver-magento-testing.mjs.map +1 -0
- package/fesm2020/daffodil-category-driver-magento.mjs +567 -0
- package/fesm2020/daffodil-category-driver-magento.mjs.map +1 -0
- package/fesm2020/daffodil-category-driver-testing.mjs +79 -0
- package/fesm2020/daffodil-category-driver-testing.mjs.map +1 -0
- package/fesm2020/daffodil-category-driver.mjs +12 -0
- package/fesm2020/daffodil-category-driver.mjs.map +1 -0
- package/fesm2020/daffodil-category-routing.mjs +109 -0
- package/fesm2020/daffodil-category-routing.mjs.map +1 -0
- package/fesm2020/daffodil-category-state-testing.mjs +79 -0
- package/fesm2020/daffodil-category-state-testing.mjs.map +1 -0
- package/fesm2020/daffodil-category-state.mjs +752 -0
- package/fesm2020/daffodil-category-state.mjs.map +1 -0
- package/fesm2020/daffodil-category-testing.mjs +457 -0
- package/fesm2020/daffodil-category-testing.mjs.map +1 -0
- package/fesm2020/daffodil-category.mjs +590 -0
- package/fesm2020/daffodil-category.mjs.map +1 -0
- package/filters/errors/map.d.ts +0 -1
- package/filters/type/range/array-to-dict/pair.d.ts +1 -1
- package/package.json +103 -19
- package/routing/daffodil-category-routing.d.ts +1 -0
- package/routing/package.json +5 -6
- package/routing/resolvers/category-page/category-page.resolver.d.ts +3 -0
- package/routing/resolvers/category-page-id/category-page-id.resolver.d.ts +3 -0
- package/routing/resolvers/category-page-url/category-page-url.resolver.d.ts +3 -0
- package/state/category-state.module.d.ts +7 -0
- package/state/daffodil-category-state.d.ts +1 -3
- package/state/effects/category-page-filter.effects.d.ts +3 -0
- package/state/effects/category-page.effects.d.ts +3 -0
- package/state/effects/category.effects.d.ts +3 -0
- package/state/facades/category.facade.d.ts +3 -0
- package/state/package.json +5 -6
- package/state/testing/category-testing.module.d.ts +4 -0
- package/state/testing/daffodil-category-state-testing.d.ts +1 -0
- package/state/testing/mock-category-facade.d.ts +3 -0
- package/state/testing/package.json +5 -6
- package/testing/daffodil-category-testing.d.ts +1 -0
- package/testing/factories/category-page-metadata.factory.d.ts +3 -0
- package/testing/factories/category.factory.d.ts +3 -0
- package/testing/factories/filters/filter.factory.d.ts +3 -0
- package/testing/factories/filters/request.factory.d.ts +3 -0
- package/testing/factories/filters/toggle-request.d.ts +3 -0
- package/testing/factories/filters/type/equal/option.d.ts +3 -0
- package/testing/factories/filters/type/equal/request.d.ts +3 -0
- package/testing/factories/filters/type/equal/toggle-request.d.ts +3 -0
- package/testing/factories/filters/type/equal.d.ts +3 -0
- package/testing/factories/filters/type/range-numeric/option.d.ts +3 -0
- package/testing/factories/filters/type/range-numeric/pair.d.ts +3 -0
- package/testing/factories/filters/type/range-numeric/request-option.d.ts +3 -0
- package/testing/factories/filters/type/range-numeric/request.d.ts +3 -0
- package/testing/factories/filters/type/range-numeric/toggle-request.d.ts +3 -0
- package/testing/factories/filters/type/range-numeric.d.ts +3 -0
- package/testing/package.json +5 -6
- package/bundles/daffodil-category-driver-in-memory.umd.js +0 -535
- package/bundles/daffodil-category-driver-in-memory.umd.js.map +0 -1
- package/bundles/daffodil-category-driver-in-memory.umd.min.js +0 -2
- package/bundles/daffodil-category-driver-in-memory.umd.min.js.map +0 -1
- package/bundles/daffodil-category-driver-magento-testing.umd.js +0 -566
- package/bundles/daffodil-category-driver-magento-testing.umd.js.map +0 -1
- package/bundles/daffodil-category-driver-magento-testing.umd.min.js +0 -16
- package/bundles/daffodil-category-driver-magento-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-category-driver-magento.umd.js +0 -803
- package/bundles/daffodil-category-driver-magento.umd.js.map +0 -1
- package/bundles/daffodil-category-driver-magento.umd.min.js +0 -16
- package/bundles/daffodil-category-driver-magento.umd.min.js.map +0 -1
- package/bundles/daffodil-category-driver-testing.umd.js +0 -84
- package/bundles/daffodil-category-driver-testing.umd.js.map +0 -1
- package/bundles/daffodil-category-driver-testing.umd.min.js +0 -2
- package/bundles/daffodil-category-driver-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-category-driver.umd.js +0 -20
- package/bundles/daffodil-category-driver.umd.js.map +0 -1
- package/bundles/daffodil-category-driver.umd.min.js +0 -2
- package/bundles/daffodil-category-driver.umd.min.js.map +0 -1
- package/bundles/daffodil-category-routing.umd.js +0 -115
- package/bundles/daffodil-category-routing.umd.js.map +0 -1
- package/bundles/daffodil-category-routing.umd.min.js +0 -2
- package/bundles/daffodil-category-routing.umd.min.js.map +0 -1
- package/bundles/daffodil-category-state-testing.umd.js +0 -81
- package/bundles/daffodil-category-state-testing.umd.js.map +0 -1
- package/bundles/daffodil-category-state-testing.umd.min.js +0 -2
- package/bundles/daffodil-category-state-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-category-state.umd.js +0 -1038
- package/bundles/daffodil-category-state.umd.js.map +0 -1
- package/bundles/daffodil-category-state.umd.min.js +0 -2
- package/bundles/daffodil-category-state.umd.min.js.map +0 -1
- package/bundles/daffodil-category-testing.umd.js +0 -860
- package/bundles/daffodil-category-testing.umd.js.map +0 -1
- package/bundles/daffodil-category-testing.umd.min.js +0 -16
- package/bundles/daffodil-category-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-category.umd.js +0 -914
- package/bundles/daffodil-category.umd.js.map +0 -1
- package/bundles/daffodil-category.umd.min.js +0 -16
- package/bundles/daffodil-category.umd.min.js.map +0 -1
- package/daffodil-category.metadata.json +0 -1
- package/driver/daffodil-category-driver.metadata.json +0 -1
- package/driver/in-memory/daffodil-category-driver-in-memory.metadata.json +0 -1
- package/driver/magento/daffodil-category-driver-magento.metadata.json +0 -1
- package/driver/magento/testing/daffodil-category-driver-magento-testing.metadata.json +0 -1
- package/driver/testing/daffodil-category-driver-testing.metadata.json +0 -1
- package/esm2015/driver/in-memory/drivers/category-driver.module.js +0 -28
- package/esm2015/driver/in-memory/drivers/category.service.js +0 -39
- package/esm2015/driver/magento/category-driver.module.js +0 -64
- package/esm2015/driver/magento/category.service.js +0 -122
- package/esm2015/driver/magento/daffodil-category-driver-magento.js +0 -6
- package/esm2015/driver/magento/testing/factories/aggregation/aggregation.factory.js +0 -27
- package/esm2015/driver/magento/testing/factories/filter-type-field.factory.js +0 -32
- package/esm2015/driver/magento/testing/factories/page-info.factory.js +0 -25
- package/esm2015/driver/magento/testing/factories/sort-fields.factory.js +0 -28
- package/esm2015/driver/magento/transformers/applied-filter-transformer.service.js +0 -54
- package/esm2015/driver/magento/transformers/applied-sort-option-transformer.service.js +0 -26
- package/esm2015/driver/magento/transformers/category-page-config-transformer.service.js +0 -33
- package/esm2015/driver/magento/transformers/category-response-transform.service.js +0 -31
- package/esm2015/driver/magento/transformers/category-transformer.service.js +0 -35
- package/esm2015/driver/magento/transformers/pure/aggregate/add-metadata-types-to-aggregates.js +0 -7
- package/esm2015/driver/magento/transformers/pure/sort-default-option-first.js +0 -9
- package/esm2015/driver/testing/drivers/category-driver.module.js +0 -28
- package/esm2015/driver/testing/drivers/category.service.js +0 -46
- package/esm2015/errors/codes.enum.js +0 -10
- package/esm2015/errors/map.js +0 -6
- package/esm2015/filters/behaviors/apply/apply-request-to-filters.js +0 -9
- package/esm2015/filters/behaviors/remove/remove-request-from-filters.js +0 -9
- package/esm2015/filters/behaviors/toggle/toggle-request-on-filters.js +0 -7
- package/esm2015/filters/compute-applied-filters/compute-applied-filters.js +0 -18
- package/esm2015/filters/type/equal/behaviors/apply/apply.js +0 -14
- package/esm2015/filters/type/equal/behaviors/clear/clear.js +0 -11
- package/esm2015/filters/type/equal/behaviors/remove/remove.js +0 -17
- package/esm2015/filters/type/equal/behaviors/toggle/toggle.js +0 -14
- package/esm2015/filters/type/equal/is-applied/is-toggle-request-applied-to-filter.js +0 -5
- package/esm2015/filters/type/range/behaviors/apply/apply.js +0 -21
- package/esm2015/filters/type/range/behaviors/clear/clear.js +0 -8
- package/esm2015/filters/type/range/behaviors/remove/remove.js +0 -14
- package/esm2015/routing/resolvers/category-page/category-page.resolver.js +0 -30
- package/esm2015/routing/resolvers/category-page-id/category-page-id.resolver.js +0 -41
- package/esm2015/routing/resolvers/category-page-url/category-page-url.resolver.js +0 -50
- package/esm2015/state/category-state.module.js +0 -24
- package/esm2015/state/daffodil-category-state.js +0 -8
- package/esm2015/state/effects/category-page-filter.effects.js +0 -54
- package/esm2015/state/effects/category-page.effects.js +0 -65
- package/esm2015/state/effects/category.effects.js +0 -31
- package/esm2015/state/reducers/category/category.reducer.js +0 -59
- package/esm2015/state/reducers/category-entities/category-entities.reducer.js +0 -16
- package/esm2015/state/selectors/category-entities/category-entities.selector.js +0 -32
- package/esm2015/state/selectors/category-page/category-page.selector.js +0 -62
- package/esm2015/state/selectors/category.selector.js +0 -37
- package/esm2015/state/testing/category-testing.module.js +0 -16
- package/esm2015/state/testing/mock-category-facade.js +0 -50
- package/esm2015/testing/factories/filters/filter.factory.js +0 -50
- package/esm2015/testing/factories/filters/request.factory.js +0 -30
- package/esm2015/testing/factories/filters/toggle-request.js +0 -35
- package/esm2015/testing/factories/filters/type/equal/option.js +0 -29
- package/esm2015/testing/factories/filters/type/equal/request.js +0 -29
- package/esm2015/testing/factories/filters/type/equal/toggle-request.js +0 -29
- package/esm2015/testing/factories/filters/type/equal.js +0 -30
- package/esm2015/testing/factories/filters/type/range-numeric/option.js +0 -27
- package/esm2015/testing/factories/filters/type/range-numeric/pair.js +0 -34
- package/esm2015/testing/factories/filters/type/range-numeric/request-option.js +0 -27
- package/esm2015/testing/factories/filters/type/range-numeric/request.js +0 -36
- package/esm2015/testing/factories/filters/type/range-numeric/toggle-request.js +0 -36
- package/esm2015/testing/factories/filters/type/range-numeric.js +0 -32
- package/fesm2015/daffodil-category-driver-in-memory.js.map +0 -1
- package/fesm2015/daffodil-category-driver-magento-testing.js +0 -216
- package/fesm2015/daffodil-category-driver-magento-testing.js.map +0 -1
- package/fesm2015/daffodil-category-driver-magento.js.map +0 -1
- package/fesm2015/daffodil-category-driver-testing.js +0 -76
- package/fesm2015/daffodil-category-driver-testing.js.map +0 -1
- package/fesm2015/daffodil-category-driver.js.map +0 -1
- package/fesm2015/daffodil-category-routing.js +0 -110
- package/fesm2015/daffodil-category-routing.js.map +0 -1
- package/fesm2015/daffodil-category-state-testing.js.map +0 -1
- package/fesm2015/daffodil-category-state.js.map +0 -1
- package/fesm2015/daffodil-category-testing.js +0 -452
- package/fesm2015/daffodil-category-testing.js.map +0 -1
- package/fesm2015/daffodil-category.js.map +0 -1
- package/routing/daffodil-category-routing.metadata.json +0 -1
- package/state/daffodil-category-state.metadata.json +0 -1
- package/state/testing/daffodil-category-state-testing.metadata.json +0 -1
- package/testing/daffodil-category-testing.metadata.json +0 -1
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Injectable, Inject, } from '@angular/core';
|
2
|
+
import { Actions, createEffect, ofType, } from '@ngrx/effects';
|
3
|
+
import { Store, select, } from '@ngrx/store';
|
4
|
+
import { of, } from 'rxjs';
|
5
|
+
import { switchMap, catchError, withLatestFrom, } from 'rxjs/operators';
|
6
|
+
import { DAFF_CATEGORY_ERROR_MATCHER, DaffCategoryRequestKind, daffCategoryFiltersToRequests, } from '@daffodil/category';
|
7
|
+
import { DaffCategoryDriver, } from '@daffodil/category/driver';
|
8
|
+
import { DaffProductGridLoadSuccess } from '@daffodil/product/state';
|
9
|
+
import { DaffCategoryPageLoadSuccess, DaffCategoryPageLoadFailure, DaffCategoryPageActionTypes, } from '../actions/category-page.actions';
|
10
|
+
import { getDaffCategorySelectors } from '../selectors/category.selector';
|
11
|
+
import * as i0 from "@angular/core";
|
12
|
+
import * as i1 from "@ngrx/effects";
|
13
|
+
import * as i2 from "@ngrx/store";
|
14
|
+
export class DaffCategoryPageEffects {
|
15
|
+
constructor(actions$, driver, errorMatcher, store) {
|
16
|
+
this.actions$ = actions$;
|
17
|
+
this.driver = driver;
|
18
|
+
this.errorMatcher = errorMatcher;
|
19
|
+
this.store = store;
|
20
|
+
this.categorySelectors = getDaffCategorySelectors();
|
21
|
+
this.loadCategoryPage$ = createEffect(() => this.actions$.pipe(ofType(DaffCategoryPageActionTypes.CategoryPageLoadAction), switchMap((action) => this.processCategoryGetRequest(action.request))));
|
22
|
+
this.loadCategoryPageByUrl$ = createEffect(() => this.actions$.pipe(ofType(DaffCategoryPageActionTypes.CategoryPageLoadByUrlAction), switchMap((action) => this.driver.getByUrl(action.request).pipe(switchMap((resp) => [
|
23
|
+
new DaffProductGridLoadSuccess(resp.products),
|
24
|
+
new DaffCategoryPageLoadSuccess(resp),
|
25
|
+
]), catchError((error) => of(new DaffCategoryPageLoadFailure(this.errorMatcher(error))))))));
|
26
|
+
this.changeCategoryPageSize$ = createEffect(() => this.actions$.pipe(ofType(DaffCategoryPageActionTypes.CategoryPageChangeSizeAction), withLatestFrom(this.store.pipe(select(this.categorySelectors.selectCategoryPageMetadata))), switchMap(([action, metadata]) => this.processCategoryGetRequest({
|
27
|
+
...metadata,
|
28
|
+
kind: DaffCategoryRequestKind.ID,
|
29
|
+
filter_requests: daffCategoryFiltersToRequests(metadata.filters),
|
30
|
+
page_size: action.pageSize,
|
31
|
+
}))));
|
32
|
+
this.changeCategoryCurrentPage$ = createEffect(() => this.actions$.pipe(ofType(DaffCategoryPageActionTypes.CategoryPageChangeCurrentPageAction), withLatestFrom(this.store.pipe(select(this.categorySelectors.selectCategoryPageMetadata))), switchMap(([action, metadata]) => this.processCategoryGetRequest({
|
33
|
+
...metadata,
|
34
|
+
kind: DaffCategoryRequestKind.ID,
|
35
|
+
filter_requests: daffCategoryFiltersToRequests(metadata.filters),
|
36
|
+
current_page: action.currentPage,
|
37
|
+
}))));
|
38
|
+
this.changeCategorySort$ = createEffect(() => this.actions$.pipe(ofType(DaffCategoryPageActionTypes.CategoryPageChangeSortingOptionAction), withLatestFrom(this.store.pipe(select(this.categorySelectors.selectCategoryPageMetadata))), switchMap(([action, metadata]) => this.processCategoryGetRequest({
|
39
|
+
...metadata,
|
40
|
+
kind: DaffCategoryRequestKind.ID,
|
41
|
+
filter_requests: daffCategoryFiltersToRequests(metadata.filters),
|
42
|
+
applied_sort_option: action.sort.option,
|
43
|
+
applied_sort_direction: action.sort.direction,
|
44
|
+
}))));
|
45
|
+
}
|
46
|
+
processCategoryGetRequest(payload) {
|
47
|
+
return this.driver.get(payload).pipe(switchMap((resp) => [
|
48
|
+
new DaffProductGridLoadSuccess(resp.products),
|
49
|
+
new DaffCategoryPageLoadSuccess(resp),
|
50
|
+
]), catchError((error) => of(new DaffCategoryPageLoadFailure(this.errorMatcher(error)))));
|
51
|
+
}
|
52
|
+
}
|
53
|
+
/** @nocollapse */ /** @nocollapse */ DaffCategoryPageEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryPageEffects, deps: [{ token: i1.Actions }, { token: DaffCategoryDriver }, { token: DAFF_CATEGORY_ERROR_MATCHER }, { token: i2.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
54
|
+
/** @nocollapse */ /** @nocollapse */ DaffCategoryPageEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryPageEffects });
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryPageEffects, decorators: [{
|
56
|
+
type: Injectable
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.Actions }, { type: undefined, decorators: [{
|
58
|
+
type: Inject,
|
59
|
+
args: [DaffCategoryDriver]
|
60
|
+
}] }, { type: undefined, decorators: [{
|
61
|
+
type: Inject,
|
62
|
+
args: [DAFF_CATEGORY_ERROR_MATCHER]
|
63
|
+
}] }, { type: i2.Store }]; } });
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktcGFnZS5lZmZlY3RzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jYXRlZ29yeS9zdGF0ZS9zcmMvZWZmZWN0cy9jYXRlZ29yeS1wYWdlLmVmZmVjdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFVBQVUsRUFDVixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUNMLE9BQU8sRUFDUCxZQUFZLEVBQ1osTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFDTCxLQUFLLEVBQ0wsTUFBTSxHQUNQLE1BQU0sYUFBYSxDQUFDO0FBQ3JCLE9BQU8sRUFDTCxFQUFFLEdBRUgsTUFBTSx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0ZWdvcnlQYWdlTG9hZFN1Y2Nlc3MocmVzcCksXG4gICAgICBdKSxcbiAgICAgIGNhdGNoRXJyb3IoKGVycm9yOiBEYWZmRXJyb3IpID0+IG9mKG5ldyBEYWZmQ2F0ZWdvcnlQYWdlTG9hZEZhaWx1cmUodGhpcy5lcnJvck1hdGNoZXIoZXJyb3IpKSkpLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Injectable, Inject, } from '@angular/core';
|
2
|
+
import { Actions, createEffect, ofType, } from '@ngrx/effects';
|
3
|
+
import { of, } from 'rxjs';
|
4
|
+
import { switchMap, catchError, mergeMap, } from 'rxjs/operators';
|
5
|
+
import { DAFF_CATEGORY_ERROR_MATCHER, } from '@daffodil/category';
|
6
|
+
import { DaffCategoryDriver, } from '@daffodil/category/driver';
|
7
|
+
import { DaffProductGridLoadSuccess } from '@daffodil/product/state';
|
8
|
+
import { DaffCategoryActionTypes, DaffCategoryLoadSuccess, DaffCategoryLoadFailure, } from '../actions/category.actions';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
import * as i1 from "@ngrx/effects";
|
11
|
+
export class DaffCategoryEffects {
|
12
|
+
constructor(actions$, driver, errorMatcher) {
|
13
|
+
this.actions$ = actions$;
|
14
|
+
this.driver = driver;
|
15
|
+
this.errorMatcher = errorMatcher;
|
16
|
+
this.loadCategory$ = createEffect(() => this.actions$.pipe(ofType(DaffCategoryActionTypes.CategoryLoadAction), mergeMap((action) => this.driver.get(action.request).pipe(switchMap((resp) => of(new DaffProductGridLoadSuccess(resp.products), new DaffCategoryLoadSuccess(resp))), catchError((error) => of(new DaffCategoryLoadFailure(this.errorMatcher(error))))))));
|
17
|
+
}
|
18
|
+
}
|
19
|
+
/** @nocollapse */ /** @nocollapse */ DaffCategoryEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryEffects, deps: [{ token: i1.Actions }, { token: DaffCategoryDriver }, { token: DAFF_CATEGORY_ERROR_MATCHER }], target: i0.ɵɵFactoryTarget.Injectable });
|
20
|
+
/** @nocollapse */ /** @nocollapse */ DaffCategoryEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryEffects });
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryEffects, decorators: [{
|
22
|
+
type: Injectable
|
23
|
+
}], ctorParameters: function () { return [{ type: i1.Actions }, { type: undefined, decorators: [{
|
24
|
+
type: Inject,
|
25
|
+
args: [DaffCategoryDriver]
|
26
|
+
}] }, { type: undefined, decorators: [{
|
27
|
+
type: Inject,
|
28
|
+
args: [DAFF_CATEGORY_ERROR_MATCHER]
|
29
|
+
}] }]; } });
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkuZWZmZWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY2F0ZWdvcnkvc3RhdGUvc3JjL2VmZmVjdHMvY2F0ZWdvcnkuZWZmZWN0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsVUFBVSxFQUNWLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQ0wsT0FBTyxFQUNQLFlBQVksRUFDWixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUNMLEVBQUUsR0FFSCxNQUFNLE1BQU0sQ0FBQztBQUNkLE9BQU8sRUFDTCxTQUFTLEVBQ1QsVUFBVSxFQUNWLFFBQVEsR0FDVCxNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFHTCwyQkFBMkIsR0FDNUIsTUFBTSxvQkFB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RyaXZlci5nZXQoYWN0aW9uLnJlcXVlc3QpLnBpcGUoXG4gICAgICBzd2l0Y2hNYXAoKHJlc3A6IERhZmZHZXRDYXRlZ29yeVJlc3BvbnNlPFYsVz4pID0+IG9mKFxuICAgICAgICBuZXcgRGFmZlByb2R1Y3RHcmlkTG9hZFN1Y2Nlc3MocmVzcC5wcm9kdWN0cyksXG4gICAgICAgIG5ldyBEYWZmQ2F0ZWdvcnlMb2FkU3VjY2VzcyhyZXNwKSxcbiAgICAgICkpLFxuICAgICAgY2F0Y2hFcnJvcigoZXJyb3I6IERhZmZFcnJvcikgPT4gb2YobmV3IERhZmZDYXRlZ29yeUxvYWRGYWlsdXJlKHRoaXMuZXJyb3JNYXRjaGVyKGVycm9yKSkpKSxcbiAgICApKSxcbiAgKSk7XG59XG4iXX0=
|
File without changes
|
package/{esm2015/state/facades/category.facade.js → esm2020/state/facades/category.facade.mjs}
RENAMED
@@ -51,14 +51,12 @@ export class DaffCategoryFacade {
|
|
51
51
|
this.store.dispatch(action);
|
52
52
|
}
|
53
53
|
}
|
54
|
-
/** @nocollapse */ DaffCategoryFacade.ɵ
|
55
|
-
DaffCategoryFacade
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
{ type: Store }
|
63
|
-
];
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkuZmFjYWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jYXRlZ29yeS9zdGF0ZS9zcmMvZmFjYWRlcy9jYXRlZ29yeS5mYWNhZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQ0wsS0FBSyxFQUNMLE1BQU0sR0FFUCxNQUFNLGFBQW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Vnb3J5TG9hZGluZyQgPSB0aGlzLnN0b3JlLnBpcGUoc2VsZWN0KHRoaXMuY2F0ZWdvcnlTZWxlY3RvcnMuc2VsZWN0Q2F0ZWdvcnlMb2FkaW5nKSk7XG5cdCAgdGhpcy5wcm9kdWN0c0xvYWRpbmckID0gdGhpcy5zdG9yZS5waXBlKHNlbGVjdCh0aGlzLmNhdGVnb3J5U2VsZWN0b3JzLnNlbGVjdENhdGVnb3J5UHJvZHVjdHNMb2FkaW5nKSk7XG5cdCAgdGhpcy5lcnJvcnMkID0gdGhpcy5zdG9yZS5waXBlKHNlbGVjdCh0aGlzLmNhdGVnb3J5U2VsZWN0b3JzLnNlbGVjdENhdGVnb3J5RXJyb3JzKSk7XG5cdCAgdGhpcy5pc0NhdGVnb3J5RW1wdHkkID0gdGhpcy5zdG9yZS5waXBlKHNlbGVjdCh0aGlzLmNhdGVnb3J5U2VsZWN0b3JzLnNlbGVjdElzQ2F0ZWdvcnlQYWdlRW1wdHkpKTtcblx0fVxuXG5cdC8qKlxuXHQgKiBEaXNwYXRjaGVzIHRoZSBnaXZlbiBhY3Rpb24uXG5cdCAqXG5cdCAqIEBwYXJhbSBhY3Rpb24gYWN0aW9uIHRvIGRpc3BhdGNoLlxuXHQgKi9cblx0ZGlzcGF0Y2goYWN0aW9uOiBBY3Rpb24pIHtcblx0ICB0aGlzLnN0b3JlLmRpc3BhdGNoKGFjdGlvbik7XG5cdH1cbn1cbiJdfQ==
|
54
|
+
/** @nocollapse */ /** @nocollapse */ DaffCategoryFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
55
|
+
/** @nocollapse */ /** @nocollapse */ DaffCategoryFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryFacade, providedIn: 'root' });
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCategoryFacade, decorators: [{
|
57
|
+
type: Injectable,
|
58
|
+
args: [{
|
59
|
+
providedIn: 'root',
|
60
|
+
}]
|
61
|
+
}], ctorParameters: function () { return [{ type: i1.Store }]; } });
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkuZmFjYWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jYXRlZ29yeS9zdGF0ZS9zcmMvZmFjYWRlcy9jYXRlZ29yeS5mYWNhZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQ0wsS0FBSyxFQUNMLE1BQU0sR0FFUCxNQUFNLGFBQWEsQ0FBQztBQXFCckIsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7OztBQUcxRTs7Ozs7R0FLRztBQUlILE1BQU0sT0FBTyxrQkFBa0I7SUF5RDlCLFlBQW9CLEtBQThDO1FBQTlDLFVBQUssR0FBTCxLQUFLLENBQXlDO1FBcEQxRCxzQkFBaUIsR0FBRyx3QkFBd0IsRUFBTyxDQUFDO1FBcUQxRCxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsaUJBQWlCLENBQUMscUJBQXFCLENBQUMsQ0FBQyxDQUFDO1FBQ3ZGLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxpQkFBaUIsQ0FBQywwQkFBMEIsQ0FBQyxDQUFDLENBQUM7U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5U2VsZWN0b3JzLnNlbGVjdElzQ2F0ZWdvcnlQYWdlRW1wdHkpKTtcblx0fVxuXG5cdC8qKlxuXHQgKiBEaXNwYXRjaGVzIHRoZSBnaXZlbiBhY3Rpb24uXG5cdCAqXG5cdCAqIEBwYXJhbSBhY3Rpb24gYWN0aW9uIHRvIGRpc3BhdGNoLlxuXHQgKi9cblx0ZGlzcGF0Y2goYWN0aW9uOiBBY3Rpb24pIHtcblx0ICB0aGlzLnN0b3JlLmRpc3BhdGNoKGFjdGlvbik7XG5cdH1cbn1cbiJdfQ==
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,157 @@
|
|
1
|
+
import { daffApplyRequestsToFilters, daffRemoveRequestsFromFilters, daffClearFilters, daffToggleRequestOnFilters, } from '@daffodil/category';
|
2
|
+
import { DaffCategoryPageFilterActionTypes, } from '../../actions/category-page-filter.actions';
|
3
|
+
import { DaffCategoryPageActionTypes } from '../../actions/category-page.actions';
|
4
|
+
import { buildMetadataFromRequest } from './pure/build-metadata-from-request';
|
5
|
+
export const initialState = {
|
6
|
+
categoryPageMetadata: {
|
7
|
+
id: null,
|
8
|
+
applied_sort_option: null,
|
9
|
+
applied_sort_direction: null,
|
10
|
+
current_page: null,
|
11
|
+
page_size: null,
|
12
|
+
total_pages: null,
|
13
|
+
filters: {},
|
14
|
+
sort_options: {
|
15
|
+
default: null,
|
16
|
+
options: [],
|
17
|
+
},
|
18
|
+
total_products: null,
|
19
|
+
product_ids: [],
|
20
|
+
},
|
21
|
+
daffState: "Stable" /* Stable */,
|
22
|
+
categoryLoading: false,
|
23
|
+
productsLoading: false,
|
24
|
+
errors: [],
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Returns the state for category data except for category entities.
|
28
|
+
*/
|
29
|
+
export function daffCategoryReducer(state = initialState, action) {
|
30
|
+
switch (action.type) {
|
31
|
+
case DaffCategoryPageActionTypes.CategoryPageLoadAction:
|
32
|
+
case DaffCategoryPageActionTypes.CategoryPageLoadByUrlAction:
|
33
|
+
return {
|
34
|
+
...state,
|
35
|
+
categoryLoading: true,
|
36
|
+
productsLoading: true,
|
37
|
+
daffState: "Resolving" /* Resolving */,
|
38
|
+
categoryPageMetadata: {
|
39
|
+
...initialState.categoryPageMetadata,
|
40
|
+
...buildMetadataFromRequest(action.request),
|
41
|
+
id: null,
|
42
|
+
},
|
43
|
+
};
|
44
|
+
case DaffCategoryPageActionTypes.CategoryPageChangeSizeAction:
|
45
|
+
return {
|
46
|
+
...state,
|
47
|
+
productsLoading: true,
|
48
|
+
daffState: "Mutating" /* Mutating */,
|
49
|
+
categoryPageMetadata: {
|
50
|
+
...state.categoryPageMetadata,
|
51
|
+
page_size: action.pageSize,
|
52
|
+
},
|
53
|
+
};
|
54
|
+
case DaffCategoryPageActionTypes.CategoryPageChangeCurrentPageAction:
|
55
|
+
return {
|
56
|
+
...state,
|
57
|
+
productsLoading: true,
|
58
|
+
daffState: "Mutating" /* Mutating */,
|
59
|
+
categoryPageMetadata: {
|
60
|
+
...state.categoryPageMetadata,
|
61
|
+
current_page: action.currentPage,
|
62
|
+
},
|
63
|
+
};
|
64
|
+
case DaffCategoryPageActionTypes.CategoryPageChangeSortingOptionAction:
|
65
|
+
return {
|
66
|
+
...state,
|
67
|
+
productsLoading: true,
|
68
|
+
daffState: "Mutating" /* Mutating */,
|
69
|
+
categoryPageMetadata: {
|
70
|
+
...state.categoryPageMetadata,
|
71
|
+
applied_sort_option: action.sort.option,
|
72
|
+
applied_sort_direction: action.sort.direction,
|
73
|
+
},
|
74
|
+
};
|
75
|
+
case DaffCategoryPageFilterActionTypes.CategoryPageChangeFiltersAction:
|
76
|
+
case DaffCategoryPageFilterActionTypes.CategoryPageReplaceFiltersAction:
|
77
|
+
return {
|
78
|
+
...state,
|
79
|
+
productsLoading: true,
|
80
|
+
daffState: "Mutating" /* Mutating */,
|
81
|
+
categoryPageMetadata: {
|
82
|
+
...state.categoryPageMetadata,
|
83
|
+
filters: daffApplyRequestsToFilters(action.filters, daffClearFilters(state.categoryPageMetadata.filters)),
|
84
|
+
},
|
85
|
+
};
|
86
|
+
case DaffCategoryPageFilterActionTypes.CategoryPageApplyFiltersAction:
|
87
|
+
return {
|
88
|
+
...state,
|
89
|
+
productsLoading: true,
|
90
|
+
daffState: "Mutating" /* Mutating */,
|
91
|
+
categoryPageMetadata: {
|
92
|
+
...state.categoryPageMetadata,
|
93
|
+
filters: daffApplyRequestsToFilters(action.filters, state.categoryPageMetadata.filters),
|
94
|
+
},
|
95
|
+
};
|
96
|
+
case DaffCategoryPageFilterActionTypes.CategoryPageClearFiltersAction:
|
97
|
+
return {
|
98
|
+
...state,
|
99
|
+
productsLoading: true,
|
100
|
+
daffState: "Mutating" /* Mutating */,
|
101
|
+
categoryPageMetadata: {
|
102
|
+
...state.categoryPageMetadata,
|
103
|
+
filters: daffClearFilters(state.categoryPageMetadata.filters),
|
104
|
+
},
|
105
|
+
};
|
106
|
+
case DaffCategoryPageFilterActionTypes.CategoryPageRemoveFiltersAction:
|
107
|
+
return {
|
108
|
+
...state,
|
109
|
+
productsLoading: true,
|
110
|
+
daffState: "Mutating" /* Mutating */,
|
111
|
+
categoryPageMetadata: {
|
112
|
+
...state.categoryPageMetadata,
|
113
|
+
filters: daffRemoveRequestsFromFilters(action.filters, state.categoryPageMetadata.filters),
|
114
|
+
},
|
115
|
+
};
|
116
|
+
case DaffCategoryPageFilterActionTypes.CategoryPageToggleFilterAction:
|
117
|
+
return {
|
118
|
+
...state,
|
119
|
+
productsLoading: true,
|
120
|
+
daffState: "Mutating" /* Mutating */,
|
121
|
+
categoryPageMetadata: {
|
122
|
+
...state.categoryPageMetadata,
|
123
|
+
filters: daffToggleRequestOnFilters(action.filter, state.categoryPageMetadata.filters),
|
124
|
+
},
|
125
|
+
};
|
126
|
+
case DaffCategoryPageActionTypes.CategoryPageLoadSuccessAction:
|
127
|
+
return {
|
128
|
+
...state,
|
129
|
+
categoryLoading: false,
|
130
|
+
productsLoading: false,
|
131
|
+
daffState: "Stable" /* Stable */,
|
132
|
+
categoryPageMetadata: {
|
133
|
+
...state.categoryPageMetadata,
|
134
|
+
id: action.response.categoryPageMetadata.id,
|
135
|
+
current_page: action.response.categoryPageMetadata.current_page,
|
136
|
+
page_size: action.response.categoryPageMetadata.page_size,
|
137
|
+
filters: action.response.categoryPageMetadata.filters,
|
138
|
+
sort_options: action.response.categoryPageMetadata.sort_options,
|
139
|
+
total_pages: action.response.categoryPageMetadata.total_pages,
|
140
|
+
total_products: action.response.categoryPageMetadata.total_products,
|
141
|
+
product_ids: action.response.categoryPageMetadata.product_ids,
|
142
|
+
applied_sort_option: state.categoryPageMetadata.applied_sort_option || action.response.categoryPageMetadata.sort_options.default,
|
143
|
+
},
|
144
|
+
};
|
145
|
+
case DaffCategoryPageActionTypes.CategoryPageLoadFailureAction:
|
146
|
+
return {
|
147
|
+
...state,
|
148
|
+
categoryLoading: false,
|
149
|
+
productsLoading: false,
|
150
|
+
errors: [action.errorMessage],
|
151
|
+
daffState: "Stable" /* Stable */,
|
152
|
+
};
|
153
|
+
default:
|
154
|
+
return state;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkucmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY2F0ZWdvcnkvc3RhdGUvc3JjL3JlZHVjZXJzL2NhdGVnb3J5L2NhdGVnb3J5LnJlZHVjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLDBCQUEwQixFQUMxQiw2QkFBNkIsRUFDN0IsZ0JBQWdCLEVBQ2hCLDBCQUEwQixHQUMzQixNQUFNLG9CQUFvQixDQUFDO0FBSTVCLE9BQU8sRUFDTCxpQ0FBaUMsR0FFbEMsTUFBTSw0Q0FBNEMsQ0FBQztBQUVwRCxPQUFPLEVBQ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RhZGF0YS50b3RhbF9wYWdlcyxcbiAgICAgICAgICB0b3RhbF9wcm9kdWN0czogYWN0aW9uLnJlc3BvbnNlLmNhdGVnb3J5UGFnZU1ldGFkYXRhLnRvdGFsX3Byb2R1Y3RzLFxuICAgICAgICAgIHByb2R1Y3RfaWRzOiBhY3Rpb24ucmVzcG9uc2UuY2F0ZWdvcnlQYWdlTWV0YWRhdGEucHJvZHVjdF9pZHMsXG4gICAgICAgICAgYXBwbGllZF9zb3J0X29wdGlvbjogc3RhdGUuY2F0ZWdvcnlQYWdlTWV0YWRhdGEuYXBwbGllZF9zb3J0X29wdGlvbiB8fCBhY3Rpb24ucmVzcG9uc2UuY2F0ZWdvcnlQYWdlTWV0YWRhdGEuc29ydF9vcHRpb25zLmRlZmF1bHQsXG4gICAgICAgIH0sXG4gICAgICB9O1xuXG4gICAgY2FzZSBEYWZmQ2F0ZWdvcnlQYWdlQWN0aW9uVHlwZXMuQ2F0ZWdvcnlQYWdlTG9hZEZhaWx1cmVBY3Rpb246XG4gICAgICByZXR1cm4ge1xuICAgICAgICAuLi5zdGF0ZSxcbiAgICAgICAgY2F0ZWdvcnlMb2FkaW5nOiBmYWxzZSxcbiAgICAgICAgcHJvZHVjdHNMb2FkaW5nOiBmYWxzZSxcbiAgICAgICAgZXJyb3JzOiBbYWN0aW9uLmVycm9yTWVzc2FnZV0sXG4gICAgICAgIGRhZmZTdGF0ZTogRGFmZlN0YXRlLlN0YWJsZSxcbiAgICAgIH07XG4gICAgZGVmYXVsdDpcbiAgICAgIHJldHVybiBzdGF0ZTtcbiAgfVxufVxuIl19
|
File without changes
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { DaffCategoryPageActionTypes, } from '../../actions/category-page.actions';
|
2
|
+
import { DaffCategoryActionTypes, } from '../../actions/category.actions';
|
3
|
+
import { daffCategoryEntitiesAdapter } from './category-entities-adapter';
|
4
|
+
/**
|
5
|
+
* A reducer function to store category entities from DaffCategoryLoadSuccess and DaffCategoryPageLoadSuccess actions.
|
6
|
+
*/
|
7
|
+
export function daffCategoryEntitiesReducer(state = daffCategoryEntitiesAdapter().getInitialState(), action) {
|
8
|
+
switch (action.type) {
|
9
|
+
case DaffCategoryActionTypes.CategoryLoadSuccessAction:
|
10
|
+
case DaffCategoryPageActionTypes.CategoryPageLoadSuccessAction:
|
11
|
+
return daffCategoryEntitiesAdapter().upsertOne({
|
12
|
+
id: action.response.category.id,
|
13
|
+
...action.response.category,
|
14
|
+
}, state);
|
15
|
+
default:
|
16
|
+
return state;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZW50aXRpZXMucmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY2F0ZWdvcnkvc3RhdGUvc3JjL3JlZHVjZXJzL2NhdGVnb3J5LWVudGl0aWVzL2NhdGVnb3J5LWVudGl0aWVzLnJlZHVjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUUEsT0FBTyxFQUNMLDJCQUEyQixHQUU1QixNQUFNLHFDQUFxQyxDQUFDO0FBQzdDLE9BQU8sRUFDTCx1QkFBdUIsR0FFeEIsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN4QyxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUUxRTs7R0FFRztBQUNILE1BQU0sVUFBVSwyQkFBMkIsQ0FJekMsUUFBUSwyQkFBMkIsRUFBSyxDQUFDLGVBQWUsRUFBRSxFQUMxRCxNQUErRDtJQUUvRCxRQUFRLE1BQU0sQ0FBQyxJQUFJLEVBQUU7UUFDbkIsS0FBSyx1QkFBdUIsQ0FBQyx5QkFBeUIsQ0FBQztRQUN2RCxLQUFLLDJCQUEyQixDQUFDLDZCQUE2QjtZQUM1RCxPQUFPLDJCQ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9hZFN1Y2Nlc3MgYWN0aW9ucy5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGRhZmZDYXRlZ29yeUVudGl0aWVzUmVkdWNlcjxcbiAgViBleHRlbmRzIERhZmZHZW5lcmljQ2F0ZWdvcnk8Vj4gPSBEYWZmQ2F0ZWdvcnksXG4gIFcgZXh0ZW5kcyBEYWZmUHJvZHVjdCA9IERhZmZQcm9kdWN0XG4+KFxuICBzdGF0ZSA9IGRhZmZDYXRlZ29yeUVudGl0aWVzQWRhcHRlcjxWPigpLmdldEluaXRpYWxTdGF0ZSgpLFxuICBhY3Rpb246IERhZmZDYXRlZ29yeUFjdGlvbnM8VixXPiB8IERhZmZDYXRlZ29yeVBhZ2VBY3Rpb25zPFYsVz4sXG4pOiBFbnRpdHlTdGF0ZTxWPiB7XG4gIHN3aXRjaCAoYWN0aW9uLnR5cGUpIHtcbiAgICBjYXNlIERhZmZDYXRlZ29yeUFjdGlvblR5cGVzLkNhdGVnb3J5TG9hZFN1Y2Nlc3NBY3Rpb246XG4gICAgY2FzZSBEYWZmQ2F0ZWdvcnlQYWdlQWN0aW9uVHlwZXMuQ2F0ZWdvcnlQYWdlTG9hZFN1Y2Nlc3NBY3Rpb246XG4gICAgICByZXR1cm4gZGFmZkNhdGVnb3J5RW50aXRpZXNBZGFwdGVyPFY+KCkudXBzZXJ0T25lKFxuICAgICAgICB7XG4gICAgICAgICAgaWQ6IGFjdGlvbi5yZXNwb25zZS5jYXRlZ29yeS5pZCxcbiAgICAgICAgICAuLi5hY3Rpb24ucmVzcG9uc2UuY2F0ZWdvcnksXG4gICAgICAgIH0sXG4gICAgICAgIHN0YXRlLFxuICAgICAgKTtcbiAgICBkZWZhdWx0OlxuICAgICAgcmV0dXJuIHN0YXRlO1xuICB9XG59XG4iXX0=
|
File without changes
|
package/{esm2015/state/reducers/category-reducers.js → esm2020/state/reducers/category-reducers.mjs}
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { createSelector, } from '@ngrx/store';
|
2
|
+
import { daffCategoryEntitiesAdapter } from '../../reducers/category-entities/category-entities-adapter';
|
3
|
+
import { getDaffCategoryFeatureSelector } from '../category-feature.selector';
|
4
|
+
const createCategoryFeatureSelectors = () => {
|
5
|
+
const entitiesSelectors = daffCategoryEntitiesAdapter().getSelectors();
|
6
|
+
const categoryFeatureState = getDaffCategoryFeatureSelector().selectCategoryFeatureState;
|
7
|
+
const selectCategoryEntitiesState = createSelector(categoryFeatureState, (state) => state.categoryEntities);
|
8
|
+
const selectCategoryIds = createSelector(selectCategoryEntitiesState, entitiesSelectors.selectIds);
|
9
|
+
const selectCategoryEntities = createSelector(selectCategoryEntitiesState, entitiesSelectors.selectEntities);
|
10
|
+
const selectAllCategories = createSelector(selectCategoryEntitiesState, entitiesSelectors.selectAll);
|
11
|
+
const selectCategoryTotal = createSelector(selectCategoryEntitiesState, entitiesSelectors.selectTotal);
|
12
|
+
return {
|
13
|
+
selectCategoryEntitiesState,
|
14
|
+
selectCategoryIds,
|
15
|
+
selectCategoryEntities,
|
16
|
+
selectAllCategories,
|
17
|
+
selectCategoryTotal,
|
18
|
+
};
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* A function that returns all selectors related to category entities.
|
22
|
+
*/
|
23
|
+
export const getDaffCategoryEntitiesSelectors = (() => {
|
24
|
+
let cache;
|
25
|
+
return () => cache = cache
|
26
|
+
? cache
|
27
|
+
: createCategoryFeatureSelectors();
|
28
|
+
})();
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZW50aXRpZXMuc2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NhdGVnb3J5L3N0YXRlL3NyYy9zZWxlY3RvcnMvY2F0ZWdvcnktZW50aXRpZXMvY2F0ZWdvcnktZW50aXRpZXMuc2VsZWN0b3IudHM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2FjaGVcbiAgICA6IGNyZWF0ZUNhdGVnb3J5RmVhdHVyZVNlbGVjdG9yczxWPigpO1xufSkoKTtcbiJdfQ==
|
@@ -1,14 +1,12 @@
|
|
1
1
|
import { createFeatureSelector, } from '@ngrx/store';
|
2
2
|
import { DAFF_CATEGORY_STORE_FEATURE_KEY, } from '../reducers/public_api';
|
3
|
-
|
3
|
+
/**
|
4
|
+
* A function that returns a selector for the entire category feature state.
|
5
|
+
*/
|
6
|
+
export const getDaffCategoryFeatureSelector = (() => {
|
4
7
|
let cache;
|
5
8
|
return () => cache = cache
|
6
9
|
? cache
|
7
10
|
: { selectCategoryFeatureState: createFeatureSelector(DAFF_CATEGORY_STORE_FEATURE_KEY) };
|
8
|
-
};
|
9
|
-
|
10
|
-
* A function that returns a selector for the entire category feature state.
|
11
|
-
*/
|
12
|
-
export const getDaffCategoryFeatureSelector = (ɵ0)();
|
13
|
-
export { ɵ0 };
|
14
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZmVhdHVyZS5zZWxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY2F0ZWdvcnkvc3RhdGUvc3JjL3NlbGVjdG9ycy9jYXRlZ29yeS1mZWF0dXJlLnNlbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxxQkFBcUIsR0FFdEIsTUFBTSxhQUFhLENBQUM7QUFPckIsT0FBTyxFQUVMLCtCQUErQixHQUVoQyxNQUFNLHdCQUF3QixDQUFDO1dBY2UsR0FBRyxFQUFFO0lBQ2xELElBQUksS0FBSyxDQUFDO0lBQ1YsT0FBTyxHQUE4RSxFQUFFLENBQUMsS0FBSyxHQUFHLEtBQUs7UUFDbkcsQ0FBQyxDQUFDLEtBQUs7UUFDUCxDQUFDLENBQUMsRUFBRSwwQkFB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1bmN0aW9uIHRoYXQgcmV0dXJucyBhIHNlbGVjdG9yIGZvciB0aGUgZW50aXJlIGNhdGVnb3J5IGZlYXR1cmUgc3RhdGUuXG4gKi9cbmV4cG9ydCBjb25zdCBnZXREYWZmQ2F0ZWdvcnlGZWF0dXJlU2VsZWN0b3IgPSAoKCkgPT4ge1xuICBsZXQgY2FjaGU7XG4gIHJldHVybiA8ViBleHRlbmRzIERhZmZHZW5lcmljQ2F0ZWdvcnk8Vj4+KCk6IERhZmZDYXRlZ29yeUZlYXR1cmVNZW1vaXplZFNlbGVjdG9yczxWPiA9PiBjYWNoZSA9IGNhY2hlXG4gICAgPyBjYWNoZVxuICAgIDogeyBzZWxlY3RDYXRlZ29yeUZlYXR1cmVTdGF0ZTogY3JlYXRlRmVhdHVyZVNlbGVjdG9yPERhZmZDYXRlZ29yeVN0YXRlUm9vdFNsaWNlPFY+LERhZmZDYXRlZ29yeVJlZHVjZXJzU3RhdGU8Vj4+KERBRkZfQ0FURUdPUllfU1RPUkVfRkVBVFVSRV9LRVkpIH07XG59KSgpO1xuIl19
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { createSelector, } from '@ngrx/store';
|
2
|
+
import { daffCategoryComputeAppliedFilters, } from '@daffodil/category';
|
3
|
+
import { getDaffCategoryFeatureSelector } from '../category-feature.selector';
|
4
|
+
const createCategoryPageSelectors = () => {
|
5
|
+
const selectCategoryFeatureState = getDaffCategoryFeatureSelector().selectCategoryFeatureState;
|
6
|
+
const selectCategoryState = createSelector(selectCategoryFeatureState, (state) => state.category);
|
7
|
+
const selectCategoryPageMetadata = createSelector(selectCategoryState, (state) => state.categoryPageMetadata);
|
8
|
+
const selectCategoryCurrentPage = createSelector(selectCategoryPageMetadata, (state) => state.current_page);
|
9
|
+
const selectCategoryTotalPages = createSelector(selectCategoryPageMetadata, (state) => state.total_pages);
|
10
|
+
const selectCategoryPageSize = createSelector(selectCategoryPageMetadata, (state) => state.page_size);
|
11
|
+
const selectCategoryFilters = createSelector(selectCategoryPageMetadata, (state) => state.filters);
|
12
|
+
const selectCategorySortOptions = createSelector(selectCategoryPageMetadata, (state) => state.sort_options.options);
|
13
|
+
const selectCategoryPageProductIds = createSelector(selectCategoryPageMetadata, (state) => state.product_ids);
|
14
|
+
const selectIsCategoryPageEmpty = createSelector(selectCategoryPageProductIds, (state) => !state.length);
|
15
|
+
const selectCategoryPageTotalProducts = createSelector(selectCategoryPageMetadata, (state) => state.total_products);
|
16
|
+
const selectCategoryPageAppliedFilters = createSelector(selectCategoryFilters, (filters) => daffCategoryComputeAppliedFilters(filters));
|
17
|
+
const selectCategoryPageAppliedSortOption = createSelector(selectCategoryPageMetadata, (state) => state.applied_sort_option);
|
18
|
+
const selectCategoryPageAppliedSortDirection = createSelector(selectCategoryPageMetadata, (state) => state.applied_sort_direction);
|
19
|
+
const selectCategoryPageState = createSelector(selectCategoryState, (state) => state.daffState);
|
20
|
+
const selectCurrentCategoryId = createSelector(selectCategoryPageMetadata, (state) => state.id);
|
21
|
+
const selectCategoryLoading = createSelector(selectCategoryState, (state) => state.categoryLoading);
|
22
|
+
const selectCategoryProductsLoading = createSelector(selectCategoryState, (state) => state.productsLoading);
|
23
|
+
const selectCategoryErrors = createSelector(selectCategoryState, (state) => state.errors);
|
24
|
+
const selectIsCategoryPageMutating = createSelector(selectCategoryPageState, (daffState) => daffState === "Mutating" /* Mutating */);
|
25
|
+
const selectIsCategoryPageResolving = createSelector(selectCategoryPageState, (daffState) => daffState === "Resolving" /* Resolving */);
|
26
|
+
return {
|
27
|
+
selectCategoryState,
|
28
|
+
selectCategoryPageMetadata,
|
29
|
+
selectCategoryCurrentPage,
|
30
|
+
selectCategoryTotalPages,
|
31
|
+
selectCategoryPageSize,
|
32
|
+
selectCategoryFilters,
|
33
|
+
selectCategorySortOptions,
|
34
|
+
selectCategoryPageProductIds,
|
35
|
+
selectIsCategoryPageEmpty,
|
36
|
+
selectCategoryPageTotalProducts,
|
37
|
+
selectCategoryPageAppliedFilters,
|
38
|
+
selectCategoryPageAppliedSortOption,
|
39
|
+
selectCategoryPageAppliedSortDirection,
|
40
|
+
selectCategoryPageState,
|
41
|
+
selectCurrentCategoryId,
|
42
|
+
selectCategoryLoading,
|
43
|
+
selectCategoryProductsLoading,
|
44
|
+
selectCategoryErrors,
|
45
|
+
selectIsCategoryPageMutating,
|
46
|
+
selectIsCategoryPageResolving,
|
47
|
+
};
|
48
|
+
};
|
49
|
+
/**
|
50
|
+
* A function that returns all selectors related to the category page metadata, category loading, and errors.
|
51
|
+
* Returns {@link DaffCategoryPageMemoizedSelectors}.
|
52
|
+
*/
|
53
|
+
export const getDaffCategoryPageSelectors = (() => {
|
54
|
+
let cache;
|
55
|
+
return () => cache = cache
|
56
|
+
? cache
|
57
|
+
: createCategoryPageSelectors();
|
58
|
+
})();
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktcGFnZS5zZWxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY2F0ZWdvcnkvc3RhdGUvc3JjL3NlbGVjdG9ycy9jYXRlZ29yeS1wYWdlL2NhdGVnb3J5LXBhZ2Uuc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLGNBQWMsR0FFZixNQUFNLGFBQWEsQ0FBQztBQUVyQixPQUFPLEVBS0wsaUNBQWlDLEdBQ2xDLE1BQU0sb0JBQW9CLENBQUM7QUFZNUIsT0FBTyxFQUFFLDhCQUE4QixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUEyRjlFLE1BQU0sMkJBQTJCLEdBQUcsR0FBMkUsRUFBRTtJQUMvRyxNQUFNLDBCQUEwQixHQUFHLDhCQUE4QixFQUFLLENBQUMsMEJBQTBCLENBQUM7SUFFbEcsTUFBTSxtQkFBbUIsR0FBRyxjQUFjLENBQ3hD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