@dev-tcloud/tcloud-ui 0.0.13 → 0.0.15
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 +1 -0
- package/esm2020/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.component.mjs +78 -0
- package/esm2020/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.module.mjs +24 -0
- package/esm2020/lib/tcloud-ui.module.mjs +8 -1
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +103 -2
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +103 -2
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.component.d.ts +23 -0
- package/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.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
|
@@ -809,7 +809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
809
809
|
}]
|
|
810
810
|
}] });
|
|
811
811
|
|
|
812
|
-
class Step {
|
|
812
|
+
class Step$1 {
|
|
813
813
|
constructor() {
|
|
814
814
|
this.status = '';
|
|
815
815
|
this.index = 0;
|
|
@@ -2198,6 +2198,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2198
2198
|
}]
|
|
2199
2199
|
}] });
|
|
2200
2200
|
|
|
2201
|
+
class Step {
|
|
2202
|
+
constructor() {
|
|
2203
|
+
this.status = '';
|
|
2204
|
+
this.index = 0;
|
|
2205
|
+
this.class = '';
|
|
2206
|
+
this.second_class = '';
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
class TCloudUiNumberStepComponent {
|
|
2210
|
+
constructor() {
|
|
2211
|
+
this.step = 7;
|
|
2212
|
+
this.active = 0;
|
|
2213
|
+
this.inactives = [];
|
|
2214
|
+
this.complete = false;
|
|
2215
|
+
this.useIconCheck = false;
|
|
2216
|
+
this.trilha = new Array();
|
|
2217
|
+
}
|
|
2218
|
+
ngOnInit() {
|
|
2219
|
+
setTimeout(() => { this.build_steps(); });
|
|
2220
|
+
}
|
|
2221
|
+
build_steps() {
|
|
2222
|
+
let trilha = new Array();
|
|
2223
|
+
if (this.step && this.step > 0) {
|
|
2224
|
+
for (let i = 0; i < this.step; i++) {
|
|
2225
|
+
(trilha).push({
|
|
2226
|
+
status: '',
|
|
2227
|
+
index: i + 1,
|
|
2228
|
+
class: 'step-default',
|
|
2229
|
+
second_class: '',
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
if (this.active > this.step) {
|
|
2234
|
+
this.active = this.step;
|
|
2235
|
+
this.complete = true;
|
|
2236
|
+
}
|
|
2237
|
+
if (this.complete) {
|
|
2238
|
+
this.active = this.step;
|
|
2239
|
+
}
|
|
2240
|
+
if (this.active && this.active > 0) {
|
|
2241
|
+
for (let i = 0; i < this.active; i++) {
|
|
2242
|
+
trilha[i].class = "step-progress";
|
|
2243
|
+
if ((i + 1) === this.active && !this.complete) {
|
|
2244
|
+
trilha[i].class = "step-active";
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
if (this.inactives && (this.inactives).length > 0) {
|
|
2249
|
+
for (let i = 0; i < (this.inactives).length; i++) {
|
|
2250
|
+
const icon = this.inactives[i];
|
|
2251
|
+
if (icon && icon > 0) {
|
|
2252
|
+
trilha[(icon - 1)].second_class = "step-inactive";
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
this.trilha = trilha;
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
TCloudUiNumberStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2260
|
+
TCloudUiNumberStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiNumberStepComponent, selector: "tcloud-ui-number-step", inputs: { step: "step", active: "active", inactives: "inactives", complete: "complete", useIconCheck: "useIconCheck" }, ngImport: i0, template: "<table class=\"table-trilha\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <ng-container *ngFor=\"let fase of trilha; let i = index\" >\n <td class=\"area-circle\">\n <div class=\"circle icon-{{ fase.class }} {{ fase.second_class }} \">\n\n <ng-container *ngIf=\"useIconCheck\">\n <ng-container *ngIf=\"i < active && fase.second_class !== 'step-inactive'\">\n <div class=\"area-index\"><i class=\"fas fa-check\"></i></div>\n </ng-container>\n\n <ng-container *ngIf=\"i < active && fase.second_class === 'step-inactive'\">\n <div class=\"area-index\"><i class=\"far fa-circle\"></i></div>\n </ng-container>\n\n <ng-container *ngIf=\"i >= active\">\n <div class=\"area-index\">{{ i + 1 }}</div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!useIconCheck\">\n <div class=\"area-index\">{{ i + 1 }}</div>\n </ng-container>\n \n </div>\n </td>\n <td class=\"area-line\" *ngIf=\"(i+1) < (trilha).length\">\n <div class=\"step-line {{ fase.class }}\"></div> \n </td>\n </ng-container>\n </tr>\n</table>", styles: [".table-trilha{width:100%;border-collapse:collapse;margin-top:3px;margin-bottom:2px}.table-trilha td{border:none}.table-trilha .area-circle{width:0px}.table-trilha .area-circle i{font-size:18px}.table-trilha .area-index{font-size:16px;position:relative;top:50%;transform:translateY(-50%)}.table-trilha .step-line{width:100%;height:2px;background-color:#ccc;padding:0;margin-left:-1px;width:calc(100% + 2px)}table tr{background-color:transparent!important}.circle{display:block;border:1px solid #ccc;height:48px;width:48px;border-radius:50%;text-align:center;font-size:14px}.step-progress{background-color:var(--verde)!important}.icon-step-progress{border-color:var(--verde);background-color:var(--verde)!important}.icon-step-progress .area-index{color:#fff}.icon-step-active{border-color:var(--verde);background-color:var(--verde)!important;color:#fff!important}.step-inactive{background-color:#fbfbfb!important}.step-inactive .area-index{color:#ccc!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepComponent, decorators: [{
|
|
2262
|
+
type: Component,
|
|
2263
|
+
args: [{ selector: 'tcloud-ui-number-step', template: "<table class=\"table-trilha\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <ng-container *ngFor=\"let fase of trilha; let i = index\" >\n <td class=\"area-circle\">\n <div class=\"circle icon-{{ fase.class }} {{ fase.second_class }} \">\n\n <ng-container *ngIf=\"useIconCheck\">\n <ng-container *ngIf=\"i < active && fase.second_class !== 'step-inactive'\">\n <div class=\"area-index\"><i class=\"fas fa-check\"></i></div>\n </ng-container>\n\n <ng-container *ngIf=\"i < active && fase.second_class === 'step-inactive'\">\n <div class=\"area-index\"><i class=\"far fa-circle\"></i></div>\n </ng-container>\n\n <ng-container *ngIf=\"i >= active\">\n <div class=\"area-index\">{{ i + 1 }}</div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!useIconCheck\">\n <div class=\"area-index\">{{ i + 1 }}</div>\n </ng-container>\n \n </div>\n </td>\n <td class=\"area-line\" *ngIf=\"(i+1) < (trilha).length\">\n <div class=\"step-line {{ fase.class }}\"></div> \n </td>\n </ng-container>\n </tr>\n</table>", styles: [".table-trilha{width:100%;border-collapse:collapse;margin-top:3px;margin-bottom:2px}.table-trilha td{border:none}.table-trilha .area-circle{width:0px}.table-trilha .area-circle i{font-size:18px}.table-trilha .area-index{font-size:16px;position:relative;top:50%;transform:translateY(-50%)}.table-trilha .step-line{width:100%;height:2px;background-color:#ccc;padding:0;margin-left:-1px;width:calc(100% + 2px)}table tr{background-color:transparent!important}.circle{display:block;border:1px solid #ccc;height:48px;width:48px;border-radius:50%;text-align:center;font-size:14px}.step-progress{background-color:var(--verde)!important}.icon-step-progress{border-color:var(--verde);background-color:var(--verde)!important}.icon-step-progress .area-index{color:#fff}.icon-step-active{border-color:var(--verde);background-color:var(--verde)!important;color:#fff!important}.step-inactive{background-color:#fbfbfb!important}.step-inactive .area-index{color:#ccc!important}\n"] }]
|
|
2264
|
+
}], ctorParameters: function () { return []; }, propDecorators: { step: [{
|
|
2265
|
+
type: Input
|
|
2266
|
+
}], active: [{
|
|
2267
|
+
type: Input
|
|
2268
|
+
}], inactives: [{
|
|
2269
|
+
type: Input
|
|
2270
|
+
}], complete: [{
|
|
2271
|
+
type: Input
|
|
2272
|
+
}], useIconCheck: [{
|
|
2273
|
+
type: Input
|
|
2274
|
+
}] } });
|
|
2275
|
+
|
|
2276
|
+
class TCloudUiNumberStepModule {
|
|
2277
|
+
}
|
|
2278
|
+
TCloudUiNumberStepModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2279
|
+
TCloudUiNumberStepModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, declarations: [TCloudUiNumberStepComponent], imports: [CommonModule], exports: [TCloudUiNumberStepComponent] });
|
|
2280
|
+
TCloudUiNumberStepModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, imports: [CommonModule] });
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, decorators: [{
|
|
2282
|
+
type: NgModule,
|
|
2283
|
+
args: [{
|
|
2284
|
+
declarations: [
|
|
2285
|
+
TCloudUiNumberStepComponent
|
|
2286
|
+
],
|
|
2287
|
+
exports: [
|
|
2288
|
+
TCloudUiNumberStepComponent
|
|
2289
|
+
],
|
|
2290
|
+
imports: [
|
|
2291
|
+
CommonModule
|
|
2292
|
+
]
|
|
2293
|
+
}]
|
|
2294
|
+
}] });
|
|
2295
|
+
|
|
2201
2296
|
class TCloudUiAlignDirective {
|
|
2202
2297
|
constructor(el, renderer) {
|
|
2203
2298
|
this.el = el;
|
|
@@ -2528,6 +2623,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2528
2623
|
TCloudUiInputSearchModule,
|
|
2529
2624
|
TCloudUiNotFoundModule,
|
|
2530
2625
|
TCloudUiTableModule,
|
|
2626
|
+
TCloudUiNumberStepModule,
|
|
2531
2627
|
// Directives
|
|
2532
2628
|
TCloudUiDirectiveModule,
|
|
2533
2629
|
// Pipes
|
|
@@ -2542,6 +2638,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2542
2638
|
TCloudUiInputSearchModule,
|
|
2543
2639
|
TCloudUiNotFoundModule,
|
|
2544
2640
|
TCloudUiTableModule,
|
|
2641
|
+
TCloudUiNumberStepModule,
|
|
2545
2642
|
// Directives
|
|
2546
2643
|
TCloudUiDirectiveModule,
|
|
2547
2644
|
// Pipes
|
|
@@ -2560,6 +2657,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2560
2657
|
TCloudUiInputSearchModule,
|
|
2561
2658
|
TCloudUiNotFoundModule,
|
|
2562
2659
|
TCloudUiTableModule,
|
|
2660
|
+
TCloudUiNumberStepModule,
|
|
2563
2661
|
// Directives
|
|
2564
2662
|
TCloudUiDirectiveModule,
|
|
2565
2663
|
// Pipes
|
|
@@ -2574,6 +2672,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2574
2672
|
TCloudUiInputSearchModule,
|
|
2575
2673
|
TCloudUiNotFoundModule,
|
|
2576
2674
|
TCloudUiTableModule,
|
|
2675
|
+
TCloudUiNumberStepModule,
|
|
2577
2676
|
// Directives
|
|
2578
2677
|
TCloudUiDirectiveModule,
|
|
2579
2678
|
// Pipes
|
|
@@ -2593,6 +2692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2593
2692
|
TCloudUiInputSearchModule,
|
|
2594
2693
|
TCloudUiNotFoundModule,
|
|
2595
2694
|
TCloudUiTableModule,
|
|
2695
|
+
TCloudUiNumberStepModule,
|
|
2596
2696
|
// Directives
|
|
2597
2697
|
TCloudUiDirectiveModule,
|
|
2598
2698
|
// Pipes
|
|
@@ -2610,6 +2710,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2610
2710
|
TCloudUiInputSearchModule,
|
|
2611
2711
|
TCloudUiNotFoundModule,
|
|
2612
2712
|
TCloudUiTableModule,
|
|
2713
|
+
TCloudUiNumberStepModule,
|
|
2613
2714
|
// Directives
|
|
2614
2715
|
TCloudUiDirectiveModule,
|
|
2615
2716
|
// Pipes
|
|
@@ -2630,5 +2731,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2630
2731
|
* Generated bundle index. Do not edit.
|
|
2631
2732
|
*/
|
|
2632
2733
|
|
|
2633
|
-
export { CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiPipesModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
|
|
2734
|
+
export { CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
|
|
2634
2735
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|