@angular/language-service 6.0.0-rc.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/language-service.umd.js +784 -678
- package/bundles/language-service.umd.min.js +133 -155
- package/bundles/language-service.umd.min.js.map +1 -1
- package/package.json +3 -2
- package/src/types.d.ts +2 -2
- package/src/types.js +1 -1
- package/src/version.d.ts +1 -1
- package/src/version.js +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v6.0.0
|
|
2
|
+
* @license Angular v6.0.0
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -339,6 +339,8 @@ function stringify(token) {
|
|
|
339
339
|
if (token.name) {
|
|
340
340
|
return "" + token.name;
|
|
341
341
|
}
|
|
342
|
+
// WARNING: do not try to `JSON.stringify(token)` here
|
|
343
|
+
// see https://github.com/angular/angular/issues/23440
|
|
342
344
|
var res = token.toString();
|
|
343
345
|
if (res == null) {
|
|
344
346
|
return '' + res;
|
|
@@ -389,9 +391,9 @@ var Version = /** @class */ (function () {
|
|
|
389
391
|
* Entry point for all public APIs of the common package.
|
|
390
392
|
*/
|
|
391
393
|
/**
|
|
392
|
-
*
|
|
394
|
+
*
|
|
393
395
|
*/
|
|
394
|
-
var VERSION = new Version('6.0.0
|
|
396
|
+
var VERSION = new Version('6.0.0');
|
|
395
397
|
|
|
396
398
|
/**
|
|
397
399
|
* @license
|
|
@@ -8140,10 +8142,11 @@ var BinaryOperator;
|
|
|
8140
8142
|
BinaryOperator[BinaryOperator["Modulo"] = 8] = "Modulo";
|
|
8141
8143
|
BinaryOperator[BinaryOperator["And"] = 9] = "And";
|
|
8142
8144
|
BinaryOperator[BinaryOperator["Or"] = 10] = "Or";
|
|
8143
|
-
BinaryOperator[BinaryOperator["
|
|
8144
|
-
BinaryOperator[BinaryOperator["
|
|
8145
|
-
BinaryOperator[BinaryOperator["
|
|
8146
|
-
BinaryOperator[BinaryOperator["
|
|
8145
|
+
BinaryOperator[BinaryOperator["BitwiseAnd"] = 11] = "BitwiseAnd";
|
|
8146
|
+
BinaryOperator[BinaryOperator["Lower"] = 12] = "Lower";
|
|
8147
|
+
BinaryOperator[BinaryOperator["LowerEquals"] = 13] = "LowerEquals";
|
|
8148
|
+
BinaryOperator[BinaryOperator["Bigger"] = 14] = "Bigger";
|
|
8149
|
+
BinaryOperator[BinaryOperator["BiggerEquals"] = 15] = "BiggerEquals";
|
|
8147
8150
|
})(BinaryOperator || (BinaryOperator = {}));
|
|
8148
8151
|
function nullSafeIsEquivalent(base, other) {
|
|
8149
8152
|
if (base == null || other == null) {
|
|
@@ -8217,6 +8220,10 @@ var Expression = /** @class */ (function () {
|
|
|
8217
8220
|
Expression.prototype.and = function (rhs, sourceSpan) {
|
|
8218
8221
|
return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);
|
|
8219
8222
|
};
|
|
8223
|
+
Expression.prototype.bitwiseAnd = function (rhs, sourceSpan, parens) {
|
|
8224
|
+
if (parens === void 0) { parens = true; }
|
|
8225
|
+
return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);
|
|
8226
|
+
};
|
|
8220
8227
|
Expression.prototype.or = function (rhs, sourceSpan) {
|
|
8221
8228
|
return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);
|
|
8222
8229
|
};
|
|
@@ -8533,10 +8540,12 @@ var FunctionExpr = /** @class */ (function (_super) {
|
|
|
8533
8540
|
}(Expression));
|
|
8534
8541
|
var BinaryOperatorExpr = /** @class */ (function (_super) {
|
|
8535
8542
|
__extends(BinaryOperatorExpr, _super);
|
|
8536
|
-
function BinaryOperatorExpr(operator, lhs, rhs, type, sourceSpan) {
|
|
8543
|
+
function BinaryOperatorExpr(operator, lhs, rhs, type, sourceSpan, parens) {
|
|
8544
|
+
if (parens === void 0) { parens = true; }
|
|
8537
8545
|
var _this = _super.call(this, type || lhs.type, sourceSpan) || this;
|
|
8538
8546
|
_this.operator = operator;
|
|
8539
8547
|
_this.rhs = rhs;
|
|
8548
|
+
_this.parens = parens;
|
|
8540
8549
|
_this.lhs = lhs;
|
|
8541
8550
|
return _this;
|
|
8542
8551
|
}
|
|
@@ -11801,6 +11810,9 @@ var AbstractEmitterVisitor = /** @class */ (function () {
|
|
|
11801
11810
|
case BinaryOperator.And:
|
|
11802
11811
|
opStr = '&&';
|
|
11803
11812
|
break;
|
|
11813
|
+
case BinaryOperator.BitwiseAnd:
|
|
11814
|
+
opStr = '&';
|
|
11815
|
+
break;
|
|
11804
11816
|
case BinaryOperator.Or:
|
|
11805
11817
|
opStr = '||';
|
|
11806
11818
|
break;
|
|
@@ -11834,11 +11846,13 @@ var AbstractEmitterVisitor = /** @class */ (function () {
|
|
|
11834
11846
|
default:
|
|
11835
11847
|
throw new Error("Unknown operator " + ast.operator);
|
|
11836
11848
|
}
|
|
11837
|
-
|
|
11849
|
+
if (ast.parens)
|
|
11850
|
+
ctx.print(ast, "(");
|
|
11838
11851
|
ast.lhs.visitExpression(this, ctx);
|
|
11839
11852
|
ctx.print(ast, " " + opStr + " ");
|
|
11840
11853
|
ast.rhs.visitExpression(this, ctx);
|
|
11841
|
-
|
|
11854
|
+
if (ast.parens)
|
|
11855
|
+
ctx.print(ast, ")");
|
|
11842
11856
|
return null;
|
|
11843
11857
|
};
|
|
11844
11858
|
AbstractEmitterVisitor.prototype.visitReadPropExpr = function (ast, ctx) {
|
|
@@ -14314,10 +14328,11 @@ var Identifiers$1 = /** @class */ (function () {
|
|
|
14314
14328
|
Identifiers.projectionDef = { name: 'ɵpD', moduleName: CORE$1 };
|
|
14315
14329
|
Identifiers.refreshComponent = { name: 'ɵr', moduleName: CORE$1 };
|
|
14316
14330
|
Identifiers.directiveLifeCycle = { name: 'ɵl', moduleName: CORE$1 };
|
|
14331
|
+
Identifiers.injectAttribute = { name: 'ɵinjectAttribute', moduleName: CORE$1 };
|
|
14317
14332
|
Identifiers.injectElementRef = { name: 'ɵinjectElementRef', moduleName: CORE$1 };
|
|
14318
14333
|
Identifiers.injectTemplateRef = { name: 'ɵinjectTemplateRef', moduleName: CORE$1 };
|
|
14319
14334
|
Identifiers.injectViewContainerRef = { name: 'ɵinjectViewContainerRef', moduleName: CORE$1 };
|
|
14320
|
-
Identifiers.
|
|
14335
|
+
Identifiers.directiveInject = { name: 'ɵdirectiveInject', moduleName: CORE$1 };
|
|
14321
14336
|
Identifiers.defineComponent = { name: 'ɵdefineComponent', moduleName: CORE$1 };
|
|
14322
14337
|
Identifiers.defineDirective = {
|
|
14323
14338
|
name: 'ɵdefineDirective',
|
|
@@ -14398,9 +14413,23 @@ function getLiteralFactory(outputContext, literal$$1) {
|
|
|
14398
14413
|
// change.
|
|
14399
14414
|
return importExpr(pureFunctionIdent).callFn(__spread([literalFactory], literalFactoryArguments));
|
|
14400
14415
|
}
|
|
14416
|
+
function noop() { }
|
|
14401
14417
|
var BindingScope = /** @class */ (function () {
|
|
14402
|
-
function BindingScope(parent) {
|
|
14418
|
+
function BindingScope(parent, declareLocalVarCallback) {
|
|
14419
|
+
if (parent === void 0) { parent = null; }
|
|
14420
|
+
if (declareLocalVarCallback === void 0) { declareLocalVarCallback = noop; }
|
|
14403
14421
|
this.parent = parent;
|
|
14422
|
+
this.declareLocalVarCallback = declareLocalVarCallback;
|
|
14423
|
+
/**
|
|
14424
|
+
* Keeps a map from local variables to their expressions.
|
|
14425
|
+
*
|
|
14426
|
+
* This is used when one refers to variable such as: 'let abc = a.b.c`.
|
|
14427
|
+
* - key to the map is the string literal `"abc"`.
|
|
14428
|
+
* - value `lhs` is the left hand side which is an AST representing `abc`.
|
|
14429
|
+
* - value `rhs` is the right hand side which is an AST representing `a.b.c`.
|
|
14430
|
+
* - value `declared` is true if the `declareLocalVarCallback` has been called for this scope
|
|
14431
|
+
* already.
|
|
14432
|
+
*/
|
|
14404
14433
|
this.map = new Map();
|
|
14405
14434
|
this.referenceNameIndex = 0;
|
|
14406
14435
|
}
|
|
@@ -14409,21 +14438,43 @@ var BindingScope = /** @class */ (function () {
|
|
|
14409
14438
|
while (current) {
|
|
14410
14439
|
var value = current.map.get(name);
|
|
14411
14440
|
if (value != null) {
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14441
|
+
if (current !== this) {
|
|
14442
|
+
// make a local copy and reset the `declared` state.
|
|
14443
|
+
value = { lhs: value.lhs, rhs: value.rhs, declared: false };
|
|
14444
|
+
// Cache the value locally.
|
|
14445
|
+
this.map.set(name, value);
|
|
14446
|
+
}
|
|
14447
|
+
if (value.rhs && !value.declared) {
|
|
14448
|
+
// if it is first time we are referencing the variable in the scope
|
|
14449
|
+
// than invoke the callback to insert variable declaration.
|
|
14450
|
+
this.declareLocalVarCallback(value.lhs, value.rhs);
|
|
14451
|
+
value.declared = true;
|
|
14452
|
+
}
|
|
14453
|
+
return value.lhs;
|
|
14415
14454
|
}
|
|
14416
14455
|
current = current.parent;
|
|
14417
14456
|
}
|
|
14418
14457
|
return null;
|
|
14419
14458
|
};
|
|
14420
|
-
|
|
14459
|
+
/**
|
|
14460
|
+
* Create a local variable for later reference.
|
|
14461
|
+
*
|
|
14462
|
+
* @param name Name of the variable.
|
|
14463
|
+
* @param lhs AST representing the left hand side of the `let lhs = rhs;`.
|
|
14464
|
+
* @param rhs AST representing the right hand side of the `let lhs = rhs;`. The `rhs` can be
|
|
14465
|
+
* `undefined` for variable that are ambient such as `$event` and which don't have `rhs`
|
|
14466
|
+
* declaration.
|
|
14467
|
+
*/
|
|
14468
|
+
BindingScope.prototype.set = function (name, lhs, rhs) {
|
|
14421
14469
|
!this.map.has(name) ||
|
|
14422
14470
|
error("The name " + name + " is already defined in scope to be " + this.map.get(name));
|
|
14423
|
-
this.map.set(name,
|
|
14471
|
+
this.map.set(name, { lhs: lhs, rhs: rhs, declared: false });
|
|
14424
14472
|
return this;
|
|
14425
14473
|
};
|
|
14426
|
-
BindingScope.prototype.
|
|
14474
|
+
BindingScope.prototype.getLocal = function (name) { return this.get(name); };
|
|
14475
|
+
BindingScope.prototype.nestedScope = function (declareCallback) {
|
|
14476
|
+
return new BindingScope(this, declareCallback);
|
|
14477
|
+
};
|
|
14427
14478
|
BindingScope.prototype.freshReferenceName = function () {
|
|
14428
14479
|
var current = this;
|
|
14429
14480
|
// Find the top scope as it maintains the global reference count
|
|
@@ -14432,9 +14483,9 @@ var BindingScope = /** @class */ (function () {
|
|
|
14432
14483
|
var ref = "" + REFERENCE_PREFIX + current.referenceNameIndex++;
|
|
14433
14484
|
return ref;
|
|
14434
14485
|
};
|
|
14486
|
+
BindingScope.ROOT_SCOPE = new BindingScope().set('$event', variable('$event'));
|
|
14435
14487
|
return BindingScope;
|
|
14436
14488
|
}());
|
|
14437
|
-
var ROOT_SCOPE = new BindingScope(null).set('$event', variable('$event'));
|
|
14438
14489
|
|
|
14439
14490
|
var ValueConverter = /** @class */ (function (_super) {
|
|
14440
14491
|
__extends(ValueConverter, _super);
|
|
@@ -14447,20 +14498,20 @@ var ValueConverter = /** @class */ (function (_super) {
|
|
|
14447
14498
|
return _this;
|
|
14448
14499
|
}
|
|
14449
14500
|
// AstMemoryEfficientTransformer
|
|
14450
|
-
ValueConverter.prototype.visitPipe = function (
|
|
14501
|
+
ValueConverter.prototype.visitPipe = function (pipe, context) {
|
|
14451
14502
|
// Allocate a slot to create the pipe
|
|
14452
14503
|
var slot = this.allocateSlot();
|
|
14453
14504
|
var slotPseudoLocal = "PIPE:" + slot;
|
|
14454
|
-
var target = new PropertyRead(
|
|
14455
|
-
var bindingId = pipeBinding(
|
|
14456
|
-
this.definePipe(
|
|
14457
|
-
var value =
|
|
14458
|
-
var args = this.visitAll(
|
|
14459
|
-
return new FunctionCall(
|
|
14460
|
-
};
|
|
14461
|
-
ValueConverter.prototype.visitLiteralArray = function (
|
|
14505
|
+
var target = new PropertyRead(pipe.span, new ImplicitReceiver(pipe.span), slotPseudoLocal);
|
|
14506
|
+
var bindingId = pipeBinding(pipe.args);
|
|
14507
|
+
this.definePipe(pipe.name, slotPseudoLocal, slot, importExpr(bindingId));
|
|
14508
|
+
var value = pipe.exp.visit(this);
|
|
14509
|
+
var args = this.visitAll(pipe.args);
|
|
14510
|
+
return new FunctionCall(pipe.span, target, __spread([new LiteralPrimitive(pipe.span, slot), value], args));
|
|
14511
|
+
};
|
|
14512
|
+
ValueConverter.prototype.visitLiteralArray = function (array, context) {
|
|
14462
14513
|
var _this = this;
|
|
14463
|
-
return new BuiltinFunctionCall(
|
|
14514
|
+
return new BuiltinFunctionCall(array.span, this.visitAll(array.expressions), function (values) {
|
|
14464
14515
|
// If the literal has calculated (non-literal) elements transform it into
|
|
14465
14516
|
// calls to literal factories that compose the literal and will cache intermediate
|
|
14466
14517
|
// values. Otherwise, just return an literal array that contains the values.
|
|
@@ -14470,13 +14521,13 @@ var ValueConverter = /** @class */ (function (_super) {
|
|
|
14470
14521
|
getLiteralFactory(_this.outputCtx, literal$$1);
|
|
14471
14522
|
});
|
|
14472
14523
|
};
|
|
14473
|
-
ValueConverter.prototype.visitLiteralMap = function (
|
|
14524
|
+
ValueConverter.prototype.visitLiteralMap = function (map, context) {
|
|
14474
14525
|
var _this = this;
|
|
14475
|
-
return new BuiltinFunctionCall(
|
|
14526
|
+
return new BuiltinFunctionCall(map.span, this.visitAll(map.values), function (values) {
|
|
14476
14527
|
// If the literal has calculated (non-literal) elements transform it into
|
|
14477
14528
|
// calls to literal factories that compose the literal and will cache intermediate
|
|
14478
14529
|
// values. Otherwise, just return an literal array that contains the values.
|
|
14479
|
-
var literal$$1 = literalMap(values.map(function (value, index) { return ({ key:
|
|
14530
|
+
var literal$$1 = literalMap(values.map(function (value, index) { return ({ key: map.keys[index].key, value: value, quoted: map.keys[index].quoted }); }));
|
|
14480
14531
|
return values.every(function (a) { return a.isConstant(); }) ?
|
|
14481
14532
|
_this.outputCtx.constantPool.getConstLiteral(literal$$1, true) :
|
|
14482
14533
|
getLiteralFactory(_this.outputCtx, literal$$1);
|
|
@@ -14493,51 +14544,20 @@ var ContentProjectionVisitor = /** @class */ (function (_super) {
|
|
|
14493
14544
|
_this.index = 1;
|
|
14494
14545
|
return _this;
|
|
14495
14546
|
}
|
|
14496
|
-
ContentProjectionVisitor.prototype.visitNgContent = function (
|
|
14497
|
-
var
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14547
|
+
ContentProjectionVisitor.prototype.visitNgContent = function (ngContent) {
|
|
14548
|
+
var selector = this.ngContentSelectors[ngContent.index];
|
|
14549
|
+
if (selector == null) {
|
|
14550
|
+
error("could not find selector for index " + ngContent.index + " in " + ngContent);
|
|
14551
|
+
}
|
|
14552
|
+
if (!selector || selector === '*') {
|
|
14553
|
+
this.projectionMap.set(ngContent, { index: 0 });
|
|
14501
14554
|
}
|
|
14502
14555
|
else {
|
|
14503
|
-
|
|
14504
|
-
this.projectionMap.set(ast, { index: this.index++, selector: parseSelectorsToR3Selector(cssSelectors) });
|
|
14556
|
+
this.projectionMap.set(ngContent, { index: this.index++, selector: selector });
|
|
14505
14557
|
}
|
|
14506
14558
|
};
|
|
14507
14559
|
return ContentProjectionVisitor;
|
|
14508
14560
|
}(RecursiveTemplateAstVisitor));
|
|
14509
|
-
function parserSelectorToSimpleSelector(selector) {
|
|
14510
|
-
var classes = selector.classNames && selector.classNames.length ? __spread([8 /* CLASS */], selector.classNames) :
|
|
14511
|
-
[];
|
|
14512
|
-
var elementName = selector.element && selector.element !== '*' ? selector.element : '';
|
|
14513
|
-
return __spread([elementName], selector.attrs, classes);
|
|
14514
|
-
}
|
|
14515
|
-
function parserSelectorToNegativeSelector(selector) {
|
|
14516
|
-
var classes = selector.classNames && selector.classNames.length ? __spread([8 /* CLASS */], selector.classNames) :
|
|
14517
|
-
[];
|
|
14518
|
-
if (selector.element) {
|
|
14519
|
-
return __spread([
|
|
14520
|
-
1 /* NOT */ | 4 /* ELEMENT */, selector.element
|
|
14521
|
-
], selector.attrs, classes);
|
|
14522
|
-
}
|
|
14523
|
-
else if (selector.attrs.length) {
|
|
14524
|
-
return __spread([1 /* NOT */ | 2 /* ATTRIBUTE */], selector.attrs, classes);
|
|
14525
|
-
}
|
|
14526
|
-
else {
|
|
14527
|
-
return selector.classNames && selector.classNames.length ? __spread([1 /* NOT */ | 8 /* CLASS */], selector.classNames) :
|
|
14528
|
-
[];
|
|
14529
|
-
}
|
|
14530
|
-
}
|
|
14531
|
-
function parserSelectorToR3Selector(selector) {
|
|
14532
|
-
var positive = parserSelectorToSimpleSelector(selector);
|
|
14533
|
-
var negative = selector.notSelectors && selector.notSelectors.length ?
|
|
14534
|
-
selector.notSelectors.map(function (notSelector) { return parserSelectorToNegativeSelector(notSelector); }) :
|
|
14535
|
-
[];
|
|
14536
|
-
return positive.concat.apply(positive, __spread(negative));
|
|
14537
|
-
}
|
|
14538
|
-
function parseSelectorsToR3Selector(selectors) {
|
|
14539
|
-
return selectors.map(parserSelectorToR3Selector);
|
|
14540
|
-
}
|
|
14541
14561
|
var _a;
|
|
14542
14562
|
|
|
14543
14563
|
/**
|
|
@@ -15668,7 +15688,9 @@ var StaticReflector = /** @class */ (function () {
|
|
|
15668
15688
|
var ownAnnotations_1 = [];
|
|
15669
15689
|
if (classMetadata['decorators']) {
|
|
15670
15690
|
ownAnnotations_1 = simplify(type, classMetadata['decorators']);
|
|
15671
|
-
|
|
15691
|
+
if (ownAnnotations_1) {
|
|
15692
|
+
annotations.push.apply(annotations, __spread(ownAnnotations_1));
|
|
15693
|
+
}
|
|
15672
15694
|
}
|
|
15673
15695
|
if (parentType && !this.summaryResolver.isLibraryFile(type.filePath) &&
|
|
15674
15696
|
this.summaryResolver.isLibraryFile(parentType.filePath)) {
|
|
@@ -22613,8 +22635,7 @@ function findSuitableDefaultModule(modules) {
|
|
|
22613
22635
|
*/
|
|
22614
22636
|
function defineInjectable(opts) {
|
|
22615
22637
|
return {
|
|
22616
|
-
providedIn: opts.providedIn || null,
|
|
22617
|
-
factory: opts.factory,
|
|
22638
|
+
providedIn: opts.providedIn || null, factory: opts.factory, value: undefined,
|
|
22618
22639
|
};
|
|
22619
22640
|
}
|
|
22620
22641
|
/**
|
|
@@ -22639,9 +22660,7 @@ function defineInjectable(opts) {
|
|
|
22639
22660
|
*/
|
|
22640
22661
|
function defineInjector(options) {
|
|
22641
22662
|
return {
|
|
22642
|
-
factory: options.factory,
|
|
22643
|
-
providers: options.providers || [],
|
|
22644
|
-
imports: options.imports || [],
|
|
22663
|
+
factory: options.factory, providers: options.providers || [], imports: options.imports || [],
|
|
22645
22664
|
};
|
|
22646
22665
|
}
|
|
22647
22666
|
|
|
@@ -22688,7 +22707,7 @@ function defineInjector(options) {
|
|
|
22688
22707
|
*
|
|
22689
22708
|
* {@example core/di/ts/injector_spec.ts region='InjectionToken'}
|
|
22690
22709
|
*
|
|
22691
|
-
*
|
|
22710
|
+
*
|
|
22692
22711
|
*/
|
|
22693
22712
|
var InjectionToken = /** @class */ (function () {
|
|
22694
22713
|
function InjectionToken(_desc, options) {
|
|
@@ -22884,7 +22903,7 @@ var ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents
|
|
|
22884
22903
|
/**
|
|
22885
22904
|
* Attribute decorator and metadata.
|
|
22886
22905
|
*
|
|
22887
|
-
*
|
|
22906
|
+
*
|
|
22888
22907
|
* @Annotation
|
|
22889
22908
|
*/
|
|
22890
22909
|
var Attribute$1 = makeParamDecorator('Attribute', function (attributeName) { return ({ attributeName: attributeName }); });
|
|
@@ -22894,7 +22913,7 @@ var Attribute$1 = makeParamDecorator('Attribute', function (attributeName) { ret
|
|
|
22894
22913
|
* See {@link ContentChildren}, {@link ContentChild}, {@link ViewChildren}, {@link ViewChild} for
|
|
22895
22914
|
* more information.
|
|
22896
22915
|
*
|
|
22897
|
-
*
|
|
22916
|
+
*
|
|
22898
22917
|
*/
|
|
22899
22918
|
var Query = /** @class */ (function () {
|
|
22900
22919
|
function Query() {
|
|
@@ -22904,7 +22923,7 @@ var Query = /** @class */ (function () {
|
|
|
22904
22923
|
/**
|
|
22905
22924
|
* ContentChildren decorator and metadata.
|
|
22906
22925
|
*
|
|
22907
|
-
*
|
|
22926
|
+
*
|
|
22908
22927
|
* @Annotation
|
|
22909
22928
|
*/
|
|
22910
22929
|
var ContentChildren = makePropDecorator('ContentChildren', function (selector, data) {
|
|
@@ -22914,7 +22933,7 @@ var ContentChildren = makePropDecorator('ContentChildren', function (selector, d
|
|
|
22914
22933
|
/**
|
|
22915
22934
|
* ContentChild decorator and metadata.
|
|
22916
22935
|
*
|
|
22917
|
-
*
|
|
22936
|
+
*
|
|
22918
22937
|
* @Annotation
|
|
22919
22938
|
*/
|
|
22920
22939
|
var ContentChild = makePropDecorator('ContentChild', function (selector, data) {
|
|
@@ -22924,7 +22943,7 @@ var ContentChild = makePropDecorator('ContentChild', function (selector, data) {
|
|
|
22924
22943
|
/**
|
|
22925
22944
|
* ViewChildren decorator and metadata.
|
|
22926
22945
|
*
|
|
22927
|
-
*
|
|
22946
|
+
*
|
|
22928
22947
|
* @Annotation
|
|
22929
22948
|
*/
|
|
22930
22949
|
var ViewChildren = makePropDecorator('ViewChildren', function (selector, data) {
|
|
@@ -22934,7 +22953,7 @@ var ViewChildren = makePropDecorator('ViewChildren', function (selector, data) {
|
|
|
22934
22953
|
/**
|
|
22935
22954
|
* ViewChild decorator and metadata.
|
|
22936
22955
|
*
|
|
22937
|
-
*
|
|
22956
|
+
*
|
|
22938
22957
|
* @Annotation
|
|
22939
22958
|
*/
|
|
22940
22959
|
var ViewChild = makePropDecorator('ViewChild', function (selector, data) {
|
|
@@ -22958,18 +22977,18 @@ var ViewChild = makePropDecorator('ViewChild', function (selector, data) {
|
|
|
22958
22977
|
/**
|
|
22959
22978
|
* Describes within the change detector which strategy will be used the next time change
|
|
22960
22979
|
* detection is triggered.
|
|
22961
|
-
*
|
|
22980
|
+
*
|
|
22962
22981
|
*/
|
|
22963
22982
|
/**
|
|
22964
22983
|
* Describes within the change detector which strategy will be used the next time change
|
|
22965
22984
|
* detection is triggered.
|
|
22966
|
-
*
|
|
22985
|
+
*
|
|
22967
22986
|
*/
|
|
22968
22987
|
var ChangeDetectionStrategy$1;
|
|
22969
22988
|
/**
|
|
22970
22989
|
* Describes within the change detector which strategy will be used the next time change
|
|
22971
22990
|
* detection is triggered.
|
|
22972
|
-
*
|
|
22991
|
+
*
|
|
22973
22992
|
*/
|
|
22974
22993
|
(function (ChangeDetectionStrategy) {
|
|
22975
22994
|
/**
|
|
@@ -23034,7 +23053,7 @@ var ChangeDetectorStatus;
|
|
|
23034
23053
|
/**
|
|
23035
23054
|
* Directive decorator and metadata.
|
|
23036
23055
|
*
|
|
23037
|
-
*
|
|
23056
|
+
*
|
|
23038
23057
|
* @Annotation
|
|
23039
23058
|
*/
|
|
23040
23059
|
var Directive = makeDecorator('Directive', function (dir) {
|
|
@@ -23044,7 +23063,7 @@ var Directive = makeDecorator('Directive', function (dir) {
|
|
|
23044
23063
|
/**
|
|
23045
23064
|
* Component decorator and metadata.
|
|
23046
23065
|
*
|
|
23047
|
-
*
|
|
23066
|
+
*
|
|
23048
23067
|
* @Annotation
|
|
23049
23068
|
*/
|
|
23050
23069
|
var Component = makeDecorator('Component', function (c) {
|
|
@@ -23060,35 +23079,35 @@ var Component = makeDecorator('Component', function (c) {
|
|
|
23060
23079
|
* To use the pipe include a reference to the pipe class in
|
|
23061
23080
|
* {@link NgModule#declarations}.
|
|
23062
23081
|
*
|
|
23063
|
-
*
|
|
23082
|
+
*
|
|
23064
23083
|
* @Annotation
|
|
23065
23084
|
*/
|
|
23066
23085
|
var Pipe = makeDecorator('Pipe', function (p) { return (__assign({ pure: true }, p)); });
|
|
23067
23086
|
/**
|
|
23068
23087
|
* Input decorator and metadata.
|
|
23069
23088
|
*
|
|
23070
|
-
*
|
|
23089
|
+
*
|
|
23071
23090
|
* @Annotation
|
|
23072
23091
|
*/
|
|
23073
23092
|
var Input = makePropDecorator('Input', function (bindingPropertyName) { return ({ bindingPropertyName: bindingPropertyName }); });
|
|
23074
23093
|
/**
|
|
23075
23094
|
* Output decorator and metadata.
|
|
23076
23095
|
*
|
|
23077
|
-
*
|
|
23096
|
+
*
|
|
23078
23097
|
* @Annotation
|
|
23079
23098
|
*/
|
|
23080
23099
|
var Output = makePropDecorator('Output', function (bindingPropertyName) { return ({ bindingPropertyName: bindingPropertyName }); });
|
|
23081
23100
|
/**
|
|
23082
23101
|
* HostBinding decorator and metadata.
|
|
23083
23102
|
*
|
|
23084
|
-
*
|
|
23103
|
+
*
|
|
23085
23104
|
* @Annotation
|
|
23086
23105
|
*/
|
|
23087
23106
|
var HostBinding = makePropDecorator('HostBinding', function (hostPropertyName) { return ({ hostPropertyName: hostPropertyName }); });
|
|
23088
23107
|
/**
|
|
23089
23108
|
* HostListener decorator and metadata.
|
|
23090
23109
|
*
|
|
23091
|
-
*
|
|
23110
|
+
*
|
|
23092
23111
|
* @Annotation
|
|
23093
23112
|
*/
|
|
23094
23113
|
var HostListener = makePropDecorator('HostListener', function (eventName, args) { return ({ eventName: eventName, args: args }); });
|
|
@@ -23108,7 +23127,7 @@ var HostListener = makePropDecorator('HostListener', function (eventName, args)
|
|
|
23108
23127
|
* An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
|
|
23109
23128
|
* the `MyCustomComponent` constructor function.
|
|
23110
23129
|
*
|
|
23111
|
-
*
|
|
23130
|
+
*
|
|
23112
23131
|
*/
|
|
23113
23132
|
var Type$2 = Function;
|
|
23114
23133
|
function isType(v) {
|
|
@@ -23497,35 +23516,35 @@ function resolveForwardRef$1(type) {
|
|
|
23497
23516
|
/**
|
|
23498
23517
|
* Inject decorator and metadata.
|
|
23499
23518
|
*
|
|
23500
|
-
*
|
|
23519
|
+
*
|
|
23501
23520
|
* @Annotation
|
|
23502
23521
|
*/
|
|
23503
23522
|
var Inject = makeParamDecorator('Inject', function (token) { return ({ token: token }); });
|
|
23504
23523
|
/**
|
|
23505
23524
|
* Optional decorator and metadata.
|
|
23506
23525
|
*
|
|
23507
|
-
*
|
|
23526
|
+
*
|
|
23508
23527
|
* @Annotation
|
|
23509
23528
|
*/
|
|
23510
23529
|
var Optional = makeParamDecorator('Optional');
|
|
23511
23530
|
/**
|
|
23512
23531
|
* Self decorator and metadata.
|
|
23513
23532
|
*
|
|
23514
|
-
*
|
|
23533
|
+
*
|
|
23515
23534
|
* @Annotation
|
|
23516
23535
|
*/
|
|
23517
23536
|
var Self = makeParamDecorator('Self');
|
|
23518
23537
|
/**
|
|
23519
23538
|
* SkipSelf decorator and metadata.
|
|
23520
23539
|
*
|
|
23521
|
-
*
|
|
23540
|
+
*
|
|
23522
23541
|
* @Annotation
|
|
23523
23542
|
*/
|
|
23524
23543
|
var SkipSelf = makeParamDecorator('SkipSelf');
|
|
23525
23544
|
/**
|
|
23526
23545
|
* Host decorator and metadata.
|
|
23527
23546
|
*
|
|
23528
|
-
*
|
|
23547
|
+
*
|
|
23529
23548
|
* @Annotation
|
|
23530
23549
|
*/
|
|
23531
23550
|
var Host = makeParamDecorator('Host');
|
|
@@ -23581,7 +23600,7 @@ var NullInjector = /** @class */ (function () {
|
|
|
23581
23600
|
* `Injector` returns itself when given `Injector` as a token:
|
|
23582
23601
|
* {@example core/di/ts/injector_spec.ts region='injectInjector'}
|
|
23583
23602
|
*
|
|
23584
|
-
*
|
|
23603
|
+
*
|
|
23585
23604
|
*/
|
|
23586
23605
|
var Injector = /** @class */ (function () {
|
|
23587
23606
|
function Injector() {
|
|
@@ -23776,7 +23795,7 @@ function tryResolveToken(token, record, records, parent, notFoundValue, flags) {
|
|
|
23776
23795
|
}
|
|
23777
23796
|
function resolveToken(token, record, records, parent, notFoundValue, flags) {
|
|
23778
23797
|
var value;
|
|
23779
|
-
if (record && !(flags &
|
|
23798
|
+
if (record && !(flags & 4 /* SkipSelf */)) {
|
|
23780
23799
|
// If we don't have a record, this implies that we don't own the provider hence don't know how
|
|
23781
23800
|
// to resolve it.
|
|
23782
23801
|
value = record.value;
|
|
@@ -23884,18 +23903,34 @@ function getClosureSafeProperty$1(objWithPropertyToExtract) {
|
|
|
23884
23903
|
}
|
|
23885
23904
|
throw Error('!prop');
|
|
23886
23905
|
}
|
|
23887
|
-
|
|
23906
|
+
/**
|
|
23907
|
+
* Current injector value used by `inject`.
|
|
23908
|
+
* - `undefined`: it is an error to call `inject`
|
|
23909
|
+
* - `null`: `inject` can be called but there is no injector (limp-mode).
|
|
23910
|
+
* - Injector instance: Use the injector for resolution.
|
|
23911
|
+
*/
|
|
23912
|
+
var _currentInjector = undefined;
|
|
23888
23913
|
function setCurrentInjector(injector) {
|
|
23889
23914
|
var former = _currentInjector;
|
|
23890
23915
|
_currentInjector = injector;
|
|
23891
23916
|
return former;
|
|
23892
23917
|
}
|
|
23893
|
-
function inject(token,
|
|
23918
|
+
function inject(token, flags) {
|
|
23894
23919
|
if (flags === void 0) { flags = 0 /* Default */; }
|
|
23895
|
-
if (_currentInjector ===
|
|
23920
|
+
if (_currentInjector === undefined) {
|
|
23896
23921
|
throw new Error("inject() must be called from an injection context");
|
|
23897
23922
|
}
|
|
23898
|
-
|
|
23923
|
+
else if (_currentInjector === null) {
|
|
23924
|
+
var injectableDef = token.ngInjectableDef;
|
|
23925
|
+
if (injectableDef && injectableDef.providedIn == 'root') {
|
|
23926
|
+
return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() :
|
|
23927
|
+
injectableDef.value;
|
|
23928
|
+
}
|
|
23929
|
+
throw new Error("Injector: NOT_FOUND [" + stringify$1(token) + "]");
|
|
23930
|
+
}
|
|
23931
|
+
else {
|
|
23932
|
+
return _currentInjector.get(token, flags & 8 /* Optional */ ? null : undefined, flags);
|
|
23933
|
+
}
|
|
23899
23934
|
}
|
|
23900
23935
|
function injectArgs(types) {
|
|
23901
23936
|
var args = [];
|
|
@@ -23906,17 +23941,17 @@ function injectArgs(types) {
|
|
|
23906
23941
|
throw new Error('Arguments array must have arguments.');
|
|
23907
23942
|
}
|
|
23908
23943
|
var type = undefined;
|
|
23909
|
-
var
|
|
23944
|
+
var flags = 0;
|
|
23910
23945
|
for (var j = 0; j < arg.length; j++) {
|
|
23911
23946
|
var meta = arg[j];
|
|
23912
23947
|
if (meta instanceof Optional || meta.__proto__.ngMetadataName === 'Optional') {
|
|
23913
|
-
|
|
23948
|
+
flags |= 8 /* Optional */;
|
|
23914
23949
|
}
|
|
23915
23950
|
else if (meta instanceof SkipSelf || meta.__proto__.ngMetadataName === 'SkipSelf') {
|
|
23916
|
-
|
|
23951
|
+
flags |= 4 /* SkipSelf */;
|
|
23917
23952
|
}
|
|
23918
23953
|
else if (meta instanceof Self || meta.__proto__.ngMetadataName === 'Self') {
|
|
23919
|
-
|
|
23954
|
+
flags |= 2 /* Self */;
|
|
23920
23955
|
}
|
|
23921
23956
|
else if (meta instanceof Inject) {
|
|
23922
23957
|
type = meta.token;
|
|
@@ -23925,7 +23960,7 @@ function injectArgs(types) {
|
|
|
23925
23960
|
type = meta;
|
|
23926
23961
|
}
|
|
23927
23962
|
}
|
|
23928
|
-
args.push(inject((type),
|
|
23963
|
+
args.push(inject((type), flags));
|
|
23929
23964
|
}
|
|
23930
23965
|
else {
|
|
23931
23966
|
args.push(inject(arg));
|
|
@@ -23988,7 +24023,7 @@ function convertInjectableProviderToFactory(type, provider) {
|
|
|
23988
24023
|
/**
|
|
23989
24024
|
* Injectable decorator and metadata.
|
|
23990
24025
|
*
|
|
23991
|
-
*
|
|
24026
|
+
*
|
|
23992
24027
|
* @Annotation
|
|
23993
24028
|
*/
|
|
23994
24029
|
var Injectable = makeDecorator('Injectable', undefined, undefined, undefined, function (injectableType, options) {
|
|
@@ -24014,7 +24049,7 @@ var Injectable = makeDecorator('Injectable', undefined, undefined, undefined, fu
|
|
|
24014
24049
|
* - any properties on elements with a `-` in their name which is the common rule for custom
|
|
24015
24050
|
* elements.
|
|
24016
24051
|
*
|
|
24017
|
-
*
|
|
24052
|
+
*
|
|
24018
24053
|
*/
|
|
24019
24054
|
|
|
24020
24055
|
/**
|
|
@@ -24026,7 +24061,7 @@ var Injectable = makeDecorator('Injectable', undefined, undefined, undefined, fu
|
|
|
24026
24061
|
/**
|
|
24027
24062
|
* NgModule decorator and metadata.
|
|
24028
24063
|
*
|
|
24029
|
-
*
|
|
24064
|
+
*
|
|
24030
24065
|
* @Annotation
|
|
24031
24066
|
*/
|
|
24032
24067
|
var NgModule = makeDecorator('NgModule', function (ngModule) { return ngModule; }, undefined, undefined, function (moduleType, metadata) {
|
|
@@ -24059,20 +24094,20 @@ var NgModule = makeDecorator('NgModule', function (ngModule) { return ngModule;
|
|
|
24059
24094
|
* Defines template and style encapsulation options available for Component's {@link Component}.
|
|
24060
24095
|
*
|
|
24061
24096
|
* See {@link Component#encapsulation encapsulation}.
|
|
24062
|
-
*
|
|
24097
|
+
*
|
|
24063
24098
|
*/
|
|
24064
24099
|
/**
|
|
24065
24100
|
* Defines template and style encapsulation options available for Component's {@link Component}.
|
|
24066
24101
|
*
|
|
24067
24102
|
* See {@link Component#encapsulation encapsulation}.
|
|
24068
|
-
*
|
|
24103
|
+
*
|
|
24069
24104
|
*/
|
|
24070
24105
|
var ViewEncapsulation$1;
|
|
24071
24106
|
/**
|
|
24072
24107
|
* Defines template and style encapsulation options available for Component's {@link Component}.
|
|
24073
24108
|
*
|
|
24074
24109
|
* See {@link Component#encapsulation encapsulation}.
|
|
24075
|
-
*
|
|
24110
|
+
*
|
|
24076
24111
|
*/
|
|
24077
24112
|
(function (ViewEncapsulation) {
|
|
24078
24113
|
/**
|
|
@@ -24115,7 +24150,7 @@ var ViewEncapsulation$1;
|
|
|
24115
24150
|
/**
|
|
24116
24151
|
* @description Represents the version of Angular
|
|
24117
24152
|
*
|
|
24118
|
-
*
|
|
24153
|
+
*
|
|
24119
24154
|
*/
|
|
24120
24155
|
var Version$1 = /** @class */ (function () {
|
|
24121
24156
|
function Version(full) {
|
|
@@ -24127,9 +24162,9 @@ var Version$1 = /** @class */ (function () {
|
|
|
24127
24162
|
return Version;
|
|
24128
24163
|
}());
|
|
24129
24164
|
/**
|
|
24130
|
-
*
|
|
24165
|
+
*
|
|
24131
24166
|
*/
|
|
24132
|
-
var VERSION$2 = new Version$1('6.0.0
|
|
24167
|
+
var VERSION$2 = new Version$1('6.0.0');
|
|
24133
24168
|
|
|
24134
24169
|
/**
|
|
24135
24170
|
* @license
|
|
@@ -24191,7 +24226,7 @@ function defaultErrorLogger(console) {
|
|
|
24191
24226
|
* class MyModule {}
|
|
24192
24227
|
* ```
|
|
24193
24228
|
*
|
|
24194
|
-
*
|
|
24229
|
+
*
|
|
24195
24230
|
*/
|
|
24196
24231
|
var ErrorHandler = /** @class */ (function () {
|
|
24197
24232
|
function ErrorHandler() {
|
|
@@ -24399,7 +24434,7 @@ function invalidProviderError(provider) {
|
|
|
24399
24434
|
*
|
|
24400
24435
|
* expect(() => Injector.resolveAndCreate([A,B])).toThrowError();
|
|
24401
24436
|
* ```
|
|
24402
|
-
*
|
|
24437
|
+
*
|
|
24403
24438
|
*/
|
|
24404
24439
|
function noAnnotationError(typeOrFunc, params) {
|
|
24405
24440
|
var signature = [];
|
|
@@ -24429,7 +24464,7 @@ function noAnnotationError(typeOrFunc, params) {
|
|
|
24429
24464
|
*
|
|
24430
24465
|
* expect(() => injector.getAt(100)).toThrowError();
|
|
24431
24466
|
* ```
|
|
24432
|
-
*
|
|
24467
|
+
*
|
|
24433
24468
|
*/
|
|
24434
24469
|
function outOfBoundsError(index) {
|
|
24435
24470
|
return Error("Index " + index + " is out-of-bounds.");
|
|
@@ -25301,7 +25336,7 @@ var APP_ROOT = new InjectionToken('The presence of this token marks an injector
|
|
|
25301
25336
|
* found in the LICENSE file at https://angular.io/license
|
|
25302
25337
|
*/
|
|
25303
25338
|
/**
|
|
25304
|
-
* Create a new `Injector` which is configured using `
|
|
25339
|
+
* Create a new `Injector` which is configured using `InjectorType`s.
|
|
25305
25340
|
*
|
|
25306
25341
|
* @experimental
|
|
25307
25342
|
*/
|
|
@@ -25763,6 +25798,7 @@ var Subscriber = /** @class */ (function (_super) {
|
|
|
25763
25798
|
this.destination.complete();
|
|
25764
25799
|
this.unsubscribe();
|
|
25765
25800
|
};
|
|
25801
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
25766
25802
|
Subscriber.prototype._unsubscribeAndRecycle = function () {
|
|
25767
25803
|
var _a = this, _parent = _a._parent, _parents = _a._parents;
|
|
25768
25804
|
this._parent = null;
|
|
@@ -25907,6 +25943,7 @@ var SafeSubscriber = /** @class */ (function (_super) {
|
|
|
25907
25943
|
}
|
|
25908
25944
|
return false;
|
|
25909
25945
|
};
|
|
25946
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
25910
25947
|
SafeSubscriber.prototype._unsubscribe = function () {
|
|
25911
25948
|
var _parentSubscriber = this._parentSubscriber;
|
|
25912
25949
|
this._context = null;
|
|
@@ -25938,14 +25975,14 @@ function toSubscriber(nextOrObserver, error, complete) {
|
|
|
25938
25975
|
var observable = typeof Symbol === 'function' && Symbol.observable || '@@observable';
|
|
25939
25976
|
|
|
25940
25977
|
/* tslint:disable:no-empty */
|
|
25941
|
-
function noop() { }
|
|
25978
|
+
function noop$1() { }
|
|
25942
25979
|
|
|
25943
25980
|
/* tslint:enable:max-line-length */
|
|
25944
25981
|
|
|
25945
25982
|
/* @internal */
|
|
25946
25983
|
function pipeFromArray(fns) {
|
|
25947
25984
|
if (!fns) {
|
|
25948
|
-
return noop;
|
|
25985
|
+
return noop$1;
|
|
25949
25986
|
}
|
|
25950
25987
|
if (fns.length === 1) {
|
|
25951
25988
|
return fns[0];
|
|
@@ -25970,7 +26007,7 @@ var Observable = /** @class */ (function () {
|
|
|
25970
26007
|
* `complete` can be called to notify of a successful completion.
|
|
25971
26008
|
*/
|
|
25972
26009
|
function Observable(subscribe) {
|
|
25973
|
-
/**
|
|
26010
|
+
/** Internal implementation detail, do not use directly. */
|
|
25974
26011
|
this._isScalar = false;
|
|
25975
26012
|
if (subscribe) {
|
|
25976
26013
|
this._subscribe = subscribe;
|
|
@@ -26122,6 +26159,7 @@ var Observable = /** @class */ (function () {
|
|
|
26122
26159
|
}
|
|
26123
26160
|
return sink;
|
|
26124
26161
|
};
|
|
26162
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26125
26163
|
Observable.prototype._trySubscribe = function (sink) {
|
|
26126
26164
|
try {
|
|
26127
26165
|
return this._subscribe(sink);
|
|
@@ -26161,7 +26199,7 @@ var Observable = /** @class */ (function () {
|
|
|
26161
26199
|
}, reject, resolve);
|
|
26162
26200
|
});
|
|
26163
26201
|
};
|
|
26164
|
-
/** @internal */
|
|
26202
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26165
26203
|
Observable.prototype._subscribe = function (subscriber) {
|
|
26166
26204
|
var source = this.source;
|
|
26167
26205
|
return source && source.subscribe(subscriber);
|
|
@@ -26408,6 +26446,7 @@ var Subject = /** @class */ (function (_super) {
|
|
|
26408
26446
|
this.closed = true;
|
|
26409
26447
|
this.observers = null;
|
|
26410
26448
|
};
|
|
26449
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26411
26450
|
Subject.prototype._trySubscribe = function (subscriber) {
|
|
26412
26451
|
if (this.closed) {
|
|
26413
26452
|
throw new ObjectUnsubscribedError();
|
|
@@ -26416,6 +26455,7 @@ var Subject = /** @class */ (function (_super) {
|
|
|
26416
26455
|
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
26417
26456
|
}
|
|
26418
26457
|
};
|
|
26458
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26419
26459
|
Subject.prototype._subscribe = function (subscriber) {
|
|
26420
26460
|
if (this.closed) {
|
|
26421
26461
|
throw new ObjectUnsubscribedError();
|
|
@@ -26473,6 +26513,7 @@ var AnonymousSubject = /** @class */ (function (_super) {
|
|
|
26473
26513
|
this.destination.complete();
|
|
26474
26514
|
}
|
|
26475
26515
|
};
|
|
26516
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26476
26517
|
AnonymousSubject.prototype._subscribe = function (subscriber) {
|
|
26477
26518
|
var source = this.source;
|
|
26478
26519
|
if (source) {
|
|
@@ -26597,6 +26638,7 @@ var ConnectableObservable = /** @class */ (function (_super) {
|
|
|
26597
26638
|
_this._isComplete = false;
|
|
26598
26639
|
return _this;
|
|
26599
26640
|
}
|
|
26641
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26600
26642
|
ConnectableObservable.prototype._subscribe = function (subscriber) {
|
|
26601
26643
|
return this.getSubject().subscribe(subscriber);
|
|
26602
26644
|
};
|
|
@@ -26739,11 +26781,274 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
|
26739
26781
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26740
26782
|
};
|
|
26741
26783
|
})();
|
|
26784
|
+
/* tslint:enable:max-line-length */
|
|
26785
|
+
/**
|
|
26786
|
+
* Groups the items emitted by an Observable according to a specified criterion,
|
|
26787
|
+
* and emits these grouped items as `GroupedObservables`, one
|
|
26788
|
+
* {@link GroupedObservable} per group.
|
|
26789
|
+
*
|
|
26790
|
+
* <img src="./img/groupBy.png" width="100%">
|
|
26791
|
+
*
|
|
26792
|
+
* @example <caption>Group objects by id and return as array</caption>
|
|
26793
|
+
* Observable.of<Obj>({id: 1, name: 'aze1'},
|
|
26794
|
+
* {id: 2, name: 'sf2'},
|
|
26795
|
+
* {id: 2, name: 'dg2'},
|
|
26796
|
+
* {id: 1, name: 'erg1'},
|
|
26797
|
+
* {id: 1, name: 'df1'},
|
|
26798
|
+
* {id: 2, name: 'sfqfb2'},
|
|
26799
|
+
* {id: 3, name: 'qfs3'},
|
|
26800
|
+
* {id: 2, name: 'qsgqsfg2'}
|
|
26801
|
+
* )
|
|
26802
|
+
* .groupBy(p => p.id)
|
|
26803
|
+
* .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], []))
|
|
26804
|
+
* .subscribe(p => console.log(p));
|
|
26805
|
+
*
|
|
26806
|
+
* // displays:
|
|
26807
|
+
* // [ { id: 1, name: 'aze1' },
|
|
26808
|
+
* // { id: 1, name: 'erg1' },
|
|
26809
|
+
* // { id: 1, name: 'df1' } ]
|
|
26810
|
+
* //
|
|
26811
|
+
* // [ { id: 2, name: 'sf2' },
|
|
26812
|
+
* // { id: 2, name: 'dg2' },
|
|
26813
|
+
* // { id: 2, name: 'sfqfb2' },
|
|
26814
|
+
* // { id: 2, name: 'qsgqsfg2' } ]
|
|
26815
|
+
* //
|
|
26816
|
+
* // [ { id: 3, name: 'qfs3' } ]
|
|
26817
|
+
*
|
|
26818
|
+
* @example <caption>Pivot data on the id field</caption>
|
|
26819
|
+
* Observable.of<Obj>({id: 1, name: 'aze1'},
|
|
26820
|
+
* {id: 2, name: 'sf2'},
|
|
26821
|
+
* {id: 2, name: 'dg2'},
|
|
26822
|
+
* {id: 1, name: 'erg1'},
|
|
26823
|
+
* {id: 1, name: 'df1'},
|
|
26824
|
+
* {id: 2, name: 'sfqfb2'},
|
|
26825
|
+
* {id: 3, name: 'qfs1'},
|
|
26826
|
+
* {id: 2, name: 'qsgqsfg2'}
|
|
26827
|
+
* )
|
|
26828
|
+
* .groupBy(p => p.id, p => p.name)
|
|
26829
|
+
* .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], ["" + group$.key]))
|
|
26830
|
+
* .map(arr => ({'id': parseInt(arr[0]), 'values': arr.slice(1)}))
|
|
26831
|
+
* .subscribe(p => console.log(p));
|
|
26832
|
+
*
|
|
26833
|
+
* // displays:
|
|
26834
|
+
* // { id: 1, values: [ 'aze1', 'erg1', 'df1' ] }
|
|
26835
|
+
* // { id: 2, values: [ 'sf2', 'dg2', 'sfqfb2', 'qsgqsfg2' ] }
|
|
26836
|
+
* // { id: 3, values: [ 'qfs1' ] }
|
|
26837
|
+
*
|
|
26838
|
+
* @param {function(value: T): K} keySelector A function that extracts the key
|
|
26839
|
+
* for each item.
|
|
26840
|
+
* @param {function(value: T): R} [elementSelector] A function that extracts the
|
|
26841
|
+
* return element for each item.
|
|
26842
|
+
* @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]
|
|
26843
|
+
* A function that returns an Observable to determine how long each group should
|
|
26844
|
+
* exist.
|
|
26845
|
+
* @return {Observable<GroupedObservable<K,R>>} An Observable that emits
|
|
26846
|
+
* GroupedObservables, each of which corresponds to a unique key value and each
|
|
26847
|
+
* of which emits those items from the source Observable that share that key
|
|
26848
|
+
* value.
|
|
26849
|
+
* @method groupBy
|
|
26850
|
+
* @owner Observable
|
|
26851
|
+
*/
|
|
26852
|
+
|
|
26853
|
+
/**
|
|
26854
|
+
* We need this JSDoc comment for affecting ESDoc.
|
|
26855
|
+
* @ignore
|
|
26856
|
+
* @extends {Ignored}
|
|
26857
|
+
*/
|
|
26858
|
+
var GroupBySubscriber = /** @class */ (function (_super) {
|
|
26859
|
+
__extends$8(GroupBySubscriber, _super);
|
|
26860
|
+
function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {
|
|
26861
|
+
var _this = _super.call(this, destination) || this;
|
|
26862
|
+
_this.keySelector = keySelector;
|
|
26863
|
+
_this.elementSelector = elementSelector;
|
|
26864
|
+
_this.durationSelector = durationSelector;
|
|
26865
|
+
_this.subjectSelector = subjectSelector;
|
|
26866
|
+
_this.groups = null;
|
|
26867
|
+
_this.attemptedToUnsubscribe = false;
|
|
26868
|
+
_this.count = 0;
|
|
26869
|
+
return _this;
|
|
26870
|
+
}
|
|
26871
|
+
GroupBySubscriber.prototype._next = function (value) {
|
|
26872
|
+
var key;
|
|
26873
|
+
try {
|
|
26874
|
+
key = this.keySelector(value);
|
|
26875
|
+
}
|
|
26876
|
+
catch (err) {
|
|
26877
|
+
this.error(err);
|
|
26878
|
+
return;
|
|
26879
|
+
}
|
|
26880
|
+
this._group(value, key);
|
|
26881
|
+
};
|
|
26882
|
+
GroupBySubscriber.prototype._group = function (value, key) {
|
|
26883
|
+
var groups = this.groups;
|
|
26884
|
+
if (!groups) {
|
|
26885
|
+
groups = this.groups = new Map();
|
|
26886
|
+
}
|
|
26887
|
+
var group = groups.get(key);
|
|
26888
|
+
var element;
|
|
26889
|
+
if (this.elementSelector) {
|
|
26890
|
+
try {
|
|
26891
|
+
element = this.elementSelector(value);
|
|
26892
|
+
}
|
|
26893
|
+
catch (err) {
|
|
26894
|
+
this.error(err);
|
|
26895
|
+
}
|
|
26896
|
+
}
|
|
26897
|
+
else {
|
|
26898
|
+
element = value;
|
|
26899
|
+
}
|
|
26900
|
+
if (!group) {
|
|
26901
|
+
group = (this.subjectSelector ? this.subjectSelector() : new Subject());
|
|
26902
|
+
groups.set(key, group);
|
|
26903
|
+
var groupedObservable = new GroupedObservable(key, group, this);
|
|
26904
|
+
this.destination.next(groupedObservable);
|
|
26905
|
+
if (this.durationSelector) {
|
|
26906
|
+
var duration = void 0;
|
|
26907
|
+
try {
|
|
26908
|
+
duration = this.durationSelector(new GroupedObservable(key, group));
|
|
26909
|
+
}
|
|
26910
|
+
catch (err) {
|
|
26911
|
+
this.error(err);
|
|
26912
|
+
return;
|
|
26913
|
+
}
|
|
26914
|
+
this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));
|
|
26915
|
+
}
|
|
26916
|
+
}
|
|
26917
|
+
if (!group.closed) {
|
|
26918
|
+
group.next(element);
|
|
26919
|
+
}
|
|
26920
|
+
};
|
|
26921
|
+
GroupBySubscriber.prototype._error = function (err) {
|
|
26922
|
+
var groups = this.groups;
|
|
26923
|
+
if (groups) {
|
|
26924
|
+
groups.forEach(function (group, key) {
|
|
26925
|
+
group.error(err);
|
|
26926
|
+
});
|
|
26927
|
+
groups.clear();
|
|
26928
|
+
}
|
|
26929
|
+
this.destination.error(err);
|
|
26930
|
+
};
|
|
26931
|
+
GroupBySubscriber.prototype._complete = function () {
|
|
26932
|
+
var groups = this.groups;
|
|
26933
|
+
if (groups) {
|
|
26934
|
+
groups.forEach(function (group, key) {
|
|
26935
|
+
group.complete();
|
|
26936
|
+
});
|
|
26937
|
+
groups.clear();
|
|
26938
|
+
}
|
|
26939
|
+
this.destination.complete();
|
|
26940
|
+
};
|
|
26941
|
+
GroupBySubscriber.prototype.removeGroup = function (key) {
|
|
26942
|
+
this.groups.delete(key);
|
|
26943
|
+
};
|
|
26944
|
+
GroupBySubscriber.prototype.unsubscribe = function () {
|
|
26945
|
+
if (!this.closed) {
|
|
26946
|
+
this.attemptedToUnsubscribe = true;
|
|
26947
|
+
if (this.count === 0) {
|
|
26948
|
+
_super.prototype.unsubscribe.call(this);
|
|
26949
|
+
}
|
|
26950
|
+
}
|
|
26951
|
+
};
|
|
26952
|
+
return GroupBySubscriber;
|
|
26953
|
+
}(Subscriber));
|
|
26954
|
+
/**
|
|
26955
|
+
* We need this JSDoc comment for affecting ESDoc.
|
|
26956
|
+
* @ignore
|
|
26957
|
+
* @extends {Ignored}
|
|
26958
|
+
*/
|
|
26959
|
+
var GroupDurationSubscriber = /** @class */ (function (_super) {
|
|
26960
|
+
__extends$8(GroupDurationSubscriber, _super);
|
|
26961
|
+
function GroupDurationSubscriber(key, group, parent) {
|
|
26962
|
+
var _this = _super.call(this, group) || this;
|
|
26963
|
+
_this.key = key;
|
|
26964
|
+
_this.group = group;
|
|
26965
|
+
_this.parent = parent;
|
|
26966
|
+
return _this;
|
|
26967
|
+
}
|
|
26968
|
+
GroupDurationSubscriber.prototype._next = function (value) {
|
|
26969
|
+
this.complete();
|
|
26970
|
+
};
|
|
26971
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26972
|
+
GroupDurationSubscriber.prototype._unsubscribe = function () {
|
|
26973
|
+
var _a = this, parent = _a.parent, key = _a.key;
|
|
26974
|
+
this.key = this.parent = null;
|
|
26975
|
+
if (parent) {
|
|
26976
|
+
parent.removeGroup(key);
|
|
26977
|
+
}
|
|
26978
|
+
};
|
|
26979
|
+
return GroupDurationSubscriber;
|
|
26980
|
+
}(Subscriber));
|
|
26981
|
+
/**
|
|
26982
|
+
* An Observable representing values belonging to the same group represented by
|
|
26983
|
+
* a common key. The values emitted by a GroupedObservable come from the source
|
|
26984
|
+
* Observable. The common key is available as the field `key` on a
|
|
26985
|
+
* GroupedObservable instance.
|
|
26986
|
+
*
|
|
26987
|
+
* @class GroupedObservable<K, T>
|
|
26988
|
+
*/
|
|
26989
|
+
var GroupedObservable = /** @class */ (function (_super) {
|
|
26990
|
+
__extends$8(GroupedObservable, _super);
|
|
26991
|
+
/** @deprecated Do not construct this type. Internal use only */
|
|
26992
|
+
function GroupedObservable(key, groupSubject, refCountSubscription) {
|
|
26993
|
+
var _this = _super.call(this) || this;
|
|
26994
|
+
_this.key = key;
|
|
26995
|
+
_this.groupSubject = groupSubject;
|
|
26996
|
+
_this.refCountSubscription = refCountSubscription;
|
|
26997
|
+
return _this;
|
|
26998
|
+
}
|
|
26999
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
27000
|
+
GroupedObservable.prototype._subscribe = function (subscriber) {
|
|
27001
|
+
var subscription = new Subscription();
|
|
27002
|
+
var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;
|
|
27003
|
+
if (refCountSubscription && !refCountSubscription.closed) {
|
|
27004
|
+
subscription.add(new InnerRefCountSubscription(refCountSubscription));
|
|
27005
|
+
}
|
|
27006
|
+
subscription.add(groupSubject.subscribe(subscriber));
|
|
27007
|
+
return subscription;
|
|
27008
|
+
};
|
|
27009
|
+
return GroupedObservable;
|
|
27010
|
+
}(Observable));
|
|
27011
|
+
/**
|
|
27012
|
+
* We need this JSDoc comment for affecting ESDoc.
|
|
27013
|
+
* @ignore
|
|
27014
|
+
* @extends {Ignored}
|
|
27015
|
+
*/
|
|
27016
|
+
var InnerRefCountSubscription = /** @class */ (function (_super) {
|
|
27017
|
+
__extends$8(InnerRefCountSubscription, _super);
|
|
27018
|
+
function InnerRefCountSubscription(parent) {
|
|
27019
|
+
var _this = _super.call(this) || this;
|
|
27020
|
+
_this.parent = parent;
|
|
27021
|
+
parent.count++;
|
|
27022
|
+
return _this;
|
|
27023
|
+
}
|
|
27024
|
+
InnerRefCountSubscription.prototype.unsubscribe = function () {
|
|
27025
|
+
var parent = this.parent;
|
|
27026
|
+
if (!parent.closed && !this.closed) {
|
|
27027
|
+
_super.prototype.unsubscribe.call(this);
|
|
27028
|
+
parent.count -= 1;
|
|
27029
|
+
if (parent.count === 0 && parent.attemptedToUnsubscribe) {
|
|
27030
|
+
parent.unsubscribe();
|
|
27031
|
+
}
|
|
27032
|
+
}
|
|
27033
|
+
};
|
|
27034
|
+
return InnerRefCountSubscription;
|
|
27035
|
+
}(Subscription));
|
|
27036
|
+
|
|
27037
|
+
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
27038
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
27039
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27040
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27041
|
+
return function (d, b) {
|
|
27042
|
+
extendStatics(d, b);
|
|
27043
|
+
function __() { this.constructor = d; }
|
|
27044
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27045
|
+
};
|
|
27046
|
+
})();
|
|
26742
27047
|
/**
|
|
26743
27048
|
* @class BehaviorSubject<T>
|
|
26744
27049
|
*/
|
|
26745
27050
|
var BehaviorSubject = /** @class */ (function (_super) {
|
|
26746
|
-
__extends$
|
|
27051
|
+
__extends$9(BehaviorSubject, _super);
|
|
26747
27052
|
function BehaviorSubject(_value) {
|
|
26748
27053
|
var _this = _super.call(this) || this;
|
|
26749
27054
|
_this._value = _value;
|
|
@@ -26756,6 +27061,7 @@ var BehaviorSubject = /** @class */ (function (_super) {
|
|
|
26756
27061
|
enumerable: true,
|
|
26757
27062
|
configurable: true
|
|
26758
27063
|
});
|
|
27064
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26759
27065
|
BehaviorSubject.prototype._subscribe = function (subscriber) {
|
|
26760
27066
|
var subscription = _super.prototype._subscribe.call(this, subscriber);
|
|
26761
27067
|
if (subscription && !subscription.closed) {
|
|
@@ -26780,7 +27086,7 @@ var BehaviorSubject = /** @class */ (function (_super) {
|
|
|
26780
27086
|
return BehaviorSubject;
|
|
26781
27087
|
}(Subject));
|
|
26782
27088
|
|
|
26783
|
-
var __extends$
|
|
27089
|
+
var __extends$13 = (undefined && undefined.__extends) || (function () {
|
|
26784
27090
|
var extendStatics = Object.setPrototypeOf ||
|
|
26785
27091
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26786
27092
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -26805,7 +27111,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
|
|
|
26805
27111
|
* @class Action<T>
|
|
26806
27112
|
*/
|
|
26807
27113
|
var Action = /** @class */ (function (_super) {
|
|
26808
|
-
__extends$
|
|
27114
|
+
__extends$13(Action, _super);
|
|
26809
27115
|
function Action(scheduler, work) {
|
|
26810
27116
|
return _super.call(this) || this;
|
|
26811
27117
|
}
|
|
@@ -26826,7 +27132,7 @@ var Action = /** @class */ (function (_super) {
|
|
|
26826
27132
|
return Action;
|
|
26827
27133
|
}(Subscription));
|
|
26828
27134
|
|
|
26829
|
-
var __extends$
|
|
27135
|
+
var __extends$12 = (undefined && undefined.__extends) || (function () {
|
|
26830
27136
|
var extendStatics = Object.setPrototypeOf ||
|
|
26831
27137
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26832
27138
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -26842,7 +27148,7 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
|
|
|
26842
27148
|
* @extends {Ignored}
|
|
26843
27149
|
*/
|
|
26844
27150
|
var AsyncAction = /** @class */ (function (_super) {
|
|
26845
|
-
__extends$
|
|
27151
|
+
__extends$12(AsyncAction, _super);
|
|
26846
27152
|
function AsyncAction(scheduler, work) {
|
|
26847
27153
|
var _this = _super.call(this, scheduler, work) || this;
|
|
26848
27154
|
_this.scheduler = scheduler;
|
|
@@ -26950,6 +27256,7 @@ var AsyncAction = /** @class */ (function (_super) {
|
|
|
26950
27256
|
return errorValue;
|
|
26951
27257
|
}
|
|
26952
27258
|
};
|
|
27259
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
26953
27260
|
AsyncAction.prototype._unsubscribe = function () {
|
|
26954
27261
|
var id = this.id;
|
|
26955
27262
|
var scheduler = this.scheduler;
|
|
@@ -26970,7 +27277,7 @@ var AsyncAction = /** @class */ (function (_super) {
|
|
|
26970
27277
|
return AsyncAction;
|
|
26971
27278
|
}(Action));
|
|
26972
27279
|
|
|
26973
|
-
var __extends$
|
|
27280
|
+
var __extends$11 = (undefined && undefined.__extends) || (function () {
|
|
26974
27281
|
var extendStatics = Object.setPrototypeOf ||
|
|
26975
27282
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26976
27283
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -26986,7 +27293,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
|
|
|
26986
27293
|
* @extends {Ignored}
|
|
26987
27294
|
*/
|
|
26988
27295
|
var QueueAction = /** @class */ (function (_super) {
|
|
26989
|
-
__extends$
|
|
27296
|
+
__extends$11(QueueAction, _super);
|
|
26990
27297
|
function QueueAction(scheduler, work) {
|
|
26991
27298
|
var _this = _super.call(this, scheduler, work) || this;
|
|
26992
27299
|
_this.scheduler = scheduler;
|
|
@@ -27037,6 +27344,9 @@ var QueueAction = /** @class */ (function (_super) {
|
|
|
27037
27344
|
* ```
|
|
27038
27345
|
*
|
|
27039
27346
|
* @class Scheduler
|
|
27347
|
+
* @deprecated Scheduler is an internal implementation detail of RxJS, and
|
|
27348
|
+
* should not be used directly. Rather, create your own class and implement
|
|
27349
|
+
* {@link SchedulerLike}
|
|
27040
27350
|
*/
|
|
27041
27351
|
var Scheduler = /** @class */ (function () {
|
|
27042
27352
|
function Scheduler(SchedulerAction, now) {
|
|
@@ -27070,7 +27380,7 @@ var Scheduler = /** @class */ (function () {
|
|
|
27070
27380
|
return Scheduler;
|
|
27071
27381
|
}());
|
|
27072
27382
|
|
|
27073
|
-
var __extends$
|
|
27383
|
+
var __extends$15 = (undefined && undefined.__extends) || (function () {
|
|
27074
27384
|
var extendStatics = Object.setPrototypeOf ||
|
|
27075
27385
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27076
27386
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27081,9 +27391,17 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
|
27081
27391
|
};
|
|
27082
27392
|
})();
|
|
27083
27393
|
var AsyncScheduler = /** @class */ (function (_super) {
|
|
27084
|
-
__extends$
|
|
27085
|
-
function AsyncScheduler() {
|
|
27086
|
-
|
|
27394
|
+
__extends$15(AsyncScheduler, _super);
|
|
27395
|
+
function AsyncScheduler(SchedulerAction, now) {
|
|
27396
|
+
if (now === void 0) { now = Scheduler.now; }
|
|
27397
|
+
var _this = _super.call(this, SchedulerAction, function () {
|
|
27398
|
+
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) {
|
|
27399
|
+
return AsyncScheduler.delegate.now();
|
|
27400
|
+
}
|
|
27401
|
+
else {
|
|
27402
|
+
return now();
|
|
27403
|
+
}
|
|
27404
|
+
}) || this;
|
|
27087
27405
|
_this.actions = [];
|
|
27088
27406
|
/**
|
|
27089
27407
|
* A flag to indicate whether the Scheduler is currently executing a batch of
|
|
@@ -27100,6 +27418,15 @@ var AsyncScheduler = /** @class */ (function (_super) {
|
|
|
27100
27418
|
_this.scheduled = undefined;
|
|
27101
27419
|
return _this;
|
|
27102
27420
|
}
|
|
27421
|
+
AsyncScheduler.prototype.schedule = function (work, delay, state) {
|
|
27422
|
+
if (delay === void 0) { delay = 0; }
|
|
27423
|
+
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
|
|
27424
|
+
return AsyncScheduler.delegate.schedule(work, delay, state);
|
|
27425
|
+
}
|
|
27426
|
+
else {
|
|
27427
|
+
return _super.prototype.schedule.call(this, work, delay, state);
|
|
27428
|
+
}
|
|
27429
|
+
};
|
|
27103
27430
|
AsyncScheduler.prototype.flush = function (action) {
|
|
27104
27431
|
var actions = this.actions;
|
|
27105
27432
|
if (this.active) {
|
|
@@ -27124,7 +27451,7 @@ var AsyncScheduler = /** @class */ (function (_super) {
|
|
|
27124
27451
|
return AsyncScheduler;
|
|
27125
27452
|
}(Scheduler));
|
|
27126
27453
|
|
|
27127
|
-
var __extends$
|
|
27454
|
+
var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
27128
27455
|
var extendStatics = Object.setPrototypeOf ||
|
|
27129
27456
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27130
27457
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27135,7 +27462,7 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
|
|
|
27135
27462
|
};
|
|
27136
27463
|
})();
|
|
27137
27464
|
var QueueScheduler = /** @class */ (function (_super) {
|
|
27138
|
-
__extends$
|
|
27465
|
+
__extends$14(QueueScheduler, _super);
|
|
27139
27466
|
function QueueScheduler() {
|
|
27140
27467
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27141
27468
|
}
|
|
@@ -27268,7 +27595,6 @@ function isScheduler(value) {
|
|
|
27268
27595
|
/**
|
|
27269
27596
|
* Subscribes to an ArrayLike with a subscriber
|
|
27270
27597
|
* @param array The array or array-like to subscribe to
|
|
27271
|
-
* @param subscriber The subscriber to subscribe with.
|
|
27272
27598
|
*/
|
|
27273
27599
|
var subscribeToArray = function (array) { return function (subscriber) {
|
|
27274
27600
|
for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
|
|
@@ -27518,7 +27844,7 @@ var Notification = /** @class */ (function () {
|
|
|
27518
27844
|
return Notification;
|
|
27519
27845
|
}());
|
|
27520
27846
|
|
|
27521
|
-
var __extends$
|
|
27847
|
+
var __extends$16 = (undefined && undefined.__extends) || (function () {
|
|
27522
27848
|
var extendStatics = Object.setPrototypeOf ||
|
|
27523
27849
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27524
27850
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27581,7 +27907,7 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
|
|
|
27581
27907
|
* @extends {Ignored}
|
|
27582
27908
|
*/
|
|
27583
27909
|
var ObserveOnSubscriber = /** @class */ (function (_super) {
|
|
27584
|
-
__extends$
|
|
27910
|
+
__extends$16(ObserveOnSubscriber, _super);
|
|
27585
27911
|
function ObserveOnSubscriber(destination, scheduler, delay) {
|
|
27586
27912
|
if (delay === void 0) { delay = 0; }
|
|
27587
27913
|
var _this = _super.call(this, destination) || this;
|
|
@@ -27589,6 +27915,7 @@ var ObserveOnSubscriber = /** @class */ (function (_super) {
|
|
|
27589
27915
|
_this.delay = delay;
|
|
27590
27916
|
return _this;
|
|
27591
27917
|
}
|
|
27918
|
+
/** @nocollapse */
|
|
27592
27919
|
ObserveOnSubscriber.dispatch = function (arg) {
|
|
27593
27920
|
var notification = arg.notification, destination = arg.destination;
|
|
27594
27921
|
notification.observe(destination);
|
|
@@ -27616,7 +27943,7 @@ var ObserveOnMessage = /** @class */ (function () {
|
|
|
27616
27943
|
return ObserveOnMessage;
|
|
27617
27944
|
}());
|
|
27618
27945
|
|
|
27619
|
-
var __extends$
|
|
27946
|
+
var __extends$10 = (undefined && undefined.__extends) || (function () {
|
|
27620
27947
|
var extendStatics = Object.setPrototypeOf ||
|
|
27621
27948
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27622
27949
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27630,7 +27957,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
|
27630
27957
|
* @class ReplaySubject<T>
|
|
27631
27958
|
*/
|
|
27632
27959
|
var ReplaySubject = /** @class */ (function (_super) {
|
|
27633
|
-
__extends$
|
|
27960
|
+
__extends$10(ReplaySubject, _super);
|
|
27634
27961
|
function ReplaySubject(bufferSize, windowTime, scheduler) {
|
|
27635
27962
|
if (bufferSize === void 0) { bufferSize = Number.POSITIVE_INFINITY; }
|
|
27636
27963
|
if (windowTime === void 0) { windowTime = Number.POSITIVE_INFINITY; }
|
|
@@ -27664,6 +27991,7 @@ var ReplaySubject = /** @class */ (function (_super) {
|
|
|
27664
27991
|
this._trimBufferThenGetEvents();
|
|
27665
27992
|
_super.prototype.next.call(this, value);
|
|
27666
27993
|
};
|
|
27994
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
27667
27995
|
ReplaySubject.prototype._subscribe = function (subscriber) {
|
|
27668
27996
|
// When `_infiniteTimeWindow === true` then the buffer is already trimmed
|
|
27669
27997
|
var _infiniteTimeWindow = this._infiniteTimeWindow;
|
|
@@ -27739,7 +28067,7 @@ var ReplayEvent = /** @class */ (function () {
|
|
|
27739
28067
|
return ReplayEvent;
|
|
27740
28068
|
}());
|
|
27741
28069
|
|
|
27742
|
-
var __extends$
|
|
28070
|
+
var __extends$17 = (undefined && undefined.__extends) || (function () {
|
|
27743
28071
|
var extendStatics = Object.setPrototypeOf ||
|
|
27744
28072
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27745
28073
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27753,7 +28081,7 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
|
|
|
27753
28081
|
* @class AsyncSubject<T>
|
|
27754
28082
|
*/
|
|
27755
28083
|
var AsyncSubject = /** @class */ (function (_super) {
|
|
27756
|
-
__extends$
|
|
28084
|
+
__extends$17(AsyncSubject, _super);
|
|
27757
28085
|
function AsyncSubject() {
|
|
27758
28086
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
27759
28087
|
_this.value = null;
|
|
@@ -27761,6 +28089,7 @@ var AsyncSubject = /** @class */ (function (_super) {
|
|
|
27761
28089
|
_this.hasCompleted = false;
|
|
27762
28090
|
return _this;
|
|
27763
28091
|
}
|
|
28092
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
27764
28093
|
AsyncSubject.prototype._subscribe = function (subscriber) {
|
|
27765
28094
|
if (this.hasError) {
|
|
27766
28095
|
subscriber.error(this.thrownError);
|
|
@@ -27814,7 +28143,7 @@ var Immediate = {
|
|
|
27814
28143
|
},
|
|
27815
28144
|
};
|
|
27816
28145
|
|
|
27817
|
-
var __extends$
|
|
28146
|
+
var __extends$18 = (undefined && undefined.__extends) || (function () {
|
|
27818
28147
|
var extendStatics = Object.setPrototypeOf ||
|
|
27819
28148
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27820
28149
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27830,7 +28159,7 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
|
|
|
27830
28159
|
* @extends {Ignored}
|
|
27831
28160
|
*/
|
|
27832
28161
|
var AsapAction = /** @class */ (function (_super) {
|
|
27833
|
-
__extends$
|
|
28162
|
+
__extends$18(AsapAction, _super);
|
|
27834
28163
|
function AsapAction(scheduler, work) {
|
|
27835
28164
|
var _this = _super.call(this, scheduler, work) || this;
|
|
27836
28165
|
_this.scheduler = scheduler;
|
|
@@ -27871,7 +28200,7 @@ var AsapAction = /** @class */ (function (_super) {
|
|
|
27871
28200
|
return AsapAction;
|
|
27872
28201
|
}(AsyncAction));
|
|
27873
28202
|
|
|
27874
|
-
var __extends$
|
|
28203
|
+
var __extends$19 = (undefined && undefined.__extends) || (function () {
|
|
27875
28204
|
var extendStatics = Object.setPrototypeOf ||
|
|
27876
28205
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27877
28206
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -27882,7 +28211,7 @@ var __extends$18 = (undefined && undefined.__extends) || (function () {
|
|
|
27882
28211
|
};
|
|
27883
28212
|
})();
|
|
27884
28213
|
var AsapScheduler = /** @class */ (function (_super) {
|
|
27885
|
-
__extends$
|
|
28214
|
+
__extends$19(AsapScheduler, _super);
|
|
27886
28215
|
function AsapScheduler() {
|
|
27887
28216
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27888
28217
|
}
|
|
@@ -27990,7 +28319,7 @@ var asap = new AsapScheduler(AsapAction);
|
|
|
27990
28319
|
*/
|
|
27991
28320
|
var async = new AsyncScheduler(AsyncAction);
|
|
27992
28321
|
|
|
27993
|
-
var __extends$
|
|
28322
|
+
var __extends$20 = (undefined && undefined.__extends) || (function () {
|
|
27994
28323
|
var extendStatics = Object.setPrototypeOf ||
|
|
27995
28324
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27996
28325
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28006,7 +28335,7 @@ var __extends$19 = (undefined && undefined.__extends) || (function () {
|
|
|
28006
28335
|
* @extends {Ignored}
|
|
28007
28336
|
*/
|
|
28008
28337
|
var AnimationFrameAction = /** @class */ (function (_super) {
|
|
28009
|
-
__extends$
|
|
28338
|
+
__extends$20(AnimationFrameAction, _super);
|
|
28010
28339
|
function AnimationFrameAction(scheduler, work) {
|
|
28011
28340
|
var _this = _super.call(this, scheduler, work) || this;
|
|
28012
28341
|
_this.scheduler = scheduler;
|
|
@@ -28047,7 +28376,7 @@ var AnimationFrameAction = /** @class */ (function (_super) {
|
|
|
28047
28376
|
return AnimationFrameAction;
|
|
28048
28377
|
}(AsyncAction));
|
|
28049
28378
|
|
|
28050
|
-
var __extends$
|
|
28379
|
+
var __extends$21 = (undefined && undefined.__extends) || (function () {
|
|
28051
28380
|
var extendStatics = Object.setPrototypeOf ||
|
|
28052
28381
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28053
28382
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28058,7 +28387,7 @@ var __extends$20 = (undefined && undefined.__extends) || (function () {
|
|
|
28058
28387
|
};
|
|
28059
28388
|
})();
|
|
28060
28389
|
var AnimationFrameScheduler = /** @class */ (function (_super) {
|
|
28061
|
-
__extends$
|
|
28390
|
+
__extends$21(AnimationFrameScheduler, _super);
|
|
28062
28391
|
function AnimationFrameScheduler() {
|
|
28063
28392
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28064
28393
|
}
|
|
@@ -28118,7 +28447,7 @@ var AnimationFrameScheduler = /** @class */ (function (_super) {
|
|
|
28118
28447
|
*/
|
|
28119
28448
|
var animationFrame = new AnimationFrameScheduler(AnimationFrameAction);
|
|
28120
28449
|
|
|
28121
|
-
var __extends$
|
|
28450
|
+
var __extends$22 = (undefined && undefined.__extends) || (function () {
|
|
28122
28451
|
var extendStatics = Object.setPrototypeOf ||
|
|
28123
28452
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28124
28453
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28129,7 +28458,7 @@ var __extends$21 = (undefined && undefined.__extends) || (function () {
|
|
|
28129
28458
|
};
|
|
28130
28459
|
})();
|
|
28131
28460
|
var VirtualTimeScheduler = /** @class */ (function (_super) {
|
|
28132
|
-
__extends$
|
|
28461
|
+
__extends$22(VirtualTimeScheduler, _super);
|
|
28133
28462
|
function VirtualTimeScheduler(SchedulerAction, maxFrames) {
|
|
28134
28463
|
if (SchedulerAction === void 0) { SchedulerAction = VirtualAction; }
|
|
28135
28464
|
if (maxFrames === void 0) { maxFrames = Number.POSITIVE_INFINITY; }
|
|
@@ -28168,7 +28497,7 @@ var VirtualTimeScheduler = /** @class */ (function (_super) {
|
|
|
28168
28497
|
* @extends {Ignored}
|
|
28169
28498
|
*/
|
|
28170
28499
|
var VirtualAction = /** @class */ (function (_super) {
|
|
28171
|
-
__extends$
|
|
28500
|
+
__extends$22(VirtualAction, _super);
|
|
28172
28501
|
function VirtualAction(scheduler, work, index) {
|
|
28173
28502
|
if (index === void 0) { index = scheduler.index += 1; }
|
|
28174
28503
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -28236,7 +28565,7 @@ function identity(x) {
|
|
|
28236
28565
|
return x;
|
|
28237
28566
|
}
|
|
28238
28567
|
|
|
28239
|
-
var __extends$
|
|
28568
|
+
var __extends$23 = (undefined && undefined.__extends) || (function () {
|
|
28240
28569
|
var extendStatics = Object.setPrototypeOf ||
|
|
28241
28570
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28242
28571
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28257,7 +28586,7 @@ var __extends$22 = (undefined && undefined.__extends) || (function () {
|
|
|
28257
28586
|
* @class ArgumentOutOfRangeError
|
|
28258
28587
|
*/
|
|
28259
28588
|
var ArgumentOutOfRangeError = /** @class */ (function (_super) {
|
|
28260
|
-
__extends$
|
|
28589
|
+
__extends$23(ArgumentOutOfRangeError, _super);
|
|
28261
28590
|
function ArgumentOutOfRangeError() {
|
|
28262
28591
|
var _this = _super.call(this, 'argument out of range') || this;
|
|
28263
28592
|
_this.name = 'ArgumentOutOfRangeError';
|
|
@@ -28267,7 +28596,7 @@ var ArgumentOutOfRangeError = /** @class */ (function (_super) {
|
|
|
28267
28596
|
return ArgumentOutOfRangeError;
|
|
28268
28597
|
}(Error));
|
|
28269
28598
|
|
|
28270
|
-
var __extends$
|
|
28599
|
+
var __extends$24 = (undefined && undefined.__extends) || (function () {
|
|
28271
28600
|
var extendStatics = Object.setPrototypeOf ||
|
|
28272
28601
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28273
28602
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28288,7 +28617,7 @@ var __extends$23 = (undefined && undefined.__extends) || (function () {
|
|
|
28288
28617
|
* @class EmptyError
|
|
28289
28618
|
*/
|
|
28290
28619
|
var EmptyError = /** @class */ (function (_super) {
|
|
28291
|
-
__extends$
|
|
28620
|
+
__extends$24(EmptyError, _super);
|
|
28292
28621
|
function EmptyError() {
|
|
28293
28622
|
var _this = _super.call(this, 'no elements in sequence') || this;
|
|
28294
28623
|
_this.name = 'EmptyError';
|
|
@@ -28298,7 +28627,7 @@ var EmptyError = /** @class */ (function (_super) {
|
|
|
28298
28627
|
return EmptyError;
|
|
28299
28628
|
}(Error));
|
|
28300
28629
|
|
|
28301
|
-
var __extends$
|
|
28630
|
+
var __extends$25 = (undefined && undefined.__extends) || (function () {
|
|
28302
28631
|
var extendStatics = Object.setPrototypeOf ||
|
|
28303
28632
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28304
28633
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28316,7 +28645,7 @@ var __extends$24 = (undefined && undefined.__extends) || (function () {
|
|
|
28316
28645
|
* @class TimeoutError
|
|
28317
28646
|
*/
|
|
28318
28647
|
var TimeoutError = /** @class */ (function (_super) {
|
|
28319
|
-
__extends$
|
|
28648
|
+
__extends$25(TimeoutError, _super);
|
|
28320
28649
|
function TimeoutError() {
|
|
28321
28650
|
var _this = _super.call(this, 'Timeout has occurred') || this;
|
|
28322
28651
|
Object.setPrototypeOf(_this, TimeoutError.prototype);
|
|
@@ -28325,7 +28654,7 @@ var TimeoutError = /** @class */ (function (_super) {
|
|
|
28325
28654
|
return TimeoutError;
|
|
28326
28655
|
}(Error));
|
|
28327
28656
|
|
|
28328
|
-
var __extends$
|
|
28657
|
+
var __extends$26 = (undefined && undefined.__extends) || (function () {
|
|
28329
28658
|
var extendStatics = Object.setPrototypeOf ||
|
|
28330
28659
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28331
28660
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28392,7 +28721,7 @@ var MapOperator = /** @class */ (function () {
|
|
|
28392
28721
|
* @extends {Ignored}
|
|
28393
28722
|
*/
|
|
28394
28723
|
var MapSubscriber = /** @class */ (function (_super) {
|
|
28395
|
-
__extends$
|
|
28724
|
+
__extends$26(MapSubscriber, _super);
|
|
28396
28725
|
function MapSubscriber(destination, project, thisArg) {
|
|
28397
28726
|
var _this = _super.call(this, destination) || this;
|
|
28398
28727
|
_this.project = project;
|
|
@@ -28671,7 +29000,7 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
|
|
|
28671
29000
|
* @name bindNodeCallback
|
|
28672
29001
|
*/
|
|
28673
29002
|
|
|
28674
|
-
var __extends$
|
|
29003
|
+
var __extends$28 = (undefined && undefined.__extends) || (function () {
|
|
28675
29004
|
var extendStatics = Object.setPrototypeOf ||
|
|
28676
29005
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28677
29006
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28687,7 +29016,7 @@ var __extends$27 = (undefined && undefined.__extends) || (function () {
|
|
|
28687
29016
|
* @extends {Ignored}
|
|
28688
29017
|
*/
|
|
28689
29018
|
var OuterSubscriber = /** @class */ (function (_super) {
|
|
28690
|
-
__extends$
|
|
29019
|
+
__extends$28(OuterSubscriber, _super);
|
|
28691
29020
|
function OuterSubscriber() {
|
|
28692
29021
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28693
29022
|
}
|
|
@@ -28703,7 +29032,7 @@ var OuterSubscriber = /** @class */ (function (_super) {
|
|
|
28703
29032
|
return OuterSubscriber;
|
|
28704
29033
|
}(Subscriber));
|
|
28705
29034
|
|
|
28706
|
-
var __extends$
|
|
29035
|
+
var __extends$29 = (undefined && undefined.__extends) || (function () {
|
|
28707
29036
|
var extendStatics = Object.setPrototypeOf ||
|
|
28708
29037
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28709
29038
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28719,7 +29048,7 @@ var __extends$28 = (undefined && undefined.__extends) || (function () {
|
|
|
28719
29048
|
* @extends {Ignored}
|
|
28720
29049
|
*/
|
|
28721
29050
|
var InnerSubscriber = /** @class */ (function (_super) {
|
|
28722
|
-
__extends$
|
|
29051
|
+
__extends$29(InnerSubscriber, _super);
|
|
28723
29052
|
function InnerSubscriber(parent, outerValue, outerIndex) {
|
|
28724
29053
|
var _this = _super.call(this) || this;
|
|
28725
29054
|
_this.parent = parent;
|
|
@@ -28792,7 +29121,6 @@ var subscribeToIterable = function (iterable) { return function (subscriber) {
|
|
|
28792
29121
|
* Subscribes to an object that implements Symbol.observable with the given
|
|
28793
29122
|
* Subscriber.
|
|
28794
29123
|
* @param obj An object that implements Symbol.observable
|
|
28795
|
-
* @param subscriber The Subscriber to use to subscribe to the observable
|
|
28796
29124
|
*/
|
|
28797
29125
|
var subscribeToObservable = function (obj) { return function (subscriber) {
|
|
28798
29126
|
var obs = obj[observable]();
|
|
@@ -28805,7 +29133,7 @@ var subscribeToObservable = function (obj) { return function (subscriber) {
|
|
|
28805
29133
|
}
|
|
28806
29134
|
}; };
|
|
28807
29135
|
|
|
28808
|
-
var isArrayLike = (function (x) { return x && typeof x.length === 'number'; });
|
|
29136
|
+
var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });
|
|
28809
29137
|
|
|
28810
29138
|
function isPromise$1(value) {
|
|
28811
29139
|
return value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
|
|
@@ -28849,7 +29177,7 @@ function subscribeToResult(outerSubscriber, result, outerValue, outerIndex) {
|
|
|
28849
29177
|
return subscribeTo(result)(destination);
|
|
28850
29178
|
}
|
|
28851
29179
|
|
|
28852
|
-
var __extends$
|
|
29180
|
+
var __extends$27 = (undefined && undefined.__extends) || (function () {
|
|
28853
29181
|
var extendStatics = Object.setPrototypeOf ||
|
|
28854
29182
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28855
29183
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -28973,7 +29301,7 @@ var NONE = {};
|
|
|
28973
29301
|
* @extends {Ignored}
|
|
28974
29302
|
*/
|
|
28975
29303
|
var CombineLatestSubscriber = /** @class */ (function (_super) {
|
|
28976
|
-
__extends$
|
|
29304
|
+
__extends$27(CombineLatestSubscriber, _super);
|
|
28977
29305
|
function CombineLatestSubscriber(destination, resultSelector) {
|
|
28978
29306
|
var _this = _super.call(this, destination) || this;
|
|
28979
29307
|
_this.resultSelector = resultSelector;
|
|
@@ -29158,7 +29486,7 @@ function from(input, scheduler) {
|
|
|
29158
29486
|
throw new TypeError((input !== null && typeof input || input) + ' is not observable');
|
|
29159
29487
|
}
|
|
29160
29488
|
|
|
29161
|
-
var __extends$
|
|
29489
|
+
var __extends$30 = (undefined && undefined.__extends) || (function () {
|
|
29162
29490
|
var extendStatics = Object.setPrototypeOf ||
|
|
29163
29491
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
29164
29492
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -29247,7 +29575,7 @@ var MergeMapOperator = /** @class */ (function () {
|
|
|
29247
29575
|
* @extends {Ignored}
|
|
29248
29576
|
*/
|
|
29249
29577
|
var MergeMapSubscriber = /** @class */ (function (_super) {
|
|
29250
|
-
__extends$
|
|
29578
|
+
__extends$30(MergeMapSubscriber, _super);
|
|
29251
29579
|
function MergeMapSubscriber(destination, project, concurrent) {
|
|
29252
29580
|
if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }
|
|
29253
29581
|
var _this = _super.call(this, destination) || this;
|
|
@@ -29566,7 +29894,7 @@ var __spread$3 = (undefined && undefined.__spread) || function () {
|
|
|
29566
29894
|
* @owner Observable
|
|
29567
29895
|
*/
|
|
29568
29896
|
|
|
29569
|
-
var __extends$
|
|
29897
|
+
var __extends$31 = (undefined && undefined.__extends) || (function () {
|
|
29570
29898
|
var extendStatics = Object.setPrototypeOf ||
|
|
29571
29899
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
29572
29900
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -29706,7 +30034,7 @@ var __spread$4 = (undefined && undefined.__spread) || function () {
|
|
|
29706
30034
|
* @extends {Ignored}
|
|
29707
30035
|
*/
|
|
29708
30036
|
var ForkJoinSubscriber = /** @class */ (function (_super) {
|
|
29709
|
-
__extends$
|
|
30037
|
+
__extends$31(ForkJoinSubscriber, _super);
|
|
29710
30038
|
function ForkJoinSubscriber(destination, sources) {
|
|
29711
30039
|
var _this = _super.call(this, destination) || this;
|
|
29712
30040
|
_this.sources = sources;
|
|
@@ -29873,7 +30201,7 @@ var __spread$5 = (undefined && undefined.__spread) || function () {
|
|
|
29873
30201
|
* @see {@link bindNodeCallback}
|
|
29874
30202
|
* @see {@link fromEventPattern}
|
|
29875
30203
|
*
|
|
29876
|
-
* @param {
|
|
30204
|
+
* @param {FromEventTarget<T>} target The DOM EventTarget, Node.js
|
|
29877
30205
|
* EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.
|
|
29878
30206
|
* @param {string} eventName The event name of interest, being emitted by the
|
|
29879
30207
|
* `target`.
|
|
@@ -30294,7 +30622,7 @@ var __spread$7 = (undefined && undefined.__spread) || function () {
|
|
|
30294
30622
|
|
|
30295
30623
|
/** @internal */
|
|
30296
30624
|
|
|
30297
|
-
var __extends$
|
|
30625
|
+
var __extends$32 = (undefined && undefined.__extends) || (function () {
|
|
30298
30626
|
var extendStatics = Object.setPrototypeOf ||
|
|
30299
30627
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30300
30628
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -30311,7 +30639,7 @@ var __extends$31 = (undefined && undefined.__extends) || (function () {
|
|
|
30311
30639
|
* @extends {Ignored}
|
|
30312
30640
|
*/
|
|
30313
30641
|
var RaceSubscriber = /** @class */ (function (_super) {
|
|
30314
|
-
__extends$
|
|
30642
|
+
__extends$32(RaceSubscriber, _super);
|
|
30315
30643
|
function RaceSubscriber(destination) {
|
|
30316
30644
|
var _this = _super.call(this, destination) || this;
|
|
30317
30645
|
_this.hasFirst = false;
|
|
@@ -30462,7 +30790,7 @@ var RaceSubscriber = /** @class */ (function (_super) {
|
|
|
30462
30790
|
* which - when completed, errored or unsubscribed - will also call `unsubscribe` on created resource object.
|
|
30463
30791
|
*/
|
|
30464
30792
|
|
|
30465
|
-
var __extends$
|
|
30793
|
+
var __extends$33 = (undefined && undefined.__extends) || (function () {
|
|
30466
30794
|
var extendStatics = Object.setPrototypeOf ||
|
|
30467
30795
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30468
30796
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -30511,7 +30839,7 @@ var __extends$32 = (undefined && undefined.__extends) || (function () {
|
|
|
30511
30839
|
* @extends {Ignored}
|
|
30512
30840
|
*/
|
|
30513
30841
|
var ZipSubscriber = /** @class */ (function (_super) {
|
|
30514
|
-
__extends$
|
|
30842
|
+
__extends$33(ZipSubscriber, _super);
|
|
30515
30843
|
function ZipSubscriber(destination, resultSelector, values) {
|
|
30516
30844
|
if (values === void 0) { values = Object.create(null); }
|
|
30517
30845
|
var _this = _super.call(this, destination) || this;
|
|
@@ -30655,7 +30983,7 @@ var StaticArrayIterator = /** @class */ (function () {
|
|
|
30655
30983
|
* @extends {Ignored}
|
|
30656
30984
|
*/
|
|
30657
30985
|
var ZipBufferIterator = /** @class */ (function (_super) {
|
|
30658
|
-
__extends$
|
|
30986
|
+
__extends$33(ZipBufferIterator, _super);
|
|
30659
30987
|
function ZipBufferIterator(destination, parent, observable) {
|
|
30660
30988
|
var _this = _super.call(this, destination) || this;
|
|
30661
30989
|
_this.parent = parent;
|
|
@@ -30706,7 +31034,7 @@ var ZipBufferIterator = /** @class */ (function (_super) {
|
|
|
30706
31034
|
|
|
30707
31035
|
/* Observable */
|
|
30708
31036
|
|
|
30709
|
-
var __extends$
|
|
31037
|
+
var __extends$34 = (undefined && undefined.__extends) || (function () {
|
|
30710
31038
|
var extendStatics = Object.setPrototypeOf ||
|
|
30711
31039
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30712
31040
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -30763,7 +31091,7 @@ var __extends$33 = (undefined && undefined.__extends) || (function () {
|
|
|
30763
31091
|
* @extends {Ignored}
|
|
30764
31092
|
*/
|
|
30765
31093
|
var AuditSubscriber = /** @class */ (function (_super) {
|
|
30766
|
-
__extends$
|
|
31094
|
+
__extends$34(AuditSubscriber, _super);
|
|
30767
31095
|
function AuditSubscriber(destination, durationSelector) {
|
|
30768
31096
|
var _this = _super.call(this, destination) || this;
|
|
30769
31097
|
_this.durationSelector = durationSelector;
|
|
@@ -30854,7 +31182,7 @@ var AuditSubscriber = /** @class */ (function (_super) {
|
|
|
30854
31182
|
* @owner Observable
|
|
30855
31183
|
*/
|
|
30856
31184
|
|
|
30857
|
-
var __extends$
|
|
31185
|
+
var __extends$35 = (undefined && undefined.__extends) || (function () {
|
|
30858
31186
|
var extendStatics = Object.setPrototypeOf ||
|
|
30859
31187
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30860
31188
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -30903,7 +31231,7 @@ var __extends$34 = (undefined && undefined.__extends) || (function () {
|
|
|
30903
31231
|
* @extends {Ignored}
|
|
30904
31232
|
*/
|
|
30905
31233
|
var BufferSubscriber = /** @class */ (function (_super) {
|
|
30906
|
-
__extends$
|
|
31234
|
+
__extends$35(BufferSubscriber, _super);
|
|
30907
31235
|
function BufferSubscriber(destination, closingNotifier) {
|
|
30908
31236
|
var _this = _super.call(this, destination) || this;
|
|
30909
31237
|
_this.buffer = [];
|
|
@@ -30921,7 +31249,7 @@ var BufferSubscriber = /** @class */ (function (_super) {
|
|
|
30921
31249
|
return BufferSubscriber;
|
|
30922
31250
|
}(OuterSubscriber));
|
|
30923
31251
|
|
|
30924
|
-
var __extends$
|
|
31252
|
+
var __extends$36 = (undefined && undefined.__extends) || (function () {
|
|
30925
31253
|
var extendStatics = Object.setPrototypeOf ||
|
|
30926
31254
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30927
31255
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -30979,7 +31307,7 @@ var __extends$35 = (undefined && undefined.__extends) || (function () {
|
|
|
30979
31307
|
* @extends {Ignored}
|
|
30980
31308
|
*/
|
|
30981
31309
|
var BufferCountSubscriber = /** @class */ (function (_super) {
|
|
30982
|
-
__extends$
|
|
31310
|
+
__extends$36(BufferCountSubscriber, _super);
|
|
30983
31311
|
function BufferCountSubscriber(destination, bufferSize) {
|
|
30984
31312
|
var _this = _super.call(this, destination) || this;
|
|
30985
31313
|
_this.bufferSize = bufferSize;
|
|
@@ -31009,7 +31337,7 @@ var BufferCountSubscriber = /** @class */ (function (_super) {
|
|
|
31009
31337
|
* @extends {Ignored}
|
|
31010
31338
|
*/
|
|
31011
31339
|
var BufferSkipCountSubscriber = /** @class */ (function (_super) {
|
|
31012
|
-
__extends$
|
|
31340
|
+
__extends$36(BufferSkipCountSubscriber, _super);
|
|
31013
31341
|
function BufferSkipCountSubscriber(destination, bufferSize, startBufferEvery) {
|
|
31014
31342
|
var _this = _super.call(this, destination) || this;
|
|
31015
31343
|
_this.bufferSize = bufferSize;
|
|
@@ -31046,7 +31374,7 @@ var BufferSkipCountSubscriber = /** @class */ (function (_super) {
|
|
|
31046
31374
|
return BufferSkipCountSubscriber;
|
|
31047
31375
|
}(Subscriber));
|
|
31048
31376
|
|
|
31049
|
-
var __extends$
|
|
31377
|
+
var __extends$37 = (undefined && undefined.__extends) || (function () {
|
|
31050
31378
|
var extendStatics = Object.setPrototypeOf ||
|
|
31051
31379
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31052
31380
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -31113,7 +31441,7 @@ var Context = /** @class */ (function () {
|
|
|
31113
31441
|
* @extends {Ignored}
|
|
31114
31442
|
*/
|
|
31115
31443
|
var BufferTimeSubscriber = /** @class */ (function (_super) {
|
|
31116
|
-
__extends$
|
|
31444
|
+
__extends$37(BufferTimeSubscriber, _super);
|
|
31117
31445
|
function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
|
|
31118
31446
|
var _this = _super.call(this, destination) || this;
|
|
31119
31447
|
_this.bufferTimeSpan = bufferTimeSpan;
|
|
@@ -31163,6 +31491,7 @@ var BufferTimeSubscriber = /** @class */ (function (_super) {
|
|
|
31163
31491
|
}
|
|
31164
31492
|
_super.prototype._complete.call(this);
|
|
31165
31493
|
};
|
|
31494
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
31166
31495
|
BufferTimeSubscriber.prototype._unsubscribe = function () {
|
|
31167
31496
|
this.contexts = null;
|
|
31168
31497
|
};
|
|
@@ -31218,7 +31547,7 @@ function dispatchBufferClose(arg) {
|
|
|
31218
31547
|
subscriber.closeContext(context);
|
|
31219
31548
|
}
|
|
31220
31549
|
|
|
31221
|
-
var __extends$
|
|
31550
|
+
var __extends$38 = (undefined && undefined.__extends) || (function () {
|
|
31222
31551
|
var extendStatics = Object.setPrototypeOf ||
|
|
31223
31552
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31224
31553
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -31273,7 +31602,7 @@ var __extends$37 = (undefined && undefined.__extends) || (function () {
|
|
|
31273
31602
|
* @extends {Ignored}
|
|
31274
31603
|
*/
|
|
31275
31604
|
var BufferToggleSubscriber = /** @class */ (function (_super) {
|
|
31276
|
-
__extends$
|
|
31605
|
+
__extends$38(BufferToggleSubscriber, _super);
|
|
31277
31606
|
function BufferToggleSubscriber(destination, openings, closingSelector) {
|
|
31278
31607
|
var _this = _super.call(this, destination) || this;
|
|
31279
31608
|
_this.openings = openings;
|
|
@@ -31359,7 +31688,7 @@ var BufferToggleSubscriber = /** @class */ (function (_super) {
|
|
|
31359
31688
|
return BufferToggleSubscriber;
|
|
31360
31689
|
}(OuterSubscriber));
|
|
31361
31690
|
|
|
31362
|
-
var __extends$
|
|
31691
|
+
var __extends$39 = (undefined && undefined.__extends) || (function () {
|
|
31363
31692
|
var extendStatics = Object.setPrototypeOf ||
|
|
31364
31693
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31365
31694
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -31409,7 +31738,7 @@ var __extends$38 = (undefined && undefined.__extends) || (function () {
|
|
|
31409
31738
|
* @extends {Ignored}
|
|
31410
31739
|
*/
|
|
31411
31740
|
var BufferWhenSubscriber = /** @class */ (function (_super) {
|
|
31412
|
-
__extends$
|
|
31741
|
+
__extends$39(BufferWhenSubscriber, _super);
|
|
31413
31742
|
function BufferWhenSubscriber(destination, closingSelector) {
|
|
31414
31743
|
var _this = _super.call(this, destination) || this;
|
|
31415
31744
|
_this.closingSelector = closingSelector;
|
|
@@ -31427,6 +31756,7 @@ var BufferWhenSubscriber = /** @class */ (function (_super) {
|
|
|
31427
31756
|
}
|
|
31428
31757
|
_super.prototype._complete.call(this);
|
|
31429
31758
|
};
|
|
31759
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
31430
31760
|
BufferWhenSubscriber.prototype._unsubscribe = function () {
|
|
31431
31761
|
this.buffer = null;
|
|
31432
31762
|
this.subscribing = false;
|
|
@@ -31469,7 +31799,7 @@ var BufferWhenSubscriber = /** @class */ (function (_super) {
|
|
|
31469
31799
|
return BufferWhenSubscriber;
|
|
31470
31800
|
}(OuterSubscriber));
|
|
31471
31801
|
|
|
31472
|
-
var __extends$
|
|
31802
|
+
var __extends$40 = (undefined && undefined.__extends) || (function () {
|
|
31473
31803
|
var extendStatics = Object.setPrototypeOf ||
|
|
31474
31804
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31475
31805
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -31543,7 +31873,7 @@ var __extends$39 = (undefined && undefined.__extends) || (function () {
|
|
|
31543
31873
|
* @extends {Ignored}
|
|
31544
31874
|
*/
|
|
31545
31875
|
var CatchSubscriber = /** @class */ (function (_super) {
|
|
31546
|
-
__extends$
|
|
31876
|
+
__extends$40(CatchSubscriber, _super);
|
|
31547
31877
|
function CatchSubscriber(destination, selector, caught) {
|
|
31548
31878
|
var _this = _super.call(this, destination) || this;
|
|
31549
31879
|
_this.selector = selector;
|
|
@@ -31725,7 +32055,7 @@ var __spread$9 = (undefined && undefined.__spread) || function () {
|
|
|
31725
32055
|
* @owner Observable
|
|
31726
32056
|
*/
|
|
31727
32057
|
|
|
31728
|
-
var __extends$
|
|
32058
|
+
var __extends$41 = (undefined && undefined.__extends) || (function () {
|
|
31729
32059
|
var extendStatics = Object.setPrototypeOf ||
|
|
31730
32060
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31731
32061
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -31790,7 +32120,7 @@ var __extends$40 = (undefined && undefined.__extends) || (function () {
|
|
|
31790
32120
|
* @extends {Ignored}
|
|
31791
32121
|
*/
|
|
31792
32122
|
var CountSubscriber = /** @class */ (function (_super) {
|
|
31793
|
-
__extends$
|
|
32123
|
+
__extends$41(CountSubscriber, _super);
|
|
31794
32124
|
function CountSubscriber(destination, predicate, source) {
|
|
31795
32125
|
var _this = _super.call(this, destination) || this;
|
|
31796
32126
|
_this.predicate = predicate;
|
|
@@ -31827,7 +32157,7 @@ var CountSubscriber = /** @class */ (function (_super) {
|
|
|
31827
32157
|
return CountSubscriber;
|
|
31828
32158
|
}(Subscriber));
|
|
31829
32159
|
|
|
31830
|
-
var __extends$
|
|
32160
|
+
var __extends$42 = (undefined && undefined.__extends) || (function () {
|
|
31831
32161
|
var extendStatics = Object.setPrototypeOf ||
|
|
31832
32162
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31833
32163
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -31886,7 +32216,7 @@ var __extends$41 = (undefined && undefined.__extends) || (function () {
|
|
|
31886
32216
|
* @extends {Ignored}
|
|
31887
32217
|
*/
|
|
31888
32218
|
var DebounceSubscriber = /** @class */ (function (_super) {
|
|
31889
|
-
__extends$
|
|
32219
|
+
__extends$42(DebounceSubscriber, _super);
|
|
31890
32220
|
function DebounceSubscriber(destination, durationSelector) {
|
|
31891
32221
|
var _this = _super.call(this, destination) || this;
|
|
31892
32222
|
_this.durationSelector = durationSelector;
|
|
@@ -31950,7 +32280,7 @@ var DebounceSubscriber = /** @class */ (function (_super) {
|
|
|
31950
32280
|
return DebounceSubscriber;
|
|
31951
32281
|
}(OuterSubscriber));
|
|
31952
32282
|
|
|
31953
|
-
var __extends$
|
|
32283
|
+
var __extends$43 = (undefined && undefined.__extends) || (function () {
|
|
31954
32284
|
var extendStatics = Object.setPrototypeOf ||
|
|
31955
32285
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31956
32286
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32013,7 +32343,7 @@ var __extends$42 = (undefined && undefined.__extends) || (function () {
|
|
|
32013
32343
|
* @extends {Ignored}
|
|
32014
32344
|
*/
|
|
32015
32345
|
var DebounceTimeSubscriber = /** @class */ (function (_super) {
|
|
32016
|
-
__extends$
|
|
32346
|
+
__extends$43(DebounceTimeSubscriber, _super);
|
|
32017
32347
|
function DebounceTimeSubscriber(destination, dueTime, scheduler) {
|
|
32018
32348
|
var _this = _super.call(this, destination) || this;
|
|
32019
32349
|
_this.dueTime = dueTime;
|
|
@@ -32061,7 +32391,7 @@ function dispatchNext$2(subscriber) {
|
|
|
32061
32391
|
subscriber.debouncedNext();
|
|
32062
32392
|
}
|
|
32063
32393
|
|
|
32064
|
-
var __extends$
|
|
32394
|
+
var __extends$44 = (undefined && undefined.__extends) || (function () {
|
|
32065
32395
|
var extendStatics = Object.setPrototypeOf ||
|
|
32066
32396
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32067
32397
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32109,7 +32439,7 @@ var __extends$43 = (undefined && undefined.__extends) || (function () {
|
|
|
32109
32439
|
* @extends {Ignored}
|
|
32110
32440
|
*/
|
|
32111
32441
|
var DefaultIfEmptySubscriber = /** @class */ (function (_super) {
|
|
32112
|
-
__extends$
|
|
32442
|
+
__extends$44(DefaultIfEmptySubscriber, _super);
|
|
32113
32443
|
function DefaultIfEmptySubscriber(destination, defaultValue) {
|
|
32114
32444
|
var _this = _super.call(this, destination) || this;
|
|
32115
32445
|
_this.defaultValue = defaultValue;
|
|
@@ -32129,7 +32459,7 @@ var DefaultIfEmptySubscriber = /** @class */ (function (_super) {
|
|
|
32129
32459
|
return DefaultIfEmptySubscriber;
|
|
32130
32460
|
}(Subscriber));
|
|
32131
32461
|
|
|
32132
|
-
var __extends$
|
|
32462
|
+
var __extends$45 = (undefined && undefined.__extends) || (function () {
|
|
32133
32463
|
var extendStatics = Object.setPrototypeOf ||
|
|
32134
32464
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32135
32465
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32185,7 +32515,7 @@ var __extends$44 = (undefined && undefined.__extends) || (function () {
|
|
|
32185
32515
|
* @extends {Ignored}
|
|
32186
32516
|
*/
|
|
32187
32517
|
var DelaySubscriber = /** @class */ (function (_super) {
|
|
32188
|
-
__extends$
|
|
32518
|
+
__extends$45(DelaySubscriber, _super);
|
|
32189
32519
|
function DelaySubscriber(destination, delay, scheduler) {
|
|
32190
32520
|
var _this = _super.call(this, destination) || this;
|
|
32191
32521
|
_this.delay = delay;
|
|
@@ -32249,7 +32579,7 @@ var DelayMessage = /** @class */ (function () {
|
|
|
32249
32579
|
return DelayMessage;
|
|
32250
32580
|
}());
|
|
32251
32581
|
|
|
32252
|
-
var __extends$
|
|
32582
|
+
var __extends$46 = (undefined && undefined.__extends) || (function () {
|
|
32253
32583
|
var extendStatics = Object.setPrototypeOf ||
|
|
32254
32584
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32255
32585
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32311,7 +32641,7 @@ var __extends$45 = (undefined && undefined.__extends) || (function () {
|
|
|
32311
32641
|
* @extends {Ignored}
|
|
32312
32642
|
*/
|
|
32313
32643
|
var DelayWhenSubscriber = /** @class */ (function (_super) {
|
|
32314
|
-
__extends$
|
|
32644
|
+
__extends$46(DelayWhenSubscriber, _super);
|
|
32315
32645
|
function DelayWhenSubscriber(destination, delayDurationSelector) {
|
|
32316
32646
|
var _this = _super.call(this, destination) || this;
|
|
32317
32647
|
_this.delayDurationSelector = delayDurationSelector;
|
|
@@ -32382,13 +32712,14 @@ var DelayWhenSubscriber = /** @class */ (function (_super) {
|
|
|
32382
32712
|
* @extends {Ignored}
|
|
32383
32713
|
*/
|
|
32384
32714
|
var SubscriptionDelayObservable = /** @class */ (function (_super) {
|
|
32385
|
-
__extends$
|
|
32715
|
+
__extends$46(SubscriptionDelayObservable, _super);
|
|
32386
32716
|
function SubscriptionDelayObservable(source, subscriptionDelay) {
|
|
32387
32717
|
var _this = _super.call(this) || this;
|
|
32388
32718
|
_this.source = source;
|
|
32389
32719
|
_this.subscriptionDelay = subscriptionDelay;
|
|
32390
32720
|
return _this;
|
|
32391
32721
|
}
|
|
32722
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
32392
32723
|
SubscriptionDelayObservable.prototype._subscribe = function (subscriber) {
|
|
32393
32724
|
this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));
|
|
32394
32725
|
};
|
|
@@ -32400,7 +32731,7 @@ var SubscriptionDelayObservable = /** @class */ (function (_super) {
|
|
|
32400
32731
|
* @extends {Ignored}
|
|
32401
32732
|
*/
|
|
32402
32733
|
var SubscriptionDelaySubscriber = /** @class */ (function (_super) {
|
|
32403
|
-
__extends$
|
|
32734
|
+
__extends$46(SubscriptionDelaySubscriber, _super);
|
|
32404
32735
|
function SubscriptionDelaySubscriber(parent, source) {
|
|
32405
32736
|
var _this = _super.call(this) || this;
|
|
32406
32737
|
_this.parent = parent;
|
|
@@ -32428,7 +32759,7 @@ var SubscriptionDelaySubscriber = /** @class */ (function (_super) {
|
|
|
32428
32759
|
return SubscriptionDelaySubscriber;
|
|
32429
32760
|
}(Subscriber));
|
|
32430
32761
|
|
|
32431
|
-
var __extends$
|
|
32762
|
+
var __extends$47 = (undefined && undefined.__extends) || (function () {
|
|
32432
32763
|
var extendStatics = Object.setPrototypeOf ||
|
|
32433
32764
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32434
32765
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32485,7 +32816,7 @@ var __extends$46 = (undefined && undefined.__extends) || (function () {
|
|
|
32485
32816
|
* @extends {Ignored}
|
|
32486
32817
|
*/
|
|
32487
32818
|
var DeMaterializeSubscriber = /** @class */ (function (_super) {
|
|
32488
|
-
__extends$
|
|
32819
|
+
__extends$47(DeMaterializeSubscriber, _super);
|
|
32489
32820
|
function DeMaterializeSubscriber(destination) {
|
|
32490
32821
|
return _super.call(this, destination) || this;
|
|
32491
32822
|
}
|
|
@@ -32495,7 +32826,7 @@ var DeMaterializeSubscriber = /** @class */ (function (_super) {
|
|
|
32495
32826
|
return DeMaterializeSubscriber;
|
|
32496
32827
|
}(Subscriber));
|
|
32497
32828
|
|
|
32498
|
-
var __extends$
|
|
32829
|
+
var __extends$48 = (undefined && undefined.__extends) || (function () {
|
|
32499
32830
|
var extendStatics = Object.setPrototypeOf ||
|
|
32500
32831
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32501
32832
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32505,9 +32836,6 @@ var __extends$47 = (undefined && undefined.__extends) || (function () {
|
|
|
32505
32836
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32506
32837
|
};
|
|
32507
32838
|
})();
|
|
32508
|
-
if (!Set) {
|
|
32509
|
-
throw new Error('Set is not present, please polyfill');
|
|
32510
|
-
}
|
|
32511
32839
|
/**
|
|
32512
32840
|
* Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.
|
|
32513
32841
|
*
|
|
@@ -32560,7 +32888,7 @@ if (!Set) {
|
|
|
32560
32888
|
* @extends {Ignored}
|
|
32561
32889
|
*/
|
|
32562
32890
|
var DistinctSubscriber = /** @class */ (function (_super) {
|
|
32563
|
-
__extends$
|
|
32891
|
+
__extends$48(DistinctSubscriber, _super);
|
|
32564
32892
|
function DistinctSubscriber(destination, keySelector, flushes) {
|
|
32565
32893
|
var _this = _super.call(this, destination) || this;
|
|
32566
32894
|
_this.keySelector = keySelector;
|
|
@@ -32606,7 +32934,7 @@ var DistinctSubscriber = /** @class */ (function (_super) {
|
|
|
32606
32934
|
return DistinctSubscriber;
|
|
32607
32935
|
}(OuterSubscriber));
|
|
32608
32936
|
|
|
32609
|
-
var __extends$
|
|
32937
|
+
var __extends$49 = (undefined && undefined.__extends) || (function () {
|
|
32610
32938
|
var extendStatics = Object.setPrototypeOf ||
|
|
32611
32939
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32612
32940
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32663,7 +32991,7 @@ var __extends$48 = (undefined && undefined.__extends) || (function () {
|
|
|
32663
32991
|
* @extends {Ignored}
|
|
32664
32992
|
*/
|
|
32665
32993
|
var DistinctUntilChangedSubscriber = /** @class */ (function (_super) {
|
|
32666
|
-
__extends$
|
|
32994
|
+
__extends$49(DistinctUntilChangedSubscriber, _super);
|
|
32667
32995
|
function DistinctUntilChangedSubscriber(destination, compare, keySelector) {
|
|
32668
32996
|
var _this = _super.call(this, destination) || this;
|
|
32669
32997
|
_this.keySelector = keySelector;
|
|
@@ -32762,7 +33090,7 @@ var DistinctUntilChangedSubscriber = /** @class */ (function (_super) {
|
|
|
32762
33090
|
* @owner Observable
|
|
32763
33091
|
*/
|
|
32764
33092
|
|
|
32765
|
-
var __extends$
|
|
33093
|
+
var __extends$50 = (undefined && undefined.__extends) || (function () {
|
|
32766
33094
|
var extendStatics = Object.setPrototypeOf ||
|
|
32767
33095
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32768
33096
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32819,7 +33147,7 @@ var __extends$49 = (undefined && undefined.__extends) || (function () {
|
|
|
32819
33147
|
* @extends {Ignored}
|
|
32820
33148
|
*/
|
|
32821
33149
|
var FilterSubscriber = /** @class */ (function (_super) {
|
|
32822
|
-
__extends$
|
|
33150
|
+
__extends$50(FilterSubscriber, _super);
|
|
32823
33151
|
function FilterSubscriber(destination, predicate, thisArg) {
|
|
32824
33152
|
var _this = _super.call(this, destination) || this;
|
|
32825
33153
|
_this.predicate = predicate;
|
|
@@ -32845,7 +33173,7 @@ var FilterSubscriber = /** @class */ (function (_super) {
|
|
|
32845
33173
|
return FilterSubscriber;
|
|
32846
33174
|
}(Subscriber));
|
|
32847
33175
|
|
|
32848
|
-
var __extends$
|
|
33176
|
+
var __extends$51 = (undefined && undefined.__extends) || (function () {
|
|
32849
33177
|
var extendStatics = Object.setPrototypeOf ||
|
|
32850
33178
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32851
33179
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -32904,23 +33232,23 @@ var __extends$50 = (undefined && undefined.__extends) || (function () {
|
|
|
32904
33232
|
* @extends {Ignored}
|
|
32905
33233
|
*/
|
|
32906
33234
|
var TapSubscriber = /** @class */ (function (_super) {
|
|
32907
|
-
__extends$
|
|
33235
|
+
__extends$51(TapSubscriber, _super);
|
|
32908
33236
|
function TapSubscriber(destination, observerOrNext, error, complete) {
|
|
32909
33237
|
var _this = _super.call(this, destination) || this;
|
|
32910
|
-
_this._tapNext = noop;
|
|
32911
|
-
_this._tapError = noop;
|
|
32912
|
-
_this._tapComplete = noop;
|
|
32913
|
-
_this._tapError = error || noop;
|
|
32914
|
-
_this._tapComplete = complete || noop;
|
|
33238
|
+
_this._tapNext = noop$1;
|
|
33239
|
+
_this._tapError = noop$1;
|
|
33240
|
+
_this._tapComplete = noop$1;
|
|
33241
|
+
_this._tapError = error || noop$1;
|
|
33242
|
+
_this._tapComplete = complete || noop$1;
|
|
32915
33243
|
if (isFunction(observerOrNext)) {
|
|
32916
33244
|
_this._context = _this;
|
|
32917
33245
|
_this._tapNext = observerOrNext;
|
|
32918
33246
|
}
|
|
32919
33247
|
else if (observerOrNext) {
|
|
32920
33248
|
_this._context = observerOrNext;
|
|
32921
|
-
_this._tapNext = observerOrNext.next || noop;
|
|
32922
|
-
_this._tapError = observerOrNext.error || noop;
|
|
32923
|
-
_this._tapComplete = observerOrNext.complete || noop;
|
|
33249
|
+
_this._tapNext = observerOrNext.next || noop$1;
|
|
33250
|
+
_this._tapError = observerOrNext.error || noop$1;
|
|
33251
|
+
_this._tapComplete = observerOrNext.complete || noop$1;
|
|
32924
33252
|
}
|
|
32925
33253
|
return _this;
|
|
32926
33254
|
}
|
|
@@ -32981,7 +33309,7 @@ var TapSubscriber = /** @class */ (function (_super) {
|
|
|
32981
33309
|
* value.
|
|
32982
33310
|
*/
|
|
32983
33311
|
|
|
32984
|
-
var __extends$
|
|
33312
|
+
var __extends$52 = (undefined && undefined.__extends) || (function () {
|
|
32985
33313
|
var extendStatics = Object.setPrototypeOf ||
|
|
32986
33314
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32987
33315
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33031,7 +33359,7 @@ var __extends$51 = (undefined && undefined.__extends) || (function () {
|
|
|
33031
33359
|
* @extends {Ignored}
|
|
33032
33360
|
*/
|
|
33033
33361
|
var TakeSubscriber = /** @class */ (function (_super) {
|
|
33034
|
-
__extends$
|
|
33362
|
+
__extends$52(TakeSubscriber, _super);
|
|
33035
33363
|
function TakeSubscriber(destination, total) {
|
|
33036
33364
|
var _this = _super.call(this, destination) || this;
|
|
33037
33365
|
_this.total = total;
|
|
@@ -33095,7 +33423,7 @@ var TakeSubscriber = /** @class */ (function (_super) {
|
|
|
33095
33423
|
* @owner Observable
|
|
33096
33424
|
*/
|
|
33097
33425
|
|
|
33098
|
-
var __extends$
|
|
33426
|
+
var __extends$53 = (undefined && undefined.__extends) || (function () {
|
|
33099
33427
|
var extendStatics = Object.setPrototypeOf ||
|
|
33100
33428
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33101
33429
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33126,7 +33454,7 @@ var __extends$52 = (undefined && undefined.__extends) || (function () {
|
|
|
33126
33454
|
* @extends {Ignored}
|
|
33127
33455
|
*/
|
|
33128
33456
|
var EverySubscriber = /** @class */ (function (_super) {
|
|
33129
|
-
__extends$
|
|
33457
|
+
__extends$53(EverySubscriber, _super);
|
|
33130
33458
|
function EverySubscriber(destination, predicate, thisArg, source) {
|
|
33131
33459
|
var _this = _super.call(this, destination) || this;
|
|
33132
33460
|
_this.predicate = predicate;
|
|
@@ -33159,7 +33487,7 @@ var EverySubscriber = /** @class */ (function (_super) {
|
|
|
33159
33487
|
return EverySubscriber;
|
|
33160
33488
|
}(Subscriber));
|
|
33161
33489
|
|
|
33162
|
-
var __extends$
|
|
33490
|
+
var __extends$54 = (undefined && undefined.__extends) || (function () {
|
|
33163
33491
|
var extendStatics = Object.setPrototypeOf ||
|
|
33164
33492
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33165
33493
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33211,7 +33539,7 @@ var __extends$53 = (undefined && undefined.__extends) || (function () {
|
|
|
33211
33539
|
* @extends {Ignored}
|
|
33212
33540
|
*/
|
|
33213
33541
|
var SwitchFirstSubscriber = /** @class */ (function (_super) {
|
|
33214
|
-
__extends$
|
|
33542
|
+
__extends$54(SwitchFirstSubscriber, _super);
|
|
33215
33543
|
function SwitchFirstSubscriber(destination) {
|
|
33216
33544
|
var _this = _super.call(this, destination) || this;
|
|
33217
33545
|
_this.hasCompleted = false;
|
|
@@ -33240,7 +33568,7 @@ var SwitchFirstSubscriber = /** @class */ (function (_super) {
|
|
|
33240
33568
|
return SwitchFirstSubscriber;
|
|
33241
33569
|
}(OuterSubscriber));
|
|
33242
33570
|
|
|
33243
|
-
var __extends$
|
|
33571
|
+
var __extends$55 = (undefined && undefined.__extends) || (function () {
|
|
33244
33572
|
var extendStatics = Object.setPrototypeOf ||
|
|
33245
33573
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33246
33574
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33295,7 +33623,7 @@ var __extends$54 = (undefined && undefined.__extends) || (function () {
|
|
|
33295
33623
|
* @extends {Ignored}
|
|
33296
33624
|
*/
|
|
33297
33625
|
var ExhaustMapSubscriber = /** @class */ (function (_super) {
|
|
33298
|
-
__extends$
|
|
33626
|
+
__extends$55(ExhaustMapSubscriber, _super);
|
|
33299
33627
|
function ExhaustMapSubscriber(destination, project) {
|
|
33300
33628
|
var _this = _super.call(this, destination) || this;
|
|
33301
33629
|
_this.project = project;
|
|
@@ -33343,7 +33671,7 @@ var ExhaustMapSubscriber = /** @class */ (function (_super) {
|
|
|
33343
33671
|
return ExhaustMapSubscriber;
|
|
33344
33672
|
}(OuterSubscriber));
|
|
33345
33673
|
|
|
33346
|
-
var __extends$
|
|
33674
|
+
var __extends$56 = (undefined && undefined.__extends) || (function () {
|
|
33347
33675
|
var extendStatics = Object.setPrototypeOf ||
|
|
33348
33676
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33349
33677
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33406,7 +33734,7 @@ var __extends$55 = (undefined && undefined.__extends) || (function () {
|
|
|
33406
33734
|
* @extends {Ignored}
|
|
33407
33735
|
*/
|
|
33408
33736
|
var ExpandSubscriber = /** @class */ (function (_super) {
|
|
33409
|
-
__extends$
|
|
33737
|
+
__extends$56(ExpandSubscriber, _super);
|
|
33410
33738
|
function ExpandSubscriber(destination, project, concurrent, scheduler) {
|
|
33411
33739
|
var _this = _super.call(this, destination) || this;
|
|
33412
33740
|
_this.project = project;
|
|
@@ -33476,7 +33804,7 @@ var ExpandSubscriber = /** @class */ (function (_super) {
|
|
|
33476
33804
|
return ExpandSubscriber;
|
|
33477
33805
|
}(OuterSubscriber));
|
|
33478
33806
|
|
|
33479
|
-
var __extends$
|
|
33807
|
+
var __extends$57 = (undefined && undefined.__extends) || (function () {
|
|
33480
33808
|
var extendStatics = Object.setPrototypeOf ||
|
|
33481
33809
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33482
33810
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33501,7 +33829,7 @@ var __extends$56 = (undefined && undefined.__extends) || (function () {
|
|
|
33501
33829
|
* @extends {Ignored}
|
|
33502
33830
|
*/
|
|
33503
33831
|
var FinallySubscriber = /** @class */ (function (_super) {
|
|
33504
|
-
__extends$
|
|
33832
|
+
__extends$57(FinallySubscriber, _super);
|
|
33505
33833
|
function FinallySubscriber(destination, callback) {
|
|
33506
33834
|
var _this = _super.call(this, destination) || this;
|
|
33507
33835
|
_this.add(new Subscription(callback));
|
|
@@ -33510,7 +33838,7 @@ var FinallySubscriber = /** @class */ (function (_super) {
|
|
|
33510
33838
|
return FinallySubscriber;
|
|
33511
33839
|
}(Subscriber));
|
|
33512
33840
|
|
|
33513
|
-
var __extends$
|
|
33841
|
+
var __extends$58 = (undefined && undefined.__extends) || (function () {
|
|
33514
33842
|
var extendStatics = Object.setPrototypeOf ||
|
|
33515
33843
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33516
33844
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
@@ -33560,7 +33888,7 @@ var __extends$57 = (undefined && undefined.__extends) || (function () {
|
|
|
33560
33888
|
* @extends {Ignored}
|
|
33561
33889
|
*/
|
|
33562
33890
|
var FindValueSubscriber = /** @class */ (function (_super) {
|
|
33563
|
-
__extends$
|
|
33891
|
+
__extends$58(FindValueSubscriber, _super);
|
|
33564
33892
|
function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {
|
|
33565
33893
|
var _this = _super.call(this, destination) || this;
|
|
33566
33894
|
_this.predicate = predicate;
|
|
@@ -33673,270 +34001,6 @@ var FindValueSubscriber = /** @class */ (function (_super) {
|
|
|
33673
34001
|
* @owner Observable
|
|
33674
34002
|
*/
|
|
33675
34003
|
|
|
33676
|
-
var __extends$58 = (undefined && undefined.__extends) || (function () {
|
|
33677
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
33678
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33679
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
33680
|
-
return function (d, b) {
|
|
33681
|
-
extendStatics(d, b);
|
|
33682
|
-
function __() { this.constructor = d; }
|
|
33683
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
33684
|
-
};
|
|
33685
|
-
})();
|
|
33686
|
-
/** Assert that map is present for this operator */
|
|
33687
|
-
if (!Map) {
|
|
33688
|
-
throw new Error('Map not found, please polyfill');
|
|
33689
|
-
}
|
|
33690
|
-
/* tslint:enable:max-line-length */
|
|
33691
|
-
/**
|
|
33692
|
-
* Groups the items emitted by an Observable according to a specified criterion,
|
|
33693
|
-
* and emits these grouped items as `GroupedObservables`, one
|
|
33694
|
-
* {@link GroupedObservable} per group.
|
|
33695
|
-
*
|
|
33696
|
-
* <img src="./img/groupBy.png" width="100%">
|
|
33697
|
-
*
|
|
33698
|
-
* @example <caption>Group objects by id and return as array</caption>
|
|
33699
|
-
* Observable.of<Obj>({id: 1, name: 'aze1'},
|
|
33700
|
-
* {id: 2, name: 'sf2'},
|
|
33701
|
-
* {id: 2, name: 'dg2'},
|
|
33702
|
-
* {id: 1, name: 'erg1'},
|
|
33703
|
-
* {id: 1, name: 'df1'},
|
|
33704
|
-
* {id: 2, name: 'sfqfb2'},
|
|
33705
|
-
* {id: 3, name: 'qfs3'},
|
|
33706
|
-
* {id: 2, name: 'qsgqsfg2'}
|
|
33707
|
-
* )
|
|
33708
|
-
* .groupBy(p => p.id)
|
|
33709
|
-
* .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], []))
|
|
33710
|
-
* .subscribe(p => console.log(p));
|
|
33711
|
-
*
|
|
33712
|
-
* // displays:
|
|
33713
|
-
* // [ { id: 1, name: 'aze1' },
|
|
33714
|
-
* // { id: 1, name: 'erg1' },
|
|
33715
|
-
* // { id: 1, name: 'df1' } ]
|
|
33716
|
-
* //
|
|
33717
|
-
* // [ { id: 2, name: 'sf2' },
|
|
33718
|
-
* // { id: 2, name: 'dg2' },
|
|
33719
|
-
* // { id: 2, name: 'sfqfb2' },
|
|
33720
|
-
* // { id: 2, name: 'qsgqsfg2' } ]
|
|
33721
|
-
* //
|
|
33722
|
-
* // [ { id: 3, name: 'qfs3' } ]
|
|
33723
|
-
*
|
|
33724
|
-
* @example <caption>Pivot data on the id field</caption>
|
|
33725
|
-
* Observable.of<Obj>({id: 1, name: 'aze1'},
|
|
33726
|
-
* {id: 2, name: 'sf2'},
|
|
33727
|
-
* {id: 2, name: 'dg2'},
|
|
33728
|
-
* {id: 1, name: 'erg1'},
|
|
33729
|
-
* {id: 1, name: 'df1'},
|
|
33730
|
-
* {id: 2, name: 'sfqfb2'},
|
|
33731
|
-
* {id: 3, name: 'qfs1'},
|
|
33732
|
-
* {id: 2, name: 'qsgqsfg2'}
|
|
33733
|
-
* )
|
|
33734
|
-
* .groupBy(p => p.id, p => p.name)
|
|
33735
|
-
* .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], ["" + group$.key]))
|
|
33736
|
-
* .map(arr => ({'id': parseInt(arr[0]), 'values': arr.slice(1)}))
|
|
33737
|
-
* .subscribe(p => console.log(p));
|
|
33738
|
-
*
|
|
33739
|
-
* // displays:
|
|
33740
|
-
* // { id: 1, values: [ 'aze1', 'erg1', 'df1' ] }
|
|
33741
|
-
* // { id: 2, values: [ 'sf2', 'dg2', 'sfqfb2', 'qsgqsfg2' ] }
|
|
33742
|
-
* // { id: 3, values: [ 'qfs1' ] }
|
|
33743
|
-
*
|
|
33744
|
-
* @param {function(value: T): K} keySelector A function that extracts the key
|
|
33745
|
-
* for each item.
|
|
33746
|
-
* @param {function(value: T): R} [elementSelector] A function that extracts the
|
|
33747
|
-
* return element for each item.
|
|
33748
|
-
* @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]
|
|
33749
|
-
* A function that returns an Observable to determine how long each group should
|
|
33750
|
-
* exist.
|
|
33751
|
-
* @return {Observable<GroupedObservable<K,R>>} An Observable that emits
|
|
33752
|
-
* GroupedObservables, each of which corresponds to a unique key value and each
|
|
33753
|
-
* of which emits those items from the source Observable that share that key
|
|
33754
|
-
* value.
|
|
33755
|
-
* @method groupBy
|
|
33756
|
-
* @owner Observable
|
|
33757
|
-
*/
|
|
33758
|
-
|
|
33759
|
-
/**
|
|
33760
|
-
* We need this JSDoc comment for affecting ESDoc.
|
|
33761
|
-
* @ignore
|
|
33762
|
-
* @extends {Ignored}
|
|
33763
|
-
*/
|
|
33764
|
-
var GroupBySubscriber = /** @class */ (function (_super) {
|
|
33765
|
-
__extends$58(GroupBySubscriber, _super);
|
|
33766
|
-
function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {
|
|
33767
|
-
var _this = _super.call(this, destination) || this;
|
|
33768
|
-
_this.keySelector = keySelector;
|
|
33769
|
-
_this.elementSelector = elementSelector;
|
|
33770
|
-
_this.durationSelector = durationSelector;
|
|
33771
|
-
_this.subjectSelector = subjectSelector;
|
|
33772
|
-
_this.groups = null;
|
|
33773
|
-
_this.attemptedToUnsubscribe = false;
|
|
33774
|
-
_this.count = 0;
|
|
33775
|
-
return _this;
|
|
33776
|
-
}
|
|
33777
|
-
GroupBySubscriber.prototype._next = function (value) {
|
|
33778
|
-
var key;
|
|
33779
|
-
try {
|
|
33780
|
-
key = this.keySelector(value);
|
|
33781
|
-
}
|
|
33782
|
-
catch (err) {
|
|
33783
|
-
this.error(err);
|
|
33784
|
-
return;
|
|
33785
|
-
}
|
|
33786
|
-
this._group(value, key);
|
|
33787
|
-
};
|
|
33788
|
-
GroupBySubscriber.prototype._group = function (value, key) {
|
|
33789
|
-
var groups = this.groups;
|
|
33790
|
-
if (!groups) {
|
|
33791
|
-
groups = this.groups = new Map();
|
|
33792
|
-
}
|
|
33793
|
-
var group = groups.get(key);
|
|
33794
|
-
var element;
|
|
33795
|
-
if (this.elementSelector) {
|
|
33796
|
-
try {
|
|
33797
|
-
element = this.elementSelector(value);
|
|
33798
|
-
}
|
|
33799
|
-
catch (err) {
|
|
33800
|
-
this.error(err);
|
|
33801
|
-
}
|
|
33802
|
-
}
|
|
33803
|
-
else {
|
|
33804
|
-
element = value;
|
|
33805
|
-
}
|
|
33806
|
-
if (!group) {
|
|
33807
|
-
group = (this.subjectSelector ? this.subjectSelector() : new Subject());
|
|
33808
|
-
groups.set(key, group);
|
|
33809
|
-
var groupedObservable = new GroupedObservable(key, group, this);
|
|
33810
|
-
this.destination.next(groupedObservable);
|
|
33811
|
-
if (this.durationSelector) {
|
|
33812
|
-
var duration = void 0;
|
|
33813
|
-
try {
|
|
33814
|
-
duration = this.durationSelector(new GroupedObservable(key, group));
|
|
33815
|
-
}
|
|
33816
|
-
catch (err) {
|
|
33817
|
-
this.error(err);
|
|
33818
|
-
return;
|
|
33819
|
-
}
|
|
33820
|
-
this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));
|
|
33821
|
-
}
|
|
33822
|
-
}
|
|
33823
|
-
if (!group.closed) {
|
|
33824
|
-
group.next(element);
|
|
33825
|
-
}
|
|
33826
|
-
};
|
|
33827
|
-
GroupBySubscriber.prototype._error = function (err) {
|
|
33828
|
-
var groups = this.groups;
|
|
33829
|
-
if (groups) {
|
|
33830
|
-
groups.forEach(function (group, key) {
|
|
33831
|
-
group.error(err);
|
|
33832
|
-
});
|
|
33833
|
-
groups.clear();
|
|
33834
|
-
}
|
|
33835
|
-
this.destination.error(err);
|
|
33836
|
-
};
|
|
33837
|
-
GroupBySubscriber.prototype._complete = function () {
|
|
33838
|
-
var groups = this.groups;
|
|
33839
|
-
if (groups) {
|
|
33840
|
-
groups.forEach(function (group, key) {
|
|
33841
|
-
group.complete();
|
|
33842
|
-
});
|
|
33843
|
-
groups.clear();
|
|
33844
|
-
}
|
|
33845
|
-
this.destination.complete();
|
|
33846
|
-
};
|
|
33847
|
-
GroupBySubscriber.prototype.removeGroup = function (key) {
|
|
33848
|
-
this.groups.delete(key);
|
|
33849
|
-
};
|
|
33850
|
-
GroupBySubscriber.prototype.unsubscribe = function () {
|
|
33851
|
-
if (!this.closed) {
|
|
33852
|
-
this.attemptedToUnsubscribe = true;
|
|
33853
|
-
if (this.count === 0) {
|
|
33854
|
-
_super.prototype.unsubscribe.call(this);
|
|
33855
|
-
}
|
|
33856
|
-
}
|
|
33857
|
-
};
|
|
33858
|
-
return GroupBySubscriber;
|
|
33859
|
-
}(Subscriber));
|
|
33860
|
-
/**
|
|
33861
|
-
* We need this JSDoc comment for affecting ESDoc.
|
|
33862
|
-
* @ignore
|
|
33863
|
-
* @extends {Ignored}
|
|
33864
|
-
*/
|
|
33865
|
-
var GroupDurationSubscriber = /** @class */ (function (_super) {
|
|
33866
|
-
__extends$58(GroupDurationSubscriber, _super);
|
|
33867
|
-
function GroupDurationSubscriber(key, group, parent) {
|
|
33868
|
-
var _this = _super.call(this, group) || this;
|
|
33869
|
-
_this.key = key;
|
|
33870
|
-
_this.group = group;
|
|
33871
|
-
_this.parent = parent;
|
|
33872
|
-
return _this;
|
|
33873
|
-
}
|
|
33874
|
-
GroupDurationSubscriber.prototype._next = function (value) {
|
|
33875
|
-
this.complete();
|
|
33876
|
-
};
|
|
33877
|
-
GroupDurationSubscriber.prototype._unsubscribe = function () {
|
|
33878
|
-
var _a = this, parent = _a.parent, key = _a.key;
|
|
33879
|
-
this.key = this.parent = null;
|
|
33880
|
-
if (parent) {
|
|
33881
|
-
parent.removeGroup(key);
|
|
33882
|
-
}
|
|
33883
|
-
};
|
|
33884
|
-
return GroupDurationSubscriber;
|
|
33885
|
-
}(Subscriber));
|
|
33886
|
-
/**
|
|
33887
|
-
* An Observable representing values belonging to the same group represented by
|
|
33888
|
-
* a common key. The values emitted by a GroupedObservable come from the source
|
|
33889
|
-
* Observable. The common key is available as the field `key` on a
|
|
33890
|
-
* GroupedObservable instance.
|
|
33891
|
-
*
|
|
33892
|
-
* @class GroupedObservable<K, T>
|
|
33893
|
-
*/
|
|
33894
|
-
var GroupedObservable = /** @class */ (function (_super) {
|
|
33895
|
-
__extends$58(GroupedObservable, _super);
|
|
33896
|
-
function GroupedObservable(key, groupSubject, refCountSubscription) {
|
|
33897
|
-
var _this = _super.call(this) || this;
|
|
33898
|
-
_this.key = key;
|
|
33899
|
-
_this.groupSubject = groupSubject;
|
|
33900
|
-
_this.refCountSubscription = refCountSubscription;
|
|
33901
|
-
return _this;
|
|
33902
|
-
}
|
|
33903
|
-
GroupedObservable.prototype._subscribe = function (subscriber) {
|
|
33904
|
-
var subscription = new Subscription();
|
|
33905
|
-
var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;
|
|
33906
|
-
if (refCountSubscription && !refCountSubscription.closed) {
|
|
33907
|
-
subscription.add(new InnerRefCountSubscription(refCountSubscription));
|
|
33908
|
-
}
|
|
33909
|
-
subscription.add(groupSubject.subscribe(subscriber));
|
|
33910
|
-
return subscription;
|
|
33911
|
-
};
|
|
33912
|
-
return GroupedObservable;
|
|
33913
|
-
}(Observable));
|
|
33914
|
-
/**
|
|
33915
|
-
* We need this JSDoc comment for affecting ESDoc.
|
|
33916
|
-
* @ignore
|
|
33917
|
-
* @extends {Ignored}
|
|
33918
|
-
*/
|
|
33919
|
-
var InnerRefCountSubscription = /** @class */ (function (_super) {
|
|
33920
|
-
__extends$58(InnerRefCountSubscription, _super);
|
|
33921
|
-
function InnerRefCountSubscription(parent) {
|
|
33922
|
-
var _this = _super.call(this) || this;
|
|
33923
|
-
_this.parent = parent;
|
|
33924
|
-
parent.count++;
|
|
33925
|
-
return _this;
|
|
33926
|
-
}
|
|
33927
|
-
InnerRefCountSubscription.prototype.unsubscribe = function () {
|
|
33928
|
-
var parent = this.parent;
|
|
33929
|
-
if (!parent.closed && !this.closed) {
|
|
33930
|
-
_super.prototype.unsubscribe.call(this);
|
|
33931
|
-
parent.count -= 1;
|
|
33932
|
-
if (parent.count === 0 && parent.attemptedToUnsubscribe) {
|
|
33933
|
-
parent.unsubscribe();
|
|
33934
|
-
}
|
|
33935
|
-
}
|
|
33936
|
-
};
|
|
33937
|
-
return InnerRefCountSubscription;
|
|
33938
|
-
}(Subscription));
|
|
33939
|
-
|
|
33940
34004
|
var __extends$59 = (undefined && undefined.__extends) || (function () {
|
|
33941
34005
|
var extendStatics = Object.setPrototypeOf ||
|
|
33942
34006
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -35102,6 +35166,7 @@ var RepeatWhenSubscriber = /** @class */ (function (_super) {
|
|
|
35102
35166
|
this.notifications.next();
|
|
35103
35167
|
}
|
|
35104
35168
|
};
|
|
35169
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
35105
35170
|
RepeatWhenSubscriber.prototype._unsubscribe = function () {
|
|
35106
35171
|
var _a = this, notifications = _a.notifications, retriesSubscription = _a.retriesSubscription;
|
|
35107
35172
|
if (notifications) {
|
|
@@ -35114,6 +35179,7 @@ var RepeatWhenSubscriber = /** @class */ (function (_super) {
|
|
|
35114
35179
|
}
|
|
35115
35180
|
this.retries = null;
|
|
35116
35181
|
};
|
|
35182
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
35117
35183
|
RepeatWhenSubscriber.prototype._unsubscribeAndRecycle = function () {
|
|
35118
35184
|
var _unsubscribe = this._unsubscribe;
|
|
35119
35185
|
this._unsubscribe = null;
|
|
@@ -35250,6 +35316,7 @@ var RetryWhenSubscriber = /** @class */ (function (_super) {
|
|
|
35250
35316
|
errors.next(err);
|
|
35251
35317
|
}
|
|
35252
35318
|
};
|
|
35319
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
35253
35320
|
RetryWhenSubscriber.prototype._unsubscribe = function () {
|
|
35254
35321
|
var _a = this, errors = _a.errors, retriesSubscription = _a.retriesSubscription;
|
|
35255
35322
|
if (errors) {
|
|
@@ -35838,8 +35905,7 @@ var SkipUntilSubscriber = /** @class */ (function (_super) {
|
|
|
35838
35905
|
function SkipUntilSubscriber(destination, notifier) {
|
|
35839
35906
|
var _this = _super.call(this, destination) || this;
|
|
35840
35907
|
_this.hasValue = false;
|
|
35841
|
-
_this.
|
|
35842
|
-
_this.add(subscribeToResult(_this, notifier));
|
|
35908
|
+
_this.add(_this.innerSubscription = subscribeToResult(_this, notifier));
|
|
35843
35909
|
return _this;
|
|
35844
35910
|
}
|
|
35845
35911
|
SkipUntilSubscriber.prototype._next = function (value) {
|
|
@@ -35847,22 +35913,12 @@ var SkipUntilSubscriber = /** @class */ (function (_super) {
|
|
|
35847
35913
|
_super.prototype._next.call(this, value);
|
|
35848
35914
|
}
|
|
35849
35915
|
};
|
|
35850
|
-
SkipUntilSubscriber.prototype._complete = function () {
|
|
35851
|
-
if (this.isInnerStopped) {
|
|
35852
|
-
_super.prototype._complete.call(this);
|
|
35853
|
-
}
|
|
35854
|
-
else {
|
|
35855
|
-
this.unsubscribe();
|
|
35856
|
-
}
|
|
35857
|
-
};
|
|
35858
35916
|
SkipUntilSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
|
|
35859
35917
|
this.hasValue = true;
|
|
35918
|
+
this.innerSubscription.unsubscribe();
|
|
35860
35919
|
};
|
|
35861
35920
|
SkipUntilSubscriber.prototype.notifyComplete = function () {
|
|
35862
|
-
|
|
35863
|
-
if (this.isStopped) {
|
|
35864
|
-
_super.prototype._complete.call(this);
|
|
35865
|
-
}
|
|
35921
|
+
/* do nothing */
|
|
35866
35922
|
};
|
|
35867
35923
|
return SkipUntilSubscriber;
|
|
35868
35924
|
}(OuterSubscriber));
|
|
@@ -35973,15 +36029,18 @@ var SubscribeOnObservable = /** @class */ (function (_super) {
|
|
|
35973
36029
|
}
|
|
35974
36030
|
return _this;
|
|
35975
36031
|
}
|
|
36032
|
+
/** @nocollapse */
|
|
35976
36033
|
SubscribeOnObservable.create = function (source, delay, scheduler) {
|
|
35977
36034
|
if (delay === void 0) { delay = 0; }
|
|
35978
36035
|
if (scheduler === void 0) { scheduler = asap; }
|
|
35979
36036
|
return new SubscribeOnObservable(source, delay, scheduler);
|
|
35980
36037
|
};
|
|
36038
|
+
/** @nocollapse */
|
|
35981
36039
|
SubscribeOnObservable.dispatch = function (arg) {
|
|
35982
36040
|
var source = arg.source, subscriber = arg.subscriber;
|
|
35983
36041
|
return this.add(source.subscribe(subscriber));
|
|
35984
36042
|
};
|
|
36043
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
35985
36044
|
SubscribeOnObservable.prototype._subscribe = function (subscriber) {
|
|
35986
36045
|
var delay = this.delayTime;
|
|
35987
36046
|
var source = this.source;
|
|
@@ -36461,6 +36520,8 @@ var __extends$85 = (undefined && undefined.__extends) || (function () {
|
|
|
36461
36520
|
* internally by the optional `scheduler`.
|
|
36462
36521
|
* @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
|
|
36463
36522
|
* managing the timers that handle the throttling.
|
|
36523
|
+
* @param {Object} config a configuration object to define `leading` and
|
|
36524
|
+
* `trailing` behavior. Defaults to `{ leading: true, trailing: false }`.
|
|
36464
36525
|
* @return {Observable<T>} An Observable that performs the throttle operation to
|
|
36465
36526
|
* limit the rate of emissions from the source.
|
|
36466
36527
|
* @method throttleTime
|
|
@@ -36498,6 +36559,15 @@ var ThrottleTimeSubscriber = /** @class */ (function (_super) {
|
|
|
36498
36559
|
}
|
|
36499
36560
|
}
|
|
36500
36561
|
};
|
|
36562
|
+
ThrottleTimeSubscriber.prototype._complete = function () {
|
|
36563
|
+
if (this._hasTrailingValue) {
|
|
36564
|
+
this.destination.next(this._trailingValue);
|
|
36565
|
+
this.destination.complete();
|
|
36566
|
+
}
|
|
36567
|
+
else {
|
|
36568
|
+
this.destination.complete();
|
|
36569
|
+
}
|
|
36570
|
+
};
|
|
36501
36571
|
ThrottleTimeSubscriber.prototype.clearThrottle = function () {
|
|
36502
36572
|
var throttled = this.throttled;
|
|
36503
36573
|
if (throttled) {
|
|
@@ -36619,6 +36689,7 @@ var TimeoutWithSubscriber = /** @class */ (function (_super) {
|
|
|
36619
36689
|
}
|
|
36620
36690
|
_super.prototype._next.call(this, value);
|
|
36621
36691
|
};
|
|
36692
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
36622
36693
|
TimeoutWithSubscriber.prototype._unsubscribe = function () {
|
|
36623
36694
|
this.action = null;
|
|
36624
36695
|
this.scheduler = null;
|
|
@@ -36780,6 +36851,7 @@ var WindowSubscriber = /** @class */ (function (_super) {
|
|
|
36780
36851
|
this.window.complete();
|
|
36781
36852
|
this.destination.complete();
|
|
36782
36853
|
};
|
|
36854
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
36783
36855
|
WindowSubscriber.prototype._unsubscribe = function () {
|
|
36784
36856
|
this.window = null;
|
|
36785
36857
|
};
|
|
@@ -37148,6 +37220,7 @@ var WindowToggleSubscriber = /** @class */ (function (_super) {
|
|
|
37148
37220
|
}
|
|
37149
37221
|
_super.prototype._complete.call(this);
|
|
37150
37222
|
};
|
|
37223
|
+
/** @deprecated This is an internal implementation detail, do not use. */
|
|
37151
37224
|
WindowToggleSubscriber.prototype._unsubscribe = function () {
|
|
37152
37225
|
var contexts = this.contexts;
|
|
37153
37226
|
this.contexts = null;
|
|
@@ -37673,7 +37746,7 @@ function _throwError() {
|
|
|
37673
37746
|
* Each `@NgModule` provides an own `Compiler` to its injector,
|
|
37674
37747
|
* that will use the directives/pipes of the ng module for compilation
|
|
37675
37748
|
* of components.
|
|
37676
|
-
*
|
|
37749
|
+
*
|
|
37677
37750
|
*/
|
|
37678
37751
|
var Compiler = /** @class */ (function () {
|
|
37679
37752
|
function Compiler() {
|
|
@@ -37782,7 +37855,7 @@ var CompilerFactory = /** @class */ (function () {
|
|
|
37782
37855
|
* `ComponentRef` provides access to the Component Instance as well other objects related to this
|
|
37783
37856
|
* Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
|
|
37784
37857
|
* method.
|
|
37785
|
-
*
|
|
37858
|
+
*
|
|
37786
37859
|
*/
|
|
37787
37860
|
var ComponentRef = /** @class */ (function () {
|
|
37788
37861
|
function ComponentRef() {
|
|
@@ -37790,7 +37863,7 @@ var ComponentRef = /** @class */ (function () {
|
|
|
37790
37863
|
return ComponentRef;
|
|
37791
37864
|
}());
|
|
37792
37865
|
/**
|
|
37793
|
-
*
|
|
37866
|
+
*
|
|
37794
37867
|
*/
|
|
37795
37868
|
var ComponentFactory = /** @class */ (function () {
|
|
37796
37869
|
function ComponentFactory() {
|
|
@@ -37821,7 +37894,7 @@ var _NullComponentFactoryResolver = /** @class */ (function () {
|
|
|
37821
37894
|
return _NullComponentFactoryResolver;
|
|
37822
37895
|
}());
|
|
37823
37896
|
/**
|
|
37824
|
-
*
|
|
37897
|
+
*
|
|
37825
37898
|
*/
|
|
37826
37899
|
var ComponentFactoryResolver = /** @class */ (function () {
|
|
37827
37900
|
function ComponentFactoryResolver() {
|
|
@@ -37861,7 +37934,7 @@ var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
|
|
|
37861
37934
|
* `NgModuleRef` provides access to the NgModule Instance as well other objects related to this
|
|
37862
37935
|
* NgModule Instance.
|
|
37863
37936
|
*
|
|
37864
|
-
*
|
|
37937
|
+
*
|
|
37865
37938
|
*/
|
|
37866
37939
|
var NgModuleRef = /** @class */ (function () {
|
|
37867
37940
|
function NgModuleRef() {
|
|
@@ -38034,7 +38107,7 @@ var wtfLeave = wtfEnabled ? leave : function (s, r) { return r; };
|
|
|
38034
38107
|
* https://github.com/jhusain/observable-spec
|
|
38035
38108
|
*
|
|
38036
38109
|
* Once a reference implementation of the spec is available, switch to it.
|
|
38037
|
-
*
|
|
38110
|
+
*
|
|
38038
38111
|
*/
|
|
38039
38112
|
var EventEmitter = /** @class */ (function (_super) {
|
|
38040
38113
|
__extends(EventEmitter, _super);
|
|
@@ -38305,7 +38378,7 @@ var NgZone = /** @class */ (function () {
|
|
|
38305
38378
|
*/
|
|
38306
38379
|
function (fn, applyThis, applyArgs, name) {
|
|
38307
38380
|
var zone = this._inner;
|
|
38308
|
-
var task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop$
|
|
38381
|
+
var task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop$2, noop$2);
|
|
38309
38382
|
try {
|
|
38310
38383
|
return zone.runTask(task, applyThis, applyArgs);
|
|
38311
38384
|
}
|
|
@@ -38372,7 +38445,7 @@ var NgZone = /** @class */ (function () {
|
|
|
38372
38445
|
};
|
|
38373
38446
|
return NgZone;
|
|
38374
38447
|
}());
|
|
38375
|
-
function noop$
|
|
38448
|
+
function noop$2() { }
|
|
38376
38449
|
var EMPTY_PAYLOAD = {};
|
|
38377
38450
|
function checkStable(zone) {
|
|
38378
38451
|
if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {
|
|
@@ -38858,7 +38931,7 @@ var ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');
|
|
|
38858
38931
|
* does not result in additional changes to any bindings (also known as
|
|
38859
38932
|
* unidirectional data flow).
|
|
38860
38933
|
*
|
|
38861
|
-
*
|
|
38934
|
+
*
|
|
38862
38935
|
*/
|
|
38863
38936
|
|
|
38864
38937
|
/**
|
|
@@ -38950,7 +39023,7 @@ function getPlatform() {
|
|
|
38950
39023
|
* A page's platform is initialized implicitly when a platform is created via a platform factory
|
|
38951
39024
|
* (e.g. {@link platformBrowser}), or explicitly by calling the {@link createPlatform} function.
|
|
38952
39025
|
*
|
|
38953
|
-
*
|
|
39026
|
+
*
|
|
38954
39027
|
*/
|
|
38955
39028
|
var PlatformRef = /** @class */ (function () {
|
|
38956
39029
|
/** @internal */
|
|
@@ -39074,7 +39147,7 @@ var PlatformRef = /** @class */ (function () {
|
|
|
39074
39147
|
*
|
|
39075
39148
|
* let moduleRef = platformBrowser().bootstrapModule(MyModule);
|
|
39076
39149
|
* ```
|
|
39077
|
-
*
|
|
39150
|
+
*
|
|
39078
39151
|
*/
|
|
39079
39152
|
/**
|
|
39080
39153
|
* Creates an instance of an `@NgModule` for a given platform using the given runtime compiler.
|
|
@@ -39089,7 +39162,7 @@ var PlatformRef = /** @class */ (function () {
|
|
|
39089
39162
|
*
|
|
39090
39163
|
* let moduleRef = platformBrowser().bootstrapModule(MyModule);
|
|
39091
39164
|
* ```
|
|
39092
|
-
*
|
|
39165
|
+
*
|
|
39093
39166
|
*/
|
|
39094
39167
|
PlatformRef.prototype.bootstrapModule = /**
|
|
39095
39168
|
* Creates an instance of an `@NgModule` for a given platform using the given runtime compiler.
|
|
@@ -39104,7 +39177,7 @@ var PlatformRef = /** @class */ (function () {
|
|
|
39104
39177
|
*
|
|
39105
39178
|
* let moduleRef = platformBrowser().bootstrapModule(MyModule);
|
|
39106
39179
|
* ```
|
|
39107
|
-
*
|
|
39180
|
+
*
|
|
39108
39181
|
*/
|
|
39109
39182
|
function (moduleType, compilerOptions) {
|
|
39110
39183
|
var _this = this;
|
|
@@ -39224,7 +39297,7 @@ function optionsReducer(dst, objs) {
|
|
|
39224
39297
|
/**
|
|
39225
39298
|
* A reference to an Angular application running on a page.
|
|
39226
39299
|
*
|
|
39227
|
-
*
|
|
39300
|
+
*
|
|
39228
39301
|
*/
|
|
39229
39302
|
var ApplicationRef = /** @class */ (function () {
|
|
39230
39303
|
/** @internal */
|
|
@@ -39589,7 +39662,7 @@ var Renderer2 = /** @class */ (function () {
|
|
|
39589
39662
|
* XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the
|
|
39590
39663
|
* [Security Guide](http://g.co/ng/security).
|
|
39591
39664
|
*
|
|
39592
|
-
*
|
|
39665
|
+
*
|
|
39593
39666
|
*/
|
|
39594
39667
|
// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,
|
|
39595
39668
|
// i.e. users have to ask for what they need. With that, we can build better analysis tools
|
|
@@ -39610,7 +39683,7 @@ var ElementRef = /** @class */ (function () {
|
|
|
39610
39683
|
*/
|
|
39611
39684
|
/**
|
|
39612
39685
|
* Used to load ng module factories.
|
|
39613
|
-
*
|
|
39686
|
+
*
|
|
39614
39687
|
*/
|
|
39615
39688
|
/**
|
|
39616
39689
|
* Registers a loaded module. Should only be called from generated NgModuleFactory code.
|
|
@@ -39654,7 +39727,7 @@ var ElementRef = /** @class */ (function () {
|
|
|
39654
39727
|
* @ViewChildren(Item) items:QueryList<Item>;
|
|
39655
39728
|
* }
|
|
39656
39729
|
* ```
|
|
39657
|
-
*
|
|
39730
|
+
*
|
|
39658
39731
|
*/
|
|
39659
39732
|
var QueryList = /** @class */ (function () {
|
|
39660
39733
|
function QueryList() {
|
|
@@ -39805,7 +39878,7 @@ function flatten$2(list) {
|
|
|
39805
39878
|
*
|
|
39806
39879
|
* To instantiate Embedded Views based on a Template, use {@link ViewContainerRef#
|
|
39807
39880
|
* createEmbeddedView}, which will create the View and attach it to the View Container.
|
|
39808
|
-
*
|
|
39881
|
+
*
|
|
39809
39882
|
*/
|
|
39810
39883
|
var TemplateRef = /** @class */ (function () {
|
|
39811
39884
|
function TemplateRef() {
|
|
@@ -39836,7 +39909,7 @@ var TemplateRef = /** @class */ (function () {
|
|
|
39836
39909
|
*
|
|
39837
39910
|
* To access a `ViewContainerRef` of an Element, you can either place a {@link Directive} injected
|
|
39838
39911
|
* with `ViewContainerRef` on the Element, or you obtain it via a {@link ViewChild} query.
|
|
39839
|
-
*
|
|
39912
|
+
*
|
|
39840
39913
|
*/
|
|
39841
39914
|
var ViewContainerRef = /** @class */ (function () {
|
|
39842
39915
|
function ViewContainerRef() {
|
|
@@ -39852,7 +39925,7 @@ var ViewContainerRef = /** @class */ (function () {
|
|
|
39852
39925
|
* found in the LICENSE file at https://angular.io/license
|
|
39853
39926
|
*/
|
|
39854
39927
|
/**
|
|
39855
|
-
*
|
|
39928
|
+
*
|
|
39856
39929
|
*/
|
|
39857
39930
|
var ChangeDetectorRef = /** @class */ (function () {
|
|
39858
39931
|
function ChangeDetectorRef() {
|
|
@@ -39868,7 +39941,7 @@ var ChangeDetectorRef = /** @class */ (function () {
|
|
|
39868
39941
|
* found in the LICENSE file at https://angular.io/license
|
|
39869
39942
|
*/
|
|
39870
39943
|
/**
|
|
39871
|
-
*
|
|
39944
|
+
*
|
|
39872
39945
|
*/
|
|
39873
39946
|
var ViewRef = /** @class */ (function (_super) {
|
|
39874
39947
|
__extends(ViewRef, _super);
|
|
@@ -40171,7 +40244,7 @@ function devModeEqual(a, b) {
|
|
|
40171
40244
|
* return WrappedValue.wrap(this._latestValue); // this will force update
|
|
40172
40245
|
* }
|
|
40173
40246
|
* ```
|
|
40174
|
-
*
|
|
40247
|
+
*
|
|
40175
40248
|
*/
|
|
40176
40249
|
var WrappedValue = /** @class */ (function () {
|
|
40177
40250
|
function WrappedValue(value) {
|
|
@@ -40202,7 +40275,7 @@ var WrappedValue = /** @class */ (function () {
|
|
|
40202
40275
|
}());
|
|
40203
40276
|
/**
|
|
40204
40277
|
* Represents a basic change from a previous to a new value.
|
|
40205
|
-
*
|
|
40278
|
+
*
|
|
40206
40279
|
*/
|
|
40207
40280
|
var SimpleChange = /** @class */ (function () {
|
|
40208
40281
|
function SimpleChange(previousValue, currentValue, firstChange) {
|
|
@@ -40512,7 +40585,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40512
40585
|
this._movesHead = this._movesTail = null;
|
|
40513
40586
|
this._removalsHead = this._removalsTail = null;
|
|
40514
40587
|
this._identityChangesHead = this._identityChangesTail = null;
|
|
40515
|
-
//
|
|
40588
|
+
// TODO(vicb): when assert gets supported
|
|
40516
40589
|
// assert(!this.isDirty);
|
|
40517
40590
|
}
|
|
40518
40591
|
};
|
|
@@ -40763,12 +40836,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40763
40836
|
function (record, prevRecord, index) {
|
|
40764
40837
|
this._insertAfter(record, prevRecord, index);
|
|
40765
40838
|
if (this._additionsTail === null) {
|
|
40766
|
-
//
|
|
40839
|
+
// TODO(vicb):
|
|
40767
40840
|
// assert(this._additionsHead === null);
|
|
40768
40841
|
this._additionsTail = this._additionsHead = record;
|
|
40769
40842
|
}
|
|
40770
40843
|
else {
|
|
40771
|
-
//
|
|
40844
|
+
// TODO(vicb):
|
|
40772
40845
|
// assert(_additionsTail._nextAdded === null);
|
|
40773
40846
|
// assert(record._nextAdded === null);
|
|
40774
40847
|
this._additionsTail = this._additionsTail._nextAdded = record;
|
|
@@ -40779,12 +40852,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40779
40852
|
/** @internal */
|
|
40780
40853
|
DefaultIterableDiffer.prototype._insertAfter = /** @internal */
|
|
40781
40854
|
function (record, prevRecord, index) {
|
|
40782
|
-
//
|
|
40855
|
+
// TODO(vicb):
|
|
40783
40856
|
// assert(record != prevRecord);
|
|
40784
40857
|
// assert(record._next === null);
|
|
40785
40858
|
// assert(record._prev === null);
|
|
40786
40859
|
var next = prevRecord === null ? this._itHead : prevRecord._next;
|
|
40787
|
-
//
|
|
40860
|
+
// TODO(vicb):
|
|
40788
40861
|
// assert(next != record);
|
|
40789
40862
|
// assert(prevRecord != record);
|
|
40790
40863
|
record._next = next;
|
|
@@ -40823,7 +40896,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40823
40896
|
}
|
|
40824
40897
|
var prev = record._prev;
|
|
40825
40898
|
var next = record._next;
|
|
40826
|
-
//
|
|
40899
|
+
// TODO(vicb):
|
|
40827
40900
|
// assert((record._prev = null) === null);
|
|
40828
40901
|
// assert((record._next = null) === null);
|
|
40829
40902
|
if (prev === null) {
|
|
@@ -40844,18 +40917,18 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40844
40917
|
/** @internal */
|
|
40845
40918
|
DefaultIterableDiffer.prototype._addToMoves = /** @internal */
|
|
40846
40919
|
function (record, toIndex) {
|
|
40847
|
-
//
|
|
40920
|
+
// TODO(vicb):
|
|
40848
40921
|
// assert(record._nextMoved === null);
|
|
40849
40922
|
if (record.previousIndex === toIndex) {
|
|
40850
40923
|
return record;
|
|
40851
40924
|
}
|
|
40852
40925
|
if (this._movesTail === null) {
|
|
40853
|
-
//
|
|
40926
|
+
// TODO(vicb):
|
|
40854
40927
|
// assert(_movesHead === null);
|
|
40855
40928
|
this._movesTail = this._movesHead = record;
|
|
40856
40929
|
}
|
|
40857
40930
|
else {
|
|
40858
|
-
//
|
|
40931
|
+
// TODO(vicb):
|
|
40859
40932
|
// assert(_movesTail._nextMoved === null);
|
|
40860
40933
|
this._movesTail = this._movesTail._nextMoved = record;
|
|
40861
40934
|
}
|
|
@@ -40869,13 +40942,13 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40869
40942
|
record.currentIndex = null;
|
|
40870
40943
|
record._nextRemoved = null;
|
|
40871
40944
|
if (this._removalsTail === null) {
|
|
40872
|
-
//
|
|
40945
|
+
// TODO(vicb):
|
|
40873
40946
|
// assert(_removalsHead === null);
|
|
40874
40947
|
this._removalsTail = this._removalsHead = record;
|
|
40875
40948
|
record._prevRemoved = null;
|
|
40876
40949
|
}
|
|
40877
40950
|
else {
|
|
40878
|
-
//
|
|
40951
|
+
// TODO(vicb):
|
|
40879
40952
|
// assert(_removalsTail._nextRemoved === null);
|
|
40880
40953
|
// assert(record._nextRemoved === null);
|
|
40881
40954
|
record._prevRemoved = this._removalsTail;
|
|
@@ -40899,7 +40972,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
|
|
|
40899
40972
|
return DefaultIterableDiffer;
|
|
40900
40973
|
}());
|
|
40901
40974
|
/**
|
|
40902
|
-
*
|
|
40975
|
+
*
|
|
40903
40976
|
*/
|
|
40904
40977
|
var IterableChangeRecord_ = /** @class */ (function () {
|
|
40905
40978
|
function IterableChangeRecord_(item, trackById) {
|
|
@@ -40960,10 +41033,10 @@ var _DuplicateItemRecordList = /** @class */ (function () {
|
|
|
40960
41033
|
record._prevDup = null;
|
|
40961
41034
|
}
|
|
40962
41035
|
else {
|
|
40963
|
-
//
|
|
41036
|
+
// TODO(vicb):
|
|
40964
41037
|
// assert(record.item == _head.item ||
|
|
40965
41038
|
// record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
|
|
40966
|
-
//
|
|
41039
|
+
// TODO(vicb):
|
|
40967
41040
|
// assert(record.item == _head.item ||
|
|
40968
41041
|
// record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
|
|
40969
41042
|
this._tail._nextDup = record;
|
|
@@ -41005,7 +41078,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
|
|
|
41005
41078
|
* Returns whether the list of duplicates is empty.
|
|
41006
41079
|
*/
|
|
41007
41080
|
function (record) {
|
|
41008
|
-
//
|
|
41081
|
+
// TODO(vicb):
|
|
41009
41082
|
// assert(() {
|
|
41010
41083
|
// // verify that the record being removed is in the list.
|
|
41011
41084
|
// for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
|
|
@@ -41380,7 +41453,7 @@ var DefaultKeyValueDiffer = /** @class */ (function () {
|
|
|
41380
41453
|
return DefaultKeyValueDiffer;
|
|
41381
41454
|
}());
|
|
41382
41455
|
/**
|
|
41383
|
-
*
|
|
41456
|
+
*
|
|
41384
41457
|
*/
|
|
41385
41458
|
var KeyValueChangeRecord_ = /** @class */ (function () {
|
|
41386
41459
|
function KeyValueChangeRecord_(key) {
|
|
@@ -41412,7 +41485,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
|
|
|
41412
41485
|
*/
|
|
41413
41486
|
/**
|
|
41414
41487
|
* A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
|
|
41415
|
-
*
|
|
41488
|
+
*
|
|
41416
41489
|
*/
|
|
41417
41490
|
var IterableDiffers = /** @class */ (function () {
|
|
41418
41491
|
function IterableDiffers(factories) {
|
|
@@ -41507,6 +41580,10 @@ var IterableDiffers = /** @class */ (function () {
|
|
|
41507
41580
|
throw new Error("Cannot find a differ supporting object '" + iterable + "' of type '" + getTypeNameForDebugging(iterable) + "'");
|
|
41508
41581
|
}
|
|
41509
41582
|
};
|
|
41583
|
+
IterableDiffers.ngInjectableDef = defineInjectable({
|
|
41584
|
+
providedIn: 'root',
|
|
41585
|
+
factory: function () { return new IterableDiffers([new DefaultIterableDifferFactory()]); }
|
|
41586
|
+
});
|
|
41510
41587
|
return IterableDiffers;
|
|
41511
41588
|
}());
|
|
41512
41589
|
function getTypeNameForDebugging(type) {
|
|
@@ -41522,7 +41599,7 @@ function getTypeNameForDebugging(type) {
|
|
|
41522
41599
|
*/
|
|
41523
41600
|
/**
|
|
41524
41601
|
* A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
|
|
41525
|
-
*
|
|
41602
|
+
*
|
|
41526
41603
|
*/
|
|
41527
41604
|
var KeyValueDiffers = /** @class */ (function () {
|
|
41528
41605
|
function KeyValueDiffers(factories) {
|
|
@@ -42009,7 +42086,7 @@ var VALID_ATTRS = merge$2(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS);
|
|
|
42009
42086
|
*
|
|
42010
42087
|
* See DomSanitizer for more details on security in Angular applications.
|
|
42011
42088
|
*
|
|
42012
|
-
*
|
|
42089
|
+
*
|
|
42013
42090
|
*/
|
|
42014
42091
|
/**
|
|
42015
42092
|
* A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property
|
|
@@ -42018,7 +42095,7 @@ var VALID_ATTRS = merge$2(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS);
|
|
|
42018
42095
|
*
|
|
42019
42096
|
* See DomSanitizer for more details on security in Angular applications.
|
|
42020
42097
|
*
|
|
42021
|
-
*
|
|
42098
|
+
*
|
|
42022
42099
|
*/
|
|
42023
42100
|
var SecurityContext$1;
|
|
42024
42101
|
/**
|
|
@@ -42028,7 +42105,7 @@ var SecurityContext$1;
|
|
|
42028
42105
|
*
|
|
42029
42106
|
* See DomSanitizer for more details on security in Angular applications.
|
|
42030
42107
|
*
|
|
42031
|
-
*
|
|
42108
|
+
*
|
|
42032
42109
|
*/
|
|
42033
42110
|
(function (SecurityContext) {
|
|
42034
42111
|
SecurityContext[SecurityContext["NONE"] = 0] = "NONE";
|
|
@@ -42041,7 +42118,7 @@ var SecurityContext$1;
|
|
|
42041
42118
|
/**
|
|
42042
42119
|
* Sanitizer is used by the views to sanitize potentially dangerous values.
|
|
42043
42120
|
*
|
|
42044
|
-
*
|
|
42121
|
+
*
|
|
42045
42122
|
*/
|
|
42046
42123
|
var Sanitizer = /** @class */ (function () {
|
|
42047
42124
|
function Sanitizer() {
|
|
@@ -42629,7 +42706,10 @@ function initNgModule(data) {
|
|
|
42629
42706
|
for (var i = 0; i < def.providers.length; i++) {
|
|
42630
42707
|
var provDef = def.providers[i];
|
|
42631
42708
|
if (!(provDef.flags & 4096 /* LazyProvider */)) {
|
|
42632
|
-
|
|
42709
|
+
// Make sure the provider has not been already initialized outside this loop.
|
|
42710
|
+
if (providers[i] === undefined) {
|
|
42711
|
+
providers[i] = _createProviderInstance$1(data, provDef);
|
|
42712
|
+
}
|
|
42633
42713
|
}
|
|
42634
42714
|
}
|
|
42635
42715
|
}
|
|
@@ -43335,7 +43415,7 @@ var NgModuleRef_ = /** @class */ (function () {
|
|
|
43335
43415
|
if (notFoundValue === void 0) { notFoundValue = Injector.THROW_IF_NOT_FOUND; }
|
|
43336
43416
|
if (injectFlags === void 0) { injectFlags = 0 /* Default */; }
|
|
43337
43417
|
var flags = 0;
|
|
43338
|
-
if (injectFlags &
|
|
43418
|
+
if (injectFlags & 4 /* SkipSelf */) {
|
|
43339
43419
|
flags |= 1 /* SkipSelf */;
|
|
43340
43420
|
}
|
|
43341
43421
|
else if (injectFlags & 2 /* Self */) {
|
|
@@ -45513,6 +45593,11 @@ function assertLessThan(actual, expected, msg) {
|
|
|
45513
45593
|
throwError$1(msg);
|
|
45514
45594
|
}
|
|
45515
45595
|
}
|
|
45596
|
+
function assertGreaterThan(actual, expected, msg) {
|
|
45597
|
+
if (actual <= expected) {
|
|
45598
|
+
throwError$1(msg);
|
|
45599
|
+
}
|
|
45600
|
+
}
|
|
45516
45601
|
function assertNull(actual, msg) {
|
|
45517
45602
|
if (actual != null) {
|
|
45518
45603
|
throwError$1(msg);
|
|
@@ -45560,9 +45645,9 @@ function throwError$1(msg) {
|
|
|
45560
45645
|
* @param currentView The current view
|
|
45561
45646
|
*/
|
|
45562
45647
|
function executeInitHooks(currentView, tView, creationMode) {
|
|
45563
|
-
if (currentView.lifecycleStage === 1 /*
|
|
45648
|
+
if (currentView.lifecycleStage === 1 /* Init */) {
|
|
45564
45649
|
executeHooks((currentView.directives), tView.initHooks, tView.checkHooks, creationMode);
|
|
45565
|
-
currentView.lifecycleStage = 2 /*
|
|
45650
|
+
currentView.lifecycleStage = 2 /* AfterInit */;
|
|
45566
45651
|
}
|
|
45567
45652
|
}
|
|
45568
45653
|
/**
|
|
@@ -45701,6 +45786,60 @@ function isProceduralRenderer(renderer) {
|
|
|
45701
45786
|
// Note: This hack is necessary so we don't erroneously get a circular dependency
|
|
45702
45787
|
// failure based on types.
|
|
45703
45788
|
|
|
45789
|
+
/**
|
|
45790
|
+
* @license
|
|
45791
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
45792
|
+
*
|
|
45793
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
45794
|
+
* found in the LICENSE file at https://angular.io/license
|
|
45795
|
+
*/
|
|
45796
|
+
/**
|
|
45797
|
+
* Must use this method for CD (instead of === ) since NaN !== NaN
|
|
45798
|
+
*/
|
|
45799
|
+
|
|
45800
|
+
function stringify$2(value) {
|
|
45801
|
+
if (typeof value == 'function')
|
|
45802
|
+
return value.name || value;
|
|
45803
|
+
if (typeof value == 'string')
|
|
45804
|
+
return value;
|
|
45805
|
+
if (value == null)
|
|
45806
|
+
return '';
|
|
45807
|
+
return '' + value;
|
|
45808
|
+
}
|
|
45809
|
+
/**
|
|
45810
|
+
* Function that throws a "not implemented" error so it's clear certain
|
|
45811
|
+
* behaviors/methods aren't yet ready.
|
|
45812
|
+
*
|
|
45813
|
+
* @returns Not implemented error
|
|
45814
|
+
*/
|
|
45815
|
+
function notImplemented() {
|
|
45816
|
+
return new Error('NotImplemented');
|
|
45817
|
+
}
|
|
45818
|
+
/**
|
|
45819
|
+
* Flattens an array in non-recursive way. Input arrays are not modified.
|
|
45820
|
+
*/
|
|
45821
|
+
function flatten$3(list) {
|
|
45822
|
+
var result = [];
|
|
45823
|
+
var i = 0;
|
|
45824
|
+
while (i < list.length) {
|
|
45825
|
+
var item = list[i];
|
|
45826
|
+
if (Array.isArray(item)) {
|
|
45827
|
+
if (item.length > 0) {
|
|
45828
|
+
list = item.concat(list.slice(i + 1));
|
|
45829
|
+
i = 0;
|
|
45830
|
+
}
|
|
45831
|
+
else {
|
|
45832
|
+
i++;
|
|
45833
|
+
}
|
|
45834
|
+
}
|
|
45835
|
+
else {
|
|
45836
|
+
result.push(item);
|
|
45837
|
+
i++;
|
|
45838
|
+
}
|
|
45839
|
+
}
|
|
45840
|
+
return result;
|
|
45841
|
+
}
|
|
45842
|
+
|
|
45704
45843
|
/**
|
|
45705
45844
|
* @license
|
|
45706
45845
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -45831,6 +45970,10 @@ function findFirstRNode(rootNode) {
|
|
|
45831
45970
|
}
|
|
45832
45971
|
return null;
|
|
45833
45972
|
}
|
|
45973
|
+
function createTextNode(value, renderer) {
|
|
45974
|
+
return isProceduralRenderer(renderer) ? renderer.createText(stringify$2(value)) :
|
|
45975
|
+
renderer.createTextNode(stringify$2(value));
|
|
45976
|
+
}
|
|
45834
45977
|
function addRemoveViewFromContainer(container, rootNode, insertMode, beforeNode) {
|
|
45835
45978
|
ngDevMode && assertNodeType(container, 0 /* Container */);
|
|
45836
45979
|
ngDevMode && assertNodeType(rootNode, 2 /* View */);
|
|
@@ -45843,6 +45986,15 @@ function addRemoveViewFromContainer(container, rootNode, insertMode, beforeNode)
|
|
|
45843
45986
|
var renderer = container.view.renderer;
|
|
45844
45987
|
if (node.type === 3 /* Element */) {
|
|
45845
45988
|
if (insertMode) {
|
|
45989
|
+
if (!node.native) {
|
|
45990
|
+
// If the native element doesn't exist, this is a bound text node that hasn't yet been
|
|
45991
|
+
// created because update mode has not run (occurs when a bound text node is a root
|
|
45992
|
+
// node of a dynamically created view). See textBinding() in instructions for ctx.
|
|
45993
|
+
// If the native element doesn't exist, this is a bound text node that hasn't yet been
|
|
45994
|
+
// created because update mode has not run (occurs when a bound text node is a root
|
|
45995
|
+
// node of a dynamically created view). See textBinding() in instructions for ctx.
|
|
45996
|
+
node.native = createTextNode('', renderer);
|
|
45997
|
+
}
|
|
45846
45998
|
isProceduralRenderer(renderer) ?
|
|
45847
45999
|
renderer.insertBefore(parent, (node.native), beforeNode) :
|
|
45848
46000
|
parent.insertBefore((node.native), beforeNode, true);
|
|
@@ -45976,6 +46128,7 @@ function removeView(container, removeIndex) {
|
|
|
45976
46128
|
setViewNext(views[removeIndex - 1], viewNode.next);
|
|
45977
46129
|
}
|
|
45978
46130
|
views.splice(removeIndex, 1);
|
|
46131
|
+
viewNode.next = null;
|
|
45979
46132
|
destroyViewTree(viewNode.data);
|
|
45980
46133
|
addRemoveViewFromContainer(container, viewNode, false);
|
|
45981
46134
|
// Notify query that view has been removed
|
|
@@ -46131,52 +46284,6 @@ function executePipeOnDestroys(view) {
|
|
|
46131
46284
|
* to the raw (un-parsed) CSS selector instead of using standard selector matching logic.
|
|
46132
46285
|
*/
|
|
46133
46286
|
|
|
46134
|
-
/**
|
|
46135
|
-
* @license
|
|
46136
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
46137
|
-
*
|
|
46138
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
46139
|
-
* found in the LICENSE file at https://angular.io/license
|
|
46140
|
-
*/
|
|
46141
|
-
/**
|
|
46142
|
-
* Must use this method for CD (instead of === ) since NaN !== NaN
|
|
46143
|
-
*/
|
|
46144
|
-
|
|
46145
|
-
|
|
46146
|
-
/**
|
|
46147
|
-
* Function that throws a "not implemented" error so it's clear certain
|
|
46148
|
-
* behaviors/methods aren't yet ready.
|
|
46149
|
-
*
|
|
46150
|
-
* @returns Not implemented error
|
|
46151
|
-
*/
|
|
46152
|
-
function notImplemented() {
|
|
46153
|
-
return new Error('NotImplemented');
|
|
46154
|
-
}
|
|
46155
|
-
/**
|
|
46156
|
-
* Flattens an array in non-recursive way. Input arrays are not modified.
|
|
46157
|
-
*/
|
|
46158
|
-
function flatten$3(list) {
|
|
46159
|
-
var result = [];
|
|
46160
|
-
var i = 0;
|
|
46161
|
-
while (i < list.length) {
|
|
46162
|
-
var item = list[i];
|
|
46163
|
-
if (Array.isArray(item)) {
|
|
46164
|
-
if (item.length > 0) {
|
|
46165
|
-
list = item.concat(list.slice(i + 1));
|
|
46166
|
-
i = 0;
|
|
46167
|
-
}
|
|
46168
|
-
else {
|
|
46169
|
-
i++;
|
|
46170
|
-
}
|
|
46171
|
-
}
|
|
46172
|
-
else {
|
|
46173
|
-
result.push(item);
|
|
46174
|
-
i++;
|
|
46175
|
-
}
|
|
46176
|
-
}
|
|
46177
|
-
return result;
|
|
46178
|
-
}
|
|
46179
|
-
|
|
46180
46287
|
/** Called when directives inject each other (creating a circular dependency) */
|
|
46181
46288
|
|
|
46182
46289
|
/** Called when there are multiple component selectors that match a given node */
|
|
@@ -46279,10 +46386,6 @@ var data;
|
|
|
46279
46386
|
* unknown at compile-time and thus space cannot be reserved in data[].
|
|
46280
46387
|
*/
|
|
46281
46388
|
var directives;
|
|
46282
|
-
/**
|
|
46283
|
-
* Points to the next binding index to read or write to.
|
|
46284
|
-
*/
|
|
46285
|
-
var bindingIndex;
|
|
46286
46389
|
/**
|
|
46287
46390
|
* When a view is destroyed, listeners need to be released and outputs need to be
|
|
46288
46391
|
* unsubscribed. This cleanup array stores both listener data (in chunks of 4)
|
|
@@ -46325,12 +46428,14 @@ function enterView(newView, host) {
|
|
|
46325
46428
|
var oldView = currentView;
|
|
46326
46429
|
data = newView && newView.data;
|
|
46327
46430
|
directives = newView && newView.directives;
|
|
46328
|
-
bindingIndex = newView && newView.bindingStartIndex || 0;
|
|
46329
46431
|
tData = newView && newView.tView.data;
|
|
46330
46432
|
creationMode = newView && (newView.flags & 1 /* CreationMode */) === 1 /* CreationMode */;
|
|
46331
46433
|
firstTemplatePass = newView && newView.tView.firstTemplatePass;
|
|
46332
46434
|
cleanup = newView && newView.cleanup;
|
|
46333
46435
|
renderer = newView && newView.renderer;
|
|
46436
|
+
if (newView && newView.bindingIndex < 0) {
|
|
46437
|
+
newView.bindingIndex = newView.bindingStartIndex;
|
|
46438
|
+
}
|
|
46334
46439
|
if (host != null) {
|
|
46335
46440
|
previousOrParentNode = host;
|
|
46336
46441
|
isParent = true;
|
|
@@ -46349,7 +46454,8 @@ function leaveView(newView) {
|
|
|
46349
46454
|
}
|
|
46350
46455
|
// Views should be clean and in update mode after being checked, so these bits are cleared
|
|
46351
46456
|
currentView.flags &= ~(1 /* CreationMode */ | 4 /* Dirty */);
|
|
46352
|
-
currentView.lifecycleStage = 1 /*
|
|
46457
|
+
currentView.lifecycleStage = 1 /* Init */;
|
|
46458
|
+
currentView.bindingIndex = -1;
|
|
46353
46459
|
enterView(newView, null);
|
|
46354
46460
|
}
|
|
46355
46461
|
/** Refreshes directives in this view and triggers any init/content hooks. */
|
|
@@ -46403,12 +46509,14 @@ function createLView(viewId, renderer, tView, template, context, flags) {
|
|
|
46403
46509
|
child: null,
|
|
46404
46510
|
tail: null,
|
|
46405
46511
|
next: null,
|
|
46406
|
-
bindingStartIndex:
|
|
46512
|
+
bindingStartIndex: -1,
|
|
46513
|
+
bindingIndex: -1,
|
|
46407
46514
|
template: template,
|
|
46408
46515
|
context: context,
|
|
46409
46516
|
dynamicViewCount: 0,
|
|
46410
|
-
lifecycleStage: 1 /*
|
|
46517
|
+
lifecycleStage: 1 /* Init */,
|
|
46411
46518
|
queries: null,
|
|
46519
|
+
injector: currentView && currentView.injector,
|
|
46412
46520
|
};
|
|
46413
46521
|
return newView;
|
|
46414
46522
|
}
|
|
@@ -46493,25 +46601,22 @@ function createLNode(index, type, native, state) {
|
|
|
46493
46601
|
* @param pipes Pipe defs that should be used for matching
|
|
46494
46602
|
*/
|
|
46495
46603
|
|
|
46496
|
-
function renderEmbeddedTemplate(viewNode, template, context, renderer) {
|
|
46604
|
+
function renderEmbeddedTemplate(viewNode, template, context, renderer, directives, pipes) {
|
|
46497
46605
|
var _isParent = isParent;
|
|
46498
46606
|
var _previousOrParentNode = previousOrParentNode;
|
|
46499
46607
|
var oldView;
|
|
46500
46608
|
try {
|
|
46501
46609
|
isParent = true;
|
|
46502
46610
|
previousOrParentNode = (null);
|
|
46503
|
-
var
|
|
46611
|
+
var rf = 2;
|
|
46504
46612
|
if (viewNode == null) {
|
|
46505
|
-
|
|
46506
|
-
var directives_1 = currentView && currentView.tView.directiveRegistry;
|
|
46507
|
-
var pipes = currentView && currentView.tView.pipeRegistry;
|
|
46508
|
-
var tView = getOrCreateTView(template, directives_1, pipes);
|
|
46613
|
+
var tView = getOrCreateTView(template, directives || null, pipes || null);
|
|
46509
46614
|
var lView = createLView(-1, renderer, tView, template, context, 2 /* CheckAlways */);
|
|
46510
46615
|
viewNode = createLNode(null, 2 /* View */, null, lView);
|
|
46511
|
-
|
|
46616
|
+
rf = 1 /* Create */;
|
|
46512
46617
|
}
|
|
46513
46618
|
oldView = enterView(viewNode.data, viewNode);
|
|
46514
|
-
template(
|
|
46619
|
+
template(rf, context);
|
|
46515
46620
|
refreshDirectives();
|
|
46516
46621
|
refreshDynamicChildren();
|
|
46517
46622
|
}
|
|
@@ -46529,7 +46634,8 @@ function renderComponentOrTemplate(node, hostView, componentOrContext, template)
|
|
|
46529
46634
|
rendererFactory.begin();
|
|
46530
46635
|
}
|
|
46531
46636
|
if (template) {
|
|
46532
|
-
template((
|
|
46637
|
+
template(getRenderFlags(hostView), (componentOrContext));
|
|
46638
|
+
refreshDynamicChildren();
|
|
46533
46639
|
refreshDirectives();
|
|
46534
46640
|
}
|
|
46535
46641
|
else {
|
|
@@ -46547,6 +46653,19 @@ function renderComponentOrTemplate(node, hostView, componentOrContext, template)
|
|
|
46547
46653
|
leaveView(oldView);
|
|
46548
46654
|
}
|
|
46549
46655
|
}
|
|
46656
|
+
/**
|
|
46657
|
+
* This function returns the default configuration of rendering flags depending on when the
|
|
46658
|
+
* template is in creation mode or update mode. By default, the update block is run with the
|
|
46659
|
+
* creation block when the view is in creation mode. Otherwise, the update block is run
|
|
46660
|
+
* alone.
|
|
46661
|
+
*
|
|
46662
|
+
* Dynamically created views do NOT use this configuration (update block and create block are
|
|
46663
|
+
* always run separately).
|
|
46664
|
+
*/
|
|
46665
|
+
function getRenderFlags(view) {
|
|
46666
|
+
return view.flags & 1 /* CreationMode */ ? 1 /* Create */ | 2 /* Update */ :
|
|
46667
|
+
2 /* Update */;
|
|
46668
|
+
}
|
|
46550
46669
|
/**
|
|
46551
46670
|
* Create DOM element. The instruction must later be followed by `elementEnd()` call.
|
|
46552
46671
|
*
|
|
@@ -46754,6 +46873,7 @@ function refreshDynamicChildren() {
|
|
|
46754
46873
|
var container_1 = current;
|
|
46755
46874
|
for (var i = 0; i < container_1.views.length; i++) {
|
|
46756
46875
|
var view = container_1.views[i];
|
|
46876
|
+
// The directives and pipes are not needed here as an existing view is only being refreshed.
|
|
46757
46877
|
renderEmbeddedTemplate(view, (view.data.template), (view.data.context), renderer);
|
|
46758
46878
|
}
|
|
46759
46879
|
}
|
|
@@ -46953,7 +47073,7 @@ function detectChangesInternal(hostView, hostNode, def, component) {
|
|
|
46953
47073
|
var oldView = enterView(hostView, hostNode);
|
|
46954
47074
|
var template = def.template;
|
|
46955
47075
|
try {
|
|
46956
|
-
template(
|
|
47076
|
+
template(getRenderFlags(hostView), component);
|
|
46957
47077
|
refreshDirectives();
|
|
46958
47078
|
refreshDynamicChildren();
|
|
46959
47079
|
}
|
|
@@ -47726,31 +47846,6 @@ var EmbeddedViewRef$1 = /** @class */ (function (_super) {
|
|
|
47726
47846
|
* @param def The definition of the directive to be made public
|
|
47727
47847
|
*/
|
|
47728
47848
|
|
|
47729
|
-
/**
|
|
47730
|
-
* Searches for an instance of the given type up the injector tree and returns
|
|
47731
|
-
* that instance if found.
|
|
47732
|
-
*
|
|
47733
|
-
* If not found, it will propagate up to the next parent injector until the token
|
|
47734
|
-
* is found or the top is reached.
|
|
47735
|
-
*
|
|
47736
|
-
* Usage example (in factory function):
|
|
47737
|
-
*
|
|
47738
|
-
* class SomeDirective {
|
|
47739
|
-
* constructor(directive: DirectiveA) {}
|
|
47740
|
-
*
|
|
47741
|
-
* static ngDirectiveDef = defineDirective({
|
|
47742
|
-
* type: SomeDirective,
|
|
47743
|
-
* factory: () => new SomeDirective(directiveInject(DirectiveA))
|
|
47744
|
-
* });
|
|
47745
|
-
* }
|
|
47746
|
-
*
|
|
47747
|
-
* NOTE: use `directiveInject` with `@Directive`, `@Component`, and `@Pipe`. For
|
|
47748
|
-
* all other injection use `inject` which does not walk the DOM render tree.
|
|
47749
|
-
*
|
|
47750
|
-
* @param token The directive type to search for
|
|
47751
|
-
* @param flags Injection flags (e.g. CheckParent)
|
|
47752
|
-
* @returns The instance found
|
|
47753
|
-
*/
|
|
47754
47849
|
|
|
47755
47850
|
/**
|
|
47756
47851
|
* Creates an ElementRef and stores it on the injector.
|
|
@@ -47905,7 +48000,7 @@ var ViewContainerRef$1 = /** @class */ (function () {
|
|
|
47905
48000
|
};
|
|
47906
48001
|
ViewContainerRef.prototype.insert = function (viewRef, index) {
|
|
47907
48002
|
var lViewNode = viewRef._lViewNode;
|
|
47908
|
-
var adjustedIdx = this.
|
|
48003
|
+
var adjustedIdx = this._adjustIndex(index);
|
|
47909
48004
|
insertView(this._lContainerNode, lViewNode, adjustedIdx);
|
|
47910
48005
|
// invalidate cache of next sibling RNode (we do similar operation in the containerRefreshEnd
|
|
47911
48006
|
// instruction)
|
|
@@ -47925,23 +48020,33 @@ var ViewContainerRef$1 = /** @class */ (function () {
|
|
|
47925
48020
|
}
|
|
47926
48021
|
return viewRef;
|
|
47927
48022
|
};
|
|
47928
|
-
ViewContainerRef.prototype.move = function (viewRef,
|
|
47929
|
-
|
|
48023
|
+
ViewContainerRef.prototype.move = function (viewRef, newIndex) {
|
|
48024
|
+
var index = this.indexOf(viewRef);
|
|
48025
|
+
this.detach(index);
|
|
48026
|
+
this.insert(viewRef, this._adjustIndex(newIndex));
|
|
48027
|
+
return viewRef;
|
|
47930
48028
|
};
|
|
47931
|
-
ViewContainerRef.prototype.indexOf = function (viewRef) {
|
|
48029
|
+
ViewContainerRef.prototype.indexOf = function (viewRef) { return this._viewRefs.indexOf(viewRef); };
|
|
47932
48030
|
ViewContainerRef.prototype.remove = function (index) {
|
|
47933
|
-
|
|
48031
|
+
this.detach(index);
|
|
48032
|
+
// TODO(ml): proper destroy of the ViewRef, i.e. recursively destroy the LviewNode and its
|
|
48033
|
+
// children, delete DOM nodes and QueryList, trigger hooks (onDestroy), destroy the renderer,
|
|
48034
|
+
// detach projected nodes
|
|
48035
|
+
};
|
|
48036
|
+
ViewContainerRef.prototype.detach = function (index) {
|
|
48037
|
+
var adjustedIdx = this._adjustIndex(index, -1);
|
|
47934
48038
|
removeView(this._lContainerNode, adjustedIdx);
|
|
47935
|
-
this._viewRefs.splice(adjustedIdx, 1);
|
|
48039
|
+
return this._viewRefs.splice(adjustedIdx, 1)[0] || null;
|
|
47936
48040
|
};
|
|
47937
|
-
ViewContainerRef.prototype.
|
|
47938
|
-
|
|
48041
|
+
ViewContainerRef.prototype._adjustIndex = function (index, shift) {
|
|
48042
|
+
if (shift === void 0) { shift = 0; }
|
|
47939
48043
|
if (index == null) {
|
|
47940
|
-
|
|
48044
|
+
return this._lContainerNode.data.views.length + shift;
|
|
47941
48045
|
}
|
|
47942
|
-
|
|
48046
|
+
if (ngDevMode) {
|
|
48047
|
+
assertGreaterThan(index, -1, 'index must be positive');
|
|
47943
48048
|
// +1 because it's legal to insert at the end.
|
|
47944
|
-
|
|
48049
|
+
assertLessThan(index, this._lContainerNode.data.views.length + 1 + shift, 'index');
|
|
47945
48050
|
}
|
|
47946
48051
|
return index;
|
|
47947
48052
|
};
|
|
@@ -49567,9 +49672,9 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
49567
49672
|
* Entry point for all public APIs of the common package.
|
|
49568
49673
|
*/
|
|
49569
49674
|
/**
|
|
49570
|
-
*
|
|
49675
|
+
*
|
|
49571
49676
|
*/
|
|
49572
|
-
var VERSION$3 = new Version$1('6.0.0
|
|
49677
|
+
var VERSION$3 = new Version$1('6.0.0');
|
|
49573
49678
|
|
|
49574
49679
|
/**
|
|
49575
49680
|
* @license
|
|
@@ -49602,3 +49707,4 @@ exports.create = create;
|
|
|
49602
49707
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
49603
49708
|
|
|
49604
49709
|
});
|
|
49710
|
+
//# sourceMappingURL=language-service.umd.js.map
|