source: trip-planner-front/node_modules/@angular/compiler/esm2015/src/compile_metadata.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 59.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { StaticSymbol } from './aot/static_symbol';
9import { identifierName, sanitizeIdentifier } from './parse_util';
10import { splitAtColon } from './util';
11// group 0: "[prop] or (event) or @trigger"
12// group 1: "prop" from "[prop]"
13// group 2: "event" from "(event)"
14// group 3: "@trigger" from "@trigger"
15const HOST_REG_EXP = /^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;
16export function viewClassName(compType, embeddedTemplateIndex) {
17 return `View_${identifierName({ reference: compType })}_${embeddedTemplateIndex}`;
18}
19export function rendererTypeName(compType) {
20 return `RenderType_${identifierName({ reference: compType })}`;
21}
22export function hostViewClassName(compType) {
23 return `HostView_${identifierName({ reference: compType })}`;
24}
25export function componentFactoryName(compType) {
26 return `${identifierName({ reference: compType })}NgFactory`;
27}
28export var CompileSummaryKind;
29(function (CompileSummaryKind) {
30 CompileSummaryKind[CompileSummaryKind["Pipe"] = 0] = "Pipe";
31 CompileSummaryKind[CompileSummaryKind["Directive"] = 1] = "Directive";
32 CompileSummaryKind[CompileSummaryKind["NgModule"] = 2] = "NgModule";
33 CompileSummaryKind[CompileSummaryKind["Injectable"] = 3] = "Injectable";
34})(CompileSummaryKind || (CompileSummaryKind = {}));
35export function tokenName(token) {
36 return token.value != null ? sanitizeIdentifier(token.value) : identifierName(token.identifier);
37}
38export function tokenReference(token) {
39 if (token.identifier != null) {
40 return token.identifier.reference;
41 }
42 else {
43 return token.value;
44 }
45}
46/**
47 * Metadata about a stylesheet
48 */
49export class CompileStylesheetMetadata {
50 constructor({ moduleUrl, styles, styleUrls } = {}) {
51 this.moduleUrl = moduleUrl || null;
52 this.styles = _normalizeArray(styles);
53 this.styleUrls = _normalizeArray(styleUrls);
54 }
55}
56/**
57 * Metadata regarding compilation of a template.
58 */
59export class CompileTemplateMetadata {
60 constructor({ encapsulation, template, templateUrl, htmlAst, styles, styleUrls, externalStylesheets, animations, ngContentSelectors, interpolation, isInline, preserveWhitespaces }) {
61 this.encapsulation = encapsulation;
62 this.template = template;
63 this.templateUrl = templateUrl;
64 this.htmlAst = htmlAst;
65 this.styles = _normalizeArray(styles);
66 this.styleUrls = _normalizeArray(styleUrls);
67 this.externalStylesheets = _normalizeArray(externalStylesheets);
68 this.animations = animations ? flatten(animations) : [];
69 this.ngContentSelectors = ngContentSelectors || [];
70 if (interpolation && interpolation.length != 2) {
71 throw new Error(`'interpolation' should have a start and an end symbol.`);
72 }
73 this.interpolation = interpolation;
74 this.isInline = isInline;
75 this.preserveWhitespaces = preserveWhitespaces;
76 }
77 toSummary() {
78 return {
79 ngContentSelectors: this.ngContentSelectors,
80 encapsulation: this.encapsulation,
81 styles: this.styles,
82 animations: this.animations
83 };
84 }
85}
86/**
87 * Metadata regarding compilation of a directive.
88 */
89export class CompileDirectiveMetadata {
90 constructor({ isHost, type, isComponent, selector, exportAs, changeDetection, inputs, outputs, hostListeners, hostProperties, hostAttributes, providers, viewProviders, queries, guards, viewQueries, entryComponents, template, componentViewType, rendererType, componentFactory }) {
91 this.isHost = !!isHost;
92 this.type = type;
93 this.isComponent = isComponent;
94 this.selector = selector;
95 this.exportAs = exportAs;
96 this.changeDetection = changeDetection;
97 this.inputs = inputs;
98 this.outputs = outputs;
99 this.hostListeners = hostListeners;
100 this.hostProperties = hostProperties;
101 this.hostAttributes = hostAttributes;
102 this.providers = _normalizeArray(providers);
103 this.viewProviders = _normalizeArray(viewProviders);
104 this.queries = _normalizeArray(queries);
105 this.guards = guards;
106 this.viewQueries = _normalizeArray(viewQueries);
107 this.entryComponents = _normalizeArray(entryComponents);
108 this.template = template;
109 this.componentViewType = componentViewType;
110 this.rendererType = rendererType;
111 this.componentFactory = componentFactory;
112 }
113 static create({ isHost, type, isComponent, selector, exportAs, changeDetection, inputs, outputs, host, providers, viewProviders, queries, guards, viewQueries, entryComponents, template, componentViewType, rendererType, componentFactory }) {
114 const hostListeners = {};
115 const hostProperties = {};
116 const hostAttributes = {};
117 if (host != null) {
118 Object.keys(host).forEach(key => {
119 const value = host[key];
120 const matches = key.match(HOST_REG_EXP);
121 if (matches === null) {
122 hostAttributes[key] = value;
123 }
124 else if (matches[1] != null) {
125 hostProperties[matches[1]] = value;
126 }
127 else if (matches[2] != null) {
128 hostListeners[matches[2]] = value;
129 }
130 });
131 }
132 const inputsMap = {};
133 if (inputs != null) {
134 inputs.forEach((bindConfig) => {
135 // canonical syntax: `dirProp: elProp`
136 // if there is no `:`, use dirProp = elProp
137 const parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);
138 inputsMap[parts[0]] = parts[1];
139 });
140 }
141 const outputsMap = {};
142 if (outputs != null) {
143 outputs.forEach((bindConfig) => {
144 // canonical syntax: `dirProp: elProp`
145 // if there is no `:`, use dirProp = elProp
146 const parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);
147 outputsMap[parts[0]] = parts[1];
148 });
149 }
150 return new CompileDirectiveMetadata({
151 isHost,
152 type,
153 isComponent: !!isComponent,
154 selector,
155 exportAs,
156 changeDetection,
157 inputs: inputsMap,
158 outputs: outputsMap,
159 hostListeners,
160 hostProperties,
161 hostAttributes,
162 providers,
163 viewProviders,
164 queries,
165 guards,
166 viewQueries,
167 entryComponents,
168 template,
169 componentViewType,
170 rendererType,
171 componentFactory,
172 });
173 }
174 toSummary() {
175 return {
176 summaryKind: CompileSummaryKind.Directive,
177 type: this.type,
178 isComponent: this.isComponent,
179 selector: this.selector,
180 exportAs: this.exportAs,
181 inputs: this.inputs,
182 outputs: this.outputs,
183 hostListeners: this.hostListeners,
184 hostProperties: this.hostProperties,
185 hostAttributes: this.hostAttributes,
186 providers: this.providers,
187 viewProviders: this.viewProviders,
188 queries: this.queries,
189 guards: this.guards,
190 viewQueries: this.viewQueries,
191 entryComponents: this.entryComponents,
192 changeDetection: this.changeDetection,
193 template: this.template && this.template.toSummary(),
194 componentViewType: this.componentViewType,
195 rendererType: this.rendererType,
196 componentFactory: this.componentFactory
197 };
198 }
199}
200export class CompilePipeMetadata {
201 constructor({ type, name, pure }) {
202 this.type = type;
203 this.name = name;
204 this.pure = !!pure;
205 }
206 toSummary() {
207 return {
208 summaryKind: CompileSummaryKind.Pipe,
209 type: this.type,
210 name: this.name,
211 pure: this.pure
212 };
213 }
214}
215export class CompileShallowModuleMetadata {
216}
217/**
218 * Metadata regarding compilation of a module.
219 */
220export class CompileNgModuleMetadata {
221 constructor({ type, providers, declaredDirectives, exportedDirectives, declaredPipes, exportedPipes, entryComponents, bootstrapComponents, importedModules, exportedModules, schemas, transitiveModule, id }) {
222 this.type = type || null;
223 this.declaredDirectives = _normalizeArray(declaredDirectives);
224 this.exportedDirectives = _normalizeArray(exportedDirectives);
225 this.declaredPipes = _normalizeArray(declaredPipes);
226 this.exportedPipes = _normalizeArray(exportedPipes);
227 this.providers = _normalizeArray(providers);
228 this.entryComponents = _normalizeArray(entryComponents);
229 this.bootstrapComponents = _normalizeArray(bootstrapComponents);
230 this.importedModules = _normalizeArray(importedModules);
231 this.exportedModules = _normalizeArray(exportedModules);
232 this.schemas = _normalizeArray(schemas);
233 this.id = id || null;
234 this.transitiveModule = transitiveModule || null;
235 }
236 toSummary() {
237 const module = this.transitiveModule;
238 return {
239 summaryKind: CompileSummaryKind.NgModule,
240 type: this.type,
241 entryComponents: module.entryComponents,
242 providers: module.providers,
243 modules: module.modules,
244 exportedDirectives: module.exportedDirectives,
245 exportedPipes: module.exportedPipes
246 };
247 }
248}
249export class TransitiveCompileNgModuleMetadata {
250 constructor() {
251 this.directivesSet = new Set();
252 this.directives = [];
253 this.exportedDirectivesSet = new Set();
254 this.exportedDirectives = [];
255 this.pipesSet = new Set();
256 this.pipes = [];
257 this.exportedPipesSet = new Set();
258 this.exportedPipes = [];
259 this.modulesSet = new Set();
260 this.modules = [];
261 this.entryComponentsSet = new Set();
262 this.entryComponents = [];
263 this.providers = [];
264 }
265 addProvider(provider, module) {
266 this.providers.push({ provider: provider, module: module });
267 }
268 addDirective(id) {
269 if (!this.directivesSet.has(id.reference)) {
270 this.directivesSet.add(id.reference);
271 this.directives.push(id);
272 }
273 }
274 addExportedDirective(id) {
275 if (!this.exportedDirectivesSet.has(id.reference)) {
276 this.exportedDirectivesSet.add(id.reference);
277 this.exportedDirectives.push(id);
278 }
279 }
280 addPipe(id) {
281 if (!this.pipesSet.has(id.reference)) {
282 this.pipesSet.add(id.reference);
283 this.pipes.push(id);
284 }
285 }
286 addExportedPipe(id) {
287 if (!this.exportedPipesSet.has(id.reference)) {
288 this.exportedPipesSet.add(id.reference);
289 this.exportedPipes.push(id);
290 }
291 }
292 addModule(id) {
293 if (!this.modulesSet.has(id.reference)) {
294 this.modulesSet.add(id.reference);
295 this.modules.push(id);
296 }
297 }
298 addEntryComponent(ec) {
299 if (!this.entryComponentsSet.has(ec.componentType)) {
300 this.entryComponentsSet.add(ec.componentType);
301 this.entryComponents.push(ec);
302 }
303 }
304}
305function _normalizeArray(obj) {
306 return obj || [];
307}
308export class ProviderMeta {
309 constructor(token, { useClass, useValue, useExisting, useFactory, deps, multi }) {
310 this.token = token;
311 this.useClass = useClass || null;
312 this.useValue = useValue;
313 this.useExisting = useExisting;
314 this.useFactory = useFactory || null;
315 this.dependencies = deps || null;
316 this.multi = !!multi;
317 }
318}
319export function flatten(list) {
320 return list.reduce((flat, item) => {
321 const flatItem = Array.isArray(item) ? flatten(item) : item;
322 return flat.concat(flatItem);
323 }, []);
324}
325function jitSourceUrl(url) {
326 // Note: We need 3 "/" so that ng shows up as a separate domain
327 // in the chrome dev tools.
328 return url.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/, 'ng:///');
329}
330export function templateSourceUrl(ngModuleType, compMeta, templateMeta) {
331 let url;
332 if (templateMeta.isInline) {
333 if (compMeta.type.reference instanceof StaticSymbol) {
334 // Note: a .ts file might contain multiple components with inline templates,
335 // so we need to give them unique urls, as these will be used for sourcemaps.
336 url = `${compMeta.type.reference.filePath}.${compMeta.type.reference.name}.html`;
337 }
338 else {
339 url = `${identifierName(ngModuleType)}/${identifierName(compMeta.type)}.html`;
340 }
341 }
342 else {
343 url = templateMeta.templateUrl;
344 }
345 return compMeta.type.reference instanceof StaticSymbol ? url : jitSourceUrl(url);
346}
347export function sharedStylesheetJitUrl(meta, id) {
348 const pathParts = meta.moduleUrl.split(/\/\\/g);
349 const baseName = pathParts[pathParts.length - 1];
350 return jitSourceUrl(`css/${id}${baseName}.ngstyle.js`);
351}
352export function ngModuleJitUrl(moduleMeta) {
353 return jitSourceUrl(`${identifierName(moduleMeta.type)}/module.ngfactory.js`);
354}
355export function templateJitUrl(ngModuleType, compMeta) {
356 return jitSourceUrl(`${identifierName(ngModuleType)}/${identifierName(compMeta.type)}.ngfactory.js`);
357}
358//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9tZXRhZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy9jb21waWxlX21ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUlqRCxPQUFPLEVBQTRCLGNBQWMsRUFBRSxrQkFBa0IsRUFBQyxNQUFNLGNBQWMsQ0FBQztBQUMzRixPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRXBDLDJDQUEyQztBQUMzQyxnQ0FBZ0M7QUFDaEMsa0NBQWtDO0FBQ2xDLHNDQUFzQztBQUN0QyxNQ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