@po-ui/ng-components 19.1.0 → 19.2.0

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.
@@ -15,11 +15,11 @@ import { NG_VALUE_ACCESSOR, FormsModule, NG_VALIDATORS, Validators, NgControl, C
15
15
  import * as i1$2 from '@angular/common/http';
16
16
  import { HttpHeaders, HttpEventType, HttpResponse, HttpRequest, HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';
17
17
  import { debounceTime as debounceTime$1, concatMap, mapTo, scan, tap, switchMap, take, delay, takeWhile, map, filter as filter$1, distinctUntilChanged, catchError, finalize, mergeMap } from 'rxjs/operators';
18
- import * as i7 from '@angular/cdk/overlay';
18
+ import * as i3 from '@angular/cdk/overlay';
19
19
  import { OverlayModule } from '@angular/cdk/overlay';
20
20
  import * as i2$2 from '@angular/cdk/scrolling';
21
21
  import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
22
- import * as i3 from '@angular/cdk/drag-drop';
22
+ import * as i3$1 from '@angular/cdk/drag-drop';
23
23
  import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
24
24
 
25
25
  /**
@@ -17937,7 +17937,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
17937
17937
  i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", dropdownCDK_r10)("ngIfElse", dropdownDefault_r9);
17938
17938
  i0.ɵɵadvance(7);
17939
17939
  i0.ɵɵproperty("ngIf", !ctx.readonly);
17940
- } }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2$1.NgControlStatus, i2$1.NgModel, PoFieldContainerBottomComponent, PoFieldContainerComponent, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoCleanComponent, PoCalendarComponent, PoButtonComponent], encapsulation: 2, changeDetection: 0 });
17940
+ } }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2$1.NgControlStatus, i2$1.NgModel, PoFieldContainerBottomComponent, PoFieldContainerComponent, i3.CdkConnectedOverlay, i3.CdkOverlayOrigin, PoCleanComponent, PoCalendarComponent, PoButtonComponent], encapsulation: 2, changeDetection: 0 });
17941
17941
  }
17942
17942
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerComponent, [{
17943
17943
  type: Component,
@@ -18107,7 +18107,6 @@ class PoModalBaseComponent {
18107
18107
  * > Quando informado `auto` a modal calculará automaticamente seu tamanho baseado em seu conteúdo.
18108
18108
  * Caso não seja informado um valor, a modal terá o tamanho definido como `md`.
18109
18109
  *
18110
- * > Todas as opções de tamanho possuem uma largura máxima de **768px**.
18111
18110
  */
18112
18111
  set size(value) {
18113
18112
  const sizes = ['sm', 'md', 'lg', 'xl', 'auto'];
@@ -21286,6 +21285,18 @@ const PO_POPOVER_TRIGGERS = ['click', 'hover'];
21286
21285
  *
21287
21286
  */
21288
21287
  class PoPopoverBaseComponent {
21288
+ /**
21289
+ * @optional
21290
+ *
21291
+ * @description
21292
+ *
21293
+ * Define que o popover será inserido no body da página em vez do elemento definido em `p-target`. Essa opção pode
21294
+ * ser necessária em cenários com containers que possuem scroll ou overflow escondido, garantindo o posicionamento
21295
+ * correto do conteúdo próximo ao elemento.
21296
+ *
21297
+ * @default `false`
21298
+ */
21299
+ appendBox = false;
21289
21300
  /**
21290
21301
  * @description
21291
21302
  *
@@ -21409,11 +21420,14 @@ class PoPopoverBaseComponent {
21409
21420
  return this._trigger;
21410
21421
  }
21411
21422
  static ɵfac = function PoPopoverBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPopoverBaseComponent)(); };
21412
- static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPopoverBaseComponent, inputs: { target: [0, "p-target", "target"], title: [0, "p-title", "title"], hideArrow: [0, "p-hide-arrow", "hideArrow"], position: [0, "p-position", "position"], trigger: [0, "p-trigger", "trigger"] }, outputs: { closePopover: "p-close" } });
21423
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPopoverBaseComponent, inputs: { appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean], target: [0, "p-target", "target"], title: [0, "p-title", "title"], hideArrow: [0, "p-hide-arrow", "hideArrow"], position: [0, "p-position", "position"], trigger: [0, "p-trigger", "trigger"] }, outputs: { closePopover: "p-close" }, features: [i0.ɵɵInputTransformsFeature] });
21413
21424
  }
21414
21425
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPopoverBaseComponent, [{
21415
21426
  type: Directive
21416
- }], null, { target: [{
21427
+ }], null, { appendBox: [{
21428
+ type: Input,
21429
+ args: [{ alias: 'p-append-in-body', transform: convertToBoolean }]
21430
+ }], target: [{
21417
21431
  type: Input,
21418
21432
  args: ['p-target']
21419
21433
  }], title: [{
@@ -21435,21 +21449,65 @@ class PoPopoverBaseComponent {
21435
21449
 
21436
21450
  const _c0$14 = ["popoverElement"];
21437
21451
  const _c1$q = ["*"];
21438
- function PoPopoverComponent_div_2_Template(rf, ctx) { if (rf & 1) {
21452
+ function PoPopoverComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
21453
+ i0.ɵɵelementContainer(0);
21454
+ } }
21455
+ function PoPopoverComponent_ng_template_1_div_2_Template(rf, ctx) { if (rf & 1) {
21439
21456
  i0.ɵɵelement(0, "div");
21440
21457
  } if (rf & 2) {
21441
- const ctx_r0 = i0.ɵɵnextContext();
21458
+ const ctx_r0 = i0.ɵɵnextContext(2);
21442
21459
  i0.ɵɵclassMapInterpolate1("po-popover-arrow po-arrow-", ctx_r0.arrowDirection, "");
21443
21460
  } }
21444
- function PoPopoverComponent_span_4_Template(rf, ctx) { if (rf & 1) {
21445
- i0.ɵɵelementStart(0, "span", 5);
21461
+ function PoPopoverComponent_ng_template_1_span_4_Template(rf, ctx) { if (rf & 1) {
21462
+ i0.ɵɵelementStart(0, "span", 9);
21446
21463
  i0.ɵɵtext(1);
21447
21464
  i0.ɵɵelementEnd();
21448
21465
  } if (rf & 2) {
21449
- const ctx_r0 = i0.ɵɵnextContext();
21466
+ const ctx_r0 = i0.ɵɵnextContext(2);
21450
21467
  i0.ɵɵadvance();
21451
21468
  i0.ɵɵtextInterpolate(ctx_r0.title);
21452
21469
  } }
21470
+ function PoPopoverComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
21471
+ i0.ɵɵelementStart(0, "div", 5, 3);
21472
+ i0.ɵɵtemplate(2, PoPopoverComponent_ng_template_1_div_2_Template, 1, 3, "div", 6);
21473
+ i0.ɵɵelementStart(3, "div", 7);
21474
+ i0.ɵɵtemplate(4, PoPopoverComponent_ng_template_1_span_4_Template, 2, 1, "span", 8);
21475
+ i0.ɵɵprojection(5);
21476
+ i0.ɵɵelementEnd()();
21477
+ } if (rf & 2) {
21478
+ const ctx_r0 = i0.ɵɵnextContext();
21479
+ i0.ɵɵproperty("hidden", ctx_r0.isHidden);
21480
+ i0.ɵɵadvance(2);
21481
+ i0.ɵɵproperty("ngIf", !ctx_r0.hideArrow);
21482
+ i0.ɵɵadvance(2);
21483
+ i0.ɵɵproperty("ngIf", ctx_r0.title);
21484
+ } }
21485
+ function PoPopoverComponent_ng_template_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
21486
+ i0.ɵɵelementContainer(0);
21487
+ } }
21488
+ function PoPopoverComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
21489
+ i0.ɵɵtemplate(0, PoPopoverComponent_ng_template_3_ng_container_0_Template, 1, 0, "ng-container", 10);
21490
+ } if (rf & 2) {
21491
+ i0.ɵɵnextContext();
21492
+ const sharedPopoverContent_r2 = i0.ɵɵreference(2);
21493
+ i0.ɵɵproperty("ngTemplateOutlet", sharedPopoverContent_r2);
21494
+ } }
21495
+ function PoPopoverComponent_ng_template_5_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
21496
+ i0.ɵɵelementContainer(0);
21497
+ } }
21498
+ function PoPopoverComponent_ng_template_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
21499
+ i0.ɵɵtemplate(0, PoPopoverComponent_ng_template_5_ng_template_0_ng_container_0_Template, 1, 0, "ng-container", 10);
21500
+ } if (rf & 2) {
21501
+ i0.ɵɵnextContext(2);
21502
+ const sharedPopoverContent_r2 = i0.ɵɵreference(2);
21503
+ i0.ɵɵproperty("ngTemplateOutlet", sharedPopoverContent_r2);
21504
+ } }
21505
+ function PoPopoverComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
21506
+ i0.ɵɵtemplate(0, PoPopoverComponent_ng_template_5_ng_template_0_Template, 1, 1, "ng-template", 11);
21507
+ } if (rf & 2) {
21508
+ const ctx_r0 = i0.ɵɵnextContext();
21509
+ i0.ɵɵproperty("cdkConnectedOverlayOrigin", ctx_r0.target)("cdkConnectedOverlayOpen", true);
21510
+ } }
21453
21511
  /**
21454
21512
  *
21455
21513
  * @docsExtends PoPopoverBaseComponent
@@ -21577,32 +21635,25 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
21577
21635
  }
21578
21636
  static ɵfac = function PoPopoverComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPopoverComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoControlPositionService)); };
21579
21637
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopoverComponent, selectors: [["po-popover"]], viewQuery: function PoPopoverComponent_Query(rf, ctx) { if (rf & 1) {
21580
- i0.ɵɵviewQuery(_c0$14, 7, ElementRef);
21638
+ i0.ɵɵviewQuery(_c0$14, 5, ElementRef);
21581
21639
  } if (rf & 2) {
21582
21640
  let _t;
21583
21641
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverElement = _t.first);
21584
- } }, standalone: false, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1$q, decls: 6, vars: 3, consts: [["popoverElement", ""], [1, "po-popover", 3, "hidden"], [3, "class", 4, "ngIf"], [1, "po-popover-content"], ["class", "po-popover-title", 4, "ngIf"], [1, "po-popover-title"]], template: function PoPopoverComponent_Template(rf, ctx) { if (rf & 1) {
21642
+ } }, standalone: false, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1$q, decls: 7, vars: 3, consts: [["sharedPopoverContent", ""], ["popoverDefault", ""], ["popoverCDK", ""], ["popoverElement", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-popover", 3, "hidden"], [3, "class", 4, "ngIf"], [1, "po-popover-content"], ["class", "po-popover-title", 4, "ngIf"], [1, "po-popover-title"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"]], template: function PoPopoverComponent_Template(rf, ctx) { if (rf & 1) {
21585
21643
  i0.ɵɵprojectionDef();
21586
- i0.ɵɵelementStart(0, "div", 1, 0);
21587
- i0.ɵɵtemplate(2, PoPopoverComponent_div_2_Template, 1, 3, "div", 2);
21588
- i0.ɵɵelementStart(3, "div", 3);
21589
- i0.ɵɵtemplate(4, PoPopoverComponent_span_4_Template, 2, 1, "span", 4);
21590
- i0.ɵɵprojection(5);
21591
- i0.ɵɵelementEnd()();
21644
+ i0.ɵɵtemplate(0, PoPopoverComponent_ng_container_0_Template, 1, 0, "ng-container", 4)(1, PoPopoverComponent_ng_template_1_Template, 6, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, PoPopoverComponent_ng_template_3_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(5, PoPopoverComponent_ng_template_5_Template, 1, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
21592
21645
  } if (rf & 2) {
21593
- i0.ɵɵproperty("hidden", ctx.isHidden);
21594
- i0.ɵɵadvance(2);
21595
- i0.ɵɵproperty("ngIf", !ctx.hideArrow);
21596
- i0.ɵɵadvance(2);
21597
- i0.ɵɵproperty("ngIf", ctx.title);
21598
- } }, dependencies: [i1.NgIf], encapsulation: 2 });
21646
+ const popoverDefault_r3 = i0.ɵɵreference(4);
21647
+ const popoverCDK_r4 = i0.ɵɵreference(6);
21648
+ i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", popoverCDK_r4)("ngIfElse", popoverDefault_r3);
21649
+ } }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i3.CdkConnectedOverlay], encapsulation: 2 });
21599
21650
  }
21600
21651
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPopoverComponent, [{
21601
21652
  type: Component,
21602
- args: [{ selector: 'po-popover', providers: [PoControlPositionService], standalone: false, template: "<div [hidden]=\"isHidden\" class=\"po-popover\" #popoverElement>\n <div *ngIf=\"!hideArrow\" class=\"po-popover-arrow po-arrow-{{ arrowDirection }}\"></div>\n\n <div class=\"po-popover-content\">\n <span *ngIf=\"title\" class=\"po-popover-title\">{{ title }}</span>\n <ng-content></ng-content>\n </div>\n</div>\n" }]
21653
+ args: [{ selector: 'po-popover', providers: [PoControlPositionService], standalone: false, template: "<ng-container *ngIf=\"appendBox; then popoverCDK; else popoverDefault\"> </ng-container>\n\n<ng-template #sharedPopoverContent>\n <div [hidden]=\"isHidden\" class=\"po-popover\" #popoverElement>\n <div *ngIf=\"!hideArrow\" class=\"po-popover-arrow po-arrow-{{ arrowDirection }}\"></div>\n\n <div class=\"po-popover-content\">\n <span *ngIf=\"title\" class=\"po-popover-title\">{{ title }}</span>\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n\n<ng-template #popoverDefault>\n <ng-container *ngTemplateOutlet=\"sharedPopoverContent\"></ng-container>\n</ng-template>\n\n<ng-template #popoverCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"target\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"sharedPopoverContent\"></ng-container>\n </ng-template>\n</ng-template>\n" }]
21603
21654
  }], () => [{ type: i0.Renderer2 }, { type: PoControlPositionService }], { popoverElement: [{
21604
21655
  type: ViewChild,
21605
- args: ['popoverElement', { read: ElementRef, static: true }]
21656
+ args: ['popoverElement', { read: ElementRef, static: false }]
21606
21657
  }] }); })();
21607
21658
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPopoverComponent, { className: "PoPopoverComponent", filePath: "lib/components/po-popover/po-popover.component.ts", lineNumber: 42 }); })();
21608
21659
 
@@ -21613,17 +21664,17 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
21613
21664
  class PoPopoverModule {
21614
21665
  static ɵfac = function PoPopoverModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPopoverModule)(); };
21615
21666
  static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoPopoverModule });
21616
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
21667
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, OverlayModule] });
21617
21668
  }
21618
21669
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPopoverModule, [{
21619
21670
  type: NgModule,
21620
21671
  args: [{
21621
- imports: [CommonModule],
21672
+ imports: [CommonModule, OverlayModule],
21622
21673
  declarations: [PoPopoverComponent],
21623
21674
  exports: [PoPopoverComponent]
21624
21675
  }]
21625
21676
  }], null, null); })();
21626
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoPopoverModule, { declarations: [PoPopoverComponent], imports: [CommonModule], exports: [PoPopoverComponent] }); })();
21677
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoPopoverModule, { declarations: [PoPopoverComponent], imports: [CommonModule, OverlayModule], exports: [PoPopoverComponent] }); })();
21627
21678
 
21628
21679
  /**
21629
21680
  * @docsPrivate
@@ -30578,7 +30629,7 @@ class PoComboComponent extends PoComboBaseComponent {
30578
30629
  i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", dropdownCDK_r9)("ngIfElse", dropdownDefault_r8);
30579
30630
  i0.ɵɵadvance(5);
30580
30631
  i0.ɵɵproperty("p-additional-help-tooltip", ctx.getAdditionalHelpTooltip())("p-append-in-body", ctx.appendBox)("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-show-additional-help-icon", ctx.showAdditionalHelpIcon());
30581
- } }, dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
30632
+ } }, dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i3.CdkConnectedOverlay, i3.CdkOverlayOrigin, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
30582
30633
  }
30583
30634
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboComponent, [{
30584
30635
  type: Component,
@@ -44964,7 +45015,7 @@ class PoTableModule {
44964
45015
  PoTableRowTemplateDirective,
44965
45016
  PoTableCellTemplateDirective,
44966
45017
  PoTableColumnTemplateDirective] }); })();
44967
- i0.ɵɵsetComponentScope(PoTableComponent, [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i1.NgPlural, i1.NgPluralCase, i2$2.CdkFixedSizeVirtualScroll, i2$2.CdkVirtualForOf, i2$2.CdkVirtualScrollViewport, i3.CdkDropList, i3.CdkDrag, i3.CdkDragHandle, PoButtonComponent, PoContainerComponent, PoLoadingOverlayComponent, PoModalComponent, PoPopupComponent, PoTooltipDirective, PoIconComponent, PoCheckboxComponent, PoRadioComponent, PoSearchComponent, PoTableColumnIconComponent,
45018
+ i0.ɵɵsetComponentScope(PoTableComponent, [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i1.NgPlural, i1.NgPluralCase, i2$2.CdkFixedSizeVirtualScroll, i2$2.CdkVirtualForOf, i2$2.CdkVirtualScrollViewport, i3$1.CdkDropList, i3$1.CdkDrag, i3$1.CdkDragHandle, PoButtonComponent, PoContainerComponent, PoLoadingOverlayComponent, PoModalComponent, PoPopupComponent, PoTooltipDirective, PoIconComponent, PoCheckboxComponent, PoRadioComponent, PoSearchComponent, PoTableColumnIconComponent,
44968
45019
  PoTableColumnLabelComponent,
44969
45020
  PoTableColumnLinkComponent,
44970
45021
  PoTableColumnManagerComponent,
@@ -45419,7 +45470,7 @@ class PoFieldModule {
45419
45470
  PoLabelModule,
45420
45471
  PoSwitchModule,
45421
45472
  PoTagModule] }); })();
45422
- i0.ɵɵsetComponentScope(PoMultiselectComponent, function () { return [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoTagComponent, PoMultiselectDropdownComponent]; }, []);
45473
+ i0.ɵɵsetComponentScope(PoMultiselectComponent, function () { return [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i3.CdkConnectedOverlay, i3.CdkOverlayOrigin, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoTagComponent, PoMultiselectDropdownComponent]; }, []);
45423
45474
 
45424
45475
  /**
45425
45476
  * @usedBy PoInfoComponent