@coolon/angular-ui-powerups 12.4.0-alpha.76 → 12.4.0-alpha.78
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/assets/markdown.scss +10 -0
- package/assets/styles.scss +1 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +107 -140
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
- 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/text/markdown/markdown.component.js +12 -7
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +1 -1
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +1 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +23 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +52 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +4 -17
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +6 -34
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +5 -31
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +5 -29
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/exports.js +2 -0
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +5 -1
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +93 -112
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/text/markdown/markdown.component.d.ts +1 -0
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +7 -0
- package/lib/interaction/components/abstract-dialog.component.d.ts +17 -0
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +2 -11
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -13
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +2 -12
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -12
- package/lib/interaction/exports.d.ts +2 -0
- package/package.json +1 -1
package/assets/styles.scss
CHANGED
|
@@ -2393,8 +2393,8 @@
|
|
|
2393
2393
|
SelectInputComponent.decorators = [
|
|
2394
2394
|
{ type: i0.Component, args: [{
|
|
2395
2395
|
selector: 'aup-select-input',
|
|
2396
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
2397
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}\n"]
|
|
2396
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <div *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
|
|
2397
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{height:0;max-height:0;width:auto;visibility:hidden;padding-right:12px}\n"]
|
|
2398
2398
|
},] }
|
|
2399
2399
|
];
|
|
2400
2400
|
SelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -5089,19 +5089,24 @@
|
|
|
5089
5089
|
}
|
|
5090
5090
|
MarkdownComponent.prototype.ngOnInit = function () {
|
|
5091
5091
|
var _this = this;
|
|
5092
|
-
var
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5092
|
+
var when = pectin.Dsl.disposeWith(this).when;
|
|
5093
|
+
when(this.content$).changes(function (content) { return _this.renderContent(content); }, { initialValue: 'triggerChangeUnlessNil' });
|
|
5094
|
+
if (___namespace.isNil(this.content) && !___namespace.isEmpty(this.element.nativeElement.innerHTML)) {
|
|
5095
|
+
this.renderContent(this.element.nativeElement.innerHTML);
|
|
5096
|
+
}
|
|
5097
|
+
};
|
|
5098
|
+
MarkdownComponent.prototype.renderContent = function (content) {
|
|
5099
|
+
if (!___namespace.isNil(content)) {
|
|
5100
|
+
this.element.nativeElement.innerHTML = this.inline ? this.markdownService.renderInline(content) :
|
|
5101
|
+
this.markdownService.render(content);
|
|
5102
|
+
}
|
|
5098
5103
|
};
|
|
5099
5104
|
return MarkdownComponent;
|
|
5100
5105
|
}(DisposableComponent));
|
|
5101
5106
|
MarkdownComponent.decorators = [
|
|
5102
5107
|
{ type: i0.Component, args: [{
|
|
5103
5108
|
selector: 'aup-markdown',
|
|
5104
|
-
template: "<
|
|
5109
|
+
template: "<ng-content></ng-content>\n",
|
|
5105
5110
|
styles: [":host{display:inline-block}\n"]
|
|
5106
5111
|
},] }
|
|
5107
5112
|
];
|
|
@@ -5370,6 +5375,7 @@
|
|
|
5370
5375
|
_this._busyModel = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(false));
|
|
5371
5376
|
_this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
5372
5377
|
_this.class = 'aup-activity';
|
|
5378
|
+
_this.busyWhile(_this.confirmCommand.busy);
|
|
5373
5379
|
return _this;
|
|
5374
5380
|
}
|
|
5375
5381
|
Object.defineProperty(Activity.prototype, "isFocused", {
|
|
@@ -5389,7 +5395,6 @@
|
|
|
5389
5395
|
when(this._focusedModel).becomesTruthy(function () {
|
|
5390
5396
|
_this.onActivityReady();
|
|
5391
5397
|
});
|
|
5392
|
-
this.busyWhile(this.confirmCommand.busy);
|
|
5393
5398
|
};
|
|
5394
5399
|
Activity.prototype.ngAfterViewInit = function () {
|
|
5395
5400
|
var _a;
|
|
@@ -5474,31 +5479,89 @@
|
|
|
5474
5479
|
Alert.getColor = getColor;
|
|
5475
5480
|
})(exports.Alert || (exports.Alert = {}));
|
|
5476
5481
|
|
|
5482
|
+
var ALERT_CONFIG = new i0.InjectionToken('AlertConfig');
|
|
5483
|
+
var AbstractDialogComponent = /** @class */ (function (_super) {
|
|
5484
|
+
__extends(AbstractDialogComponent, _super);
|
|
5485
|
+
function AbstractDialogComponent(config) {
|
|
5486
|
+
var _this = _super.call(this) || this;
|
|
5487
|
+
_this.config = config;
|
|
5488
|
+
pectin.assert.notNil(config);
|
|
5489
|
+
_this.title = exports.Alert.getTitle(config);
|
|
5490
|
+
_this.color = _this.checkColor(exports.Alert.getColor(config));
|
|
5491
|
+
_this.content = exports.Alert.getContent(config);
|
|
5492
|
+
_this.confirmFace = {
|
|
5493
|
+
text: function () { return config.ok(); },
|
|
5494
|
+
color: function () { return _this.color || 'primary'; },
|
|
5495
|
+
style: function () { return 'raised'; }
|
|
5496
|
+
};
|
|
5497
|
+
return _this;
|
|
5498
|
+
}
|
|
5499
|
+
AbstractDialogComponent.prototype.getConfig = function () {
|
|
5500
|
+
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5501
|
+
};
|
|
5502
|
+
AbstractDialogComponent.prototype.checkColor = function (rawColor) {
|
|
5503
|
+
if (this.isDestructive()) {
|
|
5504
|
+
return 'warn';
|
|
5505
|
+
}
|
|
5506
|
+
else {
|
|
5507
|
+
if (['primary', 'accent', 'warn'].includes(rawColor)) {
|
|
5508
|
+
return rawColor;
|
|
5509
|
+
}
|
|
5510
|
+
else {
|
|
5511
|
+
console.warn("Invalid color string " + rawColor);
|
|
5512
|
+
return undefined;
|
|
5513
|
+
}
|
|
5514
|
+
}
|
|
5515
|
+
};
|
|
5516
|
+
AbstractDialogComponent.prototype.isDestructive = function () {
|
|
5517
|
+
// @ts-ignore
|
|
5518
|
+
return ___namespace.isFunction(this.config['destructive']) && this.config.destructive();
|
|
5519
|
+
};
|
|
5520
|
+
return AbstractDialogComponent;
|
|
5521
|
+
}(Activity));
|
|
5522
|
+
AbstractDialogComponent.decorators = [
|
|
5523
|
+
{ type: i0.Component, args: [{
|
|
5524
|
+
template: ''
|
|
5525
|
+
},] }
|
|
5526
|
+
];
|
|
5527
|
+
AbstractDialogComponent.ctorParameters = function () { return [
|
|
5528
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALERT_CONFIG,] }] }
|
|
5529
|
+
]; };
|
|
5530
|
+
|
|
5531
|
+
var AbstractConfirmDialogComponent = /** @class */ (function (_super) {
|
|
5532
|
+
__extends(AbstractConfirmDialogComponent, _super);
|
|
5533
|
+
function AbstractConfirmDialogComponent(config) {
|
|
5534
|
+
var _this = _super.call(this, config) || this;
|
|
5535
|
+
_this.cancelFace = {
|
|
5536
|
+
text: function () { return config.cancel(); }
|
|
5537
|
+
};
|
|
5538
|
+
_this.cancelCommand = pectin.Command.create(function () {
|
|
5539
|
+
return _this.cancel();
|
|
5540
|
+
});
|
|
5541
|
+
return _this;
|
|
5542
|
+
}
|
|
5543
|
+
return AbstractConfirmDialogComponent;
|
|
5544
|
+
}(AbstractDialogComponent));
|
|
5545
|
+
AbstractConfirmDialogComponent.decorators = [
|
|
5546
|
+
{ type: i0.Component, args: [{
|
|
5547
|
+
template: ''
|
|
5548
|
+
},] }
|
|
5549
|
+
];
|
|
5550
|
+
AbstractConfirmDialogComponent.ctorParameters = function () { return [
|
|
5551
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALERT_CONFIG,] }] }
|
|
5552
|
+
]; };
|
|
5553
|
+
|
|
5477
5554
|
var AlertDialogComponent = /** @class */ (function (_super) {
|
|
5478
5555
|
__extends(AlertDialogComponent, _super);
|
|
5479
5556
|
function AlertDialogComponent(alert) {
|
|
5480
|
-
var _this = _super.call(this) || this;
|
|
5481
|
-
_this.alert = alert;
|
|
5557
|
+
var _this = _super.call(this, alert) || this;
|
|
5482
5558
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5483
5559
|
_this.done();
|
|
5484
5560
|
});
|
|
5485
|
-
_this.title = exports.Alert.getTitle(alert);
|
|
5486
|
-
_this.color = exports.Alert.getColor(alert);
|
|
5487
|
-
_this.content = exports.Alert.getContent(alert);
|
|
5488
|
-
_this.confirmFace = {
|
|
5489
|
-
text: function () { return alert.ok(); },
|
|
5490
|
-
color: function () { return _this.color || "primary"; },
|
|
5491
|
-
style: function () { return "raised"; }
|
|
5492
|
-
};
|
|
5493
5561
|
return _this;
|
|
5494
5562
|
}
|
|
5495
|
-
AlertDialogComponent.prototype.isContentArray = function () {
|
|
5496
|
-
return;
|
|
5497
|
-
};
|
|
5498
|
-
AlertDialogComponent.prototype.ngOnInit = function () {
|
|
5499
|
-
};
|
|
5500
5563
|
return AlertDialogComponent;
|
|
5501
|
-
}(
|
|
5564
|
+
}(AbstractDialogComponent));
|
|
5502
5565
|
AlertDialogComponent.decorators = [
|
|
5503
5566
|
{ type: i0.Component, args: [{
|
|
5504
5567
|
selector: 'aup-alert-dialog',
|
|
@@ -5513,53 +5576,16 @@
|
|
|
5513
5576
|
var ConfirmThenDialogComponent = /** @class */ (function (_super) {
|
|
5514
5577
|
__extends(ConfirmThenDialogComponent, _super);
|
|
5515
5578
|
function ConfirmThenDialogComponent(config) {
|
|
5516
|
-
var _this = this;
|
|
5517
|
-
var _a;
|
|
5518
|
-
_this = _super.call(this) || this;
|
|
5519
|
-
_this.config = config;
|
|
5520
|
-
pectin.assert.notNil(config);
|
|
5579
|
+
var _this = _super.call(this, config.confirm) || this;
|
|
5521
5580
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5522
|
-
_this.interactionContext.startActivity(
|
|
5581
|
+
_this.interactionContext.startActivity(config.activityType, config.data)
|
|
5523
5582
|
.then(function (result) { return _this.done(result); })
|
|
5524
5583
|
.catch(function (error) { return _this.cancel(error); });
|
|
5525
5584
|
});
|
|
5526
|
-
_this.cancelCommand = pectin.Command.create(function () {
|
|
5527
|
-
return _this.cancel();
|
|
5528
|
-
});
|
|
5529
|
-
_this.title = exports.Alert.getTitle(config.confirm);
|
|
5530
|
-
_this.color = _this.isDestructive() ? 'warn' : (_a = exports.Alert.getColor(config.confirm)) !== null && _a !== void 0 ? _a : 'primary';
|
|
5531
|
-
_this.content = exports.Alert.getContent(config.confirm);
|
|
5532
|
-
_this.confirmFace = {
|
|
5533
|
-
text: function () { return _this.confirm.ok(); },
|
|
5534
|
-
color: function () { return _this.color; },
|
|
5535
|
-
style: function () { return 'raised'; }
|
|
5536
|
-
};
|
|
5537
|
-
_this.cancelFace = {
|
|
5538
|
-
text: function () { return _this.confirm.cancel(); },
|
|
5539
|
-
};
|
|
5540
5585
|
return _this;
|
|
5541
5586
|
}
|
|
5542
|
-
ConfirmThenDialogComponent.prototype.ngOnInit = function () {
|
|
5543
|
-
};
|
|
5544
|
-
Object.defineProperty(ConfirmThenDialogComponent.prototype, "confirm", {
|
|
5545
|
-
get: function () {
|
|
5546
|
-
return this.config.confirm;
|
|
5547
|
-
},
|
|
5548
|
-
enumerable: false,
|
|
5549
|
-
configurable: true
|
|
5550
|
-
});
|
|
5551
|
-
Object.defineProperty(ConfirmThenDialogComponent.prototype, "titleColor", {
|
|
5552
|
-
get: function () {
|
|
5553
|
-
return this.isDestructive() ? 'warn' : undefined;
|
|
5554
|
-
},
|
|
5555
|
-
enumerable: false,
|
|
5556
|
-
configurable: true
|
|
5557
|
-
});
|
|
5558
|
-
ConfirmThenDialogComponent.prototype.isDestructive = function () {
|
|
5559
|
-
return this.confirm.destructive && this.confirm.destructive();
|
|
5560
|
-
};
|
|
5561
5587
|
return ConfirmThenDialogComponent;
|
|
5562
|
-
}(
|
|
5588
|
+
}(AbstractConfirmDialogComponent));
|
|
5563
5589
|
ConfirmThenDialogComponent.decorators = [
|
|
5564
5590
|
{ type: i0.Component, args: [{
|
|
5565
5591
|
selector: 'aup-confirmation-dialog',
|
|
@@ -5574,65 +5600,30 @@
|
|
|
5574
5600
|
var ConfirmThenExecuteDialogComponent = /** @class */ (function (_super) {
|
|
5575
5601
|
__extends(ConfirmThenExecuteDialogComponent, _super);
|
|
5576
5602
|
function ConfirmThenExecuteDialogComponent(data) {
|
|
5577
|
-
var _this = this;
|
|
5578
|
-
var _a;
|
|
5579
|
-
_this = _super.call(this) || this;
|
|
5580
|
-
_this.data = data;
|
|
5581
|
-
pectin.assert.notNil(data);
|
|
5603
|
+
var _this = _super.call(this, data.confirm) || this;
|
|
5582
5604
|
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5583
5605
|
var result, e_1;
|
|
5584
|
-
return __generator(this, function (
|
|
5585
|
-
switch (
|
|
5606
|
+
return __generator(this, function (_a) {
|
|
5607
|
+
switch (_a.label) {
|
|
5586
5608
|
case 0:
|
|
5587
|
-
|
|
5609
|
+
_a.trys.push([0, 2, , 3]);
|
|
5588
5610
|
return [4 /*yield*/, data.operation(this.interactionContext)];
|
|
5589
5611
|
case 1:
|
|
5590
|
-
result =
|
|
5612
|
+
result = _a.sent();
|
|
5591
5613
|
this.done(result);
|
|
5592
5614
|
return [3 /*break*/, 3];
|
|
5593
5615
|
case 2:
|
|
5594
|
-
e_1 =
|
|
5616
|
+
e_1 = _a.sent();
|
|
5595
5617
|
this.cancel(e_1);
|
|
5596
5618
|
return [3 /*break*/, 3];
|
|
5597
5619
|
case 3: return [2 /*return*/];
|
|
5598
5620
|
}
|
|
5599
5621
|
});
|
|
5600
5622
|
}); });
|
|
5601
|
-
_this.cancelCommand = pectin.Command.create(function () {
|
|
5602
|
-
return _this.cancel();
|
|
5603
|
-
});
|
|
5604
|
-
_this.title = exports.Alert.getTitle(data.confirm);
|
|
5605
|
-
_this.color = _this.isDestructive() ? 'warn' : (_a = exports.Alert.getColor(data.confirm)) !== null && _a !== void 0 ? _a : 'primary';
|
|
5606
|
-
_this.content = exports.Alert.getContent(data.confirm);
|
|
5607
|
-
_this.confirmFace = {
|
|
5608
|
-
text: function () { return _this.confirm.ok(); },
|
|
5609
|
-
color: function () { return _this.color; },
|
|
5610
|
-
style: function () { return 'raised'; }
|
|
5611
|
-
};
|
|
5612
|
-
_this.cancelFace = {
|
|
5613
|
-
text: function () { return _this.confirm.cancel(); }
|
|
5614
|
-
};
|
|
5615
5623
|
return _this;
|
|
5616
5624
|
}
|
|
5617
|
-
Object.defineProperty(ConfirmThenExecuteDialogComponent.prototype, "confirm", {
|
|
5618
|
-
get: function () {
|
|
5619
|
-
return this.data.confirm;
|
|
5620
|
-
},
|
|
5621
|
-
enumerable: false,
|
|
5622
|
-
configurable: true
|
|
5623
|
-
});
|
|
5624
|
-
Object.defineProperty(ConfirmThenExecuteDialogComponent.prototype, "titleColor", {
|
|
5625
|
-
get: function () {
|
|
5626
|
-
return this.isDestructive() ? 'warn' : undefined;
|
|
5627
|
-
},
|
|
5628
|
-
enumerable: false,
|
|
5629
|
-
configurable: true
|
|
5630
|
-
});
|
|
5631
|
-
ConfirmThenExecuteDialogComponent.prototype.isDestructive = function () {
|
|
5632
|
-
return this.confirm.destructive && this.confirm.destructive();
|
|
5633
|
-
};
|
|
5634
5625
|
return ConfirmThenExecuteDialogComponent;
|
|
5635
|
-
}(
|
|
5626
|
+
}(AbstractConfirmDialogComponent));
|
|
5636
5627
|
ConfirmThenExecuteDialogComponent.decorators = [
|
|
5637
5628
|
{ type: i0.Component, args: [{
|
|
5638
5629
|
selector: 'aup-confirmation-execute-dialog',
|
|
@@ -5647,44 +5638,15 @@
|
|
|
5647
5638
|
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
5648
5639
|
__extends(ConfirmationDialogComponent, _super);
|
|
5649
5640
|
function ConfirmationDialogComponent(confirm) {
|
|
5650
|
-
var _this = this;
|
|
5651
|
-
var _a;
|
|
5652
|
-
_this = _super.call(this) || this;
|
|
5641
|
+
var _this = _super.call(this, confirm) || this;
|
|
5653
5642
|
_this.confirm = confirm;
|
|
5654
|
-
pectin.assert.notNil(confirm);
|
|
5655
5643
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5656
5644
|
return _this.done();
|
|
5657
5645
|
});
|
|
5658
|
-
_this.cancelCommand = pectin.Command.create(function () {
|
|
5659
|
-
return _this.cancel();
|
|
5660
|
-
});
|
|
5661
|
-
_this.title = exports.Alert.getTitle(confirm);
|
|
5662
|
-
_this.color = _this.isDestructive() ? 'warn' : (_a = exports.Alert.getColor(confirm)) !== null && _a !== void 0 ? _a : 'primary';
|
|
5663
|
-
_this.content = exports.Alert.getContent(confirm);
|
|
5664
|
-
_this.confirmFace = {
|
|
5665
|
-
text: function () { return confirm.ok(); },
|
|
5666
|
-
color: function () { return _this.color; },
|
|
5667
|
-
style: function () { return 'raised'; }
|
|
5668
|
-
};
|
|
5669
|
-
_this.cancelFace = {
|
|
5670
|
-
text: function () { return confirm.cancel(); }
|
|
5671
|
-
};
|
|
5672
5646
|
return _this;
|
|
5673
5647
|
}
|
|
5674
|
-
ConfirmationDialogComponent.prototype.ngOnInit = function () {
|
|
5675
|
-
};
|
|
5676
|
-
Object.defineProperty(ConfirmationDialogComponent.prototype, "titleColor", {
|
|
5677
|
-
get: function () {
|
|
5678
|
-
return this.isDestructive() ? 'warn' : undefined;
|
|
5679
|
-
},
|
|
5680
|
-
enumerable: false,
|
|
5681
|
-
configurable: true
|
|
5682
|
-
});
|
|
5683
|
-
ConfirmationDialogComponent.prototype.isDestructive = function () {
|
|
5684
|
-
return this.confirm.destructive && this.confirm.destructive();
|
|
5685
|
-
};
|
|
5686
5648
|
return ConfirmationDialogComponent;
|
|
5687
|
-
}(
|
|
5649
|
+
}(AbstractConfirmDialogComponent));
|
|
5688
5650
|
ConfirmationDialogComponent.decorators = [
|
|
5689
5651
|
{ type: i0.Component, args: [{
|
|
5690
5652
|
selector: 'aup-confirmation-dialog',
|
|
@@ -7465,7 +7427,9 @@
|
|
|
7465
7427
|
InlineActivityTriggerComponent,
|
|
7466
7428
|
ModalActivityTriggerComponent,
|
|
7467
7429
|
exports.AddCardActivityComponent,
|
|
7468
|
-
exports.InlineStringEditorComponent
|
|
7430
|
+
exports.InlineStringEditorComponent,
|
|
7431
|
+
AbstractDialogComponent,
|
|
7432
|
+
AbstractConfirmDialogComponent,
|
|
7469
7433
|
],
|
|
7470
7434
|
exports: [
|
|
7471
7435
|
ActivityContainerComponent,
|
|
@@ -10790,10 +10754,13 @@
|
|
|
10790
10754
|
*/
|
|
10791
10755
|
|
|
10792
10756
|
exports.ACTIVITY_DATA = ACTIVITY_DATA;
|
|
10757
|
+
exports.ALERT_CONFIG = ALERT_CONFIG;
|
|
10793
10758
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10794
10759
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10795
10760
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10796
10761
|
exports.AbstractCardContainerComponent = AbstractCardContainerComponent;
|
|
10762
|
+
exports.AbstractConfirmDialogComponent = AbstractConfirmDialogComponent;
|
|
10763
|
+
exports.AbstractDialogComponent = AbstractDialogComponent;
|
|
10797
10764
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10798
10765
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10799
10766
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|