@seniorsistemas/angular-components 15.1.2 → 15.3.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 (51) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +338 -70
  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/file-upload/file-upload.component.d.ts +8 -5
  6. package/components/file-upload/models/validate-errors.d.ts +2 -1
  7. package/components/info-sign/info-sign.component.d.ts +0 -1
  8. package/components/tooltip/index.d.ts +2 -0
  9. package/components/tooltip/models/index.d.ts +1 -0
  10. package/components/tooltip/models/tooltip-position.d.ts +7 -0
  11. package/components/tooltip/tooltip.component.d.ts +9 -0
  12. package/components/tooltip/tooltip.directive.d.ts +26 -0
  13. package/components/tooltip/tooltip.module.d.ts +2 -0
  14. package/esm2015/components/file-upload/file-upload.component.js +37 -15
  15. package/esm2015/components/file-upload/models/validate-errors.js +2 -1
  16. package/esm2015/components/info-sign/info-sign.component.js +3 -3
  17. package/esm2015/components/info-sign/info-sign.directive.js +2 -2
  18. package/esm2015/components/info-sign/info-sign.module.js +10 -4
  19. package/esm2015/components/table/table-column/table-columns.component.js +1 -1
  20. package/esm2015/components/table/table.module.js +2 -2
  21. package/esm2015/components/tooltip/index.js +3 -0
  22. package/esm2015/components/tooltip/models/index.js +2 -0
  23. package/esm2015/components/tooltip/models/tooltip-position.js +9 -0
  24. package/esm2015/components/tooltip/tooltip.component.js +21 -0
  25. package/esm2015/components/tooltip/tooltip.directive.js +195 -0
  26. package/esm2015/components/tooltip/tooltip.module.js +19 -0
  27. package/esm2015/public-api.js +2 -1
  28. package/esm2015/seniorsistemas-angular-components.js +48 -45
  29. package/esm5/components/file-upload/file-upload.component.js +45 -23
  30. package/esm5/components/file-upload/models/validate-errors.js +2 -1
  31. package/esm5/components/info-sign/info-sign.component.js +3 -2
  32. package/esm5/components/info-sign/info-sign.directive.js +2 -2
  33. package/esm5/components/info-sign/info-sign.module.js +10 -4
  34. package/esm5/components/table/table-column/table-columns.component.js +1 -1
  35. package/esm5/components/table/table.module.js +2 -2
  36. package/esm5/components/tooltip/index.js +3 -0
  37. package/esm5/components/tooltip/models/index.js +2 -0
  38. package/esm5/components/tooltip/models/tooltip-position.js +9 -0
  39. package/esm5/components/tooltip/tooltip.component.js +22 -0
  40. package/esm5/components/tooltip/tooltip.directive.js +196 -0
  41. package/esm5/components/tooltip/tooltip.module.js +22 -0
  42. package/esm5/public-api.js +2 -1
  43. package/esm5/seniorsistemas-angular-components.js +48 -45
  44. package/fesm2015/seniorsistemas-angular-components.js +291 -33
  45. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  46. package/fesm5/seniorsistemas-angular-components.js +304 -40
  47. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  48. package/package.json +1 -1
  49. package/public-api.d.ts +1 -0
  50. package/seniorsistemas-angular-components.d.ts +47 -44
  51. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { __spread, __assign, __decorate, __extends, __rest, __values, __param, __awaiter, __generator, __read } from 'tslib';
2
- import { Input, Component, NgModule, EventEmitter, HostBinding, Output, ViewChild, Renderer2, HostListener, Directive, Injectable, Pipe, forwardRef, ViewEncapsulation, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef, ElementRef, InjectionToken, Inject, Optional, ContentChild, ApplicationRef, Injector, ContentChildren } from '@angular/core';
2
+ import { Input, Component, NgModule, EventEmitter, HostBinding, Output, ViewChild, Renderer2, HostListener, Directive, Injectable, Pipe, forwardRef, ViewEncapsulation, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, TemplateRef, ViewContainerRef, ChangeDetectorRef, InjectionToken, Inject, Optional, ContentChild, ContentChildren } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { BreadcrumbModule as BreadcrumbModule$1 } from 'primeng/breadcrumb';
5
5
  import { NavigationEnd, PRIMARY_OUTLET, ActivatedRoute, Router, RouterModule } from '@angular/router';
