@ -32,6 +32,7 @@ export {Type} from './type';
|
||||
export {EventEmitter} from './event_emitter';
|
||||
export {ErrorHandler} from './error_handler';
|
||||
export * from './core_private_export';
|
||||
export * from './core_render3_private_export';
|
||||
export {Sanitizer, SecurityContext} from './security';
|
||||
export * from './codegen_private_exports';
|
||||
export * from './animation/animation_metadata_wrapped';
|
||||
|
30
packages/core/src/core_render3_private_export.ts
Normal file
30
packages/core/src/core_render3_private_export.ts
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. 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.io/license
|
||||
*/
|
||||
|
||||
// clang-format off
|
||||
export {
|
||||
defineComponent as ɵdefineComponent,
|
||||
detectChanges as ɵdetectChanges,
|
||||
renderComponent as ɵrenderComponent,
|
||||
C as ɵC,
|
||||
D as ɵD,
|
||||
E as ɵE,
|
||||
T as ɵT,
|
||||
V as ɵV,
|
||||
b as ɵb,
|
||||
b1 as ɵb1,
|
||||
c as ɵc,
|
||||
cR as ɵcR,
|
||||
cr as ɵcr,
|
||||
e as ɵe,
|
||||
p as ɵp,
|
||||
s as ɵs,
|
||||
t as ɵt,
|
||||
v as ɵv,
|
||||
} from './render3/index';
|
||||
// clang-format on
|
@ -82,8 +82,8 @@ export function bloomAdd(injector: LNodeInjector, type: viewEngine.Type<any>): v
|
||||
/**
|
||||
* Creates (or gets an existing) injector for a given element or container.
|
||||
*
|
||||
* @param {LElement | LContainer} node for which an injector should be retrieved / created.
|
||||
* @returns {LNodeInjector} Node injector
|
||||
* @param node for which an injector should be retrieved / created.
|
||||
* @returns Node injector
|
||||
*/
|
||||
export function getOrCreateNodeInjectorForNode(node: LElement | LContainer): LNodeInjector {
|
||||
const nodeInjector = node.nodeInjector;
|
||||
|
@ -1162,7 +1162,7 @@ export const componentRefresh:
|
||||
* each projected node belongs (it re-distributes nodes among "buckets" where each "bucket" is
|
||||
* backed by a selector).
|
||||
*
|
||||
* @param {CssSelector[]} selectors
|
||||
* @param selectors
|
||||
*/
|
||||
export function projectionDef(selectors?: CssSelector[]): LNode[][] {
|
||||
const noOfNodeBuckets = selectors ? selectors.length + 1 : 1;
|
||||
@ -1212,9 +1212,9 @@ export function projectionDef(selectors?: CssSelector[]): LNode[][] {
|
||||
* Inserts previously re-distributed projected nodes. This instruction must be preceded by a call
|
||||
* to the projectionDef instruction.
|
||||
*
|
||||
* @param {number} nodeIndex
|
||||
* @param {number} localIndex - index under which distribution of projected nodes was memorized
|
||||
* @param {number} selectorIndex - 0 means <ng-content> without any selector
|
||||
* @param nodeIndex
|
||||
* @param localIndex - index under which distribution of projected nodes was memorized
|
||||
* @param selectorIndex - 0 means <ng-content> without any selector
|
||||
*/
|
||||
export function projection(nodeIndex: number, localIndex: number, selectorIndex: number = 0): void {
|
||||
const projectedNodes: ProjectionState = [];
|
||||
|
@ -11,6 +11,8 @@ declare global {
|
||||
const ngDevMode: boolean;
|
||||
}
|
||||
|
||||
declare let global: any;
|
||||
|
||||
if (typeof ngDevMode == 'undefined') {
|
||||
if (typeof window != 'undefined') (window as any).ngDevMode = true;
|
||||
if (typeof self != 'undefined') (self as any).ngDevMode = true;
|
||||
|
@ -29,9 +29,9 @@ function isCssClassMatching(nodeClassAttrVal: string, cssClassToMatch: string):
|
||||
/**
|
||||
* A utility function to match an Ivy node static data against a simple CSS selector
|
||||
*
|
||||
* @param {LNodeStatic} node static data to match
|
||||
* @param {SimpleCssSelector} selector
|
||||
* @returns {boolean}
|
||||
* @param node static data to match
|
||||
* @param selector
|
||||
* @returns true if node matches the selector.
|
||||
*/
|
||||
export function isNodeMatchingSimpleSelector(
|
||||
lNodeStaticData: LNodeStatic, selector: SimpleCssSelector): boolean {
|
||||
|
Reference in New Issue
Block a user