@coolon/angular-ui-powerups 1.15.0 → 1.15.1
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 +130 -130
- 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/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -1
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js +1 -1
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +125 -125
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +131 -131
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.15.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.15.0...v1.15.1) (2020-06-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* removed barrel file import ([5e8e44c](https://bitbucket.org/coolon/angular-ui-powerups/commit/5e8e44c739ab42481da02c390782dd71eab24477))
|
|
11
|
+
|
|
5
12
|
## [1.15.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.14.0...v1.15.0) (2020-06-17)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -3574,136 +3574,6 @@
|
|
|
3574
3574
|
return InteractionContextTriggerFor;
|
|
3575
3575
|
}(pectin.GarbageCollector));
|
|
3576
3576
|
|
|
3577
|
-
var SelectInputActivity = /** @class */ (function (_super) {
|
|
3578
|
-
__extends(SelectInputActivity, _super);
|
|
3579
|
-
function SelectInputActivity() {
|
|
3580
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3581
|
-
_this.defaultOptionLabelFormat = function (option) {
|
|
3582
|
-
return _this.data.optionLabel ? option[_this.data.optionLabel] : option;
|
|
3583
|
-
};
|
|
3584
|
-
return _this;
|
|
3585
|
-
}
|
|
3586
|
-
Object.defineProperty(SelectInputActivity.prototype, "optionLabelFormat", {
|
|
3587
|
-
get: function () {
|
|
3588
|
-
var _a;
|
|
3589
|
-
return (_a = this.data.optionLabelFormat) !== null && _a !== void 0 ? _a : this.defaultOptionLabelFormat;
|
|
3590
|
-
},
|
|
3591
|
-
enumerable: true,
|
|
3592
|
-
configurable: true
|
|
3593
|
-
});
|
|
3594
|
-
Object.defineProperty(SelectInputActivity.prototype, "options", {
|
|
3595
|
-
get: function () {
|
|
3596
|
-
var _a;
|
|
3597
|
-
return ((_a = this.data.optionsModel) === null || _a === void 0 ? void 0 : _a.value) || this.data.options;
|
|
3598
|
-
},
|
|
3599
|
-
enumerable: true,
|
|
3600
|
-
configurable: true
|
|
3601
|
-
});
|
|
3602
|
-
SelectInputActivity = __decorate([
|
|
3603
|
-
core.Component({
|
|
3604
|
-
selector: 'aup-select-input-activity',
|
|
3605
|
-
template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions align=\"end\"\n [confirmCommand]=\"confirmCommand\"\n [cancelCommand]=\"cancelCommand\"></aup-activity-actions>\n "
|
|
3606
|
-
})
|
|
3607
|
-
], SelectInputActivity);
|
|
3608
|
-
return SelectInputActivity;
|
|
3609
|
-
}(AbstractInputActivity));
|
|
3610
|
-
|
|
3611
|
-
var DialogInteractionContext = /** @class */ (function (_super) {
|
|
3612
|
-
__extends(DialogInteractionContext, _super);
|
|
3613
|
-
function DialogInteractionContext(identifier, api, dialogService, config) {
|
|
3614
|
-
var _this = _super.call(this) || this;
|
|
3615
|
-
_this.identifier = identifier;
|
|
3616
|
-
_this.api = api;
|
|
3617
|
-
_this.dialogService = dialogService;
|
|
3618
|
-
_this.config = config;
|
|
3619
|
-
_this.garbage = new pectin.GarbageCollector();
|
|
3620
|
-
typescriptUtilities.assert.notNil(dialogService);
|
|
3621
|
-
return _this;
|
|
3622
|
-
}
|
|
3623
|
-
DialogInteractionContext.prototype.cancelActiveActivity = function () {
|
|
3624
|
-
return this.activityContainer.cancelActiveActivity();
|
|
3625
|
-
};
|
|
3626
|
-
DialogInteractionContext.prototype.dispose = function () {
|
|
3627
|
-
if (this.isActive()) {
|
|
3628
|
-
pectin.lang.illegalState('Dispose called while active.');
|
|
3629
|
-
}
|
|
3630
|
-
this.garbage.dispose();
|
|
3631
|
-
};
|
|
3632
|
-
DialogInteractionContext.prototype.registerDisposable = function (disposable) {
|
|
3633
|
-
return this.garbage.registerDisposable(disposable);
|
|
3634
|
-
};
|
|
3635
|
-
DialogInteractionContext.prototype.isActive = function () {
|
|
3636
|
-
return !!this.activityContainer && this.activityContainer.isActive();
|
|
3637
|
-
};
|
|
3638
|
-
DialogInteractionContext.prototype.createAndLaunchActivity = function (activityType, data, disableClose) {
|
|
3639
|
-
var _this = this;
|
|
3640
|
-
typescriptUtilities.assert.isNil(this._currentActivityRef);
|
|
3641
|
-
var config = __assign(__assign({}, this.config), {
|
|
3642
|
-
disableClose: disableClose,
|
|
3643
|
-
panelClass: 'dialog-interaction-context'
|
|
3644
|
-
});
|
|
3645
|
-
var self = this;
|
|
3646
|
-
var matDialogRef = this.dialogService.open(ActivityContainerComponent, config);
|
|
3647
|
-
var activityContainer = this.activityContainer = matDialogRef.componentInstance;
|
|
3648
|
-
this.activityContainer.initialise(this.identifier, this.api);
|
|
3649
|
-
var activityResult = this.activityContainer.startActivity(activityType, data);
|
|
3650
|
-
activityResult.finally(function () { return matDialogRef.close(); });
|
|
3651
|
-
// we need to check if our onDone/onCancel methods above we called or if we were
|
|
3652
|
-
// closed by the user clicking the backdrop. If the later then we need to cancel our
|
|
3653
|
-
// activity.
|
|
3654
|
-
matDialogRef.afterClosed().subscribe(function (promiseAlreadyFinished) {
|
|
3655
|
-
if (activityContainer.isActive()) {
|
|
3656
|
-
activityContainer.cancelActiveActivity();
|
|
3657
|
-
}
|
|
3658
|
-
_this.activityContainer = null;
|
|
3659
|
-
});
|
|
3660
|
-
matDialogRef.updateSize();
|
|
3661
|
-
matDialogRef.afterOpened().subscribe(function (promiseAlreadyFinished) {
|
|
3662
|
-
matDialogRef.updateSize();
|
|
3663
|
-
});
|
|
3664
|
-
return activityResult;
|
|
3665
|
-
};
|
|
3666
|
-
return DialogInteractionContext;
|
|
3667
|
-
}(AbstractInteractionContext));
|
|
3668
|
-
|
|
3669
|
-
var DIALOG_INTERACTION_SERVICE_DEFAULTS = new core.InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
|
|
3670
|
-
var DialogInteractionContextFactory = /** @class */ (function (_super) {
|
|
3671
|
-
__extends(DialogInteractionContextFactory, _super);
|
|
3672
|
-
function DialogInteractionContextFactory(dialogService, dialogServiceDefaults, matDialogDefaultConfig) {
|
|
3673
|
-
var _this = _super.call(this) || this;
|
|
3674
|
-
_this.dialogService = dialogService;
|
|
3675
|
-
_this.dialogServiceDefaults = dialogServiceDefaults;
|
|
3676
|
-
_this.matDialogDefaultConfig = matDialogDefaultConfig;
|
|
3677
|
-
typescriptUtilities.assert.notNil(dialogService);
|
|
3678
|
-
return _this;
|
|
3679
|
-
}
|
|
3680
|
-
DialogInteractionContextFactory.prototype.createInteractionContext = function (identifier, api) {
|
|
3681
|
-
var config = __assign(__assign({ autoFocus: false, hasBackdrop: true, closeOnNavigation: false }, this.matDialogDefaultConfig), this.dialogServiceDefaults);
|
|
3682
|
-
return new DialogInteractionContext(identifier, api, this.dialogService, config);
|
|
3683
|
-
};
|
|
3684
|
-
DialogInteractionContextFactory.ctorParameters = function () { return [
|
|
3685
|
-
{ type: dialog.MatDialog },
|
|
3686
|
-
{ type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
|
|
3687
|
-
{ type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [dialog.MAT_DIALOG_DEFAULT_OPTIONS,] }] }
|
|
3688
|
-
]; };
|
|
3689
|
-
DialogInteractionContextFactory.ɵprov = core.ɵɵdefineInjectable({ factory: function DialogInteractionContextFactory_Factory() { return new DialogInteractionContextFactory(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(DIALOG_INTERACTION_SERVICE_DEFAULTS, 8), core.ɵɵinject(dialog.MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionContextFactory, providedIn: "root" });
|
|
3690
|
-
DialogInteractionContextFactory = __decorate([
|
|
3691
|
-
core.Injectable({
|
|
3692
|
-
providedIn: 'root'
|
|
3693
|
-
}),
|
|
3694
|
-
__param(1, core.Optional()), __param(1, core.Inject(DIALOG_INTERACTION_SERVICE_DEFAULTS)),
|
|
3695
|
-
__param(2, core.Optional()), __param(2, core.Inject(dialog.MAT_DIALOG_DEFAULT_OPTIONS)),
|
|
3696
|
-
__metadata("design:paramtypes", [dialog.MatDialog,
|
|
3697
|
-
dialog.MatDialogConfig,
|
|
3698
|
-
dialog.MatDialogConfig])
|
|
3699
|
-
], DialogInteractionContextFactory);
|
|
3700
|
-
return DialogInteractionContextFactory;
|
|
3701
|
-
}(ModalInteractionContextFactory));
|
|
3702
|
-
|
|
3703
|
-
/**
|
|
3704
|
-
* @file Automatically generated by barrelsby.
|
|
3705
|
-
*/
|
|
3706
|
-
|
|
3707
3577
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
3708
3578
|
// we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
|
|
3709
3579
|
// @dynamic
|
|
@@ -3764,6 +3634,40 @@
|
|
|
3764
3634
|
return StringInputActivity;
|
|
3765
3635
|
}(AbstractInputActivity));
|
|
3766
3636
|
|
|
3637
|
+
var SelectInputActivity = /** @class */ (function (_super) {
|
|
3638
|
+
__extends(SelectInputActivity, _super);
|
|
3639
|
+
function SelectInputActivity() {
|
|
3640
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3641
|
+
_this.defaultOptionLabelFormat = function (option) {
|
|
3642
|
+
return _this.data.optionLabel ? option[_this.data.optionLabel] : option;
|
|
3643
|
+
};
|
|
3644
|
+
return _this;
|
|
3645
|
+
}
|
|
3646
|
+
Object.defineProperty(SelectInputActivity.prototype, "optionLabelFormat", {
|
|
3647
|
+
get: function () {
|
|
3648
|
+
var _a;
|
|
3649
|
+
return (_a = this.data.optionLabelFormat) !== null && _a !== void 0 ? _a : this.defaultOptionLabelFormat;
|
|
3650
|
+
},
|
|
3651
|
+
enumerable: true,
|
|
3652
|
+
configurable: true
|
|
3653
|
+
});
|
|
3654
|
+
Object.defineProperty(SelectInputActivity.prototype, "options", {
|
|
3655
|
+
get: function () {
|
|
3656
|
+
var _a;
|
|
3657
|
+
return ((_a = this.data.optionsModel) === null || _a === void 0 ? void 0 : _a.value) || this.data.options;
|
|
3658
|
+
},
|
|
3659
|
+
enumerable: true,
|
|
3660
|
+
configurable: true
|
|
3661
|
+
});
|
|
3662
|
+
SelectInputActivity = __decorate([
|
|
3663
|
+
core.Component({
|
|
3664
|
+
selector: 'aup-select-input-activity',
|
|
3665
|
+
template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions align=\"end\"\n [confirmCommand]=\"confirmCommand\"\n [cancelCommand]=\"cancelCommand\"></aup-activity-actions>\n "
|
|
3666
|
+
})
|
|
3667
|
+
], SelectInputActivity);
|
|
3668
|
+
return SelectInputActivity;
|
|
3669
|
+
}(AbstractInputActivity));
|
|
3670
|
+
|
|
3767
3671
|
var Dimension = /** @class */ (function () {
|
|
3768
3672
|
function Dimension(width, height) {
|
|
3769
3673
|
this.width = width;
|
|
@@ -6303,6 +6207,102 @@
|
|
|
6303
6207
|
* @file Automatically generated by barrelsby.
|
|
6304
6208
|
*/
|
|
6305
6209
|
|
|
6210
|
+
/**
|
|
6211
|
+
* @file Automatically generated by barrelsby.
|
|
6212
|
+
*/
|
|
6213
|
+
|
|
6214
|
+
var DialogInteractionContext = /** @class */ (function (_super) {
|
|
6215
|
+
__extends(DialogInteractionContext, _super);
|
|
6216
|
+
function DialogInteractionContext(identifier, api, dialogService, config) {
|
|
6217
|
+
var _this = _super.call(this) || this;
|
|
6218
|
+
_this.identifier = identifier;
|
|
6219
|
+
_this.api = api;
|
|
6220
|
+
_this.dialogService = dialogService;
|
|
6221
|
+
_this.config = config;
|
|
6222
|
+
_this.garbage = new pectin.GarbageCollector();
|
|
6223
|
+
typescriptUtilities.assert.notNil(dialogService);
|
|
6224
|
+
return _this;
|
|
6225
|
+
}
|
|
6226
|
+
DialogInteractionContext.prototype.cancelActiveActivity = function () {
|
|
6227
|
+
return this.activityContainer.cancelActiveActivity();
|
|
6228
|
+
};
|
|
6229
|
+
DialogInteractionContext.prototype.dispose = function () {
|
|
6230
|
+
if (this.isActive()) {
|
|
6231
|
+
pectin.lang.illegalState('Dispose called while active.');
|
|
6232
|
+
}
|
|
6233
|
+
this.garbage.dispose();
|
|
6234
|
+
};
|
|
6235
|
+
DialogInteractionContext.prototype.registerDisposable = function (disposable) {
|
|
6236
|
+
return this.garbage.registerDisposable(disposable);
|
|
6237
|
+
};
|
|
6238
|
+
DialogInteractionContext.prototype.isActive = function () {
|
|
6239
|
+
return !!this.activityContainer && this.activityContainer.isActive();
|
|
6240
|
+
};
|
|
6241
|
+
DialogInteractionContext.prototype.createAndLaunchActivity = function (activityType, data, disableClose) {
|
|
6242
|
+
var _this = this;
|
|
6243
|
+
typescriptUtilities.assert.isNil(this._currentActivityRef);
|
|
6244
|
+
var config = __assign(__assign({}, this.config), {
|
|
6245
|
+
disableClose: disableClose,
|
|
6246
|
+
panelClass: 'dialog-interaction-context'
|
|
6247
|
+
});
|
|
6248
|
+
var self = this;
|
|
6249
|
+
var matDialogRef = this.dialogService.open(ActivityContainerComponent, config);
|
|
6250
|
+
var activityContainer = this.activityContainer = matDialogRef.componentInstance;
|
|
6251
|
+
this.activityContainer.initialise(this.identifier, this.api);
|
|
6252
|
+
var activityResult = this.activityContainer.startActivity(activityType, data);
|
|
6253
|
+
activityResult.finally(function () { return matDialogRef.close(); });
|
|
6254
|
+
// we need to check if our onDone/onCancel methods above we called or if we were
|
|
6255
|
+
// closed by the user clicking the backdrop. If the later then we need to cancel our
|
|
6256
|
+
// activity.
|
|
6257
|
+
matDialogRef.afterClosed().subscribe(function (promiseAlreadyFinished) {
|
|
6258
|
+
if (activityContainer.isActive()) {
|
|
6259
|
+
activityContainer.cancelActiveActivity();
|
|
6260
|
+
}
|
|
6261
|
+
_this.activityContainer = null;
|
|
6262
|
+
});
|
|
6263
|
+
matDialogRef.updateSize();
|
|
6264
|
+
matDialogRef.afterOpened().subscribe(function (promiseAlreadyFinished) {
|
|
6265
|
+
matDialogRef.updateSize();
|
|
6266
|
+
});
|
|
6267
|
+
return activityResult;
|
|
6268
|
+
};
|
|
6269
|
+
return DialogInteractionContext;
|
|
6270
|
+
}(AbstractInteractionContext));
|
|
6271
|
+
|
|
6272
|
+
var DIALOG_INTERACTION_SERVICE_DEFAULTS = new core.InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
|
|
6273
|
+
var DialogInteractionContextFactory = /** @class */ (function (_super) {
|
|
6274
|
+
__extends(DialogInteractionContextFactory, _super);
|
|
6275
|
+
function DialogInteractionContextFactory(dialogService, dialogServiceDefaults, matDialogDefaultConfig) {
|
|
6276
|
+
var _this = _super.call(this) || this;
|
|
6277
|
+
_this.dialogService = dialogService;
|
|
6278
|
+
_this.dialogServiceDefaults = dialogServiceDefaults;
|
|
6279
|
+
_this.matDialogDefaultConfig = matDialogDefaultConfig;
|
|
6280
|
+
typescriptUtilities.assert.notNil(dialogService);
|
|
6281
|
+
return _this;
|
|
6282
|
+
}
|
|
6283
|
+
DialogInteractionContextFactory.prototype.createInteractionContext = function (identifier, api) {
|
|
6284
|
+
var config = __assign(__assign({ autoFocus: false, hasBackdrop: true, closeOnNavigation: false }, this.matDialogDefaultConfig), this.dialogServiceDefaults);
|
|
6285
|
+
return new DialogInteractionContext(identifier, api, this.dialogService, config);
|
|
6286
|
+
};
|
|
6287
|
+
DialogInteractionContextFactory.ctorParameters = function () { return [
|
|
6288
|
+
{ type: dialog.MatDialog },
|
|
6289
|
+
{ type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
|
|
6290
|
+
{ type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [dialog.MAT_DIALOG_DEFAULT_OPTIONS,] }] }
|
|
6291
|
+
]; };
|
|
6292
|
+
DialogInteractionContextFactory.ɵprov = core.ɵɵdefineInjectable({ factory: function DialogInteractionContextFactory_Factory() { return new DialogInteractionContextFactory(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(DIALOG_INTERACTION_SERVICE_DEFAULTS, 8), core.ɵɵinject(dialog.MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionContextFactory, providedIn: "root" });
|
|
6293
|
+
DialogInteractionContextFactory = __decorate([
|
|
6294
|
+
core.Injectable({
|
|
6295
|
+
providedIn: 'root'
|
|
6296
|
+
}),
|
|
6297
|
+
__param(1, core.Optional()), __param(1, core.Inject(DIALOG_INTERACTION_SERVICE_DEFAULTS)),
|
|
6298
|
+
__param(2, core.Optional()), __param(2, core.Inject(dialog.MAT_DIALOG_DEFAULT_OPTIONS)),
|
|
6299
|
+
__metadata("design:paramtypes", [dialog.MatDialog,
|
|
6300
|
+
dialog.MatDialogConfig,
|
|
6301
|
+
dialog.MatDialogConfig])
|
|
6302
|
+
], DialogInteractionContextFactory);
|
|
6303
|
+
return DialogInteractionContextFactory;
|
|
6304
|
+
}(ModalInteractionContextFactory));
|
|
6305
|
+
|
|
6306
6306
|
/**
|
|
6307
6307
|
* @file Automatically generated by barrelsby.
|
|
6308
6308
|
*/
|