@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
  }] } });
@@ -5248,6 +5265,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5248
5265
  }]
5249
5266
  }] });
5250
5267
 
5268
+ class TCloudUiProgressBarComponent {
5269
+ constructor() {
5270
+ /*
5271
+ status
5272
+ */
5273
+ this._status = '0';
5274
+ /*
5275
+ mode
5276
+ */
5277
+ this._mode = 'primary';
5278
+ /*
5279
+ height
5280
+ */
5281
+ this._height = 'normal';
5282
+ this.progress_class = '';
5283
+ this.height_class = '';
5284
+ }
5285
+ set status(status) {
5286
+ let value = `${status}`;
5287
+ if (value) {
5288
+ setTimeout(() => {
5289
+ this._status = value;
5290
+ });
5291
+ }
5292
+ }
5293
+ get status() { return this._status; }
5294
+ set mode(mode) {
5295
+ if (mode) {
5296
+ this._mode = mode;
5297
+ this.setMode();
5298
+ }
5299
+ }
5300
+ get mode() { return this._mode; }
5301
+ set height(height) {
5302
+ if (height) {
5303
+ this._height = height;
5304
+ this.setheight();
5305
+ }
5306
+ }
5307
+ get height() { return this._height; }
5308
+ ngOnInit() {
5309
+ this.setMode();
5310
+ this.setheight();
5311
+ }
5312
+ setMode() {
5313
+ const mode = this.mode;
5314
+ let progress_class = 'progress-primary';
5315
+ switch (mode) {
5316
+ case 'primary':
5317
+ progress_class = 'progress-primary';
5318
+ break;
5319
+ case 'danger':
5320
+ progress_class = 'progress-danger';
5321
+ break;
5322
+ case 'warning':
5323
+ progress_class = 'progress-warning';
5324
+ break;
5325
+ case 'info':
5326
+ progress_class = 'progress-info';
5327
+ break;
5328
+ }
5329
+ this.progress_class = progress_class;
5330
+ }
5331
+ setheight() {
5332
+ const height = this.height;
5333
+ let height_class = 'height-normal';
5334
+ switch (height) {
5335
+ case 'normal':
5336
+ height_class = 'height-normal';
5337
+ break;
5338
+ case 'slim':
5339
+ height_class = 'height-slim';
5340
+ break;
5341
+ case 'fat':
5342
+ height_class = 'height-fat';
5343
+ break;
5344
+ }
5345
+ this.height_class = height_class;
5346
+ }
5347
+ }
5348
+ TCloudUiProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5349
+ 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"] });
5350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarComponent, decorators: [{
5351
+ type: Component,
5352
+ 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"] }]
5353
+ }], ctorParameters: function () { return []; }, propDecorators: { status: [{
5354
+ type: Input
5355
+ }], mode: [{
5356
+ type: Input
5357
+ }], height: [{
5358
+ type: Input
5359
+ }] } });
5360
+
5361
+ class TCloudUiProgressBarModule {
5362
+ }
5363
+ TCloudUiProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5364
+ TCloudUiProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, declarations: [TCloudUiProgressBarComponent], imports: [CommonModule], exports: [TCloudUiProgressBarComponent] });
5365
+ TCloudUiProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, imports: [CommonModule] });
5366
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiProgressBarModule, decorators: [{
5367
+ type: NgModule,
5368
+ args: [{
5369
+ declarations: [TCloudUiProgressBarComponent],
5370
+ exports: [TCloudUiProgressBarComponent],
5371
+ imports: [
5372
+ CommonModule
5373
+ ]
5374
+ }]
5375
+ }] });
5376
+
5251
5377
  class TCloudUiModule {
5252
5378
  }
5253
5379
  TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -5271,6 +5397,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5271
5397
  TCloudUiMultiplesValuesModule,
5272
5398
  TCloudUiWelcomeModule,
5273
5399
  TCloudUiInputPasswordModule,
5400
+ TCloudUiProgressBarModule,
5274
5401
  // Directives
5275
5402
  TCloudUiDirectiveModule,
5276
5403
  // Pipes
@@ -5294,6 +5421,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5294
5421
  TCloudUiMultiplesValuesModule,
5295
5422
  TCloudUiWelcomeModule,
5296
5423
  TCloudUiInputPasswordModule,
5424
+ TCloudUiProgressBarModule,
5297
5425
  // Directives
5298
5426
  TCloudUiDirectiveModule,
5299
5427
  // Pipes
@@ -5321,6 +5449,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
5321
5449
  TCloudUiMultiplesValuesModule,
5322
5450
  TCloudUiWelcomeModule,
5323
5451
  TCloudUiInputPasswordModule,
5452
+ TCloudUiProgressBarModule,
5324
5453
  // Directives
5325
5454
  TCloudUiDirectiveModule,
5326
5455
  // Pipes
@@ -5344,6 +5473,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
5344
5473
  TCloudUiMultiplesValuesModule,
5345
5474
  TCloudUiWelcomeModule,
5346
5475
  TCloudUiInputPasswordModule,
5476
+ TCloudUiProgressBarModule,
5347
5477
  // Directives
5348
5478
  TCloudUiDirectiveModule,
5349
5479
  // Pipes
@@ -5372,6 +5502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5372
5502
  TCloudUiMultiplesValuesModule,
5373
5503
  TCloudUiWelcomeModule,
5374
5504
  TCloudUiInputPasswordModule,
5505
+ TCloudUiProgressBarModule,
5375
5506
  // Directives
5376
5507
  TCloudUiDirectiveModule,
5377
5508
  // Pipes
@@ -5398,6 +5529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5398
5529
  TCloudUiMultiplesValuesModule,
5399
5530
  TCloudUiWelcomeModule,
5400
5531
  TCloudUiInputPasswordModule,
5532
+ TCloudUiProgressBarModule,
5401
5533
  // Directives
5402
5534
  TCloudUiDirectiveModule,
5403
5535
  // Pipes
@@ -5418,5 +5550,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5418
5550
  * Generated bundle index. Do not edit.
5419
5551
  */
5420
5552
 
5421
- 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 };
5553
+ 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 };
5422
5554
  //# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map