@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 { 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';
|
|
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';
|
|
@@ -469,6 +470,39 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
469
470
|
return AbstractInputComponent;
|
|
470
471
|
}(DisposableComponent));
|
|
471
472
|
|
|
473
|
+
var CheckboxInputComponent = /** @class */ (function (_super) {
|
|
474
|
+
__extends(CheckboxInputComponent, _super);
|
|
475
|
+
function CheckboxInputComponent() {
|
|
476
|
+
var _this = _super.call(this) || this;
|
|
477
|
+
_this.color = 'accent';
|
|
478
|
+
_this.labelPosition = 'after';
|
|
479
|
+
return _this;
|
|
480
|
+
}
|
|
481
|
+
CheckboxInputComponent.prototype.ngOnInit = function () {
|
|
482
|
+
};
|
|
483
|
+
__decorate([
|
|
484
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
485
|
+
__metadata("design:type", Object)
|
|
486
|
+
], CheckboxInputComponent.prototype, "valueModel", void 0);
|
|
487
|
+
__decorate([
|
|
488
|
+
Input(),
|
|
489
|
+
__metadata("design:type", String)
|
|
490
|
+
], CheckboxInputComponent.prototype, "color", void 0);
|
|
491
|
+
__decorate([
|
|
492
|
+
Input(),
|
|
493
|
+
__metadata("design:type", String)
|
|
494
|
+
], CheckboxInputComponent.prototype, "labelPosition", void 0);
|
|
495
|
+
CheckboxInputComponent = __decorate([
|
|
496
|
+
Component({
|
|
497
|
+
selector: 'aup-checkbox-input',
|
|
498
|
+
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",
|
|
499
|
+
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}"]
|
|
500
|
+
}),
|
|
501
|
+
__metadata("design:paramtypes", [])
|
|
502
|
+
], CheckboxInputComponent);
|
|
503
|
+
return CheckboxInputComponent;
|
|
504
|
+
}(AbstractInputComponent));
|
|
505
|
+
|
|
472
506
|
var NumberInputComponent = /** @class */ (function (_super) {
|
|
473
507
|
__extends(NumberInputComponent, _super);
|
|
474
508
|
function NumberInputComponent() {
|
|
@@ -477,7 +511,7 @@ var NumberInputComponent = /** @class */ (function (_super) {
|
|
|
477
511
|
NumberInputComponent.prototype.ngOnInit = function () {
|
|
478
512
|
};
|
|
479
513
|
__decorate([
|
|
480
|
-
Input(), TrackExternal({ delegateTo:
|
|
514
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
481
515
|
__metadata("design:type", Object)
|
|
482
516
|
], NumberInputComponent.prototype, "valueModel", void 0);
|
|
483
517
|
NumberInputComponent = __decorate([
|
|
@@ -579,7 +613,7 @@ var StringInputComponent = /** @class */ (function (_super) {
|
|
|
579
613
|
StringInputComponent.prototype.ngOnInit = function () {
|
|
580
614
|
};
|
|
581
615
|
__decorate([
|
|
582
|
-
Input(), TrackExternal({ delegateTo:
|
|
616
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
583
617
|
__metadata("design:type", Object)
|
|
584
618
|
], StringInputComponent.prototype, "valueModel", void 0);
|
|
585
619
|
__decorate([
|
|
@@ -777,6 +811,7 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
777
811
|
StringInputComponent,
|
|
778
812
|
PasswordInputComponent,
|
|
779
813
|
SelectInputComponent,
|
|
814
|
+
CheckboxInputComponent,
|
|
780
815
|
ScrollContainerComponent,
|
|
781
816
|
NoopComponent,
|
|
782
817
|
AbstractInputComponent,
|
|
@@ -794,12 +829,14 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
794
829
|
MatTabsModule,
|
|
795
830
|
DirectivesModule,
|
|
796
831
|
MatIconModule,
|
|
797
|
-
MatButtonModule
|
|
832
|
+
MatButtonModule,
|
|
833
|
+
MatCheckboxModule
|
|
798
834
|
],
|
|
799
835
|
exports: [
|
|
800
836
|
NumberInputComponent,
|
|
801
837
|
StringInputComponent,
|
|
802
838
|
PasswordInputComponent,
|
|
839
|
+
CheckboxInputComponent,
|
|
803
840
|
SelectInputComponent,
|
|
804
841
|
ScrollContainerComponent,
|
|
805
842
|
NoopComponent,
|
|
@@ -3119,7 +3156,7 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
3119
3156
|
_this.navigationSessionName = chain(_this.navigationSessionModel)
|
|
3120
3157
|
.pluck('name')
|
|
3121
3158
|
.otherwise(idleStateName);
|
|
3122
|
-
DebugContext.tag(_this._activeVisits,
|
|
3159
|
+
DebugContext.tag(_this._activeVisits, 'PlaceRouter.activeVisits');
|
|
3123
3160
|
_this.activeVisitsByPlaceDefinition = chain(_this._activeVisits).indexBy('placeDefinition');
|
|
3124
3161
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
3125
3162
|
angularRouter.events.subscribe(function (event) {
|
|
@@ -3961,7 +3998,7 @@ var ResizeAwareComponent = /** @class */ (function (_super) {
|
|
|
3961
3998
|
var _this = _super.call(this) || this;
|
|
3962
3999
|
_this.elementRef = elementRef;
|
|
3963
4000
|
_this.ngZone = ngZone;
|
|
3964
|
-
_this._boundsModel = new
|
|
4001
|
+
_this._boundsModel = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
3965
4002
|
return _this;
|
|
3966
4003
|
}
|
|
3967
4004
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -4479,7 +4516,10 @@ function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmp
|
|
|
4479
4516
|
mechanics.binding.dispose();
|
|
4480
4517
|
}
|
|
4481
4518
|
if (userModel) {
|
|
4482
|
-
mechanics.binding = new Binding(mechanics.backingModel, userModel
|
|
4519
|
+
mechanics.binding = new Binding(mechanics.backingModel, userModel, {
|
|
4520
|
+
toLeft: Functions.identity,
|
|
4521
|
+
toRight: Functions.identity
|
|
4522
|
+
});
|
|
4483
4523
|
if (isEmpty(userModel)) {
|
|
4484
4524
|
// console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});
|
|
4485
4525
|
mechanics.binding.writeRight(); // push the visit into the user model;
|
|
@@ -4498,7 +4538,7 @@ function RouteId(type, options) {
|
|
|
4498
4538
|
return function (prototype, propertyKey) {
|
|
4499
4539
|
var param = new ParameterDefinition.RouteId(propertyKey.toString(), options, type);
|
|
4500
4540
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4501
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4541
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@RouteId', function (m) { return m.query().isNil(); });
|
|
4502
4542
|
};
|
|
4503
4543
|
}
|
|
4504
4544
|
function VisitParameter(options) {
|
|
@@ -4506,7 +4546,7 @@ function VisitParameter(options) {
|
|
|
4506
4546
|
return function (prototype, propertyKey) {
|
|
4507
4547
|
var param = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4508
4548
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4509
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(),
|
|
4549
|
+
installMechanics(prototype, propertyKey, new MutableValueModel(), '@VisitParameter', function (m) { return m.query().isNil(); });
|
|
4510
4550
|
};
|
|
4511
4551
|
}
|
|
4512
4552
|
function VisitParameterList(options) {
|
|
@@ -4514,7 +4554,7 @@ function VisitParameterList(options) {
|
|
|
4514
4554
|
return function (prototype, propertyKey) {
|
|
4515
4555
|
var param = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
4516
4556
|
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
4517
|
-
installMechanics(prototype, propertyKey, new MutableListModel(),
|
|
4557
|
+
installMechanics(prototype, propertyKey, new MutableListModel(), '@VisitParameterList', function (m) { return m.query().isEmpty(); });
|
|
4518
4558
|
};
|
|
4519
4559
|
}
|
|
4520
4560
|
|
|
@@ -4526,5 +4566,5 @@ function VisitParameterList(options) {
|
|
|
4526
4566
|
* Generated bundle index. Do not edit.
|
|
4527
4567
|
*/
|
|
4528
4568
|
|
|
4529
|
-
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,
|
|
4569
|
+
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 };
|
|
4530
4570
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|