@seniorsistemas/angular-components 17.11.0 → 17.12.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.
Files changed (27) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +50 -0
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/index.d.ts +1 -0
  6. package/components/label-value/index.d.ts +3 -0
  7. package/components/label-value/label-value.component.d.ts +9 -0
  8. package/components/label-value/label-value.module.d.ts +2 -0
  9. package/components/label-value/types/label-value-configuration.d.ts +29 -0
  10. package/esm2015/components/custom-fields/custom-fields.component.js +4 -1
  11. package/esm2015/components/index.js +2 -1
  12. package/esm2015/components/label-value/index.js +3 -0
  13. package/esm2015/components/label-value/label-value.component.js +31 -0
  14. package/esm2015/components/label-value/label-value.module.js +20 -0
  15. package/esm2015/components/label-value/types/label-value-configuration.js +1 -0
  16. package/esm5/components/custom-fields/custom-fields.component.js +4 -1
  17. package/esm5/components/index.js +2 -1
  18. package/esm5/components/label-value/index.js +3 -0
  19. package/esm5/components/label-value/label-value.component.js +34 -0
  20. package/esm5/components/label-value/label-value.module.js +23 -0
  21. package/esm5/components/label-value/types/label-value-configuration.js +1 -0
  22. package/fesm2015/seniorsistemas-angular-components.js +43 -1
  23. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  24. package/fesm5/seniorsistemas-angular-components.js +49 -1
  25. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  26. package/package.json +1 -1
  27. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -13107,6 +13107,9 @@
13107
13107
  scale: 0,
13108
13108
  };
13109
13109
  break;
13110
+ case CustomFieldType.Any:
13111
+ field.type = exports.FieldType.String;
13112
+ break;
13110
13113
  }
13111
13114
  return new FormField(__assign({ name: field.id, label: field.customization.label, tooltip: field.customization.tooltip, infoSign: field.customization.infoSign, type: field.type, mask: field.customization.mask, required: function () { return field.customization.mandatory; }, calendarOptions: localeOptions.calendar, currencyOptions: localeOptions.number }, parameters));
13112
13115
  };
@@ -19349,6 +19352,51 @@
19349
19352
  return WorkspaceSwitchModule;
19350
19353
  }());
19351
19354
 
19355
+ var LabelValueComponent = /** @class */ (function () {
19356
+ function LabelValueComponent() {
19357
+ }
19358
+ LabelValueComponent.prototype.isBadgeConfiguration = function (config) {
19359
+ return config.type === "Badge";
19360
+ };
19361
+ LabelValueComponent.prototype.isTextConfiguration = function (config) {
19362
+ return config.type === "Text";
19363
+ };
19364
+ LabelValueComponent.prototype.isCurrencyConfiguration = function (config) {
19365
+ return config.type === "Currency";
19366
+ };
19367
+ LabelValueComponent.prototype.isNumberConfiguration = function (config) {
19368
+ return config.type === "Number";
19369
+ };
19370
+ LabelValueComponent.prototype.isDateConfiguration = function (config) {
19371
+ return config.type === "Date";
19372
+ };
19373
+ __decorate([
19374
+ core.Input()
19375
+ ], LabelValueComponent.prototype, "configuration", void 0);
19376
+ LabelValueComponent = __decorate([
19377
+ core.Component({
19378
+ selector: "s-label-value",
19379
+ 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",
19380
+ styles: [".flex{display:-ms-flexbox;display:flex}.flex-col{-ms-flex-direction:column;flex-direction:column}.font-bold{font-weight:700}"]
19381
+ })
19382
+ ], LabelValueComponent);
19383
+ return LabelValueComponent;
19384
+ }());
19385
+
19386
+ var LabelValueModule = /** @class */ (function () {
19387
+ function LabelValueModule() {
19388
+ }
19389
+ LabelValueModule = __decorate([
19390
+ core.NgModule({
19391
+ imports: [common.CommonModule, core$1.TranslateModule, BadgeModule, LocaleModule],
19392
+ providers: [ngxCookieService.CookieService],
19393
+ declarations: [LabelValueComponent],
19394
+ exports: [LabelValueComponent],
19395
+ })
19396
+ ], LabelValueModule);
19397
+ return LabelValueModule;
19398
+ }());
19399
+
19352
19400
  var fallback = {
19353
19401
  "platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
19354
19402
  "platform.angular_components.select_a_file": "selecione um arquivo",
@@ -19747,6 +19795,8 @@
19747
19795
  exports.InlineEditTextField = InlineEditTextField;
19748
19796
  exports.KanbanComponent = KanbanComponent;
19749
19797
  exports.KanbanModule = KanbanModule;
19798
+ exports.LabelValueComponent = LabelValueComponent;
19799
+ exports.LabelValueModule = LabelValueModule;
19750
19800
  exports.LoadingStateComponent = LoadingStateComponent;
19751
19801
  exports.LoadingStateDirective = LoadingStateDirective;
19752
19802
  exports.LoadingStateModule = LoadingStateModule;