@po-ui/ng-components 17.26.6 → 17.26.7

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.
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, InjectionToken, TemplateRef, Optional, Inject, Injectable, EventEmitter, Output, ElementRef, HostListener, ViewChild, ChangeDetectorRef, inject, ViewChildren, ContentChildren, HostBinding, forwardRef, ViewContainerRef, ContentChild, Pipe, Injector, APP_INITIALIZER } from '@angular/core';
2
+ import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, InjectionToken, TemplateRef, Optional, Inject, Injectable, EventEmitter, Output, ElementRef, HostListener, ViewChild, inject, ChangeDetectorRef, ViewChildren, ContentChildren, HostBinding, forwardRef, ViewContainerRef, ContentChild, Pipe, Injector, APP_INITIALIZER } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, DecimalPipe, NgOptimizedImage, CurrencyPipe, DatePipe, TitleCasePipe } from '@angular/common';
5
5
  import * as i2$3 from '@angular/animations';
6
- import { style, animate, transition, trigger, animateChild, query, group, state, keyframes } from '@angular/animations';
7
- import { Subject, filter, debounceTime, fromEvent, timer, from, of, Subscription, ReplaySubject, throwError, map as map$1, catchError as catchError$1, Observable } from 'rxjs';
6
+ import { trigger, transition, style, animate, group, query, animateChild, state, keyframes } from '@angular/animations';
7
+ import { Subject, filter, fromEvent, debounceTime, from, timer, of, Subscription, ReplaySubject, throwError, map as map$1, catchError as catchError$1, Observable } from 'rxjs';
8
8
  import * as i2 from '@angular/router';
9
9
  import { RouterModule, NavigationEnd, NavigationCancel } from '@angular/router';
10
10
  import * as i5 from '@angular/cdk/listbox';
@@ -14,8 +14,8 @@ import * as i2$1 from '@angular/forms';
14
14
  import { NG_VALUE_ACCESSOR, FormsModule, NG_VALIDATORS, NgControl, ControlContainer, NgForm } from '@angular/forms';
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
- import { debounceTime as debounceTime$1, mapTo, concatMap, scan, tap, switchMap, delay, take, takeWhile, map, filter as filter$1, distinctUntilChanged, catchError, finalize } from 'rxjs/operators';
18
- import * as i5$1 from '@angular/cdk/overlay';
17
+ import { debounceTime as debounceTime$1, concatMap, mapTo, scan, tap, switchMap, take, delay, takeWhile, map, filter as filter$1, distinctUntilChanged, catchError, finalize } from 'rxjs/operators';
18
+ import * as i7 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';
@@ -803,7 +803,13 @@ function isLanguage(value) {
803
803
  }
804
804
  /* istanbul ignore next */
805
805
  function reloadCurrentPage() {
806
- window.location.assign(location.href);
806
+ const currentUrl = window.location.origin + window.location.pathname;
807
+ if (isValidUrl(currentUrl)) {
808
+ window.location.assign(currentUrl);
809
+ }
810
+ }
811
+ function isValidUrl(url, location = window.location) {
812
+ return url === location.origin + location.pathname;
807
813
  }