6
6
  import { Subject, of, from, forkJoin, throwError, ReplaySubject } from 'rxjs';
7
7
  import { takeUntil, filter, tap, map, switchMap, catchError, delay, debounceTime, repeat, finalize, take } from 'rxjs/operators';
8
8
  import { TieredMenu, TieredMenuModule } from 'primeng/tieredmenu';
9
- import { TooltipModule } from 'primeng/tooltip';
9
+ import { TooltipModule as TooltipModule$1 } from 'primeng/tooltip';
10
10
  import { DomHandler } from 'primeng/dom';
11
11
  import { Calendar, CalendarModule } from 'primeng/calendar';
12
12
  import { trigger, state, style as style$7, transition, animate, group, query, animateChild } from '@angular/animations';
@@ -293,7 +293,7 @@ var ButtonModule = /** @class */ (function () {
293
293
  }
294
294
  ButtonModule = __decorate([
295
295
  NgModule({
296
- imports: [CommonModule, RouterModule, TieredMenuModule, TooltipModule],
296
+ imports: [CommonModule, RouterModule, TieredMenuModule, TooltipModule$1],
297
297
  declarations: [ButtonComponent],
298
298
  exports: [ButtonComponent],
299
299
  })
@@ -2706,6 +2706,7 @@ var ValidateErrors;
2706
2706
  (function (ValidateErrors) {
2707
2707
  ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
2708
2708
  ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
2709
+ ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
2709
2710
  })(ValidateErrors || (ValidateErrors = {}));
2710
2711
 
2711
2712
  var Breakpoints = {
@@ -2817,12 +2818,12 @@ var ExportUtils = /** @class */ (function () {
2817
2818
  var FileUploadComponent = /** @class */ (function () {
2818
2819
  function FileUploadComponent(sanitizer) {
2819
2820
  this.sanitizer = sanitizer;
2820
- this.inputValue = "";
2821
2821
  this.id = "s-file-upload-" + FileUploadComponent_1.nextId++;
2822
2822
  this.chooseLabel = "Anexar arquivos";
2823
2823
  this.removeLabel = "Remover";
2824
2824
  this.cancelLabel = "Cancelar";
2825
2825
  this.successTooltip = "Arquivo anexado com sucesso";
2826
+ this.supportedExtensions = [];
2826
2827
  this.ariaLabelProgress = "Carregando arquivo";
2827
2828
  this.disabled = false;
2828
2829
  this.uploadHandler = new EventEmitter();
@@ -2832,8 +2833,29 @@ var FileUploadComponent = /** @class */ (function () {
2832
2833
  this.validateErros = new EventEmitter();
2833
2834
  this._files = [];
2834
2835
  this.ngUsubscribe = new Subject();
2836
+ this.inputValue = "";
2835
2837
  }
2836
2838
  FileUploadComponent_1 = FileUploadComponent;
2839
+ Object.defineProperty(FileUploadComponent.prototype, "files", {
2840
+ get: function () {
2841
+ return this._files;
2842
+ },
2843
+ set: function (files) {
2844
+ var _this = this;
2845
+ this._files = files.map(function (file) {
2846
+ if (_this.isImage(file)) {
2847
+ file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
2848
+ }
2849
+ return file;
2850
+ });
2851
+ },
2852
+ enumerable: true,
2853
+ configurable: true
2854
+ });
2855
+ FileUploadComponent.prototype.ngOnInit = function () {
2856
+ this.supportedExtensions = this.supportedExtensions
2857
+ .map(function (extension) { return extension.replace(".", "").toLowerCase(); });
2858
+ };
2837
2859
  FileUploadComponent.prototype.ngOnDestroy = function () {
2838
2860
  this.ngUsubscribe.next();
2839
2861
  this.ngUsubscribe.complete();
@@ -2857,9 +2879,13 @@ var FileUploadComponent = /** @class */ (function () {
2857
2879
  try {
2858
2880
  for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
2859
2881
  var file = files_1_1.value;
2882
+ if (this.isUnsupportedFileExtension(file)) {
2883
+ this.validateErros.emit(ValidateErrors.UNSUPPORTED_EXTENSION);
2884
+ continue;
2885
+ }
2860
2886
  if (this.isFileSizeExceeded(file)) {
2861
2887
  this.validateErros.emit(ValidateErrors.MAX_FILE_SIZE);
2862
- return;
2888
+ continue;
2863
2889
  }
2864
2890
  newFiles.push(file);
2865
2891
  }
@@ -2898,22 +2924,6 @@ var FileUploadComponent = /** @class */ (function () {
2898
2924
  anchor: this.anchor,
2899
2925
  });
2900
2926
  };
2901
- Object.defineProperty(FileUploadComponent.prototype, "files", {
2902
- get: function () {
2903
- return this._files;
2904
- },
2905
- set: function (files) {
2906
- var _this = this;
2907
- this._files = files.map(function (file) {
2908
- if (_this.isImage(file)) {
2909
- file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
2910
- }
2911
- return file;
2912
- });
2913
- },
2914
- enumerable: true,
2915
- configurable: true
2916
- });
2917
2927
  FileUploadComponent.prototype.update = function () {
2918
2928
  var windowWidth = window.innerWidth;
2919
2929
  this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
@@ -2933,6 +2943,16 @@ var FileUploadComponent = /** @class */ (function () {
2933
2943
  }
2934
2944
  return file.size > this.maxFileSize;
2935
2945
  };
2946
+ FileUploadComponent.prototype.isUnsupportedFileExtension = function (file) {
2947
+ var _a;
2948
+ if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
2949
+ var extension = file.name.split(".").pop().toLowerCase();
2950
+ if (!this.supportedExtensions.includes(extension)) {
2951
+ return true;
2952
+ }
2953
+ }
2954
+ return false;
2955
+ };
2936
2956
  var FileUploadComponent_1;
2937
2957
  FileUploadComponent.nextId = 0;
2938
2958
  FileUploadComponent.ctorParameters = function () { return [
@@ -2965,6 +2985,9 @@ var FileUploadComponent = /** @class */ (function () {
2965
2985
  __decorate([
2966
2986
  Input()
2967
2987
  ], FileUploadComponent.prototype, "accept", void 0);
2988
+ __decorate([
2989
+ Input()
2990
+ ], FileUploadComponent.prototype, "supportedExtensions", void 0);
2968
2991
  __decorate([
2969
2992
  Input()
2970
2993
  ], FileUploadComponent.prototype, "ariaLabelFileName", void 0);
@@ -2992,6 +3015,9 @@ var FileUploadComponent = /** @class */ (function () {
2992
3015
  __decorate([
2993
3016
  Input()
2994
3017
  ], FileUploadComponent.prototype, "disabled", void 0);
3018
+ __decorate([
3019
+ Input()
3020
+ ], FileUploadComponent.prototype, "files", null);
2995
3021
  __decorate([
2996
3022
  Output()
2997
3023
  ], FileUploadComponent.prototype, "uploadHandler", void 0);
@@ -3010,9 +3036,6 @@ var FileUploadComponent = /** @class */ (function () {
3010
3036
  __decorate([
3011
3037
  HostListener("window:resize")
3012
3038
  ], FileUploadComponent.prototype, "onResize", null);
3013
- __decorate([
3014
- Input()
3015
- ], FileUploadComponent.prototype, "files", null);
3016
3039
  FileUploadComponent = FileUploadComponent_1 = __decorate([
3017
3040
  Component({
3018
3041
  selector: "s-file-upload",
@@ -3032,7 +3055,7 @@ var FileUploadModule = /** @class */ (function () {
3032
3055
  imports: [
3033
3056
  CommonModule,
3034
3057
  ButtonModule,
3035
- TooltipModule,
3058
+ TooltipModule$1,
3036
3059
  ProgressBarModule,
3037
3060
  ],
3038
3061
  exports: [FileUploadComponent],
@@ -3041,13 +3064,248 @@ var FileUploadModule = /** @class */ (function () {
3041
3064
  return FileUploadModule;
3042
3065
  }());
3043
3066
 
3067
+ var TooltipPosition;
3068
+ (function (TooltipPosition) {
3069
+ TooltipPosition["Above"] = "above";
3070
+ TooltipPosition["Below"] = "below";
3071
+ TooltipPosition["Left"] = "left";
3072
+ TooltipPosition["Right"] = "right";
3073
+ TooltipPosition["Default"] = "above";
3074
+ })(TooltipPosition || (TooltipPosition = {}));
3075
+
3076
+ var TooltipComponent = /** @class */ (function () {
3077
+ function TooltipComponent() {
3078
+ this.tooltip = "";
3079
+ this.position = TooltipPosition.Default;
3080
+ this.left = 0;
3081
+ this.top = 0;
3082
+ this.visible = false;
3083
+ this.escape = false;
3084
+ }
3085
+ TooltipComponent = __decorate([
3086
+ Component({
3087
+ 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>",
3088
+ 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)}"]
3089
+ })
3090
+ ], TooltipComponent);
3091
+ return TooltipComponent;
3092
+ }());
3093
+
3094
+ var TooltipDirective = /** @class */ (function () {
3095
+ function TooltipDirective(elementRef, appRef, componentFactoryResolver, injector) {
3096
+ this.elementRef = elementRef;
3097
+ this.appRef = appRef;
3098
+ this.componentFactoryResolver = componentFactoryResolver;
3099
+ this.injector = injector;
3100
+ this.position = TooltipPosition.Default;
3101
+ this.showDelay = 500;
3102
+ this.escape = false;
3103
+ this.componentRef = null;
3104
+ }
3105
+ TooltipDirective.prototype.ngOnDestroy = function () {
3106
+ this.destroy();
3107
+ };
3108
+ TooltipDirective.prototype.onMouseEnter = function () {
3109
+ this.createTootip();
3110
+ };
3111
+ TooltipDirective.prototype.onMouseLeave = function () {
3112
+ this.setHideTooltipTimeout();
3113
+ };
3114
+ TooltipDirective.prototype.onTouchStart = function ($event) {
3115
+ $event.preventDefault();
3116
+ window.clearTimeout(this.touchTimeout);
3117
+ this.touchTimeout = window.setTimeout(this.createTootip.bind(this), 500);
3118
+ };
3119
+ TooltipDirective.prototype.onTouchEnd = function () {
3120
+ window.clearTimeout(this.touchTimeout);
3121
+ this.setHideTooltipTimeout();
3122
+ };
3123
+ TooltipDirective.prototype.setHideTooltipTimeout = function () {
3124
+ this.destroy();
3125
+ };
3126
+ TooltipDirective.prototype.createTootip = function () {
3127
+ var _a;
3128
+ if (this.componentRef === null && ((_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.length)) {
3129
+ var componentFactory = this.componentFactoryResolver.resolveComponentFactory(TooltipComponent);
3130
+ this.componentRef = componentFactory.create(this.injector);
3131
+ this.appRef.attachView(this.componentRef.hostView);
3132
+ var domElem = this.componentRef.hostView.rootNodes[0];
3133
+ this.elementRef.nativeElement.appendChild(domElem);
3134
+ this.setTooltipComponentProperties();
3135
+ this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);
3136
+ }
3137
+ };
3138
+ TooltipDirective.prototype.showTooltip = function () {
3139
+ if (this.componentRef !== null) {
3140
+ this.componentRef.instance.visible = true;
3141
+ }
3142
+ };
3143
+ TooltipDirective.prototype.setTooltipComponentProperties = function () {
3144
+ var margin = 16;
3145
+ var anchorSize = 5;
3146
+ if (this.componentRef !== null) {
3147
+ this.componentRef.instance.tooltip = this.tooltip;
3148
+ this.componentRef.instance.escape = this.escape;
3149
+ var _a = this.elementRef.nativeElement.getBoundingClientRect(), left = _a.left, right = _a.right, top_1 = _a.top, bottom = _a.bottom;
3150
+ var tooltipHeight = bottom - top_1;
3151
+ var tooltipWidth = right - left;
3152
+ var safeSpace = 150;
3153
+ var positioned = false;
3154
+ var invalidOptions = [];
3155
+ while (!positioned) {
3156
+ if (invalidOptions.includes(TooltipPosition.Above)
3157
+ && invalidOptions.includes(TooltipPosition.Below)
3158
+ && invalidOptions.includes(TooltipPosition.Left)
3159
+ && invalidOptions.includes(TooltipPosition.Right)) {
3160
+ this.destroy();
3161
+ throw new Error("No space to show tooltip");
3162
+ }
3163
+ switch (this.position) {
3164
+ case TooltipPosition.Below: {
3165
+ if (invalidOptions.includes(TooltipPosition.Below)) {
3166
+ this.position = TooltipPosition.Left;
3167
+ break;
3168
+ }
3169
+ var bottomShift = document.body.clientHeight - bottom;
3170
+ if (bottomShift <= tooltipHeight + safeSpace) {
3171
+ this.position = TooltipPosition.Above;
3172
+ invalidOptions.push(TooltipPosition.Below);
3173
+ break;
3174
+ }
3175
+ this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
3176
+ this.componentRef.instance.top = Math.round(bottom + margin);
3177
+ positioned = true;
3178
+ break;
3179
+ }
3180
+ case TooltipPosition.Above: {
3181
+ if (invalidOptions.includes(TooltipPosition.Above)) {
3182
+ this.position = TooltipPosition.Left;
3183
+ break;
3184
+ }
3185
+ var topShift = top_1;
3186
+ if (topShift <= tooltipHeight + safeSpace) {
3187
+ this.position = TooltipPosition.Below;
3188
+ invalidOptions.push(TooltipPosition.Above);
3189
+ positioned = false;
3190
+ break;
3191
+ }
3192
+ this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
3193
+ this.componentRef.instance.top = Math.round(top_1 - margin);
3194
+ positioned = true;
3195
+ break;
3196
+ }
3197
+ case TooltipPosition.Right: {
3198
+ if (invalidOptions.includes(TooltipPosition.Right)) {
3199
+ this.position = TooltipPosition.Above;
3200
+ break;
3201
+ }
3202
+ var rightShift = document.body.clientWidth - right;
3203
+ if (rightShift <= tooltipWidth + safeSpace) {
3204
+ this.position = TooltipPosition.Left;
3205
+ invalidOptions.push(TooltipPosition.Right);
3206
+ positioned = false;
3207
+ break;
3208
+ }
3209
+ this.componentRef.instance.left = Math.round(right + margin);
3210
+ this.componentRef.instance.top = Math.round(top_1 + tooltipHeight / 2 - anchorSize);
3211
+ positioned = true;
3212
+ break;
3213
+ }
3214
+ case TooltipPosition.Left: {
3215
+ if (invalidOptions.includes(TooltipPosition.Left)) {
3216
+ this.position = TooltipPosition.Above;
3217
+ break;
3218
+ }
3219
+ var leftShift = left;
3220
+ if (leftShift <= tooltipWidth + safeSpace) {
3221
+ this.position = TooltipPosition.Right;
3222
+ invalidOptions.push(TooltipPosition.Left);
3223
+ positioned = false;
3224
+ break;
3225
+ }
3226
+ this.componentRef.instance.left = Math.round(left - margin);
3227
+ this.componentRef.instance.top = Math.round(top_1 + tooltipHeight / 2 - anchorSize);
3228
+ positioned = true;
3229
+ break;
3230
+ }
3231
+ default: {
3232
+ break;
3233
+ }
3234
+ }
3235
+ this.componentRef.instance.position = this.position;
3236
+ }
3237
+ }
3238
+ };
3239
+ TooltipDirective.prototype.destroy = function () {
3240
+ if (this.componentRef !== null) {
3241
+ window.clearTimeout(this.showTimeout);
3242
+ this.appRef.detachView(this.componentRef.hostView);
3243
+ this.componentRef.destroy();
3244
+ this.componentRef = null;
3245
+ }
3246
+ };
3247
+ TooltipDirective.ctorParameters = function () { return [
3248
+ { type: ElementRef },
3249
+ { type: ApplicationRef },
3250
+ { type: ComponentFactoryResolver },
3251
+ { type: Injector }
3252
+ ]; };
3253
+ __decorate([
3254
+ Input("sTooltip")
3255
+ ], TooltipDirective.prototype, "tooltip", void 0);
3256
+ __decorate([
3257
+ Input("tooltipPosition")
3258
+ ], TooltipDirective.prototype, "position", void 0);
3259
+ __decorate([
3260
+ Input()
3261
+ ], TooltipDirective.prototype, "showDelay", void 0);
3262
+ __decorate([
3263
+ Input()
3264
+ ], TooltipDirective.prototype, "escape", void 0);
3265
+ __decorate([
3266
+ HostListener("mouseenter")
3267
+ ], TooltipDirective.prototype, "onMouseEnter", null);
3268
+ __decorate([
3269
+ HostListener("mouseleave")
3270
+ ], TooltipDirective.prototype, "onMouseLeave", null);
3271
+ __decorate([
3272
+ HostListener("touchstart", ["$event"])
3273
+ ], TooltipDirective.prototype, "onTouchStart", null);
3274
+ __decorate([
3275
+ HostListener("touchend")
3276
+ ], TooltipDirective.prototype, "onTouchEnd", null);
3277
+ TooltipDirective = __decorate([
3278
+ Directive({
3279
+ selector: "[sTooltip]",
3280
+ })
3281
+ ], TooltipDirective);
3282
+ return TooltipDirective;
3283
+ }());
3284
+
3285
+ var TooltipModule = /** @class */ (function () {
3286
+ function TooltipModule() {
3287
+ }
3288
+ TooltipModule = __decorate([
3289
+ NgModule({
3290
+ imports: [CommonModule],
3291
+ declarations: [
3292
+ TooltipComponent,
3293
+ TooltipDirective,
3294
+ ],
3295
+ exports: [TooltipDirective],
3296
+ })
3297
+ ], TooltipModule);
3298
+ return TooltipModule;
3299
+ }());
3300
+
3044
3301
  var InfoSignComponent = /** @class */ (function () {
3045
3302
  function InfoSignComponent() {
3046
3303
  }
3047
3304
  InfoSignComponent = __decorate([
3048
3305
  Component({
3049
3306
  selector: "s-info-sign-component",
3050
- 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>"
3307
+ 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>",
3308
+ 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}"]
3051
3309
  })
3052
3310
  ], InfoSignComponent);
3053
3311
  return InfoSignComponent;
@@ -3101,8 +3359,14 @@ var InfoSignModule = /** @class */ (function () {
3101
3359
  }
3102
3360
  InfoSignModule = __decorate([
3103
3361
  NgModule({
3104
- imports: [TooltipModule, CommonModule],
3105
- declarations: [InfoSignDirective, InfoSignComponent],
3362
+ imports: [
3363
+ TooltipModule,
3364
+ CommonModule,
3365
+ ],
3366
+ declarations: [
3367
+ InfoSignDirective,
3368
+ InfoSignComponent,
3369
+ ],
3106
3370
  exports: [InfoSignDirective],
3107
3371
  entryComponents: [InfoSignComponent],
3108
3372
  })
@@ -4380,7 +4644,7 @@ var TableColumnsComponent = /** @class */ (function () {
4380
4644
  ], TableColumnsComponent.prototype, "locale", void 0);
4381
4645
  TableColumnsComponent = __decorate([
4382
4646
  Component({
4383
- 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",
4647
+ 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",
4384
4648
  selector: "s-table-columns",
4385
4649
  styles: [":host{display:none}"]
4386
4650
  }),
@@ -5540,7 +5804,7 @@ var DynamicFormModule = /** @class */ (function () {
5540
5804
  CommonModule,
5541
5805
  FormsModule,
5542
5806
  ReactiveFormsModule,
5543
- TooltipModule,
5807
+ TooltipModule$1,
5544
5808
  InputTextModule,
5545
5809
  CheckboxModule,
5546
5810
  CalendarModule,
@@ -7039,7 +7303,7 @@ var ObjectCardModule = /** @class */ (function () {
7039
7303
  }
7040
7304
  ObjectCardModule = __decorate([
7041
7305
  NgModule({
7042
- imports: [CommonModule, TooltipModule, ThumbnailModule, ButtonModule],
7306
+ imports: [CommonModule, TooltipModule$1, ThumbnailModule, ButtonModule],
7043
7307
  declarations: [ObjectCardComponent, ObjectCardMainComponent, ObjectCardFieldComponent],
7044
7308
  exports: [ThumbnailModule, ObjectCardComponent, ObjectCardMainComponent, ObjectCardFieldComponent],
7045
7309
  })
@@ -7085,7 +7349,7 @@ var ProductHeaderModule = /** @class */ (function () {
7085
7349
  }
7086
7350
  ProductHeaderModule = __decorate([
7087
7351
  NgModule({
7088
- imports: [CommonModule, TooltipModule, ThumbnailModule],
7352
+ imports: [CommonModule, TooltipModule$1, ThumbnailModule],
7089
7353
  declarations: [ProductHeaderComponent],
7090
7354
  exports: [ProductHeaderComponent, ThumbnailModule],
7091
7355
  })
@@ -7306,7 +7570,7 @@ var StatsCardModule = /** @class */ (function () {
7306
7570
  NgModule({
7307
7571
  imports: [
7308
7572
  CommonModule,
7309
- TooltipModule,
7573
+ TooltipModule$1,
7310
7574
  ],
7311
7575
  declarations: [
7312
7576
  StatsCardComponent,
@@ -7427,7 +7691,7 @@ var StepsModule = /** @class */ (function () {
7427
7691
  }
7428
7692
  StepsModule = __decorate([
7429
7693
  NgModule({
7430
- imports: [CommonModule, TooltipModule],
7694
+ imports: [CommonModule, TooltipModule$1],
7431
7695
  declarations: [StepsComponent],
7432
7696
  exports: [StepsComponent],
7433
7697
  })
@@ -7528,7 +7792,7 @@ var TimelineItemModule = /** @class */ (function () {
7528
7792
  NgModule({
7529
7793
  imports: [
7530
7794
  CommonModule,
7531
- TooltipModule,
7795
+ TooltipModule$1,
7532
7796
  ],
7533
7797
  declarations: [TimelineIconItemComponent],
7534
7798
  exports: [TimelineIconItemComponent],
@@ -7564,7 +7828,7 @@ var HorizontalTimelineModule = /** @class */ (function () {
7564
7828
  NgModule({
7565
7829
  imports: [
7566
7830
  CommonModule,
7567
- TooltipModule,
7831
+ TooltipModule$1,
7568
7832
  TimelineItemModule,
7569
7833
  ],
7570
7834
  declarations: [HorizontalTimelineComponent],
@@ -7887,7 +8151,7 @@ var TileModule = /** @class */ (function () {
7887
8151
  }
7888
8152
  TileModule = __decorate([
7889
8153
  NgModule({
7890
- imports: [CommonModule, TooltipModule, ThumbnailModule],
8154
+ imports: [CommonModule, TooltipModule$1, ThumbnailModule],
7891
8155
  declarations: [TileComponent],
7892
8156
  exports: [TileComponent, ThumbnailModule],
7893
8157
  })
@@ -8166,7 +8430,7 @@ var GlobalSearchModule = /** @class */ (function () {
8166
8430
  InputTextModule,
8167
8431
  FormsModule,
8168
8432
  ReactiveFormsModule,
8169
- TooltipModule,
8433
+ TooltipModule$1,
8170
8434
  ThumbnailModule,
8171
8435
  ButtonModule,
8172
8436
  LoadingStateModule,
@@ -8176,7 +8440,7 @@ var GlobalSearchModule = /** @class */ (function () {
8176
8440
  exports: [
8177
8441
  GlobalSearchComponent,
8178
8442
  GlobalSearchDropdownItemComponent,
8179
- TooltipModule,
8443
+ TooltipModule$1,
8180
8444
  ThumbnailModule,
8181
8445
  ButtonModule,
8182
8446
  LoadingStateModule,
@@ -9682,5 +9946,5 @@ var CodeEditorModule = /** @class */ (function () {
9682
9946
  * Generated bundle index. Do not edit.
9683
9947
  */
9684
9948
 
9685
- export { AngularComponentsModule, AutocompleteField, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵbb, StructureModule as ɵbc, HeaderComponent as ɵbd, FooterComponent as ɵbe, NumberLocaleOptions as ɵbf, ThumbnailService as ɵbg, TimelineItemModule as ɵbh, TimelineIconItemComponent as ɵbi, HorizontalTimelineModule as ɵbj, HorizontalTimelineComponent as ɵbk, VerticalTimelineModule as ɵbl, VerticalTimelineComponent as ɵbm, RangeLineComponent as ɵbn, CollapseOptionComponent as ɵbo, CollapsedItemsComponent as ɵbp, VerticalItemsComponent as ɵbq, InfiniteScrollModule as ɵbr, InfiniteScrollDirective as ɵbs, CustomTranslationsModule as ɵbt, CodeEditorComponent as ɵbu, CoreFacade as ɵbv, CodeMirror6Core as ɵbw, LocalizedBignumberImpurePipe as ɵc, EmptyStateGoBackComponent as ɵd, InfoSignComponent as ɵe, TableColumnsComponent as ɵf, TablePagingComponent as ɵg, AutocompleteFieldComponent as ɵh, BooleanFieldComponent as ɵi, CalendarFieldComponent as ɵj, ChipsFieldComponent as ɵk, CurrencyFieldComponent as ɵl, DynamicFieldComponent as ɵm, DynamicFormDirective as ɵn, FieldsetComponent as ɵo, FileUploadComponent$1 as ɵp, LookupFieldComponent as ɵq, NumberFieldComponent as ɵr, BignumberFieldComponent as ɵs, RadioButtonComponent as ɵt, RowComponent as ɵu, SectionComponent as ɵv, SelectFieldComponent as ɵw, TextAreaFieldComponent as ɵx, TextFieldComponent as ɵy, BooleanSwitchFieldComponent as ɵz };
9949
+ export { AngularComponentsModule, AutocompleteField, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, TextAreaFieldComponent as ɵba, TextFieldComponent as ɵbb, BooleanSwitchFieldComponent as ɵbc, DecimalField as ɵbe, StructureModule as ɵbf, HeaderComponent as ɵbg, FooterComponent as ɵbh, NumberLocaleOptions as ɵbi, ThumbnailService as ɵbj, TimelineItemModule as ɵbk, TimelineIconItemComponent as ɵbl, HorizontalTimelineModule as ɵbm, HorizontalTimelineComponent as ɵbn, VerticalTimelineModule as ɵbo, VerticalTimelineComponent as ɵbp, RangeLineComponent as ɵbq, CollapseOptionComponent as ɵbr, CollapsedItemsComponent as ɵbs, VerticalItemsComponent as ɵbt, InfiniteScrollModule as ɵbu, InfiniteScrollDirective as ɵbv, CustomTranslationsModule as ɵbw, CodeEditorComponent as ɵbx, CoreFacade as ɵby, CodeMirror6Core as ɵbz, LocalizedBignumberImpurePipe as ɵc, EmptyStateGoBackComponent as ɵd, TooltipModule as ɵe, TooltipComponent as ɵf, TooltipDirective as ɵg, InfoSignComponent as ɵh, TableColumnsComponent as ɵi, TablePagingComponent as ɵj, AutocompleteFieldComponent as ɵk, BooleanFieldComponent as ɵl, CalendarFieldComponent as ɵm, ChipsFieldComponent as ɵn, CurrencyFieldComponent as ɵo, DynamicFieldComponent as ɵp, DynamicFormDirective as ɵq, FieldsetComponent as ɵr, FileUploadComponent$1 as ɵs, LookupFieldComponent as ɵt, NumberFieldComponent as ɵu, BignumberFieldComponent as ɵv, RadioButtonComponent as ɵw, RowComponent as ɵx, SectionComponent as ɵy, SelectFieldComponent as ɵz };
9686
9950
  //# sourceMappingURL=seniorsistemas-angular-components.js.map