@angular/core 9.0.0-rc.7 → 9.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/bundles/core-testing.umd.js +18 -16
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +7 -7
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +6386 -6384
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +182 -175
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +726 -734
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +5 -5
- package/esm2015/core.js +17 -15
- package/esm2015/index.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/esm2015/src/application_init.js +10 -2
- package/esm2015/src/application_module.js +6 -3
- package/esm2015/src/application_ref.js +7 -7
- package/esm2015/src/core.js +4 -4
- package/esm2015/src/core_private_export.js +7 -7
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/debug/debug_node.js +55 -16
- package/esm2015/src/di/injectable.js +1 -13
- package/esm2015/src/di/injector.js +12 -10
- package/esm2015/src/di/interface/provider.js +1 -1
- package/esm2015/src/di/r3_injector.js +5 -4
- package/esm2015/src/i18n/locale_data_api.js +22 -6
- package/esm2015/src/i18n/locale_en.js +16 -5
- package/esm2015/src/i18n/localization.js +7 -1
- package/esm2015/src/i18n/tokens.js +41 -1
- package/esm2015/src/interface/type.js +1 -1
- package/esm2015/src/metadata/ng_module.js +1 -1
- package/esm2015/src/render/api.js +4 -1
- package/esm2015/src/render3/assert.js +9 -1
- package/esm2015/src/render3/bindings.js +16 -5
- package/esm2015/src/render3/component.js +54 -25
- package/esm2015/src/render3/component_ref.js +28 -18
- package/esm2015/src/render3/definition.js +3 -1
- package/esm2015/src/render3/di.js +3 -4
- package/esm2015/src/render3/di_setup.js +5 -7
- package/esm2015/src/render3/errors.js +3 -1
- package/esm2015/src/render3/features/inherit_definition_feature.js +89 -52
- package/esm2015/src/render3/features/ng_onchanges_feature.js +2 -2
- package/esm2015/src/render3/global_utils_api.js +3 -3
- package/esm2015/src/render3/i18n.js +60 -56
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/render3/instructions/advance.js +10 -11
- package/esm2015/src/render3/instructions/all.js +4 -5
- package/esm2015/src/render3/instructions/attribute.js +12 -5
- package/esm2015/src/render3/instructions/attribute_interpolation.js +66 -14
- package/esm2015/src/render3/instructions/change_detection.js +8 -23
- package/esm2015/src/render3/instructions/class_map_interpolation.js +13 -12
- package/esm2015/src/render3/instructions/container.js +15 -12
- package/esm2015/src/render3/instructions/element.js +45 -132
- package/esm2015/src/render3/instructions/element_container.js +8 -10
- package/esm2015/src/render3/instructions/embedded_view.js +7 -7
- package/esm2015/src/render3/instructions/host_property.js +10 -7
- package/esm2015/src/render3/instructions/listener.js +18 -16
- package/esm2015/src/render3/instructions/lview_debug.js +160 -23
- package/esm2015/src/render3/instructions/projection.js +7 -5
- package/esm2015/src/render3/instructions/property.js +27 -6
- package/esm2015/src/render3/instructions/property_interpolation.js +42 -23
- package/esm2015/src/render3/instructions/shared.js +279 -244
- package/esm2015/src/render3/instructions/storage.js +6 -8
- package/esm2015/src/render3/instructions/style_prop_interpolation.js +12 -12
- package/esm2015/src/render3/instructions/styling.js +731 -475
- package/esm2015/src/render3/instructions/text.js +5 -5
- package/esm2015/src/render3/interfaces/definition.js +41 -1
- package/esm2015/src/render3/interfaces/node.js +160 -115
- package/esm2015/src/render3/interfaces/styling.js +183 -375
- package/esm2015/src/render3/interfaces/view.js +10 -2
- package/esm2015/src/render3/jit/environment.js +1 -3
- package/esm2015/src/render3/namespaces.js +17 -0
- package/esm2015/src/render3/node_manipulation.js +177 -57
- package/esm2015/src/render3/node_selector_matcher.js +128 -24
- package/esm2015/src/render3/node_util.js +12 -7
- package/esm2015/src/render3/pipe.js +10 -14
- package/esm2015/src/render3/pure_function.js +107 -42
- package/esm2015/src/render3/query.js +32 -26
- package/esm2015/src/render3/state.js +57 -185
- package/esm2015/src/render3/styling/class_differ.js +47 -0
- package/esm2015/src/render3/styling/static_styling.js +54 -0
- package/esm2015/src/render3/styling/style_binding_list.js +437 -0
- package/esm2015/src/render3/styling/styling_parser.js +336 -0
- package/esm2015/src/render3/tokens.js +2 -2
- package/esm2015/src/render3/util/attrs_utils.js +125 -2
- package/esm2015/src/render3/util/change_detection_utils.js +33 -0
- package/esm2015/src/render3/util/discovery_utils.js +146 -119
- package/esm2015/src/render3/util/global_utils.js +5 -5
- package/esm2015/src/render3/util/view_utils.js +6 -6
- package/esm2015/src/render3/view_engine_compatibility.js +16 -17
- package/esm2015/src/render3/view_ref.js +16 -13
- package/esm2015/src/sanitization/bypass.js +1 -1
- package/esm2015/src/sanitization/sanitization.js +20 -5
- package/esm2015/src/util/array_utils.js +240 -1
- package/esm2015/src/util/assert.js +37 -21
- package/esm2015/src/util/char_code.js +8 -0
- package/esm2015/src/util/iterable.js +4 -1
- package/esm2015/src/util/ng_dev_mode.js +1 -12
- package/esm2015/src/util/stringify.js +14 -1
- package/esm2015/src/version.js +1 -1
- package/esm2015/src/view/services.js +1 -1
- package/esm2015/testing/src/r3_test_bed.js +5 -1
- package/esm2015/testing/src/r3_test_bed_compiler.js +5 -13
- package/esm2015/testing/src/styling.js +103 -0
- package/esm5/core.js +17 -15
- package/esm5/src/application_init.js +10 -2
- package/esm5/src/application_module.js +6 -3
- package/esm5/src/application_ref.js +6 -6
- package/esm5/src/core.js +2 -2
- package/esm5/src/core_private_export.js +7 -7
- package/esm5/src/core_render3_private_export.js +2 -2
- package/esm5/src/debug/debug_node.js +39 -14
- package/esm5/src/di/injectable.js +1 -1
- package/esm5/src/di/injector.js +12 -12
- package/esm5/src/di/interface/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +5 -4
- package/esm5/src/i18n/locale_data_api.js +20 -6
- package/esm5/src/i18n/locale_en.js +16 -5
- package/esm5/src/i18n/localization.js +6 -1
- package/esm5/src/i18n/tokens.js +40 -1
- package/esm5/src/interface/type.js +1 -1
- package/esm5/src/metadata/ng_module.js +1 -1
- package/esm5/src/render/api.js +4 -1
- package/esm5/src/render3/assert.js +4 -1
- package/esm5/src/render3/bindings.js +19 -2
- package/esm5/src/render3/component.js +47 -22
- package/esm5/src/render3/component_ref.js +20 -17
- package/esm5/src/render3/definition.js +3 -1
- package/esm5/src/render3/di.js +3 -4
- package/esm5/src/render3/di_setup.js +4 -5
- package/esm5/src/render3/errors.js +3 -1
- package/esm5/src/render3/features/inherit_definition_feature.js +74 -42
- package/esm5/src/render3/features/ng_onchanges_feature.js +1 -1
- package/esm5/src/render3/global_utils_api.js +3 -3
- package/esm5/src/render3/i18n.js +51 -51
- package/esm5/src/render3/index.js +2 -2
- package/esm5/src/render3/instructions/advance.js +9 -11
- package/esm5/src/render3/instructions/all.js +1 -2
- package/esm5/src/render3/instructions/attribute.js +9 -5
- package/esm5/src/render3/instructions/attribute_interpolation.js +49 -13
- package/esm5/src/render3/instructions/change_detection.js +8 -21
- package/esm5/src/render3/instructions/class_map_interpolation.js +13 -12
- package/esm5/src/render3/instructions/container.js +13 -12
- package/esm5/src/render3/instructions/element.js +41 -113
- package/esm5/src/render3/instructions/element_container.js +8 -9
- package/esm5/src/render3/instructions/embedded_view.js +7 -7
- package/esm5/src/render3/instructions/host_property.js +8 -7
- package/esm5/src/render3/instructions/listener.js +13 -13
- package/esm5/src/render3/instructions/lview_debug.js +56 -15
- package/esm5/src/render3/instructions/projection.js +6 -5
- package/esm5/src/render3/instructions/property.js +17 -6
- package/esm5/src/render3/instructions/property_interpolation.js +32 -24
- package/esm5/src/render3/instructions/shared.js +258 -210
- package/esm5/src/render3/instructions/storage.js +4 -6
- package/esm5/src/render3/instructions/style_prop_interpolation.js +12 -12
- package/esm5/src/render3/instructions/styling.js +685 -367
- package/esm5/src/render3/instructions/text.js +5 -5
- package/esm5/src/render3/interfaces/definition.js +1 -1
- package/esm5/src/render3/interfaces/node.js +49 -1
- package/esm5/src/render3/interfaces/styling.js +57 -1
- package/esm5/src/render3/interfaces/view.js +1 -1
- package/esm5/src/render3/jit/environment.js +1 -3
- package/esm5/src/render3/namespaces.js +10 -0
- package/esm5/src/render3/node_manipulation.js +167 -54
- package/esm5/src/render3/node_selector_matcher.js +113 -20
- package/esm5/src/render3/node_util.js +12 -7
- package/esm5/src/render3/pipe.js +10 -14
- package/esm5/src/render3/pure_function.js +103 -33
- package/esm5/src/render3/query.js +25 -24
- package/esm5/src/render3/state.js +37 -133
- package/esm5/src/render3/styling/class_differ.js +39 -0
- package/esm5/src/render3/styling/static_styling.js +42 -0
- package/esm5/src/render3/styling/style_binding_list.js +411 -0
- package/esm5/src/render3/styling/styling_parser.js +265 -0
- package/esm5/src/render3/tokens.js +2 -2
- package/esm5/src/render3/util/attrs_utils.js +117 -2
- package/esm5/src/render3/util/change_detection_utils.js +23 -0
- package/esm5/src/render3/util/discovery_utils.js +115 -99
- package/esm5/src/render3/util/global_utils.js +5 -5
- package/esm5/src/render3/util/view_utils.js +5 -5
- package/esm5/src/render3/view_engine_compatibility.js +37 -39
- package/esm5/src/render3/view_ref.js +14 -13
- package/esm5/src/sanitization/bypass.js +1 -1
- package/esm5/src/sanitization/sanitization.js +16 -5
- package/esm5/src/util/array_utils.js +240 -1
- package/esm5/src/util/assert.js +37 -21
- package/esm5/src/util/char_code.js +8 -0
- package/esm5/src/util/iterable.js +4 -1
- package/esm5/src/util/ng_dev_mode.js +1 -12
- package/esm5/src/util/stringify.js +14 -1
- package/esm5/src/version.js +1 -1
- package/esm5/src/view/services.js +1 -1
- package/esm5/testing/src/r3_test_bed.js +9 -1
- package/esm5/testing/src/r3_test_bed_compiler.js +9 -15
- package/esm5/testing/src/styling.js +82 -0
- package/fesm2015/core.js +6431 -7075
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +10 -14
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +6354 -6361
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +18 -16
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +46 -23
- package/testing/testing.d.ts +3 -5
- package/testing/testing.metadata.json +1 -1
- package/testing.d.ts +2 -2
- package/esm2015/global.js +0 -7
- package/esm2015/src/render3/instructions/alloc_host_vars.js +0 -80
- package/esm2015/src/render3/styling/bindings.js +0 -1248
- package/esm2015/src/render3/styling/map_based_bindings.js +0 -384
- package/esm2015/src/render3/styling/state.js +0 -135
- package/esm2015/src/render3/styling/styling_debug.js +0 -655
- package/esm2015/src/render3/util/styling_utils.js +0 -625
- package/esm5/global.js +0 -9
- package/esm5/src/render3/instructions/alloc_host_vars.js +0 -62
- package/esm5/src/render3/styling/bindings.js +0 -949
- package/esm5/src/render3/styling/map_based_bindings.js +0 -310
- package/esm5/src/render3/styling/state.js +0 -56
- package/esm5/src/render3/styling/styling_debug.js +0 -315
- package/esm5/src/render3/util/styling_utils.js +0 -378
package/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.0.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v9.0.1
|
|
3
|
+
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -225,7 +225,15 @@ export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: Component
|
|
|
225
225
|
export declare const APP_ID: InjectionToken<string>;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
|
-
*
|
|
228
|
+
* An injection token that allows you to provide one or more initialization functions.
|
|
229
|
+
* These function are injected at application startup and executed during
|
|
230
|
+
* app initialization. If any of these functions returns a Promise, initialization
|
|
231
|
+
* does not complete until the Promise is resolved.
|
|
232
|
+
*
|
|
233
|
+
* You can, for example, create a factory function that loads language data
|
|
234
|
+
* or an external configuration, and provide that function to the `APP_INITIALIZER` token.
|
|
235
|
+
* That way, the function is executed during the application bootstrap process,
|
|
236
|
+
* and the needed data is available on startup.
|
|
229
237
|
*
|
|
230
238
|
* @publicApi
|
|
231
239
|
*/
|
|
@@ -422,7 +430,7 @@ export declare class ApplicationRef {
|
|
|
422
430
|
/**
|
|
423
431
|
* Returns the number of attached views.
|
|
424
432
|
*/
|
|
425
|
-
|
|
433
|
+
get viewCount(): number;
|
|
426
434
|
}
|
|
427
435
|
|
|
428
436
|
/**
|
|
@@ -1077,26 +1085,26 @@ declare abstract class ComponentFactory<C> {
|
|
|
1077
1085
|
/**
|
|
1078
1086
|
* The component's HTML selector.
|
|
1079
1087
|
*/
|
|
1080
|
-
abstract
|
|
1088
|
+
abstract get selector(): string;
|
|
1081
1089
|
/**
|
|
1082
1090
|
* The type of component the factory will create.
|
|
1083
1091
|
*/
|
|
1084
|
-
abstract
|
|
1092
|
+
abstract get componentType(): Type<any>;
|
|
1085
1093
|
/**
|
|
1086
1094
|
* Selector for all <ng-content> elements in the component.
|
|
1087
1095
|
*/
|
|
1088
|
-
abstract
|
|
1096
|
+
abstract get ngContentSelectors(): string[];
|
|
1089
1097
|
/**
|
|
1090
1098
|
* The inputs of the component.
|
|
1091
1099
|
*/
|
|
1092
|
-
abstract
|
|
1100
|
+
abstract get inputs(): {
|
|
1093
1101
|
propName: string;
|
|
1094
1102
|
templateName: string;
|
|
1095
1103
|
}[];
|
|
1096
1104
|
/**
|
|
1097
1105
|
* The outputs of the component.
|
|
1098
1106
|
*/
|
|
1099
|
-
abstract
|
|
1107
|
+
abstract get outputs(): {
|
|
1100
1108
|
propName: string;
|
|
1101
1109
|
templateName: string;
|
|
1102
1110
|
}[];
|
|
@@ -1139,28 +1147,28 @@ export declare abstract class ComponentRef<C> {
|
|
|
1139
1147
|
/**
|
|
1140
1148
|
* The host or anchor [element](guide/glossary#element) for this component instance.
|
|
1141
1149
|
*/
|
|
1142
|
-
abstract
|
|
1150
|
+
abstract get location(): ElementRef;
|
|
1143
1151
|
/**
|
|
1144
1152
|
* The [dependency injector](guide/glossary#injector) for this component instance.
|
|
1145
1153
|
*/
|
|
1146
|
-
abstract
|
|
1154
|
+
abstract get injector(): Injector;
|
|
1147
1155
|
/**
|
|
1148
1156
|
* This component instance.
|
|
1149
1157
|
*/
|
|
1150
|
-
abstract
|
|
1158
|
+
abstract get instance(): C;
|
|
1151
1159
|
/**
|
|
1152
1160
|
* The [host view](guide/glossary#view-tree) defined by the template
|
|
1153
1161
|
* for this component instance.
|
|
1154
1162
|
*/
|
|
1155
|
-
abstract
|
|
1163
|
+
abstract get hostView(): ViewRef;
|
|
1156
1164
|
/**
|
|
1157
1165
|
* The change detector for this component instance.
|
|
1158
1166
|
*/
|
|
1159
|
-
abstract
|
|
1167
|
+
abstract get changeDetectorRef(): ChangeDetectorRef;
|
|
1160
1168
|
/**
|
|
1161
1169
|
* The type of this component (as created by a `ComponentFactory` class).
|
|
1162
1170
|
*/
|
|
1163
|
-
abstract
|
|
1171
|
+
abstract get componentType(): Type<any>;
|
|
1164
1172
|
/**
|
|
1165
1173
|
* Destroys the component instance and all of the data structures associated with it.
|
|
1166
1174
|
*/
|
|
@@ -1501,8 +1509,8 @@ export declare const DebugElement: {
|
|
|
1501
1509
|
|
|
1502
1510
|
declare class DebugElement__POST_R3__ extends DebugNode__POST_R3__ implements DebugElement {
|
|
1503
1511
|
constructor(nativeNode: Element);
|
|
1504
|
-
|
|
1505
|
-
|
|
1512
|
+
get nativeElement(): Element | null;
|
|
1513
|
+
get name(): string;
|
|
1506
1514
|
/**
|
|
1507
1515
|
* Gets a map of property names to property values for an element.
|
|
1508
1516
|
*
|
|
@@ -1515,20 +1523,20 @@ declare class DebugElement__POST_R3__ extends DebugNode__POST_R3__ implements De
|
|
|
1515
1523
|
* - input property bindings (e.g. `[myCustomInput]="value"`)
|
|
1516
1524
|
* - attribute bindings (e.g. `[attr.role]="menu"`)
|
|
1517
1525
|
*/
|
|
1518
|
-
|
|
1526
|
+
get properties(): {
|
|
1519
1527
|
[key: string]: any;
|
|
1520
1528
|
};
|
|
1521
|
-
|
|
1529
|
+
get attributes(): {
|
|
1522
1530
|
[key: string]: string | null;
|
|
1523
1531
|
};
|
|
1524
|
-
|
|
1532
|
+
get styles(): {
|
|
1525
1533
|
[key: string]: string | null;
|
|
1526
1534
|
};
|
|
1527
|
-
|
|
1535
|
+
get classes(): {
|
|
1528
1536
|
[key: string]: boolean;
|
|
1529
1537
|
};
|
|
1530
|
-
|
|
1531
|
-
|
|
1538
|
+
get childNodes(): DebugNode[];
|
|
1539
|
+
get children(): DebugElement[];
|
|
1532
1540
|
query(predicate: Predicate<DebugElement>): DebugElement;
|
|
1533
1541
|
queryAll(predicate: Predicate<DebugElement>): DebugElement[];
|
|
1534
1542
|
queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[];
|
|
@@ -1570,15 +1578,15 @@ export declare const DebugNode: {
|
|
|
1570
1578
|
declare class DebugNode__POST_R3__ implements DebugNode {
|
|
1571
1579
|
readonly nativeNode: Node;
|
|
1572
1580
|
constructor(nativeNode: Node);
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1581
|
+
get parent(): DebugElement | null;
|
|
1582
|
+
get injector(): Injector;
|
|
1583
|
+
get componentInstance(): any;
|
|
1584
|
+
get context(): any;
|
|
1585
|
+
get listeners(): DebugEventListener[];
|
|
1586
|
+
get references(): {
|
|
1579
1587
|
[key: string]: any;
|
|
1580
1588
|
};
|
|
1581
|
-
|
|
1589
|
+
get providerTokens(): any[];
|
|
1582
1590
|
}
|
|
1583
1591
|
|
|
1584
1592
|
declare const DECLARATION_COMPONENT_VIEW = 16;
|
|
@@ -1587,6 +1595,46 @@ declare const DECLARATION_LCONTAINER = 17;
|
|
|
1587
1595
|
|
|
1588
1596
|
declare const DECLARATION_VIEW = 15;
|
|
1589
1597
|
|
|
1598
|
+
/**
|
|
1599
|
+
* Provide this token to set the default currency code your application uses for
|
|
1600
|
+
* CurrencyPipe when there is no currency code passed into it. This is only used by
|
|
1601
|
+
* CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
|
|
1602
|
+
*
|
|
1603
|
+
* See the [i18n guide](guide/i18n#setting-up-locale) for more information.
|
|
1604
|
+
*
|
|
1605
|
+
* <div class="alert is-helpful">
|
|
1606
|
+
*
|
|
1607
|
+
* **Deprecation notice:**
|
|
1608
|
+
*
|
|
1609
|
+
* The default currency code is currently always `USD` but this is deprecated from v9.
|
|
1610
|
+
*
|
|
1611
|
+
* **In v10 the default currency code will be taken from the current locale.**
|
|
1612
|
+
*
|
|
1613
|
+
* If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
|
|
1614
|
+
* your application `NgModule`:
|
|
1615
|
+
*
|
|
1616
|
+
* ```ts
|
|
1617
|
+
* {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
|
|
1618
|
+
* ```
|
|
1619
|
+
*
|
|
1620
|
+
* </div>
|
|
1621
|
+
*
|
|
1622
|
+
* @usageNotes
|
|
1623
|
+
* ### Example
|
|
1624
|
+
*
|
|
1625
|
+
* ```typescript
|
|
1626
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
1627
|
+
* import { AppModule } from './app/app.module';
|
|
1628
|
+
*
|
|
1629
|
+
* platformBrowserDynamic().bootstrapModule(AppModule, {
|
|
1630
|
+
* providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
|
|
1631
|
+
* });
|
|
1632
|
+
* ```
|
|
1633
|
+
*
|
|
1634
|
+
* @publicApi
|
|
1635
|
+
*/
|
|
1636
|
+
export declare const DEFAULT_CURRENCY_CODE: InjectionToken<string>;
|
|
1637
|
+
|
|
1590
1638
|
/**
|
|
1591
1639
|
* @deprecated v4.0.0 - Should not be part of public API.
|
|
1592
1640
|
* @publicApi
|
|
@@ -1619,7 +1667,7 @@ export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, Iter
|
|
|
1619
1667
|
diff(collection: NgIterable<V> | null | undefined): DefaultIterableDiffer<V> | null;
|
|
1620
1668
|
onDestroy(): void;
|
|
1621
1669
|
check(collection: NgIterable<V>): boolean;
|
|
1622
|
-
|
|
1670
|
+
get isDirty(): boolean;
|
|
1623
1671
|
private _addToRemovals;
|
|
1624
1672
|
}
|
|
1625
1673
|
|
|
@@ -2159,11 +2207,11 @@ export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
|
|
2159
2207
|
/**
|
|
2160
2208
|
* The context for this view, inherited from the anchor element.
|
|
2161
2209
|
*/
|
|
2162
|
-
abstract
|
|
2210
|
+
abstract get context(): C;
|
|
2163
2211
|
/**
|
|
2164
2212
|
* The root nodes for this embedded view.
|
|
2165
2213
|
*/
|
|
2166
|
-
abstract
|
|
2214
|
+
abstract get rootNodes(): any[];
|
|
2167
2215
|
}
|
|
2168
2216
|
|
|
2169
2217
|
/**
|
|
@@ -2556,7 +2604,7 @@ export declare interface HostBindingDecorator {
|
|
|
2556
2604
|
new (hostPropertyName?: string): any;
|
|
2557
2605
|
}
|
|
2558
2606
|
|
|
2559
|
-
declare type HostBindingsFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U
|
|
2607
|
+
declare type HostBindingsFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U) => void;
|
|
2560
2608
|
|
|
2561
2609
|
/**
|
|
2562
2610
|
* Type of the Host decorator / constructor function.
|
|
@@ -2916,13 +2964,14 @@ export declare const inject: typeof ɵɵinject;
|
|
|
2916
2964
|
export declare interface Injectable {
|
|
2917
2965
|
/**
|
|
2918
2966
|
* Determines which injectors will provide the injectable,
|
|
2919
|
-
* by either associating it with an
|
|
2920
|
-
* or by specifying that this injectable should be provided in the:
|
|
2921
|
-
* - 'root'
|
|
2922
|
-
* - 'platform'
|
|
2967
|
+
* by either associating it with an `@NgModule` or other `InjectorType`,
|
|
2968
|
+
* or by specifying that this injectable should be provided in one of the following injectors:
|
|
2969
|
+
* - 'root' : The application-level injector in most apps.
|
|
2970
|
+
* - 'platform' : A special singleton platform injector shared by all
|
|
2923
2971
|
* applications on the page.
|
|
2924
|
-
* - 'any'
|
|
2925
|
-
*
|
|
2972
|
+
* - 'any' : Provides a unique instance in every module (including lazy modules) that injects the
|
|
2973
|
+
* token.
|
|
2974
|
+
*
|
|
2926
2975
|
*/
|
|
2927
2976
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
|
2928
2977
|
}
|
|
@@ -3112,12 +3161,20 @@ export declare class InjectionToken<T> {
|
|
|
3112
3161
|
export declare const INJECTOR: InjectionToken<Injector>;
|
|
3113
3162
|
|
|
3114
3163
|
/**
|
|
3115
|
-
* Concrete injectors implement this interface.
|
|
3164
|
+
* Concrete injectors implement this interface. Injectors are configured
|
|
3165
|
+
* with [providers](guide/glossary#provider) that associate
|
|
3166
|
+
* dependencies of various types with [injection tokens](guide/glossary#di-token).
|
|
3116
3167
|
*
|
|
3117
|
-
*
|
|
3168
|
+
* @see ["DI Providers"](guide/dependency-injection-providers).
|
|
3169
|
+
* @see `StaticProvider`
|
|
3118
3170
|
*
|
|
3119
3171
|
* @usageNotes
|
|
3120
|
-
*
|
|
3172
|
+
*
|
|
3173
|
+
* The following example creates a service injector instance.
|
|
3174
|
+
*
|
|
3175
|
+
* {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
|
|
3176
|
+
*
|
|
3177
|
+
* ### Usage example
|
|
3121
3178
|
*
|
|
3122
3179
|
* {@example core/di/ts/injector_spec.ts region='Injector'}
|
|
3123
3180
|
*
|
|
@@ -3145,6 +3202,18 @@ export declare abstract class Injector {
|
|
|
3145
3202
|
* @deprecated from v5 use the new signature Injector.create(options)
|
|
3146
3203
|
*/
|
|
3147
3204
|
static create(providers: StaticProvider[], parent?: Injector): Injector;
|
|
3205
|
+
/**
|
|
3206
|
+
* Creates a new injector instance that provides one or more dependencies,
|
|
3207
|
+
* according to a given type or types of `StaticProvider`.
|
|
3208
|
+
*
|
|
3209
|
+
* @param options An object with the following properties:
|
|
3210
|
+
* * `providers`: An array of providers of the [StaticProvider type](api/core/StaticProvider).
|
|
3211
|
+
* * `parent`: (optional) A parent injector.
|
|
3212
|
+
* * `name`: (optional) A developer-defined identifying name for the new injector.
|
|
3213
|
+
*
|
|
3214
|
+
* @returns The new injector instance.
|
|
3215
|
+
*
|
|
3216
|
+
*/
|
|
3148
3217
|
static create(options: {
|
|
3149
3218
|
providers: StaticProvider[];
|
|
3150
3219
|
parent?: Injector;
|
|
@@ -3313,12 +3382,6 @@ declare interface InstructionState {
|
|
|
3313
3382
|
* Necessary to support ChangeDetectorRef.checkNoChanges().
|
|
3314
3383
|
*/
|
|
3315
3384
|
checkNoChangesMode: boolean;
|
|
3316
|
-
/**
|
|
3317
|
-
* Function to be called when the element is exited.
|
|
3318
|
-
*
|
|
3319
|
-
* NOTE: The function is here for tree shakable purposes since it is only needed by styling.
|
|
3320
|
-
*/
|
|
3321
|
-
elementExitFn: (() => void) | null;
|
|
3322
3385
|
}
|
|
3323
3386
|
|
|
3324
3387
|
declare interface InternalNgModuleRef<T> extends NgModuleRef<T> {
|
|
@@ -3475,6 +3538,22 @@ export declare class IterableDiffers {
|
|
|
3475
3538
|
find(iterable: any): IterableDifferFactory;
|
|
3476
3539
|
}
|
|
3477
3540
|
|
|
3541
|
+
/**
|
|
3542
|
+
* `KeyValueArray` is an array where even positions contain keys and odd positions contain values.
|
|
3543
|
+
*
|
|
3544
|
+
* `KeyValueArray` provides a very efficient way of iterating over its contents. For small
|
|
3545
|
+
* sets (~10) the cost of binary searching an `KeyValueArray` has about the same performance
|
|
3546
|
+
* characteristics that of a `Map` with significantly better memory footprint.
|
|
3547
|
+
*
|
|
3548
|
+
* If used as a `Map` the keys are stored in alphabetical order so that they can be binary searched
|
|
3549
|
+
* for retrieval.
|
|
3550
|
+
*
|
|
3551
|
+
* See: `keyValueArraySet`, `keyValueArrayGet`, `keyValueArrayIndexOf`, `keyValueArrayDelete`.
|
|
3552
|
+
*/
|
|
3553
|
+
declare interface KeyValueArray<VALUE> extends Array<VALUE | string> {
|
|
3554
|
+
__brand__: 'array-map';
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3478
3557
|
/**
|
|
3479
3558
|
* Record representing the item change information.
|
|
3480
3559
|
*
|
|
@@ -3621,7 +3700,7 @@ declare interface LContainer extends Array<any> {
|
|
|
3621
3700
|
* The host could be an LView if this container is on a component node.
|
|
3622
3701
|
* In that case, the component LView is its HOST.
|
|
3623
3702
|
*/
|
|
3624
|
-
readonly [HOST]: RElement | RComment | ɵ
|
|
3703
|
+
readonly [HOST]: RElement | RComment | ɵangular_packages_core_core_bo;
|
|
3625
3704
|
/**
|
|
3626
3705
|
* This is a type field which allows us to differentiate `LContainer` from `StylingContext` in an
|
|
3627
3706
|
* efficient way. The value is always set to `true`
|
|
@@ -3646,18 +3725,18 @@ declare interface LContainer extends Array<any> {
|
|
|
3646
3725
|
* Access to the parent view is necessary so we can propagate back
|
|
3647
3726
|
* up from inside a container to parent[NEXT].
|
|
3648
3727
|
*/
|
|
3649
|
-
[PARENT]: ɵ
|
|
3728
|
+
[PARENT]: ɵangular_packages_core_core_bo;
|
|
3650
3729
|
/**
|
|
3651
3730
|
* This allows us to jump from a container to a sibling container or component
|
|
3652
3731
|
* view with the same parent, so we can remove listeners efficiently.
|
|
3653
3732
|
*/
|
|
3654
|
-
[NEXT]: ɵ
|
|
3733
|
+
[NEXT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
3655
3734
|
/**
|
|
3656
3735
|
* A collection of views created based on the underlying `<ng-template>` element but inserted into
|
|
3657
3736
|
* a different `LContainer`. We need to track views created from a given declaration point since
|
|
3658
3737
|
* queries collect matches from the embedded view declaration point and _not_ the insertion point.
|
|
3659
3738
|
*/
|
|
3660
|
-
[MOVED_VIEWS]: ɵ
|
|
3739
|
+
[MOVED_VIEWS]: ɵangular_packages_core_core_bo[] | null;
|
|
3661
3740
|
/**
|
|
3662
3741
|
* Pointer to the `TNode` which represents the host of the container.
|
|
3663
3742
|
*/
|
|
@@ -3694,11 +3773,18 @@ declare interface LFrame {
|
|
|
3694
3773
|
* An array of nodes (text, element, container, etc), pipes, their bindings, and
|
|
3695
3774
|
* any local variables that need to be stored between invocations.
|
|
3696
3775
|
*/
|
|
3697
|
-
lView: ɵ
|
|
3776
|
+
lView: ɵangular_packages_core_core_bo;
|
|
3777
|
+
/**
|
|
3778
|
+
* Current `TView` associated with the `LFrame.lView`.
|
|
3779
|
+
*
|
|
3780
|
+
* One can get `TView` from `lFrame[TVIEW]` however because it is so common it makes sense to
|
|
3781
|
+
* store it in `LFrame` for perf reasons.
|
|
3782
|
+
*/
|
|
3783
|
+
tView: TView;
|
|
3698
3784
|
/**
|
|
3699
3785
|
* Used to set the parent property when nodes are created and track query results.
|
|
3700
3786
|
*
|
|
3701
|
-
* This is used in
|
|
3787
|
+
* This is used in conjunction with `isParent`.
|
|
3702
3788
|
*/
|
|
3703
3789
|
previousOrParentTNode: TNode;
|
|
3704
3790
|
/**
|
|
@@ -3723,7 +3809,7 @@ declare interface LFrame {
|
|
|
3723
3809
|
*
|
|
3724
3810
|
* e.g. const inner = x().$implicit; const outer = x().$implicit;
|
|
3725
3811
|
*/
|
|
3726
|
-
contextLView: ɵ
|
|
3812
|
+
contextLView: ɵangular_packages_core_core_bo;
|
|
3727
3813
|
/**
|
|
3728
3814
|
* Store the element depth count. This is used to identify the root elements of the template
|
|
3729
3815
|
* so that we can then attach patch data `LView` to only those elements. We know that those
|
|
@@ -3739,18 +3825,6 @@ declare interface LFrame {
|
|
|
3739
3825
|
* Current sanitizer
|
|
3740
3826
|
*/
|
|
3741
3827
|
currentSanitizer: StyleSanitizeFn | null;
|
|
3742
|
-
/**
|
|
3743
|
-
* Used when processing host bindings.
|
|
3744
|
-
*/
|
|
3745
|
-
currentDirectiveDef: ɵDirectiveDef<any> | ɵComponentDef<any> | null;
|
|
3746
|
-
/**
|
|
3747
|
-
* Used as the starting directive id value.
|
|
3748
|
-
*
|
|
3749
|
-
* All subsequent directives are incremented from this value onwards.
|
|
3750
|
-
* The reason why this value is `1` instead of `0` is because the `0`
|
|
3751
|
-
* value is reserved for the template.
|
|
3752
|
-
*/
|
|
3753
|
-
activeDirectiveId: number;
|
|
3754
3828
|
/**
|
|
3755
3829
|
* The root index from which pure function instructions should calculate their binding
|
|
3756
3830
|
* indices. In component views, this is TView.bindingStartIndex. In a host binding
|
|
@@ -3762,6 +3836,12 @@ declare interface LFrame {
|
|
|
3762
3836
|
* We iterate over the list of Queries and increment current query index at every step.
|
|
3763
3837
|
*/
|
|
3764
3838
|
currentQueryIndex: number;
|
|
3839
|
+
/**
|
|
3840
|
+
* When host binding is executing this points to the directive index.
|
|
3841
|
+
* `TView.data[currentDirectiveIndex]` is `DirectiveDef`
|
|
3842
|
+
* `LView[currentDirectiveIndex]` is directive instance.
|
|
3843
|
+
*/
|
|
3844
|
+
currentDirectiveIndex: number;
|
|
3765
3845
|
}
|
|
3766
3846
|
|
|
3767
3847
|
/**
|
|
@@ -3794,7 +3874,7 @@ export declare const LOCALE_ID: InjectionToken<string>;
|
|
|
3794
3874
|
* - `<div #nativeDivEl>` - `nativeDivEl` should point to the native `<div>` element;
|
|
3795
3875
|
* - `<ng-template #tplRef>` - `tplRef` should point to the `TemplateRef` instance;
|
|
3796
3876
|
*/
|
|
3797
|
-
declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: ɵ
|
|
3877
|
+
declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: ɵangular_packages_core_core_bo) => any;
|
|
3798
3878
|
|
|
3799
3879
|
/**
|
|
3800
3880
|
* lQueries represent a collection of individual LQuery objects tracked in a given view.
|
|
@@ -4209,7 +4289,7 @@ declare interface NgModuleDefinitionFactory extends DefinitionFactory<NgModuleDe
|
|
|
4209
4289
|
* @publicApi
|
|
4210
4290
|
*/
|
|
4211
4291
|
export declare abstract class NgModuleFactory<T> {
|
|
4212
|
-
abstract
|
|
4292
|
+
abstract get moduleType(): Type<T>;
|
|
4213
4293
|
abstract create(parentInjector: Injector | null): NgModuleRef<T>;
|
|
4214
4294
|
}
|
|
4215
4295
|
|
|
@@ -4244,16 +4324,16 @@ export declare abstract class NgModuleRef<T> {
|
|
|
4244
4324
|
/**
|
|
4245
4325
|
* The injector that contains all of the providers of the NgModule.
|
|
4246
4326
|
*/
|
|
4247
|
-
abstract
|
|
4327
|
+
abstract get injector(): Injector;
|
|
4248
4328
|
/**
|
|
4249
4329
|
* The ComponentFactoryResolver to get hold of the ComponentFactories
|
|
4250
4330
|
* declared in the `entryComponents` property of the module.
|
|
4251
4331
|
*/
|
|
4252
|
-
abstract
|
|
4332
|
+
abstract get componentFactoryResolver(): ComponentFactoryResolver;
|
|
4253
4333
|
/**
|
|
4254
4334
|
* The NgModule instance.
|
|
4255
4335
|
*/
|
|
4256
|
-
abstract
|
|
4336
|
+
abstract get instance(): T;
|
|
4257
4337
|
/**
|
|
4258
4338
|
* Destroys the module instance and all of the data structures associated with it.
|
|
4259
4339
|
*/
|
|
@@ -4921,12 +5001,12 @@ export declare class PlatformRef {
|
|
|
4921
5001
|
* Retrieve the platform {@link Injector}, which is the parent injector for
|
|
4922
5002
|
* every Angular application on the page and provides singleton providers.
|
|
4923
5003
|
*/
|
|
4924
|
-
|
|
5004
|
+
get injector(): Injector;
|
|
4925
5005
|
/**
|
|
4926
5006
|
* Destroy the Angular platform and all Angular applications on the page.
|
|
4927
5007
|
*/
|
|
4928
5008
|
destroy(): void;
|
|
4929
|
-
|
|
5009
|
+
get destroyed(): boolean;
|
|
4930
5010
|
}
|
|
4931
5011
|
|
|
4932
5012
|
declare interface PlatformReflectionCapabilities {
|
|
@@ -5248,7 +5328,7 @@ declare class R3Injector {
|
|
|
5248
5328
|
/**
|
|
5249
5329
|
* Flag indicating that this injector was previously destroyed.
|
|
5250
5330
|
*/
|
|
5251
|
-
|
|
5331
|
+
get destroyed(): boolean;
|
|
5252
5332
|
private _destroyed;
|
|
5253
5333
|
constructor(def: InjectorType<any>, additionalProviders: StaticProvider[] | null, parent: Injector, source?: string | null);
|
|
5254
5334
|
/**
|
|
@@ -5419,7 +5499,7 @@ export declare abstract class ReflectiveInjector implements Injector {
|
|
|
5419
5499
|
* <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.
|
|
5420
5500
|
* -->
|
|
5421
5501
|
*/
|
|
5422
|
-
abstract
|
|
5502
|
+
abstract get parent(): Injector | null;
|
|
5423
5503
|
/**
|
|
5424
5504
|
* Resolves an array of providers and creates a child injector from those providers.
|
|
5425
5505
|
*
|
|
@@ -5561,7 +5641,7 @@ export declare class ReflectiveKey {
|
|
|
5561
5641
|
/**
|
|
5562
5642
|
* @returns the number of keys registered in the system.
|
|
5563
5643
|
*/
|
|
5564
|
-
static
|
|
5644
|
+
static get numberOfKeys(): number;
|
|
5565
5645
|
}
|
|
5566
5646
|
|
|
5567
5647
|
/**
|
|
@@ -5604,7 +5684,7 @@ export declare abstract class Renderer2 {
|
|
|
5604
5684
|
* as an object containing key-value pairs.
|
|
5605
5685
|
* This is useful for renderers that delegate to other renderers.
|
|
5606
5686
|
*/
|
|
5607
|
-
abstract
|
|
5687
|
+
abstract get data(): {
|
|
5608
5688
|
[key: string]: any;
|
|
5609
5689
|
};
|
|
5610
5690
|
/**
|
|
@@ -6253,8 +6333,11 @@ export declare interface StaticClassSansProvider {
|
|
|
6253
6333
|
}
|
|
6254
6334
|
|
|
6255
6335
|
/**
|
|
6256
|
-
* Describes how
|
|
6257
|
-
*
|
|
6336
|
+
* Describes how an `Injector` should be configured as static (that is, without reflection).
|
|
6337
|
+
* A static provider provides tokens to an injector for various types of dependencies.
|
|
6338
|
+
*
|
|
6339
|
+
* @see [Injector.create()](/api/core/Injector#create).
|
|
6340
|
+
* @see ["Dependency Injection Guide"](guide/dependency-injection-providers).
|
|
6258
6341
|
*
|
|
6259
6342
|
* @publicApi
|
|
6260
6343
|
*/
|
|
@@ -6295,39 +6378,6 @@ declare const enum StyleSanitizeMode {
|
|
|
6295
6378
|
ValidateAndSanitize = 3
|
|
6296
6379
|
}
|
|
6297
6380
|
|
|
6298
|
-
/**
|
|
6299
|
-
* Array-based representation of a key/value array.
|
|
6300
|
-
*
|
|
6301
|
-
* The format of the array is "property", "value", "property2",
|
|
6302
|
-
* "value2", etc...
|
|
6303
|
-
*
|
|
6304
|
-
* The first value in the array is reserved to store the instance
|
|
6305
|
-
* of the key/value array that was used to populate the property/
|
|
6306
|
-
* value entries that take place in the remainder of the array.
|
|
6307
|
-
*/
|
|
6308
|
-
declare interface StylingMapArray extends Array<{} | string | number | null | undefined> {
|
|
6309
|
-
/**
|
|
6310
|
-
* The last raw value used to generate the entries in the map.
|
|
6311
|
-
*/
|
|
6312
|
-
[StylingMapArrayIndex.RawValuePosition]: {} | string | number | null | undefined;
|
|
6313
|
-
}
|
|
6314
|
-
|
|
6315
|
-
/**
|
|
6316
|
-
* An index of position and offset points for any data stored within a `StylingMapArray` instance.
|
|
6317
|
-
*/
|
|
6318
|
-
declare const enum StylingMapArrayIndex {
|
|
6319
|
-
/** Where the values start in the array */
|
|
6320
|
-
ValuesStartPosition = 1,
|
|
6321
|
-
/** The location of the raw key/value map instance used last to populate the array entries */
|
|
6322
|
-
RawValuePosition = 0,
|
|
6323
|
-
/** The size of each property/value entry */
|
|
6324
|
-
TupleSize = 2,
|
|
6325
|
-
/** The offset for the property entry in the tuple */
|
|
6326
|
-
PropOffset = 0,
|
|
6327
|
-
/** The offset for the value entry in the tuple */
|
|
6328
|
-
ValueOffset = 1
|
|
6329
|
-
}
|
|
6330
|
-
|
|
6331
6381
|
/**
|
|
6332
6382
|
* NgModuleFactoryLoader that uses SystemJS to load NgModuleFactory
|
|
6333
6383
|
* @publicApi
|
|
@@ -6395,7 +6445,7 @@ declare interface TContainerNode extends TNode {
|
|
|
6395
6445
|
* - They are the first node of a component or embedded view
|
|
6396
6446
|
* - They are dynamically created
|
|
6397
6447
|
*/
|
|
6398
|
-
parent: ɵ
|
|
6448
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
6399
6449
|
tViews: TView | TView[] | null;
|
|
6400
6450
|
projection: null;
|
|
6401
6451
|
}
|
|
@@ -6427,14 +6477,14 @@ declare interface TContainerNode extends TNode {
|
|
|
6427
6477
|
*
|
|
6428
6478
|
* Injector bloom filters are also stored here.
|
|
6429
6479
|
*/
|
|
6430
|
-
declare type TData = (TNode | ɵPipeDef<any> | ɵDirectiveDef<any> | ɵComponentDef<any> | number | Type<any> | InjectionToken<any> | TI18n | I18nUpdateOpCodes | null | string)[];
|
|
6480
|
+
declare type TData = (TNode | ɵPipeDef<any> | ɵDirectiveDef<any> | ɵComponentDef<any> | number | TStylingRange | TStylingKey | Type<any> | InjectionToken<any> | TI18n | I18nUpdateOpCodes | null | string)[];
|
|
6431
6481
|
|
|
6432
6482
|
/** Static data for an <ng-container> */
|
|
6433
6483
|
declare interface TElementContainerNode extends TNode {
|
|
6434
6484
|
/** Index in the LView[] array. */
|
|
6435
6485
|
index: number;
|
|
6436
|
-
child: ɵ
|
|
6437
|
-
parent: ɵ
|
|
6486
|
+
child: ɵangular_packages_core_core_be | TTextNode | TContainerNode | TElementContainerNode | TProjectionNode | null;
|
|
6487
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
6438
6488
|
tViews: null;
|
|
6439
6489
|
projection: null;
|
|
6440
6490
|
}
|
|
@@ -6469,7 +6519,7 @@ export declare abstract class TemplateRef<C> {
|
|
|
6469
6519
|
* data-binding and injection context from the original location.
|
|
6470
6520
|
*
|
|
6471
6521
|
*/
|
|
6472
|
-
abstract
|
|
6522
|
+
abstract get elementRef(): ElementRef;
|
|
6473
6523
|
/**
|
|
6474
6524
|
* Instantiates an embedded view based on this template,
|
|
6475
6525
|
* and attaches it to the view container.
|
|
@@ -6728,6 +6778,23 @@ declare interface TNode {
|
|
|
6728
6778
|
* Stores final exclusive index of the directives.
|
|
6729
6779
|
*/
|
|
6730
6780
|
directiveEnd: number;
|
|
6781
|
+
/**
|
|
6782
|
+
* Stores the last directive which had a styling instruction.
|
|
6783
|
+
*
|
|
6784
|
+
* Initial value of this is `-1` which means that no `hostBindings` styling instruction has
|
|
6785
|
+
* executed. As `hostBindings` instructions execute they set the value to the index of the
|
|
6786
|
+
* `DirectiveDef` which contained the last `hostBindings` styling instruction.
|
|
6787
|
+
*
|
|
6788
|
+
* Valid values are:
|
|
6789
|
+
* - `-1` No `hostBindings` instruction has executed.
|
|
6790
|
+
* - `directiveStart <= directiveStylingLast < directiveEnd`: Points to the `DirectiveDef` of the
|
|
6791
|
+
* last styling instruction which executed in the `hostBindings`.
|
|
6792
|
+
*
|
|
6793
|
+
* This data is needed so that styling instructions know which static styling data needs to be
|
|
6794
|
+
* collected from the `DirectiveDef.hostAttrs`. A styling instruction needs to collect all data
|
|
6795
|
+
* since last styling instruction.
|
|
6796
|
+
*/
|
|
6797
|
+
directiveStylingLast: number;
|
|
6731
6798
|
/**
|
|
6732
6799
|
* Stores indexes of property bindings. This field is only set in the ngDevMode and holds indexes
|
|
6733
6800
|
* of property bindings so TestBed can get bound property metadata for a given node.
|
|
@@ -6761,6 +6828,18 @@ declare interface TNode {
|
|
|
6761
6828
|
* namespaces, attributes extracted from bindings and outputs).
|
|
6762
6829
|
*/
|
|
6763
6830
|
attrs: TAttributes | null;
|
|
6831
|
+
/**
|
|
6832
|
+
* Same as `TNode.attrs` but contains merged data across all directive host bindings.
|
|
6833
|
+
*
|
|
6834
|
+
* We need to keep `attrs` as unmerged so that it can be used for attribute selectors.
|
|
6835
|
+
* We merge attrs here so that it can be used in a performant way for initial rendering.
|
|
6836
|
+
*
|
|
6837
|
+
* The `attrs` are merged in first pass in following order:
|
|
6838
|
+
* - Component's `hostAttrs`
|
|
6839
|
+
* - Directives' `hostAttrs`
|
|
6840
|
+
* - Template `TNode.attrs` associated with the current `TNode`.
|
|
6841
|
+
*/
|
|
6842
|
+
mergedAttrs: TAttributes | null;
|
|
6764
6843
|
/**
|
|
6765
6844
|
* A set of local names under which a given element is exported in a template and
|
|
6766
6845
|
* visible to queries. An entry in this array can be created for different reasons:
|
|
@@ -6845,7 +6924,7 @@ declare interface TNode {
|
|
|
6845
6924
|
*
|
|
6846
6925
|
* If this is an inline view node (V), the parent will be its container.
|
|
6847
6926
|
*/
|
|
6848
|
-
parent: ɵ
|
|
6927
|
+
parent: ɵangular_packages_core_core_be | TContainerNode | null;
|
|
6849
6928
|
/**
|
|
6850
6929
|
* List of projected TNodes for a given component host element OR index into the said nodes.
|
|
6851
6930
|
*
|
|
@@ -6887,43 +6966,87 @@ declare interface TNode {
|
|
|
6887
6966
|
*/
|
|
6888
6967
|
projection: (TNode | RNode[])[] | number | null;
|
|
6889
6968
|
/**
|
|
6890
|
-
* A collection of all style
|
|
6969
|
+
* A collection of all style static values for an element.
|
|
6891
6970
|
*
|
|
6892
6971
|
* This field will be populated if and when:
|
|
6893
6972
|
*
|
|
6894
6973
|
* - There are one or more initial styles on an element (e.g. `<div style="width:200px">`)
|
|
6895
|
-
|
|
6974
|
+
*/
|
|
6975
|
+
styles: string | null;
|
|
6976
|
+
/**
|
|
6977
|
+
* A `KeyValueArray` version of residual `styles`.
|
|
6896
6978
|
*
|
|
6897
|
-
*
|
|
6898
|
-
*
|
|
6899
|
-
*
|
|
6979
|
+
* When there are styling instructions than each instruction stores the static styling
|
|
6980
|
+
* which is of lower priority than itself. This means that there may be a higher priority styling
|
|
6981
|
+
* than the instruction.
|
|
6900
6982
|
*
|
|
6901
|
-
*
|
|
6902
|
-
*
|
|
6903
|
-
*
|
|
6904
|
-
*
|
|
6905
|
-
*
|
|
6983
|
+
* Imagine:
|
|
6984
|
+
* ```
|
|
6985
|
+
* <div style="color: highest;" my-dir>
|
|
6986
|
+
*
|
|
6987
|
+
* @Directive({
|
|
6988
|
+
* host: {
|
|
6989
|
+
* style: 'color: lowest; ',
|
|
6990
|
+
* '[styles.color]': 'exp' // ɵɵstyleProp('color', ctx.exp);
|
|
6991
|
+
* }
|
|
6992
|
+
* })
|
|
6993
|
+
* ```
|
|
6994
|
+
*
|
|
6995
|
+
* In the above case:
|
|
6996
|
+
* - `color: lowest` is stored with `ɵɵstyleProp('color', ctx.exp);` instruction
|
|
6997
|
+
* - `color: highest` is the residual and is stored here.
|
|
6998
|
+
*
|
|
6999
|
+
* - `undefined': not initialized.
|
|
7000
|
+
* - `null`: initialized but `styles` is `null`
|
|
7001
|
+
* - `KeyValueArray`: parsed version of `styles`.
|
|
6906
7002
|
*/
|
|
6907
|
-
|
|
7003
|
+
residualStyles: KeyValueArray<any> | undefined | null;
|
|
6908
7004
|
/**
|
|
6909
|
-
* A collection of all class
|
|
7005
|
+
* A collection of all class static values for an element.
|
|
6910
7006
|
*
|
|
6911
7007
|
* This field will be populated if and when:
|
|
6912
7008
|
*
|
|
6913
7009
|
* - There are one or more initial classes on an element (e.g. `<div class="one two three">`)
|
|
6914
|
-
|
|
7010
|
+
*/
|
|
7011
|
+
classes: string | null;
|
|
7012
|
+
/**
|
|
7013
|
+
* A `KeyValueArray` version of residual `classes`.
|
|
6915
7014
|
*
|
|
6916
|
-
*
|
|
6917
|
-
* will be used here. Otherwise an instance of `TStylingContext` will be created when there
|
|
6918
|
-
* are one or more class bindings on an element.
|
|
7015
|
+
* Same as `TNode.residualStyles` but for classes.
|
|
6919
7016
|
*
|
|
6920
|
-
*
|
|
6921
|
-
* `
|
|
6922
|
-
*
|
|
6923
|
-
* are encountered. If and when this happens then the existing `StylingMapArray` value
|
|
6924
|
-
* will be placed into the initial styling slot in the newly created `TStylingContext`.
|
|
7017
|
+
* - `undefined': not initialized.
|
|
7018
|
+
* - `null`: initialized but `classes` is `null`
|
|
7019
|
+
* - `KeyValueArray`: parsed version of `classes`.
|
|
6925
7020
|
*/
|
|
6926
|
-
|
|
7021
|
+
residualClasses: KeyValueArray<any> | undefined | null;
|
|
7022
|
+
/**
|
|
7023
|
+
* Stores the head/tail index of the class bindings.
|
|
7024
|
+
*
|
|
7025
|
+
* - If no bindings, the head and tail will both be 0.
|
|
7026
|
+
* - If there are template bindings, stores the head/tail of the class bindings in the template.
|
|
7027
|
+
* - If no template bindings but there are host bindings, the head value will point to the last
|
|
7028
|
+
* host binding for "class" (not the head of the linked list), tail will be 0.
|
|
7029
|
+
*
|
|
7030
|
+
* See: `style_binding_list.ts` for details.
|
|
7031
|
+
*
|
|
7032
|
+
* This is used by `insertTStylingBinding` to know where the next styling binding should be
|
|
7033
|
+
* inserted so that they can be sorted in priority order.
|
|
7034
|
+
*/
|
|
7035
|
+
classBindings: TStylingRange;
|
|
7036
|
+
/**
|
|
7037
|
+
* Stores the head/tail index of the class bindings.
|
|
7038
|
+
*
|
|
7039
|
+
* - If no bindings, the head and tail will both be 0.
|
|
7040
|
+
* - If there are template bindings, stores the head/tail of the style bindings in the template.
|
|
7041
|
+
* - If no template bindings but there are host bindings, the head value will point to the last
|
|
7042
|
+
* host binding for "style" (not the head of the linked list), tail will be 0.
|
|
7043
|
+
*
|
|
7044
|
+
* See: `style_binding_list.ts` for details.
|
|
7045
|
+
*
|
|
7046
|
+
* This is used by `insertTStylingBinding` to know where the next styling binding should be
|
|
7047
|
+
* inserted so that they can be sorted in priority order.
|
|
7048
|
+
*/
|
|
7049
|
+
styleBindings: TStylingRange;
|
|
6927
7050
|
}
|
|
6928
7051
|
|
|
6929
7052
|
/**
|
|
@@ -6954,99 +7077,7 @@ declare const enum TNodeFlags {
|
|
|
6954
7077
|
* This flags allows us to guard host-binding logic and invoke it only on nodes
|
|
6955
7078
|
* that actually have directives with host bindings.
|
|
6956
7079
|
*/
|
|
6957
|
-
hasHostBindings = 128
|
|
6958
|
-
/** Bit #9 - This bit is set if the node has initial styling */
|
|
6959
|
-
hasInitialStyling = 256,
|
|
6960
|
-
/**
|
|
6961
|
-
* Bit #10 - Whether or not there are class-based map bindings present.
|
|
6962
|
-
*
|
|
6963
|
-
* Examples include:
|
|
6964
|
-
* 1. `<div [class]="x">`
|
|
6965
|
-
* 2. `@HostBinding('class') x`
|
|
6966
|
-
*/
|
|
6967
|
-
hasClassMapBindings = 512,
|
|
6968
|
-
/**
|
|
6969
|
-
* Bit #11 - Whether or not there are any class-based prop bindings present.
|
|
6970
|
-
*
|
|
6971
|
-
* Examples include:
|
|
6972
|
-
* 1. `<div [class.name]="x">`
|
|
6973
|
-
* 2. `@HostBinding('class.name') x`
|
|
6974
|
-
*/
|
|
6975
|
-
hasClassPropBindings = 1024,
|
|
6976
|
-
/**
|
|
6977
|
-
* Bit #12 - whether or not there are any active [class] and [class.name] bindings
|
|
6978
|
-
*/
|
|
6979
|
-
hasClassPropAndMapBindings = 1536,
|
|
6980
|
-
/**
|
|
6981
|
-
* Bit #13 - Whether or not the context contains one or more class-based template bindings.
|
|
6982
|
-
*
|
|
6983
|
-
* Examples include:
|
|
6984
|
-
* 1. `<div [class]="x">`
|
|
6985
|
-
* 2. `<div [class.name]="x">`
|
|
6986
|
-
*/
|
|
6987
|
-
hasTemplateClassBindings = 2048,
|
|
6988
|
-
/**
|
|
6989
|
-
* Bit #14 - Whether or not the context contains one or more class-based host bindings.
|
|
6990
|
-
*
|
|
6991
|
-
* Examples include:
|
|
6992
|
-
* 1. `@HostBinding('class') x`
|
|
6993
|
-
* 2. `@HostBinding('class.name') x`
|
|
6994
|
-
*/
|
|
6995
|
-
hasHostClassBindings = 4096,
|
|
6996
|
-
/**
|
|
6997
|
-
* Bit #15 - Whether or not there are two or more sources for a class property in the context.
|
|
6998
|
-
*
|
|
6999
|
-
* Examples include:
|
|
7000
|
-
* 1. prop + prop: `<div [class.active]="x" dir-that-sets-active-class>`
|
|
7001
|
-
* 2. map + prop: `<div [class]="x" [class.foo]>`
|
|
7002
|
-
* 3. map + map: `<div [class]="x" dir-that-sets-class>`
|
|
7003
|
-
*/
|
|
7004
|
-
hasDuplicateClassBindings = 8192,
|
|
7005
|
-
/**
|
|
7006
|
-
* Bit #16 - Whether or not there are style-based map bindings present.
|
|
7007
|
-
*
|
|
7008
|
-
* Examples include:
|
|
7009
|
-
* 1. `<div [style]="x">`
|
|
7010
|
-
* 2. `@HostBinding('style') x`
|
|
7011
|
-
*/
|
|
7012
|
-
hasStyleMapBindings = 16384,
|
|
7013
|
-
/**
|
|
7014
|
-
* Bit #17 - Whether or not there are any style-based prop bindings present.
|
|
7015
|
-
*
|
|
7016
|
-
* Examples include:
|
|
7017
|
-
* 1. `<div [style.prop]="x">`
|
|
7018
|
-
* 2. `@HostBinding('style.prop') x`
|
|
7019
|
-
*/
|
|
7020
|
-
hasStylePropBindings = 32768,
|
|
7021
|
-
/**
|
|
7022
|
-
* Bit #18 - whether or not there are any active [style] and [style.prop] bindings
|
|
7023
|
-
*/
|
|
7024
|
-
hasStylePropAndMapBindings = 49152,
|
|
7025
|
-
/**
|
|
7026
|
-
* Bit #19 - Whether or not the context contains one or more style-based template bindings.
|
|
7027
|
-
*
|
|
7028
|
-
* Examples include:
|
|
7029
|
-
* 1. `<div [style]="x">`
|
|
7030
|
-
* 2. `<div [style.prop]="x">`
|
|
7031
|
-
*/
|
|
7032
|
-
hasTemplateStyleBindings = 65536,
|
|
7033
|
-
/**
|
|
7034
|
-
* Bit #20 - Whether or not the context contains one or more style-based host bindings.
|
|
7035
|
-
*
|
|
7036
|
-
* Examples include:
|
|
7037
|
-
* 1. `@HostBinding('style') x`
|
|
7038
|
-
* 2. `@HostBinding('style.prop') x`
|
|
7039
|
-
*/
|
|
7040
|
-
hasHostStyleBindings = 131072,
|
|
7041
|
-
/**
|
|
7042
|
-
* Bit #21 - Whether or not there are two or more sources for a style property in the context.
|
|
7043
|
-
*
|
|
7044
|
-
* Examples include:
|
|
7045
|
-
* 1. prop + prop: `<div [style.width]="x" dir-that-sets-width>`
|
|
7046
|
-
* 2. map + prop: `<div [style]="x" [style.prop]>`
|
|
7047
|
-
* 3. map + map: `<div [style]="x" dir-that-sets-style>`
|
|
7048
|
-
*/
|
|
7049
|
-
hasDuplicateStyleBindings = 262144
|
|
7080
|
+
hasHostBindings = 128
|
|
7050
7081
|
}
|
|
7051
7082
|
|
|
7052
7083
|
/**
|
|
@@ -7094,7 +7125,7 @@ declare const enum TNodeType {
|
|
|
7094
7125
|
/**
|
|
7095
7126
|
* Type representing a set of TNodes that can have local refs (`#foo`) placed on them.
|
|
7096
7127
|
*/
|
|
7097
|
-
declare type TNodeWithLocalRefs = TContainerNode | ɵ
|
|
7128
|
+
declare type TNodeWithLocalRefs = TContainerNode | ɵangular_packages_core_core_be | TElementContainerNode;
|
|
7098
7129
|
|
|
7099
7130
|
/** Static data for an LProjectionNode */
|
|
7100
7131
|
declare interface TProjectionNode extends TNode {
|
|
@@ -7105,7 +7136,7 @@ declare interface TProjectionNode extends TNode {
|
|
|
7105
7136
|
* or embedded view (which means their parent is in a different view and must be
|
|
7106
7137
|
* retrieved using LView.node).
|
|
7107
7138
|
*/
|
|
7108
|
-
parent: ɵ
|
|
7139
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
7109
7140
|
tViews: null;
|
|
7110
7141
|
/** Index of the projection node. (See TNode.projection for more info.) */
|
|
7111
7142
|
projection: number;
|
|
@@ -7300,334 +7331,117 @@ export declare const TRANSLATIONS: InjectionToken<string>;
|
|
|
7300
7331
|
export declare const TRANSLATIONS_FORMAT: InjectionToken<string>;
|
|
7301
7332
|
|
|
7302
7333
|
/**
|
|
7303
|
-
*
|
|
7334
|
+
* Value stored in the `TData` which is needed to re-concatenate the styling.
|
|
7304
7335
|
*
|
|
7305
|
-
*
|
|
7306
|
-
|
|
7307
|
-
|
|
7336
|
+
* See: `TStylingKeyPrimitive` and `TStylingStatic`
|
|
7337
|
+
*/
|
|
7338
|
+
declare type TStylingKey = TStylingKeyPrimitive | TStylingStatic;
|
|
7339
|
+
|
|
7340
|
+
/**
|
|
7341
|
+
* The primitive portion (`TStylingStatic` removed) of the value stored in the `TData` which is
|
|
7342
|
+
* needed to re-concatenate the styling.
|
|
7308
7343
|
*
|
|
7309
|
-
*
|
|
7344
|
+
* - `string`: Stores the property name. Used with `ɵɵstyleProp`/`ɵɵclassProp` instruction.
|
|
7345
|
+
* - `null`: Represents map, so there is no name. Used with `ɵɵstyleMap`/`ɵɵclassMap`.
|
|
7346
|
+
* - `false`: Represents an ignore case. This happens when `ɵɵstyleProp`/`ɵɵclassProp` instruction
|
|
7347
|
+
* is combined with directive which shadows its input `@Input('class')`. That way the binding
|
|
7348
|
+
* should not participate in the styling resolution.
|
|
7310
7349
|
*/
|
|
7350
|
+
declare type TStylingKeyPrimitive = string | null | false;
|
|
7351
|
+
|
|
7311
7352
|
/**
|
|
7312
|
-
*
|
|
7313
|
-
* associated with a `TNode`.
|
|
7353
|
+
* This is a branded number which contains previous and next index.
|
|
7314
7354
|
*
|
|
7315
|
-
*
|
|
7316
|
-
*
|
|
7317
|
-
* styling bindings (for components and directives) together into
|
|
7318
|
-
* a single manifest
|
|
7355
|
+
* When we come across styling instructions we need to store the `TStylingKey` in the correct
|
|
7356
|
+
* order so that we can re-concatenate the styling value in the desired priority.
|
|
7319
7357
|
*
|
|
7320
|
-
* The
|
|
7321
|
-
*
|
|
7358
|
+
* The insertion can happen either at the:
|
|
7359
|
+
* - end of template as in the case of coming across additional styling instruction in the template
|
|
7360
|
+
* - in front of the template in the case of coming across additional instruction in the
|
|
7361
|
+
* `hostBindings`.
|
|
7322
7362
|
*
|
|
7323
|
-
*
|
|
7324
|
-
*
|
|
7325
|
-
* tNode.classes = [ ... a context only for classes ... ];
|
|
7326
|
-
* ```
|
|
7363
|
+
* We use `TStylingRange` to store the previous and next index into the `TData` where the template
|
|
7364
|
+
* bindings can be found.
|
|
7327
7365
|
*
|
|
7328
|
-
*
|
|
7329
|
-
*
|
|
7330
|
-
*
|
|
7366
|
+
* - bit 0 is used to mark that the previous index has a duplicate for current value.
|
|
7367
|
+
* - bit 1 is used to mark that the next index has a duplicate for the current value.
|
|
7368
|
+
* - bits 2-16 are used to encode the next/tail of the template.
|
|
7369
|
+
* - bits 17-32 are used to encode the previous/head of template.
|
|
7331
7370
|
*
|
|
7332
|
-
*
|
|
7371
|
+
* NODE: *duplicate* false implies that it is statically known that this binding will not collide
|
|
7372
|
+
* with other bindings and therefore there is no need to check other bindings. For example the
|
|
7373
|
+
* bindings in `<div [style.color]="exp" [style.width]="exp">` will never collide and will have
|
|
7374
|
+
* their bits set accordingly. Previous duplicate means that we may need to check previous if the
|
|
7375
|
+
* current binding is `null`. Next duplicate means that we may need to check next bindings if the
|
|
7376
|
+
* current binding is not `null`.
|
|
7333
7377
|
*
|
|
7334
|
-
*
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
*
|
|
7342
|
-
* styling-related is active on an element. They are first created from
|
|
7343
|
-
* from the any of the element-level instructions (e.g. `element`,
|
|
7344
|
-
* `elementStart`, `elementHostAttrs`). When any static style/class
|
|
7345
|
-
* values are encountered they are registered on the `tNode.styles`
|
|
7346
|
-
* and `tNode.classes` data-structures. By default (when any static
|
|
7347
|
-
* values are encountered) the `tNode.styles` or `tNode.classes` values
|
|
7348
|
-
* are instances of a `StylingMapArray`. Only when style/class bindings
|
|
7349
|
-
* are detected then that styling map is converted into an instance of
|
|
7350
|
-
* `TStylingContext`.
|
|
7351
|
-
*
|
|
7352
|
-
* Due to the fact the the `TStylingContext` is stored on a `TNode`
|
|
7353
|
-
* this means that all data within the context is static. Instead of
|
|
7354
|
-
* storing actual styling binding values, the lView binding index values
|
|
7355
|
-
* are stored within the context. (static nature means it is more compact.)
|
|
7356
|
-
*
|
|
7357
|
-
* The code below shows a breakdown of two instances of `TStylingContext`
|
|
7358
|
-
* (one for `tNode.styles` and another for `tNode.classes`):
|
|
7378
|
+
* NOTE: `0` has special significance and represents `null` as in no additional pointer.
|
|
7379
|
+
*/
|
|
7380
|
+
declare interface TStylingRange {
|
|
7381
|
+
__brand__: 'TStylingRange';
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
/**
|
|
7385
|
+
* Store the static values for the styling binding.
|
|
7359
7386
|
*
|
|
7360
|
-
*
|
|
7361
|
-
*
|
|
7362
|
-
*
|
|
7363
|
-
* // [style.height]="y"> // lView binding index = 22
|
|
7364
|
-
* // ...
|
|
7365
|
-
* // </div>
|
|
7366
|
-
* tNode.styles = [
|
|
7367
|
-
* 1, // the total amount of sources present (only `1` b/c there are only template
|
|
7368
|
-
* bindings)
|
|
7369
|
-
* [null], // initial values array (an instance of `StylingMapArray`)
|
|
7370
|
-
*
|
|
7371
|
-
* 0, // config entry for the property (see `TStylingContextPropConfigFlags`)
|
|
7372
|
-
* 0b010, // template guard mask for height
|
|
7373
|
-
* 0, // host bindings guard mask for height
|
|
7374
|
-
* 'height', // the property name
|
|
7375
|
-
* 22, // the binding location for the "y" binding in the lView
|
|
7376
|
-
* null, // the default value for height
|
|
7377
|
-
*
|
|
7378
|
-
* 0, // config entry for the property (see `TStylingContextPropConfigFlags`)
|
|
7379
|
-
* 0b001, // template guard mask for width
|
|
7380
|
-
* 0, // host bindings guard mask for width
|
|
7381
|
-
* 'width', // the property name
|
|
7382
|
-
* 21, // the binding location for the "x" binding in the lView
|
|
7383
|
-
* null, // the default value for width
|
|
7384
|
-
* ];
|
|
7387
|
+
* The `TStylingStatic` is just `KeyValueArray` where key `""` (stored at location 0) contains the
|
|
7388
|
+
* `TStylingKey` (stored at location 1). In other words this wraps the `TStylingKey` such that the
|
|
7389
|
+
* `""` contains the wrapped value.
|
|
7385
7390
|
*
|
|
7386
|
-
*
|
|
7387
|
-
*
|
|
7388
|
-
*
|
|
7389
|
-
*
|
|
7390
|
-
*
|
|
7391
|
-
*
|
|
7392
|
-
* 0, // config entry for the property (see `TStylingContextPropConfigFlags`)
|
|
7393
|
-
* 0b001, // template guard mask for width
|
|
7394
|
-
* 0, // host bindings guard mask for width
|
|
7395
|
-
* 'active', // the property name
|
|
7396
|
-
* 20, // the binding location for the "c" binding in the lView
|
|
7397
|
-
* null, // the default value for the `active` class
|
|
7398
|
-
* ];
|
|
7399
|
-
* ```
|
|
7391
|
+
* When instructions are resolving styling they may need to look forward or backwards in the linked
|
|
7392
|
+
* list to resolve the value. For this reason we have to make sure that he linked list also contains
|
|
7393
|
+
* the static values. However the list only has space for one item per styling instruction. For this
|
|
7394
|
+
* reason we store the static values here as part of the `TStylingKey`. This means that the
|
|
7395
|
+
* resolution function when looking for a value needs to first look at the binding value, and than
|
|
7396
|
+
* at `TStylingKey` (if it exists).
|
|
7400
7397
|
*
|
|
7401
|
-
*
|
|
7402
|
-
* styling context is as follows:
|
|
7398
|
+
* Imagine we have:
|
|
7403
7399
|
*
|
|
7404
|
-
* ```typescript
|
|
7405
|
-
* context = [
|
|
7406
|
-
* //...
|
|
7407
|
-
* configValue,
|
|
7408
|
-
* templateGuardMask,
|
|
7409
|
-
* hostBindingsGuardMask,
|
|
7410
|
-
* propName,
|
|
7411
|
-
* ...bindingIndices...,
|
|
7412
|
-
* defaultValue
|
|
7413
|
-
* //...
|
|
7414
|
-
* ];
|
|
7415
7400
|
* ```
|
|
7401
|
+
* <div class="TEMPLATE" my-dir>
|
|
7416
7402
|
*
|
|
7417
|
-
*
|
|
7418
|
-
*
|
|
7419
|
-
*
|
|
7420
|
-
*
|
|
7421
|
-
* that is implemented right now is whether or not to sanitize the
|
|
7422
|
-
* value.
|
|
7423
|
-
*
|
|
7424
|
-
* - **templateGuardMask**:
|
|
7425
|
-
* A numeric value where each bit represents a binding index
|
|
7426
|
-
* location. Each binding index location is assigned based on
|
|
7427
|
-
* a local counter value that increments each time an instruction
|
|
7428
|
-
* is called:
|
|
7429
|
-
*
|
|
7430
|
-
* ```
|
|
7431
|
-
* <div [style.width]="x" // binding index = 21 (counter index = 0)
|
|
7432
|
-
* [style.height]="y"> // binding index = 22 (counter index = 1)
|
|
7433
|
-
* ```
|
|
7434
|
-
*
|
|
7435
|
-
* In the example code above, if the `width` value where to change
|
|
7436
|
-
* then the first bit in the local bit mask value would be flipped
|
|
7437
|
-
* (and the second bit for when `height`).
|
|
7438
|
-
*
|
|
7439
|
-
* If and when there are more than 32 binding sources in the context
|
|
7440
|
-
* (more than 32 `[style/class]` bindings) then the bit masking will
|
|
7441
|
-
* overflow and we are left with a situation where a `-1` value will
|
|
7442
|
-
* represent the bit mask. Due to the way that JavaScript handles
|
|
7443
|
-
* negative values, when the bit mask is `-1` then all bits within
|
|
7444
|
-
* that value will be automatically flipped (this is a quick and
|
|
7445
|
-
* efficient way to flip all bits on the mask when a special kind
|
|
7446
|
-
* of caching scenario occurs or when there are more than 32 bindings).
|
|
7447
|
-
*
|
|
7448
|
-
* - **hostBindingsGuardMask**:
|
|
7449
|
-
* Another instance of a guard mask that is specific to host bindings.
|
|
7450
|
-
* This behaves exactly the same way as does the `templateGuardMask`,
|
|
7451
|
-
* but will not contain any binding information processed in the template.
|
|
7452
|
-
* The reason why there are two instances of guard masks (one for the
|
|
7453
|
-
* template and another for host bindings) is because the template bindings
|
|
7454
|
-
* are processed before host bindings and the state information is not
|
|
7455
|
-
* carried over into the host bindings code. As soon as host bindings are
|
|
7456
|
-
* processed for an element the counter and state-based bit mask values are
|
|
7457
|
-
* set to `0`.
|
|
7458
|
-
*
|
|
7459
|
-
* ```
|
|
7460
|
-
* <div [style.width]="x" // binding index = 21 (counter index = 0)
|
|
7461
|
-
* [style.height]="y" // binding index = 22 (counter index = 1)
|
|
7462
|
-
* dir-that-sets-width // binding index = 30 (counter index = 0)
|
|
7463
|
-
* dir-that-sets-width> // binding index = 31 (counter index = 1)
|
|
7464
|
-
* ```
|
|
7465
|
-
*
|
|
7466
|
-
* - **propName**:
|
|
7467
|
-
* The CSS property name or class name (e.g `width` or `active`).
|
|
7468
|
-
*
|
|
7469
|
-
* - **bindingIndices...**:
|
|
7470
|
-
* A series of numeric binding values that reflect where in the
|
|
7471
|
-
* lView to find the style/class values associated with the property.
|
|
7472
|
-
* Each value is in order in terms of priority (templates are first,
|
|
7473
|
-
* then directives and then components). When the context is flushed
|
|
7474
|
-
* and the style/class values are applied to the element (this happens
|
|
7475
|
-
* inside of the `stylingApply` instruction) then the flushing code
|
|
7476
|
-
* will keep checking each binding index against the associated lView
|
|
7477
|
-
* to find the first style/class value that is non-null.
|
|
7478
|
-
*
|
|
7479
|
-
* - **defaultValue**:
|
|
7480
|
-
* This is the default that will always be applied to the element if
|
|
7481
|
-
* and when all other binding sources return a result that is null.
|
|
7482
|
-
* Usually this value is `null` but it can also be a static value that
|
|
7483
|
-
* is intercepted when the tNode is first constructured (e.g.
|
|
7484
|
-
* `<div style="width:200px">` has a default value of `200px` for
|
|
7485
|
-
* the `width` property).
|
|
7486
|
-
*
|
|
7487
|
-
* Each time a new binding is encountered it is registered into the
|
|
7488
|
-
* context. The context then is continually updated until the first
|
|
7489
|
-
* styling apply call has been called (which is automatically scheduled
|
|
7490
|
-
* to be called once an element exits during change detection). Note that
|
|
7491
|
-
* each entry in the context is stored in alphabetical order.
|
|
7492
|
-
*
|
|
7493
|
-
* Once styling has been flushed for the first time for an element the
|
|
7494
|
-
* context will set as locked (this prevents bindings from being added
|
|
7495
|
-
* to the context later on).
|
|
7496
|
-
*
|
|
7497
|
-
* # How Styles/Classes are Rendered
|
|
7498
|
-
* Each time a styling instruction (e.g. `[class.name]`, `[style.prop]`,
|
|
7499
|
-
* etc...) is executed, the associated `lView` for the view is updated
|
|
7500
|
-
* at the current binding location. Also, when this happens, a local
|
|
7501
|
-
* counter value is incremented. If the binding value has changed then
|
|
7502
|
-
* a local `bitMask` variable is updated with the specific bit based
|
|
7503
|
-
* on the counter value.
|
|
7504
|
-
*
|
|
7505
|
-
* Below is a lightweight example of what happens when a single style
|
|
7506
|
-
* property is updated (i.e. `<div [style.prop]="val">`):
|
|
7507
|
-
*
|
|
7508
|
-
* ```typescript
|
|
7509
|
-
* function updateStyleProp(prop: string, value: string) {
|
|
7510
|
-
* const lView = getLView();
|
|
7511
|
-
* const bindingIndex = BINDING_INDEX++;
|
|
7512
|
-
*
|
|
7513
|
-
* // update the local counter value
|
|
7514
|
-
* const indexForStyle = stylingState.stylesCount++;
|
|
7515
|
-
* if (lView[bindingIndex] !== value) {
|
|
7516
|
-
* lView[bindingIndex] = value;
|
|
7517
|
-
*
|
|
7518
|
-
* // tell the local state that we have updated a style value
|
|
7519
|
-
* // by updating the bit mask
|
|
7520
|
-
* stylingState.bitMaskForStyles |= 1 << indexForStyle;
|
|
7403
|
+
* @Directive({
|
|
7404
|
+
* host: {
|
|
7405
|
+
* class: 'DIR',
|
|
7406
|
+
* '[class.dynamic]': 'exp' // ɵɵclassProp('dynamic', ctx.exp);
|
|
7521
7407
|
* }
|
|
7522
|
-
* }
|
|
7408
|
+
* })
|
|
7523
7409
|
* ```
|
|
7524
7410
|
*
|
|
7525
|
-
*
|
|
7526
|
-
* This `bitMask` value is used in the apply algorithm (which is called
|
|
7527
|
-
* context resolution).
|
|
7528
|
-
*
|
|
7529
|
-
* ## The Apply Algorithm (Context Resolution)
|
|
7530
|
-
* As explained above, each time a binding updates its value, the resulting
|
|
7531
|
-
* value is stored in the `lView` array. These styling values have yet to
|
|
7532
|
-
* be flushed to the element.
|
|
7533
|
-
*
|
|
7534
|
-
* Once all the styling instructions have been evaluated, then the styling
|
|
7535
|
-
* context(s) are flushed to the element. When this happens, the context will
|
|
7536
|
-
* be iterated over (property by property) and each binding source will be
|
|
7537
|
-
* examined and the first non-null value will be applied to the element.
|
|
7411
|
+
* In the above case the linked list will contain one item:
|
|
7538
7412
|
*
|
|
7539
|
-
* Let's say that we the following template code:
|
|
7540
|
-
*
|
|
7541
|
-
* ```html
|
|
7542
|
-
* <div [style.width]="w1" dir-that-set-width="w2"></div>
|
|
7543
7413
|
* ```
|
|
7414
|
+
* // assume binding location: 10 for `ɵɵclassProp('dynamic', ctx.exp);`
|
|
7415
|
+
* tData[10] = <TStylingStatic>[
|
|
7416
|
+
* '': 'dynamic', // This is the wrapped value of `TStylingKey`
|
|
7417
|
+
* 'DIR': true, // This is the default static value of directive binding.
|
|
7418
|
+
* ];
|
|
7419
|
+
* tData[10 + 1] = 0; // We don't have prev/next.
|
|
7544
7420
|
*
|
|
7545
|
-
*
|
|
7546
|
-
*
|
|
7547
|
-
*
|
|
7548
|
-
* to the element.
|
|
7549
|
-
*
|
|
7550
|
-
* In order to figure out which value to apply, the following
|
|
7551
|
-
* binding prioritization is adhered to:
|
|
7552
|
-
*
|
|
7553
|
-
* 1. First template-level styling bindings are applied (if present).
|
|
7554
|
-
* This includes things like `[style.width]` and `[class.active]`.
|
|
7555
|
-
*
|
|
7556
|
-
* 2. Second are styling-level host bindings present in directives.
|
|
7557
|
-
* (if there are sub/super directives present then the sub directives
|
|
7558
|
-
* are applied first).
|
|
7559
|
-
*
|
|
7560
|
-
* 3. Third are styling-level host bindings present in components.
|
|
7561
|
-
* (if there are sub/super components present then the sub directives
|
|
7562
|
-
* are applied first).
|
|
7563
|
-
*
|
|
7564
|
-
* This means that in the code above the styling binding present in the
|
|
7565
|
-
* template is applied first and, only if its falsy, then the directive
|
|
7566
|
-
* styling binding for width will be applied.
|
|
7567
|
-
*
|
|
7568
|
-
* ### What about map-based styling bindings?
|
|
7569
|
-
* Map-based styling bindings are activated when there are one or more
|
|
7570
|
-
* `[style]` and/or `[class]` bindings present on an element. When this
|
|
7571
|
-
* code is activated, the apply algorithm will iterate over each map
|
|
7572
|
-
* entry and apply each styling value to the element with the same
|
|
7573
|
-
* prioritization rules as above.
|
|
7574
|
-
*
|
|
7575
|
-
* For the algorithm to apply styling values efficiently, the
|
|
7576
|
-
* styling map entries must be applied in sync (property by property)
|
|
7577
|
-
* with prop-based bindings. (The map-based algorithm is described
|
|
7578
|
-
* more inside of the `render3/styling/map_based_bindings.ts` file.)
|
|
7579
|
-
*
|
|
7580
|
-
* ## Sanitization
|
|
7581
|
-
* Sanitization is used to prevent invalid style values from being applied to
|
|
7582
|
-
* the element.
|
|
7583
|
-
*
|
|
7584
|
-
* It is enabled in two cases:
|
|
7585
|
-
*
|
|
7586
|
-
* 1. The `styleSanitizer(sanitizerFn)` instruction was called (just before any other
|
|
7587
|
-
* styling instructions are run).
|
|
7588
|
-
*
|
|
7589
|
-
* 2. The component/directive `LView` instance has a sanitizer object attached to it
|
|
7590
|
-
* (this happens when `renderComponent` is executed with a `sanitizer` value or
|
|
7591
|
-
* if the ngModule contains a sanitizer provider attached to it).
|
|
7592
|
-
*
|
|
7593
|
-
* If and when sanitization is active then all property/value entries will be evaluated
|
|
7594
|
-
* through the active sanitizer before they are applied to the element (or the styling
|
|
7595
|
-
* debug handler).
|
|
7596
|
-
*
|
|
7597
|
-
* If a `Sanitizer` object is used (via the `LView[SANITIZER]` value) then that object
|
|
7598
|
-
* will be used for every property.
|
|
7599
|
-
*
|
|
7600
|
-
* If a `StyleSanitizerFn` function is used (via the `styleSanitizer`) then it will be
|
|
7601
|
-
* called in two ways:
|
|
7421
|
+
* lView[10] = undefined; // assume `ctx.exp` is `undefined`
|
|
7422
|
+
* lView[10 + 1] = undefined; // Just normalized `lView[10]`
|
|
7423
|
+
* ```
|
|
7602
7424
|
*
|
|
7603
|
-
*
|
|
7604
|
-
*
|
|
7425
|
+
* So when the function is resolving styling value, it first needs to look into the linked list
|
|
7426
|
+
* (there is none) and than into the static `TStylingStatic` too see if there is a default value for
|
|
7427
|
+
* `dynamic` (there is not). Therefore it is safe to remove it.
|
|
7605
7428
|
*
|
|
7606
|
-
*
|
|
7607
|
-
*
|
|
7429
|
+
* If setting `true` case:
|
|
7430
|
+
* ```
|
|
7431
|
+
* lView[10] = true; // assume `ctx.exp` is `true`
|
|
7432
|
+
* lView[10 + 1] = true; // Just normalized `lView[10]`
|
|
7433
|
+
* ```
|
|
7434
|
+
* So when the function is resolving styling value, it first needs to look into the linked list
|
|
7435
|
+
* (there is none) and than into `TNode.residualClass` (TNode.residualStyle) which contains
|
|
7436
|
+
* ```
|
|
7437
|
+
* tNode.residualClass = [
|
|
7438
|
+
* 'TEMPLATE': true,
|
|
7439
|
+
* ];
|
|
7440
|
+
* ```
|
|
7608
7441
|
*
|
|
7609
|
-
*
|
|
7610
|
-
* to the element.
|
|
7442
|
+
* This means that it is safe to add class.
|
|
7611
7443
|
*/
|
|
7612
|
-
declare interface
|
|
7613
|
-
/** The total amount of sources present in the context */
|
|
7614
|
-
[TStylingContextIndex.TotalSourcesPosition]: number;
|
|
7615
|
-
/** Initial value position for static styles */
|
|
7616
|
-
[TStylingContextIndex.InitialStylingValuePosition]: StylingMapArray;
|
|
7617
|
-
}
|
|
7618
|
-
|
|
7619
|
-
/**
|
|
7620
|
-
* An index of position and offset values used to navigate the `TStylingContext`.
|
|
7621
|
-
*/
|
|
7622
|
-
declare const enum TStylingContextIndex {
|
|
7623
|
-
TotalSourcesPosition = 0,
|
|
7624
|
-
InitialStylingValuePosition = 1,
|
|
7625
|
-
ValuesStartPosition = 2,
|
|
7626
|
-
ConfigOffset = 0,
|
|
7627
|
-
TemplateBitGuardOffset = 1,
|
|
7628
|
-
HostBindingsBitGuardOffset = 2,
|
|
7629
|
-
PropOffset = 3,
|
|
7630
|
-
BindingsStartOffset = 4
|
|
7444
|
+
declare interface TStylingStatic extends KeyValueArray<any> {
|
|
7631
7445
|
}
|
|
7632
7446
|
|
|
7633
7447
|
/** Static data for a text node */
|
|
@@ -7640,7 +7454,7 @@ declare interface TTextNode extends TNode {
|
|
|
7640
7454
|
* embedded view (which means their parent is in a different view and must be
|
|
7641
7455
|
* retrieved using LView.node).
|
|
7642
7456
|
*/
|
|
7643
|
-
parent: ɵ
|
|
7457
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
7644
7458
|
tViews: null;
|
|
7645
7459
|
projection: null;
|
|
7646
7460
|
}
|
|
@@ -7670,7 +7484,7 @@ declare interface TView {
|
|
|
7670
7484
|
* This is a blueprint used to generate LView instances for this TView. Copying this
|
|
7671
7485
|
* blueprint is faster than creating a new LView from scratch.
|
|
7672
7486
|
*/
|
|
7673
|
-
blueprint: ɵ
|
|
7487
|
+
blueprint: ɵangular_packages_core_core_bo;
|
|
7674
7488
|
/**
|
|
7675
7489
|
* The template function used to refresh the view of dynamically created views
|
|
7676
7490
|
* and components. Will be null for inline views.
|
|
@@ -7695,10 +7509,20 @@ declare interface TView {
|
|
|
7695
7509
|
* different host TNodes, depending on where the component is being used. These host
|
|
7696
7510
|
* TNodes cannot be shared (due to different indices, etc).
|
|
7697
7511
|
*/
|
|
7698
|
-
node: TViewNode | ɵ
|
|
7512
|
+
node: TViewNode | ɵangular_packages_core_core_be | null;
|
|
7699
7513
|
/** Whether or not this template has been processed in creation mode. */
|
|
7700
7514
|
firstCreatePass: boolean;
|
|
7701
|
-
/**
|
|
7515
|
+
/**
|
|
7516
|
+
* Whether or not this template has been processed in update mode (e.g. change detected)
|
|
7517
|
+
*
|
|
7518
|
+
* `firstUpdatePass` is used by styling to set up `TData` to contain metadata about the styling
|
|
7519
|
+
* instructions. (Mainly to build up a linked list of styling priority order.)
|
|
7520
|
+
*
|
|
7521
|
+
* Typically this function gets cleared after first execution. If exception is thrown then this
|
|
7522
|
+
* flag can remain turned un until there is first successful (no exception) pass. This means that
|
|
7523
|
+
* individual styling instructions keep track of if they have already been added to the linked
|
|
7524
|
+
* list to prevent double adding.
|
|
7525
|
+
*/
|
|
7702
7526
|
firstUpdatePass: boolean;
|
|
7703
7527
|
/** Static data equivalent of LView.data[]. Contains TNodes, PipeDefInternal or TI18n. */
|
|
7704
7528
|
data: TData;
|
|
@@ -7881,7 +7705,7 @@ declare interface TView {
|
|
|
7881
7705
|
declare interface TViewNode extends TNode {
|
|
7882
7706
|
/** If -1, it's a dynamically created view. Otherwise, it is the view block ID. */
|
|
7883
7707
|
index: number;
|
|
7884
|
-
child: ɵ
|
|
7708
|
+
child: ɵangular_packages_core_core_be | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
|
7885
7709
|
parent: TContainerNode | null;
|
|
7886
7710
|
tViews: null;
|
|
7887
7711
|
projection: null;
|
|
@@ -8189,13 +8013,13 @@ export declare abstract class ViewContainerRef {
|
|
|
8189
8013
|
*
|
|
8190
8014
|
* <!-- TODO: rename to anchorElement -->
|
|
8191
8015
|
*/
|
|
8192
|
-
abstract
|
|
8016
|
+
abstract get element(): ElementRef;
|
|
8193
8017
|
/**
|
|
8194
8018
|
* The [dependency injector](guide/glossary#injector) for this view container.
|
|
8195
8019
|
*/
|
|
8196
|
-
abstract
|
|
8020
|
+
abstract get injector(): Injector;
|
|
8197
8021
|
/** @deprecated No replacement */
|
|
8198
|
-
abstract
|
|
8022
|
+
abstract get parentInjector(): Injector;
|
|
8199
8023
|
/**
|
|
8200
8024
|
* Destroys all views in this container.
|
|
8201
8025
|
*/
|
|
@@ -8210,7 +8034,7 @@ export declare abstract class ViewContainerRef {
|
|
|
8210
8034
|
* Reports how many views are currently attached to this container.
|
|
8211
8035
|
* @returns The number of views.
|
|
8212
8036
|
*/
|
|
8213
|
-
abstract
|
|
8037
|
+
abstract get length(): number;
|
|
8214
8038
|
/**
|
|
8215
8039
|
* Instantiates an embedded view and inserts it
|
|
8216
8040
|
* into this container.
|
|
@@ -8375,7 +8199,7 @@ export declare abstract class ViewRef extends ChangeDetectorRef {
|
|
|
8375
8199
|
* Reports whether this view has been destroyed.
|
|
8376
8200
|
* @returns True after the `destroy()` method has been called, false otherwise.
|
|
8377
8201
|
*/
|
|
8378
|
-
abstract
|
|
8202
|
+
abstract get destroyed(): boolean;
|
|
8379
8203
|
/**
|
|
8380
8204
|
* A lifecycle hook that provides additional developer-defined cleanup
|
|
8381
8205
|
* functionality for views.
|
|
@@ -8395,7 +8219,7 @@ declare class ViewRef_2<T> implements EmbeddedViewRef<T>, InternalViewRef, viewE
|
|
|
8395
8219
|
private _cdRefInjectingView?;
|
|
8396
8220
|
private _appRef;
|
|
8397
8221
|
private _viewContainerRef;
|
|
8398
|
-
|
|
8222
|
+
get rootNodes(): any[];
|
|
8399
8223
|
constructor(
|
|
8400
8224
|
/**
|
|
8401
8225
|
* This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.
|
|
@@ -8408,16 +8232,16 @@ declare class ViewRef_2<T> implements EmbeddedViewRef<T>, InternalViewRef, viewE
|
|
|
8408
8232
|
*
|
|
8409
8233
|
* @internal
|
|
8410
8234
|
*/
|
|
8411
|
-
_lView: ɵ
|
|
8235
|
+
_lView: ɵangular_packages_core_core_bo,
|
|
8412
8236
|
/**
|
|
8413
8237
|
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
8414
8238
|
* requested.
|
|
8415
8239
|
*
|
|
8416
8240
|
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
8417
8241
|
*/
|
|
8418
|
-
_cdRefInjectingView?: ɵ
|
|
8419
|
-
|
|
8420
|
-
|
|
8242
|
+
_cdRefInjectingView?: ɵangular_packages_core_core_bo | undefined);
|
|
8243
|
+
get context(): T;
|
|
8244
|
+
get destroyed(): boolean;
|
|
8421
8245
|
destroy(): void;
|
|
8422
8246
|
onDestroy(callback: Function): void;
|
|
8423
8247
|
/**
|
|
@@ -8699,19 +8523,28 @@ export declare function ɵangular_packages_core_core_b<T>(token: Type<T> | Injec
|
|
|
8699
8523
|
|
|
8700
8524
|
export declare function ɵangular_packages_core_core_b<T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T | null;
|
|
8701
8525
|
|
|
8702
|
-
|
|
8526
|
+
/**
|
|
8527
|
+
* Return the current `LView`.
|
|
8528
|
+
*/
|
|
8529
|
+
export declare function ɵangular_packages_core_core_ba(): ɵangular_packages_core_core_bo;
|
|
8530
|
+
|
|
8531
|
+
export declare function ɵangular_packages_core_core_bb(): TNode;
|
|
8532
|
+
|
|
8533
|
+
export declare function ɵangular_packages_core_core_bc(): number;
|
|
8534
|
+
|
|
8535
|
+
export declare function ɵangular_packages_core_core_bd<T = any>(level: number): T;
|
|
8703
8536
|
|
|
8704
8537
|
/** Static data for an element */
|
|
8705
|
-
export declare interface ɵ
|
|
8538
|
+
export declare interface ɵangular_packages_core_core_be extends TNode {
|
|
8706
8539
|
/** Index in the data[] array */
|
|
8707
8540
|
index: number;
|
|
8708
|
-
child: ɵ
|
|
8541
|
+
child: ɵangular_packages_core_core_be | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
|
8709
8542
|
/**
|
|
8710
8543
|
* Element nodes will have parents unless they are the first node of a component or
|
|
8711
8544
|
* embedded view (which means their parent is in a different view and must be
|
|
8712
8545
|
* retrieved using viewData[HOST_NODE]).
|
|
8713
8546
|
*/
|
|
8714
|
-
parent: ɵ
|
|
8547
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
8715
8548
|
tViews: null;
|
|
8716
8549
|
/**
|
|
8717
8550
|
* If this is a component TNode with projection, this will be an array of projected
|
|
@@ -8721,6 +8554,86 @@ export declare interface ɵangular_packages_core_core_bb extends TNode {
|
|
|
8721
8554
|
projection: (TNode | RNode[])[] | null;
|
|
8722
8555
|
}
|
|
8723
8556
|
|
|
8557
|
+
/**
|
|
8558
|
+
* If the value of the provided exp has changed, calls the pure function to return
|
|
8559
|
+
* an updated value. Or if the value has not changed, returns cached value.
|
|
8560
|
+
*
|
|
8561
|
+
* @param lView LView in which the function is being executed.
|
|
8562
|
+
* @param bindingRoot Binding root index.
|
|
8563
|
+
* @param slotOffset the offset from binding root to the reserved slot
|
|
8564
|
+
* @param pureFn Function that returns an updated value
|
|
8565
|
+
* @param exp Updated expression value
|
|
8566
|
+
* @param thisArg Optional calling context of pureFn
|
|
8567
|
+
* @returns Updated or cached value
|
|
8568
|
+
*/
|
|
8569
|
+
export declare function ɵangular_packages_core_core_bf(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v: any) => any, exp: any, thisArg?: any): any;
|
|
8570
|
+
|
|
8571
|
+
/**
|
|
8572
|
+
* If the value of any provided exp has changed, calls the pure function to return
|
|
8573
|
+
* an updated value. Or if no values have changed, returns cached value.
|
|
8574
|
+
*
|
|
8575
|
+
* @param lView LView in which the function is being executed.
|
|
8576
|
+
* @param bindingRoot Binding root index.
|
|
8577
|
+
* @param slotOffset the offset from binding root to the reserved slot
|
|
8578
|
+
* @param pureFn
|
|
8579
|
+
* @param exp1
|
|
8580
|
+
* @param exp2
|
|
8581
|
+
* @param thisArg Optional calling context of pureFn
|
|
8582
|
+
* @returns Updated or cached value
|
|
8583
|
+
*/
|
|
8584
|
+
export declare function ɵangular_packages_core_core_bg(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any) => any, exp1: any, exp2: any, thisArg?: any): any;
|
|
8585
|
+
|
|
8586
|
+
/**
|
|
8587
|
+
* If the value of any provided exp has changed, calls the pure function to return
|
|
8588
|
+
* an updated value. Or if no values have changed, returns cached value.
|
|
8589
|
+
*
|
|
8590
|
+
* @param lView LView in which the function is being executed.
|
|
8591
|
+
* @param bindingRoot Binding root index.
|
|
8592
|
+
* @param slotOffset the offset from binding root to the reserved slot
|
|
8593
|
+
* @param pureFn
|
|
8594
|
+
* @param exp1
|
|
8595
|
+
* @param exp2
|
|
8596
|
+
* @param exp3
|
|
8597
|
+
* @param thisArg Optional calling context of pureFn
|
|
8598
|
+
* @returns Updated or cached value
|
|
8599
|
+
*/
|
|
8600
|
+
export declare function ɵangular_packages_core_core_bh(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any, v3: any) => any, exp1: any, exp2: any, exp3: any, thisArg?: any): any;
|
|
8601
|
+
|
|
8602
|
+
/**
|
|
8603
|
+
* If the value of any provided exp has changed, calls the pure function to return
|
|
8604
|
+
* an updated value. Or if no values have changed, returns cached value.
|
|
8605
|
+
*
|
|
8606
|
+
* @param lView LView in which the function is being executed.
|
|
8607
|
+
* @param bindingRoot Binding root index.
|
|
8608
|
+
* @param slotOffset the offset from binding root to the reserved slot
|
|
8609
|
+
* @param pureFn
|
|
8610
|
+
* @param exp1
|
|
8611
|
+
* @param exp2
|
|
8612
|
+
* @param exp3
|
|
8613
|
+
* @param exp4
|
|
8614
|
+
* @param thisArg Optional calling context of pureFn
|
|
8615
|
+
* @returns Updated or cached value
|
|
8616
|
+
*
|
|
8617
|
+
*/
|
|
8618
|
+
export declare function ɵangular_packages_core_core_bi(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, thisArg?: any): any;
|
|
8619
|
+
|
|
8620
|
+
/**
|
|
8621
|
+
* pureFunction instruction that can support any number of bindings.
|
|
8622
|
+
*
|
|
8623
|
+
* If the value of any provided exp has changed, calls the pure function to return
|
|
8624
|
+
* an updated value. Or if no values have changed, returns cached value.
|
|
8625
|
+
*
|
|
8626
|
+
* @param lView LView in which the function is being executed.
|
|
8627
|
+
* @param bindingRoot Binding root index.
|
|
8628
|
+
* @param slotOffset the offset from binding root to the reserved slot
|
|
8629
|
+
* @param pureFn A pure function that takes binding values and builds an object or array
|
|
8630
|
+
* containing those values.
|
|
8631
|
+
* @param exps An array of binding values
|
|
8632
|
+
* @param thisArg Optional calling context of pureFn
|
|
8633
|
+
* @returns Updated or cached value
|
|
8634
|
+
*/
|
|
8635
|
+
export declare function ɵangular_packages_core_core_bj(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (...v: any[]) => any, exps: any[], thisArg?: any): any;
|
|
8636
|
+
|
|
8724
8637
|
/**
|
|
8725
8638
|
* Detects which sanitizer to use for URL property, based on tag name and prop name.
|
|
8726
8639
|
*
|
|
@@ -8728,14 +8641,14 @@ export declare interface ɵangular_packages_core_core_bb extends TNode {
|
|
|
8728
8641
|
* `packages/compiler/src/schema/dom_security_schema.ts`.
|
|
8729
8642
|
* If tag and prop names don't match Resource URL schema, use URL sanitizer.
|
|
8730
8643
|
*/
|
|
8731
|
-
export declare function ɵ
|
|
8644
|
+
export declare function ɵangular_packages_core_core_bk(tag: string, prop: string): typeof ɵɵsanitizeResourceUrl;
|
|
8732
8645
|
|
|
8733
|
-
export declare function ɵ
|
|
8646
|
+
export declare function ɵangular_packages_core_core_bl(name: string, props?: (...args: any[]) => any, parentClass?: any): any;
|
|
8734
8647
|
|
|
8735
|
-
export declare function ɵ
|
|
8648
|
+
export declare function ɵangular_packages_core_core_bm(name: string, props?: (...args: any[]) => any, parentClass?: any, additionalProcessing?: (target: any, name: string, ...args: any[]) => void): any;
|
|
8736
8649
|
|
|
8737
8650
|
|
|
8738
|
-
export declare function ɵ
|
|
8651
|
+
export declare function ɵangular_packages_core_core_bn<T>(objWithPropertyToExtract: T): string;
|
|
8739
8652
|
|
|
8740
8653
|
/**
|
|
8741
8654
|
* `LView` stores all of the information needed to process the instructions as
|
|
@@ -8747,7 +8660,7 @@ export declare function ɵangular_packages_core_core_bf<T>(objWithPropertyToExtr
|
|
|
8747
8660
|
* Keeping separate state for each view facilities view insertion / deletion, so we
|
|
8748
8661
|
* don't have to edit the data array based on which views are present.
|
|
8749
8662
|
*/
|
|
8750
|
-
export declare interface ɵ
|
|
8663
|
+
export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
8751
8664
|
/**
|
|
8752
8665
|
* The host node for this LView instance, if this is a component view.
|
|
8753
8666
|
* If this is an embedded view, HOST will be null.
|
|
@@ -8770,7 +8683,7 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8770
8683
|
*
|
|
8771
8684
|
* `LContainer` - The current view is part of a container, and is an embedded view.
|
|
8772
8685
|
*/
|
|
8773
|
-
[PARENT]: ɵ
|
|
8686
|
+
[PARENT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
8774
8687
|
/**
|
|
8775
8688
|
*
|
|
8776
8689
|
* The next sibling LView or LContainer.
|
|
@@ -8780,7 +8693,7 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8780
8693
|
* views in the same container. We need a way to link component views and views
|
|
8781
8694
|
* across containers as well.
|
|
8782
8695
|
*/
|
|
8783
|
-
[NEXT]: ɵ
|
|
8696
|
+
[NEXT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
8784
8697
|
/** Queries active for this view - nodes from a view are reported to those queries. */
|
|
8785
8698
|
[QUERIES]: LQueries | null;
|
|
8786
8699
|
/**
|
|
@@ -8793,7 +8706,7 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8793
8706
|
*
|
|
8794
8707
|
* If null, this is the root view of an application (root component is in this view).
|
|
8795
8708
|
*/
|
|
8796
|
-
[T_HOST]: TViewNode | ɵ
|
|
8709
|
+
[T_HOST]: TViewNode | ɵangular_packages_core_core_be | null;
|
|
8797
8710
|
/**
|
|
8798
8711
|
* When a view is destroyed, listeners need to be released and outputs need to be
|
|
8799
8712
|
* unsubscribed. This context array stores both listener functions wrapped with
|
|
@@ -8826,14 +8739,14 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8826
8739
|
* Necessary to store this so views can traverse through their nested views
|
|
8827
8740
|
* to remove listeners and call onDestroy callbacks.
|
|
8828
8741
|
*/
|
|
8829
|
-
[CHILD_HEAD]: ɵ
|
|
8742
|
+
[CHILD_HEAD]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
8830
8743
|
/**
|
|
8831
8744
|
* The last LView or LContainer beneath this LView in the hierarchy.
|
|
8832
8745
|
*
|
|
8833
8746
|
* The tail allows us to quickly add a new state to the end of the view list
|
|
8834
8747
|
* without having to propagate starting from the first child.
|
|
8835
8748
|
*/
|
|
8836
|
-
[CHILD_TAIL]: ɵ
|
|
8749
|
+
[CHILD_TAIL]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
8837
8750
|
/**
|
|
8838
8751
|
* View where this view's template was declared.
|
|
8839
8752
|
*
|
|
@@ -8858,7 +8771,7 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8858
8771
|
* template function during change detection, we need the declaration view to get inherited
|
|
8859
8772
|
* context.
|
|
8860
8773
|
*/
|
|
8861
|
-
[DECLARATION_VIEW]: ɵ
|
|
8774
|
+
[DECLARATION_VIEW]: ɵangular_packages_core_core_bo | null;
|
|
8862
8775
|
/**
|
|
8863
8776
|
* Points to the declaration component view, used to track transplanted `LView`s.
|
|
8864
8777
|
*
|
|
@@ -8928,7 +8841,7 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8928
8841
|
* - `LView[DECLARATION_LCONTAINER]` similar problem for queries
|
|
8929
8842
|
* - `LContainer[MOVED_VIEWS]` similar problem for queries
|
|
8930
8843
|
*/
|
|
8931
|
-
[DECLARATION_COMPONENT_VIEW]: ɵ
|
|
8844
|
+
[DECLARATION_COMPONENT_VIEW]: ɵangular_packages_core_core_bo;
|
|
8932
8845
|
/**
|
|
8933
8846
|
* A declaration point of embedded views (ones instantiated based on the content of a
|
|
8934
8847
|
* <ng-template>), null for other types of views.
|
|
@@ -8954,7 +8867,7 @@ export declare interface ɵangular_packages_core_core_bg extends Array<any> {
|
|
|
8954
8867
|
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
|
|
8955
8868
|
* compiler.
|
|
8956
8869
|
*/
|
|
8957
|
-
export declare function ɵ
|
|
8870
|
+
export declare function ɵangular_packages_core_core_bp(fn: () => void): string;
|
|
8958
8871
|
|
|
8959
8872
|
/**
|
|
8960
8873
|
* Returns the `RootContext` instance that is associated with
|
|
@@ -8963,7 +8876,7 @@ export declare function ɵangular_packages_core_core_bh(fn: () => void): string;
|
|
|
8963
8876
|
*
|
|
8964
8877
|
* @param viewOrComponent the `LView` or component to get the root context for.
|
|
8965
8878
|
*/
|
|
8966
|
-
export declare function ɵ
|
|
8879
|
+
export declare function ɵangular_packages_core_core_bq(viewOrComponent: ɵangular_packages_core_core_bo | {}): RootContext;
|
|
8967
8880
|
|
|
8968
8881
|
export declare class ɵangular_packages_core_core_c implements Injector {
|
|
8969
8882
|
get(token: any, notFoundValue?: any): any;
|
|
@@ -8990,7 +8903,7 @@ export declare class ɵangular_packages_core_core_d implements ReflectiveInjecto
|
|
|
8990
8903
|
private _getByReflectiveDependency;
|
|
8991
8904
|
private _getByKey;
|
|
8992
8905
|
private _getObjByKeyId;
|
|
8993
|
-
|
|
8906
|
+
get displayName(): string;
|
|
8994
8907
|
toString(): string;
|
|
8995
8908
|
}
|
|
8996
8909
|
|
|
@@ -9021,7 +8934,7 @@ export declare function ɵangular_packages_core_core_g(): string;
|
|
|
9021
8934
|
* @param view The view to which the node belongs
|
|
9022
8935
|
* @returns The ElementRef instance to use
|
|
9023
8936
|
*/
|
|
9024
|
-
export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof ElementRef, tNode: TNode, view: ɵ
|
|
8937
|
+
export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof ElementRef, tNode: TNode, view: ɵangular_packages_core_core_bo): ElementRef;
|
|
9025
8938
|
|
|
9026
8939
|
/**
|
|
9027
8940
|
* Creates a TemplateRef and stores it on the injector.
|
|
@@ -9032,7 +8945,7 @@ export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof E
|
|
|
9032
8945
|
* @param hostView The view to which the node belongs
|
|
9033
8946
|
* @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type
|
|
9034
8947
|
*/
|
|
9035
|
-
export declare function ɵangular_packages_core_core_i<T>(TemplateRefToken: typeof TemplateRef, ElementRefToken: typeof ElementRef, hostTNode: TNode, hostView: ɵ
|
|
8948
|
+
export declare function ɵangular_packages_core_core_i<T>(TemplateRefToken: typeof TemplateRef, ElementRefToken: typeof ElementRef, hostTNode: TNode, hostView: ɵangular_packages_core_core_bo): TemplateRef<T> | null;
|
|
9036
8949
|
|
|
9037
8950
|
export declare function ɵangular_packages_core_core_j(id: string): NgModuleFactory<any>;
|
|
9038
8951
|
|
|
@@ -9041,14 +8954,14 @@ export declare class ɵangular_packages_core_core_k {
|
|
|
9041
8954
|
readonly parent: DebugElement | null;
|
|
9042
8955
|
readonly nativeNode: any;
|
|
9043
8956
|
private readonly _debugContext;
|
|
9044
|
-
constructor(nativeNode: any, parent: DebugNode | null, _debugContext: ɵ
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
8957
|
+
constructor(nativeNode: any, parent: DebugNode | null, _debugContext: ɵangular_packages_core_core_w);
|
|
8958
|
+
get injector(): Injector;
|
|
8959
|
+
get componentInstance(): any;
|
|
8960
|
+
get context(): any;
|
|
8961
|
+
get references(): {
|
|
9049
8962
|
[key: string]: any;
|
|
9050
8963
|
};
|
|
9051
|
-
|
|
8964
|
+
get providerTokens(): any[];
|
|
9052
8965
|
}
|
|
9053
8966
|
|
|
9054
8967
|
export declare class ɵangular_packages_core_core_l extends ɵangular_packages_core_core_k implements DebugElement {
|
|
@@ -9067,7 +8980,7 @@ export declare class ɵangular_packages_core_core_l extends ɵangular_packages_c
|
|
|
9067
8980
|
};
|
|
9068
8981
|
readonly childNodes: DebugNode[];
|
|
9069
8982
|
readonly nativeElement: any;
|
|
9070
|
-
constructor(nativeNode: any, parent: any, _debugContext: ɵ
|
|
8983
|
+
constructor(nativeNode: any, parent: any, _debugContext: ɵangular_packages_core_core_w);
|
|
9071
8984
|
addChild(child: DebugNode): void;
|
|
9072
8985
|
removeChild(child: DebugNode): void;
|
|
9073
8986
|
insertChildrenAfter(child: DebugNode, newChildren: DebugNode[]): void;
|
|
@@ -9075,33 +8988,35 @@ export declare class ɵangular_packages_core_core_l extends ɵangular_packages_c
|
|
|
9075
8988
|
query(predicate: Predicate<DebugElement>): DebugElement;
|
|
9076
8989
|
queryAll(predicate: Predicate<DebugElement>): DebugElement[];
|
|
9077
8990
|
queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[];
|
|
9078
|
-
|
|
8991
|
+
get children(): DebugElement[];
|
|
9079
8992
|
triggerEventHandler(eventName: string, eventObj: any): void;
|
|
9080
8993
|
}
|
|
9081
8994
|
|
|
9082
|
-
export declare
|
|
8995
|
+
export declare function ɵangular_packages_core_core_m(nativeNode: any): DebugNode | null;
|
|
8996
|
+
|
|
8997
|
+
export declare class ɵangular_packages_core_core_n implements IterableDifferFactory {
|
|
9083
8998
|
constructor();
|
|
9084
8999
|
supports(obj: Object | null | undefined): boolean;
|
|
9085
9000
|
create<V>(trackByFn?: TrackByFunction<V>): DefaultIterableDiffer<V>;
|
|
9086
9001
|
}
|
|
9087
9002
|
|
|
9088
|
-
export declare class ɵ
|
|
9003
|
+
export declare class ɵangular_packages_core_core_o<K, V> implements KeyValueDifferFactory {
|
|
9089
9004
|
constructor();
|
|
9090
9005
|
supports(obj: any): boolean;
|
|
9091
9006
|
create<K, V>(): KeyValueDiffer<K, V>;
|
|
9092
9007
|
}
|
|
9093
9008
|
|
|
9094
|
-
export declare function ɵ
|
|
9009
|
+
export declare function ɵangular_packages_core_core_p(): IterableDiffers;
|
|
9095
9010
|
|
|
9096
|
-
export declare function ɵ
|
|
9011
|
+
export declare function ɵangular_packages_core_core_q(): KeyValueDiffers;
|
|
9097
9012
|
|
|
9098
|
-
export declare function ɵ
|
|
9013
|
+
export declare function ɵangular_packages_core_core_r(locale?: string): string;
|
|
9099
9014
|
|
|
9100
9015
|
/**
|
|
9101
9016
|
* A built-in [dependency injection token](guide/glossary#di-token)
|
|
9102
9017
|
* that is used to configure the root injector for bootstrapping.
|
|
9103
9018
|
*/
|
|
9104
|
-
export declare const ɵ
|
|
9019
|
+
export declare const ɵangular_packages_core_core_s: StaticProvider[];
|
|
9105
9020
|
|
|
9106
9021
|
/**
|
|
9107
9022
|
* Schedule work at next available slot.
|
|
@@ -9112,22 +9027,28 @@ export declare const ɵangular_packages_core_core_r: StaticProvider[];
|
|
|
9112
9027
|
*
|
|
9113
9028
|
* @param ngZone NgZone to use for scheduling.
|
|
9114
9029
|
*/
|
|
9115
|
-
export declare function ɵ
|
|
9030
|
+
export declare function ɵangular_packages_core_core_t(ngZone: NgZone): (fn: () => void) => void;
|
|
9031
|
+
|
|
9032
|
+
/**
|
|
9033
|
+
* USD currency code that the application uses by default for CurrencyPipe when no
|
|
9034
|
+
* DEFAULT_CURRENCY_CODE is provided.
|
|
9035
|
+
*/
|
|
9036
|
+
export declare const ɵangular_packages_core_core_u = "USD";
|
|
9116
9037
|
|
|
9117
|
-
export declare function ɵ
|
|
9038
|
+
export declare function ɵangular_packages_core_core_v(checkIndex: number, flags: ɵNodeFlags, matchedQueriesDsl: [string | number, ɵQueryValueType][] | null, childCount: number, token: any, value: any, deps: ([ɵDepFlags, any] | any)[], bindings?: BindingDef[], outputs?: OutputDef[]): NodeDef;
|
|
9118
9039
|
|
|
9119
|
-
export declare abstract class ɵ
|
|
9120
|
-
abstract
|
|
9121
|
-
abstract
|
|
9122
|
-
abstract
|
|
9123
|
-
abstract
|
|
9124
|
-
abstract
|
|
9125
|
-
abstract
|
|
9040
|
+
export declare abstract class ɵangular_packages_core_core_w {
|
|
9041
|
+
abstract get view(): ViewData;
|
|
9042
|
+
abstract get nodeIndex(): number | null;
|
|
9043
|
+
abstract get injector(): Injector;
|
|
9044
|
+
abstract get component(): any;
|
|
9045
|
+
abstract get providerTokens(): any[];
|
|
9046
|
+
abstract get references(): {
|
|
9126
9047
|
[key: string]: any;
|
|
9127
9048
|
};
|
|
9128
|
-
abstract
|
|
9129
|
-
abstract
|
|
9130
|
-
abstract
|
|
9049
|
+
abstract get context(): any;
|
|
9050
|
+
abstract get componentRenderElement(): any;
|
|
9051
|
+
abstract get renderNode(): any;
|
|
9131
9052
|
abstract logError(console: Console, ...values: any[]): void;
|
|
9132
9053
|
}
|
|
9133
9054
|
|
|
@@ -9135,7 +9056,7 @@ export declare abstract class ɵangular_packages_core_core_u {
|
|
|
9135
9056
|
* A change detection scheduler token for {@link RootContext}. This token is the default value used
|
|
9136
9057
|
* for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
|
|
9137
9058
|
*/
|
|
9138
|
-
export declare const ɵ
|
|
9059
|
+
export declare const ɵangular_packages_core_core_x: InjectionToken<(fn: () => void) => void>;
|
|
9139
9060
|
|
|
9140
9061
|
/**
|
|
9141
9062
|
* Inject static attribute value into directive constructor.
|
|
@@ -9168,19 +9089,9 @@ export declare const ɵangular_packages_core_core_v: InjectionToken<(fn: () => v
|
|
|
9168
9089
|
*
|
|
9169
9090
|
* @publicApi
|
|
9170
9091
|
*/
|
|
9171
|
-
export declare function ɵ
|
|
9172
|
-
|
|
9173
|
-
export declare const ɵangular_packages_core_core_x: InstructionState;
|
|
9174
|
-
|
|
9175
|
-
/**
|
|
9176
|
-
* Return the current LView.
|
|
9177
|
-
*
|
|
9178
|
-
* The return value can be `null` if the method is called outside of template. This can happen if
|
|
9179
|
-
* directive is instantiated by module injector (rather than by node injector.)
|
|
9180
|
-
*/
|
|
9181
|
-
export declare function ɵangular_packages_core_core_y(): ɵangular_packages_core_core_bg;
|
|
9092
|
+
export declare function ɵangular_packages_core_core_y(tNode: TNode, attrNameToInject: string): string | null;
|
|
9182
9093
|
|
|
9183
|
-
export declare
|
|
9094
|
+
export declare const ɵangular_packages_core_core_z: InstructionState;
|
|
9184
9095
|
|
|
9185
9096
|
/**
|
|
9186
9097
|
* Providers that will generate a random APP_ID_TOKEN.
|
|
@@ -9202,6 +9113,14 @@ export declare const enum ɵArgumentType {
|
|
|
9202
9113
|
* items are not regular attributes and the processing should be adapted accordingly.
|
|
9203
9114
|
*/
|
|
9204
9115
|
export declare const enum ɵAttributeMarker {
|
|
9116
|
+
/**
|
|
9117
|
+
* An implicit marker which indicates that the value in the array are of `attributeKey`,
|
|
9118
|
+
* `attributeValue` format.
|
|
9119
|
+
*
|
|
9120
|
+
* NOTE: This is implicit as it is the type when no marker is present in array. We indicate that
|
|
9121
|
+
* it should not be present at runtime by the negative number.
|
|
9122
|
+
*/
|
|
9123
|
+
ImplicitAttributes = -1,
|
|
9205
9124
|
/**
|
|
9206
9125
|
* Marker indicates that the following 3 values in the attributes array are:
|
|
9207
9126
|
* namespaceUri, attributeName, attributeValue
|
|
@@ -9668,17 +9587,11 @@ export declare const enum ɵDepFlags {
|
|
|
9668
9587
|
/**
|
|
9669
9588
|
* Synchronously perform change detection on a component (and possibly its sub-components).
|
|
9670
9589
|
*
|
|
9671
|
-
* This function triggers change detection in a synchronous way on a component.
|
|
9672
|
-
* be very little reason to call this function directly since a preferred way to do change
|
|
9673
|
-
* detection is to {@link markDirty} the component and wait for the scheduler to call this method
|
|
9674
|
-
* at some future point in time. This is because a single user action often results in many
|
|
9675
|
-
* components being invalidated and calling change detection on each component synchronously
|
|
9676
|
-
* would be inefficient. It is better to wait until all components are marked as dirty and
|
|
9677
|
-
* then perform single change detection across all of the components
|
|
9590
|
+
* This function triggers change detection in a synchronous way on a component.
|
|
9678
9591
|
*
|
|
9679
9592
|
* @param component The component which the change detection should be performed on.
|
|
9680
9593
|
*/
|
|
9681
|
-
export declare function ɵdetectChanges
|
|
9594
|
+
export declare function ɵdetectChanges(component: {}): void;
|
|
9682
9595
|
|
|
9683
9596
|
|
|
9684
9597
|
export declare function ɵdevModeEqual(a: any, b: any): boolean;
|
|
@@ -9740,9 +9653,47 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
9740
9653
|
/**
|
|
9741
9654
|
* Refreshes host bindings on the associated directive.
|
|
9742
9655
|
*/
|
|
9743
|
-
hostBindings: HostBindingsFunction<T> | null;
|
|
9656
|
+
readonly hostBindings: HostBindingsFunction<T> | null;
|
|
9657
|
+
/**
|
|
9658
|
+
* The number of bindings in this directive `hostBindings` (including pure fn bindings).
|
|
9659
|
+
*
|
|
9660
|
+
* Used to calculate the length of the component's LView array, so we
|
|
9661
|
+
* can pre-fill the array and set the host binding start index.
|
|
9662
|
+
*/
|
|
9663
|
+
readonly hostVars: number;
|
|
9664
|
+
/**
|
|
9665
|
+
* Assign static attribute values to a host element.
|
|
9666
|
+
*
|
|
9667
|
+
* This property will assign static attribute values as well as class and style
|
|
9668
|
+
* values to a host element. Since attribute values can consist of different types of values, the
|
|
9669
|
+
* `hostAttrs` array must include the values in the following format:
|
|
9670
|
+
*
|
|
9671
|
+
* attrs = [
|
|
9672
|
+
* // static attributes (like `title`, `name`, `id`...)
|
|
9673
|
+
* attr1, value1, attr2, value,
|
|
9674
|
+
*
|
|
9675
|
+
* // a single namespace value (like `x:id`)
|
|
9676
|
+
* NAMESPACE_MARKER, namespaceUri1, name1, value1,
|
|
9677
|
+
*
|
|
9678
|
+
* // another single namespace value (like `x:name`)
|
|
9679
|
+
* NAMESPACE_MARKER, namespaceUri2, name2, value2,
|
|
9680
|
+
*
|
|
9681
|
+
* // a series of CSS classes that will be applied to the element (no spaces)
|
|
9682
|
+
* CLASSES_MARKER, class1, class2, class3,
|
|
9683
|
+
*
|
|
9684
|
+
* // a series of CSS styles (property + value) that will be applied to the element
|
|
9685
|
+
* STYLES_MARKER, prop1, value1, prop2, value2
|
|
9686
|
+
* ]
|
|
9687
|
+
*
|
|
9688
|
+
* All non-class and non-style attributes must be defined at the start of the list
|
|
9689
|
+
* first before all class and style values are set. When there is a change in value
|
|
9690
|
+
* type (like when classes and styles are introduced) a marker must be used to separate
|
|
9691
|
+
* the entries. The marker values themselves are set via entries found in the
|
|
9692
|
+
* [AttributeMarker] enum.
|
|
9693
|
+
*/
|
|
9694
|
+
readonly hostAttrs: TAttributes | null;
|
|
9744
9695
|
/** Token representing the directive. Used by DI. */
|
|
9745
|
-
type: Type<T>;
|
|
9696
|
+
readonly type: Type<T>;
|
|
9746
9697
|
/** Function that resolves providers and publishes them into the DI system. */
|
|
9747
9698
|
providersResolver: (<U extends T>(def: ɵDirectiveDef<U>, processProvidersFn?: ProcessProvidersFunction) => void) | null;
|
|
9748
9699
|
/** The selectors that will be used to match nodes to this directive. */
|
|
@@ -9755,15 +9706,15 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
9755
9706
|
* Factory function used to create a new directive instance. Will be null initially.
|
|
9756
9707
|
* Populated when the factory is first requested by directive instantiation logic.
|
|
9757
9708
|
*/
|
|
9758
|
-
factory: FactoryFn<T> | null;
|
|
9759
|
-
onChanges: (() => void) | null;
|
|
9760
|
-
onInit: (() => void) | null;
|
|
9761
|
-
doCheck: (() => void) | null;
|
|
9762
|
-
afterContentInit: (() => void) | null;
|
|
9763
|
-
afterContentChecked: (() => void) | null;
|
|
9764
|
-
afterViewInit: (() => void) | null;
|
|
9765
|
-
afterViewChecked: (() => void) | null;
|
|
9766
|
-
onDestroy: (() => void) | null;
|
|
9709
|
+
readonly factory: FactoryFn<T> | null;
|
|
9710
|
+
readonly onChanges: (() => void) | null;
|
|
9711
|
+
readonly onInit: (() => void) | null;
|
|
9712
|
+
readonly doCheck: (() => void) | null;
|
|
9713
|
+
readonly afterContentInit: (() => void) | null;
|
|
9714
|
+
readonly afterContentChecked: (() => void) | null;
|
|
9715
|
+
readonly afterViewInit: (() => void) | null;
|
|
9716
|
+
readonly afterViewChecked: (() => void) | null;
|
|
9717
|
+
readonly onDestroy: (() => void) | null;
|
|
9767
9718
|
/**
|
|
9768
9719
|
* The features applied to this directive
|
|
9769
9720
|
*/
|
|
@@ -9821,26 +9772,45 @@ export declare function ɵgetDebugNode__POST_R3__(nativeNode: Node): DebugNode__
|
|
|
9821
9772
|
|
|
9822
9773
|
export declare function ɵgetDebugNode__POST_R3__(nativeNode: null): null;
|
|
9823
9774
|
|
|
9775
|
+
export declare const ɵgetDebugNodeR2: (nativeNode: any) => DebugNode | null;
|
|
9776
|
+
|
|
9824
9777
|
/**
|
|
9825
|
-
* Retrieves
|
|
9778
|
+
* Retrieves directive instances associated with a given DOM element. Does not include
|
|
9779
|
+
* component instances.
|
|
9826
9780
|
*
|
|
9827
|
-
* @
|
|
9781
|
+
* @usageNotes
|
|
9782
|
+
* Given the following DOM structure:
|
|
9783
|
+
* ```
|
|
9784
|
+
* <my-app>
|
|
9785
|
+
* <button my-button></button>
|
|
9786
|
+
* <my-comp></my-comp>
|
|
9787
|
+
* </my-app>
|
|
9788
|
+
* ```
|
|
9789
|
+
* Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`
|
|
9790
|
+
* directive that is associated with the DOM element.
|
|
9791
|
+
*
|
|
9792
|
+
* Calling `getDirectives` on `<my-comp>` will return an empty array.
|
|
9793
|
+
*
|
|
9794
|
+
* @param element DOM element for which to get the directives.
|
|
9795
|
+
* @returns Array of directives associated with the element.
|
|
9828
9796
|
*
|
|
9829
9797
|
* @publicApi
|
|
9798
|
+
* @globalApi ng
|
|
9830
9799
|
*/
|
|
9831
|
-
export declare function ɵgetDirectives(
|
|
9800
|
+
export declare function ɵgetDirectives(element: Element): {}[];
|
|
9832
9801
|
|
|
9833
9802
|
/**
|
|
9834
|
-
*
|
|
9835
|
-
*
|
|
9836
|
-
* Use this function to retrieve the host element of the component. The host
|
|
9837
|
-
* element is the element which the component is associated with.
|
|
9803
|
+
* Retrieves the host element of a component or directive instance.
|
|
9804
|
+
* The host element is the DOM element that matched the selector of the directive.
|
|
9838
9805
|
*
|
|
9839
|
-
* @param
|
|
9806
|
+
* @param componentOrDirective Component or directive instance for which the host
|
|
9807
|
+
* element should be retrieved.
|
|
9808
|
+
* @returns Host element of the target.
|
|
9840
9809
|
*
|
|
9841
9810
|
* @publicApi
|
|
9811
|
+
* @globalApi ng
|
|
9842
9812
|
*/
|
|
9843
|
-
export declare function ɵgetHostElement
|
|
9813
|
+
export declare function ɵgetHostElement(componentOrDirective: {}): Element;
|
|
9844
9814
|
|
|
9845
9815
|
/**
|
|
9846
9816
|
* Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
|
|
@@ -9871,6 +9841,17 @@ export declare function ɵgetInjectableDef<T>(type: any): ɵɵInjectableDef<T> |
|
|
|
9871
9841
|
*/
|
|
9872
9842
|
export declare function ɵgetLContext(target: any): ɵLContext | null;
|
|
9873
9843
|
|
|
9844
|
+
/**
|
|
9845
|
+
* Retrieves the default currency code for the given locale.
|
|
9846
|
+
*
|
|
9847
|
+
* The default is defined as the first currency which is still in use.
|
|
9848
|
+
*
|
|
9849
|
+
* @param locale The code of the locale whose currency code we want.
|
|
9850
|
+
* @returns The code of the default currency for the given locale.
|
|
9851
|
+
*
|
|
9852
|
+
*/
|
|
9853
|
+
export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
|
|
9854
|
+
|
|
9874
9855
|
/**
|
|
9875
9856
|
* Retrieves the plural function used by ICU expressions to determine the plural case to use
|
|
9876
9857
|
* for a given locale.
|
|
@@ -9944,7 +9925,7 @@ export declare interface ɵLContext {
|
|
|
9944
9925
|
/**
|
|
9945
9926
|
* The component's parent view data.
|
|
9946
9927
|
*/
|
|
9947
|
-
lView: ɵ
|
|
9928
|
+
lView: ɵangular_packages_core_core_bo;
|
|
9948
9929
|
/**
|
|
9949
9930
|
* The index instance of the node.
|
|
9950
9931
|
*/
|
|
@@ -10004,11 +9985,12 @@ export declare enum ɵLocaleDataIndex {
|
|
|
10004
9985
|
DateTimeFormat = 12,
|
|
10005
9986
|
NumberSymbols = 13,
|
|
10006
9987
|
NumberFormats = 14,
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
9988
|
+
CurrencyCode = 15,
|
|
9989
|
+
CurrencySymbol = 16,
|
|
9990
|
+
CurrencyName = 17,
|
|
9991
|
+
Currencies = 18,
|
|
9992
|
+
PluralCase = 19,
|
|
9993
|
+
ExtraData = 20
|
|
10012
9994
|
}
|
|
10013
9995
|
|
|
10014
9996
|
|
|
@@ -10024,22 +10006,15 @@ export declare function ɵmakeDecorator<T>(name: string, props?: (...args: any[]
|
|
|
10024
10006
|
};
|
|
10025
10007
|
|
|
10026
10008
|
/**
|
|
10027
|
-
*
|
|
10009
|
+
* Marks the component as dirty (needing change detection). Marking a component dirty will
|
|
10010
|
+
* schedule a change detection on it at some point in the future.
|
|
10028
10011
|
*
|
|
10029
|
-
* Marking
|
|
10030
|
-
*
|
|
10031
|
-
* component as dirty is a noop. Only one outstanding change detection
|
|
10032
|
-
* can be scheduled per component tree. (Two components bootstrapped with
|
|
10033
|
-
* separate `renderComponent` will have separate schedulers)
|
|
10034
|
-
*
|
|
10035
|
-
* When the root component is bootstrapped with `renderComponent`, a scheduler
|
|
10036
|
-
* can be provided.
|
|
10012
|
+
* Marking an already dirty component as dirty won't do anything. Only one outstanding change
|
|
10013
|
+
* detection can be scheduled per component tree.
|
|
10037
10014
|
*
|
|
10038
10015
|
* @param component Component to mark as dirty.
|
|
10039
|
-
*
|
|
10040
|
-
* @publicApi
|
|
10041
10016
|
*/
|
|
10042
|
-
export declare function ɵmarkDirty
|
|
10017
|
+
export declare function ɵmarkDirty(component: {}): void;
|
|
10043
10018
|
|
|
10044
10019
|
export declare type ɵMethodFn = (obj: any, args: any[]) => any;
|
|
10045
10020
|
|
|
@@ -10138,7 +10113,7 @@ export declare interface ɵNgModuleType<T = any> extends Type<T> {
|
|
|
10138
10113
|
|
|
10139
10114
|
|
|
10140
10115
|
export declare interface ɵNO_CHANGE {
|
|
10141
|
-
|
|
10116
|
+
__brand__: 'NO_CHANGE';
|
|
10142
10117
|
}
|
|
10143
10118
|
|
|
10144
10119
|
/** A special value which designates that a value has not changed. */
|
|
@@ -10420,11 +10395,11 @@ export declare class ɵRender3ComponentFactory<T> extends ComponentFactory<T> {
|
|
|
10420
10395
|
componentType: Type<any>;
|
|
10421
10396
|
ngContentSelectors: string[];
|
|
10422
10397
|
isBoundToModule: boolean;
|
|
10423
|
-
|
|
10398
|
+
get inputs(): {
|
|
10424
10399
|
propName: string;
|
|
10425
10400
|
templateName: string;
|
|
10426
10401
|
}[];
|
|
10427
|
-
|
|
10402
|
+
get outputs(): {
|
|
10428
10403
|
propName: string;
|
|
10429
10404
|
templateName: string;
|
|
10430
10405
|
}[];
|
|
@@ -10453,8 +10428,8 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
|
|
|
10453
10428
|
hostView: ViewRef_2<T>;
|
|
10454
10429
|
changeDetectorRef: ChangeDetectorRef;
|
|
10455
10430
|
componentType: Type<T>;
|
|
10456
|
-
constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: ɵ
|
|
10457
|
-
|
|
10431
|
+
constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: ɵangular_packages_core_core_bo, _tNode: ɵangular_packages_core_core_be | TContainerNode | TElementContainerNode);
|
|
10432
|
+
get injector(): Injector;
|
|
10458
10433
|
destroy(): void;
|
|
10459
10434
|
onDestroy(callback: () => void): void;
|
|
10460
10435
|
}
|
|
@@ -10468,7 +10443,7 @@ export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements I
|
|
|
10468
10443
|
destroyCbs: (() => void)[] | null;
|
|
10469
10444
|
constructor(ngModuleType: Type<T>, _parent: Injector | null);
|
|
10470
10445
|
get(token: any, notFoundValue?: any, injectFlags?: InjectFlags): any;
|
|
10471
|
-
|
|
10446
|
+
get componentFactoryResolver(): ComponentFactoryResolver;
|
|
10472
10447
|
destroy(): void;
|
|
10473
10448
|
onDestroy(callback: () => void): void;
|
|
10474
10449
|
}
|
|
@@ -10625,7 +10600,7 @@ export declare function ɵsetLocaleId(localeId: string): void;
|
|
|
10625
10600
|
export declare type ɵSetterFn = (obj: any, value: any) => void;
|
|
10626
10601
|
|
|
10627
10602
|
/** Store a value in the `data` at a given `index`. */
|
|
10628
|
-
export declare function ɵstore<T>(index: number, value: T): void;
|
|
10603
|
+
export declare function ɵstore<T>(tView: TView, lView: ɵangular_packages_core_core_bo, index: number, value: T): void;
|
|
10629
10604
|
|
|
10630
10605
|
|
|
10631
10606
|
export declare function ɵstringify(token: any): string;
|
|
@@ -10759,16 +10734,6 @@ export declare function ɵwhenRendered(component: any): Promise<null>;
|
|
|
10759
10734
|
*/
|
|
10760
10735
|
export declare function ɵɵadvance(delta: number): void;
|
|
10761
10736
|
|
|
10762
|
-
|
|
10763
|
-
/**
|
|
10764
|
-
* Allocates the necessary amount of slots for host vars.
|
|
10765
|
-
*
|
|
10766
|
-
* @param count Amount of vars to be allocated
|
|
10767
|
-
*
|
|
10768
|
-
* @codeGenApi
|
|
10769
|
-
*/
|
|
10770
|
-
export declare function ɵɵallocHostVars(count: number): void;
|
|
10771
|
-
|
|
10772
10737
|
/**
|
|
10773
10738
|
* Updates the value of or removes a bound attribute on an Element.
|
|
10774
10739
|
*
|
|
@@ -11101,8 +11066,8 @@ export declare function ɵɵattributeInterpolateV(attrName: string, values: any[
|
|
|
11101
11066
|
* @codeGenApi
|
|
11102
11067
|
*/
|
|
11103
11068
|
export declare function ɵɵclassMap(classes: {
|
|
11104
|
-
[className: string]:
|
|
11105
|
-
} |
|
|
11069
|
+
[className: string]: boolean | undefined | null;
|
|
11070
|
+
} | Map<string, boolean | undefined | null> | Set<string> | string[] | string | undefined | null): void;
|
|
11106
11071
|
|
|
11107
11072
|
|
|
11108
11073
|
/**
|
|
@@ -11391,7 +11356,7 @@ export declare function ɵɵclassMapInterpolateV(values: any[]): void;
|
|
|
11391
11356
|
*
|
|
11392
11357
|
* @codeGenApi
|
|
11393
11358
|
*/
|
|
11394
|
-
export declare function ɵɵclassProp(className: string, value: boolean | null): typeof ɵɵclassProp;
|
|
11359
|
+
export declare function ɵɵclassProp(className: string, value: boolean | undefined | null): typeof ɵɵclassProp;
|
|
11395
11360
|
|
|
11396
11361
|
/**
|
|
11397
11362
|
* @codeGenApi
|
|
@@ -11596,6 +11561,44 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
|
|
|
11596
11561
|
* Function executed by the parent template to allow child directive to apply host bindings.
|
|
11597
11562
|
*/
|
|
11598
11563
|
hostBindings?: HostBindingsFunction<T>;
|
|
11564
|
+
/**
|
|
11565
|
+
* The number of bindings in this directive `hostBindings` (including pure fn bindings).
|
|
11566
|
+
*
|
|
11567
|
+
* Used to calculate the length of the component's LView array, so we
|
|
11568
|
+
* can pre-fill the array and set the host binding start index.
|
|
11569
|
+
*/
|
|
11570
|
+
hostVars?: number;
|
|
11571
|
+
/**
|
|
11572
|
+
* Assign static attribute values to a host element.
|
|
11573
|
+
*
|
|
11574
|
+
* This property will assign static attribute values as well as class and style
|
|
11575
|
+
* values to a host element. Since attribute values can consist of different types of values, the
|
|
11576
|
+
* `hostAttrs` array must include the values in the following format:
|
|
11577
|
+
*
|
|
11578
|
+
* attrs = [
|
|
11579
|
+
* // static attributes (like `title`, `name`, `id`...)
|
|
11580
|
+
* attr1, value1, attr2, value,
|
|
11581
|
+
*
|
|
11582
|
+
* // a single namespace value (like `x:id`)
|
|
11583
|
+
* NAMESPACE_MARKER, namespaceUri1, name1, value1,
|
|
11584
|
+
*
|
|
11585
|
+
* // another single namespace value (like `x:name`)
|
|
11586
|
+
* NAMESPACE_MARKER, namespaceUri2, name2, value2,
|
|
11587
|
+
*
|
|
11588
|
+
* // a series of CSS classes that will be applied to the element (no spaces)
|
|
11589
|
+
* CLASSES_MARKER, class1, class2, class3,
|
|
11590
|
+
*
|
|
11591
|
+
* // a series of CSS styles (property + value) that will be applied to the element
|
|
11592
|
+
* STYLES_MARKER, prop1, value1, prop2, value2
|
|
11593
|
+
* ]
|
|
11594
|
+
*
|
|
11595
|
+
* All non-class and non-style attributes must be defined at the start of the list
|
|
11596
|
+
* first before all class and style values are set. When there is a change in value
|
|
11597
|
+
* type (like when classes and styles are introduced) a marker must be used to separate
|
|
11598
|
+
* the entries. The marker values themselves are set via entries found in the
|
|
11599
|
+
* [AttributeMarker] enum.
|
|
11600
|
+
*/
|
|
11601
|
+
hostAttrs?: TAttributes;
|
|
11599
11602
|
/**
|
|
11600
11603
|
* Function to create instances of content queries associated with a given directive.
|
|
11601
11604
|
*/
|
|
@@ -11724,7 +11727,7 @@ export declare const ɵɵdefineDirective: <T>(directiveDefinition: {
|
|
|
11724
11727
|
*/
|
|
11725
11728
|
type: Type<T>;
|
|
11726
11729
|
/** The selectors that will be used to match nodes to this directive. */
|
|
11727
|
-
selectors?:
|
|
11730
|
+
selectors?: ɵCssSelectorList | undefined;
|
|
11728
11731
|
/**
|
|
11729
11732
|
* A map of input names.
|
|
11730
11733
|
*
|
|
@@ -11790,6 +11793,44 @@ export declare const ɵɵdefineDirective: <T>(directiveDefinition: {
|
|
|
11790
11793
|
* Function executed by the parent template to allow child directive to apply host bindings.
|
|
11791
11794
|
*/
|
|
11792
11795
|
hostBindings?: HostBindingsFunction<T> | undefined;
|
|
11796
|
+
/**
|
|
11797
|
+
* The number of bindings in this directive `hostBindings` (including pure fn bindings).
|
|
11798
|
+
*
|
|
11799
|
+
* Used to calculate the length of the component's LView array, so we
|
|
11800
|
+
* can pre-fill the array and set the host binding start index.
|
|
11801
|
+
*/
|
|
11802
|
+
hostVars?: number | undefined;
|
|
11803
|
+
/**
|
|
11804
|
+
* Assign static attribute values to a host element.
|
|
11805
|
+
*
|
|
11806
|
+
* This property will assign static attribute values as well as class and style
|
|
11807
|
+
* values to a host element. Since attribute values can consist of different types of values, the
|
|
11808
|
+
* `hostAttrs` array must include the values in the following format:
|
|
11809
|
+
*
|
|
11810
|
+
* attrs = [
|
|
11811
|
+
* // static attributes (like `title`, `name`, `id`...)
|
|
11812
|
+
* attr1, value1, attr2, value,
|
|
11813
|
+
*
|
|
11814
|
+
* // a single namespace value (like `x:id`)
|
|
11815
|
+
* NAMESPACE_MARKER, namespaceUri1, name1, value1,
|
|
11816
|
+
*
|
|
11817
|
+
* // another single namespace value (like `x:name`)
|
|
11818
|
+
* NAMESPACE_MARKER, namespaceUri2, name2, value2,
|
|
11819
|
+
*
|
|
11820
|
+
* // a series of CSS classes that will be applied to the element (no spaces)
|
|
11821
|
+
* CLASSES_MARKER, class1, class2, class3,
|
|
11822
|
+
*
|
|
11823
|
+
* // a series of CSS styles (property + value) that will be applied to the element
|
|
11824
|
+
* STYLES_MARKER, prop1, value1, prop2, value2
|
|
11825
|
+
* ]
|
|
11826
|
+
*
|
|
11827
|
+
* All non-class and non-style attributes must be defined at the start of the list
|
|
11828
|
+
* first before all class and style values are set. When there is a change in value
|
|
11829
|
+
* type (like when classes and styles are introduced) a marker must be used to separate
|
|
11830
|
+
* the entries. The marker values themselves are set via entries found in the
|
|
11831
|
+
* [AttributeMarker] enum.
|
|
11832
|
+
*/
|
|
11833
|
+
hostAttrs?: TAttributes | undefined;
|
|
11793
11834
|
/**
|
|
11794
11835
|
* Function to create instances of content queries associated with a given directive.
|
|
11795
11836
|
*/
|
|
@@ -12015,46 +12056,6 @@ export declare function ɵɵelementContainerStart(index: number, attrsIndex?: nu
|
|
|
12015
12056
|
*/
|
|
12016
12057
|
export declare function ɵɵelementEnd(): void;
|
|
12017
12058
|
|
|
12018
|
-
/**
|
|
12019
|
-
* Assign static attribute values to a host element.
|
|
12020
|
-
*
|
|
12021
|
-
* This instruction will assign static attribute values as well as class and style
|
|
12022
|
-
* values to an element within the host bindings function. Since attribute values
|
|
12023
|
-
* can consist of different types of values, the `attrs` array must include the values in
|
|
12024
|
-
* the following format:
|
|
12025
|
-
*
|
|
12026
|
-
* attrs = [
|
|
12027
|
-
* // static attributes (like `title`, `name`, `id`...)
|
|
12028
|
-
* attr1, value1, attr2, value,
|
|
12029
|
-
*
|
|
12030
|
-
* // a single namespace value (like `x:id`)
|
|
12031
|
-
* NAMESPACE_MARKER, namespaceUri1, name1, value1,
|
|
12032
|
-
*
|
|
12033
|
-
* // another single namespace value (like `x:name`)
|
|
12034
|
-
* NAMESPACE_MARKER, namespaceUri2, name2, value2,
|
|
12035
|
-
*
|
|
12036
|
-
* // a series of CSS classes that will be applied to the element (no spaces)
|
|
12037
|
-
* CLASSES_MARKER, class1, class2, class3,
|
|
12038
|
-
*
|
|
12039
|
-
* // a series of CSS styles (property + value) that will be applied to the element
|
|
12040
|
-
* STYLES_MARKER, prop1, value1, prop2, value2
|
|
12041
|
-
* ]
|
|
12042
|
-
*
|
|
12043
|
-
* All non-class and non-style attributes must be defined at the start of the list
|
|
12044
|
-
* first before all class and style values are set. When there is a change in value
|
|
12045
|
-
* type (like when classes and styles are introduced) a marker must be used to separate
|
|
12046
|
-
* the entries. The marker values themselves are set via entries found in the
|
|
12047
|
-
* [AttributeMarker] enum.
|
|
12048
|
-
*
|
|
12049
|
-
* NOTE: This instruction is meant to used from `hostBindings` function only.
|
|
12050
|
-
*
|
|
12051
|
-
* @param directive A directive instance the styling is associated with.
|
|
12052
|
-
* @param attrs An array of static values (attributes, classes and styles) with the correct marker
|
|
12053
|
-
* values.
|
|
12054
|
-
*
|
|
12055
|
-
* @codeGenApi
|
|
12056
|
-
*/
|
|
12057
|
-
export declare function ɵɵelementHostAttrs(attrs: TAttributes): void;
|
|
12058
12059
|
|
|
12059
12060
|
/**
|
|
12060
12061
|
* Create DOM element. The instruction must later be followed by `elementEnd()` call.
|
|
@@ -13038,7 +13039,6 @@ export declare function ɵɵpropertyInterpolateV(propName: string, values: any[]
|
|
|
13038
13039
|
*/
|
|
13039
13040
|
export declare function ɵɵProvidersFeature<T>(providers: Provider[], viewProviders?: Provider[]): (definition: ɵDirectiveDef<T>) => void;
|
|
13040
13041
|
|
|
13041
|
-
|
|
13042
13042
|
/**
|
|
13043
13043
|
* Bindings for pure functions are stored after regular bindings.
|
|
13044
13044
|
*
|
|
@@ -13471,7 +13471,7 @@ export declare function ɵɵstaticViewQuery<T>(predicate: Type<any> | string[],
|
|
|
13471
13471
|
*/
|
|
13472
13472
|
export declare function ɵɵstyleMap(styles: {
|
|
13473
13473
|
[styleName: string]: any;
|
|
13474
|
-
} |
|
|
13474
|
+
} | Map<string, string | number | null | undefined> | string | undefined | null): void;
|
|
13475
13475
|
|
|
13476
13476
|
/**
|
|
13477
13477
|
* Update a style binding on an element with the provided value.
|
|
@@ -13494,7 +13494,8 @@ export declare function ɵɵstyleMap(styles: {
|
|
|
13494
13494
|
*
|
|
13495
13495
|
* @codeGenApi
|
|
13496
13496
|
*/
|
|
13497
|
-
export declare function ɵɵstyleProp(prop: string, value: string | number | ɵSafeValue | null, suffix?: string | null): typeof ɵɵstyleProp;
|
|
13497
|
+
export declare function ɵɵstyleProp(prop: string, value: string | number | ɵSafeValue | undefined | null, suffix?: string | null): typeof ɵɵstyleProp;
|
|
13498
|
+
|
|
13498
13499
|
|
|
13499
13500
|
/**
|
|
13500
13501
|
*
|
|
@@ -13810,15 +13811,6 @@ export declare function ɵɵstylePropInterpolate8(prop: string, prefix: string,
|
|
|
13810
13811
|
*/
|
|
13811
13812
|
export declare function ɵɵstylePropInterpolateV(prop: string, values: any[], valueSuffix?: string | null): typeof ɵɵstylePropInterpolateV;
|
|
13812
13813
|
|
|
13813
|
-
/**
|
|
13814
|
-
* --------
|
|
13815
|
-
*
|
|
13816
|
-
* This file contains the core logic for how styling instructions are processed in Angular.
|
|
13817
|
-
*
|
|
13818
|
-
* To learn more about the algorithm see `TStylingContext`.
|
|
13819
|
-
*
|
|
13820
|
-
* --------
|
|
13821
|
-
*/
|
|
13822
13814
|
/**
|
|
13823
13815
|
* Sets the current style sanitizer function which will then be used
|
|
13824
13816
|
* within all follow-up prop and map-based style binding instructions
|
|
@@ -13864,7 +13856,7 @@ export declare function ɵɵtemplate(index: number, templateFn: ComponentTemplat
|
|
|
13864
13856
|
*
|
|
13865
13857
|
* @codeGenApi
|
|
13866
13858
|
*/
|
|
13867
|
-
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵ
|
|
13859
|
+
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵangular_packages_core_core_bo): TemplateRef<unknown> | null;
|
|
13868
13860
|
|
|
13869
13861
|
/**
|
|
13870
13862
|
* Create static text node
|