@dev-tcloud/tcloud-ui 0.1.16 → 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.
@@ -101,6 +101,8 @@ class TabMenuService {
101
101
  this.tabState$ = this.tabSubject.asObservable();
102
102
  this.loadingSubject = new Subject();
103
103
  this.loadingState$ = this.loadingSubject.asObservable();
104
+ this.fullSubject = new Subject();
105
+ this.fullState$ = this.fullSubject.asObservable();
104
106
  }
105
107
  setTabScroll(scroll) {
106
108
  this._scroll = scroll;
@@ -116,6 +118,13 @@ class TabMenuService {
116
118
  getTabLoading() {
117
119
  return this._loading;
118
120
  }
121
+ setTabfull(full) {
122
+ this._full = full;
123
+ this.fullSubject.next(full);
124
+ }
125
+ getTabFull() {
126
+ return this._full;
127
+ }
119
128
  setTabState(tab, registerInUrl) {
120
129
  this._tab = tab;
121
130
  if (registerInUrl) {
@@ -178,6 +187,7 @@ class TCloudUiTabMenuComponent {
178
187
  this.registerInUrl = false;
179
188
  this._loading = false;
180
189
  this._active = '';
190
+ this._full = false;
181
191
  this.onChange = new EventEmitter();
182
192
  }
183
193
  set loading(loading) {
@@ -194,6 +204,11 @@ class TCloudUiTabMenuComponent {
194
204
  }
195
205
  }
196
206
  get active() { return this._active; }
207
+ set full(full) {
208
+ this._full = full;
209
+ this.tabMenuService.setTabfull(this.full);
210
+ }
211
+ get full() { return this._full; }
197
212
  ngOnInit() {
198
213
  const tab = this.tabMenuService.getTabState();
199
214
  if (tab === this._active) {
@@ -210,16 +225,18 @@ class TCloudUiTabMenuComponent {
210
225
  }
211
226
  }
212
227
  TCloudUiTabMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTabMenuComponent, deps: [{ token: TabMenuService }], target: i0.ɵɵFactoryTarget.Component });
213
- TCloudUiTabMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiTabMenuComponent, selector: "tcloud-ui-tab-menu", inputs: { registerInUrl: "registerInUrl", loading: "loading", active: "active" }, outputs: { onChange: "onChange" }, providers: [TabMenuService], ngImport: i0, template: "<div class=\"tcloud-ui-tab-menu tc-tab-menu\" [class.loading]=\"loading\" >\r\n <ng-content></ng-content>\r\n</div>", styles: [".tc-tab-menu{width:100%;overflow-x:hidden}.tc-tab-menu .fas{color:var(--tc-primary);margin:0}.loading{opacity:.7;cursor:progress!important}\n"] });
228
+ TCloudUiTabMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiTabMenuComponent, selector: "tcloud-ui-tab-menu", inputs: { registerInUrl: "registerInUrl", loading: "loading", active: "active", full: "full" }, outputs: { onChange: "onChange" }, providers: [TabMenuService], ngImport: i0, template: "<div class=\"tcloud-ui-tab-menu tc-tab-menu\" [class.loading]=\"loading\" [class.tcloud-ui-tab-block-full]=\"full\" >\r\n <ng-content></ng-content>\r\n</div>", styles: [".tc-tab-menu{width:100%;overflow-x:hidden}.tc-tab-menu .fas{color:var(--tc-primary);margin:0}.loading{opacity:.7;cursor:progress!important}\n"] });
214
229
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiTabMenuComponent, decorators: [{
215
230
  type: Component,
216
- args: [{ selector: 'tcloud-ui-tab-menu', providers: [TabMenuService], template: "<div class=\"tcloud-ui-tab-menu tc-tab-menu\" [class.loading]=\"loading\" >\r\n <ng-content></ng-content>\r\n</div>", styles: [".tc-tab-menu{width:100%;overflow-x:hidden}.tc-tab-menu .fas{color:var(--tc-primary);margin:0}.loading{opacity:.7;cursor:progress!important}\n"] }]
231
+ args: [{ selector: 'tcloud-ui-tab-menu', providers: [TabMenuService], template: "<div class=\"tcloud-ui-tab-menu tc-tab-menu\" [class.loading]=\"loading\" [class.tcloud-ui-tab-block-full]=\"full\" >\r\n <ng-content></ng-content>\r\n</div>", styles: [".tc-tab-menu{width:100%;overflow-x:hidden}.tc-tab-menu .fas{color:var(--tc-primary);margin:0}.loading{opacity:.7;cursor:progress!important}\n"] }]
217
232
  }], ctorParameters: function () { return [{ type: TabMenuService }]; }, propDecorators: { registerInUrl: [{
218
233
  type: Input
219
234
  }], loading: [{
220
235
  type: Input
221
236
  }], active: [{
222
237
  type: Input
238
+ }], full: [{
239
+ type: Input
223
240
  }], onChange: [{
224
241
  type: Output
225
242
  }] } });
@@ -5266,6 +5283,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5266
5283
  }]
5267
5284
  }] });
5268
5285
 
