@coolon/angular-ui-powerups 1.6.1 → 1.7.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +101 -53
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +37 -36
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +35 -34
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  12. package/esm2015/lib/components/components.module.js +3 -0
  13. package/esm2015/lib/components/components.module.js.map +1 -1
  14. package/esm2015/lib/components/components.module.metadata.json +1 -1
  15. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  16. package/esm2015/lib/components/forms/number-input/number-input.component.js +11 -1
  17. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  18. package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
  19. package/esm2015/lib/components/forms/text-input/text-input.component.js +35 -0
  20. package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -0
  21. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -0
  22. package/esm2015/lib/components/forms/text-input/text-input.component.ngfactory.js.map +1 -0
  23. package/esm2015/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +1 -0
  24. package/esm2015/lib/components/index.js +1 -0
  25. package/esm2015/lib/components/index.js.map +1 -1
  26. package/esm2015/lib/components/index.metadata.json +1 -1
  27. package/esm5/coolon-angular-ui-powerups.js +35 -34
  28. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  29. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  30. package/esm5/lib/components/components.module.js +3 -0
  31. package/esm5/lib/components/components.module.js.map +1 -1
  32. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  33. package/esm5/lib/components/forms/number-input/number-input.component.js +13 -2
  34. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  35. package/esm5/lib/components/forms/text-input/text-input.component.js +38 -0
  36. package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -0
  37. package/esm5/lib/components/forms/text-input/text-input.component.ngfactory.js.map +1 -0
  38. package/esm5/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +1 -0
  39. package/esm5/lib/components/index.js +1 -0
  40. package/esm5/lib/components/index.js.map +1 -1
  41. package/fesm2015/coolon-angular-ui-powerups.js +44 -2
  42. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  43. package/fesm5/coolon-angular-ui-powerups.js +49 -3
  44. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  45. package/lib/components/forms/number-input/number-input.component.d.ts +2 -0
  46. package/lib/components/forms/text-input/text-input.component.d.ts +10 -0
  47. package/lib/components/index.d.ts +1 -0
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.7.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.6.1...v1.7.0) (2020-05-26)
6
+
7
+
8
+ ### Features
9
+
10
+ * added aup-text-input component for text areas ([bf71969](https://bitbucket.org/coolon/angular-ui-powerups/commit/bf719691890a84840ea43373e2c37972eeb97661))
11
+ * added min/max attributes to number inputs ([f7ffa51](https://bitbucket.org/coolon/angular-ui-powerups/commit/f7ffa5178ef1e65eb503863db67708600c6fb878))
12
+
5
13
  ### [1.6.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.6.0...v1.6.1) (2020-05-24)
6
14
 
7
15
 
@@ -842,7 +842,10 @@
842
842
  var NumberInputComponent = /** @class */ (function (_super) {
843
843
  __extends(NumberInputComponent, _super);
844
844
  function NumberInputComponent() {
845
- return _super.call(this) || this;
845
+ var _this = _super.call(this) || this;
846
+ _this.min = Number.MIN_SAFE_INTEGER;
847
+ _this.max = Number.MAX_SAFE_INTEGER;
848
+ return _this;
846
849
  }
847
850
  NumberInputComponent.prototype.ngOnInit = function () {
848
851
  };
@@ -850,10 +853,18 @@
850
853
  core.Input(), pectin.TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
851
854
  __metadata("design:type", Object)
852
855
  ], NumberInputComponent.prototype, "valueModel", void 0);
856
+ __decorate([
857
+ core.Input(),
858
+ __metadata("design:type", Object)
859
+ ], NumberInputComponent.prototype, "min", void 0);
860
+ __decorate([
861
+ core.Input(),
862
+ __metadata("design:type", Object)
863
+ ], NumberInputComponent.prototype, "max", void 0);
853
864
  NumberInputComponent = __decorate([
854
865
  core.Component({
855
866
  selector: 'aup-number-input',
856
- 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",
867
+ 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",
857
868
  styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
858
869
  }),
859
870
  __metadata("design:paramtypes", [])
@@ -971,6 +982,39 @@
971
982
  return StringInputComponent;
972
983
  }(AbstractInputComponent));
973
984
 
985
+ var TextInputComponent = /** @class */ (function (_super) {
986
+ __extends(TextInputComponent, _super);
987
+ function TextInputComponent() {
988
+ var _this = _super.call(this) || this;
989
+ _this.rows = 2;
990
+ return _this;
991
+ // const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
992
+ }
993
+ TextInputComponent.prototype.ngOnInit = function () {
994
+ };
995
+ __decorate([
996
+ core.Input(), pectin.TrackExternal({ delegateTo: 'delegatingFormValueModel' }),
997
+ __metadata("design:type", Object)
998
+ ], TextInputComponent.prototype, "valueModel", void 0);
999
+ __decorate([
1000
+ core.Input(),
1001
+ __metadata("design:type", Object)
1002
+ ], TextInputComponent.prototype, "rows", void 0);
1003
+ __decorate([
1004
+ core.Input(),
1005
+ __metadata("design:type", Number)
1006
+ ], TextInputComponent.prototype, "cols", void 0);
1007
+ TextInputComponent = __decorate([
1008
+ core.Component({
1009
+ selector: 'aup-text-input',
1010
+ 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",
1011
+ 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}"]
1012
+ }),
1013
+ __metadata("design:paramtypes", [])
1014
+ ], TextInputComponent);
1015
+ return TextInputComponent;
1016
+ }(AbstractInputComponent));
1017
+
974
1018
  var NoopComponent = /** @class */ (function () {
975
1019
  function NoopComponent() {
976
1020
  }
@@ -1275,6 +1319,7 @@
1275
1319
  declarations: [
1276
1320
  NumberInputComponent,
1277
1321
  StringInputComponent,
1322
+ TextInputComponent,
1278
1323
  PasswordInputComponent,
1279
1324
  SelectInputComponent,
1280
1325
  CheckboxInputComponent,
@@ -1305,6 +1350,7 @@
1305
1350
  exports: [
1306
1351
  NumberInputComponent,
1307
1352
  StringInputComponent,
1353
+ TextInputComponent,
1308
1354
  PasswordInputComponent,
1309
1355
  CheckboxInputComponent,
1310
1356
  SelectInputComponent,
@@ -1863,7 +1909,7 @@
1863
1909
  }());
1864
1910
 
1865
1911
  var inplaceMonitorCount = 0;
1866
- exports.ɵbf = /** @class */ (function () {
1912
+ exports.ɵbg = /** @class */ (function () {
1867
1913
  function InteractionService(modelInteractionContextFactory) {
1868
1914
  this.modelInteractionContextFactory = modelInteractionContextFactory;
1869
1915
  this.garbage = new pectin.GarbageCollector();
@@ -2023,7 +2069,7 @@
2023
2069
  return ApiAdapter;
2024
2070
  }());
2025
2071
  InteractionService.ApiAdapter = ApiAdapter;
2026
- })(exports.ɵbf || (exports.ɵbf = {}));
2072
+ })(exports.ɵbg || (exports.ɵbg = {}));
2027
2073
 
2028
2074
  var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
2029
2075
  __extends(InPlaceInteractionContextComponent, _super);
@@ -2067,7 +2113,7 @@
2067
2113
  return this.activityContainerComponent.startActivity(activityType, data);
2068
2114
  };
2069
2115
  InPlaceInteractionContextComponent.ctorParameters = function () { return [
2070
- { type: exports.ɵbf }
2116
+ { type: exports.ɵbg }
2071
2117
  ]; };
2072
2118
  __decorate([
2073
2119
  core.ViewChild('activityContainer', { static: true }),
@@ -2079,7 +2125,7 @@
2079
2125
  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",
2080
2126
  styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
2081
2127
  }),
2082
- __metadata("design:paramtypes", [exports.ɵbf])
2128
+ __metadata("design:paramtypes", [exports.ɵbg])
2083
2129
  ], InPlaceInteractionContextComponent);
2084
2130
  return InPlaceInteractionContextComponent;
2085
2131
  }(DisposableComponent));
