@seniorsistemas/angular-components 17.7.11 → 17.8.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/bundles/seniorsistemas-angular-components.umd.js +64 -0
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/alert/alert.component.d.ts +13 -0
- package/components/alert/alert.module.d.ts +2 -0
- package/components/alert/index.d.ts +2 -0
- package/components/index.d.ts +1 -0
- package/esm2015/components/alert/alert.component.js +47 -0
- package/esm2015/components/alert/alert.module.js +15 -0
- package/esm2015/components/alert/index.js +3 -0
- package/esm2015/components/index.js +2 -1
- package/esm5/components/alert/alert.component.js +52 -0
- package/esm5/components/alert/alert.module.js +18 -0
- package/esm5/components/alert/index.js +3 -0
- package/esm5/components/index.js +2 -1
- package/fesm2015/seniorsistemas-angular-components.js +55 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +63 -1
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -928,6 +928,68 @@
|
|
|
928
928
|
return AccordionModule;
|
|
929
929
|
}());
|
|
930
930
|
|
|
931
|
+
var AlertComponent = /** @class */ (function () {
|
|
932
|
+
function AlertComponent() {
|
|
933
|
+
this.severity = "info";
|
|
934
|
+
this.closable = true;
|
|
935
|
+
this.close = new core.EventEmitter();
|
|
936
|
+
this._isOpen = true;
|
|
937
|
+
}
|
|
938
|
+
Object.defineProperty(AlertComponent.prototype, "isOpen", {
|
|
939
|
+
get: function () {
|
|
940
|
+
return this._isOpen;
|
|
941
|
+
},
|
|
942
|
+
enumerable: true,
|
|
943
|
+
configurable: true
|
|
944
|
+
});
|
|
945
|
+
AlertComponent.prototype.closeAlert = function () {
|
|
946
|
+
this._isOpen = false;
|
|
947
|
+
};
|
|
948
|
+
AlertComponent.prototype.showAlert = function () {
|
|
949
|
+
this._isOpen = true;
|
|
950
|
+
};
|
|
951
|
+
AlertComponent.prototype.onClose = function () {
|
|
952
|
+
this.close.emit();
|
|
953
|
+
this.closeAlert();
|
|
954
|
+
};
|
|
955
|
+
__decorate([
|
|
956
|
+
core.Input()
|
|
957
|
+
], AlertComponent.prototype, "severity", void 0);
|
|
958
|
+
__decorate([
|
|
959
|
+
core.Input()
|
|
960
|
+
], AlertComponent.prototype, "summary", void 0);
|
|
961
|
+
__decorate([
|
|
962
|
+
core.Input()
|
|
963
|
+
], AlertComponent.prototype, "detail", void 0);
|
|
964
|
+
__decorate([
|
|
965
|
+
core.Input()
|
|
966
|
+
], AlertComponent.prototype, "closable", void 0);
|
|
967
|
+
__decorate([
|
|
968
|
+
core.Output()
|
|
969
|
+
], AlertComponent.prototype, "close", void 0);
|
|
970
|
+
AlertComponent = __decorate([
|
|
971
|
+
core.Component({
|
|
972
|
+
selector: "s-alert",
|
|
973
|
+
template: "<div class=\"alert\" [ngClass]=\"{\n 'alert--info': severity === 'info',\n 'alert--success': severity === 'success',\n 'alert--warning': severity === 'warning',\n 'alert--error': severity === 'error'\n}\">\n <div class=\"content\">\n <div class=\"icon-container\">\n <i class=\"fas fa-info\" [ngClass]=\"{\n 'fa-info': severity === 'info',\n 'fa-check': severity === 'success',\n 'fa-exclamation-triangle': severity === 'warning',\n 'fa-times': severity === 'error'\n }\"></i>\n </div>\n <div class=\"text-container\">\n <div class=\"text\">\n <span *ngIf=\"summary\" class=\"summary\">{{ summary }}</span>\n <span *ngIf=\"detail\" class=\"detail\">{{ detail }}</span>\n </div>\n </div>\n </div>\n <button *ngIf=\"closable\" class=\"close-option\" (click)=\"onClose()\">\n <i class=\"fas fa-times\"></i>\n </button>\n</div>",
|
|
974
|
+
styles: [".alert{-ms-flex-align:center;align-items:center;background-color:#f1f7f8;border-left:4px solid #428bca;border-radius:4px;box-shadow:1px 1px 2px rgba(0,0,0,.2);display:-ms-flexbox;display:flex;gap:16px;-ms-flex-pack:justify;justify-content:space-between;margin:8px;padding:12px 16px}.alert .content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px}.alert .content .icon-container{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;color:#fff;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-ms-flex-pack:center;justify-content:center;width:40px}.alert .content .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}.alert .content .text-container .text{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start}.alert .content .text-container .text .detail,.alert .content .text-container .text .summary{color:#212533;font-family:\"Open Sans\",sans-serif;font-size:14px}.alert .content .text-container .text .summary{font-weight:700}.alert .close-option{background-color:transparent;border:none;color:#212533;cursor:pointer;font-size:16px;padding:4px}.alert--info{background-color:#f1f7f8;border-color:#428bca}.alert--info .content .icon-container{background-color:#428bca;color:#fff}.alert--success{background-color:#e0f0f0;border-color:#0c9348}.alert--success .content .icon-container{background-color:#0c9348;color:#fff}.alert--warning{background-color:#fef4e3;border-color:#fcbf10}.alert--warning .content .icon-container{background-color:#fcbf10;color:#212533}.alert--error{background-color:#fef0f0;border-color:#c13018}.alert--error .content .icon-container{background-color:#c13018;color:#fff}"]
|
|
975
|
+
})
|
|
976
|
+
], AlertComponent);
|
|
977
|
+
return AlertComponent;
|
|
978
|
+
}());
|
|
979
|
+
|
|
980
|
+
var AlertModule = /** @class */ (function () {
|
|
981
|
+
function AlertModule() {
|
|
982
|
+
}
|
|
983
|
+
AlertModule = __decorate([
|
|
984
|
+
core.NgModule({
|
|
985
|
+
imports: [common.CommonModule],
|
|
986
|
+
declarations: [AlertComponent],
|
|
987
|
+
exports: [AlertComponent],
|
|
988
|
+
})
|
|
989
|
+
], AlertModule);
|
|
990
|
+
return AlertModule;
|
|
991
|
+
}());
|
|
992
|
+
|
|
931
993
|
// Lembrar que toda vez que for adicionada uma cor nova, ser criada a referência no `EnumBadgeColors`
|
|
932
994
|
// do s-table-columns.
|
|
933
995
|
|
|
@@ -17930,6 +17992,8 @@
|
|
|
17930
17992
|
exports.AccordionComponent = AccordionComponent;
|
|
17931
17993
|
exports.AccordionModule = AccordionModule;
|
|
17932
17994
|
exports.AccordionPanelComponent = AccordionPanelComponent;
|
|
17995
|
+
exports.AlertComponent = AlertComponent;
|
|
17996
|
+
exports.AlertModule = AlertModule;
|
|
17933
17997
|
exports.AngularComponentsModule = AngularComponentsModule;
|
|
17934
17998
|
exports.AutocompleteField = AutocompleteField;
|
|
17935
17999
|
exports.BadgeComponent = BadgeComponent;
|