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

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

initial commit

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