package.esm2022.src.defer.interfaces.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Angular - the core framework
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/**
* Describes the state of defer block dependency loading.
*/
export var DeferDependenciesLoadingState;
(function (DeferDependenciesLoadingState) {
/** Initial state, dependency loading is not yet triggered */
DeferDependenciesLoadingState[DeferDependenciesLoadingState["NOT_STARTED"] = 0] = "NOT_STARTED";
/** Dependency loading is in progress */
DeferDependenciesLoadingState[DeferDependenciesLoadingState["IN_PROGRESS"] = 1] = "IN_PROGRESS";
/** Dependency loading has completed successfully */
DeferDependenciesLoadingState[DeferDependenciesLoadingState["COMPLETE"] = 2] = "COMPLETE";
/** Dependency loading has failed */
DeferDependenciesLoadingState[DeferDependenciesLoadingState["FAILED"] = 3] = "FAILED";
})(DeferDependenciesLoadingState || (DeferDependenciesLoadingState = {}));
/** Slot index where `minimum` parameter value is stored. */
export const MINIMUM_SLOT = 0;
/** Slot index where `after` parameter value is stored. */
export const LOADING_AFTER_SLOT = 1;
/**
* Describes the current state of this defer block instance.
*
* @publicApi
*/
export var DeferBlockState;
(function (DeferBlockState) {
/** The placeholder block content is rendered */
DeferBlockState[DeferBlockState["Placeholder"] = 0] = "Placeholder";
/** The loading block content is rendered */
DeferBlockState[DeferBlockState["Loading"] = 1] = "Loading";
/** The main content block content is rendered */
DeferBlockState[DeferBlockState["Complete"] = 2] = "Complete";
/** The error block content is rendered */
DeferBlockState[DeferBlockState["Error"] = 3] = "Error";
})(DeferBlockState || (DeferBlockState = {}));
/**
* Describes the initial state of this defer block instance.
*
* Note: this state is internal only and *must* be represented
* with a number lower than any value in the `DeferBlockState` enum.
*/
export var DeferBlockInternalState;
(function (DeferBlockInternalState) {
/** Initial state. Nothing is rendered yet. */
DeferBlockInternalState[DeferBlockInternalState["Initial"] = -1] = "Initial";
})(DeferBlockInternalState || (DeferBlockInternalState = {}));
export const NEXT_DEFER_BLOCK_STATE = 0;
// Note: it's *important* to keep the state in this slot, because this slot
// is used by runtime logic to differentiate between LViews, LContainers and
// other types (see `isLView` and `isLContainer` functions). In case of defer
// blocks, this slot would always be a number.
export const DEFER_BLOCK_STATE = 1;
export const STATE_IS_FROZEN_UNTIL = 2;
export const LOADING_AFTER_CLEANUP_FN = 3;
export const TRIGGER_CLEANUP_FNS = 4;
export const PREFETCH_TRIGGER_CLEANUP_FNS = 5;
/**
* Options for configuring defer blocks behavior.
* @publicApi
*/
export var DeferBlockBehavior;
(function (DeferBlockBehavior) {
/**
* Manual triggering mode for defer blocks. Provides control over when defer blocks render
* and which state they render.
*/
DeferBlockBehavior[DeferBlockBehavior["Manual"] = 0] = "Manual";
/**
* Playthrough mode for defer blocks. This mode behaves like defer blocks would in a browser.
* This is the default behavior in test environments.
*/
DeferBlockBehavior[DeferBlockBehavior["Playthrough"] = 1] = "Playthrough";
})(DeferBlockBehavior || (DeferBlockBehavior = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvc3JjL2RlZmVyL2ludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBMEJIOztHQUVHO0FBQ0gsTUFBTSxDQUFOLElBQVksNkJBWVg7QUFaRCxXQUFZLDZCQUE2QjtJQUN2Qyw2REFBNkQ7SUFDN0QsK0ZBQVcsQ0FBQTtJQUVYLHdDQUF3QztJQUN4QywrRkFBVyxDQUFBO0lBRVgsb0RBQW9EO0lBQ3BELHlGQUFRLENBQUE7SUFFUixvQ0FBb0M7SUFDcEMscUZBQU0sQ0FBQTtBQUNSLENBQUMsRUFaVyw2Q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