@angular/language-service 7.0.3 → 7.0.4

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.0.3
2
+ * @license Angular v7.0.4
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -13305,7 +13305,7 @@ define(['exports', 'fs', 'path', 'typescript'], function (exports, fs, path, ts)
13305
13305
  * Use of this source code is governed by an MIT-style license that can be
13306
13306
  * found in the LICENSE file at https://angular.io/license
13307
13307
  */
13308
- var VERSION$1 = new Version('7.0.3');
13308
+ var VERSION$1 = new Version('7.0.4');
13309
13309
 
13310
13310
  /**
13311
13311
  * @license
@@ -36420,89 +36420,6 @@ define(['exports', 'fs', 'path', 'typescript'], function (exports, fs, path, ts)
36420
36420
  /**
36421
36421
  * Component decorator and metadata.
36422
36422
  *
36423
- * @usageNotes
36424
- *
36425
- * ### Using animations
36426
- *
36427
- * The following snippet shows an animation trigger in a component's
36428
- * metadata. The trigger is attached to an element in the component's
36429
- * template, using "@_trigger_name_", and a state expression that is evaluated
36430
- * at run time to determine whether the animation should start.
36431
- *
36432
- * ```typescript
36433
- * @Component({
36434
- * selector: 'animation-cmp',
36435
- * templateUrl: 'animation-cmp.html',
36436
- * animations: [
36437
- * trigger('myTriggerName', [
36438
- * state('on', style({ opacity: 1 }),
36439
- * state('off', style({ opacity: 0 }),
36440
- * transition('on => off', [
36441
- * animate("1s")
36442
- * ])
36443
- * ])
36444
- * ]
36445
- * })
36446
- * ```
36447
- *
36448
- * ```html
36449
- * <!-- animation-cmp.html -->
36450
- * <div @myTriggerName="expression">...</div>
36451
- * ```
36452
- *
36453
- * ### Preserving whitespace
36454
- *
36455
- * Removing whitespace can greatly reduce AOT-generated code size, and speed up view creation.
36456
- * As of Angular 6, default for `preserveWhitespaces` is false (whitespace is removed).
36457
- * To change the default setting for all components in your application, set
36458
- * the `preserveWhitespaces` option of the AOT compiler.
36459
- *
36460
- * Current implementation removes whitespace characters as follows:
36461
- * - Trims all whitespaces at the beginning and the end of a template.
36462
- * - Removes whitespace-only text nodes. For example,
36463
- * `<button>Action 1</button> <button>Action 2</button>` becomes
36464
- * `<button>Action 1</button><button>Action 2</button>`.
36465
- * - Replaces a series of whitespace characters in text nodes with a single space.
36466
- * For example, `<span>\n some text\n</span>` becomes `<span> some text </span>`.
36467
- * - Does NOT alter text nodes inside HTML tags such as `<pre>` or `<textarea>`,
36468
- * where whitespace characters are significant.
36469
- *
36470
- * Note that these transformations can influence DOM nodes layout, although impact
36471
- * should be minimal.
36472
- *
36473
- * You can override the default behavior to preserve whitespace characters
36474
- * in certain fragments of a template. For example, you can exclude an entire
36475
- * DOM sub-tree by using the `ngPreserveWhitespaces` attribute:
36476
- *
36477
- * ```html
36478
- * <div ngPreserveWhitespaces>
36479
- * whitespaces are preserved here
36480
- * <span> and here </span>
36481
- * </div>
36482
- * ```
36483
- *
36484
- * You can force a single space to be preserved in a text node by using `&ngsp;`,
36485
- * which is replaced with a space character by Angular's template
36486
- * compiler:
36487
- *
36488
- * ```html
36489
- * <a>Spaces</a>&ngsp;<a>between</a>&ngsp;<a>links.</a>
36490
- * <!-->compiled to be equivalent to:</>
36491
- * <a>Spaces</a> <a>between</a> <a>links.</a>
36492
- * ```
36493
- *
36494
- * Note that sequences of `&ngsp;` are still collapsed to just one space character when
36495
- * the `preserveWhitespaces` option is set to `false`.
36496
- *
36497
- * ```html
36498
- * <a>before</a>&ngsp;&ngsp;&ngsp;<a>after</a>
36499
- * <!-->compiled to be equivalent to:</>
36500
- * <a>Spaces</a> <a>between</a> <a>links.</a>
36501
- * ```
36502
- *
36503
- * To preserve sequences of whitespace characters, use the
36504
- * `ngPreserveWhitespaces` attribute.
36505
- *
36506
36423
  * @Annotation
36507
36424
  * @publicApi
36508
36425
  */
@@ -36654,7 +36571,7 @@ define(['exports', 'fs', 'path', 'typescript'], function (exports, fs, path, ts)
36654
36571
  /**
36655
36572
  * @publicApi
36656
36573
  */
36657
- var VERSION$2 = new Version$1('7.0.3');
36574
+ var VERSION$2 = new Version$1('7.0.4');
36658
36575
 
36659
36576
  /**
36660
36577
  * @license
@@ -49076,7 +48993,7 @@ define(['exports', 'fs', 'path', 'typescript'], function (exports, fs, path, ts)
49076
48993
  * Use of this source code is governed by an MIT-style license that can be
49077
48994
  * found in the LICENSE file at https://angular.io/license
49078
48995
  */
49079
- var VERSION$3 = new Version$1('7.0.3');
48996
+ var VERSION$3 = new Version$1('7.0.4');
49080
48997
 
49081
48998
  /**
49082
48999
  * @license
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.0.3
2
+ * @license Angular v7.0.4
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -289,7 +289,7 @@ var ji,Fi=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,t
289
289
  *
290
290
  * Use of this source code is governed by an MIT-style license that can be
291
291
  * found in the LICENSE file at https://angular.io/license
292
- */(t.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):t.styles).map(function(t){return me(t)});i.set("styles",fe(b))}return null!==t.animations&&i.set("data",de([{key:"animations",value:t.animations,quoted:!1}])),(t.selector||"").replace(/\n/g,""),{expression:pe(Sn.defineComponent).callFn([i.toLiteralMap()]),type:ja(t,Sn.ComponentDefWithMeta),statements:o}}(a({},n,za(n),{template:i,viewQueries:n.viewQueries.map(Wa),wrapDirectivesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,animations:null!=n.animations?new St(n.animations):null,viewProviders:null!=n.viewProviders?new St(n.viewProviders):null}),r,Na()),l=f(r.statements,u.statements);return nr(u.expression,t,e,l)},t}(),Ba=Object.keys({useClass:null})[0],Ha=Object.keys({useFactory:null})[0],qa=Object.keys({useValue:null})[0],Ua=Object.keys({useExisting:null})[0],Ka=function(t){var e=new St(t);return{value:e,type:e}};function Wa(t){return a({},t,{predicate:Array.isArray(t.predicate)?t.predicate:new St(t.predicate),read:t.read?new St(t.read):null})}function za(t){var e=$a(t.inputs||[]),n=$a(t.outputs||[]),r=t.propMetadata,i={},o={},s=function(t){r.hasOwnProperty(t)&&r[t].forEach(function(e){!function n(t){return"Input"===t.ngMetadataName}(e)?function r(t){return"Output"===t.ngMetadataName}(e)&&(o[t]=e.bindingPropertyName||t):i[t]=e.bindingPropertyName?[e.bindingPropertyName,t]:t})};for(var u in r)s(u);return a({},t,{typeSourceSpan:null,type:new St(t.type),deps:Xa(t.deps),host:function c(t,e){var n=function r(t){var e={},n={},r={},i={};return Object.keys(t).forEach(function(o){var s=t[o],a=o.match(Fa);null===a?e[o]=s:null!=a[1]?r[a[1]]=s:null!=a[2]?n[a[2]]=s:null!=a[3]&&(i[a[3]]=s)}),{attributes:e,listeners:n,properties:r,animations:i}}(t||{}),i=n.attributes,o=n.listeners,s=n.properties;if(Object.keys(n.animations).length>0)throw new Error("Animation bindings are as-of-yet unsupported in Ivy");var a=function(t){e.hasOwnProperty(t)&&e[t].forEach(function(e){!function n(t){return"HostBinding"===t.ngMetadataName}(e)?function r(t){return"HostListener"===t.ngMetadataName}(e)&&(o[e.eventName||t]=t+"("+(e.args||[]).join(",")+")"):s[e.hostPropertyName||t]=t})};for(var u in e)a(u);return{attributes:i,listeners:o,properties:s}}(t.host,t.propMetadata),inputs:a({},e,i),outputs:a({},n,o),providers:null!=t.providers?new St(t.providers):null})}function Qa(t,e){return t.hasOwnProperty(e)?new St(t[e]):void 0}function Ga(t){return{token:null===t.token?new It(null):t.resolved===Dn.Attribute?new It(t.token):new St(t.token),resolved:t.resolved,host:t.host,optional:t.optional,self:t.self,skipSelf:t.skipSelf}}function Xa(t){return null==t?null:t.map(Ga)}function $a(t){return t.reduce(function(t,e){var n=h(e.split(",").map(function(t){return t.trim()}),2),r=n[0];return t[r]=n[1]||r,t},{})}new Ke("7.0.3");
292
+ */(t.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):t.styles).map(function(t){return me(t)});i.set("styles",fe(b))}return null!==t.animations&&i.set("data",de([{key:"animations",value:t.animations,quoted:!1}])),(t.selector||"").replace(/\n/g,""),{expression:pe(Sn.defineComponent).callFn([i.toLiteralMap()]),type:ja(t,Sn.ComponentDefWithMeta),statements:o}}(a({},n,za(n),{template:i,viewQueries:n.viewQueries.map(Wa),wrapDirectivesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,animations:null!=n.animations?new St(n.animations):null,viewProviders:null!=n.viewProviders?new St(n.viewProviders):null}),r,Na()),l=f(r.statements,u.statements);return nr(u.expression,t,e,l)},t}(),Ba=Object.keys({useClass:null})[0],Ha=Object.keys({useFactory:null})[0],qa=Object.keys({useValue:null})[0],Ua=Object.keys({useExisting:null})[0],Ka=function(t){var e=new St(t);return{value:e,type:e}};function Wa(t){return a({},t,{predicate:Array.isArray(t.predicate)?t.predicate:new St(t.predicate),read:t.read?new St(t.read):null})}function za(t){var e=$a(t.inputs||[]),n=$a(t.outputs||[]),r=t.propMetadata,i={},o={},s=function(t){r.hasOwnProperty(t)&&r[t].forEach(function(e){!function n(t){return"Input"===t.ngMetadataName}(e)?function r(t){return"Output"===t.ngMetadataName}(e)&&(o[t]=e.bindingPropertyName||t):i[t]=e.bindingPropertyName?[e.bindingPropertyName,t]:t})};for(var u in r)s(u);return a({},t,{typeSourceSpan:null,type:new St(t.type),deps:Xa(t.deps),host:function c(t,e){var n=function r(t){var e={},n={},r={},i={};return Object.keys(t).forEach(function(o){var s=t[o],a=o.match(Fa);null===a?e[o]=s:null!=a[1]?r[a[1]]=s:null!=a[2]?n[a[2]]=s:null!=a[3]&&(i[a[3]]=s)}),{attributes:e,listeners:n,properties:r,animations:i}}(t||{}),i=n.attributes,o=n.listeners,s=n.properties;if(Object.keys(n.animations).length>0)throw new Error("Animation bindings are as-of-yet unsupported in Ivy");var a=function(t){e.hasOwnProperty(t)&&e[t].forEach(function(e){!function n(t){return"HostBinding"===t.ngMetadataName}(e)?function r(t){return"HostListener"===t.ngMetadataName}(e)&&(o[e.eventName||t]=t+"("+(e.args||[]).join(",")+")"):s[e.hostPropertyName||t]=t})};for(var u in e)a(u);return{attributes:i,listeners:o,properties:s}}(t.host,t.propMetadata),inputs:a({},e,i),outputs:a({},n,o),providers:null!=t.providers?new St(t.providers):null})}function Qa(t,e){return t.hasOwnProperty(e)?new St(t[e]):void 0}function Ga(t){return{token:null===t.token?new It(null):t.resolved===Dn.Attribute?new It(t.token):new St(t.token),resolved:t.resolved,host:t.host,optional:t.optional,self:t.self,skipSelf:t.skipSelf}}function Xa(t){return null==t?null:t.map(Ga)}function $a(t){return t.reduce(function(t,e){var n=h(e.split(",").map(function(t){return t.trim()}),2),r=n[0];return t[r]=n[1]||r,t},{})}new Ke("7.0.4");
293
293
  /**
294
294
  * @license
295
295
  * Copyright Google Inc. All Rights Reserved.
@@ -1150,7 +1150,7 @@ function F_(){}cf({provide:String,useValue:cf});var V_=F_,B_=F_,H_=F_,q_=cf({pro
1150
1150
  * Use of this source code is governed by an MIT-style license that can be
1151
1151
  * found in the LICENSE file at https://angular.io/license
1152
1152
  */
