@dev-tcloud/tcloud-ui 0.0.50 → 0.0.52

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 (29) hide show
  1. package/README.md +10 -0
  2. package/datepicker/js/datepicker-full.min.js +1 -0
  3. package/esm2020/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.component.mjs +302 -0
  4. package/esm2020/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.module.mjs +31 -0
  5. package/esm2020/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.component.mjs +209 -0
  6. package/esm2020/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.module.mjs +35 -0
  7. package/esm2020/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.mjs +79 -29
  8. package/esm2020/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.module.mjs +8 -4
  9. package/esm2020/lib/_pipes/datebr.mjs +102 -0
  10. package/esm2020/lib/_pipes/index.mjs +2 -1
  11. package/esm2020/lib/_pipes/tcloud-pipes.module.mjs +14 -8
  12. package/esm2020/lib/tcloud-ui.module.mjs +17 -3
  13. package/esm2020/public-api.mjs +7 -1
  14. package/fesm2015/dev-tcloud-tcloud-ui.mjs +1147 -415
  15. package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
  16. package/fesm2020/dev-tcloud-tcloud-ui.mjs +1139 -413
  17. package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
  18. package/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.component.d.ts +46 -0
  19. package/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.module.d.ts +9 -0
  20. package/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.component.d.ts +34 -0
  21. package/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.module.d.ts +10 -0
  22. package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.d.ts +2 -1
  23. package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.module.d.ts +2 -1
  24. package/lib/_pipes/datebr.d.ts +11 -0
  25. package/lib/_pipes/index.d.ts +1 -0
  26. package/lib/_pipes/tcloud-pipes.module.d.ts +3 -2
  27. package/lib/tcloud-ui.module.d.ts +5 -3
  28. package/package.json +1 -1
  29. package/public-api.d.ts +4 -0
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, NgModule, Injectable, EventEmitter, Output, ViewChild, forwardRef, Pipe, Directive, HostListener } from '@angular/core';
2
+ import { Component, Input, NgModule, Injectable, EventEmitter, Output, ViewChild, forwardRef, Pipe, ViewEncapsulation, Directive, HostListener } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DatePipe } from '@angular/common';
5
5
  import { Subject } from 'rxjs';
@@ -944,12 +944,12 @@ const CUSTOM_INPUT_VALIDATORS$1 = {
944
944
  useExisting: forwardRef(() => TCloudUiMultiSelectComponent),
945
945
  multi: true
946
946
  };
947
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
947
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
948
948
  provide: NG_VALUE_ACCESSOR,
949
949
  useExisting: forwardRef(() => TCloudUiMultiSelectComponent),
950
950
  multi: true
951
951
  };
952
- const noop$3 = () => {
952
+ const noop$5 = () => {
953
953
  };
954
954
  class TCloudUiMultiSelectComponent {
955
955
  constructor() {
@@ -962,8 +962,8 @@ class TCloudUiMultiSelectComponent {
962
962
  this.onChange = new EventEmitter();
963
963
  //Placeholders for the callbacks which are later providesd
964
964
  //by the Control Value Accessor
965
- this.onTouchedCallback = noop$3;
966
- this.onChangeCallback = noop$3;
965
+ this.onTouchedCallback = noop$5;
966
+ this.onChangeCallback = noop$5;
967
967
  }
968
968
  ngOnInit() {
969
969
  setTimeout(() => { this.toChange(); });
@@ -1094,10 +1094,10 @@ class TCloudUiMultiSelectComponent {
1094
1094
  }
1095
1095
  }
1096
1096
  TCloudUiMultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1097
- 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", required: "required" }, outputs: { tcChange: "tcChange", onChange: "onChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3, CUSTOM_INPUT_VALIDATORS$1], ngImport: i0, template: "\r\n <div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select \r\n class=\"tc-form-control\"\r\n [(ngModel)]=\"item_value\"\r\n [class.tc-parent-validation]=\"use_validation_required\" \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]=\"!item_value || tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value);onChangeTouched()\"\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 && (tcList && tcList.length > 0)\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n\r\n <ng-container *ngIf=\"item.active\">\r\n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\r\n <div class=\"box-value\" [title]=\"item.value\">\r\n {{ item.value }} \r\n </div>\r\n <div class=\"box-action\">\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);onChangeTouched()\">\r\n <i class=\"fas fa-times\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n </div>\r\n </div>\r\n", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}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}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\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"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
1097
+ 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", required: "required" }, outputs: { tcChange: "tcChange", onChange: "onChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5, CUSTOM_INPUT_VALIDATORS$1], ngImport: i0, template: "\r\n <div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select \r\n class=\"tc-form-control\"\r\n [(ngModel)]=\"item_value\"\r\n [class.tc-parent-validation]=\"use_validation_required\" \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]=\"!item_value || tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value);onChangeTouched()\"\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 && (tcList && tcList.length > 0)\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n\r\n <ng-container *ngIf=\"item.active\">\r\n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\r\n <div class=\"box-value\" [title]=\"item.value\">\r\n {{ item.value }} \r\n </div>\r\n <div class=\"box-action\">\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);onChangeTouched()\">\r\n <i class=\"fas fa-times\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n </div>\r\n </div>\r\n", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}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}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\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"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
1098
1098
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectComponent, decorators: [{
1099
1099
  type: Component,
1100
- args: [{ selector: 'tcloud-ui-multi-select', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3, CUSTOM_INPUT_VALIDATORS$1], template: "\r\n <div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select \r\n class=\"tc-form-control\"\r\n [(ngModel)]=\"item_value\"\r\n [class.tc-parent-validation]=\"use_validation_required\" \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]=\"!item_value || tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value);onChangeTouched()\"\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 && (tcList && tcList.length > 0)\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n\r\n <ng-container *ngIf=\"item.active\">\r\n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\r\n <div class=\"box-value\" [title]=\"item.value\">\r\n {{ item.value }} \r\n </div>\r\n <div class=\"box-action\">\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);onChangeTouched()\">\r\n <i class=\"fas fa-times\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n </div>\r\n </div>\r\n", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}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}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\n"] }]
1100
+ args: [{ selector: 'tcloud-ui-multi-select', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5, CUSTOM_INPUT_VALIDATORS$1], template: "\r\n <div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select \r\n class=\"tc-form-control\"\r\n [(ngModel)]=\"item_value\"\r\n [class.tc-parent-validation]=\"use_validation_required\" \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]=\"!item_value || tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value);onChangeTouched()\"\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 && (tcList && tcList.length > 0)\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n\r\n <ng-container *ngIf=\"item.active\">\r\n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\r\n <div class=\"box-value\" [title]=\"item.value\">\r\n {{ item.value }} \r\n </div>\r\n <div class=\"box-action\">\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);onChangeTouched()\">\r\n <i class=\"fas fa-times\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n </div>\r\n </div>\r\n", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}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}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\n"] }]
1101
1101
  }], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
1102
1102
  type: Input
1103
1103
  }], placeholder: [{
@@ -1171,12 +1171,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
1171
1171
  type: Injectable
1172
1172
  }] });
1173
1173
 
1174
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
1174
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 = {
1175
1175
  provide: NG_VALUE_ACCESSOR,
1176
1176
  useExisting: forwardRef(() => TCloudUiDataListComponent),
1177
1177
  multi: true
1178
1178
  };
1179
- const noop$2 = () => {
1179
+ const noop$4 = () => {
1180
1180
  };
1181
1181
  class TCloudUiDataListComponent {
1182
1182
  constructor(dataListService, formBuilder) {
@@ -1200,8 +1200,8 @@ class TCloudUiDataListComponent {
1200
1200
  this.id = '';
1201
1201
  //Placeholders for the callbacks which are later providesd
1202
1202
  //by the Control Value Accessor
1203
- this.onTouchedCallback = noop$2;
1204
- this.onChangeCallback = noop$2;
1203
+ this.onTouchedCallback = noop$4;
1204
+ this.onChangeCallback = noop$4;
1205
1205
  }
1206
1206
  set disabled(v) {
1207
1207
  if (v) {
@@ -1419,13 +1419,13 @@ class TCloudUiDataListComponent {
1419
1419
  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 });
1420
1420
  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", ngModelChange: "ngModelChange" }, providers: [
1421
1421
  DataListService,
1422
- CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2
1422
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4
1423
1423
  ], 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 no-margin-bottom\" \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\" class=\"tc-form-control\" [(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>\r\n", 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;position:absolute;z-index:1}.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}.no-margin-bottom{margin-bottom:0!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.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"] }] });
1424
1424
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListComponent, decorators: [{
1425
1425
  type: Component,
1426
1426
  args: [{ selector: 'tcloud-ui-data-list', providers: [
1427
1427
  DataListService,
1428
- CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2
1428
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4
1429
1429
  ], 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 no-margin-bottom\" \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\" class=\"tc-form-control\" [(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>\r\n", 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;position:absolute;z-index:1}.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}.no-margin-bottom{margin-bottom:0!important}\n"] }]
1430
1430
  }], ctorParameters: function () { return [{ type: DataListService }, { type: i2.FormBuilder }]; }, propDecorators: { placeholder: [{
1431
1431
  type: Input
@@ -1535,12 +1535,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
1535
1535
  }]
1536
1536
  }] });
1537
1537
 
1538
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
1538
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
1539
1539
  provide: NG_VALUE_ACCESSOR,
1540
1540
  useExisting: forwardRef(() => TCloudUiChoiceIssuesComponent),
1541
1541
  multi: true
1542
1542
  };