808
814
  function convertToBoolean(val) {
809
815
  if (typeof val === 'string') {
@@ -15676,10 +15682,10 @@ class PoMask {
15676
15682
  }
15677
15683
  setSelectionRange($event) {
15678
15684
  if (this.initialPosition > this.finalPosition) {
15679
- $event.target.setSelectionRange(this.finalPosition, this.initialPosition);
15685
+ $event.target.setSelectionRange?.(this.finalPosition, this.initialPosition);
15680
15686
  }
15681
15687
  else {
15682
- $event.target.setSelectionRange(this.initialPosition, this.finalPosition);
15688
+ $event.target.setSelectionRange?.(this.initialPosition, this.finalPosition);
15683
15689
  }
15684
15690
  }
15685
15691
  keydown($event) {
@@ -15799,7 +15805,7 @@ class PoMask {
15799
15805
  }
15800
15806
  // posiciona o cursor de acordo com o controle de posição
15801
15807
  setPositions($event) {
15802
- $event.target.setSelectionRange(this.initialPosition, this.finalPosition);
15808
+ $event.target.setSelectionRange?.(this.initialPosition, this.finalPosition);
15803
15809
  }
15804
15810
  // muda a posição do cursor e atualiza o controle de posição
15805
15811
  changePosition($event, value) {
@@ -16392,6 +16398,20 @@ class PoDatepickerBaseComponent {
16392
16398
  get locale() {
16393
16399
  return this._locale || this.shortLanguage;
16394
16400
  }
16401
+ /**
16402
+ * @optional
16403
+ *
16404
+ * @description
16405
+ *
16406
+ * Define que o calendário do DatePicker será incluído no body da página, em vez de suspenso junto ao campo de entrada do componente.
16407
+ * Essa opção é útil em cenários onde o DatePicker precisa ser renderizado fora do conteúdo principal da página,
16408
+ * como em formulários que utilizam scroll ou containers com overflow escondido.
16409
+ *
16410
+ * > Obs: O uso dessa propriedade pode interferir na sequência de tabulação da página, especialmente em formulários longos.
16411
+ *
16412
+ * @default `false`
16413
+ */
16414
+ appendBox = false;
16395
16415
  constructor(languageService) {
16396
16416
  this.languageService = languageService;
16397
16417
  }
@@ -16516,7 +16536,7 @@ class PoDatepickerBaseComponent {
16516
16536
  this.hour = 'T00:00:00' + timezone;
16517
16537
  }
16518
16538
  static ɵfac = function PoDatepickerBaseComponent_Factory(t) { return new (t || PoDatepickerBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
16519
- static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerBaseComponent, inputs: { autoFocus: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "p-auto-focus", "autoFocus", convertToBoolean], name: "name", optional: [i0.ɵɵInputFlags.None, "p-optional", "optional"], errorPattern: [i0.ɵɵInputFlags.None, "p-error-pattern", "errorPattern"], noAutocomplete: [i0.ɵɵInputFlags.None, "p-no-autocomplete", "noAutocomplete"], placeholder: [i0.ɵɵInputFlags.None, "p-placeholder", "placeholder"], setDisabled: [i0.ɵɵInputFlags.None, "p-disabled", "setDisabled"], setReadonly: [i0.ɵɵInputFlags.None, "p-readonly", "setReadonly"], setRequired: [i0.ɵɵInputFlags.None, "p-required", "setRequired"], showRequired: [i0.ɵɵInputFlags.None, "p-show-required", "showRequired"], setClean: [i0.ɵɵInputFlags.None, "p-clean", "setClean"], minDate: [i0.ɵɵInputFlags.None, "p-min-date", "minDate"], maxDate: [i0.ɵɵInputFlags.None, "p-max-date", "maxDate"], format: [i0.ɵɵInputFlags.None, "p-format", "format"], isoFormat: [i0.ɵɵInputFlags.None, "p-iso-format", "isoFormat"], locale: [i0.ɵɵInputFlags.None, "p-locale", "locale"] }, outputs: { onblur: "p-blur", onchange: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
16539
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerBaseComponent, inputs: { autoFocus: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "p-auto-focus", "autoFocus", convertToBoolean], name: "name", optional: [i0.ɵɵInputFlags.None, "p-optional", "optional"], errorPattern: [i0.ɵɵInputFlags.None, "p-error-pattern", "errorPattern"], noAutocomplete: [i0.ɵɵInputFlags.None, "p-no-autocomplete", "noAutocomplete"], placeholder: [i0.ɵɵInputFlags.None, "p-placeholder", "placeholder"], setDisabled: [i0.ɵɵInputFlags.None, "p-disabled", "setDisabled"], setReadonly: [i0.ɵɵInputFlags.None, "p-readonly", "setReadonly"], setRequired: [i0.ɵɵInputFlags.None, "p-required", "setRequired"], showRequired: [i0.ɵɵInputFlags.None, "p-show-required", "showRequired"], setClean: [i0.ɵɵInputFlags.None, "p-clean", "setClean"], minDate: [i0.ɵɵInputFlags.None, "p-min-date", "minDate"], maxDate: [i0.ɵɵInputFlags.None, "p-max-date", "maxDate"], format: [i0.ɵɵInputFlags.None, "p-format", "format"], isoFormat: [i0.ɵɵInputFlags.None, "p-iso-format", "isoFormat"], locale: [i0.ɵɵInputFlags.None, "p-locale", "locale"], appendBox: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "p-append-in-body", "appendBox", convertToBoolean] }, outputs: { onblur: "p-blur", onchange: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
16520
16540
  }
16521
16541
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerBaseComponent, [{
16522
16542
  type: Directive
@@ -16574,6 +16594,9 @@ class PoDatepickerBaseComponent {
16574
16594
  }], locale: [{
16575
16595
  type: Input,
16576
16596
  args: ['p-locale']
16597
+ }], appendBox: [{
16598
+ type: Input,
16599
+ args: [{ alias: 'p-append-in-body', transform: convertToBoolean }]
16577
16600
  }] }); })();
16578
16601
 
16579
16602
  const PoDatepickerLiterals = {
@@ -16595,17 +16618,65 @@ const _c0$15 = ["calendar"];
16595
16618
  const _c1$t = ["dialogPicker"];
16596
16619
  const _c2$f = ["iconDatepicker"];
16597
16620
  const _c3$a = ["inp"];
16598
- function PoDatepickerComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
16599
- const _r7 = i0.ɵɵgetCurrentView();
16600
- i0.ɵɵelementStart(0, "po-clean", 14);
16601
- i0.ɵɵlistener("p-change-event", function PoDatepickerComponent_po_clean_6_Template_po_clean_p_change_event_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.clear()); });
16621
+ function PoDatepickerComponent_po_clean_9_Template(rf, ctx) { if (rf & 1) {
16622
+ const _r13 = i0.ɵɵgetCurrentView();
16623
+ i0.ɵɵelementStart(0, "po-clean", 16);
16624
+ i0.ɵɵlistener("p-change-event", function PoDatepickerComponent_po_clean_9_Template_po_clean_p_change_event_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.clear()); });
16602
16625
  i0.ɵɵelementEnd();
16603
16626
  } if (rf & 2) {
16604
- const ctx_r1 = i0.ɵɵnextContext();
16605
- i0.ɵɵproperty("p-element-ref", ctx_r1.inputEl);
16627
+ const ctx_r3 = i0.ɵɵnextContext();
16628
+ i0.ɵɵproperty("p-element-ref", ctx_r3.inputEl);
16629
+ } }
16630
+ function PoDatepickerComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
16631
+ i0.ɵɵelementContainer(0);
16632
+ } }
16633
+ function PoDatepickerComponent_ng_template_13_div_2_Template(rf, ctx) { if (rf & 1) {
16634
+ i0.ɵɵelement(0, "div", 21);
16635
+ } }
16636
+ function PoDatepickerComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
16637
+ const _r18 = i0.ɵɵgetCurrentView();
16638
+ i0.ɵɵelementStart(0, "div", null, 17);
16639
+ i0.ɵɵtemplate(2, PoDatepickerComponent_ng_template_13_div_2_Template, 1, 0, "div", 18);
16640
+ i0.ɵɵelementStart(3, "po-calendar", 19, 20);
16641
+ i0.ɵɵtwoWayListener("ngModelChange", function PoDatepickerComponent_ng_template_13_Template_po_calendar_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r17.date, $event) || (ctx_r17.date = $event); return i0.ɵɵresetView($event); });
16642
+ i0.ɵɵlistener("p-change", function PoDatepickerComponent_ng_template_13_Template_po_calendar_p_change_3_listener() { i0.ɵɵrestoreView(_r18); const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.dateSelected()); });
16643
+ i0.ɵɵelementEnd()();
16644
+ } if (rf & 2) {
16645
+ const ctx_r6 = i0.ɵɵnextContext();
16646
+ i0.ɵɵclassProp("po-datepicker-popup-calendar", !ctx_r6.verifyMobile());
16647
+ i0.ɵɵadvance(2);
16648
+ i0.ɵɵproperty("ngIf", ctx_r6.verifyMobile());
16649
+ i0.ɵɵadvance();
16650
+ i0.ɵɵclassProp("po-datepicker-calendar-mobile", ctx_r6.verifyMobile());
16651
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r6.date);
16652
+ i0.ɵɵproperty("p-max-date", ctx_r6.maxDate)("p-min-date", ctx_r6.minDate)("p-locale", ctx_r6.locale);
16653
+ } }
16654
+ function PoDatepickerComponent_ng_template_15_ng_container_0_Template(rf, ctx) { if (rf & 1) {
16655
+ i0.ɵɵelementContainer(0);
16656
+ } }
16657
+ function PoDatepickerComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
16658
+ i0.ɵɵtemplate(0, PoDatepickerComponent_ng_template_15_ng_container_0_Template, 1, 0, "ng-container", 22);
16659
+ } if (rf & 2) {
16660
+ i0.ɵɵnextContext();
16661
+ const _r7 = i0.ɵɵreference(14);
16662
+ i0.ɵɵproperty("ngTemplateOutlet", _r7);
16663
+ } }
16664
+ function PoDatepickerComponent_ng_template_17_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
16665
+ i0.ɵɵelementContainer(0);
16666
+ } }
16667
+ function PoDatepickerComponent_ng_template_17_ng_template_0_Template(rf, ctx) { if (rf & 1) {
16668
+ i0.ɵɵtemplate(0, PoDatepickerComponent_ng_template_17_ng_template_0_ng_container_0_Template, 1, 0, "ng-container", 22);
16669
+ } if (rf & 2) {
16670
+ i0.ɵɵnextContext(2);
16671
+ const _r7 = i0.ɵɵreference(14);
16672
+ i0.ɵɵproperty("ngTemplateOutlet", _r7);
16606
16673
  } }
