@coolon/angular-ui-powerups 1.1.1 → 1.2.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/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +9 -6
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +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/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/lib/components/resize-aware.component.js +2 -2
- package/esm5/lib/components/resize-aware.component.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 +10 -7
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +10 -7
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/place-router.d.ts +3 -2
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
10
10
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
11
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
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, Trace, MutableListModel, MutableValueModel, Guard, DebugContext, Binding,
|
|
13
|
+
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, DelegatingFormValueModel, Command, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, Trace, 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';
|
|
@@ -3156,7 +3156,7 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
3156
3156
|
_this.navigationSessionName = chain(_this.navigationSessionModel)
|
|
3157
3157
|
.pluck('name')
|
|
3158
3158
|
.otherwise(idleStateName);
|
|
3159
|
-
DebugContext.tag(_this._activeVisits,
|
|
3159
|
+
DebugContext.tag(_this._activeVisits, 'PlaceRouter.activeVisits');
|
|
3160
3160
|
_this.activeVisitsByPlaceDefinition = chain(_this._activeVisits).indexBy('placeDefinition');
|
|
3161
3161
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
3162
3162
|
angularRouter.events.subscribe(function (event) {
|
|
@@ -3998,7 +3998,7 @@ var ResizeAwareComponent = /** @class */ (function (_super) {
|
|
|
3998
3998
|
var _this = _super.call(this) || this;
|
|
3999
3999
|
_this.elementRef = elementRef;
|
|
4000
4000
|
_this.ngZone = ngZone;
|
|
4001
|
-
_this._boundsModel = new
|
|
4001
|
+
_this._boundsModel = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
4002
4002
|
return _this;
|
|
4003
4003
|
}
|
|
4004
4004
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -4516,7 +4516,10 @@ function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmp
|
|
|
4516
4516
|
mechanics.binding.dispose();
|
|
4517
4517
|
}
|
|
4518
4518
|
if (userModel) {
|
|
4519
|
-
mechanics.binding = new Binding(mechanics.backingModel, userModel
|
|
4519
|
+
mechanics.binding = new Binding(mechanics.backingModel, userModel, {
|
|
4520
|
+
toLeft: Functions.identity,
|
|
4521
|
+
toRight: Functions.identity
|
|
4522
|
+
});
|
|
4520
4523
|
if (isEmpty(userModel)) {
|
|
4521
4524
|
// console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});
|
|
4522
4525
|
mechanics.binding.writeRight(); // push the visit into the user model;
|
|
@@ -4535,7 +4538,7 @@ function RouteId(type, options) {
|
|
|
4535
4538
|
return function (prototype, propertyKey) {
|
|
4536
4539
|
var param = new ParameterDefinition.RouteId(propertyKey.toString(), options, type);
|
|
4537
4540
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4538
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4541
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@RouteId', function (m) { return m.query().isNil(); });
|
|
4539
4542
|
};
|
|
4540
4543
|
}
|
|
4541
4544
|
function VisitParameter(options) {
|
|
@@ -4543,7 +4546,7 @@ function VisitParameter(options) {
|
|
|
4543
4546
|
return function (prototype, propertyKey) {
|
|
4544
4547
|
var param = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4545
4548
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4546
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4549
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@VisitParameter', function (m) { return m.query().isNil(); });
|
|
4547
4550
|
};
|
|
4548
4551
|
}
|
|
4549
4552
|
function VisitParameterList(options) {
|
|
@@ -4551,7 +4554,7 @@ function VisitParameterList(options) {
|
|
|
4551
4554
|
return function (prototype, propertyKey) {
|
|
4552
4555
|
var param = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4553
4556
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4554
|
-
installMechanics(prototype, propertyKey, new MutableListModel(),
|
|
4557
|
+
installMechanics(prototype, propertyKey, new MutableListModel(), '@VisitParameterList', function (m) { return m.query().isEmpty(); });
|
|
4555
4558
|
};
|
|
4556
4559
|
}
|
|
4557
4560
|
|