@dev-tcloud/tcloud-ui 0.0.49 → 0.0.51
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.
- package/README.md +11 -0
- package/esm2020/lib/_directives/directives.module.mjs +10 -5
- package/esm2020/lib/_directives/hover-parent/hover-parent.directive.mjs +58 -0
- package/esm2020/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.component.mjs +302 -0
- package/esm2020/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.module.mjs +31 -0
- package/esm2020/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.component.mjs +209 -0
- package/esm2020/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.module.mjs +35 -0
- package/esm2020/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.mjs +79 -29
- package/esm2020/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.module.mjs +8 -4
- package/esm2020/lib/_pipes/datebr.mjs +102 -0
- package/esm2020/lib/_pipes/index.mjs +2 -1
- package/esm2020/lib/_pipes/tcloud-pipes.module.mjs +14 -8
- package/esm2020/lib/tcloud-ui.module.mjs +17 -3
- package/esm2020/public-api.mjs +8 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +1345 -553
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +1337 -551
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_directives/directives.module.d.ts +2 -1
- package/lib/_directives/hover-parent/hover-parent.directive.d.ts +15 -0
- package/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.component.d.ts +46 -0
- package/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.module.d.ts +9 -0
- package/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.component.d.ts +34 -0
- package/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.module.d.ts +10 -0
- package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.d.ts +2 -1
- package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.module.d.ts +2 -1
- package/lib/_pipes/datebr.d.ts +11 -0
- package/lib/_pipes/index.d.ts +1 -0
- package/lib/_pipes/tcloud-pipes.module.d.ts +3 -2
- package/lib/tcloud-ui.module.d.ts +5 -3
- package/package.json +1 -1
- package/public-api.d.ts +5 -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$
|
|
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$
|
|
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$
|
|
966
|
-
this.onChangeCallback = noop$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1204
|
-
this.onChangeCallback = noop$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1556
|
-
this.onChangeCallback = noop$
|
|
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$
|
|
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$
|
|
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,355 +2595,534 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2495
2595
|
}]
|
|
2496
2596
|
}] });
|
|
2497
2597
|
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
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
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
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
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
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.
|
|
2517
|
-
|
|
2694
|
+
if ((this.datesDisabled).length > 0) {
|
|
2695
|
+
options['datesDisabled'] = this.datesDisabled;
|
|
2518
2696
|
}
|
|
2519
|
-
if (this.
|
|
2520
|
-
|
|
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
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
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 TCloudUiTooltipDirective {
|
|
2536
|
-
constructor(el, renderer) {
|
|
2537
|
-
this.el = el;
|
|
2538
|
-
this.renderer = renderer;
|
|
2539
|
-
this._direction = 'top';
|
|
2540
|
-
// main
|
|
2541
|
-
this.el_height = 0;
|
|
2542
|
-
this.el_width = 0;
|
|
2543
|
-
this.el_center = 0;
|
|
2544
|
-
this.el_position = 0;
|
|
2545
|
-
// tooltip
|
|
2546
|
-
this.target_height = 0;
|
|
2547
|
-
this.target_width = 0;
|
|
2548
|
-
this.target_center = 0;
|
|
2549
|
-
this.ID = '';
|
|
2550
|
-
this.info_text = '';
|
|
2708
|
+
clearDate() {
|
|
2709
|
+
if (this.datepicker) {
|
|
2710
|
+
this.datepicker.setDate({ clear: true });
|
|
2711
|
+
}
|
|
2551
2712
|
}
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
this.el_width = this.el.nativeElement.offsetWidth;
|
|
2561
|
-
this.el_center = this.el_width / 2;
|
|
2562
|
-
const rect = (_a = this.el.nativeElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
2563
|
-
this.el_position = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
|
|
2564
|
-
// console.log('this.el_width', this.el_width);
|
|
2565
|
-
// console.log('this.el_center', this.el_center);
|
|
2566
|
-
// console.log('this.el_position', this.el_position);
|
|
2567
|
-
this.target_height = el.offsetHeight;
|
|
2568
|
-
this.target_width = el.offsetWidth;
|
|
2569
|
-
this.target_center = this.target_width / 2;
|
|
2570
|
-
// console.log('target_heigth', this.target_height);
|
|
2571
|
-
// console.log('target_width', this.target_width);
|
|
2572
|
-
// console.log('target_center', this.target_center);
|
|
2573
|
-
// this.renderer.setStyle(el, 'bottom', `${this.el_position}px`);
|
|
2574
|
-
switch (this._direction) {
|
|
2575
|
-
case 'top':
|
|
2576
|
-
this.to_top(el);
|
|
2577
|
-
break;
|
|
2578
|
-
case 'bottom':
|
|
2579
|
-
this.to_bottom(el);
|
|
2580
|
-
break;
|
|
2581
|
-
case 'left':
|
|
2582
|
-
this.to_left(el);
|
|
2583
|
-
break;
|
|
2584
|
-
case 'right':
|
|
2585
|
-
this.to_right(el);
|
|
2586
|
-
break;
|
|
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;');
|
|
2587
2721
|
}
|
|
2588
|
-
|
|
2589
|
-
|
|
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
|
+
});
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2590
2769
|
}
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
this.
|
|
2770
|
+
toSetDate() {
|
|
2771
|
+
// Ex de uso
|
|
2772
|
+
const dates = ['18/11/2022'];
|
|
2773
|
+
if (this.datepicker) {
|
|
2774
|
+
this.datepicker.setDate(dates);
|
|
2596
2775
|
}
|
|
2597
2776
|
}
|
|
2598
|
-
|
|
2599
|
-
if (
|
|
2600
|
-
this.
|
|
2777
|
+
toSetDefaultDate(date) {
|
|
2778
|
+
if (date === undefined || date === null || date === '') {
|
|
2779
|
+
this.clearDate();
|
|
2780
|
+
return;
|
|
2601
2781
|
}
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
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
|
+
}
|
|
2791
|
+
}
|
|
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);
|
|
2606
2801
|
}
|
|
2607
2802
|
}
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
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
|
+
}
|
|
2623
2820
|
}
|
|
2624
2821
|
else {
|
|
2625
|
-
|
|
2626
|
-
|
|
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
|
+
});
|
|
2627
2845
|
}
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2846
|
+
//get accessor
|
|
2847
|
+
get value() {
|
|
2848
|
+
return this.innerValue;
|
|
2631
2849
|
}
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
max-width: 250px;
|
|
2644
|
-
background-color: transparent;
|
|
2645
|
-
color: transparent;
|
|
2646
|
-
z-index: 1090;
|
|
2647
|
-
bottom: ${this.el_position}px;
|
|
2648
|
-
left: ${this.target_center}px;
|
|
2649
|
-
`);
|
|
2650
|
-
tooltip.innerHTML = tip;
|
|
2651
|
-
el.insertBefore(tooltip, null);
|
|
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 = '';
|
|
2860
|
+
}
|
|
2652
2861
|
}
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
this.
|
|
2656
|
-
this.renderer.setStyle(el, 'bottom', `${(this.el_height + 7)}px`);
|
|
2657
|
-
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
|
|
2862
|
+
//Set touched on blur
|
|
2863
|
+
onBlur() {
|
|
2864
|
+
this.onTouchedCallback();
|
|
2658
2865
|
}
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
this.
|
|
2662
|
-
|
|
2663
|
-
|
|
2866
|
+
//From ControlValueAccessor interface
|
|
2867
|
+
writeValue(value) {
|
|
2868
|
+
if (value !== this.innerValue) {
|
|
2869
|
+
this.innerValue = value;
|
|
2870
|
+
this.toSetDefaultDate(value);
|
|
2871
|
+
}
|
|
2664
2872
|
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
this.
|
|
2668
|
-
this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
|
|
2669
|
-
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-right');
|
|
2873
|
+
//From ControlValueAccessor interface
|
|
2874
|
+
registerOnChange(fn) {
|
|
2875
|
+
this.onChangeCallback = fn;
|
|
2670
2876
|
}
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
this.
|
|
2674
|
-
this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
|
|
2675
|
-
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-left');
|
|
2877
|
+
//From ControlValueAccessor interface
|
|
2878
|
+
registerOnTouched(fn) {
|
|
2879
|
+
this.onTouchedCallback = fn;
|
|
2676
2880
|
}
|
|
2677
2881
|
}
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
2681
|
-
type:
|
|
2682
|
-
args: [{
|
|
2683
|
-
|
|
2684
|
-
}]
|
|
2685
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
|
|
2686
|
-
type: HostListener,
|
|
2687
|
-
args: ['mouseover']
|
|
2688
|
-
}], onMouseOut: [{
|
|
2689
|
-
type: HostListener,
|
|
2690
|
-
args: ['mouseout']
|
|
2691
|
-
}], TCtooltip: [{
|
|
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
|
+
TCloudUiDatepickerComponent.ɵcmp = 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: [{
|
|
2692
2888
|
type: Input
|
|
2693
|
-
}],
|
|
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: [{
|
|
2694
2913
|
type: Input
|
|
2695
2914
|
}] } });
|
|
2696
2915
|
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
type: NgModule,
|
|
2706
|
-
args: [{
|
|
2707
|
-
declarations: [
|
|
2708
|
-
TCloudUiTooltipDirective,
|
|
2709
|
-
TCloudUiAlignDirective
|
|
2710
|
-
],
|
|
2711
|
-
exports: [
|
|
2712
|
-
TCloudUiTooltipDirective,
|
|
2713
|
-
TCloudUiAlignDirective
|
|
2714
|
-
],
|
|
2715
|
-
}]
|
|
2716
|
-
}] });
|
|
2717
|
-
|
|
2718
|
-
class TCloudUiPipesModule {
|
|
2719
|
-
}
|
|
2720
|
-
TCloudUiPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2721
|
-
TCloudUiPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, declarations: [MonthNamePipe,
|
|
2722
|
-
StatusInfoPipe,
|
|
2723
|
-
RespectivePipe,
|
|
2724
|
-
CNPJPipe,
|
|
2725
|
-
CPFPipe,
|
|
2726
|
-
BytesPipe], imports: [CommonModule], exports: [DatePipe,
|
|
2727
|
-
MonthNamePipe,
|
|
2728
|
-
StatusInfoPipe,
|
|
2729
|
-
RespectivePipe,
|
|
2730
|
-
CNPJPipe,
|
|
2731
|
-
CPFPipe,
|
|
2732
|
-
BytesPipe] });
|
|
2733
|
-
TCloudUiPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, providers: [
|
|
2734
|
-
DatePipe,
|
|
2735
|
-
MonthNamePipe,
|
|
2736
|
-
StatusInfoPipe,
|
|
2737
|
-
RespectivePipe,
|
|
2738
|
-
CNPJPipe,
|
|
2739
|
-
CPFPipe,
|
|
2740
|
-
BytesPipe
|
|
2741
|
-
], imports: [CommonModule] });
|
|
2742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, decorators: [{
|
|
2743
|
-
type: NgModule,
|
|
2744
|
-
args: [{
|
|
2745
|
-
imports: [
|
|
2746
|
-
CommonModule,
|
|
2747
|
-
],
|
|
2748
|
-
declarations: [
|
|
2749
|
-
MonthNamePipe,
|
|
2750
|
-
StatusInfoPipe,
|
|
2751
|
-
RespectivePipe,
|
|
2752
|
-
CNPJPipe,
|
|
2753
|
-
CPFPipe,
|
|
2754
|
-
BytesPipe
|
|
2755
|
-
],
|
|
2756
|
-
exports: [
|
|
2757
|
-
DatePipe,
|
|
2758
|
-
MonthNamePipe,
|
|
2759
|
-
StatusInfoPipe,
|
|
2760
|
-
RespectivePipe,
|
|
2761
|
-
CNPJPipe,
|
|
2762
|
-
CPFPipe,
|
|
2763
|
-
BytesPipe
|
|
2764
|
-
],
|
|
2765
|
-
providers: [
|
|
2766
|
-
DatePipe,
|
|
2767
|
-
MonthNamePipe,
|
|
2768
|
-
StatusInfoPipe,
|
|
2769
|
-
RespectivePipe,
|
|
2770
|
-
CNPJPipe,
|
|
2771
|
-
CPFPipe,
|
|
2772
|
-
BytesPipe
|
|
2773
|
-
]
|
|
2774
|
-
}]
|
|
2775
|
-
}] });
|
|
2776
|
-
|
|
2777
|
-
class TCloudUiLoadingTransitionsService {
|
|
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 {
|
|
2778
2924
|
constructor() {
|
|
2779
|
-
this.
|
|
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 = '';
|
|
2931
|
+
this.ID = '';
|
|
2932
|
+
//Placeholders for the callbacks which are later providesd
|
|
2933
|
+
//by the Control Value Accessor
|
|
2934
|
+
this.onTouchedCallback = noop;
|
|
2935
|
+
this.onChangeCallback = noop;
|
|
2780
2936
|
}
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
start() {
|
|
2785
|
-
this.create_loading_transition();
|
|
2786
|
-
if (document.getElementById(this.ID)) {
|
|
2787
|
-
const box = document.getElementById(this.ID);
|
|
2788
|
-
box === null || box === void 0 ? void 0 : box.classList.add('tcloud-ui-start-loading');
|
|
2937
|
+
set ngModel(v) {
|
|
2938
|
+
if (v && v !== this.innerValue) {
|
|
2939
|
+
this.innerValue = v;
|
|
2789
2940
|
}
|
|
2790
2941
|
}
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2942
|
+
ngOnInit() {
|
|
2943
|
+
this.ID = this.generateID();
|
|
2944
|
+
}
|
|
2945
|
+
generateID() {
|
|
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
|
+
}
|
|
2800
2963
|
}
|
|
2801
2964
|
}
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
if (
|
|
2805
|
-
|
|
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);
|
|
2806
3015
|
}
|
|
2807
3016
|
else {
|
|
2808
|
-
|
|
2809
|
-
|
|
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
|
+
}
|
|
2810
3052
|
}
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
3053
|
+
return false;
|
|
3054
|
+
}
|
|
3055
|
+
clean() {
|
|
3056
|
+
this.DD_MM_YYYY = '';
|
|
3057
|
+
this.HH = '';
|
|
3058
|
+
this.MM = '';
|
|
3059
|
+
}
|
|
3060
|
+
toClickIn(id) {
|
|
3061
|
+
var _a;
|
|
3062
|
+
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3063
|
+
}
|
|
3064
|
+
//get accessor
|
|
3065
|
+
get value() {
|
|
3066
|
+
return this.innerValue;
|
|
3067
|
+
}
|
|
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
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
//Set touched on blur
|
|
3079
|
+
onBlur() {
|
|
3080
|
+
this.onTouchedCallback();
|
|
3081
|
+
}
|
|
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;
|
|
2816
3102
|
}
|
|
2817
3103
|
}
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
2821
|
-
type:
|
|
2822
|
-
args: [{
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
}
|
|
2835
|
-
var TCCondition;
|
|
2836
|
-
(function (TCCondition) {
|
|
2837
|
-
TCCondition["equal"] = "equal";
|
|
2838
|
-
TCCondition["gte"] = "gte";
|
|
2839
|
-
TCCondition["lte"] = "lte";
|
|
2840
|
-
TCCondition["lt"] = "lt";
|
|
2841
|
-
TCCondition["gt"] = "gt";
|
|
2842
|
-
})(TCCondition || (TCCondition = {}));
|
|
3104
|
+
TCloudUiDatepickerTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDatepickerTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3105
|
+
TCloudUiDatepickerTimeComponent.ɵcmp = 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: [{
|
|
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 }]
|
|
3120
|
+
}] } });
|
|
2843
3121
|
|
|
2844
3122
|
class TCloudUiFiltersComponent {
|
|
2845
3123
|
constructor(datepipe) {
|
|
2846
3124
|
this.datepipe = datepipe;
|
|
3125
|
+
this.datepickers = [];
|
|
2847
3126
|
this.inputs = [];
|
|
2848
3127
|
this.show_filters = false;
|
|
2849
3128
|
this.submitText = 'Filtrar';
|
|
@@ -2891,7 +3170,8 @@ class TCloudUiFiltersComponent {
|
|
|
2891
3170
|
this.show_filters = true;
|
|
2892
3171
|
if (this.filters && (this.filters).length > 0) {
|
|
2893
3172
|
(this.filters).forEach((filter) => {
|
|
2894
|
-
|
|
3173
|
+
console.log('init filter', filter);
|
|
3174
|
+
this.searchIn(filter, 'sync');
|
|
2895
3175
|
});
|
|
2896
3176
|
}
|
|
2897
3177
|
// this.toResult();
|
|
@@ -2977,33 +3257,43 @@ class TCloudUiFiltersComponent {
|
|
|
2977
3257
|
}
|
|
2978
3258
|
return current;
|
|
2979
3259
|
}
|
|
2980
|
-
searchIn(item, event) {
|
|
2981
|
-
var _a;
|
|
3260
|
+
searchIn(item, event, value) {
|
|
3261
|
+
var _a, _b;
|
|
2982
3262
|
this.start_filter_fc = undefined;
|
|
2983
|
-
if (
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
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);
|
|
3007
3297
|
}
|
|
3008
3298
|
if (this.useOnChangeSubmit) {
|
|
3009
3299
|
this.start_filter_fc = this.start_filter();
|
|
@@ -3012,6 +3302,43 @@ class TCloudUiFiltersComponent {
|
|
|
3012
3302
|
this.emitSubmitFilters();
|
|
3013
3303
|
}
|
|
3014
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
|
+
// }
|
|
3015
3342
|
start_filter() {
|
|
3016
3343
|
for (let i = 0; i < (this.data).length; i++) {
|
|
3017
3344
|
this.setDataIndex(i, true);
|
|
@@ -3152,10 +3479,10 @@ class TCloudUiFiltersComponent {
|
|
|
3152
3479
|
}
|
|
3153
3480
|
}
|
|
3154
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 });
|
|
3155
|
-
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
|
|
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> {{ 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> {{ 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> {{ 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> {{ 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 }} <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"] }] });
|
|
3156
3483
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersComponent, decorators: [{
|
|
3157
3484
|
type: Component,
|
|
3158
|
-
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
|
|
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> {{ 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> {{ 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> {{ 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> {{ 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 }} <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"] }]
|
|
3159
3486
|
}], ctorParameters: function () { return [{ type: i1.DatePipe }]; }, propDecorators: { _formulario: [{
|
|
3160
3487
|
type: ViewChild,
|
|
3161
3488
|
args: ['_formulario']
|
|
@@ -3181,231 +3508,684 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3181
3508
|
type: Output
|
|
3182
3509
|
}] } });
|
|
3183
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
|
+
|
|
3184
3566
|
class TCloudUiFiltersModule {
|
|
3185
3567
|
}
|
|
3186
3568
|
TCloudUiFiltersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3187
3569
|
TCloudUiFiltersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, declarations: [TCloudUiFiltersComponent], imports: [CommonModule,
|
|
3188
|
-
FormsModule
|
|
3570
|
+
FormsModule,
|
|
3571
|
+
TCloudUiDatepickerTimeModule], exports: [TCloudUiFiltersComponent] });
|
|
3189
3572
|
TCloudUiFiltersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, imports: [CommonModule,
|
|
3190
|
-
FormsModule
|
|
3573
|
+
FormsModule,
|
|
3574
|
+
TCloudUiDatepickerTimeModule] });
|
|
3191
3575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersModule, decorators: [{
|
|
3192
3576
|
type: NgModule,
|
|
3193
3577
|
args: [{
|
|
3194
3578
|
declarations: [
|
|
3195
|
-
TCloudUiFiltersComponent
|
|
3579
|
+
TCloudUiFiltersComponent
|
|
3580
|
+
],
|
|
3581
|
+
exports: [
|
|
3582
|
+
TCloudUiFiltersComponent
|
|
3583
|
+
],
|
|
3584
|
+
imports: [
|
|
3585
|
+
CommonModule,
|
|
3586
|
+
FormsModule,
|
|
3587
|
+
TCloudUiDatepickerTimeModule
|
|
3588
|
+
]
|
|
3589
|
+
}]
|
|
3590
|
+
}] });
|
|
3591
|
+
|
|
3592
|
+
class TCloudUiAccordionService {
|
|
3593
|
+
constructor() {
|
|
3594
|
+
this._stateToggle = new Subject();
|
|
3595
|
+
this.stateToggle$ = this._stateToggle.asObservable();
|
|
3596
|
+
this._stateLoading = new Subject();
|
|
3597
|
+
this.stateLoading$ = this._stateLoading.asObservable();
|
|
3598
|
+
this._stateDisabled = new Subject();
|
|
3599
|
+
this.stateDisabled$ = this._stateDisabled.asObservable();
|
|
3600
|
+
}
|
|
3601
|
+
toggle(action) {
|
|
3602
|
+
this._stateToggle.next(action);
|
|
3603
|
+
}
|
|
3604
|
+
getLoading() {
|
|
3605
|
+
return this.loading;
|
|
3606
|
+
}
|
|
3607
|
+
setLoading(loading) {
|
|
3608
|
+
this.loading = loading;
|
|
3609
|
+
this._stateLoading.next(loading);
|
|
3610
|
+
}
|
|
3611
|
+
getShow() {
|
|
3612
|
+
return this.show;
|
|
3613
|
+
}
|
|
3614
|
+
setDisabled(disabled) {
|
|
3615
|
+
this._stateDisabled.next(disabled);
|
|
3616
|
+
}
|
|
3617
|
+
getDisabled() {
|
|
3618
|
+
return this.disabled;
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
TCloudUiAccordionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3622
|
+
TCloudUiAccordionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService });
|
|
3623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService, decorators: [{
|
|
3624
|
+
type: Injectable
|
|
3625
|
+
}] });
|
|
3626
|
+
|
|
3627
|
+
class TCloudUiAccordionComponent {
|
|
3628
|
+
constructor(_tCloudUiAccordionService) {
|
|
3629
|
+
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3630
|
+
this._disabled = false;
|
|
3631
|
+
this._show = false;
|
|
3632
|
+
this.onAction = new EventEmitter();
|
|
3633
|
+
this._loading = false;
|
|
3634
|
+
}
|
|
3635
|
+
set disabled(v) {
|
|
3636
|
+
this._disabled = v;
|
|
3637
|
+
if (this._disabled) {
|
|
3638
|
+
setTimeout(() => {
|
|
3639
|
+
this._tCloudUiAccordionService.setDisabled(this._disabled);
|
|
3640
|
+
this._tCloudUiAccordionService.toggle(false);
|
|
3641
|
+
});
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
get disabled() { return this._disabled; }
|
|
3645
|
+
set show(v) {
|
|
3646
|
+
if (this._show !== v) {
|
|
3647
|
+
this._show = v;
|
|
3648
|
+
if (!this.disabled) {
|
|
3649
|
+
setTimeout(() => { this._tCloudUiAccordionService.toggle(this._show); });
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
get show() { return this._show; }
|
|
3654
|
+
/**
|
|
3655
|
+
* loading - boolean - Coloca o modal em modo de carregamento - default false
|
|
3656
|
+
*/
|
|
3657
|
+
set loading(loading) {
|
|
3658
|
+
this._loading = loading;
|
|
3659
|
+
this._tCloudUiAccordionService.setLoading(loading);
|
|
3660
|
+
}
|
|
3661
|
+
get loading() { return this._loading; }
|
|
3662
|
+
ngOnInit() {
|
|
3663
|
+
this.subscription_01 = this._tCloudUiAccordionService.stateLoading$.subscribe((loading) => {
|
|
3664
|
+
this.loading = loading;
|
|
3665
|
+
});
|
|
3666
|
+
this.subscription_02 = this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3667
|
+
this.onAction.emit((show === true) ? 'open' : 'close');
|
|
3668
|
+
});
|
|
3669
|
+
}
|
|
3670
|
+
ngOnDestroy() {
|
|
3671
|
+
if (this.subscription_01) {
|
|
3672
|
+
this.subscription_01.unsubscribe();
|
|
3673
|
+
}
|
|
3674
|
+
if (this.subscription_02) {
|
|
3675
|
+
this.subscription_02.unsubscribe();
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
}
|
|
3679
|
+
TCloudUiAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3680
|
+
TCloudUiAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionComponent, selector: "tcloud-ui-accordion", inputs: { disabled: "disabled", show: "show", loading: "loading" }, outputs: { onAction: "onAction" }, providers: [
|
|
3681
|
+
TCloudUiAccordionService
|
|
3682
|
+
], ngImport: i0, template: "<div class=\"tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"] });
|
|
3683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionComponent, decorators: [{
|
|
3684
|
+
type: Component,
|
|
3685
|
+
args: [{ selector: 'tcloud-ui-accordion', providers: [
|
|
3686
|
+
TCloudUiAccordionService
|
|
3687
|
+
], template: "<div class=\"tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"] }]
|
|
3688
|
+
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; }, propDecorators: { disabled: [{
|
|
3689
|
+
type: Input
|
|
3690
|
+
}], show: [{
|
|
3691
|
+
type: Input
|
|
3692
|
+
}], onAction: [{
|
|
3693
|
+
type: Output
|
|
3694
|
+
}], loading: [{
|
|
3695
|
+
type: Input
|
|
3696
|
+
}] } });
|
|
3697
|
+
|
|
3698
|
+
class TCloudUiAccordionTitleComponent {
|
|
3699
|
+
constructor(_tCloudUiAccordionService) {
|
|
3700
|
+
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3701
|
+
this.show = false;
|
|
3702
|
+
this.loading = false;
|
|
3703
|
+
this.disabled = false;
|
|
3704
|
+
}
|
|
3705
|
+
ngOnInit() {
|
|
3706
|
+
this.loading = this._tCloudUiAccordionService.getLoading() || false;
|
|
3707
|
+
this.subscription_01 = this._tCloudUiAccordionService.stateLoading$.subscribe((loading) => {
|
|
3708
|
+
this.loading = loading;
|
|
3709
|
+
});
|
|
3710
|
+
this.show = this._tCloudUiAccordionService.getShow() || false;
|
|
3711
|
+
this.subscription_02 = this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3712
|
+
this.show = show;
|
|
3713
|
+
});
|
|
3714
|
+
this.disabled = this._tCloudUiAccordionService.getDisabled() || false;
|
|
3715
|
+
this.subscription_03 = this._tCloudUiAccordionService.stateDisabled$.subscribe((disabled) => {
|
|
3716
|
+
this.disabled = disabled;
|
|
3717
|
+
});
|
|
3718
|
+
}
|
|
3719
|
+
toggle() {
|
|
3720
|
+
if (this.disabled) {
|
|
3721
|
+
return;
|
|
3722
|
+
}
|
|
3723
|
+
this.show = !this.show;
|
|
3724
|
+
this._tCloudUiAccordionService.toggle(this.show);
|
|
3725
|
+
}
|
|
3726
|
+
toggle_title() {
|
|
3727
|
+
this.toggle();
|
|
3728
|
+
}
|
|
3729
|
+
ngOnDestroy() {
|
|
3730
|
+
if (this.subscription_01) {
|
|
3731
|
+
this.subscription_01.unsubscribe();
|
|
3732
|
+
}
|
|
3733
|
+
if (this.subscription_02) {
|
|
3734
|
+
this.subscription_02.unsubscribe();
|
|
3735
|
+
}
|
|
3736
|
+
if (this.subscription_03) {
|
|
3737
|
+
this.subscription_03.unsubscribe();
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
TCloudUiAccordionTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionTitleComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3742
|
+
TCloudUiAccordionTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionTitleComponent, selector: "tcloud-ui-accordion-title", ngImport: i0, template: "<div class=\"tc-accordion-title\">\n <table class=\"tc-accordion-table\">\n <tr>\n <td class=\"area-title\" (click)=\"toggle_title()\" >\n <ng-content></ng-content>\n </td>\n <td class=\"tc-accordion-actions\">\n <button type=\"button\" class=\"tc-btn-accordion-toggle\" [disabled]=\"disabled\" (click)=\"toggle()\" >\n\n <i class=\"fas fa-chevron-right icon-toggle\" *ngIf=\"!show\"></i>\n <i class=\"fas fa-chevron-down icon-toggle\" *ngIf=\"show\"></i>\n\n </button>\n </td>\n </tr>\n </table>\n</div>", styles: [".tc-accordion-table{width:100%}.tc-accordion-actions{width:15px}.tc-btn-accordion-toggle{font-size:20px;border:none;background-color:transparent;background:none;cursor:pointer;margin:auto}.tc-btn-accordion-toggle:disabled{cursor:not-allowed!important;opacity:.6}.icon-toggle{color:var(--verde)}.area-title{width:100;cursor:pointer;color:var(--verde)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionTitleComponent, decorators: [{
|
|
3744
|
+
type: Component,
|
|
3745
|
+
args: [{ selector: 'tcloud-ui-accordion-title', template: "<div class=\"tc-accordion-title\">\n <table class=\"tc-accordion-table\">\n <tr>\n <td class=\"area-title\" (click)=\"toggle_title()\" >\n <ng-content></ng-content>\n </td>\n <td class=\"tc-accordion-actions\">\n <button type=\"button\" class=\"tc-btn-accordion-toggle\" [disabled]=\"disabled\" (click)=\"toggle()\" >\n\n <i class=\"fas fa-chevron-right icon-toggle\" *ngIf=\"!show\"></i>\n <i class=\"fas fa-chevron-down icon-toggle\" *ngIf=\"show\"></i>\n\n </button>\n </td>\n </tr>\n </table>\n</div>", styles: [".tc-accordion-table{width:100%}.tc-accordion-actions{width:15px}.tc-btn-accordion-toggle{font-size:20px;border:none;background-color:transparent;background:none;cursor:pointer;margin:auto}.tc-btn-accordion-toggle:disabled{cursor:not-allowed!important;opacity:.6}.icon-toggle{color:var(--verde)}.area-title{width:100;cursor:pointer;color:var(--verde)}\n"] }]
|
|
3746
|
+
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; } });
|
|
3747
|
+
|
|
3748
|
+
class TCloudUiAccordionBodyComponent {
|
|
3749
|
+
constructor(_tCloudUiAccordionService) {
|
|
3750
|
+
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3751
|
+
this.show = false;
|
|
3752
|
+
}
|
|
3753
|
+
ngOnInit() {
|
|
3754
|
+
this.show = this._tCloudUiAccordionService.getShow() || false;
|
|
3755
|
+
this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3756
|
+
this.show = show;
|
|
3757
|
+
});
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
TCloudUiAccordionBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionBodyComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3761
|
+
TCloudUiAccordionBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionBodyComponent, selector: "tcloud-ui-accordion-body", ngImport: i0, template: "<div class=\"tc-accordion-content\" style=\"display: none;\" [class.show]=\"show\">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important}.tc-accordion-content{padding-top:15px;padding-bottom:15px}\n"] });
|
|
3762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionBodyComponent, decorators: [{
|
|
3763
|
+
type: Component,
|
|
3764
|
+
args: [{ selector: 'tcloud-ui-accordion-body', template: "<div class=\"tc-accordion-content\" style=\"display: none;\" [class.show]=\"show\">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important}.tc-accordion-content{padding-top:15px;padding-bottom:15px}\n"] }]
|
|
3765
|
+
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; } });
|
|
3766
|
+
|
|
3767
|
+
class TCloudUiAccordionModule {
|
|
3768
|
+
}
|
|
3769
|
+
TCloudUiAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3770
|
+
TCloudUiAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, declarations: [TCloudUiAccordionComponent,
|
|
3771
|
+
TCloudUiAccordionTitleComponent,
|
|
3772
|
+
TCloudUiAccordionBodyComponent], imports: [CommonModule], exports: [TCloudUiAccordionComponent,
|
|
3773
|
+
TCloudUiAccordionTitleComponent,
|
|
3774
|
+
TCloudUiAccordionBodyComponent] });
|
|
3775
|
+
TCloudUiAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, imports: [CommonModule] });
|
|
3776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, decorators: [{
|
|
3777
|
+
type: NgModule,
|
|
3778
|
+
args: [{
|
|
3779
|
+
declarations: [
|
|
3780
|
+
TCloudUiAccordionComponent,
|
|
3781
|
+
TCloudUiAccordionTitleComponent,
|
|
3782
|
+
TCloudUiAccordionBodyComponent
|
|
3783
|
+
],
|
|
3784
|
+
exports: [
|
|
3785
|
+
TCloudUiAccordionComponent,
|
|
3786
|
+
TCloudUiAccordionTitleComponent,
|
|
3787
|
+
TCloudUiAccordionBodyComponent
|
|
3788
|
+
],
|
|
3789
|
+
imports: [
|
|
3790
|
+
CommonModule
|
|
3791
|
+
]
|
|
3792
|
+
}]
|
|
3793
|
+
}] });
|
|
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
|
|
3196
4116
|
],
|
|
3197
4117
|
exports: [
|
|
3198
|
-
|
|
4118
|
+
DatePipe,
|
|
4119
|
+
MonthNamePipe,
|
|
4120
|
+
StatusInfoPipe,
|
|
4121
|
+
RespectivePipe,
|
|
4122
|
+
CNPJPipe,
|
|
4123
|
+
CPFPipe,
|
|
4124
|
+
BytesPipe,
|
|
4125
|
+
DateBRPipe
|
|
3199
4126
|
],
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
4127
|
+
providers: [
|
|
4128
|
+
DatePipe,
|
|
4129
|
+
MonthNamePipe,
|
|
4130
|
+
StatusInfoPipe,
|
|
4131
|
+
RespectivePipe,
|
|
4132
|
+
CNPJPipe,
|
|
4133
|
+
CPFPipe,
|
|
4134
|
+
BytesPipe,
|
|
4135
|
+
DateBRPipe
|
|
3203
4136
|
]
|
|
3204
4137
|
}]
|
|
3205
4138
|
}] });
|
|
3206
4139
|
|
|
3207
|
-
class
|
|
4140
|
+
class TCloudUiLoadingTransitionsService {
|
|
3208
4141
|
constructor() {
|
|
3209
|
-
this.
|
|
3210
|
-
this.stateToggle$ = this._stateToggle.asObservable();
|
|
3211
|
-
this._stateLoading = new Subject();
|
|
3212
|
-
this.stateLoading$ = this._stateLoading.asObservable();
|
|
3213
|
-
this._stateDisabled = new Subject();
|
|
3214
|
-
this.stateDisabled$ = this._stateDisabled.asObservable();
|
|
3215
|
-
}
|
|
3216
|
-
toggle(action) {
|
|
3217
|
-
this._stateToggle.next(action);
|
|
3218
|
-
}
|
|
3219
|
-
getLoading() {
|
|
3220
|
-
return this.loading;
|
|
3221
|
-
}
|
|
3222
|
-
setLoading(loading) {
|
|
3223
|
-
this.loading = loading;
|
|
3224
|
-
this._stateLoading.next(loading);
|
|
3225
|
-
}
|
|
3226
|
-
getShow() {
|
|
3227
|
-
return this.show;
|
|
3228
|
-
}
|
|
3229
|
-
setDisabled(disabled) {
|
|
3230
|
-
this._stateDisabled.next(disabled);
|
|
3231
|
-
}
|
|
3232
|
-
getDisabled() {
|
|
3233
|
-
return this.disabled;
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
TCloudUiAccordionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3237
|
-
TCloudUiAccordionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService });
|
|
3238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService, decorators: [{
|
|
3239
|
-
type: Injectable
|
|
3240
|
-
}] });
|
|
3241
|
-
|
|
3242
|
-
class TCloudUiAccordionComponent {
|
|
3243
|
-
constructor(_tCloudUiAccordionService) {
|
|
3244
|
-
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3245
|
-
this._disabled = false;
|
|
3246
|
-
this._show = false;
|
|
3247
|
-
this.onAction = new EventEmitter();
|
|
3248
|
-
this._loading = false;
|
|
3249
|
-
}
|
|
3250
|
-
set disabled(v) {
|
|
3251
|
-
this._disabled = v;
|
|
3252
|
-
if (this._disabled) {
|
|
3253
|
-
setTimeout(() => {
|
|
3254
|
-
this._tCloudUiAccordionService.setDisabled(this._disabled);
|
|
3255
|
-
this._tCloudUiAccordionService.toggle(false);
|
|
3256
|
-
});
|
|
3257
|
-
}
|
|
3258
|
-
}
|
|
3259
|
-
get disabled() { return this._disabled; }
|
|
3260
|
-
set show(v) {
|
|
3261
|
-
if (this._show !== v) {
|
|
3262
|
-
this._show = v;
|
|
3263
|
-
if (!this.disabled) {
|
|
3264
|
-
setTimeout(() => { this._tCloudUiAccordionService.toggle(this._show); });
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
4142
|
+
this.ID = 'tcloud-ui-loading-transitions';
|
|
3267
4143
|
}
|
|
3268
|
-
get show() { return this._show; }
|
|
3269
4144
|
/**
|
|
3270
|
-
*
|
|
4145
|
+
* Inicia a tela de bloqueio para carregamento de tarefa
|
|
3271
4146
|
*/
|
|
3272
|
-
|
|
3273
|
-
this.
|
|
3274
|
-
this.
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
ngOnInit() {
|
|
3278
|
-
this.subscription_01 = this._tCloudUiAccordionService.stateLoading$.subscribe((loading) => {
|
|
3279
|
-
this.loading = loading;
|
|
3280
|
-
});
|
|
3281
|
-
this.subscription_02 = this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3282
|
-
this.onAction.emit((show === true) ? 'open' : 'close');
|
|
3283
|
-
});
|
|
3284
|
-
}
|
|
3285
|
-
ngOnDestroy() {
|
|
3286
|
-
if (this.subscription_01) {
|
|
3287
|
-
this.subscription_01.unsubscribe();
|
|
3288
|
-
}
|
|
3289
|
-
if (this.subscription_02) {
|
|
3290
|
-
this.subscription_02.unsubscribe();
|
|
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');
|
|
3291
4152
|
}
|
|
3292
4153
|
}
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
], template: "<div class=\"tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"] }]
|
|
3303
|
-
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; }, propDecorators: { disabled: [{
|
|
3304
|
-
type: Input
|
|
3305
|
-
}], show: [{
|
|
3306
|
-
type: Input
|
|
3307
|
-
}], onAction: [{
|
|
3308
|
-
type: Output
|
|
3309
|
-
}], loading: [{
|
|
3310
|
-
type: Input
|
|
3311
|
-
}] } });
|
|
3312
|
-
|
|
3313
|
-
class TCloudUiAccordionTitleComponent {
|
|
3314
|
-
constructor(_tCloudUiAccordionService) {
|
|
3315
|
-
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3316
|
-
this.show = false;
|
|
3317
|
-
this.loading = false;
|
|
3318
|
-
this.disabled = false;
|
|
3319
|
-
}
|
|
3320
|
-
ngOnInit() {
|
|
3321
|
-
this.loading = this._tCloudUiAccordionService.getLoading() || false;
|
|
3322
|
-
this.subscription_01 = this._tCloudUiAccordionService.stateLoading$.subscribe((loading) => {
|
|
3323
|
-
this.loading = loading;
|
|
3324
|
-
});
|
|
3325
|
-
this.show = this._tCloudUiAccordionService.getShow() || false;
|
|
3326
|
-
this.subscription_02 = this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3327
|
-
this.show = show;
|
|
3328
|
-
});
|
|
3329
|
-
this.disabled = this._tCloudUiAccordionService.getDisabled() || false;
|
|
3330
|
-
this.subscription_03 = this._tCloudUiAccordionService.stateDisabled$.subscribe((disabled) => {
|
|
3331
|
-
this.disabled = disabled;
|
|
3332
|
-
});
|
|
3333
|
-
}
|
|
3334
|
-
toggle() {
|
|
3335
|
-
if (this.disabled) {
|
|
3336
|
-
return;
|
|
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');
|
|
3337
4163
|
}
|
|
3338
|
-
this.show = !this.show;
|
|
3339
|
-
this._tCloudUiAccordionService.toggle(this.show);
|
|
3340
4164
|
}
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
if (this.subscription_01) {
|
|
3346
|
-
this.subscription_01.unsubscribe();
|
|
3347
|
-
}
|
|
3348
|
-
if (this.subscription_02) {
|
|
3349
|
-
this.subscription_02.unsubscribe();
|
|
4165
|
+
create_loading_transition() {
|
|
4166
|
+
let box = null;
|
|
4167
|
+
if (document.getElementById(this.ID)) {
|
|
4168
|
+
box = document.getElementById(this.ID);
|
|
3350
4169
|
}
|
|
3351
|
-
|
|
3352
|
-
|
|
4170
|
+
else {
|
|
4171
|
+
box = document.createElement("div");
|
|
4172
|
+
box.setAttribute('id', this.ID);
|
|
3353
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');
|
|
3354
4179
|
}
|
|
3355
4180
|
}
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
3359
|
-
type:
|
|
3360
|
-
args: [{ selector: 'tcloud-ui-accordion-title', template: "<div class=\"tc-accordion-title\">\n <table class=\"tc-accordion-table\">\n <tr>\n <td class=\"area-title\" (click)=\"toggle_title()\" >\n <ng-content></ng-content>\n </td>\n <td class=\"tc-accordion-actions\">\n <button type=\"button\" class=\"tc-btn-accordion-toggle\" [disabled]=\"disabled\" (click)=\"toggle()\" >\n\n <i class=\"fas fa-chevron-right icon-toggle\" *ngIf=\"!show\"></i>\n <i class=\"fas fa-chevron-down icon-toggle\" *ngIf=\"show\"></i>\n\n </button>\n </td>\n </tr>\n </table>\n</div>", styles: [".tc-accordion-table{width:100%}.tc-accordion-actions{width:15px}.tc-btn-accordion-toggle{font-size:20px;border:none;background-color:transparent;background:none;cursor:pointer;margin:auto}.tc-btn-accordion-toggle:disabled{cursor:not-allowed!important;opacity:.6}.icon-toggle{color:var(--verde)}.area-title{width:100;cursor:pointer;color:var(--verde)}\n"] }]
|
|
3361
|
-
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; } });
|
|
3362
|
-
|
|
3363
|
-
class TCloudUiAccordionBodyComponent {
|
|
3364
|
-
constructor(_tCloudUiAccordionService) {
|
|
3365
|
-
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3366
|
-
this.show = false;
|
|
3367
|
-
}
|
|
3368
|
-
ngOnInit() {
|
|
3369
|
-
this.show = this._tCloudUiAccordionService.getShow() || false;
|
|
3370
|
-
this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3371
|
-
this.show = show;
|
|
3372
|
-
});
|
|
3373
|
-
}
|
|
3374
|
-
}
|
|
3375
|
-
TCloudUiAccordionBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionBodyComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3376
|
-
TCloudUiAccordionBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionBodyComponent, selector: "tcloud-ui-accordion-body", ngImport: i0, template: "<div class=\"tc-accordion-content\" style=\"display: none;\" [class.show]=\"show\">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important}.tc-accordion-content{padding-top:15px;padding-bottom:15px}\n"] });
|
|
3377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionBodyComponent, decorators: [{
|
|
3378
|
-
type: Component,
|
|
3379
|
-
args: [{ selector: 'tcloud-ui-accordion-body', template: "<div class=\"tc-accordion-content\" style=\"display: none;\" [class.show]=\"show\">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important}.tc-accordion-content{padding-top:15px;padding-bottom:15px}\n"] }]
|
|
3380
|
-
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; } });
|
|
3381
|
-
|
|
3382
|
-
class TCloudUiAccordionModule {
|
|
3383
|
-
}
|
|
3384
|
-
TCloudUiAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3385
|
-
TCloudUiAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, declarations: [TCloudUiAccordionComponent,
|
|
3386
|
-
TCloudUiAccordionTitleComponent,
|
|
3387
|
-
TCloudUiAccordionBodyComponent], imports: [CommonModule], exports: [TCloudUiAccordionComponent,
|
|
3388
|
-
TCloudUiAccordionTitleComponent,
|
|
3389
|
-
TCloudUiAccordionBodyComponent] });
|
|
3390
|
-
TCloudUiAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, imports: [CommonModule] });
|
|
3391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, decorators: [{
|
|
3392
|
-
type: NgModule,
|
|
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,
|
|
3393
4185
|
args: [{
|
|
3394
|
-
|
|
3395
|
-
TCloudUiAccordionComponent,
|
|
3396
|
-
TCloudUiAccordionTitleComponent,
|
|
3397
|
-
TCloudUiAccordionBodyComponent
|
|
3398
|
-
],
|
|
3399
|
-
exports: [
|
|
3400
|
-
TCloudUiAccordionComponent,
|
|
3401
|
-
TCloudUiAccordionTitleComponent,
|
|
3402
|
-
TCloudUiAccordionBodyComponent
|
|
3403
|
-
],
|
|
3404
|
-
imports: [
|
|
3405
|
-
CommonModule
|
|
3406
|
-
]
|
|
4186
|
+
providedIn: 'root',
|
|
3407
4187
|
}]
|
|
3408
|
-
}] });
|
|
4188
|
+
}], ctorParameters: function () { return []; } });
|
|
3409
4189
|
|
|
3410
4190
|
class TCloudUiModule {
|
|
3411
4191
|
}
|
|
@@ -3425,6 +4205,8 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
3425
4205
|
TCloudUiScrollBoxModule,
|
|
3426
4206
|
TCloudUiFiltersModule,
|
|
3427
4207
|
TCloudUiAccordionModule,
|
|
4208
|
+
TCloudUiDatepickerModule,
|
|
4209
|
+
TCloudUiDatepickerTimeModule,
|
|
3428
4210
|
// Directives
|
|
3429
4211
|
TCloudUiDirectiveModule,
|
|
3430
4212
|
// Pipes
|
|
@@ -3443,6 +4225,8 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
3443
4225
|
TCloudUiScrollBoxModule,
|
|
3444
4226
|
TCloudUiFiltersModule,
|
|
3445
4227
|
TCloudUiAccordionModule,
|
|
4228
|
+
TCloudUiDatepickerModule,
|
|
4229
|
+
TCloudUiDatepickerTimeModule,
|
|
3446
4230
|
// Directives
|
|
3447
4231
|
TCloudUiDirectiveModule,
|
|
3448
4232
|
// Pipes
|
|
@@ -3465,6 +4249,8 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
3465
4249
|
TCloudUiScrollBoxModule,
|
|
3466
4250
|
TCloudUiFiltersModule,
|
|
3467
4251
|
TCloudUiAccordionModule,
|
|
4252
|
+
TCloudUiDatepickerModule,
|
|
4253
|
+
TCloudUiDatepickerTimeModule,
|
|
3468
4254
|
// Directives
|
|
3469
4255
|
TCloudUiDirectiveModule,
|
|
3470
4256
|
// Pipes
|
|
@@ -3483,6 +4269,8 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
3483
4269
|
TCloudUiScrollBoxModule,
|
|
3484
4270
|
TCloudUiFiltersModule,
|
|
3485
4271
|
TCloudUiAccordionModule,
|
|
4272
|
+
TCloudUiDatepickerModule,
|
|
4273
|
+
TCloudUiDatepickerTimeModule,
|
|
3486
4274
|
// Directives
|
|
3487
4275
|
TCloudUiDirectiveModule,
|
|
3488
4276
|
// Pipes
|
|
@@ -3506,6 +4294,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3506
4294
|
TCloudUiScrollBoxModule,
|
|
3507
4295
|
TCloudUiFiltersModule,
|
|
3508
4296
|
TCloudUiAccordionModule,
|
|
4297
|
+
TCloudUiDatepickerModule,
|
|
4298
|
+
TCloudUiDatepickerTimeModule,
|
|
3509
4299
|
// Directives
|
|
3510
4300
|
TCloudUiDirectiveModule,
|
|
3511
4301
|
// Pipes
|
|
@@ -3527,6 +4317,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3527
4317
|
TCloudUiScrollBoxModule,
|
|
3528
4318
|
TCloudUiFiltersModule,
|
|
3529
4319
|
TCloudUiAccordionModule,
|
|
4320
|
+
TCloudUiDatepickerModule,
|
|
4321
|
+
TCloudUiDatepickerTimeModule,
|
|
3530
4322
|
// Directives
|
|
3531
4323
|
TCloudUiDirectiveModule,
|
|
3532
4324
|
// Pipes
|
|
@@ -3547,5 +4339,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3547
4339
|
* Generated bundle index. Do not edit.
|
|
3548
4340
|
*/
|
|
3549
4341
|
|
|
3550
|
-
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
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 };
|
|
3551
4343
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|