16607
- function PoDatepickerComponent_div_11_Template(rf, ctx) { if (rf & 1) {
16608
- i0.ɵɵelement(0, "div", 15);
16674
+ function PoDatepickerComponent_ng_template_17_Template(rf, ctx) { if (rf & 1) {
16675
+ i0.ɵɵtemplate(0, PoDatepickerComponent_ng_template_17_ng_template_0_Template, 1, 1, "ng-template", 23);
16676
+ } if (rf & 2) {
16677
+ i0.ɵɵnextContext();
16678
+ const _r1 = i0.ɵɵreference(4);
16679
+ i0.ɵɵproperty("cdkConnectedOverlayOrigin", _r1)("cdkConnectedOverlayOpen", true);
16609
16680
  } }
16610
16681
  const poCalendarContentOffset$1 = 8;
16611
16682
  const poCalendarPositionDefault$1 = 'bottom-left';
@@ -16933,17 +17004,21 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
16933
17004
  window.removeEventListener('scroll', this.onScroll, true);
16934
17005
  }
16935
17006
  setDialogPickerStyleDisplay(value) {
16936
- this.dialogPicker.nativeElement.style.display = value;
17007
+ if (this.dialogPicker && this.dialogPicker.nativeElement) {
17008
+ this.dialogPicker.nativeElement.style.display = value;
17009
+ }
16937
17010
  }
16938
17011
  setCalendarPosition() {
16939
17012
  this.setDialogPickerStyleDisplay('block');
16940
- this.controlPosition.setElements(this.dialogPicker.nativeElement, poCalendarContentOffset$1, this.inputEl, ['top-left', 'top-right', 'bottom-left', 'bottom-right'], false, true);
16941
- this.controlPosition.adjustPosition(poCalendarPositionDefault$1);
17013
+ if (this.dialogPicker && this.dialogPicker.nativeElement) {
17014
+ this.controlPosition.setElements(this.dialogPicker.nativeElement, poCalendarContentOffset$1, this.inputEl, ['top-left', 'top-right', 'bottom-left', 'bottom-right'], false, true);
17015
+ this.controlPosition.adjustPosition(poCalendarPositionDefault$1);
17016
+ }
16942
17017
  }
16943
17018
  static ɵfac = function PoDatepickerComponent_Factory(t) { return new (t || PoDatepickerComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
16944
17019
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerComponent, selectors: [["po-datepicker"]], viewQuery: function PoDatepickerComponent_Query(rf, ctx) { if (rf & 1) {
16945
17020
  i0.ɵɵviewQuery(_c0$15, 7);
16946
- i0.ɵɵviewQuery(_c1$t, 7, ElementRef);
17021
+ i0.ɵɵviewQuery(_c1$t, 5, ElementRef);
16947
17022
  i0.ɵɵviewQuery(_c2$f, 5);
16948
17023
  i0.ɵɵviewQuery(_c3$a, 7, ElementRef);
16949
17024
  } if (rf & 2) {
@@ -16966,29 +17041,27 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
16966
17041
  multi: true
16967
17042
  },
16968
17043
  PoControlPositionService
16969
- ]), i0.ɵɵInheritDefinitionFeature], decls: 15, vars: 29, consts: [[3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content", "po-field-container-content-datepicker"], [1, "po-field-container-input"], ["type", "text", 1, "po-input", "po-datepicker", 3, "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "blur", "click"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], ["p-icon", "ICON_CALENDAR", "p-kind", "tertiary", 1, "po-datepicker-button", 3, "p-disabled", "keydown", "p-click"], ["iconDatepicker", ""], ["dialogPicker", ""], ["class", "po-datepicker-calendar-overlay", 4, "ngIf"], [3, "ngModel", "p-max-date", "p-min-date", "p-locale", "ngModelChange", "p-change"], ["calendar", ""], [3, "p-help", "p-disabled", "p-error-pattern"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"], [1, "po-datepicker-calendar-overlay"]], template: function PoDatepickerComponent_Template(rf, ctx) { if (rf & 1) {
16970
- i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2)(3, "input", 3, 4);
16971
- i0.ɵɵlistener("blur", function PoDatepickerComponent_Template_input_blur_3_listener($event) { return ctx.eventOnBlur($event); })("click", function PoDatepickerComponent_Template_input_click_3_listener($event) { return ctx.eventOnClick($event); });
17044
+ ]), i0.ɵɵInheritDefinitionFeature], decls: 20, vars: 23, consts: [[3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["outerContainer", ""], ["cdkOverlayOrigin", "", 1, "po-field-container-content", "po-field-container-content-datepicker"], ["trigger", "cdkOverlayOrigin"], [1, "po-field-container-input"], ["type", "text", 1, "po-input", "po-datepicker", 3, "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "blur", "click"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], ["p-icon", "ICON_CALENDAR", "p-kind", "tertiary", 1, "po-datepicker-button", 3, "p-disabled", "keydown", "p-click"], ["iconDatepicker", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], ["sharedCalendarContent", ""], ["dropdownDefault", ""], ["dropdownCDK", ""], [3, "p-help", "p-disabled", "p-error-pattern"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"], ["dialogPicker", ""], ["class", "po-datepicker-calendar-overlay", 4, "ngIf"], [3, "ngModel", "p-max-date", "p-min-date", "p-locale", "ngModelChange", "p-change"], ["calendar", ""], [1, "po-datepicker-calendar-overlay"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"]], template: function PoDatepickerComponent_Template(rf, ctx) { if (rf & 1) {
17045
+ i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", null, 1)(3, "div", 2, 3)(5, "div", 4)(6, "input", 5, 6);
17046
+ i0.ɵɵlistener("blur", function PoDatepickerComponent_Template_input_blur_6_listener($event) { return ctx.eventOnBlur($event); })("click", function PoDatepickerComponent_Template_input_click_6_listener($event) { return ctx.eventOnClick($event); });
16972
17047
  i0.ɵɵelementEnd();
16973
- i0.ɵɵelementStart(5, "div", 5);
16974
- i0.ɵɵtemplate(6, PoDatepickerComponent_po_clean_6_Template, 1, 1, "po-clean", 6);
16975
- i0.ɵɵelementEnd()();
16976
- i0.ɵɵelementStart(7, "po-button", 7, 8);
16977
- i0.ɵɵlistener("keydown", function PoDatepickerComponent_Template_po_button_keydown_7_listener($event) { return ctx.onKeyPress($event); })("p-click", function PoDatepickerComponent_Template_po_button_p_click_7_listener() { return ctx.togglePicker(); });
17048
+ i0.ɵɵelementStart(8, "div", 7);
17049
+ i0.ɵɵtemplate(9, PoDatepickerComponent_po_clean_9_Template, 1, 1, "po-clean", 8);
16978
17050
  i0.ɵɵelementEnd()();
16979
- i0.ɵɵelementStart(9, "div", null, 9);
16980
- i0.ɵɵtemplate(11, PoDatepickerComponent_div_11_Template, 1, 0, "div", 10);
16981
- i0.ɵɵelementStart(12, "po-calendar", 11, 12);
16982
- i0.ɵɵtwoWayListener("ngModelChange", function PoDatepickerComponent_Template_po_calendar_ngModelChange_12_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.date, $event) || (ctx.date = $event); return $event; });
16983
- i0.ɵɵlistener("p-change", function PoDatepickerComponent_Template_po_calendar_p_change_12_listener() { return ctx.dateSelected(); });
17051
+ i0.ɵɵelementStart(10, "po-button", 9, 10);
17052
+ i0.ɵɵlistener("keydown", function PoDatepickerComponent_Template_po_button_keydown_10_listener($event) { return ctx.onKeyPress($event); })("p-click", function PoDatepickerComponent_Template_po_button_p_click_10_listener() { return ctx.togglePicker(); });
16984
17053
  i0.ɵɵelementEnd()();
16985
- i0.ɵɵelement(14, "po-field-container-bottom", 13);
17054
+ i0.ɵɵtemplate(12, PoDatepickerComponent_ng_container_12_Template, 1, 0, "ng-container", 11)(13, PoDatepickerComponent_ng_template_13_Template, 5, 9, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor)(15, PoDatepickerComponent_ng_template_15_Template, 1, 1, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor)(17, PoDatepickerComponent_ng_template_17_Template, 1, 2, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
17055
+ i0.ɵɵelementEnd();
17056
+ i0.ɵɵelement(19, "po-field-container-bottom", 15);
16986
17057
  i0.ɵɵelementEnd();
16987
17058
  } if (rf & 2) {
16988
- const _r0 = i0.ɵɵreference(4);
17059
+ const _r2 = i0.ɵɵreference(7);
17060
+ const _r9 = i0.ɵɵreference(16);
17061
+ const _r11 = i0.ɵɵreference(18);
16989
17062
  i0.ɵɵproperty("p-disabled", ctx.disabled)("p-id", ctx.id)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
16990
- i0.ɵɵadvance(3);
16991
- i0.ɵɵclassProp("po-input-icon-right", ctx.clean && _r0.value);
17063
+ i0.ɵɵadvance(6);
17064
+ i0.ɵɵclassProp("po-input-icon-right", ctx.clean && _r2.value);
16992
17065
  i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("id", ctx.id)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required);
16993
17066
  i0.ɵɵattribute("name", ctx.name);
16994
17067
  i0.ɵɵadvance(3);
@@ -16996,16 +17069,10 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
16996
17069
  i0.ɵɵadvance();
16997
17070
  i0.ɵɵproperty("p-disabled", ctx.disabled || ctx.readonly);
16998
17071
  i0.ɵɵadvance(2);
16999
- i0.ɵɵclassProp("po-datepicker-popup-calendar", !ctx.verifyMobile());
17000
- i0.ɵɵadvance(2);
17001
- i0.ɵɵproperty("ngIf", ctx.verifyMobile());
17002
- i0.ɵɵadvance();
17003
- i0.ɵɵclassProp("po-datepicker-calendar-mobile", ctx.verifyMobile());
17004
- i0.ɵɵtwoWayProperty("ngModel", ctx.date);
17005
- i0.ɵɵproperty("p-max-date", ctx.maxDate)("p-min-date", ctx.minDate)("p-locale", ctx.locale);
17006
- i0.ɵɵadvance(2);
17072
+ i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", _r11)("ngIfElse", _r9);
17073
+ i0.ɵɵadvance(7);
17007
17074
  i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
17008
- } }, dependencies: [i1.NgIf, i2$1.NgControlStatus, i2$1.NgModel, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoCleanComponent, PoCalendarComponent, PoButtonComponent], encapsulation: 2, changeDetection: 0 });
17075
+ } }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2$1.NgControlStatus, i2$1.NgModel, PoFieldContainerBottomComponent, PoFieldContainerComponent, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoCleanComponent, PoCalendarComponent, PoButtonComponent], encapsulation: 2, changeDetection: 0 });
17009
17076
  }
