@dev-tcloud/tcloud-ui 6.6.3 → 6.7.0
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/fesm2022/dev-tcloud-tcloud-ui.mjs +298 -156
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-breadcrumb/tcloud-ui-breadcrumb.component.d.ts +12 -0
- package/lib/_modules/tcloud-ui-breadcrumb/tcloud-ui-breadcrumb.service.d.ts +16 -0
- package/lib/_modules/tcloud-ui-card/tcloud-ui-card.component.d.ts +12 -0
- package/lib/_modules/tcloud-ui-card-title/tcloud-ui-card-title.component.d.ts +6 -0
- package/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.d.ts +4 -1
- package/lib/_modules/tcloud-ui-sub-navbar/tcloud-ui-sub-navbar.component.d.ts +1 -1
- package/lib/_modules/tcloud-ui-toast/tcloud-ui-toast.component.d.ts +8 -0
- package/lib/tcloud-ui.module.d.ts +39 -34
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, EventEmitter, Input, Output, forwardRef, ViewChild, InjectionToken, Optional, Inject, input, effect, Directive, Pipe, ViewEncapsulation, signal, inject, HostListener, ChangeDetectorRef, ChangeDetectionStrategy,
|
|
2
|
+
import { Injectable, Component, EventEmitter, Input, Output, forwardRef, ViewChild, InjectionToken, Optional, Inject, input, effect, Directive, Pipe, ViewEncapsulation, signal, inject, HostListener, ChangeDetectorRef, ChangeDetectionStrategy, computed, ApplicationRef, output, ContentChildren, NgModule, makeEnvironmentProviders, model, viewChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DatePipe, DOCUMENT } from '@angular/common';
|
|
5
|
-
import { Subject, Subscription, debounceTime, distinctUntilChanged, map
|
|
5
|
+
import { Subject, Subscription, BehaviorSubject, debounceTime, distinctUntilChanged, map } from 'rxjs';
|
|
6
6
|
import { trigger, state, style, transition, animate, AnimationBuilder } from '@angular/animations';
|
|
7
7
|
import * as i2 from '@angular/forms';
|
|
8
8
|
import { NG_VALUE_ACCESSOR, FormsModule, FormControl, ReactiveFormsModule, NG_VALIDATORS, FormGroup, Validators } from '@angular/forms';
|
|
@@ -72,7 +72,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
72
72
|
state('open', style({ height: '*' })),
|
|
73
73
|
transition('close <=> open', animate('0.35s ease-in-out')),
|
|
74
74
|
]),
|
|
75
|
-
],
|
|
75
|
+
], imports: [CommonModule], template: "<div class=\"tcloud-ui-accordion-body tc-accordion-content\" [class.show]=\"show\" [@expandAccordion]=\"(show) ? 'open' : 'close' \">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important;padding-top:15px;padding-bottom:15px}.tc-accordion-content{overflow:hidden}\n"] }]
|
|
76
76
|
}], ctorParameters: () => [{ type: TCloudUiAccordionService }] });
|
|
77
77
|
|
|
78
78
|
class TCloudUiAccordionTitleComponent {
|
|
@@ -122,7 +122,7 @@ class TCloudUiAccordionTitleComponent {
|
|
|
122
122
|
}
|
|
123
123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiAccordionTitleComponent, decorators: [{
|
|
124
124
|
type: Component,
|
|
125
|
-
args: [{ selector: 'tcloud-ui-accordion-title',
|
|
125
|
+
args: [{ selector: 'tcloud-ui-accordion-title', imports: [CommonModule], template: "<div class=\"tcloud-ui-accordion-title tc-accordion-title\">\n <table class=\"tc-accordion-table\">\n <tr>\n <td class=\"area-title\" (click)=\"toggle_title()\" >\n <ng-content></ng-content>\n </td>\n <td class=\"tc-accordion-actions\">\n <button type=\"button\" class=\"tc-btn-accordion-toggle\" [disabled]=\"disabled\" (click)=\"toggle()\" >\n\n <i class=\"fas fa-chevron-right icon-toggle\" *ngIf=\"!show\"></i>\n <i class=\"fas fa-chevron-down icon-toggle\" *ngIf=\"show\"></i>\n\n </button>\n </td>\n </tr>\n </table>\n</div>", styles: [".tc-accordion-table{width:100%}.tc-accordion-actions{width:15px}.tc-btn-accordion-toggle{font-size:20px;border:none;background-color:transparent;background:none;cursor:pointer;margin:auto}.tc-btn-accordion-toggle:disabled{cursor:not-allowed!important;opacity:.6}.icon-toggle{color:var(--tc-primary)}.area-title{width:100;cursor:pointer;color:var(--tc-primary)}\n"] }]
|
|
126
126
|
}], ctorParameters: () => [{ type: TCloudUiAccordionService }] });
|
|
127
127
|
|
|
128
128
|
class TCloudUiAccordionComponent {
|
|
@@ -179,13 +179,13 @@ class TCloudUiAccordionComponent {
|
|
|
179
179
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiAccordionComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
180
180
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiAccordionComponent, isStandalone: true, selector: "tcloud-ui-accordion", inputs: { disabled: "disabled", show: "show", loading: "loading" }, outputs: { onAction: "onAction" }, providers: [
|
|
181
181
|
TCloudUiAccordionService
|
|
182
|
-
], ngImport: i0, template: "<div class=\"tcloud-ui-accordion tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
182
|
+
], ngImport: i0, template: "<div class=\"tcloud-ui-accordion tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{background-color:#fff;border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
183
183
|
}
|
|
184
184
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiAccordionComponent, decorators: [{
|
|
185
185
|
type: Component,
|
|
186
186
|
args: [{ selector: 'tcloud-ui-accordion', providers: [
|
|
187
187
|
TCloudUiAccordionService
|
|
188
|
-
],
|
|
188
|
+
], imports: [CommonModule, TCloudUiAccordionBodyComponent, TCloudUiAccordionTitleComponent], template: "<div class=\"tcloud-ui-accordion tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{background-color:#fff;border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"] }]
|
|
189
189
|
}], ctorParameters: () => [{ type: TCloudUiAccordionService }], propDecorators: { disabled: [{
|
|
190
190
|
type: Input
|
|
191
191
|
}], show: [{
|
|
@@ -368,7 +368,7 @@ class TCloudUiDataListOptionComponent {
|
|
|
368
368
|
}
|
|
369
369
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDataListOptionComponent, decorators: [{
|
|
370
370
|
type: Component,
|
|
371
|
-
args: [{ selector: 'tcloud-ui-data-list-option',
|
|
371
|
+
args: [{ selector: 'tcloud-ui-data-list-option', imports: [CommonModule], template: "<button \n [disabled]=\"disabled\"\n [title]=\"select_options.description\"\n id=\"{{id}}\"\n [attr.data-description]=\"select_options.description\"\n [attr.data-actived-value]=\"actived_value\"\n class=\"tcloud-ui-data-list-option dropdown-item\" \n [class.null-value]=\"value === undefined || value === null || value === ''\"\n [class.active]=\"value === actived_value\" \n [class.option-disabled]=\"disabled\"\n type=\"button\" \n [value]=\"value\"\n (click)=\"setSelectedItem(value)\" >\n <ng-content></ng-content>\n</button>\n", styles: ["button{color:#666;width:100%;padding:10px;font-size:14px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}button:hover{background-color:#e5f5f9;color:#333}button.active{background-color:#ceedf5;color:#333}.null-value{height:35px}.option-disabled{background-color:#fff!important;color:#b5b5b5!important;cursor:not-allowed!important}\n"] }]
|
|
372
372
|
}], ctorParameters: () => [{ type: DataListService }], propDecorators: { disabled: [{
|
|
373
373
|
type: Input
|
|
374
374
|
}], value: [{
|
|
@@ -739,7 +739,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
739
739
|
args: [{ selector: 'tcloud-ui-data-list', providers: [
|
|
740
740
|
DataListService,
|
|
741
741
|
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7
|
|
742
|
-
],
|
|
742
|
+
], imports: [CommonModule, FormsModule, ReactiveFormsModule, TCloudUiDataListOptionComponent, TCloudUiFormDirective], template: "<div *ngIf=\"formulario\" id=\"area-{{ id }}\" class=\"tcloud-ui-data-list tc-dropdown\" [class.disabled]=\"disabled || loading\">\n <div *ngIf=\"loading\" class=\"loading-area\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n <!-- [attr.data-bs-toggle]=\"'dropdown'\" -->\n <button \n tcloudForm\n #_option\n [class.input-hidden]=\"!showInput\"\n [class.in-border]=\"border\"\n [class.loading-box]=\"loading\"\n [disabled]=\"disabled || loading\"\n class=\"dropdown-toggle button-select no-margin-bottom area-text\" \n type=\"button\" \n id=\"{{ id }}\" \n \n [attr.aria-haspopup]=\"'true'\" \n [attr.aria-expanded]=\"'false'\" \n (click)=\"toOpen();toInput(_option)\" >\n\n <i class=\"tc-placeholder area-text\" *ngIf=\"(selected_description === undefined || selected_description === null || selected_description === '' ) && !loading \">{{ placeholder }}</i>\n {{ selected_description }}\n <span><i class=\"fas fa-angle-down\"></i></span>\n </button>\n <div class=\"tc-dropdown-menu {{ menu_on_top }}\" id=\"box-{{ id }}\" [attr.aria-labelledby]=\"id\" [class.to-hide]=\"!menu_show\" [style]=\"box_style\">\n\n <div class=\"line-search\" *ngIf=\"search\">\n <table class=\"box-search\">\n <tr>\n\n <td class=\"area-input\">\n <input type=\"text\" class=\"tc-form-control\" [(ngModel)]=\"search_text\" (input)=\"toSearch($event)\" placeholder=\"Buscar...\" > \n </td>\n\n <td class=\"area-icon\">\n <i *ngIf=\"search_text === ''\" class=\"fas fa-search icon-search\"></i>\n <button type=\"button\" *ngIf=\"search_text !== ''\" (click)=\"clearTextSearch()\"><i class=\"fas fa-times\"></i></button>\n </td>\n \n </tr>\n </table>\n </div>\n \n <div class=\"area-options\" id=\"{{ id }}-options\" (click)=\"toClose()\">\n <ng-content></ng-content> \n <ng-container *ngIf=\"listItems && (listItems).length > 0\">\n <ng-container *ngFor=\"let item of listItems\">\n <tcloud-ui-data-list-option [value]=\"item.value\" [disabled]=\"item?.disabled\" >{{ item?.description }}</tcloud-ui-data-list-option>\n </ng-container>\n </ng-container> \n </div>\n </div>\n</div>\n\n<div *ngIf=\"formulario\">\n <form [formGroup]=\"formulario\" style=\"display: none;\" >\n <input id=\"{{ id }}-hidden\" formControlName=\"selected_item\" type=\"hidden\">\n </form>\n</div>\n", styles: [".dropdown-toggle:after{display:none!important}i.tc-placeholder{font-style:italic;color:#999;text-transform:none!important}.in-border{border:1px solid #ccc!important}.tc-dropdown{position:relative}.tc-dropdown .button-select{width:100%;background-color:#fff;border:none;height:35px;text-align:left;padding-left:15px;font-size:14px;color:#666;padding-right:30px}.tc-dropdown .button-select span{position:absolute;right:6px;top:7px}.tc-dropdown .area-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tc-dropdown .tc-dropdown-menu{width:100%;border:1px solid #ccc;background-color:#fff;position:absolute;z-index:1}.tc-dropdown .area-options{max-height:200px;overflow-y:scroll;overflow-x:hidden}.tc-dropdown .menu-on-top{position:absolute}.line-search{padding:3px}.line-search .box-search{width:100%;border-collapse:collapse}.line-search .box-search td.area-icon{padding:4px 0 2px 8px;width:35px}.line-search .box-search td.area-icon .icon-search{color:#666}.line-search .box-search td.area-icon button{border:none;background-color:transparent;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.line-search .box-search td.area-input input{width:100%}.line-search .box-search td.area-input{border:none}.line-search .box-search input{width:100%;font-size:13px;height:33px;border:1px solid #ccc;padding:10px}.loading-area{line-height:0;position:relative;height:0;bottom:-10px;left:10px}button:disabled{background-color:#eee!important;border:1px solid #ececec!important;cursor:not-allowed}.loading-box{cursor:progress!important}.disabled i{color:#999!important}.to-hide{display:none}.no-margin-bottom{margin-bottom:0!important}.input-hidden{display:none!important}\n"] }]
|
|
743
743
|
}], ctorParameters: () => [{ type: DataListService }, { type: i2.FormBuilder }], propDecorators: { placeholder: [{
|
|
744
744
|
type: Input
|
|
745
745
|
}], disabled: [{
|
|
@@ -2985,15 +2985,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2985
2985
|
}] } });
|
|
2986
2986
|
|
|
2987
2987
|
class TCloudUiLinhaLogoComponent {
|
|
2988
|
+
set product(value) {
|
|
2989
|
+
if ((`${value}`).toLowerCase() !== this._product) {
|
|
2990
|
+
this._product = value;
|
|
2991
|
+
this.toInit();
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
get product() {
|
|
2995
|
+
return this._product;
|
|
2996
|
+
}
|
|
2988
2997
|
constructor() {
|
|
2989
2998
|
this.url = `h` + `t` + `t` + `p` + `s` + `:` + `/` + `/` + `ateleia` + `-` + `email` + `.s3` + `-` + `sa` + `-` + `east` + `-` + `1` + `.` + `amazonaws` + `.` + `com` + `/`;
|
|
2990
|
-
this.
|
|
2999
|
+
this._product = '';
|
|
2991
3000
|
this.logo_name = '';
|
|
2992
3001
|
this.product_name = '';
|
|
2993
3002
|
this.alt_product_name = '';
|
|
2994
3003
|
this.font_size = '';
|
|
2995
3004
|
}
|
|
2996
3005
|
ngOnInit() {
|
|
3006
|
+
}
|
|
3007
|
+
toInit() {
|
|
2997
3008
|
this.logo_name = this.getLogoName();
|
|
2998
3009
|
this.product_name = this.getProductName();
|
|
2999
3010
|
this.alt_product_name = (this.product_name).toUpperCase();
|
|
@@ -4496,6 +4507,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4496
4507
|
type: Output
|
|
4497
4508
|
}] } });
|
|
4498
4509
|
|
|
4510
|
+
class TCloudUiToastComponent {
|
|
4511
|
+
constructor() {
|
|
4512
|
+
this.type = input('info');
|
|
4513
|
+
this.fullWidth = input(false);
|
|
4514
|
+
this.size = input('md');
|
|
4515
|
+
}
|
|
4516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.18", type: TCloudUiToastComponent, isStandalone: true, selector: "tcloud-ui-toast", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"tcloud-ui-toast c-neutral-700\">\n <div\n class=\"tcloud-ui-toast__icon\"\n [ngClass]=\"[\n 'tcloud-ui-toast__icon--' + type(),\n 'tcloud-ui-toast__icon--' + size()\n ]\"\n >\n <ng-content select=\"[icon]\" />\n </div>\n\n <div\n class=\"tcloud-ui-toast__content\"\n [ngClass]=\"[\n 'tcloud-ui-toast__content--' + type(),\n 'tcloud-ui-toast__content--' + size()\n ]\"\n [class.full-width]=\"fullWidth()\"\n >\n <ng-content />\n </div>\n</div>\n", styles: [":host{display:block}.tcloud-ui-toast{display:flex}.tcloud-ui-toast__icon{align-items:center;border-radius:var(--bor-radius-8) 0 0 var(--bor-radius-8);display:flex;justify-content:center}.tcloud-ui-toast__icon--info{background-color:var(--c-primary-500)}.tcloud-ui-toast__icon--success{background-color:var(--c-success-500)}.tcloud-ui-toast__icon--alert{background-color:var(--c-alert-500)}.tcloud-ui-toast__icon--danger{background-color:var(--c-danger-500)}.tcloud-ui-toast__icon--sm{font-size:var(--f-size-20);padding:var(--size-14)}.tcloud-ui-toast__icon--md{font-size:var(--f-size-24);padding:var(--size-16)}.tcloud-ui-toast__icon--lg{font-size:var(--f-size-24);padding:var(--size-18)}.tcloud-ui-toast__content{align-items:center;border-radius:0 var(--bor-radius-8) var(--bor-radius-8) 0;display:flex;font-family:var(--f-family)}.tcloud-ui-toast__content--info{background-color:var(--c-primary-300)}.tcloud-ui-toast__content--success{background-color:var(--c-success-300)}.tcloud-ui-toast__content--alert{background-color:var(--c-alert-300)}.tcloud-ui-toast__content--danger{background-color:var(--c-danger-300)}.tcloud-ui-toast__content--sm{padding:var(--size-12);font-size:var(--f-size-12);line-height:var(--l-height-16)}.tcloud-ui-toast__content--md{padding:var(--size-16);font-size:var(--f-size-14);line-height:var(--l-height-20)}.tcloud-ui-toast__content--lg{padding:var(--size-18);font-size:var(--f-size-16);line-height:var(--l-height-24)}.tcloud-ui-toast__content.full-width{flex-grow:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
4518
|
+
}
|
|
4519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiToastComponent, decorators: [{
|
|
4520
|
+
type: Component,
|
|
4521
|
+
args: [{ selector: 'tcloud-ui-toast', standalone: true, imports: [CommonModule], template: "<div class=\"tcloud-ui-toast c-neutral-700\">\n <div\n class=\"tcloud-ui-toast__icon\"\n [ngClass]=\"[\n 'tcloud-ui-toast__icon--' + type(),\n 'tcloud-ui-toast__icon--' + size()\n ]\"\n >\n <ng-content select=\"[icon]\" />\n </div>\n\n <div\n class=\"tcloud-ui-toast__content\"\n [ngClass]=\"[\n 'tcloud-ui-toast__content--' + type(),\n 'tcloud-ui-toast__content--' + size()\n ]\"\n [class.full-width]=\"fullWidth()\"\n >\n <ng-content />\n </div>\n</div>\n", styles: [":host{display:block}.tcloud-ui-toast{display:flex}.tcloud-ui-toast__icon{align-items:center;border-radius:var(--bor-radius-8) 0 0 var(--bor-radius-8);display:flex;justify-content:center}.tcloud-ui-toast__icon--info{background-color:var(--c-primary-500)}.tcloud-ui-toast__icon--success{background-color:var(--c-success-500)}.tcloud-ui-toast__icon--alert{background-color:var(--c-alert-500)}.tcloud-ui-toast__icon--danger{background-color:var(--c-danger-500)}.tcloud-ui-toast__icon--sm{font-size:var(--f-size-20);padding:var(--size-14)}.tcloud-ui-toast__icon--md{font-size:var(--f-size-24);padding:var(--size-16)}.tcloud-ui-toast__icon--lg{font-size:var(--f-size-24);padding:var(--size-18)}.tcloud-ui-toast__content{align-items:center;border-radius:0 var(--bor-radius-8) var(--bor-radius-8) 0;display:flex;font-family:var(--f-family)}.tcloud-ui-toast__content--info{background-color:var(--c-primary-300)}.tcloud-ui-toast__content--success{background-color:var(--c-success-300)}.tcloud-ui-toast__content--alert{background-color:var(--c-alert-300)}.tcloud-ui-toast__content--danger{background-color:var(--c-danger-300)}.tcloud-ui-toast__content--sm{padding:var(--size-12);font-size:var(--f-size-12);line-height:var(--l-height-16)}.tcloud-ui-toast__content--md{padding:var(--size-16);font-size:var(--f-size-14);line-height:var(--l-height-20)}.tcloud-ui-toast__content--lg{padding:var(--size-18);font-size:var(--f-size-16);line-height:var(--l-height-24)}.tcloud-ui-toast__content.full-width{flex-grow:1}\n"] }]
|
|
4522
|
+
}] });
|
|
4523
|
+
|
|
4499
4524
|
class TCloudUiLineStepTitleComponent {
|
|
4500
4525
|
constructor() {
|
|
4501
4526
|
this.showStepCounter = true;
|
|
@@ -5203,11 +5228,11 @@ class TCloudUiReorderItemsComponent {
|
|
|
5203
5228
|
return items;
|
|
5204
5229
|
}
|
|
5205
5230
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiReorderItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiReorderItemsComponent, isStandalone: true, selector: "tcloud-ui-reorder-items", inputs: { items: "items" }, outputs: { itemsChange: "itemsChange" }, ngImport: i0, template: "<ng-container *ngIf=\"sort_items\">\n\n\n\n <table class=\"table-sort-items\">\n\n \n\n\n <ng-container *ngFor=\"let item of sort_items; let i = index\">\n\n <tr>\n\n <td class=\"area-name-description-item\">\n {{ item }}\n <div *ngIf=\"get_description(item)\" class=\"item-description\">\n {{ get_description(item) }}\n </div>\n </td>\n\n <td class=\"area-action-item\">\n \n <ng-container>\n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i-1))\" title=\"Alterar para cima\" [disabled]=\"i===0\">\n <i class=\"fas fa-caret-up p-up\" ></i>\n </button>\n </div>\n \n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i+1))\" title=\"Alterar para baixo\" [disabled]=\"(i+1) === (sort_items).length\">\n <i class=\"fas fa-caret-down p-down\"></i>\n </button>\n \n </div>\n </ng-container>\n </td>\n\n </tr>\n </ng-container> \n\n </table>\n \n </ng-container>", styles: [".table-sort-items{width:100%;border-collapse:initial}.order-control{text-align:center}.btn-item-action-arrow{border:none;background:none;cursor:pointer;padding:0;color:var(--tc-primary);font-size:16px;line-height:0}.btn-item-action-arrow:disabled{opacity:.4;cursor:not-allowed!important}.item-description{color:#a2a2a2}.area-name-description-item{border-radius:13px 0 0 13px;border:1px solid #ccc;padding:3px 13px}.area-action-item{background-color:var(--tc-gray-50);border-radius:0 13px 13px 0;border:1px solid #ccc;padding:3px;width:40px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
5231
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiReorderItemsComponent, isStandalone: true, selector: "tcloud-ui-reorder-items", inputs: { items: "items" }, outputs: { itemsChange: "itemsChange" }, ngImport: i0, template: "<ng-container *ngIf=\"sort_items\">\n\n\n\n <table class=\"table-sort-items\">\n\n \n\n\n <ng-container *ngFor=\"let item of sort_items; let i = index\">\n\n <tr>\n\n <td class=\"area-name-description-item\">\n {{ item }}\n <div *ngIf=\"get_description(item)\" class=\"item-description\">\n {{ get_description(item) }}\n </div>\n </td>\n\n <td class=\"area-action-item\">\n \n <ng-container>\n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i-1))\" title=\"Alterar para cima\" [disabled]=\"i===0\">\n <i class=\"fas fa-caret-up p-up\" ></i>\n </button>\n </div>\n \n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i+1))\" title=\"Alterar para baixo\" [disabled]=\"(i+1) === (sort_items).length\">\n <i class=\"fas fa-caret-down p-down\"></i>\n </button>\n \n </div>\n </ng-container>\n </td>\n\n </tr>\n </ng-container> \n\n </table>\n \n </ng-container>", styles: [".table-sort-items{width:100%;border-collapse:initial}.order-control{text-align:center}.btn-item-action-arrow{border:none;background:none;cursor:pointer;padding:0;color:var(--tc-primary);font-size:16px;line-height:0}.btn-item-action-arrow:disabled{opacity:.4;cursor:not-allowed!important}.item-description{color:#a2a2a2}.area-name-description-item{background-color:#fff;border-radius:13px 0 0 13px;border:1px solid #ccc;padding:3px 13px}.area-action-item{background-color:var(--tc-gray-50);border-radius:0 13px 13px 0;border:1px solid #ccc;padding:3px;width:40px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
5207
5232
|
}
|
|
5208
5233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiReorderItemsComponent, decorators: [{
|
|
5209
5234
|
type: Component,
|
|
5210
|
-
args: [{ selector: 'tcloud-ui-reorder-items', standalone: true, imports: [CommonModule], template: "<ng-container *ngIf=\"sort_items\">\n\n\n\n <table class=\"table-sort-items\">\n\n \n\n\n <ng-container *ngFor=\"let item of sort_items; let i = index\">\n\n <tr>\n\n <td class=\"area-name-description-item\">\n {{ item }}\n <div *ngIf=\"get_description(item)\" class=\"item-description\">\n {{ get_description(item) }}\n </div>\n </td>\n\n <td class=\"area-action-item\">\n \n <ng-container>\n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i-1))\" title=\"Alterar para cima\" [disabled]=\"i===0\">\n <i class=\"fas fa-caret-up p-up\" ></i>\n </button>\n </div>\n \n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i+1))\" title=\"Alterar para baixo\" [disabled]=\"(i+1) === (sort_items).length\">\n <i class=\"fas fa-caret-down p-down\"></i>\n </button>\n \n </div>\n </ng-container>\n </td>\n\n </tr>\n </ng-container> \n\n </table>\n \n </ng-container>", styles: [".table-sort-items{width:100%;border-collapse:initial}.order-control{text-align:center}.btn-item-action-arrow{border:none;background:none;cursor:pointer;padding:0;color:var(--tc-primary);font-size:16px;line-height:0}.btn-item-action-arrow:disabled{opacity:.4;cursor:not-allowed!important}.item-description{color:#a2a2a2}.area-name-description-item{border-radius:13px 0 0 13px;border:1px solid #ccc;padding:3px 13px}.area-action-item{background-color:var(--tc-gray-50);border-radius:0 13px 13px 0;border:1px solid #ccc;padding:3px;width:40px}\n"] }]
|
|
5235
|
+
args: [{ selector: 'tcloud-ui-reorder-items', standalone: true, imports: [CommonModule], template: "<ng-container *ngIf=\"sort_items\">\n\n\n\n <table class=\"table-sort-items\">\n\n \n\n\n <ng-container *ngFor=\"let item of sort_items; let i = index\">\n\n <tr>\n\n <td class=\"area-name-description-item\">\n {{ item }}\n <div *ngIf=\"get_description(item)\" class=\"item-description\">\n {{ get_description(item) }}\n </div>\n </td>\n\n <td class=\"area-action-item\">\n \n <ng-container>\n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i-1))\" title=\"Alterar para cima\" [disabled]=\"i===0\">\n <i class=\"fas fa-caret-up p-up\" ></i>\n </button>\n </div>\n \n <div class=\"order-control\">\n <button class=\"btn-item-action-arrow\" (click)=\"move(item, i, (i+1))\" title=\"Alterar para baixo\" [disabled]=\"(i+1) === (sort_items).length\">\n <i class=\"fas fa-caret-down p-down\"></i>\n </button>\n \n </div>\n </ng-container>\n </td>\n\n </tr>\n </ng-container> \n\n </table>\n \n </ng-container>", styles: [".table-sort-items{width:100%;border-collapse:initial}.order-control{text-align:center}.btn-item-action-arrow{border:none;background:none;cursor:pointer;padding:0;color:var(--tc-primary);font-size:16px;line-height:0}.btn-item-action-arrow:disabled{opacity:.4;cursor:not-allowed!important}.item-description{color:#a2a2a2}.area-name-description-item{background-color:#fff;border-radius:13px 0 0 13px;border:1px solid #ccc;padding:3px 13px}.area-action-item{background-color:var(--tc-gray-50);border-radius:0 13px 13px 0;border:1px solid #ccc;padding:3px;width:40px}\n"] }]
|
|
5211
5236
|
}], propDecorators: { items: [{
|
|
5212
5237
|
type: Input
|
|
5213
5238
|
}], itemsChange: [{
|
|
@@ -5282,11 +5307,11 @@ class TCloudUiContainerComponent {
|
|
|
5282
5307
|
this._containerService.set_expanded_signal(this._expanded);
|
|
5283
5308
|
}
|
|
5284
5309
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5285
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerComponent, isStandalone: true, selector: "tcloud-ui-container", inputs: { expanded: "expanded" }, providers: [ContainerService], ngImport: i0, template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:
|
|
5310
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerComponent, isStandalone: true, selector: "tcloud-ui-container", inputs: { expanded: "expanded" }, providers: [ContainerService], ngImport: i0, template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:block}\n"] }); }
|
|
5286
5311
|
}
|
|
5287
5312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerComponent, decorators: [{
|
|
5288
5313
|
type: Component,
|
|
5289
|
-
args: [{ selector: 'tcloud-ui-container', imports: [], providers: [ContainerService], template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:
|
|
5314
|
+
args: [{ selector: 'tcloud-ui-container', imports: [], providers: [ContainerService], template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:block}\n"] }]
|
|
5290
5315
|
}], propDecorators: { expanded: [{
|
|
5291
5316
|
type: Input
|
|
5292
5317
|
}] } });
|
|
@@ -5299,11 +5324,11 @@ class TCloudUiContainerColComponent {
|
|
|
5299
5324
|
return this._containerService.expanded_signal();
|
|
5300
5325
|
}
|
|
5301
5326
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerColComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5302
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerColComponent, isStandalone: true, selector: "tcloud-ui-container-col", ngImport: i0, template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:
|
|
5327
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerColComponent, isStandalone: true, selector: "tcloud-ui-container-col", ngImport: i0, template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:block}\n"] }); }
|
|
5303
5328
|
}
|
|
5304
5329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerColComponent, decorators: [{
|
|
5305
5330
|
type: Component,
|
|
5306
|
-
args: [{ selector: 'tcloud-ui-container-col', imports: [], template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:
|
|
5331
|
+
args: [{ selector: 'tcloud-ui-container-col', imports: [], template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:block}\n"] }]
|
|
5307
5332
|
}] });
|
|
5308
5333
|
|
|
5309
5334
|
class TCloudUiContainerContentComponent {
|
|
@@ -5314,11 +5339,11 @@ class TCloudUiContainerContentComponent {
|
|
|
5314
5339
|
return this._containerService.expanded_signal();
|
|
5315
5340
|
}
|
|
5316
5341
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5317
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerContentComponent, isStandalone: true, selector: "tcloud-ui-container-content", ngImport: i0, template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;width:100%;padding-
|
|
5342
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerContentComponent, isStandalone: true, selector: "tcloud-ui-container-content", ngImport: i0, template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;width:100%;padding-left:24px}.tc-rev-container-content{padding-left:52px}.content-expanded{padding-left:232px}\n", ":host{display:block}.tc-rev-container{display:block}\n"] }); }
|
|
5318
5343
|
}
|
|
5319
5344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerContentComponent, decorators: [{
|
|
5320
5345
|
type: Component,
|
|
5321
|
-
args: [{ selector: 'tcloud-ui-container-content', imports: [], template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;width:100%;padding-
|
|
5346
|
+
args: [{ selector: 'tcloud-ui-container-content', imports: [], template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;width:100%;padding-left:24px}.tc-rev-container-content{padding-left:52px}.content-expanded{padding-left:232px}\n", ":host{display:block}.tc-rev-container{display:block}\n"] }]
|
|
5322
5347
|
}] });
|
|
5323
5348
|
|
|
5324
5349
|
class TCloudUiAlignDirective {
|
|
@@ -6530,6 +6555,176 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6530
6555
|
type: Output
|
|
6531
6556
|
}] } });
|
|
6532
6557
|
|
|
6558
|
+
class TCloudUiDeviceUtilsService {
|
|
6559
|
+
constructor(rendererFactory) {
|
|
6560
|
+
/*** Viewport mobile ***/
|
|
6561
|
+
this.DESKTOP_MIN = 480;
|
|
6562
|
+
this.widthScreen = signal(window.innerWidth);
|
|
6563
|
+
// largura atual da viewport
|
|
6564
|
+
this.width = computed(() => this.widthScreen());
|
|
6565
|
+
this.isDesktop = computed(() => this.width() > this.DESKTOP_MIN);
|
|
6566
|
+
this.isMobile = computed(() => this.width() <= this.DESKTOP_MIN);
|
|
6567
|
+
this.menuHost = null;
|
|
6568
|
+
this.embeddedView = null;
|
|
6569
|
+
this.appRef = inject(ApplicationRef);
|
|
6570
|
+
this.animationBuilder = inject(AnimationBuilder);
|
|
6571
|
+
this.player = null;
|
|
6572
|
+
this.renderer = rendererFactory.createRenderer(null, null);
|
|
6573
|
+
window.addEventListener('resize', () => {
|
|
6574
|
+
this.widthScreen.set(window.innerWidth);
|
|
6575
|
+
});
|
|
6576
|
+
}
|
|
6577
|
+
openDropdownDevice(menuTemplate) {
|
|
6578
|
+
this.menuHost = this.renderer.createElement('div');
|
|
6579
|
+
this.renderer.setStyle(this.menuHost, 'position', 'fixed');
|
|
6580
|
+
this.renderer.setStyle(this.menuHost, 'top', '0');
|
|
6581
|
+
this.renderer.setStyle(this.menuHost, 'left', '0');
|
|
6582
|
+
this.renderer.setStyle(this.menuHost, 'width', '100vw');
|
|
6583
|
+
this.renderer.setStyle(this.menuHost, 'height', '100vh');
|
|
6584
|
+
this.renderer.setStyle(this.menuHost, 'z-index', '9999');
|
|
6585
|
+
this.renderer.setStyle(this.menuHost, 'opacity', '0');
|
|
6586
|
+
this.renderer.appendChild(document.body, this.menuHost);
|
|
6587
|
+
// Impede scroll da página externa enquanto o dropdown está aberto
|
|
6588
|
+
this.renderer.setStyle(document.body, 'overflow', 'hidden');
|
|
6589
|
+
this.renderer.setStyle(document.body, 'touch-action', 'none');
|
|
6590
|
+
this.embeddedView = menuTemplate.createEmbeddedView({});
|
|
6591
|
+
this.appRef.attachView(this.embeddedView);
|
|
6592
|
+
this.embeddedView.rootNodes.forEach((node) => {
|
|
6593
|
+
this.renderer.appendChild(this.menuHost, node);
|
|
6594
|
+
});
|
|
6595
|
+
const fadeIn = this.animationBuilder.build([
|
|
6596
|
+
style({ opacity: 0 }),
|
|
6597
|
+
animate('200ms ease', style({ opacity: 1 })),
|
|
6598
|
+
]);
|
|
6599
|
+
this.player = fadeIn.create(this.menuHost);
|
|
6600
|
+
this.player.play();
|
|
6601
|
+
}
|
|
6602
|
+
closeDropdownDevice() {
|
|
6603
|
+
if (!this.menuHost)
|
|
6604
|
+
return;
|
|
6605
|
+
const fadeOut = this.animationBuilder.build([
|
|
6606
|
+
style({ opacity: 1 }),
|
|
6607
|
+
animate('200ms ease', style({ opacity: 0 })),
|
|
6608
|
+
]);
|
|
6609
|
+
this.player = fadeOut.create(this.menuHost);
|
|
6610
|
+
this.player.play();
|
|
6611
|
+
this.player.onDone(() => {
|
|
6612
|
+
this.renderer.removeStyle(document.body, 'overflow');
|
|
6613
|
+
this.renderer.removeStyle(document.body, 'touch-action');
|
|
6614
|
+
if (this.embeddedView) {
|
|
6615
|
+
this.appRef.detachView(this.embeddedView);
|
|
6616
|
+
this.embeddedView.destroy();
|
|
6617
|
+
this.embeddedView = null;
|
|
6618
|
+
}
|
|
6619
|
+
this.renderer.removeChild(document.body, this.menuHost);
|
|
6620
|
+
this.menuHost = null;
|
|
6621
|
+
this.player = null;
|
|
6622
|
+
});
|
|
6623
|
+
}
|
|
6624
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDeviceUtilsService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6625
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDeviceUtilsService, providedIn: 'root' }); }
|
|
6626
|
+
}
|
|
6627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDeviceUtilsService, decorators: [{
|
|
6628
|
+
type: Injectable,
|
|
6629
|
+
args: [{
|
|
6630
|
+
providedIn: 'root',
|
|
6631
|
+
}]
|
|
6632
|
+
}], ctorParameters: () => [{ type: i0.RendererFactory2 }] });
|
|
6633
|
+
|
|
6634
|
+
class TCloudUiCardComponent {
|
|
6635
|
+
constructor() {
|
|
6636
|
+
this._viewPort = inject(TCloudUiDeviceUtilsService);
|
|
6637
|
+
this.isDesktop = this._viewPort.isDesktop;
|
|
6638
|
+
}
|
|
6639
|
+
/**
|
|
6640
|
+
* APPLY FUNCTIONS RESPONSIVE < 480PX
|
|
6641
|
+
*/
|
|
6642
|
+
get extraClasses() {
|
|
6643
|
+
if (this.isDesktop()) {
|
|
6644
|
+
return ['shadow-md', 'pad-16'];
|
|
6645
|
+
}
|
|
6646
|
+
//Responsive Classes
|
|
6647
|
+
return ['shadow-sm', 'pad-14'];
|
|
6648
|
+
}
|
|
6649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6650
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiCardComponent, isStandalone: true, selector: "tcloud-ui-card", ngImport: i0, template: "<div class=\"tcloud-ui-card bg-c-neutral-50 bor-rad-16\"\n[ngClass]=\"extraClasses\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
6651
|
+
}
|
|
6652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiCardComponent, decorators: [{
|
|
6653
|
+
type: Component,
|
|
6654
|
+
args: [{ selector: 'tcloud-ui-card', imports: [CommonModule], template: "<div class=\"tcloud-ui-card bg-c-neutral-50 bor-rad-16\"\n[ngClass]=\"extraClasses\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}\n"] }]
|
|
6655
|
+
}] });
|
|
6656
|
+
|
|
6657
|
+
class TCloudUiCardTitleComponent {
|
|
6658
|
+
constructor() {
|
|
6659
|
+
this.title = input.required();
|
|
6660
|
+
}
|
|
6661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6662
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.18", type: TCloudUiCardTitleComponent, isStandalone: true, selector: "tcloud-ui-card-title", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"tcloud-ui-card-title c-neutral-700\">\n <span class=\"tcloud-ui-card-title__icon w-40 h-40 f-size-18 bg-c-neutral-200 bor-rad-rounded\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n\n <h2 class=\"tcloud-ui-card-title__text f-h2 f-weight-700 mar-none\">{{title()}}</h2>\n\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}.tcloud-ui-card-title{align-items:center;display:flex;gap:var(--size-8);height:var(--size-40);max-height:var(--size-40);min-height:var(--size-40)}.tcloud-ui-card-title__icon{align-content:center;text-align:center;max-width:var(--size-40);min-width:var(--size-40);max-height:var(--size-40);min-height:var(--size-40)}.tcloud-ui-card-title__text{cursor:default}@media(max-width:480px){.tcloud-ui-card-title{max-height:var(--size-32);min-height:var(--size-32)}.tcloud-ui-card-title__icon{max-width:var(--size-32);min-width:var(--size-32);max-height:var(--size-32);min-height:var(--size-32);font-size:var(--f-size-16)}.tcloud-ui-card-title__text{font-size:var(--f-size-16);line-height:var(--l-height-16);font-weight:var(--f-weight-600);text-transform:inherit;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-clamp:2;-webkit-line-clamp:2}}\n"] }); }
|
|
6663
|
+
}
|
|
6664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiCardTitleComponent, decorators: [{
|
|
6665
|
+
type: Component,
|
|
6666
|
+
args: [{ selector: 'tcloud-ui-card-title', imports: [], template: "<div class=\"tcloud-ui-card-title c-neutral-700\">\n <span class=\"tcloud-ui-card-title__icon w-40 h-40 f-size-18 bg-c-neutral-200 bor-rad-rounded\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n\n <h2 class=\"tcloud-ui-card-title__text f-h2 f-weight-700 mar-none\">{{title()}}</h2>\n\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}.tcloud-ui-card-title{align-items:center;display:flex;gap:var(--size-8);height:var(--size-40);max-height:var(--size-40);min-height:var(--size-40)}.tcloud-ui-card-title__icon{align-content:center;text-align:center;max-width:var(--size-40);min-width:var(--size-40);max-height:var(--size-40);min-height:var(--size-40)}.tcloud-ui-card-title__text{cursor:default}@media(max-width:480px){.tcloud-ui-card-title{max-height:var(--size-32);min-height:var(--size-32)}.tcloud-ui-card-title__icon{max-width:var(--size-32);min-width:var(--size-32);max-height:var(--size-32);min-height:var(--size-32);font-size:var(--f-size-16)}.tcloud-ui-card-title__text{font-size:var(--f-size-16);line-height:var(--l-height-16);font-weight:var(--f-weight-600);text-transform:inherit;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-clamp:2;-webkit-line-clamp:2}}\n"] }]
|
|
6667
|
+
}] });
|
|
6668
|
+
|
|
6669
|
+
class TCloudUiSubNavbarItemComponent {
|
|
6670
|
+
constructor() {
|
|
6671
|
+
this.isMenuExpanded = false;
|
|
6672
|
+
this.label = input.required();
|
|
6673
|
+
this.onClick = output();
|
|
6674
|
+
this.active = input(false);
|
|
6675
|
+
this.routerLink = input(null);
|
|
6676
|
+
this.queryParams = input(null);
|
|
6677
|
+
}
|
|
6678
|
+
handleClick(_ev) {
|
|
6679
|
+
this.onClick.emit(_ev);
|
|
6680
|
+
}
|
|
6681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6682
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TCloudUiSubNavbarItemComponent, isStandalone: true, selector: "tcloud-ui-sub-navbar-item", inputs: { isMenuExpanded: { classPropertyName: "isMenuExpanded", publicName: "isMenuExpanded", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<li\n class=\"tc-sub-navbar-item\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded\">\n <a\n class=\"tc-sub-navbar-item-link\"\n [class.selected]=\"active()\"\n [routerLink]=\"routerLink()\"\n routerLinkActive=\"active\"\n [queryParams]=\"queryParams()\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [title]=\"label()\"\n (click)=\"handleClick($event)\">\n\n <div class=\"navbar-item-icon-container\">\n <ng-content select=\"[icon]\"></ng-content>\n </div>\n\n @if (isMenuExpanded)\n {\n <div class=\"navbar-item-label\">\n {{label()}}\n </div>\n }\n </a>\n</li>\n", styles: [":host{display:block}.tc-sub-navbar-item{list-style:none;margin:0;padding:0}.tc-sub-navbar-item .tc-sub-navbar-item-link{align-items:center;border-radius:var(--bor-radius-4);color:var(--c-neutral-700);cursor:pointer;font-family:var(--f-family);display:flex;transition:all .2s ease;text-decoration:none}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container{text-align:center;align-content:center;background-color:var(--c-neutral-50);border-radius:var(--bor-radius-4);font-size:var(--f-size-20);height:var(--size-36);width:var(--size-36);transition:all .2s ease;min-height:var(--size-36);min-width:var(--size-36);max-height:var(--size-36);max-width:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:focus{background-color:var(--c-neutral-200);color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-label{align-content:center;color:var(--c-neutral-700);font-size:var(--f-size-14);height:var(--size-36);padding-left:var(--size-8);transition:all .2s ease;min-height:var(--size-36);max-height:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link:focus{color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link.selected .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link:active .navbar-item-icon-container{background-color:var(--c-primary-300);color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link .navbar-item-icon-container{background-color:var(--c-neutral-200)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:hover .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:focus .navbar-item-label{color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-icon-container{background-color:var(--c-primary-300)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-label{color:var(--c-primary-500);font-weight:var(--f-weight-700)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] }); }
|
|
6683
|
+
}
|
|
6684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarItemComponent, decorators: [{
|
|
6685
|
+
type: Component,
|
|
6686
|
+
args: [{ selector: 'tcloud-ui-sub-navbar-item', imports: [
|
|
6687
|
+
CommonModule,
|
|
6688
|
+
RouterModule,
|
|
6689
|
+
], template: "<li\n class=\"tc-sub-navbar-item\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded\">\n <a\n class=\"tc-sub-navbar-item-link\"\n [class.selected]=\"active()\"\n [routerLink]=\"routerLink()\"\n routerLinkActive=\"active\"\n [queryParams]=\"queryParams()\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [title]=\"label()\"\n (click)=\"handleClick($event)\">\n\n <div class=\"navbar-item-icon-container\">\n <ng-content select=\"[icon]\"></ng-content>\n </div>\n\n @if (isMenuExpanded)\n {\n <div class=\"navbar-item-label\">\n {{label()}}\n </div>\n }\n </a>\n</li>\n", styles: [":host{display:block}.tc-sub-navbar-item{list-style:none;margin:0;padding:0}.tc-sub-navbar-item .tc-sub-navbar-item-link{align-items:center;border-radius:var(--bor-radius-4);color:var(--c-neutral-700);cursor:pointer;font-family:var(--f-family);display:flex;transition:all .2s ease;text-decoration:none}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container{text-align:center;align-content:center;background-color:var(--c-neutral-50);border-radius:var(--bor-radius-4);font-size:var(--f-size-20);height:var(--size-36);width:var(--size-36);transition:all .2s ease;min-height:var(--size-36);min-width:var(--size-36);max-height:var(--size-36);max-width:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:focus{background-color:var(--c-neutral-200);color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-label{align-content:center;color:var(--c-neutral-700);font-size:var(--f-size-14);height:var(--size-36);padding-left:var(--size-8);transition:all .2s ease;min-height:var(--size-36);max-height:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link:focus{color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link.selected .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link:active .navbar-item-icon-container{background-color:var(--c-primary-300);color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link .navbar-item-icon-container{background-color:var(--c-neutral-200)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:hover .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:focus .navbar-item-label{color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-icon-container{background-color:var(--c-primary-300)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-label{color:var(--c-primary-500);font-weight:var(--f-weight-700)}\n"] }]
|
|
6690
|
+
}], propDecorators: { isMenuExpanded: [{
|
|
6691
|
+
type: Input
|
|
6692
|
+
}] } });
|
|
6693
|
+
|
|
6694
|
+
class TCloudUiSubNavbarComponent {
|
|
6695
|
+
constructor() {
|
|
6696
|
+
this.isMenuExpanded = signal(true);
|
|
6697
|
+
this.onSubMenuExpandChange = output();
|
|
6698
|
+
}
|
|
6699
|
+
ngAfterContentInit() {
|
|
6700
|
+
setTimeout(() => this.setExpandedMenuValueToChildrend(), 0);
|
|
6701
|
+
}
|
|
6702
|
+
handleExpandMenu() {
|
|
6703
|
+
this.isMenuExpanded.update((value) => !value);
|
|
6704
|
+
this.setExpandedMenuValueToChildrend();
|
|
6705
|
+
}
|
|
6706
|
+
setExpandedMenuValueToChildrend() {
|
|
6707
|
+
if (!this.subNavbarItems?.length)
|
|
6708
|
+
return;
|
|
6709
|
+
this.subNavbarItems.forEach((x) => {
|
|
6710
|
+
x.isMenuExpanded = this.isMenuExpanded();
|
|
6711
|
+
});
|
|
6712
|
+
this.onSubMenuExpandChange.emit(this.isMenuExpanded());
|
|
6713
|
+
}
|
|
6714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6715
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiSubNavbarComponent, isStandalone: true, selector: "tcloud-ui-sub-navbar", outputs: { onSubMenuExpandChange: "onSubMenuExpandChange" }, queries: [{ propertyName: "subNavbarItems", predicate: TCloudUiSubNavbarItemComponent }], ngImport: i0, template: "<nav class=\"tc-sub-navbar\">\n <ul\n class=\"tc-sub-navbar-list\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded()\"\n >\n <tcloud-ui-sub-navbar-item\n [isMenuExpanded]=\"isMenuExpanded()\"\n (click)=\"handleExpandMenu()\"\n label=\"Minimizar\"\n >\n <i\n class=\"fa-light\"\n [class.fa-arrow-left-to-line]=\"isMenuExpanded()\"\n [class.fa-arrow-right-to-line]=\"!isMenuExpanded()\"\n icon\n ></i>\n </tcloud-ui-sub-navbar-item>\n <ng-content></ng-content>\n </ul>\n</nav>\n", styles: [":host{display:block;height:100%}.tc-sub-navbar{height:100%;margin:var(--size-0);padding:var(--size-0)}.tc-sub-navbar .tc-sub-navbar-list{background-color:var(--c-neutral-50);color:var(--c-neutral-700);box-shadow:var(--shadow-xs);border-radius:var(--bor-radius-8);display:flex;flex-direction:column;gap:var(--size-8);height:100%;list-style:none;margin:var(--size-0);overflow:hidden auto;padding:var(--size-8);width:var(--size-52)}.tc-sub-navbar .tc-sub-navbar-list::-webkit-scrollbar{display:none}.tc-sub-navbar .tc-sub-navbar-list.tc-rev-submenu-expanded{width:14.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TCloudUiSubNavbarItemComponent, selector: "tcloud-ui-sub-navbar-item", inputs: ["isMenuExpanded", "label", "active", "routerLink", "queryParams"], outputs: ["onClick"] }] }); }
|
|
6716
|
+
}
|
|
6717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarComponent, decorators: [{
|
|
6718
|
+
type: Component,
|
|
6719
|
+
args: [{ selector: 'tcloud-ui-sub-navbar', imports: [
|
|
6720
|
+
CommonModule,
|
|
6721
|
+
TCloudUiSubNavbarItemComponent,
|
|
6722
|
+
], template: "<nav class=\"tc-sub-navbar\">\n <ul\n class=\"tc-sub-navbar-list\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded()\"\n >\n <tcloud-ui-sub-navbar-item\n [isMenuExpanded]=\"isMenuExpanded()\"\n (click)=\"handleExpandMenu()\"\n label=\"Minimizar\"\n >\n <i\n class=\"fa-light\"\n [class.fa-arrow-left-to-line]=\"isMenuExpanded()\"\n [class.fa-arrow-right-to-line]=\"!isMenuExpanded()\"\n icon\n ></i>\n </tcloud-ui-sub-navbar-item>\n <ng-content></ng-content>\n </ul>\n</nav>\n", styles: [":host{display:block;height:100%}.tc-sub-navbar{height:100%;margin:var(--size-0);padding:var(--size-0)}.tc-sub-navbar .tc-sub-navbar-list{background-color:var(--c-neutral-50);color:var(--c-neutral-700);box-shadow:var(--shadow-xs);border-radius:var(--bor-radius-8);display:flex;flex-direction:column;gap:var(--size-8);height:100%;list-style:none;margin:var(--size-0);overflow:hidden auto;padding:var(--size-8);width:var(--size-52)}.tc-sub-navbar .tc-sub-navbar-list::-webkit-scrollbar{display:none}.tc-sub-navbar .tc-sub-navbar-list.tc-rev-submenu-expanded{width:14.5rem}\n"] }]
|
|
6723
|
+
}], propDecorators: { subNavbarItems: [{
|
|
6724
|
+
type: ContentChildren,
|
|
6725
|
+
args: [TCloudUiSubNavbarItemComponent]
|
|
6726
|
+
}] } });
|
|
6727
|
+
|
|
6533
6728
|
const COMPONENTS = [
|
|
6534
6729
|
TCloudUiAccordionComponent,
|
|
6535
6730
|
TCloudUiAccordionBodyComponent,
|
|
@@ -6561,6 +6756,7 @@ const COMPONENTS = [
|
|
|
6561
6756
|
TCloudUiTableComponent,
|
|
6562
6757
|
TCloudUiInputPasswordComponent,
|
|
6563
6758
|
TCloudUiLabelTokenComponent,
|
|
6759
|
+
TCloudUiToastComponent,
|
|
6564
6760
|
TCloudUiLineStepTitleComponent,
|
|
6565
6761
|
TCloudUiLoadingComponent,
|
|
6566
6762
|
TCloudUiCubesComponent,
|
|
@@ -6571,7 +6767,11 @@ const COMPONENTS = [
|
|
|
6571
6767
|
TCloudUiContainerComponent,
|
|
6572
6768
|
TCloudUiContainerColComponent,
|
|
6573
6769
|
TCloudUiContainerContentComponent,
|
|
6574
|
-
TCloudUiPaginationComponent
|
|
6770
|
+
TCloudUiPaginationComponent,
|
|
6771
|
+
TCloudUiCardComponent,
|
|
6772
|
+
TCloudUiCardTitleComponent,
|
|
6773
|
+
TCloudUiSubNavbarComponent,
|
|
6774
|
+
TCloudUiSubNavbarItemComponent
|
|
6575
6775
|
];
|
|
6576
6776
|
const DIRECTIVES = [
|
|
6577
6777
|
TCloudUiAlignDirective,
|
|
@@ -6653,6 +6853,7 @@ class TCloudUiModule {
|
|
|
6653
6853
|
TCloudUiTableComponent,
|
|
6654
6854
|
TCloudUiInputPasswordComponent,
|
|
6655
6855
|
TCloudUiLabelTokenComponent,
|
|
6856
|
+
TCloudUiToastComponent,
|
|
6656
6857
|
TCloudUiLineStepTitleComponent,
|
|
6657
6858
|
TCloudUiLoadingComponent,
|
|
6658
6859
|
TCloudUiCubesComponent,
|
|
@@ -6663,7 +6864,11 @@ class TCloudUiModule {
|
|
|
6663
6864
|
TCloudUiContainerComponent,
|
|
6664
6865
|
TCloudUiContainerColComponent,
|
|
6665
6866
|
TCloudUiContainerContentComponent,
|
|
6666
|
-
TCloudUiPaginationComponent,
|
|
6867
|
+
TCloudUiPaginationComponent,
|
|
6868
|
+
TCloudUiCardComponent,
|
|
6869
|
+
TCloudUiCardTitleComponent,
|
|
6870
|
+
TCloudUiSubNavbarComponent,
|
|
6871
|
+
TCloudUiSubNavbarItemComponent, TCloudUiAlignDirective,
|
|
6667
6872
|
TCloudUiCurrencyDirective,
|
|
6668
6873
|
TCloudUiElCopyDirective,
|
|
6669
6874
|
TCloudUiHoverParentDirective,
|
|
@@ -6713,6 +6918,7 @@ class TCloudUiModule {
|
|
|
6713
6918
|
TCloudUiTableComponent,
|
|
6714
6919
|
TCloudUiInputPasswordComponent,
|
|
6715
6920
|
TCloudUiLabelTokenComponent,
|
|
6921
|
+
TCloudUiToastComponent,
|
|
6716
6922
|
TCloudUiLineStepTitleComponent,
|
|
6717
6923
|
TCloudUiLoadingComponent,
|
|
6718
6924
|
TCloudUiCubesComponent,
|
|
@@ -6723,7 +6929,11 @@ class TCloudUiModule {
|
|
|
6723
6929
|
TCloudUiContainerComponent,
|
|
6724
6930
|
TCloudUiContainerColComponent,
|
|
6725
6931
|
TCloudUiContainerContentComponent,
|
|
6726
|
-
TCloudUiPaginationComponent,
|
|
6932
|
+
TCloudUiPaginationComponent,
|
|
6933
|
+
TCloudUiCardComponent,
|
|
6934
|
+
TCloudUiCardTitleComponent,
|
|
6935
|
+
TCloudUiSubNavbarComponent,
|
|
6936
|
+
TCloudUiSubNavbarItemComponent, TCloudUiAlignDirective,
|
|
6727
6937
|
TCloudUiCurrencyDirective,
|
|
6728
6938
|
TCloudUiElCopyDirective,
|
|
6729
6939
|
TCloudUiHoverParentDirective,
|
|
@@ -6778,6 +6988,7 @@ class TCloudUiModule {
|
|
|
6778
6988
|
TCloudUiTableComponent,
|
|
6779
6989
|
TCloudUiInputPasswordComponent,
|
|
6780
6990
|
TCloudUiLabelTokenComponent,
|
|
6991
|
+
TCloudUiToastComponent,
|
|
6781
6992
|
TCloudUiLineStepTitleComponent,
|
|
6782
6993
|
TCloudUiLoadingComponent,
|
|
6783
6994
|
TCloudUiCubesComponent,
|
|
@@ -6785,7 +6996,10 @@ class TCloudUiModule {
|
|
|
6785
6996
|
TCloudUiProgressBarComponent,
|
|
6786
6997
|
TCloudUiReorderItemsComponent,
|
|
6787
6998
|
TCloudUiWelcomeComponent,
|
|
6788
|
-
TCloudUiPaginationComponent
|
|
6999
|
+
TCloudUiPaginationComponent,
|
|
7000
|
+
TCloudUiCardComponent,
|
|
7001
|
+
TCloudUiSubNavbarComponent,
|
|
7002
|
+
TCloudUiSubNavbarItemComponent] }); }
|
|
6789
7003
|
}
|
|
6790
7004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiModule, decorators: [{
|
|
6791
7005
|
type: NgModule,
|
|
@@ -6855,6 +7069,68 @@ function provideTCloudUi(config) {
|
|
|
6855
7069
|
return makeEnvironmentProviders(providers);
|
|
6856
7070
|
}
|
|
6857
7071
|
|
|
7072
|
+
class TCloudUiBreadcrumbService {
|
|
7073
|
+
constructor() {
|
|
7074
|
+
this.breadcrumbsSubject = new BehaviorSubject([]);
|
|
7075
|
+
this.breadcrumbs$ = this.breadcrumbsSubject.asObservable();
|
|
7076
|
+
}
|
|
7077
|
+
setBreadcrumb(items) {
|
|
7078
|
+
this.breadcrumbsSubject.next(items);
|
|
7079
|
+
}
|
|
7080
|
+
addLevel(item) {
|
|
7081
|
+
const currentItems = this.breadcrumbsSubject.getValue();
|
|
7082
|
+
this.breadcrumbsSubject.next([...currentItems, item]);
|
|
7083
|
+
}
|
|
7084
|
+
removeLastLevel() {
|
|
7085
|
+
const currentItems = this.breadcrumbsSubject.getValue();
|
|
7086
|
+
if (currentItems.length > 0) {
|
|
7087
|
+
const newItems = [...currentItems];
|
|
7088
|
+
newItems.pop();
|
|
7089
|
+
this.breadcrumbsSubject.next(newItems);
|
|
7090
|
+
}
|
|
7091
|
+
}
|
|
7092
|
+
clear() {
|
|
7093
|
+
this.breadcrumbsSubject.next([]);
|
|
7094
|
+
}
|
|
7095
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiBreadcrumbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7096
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiBreadcrumbService, providedIn: 'root' }); }
|
|
7097
|
+
}
|
|
7098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiBreadcrumbService, decorators: [{
|
|
7099
|
+
type: Injectable,
|
|
7100
|
+
args: [{
|
|
7101
|
+
providedIn: 'root',
|
|
7102
|
+
}]
|
|
7103
|
+
}], ctorParameters: () => [] });
|
|
7104
|
+
|
|
7105
|
+
class TCloudUiBreadcrumbComponent {
|
|
7106
|
+
constructor() {
|
|
7107
|
+
this.breadcrumbs = [];
|
|
7108
|
+
this.router = inject(Router);
|
|
7109
|
+
this.breadcrumbService = inject(TCloudUiBreadcrumbService);
|
|
7110
|
+
}
|
|
7111
|
+
ngOnInit() {
|
|
7112
|
+
this.breadcrumbService.breadcrumbs$.subscribe(items => this.breadcrumbs = items);
|
|
7113
|
+
}
|
|
7114
|
+
navigate(url, index) {
|
|
7115
|
+
if (url) {
|
|
7116
|
+
this.router.navigateByUrl(url);
|
|
7117
|
+
// Opcional: remover níveis do breadcrumb após o clicado
|
|
7118
|
+
if (index !== undefined && index < this.breadcrumbs.length - 1) {
|
|
7119
|
+
this.breadcrumbService.setBreadcrumb(this.breadcrumbs.slice(0, index + 1));
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
}
|
|
7123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TCloudUiBreadcrumbComponent, isStandalone: true, selector: "tcloud-ui-breadcrumb", ngImport: i0, template: "<nav aria-label=\"breadcrumb\" class=\"tcloud-ui-breadcrumb\">\n <ol class=\"tcloud-ui-breadcrumb-list\">\n <!-- Link para o Dashboard -->\n <li class=\"tcloud-ui-breadcrumb-item\">\n <a [routerLink]=\"['/dashboard']\"><i class=\"fa-light fa-house-blank\"></i>\n @if (breadcrumbs.length > 0)\n {\n <i class=\"fa-light fa-chevron-right\"></i>\n }\n @else\n {\n P\u00E1gina inicial\n }\n </a>\n </li>\n\n <!-- Itera\u00E7\u00E3o sobre os itens do breadcrumb -->\n <li\n *ngFor=\"let breadcrumb of breadcrumbs; let i = index; let last = last\"\n class=\"tcloud-ui-breadcrumb-item\"\n [ngClass]=\"{ 'active': last }\"\n [attr.aria-current]=\"last ? 'page' : null\">\n <ng-container *ngIf=\"!last\">\n <a (click)=\"navigate(breadcrumb.url, i)\">{{ breadcrumb.label }}</a>\n <i class=\"fa-light fa-chevron-right\"></i>\n </ng-container>\n <ng-container *ngIf=\"last\">\n {{ breadcrumb.label }}\n </ng-container>\n </li>\n </ol>\n</nav>\n", styles: [":host{display:block}.tcloud-ui-breadcrumb-list{display:flex;list-style:none;padding:0;margin:0;margin-bottom:var(--size-24)}.tcloud-ui-breadcrumb-item{display:flex;align-items:center;color:var(--c-neutral-700);font-size:var(--f-size-14);font-family:var(--f-family)}.tcloud-ui-breadcrumb-item a{text-decoration:none;color:inherit;cursor:pointer}.tcloud-ui-breadcrumb-item a:hover{text-decoration:underline}.tcloud-ui-breadcrumb-item i{margin:0}.tcloud-ui-breadcrumb-item i.fa-chevron-right{margin:0 var(--size-12)}.tcloud-ui-breadcrumb-item.active{pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
7125
|
+
}
|
|
7126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiBreadcrumbComponent, decorators: [{
|
|
7127
|
+
type: Component,
|
|
7128
|
+
args: [{ selector: 'tcloud-ui-breadcrumb', imports: [
|
|
7129
|
+
CommonModule,
|
|
7130
|
+
RouterModule
|
|
7131
|
+
], template: "<nav aria-label=\"breadcrumb\" class=\"tcloud-ui-breadcrumb\">\n <ol class=\"tcloud-ui-breadcrumb-list\">\n <!-- Link para o Dashboard -->\n <li class=\"tcloud-ui-breadcrumb-item\">\n <a [routerLink]=\"['/dashboard']\"><i class=\"fa-light fa-house-blank\"></i>\n @if (breadcrumbs.length > 0)\n {\n <i class=\"fa-light fa-chevron-right\"></i>\n }\n @else\n {\n P\u00E1gina inicial\n }\n </a>\n </li>\n\n <!-- Itera\u00E7\u00E3o sobre os itens do breadcrumb -->\n <li\n *ngFor=\"let breadcrumb of breadcrumbs; let i = index; let last = last\"\n class=\"tcloud-ui-breadcrumb-item\"\n [ngClass]=\"{ 'active': last }\"\n [attr.aria-current]=\"last ? 'page' : null\">\n <ng-container *ngIf=\"!last\">\n <a (click)=\"navigate(breadcrumb.url, i)\">{{ breadcrumb.label }}</a>\n <i class=\"fa-light fa-chevron-right\"></i>\n </ng-container>\n <ng-container *ngIf=\"last\">\n {{ breadcrumb.label }}\n </ng-container>\n </li>\n </ol>\n</nav>\n", styles: [":host{display:block}.tcloud-ui-breadcrumb-list{display:flex;list-style:none;padding:0;margin:0;margin-bottom:var(--size-24)}.tcloud-ui-breadcrumb-item{display:flex;align-items:center;color:var(--c-neutral-700);font-size:var(--f-size-14);font-family:var(--f-family)}.tcloud-ui-breadcrumb-item a{text-decoration:none;color:inherit;cursor:pointer}.tcloud-ui-breadcrumb-item a:hover{text-decoration:underline}.tcloud-ui-breadcrumb-item i{margin:0}.tcloud-ui-breadcrumb-item i.fa-chevron-right{margin:0 var(--size-12)}.tcloud-ui-breadcrumb-item.active{pointer-events:none}\n"] }]
|
|
7132
|
+
}], ctorParameters: () => [] });
|
|
7133
|
+
|
|
6858
7134
|
class TCloudUiLoadingTransitionsService {
|
|
6859
7135
|
constructor() {
|
|
6860
7136
|
this.ID = 'tcloud-ui-loading-transitions';
|
|
@@ -6905,64 +7181,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6905
7181
|
}]
|
|
6906
7182
|
}], ctorParameters: () => [] });
|
|
6907
7183
|
|
|
6908
|
-
class TCloudUiSubNavbarItemComponent {
|
|
6909
|
-
constructor() {
|
|
6910
|
-
this.label = input.required();
|
|
6911
|
-
this.onClick = output();
|
|
6912
|
-
this.active = input(false);
|
|
6913
|
-
this.routerLink = input(null);
|
|
6914
|
-
this.queryParams = input(null);
|
|
6915
|
-
}
|
|
6916
|
-
handleClick(_ev) {
|
|
6917
|
-
this.onClick.emit(_ev);
|
|
6918
|
-
}
|
|
6919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6920
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TCloudUiSubNavbarItemComponent, isStandalone: true, selector: "tcloud-ui-sub-navbar-item", inputs: { isMenuExpanded: { classPropertyName: "isMenuExpanded", publicName: "isMenuExpanded", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<li\n class=\"tc-sub-navbar-item\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded\">\n <a\n class=\"tc-sub-navbar-item-link\"\n [class.selected]=\"active()\"\n [routerLink]=\"routerLink()\"\n routerLinkActive=\"active\"\n [queryParams]=\"queryParams()\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [title]=\"label()\"\n (click)=\"handleClick($event)\">\n\n <div class=\"navbar-item-icon-container\">\n <ng-content select=\"[icon]\"></ng-content>\n </div>\n\n @if (isMenuExpanded)\n {\n <div class=\"navbar-item-label\">\n {{label()}}\n </div>\n }\n </a>\n</li>\n", styles: [":host{display:block}.tc-sub-navbar-item{list-style:none;margin:0;padding:0}.tc-sub-navbar-item .tc-sub-navbar-item-link{align-items:center;border-radius:var(--bor-radius-4);color:var(--c-neutral-700);cursor:pointer;font-family:var(--f-family);display:flex;transition:all .2s ease;text-decoration:none}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container{text-align:center;align-content:center;background-color:var(--c-neutral-50);border-radius:var(--bor-radius-4);font-size:var(--f-size-20);height:var(--size-36);width:var(--size-36);transition:all .2s ease;min-height:var(--size-36);min-width:var(--size-36);max-height:var(--size-36);max-width:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:focus{background-color:var(--c-neutral-200);color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-label{align-content:center;color:var(--c-neutral-700);font-size:var(--f-size-14);height:var(--size-36);padding-left:var(--size-8);transition:all .2s ease;min-height:var(--size-36);max-height:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link:focus{color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link.selected .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link:active .navbar-item-icon-container{background-color:var(--c-primary-300);color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link .navbar-item-icon-container{background-color:var(--c-neutral-200)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:hover .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:focus .navbar-item-label{color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-icon-container{background-color:var(--c-primary-300)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-label{color:var(--c-primary-500);font-weight:var(--f-weight-700)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] }); }
|
|
6921
|
-
}
|
|
6922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarItemComponent, decorators: [{
|
|
6923
|
-
type: Component,
|
|
6924
|
-
args: [{ selector: 'tcloud-ui-sub-navbar-item', imports: [
|
|
6925
|
-
CommonModule,
|
|
6926
|
-
RouterModule,
|
|
6927
|
-
], template: "<li\n class=\"tc-sub-navbar-item\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded\">\n <a\n class=\"tc-sub-navbar-item-link\"\n [class.selected]=\"active()\"\n [routerLink]=\"routerLink()\"\n routerLinkActive=\"active\"\n [queryParams]=\"queryParams()\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [title]=\"label()\"\n (click)=\"handleClick($event)\">\n\n <div class=\"navbar-item-icon-container\">\n <ng-content select=\"[icon]\"></ng-content>\n </div>\n\n @if (isMenuExpanded)\n {\n <div class=\"navbar-item-label\">\n {{label()}}\n </div>\n }\n </a>\n</li>\n", styles: [":host{display:block}.tc-sub-navbar-item{list-style:none;margin:0;padding:0}.tc-sub-navbar-item .tc-sub-navbar-item-link{align-items:center;border-radius:var(--bor-radius-4);color:var(--c-neutral-700);cursor:pointer;font-family:var(--f-family);display:flex;transition:all .2s ease;text-decoration:none}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container{text-align:center;align-content:center;background-color:var(--c-neutral-50);border-radius:var(--bor-radius-4);font-size:var(--f-size-20);height:var(--size-36);width:var(--size-36);transition:all .2s ease;min-height:var(--size-36);min-width:var(--size-36);max-height:var(--size-36);max-width:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-icon-container:focus{background-color:var(--c-neutral-200);color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link .navbar-item-label{align-content:center;color:var(--c-neutral-700);font-size:var(--f-size-14);height:var(--size-36);padding-left:var(--size-8);transition:all .2s ease;min-height:var(--size-36);max-height:var(--size-36)}.tc-sub-navbar-item .tc-sub-navbar-item-link:hover,.tc-sub-navbar-item .tc-sub-navbar-item-link:focus{color:var(--c-primary-500)}.tc-sub-navbar-item .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link.selected .navbar-item-icon-container,.tc-sub-navbar-item .tc-sub-navbar-item-link:active .navbar-item-icon-container{background-color:var(--c-primary-300);color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link .navbar-item-icon-container{background-color:var(--c-neutral-200)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:hover .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link:focus .navbar-item-label{color:var(--c-primary-500)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-icon-container,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-icon-container{background-color:var(--c-primary-300)}.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.active .navbar-item-label,.tc-sub-navbar-item.tc-rev-submenu-expanded .tc-sub-navbar-item-link.selected .navbar-item-label{color:var(--c-primary-500);font-weight:var(--f-weight-700)}\n"] }]
|
|
6928
|
-
}], propDecorators: { isMenuExpanded: [{
|
|
6929
|
-
type: Input
|
|
6930
|
-
}] } });
|
|
6931
|
-
|
|
6932
|
-
class TCloudUiSubNavbarComponent {
|
|
6933
|
-
constructor() {
|
|
6934
|
-
this.isMenuExpanded = signal(true);
|
|
6935
|
-
this.onSubMenuExpandChange = output();
|
|
6936
|
-
}
|
|
6937
|
-
ngAfterContentInit() {
|
|
6938
|
-
setTimeout(() => this.setExpandedMenuValueToChildrend(), 0);
|
|
6939
|
-
}
|
|
6940
|
-
handleExpandMenu() {
|
|
6941
|
-
this.isMenuExpanded.update((value) => !value);
|
|
6942
|
-
this.setExpandedMenuValueToChildrend();
|
|
6943
|
-
}
|
|
6944
|
-
setExpandedMenuValueToChildrend() {
|
|
6945
|
-
if (!this.subNavbarItems?.length)
|
|
6946
|
-
return;
|
|
6947
|
-
this.subNavbarItems.forEach((x) => {
|
|
6948
|
-
x.isMenuExpanded = this.isMenuExpanded();
|
|
6949
|
-
});
|
|
6950
|
-
this.onSubMenuExpandChange.emit(this.isMenuExpanded());
|
|
6951
|
-
}
|
|
6952
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6953
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiSubNavbarComponent, isStandalone: true, selector: "tc-rev-sub-navbar", outputs: { onSubMenuExpandChange: "onSubMenuExpandChange" }, queries: [{ propertyName: "subNavbarItems", predicate: TCloudUiSubNavbarItemComponent }], ngImport: i0, template: "<nav class=\"tc-sub-navbar\">\n <ul\n class=\"tc-sub-navbar-list\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded()\"\n >\n <tcloud-ui-sub-navbar-item\n [isMenuExpanded]=\"isMenuExpanded()\"\n (click)=\"handleExpandMenu()\"\n label=\"Minimizar\"\n >\n <i\n class=\"fa-light\"\n [class.fa-arrow-left-to-line]=\"isMenuExpanded()\"\n [class.fa-arrow-right-to-line]=\"!isMenuExpanded()\"\n icon\n ></i>\n </tcloud-ui-sub-navbar-item>\n <ng-content></ng-content>\n </ul>\n</nav>\n", styles: [":host{display:block;height:100%}.tc-sub-navbar{height:100%;margin:var(--size-0);padding:var(--size-0)}.tc-sub-navbar .tc-sub-navbar-list{background-color:var(--c-neutral-50);color:var(--c-neutral-700);box-shadow:var(--shadow-xs);border-radius:var(--bor-radius-8);display:flex;flex-direction:column;gap:var(--size-8);height:100%;list-style:none;margin:var(--size-0);overflow:hidden auto;padding:var(--size-8);width:var(--size-52)}.tc-sub-navbar .tc-sub-navbar-list::-webkit-scrollbar{display:none}.tc-sub-navbar .tc-sub-navbar-list.tc-rev-submenu-expanded{width:14.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TCloudUiSubNavbarItemComponent, selector: "tcloud-ui-sub-navbar-item", inputs: ["isMenuExpanded", "label", "active", "routerLink", "queryParams"], outputs: ["onClick"] }] }); }
|
|
6954
|
-
}
|
|
6955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiSubNavbarComponent, decorators: [{
|
|
6956
|
-
type: Component,
|
|
6957
|
-
args: [{ selector: 'tc-rev-sub-navbar', imports: [
|
|
6958
|
-
CommonModule,
|
|
6959
|
-
TCloudUiSubNavbarItemComponent,
|
|
6960
|
-
], template: "<nav class=\"tc-sub-navbar\">\n <ul\n class=\"tc-sub-navbar-list\"\n [class.tc-rev-submenu-expanded]=\"isMenuExpanded()\"\n >\n <tcloud-ui-sub-navbar-item\n [isMenuExpanded]=\"isMenuExpanded()\"\n (click)=\"handleExpandMenu()\"\n label=\"Minimizar\"\n >\n <i\n class=\"fa-light\"\n [class.fa-arrow-left-to-line]=\"isMenuExpanded()\"\n [class.fa-arrow-right-to-line]=\"!isMenuExpanded()\"\n icon\n ></i>\n </tcloud-ui-sub-navbar-item>\n <ng-content></ng-content>\n </ul>\n</nav>\n", styles: [":host{display:block;height:100%}.tc-sub-navbar{height:100%;margin:var(--size-0);padding:var(--size-0)}.tc-sub-navbar .tc-sub-navbar-list{background-color:var(--c-neutral-50);color:var(--c-neutral-700);box-shadow:var(--shadow-xs);border-radius:var(--bor-radius-8);display:flex;flex-direction:column;gap:var(--size-8);height:100%;list-style:none;margin:var(--size-0);overflow:hidden auto;padding:var(--size-8);width:var(--size-52)}.tc-sub-navbar .tc-sub-navbar-list::-webkit-scrollbar{display:none}.tc-sub-navbar .tc-sub-navbar-list.tc-rev-submenu-expanded{width:14.5rem}\n"] }]
|
|
6961
|
-
}], propDecorators: { subNavbarItems: [{
|
|
6962
|
-
type: ContentChildren,
|
|
6963
|
-
args: [TCloudUiSubNavbarItemComponent]
|
|
6964
|
-
}] } });
|
|
6965
|
-
|
|
6966
7184
|
class TcRevButtonDirective {
|
|
6967
7185
|
constructor(_el) {
|
|
6968
7186
|
this._el = _el;
|
|
@@ -7136,82 +7354,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7136
7354
|
args: [{ selector: 'tc-rev-card-title', imports: [], template: "<div class=\"tc-rev-card-title c-neutral-700\">\n <span class=\"tc-rev-card-title__icon w-40 h-40 f-size-18 bg-c-neutral-200 bor-rad-rounded\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n\n <h2 class=\"tc-rev-card-title__text f-h2 f-weight-700 mar-none\">{{title()}}</h2>\n\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}.tc-rev-card-title{align-items:center;display:flex;gap:var(--size-8);height:var(--size-40);max-height:var(--size-40);min-height:var(--size-40)}.tc-rev-card-title__icon{align-content:center;text-align:center;max-width:var(--size-40);min-width:var(--size-40);max-height:var(--size-40);min-height:var(--size-40)}.tc-rev-card-title__text{cursor:default}@media(max-width:480px){.tc-rev-card-title{max-height:var(--size-32);min-height:var(--size-32)}.tc-rev-card-title__icon{max-width:var(--size-32);min-width:var(--size-32);max-height:var(--size-32);min-height:var(--size-32);font-size:var(--f-size-16)}.tc-rev-card-title__text{font-size:var(--f-size-16);line-height:var(--l-height-16);font-weight:var(--f-weight-600);text-transform:inherit;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2}}\n"] }]
|
|
7137
7355
|
}] });
|
|
7138
7356
|
|
|
7139
|
-
class TCloudUiDeviceUtilsService {
|
|
7140
|
-
constructor(rendererFactory) {
|
|
7141
|
-
/*** Viewport mobile ***/
|
|
7142
|
-
this.DESKTOP_MIN = 480;
|
|
7143
|
-
this.widthScreen = signal(window.innerWidth);
|
|
7144
|
-
// largura atual da viewport
|
|
7145
|
-
this.width = computed(() => this.widthScreen());
|
|
7146
|
-
this.isDesktop = computed(() => this.width() > this.DESKTOP_MIN);
|
|
7147
|
-
this.isMobile = computed(() => this.width() <= this.DESKTOP_MIN);
|
|
7148
|
-
this.menuHost = null;
|
|
7149
|
-
this.embeddedView = null;
|
|
7150
|
-
this.appRef = inject(ApplicationRef);
|
|
7151
|
-
this.animationBuilder = inject(AnimationBuilder);
|
|
7152
|
-
this.player = null;
|
|
7153
|
-
this.renderer = rendererFactory.createRenderer(null, null);
|
|
7154
|
-
window.addEventListener('resize', () => {
|
|
7155
|
-
this.widthScreen.set(window.innerWidth);
|
|
7156
|
-
});
|
|
7157
|
-
}
|
|
7158
|
-
openDropdownDevice(menuTemplate) {
|
|
7159
|
-
this.menuHost = this.renderer.createElement('div');
|
|
7160
|
-
this.renderer.setStyle(this.menuHost, 'position', 'fixed');
|
|
7161
|
-
this.renderer.setStyle(this.menuHost, 'top', '0');
|
|
7162
|
-
this.renderer.setStyle(this.menuHost, 'left', '0');
|
|
7163
|
-
this.renderer.setStyle(this.menuHost, 'width', '100vw');
|
|
7164
|
-
this.renderer.setStyle(this.menuHost, 'height', '100vh');
|
|
7165
|
-
this.renderer.setStyle(this.menuHost, 'z-index', '9999');
|
|
7166
|
-
this.renderer.setStyle(this.menuHost, 'opacity', '0');
|
|
7167
|
-
this.renderer.appendChild(document.body, this.menuHost);
|
|
7168
|
-
// Impede scroll da página externa enquanto o dropdown está aberto
|
|
7169
|
-
this.renderer.setStyle(document.body, 'overflow', 'hidden');
|
|
7170
|
-
this.renderer.setStyle(document.body, 'touch-action', 'none');
|
|
7171
|
-
this.embeddedView = menuTemplate.createEmbeddedView({});
|
|
7172
|
-
this.appRef.attachView(this.embeddedView);
|
|
7173
|
-
this.embeddedView.rootNodes.forEach((node) => {
|
|
7174
|
-
this.renderer.appendChild(this.menuHost, node);
|
|
7175
|
-
});
|
|
7176
|
-
const fadeIn = this.animationBuilder.build([
|
|
7177
|
-
style({ opacity: 0 }),
|
|
7178
|
-
animate('200ms ease', style({ opacity: 1 })),
|
|
7179
|
-
]);
|
|
7180
|
-
this.player = fadeIn.create(this.menuHost);
|
|
7181
|
-
this.player.play();
|
|
7182
|
-
}
|
|
7183
|
-
closeDropdownDevice() {
|
|
7184
|
-
if (!this.menuHost)
|
|
7185
|
-
return;
|
|
7186
|
-
const fadeOut = this.animationBuilder.build([
|
|
7187
|
-
style({ opacity: 1 }),
|
|
7188
|
-
animate('200ms ease', style({ opacity: 0 })),
|
|
7189
|
-
]);
|
|
7190
|
-
this.player = fadeOut.create(this.menuHost);
|
|
7191
|
-
this.player.play();
|
|
7192
|
-
this.player.onDone(() => {
|
|
7193
|
-
this.renderer.removeStyle(document.body, 'overflow');
|
|
7194
|
-
this.renderer.removeStyle(document.body, 'touch-action');
|
|
7195
|
-
if (this.embeddedView) {
|
|
7196
|
-
this.appRef.detachView(this.embeddedView);
|
|
7197
|
-
this.embeddedView.destroy();
|
|
7198
|
-
this.embeddedView = null;
|
|
7199
|
-
}
|
|
7200
|
-
this.renderer.removeChild(document.body, this.menuHost);
|
|
7201
|
-
this.menuHost = null;
|
|
7202
|
-
this.player = null;
|
|
7203
|
-
});
|
|
7204
|
-
}
|
|
7205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDeviceUtilsService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7206
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDeviceUtilsService, providedIn: 'root' }); }
|
|
7207
|
-
}
|
|
7208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiDeviceUtilsService, decorators: [{
|
|
7209
|
-
type: Injectable,
|
|
7210
|
-
args: [{
|
|
7211
|
-
providedIn: 'root',
|
|
7212
|
-
}]
|
|
7213
|
-
}], ctorParameters: () => [{ type: i0.RendererFactory2 }] });
|
|
7214
|
-
|
|
7215
7357
|
class TcRevCardAccordionComponent {
|
|
7216
7358
|
constructor() {
|
|
7217
7359
|
this._viewPort = inject(TCloudUiDeviceUtilsService);
|
|
@@ -9130,5 +9272,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
9130
9272
|
* Generated bundle index. Do not edit.
|
|
9131
9273
|
*/
|
|
9132
9274
|
|
|
9133
|
-
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, DropdownGroupedSize, DropdownMultiSize, DropdownSize, MonthNamePipe, MultiLevelDropdownSize, ProgressStatusBarGradientStatus, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCLOUD_UI_CONFIG, TCLOUD_UI_LAYOUT_SERVICE, TCLOUD_UI_USER_SERVICE, TCLOUD_UI_VIEWPORT_SERVICE, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiButtonDirective, TCloudUiCheckAccessDirective, TCloudUiCheckAccessService, TCloudUiChoiceIssuesComponent, TCloudUiContainerColComponent, TCloudUiContainerComponent, TCloudUiContainerContentComponent, TCloudUiCubesComponent, TCloudUiCurrencyDirective, TCloudUiDataListComponent, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerTimeComponent, TCloudUiDigitOnlyDirective, TCloudUiElCopyDirective, TCloudUiFiltersComponent, TCloudUiFormDirective, TCloudUiHighLightDirective, TCloudUiHoverParentDirective, TCloudUiInputPasswordComponent, TCloudUiInputSearchComponent, TCloudUiIpMaskDirective, TCloudUiLabelTokenComponent, TCloudUiLineStepCircleComponent, TCloudUiLineStepTitleComponent, TCloudUiLinhaLogoComponent, TCloudUiLoadingComponent, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiSelectComponent, TCloudUiMultiplesValuesComponent, TCloudUiNgCheckAccessDirective, TCloudUiNgFeatureFlagsDirective, TCloudUiNotFoundComponent, TCloudUiNumberStepComponent, TCloudUiPaginationComponent, TCloudUiPaginationPipe, TCloudUiProgressBarComponent, TCloudUiRangeDateComponent, TCloudUiReorderItemsComponent, TCloudUiScrollBoxComponent, TCloudUiSearchInObjectService, TCloudUiSubNavbarComponent, TCloudUiSubNavbarItemComponent, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTooltipDirective, TCloudUiWelcomeComponent, TagColorsEnum, TcRevButtonDirective, TcRevCalendarComponent, TcRevCardAccordionComponent, TcRevCardComponent, TcRevCardTitleComponent, TcRevCheckboxDirective, TcRevComponentsLibModule, TcRevDropdownComponent, TcRevDropdownGroupedComponent, TcRevDropdownMultiComponent, TcRevDropdownMultiLevelComponent, TcRevEmptyContentComponent, TcRevFaqComponent, TcRevIconButtonDirective, TcRevInputContainerComponent, TcRevInputDirective, TcRevLoadingComponent, TcRevMessageComponent, TcRevMultiInputComponent, TcRevPaginationComponent, TcRevProgressStatusBarComponent, TcRevRadioDirective, TcRevSearchInputComponent, TcRevSideDrawerComponent, TcRevSkeletonLoadingComponent, TcRevSkeletonLoadingComponentStyle, TcRevSlideToggleDirective, TcRevSmallLoadingComponent, TcRevSmallLoadingComponentStyle, TcRevSubNavbarComponent, TcRevSubNavbarItemComponent, TcRevTabGroupComponent, TcRevTabItemComponent, TcRevTagComponent, TcRevToastComponent, TcRevTooltipDirective, TcRevWizardStepsComponent, ToTextPipe, echartBarConfig, isTextEllipsed, provideTCloudUi };
|
|
9275
|
+
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, DropdownGroupedSize, DropdownMultiSize, DropdownSize, MonthNamePipe, MultiLevelDropdownSize, ProgressStatusBarGradientStatus, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCLOUD_UI_CONFIG, TCLOUD_UI_LAYOUT_SERVICE, TCLOUD_UI_USER_SERVICE, TCLOUD_UI_VIEWPORT_SERVICE, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiBreadcrumbComponent, TCloudUiBreadcrumbService, TCloudUiButtonDirective, TCloudUiCardComponent, TCloudUiCardTitleComponent, TCloudUiCheckAccessDirective, TCloudUiCheckAccessService, TCloudUiChoiceIssuesComponent, TCloudUiContainerColComponent, TCloudUiContainerComponent, TCloudUiContainerContentComponent, TCloudUiCubesComponent, TCloudUiCurrencyDirective, TCloudUiDataListComponent, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerTimeComponent, TCloudUiDigitOnlyDirective, TCloudUiElCopyDirective, TCloudUiFiltersComponent, TCloudUiFormDirective, TCloudUiHighLightDirective, TCloudUiHoverParentDirective, TCloudUiInputPasswordComponent, TCloudUiInputSearchComponent, TCloudUiIpMaskDirective, TCloudUiLabelTokenComponent, TCloudUiLineStepCircleComponent, TCloudUiLineStepTitleComponent, TCloudUiLinhaLogoComponent, TCloudUiLoadingComponent, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiSelectComponent, TCloudUiMultiplesValuesComponent, TCloudUiNgCheckAccessDirective, TCloudUiNgFeatureFlagsDirective, TCloudUiNotFoundComponent, TCloudUiNumberStepComponent, TCloudUiPaginationComponent, TCloudUiPaginationPipe, TCloudUiProgressBarComponent, TCloudUiRangeDateComponent, TCloudUiReorderItemsComponent, TCloudUiScrollBoxComponent, TCloudUiSearchInObjectService, TCloudUiSubNavbarComponent, TCloudUiSubNavbarItemComponent, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiToastComponent, TCloudUiTooltipDirective, TCloudUiWelcomeComponent, TagColorsEnum, TcRevButtonDirective, TcRevCalendarComponent, TcRevCardAccordionComponent, TcRevCardComponent, TcRevCardTitleComponent, TcRevCheckboxDirective, TcRevComponentsLibModule, TcRevDropdownComponent, TcRevDropdownGroupedComponent, TcRevDropdownMultiComponent, TcRevDropdownMultiLevelComponent, TcRevEmptyContentComponent, TcRevFaqComponent, TcRevIconButtonDirective, TcRevInputContainerComponent, TcRevInputDirective, TcRevLoadingComponent, TcRevMessageComponent, TcRevMultiInputComponent, TcRevPaginationComponent, TcRevProgressStatusBarComponent, TcRevRadioDirective, TcRevSearchInputComponent, TcRevSideDrawerComponent, TcRevSkeletonLoadingComponent, TcRevSkeletonLoadingComponentStyle, TcRevSlideToggleDirective, TcRevSmallLoadingComponent, TcRevSmallLoadingComponentStyle, TcRevSubNavbarComponent, TcRevSubNavbarItemComponent, TcRevTabGroupComponent, TcRevTabItemComponent, TcRevTagComponent, TcRevToastComponent, TcRevTooltipDirective, TcRevWizardStepsComponent, ToTextPipe, echartBarConfig, isTextEllipsed, provideTCloudUi };
|
|
9134
9276
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|