@dev-tcloud/tcloud-ui 0.0.4 → 0.0.6

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 (100) hide show
  1. package/README.md +2 -0
  2. package/esm2020/dev-tcloud-tcloud-ui.mjs +2 -2
  3. package/esm2020/lib/_directives/directives.module.mjs +16 -0
  4. package/esm2020/lib/_directives/tooltip/tooltip.directive.mjs +164 -0
  5. package/esm2020/lib/_modules/tcloud-ui-data-list/services/data-list.service.mjs +39 -0
  6. package/esm2020/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list-option/tcloud-ui-data-list-option.component.mjs +56 -0
  7. package/esm2020/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.component.mjs +250 -0
  8. package/esm2020/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.mjs +3 -0
  9. package/esm2020/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.module.mjs +36 -0
  10. package/esm2020/lib/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.component.mjs +72 -0
  11. package/esm2020/{src/app → lib}/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.module.mjs +1 -1
  12. package/esm2020/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.mjs +65 -0
  13. package/esm2020/{src/app → lib}/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.module.mjs +1 -1
  14. package/esm2020/{src/app → lib}/_modules/tcloud-ui-modal/components/tcloud-ui-modal-body/tcloud-ui-modal-body.component.mjs +1 -1
  15. package/esm2020/{src/app → lib}/_modules/tcloud-ui-modal/components/tcloud-ui-modal-footer/tcloud-ui-modal-footer.component.mjs +1 -1
  16. package/esm2020/{src/app → lib}/_modules/tcloud-ui-modal/components/tcloud-ui-modal-header/tcloud-ui-modal-header.component.mjs +1 -1
  17. package/esm2020/lib/_modules/tcloud-ui-modal/services/tcloud-modal.service.mjs +42 -0
  18. package/esm2020/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.mjs +175 -0
  19. package/esm2020/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.mjs +2 -0
  20. package/esm2020/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.module.mjs +46 -0
  21. package/esm2020/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.component.mjs +79 -0
  22. package/esm2020/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.module.mjs +20 -0
  23. package/esm2020/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-content/tcloud-ui-tab-content.component.mjs +33 -0
  24. package/esm2020/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.mjs +55 -0
  25. package/esm2020/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.mjs +62 -0
  26. package/esm2020/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.mjs +64 -0
  27. package/esm2020/lib/_modules/tcloud-ui-tab-menu/services/tab-menu.service.mjs +77 -0
  28. package/esm2020/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.component.mjs +56 -0
  29. package/esm2020/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.mjs +2 -0
  30. package/esm2020/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.module.mjs +44 -0
  31. package/esm2020/lib/_pipes/cnpj.mjs +37 -0
  32. package/esm2020/lib/_pipes/cpf.mjs +37 -0
  33. package/esm2020/lib/_pipes/index.mjs +6 -0
  34. package/esm2020/lib/_pipes/monthname.mjs +25 -0
  35. package/esm2020/lib/_pipes/respective.mjs +68 -0
  36. package/esm2020/lib/_pipes/statusinfo.mjs +78 -0
  37. package/esm2020/lib/_pipes/tcloud-pipes.module.mjs +47 -0
  38. package/esm2020/lib/tcloud-ui.module.mjs +81 -0
  39. package/esm2020/public-api.mjs +37 -0
  40. package/fesm2015/dev-tcloud-tcloud-ui.mjs +967 -11
  41. package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
  42. package/fesm2020/dev-tcloud-tcloud-ui.mjs +960 -11
  43. package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
  44. package/index.d.ts +1 -1
  45. package/lib/_directives/directives.module.d.ts +7 -0
  46. package/lib/_directives/tooltip/tooltip.directive.d.ts +34 -0
  47. package/lib/_modules/tcloud-ui-data-list/services/data-list.service.d.ts +20 -0
  48. package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list-option/tcloud-ui-data-list-option.component.d.ts +22 -0
  49. package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.component.d.ts +61 -0
  50. package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.d.ts +4 -0
  51. package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.module.d.ts +10 -0
  52. package/{src/app → lib}/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.component.d.ts +1 -1
  53. package/{src/app → lib}/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.module.d.ts +0 -0
  54. package/{src/app → lib}/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.d.ts +0 -0
  55. package/{src/app → lib}/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.module.d.ts +0 -0
  56. package/{src/app → lib}/_modules/tcloud-ui-modal/components/tcloud-ui-modal-body/tcloud-ui-modal-body.component.d.ts +0 -0
  57. package/{src/app → lib}/_modules/tcloud-ui-modal/components/tcloud-ui-modal-footer/tcloud-ui-modal-footer.component.d.ts +0 -0
  58. package/{src/app → lib}/_modules/tcloud-ui-modal/components/tcloud-ui-modal-header/tcloud-ui-modal-header.component.d.ts +0 -0
  59. package/{src/app → lib}/_modules/tcloud-ui-modal/services/tcloud-modal.service.d.ts +1 -1
  60. package/{src/app → lib}/_modules/tcloud-ui-modal/tcloud-ui-modal.component.d.ts +1 -1
  61. package/{src/app → lib}/_modules/tcloud-ui-modal/tcloud-ui-modal.d.ts +0 -0
  62. package/{src/app → lib}/_modules/tcloud-ui-modal/tcloud-ui-modal.module.d.ts +0 -0
  63. package/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.component.d.ts +18 -0
  64. package/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.module.d.ts +8 -0
  65. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-content/tcloud-ui-tab-content.component.d.ts +0 -0
  66. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.d.ts +0 -0
  67. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.d.ts +0 -0
  68. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.d.ts +0 -0
  69. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/services/tab-menu.service.d.ts +2 -2
  70. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.component.d.ts +0 -0
  71. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.d.ts +0 -0
  72. package/{src/app → lib}/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.module.d.ts +0 -0
  73. package/lib/_pipes/cnpj.d.ts +9 -0
  74. package/lib/_pipes/cpf.d.ts +9 -0
  75. package/lib/_pipes/index.d.ts +5 -0
  76. package/lib/_pipes/monthname.d.ts +8 -0
  77. package/lib/_pipes/respective.d.ts +11 -0
  78. package/lib/_pipes/statusinfo.d.ts +15 -0
  79. package/lib/_pipes/tcloud-pipes.module.d.ts +11 -0
  80. package/lib/tcloud-ui.module.d.ts +14 -0
  81. package/package.json +3 -589
  82. package/public-api.d.ts +25 -0
  83. package/esm2020/public_api.mjs +0 -17
  84. package/esm2020/src/app/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.component.mjs +0 -72
  85. package/esm2020/src/app/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.mjs +0 -65
  86. package/esm2020/src/app/_modules/tcloud-ui-modal/services/tcloud-modal.service.mjs +0 -42
  87. package/esm2020/src/app/_modules/tcloud-ui-modal/tcloud-ui-modal.component.mjs +0 -175
  88. package/esm2020/src/app/_modules/tcloud-ui-modal/tcloud-ui-modal.mjs +0 -2
  89. package/esm2020/src/app/_modules/tcloud-ui-modal/tcloud-ui-modal.module.mjs +0 -46
  90. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-content/tcloud-ui-tab-content.component.mjs +0 -33
  91. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.mjs +0 -55
  92. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.mjs +0 -62
  93. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.mjs +0 -64
  94. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/services/tab-menu.service.mjs +0 -77
  95. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.component.mjs +0 -56
  96. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.mjs +0 -2
  97. package/esm2020/src/app/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.module.mjs +0 -44
  98. package/esm2020/src/app/_modules/tcloud-ui.module.mjs +0 -41
  99. package/public_api.d.ts +0 -16
  100. package/src/app/_modules/tcloud-ui.module.d.ts +0 -10
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, NgModule, Injectable, EventEmitter, Output, ViewChild } from '@angular/core';
2
+ import { Component, Input, NgModule, Injectable, EventEmitter, Output, ViewChild, forwardRef, Directive, HostListener, Pipe } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import { Buffer } from 'buffer';
6
6
  import { Subject } from 'rxjs';
7
7
  import * as i1$1 from '@angular/router';
8
- import * as i3 from '@angular/forms';
9
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+ import * as i2 from '@angular/forms';
9
+ import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl } from '@angular/forms';
10
10
  import { trigger, state, style, transition, animate } from '@angular/animations';
11
11
 
