@dev-tcloud/tcloud-ui 0.0.27 → 0.0.29
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-input-search/tcloud-ui-input-search.component.mjs +3 -2
- package/esm2020/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.component.mjs +21 -0
- package/esm2020/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.module.mjs +24 -0
- package/esm2020/lib/_pipes/bytes.mjs +23 -0
- package/esm2020/lib/_pipes/index.mjs +2 -1
- package/esm2020/lib/_pipes/tcloud-pipes.module.mjs +20 -8
- package/esm2020/lib/tcloud-ui.module.mjs +8 -1
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +87 -8
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +87 -8
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.component.d.ts +10 -0
- package/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.module.d.ts +8 -0
- package/lib/_pipes/bytes.d.ts +8 -0
- package/lib/_pipes/index.d.ts +1 -0
- package/lib/_pipes/tcloud-pipes.module.d.ts +4 -2
- package/lib/tcloud-ui.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1974,6 +1974,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1974
1974
|
args: [{ name: 'cpf' }]
|
|
1975
1975
|
}] });
|
|
1976
1976
|
|
|
1977
|
+
class BytesPipe {
|
|
1978
|
+
formatBytes(a, b = 2) {
|
|
1979
|
+
if (!a)
|
|
1980
|
+
return '---';
|
|
1981
|
+
if (0 === a)
|
|
1982
|
+
return '0 Bytes';
|
|
1983
|
+
const c = 0 > b ? 0 : b, d = Math.floor(Math.log(a) / Math.log(1024));
|
|
1984
|
+
return parseFloat((a / Math.pow(1024, d)).toFixed(c)) + ' ' + ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"][d];
|
|
1985
|
+
}
|
|
1986
|
+
transform(value) {
|
|
1987
|
+
const b = +value;
|
|
1988
|
+
return this.formatBytes(b);
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
BytesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1992
|
+
BytesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: BytesPipe, name: "bytes" });
|
|
1993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BytesPipe, decorators: [{
|
|
1994
|
+
type: Pipe,
|
|
1995
|
+
args: [{ name: 'bytes' }]
|
|
1996
|
+
}] });
|
|
1997
|
+
|
|
1977
1998
|
class TCloudUiSearchInObjectService {
|
|
1978
1999
|
constructor(datepipe, statusinfo) {
|
|
1979
2000
|
this.datepipe = datepipe;
|
|
@@ -2089,7 +2110,8 @@ class TCloudUiInputSearchComponent {
|
|
|
2089
2110
|
ngOnInit() {
|
|
2090
2111
|
}
|
|
2091
2112
|
buscar(value) {
|
|
2092
|
-
|
|
2113
|
+
const result = this.searchInObjectService.meet(`${value}`, this.base_object);
|
|
2114
|
+
this.result_object = JSON.parse(JSON.stringify(result));
|
|
2093
2115
|
this.toFound();
|
|
2094
2116
|
}
|
|
2095
2117
|
clean() {
|
|
@@ -2315,6 +2337,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2315
2337
|
}]
|
|
2316
2338
|
}] });
|
|
2317
2339
|
|
|
2340
|
+
class TCloudUiScrollBoxComponent {
|
|
2341
|
+
constructor() {
|
|
2342
|
+
this.border = true;
|
|
2343
|
+
this.maxHeight = 400;
|
|
2344
|
+
}
|
|
2345
|
+
ngOnInit() {
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
TCloudUiScrollBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiScrollBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2349
|
+
TCloudUiScrollBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiScrollBoxComponent, selector: "tcloud-ui-scroll-box", inputs: { border: "border", maxHeight: "maxHeight" }, ngImport: i0, template: "<div class=\"tc-box-scroll\" [class.tc-box-scroll-border]=\"border\" >\n <div class=\"box-content\" [style]=\"'max-height: '+maxHeight+'px'\" >\n <ng-content></ng-content>\n </div> \n</div>\n", styles: [".tc-box-scroll ::-webkit-scrollbar{width:13px}.tc-box-scroll ::-webkit-scrollbar-track{background:#F1F1F1;border-radius:15px}.tc-box-scroll ::-webkit-scrollbar-thumb{background:#37B6C4;border-radius:10px}.tc-box-scroll ::-webkit-scrollbar-thumb:hover{background:#2B95A0}.tc-box-scroll .box-content{overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#37B6C4 #F1F1F1;scrollbar-gutter:stable}.tc-box-scroll-border{border:1px solid #eee;border-radius:10px;overflow:hidden}\n"] });
|
|
2350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiScrollBoxComponent, decorators: [{
|
|
2351
|
+
type: Component,
|
|
2352
|
+
args: [{ selector: 'tcloud-ui-scroll-box', template: "<div class=\"tc-box-scroll\" [class.tc-box-scroll-border]=\"border\" >\n <div class=\"box-content\" [style]=\"'max-height: '+maxHeight+'px'\" >\n <ng-content></ng-content>\n </div> \n</div>\n", styles: [".tc-box-scroll ::-webkit-scrollbar{width:13px}.tc-box-scroll ::-webkit-scrollbar-track{background:#F1F1F1;border-radius:15px}.tc-box-scroll ::-webkit-scrollbar-thumb{background:#37B6C4;border-radius:10px}.tc-box-scroll ::-webkit-scrollbar-thumb:hover{background:#2B95A0}.tc-box-scroll .box-content{overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#37B6C4 #F1F1F1;scrollbar-gutter:stable}.tc-box-scroll-border{border:1px solid #eee;border-radius:10px;overflow:hidden}\n"] }]
|
|
2353
|
+
}], ctorParameters: function () { return []; }, propDecorators: { border: [{
|
|
2354
|
+
type: Input
|
|
2355
|
+
}], maxHeight: [{
|
|
2356
|
+
type: Input
|
|
2357
|
+
}] } });
|
|
2358
|
+
|
|
2359
|
+
class TCloudUiScrollBoxModule {
|
|
2360
|
+
}
|
|
2361
|
+
TCloudUiScrollBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiScrollBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2362
|
+
TCloudUiScrollBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiScrollBoxModule, declarations: [TCloudUiScrollBoxComponent], imports: [CommonModule], exports: [TCloudUiScrollBoxComponent] });
|
|
2363
|
+
TCloudUiScrollBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiScrollBoxModule, imports: [CommonModule] });
|
|
2364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiScrollBoxModule, decorators: [{
|
|
2365
|
+
type: NgModule,
|
|
2366
|
+
args: [{
|
|
2367
|
+
declarations: [
|
|
2368
|
+
TCloudUiScrollBoxComponent
|
|
2369
|
+
],
|
|
2370
|
+
exports: [
|
|
2371
|
+
TCloudUiScrollBoxComponent
|
|
2372
|
+
],
|
|
2373
|
+
imports: [
|
|
2374
|
+
CommonModule
|
|
2375
|
+
]
|
|
2376
|
+
}]
|
|
2377
|
+
}] });
|
|
2378
|
+
|
|
2318
2379
|
class TCloudUiAlignDirective {
|
|
2319
2380
|
constructor(el, renderer) {
|
|
2320
2381
|
this.el = el;
|
|
@@ -2540,17 +2601,23 @@ TCloudUiPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", vers
|
|
|
2540
2601
|
TCloudUiPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, declarations: [MonthNamePipe,
|
|
2541
2602
|
StatusInfoPipe,
|
|
2542
2603
|
RespectivePipe,
|
|
2543
|
-
CNPJPipe
|
|
2604
|
+
CNPJPipe,
|
|
2605
|
+
CPFPipe,
|
|
2606
|
+
BytesPipe], imports: [CommonModule], exports: [DatePipe,
|
|
2544
2607
|
MonthNamePipe,
|
|
2545
2608
|
StatusInfoPipe,
|
|
2546
2609
|
RespectivePipe,
|
|
2547
|
-
CNPJPipe
|
|
2610
|
+
CNPJPipe,
|
|
2611
|
+
CPFPipe,
|
|
2612
|
+
BytesPipe] });
|
|
2548
2613
|
TCloudUiPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, providers: [
|
|
2549
2614
|
DatePipe,
|
|
2550
2615
|
MonthNamePipe,
|
|
2551
2616
|
StatusInfoPipe,
|
|
2552
2617
|
RespectivePipe,
|
|
2553
|
-
CNPJPipe
|
|
2618
|
+
CNPJPipe,
|
|
2619
|
+
CPFPipe,
|
|
2620
|
+
BytesPipe
|
|
2554
2621
|
], imports: [CommonModule] });
|
|
2555
2622
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiPipesModule, decorators: [{
|
|
2556
2623
|
type: NgModule,
|
|
@@ -2562,21 +2629,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2562
2629
|
MonthNamePipe,
|
|
2563
2630
|
StatusInfoPipe,
|
|
2564
2631
|
RespectivePipe,
|
|
2565
|
-
CNPJPipe
|
|
2632
|
+
CNPJPipe,
|
|
2633
|
+
CPFPipe,
|
|
2634
|
+
BytesPipe
|
|
2566
2635
|
],
|
|
2567
2636
|
exports: [
|
|
2568
2637
|
DatePipe,
|
|
2569
2638
|
MonthNamePipe,
|
|
2570
2639
|
StatusInfoPipe,
|
|
2571
2640
|
RespectivePipe,
|
|
2572
|
-
CNPJPipe
|
|
2641
|
+
CNPJPipe,
|
|
2642
|
+
CPFPipe,
|
|
2643
|
+
BytesPipe
|
|
2573
2644
|
],
|
|
2574
2645
|
providers: [
|
|
2575
2646
|
DatePipe,
|
|
2576
2647
|
MonthNamePipe,
|
|
2577
2648
|
StatusInfoPipe,
|
|
2578
2649
|
RespectivePipe,
|
|
2579
|
-
CNPJPipe
|
|
2650
|
+
CNPJPipe,
|
|
2651
|
+
CPFPipe,
|
|
2652
|
+
BytesPipe
|
|
2580
2653
|
]
|
|
2581
2654
|
}]
|
|
2582
2655
|
}] });
|
|
@@ -2646,6 +2719,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2646
2719
|
TCloudUiNotFoundModule,
|
|
2647
2720
|
TCloudUiTableModule,
|
|
2648
2721
|
TCloudUiNumberStepModule,
|
|
2722
|
+
TCloudUiScrollBoxModule,
|
|
2649
2723
|
// Directives
|
|
2650
2724
|
TCloudUiDirectiveModule,
|
|
2651
2725
|
// Pipes
|
|
@@ -2661,6 +2735,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2661
2735
|
TCloudUiNotFoundModule,
|
|
2662
2736
|
TCloudUiTableModule,
|
|
2663
2737
|
TCloudUiNumberStepModule,
|
|
2738
|
+
TCloudUiScrollBoxModule,
|
|
2664
2739
|
// Directives
|
|
2665
2740
|
TCloudUiDirectiveModule,
|
|
2666
2741
|
// Pipes
|
|
@@ -2680,6 +2755,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2680
2755
|
TCloudUiNotFoundModule,
|
|
2681
2756
|
TCloudUiTableModule,
|
|
2682
2757
|
TCloudUiNumberStepModule,
|
|
2758
|
+
TCloudUiScrollBoxModule,
|
|
2683
2759
|
// Directives
|
|
2684
2760
|
TCloudUiDirectiveModule,
|
|
2685
2761
|
// Pipes
|
|
@@ -2695,6 +2771,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2695
2771
|
TCloudUiNotFoundModule,
|
|
2696
2772
|
TCloudUiTableModule,
|
|
2697
2773
|
TCloudUiNumberStepModule,
|
|
2774
|
+
TCloudUiScrollBoxModule,
|
|
2698
2775
|
// Directives
|
|
2699
2776
|
TCloudUiDirectiveModule,
|
|
2700
2777
|
// Pipes
|
|
@@ -2715,6 +2792,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2715
2792
|
TCloudUiNotFoundModule,
|
|
2716
2793
|
TCloudUiTableModule,
|
|
2717
2794
|
TCloudUiNumberStepModule,
|
|
2795
|
+
TCloudUiScrollBoxModule,
|
|
2718
2796
|
// Directives
|
|
2719
2797
|
TCloudUiDirectiveModule,
|
|
2720
2798
|
// Pipes
|
|
@@ -2733,6 +2811,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2733
2811
|
TCloudUiNotFoundModule,
|
|
2734
2812
|
TCloudUiTableModule,
|
|
2735
2813
|
TCloudUiNumberStepModule,
|
|
2814
|
+
TCloudUiScrollBoxModule,
|
|
2736
2815
|
// Directives
|
|
2737
2816
|
TCloudUiDirectiveModule,
|
|
2738
2817
|
// Pipes
|
|
@@ -2753,5 +2832,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2753
2832
|
* Generated bundle index. Do not edit.
|
|
2754
2833
|
*/
|
|
2755
2834
|
|
|
2756
|
-
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 };
|
|
2835
|
+
export { BytesPipe, 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, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
|
|
2757
2836
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|