@dev-tcloud/tcloud-ui 0.0.13 → 0.0.14

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.
@@ -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,95 @@ 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 = 6;
2213
+ this.inactives = [];
2214
+ this.complete = false;
2215
+ this.trilha = new Array();
2216
+ }
2217
+ ngOnInit() {
2218
+ setTimeout(() => { this.build_steps(); });
2219
+ }
2220
+ build_steps() {
2221
+ let trilha = new Array();
2222
+ if (this.step && this.step > 0) {
2223
+ for (let i = 0; i < this.step; i++) {
2224
+ (trilha).push({
2225
+ status: '',
2226
+ index: i + 1,
2227
+ class: 'step-default',
2228
+ second_class: '',
2229
+ });
2230
+ }
2231
+ }
2232
+ if (this.active > this.step) {
2233
+ this.active = this.step;
2234
+ this.complete = true;
2235
+ }
2236
+ if (this.active && this.active > 0) {
2237
+ for (let i = 0; i < this.active; i++) {
2238
+ trilha[i].class = "step-progress";
2239
+ if ((i + 1) === this.active && !this.complete) {
2240
+ trilha[i].class = "step-active";
2241
+ }
2242
+ }
2243
+ }
2244
+ if (this.inactives && (this.inactives).length > 0) {
2245
+ for (let i = 0; i < (this.inactives).length; i++) {
2246
+ const icon = this.inactives[i];
2247
+ if (icon && icon > 0) {
2248
+ trilha[(icon - 1)].second_class = "step-inactive";
2249
+ }
2250
+ }
2251
+ }
2252
+ this.trilha = trilha;
2253
+ }
2254
+ }
2255
+ TCloudUiNumberStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2256
+ 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" }, 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 <div class=\"area-index\">{{ i + 1 }}</div>\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:45px}.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"] }] });
2257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepComponent, decorators: [{
2258
+ type: Component,
2259
+ 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 <div class=\"area-index\">{{ i + 1 }}</div>\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:45px}.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"] }]
2260
+ }], ctorParameters: function () { return []; }, propDecorators: { step: [{
2261
+ type: Input
2262
+ }], active: [{
2263
+ type: Input
2264
+ }], inactives: [{
2265
+ type: Input
2266
+ }], complete: [{
2267
+ type: Input
2268
+ }] } });
2269
+
2270
+ class TCloudUiNumberStepModule {
2271
+ }
2272
+ TCloudUiNumberStepModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2273
+ TCloudUiNumberStepModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, declarations: [TCloudUiNumberStepComponent], imports: [CommonModule], exports: [TCloudUiNumberStepComponent] });
2274
+ TCloudUiNumberStepModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, imports: [CommonModule] });
2275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiNumberStepModule, decorators: [{
2276
+ type: NgModule,
2277
+ args: [{
2278
+ declarations: [
2279
+ TCloudUiNumberStepComponent
2280
+ ],
2281
+ exports: [
2282
+ TCloudUiNumberStepComponent
2283
+ ],
2284
+ imports: [
2285
+ CommonModule
2286
+ ]
2287
+ }]
2288
+ }] });
2289
+
2201
2290
  class TCloudUiAlignDirective {
2202
2291
  constructor(el, renderer) {
2203
2292
  this.el = el;
@@ -2528,6 +2617,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
2528
2617
  TCloudUiInputSearchModule,
2529
2618
  TCloudUiNotFoundModule,
2530
2619
  TCloudUiTableModule,
2620
+ TCloudUiNumberStepModule,
2531
2621
  // Directives
2532
2622
  TCloudUiDirectiveModule,
2533
2623
  // Pipes
@@ -2542,6 +2632,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
2542
2632
  TCloudUiInputSearchModule,
2543
2633
  TCloudUiNotFoundModule,
2544
2634
  TCloudUiTableModule,
2635
+ TCloudUiNumberStepModule,
2545
2636
  // Directives
2546
2637
  TCloudUiDirectiveModule,
2547
2638
  // Pipes
@@ -2560,6 +2651,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
2560
2651
  TCloudUiInputSearchModule,
2561
2652
  TCloudUiNotFoundModule,
2562
2653
  TCloudUiTableModule,
2654
+ TCloudUiNumberStepModule,
2563
2655
  // Directives
2564
2656
  TCloudUiDirectiveModule,
2565
2657
  // Pipes
@@ -2574,6 +2666,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
2574
2666
  TCloudUiInputSearchModule,
2575
2667
  TCloudUiNotFoundModule,
2576
2668
  TCloudUiTableModule,
2669
+ TCloudUiNumberStepModule,
2577
2670
  // Directives
2578
2671
  TCloudUiDirectiveModule,
2579
2672
  // Pipes
@@ -2593,6 +2686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2593
2686
  TCloudUiInputSearchModule,
2594
2687
  TCloudUiNotFoundModule,
2595
2688
  TCloudUiTableModule,
2689
+ TCloudUiNumberStepModule,
2596
2690
  // Directives
2597
2691
  TCloudUiDirectiveModule,
2598
2692
  // Pipes
@@ -2610,6 +2704,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2610
2704
  TCloudUiInputSearchModule,
2611
2705
  TCloudUiNotFoundModule,
2612
2706
  TCloudUiTableModule,
2707
+ TCloudUiNumberStepModule,
2613
2708
  // Directives
2614
2709
  TCloudUiDirectiveModule,
2615
2710
  // Pipes
@@ -2630,5 +2725,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2630
2725
  * Generated bundle index. Do not edit.
2631
2726
  */
2632
2727
 
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 };
2728
+ 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
2729
  //# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map