1543
- const noop$1 = () => {
1543
+ const noop$3 = () => {
1544
1544
  };
1545
1545
  class TCloudUiChoiceIssuesComponent {
1546
1546
  constructor() {
@@ -1552,8 +1552,8 @@ class TCloudUiChoiceIssuesComponent {
1552
1552
  this.innerValue = false;
1553
1553
  //Placeholders for the callbacks which are later providesd
1554
1554
  //by the Control Value Accessor
1555
- this.onTouchedCallback = noop$1;
1556
- this.onChangeCallback = noop$1;
1555
+ this.onTouchedCallback = noop$3;
1556
+ this.onChangeCallback = noop$3;
1557
1557
  this.ID = 'tc-issue-' + Math.random().toString(36).substr(2, 9);
1558
1558
  }
1559
1559
  //get accessor
@@ -1599,10 +1599,10 @@ class TCloudUiChoiceIssuesComponent {
1599
1599
  }
1600
1600
  }
1601
1601
  TCloudUiChoiceIssuesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1602
- TCloudUiChoiceIssuesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiChoiceIssuesComponent, selector: "tcloud-ui-choice-issues", inputs: { view: "view", titulo: "titulo", subTitulo: "subTitulo", disabled: "disabled" }, outputs: { onChange: "onChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["campo"], descendants: true, read: true }], ngImport: i0, template: "\r\n\r\n<input #campo [(ngModel)]=\"value\" type=\"hidden\" [value]=\"false\" >\r\n<div class=\"box p-2 mt-3 mb-2\">\r\n <div class=\"row\">\r\n <div class=\"col-md-8\">\r\n <p class=\"titulo\">{{ titulo }}</p> \r\n </div>\r\n <div class=\"col-md-4 text-right\"> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"!view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"value\" class=\"mr-1\"><input #campo name=\"{{ ID }}\" [value]=\"true\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(true)\" >Sim</label>\r\n </div>\r\n </td>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"!value\" class=\"ml-2\"><input #campo name=\"{{ ID }}\" [value]=\"false\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(false)\" >N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset view\" >\r\n <label *ngIf=\"value\" class=\"v-true disabled\" >Sim</label>\r\n <label *ngIf=\"!value\">N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div class=\"col-md-12 mt-1\">\r\n <p class=\"sub-titulo\">{{ subTitulo }}</p>\r\n </div>\r\n <div class=\"col-md-12 mt-2 mb-1\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".titulo{font-size:1rem;color:var(--cinza)}.sub-titulo{color:#b0adaa}.box{border:1px solid var(--cinza3);border-radius:10px}.box.box-icon{display:flex;justify-content:center;padding:35px 20px}.form-fieldset input{display:none}.form-fieldset .v-true{background:var(--verde);color:#fff}.form-fieldset label{font-size:11px;background:var(--cinza4);cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:space-around;text-transform:uppercase;border-radius:30px;padding:7px;margin:0;width:66px}.form-fieldset label:before{content:\"\";background:#fff;border-radius:50%;height:15px;width:15px}.form-fieldset label:nth-child(2){margin-right:20px}table{width:100%;max-width:200px}table th,table td{vertical-align:top}.view,.view label{cursor:inherit!important}.disabled{background-color:#8fdfe8!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
1602
+ TCloudUiChoiceIssuesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiChoiceIssuesComponent, selector: "tcloud-ui-choice-issues", inputs: { view: "view", titulo: "titulo", subTitulo: "subTitulo", disabled: "disabled" }, outputs: { onChange: "onChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["campo"], descendants: true, read: true }], ngImport: i0, template: "\r\n\r\n<input #campo [(ngModel)]=\"value\" type=\"hidden\" [value]=\"false\" >\r\n<div class=\"box p-2 mt-3 mb-2\">\r\n <div class=\"row\">\r\n <div class=\"col-md-8\">\r\n <p class=\"titulo\">{{ titulo }}</p> \r\n </div>\r\n <div class=\"col-md-4 text-right\"> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"!view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"value\" class=\"mr-1\"><input #campo name=\"{{ ID }}\" [value]=\"true\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(true)\" >Sim</label>\r\n </div>\r\n </td>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"!value\" class=\"ml-2\"><input #campo name=\"{{ ID }}\" [value]=\"false\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(false)\" >N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset view\" >\r\n <label *ngIf=\"value\" class=\"v-true disabled\" >Sim</label>\r\n <label *ngIf=\"!value\">N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div class=\"col-md-12 mt-1\">\r\n <p class=\"sub-titulo\">{{ subTitulo }}</p>\r\n </div>\r\n <div class=\"col-md-12 mt-2 mb-1\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".titulo{font-size:1rem;color:var(--cinza)}.sub-titulo{color:#b0adaa}.box{border:1px solid var(--cinza3);border-radius:10px}.box.box-icon{display:flex;justify-content:center;padding:35px 20px}.form-fieldset input{display:none}.form-fieldset .v-true{background:var(--verde);color:#fff}.form-fieldset label{font-size:11px;background:var(--cinza4);cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:space-around;text-transform:uppercase;border-radius:30px;padding:7px;margin:0;width:66px}.form-fieldset label:before{content:\"\";background:#fff;border-radius:50%;height:15px;width:15px}.form-fieldset label:nth-child(2){margin-right:20px}table{width:100%;max-width:200px}table th,table td{vertical-align:top}.view,.view label{cursor:inherit!important}.disabled{background-color:#8fdfe8!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
1603
1603
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesComponent, decorators: [{
1604
1604
  type: Component,
1605
- args: [{ selector: 'tcloud-ui-choice-issues', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1], template: "\r\n\r\n<input #campo [(ngModel)]=\"value\" type=\"hidden\" [value]=\"false\" >\r\n<div class=\"box p-2 mt-3 mb-2\">\r\n <div class=\"row\">\r\n <div class=\"col-md-8\">\r\n <p class=\"titulo\">{{ titulo }}</p> \r\n </div>\r\n <div class=\"col-md-4 text-right\"> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"!view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"value\" class=\"mr-1\"><input #campo name=\"{{ ID }}\" [value]=\"true\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(true)\" >Sim</label>\r\n </div>\r\n </td>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"!value\" class=\"ml-2\"><input #campo name=\"{{ ID }}\" [value]=\"false\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(false)\" >N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset view\" >\r\n <label *ngIf=\"value\" class=\"v-true disabled\" >Sim</label>\r\n <label *ngIf=\"!value\">N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div class=\"col-md-12 mt-1\">\r\n <p class=\"sub-titulo\">{{ subTitulo }}</p>\r\n </div>\r\n <div class=\"col-md-12 mt-2 mb-1\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".titulo{font-size:1rem;color:var(--cinza)}.sub-titulo{color:#b0adaa}.box{border:1px solid var(--cinza3);border-radius:10px}.box.box-icon{display:flex;justify-content:center;padding:35px 20px}.form-fieldset input{display:none}.form-fieldset .v-true{background:var(--verde);color:#fff}.form-fieldset label{font-size:11px;background:var(--cinza4);cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:space-around;text-transform:uppercase;border-radius:30px;padding:7px;margin:0;width:66px}.form-fieldset label:before{content:\"\";background:#fff;border-radius:50%;height:15px;width:15px}.form-fieldset label:nth-child(2){margin-right:20px}table{width:100%;max-width:200px}table th,table td{vertical-align:top}.view,.view label{cursor:inherit!important}.disabled{background-color:#8fdfe8!important}\n"] }]
1605
+ args: [{ selector: 'tcloud-ui-choice-issues', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], template: "\r\n\r\n<input #campo [(ngModel)]=\"value\" type=\"hidden\" [value]=\"false\" >\r\n<div class=\"box p-2 mt-3 mb-2\">\r\n <div class=\"row\">\r\n <div class=\"col-md-8\">\r\n <p class=\"titulo\">{{ titulo }}</p> \r\n </div>\r\n <div class=\"col-md-4 text-right\"> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"!view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"value\" class=\"mr-1\"><input #campo name=\"{{ ID }}\" [value]=\"true\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(true)\" >Sim</label>\r\n </div>\r\n </td>\r\n <td>\r\n <div class=\"form-fieldset\">\r\n <label [class.v-true]=\"!value\" class=\"ml-2\"><input #campo name=\"{{ ID }}\" [value]=\"false\" type=\"radio\" [(ngModel)]=\"value\" (click)=\"setV(false)\" >N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table> \r\n\r\n <table class=\"mt-2 mr-2\" *ngIf=\"view\" >\r\n <tr>\r\n <td>\r\n <div class=\"form-fieldset view\" >\r\n <label *ngIf=\"value\" class=\"v-true disabled\" >Sim</label>\r\n <label *ngIf=\"!value\">N\u00E3o</label>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div class=\"col-md-12 mt-1\">\r\n <p class=\"sub-titulo\">{{ subTitulo }}</p>\r\n </div>\r\n <div class=\"col-md-12 mt-2 mb-1\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".titulo{font-size:1rem;color:var(--cinza)}.sub-titulo{color:#b0adaa}.box{border:1px solid var(--cinza3);border-radius:10px}.box.box-icon{display:flex;justify-content:center;padding:35px 20px}.form-fieldset input{display:none}.form-fieldset .v-true{background:var(--verde);color:#fff}.form-fieldset label{font-size:11px;background:var(--cinza4);cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:space-around;text-transform:uppercase;border-radius:30px;padding:7px;margin:0;width:66px}.form-fieldset label:before{content:\"\";background:#fff;border-radius:50%;height:15px;width:15px}.form-fieldset label:nth-child(2){margin-right:20px}table{width:100%;max-width:200px}table th,table td{vertical-align:top}.view,.view label{cursor:inherit!important}.disabled{background-color:#8fdfe8!important}\n"] }]
1606
1606
  }], ctorParameters: function () { return []; }, propDecorators: { view: [{
1607
1607
  type: Input
1608
1608
  }], titulo: [{
@@ -1649,12 +1649,12 @@ const CUSTOM_INPUT_VALIDATORS = {
1649
1649
  useExisting: forwardRef(() => TCloudUiMultiInputComponent),
1650
1650
  multi: true
1651
1651
  };
1652
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
1652
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
1653
1653
  provide: NG_VALUE_ACCESSOR,
1654
1654
  useExisting: forwardRef(() => TCloudUiMultiInputComponent),
1655
1655
  multi: true
1656
1656
  };
1657
- const noop = () => {
1657
+ const noop$2 = () => {
1658
1658
  };
1659
1659
  class TCloudUiMultiInputComponent {
1660
1660
  constructor() {
@@ -1667,8 +1667,8 @@ class TCloudUiMultiInputComponent {
1667
1667
  this.onChange = new EventEmitter();
1668
1668
  //Placeholders for the callbacks which are later providesd
1669
1669
  //by the Control Value Accessor
1670
- this.onTouchedCallback = noop;
1671
- this.onChangeCallback = noop;
1670
+ this.onTouchedCallback = noop$2;
1671
+ this.onChangeCallback = noop$2;
1672
1672
  }
1673
1673
  ngOnInit() {
1674
1674
  setTimeout(() => {
@@ -1787,10 +1787,10 @@ class TCloudUiMultiInputComponent {
1787
1787
  }
1788
1788
  }
1789
1789
  TCloudUiMultiInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1790
- TCloudUiMultiInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiMultiInputComponent, selector: "tcloud-ui-multi-input", inputs: { tcList: "tcList", placeholder: "placeholder", disabled: "disabled", loading: "loading", required: "required" }, outputs: { tcChange: "tcChange", onChange: "onChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, CUSTOM_INPUT_VALIDATORS], ngImport: i0, template: "<div>\n\n <table>\n <tr>\n <td>\n <input class=\"tc-form-control\" (blur)=\"onChangeTouched()\" [(ngModel)]=\"item_value\" [class.tc-parent-validation]=\"use_validation_required\" type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\">\n </td>\n <td>\n <button\n [disabled]=\"!item_value || disabled || loading\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value);onChangeTouched()\"\n type=\"button\">\n <i class=\"fas fa-plus\"></i>\n </button>\n </td>\n </tr>\n </table>\n \n <div class=\"box-itens-selected\" *ngIf=\"(tcList && tcList.length > 0)\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\n <div class=\"box-value\" [title]=\"item.value\" >\n {{ item.value }} \n </div>\n <div class=\"box-action\">\n <button\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\n title=\"Remover\"\n type=\"button\"\n (click)=\"removeItem(item.value, i);onChangeTouched()\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n \n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}table td:first-child{width:100%}input{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:block;padding:9px;background-color:#ededed;border-radius:4px;width:100%}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:transparent;border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\n"], dependencies: [{ 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1790
+ TCloudUiMultiInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiMultiInputComponent, selector: "tcloud-ui-multi-input", inputs: { tcList: "tcList", placeholder: "placeholder", disabled: "disabled", loading: "loading", required: "required" }, outputs: { tcChange: "tcChange", onChange: "onChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2, CUSTOM_INPUT_VALIDATORS], ngImport: i0, template: "<div>\n\n <table>\n <tr>\n <td>\n <input class=\"tc-form-control\" (blur)=\"onChangeTouched()\" [(ngModel)]=\"item_value\" [class.tc-parent-validation]=\"use_validation_required\" type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\">\n </td>\n <td>\n <button\n [disabled]=\"!item_value || disabled || loading\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value);onChangeTouched()\"\n type=\"button\">\n <i class=\"fas fa-plus\"></i>\n </button>\n </td>\n </tr>\n </table>\n \n <div class=\"box-itens-selected\" *ngIf=\"(tcList && tcList.length > 0)\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\n <div class=\"box-value\" [title]=\"item.value\" >\n {{ item.value }} \n </div>\n <div class=\"box-action\">\n <button\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\n title=\"Remover\"\n type=\"button\"\n (click)=\"removeItem(item.value, i);onChangeTouched()\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n \n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}table td:first-child{width:100%}input{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:block;padding:9px;background-color:#ededed;border-radius:4px;width:100%}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:transparent;border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\n"], dependencies: [{ 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1791
1791
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputComponent, decorators: [{
1792
1792
  type: Component,
1793
- args: [{ selector: 'tcloud-ui-multi-input', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, CUSTOM_INPUT_VALIDATORS], template: "<div>\n\n <table>\n <tr>\n <td>\n <input class=\"tc-form-control\" (blur)=\"onChangeTouched()\" [(ngModel)]=\"item_value\" [class.tc-parent-validation]=\"use_validation_required\" type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\">\n </td>\n <td>\n <button\n [disabled]=\"!item_value || disabled || loading\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value);onChangeTouched()\"\n type=\"button\">\n <i class=\"fas fa-plus\"></i>\n </button>\n </td>\n </tr>\n </table>\n \n <div class=\"box-itens-selected\" *ngIf=\"(tcList && tcList.length > 0)\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\n <div class=\"box-value\" [title]=\"item.value\" >\n {{ item.value }} \n </div>\n <div class=\"box-action\">\n <button\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\n title=\"Remover\"\n type=\"button\"\n (click)=\"removeItem(item.value, i);onChangeTouched()\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n \n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}table td:first-child{width:100%}input{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:block;padding:9px;background-color:#ededed;border-radius:4px;width:100%}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:transparent;border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\n"] }]
1793
+ args: [{ selector: 'tcloud-ui-multi-input', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2, CUSTOM_INPUT_VALIDATORS], template: "<div>\n\n <table>\n <tr>\n <td>\n <input class=\"tc-form-control\" (blur)=\"onChangeTouched()\" [(ngModel)]=\"item_value\" [class.tc-parent-validation]=\"use_validation_required\" type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\">\n </td>\n <td>\n <button\n [disabled]=\"!item_value || disabled || loading\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value);onChangeTouched()\"\n type=\"button\">\n <i class=\"fas fa-plus\"></i>\n </button>\n </td>\n </tr>\n </table>\n \n <div class=\"box-itens-selected\" *ngIf=\"(tcList && tcList.length > 0)\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\" [ngStyle]=\"item_width(item.value)\">\n <div class=\"box-value\" [title]=\"item.value\" >\n {{ item.value }} \n </div>\n <div class=\"box-action\">\n <button\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\n title=\"Remover\"\n type=\"button\"\n (click)=\"removeItem(item.value, i);onChangeTouched()\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n \n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}table td{vertical-align:top}table td:first-child{width:100%}input{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:block;padding:9px;background-color:#ededed;border-radius:4px;width:100%}select:disabled{opacity:.8!important;cursor:not-allowed!important;background-color:#ededed}button:disabled{opacity:.5!important;cursor:not-allowed!important}.box-label{position:relative;display:inline-block;height:35px;min-width:60px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px;width:100%}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{position:absolute;right:4px;top:7px}.box-label .box-action button{color:#d72020;background-color:transparent;border:none;font-weight:700;cursor:pointer}.box-label .box-action button i{font-size:12px}\n"] }]
1794
1794
  }], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
1795
1795
  type: Input
1796
1796
  }], placeholder: [{
@@ -2085,6 +2085,106 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2085
2085
  args: [{ name: 'bytes' }]
2086
2086
  }] });
2087
2087
 
2088
+ class DateBRPipe {
2089
+ constructor() {
2090
+ this.mascara = "##/##/####";
2091
+ }
2092
+ createMask(v) {
2093
+ const mask = this.mascara;
2094
+ let str = v.replace(/\s/g, '');
2095
+ let strMask = '';
2096
+ if (str.length <= 10) {
2097
+ let j = 0;
2098
+ for (let i = 0; i < mask.length; i++) {
2099
+ if (mask[i] == '#') {
2100
+ strMask += str[j++];
2101
+ }
2102
+ else {
2103
+ strMask += mask[i];
2104
+ }
2105
+ }
2106
+ }
2107
+ else {
2108
+ return v;
2109
+ }
2110
+ return strMask;
2111
+ }
2112
+ createMask4(v) {
2113
+ const mask = "##/##";
2114
+ let str = v.replace(/\s/g, '');
2115
+ let strMask = '';
2116
+ if (str.length <= 10) {
2117
+ let j = 0;
2118
+ for (let i = 0; i < mask.length; i++) {
2119
+ if (mask[i] == '#') {
2120
+ strMask += str[j++];
2121
+ }
2122
+ else {
2123
+ strMask += mask[i];
2124
+ }
2125
+ }
2126
+ }
2127
+ else {
2128
+ return v;
2129
+ }
2130
+ return strMask;
2131
+ }
2132
+ create_mask(v, _mask) {
2133
+ const mask = _mask;
2134
+ let str = v.replace(/\s/g, '');
2135
+ let strMask = '';
2136
+ if (str.length <= 10) {
2137
+ let j = 0;
2138
+ for (let i = 0; i < mask.length; i++) {
2139
+ if (mask[i] == '#') {
2140
+ strMask += str[j++];
2141
+ }
2142
+ else {
2143
+ strMask += mask[i];
2144
+ }
2145
+ }
2146
+ }
2147
+ else {
2148
+ return v;
2149
+ }
2150
+ return strMask;
2151
+ }
2152
+ transform(v) {
2153
+ if (v) {
2154
+ v = (v).replace(/\//g, "");
2155
+ if ((v).length == 1) {
2156
+ return this.create_mask(v, '#');
2157
+ }
2158
+ if ((v).length == 2) {
2159
+ return this.create_mask(v, '##/');
2160
+ }
2161
+ if ((v).length == 3) {
2162
+ return this.create_mask(v, '##/#');
2163
+ }
2164
+ if ((v).length == 4) {
2165
+ return this.create_mask(v, '##/##');
2166
+ }
2167
+ if ((v).length == 5) {
2168
+ return this.create_mask(v, '##/##/#');
2169
+ }
2170
+ if ((v).length == 6) {
2171
+ return this.create_mask(v, '##/##/##');
2172
+ }
2173
+ if ((v).length == 7) {
2174
+ return this.create_mask(v, '##/##/###');
2175
+ }
2176
+ return this.create_mask(v, '##/##/####');
2177
+ }
2178
+ return '';
2179
+ }
2180
+ }
2181
+ DateBRPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateBRPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2182
+ DateBRPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DateBRPipe, name: "datebr" });
2183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateBRPipe, decorators: [{
2184
+ type: Pipe,
2185
+ args: [{ name: 'datebr' }]
2186
+ }] });
2187
+
2088
2188
  class TCloudUiSearchInObjectService {
2089
2189
  constructor(datepipe, statusinfo) {
2090
2190
  this.datepipe = datepipe;
@@ -2495,415 +2595,534 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2495
2595
  }]
2496
2596
  }] });
2497
2597
 
2498
- class TCloudUiAlignDirective {
2499
- constructor(el, renderer) {
2500
- this.el = el;
2501
- this.renderer = renderer;
2502
- this._direction = 'start';
2598
+ var TCFiltersType;
2599
+ (function (TCFiltersType) {
2600
+ TCFiltersType["text"] = "text";
2601
+ TCFiltersType["number"] = "number";
2602
+ TCFiltersType["select"] = "select";
2603
+ TCFiltersType["boolean"] = "boolean";
2604
+ TCFiltersType["datetime"] = "datetime-local";
2605
+ })(TCFiltersType || (TCFiltersType = {}));
2606
+ var TCCondition;
2607
+ (function (TCCondition) {
2608
+ TCCondition["equal"] = "equal";
2609
+ TCCondition["gte"] = "gte";
2610
+ TCCondition["lte"] = "lte";
2611
+ TCCondition["lt"] = "lt";
2612
+ TCCondition["gt"] = "gt";
2613
+ })(TCCondition || (TCCondition = {}));
2614
+
2615
+ var translation = {
2616
+ ptBR: {
2617
+ days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"],
2618
+ daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
2619
+ daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa"],
2620
+ months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
2621
+ monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
2622
+ today: "Hoje",
2623
+ clear: "Limpar",
2624
+ titleFormat: "MM y",
2625
+ format: "dd/mm/yyyy",
2626
+ weekStart: 0
2503
2627
  }
2504
- set TCalign(direction) {
2505
- if (direction) {
2506
- this._direction = direction;
2507
- this.setStyle(this.el.nativeElement);
2628
+ };
2629
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
2630
+ provide: NG_VALUE_ACCESSOR,
2631
+ useExisting: forwardRef(() => TCloudUiDatepickerComponent),
2632
+ multi: true
2633
+ };
2634
+ const noop$1 = () => {
2635
+ };
2636
+ class TCloudUiDatepickerComponent {
2637
+ constructor(_DateBRPipe, _changeDetectorRef) {
2638
+ this._DateBRPipe = _DateBRPipe;
2639
+ this._changeDetectorRef = _changeDetectorRef;
2640
+ // multiple permite selecionar multiplas datas
2641
+ this.multiple = false;
2642
+ // maxNumberOfDates - Maximum number of dates users can select. No limit is applied if 0 is set.
2643
+ // Depende de: multiple como true
2644
+ this.maxNumberOfDates = 0;
2645
+ // daysOfWeekDisabled - Dias da semana desabilidatos = 0 para sabado até 6 para domingo
2646
+ this.daysOfWeekDisabled = [];
2647
+ // minDate - Data minima para exibicao do calendario - ex: 01/01/2020
2648
+ this.minDate = '';
2649
+ // maxDate - Data maxima para exibicao do calendario - ex: 31/12/2020
2650
+ this.maxDate = '';
2651
+ // datesDisabled - Datas desabilitadas - Ex: ['12/10/2020','25/12/2020']
2652
+ this.datesDisabled = [];
2653
+ // modeInput - Exibe um input para quando clicar abrir o calendario
2654
+ this.modeInput = false;
2655
+ this.useBorder = true;
2656
+ // onChange - Dispara a data selecionada
2657
+ this.onChange = new EventEmitter();
2658
+ this.ngModelChange = new EventEmitter();
2659
+ this.code = 'tcloud-ui-datepicker';
2660
+ this.ID = '';
2661
+ //Placeholders for the callbacks which are later providesd
2662
+ //by the Control Value Accessor
2663
+ this.onTouchedCallback = noop$1;
2664
+ this.onChangeCallback = noop$1;
2665
+ }
2666
+ set ngModel(v) {
2667
+ //console.log('ngModel', v);
2668
+ if (v && v !== this.innerValue) {
2669
+ this.innerValue = v; //this.toSetMask(v);
2508
2670
  }
2509
2671
  }
2510
2672
  ngOnInit() {
2673
+ this.ID = this.generateID();
2674
+ Datepicker.locales.ptBR = translation.ptBR;
2675
+ this.start_datepicker();
2511
2676
  }
2512
- setStyle(el) {
2513
- if (this._direction === 'start') {
2514
- this.renderer.setStyle(el, 'text-align', 'left');
2677
+ generateID() {
2678
+ return `tcloud-ui-datepicker-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
2679
+ }
2680
+ toSetMask(v) {
2681
+ return this._DateBRPipe.transform(v);
2682
+ }
2683
+ get_options() {
2684
+ let options = {
2685
+ nextArrow: `<i class="fas fa-caret-right"></i>`,
2686
+ prevArrow: `<i class="fas fa-caret-left"></i>`,
2687
+ format: 'dd/mm/yyyy',
2688
+ daysOfWeekHighlighted: [0, 6],
2689
+ language: 'ptBR'
2690
+ };
2691
+ if ((this.daysOfWeekDisabled).length > 0) {
2692
+ options['daysOfWeekDisabled'] = this.daysOfWeekDisabled;
2515
2693
  }
2516
- if (this._direction === 'center') {
2517
- this.renderer.setStyle(el, 'text-align', 'center');
2694
+ if ((this.datesDisabled).length > 0) {
2695
+ options['datesDisabled'] = this.datesDisabled;
2518
2696
  }
2519
- if (this._direction === 'end') {
2520
- this.renderer.setStyle(el, 'text-align', 'right');
2697
+ if (this.minDate !== '') {
2698
+ options['minDate'] = this.minDate;
2521
2699
  }
2700
+ if (this.maxDate !== '') {
2701
+ options['maxDate'] = this.maxDate;
2702
+ }
2703
+ if (this.multiple) {
2704
+ options['maxNumberOfDates'] = this.maxNumberOfDates;
2705
+ }
2706
+ return options;
2522
2707
  }
2523
- }
2524
- TCloudUiAlignDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAlignDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2525
- TCloudUiAlignDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAlignDirective, selector: "[TCalign]", inputs: { TCalign: "TCalign" }, ngImport: i0 });
2526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAlignDirective, decorators: [{
2527
- type: Directive,
2528
- args: [{
2529
- selector: '[TCalign]'
2530
- }]
2531
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { TCalign: [{
2532
- type: Input
2533
- }] } });
2534
-
2535
- class TCloudUiHoverParentDirective {
2536
- constructor(renderer) {
2537
- this.renderer = renderer;
2708
+ clearDate() {
2709
+ if (this.datepicker) {
2710
+ this.datepicker.setDate({ clear: true });
2711
+ }
2538
2712
  }
2539
- onMouseOver() {
2540
- if (this.getElement()) {
2541
- const el = this.getElement();
2542
- if (el) {
2543
- this.renderer.addClass(el, (this.CLASS) ? this.CLASS : 'tcloud-hover-parent');
2713
+ start_datepicker() {
2714
+ setTimeout(() => {
2715
+ var _a;
2716
+ const input_datepicker = (_a = this.input_datepicker) === null || _a === void 0 ? void 0 : _a.nativeElement;
2717
+ if (input_datepicker) {
2718
+ input_datepicker.setAttribute('placeholder', 'DD/MM/YYYY');
2719
+ if (!this.useBorder) {
2720
+ input_datepicker.setAttribute('style', 'border:none; text-align: center; max-width: 105px; padding: 0;');
2721
+ }
2722
+ this.datepicker = new Datepicker(input_datepicker, this.get_options());
2723
+ if (this.innerValue && this.innerValue !== '') {
2724
+ this.toSetDefaultDate(this.innerValue);
2725
+ }
2726
+ input_datepicker.addEventListener('keyup', (event) => {
2727
+ var _a;
2728
+ const v = (input_datepicker['value']) ? input_datepicker['value'] : '';
2729
+ input_datepicker['value'] = this.toSetMask(v);
2730
+ if ((input_datepicker['value']).length >= 10) {
2731
+ const v = (input_datepicker['value']).substring(0, 10);
2732
+ const part_date = (v).split('/');
2733
+ if ((part_date).length === 3) {
2734
+ let dia = part_date[0];
2735
+ let mes = part_date[1];
2736
+ let ano = part_date[2];
2737
+ mes = (+(mes) < 10) ? `0${+mes}` : mes;
2738
+ dia = (+(dia) < 10) ? `0${+dia}` : dia;
2739
+ const dt = new Date(ano + '-' + mes + '-' + dia);
2740
+ if (dt) {
2741
+ input_datepicker === null || input_datepicker === void 0 ? void 0 : input_datepicker.changeDate;
2742
+ (_a = document.getElementById(this.ID)) === null || _a === void 0 ? void 0 : _a.blur();
2743
+ this.onChange.emit(this.innerValue);
2744
+ this.ngModelChange.emit(this.innerValue);
2745
+ }
2746
+ }
2747
+ }
2748
+ else {
2749
+ this.innerValue = undefined;
2750
+ this.onChange.emit(this.innerValue);
2751
+ this.ngModelChange.emit(this.innerValue);
2752
+ }
2753
+ //console.log('input_datepicker', input_datepicker['value'] );
2754
+ });
2755
+ input_datepicker.addEventListener('changeDate', (event) => {
2756
+ var _a;
2757
+ //console.log(event);
2758
+ if ((_a = event === null || event === void 0 ? void 0 : event.detail) === null || _a === void 0 ? void 0 : _a.date) {
2759
+ this.toSelectedDate(event.detail);
2760
+ }
2761
+ else {
2762
+ //console.log('event null');
2763
+ this.innerValue = '';
2764
+ this.ngModelChange.emit(this.innerValue);
2765
+ }
2766
+ });
2544
2767
  }
2768
+ });
2769
+ }
2770
+ toSetDate() {
2771
+ // Ex de uso
2772
+ const dates = ['18/11/2022'];
2773
+ if (this.datepicker) {
2774
+ this.datepicker.setDate(dates);
2545
2775
  }
2546
2776
  }
2547
- onMouseOut() {
2548
- if (this.getElement()) {
2549
- const el = this.getElement();
2550
- if (el) {
2551
- this.renderer.removeClass(el, (this.CLASS) ? this.CLASS : 'tcloud-hover-parent');
2777
+ toSetDefaultDate(date) {
2778
+ if (date === undefined || date === null || date === '') {
2779
+ this.clearDate();
2780
+ return;
2781
+ }
2782
+ let dates = [];
2783
+ if (date && typeof date === 'string') {
2784
+ if ((date).includes(',')) {
2785
+ const dates = (date).split(',');
2786
+ date = dates;
2787
+ if (!this.multiple) {
2788
+ this.innerValue = date = dates[0];
2789
+ this.ngModelChange.emit(this.innerValue);
2790
+ }
2552
2791
  }
2553
2792
  }
2793
+ if (date && typeof date === 'string') {
2794
+ (dates).push(date);
2795
+ }
2796
+ else {
2797
+ dates = date;
2798
+ }
2799
+ if (this.datepicker) {
2800
+ this.datepicker.setDate(dates);
2801
+ }
2554
2802
  }
2555
- set TCHoverParent(id) {
2556
- if (id) {
2557
- this.ID = id;
2803
+ toSelectedDate(detail) {
2804
+ if (detail.datepicker.dates && (detail.datepicker.dates).length > 0) {
2805
+ if (this.multiple) {
2806
+ let dates = [];
2807
+ for (let i = 0; i < (detail.datepicker.dates).length; i++) {
2808
+ const timeStamp = detail.datepicker.dates[i];
2809
+ (dates).push(this.format_date(timeStamp));
2810
+ }
2811
+ this.innerValue = dates;
2812
+ this.onChange.emit(this.innerValue);
2813
+ }
2814
+ else {
2815
+ const timeStamp = detail.datepicker.dates[0];
2816
+ const date = this.format_date(timeStamp);
2817
+ this.onChange.emit(date);
2818
+ this.innerValue = date;
2819
+ }
2558
2820
  }
2821
+ else {
2822
+ this.clearDate();
2823
+ this.innerValue = null;
2824
+ this.onChange.emit(this.innerValue);
2825
+ }
2826
+ this.value = this.innerValue;
2827
+ this.ngModelChange.emit(this.innerValue);
2828
+ }
2829
+ format_date(timeStamp) {
2830
+ var date = new Date(timeStamp);
2831
+ let dia = `${date.getDate()}`;
2832
+ let mes = `${date.getMonth() + 1}`;
2833
+ let ano = `${date.getFullYear()}`;
2834
+ dia = (+(dia) < 10) ? `0${+dia}` : dia;
2835
+ mes = (+(mes) < 10) ? `0${+mes}` : mes;
2836
+ const dateFormat = `${dia}/${mes}/${ano}`;
2837
+ return dateFormat;
2838
+ }
2839
+ toClickIn(id) {
2840
+ const element = document.getElementById(id);
2841
+ setTimeout(() => {
2842
+ var _a;
2843
+ (_a = element === null || element === void 0 ? void 0 : element.datepicker) === null || _a === void 0 ? void 0 : _a.show();
2844
+ });
2559
2845
  }
2560
- set TCHoverParentClass(clss) {
2561
- if (clss) {
2562
- this.CLASS = clss;
2846
+ //get accessor
2847
+ get value() {
2848
+ return this.innerValue;
2849
+ }
2850
+ ;
2851
+ //set accessor including call the onchange callback
2852
+ set value(v) {
2853
+ //console.log('value', v);
2854
+ if (v !== this.innerValue) {
2855
+ this.innerValue = v; // this.toSetMask(v);
2856
+ this.onChangeCallback(v);
2857
+ }
2858
+ else {
2859
+ // this.innerValue = '';
2563
2860
  }
2564
2861
  }
2565
- getElement() {
2566
- if (this.ID) {
2567
- return document.getElementById(this.ID) || undefined;
2862
+ //Set touched on blur
2863
+ onBlur() {
2864
+ this.onTouchedCallback();
2865
+ }
2866
+ //From ControlValueAccessor interface
2867
+ writeValue(value) {
2868
+ if (value !== this.innerValue) {
2869
+ this.innerValue = value;
2870
+ this.toSetDefaultDate(value);
2568
2871
  }
2569
- return undefined;
2872
+ }
2873
+ //From ControlValueAccessor interface
2874
+ registerOnChange(fn) {
2875
+ this.onChangeCallback = fn;
2876
+ }
2877
+ //From ControlValueAccessor interface
2878
+ registerOnTouched(fn) {
2879
+ this.onTouchedCallback = fn;
2570
2880
  }
2571
2881
  }
2572
- TCloudUiHoverParentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiHoverParentDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2573
- TCloudUiHoverParentDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiHoverParentDirective, selector: "[TCHoverParent]", inputs: { TCHoverParent: "TCHoverParent", TCHoverParentClass: "TCHoverParentClass" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, ngImport: i0 });
2574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiHoverParentDirective, decorators: [{
2575
- type: Directive,
2576
- args: [{
2577
- selector: '[TCHoverParent]'
2578
- }]
2579
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
2580
- type: HostListener,
2581
- args: ['mouseover']
2582
- }], onMouseOut: [{
2583
- type: HostListener,
2584
- args: ['mouseout']
2585
- }], TCHoverParent: [{
2882
+ TCloudUiDatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerComponent, deps: [{ token: DateBRPipe }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2883
+ TCloudUiDatepickerComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiDatepickerComponent, selector: "tcloud-ui-datepicker", inputs: { multiple: "multiple", maxNumberOfDates: "maxNumberOfDates", daysOfWeekDisabled: "daysOfWeekDisabled", minDate: "minDate", maxDate: "maxDate", datesDisabled: "datesDisabled", modeInput: "modeInput", useBorder: "useBorder", ngModel: "ngModel", code: "code" }, outputs: { onChange: "onChange", ngModelChange: "ngModelChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1], viewQueries: [{ propertyName: "input_datepicker", first: true, predicate: ["input_datepicker"], descendants: true }], ngImport: i0, template: "<!-- Input mode -->\r\n<ng-container *ngIf=\"modeInput\">\r\n\r\n <div class=\"input-tc-datepicker\" [class.no-border]=\"!useBorder\">\r\n <table class=\"table-box-input\">\r\n <tr>\r\n <td>\r\n <div class=\"delimiter-time-icon\" (click)=\"toClickIn(ID)\" ><i class=\"fas fa-calendar-alt\"></i></div>\r\n </td>\r\n <td>\r\n <input #input_datepicker type=\"text\" name=\"{{ID}}\" id=\"{{ID}}\" class=\"form-control\" >\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n\r\n \r\n \r\n</ng-container>\r\n\r\n<!-- Inline mode -->\r\n<ng-container *ngIf=\"!modeInput\"> \r\n <div #input_datepicker id=\"{{ID}}\" pattern=\"/^\\d{2}\\/\\d{2}\\/\\d{4}$/\"></div>\r\n</ng-container>\r\n\r\n\r\n<!-- EX de uso \r\n <tc-datepicker \r\n [multiple]=\"false\"\r\n [daysOfWeekDisabled]=\"[0,6]\"\r\n [minDate]=\"'18/11/2021'\"\r\n [maxDate]=\"'18/12/2023'\"\r\n [datesDisabled]=\"['12/10/2022','25/12/2022']\"\r\n [modeInput]=\"false\"\r\n [(ngModel)]=\"dateValue\" >\r\n </tc-datepicker>\r\n \r\n // multiple = false\r\n // dateValue - string - pode ser: 12/12/2022 \r\n\r\n // multiple = true\r\n // dateValue - string - pode ser: 11/12/2022,12/12/2022 ... \r\n\r\n <pre>data: {{ dateValue }}</pre>\r\n-->\r\n", styles: [".input_datepicker{width:100%;max-width:290px}.input-tc-datepicker{border:1px solid #ccc;border-radius:3px}.input-tc-datepicker.no-border{border:none!important}.input-tc-datepicker .table-box-input{width:100%}.input-tc-datepicker .table-box-input td:first-child{width:20px}.input-tc-datepicker .table-box-input td:first-child .delimiter-time-icon{text-align:center;cursor:pointer}.input-tc-datepicker .table-box-input input{border:none}\n", ".datepicker{display:none}.datepicker.active{display:block}.datepicker-dropdown{left:0;padding-top:4px;position:absolute;top:0;z-index:20}.datepicker-dropdown.datepicker-orient-top{padding-bottom:4px;padding-top:0}.datepicker-picker{background-color:#fff;border-radius:4px;display:inline-block}.datepicker-dropdown .datepicker-picker{box-shadow:0 2px 3px #0a0a0a1a,0 0 0 1px #0a0a0a1a}.datepicker-picker span{-webkit-touch-callout:none;border:0;border-radius:4px;cursor:default;display:block;flex:1;text-align:center;-webkit-user-select:none;user-select:none}.datepicker-main{padding:2px}.datepicker-footer{background-color:#f5f5f5;box-shadow:inset 0 1px 1px #0a0a0a1a}.datepicker-controls,.datepicker-grid,.datepicker-view,.datepicker-view .days-of-week{display:flex}.datepicker-grid{flex-wrap:wrap}.datepicker-view .days .datepicker-cell,.datepicker-view .dow{flex-basis:14.2857142857%}.datepicker-view.datepicker-grid .datepicker-cell{flex-basis:25%}.datepicker-cell,.datepicker-view .week{height:2.25rem;line-height:2.25rem}.datepicker-title{background-color:#f5f5f5;box-shadow:inset 0 -1px 1px #0a0a0a1a;font-weight:700;padding:.375rem .75rem;text-align:center}.datepicker-header .datepicker-controls{padding:2px 2px 0}.datepicker-controls .button{align-items:center;background-color:#fff;border:1px solid #dbdbdb;border-radius:4px;box-shadow:none;color:#363636;cursor:pointer;display:inline-flex;font-size:1rem;height:2.25em;justify-content:center;line-height:1.5;margin:0;padding:calc(.375em - 1px) .75em;position:relative;text-align:center;vertical-align:top;white-space:nowrap}.datepicker-controls .button:active,.datepicker-controls .button:focus{outline:none}.datepicker-controls .button:hover{border-color:#b5b5b5;color:#363636}.datepicker-controls .button:focus{border-color:#3273dc;color:#363636}.datepicker-controls .button:focus:not(:active){box-shadow:0 0 0 .125em #3273dc40}.datepicker-controls .button:active{border-color:#4a4a4a;color:#363636}.datepicker-controls .button[disabled]{cursor:not-allowed}.datepicker-header .datepicker-controls .button{border-color:transparent;font-weight:700}.datepicker-header .datepicker-controls .button:hover{background-color:#f9f9f9}.datepicker-header .datepicker-controls .button:focus:not(:active){box-shadow:0 0 0 .125em #ffffff40}.datepicker-header .datepicker-controls .button:active{background-color:#f2f2f2}.datepicker-header .datepicker-controls .button[disabled]{box-shadow:none}.datepicker-footer .datepicker-controls .button{border-radius:2px;font-size:.75rem;margin:calc(.375rem - 1px) .375rem;width:100%}.datepicker-controls .view-switch{flex:auto}.datepicker-controls .next-btn,.datepicker-controls .prev-btn{padding-left:.375rem;padding-right:.375rem;width:2.25rem}.datepicker-controls .next-btn.disabled,.datepicker-controls .prev-btn.disabled{visibility:hidden}.datepicker-view .dow{font-size:.875rem;font-weight:700;height:1.5rem;line-height:1.5rem}.datepicker-view .week{color:#b5b5b5;font-size:.75rem;width:2.25rem}@media (max-width:22.5rem){.datepicker-view .week{width:1.96875rem}}.datepicker-grid{width:15.75rem}@media (max-width:22.5rem){.calendar-weeks+.days .datepicker-grid{width:13.78125rem}}.datepicker-cell:not(.disabled):hover{background-color:#f9f9f9;cursor:pointer}.datepicker-cell.focused:not(.selected){background-color:#e8e8e8}.datepicker-cell.selected,.datepicker-cell.selected:hover{background-color:#3273dc;color:#fff;font-weight:600}.datepicker-cell.disabled{color:#dbdbdb}.datepicker-cell.next:not(.disabled),.datepicker-cell.prev:not(.disabled){color:#7a7a7a}.datepicker-cell.next.selected,.datepicker-cell.prev.selected{color:#e6e6e6}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today){background-color:#f5f5f5;border-radius:0}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover{background-color:#eee}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused{background-color:#e8e8e8}.datepicker-cell.today:not(.selected){background-color:#00d1b2}.datepicker-cell.today:not(.selected):not(.disabled){color:#fff}.datepicker-cell.today.focused:not(.selected){background-color:#00c4a7}.datepicker-cell.range-end:not(.selected),.datepicker-cell.range-start:not(.selected){background-color:#b5b5b5;color:#fff}.datepicker-cell.range-end.focused:not(.selected),.datepicker-cell.range-start.focused:not(.selected){background-color:#afafaf}.datepicker-cell.range-start{border-radius:4px 0 0 4px}.datepicker-cell.range-end{border-radius:0 4px 4px 0}.datepicker-cell.range{background-color:#dbdbdb;border-radius:0}.datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover{background-color:#d5d5d5}.datepicker-cell.range.disabled{color:#c2c2c2}.datepicker-cell.range.focused{background-color:#cfcfcf}.datepicker-view.datepicker-grid .datepicker-cell{height:4.5rem;line-height:4.5rem}.datepicker-input.in-edit{border-color:#2366d1}.datepicker-input.in-edit:active,.datepicker-input.in-edit:focus{box-shadow:0 0 .25em .25em #2366d133}\n", ".datepicker-picker{border:1px solid #ccc;padding:10px 15px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
2884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerComponent, decorators: [{
2885
+ type: Component,
2886
+ args: [{ selector: 'tcloud-ui-datepicker', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1], encapsulation: ViewEncapsulation.None, template: "<!-- Input mode -->\r\n<ng-container *ngIf=\"modeInput\">\r\n\r\n <div class=\"input-tc-datepicker\" [class.no-border]=\"!useBorder\">\r\n <table class=\"table-box-input\">\r\n <tr>\r\n <td>\r\n <div class=\"delimiter-time-icon\" (click)=\"toClickIn(ID)\" ><i class=\"fas fa-calendar-alt\"></i></div>\r\n </td>\r\n <td>\r\n <input #input_datepicker type=\"text\" name=\"{{ID}}\" id=\"{{ID}}\" class=\"form-control\" >\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n\r\n \r\n \r\n</ng-container>\r\n\r\n<!-- Inline mode -->\r\n<ng-container *ngIf=\"!modeInput\"> \r\n <div #input_datepicker id=\"{{ID}}\" pattern=\"/^\\d{2}\\/\\d{2}\\/\\d{4}$/\"></div>\r\n</ng-container>\r\n\r\n\r\n<!-- EX de uso \r\n <tc-datepicker \r\n [multiple]=\"false\"\r\n [daysOfWeekDisabled]=\"[0,6]\"\r\n [minDate]=\"'18/11/2021'\"\r\n [maxDate]=\"'18/12/2023'\"\r\n [datesDisabled]=\"['12/10/2022','25/12/2022']\"\r\n [modeInput]=\"false\"\r\n [(ngModel)]=\"dateValue\" >\r\n </tc-datepicker>\r\n \r\n // multiple = false\r\n // dateValue - string - pode ser: 12/12/2022 \r\n\r\n // multiple = true\r\n // dateValue - string - pode ser: 11/12/2022,12/12/2022 ... \r\n\r\n <pre>data: {{ dateValue }}</pre>\r\n-->\r\n", styles: [".input_datepicker{width:100%;max-width:290px}.input-tc-datepicker{border:1px solid #ccc;border-radius:3px}.input-tc-datepicker.no-border{border:none!important}.input-tc-datepicker .table-box-input{width:100%}.input-tc-datepicker .table-box-input td:first-child{width:20px}.input-tc-datepicker .table-box-input td:first-child .delimiter-time-icon{text-align:center;cursor:pointer}.input-tc-datepicker .table-box-input input{border:none}\n", ".datepicker{display:none}.datepicker.active{display:block}.datepicker-dropdown{left:0;padding-top:4px;position:absolute;top:0;z-index:20}.datepicker-dropdown.datepicker-orient-top{padding-bottom:4px;padding-top:0}.datepicker-picker{background-color:#fff;border-radius:4px;display:inline-block}.datepicker-dropdown .datepicker-picker{box-shadow:0 2px 3px #0a0a0a1a,0 0 0 1px #0a0a0a1a}.datepicker-picker span{-webkit-touch-callout:none;border:0;border-radius:4px;cursor:default;display:block;flex:1;text-align:center;-webkit-user-select:none;user-select:none}.datepicker-main{padding:2px}.datepicker-footer{background-color:#f5f5f5;box-shadow:inset 0 1px 1px #0a0a0a1a}.datepicker-controls,.datepicker-grid,.datepicker-view,.datepicker-view .days-of-week{display:flex}.datepicker-grid{flex-wrap:wrap}.datepicker-view .days .datepicker-cell,.datepicker-view .dow{flex-basis:14.2857142857%}.datepicker-view.datepicker-grid .datepicker-cell{flex-basis:25%}.datepicker-cell,.datepicker-view .week{height:2.25rem;line-height:2.25rem}.datepicker-title{background-color:#f5f5f5;box-shadow:inset 0 -1px 1px #0a0a0a1a;font-weight:700;padding:.375rem .75rem;text-align:center}.datepicker-header .datepicker-controls{padding:2px 2px 0}.datepicker-controls .button{align-items:center;background-color:#fff;border:1px solid #dbdbdb;border-radius:4px;box-shadow:none;color:#363636;cursor:pointer;display:inline-flex;font-size:1rem;height:2.25em;justify-content:center;line-height:1.5;margin:0;padding:calc(.375em - 1px) .75em;position:relative;text-align:center;vertical-align:top;white-space:nowrap}.datepicker-controls .button:active,.datepicker-controls .button:focus{outline:none}.datepicker-controls .button:hover{border-color:#b5b5b5;color:#363636}.datepicker-controls .button:focus{border-color:#3273dc;color:#363636}.datepicker-controls .button:focus:not(:active){box-shadow:0 0 0 .125em #3273dc40}.datepicker-controls .button:active{border-color:#4a4a4a;color:#363636}.datepicker-controls .button[disabled]{cursor:not-allowed}.datepicker-header .datepicker-controls .button{border-color:transparent;font-weight:700}.datepicker-header .datepicker-controls .button:hover{background-color:#f9f9f9}.datepicker-header .datepicker-controls .button:focus:not(:active){box-shadow:0 0 0 .125em #ffffff40}.datepicker-header .datepicker-controls .button:active{background-color:#f2f2f2}.datepicker-header .datepicker-controls .button[disabled]{box-shadow:none}.datepicker-footer .datepicker-controls .button{border-radius:2px;font-size:.75rem;margin:calc(.375rem - 1px) .375rem;width:100%}.datepicker-controls .view-switch{flex:auto}.datepicker-controls .next-btn,.datepicker-controls .prev-btn{padding-left:.375rem;padding-right:.375rem;width:2.25rem}.datepicker-controls .next-btn.disabled,.datepicker-controls .prev-btn.disabled{visibility:hidden}.datepicker-view .dow{font-size:.875rem;font-weight:700;height:1.5rem;line-height:1.5rem}.datepicker-view .week{color:#b5b5b5;font-size:.75rem;width:2.25rem}@media (max-width:22.5rem){.datepicker-view .week{width:1.96875rem}}.datepicker-grid{width:15.75rem}@media (max-width:22.5rem){.calendar-weeks+.days .datepicker-grid{width:13.78125rem}}.datepicker-cell:not(.disabled):hover{background-color:#f9f9f9;cursor:pointer}.datepicker-cell.focused:not(.selected){background-color:#e8e8e8}.datepicker-cell.selected,.datepicker-cell.selected:hover{background-color:#3273dc;color:#fff;font-weight:600}.datepicker-cell.disabled{color:#dbdbdb}.datepicker-cell.next:not(.disabled),.datepicker-cell.prev:not(.disabled){color:#7a7a7a}.datepicker-cell.next.selected,.datepicker-cell.prev.selected{color:#e6e6e6}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today){background-color:#f5f5f5;border-radius:0}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover{background-color:#eee}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused{background-color:#e8e8e8}.datepicker-cell.today:not(.selected){background-color:#00d1b2}.datepicker-cell.today:not(.selected):not(.disabled){color:#fff}.datepicker-cell.today.focused:not(.selected){background-color:#00c4a7}.datepicker-cell.range-end:not(.selected),.datepicker-cell.range-start:not(.selected){background-color:#b5b5b5;color:#fff}.datepicker-cell.range-end.focused:not(.selected),.datepicker-cell.range-start.focused:not(.selected){background-color:#afafaf}.datepicker-cell.range-start{border-radius:4px 0 0 4px}.datepicker-cell.range-end{border-radius:0 4px 4px 0}.datepicker-cell.range{background-color:#dbdbdb;border-radius:0}.datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover{background-color:#d5d5d5}.datepicker-cell.range.disabled{color:#c2c2c2}.datepicker-cell.range.focused{background-color:#cfcfcf}.datepicker-view.datepicker-grid .datepicker-cell{height:4.5rem;line-height:4.5rem}.datepicker-input.in-edit{border-color:#2366d1}.datepicker-input.in-edit:active,.datepicker-input.in-edit:focus{box-shadow:0 0 .25em .25em #2366d133}\n", ".datepicker-picker{border:1px solid #ccc;padding:10px 15px}\n"] }]
2887
+ }], ctorParameters: function () { return [{ type: DateBRPipe }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { multiple: [{
2586
2888
  type: Input
2587
- }], TCHoverParentClass: [{
2889
+ }], maxNumberOfDates: [{
2890
+ type: Input
2891
+ }], daysOfWeekDisabled: [{
2892
+ type: Input
2893
+ }], minDate: [{
2894
+ type: Input
2895
+ }], maxDate: [{
2896
+ type: Input
2897
+ }], datesDisabled: [{
2898
+ type: Input
2899
+ }], modeInput: [{
2900
+ type: Input
2901
+ }], useBorder: [{
2902
+ type: Input
2903
+ }], onChange: [{
2904
+ type: Output
2905
+ }], ngModel: [{
2906
+ type: Input
2907
+ }], ngModelChange: [{
2908
+ type: Output
2909
+ }], input_datepicker: [{
2910
+ type: ViewChild,
2911
+ args: ['input_datepicker', { static: false }]
2912
+ }], code: [{
2588
2913
  type: Input
2589
2914
  }] } });
2590
2915
 
2591
- class TCloudUiTooltipDirective {
2592
- constructor(el, renderer) {
2593
- this.el = el;
2594
- this.renderer = renderer;
2595
- this._direction = 'top';
2596
- // main
2597
- this.el_height = 0;
2598
- this.el_width = 0;
2599
- this.el_center = 0;
2600
- this.el_position = 0;
2601
- // tooltip
2602
- this.target_height = 0;
2603
- this.target_width = 0;
2604
- this.target_center = 0;
2916
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
2917
+ provide: NG_VALUE_ACCESSOR,
2918
+ useExisting: forwardRef(() => TCloudUiDatepickerTimeComponent),
2919
+ multi: true
2920
+ };
2921
+ const noop = () => {
2922
+ };
2923
+ class TCloudUiDatepickerTimeComponent {
2924
+ constructor() {
2925
+ this.ngModelChange = new EventEmitter();
2926
+ this.onChange = new EventEmitter();
2927
+ this.eventChange = new EventEmitter();
2928
+ this.DD_MM_YYYY = '';
2929
+ this.HH = '';
2930
+ this.MM = '';
2605
2931
  this.ID = '';
2606
- this.info_text = '';
2607
- }
2608
- onMouseOver() {
2609
- if (this.getElement()) {
2610
- this.renderer.addClass(this.el.nativeElement, 'main-tooltip');
2611
- const el = this.getElement();
2612
- el.style.display = 'inline';
2613
- setTimeout(() => {
2614
- var _a;
2615
- this.el_height = this.el.nativeElement.offsetHeight;
2616
- this.el_width = this.el.nativeElement.offsetWidth;
2617
- this.el_center = this.el_width / 2;
2618
- const rect = (_a = this.el.nativeElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
2619
- this.el_position = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
2620
- // console.log('this.el_width', this.el_width);
2621
- // console.log('this.el_center', this.el_center);
2622
- // console.log('this.el_position', this.el_position);
2623
- this.target_height = el.offsetHeight;
2624
- this.target_width = el.offsetWidth;
2625
- this.target_center = this.target_width / 2;
2626
- // console.log('target_heigth', this.target_height);
2627
- // console.log('target_width', this.target_width);
2628
- // console.log('target_center', this.target_center);
2629
- // this.renderer.setStyle(el, 'bottom', `${this.el_position}px`);
2630
- switch (this._direction) {
2631
- case 'top':
2632
- this.to_top(el);
2633
- break;
2634
- case 'bottom':
2635
- this.to_bottom(el);
2636
- break;
2637
- case 'left':
2638
- this.to_left(el);
2639
- break;
2640
- case 'right':
2641
- this.to_right(el);
2642
- break;
2643
- }
2644
- });
2645
- }
2646
- }
2647
- onMouseOut() {
2648
- if (this.getElement()) {
2649
- const el = this.getElement();
2650
- el.style.display = 'none';
2651
- this.renderer.removeClass(this.el.nativeElement, 'main-tooltip');
2652
- }
2653
- }
2654
- set TCtooltip(tooltip) {
2655
- if (tooltip) {
2656
- this.check(tooltip);
2657
- }
2932
+ //Placeholders for the callbacks which are later providesd
2933
+ //by the Control Value Accessor
2934
+ this.onTouchedCallback = noop;
2935
+ this.onChangeCallback = noop;
2658
2936
  }
2659
- set TCdirection(direction) {
2660
- if (direction) {
2661
- this._direction = direction;
2937
+ set ngModel(v) {
2938
+ if (v && v !== this.innerValue) {
2939
+ this.innerValue = v;
2662
2940
  }
2663
2941
  }
2664
2942
  ngOnInit() {
2943
+ this.ID = this.generateID();
2665
2944
  }
2666
2945
  generateID() {
2667
- return `tc-tooltip-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
2668
- }
2669
- getElement() {
2670
- return document.getElementById(this.ID) || undefined;
2946
+ return `tcloud-ui-datepicker-time-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
2947
+ }
2948
+ toSetDate(date) {
2949
+ console.log('toSetDate', date);
2950
+ this.set_date_by_datepicker(date);
2951
+ }
2952
+ toSetTime() {
2953
+ if (this.DD_MM_YYYY && ((this.DD_MM_YYYY).trim()).length === 10) {
2954
+ const date = (this.DD_MM_YYYY).replace(/-/g, '/');
2955
+ let date_part = (date).split('/');
2956
+ let dd = date_part[0];
2957
+ let mm = date_part[1];
2958
+ let yy = date_part[2];
2959
+ const datetime = new Date(`${yy}-${mm}-${dd}`);
2960
+ if (this.checkIsDate(datetime)) {
2961
+ this.set_date_by_datepicker(date);
2962
+ }
2963
+ }
2671
2964
  }
2672
- check(tooltip) {
2673
- this.ID = this.generateID();
2674
- this.info_text = tooltip;
2675
- let el = this.el.nativeElement;
2676
- this.main_el = el;
2677
- if (el) {
2678
- this.create_tooltip(tooltip, el);
2965
+ set_date_by_datepicker(date) {
2966
+ var _a, _b;
2967
+ if (date) {
2968
+ date = (date).replace(/-/g, '/');
2969
+ let date_part = (date).split('/');
2970
+ let dia = date_part[0];
2971
+ let mes = date_part[1];
2972
+ let ano = date_part[2];
2973
+ let hh = this.HH;
2974
+ if (!hh) {
2975
+ hh = '00';
2976
+ }
2977
+ else {
2978
+ if ((+(hh) >= 0 && +(hh) < 24)) {
2979
+ hh = (+(hh) < 10) ? `0${+(hh)}` : `${+(hh)}`;
2980
+ }
2981
+ else {
2982
+ hh = '00';
2983
+ }
2984
+ }
2985
+ let mm = this.MM;
2986
+ if (!mm) {
2987
+ mm = '00';
2988
+ }
2989
+ else {
2990
+ if ((+(mm) >= 0 && +(mm) < 60)) {
2991
+ mm = (+(mm) < 10) ? `0${+(mm)}` : `${+(mm)}`;
2992
+ }
2993
+ else {
2994
+ mm = '00';
2995
+ }
2996
+ }
2997
+ if (hh === '00') {
2998
+ this.HH = hh;
2999
+ }
3000
+ if (mm === '00') {
3001
+ this.MM = mm;
3002
+ }
3003
+ const str_date = `${ano}-${mes}-${dia}T${hh}:${mm}:00`;
3004
+ const datetime = new Date(str_date);
3005
+ if (this.checkIsDate(datetime)) {
3006
+ this.innerValue = datetime;
3007
+ }
3008
+ else {
3009
+ this.innerValue = undefined;
3010
+ }
3011
+ this.ngModelChange.emit(this.innerValue);
3012
+ this.onChange.emit(this.innerValue);
3013
+ this.eventChange.emit((_a = this.datepickertime) === null || _a === void 0 ? void 0 : _a.nativeElement);
3014
+ console.log('str_date', str_date);
2679
3015
  }
2680
3016
  else {
2681
- console.log("TCL: tooltip -> el", this.el.nativeElement);
3017
+ this.innerValue = undefined;
3018
+ this.ngModelChange.emit(this.innerValue);
3019
+ this.onChange.emit(this.innerValue);
3020
+ this.eventChange.emit((_b = this.datepickertime) === null || _b === void 0 ? void 0 : _b.nativeElement);
3021
+ }
3022
+ }
3023
+ // Distribuir os valores da data por pedaços: data - hora - min
3024
+ to_date_hh_mm(d) {
3025
+ let dia = `${(d).getDate()}`;
3026
+ dia = (+(dia) < 10) ? `0${+dia}` : dia;
3027
+ let mes = `${(d).getMonth() + 1}`;
3028
+ mes = (+(mes) < 10) ? `0${+mes}` : mes;
3029
+ let ano = `${(d).getFullYear()}`;
3030
+ let hh = `${(d).getHours()}`;
3031
+ let mm = `${(d).getMinutes()}`;
3032
+ if (hh && (+(hh) < 0 || +(hh) > 23)) {
3033
+ hh = '00';
3034
+ }
3035
+ hh = (hh) ? ((+(hh) < 10) ? `0${hh}` : hh) : '00';
3036
+ if (mm && (+(mm) < 0 || +(mm) > 59)) {
3037
+ mm = '00';
3038
+ }
3039
+ mm = (mm) ? ((+(mm) < 10) ? `0${mm}` : mm) : '00';
3040
+ this.MM = mm;
3041
+ this.HH = hh;
3042
+ this.DD_MM_YYYY = `${dia}/${mes}/${ano}`;
3043
+ }
3044
+ checkIsDate(d) {
3045
+ if (Object.prototype.toString.call(d) === "[object Date]") {
3046
+ if (isNaN(d)) {
3047
+ return false;
3048
+ }
3049
+ else {
3050
+ return true;
3051
+ }
2682
3052
  }
3053
+ return false;
2683
3054
  }
2684
- setStyle(el) {
2685
- // this.renderer.setStyle(el, 'position', 'relative');
2686
- // this.renderer.setStyle(el, 'display', 'inline');
3055
+ clean() {
3056
+ this.DD_MM_YYYY = '';
3057
+ this.HH = '';
3058
+ this.MM = '';
2687
3059
  }
2688
- create_tooltip(tip, el) {
2689
- this.setStyle(el);
2690
- const tooltip = document.createElement("div");
2691
- tooltip.setAttribute('id', this.ID);
2692
- tooltip.setAttribute('style', `
2693
- position: absolute;
2694
- display: none;
2695
- padding: 10px;
2696
- border-radius: 10px;
2697
- text-align: center;
2698
- width: max-content;
2699
- max-width: 250px;
2700
- background-color: transparent;
2701
- color: transparent;
2702
- z-index: 1090;
2703
- bottom: ${this.el_position}px;
2704
- left: ${this.target_center}px;
2705
- `);
2706
- tooltip.innerHTML = tip;
2707
- el.insertBefore(tooltip, null);
3060
+ toClickIn(id) {
3061
+ var _a;
3062
+ (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.focus();
2708
3063
  }
2709
- to_top(el) {
2710
- const pos = this.el_center - (this.target_center);
2711
- this.renderer.setStyle(el, 'left', `${(pos)}px`);
2712
- this.renderer.setStyle(el, 'bottom', `${(this.el_height + 7)}px`);
2713
- el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
3064
+ //get accessor
3065
+ get value() {
3066
+ return this.innerValue;
2714
3067
  }
2715
- to_bottom(el) {
2716
- const pos = this.el_center - (this.target_center);
2717
- this.renderer.setStyle(el, 'left', `${(pos)}px`);
2718
- this.renderer.setStyle(el, 'bottom', `-${(this.target_height + 7)}px`);
2719
- el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-bottom');
3068
+ ;
3069
+ //set accessor including call the onchange callback
3070
+ set value(v) {
3071
+ //console.log('set value', v);
3072
+ if (v !== this.innerValue) {
3073
+ //console.log('set value this.innerValue', this.innerValue);
3074
+ this.innerValue = v;
3075
+ this.onChangeCallback(v);
3076
+ }
2720
3077
  }
2721
- to_right(el) {
2722
- const pos = this.el_width;
2723
- this.renderer.setStyle(el, 'left', `${(pos + 11)}px`);
2724
- this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
2725
- el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-right');
3078
+ //Set touched on blur
3079
+ onBlur() {
3080
+ this.onTouchedCallback();
2726
3081
  }
2727
- to_left(el) {
2728
- const pos = -((this.target_width));
2729
- this.renderer.setStyle(el, 'left', `${(pos - 11)}px`);
2730
- this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
2731
- el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-left');
3082
+ //From ControlValueAccessor interface
3083
+ writeValue(value) {
3084
+ if (value !== this.innerValue) {
3085
+ this.innerValue = value;
3086
+ console.log('writeValue this.innerValue', this.innerValue);
3087
+ if (this.checkIsDate(value)) {
3088
+ this.to_date_hh_mm(value);
3089
+ }
3090
+ else {
3091
+ this.clean();
3092
+ }
3093
+ }
3094
+ }
3095
+ //From ControlValueAccessor interface
3096
+ registerOnChange(fn) {
3097
+ this.onChangeCallback = fn;
3098
+ }
3099
+ //From ControlValueAccessor interface
3100
+ registerOnTouched(fn) {
3101
+ this.onTouchedCallback = fn;
2732
3102
  }
2733
3103
  }
2734
- TCloudUiTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2735
- TCloudUiTooltipDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiTooltipDirective, selector: "[TCtooltip]", inputs: { TCtooltip: "TCtooltip", TCdirection: "TCdirection" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, ngImport: i0 });
2736
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTooltipDirective, decorators: [{
2737
- type: Directive,
2738
- args: [{
2739
- selector: '[TCtooltip]'
2740
- }]
2741
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
2742
- type: HostListener,
2743
- args: ['mouseover']
2744
- }], onMouseOut: [{
2745
- type: HostListener,
2746
- args: ['mouseout']
2747
- }], TCtooltip: [{
2748
- type: Input
2749
- }], TCdirection: [{
3104
+ TCloudUiDatepickerTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3105
+ TCloudUiDatepickerTimeComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiDatepickerTimeComponent, selector: "tcloud-ui-datepicker-time", inputs: { ngModel: "ngModel" }, outputs: { ngModelChange: "ngModelChange", onChange: "onChange", eventChange: "eventChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "datepickertime", first: true, predicate: ["_datepickertime"], descendants: true }], ngImport: i0, template: "<input type=\"hidden\" value=\"{{ innerValue }}\" #_datepickertime >\r\n<form #_formulario=\"ngForm\">\r\n <div class=\"input-control-time\">\r\n <div class=\"form-control-time\">\r\n <table class=\"form-time\">\r\n <tr>\r\n <!-- <td class=\"area-icon\"><div class=\"delimiter-time-icon\" (click)=\"toClickIn(ID)\" ><i class=\"fas fa-calendar-alt\"></i></div></td> -->\r\n <td class=\"area-input-date\"><tcloud-ui-datepicker #_tclouddatepickertime [modeInput]=\"true\" name=\"date\" [useBorder]=\"false\" [(ngModel)]=\"DD_MM_YYYY\" (onChange)=\"toSetDate($event)\" ></tcloud-ui-datepicker></td>\r\n <td class=\"area-delimiter\"><div class=\"delimiter-time\"></div></td>\r\n <td class=\"area-input-hour\"><input type=\"text\" placeholder=\"HH\" (keyup)=\"toSetTime()\" [(ngModel)]=\"HH\" maxlength=\"2\" name=\"hh\" pattern=\"[0][0-9]|[1][0-9]|2[0-3]\"></td>\r\n <td class=\"area-delimiter\"><div class=\"delimiter-time\">:</div></td>\r\n <td class=\"area-input-minute\"><input type=\"text\" placeholder=\"MM\" (keyup)=\"toSetTime()\" [(ngModel)]=\"MM\" maxlength=\"2\" name=\"mm\" pattern=\"[012345][0-9]\"></td>\r\n <td class=\"area-clean\"></td>\r\n </tr>\r\n </table>\r\n </div>\r\n </div>\r\n</form>", styles: [".input-control-time{border:1px solid #ccc;border-radius:3px;width:100%}.form-control-time{max-width:220px;border:none}.form-control-time input{text-align:center}.form-time{width:100%}.delimiter-time{width:100%;text-align:center}.delimiter-time-icon{border:none;height:35px;width:10px;padding:4px;font-size:17px;text-align:center;opacity:.6}.area-icon{width:25px}.area-input-date{width:105px}.area-delimiter{width:2px;text-align:center}.area-input-hour,.area-input-minute{text-align:center;width:28px}.area-input-hour input,.area-input-minute input{height:35px;width:28px;text-align:center;color:#999;font-weight:600;font-style:italic}.area-input-hour input:focus,.area-input-minute input:focus{outline:none}.area-clean{width:15px}input,.datepicker-input{border:none!important}\n"], dependencies: [{ kind: "component", type: TCloudUiDatepickerComponent, selector: "tcloud-ui-datepicker", inputs: ["multiple", "maxNumberOfDates", "daysOfWeekDisabled", "minDate", "maxDate", "datesDisabled", "modeInput", "useBorder", "ngModel", "code"], outputs: ["onChange", "ngModelChange"] }, { 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { 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"] }] });
3106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeComponent, decorators: [{
3107
+ type: Component,
3108
+ args: [{ selector: 'tcloud-ui-datepicker-time', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], template: "<input type=\"hidden\" value=\"{{ innerValue }}\" #_datepickertime >\r\n<form #_formulario=\"ngForm\">\r\n <div class=\"input-control-time\">\r\n <div class=\"form-control-time\">\r\n <table class=\"form-time\">\r\n <tr>\r\n <!-- <td class=\"area-icon\"><div class=\"delimiter-time-icon\" (click)=\"toClickIn(ID)\" ><i class=\"fas fa-calendar-alt\"></i></div></td> -->\r\n <td class=\"area-input-date\"><tcloud-ui-datepicker #_tclouddatepickertime [modeInput]=\"true\" name=\"date\" [useBorder]=\"false\" [(ngModel)]=\"DD_MM_YYYY\" (onChange)=\"toSetDate($event)\" ></tcloud-ui-datepicker></td>\r\n <td class=\"area-delimiter\"><div class=\"delimiter-time\"></div></td>\r\n <td class=\"area-input-hour\"><input type=\"text\" placeholder=\"HH\" (keyup)=\"toSetTime()\" [(ngModel)]=\"HH\" maxlength=\"2\" name=\"hh\" pattern=\"[0][0-9]|[1][0-9]|2[0-3]\"></td>\r\n <td class=\"area-delimiter\"><div class=\"delimiter-time\">:</div></td>\r\n <td class=\"area-input-minute\"><input type=\"text\" placeholder=\"MM\" (keyup)=\"toSetTime()\" [(ngModel)]=\"MM\" maxlength=\"2\" name=\"mm\" pattern=\"[012345][0-9]\"></td>\r\n <td class=\"area-clean\"></td>\r\n </tr>\r\n </table>\r\n </div>\r\n </div>\r\n</form>", styles: [".input-control-time{border:1px solid #ccc;border-radius:3px;width:100%}.form-control-time{max-width:220px;border:none}.form-control-time input{text-align:center}.form-time{width:100%}.delimiter-time{width:100%;text-align:center}.delimiter-time-icon{border:none;height:35px;width:10px;padding:4px;font-size:17px;text-align:center;opacity:.6}.area-icon{width:25px}.area-input-date{width:105px}.area-delimiter{width:2px;text-align:center}.area-input-hour,.area-input-minute{text-align:center;width:28px}.area-input-hour input,.area-input-minute input{height:35px;width:28px;text-align:center;color:#999;font-weight:600;font-style:italic}.area-input-hour input:focus,.area-input-minute input:focus{outline:none}.area-clean{width:15px}input,.datepicker-input{border:none!important}\n"] }]
3109
+ }], propDecorators: { ngModel: [{
2750
3110
  type: Input
3111
+ }], ngModelChange: [{
3112
+ type: Output
3113
+ }], onChange: [{
3114
+ type: Output
3115
+ }], eventChange: [{
3116
+ type: Output
3117
+ }], datepickertime: [{
3118
+ type: ViewChild,
3119
+ args: ['_datepickertime', { static: false }]
2751
3120
  }] } });
2752
3121
 
2753
- class TCloudUiDirectiveModule {
2754
- }
2755
- TCloudUiDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2756
- TCloudUiDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, declarations: [TCloudUiTooltipDirective,
2757
- TCloudUiAlignDirective,
2758
- TCloudUiHoverParentDirective], exports: [TCloudUiTooltipDirective,
2759
- TCloudUiAlignDirective,
2760
- TCloudUiHoverParentDirective] });
2761
- TCloudUiDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule });
2762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, decorators: [{
2763
- type: NgModule,
2764
- args: [{
2765
- declarations: [
2766
- TCloudUiTooltipDirective,
2767
- TCloudUiAlignDirective,
2768
- TCloudUiHoverParentDirective
2769
- ],
2770
- exports: [
2771
- TCloudUiTooltipDirective,
2772
- TCloudUiAlignDirective,
2773
- TCloudUiHoverParentDirective
2774
- ],
2775
- }]
2776
- }] });
2777
-
2778
- class TCloudUiPipesModule {
2779
- }
2780
- TCloudUiPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2781
- TCloudUiPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, declarations: [MonthNamePipe,
2782
- StatusInfoPipe,
2783
- RespectivePipe,
2784
- CNPJPipe,
2785
- CPFPipe,
2786
- BytesPipe], imports: [CommonModule], exports: [DatePipe,
2787
- MonthNamePipe,
2788
- StatusInfoPipe,
2789
- RespectivePipe,
2790
- CNPJPipe,
2791
- CPFPipe,
2792
- BytesPipe] });
2793
- TCloudUiPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, providers: [
2794
- DatePipe,
2795
- MonthNamePipe,
2796
- StatusInfoPipe,
2797
- RespectivePipe,
2798
- CNPJPipe,
2799
- CPFPipe,
2800
- BytesPipe
2801
- ], imports: [CommonModule] });
2802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, decorators: [{
2803
- type: NgModule,
2804
- args: [{
2805
- imports: [
2806
- CommonModule,
2807
- ],
2808
- declarations: [
2809
- MonthNamePipe,
2810
- StatusInfoPipe,
2811
- RespectivePipe,
2812
- CNPJPipe,
2813
- CPFPipe,
2814
- BytesPipe
2815
- ],
2816
- exports: [
2817
- DatePipe,
2818
- MonthNamePipe,
2819
- StatusInfoPipe,
2820
- RespectivePipe,
2821
- CNPJPipe,
2822
- CPFPipe,
2823
- BytesPipe
2824
- ],
2825
- providers: [
2826
- DatePipe,
2827
- MonthNamePipe,
2828
- StatusInfoPipe,
2829
- RespectivePipe,
2830
- CNPJPipe,
2831
- CPFPipe,
2832
- BytesPipe
2833
- ]
2834
- }]
2835
- }] });
2836
-
2837
- class TCloudUiLoadingTransitionsService {
2838
- constructor() {
2839
- this.ID = 'tcloud-ui-loading-transitions';
2840
- }
2841
- /**
2842
- * Inicia a tela de bloqueio para carregamento de tarefa
2843
- */
2844
- start() {
2845
- this.create_loading_transition();
2846
- if (document.getElementById(this.ID)) {
2847
- const box = document.getElementById(this.ID);
2848
- box === null || box === void 0 ? void 0 : box.classList.add('tcloud-ui-start-loading');
2849
- }
2850
- }
2851
- /**
2852
- * Encerra a tela de bloqueio
2853
- */
2854
- stop() {
2855
- if (document.getElementById(this.ID)) {
2856
- const box = document.getElementById(this.ID);
2857
- box === null || box === void 0 ? void 0 : box.classList.remove('tcloud-ui-start-loading');
2858
- const body = document.getElementsByTagName('body')[0];
2859
- body.classList.remove('tcloud-ui-body-loading-transitions');
2860
- }
2861
- }
2862
- create_loading_transition() {
2863
- let box = null;
2864
- if (document.getElementById(this.ID)) {
2865
- box = document.getElementById(this.ID);
2866
- }
2867
- else {
2868
- box = document.createElement("div");
2869
- box.setAttribute('id', this.ID);
2870
- }
2871
- box.style.display = 'none';
2872
- box.innerHTML = `<div class="tc-loading-icon"><i class="fas fa-spinner fa-spin"></i></div>`;
2873
- const body = document.getElementsByTagName('body')[0];
2874
- body.appendChild(box);
2875
- body.classList.add('tcloud-ui-body-loading-transitions');
2876
- }
2877
- }
2878
- TCloudUiLoadingTransitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2879
- TCloudUiLoadingTransitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, providedIn: 'root' });
2880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, decorators: [{
2881
- type: Injectable,
2882
- args: [{
2883
- providedIn: 'root',
2884
- }]
2885
- }], ctorParameters: function () { return []; } });
2886
-
2887
- var TCFiltersType;
2888
- (function (TCFiltersType) {
2889
- TCFiltersType["text"] = "text";
2890
- TCFiltersType["number"] = "number";
2891
- TCFiltersType["select"] = "select";
2892
- TCFiltersType["boolean"] = "boolean";
2893
- TCFiltersType["datetime"] = "datetime-local";
2894
- })(TCFiltersType || (TCFiltersType = {}));
2895
- var TCCondition;
2896
- (function (TCCondition) {
2897
- TCCondition["equal"] = "equal";
2898
- TCCondition["gte"] = "gte";
2899
- TCCondition["lte"] = "lte";
2900
- TCCondition["lt"] = "lt";
2901
- TCCondition["gt"] = "gt";
2902
- })(TCCondition || (TCCondition = {}));
2903
-
2904
3122
  class TCloudUiFiltersComponent {
2905
3123
  constructor(datepipe) {
2906
3124
  this.datepipe = datepipe;
3125
+ this.datepickers = [];
2907
3126
  this.inputs = [];
2908
3127
  this.show_filters = false;
2909
3128
  this.submitText = 'Filtrar';
@@ -2951,7 +3170,8 @@ class TCloudUiFiltersComponent {
2951
3170
  this.show_filters = true;
2952
3171
  if (this.filters && (this.filters).length > 0) {
2953
3172
  (this.filters).forEach((filter) => {
2954
- this.searchIn(filter, undefined);
3173
+ console.log('init filter', filter);
3174
+ this.searchIn(filter, 'sync');
2955
3175
  });
2956
3176
  }
2957
3177
  // this.toResult();
@@ -3037,33 +3257,43 @@ class TCloudUiFiltersComponent {
3037
3257
  }
3038
3258
  return current;
3039
3259
  }
3040
- searchIn(item, event) {
3041
- var _a;
3260
+ searchIn(item, event, value) {
3261
+ var _a, _b;
3042
3262
  this.start_filter_fc = undefined;
3043
- if (event !== undefined) {
3044
- if (typeof event === 'boolean') {
3045
- item.searchText = event;
3046
- this.onChange.emit(true);
3047
- }
3048
- else {
3049
- if (event === null) {
3050
- item.searchText = '';
3051
- }
3052
- else {
3053
- if (event.target) {
3054
- if (event.target.valueAsDate) {
3055
- item.searchText = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.valueAsDate;
3056
- }
3057
- else {
3058
- if (event.target.value) {
3059
- // item.searchText = (event.target.value).toUpperCase();
3060
- item.searchText = this.normalize(event.target.value);
3061
- }
3062
- }
3063
- }
3064
- this.onChange.emit(true);
3065
- }
3066
- }
3263
+ if (value) {
3264
+ console.log('searchIn item', item);
3265
+ console.log('searchIn event', event);
3266
+ }
3267
+ let isValid = true;
3268
+ if (event === 'sync' && isValid) {
3269
+ isValid = false;
3270
+ this.onChange.emit(true);
3271
+ }
3272
+ if (typeof event === 'boolean' && isValid) {
3273
+ isValid = false;
3274
+ item.searchText = event;
3275
+ this.onChange.emit(true);
3276
+ }
3277
+ if (event === undefined || event === null || event === '' && isValid) {
3278
+ isValid = false;
3279
+ item.searchText = '';
3280
+ this.onChange.emit(true);
3281
+ }
3282
+ if ((event === null || event === void 0 ? void 0 : event.datepickertime) && isValid) {
3283
+ isValid = false;
3284
+ console.log('is a date', event === null || event === void 0 ? void 0 : event.innerValue);
3285
+ item.searchText = event === null || event === void 0 ? void 0 : event.innerValue;
3286
+ this.onChange.emit(true);
3287
+ }
3288
+ if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value) && isValid) {
3289
+ isValid = false;
3290
+ item.searchText = this.normalize(event.target.value);
3291
+ this.onChange.emit(true);
3292
+ }
3293
+ if (((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.value) === '' && isValid) {
3294
+ isValid = false;
3295
+ item.searchText = '';
3296
+ this.onChange.emit(true);
3067
3297
  }
3068
3298
  if (this.useOnChangeSubmit) {
3069
3299
  this.start_filter_fc = this.start_filter();
@@ -3072,6 +3302,43 @@ class TCloudUiFiltersComponent {
3072
3302
  this.emitSubmitFilters();
3073
3303
  }
3074
3304
  }
3305
+ // searchIn(item: TCDataFilters, event?: any, value?: any){
3306
+ // if( value ){
3307
+ // console.log('searchIn item', item);
3308
+ // console.log('searchIn event', event);
3309
+ // }
3310
+ // this.start_filter_fc = undefined;
3311
+ // if( event !== undefined ){
3312
+ // if( typeof event === 'boolean' ){
3313
+ // item.searchText = event;
3314
+ // this.onChange.emit(true);
3315
+ // }else{
3316
+ // if( event === null ){
3317
+ // item.searchText = '';
3318
+ // }else{
3319
+ // if( event.defaultValue ){
3320
+ // item.searchText = event.defaultValue;
3321
+ // }else if( event.target ){
3322
+ // if( event.target.valueAsDate ){
3323
+ // item.searchText = event?.target?.valueAsDate;
3324
+ // }else{
3325
+ // if( event.target.value ){
3326
+ // // item.searchText = (event.target.value).toUpperCase();
3327
+ // item.searchText = this.normalize(event.target.value);
3328
+ // }
3329
+ // }
3330
+ // }
3331
+ // this.onChange.emit(true);
3332
+ // }
3333
+ // }
3334
+ // }
3335
+ // if( this.useOnChangeSubmit ){
3336
+ // this.start_filter_fc = this.start_filter();
3337
+ // }
3338
+ // if( !this.useButtonSubmit ){
3339
+ // this.emitSubmitFilters();
3340
+ // }
3341
+ // }
3075
3342
  start_filter() {
3076
3343
  for (let i = 0; i < (this.data).length; i++) {
3077
3344
  this.setDataIndex(i, true);
@@ -3212,10 +3479,10 @@ class TCloudUiFiltersComponent {
3212
3479
  }
3213
3480
  }
3214
3481
  TCloudUiFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersComponent, deps: [{ token: i1.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
3215
- TCloudUiFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiFiltersComponent, selector: "tcloud-ui-filters", inputs: { data: "data", filters: "filters", submitText: "submitText", useOnChangeSubmit: "useOnChangeSubmit", useButtonSubmit: "useButtonSubmit", useNormalizeCaseSensitive: "useNormalizeCaseSensitive" }, outputs: { result: "result", onFilter: "onFilter", onChange: "onChange", onSubmit: "onSubmit" }, viewQueries: [{ propertyName: "_formulario", first: true, predicate: ["_formulario"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n \n <ng-container *ngIf=\"item.type !== 'select'\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <input \n [attr.data-date-format]=\"( item.type === 'datetime-local' ) ? 'MM-DD-YYYY HH:mm' : null \"\n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"{{ (item.type === 'number') ? 'text' : item.type }}\" \n class=\"form-control tc-form-control\" \n (keyup)=\"searchIn(item, $event)\">\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"item.type === 'select' && item.data && (item.data).length > 0\" >\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <select \n #_input\n name=\"input_{{i+1}}\" \n class=\"form-control tc-form-control\" \n (change)=\"searchIn(item, $event)\">\n <option [ngValue]=\"\"></option>\n <ng-container *ngFor=\"let v of item.data\">\n <option [ngValue]=\"v.value\">{{ v.description }}</option>\n </ng-container>\n </select>\n <!-- <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button> -->\n </div>\n </ng-container>\n\n </div>\n\n\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"form-control tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n\n <div class=\"text-right mb-1 mr-1\" *ngIf=\"useButtonSubmit\">\n <button type=\"button\" class=\"tc-btn btn-new-grey\" (click)=\"toSubmit()\" >{{ submitText }}&nbsp;<i class=\"fas fa-filter icon-filter\"></i></button>\n </div>\n\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n<!-- \n<p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-block;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}input{color:#535353}\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"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
3482
+ TCloudUiFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiFiltersComponent, selector: "tcloud-ui-filters", inputs: { data: "data", filters: "filters", submitText: "submitText", useOnChangeSubmit: "useOnChangeSubmit", useButtonSubmit: "useButtonSubmit", useNormalizeCaseSensitive: "useNormalizeCaseSensitive" }, outputs: { result: "result", onFilter: "onFilter", onChange: "onChange", onSubmit: "onSubmit" }, viewQueries: [{ propertyName: "_formulario", first: true, predicate: ["_formulario"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n\n <ng-container *ngIf=\"item.type === 'datetime-local'\">\n <div class=\"m-description\"><i [class.to-active]=\"(datepickers[i] !== undefined && datepickers[i] !== null && datepickers[i] !== '')\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <tcloud-ui-datepicker-time #_input [(ngModel)]=\"datepickers[i]\" name=\"input_{{i+1}}\" (eventChange)=\"searchIn(item, _input, 'teste')\" > </tcloud-ui-datepicker-time>\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"!(datepickers[i] !== undefined && datepickers[i] !== null && datepickers[i] !== '')\" (click)=\"searchIn(item, null); item.searchText = undefined; datepickers[i] = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div> \n </ng-container>\n \n <ng-container *ngIf=\"item.type !== 'select' && item.type !== 'datetime-local'\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"{{ (item.type === 'number') ? 'text' : item.type }}\" \n class=\"form-control tc-form-control\" \n (keyup)=\"searchIn(item, $event)\"> \n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"item.type === 'select' && item.data && (item.data).length > 0\" >\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <select \n #_input\n name=\"input_{{i+1}}\" \n class=\"form-control tc-form-control\" \n (change)=\"searchIn(item, $event)\">\n <option [ngValue]=\"\"></option>\n <ng-container *ngFor=\"let v of item.data\">\n <option [ngValue]=\"v.value\">{{ v.description }}</option>\n </ng-container>\n </select>\n <!-- <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button> -->\n </div>\n </ng-container>\n\n </div>\n\n\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"form-control tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n\n <div class=\"text-right mb-1 mr-1\" *ngIf=\"useButtonSubmit\">\n <button type=\"button\" class=\"tc-btn btn-new-grey\" (click)=\"toSubmit()\" >{{ submitText }}&nbsp;<i class=\"fas fa-filter icon-filter\"></i></button>\n </div>\n\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n<!-- \n<p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-grid;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}input{color:#535353}\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"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: TCloudUiDatepickerTimeComponent, selector: "tcloud-ui-datepicker-time", inputs: ["ngModel"], outputs: ["ngModelChange", "onChange", "eventChange"] }] });
3216
3483
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersComponent, decorators: [{
3217
3484
  type: Component,
3218
- args: [{ selector: 'tcloud-ui-filters', template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n \n <ng-container *ngIf=\"item.type !== 'select'\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <input \n [attr.data-date-format]=\"( item.type === 'datetime-local' ) ? 'MM-DD-YYYY HH:mm' : null \"\n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"{{ (item.type === 'number') ? 'text' : item.type }}\" \n class=\"form-control tc-form-control\" \n (keyup)=\"searchIn(item, $event)\">\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"item.type === 'select' && item.data && (item.data).length > 0\" >\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <select \n #_input\n name=\"input_{{i+1}}\" \n class=\"form-control tc-form-control\" \n (change)=\"searchIn(item, $event)\">\n <option [ngValue]=\"\"></option>\n <ng-container *ngFor=\"let v of item.data\">\n <option [ngValue]=\"v.value\">{{ v.description }}</option>\n </ng-container>\n </select>\n <!-- <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button> -->\n </div>\n </ng-container>\n\n </div>\n\n\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"form-control tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n\n <div class=\"text-right mb-1 mr-1\" *ngIf=\"useButtonSubmit\">\n <button type=\"button\" class=\"tc-btn btn-new-grey\" (click)=\"toSubmit()\" >{{ submitText }}&nbsp;<i class=\"fas fa-filter icon-filter\"></i></button>\n </div>\n\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n<!-- \n<p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-block;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}input{color:#535353}\n"] }]
3485
+ args: [{ selector: 'tcloud-ui-filters', template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n\n <ng-container *ngIf=\"item.type === 'datetime-local'\">\n <div class=\"m-description\"><i [class.to-active]=\"(datepickers[i] !== undefined && datepickers[i] !== null && datepickers[i] !== '')\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <tcloud-ui-datepicker-time #_input [(ngModel)]=\"datepickers[i]\" name=\"input_{{i+1}}\" (eventChange)=\"searchIn(item, _input, 'teste')\" > </tcloud-ui-datepicker-time>\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"!(datepickers[i] !== undefined && datepickers[i] !== null && datepickers[i] !== '')\" (click)=\"searchIn(item, null); item.searchText = undefined; datepickers[i] = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div> \n </ng-container>\n \n <ng-container *ngIf=\"item.type !== 'select' && item.type !== 'datetime-local'\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"{{ (item.type === 'number') ? 'text' : item.type }}\" \n class=\"form-control tc-form-control\" \n (keyup)=\"searchIn(item, $event)\"> \n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"item.type === 'select' && item.data && (item.data).length > 0\" >\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div>\n <select \n #_input\n name=\"input_{{i+1}}\" \n class=\"form-control tc-form-control\" \n (change)=\"searchIn(item, $event)\">\n <option [ngValue]=\"\"></option>\n <ng-container *ngFor=\"let v of item.data\">\n <option [ngValue]=\"v.value\">{{ v.description }}</option>\n </ng-container>\n </select>\n <!-- <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button> -->\n </div>\n </ng-container>\n\n </div>\n\n\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i>&nbsp;{{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"form-control tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n\n <div class=\"text-right mb-1 mr-1\" *ngIf=\"useButtonSubmit\">\n <button type=\"button\" class=\"tc-btn btn-new-grey\" (click)=\"toSubmit()\" >{{ submitText }}&nbsp;<i class=\"fas fa-filter icon-filter\"></i></button>\n </div>\n\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n<!-- \n<p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-grid;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}input{color:#535353}\n"] }]
3219
3486
  }], ctorParameters: function () { return [{ type: i1.DatePipe }]; }, propDecorators: { _formulario: [{
3220
3487
  type: ViewChild,
3221
3488
  args: ['_formulario']
@@ -3241,13 +3508,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
3241
3508
  type: Output
3242
3509
  }] } });
3243
3510
 
3511
+ class TCloudUiDatepickerModule {
3512
+ }
3513
+ TCloudUiDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3514
+ TCloudUiDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerModule, declarations: [TCloudUiDatepickerComponent], imports: [CommonModule,
3515
+ FormsModule,
3516
+ ReactiveFormsModule], exports: [TCloudUiDatepickerComponent] });
3517
+ TCloudUiDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerModule, imports: [CommonModule,
3518
+ FormsModule,
3519
+ ReactiveFormsModule] });
3520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerModule, decorators: [{
3521
+ type: NgModule,
3522
+ args: [{
3523
+ declarations: [
3524
+ TCloudUiDatepickerComponent
3525
+ ],
3526
+ exports: [
3527
+ TCloudUiDatepickerComponent
3528
+ ],
3529
+ imports: [
3530
+ CommonModule,
3531
+ FormsModule,
3532
+ ReactiveFormsModule
3533
+ ]
3534
+ }]
3535
+ }] });
3536
+
3537
+ class TCloudUiDatepickerTimeModule {
3538
+ }
3539
+ TCloudUiDatepickerTimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3540
+ TCloudUiDatepickerTimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeModule, declarations: [TCloudUiDatepickerTimeComponent], imports: [CommonModule,
3541
+ TCloudUiDatepickerModule,
3542
+ FormsModule,
3543
+ ReactiveFormsModule], exports: [TCloudUiDatepickerTimeComponent] });
3544
+ TCloudUiDatepickerTimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeModule, imports: [CommonModule,
3545
+ TCloudUiDatepickerModule,
3546
+ FormsModule,
3547
+ ReactiveFormsModule] });
3548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeModule, decorators: [{
3549
+ type: NgModule,
3550
+ args: [{
3551
+ declarations: [
3552
+ TCloudUiDatepickerTimeComponent
3553
+ ],
3554
+ exports: [
3555
+ TCloudUiDatepickerTimeComponent
3556
+ ],
3557
+ imports: [
3558
+ CommonModule,
3559
+ TCloudUiDatepickerModule,
3560
+ FormsModule,
3561
+ ReactiveFormsModule,
3562
+ ]
3563
+ }]
3564
+ }] });
3565
+
3244
3566
  class TCloudUiFiltersModule {
3245
3567
  }
3246
3568
  TCloudUiFiltersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3247
3569
  TCloudUiFiltersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, declarations: [TCloudUiFiltersComponent], imports: [CommonModule,
3248
- FormsModule], exports: [TCloudUiFiltersComponent] });
3570
+ FormsModule,
3571
+ TCloudUiDatepickerTimeModule], exports: [TCloudUiFiltersComponent] });
3249
3572
  TCloudUiFiltersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, imports: [CommonModule,
3250
- FormsModule] });
3573
+ FormsModule,
3574
+ TCloudUiDatepickerTimeModule] });
3251
3575
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, decorators: [{
3252
3576
  type: NgModule,
3253
3577
  args: [{
@@ -3259,7 +3583,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
3259
3583
  ],
3260
3584
  imports: [
3261
3585
  CommonModule,
3262
- FormsModule
3586
+ FormsModule,
3587
+ TCloudUiDatepickerTimeModule
3263
3588
  ]
3264
3589
  }]
3265
3590
  }] });
@@ -3467,6 +3792,401 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
3467
3792
  }]
3468
3793
  }] });
3469
3794
 
3795
+ class TCloudUiAlignDirective {
3796
+ constructor(el, renderer) {
3797
+ this.el = el;
3798
+ this.renderer = renderer;
3799
+ this._direction = 'start';
3800
+ }
3801
+ set TCalign(direction) {
3802
+ if (direction) {
3803
+ this._direction = direction;
3804
+ this.setStyle(this.el.nativeElement);
3805
+ }
3806
+ }
3807
+ ngOnInit() {
3808
+ }
3809
+ setStyle(el) {
3810
+ if (this._direction === 'start') {
3811
+ this.renderer.setStyle(el, 'text-align', 'left');
3812
+ }
3813
+ if (this._direction === 'center') {
3814
+ this.renderer.setStyle(el, 'text-align', 'center');
3815
+ }
3816
+ if (this._direction === 'end') {
3817
+ this.renderer.setStyle(el, 'text-align', 'right');
3818
+ }
3819
+ }
3820
+ }
3821
+ TCloudUiAlignDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAlignDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
3822
+ TCloudUiAlignDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAlignDirective, selector: "[TCalign]", inputs: { TCalign: "TCalign" }, ngImport: i0 });
3823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAlignDirective, decorators: [{
3824
+ type: Directive,
3825
+ args: [{
3826
+ selector: '[TCalign]'
3827
+ }]
3828
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { TCalign: [{
3829
+ type: Input
3830
+ }] } });
3831
+
3832
+ class TCloudUiHoverParentDirective {
3833
+ constructor(renderer) {
3834
+ this.renderer = renderer;
3835
+ }
3836
+ onMouseOver() {
3837
+ if (this.getElement()) {
3838
+ const el = this.getElement();
3839
+ if (el) {
3840
+ this.renderer.addClass(el, (this.CLASS) ? this.CLASS : 'tcloud-hover-parent');
3841
+ }
3842
+ }
3843
+ }
3844
+ onMouseOut() {
3845
+ if (this.getElement()) {
3846
+ const el = this.getElement();
3847
+ if (el) {
3848
+ this.renderer.removeClass(el, (this.CLASS) ? this.CLASS : 'tcloud-hover-parent');
3849
+ }
3850
+ }
3851
+ }
3852
+ set TCHoverParent(id) {
3853
+ if (id) {
3854
+ this.ID = id;
3855
+ }
3856
+ }
3857
+ set TCHoverParentClass(clss) {
3858
+ if (clss) {
3859
+ this.CLASS = clss;
3860
+ }
3861
+ }
3862
+ getElement() {
3863
+ if (this.ID) {
3864
+ return document.getElementById(this.ID) || undefined;
3865
+ }
3866
+ return undefined;
3867
+ }
3868
+ }
3869
+ TCloudUiHoverParentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiHoverParentDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
3870
+ TCloudUiHoverParentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiHoverParentDirective, selector: "[TCHoverParent]", inputs: { TCHoverParent: "TCHoverParent", TCHoverParentClass: "TCHoverParentClass" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, ngImport: i0 });
3871
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiHoverParentDirective, decorators: [{
3872
+ type: Directive,
3873
+ args: [{
3874
+ selector: '[TCHoverParent]'
3875
+ }]
3876
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
3877
+ type: HostListener,
3878
+ args: ['mouseover']
3879
+ }], onMouseOut: [{
3880
+ type: HostListener,
3881
+ args: ['mouseout']
3882
+ }], TCHoverParent: [{
3883
+ type: Input
3884
+ }], TCHoverParentClass: [{
3885
+ type: Input
3886
+ }] } });
3887
+
3888
+ class TCloudUiTooltipDirective {
3889
+ constructor(el, renderer) {
3890
+ this.el = el;
3891
+ this.renderer = renderer;
3892
+ this._direction = 'top';
3893
+ // main
3894
+ this.el_height = 0;
3895
+ this.el_width = 0;
3896
+ this.el_center = 0;
3897
+ this.el_position = 0;
3898
+ // tooltip
3899
+ this.target_height = 0;
3900
+ this.target_width = 0;
3901
+ this.target_center = 0;
3902
+ this.ID = '';
3903
+ this.info_text = '';
3904
+ }
3905
+ onMouseOver() {
3906
+ if (this.getElement()) {
3907
+ this.renderer.addClass(this.el.nativeElement, 'main-tooltip');
3908
+ const el = this.getElement();
3909
+ el.style.display = 'inline';
3910
+ setTimeout(() => {
3911
+ var _a;
3912
+ this.el_height = this.el.nativeElement.offsetHeight;
3913
+ this.el_width = this.el.nativeElement.offsetWidth;
3914
+ this.el_center = this.el_width / 2;
3915
+ const rect = (_a = this.el.nativeElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
3916
+ this.el_position = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
3917
+ // console.log('this.el_width', this.el_width);
3918
+ // console.log('this.el_center', this.el_center);
3919
+ // console.log('this.el_position', this.el_position);
3920
+ this.target_height = el.offsetHeight;
3921
+ this.target_width = el.offsetWidth;
3922
+ this.target_center = this.target_width / 2;
3923
+ // console.log('target_heigth', this.target_height);
3924
+ // console.log('target_width', this.target_width);
3925
+ // console.log('target_center', this.target_center);
3926
+ // this.renderer.setStyle(el, 'bottom', `${this.el_position}px`);
3927
+ switch (this._direction) {
3928
+ case 'top':
3929
+ this.to_top(el);
3930
+ break;
3931
+ case 'bottom':
3932
+ this.to_bottom(el);
3933
+ break;
3934
+ case 'left':
3935
+ this.to_left(el);
3936
+ break;
3937
+ case 'right':
3938
+ this.to_right(el);
3939
+ break;
3940
+ }
3941
+ });
3942
+ }
3943
+ }
3944
+ onMouseOut() {
3945
+ if (this.getElement()) {
3946
+ const el = this.getElement();
3947
+ el.style.display = 'none';
3948
+ this.renderer.removeClass(this.el.nativeElement, 'main-tooltip');
3949
+ }
3950
+ }
3951
+ set TCtooltip(tooltip) {
3952
+ if (tooltip) {
3953
+ this.check(tooltip);
3954
+ }
3955
+ }
3956
+ set TCdirection(direction) {
3957
+ if (direction) {
3958
+ this._direction = direction;
3959
+ }
3960
+ }
3961
+ ngOnInit() {
3962
+ }
3963
+ generateID() {
3964
+ return `tc-tooltip-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
3965
+ }
3966
+ getElement() {
3967
+ return document.getElementById(this.ID) || undefined;
3968
+ }
3969
+ check(tooltip) {
3970
+ this.ID = this.generateID();
3971
+ this.info_text = tooltip;
3972
+ let el = this.el.nativeElement;
3973
+ this.main_el = el;
3974
+ if (el) {
3975
+ this.create_tooltip(tooltip, el);
3976
+ }
3977
+ else {
3978
+ console.log("TCL: tooltip -> el", this.el.nativeElement);
3979
+ }
3980
+ }
3981
+ setStyle(el) {
3982
+ // this.renderer.setStyle(el, 'position', 'relative');
3983
+ // this.renderer.setStyle(el, 'display', 'inline');
3984
+ }
3985
+ create_tooltip(tip, el) {
3986
+ this.setStyle(el);
3987
+ const tooltip = document.createElement("div");
3988
+ tooltip.setAttribute('id', this.ID);
3989
+ tooltip.setAttribute('style', `
3990
+ position: absolute;
3991
+ display: none;
3992
+ padding: 10px;
3993
+ border-radius: 10px;
3994
+ text-align: center;
3995
+ width: max-content;
3996
+ max-width: 250px;
3997
+ background-color: transparent;
3998
+ color: transparent;
3999
+ z-index: 1090;
4000
+ bottom: ${this.el_position}px;
4001
+ left: ${this.target_center}px;
4002
+ `);
4003
+ tooltip.innerHTML = tip;
4004
+ el.insertBefore(tooltip, null);
4005
+ }
4006
+ to_top(el) {
4007
+ const pos = this.el_center - (this.target_center);
4008
+ this.renderer.setStyle(el, 'left', `${(pos)}px`);
4009
+ this.renderer.setStyle(el, 'bottom', `${(this.el_height + 7)}px`);
4010
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
4011
+ }
4012
+ to_bottom(el) {
4013
+ const pos = this.el_center - (this.target_center);
4014
+ this.renderer.setStyle(el, 'left', `${(pos)}px`);
4015
+ this.renderer.setStyle(el, 'bottom', `-${(this.target_height + 7)}px`);
4016
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-bottom');
4017
+ }
4018
+ to_right(el) {
4019
+ const pos = this.el_width;
4020
+ this.renderer.setStyle(el, 'left', `${(pos + 11)}px`);
4021
+ this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
4022
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-right');
4023
+ }
4024
+ to_left(el) {
4025
+ const pos = -((this.target_width));
4026
+ this.renderer.setStyle(el, 'left', `${(pos - 11)}px`);
4027
+ this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
4028
+ el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-left');
4029
+ }
4030
+ }
4031
+ TCloudUiTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
4032
+ TCloudUiTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiTooltipDirective, selector: "[TCtooltip]", inputs: { TCtooltip: "TCtooltip", TCdirection: "TCdirection" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, ngImport: i0 });
4033
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTooltipDirective, decorators: [{
4034
+ type: Directive,
4035
+ args: [{
4036
+ selector: '[TCtooltip]'
4037
+ }]
4038
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
4039
+ type: HostListener,
4040
+ args: ['mouseover']
4041
+ }], onMouseOut: [{
4042
+ type: HostListener,
4043
+ args: ['mouseout']
4044
+ }], TCtooltip: [{
4045
+ type: Input
4046
+ }], TCdirection: [{
4047
+ type: Input
4048
+ }] } });
4049
+
4050
+ class TCloudUiDirectiveModule {
4051
+ }
4052
+ TCloudUiDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4053
+ TCloudUiDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, declarations: [TCloudUiTooltipDirective,
4054
+ TCloudUiAlignDirective,
4055
+ TCloudUiHoverParentDirective], exports: [TCloudUiTooltipDirective,
4056
+ TCloudUiAlignDirective,
4057
+ TCloudUiHoverParentDirective] });
4058
+ TCloudUiDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule });
4059
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, decorators: [{
4060
+ type: NgModule,
4061
+ args: [{
4062
+ declarations: [
4063
+ TCloudUiTooltipDirective,
4064
+ TCloudUiAlignDirective,
4065
+ TCloudUiHoverParentDirective
4066
+ ],
4067
+ exports: [
4068
+ TCloudUiTooltipDirective,
4069
+ TCloudUiAlignDirective,
4070
+ TCloudUiHoverParentDirective
4071
+ ],
4072
+ }]
4073
+ }] });
4074
+
4075
+ class TCloudUiPipesModule {
4076
+ }
4077
+ TCloudUiPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4078
+ TCloudUiPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, declarations: [MonthNamePipe,
4079
+ StatusInfoPipe,
4080
+ RespectivePipe,
4081
+ CNPJPipe,
4082
+ CPFPipe,
4083
+ BytesPipe,
4084
+ DateBRPipe], imports: [CommonModule], exports: [DatePipe,
4085
+ MonthNamePipe,
4086
+ StatusInfoPipe,
4087
+ RespectivePipe,
4088
+ CNPJPipe,
4089
+ CPFPipe,
4090
+ BytesPipe,
4091
+ DateBRPipe] });
4092
+ TCloudUiPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, providers: [
4093
+ DatePipe,
4094
+ MonthNamePipe,
4095
+ StatusInfoPipe,
4096
+ RespectivePipe,
4097
+ CNPJPipe,
4098
+ CPFPipe,
4099
+ BytesPipe,
4100
+ DateBRPipe
4101
+ ], imports: [CommonModule] });
4102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, decorators: [{
4103
+ type: NgModule,
4104
+ args: [{
4105
+ imports: [
4106
+ CommonModule,
4107
+ ],
4108
+ declarations: [
4109
+ MonthNamePipe,
4110
+ StatusInfoPipe,
4111
+ RespectivePipe,
4112
+ CNPJPipe,
4113
+ CPFPipe,
4114
+ BytesPipe,
4115
+ DateBRPipe
4116
+ ],
4117
+ exports: [
4118
+ DatePipe,
4119
+ MonthNamePipe,
4120
+ StatusInfoPipe,
4121
+ RespectivePipe,
4122
+ CNPJPipe,
4123
+ CPFPipe,
4124
+ BytesPipe,
4125
+ DateBRPipe
4126
+ ],
4127
+ providers: [
4128
+ DatePipe,
4129
+ MonthNamePipe,
4130
+ StatusInfoPipe,
4131
+ RespectivePipe,
4132
+ CNPJPipe,
4133
+ CPFPipe,
4134
+ BytesPipe,
4135
+ DateBRPipe
4136
+ ]
4137
+ }]
4138
+ }] });
4139
+
4140
+ class TCloudUiLoadingTransitionsService {
4141
+ constructor() {
4142
+ this.ID = 'tcloud-ui-loading-transitions';
4143
+ }
4144
+ /**
4145
+ * Inicia a tela de bloqueio para carregamento de tarefa
4146
+ */
4147
+ start() {
4148
+ this.create_loading_transition();
4149
+ if (document.getElementById(this.ID)) {
4150
+ const box = document.getElementById(this.ID);
4151
+ box === null || box === void 0 ? void 0 : box.classList.add('tcloud-ui-start-loading');
4152
+ }
4153
+ }
4154
+ /**
4155
+ * Encerra a tela de bloqueio
4156
+ */
4157
+ stop() {
4158
+ if (document.getElementById(this.ID)) {
4159
+ const box = document.getElementById(this.ID);
4160
+ box === null || box === void 0 ? void 0 : box.classList.remove('tcloud-ui-start-loading');
4161
+ const body = document.getElementsByTagName('body')[0];
4162
+ body.classList.remove('tcloud-ui-body-loading-transitions');
4163
+ }
4164
+ }
4165
+ create_loading_transition() {
4166
+ let box = null;
4167
+ if (document.getElementById(this.ID)) {
4168
+ box = document.getElementById(this.ID);
4169
+ }
4170
+ else {
4171
+ box = document.createElement("div");
4172
+ box.setAttribute('id', this.ID);
4173
+ }
4174
+ box.style.display = 'none';
4175
+ box.innerHTML = `<div class="tc-loading-icon"><i class="fas fa-spinner fa-spin"></i></div>`;
4176
+ const body = document.getElementsByTagName('body')[0];
4177
+ body.appendChild(box);
4178
+ body.classList.add('tcloud-ui-body-loading-transitions');
4179
+ }
4180
+ }
4181
+ TCloudUiLoadingTransitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4182
+ TCloudUiLoadingTransitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, providedIn: 'root' });
4183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, decorators: [{
4184
+ type: Injectable,
4185
+ args: [{
4186
+ providedIn: 'root',
4187
+ }]
4188
+ }], ctorParameters: function () { return []; } });
4189
+
3470
4190
  class TCloudUiModule {
3471
4191
  }
