@dev-tcloud/tcloud-ui 0.0.8 → 0.0.10
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 +8 -1
- package/esm2020/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.component.mjs +88 -0
- package/esm2020/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.module.mjs +31 -0
- package/esm2020/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.component.mjs +65 -0
- package/esm2020/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.module.mjs +31 -0
- package/esm2020/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.mjs +2 -4
- package/esm2020/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.mjs +29 -2
- package/esm2020/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.component.mjs +20 -0
- package/esm2020/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.module.mjs +24 -0
- package/esm2020/lib/_pipes/tcloud-pipes.module.mjs +7 -3
- package/esm2020/lib/_services/loading-transitions.service.mjs +51 -0
- package/esm2020/lib/_services/search-in-object.service.mjs +91 -0
- package/esm2020/lib/tcloud-ui.module.mjs +33 -3
- package/esm2020/public-api.mjs +13 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +689 -267
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +689 -267
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.component.d.ts +27 -0
- package/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.module.d.ts +9 -0
- package/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.component.d.ts +28 -0
- package/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.module.d.ts +9 -0
- package/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.d.ts +31 -0
- package/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.component.d.ts +8 -0
- package/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.module.d.ts +8 -0
- package/lib/_pipes/tcloud-pipes.module.d.ts +1 -1
- package/lib/_services/loading-transitions.service.d.ts +16 -0
- package/lib/_services/search-in-object.service.d.ts +18 -0
- package/lib/tcloud-ui.module.d.ts +6 -3
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, Injectable, EventEmitter, Output, ViewChild, forwardRef, Directive, HostListener
|
|
2
|
+
import { Component, Input, NgModule, Injectable, EventEmitter, Output, ViewChild, forwardRef, Pipe, Directive, HostListener } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { Buffer } from 'buffer';
|
|
4
|
+
import { CommonModule, DatePipe } from '@angular/common';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
import * as i1$1 from '@angular/router';
|
|
8
7
|
import * as i2 from '@angular/forms';
|
|
@@ -11,7 +10,7 @@ import { trigger, state, style, transition, animate } from '@angular/animations'
|
|
|
11
10
|
|
|
12
11
|
class TCloudUiLinhaLogoComponent {
|
|
13
12
|
constructor() {
|
|
14
|
-
this.server = '
|
|
13
|
+
this.server = 'https://ateleia-email.s3-sa-east-1.amazonaws.com/';
|
|
15
14
|
this.product = '';
|
|
16
15
|
this.logo_name = '';
|
|
17
16
|
this.product_name = '';
|
|
@@ -19,7 +18,6 @@ class TCloudUiLinhaLogoComponent {
|
|
|
19
18
|
this.font_size = '';
|
|
20
19
|
}
|
|
21
20
|
ngOnInit() {
|
|
22
|
-
this.server = Buffer.from(this.server, 'base64').toString('utf8');
|
|
23
21
|
this.logo_name = this.getLogoName();
|
|
24
22
|
this.product_name = this.getProductName();
|
|
25
23
|
this.alt_product_name = (this.product_name).toUpperCase();
|
|
@@ -495,13 +493,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
495
493
|
class TCloudUiModalComponent {
|
|
496
494
|
constructor(tcloudModalService) {
|
|
497
495
|
this.tcloudModalService = tcloudModalService;
|
|
496
|
+
/**
|
|
497
|
+
* tcloud-ui-modal - Cria e exibe um modal
|
|
498
|
+
*
|
|
499
|
+
* toAction - (toAction) - Resultado do evento - 'confirmed'|'cancel'|'close'
|
|
500
|
+
* toConfirm - (toConfirm) - Indica que a ação foi confirmada - resultado true
|
|
501
|
+
* toCancel - (toCancel() - Indica que a ação foi cancelada - resultado false
|
|
502
|
+
*/
|
|
498
503
|
this.param_confirm = {};
|
|
499
504
|
/* BEGIN - Parametros para modo confirmacao */
|
|
500
505
|
this._confirm = false;
|
|
501
506
|
this._confirmText = 'Confirmo';
|
|
507
|
+
/**
|
|
508
|
+
* autoClose boolean - Indica se deverá ser fechado quando confirmar uma ação - default true
|
|
509
|
+
*/
|
|
502
510
|
this.autoClose = true;
|
|
511
|
+
/**
|
|
512
|
+
* maxWidth - number - Largura máxima do modal - default 500px
|
|
513
|
+
*/
|
|
503
514
|
this.maxWidth = 500;
|
|
504
|
-
// psg
|
|
505
515
|
this._open = false;
|
|
506
516
|
this._loading = false;
|
|
507
517
|
this.openChange = new EventEmitter();
|
|
@@ -509,16 +519,25 @@ class TCloudUiModalComponent {
|
|
|
509
519
|
this.toCancel = new EventEmitter();
|
|
510
520
|
this.toAction = new EventEmitter();
|
|
511
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* confirm boolean - Indica se será um modal do tipo confirmação - default false
|
|
524
|
+
*/
|
|
512
525
|
set confirm(v) {
|
|
513
526
|
this._confirm = v;
|
|
514
527
|
this.param_confirm.confirm = this._confirm;
|
|
515
528
|
this.param_confirm.confirmText = this._confirmText;
|
|
516
529
|
}
|
|
530
|
+
/**
|
|
531
|
+
* confirmText string - Texto que deverá ser digitado - defualt Confirmo
|
|
532
|
+
*/
|
|
517
533
|
set confirmText(v) {
|
|
518
534
|
this._confirmText = v;
|
|
519
535
|
this.param_confirm.confirmText = this._confirmText;
|
|
520
536
|
this.param_confirm.confirm = this._confirm;
|
|
521
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* window - string - nome referente ao tamanho do modal - não utilizar maxWidth se for utilizar window - default 500 (medium)
|
|
540
|
+
*/
|
|
522
541
|
set window(size) {
|
|
523
542
|
switch (size) {
|
|
524
543
|
case 'small':
|
|
@@ -538,11 +557,17 @@ class TCloudUiModalComponent {
|
|
|
538
557
|
break;
|
|
539
558
|
}
|
|
540
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* open - boolean - Variável de controle para exibição do modal - obrigatório
|
|
562
|
+
*/
|
|
541
563
|
set open(open) {
|
|
542
564
|
this._open = open;
|
|
543
565
|
this.fixed_body((open) ? 'on' : 'off');
|
|
544
566
|
}
|
|
545
567
|
get open() { return this._open; }
|
|
568
|
+
/**
|
|
569
|
+
* loading - boolean - Coloca o modal em modo de carregamento - default false
|
|
570
|
+
*/
|
|
546
571
|
set loading(loading) {
|
|
547
572
|
this._loading = loading;
|
|
548
573
|
this.tcloudModalService.setLoading(loading);
|
|
@@ -1001,12 +1026,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1001
1026
|
type: Injectable
|
|
1002
1027
|
}] });
|
|
1003
1028
|
|
|
1004
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1029
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
1005
1030
|
provide: NG_VALUE_ACCESSOR,
|
|
1006
1031
|
useExisting: forwardRef(() => TCloudUiDataListComponent),
|
|
1007
1032
|
multi: true
|
|
1008
1033
|
};
|
|
1009
|
-
const noop = () => {
|
|
1034
|
+
const noop$1 = () => {
|
|
1010
1035
|
};
|
|
1011
1036
|
class TCloudUiDataListComponent {
|
|
1012
1037
|
constructor(dataListService, formBuilder) {
|
|
@@ -1029,8 +1054,8 @@ class TCloudUiDataListComponent {
|
|
|
1029
1054
|
this.id = '';
|
|
1030
1055
|
//Placeholders for the callbacks which are later providesd
|
|
1031
1056
|
//by the Control Value Accessor
|
|
1032
|
-
this.onTouchedCallback = noop;
|
|
1033
|
-
this.onChangeCallback = noop;
|
|
1057
|
+
this.onTouchedCallback = noop$1;
|
|
1058
|
+
this.onChangeCallback = noop$1;
|
|
1034
1059
|
}
|
|
1035
1060
|
set disabled(v) {
|
|
1036
1061
|
this._disabled = v;
|
|
@@ -1224,13 +1249,13 @@ class TCloudUiDataListComponent {
|
|
|
1224
1249
|
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 });
|
|
1225
1250
|
TCloudUiDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiDataListComponent, selector: "tcloud-ui-data-list", inputs: { placeholder: "placeholder", disabled: "disabled", loading: "loading", search: "search", ngModel: "ngModel" }, outputs: { onInputChange: "onInputChange", onChange: "onChange" }, providers: [
|
|
1226
1251
|
DataListService,
|
|
1227
|
-
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
|
|
1252
|
+
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1
|
|
1228
1253
|
], ngImport: i0, template: "<div *ngIf=\"formulario\" id=\"area-{{ id }}\" class=\"tc-dropdown\" [class.disabled]=\"disabled || loading\">\r\n <div *ngIf=\"loading\" class=\"loading-area\">\r\n <i class=\"fas fa-spinner fa-spin\"></i>\r\n </div>\r\n <!-- [attr.data-bs-toggle]=\"'dropdown'\" -->\r\n <button \r\n [class.loading-box]=\"loading\"\r\n [disabled]=\"disabled || loading\"\r\n class=\"dropdown-toggle button-select\" \r\n type=\"button\" \r\n id=\"{{ id }}\" \r\n \r\n [attr.aria-haspopup]=\"'true'\" \r\n [attr.aria-expanded]=\"'false'\" \r\n (click)=\"toOpen()\" >\r\n\r\n <i *ngIf=\"(selected_description === undefined || selected_description === null || selected_description === '' ) && !loading \">{{ placeholder }}</i>\r\n {{ selected_description }}\r\n <span><i class=\"fas fa-angle-down\"></i></span>\r\n </button>\r\n <div class=\"tc-dropdown-menu {{ menu_on_top }}\" id=\"box-{{ id }}\" [attr.aria-labelledby]=\"id\" [class.to-hide]=\"!menu_show\" [style]=\"box_style\">\r\n\r\n <div class=\"line-search\" *ngIf=\"search\">\r\n <table class=\"box-search\">\r\n <tr>\r\n\r\n <td class=\"area-input\">\r\n <input type=\"text\" [(ngModel)]=\"search_text\" (input)=\"toSearch($event)\" placeholder=\"Buscar...\" > \r\n </td>\r\n\r\n <td class=\"area-icon\">\r\n <i *ngIf=\"search_text === ''\" class=\"fas fa-search icon-search\"></i>\r\n <button type=\"button\" *ngIf=\"search_text !== ''\" (click)=\"clearTextSearch()\"><i class=\"fas fa-times\"></i></button>\r\n </td>\r\n \r\n </tr>\r\n </table>\r\n </div>\r\n \r\n <div class=\"area-options\" id=\"{{ id }}-options\" (click)=\"toClose()\">\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"formulario\">\r\n <form [formGroup]=\"formulario\" style=\"display: none;\" >\r\n <input id=\"{{ id }}-hidden\" formControlName=\"selected_item\" type=\"hidden\">\r\n </form>\r\n</div>", styles: [".dropdown-toggle:after{display:none!important}.tc-dropdown{position:relative}.tc-dropdown .button-select{width:100%;background-color:#fff;border:1px solid #ccc;height:35px;text-align:left;padding-left:15px;font-size:14px;color:#666}.tc-dropdown .button-select span{position:absolute;right:6px;top:7px}.tc-dropdown .tc-dropdown-menu{width:100%;border:1px solid #ccc;background-color:#fff}.tc-dropdown .area-options{max-height:200px;overflow-y:scroll;overflow-x:hidden}.tc-dropdown .menu-on-top{position:absolute}.line-search{padding:3px}.line-search .box-search{width:100%;border-collapse:collapse}.line-search .box-search td.area-icon{padding:4px 0 2px 8px;width:35px}.line-search .box-search td.area-icon .icon-search{color:#666}.line-search .box-search td.area-icon button{border:none;background-color:transparent;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.line-search .box-search td.area-input{border:none}.line-search .box-search td.area-input input{width:100%}.line-search .box-search input{width:100%;font-size:13px;height:33px;border:1px solid #ccc;padding:10px}.loading-area{line-height:0;position:relative;height:0;bottom:-10px;left:10px}button:disabled{background-color:#eee!important;border:1px solid #ececec!important;cursor:not-allowed}.loading-box{cursor:progress!important}.disabled i{color:#999!important}.to-hide{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] });
|
|
1229
1254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDataListComponent, decorators: [{
|
|
1230
1255
|
type: Component,
|
|
1231
1256
|
args: [{ selector: 'tcloud-ui-data-list', providers: [
|
|
1232
1257
|
DataListService,
|
|
1233
|
-
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
|
|
1258
|
+
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1
|
|
1234
1259
|
], template: "<div *ngIf=\"formulario\" id=\"area-{{ id }}\" class=\"tc-dropdown\" [class.disabled]=\"disabled || loading\">\r\n <div *ngIf=\"loading\" class=\"loading-area\">\r\n <i class=\"fas fa-spinner fa-spin\"></i>\r\n </div>\r\n <!-- [attr.data-bs-toggle]=\"'dropdown'\" -->\r\n <button \r\n [class.loading-box]=\"loading\"\r\n [disabled]=\"disabled || loading\"\r\n class=\"dropdown-toggle button-select\" \r\n type=\"button\" \r\n id=\"{{ id }}\" \r\n \r\n [attr.aria-haspopup]=\"'true'\" \r\n [attr.aria-expanded]=\"'false'\" \r\n (click)=\"toOpen()\" >\r\n\r\n <i *ngIf=\"(selected_description === undefined || selected_description === null || selected_description === '' ) && !loading \">{{ placeholder }}</i>\r\n {{ selected_description }}\r\n <span><i class=\"fas fa-angle-down\"></i></span>\r\n </button>\r\n <div class=\"tc-dropdown-menu {{ menu_on_top }}\" id=\"box-{{ id }}\" [attr.aria-labelledby]=\"id\" [class.to-hide]=\"!menu_show\" [style]=\"box_style\">\r\n\r\n <div class=\"line-search\" *ngIf=\"search\">\r\n <table class=\"box-search\">\r\n <tr>\r\n\r\n <td class=\"area-input\">\r\n <input type=\"text\" [(ngModel)]=\"search_text\" (input)=\"toSearch($event)\" placeholder=\"Buscar...\" > \r\n </td>\r\n\r\n <td class=\"area-icon\">\r\n <i *ngIf=\"search_text === ''\" class=\"fas fa-search icon-search\"></i>\r\n <button type=\"button\" *ngIf=\"search_text !== ''\" (click)=\"clearTextSearch()\"><i class=\"fas fa-times\"></i></button>\r\n </td>\r\n \r\n </tr>\r\n </table>\r\n </div>\r\n \r\n <div class=\"area-options\" id=\"{{ id }}-options\" (click)=\"toClose()\">\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"formulario\">\r\n <form [formGroup]=\"formulario\" style=\"display: none;\" >\r\n <input id=\"{{ id }}-hidden\" formControlName=\"selected_item\" type=\"hidden\">\r\n </form>\r\n</div>", styles: [".dropdown-toggle:after{display:none!important}.tc-dropdown{position:relative}.tc-dropdown .button-select{width:100%;background-color:#fff;border:1px solid #ccc;height:35px;text-align:left;padding-left:15px;font-size:14px;color:#666}.tc-dropdown .button-select span{position:absolute;right:6px;top:7px}.tc-dropdown .tc-dropdown-menu{width:100%;border:1px solid #ccc;background-color:#fff}.tc-dropdown .area-options{max-height:200px;overflow-y:scroll;overflow-x:hidden}.tc-dropdown .menu-on-top{position:absolute}.line-search{padding:3px}.line-search .box-search{width:100%;border-collapse:collapse}.line-search .box-search td.area-icon{padding:4px 0 2px 8px;width:35px}.line-search .box-search td.area-icon .icon-search{color:#666}.line-search .box-search td.area-icon button{border:none;background-color:transparent;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.line-search .box-search td.area-input{border:none}.line-search .box-search td.area-input input{width:100%}.line-search .box-search input{width:100%;font-size:13px;height:33px;border:1px solid #ccc;padding:10px}.loading-area{line-height:0;position:relative;height:0;bottom:-10px;left:10px}button:disabled{background-color:#eee!important;border:1px solid #ececec!important;cursor:not-allowed}.loading-box{cursor:progress!important}.disabled i{color:#999!important}.to-hide{display:none}\n"] }]
|
|
1235
1260
|
}], ctorParameters: function () { return [{ type: DataListService }, { type: i2.FormBuilder }]; }, propDecorators: { placeholder: [{
|
|
1236
1261
|
type: Input
|
|
@@ -1335,202 +1360,227 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1335
1360
|
}]
|
|
1336
1361
|
}] });
|
|
1337
1362
|
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
this.
|
|
1348
|
-
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
const el = this.getElement();
|
|
1359
|
-
el.style.display = 'inline';
|
|
1360
|
-
setTimeout(() => {
|
|
1361
|
-
var _a;
|
|
1362
|
-
this.el_height = this.el.nativeElement.offsetHeight;
|
|
1363
|
-
this.el_width = this.el.nativeElement.offsetWidth;
|
|
1364
|
-
this.el_center = this.el_width / 2;
|
|
1365
|
-
const rect = (_a = this.el.nativeElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
1366
|
-
this.el_position = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
|
|
1367
|
-
// console.log('this.el_width', this.el_width);
|
|
1368
|
-
// console.log('this.el_center', this.el_center);
|
|
1369
|
-
// console.log('this.el_position', this.el_position);
|
|
1370
|
-
this.target_height = el.offsetHeight;
|
|
1371
|
-
this.target_width = el.offsetWidth;
|
|
1372
|
-
this.target_center = this.target_width / 2;
|
|
1373
|
-
// console.log('target_heigth', this.target_height);
|
|
1374
|
-
// console.log('target_width', this.target_width);
|
|
1375
|
-
// console.log('target_center', this.target_center);
|
|
1376
|
-
// this.renderer.setStyle(el, 'bottom', `${this.el_position}px`);
|
|
1377
|
-
switch (this._direction) {
|
|
1378
|
-
case 'top':
|
|
1379
|
-
this.to_top(el);
|
|
1380
|
-
break;
|
|
1381
|
-
case 'bottom':
|
|
1382
|
-
this.to_bottom(el);
|
|
1383
|
-
break;
|
|
1384
|
-
case 'left':
|
|
1385
|
-
this.to_left(el);
|
|
1386
|
-
break;
|
|
1387
|
-
case 'right':
|
|
1388
|
-
this.to_right(el);
|
|
1389
|
-
break;
|
|
1390
|
-
}
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
onMouseOut() {
|
|
1395
|
-
if (this.getElement()) {
|
|
1396
|
-
const el = this.getElement();
|
|
1397
|
-
el.style.display = 'none';
|
|
1398
|
-
this.renderer.removeClass(this.el.nativeElement, 'main-tooltip');
|
|
1399
|
-
}
|
|
1363
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1364
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1365
|
+
useExisting: forwardRef(() => TCloudUiChoiceIssuesComponent),
|
|
1366
|
+
multi: true
|
|
1367
|
+
};
|
|
1368
|
+
const noop = () => {
|
|
1369
|
+
};
|
|
1370
|
+
class TCloudUiChoiceIssuesComponent {
|
|
1371
|
+
constructor() {
|
|
1372
|
+
this.view = false;
|
|
1373
|
+
this.titulo = '';
|
|
1374
|
+
this.subTitulo = '';
|
|
1375
|
+
this.disabled = false;
|
|
1376
|
+
this.onChange = new EventEmitter();
|
|
1377
|
+
this.innerValue = false;
|
|
1378
|
+
//Placeholders for the callbacks which are later providesd
|
|
1379
|
+
//by the Control Value Accessor
|
|
1380
|
+
this.onTouchedCallback = noop;
|
|
1381
|
+
this.onChangeCallback = noop;
|
|
1382
|
+
this.ID = 'tc-issue-' + Math.random().toString(36).substr(2, 9);
|
|
1400
1383
|
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
}
|
|
1384
|
+
//get accessor
|
|
1385
|
+
get value() {
|
|
1386
|
+
return this.innerValue;
|
|
1405
1387
|
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1388
|
+
;
|
|
1389
|
+
//set accessor including call the onchange callback
|
|
1390
|
+
set value(v) {
|
|
1391
|
+
if (v !== this.innerValue) {
|
|
1392
|
+
this.innerValue = v;
|
|
1393
|
+
this.onChangeCallback(v);
|
|
1409
1394
|
}
|
|
1410
1395
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
return `tc-tooltip-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
|
|
1415
|
-
}
|
|
1416
|
-
getElement() {
|
|
1417
|
-
return document.getElementById(this.ID) || undefined;
|
|
1396
|
+
//Set touched on blur
|
|
1397
|
+
onBlur() {
|
|
1398
|
+
this.onTouchedCallback();
|
|
1418
1399
|
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
this.
|
|
1422
|
-
|
|
1423
|
-
this.main_el = el;
|
|
1424
|
-
if (el) {
|
|
1425
|
-
this.create_tooltip(tooltip, el);
|
|
1426
|
-
}
|
|
1427
|
-
else {
|
|
1428
|
-
console.log("TCL: tooltip -> el", this.el.nativeElement);
|
|
1400
|
+
//From ControlValueAccessor interface
|
|
1401
|
+
writeValue(value) {
|
|
1402
|
+
if (value !== this.innerValue) {
|
|
1403
|
+
this.innerValue = value;
|
|
1429
1404
|
}
|
|
1430
1405
|
}
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
}
|
|
1435
|
-
create_tooltip(tip, el) {
|
|
1436
|
-
this.setStyle(el);
|
|
1437
|
-
const tooltip = document.createElement("div");
|
|
1438
|
-
tooltip.setAttribute('id', this.ID);
|
|
1439
|
-
tooltip.setAttribute('style', `
|
|
1440
|
-
position: absolute;
|
|
1441
|
-
display: none;
|
|
1442
|
-
padding: 10px;
|
|
1443
|
-
border-radius: 10px;
|
|
1444
|
-
text-align: center;
|
|
1445
|
-
width: max-content;
|
|
1446
|
-
max-width: 250px;
|
|
1447
|
-
background-color: transparent;
|
|
1448
|
-
color: transparent;
|
|
1449
|
-
z-index: 1090;
|
|
1450
|
-
bottom: ${this.el_position}px;
|
|
1451
|
-
left: ${this.target_center}px;
|
|
1452
|
-
`);
|
|
1453
|
-
tooltip.innerHTML = tip;
|
|
1454
|
-
el.insertBefore(tooltip, null);
|
|
1455
|
-
}
|
|
1456
|
-
to_top(el) {
|
|
1457
|
-
const pos = this.el_center - (this.target_center);
|
|
1458
|
-
this.renderer.setStyle(el, 'left', `${(pos)}px`);
|
|
1459
|
-
this.renderer.setStyle(el, 'bottom', `${(this.el_height + 7)}px`);
|
|
1460
|
-
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
|
|
1406
|
+
//From ControlValueAccessor interface
|
|
1407
|
+
registerOnChange(fn) {
|
|
1408
|
+
this.onChangeCallback = fn;
|
|
1461
1409
|
}
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
this.
|
|
1465
|
-
this.renderer.setStyle(el, 'bottom', `-${(this.target_height + 7)}px`);
|
|
1466
|
-
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-bottom');
|
|
1410
|
+
//From ControlValueAccessor interface
|
|
1411
|
+
registerOnTouched(fn) {
|
|
1412
|
+
this.onTouchedCallback = fn;
|
|
1467
1413
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1472
|
-
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-right');
|
|
1414
|
+
setV(v) {
|
|
1415
|
+
console.log('setV', v);
|
|
1416
|
+
this.value = v;
|
|
1417
|
+
this.onChange.emit(v);
|
|
1473
1418
|
}
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1419
|
+
createID() {
|
|
1420
|
+
// Math.random should be unique because of its seeding algorithm.
|
|
1421
|
+
// Convert it to base 36 (numbers + letters), and grab the first 9 characters
|
|
1422
|
+
// after the decimal.
|
|
1423
|
+
return '_' + Math.random().toString(36).substr(2, 9);
|
|
1479
1424
|
}
|
|
1480
1425
|
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
1484
|
-
type:
|
|
1485
|
-
args: [{
|
|
1486
|
-
|
|
1487
|
-
}]
|
|
1488
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
|
|
1489
|
-
type: HostListener,
|
|
1490
|
-
args: ['mouseover']
|
|
1491
|
-
}], onMouseOut: [{
|
|
1492
|
-
type: HostListener,
|
|
1493
|
-
args: ['mouseout']
|
|
1494
|
-
}], TCtooltip: [{
|
|
1426
|
+
TCloudUiChoiceIssuesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1427
|
+
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], 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}.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"] }] });
|
|
1428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesComponent, decorators: [{
|
|
1429
|
+
type: Component,
|
|
1430
|
+
args: [{ selector: 'tcloud-ui-choice-issues', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], 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}.view,.view label{cursor:inherit!important}.disabled{background-color:#8fdfe8!important}\n"] }]
|
|
1431
|
+
}], ctorParameters: function () { return []; }, propDecorators: { view: [{
|
|
1495
1432
|
type: Input
|
|
1496
|
-
}],
|
|
1433
|
+
}], titulo: [{
|
|
1434
|
+
type: Input
|
|
1435
|
+
}], subTitulo: [{
|
|
1436
|
+
type: Input
|
|
1437
|
+
}], disabled: [{
|
|
1497
1438
|
type: Input
|
|
1439
|
+
}], onChange: [{
|
|
1440
|
+
type: Output
|
|
1441
|
+
}], inputRef: [{
|
|
1442
|
+
type: ViewChild,
|
|
1443
|
+
args: ['campo', { read: true, static: false }]
|
|
1498
1444
|
}] } });
|
|
1499
1445
|
|
|
1500
|
-
class
|
|
1446
|
+
class TCloudUiChoiceIssuesModule {
|
|
1501
1447
|
}
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1448
|
+
TCloudUiChoiceIssuesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1449
|
+
TCloudUiChoiceIssuesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesModule, declarations: [TCloudUiChoiceIssuesComponent], imports: [CommonModule,
|
|
1450
|
+
FormsModule,
|
|
1451
|
+
ReactiveFormsModule], exports: [TCloudUiChoiceIssuesComponent] });
|
|
1452
|
+
TCloudUiChoiceIssuesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesModule, imports: [CommonModule,
|
|
1453
|
+
FormsModule,
|
|
1454
|
+
ReactiveFormsModule] });
|
|
1455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiChoiceIssuesModule, decorators: [{
|
|
1506
1456
|
type: NgModule,
|
|
1507
1457
|
args: [{
|
|
1508
|
-
declarations: [
|
|
1509
|
-
|
|
1458
|
+
declarations: [
|
|
1459
|
+
TCloudUiChoiceIssuesComponent,
|
|
1460
|
+
],
|
|
1461
|
+
exports: [
|
|
1462
|
+
TCloudUiChoiceIssuesComponent,
|
|
1463
|
+
],
|
|
1464
|
+
imports: [
|
|
1465
|
+
CommonModule,
|
|
1466
|
+
FormsModule,
|
|
1467
|
+
ReactiveFormsModule
|
|
1468
|
+
]
|
|
1510
1469
|
}]
|
|
1511
1470
|
}] });
|
|
1512
1471
|
|
|
1513
|
-
class
|
|
1472
|
+
class TCloudUiMultiInputComponent {
|
|
1514
1473
|
constructor() {
|
|
1515
|
-
this.
|
|
1474
|
+
this.placeholder = '';
|
|
1475
|
+
this.disabled = false;
|
|
1476
|
+
this.loading = false;
|
|
1477
|
+
this.count_actives = 0;
|
|
1478
|
+
this.tcChange = new EventEmitter();
|
|
1516
1479
|
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1480
|
+
ngOnInit() {
|
|
1481
|
+
setTimeout(() => {
|
|
1482
|
+
this.toChange();
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
addItem(item) {
|
|
1486
|
+
if (this.disabled) {
|
|
1487
|
+
return;
|
|
1488
|
+
}
|
|
1489
|
+
if (!this.tcList) {
|
|
1490
|
+
this.tcList = [];
|
|
1491
|
+
}
|
|
1492
|
+
(this.tcList).push({ value: item });
|
|
1493
|
+
this.toChange();
|
|
1494
|
+
this.input_value = '';
|
|
1495
|
+
}
|
|
1496
|
+
removeItem(item, index) {
|
|
1497
|
+
if (this.disabled) {
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1500
|
+
if (this.tcList) {
|
|
1501
|
+
for (let i = 0; i < (this.tcList).length; i++) {
|
|
1502
|
+
const row = this.tcList[i];
|
|
1503
|
+
if (item === row.value && i === index) {
|
|
1504
|
+
(this.tcList).splice(index, 1);
|
|
1505
|
+
break;
|
|
1506
|
+
}
|
|
1524
1507
|
}
|
|
1508
|
+
this.toChange();
|
|
1525
1509
|
}
|
|
1526
|
-
return '';
|
|
1527
1510
|
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1511
|
+
toChange() {
|
|
1512
|
+
let count_actives = 0;
|
|
1513
|
+
let itens = [];
|
|
1514
|
+
if (this.tcList) {
|
|
1515
|
+
for (let i = 0; i < (this.tcList).length; i++) {
|
|
1516
|
+
const row = this.tcList[i];
|
|
1517
|
+
(itens).push(row);
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
this.count_actives = count_actives;
|
|
1521
|
+
this.tcChange.emit(itens);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
TCloudUiMultiInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1525
|
+
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" }, outputs: { tcChange: "tcChange" }, ngImport: i0, template: "<div>\n <form #_formulario=\"ngForm\">\n <table>\n <tr *ngIf=\"tcList\">\n <td>\n <input type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\" required>\n </td>\n <td>\n <button\n [disabled]=\"disabled || loading || !_formulario.valid\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value)\"\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\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\">\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)\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n </form>\n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}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: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{display:flex;max-width:220px;height:35px;min-width:100px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{width:8px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputComponent, decorators: [{
|
|
1527
|
+
type: Component,
|
|
1528
|
+
args: [{ selector: 'tcloud-ui-multi-input', template: "<div>\n <form #_formulario=\"ngForm\">\n <table>\n <tr *ngIf=\"tcList\">\n <td>\n <input type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\" required>\n </td>\n <td>\n <button\n [disabled]=\"disabled || loading || !_formulario.valid\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value)\"\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\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\">\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)\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n </form>\n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}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: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{display:flex;max-width:220px;height:35px;min-width:100px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{width:8px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}\n"] }]
|
|
1529
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
|
|
1530
|
+
type: Input
|
|
1531
|
+
}], placeholder: [{
|
|
1532
|
+
type: Input
|
|
1533
|
+
}], disabled: [{
|
|
1534
|
+
type: Input
|
|
1535
|
+
}], loading: [{
|
|
1536
|
+
type: Input
|
|
1537
|
+
}], tcChange: [{
|
|
1538
|
+
type: Output
|
|
1539
|
+
}] } });
|
|
1540
|
+
|
|
1541
|
+
class TCloudUiMultiInputModule {
|
|
1542
|
+
}
|
|
1543
|
+
TCloudUiMultiInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1544
|
+
TCloudUiMultiInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, declarations: [TCloudUiMultiInputComponent], imports: [FormsModule,
|
|
1545
|
+
ReactiveFormsModule,
|
|
1546
|
+
CommonModule], exports: [TCloudUiMultiInputComponent] });
|
|
1547
|
+
TCloudUiMultiInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, imports: [FormsModule,
|
|
1548
|
+
ReactiveFormsModule,
|
|
1549
|
+
CommonModule] });
|
|
1550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, decorators: [{
|
|
1551
|
+
type: NgModule,
|
|
1552
|
+
args: [{
|
|
1553
|
+
declarations: [TCloudUiMultiInputComponent],
|
|
1554
|
+
exports: [TCloudUiMultiInputComponent],
|
|
1555
|
+
imports: [
|
|
1556
|
+
FormsModule,
|
|
1557
|
+
ReactiveFormsModule,
|
|
1558
|
+
CommonModule
|
|
1559
|
+
]
|
|
1560
|
+
}]
|
|
1561
|
+
}] });
|
|
1562
|
+
|
|
1563
|
+
class MonthNamePipe {
|
|
1564
|
+
constructor() {
|
|
1565
|
+
this.meses = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezenbro'];
|
|
1566
|
+
}
|
|
1567
|
+
transform(yyyy_mm) {
|
|
1568
|
+
if (yyyy_mm !== '') {
|
|
1569
|
+
let part = (yyyy_mm).split('-');
|
|
1570
|
+
if ((part).length === 2) {
|
|
1571
|
+
let yyyy = +part[0];
|
|
1572
|
+
let mm = +part[1];
|
|
1573
|
+
return this.meses[(mm - 1)];
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
return '';
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
MonthNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1580
|
+
MonthNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: MonthNamePipe, name: "monthname" });
|
|
1581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MonthNamePipe, decorators: [{
|
|
1582
|
+
type: Pipe,
|
|
1583
|
+
args: [{ name: 'monthname' }]
|
|
1534
1584
|
}] });
|
|
1535
1585
|
|
|
1536
1586
|
class StatusInfoPipe {
|
|
@@ -1745,17 +1795,404 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1745
1795
|
args: [{ name: 'cpf' }]
|
|
1746
1796
|
}] });
|
|
1747
1797
|
|
|
1798
|
+
class TCloudUiSearchInObjectService {
|
|
1799
|
+
constructor(datepipe, statusinfo) {
|
|
1800
|
+
this.datepipe = datepipe;
|
|
1801
|
+
this.statusinfo = statusinfo;
|
|
1802
|
+
}
|
|
1803
|
+
isADate(d) {
|
|
1804
|
+
if (Object.prototype.toString.call(d) === "[object Date]") {
|
|
1805
|
+
;
|
|
1806
|
+
if (isNaN(d.getTime())) {
|
|
1807
|
+
return false;
|
|
1808
|
+
}
|
|
1809
|
+
else {
|
|
1810
|
+
return true;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
return false;
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* meet - Procura em object - filtro utilizado para busca em tabelas
|
|
1817
|
+
* @param valor texto a ser procurado
|
|
1818
|
+
* @param emObject object alvo de onde procurar
|
|
1819
|
+
* @param camposDebusca (Opcional) informa em quais são as keys que deverá procurar
|
|
1820
|
+
*/
|
|
1821
|
+
meet(valor, emObject, camposDebusca) {
|
|
1822
|
+
if (valor != "") {
|
|
1823
|
+
if (emObject.length < 1) {
|
|
1824
|
+
return emObject;
|
|
1825
|
+
}
|
|
1826
|
+
if (camposDebusca === undefined || camposDebusca === null) {
|
|
1827
|
+
camposDebusca = [];
|
|
1828
|
+
for (const key in emObject[0]) {
|
|
1829
|
+
camposDebusca.push(key);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
if (camposDebusca.length < 1) {
|
|
1833
|
+
return emObject;
|
|
1834
|
+
}
|
|
1835
|
+
valor = valor.toLowerCase();
|
|
1836
|
+
var result = [];
|
|
1837
|
+
for (const key in emObject) {
|
|
1838
|
+
var oObject = emObject[key];
|
|
1839
|
+
if (oObject) {
|
|
1840
|
+
for (const objectvalue of camposDebusca) {
|
|
1841
|
+
const dt = new Date(oObject[objectvalue]);
|
|
1842
|
+
if (this.isADate(dt) && typeof ((dt).getMonth) === 'function') {
|
|
1843
|
+
const data1 = this.datepipe.transform(dt, 'dd/MM/yyyy hh:mm');
|
|
1844
|
+
const data2 = this.datepipe.transform(dt, 'medium');
|
|
1845
|
+
const strToTest = (data1 + " " + data2 + " " + oObject[objectvalue]).toLowerCase();
|
|
1846
|
+
if ((strToTest.indexOf(valor) >= 0) && (result).indexOf(oObject) == -1) {
|
|
1847
|
+
result.push(oObject);
|
|
1848
|
+
break;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
else {
|
|
1852
|
+
const strToTest = (this.statusinfo.transform(oObject[objectvalue], 'ALL') + "").toLowerCase();
|
|
1853
|
+
if ((strToTest.indexOf(valor) >= 0) && (result).indexOf(oObject) == -1) {
|
|
1854
|
+
result.push(oObject);
|
|
1855
|
+
break;
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
if (emObject && typeof emObject === 'object' && Array.isArray(emObject)) {
|
|
1862
|
+
// is array
|
|
1863
|
+
const v = (`${valor}`).toUpperCase();
|
|
1864
|
+
for (let i = 0; i < (emObject).length; i++) {
|
|
1865
|
+
const item = (`${emObject[i]}`).toUpperCase();
|
|
1866
|
+
if (item.includes(v) || item === v) {
|
|
1867
|
+
result.push(emObject[i]);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
return result;
|
|
1872
|
+
}
|
|
1873
|
+
return emObject;
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
TCloudUiSearchInObjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiSearchInObjectService, deps: [{ token: i1.DatePipe }, { token: StatusInfoPipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1877
|
+
TCloudUiSearchInObjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiSearchInObjectService, providedIn: 'root' });
|
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiSearchInObjectService, decorators: [{
|
|
1879
|
+
type: Injectable,
|
|
1880
|
+
args: [{
|
|
1881
|
+
providedIn: 'root',
|
|
1882
|
+
}]
|
|
1883
|
+
}], ctorParameters: function () { return [{ type: i1.DatePipe }, { type: StatusInfoPipe }]; } });
|
|
1884
|
+
|
|
1885
|
+
class TCloudUiInputSearchComponent {
|
|
1886
|
+
constructor(searchInObjectService) {
|
|
1887
|
+
this.searchInObjectService = searchInObjectService;
|
|
1888
|
+
/**
|
|
1889
|
+
* tcloud-ui-input-search - Procura pelo valor informado no objeto indicado
|
|
1890
|
+
* @param placeholder string - placeholder no input
|
|
1891
|
+
* @param mirror boolean - Exibir os valores espelhados ou somente os valores encontrados
|
|
1892
|
+
* @param base_object object - Objeto onde ser procurado
|
|
1893
|
+
* @param found - Evite o valor encontrado
|
|
1894
|
+
*/
|
|
1895
|
+
this.placeholder = 'Procurar...';
|
|
1896
|
+
this.mirror = true;
|
|
1897
|
+
this.search_text = '';
|
|
1898
|
+
this.found = new EventEmitter();
|
|
1899
|
+
}
|
|
1900
|
+
set base_object(base_object) {
|
|
1901
|
+
if (base_object) {
|
|
1902
|
+
this._base_object = base_object;
|
|
1903
|
+
if (this.mirror) {
|
|
1904
|
+
this.result_object = base_object;
|
|
1905
|
+
this.toFound();
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
get base_object() { return this._base_object; }
|
|
1910
|
+
ngOnInit() {
|
|
1911
|
+
}
|
|
1912
|
+
buscar(value) {
|
|
1913
|
+
this.result_object = this.searchInObjectService.meet(`${value}`, this.base_object);
|
|
1914
|
+
this.toFound();
|
|
1915
|
+
}
|
|
1916
|
+
clean() {
|
|
1917
|
+
if (this.mirror) {
|
|
1918
|
+
this.buscar('');
|
|
1919
|
+
}
|
|
1920
|
+
else {
|
|
1921
|
+
this.result_object = [];
|
|
1922
|
+
this.toFound();
|
|
1923
|
+
}
|
|
1924
|
+
this.search_text = '';
|
|
1925
|
+
}
|
|
1926
|
+
toFound() {
|
|
1927
|
+
this.found.emit(this.result_object);
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
TCloudUiInputSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiInputSearchComponent, deps: [{ token: TCloudUiSearchInObjectService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1931
|
+
TCloudUiInputSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiInputSearchComponent, selector: "tcloud-ui-input-search", inputs: { placeholder: "placeholder", mirror: "mirror", base_object: "base_object" }, outputs: { found: "found" }, ngImport: i0, template: "<table class=\"tc-group-input-table\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td><input [(ngModel)]=\"search_text\" type=\"text\" (keyup)=\"buscar(search_text)\" placeholder=\"{{ placeholder }}\" ></td>\n <td> \n <ng-container *ngIf=\"search_text === ''\"> \n <button type=\"button\" (click)=\"buscar(search_text)\"><i class=\"fas fa-search\"></i></button>\n </ng-container> \n\n <ng-container *ngIf=\"search_text !== ''\"> \n <button type=\"button\" (click)=\"clean()\"><i class=\"fas fa-times\"></i></button>\n </ng-container>\n </td>\n </tr>\n</table>", styles: [".tc-group-input-table{width:100%;border-collapse:collapse;border-spacing:0}.tc-group-input-table td{border:none;border-style:hidden;border-spacing:0}.tc-group-input-table td:first-child input{width:100%;height:35px;border:none;border:1px solid #ccc}.tc-group-input-table td:last-child{width:40px}.tc-group-input-table td:last-child button{width:100%;height:35px;border:none;border-radius:0 10px 10px 0;cursor:pointer}\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.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"] }] });
|
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiInputSearchComponent, decorators: [{
|
|
1933
|
+
type: Component,
|
|
1934
|
+
args: [{ selector: 'tcloud-ui-input-search', template: "<table class=\"tc-group-input-table\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td><input [(ngModel)]=\"search_text\" type=\"text\" (keyup)=\"buscar(search_text)\" placeholder=\"{{ placeholder }}\" ></td>\n <td> \n <ng-container *ngIf=\"search_text === ''\"> \n <button type=\"button\" (click)=\"buscar(search_text)\"><i class=\"fas fa-search\"></i></button>\n </ng-container> \n\n <ng-container *ngIf=\"search_text !== ''\"> \n <button type=\"button\" (click)=\"clean()\"><i class=\"fas fa-times\"></i></button>\n </ng-container>\n </td>\n </tr>\n</table>", styles: [".tc-group-input-table{width:100%;border-collapse:collapse;border-spacing:0}.tc-group-input-table td{border:none;border-style:hidden;border-spacing:0}.tc-group-input-table td:first-child input{width:100%;height:35px;border:none;border:1px solid #ccc}.tc-group-input-table td:last-child{width:40px}.tc-group-input-table td:last-child button{width:100%;height:35px;border:none;border-radius:0 10px 10px 0;cursor:pointer}\n"] }]
|
|
1935
|
+
}], ctorParameters: function () { return [{ type: TCloudUiSearchInObjectService }]; }, propDecorators: { placeholder: [{
|
|
1936
|
+
type: Input
|
|
1937
|
+
}], mirror: [{
|
|
1938
|
+
type: Input
|
|
1939
|
+
}], base_object: [{
|
|
1940
|
+
type: Input
|
|
1941
|
+
}], found: [{
|
|
1942
|
+
type: Output
|
|
1943
|
+
}] } });
|
|
1944
|
+
|
|
1945
|
+
class TCloudUiInputSearchModule {
|
|
1946
|
+
}
|
|
1947
|
+
TCloudUiInputSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiInputSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1948
|
+
TCloudUiInputSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiInputSearchModule, declarations: [TCloudUiInputSearchComponent], imports: [CommonModule,
|
|
1949
|
+
FormsModule,
|
|
1950
|
+
ReactiveFormsModule], exports: [TCloudUiInputSearchComponent] });
|
|
1951
|
+
TCloudUiInputSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiInputSearchModule, imports: [CommonModule,
|
|
1952
|
+
FormsModule,
|
|
1953
|
+
ReactiveFormsModule] });
|
|
1954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiInputSearchModule, decorators: [{
|
|
1955
|
+
type: NgModule,
|
|
1956
|
+
args: [{
|
|
1957
|
+
declarations: [
|
|
1958
|
+
TCloudUiInputSearchComponent
|
|
1959
|
+
],
|
|
1960
|
+
exports: [
|
|
1961
|
+
TCloudUiInputSearchComponent
|
|
1962
|
+
],
|
|
1963
|
+
imports: [
|
|
1964
|
+
CommonModule,
|
|
1965
|
+
FormsModule,
|
|
1966
|
+
ReactiveFormsModule
|
|
1967
|
+
]
|
|
1968
|
+
}]
|
|
1969
|
+
}] });
|
|
1970
|
+
|
|
1971
|
+
class TCloudUiNotFoundComponent {
|
|
1972
|
+
constructor() {
|
|
1973
|
+
this.message = 'Nenhum registro encontrado.';
|
|
1974
|
+
this.styleIcon = {};
|
|
1975
|
+
}
|
|
1976
|
+
ngOnInit() {
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
TCloudUiNotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1980
|
+
TCloudUiNotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiNotFoundComponent, selector: "tcloud-ui-not-found", inputs: { message: "message" }, ngImport: i0, template: "<div class=\"tc-container-empty\">\r\n <div class=\"tc-message-empty-icon\">\r\n <i class=\"fas fa-exclamation-triangle\"></i>\r\n </div>\r\n <div *ngIf=\"message !== ''\" class=\"tc-message-empty\" [innerHTML]=\"message\" ></div>\r\n</div>", styles: [".tc-container-empty{margin:15px;text-align:center;border:1px solid rgba(204,204,204,.4392156863);padding:10px;border-radius:5px;background-color:#fff}.tc-container-empty .tc-message-empty-icon i{font-size:25px;color:#c1c1c1}.tc-container-empty .tc-message-empty{margin:15px;font-size:15px;color:#a49d9d}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNotFoundComponent, decorators: [{
|
|
1982
|
+
type: Component,
|
|
1983
|
+
args: [{ selector: 'tcloud-ui-not-found', template: "<div class=\"tc-container-empty\">\r\n <div class=\"tc-message-empty-icon\">\r\n <i class=\"fas fa-exclamation-triangle\"></i>\r\n </div>\r\n <div *ngIf=\"message !== ''\" class=\"tc-message-empty\" [innerHTML]=\"message\" ></div>\r\n</div>", styles: [".tc-container-empty{margin:15px;text-align:center;border:1px solid rgba(204,204,204,.4392156863);padding:10px;border-radius:5px;background-color:#fff}.tc-container-empty .tc-message-empty-icon i{font-size:25px;color:#c1c1c1}.tc-container-empty .tc-message-empty{margin:15px;font-size:15px;color:#a49d9d}\n"] }]
|
|
1984
|
+
}], propDecorators: { message: [{
|
|
1985
|
+
type: Input
|
|
1986
|
+
}] } });
|
|
1987
|
+
|
|
1988
|
+
class TCloudUiNotFoundModule {
|
|
1989
|
+
}
|
|
1990
|
+
TCloudUiNotFoundModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNotFoundModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1991
|
+
TCloudUiNotFoundModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNotFoundModule, declarations: [TCloudUiNotFoundComponent], imports: [CommonModule], exports: [TCloudUiNotFoundComponent] });
|
|
1992
|
+
TCloudUiNotFoundModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNotFoundModule, imports: [CommonModule] });
|
|
1993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNotFoundModule, decorators: [{
|
|
1994
|
+
type: NgModule,
|
|
1995
|
+
args: [{
|
|
1996
|
+
declarations: [
|
|
1997
|
+
TCloudUiNotFoundComponent
|
|
1998
|
+
],
|
|
1999
|
+
imports: [
|
|
2000
|
+
CommonModule,
|
|
2001
|
+
],
|
|
2002
|
+
exports: [
|
|
2003
|
+
TCloudUiNotFoundComponent
|
|
2004
|
+
],
|
|
2005
|
+
}]
|
|
2006
|
+
}] });
|
|
2007
|
+
|
|
2008
|
+
class TCloudUiTooltipDirective {
|
|
2009
|
+
constructor(el, renderer) {
|
|
2010
|
+
this.el = el;
|
|
2011
|
+
this.renderer = renderer;
|
|
2012
|
+
this._direction = 'top';
|
|
2013
|
+
// main
|
|
2014
|
+
this.el_height = 0;
|
|
2015
|
+
this.el_width = 0;
|
|
2016
|
+
this.el_center = 0;
|
|
2017
|
+
this.el_position = 0;
|
|
2018
|
+
// tooltip
|
|
2019
|
+
this.target_height = 0;
|
|
2020
|
+
this.target_width = 0;
|
|
2021
|
+
this.target_center = 0;
|
|
2022
|
+
this.ID = '';
|
|
2023
|
+
this.info_text = '';
|
|
2024
|
+
}
|
|
2025
|
+
onMouseOver() {
|
|
2026
|
+
if (this.getElement()) {
|
|
2027
|
+
this.renderer.addClass(this.el.nativeElement, 'main-tooltip');
|
|
2028
|
+
const el = this.getElement();
|
|
2029
|
+
el.style.display = 'inline';
|
|
2030
|
+
setTimeout(() => {
|
|
2031
|
+
var _a;
|
|
2032
|
+
this.el_height = this.el.nativeElement.offsetHeight;
|
|
2033
|
+
this.el_width = this.el.nativeElement.offsetWidth;
|
|
2034
|
+
this.el_center = this.el_width / 2;
|
|
2035
|
+
const rect = (_a = this.el.nativeElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
2036
|
+
this.el_position = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
|
|
2037
|
+
// console.log('this.el_width', this.el_width);
|
|
2038
|
+
// console.log('this.el_center', this.el_center);
|
|
2039
|
+
// console.log('this.el_position', this.el_position);
|
|
2040
|
+
this.target_height = el.offsetHeight;
|
|
2041
|
+
this.target_width = el.offsetWidth;
|
|
2042
|
+
this.target_center = this.target_width / 2;
|
|
2043
|
+
// console.log('target_heigth', this.target_height);
|
|
2044
|
+
// console.log('target_width', this.target_width);
|
|
2045
|
+
// console.log('target_center', this.target_center);
|
|
2046
|
+
// this.renderer.setStyle(el, 'bottom', `${this.el_position}px`);
|
|
2047
|
+
switch (this._direction) {
|
|
2048
|
+
case 'top':
|
|
2049
|
+
this.to_top(el);
|
|
2050
|
+
break;
|
|
2051
|
+
case 'bottom':
|
|
2052
|
+
this.to_bottom(el);
|
|
2053
|
+
break;
|
|
2054
|
+
case 'left':
|
|
2055
|
+
this.to_left(el);
|
|
2056
|
+
break;
|
|
2057
|
+
case 'right':
|
|
2058
|
+
this.to_right(el);
|
|
2059
|
+
break;
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
onMouseOut() {
|
|
2065
|
+
if (this.getElement()) {
|
|
2066
|
+
const el = this.getElement();
|
|
2067
|
+
el.style.display = 'none';
|
|
2068
|
+
this.renderer.removeClass(this.el.nativeElement, 'main-tooltip');
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
set TCtooltip(tooltip) {
|
|
2072
|
+
if (tooltip) {
|
|
2073
|
+
this.check(tooltip);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
set TCdirection(direction) {
|
|
2077
|
+
if (direction) {
|
|
2078
|
+
this._direction = direction;
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
ngOnInit() {
|
|
2082
|
+
}
|
|
2083
|
+
generateID() {
|
|
2084
|
+
return `tc-tooltip-${Math.floor(Math.random() * Math.floor(Math.random() * Date.now()))}`;
|
|
2085
|
+
}
|
|
2086
|
+
getElement() {
|
|
2087
|
+
return document.getElementById(this.ID) || undefined;
|
|
2088
|
+
}
|
|
2089
|
+
check(tooltip) {
|
|
2090
|
+
this.ID = this.generateID();
|
|
2091
|
+
this.info_text = tooltip;
|
|
2092
|
+
let el = this.el.nativeElement;
|
|
2093
|
+
this.main_el = el;
|
|
2094
|
+
if (el) {
|
|
2095
|
+
this.create_tooltip(tooltip, el);
|
|
2096
|
+
}
|
|
2097
|
+
else {
|
|
2098
|
+
console.log("TCL: tooltip -> el", this.el.nativeElement);
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
setStyle(el) {
|
|
2102
|
+
// this.renderer.setStyle(el, 'position', 'relative');
|
|
2103
|
+
// this.renderer.setStyle(el, 'display', 'inline');
|
|
2104
|
+
}
|
|
2105
|
+
create_tooltip(tip, el) {
|
|
2106
|
+
this.setStyle(el);
|
|
2107
|
+
const tooltip = document.createElement("div");
|
|
2108
|
+
tooltip.setAttribute('id', this.ID);
|
|
2109
|
+
tooltip.setAttribute('style', `
|
|
2110
|
+
position: absolute;
|
|
2111
|
+
display: none;
|
|
2112
|
+
padding: 10px;
|
|
2113
|
+
border-radius: 10px;
|
|
2114
|
+
text-align: center;
|
|
2115
|
+
width: max-content;
|
|
2116
|
+
max-width: 250px;
|
|
2117
|
+
background-color: transparent;
|
|
2118
|
+
color: transparent;
|
|
2119
|
+
z-index: 1090;
|
|
2120
|
+
bottom: ${this.el_position}px;
|
|
2121
|
+
left: ${this.target_center}px;
|
|
2122
|
+
`);
|
|
2123
|
+
tooltip.innerHTML = tip;
|
|
2124
|
+
el.insertBefore(tooltip, null);
|
|
2125
|
+
}
|
|
2126
|
+
to_top(el) {
|
|
2127
|
+
const pos = this.el_center - (this.target_center);
|
|
2128
|
+
this.renderer.setStyle(el, 'left', `${(pos)}px`);
|
|
2129
|
+
this.renderer.setStyle(el, 'bottom', `${(this.el_height + 7)}px`);
|
|
2130
|
+
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
|
|
2131
|
+
}
|
|
2132
|
+
to_bottom(el) {
|
|
2133
|
+
const pos = this.el_center - (this.target_center);
|
|
2134
|
+
this.renderer.setStyle(el, 'left', `${(pos)}px`);
|
|
2135
|
+
this.renderer.setStyle(el, 'bottom', `-${(this.target_height + 7)}px`);
|
|
2136
|
+
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-bottom');
|
|
2137
|
+
}
|
|
2138
|
+
to_right(el) {
|
|
2139
|
+
const pos = this.el_width;
|
|
2140
|
+
this.renderer.setStyle(el, 'left', `${(pos + 11)}px`);
|
|
2141
|
+
this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
|
|
2142
|
+
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-right');
|
|
2143
|
+
}
|
|
2144
|
+
to_left(el) {
|
|
2145
|
+
const pos = -((this.target_width));
|
|
2146
|
+
this.renderer.setStyle(el, 'left', `${(pos - 11)}px`);
|
|
2147
|
+
this.renderer.setStyle(el, 'bottom', `-${(((this.target_height) / 2) - (this.el_height / 2))}px`);
|
|
2148
|
+
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-left');
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
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 });
|
|
2152
|
+
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 });
|
|
2153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTooltipDirective, decorators: [{
|
|
2154
|
+
type: Directive,
|
|
2155
|
+
args: [{
|
|
2156
|
+
selector: '[TCtooltip]'
|
|
2157
|
+
}]
|
|
2158
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onMouseOver: [{
|
|
2159
|
+
type: HostListener,
|
|
2160
|
+
args: ['mouseover']
|
|
2161
|
+
}], onMouseOut: [{
|
|
2162
|
+
type: HostListener,
|
|
2163
|
+
args: ['mouseout']
|
|
2164
|
+
}], TCtooltip: [{
|
|
2165
|
+
type: Input
|
|
2166
|
+
}], TCdirection: [{
|
|
2167
|
+
type: Input
|
|
2168
|
+
}] } });
|
|
2169
|
+
|
|
2170
|
+
class TCloudUiDirectiveModule {
|
|
2171
|
+
}
|
|
2172
|
+
TCloudUiDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2173
|
+
TCloudUiDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, declarations: [TCloudUiTooltipDirective], exports: [TCloudUiTooltipDirective] });
|
|
2174
|
+
TCloudUiDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule });
|
|
2175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, decorators: [{
|
|
2176
|
+
type: NgModule,
|
|
2177
|
+
args: [{
|
|
2178
|
+
declarations: [TCloudUiTooltipDirective],
|
|
2179
|
+
exports: [TCloudUiTooltipDirective],
|
|
2180
|
+
}]
|
|
2181
|
+
}] });
|
|
2182
|
+
|
|
1748
2183
|
class TCloudUiPipesModule {
|
|
1749
2184
|
}
|
|
1750
2185
|
TCloudUiPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1751
2186
|
TCloudUiPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, declarations: [MonthNamePipe,
|
|
1752
2187
|
StatusInfoPipe,
|
|
1753
2188
|
RespectivePipe,
|
|
1754
|
-
CNPJPipe], imports: [CommonModule], exports: [
|
|
2189
|
+
CNPJPipe], imports: [CommonModule], exports: [DatePipe,
|
|
2190
|
+
MonthNamePipe,
|
|
1755
2191
|
StatusInfoPipe,
|
|
1756
2192
|
RespectivePipe,
|
|
1757
2193
|
CNPJPipe] });
|
|
1758
2194
|
TCloudUiPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, providers: [
|
|
2195
|
+
DatePipe,
|
|
1759
2196
|
MonthNamePipe,
|
|
1760
2197
|
StatusInfoPipe,
|
|
1761
2198
|
RespectivePipe,
|
|
@@ -1774,12 +2211,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1774
2211
|
CNPJPipe
|
|
1775
2212
|
],
|
|
1776
2213
|
exports: [
|
|
2214
|
+
DatePipe,
|
|
1777
2215
|
MonthNamePipe,
|
|
1778
2216
|
StatusInfoPipe,
|
|
1779
2217
|
RespectivePipe,
|
|
1780
2218
|
CNPJPipe
|
|
1781
2219
|
],
|
|
1782
2220
|
providers: [
|
|
2221
|
+
DatePipe,
|
|
1783
2222
|
MonthNamePipe,
|
|
1784
2223
|
StatusInfoPipe,
|
|
1785
2224
|
RespectivePipe,
|
|
@@ -1788,96 +2227,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1788
2227
|
}]
|
|
1789
2228
|
}] });
|
|
1790
2229
|
|
|
1791
|
-
class
|
|
2230
|
+
class TCloudUiLoadingTransitionsService {
|
|
1792
2231
|
constructor() {
|
|
1793
|
-
this.
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
this.
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
for (let i = 0; i < (this.tcList).length; i++) {
|
|
1821
|
-
const row = this.tcList[i];
|
|
1822
|
-
if (item === row.value && i === index) {
|
|
1823
|
-
(this.tcList).splice(index, 1);
|
|
1824
|
-
break;
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
this.toChange();
|
|
2232
|
+
this.ID = 'tcloud-ui-loading-transitions';
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* Inicia a tela de bloqueio para carregamento de tarefa
|
|
2236
|
+
*/
|
|
2237
|
+
start() {
|
|
2238
|
+
this.create_loading_transition();
|
|
2239
|
+
if (document.getElementById(this.ID)) {
|
|
2240
|
+
const box = document.getElementById(this.ID);
|
|
2241
|
+
box === null || box === void 0 ? void 0 : box.classList.add('tcloud-ui-start-loading');
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
/**
|
|
2245
|
+
* Encerra a tela de bloqueio
|
|
2246
|
+
*/
|
|
2247
|
+
stop() {
|
|
2248
|
+
if (document.getElementById(this.ID)) {
|
|
2249
|
+
const box = document.getElementById(this.ID);
|
|
2250
|
+
box === null || box === void 0 ? void 0 : box.classList.remove('tcloud-ui-start-loading');
|
|
2251
|
+
const body = document.getElementsByTagName('body')[0];
|
|
2252
|
+
body.classList.remove('tcloud-ui-body-loading-transitions');
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
create_loading_transition() {
|
|
2256
|
+
let box = null;
|
|
2257
|
+
if (document.getElementById(this.ID)) {
|
|
2258
|
+
box = document.getElementById(this.ID);
|
|
1828
2259
|
}
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
let itens = [];
|
|
1833
|
-
if (this.tcList) {
|
|
1834
|
-
for (let i = 0; i < (this.tcList).length; i++) {
|
|
1835
|
-
const row = this.tcList[i];
|
|
1836
|
-
(itens).push(row);
|
|
1837
|
-
}
|
|
2260
|
+
else {
|
|
2261
|
+
box = document.createElement("div");
|
|
2262
|
+
box.setAttribute('id', this.ID);
|
|
1838
2263
|
}
|
|
1839
|
-
|
|
1840
|
-
|
|
2264
|
+
const body = document.getElementsByTagName('body')[0];
|
|
2265
|
+
body.appendChild(box);
|
|
2266
|
+
body.classList.add('tcloud-ui-body-loading-transitions');
|
|
2267
|
+
// element.classList.remove('bar', 'baz');
|
|
1841
2268
|
}
|
|
1842
2269
|
}
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
1846
|
-
type:
|
|
1847
|
-
args: [{ selector: 'tcloud-ui-multi-input', template: "<div>\n <form #_formulario=\"ngForm\">\n <table>\n <tr *ngIf=\"tcList\">\n <td>\n <input type=\"text\" [(ngModel)]=\"input_value\" [disabled]=\"disabled || loading\" name=\"input_value\" required>\n </td>\n <td>\n <button\n [disabled]=\"disabled || loading || !_formulario.valid\"\n title=\"Adicionar\"\n class=\"btn-plus-select\"\n (click)=\"addItem(input_value)\"\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\">\n <ng-container *ngFor=\"let item of tcList; let i = index\">\n \n <div class=\"box-label\">\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)\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n\n </ng-container>\n </div>\n </form>\n</div>\n ", styles: ["table{width:100%;border-collapse:collapse;border:none}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: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{display:flex;max-width:220px;height:35px;min-width:100px;background-color:var(--verde);color:#fff;padding:8px 15px 10px;border:none;border-radius:5px;margin:2px}.box-label .box-value{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.box-label .box-action{width:8px}.box-label .box-action button{color:#d72020;background-color:var(--verde);border:none;font-weight:700;cursor:pointer}\n"] }]
|
|
1848
|
-
}], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
|
|
1849
|
-
type: Input
|
|
1850
|
-
}], placeholder: [{
|
|
1851
|
-
type: Input
|
|
1852
|
-
}], disabled: [{
|
|
1853
|
-
type: Input
|
|
1854
|
-
}], loading: [{
|
|
1855
|
-
type: Input
|
|
1856
|
-
}], tcChange: [{
|
|
1857
|
-
type: Output
|
|
1858
|
-
}] } });
|
|
1859
|
-
|
|
1860
|
-
class TCloudUiMultiInputModule {
|
|
1861
|
-
}
|
|
1862
|
-
TCloudUiMultiInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1863
|
-
TCloudUiMultiInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, declarations: [TCloudUiMultiInputComponent], imports: [FormsModule,
|
|
1864
|
-
ReactiveFormsModule,
|
|
1865
|
-
CommonModule], exports: [TCloudUiMultiInputComponent] });
|
|
1866
|
-
TCloudUiMultiInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, imports: [FormsModule,
|
|
1867
|
-
ReactiveFormsModule,
|
|
1868
|
-
CommonModule] });
|
|
1869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, decorators: [{
|
|
1870
|
-
type: NgModule,
|
|
2270
|
+
TCloudUiLoadingTransitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2271
|
+
TCloudUiLoadingTransitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, providedIn: 'root' });
|
|
2272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, decorators: [{
|
|
2273
|
+
type: Injectable,
|
|
1871
2274
|
args: [{
|
|
1872
|
-
|
|
1873
|
-
exports: [TCloudUiMultiInputComponent],
|
|
1874
|
-
imports: [
|
|
1875
|
-
FormsModule,
|
|
1876
|
-
ReactiveFormsModule,
|
|
1877
|
-
CommonModule
|
|
1878
|
-
]
|
|
2275
|
+
providedIn: 'root',
|
|
1879
2276
|
}]
|
|
1880
|
-
}] });
|
|
2277
|
+
}], ctorParameters: function () { return []; } });
|
|
1881
2278
|
|
|
1882
2279
|
class TCloudUiModule {
|
|
1883
2280
|
}
|
|
@@ -1889,6 +2286,9 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
1889
2286
|
TCloudUiMultiSelectModule,
|
|
1890
2287
|
TCloudUiDataListModule,
|
|
1891
2288
|
TCloudUiMultiInputModule,
|
|
2289
|
+
TCloudUiChoiceIssuesModule,
|
|
2290
|
+
TCloudUiInputSearchModule,
|
|
2291
|
+
TCloudUiNotFoundModule,
|
|
1892
2292
|
// Directives
|
|
1893
2293
|
TCloudUiDirectiveModule,
|
|
1894
2294
|
// Pipes
|
|
@@ -1899,17 +2299,26 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
1899
2299
|
TCloudUiMultiSelectModule,
|
|
1900
2300
|
TCloudUiDataListModule,
|
|
1901
2301
|
TCloudUiMultiInputModule,
|
|
2302
|
+
TCloudUiChoiceIssuesModule,
|
|
2303
|
+
TCloudUiInputSearchModule,
|
|
2304
|
+
TCloudUiNotFoundModule,
|
|
1902
2305
|
// Directives
|
|
1903
2306
|
TCloudUiDirectiveModule,
|
|
1904
2307
|
// Pipes
|
|
1905
2308
|
TCloudUiPipesModule] });
|
|
1906
|
-
TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule,
|
|
2309
|
+
TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, providers: [
|
|
2310
|
+
TCloudUiLoadingTransitionsService,
|
|
2311
|
+
TCloudUiSearchInObjectService,
|
|
2312
|
+
], imports: [TCloudUiModalModule,
|
|
1907
2313
|
TCloudUiTabMenuModule,
|
|
1908
2314
|
TCloudUiLinhaLogoModule,
|
|
1909
2315
|
TCloudUiLineStepCircleModule,
|
|
1910
2316
|
TCloudUiMultiSelectModule,
|
|
1911
2317
|
TCloudUiDataListModule,
|
|
1912
2318
|
TCloudUiMultiInputModule,
|
|
2319
|
+
TCloudUiChoiceIssuesModule,
|
|
2320
|
+
TCloudUiInputSearchModule,
|
|
2321
|
+
TCloudUiNotFoundModule,
|
|
1913
2322
|
// Directives
|
|
1914
2323
|
TCloudUiDirectiveModule,
|
|
1915
2324
|
// Pipes
|
|
@@ -1920,6 +2329,9 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
1920
2329
|
TCloudUiMultiSelectModule,
|
|
1921
2330
|
TCloudUiDataListModule,
|
|
1922
2331
|
TCloudUiMultiInputModule,
|
|
2332
|
+
TCloudUiChoiceIssuesModule,
|
|
2333
|
+
TCloudUiInputSearchModule,
|
|
2334
|
+
TCloudUiNotFoundModule,
|
|
1923
2335
|
// Directives
|
|
1924
2336
|
TCloudUiDirectiveModule,
|
|
1925
2337
|
// Pipes
|
|
@@ -1935,6 +2347,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1935
2347
|
TCloudUiMultiSelectModule,
|
|
1936
2348
|
TCloudUiDataListModule,
|
|
1937
2349
|
TCloudUiMultiInputModule,
|
|
2350
|
+
TCloudUiChoiceIssuesModule,
|
|
2351
|
+
TCloudUiInputSearchModule,
|
|
2352
|
+
TCloudUiNotFoundModule,
|
|
1938
2353
|
// Directives
|
|
1939
2354
|
TCloudUiDirectiveModule,
|
|
1940
2355
|
// Pipes
|
|
@@ -1948,10 +2363,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1948
2363
|
TCloudUiMultiSelectModule,
|
|
1949
2364
|
TCloudUiDataListModule,
|
|
1950
2365
|
TCloudUiMultiInputModule,
|
|
2366
|
+
TCloudUiChoiceIssuesModule,
|
|
2367
|
+
TCloudUiInputSearchModule,
|
|
2368
|
+
TCloudUiNotFoundModule,
|
|
1951
2369
|
// Directives
|
|
1952
2370
|
TCloudUiDirectiveModule,
|
|
1953
2371
|
// Pipes
|
|
1954
2372
|
TCloudUiPipesModule
|
|
2373
|
+
],
|
|
2374
|
+
providers: [
|
|
2375
|
+
TCloudUiLoadingTransitionsService,
|
|
2376
|
+
TCloudUiSearchInObjectService,
|
|
1955
2377
|
]
|
|
1956
2378
|
}]
|
|
1957
2379
|
}] });
|
|
@@ -1964,5 +2386,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1964
2386
|
* Generated bundle index. Do not edit.
|
|
1965
2387
|
*/
|
|
1966
2388
|
|
|
1967
|
-
export { CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiPipesModule, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTooltipDirective };
|
|
2389
|
+
export { CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiPipesModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTooltipDirective };
|
|
1968
2390
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|