@sunbird-cb/collection 1.0.11 → 1.0.12

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.
@@ -18552,17 +18552,12 @@
18552
18552
  _this.portalLinks.push(fw);
18553
18553
  }));
18554
18554
  }
18555
- else if (feature.id === 'portal_frac' && feature.featureWidgets.length > 0) {
18556
- feature.featureWidgets.forEach((function (fw) {
18557
- _this.portalLinks.push(fw);
18558
- }));
18559
- }
18560
18555
  }));
18561
18556
  };
18562
18557
  BtnProfileComponent.decorators = [
18563
18558
  { type: core.Component, args: [{
18564
18559
  selector: 'ws-widget-btn-profile',
18565
- template: "<!--\r\n Old\r\n <button mat-button (click)=\"getCatalog()\" i18n-matTooltip matTooltip=\"Explore Catalogue\" #rootTrigger=\"matMenuTrigger\"\r\n [matMenuTriggerFor]=\"rootMenu.childMenu\">\r\n <mat-icon>apps</mat-icon>\r\n <span class=\"padding-left-xs\" i18n>Browse Courses</span>\r\n</button>\r\n\r\n<ws-widget-tree-catalog-menu #rootMenu [rootTrigger]=\"rootTrigger\" [catalogItems]=\"catalogItems | slice: 0:10\"\r\n [fetchStatus]=\"catalogFetchStatus\" isRoot=\"true\">\r\n</ws-widget-tree-catalog-menu> -->\r\n\r\n<a href=\"javascript:void(0)\" mat-icon-button i18n-aria-label title=\"option\" class=\"new-margin\"\r\n #rootTrigger=\"matMenuTrigger\" [matMenuTriggerFor]=\"settingsMenu\" role=\"link\">\r\n <span class=\"flex flex-column flex-middle\">\r\n <ws-widget-avatar-photo [photoUrl]=\"profileImage\" [name]=\"givenName\" size=\"s\">\r\n </ws-widget-avatar-photo>\r\n </span>\r\n</a>\r\n\r\n<!-- <ws-widget-tree-catalog-menu #rootMenu [rootTrigger]=\"rootTrigger\" [catalogItems]=\"catalogItems | slice: 0:10\"\r\n [fetchStatus]=\"catalogFetchStatus\" isRoot=\"true\">\r\n</ws-widget-tree-catalog-menu> -->\r\n<mat-menu #settingsMenu=\"matMenu\" xPosition=\"before\">\r\n <!-- <div mat-menu-item>\r\n <mat-slide-toggle color=\"primary\" labelPosition=\"before\">\r\n <mat-icon>brightness_medium</mat-icon>\r\n <span i18n>Dark Mode</span>\r\n </mat-slide-toggle>\r\n </div> -->\r\n <!-- <section *ngIf=\"pinnedApps?.length && isPinFeatureAvailable\" class=\"p-4 md:p-4 sm:p-2\">\r\n <div class=\"flex justify-between\">\r\n <h2 class=\"mat-title margin-bottom-xs\" i18n>Pinned</h2>\r\n <a mat-button [routerLink]=\"widgetData?.allListingUrl\" *ngIf=\"widgetData?.allListingUrl\">\r\n <span class=\"flex items-center\">\r\n <span i18n>All</span>&nbsp;\r\n <mat-icon>chevron_right</mat-icon>\r\n </span>\r\n </a>\r\n </div>\r\n <div class=\"flex flex-wrap -mx-2 -mt-1\">\r\n <ng-container *ngFor=\"let pinnedWidget of pinnedApps\" [wsResolverWidget]=\"pinnedWidget\"></ng-container>\r\n </div>\r\n </section> -->\r\n\r\n <section class=\"padding-s border-bottom min-heig\">\r\n <a role=\"link\" routerLink=\"/app/person-profile/me\" class=\"all-features\" id=\"viewprofile\">\r\n <div class=\"float-left\">\r\n <ws-widget-avatar-photo [name]=\"givenName\" [size]=\"'m'\" [photoUrl]=\"profileImage\"></ws-widget-avatar-photo>\r\n </div>\r\n <div class=\"inline-block margin-left-s pfname margin-eight\">\r\n <p class=\"mat-subheading-2\">{{ givenName }}</p>\r\n <p i18n role=\"link\" class=\"ws-mat-default-text mat-body-2 font-medium\"></p>\r\n </div>\r\n </a>\r\n </section>\r\n\r\n <!-- portal links section-->\r\n <section *ngIf=\"givenName !== 'Guest' && portalLinks && portalLinks.length\"\r\n class=\"padding-top-xs padding-bottom-xs padding-left-s padding-right-s border-bottom\">\r\n <div class=\"margin-top-s margin-bottom-s\" *ngFor=\"let wdata of portalLinks\">\r\n <div class=\"box-sizing-box\" id=\"wdata.widgetData.actionBtn.id\">\r\n <a class=\"inline-block\" target=\"_blank\" href=\"{{wdata.widgetData.actionBtn.url}}\">\r\n <img src=\"{{wdata.widgetData.actionBtn.icon}}\" alt=\"wdata.widgetData.actionBtn.name\">\r\n <div class=\"mb-2 mat-body-2 inline-block margin-left-s portal-name\"\r\n [attr.id]=\"wdata.widgetData.actionBtn.icon\">{{ wdata.widgetData.actionBtn.name }} <span\r\n *ngIf=\"wdata.widgetData.actionBtn.name !== 'Frac'\">portal</span> <span\r\n *ngIf=\"wdata.widgetData.actionBtn.name === 'Frac'\">dictionary</span></div>\r\n </a>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n <section class=\"padding-xs\">\r\n <!-- <a mat-menu-item role=\"link\" routerLink=\"/app/profile/settings\" class=\"all-features\">\r\n <span i18n>Settings</span>\r\n </a> -->\r\n\r\n <!-- <a mat-menu-item role=\"link\" routerLink=\"/app/features\" class=\"all-features flex-wrap\">\r\n <mat-icon>apps</mat-icon>\r\n <span i18n>Explore all features</span>\r\n </a> -->\r\n\r\n <a *ngIf=\"givenName !== 'Guest'\" href=\"javascript:void(0)\" mat-menu-item role=\"link\" (click)=\"logout()\"\r\n class=\"log-o\">\r\n <!-- <mat-icon>power_settings_new</mat-icon>&nbsp; -->\r\n <span i18n>Sign-out</span>\r\n </a>\r\n </section>\r\n</mat-menu>",
18560
+ template: "<!--\r\n Old\r\n <button mat-button (click)=\"getCatalog()\" i18n-matTooltip matTooltip=\"Explore Catalogue\" #rootTrigger=\"matMenuTrigger\"\r\n [matMenuTriggerFor]=\"rootMenu.childMenu\">\r\n <mat-icon>apps</mat-icon>\r\n <span class=\"padding-left-xs\" i18n>Browse Courses</span>\r\n</button>\r\n\r\n<ws-widget-tree-catalog-menu #rootMenu [rootTrigger]=\"rootTrigger\" [catalogItems]=\"catalogItems | slice: 0:10\"\r\n [fetchStatus]=\"catalogFetchStatus\" isRoot=\"true\">\r\n</ws-widget-tree-catalog-menu> -->\r\n\r\n<a href=\"javascript:void(0)\" mat-icon-button i18n-aria-label title=\"option\" class=\"new-margin\"\r\n #rootTrigger=\"matMenuTrigger\" [matMenuTriggerFor]=\"settingsMenu\" role=\"link\">\r\n <span class=\"flex flex-column flex-middle\">\r\n <ws-widget-avatar-photo [photoUrl]=\"profileImage\" [name]=\"givenName\" size=\"s\">\r\n </ws-widget-avatar-photo>\r\n </span>\r\n</a>\r\n\r\n<!-- <ws-widget-tree-catalog-menu #rootMenu [rootTrigger]=\"rootTrigger\" [catalogItems]=\"catalogItems | slice: 0:10\"\r\n [fetchStatus]=\"catalogFetchStatus\" isRoot=\"true\">\r\n</ws-widget-tree-catalog-menu> -->\r\n<mat-menu #settingsMenu=\"matMenu\" xPosition=\"before\">\r\n <!-- <div mat-menu-item>\r\n <mat-slide-toggle color=\"primary\" labelPosition=\"before\">\r\n <mat-icon>brightness_medium</mat-icon>\r\n <span i18n>Dark Mode</span>\r\n </mat-slide-toggle>\r\n </div> -->\r\n <!-- <section *ngIf=\"pinnedApps?.length && isPinFeatureAvailable\" class=\"p-4 md:p-4 sm:p-2\">\r\n <div class=\"flex justify-between\">\r\n <h2 class=\"mat-title margin-bottom-xs\" i18n>Pinned</h2>\r\n <a mat-button [routerLink]=\"widgetData?.allListingUrl\" *ngIf=\"widgetData?.allListingUrl\">\r\n <span class=\"flex items-center\">\r\n <span i18n>All</span>&nbsp;\r\n <mat-icon>chevron_right</mat-icon>\r\n </span>\r\n </a>\r\n </div>\r\n <div class=\"flex flex-wrap -mx-2 -mt-1\">\r\n <ng-container *ngFor=\"let pinnedWidget of pinnedApps\" [wsResolverWidget]=\"pinnedWidget\"></ng-container>\r\n </div>\r\n </section> -->\r\n\r\n <section class=\"padding-s border-bottom min-heig\">\r\n <a role=\"link\" routerLink=\"/app/person-profile/me\" class=\"all-features\" id=\"viewprofile\">\r\n <div class=\"float-left\">\r\n <ws-widget-avatar-photo [name]=\"givenName\" [size]=\"'m'\" [photoUrl]=\"profileImage\"></ws-widget-avatar-photo>\r\n </div>\r\n <div class=\"inline-block margin-left-s pfname margin-eight\">\r\n <p class=\"mat-subheading-2\">{{ givenName }}</p>\r\n <p i18n role=\"link\" class=\"ws-mat-default-text mat-body-2 font-medium\"></p>\r\n </div>\r\n </a>\r\n </section>\r\n\r\n <!-- portal links section-->\r\n <section *ngIf=\"givenName !== 'Guest' && portalLinks && portalLinks.length\"\r\n class=\"padding-top-xs padding-bottom-xs padding-left-s padding-right-s border-bottom\">\r\n <div class=\"margin-top-s margin-bottom-s\" *ngFor=\"let wdata of portalLinks\">\r\n <div class=\"box-sizing-box\" [attr.id]=\"wdata.widgetData.actionBtn.id\">\r\n <a role=\"button\" class=\"inline-block\" target=\"_blank\" href=\"{{wdata.widgetData.actionBtn.url}}\">\r\n <img src=\"{{wdata.widgetData.actionBtn.icon}}\" [attr.alt]=\"wdata.widgetData.actionBtn.name\">\r\n <div class=\"mb-2 mat-body-2 inline-block margin-left-s portal-name\"\r\n [attr.id]=\"wdata.widgetData.actionBtn.icon\">\r\n {{ wdata.widgetData.actionBtn.name }}\r\n </div>\r\n </a>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n <section class=\"padding-xs\">\r\n <!-- <a mat-menu-item role=\"link\" routerLink=\"/app/profile/settings\" class=\"all-features\">\r\n <span i18n>Settings</span>\r\n </a> -->\r\n\r\n <!-- <a mat-menu-item role=\"link\" routerLink=\"/app/features\" class=\"all-features flex-wrap\">\r\n <mat-icon>apps</mat-icon>\r\n <span i18n>Explore all features</span>\r\n </a> -->\r\n\r\n <a *ngIf=\"givenName !== 'Guest'\" href=\"javascript:void(0)\" mat-menu-item role=\"link\" (click)=\"logout()\"\r\n class=\"log-o\">\r\n <!-- <mat-icon>power_settings_new</mat-icon>&nbsp; -->\r\n <span i18n>Sign-out</span>\r\n </a>\r\n <a *ngIf=\"givenName === 'Guest'\" href=\"javascript:void(0)\" mat-menu-item role=\"link\" (click)=\"logout()\"\r\n class=\"log-o\">\r\n <!-- <mat-icon>power_settings_new</mat-icon>&nbsp; -->\r\n <span i18n>Sign-in</span>\r\n </a>\r\n </section>\r\n</mat-menu>",
18566
18561
  styles: [".log-o{flex:1;text-align:left}.new-margin{box-sizing:border-box}.min-heig{min-height:35px}.trnsform{transform:scale(1.3);height:-webkit-fill-available;max-height:-webkit-fill-available}.margin-eight{margin-top:8px}.text-new{line-height:normal}.border-bottom{border-bottom:1px solid rgba(0,0,0,.08)}section .pfname p{margin-bottom:0!important}section .portal-name{vertical-align:super;color:#000!important}::ng-deep.mat-menu-content{padding-bottom:0!important}::ng-deep.mat-menu-content .mat-menu-item{height:38px;padding:0 6px;font:400 14px/21px Lato!important}::ng-deep.circle-m{width:40px!important;height:40px!important}::ng-deep.circle-m img{width:40px!important;height:40px!important}.csicon{font-size:22px!important}"]
18567
18562
  }] }
18568
18563
  ];