3472
4192
  TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -3485,6 +4205,8 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
3485
4205
  TCloudUiScrollBoxModule,
3486
4206
  TCloudUiFiltersModule,
3487
4207
  TCloudUiAccordionModule,
4208
+ TCloudUiDatepickerModule,
4209
+ TCloudUiDatepickerTimeModule,
3488
4210
  // Directives
3489
4211
  TCloudUiDirectiveModule,
3490
4212
  // Pipes
@@ -3503,6 +4225,8 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
3503
4225
  TCloudUiScrollBoxModule,
3504
4226
  TCloudUiFiltersModule,
3505
4227
  TCloudUiAccordionModule,
4228
+ TCloudUiDatepickerModule,
4229
+ TCloudUiDatepickerTimeModule,
3506
4230
  // Directives
3507
4231
  TCloudUiDirectiveModule,
3508
4232
  // Pipes
@@ -3525,6 +4249,8 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
3525
4249
  TCloudUiScrollBoxModule,
3526
4250
  TCloudUiFiltersModule,
3527
4251
  TCloudUiAccordionModule,
4252
+ TCloudUiDatepickerModule,
4253
+ TCloudUiDatepickerTimeModule,
3528
4254
  // Directives
3529
4255
  TCloudUiDirectiveModule,
3530
4256
  // Pipes
