@coolon/angular-ui-powerups 1.1.1 → 1.2.1
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/CHANGELOG.md +9 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +270 -49
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +28 -25
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +26 -23
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.js +10 -4
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +41 -0
- package/esm2015/lib/components/focus-container/focus-container.component.js.map +1 -0
- package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -0
- package/esm2015/lib/components/focus-container/focus-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/focus-container/focus-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/focusable.component.js +59 -0
- package/esm2015/lib/components/focusable.component.js.map +1 -0
- package/esm2015/lib/components/focusable.component.metadata.json +1 -0
- package/esm2015/lib/components/focusable.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/index.js +2 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/resize-aware.component.js +2 -2
- package/esm2015/lib/components/resize-aware.component.js.map +1 -1
- package/esm2015/lib/directives/focus-binding.js +102 -0
- package/esm2015/lib/directives/focus-binding.js.map +1 -0
- package/esm2015/lib/directives/focus-binding.metadata.json +1 -0
- package/esm2015/lib/directives/index.js +1 -0
- package/esm2015/lib/directives/index.js.map +1 -1
- package/esm2015/lib/directives/index.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +1 -1
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js +8 -5
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
- package/esm5/coolon-angular-ui-powerups.js +26 -23
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/components.module.js +10 -4
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/focus-container/focus-container.component.js +42 -0
- package/esm5/lib/components/focus-container/focus-container.component.js.map +1 -0
- package/esm5/lib/components/focus-container/focus-container.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/focus-container/focus-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/focusable.component.js +70 -0
- package/esm5/lib/components/focusable.component.js.map +1 -0
- package/esm5/lib/components/focusable.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/index.js +2 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/resize-aware.component.js +2 -2
- package/esm5/lib/components/resize-aware.component.js.map +1 -1
- package/esm5/lib/directives/focus-binding.js +112 -0
- package/esm5/lib/directives/focus-binding.js.map +1 -0
- package/esm5/lib/directives/index.js +1 -0
- package/esm5/lib/directives/index.js.map +1 -1
- package/esm5/lib/place/place-router.js +1 -1
- package/esm5/lib/place/place-router.js.map +1 -1
- package/esm5/lib/place/route/parameter-decorators.js +8 -5
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +206 -12
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +228 -12
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/focus-container/focus-container.component.d.ts +9 -0
- package/lib/components/focusable.component.d.ts +14 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/directives/focus-binding.d.ts +25 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/place/place-router.d.ts +3 -2
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __extends, __decorate, __metadata, __param, __awaiter, __generator, __spread, __assign } from 'tslib';
|
|
2
2
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
3
|
-
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, NgModule,
|
|
3
|
+
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, NgModule, Host, HostBinding, Component, Injectable, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, ɵɵdefineInjectable, ɵɵinject, Optional, SkipSelf } from '@angular/core';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
7
7
|
import { MatSelectModule } from '@angular/material/select';
|
|
8
8
|
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
|
9
9
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
10
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
11
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
12
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
13
|
-
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, DelegatingFormValueModel, Command, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred,
|
|
13
|
+
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, FocusManager, Trace, DelegatingFormValueModel, Command, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, MutableListModel, MutableValueModel, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
14
14
|
import { PortalModule } from '@angular/cdk/portal';
|
|
15
15
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
16
16
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
@@ -307,6 +307,215 @@ var DirectivesModule = /** @class */ (function () {
|
|
|
307
307
|
return DirectivesModule;
|
|
308
308
|
}());
|
|
309
309
|
|
|
310
|
+
var FocusContainerComponent = /** @class */ (function () {
|
|
311
|
+
function FocusContainerComponent(focusManager) {
|
|
312
|
+
this.focusManager = focusManager;
|
|
313
|
+
this.tabIndex = -1;
|
|
314
|
+
}
|
|
315
|
+
FocusContainerComponent.prototype.ngOnInit = function () {
|
|
316
|
+
};
|
|
317
|
+
FocusContainerComponent.prototype.restoreFocus = function () {
|
|
318
|
+
this.focusManager.restoreFocus();
|
|
319
|
+
};
|
|
320
|
+
FocusContainerComponent.ctorParameters = function () { return [
|
|
321
|
+
{ type: FocusManager, decorators: [{ type: Host }] }
|
|
322
|
+
]; };
|
|
323
|
+
__decorate([
|
|
324
|
+
HostBinding("attr.tabindex"),
|
|
325
|
+
__metadata("design:type", Object)
|
|
326
|
+
], FocusContainerComponent.prototype, "tabIndex", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
Trace(),
|
|
329
|
+
__metadata("design:type", Function),
|
|
330
|
+
__metadata("design:paramtypes", []),
|
|
331
|
+
__metadata("design:returntype", void 0)
|
|
332
|
+
], FocusContainerComponent.prototype, "restoreFocus", null);
|
|
333
|
+
FocusContainerComponent = __decorate([
|
|
334
|
+
Component({
|
|
335
|
+
selector: 'aup-focus-container',
|
|
336
|
+
template: "<ng-content></ng-content>\n",
|
|
337
|
+
providers: [
|
|
338
|
+
{ provide: FocusManager }
|
|
339
|
+
],
|
|
340
|
+
styles: [":host{display:block}"]
|
|
341
|
+
}),
|
|
342
|
+
__param(0, Host()),
|
|
343
|
+
__metadata("design:paramtypes", [FocusManager])
|
|
344
|
+
], FocusContainerComponent);
|
|
345
|
+
return FocusContainerComponent;
|
|
346
|
+
}());
|
|
347
|
+
|
|
348
|
+
var FocusBinding = /** @class */ (function (_super) {
|
|
349
|
+
__extends(FocusBinding, _super);
|
|
350
|
+
function FocusBinding(focusTargetElement, ngZone, document, focusContext) {
|
|
351
|
+
var _this = _super.call(this) || this;
|
|
352
|
+
_this.focusTargetElement = focusTargetElement;
|
|
353
|
+
_this.ngZone = ngZone;
|
|
354
|
+
_this.focusContext = focusContext;
|
|
355
|
+
// @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
|
|
356
|
+
_this.document = document;
|
|
357
|
+
// TODO: Make this also track the current enabled/disabled state.
|
|
358
|
+
var when = Dsl.disposeWith(_this).when;
|
|
359
|
+
when.valueOf(_this.focusContext.focused).changes(function (focused) {
|
|
360
|
+
if (focused && !_this.alreadyHasFocus()) {
|
|
361
|
+
_this.tryAndFocus();
|
|
362
|
+
}
|
|
363
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
364
|
+
return _this;
|
|
365
|
+
}
|
|
366
|
+
FocusBinding.prototype.onFocusIn = function () {
|
|
367
|
+
this.focusContext.notifyFocusIn();
|
|
368
|
+
};
|
|
369
|
+
FocusBinding.prototype.onFocusOut = function () {
|
|
370
|
+
this.focusContext.notifyFocusOut();
|
|
371
|
+
};
|
|
372
|
+
// Hook method for debugging via tracing.
|
|
373
|
+
FocusBinding.prototype.alreadyHasFocus = function () {
|
|
374
|
+
return this.isElementFocused(this.focusTarget);
|
|
375
|
+
};
|
|
376
|
+
// Hook method for debugging via tracing.
|
|
377
|
+
FocusBinding.prototype.isElementFocused = function (element) {
|
|
378
|
+
return this.document.activeElement === element;
|
|
379
|
+
};
|
|
380
|
+
FocusBinding.prototype.tryAndFocus = function (retries) {
|
|
381
|
+
var _this = this;
|
|
382
|
+
if (retries === void 0) { retries = 5; }
|
|
383
|
+
if (this.modelShouldStillHaveFocus() && this.canFocus()) {
|
|
384
|
+
if (!this.alreadyHasFocus()) {
|
|
385
|
+
this.focusTarget.focus();
|
|
386
|
+
}
|
|
387
|
+
// if we didn't get the focus we try again later.
|
|
388
|
+
if (!this.alreadyHasFocus()) {
|
|
389
|
+
Logger.get(this).log("focus failed, trying " + retries + " more times");
|
|
390
|
+
if (retries > 0) {
|
|
391
|
+
// try again on the next paint
|
|
392
|
+
// TODO: is there an angular way of doing this without calling a window function.
|
|
393
|
+
requestAnimationFrame(function () {
|
|
394
|
+
_this.tryAndFocus(retries - 1);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.");
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
Object.defineProperty(FocusBinding.prototype, "focusTarget", {
|
|
404
|
+
get: function () {
|
|
405
|
+
return this.focusTargetElement;
|
|
406
|
+
},
|
|
407
|
+
enumerable: true,
|
|
408
|
+
configurable: true
|
|
409
|
+
});
|
|
410
|
+
// Hook method for debugging via tracing.
|
|
411
|
+
FocusBinding.prototype.modelShouldStillHaveFocus = function () {
|
|
412
|
+
return this.focusContext.focused.value;
|
|
413
|
+
};
|
|
414
|
+
// Hook method for debugging via tracing.
|
|
415
|
+
FocusBinding.prototype.canFocus = function () {
|
|
416
|
+
var dimension = this.focusTarget.getBoundingClientRect();
|
|
417
|
+
var hasSize = dimension.height >= 0 && dimension.height >= 0;
|
|
418
|
+
// tslint:disable-next-line:no-string-literal
|
|
419
|
+
return hasSize && !this.focusTarget['disabled'];
|
|
420
|
+
};
|
|
421
|
+
FocusBinding = __decorate([
|
|
422
|
+
__param(1, Inject(NgZone)),
|
|
423
|
+
__param(2, Inject(DOCUMENT)),
|
|
424
|
+
__metadata("design:paramtypes", [HTMLElement,
|
|
425
|
+
NgZone, Object, Object])
|
|
426
|
+
], FocusBinding);
|
|
427
|
+
return FocusBinding;
|
|
428
|
+
}(GarbageCollector));
|
|
429
|
+
(function (FocusBinding) {
|
|
430
|
+
var Factory = /** @class */ (function () {
|
|
431
|
+
function Factory(ngZone, document) {
|
|
432
|
+
this.ngZone = ngZone;
|
|
433
|
+
// @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
|
|
434
|
+
this.document = document;
|
|
435
|
+
}
|
|
436
|
+
Factory.prototype.createBinding = function (el, focusContext) {
|
|
437
|
+
return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
|
|
438
|
+
};
|
|
439
|
+
Factory.ctorParameters = function () { return [
|
|
440
|
+
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
441
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
442
|
+
]; };
|
|
443
|
+
Factory = __decorate([
|
|
444
|
+
Injectable({
|
|
445
|
+
providedIn: 'root'
|
|
446
|
+
}),
|
|
447
|
+
__param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
|
|
448
|
+
__metadata("design:paramtypes", [NgZone, Object])
|
|
449
|
+
], Factory);
|
|
450
|
+
return Factory;
|
|
451
|
+
}());
|
|
452
|
+
FocusBinding.Factory = Factory;
|
|
453
|
+
})(FocusBinding || (FocusBinding = {}));
|
|
454
|
+
|
|
455
|
+
var FocusableComponent = /** @class */ (function (_super) {
|
|
456
|
+
__extends(FocusableComponent, _super);
|
|
457
|
+
function FocusableComponent(el, focusManager, focusBindingFactory) {
|
|
458
|
+
var _this = _super.call(this) || this;
|
|
459
|
+
_this.el = el;
|
|
460
|
+
_this.focusManager = focusManager;
|
|
461
|
+
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
462
|
+
if (_this.focusManager) {
|
|
463
|
+
_this._focusContext = _this.focusManager.registerFocusable(_this);
|
|
464
|
+
_this.registerDisposable(focusBindingFactory.createBinding(el, _this.focusContext));
|
|
465
|
+
}
|
|
466
|
+
return _this;
|
|
467
|
+
}
|
|
468
|
+
Object.defineProperty(FocusableComponent.prototype, "focusable", {
|
|
469
|
+
get: function () {
|
|
470
|
+
return !!this.focusContext ? 0 : undefined;
|
|
471
|
+
},
|
|
472
|
+
enumerable: true,
|
|
473
|
+
configurable: true
|
|
474
|
+
});
|
|
475
|
+
FocusableComponent.prototype.onFocus = function () {
|
|
476
|
+
var _a;
|
|
477
|
+
(_a = this.focusContext) === null || _a === void 0 ? void 0 : _a.notifyFocusIn();
|
|
478
|
+
};
|
|
479
|
+
FocusableComponent.prototype.onBlur = function () {
|
|
480
|
+
var _a;
|
|
481
|
+
(_a = this.focusContext) === null || _a === void 0 ? void 0 : _a.notifyFocusOut();
|
|
482
|
+
};
|
|
483
|
+
Object.defineProperty(FocusableComponent.prototype, "focusContext", {
|
|
484
|
+
get: function () {
|
|
485
|
+
return this._focusContext;
|
|
486
|
+
},
|
|
487
|
+
enumerable: true,
|
|
488
|
+
configurable: true
|
|
489
|
+
});
|
|
490
|
+
FocusableComponent.ctorParameters = function () { return [
|
|
491
|
+
{ type: ElementRef },
|
|
492
|
+
{ type: FocusManager },
|
|
493
|
+
{ type: FocusBinding.Factory }
|
|
494
|
+
]; };
|
|
495
|
+
__decorate([
|
|
496
|
+
HostBinding('attr.tabindex'),
|
|
497
|
+
__metadata("design:type", Object),
|
|
498
|
+
__metadata("design:paramtypes", [])
|
|
499
|
+
], FocusableComponent.prototype, "focusable", null);
|
|
500
|
+
__decorate([
|
|
501
|
+
HostListener('focus'),
|
|
502
|
+
__metadata("design:type", Function),
|
|
503
|
+
__metadata("design:paramtypes", []),
|
|
504
|
+
__metadata("design:returntype", void 0)
|
|
505
|
+
], FocusableComponent.prototype, "onFocus", null);
|
|
506
|
+
__decorate([
|
|
507
|
+
HostListener('blur'),
|
|
508
|
+
__metadata("design:type", Function),
|
|
509
|
+
__metadata("design:paramtypes", []),
|
|
510
|
+
__metadata("design:returntype", void 0)
|
|
511
|
+
], FocusableComponent.prototype, "onBlur", null);
|
|
512
|
+
FocusableComponent = __decorate([
|
|
513
|
+
Component({ template: '' }),
|
|
514
|
+
__metadata("design:paramtypes", [ElementRef, FocusManager, FocusBinding.Factory])
|
|
515
|
+
], FocusableComponent);
|
|
516
|
+
return FocusableComponent;
|
|
517
|
+
}(DisposableComponent));
|
|
518
|
+
|
|
310
519
|
var AbstractInputComponent = /** @class */ (function (_super) {
|
|
311
520
|
__extends(AbstractInputComponent, _super);
|
|
312
521
|
function AbstractInputComponent() {
|
|
@@ -817,7 +1026,9 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
817
1026
|
AbstractInputComponent,
|
|
818
1027
|
SwitchCaseComponent,
|
|
819
1028
|
SwitchCaseWhenDirective,
|
|
820
|
-
SwitchCaseDefaultDirective
|
|
1029
|
+
SwitchCaseDefaultDirective,
|
|
1030
|
+
FocusContainerComponent,
|
|
1031
|
+
FocusableComponent
|
|
821
1032
|
],
|
|
822
1033
|
imports: [
|
|
823
1034
|
CommonModule,
|
|
@@ -842,7 +1053,9 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
842
1053
|
NoopComponent,
|
|
843
1054
|
SwitchCaseComponent,
|
|
844
1055
|
SwitchCaseWhenDirective,
|
|
845
|
-
SwitchCaseDefaultDirective
|
|
1056
|
+
SwitchCaseDefaultDirective,
|
|
1057
|
+
FocusContainerComponent,
|
|
1058
|
+
FocusableComponent
|
|
846
1059
|
]
|
|
847
1060
|
})
|
|
848
1061
|
], ComponentsModule);
|
|
@@ -3156,7 +3369,7 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
3156
3369
|
_this.navigationSessionName = chain(_this.navigationSessionModel)
|
|
3157
3370
|
.pluck('name')
|
|
3158
3371
|
.otherwise(idleStateName);
|
|
3159
|
-
DebugContext.tag(_this._activeVisits,
|
|
3372
|
+
DebugContext.tag(_this._activeVisits, 'PlaceRouter.activeVisits');
|
|
3160
3373
|
_this.activeVisitsByPlaceDefinition = chain(_this._activeVisits).indexBy('placeDefinition');
|
|
3161
3374
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
3162
3375
|
angularRouter.events.subscribe(function (event) {
|
|
@@ -3998,7 +4211,7 @@ var ResizeAwareComponent = /** @class */ (function (_super) {
|
|
|
3998
4211
|
var _this = _super.call(this) || this;
|
|
3999
4212
|
_this.elementRef = elementRef;
|
|
4000
4213
|
_this.ngZone = ngZone;
|
|
4001
|
-
_this._boundsModel = new
|
|
4214
|
+
_this._boundsModel = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
4002
4215
|
return _this;
|
|
4003
4216
|
}
|
|
4004
4217
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -4516,7 +4729,10 @@ function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmp
|
|
|
4516
4729
|
mechanics.binding.dispose();
|
|
4517
4730
|
}
|
|
4518
4731
|
if (userModel) {
|
|
4519
|
-
mechanics.binding = new Binding(mechanics.backingModel, userModel
|
|
4732
|
+
mechanics.binding = new Binding(mechanics.backingModel, userModel, {
|
|
4733
|
+
toLeft: Functions.identity,
|
|
4734
|
+
toRight: Functions.identity
|
|
4735
|
+
});
|
|
4520
4736
|
if (isEmpty(userModel)) {
|
|
4521
4737
|
// console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});
|
|
4522
4738
|
mechanics.binding.writeRight(); // push the visit into the user model;
|
|
@@ -4535,7 +4751,7 @@ function RouteId(type, options) {
|
|
|
4535
4751
|
return function (prototype, propertyKey) {
|
|
4536
4752
|
var param = new ParameterDefinition.RouteId(propertyKey.toString(), options, type);
|
|
4537
4753
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4538
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4754
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@RouteId', function (m) { return m.query().isNil(); });
|
|
4539
4755
|
};
|
|
4540
4756
|
}
|
|
4541
4757
|
function VisitParameter(options) {
|
|
@@ -4543,7 +4759,7 @@ function VisitParameter(options) {
|
|
|
4543
4759
|
return function (prototype, propertyKey) {
|
|
4544
4760
|
var param = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4545
4761
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4546
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4762
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@VisitParameter', function (m) { return m.query().isNil(); });
|
|
4547
4763
|
};
|
|
4548
4764
|
}
|
|
4549
4765
|
function VisitParameterList(options) {
|
|
@@ -4551,7 +4767,7 @@ function VisitParameterList(options) {
|
|
|
4551
4767
|
return function (prototype, propertyKey) {
|
|
4552
4768
|
var param = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4553
4769
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4554
|
-
installMechanics(prototype, propertyKey, new MutableListModel(),
|
|
4770
|
+
installMechanics(prototype, propertyKey, new MutableListModel(), '@VisitParameterList', function (m) { return m.query().isEmpty(); });
|
|
4555
4771
|
};
|
|
4556
4772
|
}
|
|
4557
4773
|
|
|
@@ -4563,5 +4779,5 @@ function VisitParameterList(options) {
|
|
|
4563
4779
|
* Generated bundle index. Do not edit.
|
|
4564
4780
|
*/
|
|
4565
4781
|
|
|
4566
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBindingDirective, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb,
|
|
4782
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, AUP_PLACE_CONFIG as ɵba, PlaceRouter as ɵbc, InteractionService as ɵbd, ModalInteractionContextFactory as ɵbe, UrlService as ɵbf, PlaceHistory as ɵbg, TabbedPlaceNavigationComponent as ɵbh, AbstractPlaceNavigationComponent as ɵbi, ListPlaceNavComponent as ɵbj, InteractionModule as ɵbk, ActivityContainerComponent as ɵbl, AbstractInteractionContext as ɵbm, ActivityOutletComponent as ɵbn, ConfirmationDialogComponent as ɵbo, ACTIVITY_DATA as ɵbp, Activity as ɵbq, ConfirmThenDialogComponent as ɵbs, AlertDialogComponent as ɵbt, InPlaceInteractionContextComponent as ɵbv, FocusBindingDirective as ɵc, DisposableComponent as ɵd, ComponentsModule as ɵe, NumberInputComponent as ɵf, AbstractInputComponent as ɵg, StringInputComponent as ɵh, PasswordInputComponent as ɵi, SelectInputComponent as ɵj, CheckboxInputComponent as ɵk, ScrollContainerComponent as ɵl, NoopComponent as ɵm, SwitchCaseOption as ɵn, SwitchCaseWhenDirective as ɵo, SwitchCaseDefaultDirective as ɵp, SwitchCaseComponent as ɵq, FocusContainerComponent as ɵr, FocusableComponent as ɵs, FocusBinding as ɵt, PlaceModule as ɵu, EmptyStateComponent as ɵv, BusyOverlayComponent as ɵw, PlaceOutletComponent as ɵx, leftRightPlaceAnimation as ɵy, LEFT_RIGHT_PLACE_ANIMATION as ɵz };
|
|
4567
4783
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|