@seniorsistemas/angular-components 15.1.1 → 15.2.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.
Files changed (48) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +325 -59
  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/info-sign/info-sign.component.d.ts +0 -1
  6. package/components/table/table-paging/table-paging.component.d.ts +6 -2
  7. package/components/tooltip/index.d.ts +2 -0
  8. package/components/tooltip/models/index.d.ts +1 -0
  9. package/components/tooltip/models/tooltip-position.d.ts +7 -0
  10. package/components/tooltip/tooltip.component.d.ts +9 -0
  11. package/components/tooltip/tooltip.directive.d.ts +26 -0
  12. package/components/tooltip/tooltip.module.d.ts +2 -0
  13. package/esm2015/components/info-sign/info-sign.component.js +3 -3
  14. package/esm2015/components/info-sign/info-sign.directive.js +2 -2
  15. package/esm2015/components/info-sign/info-sign.module.js +10 -4
  16. package/esm2015/components/table/table-column/table-columns.component.js +1 -1
  17. package/esm2015/components/table/table-paging/table-paging.component.js +33 -12
  18. package/esm2015/components/table/table.module.js +2 -2
  19. package/esm2015/components/tooltip/index.js +3 -0
  20. package/esm2015/components/tooltip/models/index.js +2 -0
  21. package/esm2015/components/tooltip/models/tooltip-position.js +9 -0
  22. package/esm2015/components/tooltip/tooltip.component.js +21 -0
  23. package/esm2015/components/tooltip/tooltip.directive.js +195 -0
  24. package/esm2015/components/tooltip/tooltip.module.js +19 -0
  25. package/esm2015/public-api.js +2 -1
  26. package/esm2015/seniorsistemas-angular-components.js +48 -45
  27. package/esm5/components/info-sign/info-sign.component.js +3 -2
  28. package/esm5/components/info-sign/info-sign.directive.js +2 -2
  29. package/esm5/components/info-sign/info-sign.module.js +10 -4
  30. package/esm5/components/table/table-column/table-columns.component.js +1 -1
  31. package/esm5/components/table/table-paging/table-paging.component.js +33 -12
  32. package/esm5/components/table/table.module.js +2 -2
  33. package/esm5/components/tooltip/index.js +3 -0
  34. package/esm5/components/tooltip/models/index.js +2 -0
  35. package/esm5/components/tooltip/models/tooltip-position.js +9 -0
  36. package/esm5/components/tooltip/tooltip.component.js +22 -0
  37. package/esm5/components/tooltip/tooltip.directive.js +196 -0
  38. package/esm5/components/tooltip/tooltip.module.js +22 -0
  39. package/esm5/public-api.js +2 -1
  40. package/esm5/seniorsistemas-angular-components.js +48 -45
  41. package/fesm2015/seniorsistemas-angular-components.js +286 -30
  42. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  43. package/fesm5/seniorsistemas-angular-components.js +291 -29
  44. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  45. package/package.json +1 -1
  46. package/public-api.d.ts +1 -0
  47. package/seniorsistemas-angular-components.d.ts +47 -44
  48. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -3214,13 +3214,248 @@
3214
3214
  return FileUploadModule;
3215
3215
  }());
3216
3216
 
