@dev-tcloud/tcloud-ui 6.19.2 → 6.20.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/docs/tcloud-ui-dialog.md +167 -0
- package/docs/tcloud-ui-progress-status-bar.md +92 -0
- package/fesm2022/dev-tcloud-tcloud-ui.mjs +371 -39
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/js/tcloud-ui-app.js +1 -1
- package/lib/_modules/tcloud-ui-dialog/enums/tcloud-ui-dialog-events.enum.d.ts +4 -0
- package/lib/_modules/tcloud-ui-dialog/enums/tcloud-ui-dialog-status.enum.d.ts +6 -0
- package/lib/_modules/tcloud-ui-dialog/enums/tcloud-ui-dialog-text-confirmation.enum.d.ts +5 -0
- package/lib/_modules/tcloud-ui-dialog/models/tcloud-ui-dialog.model.d.ts +12 -0
- package/lib/_modules/tcloud-ui-dialog/services/tcloud-ui-dialog-service.d.ts +26 -0
- package/lib/_modules/tcloud-ui-dialog/tcloud-ui-dialog.component.d.ts +53 -0
- package/lib/_modules/tcloud-ui-progress-status-bar/tcloud-ui-progress-status-bar.component.d.ts +22 -0
- package/lib/revitalizacao/components/tc-rev-progress-status-bar/tc-rev-progress-status-bar.component.d.ts +3 -2
- package/lib/tcloud-ui.module.d.ts +60 -58
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/scss/components/custom/modal.scss +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, EventEmitter, Input, Output, InjectionToken, Optional, Inject, inject, signal, Pipe, forwardRef, ViewChild, input, effect, Directive, ViewEncapsulation, SkipSelf, ChangeDetectionStrategy, HostListener, ChangeDetectorRef, computed, ApplicationRef, output, model, ContentChildren, viewChild, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { Injectable, Component, EventEmitter, Input, Output, InjectionToken, Optional, Inject, inject, signal, Pipe, forwardRef, ViewChild, input, effect, Directive, ViewEncapsulation, SkipSelf, ChangeDetectionStrategy, HostListener, ChangeDetectorRef, computed, ApplicationRef, output, model, ContentChildren, viewChild, ComponentFactoryResolver, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DatePipe, DOCUMENT } from '@angular/common';
|
|
5
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
|
-
import { NG_VALUE_ACCESSOR, FormsModule, FormControl, ReactiveFormsModule, NG_VALIDATORS,
|
|
8
|
+
import { NG_VALUE_ACCESSOR, FormsModule, FormControl, ReactiveFormsModule, NG_VALIDATORS, Validators, FormGroup } from '@angular/forms';
|
|
9
9
|
import * as i1$1 from '@angular/router';
|
|
10
10
|
import { Router, RouterModule } from '@angular/router';
|
|
11
11
|
|
|
@@ -282,6 +282,15 @@ var modal$1 = {
|
|
|
282
282
|
to_confirm: "to confirm",
|
|
283
283
|
textByConfirm: "confirm"
|
|
284
284
|
};
|
|
285
|
+
var dialogConfirmation$1 = {
|
|
286
|
+
default_title: "Attention",
|
|
287
|
+
default_message: "Do you really want to execute this action?",
|
|
288
|
+
cancel: "Cancel",
|
|
289
|
+
"continue": "Continue",
|
|
290
|
+
remove: "Remove",
|
|
291
|
+
confirm: "Confirm",
|
|
292
|
+
input_confirmation_error: "Type the word \"{{word}}\"."
|
|
293
|
+
};
|
|
285
294
|
var enUS = {
|
|
286
295
|
choiceIssues: choiceIssues$1,
|
|
287
296
|
inputPassword: inputPassword$1,
|
|
@@ -290,7 +299,8 @@ var enUS = {
|
|
|
290
299
|
notFound: notFound$1,
|
|
291
300
|
searchInObject: searchInObject$1,
|
|
292
301
|
uploadArea: uploadArea$1,
|
|
293
|
-
modal: modal$1
|
|
302
|
+
modal: modal$1,
|
|
303
|
+
dialogConfirmation: dialogConfirmation$1
|
|
294
304
|
};
|
|
295
305
|
|
|
296
306
|
var choiceIssues = {
|
|
@@ -327,6 +337,15 @@ var modal = {
|
|
|
327
337
|
to_confirm: "para confirmar",
|
|
328
338
|
textByConfirm: "confirmo"
|
|
329
339
|
};
|
|
340
|
+
var dialogConfirmation = {
|
|
341
|
+
default_title: "Atención",
|
|
342
|
+
default_message: "¿Desea realmente ejecutar esta acción?",
|
|
343
|
+
cancel: "Cancelar",
|
|
344
|
+
"continue": "Continuar",
|
|
345
|
+
remove: "Eliminar",
|
|
346
|
+
confirm: "Confirmar",
|
|
347
|
+
input_confirmation_error: "Escribe la palabra \"{{word}}\"."
|
|
348
|
+
};
|
|
330
349
|
var esES = {
|
|
331
350
|
choiceIssues: choiceIssues,
|
|
332
351
|
inputPassword: inputPassword,
|
|
@@ -335,7 +354,8 @@ var esES = {
|
|
|
335
354
|
notFound: notFound,
|
|
336
355
|
searchInObject: searchInObject,
|
|
337
356
|
uploadArea: uploadArea,
|
|
338
|
-
modal: modal
|
|
357
|
+
modal: modal,
|
|
358
|
+
dialogConfirmation: dialogConfirmation
|
|
339
359
|
};
|
|
340
360
|
|
|
341
361
|
const LOCALE_MESSAGES = {
|
|
@@ -5631,6 +5651,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
5631
5651
|
type: Input
|
|
5632
5652
|
}] } });
|
|
5633
5653
|
|
|
5654
|
+
var ProgressStatusBarGradientStatus$1;
|
|
5655
|
+
(function (ProgressStatusBarGradientStatus) {
|
|
5656
|
+
ProgressStatusBarGradientStatus["info"] = "info";
|
|
5657
|
+
ProgressStatusBarGradientStatus["danger"] = "danger";
|
|
5658
|
+
ProgressStatusBarGradientStatus["success"] = "success";
|
|
5659
|
+
ProgressStatusBarGradientStatus["alert"] = "alert";
|
|
5660
|
+
})(ProgressStatusBarGradientStatus$1 || (ProgressStatusBarGradientStatus$1 = {}));
|
|
5661
|
+
var ProgressStatusBarRangeColor$1;
|
|
5662
|
+
(function (ProgressStatusBarRangeColor) {
|
|
5663
|
+
ProgressStatusBarRangeColor["dangerStart"] = "#F48E85";
|
|
5664
|
+
ProgressStatusBarRangeColor["dangerEnd"] = "#DC3545";
|
|
5665
|
+
ProgressStatusBarRangeColor["alertStart"] = "#FECD6E";
|
|
5666
|
+
ProgressStatusBarRangeColor["alertEnd"] = "#FEAC0E";
|
|
5667
|
+
ProgressStatusBarRangeColor["infoStart"] = "#6BC1F2";
|
|
5668
|
+
ProgressStatusBarRangeColor["infoEnd"] = "#0897E9";
|
|
5669
|
+
ProgressStatusBarRangeColor["successStart"] = "#A3E78C";
|
|
5670
|
+
ProgressStatusBarRangeColor["successEnd"] = "#47B13D";
|
|
5671
|
+
})(ProgressStatusBarRangeColor$1 || (ProgressStatusBarRangeColor$1 = {}));
|
|
5672
|
+
class TCloudUiProgressStatusBarComponent {
|
|
5673
|
+
constructor() {
|
|
5674
|
+
this.currentValue = input.required();
|
|
5675
|
+
this.progressStatusConfig = input.required();
|
|
5676
|
+
this.backgroundStyle = '';
|
|
5677
|
+
effect(() => {
|
|
5678
|
+
this.backgroundStyle = this.getBackgroundStyle();
|
|
5679
|
+
});
|
|
5680
|
+
}
|
|
5681
|
+
getBackgroundStyle() {
|
|
5682
|
+
if (!this.currentValue())
|
|
5683
|
+
return '';
|
|
5684
|
+
let currentStatusConfig = this.progressStatusConfig().find((x) => (this.currentValue() >= x.start && this.currentValue() <= x.end));
|
|
5685
|
+
const lastStatusConfig = this.progressStatusConfig()[this.progressStatusConfig()?.length - 1];
|
|
5686
|
+
if (!currentStatusConfig && this.currentValue() < lastStatusConfig.end)
|
|
5687
|
+
return '';
|
|
5688
|
+
if (!currentStatusConfig && this.currentValue() > lastStatusConfig.end) {
|
|
5689
|
+
currentStatusConfig = { start: 0, end: 100, gradientStatus: lastStatusConfig.gradientStatus };
|
|
5690
|
+
}
|
|
5691
|
+
const startStatus = this.getProgressStatusBarRangeColor(currentStatusConfig.gradientStatus, 'start');
|
|
5692
|
+
const endStatus = this.getProgressStatusBarRangeColor(currentStatusConfig.gradientStatus, 'end');
|
|
5693
|
+
let style = `width:${this.currentValue()}%;backgroundImage:linear-gradient(90deg`;
|
|
5694
|
+
style += `,${startStatus} 0%,${endStatus} 100%);`;
|
|
5695
|
+
return style;
|
|
5696
|
+
}
|
|
5697
|
+
getProgressStatusBarRangeColor(_gradientStatus, position) {
|
|
5698
|
+
switch (_gradientStatus) {
|
|
5699
|
+
case ProgressStatusBarGradientStatus$1.alert:
|
|
5700
|
+
return position === 'start' ? ProgressStatusBarRangeColor$1.alertStart : ProgressStatusBarRangeColor$1.alertEnd;
|
|
5701
|
+
case ProgressStatusBarGradientStatus$1.danger:
|
|
5702
|
+
return position === 'start' ? ProgressStatusBarRangeColor$1.dangerStart : ProgressStatusBarRangeColor$1.dangerEnd;
|
|
5703
|
+
case ProgressStatusBarGradientStatus$1.success:
|
|
5704
|
+
return position === 'start' ? ProgressStatusBarRangeColor$1.successStart : ProgressStatusBarRangeColor$1.successEnd;
|
|
5705
|
+
default:
|
|
5706
|
+
return position === 'start' ? ProgressStatusBarRangeColor$1.infoStart : ProgressStatusBarRangeColor$1.infoEnd;
|
|
5707
|
+
}
|
|
5708
|
+
}
|
|
5709
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiProgressStatusBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5710
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.21", type: TCloudUiProgressStatusBarComponent, isStandalone: true, selector: "tcloud-ui-progress-status-bar", inputs: { currentValue: { classPropertyName: "currentValue", publicName: "currentValue", isSignal: true, isRequired: true, transformFunction: null }, progressStatusConfig: { classPropertyName: "progressStatusConfig", publicName: "progressStatusConfig", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"progress-status-bar-container\">\n <div\n class=\"progress-status-bar\"\n [style]=\"this.backgroundStyle\">\n </div>\n</div>\n", styles: [":host{display:block}.progress-status-bar-container{background-color:var(--c-neutral-200);border-radius:var(--bor-radius-pill);display:block;height:var(--size-12);position:relative}.progress-status-bar-container .progress-status-bar{border-radius:var(--bor-radius-pill);display:block;height:var(--size-12);left:0;max-width:100%;position:absolute;top:0;transition:width .2s linear;width:0}\n"] }); }
|
|
5711
|
+
}
|
|
5712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiProgressStatusBarComponent, decorators: [{
|
|
5713
|
+
type: Component,
|
|
5714
|
+
args: [{ selector: 'tcloud-ui-progress-status-bar', imports: [], template: "<div class=\"progress-status-bar-container\">\n <div\n class=\"progress-status-bar\"\n [style]=\"this.backgroundStyle\">\n </div>\n</div>\n", styles: [":host{display:block}.progress-status-bar-container{background-color:var(--c-neutral-200);border-radius:var(--bor-radius-pill);display:block;height:var(--size-12);position:relative}.progress-status-bar-container .progress-status-bar{border-radius:var(--bor-radius-pill);display:block;height:var(--size-12);left:0;max-width:100%;position:absolute;top:0;transition:width .2s linear;width:0}\n"] }]
|
|
5715
|
+
}], ctorParameters: () => [] });
|
|
5716
|
+
|
|
5634
5717
|
class TCloudUiReorderItemsComponent {
|
|
5635
5718
|
constructor() {
|
|
5636
5719
|
this.sort_items = [];
|
|
@@ -8982,6 +9065,267 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
8982
9065
|
}]
|
|
8983
9066
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
8984
9067
|
|
|
9068
|
+
var TCloudUiDialogEventsEnum;
|
|
9069
|
+
(function (TCloudUiDialogEventsEnum) {
|
|
9070
|
+
TCloudUiDialogEventsEnum[TCloudUiDialogEventsEnum["open"] = 0] = "open";
|
|
9071
|
+
TCloudUiDialogEventsEnum[TCloudUiDialogEventsEnum["close"] = 1] = "close";
|
|
9072
|
+
})(TCloudUiDialogEventsEnum || (TCloudUiDialogEventsEnum = {}));
|
|
9073
|
+
|
|
9074
|
+
class TcRevSmallLoadingComponent {
|
|
9075
|
+
constructor() {
|
|
9076
|
+
/** Width of the loading spinner accepts string with CSS units (px, rem, em) */
|
|
9077
|
+
this.width = input('1.25rem');
|
|
9078
|
+
/** Margin top in pixels */
|
|
9079
|
+
this.marginTop = input(0);
|
|
9080
|
+
/** Margin bottom in pixels */
|
|
9081
|
+
this.marginBottom = input(0);
|
|
9082
|
+
/** Margin right in pixels */
|
|
9083
|
+
this.marginRight = input(0);
|
|
9084
|
+
/** Margin left in pixels */
|
|
9085
|
+
this.marginLeft = input(0);
|
|
9086
|
+
this.style = new TcRevSmallLoadingComponentStyle();
|
|
9087
|
+
}
|
|
9088
|
+
ngOnInit() {
|
|
9089
|
+
this.style.marginTop = `${this.marginTop()}px`;
|
|
9090
|
+
this.style.marginRight = `${this.marginRight()}px`;
|
|
9091
|
+
this.style.marginLeft = `${this.marginLeft()}px`;
|
|
9092
|
+
this.style.marginBottom = `${this.marginBottom()}px`;
|
|
9093
|
+
this.style.width = this.width();
|
|
9094
|
+
this.style.height = this.width();
|
|
9095
|
+
}
|
|
9096
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TcRevSmallLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9097
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.21", type: TcRevSmallLoadingComponent, isStandalone: true, selector: "tc-rev-small-loading", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, marginTop: { classPropertyName: "marginTop", publicName: "marginTop", isSignal: true, isRequired: false, transformFunction: null }, marginBottom: { classPropertyName: "marginBottom", publicName: "marginBottom", isSignal: true, isRequired: false, transformFunction: null }, marginRight: { classPropertyName: "marginRight", publicName: "marginRight", isSignal: true, isRequired: false, transformFunction: null }, marginLeft: { classPropertyName: "marginLeft", publicName: "marginLeft", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"tc-rev-small-loading\">\n <span\n class=\"tc-rev-small-loading__spinner\"\n [ngStyle]=\"this.style\">\n </span>\n</div>\n", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tc-rev-small-loading{display:flex;align-items:center;justify-content:center}.tc-rev-small-loading__spinner{animation:rotation 1s linear infinite;border:3px solid var(--c-neutral-200);border-bottom-color:var(--c-neutral-500);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--size-20);width:var(--size-20)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
9098
|
+
}
|
|
9099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TcRevSmallLoadingComponent, decorators: [{
|
|
9100
|
+
type: Component,
|
|
9101
|
+
args: [{ selector: 'tc-rev-small-loading', imports: [CommonModule], template: "<div class=\"tc-rev-small-loading\">\n <span\n class=\"tc-rev-small-loading__spinner\"\n [ngStyle]=\"this.style\">\n </span>\n</div>\n", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tc-rev-small-loading{display:flex;align-items:center;justify-content:center}.tc-rev-small-loading__spinner{animation:rotation 1s linear infinite;border:3px solid var(--c-neutral-200);border-bottom-color:var(--c-neutral-500);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--size-20);width:var(--size-20)}\n"] }]
|
|
9102
|
+
}] });
|
|
9103
|
+
class TcRevSmallLoadingComponentStyle {
|
|
9104
|
+
}
|
|
9105
|
+
|
|
9106
|
+
class TCloudUiDialogComponent {
|
|
9107
|
+
constructor() {
|
|
9108
|
+
this.animation = 'visible';
|
|
9109
|
+
this.inputConfirmationControl = new FormControl('', [Validators.required]);
|
|
9110
|
+
this.events = new BehaviorSubject(TCloudUiDialogEventsEnum.open);
|
|
9111
|
+
this.isClosing = false;
|
|
9112
|
+
// * [Injects]
|
|
9113
|
+
this.i18n = inject(I18nService);
|
|
9114
|
+
}
|
|
9115
|
+
onKeydownHandler(event) {
|
|
9116
|
+
if (this.data?.disable || this.data?.loading)
|
|
9117
|
+
return;
|
|
9118
|
+
event.preventDefault();
|
|
9119
|
+
this.close(true);
|
|
9120
|
+
}
|
|
9121
|
+
ngDoCheck() {
|
|
9122
|
+
this.syncInputConfirmationDisabledState();
|
|
9123
|
+
}
|
|
9124
|
+
/**
|
|
9125
|
+
* `FormControl` ignora `[disabled]` no template; `data.loading` / `data.disable`
|
|
9126
|
+
* podem mudar por mutação no modelo após abrir o dialog.
|
|
9127
|
+
*/
|
|
9128
|
+
syncInputConfirmationDisabledState() {
|
|
9129
|
+
if (!this.data?.inputConfirmationText)
|
|
9130
|
+
return;
|
|
9131
|
+
const shouldDisable = !!(this.data.disable || this.data.loading);
|
|
9132
|
+
if (shouldDisable && this.inputConfirmationControl.enabled) {
|
|
9133
|
+
this.inputConfirmationControl.disable({ emitEvent: false });
|
|
9134
|
+
}
|
|
9135
|
+
else if (!shouldDisable && this.inputConfirmationControl.disabled) {
|
|
9136
|
+
this.inputConfirmationControl.enable({ emitEvent: false });
|
|
9137
|
+
}
|
|
9138
|
+
}
|
|
9139
|
+
/**
|
|
9140
|
+
* Método para validar o valor do input! A confirmação deve ser igual a 'DELTE'
|
|
9141
|
+
*/
|
|
9142
|
+
checkInputConfirmation() {
|
|
9143
|
+
const inputValue = this.inputConfirmationControl.value ?? '';
|
|
9144
|
+
return inputValue.toUpperCase() === this.textConfirmation.toUpperCase();
|
|
9145
|
+
}
|
|
9146
|
+
/** Fecha com `onCancel` quando `data.disableClickOutside` está habilitado e o dialog não está bloqueado. */
|
|
9147
|
+
onBackdropClick() {
|
|
9148
|
+
if (!this.data?.disableClickOutside || this.data.disable)
|
|
9149
|
+
return;
|
|
9150
|
+
this.close(true);
|
|
9151
|
+
}
|
|
9152
|
+
/** Substitui `{{word}}` na mensagem vinda de `dialogConfirmation.input_confirmation_error`. */
|
|
9153
|
+
inputConfirmationErrorMessage() {
|
|
9154
|
+
const word = (this.textConfirmation ?? '').toLowerCase();
|
|
9155
|
+
const template = this.i18n.i18nTranslate('dialogConfirmation.input_confirmation_error', 'Digite corretamente a palavra "{{word}}".');
|
|
9156
|
+
return template.replace(/\{\{\s*word\s*\}\}/gi, word);
|
|
9157
|
+
}
|
|
9158
|
+
/**
|
|
9159
|
+
* Fecha o dialog após a animação.
|
|
9160
|
+
* @param emitCancel `true` (padrão): dispara `onCancel` — uso do X, Esc, botão Cancelar.
|
|
9161
|
+
* `false`: só remove o modal — ex.: após fluxo concluído em `onConfirm` (`dialog.close(false)`).
|
|
9162
|
+
*/
|
|
9163
|
+
close(emitCancel = true) {
|
|
9164
|
+
if (this.isClosing)
|
|
9165
|
+
return;
|
|
9166
|
+
this.isClosing = true;
|
|
9167
|
+
if (this.data) {
|
|
9168
|
+
this.data.loading = false;
|
|
9169
|
+
this.data.disable = false;
|
|
9170
|
+
}
|
|
9171
|
+
if (this.inputConfirmationControl.disabled) {
|
|
9172
|
+
this.inputConfirmationControl.enable({ emitEvent: false });
|
|
9173
|
+
}
|
|
9174
|
+
this.animation = 'hide';
|
|
9175
|
+
setTimeout(() => {
|
|
9176
|
+
if (emitCancel) {
|
|
9177
|
+
this.cancelFunction?.(this);
|
|
9178
|
+
}
|
|
9179
|
+
this.events.next(TCloudUiDialogEventsEnum.close);
|
|
9180
|
+
this.events.complete();
|
|
9181
|
+
}, 300);
|
|
9182
|
+
}
|
|
9183
|
+
/**
|
|
9184
|
+
* Método usado no .html para solicitar o click no botão de confirmação
|
|
9185
|
+
*/
|
|
9186
|
+
confirm() {
|
|
9187
|
+
if (!this.data.loading) {
|
|
9188
|
+
if (this.data.inputConfirmationText) {
|
|
9189
|
+
if (this.checkInputConfirmation()) {
|
|
9190
|
+
this.confirmFunction(this);
|
|
9191
|
+
}
|
|
9192
|
+
else {
|
|
9193
|
+
this.inputConfirmationControl.markAsTouched({ onlySelf: true });
|
|
9194
|
+
this.inputConfirmationControl.setErrors({ incorrect: true });
|
|
9195
|
+
}
|
|
9196
|
+
}
|
|
9197
|
+
else {
|
|
9198
|
+
this.confirmFunction(this);
|
|
9199
|
+
}
|
|
9200
|
+
}
|
|
9201
|
+
}
|
|
9202
|
+
/**
|
|
9203
|
+
* Méotodo usuário nos components pai, para receber o momento de fechamento do modal
|
|
9204
|
+
* @param fn Obj component
|
|
9205
|
+
*/
|
|
9206
|
+
onCancel(fn) {
|
|
9207
|
+
this.cancelFunction = fn;
|
|
9208
|
+
return this;
|
|
9209
|
+
}
|
|
9210
|
+
/**
|
|
9211
|
+
* Méotodo usuário nos components pai, para receber o momento de confirmação do modal
|
|
9212
|
+
* @param fn Obj component
|
|
9213
|
+
*/
|
|
9214
|
+
onConfirm(fn) {
|
|
9215
|
+
this.confirmFunction = fn;
|
|
9216
|
+
return this;
|
|
9217
|
+
}
|
|
9218
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9219
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: TCloudUiDialogComponent, isStandalone: true, selector: "tcloud-ui-dialog", host: { listeners: { "document:keydown.escape": "onKeydownHandler($event)" } }, ngImport: i0, template: "<div class=\"background-modal\" (click)=\"onBackdropClick()\"></div>\n\n@let disabled = data.disable || data.loading;\n<div class=\"container-dialog\" [@fade]=\"animation\">\n\n <!-- Header -->\n <div class=\"container-header\">\n\n <!-- Title -->\n <h4 class=\"tc-title tcloud-ui-modal-header tc-modal-header\">{{ data.title }}</h4>\n\n <!-- Close button -->\n <div class=\"container-close-button\" (click)=\" disabled ? null : close()\">\n <i class=\"fas fa-times\"></i>\n </div>\n </div>\n\n <!-- Message -->\n <div [innerHTML]=\"data.message\"></div>\n\n <!-- Input confirmation -->\n @if (data?.inputConfirmationText)\n {\n <div class=\"container-input-confirmation\">\n <input\n tcloudForm\n class=\"tc-form-confirm tc-form-control\"\n [formControl]=\"inputConfirmationControl\"\n [placeholder]=\"inputConfirmationErrorMessage()\"\n (keyup.enter)=\"confirm()\"\n />\n\n @if (inputConfirmationControl.touched && inputConfirmationControl.invalid)\n {\n <p class=\"text-danger\">{{ inputConfirmationErrorMessage() }}</p>\n }\n </div>\n }\n\n <!-- Loading -->\n @if (data.loading)\n {\n <tc-rev-small-loading />\n }\n\n <!-- Footer -->\n <div class=\"container-footer\">\n\n <!-- Cancelar -->\n <button\n class=\"tc-btn tc-btn-outline-primary\"\n [disabled]=\"disabled\"\n (click)=\"close()\">{{ data.buttonCancelText || ('dialogConfirmation.cancel' | i18nTranslate: 'Cancelar') }}\n </button>\n\n <!-- Confirmar -->\n <button\n class=\"tc-btn tc-btn-primary\"\n [disabled]=\"disabled\"\n (click)=\"confirm()\">{{ textConfirmation | titlecase }}\n </button>\n </div>\n</div>\n", styles: [".background-modal{position:fixed;z-index:2000;width:100%;height:100%;background-color:#00000080;top:0;left:0}.container-dialog{position:fixed;top:15%;left:calc(50% - 300px);width:500px;z-index:20001;border-radius:8px;padding:24px;box-sizing:border-box;display:grid;gap:24px;background-color:var(--white)}.container-dialog .container-header{display:flex;justify-content:space-between;align-items:center}.container-dialog .container-header .tc-title{font-size:18px;font-weight:700}.container-dialog .container-header .container-close-button{width:40px;height:40px;border-radius:100%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--tc-gray-600);border:1px solid var(--tc-gray-500)}.container-dialog .container-input-confirmation{display:grid;gap:8px}.container-dialog .container-footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.container-dialog .container-footer button{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: I18nTranslatePipe, name: "i18nTranslate" }, { kind: "component", type: TcRevSmallLoadingComponent, selector: "tc-rev-small-loading", inputs: ["width", "marginTop", "marginBottom", "marginRight", "marginLeft"] }], animations: [
|
|
9220
|
+
trigger('fade', [
|
|
9221
|
+
state('visible', style({ opacity: 1 })),
|
|
9222
|
+
state('hide', style({ opacity: 0, top: '-38%' })),
|
|
9223
|
+
transition('void => visible', [
|
|
9224
|
+
style({ opacity: 0, top: '-38%' }),
|
|
9225
|
+
animate('0.3s ease-out')
|
|
9226
|
+
]),
|
|
9227
|
+
transition('visible => hide', animate('0.3s ease-out'))
|
|
9228
|
+
])
|
|
9229
|
+
] }); }
|
|
9230
|
+
}
|
|
9231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiDialogComponent, decorators: [{
|
|
9232
|
+
type: Component,
|
|
9233
|
+
args: [{ selector: 'tcloud-ui-dialog', animations: [
|
|
9234
|
+
trigger('fade', [
|
|
9235
|
+
state('visible', style({ opacity: 1 })),
|
|
9236
|
+
state('hide', style({ opacity: 0, top: '-38%' })),
|
|
9237
|
+
transition('void => visible', [
|
|
9238
|
+
style({ opacity: 0, top: '-38%' }),
|
|
9239
|
+
animate('0.3s ease-out')
|
|
9240
|
+
]),
|
|
9241
|
+
transition('visible => hide', animate('0.3s ease-out'))
|
|
9242
|
+
])
|
|
9243
|
+
], standalone: true, imports: [CommonModule, ReactiveFormsModule, I18nTranslatePipe, TCloudUiLoadingComponent, TcRevSmallLoadingComponent], template: "<div class=\"background-modal\" (click)=\"onBackdropClick()\"></div>\n\n@let disabled = data.disable || data.loading;\n<div class=\"container-dialog\" [@fade]=\"animation\">\n\n <!-- Header -->\n <div class=\"container-header\">\n\n <!-- Title -->\n <h4 class=\"tc-title tcloud-ui-modal-header tc-modal-header\">{{ data.title }}</h4>\n\n <!-- Close button -->\n <div class=\"container-close-button\" (click)=\" disabled ? null : close()\">\n <i class=\"fas fa-times\"></i>\n </div>\n </div>\n\n <!-- Message -->\n <div [innerHTML]=\"data.message\"></div>\n\n <!-- Input confirmation -->\n @if (data?.inputConfirmationText)\n {\n <div class=\"container-input-confirmation\">\n <input\n tcloudForm\n class=\"tc-form-confirm tc-form-control\"\n [formControl]=\"inputConfirmationControl\"\n [placeholder]=\"inputConfirmationErrorMessage()\"\n (keyup.enter)=\"confirm()\"\n />\n\n @if (inputConfirmationControl.touched && inputConfirmationControl.invalid)\n {\n <p class=\"text-danger\">{{ inputConfirmationErrorMessage() }}</p>\n }\n </div>\n }\n\n <!-- Loading -->\n @if (data.loading)\n {\n <tc-rev-small-loading />\n }\n\n <!-- Footer -->\n <div class=\"container-footer\">\n\n <!-- Cancelar -->\n <button\n class=\"tc-btn tc-btn-outline-primary\"\n [disabled]=\"disabled\"\n (click)=\"close()\">{{ data.buttonCancelText || ('dialogConfirmation.cancel' | i18nTranslate: 'Cancelar') }}\n </button>\n\n <!-- Confirmar -->\n <button\n class=\"tc-btn tc-btn-primary\"\n [disabled]=\"disabled\"\n (click)=\"confirm()\">{{ textConfirmation | titlecase }}\n </button>\n </div>\n</div>\n", styles: [".background-modal{position:fixed;z-index:2000;width:100%;height:100%;background-color:#00000080;top:0;left:0}.container-dialog{position:fixed;top:15%;left:calc(50% - 300px);width:500px;z-index:20001;border-radius:8px;padding:24px;box-sizing:border-box;display:grid;gap:24px;background-color:var(--white)}.container-dialog .container-header{display:flex;justify-content:space-between;align-items:center}.container-dialog .container-header .tc-title{font-size:18px;font-weight:700}.container-dialog .container-header .container-close-button{width:40px;height:40px;border-radius:100%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--tc-gray-600);border:1px solid var(--tc-gray-500)}.container-dialog .container-input-confirmation{display:grid;gap:8px}.container-dialog .container-footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.container-dialog .container-footer button{width:100%}\n"] }]
|
|
9244
|
+
}], propDecorators: { onKeydownHandler: [{
|
|
9245
|
+
type: HostListener,
|
|
9246
|
+
args: ['document:keydown.escape', ['$event']]
|
|
9247
|
+
}] } });
|
|
9248
|
+
|
|
9249
|
+
var TCloudUiDialogTextConfirmationEnum;
|
|
9250
|
+
(function (TCloudUiDialogTextConfirmationEnum) {
|
|
9251
|
+
TCloudUiDialogTextConfirmationEnum["continue"] = "continue";
|
|
9252
|
+
TCloudUiDialogTextConfirmationEnum["remove"] = "remove";
|
|
9253
|
+
TCloudUiDialogTextConfirmationEnum["confirm"] = "confirm";
|
|
9254
|
+
})(TCloudUiDialogTextConfirmationEnum || (TCloudUiDialogTextConfirmationEnum = {}));
|
|
9255
|
+
|
|
9256
|
+
class TCloudUiDialogModel {
|
|
9257
|
+
constructor(_title, _description, _loading = false, _disable = false, _disableClickOutside = false, _inputConfirmationText, _buttonConfirmText, _buttonCancelText) {
|
|
9258
|
+
this.title = _title;
|
|
9259
|
+
this.message = _description;
|
|
9260
|
+
this.loading = _loading;
|
|
9261
|
+
this.disable = _disable;
|
|
9262
|
+
this.disableClickOutside = _disableClickOutside;
|
|
9263
|
+
this.inputConfirmationText = _inputConfirmationText;
|
|
9264
|
+
this.buttonConfirmText = _buttonConfirmText;
|
|
9265
|
+
this.buttonCancelText = _buttonCancelText;
|
|
9266
|
+
}
|
|
9267
|
+
}
|
|
9268
|
+
|
|
9269
|
+
class TCloudUiDialogService {
|
|
9270
|
+
constructor() {
|
|
9271
|
+
// * [Injects]
|
|
9272
|
+
this.i18n = inject(I18nService);
|
|
9273
|
+
this.factoryResolver = inject(ComponentFactoryResolver);
|
|
9274
|
+
}
|
|
9275
|
+
/**
|
|
9276
|
+
* Método usado para realizar a configuração de 'ViewContainerRef'
|
|
9277
|
+
* @param viewContainerRef Obj
|
|
9278
|
+
*/
|
|
9279
|
+
setRootViewContainerRef(viewContainerRef) {
|
|
9280
|
+
if (!this.rootViewContainer)
|
|
9281
|
+
this.rootViewContainer = viewContainerRef;
|
|
9282
|
+
}
|
|
9283
|
+
/**
|
|
9284
|
+
* Método usado para abrir o modal de dialog
|
|
9285
|
+
* @param _data Info do dialog
|
|
9286
|
+
*/
|
|
9287
|
+
open(_data = {}) {
|
|
9288
|
+
const factory = this.factoryResolver.resolveComponentFactory(TCloudUiDialogComponent);
|
|
9289
|
+
const component = factory.create(this.rootViewContainer.parentInjector);
|
|
9290
|
+
this.rootViewContainer.insert(component.hostView);
|
|
9291
|
+
component.instance.data = new TCloudUiDialogModel(_data.title || this.i18n.i18nTranslate('dialogConfirmation.default_title', 'Atenção'), _data.message || this.i18n.i18nTranslate('dialogConfirmation.default_message', 'Deseja realmente executar esta ação?'), _data.loading, _data.disable, _data.disableClickOutside, _data.inputConfirmationText || TCloudUiDialogTextConfirmationEnum.confirm, _data.buttonConfirmText, _data.buttonCancelText);
|
|
9292
|
+
// * Configura o texto do input de confirmação
|
|
9293
|
+
if (component.instance.data.inputConfirmationText)
|
|
9294
|
+
this.setTextConfirmation(component.instance);
|
|
9295
|
+
component.instance.events.subscribe(event => {
|
|
9296
|
+
// * Fecha o dialogo
|
|
9297
|
+
if (event === TCloudUiDialogEventsEnum.close)
|
|
9298
|
+
component.destroy();
|
|
9299
|
+
});
|
|
9300
|
+
return component.instance;
|
|
9301
|
+
}
|
|
9302
|
+
/**
|
|
9303
|
+
* Método usado para configurar o texto do input de confirmação
|
|
9304
|
+
* @param component Componente do dialogo
|
|
9305
|
+
*/
|
|
9306
|
+
setTextConfirmation(component) {
|
|
9307
|
+
switch (component.data.inputConfirmationText) {
|
|
9308
|
+
case TCloudUiDialogTextConfirmationEnum.continue:
|
|
9309
|
+
component.textConfirmation = this.i18n.i18nTranslate('dialogConfirmation.continue', 'continuar');
|
|
9310
|
+
break;
|
|
9311
|
+
case TCloudUiDialogTextConfirmationEnum.remove:
|
|
9312
|
+
component.textConfirmation = this.i18n.i18nTranslate('dialogConfirmation.remove', 'remover');
|
|
9313
|
+
break;
|
|
9314
|
+
case TCloudUiDialogTextConfirmationEnum.confirm:
|
|
9315
|
+
component.textConfirmation = this.i18n.i18nTranslate('dialogConfirmation.confirm', 'confirmar');
|
|
9316
|
+
break;
|
|
9317
|
+
}
|
|
9318
|
+
}
|
|
9319
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9320
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiDialogService, providedIn: 'root' }); }
|
|
9321
|
+
}
|
|
9322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiDialogService, decorators: [{
|
|
9323
|
+
type: Injectable,
|
|
9324
|
+
args: [{
|
|
9325
|
+
providedIn: 'root'
|
|
9326
|
+
}]
|
|
9327
|
+
}] });
|
|
9328
|
+
|
|
8985
9329
|
const COMPONENTS = [
|
|
8986
9330
|
TCloudUiAccordionComponent,
|
|
8987
9331
|
TCloudUiAccordionBodyComponent,
|
|
@@ -9020,6 +9364,7 @@ const COMPONENTS = [
|
|
|
9020
9364
|
TCloudUiCubesComponent,
|
|
9021
9365
|
TCloudUiMultiplesValuesComponent,
|
|
9022
9366
|
TCloudUiProgressBarComponent,
|
|
9367
|
+
TCloudUiProgressStatusBarComponent,
|
|
9023
9368
|
TCloudUiReorderItemsComponent,
|
|
9024
9369
|
TCloudUiWelcomeComponent,
|
|
9025
9370
|
TCloudUiContainerComponent,
|
|
@@ -9032,6 +9377,7 @@ const COMPONENTS = [
|
|
|
9032
9377
|
TCloudUiCalendarComponent,
|
|
9033
9378
|
TCloudUiDropdownComponent,
|
|
9034
9379
|
TCloudUiDropdownMultiComponent,
|
|
9380
|
+
TCloudUiDialogComponent,
|
|
9035
9381
|
TCloudUiEmptyContentComponent,
|
|
9036
9382
|
TCloudUiFaqComponent,
|
|
9037
9383
|
TCloudUiMessageComponent,
|
|
@@ -9082,6 +9428,9 @@ const PIPES = [
|
|
|
9082
9428
|
StatusInfoPipe,
|
|
9083
9429
|
TCloudUiPaginationPipe
|
|
9084
9430
|
];
|
|
9431
|
+
const SERVICES = [
|
|
9432
|
+
TCloudUiDialogService,
|
|
9433
|
+
];
|
|
9085
9434
|
class TCloudUiModule {
|
|
9086
9435
|
static forRoot(config) {
|
|
9087
9436
|
const providers = [
|
|
@@ -9146,6 +9495,7 @@ class TCloudUiModule {
|
|
|
9146
9495
|
TCloudUiCubesComponent,
|
|
9147
9496
|
TCloudUiMultiplesValuesComponent,
|
|
9148
9497
|
TCloudUiProgressBarComponent,
|
|
9498
|
+
TCloudUiProgressStatusBarComponent,
|
|
9149
9499
|
TCloudUiReorderItemsComponent,
|
|
9150
9500
|
TCloudUiWelcomeComponent,
|
|
9151
9501
|
TCloudUiContainerComponent,
|
|
@@ -9158,6 +9508,7 @@ class TCloudUiModule {
|
|
|
9158
9508
|
TCloudUiCalendarComponent,
|
|
9159
9509
|
TCloudUiDropdownComponent,
|
|
9160
9510
|
TCloudUiDropdownMultiComponent,
|
|
9511
|
+
TCloudUiDialogComponent,
|
|
9161
9512
|
TCloudUiEmptyContentComponent,
|
|
9162
9513
|
TCloudUiFaqComponent,
|
|
9163
9514
|
TCloudUiMessageComponent,
|
|
@@ -9237,6 +9588,7 @@ class TCloudUiModule {
|
|
|
9237
9588
|
TCloudUiCubesComponent,
|
|
9238
9589
|
TCloudUiMultiplesValuesComponent,
|
|
9239
9590
|
TCloudUiProgressBarComponent,
|
|
9591
|
+
TCloudUiProgressStatusBarComponent,
|
|
9240
9592
|
TCloudUiReorderItemsComponent,
|
|
9241
9593
|
TCloudUiWelcomeComponent,
|
|
9242
9594
|
TCloudUiContainerComponent,
|
|
@@ -9249,6 +9601,7 @@ class TCloudUiModule {
|
|
|
9249
9601
|
TCloudUiCalendarComponent,
|
|
9250
9602
|
TCloudUiDropdownComponent,
|
|
9251
9603
|
TCloudUiDropdownMultiComponent,
|
|
9604
|
+
TCloudUiDialogComponent,
|
|
9252
9605
|
TCloudUiEmptyContentComponent,
|
|
9253
9606
|
TCloudUiFaqComponent,
|
|
9254
9607
|
TCloudUiMessageComponent,
|
|
@@ -9295,7 +9648,8 @@ class TCloudUiModule {
|
|
|
9295
9648
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiModule, providers: [
|
|
9296
9649
|
DatePipe,
|
|
9297
9650
|
StatusInfoPipe,
|
|
9298
|
-
TCloudUiPaginationService
|
|
9651
|
+
TCloudUiPaginationService,
|
|
9652
|
+
...SERVICES
|
|
9299
9653
|
], imports: [TCloudUiAccordionComponent,
|
|
9300
9654
|
TCloudUiAccordionBodyComponent,
|
|
9301
9655
|
TCloudUiAccordionTitleComponent,
|
|
@@ -9341,6 +9695,7 @@ class TCloudUiModule {
|
|
|
9341
9695
|
TCloudUiCalendarComponent,
|
|
9342
9696
|
TCloudUiDropdownComponent,
|
|
9343
9697
|
TCloudUiDropdownMultiComponent,
|
|
9698
|
+
TCloudUiDialogComponent,
|
|
9344
9699
|
TCloudUiFaqComponent,
|
|
9345
9700
|
TCloudUiMessageComponent,
|
|
9346
9701
|
TCloudUiSkeletonLoadingComponent,
|
|
@@ -9375,7 +9730,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
9375
9730
|
providers: [
|
|
9376
9731
|
DatePipe,
|
|
9377
9732
|
StatusInfoPipe,
|
|
9378
|
-
TCloudUiPaginationService
|
|
9733
|
+
TCloudUiPaginationService,
|
|
9734
|
+
...SERVICES
|
|
9379
9735
|
]
|
|
9380
9736
|
}]
|
|
9381
9737
|
}] });
|
|
@@ -9430,6 +9786,14 @@ function provideTCloudUi(config) {
|
|
|
9430
9786
|
return makeEnvironmentProviders(providers);
|
|
9431
9787
|
}
|
|
9432
9788
|
|
|
9789
|
+
var TCloudUiDialogStatusEnum;
|
|
9790
|
+
(function (TCloudUiDialogStatusEnum) {
|
|
9791
|
+
TCloudUiDialogStatusEnum["success"] = "success";
|
|
9792
|
+
TCloudUiDialogStatusEnum["error"] = "error";
|
|
9793
|
+
TCloudUiDialogStatusEnum["info"] = "info";
|
|
9794
|
+
TCloudUiDialogStatusEnum["warning"] = "warning";
|
|
9795
|
+
})(TCloudUiDialogStatusEnum || (TCloudUiDialogStatusEnum = {}));
|
|
9796
|
+
|
|
9433
9797
|
class TCloudUiLoadingTransitionsService {
|
|
9434
9798
|
constructor() {
|
|
9435
9799
|
this.ID = 'tcloud-ui-loading-transitions';
|
|
@@ -10804,38 +11168,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
10804
11168
|
}]
|
|
10805
11169
|
}] });
|
|
10806
11170
|
|
|
10807
|
-
class TcRevSmallLoadingComponent {
|
|
10808
|
-
constructor() {
|
|
10809
|
-
/** Width of the loading spinner accepts string with CSS units (px, rem, em) */
|
|
10810
|
-
this.width = input('1.25rem');
|
|
10811
|
-
/** Margin top in pixels */
|
|
10812
|
-
this.marginTop = input(0);
|
|
10813
|
-
/** Margin bottom in pixels */
|
|
10814
|
-
this.marginBottom = input(0);
|
|
10815
|
-
/** Margin right in pixels */
|
|
10816
|
-
this.marginRight = input(0);
|
|
10817
|
-
/** Margin left in pixels */
|
|
10818
|
-
this.marginLeft = input(0);
|
|
10819
|
-
this.style = new TcRevSmallLoadingComponentStyle();
|
|
10820
|
-
}
|
|
10821
|
-
ngOnInit() {
|
|
10822
|
-
this.style.marginTop = `${this.marginTop()}px`;
|
|
10823
|
-
this.style.marginRight = `${this.marginRight()}px`;
|
|
10824
|
-
this.style.marginLeft = `${this.marginLeft()}px`;
|
|
10825
|
-
this.style.marginBottom = `${this.marginBottom()}px`;
|
|
10826
|
-
this.style.width = this.width();
|
|
10827
|
-
this.style.height = this.width();
|
|
10828
|
-
}
|
|
10829
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TcRevSmallLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10830
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.21", type: TcRevSmallLoadingComponent, isStandalone: true, selector: "tc-rev-small-loading", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, marginTop: { classPropertyName: "marginTop", publicName: "marginTop", isSignal: true, isRequired: false, transformFunction: null }, marginBottom: { classPropertyName: "marginBottom", publicName: "marginBottom", isSignal: true, isRequired: false, transformFunction: null }, marginRight: { classPropertyName: "marginRight", publicName: "marginRight", isSignal: true, isRequired: false, transformFunction: null }, marginLeft: { classPropertyName: "marginLeft", publicName: "marginLeft", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"tc-rev-small-loading\">\n <span\n class=\"tc-rev-small-loading__spinner\"\n [ngStyle]=\"this.style\">\n </span>\n</div>\n", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tc-rev-small-loading{display:flex;align-items:center;justify-content:center}.tc-rev-small-loading__spinner{animation:rotation 1s linear infinite;border:3px solid var(--c-neutral-200);border-bottom-color:var(--c-neutral-500);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--size-20);width:var(--size-20)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
10831
|
-
}
|
|
10832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TcRevSmallLoadingComponent, decorators: [{
|
|
10833
|
-
type: Component,
|
|
10834
|
-
args: [{ selector: 'tc-rev-small-loading', imports: [CommonModule], template: "<div class=\"tc-rev-small-loading\">\n <span\n class=\"tc-rev-small-loading__spinner\"\n [ngStyle]=\"this.style\">\n </span>\n</div>\n", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tc-rev-small-loading{display:flex;align-items:center;justify-content:center}.tc-rev-small-loading__spinner{animation:rotation 1s linear infinite;border:3px solid var(--c-neutral-200);border-bottom-color:var(--c-neutral-500);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--size-20);width:var(--size-20)}\n"] }]
|
|
10835
|
-
}] });
|
|
10836
|
-
class TcRevSmallLoadingComponentStyle {
|
|
10837
|
-
}
|
|
10838
|
-
|
|
10839
11171
|
class TcRevTabGroupComponent {
|
|
10840
11172
|
constructor() {
|
|
10841
11173
|
this.isCarouselOverflowed = false;
|
|
@@ -11309,5 +11641,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
11309
11641
|
* Generated bundle index. Do not edit.
|
|
11310
11642
|
*/
|
|
11311
11643
|
|
|
11312
|
-
export { AcceptedFileType, BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, DropdownGroupedSize, DropdownMultiSize$1 as DropdownMultiSize, DropdownSize$1 as DropdownSize, MonthNamePipe, MultiLevelDropdownSize, ProductActionPipe, ProgressStatusBarGradientStatus, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCLOUD_UI_CONFIG, TCLOUD_UI_LAYOUT_SERVICE, TCLOUD_UI_LOCALE_SERVICE, TCLOUD_UI_USER_SERVICE, TCLOUD_UI_VIEWPORT_SERVICE, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionTitleComponent, TCloudUiAlertBannerComponent, TCloudUiAlignDirective, TCloudUiBreadcrumbComponent, TCloudUiBreadcrumbService, TCloudUiButtonDirective, TCloudUiCalendarComponent, TCloudUiCardAccordionComponent, TCloudUiCardComponent, TCloudUiCardTitleComponent, TCloudUiCheckAccessDirective, TCloudUiCheckAccessService, TCloudUiCheckboxDirective, TCloudUiChoiceIssuesComponent, TCloudUiContainerColComponent, TCloudUiContainerComponent, TCloudUiContainerContentComponent, TCloudUiCubesComponent, TCloudUiCurrencyDirective, TCloudUiDataListComponent, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerTimeComponent, TCloudUiDigitOnlyDirective, TCloudUiDropdownComponent, TCloudUiDropdownMultiComponent, TCloudUiElCopyDirective, TCloudUiEmptyContentComponent, TCloudUiFaqComponent, TCloudUiFilterBarComponent, TCloudUiFiltersComponent, TCloudUiFormDirective, TCloudUiHighLightDirective, TCloudUiHoverParentDirective, TCloudUiIconButtonDirective, TCloudUiInputContainerComponent, TCloudUiInputDirective, TCloudUiInputPasswordComponent, TCloudUiInputSearchComponent, TCloudUiIpMaskDirective, TCloudUiLabelTokenComponent, TCloudUiLegendComponent, TCloudUiLineStepCircleComponent, TCloudUiLineStepTitleComponent, TCloudUiLinhaLogoComponent, TCloudUiLoadingComponent, TCloudUiLoadingTransitionsService, TCloudUiMessageComponent, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiSelectComponent, TCloudUiMultiplesValuesComponent, TCloudUiNgCheckAccessDirective, TCloudUiNgFeatureFlagsDirective, TCloudUiNotFoundComponent, TCloudUiNumberStepComponent, TCloudUiPaginationComponent, TCloudUiPaginationPipe, TCloudUiProgressBarComponent, TCloudUiRadioDirective, TCloudUiRangeDateComponent, TCloudUiReorderItemsComponent, TCloudUiScrollBoxComponent, TCloudUiSearchBarComponent, TCloudUiSearchInObjectService, TCloudUiSearchInputComponent, TCloudUiSkeletonLoadingComponent, TCloudUiSkeletonLoadingComponentStyle, TCloudUiSlideToggleDirective, TCloudUiSubNavbarComponent, TCloudUiSubNavbarGroupComponent, TCloudUiSubNavbarItemComponent, TCloudUiTabContentComponent, TCloudUiTabGroupComponent, TCloudUiTabHeadComponent, TCloudUiTabItemComponent, TCloudUiTabMenuComponent, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTagComponent, TCloudUiToastComponent, TCloudUiTooltipDirective, TCloudUiUploadAreaComponent, TCloudUiWelcomeComponent, TCloudUiWizardStepsComponent, 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, TopologyEnvironmentPipe, TopologyProductPipe, TopologyRegionPipe, TopologyStatusPipe, echartBarConfig, isTextEllipsed, provideTCloudUi };
|
|
11644
|
+
export { AcceptedFileType, BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, DropdownGroupedSize, DropdownMultiSize$1 as DropdownMultiSize, DropdownSize$1 as DropdownSize, MonthNamePipe, MultiLevelDropdownSize, ProductActionPipe, ProgressStatusBarGradientStatus$1 as ProgressStatusBarGradientStatus, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCLOUD_UI_CONFIG, TCLOUD_UI_LAYOUT_SERVICE, TCLOUD_UI_LOCALE_SERVICE, TCLOUD_UI_USER_SERVICE, TCLOUD_UI_VIEWPORT_SERVICE, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionTitleComponent, TCloudUiAlertBannerComponent, TCloudUiAlignDirective, TCloudUiBreadcrumbComponent, TCloudUiBreadcrumbService, TCloudUiButtonDirective, TCloudUiCalendarComponent, TCloudUiCardAccordionComponent, TCloudUiCardComponent, TCloudUiCardTitleComponent, TCloudUiCheckAccessDirective, TCloudUiCheckAccessService, TCloudUiCheckboxDirective, TCloudUiChoiceIssuesComponent, TCloudUiContainerColComponent, TCloudUiContainerComponent, TCloudUiContainerContentComponent, TCloudUiCubesComponent, TCloudUiCurrencyDirective, TCloudUiDataListComponent, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerTimeComponent, TCloudUiDialogComponent, TCloudUiDialogEventsEnum, TCloudUiDialogModel, TCloudUiDialogService, TCloudUiDialogStatusEnum, TCloudUiDialogTextConfirmationEnum, TCloudUiDigitOnlyDirective, TCloudUiDropdownComponent, TCloudUiDropdownMultiComponent, TCloudUiElCopyDirective, TCloudUiEmptyContentComponent, TCloudUiFaqComponent, TCloudUiFilterBarComponent, TCloudUiFiltersComponent, TCloudUiFormDirective, TCloudUiHighLightDirective, TCloudUiHoverParentDirective, TCloudUiIconButtonDirective, TCloudUiInputContainerComponent, TCloudUiInputDirective, TCloudUiInputPasswordComponent, TCloudUiInputSearchComponent, TCloudUiIpMaskDirective, TCloudUiLabelTokenComponent, TCloudUiLegendComponent, TCloudUiLineStepCircleComponent, TCloudUiLineStepTitleComponent, TCloudUiLinhaLogoComponent, TCloudUiLoadingComponent, TCloudUiLoadingTransitionsService, TCloudUiMessageComponent, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiSelectComponent, TCloudUiMultiplesValuesComponent, TCloudUiNgCheckAccessDirective, TCloudUiNgFeatureFlagsDirective, TCloudUiNotFoundComponent, TCloudUiNumberStepComponent, TCloudUiPaginationComponent, TCloudUiPaginationPipe, TCloudUiProgressBarComponent, TCloudUiProgressStatusBarComponent, TCloudUiRadioDirective, TCloudUiRangeDateComponent, TCloudUiReorderItemsComponent, TCloudUiScrollBoxComponent, TCloudUiSearchBarComponent, TCloudUiSearchInObjectService, TCloudUiSearchInputComponent, TCloudUiSkeletonLoadingComponent, TCloudUiSkeletonLoadingComponentStyle, TCloudUiSlideToggleDirective, TCloudUiSubNavbarComponent, TCloudUiSubNavbarGroupComponent, TCloudUiSubNavbarItemComponent, TCloudUiTabContentComponent, TCloudUiTabGroupComponent, TCloudUiTabHeadComponent, TCloudUiTabItemComponent, TCloudUiTabMenuComponent, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTagComponent, TCloudUiToastComponent, TCloudUiTooltipDirective, TCloudUiUploadAreaComponent, TCloudUiWelcomeComponent, TCloudUiWizardStepsComponent, 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, TopologyEnvironmentPipe, TopologyProductPipe, TopologyRegionPipe, TopologyStatusPipe, echartBarConfig, isTextEllipsed, provideTCloudUi };
|
|
11313
11645
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|