@dev-tcloud/tcloud-ui 0.0.6 → 0.0.7
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 +3 -0
- package/esm2020/lib/_directives/directives.module.mjs +9 -9
- package/esm2020/lib/_directives/tooltip/tooltip.directive.mjs +11 -10
- package/esm2020/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.component.mjs +73 -0
- package/esm2020/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.module.mjs +27 -0
- package/esm2020/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.component.mjs +3 -3
- package/esm2020/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.module.mjs +1 -1
- package/esm2020/lib/_pipes/tcloud-pipes.module.mjs +6 -6
- package/esm2020/lib/tcloud-ui.module.mjs +22 -15
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +134 -36
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +134 -36
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_directives/directives.module.d.ts +4 -4
- package/lib/_directives/tooltip/tooltip.directive.d.ts +3 -3
- package/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.component.d.ts +19 -0
- package/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.module.d.ts +9 -0
- package/lib/_pipes/tcloud-pipes.module.d.ts +4 -4
- package/lib/tcloud-ui.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -933,10 +933,10 @@ class TCloudUiMultiSelectComponent {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
TCloudUiMultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
936
|
-
TCloudUiMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiMultiSelectComponent, selector: "tcloud-ui-multi-select", inputs: { tcList: "tcList", placeholder: "placeholder", disabled: "disabled", loading: "loading" }, outputs: { tcChange: "tcChange" }, ngImport: i0, template: "<div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select\r\n #_select\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n [title]=\"tcList.length === 0 ? 'Nenhum item dispon\u00EDvel' : placeholder\">\r\n <option></option>\r\n <ng-container *ngFor=\"let item of tcList; let i = index\">\r\n <option [title]=\"item.description\" *ngIf=\"!item.active\" [value]=\"item.value\">{{ item.description }}</option>\r\n </ng-container>\r\n </select>\r\n </td>\r\n <td>\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value)\"\r\n type=\"button\">\r\n <i class=\"fas fa-plus\"></i>\r\n </button>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"box-itens-selected\" *ngIf=\"count_actives > 0\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n <div class=\"
|
|
936
|
+
TCloudUiMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiMultiSelectComponent, selector: "tcloud-ui-multi-select", inputs: { tcList: "tcList", placeholder: "placeholder", disabled: "disabled", loading: "loading" }, outputs: { tcChange: "tcChange" }, ngImport: i0, template: "<div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select\r\n #_select\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n [title]=\"tcList.length === 0 ? 'Nenhum item dispon\u00EDvel' : placeholder\">\r\n <option></option>\r\n <ng-container *ngFor=\"let item of tcList; let i = index\">\r\n <option [title]=\"item.description\" *ngIf=\"!item.active\" [value]=\"item.value\">{{ item.description }}</option>\r\n </ng-container>\r\n </select>\r\n </td>\r\n <td>\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value)\"\r\n type=\"button\">\r\n <i class=\"fas fa-plus\"></i>\r\n </button>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"box-itens-selected\" *ngIf=\"count_actives > 0\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n\r\n <ng-container *ngIf=\"item.active\">\r\n <div class=\"box-label\">\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)\">\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: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{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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
937
937
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiSelectComponent, decorators: [{
|
|
938
938
|
type: Component,
|
|
939
|
-
args: [{ selector: 'tcloud-ui-multi-select', template: "<div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select\r\n #_select\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n [title]=\"tcList.length === 0 ? 'Nenhum item dispon\u00EDvel' : placeholder\">\r\n <option></option>\r\n <ng-container *ngFor=\"let item of tcList; let i = index\">\r\n <option [title]=\"item.description\" *ngIf=\"!item.active\" [value]=\"item.value\">{{ item.description }}</option>\r\n </ng-container>\r\n </select>\r\n </td>\r\n <td>\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value)\"\r\n type=\"button\">\r\n <i class=\"fas fa-plus\"></i>\r\n </button>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"box-itens-selected\" *ngIf=\"count_actives > 0\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n <div class=\"
|
|
939
|
+
args: [{ selector: 'tcloud-ui-multi-select', template: "<div>\r\n <table>\r\n <tr *ngIf=\"tcList\">\r\n <td>\r\n <select\r\n #_select\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n [title]=\"tcList.length === 0 ? 'Nenhum item dispon\u00EDvel' : placeholder\">\r\n <option></option>\r\n <ng-container *ngFor=\"let item of tcList; let i = index\">\r\n <option [title]=\"item.description\" *ngIf=\"!item.active\" [value]=\"item.value\">{{ item.description }}</option>\r\n </ng-container>\r\n </select>\r\n </td>\r\n <td>\r\n <button\r\n [disabled]=\"tcList === undefined || (tcList && tcList.length === 0) || disabled || loading\"\r\n title=\"Adicionar\"\r\n class=\"btn-plus-select\"\r\n (click)=\"addItem(_select.value)\"\r\n type=\"button\">\r\n <i class=\"fas fa-plus\"></i>\r\n </button>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"box-itens-selected\" *ngIf=\"count_actives > 0\">\r\n <ng-container *ngFor=\"let item of tcList\">\r\n\r\n <ng-container *ngIf=\"item.active\">\r\n <div class=\"box-label\">\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)\">\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: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{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"] }]
|
|
940
940
|
}], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
|
|
941
941
|
type: Input
|
|
942
942
|
}], placeholder: [{
|
|
@@ -1335,7 +1335,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1335
1335
|
}]
|
|
1336
1336
|
}] });
|
|
1337
1337
|
|
|
1338
|
-
class
|
|
1338
|
+
class TCloudUiTooltipDirective {
|
|
1339
1339
|
constructor(el, renderer) {
|
|
1340
1340
|
this.el = el;
|
|
1341
1341
|
this.renderer = renderer;
|
|
@@ -1354,6 +1354,7 @@ class TooltipDirective {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
onMouseOver() {
|
|
1356
1356
|
if (this.getElement()) {
|
|
1357
|
+
this.renderer.addClass(this.el.nativeElement, 'main-tooltip');
|
|
1357
1358
|
const el = this.getElement();
|
|
1358
1359
|
el.style.display = 'inline';
|
|
1359
1360
|
setTimeout(() => {
|
|
@@ -1394,6 +1395,7 @@ class TooltipDirective {
|
|
|
1394
1395
|
if (this.getElement()) {
|
|
1395
1396
|
const el = this.getElement();
|
|
1396
1397
|
el.style.display = 'none';
|
|
1398
|
+
this.renderer.removeClass(this.el.nativeElement, 'main-tooltip');
|
|
1397
1399
|
}
|
|
1398
1400
|
}
|
|
1399
1401
|
set tooltip(tooltip) {
|
|
@@ -1429,9 +1431,8 @@ class TooltipDirective {
|
|
|
1429
1431
|
}
|
|
1430
1432
|
}
|
|
1431
1433
|
setStyle(el) {
|
|
1432
|
-
this.renderer.setStyle(el, 'position', 'relative');
|
|
1433
|
-
this.renderer.setStyle(el, '
|
|
1434
|
-
this.renderer.setStyle(el, 'display', 'inline');
|
|
1434
|
+
// this.renderer.setStyle(el, 'position', 'relative');
|
|
1435
|
+
// this.renderer.setStyle(el, 'display', 'inline');
|
|
1435
1436
|
}
|
|
1436
1437
|
create_tooltip(tip, el) {
|
|
1437
1438
|
this.setStyle(el);
|
|
@@ -1440,7 +1441,7 @@ class TooltipDirective {
|
|
|
1440
1441
|
tooltip.setAttribute('style', `
|
|
1441
1442
|
position: absolute;
|
|
1442
1443
|
display: none;
|
|
1443
|
-
padding:
|
|
1444
|
+
padding: 10px;
|
|
1444
1445
|
border-radius: 10px;
|
|
1445
1446
|
text-align: center;
|
|
1446
1447
|
width: max-content;
|
|
@@ -1457,7 +1458,7 @@ class TooltipDirective {
|
|
|
1457
1458
|
to_top(el) {
|
|
1458
1459
|
const pos = this.el_center - (this.target_center);
|
|
1459
1460
|
this.renderer.setStyle(el, 'left', `${(pos)}px`);
|
|
1460
|
-
this.renderer.setStyle(el, 'bottom', `
|
|
1461
|
+
this.renderer.setStyle(el, 'bottom', `${(this.el_height + 7)}px`);
|
|
1461
1462
|
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-top');
|
|
1462
1463
|
}
|
|
1463
1464
|
to_bottom(el) {
|
|
@@ -1479,9 +1480,9 @@ class TooltipDirective {
|
|
|
1479
1480
|
el.setAttribute('class', 'tc-directive-tooltip tc-directive-tooltip-left');
|
|
1480
1481
|
}
|
|
1481
1482
|
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
1483
|
+
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 });
|
|
1484
|
+
TCloudUiTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiTooltipDirective, selector: "[tooltip]", inputs: { tooltip: "tooltip", direction: "direction" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, ngImport: i0 });
|
|
1485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTooltipDirective, decorators: [{
|
|
1485
1486
|
type: Directive,
|
|
1486
1487
|
args: [{
|
|
1487
1488
|
selector: '[tooltip]'
|
|
@@ -1498,16 +1499,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1498
1499
|
type: Input
|
|
1499
1500
|
}] } });
|
|
1500
1501
|
|
|
1501
|
-
class
|
|
1502
|
+
class TCloudUiDirectiveModule {
|
|
1502
1503
|
}
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
1504
|
+
TCloudUiDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1505
|
+
TCloudUiDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, declarations: [TCloudUiTooltipDirective], exports: [TCloudUiTooltipDirective] });
|
|
1506
|
+
TCloudUiDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule });
|
|
1507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiDirectiveModule, decorators: [{
|
|
1507
1508
|
type: NgModule,
|
|
1508
1509
|
args: [{
|
|
1509
|
-
declarations: [
|
|
1510
|
-
exports: [
|
|
1510
|
+
declarations: [TCloudUiTooltipDirective],
|
|
1511
|
+
exports: [TCloudUiTooltipDirective],
|
|
1511
1512
|
}]
|
|
1512
1513
|
}] });
|
|
1513
1514
|
|
|
@@ -1746,23 +1747,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1746
1747
|
args: [{ name: 'cpf' }]
|
|
1747
1748
|
}] });
|
|
1748
1749
|
|
|
1749
|
-
class
|
|
1750
|
+
class TCloudUiPipesModule {
|
|
1750
1751
|
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1752
|
+
TCloudUiPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1753
|
+
TCloudUiPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, declarations: [MonthNamePipe,
|
|
1753
1754
|
StatusInfoPipe,
|
|
1754
1755
|
RespectivePipe,
|
|
1755
1756
|
CNPJPipe], imports: [CommonModule], exports: [MonthNamePipe,
|
|
1756
1757
|
StatusInfoPipe,
|
|
1757
1758
|
RespectivePipe,
|
|
1758
1759
|
CNPJPipe] });
|
|
1759
|
-
|
|
1760
|
+
TCloudUiPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, providers: [
|
|
1760
1761
|
MonthNamePipe,
|
|
1761
1762
|
StatusInfoPipe,
|
|
1762
1763
|
RespectivePipe,
|
|
1763
1764
|
CNPJPipe
|
|
1764
1765
|
], imports: [CommonModule] });
|
|
1765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
1766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, decorators: [{
|
|
1766
1767
|
type: NgModule,
|
|
1767
1768
|
args: [{
|
|
1768
1769
|
imports: [
|
|
@@ -1789,6 +1790,97 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1789
1790
|
}]
|
|
1790
1791
|
}] });
|
|
1791
1792
|
|
|
1793
|
+
class TCloudUiMultiInputComponent {
|
|
1794
|
+
constructor() {
|
|
1795
|
+
this.placeholder = '';
|
|
1796
|
+
this.disabled = false;
|
|
1797
|
+
this.loading = false;
|
|
1798
|
+
this.count_actives = 0;
|
|
1799
|
+
this.tcChange = new EventEmitter();
|
|
1800
|
+
}
|
|
1801
|
+
ngOnInit() {
|
|
1802
|
+
setTimeout(() => {
|
|
1803
|
+
this.toChange();
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
addItem(item) {
|
|
1807
|
+
if (this.disabled) {
|
|
1808
|
+
return;
|
|
1809
|
+
}
|
|
1810
|
+
if (!this.tcList) {
|
|
1811
|
+
this.tcList = [];
|
|
1812
|
+
}
|
|
1813
|
+
(this.tcList).push({ value: item });
|
|
1814
|
+
this.toChange();
|
|
1815
|
+
this.input_value = '';
|
|
1816
|
+
}
|
|
1817
|
+
removeItem(item, index) {
|
|
1818
|
+
if (this.disabled) {
|
|
1819
|
+
return;
|
|
1820
|
+
}
|
|
1821
|
+
if (this.tcList) {
|
|
1822
|
+
for (let i = 0; i < (this.tcList).length; i++) {
|
|
1823
|
+
const row = this.tcList[i];
|
|
1824
|
+
if (item === row.value && i === index) {
|
|
1825
|
+
(this.tcList).splice(index, 1);
|
|
1826
|
+
break;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
this.toChange();
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
toChange() {
|
|
1833
|
+
let count_actives = 0;
|
|
1834
|
+
let itens = [];
|
|
1835
|
+
if (this.tcList) {
|
|
1836
|
+
for (let i = 0; i < (this.tcList).length; i++) {
|
|
1837
|
+
const row = this.tcList[i];
|
|
1838
|
+
(itens).push(row);
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
this.count_actives = count_actives;
|
|
1842
|
+
this.tcChange.emit(itens);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
TCloudUiMultiInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1846
|
+
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"] }] });
|
|
1847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputComponent, decorators: [{
|
|
1848
|
+
type: Component,
|
|
1849
|
+
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"] }]
|
|
1850
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tcList: [{
|
|
1851
|
+
type: Input
|
|
1852
|
+
}], placeholder: [{
|
|
1853
|
+
type: Input
|
|
1854
|
+
}], disabled: [{
|
|
1855
|
+
type: Input
|
|
1856
|
+
}], loading: [{
|
|
1857
|
+
type: Input
|
|
1858
|
+
}], tcChange: [{
|
|
1859
|
+
type: Output
|
|
1860
|
+
}] } });
|
|
1861
|
+
|
|
1862
|
+
class TCloudUiMultiInputModule {
|
|
1863
|
+
}
|
|
1864
|
+
TCloudUiMultiInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1865
|
+
TCloudUiMultiInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, declarations: [TCloudUiMultiInputComponent], imports: [FormsModule,
|
|
1866
|
+
ReactiveFormsModule,
|
|
1867
|
+
CommonModule], exports: [TCloudUiMultiInputComponent] });
|
|
1868
|
+
TCloudUiMultiInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, imports: [FormsModule,
|
|
1869
|
+
ReactiveFormsModule,
|
|
1870
|
+
CommonModule] });
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiMultiInputModule, decorators: [{
|
|
1872
|
+
type: NgModule,
|
|
1873
|
+
args: [{
|
|
1874
|
+
declarations: [TCloudUiMultiInputComponent],
|
|
1875
|
+
exports: [TCloudUiMultiInputComponent],
|
|
1876
|
+
imports: [
|
|
1877
|
+
FormsModule,
|
|
1878
|
+
ReactiveFormsModule,
|
|
1879
|
+
CommonModule
|
|
1880
|
+
]
|
|
1881
|
+
}]
|
|
1882
|
+
}] });
|
|
1883
|
+
|
|
1792
1884
|
class TCloudUiModule {
|
|
1793
1885
|
}
|
|
1794
1886
|
TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1798,38 +1890,42 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
1798
1890
|
TCloudUiLineStepCircleModule,
|
|
1799
1891
|
TCloudUiMultiSelectModule,
|
|
1800
1892
|
TCloudUiDataListModule,
|
|
1893
|
+
TCloudUiMultiInputModule,
|
|
1801
1894
|
// Directives
|
|
1802
|
-
|
|
1895
|
+
TCloudUiDirectiveModule,
|
|
1803
1896
|
// Pipes
|
|
1804
|
-
|
|
1897
|
+
TCloudUiPipesModule], exports: [TCloudUiModalModule,
|
|
1805
1898
|
TCloudUiTabMenuModule,
|
|
1806
1899
|
TCloudUiLinhaLogoModule,
|
|
1807
1900
|
TCloudUiLineStepCircleModule,
|
|
1808
1901
|
TCloudUiMultiSelectModule,
|
|
1809
1902
|
TCloudUiDataListModule,
|
|
1903
|
+
TCloudUiMultiInputModule,
|
|
1810
1904
|
// Directives
|
|
1811
|
-
|
|
1905
|
+
TCloudUiDirectiveModule,
|
|
1812
1906
|
// Pipes
|
|
1813
|
-
|
|
1907
|
+
TCloudUiPipesModule] });
|
|
1814
1908
|
TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, imports: [TCloudUiModalModule,
|
|
1815
1909
|
TCloudUiTabMenuModule,
|
|
1816
1910
|
TCloudUiLinhaLogoModule,
|
|
1817
1911
|
TCloudUiLineStepCircleModule,
|
|
1818
1912
|
TCloudUiMultiSelectModule,
|
|
1819
1913
|
TCloudUiDataListModule,
|
|
1914
|
+
TCloudUiMultiInputModule,
|
|
1820
1915
|
// Directives
|
|
1821
|
-
|
|
1916
|
+
TCloudUiDirectiveModule,
|
|
1822
1917
|
// Pipes
|
|
1823
|
-
|
|
1918
|
+
TCloudUiPipesModule, TCloudUiModalModule,
|
|
1824
1919
|
TCloudUiTabMenuModule,
|
|
1825
1920
|
TCloudUiLinhaLogoModule,
|
|
1826
1921
|
TCloudUiLineStepCircleModule,
|
|
1827
1922
|
TCloudUiMultiSelectModule,
|
|
1828
1923
|
TCloudUiDataListModule,
|
|
1924
|
+
TCloudUiMultiInputModule,
|
|
1829
1925
|
// Directives
|
|
1830
|
-
|
|
1926
|
+
TCloudUiDirectiveModule,
|
|
1831
1927
|
// Pipes
|
|
1832
|
-
|
|
1928
|
+
TCloudUiPipesModule] });
|
|
1833
1929
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, decorators: [{
|
|
1834
1930
|
type: NgModule,
|
|
1835
1931
|
args: [{
|
|
@@ -1840,10 +1936,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1840
1936
|
TCloudUiLineStepCircleModule,
|
|
1841
1937
|
TCloudUiMultiSelectModule,
|
|
1842
1938
|
TCloudUiDataListModule,
|
|
1939
|
+
TCloudUiMultiInputModule,
|
|
1843
1940
|
// Directives
|
|
1844
|
-
|
|
1941
|
+
TCloudUiDirectiveModule,
|
|
1845
1942
|
// Pipes
|
|
1846
|
-
|
|
1943
|
+
TCloudUiPipesModule
|
|
1847
1944
|
],
|
|
1848
1945
|
exports: [
|
|
1849
1946
|
TCloudUiModalModule,
|
|
@@ -1852,10 +1949,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1852
1949
|
TCloudUiLineStepCircleModule,
|
|
1853
1950
|
TCloudUiMultiSelectModule,
|
|
1854
1951
|
TCloudUiDataListModule,
|
|
1952
|
+
TCloudUiMultiInputModule,
|
|
1855
1953
|
// Directives
|
|
1856
|
-
|
|
1954
|
+
TCloudUiDirectiveModule,
|
|
1857
1955
|
// Pipes
|
|
1858
|
-
|
|
1956
|
+
TCloudUiPipesModule
|
|
1859
1957
|
]
|
|
1860
1958
|
}]
|
|
1861
1959
|
}] });
|
|
@@ -1868,5 +1966,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1868
1966
|
* Generated bundle index. Do not edit.
|
|
1869
1967
|
*/
|
|
1870
1968
|
|
|
1871
|
-
export { CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe,
|
|
1969
|
+
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 };
|
|
1872
1970
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|