5286
+ class TCloudUiProgressBarComponent {
5287
+ constructor() {
5288
+ /*
5289
+ status
5290
+ */
5291
+ this._status = '0';
5292
+ /*
5293
+ mode
5294
+ */
5295
+ this._mode = 'primary';
5296
+ /*
5297
+ height
5298
+ */
5299
+ this._height = 'normal';
5300
+ this.progress_class = '';
5301
+ this.height_class = '';
5302
+ }
5303
+ set status(status) {
5304
+ let value = `${status}`;
5305
+ if (value) {
5306
+ setTimeout(() => {
5307
+ this._status = value;
5308
+ });
5309
+ }
5310
+ }
5311
+ get status() { return this._status; }
5312
+ set mode(mode) {
5313
+ if (mode) {
5314
+ this._mode = mode;
5315
+ this.setMode();
5316
+ }
5317
+ }
5318
+ get mode() { return this._mode; }
5319
+ set height(height) {
5320
+ if (height) {
5321
+ this._height = height;
5322
+ this.setheight();
5323
+ }
5324
+ }
5325
+ get height() { return this._height; }
5326
+ ngOnInit() {
5327
+ this.setMode();
5328
+ this.setheight();
5329
+ }
5330
+ setMode() {
5331
+ const mode = this.mode;
5332
+ let progress_class = 'progress-primary';
5333
+ switch (mode) {
5334
+ case 'primary':
5335
+ progress_class = 'progress-primary';
5336
+ break;
5337
+ case 'danger':
5338
+ progress_class = 'progress-danger';
5339
+ break;
5340
+ case 'warning':
5341
+ progress_class = 'progress-warning';
5342
+ break;
5343
+ case 'info':
5344
+ progress_class = 'progress-info';
5345
+ break;
5346
+ }
5347
+ this.progress_class = progress_class;
5348
+ }
5349
+ setheight() {
5350
+ const height = this.height;
5351
+ let height_class = 'height-normal';
5352
+ switch (height) {
5353
+ case 'normal':
5354
+ height_class = 'height-normal';
5355
+ break;
5356
+ case 'slim':
5357
+ height_class = 'height-slim';
5358
+ break;
5359
+ case 'fat':
5360
+ height_class = 'height-fat';
5361
+ break;
5362
+ }
5363
+ this.height_class = height_class;
5364
+ }
5365
+ }
5366
+ TCloudUiProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5367
+ 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"] });
5368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarComponent, decorators: [{
5369
+ type: Component,
5370
+ 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"] }]
5371
+ }], ctorParameters: function () { return []; }, propDecorators: { status: [{
5372
+ type: Input
5373
+ }], mode: [{
5374
+ type: Input
5375
+ }], height: [{
5376
+ type: Input
5377
+ }] } });
5378
+
5379
+ class TCloudUiProgressBarModule {
5380
+ }
5381
+ TCloudUiProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5382
+ TCloudUiProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, declarations: [TCloudUiProgressBarComponent], imports: [CommonModule], exports: [TCloudUiProgressBarComponent] });
5383
+ TCloudUiProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, imports: [CommonModule] });
5384
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, decorators: [{
5385
+ type: NgModule,
5386
+ args: [{
5387
+ declarations: [TCloudUiProgressBarComponent],
5388
+ exports: [TCloudUiProgressBarComponent],
5389
+ imports: [
5390
+ CommonModule
5391
+ ]
5392
+ }]
5393
+ }] });
5394
+
5269
5395
  class TCloudUiModule {
5270
5396
  }
5271
5397
  TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -5289,6 +5415,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5289
5415
  TCloudUiMultiplesValuesModule,
5290
5416
  TCloudUiWelcomeModule,
5291
5417
  TCloudUiInputPasswordModule,
5418
+ TCloudUiProgressBarModule,
5292
5419
  // Directives
5293
5420
  TCloudUiDirectiveModule,
5294
5421
  // Pipes
@@ -5312,6 +5439,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5312
5439
  TCloudUiMultiplesValuesModule,
5313
5440
  TCloudUiWelcomeModule,
5314
5441
  TCloudUiInputPasswordModule,
5442
+ TCloudUiProgressBarModule,
5315
5443
  // Directives
5316
5444
  TCloudUiDirectiveModule,
5317
5445
  // Pipes
@@ -5339,6 +5467,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
5339
5467
  TCloudUiMultiplesValuesModule,
5340
5468
  TCloudUiWelcomeModule,
5341
5469
  TCloudUiInputPasswordModule,
5470
+ TCloudUiProgressBarModule,
5342
5471
  // Directives
5343
5472
  TCloudUiDirectiveModule,
5344
5473
  // Pipes
@@ -5362,6 +5491,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
5362
5491
  TCloudUiMultiplesValuesModule,
5363
5492
  TCloudUiWelcomeModule,
5364
5493
  TCloudUiInputPasswordModule,
5494
+ TCloudUiProgressBarModule,
5365
5495
  // Directives
5366
5496
  TCloudUiDirectiveModule,
5367
5497
  // Pipes
@@ -5390,6 +5520,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5390
5520
  TCloudUiMultiplesValuesModule,
5391
5521
  TCloudUiWelcomeModule,
5392
5522
  TCloudUiInputPasswordModule,
5523
+ TCloudUiProgressBarModule,
5393
5524
  // Directives
5394
5525
  TCloudUiDirectiveModule,
5395
5526
  // Pipes
@@ -5416,6 +5547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5416
5547
  TCloudUiMultiplesValuesModule,
5417
5548
  TCloudUiWelcomeModule,
5418
5549
  TCloudUiInputPasswordModule,
5550
+ TCloudUiProgressBarModule,
5419
5551
  // Directives
5420
5552
  TCloudUiDirectiveModule,
5421
5553
  // Pipes
@@ -5436,5 +5568,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5436
5568
  * Generated bundle index. Do not edit.
5437
5569
  */
5438
5570
 
5439
- 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 };
5571
+ 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 };
5440
5572
  //# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map