@dev-tcloud/tcloud-ui 4.0.1 → 4.1.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/README.md +9 -0
- package/esm2022/lib/_directives/currency/currency.directive.mjs +7 -7
- package/esm2022/lib/_directives/directives.module.mjs +43 -7
- package/esm2022/lib/_directives/tcloud-access/tcloud-ui-check-access.directive.mjs +66 -0
- package/esm2022/lib/_directives/tcloud-access/tcloud-ui-ng-check-access.directive.mjs +50 -0
- package/esm2022/lib/_directives/tcloud-access/tcloud-ui-ng-feature-flags.directive.mjs +44 -0
- package/esm2022/lib/_directives/tcloud-ui-digit-only.directive.mjs +64 -0
- package/esm2022/lib/_directives/tcloud-ui-highlight.diretive.mjs +36 -0
- package/esm2022/lib/_directives/tcloud-ui-ip-mask.directive.mjs +54 -0
- package/esm2022/lib/_interfaces/user.service.interface.mjs +2 -0
- package/esm2022/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.mjs +2 -2
- package/esm2022/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.component.mjs +2 -2
- package/esm2022/lib/_services/tcloud-ui-check-access.service.mjs +170 -0
- package/esm2022/lib/tcloud-ui.config.mjs +2 -0
- package/esm2022/lib/tcloud-ui.module.mjs +13 -1
- package/esm2022/public-api.mjs +9 -1
- package/fesm2022/dev-tcloud-tcloud-ui.mjs +522 -15
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_directives/currency/currency.directive.d.ts +3 -3
- package/lib/_directives/directives.module.d.ts +7 -1
- package/lib/_directives/tcloud-access/tcloud-ui-check-access.directive.d.ts +17 -0
- package/lib/_directives/tcloud-access/tcloud-ui-ng-check-access.directive.d.ts +15 -0
- package/lib/_directives/tcloud-access/tcloud-ui-ng-feature-flags.directive.d.ts +15 -0
- package/lib/_directives/tcloud-ui-digit-only.directive.d.ts +12 -0
- package/lib/_directives/tcloud-ui-highlight.diretive.d.ts +11 -0
- package/lib/_directives/tcloud-ui-ip-mask.directive.d.ts +10 -0
- package/lib/_interfaces/user.service.interface.d.ts +3 -0
- package/lib/_services/tcloud-ui-check-access.service.d.ts +15 -0
- package/lib/tcloud-ui.config.d.ts +7 -0
- package/lib/tcloud-ui.module.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
- package/scss/tcloud/custom/buttons.scss +7 -3
- package/scss/tcloud/custom/colors.scss +8 -0
- package/scss/tcloud/custom/mixins.scss +143 -143
- package/scss/tcloud/custom/variables.scss +4 -1
- package/scss/tcloud/disaster-recovery/colors.scss +15 -0
- package/scss/tcloud/disaster-recovery/layout.scss +14 -0
- package/scss/tcloud/disaster-recovery/styles.scss +2 -0
- package/scss/tcloud/prime/cards-products.scss +332 -0
- package/scss/tcloud/prime/left-navigation.scss +328 -0
- package/scss/tcloud/prime/styles.scss +3 -0
- package/scss/tcloud/prime/tcloud-prime.scss +3872 -0
- package/scss/tcloud/standard/left-navigation.scss +48 -0
- package/scss/tcloud/standard/styles.scss +3 -0
- package/scss/tcloud/standard/tcloud-standard.scss +126 -0
- package/scss/tcloud/standard/top-navigation.scss +61 -0
- package/scss/tcloud/styles.scss +7 -5
- package/scss/tcloud/tcloud-ui.scss +8 -0
- package/scss/tcloud/iaas/forms.scss +0 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, Injectable, EventEmitter, Output, ViewChild, forwardRef, Pipe, ViewEncapsulation, Directive, HostListener } from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, Injectable, EventEmitter, Output, ViewChild, forwardRef, Pipe, ViewEncapsulation, Directive, HostListener, Optional, Inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
5
5
|
import { Subject, Subscription } from 'rxjs';
|
|
@@ -2715,7 +2715,7 @@ class TCloudUiScrollBoxComponent {
|
|
|
2715
2715
|
if (`${this.maxHeight}`) {
|
|
2716
2716
|
und = this.retirarNumeros(`${this.maxHeight}`);
|
|
2717
2717
|
}
|
|
2718
|
-
console.log("und",
|
|
2718
|
+
// console.log("und",und);
|
|
2719
2719
|
if (((und) && (und).trim() === '') || !und) {
|
|
2720
2720
|
this.unidade = 'px';
|
|
2721
2721
|
}
|
|
@@ -4896,7 +4896,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
4896
4896
|
}]
|
|
4897
4897
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
4898
4898
|
|
|
4899
|
-
class
|
|
4899
|
+
class TCloudUiCurrencyDirective {
|
|
4900
4900
|
constructor(el, renderer) {
|
|
4901
4901
|
this.el = el;
|
|
4902
4902
|
this.renderer = renderer;
|
|
@@ -5028,20 +5028,20 @@ class TCloudCurrencyDirective {
|
|
|
5028
5028
|
}
|
|
5029
5029
|
return _value;
|
|
5030
5030
|
}
|
|
5031
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type:
|
|
5032
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type:
|
|
5031
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCurrencyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5032
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiCurrencyDirective, selector: "[TCcurrency]", host: { listeners: { "focus": "onFocus()", "input": "onInput($event.target.value)" } }, providers: [{
|
|
5033
5033
|
provide: NG_VALUE_ACCESSOR,
|
|
5034
|
-
useExisting:
|
|
5034
|
+
useExisting: TCloudUiCurrencyDirective,
|
|
5035
5035
|
multi: true
|
|
5036
5036
|
}], ngImport: i0 }); }
|
|
5037
5037
|
}
|
|
5038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type:
|
|
5038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCurrencyDirective, decorators: [{
|
|
5039
5039
|
type: Directive,
|
|
5040
5040
|
args: [{
|
|
5041
5041
|
selector: '[TCcurrency]',
|
|
5042
5042
|
providers: [{
|
|
5043
5043
|
provide: NG_VALUE_ACCESSOR,
|
|
5044
|
-
useExisting:
|
|
5044
|
+
useExisting: TCloudUiCurrencyDirective,
|
|
5045
5045
|
multi: true
|
|
5046
5046
|
}]
|
|
5047
5047
|
}]
|
|
@@ -5053,18 +5053,499 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
5053
5053
|
args: ['input', ['$event.target.value']]
|
|
5054
5054
|
}] } });
|
|
5055
5055
|
|
|
5056
|
+
class TCloudUiCheckAccessService {
|
|
5057
|
+
constructor(_UserService) {
|
|
5058
|
+
this._UserService = _UserService;
|
|
5059
|
+
this.userService = {};
|
|
5060
|
+
this.userService = this._UserService;
|
|
5061
|
+
}
|
|
5062
|
+
check(checkAccess) {
|
|
5063
|
+
const temp_user = this.getImpersonalizeUserInfo();
|
|
5064
|
+
if (temp_user) {
|
|
5065
|
+
// Para uso com impersonalização - Visualização do T-Cloud por outro usuário
|
|
5066
|
+
return this.checkImpersonalizeMode(checkAccess, temp_user);
|
|
5067
|
+
}
|
|
5068
|
+
// Utilização para usuário logado
|
|
5069
|
+
return this.checkDefaultMode(checkAccess);
|
|
5070
|
+
}
|
|
5071
|
+
checkDefaultMode(checkAccess) {
|
|
5072
|
+
let hasAccess = false;
|
|
5073
|
+
if (Array.isArray(checkAccess[0])) {
|
|
5074
|
+
if (checkAccess[1]) {
|
|
5075
|
+
let features = checkAccess[1].ui_topology;
|
|
5076
|
+
if (features) {
|
|
5077
|
+
checkAccess[0].forEach((rule) => {
|
|
5078
|
+
hasAccess = hasAccess || ((features.findIndex((feature) => feature === rule) != -1) ? true : false);
|
|
5079
|
+
});
|
|
5080
|
+
}
|
|
5081
|
+
}
|
|
5082
|
+
}
|
|
5083
|
+
else {
|
|
5084
|
+
let features = this.userService?.getCurrentEnv()?.ui;
|
|
5085
|
+
console.log('features ui', features);
|
|
5086
|
+
checkAccess.forEach((rule) => {
|
|
5087
|
+
hasAccess = hasAccess || ((features && features.findIndex((feature) => feature === rule) != -1) ? true : false);
|
|
5088
|
+
});
|
|
5089
|
+
}
|
|
5090
|
+
return hasAccess;
|
|
5091
|
+
}
|
|
5092
|
+
checkImpersonalizeMode(checkAccess, temp_user) {
|
|
5093
|
+
let hasAccess = false;
|
|
5094
|
+
if (Array.isArray(checkAccess[0])) {
|
|
5095
|
+
if (checkAccess[1]) {
|
|
5096
|
+
let features = checkAccess[1].ui_topology;
|
|
5097
|
+
if (features) {
|
|
5098
|
+
checkAccess[0].forEach((rule) => {
|
|
5099
|
+
hasAccess = hasAccess || ((features.findIndex((feature) => feature === rule) != -1) ? true : false);
|
|
5100
|
+
});
|
|
5101
|
+
}
|
|
5102
|
+
}
|
|
5103
|
+
}
|
|
5104
|
+
else {
|
|
5105
|
+
let features = temp_user.ui;
|
|
5106
|
+
checkAccess.forEach((rule) => {
|
|
5107
|
+
hasAccess = hasAccess || ((features && features.findIndex((feature) => feature === rule) != -1) ? true : false);
|
|
5108
|
+
});
|
|
5109
|
+
}
|
|
5110
|
+
return hasAccess;
|
|
5111
|
+
}
|
|
5112
|
+
checkFeatureFlags(_feature) {
|
|
5113
|
+
let enable = false;
|
|
5114
|
+
let isEnabled = [];
|
|
5115
|
+
// tcloud_features - features do componente tcloud
|
|
5116
|
+
let tcloud_features = [];
|
|
5117
|
+
if (_feature) {
|
|
5118
|
+
if (typeof _feature === 'string') {
|
|
5119
|
+
(tcloud_features).push(_feature);
|
|
5120
|
+
}
|
|
5121
|
+
else if (_feature && (_feature).length > 0) {
|
|
5122
|
+
tcloud_features = _feature;
|
|
5123
|
+
}
|
|
5124
|
+
let feature_flags_topology = undefined;
|
|
5125
|
+
if (Array.isArray(_feature[0])) {
|
|
5126
|
+
if (_feature[1]) {
|
|
5127
|
+
tcloud_features = _feature[0];
|
|
5128
|
+
if (_feature[1] && _feature[1].feature_flags_topology && (_feature[1]?.feature_flags_topology).length >= 0) {
|
|
5129
|
+
feature_flags_topology = _feature[1].feature_flags_topology;
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
}
|
|
5133
|
+
let feature_flags = [];
|
|
5134
|
+
if (feature_flags_topology && (feature_flags_topology).length >= 0) {
|
|
5135
|
+
// feature_flags - obtendo de topology (infProduto) -> feature_flags_topology
|
|
5136
|
+
feature_flags = feature_flags_topology;
|
|
5137
|
+
}
|
|
5138
|
+
else {
|
|
5139
|
+
// feature_flags - obtendo de user info
|
|
5140
|
+
feature_flags = this.userService?.getCurrentEnv()?.feature_flags || [];
|
|
5141
|
+
}
|
|
5142
|
+
console.log('feature_flags', feature_flags);
|
|
5143
|
+
for (let i = 0; i < (tcloud_features).length; i++) {
|
|
5144
|
+
const tcloud_feature = tcloud_features[i];
|
|
5145
|
+
if (tcloud_feature[0] === '!') {
|
|
5146
|
+
let qtd_exist = 0;
|
|
5147
|
+
for (let j = 0; j < (feature_flags).length; j++) {
|
|
5148
|
+
const feature_flag = feature_flags[j];
|
|
5149
|
+
if (tcloud_feature === '!' + feature_flag) {
|
|
5150
|
+
(isEnabled).push(false);
|
|
5151
|
+
qtd_exist++;
|
|
5152
|
+
}
|
|
5153
|
+
}
|
|
5154
|
+
if (qtd_exist === 0) {
|
|
5155
|
+
(isEnabled).push(true);
|
|
5156
|
+
}
|
|
5157
|
+
}
|
|
5158
|
+
else {
|
|
5159
|
+
let qtd_exist = 0;
|
|
5160
|
+
for (let j = 0; j < (feature_flags).length; j++) {
|
|
5161
|
+
const feature_flag = feature_flags[j];
|
|
5162
|
+
if (tcloud_feature === feature_flag) {
|
|
5163
|
+
(isEnabled).push(true);
|
|
5164
|
+
qtd_exist++;
|
|
5165
|
+
}
|
|
5166
|
+
}
|
|
5167
|
+
if (qtd_exist === 0) {
|
|
5168
|
+
(isEnabled).push(false);
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
}
|
|
5172
|
+
if (isEnabled && (isEnabled).length > 0) {
|
|
5173
|
+
enable = true;
|
|
5174
|
+
for (let i = 0; i < (isEnabled).length; i++) {
|
|
5175
|
+
if (isEnabled[i] === false) {
|
|
5176
|
+
enable = false;
|
|
5177
|
+
break;
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
}
|
|
5181
|
+
}
|
|
5182
|
+
return enable;
|
|
5183
|
+
}
|
|
5184
|
+
/* */
|
|
5185
|
+
getImpersonalizeUserInfo() {
|
|
5186
|
+
// return this.getLocalStorage();
|
|
5187
|
+
// remover do localstorage se não existir cCode ????
|
|
5188
|
+
const cCode = this.userService?.getCurrentEnv()?.currentCloudID?.cloud_id || '';
|
|
5189
|
+
if (cCode && cCode !== '') {
|
|
5190
|
+
return this.getLocalStorage();
|
|
5191
|
+
}
|
|
5192
|
+
this.removeLocalStorage();
|
|
5193
|
+
return undefined;
|
|
5194
|
+
}
|
|
5195
|
+
getLocalStorage() {
|
|
5196
|
+
let info = localStorage.getItem('temp_user_info');
|
|
5197
|
+
let user_info = {};
|
|
5198
|
+
try {
|
|
5199
|
+
user_info = JSON.parse(info);
|
|
5200
|
+
}
|
|
5201
|
+
catch (error) {
|
|
5202
|
+
user_info = undefined;
|
|
5203
|
+
}
|
|
5204
|
+
return user_info;
|
|
5205
|
+
}
|
|
5206
|
+
removeLocalStorage() {
|
|
5207
|
+
localStorage.removeItem('temp_user_info');
|
|
5208
|
+
}
|
|
5209
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCheckAccessService, deps: [{ token: 'UserService', optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5210
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCheckAccessService, providedIn: 'root' }); }
|
|
5211
|
+
}
|
|
5212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCheckAccessService, decorators: [{
|
|
5213
|
+
type: Injectable,
|
|
5214
|
+
args: [{
|
|
5215
|
+
providedIn: 'root',
|
|
5216
|
+
}]
|
|
5217
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5218
|
+
type: Optional
|
|
5219
|
+
}, {
|
|
5220
|
+
type: Inject,
|
|
5221
|
+
args: ['UserService']
|
|
5222
|
+
}] }] });
|
|
5223
|
+
|
|
5224
|
+
class TCloudUiCheckAccessDirective {
|
|
5225
|
+
set TCCheckAccess(checkAccess) {
|
|
5226
|
+
if (checkAccess) {
|
|
5227
|
+
this.check(checkAccess);
|
|
5228
|
+
}
|
|
5229
|
+
}
|
|
5230
|
+
;
|
|
5231
|
+
constructor(el, renderer, checkAccessService) {
|
|
5232
|
+
this.el = el;
|
|
5233
|
+
this.renderer = renderer;
|
|
5234
|
+
this.checkAccessService = checkAccessService;
|
|
5235
|
+
}
|
|
5236
|
+
ngOnInit() { }
|
|
5237
|
+
check(checkAccess) {
|
|
5238
|
+
let hasAccess = false;
|
|
5239
|
+
hasAccess = this.checkAccessService.check(checkAccess);
|
|
5240
|
+
let elemento = this.el.nativeElement;
|
|
5241
|
+
if (elemento) {
|
|
5242
|
+
if (!hasAccess) {
|
|
5243
|
+
this.setStyle(elemento);
|
|
5244
|
+
}
|
|
5245
|
+
else {
|
|
5246
|
+
this.normalStyle(elemento);
|
|
5247
|
+
}
|
|
5248
|
+
}
|
|
5249
|
+
else {
|
|
5250
|
+
// console.log("TCL: checkAccessDirective -> elemento", this.el.nativeElement)
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
setStyle(el) {
|
|
5254
|
+
this.renderer.setStyle(el, 'background-color', 'rgb(255, 219, 94)');
|
|
5255
|
+
// this.renderer.setStyle(el, 'display', 'none');
|
|
5256
|
+
this.renderer.setAttribute(el, 'style', 'display:none !important');
|
|
5257
|
+
this.removeElement(el);
|
|
5258
|
+
}
|
|
5259
|
+
normalStyle(el) {
|
|
5260
|
+
// this.renderer.setStyle(el, 'color', '');
|
|
5261
|
+
// this.renderer.setStyle(el, 'border', '1px solid darkorange');
|
|
5262
|
+
// this.renderer.setStyle(el, 'padding', '');
|
|
5263
|
+
this.renderer.setStyle(el, 'background-color', '');
|
|
5264
|
+
this.renderer.setStyle(el, 'display', '');
|
|
5265
|
+
// el.innerHTML = "Sem acesso";
|
|
5266
|
+
}
|
|
5267
|
+
removeElement(el) {
|
|
5268
|
+
if (el) {
|
|
5269
|
+
try {
|
|
5270
|
+
this.renderer.removeChild(el.parentNode, el);
|
|
5271
|
+
}
|
|
5272
|
+
catch (error) { }
|
|
5273
|
+
}
|
|
5274
|
+
}
|
|
5275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCheckAccessDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TCloudUiCheckAccessService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5276
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiCheckAccessDirective, selector: "[TCCheckAccess]", inputs: { TCCheckAccess: "TCCheckAccess" }, ngImport: i0 }); }
|
|
5277
|
+
}
|
|
5278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiCheckAccessDirective, decorators: [{
|
|
5279
|
+
type: Directive,
|
|
5280
|
+
args: [{
|
|
5281
|
+
selector: '[TCCheckAccess]'
|
|
5282
|
+
}]
|
|
5283
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: TCloudUiCheckAccessService }], propDecorators: { TCCheckAccess: [{
|
|
5284
|
+
type: Input
|
|
5285
|
+
}] } });
|
|
5286
|
+
|
|
5287
|
+
/*
|
|
5288
|
+
// Verificação checkAccess
|
|
5289
|
+
<ng-container *ngTCCheckAccess="[[features.backup], topologie?.infProduto]" >
|
|
5290
|
+
Conteudo protegido
|
|
5291
|
+
</ng-container>
|
|
5292
|
+
|
|
5293
|
+
// Verificação checkAccess com condição adicional
|
|
5294
|
+
<ng-container *ngTCCheckAccess="[[features.backup], topologie?.infProduto]; ngIf: topologie?.product == 'winthor'" >
|
|
5295
|
+
Conteudo protegido
|
|
5296
|
+
</ng-container>
|
|
5297
|
+
*/
|
|
5298
|
+
class TCloudUiNgCheckAccessDirective {
|
|
5299
|
+
constructor(templateRef, viewContainer, checkAccessService) {
|
|
5300
|
+
this.templateRef = templateRef;
|
|
5301
|
+
this.viewContainer = viewContainer;
|
|
5302
|
+
this.checkAccessService = checkAccessService;
|
|
5303
|
+
this.isCondition = true;
|
|
5304
|
+
}
|
|
5305
|
+
set ngTCCheckAccess(checkAccess) {
|
|
5306
|
+
const isCheckAccess = (typeof checkAccess === 'boolean') ? checkAccess : this.checkAccessService.check(checkAccess);
|
|
5307
|
+
setTimeout(() => { this.check_view(isCheckAccess); });
|
|
5308
|
+
}
|
|
5309
|
+
set ngTCCheckAccessNgIf(check) {
|
|
5310
|
+
this.isCondition = check;
|
|
5311
|
+
}
|
|
5312
|
+
check_view(isView) {
|
|
5313
|
+
if (isView && this.isCondition) {
|
|
5314
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
5315
|
+
}
|
|
5316
|
+
else {
|
|
5317
|
+
this.viewContainer.clear();
|
|
5318
|
+
}
|
|
5319
|
+
}
|
|
5320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiNgCheckAccessDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: TCloudUiCheckAccessService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5321
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiNgCheckAccessDirective, selector: "[ngTCCheckAccess]", inputs: { ngTCCheckAccess: "ngTCCheckAccess", ngTCCheckAccessNgIf: "ngTCCheckAccessNgIf" }, ngImport: i0 }); }
|
|
5322
|
+
}
|
|
5323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiNgCheckAccessDirective, decorators: [{
|
|
5324
|
+
type: Directive,
|
|
5325
|
+
args: [{
|
|
5326
|
+
selector: '[ngTCCheckAccess]'
|
|
5327
|
+
}]
|
|
5328
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: TCloudUiCheckAccessService }], propDecorators: { ngTCCheckAccess: [{
|
|
5329
|
+
type: Input
|
|
5330
|
+
}], ngTCCheckAccessNgIf: [{
|
|
5331
|
+
type: Input
|
|
5332
|
+
}] } });
|
|
5333
|
+
|
|
5334
|
+
/*
|
|
5335
|
+
<div *ngTCFeatureFlags="['pipeline_flow_pusher']">
|
|
5336
|
+
Tem pipeline_flow_pusher
|
|
5337
|
+
</div>
|
|
5338
|
+
*/
|
|
5339
|
+
class TCloudUiNgFeatureFlagsDirective {
|
|
5340
|
+
constructor(templateRef, viewContainer, checkAccessService) {
|
|
5341
|
+
this.templateRef = templateRef;
|
|
5342
|
+
this.viewContainer = viewContainer;
|
|
5343
|
+
this.checkAccessService = checkAccessService;
|
|
5344
|
+
this.isCondition = true;
|
|
5345
|
+
}
|
|
5346
|
+
set ngTCFeatureFlags(FeatureFlags) {
|
|
5347
|
+
const isFeatureFlags = (typeof FeatureFlags === 'boolean') ? FeatureFlags : this.checkAccessService.checkFeatureFlags(FeatureFlags);
|
|
5348
|
+
setTimeout(() => { this.check_view(isFeatureFlags); });
|
|
5349
|
+
}
|
|
5350
|
+
set TCNgFeatureFlagsNgIf(check) {
|
|
5351
|
+
this.isCondition = check;
|
|
5352
|
+
}
|
|
5353
|
+
check_view(isView) {
|
|
5354
|
+
if (isView && this.isCondition) {
|
|
5355
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
5356
|
+
}
|
|
5357
|
+
else {
|
|
5358
|
+
this.viewContainer.clear();
|
|
5359
|
+
}
|
|
5360
|
+
}
|
|
5361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiNgFeatureFlagsDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: TCloudUiCheckAccessService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5362
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiNgFeatureFlagsDirective, selector: "[ngTCFeatureFlags]", inputs: { ngTCFeatureFlags: "ngTCFeatureFlags", TCNgFeatureFlagsNgIf: "TCNgFeatureFlagsNgIf" }, ngImport: i0 }); }
|
|
5363
|
+
}
|
|
5364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiNgFeatureFlagsDirective, decorators: [{
|
|
5365
|
+
type: Directive,
|
|
5366
|
+
args: [{
|
|
5367
|
+
selector: '[ngTCFeatureFlags]'
|
|
5368
|
+
}]
|
|
5369
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: TCloudUiCheckAccessService }], propDecorators: { ngTCFeatureFlags: [{
|
|
5370
|
+
type: Input
|
|
5371
|
+
}], TCNgFeatureFlagsNgIf: [{
|
|
5372
|
+
type: Input
|
|
5373
|
+
}] } });
|
|
5374
|
+
|
|
5375
|
+
class TCloudUiDigitOnlyDirective {
|
|
5376
|
+
constructor(el) {
|
|
5377
|
+
this.el = el;
|
|
5378
|
+
this.inputElement = el.nativeElement;
|
|
5379
|
+
}
|
|
5380
|
+
onKeyDown(e) {
|
|
5381
|
+
if ([46, 8, 9, 27, 13].indexOf(e.keyCode) !== -1 || // Allow: Delete, Backspace, Tab, Escape, Enter
|
|
5382
|
+
(e.keyCode === 65 && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
5383
|
+
(e.keyCode === 67 && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
5384
|
+
(e.keyCode === 86 && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
5385
|
+
(e.keyCode === 88 && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
5386
|
+
(e.keyCode === 65 && e.metaKey === true) || // Allow: Cmd+A (Mac)
|
|
5387
|
+
(e.keyCode === 67 && e.metaKey === true) || // Allow: Cmd+C (Mac)
|
|
5388
|
+
(e.keyCode === 86 && e.metaKey === true) || // Allow: Cmd+V (Mac)
|
|
5389
|
+
(e.keyCode === 88 && e.metaKey === true) || // Allow: Cmd+X (Mac)
|
|
5390
|
+
(e.keyCode >= 35 && e.keyCode <= 39) // Allow: Home, End, Left, Right
|
|
5391
|
+
) {
|
|
5392
|
+
// let it happen, don't do anything
|
|
5393
|
+
return;
|
|
5394
|
+
}
|
|
5395
|
+
// Ensure that it is a number and stop the keypress
|
|
5396
|
+
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) &&
|
|
5397
|
+
(e.keyCode < 96 || e.keyCode > 105)) {
|
|
5398
|
+
e.preventDefault();
|
|
5399
|
+
}
|
|
5400
|
+
}
|
|
5401
|
+
onPaste(event) {
|
|
5402
|
+
event.preventDefault();
|
|
5403
|
+
if (event && event.clipboardData) {
|
|
5404
|
+
const pastedInput = event.clipboardData
|
|
5405
|
+
.getData('text/plain')
|
|
5406
|
+
.replace(/\D/g, ''); // get a digit-only string
|
|
5407
|
+
document?.execCommand('insertText', false, pastedInput);
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5410
|
+
onDrop(event) {
|
|
5411
|
+
event.preventDefault();
|
|
5412
|
+
if (event && event.dataTransfer) {
|
|
5413
|
+
const textData = event.dataTransfer.getData('text').replace(/\D/g, '');
|
|
5414
|
+
this.inputElement.focus();
|
|
5415
|
+
document?.execCommand('insertText', false, textData);
|
|
5416
|
+
}
|
|
5417
|
+
}
|
|
5418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiDigitOnlyDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5419
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiDigitOnlyDirective, selector: "[TCDigitOnly]", host: { listeners: { "keydown": "onKeyDown($event)", "paste": "onPaste($event)", "drop": "onDrop($event)" } }, ngImport: i0 }); }
|
|
5420
|
+
}
|
|
5421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiDigitOnlyDirective, decorators: [{
|
|
5422
|
+
type: Directive,
|
|
5423
|
+
args: [{
|
|
5424
|
+
selector: '[TCDigitOnly]'
|
|
5425
|
+
}]
|
|
5426
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onKeyDown: [{
|
|
5427
|
+
type: HostListener,
|
|
5428
|
+
args: ['keydown', ['$event']]
|
|
5429
|
+
}], onPaste: [{
|
|
5430
|
+
type: HostListener,
|
|
5431
|
+
args: ['paste', ['$event']]
|
|
5432
|
+
}], onDrop: [{
|
|
5433
|
+
type: HostListener,
|
|
5434
|
+
args: ['drop', ['$event']]
|
|
5435
|
+
}] } });
|
|
5436
|
+
|
|
5437
|
+
class TCloudUiHighLightDirective {
|
|
5438
|
+
constructor(el) {
|
|
5439
|
+
this.el = el;
|
|
5440
|
+
this.inputElement = el.nativeElement;
|
|
5441
|
+
}
|
|
5442
|
+
ngOnInit() {
|
|
5443
|
+
let block = document.createElement('div');
|
|
5444
|
+
if (!this.TCHighlight) {
|
|
5445
|
+
block.appendChild(document.createTextNode('PRECISA FINALIZAR IMPLEMENTAÇÃO!!'));
|
|
5446
|
+
}
|
|
5447
|
+
else {
|
|
5448
|
+
block.appendChild(document.createTextNode(this.TCHighlight));
|
|
5449
|
+
}
|
|
5450
|
+
if (block && block.style) {
|
|
5451
|
+
block.style.backgroundColor = '#F00';
|
|
5452
|
+
block.style.color = '#FFF';
|
|
5453
|
+
block.style.padding = '15px';
|
|
5454
|
+
block.style.textAlign = 'center';
|
|
5455
|
+
block.style.fontWeight = '600';
|
|
5456
|
+
}
|
|
5457
|
+
this.inputElement.insertBefore(block, this.inputElement.firstChild);
|
|
5458
|
+
}
|
|
5459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiHighLightDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5460
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiHighLightDirective, selector: "[TCHighlight]", inputs: { TCHighlight: "TCHighlight" }, ngImport: i0 }); }
|
|
5461
|
+
}
|
|
5462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiHighLightDirective, decorators: [{
|
|
5463
|
+
type: Directive,
|
|
5464
|
+
args: [{
|
|
5465
|
+
selector: '[TCHighlight]'
|
|
5466
|
+
}]
|
|
5467
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { TCHighlight: [{
|
|
5468
|
+
type: Input
|
|
5469
|
+
}] } });
|
|
5470
|
+
|
|
5471
|
+
class TCloudUiIpMaskDirective {
|
|
5472
|
+
constructor(el) {
|
|
5473
|
+
this.el = el;
|
|
5474
|
+
}
|
|
5475
|
+
onKeyDown(e) {
|
|
5476
|
+
// console.log("IpMaskDirective -> onKeyDown -> e.keyCode", e.keyCode);
|
|
5477
|
+
if ([190, 108, 191, 110, 111].indexOf(e.keyCode) !== -1 || // Allow: ponto(.), ponto(.) Teclado numérico, barra(/) , barra(/) Teclado numérico
|
|
5478
|
+
[46, 8, 9, 27, 13].indexOf(e.keyCode) !== -1 || // Allow: Delete, Backspace, Tab, Escape, Enter
|
|
5479
|
+
(e.keyCode === 65 && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
5480
|
+
(e.keyCode === 67 && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
5481
|
+
(e.keyCode === 86 && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
5482
|
+
(e.keyCode === 88 && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
5483
|
+
(e.keyCode === 65 && e.metaKey === true) || // Allow: Cmd+A (Mac)
|
|
5484
|
+
(e.keyCode === 67 && e.metaKey === true) || // Allow: Cmd+C (Mac)
|
|
5485
|
+
(e.keyCode === 86 && e.metaKey === true) || // Allow: Cmd+V (Mac)
|
|
5486
|
+
(e.keyCode === 88 && e.metaKey === true) || // Allow: Cmd+X (Mac)
|
|
5487
|
+
(e.keyCode >= 35 && e.keyCode <= 39) // Allow: Home, End, Left, Right
|
|
5488
|
+
) {
|
|
5489
|
+
// let it happen, don't do anything
|
|
5490
|
+
return;
|
|
5491
|
+
}
|
|
5492
|
+
// Ensure that it is a number and stop the keypress
|
|
5493
|
+
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) &&
|
|
5494
|
+
(e.keyCode < 96 || e.keyCode > 105)) {
|
|
5495
|
+
e.preventDefault();
|
|
5496
|
+
}
|
|
5497
|
+
}
|
|
5498
|
+
onPaste(event) {
|
|
5499
|
+
event.preventDefault();
|
|
5500
|
+
if (event && event.clipboardData) {
|
|
5501
|
+
const pastedInput = event.clipboardData
|
|
5502
|
+
.getData('text/plain')
|
|
5503
|
+
.replace(/\D/g, ''); // get a digit-only string
|
|
5504
|
+
document?.execCommand('insertText', false, pastedInput);
|
|
5505
|
+
}
|
|
5506
|
+
}
|
|
5507
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiIpMaskDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5508
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiIpMaskDirective, selector: "[TCIpMask]", host: { listeners: { "keydown": "onKeyDown($event)", "paste": "onPaste($event)" } }, ngImport: i0 }); }
|
|
5509
|
+
}
|
|
5510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiIpMaskDirective, decorators: [{
|
|
5511
|
+
type: Directive,
|
|
5512
|
+
args: [{
|
|
5513
|
+
selector: '[TCIpMask]'
|
|
5514
|
+
}]
|
|
5515
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onKeyDown: [{
|
|
5516
|
+
type: HostListener,
|
|
5517
|
+
args: ['keydown', ['$event']]
|
|
5518
|
+
}], onPaste: [{
|
|
5519
|
+
type: HostListener,
|
|
5520
|
+
args: ['paste', ['$event']]
|
|
5521
|
+
}] } });
|
|
5522
|
+
|
|
5056
5523
|
class TCloudUiDirectiveModule {
|
|
5057
5524
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5058
5525
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiDirectiveModule, declarations: [TCloudUiTooltipDirective,
|
|
5059
5526
|
TCloudUiAlignDirective,
|
|
5060
5527
|
TCloudUiHoverParentDirective,
|
|
5061
5528
|
TCloudUiElCopyDirective,
|
|
5062
|
-
|
|
5529
|
+
TCloudUiCurrencyDirective,
|
|
5530
|
+
TCloudUiCheckAccessDirective,
|
|
5531
|
+
TCloudUiNgCheckAccessDirective,
|
|
5532
|
+
TCloudUiNgFeatureFlagsDirective,
|
|
5533
|
+
TCloudUiDigitOnlyDirective,
|
|
5534
|
+
TCloudUiHighLightDirective,
|
|
5535
|
+
TCloudUiIpMaskDirective], exports: [TCloudUiTooltipDirective,
|
|
5063
5536
|
TCloudUiAlignDirective,
|
|
5064
5537
|
TCloudUiHoverParentDirective,
|
|
5065
5538
|
TCloudUiElCopyDirective,
|
|
5066
|
-
|
|
5067
|
-
|
|
5539
|
+
TCloudUiCurrencyDirective,
|
|
5540
|
+
TCloudUiCheckAccessDirective,
|
|
5541
|
+
TCloudUiNgCheckAccessDirective,
|
|
5542
|
+
TCloudUiNgFeatureFlagsDirective,
|
|
5543
|
+
TCloudUiDigitOnlyDirective,
|
|
5544
|
+
TCloudUiHighLightDirective,
|
|
5545
|
+
TCloudUiIpMaskDirective] }); }
|
|
5546
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiDirectiveModule, providers: [
|
|
5547
|
+
TCloudUiCheckAccessService
|
|
5548
|
+
] }); }
|
|
5068
5549
|
}
|
|
5069
5550
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiDirectiveModule, decorators: [{
|
|
5070
5551
|
type: NgModule,
|
|
@@ -5074,15 +5555,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
5074
5555
|
TCloudUiAlignDirective,
|
|
5075
5556
|
TCloudUiHoverParentDirective,
|
|
5076
5557
|
TCloudUiElCopyDirective,
|
|
5077
|
-
|
|
5558
|
+
TCloudUiCurrencyDirective,
|
|
5559
|
+
TCloudUiCheckAccessDirective,
|
|
5560
|
+
TCloudUiNgCheckAccessDirective,
|
|
5561
|
+
TCloudUiNgFeatureFlagsDirective,
|
|
5562
|
+
TCloudUiDigitOnlyDirective,
|
|
5563
|
+
TCloudUiHighLightDirective,
|
|
5564
|
+
TCloudUiIpMaskDirective
|
|
5078
5565
|
],
|
|
5079
5566
|
exports: [
|
|
5080
5567
|
TCloudUiTooltipDirective,
|
|
5081
5568
|
TCloudUiAlignDirective,
|
|
5082
5569
|
TCloudUiHoverParentDirective,
|
|
5083
5570
|
TCloudUiElCopyDirective,
|
|
5084
|
-
|
|
5571
|
+
TCloudUiCurrencyDirective,
|
|
5572
|
+
TCloudUiCheckAccessDirective,
|
|
5573
|
+
TCloudUiNgCheckAccessDirective,
|
|
5574
|
+
TCloudUiNgFeatureFlagsDirective,
|
|
5575
|
+
TCloudUiDigitOnlyDirective,
|
|
5576
|
+
TCloudUiHighLightDirective,
|
|
5577
|
+
TCloudUiIpMaskDirective
|
|
5085
5578
|
],
|
|
5579
|
+
providers: [
|
|
5580
|
+
TCloudUiCheckAccessService
|
|
5581
|
+
]
|
|
5086
5582
|
}]
|
|
5087
5583
|
}] });
|
|
5088
5584
|
|
|
@@ -5937,7 +6433,7 @@ class TCloudUiProgressBarComponent {
|
|
|
5937
6433
|
// Calcula o valor correspondente ao percentual do valor base
|
|
5938
6434
|
let resultado = valorBase / (percentual / 100);
|
|
5939
6435
|
this.new_status = resultado;
|
|
5940
|
-
console.log('new_status', this.new_status);
|
|
6436
|
+
// console.log('new_status', this.new_status);
|
|
5941
6437
|
}
|
|
5942
6438
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5943
6439
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiProgressBarComponent, selector: "tcloud-ui-progress-bar", inputs: { limit: "limit", status: "status", mode: "mode", height: "height", useDefaultBackground: "useDefaultBackground", showValue: "showValue" }, ngImport: i0, template: "<div class=\"tc-ui-progress-bar tc-background-{{ progress_class }}\"> \r\n <div class=\"tc-progress-bar {{ height_class }}\" [class.use-background]=\"useDefaultBackground\" >\r\n\r\n <div *ngIf=\"!limit\" class=\"tc-progress-bar-status {{ progress_class }} {{ height_class }}\" [style]=\"'width: ' + status + '%'\"></div>\r\n <div *ngIf=\"limit\" class=\"tc-progress-bar-status {{ progress_class }} {{ height_class }}\" [style]=\"'width: ' + new_status + '%'\"></div>\r\n\r\n <label *ngIf=\"( height_class === 'height-normal' || height_class === 'height-fat' || height_class === 'height-very-fat' ) && showValue\" \r\n [class.fixed-left]=\"(+status >= 12)\" \r\n [style]=\"'left: '+ (70) +'px'\" \r\n class=\"indicative-value info-{{ progress_class }}\">{{ status }}%\r\n </label>\r\n </div>\r\n</div>\r\n<div *ngIf=\"limit && (+limit > 100)\" >\r\n <div [class.indicative-limit]=\"limit\" [style]=\"{'width': value_100+'%'}\">\r\n <label>100%</label>\r\n </div> \r\n</div>\r\n\r\n", styles: [".tc-background-progress-gradient-success{border:none!important}.tc-background-progress-gradient-success .tc-progress-bar{background:#2fea9b;background:linear-gradient(90deg,#def1d5,#cef3e4)}.tc-background-progress-gradient-warning{border:none!important}.tc-background-progress-gradient-warning .tc-progress-bar{background:#f7e3d0;background:linear-gradient(90deg,#f7e3d0,#f7d9d8)}.tc-background-progress-gradient-info{border:none!important}.tc-background-progress-gradient-info .tc-progress-bar{background:#2fea9b;background:linear-gradient(90deg,#def1d5,#cef3e4)}.tc-background-progress-gradient-danger{border:none!important}.tc-background-progress-gradient-danger .tc-progress-bar{background:#f4d0f7;background:linear-gradient(90deg,#f4d0f7,#eea7a5)}.tc-ui-progress-bar{border:1px solid #ccc;border-radius:9px}.tc-ui-progress-bar .height-slim{height:10px;border-radius:5px}.tc-ui-progress-bar .height-normal{height:15px;border-radius:8px}.tc-ui-progress-bar .height-normal .indicative-value{position:relative;top:-18.5px!important;z-index:1;font-size:12px!important;font-weight:400!important}.tc-ui-progress-bar .height-fat{height:20px;border-radius:10px}.tc-ui-progress-bar .height-fat .indicative-value{position:relative;top:-21px!important;z-index:1;font-size:13.5px!important;font-weight:400!important}.tc-ui-progress-bar .height-very-fat{height:24px;border-radius:10px}.tc-ui-progress-bar .height-very-fat .indicative-value{position:relative;top:-24px!important;z-index:1;font-size:15.5px!important;font-weight:400!important}.tc-ui-progress-bar .tc-progress-bar{border:1px solid #fff;overflow:hidden}.tc-ui-progress-bar .tc-progress-bar.use-background{background-color:var(--tc-gray-200)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status{transition:width 2s ease;position:relative;bottom:1px}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-primary{background-color:var(--tc-primary)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-danger{background-color:var(--red)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-warning{background-color:var(--orange)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-info{background-color:var(--azul)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-success{background-color:var(--green2)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-gray{background-color:var(--tc-gray-500)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-gradient-success{background:#2fea9b;background:linear-gradient(90deg,#2fea9b,#7fdd53)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-gradient-warning{background:#ffbf1a;background:linear-gradient(90deg,0%,rgb(255,191,26) 0%,rgb(255,64,128) 100%)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-gradient-info{background:#2fea9b;background:linear-gradient(90deg,#2fea9b,#7fdd53)}.tc-ui-progress-bar .tc-progress-bar .tc-progress-bar-status.progress-gradient-danger{background:#ea2f67;background:linear-gradient(90deg,0%,rgb(233,47,102) 0%,rgb(208,46,46) 100%)}label.indicative-value{position:relative;top:-19.5px;z-index:1;font-size:12.5px;font-weight:500}label.indicative-value.info-progress-gradient-success,label.indicative-value.info-progress-success{color:var(--green2)}label.indicative-value.info-progress-gradient-anger,label.indicative-value.info-progress-danger{color:#d02e2e}label.indicative-value.info-progress-gradient-warning,label.indicative-value.info-progress-warning{color:#f7b50c}label.indicative-value.fixed-left{left:16px!important;color:#fff!important}.indicative-limit{border-right:2px solid #000;line-height:0;height:30px;position:relative;top:-20px;text-align:right}.indicative-limit label{position:relative;top:30px;left:-3px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
@@ -6262,6 +6758,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
6262
6758
|
}] });
|
|
6263
6759
|
|
|
6264
6760
|
class TCloudUiModule {
|
|
6761
|
+
static forRoot(config) {
|
|
6762
|
+
return {
|
|
6763
|
+
ngModule: TCloudUiModule,
|
|
6764
|
+
providers: [
|
|
6765
|
+
{ provide: 'TCloudUiConfig', useValue: config.data },
|
|
6766
|
+
{ provide: 'UserService', useExisting: config?.services?.userService }
|
|
6767
|
+
]
|
|
6768
|
+
};
|
|
6769
|
+
}
|
|
6265
6770
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6266
6771
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModule, imports: [TCloudUiModalModule,
|
|
6267
6772
|
TCloudUiTabMenuModule,
|
|
@@ -6323,6 +6828,7 @@ class TCloudUiModule {
|
|
|
6323
6828
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModule, providers: [
|
|
6324
6829
|
TCloudUiLoadingTransitionsService,
|
|
6325
6830
|
TCloudUiSearchInObjectService,
|
|
6831
|
+
TCloudUiCheckAccessService
|
|
6326
6832
|
], imports: [TCloudUiModalModule,
|
|
6327
6833
|
TCloudUiTabMenuModule,
|
|
6328
6834
|
TCloudUiLinhaLogoModule,
|
|
@@ -6449,6 +6955,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
6449
6955
|
providers: [
|
|
6450
6956
|
TCloudUiLoadingTransitionsService,
|
|
6451
6957
|
TCloudUiSearchInObjectService,
|
|
6958
|
+
TCloudUiCheckAccessService
|
|
6452
6959
|
]
|
|
6453
6960
|
}]
|
|
6454
6961
|
}] });
|
|
@@ -6461,5 +6968,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
6461
6968
|
* Generated bundle index. Do not edit.
|
|
6462
6969
|
*/
|
|
6463
6970
|
|
|
6464
|
-
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType,
|
|
6971
|
+
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionModule, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiCheckAccessDirective, TCloudUiCheckAccessService, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiCubesComponent, TCloudUiCurrencyDirective, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerModule, TCloudUiDatepickerTimeComponent, TCloudUiDatepickerTimeModule, TCloudUiDigitOnlyDirective, TCloudUiDirectiveModule, TCloudUiElCopyDirective, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiHighLightDirective, TCloudUiHoverParentDirective, TCloudUiInputPasswordComponent, TCloudUiInputPasswordModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiIpMaskDirective, TCloudUiLabelTokenComponent, TCloudUiLabelTokenModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLineStepTitleComponent, TCloudUiLineStepTitleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingComponent, TCloudUiLoadingModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiMultiplesValuesComponent, TCloudUiMultiplesValuesModule, TCloudUiNgCheckAccessDirective, TCloudUiNgFeatureFlagsDirective, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiProgressBarComponent, TCloudUiProgressBarModule, TCloudUiRangeDateComponent, TCloudUiReorderItemsComponent, TCloudUiReorderItemsModule, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective, TCloudUiWelcomeComponent, TCloudUiWelcomeModule, ToTextPipe };
|
|
6465
6972
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|