@angular/platform-server 16.0.0-next.6 → 16.0.0-next.7
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/esm2022/src/bundled-domino.mjs +44 -404
- package/esm2022/src/http.mjs +3 -3
- package/esm2022/src/location.mjs +3 -3
- package/esm2022/src/platform-server.mjs +2 -2
- package/esm2022/src/platform_state.mjs +3 -3
- package/esm2022/src/private_export.mjs +1 -2
- package/esm2022/src/provide_server.mjs +3 -3
- package/esm2022/src/server.mjs +7 -18
- package/esm2022/src/server_events.mjs +3 -3
- package/esm2022/src/transfer_state.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/server.mjs +4 -4
- package/fesm2022/init.mjs +1 -1
- package/fesm2022/platform-server.mjs +72 -709
- package/fesm2022/platform-server.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +3 -26
- package/init/index.d.ts +1 -1
- package/package.json +7 -7
- package/testing/index.d.ts +1 -1
- package/esm2022/src/server_renderer.mjs +0 -279
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0-next.
|
|
2
|
+
* @license Angular v16.0.0-next.7
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { ɵsetRootDomAdapter, DOCUMENT, XhrFactory, ɵgetDOM, ɵPLATFORM_SERVER_ID, PlatformLocation, ViewportScroller, ɵNullViewportScroller } from '@angular/common';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { Injectable, Inject, InjectionToken, Optional,
|
|
10
|
-
import
|
|
11
|
-
import { ɵBrowserDomAdapter, ɵshimStyles, ɵNAMESPACE_URIS, ɵshimContentAttribute, ɵshimHostAttribute, EVENT_MANAGER_PLUGINS, BrowserModule } from '@angular/platform-browser';
|
|
9
|
+
import { Injectable, Inject, InjectionToken, Optional, APP_ID, TransferState, ɵescapeTransferStateContent, NgModule, Injector, PLATFORM_ID, PLATFORM_INITIALIZER, ɵALLOW_MULTIPLE_PLATFORMS, Testability, ɵTESTABILITY, ɵsetDocument, createPlatformFactory, platformCore, makeEnvironmentProviders, Renderer2, ApplicationRef, ɵInitialRenderPendingTasks, ɵIS_HYDRATION_FEATURE_ENABLED, ɵannotateForHydration, ɵisPromise, Version } from '@angular/core';
|
|
10
|
+
import { ɵBrowserDomAdapter, EVENT_MANAGER_PLUGINS, BrowserModule } from '@angular/platform-browser';
|
|
12
11
|
import { HttpClientModule, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
13
|
-
import {
|
|
14
|
-
import { ɵAnimationEngine } from '@angular/animations/browser';
|
|
12
|
+
import { NoopAnimationsModule, provideNoopAnimations } from '@angular/platform-browser/animations';
|
|
15
13
|
import { ɵplatformCoreDynamic } from '@angular/platform-browser-dynamic';
|
|
16
14
|
import * as xhr2 from 'xhr2';
|
|
17
15
|
import { Subject } from 'rxjs';
|
|
18
16
|
import * as url from 'url';
|
|
19
|
-
import { DomElementSchemaRegistry } from '@angular/compiler';
|
|
20
17
|
import { first } from 'rxjs/operators';
|
|
21
18
|
|
|
22
19
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -4869,7 +4866,29 @@ var require_CSSStyleDeclaration = __commonJS({
|
|
|
4869
4866
|
"external/npm/node_modules/domino/lib/CSSStyleDeclaration.js"(exports, module) {
|
|
4870
4867
|
"use strict";
|
|
4871
4868
|
var { parse } = require_style_parser();
|
|
4872
|
-
module.exports =
|
|
4869
|
+
module.exports = function(elt) {
|
|
4870
|
+
const style = new CSSStyleDeclaration(elt);
|
|
4871
|
+
const handler = {
|
|
4872
|
+
get: function(target, property) {
|
|
4873
|
+
return property in target ? target[property] : target.getPropertyValue(dasherizeProperty(property));
|
|
4874
|
+
},
|
|
4875
|
+
has: function(target, key) {
|
|
4876
|
+
return true;
|
|
4877
|
+
},
|
|
4878
|
+
set: function(target, property, value) {
|
|
4879
|
+
if (property in target) {
|
|
4880
|
+
target[property] = value;
|
|
4881
|
+
} else {
|
|
4882
|
+
target.setProperty(dasherizeProperty(property), value != null ? value : void 0);
|
|
4883
|
+
}
|
|
4884
|
+
return true;
|
|
4885
|
+
}
|
|
4886
|
+
};
|
|
4887
|
+
return new Proxy(style, handler);
|
|
4888
|
+
};
|
|
4889
|
+
function dasherizeProperty(property) {
|
|
4890
|
+
return property.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4891
|
+
}
|
|
4873
4892
|
function CSSStyleDeclaration(elt) {
|
|
4874
4893
|
this._element = elt;
|
|
4875
4894
|
}
|
|
@@ -5018,396 +5037,6 @@ var require_CSSStyleDeclaration = __commonJS({
|
|
|
5018
5037
|
}
|
|
5019
5038
|
} }
|
|
5020
5039
|
});
|
|
5021
|
-
var cssProperties = {
|
|
5022
|
-
alignContent: "align-content",
|
|
5023
|
-
alignItems: "align-items",
|
|
5024
|
-
alignmentBaseline: "alignment-baseline",
|
|
5025
|
-
alignSelf: "align-self",
|
|
5026
|
-
animation: "animation",
|
|
5027
|
-
animationDelay: "animation-delay",
|
|
5028
|
-
animationDirection: "animation-direction",
|
|
5029
|
-
animationDuration: "animation-duration",
|
|
5030
|
-
animationFillMode: "animation-fill-mode",
|
|
5031
|
-
animationIterationCount: "animation-iteration-count",
|
|
5032
|
-
animationName: "animation-name",
|
|
5033
|
-
animationPlayState: "animation-play-state",
|
|
5034
|
-
animationTimingFunction: "animation-timing-function",
|
|
5035
|
-
backfaceVisibility: "backface-visibility",
|
|
5036
|
-
background: "background",
|
|
5037
|
-
backgroundAttachment: "background-attachment",
|
|
5038
|
-
backgroundClip: "background-clip",
|
|
5039
|
-
backgroundColor: "background-color",
|
|
5040
|
-
backgroundImage: "background-image",
|
|
5041
|
-
backgroundOrigin: "background-origin",
|
|
5042
|
-
backgroundPosition: "background-position",
|
|
5043
|
-
backgroundPositionX: "background-position-x",
|
|
5044
|
-
backgroundPositionY: "background-position-y",
|
|
5045
|
-
backgroundRepeat: "background-repeat",
|
|
5046
|
-
backgroundSize: "background-size",
|
|
5047
|
-
baselineShift: "baseline-shift",
|
|
5048
|
-
border: "border",
|
|
5049
|
-
borderBottom: "border-bottom",
|
|
5050
|
-
borderBottomColor: "border-bottom-color",
|
|
5051
|
-
borderBottomLeftRadius: "border-bottom-left-radius",
|
|
5052
|
-
borderBottomRightRadius: "border-bottom-right-radius",
|
|
5053
|
-
borderBottomStyle: "border-bottom-style",
|
|
5054
|
-
borderBottomWidth: "border-bottom-width",
|
|
5055
|
-
borderCollapse: "border-collapse",
|
|
5056
|
-
borderColor: "border-color",
|
|
5057
|
-
borderImage: "border-image",
|
|
5058
|
-
borderImageOutset: "border-image-outset",
|
|
5059
|
-
borderImageRepeat: "border-image-repeat",
|
|
5060
|
-
borderImageSlice: "border-image-slice",
|
|
5061
|
-
borderImageSource: "border-image-source",
|
|
5062
|
-
borderImageWidth: "border-image-width",
|
|
5063
|
-
borderLeft: "border-left",
|
|
5064
|
-
borderLeftColor: "border-left-color",
|
|
5065
|
-
borderLeftStyle: "border-left-style",
|
|
5066
|
-
borderLeftWidth: "border-left-width",
|
|
5067
|
-
borderRadius: "border-radius",
|
|
5068
|
-
borderRight: "border-right",
|
|
5069
|
-
borderRightColor: "border-right-color",
|
|
5070
|
-
borderRightStyle: "border-right-style",
|
|
5071
|
-
borderRightWidth: "border-right-width",
|
|
5072
|
-
borderSpacing: "border-spacing",
|
|
5073
|
-
borderStyle: "border-style",
|
|
5074
|
-
borderTop: "border-top",
|
|
5075
|
-
borderTopColor: "border-top-color",
|
|
5076
|
-
borderTopLeftRadius: "border-top-left-radius",
|
|
5077
|
-
borderTopRightRadius: "border-top-right-radius",
|
|
5078
|
-
borderTopStyle: "border-top-style",
|
|
5079
|
-
borderTopWidth: "border-top-width",
|
|
5080
|
-
borderWidth: "border-width",
|
|
5081
|
-
bottom: "bottom",
|
|
5082
|
-
boxShadow: "box-shadow",
|
|
5083
|
-
boxSizing: "box-sizing",
|
|
5084
|
-
breakAfter: "break-after",
|
|
5085
|
-
breakBefore: "break-before",
|
|
5086
|
-
breakInside: "break-inside",
|
|
5087
|
-
captionSide: "caption-side",
|
|
5088
|
-
clear: "clear",
|
|
5089
|
-
clip: "clip",
|
|
5090
|
-
clipPath: "clip-path",
|
|
5091
|
-
clipRule: "clip-rule",
|
|
5092
|
-
color: "color",
|
|
5093
|
-
colorInterpolationFilters: "color-interpolation-filters",
|
|
5094
|
-
columnCount: "column-count",
|
|
5095
|
-
columnFill: "column-fill",
|
|
5096
|
-
columnGap: "column-gap",
|
|
5097
|
-
columnRule: "column-rule",
|
|
5098
|
-
columnRuleColor: "column-rule-color",
|
|
5099
|
-
columnRuleStyle: "column-rule-style",
|
|
5100
|
-
columnRuleWidth: "column-rule-width",
|
|
5101
|
-
columns: "columns",
|
|
5102
|
-
columnSpan: "column-span",
|
|
5103
|
-
columnWidth: "column-width",
|
|
5104
|
-
content: "content",
|
|
5105
|
-
counterIncrement: "counter-increment",
|
|
5106
|
-
counterReset: "counter-reset",
|
|
5107
|
-
cssFloat: "float",
|
|
5108
|
-
cursor: "cursor",
|
|
5109
|
-
direction: "direction",
|
|
5110
|
-
display: "display",
|
|
5111
|
-
dominantBaseline: "dominant-baseline",
|
|
5112
|
-
emptyCells: "empty-cells",
|
|
5113
|
-
enableBackground: "enable-background",
|
|
5114
|
-
fill: "fill",
|
|
5115
|
-
fillOpacity: "fill-opacity",
|
|
5116
|
-
fillRule: "fill-rule",
|
|
5117
|
-
filter: "filter",
|
|
5118
|
-
flex: "flex",
|
|
5119
|
-
flexBasis: "flex-basis",
|
|
5120
|
-
flexDirection: "flex-direction",
|
|
5121
|
-
flexFlow: "flex-flow",
|
|
5122
|
-
flexGrow: "flex-grow",
|
|
5123
|
-
flexShrink: "flex-shrink",
|
|
5124
|
-
flexWrap: "flex-wrap",
|
|
5125
|
-
floodColor: "flood-color",
|
|
5126
|
-
floodOpacity: "flood-opacity",
|
|
5127
|
-
font: "font",
|
|
5128
|
-
fontFamily: "font-family",
|
|
5129
|
-
fontFeatureSettings: "font-feature-settings",
|
|
5130
|
-
fontSize: "font-size",
|
|
5131
|
-
fontSizeAdjust: "font-size-adjust",
|
|
5132
|
-
fontStretch: "font-stretch",
|
|
5133
|
-
fontStyle: "font-style",
|
|
5134
|
-
fontVariant: "font-variant",
|
|
5135
|
-
fontWeight: "font-weight",
|
|
5136
|
-
glyphOrientationHorizontal: "glyph-orientation-horizontal",
|
|
5137
|
-
glyphOrientationVertical: "glyph-orientation-vertical",
|
|
5138
|
-
grid: "grid",
|
|
5139
|
-
gridArea: "grid-area",
|
|
5140
|
-
gridAutoColumns: "grid-auto-columns",
|
|
5141
|
-
gridAutoFlow: "grid-auto-flow",
|
|
5142
|
-
gridAutoRows: "grid-auto-rows",
|
|
5143
|
-
gridColumn: "grid-column",
|
|
5144
|
-
gridColumnEnd: "grid-column-end",
|
|
5145
|
-
gridColumnGap: "grid-column-gap",
|
|
5146
|
-
gridColumnStart: "grid-column-start",
|
|
5147
|
-
gridGap: "grid-gap",
|
|
5148
|
-
gridRow: "grid-row",
|
|
5149
|
-
gridRowEnd: "grid-row-end",
|
|
5150
|
-
gridRowGap: "grid-row-gap",
|
|
5151
|
-
gridRowStart: "grid-row-start",
|
|
5152
|
-
gridTemplate: "grid-template",
|
|
5153
|
-
gridTemplateAreas: "grid-template-areas",
|
|
5154
|
-
gridTemplateColumns: "grid-template-columns",
|
|
5155
|
-
gridTemplateRows: "grid-template-rows",
|
|
5156
|
-
height: "height",
|
|
5157
|
-
imeMode: "ime-mode",
|
|
5158
|
-
justifyContent: "justify-content",
|
|
5159
|
-
kerning: "kerning",
|
|
5160
|
-
layoutGrid: "layout-grid",
|
|
5161
|
-
layoutGridChar: "layout-grid-char",
|
|
5162
|
-
layoutGridLine: "layout-grid-line",
|
|
5163
|
-
layoutGridMode: "layout-grid-mode",
|
|
5164
|
-
layoutGridType: "layout-grid-type",
|
|
5165
|
-
left: "left",
|
|
5166
|
-
letterSpacing: "letter-spacing",
|
|
5167
|
-
lightingColor: "lighting-color",
|
|
5168
|
-
lineBreak: "line-break",
|
|
5169
|
-
lineHeight: "line-height",
|
|
5170
|
-
listStyle: "list-style",
|
|
5171
|
-
listStyleImage: "list-style-image",
|
|
5172
|
-
listStylePosition: "list-style-position",
|
|
5173
|
-
listStyleType: "list-style-type",
|
|
5174
|
-
margin: "margin",
|
|
5175
|
-
marginBottom: "margin-bottom",
|
|
5176
|
-
marginLeft: "margin-left",
|
|
5177
|
-
marginRight: "margin-right",
|
|
5178
|
-
marginTop: "margin-top",
|
|
5179
|
-
marker: "marker",
|
|
5180
|
-
markerEnd: "marker-end",
|
|
5181
|
-
markerMid: "marker-mid",
|
|
5182
|
-
markerStart: "marker-start",
|
|
5183
|
-
mask: "mask",
|
|
5184
|
-
maxHeight: "max-height",
|
|
5185
|
-
maxWidth: "max-width",
|
|
5186
|
-
minHeight: "min-height",
|
|
5187
|
-
minWidth: "min-width",
|
|
5188
|
-
msContentZoomChaining: "-ms-content-zoom-chaining",
|
|
5189
|
-
msContentZooming: "-ms-content-zooming",
|
|
5190
|
-
msContentZoomLimit: "-ms-content-zoom-limit",
|
|
5191
|
-
msContentZoomLimitMax: "-ms-content-zoom-limit-max",
|
|
5192
|
-
msContentZoomLimitMin: "-ms-content-zoom-limit-min",
|
|
5193
|
-
msContentZoomSnap: "-ms-content-zoom-snap",
|
|
5194
|
-
msContentZoomSnapPoints: "-ms-content-zoom-snap-points",
|
|
5195
|
-
msContentZoomSnapType: "-ms-content-zoom-snap-type",
|
|
5196
|
-
msFlowFrom: "-ms-flow-from",
|
|
5197
|
-
msFlowInto: "-ms-flow-into",
|
|
5198
|
-
msFontFeatureSettings: "-ms-font-feature-settings",
|
|
5199
|
-
msGridColumn: "-ms-grid-column",
|
|
5200
|
-
msGridColumnAlign: "-ms-grid-column-align",
|
|
5201
|
-
msGridColumns: "-ms-grid-columns",
|
|
5202
|
-
msGridColumnSpan: "-ms-grid-column-span",
|
|
5203
|
-
msGridRow: "-ms-grid-row",
|
|
5204
|
-
msGridRowAlign: "-ms-grid-row-align",
|
|
5205
|
-
msGridRows: "-ms-grid-rows",
|
|
5206
|
-
msGridRowSpan: "-ms-grid-row-span",
|
|
5207
|
-
msHighContrastAdjust: "-ms-high-contrast-adjust",
|
|
5208
|
-
msHyphenateLimitChars: "-ms-hyphenate-limit-chars",
|
|
5209
|
-
msHyphenateLimitLines: "-ms-hyphenate-limit-lines",
|
|
5210
|
-
msHyphenateLimitZone: "-ms-hyphenate-limit-zone",
|
|
5211
|
-
msHyphens: "-ms-hyphens",
|
|
5212
|
-
msImeAlign: "-ms-ime-align",
|
|
5213
|
-
msOverflowStyle: "-ms-overflow-style",
|
|
5214
|
-
msScrollChaining: "-ms-scroll-chaining",
|
|
5215
|
-
msScrollLimit: "-ms-scroll-limit",
|
|
5216
|
-
msScrollLimitXMax: "-ms-scroll-limit-x-max",
|
|
5217
|
-
msScrollLimitXMin: "-ms-scroll-limit-x-min",
|
|
5218
|
-
msScrollLimitYMax: "-ms-scroll-limit-y-max",
|
|
5219
|
-
msScrollLimitYMin: "-ms-scroll-limit-y-min",
|
|
5220
|
-
msScrollRails: "-ms-scroll-rails",
|
|
5221
|
-
msScrollSnapPointsX: "-ms-scroll-snap-points-x",
|
|
5222
|
-
msScrollSnapPointsY: "-ms-scroll-snap-points-y",
|
|
5223
|
-
msScrollSnapType: "-ms-scroll-snap-type",
|
|
5224
|
-
msScrollSnapX: "-ms-scroll-snap-x",
|
|
5225
|
-
msScrollSnapY: "-ms-scroll-snap-y",
|
|
5226
|
-
msScrollTranslation: "-ms-scroll-translation",
|
|
5227
|
-
msTextCombineHorizontal: "-ms-text-combine-horizontal",
|
|
5228
|
-
msTextSizeAdjust: "-ms-text-size-adjust",
|
|
5229
|
-
msTouchAction: "-ms-touch-action",
|
|
5230
|
-
msTouchSelect: "-ms-touch-select",
|
|
5231
|
-
msUserSelect: "-ms-user-select",
|
|
5232
|
-
msWrapFlow: "-ms-wrap-flow",
|
|
5233
|
-
msWrapMargin: "-ms-wrap-margin",
|
|
5234
|
-
msWrapThrough: "-ms-wrap-through",
|
|
5235
|
-
opacity: "opacity",
|
|
5236
|
-
order: "order",
|
|
5237
|
-
orphans: "orphans",
|
|
5238
|
-
outline: "outline",
|
|
5239
|
-
outlineColor: "outline-color",
|
|
5240
|
-
outlineOffset: "outline-offset",
|
|
5241
|
-
outlineStyle: "outline-style",
|
|
5242
|
-
outlineWidth: "outline-width",
|
|
5243
|
-
overflow: "overflow",
|
|
5244
|
-
overflowX: "overflow-x",
|
|
5245
|
-
overflowY: "overflow-y",
|
|
5246
|
-
padding: "padding",
|
|
5247
|
-
paddingBottom: "padding-bottom",
|
|
5248
|
-
paddingLeft: "padding-left",
|
|
5249
|
-
paddingRight: "padding-right",
|
|
5250
|
-
paddingTop: "padding-top",
|
|
5251
|
-
page: "page",
|
|
5252
|
-
pageBreakAfter: "page-break-after",
|
|
5253
|
-
pageBreakBefore: "page-break-before",
|
|
5254
|
-
pageBreakInside: "page-break-inside",
|
|
5255
|
-
perspective: "perspective",
|
|
5256
|
-
perspectiveOrigin: "perspective-origin",
|
|
5257
|
-
pointerEvents: "pointer-events",
|
|
5258
|
-
position: "position",
|
|
5259
|
-
quotes: "quotes",
|
|
5260
|
-
right: "right",
|
|
5261
|
-
rotate: "rotate",
|
|
5262
|
-
rubyAlign: "ruby-align",
|
|
5263
|
-
rubyOverhang: "ruby-overhang",
|
|
5264
|
-
rubyPosition: "ruby-position",
|
|
5265
|
-
scale: "scale",
|
|
5266
|
-
size: "size",
|
|
5267
|
-
stopColor: "stop-color",
|
|
5268
|
-
stopOpacity: "stop-opacity",
|
|
5269
|
-
stroke: "stroke",
|
|
5270
|
-
strokeDasharray: "stroke-dasharray",
|
|
5271
|
-
strokeDashoffset: "stroke-dashoffset",
|
|
5272
|
-
strokeLinecap: "stroke-linecap",
|
|
5273
|
-
strokeLinejoin: "stroke-linejoin",
|
|
5274
|
-
strokeMiterlimit: "stroke-miterlimit",
|
|
5275
|
-
strokeOpacity: "stroke-opacity",
|
|
5276
|
-
strokeWidth: "stroke-width",
|
|
5277
|
-
tableLayout: "table-layout",
|
|
5278
|
-
textAlign: "text-align",
|
|
5279
|
-
textAlignLast: "text-align-last",
|
|
5280
|
-
textAnchor: "text-anchor",
|
|
5281
|
-
textDecoration: "text-decoration",
|
|
5282
|
-
textIndent: "text-indent",
|
|
5283
|
-
textJustify: "text-justify",
|
|
5284
|
-
textKashida: "text-kashida",
|
|
5285
|
-
textKashidaSpace: "text-kashida-space",
|
|
5286
|
-
textOverflow: "text-overflow",
|
|
5287
|
-
textShadow: "text-shadow",
|
|
5288
|
-
textTransform: "text-transform",
|
|
5289
|
-
textUnderlinePosition: "text-underline-position",
|
|
5290
|
-
top: "top",
|
|
5291
|
-
touchAction: "touch-action",
|
|
5292
|
-
transform: "transform",
|
|
5293
|
-
transformOrigin: "transform-origin",
|
|
5294
|
-
transformStyle: "transform-style",
|
|
5295
|
-
transition: "transition",
|
|
5296
|
-
transitionDelay: "transition-delay",
|
|
5297
|
-
transitionDuration: "transition-duration",
|
|
5298
|
-
transitionProperty: "transition-property",
|
|
5299
|
-
transitionTimingFunction: "transition-timing-function",
|
|
5300
|
-
translate: "translate",
|
|
5301
|
-
unicodeBidi: "unicode-bidi",
|
|
5302
|
-
verticalAlign: "vertical-align",
|
|
5303
|
-
visibility: "visibility",
|
|
5304
|
-
webkitAlignContent: "-webkit-align-content",
|
|
5305
|
-
webkitAlignItems: "-webkit-align-items",
|
|
5306
|
-
webkitAlignSelf: "-webkit-align-self",
|
|
5307
|
-
webkitAnimation: "-webkit-animation",
|
|
5308
|
-
webkitAnimationDelay: "-webkit-animation-delay",
|
|
5309
|
-
webkitAnimationDirection: "-webkit-animation-direction",
|
|
5310
|
-
webkitAnimationDuration: "-webkit-animation-duration",
|
|
5311
|
-
webkitAnimationFillMode: "-webkit-animation-fill-mode",
|
|
5312
|
-
webkitAnimationIterationCount: "-webkit-animation-iteration-count",
|
|
5313
|
-
webkitAnimationName: "-webkit-animation-name",
|
|
5314
|
-
webkitAnimationPlayState: "-webkit-animation-play-state",
|
|
5315
|
-
webkitAnimationTimingFunction: "-webkit-animation-timing-funciton",
|
|
5316
|
-
webkitAppearance: "-webkit-appearance",
|
|
5317
|
-
webkitBackfaceVisibility: "-webkit-backface-visibility",
|
|
5318
|
-
webkitBackgroundClip: "-webkit-background-clip",
|
|
5319
|
-
webkitBackgroundOrigin: "-webkit-background-origin",
|
|
5320
|
-
webkitBackgroundSize: "-webkit-background-size",
|
|
5321
|
-
webkitBorderBottomLeftRadius: "-webkit-border-bottom-left-radius",
|
|
5322
|
-
webkitBorderBottomRightRadius: "-webkit-border-bottom-right-radius",
|
|
5323
|
-
webkitBorderImage: "-webkit-border-image",
|
|
5324
|
-
webkitBorderRadius: "-webkit-border-radius",
|
|
5325
|
-
webkitBorderTopLeftRadius: "-webkit-border-top-left-radius",
|
|
5326
|
-
webkitBorderTopRightRadius: "-webkit-border-top-right-radius",
|
|
5327
|
-
webkitBoxAlign: "-webkit-box-align",
|
|
5328
|
-
webkitBoxDirection: "-webkit-box-direction",
|
|
5329
|
-
webkitBoxFlex: "-webkit-box-flex",
|
|
5330
|
-
webkitBoxOrdinalGroup: "-webkit-box-ordinal-group",
|
|
5331
|
-
webkitBoxOrient: "-webkit-box-orient",
|
|
5332
|
-
webkitBoxPack: "-webkit-box-pack",
|
|
5333
|
-
webkitBoxSizing: "-webkit-box-sizing",
|
|
5334
|
-
webkitColumnBreakAfter: "-webkit-column-break-after",
|
|
5335
|
-
webkitColumnBreakBefore: "-webkit-column-break-before",
|
|
5336
|
-
webkitColumnBreakInside: "-webkit-column-break-inside",
|
|
5337
|
-
webkitColumnCount: "-webkit-column-count",
|
|
5338
|
-
webkitColumnGap: "-webkit-column-gap",
|
|
5339
|
-
webkitColumnRule: "-webkit-column-rule",
|
|
5340
|
-
webkitColumnRuleColor: "-webkit-column-rule-color",
|
|
5341
|
-
webkitColumnRuleStyle: "-webkit-column-rule-style",
|
|
5342
|
-
webkitColumnRuleWidth: "-webkit-column-rule-width",
|
|
5343
|
-
webkitColumns: "-webkit-columns",
|
|
5344
|
-
webkitColumnSpan: "-webkit-column-span",
|
|
5345
|
-
webkitColumnWidth: "-webkit-column-width",
|
|
5346
|
-
webkitFilter: "-webkit-filter",
|
|
5347
|
-
webkitFlex: "-webkit-flex",
|
|
5348
|
-
webkitFlexBasis: "-webkit-flex-basis",
|
|
5349
|
-
webkitFlexDirection: "-webkit-flex-direction",
|
|
5350
|
-
webkitFlexFlow: "-webkit-flex-flow",
|
|
5351
|
-
webkitFlexGrow: "-webkit-flex-grow",
|
|
5352
|
-
webkitFlexShrink: "-webkit-flex-shrink",
|
|
5353
|
-
webkitFlexWrap: "-webkit-flex-wrap",
|
|
5354
|
-
webkitJustifyContent: "-webkit-justify-content",
|
|
5355
|
-
webkitOrder: "-webkit-order",
|
|
5356
|
-
webkitPerspective: "-webkit-perspective-origin",
|
|
5357
|
-
webkitPerspectiveOrigin: "-webkit-perspective-origin",
|
|
5358
|
-
webkitTapHighlightColor: "-webkit-tap-highlight-color",
|
|
5359
|
-
webkitTextFillColor: "-webkit-text-fill-color",
|
|
5360
|
-
webkitTextSizeAdjust: "-webkit-text-size-adjust",
|
|
5361
|
-
webkitTextStroke: "-webkit-text-stroke",
|
|
5362
|
-
webkitTextStrokeColor: "-webkit-text-stroke-color",
|
|
5363
|
-
webkitTextStrokeWidth: "-webkit-text-stroke-width",
|
|
5364
|
-
webkitTransform: "-webkit-transform",
|
|
5365
|
-
webkitTransformOrigin: "-webkit-transform-origin",
|
|
5366
|
-
webkitTransformStyle: "-webkit-transform-style",
|
|
5367
|
-
webkitTransition: "-webkit-transition",
|
|
5368
|
-
webkitTransitionDelay: "-webkit-transition-delay",
|
|
5369
|
-
webkitTransitionDuration: "-webkit-transition-duration",
|
|
5370
|
-
webkitTransitionProperty: "-webkit-transition-property",
|
|
5371
|
-
webkitTransitionTimingFunction: "-webkit-transition-timing-function",
|
|
5372
|
-
webkitUserModify: "-webkit-user-modify",
|
|
5373
|
-
webkitUserSelect: "-webkit-user-select",
|
|
5374
|
-
webkitWritingMode: "-webkit-writing-mode",
|
|
5375
|
-
whiteSpace: "white-space",
|
|
5376
|
-
widows: "widows",
|
|
5377
|
-
width: "width",
|
|
5378
|
-
wordBreak: "word-break",
|
|
5379
|
-
wordSpacing: "word-spacing",
|
|
5380
|
-
wordWrap: "word-wrap",
|
|
5381
|
-
writingMode: "writing-mode",
|
|
5382
|
-
zIndex: "z-index",
|
|
5383
|
-
zoom: "zoom",
|
|
5384
|
-
resize: "resize",
|
|
5385
|
-
userSelect: "user-select"
|
|
5386
|
-
};
|
|
5387
|
-
for (prop in cssProperties)
|
|
5388
|
-
defineStyleProperty(prop);
|
|
5389
|
-
var prop;
|
|
5390
|
-
function defineStyleProperty(jsname) {
|
|
5391
|
-
var cssname = cssProperties[jsname];
|
|
5392
|
-
Object.defineProperty(CSSStyleDeclaration.prototype, jsname, {
|
|
5393
|
-
get: function() {
|
|
5394
|
-
return this.getPropertyValue(cssname);
|
|
5395
|
-
},
|
|
5396
|
-
set: function(value) {
|
|
5397
|
-
this.setProperty(cssname, value);
|
|
5398
|
-
}
|
|
5399
|
-
});
|
|
5400
|
-
if (!CSSStyleDeclaration.prototype.hasOwnProperty(cssname)) {
|
|
5401
|
-
Object.defineProperty(CSSStyleDeclaration.prototype, cssname, {
|
|
5402
|
-
get: function() {
|
|
5403
|
-
return this.getPropertyValue(cssname);
|
|
5404
|
-
},
|
|
5405
|
-
set: function(value) {
|
|
5406
|
-
this.setProperty(cssname, value);
|
|
5407
|
-
}
|
|
5408
|
-
});
|
|
5409
|
-
}
|
|
5410
|
-
}
|
|
5411
5040
|
}
|
|
5412
5041
|
});
|
|
5413
5042
|
|
|
@@ -5874,8 +5503,15 @@ var require_htmlelts = __commonJS({
|
|
|
5874
5503
|
title: String,
|
|
5875
5504
|
lang: String,
|
|
5876
5505
|
dir: { type: ["ltr", "rtl", "auto"], missing: "" },
|
|
5506
|
+
draggable: { type: ["true", "false"], treatNullAsEmptyString: true },
|
|
5507
|
+
spellcheck: { type: ["true", "false"], missing: "" },
|
|
5508
|
+
enterKeyHint: { type: ["enter", "done", "go", "next", "previous", "search", "send"], missing: "" },
|
|
5509
|
+
autoCapitalize: { type: ["off", "on", "none", "sentences", "words", "characters"], missing: "" },
|
|
5510
|
+
autoFocus: Boolean,
|
|
5877
5511
|
accessKey: String,
|
|
5512
|
+
nonce: String,
|
|
5878
5513
|
hidden: Boolean,
|
|
5514
|
+
translate: { type: ["no", "yes"], missing: "" },
|
|
5879
5515
|
tabIndex: { type: "long", default: function() {
|
|
5880
5516
|
if (this.tagName in focusableElements || this.contentEditable)
|
|
5881
5517
|
return 0;
|
|
@@ -6074,6 +5710,7 @@ var require_htmlelts = __commonJS({
|
|
|
6074
5710
|
autofocus: Boolean,
|
|
6075
5711
|
type: { type: ["submit", "reset", "button", "menu"], missing: "submit" },
|
|
6076
5712
|
formTarget: String,
|
|
5713
|
+
formAction: URL,
|
|
6077
5714
|
formNoValidate: Boolean,
|
|
6078
5715
|
formMethod: { type: ["get", "post", "dialog"], invalid: "get", missing: "" },
|
|
6079
5716
|
formEnctype: { type: ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], invalid: "application/x-www-form-urlencoded", missing: "" }
|
|
@@ -6209,6 +5846,7 @@ var require_htmlelts = __commonJS({
|
|
|
6209
5846
|
HTMLElement.call(this, doc, localName, prefix);
|
|
6210
5847
|
},
|
|
6211
5848
|
attributes: {
|
|
5849
|
+
xmlns: URL,
|
|
6212
5850
|
version: String
|
|
6213
5851
|
}
|
|
6214
5852
|
});
|
|
@@ -6225,10 +5863,12 @@ var require_htmlelts = __commonJS({
|
|
|
6225
5863
|
width: String,
|
|
6226
5864
|
height: String,
|
|
6227
5865
|
seamless: Boolean,
|
|
5866
|
+
allow: Boolean,
|
|
6228
5867
|
allowFullscreen: Boolean,
|
|
6229
5868
|
allowUserMedia: Boolean,
|
|
6230
5869
|
allowPaymentRequest: Boolean,
|
|
6231
5870
|
referrerPolicy: REFERRER,
|
|
5871
|
+
loading: { type: ["eager", "lazy"], treatNullAsEmptyString: true },
|
|
6232
5872
|
align: String,
|
|
6233
5873
|
scrolling: String,
|
|
6234
5874
|
frameBorder: String,
|
|
@@ -6250,9 +5890,11 @@ var require_htmlelts = __commonJS({
|
|
|
6250
5890
|
crossOrigin: CORS,
|
|
6251
5891
|
useMap: String,
|
|
6252
5892
|
isMap: Boolean,
|
|
5893
|
+
sizes: String,
|
|
6253
5894
|
height: { type: "unsigned long", default: 0 },
|
|
6254
5895
|
width: { type: "unsigned long", default: 0 },
|
|
6255
5896
|
referrerPolicy: REFERRER,
|
|
5897
|
+
loading: { type: ["eager", "lazy"], missing: "" },
|
|
6256
5898
|
name: String,
|
|
6257
5899
|
lowsrc: URL,
|
|
6258
5900
|
align: String,
|
|
@@ -6408,6 +6050,8 @@ var require_htmlelts = __commonJS({
|
|
|
6408
6050
|
nonce: String,
|
|
6409
6051
|
integrity: String,
|
|
6410
6052
|
referrerPolicy: REFERRER,
|
|
6053
|
+
imageSizes: String,
|
|
6054
|
+
imageSrcset: String,
|
|
6411
6055
|
charset: String,
|
|
6412
6056
|
rev: String,
|
|
6413
6057
|
target: String
|
|
@@ -6668,8 +6312,10 @@ var require_htmlelts = __commonJS({
|
|
|
6668
6312
|
src: URL,
|
|
6669
6313
|
type: String,
|
|
6670
6314
|
charset: String,
|
|
6315
|
+
referrerPolicy: REFERRER,
|
|
6671
6316
|
defer: Boolean,
|
|
6672
6317
|
async: Boolean,
|
|
6318
|
+
nomodule: Boolean,
|
|
6673
6319
|
crossOrigin: CORS,
|
|
6674
6320
|
nonce: String,
|
|
6675
6321
|
integrity: String
|
|
@@ -6697,18 +6343,6 @@ var require_htmlelts = __commonJS({
|
|
|
6697
6343
|
size: { type: "unsigned long", default: 0 }
|
|
6698
6344
|
}
|
|
6699
6345
|
});
|
|
6700
|
-
define({
|
|
6701
|
-
tag: "source",
|
|
6702
|
-
name: "HTMLSourceElement",
|
|
6703
|
-
ctor: function HTMLSourceElement(doc, localName, prefix) {
|
|
6704
|
-
HTMLElement.call(this, doc, localName, prefix);
|
|
6705
|
-
},
|
|
6706
|
-
attributes: {
|
|
6707
|
-
src: URL,
|
|
6708
|
-
type: String,
|
|
6709
|
-
media: String
|
|
6710
|
-
}
|
|
6711
|
-
});
|
|
6712
6346
|
define({
|
|
6713
6347
|
tag: "span",
|
|
6714
6348
|
name: "HTMLSpanElement",
|
|
@@ -7084,7 +6718,9 @@ var require_htmlelts = __commonJS({
|
|
|
7084
6718
|
sizes: String,
|
|
7085
6719
|
media: String,
|
|
7086
6720
|
src: URL,
|
|
7087
|
-
type: String
|
|
6721
|
+
type: String,
|
|
6722
|
+
width: String,
|
|
6723
|
+
height: String
|
|
7088
6724
|
}
|
|
7089
6725
|
});
|
|
7090
6726
|
define({
|
|
@@ -7149,6 +6785,7 @@ var require_htmlelts = __commonJS({
|
|
|
7149
6785
|
"bdi",
|
|
7150
6786
|
"bdo",
|
|
7151
6787
|
"cite",
|
|
6788
|
+
"content",
|
|
7152
6789
|
"code",
|
|
7153
6790
|
"dd",
|
|
7154
6791
|
"dfn",
|
|
@@ -16554,10 +16191,10 @@ class PlatformState {
|
|
|
16554
16191
|
getDocument() {
|
|
16555
16192
|
return this._doc;
|
|
16556
16193
|
}
|
|
16557
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16558
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: PlatformState, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16195
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: PlatformState }); }
|
|
16559
16196
|
}
|
|
16560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: PlatformState, decorators: [{
|
|
16561
16198
|
type: Injectable
|
|
16562
16199
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
16563
16200
|
type: Inject,
|
|
@@ -16568,10 +16205,10 @@ class ServerXhr {
|
|
|
16568
16205
|
build() {
|
|
16569
16206
|
return new xhr2.XMLHttpRequest();
|
|
16570
16207
|
}
|
|
16571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16572
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16209
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerXhr }); }
|
|
16573
16210
|
}
|
|
16574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerXhr, decorators: [{
|
|
16575
16212
|
type: Injectable
|
|
16576
16213
|
}] });
|
|
16577
16214
|
const SERVER_HTTP_PROVIDERS = [
|
|
@@ -16686,10 +16323,10 @@ class ServerPlatformLocation {
|
|
|
16686
16323
|
getState() {
|
|
16687
16324
|
return undefined;
|
|
16688
16325
|
}
|
|
16689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerPlatformLocation, deps: [{ token: DOCUMENT }, { token: INITIAL_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16327
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerPlatformLocation }); }
|
|
16691
16328
|
}
|
|
16692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerPlatformLocation, decorators: [{
|
|
16693
16330
|
type: Injectable
|
|
16694
16331
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
16695
16332
|
type: Inject,
|
|
@@ -16715,281 +16352,16 @@ class ServerEventManagerPlugin /* extends EventManagerPlugin which is private */
|
|
|
16715
16352
|
addEventListener(element, eventName, handler) {
|
|
16716
16353
|
return ɵgetDOM().onAndCancel(element, eventName, handler);
|
|
16717
16354
|
}
|
|
16718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16719
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16356
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */ }); }
|
|
16720
16357
|
}
|
|
16721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */, decorators: [{
|
|
16722
16359
|
type: Injectable
|
|
16723
16360
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
16724
16361
|
type: Inject,
|
|
16725
16362
|
args: [DOCUMENT]
|
|
16726
16363
|
}] }]; } });
|
|
16727
16364
|
|
|
16728
|
-
const EMPTY_ARRAY = [];
|
|
16729
|
-
const DEFAULT_SCHEMA = new DomElementSchemaRegistry();
|
|
16730
|
-
class ServerRendererFactory2 {
|
|
16731
|
-
constructor(eventManager, ngZone, document, sharedStylesHost, appId) {
|
|
16732
|
-
this.eventManager = eventManager;
|
|
16733
|
-
this.ngZone = ngZone;
|
|
16734
|
-
this.document = document;
|
|
16735
|
-
this.sharedStylesHost = sharedStylesHost;
|
|
16736
|
-
this.appId = appId;
|
|
16737
|
-
this.rendererByCompId = new Map();
|
|
16738
|
-
this.schema = DEFAULT_SCHEMA;
|
|
16739
|
-
this.defaultRenderer = new DefaultServerRenderer2(eventManager, document, ngZone, this.schema);
|
|
16740
|
-
}
|
|
16741
|
-
createRenderer(element, type) {
|
|
16742
|
-
if (!element || !type) {
|
|
16743
|
-
return this.defaultRenderer;
|
|
16744
|
-
}
|
|
16745
|
-
switch (type.encapsulation) {
|
|
16746
|
-
case ViewEncapsulation.Emulated: {
|
|
16747
|
-
let renderer = this.rendererByCompId.get(type.id);
|
|
16748
|
-
if (!renderer) {
|
|
16749
|
-
renderer = new EmulatedEncapsulationServerRenderer2(this.eventManager, this.document, this.ngZone, this.sharedStylesHost, this.schema, type, this.appId);
|
|
16750
|
-
this.rendererByCompId.set(type.id, renderer);
|
|
16751
|
-
}
|
|
16752
|
-
renderer.applyToHost(element);
|
|
16753
|
-
return renderer;
|
|
16754
|
-
}
|
|
16755
|
-
default: {
|
|
16756
|
-
if (!this.rendererByCompId.has(type.id)) {
|
|
16757
|
-
const styles = ɵshimStyles(type.id, type.styles);
|
|
16758
|
-
this.sharedStylesHost.addStyles(styles);
|
|
16759
|
-
this.rendererByCompId.set(type.id, this.defaultRenderer);
|
|
16760
|
-
}
|
|
16761
|
-
return this.defaultRenderer;
|
|
16762
|
-
}
|
|
16763
|
-
}
|
|
16764
|
-
}
|
|
16765
|
-
begin() { }
|
|
16766
|
-
end() { }
|
|
16767
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.6", ngImport: i0, type: ServerRendererFactory2, deps: [{ token: i1.EventManager }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i1.ɵSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16768
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.6", ngImport: i0, type: ServerRendererFactory2 }); }
|
|
16769
|
-
}
|
|
16770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.6", ngImport: i0, type: ServerRendererFactory2, decorators: [{
|
|
16771
|
-
type: Injectable
|
|
16772
|
-
}], ctorParameters: function () { return [{ type: i1.EventManager }, { type: i0.NgZone }, { type: Document, decorators: [{
|
|
16773
|
-
type: Inject,
|
|
16774
|
-
args: [DOCUMENT]
|
|
16775
|
-
}] }, { type: i1.ɵSharedStylesHost }, { type: undefined, decorators: [{
|
|
16776
|
-
type: Inject,
|
|
16777
|
-
args: [APP_ID]
|
|
16778
|
-
}] }]; } });
|
|
16779
|
-
class DefaultServerRenderer2 {
|
|
16780
|
-
constructor(eventManager, document, ngZone, schema) {
|
|
16781
|
-
this.eventManager = eventManager;
|
|
16782
|
-
this.document = document;
|
|
16783
|
-
this.ngZone = ngZone;
|
|
16784
|
-
this.schema = schema;
|
|
16785
|
-
this.data = Object.create(null);
|
|
16786
|
-
this.destroyNode = null;
|
|
16787
|
-
}
|
|
16788
|
-
destroy() { }
|
|
16789
|
-
createElement(name, namespace) {
|
|
16790
|
-
if (namespace) {
|
|
16791
|
-
const doc = this.document || ɵgetDOM().getDefaultDocument();
|
|
16792
|
-
return doc.createElementNS(ɵNAMESPACE_URIS[namespace], name);
|
|
16793
|
-
}
|
|
16794
|
-
return ɵgetDOM().createElement(name, this.document);
|
|
16795
|
-
}
|
|
16796
|
-
createComment(value) {
|
|
16797
|
-
return ɵgetDOM().getDefaultDocument().createComment(value);
|
|
16798
|
-
}
|
|
16799
|
-
createText(value) {
|
|
16800
|
-
const doc = ɵgetDOM().getDefaultDocument();
|
|
16801
|
-
return doc.createTextNode(value);
|
|
16802
|
-
}
|
|
16803
|
-
appendChild(parent, newChild) {
|
|
16804
|
-
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
|
16805
|
-
targetParent.appendChild(newChild);
|
|
16806
|
-
}
|
|
16807
|
-
insertBefore(parent, newChild, refChild) {
|
|
16808
|
-
if (parent) {
|
|
16809
|
-
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
|
16810
|
-
targetParent.insertBefore(newChild, refChild);
|
|
16811
|
-
}
|
|
16812
|
-
}
|
|
16813
|
-
removeChild(parent, oldChild) {
|
|
16814
|
-
if (parent) {
|
|
16815
|
-
parent.removeChild(oldChild);
|
|
16816
|
-
}
|
|
16817
|
-
}
|
|
16818
|
-
selectRootElement(selectorOrNode, preserveContent) {
|
|
16819
|
-
const el = typeof selectorOrNode === 'string' ? this.document.querySelector(selectorOrNode) :
|
|
16820
|
-
selectorOrNode;
|
|
16821
|
-
if (!el) {
|
|
16822
|
-
throw new Error(`The selector "${selectorOrNode}" did not match any elements`);
|
|
16823
|
-
}
|
|
16824
|
-
if (!preserveContent) {
|
|
16825
|
-
while (el.firstChild) {
|
|
16826
|
-
el.removeChild(el.firstChild);
|
|
16827
|
-
}
|
|
16828
|
-
}
|
|
16829
|
-
return el;
|
|
16830
|
-
}
|
|
16831
|
-
parentNode(node) {
|
|
16832
|
-
return node.parentNode;
|
|
16833
|
-
}
|
|
16834
|
-
nextSibling(node) {
|
|
16835
|
-
return node.nextSibling;
|
|
16836
|
-
}
|
|
16837
|
-
setAttribute(el, name, value, namespace) {
|
|
16838
|
-
if (namespace) {
|
|
16839
|
-
el.setAttributeNS(ɵNAMESPACE_URIS[namespace], namespace + ':' + name, value);
|
|
16840
|
-
}
|
|
16841
|
-
else {
|
|
16842
|
-
el.setAttribute(name, value);
|
|
16843
|
-
}
|
|
16844
|
-
}
|
|
16845
|
-
removeAttribute(el, name, namespace) {
|
|
16846
|
-
if (namespace) {
|
|
16847
|
-
el.removeAttributeNS(ɵNAMESPACE_URIS[namespace], name);
|
|
16848
|
-
}
|
|
16849
|
-
else {
|
|
16850
|
-
el.removeAttribute(name);
|
|
16851
|
-
}
|
|
16852
|
-
}
|
|
16853
|
-
addClass(el, name) {
|
|
16854
|
-
el.classList.add(name);
|
|
16855
|
-
}
|
|
16856
|
-
removeClass(el, name) {
|
|
16857
|
-
el.classList.remove(name);
|
|
16858
|
-
}
|
|
16859
|
-
setStyle(el, style, value, flags) {
|
|
16860
|
-
style = style.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
16861
|
-
value = value == null ? '' : `${value}`.trim();
|
|
16862
|
-
const styleMap = _readStyleAttribute(el);
|
|
16863
|
-
if (flags & RendererStyleFlags2.Important) {
|
|
16864
|
-
value += ' !important';
|
|
16865
|
-
}
|
|
16866
|
-
styleMap[style] = value;
|
|
16867
|
-
_writeStyleAttribute(el, styleMap);
|
|
16868
|
-
}
|
|
16869
|
-
removeStyle(el, style, flags) {
|
|
16870
|
-
// IE requires '' instead of null
|
|
16871
|
-
// see https://github.com/angular/angular/issues/7916
|
|
16872
|
-
this.setStyle(el, style, '', flags);
|
|
16873
|
-
}
|
|
16874
|
-
// The value was validated already as a property binding, against the property name.
|
|
16875
|
-
// To know this value is safe to use as an attribute, the security context of the
|
|
16876
|
-
// attribute with the given name is checked against that security context of the
|
|
16877
|
-
// property.
|
|
16878
|
-
_isSafeToReflectProperty(tagName, propertyName) {
|
|
16879
|
-
return this.schema.securityContext(tagName, propertyName, true) ===
|
|
16880
|
-
this.schema.securityContext(tagName, propertyName, false);
|
|
16881
|
-
}
|
|
16882
|
-
setProperty(el, name, value) {
|
|
16883
|
-
checkNoSyntheticProp(name, 'property');
|
|
16884
|
-
if (name === 'innerText') {
|
|
16885
|
-
// Domino does not support innerText. Just map it to textContent.
|
|
16886
|
-
el.textContent = value;
|
|
16887
|
-
}
|
|
16888
|
-
el[name] = value;
|
|
16889
|
-
// Mirror property values for known HTML element properties in the attributes.
|
|
16890
|
-
// Skip `innerhtml` which is conservatively marked as an attribute for security
|
|
16891
|
-
// purposes but is not actually an attribute.
|
|
16892
|
-
const tagName = el.tagName.toLowerCase();
|
|
16893
|
-
if (value != null && (typeof value === 'number' || typeof value == 'string') &&
|
|
16894
|
-
name.toLowerCase() !== 'innerhtml' && this.schema.hasElement(tagName, EMPTY_ARRAY) &&
|
|
16895
|
-
this.schema.hasProperty(tagName, name, EMPTY_ARRAY) &&
|
|
16896
|
-
this._isSafeToReflectProperty(tagName, name)) {
|
|
16897
|
-
this.setAttribute(el, name, value.toString());
|
|
16898
|
-
}
|
|
16899
|
-
}
|
|
16900
|
-
setValue(node, value) {
|
|
16901
|
-
node.textContent = value;
|
|
16902
|
-
}
|
|
16903
|
-
listen(target, eventName, callback) {
|
|
16904
|
-
checkNoSyntheticProp(eventName, 'listener');
|
|
16905
|
-
return this.eventManager.addEventListener(target, eventName, this.decoratePreventDefault(callback));
|
|
16906
|
-
}
|
|
16907
|
-
decoratePreventDefault(eventHandler) {
|
|
16908
|
-
return (event) => {
|
|
16909
|
-
// Ivy uses `Function` as a special token that allows us to unwrap the function
|
|
16910
|
-
// so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.
|
|
16911
|
-
if (event === Function) {
|
|
16912
|
-
return eventHandler;
|
|
16913
|
-
}
|
|
16914
|
-
// Run the event handler inside the ngZone because event handlers are not patched
|
|
16915
|
-
// by Zone on the server. This is required only for tests.
|
|
16916
|
-
const allowDefaultBehavior = this.ngZone.runGuarded(() => eventHandler(event));
|
|
16917
|
-
if (allowDefaultBehavior === false) {
|
|
16918
|
-
event.preventDefault();
|
|
16919
|
-
event.returnValue = false;
|
|
16920
|
-
}
|
|
16921
|
-
return undefined;
|
|
16922
|
-
};
|
|
16923
|
-
}
|
|
16924
|
-
}
|
|
16925
|
-
const AT_CHARCODE = '@'.charCodeAt(0);
|
|
16926
|
-
function checkNoSyntheticProp(name, nameKind) {
|
|
16927
|
-
if (name.charCodeAt(0) === AT_CHARCODE) {
|
|
16928
|
-
throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
|
|
16929
|
-
- Either \`BrowserAnimationsModule\` or \`NoopAnimationsModule\` are imported in your application.
|
|
16930
|
-
- There is corresponding configuration for the animation named \`${name}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.io/api/core/Component#animations).`);
|
|
16931
|
-
}
|
|
16932
|
-
}
|
|
16933
|
-
function isTemplateNode(node) {
|
|
16934
|
-
return node.tagName === 'TEMPLATE' && node.content !== undefined;
|
|
16935
|
-
}
|
|
16936
|
-
class EmulatedEncapsulationServerRenderer2 extends DefaultServerRenderer2 {
|
|
16937
|
-
constructor(eventManager, document, ngZone, sharedStylesHost, schema, component, appId) {
|
|
16938
|
-
super(eventManager, document, ngZone, schema);
|
|
16939
|
-
this.component = component;
|
|
16940
|
-
const componentShortId = appId + '-' + this.component.id;
|
|
16941
|
-
const styles = ɵshimStyles(componentShortId, this.component.styles);
|
|
16942
|
-
sharedStylesHost.addStyles(styles);
|
|
16943
|
-
this.contentAttr = ɵshimContentAttribute(componentShortId);
|
|
16944
|
-
this.hostAttr = ɵshimHostAttribute(componentShortId);
|
|
16945
|
-
}
|
|
16946
|
-
applyToHost(element) {
|
|
16947
|
-
super.setAttribute(element, this.hostAttr, '');
|
|
16948
|
-
}
|
|
16949
|
-
createElement(parent, name) {
|
|
16950
|
-
const el = super.createElement(parent, name);
|
|
16951
|
-
super.setAttribute(el, this.contentAttr, '');
|
|
16952
|
-
return el;
|
|
16953
|
-
}
|
|
16954
|
-
}
|
|
16955
|
-
function _readStyleAttribute(element) {
|
|
16956
|
-
const styleMap = {};
|
|
16957
|
-
const styleAttribute = element.getAttribute('style');
|
|
16958
|
-
if (styleAttribute) {
|
|
16959
|
-
const styleList = styleAttribute.split(/;+/g);
|
|
16960
|
-
for (let i = 0; i < styleList.length; i++) {
|
|
16961
|
-
const style = styleList[i].trim();
|
|
16962
|
-
if (style.length > 0) {
|
|
16963
|
-
const colonIndex = style.indexOf(':');
|
|
16964
|
-
if (colonIndex === -1) {
|
|
16965
|
-
throw new Error(`Invalid CSS style: ${style}`);
|
|
16966
|
-
}
|
|
16967
|
-
const name = style.slice(0, colonIndex).trim();
|
|
16968
|
-
styleMap[name] = style.slice(colonIndex + 1).trim();
|
|
16969
|
-
}
|
|
16970
|
-
}
|
|
16971
|
-
}
|
|
16972
|
-
return styleMap;
|
|
16973
|
-
}
|
|
16974
|
-
function _writeStyleAttribute(element, styleMap) {
|
|
16975
|
-
// We have to construct the `style` attribute ourselves, instead of going through
|
|
16976
|
-
// `element.style.setProperty` like the other renderers, because `setProperty` won't
|
|
16977
|
-
// write newer CSS properties that Domino doesn't know about like `clip-path`.
|
|
16978
|
-
let styleAttrValue = '';
|
|
16979
|
-
for (const key in styleMap) {
|
|
16980
|
-
const newValue = styleMap[key];
|
|
16981
|
-
if (newValue != null && newValue !== '') {
|
|
16982
|
-
styleAttrValue += key + ':' + newValue + ';';
|
|
16983
|
-
}
|
|
16984
|
-
}
|
|
16985
|
-
if (styleAttrValue) {
|
|
16986
|
-
element.setAttribute('style', styleAttrValue);
|
|
16987
|
-
}
|
|
16988
|
-
else {
|
|
16989
|
-
element.removeAttribute('style');
|
|
16990
|
-
}
|
|
16991
|
-
}
|
|
16992
|
-
|
|
16993
16365
|
const TRANSFER_STATE_SERIALIZATION_PROVIDERS = [{
|
|
16994
16366
|
provide: BEFORE_APP_SERIALIZED,
|
|
16995
16367
|
useFactory: serializeTransferStateFactory,
|
|
@@ -17028,11 +16400,11 @@ function serializeTransferStateFactory(doc, appId, transferStore) {
|
|
|
17028
16400
|
* this module.
|
|
17029
16401
|
*/
|
|
17030
16402
|
class ServerTransferStateModule {
|
|
17031
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
17032
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
17033
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
16404
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerTransferStateModule }); }
|
|
16405
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerTransferStateModule }); }
|
|
17034
16406
|
}
|
|
17035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerTransferStateModule, decorators: [{
|
|
17036
16408
|
type: NgModule,
|
|
17037
16409
|
args: [{}]
|
|
17038
16410
|
}] });
|
|
@@ -17054,16 +16426,7 @@ function initDominoAdapter() {
|
|
|
17054
16426
|
DominoAdapter.makeCurrent();
|
|
17055
16427
|
};
|
|
17056
16428
|
}
|
|
17057
|
-
function instantiateServerRendererFactory(renderer, engine, zone) {
|
|
17058
|
-
return new ɵAnimationRendererFactory(renderer, engine, zone);
|
|
17059
|
-
}
|
|
17060
16429
|
const SERVER_RENDER_PROVIDERS = [
|
|
17061
|
-
ServerRendererFactory2,
|
|
17062
|
-
{
|
|
17063
|
-
provide: RendererFactory2,
|
|
17064
|
-
useFactory: instantiateServerRendererFactory,
|
|
17065
|
-
deps: [ServerRendererFactory2, ɵAnimationEngine, NgZone]
|
|
17066
|
-
},
|
|
17067
16430
|
{ provide: EVENT_MANAGER_PLUGINS, multi: true, useClass: ServerEventManagerPlugin },
|
|
17068
16431
|
];
|
|
17069
16432
|
const PLATFORM_SERVER_PROVIDERS = [
|
|
@@ -17080,11 +16443,11 @@ const PLATFORM_SERVER_PROVIDERS = [
|
|
|
17080
16443
|
* @publicApi
|
|
17081
16444
|
*/
|
|
17082
16445
|
class ServerModule {
|
|
17083
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
17084
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
17085
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16446
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
16447
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerModule, imports: [HttpClientModule, NoopAnimationsModule], exports: [BrowserModule] }); }
|
|
16448
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerModule, providers: PLATFORM_SERVER_PROVIDERS, imports: [HttpClientModule, NoopAnimationsModule, BrowserModule] }); }
|
|
17086
16449
|
}
|
|
17087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ServerModule, decorators: [{
|
|
17088
16451
|
type: NgModule,
|
|
17089
16452
|
args: [{
|
|
17090
16453
|
exports: [BrowserModule],
|
|
@@ -17125,14 +16488,14 @@ const platformDynamicServer = createPlatformFactory(ɵplatformCoreDynamic, 'serv
|
|
|
17125
16488
|
* Basic example of how you can add server support to your application:
|
|
17126
16489
|
* ```ts
|
|
17127
16490
|
* bootstrapApplication(AppComponent, {
|
|
17128
|
-
* providers: [
|
|
16491
|
+
* providers: [provideServerRendering()]
|
|
17129
16492
|
* });
|
|
17130
16493
|
* ```
|
|
17131
16494
|
*
|
|
17132
16495
|
* @publicApi
|
|
17133
16496
|
* @returns A set of providers to setup the server.
|
|
17134
16497
|
*/
|
|
17135
|
-
function
|
|
16498
|
+
function provideServerRendering() {
|
|
17136
16499
|
return makeEnvironmentProviders([
|
|
17137
16500
|
provideHttpClient(withInterceptorsFromDi()),
|
|
17138
16501
|
provideNoopAnimations(),
|
|
@@ -17282,7 +16645,7 @@ function renderApplication(bootstrap, options) {
|
|
|
17282
16645
|
/**
|
|
17283
16646
|
* @publicApi
|
|
17284
16647
|
*/
|
|
17285
|
-
const VERSION = new Version('16.0.0-next.
|
|
16648
|
+
const VERSION = new Version('16.0.0-next.7');
|
|
17286
16649
|
|
|
17287
16650
|
/// <reference types="node" />
|
|
17288
16651
|
// This file only reexports content of the `src` folder. Keep it that way.
|
|
@@ -17293,5 +16656,5 @@ const VERSION = new Version('16.0.0-next.6');
|
|
|
17293
16656
|
* Generated bundle index. Do not edit.
|
|
17294
16657
|
*/
|
|
17295
16658
|
|
|
17296
|
-
export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, ServerTransferStateModule, VERSION, platformDynamicServer, platformServer,
|
|
16659
|
+
export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, ServerTransferStateModule, VERSION, platformDynamicServer, platformServer, provideServerRendering, renderApplication, renderModule, INTERNAL_SERVER_PLATFORM_PROVIDERS as ɵINTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_CONTEXT as ɵSERVER_CONTEXT, SERVER_RENDER_PROVIDERS as ɵSERVER_RENDER_PROVIDERS, setDomTypes as ɵsetDomTypes };
|
|
17297
16660
|
//# sourceMappingURL=platform-server.mjs.map
|