@@ -2117,7 +2163,7 @@
2117
2163
  AlertDialogComponent
2118
2164
  ],
2119
2165
  providers: [
2120
- exports.ɵbf,
2166
+ exports.ɵbg,
2121
2167
  ]
2122
2168
  })
2123
2169
  ], InteractionModule);
@@ -3236,7 +3282,7 @@
3236
3282
  return PopStateNavigation;
3237
3283
  }(AbstractPopStateNavigation));
3238
3284
 
3239
- exports.ɵbi = /** @class */ (function () {
3285
+ exports.ɵbj = /** @class */ (function () {
3240
3286
  function PlaceHistory() {
3241
3287
  this._archive = new Map();
3242
3288
  this.placeHistoryDepth = 4;
@@ -3373,7 +3419,7 @@
3373
3419
  // }
3374
3420
  //
3375
3421
  // }
3376
- })(exports.ɵbi || (exports.ɵbi = {}));
3422
+ })(exports.ɵbj || (exports.ɵbj = {}));
3377
3423
 
3378
3424
  exports.UrlSnapshot = /** @class */ (function () {
3379
3425
  // TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
@@ -3896,11 +3942,11 @@
3896
3942
  PlaceRouter.ctorParameters = function () { return [
3897
3943
  { type: router.Router },
3898
3944
  { type: common.Location },
3899
- { type: exports.ɵbf },
3945
+ { type: exports.ɵbg },
3900
3946
  { type: UrlService },
3901
- { type: exports.ɵbi }
3947
+ { type: exports.ɵbj }
3902
3948
  ]; };
3903
- PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵbf), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵbi)); }, token: PlaceRouter, providedIn: "root" });
3949
+ PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵbg), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵbj)); }, token: PlaceRouter, providedIn: "root" });
3904
3950
  __decorate([
3905
3951
  pectin.Trace(),
3906
3952
  __metadata("design:type", Function),
@@ -3913,9 +3959,9 @@
3913
3959
  }),