@@ -3543,6 +4269,8 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
3543
4269
  TCloudUiScrollBoxModule,
3544
4270
  TCloudUiFiltersModule,
3545
4271
  TCloudUiAccordionModule,
4272
+ TCloudUiDatepickerModule,
4273
+ TCloudUiDatepickerTimeModule,
3546
4274
  // Directives
3547
4275
  TCloudUiDirectiveModule,
3548
4276
  // Pipes
@@ -3566,6 +4294,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
3566
4294
  TCloudUiScrollBoxModule,
3567
4295
  TCloudUiFiltersModule,
3568
4296
  TCloudUiAccordionModule,
4297
+ TCloudUiDatepickerModule,
4298
+ TCloudUiDatepickerTimeModule,
3569
4299
  // Directives
3570
4300
  TCloudUiDirectiveModule,
3571
4301
  // Pipes
@@ -3587,6 +4317,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
3587
4317
  TCloudUiScrollBoxModule,
3588
4318
  TCloudUiFiltersModule,
3589
4319
  TCloudUiAccordionModule,
4320
+ TCloudUiDatepickerModule,
4321
+ TCloudUiDatepickerTimeModule,
3590
4322
  // Directives
3591
4323
  TCloudUiDirectiveModule,
3592
4324
  // Pipes
@@ -3607,5 +4339,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
3607
4339
  * Generated bundle index. Do not edit.
3608
4340
  */
3609
4341
 
3610
- export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionModule, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiHoverParentDirective, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
4342
+ export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionModule, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerModule, TCloudUiDatepickerTimeComponent, TCloudUiDatepickerTimeModule, TCloudUiDirectiveModule, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiHoverParentDirective, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
3611
4343
  //# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map