@coolon/angular-ui-powerups 1.6.1 → 1.8.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 +15 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +123 -55
- 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 +37 -36
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +35 -34
- 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 +3 -0
- 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/number-input/number-input.component.js +11 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +35 -0
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -0
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -0
- package/esm2015/lib/components/forms/text-input/text-input.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +1 -0
- 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/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +23 -6
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +35 -34
- 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 +3 -0
- 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/number-input/number-input.component.js +13 -2
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +38 -0
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -0
- package/esm5/lib/components/forms/text-input/text-input.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/index.js +1 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +27 -6
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +65 -7
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +74 -8
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/number-input/number-input.component.d.ts +2 -0
- package/lib/components/forms/text-input/text-input.component.d.ts +10 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ 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
|
-
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
|
8
|
+
import { MatTabsModule, MatTabGroup, MAT_TABS_CONFIG } from '@angular/material/tabs';
|
|
9
9
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
@@ -596,6 +596,8 @@ CheckboxInputComponent = __decorate([
|
|
|
596
596
|
let NumberInputComponent = class NumberInputComponent extends AbstractInputComponent {
|
|
597
597
|
constructor() {
|
|
598
598
|
super();
|
|
599
|
+
this.min = Number.MIN_SAFE_INTEGER;
|
|
600
|
+
this.max = Number.MAX_SAFE_INTEGER;
|
|
599
601
|
}
|
|
600
602
|
ngOnInit() {
|
|
601
603
|
}
|
|
@@ -604,10 +606,18 @@ __decorate([
|
|
|
604
606
|
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
605
607
|
__metadata("design:type", Object)
|
|
606
608
|
], NumberInputComponent.prototype, "valueModel", void 0);
|
|
609
|
+
__decorate([
|
|
610
|
+
Input(),
|
|
611
|
+
__metadata("design:type", Object)
|
|
612
|
+
], NumberInputComponent.prototype, "min", void 0);
|
|
613
|
+
__decorate([
|
|
614
|
+
Input(),
|
|
615
|
+
__metadata("design:type", Object)
|
|
616
|
+
], NumberInputComponent.prototype, "max", void 0);
|
|
607
617
|
NumberInputComponent = __decorate([
|
|
608
618
|
Component({
|
|
609
619
|
selector: 'aup-number-input',
|
|
610
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel?.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
620
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel?.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
611
621
|
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
|
|
612
622
|
}),
|
|
613
623
|
__metadata("design:paramtypes", [])
|
|
@@ -715,6 +725,36 @@ StringInputComponent = __decorate([
|
|
|
715
725
|
__metadata("design:paramtypes", [])
|
|
716
726
|
], StringInputComponent);
|
|
717
727
|
|
|
728
|
+
let TextInputComponent = class TextInputComponent extends AbstractInputComponent {
|
|
729
|
+
constructor() {
|
|
730
|
+
super();
|
|
731
|
+
this.rows = 2;
|
|
732
|
+
// const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
733
|
+
}
|
|
734
|
+
ngOnInit() {
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
__decorate([
|
|
738
|
+
Input(), TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
|
|
739
|
+
__metadata("design:type", Object)
|
|
740
|
+
], TextInputComponent.prototype, "valueModel", void 0);
|
|
741
|
+
__decorate([
|
|
742
|
+
Input(),
|
|
743
|
+
__metadata("design:type", Object)
|
|
744
|
+
], TextInputComponent.prototype, "rows", void 0);
|
|
745
|
+
__decorate([
|
|
746
|
+
Input(),
|
|
747
|
+
__metadata("design:type", Number)
|
|
748
|
+
], TextInputComponent.prototype, "cols", void 0);
|
|
749
|
+
TextInputComponent = __decorate([
|
|
750
|
+
Component({
|
|
751
|
+
selector: 'aup-text-input',
|
|
752
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
753
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
754
|
+
}),
|
|
755
|
+
__metadata("design:paramtypes", [])
|
|
756
|
+
], TextInputComponent);
|
|
757
|
+
|
|
718
758
|
let NoopComponent = class NoopComponent {
|
|
719
759
|
constructor() {
|
|
720
760
|
}
|
|
@@ -991,6 +1031,7 @@ ComponentsModule = __decorate([
|
|
|
991
1031
|
declarations: [
|
|
992
1032
|
NumberInputComponent,
|
|
993
1033
|
StringInputComponent,
|
|
1034
|
+
TextInputComponent,
|
|
994
1035
|
PasswordInputComponent,
|
|
995
1036
|
SelectInputComponent,
|
|
996
1037
|
CheckboxInputComponent,
|
|
@@ -1021,6 +1062,7 @@ ComponentsModule = __decorate([
|
|
|
1021
1062
|
exports: [
|
|
1022
1063
|
NumberInputComponent,
|
|
1023
1064
|
StringInputComponent,
|
|
1065
|
+
TextInputComponent,
|
|
1024
1066
|
PasswordInputComponent,
|
|
1025
1067
|
CheckboxInputComponent,
|
|
1026
1068
|
SelectInputComponent,
|
|
@@ -1662,9 +1704,19 @@ InteractionService = InteractionService_1 = __decorate([
|
|
|
1662
1704
|
})(InteractionService || (InteractionService = {}));
|
|
1663
1705
|
|
|
1664
1706
|
let InPlaceInteractionContextComponent = class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
1665
|
-
constructor(interactionService) {
|
|
1707
|
+
constructor(interactionService, tabConfig) {
|
|
1666
1708
|
super();
|
|
1667
1709
|
this.interactionService = interactionService;
|
|
1710
|
+
this.tabConfig = tabConfig;
|
|
1711
|
+
/**
|
|
1712
|
+
* If true then the first startActivity call will slide the activity into view. If false
|
|
1713
|
+
* the activity will replace the existing content immediately.
|
|
1714
|
+
*/
|
|
1715
|
+
this.animateFirstActivity = true;
|
|
1716
|
+
}
|
|
1717
|
+
get animationDuration() {
|
|
1718
|
+
var _a;
|
|
1719
|
+
return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : "0ms";
|
|
1668
1720
|
}
|
|
1669
1721
|
ngAfterViewInit() {
|
|
1670
1722
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
@@ -1698,19 +1750,25 @@ let InPlaceInteractionContextComponent = class InPlaceInteractionContextComponen
|
|
|
1698
1750
|
}
|
|
1699
1751
|
};
|
|
1700
1752
|
InPlaceInteractionContextComponent.ctorParameters = () => [
|
|
1701
|
-
{ type: InteractionService }
|
|
1753
|
+
{ type: InteractionService },
|
|
1754
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_TABS_CONFIG,] }, { type: Optional }] }
|
|
1702
1755
|
];
|
|
1703
1756
|
__decorate([
|
|
1704
1757
|
ViewChild('activityContainer', { static: true }),
|
|
1705
1758
|
__metadata("design:type", ActivityContainerComponent)
|
|
1706
1759
|
], InPlaceInteractionContextComponent.prototype, "activityContainerComponent", void 0);
|
|
1760
|
+
__decorate([
|
|
1761
|
+
Input(),
|
|
1762
|
+
__metadata("design:type", Object)
|
|
1763
|
+
], InPlaceInteractionContextComponent.prototype, "animateFirstActivity", void 0);
|
|
1707
1764
|
InPlaceInteractionContextComponent = __decorate([
|
|
1708
1765
|
Component({
|
|
1709
1766
|
selector: 'aup-in-place-interaction-context',
|
|
1710
|
-
template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
|
|
1767
|
+
template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\" [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
|
|
1711
1768
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
1712
1769
|
}),
|
|
1713
|
-
|
|
1770
|
+
__param(1, Inject(MAT_TABS_CONFIG)), __param(1, Optional()),
|
|
1771
|
+
__metadata("design:paramtypes", [InteractionService, Object])
|
|
1714
1772
|
], InPlaceInteractionContextComponent);
|
|
1715
1773
|
|
|
1716
1774
|
let InteractionModule = class InteractionModule {
|
|
@@ -4403,5 +4461,5 @@ function VisitParameterList(options) {
|
|
|
4403
4461
|
* Generated bundle index. Do not edit.
|
|
4404
4462
|
*/
|
|
4405
4463
|
|
|
4406
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CardContainerComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, 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, SidePlaceNavigationComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb,
|
|
4464
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CardContainerComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, 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, SidePlaceNavigationComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TextInputComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, PlaceOutletComponent as ɵba, leftRightPlaceAnimation as ɵbb, LEFT_RIGHT_PLACE_ANIMATION as ɵbc, AUP_PLACE_CONFIG as ɵbd, PlaceRouter as ɵbf, InteractionService as ɵbg, ModalInteractionContextFactory as ɵbh, UrlService as ɵbi, PlaceHistory as ɵbj, TabbedPlaceNavigationComponent as ɵbk, AbstractPlaceNavigationComponent as ɵbl, ListPlaceNavComponent as ɵbm, SidePlaceNavigationComponent as ɵbn, InteractionModule as ɵbo, ActivityContainerComponent as ɵbp, AbstractInteractionContext as ɵbq, ActivityOutletComponent as ɵbr, ConfirmationDialogComponent as ɵbs, ACTIVITY_DATA as ɵbt, Activity as ɵbu, ConfirmThenDialogComponent as ɵbw, AlertDialogComponent as ɵbx, InPlaceInteractionContextComponent as ɵbz, FocusBindingDirective as ɵc, DisposableComponent as ɵd, FocusBindingFactory as ɵe, ComponentsModule as ɵf, NumberInputComponent as ɵg, AbstractInputComponent as ɵh, StringInputComponent as ɵi, TextInputComponent as ɵj, PasswordInputComponent as ɵk, SelectInputComponent as ɵl, CheckboxInputComponent as ɵm, ScrollContainerComponent as ɵn, NoopComponent as ɵo, SwitchCaseOption as ɵp, SwitchCaseWhenDirective as ɵq, SwitchCaseDefaultDirective as ɵr, SwitchCaseComponent as ɵs, FocusContainerComponent as ɵt, VerticalFocusContainerComponent as ɵu, FocusableComponent as ɵv, CardContainerComponent as ɵw, PlaceModule as ɵx, EmptyStateComponent as ɵy, BusyOverlayComponent as ɵz };
|
|
4407
4465
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|