3914
3960
  __metadata("design:paramtypes", [router.Router,
3915
3961
  common.Location,
3916
- exports.ɵbf,
3962
+ exports.ɵbg,
3917
3963
  UrlService,
3918
- exports.ɵbi])
3964
+ exports.ɵbj])
3919
3965
  ], PlaceRouter);
3920
3966
  return PlaceRouter;
3921
3967
  }(pectin.GarbageCollector));
@@ -5136,7 +5182,7 @@
5136
5182
  exports.FocusableComponent = FocusableComponent;
5137
5183
  exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
5138
5184
  exports.InteractionModule = InteractionModule;
5139
- exports.InteractionService = exports.ɵbf;
5185
+ exports.InteractionService = exports.ɵbg;
5140
5186
  exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
5141
5187
  exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
5142
5188
  exports.ListPlaceNavComponent = ListPlaceNavComponent;
@@ -5152,7 +5198,7 @@
5152
5198
  exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
5153
5199
  exports.PlaceDefinition = PlaceDefinition;
5154
5200
  exports.PlaceGuard = PlaceGuard;
5155
- exports.PlaceHistory = exports.ɵbi;
5201
+ exports.PlaceHistory = exports.ɵbj;
5156
5202
  exports.PlaceModule = PlaceModule;
5157
5203
  exports.PlaceOutletComponent = PlaceOutletComponent;
5158
5204
  exports.PlaceRouter = PlaceRouter;
@@ -5173,6 +5219,7 @@
5173
5219
  exports.SwitchCaseWhenDirective = SwitchCaseWhenDirective;
5174
5220
  exports.SynchroniseInteractionContextIdsWithRoute = SynchroniseInteractionContextIdsWithRoute;
5175
5221
  exports.TabbedPlaceNavigationComponent = TabbedPlaceNavigationComponent;
5222
+ exports.TextInputComponent = TextInputComponent;
5176
5223
  exports.UrlService = UrlService;
5177
5224
  exports.VerticalFocusContainerComponent = VerticalFocusContainerComponent;
5178
5225
  exports.Visit = Visit;
@@ -5187,26 +5234,27 @@
5187
5234
  exports.slideRightOnEnterAnimation = slideRightOnEnterAnimation;
5188
5235
  exports.ɵa = DirectivesModule;
5189
5236
  exports.ɵb = CommandDirective;