1153
- var W_=function(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=e.constructor;o.hasOwnProperty(vf)||function(t){var e=t.constructor,n=e.ngBaseDef,r=e.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(lf(r.inputs,n.inputs),lf(r.outputs,n.outputs),lf(r.declaredInputs,n.declaredInputs))}(e),t(o.ngBaseDef)[n]=r[0]}},z_=(kf("Input",function(t){return{bindingPropertyName:t}},void 0,W_(function(t){return t.inputs||{}})),kf("Output",function(t){return{bindingPropertyName:t}},void 0,W_(function(t){return t.outputs||{}})),kf("HostBinding",function(t){return{hostPropertyName:t}}),kf("HostListener",function(t,e){return{eventName:t,args:e}}),Pf("NgModule",function(t){return t},void 0,void 0,function(t,e){return function n(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=f(n,[e.exports])),t.ngInjectorDef=function r(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}({factory:K_(t,{useClass:t}),providers:e&&e.providers,imports:n})}(t,e)})),Q_=function Ke(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},G_=new Q_("7.0.3"),X_=Pf("Injectable",void 0,void 0,void 0,function(t,e){return function n(t,e){e&&void 0!==e.providedIn&&!gf(t)&&(t.ngInjectableDef=mf({providedIn:e.providedIn,factory:K_(t,e)}))}(t,e)}),$_="ngDebugContext",Y_="ngOriginalError",Z_="ngErrorLogger";function J_(t){return t[$_]}function tb(t){return t[Y_]}function eb(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))}
1153
+ var W_=function(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=e.constructor;o.hasOwnProperty(vf)||function(t){var e=t.constructor,n=e.ngBaseDef,r=e.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(lf(r.inputs,n.inputs),lf(r.outputs,n.outputs),lf(r.declaredInputs,n.declaredInputs))}(e),t(o.ngBaseDef)[n]=r[0]}},z_=(kf("Input",function(t){return{bindingPropertyName:t}},void 0,W_(function(t){return t.inputs||{}})),kf("Output",function(t){return{bindingPropertyName:t}},void 0,W_(function(t){return t.outputs||{}})),kf("HostBinding",function(t){return{hostPropertyName:t}}),kf("HostListener",function(t,e){return{eventName:t,args:e}}),Pf("NgModule",function(t){return t},void 0,void 0,function(t,e){return function n(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=f(n,[e.exports])),t.ngInjectorDef=function r(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}({factory:K_(t,{useClass:t}),providers:e&&e.providers,imports:n})}(t,e)})),Q_=function Ke(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},G_=new Q_("7.0.4"),X_=Pf("Injectable",void 0,void 0,void 0,function(t,e){return function n(t,e){e&&void 0!==e.providedIn&&!gf(t)&&(t.ngInjectableDef=mf({providedIn:e.providedIn,factory:K_(t,e)}))}(t,e)}),$_="ngDebugContext",Y_="ngOriginalError",Z_="ngErrorLogger";function J_(t){return t[$_]}function tb(t){return t[Y_]}function eb(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))}
1154
1154
  /**
1155
1155
  * @license
1156
1156
  * Copyright Google Inc. All Rights Reserved.
@@ -1449,7 +1449,7 @@ var YC=function(){function t(t){this._nativeNode=t}return Object.defineProperty(
1449
1449
  *
1450
1450
  * Use of this source code is governed by an MIT-style license that can be
1451
1451
  * found in the LICENSE file at https://angular.io/license
1452
- */(n,i):{message:n.message,span:i}})||[]},t.prototype.getDeclarationFromNode=function(t,e){var n,i;if(e.kind==r.SyntaxKind.ClassDeclaration&&e.decorators&&e.name)try{for(var o=p(e.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==r.SyntaxKind.CallExpression){var u=e;if(u.name){var c=a.expression.expression;if(this.checker.getTypeAtLocation(c)){var l=this.reflector.getStaticSymbol(t.fileName,u.name.text);try{if(this.resolver.isDirective(l)){var h=this.resolver.getNonNormalizedDirectiveMetadata(l).metadata;return{type:l,declarationSpan:f=rT(c),metadata:h,errors:this.getCollectedErrors(f,t)}}}catch(e){var f;if(e.message)return this.collectError(e,t.fileName),{type:l,declarationSpan:f=rT(c),errors:this.getCollectedErrors(f,t)}}}}}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.stringOf=function(t){switch(t.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:return t.text}},t.prototype.findNode=function(t,e){return function t(n){if(e>=n.getStart()&&e<n.getEnd())return r.forEachChild(n,t)||n}(t)},t.missingTemplate=[void 0,void 0],t}();function rT(t){return{start:t.getStart(),end:t.getEnd()}}var iT=new WeakMap,oT=new Q_("7.0.3");
1452
+ */(n,i):{message:n.message,span:i}})||[]},t.prototype.getDeclarationFromNode=function(t,e){var n,i;if(e.kind==r.SyntaxKind.ClassDeclaration&&e.decorators&&e.name)try{for(var o=p(e.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==r.SyntaxKind.CallExpression){var u=e;if(u.name){var c=a.expression.expression;if(this.checker.getTypeAtLocation(c)){var l=this.reflector.getStaticSymbol(t.fileName,u.name.text);try{if(this.resolver.isDirective(l)){var h=this.resolver.getNonNormalizedDirectiveMetadata(l).metadata;return{type:l,declarationSpan:f=rT(c),metadata:h,errors:this.getCollectedErrors(f,t)}}}catch(e){var f;if(e.message)return this.collectError(e,t.fileName),{type:l,declarationSpan:f=rT(c),errors:this.getCollectedErrors(f,t)}}}}}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.stringOf=function(t){switch(t.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:return t.text}},t.prototype.findNode=function(t,e){return function t(n){if(e>=n.getStart()&&e<n.getEnd())return r.forEachChild(n,t)||n}(t)},t.missingTemplate=[void 0,void 0],t}();function rT(t){return{start:t.getStart(),end:t.getEnd()}}var iT=new WeakMap,oT=new Q_("7.0.4");
1453
1453
  /**
1454
1454
  * @license
1455
1455
  * Copyright Google Inc. All Rights Reserved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/language-service",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "Angular - language services",
5
5
  "main": "./bundles/language-service.umd.js",
6
6
  "module": "./fesm5/language-service.js",
package/src/version.js CHANGED
@@ -22,6 +22,6 @@
22
22
  * Entry point for all public APIs of the common package.
23
23
  */
24
24
  var core_1 = require("@angular/core");
25
- exports.VERSION = new core_1.Version('7.0.3');
25
+ exports.VERSION = new core_1.Version('7.0.4');
26
26
  });
27
27
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2xhbmd1YWdlLXNlcnZpY2Uvc3JjL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7SUFFSDs7OztPQUlHO0lBRUgsc0NBQXNDO0lBRXpCLFFBQUEsT0FBTyxHQUFHLElBQUksY0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21tb24gcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcwLjAuMC1QTEFDRUhPTERFUicpO1xuIl19