17010
17077
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerComponent, [{
17011
17078
  type: Component,
@@ -17021,13 +17088,13 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
17021
17088
  multi: true
17022
17089
  },
17023
17090
  PoControlPositionService
17024
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content po-field-container-content-datepicker\">\n <div class=\"po-field-container-input\">\n <input\n #inp\n class=\"po-input po-datepicker\"\n [class.po-input-icon-right]=\"clean && inp.value\"\n type=\"text\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n />\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear()\"\n >\n </po-clean>\n </div>\n </div>\n <po-button\n #iconDatepicker\n class=\"po-datepicker-button\"\n p-icon=\"ICON_CALENDAR\"\n p-kind=\"tertiary\"\n [p-disabled]=\"disabled || readonly\"\n (keydown)=\"onKeyPress($event)\"\n (p-click)=\"togglePicker()\"\n >\n </po-button>\n </div>\n\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\">\n <div *ngIf=\"verifyMobile()\" class=\"po-datepicker-calendar-overlay\"></div>\n <po-calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n #calendar\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n >\n </po-calendar>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
17091
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div #outerContainer>\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-field-container-content-datepicker\"\n >\n <div class=\"po-field-container-input\">\n <input\n #inp\n class=\"po-input po-datepicker\"\n [class.po-input-icon-right]=\"clean && inp.value\"\n type=\"text\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n />\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear()\"\n >\n </po-clean>\n </div>\n </div>\n <po-button\n #iconDatepicker\n class=\"po-datepicker-button\"\n p-icon=\"ICON_CALENDAR\"\n p-kind=\"tertiary\"\n [p-disabled]=\"disabled || readonly\"\n (keydown)=\"onKeyPress($event)\"\n (p-click)=\"togglePicker()\"\n >\n </po-button>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #sharedCalendarContent>\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\">\n <div *ngIf=\"verifyMobile()\" class=\"po-datepicker-calendar-overlay\"></div>\n <po-calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n #calendar\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n ></po-calendar>\n </div>\n </ng-template>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n </ng-template>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
17025
17092
  }], () => [{ type: PoLanguageService }, { type: PoControlPositionService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { calendar: [{
17026
17093
  type: ViewChild,
17027
17094
  args: ['calendar', { static: true }]
17028
17095
  }], dialogPicker: [{
17029
17096
  type: ViewChild,
17030
- args: ['dialogPicker', { read: ElementRef, static: true }]
17097
+ args: ['dialogPicker', { read: ElementRef, static: false }]
17031
17098
  }], iconDatepicker: [{
17032
17099
  type: ViewChild,
17033
17100
  args: ['iconDatepicker']
@@ -17057,17 +17124,37 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
17057
17124
  class PoDatepickerModule {
17058
17125
  static ɵfac = function PoDatepickerModule_Factory(t) { return new (t || PoDatepickerModule)(); };
17059
17126
  static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoDatepickerModule });
17060
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, PoFieldContainerModule, PoCleanModule, PoCalendarModule, PoButtonModule] });
17127
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
17128
+ FormsModule,
17129
+ PoFieldContainerModule,
17130
+ OverlayModule,
17131
+ PoCleanModule,
17132
+ PoCalendarModule,
17133
+ PoButtonModule] });
17061
17134
  }
