forked from CIT/Vmeda.Online
		
	MOBILE-3627 lint: Fix multiple line in the whole code
This commit is contained in:
		
							parent
							
								
									f8a18f4e04
								
							
						
					
					
						commit
						f52e8d2442
					
				@ -20,7 +20,6 @@ import { CoreNavigator } from '@services/navigator';
 | 
				
			|||||||
import { makeSingleton } from '@singletons';
 | 
					import { makeSingleton } from '@singletons';
 | 
				
			||||||
import { AddonBadges } from '../badges';
 | 
					import { AddonBadges } from '../badges';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Handler to treat links to user participants page.
 | 
					 * Handler to treat links to user participants page.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -41,7 +41,6 @@ export class AddonBlockRecentlyAccessedItemsComponent extends CoreBlockBaseCompo
 | 
				
			|||||||
        super('AddonBlockRecentlyAccessedItemsComponent');
 | 
					        super('AddonBlockRecentlyAccessedItemsComponent');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Perform the invalidate content function.
 | 
					     * Perform the invalidate content function.
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
				
			|||||||
@ -77,7 +77,6 @@ export class AddonBlockRecentlyAccessedItemsProvider {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
export const AddonBlockRecentlyAccessedItems = makeSingleton(AddonBlockRecentlyAccessedItemsProvider);
 | 
					export const AddonBlockRecentlyAccessedItems = makeSingleton(AddonBlockRecentlyAccessedItemsProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Result of WS block_recentlyaccesseditems_get_recent_items.
 | 
					 * Result of WS block_recentlyaccesseditems_get_recent_items.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,6 @@ import { CoreCourseComponentsModule } from '@features/course/components/componen
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { AddonBlockSiteMainMenuComponent } from './sitemainmenu/sitemainmenu';
 | 
					import { AddonBlockSiteMainMenuComponent } from './sitemainmenu/sitemainmenu';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    declarations: [
 | 
					    declarations: [
 | 
				
			||||||
        AddonBlockSiteMainMenuComponent,
 | 
					        AddonBlockSiteMainMenuComponent,
 | 
				
			||||||
 | 
				
			|||||||
@ -139,7 +139,6 @@ export class AddonCalendarCalendarComponent implements OnInit, DoCheck, OnDestro
 | 
				
			|||||||
        this.fetchData();
 | 
					        this.fetchData();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Detect and act upon changes that Angular can’t or won’t detect on its own (objects and arrays).
 | 
					     * Detect and act upon changes that Angular can’t or won’t detect on its own (objects and arrays).
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,6 @@ import { AddonCalendarFilter, AddonCalendarEventIcons } from '../../services/cal
 | 
				
			|||||||
})
 | 
					})
 | 
				
			||||||
