@sunbird-cb/utils-v2 0.0.1
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/README.md +24 -0
- package/bundles/sunbird-cb-utils-v2.umd.js +6940 -0
- package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -0
- package/bundles/sunbird-cb-utils-v2.umd.min.js +16 -0
- package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -0
- package/esm2015/lib/components/image-crop/image-crop.component.js +195 -0
- package/esm2015/lib/components/image-crop/image-crop.module.js +27 -0
- package/esm2015/lib/constants/features.enum.js +555 -0
- package/esm2015/lib/constants/instances.enum.js +5 -0
- package/esm2015/lib/constants/misc.constants.js +1 -0
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +87 -0
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +15 -0
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +38 -0
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +15 -0
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +92 -0
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +15 -0
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +68 -0
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +15 -0
- package/esm2015/lib/directives/navigation/navigation.directive.js +39 -0
- package/esm2015/lib/directives/navigation/navigation.module.js +15 -0
- package/esm2015/lib/directives/permission/permission.directive.js +11 -0
- package/esm2015/lib/directives/permission/permission.module.js +15 -0
- package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +9 -0
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +99 -0
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +19 -0
- package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +172 -0
- package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.js +19 -0
- package/esm2015/lib/helpers/logout/logout.component.js +90 -0
- package/esm2015/lib/helpers/logout/logout.module.js +20 -0
- package/esm2015/lib/models/profile-v3.models.js +104 -0
- package/esm2015/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.js +15 -0
- package/esm2015/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.js +94 -0
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +13 -0
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +59 -0
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +15 -0
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +33 -0
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +15 -0
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +43 -0
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +15 -0
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +79 -0
- package/esm2015/lib/pipes/pipe-email/pipe-email.module.js +15 -0
- package/esm2015/lib/pipes/pipe-email/pipe-email.pipe.js +12 -0
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +16 -0
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +38 -0
- package/esm2015/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.js +21 -0
- package/esm2015/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.js +23 -0
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +15 -0
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +12 -0
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +15 -0
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +25 -0
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +15 -0
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +17 -0
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +15 -0
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +27 -0
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +15 -0
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +16 -0
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +15 -0
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +18 -0
- package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.module.js +15 -0
- package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +23 -0
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +15 -0
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +16 -0
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +15 -0
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +35 -0
- package/esm2015/lib/resolvers/explore-detail.resolver.js +89 -0
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +40 -0
- package/esm2015/lib/resolvers/module-name.resolver.js +38 -0
- package/esm2015/lib/resolvers/page-name.resolver.js +32 -0
- package/esm2015/lib/resolvers/page.constant.js +4 -0
- package/esm2015/lib/resolvers/page.model.js +48 -0
- package/esm2015/lib/resolvers/page.resolver.js +90 -0
- package/esm2015/lib/resolvers/resolver.model.js +6 -0
- package/esm2015/lib/services/auth-keycloak.service.js +266 -0
- package/esm2015/lib/services/auth-microsoft.service.js +196 -0
- package/esm2015/lib/services/card-content.model.js +31 -0
- package/esm2015/lib/services/configurations.model.js +548 -0
- package/esm2015/lib/services/configurations.service.js +140 -0
- package/esm2015/lib/services/content-strip-multiple.model.js +75 -0
- package/esm2015/lib/services/event.model.js +242 -0
- package/esm2015/lib/services/event.service.js +211 -0
- package/esm2015/lib/services/logger.service.js +55 -0
- package/esm2015/lib/services/ms-office.model.js +8 -0
- package/esm2015/lib/services/multilingual-translations.service.js +136 -0
- package/esm2015/lib/services/nps-grid.service.js +45 -0
- package/esm2015/lib/services/subapplication-respond.service.js +214 -0
- package/esm2015/lib/services/telemetry.service.js +621 -0
- package/esm2015/lib/services/user-preference.model.js +38 -0
- package/esm2015/lib/services/user-preference.service.js +90 -0
- package/esm2015/lib/services/utility.service.js +145 -0
- package/esm2015/lib/services/value.service.js +31 -0
- package/esm2015/lib/services/widget-content.model.js +373 -0
- package/esm2015/lib/services/widget-content.service.js +192 -0
- package/esm2015/lib/services/widget-resolver.model.js +57 -0
- package/esm2015/lib/services/widget-search.model.js +126 -0
- package/esm2015/public-api.js +80 -0
- package/esm2015/sunbird-cb-utils-v2.js +11 -0
- package/esm5/lib/components/image-crop/image-crop.component.js +200 -0
- package/esm5/lib/components/image-crop/image-crop.module.js +31 -0
- package/esm5/lib/constants/features.enum.js +555 -0
- package/esm5/lib/constants/instances.enum.js +5 -0
- package/esm5/lib/constants/misc.constants.js +1 -0
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +105 -0
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +19 -0
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +40 -0
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +19 -0
- package/esm5/lib/directives/image-responsive/image-responsive.directive.js +95 -0
- package/esm5/lib/directives/image-responsive/image-responsive.module.js +19 -0
- package/esm5/lib/directives/in-view-port/in-view-port.directive.js +73 -0
- package/esm5/lib/directives/in-view-port/in-view-port.module.js +19 -0
- package/esm5/lib/directives/navigation/navigation.directive.js +41 -0
- package/esm5/lib/directives/navigation/navigation.module.js +19 -0
- package/esm5/lib/directives/permission/permission.directive.js +14 -0
- package/esm5/lib/directives/permission/permission.module.js +19 -0
- package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +9 -0
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +103 -0
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +23 -0
- package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +177 -0
- package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -0
- package/esm5/lib/helpers/logout/logout.component.js +96 -0
- package/esm5/lib/helpers/logout/logout.module.js +24 -0
- package/esm5/lib/models/profile-v3.models.js +104 -0
- package/esm5/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.js +19 -0
- package/esm5/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.js +96 -0
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +17 -0
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +63 -0
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +19 -0
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +37 -0
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +19 -0
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +45 -0
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +19 -0
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +83 -0
- package/esm5/lib/pipes/pipe-email/pipe-email.module.js +19 -0
- package/esm5/lib/pipes/pipe-email/pipe-email.pipe.js +16 -0
- package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +20 -0
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +46 -0
- package/esm5/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.js +25 -0
- package/esm5/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.js +31 -0
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +19 -0
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +16 -0
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +19 -0
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +30 -0
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +19 -0
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +21 -0
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +19 -0
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +31 -0
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +19 -0
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +18 -0
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +19 -0
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +34 -0
- package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.module.js +19 -0
- package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +25 -0
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +19 -0
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +20 -0
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +19 -0
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +38 -0
- package/esm5/lib/resolvers/explore-detail.resolver.js +93 -0
- package/esm5/lib/resolvers/marketing-offering.resolve.js +43 -0
- package/esm5/lib/resolvers/module-name.resolver.js +40 -0
- package/esm5/lib/resolvers/page-name.resolver.js +35 -0
- package/esm5/lib/resolvers/page.constant.js +4 -0
- package/esm5/lib/resolvers/page.model.js +48 -0
- package/esm5/lib/resolvers/page.resolver.js +98 -0
- package/esm5/lib/resolvers/resolver.model.js +6 -0
- package/esm5/lib/services/auth-keycloak.service.js +347 -0
- package/esm5/lib/services/auth-microsoft.service.js +251 -0
- package/esm5/lib/services/card-content.model.js +31 -0
- package/esm5/lib/services/configurations.model.js +548 -0
- package/esm5/lib/services/configurations.service.js +142 -0
- package/esm5/lib/services/content-strip-multiple.model.js +75 -0
- package/esm5/lib/services/event.model.js +242 -0
- package/esm5/lib/services/event.service.js +215 -0
- package/esm5/lib/services/logger.service.js +73 -0
- package/esm5/lib/services/ms-office.model.js +8 -0
- package/esm5/lib/services/multilingual-translations.service.js +138 -0
- package/esm5/lib/services/nps-grid.service.js +47 -0
- package/esm5/lib/services/subapplication-respond.service.js +219 -0
- package/esm5/lib/services/telemetry.service.js +670 -0
- package/esm5/lib/services/user-preference.model.js +38 -0
- package/esm5/lib/services/user-preference.service.js +109 -0
- package/esm5/lib/services/utility.service.js +178 -0
- package/esm5/lib/services/value.service.js +33 -0
- package/esm5/lib/services/widget-content.model.js +373 -0
- package/esm5/lib/services/widget-content.service.js +214 -0
- package/esm5/lib/services/widget-resolver.model.js +57 -0
- package/esm5/lib/services/widget-search.model.js +126 -0
- package/esm5/public-api.js +80 -0
- package/esm5/sunbird-cb-utils-v2.js +11 -0
- package/fesm2015/sunbird-cb-utils-v2.js +6160 -0
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -0
- package/fesm5/sunbird-cb-utils-v2.js +6649 -0
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -0
- package/lib/components/image-crop/image-crop.component.d.ts +56 -0
- package/lib/components/image-crop/image-crop.module.d.ts +2 -0
- package/lib/constants/features.enum.d.ts +553 -0
- package/lib/constants/instances.enum.d.ts +3 -0
- package/lib/constants/misc.constants.d.ts +2 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +18 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +2 -0
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -0
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +2 -0
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +17 -0
- package/lib/directives/image-responsive/image-responsive.module.d.ts +2 -0
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +11 -0
- package/lib/directives/in-view-port/in-view-port.module.d.ts +2 -0
- package/lib/directives/navigation/navigation.directive.d.ts +9 -0
- package/lib/directives/navigation/navigation.module.d.ts +2 -0
- package/lib/directives/permission/permission.directive.d.ts +3 -0
- package/lib/directives/permission/permission.module.d.ts +2 -0
- package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +18 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +2 -0
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +31 -0
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -0
- package/lib/helpers/logout/logout.component.d.ts +20 -0
- package/lib/helpers/logout/logout.module.d.ts +2 -0
- package/lib/models/profile-v3.models.d.ts +91 -0
- package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.d.ts +2 -0
- package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.d.ts +6 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +2 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +10 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +2 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +4 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +2 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +13 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -0
- package/lib/pipes/pipe-email/pipe-email.module.d.ts +2 -0
- package/lib/pipes/pipe-email/pipe-email.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +2 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +2 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.d.ts +2 -0
- package/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.d.ts +2 -0
- package/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.d.ts +4 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +2 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +4 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +2 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +4 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +2 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +4 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +2 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +9 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +2 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +9 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +2 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +4 -0
- package/lib/pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -0
- package/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +2 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +4 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +2 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +7 -0
- package/lib/resolvers/explore-detail.resolver.d.ts +16 -0
- package/lib/resolvers/marketing-offering.resolve.d.ts +10 -0
- package/lib/resolvers/module-name.resolver.d.ts +6 -0
- package/lib/resolvers/page-name.resolver.d.ts +5 -0
- package/lib/resolvers/page.constant.d.ts +1 -0
- package/lib/resolvers/page.model.d.ts +41 -0
- package/lib/resolvers/page.resolver.d.ts +17 -0
- package/lib/resolvers/resolver.model.d.ts +4 -0
- package/lib/services/auth-keycloak.service.d.ts +31 -0
- package/lib/services/auth-microsoft.service.d.ts +30 -0
- package/lib/services/card-content.model.d.ts +29 -0
- package/lib/services/configurations.model.d.ts +521 -0
- package/lib/services/configurations.service.d.ts +73 -0
- package/lib/services/content-strip-multiple.model.d.ts +79 -0
- package/lib/services/event.model.d.ts +205 -0
- package/lib/services/event.service.d.ts +30 -0
- package/lib/services/logger.service.d.ts +15 -0
- package/lib/services/ms-office.model.d.ts +6 -0
- package/lib/services/multilingual-translations.service.d.ts +20 -0
- package/lib/services/nps-grid.service.d.ts +12 -0
- package/lib/services/subapplication-respond.service.d.ts +23 -0
- package/lib/services/telemetry.service.d.ts +56 -0
- package/lib/services/user-preference.model.d.ts +34 -0
- package/lib/services/user-preference.service.d.ts +11 -0
- package/lib/services/utility.service.d.ts +31 -0
- package/lib/services/value.service.d.ts +8 -0
- package/lib/services/widget-content.model.d.ts +344 -0
- package/lib/services/widget-content.service.d.ts +47 -0
- package/lib/services/widget-resolver.model.d.ts +48 -0
- package/lib/services/widget-search.model.d.ts +114 -0
- package/package.json +35 -0
- package/public-api.d.ts +79 -0
- package/sunbird-cb-utils-v2.d.ts +10 -0
- package/sunbird-cb-utils-v2.metadata.json +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
export declare class DefaultThumbnailDirective implements OnChanges {
|
|
3
|
+
wsUtilsDefaultThumbnail: string;
|
|
4
|
+
src: string;
|
|
5
|
+
isSrcUpdateAttemptedForDefault: boolean;
|
|
6
|
+
srcUrl: string;
|
|
7
|
+
updateSrc(): void;
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { OnChanges, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
export interface IImageResponsiveUnit {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ImageResponsiveDirective implements OnChanges, OnDestroy {
|
|
8
|
+
private breakpointObserver;
|
|
9
|
+
src: IImageResponsiveUnit | null;
|
|
10
|
+
srcBindUrl: string;
|
|
11
|
+
currentSize: string;
|
|
12
|
+
breakpointSubscription: Subscription | null;
|
|
13
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
private setSrc;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
export declare class InViewPortDirective implements OnInit, OnDestroy {
|
|
3
|
+
private _el;
|
|
4
|
+
private scroll;
|
|
5
|
+
private resize;
|
|
6
|
+
inViewport: EventEmitter<boolean>;
|
|
7
|
+
constructor(_el: ElementRef);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
check(partial?: boolean, direction?: string): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { TFetchStatus } from '../../constants/misc.constants';
|
|
3
|
+
export declare class HorizontalScrollerComponent implements OnInit, OnChanges, OnDestroy {
|
|
4
|
+
loadStatus: TFetchStatus;
|
|
5
|
+
onHover: boolean;
|
|
6
|
+
loadNext: EventEmitter<any>;
|
|
7
|
+
horizontalScrollElem: ElementRef | null;
|
|
8
|
+
enablePrev: boolean;
|
|
9
|
+
enableNext: boolean;
|
|
10
|
+
private scrollObserver;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
showPrev(): void;
|
|
16
|
+
showNext(): void;
|
|
17
|
+
private updateNavigationBtnStatus;
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { TFetchStatus } from '../../constants/misc.constants';
|
|
3
|
+
export declare class HorizontalScrollerV2Component implements OnInit, OnChanges, OnDestroy {
|
|
4
|
+
loadStatus: TFetchStatus;
|
|
5
|
+
onHover: boolean;
|
|
6
|
+
sliderConfig: {
|
|
7
|
+
showNavs: boolean;
|
|
8
|
+
showDots: boolean;
|
|
9
|
+
cerificateCardMargin: boolean;
|
|
10
|
+
};
|
|
11
|
+
loadNext: EventEmitter<any>;
|
|
12
|
+
widgetsLength: any;
|
|
13
|
+
defaultMaxWidgets: any;
|
|
14
|
+
stripConfig: any;
|
|
15
|
+
horizontalScrollElem: ElementRef | null;
|
|
16
|
+
enablePrev: boolean;
|
|
17
|
+
enableNext: boolean;
|
|
18
|
+
activeNav: number;
|
|
19
|
+
cardSubType: string;
|
|
20
|
+
bottomDotsArray: any;
|
|
21
|
+
private scrollObserver;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnChanges(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
showPrev(): void;
|
|
27
|
+
showNext(): void;
|
|
28
|
+
private updateNavigationBtnStatus;
|
|
29
|
+
slideTo(ele: any): void;
|
|
30
|
+
getBottomDotsArray(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material';
|
|
3
|
+
import { AuthKeycloakService } from '../../services/auth-keycloak.service';
|
|
4
|
+
import { ConfigurationsService } from '../../services/configurations.service';
|
|
5
|
+
import { UtilityService } from '../../services/utility.service';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
export declare class LogoutComponent implements OnInit {
|
|
8
|
+
dialogRef: MatDialogRef<LogoutComponent>;
|
|
9
|
+
private authSvc;
|
|
10
|
+
private configSvc;
|
|
11
|
+
private utilitySvc;
|
|
12
|
+
private translate;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
isDownloadableIos: boolean;
|
|
15
|
+
isDownloadableAndroid: boolean;
|
|
16
|
+
constructor(dialogRef: MatDialogRef<LogoutComponent>, authSvc: AuthKeycloakService, configSvc: ConfigurationsService, utilitySvc: UtilityService, translate: TranslateService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
confirmed(): void;
|
|
19
|
+
readonly isDownloadable: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare namespace NSProfileDataV3 {
|
|
2
|
+
interface IProfileJsonData {
|
|
3
|
+
tabs: IProfileTab[];
|
|
4
|
+
}
|
|
5
|
+
interface IProfileTab {
|
|
6
|
+
name: string;
|
|
7
|
+
key: string;
|
|
8
|
+
badges: {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
uri?: string;
|
|
11
|
+
};
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
check: boolean;
|
|
14
|
+
routerLink: string;
|
|
15
|
+
step: number;
|
|
16
|
+
description: string;
|
|
17
|
+
largeDesc?: any;
|
|
18
|
+
allowSkip?: any;
|
|
19
|
+
}
|
|
20
|
+
interface ICompetencie {
|
|
21
|
+
type: string;
|
|
22
|
+
status: string;
|
|
23
|
+
source: string;
|
|
24
|
+
competencySelfAttestedLevel?: string;
|
|
25
|
+
competencySelfAttestedLevelValue?: string;
|
|
26
|
+
competencySelfAttestedLevelName?: string;
|
|
27
|
+
osid?: string;
|
|
28
|
+
competencyType?: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
competencyLevel?: ICompetencyLevel[];
|
|
33
|
+
children?: any[];
|
|
34
|
+
competencyCBPCompletionLevel?: string;
|
|
35
|
+
competencyCBPCompletionLevelName?: string;
|
|
36
|
+
competencyCBPCompletionLevelValue?: string;
|
|
37
|
+
}
|
|
38
|
+
interface ICompetencyLevel {
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
interface ITopic {
|
|
42
|
+
children: any[];
|
|
43
|
+
code: string;
|
|
44
|
+
description: string;
|
|
45
|
+
identifier: string;
|
|
46
|
+
index: number;
|
|
47
|
+
name: string;
|
|
48
|
+
noOfHoursConsumed: number;
|
|
49
|
+
status: string;
|
|
50
|
+
}
|
|
51
|
+
interface ISearch {
|
|
52
|
+
type: string;
|
|
53
|
+
field: string;
|
|
54
|
+
keyword: string;
|
|
55
|
+
}
|
|
56
|
+
interface IDesiredTopic {
|
|
57
|
+
request: {
|
|
58
|
+
userId: string;
|
|
59
|
+
profileDetails: {
|
|
60
|
+
desiredTopics: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
interface ISystemTopic {
|
|
65
|
+
request: {
|
|
66
|
+
userId: string;
|
|
67
|
+
profileDetails: {
|
|
68
|
+
systemTopics: ISystemTopicChield[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
interface ISystemTopicChield {
|
|
73
|
+
identifier: string;
|
|
74
|
+
name: string;
|
|
75
|
+
children: [];
|
|
76
|
+
}
|
|
77
|
+
interface IRolesAndActivities {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
activities: IRolesActivity[];
|
|
82
|
+
}
|
|
83
|
+
interface IRolesActivity {
|
|
84
|
+
description: string;
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}
|
|
88
|
+
interface IChipItems {
|
|
89
|
+
name: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
interface IDateRange {
|
|
3
|
+
fromDate: Date;
|
|
4
|
+
toDate: Date;
|
|
5
|
+
timeZone?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class PipeConciseDateRangePipe implements PipeTransform {
|
|
8
|
+
transform(dateRange: IDateRange): string;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
interface ICertificationDate {
|
|
3
|
+
day: number;
|
|
4
|
+
month: number;
|
|
5
|
+
year: number;
|
|
6
|
+
timeZone?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class PipeDateConcatPipe implements PipeTransform {
|
|
9
|
+
private readonly months;
|
|
10
|
+
constructor();
|
|
11
|
+
transform(value: ICertificationDate): string;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
export declare class PipeDurationTransformPipe implements PipeTransform {
|
|
3
|
+
transform(data: number, type: 'time24' | 'hms' | 'hour' | 'hms2H' | 'hms2M' | 'day'): any;
|
|
4
|
+
defaultDuration(h: number, m: number, s: number): string;
|
|
5
|
+
hmsCalculation(h: number, m: number, s: number, dur: string, type: string): string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
export declare class OrderByPipe implements PipeTransform {
|
|
3
|
+
transform: {
|
|
4
|
+
<T>(collection: ArrayLike<T> | null | undefined, iteratees?: import("lodash").ListIterator<T, unknown> | readonly import("lodash").ListIterator<T, unknown>[] | undefined, orders?: boolean | "desc" | "asc" | readonly (boolean | "desc" | "asc")[] | undefined): T[];
|
|
5
|
+
<T>(collection: ArrayLike<T> | null | undefined, iteratees?: string | number | symbol | [string | number | symbol, any] | import("lodash").ListIterator<T, unknown> | import("lodash").PartialShallow<T> | readonly import("lodash").ListIteratee<T>[] | undefined, orders?: boolean | "desc" | "asc" | readonly (boolean | "desc" | "asc")[] | undefined): T[];
|
|
6
|
+
<T extends object>(collection: T | null | undefined, iteratees?: import("lodash").ObjectIterator<T, unknown> | readonly import("lodash").ObjectIterator<T, unknown>[] | undefined, orders?: boolean | "desc" | "asc" | readonly (boolean | "desc" | "asc")[] | undefined): T[keyof T][];
|
|
7
|
+
<T extends object>(collection: T | null | undefined, iteratees?: string | number | symbol | [string | number | symbol, any] | import("lodash").ObjectIterator<T, unknown> | import("lodash").PartialShallow<T[keyof T]> | readonly import("lodash").ObjectIteratee<T>[] | undefined, orders?: boolean | "desc" | "asc" | readonly (boolean | "desc" | "asc")[] | undefined): T[keyof T][];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
export declare class PipeSafeSanitizerPipe implements PipeTransform {
|
|
4
|
+
protected sanitizer: DomSanitizer;
|
|
5
|
+
constructor(sanitizer: DomSanitizer);
|
|
6
|
+
transform(value: string, type?: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { UtilityService } from '../services/utility.service';
|
|
5
|
+
import { ConfigurationsService } from '../services/configurations.service';
|
|
6
|
+
import { IResolveResponse } from './resolver.model';
|
|
7
|
+
export declare class ExploreDetailResolve implements Resolve<Observable<IResolveResponse<any>> | IResolveResponse<any>> {
|
|
8
|
+
private http;
|
|
9
|
+
private configSvc;
|
|
10
|
+
private utilitySvc;
|
|
11
|
+
private baseUrl;
|
|
12
|
+
isIntranetAllowedSettings: boolean;
|
|
13
|
+
constructor(http: HttpClient, configSvc: ConfigurationsService, utilitySvc: UtilityService);
|
|
14
|
+
resolve(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): Observable<IResolveResponse<any>>;
|
|
15
|
+
private transformPageData;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { IResolveResponse } from './resolver.model';
|
|
5
|
+
export declare class MarketingOfferingResolve implements Resolve<Observable<IResolveResponse<any>> | IResolveResponse<any>> {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
resolve(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): Observable<IResolveResponse<any>>;
|
|
9
|
+
private transformPageData;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const JSON_MAP: any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ThemePalette } from '@angular/material';
|
|
2
|
+
import { NsAppsConfig } from '../services/configurations.model';
|
|
3
|
+
import { NsWidgetResolver } from '../services/widget-resolver.model';
|
|
4
|
+
export declare namespace NsPage {
|
|
5
|
+
interface IPage {
|
|
6
|
+
contentType: string;
|
|
7
|
+
primaryCategory?: string;
|
|
8
|
+
navigationBar: INavBar;
|
|
9
|
+
pageLayout: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
10
|
+
tourGuide?: string[][];
|
|
11
|
+
}
|
|
12
|
+
interface INavBar {
|
|
13
|
+
links: NsWidgetResolver.IRenderConfigWithTypedData<INavLink>[];
|
|
14
|
+
xsmallNonMenuLinks: NsWidgetResolver.IRenderConfigWithTypedData<INavLink>[];
|
|
15
|
+
pageBackLink: string;
|
|
16
|
+
pageTitle: string;
|
|
17
|
+
background: INavBackground;
|
|
18
|
+
}
|
|
19
|
+
interface INavBackground {
|
|
20
|
+
color: 'primary' | 'accent' | 'warn' | 'default';
|
|
21
|
+
styles: {
|
|
22
|
+
[id: string]: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
interface INavLink {
|
|
26
|
+
config: Pick<INavLinkConfig<'card-full' | 'card-small'>, 'type' | 'hideStatus'> | Pick<INavLinkConfig<'mat-icon-button' | 'mat-fab' | 'mat-mini-fab' | 'card-mini'>, 'type'> | Pick<INavLinkConfig<'mat-button' | 'mat-raised-button' | 'mat-flat-button' | 'mat-stroked-button'>, 'type' | 'hideIcon' | 'hideTitle'> | Pick<INavLinkConfig<'mat-menu-item'>, 'type'> | Pick<INavLinkConfig<'feature-item'>, 'type' | 'useShortName' | 'iconColor' | 'treatAsCard' | 'hidePin'>;
|
|
27
|
+
actionBtnId?: string;
|
|
28
|
+
actionBtn?: NsAppsConfig.IFeature;
|
|
29
|
+
actionBtnName?: string;
|
|
30
|
+
}
|
|
31
|
+
interface INavLinkConfig<T> {
|
|
32
|
+
type: T;
|
|
33
|
+
hideIcon?: boolean;
|
|
34
|
+
hideTitle?: boolean;
|
|
35
|
+
hideStatus?: boolean;
|
|
36
|
+
hidePin?: boolean;
|
|
37
|
+
iconColor?: ThemePalette;
|
|
38
|
+
treatAsCard?: boolean;
|
|
39
|
+
useShortName?: boolean;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ConfigurationsService } from '../services/configurations.service';
|
|
5
|
+
import { NsPage } from './page.model';
|
|
6
|
+
import { IResolveResponse } from './resolver.model';
|
|
7
|
+
export declare class PageResolve implements Resolve<IResolveResponse<NsPage.IPage>> {
|
|
8
|
+
private configSvc;
|
|
9
|
+
private http;
|
|
10
|
+
private locale;
|
|
11
|
+
private baseUrl;
|
|
12
|
+
constructor(configSvc: ConfigurationsService, http: HttpClient, locale: string);
|
|
13
|
+
resolve(route: ActivatedRouteSnapshot): Observable<IResolveResponse<NsPage.IPage>> | IResolveResponse<NsPage.IPage>;
|
|
14
|
+
private setS3Cookie;
|
|
15
|
+
private getContent;
|
|
16
|
+
private getData;
|
|
17
|
+
}
|