@po-ui/ng-components 19.25.0 → 19.27.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.
- package/fesm2022/po-ui-ng-components.mjs +306 -69
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +33 -2
- package/lib/components/po-chart/po-chart.component.d.ts +3 -0
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +1 -0
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -1
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +6 -1
- package/lib/components/po-listbox/po-listbox.component.d.ts +2 -1
- package/lib/components/po-navbar/interfaces/po-navbar-icon-action.interface.d.ts +2 -0
- package/lib/components/po-navbar/interfaces/po-navbar-item.interface.d.ts +2 -0
- package/lib/components/po-navbar/interfaces/po-navbar-literals.interface.d.ts +2 -0
- package/lib/components/po-navbar/po-navbar-base.component.d.ts +12 -0
- package/lib/components/po-navbar/po-navbar.component.d.ts +2 -0
- package/lib/components/po-navbar/po-navbar.module.d.ts +7 -2
- package/lib/components/po-search/literals/po-search-literals-default.d.ts +6 -0
- package/lib/components/po-search/literals/po-search-literals.interface.d.ts +8 -0
- package/lib/components/po-search/po-search-base.component.d.ts +31 -2
- package/lib/components/po-search/po-search.component.d.ts +16 -5
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +3 -1
- package/package.json +4 -4
- package/po-ui-ng-components-19.27.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-19.25.0.tgz +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, InjectionToken, TemplateRef, Optional, Inject, Injectable, EventEmitter, Output, ElementRef, HostListener, inject, ViewChild, ChangeDetectorRef, ViewChildren, ContentChildren, HostBinding, forwardRef, Renderer2, IterableDiffers, input, ViewContainerRef, ContentChild, Pipe, Injector, provideAppInitializer } from '@angular/core';
|
|
2
|
+
import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, InjectionToken, TemplateRef, Optional, Inject, Injectable, EventEmitter, Output, ElementRef, SecurityContext, HostListener, inject, ViewChild, ChangeDetectorRef, ViewChildren, ContentChildren, HostBinding, forwardRef, Renderer2, IterableDiffers, input, ViewContainerRef, ContentChild, Pipe, Injector, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, CurrencyPipe, DecimalPipe, DOCUMENT, TitleCasePipe, DatePipe, NgOptimizedImage, Location } from '@angular/common';
|
|
5
|
+
import * as i2 from '@angular/platform-browser';
|
|
6
|
+
import { DomSanitizer, Title } from '@angular/platform-browser';
|
|
5
7
|
import { trigger, transition, style, animate, group, query, animateChild, state, AnimationBuilder, keyframes } from '@angular/animations';
|
|
6
8
|
import { Subject, filter, fromEvent, debounceTime, Subscription, switchMap, isObservable, of, ReplaySubject, timer, throwError, map as map$1, catchError as catchError$1, Observable, startWith, delay as delay$1 } from 'rxjs';
|
|
7
9
|
import * as i1$1 from '@angular/router';
|
|
8
10
|
import { Router, RouterModule, NavigationEnd, NavigationCancel } from '@angular/router';
|
|
9
|
-
import * as i2 from '@angular/cdk/listbox';
|
|
11
|
+
import * as i2$1 from '@angular/cdk/listbox';
|
|
10
12
|
import { CdkListboxModule } from '@angular/cdk/listbox';
|
|
11
|
-
import { DomSanitizer, Title } from '@angular/platform-browser';
|
|
12
13
|
import * as i1$2 from '@angular/forms';
|
|
13
14
|
import { NG_VALUE_ACCESSOR, FormsModule, NG_VALIDATORS, Validators, NgControl, NgForm, ControlContainer } from '@angular/forms';
|
|
14
15
|
import * as i1$3 from '@angular/common/http';
|
|
@@ -19,7 +20,7 @@ import { GraphicComponent, BrushComponent, DataZoomComponent, GridComponent, Leg
|
|
|
19
20
|
import * as echarts from 'echarts/core';
|
|
20
21
|
import { use } from 'echarts/core';
|
|
21
22
|
import { CanvasRenderer, SVGRenderer } from 'echarts/renderers';
|
|
22
|
-
import * as i2$
|
|
23
|
+
import * as i2$2 from '@angular/cdk/overlay';
|
|
23
24
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
24
25
|
import * as i5 from '@angular/cdk/scrolling';
|
|
25
26
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
@@ -2493,6 +2494,7 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2493
2494
|
elementRef;
|
|
2494
2495
|
renderer;
|
|
2495
2496
|
poControlPosition;
|
|
2497
|
+
sanitizer;
|
|
2496
2498
|
arrowDirection;
|
|
2497
2499
|
divArrow;
|
|
2498
2500
|
divContent;
|
|
@@ -2501,11 +2503,12 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2501
2503
|
textContent;
|
|
2502
2504
|
tooltipOffset = 8;
|
|
2503
2505
|
eventListenerFunction;
|
|
2504
|
-
constructor(elementRef, renderer, poControlPosition) {
|
|
2506
|
+
constructor(elementRef, renderer, poControlPosition, sanitizer) {
|
|
2505
2507
|
super();
|
|
2506
2508
|
this.elementRef = elementRef;
|
|
2507
2509
|
this.renderer = renderer;
|
|
2508
2510
|
this.poControlPosition = poControlPosition;
|
|
2511
|
+
this.sanitizer = sanitizer;
|
|
2509
2512
|
}
|
|
2510
2513
|
ngOnDestroy() {
|
|
2511
2514
|
this.hideTooltip();
|
|
@@ -2597,7 +2600,8 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2597
2600
|
this.textContent = this.renderer.createText(this.tooltip);
|
|
2598
2601
|
if (this.innerHtml) {
|
|
2599
2602
|
this.textContent = this.renderer.createText('');
|
|
2600
|
-
this.
|
|
2603
|
+
const securityContent = this.sanitizer.sanitize(SecurityContext.HTML, this.tooltip) || '';
|
|
2604
|
+
this.renderer.setProperty(this.divContent, 'innerHTML', securityContent);
|
|
2601
2605
|
}
|
|
2602
2606
|
this.renderer.appendChild(this.divContent, this.textContent);
|
|
2603
2607
|
this.renderer.appendChild(this.tooltipContent, this.divArrow);
|
|
@@ -2646,7 +2650,9 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2646
2650
|
this.textContent = this.renderer.createText(this.tooltip);
|
|
2647
2651
|
this.renderer.appendChild(this.divContent, this.textContent);
|
|
2648
2652
|
if (this.innerHtml) {
|
|
2649
|
-
this.renderer.
|
|
2653
|
+
this.textContent = this.renderer.createText('');
|
|
2654
|
+
const securityContent = this.sanitizer.sanitize(SecurityContext.HTML, this.tooltip) || '';
|
|
2655
|
+
this.renderer.setProperty(this.divContent, 'innerHTML', securityContent);
|
|
2650
2656
|
}
|
|
2651
2657
|
}
|
|
2652
2658
|
}
|
|
@@ -2662,7 +2668,7 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2662
2668
|
this.renderer.setAttribute(this.elementRef.nativeElement.getElementsByTagName(targetElement)[0], 'aria-label', nativeTextContent + ' ' + this.tooltip);
|
|
2663
2669
|
}
|
|
2664
2670
|
}
|
|
2665
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: PoTooltipControlPositionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2671
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: PoTooltipControlPositionService }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2666
2672
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: PoTooltipDirective, isStandalone: false, selector: "[p-tooltip]", host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "onMouseClick()", "focusout": "onFocusOut()", "focusin": "onFocusIn()", "keydown": "onKeyDown($event)" } }, providers: [PoTooltipControlPositionService], usesInheritance: true, ngImport: i0 });
|
|
2667
2673
|
}
|
|
2668
2674
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoTooltipDirective, decorators: [{
|
|
@@ -2672,7 +2678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
2672
2678
|
providers: [PoTooltipControlPositionService],
|
|
2673
2679
|
standalone: false
|
|
2674
2680
|
}]
|
|
2675
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: PoTooltipControlPositionService }], propDecorators: { onMouseEnter: [{
|
|
2681
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: PoTooltipControlPositionService }, { type: i2.DomSanitizer }], propDecorators: { onMouseEnter: [{
|
|
2676
2682
|
type: HostListener,
|
|
2677
2683
|
args: ['mouseenter']
|
|
2678
2684
|
}], onMouseLeave: [{
|
|
@@ -4725,17 +4731,27 @@ class PoListBoxBaseComponent {
|
|
|
4725
4731
|
compareCache = false;
|
|
4726
4732
|
comboService;
|
|
4727
4733
|
containerWidth;
|
|
4734
|
+
// Define os nomes das propriedades do objeto que serão exibidos como rótulos (labels) no `listbox`
|
|
4735
|
+
keysLabel = [];
|
|
4736
|
+
// Habilita a ação no rodapé do list box
|
|
4737
|
+
footerActionListbox = false;
|
|
4738
|
+
// Cria um item no listbox que será utilizado como um "placeholder"
|
|
4739
|
+
placeholderListbox;
|
|
4740
|
+
// Define se haverá ou não um separador entre todos os itens do listbox
|
|
4741
|
+
separator = false;
|
|
4728
4742
|
// Evento disparado quando uma tab é ativada
|
|
4729
4743
|
activatedTab = new EventEmitter();
|
|
4730
4744
|
// Evento disparado no click de uma aba do tabs
|
|
4731
4745
|
clickTab = new EventEmitter();
|
|
4732
4746
|
changeStateTabs = new EventEmitter();
|
|
4733
4747
|
clickItem = new EventEmitter();
|
|
4748
|
+
// Evento disparado ao clicar na ação do rodapé do listbox
|
|
4749
|
+
footerActionListboxEvent = new EventEmitter();
|
|
4734
4750
|
constructor(languageService) {
|
|
4735
4751
|
this.language = languageService.getShortLanguage();
|
|
4736
4752
|
}
|
|
4737
4753
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoListBoxBaseComponent, deps: [{ token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4738
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.7", type: PoListBoxBaseComponent, isStandalone: true, inputs: { visible: ["p-visible", "visible", convertToBoolean], type: ["p-type", "type"], items: ["p-items", "items"], literals: ["p-literals", "literals"], isTabs: ["p-is-tabs", "isTabs", convertToBoolean], param: ["p-param", "param"], checkboxAllValue: ["p-checkboxAllValue", "checkboxAllValue"], selectedOptions: ["p-selected-options", "selectedOptions"], selectedOption: ["p-selected-option", "selectedOption"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], literalSearch: ["p-literal-search", "literalSearch"], fieldValueSearch: ["p-field-value-search", "fieldValueSearch"], hideSearch: ["p-hide-search", "hideSearch"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], multiselectTemplate: ["p-multiselect-template", "multiselectTemplate"], template: ["p-template", "template"], placeholderSearch: ["p-placeholder-search", "placeholderSearch"], searchValue: ["p-search-value", "searchValue"], isServerSearching: ["p-is-searching", "isServerSearching", convertToBoolean], infiniteLoading: ["p-infinite-loading", "infiniteLoading", convertToBoolean], infiniteScroll: ["p-infinite-scroll", "infiniteScroll", convertToBoolean], cache: ["p-cache", "cache", convertToBoolean], infiniteScrollDistance: ["p-infinite-scroll-distance", "infiniteScrollDistance"], filterMode: ["p-filter-mode", "filterMode"], isFiltering: ["p-filtering", "isFiltering"], shouldMarkLetters: ["p-should-mark-letter", "shouldMarkLetters"], size: ["p-size", "size"], compareCache: ["p-compare-cache", "compareCache"], comboService: ["p-combo-service", "comboService"], containerWidth: ["p-container-width", "containerWidth"] }, outputs: { selectItem: "p-select-item", closeEvent: "p-close", change: "p-change", selectCombo: "p-selectcombo-item", changeAll: "p-change-all", UpdateInfiniteScroll: "p-update-infinite-scroll", changeSearch: "p-change-search", activatedTab: "p-activated-tabs", clickTab: "p-click-tabs", changeStateTabs: "p-change-state-tabs", clickItem: "p-click-item" }, ngImport: i0 });
|
|
4754
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.7", type: PoListBoxBaseComponent, isStandalone: true, inputs: { visible: ["p-visible", "visible", convertToBoolean], type: ["p-type", "type"], items: ["p-items", "items"], literals: ["p-literals", "literals"], isTabs: ["p-is-tabs", "isTabs", convertToBoolean], param: ["p-param", "param"], checkboxAllValue: ["p-checkboxAllValue", "checkboxAllValue"], selectedOptions: ["p-selected-options", "selectedOptions"], selectedOption: ["p-selected-option", "selectedOption"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], literalSearch: ["p-literal-search", "literalSearch"], fieldValueSearch: ["p-field-value-search", "fieldValueSearch"], hideSearch: ["p-hide-search", "hideSearch"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], multiselectTemplate: ["p-multiselect-template", "multiselectTemplate"], template: ["p-template", "template"], placeholderSearch: ["p-placeholder-search", "placeholderSearch"], searchValue: ["p-search-value", "searchValue"], isServerSearching: ["p-is-searching", "isServerSearching", convertToBoolean], infiniteLoading: ["p-infinite-loading", "infiniteLoading", convertToBoolean], infiniteScroll: ["p-infinite-scroll", "infiniteScroll", convertToBoolean], cache: ["p-cache", "cache", convertToBoolean], infiniteScrollDistance: ["p-infinite-scroll-distance", "infiniteScrollDistance"], filterMode: ["p-filter-mode", "filterMode"], isFiltering: ["p-filtering", "isFiltering"], shouldMarkLetters: ["p-should-mark-letter", "shouldMarkLetters"], size: ["p-size", "size"], compareCache: ["p-compare-cache", "compareCache"], comboService: ["p-combo-service", "comboService"], containerWidth: ["p-container-width", "containerWidth"], keysLabel: ["p-keys-label", "keysLabel"], footerActionListbox: ["p-footer-action-listbox", "footerActionListbox"], placeholderListbox: ["p-placeholder-listbox", "placeholderListbox"], separator: ["p-separator", "separator"] }, outputs: { selectItem: "p-select-item", closeEvent: "p-close", change: "p-change", selectCombo: "p-selectcombo-item", changeAll: "p-change-all", UpdateInfiniteScroll: "p-update-infinite-scroll", changeSearch: "p-change-search", activatedTab: "p-activated-tabs", clickTab: "p-click-tabs", changeStateTabs: "p-change-state-tabs", clickItem: "p-click-item", footerActionListboxEvent: "p-footer-action-listbox-event" }, ngImport: i0 });
|
|
4739
4755
|
}
|
|
4740
4756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoListBoxBaseComponent, decorators: [{
|
|
4741
4757
|
type: Directive
|
|
@@ -4853,6 +4869,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
4853
4869
|
}], containerWidth: [{
|
|
4854
4870
|
type: Input,
|
|
4855
4871
|
args: ['p-container-width']
|
|
4872
|
+
}], keysLabel: [{
|
|
4873
|
+
type: Input,
|
|
4874
|
+
args: ['p-keys-label']
|
|
4875
|
+
}], footerActionListbox: [{
|
|
4876
|
+
type: Input,
|
|
4877
|
+
args: ['p-footer-action-listbox']
|
|
4878
|
+
}], placeholderListbox: [{
|
|
4879
|
+
type: Input,
|
|
4880
|
+
args: ['p-placeholder-listbox']
|
|
4881
|
+
}], separator: [{
|
|
4882
|
+
type: Input,
|
|
4883
|
+
args: ['p-separator']
|
|
4856
4884
|
}], activatedTab: [{
|
|
4857
4885
|
type: Output,
|
|
4858
4886
|
args: ['p-activated-tabs']
|
|
@@ -4865,6 +4893,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
4865
4893
|
}], clickItem: [{
|
|
4866
4894
|
type: Output,
|
|
4867
4895
|
args: ['p-click-item']
|
|
4896
|
+
}], footerActionListboxEvent: [{
|
|
4897
|
+
type: Output,
|
|
4898
|
+
args: ['p-footer-action-listbox-event']
|
|
4868
4899
|
}] } });
|
|
4869
4900
|
|
|
4870
4901
|
const poLoadingOverlayLiteralsDefault = {
|
|
@@ -5375,13 +5406,15 @@ class PoItemListBaseComponent {
|
|
|
5375
5406
|
get activeTabs() {
|
|
5376
5407
|
return this._activeTabs;
|
|
5377
5408
|
}
|
|
5409
|
+
// Define os nomes das propriedades do objeto que serão exibidos como rótulos (labels)
|
|
5410
|
+
keysLabel = [];
|
|
5378
5411
|
emitActiveTabs(tab) {
|
|
5379
5412
|
if (tab?.active) {
|
|
5380
5413
|
this.activatedTab.emit(tab);
|
|
5381
5414
|
}
|
|
5382
5415
|
}
|
|
5383
5416
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoItemListBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5384
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.7", type: PoItemListBaseComponent, isStandalone: true, inputs: { type: ["p-type", "type"], visible: ["p-visible", "visible"], item: ["p-item", "item"], label: ["p-label", "label"], size: ["p-size", "size"], value: ["p-value", "value"], danger: ["p-danger", "danger", convertToBoolean], disabled: ["p-disabled", "disabled"], selected: ["p-selected", "selected", convertToBoolean], separator: ["p-separator", "separator", convertToBoolean], icon: ["p-icon", "icon"], checkboxValue: ["p-checkbox-value", "checkboxValue"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], template: ["p-template", "template"], templateContext: ["p-template-context", "templateContext"], searchValue: ["p-search-value", "searchValue"], filterMode: ["p-filter-mode", "filterMode"], isFiltering: ["p-filtering", "isFiltering"], shouldMarkLetters: ["p-should-mark-letter", "shouldMarkLetters"], compareCache: ["p-compare-cache", "compareCache"], comboService: ["p-combo-service", "comboService"], isTabs: ["p-is-tabs", "isTabs"], tabHide: ["p-tab-hide", "tabHide"], activeTabs: ["p-active-tabs", "activeTabs"] }, outputs: { clickItem: "p-click-item", checkboxItem: "p-selectcheckbox-item", comboItem: "p-selectcombo-item", tabsItem: "p-emit-item-tabs", activatedTab: "p-activated-tabs" }, host: { properties: { "attr.p-type": "this.type" } }, ngImport: i0 });
|
|
5417
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.7", type: PoItemListBaseComponent, isStandalone: true, inputs: { type: ["p-type", "type"], visible: ["p-visible", "visible"], item: ["p-item", "item"], label: ["p-label", "label"], size: ["p-size", "size"], value: ["p-value", "value"], danger: ["p-danger", "danger", convertToBoolean], disabled: ["p-disabled", "disabled"], selected: ["p-selected", "selected", convertToBoolean], separator: ["p-separator", "separator", convertToBoolean], icon: ["p-icon", "icon"], checkboxValue: ["p-checkbox-value", "checkboxValue"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], template: ["p-template", "template"], templateContext: ["p-template-context", "templateContext"], searchValue: ["p-search-value", "searchValue"], filterMode: ["p-filter-mode", "filterMode"], isFiltering: ["p-filtering", "isFiltering"], shouldMarkLetters: ["p-should-mark-letter", "shouldMarkLetters"], compareCache: ["p-compare-cache", "compareCache"], comboService: ["p-combo-service", "comboService"], isTabs: ["p-is-tabs", "isTabs"], tabHide: ["p-tab-hide", "tabHide"], activeTabs: ["p-active-tabs", "activeTabs"], keysLabel: ["p-keys-label", "keysLabel"] }, outputs: { clickItem: "p-click-item", checkboxItem: "p-selectcheckbox-item", comboItem: "p-selectcombo-item", tabsItem: "p-emit-item-tabs", activatedTab: "p-activated-tabs" }, host: { properties: { "attr.p-type": "this.type" } }, ngImport: i0 });
|
|
5385
5418
|
}
|
|
5386
5419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoItemListBaseComponent, decorators: [{
|
|
5387
5420
|
type: Directive
|
|
@@ -5478,6 +5511,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
5478
5511
|
}], activeTabs: [{
|
|
5479
5512
|
type: Input,
|
|
5480
5513
|
args: ['p-active-tabs']
|
|
5514
|
+
}], keysLabel: [{
|
|
5515
|
+
type: Input,
|
|
5516
|
+
args: ['p-keys-label']
|
|
5481
5517
|
}] } });
|
|
5482
5518
|
|
|
5483
5519
|
/**
|
|
@@ -6298,11 +6334,11 @@ class PoItemListComponent extends PoItemListBaseComponent {
|
|
|
6298
6334
|
return value.replace(/</g, '<').replace(/>/g, '>');
|
|
6299
6335
|
}
|
|
6300
6336
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoItemListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6301
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoItemListComponent, isStandalone: false, selector: "po-item-list", viewQueries: [{ propertyName: "itemList", first: true, predicate: ["itemList"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container (keydown)=\"onCheckboxItemEmit($event)\">\n @switch (type) {\n @default {\n <div\n #itemList\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__disabled]=\"disabled || !visible\"\n [class.po-item-list__selected]=\"(selected || activeTabs) && !disabled\"\n [class.po-item-list__hidden]=\"tabHide\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled || !visible\"\n [attr.aria-label]=\"label\"\n [class.po-item-list__danger]=\"danger\"\n class=\"po-item-list po-item-list__action\"\n >\n @if (icon) {\n <po-icon class=\"po-popup-icon-item\" [p-icon]=\"icon\"></po-icon>\n }\n <span class=\"po-item-list-label\">{{ label }}</span>\n </div>\n }\n @case ('option') {\n <div\n #itemList\n class=\"po-item-list po-item-list__option\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onComboItem(item, $event)\"\n >\n @if (!template) {\n <span class=\"po-item-list-label\" [innerHTML]=\"getLabelFormatted(label)\"></span>\n }\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n @case ('check') {\n <div\n class=\"po-item-list po-item-list__check\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list__disabled]=\"disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onCheckboxItem()\"\n (keydown)=\"onCheckboxItemEmit($event)\"\n (keyup)=\"onCheckboxItemEmit($event)\"\n >\n <po-checkbox\n [p-disabled-tabindex]=\"true\"\n [p-checkboxValue]=\"checkboxValue === null ? 'mixed' : checkboxValue\"\n [p-disabled]=\"disabled\"\n [p-size]=\"size\"\n ></po-checkbox>\n @if (!template) {\n <span class=\"po-item-list__label\">{{ label }}</span>\n }\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n }\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoCheckboxComponent, selector: "po-checkbox" }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }] });
|
|
6337
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoItemListComponent, isStandalone: false, selector: "po-item-list", viewQueries: [{ propertyName: "itemList", first: true, predicate: ["itemList"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container (keydown)=\"onCheckboxItemEmit($event)\">\n @switch (type) {\n @default {\n <div\n #itemList\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__disabled]=\"disabled || !visible\"\n [class.po-item-list__selected]=\"(selected || activeTabs) && !disabled\"\n [class.po-item-list__hidden]=\"tabHide\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled || !visible\"\n [attr.aria-label]=\"label\"\n [class.po-item-list__danger]=\"danger\"\n class=\"po-item-list po-item-list__action\"\n >\n @if (icon) {\n <po-icon class=\"po-popup-icon-item\" [p-icon]=\"icon\"></po-icon>\n }\n <span class=\"po-item-list-label\">{{ label }}</span>\n </div>\n }\n @case ('option') {\n <div\n #itemList\n class=\"po-item-list po-item-list__option\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onComboItem(item, $event)\"\n >\n @if (!template) {\n @switch (keysLabel.length) {\n @case (0) {\n <span class=\"po-item-list-label\" [innerHTML]=\"getLabelFormatted(label)\"></span>\n }\n\n @case (1) {\n <span class=\"po-item-list-label\">{{ item[keysLabel[0]] }}</span>\n }\n\n @case (2) {\n <div class=\"po-item-list-label po-item-list-label-group\">\n <span class=\"po-item-list-label\">{{ item[keysLabel[0]] }}</span>\n <span class=\"po-item-list-sublabel\">{{ item[keysLabel[1]] }}</span>\n </div>\n }\n\n @default {\n <div class=\"po-item-list-label po-item-list-label-group\">\n <span class=\"po-item-list-label\">{{ item[keysLabel[0]] }}</span>\n <span class=\"po-item-list-sublabel\">{{ item[keysLabel[1]] }} - {{ item[keysLabel[2]] }}</span>\n </div>\n }\n }\n }\n\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n @case ('check') {\n <div\n class=\"po-item-list po-item-list__check\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list__disabled]=\"disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onCheckboxItem()\"\n (keydown)=\"onCheckboxItemEmit($event)\"\n (keyup)=\"onCheckboxItemEmit($event)\"\n >\n <po-checkbox\n [p-disabled-tabindex]=\"true\"\n [p-checkboxValue]=\"checkboxValue === null ? 'mixed' : checkboxValue\"\n [p-disabled]=\"disabled\"\n [p-size]=\"size\"\n ></po-checkbox>\n @if (!template) {\n <span class=\"po-item-list__label\">{{ label }}</span>\n }\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n }\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoCheckboxComponent, selector: "po-checkbox" }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }] });
|
|
6302
6338
|
}
|
|
6303
6339
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoItemListComponent, decorators: [{
|
|
6304
6340
|
type: Component,
|
|
6305
|
-
args: [{ selector: 'po-item-list', standalone: false, template: "<ng-container (keydown)=\"onCheckboxItemEmit($event)\">\n @switch (type) {\n @default {\n <div\n #itemList\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__disabled]=\"disabled || !visible\"\n [class.po-item-list__selected]=\"(selected || activeTabs) && !disabled\"\n [class.po-item-list__hidden]=\"tabHide\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled || !visible\"\n [attr.aria-label]=\"label\"\n [class.po-item-list__danger]=\"danger\"\n class=\"po-item-list po-item-list__action\"\n >\n @if (icon) {\n <po-icon class=\"po-popup-icon-item\" [p-icon]=\"icon\"></po-icon>\n }\n <span class=\"po-item-list-label\">{{ label }}</span>\n </div>\n }\n @case ('option') {\n <div\n #itemList\n class=\"po-item-list po-item-list__option\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onComboItem(item, $event)\"\n >\n @if (!template) {\n <span class=\"po-item-list-label\" [innerHTML]=\"getLabelFormatted(label)\"></span>\n }\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n @case ('check') {\n <div\n class=\"po-item-list po-item-list__check\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list__disabled]=\"disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onCheckboxItem()\"\n (keydown)=\"onCheckboxItemEmit($event)\"\n (keyup)=\"onCheckboxItemEmit($event)\"\n >\n <po-checkbox\n [p-disabled-tabindex]=\"true\"\n [p-checkboxValue]=\"checkboxValue === null ? 'mixed' : checkboxValue\"\n [p-disabled]=\"disabled\"\n [p-size]=\"size\"\n ></po-checkbox>\n @if (!template) {\n <span class=\"po-item-list__label\">{{ label }}</span>\n }\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n }\n</ng-container>\n" }]
|
|
6341
|
+
args: [{ selector: 'po-item-list', standalone: false, template: "<ng-container (keydown)=\"onCheckboxItemEmit($event)\">\n @switch (type) {\n @default {\n <div\n #itemList\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__disabled]=\"disabled || !visible\"\n [class.po-item-list__selected]=\"(selected || activeTabs) && !disabled\"\n [class.po-item-list__hidden]=\"tabHide\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled || !visible\"\n [attr.aria-label]=\"label\"\n [class.po-item-list__danger]=\"danger\"\n class=\"po-item-list po-item-list__action\"\n >\n @if (icon) {\n <po-icon class=\"po-popup-icon-item\" [p-icon]=\"icon\"></po-icon>\n }\n <span class=\"po-item-list-label\">{{ label }}</span>\n </div>\n }\n @case ('option') {\n <div\n #itemList\n class=\"po-item-list po-item-list__option\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onComboItem(item, $event)\"\n >\n @if (!template) {\n @switch (keysLabel.length) {\n @case (0) {\n <span class=\"po-item-list-label\" [innerHTML]=\"getLabelFormatted(label)\"></span>\n }\n\n @case (1) {\n <span class=\"po-item-list-label\">{{ item[keysLabel[0]] }}</span>\n }\n\n @case (2) {\n <div class=\"po-item-list-label po-item-list-label-group\">\n <span class=\"po-item-list-label\">{{ item[keysLabel[0]] }}</span>\n <span class=\"po-item-list-sublabel\">{{ item[keysLabel[1]] }}</span>\n </div>\n }\n\n @default {\n <div class=\"po-item-list-label po-item-list-label-group\">\n <span class=\"po-item-list-label\">{{ item[keysLabel[0]] }}</span>\n <span class=\"po-item-list-sublabel\">{{ item[keysLabel[1]] }} - {{ item[keysLabel[2]] }}</span>\n </div>\n }\n }\n }\n\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n @case ('check') {\n <div\n class=\"po-item-list po-item-list__check\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list__disabled]=\"disabled\"\n [class.po-item-list-aa]=\"size === 'small'\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onCheckboxItem()\"\n (keydown)=\"onCheckboxItemEmit($event)\"\n (keyup)=\"onCheckboxItemEmit($event)\"\n >\n <po-checkbox\n [p-disabled-tabindex]=\"true\"\n [p-checkboxValue]=\"checkboxValue === null ? 'mixed' : checkboxValue\"\n [p-disabled]=\"disabled\"\n [p-size]=\"size\"\n ></po-checkbox>\n @if (!template) {\n <span class=\"po-item-list__label\">{{ label }}</span>\n }\n <ng-template\n [ngTemplateOutlet]=\"template?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: templateContext }\"\n >\n </ng-template>\n </div>\n }\n }\n</ng-container>\n" }]
|
|
6306
6342
|
}], propDecorators: { itemList: [{
|
|
6307
6343
|
type: ViewChild,
|
|
6308
6344
|
args: ['itemList', { static: true }]
|
|
@@ -6469,6 +6505,16 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6469
6505
|
onKeyDown(itemListAction, event) {
|
|
6470
6506
|
event.preventDefault();
|
|
6471
6507
|
if ((event && event.code === 'Enter') || event.code === 'Space') {
|
|
6508
|
+
if (itemListAction.type === 'footerAction') {
|
|
6509
|
+
this.handleFooterActionListbox();
|
|
6510
|
+
return;
|
|
6511
|
+
}
|
|
6512
|
+
// Cenário em que o `Po-Search` (com listbox) tem nos items ação ou url
|
|
6513
|
+
if (this.type === 'option' && (itemListAction?.action || itemListAction?.url)) {
|
|
6514
|
+
this.onSelectItem(itemListAction);
|
|
6515
|
+
this.optionClicked(itemListAction);
|
|
6516
|
+
return;
|
|
6517
|
+
}
|
|
6472
6518
|
switch (this.type) {
|
|
6473
6519
|
case 'check':
|
|
6474
6520
|
this.onSelectCheckBoxItem(itemListAction);
|
|
@@ -6560,6 +6606,9 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6560
6606
|
if (this.cache || this.infiniteScroll) {
|
|
6561
6607
|
return this.items.length;
|
|
6562
6608
|
}
|
|
6609
|
+
else if (!this.items.length && this.footerActionListbox) {
|
|
6610
|
+
return true;
|
|
6611
|
+
}
|
|
6563
6612
|
else {
|
|
6564
6613
|
return !this.isServerSearching && this.items.length;
|
|
6565
6614
|
}
|
|
@@ -6617,12 +6666,16 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6617
6666
|
}
|
|
6618
6667
|
}
|
|
6619
6668
|
}
|
|
6669
|
+
handleFooterActionListbox() {
|
|
6670
|
+
this.footerActionListboxEvent.emit();
|
|
6671
|
+
this.closeEvent.emit();
|
|
6672
|
+
}
|
|
6620
6673
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoListBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6621
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoListBoxComponent, isStandalone: false, selector: "po-listbox", viewQueries: [{ propertyName: "listbox", first: true, predicate: ["listbox"], descendants: true, static: true }, { propertyName: "listboxItemList", first: true, predicate: ["listboxItemList"], descendants: true }, { propertyName: "searchElement", first: true, predicate: ["searchElement"], descendants: true }, { propertyName: "popupHeaderContainer", first: true, predicate: ["popupHeaderContainer"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n #listbox\n class=\"po-listbox\"\n [class.po-listbox-check]=\"type === 'check' || type === 'option'\"\n [attr.data-type]=\"type\"\n [hidden]=\"visible\"\n>\n <div #popupHeaderContainer>\n <ng-content select=\"[p-popup-header-template]\"></ng-content>\n </div>\n\n @if (!hideSearch && type === 'check') {\n <po-search-list\n #searchElement\n (p-change)=\"callChangeSearch($event)\"\n [p-literals]=\"literalSearch\"\n [p-field-value]=\"fieldValueSearch\"\n [p-placeholder]=\"placeholderSearch\"\n [p-size]=\"size\"\n ></po-search-list>\n }\n\n @if (checkTemplate()) {\n <ul #listboxItemList cdkListbox [cdkListboxMultiple]=\"type === 'check'\" class=\"po-listbox-list\">\n @if (type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll) {\n <li\n cdkOption=\"selectAll\"\n [attr.aria-checked]=\"checkboxAllValue === null ? 'mixed' : checkboxAllValue\"\n class=\"po-listbox-item-type-check\"\n (click)=\"changeAll.emit()\"\n (keydown)=\"changeAllEmit($event)\"\n (keydown)=\"onSelectAllCheckboxKeyDown($event)\"\n >\n <po-item-list\n [p-selected]=\"checkboxAllValue\"\n p-type=\"check\"\n [p-label]=\"literals.selectAll\"\n p-value=\"selectAll\"\n [p-checkbox-value]=\"checkboxAllValue\"\n [p-size]=\"size\"\n >\n </po-item-list>\n </li>\n }\n @for (item of items; track item) {\n <li\n [class.po-listbox-item]=\"visible\"\n [class.po-listbox-item-type-check]=\"type === 'check'\"\n [cdkOption]=\"item[fieldLabel]\"\n [cdkOptionDisabled]=\"\n returnBooleanValue(item, 'disabled') || returnBooleanValue(item, 'visible') === false || item.options\n \"\n [attr.aria-selected]=\"isSelectedItem(item) || item.selected\"\n (click)=\"onSelectItem(item)\"\n (keydown)=\"onKeyDown(item, $event)\"\n >\n @if (item.options) {\n <label class=\"po-combo-item-title\">\n {{ item.label }}\n </label>\n }\n @if (returnBooleanValue(item, 'visible') !== false && !item.options) {\n <po-item-list\n [p-disabled]=\"returnBooleanValue(item, 'disabled')\"\n [p-visible]=\"returnBooleanValue(item, 'visible')\"\n [p-checkbox-value]=\"isSelectedItem(item)\"\n [attr.data-item-list]=\"formatItemList(item)\"\n [p-label]=\"item[fieldLabel]\"\n [p-value]=\"item[fieldValue]\"\n [p-selected]=\"isSelectedItem(item) || item.selected\"\n [p-active-tabs]=\"item.active\"\n [p-separator]=\"item.separator\"\n [p-danger]=\"item.danger || item.type === 'danger'\"\n [p-icon]=\"item.icon\"\n [p-type]=\"type\"\n [p-item]=\"item\"\n [p-tab-hide]=\"item.hide\"\n [p-is-tabs]=\"isTabs\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-template]=\"template\"\n [p-template-context]=\"item\"\n (p-selectcheckbox-item)=\"checkboxClicked($event)\"\n (p-selectcombo-item)=\"optionClicked(item)\"\n (p-emit-item-tabs)=\"onSelectTabs($event)\"\n (p-activated-tabs)=\"onActivatedTabs($event)\"\n [p-search-value]=\"searchValue\"\n [p-filter-mode]=\"filterMode\"\n [p-filtering]=\"isFiltering\"\n [p-size]=\"size\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareCache\"\n [p-combo-service]=\"comboService\"\n ></po-item-list>\n }\n </li>\n }\n </ul>\n } @else {\n @if (!items.length && !isServerSearching && type !== 'action') {\n <div class=\"po-listbox-container-no-data po-text-center\">\n <span> {{ literals.noItems }}</span>\n </div>\n }\n }\n\n @if (isServerSearching && type !== 'action') {\n <div [class.po-listbox-container-loading-default]=\"!infiniteLoading\">\n <po-loading-overlay [p-size]=\"getSizeLoading()\" [p-text]=\"getTextLoading()\"></po-loading-overlay>\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: PoLoadingOverlayComponent, selector: "po-loading-overlay" }, { kind: "directive", type: i2.CdkListbox, selector: "[cdkListbox]", inputs: ["id", "tabindex", "cdkListboxValue", "cdkListboxMultiple", "cdkListboxDisabled", "cdkListboxUseActiveDescendant", "cdkListboxOrientation", "cdkListboxCompareWith", "cdkListboxNavigationWrapDisabled", "cdkListboxNavigatesDisabledOptions"], outputs: ["cdkListboxValueChange"], exportAs: ["cdkListbox"] }, { kind: "directive", type: i2.CdkOption, selector: "[cdkOption]", inputs: ["id", "cdkOption", "cdkOptionTypeaheadLabel", "cdkOptionDisabled", "tabindex"], exportAs: ["cdkOption"] }, { kind: "component", type: PoItemListComponent, selector: "po-item-list" }, { kind: "component", type: PoSearchListComponent, selector: "po-search-list", inputs: ["p-literals", "p-field-value", "p-size", "p-placeholder"], outputs: ["p-change"] }] });
|
|
6674
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoListBoxComponent, isStandalone: false, selector: "po-listbox", viewQueries: [{ propertyName: "listbox", first: true, predicate: ["listbox"], descendants: true, static: true }, { propertyName: "listboxItemList", first: true, predicate: ["listboxItemList"], descendants: true }, { propertyName: "searchElement", first: true, predicate: ["searchElement"], descendants: true }, { propertyName: "popupHeaderContainer", first: true, predicate: ["popupHeaderContainer"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n #listbox\n class=\"po-listbox\"\n [class.po-listbox-check]=\"type === 'check' || type === 'option'\"\n [attr.data-type]=\"type\"\n [hidden]=\"visible\"\n>\n <div #popupHeaderContainer>\n <ng-content select=\"[p-popup-header-template]\"></ng-content>\n </div>\n\n @if (!hideSearch && type === 'check') {\n <po-search-list\n #searchElement\n (p-change)=\"callChangeSearch($event)\"\n [p-literals]=\"literalSearch\"\n [p-field-value]=\"fieldValueSearch\"\n [p-placeholder]=\"placeholderSearch\"\n [p-size]=\"size\"\n ></po-search-list>\n }\n\n @if (checkTemplate()) {\n <ul #listboxItemList cdkListbox [cdkListboxMultiple]=\"type === 'check'\" class=\"po-listbox-list\">\n @if (type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll) {\n <li\n cdkOption=\"selectAll\"\n [attr.aria-checked]=\"checkboxAllValue === null ? 'mixed' : checkboxAllValue\"\n class=\"po-listbox-item-type-check\"\n (click)=\"changeAll.emit()\"\n (keydown)=\"changeAllEmit($event)\"\n (keydown)=\"onSelectAllCheckboxKeyDown($event)\"\n >\n <po-item-list\n [p-selected]=\"checkboxAllValue\"\n p-type=\"check\"\n [p-label]=\"literals.selectAll\"\n p-value=\"selectAll\"\n [p-checkbox-value]=\"checkboxAllValue\"\n [p-size]=\"size\"\n >\n </po-item-list>\n </li>\n }\n @for (item of items; track item) {\n <li\n [class.po-listbox-item]=\"visible\"\n [class.po-listbox-item-type-check]=\"type === 'check'\"\n [cdkOption]=\"item[fieldLabel]\"\n [cdkOptionDisabled]=\"\n returnBooleanValue(item, 'disabled') || returnBooleanValue(item, 'visible') === false || item.options\n \"\n [attr.aria-selected]=\"isSelectedItem(item) || item.selected\"\n (click)=\"onSelectItem(item)\"\n (keydown)=\"onKeyDown(item, $event)\"\n >\n @if (item.options) {\n <label class=\"po-combo-item-title\">\n {{ item.label }}\n </label>\n }\n @if (returnBooleanValue(item, 'visible') !== false && !item.options) {\n <po-item-list\n [p-disabled]=\"returnBooleanValue(item, 'disabled')\"\n [p-visible]=\"returnBooleanValue(item, 'visible')\"\n [p-checkbox-value]=\"isSelectedItem(item)\"\n [attr.data-item-list]=\"formatItemList(item)\"\n [p-label]=\"item[fieldLabel]\"\n [p-value]=\"item[fieldValue]\"\n [p-selected]=\"isSelectedItem(item) || item.selected\"\n [p-active-tabs]=\"item.active\"\n [p-separator]=\"item.separator || separator\"\n [p-danger]=\"item.danger || item.type === 'danger'\"\n [p-icon]=\"item.icon\"\n [p-type]=\"type\"\n [p-item]=\"item\"\n [p-tab-hide]=\"item.hide\"\n [p-is-tabs]=\"isTabs\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-template]=\"template\"\n [p-template-context]=\"item\"\n (p-selectcheckbox-item)=\"checkboxClicked($event)\"\n (p-selectcombo-item)=\"optionClicked(item)\"\n (p-emit-item-tabs)=\"onSelectTabs($event)\"\n (p-activated-tabs)=\"onActivatedTabs($event)\"\n [p-search-value]=\"searchValue\"\n [p-filter-mode]=\"filterMode\"\n [p-filtering]=\"isFiltering\"\n [p-size]=\"size\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareCache\"\n [p-combo-service]=\"comboService\"\n [p-keys-label]=\"keysLabel\"\n ></po-item-list>\n }\n </li>\n }\n\n @if (footerActionListbox) {\n @if (placeholderListbox) {\n <div class=\"po-item-list\" [class.po-item-list-aa]=\"size === 'small'\" aria-hidden=\"true\">\n <span>{{ placeholderListbox }}</span>\n </div>\n }\n\n @if (!placeholderListbox && !items.length) {\n <div class=\"po-item-list\" [class.po-item-list-aa]=\"size === 'small'\" aria-hidden=\"true\">\n <span>{{ literals.noItems }}</span>\n </div>\n }\n\n <li\n class=\"po-listbox-item\"\n (click)=\"handleFooterActionListbox()\"\n (keydown)=\"onKeyDown({ type: 'footerAction' }, $event)\"\n cdkOption=\"footerActionListbox\"\n >\n <po-item-list [p-label]=\"literals.footerActionListbox\" p-separator [p-size]=\"size\" />\n </li>\n }\n </ul>\n } @else {\n @if (!items.length && !isServerSearching && type !== 'action' && !footerActionListbox) {\n <div class=\"po-listbox-container-no-data po-text-center\">\n <span> {{ literals.noItems }}</span>\n </div>\n }\n }\n\n @if (isServerSearching && type !== 'action') {\n <div [class.po-listbox-container-loading-default]=\"!infiniteLoading\">\n <po-loading-overlay [p-size]=\"getSizeLoading()\" [p-text]=\"getTextLoading()\"></po-loading-overlay>\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: PoLoadingOverlayComponent, selector: "po-loading-overlay" }, { kind: "directive", type: i2$1.CdkListbox, selector: "[cdkListbox]", inputs: ["id", "tabindex", "cdkListboxValue", "cdkListboxMultiple", "cdkListboxDisabled", "cdkListboxUseActiveDescendant", "cdkListboxOrientation", "cdkListboxCompareWith", "cdkListboxNavigationWrapDisabled", "cdkListboxNavigatesDisabledOptions"], outputs: ["cdkListboxValueChange"], exportAs: ["cdkListbox"] }, { kind: "directive", type: i2$1.CdkOption, selector: "[cdkOption]", inputs: ["id", "cdkOption", "cdkOptionTypeaheadLabel", "cdkOptionDisabled", "tabindex"], exportAs: ["cdkOption"] }, { kind: "component", type: PoItemListComponent, selector: "po-item-list" }, { kind: "component", type: PoSearchListComponent, selector: "po-search-list", inputs: ["p-literals", "p-field-value", "p-size", "p-placeholder"], outputs: ["p-change"] }] });
|
|
6622
6675
|
}
|
|
6623
6676
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoListBoxComponent, decorators: [{
|
|
6624
6677
|
type: Component,
|
|
6625
|
-
args: [{ selector: 'po-listbox', standalone: false, template: "<div\n #listbox\n class=\"po-listbox\"\n [class.po-listbox-check]=\"type === 'check' || type === 'option'\"\n [attr.data-type]=\"type\"\n [hidden]=\"visible\"\n>\n <div #popupHeaderContainer>\n <ng-content select=\"[p-popup-header-template]\"></ng-content>\n </div>\n\n @if (!hideSearch && type === 'check') {\n <po-search-list\n #searchElement\n (p-change)=\"callChangeSearch($event)\"\n [p-literals]=\"literalSearch\"\n [p-field-value]=\"fieldValueSearch\"\n [p-placeholder]=\"placeholderSearch\"\n [p-size]=\"size\"\n ></po-search-list>\n }\n\n @if (checkTemplate()) {\n <ul #listboxItemList cdkListbox [cdkListboxMultiple]=\"type === 'check'\" class=\"po-listbox-list\">\n @if (type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll) {\n <li\n cdkOption=\"selectAll\"\n [attr.aria-checked]=\"checkboxAllValue === null ? 'mixed' : checkboxAllValue\"\n class=\"po-listbox-item-type-check\"\n (click)=\"changeAll.emit()\"\n (keydown)=\"changeAllEmit($event)\"\n (keydown)=\"onSelectAllCheckboxKeyDown($event)\"\n >\n <po-item-list\n [p-selected]=\"checkboxAllValue\"\n p-type=\"check\"\n [p-label]=\"literals.selectAll\"\n p-value=\"selectAll\"\n [p-checkbox-value]=\"checkboxAllValue\"\n [p-size]=\"size\"\n >\n </po-item-list>\n </li>\n }\n @for (item of items; track item) {\n <li\n [class.po-listbox-item]=\"visible\"\n [class.po-listbox-item-type-check]=\"type === 'check'\"\n [cdkOption]=\"item[fieldLabel]\"\n [cdkOptionDisabled]=\"\n returnBooleanValue(item, 'disabled') || returnBooleanValue(item, 'visible') === false || item.options\n \"\n [attr.aria-selected]=\"isSelectedItem(item) || item.selected\"\n (click)=\"onSelectItem(item)\"\n (keydown)=\"onKeyDown(item, $event)\"\n >\n @if (item.options) {\n <label class=\"po-combo-item-title\">\n {{ item.label }}\n </label>\n }\n @if (returnBooleanValue(item, 'visible') !== false && !item.options) {\n <po-item-list\n [p-disabled]=\"returnBooleanValue(item, 'disabled')\"\n [p-visible]=\"returnBooleanValue(item, 'visible')\"\n [p-checkbox-value]=\"isSelectedItem(item)\"\n [attr.data-item-list]=\"formatItemList(item)\"\n [p-label]=\"item[fieldLabel]\"\n [p-value]=\"item[fieldValue]\"\n [p-selected]=\"isSelectedItem(item) || item.selected\"\n [p-active-tabs]=\"item.active\"\n [p-separator]=\"item.separator\"\n [p-danger]=\"item.danger || item.type === 'danger'\"\n [p-icon]=\"item.icon\"\n [p-type]=\"type\"\n [p-item]=\"item\"\n [p-tab-hide]=\"item.hide\"\n [p-is-tabs]=\"isTabs\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-template]=\"template\"\n [p-template-context]=\"item\"\n (p-selectcheckbox-item)=\"checkboxClicked($event)\"\n (p-selectcombo-item)=\"optionClicked(item)\"\n (p-emit-item-tabs)=\"onSelectTabs($event)\"\n (p-activated-tabs)=\"onActivatedTabs($event)\"\n [p-search-value]=\"searchValue\"\n [p-filter-mode]=\"filterMode\"\n [p-filtering]=\"isFiltering\"\n [p-size]=\"size\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareCache\"\n [p-combo-service]=\"comboService\"\n ></po-item-list>\n }\n </li>\n }\n </ul>\n } @else {\n @if (!items.length && !isServerSearching && type !== 'action') {\n <div class=\"po-listbox-container-no-data po-text-center\">\n <span> {{ literals.noItems }}</span>\n </div>\n }\n }\n\n @if (isServerSearching && type !== 'action') {\n <div [class.po-listbox-container-loading-default]=\"!infiniteLoading\">\n <po-loading-overlay [p-size]=\"getSizeLoading()\" [p-text]=\"getTextLoading()\"></po-loading-overlay>\n </div>\n }\n</div>\n" }]
|
|
6678
|
+
args: [{ selector: 'po-listbox', standalone: false, template: "<div\n #listbox\n class=\"po-listbox\"\n [class.po-listbox-check]=\"type === 'check' || type === 'option'\"\n [attr.data-type]=\"type\"\n [hidden]=\"visible\"\n>\n <div #popupHeaderContainer>\n <ng-content select=\"[p-popup-header-template]\"></ng-content>\n </div>\n\n @if (!hideSearch && type === 'check') {\n <po-search-list\n #searchElement\n (p-change)=\"callChangeSearch($event)\"\n [p-literals]=\"literalSearch\"\n [p-field-value]=\"fieldValueSearch\"\n [p-placeholder]=\"placeholderSearch\"\n [p-size]=\"size\"\n ></po-search-list>\n }\n\n @if (checkTemplate()) {\n <ul #listboxItemList cdkListbox [cdkListboxMultiple]=\"type === 'check'\" class=\"po-listbox-list\">\n @if (type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll) {\n <li\n cdkOption=\"selectAll\"\n [attr.aria-checked]=\"checkboxAllValue === null ? 'mixed' : checkboxAllValue\"\n class=\"po-listbox-item-type-check\"\n (click)=\"changeAll.emit()\"\n (keydown)=\"changeAllEmit($event)\"\n (keydown)=\"onSelectAllCheckboxKeyDown($event)\"\n >\n <po-item-list\n [p-selected]=\"checkboxAllValue\"\n p-type=\"check\"\n [p-label]=\"literals.selectAll\"\n p-value=\"selectAll\"\n [p-checkbox-value]=\"checkboxAllValue\"\n [p-size]=\"size\"\n >\n </po-item-list>\n </li>\n }\n @for (item of items; track item) {\n <li\n [class.po-listbox-item]=\"visible\"\n [class.po-listbox-item-type-check]=\"type === 'check'\"\n [cdkOption]=\"item[fieldLabel]\"\n [cdkOptionDisabled]=\"\n returnBooleanValue(item, 'disabled') || returnBooleanValue(item, 'visible') === false || item.options\n \"\n [attr.aria-selected]=\"isSelectedItem(item) || item.selected\"\n (click)=\"onSelectItem(item)\"\n (keydown)=\"onKeyDown(item, $event)\"\n >\n @if (item.options) {\n <label class=\"po-combo-item-title\">\n {{ item.label }}\n </label>\n }\n @if (returnBooleanValue(item, 'visible') !== false && !item.options) {\n <po-item-list\n [p-disabled]=\"returnBooleanValue(item, 'disabled')\"\n [p-visible]=\"returnBooleanValue(item, 'visible')\"\n [p-checkbox-value]=\"isSelectedItem(item)\"\n [attr.data-item-list]=\"formatItemList(item)\"\n [p-label]=\"item[fieldLabel]\"\n [p-value]=\"item[fieldValue]\"\n [p-selected]=\"isSelectedItem(item) || item.selected\"\n [p-active-tabs]=\"item.active\"\n [p-separator]=\"item.separator || separator\"\n [p-danger]=\"item.danger || item.type === 'danger'\"\n [p-icon]=\"item.icon\"\n [p-type]=\"type\"\n [p-item]=\"item\"\n [p-tab-hide]=\"item.hide\"\n [p-is-tabs]=\"isTabs\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-template]=\"template\"\n [p-template-context]=\"item\"\n (p-selectcheckbox-item)=\"checkboxClicked($event)\"\n (p-selectcombo-item)=\"optionClicked(item)\"\n (p-emit-item-tabs)=\"onSelectTabs($event)\"\n (p-activated-tabs)=\"onActivatedTabs($event)\"\n [p-search-value]=\"searchValue\"\n [p-filter-mode]=\"filterMode\"\n [p-filtering]=\"isFiltering\"\n [p-size]=\"size\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareCache\"\n [p-combo-service]=\"comboService\"\n [p-keys-label]=\"keysLabel\"\n ></po-item-list>\n }\n </li>\n }\n\n @if (footerActionListbox) {\n @if (placeholderListbox) {\n <div class=\"po-item-list\" [class.po-item-list-aa]=\"size === 'small'\" aria-hidden=\"true\">\n <span>{{ placeholderListbox }}</span>\n </div>\n }\n\n @if (!placeholderListbox && !items.length) {\n <div class=\"po-item-list\" [class.po-item-list-aa]=\"size === 'small'\" aria-hidden=\"true\">\n <span>{{ literals.noItems }}</span>\n </div>\n }\n\n <li\n class=\"po-listbox-item\"\n (click)=\"handleFooterActionListbox()\"\n (keydown)=\"onKeyDown({ type: 'footerAction' }, $event)\"\n cdkOption=\"footerActionListbox\"\n >\n <po-item-list [p-label]=\"literals.footerActionListbox\" p-separator [p-size]=\"size\" />\n </li>\n }\n </ul>\n } @else {\n @if (!items.length && !isServerSearching && type !== 'action' && !footerActionListbox) {\n <div class=\"po-listbox-container-no-data po-text-center\">\n <span> {{ literals.noItems }}</span>\n </div>\n }\n }\n\n @if (isServerSearching && type !== 'action') {\n <div [class.po-listbox-container-loading-default]=\"!infiniteLoading\">\n <po-loading-overlay [p-size]=\"getSizeLoading()\" [p-text]=\"getTextLoading()\"></po-loading-overlay>\n </div>\n }\n</div>\n" }]
|
|
6626
6679
|
}], ctorParameters: () => [], propDecorators: { listbox: [{
|
|
6627
6680
|
type: ViewChild,
|
|
6628
6681
|
args: ['listbox', { static: true }]
|
|
@@ -10422,6 +10475,7 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
10422
10475
|
this.checkShowCEcharts();
|
|
10423
10476
|
}
|
|
10424
10477
|
ngOnDestroy() {
|
|
10478
|
+
/* istanbul ignore next */
|
|
10425
10479
|
if (this.resizeObserver?.disconnect) {
|
|
10426
10480
|
this.resizeObserver?.disconnect();
|
|
10427
10481
|
}
|
|
@@ -10483,10 +10537,16 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
10483
10537
|
this.chartInstance?.resize();
|
|
10484
10538
|
});
|
|
10485
10539
|
}
|
|
10540
|
+
applyStringFormatter(template, context) {
|
|
10541
|
+
return template
|
|
10542
|
+
.replace('{name}', context.name)
|
|
10543
|
+
.replace('{seriesName}', context.seriesName)
|
|
10544
|
+
.replace('{value}', context.value);
|
|
10545
|
+
}
|
|
10486
10546
|
observeContainerResize() {
|
|
10487
10547
|
if (!this.series?.length)
|
|
10488
10548
|
return;
|
|
10489
|
-
if (this.resizeObserver) {
|
|
10549
|
+
if (this.resizeObserver?.disconnect) {
|
|
10490
10550
|
this.resizeObserver.disconnect();
|
|
10491
10551
|
this.resizeObserver = undefined;
|
|
10492
10552
|
}
|
|
@@ -10604,6 +10664,33 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
10604
10664
|
this.poTooltip.last.toggleTooltipVisibility(false);
|
|
10605
10665
|
});
|
|
10606
10666
|
}
|
|
10667
|
+
parseTooltipText(text) {
|
|
10668
|
+
if (!text)
|
|
10669
|
+
return text;
|
|
10670
|
+
return text
|
|
10671
|
+
.replace(/\n/g, '<br>')
|
|
10672
|
+
.replace(/\*\*(.*?)\*\*/g, '<b>$1</b>')
|
|
10673
|
+
.replace(/__(.*?)__/g, '<i>$1</i>');
|
|
10674
|
+
}
|
|
10675
|
+
resolveCustomTooltip(params, name, seriesName, valueLabel) {
|
|
10676
|
+
let text;
|
|
10677
|
+
const serie = params.seriesType === 'pie' ? this.series[params.dataIndex] : this.series[params.seriesIndex];
|
|
10678
|
+
if (serie?.tooltip) {
|
|
10679
|
+
if (typeof serie.tooltip === 'function') {
|
|
10680
|
+
text = serie.tooltip(params);
|
|
10681
|
+
}
|
|
10682
|
+
else {
|
|
10683
|
+
text = this.applyStringFormatter(serie.tooltip, { name, seriesName, value: valueLabel });
|
|
10684
|
+
}
|
|
10685
|
+
}
|
|
10686
|
+
if (!text) {
|
|
10687
|
+
text =
|
|
10688
|
+
seriesName && !seriesName.includes('\u00000')
|
|
10689
|
+
? `<b>${name}</b><br>${seriesName}: <b>${valueLabel}</b>`
|
|
10690
|
+
: `${name}: <b>${valueLabel}</b>`;
|
|
10691
|
+
}
|
|
10692
|
+
return this.parseTooltipText(text);
|
|
10693
|
+
}
|
|
10607
10694
|
setTooltipProperties(divTooltipElement, params) {
|
|
10608
10695
|
const chartElement = this.el.nativeElement.querySelector('#chart-id');
|
|
10609
10696
|
let valueLabel = params.value;
|
|
@@ -10613,21 +10700,7 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
10613
10700
|
}
|
|
10614
10701
|
const name = params.name === ' ' ? this.literals.item : params.name;
|
|
10615
10702
|
const seriesName = params.seriesName === ' ' ? this.literals.item : params.seriesName;
|
|
10616
|
-
|
|
10617
|
-
? `<b>${name}</b><br>
|
|
10618
|
-
${seriesName}: <b>${valueLabel}</b>`
|
|
10619
|
-
: `${name}: <b>${valueLabel}</b>`;
|
|
10620
|
-
const isPie = params.seriesType === 'pie';
|
|
10621
|
-
if (isPie) {
|
|
10622
|
-
this.tooltipText = this.series[params.dataIndex].tooltip
|
|
10623
|
-
? this.series[params.dataIndex].tooltip
|
|
10624
|
-
: customTooltipText;
|
|
10625
|
-
}
|
|
10626
|
-
else {
|
|
10627
|
-
this.tooltipText = this.series[params.seriesIndex].tooltip
|
|
10628
|
-
? this.series[params.seriesIndex].tooltip
|
|
10629
|
-
: customTooltipText;
|
|
10630
|
-
}
|
|
10703
|
+
this.tooltipText = this.resolveCustomTooltip(params, name, seriesName, valueLabel);
|
|
10631
10704
|
divTooltipElement.style.left = `${params.event.offsetX + chartElement.offsetLeft + 3}px`;
|
|
10632
10705
|
divTooltipElement.style.top = `${chartElement.offsetTop + params.event.offsetY - 2}px`;
|
|
10633
10706
|
this.poTooltip.last.toggleTooltipVisibility(true);
|
|
@@ -15355,7 +15428,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
15355
15428
|
multi: true
|
|
15356
15429
|
},
|
|
15357
15430
|
PoControlPositionService
|
|
15358
|
-
], viewQueries: [{ propertyName: "calendar", first: true, predicate: ["calendar"], descendants: true, static: true }, { propertyName: "dialogPicker", first: true, predicate: ["dialogPicker"], descendants: true, read: ElementRef }, { propertyName: "iconDatepicker", first: true, predicate: ["iconDatepicker"], descendants: true }, { propertyName: "inputEl", first: true, predicate: ["inp"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, 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 [class.po-input-icon-right-aa]=\"clean && inp.value && size === 'small'\"\n [class.po-input-aa]=\"size === 'small'\"\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 [attr.data-append-in-body]=\"appendBox\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n (keydown.tab)=\"handleCleanKeyboardTab($event)\"\n />\n <div class=\"po-field-icon-container-right\">\n @if (clean && !disabled && !readonly) {\n <po-clean class=\"po-icon-input\" [p-element-ref]=\"inputEl\" [p-size]=\"size\" (p-change-event)=\"clear()\">\n </po-clean>\n }\n </div>\n </div>\n <po-button\n #iconDatepicker\n class=\"po-datepicker-button\"\n [class.po-datepicker-button-aa]=\"size === 'small'\"\n p-icon=\"ICON_CALENDAR\"\n p-kind=\"tertiary\"\n [p-disabled]=\"disabled || readonly\"\n [p-size]=\"size\"\n (keydown)=\"onKeyPress($event)\"\n (keydown.tab)=\"handleCleanKeyboardTab($event)\"\n (p-click)=\"togglePicker()\"\n >\n </po-button>\n </div>\n\n @if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n } @else {\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n }\n\n <ng-template #sharedCalendarContent>\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\" tabindex=\"-1\">\n @if (verifyMobile()) {\n <div class=\"po-datepicker-calendar-overlay\"></div>\n }\n <po-calendar\n #calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n (keydown)=\"onCalendarKeyDown($event)\"\n ></po-calendar>\n </div>\n </ng-template>\n </div>\n\n @if (!readonly) {\n <po-field-container-bottom\n [p-additional-help-tooltip]=\"getAdditionalHelpTooltip()\"\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-show-additional-help]=\"displayAdditionalHelp\"\n [p-show-additional-help-icon]=\"showAdditionalHelpIcon()\"\n (p-additional-help)=\"emitAdditionalHelp()\"\n ></po-field-container-bottom>\n }\n</po-field-container>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-additional-help-tooltip", "p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-show-additional-help", "p-show-additional-help-icon"], outputs: ["p-additional-help"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-optional", "p-required", "p-show-required"] }, { kind: "directive", type: i2$
|
|
15431
|
+
], viewQueries: [{ propertyName: "calendar", first: true, predicate: ["calendar"], descendants: true, static: true }, { propertyName: "dialogPicker", first: true, predicate: ["dialogPicker"], descendants: true, read: ElementRef }, { propertyName: "iconDatepicker", first: true, predicate: ["iconDatepicker"], descendants: true }, { propertyName: "inputEl", first: true, predicate: ["inp"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, 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 [class.po-input-icon-right-aa]=\"clean && inp.value && size === 'small'\"\n [class.po-input-aa]=\"size === 'small'\"\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 [attr.data-append-in-body]=\"appendBox\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n (keydown.tab)=\"handleCleanKeyboardTab($event)\"\n />\n <div class=\"po-field-icon-container-right\">\n @if (clean && !disabled && !readonly) {\n <po-clean class=\"po-icon-input\" [p-element-ref]=\"inputEl\" [p-size]=\"size\" (p-change-event)=\"clear()\">\n </po-clean>\n }\n </div>\n </div>\n <po-button\n #iconDatepicker\n class=\"po-datepicker-button\"\n [class.po-datepicker-button-aa]=\"size === 'small'\"\n p-icon=\"ICON_CALENDAR\"\n p-kind=\"tertiary\"\n [p-disabled]=\"disabled || readonly\"\n [p-size]=\"size\"\n (keydown)=\"onKeyPress($event)\"\n (keydown.tab)=\"handleCleanKeyboardTab($event)\"\n (p-click)=\"togglePicker()\"\n >\n </po-button>\n </div>\n\n @if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n } @else {\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n }\n\n <ng-template #sharedCalendarContent>\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\" tabindex=\"-1\">\n @if (verifyMobile()) {\n <div class=\"po-datepicker-calendar-overlay\"></div>\n }\n <po-calendar\n #calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n (keydown)=\"onCalendarKeyDown($event)\"\n ></po-calendar>\n </div>\n </ng-template>\n </div>\n\n @if (!readonly) {\n <po-field-container-bottom\n [p-additional-help-tooltip]=\"getAdditionalHelpTooltip()\"\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-show-additional-help]=\"displayAdditionalHelp\"\n [p-show-additional-help-icon]=\"showAdditionalHelpIcon()\"\n (p-additional-help)=\"emitAdditionalHelp()\"\n ></po-field-container-bottom>\n }\n</po-field-container>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-additional-help-tooltip", "p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-show-additional-help", "p-show-additional-help-icon"], outputs: ["p-additional-help"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-optional", "p-required", "p-show-required"] }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: PoCleanComponent, selector: "po-clean" }, { kind: "component", type: PoCalendarComponent, selector: "po-calendar" }, { kind: "component", type: PoButtonComponent, selector: "po-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15359
15432
|
}
|
|
15360
15433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoDatepickerComponent, decorators: [{
|
|
15361
15434
|
type: Component,
|
|
@@ -18999,7 +19072,7 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
18999
19072
|
this.poControlPosition.setElements(this.popoverElement.nativeElement, popoverOffset, this.target);
|
|
19000
19073
|
}
|
|
19001
19074
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoPopoverComponent, deps: [{ token: i0.Renderer2 }, { token: PoControlPositionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19002
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoPopoverComponent, isStandalone: false, selector: "po-popover", providers: [PoControlPositionService], viewQueries: [{ propertyName: "popoverElement", first: true, predicate: ["popoverElement"], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (appendBox) {\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"target\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"sharedPopoverContent\"></ng-container>\n </ng-template>\n} @else {\n <ng-container *ngTemplateOutlet=\"sharedPopoverContent\"></ng-container>\n}\n\n<ng-template #sharedPopoverContent>\n <div [hidden]=\"isHidden\" class=\"po-popover\" #popoverElement>\n @if (!hideArrow) {\n <div class=\"po-popover-arrow po-arrow-{{ arrowDirection }}\"></div>\n }\n\n <div class=\"po-popover-content\">\n @if (title) {\n <span class=\"po-popover-title\">{{ title }}</span>\n }\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$
|
|
19075
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoPopoverComponent, isStandalone: false, selector: "po-popover", providers: [PoControlPositionService], viewQueries: [{ propertyName: "popoverElement", first: true, predicate: ["popoverElement"], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (appendBox) {\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"target\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"sharedPopoverContent\"></ng-container>\n </ng-template>\n} @else {\n <ng-container *ngTemplateOutlet=\"sharedPopoverContent\"></ng-container>\n}\n\n<ng-template #sharedPopoverContent>\n <div [hidden]=\"isHidden\" class=\"po-popover\" #popoverElement>\n @if (!hideArrow) {\n <div class=\"po-popover-arrow po-arrow-{{ arrowDirection }}\"></div>\n }\n\n <div class=\"po-popover-content\">\n @if (title) {\n <span class=\"po-popover-title\">{{ title }}</span>\n }\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }] });
|
|
19003
19076
|
}
|
|
19004
19077
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoPopoverComponent, decorators: [{
|
|
19005
19078
|
type: Component,
|
|
@@ -22755,7 +22828,9 @@ const poSearchLiteralsDefault = {
|
|
|
22755
22828
|
of: 'of',
|
|
22756
22829
|
next: 'Next result',
|
|
22757
22830
|
previous: 'Previous result',
|
|
22758
|
-
result: 'Result'
|
|
22831
|
+
result: 'Result',
|
|
22832
|
+
footerActionListbox: 'See all results',
|
|
22833
|
+
placeholderListbox: 'Search'
|
|
22759
22834
|
},
|
|
22760
22835
|
es: {
|
|
22761
22836
|
search: 'Buscar',
|
|
@@ -22764,7 +22839,9 @@ const poSearchLiteralsDefault = {
|
|
|
22764
22839
|
of: 'de',
|
|
22765
22840
|
next: 'Siguiente resultado',
|
|
22766
22841
|
previous: 'Resultado anterior',
|
|
22767
|
-
result: 'Resultado'
|
|
22842
|
+
result: 'Resultado',
|
|
22843
|
+
footerActionListbox: 'Ver todos los resultados',
|
|
22844
|
+
placeholderListbox: 'Buscar'
|
|
22768
22845
|
},
|
|
22769
22846
|
pt: {
|
|
22770
22847
|
search: 'Pesquisar',
|
|
@@ -22773,7 +22850,9 @@ const poSearchLiteralsDefault = {
|
|
|
22773
22850
|
of: 'de',
|
|
22774
22851
|
next: 'Próximo resultado',
|
|
22775
22852
|
previous: 'Resultado anterior',
|
|
22776
|
-
result: 'Resultado'
|
|
22853
|
+
result: 'Resultado',
|
|
22854
|
+
footerActionListbox: 'Ver todos os resultados',
|
|
22855
|
+
placeholderListbox: 'Pesquisar'
|
|
22777
22856
|
},
|
|
22778
22857
|
ru: {
|
|
22779
22858
|
search: 'Поиск',
|
|
@@ -22782,7 +22861,27 @@ const poSearchLiteralsDefault = {
|
|
|
22782
22861
|
of: 'из',
|
|
22783
22862
|
next: 'Следующий результат',
|
|
22784
22863
|
previous: 'Предыдущий результат',
|
|
22785
|
-
result: 'Результат'
|
|
22864
|
+
result: 'Результат',
|
|
22865
|
+
footerActionListbox: 'Посмотреть все результаты',
|
|
22866
|
+
placeholderListbox: 'Поиск'
|
|
22867
|
+
}
|
|
22868
|
+
};
|
|
22869
|
+
const poSearchLiteralsDefaultExecute = {
|
|
22870
|
+
en: {
|
|
22871
|
+
search: 'Search and Execute',
|
|
22872
|
+
placeholderListbox: 'Search and Execute'
|
|
22873
|
+
},
|
|
22874
|
+
es: {
|
|
22875
|
+
search: 'Buscar y ejecutar',
|
|
22876
|
+
placeholderListbox: 'Buscar y ejecutar'
|
|
22877
|
+
},
|
|
22878
|
+
pt: {
|
|
22879
|
+
search: 'Pesquisar e Executar ',
|
|
22880
|
+
placeholderListbox: 'Pesquisar e Executar '
|
|
22881
|
+
},
|
|
22882
|
+
ru: {
|
|
22883
|
+
search: 'Поиск и выполнение',
|
|
22884
|
+
placeholderListbox: 'Поиск и выполнение'
|
|
22786
22885
|
}
|
|
22787
22886
|
};
|
|
22788
22887
|
|
|
@@ -22861,6 +22960,7 @@ class PoSearchBaseComponent {
|
|
|
22861
22960
|
language;
|
|
22862
22961
|
_filterSelect;
|
|
22863
22962
|
_size = undefined;
|
|
22963
|
+
_keysLabel = [];
|
|
22864
22964
|
/**
|
|
22865
22965
|
* @optional
|
|
22866
22966
|
*
|
|
@@ -23021,15 +23121,22 @@ class PoSearchBaseComponent {
|
|
|
23021
23121
|
this._literals = {
|
|
23022
23122
|
...poSearchLiteralsDefault[poLocaleDefault],
|
|
23023
23123
|
...poSearchLiteralsDefault[this.language],
|
|
23124
|
+
...(this.type === 'execute' ? poSearchLiteralsDefaultExecute[this.language] : {}),
|
|
23024
23125
|
...value
|
|
23025
23126
|
};
|
|
23026
23127
|
}
|
|
23027
23128
|
else {
|
|
23028
|
-
this._literals =
|
|
23129
|
+
this._literals = {
|
|
23130
|
+
...poSearchLiteralsDefault[this.language],
|
|
23131
|
+
...(this.type === 'execute' ? poSearchLiteralsDefaultExecute[this.language] : {})
|
|
23132
|
+
};
|
|
23029
23133
|
}
|
|
23030
23134
|
}
|
|
23031
23135
|
get literals() {
|
|
23032
|
-
return this._literals ||
|
|
23136
|
+
return (this._literals || {
|
|
23137
|
+
...poSearchLiteralsDefault[this.language],
|
|
23138
|
+
...(this.type === 'execute' ? poSearchLiteralsDefaultExecute[this.language] : {})
|
|
23139
|
+
});
|
|
23033
23140
|
}
|
|
23034
23141
|
/**
|
|
23035
23142
|
* @optional
|
|
@@ -23055,6 +23162,8 @@ class PoSearchBaseComponent {
|
|
|
23055
23162
|
* - `action`: Realiza a busca a cada caractere digitado.
|
|
23056
23163
|
* - `trigger`: Realiza a busca ao pressionar `enter` ou clicar no ícone de busca.
|
|
23057
23164
|
* - `locate`: Modo manual. Exibe botões e contador, mas não executa buscas — controle é do desenvolvedor.
|
|
23165
|
+
* - `execute`: Executa uma ação ou realiza um redirecionamento ao selecionar um item no `listbox`.
|
|
23166
|
+
* Para este tipo, é necessário informar as propriedades `action` ou `url` nos itens definidos em `p-items`.
|
|
23058
23167
|
*
|
|
23059
23168
|
* @default `action`
|
|
23060
23169
|
*/
|
|
@@ -23092,6 +23201,32 @@ class PoSearchBaseComponent {
|
|
|
23092
23201
|
get size() {
|
|
23093
23202
|
return this._size ?? getDefaultSizeFn(PoFieldSize);
|
|
23094
23203
|
}
|
|
23204
|
+
/**
|
|
23205
|
+
* @optional
|
|
23206
|
+
*
|
|
23207
|
+
* @description
|
|
23208
|
+
*
|
|
23209
|
+
* Define os nomes das propriedades do objeto que serão exibidos como rótulos (labels) no `listbox` quando a propriedade
|
|
23210
|
+
* `p-show-listbox` estiver habilitada.
|
|
23211
|
+
*
|
|
23212
|
+
* Deve ser informado um array de strings contendo até **3 propriedades**.
|
|
23213
|
+
*
|
|
23214
|
+
* Exemplo de uso:
|
|
23215
|
+
* ```ts
|
|
23216
|
+
* keysLabel: Array<string> = ['nome', 'email', 'country'];
|
|
23217
|
+
* ```
|
|
23218
|
+
*/
|
|
23219
|
+
set keysLabel(value) {
|
|
23220
|
+
if (value && value.length > 3) {
|
|
23221
|
+
this._keysLabel = value.slice(0, 3);
|
|
23222
|
+
}
|
|
23223
|
+
else {
|
|
23224
|
+
this._keysLabel = value;
|
|
23225
|
+
}
|
|
23226
|
+
}
|
|
23227
|
+
get keysLabel() {
|
|
23228
|
+
return this._keysLabel;
|
|
23229
|
+
}
|
|
23095
23230
|
/**
|
|
23096
23231
|
* @optional
|
|
23097
23232
|
*
|
|
@@ -23158,6 +23293,15 @@ class PoSearchBaseComponent {
|
|
|
23158
23293
|
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
23159
23294
|
*/
|
|
23160
23295
|
locatePrevious = new EventEmitter();
|
|
23296
|
+
/**
|
|
23297
|
+
* @optional
|
|
23298
|
+
*
|
|
23299
|
+
* @description
|
|
23300
|
+
*
|
|
23301
|
+
* Evento disparado ao clicar no botão de ação exibido no rodapé do `listbox`.
|
|
23302
|
+
* O texto exibido pode ser configurado por meio do literal `footerActionListbox`.
|
|
23303
|
+
*/
|
|
23304
|
+
footerAction = new EventEmitter();
|
|
23161
23305
|
constructor(languageService) {
|
|
23162
23306
|
this.language = languageService.getShortLanguage();
|
|
23163
23307
|
}
|
|
@@ -23166,7 +23310,7 @@ class PoSearchBaseComponent {
|
|
|
23166
23310
|
return _values.map(value => (typeof value === 'object' ? value : { label: value, value }));
|
|
23167
23311
|
}
|
|
23168
23312
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoSearchBaseComponent, deps: [{ token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23169
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.7", type: PoSearchBaseComponent, isStandalone: true, inputs: { ariaLabel: ["p-aria-label", "ariaLabel"], disabled: ["p-disabled", "disabled", convertToBoolean], filterKeys: ["p-filter-keys", "filterKeys"], filterSelect: ["p-filter-select", "filterSelect"], filterType: ["p-filter-type", "filterType"], icon: ["p-icon", "icon"], items: ["p-items", "items"], literals: ["p-literals", "literals"], locateSummary: ["p-locate-summary", "locateSummary"], type: ["p-search-type", "type"], showListbox: ["p-show-listbox", "showListbox", convertToBoolean], size: ["p-size", "size"] }, outputs: { blur: "p-blur", changeModel: "p-change-model", filter: "p-filter", filteredItemsChange: "p-filtered-items-change", listboxOnClick: "p-listbox-onclick", locateNext: "p-locate-next", locatePrevious: "p-locate-previous" }, ngImport: i0 });
|
|
23313
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.7", type: PoSearchBaseComponent, isStandalone: true, inputs: { ariaLabel: ["p-aria-label", "ariaLabel"], disabled: ["p-disabled", "disabled", convertToBoolean], filterKeys: ["p-filter-keys", "filterKeys"], filterSelect: ["p-filter-select", "filterSelect"], filterType: ["p-filter-type", "filterType"], icon: ["p-icon", "icon"], items: ["p-items", "items"], literals: ["p-literals", "literals"], locateSummary: ["p-locate-summary", "locateSummary"], type: ["p-search-type", "type"], showListbox: ["p-show-listbox", "showListbox", convertToBoolean], size: ["p-size", "size"], keysLabel: ["p-keys-label", "keysLabel"] }, outputs: { blur: "p-blur", changeModel: "p-change-model", filter: "p-filter", filteredItemsChange: "p-filtered-items-change", listboxOnClick: "p-listbox-onclick", locateNext: "p-locate-next", locatePrevious: "p-locate-previous", footerAction: "p-footer-action-listbox" }, ngImport: i0 });
|
|
23170
23314
|
}
|
|
23171
23315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoSearchBaseComponent, decorators: [{
|
|
23172
23316
|
type: Directive
|
|
@@ -23206,6 +23350,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
23206
23350
|
}], size: [{
|
|
23207
23351
|
type: Input,
|
|
23208
23352
|
args: ['p-size']
|
|
23353
|
+
}], keysLabel: [{
|
|
23354
|
+
type: Input,
|
|
23355
|
+
args: ['p-keys-label']
|
|
23209
23356
|
}], blur: [{
|
|
23210
23357
|
type: Output,
|
|
23211
23358
|
args: ['p-blur']
|
|
@@ -23227,10 +23374,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
23227
23374
|
}], locatePrevious: [{
|
|
23228
23375
|
type: Output,
|
|
23229
23376
|
args: ['p-locate-previous']
|
|
23377
|
+
}], footerAction: [{
|
|
23378
|
+
type: Output,
|
|
23379
|
+
args: ['p-footer-action-listbox']
|
|
23230
23380
|
}] } });
|
|
23231
23381
|
|
|
23232
23382
|
const poSearchContainerOffset = 8;
|
|
23233
23383
|
const poSearchContainerPositionDefault = 'bottom';
|
|
23384
|
+
const ID_SEARCH_BUTTON_CLEAN = 'search-button-clean';
|
|
23234
23385
|
/**
|
|
23235
23386
|
* @docsExtends PoSearchBaseComponent
|
|
23236
23387
|
*
|
|
@@ -23264,6 +23415,11 @@ const poSearchContainerPositionDefault = 'bottom';
|
|
|
23264
23415
|
* <file name="sample-po-search-filter-select/sample-po-search-filter-select.component.ts"> </file>
|
|
23265
23416
|
* </example>
|
|
23266
23417
|
*
|
|
23418
|
+
* <example name="po-search-execute" title="PO Search Form Fields with Execute">
|
|
23419
|
+
* <file name="sample-po-search-execute/sample-po-search-execute.component.html"> </file>
|
|
23420
|
+
* <file name="sample-po-search-execute/sample-po-search-execute.component.ts"> </file>
|
|
23421
|
+
* </example>
|
|
23422
|
+
*
|
|
23267
23423
|
* <example name="po-search-fields-locate" title="PO Search Form Fields with Locate">
|
|
23268
23424
|
* <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.html"> </file>
|
|
23269
23425
|
* <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.ts"> </file>
|
|
@@ -23310,6 +23466,11 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23310
23466
|
searchFilter = {};
|
|
23311
23467
|
searchFilterSelectLabel;
|
|
23312
23468
|
searchFilterSelectActions;
|
|
23469
|
+
idSearchButtonClean = ID_SEARCH_BUTTON_CLEAN;
|
|
23470
|
+
showFooterActionListbox = false;
|
|
23471
|
+
showSeparator = false;
|
|
23472
|
+
placeholderListbox;
|
|
23473
|
+
modelSelected;
|
|
23313
23474
|
constructor() {
|
|
23314
23475
|
const languageService = inject(PoLanguageService);
|
|
23315
23476
|
super(languageService);
|
|
@@ -23318,11 +23479,12 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23318
23479
|
ngOnInit() {
|
|
23319
23480
|
this.filteredItems = this.items;
|
|
23320
23481
|
if (this.showListbox) {
|
|
23321
|
-
this.listboxFilteredItems = this.listboxItems;
|
|
23482
|
+
this.listboxFilteredItems = this.keysLabel.length === 0 ? this.listboxItems : this.items;
|
|
23322
23483
|
}
|
|
23323
23484
|
if (this.filterSelect) {
|
|
23324
23485
|
this.createDropdownFilterSelect();
|
|
23325
23486
|
}
|
|
23487
|
+
this.showFooterActionListbox = this.footerAction.observed;
|
|
23326
23488
|
}
|
|
23327
23489
|
ngOnChanges(changes) {
|
|
23328
23490
|
if (changes.filterSelect?.currentValue) {
|
|
@@ -23332,6 +23494,18 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23332
23494
|
this.updateShowSearchLocateControls();
|
|
23333
23495
|
this.updatePaddingRightLocate(true);
|
|
23334
23496
|
}
|
|
23497
|
+
if (changes.keysLabel) {
|
|
23498
|
+
this.showSeparator = this.keysLabel.length > 1;
|
|
23499
|
+
}
|
|
23500
|
+
this.configureSearchModeExecute(changes);
|
|
23501
|
+
}
|
|
23502
|
+
configureSearchModeExecute(changes) {
|
|
23503
|
+
if (changes.type?.currentValue === 'execute') {
|
|
23504
|
+
this.showListbox = true;
|
|
23505
|
+
if (!this.keysLabel.length && this.filterKeys?.length) {
|
|
23506
|
+
this.keysLabel = [...this.filterKeys.slice(0, 3)];
|
|
23507
|
+
}
|
|
23508
|
+
}
|
|
23335
23509
|
}
|
|
23336
23510
|
ngOnDestroy() {
|
|
23337
23511
|
this.removeListeners();
|
|
@@ -23342,8 +23516,11 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23342
23516
|
clearSearch() {
|
|
23343
23517
|
this.poSearchInput.nativeElement.value = '';
|
|
23344
23518
|
this.onSearchChange('', true);
|
|
23345
|
-
this.
|
|
23346
|
-
this.
|
|
23519
|
+
this.adjustContainerPosition();
|
|
23520
|
+
this.changeDetector.detectChanges();
|
|
23521
|
+
if (!this.showFooterActionListbox) {
|
|
23522
|
+
this.onCloseListbox();
|
|
23523
|
+
}
|
|
23347
23524
|
}
|
|
23348
23525
|
onCleanKeydown(event) {
|
|
23349
23526
|
const isEsc = event.key === 'Escape';
|
|
@@ -23357,7 +23534,9 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23357
23534
|
onEnterKey(event) {
|
|
23358
23535
|
if (this.type !== 'locate') {
|
|
23359
23536
|
if (this.listboxOpen) {
|
|
23360
|
-
this.
|
|
23537
|
+
if (!this.showFooterActionListbox) {
|
|
23538
|
+
this.closeListbox();
|
|
23539
|
+
}
|
|
23361
23540
|
}
|
|
23362
23541
|
else {
|
|
23363
23542
|
this.onSearchChange(event.target.value, this.type === 'trigger', true);
|
|
@@ -23369,19 +23548,13 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23369
23548
|
const searchTextInitial = searchText;
|
|
23370
23549
|
if (this.type === 'locate' && this.changeModel.observed) {
|
|
23371
23550
|
this.changeModel.emit(searchTextInitial);
|
|
23551
|
+
this.modelSelected = searchTextInitial;
|
|
23372
23552
|
return;
|
|
23373
23553
|
}
|
|
23374
23554
|
if (searchText !== undefined) {
|
|
23375
23555
|
searchText = searchText.toLowerCase();
|
|
23376
23556
|
}
|
|
23377
23557
|
this.isFiltering = true;
|
|
23378
|
-
if (this.showListbox && !buttonClick && searchText.length > 0) {
|
|
23379
|
-
this.openListbox();
|
|
23380
|
-
this.listboxFilteredItems = this.getListboxFilteredItems(searchText);
|
|
23381
|
-
}
|
|
23382
|
-
if (searchText.length === 0) {
|
|
23383
|
-
this.listboxFilteredItems = this.listboxItems;
|
|
23384
|
-
}
|
|
23385
23558
|
if (activated && !this.listboxItemclicked) {
|
|
23386
23559
|
this.updateFilteredItems(searchText);
|
|
23387
23560
|
this.filteredItemsChange.emit(this.filteredItems);
|
|
@@ -23399,6 +23572,17 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23399
23572
|
}
|
|
23400
23573
|
this.filter.emit(this.searchFilter);
|
|
23401
23574
|
this.changeModel.emit(searchText);
|
|
23575
|
+
this.modelSelected = searchTextInitial;
|
|
23576
|
+
}
|
|
23577
|
+
if (this.showListbox && !buttonClick && (searchText.length > 0 || this.showFooterActionListbox)) {
|
|
23578
|
+
this.openListbox();
|
|
23579
|
+
this.listboxFilteredItems = this.getListboxFilteredItems(searchText);
|
|
23580
|
+
this.handlerPlaceholderListbox();
|
|
23581
|
+
}
|
|
23582
|
+
else {
|
|
23583
|
+
if (searchText.length === 0) {
|
|
23584
|
+
this.listboxFilteredItems = this.keysLabel.length === 0 ? this.listboxItems : this.items;
|
|
23585
|
+
}
|
|
23402
23586
|
}
|
|
23403
23587
|
if (this.listboxItemclicked) {
|
|
23404
23588
|
this.listboxItemclicked = false;
|
|
@@ -23423,6 +23607,9 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23423
23607
|
return valuesToSearch.some(value => this.filterValue(value, searchText));
|
|
23424
23608
|
}
|
|
23425
23609
|
getListboxFilteredItems(searchText) {
|
|
23610
|
+
if (this.keysLabel.length > 0) {
|
|
23611
|
+
return searchText.length ? this.filteredItems : [];
|
|
23612
|
+
}
|
|
23426
23613
|
return this.listboxItems.filter(item => this.filterValue(item.value, searchText));
|
|
23427
23614
|
}
|
|
23428
23615
|
filterValue(value, searchText) {
|
|
@@ -23457,12 +23644,19 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23457
23644
|
if (!event || event.code === 'Enter') {
|
|
23458
23645
|
this.listboxItemclicked = true;
|
|
23459
23646
|
}
|
|
23460
|
-
|
|
23461
|
-
this.
|
|
23647
|
+
let value = option.value;
|
|
23648
|
+
if (this.keysLabel.length) {
|
|
23649
|
+
value = option[this.keysLabel[0]];
|
|
23650
|
+
}
|
|
23651
|
+
this.poSearchInput.nativeElement.value = value;
|
|
23652
|
+
this.listboxOnClick.emit(value);
|
|
23653
|
+
if (this.keysLabel.length) {
|
|
23654
|
+
this.items.forEach(item => delete item.selected);
|
|
23655
|
+
}
|
|
23462
23656
|
this.onCloseListbox();
|
|
23463
23657
|
if (this.type === 'action') {
|
|
23464
23658
|
this.listboxItemclicked = false;
|
|
23465
|
-
this.onSearchChange(
|
|
23659
|
+
this.onSearchChange(value.toString(), true, true);
|
|
23466
23660
|
}
|
|
23467
23661
|
}
|
|
23468
23662
|
onBlur() {
|
|
@@ -23474,7 +23668,7 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23474
23668
|
if (this.blur.observed) {
|
|
23475
23669
|
this.blur.emit();
|
|
23476
23670
|
}
|
|
23477
|
-
if (this.listboxOpen) {
|
|
23671
|
+
if (this.listboxOpen && !this.showFooterActionListbox) {
|
|
23478
23672
|
if (!this.poListbox.items.length) {
|
|
23479
23673
|
this.closeListbox();
|
|
23480
23674
|
}
|
|
@@ -23489,6 +23683,7 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23489
23683
|
this.updateShowSearchLocateControls();
|
|
23490
23684
|
this.updatePaddingRightLocate(false);
|
|
23491
23685
|
}
|
|
23686
|
+
this.openListboxFooterAction();
|
|
23492
23687
|
}
|
|
23493
23688
|
onInputHandler(value) {
|
|
23494
23689
|
if (this.type === 'locate') {
|
|
@@ -23498,7 +23693,9 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23498
23693
|
}
|
|
23499
23694
|
else {
|
|
23500
23695
|
this.onSearchChange(value, false);
|
|
23501
|
-
this.onSearchChange(value, this.type
|
|
23696
|
+
this.onSearchChange(value, ['action', 'execute'].includes(this.type));
|
|
23697
|
+
this.adjustContainerPosition();
|
|
23698
|
+
this.changeDetector.detectChanges();
|
|
23502
23699
|
}
|
|
23503
23700
|
}
|
|
23504
23701
|
onKeyDown(event) {
|
|
@@ -23531,7 +23728,7 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23531
23728
|
}
|
|
23532
23729
|
}
|
|
23533
23730
|
focusItem() {
|
|
23534
|
-
const listboxItemList =
|
|
23731
|
+
const listboxItemList = this.poListboxElement?.nativeElement?.querySelectorAll('.po-listbox-item');
|
|
23535
23732
|
setTimeout(() => {
|
|
23536
23733
|
Array.from(listboxItemList).forEach((el) => {
|
|
23537
23734
|
el.tabIndex = -1;
|
|
@@ -23554,11 +23751,13 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23554
23751
|
}
|
|
23555
23752
|
}
|
|
23556
23753
|
openListbox() {
|
|
23557
|
-
this.listboxOpen
|
|
23558
|
-
|
|
23559
|
-
|
|
23560
|
-
|
|
23561
|
-
|
|
23754
|
+
if (!this.listboxOpen) {
|
|
23755
|
+
this.listboxOpen = true;
|
|
23756
|
+
this.changeDetector.detectChanges();
|
|
23757
|
+
this.initializeListeners();
|
|
23758
|
+
this.poSearchInput.nativeElement.focus();
|
|
23759
|
+
this.setContainerPosition();
|
|
23760
|
+
}
|
|
23562
23761
|
}
|
|
23563
23762
|
closeListbox() {
|
|
23564
23763
|
this.listboxOpen = false;
|
|
@@ -23568,7 +23767,8 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23568
23767
|
clickedOutsideInput(event) {
|
|
23569
23768
|
if (this.listboxOpen &&
|
|
23570
23769
|
!this.poSearchInput?.nativeElement?.contains(event.target) &&
|
|
23571
|
-
!this.poListboxElement?.nativeElement?.contains(event.target)
|
|
23770
|
+
!this.poListboxElement?.nativeElement?.contains(event.target) &&
|
|
23771
|
+
!(this.showFooterActionListbox && event.target.closest(`#${this.idSearchButtonClean}`))) {
|
|
23572
23772
|
this.closeListbox();
|
|
23573
23773
|
}
|
|
23574
23774
|
}
|
|
@@ -23657,12 +23857,30 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
23657
23857
|
this.onSearchChange(this.getInputValue(), true);
|
|
23658
23858
|
}
|
|
23659
23859
|
}
|
|
23860
|
+
handlerFooterActionListbox() {
|
|
23861
|
+
this.footerAction.emit();
|
|
23862
|
+
this.closeListbox();
|
|
23863
|
+
}
|
|
23864
|
+
openListboxFooterAction() {
|
|
23865
|
+
if (this.showFooterActionListbox && this.showListbox && !this.modelSelected) {
|
|
23866
|
+
this.listboxFilteredItems = [];
|
|
23867
|
+
this.handlerPlaceholderListbox();
|
|
23868
|
+
this.openListbox();
|
|
23869
|
+
}
|
|
23870
|
+
}
|
|
23871
|
+
handlerPlaceholderListbox() {
|
|
23872
|
+
if (this.showFooterActionListbox && !this.listboxFilteredItems.length && this.getInputValue().length == 0) {
|
|
23873
|
+
this.placeholderListbox = this.literals.placeholderListbox;
|
|
23874
|
+
return;
|
|
23875
|
+
}
|
|
23876
|
+
this.placeholderListbox = null;
|
|
23877
|
+
}
|
|
23660
23878
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23661
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoSearchComponent, isStandalone: false, selector: "po-search", providers: [PoControlPositionService], viewQueries: [{ propertyName: "locateCounter", first: true, predicate: ["locateCounter"], descendants: true }, { propertyName: "poSearchInput", first: true, predicate: ["poSearchInput"], descendants: true, read: ElementRef, static: true }, { propertyName: "poListboxContainerElement", first: true, predicate: ["poListboxContainerElement"], descendants: true, read: ElementRef }, { propertyName: "poListboxElement", first: true, predicate: ["poListboxElement"], descendants: true, read: ElementRef }, { propertyName: "poListbox", first: true, predicate: ["poListbox"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"po-search\"\n [class.po-search-disabled]=\"disabled\"\n [class.po-search-filter-locate]=\"type === 'locate'\"\n [attr.p-search-type]=\"type === 'locate'\"\n [attr.p-size]=\"size\"\n>\n @if (filterSelect && type !== 'locate') {\n <div class=\"po-search-select\">\n <po-dropdown\n [p-label]=\"searchFilterSelectLabel\"\n [p-disabled]=\"disabled\"\n [p-actions]=\"searchFilterSelectActions\"\n [p-size]=\"size\"\n >\n </po-dropdown>\n </div>\n }\n\n @if (type === 'action' || type === 'locate') {\n <div class=\"po-search-icon\">\n <po-icon [p-icon]=\"icon ? icon : 'ICON_SEARCH'\"></po-icon>\n </div>\n }\n\n <input\n #poSearchInput\n class=\"po-search-input\"\n type=\"text\"\n [ariaLabel]=\"ariaLabel\"\n [class.po-search-input-clean]=\"!!poSearchInput.value && !disabled && type !== 'locate'\"\n [class.po-search-input-trigger]=\"type === 'trigger'\"\n [style.padding-right.px]=\"dynamicPaddingRight\"\n [disabled]=\"disabled\"\n [placeholder]=\"literals.search\"\n (input)=\"onInputHandler($event.target.value)\"\n (keyup.enter)=\"onEnterKey($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n />\n\n <div class=\"po-search-buttons\">\n @if (type === 'locate' && poSearchInput.value && !disabled) {\n <span\n #locateCounter\n class=\"po-search-locate-counter\"\n id=\"summary\"\n [attr.aria-label]=\"\n literals.result +\n ' ' +\n (locateSummary?.currentIndex ?? 0) +\n ' ' +\n literals.of +\n ' ' +\n (locateSummary?.total ?? 0)\n \"\n >\n {{ locateSummary?.currentIndex ?? 0 }}/{{ locateSummary?.total ?? 0 }}\n </span>\n }\n\n @if (!!poSearchInput.value && !disabled) {\n <button\n
|
|
23879
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoSearchComponent, isStandalone: false, selector: "po-search", providers: [PoControlPositionService], viewQueries: [{ propertyName: "locateCounter", first: true, predicate: ["locateCounter"], descendants: true }, { propertyName: "poSearchInput", first: true, predicate: ["poSearchInput"], descendants: true, read: ElementRef, static: true }, { propertyName: "poListboxContainerElement", first: true, predicate: ["poListboxContainerElement"], descendants: true, read: ElementRef }, { propertyName: "poListboxElement", first: true, predicate: ["poListboxElement"], descendants: true, read: ElementRef }, { propertyName: "poListbox", first: true, predicate: ["poListbox"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"po-search\"\n [class.po-search-disabled]=\"disabled\"\n [class.po-search-filter-locate]=\"type === 'locate'\"\n [attr.p-search-type]=\"type === 'locate'\"\n [attr.p-size]=\"size\"\n>\n @if (filterSelect && type !== 'locate') {\n <div class=\"po-search-select\">\n <po-dropdown\n [p-label]=\"searchFilterSelectLabel\"\n [p-disabled]=\"disabled\"\n [p-actions]=\"searchFilterSelectActions\"\n [p-size]=\"size\"\n >\n </po-dropdown>\n </div>\n }\n\n @if (type === 'action' || type === 'locate' || type === 'execute') {\n <div class=\"po-search-icon\">\n <po-icon [p-icon]=\"icon ? icon : 'ICON_SEARCH'\"></po-icon>\n </div>\n }\n\n <input\n #poSearchInput\n class=\"po-search-input\"\n type=\"text\"\n [ariaLabel]=\"ariaLabel\"\n [class.po-search-input-clean]=\"!!poSearchInput.value && !disabled && type !== 'locate'\"\n [class.po-search-input-trigger]=\"type === 'trigger'\"\n [style.padding-right.px]=\"dynamicPaddingRight\"\n [disabled]=\"disabled\"\n [placeholder]=\"literals.search\"\n (input)=\"onInputHandler($event.target.value)\"\n (keyup.enter)=\"onEnterKey($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n />\n\n <div class=\"po-search-buttons\">\n @if (type === 'locate' && poSearchInput.value && !disabled) {\n <span\n #locateCounter\n class=\"po-search-locate-counter\"\n id=\"summary\"\n [attr.aria-label]=\"\n literals.result +\n ' ' +\n (locateSummary?.currentIndex ?? 0) +\n ' ' +\n literals.of +\n ' ' +\n (locateSummary?.total ?? 0)\n \"\n >\n {{ locateSummary?.currentIndex ?? 0 }}/{{ locateSummary?.total ?? 0 }}\n </span>\n }\n\n @if (!!poSearchInput.value && !disabled) {\n <div [id]=\"idSearchButtonClean\">\n <button\n class=\"po-search-button po-search-button-clean\"\n type=\"button\"\n [ariaLabel]=\"literals.clean\"\n (click)=\"clearSearch()\"\n (keydown.enter)=\"clearSearch()\"\n (keydown)=\"onCleanKeydown($event)\"\n >\n <po-clean class=\"po-icon-input\" [p-size]=\"size\"></po-clean>\n </button>\n </div>\n }\n\n @if (type === 'trigger') {\n <button\n class=\"po-search-button po-search-button-trigger\"\n type=\"button\"\n [ariaLabel]=\"literals.search\"\n [disabled]=\"disabled\"\n (click)=\"onSearchChange(poSearchInput.value, true, true)\"\n (keydown.enter)=\"onSearchChange(poSearchInput.value, true, true)\"\n >\n <po-icon [p-icon]=\"icon ? icon : 'ICON_SEARCH'\"> </po-icon>\n </button>\n }\n\n @if (showSearchLocateControls) {\n <div class=\"po-search-locate-controls\">\n <div class=\"po-search-divider\"></div>\n <button\n name=\"btnArrowUp\"\n class=\"po-search-button\"\n [ariaLabel]=\"literals.next\"\n [disabled]=\"disabled || !locateSummary?.total\"\n (click)=\"locateNext.emit()\"\n >\n <po-icon p-icon=\"ICON_ARROW_DOWN\"> </po-icon>\n </button>\n\n <button\n name=\"btnArrowDown\"\n class=\"po-search-button\"\n [ariaLabel]=\"literals.previous\"\n [disabled]=\"disabled || !locateSummary?.total\"\n (click)=\"locatePrevious.emit()\"\n >\n <po-icon p-icon=\"ICON_ARROW_UP\"> </po-icon>\n </button>\n </div>\n }\n </div>\n</div>\n\n@if (type !== 'locate') {\n <div #poListboxContainerElement class=\"po-search-listbox-container\" [hidden]=\"!listboxOpen\">\n <po-listbox\n #poListbox\n #poListboxElement\n p-type=\"option\"\n [p-items]=\"listboxFilteredItems\"\n (p-selectcombo-item)=\"onListboxClick($event, $event.event)\"\n [p-visible]=\"listboxOpen\"\n [p-filter-mode]=\"filterType\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-filtering]=\"isFiltering\"\n [p-search-value]=\"getInputValue()\"\n [p-size]=\"size\"\n (p-close)=\"onCloseListbox()\"\n [p-literals]=\"literals\"\n [p-separator]=\"showSeparator\"\n [p-keys-label]=\"keysLabel\"\n [p-footer-action-listbox]=\"showFooterActionListbox\"\n (p-footer-action-listbox-event)=\"handlerFooterActionListbox()\"\n [p-placeholder-listbox]=\"placeholderListbox\"\n ></po-listbox>\n </div>\n}\n", dependencies: [{ kind: "component", type: PoCleanComponent, selector: "po-clean" }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "component", type: PoListBoxComponent, selector: "po-listbox" }, { kind: "component", type: PoDropdownComponent, selector: "po-dropdown" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23662
23880
|
}
|
|
23663
23881
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoSearchComponent, decorators: [{
|
|
23664
23882
|
type: Component,
|
|
23665
|
-
args: [{ selector: 'po-search', providers: [PoControlPositionService], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"po-search\"\n [class.po-search-disabled]=\"disabled\"\n [class.po-search-filter-locate]=\"type === 'locate'\"\n [attr.p-search-type]=\"type === 'locate'\"\n [attr.p-size]=\"size\"\n>\n @if (filterSelect && type !== 'locate') {\n <div class=\"po-search-select\">\n <po-dropdown\n [p-label]=\"searchFilterSelectLabel\"\n [p-disabled]=\"disabled\"\n [p-actions]=\"searchFilterSelectActions\"\n [p-size]=\"size\"\n >\n </po-dropdown>\n </div>\n }\n\n @if (type === 'action' || type === 'locate') {\n <div class=\"po-search-icon\">\n <po-icon [p-icon]=\"icon ? icon : 'ICON_SEARCH'\"></po-icon>\n </div>\n }\n\n <input\n #poSearchInput\n class=\"po-search-input\"\n type=\"text\"\n [ariaLabel]=\"ariaLabel\"\n [class.po-search-input-clean]=\"!!poSearchInput.value && !disabled && type !== 'locate'\"\n [class.po-search-input-trigger]=\"type === 'trigger'\"\n [style.padding-right.px]=\"dynamicPaddingRight\"\n [disabled]=\"disabled\"\n [placeholder]=\"literals.search\"\n (input)=\"onInputHandler($event.target.value)\"\n (keyup.enter)=\"onEnterKey($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n />\n\n <div class=\"po-search-buttons\">\n @if (type === 'locate' && poSearchInput.value && !disabled) {\n <span\n #locateCounter\n class=\"po-search-locate-counter\"\n id=\"summary\"\n [attr.aria-label]=\"\n literals.result +\n ' ' +\n (locateSummary?.currentIndex ?? 0) +\n ' ' +\n literals.of +\n ' ' +\n (locateSummary?.total ?? 0)\n \"\n >\n {{ locateSummary?.currentIndex ?? 0 }}/{{ locateSummary?.total ?? 0 }}\n </span>\n }\n\n @if (!!poSearchInput.value && !disabled) {\n <button\n
|
|
23883
|
+
args: [{ selector: 'po-search', providers: [PoControlPositionService], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"po-search\"\n [class.po-search-disabled]=\"disabled\"\n [class.po-search-filter-locate]=\"type === 'locate'\"\n [attr.p-search-type]=\"type === 'locate'\"\n [attr.p-size]=\"size\"\n>\n @if (filterSelect && type !== 'locate') {\n <div class=\"po-search-select\">\n <po-dropdown\n [p-label]=\"searchFilterSelectLabel\"\n [p-disabled]=\"disabled\"\n [p-actions]=\"searchFilterSelectActions\"\n [p-size]=\"size\"\n >\n </po-dropdown>\n </div>\n }\n\n @if (type === 'action' || type === 'locate' || type === 'execute') {\n <div class=\"po-search-icon\">\n <po-icon [p-icon]=\"icon ? icon : 'ICON_SEARCH'\"></po-icon>\n </div>\n }\n\n <input\n #poSearchInput\n class=\"po-search-input\"\n type=\"text\"\n [ariaLabel]=\"ariaLabel\"\n [class.po-search-input-clean]=\"!!poSearchInput.value && !disabled && type !== 'locate'\"\n [class.po-search-input-trigger]=\"type === 'trigger'\"\n [style.padding-right.px]=\"dynamicPaddingRight\"\n [disabled]=\"disabled\"\n [placeholder]=\"literals.search\"\n (input)=\"onInputHandler($event.target.value)\"\n (keyup.enter)=\"onEnterKey($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n />\n\n <div class=\"po-search-buttons\">\n @if (type === 'locate' && poSearchInput.value && !disabled) {\n <span\n #locateCounter\n class=\"po-search-locate-counter\"\n id=\"summary\"\n [attr.aria-label]=\"\n literals.result +\n ' ' +\n (locateSummary?.currentIndex ?? 0) +\n ' ' +\n literals.of +\n ' ' +\n (locateSummary?.total ?? 0)\n \"\n >\n {{ locateSummary?.currentIndex ?? 0 }}/{{ locateSummary?.total ?? 0 }}\n </span>\n }\n\n @if (!!poSearchInput.value && !disabled) {\n <div [id]=\"idSearchButtonClean\">\n <button\n class=\"po-search-button po-search-button-clean\"\n type=\"button\"\n [ariaLabel]=\"literals.clean\"\n (click)=\"clearSearch()\"\n (keydown.enter)=\"clearSearch()\"\n (keydown)=\"onCleanKeydown($event)\"\n >\n <po-clean class=\"po-icon-input\" [p-size]=\"size\"></po-clean>\n </button>\n </div>\n }\n\n @if (type === 'trigger') {\n <button\n class=\"po-search-button po-search-button-trigger\"\n type=\"button\"\n [ariaLabel]=\"literals.search\"\n [disabled]=\"disabled\"\n (click)=\"onSearchChange(poSearchInput.value, true, true)\"\n (keydown.enter)=\"onSearchChange(poSearchInput.value, true, true)\"\n >\n <po-icon [p-icon]=\"icon ? icon : 'ICON_SEARCH'\"> </po-icon>\n </button>\n }\n\n @if (showSearchLocateControls) {\n <div class=\"po-search-locate-controls\">\n <div class=\"po-search-divider\"></div>\n <button\n name=\"btnArrowUp\"\n class=\"po-search-button\"\n [ariaLabel]=\"literals.next\"\n [disabled]=\"disabled || !locateSummary?.total\"\n (click)=\"locateNext.emit()\"\n >\n <po-icon p-icon=\"ICON_ARROW_DOWN\"> </po-icon>\n </button>\n\n <button\n name=\"btnArrowDown\"\n class=\"po-search-button\"\n [ariaLabel]=\"literals.previous\"\n [disabled]=\"disabled || !locateSummary?.total\"\n (click)=\"locatePrevious.emit()\"\n >\n <po-icon p-icon=\"ICON_ARROW_UP\"> </po-icon>\n </button>\n </div>\n }\n </div>\n</div>\n\n@if (type !== 'locate') {\n <div #poListboxContainerElement class=\"po-search-listbox-container\" [hidden]=\"!listboxOpen\">\n <po-listbox\n #poListbox\n #poListboxElement\n p-type=\"option\"\n [p-items]=\"listboxFilteredItems\"\n (p-selectcombo-item)=\"onListboxClick($event, $event.event)\"\n [p-visible]=\"listboxOpen\"\n [p-filter-mode]=\"filterType\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-filtering]=\"isFiltering\"\n [p-search-value]=\"getInputValue()\"\n [p-size]=\"size\"\n (p-close)=\"onCloseListbox()\"\n [p-literals]=\"literals\"\n [p-separator]=\"showSeparator\"\n [p-keys-label]=\"keysLabel\"\n [p-footer-action-listbox]=\"showFooterActionListbox\"\n (p-footer-action-listbox-event)=\"handlerFooterActionListbox()\"\n [p-placeholder-listbox]=\"placeholderListbox\"\n ></po-listbox>\n </div>\n}\n" }]
|
|
23666
23884
|
}], ctorParameters: () => [], propDecorators: { locateCounter: [{
|
|
23667
23885
|
type: ViewChild,
|
|
23668
23886
|
args: ['locateCounter', { static: false }]
|
|
@@ -27035,7 +27253,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27035
27253
|
useExisting: forwardRef(() => PoComboComponent),
|
|
27036
27254
|
multi: true
|
|
27037
27255
|
}
|
|
27038
|
-
], queries: [{ propertyName: "comboOptionTemplate", first: true, predicate: PoComboOptionTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "outerContainer", first: true, predicate: ["outerContainer "], descendants: true, read: ElementRef }, { propertyName: "containerElement", first: true, predicate: ["containerElement"], descendants: true, read: ElementRef }, { propertyName: "contentElement", first: true, predicate: ["contentElement"], descendants: true, read: ElementRef }, { propertyName: "iconElement", first: true, predicate: ["iconArrow"], descendants: true, read: ElementRef, static: true }, { propertyName: "inputEl", first: true, predicate: ["inp"], descendants: true, read: ElementRef, static: true }, { propertyName: "poListbox", first: true, predicate: ["poListbox"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #outerContainer>\n <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\n #searchContainer\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-combo-container-content\"\n >\n <div class=\"po-combo-container-wrapper\">\n @if (icon) {\n <div class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon po-icon-input\"\n [class.po-field-icon-disabled]=\"disabled\"\n [class.po-field-icon-aa]=\"size === 'small'\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n }\n\n <input\n #inp\n class=\"po-combo-input\"\n [ngClass]=\"\n clean && inp.value\n ? size === 'small'\n ? 'po-input-double-icon-right-aa'\n : 'po-input-double-icon-right'\n : size === 'small'\n ? 'po-input-icon-right-aa'\n : 'po-input-icon-right'\n \"\n [class.po-combo-input-aa]=\"size === 'small'\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-left-aa]=\"icon && size === 'small'\"\n autocomplete=\"off\"\n type=\"text\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [required]=\"required\"\n [attr.data-append-in-body]=\"appendBox\"\n (click)=\"toggleComboVisibility()\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur($event)\"\n (keyup)=\"searchOnEnterOrArrow($event, $event.target.value)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n @if (isCleanVisible()) {\n <po-clean\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-combo-clean po-icon-input\"\n [class.po-combo-clean-aa]=\"size === 'small'\"\n [p-element-ref]=\"inputEl\"\n [p-size]=\"size\"\n (p-change-event)=\"clear($event)\"\n (click)=\"clear(null); $event.preventDefault()\"\n (keydown.enter)=\"clearAndFocus(); $event.preventDefault()\"\n (keydown.tab)=\"handleCleanKeyboardTab($event)\"\n >\n </po-clean>\n }\n\n <div\n #iconArrow\n class=\"po-combo-arrow po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [class.po-field-icon-disabled-aa]=\"disabled && size === 'small'\"\n (click)=\"toggleComboVisibility(true)\"\n >\n <po-icon\n [p-icon]=\"comboOpen ? 'ICON_ARROW_UP po-icon-input' : 'ICON_ARROW_DOWN po-icon-input'\"\n [class.po-field-icon]=\"!disabled\"\n [class.po-field-icon-aa]=\"size === 'small'\"\n [class.po-combo-default-border]=\"!disabled && inp.value\"\n [class.po-combo-background-arrow-up]=\"!disabled && comboOpen\"\n ></po-icon>\n </div>\n </div>\n </div>\n </div>\n\n @if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n } @else {\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n }\n\n <po-field-container-bottom\n [p-additional-help-tooltip]=\"getAdditionalHelpTooltip()\"\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-show-additional-help]=\"displayAdditionalHelp\"\n [p-show-additional-help-icon]=\"showAdditionalHelpIcon()\"\n (p-additional-help)=\"emitAdditionalHelp()\"\n ></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\n <div #containerElement class=\"po-combo-container\" [hidden]=\"!comboOpen && !isServerSearching\">\n <po-listbox\n #poListbox\n #contentElement\n p-type=\"option\"\n [p-items]=\"visibleOptions\"\n [p-field-value]=\"dynamicValue\"\n [p-field-label]=\"dynamicLabel\"\n [p-template]=\"comboOptionTemplate\"\n [p-search-value]=\"getInputValue()\"\n [p-infinite-loading]=\"infiniteLoading\"\n [p-infinite-scroll]=\"infiniteScroll\"\n [p-filtering]=\"isFiltering\"\n [p-cache]=\"cache\"\n [p-filter-mode]=\"filterMode\"\n [p-visible]=\"comboOpen\"\n [p-is-searching]=\"isServerSearching\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareObjects(cacheOptions, visibleOptions)\"\n [p-combo-service]=\"service\"\n [p-infinite-scroll-distance]=\"infiniteScrollDistance\"\n [p-size]=\"size\"\n [p-container-width]=\"containerWidth\"\n (p-selectcombo-item)=\"onOptionClick($event, $event.event)\"\n (p-update-infinite-scroll)=\"showMoreInfiniteScroll()\"\n (p-close)=\"onCloseCombo()\"\n (keydown)=\"onListboxKeyDown($event)\"\n ></po-listbox>\n </div>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$
|
|
27256
|
+
], queries: [{ propertyName: "comboOptionTemplate", first: true, predicate: PoComboOptionTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "outerContainer", first: true, predicate: ["outerContainer "], descendants: true, read: ElementRef }, { propertyName: "containerElement", first: true, predicate: ["containerElement"], descendants: true, read: ElementRef }, { propertyName: "contentElement", first: true, predicate: ["contentElement"], descendants: true, read: ElementRef }, { propertyName: "iconElement", first: true, predicate: ["iconArrow"], descendants: true, read: ElementRef, static: true }, { propertyName: "inputEl", first: true, predicate: ["inp"], descendants: true, read: ElementRef, static: true }, { propertyName: "poListbox", first: true, predicate: ["poListbox"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #outerContainer>\n <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\n #searchContainer\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-combo-container-content\"\n >\n <div class=\"po-combo-container-wrapper\">\n @if (icon) {\n <div class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon po-icon-input\"\n [class.po-field-icon-disabled]=\"disabled\"\n [class.po-field-icon-aa]=\"size === 'small'\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n }\n\n <input\n #inp\n class=\"po-combo-input\"\n [ngClass]=\"\n clean && inp.value\n ? size === 'small'\n ? 'po-input-double-icon-right-aa'\n : 'po-input-double-icon-right'\n : size === 'small'\n ? 'po-input-icon-right-aa'\n : 'po-input-icon-right'\n \"\n [class.po-combo-input-aa]=\"size === 'small'\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-left-aa]=\"icon && size === 'small'\"\n autocomplete=\"off\"\n type=\"text\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [required]=\"required\"\n [attr.data-append-in-body]=\"appendBox\"\n (click)=\"toggleComboVisibility()\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur($event)\"\n (keyup)=\"searchOnEnterOrArrow($event, $event.target.value)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n @if (isCleanVisible()) {\n <po-clean\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-combo-clean po-icon-input\"\n [class.po-combo-clean-aa]=\"size === 'small'\"\n [p-element-ref]=\"inputEl\"\n [p-size]=\"size\"\n (p-change-event)=\"clear($event)\"\n (click)=\"clear(null); $event.preventDefault()\"\n (keydown.enter)=\"clearAndFocus(); $event.preventDefault()\"\n (keydown.tab)=\"handleCleanKeyboardTab($event)\"\n >\n </po-clean>\n }\n\n <div\n #iconArrow\n class=\"po-combo-arrow po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [class.po-field-icon-disabled-aa]=\"disabled && size === 'small'\"\n (click)=\"toggleComboVisibility(true)\"\n >\n <po-icon\n [p-icon]=\"comboOpen ? 'ICON_ARROW_UP po-icon-input' : 'ICON_ARROW_DOWN po-icon-input'\"\n [class.po-field-icon]=\"!disabled\"\n [class.po-field-icon-aa]=\"size === 'small'\"\n [class.po-combo-default-border]=\"!disabled && inp.value\"\n [class.po-combo-background-arrow-up]=\"!disabled && comboOpen\"\n ></po-icon>\n </div>\n </div>\n </div>\n </div>\n\n @if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n } @else {\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n }\n\n <po-field-container-bottom\n [p-additional-help-tooltip]=\"getAdditionalHelpTooltip()\"\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-show-additional-help]=\"displayAdditionalHelp\"\n [p-show-additional-help-icon]=\"showAdditionalHelpIcon()\"\n (p-additional-help)=\"emitAdditionalHelp()\"\n ></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\n <div #containerElement class=\"po-combo-container\" [hidden]=\"!comboOpen && !isServerSearching\">\n <po-listbox\n #poListbox\n #contentElement\n p-type=\"option\"\n [p-items]=\"visibleOptions\"\n [p-field-value]=\"dynamicValue\"\n [p-field-label]=\"dynamicLabel\"\n [p-template]=\"comboOptionTemplate\"\n [p-search-value]=\"getInputValue()\"\n [p-infinite-loading]=\"infiniteLoading\"\n [p-infinite-scroll]=\"infiniteScroll\"\n [p-filtering]=\"isFiltering\"\n [p-cache]=\"cache\"\n [p-filter-mode]=\"filterMode\"\n [p-visible]=\"comboOpen\"\n [p-is-searching]=\"isServerSearching\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareObjects(cacheOptions, visibleOptions)\"\n [p-combo-service]=\"service\"\n [p-infinite-scroll-distance]=\"infiniteScrollDistance\"\n [p-size]=\"size\"\n [p-container-width]=\"containerWidth\"\n (p-selectcombo-item)=\"onOptionClick($event, $event.event)\"\n (p-update-infinite-scroll)=\"showMoreInfiniteScroll()\"\n (p-close)=\"onCloseCombo()\"\n (keydown)=\"onListboxKeyDown($event)\"\n ></po-listbox>\n </div>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: PoCleanComponent, selector: "po-clean" }, { kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-additional-help-tooltip", "p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-show-additional-help", "p-show-additional-help-icon"], outputs: ["p-additional-help"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-optional", "p-required", "p-show-required"] }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "component", type: PoListBoxComponent, selector: "po-listbox" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27039
27257
|
}
|
|
27040
27258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoComboComponent, decorators: [{
|
|
27041
27259
|
type: Component,
|
|
@@ -34204,7 +34422,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
34204
34422
|
this.adjustContainerPosition();
|
|
34205
34423
|
}
|
|
34206
34424
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoMultiselectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34207
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoMultiselectComponent, isStandalone: false, selector: "po-multiselect", providers: providers$1, queries: [{ propertyName: "multiselectOptionTemplate", first: true, predicate: PoMultiselectOptionTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "dropdownElement", first: true, predicate: ["dropdownElement"], descendants: true, read: ElementRef }, { propertyName: "dropdown", first: true, predicate: ["dropdownElement"], descendants: true }, { propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef, static: true }, { propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, read: ElementRef, static: true }, { propertyName: "outerContainer", first: true, predicate: ["outerContainer "], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #outerContainer>\n <po-field-container\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n >\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content\"\n [class.po-multiselect-show]=\"dropdownOpen\"\n >\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n class=\"po-input-icon-right po-multiselect-input\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n [class.po-multiselect-input-font]=\"!disabled && !visibleTags?.length\"\n [class.po-multiselect-input-aa]=\"size === 'small'\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur($event)\"\n >\n @if (!disabled && !visibleTags?.length) {\n <span\n class=\"po-multiselect-input-placeholder\"\n [class.po-multiselect-input-placeholder-aa]=\"size === 'small'\"\n ria-hidden=\"true\"\n >\n {{ placeholder ? placeholder : literals.selectItem }}\n </span>\n }\n\n @for (tag of visibleTags; track tag; let i = $index) {\n <po-tag\n [p-value]=\"tag[fieldLabel]\"\n [p-literals]=\"i + 1 === visibleTags.length && hasMoreTag ? literalsTag : undefined\"\n [p-removable]=\"true\"\n [class.po-clickable]=\"tag[fieldValue] === '' && !disabled\"\n [p-disabled]=\"disabled\"\n (p-close)=\"closeTag(tag[fieldValue], $event)\"\n [p-append-in-body]=\"appendBox\"\n ></po-tag>\n }\n\n <div class=\"po-field-icon-container-right\">\n <po-icon\n p-icon=\"{{ dropdownIcon }}\"\n #iconElement\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-aa]=\"size === 'small'\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n\n @if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n } @else {\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n }\n\n <po-field-container-bottom\n [p-additional-help-tooltip]=\"getAdditionalHelpTooltip()\"\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-show-additional-help]=\"displayAdditionalHelp\"\n [p-show-additional-help-icon]=\"showAdditionalHelpIcon()\"\n (p-additional-help)=\"emitAdditionalHelp()\"\n ></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\n <po-multiselect-dropdown\n #dropdownElement\n [p-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-literals]=\"literals\"\n [p-options]=\"options\"\n [p-visible-options]=\"visibleOptionsDropdown\"\n [p-selected-options]=\"selectedOptions\"\n [p-placeholder-search]=\"placeholderSearch\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-multiselect-template]=\"multiselectOptionTemplate\"\n [p-size]=\"size\"\n [p-container-width]=\"containerWidth\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n (keydown)=\"onKeyDownDropdown($event, 0)\"\n >\n </po-multiselect-dropdown>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$
|
|
34425
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoMultiselectComponent, isStandalone: false, selector: "po-multiselect", providers: providers$1, queries: [{ propertyName: "multiselectOptionTemplate", first: true, predicate: PoMultiselectOptionTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "dropdownElement", first: true, predicate: ["dropdownElement"], descendants: true, read: ElementRef }, { propertyName: "dropdown", first: true, predicate: ["dropdownElement"], descendants: true }, { propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef, static: true }, { propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, read: ElementRef, static: true }, { propertyName: "outerContainer", first: true, predicate: ["outerContainer "], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #outerContainer>\n <po-field-container\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n >\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content\"\n [class.po-multiselect-show]=\"dropdownOpen\"\n >\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n class=\"po-input-icon-right po-multiselect-input\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n [class.po-multiselect-input-font]=\"!disabled && !visibleTags?.length\"\n [class.po-multiselect-input-aa]=\"size === 'small'\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur($event)\"\n >\n @if (!disabled && !visibleTags?.length) {\n <span\n class=\"po-multiselect-input-placeholder\"\n [class.po-multiselect-input-placeholder-aa]=\"size === 'small'\"\n ria-hidden=\"true\"\n >\n {{ placeholder ? placeholder : literals.selectItem }}\n </span>\n }\n\n @for (tag of visibleTags; track tag; let i = $index) {\n <po-tag\n [p-value]=\"tag[fieldLabel]\"\n [p-literals]=\"i + 1 === visibleTags.length && hasMoreTag ? literalsTag : undefined\"\n [p-removable]=\"true\"\n [class.po-clickable]=\"tag[fieldValue] === '' && !disabled\"\n [p-disabled]=\"disabled\"\n (p-close)=\"closeTag(tag[fieldValue], $event)\"\n [p-append-in-body]=\"appendBox\"\n ></po-tag>\n }\n\n <div class=\"po-field-icon-container-right\">\n <po-icon\n p-icon=\"{{ dropdownIcon }}\"\n #iconElement\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-aa]=\"size === 'small'\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n\n @if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n } @else {\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n }\n\n <po-field-container-bottom\n [p-additional-help-tooltip]=\"getAdditionalHelpTooltip()\"\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-show-additional-help]=\"displayAdditionalHelp\"\n [p-show-additional-help-icon]=\"showAdditionalHelpIcon()\"\n (p-additional-help)=\"emitAdditionalHelp()\"\n ></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\n <po-multiselect-dropdown\n #dropdownElement\n [p-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-literals]=\"literals\"\n [p-options]=\"options\"\n [p-visible-options]=\"visibleOptionsDropdown\"\n [p-selected-options]=\"selectedOptions\"\n [p-placeholder-search]=\"placeholderSearch\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-multiselect-template]=\"multiselectOptionTemplate\"\n [p-size]=\"size\"\n [p-container-width]=\"containerWidth\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n (keydown)=\"onKeyDownDropdown($event, 0)\"\n >\n </po-multiselect-dropdown>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-additional-help-tooltip", "p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-show-additional-help", "p-show-additional-help-icon"], outputs: ["p-additional-help"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-optional", "p-required", "p-show-required"] }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "component", type: PoTagComponent, selector: "po-tag" }, { kind: "component", type: PoMultiselectDropdownComponent, selector: "po-multiselect-dropdown", inputs: ["p-searching", "p-hide-search", "p-literals", "p-placeholder-search", "p-selected-options", "p-options", "p-visible-options", "p-hide-select-all", "p-field-value", "p-field-label", "p-multiselect-template", "p-container-width", "p-size"], outputs: ["p-change-search", "p-change", "p-close-dropdown"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34208
34426
|
}
|
|
34209
34427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoMultiselectComponent, decorators: [{
|
|
34210
34428
|
type: Component,
|
|
@@ -45765,6 +45983,8 @@ class PoNavbarBaseComponent {
|
|
|
45765
45983
|
_shadow = false;
|
|
45766
45984
|
language = poLocaleDefault;
|
|
45767
45985
|
/**
|
|
45986
|
+
* @deprecated v23.x.x
|
|
45987
|
+
*
|
|
45768
45988
|
* @optional
|
|
45769
45989
|
*
|
|
45770
45990
|
* @description
|
|
@@ -45778,6 +45998,8 @@ class PoNavbarBaseComponent {
|
|
|
45778
45998
|
return this._iconActions;
|
|
45779
45999
|
}
|
|
45780
46000
|
/**
|
|
46001
|
+
* @deprecated v23.x.x
|
|
46002
|
+
*
|
|
45781
46003
|
* @optional
|
|
45782
46004
|
*
|
|
45783
46005
|
* @description
|
|
@@ -45791,6 +46013,8 @@ class PoNavbarBaseComponent {
|
|
|
45791
46013
|
return this._items;
|
|
45792
46014
|
}
|
|
45793
46015
|
/**
|
|
46016
|
+
* @deprecated v23.x.x
|
|
46017
|
+
*
|
|
45794
46018
|
* @optional
|
|
45795
46019
|
*
|
|
45796
46020
|
* @description
|
|
@@ -45832,6 +46056,8 @@ class PoNavbarBaseComponent {
|
|
|
45832
46056
|
return this._literals || poNavbarLiteralsDefault$1[this.language];
|
|
45833
46057
|
}
|
|
45834
46058
|
/**
|
|
46059
|
+
* @deprecated v23.x.x
|
|
46060
|
+
*
|
|
45835
46061
|
* @optional
|
|
45836
46062
|
*
|
|
45837
46063
|
* @description
|
|
@@ -45848,6 +46074,8 @@ class PoNavbarBaseComponent {
|
|
|
45848
46074
|
return this._logo;
|
|
45849
46075
|
}
|
|
45850
46076
|
/**
|
|
46077
|
+
* @deprecated v23.x.x
|
|
46078
|
+
*
|
|
45851
46079
|
* @optional
|
|
45852
46080
|
*
|
|
45853
46081
|
* @description
|
|
@@ -45861,6 +46089,8 @@ class PoNavbarBaseComponent {
|
|
|
45861
46089
|
*/
|
|
45862
46090
|
logoAlt;
|
|
45863
46091
|
/**
|
|
46092
|
+
* @deprecated v23.x.x
|
|
46093
|
+
*
|
|
45864
46094
|
* @optional
|
|
45865
46095
|
*
|
|
45866
46096
|
* @description
|
|
@@ -45908,6 +46138,8 @@ const poNavbarMenuMedia = 768;
|
|
|
45908
46138
|
const poNavbarMatchMedia = `(max-width: ${poNavbarMenuMedia}px)`;
|
|
45909
46139
|
const poNavbarTiming = '250ms ease';
|
|
45910
46140
|
/**
|
|
46141
|
+
* @deprecated v23.x.x use `po-header`
|
|
46142
|
+
*
|
|
45911
46143
|
* @docsExtends PoNavbarBaseComponent
|
|
45912
46144
|
*/
|
|
45913
46145
|
class PoNavbarComponent extends PoNavbarBaseComponent {
|
|
@@ -46116,12 +46348,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
46116
46348
|
}] } });
|
|
46117
46349
|
|
|
46118
46350
|
/**
|
|
46351
|
+
* @deprecated v23.x.x use `po-header`
|
|
46352
|
+
*
|
|
46119
46353
|
* @description
|
|
46120
46354
|
*
|
|
46121
46355
|
* Módulo do componente `po-navbar`.
|
|
46122
|
-
*
|
|
46356
|
+
* > Esse componente está **depreciado** e será removido na `v23.x.x`. Recomendamos utilizar o componente
|
|
46357
|
+
* [po-header](https://po-ui.io/documentation/po-header), que oferece compatibilidade com todas as funcionalidades do
|
|
46358
|
+
* `po-navbar`, além de maior flexibilidade, usabilidade e acessibilidade.
|
|
46359
|
+
* >
|
|
46123
46360
|
* > Para o correto funcionamento do componente `po-navbar`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
46124
|
-
*
|
|
46361
|
+
* módulo principal da sua aplicação.
|
|
46125
46362
|
*
|
|
46126
46363
|
* Módulo da aplicação:
|
|
46127
46364
|
* ```
|