5190
- exports.ɵba = leftRightPlaceAnimation;
5191
- exports.ɵbb = LEFT_RIGHT_PLACE_ANIMATION;
5192
- exports.ɵbc = AUP_PLACE_CONFIG;
5193
- exports.ɵbe = PlaceRouter;
5194
- exports.ɵbg = ModalInteractionContextFactory;
5195
- exports.ɵbh = UrlService;
5196
- exports.ɵbj = TabbedPlaceNavigationComponent;
5197
- exports.ɵbk = AbstractPlaceNavigationComponent;
5198
- exports.ɵbl = ListPlaceNavComponent;
5199
- exports.ɵbm = SidePlaceNavigationComponent;
5200
- exports.ɵbn = InteractionModule;
5201
- exports.ɵbo = ActivityContainerComponent;
5202
- exports.ɵbp = AbstractInteractionContext;
5203
- exports.ɵbq = ActivityOutletComponent;
5204
- exports.ɵbr = ConfirmationDialogComponent;
5205
- exports.ɵbs = ACTIVITY_DATA;
5206
- exports.ɵbt = Activity;
5207
- exports.ɵbv = ConfirmThenDialogComponent;
5208
- exports.ɵbw = AlertDialogComponent;
5209
- exports.ɵby = InPlaceInteractionContextComponent;
5237
+ exports.ɵba = PlaceOutletComponent;
5238
+ exports.ɵbb = leftRightPlaceAnimation;
5239
+ exports.ɵbc = LEFT_RIGHT_PLACE_ANIMATION;
5240
+ exports.ɵbd = AUP_PLACE_CONFIG;
5241
+ exports.ɵbf = PlaceRouter;
5242
+ exports.ɵbh = ModalInteractionContextFactory;
5243
+ exports.ɵbi = UrlService;
5244
+ exports.ɵbk = TabbedPlaceNavigationComponent;
5245
+ exports.ɵbl = AbstractPlaceNavigationComponent;
5246
+ exports.ɵbm = ListPlaceNavComponent;
5247
+ exports.ɵbn = SidePlaceNavigationComponent;
5248
+ exports.ɵbo = InteractionModule;
5249
+ exports.ɵbp = ActivityContainerComponent;
5250
+ exports.ɵbq = AbstractInteractionContext;
5251
+ exports.ɵbr = ActivityOutletComponent;
5252
+ exports.ɵbs = ConfirmationDialogComponent;
5253
+ exports.ɵbt = ACTIVITY_DATA;
5254
+ exports.ɵbu = Activity;
5255
+ exports.ɵbw = ConfirmThenDialogComponent;
5256
+ exports.ɵbx = AlertDialogComponent;
5257
+ exports.ɵbz = InPlaceInteractionContextComponent;
5210
5258
  exports.ɵc = FocusBindingDirective;
5211
5259
  exports.ɵd = DisposableComponent;
5212
5260
  exports.ɵe = FocusBindingFactory;
@@ -5214,23 +5262,23 @@
5214
5262
  exports.ɵg = NumberInputComponent;
5215
5263
  exports.ɵh = AbstractInputComponent;
5216
5264
  exports.ɵi = StringInputComponent;
5217
- exports.ɵj = PasswordInputComponent;
5218
- exports.ɵk = SelectInputComponent;
5219
- exports.ɵl = CheckboxInputComponent;
5220
- exports.ɵm = ScrollContainerComponent;
5221
- exports.ɵn = NoopComponent;
5222
- exports.ɵo = SwitchCaseOption;
5223
- exports.ɵp = SwitchCaseWhenDirective;
5224
- exports.ɵq = SwitchCaseDefaultDirective;
5225
- exports.ɵr = SwitchCaseComponent;
5226
- exports.ɵs = FocusContainerComponent;
5227
- exports.ɵt = VerticalFocusContainerComponent;
5228
- exports.ɵu = FocusableComponent;
5229
- exports.ɵv = CardContainerComponent;
5230
- exports.ɵw = PlaceModule;
5231
- exports.ɵx = EmptyStateComponent;
5232
- exports.ɵy = BusyOverlayComponent;
5233
- exports.ɵz = PlaceOutletComponent;
5265
+ exports.ɵj = TextInputComponent;
5266
+ exports.ɵk = PasswordInputComponent;
5267
+ exports.ɵl = SelectInputComponent;
5268
+ exports.ɵm = CheckboxInputComponent;
5269
+ exports.ɵn = ScrollContainerComponent;
5270
+ exports.ɵo = NoopComponent;
5271
+ exports.ɵp = SwitchCaseOption;
5272
+ exports.ɵq = SwitchCaseWhenDirective;
5273
+ exports.ɵr = SwitchCaseDefaultDirective;
5274
+ exports.ɵs = SwitchCaseComponent;
5275
+ exports.ɵt = FocusContainerComponent;
5276
+ exports.ɵu = VerticalFocusContainerComponent;
5277
+ exports.ɵv = FocusableComponent;
5278
+ exports.ɵw = CardContainerComponent;
5279
+ exports.ɵx = PlaceModule;
5280
+ exports.ɵy = EmptyStateComponent;
5281
+ exports.ɵz = BusyOverlayComponent;
5234
5282
 
5235
5283
  Object.defineProperty(exports, '__esModule', { value: true });
5236
5284