12
12
  class TCloudUiLinhaLogoComponent {
@@ -731,7 +731,7 @@ class TCloudUiModalFooterComponent {
731
731
  }
732
732
  }
733
733
  TCloudUiModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModalFooterComponent, deps: [{ token: TcloudModalService }], target: i0.ɵɵFactoryTarget.Component });
734
- TCloudUiModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiModalFooterComponent, selector: "tcloud-ui-modal-footer", inputs: { btnCloseText: "btnCloseText", btnCancelText: "btnCancelText", btnConfirmText: "btnConfirmText" }, viewQueries: [{ propertyName: "_formulario", first: true, predicate: ["_formulario"], descendants: true }], ngImport: i0, template: "<div class=\"tc-modal-footer\">\r\n\r\n <div class=\"input-confirm\" *ngIf=\"param_confirm && param_confirm.confirmText\">\r\n <p>Digite a palavra <strong>&quot;{{ param_confirm.confirmText }}&quot;</strong> para confirmar.</p>\r\n \r\n <form #_formulario=\"ngForm\" (ngSubmit)=\"toConfirm(_formulario.valid)\">\r\n <input \r\n [disabled]=\"loading\"\r\n placeholder=\"{{ param_confirm.confirmText }}\"\r\n name=\"txt_value\" \r\n [(ngModel)]=\"txt_value\" \r\n type=\"text\" \r\n class=\"form-control form-confirm\" \r\n required \r\n [class.different-text]=\"(txt_value).length >= (param_confirm.confirmText).length && (txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase()\" >\r\n </form>\r\n\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"actions-footer {{ (loading) ? 'state-loading' : '' }}\">\r\n <!-- {{ param_confirm | json }} -->\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && !param_confirm.confirm\" type=\"button\" class=\"btn-new-grey\" (click)=\"toClose()\">{{ btnCloseText }}</button>\r\n\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"btn-new-grey\" (click)=\"toCancel()\">{{ btnCancelText }}</button>\r\n <button [disabled]=\"(txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase() || loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"ml-3 btn-new-green\" (click)=\"toConfirm(_formulario?.valid)\">{{ btnConfirmText }}</button>\r\n\r\n </div>\r\n</div>\r\n", styles: [".actions-footer{text-align:right}.ng-valid.ng-touched.different-text{border-color:#fb9c23}.form-confirm{max-width:200px}button:disabled{opacity:.7!important;cursor:not-allowed}.input-confirm{padding:5px 14px}.state-loading button{cursor:progress!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
734
+ TCloudUiModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiModalFooterComponent, selector: "tcloud-ui-modal-footer", inputs: { btnCloseText: "btnCloseText", btnCancelText: "btnCancelText", btnConfirmText: "btnConfirmText" }, viewQueries: [{ propertyName: "_formulario", first: true, predicate: ["_formulario"], descendants: true }], ngImport: i0, template: "<div class=\"tc-modal-footer\">\r\n\r\n <div class=\"input-confirm\" *ngIf=\"param_confirm && param_confirm.confirmText\">\r\n <p>Digite a palavra <strong>&quot;{{ param_confirm.confirmText }}&quot;</strong> para confirmar.</p>\r\n \r\n <form #_formulario=\"ngForm\" (ngSubmit)=\"toConfirm(_formulario.valid)\">\r\n <input \r\n [disabled]=\"loading\"\r\n placeholder=\"{{ param_confirm.confirmText }}\"\r\n name=\"txt_value\" \r\n [(ngModel)]=\"txt_value\" \r\n type=\"text\" \r\n class=\"form-control form-confirm\" \r\n required \r\n [class.different-text]=\"(txt_value).length >= (param_confirm.confirmText).length && (txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase()\" >\r\n </form>\r\n\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"actions-footer {{ (loading) ? 'state-loading' : '' }}\">\r\n <!-- {{ param_confirm | json }} -->\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && !param_confirm.confirm\" type=\"button\" class=\"btn-new-grey\" (click)=\"toClose()\">{{ btnCloseText }}</button>\r\n\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"btn-new-grey\" (click)=\"toCancel()\">{{ btnCancelText }}</button>\r\n <button [disabled]=\"(txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase() || loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"ml-3 btn-new-green\" (click)=\"toConfirm(_formulario?.valid)\">{{ btnConfirmText }}</button>\r\n\r\n </div>\r\n</div>\r\n", styles: [".actions-footer{text-align:right}.ng-valid.ng-touched.different-text{border-color:#fb9c23}.form-confirm{max-width:200px}button:disabled{opacity:.7!important;cursor:not-allowed}.input-confirm{padding:5px 14px}.state-loading button{cursor:progress!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
735
735
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModalFooterComponent, decorators: [{
736
736
  type: Component,
737
737
  args: [{ selector: 'tcloud-ui-modal-footer', template: "<div class=\"tc-modal-footer\">\r\n\r\n <div class=\"input-confirm\" *ngIf=\"param_confirm && param_confirm.confirmText\">\r\n <p>Digite a palavra <strong>&quot;{{ param_confirm.confirmText }}&quot;</strong> para confirmar.</p>\r\n \r\n <form #_formulario=\"ngForm\" (ngSubmit)=\"toConfirm(_formulario.valid)\">\r\n <input \r\n [disabled]=\"loading\"\r\n placeholder=\"{{ param_confirm.confirmText }}\"\r\n name=\"txt_value\" \r\n [(ngModel)]=\"txt_value\" \r\n type=\"text\" \r\n class=\"form-control form-confirm\" \r\n required \r\n [class.different-text]=\"(txt_value).length >= (param_confirm.confirmText).length && (txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase()\" >\r\n </form>\r\n\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"actions-footer {{ (loading) ? 'state-loading' : '' }}\">\r\n <!-- {{ param_confirm | json }} -->\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && !param_confirm.confirm\" type=\"button\" class=\"btn-new-grey\" (click)=\"toClose()\">{{ btnCloseText }}</button>\r\n\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"btn-new-grey\" (click)=\"toCancel()\">{{ btnCancelText }}</button>\r\n <button [disabled]=\"(txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase() || loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"ml-3 btn-new-green\" (click)=\"toConfirm(_formulario?.valid)\">{{ btnConfirmText }}</button>\r\n\r\n </div>\r\n</div>\r\n", styles: [".actions-footer{text-align:right}.ng-valid.ng-touched.different-text{border-color:#fb9c23}.form-confirm{max-width:200px}button:disabled{opacity:.7!important;cursor:not-allowed}.input-confirm{padding:5px 14px}.state-loading button{cursor:progress!important}\n"] }]
@@ -873,23 +873,956 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
873
873
  }]
874
874
  }] });
875
875
 
