@coolon/angular-ui-powerups 1.0.0 → 1.0.1-alpha.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 +22 -17
- 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/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +3 -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/abstract-input.component.js +6 -14
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/forms/number-input/number-input.component.js +6 -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/password-input/password-input.component.js +6 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +4 -0
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +4 -0
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm5/lib/components/components.module.js +3 -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/abstract-input.component.js +6 -18
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-input.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/forms/number-input/number-input.component.js +6 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +6 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +4 -0
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +4 -0
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +23 -14
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +23 -18
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +2 -3
- package/lib/components/forms/number-input/number-input.component.d.ts +3 -1
- package/lib/components/forms/password-input/password-input.component.d.ts +2 -0
- package/lib/components/forms/select-input/select-input.component.d.ts +2 -1
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
|
|
9
9
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
-
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, DelegatingFormValueModel,
|
|
12
|
+
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, DelegatingFormValueModel, Command, UseDelegate, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, Trace, MutableListModel, MutableValueModel, Guard, DebugContext, Binding, ValueHolder } from '@coolon/pectin';
|
|
13
13
|
import { PortalModule } from '@angular/cdk/portal';
|
|
14
14
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
15
15
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
@@ -310,7 +310,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
310
310
|
__extends(AbstractInputComponent, _super);
|
|
311
311
|
function AbstractInputComponent() {
|
|
312
312
|
var _this = _super.call(this) || this;
|
|
313
|
-
_this.
|
|
313
|
+
_this.delegatingFormValueModel = new DelegatingFormValueModel();
|
|
314
314
|
// TODO: fix this.
|
|
315
315
|
// tslint:disable-next-line:no-output-native
|
|
316
316
|
_this.focus = new EventEmitter();
|
|
@@ -328,13 +328,6 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
328
328
|
};
|
|
329
329
|
return _this;
|
|
330
330
|
}
|
|
331
|
-
Object.defineProperty(AbstractInputComponent.prototype, "userValueModel", {
|
|
332
|
-
set: function (model) {
|
|
333
|
-
this.valueModel.setDelegate(model);
|
|
334
|
-
},
|
|
335
|
-
enumerable: true,
|
|
336
|
-
configurable: true
|
|
337
|
-
});
|
|
338
331
|
AbstractInputComponent.prototype.notifyClick = function () {
|
|
339
332
|
this.safelyInvoke(this.clickCommand);
|
|
340
333
|
};
|
|
@@ -366,7 +359,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
366
359
|
};
|
|
367
360
|
Object.defineProperty(AbstractInputComponent.prototype, "enabled", {
|
|
368
361
|
get: function () {
|
|
369
|
-
return this.
|
|
362
|
+
return this.delegatingFormValueModel.enabled;
|
|
370
363
|
},
|
|
371
364
|
enumerable: true,
|
|
372
365
|
configurable: true
|
|
@@ -376,7 +369,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
376
369
|
};
|
|
377
370
|
Object.defineProperty(AbstractInputComponent.prototype, "errorList", {
|
|
378
371
|
get: function () {
|
|
379
|
-
return this.
|
|
372
|
+
return this.delegatingFormValueModel.errorList;
|
|
380
373
|
},
|
|
381
374
|
enumerable: true,
|
|
382
375
|
configurable: true
|
|
@@ -388,11 +381,6 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
388
381
|
enumerable: true,
|
|
389
382
|
configurable: true
|
|
390
383
|
});
|
|
391
|
-
__decorate([
|
|
392
|
-
Input('valueModel'), UseDelegate(),
|
|
393
|
-
__metadata("design:type", ValueModel),
|
|
394
|
-
__metadata("design:paramtypes", [ValueModel])
|
|
395
|
-
], AbstractInputComponent.prototype, "userValueModel", null);
|
|
396
384
|
__decorate([
|
|
397
385
|
Input(),
|
|
398
386
|
__metadata("design:type", String)
|
|
@@ -464,7 +452,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
464
452
|
__metadata("design:returntype", void 0)
|
|
465
453
|
], AbstractInputComponent.prototype, "notifyFocusOut", null);
|
|
466
454
|
AbstractInputComponent = __decorate([
|
|
467
|
-
|
|
455
|
+
Component({ template: '' }),
|
|
468
456
|
__metadata("design:paramtypes", [])
|
|
469
457
|
], AbstractInputComponent);
|
|
470
458
|
return AbstractInputComponent;
|
|
@@ -477,6 +465,10 @@ var NumberInputComponent = /** @class */ (function (_super) {
|
|
|
477
465
|
}
|
|
478
466
|
NumberInputComponent.prototype.ngOnInit = function () {
|
|
479
467
|
};
|
|
468
|
+
__decorate([
|
|
469
|
+
Input(), UseDelegate({ useModel: "delegatingFormValueModel" }),
|
|
470
|
+
__metadata("design:type", Object)
|
|
471
|
+
], NumberInputComponent.prototype, "valueModel", void 0);
|
|
480
472
|
NumberInputComponent = __decorate([
|
|
481
473
|
Component({
|
|
482
474
|
selector: 'aup-number-input',
|
|
@@ -495,6 +487,10 @@ var PasswordInputComponent = /** @class */ (function (_super) {
|
|
|
495
487
|
}
|
|
496
488
|
PasswordInputComponent.prototype.ngOnInit = function () {
|
|
497
489
|
};
|
|
490
|
+
__decorate([
|
|
491
|
+
Input(), UseDelegate({ useModel: "delegatingFormValueModel" }),
|
|
492
|
+
__metadata("design:type", Object)
|
|
493
|
+
], PasswordInputComponent.prototype, "valueModel", void 0);
|
|
498
494
|
PasswordInputComponent = __decorate([
|
|
499
495
|
Component({
|
|
500
496
|
selector: 'aup-password-input',
|
|
@@ -515,6 +511,10 @@ var SelectInputComponent = /** @class */ (function (_super) {
|
|
|
515
511
|
}
|
|
516
512
|
SelectInputComponent.prototype.ngOnInit = function () {
|
|
517
513
|
};
|
|
514
|
+
__decorate([
|
|
515
|
+
Input(), UseDelegate({ useModel: "delegatingFormValueModel" }),
|
|
516
|
+
__metadata("design:type", Object)
|
|
517
|
+
], SelectInputComponent.prototype, "valueModel", void 0);
|
|
518
518
|
__decorate([
|
|
519
519
|
Input(), UseDelegate(),
|
|
520
520
|
__metadata("design:type", ListModel)
|
|
@@ -567,6 +567,10 @@ var StringInputComponent = /** @class */ (function (_super) {
|
|
|
567
567
|
}
|
|
568
568
|
StringInputComponent.prototype.ngOnInit = function () {
|
|
569
569
|
};
|
|
570
|
+
__decorate([
|
|
571
|
+
Input(), UseDelegate({ useModel: "delegatingFormValueModel" }),
|
|
572
|
+
__metadata("design:type", Object)
|
|
573
|
+
], StringInputComponent.prototype, "valueModel", void 0);
|
|
570
574
|
__decorate([
|
|
571
575
|
Input(), UseDelegate({ defaultValue: false }),
|
|
572
576
|
__metadata("design:type", ValueModel)
|
|
@@ -627,7 +631,8 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
627
631
|
PasswordInputComponent,
|
|
628
632
|
SelectInputComponent,
|
|
629
633
|
ScrollContainerComponent,
|
|
630
|
-
NoopComponent
|
|
634
|
+
NoopComponent,
|
|
635
|
+
AbstractInputComponent
|
|
631
636
|
],
|
|
632
637
|
imports: [
|
|
633
638
|
CommonModule,
|