@dev-tcloud/tcloud-ui 0.0.12 → 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.
- package/README.md +12 -1
- package/esm2020/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.component.mjs +72 -0
- package/esm2020/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.module.mjs +24 -0
- package/esm2020/lib/_services/loading-transitions.service.mjs +3 -2
- package/esm2020/lib/tcloud-ui.module.mjs +8 -1
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +99 -3
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +99 -3
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.component.d.ts +22 -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,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;
|
|
@@ -2498,10 +2587,11 @@ class TCloudUiLoadingTransitionsService {
|
|
|
2498
2587
|
box = document.createElement("div");
|
|
2499
2588
|
box.setAttribute('id', this.ID);
|
|
2500
2589
|
}
|
|
2590
|
+
box.style.display = 'none';
|
|
2591
|
+
box.innerHTML = `<div class="tc-loading-icon"><i class="fas fa-spinner fa-spin"></i></div>`;
|
|
2501
2592
|
const body = document.getElementsByTagName('body')[0];
|
|
2502
2593
|
body.appendChild(box);
|
|
2503
2594
|
body.classList.add('tcloud-ui-body-loading-transitions');
|
|
2504
|
-
// element.classList.remove('bar', 'baz');
|
|
2505
2595
|
}
|
|
2506
2596
|
}
|
|
2507
2597
|
TCloudUiLoadingTransitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiLoadingTransitionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2527,6 +2617,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2527
2617
|
TCloudUiInputSearchModule,
|
|
2528
2618
|
TCloudUiNotFoundModule,
|
|
2529
2619
|
TCloudUiTableModule,
|
|
2620
|
+
TCloudUiNumberStepModule,
|
|
2530
2621
|
// Directives
|
|
2531
2622
|
TCloudUiDirectiveModule,
|
|
2532
2623
|
// Pipes
|
|
@@ -2541,6 +2632,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2541
2632
|
TCloudUiInputSearchModule,
|
|
2542
2633
|
TCloudUiNotFoundModule,
|
|
2543
2634
|
TCloudUiTableModule,
|
|
2635
|
+
TCloudUiNumberStepModule,
|
|
2544
2636
|
// Directives
|
|
2545
2637
|
TCloudUiDirectiveModule,
|
|
2546
2638
|
// Pipes
|
|
@@ -2559,6 +2651,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2559
2651
|
TCloudUiInputSearchModule,
|
|
2560
2652
|
TCloudUiNotFoundModule,
|
|
2561
2653
|
TCloudUiTableModule,
|
|
2654
|
+
TCloudUiNumberStepModule,
|
|
2562
2655
|
// Directives
|
|
2563
2656
|
TCloudUiDirectiveModule,
|
|
2564
2657
|
// Pipes
|
|
@@ -2573,6 +2666,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2573
2666
|
TCloudUiInputSearchModule,
|
|
2574
2667
|
TCloudUiNotFoundModule,
|
|
2575
2668
|
TCloudUiTableModule,
|
|
2669
|
+
TCloudUiNumberStepModule,
|
|
2576
2670
|
// Directives
|
|
2577
2671
|
TCloudUiDirectiveModule,
|
|
2578
2672
|
// Pipes
|
|
@@ -2592,6 +2686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2592
2686
|
TCloudUiInputSearchModule,
|
|
2593
2687
|
TCloudUiNotFoundModule,
|
|
2594
2688
|
TCloudUiTableModule,
|
|
2689
|
+
TCloudUiNumberStepModule,
|
|
2595
2690
|
// Directives
|
|
2596
2691
|
TCloudUiDirectiveModule,
|
|
2597
2692
|
// Pipes
|
|
@@ -2609,6 +2704,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2609
2704
|
TCloudUiInputSearchModule,
|
|
2610
2705
|
TCloudUiNotFoundModule,
|
|
2611
2706
|
TCloudUiTableModule,
|
|
2707
|
+
TCloudUiNumberStepModule,
|
|
2612
2708
|
// Directives
|
|
2613
2709
|
TCloudUiDirectiveModule,
|
|
2614
2710
|
// Pipes
|
|
@@ -2629,5 +2725,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2629
2725
|
* Generated bundle index. Do not edit.
|
|
2630
2726
|
*/
|
|
2631
2727
|
|
|
2632
|
-
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 };
|
|
2633
2729
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|