@po-ui/ng-components 21.6.0 → 21.8.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 +729 -191
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-accordion/po-accordion-base.component.d.ts +1 -1
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +3 -3
- package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +1 -1
- package/lib/components/po-accordion/po-accordion.component.d.ts +1 -1
- package/lib/components/po-accordion/services/po-accordion.service.d.ts +1 -1
- package/lib/components/po-badge/po-badge.component.d.ts +1 -1
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +2 -2
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.d.ts +1 -1
- package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -2
- package/lib/components/po-button/po-button-base.component.d.ts +0 -8
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +0 -2
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +2 -2
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +3 -3
- package/lib/components/po-calendar/po-calendar.component.d.ts +1 -1
- package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +7 -7
- package/lib/components/po-context-menu/index.d.ts +3 -0
- package/lib/components/po-context-menu/po-context-menu-base.component.d.ts +92 -0
- package/lib/components/po-context-menu/po-context-menu-item.interface.d.ts +15 -0
- package/lib/components/po-context-menu/po-context-menu.component.d.ts +51 -0
- package/lib/components/po-context-menu/po-context-menu.module.d.ts +7 -0
- package/lib/components/po-disclaimer/po-disclaimer-base.component.d.ts +1 -1
- package/lib/components/po-disclaimer-group/po-disclaimer-group-base.component.d.ts +1 -1
- package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +3 -3
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-operation/po-dynamic-form-operation.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +4 -4
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -5
- package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +1 -1
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +0 -6
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +0 -6
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +2 -2
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -7
- package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +1 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -3
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +0 -6
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +3 -3
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +2 -8
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +6 -6
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +4 -4
- package/lib/components/po-field/po-email/po-email.component.d.ts +1 -1
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +1 -1
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +0 -2
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +0 -6
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +0 -6
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +3 -3
- package/lib/components/po-field/po-lookup/services/po-lookup-filter.service.d.ts +1 -1
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +1 -1
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +1 -7
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +1 -1
- package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +2 -2
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +5 -5
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +2 -2
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +1 -7
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +27 -9
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +17 -4
- package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +2 -1
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -2
- package/lib/components/po-field/po-rich-text/po-rich-text.service.d.ts +1 -1
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -7
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +0 -7
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +14 -6
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +12 -3
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +15 -7
- package/lib/components/po-field/po-upload/po-upload-base.service.d.ts +1 -1
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.d.ts +1 -1
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts +1 -1
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts +2 -2
- package/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.d.ts +2 -2
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +6 -4
- package/lib/components/po-field/po-url/po-url.component.d.ts +1 -1
- package/lib/components/po-grid/po-grid-cell/po-grid-cell.component.d.ts +1 -1
- package/lib/components/po-grid/po-grid.component.d.ts +3 -3
- package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +10 -2
- package/lib/components/po-header/po-header-base.component.d.ts +31 -5
- package/lib/components/po-header/po-header-brand/po-header-brand.component.d.ts +3 -2
- package/lib/components/po-header/po-header-customer/po-header-customer.component.d.ts +1 -0
- package/lib/components/po-header/po-header-menu-item/po-header-menu-item.component.d.ts +3 -2
- package/lib/components/po-header/po-header-tools/po-header-tools.component.d.ts +3 -2
- package/lib/components/po-header/po-header.component.d.ts +4 -4
- package/lib/components/po-helper/po-helper-base.component.d.ts +0 -8
- package/lib/components/po-icon/po-icon.component.d.ts +1 -1
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
- package/lib/components/po-list-view/po-list-view.component.d.ts +2 -2
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -2
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
- package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +1 -1
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu-base.component.d.ts +13 -1
- package/lib/components/po-menu/po-menu-item/po-menu-item.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu.component.d.ts +5 -4
- package/lib/components/po-menu/services/po-menu-global.service.d.ts +5 -5
- package/lib/components/po-menu/services/po-menu-items.service.d.ts +2 -2
- package/lib/components/po-menu/services/po-menu.service.d.ts +1 -1
- package/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.d.ts +1 -1
- package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +3 -3
- package/lib/components/po-menu-panel/services/po-menu-panel-items.service.d.ts +2 -2
- package/lib/components/po-modal/po-modal.component.d.ts +3 -3
- package/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar-base.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar.component.d.ts +7 -7
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +3 -3
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +1 -1
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +1 -1
- package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +3 -3
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +4 -4
- package/lib/components/po-popover/po-popover-base.component.d.ts +2 -2
- package/lib/components/po-popover/po-popover.component.d.ts +6 -1
- package/lib/components/po-popup/po-popup.component.d.ts +4 -4
- package/lib/components/po-progress/po-progress.component.d.ts +2 -2
- package/lib/components/po-skeleton/po-skeleton-base.component.d.ts +0 -23
- package/lib/components/po-slide/po-slide.component.d.ts +4 -4
- package/lib/components/po-stepper/po-step/po-step.component.d.ts +1 -1
- package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +3 -3
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -1
- package/lib/components/po-table/po-table-base.component.d.ts +3 -3
- package/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.d.ts +2 -2
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +2 -2
- package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -1
- package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +2 -2
- package/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.d.ts +1 -1
- package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts +1 -1
- package/lib/components/po-table/po-table.component.d.ts +6 -6
- package/lib/components/po-table/services/po-table.service.d.ts +1 -1
- package/lib/components/po-tabs/po-tab/po-tab-base.component.d.ts +11 -1
- package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tabs.component.d.ts +22 -2
- package/lib/components/po-tabs/po-tabs.service.d.ts +2 -2
- package/lib/components/po-tag/po-tag-base.component.d.ts +1 -1
- package/lib/components/po-tag/po-tag.component.d.ts +2 -2
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
- package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
- package/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.d.ts +1 -1
- package/lib/components/po-toolbar/po-toolbar.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
- package/lib/components/po-tree-view/services/po-tree-view.service.d.ts +2 -2
- package/lib/components/po-widget/po-widget-base.component.d.ts +0 -4
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +4 -4
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +3 -3
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.d.ts +3 -3
- package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +2 -2
- package/lib/services/po-component-injector/po-component-injector.service.d.ts +3 -3
- package/lib/services/po-control-position/po-control-position.service.d.ts +3 -3
- package/lib/services/po-dialog/po-dialog.component.d.ts +1 -1
- package/lib/services/po-dialog/po-dialog.service.d.ts +1 -1
- package/lib/services/po-i18n/po-i18n-base.service.d.ts +3 -3
- package/lib/services/po-media-query/po-media-query.service.d.ts +1 -1
- package/lib/services/po-notification/po-notification.service.d.ts +1 -1
- package/lib/services/po-theme/po-theme.service.d.ts +2 -2
- package/package.json +4 -4
- package/po-ui-ng-components-21.8.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/v20/index.js +2 -2
- package/schematics/ng-update/v21/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/types/po-ui-ng-components.d.ts +634 -413
- package/po-ui-ng-components-21.6.0.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, TemplateRef, ViewChild, HostBinding, Injectable, EventEmitter, Output, ElementRef, SecurityContext, HostListener, inject, ChangeDetectorRef, ViewChildren, ContentChildren, InjectionToken, ViewContainerRef, Optional, Inject, input, forwardRef, Renderer2, IterableDiffers, ContentChild, Pipe, Injector, provideAppInitializer, computed } from '@angular/core';
|
|
2
|
+
import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, TemplateRef, ViewChild, HostBinding, Injectable, EventEmitter, Output, ElementRef, SecurityContext, HostListener, inject, ChangeDetectorRef, ViewChildren, ContentChildren, InjectionToken, ViewContainerRef, Optional, Inject, input, forwardRef, Renderer2, IterableDiffers, ContentChild, model, output, signal, effect, Pipe, Injector, provideAppInitializer, computed } 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
5
|
import * as i2 from '@angular/platform-browser';
|
|
@@ -231,6 +231,8 @@ const AnimaliaIconDictionary = {
|
|
|
231
231
|
ICON_REFRESH: 'an an-arrow-clockwise',
|
|
232
232
|
ICON_SEARCH: 'an an-magnifying-glass',
|
|
233
233
|
ICON_SETTINGS: 'an an-gear-six',
|
|
234
|
+
ICON_SIDEBAR: 'an an-sidebar',
|
|
235
|
+
ICON_SIDEBAR_SIMPLES: 'an an-sidebar-simple',
|
|
234
236
|
ICON_SORT: 'an an-arrows-down-up',
|
|
235
237
|
ICON_SORT_ASC: 'an an-arrow-up',
|
|
236
238
|
ICON_SORT_ASCENDING: 'an an-sort-ascending',
|
|
@@ -2248,7 +2250,7 @@ class PoControlPositionService {
|
|
|
2248
2250
|
* @param targetElement elemento de onde deve partir a exibição
|
|
2249
2251
|
* @param customPositions posições que sobrescreve as posições padrões
|
|
2250
2252
|
* @param isSetElementWidth indica se deve definir o tamanho do elemento a ser exibido, caso for verdadeiro será igual do targetElement
|
|
2251
|
-
* @param isCornerAligned indica se o elemento filho será alinhado nos cantos do
|
|
2253
|
+
* @param isCornerAligned indica se o elemento filho será alinhado nos cantos do elemento pai.
|
|
2252
2254
|
*/
|
|
2253
2255
|
setElements(element, elementOffset, targetElement, customPositions, isSetElementWidth = false, isCornerAligned = false) {
|
|
2254
2256
|
this.element = element instanceof ElementRef ? element.nativeElement : element;
|
|
@@ -5905,8 +5907,6 @@ class PoCheckboxBaseComponent {
|
|
|
5905
5907
|
*/
|
|
5906
5908
|
appendBox = false;
|
|
5907
5909
|
/**
|
|
5908
|
-
* @Input
|
|
5909
|
-
*
|
|
5910
5910
|
* @optional
|
|
5911
5911
|
*
|
|
5912
5912
|
* @description
|
|
@@ -6053,8 +6053,6 @@ class PoCheckboxBaseComponent {
|
|
|
6053
6053
|
return this._size ?? getDefaultSizeFn(PoCheckboxSize);
|
|
6054
6054
|
}
|
|
6055
6055
|
/**
|
|
6056
|
-
* @Input
|
|
6057
|
-
*
|
|
6058
6056
|
* @optional
|
|
6059
6057
|
*
|
|
6060
6058
|
* @description
|
|
@@ -6066,8 +6064,6 @@ class PoCheckboxBaseComponent {
|
|
|
6066
6064
|
*/
|
|
6067
6065
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
6068
6066
|
/**
|
|
6069
|
-
* @Input
|
|
6070
|
-
*
|
|
6071
6067
|
* @optional
|
|
6072
6068
|
*
|
|
6073
6069
|
* @description
|
|
@@ -6241,8 +6237,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
6241
6237
|
*/
|
|
6242
6238
|
class PoHelperBaseComponent {
|
|
6243
6239
|
/**
|
|
6244
|
-
* @Input
|
|
6245
|
-
*
|
|
6246
6240
|
* @optional
|
|
6247
6241
|
*
|
|
6248
6242
|
* @description
|
|
@@ -6266,8 +6260,6 @@ class PoHelperBaseComponent {
|
|
|
6266
6260
|
helper = input(undefined, { ...(ngDevMode ? { debugName: "helper" } : {}), alias: 'p-helper',
|
|
6267
6261
|
transform: this.transformHelper.bind(this) });
|
|
6268
6262
|
/**
|
|
6269
|
-
* @Input
|
|
6270
|
-
*
|
|
6271
6263
|
* @optional
|
|
6272
6264
|
*
|
|
6273
6265
|
* @description
|
|
@@ -6286,8 +6278,6 @@ class PoHelperBaseComponent {
|
|
|
6286
6278
|
return validateSizeFn(this.size(), PoFieldSize);
|
|
6287
6279
|
}
|
|
6288
6280
|
/**
|
|
6289
|
-
* @Input
|
|
6290
|
-
*
|
|
6291
6281
|
* @optional
|
|
6292
6282
|
*
|
|
6293
6283
|
* @description
|
|
@@ -6298,8 +6288,6 @@ class PoHelperBaseComponent {
|
|
|
6298
6288
|
*/
|
|
6299
6289
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), alias: 'p-disabled' });
|
|
6300
6290
|
/**
|
|
6301
|
-
* @Input
|
|
6302
|
-
*
|
|
6303
6291
|
* @optional
|
|
6304
6292
|
*
|
|
6305
6293
|
* @description
|
|
@@ -6476,8 +6464,6 @@ var PoButtonType;
|
|
|
6476
6464
|
*/
|
|
6477
6465
|
class PoButtonBaseComponent {
|
|
6478
6466
|
/**
|
|
6479
|
-
* @Input
|
|
6480
|
-
*
|
|
6481
6467
|
* @optional
|
|
6482
6468
|
*
|
|
6483
6469
|
* @description
|
|
@@ -6486,8 +6472,6 @@ class PoButtonBaseComponent {
|
|
|
6486
6472
|
*/
|
|
6487
6473
|
label = input(undefined, { ...(ngDevMode ? { debugName: "label" } : {}), alias: 'p-label' });
|
|
6488
6474
|
/**
|
|
6489
|
-
* @Input
|
|
6490
|
-
*
|
|
6491
6475
|
* @optional
|
|
6492
6476
|
*
|
|
6493
6477
|
* @description
|
|
@@ -6514,8 +6498,6 @@ class PoButtonBaseComponent {
|
|
|
6514
6498
|
*/
|
|
6515
6499
|
icon = input(undefined, { ...(ngDevMode ? { debugName: "icon" } : {}), alias: 'p-icon' });
|
|
6516
6500
|
/**
|
|
6517
|
-
* @Input
|
|
6518
|
-
*
|
|
6519
6501
|
* @optional
|
|
6520
6502
|
*
|
|
6521
6503
|
* @description
|
|
@@ -6601,8 +6583,6 @@ class PoButtonBaseComponent {
|
|
|
6601
6583
|
return this._disabled;
|
|
6602
6584
|
}
|
|
6603
6585
|
/**
|
|
6604
|
-
* @Input
|
|
6605
|
-
*
|
|
6606
6586
|
* @optional
|
|
6607
6587
|
*
|
|
6608
6588
|
* @description
|
|
@@ -6751,11 +6731,11 @@ class PoButtonComponent extends PoButtonBaseComponent {
|
|
|
6751
6731
|
this.click.emit(null);
|
|
6752
6732
|
}
|
|
6753
6733
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6754
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoButtonComponent, isStandalone: false, selector: "po-button", viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button\n #button\n class=\"po-button\"\n [type]=\"type()\"\n [attr.p-kind]=\"kind\"\n [attr.p-danger]=\"danger\"\n [disabled]=\"disabled || loading\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"ariaExpanded\"\n (blur)=\"onBlur()\"\n (click)=\"onClick()\"\n>\n @if (loading) {\n <div class=\"po-button-loading-icon\">\n <po-loading-icon
|
|
6734
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoButtonComponent, isStandalone: false, selector: "po-button", viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button\n #button\n class=\"po-button\"\n [type]=\"type()\"\n [attr.p-kind]=\"kind\"\n [attr.p-danger]=\"danger\"\n [disabled]=\"disabled || loading\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"ariaExpanded\"\n (blur)=\"onBlur()\"\n (click)=\"onClick()\"\n>\n @if (loading) {\n <div class=\"po-button-loading-icon\">\n <po-loading-icon [p-size]=\"mapSizeToIcon(size)\"></po-loading-icon>\n </div>\n }\n\n <div class=\"po-button-container\">\n @if (icon()) {\n <po-icon class=\"po-button-icon\" [p-icon]=\"icon()\"></po-icon>\n }\n @if (label()) {\n <span class=\"po-button-label\">{{ label() }}</span>\n }\n </div>\n</button>\n", dependencies: [{ kind: "component", type: PoLoadingIconComponent, selector: "po-loading-icon", inputs: ["p-neutral-color", "p-size", "p-in-overlay"] }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6755
6735
|
}
|
|
6756
6736
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoButtonComponent, decorators: [{
|
|
6757
6737
|
type: Component,
|
|
6758
|
-
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button\n #button\n class=\"po-button\"\n [type]=\"type()\"\n [attr.p-kind]=\"kind\"\n [attr.p-danger]=\"danger\"\n [disabled]=\"disabled || loading\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"ariaExpanded\"\n (blur)=\"onBlur()\"\n (click)=\"onClick()\"\n>\n @if (loading) {\n <div class=\"po-button-loading-icon\">\n <po-loading-icon
|
|
6738
|
+
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button\n #button\n class=\"po-button\"\n [type]=\"type()\"\n [attr.p-kind]=\"kind\"\n [attr.p-danger]=\"danger\"\n [disabled]=\"disabled || loading\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"ariaExpanded\"\n (blur)=\"onBlur()\"\n (click)=\"onClick()\"\n>\n @if (loading) {\n <div class=\"po-button-loading-icon\">\n <po-loading-icon [p-size]=\"mapSizeToIcon(size)\"></po-loading-icon>\n </div>\n }\n\n <div class=\"po-button-container\">\n @if (icon()) {\n <po-icon class=\"po-button-icon\" [p-icon]=\"icon()\"></po-icon>\n }\n @if (label()) {\n <span class=\"po-button-label\">{{ label() }}</span>\n }\n </div>\n</button>\n" }]
|
|
6759
6739
|
}], propDecorators: { buttonElement: [{
|
|
6760
6740
|
type: ViewChild,
|
|
6761
6741
|
args: ['button', { static: true }]
|
|
@@ -6849,6 +6829,8 @@ class PoPopoverBaseComponent {
|
|
|
6849
6829
|
* @default `false`
|
|
6850
6830
|
*/
|
|
6851
6831
|
appendBox = false;
|
|
6832
|
+
// Indica se o elemento filho será alinhado nos cantos do elemento pai.
|
|
6833
|
+
cornerAligned = false;
|
|
6852
6834
|
/**
|
|
6853
6835
|
* @description
|
|
6854
6836
|
*
|
|
@@ -6895,6 +6877,8 @@ class PoPopoverBaseComponent {
|
|
|
6895
6877
|
target;
|
|
6896
6878
|
/** Título do popover. */
|
|
6897
6879
|
title;
|
|
6880
|
+
// Define o width do popover.
|
|
6881
|
+
width;
|
|
6898
6882
|
/** Evento disparado ao fechar o popover. */
|
|
6899
6883
|
closePopover = new EventEmitter();
|
|
6900
6884
|
/** Evento disparado ao abrir o popover. */
|
|
@@ -6975,8 +6959,6 @@ class PoPopoverBaseComponent {
|
|
|
6975
6959
|
return this._trigger;
|
|
6976
6960
|
}
|
|
6977
6961
|
/**
|
|
6978
|
-
* @Input
|
|
6979
|
-
*
|
|
6980
6962
|
* @optional
|
|
6981
6963
|
*
|
|
6982
6964
|
* @description
|
|
@@ -6987,7 +6969,7 @@ class PoPopoverBaseComponent {
|
|
|
6987
6969
|
*/
|
|
6988
6970
|
customClasses = input(undefined, { ...(ngDevMode ? { debugName: "customClasses" } : {}), alias: 'p-custom-classes' });
|
|
6989
6971
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoPopoverBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6990
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.9", 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 });
|
|
6972
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.9", 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 });
|
|
6991
6973
|
}
|
|
6992
6974
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoPopoverBaseComponent, decorators: [{
|
|
6993
6975
|
type: Component,
|
|
@@ -6999,12 +6981,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
6999
6981
|
}], propDecorators: { appendBox: [{
|
|
7000
6982
|
type: Input,
|
|
7001
6983
|
args: [{ alias: 'p-append-in-body', transform: convertToBoolean }]
|
|
6984
|
+
}], cornerAligned: [{
|
|
6985
|
+
type: Input,
|
|
6986
|
+
args: ['p-corner-aligned']
|
|
7002
6987
|
}], target: [{
|
|
7003
6988
|
type: Input,
|
|
7004
6989
|
args: ['p-target']
|
|
7005
6990
|
}], title: [{
|
|
7006
6991
|
type: Input,
|
|
7007
6992
|
args: ['p-title']
|
|
6993
|
+
}], width: [{
|
|
6994
|
+
type: Input,
|
|
6995
|
+
args: ['p-width']
|
|
7008
6996
|
}], closePopover: [{
|
|
7009
6997
|
type: Output,
|
|
7010
6998
|
args: ['p-close']
|
|
@@ -7052,8 +7040,10 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7052
7040
|
timeoutResize;
|
|
7053
7041
|
targetElement;
|
|
7054
7042
|
afterViewInitWasCalled = false;
|
|
7043
|
+
widthPopover = undefined;
|
|
7055
7044
|
keydownTargetListener;
|
|
7056
7045
|
keydownPopoverListener;
|
|
7046
|
+
resizeObserver;
|
|
7057
7047
|
eventListenerFunction;
|
|
7058
7048
|
tabbableSelector = [
|
|
7059
7049
|
'a[href]:not([tabindex="-1"])',
|
|
@@ -7072,6 +7062,11 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7072
7062
|
this.poControlPosition = poControlPosition;
|
|
7073
7063
|
this.cd = cd;
|
|
7074
7064
|
}
|
|
7065
|
+
onThemeChange() {
|
|
7066
|
+
requestAnimationFrame(() => {
|
|
7067
|
+
this.setPopoverPosition();
|
|
7068
|
+
});
|
|
7069
|
+
}
|
|
7075
7070
|
ngOnChanges(changes) {
|
|
7076
7071
|
if (changes['appendBox']) {
|
|
7077
7072
|
this.cd.detectChanges();
|
|
@@ -7093,10 +7088,12 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7093
7088
|
this.setRendererListenInit();
|
|
7094
7089
|
}
|
|
7095
7090
|
ngOnDestroy() {
|
|
7091
|
+
this.disconnectResizeObserver();
|
|
7096
7092
|
this.removeListeners();
|
|
7097
7093
|
}
|
|
7098
7094
|
close() {
|
|
7099
7095
|
this.isHidden = true;
|
|
7096
|
+
this.disconnectResizeObserver();
|
|
7100
7097
|
this.closePopover.emit();
|
|
7101
7098
|
if (this.trigger === 'function' && this.clickoutListener) {
|
|
7102
7099
|
this.clickoutListener();
|
|
@@ -7118,6 +7115,16 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7118
7115
|
this.setPopoverPosition();
|
|
7119
7116
|
this.setOpacity(1);
|
|
7120
7117
|
this.openPopover.emit();
|
|
7118
|
+
this.observeContentResize();
|
|
7119
|
+
if (this.cornerAligned && !this.width) {
|
|
7120
|
+
const el = this.popoverElement.nativeElement;
|
|
7121
|
+
el.style.width = 'auto';
|
|
7122
|
+
const width = el.scrollWidth;
|
|
7123
|
+
this.widthPopover = width;
|
|
7124
|
+
requestAnimationFrame(() => {
|
|
7125
|
+
this.setPopoverPosition();
|
|
7126
|
+
});
|
|
7127
|
+
}
|
|
7121
7128
|
this.cd.detectChanges();
|
|
7122
7129
|
});
|
|
7123
7130
|
if (this.trigger === 'function') {
|
|
@@ -7212,7 +7219,7 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7212
7219
|
}
|
|
7213
7220
|
setElementsControlPosition() {
|
|
7214
7221
|
const popoverOffset = 8;
|
|
7215
|
-
this.poControlPosition.setElements(this.popoverElement.nativeElement, popoverOffset, this.target);
|
|
7222
|
+
this.poControlPosition.setElements(this.popoverElement.nativeElement, popoverOffset, this.target, undefined, false, this.cornerAligned);
|
|
7216
7223
|
}
|
|
7217
7224
|
focusOnTarget() {
|
|
7218
7225
|
const el = this.targetElement;
|
|
@@ -7317,15 +7324,38 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
7317
7324
|
const prev = docTabs[idx - 1] || docTabs[docTabs.length - 1];
|
|
7318
7325
|
prev?.focus?.();
|
|
7319
7326
|
}
|
|
7327
|
+
observeContentResize() {
|
|
7328
|
+
this.disconnectResizeObserver();
|
|
7329
|
+
if (!this.popoverElement?.nativeElement)
|
|
7330
|
+
return;
|
|
7331
|
+
let initialCall = true;
|
|
7332
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
7333
|
+
if (initialCall) {
|
|
7334
|
+
initialCall = false;
|
|
7335
|
+
return;
|
|
7336
|
+
}
|
|
7337
|
+
this.setElementsControlPosition();
|
|
7338
|
+
this.setPopoverPosition();
|
|
7339
|
+
this.cd.detectChanges();
|
|
7340
|
+
});
|
|
7341
|
+
this.resizeObserver.observe(this.popoverElement.nativeElement);
|
|
7342
|
+
}
|
|
7343
|
+
disconnectResizeObserver() {
|
|
7344
|
+
this.resizeObserver?.disconnect();
|
|
7345
|
+
this.resizeObserver = null;
|
|
7346
|
+
}
|
|
7320
7347
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoPopoverComponent, deps: [{ token: i0.Renderer2 }, { token: PoControlPositionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7321
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", 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
|
|
7348
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoPopoverComponent, isStandalone: false, selector: "po-popover", host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" } }, 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: i5.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", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }] });
|
|
7322
7349
|
}
|
|
7323
7350
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoPopoverComponent, decorators: [{
|
|
7324
7351
|
type: Component,
|
|
7325
|
-
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
|
|
7352
|
+
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" }]
|
|
7326
7353
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: PoControlPositionService }, { type: i0.ChangeDetectorRef }], propDecorators: { popoverElement: [{
|
|
7327
7354
|
type: ViewChild,
|
|
7328
7355
|
args: ['popoverElement', { read: ElementRef, static: false }]
|
|
7356
|
+
}], onThemeChange: [{
|
|
7357
|
+
type: HostListener,
|
|
7358
|
+
args: ['window:PoUiThemeChange']
|
|
7329
7359
|
}] } });
|
|
7330
7360
|
|
|
7331
7361
|
/**
|
|
@@ -7841,8 +7871,6 @@ class PoFieldContainerComponent {
|
|
|
7841
7871
|
/** Define o tamanho do componente. */
|
|
7842
7872
|
size;
|
|
7843
7873
|
/**
|
|
7844
|
-
* @Input
|
|
7845
|
-
*
|
|
7846
7874
|
* Define se o título do campo será exibido de forma compacta.
|
|
7847
7875
|
*
|
|
7848
7876
|
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
@@ -9383,8 +9411,6 @@ const PO_TOGGLE_TYPE_DEFAULT = 'none';
|
|
|
9383
9411
|
*/
|
|
9384
9412
|
class PoButtonGroupBaseComponent {
|
|
9385
9413
|
/**
|
|
9386
|
-
* @Input
|
|
9387
|
-
*
|
|
9388
9414
|
* @description
|
|
9389
9415
|
*
|
|
9390
9416
|
* Lista de botões.
|
|
@@ -9853,8 +9879,6 @@ class PoComboBaseComponent {
|
|
|
9853
9879
|
*/
|
|
9854
9880
|
autoFocus = false;
|
|
9855
9881
|
/**
|
|
9856
|
-
* @Input
|
|
9857
|
-
*
|
|
9858
9882
|
* @optional
|
|
9859
9883
|
*
|
|
9860
9884
|
* @description
|
|
@@ -10134,8 +10158,6 @@ class PoComboBaseComponent {
|
|
|
10134
10158
|
*/
|
|
10135
10159
|
listboxControlPosition = poMultiselectContainerPositionDefault$1;
|
|
10136
10160
|
/**
|
|
10137
|
-
* @Input
|
|
10138
|
-
*
|
|
10139
10161
|
* @optional
|
|
10140
10162
|
*
|
|
10141
10163
|
* @description
|
|
@@ -10147,8 +10169,6 @@ class PoComboBaseComponent {
|
|
|
10147
10169
|
*/
|
|
10148
10170
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
10149
10171
|
/**
|
|
10150
|
-
* @Input
|
|
10151
|
-
*
|
|
10152
10172
|
* @optional
|
|
10153
10173
|
*
|
|
10154
10174
|
* @description
|
|
@@ -16316,6 +16336,264 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
16316
16336
|
}]
|
|
16317
16337
|
}] });
|
|
16318
16338
|
|
|
16339
|
+
/**
|
|
16340
|
+
* @description
|
|
16341
|
+
*
|
|
16342
|
+
* O componente `po-context-menu` é uma barra lateral de contexto (sidebar) para navegação interna entre contextos.
|
|
16343
|
+
* Inspirado visualmente no `po-menu`, porém independente e focado em navegação contextual.
|
|
16344
|
+
*
|
|
16345
|
+
* No caso de uso do componente `po-page-default` em conjunto, ambos devem estar no mesmo nível
|
|
16346
|
+
* e inseridos em uma div com a classe **po-context-menu-wrapper**.
|
|
16347
|
+
* Esta classe é responsável por fazer os cálculos necessários para o alinhamento dos componentes.
|
|
16348
|
+
*
|
|
16349
|
+
* O uso simultâneo dos componentes `po-menu` e `po-context-menu` não é recomendado.
|
|
16350
|
+
* Porém, se os mesmos forem necessários na mesma interface, certifique-se de que não permaneçam expandidos
|
|
16351
|
+
* simultaneamente para não comprometer a usabilidade.
|
|
16352
|
+
*
|
|
16353
|
+
* #### Tokens customizáveis
|
|
16354
|
+
*
|
|
16355
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
16356
|
+
*
|
|
16357
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
16358
|
+
*
|
|
16359
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
16360
|
+
* |----------------------------------------|--------------------------------------------------------------|-------------------------------------------------|
|
|
16361
|
+
* | **Default Values** | | |
|
|
16362
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
16363
|
+
* | `--font-size` | Tamanho da fonte dos itens | `var(--font-size-default)` |
|
|
16364
|
+
* | `--font-size-context-title` | Tamanho da fonte do título de contexto | `var(--font-size-sm)` |
|
|
16365
|
+
* | `--font-size-title` | Tamanho da fonte do título principal | `var(--font-size-lg)` |
|
|
16366
|
+
* | `--line-height` | Altura da linha | `var(--line-height-md)` |
|
|
16367
|
+
* | `--border-radius` | Raio dos cantos dos itens | `var(--border-radius-md)` |
|
|
16368
|
+
* | `--border-color` | Cor da borda lateral direita do componente | `var(--color-neutral-light-20)` |
|
|
16369
|
+
* | `--background-color` | Cor de fundo do componente | `var(--color-neutral-light-05)` |
|
|
16370
|
+
* | `--color` | Cor do texto dos itens | `var(--color-action-default)` |
|
|
16371
|
+
* | `--color-context-title` | Cor do texto do título de contexto | `var(--color-neutral-mid-40)` |
|
|
16372
|
+
* | `--color-title` | Cor do texto do título principal | `var(--color-neutral-dark-80)` |
|
|
16373
|
+
* | `--font-weight` | Peso da fonte dos itens | `var(--font-weight-bold)` |
|
|
16374
|
+
* | `--font-weight-title` | Peso da fonte do título principal | `var(--font-weight-bold)` |
|
|
16375
|
+
* | `--outline-color-focused` | Cor do outline no estado de focus | `var(--color-action-focus)` |
|
|
16376
|
+
* | **Hover** | | |
|
|
16377
|
+
* | `--color-hover` | Cor do texto no estado hover | `var(--color-brand-01-darkest)` |
|
|
16378
|
+
* | `--background-color-hover` | Cor de fundo no estado hover | `var(--color-brand-01-lighter)` |
|
|
16379
|
+
* | **Pressed** | | |
|
|
16380
|
+
* | `--background-color-pressed` | Cor de fundo no estado pressed | `var(--color-brand-01-light)` |
|
|
16381
|
+
* | **Active (Selected)** | | |
|
|
16382
|
+
* | `--background-color-actived` | Cor de fundo do item selecionado | `var(--color-brand-01-lightest)` |
|
|
16383
|
+
* | `--color-actived` | Cor do texto do item selecionado | `var(--color-action-pressed)` |
|
|
16384
|
+
*
|
|
16385
|
+
*/
|
|
16386
|
+
class PoContextMenuBaseComponent {
|
|
16387
|
+
/**
|
|
16388
|
+
* Título do contexto superior
|
|
16389
|
+
*/
|
|
16390
|
+
contextTitle = input('', { ...(ngDevMode ? { debugName: "contextTitle" } : {}), alias: 'p-context-title' });
|
|
16391
|
+
/**
|
|
16392
|
+
* Título principal do menu
|
|
16393
|
+
*/
|
|
16394
|
+
title = input('', { ...(ngDevMode ? { debugName: "title" } : {}), alias: 'p-title' });
|
|
16395
|
+
/**
|
|
16396
|
+
* Lista de itens para renderização.
|
|
16397
|
+
*
|
|
16398
|
+
* > Ao receber os itens, o componente valida que apenas um item pode ter `selected: true`.
|
|
16399
|
+
* > Se mais de um item estiver com `selected: true`, apenas o primeiro será mantido como selecionado.
|
|
16400
|
+
*/
|
|
16401
|
+
items = input([], { ...(ngDevMode ? { debugName: "items" } : {}), alias: 'p-items' });
|
|
16402
|
+
/**
|
|
16403
|
+
* Define se o menu está aberto ou fechado.
|
|
16404
|
+
*
|
|
16405
|
+
* Suporta two-way binding:
|
|
16406
|
+
*
|
|
16407
|
+
* ```html
|
|
16408
|
+
* <po-context-menu
|
|
16409
|
+
* [(p-expanded)]="expanded"
|
|
16410
|
+
* />
|
|
16411
|
+
* ```
|
|
16412
|
+
*
|
|
16413
|
+
* ou
|
|
16414
|
+
*
|
|
16415
|
+
* ```html
|
|
16416
|
+
* <po-context-menu
|
|
16417
|
+
* [(p-expanded)]="expanded"
|
|
16418
|
+
* (p-expandedChange)="handlerExpanded($event)"
|
|
16419
|
+
* />
|
|
16420
|
+
* ```
|
|
16421
|
+
*
|
|
16422
|
+
* @default `true`
|
|
16423
|
+
*/
|
|
16424
|
+
expanded = model(true, { ...(ngDevMode ? { debugName: "expanded" } : {}), alias: 'p-expanded' });
|
|
16425
|
+
/**
|
|
16426
|
+
* Evento emitido ao selecionar um item. Emite o item selecionado.
|
|
16427
|
+
*/
|
|
16428
|
+
itemSelected = output({ alias: 'p-item-selected' });
|
|
16429
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16430
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoContextMenuBaseComponent, isStandalone: true, inputs: { contextTitle: { classPropertyName: "contextTitle", publicName: "p-context-title", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "p-title", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "p-items", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "p-expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "p-expandedChange", itemSelected: "p-item-selected" }, ngImport: i0 });
|
|
16431
|
+
}
|
|
16432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuBaseComponent, decorators: [{
|
|
16433
|
+
type: Directive
|
|
16434
|
+
}], propDecorators: { contextTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-context-title", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-title", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-items", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-expanded", required: false }] }, { type: i0.Output, args: ["p-expandedChange"] }], itemSelected: [{ type: i0.Output, args: ["p-item-selected"] }] } });
|
|
16435
|
+
|
|
16436
|
+
const poContextMenuLiteralsDefault = {
|
|
16437
|
+
en: {
|
|
16438
|
+
close: 'Close menu',
|
|
16439
|
+
open: 'Open menu'
|
|
16440
|
+
},
|
|
16441
|
+
es: {
|
|
16442
|
+
close: 'Cerrar menú',
|
|
16443
|
+
open: 'Abrir menú'
|
|
16444
|
+
},
|
|
16445
|
+
pt: {
|
|
16446
|
+
close: 'Fechar menu',
|
|
16447
|
+
open: 'Abrir menu'
|
|
16448
|
+
},
|
|
16449
|
+
ru: {
|
|
16450
|
+
close: 'Закрыть меню',
|
|
16451
|
+
open: 'Открыть меню'
|
|
16452
|
+
}
|
|
16453
|
+
};
|
|
16454
|
+
/**
|
|
16455
|
+
* @docsExtends PoContextMenuBaseComponent
|
|
16456
|
+
*
|
|
16457
|
+
* @example
|
|
16458
|
+
*
|
|
16459
|
+
* <example name="po-context-menu-basic" title="PO Context Menu Basic">
|
|
16460
|
+
* <file name="sample-po-context-menu-basic/sample-po-context-menu-basic.component.html"> </file>
|
|
16461
|
+
* <file name="sample-po-context-menu-basic/sample-po-context-menu-basic.component.ts"> </file>
|
|
16462
|
+
* </example>
|
|
16463
|
+
*
|
|
16464
|
+
* <example name="po-context-menu-labs" title="PO Context Menu Labs">
|
|
16465
|
+
* <file name="sample-po-context-menu-labs/sample-po-context-menu-labs.component.html"> </file>
|
|
16466
|
+
* <file name="sample-po-context-menu-labs/sample-po-context-menu-labs.component.ts"> </file>
|
|
16467
|
+
* </example>
|
|
16468
|
+
*
|
|
16469
|
+
* <example name="po-context-menu-user" title="PO Context - Cadastro de Usuário">
|
|
16470
|
+
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.html"> </file>
|
|
16471
|
+
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.ts"> </file>
|
|
16472
|
+
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.css"> </file>
|
|
16473
|
+
* </example>
|
|
16474
|
+
*/
|
|
16475
|
+
class PoContextMenuComponent extends PoContextMenuBaseComponent {
|
|
16476
|
+
languageService = inject(PoLanguageService);
|
|
16477
|
+
literals;
|
|
16478
|
+
_items = signal([], ...(ngDevMode ? [{ debugName: "_items" }] : []));
|
|
16479
|
+
_titleTooltipCalculated = false;
|
|
16480
|
+
_contextTitleTooltipCalculated = false;
|
|
16481
|
+
titleTooltip = signal(null, ...(ngDevMode ? [{ debugName: "titleTooltip" }] : []));
|
|
16482
|
+
contextTitleTooltip = signal(null, ...(ngDevMode ? [{ debugName: "contextTitleTooltip" }] : []));
|
|
16483
|
+
constructor() {
|
|
16484
|
+
super();
|
|
16485
|
+
this.setLiterals();
|
|
16486
|
+
effect(() => {
|
|
16487
|
+
const currentItems = this.items();
|
|
16488
|
+
if (this.hasMultipleSelected(currentItems)) {
|
|
16489
|
+
this._items.set(this.sanitizeSelection(currentItems));
|
|
16490
|
+
}
|
|
16491
|
+
else {
|
|
16492
|
+
this._items.set(currentItems);
|
|
16493
|
+
}
|
|
16494
|
+
if (this.title() !== this.titleTooltip()) {
|
|
16495
|
+
this.titleTooltip.set(null);
|
|
16496
|
+
this._titleTooltipCalculated = false;
|
|
16497
|
+
}
|
|
16498
|
+
if (this.contextTitle() !== this.contextTitleTooltip()) {
|
|
16499
|
+
this.contextTitleTooltip.set(null);
|
|
16500
|
+
this._contextTitleTooltipCalculated = false;
|
|
16501
|
+
}
|
|
16502
|
+
});
|
|
16503
|
+
}
|
|
16504
|
+
toggleExpand() {
|
|
16505
|
+
this.expanded.update(v => !v);
|
|
16506
|
+
}
|
|
16507
|
+
selectItem(item) {
|
|
16508
|
+
let selectedItem;
|
|
16509
|
+
const updatedItems = this._items().map(i => {
|
|
16510
|
+
const updated = { ...i, selected: i === item };
|
|
16511
|
+
if (updated.selected) {
|
|
16512
|
+
selectedItem = updated;
|
|
16513
|
+
}
|
|
16514
|
+
return updated;
|
|
16515
|
+
});
|
|
16516
|
+
this._items.set(updatedItems);
|
|
16517
|
+
this.itemSelected.emit(selectedItem);
|
|
16518
|
+
if (item.action) {
|
|
16519
|
+
item.action(selectedItem);
|
|
16520
|
+
}
|
|
16521
|
+
}
|
|
16522
|
+
handlerItemTooltip(item, value) {
|
|
16523
|
+
if (item.tooltip) {
|
|
16524
|
+
return;
|
|
16525
|
+
}
|
|
16526
|
+
const label = value.firstElementChild;
|
|
16527
|
+
if (label.scrollHeight > label.offsetHeight) {
|
|
16528
|
+
this._items.update(items => items.map(i => (i === item ? { ...i, tooltip: item.label } : i)));
|
|
16529
|
+
}
|
|
16530
|
+
}
|
|
16531
|
+
handlerTitleTooltip(value) {
|
|
16532
|
+
if (this._titleTooltipCalculated) {
|
|
16533
|
+
return;
|
|
16534
|
+
}
|
|
16535
|
+
this.applyTooltipIfOverflows(value, this.title(), this.titleTooltip);
|
|
16536
|
+
this._titleTooltipCalculated = true;
|
|
16537
|
+
}
|
|
16538
|
+
handlerContextTitleTooltip(value) {
|
|
16539
|
+
if (this._contextTitleTooltipCalculated) {
|
|
16540
|
+
return;
|
|
16541
|
+
}
|
|
16542
|
+
this.applyTooltipIfOverflows(value, this.contextTitle(), this.contextTitleTooltip);
|
|
16543
|
+
this._contextTitleTooltipCalculated = true;
|
|
16544
|
+
}
|
|
16545
|
+
setLiterals() {
|
|
16546
|
+
this.literals = {
|
|
16547
|
+
...poContextMenuLiteralsDefault[this.languageService?.getLanguageDefault()],
|
|
16548
|
+
...poContextMenuLiteralsDefault[this.languageService?.getShortLanguage()]
|
|
16549
|
+
};
|
|
16550
|
+
}
|
|
16551
|
+
hasMultipleSelected(items) {
|
|
16552
|
+
let count = 0;
|
|
16553
|
+
for (const item of items) {
|
|
16554
|
+
if (item.selected && ++count > 1) {
|
|
16555
|
+
return true;
|
|
16556
|
+
}
|
|
16557
|
+
}
|
|
16558
|
+
return false;
|
|
16559
|
+
}
|
|
16560
|
+
sanitizeSelection(items) {
|
|
16561
|
+
const firstIndex = items.findIndex(i => i.selected);
|
|
16562
|
+
return items.map((item, index) => (item.selected && index !== firstIndex ? { ...item, selected: false } : item));
|
|
16563
|
+
}
|
|
16564
|
+
applyTooltipIfOverflows(element, textValue, storageSignal) {
|
|
16565
|
+
const hasOverflow = element.scrollHeight > element.offsetHeight;
|
|
16566
|
+
if (hasOverflow) {
|
|
16567
|
+
storageSignal.set(textValue);
|
|
16568
|
+
}
|
|
16569
|
+
}
|
|
16570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16571
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoContextMenuComponent, isStandalone: false, selector: "po-context-menu", usesInheritance: true, ngImport: i0, template: "<div class=\"po-context-menu\" [class.po-context-menu-collapsed]=\"!expanded()\">\n <div class=\"po-context-menu-header\">\n <button\n class=\"po-context-menu-toggle\"\n type=\"button\"\n [attr.aria-label]=\"expanded() ? literals.close : literals.open\"\n (click)=\"toggleExpand()\"\n >\n <po-icon [p-icon]=\"expanded() ? 'ICON_SIDEBAR' : 'ICON_SIDEBAR_SIMPLES'\" />\n </button>\n\n @if (expanded()) {\n <div class=\"po-context-menu-header-content\">\n @if (contextTitle()) {\n <span\n #contextTitleRef\n class=\"po-context-menu-context-title\"\n (mouseenter)=\"handlerContextTitleTooltip(contextTitleRef)\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"contextTitleTooltip()\"\n >\n {{ contextTitle() }}\n </span>\n }\n @if (title()) {\n <span\n #titleRef\n class=\"po-context-menu-title\"\n (mouseenter)=\"handlerTitleTooltip(titleRef)\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"titleTooltip()\"\n >\n {{ title() }}\n </span>\n }\n </div>\n }\n </div>\n\n @if (expanded()) {\n <nav class=\"po-context-menu-body\">\n <ul class=\"po-context-menu-list\" role=\"menu\">\n @for (item of _items(); track $index) {\n <li\n #itemRef\n class=\"po-context-menu-list-item\"\n role=\"menuitem\"\n tabindex=\"0\"\n [attr.aria-label]=\"item.label\"\n [class.po-context-menu-item-selected]=\"item.selected\"\n (click)=\"selectItem(item)\"\n (keydown.enter)=\"selectItem(item)\"\n (keydown.space)=\"selectItem(item)\"\n (mouseenter)=\"handlerItemTooltip(item, itemRef)\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"item.tooltip\"\n >\n <span class=\"po-context-menu-item-label\">{{ item.label }}</span>\n </li>\n }\n </ul>\n </nav>\n }\n</div>\n", dependencies: [{ kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16572
|
+
}
|
|
16573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuComponent, decorators: [{
|
|
16574
|
+
type: Component,
|
|
16575
|
+
args: [{ selector: 'po-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"po-context-menu\" [class.po-context-menu-collapsed]=\"!expanded()\">\n <div class=\"po-context-menu-header\">\n <button\n class=\"po-context-menu-toggle\"\n type=\"button\"\n [attr.aria-label]=\"expanded() ? literals.close : literals.open\"\n (click)=\"toggleExpand()\"\n >\n <po-icon [p-icon]=\"expanded() ? 'ICON_SIDEBAR' : 'ICON_SIDEBAR_SIMPLES'\" />\n </button>\n\n @if (expanded()) {\n <div class=\"po-context-menu-header-content\">\n @if (contextTitle()) {\n <span\n #contextTitleRef\n class=\"po-context-menu-context-title\"\n (mouseenter)=\"handlerContextTitleTooltip(contextTitleRef)\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"contextTitleTooltip()\"\n >\n {{ contextTitle() }}\n </span>\n }\n @if (title()) {\n <span\n #titleRef\n class=\"po-context-menu-title\"\n (mouseenter)=\"handlerTitleTooltip(titleRef)\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"titleTooltip()\"\n >\n {{ title() }}\n </span>\n }\n </div>\n }\n </div>\n\n @if (expanded()) {\n <nav class=\"po-context-menu-body\">\n <ul class=\"po-context-menu-list\" role=\"menu\">\n @for (item of _items(); track $index) {\n <li\n #itemRef\n class=\"po-context-menu-list-item\"\n role=\"menuitem\"\n tabindex=\"0\"\n [attr.aria-label]=\"item.label\"\n [class.po-context-menu-item-selected]=\"item.selected\"\n (click)=\"selectItem(item)\"\n (keydown.enter)=\"selectItem(item)\"\n (keydown.space)=\"selectItem(item)\"\n (mouseenter)=\"handlerItemTooltip(item, itemRef)\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"item.tooltip\"\n >\n <span class=\"po-context-menu-item-label\">{{ item.label }}</span>\n </li>\n }\n </ul>\n </nav>\n }\n</div>\n" }]
|
|
16576
|
+
}], ctorParameters: () => [] });
|
|
16577
|
+
|
|
16578
|
+
/**
|
|
16579
|
+
* @description
|
|
16580
|
+
*
|
|
16581
|
+
* Módulo do componente po-context-menu.
|
|
16582
|
+
*/
|
|
16583
|
+
class PoContextMenuModule {
|
|
16584
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16585
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuModule, declarations: [PoContextMenuComponent], imports: [CommonModule, PoIconModule, PoTooltipModule], exports: [PoContextMenuComponent] });
|
|
16586
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuModule, imports: [CommonModule, PoIconModule, PoTooltipModule] });
|
|
16587
|
+
}
|
|
16588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoContextMenuModule, decorators: [{
|
|
16589
|
+
type: NgModule,
|
|
16590
|
+
args: [{
|
|
16591
|
+
imports: [CommonModule, PoIconModule, PoTooltipModule],
|
|
16592
|
+
declarations: [PoContextMenuComponent],
|
|
16593
|
+
exports: [PoContextMenuComponent]
|
|
16594
|
+
}]
|
|
16595
|
+
}] });
|
|
16596
|
+
|
|
16319
16597
|
const PoDisclaimerLiterals = {
|
|
16320
16598
|
en: {
|
|
16321
16599
|
remove: 'Remove'
|
|
@@ -17247,8 +17525,6 @@ class PoCheckboxGroupBaseComponent {
|
|
|
17247
17525
|
*/
|
|
17248
17526
|
autoFocus = false;
|
|
17249
17527
|
/**
|
|
17250
|
-
* @Input
|
|
17251
|
-
*
|
|
17252
17528
|
* @optional
|
|
17253
17529
|
*
|
|
17254
17530
|
* @description
|
|
@@ -17330,8 +17606,6 @@ class PoCheckboxGroupBaseComponent {
|
|
|
17330
17606
|
*/
|
|
17331
17607
|
errorLimit = false;
|
|
17332
17608
|
/**
|
|
17333
|
-
* @Input
|
|
17334
|
-
*
|
|
17335
17609
|
* @optional
|
|
17336
17610
|
*
|
|
17337
17611
|
* @description
|
|
@@ -17343,8 +17617,6 @@ class PoCheckboxGroupBaseComponent {
|
|
|
17343
17617
|
*/
|
|
17344
17618
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
17345
17619
|
/**
|
|
17346
|
-
* @Input
|
|
17347
|
-
*
|
|
17348
17620
|
* @optional
|
|
17349
17621
|
*
|
|
17350
17622
|
* @description
|
|
@@ -18033,8 +18305,6 @@ class PoRadioGroupBaseComponent {
|
|
|
18033
18305
|
*/
|
|
18034
18306
|
autoFocus = false;
|
|
18035
18307
|
/**
|
|
18036
|
-
* @Input
|
|
18037
|
-
*
|
|
18038
18308
|
* @optional
|
|
18039
18309
|
*
|
|
18040
18310
|
* @description
|
|
@@ -18112,8 +18382,6 @@ class PoRadioGroupBaseComponent {
|
|
|
18112
18382
|
*/
|
|
18113
18383
|
errorLimit = false;
|
|
18114
18384
|
/**
|
|
18115
|
-
* @Input
|
|
18116
|
-
*
|
|
18117
18385
|
* @optional
|
|
18118
18386
|
*
|
|
18119
18387
|
* @description
|
|
@@ -18125,8 +18393,6 @@ class PoRadioGroupBaseComponent {
|
|
|
18125
18393
|
*/
|
|
18126
18394
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
18127
18395
|
/**
|
|
18128
|
-
* @Input
|
|
18129
|
-
*
|
|
18130
18396
|
* @optional
|
|
18131
18397
|
*
|
|
18132
18398
|
* @description
|
|
@@ -19612,8 +19878,6 @@ class PoDatepickerBaseComponent {
|
|
|
19612
19878
|
*/
|
|
19613
19879
|
autoFocus = false;
|
|
19614
19880
|
/**
|
|
19615
|
-
* @Input
|
|
19616
|
-
*
|
|
19617
19881
|
* @optional
|
|
19618
19882
|
*
|
|
19619
19883
|
* @description
|
|
@@ -19747,8 +20011,6 @@ class PoDatepickerBaseComponent {
|
|
|
19747
20011
|
*/
|
|
19748
20012
|
keydown = new EventEmitter();
|
|
19749
20013
|
/**
|
|
19750
|
-
* @Input
|
|
19751
|
-
*
|
|
19752
20014
|
* @optional
|
|
19753
20015
|
*
|
|
19754
20016
|
* @description
|
|
@@ -19760,8 +20022,6 @@ class PoDatepickerBaseComponent {
|
|
|
19760
20022
|
*/
|
|
19761
20023
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
19762
20024
|
/**
|
|
19763
|
-
* @Input
|
|
19764
|
-
*
|
|
19765
20025
|
* @optional
|
|
19766
20026
|
*
|
|
19767
20027
|
* @description
|
|
@@ -23745,7 +24005,7 @@ class PoThemeService {
|
|
|
23745
24005
|
const a11yLevel = this.getA11yLevel();
|
|
23746
24006
|
if (!this.isValidA11yLevel(a11yLevel))
|
|
23747
24007
|
return false;
|
|
23748
|
-
const defaultSize = 'small';
|
|
24008
|
+
const defaultSize = enable ? 'small' : 'medium';
|
|
23749
24009
|
document.documentElement.setAttribute('data-default-size', defaultSize);
|
|
23750
24010
|
if (a11yLevel === PoThemeA11yEnum.AA && enable) {
|
|
23751
24011
|
if (localStorage.getItem('po-default-size') !== defaultSize) {
|
|
@@ -25229,9 +25489,6 @@ class PoSwitchComponent extends PoFieldModel {
|
|
|
25229
25489
|
_initialSize = undefined;
|
|
25230
25490
|
statusChangesSubscription;
|
|
25231
25491
|
/**
|
|
25232
|
-
*
|
|
25233
|
-
* @Input
|
|
25234
|
-
*
|
|
25235
25492
|
* @optional
|
|
25236
25493
|
*
|
|
25237
25494
|
* @description
|
|
@@ -25409,8 +25666,6 @@ class PoSwitchComponent extends PoFieldModel {
|
|
|
25409
25666
|
return this._size ?? getDefaultSizeFn(PoFieldSize);
|
|
25410
25667
|
}
|
|
25411
25668
|
/**
|
|
25412
|
-
* @Input
|
|
25413
|
-
*
|
|
25414
25669
|
* @optional
|
|
25415
25670
|
*
|
|
25416
25671
|
* @description
|
|
@@ -25422,8 +25677,6 @@ class PoSwitchComponent extends PoFieldModel {
|
|
|
25422
25677
|
*/
|
|
25423
25678
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
25424
25679
|
/**
|
|
25425
|
-
* @Input
|
|
25426
|
-
*
|
|
25427
25680
|
* @optional
|
|
25428
25681
|
*
|
|
25429
25682
|
* @description
|
|
@@ -30831,8 +31084,6 @@ class PoDatepickerRangeBaseComponent {
|
|
|
30831
31084
|
*/
|
|
30832
31085
|
autoFocus = false;
|
|
30833
31086
|
/**
|
|
30834
|
-
* @Input
|
|
30835
|
-
*
|
|
30836
31087
|
* @optional
|
|
30837
31088
|
*
|
|
30838
31089
|
* @description
|
|
@@ -30960,8 +31211,6 @@ class PoDatepickerRangeBaseComponent {
|
|
|
30960
31211
|
*/
|
|
30961
31212
|
errorLimit = false;
|
|
30962
31213
|
/**
|
|
30963
|
-
* @Input
|
|
30964
|
-
*
|
|
30965
31214
|
* @optional
|
|
30966
31215
|
*
|
|
30967
31216
|
* @description
|
|
@@ -30973,8 +31222,6 @@ class PoDatepickerRangeBaseComponent {
|
|
|
30973
31222
|
*/
|
|
30974
31223
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
30975
31224
|
/**
|
|
30976
|
-
* @Input
|
|
30977
|
-
*
|
|
30978
31225
|
* @optional
|
|
30979
31226
|
*
|
|
30980
31227
|
* @description
|
|
@@ -32323,8 +32570,6 @@ class PoInputBaseComponent {
|
|
|
32323
32570
|
*/
|
|
32324
32571
|
autoFocus = false;
|
|
32325
32572
|
/**
|
|
32326
|
-
* @Input
|
|
32327
|
-
*
|
|
32328
32573
|
* @optional
|
|
32329
32574
|
*
|
|
32330
32575
|
* @description
|
|
@@ -32776,8 +33021,6 @@ class PoInputBaseComponent {
|
|
|
32776
33021
|
}
|
|
32777
33022
|
}
|
|
32778
33023
|
/**
|
|
32779
|
-
* @Input
|
|
32780
|
-
*
|
|
32781
33024
|
* @optional
|
|
32782
33025
|
*
|
|
32783
33026
|
* @description
|
|
@@ -32789,8 +33032,6 @@ class PoInputBaseComponent {
|
|
|
32789
33032
|
*/
|
|
32790
33033
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
32791
33034
|
/**
|
|
32792
|
-
* @Input
|
|
32793
|
-
*
|
|
32794
33035
|
* @optional
|
|
32795
33036
|
*
|
|
32796
33037
|
* @description
|
|
@@ -36283,8 +36524,6 @@ class PoLookupBaseComponent {
|
|
|
36283
36524
|
*/
|
|
36284
36525
|
virtualScroll = true;
|
|
36285
36526
|
/**
|
|
36286
|
-
* @Input
|
|
36287
|
-
*
|
|
36288
36527
|
* @optional
|
|
36289
36528
|
*
|
|
36290
36529
|
* @description
|
|
@@ -36296,8 +36535,6 @@ class PoLookupBaseComponent {
|
|
|
36296
36535
|
*/
|
|
36297
36536
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
36298
36537
|
/**
|
|
36299
|
-
* @Input
|
|
36300
|
-
*
|
|
36301
36538
|
* @optional
|
|
36302
36539
|
*
|
|
36303
36540
|
* @description
|
|
@@ -36310,8 +36547,6 @@ class PoLookupBaseComponent {
|
|
|
36310
36547
|
*/
|
|
36311
36548
|
labelTextWrap = input(false, { ...(ngDevMode ? { debugName: "labelTextWrap" } : {}), alias: 'p-label-text-wrap' });
|
|
36312
36549
|
/**
|
|
36313
|
-
* @Input
|
|
36314
|
-
*
|
|
36315
36550
|
* @optional
|
|
36316
36551
|
*
|
|
36317
36552
|
* @description
|
|
@@ -37587,8 +37822,6 @@ class PoMultiselectBaseComponent {
|
|
|
37587
37822
|
*/
|
|
37588
37823
|
autoFocus = false;
|
|
37589
37824
|
/**
|
|
37590
|
-
* @Input
|
|
37591
|
-
*
|
|
37592
37825
|
* @optional
|
|
37593
37826
|
*
|
|
37594
37827
|
* @description
|
|
@@ -37761,8 +37994,6 @@ class PoMultiselectBaseComponent {
|
|
|
37761
37994
|
*/
|
|
37762
37995
|
listboxControlPosition = poMultiselectContainerPositionDefault;
|
|
37763
37996
|
/**
|
|
37764
|
-
* @Input
|
|
37765
|
-
*
|
|
37766
37997
|
* @optional
|
|
37767
37998
|
*
|
|
37768
37999
|
* @description
|
|
@@ -37774,8 +38005,6 @@ class PoMultiselectBaseComponent {
|
|
|
37774
38005
|
*/
|
|
37775
38006
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
37776
38007
|
/**
|
|
37777
|
-
* @Input
|
|
37778
|
-
*
|
|
37779
38008
|
* @optional
|
|
37780
38009
|
*
|
|
37781
38010
|
* @description
|
|
@@ -39855,6 +40084,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
39855
40084
|
*/
|
|
39856
40085
|
class PoRichTextBaseComponent {
|
|
39857
40086
|
richTextService;
|
|
40087
|
+
cd;
|
|
39858
40088
|
/**
|
|
39859
40089
|
*
|
|
39860
40090
|
* @deprecated v23.x.x use `p-helper`
|
|
@@ -39905,6 +40135,34 @@ class PoRichTextBaseComponent {
|
|
|
39905
40135
|
* @default `false`
|
|
39906
40136
|
*/
|
|
39907
40137
|
disabledTextAlign;
|
|
40138
|
+
/**
|
|
40139
|
+
* @optional
|
|
40140
|
+
*
|
|
40141
|
+
* @description
|
|
40142
|
+
*
|
|
40143
|
+
* Indica que o campo será desabilitado.
|
|
40144
|
+
*
|
|
40145
|
+
* @default `false`
|
|
40146
|
+
*/
|
|
40147
|
+
disabled;
|
|
40148
|
+
/**
|
|
40149
|
+
* @optional
|
|
40150
|
+
*
|
|
40151
|
+
* @description
|
|
40152
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
40153
|
+
*
|
|
40154
|
+
* @default `false`
|
|
40155
|
+
*/
|
|
40156
|
+
set loading(value) {
|
|
40157
|
+
this._loading = value;
|
|
40158
|
+
this.cd?.markForCheck();
|
|
40159
|
+
}
|
|
40160
|
+
get loading() {
|
|
40161
|
+
return this._loading;
|
|
40162
|
+
}
|
|
40163
|
+
get isDisabled() {
|
|
40164
|
+
return this.disabled || this.loading;
|
|
40165
|
+
}
|
|
39908
40166
|
/**
|
|
39909
40167
|
* @description
|
|
39910
40168
|
*
|
|
@@ -39941,8 +40199,6 @@ class PoRichTextBaseComponent {
|
|
|
39941
40199
|
*/
|
|
39942
40200
|
label;
|
|
39943
40201
|
/**
|
|
39944
|
-
* @Input
|
|
39945
|
-
*
|
|
39946
40202
|
* @optional
|
|
39947
40203
|
*
|
|
39948
40204
|
* @description
|
|
@@ -40024,8 +40280,6 @@ class PoRichTextBaseComponent {
|
|
|
40024
40280
|
return this._hideToolbarActions;
|
|
40025
40281
|
}
|
|
40026
40282
|
/**
|
|
40027
|
-
* @Input
|
|
40028
|
-
*
|
|
40029
40283
|
* @optional
|
|
40030
40284
|
*
|
|
40031
40285
|
* @description
|
|
@@ -40037,8 +40291,6 @@ class PoRichTextBaseComponent {
|
|
|
40037
40291
|
*/
|
|
40038
40292
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
40039
40293
|
/**
|
|
40040
|
-
* @Input
|
|
40041
|
-
*
|
|
40042
40294
|
* @optional
|
|
40043
40295
|
*
|
|
40044
40296
|
* @description
|
|
@@ -40090,6 +40342,7 @@ class PoRichTextBaseComponent {
|
|
|
40090
40342
|
invalid = false;
|
|
40091
40343
|
onChangeModel = null;
|
|
40092
40344
|
value;
|
|
40345
|
+
_loading = false;
|
|
40093
40346
|
_height;
|
|
40094
40347
|
_placeholder;
|
|
40095
40348
|
_readonly;
|
|
@@ -40188,8 +40441,15 @@ class PoRichTextBaseComponent {
|
|
|
40188
40441
|
* - Não possuir `p-help` e/ou `p-label`.
|
|
40189
40442
|
*/
|
|
40190
40443
|
showRequired = false;
|
|
40191
|
-
constructor(richTextService) {
|
|
40444
|
+
constructor(richTextService, cd) {
|
|
40192
40445
|
this.richTextService = richTextService;
|
|
40446
|
+
this.cd = cd;
|
|
40447
|
+
}
|
|
40448
|
+
// Função implementada do ControlValueAccessor
|
|
40449
|
+
// Usada para interceptar os estados de habilitado via forms api
|
|
40450
|
+
setDisabledState(isDisabled) {
|
|
40451
|
+
this.disabled = isDisabled;
|
|
40452
|
+
this.cd.markForCheck();
|
|
40193
40453
|
}
|
|
40194
40454
|
onThemeChange() {
|
|
40195
40455
|
this.applySizeBasedOnA11y();
|
|
@@ -40208,7 +40468,7 @@ class PoRichTextBaseComponent {
|
|
|
40208
40468
|
this.validatorChange = fn;
|
|
40209
40469
|
}
|
|
40210
40470
|
validate(abstractControl) {
|
|
40211
|
-
if (PoValidators.requiredFailed(this.required,
|
|
40471
|
+
if (PoValidators.requiredFailed(this.required, this.disabled, abstractControl.value)) {
|
|
40212
40472
|
return {
|
|
40213
40473
|
required: {
|
|
40214
40474
|
valid: false
|
|
@@ -40236,12 +40496,12 @@ class PoRichTextBaseComponent {
|
|
|
40236
40496
|
const size = validateSizeFn(this._initialSize, PoFieldSize);
|
|
40237
40497
|
this._size = size;
|
|
40238
40498
|
}
|
|
40239
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextBaseComponent, deps: [{ token: PoRichTextService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
40240
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoRichTextBaseComponent, isStandalone: true, inputs: { additionalHelpTooltip: { classPropertyName: "additionalHelpTooltip", publicName: "p-additional-help-tooltip", isSignal: false, isRequired: false, transformFunction: null }, appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, autoFocus: { classPropertyName: "autoFocus", publicName: "p-auto-focus", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, disabledTextAlign: { classPropertyName: "disabledTextAlign", publicName: "p-disabled-text-align", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, errorMessage: { classPropertyName: "errorMessage", publicName: "p-error-message", isSignal: false, isRequired: false, transformFunction: null }, errorLimit: { classPropertyName: "errorLimit", publicName: "p-error-limit", isSignal: false, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "p-help", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "p-label", isSignal: false, isRequired: false, transformFunction: null }, compactLabel: { classPropertyName: "compactLabel", publicName: "p-compact-label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "p-optional", isSignal: false, isRequired: false, transformFunction: null }, hideToolbarActions: { classPropertyName: "hideToolbarActions", publicName: "p-hide-toolbar-actions", isSignal: false, isRequired: false, transformFunction: null }, poHelperComponent: { classPropertyName: "poHelperComponent", publicName: "p-helper", isSignal: true, isRequired: false, transformFunction: null }, labelTextWrap: { classPropertyName: "labelTextWrap", publicName: "p-label-text-wrap", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "p-height", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "p-placeholder", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "p-readonly", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "p-required", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: false, isRequired: false, transformFunction: null }, showRequired: { classPropertyName: "showRequired", publicName: "p-show-required", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { additionalHelp: "p-additional-help", change: "p-change", changeModel: "p-change-model", keydown: "p-keydown" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-size": "this.size" } }, ngImport: i0 });
|
|
40499
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextBaseComponent, deps: [{ token: PoRichTextService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
40500
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoRichTextBaseComponent, isStandalone: true, inputs: { additionalHelpTooltip: { classPropertyName: "additionalHelpTooltip", publicName: "p-additional-help-tooltip", isSignal: false, isRequired: false, transformFunction: null }, appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, autoFocus: { classPropertyName: "autoFocus", publicName: "p-auto-focus", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, disabledTextAlign: { classPropertyName: "disabledTextAlign", publicName: "p-disabled-text-align", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, disabled: { classPropertyName: "disabled", publicName: "p-disabled", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, loading: { classPropertyName: "loading", publicName: "p-loading", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, errorMessage: { classPropertyName: "errorMessage", publicName: "p-error-message", isSignal: false, isRequired: false, transformFunction: null }, errorLimit: { classPropertyName: "errorLimit", publicName: "p-error-limit", isSignal: false, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "p-help", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "p-label", isSignal: false, isRequired: false, transformFunction: null }, compactLabel: { classPropertyName: "compactLabel", publicName: "p-compact-label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "p-optional", isSignal: false, isRequired: false, transformFunction: null }, hideToolbarActions: { classPropertyName: "hideToolbarActions", publicName: "p-hide-toolbar-actions", isSignal: false, isRequired: false, transformFunction: null }, poHelperComponent: { classPropertyName: "poHelperComponent", publicName: "p-helper", isSignal: true, isRequired: false, transformFunction: null }, labelTextWrap: { classPropertyName: "labelTextWrap", publicName: "p-label-text-wrap", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "p-height", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "p-placeholder", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "p-readonly", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "p-required", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: false, isRequired: false, transformFunction: null }, showRequired: { classPropertyName: "showRequired", publicName: "p-show-required", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { additionalHelp: "p-additional-help", change: "p-change", changeModel: "p-change-model", keydown: "p-keydown" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-size": "this.size" } }, ngImport: i0 });
|
|
40241
40501
|
}
|
|
40242
40502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextBaseComponent, decorators: [{
|
|
40243
40503
|
type: Directive
|
|
40244
|
-
}], ctorParameters: () => [{ type: PoRichTextService }], propDecorators: { additionalHelpTooltip: [{
|
|
40504
|
+
}], ctorParameters: () => [{ type: PoRichTextService }, { type: i0.ChangeDetectorRef }], propDecorators: { additionalHelpTooltip: [{
|
|
40245
40505
|
type: Input,
|
|
40246
40506
|
args: ['p-additional-help-tooltip']
|
|
40247
40507
|
}], appendBox: [{
|
|
@@ -40253,6 +40513,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
40253
40513
|
}], disabledTextAlign: [{
|
|
40254
40514
|
type: Input,
|
|
40255
40515
|
args: [{ alias: 'p-disabled-text-align', transform: convertToBoolean }]
|
|
40516
|
+
}], disabled: [{
|
|
40517
|
+
type: Input,
|
|
40518
|
+
args: [{ alias: 'p-disabled', transform: convertToBoolean }]
|
|
40519
|
+
}], loading: [{
|
|
40520
|
+
type: Input,
|
|
40521
|
+
args: [{ alias: 'p-loading', transform: convertToBoolean }]
|
|
40256
40522
|
}], errorMessage: [{
|
|
40257
40523
|
type: Input,
|
|
40258
40524
|
args: ['p-error-message']
|
|
@@ -40325,12 +40591,15 @@ const poRichTextBodyCommands = [
|
|
|
40325
40591
|
];
|
|
40326
40592
|
class PoRichTextBodyComponent {
|
|
40327
40593
|
richTextService = inject(PoRichTextService);
|
|
40594
|
+
cd = inject(ChangeDetectorRef);
|
|
40328
40595
|
bodyElement;
|
|
40329
40596
|
height;
|
|
40330
40597
|
label;
|
|
40331
40598
|
modelValue;
|
|
40332
40599
|
placeholder;
|
|
40333
40600
|
readonly;
|
|
40601
|
+
disabled = false;
|
|
40602
|
+
loading = false;
|
|
40334
40603
|
change = new EventEmitter();
|
|
40335
40604
|
commands = new EventEmitter();
|
|
40336
40605
|
keydown = new EventEmitter();
|
|
@@ -40344,6 +40613,12 @@ class PoRichTextBodyComponent {
|
|
|
40344
40613
|
timeoutChange;
|
|
40345
40614
|
valueBeforeChange;
|
|
40346
40615
|
modelSubscription;
|
|
40616
|
+
resizeObserver;
|
|
40617
|
+
hasScroll = false;
|
|
40618
|
+
hasValue = false;
|
|
40619
|
+
onWindowResize() {
|
|
40620
|
+
this.checkScrollState();
|
|
40621
|
+
}
|
|
40347
40622
|
ngOnInit() {
|
|
40348
40623
|
this.bodyElement.nativeElement.designMode = 'on';
|
|
40349
40624
|
this.modelSubscription = this.richTextService.getModel().subscribe(modelValue => {
|
|
@@ -40351,10 +40626,19 @@ class PoRichTextBodyComponent {
|
|
|
40351
40626
|
this.bodyElement.nativeElement.innerHTML = '';
|
|
40352
40627
|
this.updateValueWithModelValue();
|
|
40353
40628
|
this.addClickListenerOnAnchorElements();
|
|
40629
|
+
this.updateHasValue();
|
|
40630
|
+
this.checkScrollState();
|
|
40354
40631
|
});
|
|
40632
|
+
this.initResizeObserver();
|
|
40633
|
+
}
|
|
40634
|
+
ngOnChanges(changes) {
|
|
40635
|
+
if (changes['loading']) {
|
|
40636
|
+
setTimeout(() => this.checkScrollState());
|
|
40637
|
+
}
|
|
40355
40638
|
}
|
|
40356
40639
|
ngOnDestroy() {
|
|
40357
40640
|
this.modelSubscription?.unsubscribe();
|
|
40641
|
+
this.resizeObserver?.disconnect();
|
|
40358
40642
|
}
|
|
40359
40643
|
executeCommand(command) {
|
|
40360
40644
|
this.bodyElement.nativeElement.focus();
|
|
@@ -40412,10 +40696,16 @@ class PoRichTextBodyComponent {
|
|
|
40412
40696
|
this.removeBrElement();
|
|
40413
40697
|
this.updateModel();
|
|
40414
40698
|
this.emitSelectionCommands();
|
|
40699
|
+
this.updateHasValue();
|
|
40700
|
+
this.checkScrollState();
|
|
40415
40701
|
}
|
|
40416
40702
|
onPaste() {
|
|
40417
40703
|
this.update();
|
|
40418
|
-
setTimeout(() =>
|
|
40704
|
+
setTimeout(() => {
|
|
40705
|
+
this.addClickListenerOnAnchorElements();
|
|
40706
|
+
this.updateHasValue();
|
|
40707
|
+
this.checkScrollState();
|
|
40708
|
+
});
|
|
40419
40709
|
}
|
|
40420
40710
|
update() {
|
|
40421
40711
|
setTimeout(() => this.updateModel());
|
|
@@ -40423,8 +40713,14 @@ class PoRichTextBodyComponent {
|
|
|
40423
40713
|
this.removeBrElement();
|
|
40424
40714
|
this.updateModel();
|
|
40425
40715
|
this.emitSelectionCommands();
|
|
40716
|
+
this.updateHasValue();
|
|
40717
|
+
this.checkScrollState();
|
|
40426
40718
|
});
|
|
40427
40719
|
}
|
|
40720
|
+
//Transforma o tamanho do input para o tamanho do ícone de loading correspondente
|
|
40721
|
+
mapSizeToIcon(size) {
|
|
40722
|
+
return mapInputSizeToLoadingIcon(size);
|
|
40723
|
+
}
|
|
40428
40724
|
addClickListenerOnAnchorElements() {
|
|
40429
40725
|
this.bodyElement.nativeElement.querySelectorAll('a').forEach(element => {
|
|
40430
40726
|
element.addEventListener('click', this.onAnchorClick);
|
|
@@ -40610,12 +40906,36 @@ class PoRichTextBodyComponent {
|
|
|
40610
40906
|
}
|
|
40611
40907
|
return isLink;
|
|
40612
40908
|
}
|
|
40909
|
+
get bodyEl() {
|
|
40910
|
+
return this.bodyElement?.nativeElement;
|
|
40911
|
+
}
|
|
40912
|
+
updateHasValue() {
|
|
40913
|
+
const text = this.bodyEl?.innerText?.trim();
|
|
40914
|
+
this.hasValue = !!text;
|
|
40915
|
+
}
|
|
40916
|
+
checkScrollState() {
|
|
40917
|
+
const el = this.bodyEl;
|
|
40918
|
+
if (!el)
|
|
40919
|
+
return;
|
|
40920
|
+
this.hasScroll = el.scrollHeight > el.clientHeight;
|
|
40921
|
+
this.cd.markForCheck();
|
|
40922
|
+
}
|
|
40923
|
+
initResizeObserver() {
|
|
40924
|
+
const el = this.bodyEl;
|
|
40925
|
+
if (!el || typeof ResizeObserver === 'undefined') {
|
|
40926
|
+
return;
|
|
40927
|
+
}
|
|
40928
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
40929
|
+
this.checkScrollState();
|
|
40930
|
+
});
|
|
40931
|
+
this.resizeObserver.observe(el);
|
|
40932
|
+
}
|
|
40613
40933
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40614
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
40934
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoRichTextBodyComponent, isStandalone: false, selector: "po-rich-text-body", inputs: { height: ["p-height", "height"], label: ["p-label", "label"], modelValue: ["p-model-value", "modelValue"], placeholder: ["p-placeholder", "placeholder"], readonly: ["p-readonly", "readonly"], disabled: ["p-disabled", "disabled"], loading: ["p-loading", "loading"], size: ["p-size", "size"] }, outputs: { change: "p-change", commands: "p-commands", keydown: "p-keydown", selectedLink: "p-selected-link", shortcutCommand: "p-shortcut-command", value: "p-value", blur: "p-blur" }, host: { listeners: { "window:resize": "onWindowResize()" }, properties: { "attr.p-size": "this.size" } }, viewQueries: [{ propertyName: "bodyElement", first: true, predicate: ["bodyElement"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"po-field-container-rich-text-body\">\n <div\n #bodyElement\n class=\"po-rich-text-body\"\n [class.has-value]=\"hasValue\"\n [class.has-scroll]=\"hasScroll\"\n [class.has-loading]=\"loading\"\n [class.po-rich-text-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-label]=\"label\"\n [attr.contenteditable]=\"!readonly && !disabled\"\n [attr.data-placeholder]=\"placeholder\"\n [style.height.px]=\"height\"\n (blur)=\"onBlur()\"\n (click)=\"onClick()\"\n (cut)=\"update()\"\n (focus)=\"onFocus()\"\n (keydown)=\"onKeyDown($event)\"\n (keyup)=\"onKeyUp($event)\"\n (paste)=\"onPaste()\"\n ></div>\n @if (loading) {\n <div class=\"po-field-icon-container-right po-rich-text-loading-container\">\n <po-loading-icon [p-size]=\"mapSizeToIcon(size)\"></po-loading-icon>\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: PoLoadingIconComponent, selector: "po-loading-icon", inputs: ["p-neutral-color", "p-size", "p-in-overlay"] }] });
|
|
40615
40935
|
}
|
|
40616
40936
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextBodyComponent, decorators: [{
|
|
40617
40937
|
type: Component,
|
|
40618
|
-
args: [{ selector: 'po-rich-text-body', standalone: false, template: "<div\n #bodyElement\n
|
|
40938
|
+
args: [{ selector: 'po-rich-text-body', standalone: false, template: "<div class=\"po-field-container-rich-text-body\">\n <div\n #bodyElement\n class=\"po-rich-text-body\"\n [class.has-value]=\"hasValue\"\n [class.has-scroll]=\"hasScroll\"\n [class.has-loading]=\"loading\"\n [class.po-rich-text-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-label]=\"label\"\n [attr.contenteditable]=\"!readonly && !disabled\"\n [attr.data-placeholder]=\"placeholder\"\n [style.height.px]=\"height\"\n (blur)=\"onBlur()\"\n (click)=\"onClick()\"\n (cut)=\"update()\"\n (focus)=\"onFocus()\"\n (keydown)=\"onKeyDown($event)\"\n (keyup)=\"onKeyUp($event)\"\n (paste)=\"onPaste()\"\n ></div>\n @if (loading) {\n <div class=\"po-field-icon-container-right po-rich-text-loading-container\">\n <po-loading-icon [p-size]=\"mapSizeToIcon(size)\"></po-loading-icon>\n </div>\n }\n</div>\n" }]
|
|
40619
40939
|
}], propDecorators: { bodyElement: [{
|
|
40620
40940
|
type: ViewChild,
|
|
40621
40941
|
args: ['bodyElement', { static: true }]
|
|
@@ -40634,6 +40954,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
40634
40954
|
}], readonly: [{
|
|
40635
40955
|
type: Input,
|
|
40636
40956
|
args: ['p-readonly']
|
|
40957
|
+
}], disabled: [{
|
|
40958
|
+
type: Input,
|
|
40959
|
+
args: ['p-disabled']
|
|
40960
|
+
}], loading: [{
|
|
40961
|
+
type: Input,
|
|
40962
|
+
args: ['p-loading']
|
|
40637
40963
|
}], change: [{
|
|
40638
40964
|
type: Output,
|
|
40639
40965
|
args: ['p-change']
|
|
@@ -40661,6 +40987,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
40661
40987
|
}], blur: [{
|
|
40662
40988
|
type: Output,
|
|
40663
40989
|
args: ['p-blur']
|
|
40990
|
+
}], onWindowResize: [{
|
|
40991
|
+
type: HostListener,
|
|
40992
|
+
args: ['window:resize']
|
|
40664
40993
|
}] } });
|
|
40665
40994
|
|
|
40666
40995
|
const poRichTextLiteralsDefault = {
|
|
@@ -41183,8 +41512,6 @@ class PoUploadBaseComponent {
|
|
|
41183
41512
|
/** Rótulo do campo. */
|
|
41184
41513
|
label;
|
|
41185
41514
|
/**
|
|
41186
|
-
* @Input
|
|
41187
|
-
*
|
|
41188
41515
|
* @optional
|
|
41189
41516
|
*
|
|
41190
41517
|
* @description
|
|
@@ -41295,8 +41622,6 @@ class PoUploadBaseComponent {
|
|
|
41295
41622
|
*/
|
|
41296
41623
|
requiredUrl = true;
|
|
41297
41624
|
/**
|
|
41298
|
-
* @Input
|
|
41299
|
-
*
|
|
41300
41625
|
* @optional
|
|
41301
41626
|
*
|
|
41302
41627
|
* @description
|
|
@@ -41308,8 +41633,6 @@ class PoUploadBaseComponent {
|
|
|
41308
41633
|
*/
|
|
41309
41634
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
41310
41635
|
/**
|
|
41311
|
-
* @Input
|
|
41312
|
-
*
|
|
41313
41636
|
* @optional
|
|
41314
41637
|
*
|
|
41315
41638
|
* @description
|
|
@@ -41553,6 +41876,7 @@ class PoUploadBaseComponent {
|
|
|
41553
41876
|
_hideSendButton;
|
|
41554
41877
|
_isMultiple;
|
|
41555
41878
|
_literals;
|
|
41879
|
+
_loading = false;
|
|
41556
41880
|
_required;
|
|
41557
41881
|
_size = undefined;
|
|
41558
41882
|
_initialSize = undefined;
|
|
@@ -41737,6 +42061,26 @@ class PoUploadBaseComponent {
|
|
|
41737
42061
|
get disabled() {
|
|
41738
42062
|
return this._disabled;
|
|
41739
42063
|
}
|
|
42064
|
+
/**
|
|
42065
|
+
* @optional
|
|
42066
|
+
*
|
|
42067
|
+
* @description
|
|
42068
|
+
* Exibe um ícone de carregamento no botão `Selecionar arquivo`, à esquerda do texto, sinalizando que uma operação está em andamento.
|
|
42069
|
+
*
|
|
42070
|
+
* > Incompatível com `p-drag-drop` e `p-hide-select-button`, pois o estado de loading depende da exibição do botão `Selecionar arquivo`.
|
|
42071
|
+
*
|
|
42072
|
+
* @default `false`
|
|
42073
|
+
*/
|
|
42074
|
+
set loading(value) {
|
|
42075
|
+
this._loading = value;
|
|
42076
|
+
this.cd?.markForCheck();
|
|
42077
|
+
}
|
|
42078
|
+
get loading() {
|
|
42079
|
+
return this._loading;
|
|
42080
|
+
}
|
|
42081
|
+
get isDisabled() {
|
|
42082
|
+
return this.disabled || this.loading;
|
|
42083
|
+
}
|
|
41740
42084
|
/**
|
|
41741
42085
|
* @optional
|
|
41742
42086
|
*
|
|
@@ -41958,7 +42302,7 @@ class PoUploadBaseComponent {
|
|
|
41958
42302
|
this._size = size;
|
|
41959
42303
|
}
|
|
41960
42304
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoUploadBaseComponent, deps: [{ token: PoUploadService }, { token: PoLanguageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
41961
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoUploadBaseComponent, isStandalone: true, inputs: { additionalHelpEventTrigger: { classPropertyName: "additionalHelpEventTrigger", publicName: "additionalHelpEventTrigger", isSignal: false, isRequired: false, transformFunction: null }, additionalHelpTooltip: { classPropertyName: "additionalHelpTooltip", publicName: "p-additional-help-tooltip", isSignal: false, isRequired: false, transformFunction: null }, appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, autoFocus: { classPropertyName: "autoFocus", publicName: "p-auto-focus", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, dragDropHeight: { classPropertyName: "dragDropHeight", publicName: "p-drag-drop-height", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "p-label", isSignal: false, isRequired: false, transformFunction: null }, compactLabel: { classPropertyName: "compactLabel", publicName: "p-compact-label", isSignal: true, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "p-help", isSignal: false, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "p-url", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, autoUpload: { classPropertyName: "autoUpload", publicName: "p-auto-upload", isSignal: false, isRequired: false, transformFunction: null }, disabledRemoveFile: { classPropertyName: "disabledRemoveFile", publicName: "p-disabled-remove-file", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, optional: { classPropertyName: "optional", publicName: "p-optional", isSignal: false, isRequired: false, transformFunction: null }, showThumbnail: { classPropertyName: "showThumbnail", publicName: "p-show-thumbnail", isSignal: false, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "p-headers", isSignal: false, isRequired: false, transformFunction: null }, requiredUrl: { classPropertyName: "requiredUrl", publicName: "p-required-url", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, poHelperComponent: { classPropertyName: "poHelperComponent", publicName: "p-helper", isSignal: true, isRequired: false, transformFunction: null }, labelTextWrap: { classPropertyName: "labelTextWrap", publicName: "p-label-text-wrap", isSignal: true, isRequired: false, transformFunction: null }, customAction: { classPropertyName: "customAction", publicName: "p-custom-action", isSignal: false, isRequired: false, transformFunction: null }, customModalActions: { classPropertyName: "customModalActions", publicName: "p-custom-modal-actions", isSignal: false, isRequired: false, transformFunction: null }, directory: { classPropertyName: "directory", publicName: "p-directory", isSignal: false, isRequired: false, transformFunction: null }, dragDrop: { classPropertyName: "dragDrop", publicName: "p-drag-drop", isSignal: false, isRequired: false, transformFunction: null }, hideRestrictionsInfo: { classPropertyName: "hideRestrictionsInfo", publicName: "p-hide-restrictions-info", isSignal: false, isRequired: false, transformFunction: null }, hideSelectButton: { classPropertyName: "hideSelectButton", publicName: "p-hide-select-button", isSignal: false, isRequired: false, transformFunction: null }, hideSendButton: { classPropertyName: "hideSendButton", publicName: "p-hide-send-button", isSignal: false, isRequired: false, transformFunction: null }, literals: { classPropertyName: "literals", publicName: "p-literals", isSignal: false, isRequired: false, transformFunction: null }, fileRestrictions: { classPropertyName: "fileRestrictions", publicName: "p-restrictions", isSignal: false, isRequired: false, transformFunction: null }, formField: { classPropertyName: "formField", publicName: "p-form-field", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "p-disabled", isSignal: false, isRequired: false, transformFunction: null }, isMultiple: { classPropertyName: "isMultiple", publicName: "p-multiple", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "p-required", isSignal: false, isRequired: false, transformFunction: null }, showRequired: { classPropertyName: "showRequired", publicName: "p-show-required", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { additionalHelp: "p-additional-help", customActionClick: "p-custom-action-click", keydown: "p-keydown", onUpload: "p-upload", onCancel: "p-cancel", onOpenModalPreview: "p-open-modal-preview", onRemove: "p-remove", onError: "p-error", onSuccess: "p-success", ngModelChange: "ngModelChange" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-required-url": "this.requiredUrl", "attr.p-size": "this.size" } }, ngImport: i0 });
|
|
42305
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoUploadBaseComponent, isStandalone: true, inputs: { additionalHelpEventTrigger: { classPropertyName: "additionalHelpEventTrigger", publicName: "additionalHelpEventTrigger", isSignal: false, isRequired: false, transformFunction: null }, additionalHelpTooltip: { classPropertyName: "additionalHelpTooltip", publicName: "p-additional-help-tooltip", isSignal: false, isRequired: false, transformFunction: null }, appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, autoFocus: { classPropertyName: "autoFocus", publicName: "p-auto-focus", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, dragDropHeight: { classPropertyName: "dragDropHeight", publicName: "p-drag-drop-height", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "p-label", isSignal: false, isRequired: false, transformFunction: null }, compactLabel: { classPropertyName: "compactLabel", publicName: "p-compact-label", isSignal: true, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "p-help", isSignal: false, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "p-url", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, autoUpload: { classPropertyName: "autoUpload", publicName: "p-auto-upload", isSignal: false, isRequired: false, transformFunction: null }, disabledRemoveFile: { classPropertyName: "disabledRemoveFile", publicName: "p-disabled-remove-file", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, optional: { classPropertyName: "optional", publicName: "p-optional", isSignal: false, isRequired: false, transformFunction: null }, showThumbnail: { classPropertyName: "showThumbnail", publicName: "p-show-thumbnail", isSignal: false, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "p-headers", isSignal: false, isRequired: false, transformFunction: null }, requiredUrl: { classPropertyName: "requiredUrl", publicName: "p-required-url", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, poHelperComponent: { classPropertyName: "poHelperComponent", publicName: "p-helper", isSignal: true, isRequired: false, transformFunction: null }, labelTextWrap: { classPropertyName: "labelTextWrap", publicName: "p-label-text-wrap", isSignal: true, isRequired: false, transformFunction: null }, customAction: { classPropertyName: "customAction", publicName: "p-custom-action", isSignal: false, isRequired: false, transformFunction: null }, customModalActions: { classPropertyName: "customModalActions", publicName: "p-custom-modal-actions", isSignal: false, isRequired: false, transformFunction: null }, directory: { classPropertyName: "directory", publicName: "p-directory", isSignal: false, isRequired: false, transformFunction: null }, dragDrop: { classPropertyName: "dragDrop", publicName: "p-drag-drop", isSignal: false, isRequired: false, transformFunction: null }, hideRestrictionsInfo: { classPropertyName: "hideRestrictionsInfo", publicName: "p-hide-restrictions-info", isSignal: false, isRequired: false, transformFunction: null }, hideSelectButton: { classPropertyName: "hideSelectButton", publicName: "p-hide-select-button", isSignal: false, isRequired: false, transformFunction: null }, hideSendButton: { classPropertyName: "hideSendButton", publicName: "p-hide-send-button", isSignal: false, isRequired: false, transformFunction: null }, literals: { classPropertyName: "literals", publicName: "p-literals", isSignal: false, isRequired: false, transformFunction: null }, fileRestrictions: { classPropertyName: "fileRestrictions", publicName: "p-restrictions", isSignal: false, isRequired: false, transformFunction: null }, formField: { classPropertyName: "formField", publicName: "p-form-field", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "p-disabled", isSignal: false, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "p-loading", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, isMultiple: { classPropertyName: "isMultiple", publicName: "p-multiple", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "p-required", isSignal: false, isRequired: false, transformFunction: null }, showRequired: { classPropertyName: "showRequired", publicName: "p-show-required", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { additionalHelp: "p-additional-help", customActionClick: "p-custom-action-click", keydown: "p-keydown", onUpload: "p-upload", onCancel: "p-cancel", onOpenModalPreview: "p-open-modal-preview", onRemove: "p-remove", onError: "p-error", onSuccess: "p-success", ngModelChange: "ngModelChange" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-required-url": "this.requiredUrl", "attr.p-size": "this.size" } }, ngImport: i0 });
|
|
41962
42306
|
}
|
|
41963
42307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoUploadBaseComponent, decorators: [{
|
|
41964
42308
|
type: Directive
|
|
@@ -42072,6 +42416,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
42072
42416
|
}], disabled: [{
|
|
42073
42417
|
type: Input,
|
|
42074
42418
|
args: ['p-disabled']
|
|
42419
|
+
}], loading: [{
|
|
42420
|
+
type: Input,
|
|
42421
|
+
args: [{ alias: 'p-loading', transform: convertToBoolean }]
|
|
42075
42422
|
}], isMultiple: [{
|
|
42076
42423
|
type: Input,
|
|
42077
42424
|
args: ['p-multiple']
|
|
@@ -42615,6 +42962,13 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
42615
42962
|
this.disabled ||
|
|
42616
42963
|
this.isExceededFileLimit(currentFiles.length));
|
|
42617
42964
|
}
|
|
42965
|
+
get isSelectButtonDisabled() {
|
|
42966
|
+
return this.loading || this.isDisabled;
|
|
42967
|
+
}
|
|
42968
|
+
get isFieldDisabled() {
|
|
42969
|
+
const isSelectButtonVisible = !this.hideSelectButton && !this.displayDragDrop;
|
|
42970
|
+
return (isSelectButtonVisible && this.loading) || this.disabled;
|
|
42971
|
+
}
|
|
42618
42972
|
get maxFiles() {
|
|
42619
42973
|
return this.isMultiple && this.fileRestrictions && this.fileRestrictions.maxFiles;
|
|
42620
42974
|
}
|
|
@@ -42997,7 +43351,7 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
42997
43351
|
useExisting: forwardRef(() => PoUploadComponent),
|
|
42998
43352
|
multi: true
|
|
42999
43353
|
}
|
|
43000
|
-
], viewQueries: [{ propertyName: "inputFile", first: true, predicate: ["inputFile"], descendants: true, read: ElementRef, static: true }, { propertyName: "poUploadDragDropComponent", first: true, predicate: PoUploadDragDropComponent, descendants: true }, { propertyName: "uploadButton", first: true, predicate: ["uploadButton"], descendants: true }, { propertyName: "modalComponent", first: true, predicate: ["modal"], descendants: true }, { propertyName: "helperEl", first: true, predicate: ["helperEl"], descendants: true, read: PoHelperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [id]=\"id\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n @if (displayDragDrop) {\n <po-upload-drag-drop\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n }\n\n @if (fileRestrictions && !hideRestrictionsInfo) {\n <po-upload-file-restrictions\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [class.po-pb-1]=\"!displayDragDrop\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n }\n\n @if (!hideSelectButton && !displayDragDrop) {\n <po-button\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isDisabled\"\n [p-label]=\"selectFileButtonLabel\"\n [p-size]=\"size\"\n (p-click)=\"selectFiles()\"\n (keydown)=\"onKeyDown($event)\"\n >\n </po-button>\n }\n\n @if (currentFiles && currentFiles.length) {\n <div class=\"po-upload-files-content\">\n @for (file of currentFiles; track trackByFn($index, file)) {\n <div\n class=\"po-upload-progress-container\"\n [class.po-upload-container-error]=\"file.status === 2\"\n [class.po-upload-status-uploaded]=\"file.hideDoneContent\"\n >\n <po-container>\n <div\n [ngClass]=\"showThumbnail && file.thumbnailUrl ? 'po-upload-content-thumbnail' : 'po-upload-content'\"\n class=\"po-upload-content\"\n >\n <div class=\"po-upload-file-name\">\n <div class=\"po-upload-file-name-display\">\n @if (showThumbnail && file.thumbnailUrl) {\n <div class=\"po-upload-thumbnail\" (click)=\"openModal(file)\" (keydown)=\"openModal(file, $event)\">\n @if (!file.imageError) {\n <div class=\"po-upload-thumbnail-icon\">\n <po-icon p-icon=\"ICON_PICTURE\"></po-icon>\n </div>\n <img\n class=\"po-upload-thumbnail-img\"\n [src]=\"file.thumbnailUrl\"\n [alt]=\"literals.thumbnail\"\n (error)=\"onImageError(file)\"\n />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n </div>\n }\n <span\n class=\"po-upload-display-name\"\n [class.po-upload-name-interactive]=\"showThumbnail && file.thumbnailUrl\"\n [p-tooltip]=\"tooltipTitle\"\n (keydown)=\"openModal(file, $event)\"\n (click)=\"openModal(file)\"\n (mouseover)=\"showTooltipText($event, file?.displayName)\"\n (focus)=\"showTooltipText($event, file?.displayName)\"\n >{{ file.displayName }}</span\n >\n </div>\n <div class=\"po-upload-buttons-content\">\n @if (isActionVisible(customAction)) {\n <po-button\n class=\"po-upload-custom-action-button\"\n [p-danger]=\"customAction.type === 'danger'\"\n [p-disabled]=\"actionIsDisabled(customAction)\"\n [p-label]=\"customAction.label || ''\"\n [p-icon]=\"customAction.icon\"\n [p-size]=\"size\"\n (p-click)=\"customClick(file)\"\n >\n </po-button>\n }\n @if (file.status !== 0 || onRemove?.observers?.length > 0) {\n <div\n class=\"po-upload-icon-focus\"\n [class.po-upload-cancel-disabled]=\"disabledRemoveFile\"\n [attr.aria-label]=\"literals.close\"\n [tabindex]=\"disabledRemoveFile ? -1 : 0\"\n (keydown)=\"cancel(file, $event)\"\n (click)=\"cancel(file)\"\n >\n <po-icon\n class=\"po-upload-icon-close\"\n [class.po-upload-icon-remove]=\"file.status === 0\"\n [p-icon]=\"file.status === 0 ? 'ICON_DELETE' : 'ICON_CLOSE'\"\n >\n </po-icon>\n </div>\n }\n </div>\n </div>\n @if (!file.hideDoneContent) {\n <div class=\"po-upload-info-bar\" [class.fade-out]=\"file.status === 0\">\n @if (file.status === 0) {\n <span> {{ literals.doneText }} </span>\n } @else if (file.status === 2) {\n <div class=\"po-upload-content-error\">\n <po-icon class=\"po-upload-icon-error\" p-icon=\"ICON_EXCLAMATION\"></po-icon\n ><span class=\"po-upload-content-error-text\">\n {{ file?.errorMessage || literals?.errorOccurred }}\n </span>\n @if (!file.errorMessage) {\n <po-link\n class=\"po-upload-retry-link\"\n [p-label]=\"literals.tryAgain\"\n (p-action)=\"uploadFiles([file])\"\n ></po-link>\n }\n </div>\n } @else if (file.status === 1) {\n <span>{{ literals.uploadingText }}</span>\n } @else if (file.status === 3) {\n <span>{{ literals.startSending }}</span>\n }\n @if (file.status !== 2) {\n <span class=\"po-upload-value-percent\">{{ file.percent || 0 }}%</span>\n }\n </div>\n }\n </div>\n @if (file.status !== 2 && !file.hideDoneContent) {\n <po-progress\n [class.fade-out]=\"file.status === 0\"\n class=\"po-upload-progress\"\n p-size=\"medium\"\n [p-disabled-cancel]=\"disabledRemoveFile\"\n [p-value]=\"file.percent\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-size-actions]=\"size\"\n >\n </po-progress>\n }\n </po-container>\n </div>\n }\n </div>\n }\n\n @if (displaySendButton) {\n <po-button\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n [p-size]=\"size\"\n (p-click)=\"uploadFiles(currentFiles)\"\n ></po-button>\n }\n </div>\n </div>\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<po-modal\n #modal\n [p-components-size]=\"size\"\n [p-primary-action]=\"modalPrimaryAction\"\n [p-secondary-action]=\"modalSecondaryAction\"\n [p-title]=\"literals.preview\"\n [p-click-out]=\"true\"\n (p-close)=\"closeModal.bind(this)\"\n>\n @if (!errorModalImage) {\n <img [src]=\"modalImageUrl\" [alt]=\"literals.thumbnail\" (error)=\"errorModalImage = true\" />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n</po-modal>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PoButtonComponent, selector: "po-button" }, { kind: "component", type: PoContainerComponent, selector: "po-container" }, { kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-size", "p-helper", "p-show-helper"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-helper", "p-show-helper", "p-text-wrap", "p-optional", "p-required", "p-show-required", "p-size", "p-compact-label"] }, { kind: "component", type: PoModalComponent, selector: "po-modal" }, { kind: "component", type: PoProgressComponent, selector: "po-progress" }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "component", type: PoLinkComponent, selector: "po-link" }, { kind: "component", type: PoUploadDragDropComponent, selector: "po-upload-drag-drop", inputs: ["p-directory-compatible", "p-disabled", "p-literals", "p-drag-drop-height"], outputs: ["p-file-change", "p-select-files"] }, { kind: "component", type: PoUploadFileRestrictionsComponent, selector: "po-upload-file-restrictions", inputs: ["p-max-files", "p-allowed-extensions", "p-max-file-size", "p-min-file-size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
43354
|
+
], viewQueries: [{ propertyName: "inputFile", first: true, predicate: ["inputFile"], descendants: true, read: ElementRef, static: true }, { propertyName: "poUploadDragDropComponent", first: true, predicate: PoUploadDragDropComponent, descendants: true }, { propertyName: "uploadButton", first: true, predicate: ["uploadButton"], descendants: true }, { propertyName: "modalComponent", first: true, predicate: ["modal"], descendants: true }, { propertyName: "helperEl", first: true, predicate: ["helperEl"], descendants: true, read: PoHelperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"isDisabled || isFieldDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [id]=\"id\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n @if (displayDragDrop) {\n <po-upload-drag-drop\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n }\n\n @if (fileRestrictions && !hideRestrictionsInfo) {\n <po-upload-file-restrictions\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [class.po-pb-1]=\"!displayDragDrop\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n }\n\n @if (!hideSelectButton && !displayDragDrop) {\n <po-button\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isSelectButtonDisabled\"\n [p-loading]=\"loading\"\n [p-label]=\"selectFileButtonLabel\"\n [p-size]=\"size\"\n (p-click)=\"selectFiles()\"\n (keydown)=\"onKeyDown($event)\"\n >\n </po-button>\n }\n\n @if (currentFiles && currentFiles.length) {\n <div class=\"po-upload-files-content\">\n @for (file of currentFiles; track trackByFn($index, file)) {\n <div\n class=\"po-upload-progress-container\"\n [class.po-upload-container-error]=\"file.status === 2\"\n [class.po-upload-status-uploaded]=\"file.hideDoneContent\"\n >\n <po-container>\n <div\n [ngClass]=\"showThumbnail && file.thumbnailUrl ? 'po-upload-content-thumbnail' : 'po-upload-content'\"\n class=\"po-upload-content\"\n >\n <div class=\"po-upload-file-name\">\n <div class=\"po-upload-file-name-display\">\n @if (showThumbnail && file.thumbnailUrl) {\n <div class=\"po-upload-thumbnail\" (click)=\"openModal(file)\" (keydown)=\"openModal(file, $event)\">\n @if (!file.imageError) {\n <div class=\"po-upload-thumbnail-icon\">\n <po-icon p-icon=\"ICON_PICTURE\"></po-icon>\n </div>\n <img\n class=\"po-upload-thumbnail-img\"\n [src]=\"file.thumbnailUrl\"\n [alt]=\"literals.thumbnail\"\n (error)=\"onImageError(file)\"\n />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n </div>\n }\n <span\n class=\"po-upload-display-name\"\n [class.po-upload-name-interactive]=\"showThumbnail && file.thumbnailUrl\"\n [p-tooltip]=\"tooltipTitle\"\n (keydown)=\"openModal(file, $event)\"\n (click)=\"openModal(file)\"\n (mouseover)=\"showTooltipText($event, file?.displayName)\"\n (focus)=\"showTooltipText($event, file?.displayName)\"\n >{{ file.displayName }}</span\n >\n </div>\n <div class=\"po-upload-buttons-content\">\n @if (isActionVisible(customAction)) {\n <po-button\n class=\"po-upload-custom-action-button\"\n [p-danger]=\"customAction.type === 'danger'\"\n [p-disabled]=\"actionIsDisabled(customAction)\"\n [p-label]=\"customAction.label || ''\"\n [p-icon]=\"customAction.icon\"\n [p-size]=\"size\"\n (p-click)=\"customClick(file)\"\n >\n </po-button>\n }\n @if (file.status !== 0 || onRemove?.observers?.length > 0) {\n <div\n class=\"po-upload-icon-focus\"\n [class.po-upload-cancel-disabled]=\"disabledRemoveFile\"\n [attr.aria-label]=\"literals.close\"\n [tabindex]=\"disabledRemoveFile ? -1 : 0\"\n (keydown)=\"cancel(file, $event)\"\n (click)=\"cancel(file)\"\n >\n <po-icon\n class=\"po-upload-icon-close\"\n [class.po-upload-icon-remove]=\"file.status === 0\"\n [p-icon]=\"file.status === 0 ? 'ICON_DELETE' : 'ICON_CLOSE'\"\n >\n </po-icon>\n </div>\n }\n </div>\n </div>\n @if (!file.hideDoneContent) {\n <div class=\"po-upload-info-bar\" [class.fade-out]=\"file.status === 0\">\n @if (file.status === 0) {\n <span> {{ literals.doneText }} </span>\n } @else if (file.status === 2) {\n <div class=\"po-upload-content-error\">\n <po-icon class=\"po-upload-icon-error\" p-icon=\"ICON_EXCLAMATION\"></po-icon\n ><span class=\"po-upload-content-error-text\">\n {{ file?.errorMessage || literals?.errorOccurred }}\n </span>\n @if (!file.errorMessage) {\n <po-link\n class=\"po-upload-retry-link\"\n [p-label]=\"literals.tryAgain\"\n (p-action)=\"uploadFiles([file])\"\n ></po-link>\n }\n </div>\n } @else if (file.status === 1) {\n <span>{{ literals.uploadingText }}</span>\n } @else if (file.status === 3) {\n <span>{{ literals.startSending }}</span>\n }\n @if (file.status !== 2) {\n <span class=\"po-upload-value-percent\">{{ file.percent || 0 }}%</span>\n }\n </div>\n }\n </div>\n @if (file.status !== 2 && !file.hideDoneContent) {\n <po-progress\n [class.fade-out]=\"file.status === 0\"\n class=\"po-upload-progress\"\n p-size=\"medium\"\n [p-disabled-cancel]=\"disabledRemoveFile\"\n [p-value]=\"file.percent\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-size-actions]=\"size\"\n >\n </po-progress>\n }\n </po-container>\n </div>\n }\n </div>\n }\n\n @if (displaySendButton) {\n <po-button\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n [p-size]=\"size\"\n (p-click)=\"uploadFiles(currentFiles)\"\n ></po-button>\n }\n </div>\n </div>\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"isFieldDisabled\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<po-modal\n #modal\n [p-components-size]=\"size\"\n [p-primary-action]=\"modalPrimaryAction\"\n [p-secondary-action]=\"modalSecondaryAction\"\n [p-title]=\"literals.preview\"\n [p-click-out]=\"true\"\n (p-close)=\"closeModal.bind(this)\"\n>\n @if (!errorModalImage) {\n <img [src]=\"modalImageUrl\" [alt]=\"literals.thumbnail\" (error)=\"errorModalImage = true\" />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n</po-modal>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PoButtonComponent, selector: "po-button" }, { kind: "component", type: PoContainerComponent, selector: "po-container" }, { kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-size", "p-helper", "p-show-helper"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-helper", "p-show-helper", "p-text-wrap", "p-optional", "p-required", "p-show-required", "p-size", "p-compact-label"] }, { kind: "component", type: PoModalComponent, selector: "po-modal" }, { kind: "component", type: PoProgressComponent, selector: "po-progress" }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "component", type: PoLinkComponent, selector: "po-link" }, { kind: "component", type: PoUploadDragDropComponent, selector: "po-upload-drag-drop", inputs: ["p-directory-compatible", "p-disabled", "p-literals", "p-drag-drop-height"], outputs: ["p-file-change", "p-select-files"] }, { kind: "component", type: PoUploadFileRestrictionsComponent, selector: "po-upload-file-restrictions", inputs: ["p-max-files", "p-allowed-extensions", "p-max-file-size", "p-min-file-size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
43001
43355
|
}
|
|
43002
43356
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoUploadComponent, decorators: [{
|
|
43003
43357
|
type: Component,
|
|
@@ -43014,7 +43368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
43014
43368
|
useExisting: forwardRef(() => PoUploadComponent),
|
|
43015
43369
|
multi: true
|
|
43016
43370
|
}
|
|
43017
|
-
], standalone: false, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [id]=\"id\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n @if (displayDragDrop) {\n <po-upload-drag-drop\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n }\n\n @if (fileRestrictions && !hideRestrictionsInfo) {\n <po-upload-file-restrictions\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [class.po-pb-1]=\"!displayDragDrop\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n }\n\n @if (!hideSelectButton && !displayDragDrop) {\n <po-button\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isDisabled\"\n [p-label]=\"selectFileButtonLabel\"\n [p-size]=\"size\"\n (p-click)=\"selectFiles()\"\n (keydown)=\"onKeyDown($event)\"\n >\n </po-button>\n }\n\n @if (currentFiles && currentFiles.length) {\n <div class=\"po-upload-files-content\">\n @for (file of currentFiles; track trackByFn($index, file)) {\n <div\n class=\"po-upload-progress-container\"\n [class.po-upload-container-error]=\"file.status === 2\"\n [class.po-upload-status-uploaded]=\"file.hideDoneContent\"\n >\n <po-container>\n <div\n [ngClass]=\"showThumbnail && file.thumbnailUrl ? 'po-upload-content-thumbnail' : 'po-upload-content'\"\n class=\"po-upload-content\"\n >\n <div class=\"po-upload-file-name\">\n <div class=\"po-upload-file-name-display\">\n @if (showThumbnail && file.thumbnailUrl) {\n <div class=\"po-upload-thumbnail\" (click)=\"openModal(file)\" (keydown)=\"openModal(file, $event)\">\n @if (!file.imageError) {\n <div class=\"po-upload-thumbnail-icon\">\n <po-icon p-icon=\"ICON_PICTURE\"></po-icon>\n </div>\n <img\n class=\"po-upload-thumbnail-img\"\n [src]=\"file.thumbnailUrl\"\n [alt]=\"literals.thumbnail\"\n (error)=\"onImageError(file)\"\n />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n </div>\n }\n <span\n class=\"po-upload-display-name\"\n [class.po-upload-name-interactive]=\"showThumbnail && file.thumbnailUrl\"\n [p-tooltip]=\"tooltipTitle\"\n (keydown)=\"openModal(file, $event)\"\n (click)=\"openModal(file)\"\n (mouseover)=\"showTooltipText($event, file?.displayName)\"\n (focus)=\"showTooltipText($event, file?.displayName)\"\n >{{ file.displayName }}</span\n >\n </div>\n <div class=\"po-upload-buttons-content\">\n @if (isActionVisible(customAction)) {\n <po-button\n class=\"po-upload-custom-action-button\"\n [p-danger]=\"customAction.type === 'danger'\"\n [p-disabled]=\"actionIsDisabled(customAction)\"\n [p-label]=\"customAction.label || ''\"\n [p-icon]=\"customAction.icon\"\n [p-size]=\"size\"\n (p-click)=\"customClick(file)\"\n >\n </po-button>\n }\n @if (file.status !== 0 || onRemove?.observers?.length > 0) {\n <div\n class=\"po-upload-icon-focus\"\n [class.po-upload-cancel-disabled]=\"disabledRemoveFile\"\n [attr.aria-label]=\"literals.close\"\n [tabindex]=\"disabledRemoveFile ? -1 : 0\"\n (keydown)=\"cancel(file, $event)\"\n (click)=\"cancel(file)\"\n >\n <po-icon\n class=\"po-upload-icon-close\"\n [class.po-upload-icon-remove]=\"file.status === 0\"\n [p-icon]=\"file.status === 0 ? 'ICON_DELETE' : 'ICON_CLOSE'\"\n >\n </po-icon>\n </div>\n }\n </div>\n </div>\n @if (!file.hideDoneContent) {\n <div class=\"po-upload-info-bar\" [class.fade-out]=\"file.status === 0\">\n @if (file.status === 0) {\n <span> {{ literals.doneText }} </span>\n } @else if (file.status === 2) {\n <div class=\"po-upload-content-error\">\n <po-icon class=\"po-upload-icon-error\" p-icon=\"ICON_EXCLAMATION\"></po-icon\n ><span class=\"po-upload-content-error-text\">\n {{ file?.errorMessage || literals?.errorOccurred }}\n </span>\n @if (!file.errorMessage) {\n <po-link\n class=\"po-upload-retry-link\"\n [p-label]=\"literals.tryAgain\"\n (p-action)=\"uploadFiles([file])\"\n ></po-link>\n }\n </div>\n } @else if (file.status === 1) {\n <span>{{ literals.uploadingText }}</span>\n } @else if (file.status === 3) {\n <span>{{ literals.startSending }}</span>\n }\n @if (file.status !== 2) {\n <span class=\"po-upload-value-percent\">{{ file.percent || 0 }}%</span>\n }\n </div>\n }\n </div>\n @if (file.status !== 2 && !file.hideDoneContent) {\n <po-progress\n [class.fade-out]=\"file.status === 0\"\n class=\"po-upload-progress\"\n p-size=\"medium\"\n [p-disabled-cancel]=\"disabledRemoveFile\"\n [p-value]=\"file.percent\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-size-actions]=\"size\"\n >\n </po-progress>\n }\n </po-container>\n </div>\n }\n </div>\n }\n\n @if (displaySendButton) {\n <po-button\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n [p-size]=\"size\"\n (p-click)=\"uploadFiles(currentFiles)\"\n ></po-button>\n }\n </div>\n </div>\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<po-modal\n #modal\n [p-components-size]=\"size\"\n [p-primary-action]=\"modalPrimaryAction\"\n [p-secondary-action]=\"modalSecondaryAction\"\n [p-title]=\"literals.preview\"\n [p-click-out]=\"true\"\n (p-close)=\"closeModal.bind(this)\"\n>\n @if (!errorModalImage) {\n <img [src]=\"modalImageUrl\" [alt]=\"literals.thumbnail\" (error)=\"errorModalImage = true\" />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n</po-modal>\n" }]
|
|
43371
|
+
], standalone: false, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"isDisabled || isFieldDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [id]=\"id\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n @if (displayDragDrop) {\n <po-upload-drag-drop\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n }\n\n @if (fileRestrictions && !hideRestrictionsInfo) {\n <po-upload-file-restrictions\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [class.po-pb-1]=\"!displayDragDrop\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n }\n\n @if (!hideSelectButton && !displayDragDrop) {\n <po-button\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isSelectButtonDisabled\"\n [p-loading]=\"loading\"\n [p-label]=\"selectFileButtonLabel\"\n [p-size]=\"size\"\n (p-click)=\"selectFiles()\"\n (keydown)=\"onKeyDown($event)\"\n >\n </po-button>\n }\n\n @if (currentFiles && currentFiles.length) {\n <div class=\"po-upload-files-content\">\n @for (file of currentFiles; track trackByFn($index, file)) {\n <div\n class=\"po-upload-progress-container\"\n [class.po-upload-container-error]=\"file.status === 2\"\n [class.po-upload-status-uploaded]=\"file.hideDoneContent\"\n >\n <po-container>\n <div\n [ngClass]=\"showThumbnail && file.thumbnailUrl ? 'po-upload-content-thumbnail' : 'po-upload-content'\"\n class=\"po-upload-content\"\n >\n <div class=\"po-upload-file-name\">\n <div class=\"po-upload-file-name-display\">\n @if (showThumbnail && file.thumbnailUrl) {\n <div class=\"po-upload-thumbnail\" (click)=\"openModal(file)\" (keydown)=\"openModal(file, $event)\">\n @if (!file.imageError) {\n <div class=\"po-upload-thumbnail-icon\">\n <po-icon p-icon=\"ICON_PICTURE\"></po-icon>\n </div>\n <img\n class=\"po-upload-thumbnail-img\"\n [src]=\"file.thumbnailUrl\"\n [alt]=\"literals.thumbnail\"\n (error)=\"onImageError(file)\"\n />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n </div>\n }\n <span\n class=\"po-upload-display-name\"\n [class.po-upload-name-interactive]=\"showThumbnail && file.thumbnailUrl\"\n [p-tooltip]=\"tooltipTitle\"\n (keydown)=\"openModal(file, $event)\"\n (click)=\"openModal(file)\"\n (mouseover)=\"showTooltipText($event, file?.displayName)\"\n (focus)=\"showTooltipText($event, file?.displayName)\"\n >{{ file.displayName }}</span\n >\n </div>\n <div class=\"po-upload-buttons-content\">\n @if (isActionVisible(customAction)) {\n <po-button\n class=\"po-upload-custom-action-button\"\n [p-danger]=\"customAction.type === 'danger'\"\n [p-disabled]=\"actionIsDisabled(customAction)\"\n [p-label]=\"customAction.label || ''\"\n [p-icon]=\"customAction.icon\"\n [p-size]=\"size\"\n (p-click)=\"customClick(file)\"\n >\n </po-button>\n }\n @if (file.status !== 0 || onRemove?.observers?.length > 0) {\n <div\n class=\"po-upload-icon-focus\"\n [class.po-upload-cancel-disabled]=\"disabledRemoveFile\"\n [attr.aria-label]=\"literals.close\"\n [tabindex]=\"disabledRemoveFile ? -1 : 0\"\n (keydown)=\"cancel(file, $event)\"\n (click)=\"cancel(file)\"\n >\n <po-icon\n class=\"po-upload-icon-close\"\n [class.po-upload-icon-remove]=\"file.status === 0\"\n [p-icon]=\"file.status === 0 ? 'ICON_DELETE' : 'ICON_CLOSE'\"\n >\n </po-icon>\n </div>\n }\n </div>\n </div>\n @if (!file.hideDoneContent) {\n <div class=\"po-upload-info-bar\" [class.fade-out]=\"file.status === 0\">\n @if (file.status === 0) {\n <span> {{ literals.doneText }} </span>\n } @else if (file.status === 2) {\n <div class=\"po-upload-content-error\">\n <po-icon class=\"po-upload-icon-error\" p-icon=\"ICON_EXCLAMATION\"></po-icon\n ><span class=\"po-upload-content-error-text\">\n {{ file?.errorMessage || literals?.errorOccurred }}\n </span>\n @if (!file.errorMessage) {\n <po-link\n class=\"po-upload-retry-link\"\n [p-label]=\"literals.tryAgain\"\n (p-action)=\"uploadFiles([file])\"\n ></po-link>\n }\n </div>\n } @else if (file.status === 1) {\n <span>{{ literals.uploadingText }}</span>\n } @else if (file.status === 3) {\n <span>{{ literals.startSending }}</span>\n }\n @if (file.status !== 2) {\n <span class=\"po-upload-value-percent\">{{ file.percent || 0 }}%</span>\n }\n </div>\n }\n </div>\n @if (file.status !== 2 && !file.hideDoneContent) {\n <po-progress\n [class.fade-out]=\"file.status === 0\"\n class=\"po-upload-progress\"\n p-size=\"medium\"\n [p-disabled-cancel]=\"disabledRemoveFile\"\n [p-value]=\"file.percent\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-size-actions]=\"size\"\n >\n </po-progress>\n }\n </po-container>\n </div>\n }\n </div>\n }\n\n @if (displaySendButton) {\n <po-button\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n [p-size]=\"size\"\n (p-click)=\"uploadFiles(currentFiles)\"\n ></po-button>\n }\n </div>\n </div>\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"isFieldDisabled\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<po-modal\n #modal\n [p-components-size]=\"size\"\n [p-primary-action]=\"modalPrimaryAction\"\n [p-secondary-action]=\"modalSecondaryAction\"\n [p-title]=\"literals.preview\"\n [p-click-out]=\"true\"\n (p-close)=\"closeModal.bind(this)\"\n>\n @if (!errorModalImage) {\n <img [src]=\"modalImageUrl\" [alt]=\"literals.thumbnail\" (error)=\"errorModalImage = true\" />\n } @else {\n <div class=\"po-upload-thumbnail-broken\">\n <po-icon p-icon=\"ICON_PICTURE_BROKEN\"></po-icon>\n </div>\n }\n</po-modal>\n" }]
|
|
43018
43372
|
}], ctorParameters: () => [], propDecorators: { inputFile: [{
|
|
43019
43373
|
type: ViewChild,
|
|
43020
43374
|
args: ['inputFile', { read: ElementRef, static: true }]
|
|
@@ -43465,6 +43819,7 @@ class PoRichTextToolbarComponent {
|
|
|
43465
43819
|
get isInternetExplorer() {
|
|
43466
43820
|
return PoUtils.isIE();
|
|
43467
43821
|
}
|
|
43822
|
+
disabled;
|
|
43468
43823
|
size;
|
|
43469
43824
|
constructor() {
|
|
43470
43825
|
this.literals = {
|
|
@@ -43601,11 +43956,11 @@ class PoRichTextToolbarComponent {
|
|
|
43601
43956
|
this.mediaButtons[0].disabled = state;
|
|
43602
43957
|
}
|
|
43603
43958
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43604
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoRichTextToolbarComponent, isStandalone: false, selector: "po-rich-text-toolbar", inputs: { hideToolbarActions: ["p-hide-toolbar-actions", "hideToolbarActions"], readonly: ["p-readonly", "readonly"], size: ["p-size", "size"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, host: { properties: { "attr.p-size": "this.size" } }, viewQueries: [{ propertyName: "colorPickerInput", first: true, predicate: ["colorPickerInput"], descendants: true, read: ElementRef }, { propertyName: "toolbarElement", first: true, predicate: ["toolbarElement"], descendants: true, static: true }, { propertyName: "richTextImageModal", first: true, predicate: PoRichTextImageModalComponent, descendants: true, static: true }, { propertyName: "richTextLinkModal", first: true, predicate: PoRichTextLinkModalComponent, descendants: true, static: true }], ngImport: i0, template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n @if (!isActionHidden(formatToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (showColor()) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n type=\"button\"\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (input)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n }\n\n @if (!isActionHidden(alignToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(listToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(linkToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(mediaToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n</div>\n\n<po-rich-text-image-modal #richTextImageModal [p-size]=\"size\" (p-command)=\"emitCommand($event)\">\n</po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n [p-size]=\"size\"\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n", dependencies: [{ kind: "component", type: PoButtonGroupComponent, selector: "po-button-group" }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }, { kind: "component", type: PoRichTextImageModalComponent, selector: "po-rich-text-image-modal", inputs: ["p-size"], outputs: ["p-command"] }, { kind: "component", type: PoRichTextLinkModalComponent, selector: "po-rich-text-link-modal", inputs: ["p-size"], outputs: ["p-command", "p-link-editing"] }] });
|
|
43959
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoRichTextToolbarComponent, isStandalone: false, selector: "po-rich-text-toolbar", inputs: { hideToolbarActions: ["p-hide-toolbar-actions", "hideToolbarActions"], readonly: ["p-readonly", "readonly"], disabled: ["p-disabled", "disabled"], size: ["p-size", "size"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, host: { properties: { "attr.p-size": "this.size" } }, viewQueries: [{ propertyName: "colorPickerInput", first: true, predicate: ["colorPickerInput"], descendants: true, read: ElementRef }, { propertyName: "toolbarElement", first: true, predicate: ["toolbarElement"], descendants: true, static: true }, { propertyName: "richTextImageModal", first: true, predicate: PoRichTextImageModalComponent, descendants: true, static: true }, { propertyName: "richTextLinkModal", first: true, predicate: PoRichTextLinkModalComponent, descendants: true, static: true }], ngImport: i0, template: "<div class=\"po-rich-text-toolbar\" #toolbarElement [class.po-rich-text-disabled]=\"disabled\">\n @if (!isActionHidden(formatToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (showColor()) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n type=\"button\"\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (input)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n }\n\n @if (!isActionHidden(alignToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(listToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(linkToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(mediaToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n</div>\n\n<po-rich-text-image-modal #richTextImageModal [p-size]=\"size\" (p-command)=\"emitCommand($event)\">\n</po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n [p-size]=\"size\"\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n", dependencies: [{ kind: "component", type: PoButtonGroupComponent, selector: "po-button-group" }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }, { kind: "component", type: PoRichTextImageModalComponent, selector: "po-rich-text-image-modal", inputs: ["p-size"], outputs: ["p-command"] }, { kind: "component", type: PoRichTextLinkModalComponent, selector: "po-rich-text-link-modal", inputs: ["p-size"], outputs: ["p-command", "p-link-editing"] }] });
|
|
43605
43960
|
}
|
|
43606
43961
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextToolbarComponent, decorators: [{
|
|
43607
43962
|
type: Component,
|
|
43608
|
-
args: [{ selector: 'po-rich-text-toolbar', standalone: false, template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n @if (!isActionHidden(formatToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (showColor()) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n type=\"button\"\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (input)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n }\n\n @if (!isActionHidden(alignToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(listToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(linkToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(mediaToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n</div>\n\n<po-rich-text-image-modal #richTextImageModal [p-size]=\"size\" (p-command)=\"emitCommand($event)\">\n</po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n [p-size]=\"size\"\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n" }]
|
|
43963
|
+
args: [{ selector: 'po-rich-text-toolbar', standalone: false, template: "<div class=\"po-rich-text-toolbar\" #toolbarElement [class.po-rich-text-disabled]=\"disabled\">\n @if (!isActionHidden(formatToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (showColor()) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n type=\"button\"\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (input)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n }\n\n @if (!isActionHidden(alignToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(listToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(linkToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n\n @if (!isActionHidden(mediaToolbarAction)) {\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\" [p-size]=\"size\"> </po-button-group>\n </div>\n }\n</div>\n\n<po-rich-text-image-modal #richTextImageModal [p-size]=\"size\" (p-command)=\"emitCommand($event)\">\n</po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n [p-size]=\"size\"\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n" }]
|
|
43609
43964
|
}], ctorParameters: () => [], propDecorators: { colorPickerInput: [{
|
|
43610
43965
|
type: ViewChild,
|
|
43611
43966
|
args: ['colorPickerInput', { read: ElementRef }]
|
|
@@ -43633,6 +43988,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
43633
43988
|
}], readonly: [{
|
|
43634
43989
|
type: Input,
|
|
43635
43990
|
args: ['p-readonly']
|
|
43991
|
+
}], disabled: [{
|
|
43992
|
+
type: Input,
|
|
43993
|
+
args: ['p-disabled']
|
|
43636
43994
|
}], size: [{
|
|
43637
43995
|
type: HostBinding,
|
|
43638
43996
|
args: ['attr.p-size']
|
|
@@ -43693,7 +44051,8 @@ class PoRichTextComponent extends PoRichTextBaseComponent {
|
|
|
43693
44051
|
}
|
|
43694
44052
|
constructor() {
|
|
43695
44053
|
const richTextService = inject(PoRichTextService);
|
|
43696
|
-
|
|
44054
|
+
const cd = inject(ChangeDetectorRef);
|
|
44055
|
+
super(richTextService, cd);
|
|
43697
44056
|
}
|
|
43698
44057
|
ngOnInit() {
|
|
43699
44058
|
this.toolbarActions = [...this.hideToolbarActions];
|
|
@@ -43846,11 +44205,11 @@ class PoRichTextComponent extends PoRichTextBaseComponent {
|
|
|
43846
44205
|
return setHelperSettings(label, additionalHelpTooltip, this.poHelperComponent(), this.size, this.additionalHelp.observed ? this.additionalHelp : undefined);
|
|
43847
44206
|
}
|
|
43848
44207
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43849
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoRichTextComponent, isStandalone: false, selector: "po-rich-text", providers: providers, viewQueries: [{ propertyName: "bodyElement", first: true, predicate: PoRichTextBodyComponent, descendants: true, static: true }, { propertyName: "richTextToolbar", first: true, predicate: PoRichTextToolbarComponent, descendants: true }, { propertyName: "helperEl", first: true, predicate: ["helperEl"], descendants: true, read: PoHelperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <po-rich-text-body\n #richTextBody\n [p-height]=\"height\"\n [p-label]=\"label\"\n [p-model-value]=\"value\"\n [p-placeholder]=\"placeholder\"\n [p-readonly]=\"readonly\"\n [p-size]=\"size\"\n (p-change)=\"onChangeValue($event)\"\n (p-commands)=\"richTextToolbar?.setButtonsStates($event)\"\n (p-selected-link)=\"richTextToolbar?.selectedLink($event)\"\n (p-shortcut-command)=\"richTextToolbar?.shortcutTrigger()\"\n (p-value)=\"updateValue($event)\"\n (p-blur)=\"onBlur()\"\n (p-keydown)=\"onKeyDown($event)\"\n >\n </po-rich-text-body>\n
|
|
44208
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoRichTextComponent, isStandalone: false, selector: "po-rich-text", providers: providers, viewQueries: [{ propertyName: "bodyElement", first: true, predicate: PoRichTextBodyComponent, descendants: true, static: true }, { propertyName: "richTextToolbar", first: true, predicate: PoRichTextToolbarComponent, descendants: true }, { propertyName: "helperEl", first: true, predicate: ["helperEl"], descendants: true, read: PoHelperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <po-rich-text-body\n #richTextBody\n [p-height]=\"height\"\n [p-label]=\"label\"\n [p-model-value]=\"value\"\n [p-placeholder]=\"placeholder\"\n [p-readonly]=\"readonly\"\n [p-disabled]=\"isDisabled\"\n [p-loading]=\"loading\"\n [p-size]=\"size\"\n (p-change)=\"onChangeValue($event)\"\n (p-commands)=\"richTextToolbar?.setButtonsStates($event)\"\n (p-selected-link)=\"richTextToolbar?.selectedLink($event)\"\n (p-shortcut-command)=\"richTextToolbar?.shortcutTrigger()\"\n (p-value)=\"updateValue($event)\"\n (p-blur)=\"onBlur()\"\n (p-keydown)=\"onKeyDown($event)\"\n >\n </po-rich-text-body>\n @if (!isAllActionsHidden()) {\n <po-rich-text-toolbar\n #richTextToolbar\n [p-readonly]=\"readonly || isDisabled\"\n [p-disabled]=\"isDisabled\"\n [p-hide-toolbar-actions]=\"toolbarActions\"\n [p-size]=\"size\"\n (p-link-editing)=\"richTextBody.linkEditing($event)\"\n (p-command)=\"richTextBody.executeCommand($event)\"\n >\n </po-rich-text-toolbar>\n }\n </div>\n @if (!readonly) {\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"isDisabled\"\n [p-error-limit]=\"errorLimit\"\n [p-error-pattern]=\"errorMsg\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n }\n</po-field-container>\n", dependencies: [{ kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-size", "p-helper", "p-show-helper"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-helper", "p-show-helper", "p-text-wrap", "p-optional", "p-required", "p-show-required", "p-size", "p-compact-label"] }, { kind: "component", type: PoRichTextBodyComponent, selector: "po-rich-text-body", inputs: ["p-height", "p-label", "p-model-value", "p-placeholder", "p-readonly", "p-disabled", "p-loading", "p-size"], outputs: ["p-change", "p-commands", "p-keydown", "p-selected-link", "p-shortcut-command", "p-value", "p-blur"] }, { kind: "component", type: PoRichTextToolbarComponent, selector: "po-rich-text-toolbar", inputs: ["p-hide-toolbar-actions", "p-readonly", "p-disabled", "p-size"], outputs: ["p-command", "p-modal", "p-link-editing"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
43850
44209
|
}
|
|
43851
44210
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoRichTextComponent, decorators: [{
|
|
43852
44211
|
type: Component,
|
|
43853
|
-
args: [{ selector: 'po-rich-text', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers, standalone: false, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <po-rich-text-body\n #richTextBody\n [p-height]=\"height\"\n [p-label]=\"label\"\n [p-model-value]=\"value\"\n [p-placeholder]=\"placeholder\"\n [p-readonly]=\"readonly\"\n [p-size]=\"size\"\n (p-change)=\"onChangeValue($event)\"\n (p-commands)=\"richTextToolbar?.setButtonsStates($event)\"\n (p-selected-link)=\"richTextToolbar?.selectedLink($event)\"\n (p-shortcut-command)=\"richTextToolbar?.shortcutTrigger()\"\n (p-value)=\"updateValue($event)\"\n (p-blur)=\"onBlur()\"\n (p-keydown)=\"onKeyDown($event)\"\n >\n </po-rich-text-body>\n
|
|
44212
|
+
args: [{ selector: 'po-rich-text', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers, standalone: false, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <po-rich-text-body\n #richTextBody\n [p-height]=\"height\"\n [p-label]=\"label\"\n [p-model-value]=\"value\"\n [p-placeholder]=\"placeholder\"\n [p-readonly]=\"readonly\"\n [p-disabled]=\"isDisabled\"\n [p-loading]=\"loading\"\n [p-size]=\"size\"\n (p-change)=\"onChangeValue($event)\"\n (p-commands)=\"richTextToolbar?.setButtonsStates($event)\"\n (p-selected-link)=\"richTextToolbar?.selectedLink($event)\"\n (p-shortcut-command)=\"richTextToolbar?.shortcutTrigger()\"\n (p-value)=\"updateValue($event)\"\n (p-blur)=\"onBlur()\"\n (p-keydown)=\"onKeyDown($event)\"\n >\n </po-rich-text-body>\n @if (!isAllActionsHidden()) {\n <po-rich-text-toolbar\n #richTextToolbar\n [p-readonly]=\"readonly || isDisabled\"\n [p-disabled]=\"isDisabled\"\n [p-hide-toolbar-actions]=\"toolbarActions\"\n [p-size]=\"size\"\n (p-link-editing)=\"richTextBody.linkEditing($event)\"\n (p-command)=\"richTextBody.executeCommand($event)\"\n >\n </po-rich-text-toolbar>\n }\n </div>\n @if (!readonly) {\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"isDisabled\"\n [p-error-limit]=\"errorLimit\"\n [p-error-pattern]=\"errorMsg\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n }\n</po-field-container>\n" }]
|
|
43854
44213
|
}], ctorParameters: () => [], propDecorators: { bodyElement: [{
|
|
43855
44214
|
type: ViewChild,
|
|
43856
44215
|
args: [PoRichTextBodyComponent, { static: true }]
|
|
@@ -44083,8 +44442,6 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
44083
44442
|
*/
|
|
44084
44443
|
readonly = false;
|
|
44085
44444
|
/**
|
|
44086
|
-
* @Input
|
|
44087
|
-
*
|
|
44088
44445
|
* @optional
|
|
44089
44446
|
*
|
|
44090
44447
|
* @description
|
|
@@ -44283,8 +44640,6 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
44283
44640
|
return this._size ?? getDefaultSizeFn(PoFieldSize);
|
|
44284
44641
|
}
|
|
44285
44642
|
/**
|
|
44286
|
-
* @Input
|
|
44287
|
-
*
|
|
44288
44643
|
* @optional
|
|
44289
44644
|
*
|
|
44290
44645
|
* @description
|
|
@@ -44296,8 +44651,6 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
44296
44651
|
*/
|
|
44297
44652
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
44298
44653
|
/**
|
|
44299
|
-
* @Input
|
|
44300
|
-
*
|
|
44301
44654
|
* @optional
|
|
44302
44655
|
*
|
|
44303
44656
|
* @description
|
|
@@ -44682,8 +45035,6 @@ class PoTextareaBaseComponent {
|
|
|
44682
45035
|
*/
|
|
44683
45036
|
autoFocus = false;
|
|
44684
45037
|
/**
|
|
44685
|
-
* @Input
|
|
44686
|
-
*
|
|
44687
45038
|
* @optional
|
|
44688
45039
|
*
|
|
44689
45040
|
* @description
|
|
@@ -44765,8 +45116,6 @@ class PoTextareaBaseComponent {
|
|
|
44765
45116
|
*/
|
|
44766
45117
|
errorLimit = false;
|
|
44767
45118
|
/**
|
|
44768
|
-
* @Input
|
|
44769
|
-
*
|
|
44770
45119
|
* @optional
|
|
44771
45120
|
*
|
|
44772
45121
|
* @description
|
|
@@ -44778,8 +45127,6 @@ class PoTextareaBaseComponent {
|
|
|
44778
45127
|
*/
|
|
44779
45128
|
poHelperComponent = input(undefined, { ...(ngDevMode ? { debugName: "poHelperComponent" } : {}), alias: 'p-helper' });
|
|
44780
45129
|
/**
|
|
44781
|
-
* @Input
|
|
44782
|
-
*
|
|
44783
45130
|
* @optional
|
|
44784
45131
|
*
|
|
44785
45132
|
* @description
|
|
@@ -44845,6 +45192,7 @@ class PoTextareaBaseComponent {
|
|
|
44845
45192
|
keydown = new EventEmitter();
|
|
44846
45193
|
displayAdditionalHelp = false;
|
|
44847
45194
|
_disabled = false;
|
|
45195
|
+
_loading = false;
|
|
44848
45196
|
_maxlength;
|
|
44849
45197
|
_minlength;
|
|
44850
45198
|
_placeholder = '';
|
|
@@ -44881,6 +45229,24 @@ class PoTextareaBaseComponent {
|
|
|
44881
45229
|
get disabled() {
|
|
44882
45230
|
return this._disabled;
|
|
44883
45231
|
}
|
|
45232
|
+
/**
|
|
45233
|
+
* @optional
|
|
45234
|
+
*
|
|
45235
|
+
* @description
|
|
45236
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
45237
|
+
*
|
|
45238
|
+
* @default `false`
|
|
45239
|
+
*/
|
|
45240
|
+
set loading(value) {
|
|
45241
|
+
this._loading = value;
|
|
45242
|
+
this.cd?.markForCheck();
|
|
45243
|
+
}
|
|
45244
|
+
get loading() {
|
|
45245
|
+
return this._loading;
|
|
45246
|
+
}
|
|
45247
|
+
get isDisabled() {
|
|
45248
|
+
return this.disabled || this.loading;
|
|
45249
|
+
}
|
|
44884
45250
|
/**
|
|
44885
45251
|
* @optional
|
|
44886
45252
|
*
|
|
@@ -44989,7 +45355,9 @@ class PoTextareaBaseComponent {
|
|
|
44989
45355
|
}
|
|
44990
45356
|
onThemeChange() {
|
|
44991
45357
|
this.applySizeBasedOnA11y();
|
|
45358
|
+
this.onAfterThemeChange();
|
|
44992
45359
|
}
|
|
45360
|
+
onAfterThemeChange() { }
|
|
44993
45361
|
callOnChange(value) {
|
|
44994
45362
|
// Quando o input não possui um formulário, então esta função não é registrada
|
|
44995
45363
|
if (this.onChangePropagate) {
|
|
@@ -45051,6 +45419,10 @@ class PoTextareaBaseComponent {
|
|
|
45051
45419
|
this.writeValueModel(value);
|
|
45052
45420
|
this.cd.markForCheck();
|
|
45053
45421
|
}
|
|
45422
|
+
//Transforma o tamanho do input para o tamanho do ícone de loading correspondente
|
|
45423
|
+
mapSizeToIcon(size) {
|
|
45424
|
+
return mapInputSizeToLoadingIcon(size);
|
|
45425
|
+
}
|
|
45054
45426
|
validateModel() {
|
|
45055
45427
|
if (this.validatorChange) {
|
|
45056
45428
|
this.validatorChange();
|
|
@@ -45061,7 +45433,7 @@ class PoTextareaBaseComponent {
|
|
|
45061
45433
|
this._size = size;
|
|
45062
45434
|
}
|
|
45063
45435
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTextareaBaseComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
45064
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoTextareaBaseComponent, isStandalone: true, inputs: { additionalHelpEventTrigger: { classPropertyName: "additionalHelpEventTrigger", publicName: "additionalHelpEventTrigger", isSignal: false, isRequired: false, transformFunction: null }, additionalHelpTooltip: { classPropertyName: "additionalHelpTooltip", publicName: "p-additional-help-tooltip", isSignal: false, isRequired: false, transformFunction: null }, appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, autoFocus: { classPropertyName: "autoFocus", publicName: "p-auto-focus", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, compactLabel: { classPropertyName: "compactLabel", publicName: "p-compact-label", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "p-label", isSignal: false, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "p-help", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "p-optional", isSignal: false, isRequired: false, transformFunction: null }, fieldErrorMessage: { classPropertyName: "fieldErrorMessage", publicName: "p-field-error-message", isSignal: false, isRequired: false, transformFunction: null }, errorLimit: { classPropertyName: "errorLimit", publicName: "p-error-limit", isSignal: false, isRequired: false, transformFunction: null }, poHelperComponent: { classPropertyName: "poHelperComponent", publicName: "p-helper", isSignal: true, isRequired: false, transformFunction: null }, labelTextWrap: { classPropertyName: "labelTextWrap", publicName: "p-label-text-wrap", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "p-placeholder", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "p-disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "p-readonly", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "p-required", isSignal: false, isRequired: false, transformFunction: null }, showRequired: { classPropertyName: "showRequired", publicName: "p-show-required", isSignal: false, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "p-minlength", isSignal: false, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "p-maxlength", isSignal: false, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "p-rows", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { additionalHelp: "p-additional-help", blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model", keydown: "p-keydown" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-size": "this.size" } }, ngImport: i0 });
|
|
45436
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoTextareaBaseComponent, isStandalone: true, inputs: { additionalHelpEventTrigger: { classPropertyName: "additionalHelpEventTrigger", publicName: "additionalHelpEventTrigger", isSignal: false, isRequired: false, transformFunction: null }, additionalHelpTooltip: { classPropertyName: "additionalHelpTooltip", publicName: "p-additional-help-tooltip", isSignal: false, isRequired: false, transformFunction: null }, appendBox: { classPropertyName: "appendBox", publicName: "p-append-in-body", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, autoFocus: { classPropertyName: "autoFocus", publicName: "p-auto-focus", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, compactLabel: { classPropertyName: "compactLabel", publicName: "p-compact-label", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "p-label", isSignal: false, isRequired: false, transformFunction: null }, help: { classPropertyName: "help", publicName: "p-help", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "p-optional", isSignal: false, isRequired: false, transformFunction: null }, fieldErrorMessage: { classPropertyName: "fieldErrorMessage", publicName: "p-field-error-message", isSignal: false, isRequired: false, transformFunction: null }, errorLimit: { classPropertyName: "errorLimit", publicName: "p-error-limit", isSignal: false, isRequired: false, transformFunction: null }, poHelperComponent: { classPropertyName: "poHelperComponent", publicName: "p-helper", isSignal: true, isRequired: false, transformFunction: null }, labelTextWrap: { classPropertyName: "labelTextWrap", publicName: "p-label-text-wrap", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "p-placeholder", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "p-disabled", isSignal: false, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "p-loading", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, readonly: { classPropertyName: "readonly", publicName: "p-readonly", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "p-required", isSignal: false, isRequired: false, transformFunction: null }, showRequired: { classPropertyName: "showRequired", publicName: "p-show-required", isSignal: false, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "p-minlength", isSignal: false, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "p-maxlength", isSignal: false, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "p-rows", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { additionalHelp: "p-additional-help", blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model", keydown: "p-keydown" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-size": "this.size" } }, ngImport: i0 });
|
|
45065
45437
|
}
|
|
45066
45438
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTextareaBaseComponent, decorators: [{
|
|
45067
45439
|
type: Directive
|
|
@@ -45118,6 +45490,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
45118
45490
|
}], disabled: [{
|
|
45119
45491
|
type: Input,
|
|
45120
45492
|
args: ['p-disabled']
|
|
45493
|
+
}], loading: [{
|
|
45494
|
+
type: Input,
|
|
45495
|
+
args: [{ alias: 'p-loading', transform: convertToBoolean }]
|
|
45121
45496
|
}], readonly: [{
|
|
45122
45497
|
type: Input,
|
|
45123
45498
|
args: ['p-readonly']
|
|
@@ -45180,6 +45555,9 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
45180
45555
|
id = `po-textarea[${uuid()}]`;
|
|
45181
45556
|
valueBeforeChange;
|
|
45182
45557
|
fireChange = false;
|
|
45558
|
+
hasScroll = false;
|
|
45559
|
+
hasValue = false;
|
|
45560
|
+
resizeObserver;
|
|
45183
45561
|
constructor() {
|
|
45184
45562
|
const cd = inject(ChangeDetectorRef);
|
|
45185
45563
|
super(cd);
|
|
@@ -45215,11 +45593,43 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
45215
45593
|
if (this.autoFocus) {
|
|
45216
45594
|
this.focus();
|
|
45217
45595
|
}
|
|
45596
|
+
this.initResizeObserver();
|
|
45597
|
+
window.addEventListener('resize', this.onWindowResize);
|
|
45598
|
+
}
|
|
45599
|
+
onAfterThemeChange() {
|
|
45600
|
+
requestAnimationFrame(() => {
|
|
45601
|
+
this.calculateTextareaHeight();
|
|
45602
|
+
this.checkScrollState();
|
|
45603
|
+
});
|
|
45218
45604
|
}
|
|
45219
45605
|
ngOnChanges(changes) {
|
|
45220
45606
|
if (changes.label) {
|
|
45221
45607
|
this.displayAdditionalHelp = false;
|
|
45222
45608
|
}
|
|
45609
|
+
if (changes.loading) {
|
|
45610
|
+
if (changes.loading.isFirstChange() && this.loading) {
|
|
45611
|
+
requestAnimationFrame(() => {
|
|
45612
|
+
this.calculateTextareaHeight();
|
|
45613
|
+
this.checkScrollState();
|
|
45614
|
+
});
|
|
45615
|
+
}
|
|
45616
|
+
else {
|
|
45617
|
+
this.calculateTextareaHeight();
|
|
45618
|
+
requestAnimationFrame(() => {
|
|
45619
|
+
this.checkScrollState();
|
|
45620
|
+
});
|
|
45621
|
+
}
|
|
45622
|
+
}
|
|
45623
|
+
if (!changes.loading && this.loading && (changes.rows || changes.size)) {
|
|
45624
|
+
requestAnimationFrame(() => {
|
|
45625
|
+
this.calculateTextareaHeight();
|
|
45626
|
+
this.checkScrollState();
|
|
45627
|
+
});
|
|
45628
|
+
}
|
|
45629
|
+
}
|
|
45630
|
+
ngOnDestroy() {
|
|
45631
|
+
this.resizeObserver?.disconnect();
|
|
45632
|
+
window.removeEventListener('resize', this.onWindowResize);
|
|
45223
45633
|
}
|
|
45224
45634
|
getAdditionalHelpTooltip() {
|
|
45225
45635
|
return this.isAdditionalHelpEventTriggered() ? null : this.additionalHelpTooltip;
|
|
@@ -45242,6 +45652,8 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
45242
45652
|
else {
|
|
45243
45653
|
this.inputEl.nativeElement.value = value;
|
|
45244
45654
|
}
|
|
45655
|
+
this.hasValue = !!value;
|
|
45656
|
+
this.checkScrollState();
|
|
45245
45657
|
}
|
|
45246
45658
|
// Emite evento quando o model é atualizado, inclusive a primeira vez
|
|
45247
45659
|
if (value) {
|
|
@@ -45255,6 +45667,8 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
45255
45667
|
const value = this.validMaxLength(this.maxlength, event.target.value);
|
|
45256
45668
|
this.callOnChange(value);
|
|
45257
45669
|
this.inputEl.nativeElement.value = value;
|
|
45670
|
+
this.hasValue = !!value;
|
|
45671
|
+
this.checkScrollState();
|
|
45258
45672
|
}
|
|
45259
45673
|
eventOnFocus() {
|
|
45260
45674
|
// Atualiza valor da variável que será usada para verificar se o campo teve alteração
|
|
@@ -45333,6 +45747,49 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
45333
45747
|
setHelper(label, additionalHelpTooltip) {
|
|
45334
45748
|
return setHelperSettings(label, additionalHelpTooltip, this.poHelperComponent(), this.size, this.isAdditionalHelpEventTriggered() ? this.additionalHelp : undefined);
|
|
45335
45749
|
}
|
|
45750
|
+
onWindowResize = () => {
|
|
45751
|
+
this.checkScrollState();
|
|
45752
|
+
if (this.loading) {
|
|
45753
|
+
this.calculateTextareaHeight();
|
|
45754
|
+
}
|
|
45755
|
+
};
|
|
45756
|
+
checkScrollState() {
|
|
45757
|
+
const el = this.inputEl?.nativeElement;
|
|
45758
|
+
if (!el)
|
|
45759
|
+
return;
|
|
45760
|
+
this.hasScroll = el.scrollHeight > el.clientHeight;
|
|
45761
|
+
this.cd.markForCheck();
|
|
45762
|
+
}
|
|
45763
|
+
calculateTextareaHeight() {
|
|
45764
|
+
const textarea = this.inputEl?.nativeElement;
|
|
45765
|
+
if (!textarea)
|
|
45766
|
+
return;
|
|
45767
|
+
if (this.loading) {
|
|
45768
|
+
textarea.style.height = '';
|
|
45769
|
+
const style = getComputedStyle(textarea);
|
|
45770
|
+
const lineHeight = Number.parseFloat(style.lineHeight);
|
|
45771
|
+
const paddingTop = Number.parseFloat(style.paddingTop);
|
|
45772
|
+
const paddingBottom = Number.parseFloat(style.paddingBottom);
|
|
45773
|
+
const borderTop = Number.parseFloat(style.borderTopWidth);
|
|
45774
|
+
const borderBottom = Number.parseFloat(style.borderBottomWidth);
|
|
45775
|
+
const calculatedHeight = this.rows * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom;
|
|
45776
|
+
textarea.style.height = `${calculatedHeight}px`;
|
|
45777
|
+
}
|
|
45778
|
+
else {
|
|
45779
|
+
textarea.style.height = '';
|
|
45780
|
+
}
|
|
45781
|
+
}
|
|
45782
|
+
initResizeObserver() {
|
|
45783
|
+
const el = this.inputEl?.nativeElement;
|
|
45784
|
+
if (!el || typeof ResizeObserver === 'undefined')
|
|
45785
|
+
return;
|
|
45786
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
45787
|
+
requestAnimationFrame(() => {
|
|
45788
|
+
this.checkScrollState();
|
|
45789
|
+
});
|
|
45790
|
+
});
|
|
45791
|
+
this.resizeObserver.observe(el);
|
|
45792
|
+
}
|
|
45336
45793
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45337
45794
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoTextareaComponent, isStandalone: false, selector: "po-textarea", providers: [
|
|
45338
45795
|
{
|
|
@@ -45345,7 +45802,7 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
45345
45802
|
useExisting: forwardRef(() => PoTextareaComponent),
|
|
45346
45803
|
multi: true
|
|
45347
45804
|
}
|
|
45348
|
-
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inp"], descendants: true, read: ElementRef, static: true }, { propertyName: "helperEl", first: true, predicate: ["helperEl"], descendants: true, read: PoHelperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"
|
|
45805
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inp"], descendants: true, read: ElementRef, static: true }, { propertyName: "helperEl", first: true, predicate: ["helperEl"], descendants: true, read: PoHelperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n\n<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-field-container-textarea-body\">\n <textarea\n #inp\n class=\"po-textarea\"\n [class.has-scroll]=\"hasScroll\"\n [class.has-value]=\"hasValue\"\n [class.has-loading]=\"loading\"\n (blur)=\"eventOnBlur()\"\n (focus)=\"eventOnFocus()\"\n (input)=\"eventOnInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n [attr.name]=\"name\"\n [disabled]=\"isDisabled\"\n [id]=\"id\"\n [placeholder]=\"isDisabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [rows]=\"rows\"\n ></textarea>\n @if (loading) {\n <div class=\"po-field-icon-container-right po-textarea-loading-container\">\n <po-loading-icon [p-size]=\"mapSizeToIcon(size)\"></po-loading-icon>\n </div>\n }\n </div>\n </div>\n @if (!readonly) {\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"isDisabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n }\n</po-field-container>\n", dependencies: [{ kind: "component", type: PoFieldContainerBottomComponent, selector: "po-field-container-bottom", inputs: ["p-append-in-body", "p-disabled", "p-error-pattern", "p-error-limit", "p-help", "p-size", "p-helper", "p-show-helper"] }, { kind: "component", type: PoFieldContainerComponent, selector: "po-field-container", inputs: ["p-disabled", "p-id", "p-label", "p-help", "p-helper", "p-show-helper", "p-text-wrap", "p-optional", "p-required", "p-show-required", "p-size", "p-compact-label"] }, { kind: "component", type: PoLoadingIconComponent, selector: "po-loading-icon", inputs: ["p-neutral-color", "p-size", "p-in-overlay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45349
45806
|
}
|
|
45350
45807
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTextareaComponent, decorators: [{
|
|
45351
45808
|
type: Component,
|
|
@@ -45360,7 +45817,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
45360
45817
|
useExisting: forwardRef(() => PoTextareaComponent),
|
|
45361
45818
|
multi: true
|
|
45362
45819
|
}
|
|
45363
|
-
], standalone: false, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n<po-field-container\n [p-disabled]=\"
|
|
45820
|
+
], standalone: false, template: "@let poHelper = setHelper(label, additionalHelpTooltip);\n\n<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n [p-helper]=\"label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"label ? displayAdditionalHelp : undefined\"\n [p-size]=\"size\"\n [p-text-wrap]=\"labelTextWrap()\"\n [p-compact-label]=\"compactLabel()\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-field-container-textarea-body\">\n <textarea\n #inp\n class=\"po-textarea\"\n [class.has-scroll]=\"hasScroll\"\n [class.has-value]=\"hasValue\"\n [class.has-loading]=\"loading\"\n (blur)=\"eventOnBlur()\"\n (focus)=\"eventOnFocus()\"\n (input)=\"eventOnInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n [attr.name]=\"name\"\n [disabled]=\"isDisabled\"\n [id]=\"id\"\n [placeholder]=\"isDisabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [rows]=\"rows\"\n ></textarea>\n @if (loading) {\n <div class=\"po-field-icon-container-right po-textarea-loading-container\">\n <po-loading-icon [p-size]=\"mapSizeToIcon(size)\"></po-loading-icon>\n </div>\n }\n </div>\n </div>\n @if (!readonly) {\n <po-field-container-bottom\n [p-append-in-body]=\"appendBox\"\n [p-help]=\"help\"\n [p-disabled]=\"isDisabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-size]=\"size\"\n [p-helper]=\"!label ? poHelper.helperSettings : undefined\"\n [p-show-helper]=\"!label ? displayAdditionalHelp : undefined\"\n ></po-field-container-bottom>\n }\n</po-field-container>\n" }]
|
|
45364
45821
|
}], ctorParameters: () => [], propDecorators: { inputEl: [{
|
|
45365
45822
|
type: ViewChild,
|
|
45366
45823
|
args: ['inp', { read: ElementRef, static: true }]
|
|
@@ -50627,6 +51084,18 @@ class PoMenuBaseComponent {
|
|
|
50627
51084
|
* @default `false`
|
|
50628
51085
|
*/
|
|
50629
51086
|
automaticToggle = false;
|
|
51087
|
+
/**
|
|
51088
|
+
* @optional
|
|
51089
|
+
*
|
|
51090
|
+
* @description
|
|
51091
|
+
*
|
|
51092
|
+
* Evento emitido toda vez que o estado do menu muda, enviando `true` quando expandido e `false` quando colapsado.
|
|
51093
|
+
*
|
|
51094
|
+
* ```html
|
|
51095
|
+
* <po-menu (p-toggle)="onMenuToggle($event)"></po-menu>
|
|
51096
|
+
* ```
|
|
51097
|
+
*/
|
|
51098
|
+
toggleChange = output({ alias: 'p-toggle' });
|
|
50630
51099
|
/**
|
|
50631
51100
|
* @optional
|
|
50632
51101
|
*
|
|
@@ -50965,14 +51434,14 @@ class PoMenuBaseComponent {
|
|
|
50965
51434
|
this._componentsSize = size;
|
|
50966
51435
|
}
|
|
50967
51436
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoMenuBaseComponent, deps: [{ token: PoMenuGlobalService }, { token: PoMenuService }, { token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50968
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.9", type: PoMenuBaseComponent, isStandalone: true, inputs: { automaticToggle: ["p-automatic-toggle", "automaticToggle", convertToBoolean], collapsed: ["p-collapsed", "collapsed"], componentsSize: ["p-components-size", "componentsSize"], menus: ["p-menus", "menus"], filter: ["p-filter", "filter"], searchTreeItems: ["p-search-tree-items", "searchTreeItems"], service: ["p-service", "service"], params: ["p-params", "params"], logo: ["p-logo", "logo"], menuid: ["p-menu-id", "menuid"], logoAlt: ["p-logo-alt", "logoAlt"], shortLogo: ["p-short-logo", "shortLogo"], onlyMenuItem: ["p-only-menu-item", "onlyMenuItem"], logoLink: ["p-logo-link", "logoLink"] }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-components-size": "this.componentsSize" } }, ngImport: i0 });
|
|
51437
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.9", type: PoMenuBaseComponent, isStandalone: true, inputs: { automaticToggle: ["p-automatic-toggle", "automaticToggle", convertToBoolean], collapsed: ["p-collapsed", "collapsed"], componentsSize: ["p-components-size", "componentsSize"], menus: ["p-menus", "menus"], filter: ["p-filter", "filter"], searchTreeItems: ["p-search-tree-items", "searchTreeItems"], service: ["p-service", "service"], params: ["p-params", "params"], logo: ["p-logo", "logo"], menuid: ["p-menu-id", "menuid"], logoAlt: ["p-logo-alt", "logoAlt"], shortLogo: ["p-short-logo", "shortLogo"], onlyMenuItem: ["p-only-menu-item", "onlyMenuItem"], logoLink: ["p-logo-link", "logoLink"] }, outputs: { toggleChange: "p-toggle" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-components-size": "this.componentsSize" } }, ngImport: i0 });
|
|
50969
51438
|
}
|
|
50970
51439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoMenuBaseComponent, decorators: [{
|
|
50971
51440
|
type: Directive
|
|
50972
51441
|
}], ctorParameters: () => [{ type: PoMenuGlobalService }, { type: PoMenuService }, { type: PoLanguageService }], propDecorators: { automaticToggle: [{
|
|
50973
51442
|
type: Input,
|
|
50974
51443
|
args: [{ alias: 'p-automatic-toggle', transform: convertToBoolean }]
|
|
50975
|
-
}], collapsed: [{
|
|
51444
|
+
}], toggleChange: [{ type: i0.Output, args: ["p-toggle"] }], collapsed: [{
|
|
50976
51445
|
type: Input,
|
|
50977
51446
|
args: ['p-collapsed']
|
|
50978
51447
|
}], componentsSize: [{
|
|
@@ -51263,13 +51732,13 @@ class PoMenuComponent extends PoMenuBaseComponent {
|
|
|
51263
51732
|
}
|
|
51264
51733
|
onMouseEnter() {
|
|
51265
51734
|
if (this.collapsed && this.automaticToggle) {
|
|
51266
|
-
this.
|
|
51735
|
+
this.setCollapsed(false);
|
|
51267
51736
|
this.allowCollapseHover = true;
|
|
51268
51737
|
}
|
|
51269
51738
|
}
|
|
51270
51739
|
onMouseLeave() {
|
|
51271
51740
|
if (!this.collapsed && this.allowCollapseHover && this.automaticToggle) {
|
|
51272
|
-
this.
|
|
51741
|
+
this.setCollapsed(true);
|
|
51273
51742
|
}
|
|
51274
51743
|
}
|
|
51275
51744
|
checkingRouterChildrenFragments() {
|
|
@@ -51478,7 +51947,7 @@ class PoMenuComponent extends PoMenuBaseComponent {
|
|
|
51478
51947
|
this.groupedMenuItem['isOpened'] = !this.collapsed && this.allowCollapseMenu;
|
|
51479
51948
|
}
|
|
51480
51949
|
toggleMenuCollapse(collapsed = false) {
|
|
51481
|
-
this.collapsed
|
|
51950
|
+
this.setCollapsed(collapsed);
|
|
51482
51951
|
if (this.groupedMenuItem && this.activeMenuItem) {
|
|
51483
51952
|
this.groupedMenuItem =
|
|
51484
51953
|
this.getActiveMenuParent(this.menus, this.activeMenuItem, this.groupedMenuItem) || this.groupedMenuItem;
|
|
@@ -51514,6 +51983,10 @@ class PoMenuComponent extends PoMenuBaseComponent {
|
|
|
51514
51983
|
this.menuPrevious = this.stringify(this.menus);
|
|
51515
51984
|
this.validateMenus(this.menus);
|
|
51516
51985
|
}
|
|
51986
|
+
setCollapsed(value) {
|
|
51987
|
+
this.collapsed = value;
|
|
51988
|
+
this.toggleChange.emit(!value);
|
|
51989
|
+
}
|
|
51517
51990
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51518
51991
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoMenuComponent, isStandalone: false, selector: "po-menu", providers: [PoMenuItemsService, PoMenuService], queries: [{ propertyName: "menuHeaderTemplate", first: true, predicate: PoMenuHeaderTemplateDirective, descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (onlyMenuItem) {\n <ng-container *ngTemplateOutlet=\"menuItemsTemplate; context: { showFilter: true, showTemplate: true }\"></ng-container>\n} @else {\n @if (mobileOpened) {\n <div class=\"po-menu-overlay\" (click)=\"toggleMenuMobile()\"></div>\n }\n <div>\n <div class=\"po-menu-mobile po-clickable\" (click)=\"toggleMenuMobile()\">\n <po-icon p-icon=\"ICON_MENU\"></po-icon>\n </div>\n <div class=\"po-menu\" [attr.aria-expanded]=\"!collapsed\" [ngClass]=\"{ 'po-menu-animation': mobileOpened }\">\n <div class=\"po-menu-container\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\n <div class=\"po-menu-header\">\n @if (logo || (shortLogo && enableCollapse)) {\n <div class=\"po-menu-header-container-logo\">\n <po-logo\n [p-class]=\"enableCollapse ? 'po-menu-short-logo' : 'po-menu-logo'\"\n [p-logo]=\"enableCollapse ? shortLogo || logo : logo\"\n [p-logo-alt]=\"logoAlt\"\n [p-link]=\"logoLink\"\n ></po-logo>\n </div>\n }\n @if (!enableCollapse && menuHeaderTemplate) {\n <div class=\"po-menu-header-template\">\n <ng-container *ngTemplateOutlet=\"menuCustomTemplate\"></ng-container>\n </div>\n }\n @if (filter) {\n <ng-container *ngTemplateOutlet=\"menuFilterTemplate\"></ng-container>\n }\n </div>\n <div class=\"po-menu-body\">\n <div class=\"po-menu-outer\">\n <div class=\"po-menu-inner\">\n <nav class=\"po-menu-nav\">\n <ng-container\n *ngTemplateOutlet=\"menuItemsTemplate; context: { showFilter: false, showTemplate: false }\"\n ></ng-container>\n </nav>\n </div>\n </div>\n </div>\n </div>\n @if (hasFooter) {\n <div class=\"po-menu-footer\">\n <button\n class=\"po-menu-collapse-button-icon\"\n type=\"button\"\n [attr.aria-label]=\"enableCollapseButton ? literals.close : literals.open\"\n (click)=\"toggle()\"\n >\n @if (enableCollapseButton) {\n <span aria-hidden=\"true\">{{ literals.close }}</span>\n }\n <po-icon [p-icon]=\"enableCollapse ? 'ICON_MENU_OPEN' : 'ICON_MENU_CLOSE'\"></po-icon>\n </button>\n </div>\n }\n </div>\n </div>\n}\n\n<ng-template #menuCustomTemplate>\n <ng-container *ngTemplateOutlet=\"menuHeaderTemplate.templateRef\"></ng-container>\n</ng-template>\n\n<ng-template #menuFilterTemplate>\n <po-menu-filter\n [p-enable-collapse]=\"enableCollapse\"\n [p-loading]=\"filterLoading\"\n [p-components-size]=\"componentsSize\"\n (p-filter)=\"debounceFilter($event)\"\n ></po-menu-filter>\n</ng-template>\n\n<ng-template #menuItemsTemplate let-showFilter=\"showFilter\" let-showTemplate=\"showTemplate\">\n @if (menuHeaderTemplate && showTemplate) {\n <ng-container *ngTemplateOutlet=\"menuCustomTemplate\"></ng-container>\n }\n\n @if (filter && showFilter) {\n <ng-container *ngTemplateOutlet=\"menuFilterTemplate\"></ng-container>\n }\n\n <ul class=\"po-menu-list\" role=\"menu\">\n @if (noData) {\n <li class=\"po-menu-list-item\" role=\"presentation\">\n <po-menu-item\n p-icon=\"ICON_INFO\"\n p-type=\"noData\"\n [p-level]=\"1\"\n [p-label]=\"literals.itemNotFound\"\n [p-short-label]=\"literals.itemNotFound\"\n ></po-menu-item>\n </li>\n }\n @for (menu of filteredItems; track menu; let menuIndex = $index) {\n <li\n class=\"po-menu-list-item\"\n role=\"presentation\"\n [attr.aria-level]=\"menu.level\"\n [class.po-menu-item-first]=\"menuIndex === 0\"\n >\n <po-menu-item\n [p-action]=\"menu.action\"\n [p-badge-alert]=\"menu.badgeAlert\"\n [p-badge-color]=\"menu.badge?.color\"\n [p-badge-value]=\"menu.badge?.value\"\n [p-collapsed-menu]=\"enableCollapse\"\n [p-icon]=\"allowIcons ? menu.icon : null\"\n [p-id]=\"menu.id\"\n [p-label]=\"menu.label\"\n [p-level]=\"menu.level\"\n [p-link]=\"menu.link\"\n [p-short-label]=\"menu.shortLabel\"\n [p-sub-items]=\"menu.subItems\"\n [p-type]=\"menu.type\"\n ></po-menu-item>\n </li>\n }\n </ul>\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: "component", type: PoLogoComponent, selector: "po-logo", inputs: ["p-class", "p-link", "p-logo", "p-logo-alt"] }, { kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "component", type: PoMenuFilterComponent, selector: "po-menu-filter", inputs: ["p-components-size", "p-loading", "p-enable-collapse"], outputs: ["p-filter"] }, { kind: "component", type: PoMenuItemComponent, selector: "po-menu-item", inputs: ["p-action", "p-badge-alert", "p-badge-color", "p-collapsed-menu", "p-icon", "p-id", "p-is-opened", "p-label", "p-level", "p-link", "p-short-label", "p-type", "p-badge-value", "p-is-selected", "p-is-sub-item", "p-sub-items"] }] });
|
|
51519
51992
|
}
|
|
@@ -53957,9 +54430,6 @@ var PoSkeletonVariant;
|
|
|
53957
54430
|
*/
|
|
53958
54431
|
class PoSkeletonBaseComponent {
|
|
53959
54432
|
/**
|
|
53960
|
-
*
|
|
53961
|
-
* @Input
|
|
53962
|
-
*
|
|
53963
54433
|
* @optional
|
|
53964
54434
|
*
|
|
53965
54435
|
* @description
|
|
@@ -53976,9 +54446,6 @@ class PoSkeletonBaseComponent {
|
|
|
53976
54446
|
*/
|
|
53977
54447
|
variant = input(PoSkeletonVariant.text, { ...(ngDevMode ? { debugName: "variant" } : {}), alias: 'p-variant' });
|
|
53978
54448
|
/**
|
|
53979
|
-
*
|
|
53980
|
-
* @Input
|
|
53981
|
-
*
|
|
53982
54449
|
* @optional
|
|
53983
54450
|
*
|
|
53984
54451
|
* @description
|
|
@@ -53994,9 +54461,6 @@ class PoSkeletonBaseComponent {
|
|
|
53994
54461
|
*/
|
|
53995
54462
|
type = input(PoSkeletonType.normal, { ...(ngDevMode ? { debugName: "type" } : {}), alias: 'p-type' });
|
|
53996
54463
|
/**
|
|
53997
|
-
*
|
|
53998
|
-
* @Input
|
|
53999
|
-
*
|
|
54000
54464
|
* @optional
|
|
54001
54465
|
*
|
|
54002
54466
|
* @description
|
|
@@ -54012,9 +54476,6 @@ class PoSkeletonBaseComponent {
|
|
|
54012
54476
|
*/
|
|
54013
54477
|
animation = input(PoSkeletonAnimation.shimmer, { ...(ngDevMode ? { debugName: "animation" } : {}), alias: 'p-animation' });
|
|
54014
54478
|
/**
|
|
54015
|
-
*
|
|
54016
|
-
* @Input
|
|
54017
|
-
*
|
|
54018
54479
|
* @optional
|
|
54019
54480
|
*
|
|
54020
54481
|
* @description
|
|
@@ -54035,9 +54496,6 @@ class PoSkeletonBaseComponent {
|
|
|
54035
54496
|
*/
|
|
54036
54497
|
size = input(PoSkeletonSize.md, { ...(ngDevMode ? { debugName: "size" } : {}), alias: 'p-size' });
|
|
54037
54498
|
/**
|
|
54038
|
-
*
|
|
54039
|
-
* @Input
|
|
54040
|
-
*
|
|
54041
54499
|
* @optional
|
|
54042
54500
|
*
|
|
54043
54501
|
* @description
|
|
@@ -54051,8 +54509,6 @@ class PoSkeletonBaseComponent {
|
|
|
54051
54509
|
*/
|
|
54052
54510
|
width = input('', { ...(ngDevMode ? { debugName: "width" } : {}), alias: 'p-width' });
|
|
54053
54511
|
/**
|
|
54054
|
-
* @Input
|
|
54055
|
-
*
|
|
54056
54512
|
* @optional
|
|
54057
54513
|
*
|
|
54058
54514
|
* @description
|
|
@@ -54064,9 +54520,6 @@ class PoSkeletonBaseComponent {
|
|
|
54064
54520
|
*/
|
|
54065
54521
|
height = input('', { ...(ngDevMode ? { debugName: "height" } : {}), alias: 'p-height' });
|
|
54066
54522
|
/**
|
|
54067
|
-
*
|
|
54068
|
-
* @Input
|
|
54069
|
-
*
|
|
54070
54523
|
* @optional
|
|
54071
54524
|
*
|
|
54072
54525
|
* @description
|
|
@@ -54078,9 +54531,6 @@ class PoSkeletonBaseComponent {
|
|
|
54078
54531
|
*/
|
|
54079
54532
|
borderRadius = input('', { ...(ngDevMode ? { debugName: "borderRadius" } : {}), alias: 'p-border-radius' });
|
|
54080
54533
|
/**
|
|
54081
|
-
*
|
|
54082
|
-
* @Input
|
|
54083
|
-
*
|
|
54084
54534
|
* @optional
|
|
54085
54535
|
*
|
|
54086
54536
|
* @description
|
|
@@ -56087,6 +56537,8 @@ class PoTabBaseComponent {
|
|
|
56087
56537
|
* @default `false`
|
|
56088
56538
|
*/
|
|
56089
56539
|
hideClose = false;
|
|
56540
|
+
/** ID da Tab */
|
|
56541
|
+
id = uuid();
|
|
56090
56542
|
/** Método disparado ao clicar na aba. */
|
|
56091
56543
|
click = new EventEmitter();
|
|
56092
56544
|
/**
|
|
@@ -56100,8 +56552,15 @@ class PoTabBaseComponent {
|
|
|
56100
56552
|
*
|
|
56101
56553
|
*/
|
|
56102
56554
|
closeTab = new EventEmitter();
|
|
56103
|
-
|
|
56104
|
-
|
|
56555
|
+
/**
|
|
56556
|
+
* @optional
|
|
56557
|
+
*
|
|
56558
|
+
* @description
|
|
56559
|
+
*
|
|
56560
|
+
* Evento emitido quando a aba é ativada.
|
|
56561
|
+
* Emite a instância do componente da aba que foi ativada.
|
|
56562
|
+
*/
|
|
56563
|
+
activatedTab = output({ alias: 'p-activated-tab' });
|
|
56105
56564
|
_active = false;
|
|
56106
56565
|
_disabled = false;
|
|
56107
56566
|
_hide = false;
|
|
@@ -56157,7 +56616,7 @@ class PoTabBaseComponent {
|
|
|
56157
56616
|
return this._hide;
|
|
56158
56617
|
}
|
|
56159
56618
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTabBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
56160
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.9", type: PoTabBaseComponent, isStandalone: true, inputs: { label: ["p-label", "label"], hideClose: ["p-hide-close", "hideClose", convertToBoolean], active: ["p-active", "active"], disabled: ["p-disabled", "disabled"], hide: ["p-hide", "hide"] }, outputs: { click: "p-click", closeTab: "p-close-tab" }, ngImport: i0 });
|
|
56619
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.9", type: PoTabBaseComponent, isStandalone: true, inputs: { label: ["p-label", "label"], hideClose: ["p-hide-close", "hideClose", convertToBoolean], id: "id", active: ["p-active", "active"], disabled: ["p-disabled", "disabled"], hide: ["p-hide", "hide"] }, outputs: { click: "p-click", closeTab: "p-close-tab", activatedTab: "p-activated-tab" }, ngImport: i0 });
|
|
56161
56620
|
}
|
|
56162
56621
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTabBaseComponent, decorators: [{
|
|
56163
56622
|
type: Directive
|
|
@@ -56167,13 +56626,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
56167
56626
|
}], hideClose: [{
|
|
56168
56627
|
type: Input,
|
|
56169
56628
|
args: [{ alias: 'p-hide-close', transform: convertToBoolean }]
|
|
56629
|
+
}], id: [{
|
|
56630
|
+
type: Input,
|
|
56631
|
+
args: ['id']
|
|
56170
56632
|
}], click: [{
|
|
56171
56633
|
type: Output,
|
|
56172
56634
|
args: ['p-click']
|
|
56173
56635
|
}], closeTab: [{
|
|
56174
56636
|
type: Output,
|
|
56175
56637
|
args: ['p-close-tab']
|
|
56176
|
-
}], active: [{
|
|
56638
|
+
}], activatedTab: [{ type: i0.Output, args: ["p-activated-tab"] }], active: [{
|
|
56177
56639
|
type: Input,
|
|
56178
56640
|
args: ['p-active']
|
|
56179
56641
|
}], disabled: [{
|
|
@@ -56691,6 +57153,7 @@ class PoTabsComponent extends PoTabsBaseComponent {
|
|
|
56691
57153
|
// Função disparada quando alguma tab ficar ativa
|
|
56692
57154
|
onTabActive(tab) {
|
|
56693
57155
|
this.previousActiveTab = this.tabsChildren.find(tabChild => tabChild.active && tabChild.id !== tab.id);
|
|
57156
|
+
tab.activatedTab.emit(tab);
|
|
56694
57157
|
this.deactivateTab();
|
|
56695
57158
|
}
|
|
56696
57159
|
// funcao será disparada quando mudar o estado do poTab para desabilitado ou escondido.
|
|
@@ -56947,6 +57410,31 @@ class PoTabsComponent extends PoTabsBaseComponent {
|
|
|
56947
57410
|
this.setTabIndex(tabRemoveElements[0], 0);
|
|
56948
57411
|
}
|
|
56949
57412
|
}
|
|
57413
|
+
/**
|
|
57414
|
+
* Ativa a aba correspondente ao `id` informado.
|
|
57415
|
+
*
|
|
57416
|
+
* Para utilizá-la é necessário ter a instância do componente no DOM, podendo ser utilizado o ViewChild da seguinte forma:
|
|
57417
|
+
*
|
|
57418
|
+
* ```
|
|
57419
|
+
* import { PoTabsComponent } from '@po-ui/ng-components';
|
|
57420
|
+
*
|
|
57421
|
+
* ...
|
|
57422
|
+
*
|
|
57423
|
+
* @ViewChild('poTab', { static: true }) poTab: PoTabsComponent;
|
|
57424
|
+
*
|
|
57425
|
+
* focusOnTab() {
|
|
57426
|
+
* this.poTab.activateTab('meu-id-da-aba');
|
|
57427
|
+
* }
|
|
57428
|
+
* ```
|
|
57429
|
+
*
|
|
57430
|
+
* @param id Identificador único da aba a ser ativada.
|
|
57431
|
+
*/
|
|
57432
|
+
activateTab(id) {
|
|
57433
|
+
const tab = this.tabsChildrenArray.find(x => x.id === id);
|
|
57434
|
+
if (tab) {
|
|
57435
|
+
this.selectedTab(tab);
|
|
57436
|
+
}
|
|
57437
|
+
}
|
|
56950
57438
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56951
57439
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoTabsComponent, isStandalone: false, selector: "po-tabs", queries: [{ propertyName: "tabsChildren", predicate: PoTabComponent }], viewQueries: [{ propertyName: "tabDropdown", first: true, predicate: ["tabDropdown"], descendants: true, static: true }, { propertyName: "containerTabs", first: true, predicate: ["containerTabs"], descendants: true, read: ElementRef, static: true }, { propertyName: "tabButton", predicate: ["tabButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div class=\"po-tabs-container\">\n <div #containerTabs class=\"po-tabs-header\">\n <div class=\"po-tabs-button-wrapper\" role=\"tablist\">\n @for (tab of tabs; track trackByFn($index, tab)) {\n <po-tab-button\n #tabButton\n class=\"po-tab-button\"\n [p-active]=\"tab.active\"\n [p-disabled]=\"tab.disabled\"\n [p-hide]=\"tab.hide\"\n [p-id]=\"tab.id\"\n [hidden]=\"tab.hide\"\n [attr.disabled]=\"tab.disabled\"\n [p-label]=\"tab.label\"\n [id]=\"tab.id\"\n (keyup.enter)=\"closeListbox()\"\n (p-activated)=\"onTabActive(tab)\"\n (p-change-state)=\"onTabChangeState(tab)\"\n (p-click)=\"selectedTab(tab)\"\n >\n </po-tab-button>\n }\n\n @if (isShowTabDropdown) {\n <po-tab-dropdown\n #tabDropdown\n class=\"po-tab-dropdown\"\n [class.po-tab-dropdown-device]=\"!tabsDefault?.length\"\n [p-label]=\"literals.moreTabs\"\n [p-size]=\"size\"\n [p-tabs]=\"overflowedTabs\"\n (p-change-state)=\"onTabChangeState($event)\"\n (p-click)=\"onTabActiveByDropdown($event)\"\n >\n </po-tab-dropdown>\n }\n </div>\n </div>\n</div>\n<div class=\"po-tabs-content\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "component", type: PoTabButtonComponent, selector: "po-tab-button", inputs: ["p-disabled", "p-id", "p-label", "p-active", "p-hide"], outputs: ["p-activated", "p-change-state", "p-click"] }, { kind: "component", type: PoTabDropdownComponent, selector: "po-tab-dropdown", inputs: ["p-label", "p-tabs", "p-size"], outputs: ["p-activated", "p-change-state", "p-click"] }] });
|
|
56952
57440
|
}
|
|
@@ -58378,8 +58866,6 @@ class PoWidgetBaseComponent {
|
|
|
58378
58866
|
*/
|
|
58379
58867
|
tagIcon;
|
|
58380
58868
|
/**
|
|
58381
|
-
* @Input p-tag-position
|
|
58382
|
-
*
|
|
58383
58869
|
* @optional
|
|
58384
58870
|
*
|
|
58385
58871
|
* @description
|
|
@@ -58422,8 +58908,6 @@ class PoWidgetBaseComponent {
|
|
|
58422
58908
|
return this._size ?? getDefaultSizeFn(PoFieldSize);
|
|
58423
58909
|
}
|
|
58424
58910
|
/**
|
|
58425
|
-
* @Input p-avatar
|
|
58426
|
-
*
|
|
58427
58911
|
* @optional
|
|
58428
58912
|
*
|
|
58429
58913
|
* @description
|
|
@@ -59105,24 +59589,27 @@ const poNavbarLiteralsDefault = {
|
|
|
59105
59589
|
* | `--border-radius-bottom-left` | Valor do radius do lado esquerdo do header | `var(--border-radius-md)` |
|
|
59106
59590
|
* | `--border-radius-bottom-right` | Valor do radius do lado direito do header | `var(--border-radius-md)` |
|
|
59107
59591
|
* | `--base shadow` | Cor da sombra do header | `0 1px 8px rgba(0, 0, 0, 0.1)` |
|
|
59592
|
+
* | `--stroke-color` | Cor da borda inferior do header | `var(--color-brand-01-base)` |
|
|
59108
59593
|
* | **Sub-menu** | | |
|
|
59109
59594
|
* | `--border-radius` | Valor do radius dos itens do sub-menu | `var(--border-radius-md);` |
|
|
59110
59595
|
* | `--text-color-submenu` | Cor do texto dos itens do sub-menu | `var(--color-brand-01-base)` |
|
|
59111
59596
|
* | `--icon-color` | Cor do ícone do sub-menu com itens | `var(--color-brand-01-base)` |
|
|
59112
59597
|
* | `--border-color` | Cor da borda | `var(--color-transparent)` |
|
|
59113
59598
|
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-none)` |
|
|
59599
|
+
* | `--font-family-submenu` | Fonte do texto dos itens de sub-menu | `var(--font-family-theme)` |
|
|
59600
|
+
* | `--font-weight-submenu` | Peso da fonte do texto dos itens de sub-menu | `var(--font-weight-bold)` |
|
|
59114
59601
|
* | **Sub-menu - Hover** | | |
|
|
59115
59602
|
* | `--background-hover` | Cor de background dos itens do sub-menu no estado hover | `var(--color-brand-01-lighter)` |
|
|
59116
59603
|
* | `--icon-color-hover` | Cor do ícone dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
|
|
59117
|
-
* | `--text-color-hover` | Cor do
|
|
59604
|
+
* | `--text-color-hover` | Cor do texto dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
|
|
59118
59605
|
* | **Sub-menu - pressed** | | |
|
|
59119
59606
|
* | `--background-pressed` | Cor de background dos itens do sub-menu no estado pressed | `var(--color-brand-01-light)` |
|
|
59120
59607
|
* | `--icon-color-pressed` | Cor do ícone dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
|
|
59121
|
-
* | `--text-color-pressed` | Cor do
|
|
59608
|
+
* | `--text-color-pressed` | Cor do texto dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
|
|
59122
59609
|
* | **Sub-menu - selected** | | |
|
|
59123
59610
|
* | `--background-selected` | Cor de background dos itens do sub-menu no estado selected | `var(--color-brand-01-light)` |
|
|
59124
59611
|
* | `--icon-color-selected` | Cor do ícone dos itens de sub-menu no estado selected | `var(--color-neutral-dark-95)` |
|
|
59125
|
-
* | `--text-color-selected` | Cor do
|
|
59612
|
+
* | `--text-color-selected` | Cor do texto dos itens de sub-menu no estado selected | `var(--color-brand-01-darkest)` |
|
|
59126
59613
|
* | **Customer** | | |
|
|
59127
59614
|
* | `--background-color-customer` | Cor do background da seção customer | `var(--color-neutral-light-00)` |
|
|
59128
59615
|
* | `--border-color` | Cor da borda da seção customer | `var(--color-neutral-light-10)` |
|
|
@@ -59130,9 +59617,9 @@ const poNavbarLiteralsDefault = {
|
|
|
59130
59617
|
* | `--border-width` | Largura da borda da seção customer | `var(--border-width-sm)` |
|
|
59131
59618
|
* | **Customer - hover** | | |
|
|
59132
59619
|
* | `--background-color-customer-hover` | Cor do background da seção customer no estado hover | `var(--color-brand-01-lighter)` |
|
|
59133
|
-
* | `--background-color-customer-hover` | Cor do background da seção customer no estado hover | `var(--color-brand-01-lighter)` |
|
|
59134
59620
|
* | **Customer - pressed** | | |
|
|
59135
59621
|
* | `--background-color-customer-pressed` | Cor do background da seção customer no estado pressed | `var(--color-brand-01-light)` |
|
|
59622
|
+
* | `--border-width-pressed` | Largura da borda da seção customer no estado pressed | `var(--border-width-md)` |
|
|
59136
59623
|
*
|
|
59137
59624
|
*/
|
|
59138
59625
|
class PoHeaderBaseComponent {
|
|
@@ -59142,6 +59629,7 @@ class PoHeaderBaseComponent {
|
|
|
59142
59629
|
_brand;
|
|
59143
59630
|
_literals;
|
|
59144
59631
|
language = poLocaleDefault;
|
|
59632
|
+
themeChangeSignal = signal(0, ...(ngDevMode ? [{ debugName: "themeChangeSignal" }] : []));
|
|
59145
59633
|
/**
|
|
59146
59634
|
* @optional
|
|
59147
59635
|
*
|
|
@@ -59303,6 +59791,31 @@ class PoHeaderBaseComponent {
|
|
|
59303
59791
|
get literals() {
|
|
59304
59792
|
return this._literals || poNavbarLiteralsDefault[this.language];
|
|
59305
59793
|
}
|
|
59794
|
+
/**
|
|
59795
|
+
* @optional
|
|
59796
|
+
*
|
|
59797
|
+
* @Input
|
|
59798
|
+
*
|
|
59799
|
+
* @description
|
|
59800
|
+
*
|
|
59801
|
+
* Define o tamanho do componente:
|
|
59802
|
+
* - `small`: altura de 44px (disponível apenas para acessibilidade AA).
|
|
59803
|
+
* - `medium`: altura de 56px.
|
|
59804
|
+
*
|
|
59805
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
59806
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
59807
|
+
*
|
|
59808
|
+
* @default `medium`
|
|
59809
|
+
*/
|
|
59810
|
+
sizeInput = input('', { ...(ngDevMode ? { debugName: "sizeInput" } : {}), alias: 'p-size' });
|
|
59811
|
+
size = computed(() => {
|
|
59812
|
+
this.themeChangeSignal();
|
|
59813
|
+
const value = this.sizeInput();
|
|
59814
|
+
return value ? validateSizeFn(value, PoFieldSize) : getDefaultSizeFn(PoFieldSize);
|
|
59815
|
+
}, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
59816
|
+
get hostSize() {
|
|
59817
|
+
return this.sizeInput() ? validateSizeFn(this.sizeInput(), PoFieldSize) : getDefaultSizeFn(PoFieldSize);
|
|
59818
|
+
}
|
|
59306
59819
|
/**
|
|
59307
59820
|
* @optional
|
|
59308
59821
|
*
|
|
@@ -59321,8 +59834,19 @@ class PoHeaderBaseComponent {
|
|
|
59321
59834
|
generateRandomId() {
|
|
59322
59835
|
return String(Math.floor(Math.random() * 9999 + 1));
|
|
59323
59836
|
}
|
|
59837
|
+
onThemeChange() {
|
|
59838
|
+
this.themeChangeSignal.update(v => v + 1);
|
|
59839
|
+
requestAnimationFrame(() => {
|
|
59840
|
+
try {
|
|
59841
|
+
this.updateMenu();
|
|
59842
|
+
}
|
|
59843
|
+
catch {
|
|
59844
|
+
console.error('updateMenu with errors. probably tried to execute before the component was rendered.');
|
|
59845
|
+
}
|
|
59846
|
+
});
|
|
59847
|
+
}
|
|
59324
59848
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderBaseComponent, deps: [{ token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
59325
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
59849
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PoHeaderBaseComponent, isStandalone: true, inputs: { amountMore: { classPropertyName: "amountMore", publicName: "p-amount-more", isSignal: false, isRequired: false, transformFunction: null }, hideButtonMenu: { classPropertyName: "hideButtonMenu", publicName: "p-hide-button-menu", isSignal: false, isRequired: false, transformFunction: null }, filterMenu: { classPropertyName: "filterMenu", publicName: "p-filter-menu", isSignal: false, isRequired: false, transformFunction: convertToBoolean }, sideMenuOnlyAction: { classPropertyName: "sideMenuOnlyAction", publicName: "p-side-menu-only-action", isSignal: false, isRequired: false, transformFunction: null }, forceActionTools: { classPropertyName: "forceActionTools", publicName: "p-force-actions-tools", isSignal: false, isRequired: false, transformFunction: null }, notChangeContext: { classPropertyName: "notChangeContext", publicName: "p-not-change-context", isSignal: false, isRequired: false, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "p-brand", isSignal: false, isRequired: false, transformFunction: null }, actionsTools: { classPropertyName: "actionsTools", publicName: "p-actions-tools", isSignal: false, isRequired: false, transformFunction: null }, headerUser: { classPropertyName: "headerUser", publicName: "p-header-user", isSignal: false, isRequired: false, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "p-menu-items", isSignal: false, isRequired: false, transformFunction: null }, menuCollapse: { classPropertyName: "menuCollapse", publicName: "p-menus", isSignal: false, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "p-header-template", isSignal: false, isRequired: false, transformFunction: null }, literals: { classPropertyName: "literals", publicName: "p-literals", isSignal: false, isRequired: false, transformFunction: null }, sizeInput: { classPropertyName: "sizeInput", publicName: "p-size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { colapsedMenuEvent: "p-colapsed-menu" }, host: { listeners: { "window:PoUiThemeChange": "onThemeChange()" }, properties: { "attr.p-size": "this.hostSize" } }, ngImport: i0 });
|
|
59326
59850
|
}
|
|
59327
59851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderBaseComponent, decorators: [{
|
|
59328
59852
|
type: Directive
|
|
@@ -59365,9 +59889,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
59365
59889
|
}], literals: [{
|
|
59366
59890
|
type: Input,
|
|
59367
59891
|
args: ['p-literals']
|
|
59892
|
+
}], sizeInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-size", required: false }] }], hostSize: [{
|
|
59893
|
+
type: HostBinding,
|
|
59894
|
+
args: ['attr.p-size']
|
|
59368
59895
|
}], colapsedMenuEvent: [{
|
|
59369
59896
|
type: Output,
|
|
59370
59897
|
args: ['p-colapsed-menu']
|
|
59898
|
+
}], onThemeChange: [{
|
|
59899
|
+
type: HostListener,
|
|
59900
|
+
args: ['window:PoUiThemeChange']
|
|
59371
59901
|
}] } });
|
|
59372
59902
|
|
|
59373
59903
|
class PoHeaderbrandComponent {
|
|
@@ -59384,6 +59914,7 @@ class PoHeaderbrandComponent {
|
|
|
59384
59914
|
// itens do menu caso não seja enviado um menu externo pelo usuário
|
|
59385
59915
|
menuCollapse = [];
|
|
59386
59916
|
externalMenu;
|
|
59917
|
+
size = input(undefined, { ...(ngDevMode ? { debugName: "size" } : {}), alias: 'p-size' });
|
|
59387
59918
|
constructor(cd, router) {
|
|
59388
59919
|
this.cd = cd;
|
|
59389
59920
|
this.router = router;
|
|
@@ -59420,11 +59951,11 @@ class PoHeaderbrandComponent {
|
|
|
59420
59951
|
return this.titleBrand?.nativeElement.offsetWidth >= 151;
|
|
59421
59952
|
}
|
|
59422
59953
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderbrandComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
59423
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderbrandComponent, isStandalone: false, selector: "po-header-brand", inputs: { brand:
|
|
59954
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderbrandComponent, isStandalone: false, selector: "po-header-brand", inputs: { brand: { classPropertyName: "brand", publicName: "p-brand", isSignal: false, isRequired: false, transformFunction: null }, hideButtonMenu: { classPropertyName: "hideButtonMenu", publicName: "p-hide-button-menu", isSignal: false, isRequired: false, transformFunction: null }, menuCollapse: { classPropertyName: "menuCollapse", publicName: "p-menus", isSignal: false, isRequired: false, transformFunction: null }, externalMenu: { classPropertyName: "externalMenu", publicName: "p-external", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clickMenu: "p-click-menu" }, viewQueries: [{ propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: ElementRef, static: true }, { propertyName: "titleBrand", first: true, predicate: ["titleBrand"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"po-header-nav-brand\">\n @if (externalMenu) {\n <po-button\n #target\n class=\"po-nav-header-medium\"\n [p-size]=\"size()\"\n p-icon=\"ICON_MENU\"\n p-kind=\"tertiary\"\n (p-click)=\"clickMenu.emit()\"\n >\n </po-button>\n } @else if (menuCollapse.length && !hideButtonMenu) {\n <po-button [p-size]=\"size()\" #target p-icon=\"ICON_MENU\" p-kind=\"tertiary\" (p-click)=\"clickMenu.emit()\"> </po-button>\n }\n\n @if (brand?.logo && !smallLogo) {\n <div class=\"po-header-nav-brand-logo\" (click)=\"onClickLogo()\">\n <img [src]=\"brand.logo\" alt=\"Logo\" />\n </div>\n }\n\n @if ((brand?.logo || brand?.smallLogo) && smallLogo) {\n <div class=\"po-header-nav-brand-logo-small\" (click)=\"onClickLogo()\">\n <img [src]=\"brand?.smallLogo || brand?.logo\" alt=\"Logo\" />\n </div>\n }\n <span #titleBrand [p-tooltip]=\"showTooltip ? brand?.title : ''\" class=\"po-header-nav-brand-text\">{{\n brand?.title\n }}</span>\n</div>\n", dependencies: [{ kind: "component", type: PoButtonComponent, selector: "po-button" }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }] });
|
|
59424
59955
|
}
|
|
59425
59956
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderbrandComponent, decorators: [{
|
|
59426
59957
|
type: Component,
|
|
59427
|
-
args: [{ selector: 'po-header-brand', standalone: false, template: "<div class=\"po-header-nav-brand\">\n @if (externalMenu) {\n <po-button\n #target\n class=\"po-nav-header-medium\"\n p-size=\"
|
|
59958
|
+
args: [{ selector: 'po-header-brand', standalone: false, template: "<div class=\"po-header-nav-brand\">\n @if (externalMenu) {\n <po-button\n #target\n class=\"po-nav-header-medium\"\n [p-size]=\"size()\"\n p-icon=\"ICON_MENU\"\n p-kind=\"tertiary\"\n (p-click)=\"clickMenu.emit()\"\n >\n </po-button>\n } @else if (menuCollapse.length && !hideButtonMenu) {\n <po-button [p-size]=\"size()\" #target p-icon=\"ICON_MENU\" p-kind=\"tertiary\" (p-click)=\"clickMenu.emit()\"> </po-button>\n }\n\n @if (brand?.logo && !smallLogo) {\n <div class=\"po-header-nav-brand-logo\" (click)=\"onClickLogo()\">\n <img [src]=\"brand.logo\" alt=\"Logo\" />\n </div>\n }\n\n @if ((brand?.logo || brand?.smallLogo) && smallLogo) {\n <div class=\"po-header-nav-brand-logo-small\" (click)=\"onClickLogo()\">\n <img [src]=\"brand?.smallLogo || brand?.logo\" alt=\"Logo\" />\n </div>\n }\n <span #titleBrand [p-tooltip]=\"showTooltip ? brand?.title : ''\" class=\"po-header-nav-brand-text\">{{\n brand?.title\n }}</span>\n</div>\n" }]
|
|
59428
59959
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$1.Router }], propDecorators: { targetRef: [{
|
|
59429
59960
|
type: ViewChild,
|
|
59430
59961
|
args: ['target', { read: ElementRef, static: true }]
|
|
@@ -59446,7 +59977,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
59446
59977
|
}], externalMenu: [{
|
|
59447
59978
|
type: Input,
|
|
59448
59979
|
args: ['p-external']
|
|
59449
|
-
}] } });
|
|
59980
|
+
}], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-size", required: false }] }] } });
|
|
59450
59981
|
|
|
59451
59982
|
const poHeaderMoreLiteralsDefault = {
|
|
59452
59983
|
en: {
|
|
@@ -59476,6 +60007,7 @@ class PoHeaderMenuItemComponent {
|
|
|
59476
60007
|
item;
|
|
59477
60008
|
itemOverFlow;
|
|
59478
60009
|
overflowButton = false;
|
|
60010
|
+
size = input(undefined, { ...(ngDevMode ? { debugName: "size" } : {}), alias: 'p-size' });
|
|
59479
60011
|
itemClick = new EventEmitter();
|
|
59480
60012
|
constructor(cd, router, languageService) {
|
|
59481
60013
|
this.cd = cd;
|
|
@@ -59575,11 +60107,11 @@ class PoHeaderMenuItemComponent {
|
|
|
59575
60107
|
});
|
|
59576
60108
|
}
|
|
59577
60109
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderMenuItemComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.Router }, { token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
59578
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderMenuItemComponent, isStandalone: false, selector: "po-header-menu-item", inputs: { item:
|
|
60110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderMenuItemComponent, isStandalone: false, selector: "po-header-menu-item", inputs: { item: { classPropertyName: "item", publicName: "p-item", isSignal: false, isRequired: false, transformFunction: null }, itemOverFlow: { classPropertyName: "itemOverFlow", publicName: "p-item-overflow", isSignal: false, isRequired: false, transformFunction: null }, overflowButton: { classPropertyName: "overflowButton", publicName: "p-button-overflow", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "p-item-click" }, viewQueries: [{ propertyName: "buttonMoreElement", first: true, predicate: ["buttonMoreElement"], descendants: true, read: ElementRef }, { propertyName: "poPopupElement", first: true, predicate: PoPopupComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (overflowButton) {\n <li\n #buttonMoreElement\n #overflowButton\n class=\"po-header-nav-submenu-more\"\n tabindex=\"0\"\n (click)=\"openListButtonMore()\"\n (keydown)=\"onKeyDownButtonMore($event)\"\n >\n <div\n role=\"button\"\n [attr.aria-expanded]=\"poPopupElement?.showPopup\"\n class=\"po-header-nav-submenu-button-more\"\n [class.open]=\"poPopupElement?.showPopup\"\n >\n <span>{{ literals.more }}</span>\n <po-icon\n class=\"po-header-icon po-header-nav-submenu-more-icon\"\n [p-icon]=\"poPopupElement?.showPopup ? 'ICON_ARROW_UP' : 'ICON_ARROW_DOWN'\"\n ></po-icon>\n </div>\n </li>\n} @else {\n <li\n #menusubmenuitem\n tabindex=\"0\"\n [p-tooltip]=\"item?.label\"\n class=\"po-header-nav-submenu\"\n (click)=\"onAction(item)\"\n (keydown)=\"onKeyDownButtonList($event, item)\"\n [attr.aria-current]=\"selectedItem\"\n >\n <div\n class=\"po-header-nav-submenu-button\"\n [attr.aria-selected]=\"item?.$selected\"\n [class.submenu-item-selected]=\"selectedItem\"\n >\n <span>{{ item?.label }}</span>\n </div>\n </li>\n}\n\n@if (overflowButton) {\n <po-popup\n #popup\n [p-size]=\"size()\"\n [p-actions]=\"itemOverFlow\"\n [p-target]=\"buttonMoreElement\"\n [p-hide-arrow]=\"true\"\n (p-click-item)=\"onAction($event, false)\"\n (p-close)=\"onClosePopup()\"\n >\n </po-popup>\n}\n", dependencies: [{ kind: "component", type: PoIconComponent, selector: "po-icon", inputs: ["p-icon"] }, { kind: "directive", type: PoTooltipDirective, selector: "[p-tooltip]" }, { kind: "component", type: PoPopupComponent, selector: "po-popup" }] });
|
|
59579
60111
|
}
|
|
59580
60112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderMenuItemComponent, decorators: [{
|
|
59581
60113
|
type: Component,
|
|
59582
|
-
args: [{ selector: 'po-header-menu-item', standalone: false, template: "@if (overflowButton) {\n <li\n #buttonMoreElement\n #overflowButton\n class=\"po-header-nav-submenu-more\"\n tabindex=\"0\"\n (click)=\"openListButtonMore()\"\n (keydown)=\"onKeyDownButtonMore($event)\"\n >\n <div\n role=\"button\"\n [attr.aria-expanded]=\"poPopupElement?.showPopup\"\n class=\"po-header-nav-submenu-button-more\"\n [class.open]=\"poPopupElement?.showPopup\"\n >\n <span>{{ literals.more }}</span>\n <po-icon\n class=\"po-header-icon po-header-nav-submenu-more-icon\"\n [p-icon]=\"poPopupElement?.showPopup ? 'ICON_ARROW_UP' : 'ICON_ARROW_DOWN'\"\n ></po-icon>\n </div>\n </li>\n} @else {\n <li\n #menusubmenuitem\n tabindex=\"0\"\n [p-tooltip]=\"item?.label\"\n class=\"po-header-nav-submenu\"\n (click)=\"onAction(item)\"\n (keydown)=\"onKeyDownButtonList($event, item)\"\n [attr.aria-current]=\"selectedItem\"\n >\n <div\n class=\"po-header-nav-submenu-button\"\n [attr.aria-selected]=\"item?.$selected\"\n [class.submenu-item-selected]=\"selectedItem\"\n >\n <span>{{ item?.label }}</span>\n </div>\n </li>\n}\n\n@if (overflowButton) {\n <po-popup\n #popup\n p-size=\"
|
|
60114
|
+
args: [{ selector: 'po-header-menu-item', standalone: false, template: "@if (overflowButton) {\n <li\n #buttonMoreElement\n #overflowButton\n class=\"po-header-nav-submenu-more\"\n tabindex=\"0\"\n (click)=\"openListButtonMore()\"\n (keydown)=\"onKeyDownButtonMore($event)\"\n >\n <div\n role=\"button\"\n [attr.aria-expanded]=\"poPopupElement?.showPopup\"\n class=\"po-header-nav-submenu-button-more\"\n [class.open]=\"poPopupElement?.showPopup\"\n >\n <span>{{ literals.more }}</span>\n <po-icon\n class=\"po-header-icon po-header-nav-submenu-more-icon\"\n [p-icon]=\"poPopupElement?.showPopup ? 'ICON_ARROW_UP' : 'ICON_ARROW_DOWN'\"\n ></po-icon>\n </div>\n </li>\n} @else {\n <li\n #menusubmenuitem\n tabindex=\"0\"\n [p-tooltip]=\"item?.label\"\n class=\"po-header-nav-submenu\"\n (click)=\"onAction(item)\"\n (keydown)=\"onKeyDownButtonList($event, item)\"\n [attr.aria-current]=\"selectedItem\"\n >\n <div\n class=\"po-header-nav-submenu-button\"\n [attr.aria-selected]=\"item?.$selected\"\n [class.submenu-item-selected]=\"selectedItem\"\n >\n <span>{{ item?.label }}</span>\n </div>\n </li>\n}\n\n@if (overflowButton) {\n <po-popup\n #popup\n [p-size]=\"size()\"\n [p-actions]=\"itemOverFlow\"\n [p-target]=\"buttonMoreElement\"\n [p-hide-arrow]=\"true\"\n (p-click-item)=\"onAction($event, false)\"\n (p-close)=\"onClosePopup()\"\n >\n </po-popup>\n}\n" }]
|
|
59583
60115
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$1.Router }, { type: PoLanguageService }], propDecorators: { buttonMoreElement: [{
|
|
59584
60116
|
type: ViewChild,
|
|
59585
60117
|
args: ['buttonMoreElement', { read: ElementRef }]
|
|
@@ -59595,7 +60127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
59595
60127
|
}], overflowButton: [{
|
|
59596
60128
|
type: Input,
|
|
59597
60129
|
args: ['p-button-overflow']
|
|
59598
|
-
}], itemClick: [{
|
|
60130
|
+
}], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-size", required: false }] }], itemClick: [{
|
|
59599
60131
|
type: Output,
|
|
59600
60132
|
args: ['p-item-click']
|
|
59601
60133
|
}] } });
|
|
@@ -59619,6 +60151,7 @@ class PoHeaderToolsComponent {
|
|
|
59619
60151
|
this.cd.detectChanges();
|
|
59620
60152
|
}
|
|
59621
60153
|
literals;
|
|
60154
|
+
size = input(undefined, { ...(ngDevMode ? { debugName: "size" } : {}), alias: 'p-size' });
|
|
59622
60155
|
get actionTools() {
|
|
59623
60156
|
return this._actionTools;
|
|
59624
60157
|
}
|
|
@@ -59677,11 +60210,11 @@ class PoHeaderToolsComponent {
|
|
|
59677
60210
|
}
|
|
59678
60211
|
}
|
|
59679
60212
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderToolsComponent, deps: [{ token: i1$1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
59680
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderToolsComponent, isStandalone: false, selector: "po-header-tools", inputs: { forceActionTools:
|
|
60213
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderToolsComponent, isStandalone: false, selector: "po-header-tools", inputs: { forceActionTools: { classPropertyName: "forceActionTools", publicName: "p-force-actions-tools", isSignal: false, isRequired: false, transformFunction: null }, actionTools: { classPropertyName: "actionTools", publicName: "p-actions-tools", isSignal: false, isRequired: false, transformFunction: null }, literals: { classPropertyName: "literals", publicName: "p-literals", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: true, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "p-header-template", isSignal: false, isRequired: false, transformFunction: null } }, 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]=\"size()\"\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]=\"size()\"\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" }] });
|
|
59681
60214
|
}
|
|
59682
60215
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderToolsComponent, decorators: [{
|
|
59683
60216
|
type: Component,
|
|
59684
|
-
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=\"
|
|
60217
|
+
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]=\"size()\"\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]=\"size()\"\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" }]
|
|
59685
60218
|
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i0.ChangeDetectorRef }], propDecorators: { buttonActionElements: [{
|
|
59686
60219
|
type: ViewChildren,
|
|
59687
60220
|
args: ['buttonActionElement', { read: ElementRef }]
|
|
@@ -59703,7 +60236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
59703
60236
|
}], literals: [{
|
|
59704
60237
|
type: Input,
|
|
59705
60238
|
args: ['p-literals']
|
|
59706
|
-
}], headerTemplate: [{
|
|
60239
|
+
}], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-size", required: false }] }], headerTemplate: [{
|
|
59707
60240
|
type: Input,
|
|
59708
60241
|
args: ['p-header-template']
|
|
59709
60242
|
}] } });
|
|
@@ -59727,6 +60260,7 @@ class PoHeaderCustomerComponent {
|
|
|
59727
60260
|
poPopupAction;
|
|
59728
60261
|
poPopoverAction;
|
|
59729
60262
|
headerUser;
|
|
60263
|
+
size = input(undefined, { ...(ngDevMode ? { debugName: "size" } : {}), alias: 'p-size' });
|
|
59730
60264
|
constructor(languageService) {
|
|
59731
60265
|
const language = languageService.getShortLanguage();
|
|
59732
60266
|
this.literals = {
|
|
@@ -59760,11 +60294,11 @@ class PoHeaderCustomerComponent {
|
|
|
59760
60294
|
}
|
|
59761
60295
|
}
|
|
59762
60296
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderCustomerComponent, deps: [{ token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
59763
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderCustomerComponent, isStandalone: false, selector: "po-header-customer", inputs: { headerUser:
|
|
60297
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderCustomerComponent, isStandalone: false, selector: "po-header-customer", inputs: { headerUser: { classPropertyName: "headerUser", publicName: "p-header-user", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "p-size", isSignal: true, isRequired: false, transformFunction: null } }, 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]=\"size()\"\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" }] });
|
|
59764
60298
|
}
|
|
59765
60299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderCustomerComponent, decorators: [{
|
|
59766
60300
|
type: Component,
|
|
59767
|
-
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=\"
|
|
60301
|
+
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]=\"size()\"\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" }]
|
|
59768
60302
|
}], ctorParameters: () => [{ type: PoLanguageService }], propDecorators: { poPopupAction: [{
|
|
59769
60303
|
type: ViewChild,
|
|
59770
60304
|
args: ['poPopupAction']
|
|
@@ -59774,7 +60308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
59774
60308
|
}], headerUser: [{
|
|
59775
60309
|
type: Input,
|
|
59776
60310
|
args: ['p-header-user']
|
|
59777
|
-
}] } });
|
|
60311
|
+
}], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "p-size", required: false }] }] } });
|
|
59778
60312
|
|
|
59779
60313
|
/**
|
|
59780
60314
|
* @docsExtends PoHeaderBaseComponent
|
|
@@ -60075,11 +60609,11 @@ class PoHeaderComponent extends PoHeaderBaseComponent {
|
|
|
60075
60609
|
}
|
|
60076
60610
|
}
|
|
60077
60611
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: PoMenuGlobalService }, { token: PoLanguageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60078
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderComponent, isStandalone: false, selector: "po-header", queries: [{ propertyName: "menuHeaderTemplate", first: true, predicate: PoMenuHeaderTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "buttonFirstAction", first: true, predicate: ["buttonFirstAction"], descendants: true, read: ElementRef }, { propertyName: "navElement", first: true, predicate: ["navElement"], descendants: true, read: ElementRef }, { propertyName: "menuWrapperBrand", first: true, predicate: ["menuWrapperBrand"], descendants: true }, { propertyName: "menuWrapperTools", first: true, predicate: ["menuWrapperTools"], descendants: true }, { propertyName: "overflowButton", first: true, predicate: ["overflowButton"], descendants: true, static: true }, { propertyName: "overflowButtonComponentEl", first: true, predicate: ["overflowButton"], descendants: true }, { propertyName: "menuComponent", first: true, predicate: PoMenuComponent, descendants: true }, { propertyName: "menuSubItems", predicate: ["menusubmenuitem"], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nav #navElement class=\"po-header-nav\">\n <div #menuWrapperBrand>\n <po-header-brand\n [p-brand]=\"brand\"\n (p-click-menu)=\"onClickMenu()\"\n [p-menus]=\"menuCollapseJoin\"\n [p-external]=\"applicationMenu\"\n [p-hide-button-menu]=\"hideButtonMenu\"\n ></po-header-brand>\n </div>\n\n <ul #menuWrapperItens class=\"po-header-nav-submenus-wrapper\">\n @for (item of visibleMenuItems; track item.id) {\n <po-header-menu-item
|
|
60612
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: PoHeaderComponent, isStandalone: false, selector: "po-header", queries: [{ propertyName: "menuHeaderTemplate", first: true, predicate: PoMenuHeaderTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "buttonFirstAction", first: true, predicate: ["buttonFirstAction"], descendants: true, read: ElementRef }, { propertyName: "navElement", first: true, predicate: ["navElement"], descendants: true, read: ElementRef }, { propertyName: "menuWrapperBrand", first: true, predicate: ["menuWrapperBrand"], descendants: true }, { propertyName: "menuWrapperTools", first: true, predicate: ["menuWrapperTools"], descendants: true }, { propertyName: "overflowButton", first: true, predicate: ["overflowButton"], descendants: true, static: true }, { propertyName: "overflowButtonComponentEl", first: true, predicate: ["overflowButton"], descendants: true }, { propertyName: "menuComponent", first: true, predicate: PoMenuComponent, descendants: true }, { propertyName: "menuSubItems", predicate: ["menusubmenuitem"], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nav #navElement class=\"po-header-nav\">\n <div #menuWrapperBrand>\n <po-header-brand\n [p-brand]=\"brand\"\n (p-click-menu)=\"onClickMenu()\"\n [p-menus]=\"menuCollapseJoin\"\n [p-external]=\"applicationMenu\"\n [p-hide-button-menu]=\"hideButtonMenu\"\n [p-size]=\"size()\"\n ></po-header-brand>\n </div>\n\n <ul #menuWrapperItens class=\"po-header-nav-submenus-wrapper\">\n @for (item of visibleMenuItems; track item.id) {\n <po-header-menu-item\n #menusubmenuitem\n [p-item]=\"item\"\n (p-item-click)=\"onSelected($event)\"\n [p-size]=\"size()\"\n ></po-header-menu-item>\n }\n </ul>\n\n @if (showOverflow && overflowItems.length) {\n <po-header-menu-item\n #overflowButton\n #menusubmenuitem\n [p-button-overflow]=\"true\"\n [p-item-overflow]=\"overflowItems\"\n (p-item-click)=\"onSelected($event)\"\n [p-size]=\"size()\"\n ></po-header-menu-item>\n }\n\n <ul #menuWrapperTools class=\"po-header-tools-wrapper\">\n <po-header-tools\n [p-force-actions-tools]=\"forceActionTools\"\n [p-actions-tools]=\"actionsTools\"\n [p-header-template]=\"headerTemplate\"\n [p-literals]=\"literals\"\n [p-size]=\"size()\"\n ></po-header-tools>\n\n @if (headerUser?.customerBrand && headerUser?.avatar) {\n <po-header-customer [p-header-user]=\"headerUser\" [p-size]=\"size()\"></po-header-customer>\n }\n </ul>\n</nav>\n\n@if (!sideMenuOnlyAction && !applicationMenu && menuCollapseJoin.length) {\n <div class=\"po-header-overlay\" [class.show]=\"showMenu\" (click)=\"onCloseMenu()\"></div>\n\n <aside class=\"po-header-side-menu\" [class.open]=\"showMenu\">\n <div class=\"po-header-sidemenu-outer\">\n <po-menu\n [p-only-menu-item]=\"true\"\n [p-menus]=\"menuCollapseJoin\"\n [p-filter]=\"filterMenu\"\n p-menu-id=\"po-header-nav-bar\"\n >\n <div *p-menu-header-template>\n <ng-template *ngTemplateOutlet=\"menuHeaderTemplate?.templateRef\"></ng-template>\n </div>\n </po-menu>\n </div>\n </aside>\n}\n", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoMenuComponent, selector: "po-menu" }, { kind: "directive", type: PoMenuHeaderTemplateDirective, selector: "[p-menu-header-template]" }, { kind: "component", type: PoHeaderbrandComponent, selector: "po-header-brand", inputs: ["p-brand", "p-hide-button-menu", "p-menus", "p-external", "p-size"], outputs: ["p-click-menu"] }, { kind: "component", type: PoHeaderMenuItemComponent, selector: "po-header-menu-item", inputs: ["p-item", "p-item-overflow", "p-button-overflow", "p-size"], outputs: ["p-item-click"] }, { kind: "component", type: PoHeaderToolsComponent, selector: "po-header-tools", inputs: ["p-force-actions-tools", "p-actions-tools", "p-literals", "p-size", "p-header-template"] }, { kind: "component", type: PoHeaderCustomerComponent, selector: "po-header-customer", inputs: ["p-header-user", "p-size"] }] });
|
|
60079
60613
|
}
|
|
60080
60614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PoHeaderComponent, decorators: [{
|
|
60081
60615
|
type: Component,
|
|
60082
|
-
args: [{ selector: 'po-header', standalone: false, template: "<nav #navElement class=\"po-header-nav\">\n <div #menuWrapperBrand>\n <po-header-brand\n [p-brand]=\"brand\"\n (p-click-menu)=\"onClickMenu()\"\n [p-menus]=\"menuCollapseJoin\"\n [p-external]=\"applicationMenu\"\n [p-hide-button-menu]=\"hideButtonMenu\"\n ></po-header-brand>\n </div>\n\n <ul #menuWrapperItens class=\"po-header-nav-submenus-wrapper\">\n @for (item of visibleMenuItems; track item.id) {\n <po-header-menu-item
|
|
60616
|
+
args: [{ selector: 'po-header', standalone: false, template: "<nav #navElement class=\"po-header-nav\">\n <div #menuWrapperBrand>\n <po-header-brand\n [p-brand]=\"brand\"\n (p-click-menu)=\"onClickMenu()\"\n [p-menus]=\"menuCollapseJoin\"\n [p-external]=\"applicationMenu\"\n [p-hide-button-menu]=\"hideButtonMenu\"\n [p-size]=\"size()\"\n ></po-header-brand>\n </div>\n\n <ul #menuWrapperItens class=\"po-header-nav-submenus-wrapper\">\n @for (item of visibleMenuItems; track item.id) {\n <po-header-menu-item\n #menusubmenuitem\n [p-item]=\"item\"\n (p-item-click)=\"onSelected($event)\"\n [p-size]=\"size()\"\n ></po-header-menu-item>\n }\n </ul>\n\n @if (showOverflow && overflowItems.length) {\n <po-header-menu-item\n #overflowButton\n #menusubmenuitem\n [p-button-overflow]=\"true\"\n [p-item-overflow]=\"overflowItems\"\n (p-item-click)=\"onSelected($event)\"\n [p-size]=\"size()\"\n ></po-header-menu-item>\n }\n\n <ul #menuWrapperTools class=\"po-header-tools-wrapper\">\n <po-header-tools\n [p-force-actions-tools]=\"forceActionTools\"\n [p-actions-tools]=\"actionsTools\"\n [p-header-template]=\"headerTemplate\"\n [p-literals]=\"literals\"\n [p-size]=\"size()\"\n ></po-header-tools>\n\n @if (headerUser?.customerBrand && headerUser?.avatar) {\n <po-header-customer [p-header-user]=\"headerUser\" [p-size]=\"size()\"></po-header-customer>\n }\n </ul>\n</nav>\n\n@if (!sideMenuOnlyAction && !applicationMenu && menuCollapseJoin.length) {\n <div class=\"po-header-overlay\" [class.show]=\"showMenu\" (click)=\"onCloseMenu()\"></div>\n\n <aside class=\"po-header-side-menu\" [class.open]=\"showMenu\">\n <div class=\"po-header-sidemenu-outer\">\n <po-menu\n [p-only-menu-item]=\"true\"\n [p-menus]=\"menuCollapseJoin\"\n [p-filter]=\"filterMenu\"\n p-menu-id=\"po-header-nav-bar\"\n >\n <div *p-menu-header-template>\n <ng-template *ngTemplateOutlet=\"menuHeaderTemplate?.templateRef\"></ng-template>\n </div>\n </po-menu>\n </div>\n </aside>\n}\n" }]
|
|
60083
60617
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: PoMenuGlobalService }, { type: PoLanguageService }], propDecorators: { buttonFirstAction: [{
|
|
60084
60618
|
type: ViewChild,
|
|
60085
60619
|
args: ['buttonFirstAction', { read: ElementRef }]
|
|
@@ -60179,6 +60713,7 @@ const PO_MODULES = [
|
|
|
60179
60713
|
PoCalendarModule,
|
|
60180
60714
|
PoChartModule,
|
|
60181
60715
|
PoContainerModule,
|
|
60716
|
+
PoContextMenuModule,
|
|
60182
60717
|
PoDisclaimerGroupModule,
|
|
60183
60718
|
PoDisclaimerModule,
|
|
60184
60719
|
PoDividerModule,
|
|
@@ -60233,6 +60768,7 @@ class PoComponentsModule {
|
|
|
60233
60768
|
PoCalendarModule,
|
|
60234
60769
|
PoChartModule,
|
|
60235
60770
|
PoContainerModule,
|
|
60771
|
+
PoContextMenuModule,
|
|
60236
60772
|
PoDisclaimerGroupModule,
|
|
60237
60773
|
PoDisclaimerModule,
|
|
60238
60774
|
PoDividerModule,
|
|
@@ -60283,6 +60819,7 @@ class PoComponentsModule {
|
|
|
60283
60819
|
PoCalendarModule,
|
|
60284
60820
|
PoChartModule,
|
|
60285
60821
|
PoContainerModule,
|
|
60822
|
+
PoContextMenuModule,
|
|
60286
60823
|
PoDisclaimerGroupModule,
|
|
60287
60824
|
PoDisclaimerModule,
|
|
60288
60825
|
PoDividerModule,
|
|
@@ -60334,6 +60871,7 @@ class PoComponentsModule {
|
|
|
60334
60871
|
PoCalendarModule,
|
|
60335
60872
|
PoChartModule,
|
|
60336
60873
|
PoContainerModule,
|
|
60874
|
+
PoContextMenuModule,
|
|
60337
60875
|
PoDisclaimerGroupModule,
|
|
60338
60876
|
PoDisclaimerModule,
|
|
60339
60877
|
PoDividerModule,
|
|
@@ -61391,5 +61929,5 @@ function validateProperty(property, target) {
|
|
|
61391
61929
|
* Generated bundle index. Do not edit.
|
|
61392
61930
|
*/
|
|
61393
61931
|
|
|
61394
|
-
export { AnimaliaIconDictionary, ForceBooleanComponentEnum, ForceOptionComponentEnum, I18N_CONFIG, InputBoolean, InputRequired, LOADING_ICON_COMPONENT, PO_CONTROL_POSITIONS, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBadgeComponent, PoBadgeModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonKind, PoButtonModule, PoButtonSize, PoButtonType, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartLabelFormat, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCheckboxSize, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboModule, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoContextTabButtonComponent, PoContextTabsComponent, PoContextTabsModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDecimalComponent, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDividerSize, PoDropdownComponent, PoDropdownModule, PoDynamicContainerComponent, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicSharedBase, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHeaderComponent, PoHeaderModule, PoHelperComponent, PoHelperModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconModule, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, PoLookupComponent, PoLookupModalComponent, PoMask, PoMediaQueryModule, PoMediaQueryService, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoMultiselectOptionTemplateDirective, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoOverlayComponent, PoOverlayModule, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPageSlideFooterComponent, PoPageSlideModule, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressSize, PoProgressStatus, PoRadioComponent, PoRadioGroupComponent, PoRadioGroupModule, PoRadioModule, PoRichTextComponent, PoRichTextToolbarActions, PoSearchComponent, PoSearchFilterMode, PoSearchListComponent, PoSearchModule, PoSelectComponent, PoServicesModule, PoSkeletonAnimation, PoSkeletonComponent, PoSkeletonModule, PoSkeletonSize, PoSkeletonType, PoSkeletonVariant, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoSwitchModule, PoTabButtonComponent, PoTabComponent, PoTabDropdownComponent, PoTableCellTemplateDirective, PoTableColumnFrozenDirective, PoTableColumnSortType, PoTableColumnSpacing, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTabsService, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoThemeA11yEnum, PoThemeModule, PoThemeService, PoThemeTypeEnum, PoTimeModule, PoTimePipe, PoToasterComponent, PoToasterMode, PoToasterModule, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUploadFile, PoUploadStatus, PoUrlComponent, PoWidgetComponent, PoWidgetModule, initializeLanguageDefault, mergePoI18nConfigs, poBreadcrumbLiterals, poChartLiteralsDefault, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poPageSlideLiteralsDefault, poTabsLiterals, poThemeDefault, poThemeDefaultAA, poThemeDefaultAAA, poThemeDefaultActions, poThemeDefaultActionsDark, poThemeDefaultBrands, poThemeDefaultBrandsDark, poThemeDefaultCategoricals, poThemeDefaultCategoricalsAA, poThemeDefaultCategoricalsDark, poThemeDefaultCategoricalsDarkAA, poThemeDefaultCategoricalsOverlayDark, poThemeDefaultCategoricalsOverlayDarkAA, poThemeDefaultDark, poThemeDefaultDarkValues, poThemeDefaultDarkValuesAA, poThemeDefaultFeedback, poThemeDefaultFeedbackDark, poThemeDefaultLight, poThemeDefaultLightValues, poThemeDefaultLightValuesAA, poThemeDefaultNeutrals, poThemeDefaultNeutralsDark, poThemeDefaultOverlayCategoricals, poThemeDefaultOverlayCategoricalsAA, poToasterLiterals, returnPoI18nService };
|
|
61932
|
+
export { AnimaliaIconDictionary, ForceBooleanComponentEnum, ForceOptionComponentEnum, I18N_CONFIG, InputBoolean, InputRequired, LOADING_ICON_COMPONENT, PO_CONTROL_POSITIONS, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBadgeComponent, PoBadgeModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonKind, PoButtonModule, PoButtonSize, PoButtonType, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartLabelFormat, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCheckboxSize, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboModule, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoContextMenuComponent, PoContextMenuModule, PoContextTabButtonComponent, PoContextTabsComponent, PoContextTabsModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDecimalComponent, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDividerSize, PoDropdownComponent, PoDropdownModule, PoDynamicContainerComponent, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicSharedBase, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHeaderComponent, PoHeaderModule, PoHelperComponent, PoHelperModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconModule, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, PoLookupComponent, PoLookupModalComponent, PoMask, PoMediaQueryModule, PoMediaQueryService, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoMultiselectOptionTemplateDirective, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoOverlayComponent, PoOverlayModule, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPageSlideFooterComponent, PoPageSlideModule, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressSize, PoProgressStatus, PoRadioComponent, PoRadioGroupComponent, PoRadioGroupModule, PoRadioModule, PoRichTextComponent, PoRichTextToolbarActions, PoSearchComponent, PoSearchFilterMode, PoSearchListComponent, PoSearchModule, PoSelectComponent, PoServicesModule, PoSkeletonAnimation, PoSkeletonComponent, PoSkeletonModule, PoSkeletonSize, PoSkeletonType, PoSkeletonVariant, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoSwitchModule, PoTabButtonComponent, PoTabComponent, PoTabDropdownComponent, PoTableCellTemplateDirective, PoTableColumnFrozenDirective, PoTableColumnSortType, PoTableColumnSpacing, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTabsService, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoThemeA11yEnum, PoThemeModule, PoThemeService, PoThemeTypeEnum, PoTimeModule, PoTimePipe, PoToasterComponent, PoToasterMode, PoToasterModule, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUploadFile, PoUploadStatus, PoUrlComponent, PoWidgetComponent, PoWidgetModule, initializeLanguageDefault, mergePoI18nConfigs, poBreadcrumbLiterals, poChartLiteralsDefault, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poPageSlideLiteralsDefault, poTabsLiterals, poThemeDefault, poThemeDefaultAA, poThemeDefaultAAA, poThemeDefaultActions, poThemeDefaultActionsDark, poThemeDefaultBrands, poThemeDefaultBrandsDark, poThemeDefaultCategoricals, poThemeDefaultCategoricalsAA, poThemeDefaultCategoricalsDark, poThemeDefaultCategoricalsDarkAA, poThemeDefaultCategoricalsOverlayDark, poThemeDefaultCategoricalsOverlayDarkAA, poThemeDefaultDark, poThemeDefaultDarkValues, poThemeDefaultDarkValuesAA, poThemeDefaultFeedback, poThemeDefaultFeedbackDark, poThemeDefaultLight, poThemeDefaultLightValues, poThemeDefaultLightValuesAA, poThemeDefaultNeutrals, poThemeDefaultNeutralsDark, poThemeDefaultOverlayCategoricals, poThemeDefaultOverlayCategoricalsAA, poToasterLiterals, returnPoI18nService };
|
|
61395
61933
|
//# sourceMappingURL=po-ui-ng-components.mjs.map
|