@sebgroup/green-core-ng 3.18.1 → 3.19.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.
|
@@ -458,6 +458,8 @@ let GdsAlertComponent = class GdsAlertComponent {
|
|
|
458
458
|
this.gdsClose = new EventEmitter();
|
|
459
459
|
/** Fired when action button is clicked */
|
|
460
460
|
this.gdsAction = new EventEmitter();
|
|
461
|
+
/** Fired when the alert is closed internally */
|
|
462
|
+
this.gdsUiState = new EventEmitter();
|
|
461
463
|
this.cdr.detach();
|
|
462
464
|
}
|
|
463
465
|
ngOnInit() {
|
|
@@ -476,6 +478,9 @@ let GdsAlertComponent = class GdsAlertComponent {
|
|
|
476
478
|
this.elementRef.nativeElement.addEventListener('gds-action', (event) => {
|
|
477
479
|
this.gdsAction.emit(event);
|
|
478
480
|
});
|
|
481
|
+
this.elementRef.nativeElement.addEventListener('gds-ui-state', (event) => {
|
|
482
|
+
this.gdsUiState.emit(event);
|
|
483
|
+
});
|
|
479
484
|
}
|
|
480
485
|
ngOnChanges(changes) {
|
|
481
486
|
// Implementation added by @ProxyInputs decorator
|
|
@@ -484,10 +489,10 @@ let GdsAlertComponent = class GdsAlertComponent {
|
|
|
484
489
|
// Implementation added by @ProxyInputs decorator
|
|
485
490
|
}
|
|
486
491
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: GdsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
487
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.9", type: GdsAlertComponent, isStandalone: true, selector: "gds-alert", inputs: { variant: "variant", label: "label", role: "role", dismissible: ["dismissible", "dismissible", booleanAttribute], timeout: "timeout", buttonLabel: "buttonLabel", syncFirstRender: ["syncFirstRender", "syncFirstRender", booleanAttribute] }, outputs: { gdsClose: "gdsClose", gdsAction: "gdsAction" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
492
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.9", type: GdsAlertComponent, isStandalone: true, selector: "gds-alert", inputs: { variant: "variant", label: "label", alertRole: "alertRole", role: "role", closed: ["closed", "closed", booleanAttribute], dismissible: ["dismissible", "dismissible", booleanAttribute], timeout: "timeout", buttonLabel: "buttonLabel", margin: "margin", marginInline: "marginInline", marginBlock: "marginBlock", syncFirstRender: ["syncFirstRender", "syncFirstRender", booleanAttribute] }, outputs: { gdsClose: "gdsClose", gdsAction: "gdsAction", gdsUiState: "gdsUiState" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
488
493
|
};
|
|
489
494
|
GdsAlertComponent = __decorate([
|
|
490
|
-
ProxyInputs(['variant', 'label', 'role', 'dismissible', 'timeout', 'buttonLabel', 'syncFirstRender']),
|
|
495
|
+
ProxyInputs(['variant', 'label', 'alertRole', 'role', 'closed', 'dismissible', 'timeout', 'buttonLabel', 'margin', 'margin-inline', 'margin-block', 'syncFirstRender']),
|
|
491
496
|
__metadata("design:paramtypes", [])
|
|
492
497
|
], GdsAlertComponent);
|
|
493
498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: GdsAlertComponent, decorators: [{
|
|
@@ -502,8 +507,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImpor
|
|
|
502
507
|
type: Input
|
|
503
508
|
}], label: [{
|
|
504
509
|
type: Input
|
|
510
|
+
}], alertRole: [{
|
|
511
|
+
type: Input
|
|
505
512
|
}], role: [{
|
|
506
513
|
type: Input
|
|
514
|
+
}], closed: [{
|
|
515
|
+
type: Input,
|
|
516
|
+
args: [{ transform: booleanAttribute }]
|
|
507
517
|
}], dismissible: [{
|
|
508
518
|
type: Input,
|
|
509
519
|
args: [{ transform: booleanAttribute }]
|
|
@@ -511,6 +521,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImpor
|
|
|
511
521
|
type: Input
|
|
512
522
|
}], buttonLabel: [{
|
|
513
523
|
type: Input
|
|
524
|
+
}], margin: [{
|
|
525
|
+
type: Input
|
|
526
|
+
}], marginInline: [{
|
|
527
|
+
type: Input
|
|
528
|
+
}], marginBlock: [{
|
|
529
|
+
type: Input
|
|
514
530
|
}], syncFirstRender: [{
|
|
515
531
|
type: Input,
|
|
516
532
|
args: [{ transform: booleanAttribute }]
|
|
@@ -518,6 +534,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImpor
|
|
|
518
534
|
type: Output
|
|
519
535
|
}], gdsAction: [{
|
|
520
536
|
type: Output
|
|
537
|
+
}], gdsUiState: [{
|
|
538
|
+
type: Output
|
|
521
539
|
}] } });
|
|
522
540
|
|
|
523
541
|
/**
|