@seniorsistemas/angular-components 17.11.0 → 17.12.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 +47 -0
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/label-value/index.d.ts +3 -0
- package/components/label-value/label-value.component.d.ts +9 -0
- package/components/label-value/label-value.module.d.ts +2 -0
- package/components/label-value/types/label-value-configuration.d.ts +29 -0
- package/esm2015/components/index.js +2 -1
- package/esm2015/components/label-value/index.js +3 -0
- package/esm2015/components/label-value/label-value.component.js +31 -0
- package/esm2015/components/label-value/label-value.module.js +20 -0
- package/esm2015/components/label-value/types/label-value-configuration.js +1 -0
- package/esm5/components/index.js +2 -1
- package/esm5/components/label-value/index.js +3 -0
- package/esm5/components/label-value/label-value.component.js +34 -0
- package/esm5/components/label-value/label-value.module.js +23 -0
- package/esm5/components/label-value/types/label-value-configuration.js +1 -0
- package/fesm2015/seniorsistemas-angular-components.js +40 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +46 -1
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -19349,6 +19349,51 @@
|
|
|
19349
19349
|
return WorkspaceSwitchModule;
|
|
19350
19350
|
}());
|
|
19351
19351
|
|
|
19352
|
+
var LabelValueComponent = /** @class */ (function () {
|
|
19353
|
+
function LabelValueComponent() {
|
|
19354
|
+
}
|
|
19355
|
+
LabelValueComponent.prototype.isBadgeConfiguration = function (config) {
|
|
19356
|
+
return config.type === "Badge";
|
|
19357
|
+
};
|
|
19358
|
+
LabelValueComponent.prototype.isTextConfiguration = function (config) {
|
|
19359
|
+
return config.type === "Text";
|
|
19360
|
+
};
|
|
19361
|
+
LabelValueComponent.prototype.isCurrencyConfiguration = function (config) {
|
|
19362
|
+
return config.type === "Currency";
|
|
19363
|
+
};
|
|
19364
|
+
LabelValueComponent.prototype.isNumberConfiguration = function (config) {
|
|
19365
|
+
return config.type === "Number";
|
|
19366
|
+
};
|
|
19367
|
+
LabelValueComponent.prototype.isDateConfiguration = function (config) {
|
|
19368
|
+
return config.type === "Date";
|
|
19369
|
+
};
|
|
19370
|
+
__decorate([
|
|
19371
|
+
core.Input()
|
|
19372
|
+
], LabelValueComponent.prototype, "configuration", void 0);
|
|
19373
|
+
LabelValueComponent = __decorate([
|
|
19374
|
+
core.Component({
|
|
19375
|
+
selector: "s-label-value",
|
|
19376
|
+
template: "<div class=\"flex flex-col\">\n <p class=\"font-bold\">\n {{ configuration.title }}\n </p>\n\n <ng-container *ngIf=\"configuration.value; else emptyStateTemplate\">\n <ng-container *ngIf=\"isTextConfiguration(configuration)\">\n <span class=\"sds-readonly\">\n {{ configuration.value }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"isBadgeConfiguration(configuration)\">\n <!-- TODO: Container para organizar as badges. -->\n <ng-container *ngFor=\"let badge of configuration.value\">\n <s-badge\n [type]=\"badge.type\"\n [color]=\"badge.color\"\n [text]=\"badge.text\"\n [iconClass]=\"badge.iconClass\"\n [iconPosition]=\"badge.iconPosition\"\n ></s-badge>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"isCurrencyConfiguration(configuration)\">\n <span class=\"sds-readonly\">\n {{\n configuration.value | numeric: { numberFormatOptions: { style: \"currency\", currency: configuration.currency } } | async\n }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"isNumberConfiguration(configuration)\">\n <span class=\"sds-readonly\">\n {{ configuration.value | localizedNumber | async }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"isDateConfiguration(configuration)\">\n <span class=\"sds-readonly\">\n {{ configuration.value | localizedDate: configuration.format || \"L\" | async }}\n </span>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #emptyStateTemplate>\n <span class=\"sds-empty-value\">\n {{ \"platform.angular_components.not_informed\" | translate }}\n </span>\n</ng-template>\n",
|
|
19377
|
+
styles: [".flex{display:-ms-flexbox;display:flex}.flex-col{-ms-flex-direction:column;flex-direction:column}.font-bold{font-weight:700}"]
|
|
19378
|
+
})
|
|
19379
|
+
], LabelValueComponent);
|
|
19380
|
+
return LabelValueComponent;
|
|
19381
|
+
}());
|
|
19382
|
+
|
|
19383
|
+
var LabelValueModule = /** @class */ (function () {
|
|
19384
|
+
function LabelValueModule() {
|
|
19385
|
+
}
|
|
19386
|
+
LabelValueModule = __decorate([
|
|
19387
|
+
core.NgModule({
|
|
19388
|
+
imports: [common.CommonModule, core$1.TranslateModule, BadgeModule, LocaleModule],
|
|
19389
|
+
providers: [ngxCookieService.CookieService],
|
|
19390
|
+
declarations: [LabelValueComponent],
|
|
19391
|
+
exports: [LabelValueComponent],
|
|
19392
|
+
})
|
|
19393
|
+
], LabelValueModule);
|
|
19394
|
+
return LabelValueModule;
|
|
19395
|
+
}());
|
|
19396
|
+
|
|
19352
19397
|
var fallback = {
|
|
19353
19398
|
"platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
|
|
19354
19399
|
"platform.angular_components.select_a_file": "selecione um arquivo",
|
|
@@ -19747,6 +19792,8 @@
|
|
|
19747
19792
|
exports.InlineEditTextField = InlineEditTextField;
|
|
19748
19793
|
exports.KanbanComponent = KanbanComponent;
|
|
19749
19794
|
exports.KanbanModule = KanbanModule;
|
|
19795
|
+
exports.LabelValueComponent = LabelValueComponent;
|
|
19796
|
+
exports.LabelValueModule = LabelValueModule;
|
|
19750
19797
|
exports.LoadingStateComponent = LoadingStateComponent;
|
|
19751
19798
|
exports.LoadingStateDirective = LoadingStateDirective;
|
|
19752
19799
|
exports.LoadingStateModule = LoadingStateModule;
|