@dev-tcloud/tcloud-ui 0.1.17 → 0.1.18
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/esm2020/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.mjs +95 -0
- package/esm2020/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.module.mjs +20 -0
- package/esm2020/lib/tcloud-ui.module.mjs +8 -1
- package/esm2020/public-api.mjs +5 -2
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +116 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +116 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.d.ts +21 -0
- package/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.module.d.ts +8 -0
- package/lib/tcloud-ui.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -5265,6 +5265,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5265
5265
|
}]
|
|
5266
5266
|
}] });
|
|
5267
5267
|
|
|
5268
|
+
class TCloudUiProgressBarComponent {
|
|
5269
|
+
constructor() {
|
|
5270
|
+
/*
|
|
5271
|
+
status
|
|
5272
|
+
*/
|
|
5273
|
+
this._status = '0';
|
|
5274
|
+
/*
|
|
5275
|
+
mode
|
|
5276
|
+
*/
|
|
5277
|
+
this._mode = 'primary';
|
|
5278
|
+
/*
|
|
5279
|
+
height
|
|
5280
|
+
*/
|
|
5281
|
+
this._height = 'normal';
|
|
5282
|
+
this.progress_class = '';
|
|
5283
|
+
this.height_class = '';
|
|
5284
|
+
}
|
|
5285
|
+
set status(status) {
|
|
5286
|
+
let value = `${status}`;
|
|
5287
|
+
if (value) {
|
|
5288
|
+
setTimeout(() => {
|
|
5289
|
+
this._status = value;
|
|
5290
|
+
});
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
get status() { return this._status; }
|
|
5294
|
+
set mode(mode) {
|
|
5295
|
+
if (mode) {
|
|
5296
|
+
this._mode = mode;
|
|
5297
|
+
this.setMode();
|
|
5298
|
+
}
|
|
5299
|
+
}
|
|
5300
|
+
get mode() { return this._mode; }
|
|
5301
|
+
set height(height) {
|
|
5302
|
+
if (height) {
|
|
5303
|
+
this._height = height;
|
|
5304
|
+
this.setheight();
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
get height() { return this._height; }
|
|
5308
|
+
ngOnInit() {
|
|
5309
|
+
this.setMode();
|
|
5310
|
+
this.setheight();
|
|
5311
|
+
}
|
|
5312
|
+
setMode() {
|
|
5313
|
+
const mode = this.mode;
|
|
5314
|
+
let progress_class = 'progress-primary';
|
|
5315
|
+
switch (mode) {
|
|
5316
|
+
case 'primary':
|
|
5317
|
+
progress_class = 'progress-primary';
|
|
5318
|
+
break;
|
|
5319
|
+
case 'danger':
|
|
5320
|
+
progress_class = 'progress-danger';
|
|
5321
|
+
break;
|
|
5322
|
+
case 'warning':
|
|
5323
|
+
progress_class = 'progress-warning';
|
|
5324
|
+
break;
|
|
5325
|
+
case 'info':
|
|
5326
|
+
progress_class = 'progress-info';
|
|
5327
|
+
break;
|
|
5328
|
+
}
|
|
5329
|
+
this.progress_class = progress_class;
|
|
5330
|
+
}
|
|
5331
|
+
setheight() {
|
|
5332
|
+
const height = this.height;
|
|
5333
|
+
let height_class = 'height-normal';
|
|
5334
|
+
switch (height) {
|
|
5335
|
+
case 'normal':
|
|
5336
|
+
height_class = 'height-normal';
|
|
5337
|
+
break;
|
|
5338
|
+
case 'slim':
|
|
5339
|
+
height_class = 'height-slim';
|
|
5340
|
+
break;
|
|
5341
|
+
case 'fat':
|
|
5342
|
+
height_class = 'height-fat';
|
|
5343
|
+
break;
|
|
5344
|
+
}
|
|
5345
|
+
this.height_class = height_class;
|
|
5346
|
+
}
|
|
5347
|
+
}
|
|
5348
|
+
TCloudUiProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5349
|
+
TCloudUiProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiProgressBarComponent, selector: "tcloud-ui-progress-bar", inputs: { status: "status", mode: "mode", height: "height" }, ngImport: i0, template: "<div class=\"tc-ui-progress-bar\">\n <div class=\"tc-progress-bar {{ height_class }}\">\n <div class=\"tc-progress-bar-status {{ progress_class }} {{ height_class }}\" [style]=\"'width: ' + status + '%'\"></div>\n </div>\n</div>", styles: [".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-fat{height:20px;border-radius:10px}.tc-ui-progress-bar .tc-progress-bar{border:1px solid #fff;background-color:var(--tc-gray-200);overflow:hidden}.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)}\n"] });
|
|
5350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarComponent, decorators: [{
|
|
5351
|
+
type: Component,
|
|
5352
|
+
args: [{ selector: 'tcloud-ui-progress-bar', template: "<div class=\"tc-ui-progress-bar\">\n <div class=\"tc-progress-bar {{ height_class }}\">\n <div class=\"tc-progress-bar-status {{ progress_class }} {{ height_class }}\" [style]=\"'width: ' + status + '%'\"></div>\n </div>\n</div>", styles: [".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-fat{height:20px;border-radius:10px}.tc-ui-progress-bar .tc-progress-bar{border:1px solid #fff;background-color:var(--tc-gray-200);overflow:hidden}.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)}\n"] }]
|
|
5353
|
+
}], ctorParameters: function () { return []; }, propDecorators: { status: [{
|
|
5354
|
+
type: Input
|
|
5355
|
+
}], mode: [{
|
|
5356
|
+
type: Input
|
|
5357
|
+
}], height: [{
|
|
5358
|
+
type: Input
|
|
5359
|
+
}] } });
|
|
5360
|
+
|
|
5361
|
+
class TCloudUiProgressBarModule {
|
|
5362
|
+
}
|
|
5363
|
+
TCloudUiProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5364
|
+
TCloudUiProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, declarations: [TCloudUiProgressBarComponent], imports: [CommonModule], exports: [TCloudUiProgressBarComponent] });
|
|
5365
|
+
TCloudUiProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, imports: [CommonModule] });
|
|
5366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, decorators: [{
|
|
5367
|
+
type: NgModule,
|
|
5368
|
+
args: [{
|
|
5369
|
+
declarations: [TCloudUiProgressBarComponent],
|
|
5370
|
+
exports: [TCloudUiProgressBarComponent],
|
|
5371
|
+
imports: [
|
|
5372
|
+
CommonModule
|
|
5373
|
+
]
|
|
5374
|
+
}]
|
|
5375
|
+
}] });
|
|
5376
|
+
|
|
5268
5377
|
class TCloudUiModule {
|
|
5269
5378
|
}
|
|
5270
5379
|
TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -5288,6 +5397,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
5288
5397
|
TCloudUiMultiplesValuesModule,
|
|
5289
5398
|
TCloudUiWelcomeModule,
|
|
5290
5399
|
TCloudUiInputPasswordModule,
|
|
5400
|
+
TCloudUiProgressBarModule,
|
|
5291
5401
|
// Directives
|
|
5292
5402
|
TCloudUiDirectiveModule,
|
|
5293
5403
|
// Pipes
|
|
@@ -5311,6 +5421,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
5311
5421
|
TCloudUiMultiplesValuesModule,
|
|
5312
5422
|
TCloudUiWelcomeModule,
|
|
5313
5423
|
TCloudUiInputPasswordModule,
|
|
5424
|
+
TCloudUiProgressBarModule,
|
|
5314
5425
|
// Directives
|
|
5315
5426
|
TCloudUiDirectiveModule,
|
|
5316
5427
|
// Pipes
|
|
@@ -5338,6 +5449,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
5338
5449
|
TCloudUiMultiplesValuesModule,
|
|
5339
5450
|
TCloudUiWelcomeModule,
|
|
5340
5451
|
TCloudUiInputPasswordModule,
|
|
5452
|
+
TCloudUiProgressBarModule,
|
|
5341
5453
|
// Directives
|
|
5342
5454
|
TCloudUiDirectiveModule,
|
|
5343
5455
|
// Pipes
|
|
@@ -5361,6 +5473,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
5361
5473
|
TCloudUiMultiplesValuesModule,
|
|
5362
5474
|
TCloudUiWelcomeModule,
|
|
5363
5475
|
TCloudUiInputPasswordModule,
|
|
5476
|
+
TCloudUiProgressBarModule,
|
|
5364
5477
|
// Directives
|
|
5365
5478
|
TCloudUiDirectiveModule,
|
|
5366
5479
|
// Pipes
|
|
@@ -5389,6 +5502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5389
5502
|
TCloudUiMultiplesValuesModule,
|
|
5390
5503
|
TCloudUiWelcomeModule,
|
|
5391
5504
|
TCloudUiInputPasswordModule,
|
|
5505
|
+
TCloudUiProgressBarModule,
|
|
5392
5506
|
// Directives
|
|
5393
5507
|
TCloudUiDirectiveModule,
|
|
5394
5508
|
// Pipes
|
|
@@ -5415,6 +5529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5415
5529
|
TCloudUiMultiplesValuesModule,
|
|
5416
5530
|
TCloudUiWelcomeModule,
|
|
5417
5531
|
TCloudUiInputPasswordModule,
|
|
5532
|
+
TCloudUiProgressBarModule,
|
|
5418
5533
|
// Directives
|
|
5419
5534
|
TCloudUiDirectiveModule,
|
|
5420
5535
|
// Pipes
|
|
@@ -5435,5 +5550,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5435
5550
|
* Generated bundle index. Do not edit.
|
|
5436
5551
|
*/
|
|
5437
5552
|
|
|
5438
|
-
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionModule, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerModule, TCloudUiDatepickerTimeComponent, TCloudUiDatepickerTimeModule, TCloudUiDirectiveModule, TCloudUiElCopyDirective, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiHoverParentDirective, TCloudUiInputPasswordComponent, TCloudUiInputPasswordModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiMultiplesValuesComponent, TCloudUiMultiplesValuesModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiRangeDateComponent, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective, TCloudUiWelcomeComponent, TCloudUiWelcomeModule, ToTextPipe };
|
|
5553
|
+
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, DateBRPipe, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCCondition, TCFiltersType, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionModule, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDatepickerComponent, TCloudUiDatepickerModule, TCloudUiDatepickerTimeComponent, TCloudUiDatepickerTimeModule, TCloudUiDirectiveModule, TCloudUiElCopyDirective, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiHoverParentDirective, TCloudUiInputPasswordComponent, TCloudUiInputPasswordModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiMultiplesValuesComponent, TCloudUiMultiplesValuesModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiProgressBarComponent, TCloudUiProgressBarModule, TCloudUiRangeDateComponent, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective, TCloudUiWelcomeComponent, TCloudUiWelcomeModule, ToTextPipe };
|
|
5439
5554
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|