876
+ class TCloudUiMultiSelectComponent {
877
+ constructor() {
878
+ this.placeholder = 'Selecione um item';
879
+ this.disabled = false;
880
+ this.loading = false;
881
+ this.count_actives = 0;
882
+ this.tcChange = new EventEmitter();
883
+ }
884
+ ngOnInit() {
885
+ setTimeout(() => {
886
+ this.toChange();
887
+ });
888
+ }
889
+ addItem(item) {
890
+ if (this.disabled) {
891
+ return;
892
+ }
893
+ if (this.tcList) {
894
+ for (let i = 0; i < (this.tcList).length; i++) {
895
+ const row = this.tcList[i];
896
+ if (item === row.value) {
897
+ this.tcList[i].active = true;
898
+ break;
899
+ }
900
+ }
901
+ this.toChange();
902
+ }
903
+ }
904
+ removeItem(item) {
905
+ if (this.disabled) {
906
+ return;
907
+ }
908
+ if (this.tcList) {
909
+ for (let i = 0; i < (this.tcList).length; i++) {
910
+ const row = this.tcList[i];
911
+ if (item === row.value) {
912
+ this.tcList[i].active = false;
913
+ break;
914
+ }
915
+ }
916
+ this.toChange();
917
+ }
918
+ }
919
+ toChange() {
920
+ let count_actives = 0;
921
+ let itens = [];
922
+ if (this.tcList) {
923
+ for (let i = 0; i < (this.tcList).length; i++) {
924
+ const row = this.tcList[i];
925
+ if (row.active) {
926
+ count_actives++;
927
+ (itens).push(row);
928
+ }
929
+ }
930
+ }
931
+ this.count_actives = count_actives;
932
+ this.tcChange.emit(itens);
933
+ }
934
+ }
935
+ TCloudUiMultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
936
+ TCloudUiMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiMultiSelectComponent, selector: "tcloud-ui-multi-select", inputs: { tcList: "tcList", placeholder: "placeholder", disabled: "disabled", loading: "loading" }, outputs: { tcChange: "tcChange" }, ngImport: i0, template: "<div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select\r\n #_select\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n [title]=\"tcList.length === 0 ? 'Nenhum item dispon\u00EDvel' : placeholder\">\r\n <option></option>\r\n <ng-container *ngFor=\"let item of tcList; let i = index\">\r\n <option [title]=\"item.description\" *ngIf=\"!item.active\" [value]=\"item.value\">{{ item.description }}</option>\r\n </ng-container>\r\n </select>\r\n </td>\r\n <td>\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value)\"\r\n type=\"button\">\r\n <i class=\"fas fa-plus\"></i>\r\n </button>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"box-itens-selected\" *ngIf=\"count_actives > 0\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n <div class=\"itens-selected\" *ngIf=\"item.active\" [title]=\"item.description\">\r\n {{ item.description }}\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Remover\"\r\n type=\"button\"\r\n (click)=\"removeItem(item.value)\">\r\n <i class=\"fas fa-times\"></i>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", styles: ["table{width:100%;border-collapse:collapse;border:none}table td:first-child{width:100%}select{font-size:.8rem;height:40px;border:1px solid #999;border-radius:4px 0 0 4px;padding:6px 10px;white-space:nowrap;text-overflow:ellipsis;width:100%;background-color:#fff;color:#888}.btn-plus-select{width:30px;height:40px;border:none;color:#fff;background-color:var(--verde);border-radius:0 4px 4px 0}.box-itens-selected{display:flex;padding:9px;background-color:#ededed;border-radius:4px}.itens-selected{display:inline;width:100%;max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:1px solid #ccc;height:35px;min-width:100px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px}.itens-selected button{position:relative;right:0;z-index:1;float:right;line-height:1;top:2px;left:10px;color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectComponent, decorators: [{
938
+ type: Component,
939
+ args: [{ selector: 'tcloud-ui-multi-select', template: "<div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select\r\n #_select\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n [title]=\"tcList.length === 0 ? 'Nenhum item dispon\u00EDvel' : placeholder\">\r\n <option></option>\r\n <ng-container *ngFor=\"let item of tcList; let i = index\">\r\n <option [title]=\"item.description\" *ngIf=\"!item.active\" [value]=\"item.value\">{{ item.description }}</option>\r\n </ng-container>\r\n </select>\r\n </td>\r\n <td>\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value)\"\r\n type=\"button\">\r\n <i class=\"fas fa-plus\"></i>\r\n </button>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"box-itens-selected\" *ngIf=\"count_actives > 0\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n <div class=\"itens-selected\" *ngIf=\"item.active\" [title]=\"item.description\">\r\n {{ item.description }}\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Remover\"\r\n type=\"button\"\r\n (click)=\"removeItem(item.value)\">\r\n <i class=\"fas fa-times\"></i>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", styles: ["table{width:100%;border-collapse:collapse;border:none}table td:first-child{width:100%}select{font-size:.8rem;height:40px;border:1px solid #999;border-radius:4px 0 0 4px;padding:6px 10px;white-space:nowrap;text-overflow:ellipsis;width:100%;background-color:#fff;color:#888}.btn-plus-select{width:30px;height:40px;border:none;color:#fff;background-color:var(--verde);border-radius:0 4px 4px 0}.box-itens-selected{display:flex;padding:9px;background-color:#ededed;border-radius:4px}.itens-selected{display:inline;width:100%;max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:1px solid #ccc;height:35px;min-width:100px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px}.itens-selected button{position:relative;right:0;z-index:1;float:right;line-height:1;top:2px;left:10px;color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}\n"] }]
940
+ }], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
941
+ type: Input
942
+ }], placeholder: [{
943
+ type: Input
944
+ }], disabled: [{
945
+ type: Input
946
+ }], loading: [{
947
+ type: Input
948
+ }], tcChange: [{
949
+ type: Output
950
+ }] } });
951
+
952
+ class TCloudUiMultiSelectModule {
953
+ }
954
+ TCloudUiMultiSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
955
+ TCloudUiMultiSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectModule, declarations: [TCloudUiMultiSelectComponent], imports: [CommonModule], exports: [TCloudUiMultiSelectComponent] });
956
+ TCloudUiMultiSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectModule, imports: [CommonModule] });
957
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectModule, decorators: [{
958
+ type: NgModule,
959
+ args: [{
960
+ declarations: [TCloudUiMultiSelectComponent],
961
+ exports: [TCloudUiMultiSelectComponent],
962
+ imports: [
963
+ CommonModule
964
+ ]
965
+ }]
966
+ }] });
967
+
968
+ class DataListService {
969
+ constructor() {
970
+ this._stateSourceValue = new Subject();
971
+ this.stateValue$ = this._stateSourceValue.asObservable();
972
+ this._stateSourceDescription = new Subject();
973
+ this.stateDescription$ = this._stateSourceDescription.asObservable();
974
+ this._stateSourceOptions = new Subject();
975
+ this.stateOptions$ = this._stateSourceOptions.asObservable();
976
+ this._stateSourceActive = new Subject();
977
+ this.stateActive$ = this._stateSourceActive.asObservable();
978
+ }
979
+ setItemValue(v) {
980
+ this.actived_value = v;
981
+ this._stateSourceValue.next(v);
982
+ }
983
+ setItemDescription(v) {
984
+ this._stateSourceDescription.next(v);
985
+ }
986
+ registerSelectionOptionsDescription(v) {
987
+ this._stateSourceOptions.next(v);
988
+ }
989
+ setActiveItem(v) {
990
+ // console.log('setActiveItem', v);
991
+ this._stateSourceActive.next(v);
992
+ }
993
+ getActiveItem() {
994
+ // console.log('getActiveItem', this.actived_value);
995
+ return this.actived_value;
996
+ }
997
+ }
998
+ DataListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataListService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
999
+ DataListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataListService });
1000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataListService, decorators: [{
1001
+ type: Injectable
1002
+ }] });
1003
+
1004
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
1005
+ provide: NG_VALUE_ACCESSOR,
1006
+ useExisting: forwardRef(() => TCloudUiDataListComponent),
1007
+ multi: true
1008
+ };
1009
+ const noop = () => {
1010
+ };
1011
+ class TCloudUiDataListComponent {
1012
+ constructor(dataListService, formBuilder) {
1013
+ this.dataListService = dataListService;
1014
+ this.formBuilder = formBuilder;
1015
+ this.viewport_width = 0;
1016
+ this.viewport_height = 0;
1017
+ this.box_height = 0;
1018
+ this.box_style = '';
1019
+ this.menu_on_top = '';
1020
+ this.placeholder = '';
1021
+ this._disabled = false;
1022
+ this._loading = false;
1023
+ this.search = true;
1024
+ this.onInputChange = new EventEmitter();
1025
+ this.onChange = new EventEmitter();
1026
+ this.list_selected_options = new Array();
1027
+ this.menu_show = false;
1028
+ this.search_text = '';
1029
+ this.id = '';
1030
+ //Placeholders for the callbacks which are later providesd
1031
+ //by the Control Value Accessor
1032
+ this.onTouchedCallback = noop;
1033
+ this.onChangeCallback = noop;
1034
+ }
1035
+ set disabled(v) {
1036
+ this._disabled = v;
1037
+ if (this._disabled) {
1038
+ this.selected_description = '';
1039
+ this.selected_item = '';
1040
+ this.toChange();
1041
+ }
1042
+ }
1043
+ get disabled() { return this._disabled; }
1044
+ set loading(v) {
1045
+ this._loading = v;
1046
+ if (this._loading) {
1047
+ this.selected_description = '';
1048
+ this.selected_item = '';
1049
+ this.toChange();
1050
+ }
1051
+ }
1052
+ get loading() { return this._loading; }
1053
+ set ngModel(v) {
1054
+ this.selected_item = v;
1055
+ this.selectDescription();
1056
+ }
1057
+ ngOnInit() {
1058
+ this.id = this.generateID();
1059
+ this.formulario = this.formBuilder.group({
1060
+ "selected_item": new FormControl('', []),
1061
+ });
1062
+ this.subscription_value = this.dataListService.stateValue$.subscribe(v => {
1063
+ this.selected_item = v;
1064
+ this.selectDescription();
1065
+ });
1066
+ this.subscription_description = this.dataListService.stateDescription$.subscribe(v => {
1067
+ this.selected_description = v;
1068
+ });
1069
+ this.subscription_options = this.dataListService.stateOptions$.subscribe((v) => {
1070
+ if (v && v.value) {
1071
+ (this.list_selected_options).push(v);
1072
+ }
1073
+ });
1074
+ this.toResize();
1075
+ this.toClick();
1076
+ }
1077
+ generateID() {
1078
+ return `data-list-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
1079
+ }
1080
+ ngOnDestroy() {
1081
+ if (this.subscription_value) {
1082
+ this.subscription_value.unsubscribe();
1083
+ }
1084
+ if (this.subscription_description) {
1085
+ this.subscription_description.unsubscribe();
1086
+ }
1087
+ if (this.subscription_options) {
1088
+ this.subscription_options.unsubscribe();
1089
+ }
1090
+ }
1091
+ toSearch(e) {
1092
+ let input = (e && e.target && e.target.value) ? e.target.value : '';
1093
+ let filter = (((input).normalize('NFD').replace(/[\u0300-\u036f]/g, "")).trim()).toLowerCase();
1094
+ let ul = document.getElementById(`${this.id}-options`);
1095
+ let li = ul.getElementsByTagName("button");
1096
+ for (let i = 0; i < li.length; i++) {
1097
+ const a = li[i];
1098
+ const txtValue = (((a.textContent || a.innerText).normalize('NFD').replace(/[\u0300-\u036f]/g, "")).trim()).toLowerCase();
1099
+ if (txtValue.indexOf(filter) > -1) {
1100
+ li[i].style.display = "";
1101
+ }
1102
+ else {
1103
+ li[i].style.display = "none";
1104
+ }
1105
+ }
1106
+ }
1107
+ selectDescription() {
1108
+ if (this.list_selected_options && (this.list_selected_options).length > 0) {
1109
+ for (let i = 0; i < (this.list_selected_options).length; i++) {
1110
+ const item = this.list_selected_options[i];
1111
+ if (item.value === this.selected_item) {
1112
+ this.selected_description = item.description;
1113
+ this.toChange();
1114
+ return;
1115
+ }
1116
+ }
1117
+ }
1118
+ if (this.selected_item === undefined || this.selected_item === null || this.selected_item === '') {
1119
+ this.toChange();
1120
+ }
1121
+ }
1122
+ toInput(e) {
1123
+ this.onChange.emit(e);
1124
+ }
1125
+ toChange() {
1126
+ setTimeout(() => {
1127
+ if (this.selected_item === undefined || this.selected_item === null) {
1128
+ this.selected_item = '';
1129
+ }
1130
+ this.toSearch('');
1131
+ this.search_text = '';
1132
+ this.dataListService.setActiveItem(this.selected_item);
1133
+ this.onInputChange.emit(this.selected_description);
1134
+ if (this.formulario) {
1135
+ this.formulario?.get('selected_item')?.setValue(this.selected_item);
1136
+ // const input_hidden = document.getElementById(`${this.id}-hidden`);
1137
+ this.toInput(this.formulario.get('selected_item'));
1138
+ }
1139
+ });
1140
+ }
1141
+ clearTextSearch() {
1142
+ this.search_text = '';
1143
+ this.toSearch('');
1144
+ }
1145
+ toOpen() {
1146
+ this.menu_show = !this.menu_show;
1147
+ this.resolve_position_dropdown(this.menu_show);
1148
+ }
1149
+ resolve_position_dropdown(open) {
1150
+ if (open) {
1151
+ this.box_style = '';
1152
+ this.menu_on_top = '';
1153
+ const id = `${this.id}`;
1154
+ const box = `box-${this.id}`;
1155
+ if (this.viewport_height === 0) {
1156
+ this.viewport_height = window.innerWidth;
1157
+ }
1158
+ const rect = document.getElementById(id)?.getBoundingClientRect();
1159
+ const box_position = rect?.bottom || 0;
1160
+ setTimeout(() => {
1161
+ this.box_height = document.getElementById(box)?.clientHeight || 0;
1162
+ if ((this.viewport_height - box_position) < this.box_height) {
1163
+ this.menu_on_top = 'menu-on-top';
1164
+ this.box_style = `top: -${(this.box_height)}px; height: ${this.box_height}px;`;
1165
+ }
1166
+ });
1167
+ }
1168
+ }
1169
+ toClose() {
1170
+ this.menu_show = false;
1171
+ }
1172
+ toResize() {
1173
+ window.addEventListener('resize', () => {
1174
+ this.viewport_width = window.innerWidth;
1175
+ this.viewport_height = window.innerHeight;
1176
+ this.resolve_position_dropdown(this.menu_show);
1177
+ });
1178
+ }
1179
+ toClick() {
1180
+ const box = `area-${this.id}`;
1181
+ window.addEventListener('click', (e) => {
1182
+ if (this.menu_show) {
1183
+ if (!(document.getElementById(box)?.contains(e.target))) {
1184
+ this.menu_show = false;
1185
+ }
1186
+ }
1187
+ });
1188
+ }
1189
+ //get accessor
1190
+ get value() {
1191
+ return this.selected_item;
1192
+ }
1193
+ ;
1194
+ //set accessor including call the onchange callback
1195
+ set value(v) {
1196
+ if (v !== this.selected_item) {
1197
+ this.selected_item = v;
1198
+ this.onChangeCallback(v);
1199
+ }
1200
+ }
1201
+ //Set touched on blur
1202
+ onBlur() {
1203
+ this.onTouchedCallback();
1204
+ }
1205
+ //From ControlValueAccessor interface
1206
+ writeValue(value) {
1207
+ if (value !== this.selected_item) {
1208
+ this.selected_item = value;
1209
+ }
1210
+ }
1211
+ //From ControlValueAccessor interface
1212
+ registerOnChange(fn) {
1213
+ this.onChangeCallback = fn;
1214
+ }
1215
+ //From ControlValueAccessor interface
1216
+ registerOnTouched(fn) {
1217
+ this.onTouchedCallback = fn;
1218
+ }
1219
+ }
1220
+ TCloudUiDataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListComponent, deps: [{ token: DataListService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
1221
+ TCloudUiDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiDataListComponent, selector: "tcloud-ui-data-list", inputs: { placeholder: "placeholder", disabled: "disabled", loading: "loading", search: "search", ngModel: "ngModel" }, outputs: { onInputChange: "onInputChange", onChange: "onChange" }, providers: [
1222
+ DataListService,
1223
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
1224
+ ], ngImport: i0, template: "<div *ngIf=\"formulario\" id=\"area-{{ id }}\" class=\"tc-dropdown\" [class.disabled]=\"disabled || loading\">\r\n <div *ngIf=\"loading\" class=\"loading-area\">\r\n <i class=\"fas fa-spinner fa-spin\"></i>\r\n </div>\r\n <!-- [attr.data-bs-toggle]=\"'dropdown'\" -->\r\n <button \r\n [class.loading-box]=\"loading\"\r\n [disabled]=\"disabled || loading\"\r\n class=\"dropdown-toggle button-select\" \r\n type=\"button\" \r\n id=\"{{ id }}\" \r\n \r\n [attr.aria-haspopup]=\"'true'\" \r\n [attr.aria-expanded]=\"'false'\" \r\n (click)=\"toOpen()\" >\r\n\r\n <i *ngIf=\"(selected_description === undefined || selected_description === null || selected_description === '' ) && !loading \">{{ placeholder }}</i>\r\n {{ selected_description }}\r\n <span><i class=\"fas fa-angle-down\"></i></span>\r\n </button>\r\n <div class=\"tc-dropdown-menu {{ menu_on_top }}\" id=\"box-{{ id }}\" [attr.aria-labelledby]=\"id\" [class.to-hide]=\"!menu_show\" [style]=\"box_style\">\r\n\r\n <div class=\"line-search\" *ngIf=\"search\">\r\n <table class=\"box-search\">\r\n <tr>\r\n\r\n <td class=\"area-input\">\r\n <input type=\"text\" [(ngModel)]=\"search_text\" (input)=\"toSearch($event)\" placeholder=\"Buscar...\" > \r\n </td>\r\n\r\n <td class=\"area-icon\">\r\n <i *ngIf=\"search_text === ''\" class=\"fas fa-search icon-search\"></i>\r\n <button type=\"button\" *ngIf=\"search_text !== ''\" (click)=\"clearTextSearch()\"><i class=\"fas fa-times\"></i></button>\r\n </td>\r\n \r\n </tr>\r\n </table>\r\n </div>\r\n \r\n <div class=\"area-options\" id=\"{{ id }}-options\" (click)=\"toClose()\">\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"formulario\">\r\n <form [formGroup]=\"formulario\" style=\"display: none;\" >\r\n <input id=\"{{ id }}-hidden\" formControlName=\"selected_item\" type=\"hidden\">\r\n </form>\r\n</div>", styles: [".dropdown-toggle:after{display:none!important}.tc-dropdown{position:relative}.tc-dropdown .button-select{width:100%;background-color:#fff;border:1px solid #ccc;height:35px;text-align:left;padding-left:15px;font-size:14px;color:#666}.tc-dropdown .button-select span{position:absolute;right:6px;top:7px}.tc-dropdown .tc-dropdown-menu{width:100%;border:1px solid #ccc;background-color:#fff}.tc-dropdown .area-options{max-height:200px;overflow-y:scroll;overflow-x:hidden}.tc-dropdown .menu-on-top{position:absolute}.line-search{padding:3px}.line-search .box-search{width:100%;border-collapse:collapse}.line-search .box-search td.area-icon{padding:4px 0 2px 8px;width:35px}.line-search .box-search td.area-icon .icon-search{color:#666}.line-search .box-search td.area-icon button{border:none;background-color:transparent;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.line-search .box-search td.area-input{border:none}.line-search .box-search td.area-input input{width:100%}.line-search .box-search input{width:100%;font-size:13px;height:33px;border:1px solid #ccc;padding:10px}.loading-area{line-height:0;position:relative;height:0;bottom:-10px;left:10px}button:disabled{background-color:#eee!important;border:1px solid #ececec!important;cursor:not-allowed}.loading-box{cursor:progress!important}.disabled i{color:#999!important}.to-hide{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] });
1225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListComponent, decorators: [{
1226
+ type: Component,
1227
+ args: [{ selector: 'tcloud-ui-data-list', providers: [
1228
+ DataListService,
1229
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
1230
+ ], template: "<div *ngIf=\"formulario\" id=\"area-{{ id }}\" class=\"tc-dropdown\" [class.disabled]=\"disabled || loading\">\r\n <div *ngIf=\"loading\" class=\"loading-area\">\r\n <i class=\"fas fa-spinner fa-spin\"></i>\r\n </div>\r\n <!-- [attr.data-bs-toggle]=\"'dropdown'\" -->\r\n <button \r\n [class.loading-box]=\"loading\"\r\n [disabled]=\"disabled || loading\"\r\n class=\"dropdown-toggle button-select\" \r\n type=\"button\" \r\n id=\"{{ id }}\" \r\n \r\n [attr.aria-haspopup]=\"'true'\" \r\n [attr.aria-expanded]=\"'false'\" \r\n (click)=\"toOpen()\" >\r\n\r\n <i *ngIf=\"(selected_description === undefined || selected_description === null || selected_description === '' ) && !loading \">{{ placeholder }}</i>\r\n {{ selected_description }}\r\n <span><i class=\"fas fa-angle-down\"></i></span>\r\n </button>\r\n <div class=\"tc-dropdown-menu {{ menu_on_top }}\" id=\"box-{{ id }}\" [attr.aria-labelledby]=\"id\" [class.to-hide]=\"!menu_show\" [style]=\"box_style\">\r\n\r\n <div class=\"line-search\" *ngIf=\"search\">\r\n <table class=\"box-search\">\r\n <tr>\r\n\r\n <td class=\"area-input\">\r\n <input type=\"text\" [(ngModel)]=\"search_text\" (input)=\"toSearch($event)\" placeholder=\"Buscar...\" > \r\n </td>\r\n\r\n <td class=\"area-icon\">\r\n <i *ngIf=\"search_text === ''\" class=\"fas fa-search icon-search\"></i>\r\n <button type=\"button\" *ngIf=\"search_text !== ''\" (click)=\"clearTextSearch()\"><i class=\"fas fa-times\"></i></button>\r\n </td>\r\n \r\n </tr>\r\n </table>\r\n </div>\r\n \r\n <div class=\"area-options\" id=\"{{ id }}-options\" (click)=\"toClose()\">\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"formulario\">\r\n <form [formGroup]=\"formulario\" style=\"display: none;\" >\r\n <input id=\"{{ id }}-hidden\" formControlName=\"selected_item\" type=\"hidden\">\r\n </form>\r\n</div>", styles: [".dropdown-toggle:after{display:none!important}.tc-dropdown{position:relative}.tc-dropdown .button-select{width:100%;background-color:#fff;border:1px solid #ccc;height:35px;text-align:left;padding-left:15px;font-size:14px;color:#666}.tc-dropdown .button-select span{position:absolute;right:6px;top:7px}.tc-dropdown .tc-dropdown-menu{width:100%;border:1px solid #ccc;background-color:#fff}.tc-dropdown .area-options{max-height:200px;overflow-y:scroll;overflow-x:hidden}.tc-dropdown .menu-on-top{position:absolute}.line-search{padding:3px}.line-search .box-search{width:100%;border-collapse:collapse}.line-search .box-search td.area-icon{padding:4px 0 2px 8px;width:35px}.line-search .box-search td.area-icon .icon-search{color:#666}.line-search .box-search td.area-icon button{border:none;background-color:transparent;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.line-search .box-search td.area-input{border:none}.line-search .box-search td.area-input input{width:100%}.line-search .box-search input{width:100%;font-size:13px;height:33px;border:1px solid #ccc;padding:10px}.loading-area{line-height:0;position:relative;height:0;bottom:-10px;left:10px}button:disabled{background-color:#eee!important;border:1px solid #ececec!important;cursor:not-allowed}.loading-box{cursor:progress!important}.disabled i{color:#999!important}.to-hide{display:none}\n"] }]
1231
+ }], ctorParameters: function () { return [{ type: DataListService }, { type: i2.FormBuilder }]; }, propDecorators: { placeholder: [{
1232
+ type: Input
1233
+ }], disabled: [{
1234
+ type: Input
1235
+ }], loading: [{
1236
+ type: Input
1237
+ }], search: [{
1238
+ type: Input
1239
+ }], onInputChange: [{
1240
+ type: Output
1241
+ }], onChange: [{
1242
+ type: Output
1243
+ }], ngModel: [{
1244
+ type: Input
1245
+ }] } });
1246
+
1247
+ class ISelectOptions {
1248
+ }
1249
+
1250
+ class TCloudUiDataListOptionComponent {
1251
+ constructor(dataListService) {
1252
+ this.dataListService = dataListService;
1253
+ this.id = '';
1254
+ this.select_options = new ISelectOptions();
1255
+ this.selected = new EventEmitter();
1256
+ this.subscription_active = dataListService.stateValue$.subscribe(v => { this.actived_value = v; });
1257
+ }
1258
+ ngOnInit() {
1259
+ this.id = this.generateID();
1260
+ this.setSelectOptions();
1261
+ }
1262
+ generateID() {
1263
+ return `data-list-option-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
1264
+ }
1265
+ setSelectedItem(value) {
1266
+ if (value === '') {
1267
+ this.value = '';
1268
+ }
1269
+ this.dataListService.setItemValue(this.value);
1270
+ const description = document.getElementById(this.id)?.innerText || '';
1271
+ this.dataListService.setItemDescription(description);
1272
+ this.setSelectOptions();
1273
+ }
1274
+ setSelectOptions() {
1275
+ setTimeout(() => {
1276
+ try {
1277
+ const description = document.getElementById(this.id)?.innerText;
1278
+ this.select_options.value = this.value;
1279
+ this.select_options.description = description;
1280
+ this.dataListService.registerSelectionOptionsDescription(this.select_options);
1281
+ }
1282
+ catch (error) { }
1283
+ });
1284
+ }
1285
+ ngOnDestroy() {
1286
+ if (this.subscription_active) {
1287
+ this.subscription_active.unsubscribe();
1288
+ }
1289
+ }
1290
+ }
1291
+ TCloudUiDataListOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListOptionComponent, deps: [{ token: DataListService }], target: i0.ɵɵFactoryTarget.Component });
1292
+ TCloudUiDataListOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiDataListOptionComponent, selector: "tcloud-ui-data-list-option", inputs: { value: "value" }, outputs: { selected: "selected" }, ngImport: i0, template: "<button \r\n [title]=\"select_options.description\"\r\n id=\"{{id}}\"\r\n [attr.data-description]=\"select_options.description\"\r\n class=\"dropdown-item\" \r\n [class.null-value]=\"value === undefined || value === null || value === ''\"\r\n [class.active]=\"value === actived_value\" \r\n type=\"button\" \r\n [value]=\"value\"\r\n (click)=\"setSelectedItem(value)\" >\r\n <ng-content></ng-content>\r\n</button>\r\n", styles: ["button{color:#666;width:100%;padding:10px;font-size:14px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}button:hover{background-color:#e5f5f9;color:#333}button.active{background-color:#ceedf5;color:#333}.null-value{height:35px}\n"] });
1293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListOptionComponent, decorators: [{
1294
+ type: Component,
1295
+ args: [{ selector: 'tcloud-ui-data-list-option', template: "<button \r\n [title]=\"select_options.description\"\r\n id=\"{{id}}\"\r\n [attr.data-description]=\"select_options.description\"\r\n class=\"dropdown-item\" \r\n [class.null-value]=\"value === undefined || value === null || value === ''\"\r\n [class.active]=\"value === actived_value\" \r\n type=\"button\" \r\n [value]=\"value\"\r\n (click)=\"setSelectedItem(value)\" >\r\n <ng-content></ng-content>\r\n</button>\r\n", styles: ["button{color:#666;width:100%;padding:10px;font-size:14px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}button:hover{background-color:#e5f5f9;color:#333}button.active{background-color:#ceedf5;color:#333}.null-value{height:35px}\n"] }]
1296
+ }], ctorParameters: function () { return [{ type: DataListService }]; }, propDecorators: { value: [{
1297
+ type: Input
1298
+ }], selected: [{
1299
+ type: Output
1300
+ }] } });
1301
+
1302
+ class TCloudUiDataListModule {
1303
+ }
1304
+ TCloudUiDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1305
+ TCloudUiDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListModule, declarations: [TCloudUiDataListComponent,
1306
+ TCloudUiDataListOptionComponent], imports: [CommonModule,
1307
+ FormsModule,
1308
+ ReactiveFormsModule], exports: [TCloudUiDataListComponent,
1309
+ TCloudUiDataListOptionComponent] });
1310
+ TCloudUiDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListModule, imports: [CommonModule,
1311
+ FormsModule,
1312
+ ReactiveFormsModule] });
1313
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListModule, decorators: [{
1314
+ type: NgModule,
1315
+ args: [{
1316
+ declarations: [
1317
+ TCloudUiDataListComponent,
1318
+ TCloudUiDataListOptionComponent,
1319
+ ],
1320
+ exports: [
1321
+ TCloudUiDataListComponent,
1322
+ TCloudUiDataListOptionComponent
1323
+ ],
1324
+ imports: [
1325
+ CommonModule,
1326
+ FormsModule,
1327
+ ReactiveFormsModule
1328
+ ]
1329
+ }]
1330
+ }] });
1331
+
1332
+ class TooltipDirective {
1333
+ constructor(el, renderer) {
1334
+ this.el = el;
1335
+ this.renderer = renderer;
1336
+ this._direction = 'top';
1337
+ // main
1338
+ this.el_height = 0;
1339
+ this.el_width = 0;
1340
+ this.el_center = 0;
1341
+ this.el_position = 0;
1342
+ // tooltip
1343
+ this.target_height = 0;
1344
+ this.target_width = 0;
1345
+ this.target_center = 0;
1346
+ this.ID = '';
1347
+ this.info_text = '';
1348
+ }
1349
+ onMouseOver() {
1350
+ if (this.getElement()) {
1351
+ const el = this.getElement();
1352
+ el.style.display = 'inline';
1353
+ setTimeout(() => {
1354
+ this.el_height = this.el.nativeElement.offsetHeight;
1355
+ this.el_width = this.el.nativeElement.offsetWidth;
1356
+ this.el_center = this.el_width / 2;
1357
+ const rect = this.el.nativeElement?.getBoundingClientRect();
1358
+ this.el_position = rect?.left || 0;
1359
+ // console.log('this.el_width', this.el_width);
1360
+ // console.log('this.el_center', this.el_center);
1361
+ // console.log('this.el_position', this.el_position);
1362
+ this.target_height = el.offsetHeight;
1363
+ this.target_width = el.offsetWidth;
1364
+ this.target_center = this.target_width / 2;
1365
+ // console.log('target_heigth', this.target_height);
1366
+ // console.log('target_width', this.target_width);
1367
+ // console.log('target_center', this.target_center);
1368
+ // this.renderer.setStyle(el, 'bottom', `${this.el_position}px`);
1369
+ switch (this._direction) {
1370
+ case 'top':
1371
+ this.to_top(el);
1372
+ break;
1373
+ case 'bottom':
1374
+ this.to_bottom(el);
1375
+ break;
1376
+ case 'left':
1377
+ this.to_left(el);
1378
+ break;
1379
+ case 'right':
1380
+ this.to_right(el);
1381
+ break;
1382
+ }
1383
+ });
1384
+ }
1385
+ }
1386
+ onMouseOut() {
1387
+ if (this.getElement()) {
1388
+ const el = this.getElement();
1389
+ el.style.display = 'none';
1390
+ }
1391
+ }
1392
+ set tooltip(tooltip) {
1393
+ if (tooltip) {
1394
+ this.check(tooltip);
1395
+ }
1396
+ }
1397
+ ;
1398
+ set direction(direction) {
1399
+ if (direction) {
1400
+ this._direction = direction;
1401
+ }
1402
+ }
1403
+ ;
1404
+ ngOnInit() {
1405
+ }
1406
+ generateID() {
1407
+ return `tc-tooltip-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
1408
+ }
1409
+ getElement() {
1410
+ return document.getElementById(this.ID) || undefined;
1411
+ }
1412
+ check(tooltip) {
1413
+ this.ID = this.generateID();
1414
+ this.info_text = tooltip;
1415
+ let el = this.el.nativeElement;
1416
+ this.main_el = el;
1417
+ if (el) {
1418
+ this.create_tooltip(tooltip, el);
1419
+ }
1420
+ else {
1421
+ console.log("TCL: tooltip -> el", this.el.nativeElement);
1422
+ }
1423
+ }
1424
+ setStyle(el) {
1425
+ this.renderer.setStyle(el, 'position', 'relative');
1426
+ this.renderer.setStyle(el, 'border', '1px');
1427
+ this.renderer.setStyle(el, 'display', 'inline');
1428
+ }
1429
+ create_tooltip(tip, el) {
1430
+ this.setStyle(el);
1431
+ const tooltip = document.createElement("div");
1432
+ tooltip.setAttribute('id', this.ID);
1433
+ tooltip.setAttribute('style', `
1434
+ position: absolute;
1435
+ display: none;
1436
+ padding: .5rem;
1437
+ border-radius: 10px;
1438
+ text-align: center;
1439
+ width: max-content;
1440
+ max-width: 250px;
1441
+ background-color: transparent;
1442
+ color: transparent;
1443
+ z-index: 1090;
1444
+ bottom: ${this.el_position}px;
1445
+ left: ${this.target_center}px;
1446
+ `);
1447
+ tooltip.innerHTML = tip;
1448
+ el.insertBefore(tooltip, null);
1449
+ }
1450
+ to_top(el) {
1451
+ const pos = this.el_center - (this.target_center);
1452
+ this.renderer.setStyle(el, 'left', `${(pos)}px`);
1453
+ this.renderer.setStyle(el, 'bottom', `24px`);
1454
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
1455
+ }
1456
+ to_bottom(el) {
1457
+ const pos = this.el_center - (this.target_center);
1458
+ this.renderer.setStyle(el, 'left', `${(pos)}px`);
1459
+ this.renderer.setStyle(el, 'bottom', `-${(this.target_height + 7)}px`);
1460
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-bottom');
1461
+ }
1462
+ to_right(el) {
1463
+ const pos = this.el_width;
1464
+ this.renderer.setStyle(el, 'left', `${(pos + 11)}px`);
1465
+ this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
1466
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-right');
1467
+ }
1468
+ to_left(el) {
1469
+ const pos = -((this.target_width));
1470
+ this.renderer.setStyle(el, 'left', `${(pos - 11)}px`);
1471
+ this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
1472
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-left');
1473
+ }
1474
+ }
1475
+ TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1476
+ TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TooltipDirective, selector: "[tooltip]", inputs: { tooltip: "tooltip", direction: "direction" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, ngImport: i0 });
1477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TooltipDirective, decorators: [{
1478
+ type: Directive,
1479
+ args: [{
1480
+ selector: '[tooltip]'
1481
+ }]
1482
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
1483
+ type: HostListener,
1484
+ args: ['mouseover']
1485
+ }], onMouseOut: [{
1486
+ type: HostListener,
1487
+ args: ['mouseout']
1488
+ }], tooltip: [{
1489
+ type: Input
1490
+ }], direction: [{
1491
+ type: Input
1492
+ }] } });
1493
+
1494
+ class TCloudAccessModule {
1495
+ }
1496
+ TCloudAccessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudAccessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1497
+ TCloudAccessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudAccessModule, declarations: [TooltipDirective], exports: [TooltipDirective] });
1498
+ TCloudAccessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudAccessModule });
1499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudAccessModule, decorators: [{
1500
+ type: NgModule,
1501
+ args: [{
1502
+ declarations: [TooltipDirective],
1503
+ exports: [TooltipDirective],
1504
+ }]
1505
+ }] });
1506
+
1507
+ class MonthNamePipe {
1508
+ constructor() {
1509
+ this.meses = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezenbro'];
1510
+ }
1511
+ transform(yyyy_mm) {
1512
+ if (yyyy_mm !== '') {
1513
+ let part = (yyyy_mm).split('-');
1514
+ if ((part).length === 2) {
1515
+ let yyyy = +part[0];
1516
+ let mm = +part[1];
1517
+ return this.meses[(mm - 1)];
1518
+ }
1519
+ }
1520
+ return '';
1521
+ }
1522
+ }
1523
+ MonthNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1524
+ MonthNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: MonthNamePipe, name: "monthname" });
1525
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MonthNamePipe, decorators: [{
1526
+ type: Pipe,
1527
+ args: [{ name: 'monthname' }]
1528
+ }] });
1529
+
1530
+ class StatusInfoPipe {
1531
+ constructor() {
1532
+ this.status_default = [
1533
+ { key: 'SUCCEEDED', value: 'Finalizado' },
1534
+ { key: 'PENDING', value: 'Pendente' },
1535
+ { key: 'FAILED', value: 'Erro' },
1536
+ { key: 'RUNNING', value: 'Em andamento' },
1537
+ { key: 'REGISTRATION', value: 'Cadastro Pendente' },
1538
+ { key: 'SUCCEED', value: 'Finalizado' },
1539
+ { key: 'WAITING', value: 'Aguardando' },
1540
+ { key: 'REJECTED', value: 'Rejeitado' },
1541
+ ];
1542
+ this.status_proposal = [
1543
+ { key: 'SUCCEEDED', value: 'Finalizado' },
1544
+ { key: 'PENDING', value: 'Aguardando Aprovação' },
1545
+ { key: 'FAILED', value: 'Erro' },
1546
+ { key: 'RUNNING', value: 'Provisionando Ambientes' },
1547
+ { key: 'REGISTRATION', value: 'Cadastro Pendente' },
1548
+ { key: 'SUCCEED', value: 'Finalizado' },
1549
+ { key: 'WAITING', value: 'Provisionando Ambientes' },
1550
+ { key: 'REJECTED', value: 'Rejeitada' },
1551
+ ];
1552
+ }
1553
+ transform(status_name, tema) {
1554
+ let map_tema = this.status_default;
1555
+ if (tema && tema !== undefined) {
1556
+ switch (tema) {
1557
+ case 'proposal':
1558
+ map_tema = this.status_proposal;
1559
+ break;
1560
+ }
1561
+ }
1562
+ let status_name_in_search = '';
1563
+ if (tema && tema === 'ALL') {
1564
+ map_tema = this.status_default;
1565
+ if (status_name !== undefined && status_name !== null && `${status_name}` !== '') {
1566
+ for (let i = 0; i < (map_tema).length; i++) {
1567
+ if ((`${status_name}`).toLowerCase() === (`${map_tema[i].key}`).toLowerCase()) {
1568
+ status_name_in_search += ' ' + map_tema[i].value;
1569
+ break;
1570
+ }
1571
+ }
1572
+ }
1573
+ map_tema = this.status_proposal;
1574
+ if (status_name !== undefined && status_name !== null && `${status_name}` !== '') {
1575
+ for (let i = 0; i < (map_tema).length; i++) {
1576
+ if ((`${status_name}`).toLowerCase() === (`${map_tema[i].key}`).toLowerCase()) {
1577
+ status_name_in_search += ' ' + map_tema[i].value;
1578
+ break;
1579
+ }
1580
+ }
1581
+ }
1582
+ }
1583
+ else {
1584
+ if (status_name !== undefined && status_name !== null && `${status_name}` !== '') {
1585
+ for (let i = 0; i < (map_tema).length; i++) {
1586
+ if ((`${status_name}`).toLowerCase() === (`${map_tema[i].key}`).toLowerCase()) {
1587
+ status_name_in_search += ' ' + map_tema[i].value;
1588
+ break;
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1593
+ if (status_name_in_search !== '') {
1594
+ return status_name_in_search;
1595
+ }
1596
+ return status_name;
1597
+ }
1598
+ }
1599
+ StatusInfoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: StatusInfoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1600
+ StatusInfoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: StatusInfoPipe, name: "statusinfo" });
1601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: StatusInfoPipe, decorators: [{
1602
+ type: Pipe,
1603
+ args: [{ name: 'statusinfo' }]
1604
+ }] });
1605
+
1606
+ class RespectivePipe {
1607
+ constructor() {
1608
+ this.map = [
1609
+ // Tipos de Ambientes
1610
+ { key: 'production', value: 'Produção' },
1611
+ { key: 'development', value: 'Desenvolvimento' },
1612
+ { key: 'qa', value: 'Qualidade' },
1613
+ // Implantação / Migração
1614
+ { key: 'golive', value: 'Pré GoLive' },
1615
+ { key: 'kickoff', value: 'Kickoff' },
1616
+ // Tipos de Clientes
1617
+ { key: 'prime', value: 'Prime' },
1618
+ { key: 'p', value: 'Pequeno' },
1619
+ { key: 'm', value: 'Médio' },
1620
+ { key: 'g', value: 'Grande' },
1621
+ // Produtos
1622
+ { key: '2c', value: 'Carol' },
1623
+ { key: 'carol', value: 'carol' },
1624
+ { key: 'consinco', value: 'Consinco' },
1625
+ { key: 'datasul', value: 'Datasul' },
1626
+ { key: 'fluig', value: 'Fluig' },
1627
+ { key: 'license-server', value: 'License Server' },
1628
+ { key: 'pep', value: 'PEP' },
1629
+ { key: 'protheus', value: 'Protheus' },
1630
+ { key: 'pvi', value: 'PVI' },
1631
+ { key: 'rm', value: 'RM' },
1632
+ { key: 'sfa', value: 'SFA' },
1633
+ { key: 'smartrm', value: 'Smart RM' },
1634
+ { key: 'smartrmcluster', value: 'Smart RM Cluster' },
1635
+ { key: 'smartrmcontrol', value: 'Smart RM Control' },
1636
+ { key: 'taf', value: 'TAF' },
1637
+ { key: 'treports', value: 'Treports' },
1638
+ { key: 'tss', value: 'TSS' },
1639
+ { key: 'winthor', value: 'Winthor' },
1640
+ // Tipos de SO
1641
+ { key: 'windows', value: 'Windows' },
1642
+ { key: 'linux', value: 'Linux' },
1643
+ // Tipos responsaveis
1644
+ { key: 'prime_customer_success', value: 'Customer Success' },
1645
+ { key: 'project_manager', value: 'Gerente de Projetos' },
1646
+ { key: 'prime_engineer', value: 'Engenheiro Prime' }
1647
+ ];
1648
+ }
1649
+ transform(v) {
1650
+ if (v !== '') {
1651
+ for (let i = 0; i < (this.map).length; i++) {
1652
+ let custom_v = v;
1653
+ custom_v = (custom_v).toLowerCase();
1654
+ custom_v = (custom_v).trim();
1655
+ custom_v = (custom_v).replace(/\_/g, "-");
1656
+ const current_key = (this.map[i].key).replace(/\_/g, "-");
1657
+ if ((custom_v).toLowerCase() === current_key) {
1658
+ return this.map[i].value;
1659
+ }
1660
+ }
1661
+ }
1662
+ return v;
1663
+ }
1664
+ }
1665
+ RespectivePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RespectivePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1666
+ RespectivePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: RespectivePipe, name: "respective" });
1667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RespectivePipe, decorators: [{
1668
+ type: Pipe,
1669
+ args: [{ name: 'respective' }]
1670
+ }] });
1671
+
1672
+ class CNPJPipe {
1673
+ constructor() {
1674
+ this.mascara = "##.###.###/####-##";
1675
+ }
1676
+ createMask(v) {
1677
+ const mask = this.mascara;
1678
+ let str = v.replace(/\s/g, '');
1679
+ let strMask = '';
1680
+ if (str.length == 14) {
1681
+ let j = 0;
1682
+ for (let i = 0; i < mask.length; i++) {
1683
+ if (mask[i] == '#') {
1684
+ strMask += str[j++];
1685
+ }
1686
+ else {
1687
+ strMask += mask[i];
1688
+ }
1689
+ }
1690
+ }
1691
+ else {
1692
+ return v;
1693
+ }
1694
+ return strMask;
1695
+ }
1696
+ transform(cnpj) {
1697
+ return this.createMask(cnpj);
1698
+ }
1699
+ }
1700
+ CNPJPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CNPJPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1701
+ CNPJPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: CNPJPipe, name: "cnpj" });
1702
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CNPJPipe, decorators: [{
1703
+ type: Pipe,
1704
+ args: [{ name: 'cnpj' }]
1705
+ }] });
1706
+
1707
+ class CPFPipe {
1708
+ constructor() {
1709
+ this.mascara = "###.###.###-##";
1710
+ }
1711
+ createMask(v) {
1712
+ const mask = this.mascara;
1713
+ let str = v.replace(/\s/g, '');
1714
+ let strMask = '';
1715
+ if (str.length == 14) {
1716
+ let j = 0;
1717
+ for (let i = 0; i < mask.length; i++) {
1718
+ if (mask[i] == '#') {
1719
+ strMask += str[j++];
1720
+ }
1721
+ else {
1722
+ strMask += mask[i];
1723
+ }
1724
+ }
1725
+ }
1726
+ else {
1727
+ return v;
1728
+ }
1729
+ return strMask;
1730
+ }
1731
+ transform(cpf) {
1732
+ return this.createMask(cpf);
1733
+ }
1734
+ }
1735
+ CPFPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CPFPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1736
+ CPFPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: CPFPipe, name: "cpf" });
1737
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CPFPipe, decorators: [{
1738
+ type: Pipe,
1739
+ args: [{ name: 'cpf' }]
1740
+ }] });
1741
+
1742
+ class TCloudPipesModule {
1743
+ }
1744
+ TCloudPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1745
+ TCloudPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudPipesModule, declarations: [MonthNamePipe,
1746
+ StatusInfoPipe,
1747
+ RespectivePipe,
1748
+ CNPJPipe], imports: [CommonModule], exports: [MonthNamePipe,
1749
+ StatusInfoPipe,
1750
+ RespectivePipe,
1751
+ CNPJPipe] });
1752
+ TCloudPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudPipesModule, providers: [
1753
+ MonthNamePipe,
1754
+ StatusInfoPipe,
1755
+ RespectivePipe,
1756
+ CNPJPipe
1757
+ ], imports: [CommonModule] });
1758
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudPipesModule, decorators: [{
1759
+ type: NgModule,
1760
+ args: [{
1761
+ imports: [
1762
+ CommonModule,
1763
+ ],
1764
+ declarations: [
1765
+ MonthNamePipe,
1766
+ StatusInfoPipe,
1767
+ RespectivePipe,
1768
+ CNPJPipe
1769
+ ],
1770
+ exports: [
1771
+ MonthNamePipe,
1772
+ StatusInfoPipe,
1773
+ RespectivePipe,
1774
+ CNPJPipe
1775
+ ],
1776
+ providers: [
1777
+ MonthNamePipe,
1778
+ StatusInfoPipe,
1779
+ RespectivePipe,
1780
+ CNPJPipe
1781
+ ]
1782
+ }]
1783
+ }] });
1784
+
876
1785
  class TCloudUiModule {
877
1786
  }
878
1787
  TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
879
1788
  TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, imports: [TCloudUiModalModule,
880
1789
  TCloudUiTabMenuModule,
881
1790
  TCloudUiLinhaLogoModule,
882
- TCloudUiLineStepCircleModule], exports: [TCloudUiModalModule,
1791
+ TCloudUiLineStepCircleModule,
1792
+ TCloudUiMultiSelectModule,
1793
+ TCloudUiDataListModule,
1794
+ // Directives
1795
+ TCloudAccessModule,
1796
+ // Pipes
1797
+ TCloudPipesModule], exports: [TCloudUiModalModule,
883
1798
  TCloudUiTabMenuModule,
884
1799
  TCloudUiLinhaLogoModule,
885
- TCloudUiLineStepCircleModule] });
1800
+ TCloudUiLineStepCircleModule,
1801
+ TCloudUiMultiSelectModule,
1802
+ TCloudUiDataListModule,
1803
+ // Directives
1804
+ TCloudAccessModule,
1805
+ // Pipes
1806
+ TCloudPipesModule] });
886
1807
  TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, imports: [TCloudUiModalModule,
887
1808
  TCloudUiTabMenuModule,
888
1809
  TCloudUiLinhaLogoModule,
889
- TCloudUiLineStepCircleModule, TCloudUiModalModule,
1810
+ TCloudUiLineStepCircleModule,
1811
+ TCloudUiMultiSelectModule,
1812
+ TCloudUiDataListModule,
1813
+ // Directives
1814
+ TCloudAccessModule,
1815
+ // Pipes
1816
+ TCloudPipesModule, TCloudUiModalModule,
890
1817
  TCloudUiTabMenuModule,
891
1818
  TCloudUiLinhaLogoModule,
892
- TCloudUiLineStepCircleModule] });
1819
+ TCloudUiLineStepCircleModule,
1820
+ TCloudUiMultiSelectModule,
1821
+ TCloudUiDataListModule,
1822
+ // Directives
1823
+ TCloudAccessModule,
1824
+ // Pipes
1825
+ TCloudPipesModule] });
893
1826
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, decorators: [{
894
1827
  type: NgModule,
895
1828
  args: [{
@@ -897,20 +1830,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
897
1830
  TCloudUiModalModule,
898
1831
  TCloudUiTabMenuModule,
899
1832
  TCloudUiLinhaLogoModule,
900
- TCloudUiLineStepCircleModule
1833
+ TCloudUiLineStepCircleModule,
1834
+ TCloudUiMultiSelectModule,
1835
+ TCloudUiDataListModule,
1836
+ // Directives
1837
+ TCloudAccessModule,
1838
+ // Pipes
1839
+ TCloudPipesModule
901
1840
  ],
902
1841
  exports: [
903
1842
  TCloudUiModalModule,
904
1843
  TCloudUiTabMenuModule,
905
1844
  TCloudUiLinhaLogoModule,
906
- TCloudUiLineStepCircleModule
1845
+ TCloudUiLineStepCircleModule,
1846
+ TCloudUiMultiSelectModule,
1847
+ TCloudUiDataListModule,
1848
+ // Directives
1849
+ TCloudAccessModule,
1850
+ // Pipes
1851
+ TCloudPipesModule
907
1852
  ]
908
1853
  }]
909
1854
  }] });
910
1855
 
1856
+ /*
1857
+ * Public API Surface of tcloud-ui
1858
+ */
1859
+
911
1860
  /**
912
1861
  * Generated bundle index. Do not edit.
913
1862
  */
914
1863
 
915
- export { TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent };
1864
+ export { CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudAccessModule, TCloudPipesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TooltipDirective };
916
1865
  //# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map