3217
+
3218
+ (function (TooltipPosition) {
3219
+ TooltipPosition["Above"] = "above";
3220
+ TooltipPosition["Below"] = "below";
3221
+ TooltipPosition["Left"] = "left";
3222
+ TooltipPosition["Right"] = "right";
3223
+ TooltipPosition["Default"] = "above";
3224
+ })(exports.TooltipPosition || (exports.TooltipPosition = {}));
3225
+
3226
+ var TooltipComponent = /** @class */ (function () {
3227
+ function TooltipComponent() {
3228
+ this.tooltip = "";
3229
+ this.position = exports.TooltipPosition.Default;
3230
+ this.left = 0;
3231
+ this.top = 0;
3232
+ this.visible = false;
3233
+ this.escape = false;
3234
+ }
3235
+ TooltipComponent = __decorate([
3236
+ core.Component({
3237
+ template: "<div\n class=\"tooltip\"\n [ngClass]=\"['tooltip--' + position]\"\n [class.tooltip--visible]=\"visible\"\n [ngStyle]=\"{\n 'left': left + 'px',\n 'top': top + 'px'\n }\">\n <ng-template\n *ngIf=\"escape;\n then escapeTemplate;\n else noEscapeTemplate\">\n </ng-template> \n</div>\n\n<ng-template #noEscapeTemplate>\n <span\n class=\"tooltip__content\"\n [innerHTML]=\"tooltip\">\n </span>\n</ng-template>\n\n<ng-template #escapeTemplate>\n <span class=\"tooltip__content\">\n {{ tooltip }}\n </span>\n</ng-template>",
3238
+ styles: [".tooltip{background-color:#000;border-radius:2px;color:#fff;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:400;line-height:21px;margin-top:5px;opacity:0;padding:8px;position:fixed;transform:translateX(-50%);text-align:center;z-index:99999}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip::before{content:\"\";height:0;position:absolute;width:0}.tooltip--below{margin-top:8px;transform:translateX(-50%)}.tooltip--below::before{border:5px solid transparent;border-bottom:5px solid #000;left:calc(50% - 5px);top:-10px}.tooltip--above{margin-bottom:8px;transform:translate(-50%,-100%)}.tooltip--above::before{border:5px solid transparent;border-top:5px solid #000;left:calc(50% - 5px);bottom:-10px}.tooltip--left{margin-right:28px;transform:translate(calc(-100% - 7px),-50%)}.tooltip--left::before{border:5px solid transparent;border-left:5px solid #000;right:-10px;bottom:calc(50% - 5px)}.tooltip--right{margin-left:7px;transform:translateY(-50%)}.tooltip--right::before{border:5px solid transparent;border-right:5px solid #000;left:-10px;bottom:calc(50% - 5px)}"]
3239
+ })
3240
+ ], TooltipComponent);
3241
+ return TooltipComponent;
3242
+ }());
3243
+
3244
+ var TooltipDirective = /** @class */ (function () {
3245
+ function TooltipDirective(elementRef, appRef, componentFactoryResolver, injector) {
3246
+ this.elementRef = elementRef;
3247
+ this.appRef = appRef;
3248
+ this.componentFactoryResolver = componentFactoryResolver;
3249
+ this.injector = injector;
3250
+ this.position = exports.TooltipPosition.Default;
3251
+ this.showDelay = 500;
3252
+ this.escape = false;
3253
+ this.componentRef = null;
3254
+ }
3255
+ TooltipDirective.prototype.ngOnDestroy = function () {
3256
+ this.destroy();
3257
+ };
3258
+ TooltipDirective.prototype.onMouseEnter = function () {
3259
+ this.createTootip();
3260
+ };
3261
+ TooltipDirective.prototype.onMouseLeave = function () {
3262
+ this.setHideTooltipTimeout();
3263
+ };
3264
+ TooltipDirective.prototype.onTouchStart = function ($event) {
3265
+ $event.preventDefault();
3266
+ window.clearTimeout(this.touchTimeout);
3267
+ this.touchTimeout = window.setTimeout(this.createTootip.bind(this), 500);
3268
+ };
3269
+ TooltipDirective.prototype.onTouchEnd = function () {
3270
+ window.clearTimeout(this.touchTimeout);
3271
+ this.setHideTooltipTimeout();
3272
+ };
3273
+ TooltipDirective.prototype.setHideTooltipTimeout = function () {
3274
+ this.destroy();
3275
+ };
3276
+ TooltipDirective.prototype.createTootip = function () {
3277
+ var _a;
3278
+ if (this.componentRef === null && ((_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.length)) {
3279
+ var componentFactory = this.componentFactoryResolver.resolveComponentFactory(TooltipComponent);
3280
+ this.componentRef = componentFactory.create(this.injector);
3281
+ this.appRef.attachView(this.componentRef.hostView);
3282
+ var domElem = this.componentRef.hostView.rootNodes[0];
3283
+ this.elementRef.nativeElement.appendChild(domElem);
3284
+ this.setTooltipComponentProperties();
3285
+ this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);
3286
+ }
3287
+ };
3288
+ TooltipDirective.prototype.showTooltip = function () {
3289
+ if (this.componentRef !== null) {
3290
+ this.componentRef.instance.visible = true;
3291
+ }
3292
+ };
3293
+ TooltipDirective.prototype.setTooltipComponentProperties = function () {
3294
+ var margin = 16;
3295
+ var anchorSize = 5;
3296
+ if (this.componentRef !== null) {
3297
+ this.componentRef.instance.tooltip = this.tooltip;
3298
+ this.componentRef.instance.escape = this.escape;
3299
+ var _a = this.elementRef.nativeElement.getBoundingClientRect(), left = _a.left, right = _a.right, top_1 = _a.top, bottom = _a.bottom;
3300
+ var tooltipHeight = bottom - top_1;
3301
+ var tooltipWidth = right - left;
3302
+ var safeSpace = 150;
3303
+ var positioned = false;
3304
+ var invalidOptions = [];
3305
+ while (!positioned) {
3306
+ if (invalidOptions.includes(exports.TooltipPosition.Above)
3307
+ && invalidOptions.includes(exports.TooltipPosition.Below)
3308
+ && invalidOptions.includes(exports.TooltipPosition.Left)
3309
+ && invalidOptions.includes(exports.TooltipPosition.Right)) {
3310
+ this.destroy();
3311
+ throw new Error("No space to show tooltip");
3312
+ }
3313
+ switch (this.position) {
3314
+ case exports.TooltipPosition.Below: {
3315
+ if (invalidOptions.includes(exports.TooltipPosition.Below)) {
3316
+ this.position = exports.TooltipPosition.Left;
3317
+ break;
3318
+ }
3319
+ var bottomShift = document.body.clientHeight - bottom;
3320
+ if (bottomShift <= tooltipHeight + safeSpace) {
3321
+ this.position = exports.TooltipPosition.Above;
3322
+ invalidOptions.push(exports.TooltipPosition.Below);
3323
+ break;
3324
+ }
3325
+ this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
3326
+ this.componentRef.instance.top = Math.round(bottom + margin);
3327
+ positioned = true;
3328
+ break;
3329
+ }
3330
+ case exports.TooltipPosition.Above: {
3331
+ if (invalidOptions.includes(exports.TooltipPosition.Above)) {
3332
+ this.position = exports.TooltipPosition.Left;
3333
+ break;
3334
+ }
3335
+ var topShift = top_1;
3336
+ if (topShift <= tooltipHeight + safeSpace) {
3337
+ this.position = exports.TooltipPosition.Below;
3338
+ invalidOptions.push(exports.TooltipPosition.Above);
3339
+ positioned = false;
3340
+ break;
3341
+ }
3342
+ this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
3343
+ this.componentRef.instance.top = Math.round(top_1 - margin);
3344
+ positioned = true;
3345
+ break;
3346
+ }
3347
+ case exports.TooltipPosition.Right: {
3348
+ if (invalidOptions.includes(exports.TooltipPosition.Right)) {
3349
+ this.position = exports.TooltipPosition.Above;
3350
+ break;
3351
+ }
3352
+ var rightShift = document.body.clientWidth - right;
3353
+ if (rightShift <= tooltipWidth + safeSpace) {
3354
+ this.position = exports.TooltipPosition.Left;
3355
+ invalidOptions.push(exports.TooltipPosition.Right);
3356
+ positioned = false;
3357
+ break;
3358
+ }
3359
+ this.componentRef.instance.left = Math.round(right + margin);
3360
+ this.componentRef.instance.top = Math.round(top_1 + tooltipHeight / 2 - anchorSize);
3361
+ positioned = true;
3362
+ break;
3363
+ }
3364
+ case exports.TooltipPosition.Left: {
3365
+ if (invalidOptions.includes(exports.TooltipPosition.Left)) {
3366
+ this.position = exports.TooltipPosition.Above;
3367
+ break;
3368
+ }
3369
+ var leftShift = left;
3370
+ if (leftShift <= tooltipWidth + safeSpace) {
3371
+ this.position = exports.TooltipPosition.Right;
3372
+ invalidOptions.push(exports.TooltipPosition.Left);
3373
+ positioned = false;
3374
+ break;
3375
+ }
3376
+ this.componentRef.instance.left = Math.round(left - margin);
3377
+ this.componentRef.instance.top = Math.round(top_1 + tooltipHeight / 2 - anchorSize);
3378
+ positioned = true;
3379
+ break;
3380
+ }
3381
+ default: {
3382
+ break;
3383
+ }
3384
+ }
3385
+ this.componentRef.instance.position = this.position;
3386
+ }
3387
+ }
3388
+ };
3389
+ TooltipDirective.prototype.destroy = function () {
3390
+ if (this.componentRef !== null) {
3391
+ window.clearTimeout(this.showTimeout);
3392
+ this.appRef.detachView(this.componentRef.hostView);
3393
+ this.componentRef.destroy();
3394
+ this.componentRef = null;
3395
+ }
3396
+ };
3397
+ TooltipDirective.ctorParameters = function () { return [
3398
+ { type: core.ElementRef },
3399
+ { type: core.ApplicationRef },
3400
+ { type: core.ComponentFactoryResolver },
3401
+ { type: core.Injector }
3402
+ ]; };
3403
+ __decorate([
3404
+ core.Input("sTooltip")
3405
+ ], TooltipDirective.prototype, "tooltip", void 0);
3406
+ __decorate([
3407
+ core.Input("tooltipPosition")
3408
+ ], TooltipDirective.prototype, "position", void 0);
3409
+ __decorate([
3410
+ core.Input()
3411
+ ], TooltipDirective.prototype, "showDelay", void 0);
3412
+ __decorate([
3413
+ core.Input()
3414
+ ], TooltipDirective.prototype, "escape", void 0);
3415
+ __decorate([
3416
+ core.HostListener("mouseenter")
3417
+ ], TooltipDirective.prototype, "onMouseEnter", null);
3418
+ __decorate([
3419
+ core.HostListener("mouseleave")
3420
+ ], TooltipDirective.prototype, "onMouseLeave", null);
3421
+ __decorate([
3422
+ core.HostListener("touchstart", ["$event"])
3423
+ ], TooltipDirective.prototype, "onTouchStart", null);
3424
+ __decorate([
3425
+ core.HostListener("touchend")
3426
+ ], TooltipDirective.prototype, "onTouchEnd", null);
3427
+ TooltipDirective = __decorate([
3428
+ core.Directive({
3429
+ selector: "[sTooltip]",
3430
+ })
3431
+ ], TooltipDirective);
3432
+ return TooltipDirective;
3433
+ }());
3434
+
3435
+ var TooltipModule = /** @class */ (function () {
3436
+ function TooltipModule() {
3437
+ }
3438
+ TooltipModule = __decorate([
3439
+ core.NgModule({
3440
+ imports: [common.CommonModule],
3441
+ declarations: [
3442
+ TooltipComponent,
3443
+ TooltipDirective,
3444
+ ],
3445
+ exports: [TooltipDirective],
3446
+ })
3447
+ ], TooltipModule);
3448
+ return TooltipModule;
3449
+ }());
3450
+
3217
3451
  var InfoSignComponent = /** @class */ (function () {
3218
3452
  function InfoSignComponent() {
3219
3453
  }
3220
3454
  InfoSignComponent = __decorate([
3221
3455
  core.Component({
3222
3456
  selector: "s-info-sign-component",
3223
- template: "<span style=\"display: inline-flex; justify-content: flex-start; align-items: baseline;\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i class=\"fa fa-info-circle\"\n aria-hidden=\"true\"\n style=\"padding-left: 10px\"\n [pTooltip]=\"tooltip\"\n [escape]=\"false\"></i>\n</span>"
3457
+ template: "<span class=\"info-sign\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i\n class=\"info-sign__icon fa fa-info-circle\"\n aria-hidden=\"true\"\n [sTooltip]=\"tooltip\"\n [escape]=\"false\"\n tooltipPosition=\"right\"\n showDelay=\"0\">\n </i>\n</span>",
3458
+ styles: [".info-sign{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start}.info-sign .info-sign__icon{padding:0 12px}"]
3224
3459
  })
3225
3460
  ], InfoSignComponent);
3226
3461
  return InfoSignComponent;
@@ -3274,8 +3509,14 @@
3274
3509
  }
3275
3510
  InfoSignModule = __decorate([
3276
3511
  core.NgModule({
3277
- imports: [tooltip.TooltipModule, common.CommonModule],
3278
- declarations: [InfoSignDirective, InfoSignComponent],
3512
+ imports: [
3513
+ TooltipModule,
3514
+ common.CommonModule,
3515
+ ],
3516
+ declarations: [
3517
+ InfoSignDirective,
3518
+ InfoSignComponent,
3519
+ ],
3279
3520
  exports: [InfoSignDirective],
3280
3521
  entryComponents: [InfoSignComponent],
3281
3522
  })
@@ -4553,7 +4794,7 @@
4553
4794
  ], TableColumnsComponent.prototype, "locale", void 0);
4554
4795
  TableColumnsComponent = __decorate([
4555
4796
  core.Component({
4556
- template: "<ng-template #columnsTemplate>\n <td *ngFor=\"let column of formattedColumns\"\n [ngStyle]=\"column.style\"\n (click)=\"column.onColumnClick ? column.onColumnClick(rowValue) : null\">\n\n <div *ngIf=\"column.type !== 'TOKENS' || !isArray(column.columnValue); else tokensTemplate\">\n <span *ngIf=\"column.type !== 'LINK'\"\n [pTooltip]=\"column.tooltip\"\n [escape]=\"false\"\n [ngClass]=\"column.badgeClass\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </span>\n\n <a *ngIf=\"column.type === 'LINK'\"\n [pTooltip]=\"column.tooltip\"\n [escape]=\"false\"\n (click)=\"column.onLinkClick ? column.onLinkClick(rowValue) : null\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </a>\n\n <ng-template #columnValueTemplate>\n <span *ngFor=\"let value of getSplittedString(column)\">\n <span [ngClass]=\"{ 'sds-empty-value': value.isUninformed }\">{{value.value}}</span>\n <span>{{value.separator}}</span>\n </span>\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list\n [tokens]=\"column.columnValue\"\n [hidePointerEvents]=\"true\"\n >\n </s-token-list>\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </td>\n</ng-template>\n",
4797
+ template: "<ng-template #columnsTemplate>\n <td *ngFor=\"let column of formattedColumns\"\n [ngStyle]=\"column.style\"\n (click)=\"column.onColumnClick ? column.onColumnClick(rowValue) : null\">\n\n <div *ngIf=\"column.type !== 'TOKENS' || !isArray(column.columnValue); else tokensTemplate\">\n <span *ngIf=\"column.type !== 'LINK'\"\n [sTooltip]=\"column.tooltip\"\n [escape]=\"false\"\n [ngClass]=\"column.badgeClass\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </span>\n\n <a *ngIf=\"column.type === 'LINK'\"\n [sTooltip]=\"column.tooltip\"\n [escape]=\"false\"\n (click)=\"column.onLinkClick ? column.onLinkClick(rowValue) : null\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </a>\n\n <ng-template #columnValueTemplate>\n <span *ngFor=\"let value of getSplittedString(column)\">\n <span [ngClass]=\"{ 'sds-empty-value': value.isUninformed }\">{{value.value}}</span>\n <span>{{value.separator}}</span>\n </span>\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list\n [tokens]=\"column.columnValue\"\n [hidePointerEvents]=\"true\"\n >\n </s-token-list>\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </td>\n</ng-template>\n",
4557
4798
  selector: "s-table-columns",
4558
4799
  styles: [":host{display:none}"]
4559
4800
  }),
@@ -4688,11 +4929,27 @@
4688
4929
  TablePagingComponent.prototype.getSelectedRowsToExport = function (columns) {
4689
4930
  return this.mapColumnsTranslations(columns, this.table.selection);
4690
4931
  };
4932
+ TablePagingComponent.prototype.getInnerPropValue = function (obj, path) {
4933
+ return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? undefined : result[prop]); }, obj);
4934
+ };
4935
+ TablePagingComponent.prototype.setInnerPropValue = function (obj, path, value) {
4936
+ this.recursionSet(obj, path.split("."), value);
4937
+ };
4938
+ TablePagingComponent.prototype.recursionSet = function (obj, keysList, value) {
4939
+ var key = keysList[0];
4940
+ if (keysList.length === 1) {
4941
+ obj[key] = value;
4942
+ return obj;
4943
+ }
4944
+ obj[key] = (this.recursionSet((obj === null || obj === void 0 ? void 0 : obj[key]) || {}, keysList.slice(1), value));
4945
+ return obj;
4946
+ };
4691
4947
  TablePagingComponent.prototype.mapColumnsTranslations = function (columns, rows) {
4692
4948
  var _this = this;
4693
4949
  var enumColumns = columns.filter(function (p) { return p.enumPrefix; });
4694
- if (!enumColumns.length)
4950
+ if (!enumColumns.length) {
4695
4951
  return rows;
4952
+ }
4696
4953
  return __spread(rows).map(function (row) {
4697
4954
  var newRow = __assign({}, row);
4698
4955
  var _loop_1 = function (i) {
@@ -4702,17 +4959,12 @@
4702
4959
  fields = [fields];
4703
4960
  }
4704
4961
  fields.forEach(function (fieldName) {
4705
- var columnData = row[fieldName];
4706
- if (columnData === null || columnData === undefined)
4962
+ var columnData = _this.getInnerPropValue(row, fieldName);
4963
+ if (columnData === null || columnData === undefined) {
4707
4964
  return;
4708
- var enumValue = columnData.toString().toLowerCase();
4709
- var translationKey = column.enumPrefix + enumValue;
4710
- var translatedValue = _this.translate.instant(translationKey);
4711
- if (translationKey === translatedValue && enumValue.length > 1) {
4712
- translationKey = column.enumPrefix + enumValue.substring(0, 1) + "_" + enumValue.substr(1);
4713
- translatedValue = _this.translate.instant(translationKey);
4714
4965
  }
4715
- newRow[fieldName] = translatedValue;
4966
+ var newValue = _this.translateValue(column, columnData);
4967
+ _this.setInnerPropValue(newRow, fieldName, newValue);
4716
4968
  });
4717
4969
  };
4718
4970
  for (var i = 0; i <= enumColumns.length - 1; i++) {
@@ -4721,6 +4973,16 @@
4721
4973
  return newRow;
4722
4974
  });
4723
4975
  };
4976
+ TablePagingComponent.prototype.translateValue = function (column, columnData) {
4977
+ var enumValue = columnData.toString().toLowerCase();
4978
+ var translationKey = column.enumPrefix + enumValue;
4979
+ var translatedValue = this.translate.instant(translationKey);
4980
+ if (translationKey === translatedValue && enumValue.length > 1) {
4981
+ translationKey = "" + column.enumPrefix + enumValue.substring(0, 1) + "_" + enumValue.substr(1);
4982
+ return this.translate.instant(translationKey);
4983
+ }
4984
+ return translatedValue;
4985
+ };
4724
4986
  TablePagingComponent.prototype.getExportFileName = function () {
4725
4987
  var _a;
4726
4988
  var fileName = (_a = this.exportFileName) !== null && _a !== void 0 ? _a : "download";
@@ -4794,7 +5056,7 @@
4794
5056
  core.NgModule({
4795
5057
  imports: [
4796
5058
  common.CommonModule,
4797
- tooltip.TooltipModule,
5059
+ TooltipModule,
4798
5060
  TokenListModule,
4799
5061
  core$1.TranslateModule,
4800
5062
  ButtonModule,
@@ -9945,54 +10207,58 @@
9945
10207
  exports.TimelineModule = TimelineModule;
9946
10208
  exports.TokenListComponent = TokenListComponent;
9947
10209
  exports.TokenListModule = TokenListModule;
10210
+ exports.TooltipModule = TooltipModule;
9948
10211
  exports.ɵa = LocalizedCurrencyImpurePipe;
9949
10212
  exports.ɵb = LocalizedBignumberPipe;
9950
- exports.ɵbb = DecimalField;
9951
- exports.ɵbc = StructureModule;
9952
- exports.ɵbd = HeaderComponent;
9953
- exports.ɵbe = FooterComponent;
9954
- exports.ɵbf = NumberLocaleOptions;
9955
- exports.ɵbg = ThumbnailService;
9956
- exports.ɵbh = TimelineItemModule;
9957
- exports.ɵbi = TimelineIconItemComponent;
9958
- exports.ɵbj = HorizontalTimelineModule;
9959
- exports.ɵbk = HorizontalTimelineComponent;
9960
- exports.ɵbl = VerticalTimelineModule;
9961
- exports.ɵbm = VerticalTimelineComponent;
9962
- exports.ɵbn = RangeLineComponent;
9963
- exports.ɵbo = CollapseOptionComponent;
9964
- exports.ɵbp = CollapsedItemsComponent;
9965
- exports.ɵbq = VerticalItemsComponent;
9966
- exports.ɵbr = InfiniteScrollModule;
9967
- exports.ɵbs = InfiniteScrollDirective;
9968
- exports.ɵbt = CustomTranslationsModule;
9969
- exports.ɵbu = CodeEditorComponent;
9970
- exports.ɵbv = CoreFacade;
9971
- exports.ɵbw = CodeMirror6Core;
10213
+ exports.ɵba = TextAreaFieldComponent;
10214
+ exports.ɵbb = TextFieldComponent;
10215
+ exports.ɵbc = BooleanSwitchFieldComponent;
10216
+ exports.ɵbe = DecimalField;
10217
+ exports.ɵbf = StructureModule;
10218
+ exports.ɵbg = HeaderComponent;
10219
+ exports.ɵbh = FooterComponent;
10220
+ exports.ɵbi = NumberLocaleOptions;
10221
+ exports.ɵbj = ThumbnailService;
10222
+ exports.ɵbk = TimelineItemModule;
10223
+ exports.ɵbl = TimelineIconItemComponent;
10224
+ exports.ɵbm = HorizontalTimelineModule;
10225
+ exports.ɵbn = HorizontalTimelineComponent;
10226
+ exports.ɵbo = VerticalTimelineModule;
10227
+ exports.ɵbp = VerticalTimelineComponent;
10228
+ exports.ɵbq = RangeLineComponent;
10229
+ exports.ɵbr = CollapseOptionComponent;
10230
+ exports.ɵbs = CollapsedItemsComponent;
10231
+ exports.ɵbt = VerticalItemsComponent;
10232
+ exports.ɵbu = InfiniteScrollModule;
10233
+ exports.ɵbv = InfiniteScrollDirective;
10234
+ exports.ɵbw = CustomTranslationsModule;
10235
+ exports.ɵbx = CodeEditorComponent;
10236
+ exports.ɵby = CoreFacade;
10237
+ exports.ɵbz = CodeMirror6Core;
9972
10238
  exports.ɵc = LocalizedBignumberImpurePipe;
9973
10239
  exports.ɵd = EmptyStateGoBackComponent;
9974
- exports.ɵe = InfoSignComponent;
9975
- exports.ɵf = TableColumnsComponent;
9976
- exports.ɵg = TablePagingComponent;
9977
- exports.ɵh = AutocompleteFieldComponent;
9978
- exports.ɵi = BooleanFieldComponent;
9979
- exports.ɵj = CalendarFieldComponent;
9980
- exports.ɵk = ChipsFieldComponent;
9981
- exports.ɵl = CurrencyFieldComponent;
9982
- exports.ɵm = DynamicFieldComponent;
9983
- exports.ɵn = DynamicFormDirective;
9984
- exports.ɵo = FieldsetComponent;
9985
- exports.ɵp = FileUploadComponent$1;
9986
- exports.ɵq = LookupFieldComponent;
9987
- exports.ɵr = NumberFieldComponent;
9988
- exports.ɵs = BignumberFieldComponent;
9989
- exports.ɵt = RadioButtonComponent;
9990
- exports.ɵu = RowComponent;
9991
- exports.ɵv = SectionComponent;
9992
- exports.ɵw = SelectFieldComponent;
9993
- exports.ɵx = TextAreaFieldComponent;
9994
- exports.ɵy = TextFieldComponent;
9995
- exports.ɵz = BooleanSwitchFieldComponent;
10240
+ exports.ɵe = TooltipModule;
10241
+ exports.ɵf = TooltipComponent;
10242
+ exports.ɵg = TooltipDirective;
10243
+ exports.ɵh = InfoSignComponent;
10244
+ exports.ɵi = TableColumnsComponent;
10245
+ exports.ɵj = TablePagingComponent;
10246
+ exports.ɵk = AutocompleteFieldComponent;
10247
+ exports.ɵl = BooleanFieldComponent;
10248
+ exports.ɵm = CalendarFieldComponent;
10249
+ exports.ɵn = ChipsFieldComponent;
10250
+ exports.ɵo = CurrencyFieldComponent;
10251
+ exports.ɵp = DynamicFieldComponent;
10252
+ exports.ɵq = DynamicFormDirective;
10253
+ exports.ɵr = FieldsetComponent;
10254
+ exports.ɵs = FileUploadComponent$1;
10255
+ exports.ɵt = LookupFieldComponent;
10256
+ exports.ɵu = NumberFieldComponent;
10257
+ exports.ɵv = BignumberFieldComponent;
10258
+ exports.ɵw = RadioButtonComponent;
10259
+ exports.ɵx = RowComponent;
10260
+ exports.ɵy = SectionComponent;
10261
+ exports.ɵz = SelectFieldComponent;
9996
10262
 
9997
10263
  Object.defineProperty(exports, '__esModule', { value: true });
9998
10264