17062
17135
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerModule, [{
17063
17136
  type: NgModule,
17064
17137
  args: [{
17065
- imports: [CommonModule, FormsModule, PoFieldContainerModule, PoCleanModule, PoCalendarModule, PoButtonModule],
17138
+ imports: [
17139
+ CommonModule,
17140
+ FormsModule,
17141
+ PoFieldContainerModule,
17142
+ OverlayModule,
17143
+ PoCleanModule,
17144
+ PoCalendarModule,
17145
+ PoButtonModule
17146
+ ],
17066
17147
  exports: [PoDatepickerComponent],
17067
17148
  declarations: [PoDatepickerComponent]
17068
17149
  }]
17069
17150
  }], null, null); })();
17070
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoDatepickerModule, { declarations: [PoDatepickerComponent], imports: [CommonModule, FormsModule, PoFieldContainerModule, PoCleanModule, PoCalendarModule, PoButtonModule], exports: [PoDatepickerComponent] }); })();
17151
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoDatepickerModule, { declarations: [PoDatepickerComponent], imports: [CommonModule,
17152
+ FormsModule,
17153
+ PoFieldContainerModule,
17154
+ OverlayModule,
17155
+ PoCleanModule,
17156
+ PoCalendarModule,
17157
+ PoButtonModule], exports: [PoDatepickerComponent] }); })();
17071
17158
 