export class AddonCalendarFilterPopoverComponent implements OnInit {
 | 
					export class AddonCalendarFilterPopoverComponent implements OnInit {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    @Input() filter: AddonCalendarFilter = {
 | 
					    @Input() filter: AddonCalendarFilter = {
 | 
				
			||||||
        filtered: false,
 | 
					        filtered: false,
 | 
				
			||||||
        courseId: -1,
 | 
					        courseId: -1,
 | 
				
			||||||
@ -54,7 +53,6 @@ export class AddonCalendarFilterPopoverComponent implements OnInit {
 | 
				
			|||||||
            this.types.push(value);
 | 
					            this.types.push(value);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
				
			|||||||
@ -266,7 +266,6 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave {
 | 
				
			|||||||
                    // Ignore errors.
 | 
					                    // Ignore errors.
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (this.showAll) {
 | 
					        if (this.showAll) {
 | 
				
			||||||
            // Remove site home from the list of courses.
 | 
					            // Remove site home from the list of courses.
 | 
				
			||||||
            const siteHomeId = CoreSites.getCurrentSiteHomeId();
 | 
					            const siteHomeId = CoreSites.getCurrentSiteHomeId();
 | 
				
			||||||
@ -285,7 +284,6 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave {
 | 
				
			|||||||
            await Promise.all((courses as CoreEnrolledCourseData[]).map(courseFillterFullname));
 | 
					            await Promise.all((courses as CoreEnrolledCourseData[]).map(courseFillterFullname));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        // Sort courses by name.
 | 
					        // Sort courses by name.
 | 
				
			||||||
        this.courses = courses.sort((a, b) => {
 | 
					        this.courses = courses.sort((a, b) => {
 | 
				
			||||||
            const compareA = a.fullname.toLowerCase();
 | 
					            const compareA = a.fullname.toLowerCase();
 | 
				
			||||||
 | 
				
			|||||||
@ -34,7 +34,6 @@ import { CoreNavigator } from '@services/navigator';
 | 
				
			|||||||
import { CoreLocalNotifications } from '@services/local-notifications';
 | 
					import { CoreLocalNotifications } from '@services/local-notifications';
 | 
				
			||||||
import { CoreConstants } from '@/core/constants';
 | 
					import { CoreConstants } from '@/core/constants';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Page that displays the calendar events.
 | 
					 * Page that displays the calendar events.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -47,7 +47,6 @@ const routes: Routes = [
 | 
				
			|||||||
    ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
 | 
					    ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    imports: [
 | 
					    imports: [
 | 
				
			||||||
        RouterModule.forChild(routes),
 | 
					        RouterModule.forChild(routes),
 | 
				
			||||||
 | 
				
			|||||||
@ -12,7 +12,6 @@
 | 
				
			|||||||
// See the License for the specific language governing permissions and
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
// limitations under the License.
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
import { NgModule } from '@angular/core';
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
import { RouterModule, Routes } from '@angular/router';
 | 
					import { RouterModule, Routes } from '@angular/router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -55,7 +55,6 @@ export class AddonCalendarHelperProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    protected eventTypeIcons: string[] = [];
 | 
					    protected eventTypeIcons: string[] = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Returns event icon based on event type.
 | 
					     * Returns event icon based on event type.
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
				
			|||||||
@ -722,7 +722,6 @@ export class AddonCalendarProvider {
 | 
				
			|||||||
        const originalEvent = record as AddonCalendarGetEventsEvent;
 | 
					        const originalEvent = record as AddonCalendarGetEventsEvent;
 | 
				
			||||||
        const recordAsRecord = record as AddonCalendarEventDBRecord;
 | 
					        const recordAsRecord = record as AddonCalendarEventDBRecord;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        // Calculate data to match the new WS.
 | 
					        // Calculate data to match the new WS.
 | 
				
			||||||
        eventConverted.descriptionformat = originalEvent.format;
 | 
					        eventConverted.descriptionformat = originalEvent.format;
 | 
				
			||||||
        eventConverted.iscourseevent = originalEvent.eventtype == AddonCalendarEventType.COURSE;
 | 
					        eventConverted.iscourseevent = originalEvent.eventtype == AddonCalendarEventType.COURSE;
 | 
				
			||||||
@ -947,7 +946,6 @@ export class AddonCalendarProvider {
 | 
				
			|||||||
            params.events!.courseids = courses.map((course) => course.id);
 | 
					            params.events!.courseids = courses.map((course) => course.id);
 | 
				
			||||||
            params.events!.courseids.push(site.getSiteHomeId()); // Add front page.
 | 
					            params.events!.courseids.push(site.getSiteHomeId()); // Add front page.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1941,7 +1939,6 @@ export type AddonCalendarCalendarDay = {
 | 
				
			|||||||
    rarrow: string; // Rarrow.
 | 
					    rarrow: string; // Rarrow.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_calendar_get_calendar_monthly_view WS.
 | 
					 * Params of core_calendar_get_calendar_monthly_view WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -2035,7 +2032,6 @@ export type AddonCalendarDayName = {
 | 
				
			|||||||
    fullname: string; // Fullname.
 | 
					    fullname: string; // Fullname.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_calendar_get_calendar_upcoming_view WS.
 | 
					 * Params of core_calendar_get_calendar_upcoming_view WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -2090,7 +2086,6 @@ export type AddonCalendarGetAllowedEventTypesWSResponse = {
 | 
				
			|||||||
    warnings?: CoreWSExternalWarning[];
 | 
					    warnings?: CoreWSExternalWarning[];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_calendar_get_calendar_events WS.
 | 
					 * Params of core_calendar_get_calendar_events WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -2187,7 +2182,6 @@ type AddonCalendarGetCalendarDayViewWSParams = {
 | 
				
			|||||||
    categoryid?: number; // Category being viewed.
 | 
					    categoryid?: number; // Category being viewed.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_calendar_submit_create_update_form WS.
 | 
					 * Params of core_calendar_submit_create_update_form WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,6 @@ import { CoreSharedModule } from '@/core/shared.module';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { AddonMessagesConversationInfoComponent } from './conversation-info/conversation-info';
 | 
					import { AddonMessagesConversationInfoComponent } from './conversation-info/conversation-info';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    declarations: [
 | 
					    declarations: [
 | 
				
			||||||
        AddonMessagesConversationInfoComponent,
 | 
					        AddonMessagesConversationInfoComponent,
 | 
				
			||||||
 | 
				
			|||||||
@ -62,7 +62,6 @@ export class AddonMessagesContacts35Page implements OnInit, OnDestroy {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    searchString = '';
 | 
					    searchString = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    constructor(
 | 
					    constructor(
 | 
				
			||||||
        protected route: ActivatedRoute,
 | 
					        protected route: ActivatedRoute,
 | 
				
			||||||
    ) {
 | 
					    ) {
 | 
				
			||||||
 | 
				
			|||||||
@ -45,7 +45,6 @@ const routes: Routes = [
 | 
				
			|||||||
    ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
 | 
					    ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    imports: [
 | 
					    imports: [
 | 
				
			||||||
        RouterModule.forChild(routes),
 | 
					        RouterModule.forChild(routes),
 | 
				
			||||||
 | 
				
			|||||||
@ -58,7 +58,6 @@ export class AddonMessagesContactsPage implements OnInit, OnDestroy {
 | 
				
			|||||||
    protected contactRequestsCountObserver: CoreEventObserver;
 | 
					    protected contactRequestsCountObserver: CoreEventObserver;
 | 
				
			||||||
    protected memberInfoObserver: CoreEventObserver;
 | 
					    protected memberInfoObserver: CoreEventObserver;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.siteId = CoreSites.getCurrentSiteId();
 | 
					        this.siteId = CoreSites.getCurrentSiteId();
 | 
				
			||||||
 | 
				
			|||||||
@ -326,7 +326,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
 | 
				
			|||||||
                        return;
 | 
					                        return;
 | 
				
			||||||
                    }));
 | 
					                    }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                // Fetch the messages for the first time.
 | 
					                // Fetch the messages for the first time.
 | 
				
			||||||
@ -596,7 +595,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        // Retrieve the conversation. Invalidate data first to get the right unreadcount.
 | 
					        // Retrieve the conversation. Invalidate data first to get the right unreadcount.
 | 
				
			||||||
        await AddonMessages.invalidateConversation(conversationId!);
 | 
					        await AddonMessages.invalidateConversation(conversationId!);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1191,7 +1189,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
 | 
				
			|||||||
                    data = await AddonMessages.sendMessage(this.userId!, text);
 | 
					                    data = await AddonMessages.sendMessage(this.userId!, text);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
                this.messagesBeingSent--;
 | 
					                this.messagesBeingSent--;
 | 
				
			||||||
                let failure = false;
 | 
					                let failure = false;
 | 
				
			||||||
                if (data.sent) {
 | 
					                if (data.sent) {
 | 
				
			||||||
 | 
				
			|||||||
@ -124,7 +124,6 @@ export class AddonMessagesDiscussions35Page implements OnInit, OnDestroy {
 | 
				
			|||||||
            this.refreshData();
 | 
					            this.refreshData();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        // If a message push notification is received, refresh the view.
 | 
					        // If a message push notification is received, refresh the view.
 | 
				
			||||||
        this.pushObserver = CorePushNotificationsDelegate.on<CorePushNotificationsNotificationBasicData>('receive')
 | 
					        this.pushObserver = CorePushNotificationsDelegate.on<CorePushNotificationsNotificationBasicData>('receive')
 | 
				
			||||||
            .subscribe((notification) => {
 | 
					            .subscribe((notification) => {
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,6 @@ export class AddonMessagesIndexLinkHandlerService extends CoreContentLinksHandle
 | 
				
			|||||||
    name = 'AddonMessagesIndexLinkHandler';
 | 
					    name = 'AddonMessagesIndexLinkHandler';
 | 
				
			||||||
    pattern = /\/message\/index\.php((?=\d+).)*$/;
 | 
					    pattern = /\/message\/index\.php((?=\d+).)*$/;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Get the list of actions for a link (url).
 | 
					     * Get the list of actions for a link (url).
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
				
			|||||||
@ -106,7 +106,6 @@ export class AddonMessagesOfflineProvider {
 | 
				
			|||||||
            ),
 | 
					            ),
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        const messageResult:
 | 
					        const messageResult:
 | 
				
			||||||
        AddonMessagesOfflineAnyMessagesFormatted[] =
 | 
					        AddonMessagesOfflineAnyMessagesFormatted[] =
 | 
				
			||||||
            this.parseMessages(messages);
 | 
					            this.parseMessages(messages);
 | 
				
			||||||
@ -379,6 +378,5 @@ export type AddonMessagesOfflineConversationMessagesDBRecordFormatted =
 | 
				
			|||||||
        useridfrom?: number; // User Id who send the message, will be likely us.
 | 
					        useridfrom?: number; // User Id who send the message, will be likely us.
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
export type AddonMessagesOfflineAnyMessagesFormatted =
 | 
					export type AddonMessagesOfflineAnyMessagesFormatted =
 | 
				
			||||||
    AddonMessagesOfflineConversationMessagesDBRecordFormatted | AddonMessagesOfflineMessagesDBRecordFormatted;
 | 
					    AddonMessagesOfflineConversationMessagesDBRecordFormatted | AddonMessagesOfflineMessagesDBRecordFormatted;
 | 
				
			||||||
 | 
				
			|||||||
@ -1413,7 +1413,6 @@ export class AddonMessagesProvider {
 | 
				
			|||||||
        return AddonMessagesMainMenuHandlerService.PAGE_NAME + ( enabled ? '/group-conversations' : '');
 | 
					        return AddonMessagesMainMenuHandlerService.PAGE_NAME + ( enabled ? '/group-conversations' : '');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Get messages according to the params.
 | 
					     * Get messages according to the params.
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
@ -1749,7 +1748,6 @@ export class AddonMessagesProvider {
 | 
				
			|||||||
        const site = await CoreSites.getSite(siteId);
 | 
					        const site = await CoreSites.getSite(siteId);
 | 
				
			||||||
        userId = userId || site.getUserId();
 | 
					        userId = userId || site.getUserId();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        await site.invalidateWsCacheForKey(this.getCacheKeyForConversationBetweenUsers(userId, otherUserId));
 | 
					        await site.invalidateWsCacheForKey(this.getCacheKeyForConversationBetweenUsers(userId, otherUserId));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3065,7 +3063,6 @@ export type AddonMessagesConversationMessageFormatted =
 | 
				
			|||||||
        showTail?: boolean; // Calculated in the app. Whether to show a "tail" in the message.
 | 
					        showTail?: boolean; // Calculated in the app. Whether to show a "tail" in the message.
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Data returned by core_message_get_user_message_preferences WS.
 | 
					 * Data returned by core_message_get_user_message_preferences WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -3559,7 +3556,6 @@ export type AddonMessagesGetUserContactsWSResponse = {
 | 
				
			|||||||
    }[];
 | 
					    }[];
 | 
				
			||||||
}[];
 | 
					}[];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_message_get_contact_requests WS.
 | 
					 * Params of core_message_get_contact_requests WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -12,7 +12,6 @@
 | 
				
			|||||||
// See the License for the specific language governing permissions and
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
// limitations under the License.
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
import { Component, Input, ViewChild, ElementRef } from '@angular/core';
 | 
					import { Component, Input, ViewChild, ElementRef } from '@angular/core';
 | 
				
			||||||
import { CoreSites } from '@services/sites';
 | 
					import { CoreSites } from '@services/sites';
 | 
				
			||||||
import { CoreDomUtils } from '@services/utils/dom';
 | 
					import { CoreDomUtils } from '@services/utils/dom';
 | 
				
			||||||
 | 
				
			|||||||
@ -275,7 +275,6 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
 | 
				
			|||||||
            cmId: this.module!.id,
 | 
					            cmId: this.module!.id,
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.summary = submissionStatus.gradingsummary;
 | 
					        this.summary = submissionStatus.gradingsummary;
 | 
				
			||||||
        if (!this.summary) {
 | 
					        if (!this.summary) {
 | 
				
			||||||
            this.needsGradingAvalaible = false;
 | 
					            this.needsGradingAvalaible = false;
 | 
				
			||||||
 | 
				
			|||||||
@ -1190,7 +1190,6 @@ type AddonModAssignSubmissionFeedbackFormatted = AddonModAssignSubmissionFeedbac
 | 
				
			|||||||
    advancedgrade?: boolean; // Calculated in the app. Whether it uses advanced grading.
 | 
					    advancedgrade?: boolean; // Calculated in the app. Whether it uses advanced grading.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
type AddonModAssignSubmissionGrade = {
 | 
					type AddonModAssignSubmissionGrade = {
 | 
				
			||||||
    method: string;
 | 
					    method: string;
 | 
				
			||||||
    grade?: number | string;
 | 
					    grade?: number | string;
 | 
				
			||||||
 | 
				
			|||||||
@ -346,7 +346,6 @@ export class AddonModAssignSubmissionListPage implements AfterViewInit, OnDestro
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Helper class to manage submissions.
 | 
					 * Helper class to manage submissions.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -46,7 +46,6 @@ export class AddonModAssignSubmissionReviewPage implements OnInit, CanLeave {
 | 
				
			|||||||
    protected blindMarking = false; // Whether it uses blind marking.
 | 
					    protected blindMarking = false; // Whether it uses blind marking.
 | 
				
			||||||
    protected forceLeave = false; // To allow leaving the page without checking for changes.
 | 
					    protected forceLeave = false; // To allow leaving the page without checking for changes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    constructor(
 | 
					    constructor(
 | 
				
			||||||
        protected route: ActivatedRoute,
 | 
					        protected route: ActivatedRoute,
 | 
				
			||||||
    ) { }
 | 
					    ) { }
 | 
				
			||||||
 | 
				
			|||||||
@ -212,7 +212,6 @@ export class AddonModAssignHelperProvider {
 | 
				
			|||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        // If all the plugins were empty (or there were no plugins), we consider the submission to be empty.
 | 
					        // If all the plugins were empty (or there were no plugins), we consider the submission to be empty.
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -709,7 +708,6 @@ export class AddonModAssignHelperProvider {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
export const AddonModAssignHelper = makeSingleton(AddonModAssignHelperProvider);
 | 
					export const AddonModAssignHelper = makeSingleton(AddonModAssignHelperProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Assign submission with some calculated data.
 | 
					 * Assign submission with some calculated data.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -290,7 +290,6 @@ export class AddonModAssignOfflineProvider {
 | 
				
			|||||||
        const promises:
 | 
					        const promises:
 | 
				
			||||||
        Promise<AddonModAssignSubmissionsDBRecordFormatted[] | AddonModAssignSubmissionsGradingDBRecordFormatted[]>[] = [];
 | 
					        Promise<AddonModAssignSubmissionsDBRecordFormatted[] | AddonModAssignSubmissionsGradingDBRecordFormatted[]>[] = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        promises.push(this.getAssignSubmissions(assignId, siteId));
 | 
					        promises.push(this.getAssignSubmissions(assignId, siteId));
 | 
				
			||||||
        promises.push(this.getAssignSubmissionsGrade(assignId, siteId));
 | 
					        promises.push(this.getAssignSubmissionsGrade(assignId, siteId));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -178,7 +178,6 @@ export class AddonModAssignSyncProvider extends CoreCourseActivitySyncBaseProvid
 | 
				
			|||||||
            throw new CoreSyncBlockedError(Translate.instant('core.errorsyncblocked', { $a: this.componentTranslate }));
 | 
					            throw new CoreSyncBlockedError(Translate.instant('core.errorsyncblocked', { $a: this.componentTranslate }));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.logger.debug('Try to sync assign ' + assignId + ' in site ' + siteId);
 | 
					        this.logger.debug('Try to sync assign ' + assignId + ' in site ' + siteId);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const syncPromise = this.performSyncAssign(assignId, siteId);
 | 
					        const syncPromise = this.performSyncAssign(assignId, siteId);
 | 
				
			||||||
@ -553,7 +552,6 @@ export type AddonModAssignSyncResult = {
 | 
				
			|||||||
    gradesBlocked: number[]; // Whether some grade couldn't be synced because it was blocked. UserId fields of the blocked grade.
 | 
					    gradesBlocked: number[]; // Whether some grade couldn't be synced because it was blocked. UserId fields of the blocked grade.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Data passed to AUTO_SYNCED event.
 | 
					 * Data passed to AUTO_SYNCED event.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -761,7 +761,6 @@ export class AddonModAssignProvider {
 | 
				
			|||||||
        promises.push(this.invalidateAssignmentData(courseId, siteId));
 | 
					        promises.push(this.invalidateAssignmentData(courseId, siteId));
 | 
				
			||||||
        promises.push(CoreGrades.invalidateAllCourseGradesData(courseId));
 | 
					        promises.push(CoreGrades.invalidateAllCourseGradesData(courseId));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        await Promise.all(promises);
 | 
					        await Promise.all(promises);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1562,7 +1561,6 @@ export type AddonModAssignSubmissionFeedback = {
 | 
				
			|||||||
    plugins?: AddonModAssignPlugin[]; // Plugins info.
 | 
					    plugins?: AddonModAssignPlugin[]; // Plugins info.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of mod_assign_list_participants WS.
 | 
					 * Params of mod_assign_list_participants WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -1692,7 +1690,6 @@ type AddonModAssignGetSubmissionStatusWSParams = {
 | 
				
			|||||||
    groupid?: number; // Filter by users in group (used for generating the grading summary). Empty or 0 for all groups information.
 | 
					    groupid?: number; // Filter by users in group (used for generating the grading summary). Empty or 0 for all groups information.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Result of WS mod_assign_get_submission_status.
 | 
					 * Result of WS mod_assign_get_submission_status.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -1812,7 +1809,6 @@ type AddonModAssignSubmitGradingFormWSParams = {
 | 
				
			|||||||
    jsonformdata: string; // The data from the grading form, encoded as a json array.
 | 
					    jsonformdata: string; // The data from the grading form, encoded as a json array.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of mod_assign_save_grade WS.
 | 
					 * Params of mod_assign_save_grade WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -49,7 +49,6 @@ export interface AddonModAssignFeedbackHandler extends CoreDelegateHandler {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    getComponent?(plugin: AddonModAssignPlugin): Type<unknown> | undefined | Promise<Type<unknown> | undefined>;
 | 
					    getComponent?(plugin: AddonModAssignPlugin): Type<unknown> | undefined | Promise<Type<unknown> | undefined>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Return the draft saved data of the feedback plugin.
 | 
					     * Return the draft saved data of the feedback plugin.
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,6 @@ export class AddonModAssignSubmissionCommentsHandlerService implements AddonModA
 | 
				
			|||||||
    name = 'AddonModAssignSubmissionCommentsHandler';
 | 
					    name = 'AddonModAssignSubmissionCommentsHandler';
 | 
				
			||||||
    type = 'comments';
 | 
					    type = 'comments';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Whether the plugin can be edited in offline for existing submissions. In general, this should return false if the
 | 
					     * Whether the plugin can be edited in offline for existing submissions. In general, this should return false if the
 | 
				
			||||||
     * plugin uses Moodle filters. The reason is that the app only prefetches filtered data, and the user should edit
 | 
					     * plugin uses Moodle filters. The reason is that the app only prefetches filtered data, and the user should edit
 | 
				
			||||||
 | 
				
			|||||||
@ -22,7 +22,6 @@ import { CoreTextUtils } from '@services/utils/text';
 | 
				
			|||||||
import { CoreUtils } from '@services/utils/utils';
 | 
					import { CoreUtils } from '@services/utils/utils';
 | 
				
			||||||
import { AddonModAssignSubmissionOnlineTextPluginData } from '../services/handler';
 | 
					import { AddonModAssignSubmissionOnlineTextPluginData } from '../services/handler';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Component to render an onlinetext submission plugin.
 | 
					 * Component to render an onlinetext submission plugin.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -74,7 +73,6 @@ export class AddonModAssignSubmissionOnlineTextComponent extends AddonModAssignS
 | 
				
			|||||||
                this.text = AddonModAssign.getSubmissionPluginText(this.plugin);
 | 
					                this.text = AddonModAssign.getSubmissionPluginText(this.plugin);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
            // Set the text.
 | 
					            // Set the text.
 | 
				
			||||||
            if (!this.edit) {
 | 
					            if (!this.edit) {
 | 
				
			||||||
                // Not editing, see full text when clicked.
 | 
					                // Not editing, see full text when clicked.
 | 
				
			||||||
 | 
				
			|||||||
@ -100,7 +100,6 @@ export class AddonModBookIndexComponent extends CoreCourseModuleMainResourceComp
 | 
				
			|||||||
            // @todo leaveAnimation: 'core-modal-lateral-transition',
 | 
					            // @todo leaveAnimation: 'core-modal-lateral-transition',
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        await modal.present();
 | 
					        await modal.present();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const result = await modal.onDidDismiss();
 | 
					        const result = await modal.onDidDismiss();
 | 
				
			||||||
 | 
				
			|||||||
@ -48,7 +48,6 @@ export const enum AddonModBookNavStyle {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const ROOT_CACHE_KEY = 'mmaModBook:';
 | 
					const ROOT_CACHE_KEY = 'mmaModBook:';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Service that provides some features for books.
 | 
					 * Service that provides some features for books.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -160,7 +160,6 @@ export class AddonModFolderProvider {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
export const AddonModFolder = makeSingleton(AddonModFolderProvider);
 | 
					export const AddonModFolder = makeSingleton(AddonModFolderProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Folder returned by mod_folder_get_folders_by_courses.
 | 
					 * Folder returned by mod_folder_get_folders_by_courses.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -1928,7 +1928,6 @@ export type AddonModForumDeletePostWSParams = {
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
export type AddonModForumDeletePostWSResponse = CoreStatusWithWarningsWSResponse;
 | 
					export type AddonModForumDeletePostWSResponse = CoreStatusWithWarningsWSResponse;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of mod_forum_get_discussion_post WS.
 | 
					 * Params of mod_forum_get_discussion_post WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -1944,7 +1943,6 @@ export type AddonModForumGetDiscussionPostWSResponse = {
 | 
				
			|||||||
    warnings?: CoreWSExternalWarning[];
 | 
					    warnings?: CoreWSExternalWarning[];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of mod_forum_get_discussion_posts WS.
 | 
					 * Params of mod_forum_get_discussion_posts WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -46,7 +46,6 @@ export class AddonModImscpIndexComponent extends CoreCourseModuleMainResourceCom
 | 
				
			|||||||
    previousItem = '';
 | 
					    previousItem = '';
 | 
				
			||||||
    nextItem = '';
 | 
					    nextItem = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    constructor(@Optional() courseContentsPage?: CoreCourseContentsPage) {
 | 
					    constructor(@Optional() courseContentsPage?: CoreCourseContentsPage) {
 | 
				
			||||||
        super('AddonModImscpIndexComponent', courseContentsPage);
 | 
					        super('AddonModImscpIndexComponent', courseContentsPage);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -343,7 +343,6 @@ export class AddonModImscpProvider {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
export const AddonModImscp = makeSingleton(AddonModImscpProvider);
 | 
					export const AddonModImscp = makeSingleton(AddonModImscpProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of mod_imscp_view_imscp WS.
 | 
					 * Params of mod_imscp_view_imscp WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -387,7 +386,6 @@ type AddonModImscpGetImscpsByCoursesWSResponse = {
 | 
				
			|||||||
    warnings?: CoreWSExternalWarning[];
 | 
					    warnings?: CoreWSExternalWarning[];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
export type AddonModImscpTocItem = {
 | 
					export type AddonModImscpTocItem = {
 | 
				
			||||||
    href: string;
 | 
					    href: string;
 | 
				
			||||||
    title: string;
 | 
					    title: string;
 | 
				
			||||||
 | 
				
			|||||||
@ -165,7 +165,6 @@ export class AddonModLabelProvider {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
export const AddonModLabel = makeSingleton(AddonModLabelProvider);
 | 
					export const AddonModLabel = makeSingleton(AddonModLabelProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Label returned by mod_label_get_labels_by_courses.
 | 
					 * Label returned by mod_label_get_labels_by_courses.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,6 @@ import { CoreSites } from '@services/sites';
 | 
				
			|||||||
import { CoreDomUtils } from '@services/utils/dom';
 | 
					import { CoreDomUtils } from '@services/utils/dom';
 | 
				
			||||||
import { ModalController } from '@singletons';
 | 
					import { ModalController } from '@singletons';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Modal that asks the password for a lesson.
 | 
					 * Modal that asks the password for a lesson.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -175,7 +175,6 @@ export class AddonModPageProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const AddonModPage = makeSingleton(AddonModPageProvider);
 | 
					export const AddonModPage = makeSingleton(AddonModPageProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Page returned by mod_page_get_pages_by_courses.
 | 
					 * Page returned by mod_page_get_pages_by_courses.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -12,7 +12,6 @@
 | 
				
			|||||||
// See the License for the specific language governing permissions and
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
// limitations under the License.
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
import { CoreSharedModule } from '@/core/shared.module';
 | 
					import { CoreSharedModule } from '@/core/shared.module';
 | 
				
			||||||
import { APP_INITIALIZER, NgModule } from '@angular/core';
 | 
					import { APP_INITIALIZER, NgModule } from '@angular/core';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -251,7 +251,6 @@ export class AddonModResourceModuleHandlerService implements CoreCourseModuleHan
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
export const AddonModResourceModuleHandler = makeSingleton(AddonModResourceModuleHandlerService);
 | 
					export const AddonModResourceModuleHandler = makeSingleton(AddonModResourceModuleHandlerService);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
type AddonResourceHandlerData = {
 | 
					type AddonResourceHandlerData = {
 | 
				
			||||||
    icon: string;
 | 
					    icon: string;
 | 
				
			||||||
    extra: string;
 | 
					    extra: string;
 | 
				
			||||||
 | 
				
			|||||||
@ -258,7 +258,6 @@ type AddonModUrlViewUrlWSParams = {
 | 
				
			|||||||
    urlid: number; // Url instance id.
 | 
					    urlid: number; // Url instance id.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * URL returnd by mod_url_get_urls_by_courses.
 | 
					 * URL returnd by mod_url_get_urls_by_courses.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -176,7 +176,6 @@ export class AddonQbehaviourDeferredFeedbackHandlerService implements CoreQuesti
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const AddonQbehaviourDeferredFeedbackHandler = makeSingleton(AddonQbehaviourDeferredFeedbackHandlerService);
 | 
					export const AddonQbehaviourDeferredFeedbackHandler = makeSingleton(AddonQbehaviourDeferredFeedbackHandlerService);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Check if a response is complete.
 | 
					 * Check if a response is complete.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 | 
				
			|||||||
@ -871,7 +871,6 @@ export class AddonQtypeDdMarkerQuestion {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Encapsulates operations on dd area.
 | 
					 * Encapsulates operations on dd area.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,6 @@ import { APP_INITIALIZER, NgModule } from '@angular/core';
 | 
				
			|||||||
import { CoreQuestionDelegate } from '@features/question/services/question-delegate';
 | 
					import { CoreQuestionDelegate } from '@features/question/services/question-delegate';
 | 
				
			||||||
import { AddonQtypeNumericalHandler } from './services/handlers/numerical';
 | 
					import { AddonQtypeNumericalHandler } from './services/handlers/numerical';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    declarations: [
 | 
					    declarations: [
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
 | 
				
			|||||||
@ -128,7 +128,6 @@ export class CoreAttachmentsComponent implements OnInit {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    async delete(index: number, askConfirm?: boolean): Promise<void> {
 | 
					    async delete(index: number, askConfirm?: boolean): Promise<void> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (askConfirm) {
 | 
					        if (askConfirm) {
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                await CoreDomUtils.showDeleteConfirm('core.confirmdeletefile');
 | 
					                await CoreDomUtils.showDeleteConfirm('core.confirmdeletefile');
 | 
				
			||||||
 | 
				
			|||||||
@ -44,7 +44,6 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
    protected instanceId: string;
 | 
					    protected instanceId: string;
 | 
				
			||||||
    protected parentContextMenu?: CoreContextMenuComponent;
 | 
					    protected parentContextMenu?: CoreContextMenuComponent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    constructor(
 | 
					    constructor(
 | 
				
			||||||
        elementRef: ElementRef,
 | 
					        elementRef: ElementRef,
 | 
				
			||||||
    ) {
 | 
					    ) {
 | 
				
			||||||
 | 
				
			|||||||
@ -518,7 +518,6 @@ export type CoreCommentsDataWithUser = CoreCommentsData & {
 | 
				
			|||||||
    deleted?: boolean;
 | 
					    deleted?: boolean;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
export type CoreCommentsOfflineWithUser = CoreCommentsDBRecord & {
 | 
					export type CoreCommentsOfflineWithUser = CoreCommentsDBRecord & {
 | 
				
			||||||
    profileimageurl?: string;
 | 
					    profileimageurl?: string;
 | 
				
			||||||
    fullname?: string;
 | 
					    fullname?: string;
 | 
				
			||||||
 | 
				
			|||||||
@ -322,7 +322,6 @@ export type CoreCommentsSyncResult = {
 | 
				
			|||||||
    updated: boolean; // Whether some data was sent to the server or offline data was updated.
 | 
					    updated: boolean; // Whether some data was sent to the server or offline data was updated.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Data passed to AUTO_SYNCED event.
 | 
					 * Data passed to AUTO_SYNCED event.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -530,7 +530,6 @@ export type CoreCommentsArea = {
 | 
				
			|||||||
    canpostorhascomments: boolean; // Canpostorhascomments.
 | 
					    canpostorhascomments: boolean; // Canpostorhascomments.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_comment_add_comments WS.
 | 
					 * Params of core_comment_add_comments WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -12,7 +12,6 @@
 | 
				
			|||||||
// See the License for the specific language governing permissions and
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
// limitations under the License.
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
import { NgModule } from '@angular/core';
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
import { RouterModule, Routes } from '@angular/router';
 | 
					import { RouterModule, Routes } from '@angular/router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,6 @@ export class CoreCourseModuleMainActivityPage<ActivityType extends CoreCourseMod
 | 
				
			|||||||
    module!: CoreCourseAnyModuleData;
 | 
					    module!: CoreCourseAnyModuleData;
 | 
				
			||||||
    courseId!: number;
 | 
					    courseId!: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Component being initialized.
 | 
					     * Component being initialized.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
				
			|||||||
@ -208,7 +208,6 @@ export class CoreCourseProvider {
 | 
				
			|||||||
            preSets.emergencyCache = false;
 | 
					            preSets.emergencyCache = false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        const data = await site.read<CoreCourseCompletionActivityStatusWSResponse>(
 | 
					        const data = await site.read<CoreCourseCompletionActivityStatusWSResponse>(
 | 
				
			||||||
            'core_completion_get_activities_completion_status',
 | 
					            'core_completion_get_activities_completion_status',
 | 
				
			||||||
            params,
 | 
					            params,
 | 
				
			||||||
@ -551,7 +550,6 @@ export class CoreCourseProvider {
 | 
				
			|||||||
            return grade;
 | 
					            return grade;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
				
			|||||||
@ -508,7 +508,6 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
 | 
				
			|||||||
            return downloadedSize;
 | 
					            return downloadedSize;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        const cachedSize = await site.getComponentCacheSize(handler.component, module.id);
 | 
					        const cachedSize = await site.getComponentCacheSize(handler.component, module.id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return cachedSize + downloadedSize;
 | 
					        return cachedSize + downloadedSize;
 | 
				
			||||||
 | 
				
			|||||||
@ -146,7 +146,6 @@ export class CoreCourseSyncProvider extends CoreSyncBaseProvider<CoreCourseSyncR
 | 
				
			|||||||
            <CoreCourseManualCompletionDBRecord[]> [],
 | 
					            <CoreCourseManualCompletionDBRecord[]> [],
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (!completions || !completions.length) {
 | 
					        if (!completions || !completions.length) {
 | 
				
			||||||
            // Nothing to sync, set sync time.
 | 
					            // Nothing to sync, set sync time.
 | 
				
			||||||
            await this.setSyncTime(courseId, siteId);
 | 
					            await this.setSyncTime(courseId, siteId);
 | 
				
			||||||
 | 
				
			|||||||
@ -20,7 +20,6 @@ import { CoreCoursesComponentsModule } from '../../components/components.module'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { CoreCoursesAvailableCoursesPage } from './available-courses';
 | 
					import { CoreCoursesAvailableCoursesPage } from './available-courses';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
const routes: Routes = [
 | 
					const routes: Routes = [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        path: '',
 | 
					        path: '',
 | 
				
			||||||
 | 
				
			|||||||
@ -20,7 +20,6 @@ import { CoreCoursesComponentsModule } from '../../components/components.module'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { CoreCoursesCategoriesPage } from './categories';
 | 
					import { CoreCoursesCategoriesPage } from './categories';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
const routes: Routes = [
 | 
					const routes: Routes = [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        path: '',
 | 
					        path: '',
 | 
				
			||||||
 | 
				
			|||||||
@ -138,7 +138,6 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Toggle download enabled.
 | 
					     * Toggle download enabled.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@ -179,5 +178,4 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy {
 | 
				
			|||||||
        this.updateSiteObserver?.off();
 | 
					        this.updateSiteObserver?.off();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -122,7 +122,6 @@ export class CoreCoursesDashboardProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const CoreCoursesDashboard = makeSingleton(CoreCoursesDashboardProvider);
 | 
					export const CoreCoursesDashboard = makeSingleton(CoreCoursesDashboardProvider);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_block_get_dashboard_blocks WS.
 | 
					 * Params of core_block_get_dashboard_blocks WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,6 @@ import { CoreUtils } from '@services/utils/utils';
 | 
				
			|||||||
import { makeSingleton } from '@singletons';
 | 
					import { makeSingleton } from '@singletons';
 | 
				
			||||||
import { CoreCourses } from '../courses';
 | 
					import { CoreCourses } from '../courses';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Handler for course request push notifications clicks.
 | 
					 * Handler for course request push notifications clicks.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -370,7 +370,6 @@ export class CoreEmulatorCaptureMediaComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
            const height = this.streamVideo?.nativeElement.videoHeight;
 | 
					            const height = this.streamVideo?.nativeElement.videoHeight;
 | 
				
			||||||
            const loadingModal = await CoreDomUtils.showModalLoading();
 | 
					            const loadingModal = await CoreDomUtils.showModalLoading();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
            this.imgCanvas.nativeElement.width = width;
 | 
					            this.imgCanvas.nativeElement.width = width;
 | 
				
			||||||
            this.imgCanvas.nativeElement.height = height;
 | 
					            this.imgCanvas.nativeElement.height = height;
 | 
				
			||||||
            this.imgCanvas.nativeElement.getContext('2d').drawImage(this.streamVideo?.nativeElement, 0, 0, width, height);
 | 
					            this.imgCanvas.nativeElement.getContext('2d').drawImage(this.streamVideo?.nativeElement, 0, 0, width, height);
 | 
				
			||||||
 | 
				
			|||||||
@ -51,7 +51,6 @@ export class CoreEmulatorHelperProvider {
 | 
				
			|||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        return CoreUtils.allPromises(promises);
 | 
					        return CoreUtils.allPromises(promises);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -109,7 +109,6 @@ export const SITE_SCHEMA: CoreSiteSchema = {
 | 
				
			|||||||
    ],
 | 
					    ],
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Data stored in DB for badge.
 | 
					 * Data stored in DB for badge.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -128,7 +128,6 @@ export class CoreQuestionComponent implements OnInit {
 | 
				
			|||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        // Load local answers if offline is enabled.
 | 
					        // Load local answers if offline is enabled.
 | 
				
			||||||
        if (this.offlineEnabled && this.component && this.attemptId) {
 | 
					        if (this.offlineEnabled && this.component && this.attemptId) {
 | 
				
			||||||
            await CoreQuestionHelper.loadLocalAnswers(this.question, this.component, this.attemptId);
 | 
					            await CoreQuestionHelper.loadLocalAnswers(this.question, this.component, this.attemptId);
 | 
				
			||||||
 | 
				
			|||||||
@ -28,7 +28,6 @@ import {
 | 
				
			|||||||
    QUESTION_TABLE_NAME,
 | 
					    QUESTION_TABLE_NAME,
 | 
				
			||||||
} from './database/question';
 | 
					} from './database/question';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
const QUESTION_PREFIX_REGEX = /q\d+:(\d+)_/;
 | 
					const QUESTION_PREFIX_REGEX = /q\d+:(\d+)_/;
 | 
				
			||||||
const STATES: Record<string, CoreQuestionState> = {
 | 
					const STATES: Record<string, CoreQuestionState> = {
 | 
				
			||||||
    todo: {
 | 
					    todo: {
 | 
				
			||||||
 | 
				
			|||||||
@ -76,7 +76,6 @@ export const RATINGS_SITE_SCHEMA: CoreSiteSchema = {
 | 
				
			|||||||
    ],
 | 
					    ],
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Primary data to identify a stored rating.
 | 
					 * Primary data to identify a stored rating.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,6 @@ import { CoreEvents } from '@singletons/events';
 | 
				
			|||||||
import { CoreRating } from './rating';
 | 
					import { CoreRating } from './rating';
 | 
				
			||||||
import { CoreRatingItemSet, CoreRatingOffline } from './rating-offline';
 | 
					import { CoreRatingItemSet, CoreRatingOffline } from './rating-offline';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Service to sync ratings.
 | 
					 * Service to sync ratings.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -513,7 +513,6 @@ export type CoreRatingItemRating = {
 | 
				
			|||||||
    timemodified: number; // Time modified (timestamp).
 | 
					    timemodified: number; // Time modified (timestamp).
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_rating_get_item_ratings WS.
 | 
					 * Params of core_rating_get_item_ratings WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -535,7 +534,6 @@ export type CoreRatingGetItemRatingsWSResponse = {
 | 
				
			|||||||
    warnings?: CoreWSExternalWarning[];
 | 
					    warnings?: CoreWSExternalWarning[];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Params of core_rating_add_rating WS.
 | 
					 * Params of core_rating_add_rating WS.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,6 @@ import { NgModule } from '@angular/core';
 | 
				
			|||||||
import { CoreSharedModule } from '@/core/shared.module';
 | 
					import { CoreSharedModule } from '@/core/shared.module';
 | 
				
			||||||
import { CoreSearchBoxComponent } from './search-box/search-box';
 | 
					import { CoreSearchBoxComponent } from './search-box/search-box';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    declarations: [
 | 
					    declarations: [
 | 
				
			||||||
        CoreSearchBoxComponent,
 | 
					        CoreSearchBoxComponent,
 | 
				
			||||||
 | 
				
			|||||||
@ -159,7 +159,6 @@ export class CoreSearchBoxComponent implements OnInit {
 | 
				
			|||||||
        if (!this.formElement) {
 | 
					        if (!this.formElement) {
 | 
				
			||||||
            this.formElement = event.detail.target.closest('form');
 | 
					            this.formElement = event.detail.target.closest('form');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
            this.formElement?.addEventListener('blur', () => {
 | 
					            this.formElement?.addEventListener('blur', () => {
 | 
				
			||||||
                // Wait the new element to be focused.
 | 
					                // Wait the new element to be focused.
 | 
				
			||||||
                setTimeout(() => {
 | 
					                setTimeout(() => {
 | 
				
			||||||
 | 
				
			|||||||
@ -94,7 +94,6 @@ export class CoreSettingsGeneralPage {
 | 
				
			|||||||
                selected: value === this.selectedZoomLevel,
 | 
					                selected: value === this.selectedZoomLevel,
 | 
				
			||||||
            }));
 | 
					            }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.richTextEditor = await CoreConfig.get(CoreConstants.SETTINGS_RICH_TEXT_EDITOR, true);
 | 
					        this.richTextEditor = await CoreConfig.get(CoreConstants.SETTINGS_RICH_TEXT_EDITOR, true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.debugDisplay = await CoreConfig.get(CoreConstants.SETTINGS_DEBUG_DISPLAY, false);
 | 
					        this.debugDisplay = await CoreConfig.get(CoreConstants.SETTINGS_DEBUG_DISPLAY, false);
 | 
				
			||||||
 | 
				
			|||||||
@ -12,7 +12,6 @@
 | 
				
			|||||||
// See the License for the specific language governing permissions and
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
// limitations under the License.
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
import { NgModule } from '@angular/core';
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
import { RouterModule, Routes } from '@angular/router';
 | 
					import { RouterModule, Routes } from '@angular/router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -115,7 +115,6 @@ export class CoreSettingsHelperProvider {
 | 
				
			|||||||
        const promises: Promise<number | void>[] = cleanSchemas.map((name) => site.getDb().deleteRecords(name));
 | 
					        const promises: Promise<number | void>[] = cleanSchemas.map((name) => site.getDb().deleteRecords(name));
 | 
				
			||||||
        const filepoolService = CoreFilepool.instance;
 | 
					        const filepoolService = CoreFilepool.instance;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        promises.push(site.deleteFolder().then(() => {
 | 
					        promises.push(site.deleteFolder().then(() => {
 | 
				
			||||||
            filepoolService.clearAllPackagesStatus(siteId);
 | 
					            filepoolService.clearAllPackagesStatus(siteId);
 | 
				
			||||||
            filepoolService.clearFilepool(siteId);
 | 
					            filepoolService.clearFilepool(siteId);
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,6 @@ import { CoreQuestionBehaviourDelegate } from '@features/question/services/behav
 | 
				
			|||||||
import { CoreQuestionBehaviourButton, CoreQuestionQuestion } from '@features/question/services/question-helper';
 | 
					import { CoreQuestionBehaviourButton, CoreQuestionQuestion } from '@features/question/services/question-helper';
 | 
				
			||||||
import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/classes/compile-init-component';
 | 
					import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/classes/compile-init-component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Component that displays a question behaviour created using a site plugin.
 | 
					 * Component that displays a question behaviour created using a site plugin.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -20,7 +20,6 @@ import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/class
 | 
				
			|||||||
import { CoreUserProfileField } from '@features/user/services/user';
 | 
					import { CoreUserProfileField } from '@features/user/services/user';
 | 
				
			||||||
import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate';
 | 
					import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Component that displays a user profile field created using a site plugin.
 | 
					 * Component that displays a user profile field created using a site plugin.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -123,7 +123,6 @@ export class CoreSitePluginsCourseOptionPage implements OnInit {
 | 
				
			|||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        const result = await this.content.callComponentFunction('canLeave');
 | 
					        const result = await this.content.callComponentFunction('canLeave');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return result === undefined || result === null ? true : !!result;
 | 
					        return result === undefined || result === null ? true : !!result;
 | 
				
			||||||
 | 
				
			|||||||
@ -100,7 +100,6 @@ export class CoreSitePluginsModuleIndexPage implements OnInit, CanLeave {
 | 
				
			|||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        const result = await this.content.callComponentFunction('canLeave');
 | 
					        const result = await this.content.callComponentFunction('canLeave');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return result === undefined || result === null ? true : !!result;
 | 
					        return result === undefined || result === null ? true : !!result;
 | 
				
			||||||
 | 
				
			|||||||
@ -93,7 +93,6 @@ export class CoreSitePluginsProvider {
 | 
				
			|||||||
            appplatform: 'browser',
 | 
					            appplatform: 'browser',
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (args.appismobile) {
 | 
					        if (args.appismobile) {
 | 
				
			||||||
            defaultArgs.appplatform = CoreApp.isIOS() ? 'ios' : 'android';
 | 
					            defaultArgs.appplatform = CoreApp.isIOS() ? 'ios' : 'android';
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -582,7 +581,6 @@ export class CoreSitePluginsProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            const result = await this.getContent(component, method, args, preSets);
 | 
					            const result = await this.getContent(component, method, args, preSets);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
            // Prefetch the files in the content.
 | 
					            // Prefetch the files in the content.
 | 
				
			||||||
            if (result.files.length) {
 | 
					            if (result.files.length) {
 | 
				
			||||||
                await CoreFilepool.downloadOrPrefetchFiles(
 | 
					                await CoreFilepool.downloadOrPrefetchFiles(
 | 
				
			||||||
 | 
				
			|||||||
@ -36,7 +36,6 @@ export abstract class CoreUserProfileFieldBaseComponent implements OnInit {
 | 
				
			|||||||
    @Input() contextInstanceId?: number; // The instance ID related to the context.
 | 
					    @Input() contextInstanceId?: number; // The instance ID related to the context.
 | 
				
			||||||
    @Input() courseId?: number; // Course ID the field belongs to (if any). It can be used to improve performance with filters.
 | 
					    @Input() courseId?: number; // Course ID the field belongs to (if any). It can be used to improve performance with filters.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    control?: FormControl;
 | 
					    control?: FormControl;
 | 
				
			||||||
    modelName = '';
 | 
					    modelName = '';
 | 
				
			||||||
    value?: string;
 | 
					    value?: string;
 | 
				
			||||||
 | 
				
			|||||||
@ -730,7 +730,6 @@ export class CoreUserProvider {
 | 
				
			|||||||
            return CoreUserOffline.setPreference(name, value);
 | 
					            return CoreUserOffline.setPreference(name, value);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            // Update the preference in the site.
 | 
					            // Update the preference in the site.
 | 
				
			||||||
            const preferences = [
 | 
					            const preferences = [
 | 
				
			||||||
 | 
				
			|||||||
@ -478,7 +478,6 @@ export class CoreCronDelegateService {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const CoreCronDelegate = makeSingleton(CoreCronDelegateService);
 | 
					export const CoreCronDelegate = makeSingleton(CoreCronDelegateService);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Interface that all cron handlers must implement.
 | 
					 * Interface that all cron handlers must implement.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -449,7 +449,6 @@ export type CoreGroup = {
 | 
				
			|||||||
    courseid?: number; // Coure Id.
 | 
					    courseid?: number; // Coure Id.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Group info for an activity.
 | 
					 * Group info for an activity.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -1732,7 +1732,6 @@ export class CoreDomUtilsProvider {
 | 
				
			|||||||
            cssClass: fullScreen ? 'core-modal-fullscreen' : '',
 | 
					            cssClass: fullScreen ? 'core-modal-fullscreen' : '',
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        await modal.present();
 | 
					        await modal.present();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1509,7 +1509,6 @@ export class CoreUtilsProvider {
 | 
				
			|||||||
            // do nothing
 | 
					            // do nothing
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (!CoreApp.isMobile()) {
 | 
					        if (!CoreApp.isMobile()) {
 | 
				
			||||||
            return Promise.reject('QRScanner isn\'t available in browser.');
 | 
					            return Promise.reject('QRScanner isn\'t available in browser.');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
@ -1104,7 +1104,6 @@ export type CoreWSDate = {
 | 
				
			|||||||
    timestamp: number; // Timestamp.
 | 
					    timestamp: number; // Timestamp.
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * PreSets accepted by the WS call.
 | 
					 * PreSets accepted by the WS call.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user