@esolve/ng-esolve-connect 0.19.0 → 0.20.2
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/esm2020/lib/cart/esolve-cart-item.model.mjs +3 -2
- package/esm2020/lib/cart/esolve-cart.service.mjs +2 -2
- package/esm2020/lib/locations/esolve-locations.service.mjs +10 -3
- package/esm2020/lib/ng-esolve-connect.module.mjs +3 -3
- package/esm2020/lib/stock/classes/esolve-stock-item-base.model.mjs +9 -1
- package/esm2020/lib/stock/interfaces/esolve-stock-base-record.interface.mjs +1 -1
- package/esm2020/media/classes/esolve-heading.model.mjs +7 -0
- package/esm2020/media/classes/esolve-media-article.model.mjs +54 -0
- package/esm2020/media/classes/esolve-media-group.model.mjs +15 -0
- package/esm2020/media/classes/esolve-media-layout-section.model.mjs +18 -0
- package/esm2020/media/classes/index.mjs +5 -0
- package/esm2020/media/components/index.mjs +3 -0
- package/esm2020/media/components/media-layout/esolve-media-layout.component.mjs +41 -0
- package/esm2020/media/components/media-section/esolve-media-section.component.mjs +46 -0
- package/esm2020/media/esolve-connect-media-config.token.mjs +3 -0
- package/esm2020/media/esolve-connect-media.config.mjs +2 -0
- package/esm2020/media/esolve-ng-esolve-connect-media.mjs +5 -0
- package/esm2020/media/esolve-section-data.token.mjs +3 -0
- package/esm2020/media/interfaces/esolve-heading-record.interface.mjs +2 -0
- package/esm2020/media/interfaces/esolve-layout-config.interface.mjs +2 -0
- package/esm2020/media/interfaces/esolve-layout-section-config.interface.mjs +2 -0
- package/esm2020/media/interfaces/esolve-media-group-record.interface.mjs +2 -0
- package/esm2020/media/interfaces/esolve-media-layout-section-record.interface.mjs +2 -0
- package/esm2020/media/interfaces/esolve-media-record.interface.mjs +2 -0
- package/esm2020/media/interfaces/index.mjs +7 -0
- package/esm2020/media/ng-esolve-connect-media.module.mjs +54 -0
- package/esm2020/media/public_api.mjs +10 -0
- package/esm2020/media/services/esolve-media-layout.service.mjs +145 -0
- package/esm2020/media/services/esolve-media.service.mjs +114 -0
- package/esm2020/media/services/index.mjs +3 -0
- package/esm2020/media/types/esolve-media-layout-section-type.type.mjs +2 -0
- package/esm2020/media/types/index.mjs +2 -0
- package/esm2020/public-api.mjs +3 -3
- package/esolve-ng-esolve-connect.d.ts.map +1 -0
- package/fesm2015/esolve-ng-esolve-connect-media.mjs +487 -0
- package/fesm2015/esolve-ng-esolve-connect-media.mjs.map +1 -0
- package/fesm2015/esolve-ng-esolve-connect.mjs +23 -150
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect-media.mjs +480 -0
- package/fesm2020/esolve-ng-esolve-connect-media.mjs.map +1 -0
- package/fesm2020/esolve-ng-esolve-connect.mjs +23 -148
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/address/esolve-address-record.interface.d.ts.map +1 -0
- package/lib/account/address/esolve-address-response.interface.d.ts.map +1 -0
- package/lib/account/address/esolve-address-result.model.d.ts.map +1 -0
- package/lib/account/address/esolve-address-set-data.interface.d.ts.map +1 -0
- package/lib/account/address/esolve-address-type.type.d.ts.map +1 -0
- package/lib/account/address/esolve-address.model.d.ts.map +1 -0
- package/lib/account/address/index.d.ts.map +1 -0
- package/lib/account/esolve-account.service.d.ts.map +1 -0
- package/lib/account/esolve-geocode-result.interface.d.ts.map +1 -0
- package/lib/account/esolve-location-update-result.model.d.ts.map +1 -0
- package/lib/account/index.d.ts.map +1 -0
- package/lib/account/password/esolve-change-password-result.model.d.ts.map +1 -0
- package/lib/account/password/esolve-forgot-password-get-result.interface.d.ts.map +1 -0
- package/lib/account/password/esolve-forgot-password-response.interface.d.ts.map +1 -0
- package/lib/account/password/esolve-reset-password-result.model.d.ts.map +1 -0
- package/lib/account/password/index.d.ts.map +1 -0
- package/lib/account/registration/esolve-registration-data.interface.d.ts.map +1 -0
- package/lib/account/registration/esolve-registration-post-response-item.interface.d.ts.map +1 -0
- package/lib/account/registration/esolve-registration-result.model.d.ts.map +1 -0
- package/lib/account/registration/index.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-address.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-client-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-client.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-item-price.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-item-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-item.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-list.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-location-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-location.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-options.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-payment-method-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-payment-method.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-shipping-method-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-shipping-method.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-type.type.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-user-record.interface.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction-user.model.d.ts.map +1 -0
- package/lib/account/transaction/esolve-transaction.model.d.ts.map +1 -0
- package/lib/account/transaction/index.d.ts.map +1 -0
- package/lib/account/user-account/esolve-user-account-business.model.d.ts.map +1 -0
- package/lib/account/user-account/esolve-user-account-contact.model.d.ts.map +1 -0
- package/lib/account/user-account/esolve-user-account-data.interface.d.ts.map +1 -0
- package/lib/account/user-account/esolve-user-account-record.interface.d.ts.map +1 -0
- package/lib/account/user-account/esolve-user-account-result.model.d.ts.map +1 -0
- package/lib/account/user-account/esolve-user-account.model.d.ts.map +1 -0
- package/lib/account/user-account/index.d.ts.map +1 -0
- package/lib/auth/esolve-auth-check-data.interface.d.ts.map +1 -0
- package/lib/auth/esolve-auth-check-response.interface.d.ts.map +1 -0
- package/lib/auth/esolve-auth-data.interface.d.ts.map +1 -0
- package/lib/auth/esolve-auth-get-data.interface.d.ts.map +1 -0
- package/lib/auth/esolve-auth-get-response.interface.d.ts.map +1 -0
- package/lib/auth/esolve-auth-interceptor.service.d.ts.map +1 -0
- package/lib/auth/esolve-auth-response-data.type.d.ts.map +1 -0
- package/lib/auth/esolve-auth-response.interface.d.ts.map +1 -0
- package/lib/auth/esolve-auth-result.type.d.ts.map +1 -0
- package/lib/auth/esolve-auth.service.d.ts.map +1 -0
- package/lib/auth/esolve-login-post-response-item.interface.d.ts.map +1 -0
- package/lib/auth/index.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image-hotspot-coords.interface.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image-hotspot-record.interface.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image-hotspot.model.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image-record.interface.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image-set.interface.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image-type.type.d.ts.map +1 -0
- package/lib/banners/esolve-banner-image.model.d.ts.map +1 -0
- package/lib/banners/esolve-banner-link.interface.d.ts.map +1 -0
- package/lib/banners/esolve-banner-record.interface.d.ts.map +1 -0
- package/lib/banners/esolve-banner-type.type.d.ts.map +1 -0
- package/lib/banners/esolve-banner.model.d.ts.map +1 -0
- package/lib/banners/esolve-banner.service.d.ts.map +1 -0
- package/lib/banners/index.d.ts.map +1 -0
- package/lib/cart/esolve-cart-additional-where.interface.d.ts.map +1 -0
- package/lib/cart/esolve-cart-empty-response.interface.d.ts.map +1 -0
- package/lib/cart/esolve-cart-item-record.interface.d.ts.map +1 -0
- package/lib/cart/esolve-cart-item-response.interface.d.ts.map +1 -0
- package/lib/cart/esolve-cart-item.model.d.ts +2 -1
- package/lib/cart/esolve-cart-item.model.d.ts.map +1 -0
- package/lib/cart/esolve-cart-set-action.type.d.ts.map +1 -0
- package/lib/cart/esolve-cart-set-item.interface.d.ts.map +1 -0
- package/lib/cart/esolve-cart-stock-item.model.d.ts.map +1 -0
- package/lib/cart/esolve-cart-totals-record.interface.d.ts.map +1 -0
- package/lib/cart/esolve-cart-totals.model.d.ts.map +1 -0
- package/lib/cart/esolve-cart.service.d.ts.map +1 -0
- package/lib/cart/esolve-cart.type.d.ts.map +1 -0
- package/lib/cart/esolve-checkout-response.interface.d.ts.map +1 -0
- package/lib/cart/esolve-checkout-result.model.d.ts.map +1 -0
- package/lib/cart/esolve-empty-cart-result.model.d.ts.map +1 -0
- package/lib/cart/esolve-tracking-code.interface.d.ts.map +1 -0
- package/lib/cart/index.d.ts.map +1 -0
- package/lib/category-tree/esolve-category-identifier.interface.d.ts.map +1 -0
- package/lib/category-tree/esolve-category-record.interface.d.ts.map +1 -0
- package/lib/category-tree/esolve-category-tree-item-options.interface.d.ts.map +1 -0
- package/lib/category-tree/esolve-category-tree-item-record.interface.d.ts.map +1 -0
- package/lib/category-tree/esolve-category-tree-item.model.d.ts.map +1 -0
- package/lib/category-tree/esolve-category-tree.service.d.ts.map +1 -0
- package/lib/category-tree/esolve-subcategory-record.interface.d.ts.map +1 -0
- package/lib/category-tree/index.d.ts.map +1 -0
- package/lib/enquiry/esolve-enquiry-response.interface.d.ts.map +1 -0
- package/lib/enquiry/esolve-enquiry-result.model.d.ts.map +1 -0
- package/lib/enquiry/esolve-enquiry.service.d.ts.map +1 -0
- package/lib/enquiry/index.d.ts.map +1 -0
- package/lib/esolve-connect-config.constant.d.ts.map +1 -0
- package/lib/esolve-connect.config.d.ts.map +1 -0
- package/lib/locations/esolve-location-address.model.d.ts.map +1 -0
- package/lib/locations/esolve-location-contact-info.model.d.ts.map +1 -0
- package/lib/locations/esolve-location-geo.model.d.ts.map +1 -0
- package/lib/locations/esolve-location-pobox-address.model.d.ts.map +1 -0
- package/lib/locations/esolve-location-record.interface.d.ts.map +1 -0
- package/lib/locations/esolve-location-trading-day.model.d.ts.map +1 -0
- package/lib/locations/esolve-location-trading-times.model.d.ts.map +1 -0
- package/lib/locations/esolve-location.model.d.ts.map +1 -0
- package/lib/locations/esolve-locations.service.d.ts +7 -2
- package/lib/locations/esolve-locations.service.d.ts.map +1 -0
- package/lib/locations/index.d.ts.map +1 -0
- package/lib/manufacturers/esolve-manufacturer-image-size.type.d.ts.map +1 -0
- package/lib/manufacturers/esolve-manufacturer-options.interface.d.ts.map +1 -0
- package/lib/manufacturers/esolve-manufacturer-record.interface.d.ts.map +1 -0
- package/lib/manufacturers/esolve-manufacturer.model.d.ts.map +1 -0
- package/lib/manufacturers/esolve-manufacturers.service.d.ts.map +1 -0
- package/lib/manufacturers/index.d.ts.map +1 -0
- package/lib/menu/esolve-menu-item.model.d.ts.map +1 -0
- package/lib/menu/esolve-menu-tree-record.interface.d.ts.map +1 -0
- package/lib/menu/esolve-menu.service.d.ts.map +1 -0
- package/lib/menu/esolve-menu.type.d.ts.map +1 -0
- package/lib/menu/index.d.ts.map +1 -0
- package/lib/news/esolve-news-article-author-record.interface.d.ts.map +1 -0
- package/lib/news/esolve-news-article-author.model.d.ts.map +1 -0
- package/lib/news/esolve-news-article-list.model.d.ts.map +1 -0
- package/lib/news/esolve-news-article-options.interface.d.ts.map +1 -0
- package/lib/news/esolve-news-article-record.interface.d.ts.map +1 -0
- package/lib/news/esolve-news-article.model.d.ts.map +1 -0
- package/lib/news/esolve-news-group-record.interface.d.ts.map +1 -0
- package/lib/news/esolve-news-group.model.d.ts.map +1 -0
- package/lib/news/esolve-news.service.d.ts.map +1 -0
- package/lib/news/index.d.ts.map +1 -0
- package/lib/ng-esolve-connect.module.d.ts.map +1 -0
- package/lib/payment/classes/esolve-banking-details.model.d.ts.map +1 -0
- package/lib/payment/classes/esolve-payment-method.model.d.ts.map +1 -0
- package/lib/payment/classes/esolve-payment-result.model.d.ts.map +1 -0
- package/lib/payment/classes/esolve-vault-item-result.model.d.ts.map +1 -0
- package/lib/payment/classes/esolve-vault-item.model.d.ts.map +1 -0
- package/lib/payment/classes/index.d.ts.map +1 -0
- package/lib/payment/esolve-payment.service.d.ts.map +1 -0
- package/lib/payment/index.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-card-data.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-payment-form-input.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-payment-method-options.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-payment-method-record.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-payment-response.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-payment-set-body.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-payment-status.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-vault-record.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/esolve-vault-response.interface.d.ts.map +1 -0
- package/lib/payment/interfaces/index.d.ts.map +1 -0
- package/lib/payment/types/esolve-integration-type.type.d.ts.map +1 -0
- package/lib/payment/types/esolve-service-provider.type.d.ts.map +1 -0
- package/lib/payment/types/index.d.ts.map +1 -0
- package/lib/ranges/esolve-range-options.interface.d.ts.map +1 -0
- package/lib/ranges/esolve-range-record.interface.d.ts.map +1 -0
- package/lib/ranges/esolve-range.model.d.ts.map +1 -0
- package/lib/ranges/esolve-ranges.service.d.ts.map +1 -0
- package/lib/ranges/index.d.ts.map +1 -0
- package/lib/session/esolve-session-data.interface.d.ts.map +1 -0
- package/lib/session/esolve-session.model.d.ts.map +1 -0
- package/lib/session/esolve-session.service.d.ts.map +1 -0
- package/lib/session/esolve-stored-session.interface.d.ts.map +1 -0
- package/lib/session/index.d.ts.map +1 -0
- package/lib/shared/assets/esolve-asset-list.type.d.ts.map +1 -0
- package/lib/shared/assets/esolve-asset-options.interface.d.ts.map +1 -0
- package/lib/shared/assets/esolve-asset-record.interface.d.ts.map +1 -0
- package/lib/shared/assets/esolve-asset-type.type.d.ts.map +1 -0
- package/lib/shared/assets/esolve-asset.model.d.ts.map +1 -0
- package/lib/shared/assets/esolve-assets.service.d.ts.map +1 -0
- package/lib/shared/assets/esolve-linked-asset-record.interface.d.ts.map +1 -0
- package/lib/shared/assets/esolve-linked-asset.model.d.ts.map +1 -0
- package/lib/shared/assets/index.d.ts.map +1 -0
- package/lib/shared/cookie/esolve-cookie.service.d.ts.map +1 -0
- package/lib/shared/custom-fields/esolve-custom-fields.type.d.ts.map +1 -0
- package/lib/shared/custom-fields/esolve-generic-custom-fields.interface.d.ts.map +1 -0
- package/lib/shared/custom-fields/index.d.ts.map +1 -0
- package/lib/shared/errors/esolve-error-handler.service.d.ts.map +1 -0
- package/lib/shared/errors/esolve-http-error.model.d.ts.map +1 -0
- package/lib/shared/errors/index.d.ts.map +1 -0
- package/lib/shared/esolve-list.model.d.ts.map +1 -0
- package/lib/shared/esolve-result.model.d.ts.map +1 -0
- package/lib/shared/esolve-url-target.type.d.ts.map +1 -0
- package/lib/shared/geocoder/esolve-geocode-address-record.interface.d.ts.map +1 -0
- package/lib/shared/geocoder/esolve-geocode-address-result.model.d.ts.map +1 -0
- package/lib/shared/geocoder/esolve-geocode-coords-result.model.d.ts.map +1 -0
- package/lib/shared/geocoder/esolve-geocode-result-record.interface.d.ts.map +1 -0
- package/lib/shared/geocoder/esolve-geocode-result.model.d.ts.map +1 -0
- package/lib/shared/geocoder/esolve-geocoder.service.d.ts.map +1 -0
- package/lib/shared/geocoder/index.d.ts.map +1 -0
- package/lib/shared/response/esolve-delete-response.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-delete-result.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-get-response.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-post-response-item.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-post-response-status.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-response-handler.service.d.ts.map +1 -0
- package/lib/shared/response/esolve-response-log-item.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-response-result.model.d.ts.map +1 -0
- package/lib/shared/response/esolve-response.interface.d.ts.map +1 -0
- package/lib/shared/response/esolve-set-response.interface.d.ts.map +1 -0
- package/lib/shared/response/index.d.ts.map +1 -0
- package/lib/shared/seo/esolve-seo-details.interface.d.ts.map +1 -0
- package/lib/shared/seo/esolve-seo-info.model.d.ts.map +1 -0
- package/lib/shared/seo/esolve-seo.service.d.ts.map +1 -0
- package/lib/shared/seo/index.d.ts.map +1 -0
- package/lib/shared/sort/esolve-sort-order.type.d.ts.map +1 -0
- package/lib/shared/sort/esolve-sort.interface.d.ts.map +1 -0
- package/lib/shared/sort/index.d.ts.map +1 -0
- package/lib/shipping/esolve-insurance-calculation-method.type.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-calculation-method.type.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-cost-record.interface.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-cost.model.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-location.type.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-method-options.interface.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-method-record.interface.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-method.model.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping-totals.model.d.ts.map +1 -0
- package/lib/shipping/esolve-shipping.service.d.ts.map +1 -0
- package/lib/shipping/index.d.ts.map +1 -0
- package/lib/specials/esolve-special-image-collection-record.interface.d.ts.map +1 -0
- package/lib/specials/esolve-special-image-collection.model.d.ts.map +1 -0
- package/lib/specials/esolve-special-image-record.interface.d.ts.map +1 -0
- package/lib/specials/esolve-special-image.model.d.ts.map +1 -0
- package/lib/specials/esolve-special-options.interface.d.ts.map +1 -0
- package/lib/specials/esolve-special-record.interface.d.ts.map +1 -0
- package/lib/specials/esolve-special.model.d.ts.map +1 -0
- package/lib/specials/esolve-specials.service.d.ts.map +1 -0
- package/lib/specials/index.d.ts.map +1 -0
- package/lib/stock/classes/esolve-additional-stock-image.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-colour.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-linked-stock-item.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-media-stock-item.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-recipe-stock-item.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-badge.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-group-item.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-group.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-image-collection.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-image.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-item-base.model.d.ts +8 -0
- package/lib/stock/classes/esolve-stock-item-base.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-item-list.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-item.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-lead-times.model.d.ts.map +1 -0
- package/lib/stock/classes/esolve-stock-price.model.d.ts.map +1 -0
- package/lib/stock/classes/index.d.ts.map +1 -0
- package/lib/stock/esolve-stock.service.d.ts.map +1 -0
- package/lib/stock/index.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-additional-stock-image-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-colour-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-linked-stock-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-media-stock-item-options.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-media-stock-item-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-recipe-item-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-recipe-stock-options.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-badge-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-base-record.interface.d.ts +1 -0
- package/lib/stock/interfaces/esolve-stock-base-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-group-item-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-image-collection-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-item-options.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-lead-times-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-linked-category-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/esolve-stock-record.interface.d.ts.map +1 -0
- package/lib/stock/interfaces/index.d.ts.map +1 -0
- package/lib/stock/types/esolve-media-stock-item-list.type.d.ts.map +1 -0
- package/lib/stock/types/esolve-media-stock-sort-field.type.d.ts.map +1 -0
- package/lib/stock/types/esolve-stock-image-size.type.d.ts.map +1 -0
- package/lib/stock/types/esolve-stock-sort-field.type.d.ts.map +1 -0
- package/lib/stock/types/esolve-stock-unit-of-measure.type.d.ts.map +1 -0
- package/lib/stock/types/index.d.ts.map +1 -0
- package/lib/tags/esolve-tag-options.interface.d.ts.map +1 -0
- package/lib/tags/esolve-tag-phrase-match-mode.type.d.ts.map +1 -0
- package/lib/tags/esolve-tag-record.interface.d.ts.map +1 -0
- package/lib/tags/esolve-tag.model.d.ts.map +1 -0
- package/lib/tags/esolve-tags.service.d.ts.map +1 -0
- package/lib/tags/index.d.ts.map +1 -0
- package/lib/topics/esolve-topic-record.interface.d.ts.map +1 -0
- package/lib/topics/esolve-topic.model.d.ts.map +1 -0
- package/lib/topics/esolve-topic.service.d.ts.map +1 -0
- package/lib/topics/index.d.ts.map +1 -0
- package/media/classes/esolve-heading.model.d.ts +5 -0
- package/media/classes/esolve-heading.model.d.ts.map +1 -0
- package/media/classes/esolve-media-article.model.d.ts +19 -0
- package/media/classes/esolve-media-article.model.d.ts.map +1 -0
- package/media/classes/esolve-media-group.model.d.ts +8 -0
- package/media/classes/esolve-media-group.model.d.ts.map +1 -0
- package/media/classes/esolve-media-layout-section.model.d.ts +10 -0
- package/media/classes/esolve-media-layout-section.model.d.ts.map +1 -0
- package/media/classes/index.d.ts +4 -0
- package/media/classes/index.d.ts.map +1 -0
- package/media/components/index.d.ts +2 -0
- package/media/components/index.d.ts.map +1 -0
- package/media/components/media-layout/esolve-media-layout.component.d.ts +14 -0
- package/media/components/media-layout/esolve-media-layout.component.d.ts.map +1 -0
- package/media/components/media-section/esolve-media-section.component.d.ts +14 -0
- package/media/components/media-section/esolve-media-section.component.d.ts.map +1 -0
- package/media/esolve-connect-media-config.token.d.ts +3 -0
- package/media/esolve-connect-media-config.token.d.ts.map +1 -0
- package/media/esolve-connect-media.config.d.ts +6 -0
- package/media/esolve-connect-media.config.d.ts.map +1 -0
- package/media/esolve-ng-esolve-connect-media.d.ts +5 -0
- package/media/esolve-ng-esolve-connect-media.d.ts.map +1 -0
- package/media/esolve-section-data.token.d.ts +3 -0
- package/media/esolve-section-data.token.d.ts.map +1 -0
- package/media/interfaces/esolve-heading-record.interface.d.ts +5 -0
- package/media/interfaces/esolve-heading-record.interface.d.ts.map +1 -0
- package/media/interfaces/esolve-layout-config.interface.d.ts +9 -0
- package/media/interfaces/esolve-layout-config.interface.d.ts.map +1 -0
- package/media/interfaces/esolve-layout-section-config.interface.d.ts +7 -0
- package/media/interfaces/esolve-layout-section-config.interface.d.ts.map +1 -0
- package/media/interfaces/esolve-media-group-record.interface.d.ts +6 -0
- package/media/interfaces/esolve-media-group-record.interface.d.ts.map +1 -0
- package/media/interfaces/esolve-media-layout-section-record.interface.d.ts +7 -0
- package/media/interfaces/esolve-media-layout-section-record.interface.d.ts.map +1 -0
- package/media/interfaces/esolve-media-record.interface.d.ts +38 -0
- package/media/interfaces/esolve-media-record.interface.d.ts.map +1 -0
- package/media/interfaces/index.d.ts +6 -0
- package/media/interfaces/index.d.ts.map +1 -0
- package/media/ng-esolve-connect-media.module.d.ts +15 -0
- package/media/ng-esolve-connect-media.module.d.ts.map +1 -0
- package/media/package.json +10 -0
- package/media/public_api.d.ts +9 -0
- package/media/public_api.d.ts.map +1 -0
- package/media/services/esolve-media-layout.service.d.ts +23 -0
- package/media/services/esolve-media-layout.service.d.ts.map +1 -0
- package/media/services/esolve-media.service.d.ts +48 -0
- package/media/services/esolve-media.service.d.ts.map +1 -0
- package/media/services/index.d.ts +2 -0
- package/media/services/index.d.ts.map +1 -0
- package/media/types/esolve-media-layout-section-type.type.d.ts +1 -0
- package/media/types/esolve-media-layout-section-type.type.d.ts.map +1 -0
- package/media/types/index.d.ts +1 -0
- package/media/types/index.d.ts.map +1 -0
- package/package.json +18 -5
- package/public-api.d.ts +2 -2
- package/public-api.d.ts.map +1 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.d.ts +2 -0
- package/schematics/ng-add/index.js +30 -0
- package/schematics/ng-add/index.js.map +1 -0
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Inject, InjectionToken, Injector, Component, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2$1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from '@angular/common/http';
|
|
6
|
+
import { HttpParams, HttpClientModule } from '@angular/common/http';
|
|
7
|
+
import * as i2 from '@angular/cdk/portal';
|
|
8
|
+
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
9
|
+
import { EsolveSeoInfo, EsolveTag, EsolveTopic, EsolveManufacturer, EsolveRange, ESOLVE_CONNECT_CONFIG, NgEsolveConnectModule } from '@esolve/ng-esolve-connect';
|
|
10
|
+
import { map } from 'rxjs/operators';
|
|
11
|
+
|
|
12
|
+
class EsolveHeading {
|
|
13
|
+
constructor(identifier, value) {
|
|
14
|
+
this.identifier = identifier;
|
|
15
|
+
this.value = value;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class EsolveMediaGroup {
|
|
20
|
+
constructor(record) {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
this.id = 0;
|
|
23
|
+
this.name = '';
|
|
24
|
+
this.sef_name = '';
|
|
25
|
+
this.description = '';
|
|
26
|
+
if (record) {
|
|
27
|
+
this.id = +((_a = record.id) !== null && _a !== void 0 ? _a : 0);
|
|
28
|
+
this.name = (_b = record.name) !== null && _b !== void 0 ? _b : '';
|
|
29
|
+
this.sef_name = (_c = record.sef_name) !== null && _c !== void 0 ? _c : '';
|
|
30
|
+
this.description = (_d = record.description) !== null && _d !== void 0 ? _d : '';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class EsolveMediaLayoutSection {
|
|
36
|
+
constructor(record) {
|
|
37
|
+
var _a;
|
|
38
|
+
this.sub_type = '';
|
|
39
|
+
this.type = record.type;
|
|
40
|
+
this.identifier = record.identifier;
|
|
41
|
+
this.sub_type = (_a = record.sub_type) !== null && _a !== void 0 ? _a : '';
|
|
42
|
+
if (record.data) {
|
|
43
|
+
this.data = record.data;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
getData() {
|
|
47
|
+
if (typeof this.data === 'undefined') {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return this.data;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class EsolveMediaArticle {
|
|
55
|
+
constructor(record) {
|
|
56
|
+
var _a, _b, _c, _d, _e;
|
|
57
|
+
this.layout = '';
|
|
58
|
+
this.image_url = '';
|
|
59
|
+
this.tags = [];
|
|
60
|
+
this.topics = [];
|
|
61
|
+
this.identifier = record.identifier;
|
|
62
|
+
this.title = record.title;
|
|
63
|
+
this.article = record.article;
|
|
64
|
+
let seo_title = (_a = record.seo_page_title) !== null && _a !== void 0 ? _a : '';
|
|
65
|
+
let seo_keywords = (_b = record.seo_keywords) !== null && _b !== void 0 ? _b : '';
|
|
66
|
+
let seo_description = (_c = record.seo_description) !== null && _c !== void 0 ? _c : '';
|
|
67
|
+
if (seo_title.trim() === '') {
|
|
68
|
+
seo_title = this.title;
|
|
69
|
+
}
|
|
70
|
+
this.seo_details = new EsolveSeoInfo(seo_title, seo_description, seo_keywords);
|
|
71
|
+
this.layout = (_d = record.layout) !== null && _d !== void 0 ? _d : '';
|
|
72
|
+
this.image_url = (_e = record.image_url) !== null && _e !== void 0 ? _e : '';
|
|
73
|
+
if ((record.tags) && (record.tags.length > 0)) {
|
|
74
|
+
for (const tag of record.tags) {
|
|
75
|
+
this.tags.push(new EsolveTag(tag));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if ((record.topics) && (record.topics.length > 0)) {
|
|
79
|
+
for (const topic of record.topics) {
|
|
80
|
+
this.topics.push(new EsolveTopic(topic));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (record.media_group) {
|
|
84
|
+
this.group = new EsolveMediaGroup(record.media_group);
|
|
85
|
+
}
|
|
86
|
+
if (record.manufacturer) {
|
|
87
|
+
this.manufacturer = new EsolveManufacturer(record.manufacturer);
|
|
88
|
+
}
|
|
89
|
+
if (record.range) {
|
|
90
|
+
this.range = new EsolveRange(record.range);
|
|
91
|
+
}
|
|
92
|
+
if (record.sections) {
|
|
93
|
+
this.sections = new Map();
|
|
94
|
+
for (const key in record.sections) {
|
|
95
|
+
const section_list = [];
|
|
96
|
+
const section_records = record.sections[key];
|
|
97
|
+
for (const section_record of section_records) {
|
|
98
|
+
section_list.push(new EsolveMediaLayoutSection(section_record));
|
|
99
|
+
}
|
|
100
|
+
this.sections.set(key, section_list);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
class EsolveMediaService {
|
|
107
|
+
constructor(config, http) {
|
|
108
|
+
this.config = config;
|
|
109
|
+
this.http = http;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves the media record from the eSolve instance using the identifier
|
|
113
|
+
*
|
|
114
|
+
* @param identifier String representing the eSolve media identifier
|
|
115
|
+
*/
|
|
116
|
+
getMediaArticle(identifier) {
|
|
117
|
+
const params = new HttpParams({ fromObject: { identifier } });
|
|
118
|
+
// TODO: Error Handling
|
|
119
|
+
return this.getMediaRecords(params).pipe(map((response) => {
|
|
120
|
+
if ((response.records === undefined) ||
|
|
121
|
+
(response.records.length <= 0)) {
|
|
122
|
+
throw response;
|
|
123
|
+
}
|
|
124
|
+
const mediaRecord = response.records[0];
|
|
125
|
+
if (!mediaRecord.active) {
|
|
126
|
+
throw response;
|
|
127
|
+
}
|
|
128
|
+
return this.processMediaRecord(mediaRecord);
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Retrieves a group of media records from the eSolve instance linked to a group
|
|
133
|
+
*
|
|
134
|
+
* @param media_group String representing the eSolve media group
|
|
135
|
+
*/
|
|
136
|
+
getGroupedMediaArticles(media_group) {
|
|
137
|
+
const params = new HttpParams({
|
|
138
|
+
fromObject: { media_group_sef: media_group }
|
|
139
|
+
});
|
|
140
|
+
return this.getMediaRecords(params).pipe(map((response) => {
|
|
141
|
+
const mediaArticles = [];
|
|
142
|
+
if ((response.records !== undefined) &&
|
|
143
|
+
(response.records.length > 0)) {
|
|
144
|
+
for (const mediaRecord of response.records) {
|
|
145
|
+
if (mediaRecord.active) {
|
|
146
|
+
mediaArticles.push(this.processMediaRecord(mediaRecord));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return mediaArticles;
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves the media heading records from the eSolve instance using the identifiers
|
|
155
|
+
*
|
|
156
|
+
* @param identifiers Array of strings representing the eSolve heading identifiers
|
|
157
|
+
*/
|
|
158
|
+
getHeadings(identifiers) {
|
|
159
|
+
return this.http
|
|
160
|
+
.get(`${this.config.api_url}/get-headings.php`, {
|
|
161
|
+
params: {
|
|
162
|
+
identifier: identifiers.join(','),
|
|
163
|
+
},
|
|
164
|
+
})
|
|
165
|
+
.pipe(map((response) => {
|
|
166
|
+
const headings = [];
|
|
167
|
+
if ((response.records !== undefined) &&
|
|
168
|
+
(response.records.length > 0)) {
|
|
169
|
+
for (const heading_record of response.records) {
|
|
170
|
+
headings.push(this.processHeadingRecord(heading_record));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return headings;
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Processes media article record
|
|
178
|
+
*
|
|
179
|
+
* @param record Record from eSolve instance
|
|
180
|
+
*/
|
|
181
|
+
processMediaRecord(record) {
|
|
182
|
+
return new EsolveMediaArticle(record);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Processes media heading record
|
|
186
|
+
*
|
|
187
|
+
* @param record Record from eSolve instance
|
|
188
|
+
*/
|
|
189
|
+
processHeadingRecord(record) {
|
|
190
|
+
return new EsolveHeading(record.identifier, record.value);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Retrieves media records from eSolve instance.
|
|
194
|
+
*
|
|
195
|
+
* @param params HTTP params
|
|
196
|
+
*/
|
|
197
|
+
getMediaRecords(params) {
|
|
198
|
+
return this.http.get(`${this.config.api_url}/get-media.php`, { params });
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
EsolveMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
202
|
+
EsolveMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaService, providedIn: 'root' });
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaService, decorators: [{
|
|
204
|
+
type: Injectable,
|
|
205
|
+
args: [{
|
|
206
|
+
providedIn: 'root',
|
|
207
|
+
}]
|
|
208
|
+
}], ctorParameters: function () {
|
|
209
|
+
return [{ type: undefined, decorators: [{
|
|
210
|
+
type: Inject,
|
|
211
|
+
args: [ESOLVE_CONNECT_CONFIG]
|
|
212
|
+
}] }, { type: i1.HttpClient }];
|
|
213
|
+
} });
|
|
214
|
+
|
|
215
|
+
const ESOLVE_CONNECT_MEDIA_CONFIG = new InjectionToken('esolve.connect.media.config');
|
|
216
|
+
|
|
217
|
+
class EsolveMediaLayoutService {
|
|
218
|
+
constructor(config) {
|
|
219
|
+
this.section_key_delimiter = '>>>';
|
|
220
|
+
this.layout_map = new Map();
|
|
221
|
+
this.section_map = new Map();
|
|
222
|
+
if (config.layouts.length === 0) {
|
|
223
|
+
throw new Error('No layouts have been defined');
|
|
224
|
+
}
|
|
225
|
+
for (const layout of config.layouts) {
|
|
226
|
+
this.setLayout(layout.key, layout.component);
|
|
227
|
+
if (layout.sections) {
|
|
228
|
+
for (const section_group_key in layout.sections) {
|
|
229
|
+
const sections = layout.sections[section_group_key];
|
|
230
|
+
for (const section of sections) {
|
|
231
|
+
const key_options = {
|
|
232
|
+
type: section.key,
|
|
233
|
+
sub_type: section.sub_key,
|
|
234
|
+
layout: layout.key,
|
|
235
|
+
};
|
|
236
|
+
if (section_group_key !== '__default') {
|
|
237
|
+
key_options.group = section_group_key;
|
|
238
|
+
}
|
|
239
|
+
this.setSection(section.component, key_options);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const default_layout = config.default_layout;
|
|
245
|
+
if (default_layout) {
|
|
246
|
+
this.default_layout = default_layout;
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
this.default_layout = config.layouts[0].key;
|
|
250
|
+
}
|
|
251
|
+
if (config.sections.length > 0) {
|
|
252
|
+
for (const section of config.sections) {
|
|
253
|
+
const key_options = {
|
|
254
|
+
type: section.key,
|
|
255
|
+
sub_type: section.sub_key,
|
|
256
|
+
};
|
|
257
|
+
this.setSection(section.component, key_options);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
getMedia() {
|
|
262
|
+
if (!this.media) {
|
|
263
|
+
throw new Error('Media not declared');
|
|
264
|
+
}
|
|
265
|
+
return this.media;
|
|
266
|
+
}
|
|
267
|
+
setMedia(media) {
|
|
268
|
+
this.media = media;
|
|
269
|
+
}
|
|
270
|
+
getLayout() {
|
|
271
|
+
const media = this.getMedia();
|
|
272
|
+
let layout_key = media.layout;
|
|
273
|
+
if (layout_key === '') {
|
|
274
|
+
layout_key = this.default_layout;
|
|
275
|
+
}
|
|
276
|
+
return this.searchLayout(layout_key);
|
|
277
|
+
}
|
|
278
|
+
getSectionContent(key) {
|
|
279
|
+
const media = this.getMedia();
|
|
280
|
+
if (media.sections) {
|
|
281
|
+
const section = media.sections.get(key);
|
|
282
|
+
if (section) {
|
|
283
|
+
return section;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return [];
|
|
287
|
+
}
|
|
288
|
+
getSectionComponent(key, section) {
|
|
289
|
+
const type = section.type;
|
|
290
|
+
const sub_type = section.sub_type;
|
|
291
|
+
const { layout } = this.getMedia();
|
|
292
|
+
const section_key = this.createSectionMapKey({
|
|
293
|
+
type,
|
|
294
|
+
sub_type,
|
|
295
|
+
layout,
|
|
296
|
+
group: key,
|
|
297
|
+
});
|
|
298
|
+
let component = this.section_map.get(section_key);
|
|
299
|
+
if (component) {
|
|
300
|
+
return component;
|
|
301
|
+
}
|
|
302
|
+
const layout_key = this.createSectionMapKey({
|
|
303
|
+
type,
|
|
304
|
+
sub_type,
|
|
305
|
+
layout,
|
|
306
|
+
});
|
|
307
|
+
component = this.section_map.get(layout_key);
|
|
308
|
+
if (component) {
|
|
309
|
+
return component;
|
|
310
|
+
}
|
|
311
|
+
const base_key = this.createSectionMapKey({
|
|
312
|
+
type,
|
|
313
|
+
sub_type,
|
|
314
|
+
});
|
|
315
|
+
component = this.section_map.get(base_key);
|
|
316
|
+
if (component) {
|
|
317
|
+
return component;
|
|
318
|
+
}
|
|
319
|
+
throw new Error('Section component not defined');
|
|
320
|
+
}
|
|
321
|
+
searchLayout(layout_key) {
|
|
322
|
+
const component = this.layout_map.get(layout_key);
|
|
323
|
+
if (!component) {
|
|
324
|
+
throw new Error('Layout not declared');
|
|
325
|
+
}
|
|
326
|
+
return component;
|
|
327
|
+
}
|
|
328
|
+
setLayout(key, component) {
|
|
329
|
+
this.layout_map.set(key, component);
|
|
330
|
+
}
|
|
331
|
+
setSection(component, key_options) {
|
|
332
|
+
const key = this.createSectionMapKey(key_options);
|
|
333
|
+
this.section_map.set(key, component);
|
|
334
|
+
}
|
|
335
|
+
createSectionMapKey(key_options) {
|
|
336
|
+
const { type, sub_type, layout, group } = key_options;
|
|
337
|
+
const key_array = [type];
|
|
338
|
+
if (sub_type) {
|
|
339
|
+
key_array.push(sub_type);
|
|
340
|
+
}
|
|
341
|
+
if (layout) {
|
|
342
|
+
key_array.push(layout);
|
|
343
|
+
if (group) {
|
|
344
|
+
key_array.push(group);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return key_array.join(this.section_key_delimiter);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
EsolveMediaLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaLayoutService, deps: [{ token: ESOLVE_CONNECT_MEDIA_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
351
|
+
EsolveMediaLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaLayoutService });
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaLayoutService, decorators: [{
|
|
353
|
+
type: Injectable
|
|
354
|
+
}], ctorParameters: function () {
|
|
355
|
+
return [{ type: undefined, decorators: [{
|
|
356
|
+
type: Inject,
|
|
357
|
+
args: [ESOLVE_CONNECT_MEDIA_CONFIG]
|
|
358
|
+
}] }];
|
|
359
|
+
} });
|
|
360
|
+
|
|
361
|
+
class EsolveMediaLayoutComponent {
|
|
362
|
+
constructor(layoutService) {
|
|
363
|
+
this.layoutService = layoutService;
|
|
364
|
+
}
|
|
365
|
+
ngOnChanges() {
|
|
366
|
+
this.layoutService.setMedia(this.media);
|
|
367
|
+
const component = this.layoutService.getLayout();
|
|
368
|
+
const injector = Injector.create({
|
|
369
|
+
providers: [
|
|
370
|
+
{
|
|
371
|
+
provide: EsolveMediaLayoutService,
|
|
372
|
+
useValue: this.layoutService,
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
});
|
|
376
|
+
this.portal = new ComponentPortal(component, null, injector);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
EsolveMediaLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaLayoutComponent, deps: [{ token: EsolveMediaLayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
380
|
+
EsolveMediaLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EsolveMediaLayoutComponent, selector: "eslv-media-layout", inputs: { media: "media" }, providers: [
|
|
381
|
+
EsolveMediaLayoutService,
|
|
382
|
+
], usesOnChanges: true, ngImport: i0, template: `<ng-template [cdkPortalOutlet]="portal"></ng-template>`, isInline: true, directives: [{ type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaLayoutComponent, decorators: [{
|
|
384
|
+
type: Component,
|
|
385
|
+
args: [{
|
|
386
|
+
selector: 'eslv-media-layout',
|
|
387
|
+
template: `<ng-template [cdkPortalOutlet]="portal"></ng-template>`,
|
|
388
|
+
providers: [
|
|
389
|
+
EsolveMediaLayoutService,
|
|
390
|
+
],
|
|
391
|
+
}]
|
|
392
|
+
}], ctorParameters: function () { return [{ type: EsolveMediaLayoutService }]; }, propDecorators: { media: [{
|
|
393
|
+
type: Input
|
|
394
|
+
}] } });
|
|
395
|
+
|
|
396
|
+
const ESOLVE_SECTION_DATA = new InjectionToken('esolve.media.layout.section');
|
|
397
|
+
|
|
398
|
+
class EsolveMediaSectionComponent {
|
|
399
|
+
constructor(layoutService) {
|
|
400
|
+
this.layoutService = layoutService;
|
|
401
|
+
this.portals = [];
|
|
402
|
+
}
|
|
403
|
+
ngOnChanges() {
|
|
404
|
+
const sections = this.layoutService.getSectionContent(this.key);
|
|
405
|
+
this.processPortals(sections);
|
|
406
|
+
}
|
|
407
|
+
processPortals(sections) {
|
|
408
|
+
for (const section of sections) {
|
|
409
|
+
const injector = Injector.create({
|
|
410
|
+
providers: [
|
|
411
|
+
{
|
|
412
|
+
provide: ESOLVE_SECTION_DATA,
|
|
413
|
+
useValue: section,
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
provide: EsolveMediaLayoutService,
|
|
417
|
+
useValue: this.layoutService,
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
});
|
|
421
|
+
const component = this.layoutService.getSectionComponent(this.key, section);
|
|
422
|
+
const portal = new ComponentPortal(component, null, injector);
|
|
423
|
+
this.portals.push(portal);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
EsolveMediaSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaSectionComponent, deps: [{ token: EsolveMediaLayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
428
|
+
EsolveMediaSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EsolveMediaSectionComponent, selector: "eslv-media-section", inputs: { key: "key" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"portals.length > 0\">\r\n <ng-container *ngFor=\"let portal of portals\">\r\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\r\n </ng-container>\r\n</ng-container>\r\n", directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaSectionComponent, decorators: [{
|
|
430
|
+
type: Component,
|
|
431
|
+
args: [{ selector: 'eslv-media-section', template: "<ng-container *ngIf=\"portals.length > 0\">\r\n <ng-container *ngFor=\"let portal of portals\">\r\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\r\n </ng-container>\r\n</ng-container>\r\n" }]
|
|
432
|
+
}], ctorParameters: function () { return [{ type: EsolveMediaLayoutService }]; }, propDecorators: { key: [{
|
|
433
|
+
type: Input
|
|
434
|
+
}] } });
|
|
435
|
+
|
|
436
|
+
class NgEsolveConnectMediaModule {
|
|
437
|
+
static withConfig(config) {
|
|
438
|
+
return {
|
|
439
|
+
ngModule: NgEsolveConnectMediaModule,
|
|
440
|
+
providers: [
|
|
441
|
+
{
|
|
442
|
+
provide: ESOLVE_CONNECT_MEDIA_CONFIG,
|
|
443
|
+
useValue: config,
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
NgEsolveConnectMediaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectMediaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
450
|
+
NgEsolveConnectMediaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectMediaModule, declarations: [EsolveMediaLayoutComponent,
|
|
451
|
+
EsolveMediaSectionComponent], imports: [CommonModule,
|
|
452
|
+
HttpClientModule,
|
|
453
|
+
PortalModule,
|
|
454
|
+
NgEsolveConnectModule], exports: [EsolveMediaLayoutComponent,
|
|
455
|
+
EsolveMediaSectionComponent] });
|
|
456
|
+
NgEsolveConnectMediaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectMediaModule, imports: [[
|
|
457
|
+
CommonModule,
|
|
458
|
+
HttpClientModule,
|
|
459
|
+
PortalModule,
|
|
460
|
+
NgEsolveConnectModule,
|
|
461
|
+
]] });
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectMediaModule, decorators: [{
|
|
463
|
+
type: NgModule,
|
|
464
|
+
args: [{
|
|
465
|
+
declarations: [
|
|
466
|
+
EsolveMediaLayoutComponent,
|
|
467
|
+
EsolveMediaSectionComponent,
|
|
468
|
+
],
|
|
469
|
+
imports: [
|
|
470
|
+
CommonModule,
|
|
471
|
+
HttpClientModule,
|
|
472
|
+
PortalModule,
|
|
473
|
+
NgEsolveConnectModule,
|
|
474
|
+
],
|
|
475
|
+
exports: [
|
|
476
|
+
EsolveMediaLayoutComponent,
|
|
477
|
+
EsolveMediaSectionComponent,
|
|
478
|
+
],
|
|
479
|
+
}]
|
|
480
|
+
}] });
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Generated bundle index. Do not edit.
|
|
484
|
+
*/
|
|
485
|
+
|
|
486
|
+
export { ESOLVE_CONNECT_MEDIA_CONFIG, ESOLVE_SECTION_DATA, EsolveHeading, EsolveMediaArticle, EsolveMediaGroup, EsolveMediaLayoutComponent, EsolveMediaLayoutSection, EsolveMediaLayoutService, EsolveMediaSectionComponent, EsolveMediaService, NgEsolveConnectMediaModule };
|
|
487
|
+
//# sourceMappingURL=esolve-ng-esolve-connect-media.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esolve-ng-esolve-connect-media.mjs","sources":["../../../projects/ng-esolve-connect/media/src/classes/esolve-heading.model.ts","../../../projects/ng-esolve-connect/media/src/classes/esolve-media-group.model.ts","../../../projects/ng-esolve-connect/media/src/classes/esolve-media-layout-section.model.ts","../../../projects/ng-esolve-connect/media/src/classes/esolve-media-article.model.ts","../../../projects/ng-esolve-connect/media/src/services/esolve-media.service.ts","../../../projects/ng-esolve-connect/media/src/esolve-connect-media-config.token.ts","../../../projects/ng-esolve-connect/media/src/services/esolve-media-layout.service.ts","../../../projects/ng-esolve-connect/media/src/components/media-layout/esolve-media-layout.component.ts","../../../projects/ng-esolve-connect/media/src/esolve-section-data.token.ts","../../../projects/ng-esolve-connect/media/src/components/media-section/esolve-media-section.component.ts","../../../projects/ng-esolve-connect/media/src/components/media-section/esolve-media-section.component.html","../../../projects/ng-esolve-connect/media/src/ng-esolve-connect-media.module.ts","../../../projects/ng-esolve-connect/media/src/esolve-ng-esolve-connect-media.ts"],"sourcesContent":["export class EsolveHeading {\r\n constructor(\r\n public identifier: string,\r\n public value: string,\r\n ) { }\r\n}\r\n","import { EsolveMediaGroupRecord } from '../interfaces';\r\n\r\nexport class EsolveMediaGroup {\r\n public id: number = 0;\r\n public name: string = '';\r\n public sef_name: string = '';\r\n public description: string = '';\r\n\r\n constructor(record?: EsolveMediaGroupRecord) {\r\n if (record) {\r\n this.id = +(record.id ?? 0)\r\n this.name = record.name ?? '';\r\n this.sef_name = record.sef_name ?? '';\r\n this.description = record.description ?? '';\r\n }\r\n }\r\n}\r\n","import { EsolveMediaLayoutSectionRecord } from '../interfaces';\r\nimport { EsolveMediaLayoutSectionType } from '../types';\r\n\r\nexport class EsolveMediaLayoutSection {\r\n public type: EsolveMediaLayoutSectionType;\r\n public sub_type: string = '';\r\n public identifier: string;\r\n\r\n private data?: any;\r\n\r\n constructor(record: EsolveMediaLayoutSectionRecord) {\r\n this.type = record.type;\r\n this.identifier = record.identifier;\r\n this.sub_type = record.sub_type ?? '';\r\n\r\n if (record.data) {\r\n this.data = record.data;\r\n }\r\n }\r\n\r\n public getData<T>(): T | null {\r\n if (typeof this.data === 'undefined') {\r\n return null;\r\n }\r\n\r\n return this.data as T;\r\n }\r\n}\r\n","import {\r\n EsolveManufacturer,\r\n EsolveRange,\r\n EsolveSeoDetails,\r\n EsolveSeoInfo,\r\n EsolveTag,\r\n EsolveTopic,\r\n} from '@esolve/ng-esolve-connect';\r\n\r\nimport { EsolveMediaRecord } from '../interfaces';\r\n\r\nimport { EsolveMediaGroup } from './esolve-media-group.model';\r\nimport { EsolveMediaLayoutSection } from './esolve-media-layout-section.model';\r\n\r\nexport class EsolveMediaArticle implements EsolveSeoDetails {\r\n public identifier: string;\r\n public title: string;\r\n public article: string;\r\n public layout: string = '';\r\n public image_url: string = '';\r\n public tags: EsolveTag[] = [];\r\n public topics: EsolveTopic[] = [];\r\n public seo_details: EsolveSeoInfo;\r\n public group?: EsolveMediaGroup;\r\n public manufacturer?: EsolveManufacturer;\r\n public range?: EsolveRange;\r\n public sections?: Map<string, EsolveMediaLayoutSection[]>;\r\n\r\n constructor(record: EsolveMediaRecord) {\r\n this.identifier = record.identifier;\r\n this.title = record.title;\r\n this.article = record.article;\r\n\r\n let seo_title = record.seo_page_title ?? '';\r\n let seo_keywords = record.seo_keywords ?? '';\r\n let seo_description = record.seo_description ?? '';\r\n\r\n if (seo_title.trim() === '') {\r\n seo_title = this.title;\r\n }\r\n\r\n this.seo_details = new EsolveSeoInfo(\r\n seo_title,\r\n seo_description,\r\n seo_keywords,\r\n );\r\n\r\n this.layout = record.layout ?? '';\r\n this.image_url = record.image_url ?? '';\r\n\r\n if ((record.tags) && (record.tags.length > 0)) {\r\n for (const tag of record.tags) {\r\n this.tags.push(new EsolveTag(tag));\r\n }\r\n }\r\n\r\n if ((record.topics) && (record.topics.length > 0)) {\r\n for (const topic of record.topics) {\r\n this.topics.push(new EsolveTopic(topic));\r\n }\r\n }\r\n\r\n if (record.media_group) {\r\n this.group = new EsolveMediaGroup(record.media_group);\r\n }\r\n\r\n if (record.manufacturer) {\r\n this.manufacturer = new EsolveManufacturer(record.manufacturer);\r\n }\r\n\r\n if (record.range) {\r\n this.range = new EsolveRange(record.range);\r\n }\r\n\r\n if (record.sections) {\r\n this.sections = new Map<string, EsolveMediaLayoutSection[]>();\r\n\r\n for (const key in record.sections) {\r\n const section_list: EsolveMediaLayoutSection[] = [];\r\n const section_records = record.sections[key];\r\n\r\n for (const section_record of section_records) {\r\n section_list.push(new EsolveMediaLayoutSection(section_record));\r\n }\r\n\r\n this.sections.set(key, section_list);\r\n }\r\n }\r\n }\r\n}\r\n","import { Inject, Injectable } from '@angular/core';\r\nimport { HttpClient, HttpParams } from '@angular/common/http';\r\n\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport {\r\n EsolveConnectConfig,\r\n EsolveGetResponse,\r\n ESOLVE_CONNECT_CONFIG,\r\n} from '@esolve/ng-esolve-connect';\r\n\r\nimport { EsolveMediaArticle, EsolveHeading } from '../classes';\r\nimport { EsolveMediaRecord, EsolveHeadingRecord } from '../interfaces';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class EsolveMediaService {\r\n constructor(\r\n @Inject(ESOLVE_CONNECT_CONFIG) private config: EsolveConnectConfig,\r\n private http: HttpClient,\r\n ) { }\r\n\r\n /**\r\n * Retrieves the media record from the eSolve instance using the identifier\r\n *\r\n * @param identifier String representing the eSolve media identifier\r\n */\r\n public getMediaArticle(identifier: string): Observable<EsolveMediaArticle> {\r\n const params = new HttpParams({ fromObject: { identifier } });\r\n\r\n // TODO: Error Handling\r\n return this.getMediaRecords(params).pipe(\r\n map((response) => {\r\n if (\r\n (response.records === undefined) ||\r\n (response.records.length <= 0)\r\n ) {\r\n throw response;\r\n }\r\n\r\n const mediaRecord = response.records[0];\r\n\r\n if (!mediaRecord.active) {\r\n throw response;\r\n }\r\n\r\n return this.processMediaRecord(mediaRecord);\r\n })\r\n );\r\n }\r\n\r\n /**\r\n * Retrieves a group of media records from the eSolve instance linked to a group\r\n *\r\n * @param media_group String representing the eSolve media group\r\n */\r\n public getGroupedMediaArticles(media_group: string): Observable<EsolveMediaArticle[]> {\r\n const params = new HttpParams({\r\n fromObject: { media_group_sef: media_group }\r\n });\r\n\r\n return this.getMediaRecords(params).pipe(\r\n map((response) => {\r\n const mediaArticles: EsolveMediaArticle[] = [];\r\n\r\n if (\r\n (response.records !== undefined) &&\r\n (response.records.length > 0)\r\n ) {\r\n for (const mediaRecord of response.records) {\r\n if (mediaRecord.active) {\r\n mediaArticles.push(this.processMediaRecord(mediaRecord));\r\n }\r\n }\r\n }\r\n\r\n return mediaArticles;\r\n })\r\n );\r\n }\r\n\r\n /**\r\n * Retrieves the media heading records from the eSolve instance using the identifiers\r\n *\r\n * @param identifiers Array of strings representing the eSolve heading identifiers\r\n */\r\n public getHeadings(identifiers: string[]): Observable<EsolveHeading[]> {\r\n return this.http\r\n .get<EsolveGetResponse<EsolveHeadingRecord[]>>(\r\n `${this.config.api_url}/get-headings.php`,\r\n {\r\n params: {\r\n identifier: identifiers.join(','),\r\n },\r\n }\r\n )\r\n .pipe(\r\n map((response) => {\r\n const headings: EsolveHeading[] = [];\r\n\r\n if (\r\n (response.records !== undefined) &&\r\n (response.records.length > 0)\r\n ) {\r\n for (const heading_record of response.records) {\r\n headings.push(this.processHeadingRecord(heading_record));\r\n }\r\n }\r\n\r\n return headings;\r\n })\r\n );\r\n }\r\n\r\n /**\r\n * Processes media article record\r\n *\r\n * @param record Record from eSolve instance\r\n */\r\n private processMediaRecord(record: EsolveMediaRecord): EsolveMediaArticle {\r\n return new EsolveMediaArticle(record);\r\n }\r\n\r\n /**\r\n * Processes media heading record\r\n *\r\n * @param record Record from eSolve instance\r\n */\r\n private processHeadingRecord(record: EsolveHeadingRecord): EsolveHeading {\r\n return new EsolveHeading(\r\n record.identifier,\r\n record.value\r\n );\r\n }\r\n\r\n /**\r\n * Retrieves media records from eSolve instance.\r\n *\r\n * @param params HTTP params\r\n */\r\n private getMediaRecords(params: HttpParams): Observable<EsolveGetResponse<EsolveMediaRecord[]>> {\r\n return this.http.get<EsolveGetResponse<EsolveMediaRecord[]>>(\r\n `${this.config.api_url}/get-media.php`,\r\n { params }\r\n );\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nimport { EsolveConnectMediaConfig } from './esolve-connect-media.config';\r\n\r\nexport const ESOLVE_CONNECT_MEDIA_CONFIG =\r\n new InjectionToken<EsolveConnectMediaConfig>(\r\n 'esolve.connect.media.config',\r\n );\r\n","import { ComponentType } from '@angular/cdk/portal';\r\nimport { Inject, Injectable } from '@angular/core';\r\n\r\nimport { EsolveMediaArticle, EsolveMediaLayoutSection } from '../classes';\r\nimport { EsolveMediaLayoutSectionType } from '../types';\r\n\r\nimport { ESOLVE_CONNECT_MEDIA_CONFIG } from '../esolve-connect-media-config.token';\r\nimport { EsolveConnectMediaConfig } from '../esolve-connect-media.config';\r\n\r\ntype ComponentMap = Map<string, ComponentType<any>>;\r\n\r\ntype SectionKeyOptions = {\r\n type: EsolveMediaLayoutSectionType;\r\n sub_type?: string;\r\n layout?: string;\r\n group?: string;\r\n};\r\n\r\n@Injectable()\r\nexport class EsolveMediaLayoutService {\r\n private readonly section_key_delimiter = '>>>';\r\n\r\n private media?: EsolveMediaArticle;\r\n private layout_map: ComponentMap = new Map();\r\n private section_map: ComponentMap = new Map();\r\n private default_layout: string;\r\n\r\n constructor(\r\n @Inject(ESOLVE_CONNECT_MEDIA_CONFIG)\r\n config: EsolveConnectMediaConfig,\r\n ) {\r\n if (config.layouts.length === 0) {\r\n throw new Error('No layouts have been defined');\r\n }\r\n\r\n for (const layout of config.layouts) {\r\n this.setLayout(layout.key, layout.component);\r\n\r\n if (layout.sections) {\r\n for (const section_group_key in layout.sections) {\r\n const sections = layout.sections[section_group_key];\r\n\r\n for (const section of sections) {\r\n const key_options: SectionKeyOptions = {\r\n type: section.key,\r\n sub_type: section.sub_key,\r\n layout: layout.key,\r\n };\r\n\r\n if (section_group_key !== '__default') {\r\n key_options.group = section_group_key;\r\n }\r\n\r\n this.setSection(section.component, key_options);\r\n }\r\n }\r\n }\r\n }\r\n\r\n const default_layout = config.default_layout;\r\n\r\n if (default_layout) {\r\n this.default_layout = default_layout;\r\n } else {\r\n this.default_layout = config.layouts[0].key;\r\n }\r\n\r\n if (config.sections.length > 0) {\r\n for (const section of config.sections) {\r\n const key_options: SectionKeyOptions = {\r\n type: section.key,\r\n sub_type: section.sub_key,\r\n };\r\n\r\n this.setSection(section.component, key_options);\r\n }\r\n }\r\n }\r\n\r\n public getMedia() {\r\n if (!this.media) {\r\n throw new Error('Media not declared');\r\n }\r\n\r\n return this.media;\r\n }\r\n\r\n public setMedia(media: EsolveMediaArticle) {\r\n this.media = media;\r\n }\r\n\r\n public getLayout() {\r\n const media = this.getMedia();\r\n\r\n let layout_key = media.layout;\r\n\r\n if (layout_key === '') {\r\n layout_key = this.default_layout;\r\n }\r\n\r\n return this.searchLayout(layout_key);\r\n }\r\n\r\n public getSectionContent(key: string) {\r\n const media = this.getMedia();\r\n\r\n if (media.sections) {\r\n const section = media.sections.get(key);\r\n\r\n if (section) {\r\n return section;\r\n }\r\n }\r\n\r\n return [];\r\n }\r\n\r\n public getSectionComponent(key: string, section: EsolveMediaLayoutSection) {\r\n const type = section.type;\r\n const sub_type = section.sub_type;\r\n const { layout } = this.getMedia();\r\n\r\n const section_key = this.createSectionMapKey({\r\n type,\r\n sub_type,\r\n layout,\r\n group: key,\r\n });\r\n\r\n let component = this.section_map.get(section_key);\r\n\r\n if (component) {\r\n return component;\r\n }\r\n\r\n const layout_key = this.createSectionMapKey({\r\n type,\r\n sub_type,\r\n layout,\r\n });\r\n\r\n component = this.section_map.get(layout_key);\r\n\r\n if (component) {\r\n return component;\r\n }\r\n\r\n const base_key = this.createSectionMapKey({\r\n type,\r\n sub_type,\r\n });\r\n\r\n component = this.section_map.get(base_key);\r\n\r\n if (component) {\r\n return component;\r\n }\r\n\r\n throw new Error('Section component not defined');\r\n }\r\n\r\n private searchLayout(layout_key: string) {\r\n const component = this.layout_map.get(layout_key);\r\n\r\n if (!component) {\r\n throw new Error('Layout not declared');\r\n }\r\n\r\n return component;\r\n }\r\n\r\n private setLayout(key: string, component: ComponentType<any>) {\r\n this.layout_map.set(key, component);\r\n }\r\n\r\n private setSection(\r\n component: ComponentType<any>,\r\n key_options: SectionKeyOptions,\r\n ) {\r\n const key = this.createSectionMapKey(key_options);\r\n\r\n this.section_map.set(key, component);\r\n }\r\n\r\n private createSectionMapKey(key_options: SectionKeyOptions) {\r\n const { type, sub_type, layout, group } = key_options;\r\n\r\n const key_array: string[] = [type];\r\n\r\n if (sub_type) {\r\n key_array.push(sub_type);\r\n }\r\n\r\n if (layout) {\r\n key_array.push(layout);\r\n\r\n if (group) {\r\n key_array.push(group);\r\n }\r\n }\r\n\r\n return key_array.join(this.section_key_delimiter);\r\n }\r\n}\r\n","import {\r\n Component,\r\n OnChanges,\r\n Input,\r\n Injector,\r\n} from '@angular/core';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\n\r\nimport { EsolveMediaArticle } from '../../classes';\r\n\r\nimport { EsolveMediaLayoutService } from '../../services';\r\n\r\n@Component({\r\n selector: 'eslv-media-layout',\r\n template: `<ng-template [cdkPortalOutlet]=\"portal\"></ng-template>`,\r\n providers: [\r\n EsolveMediaLayoutService,\r\n ],\r\n})\r\nexport class EsolveMediaLayoutComponent implements OnChanges {\r\n @Input() public media!: EsolveMediaArticle;\r\n\r\n public portal!: ComponentPortal<any>;\r\n\r\n constructor(\r\n public layoutService: EsolveMediaLayoutService,\r\n ) { }\r\n\r\n public ngOnChanges(): void {\r\n this.layoutService.setMedia(this.media);\r\n const component = this.layoutService.getLayout();\r\n const injector = Injector.create({\r\n providers: [\r\n {\r\n provide: EsolveMediaLayoutService,\r\n useValue: this.layoutService,\r\n },\r\n ],\r\n });\r\n\r\n this.portal = new ComponentPortal(component, null, injector);\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nimport { EsolveMediaLayoutSection } from './classes';\r\n\r\nexport const ESOLVE_SECTION_DATA =\r\n new InjectionToken<EsolveMediaLayoutSection>(\r\n 'esolve.media.layout.section'\r\n );\r\n","import { Component, OnChanges, Input, Injector } from '@angular/core';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\n\r\nimport { ESOLVE_SECTION_DATA } from '../../esolve-section-data.token';\r\nimport { EsolveMediaLayoutSection } from '../../classes';\r\nimport { EsolveMediaLayoutService } from '../../services';\r\n\r\n@Component({\r\n selector: 'eslv-media-section',\r\n templateUrl: './esolve-media-section.component.html',\r\n})\r\nexport class EsolveMediaSectionComponent implements OnChanges {\r\n @Input() public key!: string;\r\n\r\n public portals: ComponentPortal<any>[] = [];\r\n\r\n constructor(\r\n public layoutService: EsolveMediaLayoutService,\r\n ) { }\r\n\r\n public ngOnChanges(): void {\r\n const sections = this.layoutService.getSectionContent(this.key);\r\n this.processPortals(sections);\r\n }\r\n\r\n private processPortals(sections: EsolveMediaLayoutSection[]) {\r\n for (const section of sections) {\r\n const injector = Injector.create({\r\n providers: [\r\n {\r\n provide: ESOLVE_SECTION_DATA,\r\n useValue: section,\r\n },\r\n {\r\n provide: EsolveMediaLayoutService,\r\n useValue: this.layoutService,\r\n },\r\n ],\r\n });\r\n\r\n const component = this.layoutService.getSectionComponent(\r\n this.key,\r\n section,\r\n );\r\n\r\n const portal = new ComponentPortal(component, null, injector);\r\n this.portals.push(portal);\r\n }\r\n }\r\n}\r\n","<ng-container *ngIf=\"portals.length > 0\">\r\n <ng-container *ngFor=\"let portal of portals\">\r\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\r\n </ng-container>\r\n</ng-container>\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\n\r\nimport { NgEsolveConnectModule } from '@esolve/ng-esolve-connect';\r\n\r\nimport { EsolveMediaLayoutComponent, EsolveMediaSectionComponent } from './components';\r\nimport { EsolveConnectMediaConfig } from './esolve-connect-media.config';\r\nimport { ESOLVE_CONNECT_MEDIA_CONFIG } from './esolve-connect-media-config.token';\r\n\r\n@NgModule({\r\n declarations: [\r\n EsolveMediaLayoutComponent,\r\n EsolveMediaSectionComponent,\r\n ],\r\n imports: [\r\n CommonModule,\r\n HttpClientModule,\r\n PortalModule,\r\n NgEsolveConnectModule,\r\n ],\r\n exports: [\r\n EsolveMediaLayoutComponent,\r\n EsolveMediaSectionComponent,\r\n ],\r\n})\r\nexport class NgEsolveConnectMediaModule {\r\n static withConfig(\r\n config: EsolveConnectMediaConfig,\r\n ): ModuleWithProviders<NgEsolveConnectMediaModule> {\r\n return {\r\n ngModule: NgEsolveConnectMediaModule,\r\n providers: [\r\n {\r\n provide: ESOLVE_CONNECT_MEDIA_CONFIG,\r\n useValue: config,\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.EsolveMediaLayoutService","i2","i3"],"mappings":";;;;;;;;;;;MAAa,aAAa,CAAA;IACtB,WACW,CAAA,UAAkB,EAClB,KAAa,EAAA;AADb,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAQ;AAClB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;KACnB;AACR;;MCHY,gBAAgB,CAAA;AAMzB,IAAA,WAAA,CAAY,MAA+B,EAAA;;AALpC,QAAA,IAAE,CAAA,EAAA,GAAW,CAAC,CAAC;AACf,QAAA,IAA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