@po-ui/ng-components 19.39.6 → 19.39.8
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 +89 -20
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-avatar/po-avatar.component.d.ts +1 -0
- package/lib/components/po-container/po-container.component.d.ts +1 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -0
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -0
- package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +10 -2
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +2 -0
- package/lib/components/po-menu/po-menu.component.d.ts +2 -0
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +1 -0
- package/lib/components/po-popover/po-popover-base.component.d.ts +3 -1
- package/lib/components/po-popover/po-popover.component.d.ts +4 -0
- package/lib/components/po-popup/po-popup.component.d.ts +2 -0
- package/lib/components/po-progress/po-progress.component.d.ts +1 -0
- package/lib/components/po-search/po-search.component.d.ts +3 -0
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -0
- package/lib/components/po-tag/po-tag.component.d.ts +1 -0
- package/lib/components/po-widget/po-widget.component.d.ts +2 -0
- package/lib/services/po-control-position/po-control-position.service.d.ts +1 -1
- package/package.json +4 -4
- package/po-ui-ng-components-19.39.8.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.39.6.tgz +0 -0
|
@@ -2392,7 +2392,7 @@ class PoControlPositionService {
|
|
|
2392
2392
|
* @param targetElement elemento de onde deve partir a exibição
|
|
2393
2393
|
* @param customPositions posições que sobrescreve as posições padrões
|
|
2394
2394
|
* @param isSetElementWidth indica se deve definir o tamanho do elemento a ser exibido, caso for verdadeiro será igual do targetElement
|
|
2395
|
-
* @param isCornerAligned indica se o elemento filho será alinhado nos cantos do
|
|
2395
|
+
* @param isCornerAligned indica se o elemento filho será alinhado nos cantos do elemento pai.
|
|
2396
2396
|
*/
|
|
2397
2397
|
setElements(element, elementOffset, targetElement, customPositions, isSetElementWidth = false, isCornerAligned = false) {
|
|
2398
2398
|
this.element = element instanceof ElementRef ? element.nativeElement : element;
|
|
@@ -2852,8 +2852,13 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
hideTooltip() {
|
|
2854
2854
|
if (this.tooltipContent) {
|
|
2855
|
-
|
|
2856
|
-
|
|
2855
|
+
try {
|
|
2856
|
+
this.renderer.setStyle(this.tooltipContent, 'opacity', 0);
|
|
2857
|
+
this.renderer.setStyle(this.tooltipContent, 'visibility', 'hidden');
|
|
2858
|
+
}
|
|
2859
|
+
catch (e) {
|
|
2860
|
+
// Tolerate errors when DOM element is partially destroyed during teardown
|
|
2861
|
+
}
|
|
2857
2862
|
this.isHidden = true;
|
|
2858
2863
|
this.removeScrollEventListener();
|
|
2859
2864
|
}
|
|
@@ -2942,6 +2947,7 @@ const poTagTypeDefault = 'po-tag-' + PoTagType.Info;
|
|
|
2942
2947
|
* <example name="po-tag-labs" title="PO Tag Labs">
|
|
2943
2948
|
* <file name="sample-po-tag-labs/sample-po-tag-labs.component.html"> </file>
|
|
2944
2949
|
* <file name="sample-po-tag-labs/sample-po-tag-labs.component.ts"> </file>
|
|
2950
|
+
* <file name="sample-po-tag-labs/sample-po-tag-labs.component.css"> </file>
|
|
2945
2951
|
* </example>
|
|
2946
2952
|
*
|
|
2947
2953
|
* <example name="po-tag-bank-account" title="PO Tag - Bank Account">
|
|
@@ -3936,6 +3942,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
3936
3942
|
* <example name="po-avatar-business-card" title="PO Avatar - Business Card" >
|
|
3937
3943
|
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.html"> </file>
|
|
3938
3944
|
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts"> </file>
|
|
3945
|
+
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.css"> </file>
|
|
3939
3946
|
* </example>
|
|
3940
3947
|
*/
|
|
3941
3948
|
class PoAvatarComponent extends PoAvatarBaseComponent {
|
|
@@ -4285,11 +4292,11 @@ class PoBadgeComponent extends PoBadgeBaseComponent {
|
|
|
4285
4292
|
return value > PO_BADGE_MAX_NOTIFICATIONS ? '9+' : value.toString();
|
|
4286
4293
|
}
|
|
4287
4294
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoBadgeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4288
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoBadgeComponent, isStandalone: false, selector: "po-badge", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"{{ getChangeStyle() }} po-badge po-badge-{{ size ? size : 'medium' }}\"\n [class.po-badge-notification]=\"isNotification && !status\"\n [class.po-badge-border]=\"showBorder\"\n [attr.data-status]=\"status\"\n [ariaLabel]=\"notificationLabel\"\n [ngStyle]=\"customColor && !status ? { 'background-color': customColor } : {}\"\n>\n @if (!isNotification && size !== 'small' && badgeIcon && status !== 'disabled') {\n <po-icon [p-icon]=\"badgeIcon\"></po-icon>\n }\n @if (value > 1) {\n <span class=\"po-badge-value\" aria-hidden=\"true\">{{ badgeValue }}</span>\n }\n</div>\n",
|
|
4295
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoBadgeComponent, isStandalone: false, selector: "po-badge", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"{{ getChangeStyle() }} po-badge po-badge-{{ size ? size : 'medium' }}\"\n [class.po-badge-notification]=\"isNotification && !status\"\n [class.po-badge-border]=\"showBorder\"\n [attr.data-status]=\"status\"\n [ariaLabel]=\"notificationLabel\"\n [ngStyle]=\"customColor && !status ? { 'background-color': customColor } : {}\"\n>\n @if (!isNotification && size !== 'small' && badgeIcon && status !== 'disabled') {\n <po-icon [p-icon]=\"badgeIcon\"></po-icon>\n }\n @if (value > 1) {\n <span class=\"po-badge-value\" aria-hidden=\"true\">{{ badgeValue }}</span>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }] });
|
|
4289
4296
|
}
|
|
4290
4297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoBadgeComponent, decorators: [{
|
|
4291
4298
|
type: Component,
|
|
4292
|
-
args: [{ selector: 'po-badge', standalone: false, template: "<div\n class=\"{{ getChangeStyle() }} po-badge po-badge-{{ size ? size : 'medium' }}\"\n [class.po-badge-notification]=\"isNotification && !status\"\n [class.po-badge-border]=\"showBorder\"\n [attr.data-status]=\"status\"\n [ariaLabel]=\"notificationLabel\"\n [ngStyle]=\"customColor && !status ? { 'background-color': customColor } : {}\"\n>\n @if (!isNotification && size !== 'small' && badgeIcon && status !== 'disabled') {\n <po-icon [p-icon]=\"badgeIcon\"></po-icon>\n }\n @if (value > 1) {\n <span class=\"po-badge-value\" aria-hidden=\"true\">{{ badgeValue }}</span>\n }\n</div>\n"
|
|
4299
|
+
args: [{ selector: 'po-badge', standalone: false, template: "<div\n class=\"{{ getChangeStyle() }} po-badge po-badge-{{ size ? size : 'medium' }}\"\n [class.po-badge-notification]=\"isNotification && !status\"\n [class.po-badge-border]=\"showBorder\"\n [attr.data-status]=\"status\"\n [ariaLabel]=\"notificationLabel\"\n [ngStyle]=\"customColor && !status ? { 'background-color': customColor } : {}\"\n>\n @if (!isNotification && size !== 'small' && badgeIcon && status !== 'disabled') {\n <po-icon [p-icon]=\"badgeIcon\"></po-icon>\n }\n @if (value > 1) {\n <span class=\"po-badge-value\" aria-hidden=\"true\">{{ badgeValue }}</span>\n }\n</div>\n" }]
|
|
4293
4300
|
}] });
|
|
4294
4301
|
|
|
4295
4302
|
/**
|
|
@@ -5560,11 +5567,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
5560
5567
|
* <example name="po-loading-overlay-basic" title="PO Loading Overlay Basic">
|
|
5561
5568
|
* <file name="sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.html"> </file>
|
|
5562
5569
|
* <file name="sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.ts"> </file>
|
|
5570
|
+
* <file name="sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.css"> </file>
|
|
5563
5571
|
* </example>
|
|
5564
5572
|
*
|
|
5565
5573
|
* <example name="po-loading-overlay-labs" title="PO Loading Overlay Labs">
|
|
5566
5574
|
* <file name="sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.html"> </file>
|
|
5567
5575
|
* <file name="sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.ts"> </file>
|
|
5576
|
+
* <file name="sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.css"> </file>
|
|
5568
5577
|
* </example>
|
|
5569
5578
|
*
|
|
5570
5579
|
* <example name="po-loading-overlay-connection-test" title="PO Loading Overlay - Connection Test">
|
|
@@ -6844,6 +6853,8 @@ class PoPopoverBaseComponent {
|
|
|
6844
6853
|
* @default `false`
|
|
6845
6854
|
*/
|
|
6846
6855
|
appendBox = false;
|
|
6856
|
+
// Indica se o elemento filho será alinhado nos cantos do elemento pai.
|
|
6857
|
+
cornerAligned = false;
|
|
6847
6858
|
/**
|
|
6848
6859
|
* @description
|
|
6849
6860
|
*
|
|
@@ -6890,6 +6901,8 @@ class PoPopoverBaseComponent {
|
|
|
6890
6901
|
target;
|
|
6891
6902
|
/** Título do popover. */
|
|
6892
6903
|
title;
|
|
6904
|
+
// Define o width do popover.
|
|
6905
|
+
width;
|
|
6893
6906
|
/** Evento disparado ao fechar o popover. */
|
|
6894
6907
|
closePopover = new EventEmitter();
|
|
6895
6908
|
/** Evento disparado ao abrir o popover. */
|
|
@@ -6982,7 +6995,7 @@ class PoPopoverBaseComponent {
|
|
|
6982
6995
|
*/
|
|
6983
6996
|
customClasses = input(undefined, { alias: 'p-custom-classes' });
|
|
6984
6997
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoPopoverBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6985
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.7", type: PoPopoverBaseComponent, isStandalone: false, selector: "po-popover-base", inputs: { appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, target: { classPropertyName: "target", publicName: "p-target", isSignal: false, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "p-title", isSignal: false, isRequired: false, transformFunction: null }, hideArrow: { classPropertyName: "hideArrow", publicName: "p-hide-arrow", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "p-position", isSignal: false, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "p-trigger", isSignal: false, isRequired: false, transformFunction: null }, customClasses: { classPropertyName: "customClasses", publicName: "p-custom-classes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closePopover: "p-close", openPopover: "p-open" }, ngImport: i0, template: '', isInline: true });
|
|
6998
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.7", type: PoPopoverBaseComponent, isStandalone: false, selector: "po-popover-base", inputs: { appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, cornerAligned: { classPropertyName: "cornerAligned", publicName: "p-corner-aligned", isSignal: false, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "p-target", isSignal: false, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "p-title", isSignal: false, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "p-width", isSignal: false, isRequired: false, transformFunction: null }, hideArrow: { classPropertyName: "hideArrow", publicName: "p-hide-arrow", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "p-position", isSignal: false, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "p-trigger", isSignal: false, isRequired: false, transformFunction: null }, customClasses: { classPropertyName: "customClasses", publicName: "p-custom-classes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closePopover: "p-close", openPopover: "p-open" }, ngImport: i0, template: '', isInline: true });
|
|
6986
6999
|
}
|
|
6987
7000
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoPopoverBaseComponent, decorators: [{
|
|
6988
7001
|
type: Component,
|
|
@@ -6994,12 +7007,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
6994
7007
|
}], propDecorators: { appendBox: [{
|
|
6995
7008
|
type: Input,
|
|
6996
7009
|
args: [{ alias: 'p-append-in-body', transform: convertToBoolean }]
|
|
7010
|
+
}], cornerAligned: [{
|
|
7011
|
+
type: Input,
|
|
7012
|
+
args: ['p-corner-aligned']
|
|
6997
7013
|
}], target: [{
|
|
6998
7014
|
type: Input,
|
|
6999
7015
|
args: ['p-target']
|
|
7000
7016
|
}], title: [{
|
|
7001
7017
|
type: Input,
|
|
7002
7018
|
args: ['p-title']
|
|
7019
|
+
}], width: [{
|
|
7020
|
+
type: Input,
|
|
7021
|
+
args: ['p-width']
|
|
7003
7022
|
}], closePopover: [{
|
|
7004
7023
|
type: Output,
|
|
7005
7024
|
args: ['p-close']
|
|
@@ -7047,8 +7066,10 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7047
7066
|
timeoutResize;
|
|
7048
7067
|
targetElement;
|
|
7049
7068
|
afterViewInitWasCalled = false;
|
|
7069
|
+
widthPopover = undefined;
|
|
7050
7070
|
keydownTargetListener;
|
|
7051
7071
|
keydownPopoverListener;
|
|
7072
|
+
resizeObserver;
|
|
7052
7073
|
eventListenerFunction;
|
|
7053
7074
|
tabbableSelector = [
|
|
7054
7075
|
'a[href]:not([tabindex="-1"])',
|
|
@@ -7088,10 +7109,12 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7088
7109
|
this.setRendererListenInit();
|
|
7089
7110
|
}
|
|
7090
7111
|
ngOnDestroy() {
|
|
7112
|
+
this.disconnectResizeObserver();
|
|
7091
7113
|
this.removeListeners();
|
|
7092
7114
|
}
|
|
7093
7115
|
close() {
|
|
7094
7116
|
this.isHidden = true;
|
|
7117
|
+
this.disconnectResizeObserver();
|
|
7095
7118
|
this.closePopover.emit();
|
|
7096
7119
|
if (this.trigger === 'function' && this.clickoutListener) {
|
|
7097
7120
|
this.clickoutListener();
|
|
@@ -7113,6 +7136,16 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7113
7136
|
this.setPopoverPosition();
|
|
7114
7137
|
this.setOpacity(1);
|
|
7115
7138
|
this.openPopover.emit();
|
|
7139
|
+
this.observeContentResize();
|
|
7140
|
+
if (this.cornerAligned && !this.width) {
|
|
7141
|
+
const el = this.popoverElement.nativeElement;
|
|
7142
|
+
el.style.width = 'auto';
|
|
7143
|
+
const width = el.scrollWidth;
|
|
7144
|
+
this.widthPopover = width;
|
|
7145
|
+
requestAnimationFrame(() => {
|
|
7146
|
+
this.setPopoverPosition();
|
|
7147
|
+
});
|
|
7148
|
+
}
|
|
7116
7149
|
this.cd.detectChanges();
|
|
7117
7150
|
});
|
|
7118
7151
|
if (this.trigger === 'function') {
|
|
@@ -7207,7 +7240,7 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7207
7240
|
}
|
|
7208
7241
|
setElementsControlPosition() {
|
|
7209
7242
|
const popoverOffset = 8;
|
|
7210
|
-
this.poControlPosition.setElements(this.popoverElement.nativeElement, popoverOffset, this.target);
|
|
7243
|
+
this.poControlPosition.setElements(this.popoverElement.nativeElement, popoverOffset, this.target, undefined, false, this.cornerAligned);
|
|
7211
7244
|
}
|
|
7212
7245
|
focusOnTarget() {
|
|
7213
7246
|
const el = this.targetElement;
|
|
@@ -7312,12 +7345,32 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7312
7345
|
const prev = docTabs[idx - 1] || docTabs[docTabs.length - 1];
|
|
7313
7346
|
prev?.focus?.();
|
|
7314
7347
|
}
|
|
7348
|
+
observeContentResize() {
|
|
7349
|
+
this.disconnectResizeObserver();
|
|
7350
|
+
if (!this.popoverElement?.nativeElement)
|
|
7351
|
+
return;
|
|
7352
|
+
let initialCall = true;
|
|
7353
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
7354
|
+
if (initialCall) {
|
|
7355
|
+
initialCall = false;
|
|
7356
|
+
return;
|
|
7357
|
+
}
|
|
7358
|
+
this.setElementsControlPosition();
|
|
7359
|
+
this.setPopoverPosition();
|
|
7360
|
+
this.cd.detectChanges();
|
|
7361
|
+
});
|
|
7362
|
+
this.resizeObserver.observe(this.popoverElement.nativeElement);
|
|
7363
|
+
}
|
|
7364
|
+
disconnectResizeObserver() {
|
|
7365
|
+
this.resizeObserver?.disconnect();
|
|
7366
|
+
this.resizeObserver = null;
|
|
7367
|
+
}
|
|
7315
7368
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoPopoverComponent, deps: [{ token: i0.Renderer2 }, { token: PoControlPositionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7316
|
-
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\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"target\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\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
|
|
7369
|
+
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\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"target\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\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\n #popoverElement\n [hidden]=\"isHidden\"\n class=\"po-popover\"\n [style.width.px]=\"width ?? widthPopover\"\n [ngClass]=\"customClasses()\"\n >\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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.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"] }] });
|
|
7317
7370
|
}
|
|
7318
7371
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoPopoverComponent, decorators: [{
|
|
7319
7372
|
type: Component,
|
|
7320
|
-
args: [{ selector: 'po-popover', providers: [PoControlPositionService], standalone: false, template: "@if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"target\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\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
|
|
7373
|
+
args: [{ selector: 'po-popover', providers: [PoControlPositionService], standalone: false, template: "@if (appendBox) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"target\"\n [cdkConnectedOverlayOpen]=\"true\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n >\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\n #popoverElement\n [hidden]=\"isHidden\"\n class=\"po-popover\"\n [style.width.px]=\"width ?? widthPopover\"\n [ngClass]=\"customClasses()\"\n >\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" }]
|
|
7321
7374
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: PoControlPositionService }, { type: i0.ChangeDetectorRef }], propDecorators: { popoverElement: [{
|
|
7322
7375
|
type: ViewChild,
|
|
7323
7376
|
args: ['popoverElement', { read: ElementRef, static: false }]
|
|
@@ -8682,11 +8735,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
8682
8735
|
* <example name="po-popup-labs" title="PO Popup - Labs">
|
|
8683
8736
|
* <file name="sample-po-popup-labs/sample-po-popup-labs.component.html"> </file>
|
|
8684
8737
|
* <file name="sample-po-popup-labs/sample-po-popup-labs.component.ts"> </file>
|
|
8738
|
+
* <file name="sample-po-popup-labs/sample-po-popup-labs.component.css"> </file>
|
|
8685
8739
|
* </example>
|
|
8686
8740
|
*
|
|
8687
8741
|
* <example name="po-popup-email" title="PO Popup Email">
|
|
8688
8742
|
* <file name="sample-po-popup-email/sample-po-popup-email.component.html"> </file>
|
|
8689
8743
|
* <file name="sample-po-popup-email/sample-po-popup-email.component.ts"> </file>
|
|
8744
|
+
* <file name="sample-po-popup-email/sample-po-popup-email.component.css"> </file>
|
|
8690
8745
|
* </example>
|
|
8691
8746
|
*
|
|
8692
8747
|
*/
|
|
@@ -8802,7 +8857,7 @@ class PoPopupComponent extends PoPopupBaseComponent {
|
|
|
8802
8857
|
}
|
|
8803
8858
|
onScroll = ({ target }) => {
|
|
8804
8859
|
const { showPopup, popupRef } = this;
|
|
8805
|
-
if (showPopup && popupRef?.nativeElement && !popupRef.nativeElement.contains(target)) {
|
|
8860
|
+
if (showPopup && popupRef?.nativeElement && target instanceof Node && !popupRef.nativeElement.contains(target)) {
|
|
8806
8861
|
this.close();
|
|
8807
8862
|
}
|
|
8808
8863
|
};
|
|
@@ -12942,6 +12997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
12942
12997
|
* <example name="po-container-dashboard" title="PO Container - Dashboard">
|
|
12943
12998
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.html"> </file>
|
|
12944
12999
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.ts"> </file>
|
|
13000
|
+
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.css"> </file>
|
|
12945
13001
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.service.ts"> </file>
|
|
12946
13002
|
* </example>
|
|
12947
13003
|
*/
|
|
@@ -16977,10 +17033,10 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
16977
17033
|
if (this.readonly || $event?.target !== this.inputEl?.nativeElement) {
|
|
16978
17034
|
return;
|
|
16979
17035
|
}
|
|
16980
|
-
this.objMask
|
|
17036
|
+
this.objMask?.keyup($event);
|
|
16981
17037
|
// Controla a atualização do model, verificando se a data é valida
|
|
16982
|
-
if (this.objMask
|
|
16983
|
-
if (this.objMask
|
|
17038
|
+
if (this.objMask?.valueToModel || this.objMask?.valueToModel === '') {
|
|
17039
|
+
if (this.objMask?.valueToModel.length >= 10) {
|
|
16984
17040
|
this.controlModel(this.getDateFromString(this.inputEl.nativeElement.value));
|
|
16985
17041
|
this.date = this.getDateFromString(this.inputEl.nativeElement.value);
|
|
16986
17042
|
}
|
|
@@ -17111,9 +17167,9 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
17111
17167
|
this.onTouchedModel?.();
|
|
17112
17168
|
const date = this.inputEl.nativeElement.value;
|
|
17113
17169
|
const newDate = date ? this.getDateFromString(date) : undefined;
|
|
17114
|
-
this.objMask
|
|
17170
|
+
this.objMask?.blur($event);
|
|
17115
17171
|
this.onblur.emit();
|
|
17116
|
-
if (this.objMask
|
|
17172
|
+
if (this.objMask?.valueToModel) {
|
|
17117
17173
|
if (this.objMask.valueToModel.length >= 10) {
|
|
17118
17174
|
this.controlModel(newDate);
|
|
17119
17175
|
this.date = newDate;
|
|
@@ -17137,7 +17193,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
17137
17193
|
}
|
|
17138
17194
|
else {
|
|
17139
17195
|
// Atualiza a posição do cursor ao clicar
|
|
17140
|
-
this.objMask
|
|
17196
|
+
this.objMask?.click($event);
|
|
17141
17197
|
}
|
|
17142
17198
|
}
|
|
17143
17199
|
onKeyDown(event) {
|
|
@@ -18323,6 +18379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
18323
18379
|
* <example name="po-progress-labs" title="PO Progress Labs">
|
|
18324
18380
|
* <file name="sample-po-progress-labs/sample-po-progress-labs.component.html"> </file>
|
|
18325
18381
|
* <file name="sample-po-progress-labs/sample-po-progress-labs.component.ts"> </file>
|
|
18382
|
+
* <file name="sample-po-progress-labs/sample-po-progress-labs.component.css"> </file>
|
|
18326
18383
|
* </example>
|
|
18327
18384
|
*
|
|
18328
18385
|
* <example name="po-progress-publication" title="PO Progress - Publication">
|
|
@@ -25280,12 +25337,14 @@ const ID_SEARCH_BUTTON_CLEAN = 'search-button-clean';
|
|
|
25280
25337
|
* <example name="po-search-labs" title="PO Search Labs">
|
|
25281
25338
|
* <file name="sample-po-search-labs/sample-po-search-labs.component.html"> </file>
|
|
25282
25339
|
* <file name="sample-po-search-labs/sample-po-search-labs.component.ts"> </file>
|
|
25340
|
+
* <file name="sample-po-search-labs/sample-po-search-labs.component.css"> </file>
|
|
25283
25341
|
* <file name="sample-po-search-labs/sample-po-search-labs.service.ts"> </file>
|
|
25284
25342
|
* </example>
|
|
25285
25343
|
*
|
|
25286
25344
|
* <example name="po-search-find-people" title="PO Search Find People">
|
|
25287
25345
|
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.html"> </file>
|
|
25288
25346
|
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.ts"> </file>
|
|
25347
|
+
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.css"> </file>
|
|
25289
25348
|
* <file name="sample-po-search-find-people/sample-po-search-find-people.service.ts"> </file>
|
|
25290
25349
|
* </example>
|
|
25291
25350
|
*
|
|
@@ -25303,6 +25362,7 @@ const ID_SEARCH_BUTTON_CLEAN = 'search-button-clean';
|
|
|
25303
25362
|
* <example name="po-search-execute" title="PO Search Form Fields with Execute">
|
|
25304
25363
|
* <file name="sample-po-search-execute/sample-po-search-execute.component.html"> </file>
|
|
25305
25364
|
* <file name="sample-po-search-execute/sample-po-search-execute.component.ts"> </file>
|
|
25365
|
+
* <file name="sample-po-search-execute/sample-po-search-execute.component.css"> </file>
|
|
25306
25366
|
* </example>
|
|
25307
25367
|
*
|
|
25308
25368
|
* <example name="po-search-fields-locate" title="PO Search Form Fields with Locate">
|
|
@@ -28627,6 +28687,7 @@ const poComboContainerOffset = 8;
|
|
|
28627
28687
|
* <example name="po-combo-scheduling" title="PO Combo - Scheduling">
|
|
28628
28688
|
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.component.html"> </file>
|
|
28629
28689
|
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.component.ts"> </file>
|
|
28690
|
+
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.component.css"> </file>
|
|
28630
28691
|
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.service.ts"> </file>
|
|
28631
28692
|
* </example>
|
|
28632
28693
|
*
|
|
@@ -37019,6 +37080,7 @@ const providers$1 = [
|
|
|
37019
37080
|
* <example name="po-multiselect-template" title="PO Multiselect - Template">
|
|
37020
37081
|
* <file name="sample-po-multiselect-template/sample-po-multiselect-template.component.html"> </file>
|
|
37021
37082
|
* <file name="sample-po-multiselect-template/sample-po-multiselect-template.component.ts"> </file>
|
|
37083
|
+
* <file name="sample-po-multiselect-template/sample-po-multiselect-template.component.css"> </file>
|
|
37022
37084
|
* </example>
|
|
37023
37085
|
*
|
|
37024
37086
|
* <example name="po-multiselect-heroes" title="PO Multiselect - Heroes - using API">
|
|
@@ -42085,6 +42147,7 @@ const PO_SELECT_FIELD_VALUE_DEFAULT = 'value';
|
|
|
42085
42147
|
* <example name="po-select-customer-registration" title="PO Select - Customer registration">
|
|
42086
42148
|
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.html"> </file>
|
|
42087
42149
|
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts"> </file>
|
|
42150
|
+
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.css"> </file>
|
|
42088
42151
|
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts"> </file>
|
|
42089
42152
|
* </example>
|
|
42090
42153
|
*
|
|
@@ -48994,11 +49057,13 @@ const poMenuRootLevel = 1;
|
|
|
48994
49057
|
* <example name="po-menu-labs" title="PO Menu Labs">
|
|
48995
49058
|
* <file name="sample-po-menu-labs/sample-po-menu-labs.component.html"> </file>
|
|
48996
49059
|
* <file name="sample-po-menu-labs/sample-po-menu-labs.component.ts"> </file>
|
|
49060
|
+
* <file name="sample-po-menu-labs/sample-po-menu-labs.component.css"> </file>
|
|
48997
49061
|
* </example>
|
|
48998
49062
|
*
|
|
48999
49063
|
* <example name="po-menu-human-resources" title="PO Menu - Human Resources">
|
|
49000
49064
|
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.component.html"> </file>
|
|
49001
49065
|
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.component.ts"> </file>
|
|
49066
|
+
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.component.css"> </file>
|
|
49002
49067
|
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.service.ts"> </file>
|
|
49003
49068
|
* </example>
|
|
49004
49069
|
*/
|
|
@@ -50569,6 +50634,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
50569
50634
|
* <example name="po-page-default-dashboard" title="PO Page Default - Dashboard">
|
|
50570
50635
|
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.html"> </file>
|
|
50571
50636
|
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.ts"> </file>
|
|
50637
|
+
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.css"> </file>
|
|
50572
50638
|
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.service.ts"> </file>
|
|
50573
50639
|
* </example>
|
|
50574
50640
|
*/
|
|
@@ -53157,6 +53223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
53157
53223
|
* <example name="po-stepper-sales" title="PO Stepper - Sales">
|
|
53158
53224
|
* <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.html"> </file>
|
|
53159
53225
|
* <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.ts"> </file>
|
|
53226
|
+
* <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.css"> </file>
|
|
53160
53227
|
* </example>
|
|
53161
53228
|
*
|
|
53162
53229
|
* <example name="po-stepper-active" title="PO Stepper - Active">
|
|
@@ -56085,11 +56152,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
|
56085
56152
|
* <example name="po-widget-labs" title="PO Widget Labs">
|
|
56086
56153
|
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.html"> </file>
|
|
56087
56154
|
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.ts"> </file>
|
|
56155
|
+
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.css"> </file>
|
|
56088
56156
|
* </example>
|
|
56089
56157
|
*
|
|
56090
56158
|
* <example name="po-widget-finance-dashboard" title="PO Widget - Finance dashboard">
|
|
56091
56159
|
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.html"> </file>
|
|
56092
56160
|
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts"> </file>
|
|
56161
|
+
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.css"> </file>
|
|
56093
56162
|
* </example>
|
|
56094
56163
|
*
|
|
56095
56164
|
* <example name="po-widget-card" title="PO Widget - Card">
|
|
@@ -56980,11 +57049,11 @@ class PoHeaderToolsComponent {
|
|
|
56980
57049
|
}
|
|
56981
57050
|
}
|
|
56982
57051
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoHeaderToolsComponent, deps: [{ token: i1$1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
56983
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoHeaderToolsComponent, isStandalone: false, selector: "po-header-tools", inputs: { forceActionTools: ["p-force-actions-tools", "forceActionTools"], actionTools: ["p-actions-tools", "actionTools"], literals: ["p-literals", "literals"], headerTemplate: ["p-header-template", "headerTemplate"] }, viewQueries: [{ propertyName: "buttonActionElements", predicate: ["buttonActionElement"], descendants: true, read: ElementRef }, { propertyName: "buttonActionComponents", predicate: ["buttonActionElement"], descendants: true }, { propertyName: "poPopupActions", predicate: ["poPopupAction"], descendants: true }, { propertyName: "poPopoverActions", predicate: ["poPopoverAction"], descendants: true }], ngImport: i0, template: "<div class=\"po-header-nav-tools\">\n @if (headerTemplate) {\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n }\n @for (action of actionTools; track action?.label; let i = $index) {\n <li [class.po-header-nav-item-small]=\"i !== actionTools.length - 1\">\n <po-button\n #buttonActionElement\n [p-tooltip]=\"action?.tooltip\"\n [p-icon]=\"action?.badge ? badge : action?.icon || 'an an-dots-nine'\"\n p-kind=\"tertiary\"\n (p-click)=\"onClickAction(i)\"\n [class.po-header-selected-tool]=\"checkSelected(i)\"\n [p-aria-expanded]=\"checkSelected(i)\"\n [p-aria-label]=\"getAriaLabel(action)\"\n p-size=\"medium\"\n >\n </po-button>\n\n <ng-template #badge>\n <i class=\"po-header-badge\" [class]=\"action?.icon || 'an an-bell'\">\n <po-badge class=\"po-header-status\" [p-value]=\"action?.badge\"></po-badge>\n </i>\n </ng-template>\n\n <po-popup\n #poPopupAction\n [p-actions]=\"action?.items\"\n [p-target]=\"buttonActionElements?.get(i)\"\n [p-hide-arrow]=\"true\"\n (p-close)=\"onClosePopup(i)\"\n p-size=\"medium\"\n >\n </po-popup>\n\n @if (action?.popover) {\n <po-popover\n #poPopoverAction\n [p-target]=\"buttonActionElements?.get(i)\"\n p-
|
|
57052
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoHeaderToolsComponent, isStandalone: false, selector: "po-header-tools", inputs: { forceActionTools: ["p-force-actions-tools", "forceActionTools"], actionTools: ["p-actions-tools", "actionTools"], literals: ["p-literals", "literals"], headerTemplate: ["p-header-template", "headerTemplate"] }, viewQueries: [{ propertyName: "buttonActionElements", predicate: ["buttonActionElement"], descendants: true, read: ElementRef }, { propertyName: "buttonActionComponents", predicate: ["buttonActionElement"], descendants: true }, { propertyName: "poPopupActions", predicate: ["poPopupAction"], descendants: true }, { propertyName: "poPopoverActions", predicate: ["poPopoverAction"], descendants: true }], ngImport: i0, template: "<div class=\"po-header-nav-tools\">\n @if (headerTemplate) {\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n }\n @for (action of actionTools; track action?.label; let i = $index) {\n <li [class.po-header-nav-item-small]=\"i !== actionTools.length - 1\">\n <po-button\n #buttonActionElement\n [p-tooltip]=\"action?.tooltip\"\n [p-icon]=\"action?.badge ? badge : action?.icon || 'an an-dots-nine'\"\n p-kind=\"tertiary\"\n (p-click)=\"onClickAction(i)\"\n [class.po-header-selected-tool]=\"checkSelected(i)\"\n [p-aria-expanded]=\"checkSelected(i)\"\n [p-aria-label]=\"getAriaLabel(action)\"\n p-size=\"medium\"\n >\n </po-button>\n\n <ng-template #badge>\n <i class=\"po-header-badge\" [class]=\"action?.icon || 'an an-bell'\">\n <po-badge class=\"po-header-status\" [p-value]=\"action?.badge\"></po-badge>\n </i>\n </ng-template>\n\n <po-popup\n #poPopupAction\n [p-actions]=\"action?.items\"\n [p-target]=\"buttonActionElements?.get(i)\"\n [p-hide-arrow]=\"true\"\n (p-close)=\"onClosePopup(i)\"\n p-size=\"medium\"\n >\n </po-popup>\n\n @if (action?.popover) {\n <po-popover\n #poPopoverAction\n p-position=\"bottom-right\"\n [p-width]=\"action.popover.width\"\n [p-target]=\"buttonActionElements?.get(i)\"\n [p-hide-arrow]=\"true\"\n [p-corner-aligned]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"action.popover?.content\"></ng-container>\n </po-popover>\n }\n </li>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoButtonComponent, selector: "po-button" }, { kind: "component", type: PoBadgeComponent, selector: "po-badge" }, { kind: "component", type: PoPopoverComponent, selector: "po-popover" }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }, { kind: "component", type: PoPopupComponent, selector: "po-popup" }] });
|
|
56984
57053
|
}
|
|
56985
57054
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoHeaderToolsComponent, decorators: [{
|
|
56986
57055
|
type: Component,
|
|
56987
|
-
args: [{ selector: 'po-header-tools', standalone: false, template: "<div class=\"po-header-nav-tools\">\n @if (headerTemplate) {\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n }\n @for (action of actionTools; track action?.label; let i = $index) {\n <li [class.po-header-nav-item-small]=\"i !== actionTools.length - 1\">\n <po-button\n #buttonActionElement\n [p-tooltip]=\"action?.tooltip\"\n [p-icon]=\"action?.badge ? badge : action?.icon || 'an an-dots-nine'\"\n p-kind=\"tertiary\"\n (p-click)=\"onClickAction(i)\"\n [class.po-header-selected-tool]=\"checkSelected(i)\"\n [p-aria-expanded]=\"checkSelected(i)\"\n [p-aria-label]=\"getAriaLabel(action)\"\n p-size=\"medium\"\n >\n </po-button>\n\n <ng-template #badge>\n <i class=\"po-header-badge\" [class]=\"action?.icon || 'an an-bell'\">\n <po-badge class=\"po-header-status\" [p-value]=\"action?.badge\"></po-badge>\n </i>\n </ng-template>\n\n <po-popup\n #poPopupAction\n [p-actions]=\"action?.items\"\n [p-target]=\"buttonActionElements?.get(i)\"\n [p-hide-arrow]=\"true\"\n (p-close)=\"onClosePopup(i)\"\n p-size=\"medium\"\n >\n </po-popup>\n\n @if (action?.popover) {\n <po-popover\n #poPopoverAction\n [p-target]=\"buttonActionElements?.get(i)\"\n p-
|
|
57056
|
+
args: [{ selector: 'po-header-tools', standalone: false, template: "<div class=\"po-header-nav-tools\">\n @if (headerTemplate) {\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n }\n @for (action of actionTools; track action?.label; let i = $index) {\n <li [class.po-header-nav-item-small]=\"i !== actionTools.length - 1\">\n <po-button\n #buttonActionElement\n [p-tooltip]=\"action?.tooltip\"\n [p-icon]=\"action?.badge ? badge : action?.icon || 'an an-dots-nine'\"\n p-kind=\"tertiary\"\n (p-click)=\"onClickAction(i)\"\n [class.po-header-selected-tool]=\"checkSelected(i)\"\n [p-aria-expanded]=\"checkSelected(i)\"\n [p-aria-label]=\"getAriaLabel(action)\"\n p-size=\"medium\"\n >\n </po-button>\n\n <ng-template #badge>\n <i class=\"po-header-badge\" [class]=\"action?.icon || 'an an-bell'\">\n <po-badge class=\"po-header-status\" [p-value]=\"action?.badge\"></po-badge>\n </i>\n </ng-template>\n\n <po-popup\n #poPopupAction\n [p-actions]=\"action?.items\"\n [p-target]=\"buttonActionElements?.get(i)\"\n [p-hide-arrow]=\"true\"\n (p-close)=\"onClosePopup(i)\"\n p-size=\"medium\"\n >\n </po-popup>\n\n @if (action?.popover) {\n <po-popover\n #poPopoverAction\n p-position=\"bottom-right\"\n [p-width]=\"action.popover.width\"\n [p-target]=\"buttonActionElements?.get(i)\"\n [p-hide-arrow]=\"true\"\n [p-corner-aligned]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"action.popover?.content\"></ng-container>\n </po-popover>\n }\n </li>\n }\n</div>\n" }]
|
|
56988
57057
|
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i0.ChangeDetectorRef }], propDecorators: { buttonActionElements: [{
|
|
56989
57058
|
type: ViewChildren,
|
|
56990
57059
|
args: ['buttonActionElement', { read: ElementRef }]
|
|
@@ -57063,11 +57132,11 @@ class PoHeaderCustomerComponent {
|
|
|
57063
57132
|
}
|
|
57064
57133
|
}
|
|
57065
57134
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoHeaderCustomerComponent, deps: [{ token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
57066
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoHeaderCustomerComponent, isStandalone: false, selector: "po-header-customer", inputs: { headerUser: ["p-header-user", "headerUser"] }, viewQueries: [{ propertyName: "poPopupAction", first: true, predicate: ["poPopupAction"], descendants: true }, { propertyName: "poPopoverAction", first: true, predicate: ["poPopoverAction"], descendants: true }], ngImport: i0, template: "<div class=\"po-header-nav-tools\" (click)=\"onClickUserSection()\" (keydown)=\"onKeyDownCustomer($event)\">\n <li\n #targetRef\n tabindex=\"0\"\n class=\"po-header-nav-customer-container\"\n (click)=\"onClickPopup()\"\n role=\"menu\"\n [attr.aria-label]=\"literals.labelUser\"\n >\n <div class=\"po-header-nav-customer-brand\">\n <img [src]=\"headerUser?.customerBrand\" alt=\"User\" />\n </div>\n\n <div class=\"po-header-nav-customer-divider\"></div>\n\n <div class=\"po-header-nav-customer-avatar-wrapper\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </div>\n </li>\n\n <li class=\"po-header-nav-customer-avatar-wrapper po-header-icon-small\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </li>\n</div>\n\n@if (headerUser?.items?.length) {\n <po-popup\n #poPopupAction\n [p-actions]=\"headerUser.items\"\n [p-target]=\"targetRef\"\n [p-hide-arrow]=\"true\"\n p-position=\"bottom-left\"\n p-size=\"medium\"\n >\n </po-popup>\n}\n\n@if (headerUser?.popover) {\n <po-popover
|
|
57135
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.7", type: PoHeaderCustomerComponent, isStandalone: false, selector: "po-header-customer", inputs: { headerUser: ["p-header-user", "headerUser"] }, viewQueries: [{ propertyName: "poPopupAction", first: true, predicate: ["poPopupAction"], descendants: true }, { propertyName: "poPopoverAction", first: true, predicate: ["poPopoverAction"], descendants: true }], ngImport: i0, template: "<div class=\"po-header-nav-tools\" (click)=\"onClickUserSection()\" (keydown)=\"onKeyDownCustomer($event)\">\n <li\n #targetRef\n tabindex=\"0\"\n class=\"po-header-nav-customer-container\"\n (click)=\"onClickPopup()\"\n role=\"menu\"\n [attr.aria-label]=\"literals.labelUser\"\n >\n <div class=\"po-header-nav-customer-brand\">\n <img [src]=\"headerUser?.customerBrand\" alt=\"User\" />\n </div>\n\n <div class=\"po-header-nav-customer-divider\"></div>\n\n <div class=\"po-header-nav-customer-avatar-wrapper\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </div>\n </li>\n\n <li class=\"po-header-nav-customer-avatar-wrapper po-header-icon-small\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </li>\n</div>\n\n@if (headerUser?.items?.length) {\n <po-popup\n #poPopupAction\n [p-actions]=\"headerUser.items\"\n [p-target]=\"targetRef\"\n [p-hide-arrow]=\"true\"\n p-position=\"bottom-left\"\n p-size=\"medium\"\n >\n </po-popup>\n}\n\n@if (headerUser?.popover) {\n <po-popover\n #poPopoverAction\n p-position=\"bottom-right\"\n [p-width]=\"headerUser.popover.width\"\n [p-target]=\"targetRef\"\n [p-hide-arrow]=\"true\"\n [p-corner-aligned]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"headerUser.popover.content\"></ng-container>\n </po-popover>\n}\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoBadgeComponent, selector: "po-badge" }, { kind: "component", type: PoPopoverComponent, selector: "po-popover" }, { kind: "component", type: PoPopupComponent, selector: "po-popup" }] });
|
|
57067
57136
|
}
|
|
57068
57137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PoHeaderCustomerComponent, decorators: [{
|
|
57069
57138
|
type: Component,
|
|
57070
|
-
args: [{ selector: 'po-header-customer', standalone: false, template: "<div class=\"po-header-nav-tools\" (click)=\"onClickUserSection()\" (keydown)=\"onKeyDownCustomer($event)\">\n <li\n #targetRef\n tabindex=\"0\"\n class=\"po-header-nav-customer-container\"\n (click)=\"onClickPopup()\"\n role=\"menu\"\n [attr.aria-label]=\"literals.labelUser\"\n >\n <div class=\"po-header-nav-customer-brand\">\n <img [src]=\"headerUser?.customerBrand\" alt=\"User\" />\n </div>\n\n <div class=\"po-header-nav-customer-divider\"></div>\n\n <div class=\"po-header-nav-customer-avatar-wrapper\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </div>\n </li>\n\n <li class=\"po-header-nav-customer-avatar-wrapper po-header-icon-small\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </li>\n</div>\n\n@if (headerUser?.items?.length) {\n <po-popup\n #poPopupAction\n [p-actions]=\"headerUser.items\"\n [p-target]=\"targetRef\"\n [p-hide-arrow]=\"true\"\n p-position=\"bottom-left\"\n p-size=\"medium\"\n >\n </po-popup>\n}\n\n@if (headerUser?.popover) {\n <po-popover
|
|
57139
|
+
args: [{ selector: 'po-header-customer', standalone: false, template: "<div class=\"po-header-nav-tools\" (click)=\"onClickUserSection()\" (keydown)=\"onKeyDownCustomer($event)\">\n <li\n #targetRef\n tabindex=\"0\"\n class=\"po-header-nav-customer-container\"\n (click)=\"onClickPopup()\"\n role=\"menu\"\n [attr.aria-label]=\"literals.labelUser\"\n >\n <div class=\"po-header-nav-customer-brand\">\n <img [src]=\"headerUser?.customerBrand\" alt=\"User\" />\n </div>\n\n <div class=\"po-header-nav-customer-divider\"></div>\n\n <div class=\"po-header-nav-customer-avatar-wrapper\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </div>\n </li>\n\n <li class=\"po-header-nav-customer-avatar-wrapper po-header-icon-small\">\n <div class=\"po-header-nav-customer-avatar\">\n <img [src]=\"headerUser?.avatar\" alt=\"Avatar\" />\n </div>\n @if (headerUser?.status) {\n <po-badge class=\"po-header-nav-avatar-status\" p-size=\"small\" [p-status]=\"headerUser.status\"></po-badge>\n }\n </li>\n</div>\n\n@if (headerUser?.items?.length) {\n <po-popup\n #poPopupAction\n [p-actions]=\"headerUser.items\"\n [p-target]=\"targetRef\"\n [p-hide-arrow]=\"true\"\n p-position=\"bottom-left\"\n p-size=\"medium\"\n >\n </po-popup>\n}\n\n@if (headerUser?.popover) {\n <po-popover\n #poPopoverAction\n p-position=\"bottom-right\"\n [p-width]=\"headerUser.popover.width\"\n [p-target]=\"targetRef\"\n [p-hide-arrow]=\"true\"\n [p-corner-aligned]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"headerUser.popover.content\"></ng-container>\n </po-popover>\n}\n" }]
|
|
57071
57140
|
}], ctorParameters: () => [{ type: PoLanguageService }], propDecorators: { poPopupAction: [{
|
|
57072
57141
|
type: ViewChild,
|
|
57073
57142
|
args: ['poPopupAction']
|