17072
17159
  const poModalLiterals = {
17073
17160
  en: {
@@ -28578,7 +28665,7 @@ class PoComboComponent extends PoComboBaseComponent {
28578
28665
  i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", _r10)("ngIfElse", _r8);
28579
28666
  i0.ɵɵadvance(5);
28580
28667
  i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled);
28581
- } }, dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i5$1.CdkConnectedOverlay, i5$1.CdkOverlayOrigin, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
28668
+ } }, dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
28582
28669
  }
28583
28670
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboComponent, [{
28584
28671
  type: Component,
@@ -42102,7 +42189,7 @@ class PoFieldModule {
42102
42189
  PoSwitchModule,
42103
42190
  PoTagModule] }); })();
42104
42191
  i0.ɵɵsetComponentScope(PoLookupModalComponent, function () { return [i1.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.NgModel, PoDisclaimerGroupComponent, PoFieldContainerComponent, PoModalComponent, PoTableComponent, PoIconComponent]; }, []);
42105
- i0.ɵɵsetComponentScope(PoMultiselectComponent, function () { return [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i5$1.CdkConnectedOverlay, i5$1.CdkOverlayOrigin, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoTagComponent, PoMultiselectDropdownComponent]; }, []);
42192
+ i0.ɵɵsetComponentScope(PoMultiselectComponent, function () { return [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoTagComponent, PoMultiselectDropdownComponent]; }, []);
42106
42193
 
42107
42194
  /**
42108
42195
  * @usedBy PoInfoComponent