@coolon/angular-ui-powerups 1.1.0 → 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 +9 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +97 -56
- 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 +29 -28
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +27 -26
- 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 +6 -1
- 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/forms/checkbox-input/checkbox-input.component.js +35 -0
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -0
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -0
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/index.js +1 -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/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 +27 -26
- 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 +6 -1
- 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/forms/checkbox-input/checkbox-input.component.js +38 -0
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -0
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/index.js +1 -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/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 +48 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +51 -11
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +10 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/place/place-router.d.ts +3 -2
- package/package.json +2 -2
|
@@ -7,9 +7,10 @@ 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';
|
|
10
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, DelegatingFormValueModel, Command, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, Trace, MutableListModel, MutableValueModel, Guard, DebugContext, Binding,
|
|
13
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, DelegatingFormValueModel, Command, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, Trace, MutableListModel, MutableValueModel, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
13
14
|
import { PortalModule } from '@angular/cdk/portal';
|
|
14
15
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
15
16
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
@@ -424,6 +425,36 @@ AbstractInputComponent = __decorate([
|
|
|
424
425
|
__metadata("design:paramtypes", [])
|
|
425
426
|
], AbstractInputComponent);
|
|
426
427
|
|
|
428
|
+
let CheckboxInputComponent = class CheckboxInputComponent extends AbstractInputComponent {
|
|
429
|
+
constructor() {
|
|
430
|
+
super();
|
|
431
|
+
this.color = 'accent';
|
|
432
|
+
this.labelPosition = 'after';
|
|
433
|
+
}
|
|
434
|
+
ngOnInit() {
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
__decorate([
|
|
438
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
439
|
+
__metadata("design:type", Object)
|
|
440
|
+
], CheckboxInputComponent.prototype, "valueModel", void 0);
|
|
441
|
+
__decorate([
|
|
442
|
+
Input(),
|
|
443
|
+
__metadata("design:type", String)
|
|
444
|
+
], CheckboxInputComponent.prototype, "color", void 0);
|
|
445
|
+
__decorate([
|
|
446
|
+
Input(),
|
|
447
|
+
__metadata("design:type", String)
|
|
448
|
+
], CheckboxInputComponent.prototype, "labelPosition", void 0);
|
|
449
|
+
CheckboxInputComponent = __decorate([
|
|
450
|
+
Component({
|
|
451
|
+
selector: 'aup-checkbox-input',
|
|
452
|
+
template: "<mat-checkbox\n [(ngModel)]=\"valueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
|
|
453
|
+
styles: [":host{display:inline-flex;flex-direction:column;margin-top:24px;margin-bottom:16px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]
|
|
454
|
+
}),
|
|
455
|
+
__metadata("design:paramtypes", [])
|
|
456
|
+
], CheckboxInputComponent);
|
|
457
|
+
|
|
427
458
|
let NumberInputComponent = class NumberInputComponent extends AbstractInputComponent {
|
|
428
459
|
constructor() {
|
|
429
460
|
super();
|
|
@@ -432,7 +463,7 @@ let NumberInputComponent = class NumberInputComponent extends AbstractInputCompo
|
|
|
432
463
|
}
|
|
433
464
|
};
|
|
434
465
|
__decorate([
|
|
435
|
-
Input(), TrackExternal({ delegateTo:
|
|
466
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
436
467
|
__metadata("design:type", Object)
|
|
437
468
|
], NumberInputComponent.prototype, "valueModel", void 0);
|
|
438
469
|
NumberInputComponent = __decorate([
|
|
@@ -526,7 +557,7 @@ let StringInputComponent = class StringInputComponent extends AbstractInputCompo
|
|
|
526
557
|
}
|
|
527
558
|
};
|
|
528
559
|
__decorate([
|
|
529
|
-
Input(), TrackExternal({ delegateTo:
|
|
560
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
530
561
|
__metadata("design:type", Object)
|
|
531
562
|
], StringInputComponent.prototype, "valueModel", void 0);
|
|
532
563
|
__decorate([
|
|
@@ -699,6 +730,7 @@ ComponentsModule = __decorate([
|
|
|
699
730
|
StringInputComponent,
|
|
700
731
|
PasswordInputComponent,
|
|
701
732
|
SelectInputComponent,
|
|
733
|
+
CheckboxInputComponent,
|
|
702
734
|
ScrollContainerComponent,
|
|
703
735
|
NoopComponent,
|
|
704
736
|
AbstractInputComponent,
|
|
@@ -716,12 +748,14 @@ ComponentsModule = __decorate([
|
|
|
716
748
|
MatTabsModule,
|
|
717
749
|
DirectivesModule,
|
|
718
750
|
MatIconModule,
|
|
719
|
-
MatButtonModule
|
|
751
|
+
MatButtonModule,
|
|
752
|
+
MatCheckboxModule
|
|
720
753
|
],
|
|
721
754
|
exports: [
|
|
722
755
|
NumberInputComponent,
|
|
723
756
|
StringInputComponent,
|
|
724
757
|
PasswordInputComponent,
|
|
758
|
+
CheckboxInputComponent,
|
|
725
759
|
SelectInputComponent,
|
|
726
760
|
ScrollContainerComponent,
|
|
727
761
|
NoopComponent,
|
|
@@ -2809,7 +2843,7 @@ let PlaceRouter = class PlaceRouter extends GarbageCollector {
|
|
|
2809
2843
|
this.navigationSessionName = chain(this.navigationSessionModel)
|
|
2810
2844
|
.pluck('name')
|
|
2811
2845
|
.otherwise(idleStateName);
|
|
2812
|
-
DebugContext.tag(this._activeVisits,
|
|
2846
|
+
DebugContext.tag(this._activeVisits, 'PlaceRouter.activeVisits');
|
|
2813
2847
|
this.activeVisitsByPlaceDefinition = chain(this._activeVisits).indexBy('placeDefinition');
|
|
2814
2848
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
2815
2849
|
angularRouter.events.subscribe(event => {
|
|
@@ -3573,7 +3607,7 @@ let ResizeAwareComponent = class ResizeAwareComponent extends DisposableComponen
|
|
|
3573
3607
|
super();
|
|
3574
3608
|
this.elementRef = elementRef;
|
|
3575
3609
|
this.ngZone = ngZone;
|
|
3576
|
-
this._boundsModel = new
|
|
3610
|
+
this._boundsModel = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
3577
3611
|
}
|
|
3578
3612
|
ngAfterViewInit() {
|
|
3579
3613
|
this.updateBounds();
|
|
@@ -3982,7 +4016,10 @@ function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmp
|
|
|
3982
4016
|
mechanics.binding.dispose();
|
|
3983
4017
|
}
|
|
3984
4018
|
if (userModel) {
|
|
3985
|
-
mechanics.binding = new Binding(mechanics.backingModel, userModel
|
|
4019
|
+
mechanics.binding = new Binding(mechanics.backingModel, userModel, {
|
|
4020
|
+
toLeft: Functions.identity,
|
|
4021
|
+
toRight: Functions.identity
|
|
4022
|
+
});
|
|
3986
4023
|
if (isEmpty(userModel)) {
|
|
3987
4024
|
// console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});
|
|
3988
4025
|
mechanics.binding.writeRight(); // push the visit into the user model;
|
|
@@ -4001,7 +4038,7 @@ function RouteId(type, options) {
|
|
|
4001
4038
|
return (prototype, propertyKey) => {
|
|
4002
4039
|
const param = new ParameterDefinition.RouteId(propertyKey.toString(), options, type);
|
|
4003
4040
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4004
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4041
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@RouteId', m => m.query().isNil());
|
|
4005
4042
|
};
|
|
4006
4043
|
}
|
|
4007
4044
|
function VisitParameter(options) {
|
|
@@ -4009,7 +4046,7 @@ function VisitParameter(options) {
|
|
|
4009
4046
|
return (prototype, propertyKey) => {
|
|
4010
4047
|
const param = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4011
4048
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4012
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4049
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@VisitParameter', m => m.query().isNil());
|
|
4013
4050
|
};
|
|
4014
4051
|
}
|
|
4015
4052
|
function VisitParameterList(options) {
|
|
@@ -4017,7 +4054,7 @@ function VisitParameterList(options) {
|
|
|
4017
4054
|
return (prototype, propertyKey) => {
|
|
4018
4055
|
const param = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4019
4056
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4020
|
-
installMechanics(prototype, propertyKey, new MutableListModel(),
|
|
4057
|
+
installMechanics(prototype, propertyKey, new MutableListModel(), '@VisitParameterList', m => m.query().isEmpty());
|
|
4021
4058
|
};
|
|
4022
4059
|
}
|
|
4023
4060
|
|
|
@@ -4029,5 +4066,5 @@ function VisitParameterList(options) {
|
|
|
4029
4066
|
* Generated bundle index. Do not edit.
|
|
4030
4067
|
*/
|
|
4031
4068
|
|
|
4032
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, 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,
|
|
4069
|
+
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, InteractionService as ɵba, ModalInteractionContextFactory as ɵbb, UrlService as ɵbc, PlaceHistory as ɵbd, TabbedPlaceNavigationComponent as ɵbe, AbstractPlaceNavigationComponent as ɵbf, ListPlaceNavComponent as ɵbg, InteractionModule as ɵbh, ActivityContainerComponent as ɵbi, AbstractInteractionContext as ɵbj, ActivityOutletComponent as ɵbk, ConfirmationDialogComponent as ɵbl, ACTIVITY_DATA as ɵbm, Activity as ɵbn, ConfirmThenDialogComponent as ɵbp, AlertDialogComponent as ɵbq, InPlaceInteractionContextComponent as ɵbs, 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, PlaceModule as ɵr, EmptyStateComponent as ɵs, BusyOverlayComponent as ɵt, PlaceOutletComponent as ɵu, leftRightPlaceAnimation as ɵv, LEFT_RIGHT_PLACE_ANIMATION as ɵw, AUP_PLACE_CONFIG as ɵx, PlaceRouter as ɵz };
|
|
4033
4070
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|