@po-ui/ng-components 14.3.1 → 14.5.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/esm2020/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.mjs +30 -3
- package/esm2020/lib/components/po-accordion/po-accordion.component.mjs +2 -2
- package/esm2020/lib/components/po-accordion/services/po-accordion.service.mjs +1 -1
- package/esm2020/lib/components/po-button-group/po-button-group-base.component.mjs +2 -2
- package/esm2020/lib/components/po-button-group/po-button-group.component.mjs +3 -3
- package/esm2020/lib/components/po-field/po-combo/po-combo.component.mjs +6 -6
- package/esm2020/lib/components/po-field/po-datepicker/po-datepicker.component.mjs +5 -5
- package/esm2020/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.mjs +7 -3
- package/esm2020/lib/components/po-field/po-decimal/po-decimal.component.mjs +5 -5
- package/esm2020/lib/components/po-field/po-email/po-email.component.mjs +9 -7
- package/esm2020/lib/components/po-field/po-input/po-input.component.mjs +9 -7
- package/esm2020/lib/components/po-field/po-login/po-login.component.mjs +12 -11
- package/esm2020/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.mjs +3 -3
- package/esm2020/lib/components/po-field/po-lookup/po-lookup.component.mjs +6 -5
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect-base.component.mjs +31 -20
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.mjs +19 -13
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect-filter.interface.mjs +1 -1
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect-filter.service.mjs +2 -2
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect-search/po-multiselect-search.component.mjs +7 -4
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +24 -17
- package/esm2020/lib/components/po-field/po-number/po-number.component.mjs +5 -5
- package/esm2020/lib/components/po-field/po-password/po-password.component.mjs +14 -13
- package/esm2020/lib/components/po-field/po-radio/po-radio-size.enum.mjs +10 -3
- package/esm2020/lib/components/po-field/po-radio/po-radio.component.mjs +98 -34
- package/esm2020/lib/components/po-field/po-radio-group/po-radio-group-base.component.mjs +16 -2
- package/esm2020/lib/components/po-field/po-radio-group/po-radio-group.component.mjs +18 -25
- package/esm2020/lib/components/po-field/po-select/po-select.component.mjs +38 -250
- package/esm2020/lib/components/po-field/po-switch/po-switch.component.mjs +38 -34
- package/esm2020/lib/components/po-field/po-textarea/po-textarea-base.component.mjs +11 -1
- package/esm2020/lib/components/po-field/po-textarea/po-textarea.component.mjs +6 -7
- package/esm2020/lib/components/po-field/po-url/po-url.component.mjs +9 -7
- package/esm2020/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.mjs +2 -2
- package/esm2020/lib/components/po-page/po-page-list/po-page-list.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table-base.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +26 -73
- package/esm2020/lib/components/po-table/po-table-detail/po-table-detail.component.mjs +27 -8
- package/esm2020/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.mjs +111 -0
- package/esm2020/lib/components/po-table/po-table.module.mjs +4 -1
- package/esm2020/lib/components/po-tag/po-tag-base.component.mjs +11 -3
- package/esm2020/lib/components/po-tag/po-tag.component.mjs +16 -9
- package/esm2020/lib/components/po-tree-view/po-tree-view-base.component.mjs +6 -4
- package/fesm2015/po-ui-ng-components.mjs +961 -1026
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +941 -1004
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +10 -3
- package/lib/components/po-accordion/services/po-accordion.service.d.ts +3 -2
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +1 -1
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +26 -15
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +5 -3
- package/lib/components/po-field/po-multiselect/po-multiselect-filter.interface.d.ts +2 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +2 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-search/po-multiselect-search.component.d.ts +2 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +7 -1
- package/lib/components/po-field/po-radio/po-radio-size.enum.d.ts +9 -2
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +27 -10
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +21 -1
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -32
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +12 -2
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +10 -0
- package/lib/components/po-modal/po-modal.component.d.ts +1 -1
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +4 -12
- package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -0
- package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +35 -0
- package/lib/components/po-table/po-table.module.d.ts +25 -24
- package/lib/components/po-tag/po-tag-base.component.d.ts +8 -2
- package/package.json +4 -4
- package/po-ui-ng-components-14.5.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/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/esm2020/lib/components/po-field/po-radio/po-radio-base.component.mjs +0 -104
- package/lib/components/po-field/po-radio/po-radio-base.component.d.ts +0 -58
- package/po-ui-ng-components-14.3.1.tgz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, TemplateRef, Component, Input,
|
|
2
|
+
import { Injectable, EventEmitter, TemplateRef, Component, Input, Output, ViewChild, ChangeDetectionStrategy, ContentChildren, NgModule, Directive, ElementRef, HostBinding, HostListener, forwardRef, ViewChildren, ViewContainerRef, ContentChild, Pipe, InjectFlags, Injector, Inject, InjectionToken, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DecimalPipe, CurrencyPipe, DatePipe, TitleCasePipe } from '@angular/common';
|
|
5
|
-
import { Subject, from, timer, fromEvent, of, Subscription, throwError, ReplaySubject, Observable } from 'rxjs';
|
|
5
|
+
import { Subject, filter, from, timer, fromEvent, of, Subscription, throwError, ReplaySubject, Observable } from 'rxjs';
|
|
6
6
|
import * as i2$2 from '@angular/animations';
|
|
7
7
|
import { trigger, transition, style, animate, state, keyframes, group, query, animateChild } from '@angular/animations';
|
|
8
8
|
import * as i2 from '@angular/router';
|
|
@@ -12,7 +12,7 @@ import { HttpHeaders, HttpEventType, HttpResponse, HttpRequest, HttpClientModule
|
|
|
12
12
|
import { __decorate, __param } from 'tslib';
|
|
13
13
|
import * as i2$1 from '@angular/forms';
|
|
14
14
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule, NgControl, ControlContainer, NgForm } from '@angular/forms';
|
|
15
|
-
import { debounceTime, concatMap, mapTo, scan, tap, switchMap, map, filter, distinctUntilChanged, finalize, catchError, takeWhile, delay, take } from 'rxjs/operators';
|
|
15
|
+
import { debounceTime, concatMap, mapTo, scan, tap, switchMap, map, filter as filter$1, distinctUntilChanged, finalize, catchError, takeWhile, delay, take } from 'rxjs/operators';
|
|
16
16
|
import * as i7 from '@angular/cdk/scrolling';
|
|
17
17
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
18
18
|
import * as i3 from '@angular/platform-browser';
|
|
@@ -76,7 +76,7 @@ PoAccordionService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoAcc
|
|
|
76
76
|
function PoAccordionItemComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
77
77
|
i0.ɵɵprojection(0);
|
|
78
78
|
} }
|
|
79
|
-
const _c0$
|
|
79
|
+
const _c0$1v = ["*"];
|
|
80
80
|
/**
|
|
81
81
|
* @description
|
|
82
82
|
*
|
|
@@ -111,6 +111,26 @@ const _c0$1u = ["*"];
|
|
|
111
111
|
class PoAccordionItemComponent {
|
|
112
112
|
constructor(accordionService) {
|
|
113
113
|
this.accordionService = accordionService;
|
|
114
|
+
/** Evento disparado ao expandir o item, seja manualmente ou programaticamente. */
|
|
115
|
+
this.expandEvent = new EventEmitter();
|
|
116
|
+
/** Evento disparado ao retrair o item, seja manualmente ou programaticamente. */
|
|
117
|
+
this.collapseEvent = new EventEmitter();
|
|
118
|
+
this.expandSubscription = this.accordionService
|
|
119
|
+
.receiveFromChildAccordionClicked()
|
|
120
|
+
.pipe(filter(poAccordionItem => poAccordionItem === this && poAccordionItem.expanded))
|
|
121
|
+
.subscribe(() => {
|
|
122
|
+
this.expandEvent.emit();
|
|
123
|
+
});
|
|
124
|
+
this.collapseSubscription = this.accordionService
|
|
125
|
+
.receiveFromChildAccordionClicked()
|
|
126
|
+
.pipe(filter(poAccordionItem => poAccordionItem === this && !poAccordionItem.expanded))
|
|
127
|
+
.subscribe(() => {
|
|
128
|
+
this.collapseEvent.emit();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
ngOnDestroy() {
|
|
132
|
+
this.expandSubscription.unsubscribe();
|
|
133
|
+
this.collapseSubscription.unsubscribe();
|
|
114
134
|
}
|
|
115
135
|
/**
|
|
116
136
|
* Método para colapsar o `po-accordion-item`.
|
|
@@ -133,7 +153,7 @@ PoAccordionItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Po
|
|
|
133
153
|
} if (rf & 2) {
|
|
134
154
|
let _t;
|
|
135
155
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templateRef = _t.first);
|
|
136
|
-
} }, inputs: { label: ["p-label", "label"] }, ngContentSelectors: _c0$
|
|
156
|
+
} }, inputs: { label: ["p-label", "label"] }, outputs: { expandEvent: "p-expand", collapseEvent: "p-collapse" }, ngContentSelectors: _c0$1v, decls: 1, vars: 0, template: function PoAccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
137
157
|
i0.ɵɵprojectionDef();
|
|
138
158
|
i0.ɵɵtemplate(0, PoAccordionItemComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
139
159
|
} }, encapsulation: 2 });
|
|
@@ -143,6 +163,12 @@ PoAccordionItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Po
|
|
|
143
163
|
}], function () { return [{ type: PoAccordionService }]; }, { label: [{
|
|
144
164
|
type: Input,
|
|
145
165
|
args: ['p-label']
|
|
166
|
+
}], expandEvent: [{
|
|
167
|
+
type: Output,
|
|
168
|
+
args: ['p-expand']
|
|
169
|
+
}], collapseEvent: [{
|
|
170
|
+
type: Output,
|
|
171
|
+
args: ['p-collapse']
|
|
146
172
|
}], templateRef: [{
|
|
147
173
|
type: ViewChild,
|
|
148
174
|
args: [TemplateRef, { static: true }]
|
|
@@ -155,14 +181,14 @@ function PoAccordionItemBodyComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
155
181
|
} if (rf & 2) {
|
|
156
182
|
i0.ɵɵproperty("@toggleBody", undefined);
|
|
157
183
|
} }
|
|
158
|
-
const _c0$
|
|
184
|
+
const _c0$1u = ["*"];
|
|
159
185
|
class PoAccordionItemBodyComponent {
|
|
160
186
|
constructor() {
|
|
161
187
|
this.expanded = false;
|
|
162
188
|
}
|
|
163
189
|
}
|
|
164
190
|
PoAccordionItemBodyComponent.ɵfac = function PoAccordionItemBodyComponent_Factory(t) { return new (t || PoAccordionItemBodyComponent)(); };
|
|
165
|
-
PoAccordionItemBodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoAccordionItemBodyComponent, selectors: [["po-accordion-item-body"]], inputs: { expanded: ["p-expanded", "expanded"] }, ngContentSelectors: _c0$
|
|
191
|
+
PoAccordionItemBodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoAccordionItemBodyComponent, selectors: [["po-accordion-item-body"]], inputs: { expanded: ["p-expanded", "expanded"] }, ngContentSelectors: _c0$1u, decls: 1, vars: 1, consts: [["class", "po-accordion-item-body", 4, "ngIf"], [1, "po-accordion-item-body"], [1, "po-accordion-item-body-content"]], template: function PoAccordionItemBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
166
192
|
i0.ɵɵprojectionDef();
|
|
167
193
|
i0.ɵɵtemplate(0, PoAccordionItemBodyComponent_div_0_Template, 3, 1, "div", 0);
|
|
168
194
|
} if (rf & 2) {
|
|
@@ -277,7 +303,7 @@ class PoAccordionComponent extends PoAccordionBaseComponent {
|
|
|
277
303
|
}
|
|
278
304
|
headerToggle(event, poAccordionItem) {
|
|
279
305
|
poAccordionItem.expanded = event;
|
|
280
|
-
this.
|
|
306
|
+
this.accordionService.sendToParentAccordionItemClicked(poAccordionItem);
|
|
281
307
|
}
|
|
282
308
|
receiveFromChildAccordionSubscription() {
|
|
283
309
|
this.accordionServiceSubscription = this.accordionService
|
|
@@ -1613,8 +1639,8 @@ PoBreadcrumbItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: P
|
|
|
1613
1639
|
args: ['p-item-active']
|
|
1614
1640
|
}] }); })();
|
|
1615
1641
|
|
|
1616
|
-
const _c0$
|
|
1617
|
-
const _c1$
|
|
1642
|
+
const _c0$1t = ["breadcrumb"];
|
|
1643
|
+
const _c1$C = ["dropdownIcon"];
|
|
1618
1644
|
function PoBreadcrumbComponent_li_3_Template(rf, ctx) { if (rf & 1) {
|
|
1619
1645
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
1620
1646
|
i0.ɵɵelementStart(0, "li", 7, 8);
|
|
@@ -1788,8 +1814,8 @@ class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent {
|
|
|
1788
1814
|
}
|
|
1789
1815
|
PoBreadcrumbComponent.ɵfac = function PoBreadcrumbComponent_Factory(t) { return new (t || PoBreadcrumbComponent)(i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
1790
1816
|
PoBreadcrumbComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbComponent, selectors: [["po-breadcrumb"]], viewQuery: function PoBreadcrumbComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1791
|
-
i0.ɵɵviewQuery(_c0$
|
|
1792
|
-
i0.ɵɵviewQuery(_c1$
|
|
1817
|
+
i0.ɵɵviewQuery(_c0$1t, 7, ElementRef);
|
|
1818
|
+
i0.ɵɵviewQuery(_c1$C, 5, ElementRef);
|
|
1793
1819
|
} if (rf & 2) {
|
|
1794
1820
|
let _t;
|
|
1795
1821
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.breadcrumbElement = _t.first);
|
|
@@ -1957,7 +1983,7 @@ const poLoadingOverlayLiteralsDefault = {
|
|
|
1957
1983
|
loading: 'Carregando'
|
|
1958
1984
|
},
|
|
1959
1985
|
ru: {
|
|
1960
|
-
loading: '
|
|
1986
|
+
loading: 'Загрузка'
|
|
1961
1987
|
}
|
|
1962
1988
|
};
|
|
1963
1989
|
/**
|
|
@@ -2572,7 +2598,7 @@ __decorate([
|
|
|
2572
2598
|
args: ['p-disabled']
|
|
2573
2599
|
}] }); })();
|
|
2574
2600
|
|
|
2575
|
-
const _c0$
|
|
2601
|
+
const _c0$1s = ["button"];
|
|
2576
2602
|
function PoButtonComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2577
2603
|
i0.ɵɵelementStart(0, "div", 5);
|
|
2578
2604
|
i0.ɵɵelement(1, "po-loading-icon", 6);
|
|
@@ -2646,7 +2672,7 @@ class PoButtonComponent extends PoButtonBaseComponent {
|
|
|
2646
2672
|
}
|
|
2647
2673
|
PoButtonComponent.ɵfac = /*@__PURE__*/ function () { let ɵPoButtonComponent_BaseFactory; return function PoButtonComponent_Factory(t) { return (ɵPoButtonComponent_BaseFactory || (ɵPoButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoButtonComponent)))(t || PoButtonComponent); }; }();
|
|
2648
2674
|
PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonComponent, selectors: [["po-button"]], viewQuery: function PoButtonComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2649
|
-
i0.ɵɵviewQuery(_c0$
|
|
2675
|
+
i0.ɵɵviewQuery(_c0$1s, 7);
|
|
2650
2676
|
} if (rf & 2) {
|
|
2651
2677
|
let _t;
|
|
2652
2678
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
@@ -3457,7 +3483,7 @@ class PoButtonGroupBaseComponent {
|
|
|
3457
3483
|
*
|
|
3458
3484
|
* Define o modo de seleção de botões.
|
|
3459
3485
|
*
|
|
3460
|
-
* > Veja os valores válidos no *enum* `
|
|
3486
|
+
* > Veja os valores válidos no *enum* `PoButtonGroupToggle`.
|
|
3461
3487
|
*
|
|
3462
3488
|
* @default `none`
|
|
3463
3489
|
*/
|
|
@@ -3509,7 +3535,7 @@ PoButtonGroupBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type:
|
|
|
3509
3535
|
function PoButtonGroupComponent_po_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
3510
3536
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
3511
3537
|
i0.ɵɵelementStart(0, "po-button", 2);
|
|
3512
|
-
i0.ɵɵlistener("p-click", function PoButtonGroupComponent_po_button_1_Template_po_button_p_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const button_r1 = restoredCtx.$implicit; const i_r2 = restoredCtx.index; const ctx_r3 = i0.ɵɵnextContext();
|
|
3538
|
+
i0.ɵɵlistener("p-click", function PoButtonGroupComponent_po_button_1_Template_po_button_p_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const button_r1 = restoredCtx.$implicit; const i_r2 = restoredCtx.index; const ctx_r3 = i0.ɵɵnextContext(); ctx_r3.onButtonClick(button_r1, i_r2); return i0.ɵɵresetView(button_r1.action(button_r1)); });
|
|
3513
3539
|
i0.ɵɵelementEnd();
|
|
3514
3540
|
} if (rf & 2) {
|
|
3515
3541
|
const button_r1 = ctx.$implicit;
|
|
@@ -3559,7 +3585,7 @@ PoButtonGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBu
|
|
|
3559
3585
|
} }, dependencies: [i1.NgForOf, PoButtonComponent, PoTooltipDirective], encapsulation: 2 });
|
|
3560
3586
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonGroupComponent, [{
|
|
3561
3587
|
type: Component,
|
|
3562
|
-
args: [{ selector: 'po-button-group', template: "<div class=\"po-button-group-container\">\n <po-button\n *ngFor=\"let button of buttons; index as i\"\n class=\"po-sm-12 po-button-group\"\n [class.po-button-group-button-selected]=\"button.selected\"\n [class.po-button-group-disabled]=\"button.disabled\"\n p-tooltip-position=\"bottom\"\n [p-disabled]=\"button.disabled\"\n [p-icon]=\"button.icon\"\n [p-label]=\"button.label\"\n [p-small]=\"small\"\n [p-tooltip]=\"!button.disabled ? button.tooltip : undefined\"\n (p-click)=\"
|
|
3588
|
+
args: [{ selector: 'po-button-group', template: "<div class=\"po-button-group-container\">\n <po-button\n *ngFor=\"let button of buttons; index as i\"\n class=\"po-sm-12 po-button-group\"\n [class.po-button-group-button-selected]=\"button.selected\"\n [class.po-button-group-disabled]=\"button.disabled\"\n p-tooltip-position=\"bottom\"\n [p-disabled]=\"button.disabled\"\n [p-icon]=\"button.icon\"\n [p-label]=\"button.label\"\n [p-small]=\"small\"\n [p-tooltip]=\"!button.disabled ? button.tooltip : undefined\"\n (p-click)=\"onButtonClick(button, i); button.action(button)\"\n >\n </po-button>\n</div>\n" }]
|
|
3563
3589
|
}], function () { return [{ type: i0.ViewContainerRef }]; }, null); })();
|
|
3564
3590
|
|
|
3565
3591
|
/**
|
|
@@ -4234,7 +4260,7 @@ function PoCalendarHeaderComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
4234
4260
|
i0.ɵɵlistener("click", function PoCalendarHeaderComponent_span_4_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.next.emit()); });
|
|
4235
4261
|
i0.ɵɵelementEnd();
|
|
4236
4262
|
} }
|
|
4237
|
-
const _c0$
|
|
4263
|
+
const _c0$1r = ["*"];
|
|
4238
4264
|
class PoCalendarHeaderComponent {
|
|
4239
4265
|
constructor() {
|
|
4240
4266
|
this.hidePrevious = false;
|
|
@@ -4244,7 +4270,7 @@ class PoCalendarHeaderComponent {
|
|
|
4244
4270
|
}
|
|
4245
4271
|
}
|
|
4246
4272
|
PoCalendarHeaderComponent.ɵfac = function PoCalendarHeaderComponent_Factory(t) { return new (t || PoCalendarHeaderComponent)(); };
|
|
4247
|
-
PoCalendarHeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCalendarHeaderComponent, selectors: [["po-calendar-header"]], inputs: { hidePrevious: ["p-hide-previous", "hidePrevious"], hideNext: ["p-hide-next", "hideNext"] }, outputs: { previous: "p-previous", next: "p-next" }, ngContentSelectors: _c0$
|
|
4273
|
+
PoCalendarHeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCalendarHeaderComponent, selectors: [["po-calendar-header"]], inputs: { hidePrevious: ["p-hide-previous", "hidePrevious"], hideNext: ["p-hide-next", "hideNext"] }, outputs: { previous: "p-previous", next: "p-next" }, ngContentSelectors: _c0$1r, decls: 5, vars: 2, consts: [[1, "po-calendar-header"], ["class", "po-calendar-header-left po-icon po-icon-arrow-left", 3, "click", 4, "ngIf"], ["attr-calendar", "", 1, "po-calendar-header-title"], ["class", "po-calendar-header-right po-icon po-icon-arrow-right", 3, "click", 4, "ngIf"], [1, "po-calendar-header-left", "po-icon", "po-icon-arrow-left", 3, "click"], [1, "po-calendar-header-right", "po-icon", "po-icon-arrow-right", 3, "click"]], template: function PoCalendarHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4248
4274
|
i0.ɵɵprojectionDef();
|
|
4249
4275
|
i0.ɵɵelementStart(0, "div", 0);
|
|
4250
4276
|
i0.ɵɵtemplate(1, PoCalendarHeaderComponent_span_1_Template, 1, 0, "span", 1);
|
|
@@ -4726,7 +4752,7 @@ function PoCalendarComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if
|
|
|
4726
4752
|
function PoCalendarComponent_ng_template_1_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4727
4753
|
i0.ɵɵelementContainer(0);
|
|
4728
4754
|
} }
|
|
4729
|
-
const _c0$
|
|
4755
|
+
const _c0$1q = function () { return { partType: "end" }; };
|
|
4730
4756
|
function PoCalendarComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
4731
4757
|
i0.ɵɵelementContainerStart(0);
|
|
4732
4758
|
i0.ɵɵtemplate(1, PoCalendarComponent_ng_template_1_ng_container_2_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
@@ -4735,9 +4761,9 @@ function PoCalendarComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if
|
|
|
4735
4761
|
i0.ɵɵnextContext(2);
|
|
4736
4762
|
const _r5 = i0.ɵɵreference(6);
|
|
4737
4763
|
i0.ɵɵadvance(1);
|
|
4738
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c0$
|
|
4764
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c0$1q));
|
|
4739
4765
|
} }
|
|
4740
|
-
const _c1$
|
|
4766
|
+
const _c1$B = function () { return { partType: "start" }; };
|
|
4741
4767
|
function PoCalendarComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
4742
4768
|
i0.ɵɵelementStart(0, "div", 4);
|
|
4743
4769
|
i0.ɵɵtemplate(1, PoCalendarComponent_ng_template_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
@@ -4747,7 +4773,7 @@ function PoCalendarComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
4747
4773
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
4748
4774
|
const _r5 = i0.ɵɵreference(6);
|
|
4749
4775
|
i0.ɵɵadvance(1);
|
|
4750
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c1$
|
|
4776
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c1$B));
|
|
4751
4777
|
i0.ɵɵadvance(1);
|
|
4752
4778
|
i0.ɵɵproperty("ngIf", !ctx_r2.isResponsive);
|
|
4753
4779
|
} }
|
|
@@ -5173,7 +5199,7 @@ PoChartMathsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoCh
|
|
|
5173
5199
|
}]
|
|
5174
5200
|
}], null, null); })();
|
|
5175
5201
|
|
|
5176
|
-
const _c0$
|
|
5202
|
+
const _c0$1p = ["chartLine"];
|
|
5177
5203
|
class PoChartLineBaseComponent {
|
|
5178
5204
|
constructor(mathsService, renderer, elementRef) {
|
|
5179
5205
|
this.mathsService = mathsService;
|
|
@@ -5301,7 +5327,7 @@ class PoChartLineBaseComponent {
|
|
|
5301
5327
|
}
|
|
5302
5328
|
PoChartLineBaseComponent.ɵfac = function PoChartLineBaseComponent_Factory(t) { return new (t || PoChartLineBaseComponent)(i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
5303
5329
|
PoChartLineBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoChartLineBaseComponent, viewQuery: function PoChartLineBaseComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5304
|
-
i0.ɵɵviewQuery(_c0$
|
|
5330
|
+
i0.ɵɵviewQuery(_c0$1p, 5);
|
|
5305
5331
|
} if (rf & 2) {
|
|
5306
5332
|
let _t;
|
|
5307
5333
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartLine = _t.first);
|
|
@@ -5340,8 +5366,8 @@ PoChartLineBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Po
|
|
|
5340
5366
|
args: ['p-series']
|
|
5341
5367
|
}] }); })();
|
|
5342
5368
|
|
|
5343
|
-
const _c0$
|
|
5344
|
-
const _c1$
|
|
5369
|
+
const _c0$1o = ["chartPath"];
|
|
5370
|
+
const _c1$A = ["po-chart-path", ""];
|
|
5345
5371
|
const pathDashoffsetDefaultWidth = 0;
|
|
5346
5372
|
class PoChartPathComponent {
|
|
5347
5373
|
constructor(changeDetector) {
|
|
@@ -5381,11 +5407,11 @@ class PoChartPathComponent {
|
|
|
5381
5407
|
}
|
|
5382
5408
|
PoChartPathComponent.ɵfac = function PoChartPathComponent_Factory(t) { return new (t || PoChartPathComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5383
5409
|
PoChartPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartPathComponent, selectors: [["", "po-chart-path", ""]], viewQuery: function PoChartPathComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5384
|
-
i0.ɵɵviewQuery(_c0$
|
|
5410
|
+
i0.ɵɵviewQuery(_c0$1o, 7);
|
|
5385
5411
|
} if (rf & 2) {
|
|
5386
5412
|
let _t;
|
|
5387
5413
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartPath = _t.first);
|
|
5388
|
-
} }, inputs: { isActive: ["p-is-active", "isActive"], chartLine: ["p-chart-line", "chartLine"], coordinates: ["p-coordinates", "coordinates"], color: ["p-color", "color"], animate: ["p-animate", "animate"] }, attrs: _c1$
|
|
5414
|
+
} }, inputs: { isActive: ["p-is-active", "isActive"], chartLine: ["p-chart-line", "chartLine"], coordinates: ["p-coordinates", "coordinates"], color: ["p-color", "color"], animate: ["p-animate", "animate"] }, attrs: _c1$A, decls: 2, vars: 11, consts: [[1, "po-chart-path"], ["chartPath", ""]], template: function PoChartPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5389
5415
|
i0.ɵɵnamespaceSVG();
|
|
5390
5416
|
i0.ɵɵelement(0, "path", 0, 1);
|
|
5391
5417
|
} if (rf & 2) {
|
|
@@ -5422,7 +5448,7 @@ __decorate([
|
|
|
5422
5448
|
args: ['p-animate']
|
|
5423
5449
|
}] }); })();
|
|
5424
5450
|
|
|
5425
|
-
const _c0$
|
|
5451
|
+
const _c0$1n = ["po-chart-series-point", ""];
|
|
5426
5452
|
function PoChartSeriesPointComponent__svg_circle_0_Template(rf, ctx) { if (rf & 1) {
|
|
5427
5453
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
5428
5454
|
i0.ɵɵnamespaceSVG();
|
|
@@ -5500,7 +5526,7 @@ class PoChartSeriesPointComponent {
|
|
|
5500
5526
|
}
|
|
5501
5527
|
}
|
|
5502
5528
|
PoChartSeriesPointComponent.ɵfac = function PoChartSeriesPointComponent_Factory(t) { return new (t || PoChartSeriesPointComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
5503
|
-
PoChartSeriesPointComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartSeriesPointComponent, selectors: [["", "po-chart-series-point", ""]], inputs: { animate: ["p-animate", "animate"], isActive: ["p-is-active", "isActive"], chartLine: ["p-chart-line", "chartLine"], relativeTo: ["p-relative-to", "relativeTo"], color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"] }, outputs: { pointClick: "p-point-click", pointHover: "p-point-hover" }, attrs: _c0$
|
|
5529
|
+
PoChartSeriesPointComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartSeriesPointComponent, selectors: [["", "po-chart-series-point", ""]], inputs: { animate: ["p-animate", "animate"], isActive: ["p-is-active", "isActive"], chartLine: ["p-chart-line", "chartLine"], relativeTo: ["p-relative-to", "relativeTo"], color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"] }, outputs: { pointClick: "p-point-click", pointHover: "p-point-hover" }, attrs: _c0$1n, decls: 2, vars: 4, consts: [["p-tooltip-position", "top", "class", "po-chart-line-point", 3, "p-tooltip", "p-append-in-body", "p-display-tooltip", "class", "po-chart-active-point", "click", "mouseenter", "mouseleave", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["p-tooltip-position", "top", 1, "po-chart-line-point", 3, "p-tooltip", "p-append-in-body", "p-display-tooltip", "click", "mouseenter", "mouseleave"]], template: function PoChartSeriesPointComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5504
5530
|
i0.ɵɵtemplate(0, PoChartSeriesPointComponent__svg_circle_0_Template, 1, 11, "circle", 0);
|
|
5505
5531
|
i0.ɵɵpipe(1, "async");
|
|
5506
5532
|
} if (rf & 2) {
|
|
@@ -5541,7 +5567,7 @@ __decorate([
|
|
|
5541
5567
|
args: ['p-coordinates']
|
|
5542
5568
|
}] }); })();
|
|
5543
5569
|
|
|
5544
|
-
const _c0$
|
|
5570
|
+
const _c0$1m = ["po-chart-area", ""];
|
|
5545
5571
|
function PoChartAreaComponent__svg_g_2_Template(rf, ctx) { if (rf & 1) {
|
|
5546
5572
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
5547
5573
|
i0.ɵɵnamespaceSVG();
|
|
@@ -5623,7 +5649,7 @@ class PoChartAreaComponent extends PoChartLineBaseComponent {
|
|
|
5623
5649
|
}
|
|
5624
5650
|
}
|
|
5625
5651
|
PoChartAreaComponent.ɵfac = function PoChartAreaComponent_Factory(t) { return new (t || PoChartAreaComponent)(i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
5626
|
-
PoChartAreaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAreaComponent, selectors: [["", "po-chart-area", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
5652
|
+
PoChartAreaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAreaComponent, selectors: [["", "po-chart-area", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1m, decls: 3, vars: 2, consts: [["chartLine", ""], [3, "class", "mouseenter", "mouseleave", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "mouseenter", "mouseleave"], ["po-chart-path", "", 3, "p-chart-line", "p-animate", "p-color", "p-coordinates", "p-is-active"], ["po-chart-series-point", "", 3, "p-animate", "p-chart-line", "p-color", "p-coordinates", "p-is-active", "p-relative-to", "p-point-click", "p-point-hover"]], template: function PoChartAreaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5627
5653
|
i0.ɵɵnamespaceSVG();
|
|
5628
5654
|
i0.ɵɵelementStart(0, "g", null, 0);
|
|
5629
5655
|
i0.ɵɵtemplate(2, PoChartAreaComponent__svg_g_2_Template, 3, 15, "g", 1);
|
|
@@ -5637,7 +5663,7 @@ PoChartAreaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChar
|
|
|
5637
5663
|
args: [{ selector: '[po-chart-area]', template: "<svg:g #chartLine>\n\n <svg:g *ngFor=\"let item of seriesPathsCoordinates; let i = index; trackBy: trackBy\"\n [class]=\"'po-chart-line-path-group-' + i\"\n (mouseenter)=\"onEnter(i)\"\n (mouseleave)=\"onLeave(i)\"\n >\n <!-- SERIES PATHS -->\n <svg:g po-chart-path\n [p-chart-line]=\"chartType === 'line'\"\n [attr.key]=\"'po-chart-line-path-' + i\"\n [p-animate]=\"animate\"\n [p-color]=\"item.color\" \n [p-coordinates]=\"item?.coordinates\"\n [p-is-active]=\"item.isActive\"\n >\n </svg:g>\n\n <!-- SERIES POINTS -->\n <svg:g po-chart-series-point\n [p-animate]=\"animate\"\n [p-chart-line]=\"chartType === 'line'\"\n [p-color]=\"item.color\"\n [p-coordinates]=\"seriesPointsCoordinates[i]\"\n [p-is-active]=\"activeTooltip\"\n [p-relative-to]=\"'po-chart-line-path-group-' + i\" \n [attr.key]=\"'po-chart-line-path-points-group-' + i\"\n (p-point-click)=\"onSeriePointClick($event)\"\n (p-point-hover)=\"onSeriePointHover($event)\"\n ></svg:g>\n </svg:g>\n\n</svg:g>" }]
|
|
5638
5664
|
}], function () { return [{ type: PoChartMathsService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, null); })();
|
|
5639
5665
|
|
|
5640
|
-
const _c0$
|
|
5666
|
+
const _c0$1l = ["po-chart-axis-path", ""];
|
|
5641
5667
|
function PoChartAxisPathComponent__svg_path_1_Template(rf, ctx) { if (rf & 1) {
|
|
5642
5668
|
i0.ɵɵnamespaceSVG();
|
|
5643
5669
|
i0.ɵɵelement(0, "path", 1);
|
|
@@ -5659,7 +5685,7 @@ class PoChartAxisPathComponent {
|
|
|
5659
5685
|
}
|
|
5660
5686
|
}
|
|
5661
5687
|
PoChartAxisPathComponent.ɵfac = function PoChartAxisPathComponent_Factory(t) { return new (t || PoChartAxisPathComponent)(); };
|
|
5662
|
-
PoChartAxisPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisPathComponent, selectors: [["", "po-chart-axis-path", ""]], inputs: { axisXCoordinates: ["p-axis-x-coordinates", "axisXCoordinates"], axisYCoordinates: ["p-axis-y-coordinates", "axisYCoordinates"] }, attrs: _c0$
|
|
5688
|
+
PoChartAxisPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisPathComponent, selectors: [["", "po-chart-axis-path", ""]], inputs: { axisXCoordinates: ["p-axis-x-coordinates", "axisXCoordinates"], axisYCoordinates: ["p-axis-y-coordinates", "axisYCoordinates"] }, attrs: _c0$1l, decls: 4, vars: 4, consts: [["class", "po-chart-axis-path", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-chart-axis-path"]], template: function PoChartAxisPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5663
5689
|
i0.ɵɵnamespaceSVG();
|
|
5664
5690
|
i0.ɵɵelementStart(0, "g");
|
|
5665
5691
|
i0.ɵɵtemplate(1, PoChartAxisPathComponent__svg_path_1_Template, 1, 1, "path", 0);
|
|
@@ -5684,7 +5710,7 @@ PoChartAxisPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Po
|
|
|
5684
5710
|
args: ['p-axis-y-coordinates']
|
|
5685
5711
|
}] }); })();
|
|
5686
5712
|
|
|
5687
|
-
const _c0$
|
|
5713
|
+
const _c0$1k = ["po-chart-axis-label", ""];
|
|
5688
5714
|
function PoChartAxisLabelComponent__svg_text_1_Template(rf, ctx) { if (rf & 1) {
|
|
5689
5715
|
i0.ɵɵnamespaceSVG();
|
|
5690
5716
|
i0.ɵɵelementStart(0, "text", 2);
|
|
@@ -5718,7 +5744,7 @@ class PoChartAxisLabelComponent {
|
|
|
5718
5744
|
}
|
|
5719
5745
|
}
|
|
5720
5746
|
PoChartAxisLabelComponent.ɵfac = function PoChartAxisLabelComponent_Factory(t) { return new (t || PoChartAxisLabelComponent)(); };
|
|
5721
|
-
PoChartAxisLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisLabelComponent, selectors: [["", "po-chart-axis-label", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], axisXLabelCoordinates: ["p-axis-x-label-coordinates", "axisXLabelCoordinates"], axisYLabelCoordinates: ["p-axis-y-label-coordinates", "axisYLabelCoordinates"], type: ["p-type", "type"] }, attrs: _c0$
|
|
5747
|
+
PoChartAxisLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisLabelComponent, selectors: [["", "po-chart-axis-label", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], axisXLabelCoordinates: ["p-axis-x-label-coordinates", "axisXLabelCoordinates"], axisYLabelCoordinates: ["p-axis-y-label-coordinates", "axisYLabelCoordinates"], type: ["p-type", "type"] }, attrs: _c0$1k, decls: 4, vars: 4, consts: [["class", "po-chart-axis-x-label", "dominant-baseline", "middle", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-chart-axis-y-label", 3, "po-chart-centered-label", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["dominant-baseline", "middle", 1, "po-chart-axis-x-label"], [1, "po-chart-axis-y-label"]], template: function PoChartAxisLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5722
5748
|
i0.ɵɵnamespaceSVG();
|
|
5723
5749
|
i0.ɵɵelementStart(0, "g");
|
|
5724
5750
|
i0.ɵɵtemplate(1, PoChartAxisLabelComponent__svg_text_1_Template, 2, 3, "text", 0);
|
|
@@ -5749,7 +5775,7 @@ PoChartAxisLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: P
|
|
|
5749
5775
|
args: ['p-type']
|
|
5750
5776
|
}] }); })();
|
|
5751
5777
|
|
|
5752
|
-
const _c0$
|
|
5778
|
+
const _c0$1j = ["po-chart-axis", ""];
|
|
5753
5779
|
class PoChartAxisComponent {
|
|
5754
5780
|
constructor(mathsService) {
|
|
5755
5781
|
this.mathsService = mathsService;
|
|
@@ -6014,7 +6040,7 @@ class PoChartAxisComponent {
|
|
|
6014
6040
|
}
|
|
6015
6041
|
}
|
|
6016
6042
|
PoChartAxisComponent.ɵfac = function PoChartAxisComponent_Factory(t) { return new (t || PoChartAxisComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
6017
|
-
PoChartAxisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisComponent, selectors: [["", "po-chart-axis", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], type: ["p-type", "type"], range: ["p-range", "range"], series: ["p-series", "series"], categories: ["p-categories", "categories"], containerSize: ["p-container-size", "containerSize"], axisOptions: ["p-options", "axisOptions"] }, outputs: { categoriesCoordinates: "p-categories-coordinates" }, attrs: _c0$
|
|
6043
|
+
PoChartAxisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisComponent, selectors: [["", "po-chart-axis", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], type: ["p-type", "type"], range: ["p-range", "range"], series: ["p-series", "series"], categories: ["p-categories", "categories"], containerSize: ["p-container-size", "containerSize"], axisOptions: ["p-options", "axisOptions"] }, outputs: { categoriesCoordinates: "p-categories-coordinates" }, attrs: _c0$1j, decls: 2, vars: 6, consts: [["po-chart-axis-path", "", 3, "p-axis-x-coordinates", "p-axis-y-coordinates"], ["po-chart-axis-label", "", 3, "p-align-by-the-corners", "p-axis-x-label-coordinates", "p-axis-y-label-coordinates", "p-type"]], template: function PoChartAxisComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6018
6044
|
i0.ɵɵnamespaceSVG();
|
|
6019
6045
|
i0.ɵɵelement(0, "g", 0)(1, "g", 1);
|
|
6020
6046
|
} if (rf & 2) {
|
|
@@ -6151,7 +6177,7 @@ PoChartBarBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoC
|
|
|
6151
6177
|
args: ['p-series']
|
|
6152
6178
|
}] }); })();
|
|
6153
6179
|
|
|
6154
|
-
const _c0$
|
|
6180
|
+
const _c0$1i = ["po-chart-bar-path", ""];
|
|
6155
6181
|
function PoChartBarPathComponent__svg_path_0_Template(rf, ctx) { if (rf & 1) {
|
|
6156
6182
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
6157
6183
|
i0.ɵɵnamespaceSVG();
|
|
@@ -6183,7 +6209,7 @@ class PoChartBarPathComponent {
|
|
|
6183
6209
|
}
|
|
6184
6210
|
}
|
|
6185
6211
|
PoChartBarPathComponent.ɵfac = function PoChartBarPathComponent_Factory(t) { return new (t || PoChartBarPathComponent)(); };
|
|
6186
|
-
PoChartBarPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarPathComponent, selectors: [["", "po-chart-bar-path", ""]], inputs: { color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"], tooltipPosition: ["p-tooltip-position", "tooltipPosition"] }, outputs: { barClick: "p-bar-click", barHover: "p-bar-hover" }, attrs: _c0$
|
|
6212
|
+
PoChartBarPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarPathComponent, selectors: [["", "po-chart-bar-path", ""]], inputs: { color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"], tooltipPosition: ["p-tooltip-position", "tooltipPosition"] }, outputs: { barClick: "p-bar-click", barHover: "p-bar-hover" }, attrs: _c0$1i, decls: 1, vars: 2, consts: [["class", "po-chart-bar-path", 3, "p-tooltip", "p-tooltip-position", "p-append-in-body", "class", "mouseenter", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-chart-bar-path", 3, "p-tooltip", "p-tooltip-position", "p-append-in-body", "mouseenter", "click"]], template: function PoChartBarPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6187
6213
|
i0.ɵɵtemplate(0, PoChartBarPathComponent__svg_path_0_Template, 1, 7, "path", 0);
|
|
6188
6214
|
} if (rf & 2) {
|
|
6189
6215
|
i0.ɵɵproperty("ngForOf", ctx.coordinates)("ngForTrackBy", ctx.trackBy);
|
|
@@ -6208,7 +6234,7 @@ PoChartBarPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoC
|
|
|
6208
6234
|
args: ['p-bar-hover']
|
|
6209
6235
|
}] }); })();
|
|
6210
6236
|
|
|
6211
|
-
const _c0$
|
|
6237
|
+
const _c0$1h = ["po-chart-bar", ""];
|
|
6212
6238
|
function PoChartBarComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
6213
6239
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
6214
6240
|
i0.ɵɵnamespaceSVG();
|
|
@@ -6269,7 +6295,7 @@ class PoChartBarComponent extends PoChartBarBaseComponent {
|
|
|
6269
6295
|
}
|
|
6270
6296
|
}
|
|
6271
6297
|
PoChartBarComponent.ɵfac = function PoChartBarComponent_Factory(t) { return new (t || PoChartBarComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
6272
|
-
PoChartBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarComponent, selectors: [["", "po-chart-bar", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
6298
|
+
PoChartBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarComponent, selectors: [["", "po-chart-bar", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1h, decls: 2, vars: 2, consts: [[3, "class", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["po-chart-bar-path", "", 3, "p-color", "p-coordinates", "p-tooltip-position", "p-bar-click", "p-bar-hover"]], template: function PoChartBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6273
6299
|
i0.ɵɵnamespaceSVG();
|
|
6274
6300
|
i0.ɵɵelementStart(0, "g");
|
|
6275
6301
|
i0.ɵɵtemplate(1, PoChartBarComponent__svg_g_1_Template, 2, 6, "g", 0);
|
|
@@ -6283,7 +6309,7 @@ PoChartBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChart
|
|
|
6283
6309
|
args: [{ selector: '[po-chart-bar]', template: "<svg:g>\n <svg:g *ngFor=\"let item of seriesPathsCoordinates; let i = index; trackBy: trackBy\"\n [class]=\"'po-chart-bar-group-' + i\"\n >\n <!-- SERIES PATHS -->\n <svg:g po-chart-bar-path\n [attr.key]=\"'po-chart-bar-path-' + i\"\n [p-color]=\"item[0]?.color\" \n [p-coordinates]=\"item\"\n [p-tooltip-position]=\"tooltipPosition\"\n (p-bar-click)=\"onSerieBarClick($event)\"\n (p-bar-hover)=\"onSerieBarHover($event)\"\n >\n </svg:g>\n </svg:g>\n</svg:g>" }]
|
|
6284
6310
|
}], function () { return [{ type: PoChartMathsService }]; }, null); })();
|
|
6285
6311
|
|
|
6286
|
-
const _c0$
|
|
6312
|
+
const _c0$1g = ["po-chart-column", ""];
|
|
6287
6313
|
function PoChartColumnComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
6288
6314
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
6289
6315
|
i0.ɵɵnamespaceSVG();
|
|
@@ -6345,7 +6371,7 @@ class PoChartColumnComponent extends PoChartBarBaseComponent {
|
|
|
6345
6371
|
}
|
|
6346
6372
|
}
|
|
6347
6373
|
PoChartColumnComponent.ɵfac = function PoChartColumnComponent_Factory(t) { return new (t || PoChartColumnComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
6348
|
-
PoChartColumnComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartColumnComponent, selectors: [["", "po-chart-column", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
6374
|
+
PoChartColumnComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartColumnComponent, selectors: [["", "po-chart-column", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1g, decls: 2, vars: 2, consts: [[3, "class", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["po-chart-bar-path", "", 3, "p-color", "p-coordinates", "p-tooltip-position", "p-bar-click", "p-bar-hover"]], template: function PoChartColumnComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6349
6375
|
i0.ɵɵnamespaceSVG();
|
|
6350
6376
|
i0.ɵɵelementStart(0, "g");
|
|
6351
6377
|
i0.ɵɵtemplate(1, PoChartColumnComponent__svg_g_1_Template, 2, 6, "g", 0);
|
|
@@ -6804,7 +6830,7 @@ PoChartSvgContainerService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ toke
|
|
|
6804
6830
|
}]
|
|
6805
6831
|
}], function () { return []; }, null); })();
|
|
6806
6832
|
|
|
6807
|
-
const _c0$
|
|
6833
|
+
const _c0$1f = ["po-chart-line", ""];
|
|
6808
6834
|
function PoChartLineComponent__svg_g_2_Template(rf, ctx) { if (rf & 1) {
|
|
6809
6835
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
6810
6836
|
i0.ɵɵnamespaceSVG();
|
|
@@ -6852,7 +6878,7 @@ class PoChartLineComponent extends PoChartLineBaseComponent {
|
|
|
6852
6878
|
}
|
|
6853
6879
|
}
|
|
6854
6880
|
PoChartLineComponent.ɵfac = function PoChartLineComponent_Factory(t) { return new (t || PoChartLineComponent)(i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
6855
|
-
PoChartLineComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartLineComponent, selectors: [["", "po-chart-line", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
6881
|
+
PoChartLineComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartLineComponent, selectors: [["", "po-chart-line", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1f, decls: 3, vars: 2, consts: [["chartLine", ""], [3, "class", "mouseenter", "mouseleave", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "mouseenter", "mouseleave"], ["po-chart-path", "", 3, "p-chart-line", "p-animate", "p-color", "p-coordinates", "p-is-active"], ["po-chart-series-point", "", 3, "p-animate", "p-chart-line", "p-color", "p-coordinates", "p-is-active", "p-relative-to", "p-point-click", "p-point-hover"]], template: function PoChartLineComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6856
6882
|
i0.ɵɵnamespaceSVG();
|
|
6857
6883
|
i0.ɵɵelementStart(0, "g", null, 0);
|
|
6858
6884
|
i0.ɵɵtemplate(2, PoChartLineComponent__svg_g_2_Template, 3, 15, "g", 1);
|
|
@@ -6866,8 +6892,8 @@ PoChartLineComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChar
|
|
|
6866
6892
|
args: [{ selector: '[po-chart-line]', template: "<svg:g #chartLine>\n\n <svg:g *ngFor=\"let item of seriesPathsCoordinates; let i = index; trackBy: trackBy\"\n [class]=\"'po-chart-line-path-group-' + i\"\n (mouseenter)=\"onEnter(i)\"\n (mouseleave)=\"onLeave(i)\"\n >\n <!-- SERIES PATHS -->\n <svg:g po-chart-path\n [p-chart-line]=\"chartType === 'line'\"\n [attr.key]=\"'po-chart-line-path-' + i\"\n [p-animate]=\"animate\"\n [p-color]=\"item.color\" \n [p-coordinates]=\"item?.coordinates\"\n [p-is-active]=\"item.isActive\"\n >\n </svg:g>\n\n <!-- SERIES POINTS -->\n <svg:g po-chart-series-point\n [p-animate]=\"animate\"\n [p-chart-line]=\"chartType === 'line'\"\n [p-color]=\"item.color\"\n [p-coordinates]=\"seriesPointsCoordinates[i]\"\n [p-is-active]=\"activeTooltip\"\n [p-relative-to]=\"'po-chart-line-path-group-' + i\" \n [attr.key]=\"'po-chart-line-path-points-group-' + i\"\n (p-point-click)=\"onSeriePointClick($event)\"\n (p-point-hover)=\"onSeriePointHover($event)\"\n ></svg:g>\n </svg:g>\n\n</svg:g>" }]
|
|
6867
6893
|
}], function () { return [{ type: PoChartMathsService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, null); })();
|
|
6868
6894
|
|
|
6869
|
-
const _c0$
|
|
6870
|
-
const _c1$
|
|
6895
|
+
const _c0$1e = ["svgPaths"];
|
|
6896
|
+
const _c1$z = ["svgLabels"];
|
|
6871
6897
|
class PoChartCircularComponent {
|
|
6872
6898
|
constructor(ngZone, changeDetector) {
|
|
6873
6899
|
this.ngZone = ngZone;
|
|
@@ -6992,8 +7018,8 @@ class PoChartCircularComponent {
|
|
|
6992
7018
|
}
|
|
6993
7019
|
PoChartCircularComponent.ɵfac = function PoChartCircularComponent_Factory(t) { return new (t || PoChartCircularComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
6994
7020
|
PoChartCircularComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoChartCircularComponent, viewQuery: function PoChartCircularComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6995
|
-
i0.ɵɵviewQuery(_c0$
|
|
6996
|
-
i0.ɵɵviewQuery(_c1$
|
|
7021
|
+
i0.ɵɵviewQuery(_c0$1e, 5);
|
|
7022
|
+
i0.ɵɵviewQuery(_c1$z, 5);
|
|
6997
7023
|
} if (rf & 2) {
|
|
6998
7024
|
let _t;
|
|
6999
7025
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgPaths = _t);
|
|
@@ -7106,8 +7132,8 @@ PoChartTooltipDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoC
|
|
|
7106
7132
|
args: ['mousemove', ['$event']]
|
|
7107
7133
|
}] }); })();
|
|
7108
7134
|
|
|
7109
|
-
const _c0$
|
|
7110
|
-
const _c1$
|
|
7135
|
+
const _c0$1d = ["svgPath"];
|
|
7136
|
+
const _c1$y = ["po-chart-circular-path", ""];
|
|
7111
7137
|
class PoChartCircularPathComponent {
|
|
7112
7138
|
constructor(renderer) {
|
|
7113
7139
|
this.renderer = renderer;
|
|
@@ -7128,11 +7154,11 @@ class PoChartCircularPathComponent {
|
|
|
7128
7154
|
}
|
|
7129
7155
|
PoChartCircularPathComponent.ɵfac = function PoChartCircularPathComponent_Factory(t) { return new (t || PoChartCircularPathComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
7130
7156
|
PoChartCircularPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartCircularPathComponent, selectors: [["", "po-chart-circular-path", ""]], viewQuery: function PoChartCircularPathComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7131
|
-
i0.ɵɵviewQuery(_c0$
|
|
7157
|
+
i0.ɵɵviewQuery(_c0$1d, 5, ElementRef);
|
|
7132
7158
|
} if (rf & 2) {
|
|
7133
7159
|
let _t;
|
|
7134
7160
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgPath = _t.first);
|
|
7135
|
-
} }, inputs: { serie: ["p-serie", "serie"] }, outputs: { onClick: "p-on-click", onHover: "p-on-hover" }, attrs: _c1$
|
|
7161
|
+
} }, inputs: { serie: ["p-serie", "serie"] }, outputs: { onClick: "p-on-click", onHover: "p-on-hover" }, attrs: _c1$y, decls: 2, vars: 4, consts: [[1, "po-path-item", 3, "p-chart-tooltip", "click", "mouseenter"], ["svgPath", ""]], template: function PoChartCircularPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7136
7162
|
i0.ɵɵnamespaceSVG();
|
|
7137
7163
|
i0.ɵɵelementStart(0, "path", 0, 1);
|
|
7138
7164
|
i0.ɵɵlistener("click", function PoChartCircularPathComponent_Template__svg_path_click_0_listener() { return ctx.onMouseClick(); })("mouseenter", function PoChartCircularPathComponent_Template__svg_path_mouseenter_0_listener() { return ctx.onMouseEnter(); });
|
|
@@ -7159,8 +7185,8 @@ PoChartCircularPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
7159
7185
|
args: ['svgPath', { read: ElementRef }]
|
|
7160
7186
|
}] }); })();
|
|
7161
7187
|
|
|
7162
|
-
const _c0$
|
|
7163
|
-
const _c1$
|
|
7188
|
+
const _c0$1c = ["svgLabel"];
|
|
7189
|
+
const _c1$x = ["po-chart-circular-label", ""];
|
|
7164
7190
|
class PoChartCircularLabelComponent {
|
|
7165
7191
|
constructor(changeDetection, renderer) {
|
|
7166
7192
|
this.changeDetection = changeDetection;
|
|
@@ -7175,11 +7201,11 @@ class PoChartCircularLabelComponent {
|
|
|
7175
7201
|
}
|
|
7176
7202
|
PoChartCircularLabelComponent.ɵfac = function PoChartCircularLabelComponent_Factory(t) { return new (t || PoChartCircularLabelComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
7177
7203
|
PoChartCircularLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartCircularLabelComponent, selectors: [["", "po-chart-circular-label", ""]], viewQuery: function PoChartCircularLabelComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7178
|
-
i0.ɵɵviewQuery(_c0$
|
|
7204
|
+
i0.ɵɵviewQuery(_c0$1c, 5, ElementRef);
|
|
7179
7205
|
} if (rf & 2) {
|
|
7180
7206
|
let _t;
|
|
7181
7207
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgLabel = _t.first);
|
|
7182
|
-
} }, inputs: { serie: ["p-serie", "serie"], showLabel: ["p-show-label", "showLabel"] }, attrs: _c1$
|
|
7208
|
+
} }, inputs: { serie: ["p-serie", "serie"], showLabel: ["p-show-label", "showLabel"] }, attrs: _c1$x, decls: 3, vars: 6, consts: [["dominant-baseline", "middle", 1, "po-chart-label"], ["svgLabel", ""]], template: function PoChartCircularLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7183
7209
|
i0.ɵɵnamespaceSVG();
|
|
7184
7210
|
i0.ɵɵelementStart(0, "text", 0, 1);
|
|
7185
7211
|
i0.ɵɵtext(2);
|
|
@@ -7204,7 +7230,7 @@ PoChartCircularLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
7204
7230
|
args: ['svgLabel', { read: ElementRef }]
|
|
7205
7231
|
}] }); })();
|
|
7206
7232
|
|
|
7207
|
-
const _c0$
|
|
7233
|
+
const _c0$1b = ["po-chart-pie", ""];
|
|
7208
7234
|
function PoChartPieComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
7209
7235
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
7210
7236
|
i0.ɵɵnamespaceSVG();
|
|
@@ -7286,7 +7312,7 @@ class PoChartPieComponent extends PoChartCircularComponent {
|
|
|
7286
7312
|
}
|
|
7287
7313
|
}
|
|
7288
7314
|
PoChartPieComponent.ɵfac = function PoChartPieComponent_Factory(t) { return new (t || PoChartPieComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
7289
|
-
PoChartPieComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartPieComponent, selectors: [["", "po-chart-pie", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$
|
|
7315
|
+
PoChartPieComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartPieComponent, selectors: [["", "po-chart-pie", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$1b, decls: 3, vars: 2, consts: [[4, "ngFor", "ngForOf"], [4, "ngIf"], ["po-chart-circular-path", "", 3, "p-serie", "p-on-click", "p-on-hover"], ["svgPaths", ""], ["po-chart-circular-label", "", 3, "p-serie", "p-show-label"], ["svgLabels", ""]], template: function PoChartPieComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7290
7316
|
i0.ɵɵnamespaceSVG();
|
|
7291
7317
|
i0.ɵɵelementStart(0, "g");
|
|
7292
7318
|
i0.ɵɵtemplate(1, PoChartPieComponent__svg_g_1_Template, 3, 2, "g", 0);
|
|
@@ -7303,7 +7329,7 @@ PoChartPieComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChart
|
|
|
7303
7329
|
args: [{ selector: '[po-chart-pie]', template: "<svg:g>\n <!-- SERIES PATHS -->\n <svg:g *ngFor=\"let item of seriesList; let i = index\">\n <svg:g #svgPaths po-chart-circular-path\n [attr.key]=\"'po-chart-circular-path-' + i\"\n [p-serie]=\"item\"\n (p-on-click)=\"onSerieClick($event)\"\n (p-on-hover)=\"onSerieHover($event)\">\n </svg:g>\n </svg:g>\n\n <!-- SERIES LABELS -->\n <svg:g *ngIf=\"canDisplayLabels\">\n <svg:g *ngFor=\"let item of seriesLabels; let i = index\">\n <svg:g #svgLabels po-chart-circular-label\n [attr.key]=\"'po-chart-circular-label-' + i\"\n [p-serie]=\"item\"\n [p-show-label]=\"showLabels\">\n </svg:g>\n </svg:g>\n </svg:g>\n</svg:g>\n\n" }]
|
|
7304
7330
|
}], function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
7305
7331
|
|
|
7306
|
-
const _c0$
|
|
7332
|
+
const _c0$1a = ["po-chart-donut", ""];
|
|
7307
7333
|
function PoChartDonutComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
7308
7334
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
7309
7335
|
i0.ɵɵnamespaceSVG();
|
|
@@ -7440,7 +7466,7 @@ class PoChartDonutComponent extends PoChartCircularComponent {
|
|
|
7440
7466
|
}
|
|
7441
7467
|
}
|
|
7442
7468
|
PoChartDonutComponent.ɵfac = function PoChartDonutComponent_Factory(t) { return new (t || PoChartDonutComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
7443
|
-
PoChartDonutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartDonutComponent, selectors: [["", "po-chart-donut", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$
|
|
7469
|
+
PoChartDonutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartDonutComponent, selectors: [["", "po-chart-donut", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$1a, decls: 3, vars: 2, consts: [[4, "ngFor", "ngForOf"], [4, "ngIf"], ["po-chart-circular-path", "", 3, "p-serie", "p-on-click", "p-on-hover"], ["svgPaths", ""], ["po-chart-circular-label", "", 3, "p-serie", "p-show-label"], ["svgLabels", ""]], template: function PoChartDonutComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7444
7470
|
i0.ɵɵnamespaceSVG();
|
|
7445
7471
|
i0.ɵɵelementStart(0, "g");
|
|
7446
7472
|
i0.ɵɵtemplate(1, PoChartDonutComponent__svg_g_1_Template, 3, 2, "g", 0);
|
|
@@ -7457,7 +7483,7 @@ PoChartDonutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCha
|
|
|
7457
7483
|
args: [{ selector: '[po-chart-donut]', template: "<svg:g>\n <!-- SERIES PATHS -->\n <svg:g *ngFor=\"let item of seriesList; let i = index\">\n <svg:g #svgPaths po-chart-circular-path\n [attr.key]=\"'po-chart-circular-path-' + i\"\n [p-serie]=\"item\"\n (p-on-click)=\"onSerieClick($event)\"\n (p-on-hover)=\"onSerieHover($event)\">\n </svg:g>\n </svg:g>\n\n <!-- SERIES LABELS -->\n <svg:g *ngIf=\"canDisplayLabels\">\n <svg:g *ngFor=\"let item of seriesLabels; let i = index\">\n <svg:g #svgLabels po-chart-circular-label\n [attr.key]=\"'po-chart-circular-label-' + i\"\n [p-serie]=\"item\"\n [p-show-label]=\"showLabels\">\n </svg:g>\n </svg:g>\n </svg:g>\n</svg:g>\n\n" }]
|
|
7458
7484
|
}], function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
7459
7485
|
|
|
7460
|
-
const _c0$
|
|
7486
|
+
const _c0$19 = ["svgELement"];
|
|
7461
7487
|
function PoChartContainerComponent__svg_g_2_Template(rf, ctx) { if (rf & 1) {
|
|
7462
7488
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
7463
7489
|
i0.ɵɵnamespaceSVG();
|
|
@@ -7627,7 +7653,7 @@ class PoChartContainerComponent {
|
|
|
7627
7653
|
}
|
|
7628
7654
|
PoChartContainerComponent.ɵfac = function PoChartContainerComponent_Factory(t) { return new (t || PoChartContainerComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
7629
7655
|
PoChartContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartContainerComponent, selectors: [["po-chart-container"]], viewQuery: function PoChartContainerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7630
|
-
i0.ɵɵviewQuery(_c0$
|
|
7656
|
+
i0.ɵɵviewQuery(_c0$19, 7);
|
|
7631
7657
|
} if (rf & 2) {
|
|
7632
7658
|
let _t;
|
|
7633
7659
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgELement = _t.first);
|
|
@@ -7771,10 +7797,10 @@ PoResizeObserverDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: P
|
|
|
7771
7797
|
args: ['p-resize-observer']
|
|
7772
7798
|
}] }); })();
|
|
7773
7799
|
|
|
7774
|
-
const _c0$
|
|
7775
|
-
const _c1$
|
|
7776
|
-
const _c2$
|
|
7777
|
-
const _c3$
|
|
7800
|
+
const _c0$18 = ["chartContainer"];
|
|
7801
|
+
const _c1$w = ["chartHeader"];
|
|
7802
|
+
const _c2$f = ["chartLegend"];
|
|
7803
|
+
const _c3$8 = ["chartWrapper"];
|
|
7778
7804
|
function PoChartComponent_ng_template_7_Template(rf, ctx) { }
|
|
7779
7805
|
function PoChartComponent_div_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
7780
7806
|
i0.ɵɵelementContainer(0);
|
|
@@ -7956,10 +7982,10 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
7956
7982
|
}
|
|
7957
7983
|
PoChartComponent.ɵfac = function PoChartComponent_Factory(t) { return new (t || PoChartComponent)(i0.ɵɵdirectiveInject(PoColorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoChartSvgContainerService), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
7958
7984
|
PoChartComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartComponent, selectors: [["po-chart"]], viewQuery: function PoChartComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7959
|
-
i0.ɵɵviewQuery(_c0$
|
|
7960
|
-
i0.ɵɵviewQuery(_c1$
|
|
7961
|
-
i0.ɵɵviewQuery(_c2$
|
|
7962
|
-
i0.ɵɵviewQuery(_c3$
|
|
7985
|
+
i0.ɵɵviewQuery(_c0$18, 7, ViewContainerRef);
|
|
7986
|
+
i0.ɵɵviewQuery(_c1$w, 7);
|
|
7987
|
+
i0.ɵɵviewQuery(_c2$f, 5, ElementRef);
|
|
7988
|
+
i0.ɵɵviewQuery(_c3$8, 7);
|
|
7963
7989
|
} if (rf & 2) {
|
|
7964
7990
|
let _t;
|
|
7965
7991
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartContainer = _t.first);
|
|
@@ -8161,7 +8187,7 @@ PoContainerBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Po
|
|
|
8161
8187
|
args: ['p-no-shadow']
|
|
8162
8188
|
}] }); })();
|
|
8163
8189
|
|
|
8164
|
-
const _c0$
|
|
8190
|
+
const _c0$17 = ["*"];
|
|
8165
8191
|
/**
|
|
8166
8192
|
* @docsExtends PoContainerBaseComponent
|
|
8167
8193
|
*
|
|
@@ -8186,7 +8212,7 @@ const _c0$16 = ["*"];
|
|
|
8186
8212
|
class PoContainerComponent extends PoContainerBaseComponent {
|
|
8187
8213
|
}
|
|
8188
8214
|
PoContainerComponent.ɵfac = /*@__PURE__*/ function () { let ɵPoContainerComponent_BaseFactory; return function PoContainerComponent_Factory(t) { return (ɵPoContainerComponent_BaseFactory || (ɵPoContainerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoContainerComponent)))(t || PoContainerComponent); }; }();
|
|
8189
|
-
PoContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoContainerComponent, selectors: [["po-container"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$
|
|
8215
|
+
PoContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoContainerComponent, selectors: [["po-container"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$17, decls: 2, vars: 8, consts: [[1, "po-container"]], template: function PoContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8190
8216
|
i0.ɵɵprojectionDef();
|
|
8191
8217
|
i0.ɵɵelementStart(0, "div", 0);
|
|
8192
8218
|
i0.ɵɵprojection(1);
|
|
@@ -8987,7 +9013,7 @@ PoPopupBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPopu
|
|
|
8987
9013
|
args: ['p-target']
|
|
8988
9014
|
}] }); })();
|
|
8989
9015
|
|
|
8990
|
-
const _c0$
|
|
9016
|
+
const _c0$16 = ["popupRef"];
|
|
8991
9017
|
function PoPopupComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
8992
9018
|
i0.ɵɵelement(0, "div");
|
|
8993
9019
|
} if (rf & 2) {
|
|
@@ -9042,8 +9068,8 @@ function PoPopupComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9042
9068
|
i0.ɵɵadvance(3);
|
|
9043
9069
|
i0.ɵɵproperty("ngForOf", ctx_r0.actions);
|
|
9044
9070
|
} }
|
|
9045
|
-
const _c1$
|
|
9046
|
-
const _c2$
|
|
9071
|
+
const _c1$v = [[["", "p-popup-header-template", ""]]];
|
|
9072
|
+
const _c2$e = ["[p-popup-header-template]"];
|
|
9047
9073
|
/**
|
|
9048
9074
|
*
|
|
9049
9075
|
* @docsExtends PoPopupBaseComponent
|
|
@@ -9192,12 +9218,12 @@ class PoPopupComponent extends PoPopupBaseComponent {
|
|
|
9192
9218
|
}
|
|
9193
9219
|
PoPopupComponent.ɵfac = function PoPopupComponent_Factory(t) { return new (t || PoPopupComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
9194
9220
|
PoPopupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopupComponent, selectors: [["po-popup"]], viewQuery: function PoPopupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9195
|
-
i0.ɵɵviewQuery(_c0$
|
|
9221
|
+
i0.ɵɵviewQuery(_c0$16, 5, ElementRef);
|
|
9196
9222
|
} if (rf & 2) {
|
|
9197
9223
|
let _t;
|
|
9198
9224
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popupRef = _t.first);
|
|
9199
|
-
} }, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$
|
|
9200
|
-
i0.ɵɵprojectionDef(_c1$
|
|
9225
|
+
} }, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$e, decls: 1, vars: 1, consts: [["class", "po-popup", 4, "ngIf"], [1, "po-popup"], ["popupRef", ""], [3, "class", 4, "ngIf"], [1, "po-popup-container"], [4, "ngFor", "ngForOf"], [3, "po-popup-item-default", "po-popup-item-danger", "po-popup-item-disabled", "po-popup-item-separator", "po-popup-item-selected", "click", 4, "ngIf"], [3, "click"], ["class", "po-popup-icon-item po-icon", 3, "p-icon", 4, "ngIf"], [1, "po-popup-icon-item", "po-icon", 3, "p-icon"]], template: function PoPopupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9226
|
+
i0.ɵɵprojectionDef(_c1$v);
|
|
9201
9227
|
i0.ɵɵtemplate(0, PoPopupComponent_div_0_Template, 6, 2, "div", 0);
|
|
9202
9228
|
} if (rf & 2) {
|
|
9203
9229
|
i0.ɵɵproperty("ngIf", ctx.showPopup);
|
|
@@ -9307,10 +9333,10 @@ PoDropdownBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoD
|
|
|
9307
9333
|
args: ['p-disabled']
|
|
9308
9334
|
}] }); })();
|
|
9309
9335
|
|
|
9310
|
-
const _c0$
|
|
9311
|
-
const _c1$
|
|
9312
|
-
const _c2$
|
|
9313
|
-
const _c3$
|
|
9336
|
+
const _c0$15 = ["dropdownRef"];
|
|
9337
|
+
const _c1$u = ["popupRef"];
|
|
9338
|
+
const _c2$d = function (a0) { return { "po-dropdown-button-disabled": a0 }; };
|
|
9339
|
+
const _c3$7 = function () { return ["bottom-left", "top-left"]; };
|
|
9314
9340
|
/**
|
|
9315
9341
|
* @docsExtends PoDropdownBaseComponent
|
|
9316
9342
|
*
|
|
@@ -9393,8 +9419,8 @@ class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
9393
9419
|
}
|
|
9394
9420
|
PoDropdownComponent.ɵfac = function PoDropdownComponent_Factory(t) { return new (t || PoDropdownComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
9395
9421
|
PoDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDropdownComponent, selectors: [["po-dropdown"]], viewQuery: function PoDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9396
|
-
i0.ɵɵviewQuery(_c0$
|
|
9397
|
-
i0.ɵɵviewQuery(_c1$
|
|
9422
|
+
i0.ɵɵviewQuery(_c0$15, 7, ElementRef);
|
|
9423
|
+
i0.ɵɵviewQuery(_c1$u, 5);
|
|
9398
9424
|
} if (rf & 2) {
|
|
9399
9425
|
let _t;
|
|
9400
9426
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownRef = _t.first);
|
|
@@ -9412,13 +9438,13 @@ PoDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDropd
|
|
|
9412
9438
|
const _r0 = i0.ɵɵreference(1);
|
|
9413
9439
|
i0.ɵɵpropertyInterpolate("tabindex", ctx.disabled ? -1 : 0);
|
|
9414
9440
|
i0.ɵɵadvance(2);
|
|
9415
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$
|
|
9441
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$d, ctx.disabled));
|
|
9416
9442
|
i0.ɵɵadvance(1);
|
|
9417
9443
|
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
9418
9444
|
i0.ɵɵadvance(1);
|
|
9419
9445
|
i0.ɵɵclassMapInterpolate1("po-dropdown-icon po-icon ", ctx.icon, "");
|
|
9420
9446
|
i0.ɵɵadvance(1);
|
|
9421
|
-
i0.ɵɵproperty("p-actions", ctx.actions)("p-custom-positions", i0.ɵɵpureFunction0(11, _c3$
|
|
9447
|
+
i0.ɵɵproperty("p-actions", ctx.actions)("p-custom-positions", i0.ɵɵpureFunction0(11, _c3$7))("p-target", _r0);
|
|
9422
9448
|
} }, dependencies: [i1.NgClass, PoPopupComponent], encapsulation: 2 });
|
|
9423
9449
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDropdownComponent, [{
|
|
9424
9450
|
type: Component,
|
|
@@ -9527,7 +9553,7 @@ function PoFieldContainerComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
9527
9553
|
i0.ɵɵadvance(1);
|
|
9528
9554
|
i0.ɵɵtextInterpolate(ctx_r1.help);
|
|
9529
9555
|
} }
|
|
9530
|
-
const _c0$
|
|
9556
|
+
const _c0$14 = ["*"];
|
|
9531
9557
|
/**
|
|
9532
9558
|
* @docsPrivate
|
|
9533
9559
|
*
|
|
@@ -9550,7 +9576,7 @@ class PoFieldContainerComponent {
|
|
|
9550
9576
|
}
|
|
9551
9577
|
}
|
|
9552
9578
|
PoFieldContainerComponent.ɵfac = function PoFieldContainerComponent_Factory(t) { return new (t || PoFieldContainerComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
9553
|
-
PoFieldContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoFieldContainerComponent, selectors: [["po-field-container"]], inputs: { label: ["p-label", "label"], help: ["p-help", "help"], optional: ["p-optional", "optional"] }, ngContentSelectors: _c0$
|
|
9579
|
+
PoFieldContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoFieldContainerComponent, selectors: [["po-field-container"]], inputs: { label: ["p-label", "label"], help: ["p-help", "help"], optional: ["p-optional", "optional"] }, ngContentSelectors: _c0$14, decls: 7, vars: 3, consts: [[1, "po-field-container"], [1, "po-field-container-title"], [1, "po-field-title"], ["class", "po-field-optional", 4, "ngIf"], ["class", "po-field-help", 4, "ngIf"], [1, "po-field-optional"], [1, "po-field-help"]], template: function PoFieldContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9554
9580
|
i0.ɵɵprojectionDef();
|
|
9555
9581
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "span", 2);
|
|
9556
9582
|
i0.ɵɵtext(3);
|
|
@@ -10111,7 +10137,7 @@ __decorate([
|
|
|
10111
10137
|
args: ['p-disabled']
|
|
10112
10138
|
}] }); })();
|
|
10113
10139
|
|
|
10114
|
-
const _c0$
|
|
10140
|
+
const _c0$13 = ["checkboxLabel"];
|
|
10115
10141
|
function PoCheckboxComponent_label_3_Template(rf, ctx) { if (rf & 1) {
|
|
10116
10142
|
i0.ɵɵelementStart(0, "label", 4, 5);
|
|
10117
10143
|
i0.ɵɵtext(2);
|
|
@@ -10197,7 +10223,7 @@ class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
|
10197
10223
|
}
|
|
10198
10224
|
PoCheckboxComponent.ɵfac = function PoCheckboxComponent_Factory(t) { return new (t || PoCheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10199
10225
|
PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxComponent, selectors: [["po-checkbox"]], viewQuery: function PoCheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10200
|
-
i0.ɵɵviewQuery(_c0$
|
|
10226
|
+
i0.ɵɵviewQuery(_c0$13, 7);
|
|
10201
10227
|
} if (rf & 2) {
|
|
10202
10228
|
let _t;
|
|
10203
10229
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabel = _t.first);
|
|
@@ -10239,7 +10265,7 @@ PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheck
|
|
|
10239
10265
|
args: ['checkboxLabel', { static: true }]
|
|
10240
10266
|
}] }); })();
|
|
10241
10267
|
|
|
10242
|
-
const _c0$
|
|
10268
|
+
const _c0$12 = ["checkboxLabel"];
|
|
10243
10269
|
function PoCheckboxGroupComponent_li_3_Template(rf, ctx) { if (rf & 1) {
|
|
10244
10270
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
10245
10271
|
i0.ɵɵelementStart(0, "li")(1, "po-checkbox", 4, 5);
|
|
@@ -10324,7 +10350,7 @@ class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent {
|
|
|
10324
10350
|
}
|
|
10325
10351
|
PoCheckboxGroupComponent.ɵfac = function PoCheckboxGroupComponent_Factory(t) { return new (t || PoCheckboxGroupComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10326
10352
|
PoCheckboxGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxGroupComponent, selectors: [["po-checkbox-group"]], viewQuery: function PoCheckboxGroupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10327
|
-
i0.ɵɵviewQuery(_c0$
|
|
10353
|
+
i0.ɵɵviewQuery(_c0$12, 5);
|
|
10328
10354
|
} if (rf & 2) {
|
|
10329
10355
|
let _t;
|
|
10330
10356
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabels = _t);
|
|
@@ -11409,10 +11435,10 @@ __decorate([
|
|
|
11409
11435
|
args: ['p-locale']
|
|
11410
11436
|
}] }); })();
|
|
11411
11437
|
|
|
11412
|
-
const _c0$
|
|
11413
|
-
const _c1$
|
|
11414
|
-
const _c2$
|
|
11415
|
-
const _c3$
|
|
11438
|
+
const _c0$11 = ["calendar"];
|
|
11439
|
+
const _c1$t = ["dialogPicker"];
|
|
11440
|
+
const _c2$c = ["iconDatepicker"];
|
|
11441
|
+
const _c3$6 = ["inp"];
|
|
11416
11442
|
function PoDatepickerComponent_po_clean_5_Template(rf, ctx) { if (rf & 1) {
|
|
11417
11443
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
11418
11444
|
i0.ɵɵelementStart(0, "po-clean", 13);
|
|
@@ -11729,10 +11755,10 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
11729
11755
|
}
|
|
11730
11756
|
PoDatepickerComponent.ɵfac = function PoDatepickerComponent_Factory(t) { return new (t || PoDatepickerComponent)(i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
11731
11757
|
PoDatepickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerComponent, selectors: [["po-datepicker"]], viewQuery: function PoDatepickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11732
|
-
i0.ɵɵviewQuery(_c0$
|
|
11733
|
-
i0.ɵɵviewQuery(_c1$
|
|
11734
|
-
i0.ɵɵviewQuery(_c2$
|
|
11735
|
-
i0.ɵɵviewQuery(_c3$
|
|
11758
|
+
i0.ɵɵviewQuery(_c0$11, 7);
|
|
11759
|
+
i0.ɵɵviewQuery(_c1$t, 7, ElementRef);
|
|
11760
|
+
i0.ɵɵviewQuery(_c2$c, 7, ElementRef);
|
|
11761
|
+
i0.ɵɵviewQuery(_c3$6, 7, ElementRef);
|
|
11736
11762
|
} if (rf & 2) {
|
|
11737
11763
|
let _t;
|
|
11738
11764
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendar = _t.first);
|
|
@@ -11753,7 +11779,7 @@ PoDatepickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDat
|
|
|
11753
11779
|
multi: true
|
|
11754
11780
|
},
|
|
11755
11781
|
PoControlPositionService
|
|
11756
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 14, vars:
|
|
11782
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 26, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], ["type", "text", 1, "po-input", "po-datepicker", 3, "ngClass", "autocomplete", "disabled", "placeholder", "readonly", "required", "blur", "click"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], [1, "po-icon", "po-field-icon", "po-icon-calendar", "po-icon-input", 3, "click"], ["iconDatepicker", ""], ["dialogPicker", ""], ["class", "po-datepicker-calendar-overlay", 4, "ngIf"], [3, "ngModel", "p-max-date", "p-min-date", "p-locale", "ngModelChange", "p-change"], ["calendar", ""], [3, "p-error-pattern"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"], [1, "po-datepicker-calendar-overlay"]], template: function PoDatepickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11757
11783
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "input", 2, 3);
|
|
11758
11784
|
i0.ɵɵlistener("blur", function PoDatepickerComponent_Template_input_blur_2_listener($event) { return ctx.eventOnBlur($event); })("click", function PoDatepickerComponent_Template_input_click_2_listener($event) { return ctx.eventOnClick($event); });
|
|
11759
11785
|
i0.ɵɵelementEnd();
|
|
@@ -11773,8 +11799,8 @@ PoDatepickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDat
|
|
|
11773
11799
|
const _r0 = i0.ɵɵreference(3);
|
|
11774
11800
|
i0.ɵɵproperty("p-help", ctx.help)("p-label", ctx.label)("p-optional", !ctx.required && ctx.optional);
|
|
11775
11801
|
i0.ɵɵadvance(2);
|
|
11776
|
-
i0.ɵɵproperty("ngClass", ctx.clean && _r0.value ? "po-input-double-icon-right" : "po-input-icon-right")("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required);
|
|
11777
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
11802
|
+
i0.ɵɵproperty("ngClass", ctx.clean && _r0.value ? "po-input-double-icon-right" : "po-input-icon-right")("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required);
|
|
11803
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
11778
11804
|
i0.ɵɵadvance(3);
|
|
11779
11805
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
11780
11806
|
i0.ɵɵadvance(1);
|
|
@@ -11803,7 +11829,7 @@ PoDatepickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDat
|
|
|
11803
11829
|
multi: true
|
|
11804
11830
|
},
|
|
11805
11831
|
PoControlPositionService
|
|
11806
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <input\n #inp\n class=\"po-input po-datepicker\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n type=\"text\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean
|
|
11832
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <input\n #inp\n class=\"po-input po-datepicker\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n type=\"text\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear()\"\n >\n </po-clean>\n\n <span\n #iconDatepicker\n class=\"po-icon po-field-icon po-icon-calendar po-icon-input\"\n [class.po-field-icon]=\"!disabled && !readonly\"\n [class.po-field-icon-disabled]=\"disabled || readonly\"\n (click)=\"togglePicker()\"\n >\n </span>\n </div>\n </div>\n\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\">\n <div *ngIf=\"verifyMobile()\" class=\"po-datepicker-calendar-overlay\"></div>\n <po-calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n #calendar\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n >\n </po-calendar>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPattern()\"></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
11807
11833
|
}], function () { return [{ type: PoControlPositionService }, { type: PoLanguageService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { calendar: [{
|
|
11808
11834
|
type: ViewChild,
|
|
11809
11835
|
args: ['calendar', { static: true }]
|
|
@@ -11993,7 +12019,7 @@ PoModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModa
|
|
|
11993
12019
|
args: ['p-hide-close']
|
|
11994
12020
|
}] }); })();
|
|
11995
12021
|
|
|
11996
|
-
const _c0
|
|
12022
|
+
const _c0$10 = ["*"];
|
|
11997
12023
|
/**
|
|
11998
12024
|
* @description
|
|
11999
12025
|
*
|
|
@@ -12027,7 +12053,7 @@ class PoModalFooterComponent {
|
|
|
12027
12053
|
}
|
|
12028
12054
|
}
|
|
12029
12055
|
PoModalFooterComponent.ɵfac = function PoModalFooterComponent_Factory(t) { return new (t || PoModalFooterComponent)(); };
|
|
12030
|
-
PoModalFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalFooterComponent, selectors: [["po-modal-footer"]], inputs: { disabledAlign: ["p-disabled-align", "disabledAlign"] }, ngContentSelectors: _c0
|
|
12056
|
+
PoModalFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalFooterComponent, selectors: [["po-modal-footer"]], inputs: { disabledAlign: ["p-disabled-align", "disabledAlign"] }, ngContentSelectors: _c0$10, decls: 2, vars: 2, consts: [[1, "po-modal-footer"]], template: function PoModalFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12031
12057
|
i0.ɵɵprojectionDef();
|
|
12032
12058
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12033
12059
|
i0.ɵɵprojection(1);
|
|
@@ -12057,7 +12083,7 @@ PoActiveOverlayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: P
|
|
|
12057
12083
|
}]
|
|
12058
12084
|
}], null, null); })();
|
|
12059
12085
|
|
|
12060
|
-
const _c0
|
|
12086
|
+
const _c0$$ = ["modalContent"];
|
|
12061
12087
|
function PoModalComponent_div_0_a_9_Template(rf, ctx) { if (rf & 1) {
|
|
12062
12088
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
12063
12089
|
i0.ɵɵelementStart(0, "a", 13);
|
|
@@ -12122,8 +12148,8 @@ function PoModalComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12122
12148
|
i0.ɵɵadvance(3);
|
|
12123
12149
|
i0.ɵɵproperty("ngIf", ctx_r0.modalFooter)("ngIfElse", _r4);
|
|
12124
12150
|
} }
|
|
12125
|
-
const _c1$
|
|
12126
|
-
const _c2$
|
|
12151
|
+
const _c1$s = ["*", [["po-modal-footer"]]];
|
|
12152
|
+
const _c2$b = ["*", "po-modal-footer"];
|
|
12127
12153
|
/**
|
|
12128
12154
|
* @docsExtends PoModalBaseComponent
|
|
12129
12155
|
*
|
|
@@ -12221,12 +12247,12 @@ PoModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalCom
|
|
|
12221
12247
|
let _t;
|
|
12222
12248
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalFooter = _t.first);
|
|
12223
12249
|
} }, viewQuery: function PoModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12224
|
-
i0.ɵɵviewQuery(_c0
|
|
12250
|
+
i0.ɵɵviewQuery(_c0$$, 5, ElementRef);
|
|
12225
12251
|
} if (rf & 2) {
|
|
12226
12252
|
let _t;
|
|
12227
12253
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContent = _t.first);
|
|
12228
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$
|
|
12229
|
-
i0.ɵɵprojectionDef(_c1$
|
|
12254
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$b, decls: 1, vars: 1, consts: [["class", "po-modal", "tabindex", "0", 3, "keydown.esc", 4, "ngIf"], ["tabindex", "0", 1, "po-modal", 3, "keydown.esc"], [1, "po-modal-overlay"], [1, "po-modal-container", "po-pb-2", "po-pt-2", 3, "mousedown"], [1, "po-modal-vertical-align"], ["tabindex", "-1"], ["modalContent", ""], [1, "po-modal-header"], [1, "po-modal-title", "po-text-ellipsis"], ["class", "po-modal-header-close-button", "tabindex", "0", 3, "click", 4, "ngIf"], [1, "po-modal-body"], [4, "ngIf", "ngIfElse"], ["defaultModalFooterTemplate", ""], ["tabindex", "0", 1, "po-modal-header-close-button", 3, "click"], [1, "po-icon", "po-icon-close"], ["p-kind", "secondary", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click", 4, "ngIf"], ["p-kind", "primary", 1, "po-button-modal-first-action", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click"], ["p-kind", "secondary", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click"]], template: function PoModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12255
|
+
i0.ɵɵprojectionDef(_c1$s);
|
|
12230
12256
|
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template, 15, 7, "div", 0);
|
|
12231
12257
|
} if (rf & 2) {
|
|
12232
12258
|
i0.ɵɵproperty("ngIf", !ctx.isHidden);
|
|
@@ -13031,8 +13057,8 @@ var PoToasterType;
|
|
|
13031
13057
|
PoToasterType[PoToasterType["Warning"] = 3] = "Warning";
|
|
13032
13058
|
})(PoToasterType || (PoToasterType = {}));
|
|
13033
13059
|
|
|
13034
|
-
const _c0$
|
|
13035
|
-
const _c1$
|
|
13060
|
+
const _c0$_ = ["toaster"];
|
|
13061
|
+
const _c1$r = ["buttonClose"];
|
|
13036
13062
|
function PoToasterComponent_po_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
13037
13063
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
13038
13064
|
i0.ɵɵelementStart(0, "po-button", 11);
|
|
@@ -13167,8 +13193,8 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
13167
13193
|
}
|
|
13168
13194
|
PoToasterComponent.ɵfac = function PoToasterComponent_Factory(t) { return new (t || PoToasterComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
13169
13195
|
PoToasterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoToasterComponent, selectors: [["po-toaster"]], viewQuery: function PoToasterComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13170
|
-
i0.ɵɵviewQuery(_c0$
|
|
13171
|
-
i0.ɵɵviewQuery(_c1$
|
|
13196
|
+
i0.ɵɵviewQuery(_c0$_, 5);
|
|
13197
|
+
i0.ɵɵviewQuery(_c1$r, 5);
|
|
13172
13198
|
} if (rf & 2) {
|
|
13173
13199
|
let _t;
|
|
13174
13200
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toaster = _t.first);
|
|
@@ -13409,7 +13435,7 @@ PoPopoverBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPo
|
|
|
13409
13435
|
args: ['p-trigger']
|
|
13410
13436
|
}] }); })();
|
|
13411
13437
|
|
|
13412
|
-
const _c0$
|
|
13438
|
+
const _c0$Z = ["popoverElement"];
|
|
13413
13439
|
function PoPopoverComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
13414
13440
|
i0.ɵɵelement(0, "div");
|
|
13415
13441
|
} if (rf & 2) {
|
|
@@ -13425,7 +13451,7 @@ function PoPopoverComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13425
13451
|
i0.ɵɵadvance(1);
|
|
13426
13452
|
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
13427
13453
|
} }
|
|
13428
|
-
const _c1$
|
|
13454
|
+
const _c1$q = ["*"];
|
|
13429
13455
|
/**
|
|
13430
13456
|
*
|
|
13431
13457
|
* @docsExtends PoPopoverBaseComponent
|
|
@@ -13548,11 +13574,11 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
13548
13574
|
}
|
|
13549
13575
|
PoPopoverComponent.ɵfac = function PoPopoverComponent_Factory(t) { return new (t || PoPopoverComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoControlPositionService)); };
|
|
13550
13576
|
PoPopoverComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopoverComponent, selectors: [["po-popover"]], viewQuery: function PoPopoverComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13551
|
-
i0.ɵɵviewQuery(_c0$
|
|
13577
|
+
i0.ɵɵviewQuery(_c0$Z, 7, ElementRef);
|
|
13552
13578
|
} if (rf & 2) {
|
|
13553
13579
|
let _t;
|
|
13554
13580
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverElement = _t.first);
|
|
13555
|
-
} }, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1$
|
|
13581
|
+
} }, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1$q, decls: 6, vars: 3, consts: [[1, "po-popover", 3, "hidden"], ["popoverElement", ""], [3, "class", 4, "ngIf"], [1, "po-popover-content"], ["class", "po-popover-title", 4, "ngIf"], [1, "po-popover-title"]], template: function PoPopoverComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13556
13582
|
i0.ɵɵprojectionDef();
|
|
13557
13583
|
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
13558
13584
|
i0.ɵɵtemplate(2, PoPopoverComponent_div_2_Template, 1, 3, "div", 2);
|
|
@@ -13672,7 +13698,7 @@ PoTimeModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
|
13672
13698
|
}], null, null); })();
|
|
13673
13699
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoTimeModule, { declarations: [PoTimePipe], exports: [PoTimePipe] }); })();
|
|
13674
13700
|
|
|
13675
|
-
const _c0$
|
|
13701
|
+
const _c0$Y = function (a0, a1) { return { "po-clickable": a0, "po-table-icon-disabled": a1 }; };
|
|
13676
13702
|
/**
|
|
13677
13703
|
* @docsPrivate
|
|
13678
13704
|
*
|
|
@@ -13709,7 +13735,7 @@ PoTableIconComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTabl
|
|
|
13709
13735
|
i0.ɵɵelementEnd();
|
|
13710
13736
|
} if (rf & 2) {
|
|
13711
13737
|
i0.ɵɵclassMapInterpolate1("po-table-icon-content ", ctx.disabled ? "" : ctx.color, "");
|
|
13712
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(6, _c0$
|
|
13738
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(6, _c0$Y, ctx.clickable, ctx.disabled))("p-icon", ctx.icon)("p-tooltip", ctx.tooltip);
|
|
13713
13739
|
} }, dependencies: [i1.NgClass, PoTooltipDirective, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
13714
13740
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableIconComponent, [{
|
|
13715
13741
|
type: Component,
|
|
@@ -13962,40 +13988,122 @@ PoTableColumnLinkComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13962
13988
|
args: ['p-value']
|
|
13963
13989
|
}] }); })();
|
|
13964
13990
|
|
|
13965
|
-
function
|
|
13966
|
-
const
|
|
13967
|
-
i0.ɵɵelementStart(0, "
|
|
13968
|
-
i0.ɵɵlistener("click", function
|
|
13991
|
+
function PoTableListManagerComponent_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
13992
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
13993
|
+
i0.ɵɵelementStart(0, "li", 1)(1, "div", 2)(2, "po-checkbox", 3, 4);
|
|
13994
|
+
i0.ɵɵlistener("click", function PoTableListManagerComponent_li_0_Template_po_checkbox_click_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const option_r1 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.checkOption(option_r1)); })("keydown", function PoTableListManagerComponent_li_0_Template_po_checkbox_keydown_2_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r4); const option_r1 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onKeyDown($event, option_r1)); });
|
|
13969
13995
|
i0.ɵɵelementEnd();
|
|
13970
|
-
i0.ɵɵelementStart(
|
|
13971
|
-
i0.ɵɵlistener("click", function
|
|
13972
|
-
i0.ɵɵelementEnd()
|
|
13996
|
+
i0.ɵɵelementStart(4, "div", 5)(5, "po-button", 6);
|
|
13997
|
+
i0.ɵɵlistener("click", function PoTableListManagerComponent_li_0_Template_po_button_click_5_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r4); const option_r1 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); ctx_r6.emitChangePosition(option_r1, "up"); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
13998
|
+
i0.ɵɵelementEnd();
|
|
13999
|
+
i0.ɵɵelementStart(6, "po-button", 7);
|
|
14000
|
+
i0.ɵɵlistener("click", function PoTableListManagerComponent_li_0_Template_po_button_click_6_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r4); const option_r1 = restoredCtx.$implicit; const ctx_r7 = i0.ɵɵnextContext(); ctx_r7.emitChangePosition(option_r1, "down"); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
14001
|
+
i0.ɵɵelementEnd()()()();
|
|
13973
14002
|
} if (rf & 2) {
|
|
13974
|
-
const
|
|
13975
|
-
const
|
|
14003
|
+
const option_r1 = ctx.$implicit;
|
|
14004
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
14005
|
+
i0.ɵɵclassProp("po-checkbox-group-item-disabled", option_r1.disabled || ctx_r0.disabled);
|
|
13976
14006
|
i0.ɵɵadvance(2);
|
|
13977
|
-
i0.ɵɵproperty("p-
|
|
14007
|
+
i0.ɵɵproperty("p-label", option_r1.label)("p-disabled", option_r1.disabled || ctx_r0.disabled)("p-checkboxValue", ctx_r0.checkedOptions[option_r1.value] === null ? "mixed" : ctx_r0.checkedOptions[option_r1.value])("p-required", ctx_r0.required);
|
|
14008
|
+
i0.ɵɵadvance(3);
|
|
14009
|
+
i0.ɵɵproperty("p-tooltip", ctx_r0.literals.up)("p-disabled", ctx_r0.verifyArrowDisabled(option_r1, "up"));
|
|
13978
14010
|
i0.ɵɵadvance(1);
|
|
13979
|
-
i0.ɵɵproperty("p-tooltip",
|
|
14011
|
+
i0.ɵɵproperty("p-tooltip", ctx_r0.literals.down)("p-disabled", ctx_r0.verifyArrowDisabled(option_r1, "down"));
|
|
13980
14012
|
} }
|
|
14013
|
+
const poTableListManagerLiterals = {
|
|
14014
|
+
en: {
|
|
14015
|
+
up: 'up',
|
|
14016
|
+
down: 'down'
|
|
14017
|
+
},
|
|
14018
|
+
es: {
|
|
14019
|
+
up: 'arriba',
|
|
14020
|
+
down: 'abajo'
|
|
14021
|
+
},
|
|
14022
|
+
pt: {
|
|
14023
|
+
up: 'acima',
|
|
14024
|
+
down: 'abaixo'
|
|
14025
|
+
},
|
|
14026
|
+
ru: {
|
|
14027
|
+
up: 'вверх',
|
|
14028
|
+
down: 'вниз'
|
|
14029
|
+
}
|
|
14030
|
+
};
|
|
14031
|
+
class PoTableListManagerComponent extends PoCheckboxGroupComponent {
|
|
14032
|
+
constructor(languageService, changeDetector) {
|
|
14033
|
+
super(changeDetector);
|
|
14034
|
+
this.changePosition = new EventEmitter();
|
|
14035
|
+
const language = languageService.getShortLanguage();
|
|
14036
|
+
this.literals = {
|
|
14037
|
+
...poTableListManagerLiterals[poLocaleDefault],
|
|
14038
|
+
...poTableListManagerLiterals[language]
|
|
14039
|
+
};
|
|
14040
|
+
}
|
|
14041
|
+
emitChangePosition(option, direction) {
|
|
14042
|
+
const infoPosition = { option, direction };
|
|
14043
|
+
const hasDisabled = this.verifyArrowDisabled(option, direction);
|
|
14044
|
+
if (!hasDisabled) {
|
|
14045
|
+
this.changePosition.emit(infoPosition);
|
|
14046
|
+
}
|
|
14047
|
+
}
|
|
14048
|
+
verifyArrowDisabled(option, direction) {
|
|
14049
|
+
const index = this.columnsManager.findIndex(el => el.property === option.value);
|
|
14050
|
+
const existsDetail = this.columnsManager.some(function (el) {
|
|
14051
|
+
return el.property === 'detail';
|
|
14052
|
+
});
|
|
14053
|
+
const valueSubtraction = existsDetail ? 2 : 1;
|
|
14054
|
+
if (index === 0 && direction === 'up') {
|
|
14055
|
+
return true;
|
|
14056
|
+
}
|
|
14057
|
+
if (index === this.columnsManager.length - valueSubtraction && direction === 'down') {
|
|
14058
|
+
return true;
|
|
14059
|
+
}
|
|
14060
|
+
return false;
|
|
14061
|
+
}
|
|
14062
|
+
}
|
|
14063
|
+
PoTableListManagerComponent.ɵfac = function PoTableListManagerComponent_Factory(t) { return new (t || PoTableListManagerComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
14064
|
+
PoTableListManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableListManagerComponent, selectors: [["po-table-list-manager"]], inputs: { columnsManager: ["p-columns-manager", "columnsManager"] }, outputs: { changePosition: "p-change-position" }, features: [i0.ɵɵProvidersFeature([
|
|
14065
|
+
{
|
|
14066
|
+
provide: NG_VALUE_ACCESSOR,
|
|
14067
|
+
useExisting: forwardRef(() => PoTableListManagerComponent),
|
|
14068
|
+
multi: true
|
|
14069
|
+
}
|
|
14070
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [["class", "po-table-list-manager-container", 3, "po-checkbox-group-item-disabled", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-table-list-manager-container"], [1, "po-table-list-manager-item"], [3, "p-label", "p-disabled", "p-checkboxValue", "p-required", "click", "keydown"], ["checkboxLabel", ""], [1, "po-container-icons-arrows-columns-manager"], ["p-tooltip-position", "left", "p-kind", "tertiary", "p-icon", "po-icon po-icon-arrow-up", 3, "p-tooltip", "p-disabled", "click"], ["p-tooltip-position", "top", "p-kind", "tertiary", "p-icon", "po-icon po-icon-arrow-down", 3, "p-tooltip", "p-disabled", "click"]], template: function PoTableListManagerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14071
|
+
i0.ɵɵtemplate(0, PoTableListManagerComponent_li_0_Template, 7, 10, "li", 0);
|
|
14072
|
+
} if (rf & 2) {
|
|
14073
|
+
i0.ɵɵproperty("ngForOf", ctx.checkboxGroupOptionsView)("ngForTrackBy", ctx.trackByFn);
|
|
14074
|
+
} }, dependencies: [i1.NgForOf, PoButtonComponent, PoTooltipDirective, PoCheckboxComponent], encapsulation: 2 });
|
|
14075
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableListManagerComponent, [{
|
|
14076
|
+
type: Component,
|
|
14077
|
+
args: [{ selector: 'po-table-list-manager', providers: [
|
|
14078
|
+
{
|
|
14079
|
+
provide: NG_VALUE_ACCESSOR,
|
|
14080
|
+
useExisting: forwardRef(() => PoTableListManagerComponent),
|
|
14081
|
+
multi: true
|
|
14082
|
+
}
|
|
14083
|
+
], template: "<li\n class=\"po-table-list-manager-container\"\n *ngFor=\"let option of checkboxGroupOptionsView; trackBy: trackByFn\"\n [class.po-checkbox-group-item-disabled]=\"option.disabled || disabled\"\n>\n <div class=\"po-table-list-manager-item\">\n <po-checkbox\n #checkboxLabel\n [p-label]=\"option.label\"\n [p-disabled]=\"option.disabled || disabled\"\n (click)=\"checkOption(option)\"\n (keydown)=\"onKeyDown($event, option)\"\n [p-checkboxValue]=\"checkedOptions[option.value] === null ? 'mixed' : checkedOptions[option.value]\"\n [p-required]=\"required\"\n >\n </po-checkbox>\n <div class=\"po-container-icons-arrows-columns-manager\">\n <po-button\n [p-tooltip]=\"literals.up\"\n p-tooltip-position=\"left\"\n p-kind=\"tertiary\"\n p-icon=\"po-icon po-icon-arrow-up\"\n [p-disabled]=\"verifyArrowDisabled(option, 'up')\"\n (click)=\"emitChangePosition(option, 'up'); $event.stopPropagation()\"\n >\n </po-button>\n\n <po-button\n [p-tooltip]=\"literals.down\"\n p-tooltip-position=\"top\"\n p-kind=\"tertiary\"\n p-icon=\"po-icon po-icon-arrow-down\"\n [p-disabled]=\"verifyArrowDisabled(option, 'down')\"\n (click)=\"emitChangePosition(option, 'down'); $event.stopPropagation()\"\n >\n </po-button>\n </div>\n </div>\n</li>\n" }]
|
|
14084
|
+
}], function () { return [{ type: PoLanguageService }, { type: i0.ChangeDetectorRef }]; }, { changePosition: [{
|
|
14085
|
+
type: Output,
|
|
14086
|
+
args: ['p-change-position']
|
|
14087
|
+
}], columnsManager: [{
|
|
14088
|
+
type: Input,
|
|
14089
|
+
args: ['p-columns-manager']
|
|
14090
|
+
}] }); })();
|
|
14091
|
+
|
|
13981
14092
|
function PoTableColumnManagerComponent_po_popover_0_Template(rf, ctx) { if (rf & 1) {
|
|
13982
|
-
const
|
|
14093
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
13983
14094
|
i0.ɵɵelementStart(0, "po-popover", 1, 2);
|
|
13984
|
-
i0.ɵɵlistener("p-close", function PoTableColumnManagerComponent_po_popover_0_Template_po_popover_p_close_0_listener() { i0.ɵɵrestoreView(
|
|
14095
|
+
i0.ɵɵlistener("p-close", function PoTableColumnManagerComponent_po_popover_0_Template_po_popover_p_close_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.checkChanges([], true)); });
|
|
13985
14096
|
i0.ɵɵelementStart(2, "div", 3)(3, "div", 4);
|
|
13986
14097
|
i0.ɵɵtext(4);
|
|
13987
14098
|
i0.ɵɵelementEnd();
|
|
13988
14099
|
i0.ɵɵelementStart(5, "div", 5)(6, "button", 6);
|
|
13989
|
-
i0.ɵɵlistener("click", function PoTableColumnManagerComponent_po_popover_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
14100
|
+
i0.ɵɵlistener("click", function PoTableColumnManagerComponent_po_popover_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const _r1 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r1.close()); });
|
|
13990
14101
|
i0.ɵɵelementEnd()()();
|
|
13991
|
-
i0.ɵɵelementStart(7, "div", 7)(8, "po-
|
|
13992
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
13993
|
-
i0.ɵɵelementEnd();
|
|
13994
|
-
i0.ɵɵelementStart(9, "div", 9);
|
|
13995
|
-
i0.ɵɵtemplate(10, PoTableColumnManagerComponent_po_popover_0_div_10_Template, 4, 4, "div", 10);
|
|
14102
|
+
i0.ɵɵelementStart(7, "div", 7)(8, "po-table-list-manager", 8);
|
|
14103
|
+
i0.ɵɵlistener("ngModelChange", function PoTableColumnManagerComponent_po_popover_0_Template_po_table_list_manager_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.visibleColumns = $event); })("p-change", function PoTableColumnManagerComponent_po_popover_0_Template_po_table_list_manager_p_change_8_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.checkChanges($event, false)); })("p-change-position", function PoTableColumnManagerComponent_po_popover_0_Template_po_table_list_manager_p_change_position_8_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.changePosition($event)); });
|
|
13996
14104
|
i0.ɵɵelementEnd()();
|
|
13997
|
-
i0.ɵɵelementStart(
|
|
13998
|
-
i0.ɵɵlistener("p-click", function
|
|
14105
|
+
i0.ɵɵelementStart(9, "div", 9)(10, "po-button", 10);
|
|
14106
|
+
i0.ɵɵlistener("p-click", function PoTableColumnManagerComponent_po_popover_0_Template_po_button_p_click_10_listener() { i0.ɵɵrestoreView(_r3); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.restore()); });
|
|
13999
14107
|
i0.ɵɵelementEnd()()();
|
|
14000
14108
|
} if (rf & 2) {
|
|
14001
14109
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -14003,9 +14111,7 @@ function PoTableColumnManagerComponent_po_popover_0_Template(rf, ctx) { if (rf &
|
|
|
14003
14111
|
i0.ɵɵadvance(4);
|
|
14004
14112
|
i0.ɵɵtextInterpolate(ctx_r0.literals.columnsManager);
|
|
14005
14113
|
i0.ɵɵadvance(4);
|
|
14006
|
-
i0.ɵɵproperty("ngModel", ctx_r0.visibleColumns)("p-options", ctx_r0.columnsOptions);
|
|
14007
|
-
i0.ɵɵadvance(2);
|
|
14008
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.columnsOptions);
|
|
14114
|
+
i0.ɵɵproperty("ngModel", ctx_r0.visibleColumns)("p-options", ctx_r0.columnsOptions)("p-columns-manager", ctx_r0.columns);
|
|
14009
14115
|
i0.ɵɵadvance(2);
|
|
14010
14116
|
i0.ɵɵproperty("p-label", ctx_r0.literals.restoreDefault);
|
|
14011
14117
|
} }
|
|
@@ -14013,27 +14119,19 @@ const PoTableColumnManagerMaxColumnsDefault = 99999;
|
|
|
14013
14119
|
const poTableColumnManagerLiteralsDefault = {
|
|
14014
14120
|
en: {
|
|
14015
14121
|
columnsManager: 'Columns manager',
|
|
14016
|
-
restoreDefault: 'Restore default'
|
|
14017
|
-
up: 'up',
|
|
14018
|
-
down: 'down'
|
|
14122
|
+
restoreDefault: 'Restore default'
|
|
14019
14123
|
},
|
|
14020
14124
|
es: {
|
|
14021
14125
|
columnsManager: 'Gerente de columna',
|
|
14022
|
-
restoreDefault: 'Restaurar por defecto'
|
|
14023
|
-
up: 'arriba',
|
|
14024
|
-
down: 'abajo'
|
|
14126
|
+
restoreDefault: 'Restaurar por defecto'
|
|
14025
14127
|
},
|
|
14026
14128
|
pt: {
|
|
14027
14129
|
columnsManager: 'Gerenciador de colunas',
|
|
14028
|
-
restoreDefault: 'Restaurar padrão'
|
|
14029
|
-
up: 'acima',
|
|
14030
|
-
down: 'abaixo'
|
|
14130
|
+
restoreDefault: 'Restaurar padrão'
|
|
14031
14131
|
},
|
|
14032
14132
|
ru: {
|
|
14033
14133
|
columnsManager: 'менеджер колонок',
|
|
14034
|
-
restoreDefault: 'сброс настроек'
|
|
14035
|
-
up: 'вверх',
|
|
14036
|
-
down: 'вниз'
|
|
14134
|
+
restoreDefault: 'сброс настроек'
|
|
14037
14135
|
}
|
|
14038
14136
|
};
|
|
14039
14137
|
class PoTableColumnManagerComponent {
|
|
@@ -14092,36 +14190,19 @@ class PoTableColumnManagerComponent {
|
|
|
14092
14190
|
this.initialColumns.emit(this.getVisibleColumns(this.colunsDefault));
|
|
14093
14191
|
this.checkChanges(defaultColumns, this.restoreDefaultEvent);
|
|
14094
14192
|
}
|
|
14095
|
-
changePosition(option, direction) {
|
|
14193
|
+
changePosition({ option, direction }) {
|
|
14096
14194
|
const indexColumn = this.columns.findIndex(el => el.property === option.value);
|
|
14097
14195
|
const newColumn = [...this.columns];
|
|
14098
|
-
|
|
14099
|
-
this.changePositionColumn(newColumn, indexColumn, direction, hasDisabled);
|
|
14196
|
+
this.changePositionColumn(newColumn, indexColumn, direction);
|
|
14100
14197
|
this.columns = newColumn;
|
|
14101
14198
|
this.visibleColumnsChange.emit(this.columns);
|
|
14102
14199
|
}
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
return el.property === 'detail';
|
|
14107
|
-
});
|
|
14108
|
-
const valueSubtraction = existsDetail ? 2 : 1;
|
|
14109
|
-
if (index === 0 && direction === 'up') {
|
|
14110
|
-
return true;
|
|
14200
|
+
changePositionColumn(array, index, direction) {
|
|
14201
|
+
if (direction === 'up') {
|
|
14202
|
+
array.splice(index, 0, array.splice(index - 1, 1)[0]);
|
|
14111
14203
|
}
|
|
14112
|
-
if (
|
|
14113
|
-
|
|
14114
|
-
}
|
|
14115
|
-
return false;
|
|
14116
|
-
}
|
|
14117
|
-
changePositionColumn(array, index, direction, hasDisabled) {
|
|
14118
|
-
if (!hasDisabled) {
|
|
14119
|
-
if (direction === 'up') {
|
|
14120
|
-
array.splice(index, 0, array.splice(index - 1, 1)[0]);
|
|
14121
|
-
}
|
|
14122
|
-
if (direction === 'down') {
|
|
14123
|
-
array.splice(index, 0, array.splice(index + 1, 1)[0]);
|
|
14124
|
-
}
|
|
14204
|
+
if (direction === 'down') {
|
|
14205
|
+
array.splice(index, 0, array.splice(index + 1, 1)[0]);
|
|
14125
14206
|
}
|
|
14126
14207
|
}
|
|
14127
14208
|
verifyToEmitChange(event) {
|
|
@@ -14300,14 +14381,14 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14300
14381
|
} if (rf & 2) {
|
|
14301
14382
|
let _t;
|
|
14302
14383
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
14303
|
-
} }, inputs: { columns: ["p-columns", "columns"], target: ["p-target", "target"], colunsDefault: ["p-columns-default", "colunsDefault"], lastVisibleColumnsSelected: ["p-last-visible-columns-selected", "lastVisibleColumnsSelected"], maxColumns: ["p-max-columns", "maxColumns"] }, outputs: { visibleColumnsChange: "p-visible-columns-change", changeVisibleColumns: "p-change-visible-columns", initialColumns: "p-initial-columns" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["p-position", "bottom-left", 3, "p-target", "p-close", 4, "ngIf"], ["p-position", "bottom-left", 3, "p-target", "p-close"], ["popover", ""], [1, "po-table-column-manager-header"], [1, "po-table-column-manager-header-title"], [1, "po-table-column-manager-header-close"], [1, "po-table-column-manager-header-close-button", "po-clickable", "po-icon", "po-icon-close", 3, "click"], [1, "po-table-column-manager-body"], ["name", "visibleColumns", "p-columns", "1",
|
|
14304
|
-
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template,
|
|
14384
|
+
} }, inputs: { columns: ["p-columns", "columns"], target: ["p-target", "target"], colunsDefault: ["p-columns-default", "colunsDefault"], lastVisibleColumnsSelected: ["p-last-visible-columns-selected", "lastVisibleColumnsSelected"], maxColumns: ["p-max-columns", "maxColumns"] }, outputs: { visibleColumnsChange: "p-visible-columns-change", changeVisibleColumns: "p-change-visible-columns", initialColumns: "p-initial-columns" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["p-position", "bottom-left", 3, "p-target", "p-close", 4, "ngIf"], ["p-position", "bottom-left", 3, "p-target", "p-close"], ["popover", ""], [1, "po-table-column-manager-header"], [1, "po-table-column-manager-header-title"], [1, "po-table-column-manager-header-close"], [1, "po-table-column-manager-header-close-button", "po-clickable", "po-icon", "po-icon-close", 3, "click"], [1, "po-table-column-manager-body"], ["name", "visibleColumns", "p-columns", "1", 3, "ngModel", "p-options", "p-columns-manager", "ngModelChange", "p-change", "p-change-position"], [1, "po-table-column-manager-footer"], ["p-kind", "tertiary", 1, "po-table-column-manager-footer-restore", 3, "p-label", "p-click"]], template: function PoTableColumnManagerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14385
|
+
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template, 11, 6, "po-popover", 0);
|
|
14305
14386
|
} if (rf & 2) {
|
|
14306
14387
|
i0.ɵɵproperty("ngIf", ctx.target);
|
|
14307
|
-
} }, dependencies: [i1.
|
|
14388
|
+
} }, dependencies: [i1.NgIf, i2$1.NgControlStatus, i2$1.NgModel, PoButtonComponent, PoPopoverComponent, PoTableListManagerComponent], encapsulation: 2 });
|
|
14308
14389
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableColumnManagerComponent, [{
|
|
14309
14390
|
type: Component,
|
|
14310
|
-
args: [{ selector: 'po-table-column-manager', template: "<po-popover #popover *ngIf=\"target\" [p-target]=\"target\" p-position=\"bottom-left\" (p-close)=\"checkChanges([], true)\">\n <div class=\"po-table-column-manager-header\">\n <div class=\"po-table-column-manager-header-title\">{{ literals.columnsManager }}</div>\n\n <div class=\"po-table-column-manager-header-close\">\n <button\n class=\"po-table-column-manager-header-close-button po-clickable po-icon po-icon-close\"\n (click)=\"popover.close()\"\n ></button>\n </div>\n </div>\n\n <div class=\"po-table-column-manager-body\">\n <po-
|
|
14391
|
+
args: [{ selector: 'po-table-column-manager', template: "<po-popover #popover *ngIf=\"target\" [p-target]=\"target\" p-position=\"bottom-left\" (p-close)=\"checkChanges([], true)\">\n <div class=\"po-table-column-manager-header\">\n <div class=\"po-table-column-manager-header-title\">{{ literals.columnsManager }}</div>\n\n <div class=\"po-table-column-manager-header-close\">\n <button\n class=\"po-table-column-manager-header-close-button po-clickable po-icon po-icon-close\"\n (click)=\"popover.close()\"\n ></button>\n </div>\n </div>\n\n <div class=\"po-table-column-manager-body\">\n <po-table-list-manager\n name=\"visibleColumns\"\n [(ngModel)]=\"visibleColumns\"\n p-columns=\"1\"\n [p-options]=\"columnsOptions\"\n (p-change)=\"checkChanges($event, false)\"\n (p-change-position)=\"changePosition($event)\"\n [p-columns-manager]=\"columns\"\n >\n </po-table-list-manager>\n </div>\n\n <div class=\"po-table-column-manager-footer\">\n <po-button\n class=\"po-table-column-manager-footer-restore\"\n p-kind=\"tertiary\"\n [p-label]=\"literals.restoreDefault\"\n (p-click)=\"restore()\"\n >\n </po-button>\n </div>\n</po-popover>\n" }]
|
|
14311
14392
|
}], function () { return [{ type: i0.Renderer2 }, { type: PoLanguageService }]; }, { popover: [{
|
|
14312
14393
|
type: ViewChild,
|
|
14313
14394
|
args: [PoPopoverComponent]
|
|
@@ -14418,8 +14499,8 @@ const poTableLiteralsDefault = {
|
|
|
14418
14499
|
noColumns: 'Нет определения столбца',
|
|
14419
14500
|
noData: 'Данные не найдены',
|
|
14420
14501
|
noVisibleColumn: 'нет видимых столбцов',
|
|
14421
|
-
loadingData: '
|
|
14422
|
-
loadMoreData: '
|
|
14502
|
+
loadingData: 'Загрузка',
|
|
14503
|
+
loadMoreData: 'Загрузка',
|
|
14423
14504
|
seeCompleteSubtitle: 'Посмотреть полный субтитр',
|
|
14424
14505
|
completeSubtitle: 'Полный заголовок',
|
|
14425
14506
|
columnsManager: 'менеджер колонок'
|
|
@@ -15713,8 +15794,9 @@ function PoTableDetailComponent_tr_3_td_4_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
15713
15794
|
} if (rf & 2) {
|
|
15714
15795
|
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15715
15796
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15797
|
+
const ctx_r20 = i0.ɵɵnextContext();
|
|
15716
15798
|
i0.ɵɵadvance(1);
|
|
15717
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind4(2, 1, item_r5
|
|
15799
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind4(2, 1, ctx_r20.getDetailData(item_r5, detail_r18), detail_r18.format, "symbol", "1.2-2"));
|
|
15718
15800
|
} }
|
|
15719
15801
|
function PoTableDetailComponent_tr_3_td_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15720
15802
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15724,8 +15806,9 @@ function PoTableDetailComponent_tr_3_td_4_span_4_Template(rf, ctx) { if (rf & 1)
|
|
|
15724
15806
|
} if (rf & 2) {
|
|
15725
15807
|
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15726
15808
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15809
|
+
const ctx_r21 = i0.ɵɵnextContext();
|
|
15727
15810
|
i0.ɵɵadvance(1);
|
|
15728
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, item_r5
|
|
15811
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r21.getDetailData(item_r5, detail_r18), detail_r18.format || "dd/MM/yyyy"));
|
|
15729
15812
|
} }
|
|
15730
15813
|
function PoTableDetailComponent_tr_3_td_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
15731
15814
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15735,8 +15818,9 @@ function PoTableDetailComponent_tr_3_td_4_span_5_Template(rf, ctx) { if (rf & 1)
|
|
|
15735
15818
|
} if (rf & 2) {
|
|
15736
15819
|
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15737
15820
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15821
|
+
const ctx_r22 = i0.ɵɵnextContext();
|
|
15738
15822
|
i0.ɵɵadvance(1);
|
|
15739
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, item_r5
|
|
15823
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r22.getDetailData(item_r5, detail_r18), detail_r18.format || "HH:mm:ss.ffffff"));
|
|
15740
15824
|
} }
|
|
15741
15825
|
function PoTableDetailComponent_tr_3_td_4_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
15742
15826
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15746,8 +15830,9 @@ function PoTableDetailComponent_tr_3_td_4_span_6_Template(rf, ctx) { if (rf & 1)
|
|
|
15746
15830
|
} if (rf & 2) {
|
|
15747
15831
|
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15748
15832
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15833
|
+
const ctx_r23 = i0.ɵɵnextContext();
|
|
15749
15834
|
i0.ɵɵadvance(1);
|
|
15750
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, item_r5
|
|
15835
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r23.getDetailData(item_r5, detail_r18), detail_r18.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
15751
15836
|
} }
|
|
15752
15837
|
function PoTableDetailComponent_tr_3_td_4_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
15753
15838
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15758,7 +15843,7 @@ function PoTableDetailComponent_tr_3_td_4_span_7_Template(rf, ctx) { if (rf & 1)
|
|
|
15758
15843
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15759
15844
|
const ctx_r24 = i0.ɵɵnextContext();
|
|
15760
15845
|
i0.ɵɵadvance(1);
|
|
15761
|
-
i0.ɵɵtextInterpolate(ctx_r24.formatNumberDetail(item_r5
|
|
15846
|
+
i0.ɵɵtextInterpolate(ctx_r24.formatNumberDetail(ctx_r24.getDetailData(item_r5, detail_r18), detail_r18.format));
|
|
15762
15847
|
} }
|
|
15763
15848
|
function PoTableDetailComponent_tr_3_td_4_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
15764
15849
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15767,8 +15852,9 @@ function PoTableDetailComponent_tr_3_td_4_span_8_Template(rf, ctx) { if (rf & 1)
|
|
|
15767
15852
|
} if (rf & 2) {
|
|
15768
15853
|
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15769
15854
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15855
|
+
const ctx_r25 = i0.ɵɵnextContext();
|
|
15770
15856
|
i0.ɵɵadvance(1);
|
|
15771
|
-
i0.ɵɵtextInterpolate(item_r5
|
|
15857
|
+
i0.ɵɵtextInterpolate(ctx_r25.getDetailData(item_r5, detail_r18));
|
|
15772
15858
|
} }
|
|
15773
15859
|
function PoTableDetailComponent_tr_3_td_4_Template(rf, ctx) { if (rf & 1) {
|
|
15774
15860
|
const _r40 = i0.ɵɵgetCurrentView();
|
|
@@ -15868,6 +15954,20 @@ class PoTableDetailComponent {
|
|
|
15868
15954
|
getColumnTitleLabel(detail) {
|
|
15869
15955
|
return detail.label || capitalizeFirstLetter(detail.property);
|
|
15870
15956
|
}
|
|
15957
|
+
getDetailData(item, detail) {
|
|
15958
|
+
const arrayProperty = detail.property.split('.');
|
|
15959
|
+
if (arrayProperty.length > 1) {
|
|
15960
|
+
const nestedProperties = arrayProperty;
|
|
15961
|
+
let value = item;
|
|
15962
|
+
for (const property of nestedProperties) {
|
|
15963
|
+
value = value[property] || value[property] === 0 ? value[property] : '';
|
|
15964
|
+
}
|
|
15965
|
+
return value;
|
|
15966
|
+
}
|
|
15967
|
+
else {
|
|
15968
|
+
return item[detail.property];
|
|
15969
|
+
}
|
|
15970
|
+
}
|
|
15871
15971
|
onSelectRow(item) {
|
|
15872
15972
|
item.$selected = !item.$selected;
|
|
15873
15973
|
this.selectRow.emit(item);
|
|
@@ -15901,7 +16001,7 @@ PoTableDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTa
|
|
|
15901
16001
|
} }, dependencies: [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i2$1.NgControlStatus, i2$1.NgModel, PoCheckboxComponent, i1.CurrencyPipe, i1.DatePipe, PoTimePipe], encapsulation: 2 });
|
|
15902
16002
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableDetailComponent, [{
|
|
15903
16003
|
type: Component,
|
|
15904
|
-
args: [{ selector: 'po-table-detail', template: "<table class=\"po-table-master-detail\">\n <thead *ngIf=\"typeHeaderTop\">\n <tr>\n <th class=\"po-table-header po-table-column-selectable\" *ngIf=\"isSelectable\"></th>\n <th class=\"po-table-header po-table-header-column po-table-header-master-detail\"></th>\n <th class=\"po-table-header po-table-header-ellipsis\" *ngFor=\"let detail of detail.columns\">\n {{ getColumnTitleLabel(detail) }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n class=\"po-table-detail-row\"\n [class.po-table-row-active]=\"item.$selected && isSelectable\"\n *ngFor=\"let item of items\"\n >\n <ng-container *ngIf=\"isSelectable; else masterDetailSpace\">\n <td class=\"po-table-column-master-detail-space-checkbox\"></td>\n <td class=\"po-table-column po-table-column-selectable\">\n <po-checkbox\n name=\"checkbox\"\n (click)=\"onSelectRow(item)\"\n (p-change)=\"onSelectRow(item)\"\n [(ngModel)]=\"item.$selected\"\n ></po-checkbox>\n </td>\n </ng-container>\n\n <ng-template #masterDetailSpace>\n <td class=\"po-table-column-master-detail-space\"></td>\n </ng-template>\n\n <td\n class=\"po-table-column-master-detail po-table-master-detail-label\"\n (click)=\"isSelectable ? onSelectRow(item) : 'javascript:;'\"\n *ngFor=\"let detail of detailColumns\"\n >\n <strong *ngIf=\"typeHeaderInline\"> {{ getColumnTitleLabel(detail) }}: </strong>\n\n <ng-container [ngSwitch]=\"detail.type\">\n <span *ngSwitchCase=\"'currency'\">{{
|
|
16004
|
+
args: [{ selector: 'po-table-detail', template: "<table class=\"po-table-master-detail\">\n <thead *ngIf=\"typeHeaderTop\">\n <tr>\n <th class=\"po-table-header po-table-column-selectable\" *ngIf=\"isSelectable\"></th>\n <th class=\"po-table-header po-table-header-column po-table-header-master-detail\"></th>\n <th class=\"po-table-header po-table-header-ellipsis\" *ngFor=\"let detail of detail.columns\">\n {{ getColumnTitleLabel(detail) }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n class=\"po-table-detail-row\"\n [class.po-table-row-active]=\"item.$selected && isSelectable\"\n *ngFor=\"let item of items\"\n >\n <ng-container *ngIf=\"isSelectable; else masterDetailSpace\">\n <td class=\"po-table-column-master-detail-space-checkbox\"></td>\n <td class=\"po-table-column po-table-column-selectable\">\n <po-checkbox\n name=\"checkbox\"\n (click)=\"onSelectRow(item)\"\n (p-change)=\"onSelectRow(item)\"\n [(ngModel)]=\"item.$selected\"\n ></po-checkbox>\n </td>\n </ng-container>\n\n <ng-template #masterDetailSpace>\n <td class=\"po-table-column-master-detail-space\"></td>\n </ng-template>\n\n <td\n class=\"po-table-column-master-detail po-table-master-detail-label\"\n (click)=\"isSelectable ? onSelectRow(item) : 'javascript:;'\"\n *ngFor=\"let detail of detailColumns\"\n >\n <strong *ngIf=\"typeHeaderInline\"> {{ getColumnTitleLabel(detail) }}: </strong>\n\n <ng-container [ngSwitch]=\"detail.type\">\n <span *ngSwitchCase=\"'currency'\">{{\n getDetailData(item, detail) | currency: detail.format:'symbol':'1.2-2'\n }}</span>\n <span *ngSwitchCase=\"'date'\">{{ getDetailData(item, detail) | date: detail.format || 'dd/MM/yyyy' }}</span>\n <span *ngSwitchCase=\"'time'\">{{\n getDetailData(item, detail) | po_time: detail.format || 'HH:mm:ss.ffffff'\n }}</span>\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getDetailData(item, detail) | date: detail.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n <span *ngSwitchCase=\"'number'\">{{ formatNumberDetail(getDetailData(item, detail), detail.format) }}</span>\n <span *ngSwitchDefault>{{ getDetailData(item, detail) }}</span>\n </ng-container>\n </td>\n </tr>\n </tbody>\n</table>\n" }]
|
|
15905
16005
|
}], function () { return [{ type: i1.DecimalPipe }]; }, { items: [{
|
|
15906
16006
|
type: Input,
|
|
15907
16007
|
args: ['p-items']
|
|
@@ -16110,15 +16210,15 @@ PoTableSubtitleFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
16110
16210
|
args: ['p-subtitles']
|
|
16111
16211
|
}] }); })();
|
|
16112
16212
|
|
|
16113
|
-
const _c0$
|
|
16114
|
-
const _c1$
|
|
16115
|
-
const _c2$
|
|
16116
|
-
const _c3$
|
|
16117
|
-
const _c4$
|
|
16118
|
-
const _c5$
|
|
16119
|
-
const _c6$
|
|
16120
|
-
const _c7
|
|
16121
|
-
const _c8
|
|
16213
|
+
const _c0$X = ["noColumnsHeader"];
|
|
16214
|
+
const _c1$p = ["noColumnsHeaderFixed"];
|
|
16215
|
+
const _c2$a = ["popup"];
|
|
16216
|
+
const _c3$5 = ["tableFooter"];
|
|
16217
|
+
const _c4$3 = ["tableWrapper"];
|
|
16218
|
+
const _c5$1 = ["poTableTbody"];
|
|
16219
|
+
const _c6$1 = ["poTableThead"];
|
|
16220
|
+
const _c7 = ["poTableTbodyVirtual"];
|
|
16221
|
+
const _c8 = ["columnManager"];
|
|
16122
16222
|
const _c9 = ["columnManagerFixed"];
|
|
16123
16223
|
const _c10 = ["columnActionLeft"];
|
|
16124
16224
|
const _c11 = ["columnActionLeftFixed"];
|
|
@@ -17972,15 +18072,15 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17972
18072
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableCellTemplate = _t.first);
|
|
17973
18073
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableColumnTemplates = _t);
|
|
17974
18074
|
} }, viewQuery: function PoTableComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17975
|
-
i0.ɵɵviewQuery(_c0$
|
|
17976
|
-
i0.ɵɵviewQuery(_c1$
|
|
17977
|
-
i0.ɵɵviewQuery(_c2$
|
|
17978
|
-
i0.ɵɵviewQuery(_c3$
|
|
17979
|
-
i0.ɵɵviewQuery(_c4$
|
|
17980
|
-
i0.ɵɵviewQuery(_c5$
|
|
17981
|
-
i0.ɵɵviewQuery(_c6$
|
|
17982
|
-
i0.ɵɵviewQuery(_c7
|
|
17983
|
-
i0.ɵɵviewQuery(_c8
|
|
18075
|
+
i0.ɵɵviewQuery(_c0$X, 5, ElementRef);
|
|
18076
|
+
i0.ɵɵviewQuery(_c1$p, 5, ElementRef);
|
|
18077
|
+
i0.ɵɵviewQuery(_c2$a, 5);
|
|
18078
|
+
i0.ɵɵviewQuery(_c3$5, 5, ElementRef);
|
|
18079
|
+
i0.ɵɵviewQuery(_c4$3, 5, ElementRef);
|
|
18080
|
+
i0.ɵɵviewQuery(_c5$1, 5, ElementRef);
|
|
18081
|
+
i0.ɵɵviewQuery(_c6$1, 5, ElementRef);
|
|
18082
|
+
i0.ɵɵviewQuery(_c7, 5, ElementRef);
|
|
18083
|
+
i0.ɵɵviewQuery(_c8, 5, ElementRef);
|
|
17984
18084
|
i0.ɵɵviewQuery(_c9, 5, ElementRef);
|
|
17985
18085
|
i0.ɵɵviewQuery(_c10, 5, ElementRef);
|
|
17986
18086
|
i0.ɵɵviewQuery(_c11, 5, ElementRef);
|
|
@@ -18143,6 +18243,7 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
18143
18243
|
PoTableColumnLabelComponent,
|
|
18144
18244
|
PoTableColumnLinkComponent,
|
|
18145
18245
|
PoTableColumnManagerComponent,
|
|
18246
|
+
PoTableListManagerComponent,
|
|
18146
18247
|
PoTableDetailComponent,
|
|
18147
18248
|
PoTableIconComponent,
|
|
18148
18249
|
PoTableRowTemplateDirective,
|
|
@@ -18166,6 +18267,7 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
18166
18267
|
PoTableColumnLabelComponent,
|
|
18167
18268
|
PoTableColumnLinkComponent,
|
|
18168
18269
|
PoTableColumnManagerComponent,
|
|
18270
|
+
PoTableListManagerComponent,
|
|
18169
18271
|
PoTableDetailComponent,
|
|
18170
18272
|
PoTableIconComponent,
|
|
18171
18273
|
PoTableRowTemplateDirective,
|
|
@@ -19254,11 +19356,11 @@ PoComboOptionTemplateDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ ty
|
|
|
19254
19356
|
}]
|
|
19255
19357
|
}], function () { return [{ type: i0.TemplateRef }]; }, null); })();
|
|
19256
19358
|
|
|
19257
|
-
const _c0$
|
|
19258
|
-
const _c1$
|
|
19259
|
-
const _c2$
|
|
19260
|
-
const _c3$
|
|
19261
|
-
const _c4$
|
|
19359
|
+
const _c0$W = ["containerElement"];
|
|
19360
|
+
const _c1$o = ["contentElement"];
|
|
19361
|
+
const _c2$9 = ["iconArrow"];
|
|
19362
|
+
const _c3$4 = ["inp"];
|
|
19363
|
+
const _c4$2 = ["poComboBody"];
|
|
19262
19364
|
function PoComboComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
19263
19365
|
i0.ɵɵelementStart(0, "div", 17);
|
|
19264
19366
|
i0.ɵɵelement(1, "po-icon", 18);
|
|
@@ -19336,16 +19438,16 @@ function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Templ
|
|
|
19336
19438
|
i0.ɵɵelementContainer(0);
|
|
19337
19439
|
} }
|
|
19338
19440
|
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template(rf, ctx) { }
|
|
19339
|
-
const _c5
|
|
19441
|
+
const _c5 = function (a0, a1) { return { $implicit: a0, selected: a1 }; };
|
|
19340
19442
|
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
19341
19443
|
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 33);
|
|
19342
19444
|
} if (rf & 2) {
|
|
19343
19445
|
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
19344
19446
|
const ctx_r35 = i0.ɵɵnextContext(2);
|
|
19345
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r35.comboOptionTemplate == null ? null : ctx_r35.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c5
|
|
19447
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r35.comboOptionTemplate == null ? null : ctx_r35.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c5, option_r21, ctx_r35.compareObjects(ctx_r35.selectedView, option_r21)));
|
|
19346
19448
|
} }
|
|
19347
19449
|
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template(rf, ctx) { }
|
|
19348
|
-
const _c6
|
|
19450
|
+
const _c6 = function (a0) { return { $implicit: a0 }; };
|
|
19349
19451
|
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
19350
19452
|
i0.ɵɵelementStart(0, "a", 29);
|
|
19351
19453
|
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template, 0, 0, "ng-template", 33);
|
|
@@ -19354,7 +19456,7 @@ function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Templa
|
|
|
19354
19456
|
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
19355
19457
|
const ctx_r37 = i0.ɵɵnextContext(2);
|
|
19356
19458
|
i0.ɵɵadvance(1);
|
|
19357
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r37.comboOptionTemplate == null ? null : ctx_r37.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c6
|
|
19459
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r37.comboOptionTemplate == null ? null : ctx_r37.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c6, option_r21));
|
|
19358
19460
|
} }
|
|
19359
19461
|
function PoComboComponent_ng_template_18_li_3_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
19360
19462
|
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 11);
|
|
@@ -19643,7 +19745,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19643
19745
|
}
|
|
19644
19746
|
initInputObservable() {
|
|
19645
19747
|
if (this.service) {
|
|
19646
|
-
const keyupObservable = fromEvent(this.inputEl.nativeElement, 'keyup').pipe(filter((e) => this.isValidCharacterToSearch(e.keyCode)), map((e) => e.currentTarget.value), distinctUntilChanged(), tap(() => {
|
|
19748
|
+
const keyupObservable = fromEvent(this.inputEl.nativeElement, 'keyup').pipe(filter$1((e) => this.isValidCharacterToSearch(e.keyCode)), map((e) => e.currentTarget.value), distinctUntilChanged(), tap(() => {
|
|
19647
19749
|
this.shouldMarkLetters = false;
|
|
19648
19750
|
}), debounceTime(this.debounceTime));
|
|
19649
19751
|
this.keyupSubscribe = keyupObservable.subscribe(value => {
|
|
@@ -19978,11 +20080,11 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
19978
20080
|
let _t;
|
|
19979
20081
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.comboOptionTemplate = _t.first);
|
|
19980
20082
|
} }, viewQuery: function PoComboComponent_Query(rf, ctx) { if (rf & 1) {
|
|
19981
|
-
i0.ɵɵviewQuery(_c0$
|
|
19982
|
-
i0.ɵɵviewQuery(_c1$
|
|
19983
|
-
i0.ɵɵviewQuery(_c2$
|
|
19984
|
-
i0.ɵɵviewQuery(_c3$
|
|
19985
|
-
i0.ɵɵviewQuery(_c4$
|
|
20083
|
+
i0.ɵɵviewQuery(_c0$W, 5, ElementRef);
|
|
20084
|
+
i0.ɵɵviewQuery(_c1$o, 5, ElementRef);
|
|
20085
|
+
i0.ɵɵviewQuery(_c2$9, 7, ElementRef);
|
|
20086
|
+
i0.ɵɵviewQuery(_c3$4, 7, ElementRef);
|
|
20087
|
+
i0.ɵɵviewQuery(_c4$2, 5, ElementRef);
|
|
19986
20088
|
} if (rf & 2) {
|
|
19987
20089
|
let _t;
|
|
19988
20090
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerElement = _t.first);
|
|
@@ -20003,7 +20105,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20003
20105
|
useExisting: forwardRef(() => PoComboComponent),
|
|
20004
20106
|
multi: true
|
|
20005
20107
|
}
|
|
20006
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 22, vars:
|
|
20108
|
+
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 22, vars: 25, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["autocomplete", "off", "type", "text", 1, "po-input", "po-combo-input", 3, "ngClass", "disabled", "placeholder", "required", "click", "keyup", "blur", "keyup.enter", "keydown"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], [3, "click"], ["iconArrow", ""], [1, "po-combo-container", 3, "hidden"], ["containerElement", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [4, "ngIf"], ["normalLoadingTemplate", ""], ["infiniteLoadingTemplate", ""], ["visibleOptionsTemplate", ""], ["noDataTemplate", ""], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"], [1, "po-combo-container-loading"], [1, "po-combo-container-content"], ["contentElement", "", "poComboBody", ""], [3, "po-combo-item-selected", "click", 4, "ngFor", "ngForOf"], ["defaultOptionTemplate", ""], ["optionTemplate", ""], ["class", "po-combo-item-title", 4, "ngIf", "ngIfElse"], ["optionLink", ""], [1, "po-combo-item-title"], [1, "po-combo-item"], [2, "pointer-events", "none", 3, "innerHTML"], ["optionsGroupTemplate", ""], ["defaultOptionsTemplate", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "po-combo-container-no-data"], [1, "po-combo-no-data", "po-text-center"]], template: function PoComboComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20007
20109
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
20008
20110
|
i0.ɵɵtemplate(2, PoComboComponent_div_2_Template, 2, 3, "div", 2);
|
|
20009
20111
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
@@ -20033,12 +20135,12 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20033
20135
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
20034
20136
|
i0.ɵɵadvance(1);
|
|
20035
20137
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon);
|
|
20036
|
-
i0.ɵɵproperty("ngClass", ctx.clean && _r1.value ? "po-input-double-icon-right" : "po-input-icon-right")("disabled", ctx.disabled)("placeholder", ctx.placeholder)("required", ctx.required);
|
|
20037
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
20138
|
+
i0.ɵɵproperty("ngClass", ctx.clean && _r1.value ? "po-input-double-icon-right" : "po-input-icon-right")("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("required", ctx.required);
|
|
20139
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
20038
20140
|
i0.ɵɵadvance(3);
|
|
20039
20141
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled);
|
|
20040
20142
|
i0.ɵɵadvance(1);
|
|
20041
|
-
i0.ɵɵclassMapInterpolate1("po-icon po-field-icon ", ctx.comboIcon, "");
|
|
20143
|
+
i0.ɵɵclassMapInterpolate1("po-icon po-field-icon ", ctx.comboIcon, " po-icon-input");
|
|
20042
20144
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx.disabled)("po-field-icon", !ctx.disabled);
|
|
20043
20145
|
i0.ɵɵadvance(2);
|
|
20044
20146
|
i0.ɵɵproperty("hidden", !ctx.comboOpen && !ctx.isServerSearching);
|
|
@@ -20062,7 +20164,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20062
20164
|
useExisting: forwardRef(() => PoComboComponent),
|
|
20063
20165
|
multi: true
|
|
20064
20166
|
}
|
|
20065
|
-
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input po-combo-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-input-icon-left]=\"icon\"\n autocomplete=\"off\"\n type=\"text\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n (click)=\"toggleComboVisibility()\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur()\"\n (keyup.enter)=\"searchOnEnter($event.target.value)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean
|
|
20167
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input po-combo-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-input-icon-left]=\"icon\"\n autocomplete=\"off\"\n type=\"text\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"label\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [required]=\"required\"\n (click)=\"toggleComboVisibility()\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur()\"\n (keyup.enter)=\"searchOnEnter($event.target.value)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled\"\n (p-change-event)=\"clear($event)\"\n [p-element-ref]=\"inputEl\"\n >\n </po-clean>\n <span\n #iconArrow\n class=\"po-icon po-field-icon {{ comboIcon }} po-icon-input\"\n [class.po-field-icon-disabled]=\"disabled\"\n [class.po-field-icon]=\"!disabled\"\n (click)=\"toggleComboVisibility()\"\n >\n </span>\n </div>\n </div>\n\n <div #containerElement class=\"po-combo-container\" [hidden]=\"!comboOpen && !isServerSearching\">\n <ng-container *ngIf=\"visibleOptions.length; then visibleOptionsTemplate; else noDataTemplate\"> </ng-container>\n <div *ngIf=\"isServerSearching\">\n <ng-container *ngIf=\"infiniteLoading; then infiniteLoadingTemplate; else normalLoadingTemplate\"></ng-container>\n </div>\n </div>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n\n<ng-template #normalLoadingTemplate>\n <po-loading class=\"po-combo-container-loading\"> </po-loading>\n</ng-template>\n\n<ng-template #infiniteLoadingTemplate>\n <po-loading-overlay class=\"po-combo-container-loading\"> </po-loading-overlay>\n</ng-template>\n\n<ng-template #visibleOptionsTemplate>\n <ul #contentElement #poComboBody class=\"po-combo-container-content\">\n <li\n *ngFor=\"let option of visibleOptions\"\n [class.po-combo-item-selected]=\"compareObjects(selectedView, option)\"\n (click)=\"option?.options ? undefined : onOptionClick(option, $event)\"\n >\n <ng-container *ngIf=\"comboOptionTemplate; then optionTemplate; else defaultOptionTemplate\"></ng-container>\n\n <ng-template #defaultOptionTemplate>\n <label *ngIf=\"option?.options; else optionLink\" class=\"po-combo-item-title\">{{\n option[this.dynamicLabel]\n }}</label>\n <ng-template #optionLink>\n <a class=\"po-combo-item\">\n <span style=\"pointer-events: none\" [innerHTML]=\"getLabelFormatted(option?.[this.dynamicLabel])\"></span>\n </a>\n </ng-template>\n </ng-template>\n\n <ng-template #optionTemplate>\n <ng-container *ngIf=\"isOptionGroupList; then optionsGroupTemplate; else defaultOptionsTemplate\"></ng-container>\n\n <ng-template #optionsGroupTemplate>\n <ng-template\n [ngTemplateOutlet]=\"comboOptionTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, selected: compareObjects(selectedView, option) }\"\n >\n </ng-template>\n </ng-template>\n\n <ng-template #defaultOptionsTemplate>\n <a class=\"po-combo-item\">\n <ng-template\n [ngTemplateOutlet]=\"comboOptionTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option }\"\n >\n </ng-template>\n </a>\n </ng-template>\n </ng-template>\n </li>\n </ul>\n</ng-template>\n\n<ng-template #noDataTemplate>\n <div class=\"po-combo-container-no-data\">\n <div class=\"po-combo-no-data po-text-center\">\n <span *ngIf=\"!isServerSearching\">\n {{ literals.noData }}\n </span>\n </div>\n </div>\n</ng-template>\n" }]
|
|
20066
20168
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i3.DomSanitizer }, { type: PoLanguageService }]; }, { comboOptionTemplate: [{
|
|
20067
20169
|
type: ContentChild,
|
|
20068
20170
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -20629,11 +20731,11 @@ __decorate([
|
|
|
20629
20731
|
args: ['p-locale']
|
|
20630
20732
|
}] }); })();
|
|
20631
20733
|
|
|
20632
|
-
const _c0$
|
|
20633
|
-
const _c1$
|
|
20634
|
-
const _c2$
|
|
20635
|
-
const _c3$
|
|
20636
|
-
const _c4$
|
|
20734
|
+
const _c0$V = ["dateRangeField"];
|
|
20735
|
+
const _c1$n = ["endDateInput"];
|
|
20736
|
+
const _c2$8 = ["startDateInput"];
|
|
20737
|
+
const _c3$3 = ["iconCalendar"];
|
|
20738
|
+
const _c4$1 = ["calendarPicker"];
|
|
20637
20739
|
function PoDatepickerRangeComponent_po_clean_12_Template(rf, ctx) { if (rf & 1) {
|
|
20638
20740
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
20639
20741
|
i0.ɵɵelementStart(0, "po-clean", 15);
|
|
@@ -21063,11 +21165,11 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
21063
21165
|
}
|
|
21064
21166
|
PoDatepickerRangeComponent.ɵfac = function PoDatepickerRangeComponent_Factory(t) { return new (t || PoDatepickerRangeComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
21065
21167
|
PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerRangeComponent, selectors: [["po-datepicker-range"]], viewQuery: function PoDatepickerRangeComponent_Query(rf, ctx) { if (rf & 1) {
|
|
21066
|
-
i0.ɵɵviewQuery(_c0$
|
|
21067
|
-
i0.ɵɵviewQuery(_c1$
|
|
21068
|
-
i0.ɵɵviewQuery(_c2$
|
|
21069
|
-
i0.ɵɵviewQuery(_c3$
|
|
21070
|
-
i0.ɵɵviewQuery(_c4$
|
|
21168
|
+
i0.ɵɵviewQuery(_c0$V, 7, ElementRef);
|
|
21169
|
+
i0.ɵɵviewQuery(_c1$n, 7, ElementRef);
|
|
21170
|
+
i0.ɵɵviewQuery(_c2$8, 7, ElementRef);
|
|
21171
|
+
i0.ɵɵviewQuery(_c3$3, 7, ElementRef);
|
|
21172
|
+
i0.ɵɵviewQuery(_c4$1, 5, ElementRef);
|
|
21071
21173
|
} if (rf & 2) {
|
|
21072
21174
|
let _t;
|
|
21073
21175
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dateRangeField = _t.first);
|
|
@@ -21075,7 +21177,7 @@ PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
21075
21177
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.startDateInput = _t.first);
|
|
21076
21178
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconCalendar = _t.first);
|
|
21077
21179
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendarPicker = _t.first);
|
|
21078
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 18, vars:
|
|
21180
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 18, vars: 27, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-datepicker-range-field", "po-input"], ["dateRangeField", ""], [1, "po-datepicker-range-start-date"], ["maxlength", "10", "type", "text", 1, "po-datepicker-range-input", 3, "autocomplete", "disabled", "name", "readonly", "blur", "focus", "keydown", "keyup", "click"], ["startDateInput", ""], [1, "po-datepicker-range-separator"], [1, "po-datepicker-range-end-date"], ["endDateInput", ""], [1, "po-datepicker-range-icon"], ["class", "po-icon-input", 3, "p-change-event", 4, "ngIf"], [3, "click"], ["iconCalendar", ""], [3, "p-error-pattern"], [4, "ngIf"], [1, "po-icon-input", 3, "p-change-event"], [1, "po-calendar-range-picker"], ["calendarPicker", ""], ["p-mode", "range", 3, "ngModel", "p-max-date", "p-min-date", "p-locale", "ngModelChange"]], template: function PoDatepickerRangeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21079
21181
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1, 2)(3, "div", 3)(4, "input", 4, 5);
|
|
21080
21182
|
i0.ɵɵlistener("blur", function PoDatepickerRangeComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); })("focus", function PoDatepickerRangeComponent_Template_input_focus_4_listener($event) { return ctx.onFocus($event); })("keydown", function PoDatepickerRangeComponent_Template_input_keydown_4_listener($event) { return ctx.onKeydown($event); })("keyup", function PoDatepickerRangeComponent_Template_input_keyup_4_listener($event) { return ctx.onKeyup($event); })("click", function PoDatepickerRangeComponent_Template_input_click_4_listener($event) { return ctx.eventOnClick($event); });
|
|
21081
21183
|
i0.ɵɵelementEnd()();
|
|
@@ -21095,16 +21197,20 @@ PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
21095
21197
|
i0.ɵɵelementEnd();
|
|
21096
21198
|
i0.ɵɵtemplate(17, PoDatepickerRangeComponent_ng_container_17_Template, 4, 4, "ng-container", 14);
|
|
21097
21199
|
} if (rf & 2) {
|
|
21200
|
+
i0.ɵɵclassProp("po-date-picker-container-disabled", ctx.disabled);
|
|
21098
21201
|
i0.ɵɵproperty("p-help", ctx.help)("p-label", ctx.label)("p-optional", !ctx.required && ctx.optional);
|
|
21099
21202
|
i0.ɵɵadvance(1);
|
|
21100
21203
|
i0.ɵɵclassProp("po-datepicker-range-field-disabled", ctx.disabled);
|
|
21204
|
+
i0.ɵɵattribute("disabled", ctx.disabled);
|
|
21101
21205
|
i0.ɵɵadvance(3);
|
|
21102
21206
|
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("name", ctx.startDateInputName)("readonly", ctx.readonly);
|
|
21207
|
+
i0.ɵɵattribute("aria-label", ctx.label);
|
|
21103
21208
|
i0.ɵɵadvance(5);
|
|
21104
21209
|
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("name", ctx.endDateInputName)("readonly", ctx.readonly);
|
|
21105
21210
|
i0.ɵɵadvance(3);
|
|
21106
21211
|
i0.ɵɵproperty("ngIf", ctx.enableCleaner);
|
|
21107
21212
|
i0.ɵɵadvance(2);
|
|
21213
|
+
i0.ɵɵclassMapInterpolate1("po-icon po-field-icon po-icon-calendar ", ctx.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
21108
21214
|
i0.ɵɵclassProp("po-clickable", !ctx.disabled && !ctx.readonly)("po-field-icon-disabled", ctx.disabled || ctx.readonly);
|
|
21109
21215
|
i0.ɵɵadvance(2);
|
|
21110
21216
|
i0.ɵɵproperty("p-error-pattern", ctx.getErrorMessage);
|
|
@@ -21113,7 +21219,7 @@ PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
21113
21219
|
} }, dependencies: [i1.NgIf, i2$1.NgControlStatus, i2$1.NgModel, PoCleanComponent, PoCalendarComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
21114
21220
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerRangeComponent, [{
|
|
21115
21221
|
type: Component,
|
|
21116
|
-
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container
|
|
21222
|
+
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [class.po-date-picker-container-disabled]=\"disabled\"\n [p-help]=\"help\"\n [p-label]=\"label\"\n [p-optional]=\"!required && optional\"\n>\n <div\n #dateRangeField\n class=\"po-datepicker-range-field po-input\"\n [class.po-datepicker-range-field-disabled]=\"disabled\"\n [attr.disabled]=\"disabled\"\n >\n <div class=\"po-datepicker-range-start-date\">\n <input\n #startDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"startDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-separator\">-</div>\n\n <div class=\"po-datepicker-range-end-date\">\n <input\n #endDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"endDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-clean class=\"po-icon-input\" *ngIf=\"enableCleaner\" (p-change-event)=\"clear()\"></po-clean>\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <span\n #iconCalendar\n class=\"po-icon po-field-icon po-icon-calendar {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-clickable]=\"!disabled && !readonly\"\n [class.po-field-icon-disabled]=\"disabled || readonly\"\n (click)=\"toggleCalendar()\"\n >\n </span>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorMessage\"></po-field-container-bottom>\n</po-field-container>\n\n<ng-container *ngIf=\"isCalendarVisible\">\n <div #calendarPicker class=\"po-calendar-range-picker\">\n <po-calendar\n p-mode=\"range\"\n [ngModel]=\"dateRange\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (ngModelChange)=\"onCalendarChange($event)\"\n ></po-calendar>\n </div>\n</ng-container>\n" }]
|
|
21117
21223
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoDateService }, { type: i0.ElementRef }, { type: PoLanguageService }]; }, { dateRangeField: [{
|
|
21118
21224
|
type: ViewChild,
|
|
21119
21225
|
args: ['dateRangeField', { read: ElementRef, static: true }]
|
|
@@ -21521,7 +21627,7 @@ __decorate([
|
|
|
21521
21627
|
args: ['p-mask-format-model']
|
|
21522
21628
|
}] }); })();
|
|
21523
21629
|
|
|
21524
|
-
const _c0$
|
|
21630
|
+
const _c0$U = ["inp"];
|
|
21525
21631
|
function PoDecimalComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
21526
21632
|
i0.ɵɵelementStart(0, "div", 8);
|
|
21527
21633
|
i0.ɵɵelement(1, "po-icon", 9);
|
|
@@ -22112,7 +22218,7 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
22112
22218
|
}
|
|
22113
22219
|
PoDecimalComponent.ɵfac = function PoDecimalComponent_Factory(t) { return new (t || PoDecimalComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
22114
22220
|
PoDecimalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDecimalComponent, selectors: [["po-decimal"]], viewQuery: function PoDecimalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
22115
|
-
i0.ɵɵviewQuery(_c0$
|
|
22221
|
+
i0.ɵɵviewQuery(_c0$U, 7, ElementRef);
|
|
22116
22222
|
} if (rf & 2) {
|
|
22117
22223
|
let _t;
|
|
22118
22224
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -22127,7 +22233,7 @@ PoDecimalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDecima
|
|
|
22127
22233
|
useExisting: forwardRef(() => PoDecimalComponent),
|
|
22128
22234
|
multi: true
|
|
22129
22235
|
}
|
|
22130
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
22236
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 19, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["inputmode", "decimal", "type", "text", 1, "po-input", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "blur", "focus", "input", "keypress"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"]], template: function PoDecimalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22131
22237
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
22132
22238
|
i0.ɵɵtemplate(2, PoDecimalComponent_div_2_Template, 2, 3, "div", 2);
|
|
22133
22239
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
@@ -22144,8 +22250,8 @@ PoDecimalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDecima
|
|
|
22144
22250
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
22145
22251
|
i0.ɵɵadvance(1);
|
|
22146
22252
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon)("po-input-icon-right", ctx.clean);
|
|
22147
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required);
|
|
22148
|
-
i0.ɵɵattribute("max", ctx.max)("min", ctx.min)("name", ctx.name);
|
|
22253
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required);
|
|
22254
|
+
i0.ɵɵattribute("max", ctx.max)("min", ctx.min)("name", ctx.name)("aria-label", ctx.label);
|
|
22149
22255
|
i0.ɵɵadvance(3);
|
|
22150
22256
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
22151
22257
|
i0.ɵɵadvance(1);
|
|
@@ -22164,7 +22270,7 @@ PoDecimalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDecima
|
|
|
22164
22270
|
useExisting: forwardRef(() => PoDecimalComponent),
|
|
22165
22271
|
multi: true
|
|
22166
22272
|
}
|
|
22167
|
-
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n inputmode=\"decimal\"\n type=\"text\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (input)=\"onInput($event)\"\n (keypress)=\"onKeyPress($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean
|
|
22273
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n inputmode=\"decimal\"\n type=\"text\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (input)=\"onInput($event)\"\n (keypress)=\"onKeyPress($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPatternMessage()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
22168
22274
|
}], function () { return [{ type: i0.ElementRef }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }]; }, { inputEl: [{
|
|
22169
22275
|
type: ViewChild,
|
|
22170
22276
|
args: ['inp', { read: ElementRef, static: true }]
|
|
@@ -22185,7 +22291,7 @@ PoDecimalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDecima
|
|
|
22185
22291
|
args: ['p-max']
|
|
22186
22292
|
}] }); })();
|
|
22187
22293
|
|
|
22188
|
-
const _c0$
|
|
22294
|
+
const _c0$T = ["inp"];
|
|
22189
22295
|
/* eslint-disable @angular-eslint/directive-class-suffix */
|
|
22190
22296
|
class PoInputGeneric extends PoInputBaseComponent {
|
|
22191
22297
|
constructor(el, cd) {
|
|
@@ -22359,7 +22465,7 @@ class PoInputGeneric extends PoInputBaseComponent {
|
|
|
22359
22465
|
}
|
|
22360
22466
|
PoInputGeneric.ɵfac = function PoInputGeneric_Factory(t) { return new (t || PoInputGeneric)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
22361
22467
|
PoInputGeneric.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoInputGeneric, viewQuery: function PoInputGeneric_Query(rf, ctx) { if (rf & 1) {
|
|
22362
|
-
i0.ɵɵviewQuery(_c0$
|
|
22468
|
+
i0.ɵɵviewQuery(_c0$T, 7, ElementRef);
|
|
22363
22469
|
} if (rf & 2) {
|
|
22364
22470
|
let _t;
|
|
22365
22471
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -22386,6 +22492,7 @@ function PoEmailComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
22386
22492
|
} if (rf & 2) {
|
|
22387
22493
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
22388
22494
|
i0.ɵɵadvance(1);
|
|
22495
|
+
i0.ɵɵclassMapInterpolate1("po-field-icon ", ctx_r0.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
22389
22496
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r0.disabled);
|
|
22390
22497
|
i0.ɵɵproperty("p-icon", ctx_r0.icon);
|
|
22391
22498
|
} }
|
|
@@ -22396,6 +22503,7 @@ function PoEmailComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
22396
22503
|
i0.ɵɵelementEnd();
|
|
22397
22504
|
} if (rf & 2) {
|
|
22398
22505
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
22506
|
+
i0.ɵɵclassMap(ctx_r2.disabled ? "po-icon-input-disabled" : "po-icon-input");
|
|
22399
22507
|
i0.ɵɵproperty("p-element-ref", ctx_r2.inputEl);
|
|
22400
22508
|
} }
|
|
22401
22509
|
/* istanbul ignore next */
|
|
@@ -22489,14 +22597,14 @@ class PoEmailComponent extends PoInputGeneric {
|
|
|
22489
22597
|
}
|
|
22490
22598
|
}
|
|
22491
22599
|
PoEmailComponent.ɵfac = function PoEmailComponent_Factory(t) { return new (t || PoEmailComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
22492
|
-
PoEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoEmailComponent, selectors: [["po-email"]], features: [i0.ɵɵProvidersFeature(providers$4), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
22600
|
+
PoEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoEmailComponent, selectors: [["po-email"]], features: [i0.ɵɵProvidersFeature(providers$4), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 18, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], [1, "po-input", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "type", "blur", "click", "focus", "input"], ["inp", ""], [1, "po-field-icon-container-right"], [3, "class", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-field-icon-container-left"], [3, "p-icon"], [3, "p-element-ref", "p-change-event"]], template: function PoEmailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22493
22601
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
22494
|
-
i0.ɵɵtemplate(2, PoEmailComponent_div_2_Template, 2,
|
|
22602
|
+
i0.ɵɵtemplate(2, PoEmailComponent_div_2_Template, 2, 6, "div", 2);
|
|
22495
22603
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
22496
22604
|
i0.ɵɵlistener("blur", function PoEmailComponent_Template_input_blur_3_listener($event) { return ctx.eventOnBlur($event); })("click", function PoEmailComponent_Template_input_click_3_listener($event) { return ctx.eventOnClick($event); })("focus", function PoEmailComponent_Template_input_focus_3_listener($event) { return ctx.eventOnFocus($event); })("input", function PoEmailComponent_Template_input_input_3_listener($event) { return ctx.eventOnInput($event); });
|
|
22497
22605
|
i0.ɵɵelementEnd();
|
|
22498
22606
|
i0.ɵɵelementStart(5, "div", 5);
|
|
22499
|
-
i0.ɵɵtemplate(6, PoEmailComponent_po_clean_6_Template, 1,
|
|
22607
|
+
i0.ɵɵtemplate(6, PoEmailComponent_po_clean_6_Template, 1, 4, "po-clean", 6);
|
|
22500
22608
|
i0.ɵɵelementEnd()();
|
|
22501
22609
|
i0.ɵɵelement(7, "po-field-container-bottom", 7);
|
|
22502
22610
|
i0.ɵɵelementEnd();
|
|
@@ -22506,8 +22614,8 @@ PoEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoEmailCom
|
|
|
22506
22614
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
22507
22615
|
i0.ɵɵadvance(1);
|
|
22508
22616
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon)("po-input-icon-right", ctx.clean);
|
|
22509
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
22510
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
22617
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
22618
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
22511
22619
|
i0.ɵɵadvance(3);
|
|
22512
22620
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
22513
22621
|
i0.ɵɵadvance(1);
|
|
@@ -22515,12 +22623,12 @@ PoEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoEmailCom
|
|
|
22515
22623
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
22516
22624
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoEmailComponent, [{
|
|
22517
22625
|
type: Component,
|
|
22518
|
-
args: [{ selector: 'po-email', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$4, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon
|
|
22626
|
+
args: [{ selector: 'po-email', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$4, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [attr.aria-label]=\"label\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPattern()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
22519
22627
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
22520
22628
|
|
|
22521
22629
|
function PoLoginComponent_po_clean_7_Template(rf, ctx) { if (rf & 1) {
|
|
22522
22630
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
22523
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
22631
|
+
i0.ɵɵelementStart(0, "po-clean", 8);
|
|
22524
22632
|
i0.ɵɵlistener("p-change-event", function PoLoginComponent_po_clean_7_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.clear($event)); });
|
|
22525
22633
|
i0.ɵɵelementEnd();
|
|
22526
22634
|
} if (rf & 2) {
|
|
@@ -22577,26 +22685,27 @@ class PoLoginComponent extends PoInputGeneric {
|
|
|
22577
22685
|
}
|
|
22578
22686
|
}
|
|
22579
22687
|
PoLoginComponent.ɵfac = function PoLoginComponent_Factory(t) { return new (t || PoLoginComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
22580
|
-
PoLoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLoginComponent, selectors: [["po-login"]], features: [i0.ɵɵProvidersFeature(providers$3), i0.ɵɵInheritDefinitionFeature], decls: 9, vars:
|
|
22688
|
+
PoLoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLoginComponent, selectors: [["po-login"]], features: [i0.ɵɵProvidersFeature(providers$3), i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 20, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], [1, "po-field-icon-container-left"], [1, "po-input", "po-input-icon-left", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "type", "blur", "click", "focus", "input"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"]], template: function PoLoginComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22581
22689
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2);
|
|
22582
|
-
i0.ɵɵelement(3, "span"
|
|
22690
|
+
i0.ɵɵelement(3, "span");
|
|
22583
22691
|
i0.ɵɵelementEnd();
|
|
22584
|
-
i0.ɵɵelementStart(4, "input",
|
|
22692
|
+
i0.ɵɵelementStart(4, "input", 3, 4);
|
|
22585
22693
|
i0.ɵɵlistener("blur", function PoLoginComponent_Template_input_blur_4_listener($event) { return ctx.eventOnBlur($event); })("click", function PoLoginComponent_Template_input_click_4_listener($event) { return ctx.eventOnClick($event); })("focus", function PoLoginComponent_Template_input_focus_4_listener($event) { return ctx.eventOnFocus($event); })("input", function PoLoginComponent_Template_input_input_4_listener($event) { return ctx.eventOnInput($event); });
|
|
22586
22694
|
i0.ɵɵelementEnd();
|
|
22587
|
-
i0.ɵɵelementStart(6, "div",
|
|
22588
|
-
i0.ɵɵtemplate(7, PoLoginComponent_po_clean_7_Template, 1, 1, "po-clean",
|
|
22695
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
22696
|
+
i0.ɵɵtemplate(7, PoLoginComponent_po_clean_7_Template, 1, 1, "po-clean", 6);
|
|
22589
22697
|
i0.ɵɵelementEnd()();
|
|
22590
|
-
i0.ɵɵelement(8, "po-field-container-bottom",
|
|
22698
|
+
i0.ɵɵelement(8, "po-field-container-bottom", 7);
|
|
22591
22699
|
i0.ɵɵelementEnd();
|
|
22592
22700
|
} if (rf & 2) {
|
|
22593
22701
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help)("p-optional", !ctx.required && ctx.optional);
|
|
22594
22702
|
i0.ɵɵadvance(3);
|
|
22703
|
+
i0.ɵɵclassMapInterpolate1("po-icon po-field-icon po-icon-user ", ctx.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
22595
22704
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx.disabled);
|
|
22596
22705
|
i0.ɵɵadvance(1);
|
|
22597
22706
|
i0.ɵɵclassProp("po-input-icon-right", ctx.clean);
|
|
22598
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
22599
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
22707
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
22708
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
22600
22709
|
i0.ɵɵadvance(3);
|
|
22601
22710
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
22602
22711
|
i0.ɵɵadvance(1);
|
|
@@ -22604,7 +22713,7 @@ PoLoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLoginCom
|
|
|
22604
22713
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
22605
22714
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLoginComponent, [{
|
|
22606
22715
|
type: Component,
|
|
22607
|
-
args: [{ selector: 'po-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$3, template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <span
|
|
22716
|
+
args: [{ selector: 'po-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$3, template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <span\n class=\"po-icon po-field-icon po-icon-user {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n ></span>\n </div>\n\n <input\n #inp\n class=\"po-input po-input-icon-left\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPattern()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
22608
22717
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
22609
22718
|
|
|
22610
22719
|
/**
|
|
@@ -23818,8 +23927,8 @@ PoDynamicFormValidationService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({
|
|
|
23818
23927
|
type: Injectable
|
|
23819
23928
|
}], function () { return [{ type: i1$1.HttpClient }]; }, null); })();
|
|
23820
23929
|
|
|
23821
|
-
const _c0$
|
|
23822
|
-
const _c1$
|
|
23930
|
+
const _c0$S = ["fieldsComponent"];
|
|
23931
|
+
const _c1$m = ["dynamicForm"];
|
|
23823
23932
|
function PoDynamicFormComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
23824
23933
|
i0.ɵɵelementContainer(0);
|
|
23825
23934
|
} }
|
|
@@ -23987,8 +24096,8 @@ class PoDynamicFormComponent extends PoDynamicFormBaseComponent {
|
|
|
23987
24096
|
}
|
|
23988
24097
|
PoDynamicFormComponent.ɵfac = function PoDynamicFormComponent_Factory(t) { return new (t || PoDynamicFormComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoDynamicFormLoadService), i0.ɵɵdirectiveInject(PoDynamicFormValidationService)); };
|
|
23989
24098
|
PoDynamicFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDynamicFormComponent, selectors: [["po-dynamic-form"]], viewQuery: function PoDynamicFormComponent_Query(rf, ctx) { if (rf & 1) {
|
|
23990
|
-
i0.ɵɵviewQuery(_c0$
|
|
23991
|
-
i0.ɵɵviewQuery(_c1$
|
|
24099
|
+
i0.ɵɵviewQuery(_c0$S, 5);
|
|
24100
|
+
i0.ɵɵviewQuery(_c1$m, 5);
|
|
23992
24101
|
} if (rf & 2) {
|
|
23993
24102
|
let _t;
|
|
23994
24103
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldsComponent = _t.first);
|
|
@@ -24013,8 +24122,8 @@ PoDynamicFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDy
|
|
|
24013
24122
|
args: ['dynamicForm']
|
|
24014
24123
|
}] }); })();
|
|
24015
24124
|
|
|
24016
|
-
const _c0$
|
|
24017
|
-
const _c1$
|
|
24125
|
+
const _c0$R = ["inpsearch"];
|
|
24126
|
+
const _c1$l = ["container"];
|
|
24018
24127
|
function PoLookupModalComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
24019
24128
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
24020
24129
|
i0.ɵɵelementStart(0, "div", 16)(1, "span", 17);
|
|
@@ -24089,7 +24198,7 @@ class PoLookupModalComponent extends PoLookupModalBaseComponent {
|
|
|
24089
24198
|
this.selecteds = [];
|
|
24090
24199
|
}
|
|
24091
24200
|
initializeEventInput() {
|
|
24092
|
-
this.keyUpObservable = fromEvent(this.inputSearchEl.nativeElement, 'keyup').pipe(filter((e) => this.validateEnterPressed(e)), debounceTime(400));
|
|
24201
|
+
this.keyUpObservable = fromEvent(this.inputSearchEl.nativeElement, 'keyup').pipe(filter$1((e) => this.validateEnterPressed(e)), debounceTime(400));
|
|
24093
24202
|
this.keyUpObservable.subscribe(() => {
|
|
24094
24203
|
this.search();
|
|
24095
24204
|
});
|
|
@@ -24153,14 +24262,14 @@ class PoLookupModalComponent extends PoLookupModalBaseComponent {
|
|
|
24153
24262
|
PoLookupModalComponent.ɵfac = function PoLookupModalComponent_Factory(t) { return new (t || PoLookupModalComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
24154
24263
|
PoLookupModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLookupModalComponent, selectors: [["po-lookup-modal"]], viewQuery: function PoLookupModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
24155
24264
|
i0.ɵɵviewQuery(PoTableComponent, 7);
|
|
24156
|
-
i0.ɵɵviewQuery(_c0$
|
|
24157
|
-
i0.ɵɵviewQuery(_c1$
|
|
24265
|
+
i0.ɵɵviewQuery(_c0$R, 5);
|
|
24266
|
+
i0.ɵɵviewQuery(_c1$l, 5, ViewContainerRef);
|
|
24158
24267
|
} if (rf & 2) {
|
|
24159
24268
|
let _t;
|
|
24160
24269
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTable = _t.first);
|
|
24161
24270
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputSearchEl = _t.first);
|
|
24162
24271
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
24163
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 24, consts: [["p-click-out", "false", "p-hide-close", "false", "p-size", "lg", 3, "p-primary-action", "p-secondary-action", "p-title"], [3, "hidden"], [1, "po-lookup-header", "po-pull-right", 3, "p-optional"], [1, "po-lookup-filter-content"], [1, "po-field-icon-container-right"], [1, "po-icon", "po-field-icon", "po-icon-search", 3, "click"], ["iconLookup", ""], ["name", "contentSearch", "type", "text", 1, "po-input", "po-input-icon-right", 3, "ngModel", "placeholder", "ngModelChange"], ["inpsearch", ""], ["class", "po-lookup-advanced-search", 4, "ngIf"], ["class", "po-md-12", 3, "p-disclaimers", "p-title", "p-change", 4, "ngIf"], [1, "po-row", "po-lookup-container-table"], [1, "po-md-12", 3, "p-selectable", "p-hide-detail", "p-single-select", "p-sort", "p-columns", "p-height", "p-items", "p-literals", "p-loading", "p-show-more-disabled", "p-infinite-scroll", "p-selected", "p-unselected", "p-all-selected", "p-all-unselected", "p-show-more", "p-sort-by", "p-change-visible-columns", "p-restore-column-manager"], ["poTable", ""], ["class", "po-md-12", 3, "p-disclaimers", "p-remove", "p-remove-all", 4, "ngIf"], ["container", ""], [1, "po-lookup-advanced-search"], ["tabindex", "0", "tabindex", "0", 1, "po-lookup-advanced-search-link", 3, "click", "keydown.enter"], [1, "po-md-12", 3, "p-disclaimers", "p-title", "p-change"], [1, "po-md-12", 3, "p-disclaimers", "p-remove", "p-remove-all"]], template: function PoLookupModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24272
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 24, consts: [["p-click-out", "false", "p-hide-close", "false", "p-size", "lg", 3, "p-primary-action", "p-secondary-action", "p-title"], [3, "hidden"], [1, "po-lookup-header", "po-pull-right", 3, "p-optional"], [1, "po-lookup-filter-content"], [1, "po-field-icon-container-right"], [1, "po-icon", "po-field-icon", "po-icon-search", "po-icon-input", 3, "click"], ["iconLookup", ""], ["name", "contentSearch", "type", "text", 1, "po-input", "po-input-icon-right", 3, "ngModel", "placeholder", "ngModelChange"], ["inpsearch", ""], ["class", "po-lookup-advanced-search", 4, "ngIf"], ["class", "po-md-12", 3, "p-disclaimers", "p-title", "p-change", 4, "ngIf"], [1, "po-row", "po-lookup-container-table"], [1, "po-md-12", 3, "p-selectable", "p-hide-detail", "p-single-select", "p-sort", "p-columns", "p-height", "p-items", "p-literals", "p-loading", "p-show-more-disabled", "p-infinite-scroll", "p-selected", "p-unselected", "p-all-selected", "p-all-unselected", "p-show-more", "p-sort-by", "p-change-visible-columns", "p-restore-column-manager"], ["poTable", ""], ["class", "po-md-12", 3, "p-disclaimers", "p-remove", "p-remove-all", 4, "ngIf"], ["container", ""], [1, "po-lookup-advanced-search"], ["tabindex", "0", "tabindex", "0", 1, "po-lookup-advanced-search-link", "po-icon-input", 3, "click", "keydown.enter"], [1, "po-md-12", 3, "p-disclaimers", "p-title", "p-change"], [1, "po-md-12", 3, "p-disclaimers", "p-remove", "p-remove-all"]], template: function PoLookupModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24164
24273
|
i0.ɵɵelementStart(0, "po-modal", 0)(1, "div", 1)(2, "po-field-container", 2)(3, "div", 3)(4, "div", 4)(5, "span", 5, 6);
|
|
24165
24274
|
i0.ɵɵlistener("click", function PoLookupModalComponent_Template_span_click_5_listener() { return ctx.search(); });
|
|
24166
24275
|
i0.ɵɵelementEnd()();
|
|
@@ -24201,7 +24310,7 @@ PoLookupModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLo
|
|
|
24201
24310
|
} }, dependencies: [i1.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.NgModel, PoDisclaimerGroupComponent, PoFieldContainerComponent, PoModalComponent, PoTableComponent], encapsulation: 2, changeDetection: 0 });
|
|
24202
24311
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupModalComponent, [{
|
|
24203
24312
|
type: Component,
|
|
24204
|
-
args: [{ selector: 'po-lookup-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-modal\n p-click-out=\"false\"\n p-hide-close=\"false\"\n p-size=\"lg\"\n [p-primary-action]=\"isAdvancedFilter ? primaryActionAdvancedFilter : primaryAction\"\n [p-secondary-action]=\"isAdvancedFilter ? secondaryActionAdvancedFilter : secondaryAction\"\n [p-title]=\"isAdvancedFilter ? advancedFilterModalTitle : title\"\n>\n <div [hidden]=\"isAdvancedFilter\">\n <po-field-container class=\"po-lookup-header po-pull-right\" [p-optional]=\"false\">\n <div class=\"po-lookup-filter-content\">\n <div class=\"po-field-icon-container-right\">\n <span #iconLookup class=\"po-icon po-field-icon po-icon-search\" (click)=\"search()\"> </span>\n </div>\n\n <input\n #inpsearch\n class=\"po-input po-input-icon-right\"\n name=\"contentSearch\"\n [(ngModel)]=\"searchValue\"\n [placeholder]=\"literals.modalPlaceholder\"\n type=\"text\"\n />\n </div>\n\n <div *ngIf=\"advancedFilters && advancedFilters.length > 0\" class=\"po-lookup-advanced-search\">\n <span\n class=\"po-lookup-advanced-search-link\"\n tabindex=\"0\"\n (click)=\"onAdvancedFilter()\"\n (keydown.enter)=\"onAdvancedFilter()\"\n tabindex=\"0\"\n >\n {{ literals.modalAdvancedSearch }}\n </span>\n </div>\n </po-field-container>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"!!disclaimerGroup\"\n class=\"po-md-12\"\n [p-disclaimers]=\"disclaimerGroup?.disclaimers\"\n [p-title]=\"disclaimerGroup?.title\"\n (p-change)=\"onChangeDisclaimerGroup()\"\n >\n </po-disclaimer-group>\n\n <div class=\"po-row po-lookup-container-table\" [style.height.px]=\"containerHeight\">\n <po-table\n #poTable\n class=\"po-md-12\"\n [p-selectable]=\"true\"\n [p-hide-detail]=\"true\"\n [p-single-select]=\"!multiple\"\n [p-sort]=\"true\"\n [p-columns]=\"columns\"\n [p-height]=\"tableHeight\"\n [p-items]=\"items\"\n [p-literals]=\"tableLiterals\"\n [p-loading]=\"isLoading\"\n [p-show-more-disabled]=\"!hasNext\"\n [p-infinite-scroll]=\"infiniteScroll\"\n (p-selected)=\"onSelect($event)\"\n (p-unselected)=\"onUnselect($event)\"\n (p-all-selected)=\"onAllSelected($event)\"\n (p-all-unselected)=\"onAllUnselected($event)\"\n (p-show-more)=\"showMoreEvent()\"\n (p-sort-by)=\"sortBy($event)\"\n (p-change-visible-columns)=\"changeVisibleColumns.emit($event)\"\n (p-restore-column-manager)=\"columnRestoreManager.emit($event)\"\n >\n </po-table>\n </div>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"multiple\"\n class=\"po-md-12\"\n [p-disclaimers]=\"selecteds\"\n (p-remove)=\"onUnselectFromDisclaimer($event.removedDisclaimer)\"\n (p-remove-all)=\"onAllUnselected($event)\"\n >\n </po-disclaimer-group>\n </div>\n <div [hidden]=\"!isAdvancedFilter\">\n <ng-container #container> </ng-container>\n </div>\n</po-modal>\n" }]
|
|
24313
|
+
args: [{ selector: 'po-lookup-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-modal\n p-click-out=\"false\"\n p-hide-close=\"false\"\n p-size=\"lg\"\n [p-primary-action]=\"isAdvancedFilter ? primaryActionAdvancedFilter : primaryAction\"\n [p-secondary-action]=\"isAdvancedFilter ? secondaryActionAdvancedFilter : secondaryAction\"\n [p-title]=\"isAdvancedFilter ? advancedFilterModalTitle : title\"\n>\n <div [hidden]=\"isAdvancedFilter\">\n <po-field-container class=\"po-lookup-header po-pull-right\" [p-optional]=\"false\">\n <div class=\"po-lookup-filter-content\">\n <div class=\"po-field-icon-container-right\">\n <span #iconLookup class=\"po-icon po-field-icon po-icon-search po-icon-input\" (click)=\"search()\"> </span>\n </div>\n\n <input\n #inpsearch\n class=\"po-input po-input-icon-right\"\n name=\"contentSearch\"\n [(ngModel)]=\"searchValue\"\n [placeholder]=\"literals.modalPlaceholder\"\n type=\"text\"\n />\n </div>\n\n <div *ngIf=\"advancedFilters && advancedFilters.length > 0\" class=\"po-lookup-advanced-search\">\n <span\n class=\"po-lookup-advanced-search-link po-icon-input\"\n tabindex=\"0\"\n (click)=\"onAdvancedFilter()\"\n (keydown.enter)=\"onAdvancedFilter()\"\n tabindex=\"0\"\n >\n {{ literals.modalAdvancedSearch }}\n </span>\n </div>\n </po-field-container>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"!!disclaimerGroup\"\n class=\"po-md-12\"\n [p-disclaimers]=\"disclaimerGroup?.disclaimers\"\n [p-title]=\"disclaimerGroup?.title\"\n (p-change)=\"onChangeDisclaimerGroup()\"\n >\n </po-disclaimer-group>\n\n <div class=\"po-row po-lookup-container-table\" [style.height.px]=\"containerHeight\">\n <po-table\n #poTable\n class=\"po-md-12\"\n [p-selectable]=\"true\"\n [p-hide-detail]=\"true\"\n [p-single-select]=\"!multiple\"\n [p-sort]=\"true\"\n [p-columns]=\"columns\"\n [p-height]=\"tableHeight\"\n [p-items]=\"items\"\n [p-literals]=\"tableLiterals\"\n [p-loading]=\"isLoading\"\n [p-show-more-disabled]=\"!hasNext\"\n [p-infinite-scroll]=\"infiniteScroll\"\n (p-selected)=\"onSelect($event)\"\n (p-unselected)=\"onUnselect($event)\"\n (p-all-selected)=\"onAllSelected($event)\"\n (p-all-unselected)=\"onAllUnselected($event)\"\n (p-show-more)=\"showMoreEvent()\"\n (p-sort-by)=\"sortBy($event)\"\n (p-change-visible-columns)=\"changeVisibleColumns.emit($event)\"\n (p-restore-column-manager)=\"columnRestoreManager.emit($event)\"\n >\n </po-table>\n </div>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"multiple\"\n class=\"po-md-12\"\n [p-disclaimers]=\"selecteds\"\n (p-remove)=\"onUnselectFromDisclaimer($event.removedDisclaimer)\"\n (p-remove-all)=\"onAllUnselected($event)\"\n >\n </po-disclaimer-group>\n </div>\n <div [hidden]=\"!isAdvancedFilter\">\n <ng-container #container> </ng-container>\n </div>\n</po-modal>\n" }]
|
|
24205
24314
|
}], function () { return [{ type: i0.ComponentFactoryResolver }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }]; }, { poTable: [{
|
|
24206
24315
|
type: ViewChild,
|
|
24207
24316
|
args: [PoTableComponent, { static: true }]
|
|
@@ -24275,7 +24384,7 @@ PoLookupModalService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoL
|
|
|
24275
24384
|
type: Injectable
|
|
24276
24385
|
}], function () { return [{ type: PoComponentInjectorService }]; }, null); })();
|
|
24277
24386
|
|
|
24278
|
-
const _c0$
|
|
24387
|
+
const _c0$Q = ["inp"];
|
|
24279
24388
|
function PoLookupComponent_div_1_po_clean_4_Template(rf, ctx) { if (rf & 1) {
|
|
24280
24389
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
24281
24390
|
i0.ɵɵelementStart(0, "po-clean", 10);
|
|
@@ -24299,7 +24408,8 @@ function PoLookupComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
24299
24408
|
const _r3 = i0.ɵɵreference(2);
|
|
24300
24409
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
24301
24410
|
i0.ɵɵadvance(1);
|
|
24302
|
-
i0.ɵɵproperty("ngClass", ctx_r0.clean && _r3.value ? "po-input-double-icon-right" : "po-input-icon-right")("autocomplete", ctx_r0.autocomplete)("disabled", ctx_r0.disabled)("placeholder", ctx_r0.placeholder)("required", ctx_r0.required);
|
|
24411
|
+
i0.ɵɵproperty("ngClass", ctx_r0.clean && _r3.value ? "po-input-double-icon-right" : "po-input-icon-right")("autocomplete", ctx_r0.autocomplete)("disabled", ctx_r0.disabled)("placeholder", ctx_r0.disabled ? "" : ctx_r0.placeholder)("required", ctx_r0.required);
|
|
24412
|
+
i0.ɵɵattribute("aria-label", ctx_r0.label);
|
|
24303
24413
|
i0.ɵɵadvance(3);
|
|
24304
24414
|
i0.ɵɵproperty("ngIf", ctx_r0.clean && !ctx_r0.disabled);
|
|
24305
24415
|
i0.ɵɵadvance(1);
|
|
@@ -24670,13 +24780,13 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
24670
24780
|
}
|
|
24671
24781
|
PoLookupComponent.ɵfac = function PoLookupComponent_Factory(t) { return new (t || PoLookupComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoLookupFilterService), i0.ɵɵdirectiveInject(PoLookupModalService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Injector)); };
|
|
24672
24782
|
PoLookupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLookupComponent, selectors: [["po-lookup"]], viewQuery: function PoLookupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
24673
|
-
i0.ɵɵviewQuery(_c0$
|
|
24783
|
+
i0.ɵɵviewQuery(_c0$Q, 5, ElementRef);
|
|
24674
24784
|
} if (rf & 2) {
|
|
24675
24785
|
let _t;
|
|
24676
24786
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
24677
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$2), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 5, consts: [[3, "p-label", "p-help", "p-optional"], ["class", "po-field-container-content", 4, "ngIf", "ngIfElse"], ["disclaimersTemplate", ""], [1, "po-field-container-content"], ["type", "text", 1, "po-input", 3, "ngClass", "autocomplete", "disabled", "placeholder", "required", "blur"], ["inp", ""], [1, "po-field-icon-container-right"], [3, "p-element-ref", "p-change-event", 4, "ngIf"], ["tabindex", "-1", 1, "po-icon", "po-field-icon", "po-icon-search", 3, "click", "focus"], ["iconLookup", ""], [3, "p-element-ref", "p-change-event"], [1, "po-input", "po-input-icon-right", "po-lookup-input", 3, "tabindex"], ["class", "po-lookup-input-placeholder", 4, "ngIf"], ["class", "po-lookup-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "po-clickable", "p-close-action", 4, "ngFor", "ngForOf"], [1, "po-lookup-input-placeholder"], [1, "po-lookup-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "p-close-action"]], template: function PoLookupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24787
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$2), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 5, consts: [[3, "p-label", "p-help", "p-optional"], ["class", "po-field-container-content", 4, "ngIf", "ngIfElse"], ["disclaimersTemplate", ""], [1, "po-field-container-content"], ["type", "text", 1, "po-input", 3, "ngClass", "autocomplete", "disabled", "placeholder", "required", "blur"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], ["tabindex", "-1", 1, "po-icon", "po-field-icon", "po-icon-search", "po-icon-input", 3, "click", "focus"], ["iconLookup", ""], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"], [1, "po-input", "po-input-icon-right", "po-lookup-input", "po-icon-input", 3, "tabindex"], ["class", "po-lookup-input-placeholder", 4, "ngIf"], ["class", "po-lookup-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "po-clickable", "p-close-action", 4, "ngFor", "ngForOf"], [1, "po-lookup-input-placeholder"], [1, "po-lookup-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "p-close-action"]], template: function PoLookupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24678
24788
|
i0.ɵɵelementStart(0, "po-field-container", 0);
|
|
24679
|
-
i0.ɵɵtemplate(1, PoLookupComponent_div_1_Template, 7,
|
|
24789
|
+
i0.ɵɵtemplate(1, PoLookupComponent_div_1_Template, 7, 11, "div", 1);
|
|
24680
24790
|
i0.ɵɵelement(2, "po-field-container-bottom");
|
|
24681
24791
|
i0.ɵɵelementEnd();
|
|
24682
24792
|
i0.ɵɵtemplate(3, PoLookupComponent_ng_template_3_Template, 8, 13, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
@@ -24688,15 +24798,15 @@ PoLookupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLookupC
|
|
|
24688
24798
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, PoCleanComponent, PoDisclaimerComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
24689
24799
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupComponent, [{
|
|
24690
24800
|
type: Component,
|
|
24691
|
-
args: [{ selector: 'po-lookup', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$2, template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" *ngIf=\"!disclaimers.length; else disclaimersTemplate\">\n <input\n #inp\n class=\"po-input\"\n type=\"text\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n (blur)=\"searchEvent()\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean
|
|
24801
|
+
args: [{ selector: 'po-lookup', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$2, template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" *ngIf=\"!disclaimers.length; else disclaimersTemplate\">\n <input\n #inp\n class=\"po-input\"\n type=\"text\"\n [attr.aria-label]=\"label\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [required]=\"required\"\n (blur)=\"searchEvent()\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"cleanModel()\"\n >\n </po-clean>\n\n <span\n #iconLookup\n class=\"po-icon po-field-icon po-icon-search po-icon-input\"\n tabindex=\"-1\"\n [class.po-field-icon]=\"!disabled\"\n [class.po-field-icon-disabled]=\"disabled\"\n (click)=\"openLookup()\"\n (focus)=\"inp.focus()\"\n >\n </span>\n </div>\n </div>\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n\n<ng-template #disclaimersTemplate>\n <div class=\"po-field-container-content\">\n <div\n #inp\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-input po-input-icon-right po-lookup-input po-icon-input\"\n [class.po-lookup-input-auto]=\"autoHeight\"\n [class.po-lookup-input-static]=\"!autoHeight\"\n [class.po-lookup-input-disabled]=\"disabled\"\n >\n <span *ngIf=\"placeholder && !disclaimers?.length\" class=\"po-lookup-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-lookup-input-disclaimer\"\n [p-label]=\"disclaimer.label\"\n [p-value]=\"disclaimer.value\"\n [p-hide-close]=\"disclaimer.value === '' || disabled\"\n [class.po-clickable]=\"disclaimer.value === '' && !disabled\"\n (p-close-action)=\"closeDisclaimer(disclaimer.value)\"\n >\n </po-disclaimer>\n </div>\n\n <div class=\"po-field-icon-container-right\">\n <span\n #iconLookup\n class=\"po-icon po-field-icon po-icon-search po-icon-input\"\n tabindex=\"-1\"\n [class.po-field-icon]=\"!disabled\"\n [class.po-field-icon-disabled]=\"disabled\"\n (click)=\"openLookup()\"\n (focus)=\"inp.focus()\"\n >\n </span>\n </div>\n </div>\n</ng-template>\n" }]
|
|
24692
24802
|
}], function () { return [{ type: i0.Renderer2 }, { type: PoLookupFilterService }, { type: PoLookupModalService }, { type: i0.ChangeDetectorRef }, { type: i0.Injector }]; }, { inputEl: [{
|
|
24693
24803
|
type: ViewChild,
|
|
24694
24804
|
args: ['inp', { read: ElementRef, static: false }]
|
|
24695
24805
|
}] }); })();
|
|
24696
24806
|
|
|
24697
|
-
const _c0$
|
|
24698
|
-
const _c1$
|
|
24699
|
-
const _c2$
|
|
24807
|
+
const _c0$P = ["container"];
|
|
24808
|
+
const _c1$k = ["ulElement"];
|
|
24809
|
+
const _c2$7 = ["searchElement"];
|
|
24700
24810
|
function PoMultiselectDropdownComponent_po_multiselect_search_2_Template(rf, ctx) { if (rf & 1) {
|
|
24701
24811
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
24702
24812
|
i0.ɵɵelementStart(0, "po-multiselect-search", 8, 9);
|
|
@@ -24704,7 +24814,7 @@ function PoMultiselectDropdownComponent_po_multiselect_search_2_Template(rf, ctx
|
|
|
24704
24814
|
i0.ɵɵelementEnd();
|
|
24705
24815
|
} if (rf & 2) {
|
|
24706
24816
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
24707
|
-
i0.ɵɵproperty("p-literals", ctx_r1.literals)("p-placeholder", ctx_r1.placeholderSearch);
|
|
24817
|
+
i0.ɵɵproperty("p-literals", ctx_r1.literals)("p-field-value", ctx_r1.fieldValue)("p-placeholder", ctx_r1.placeholderSearch);
|
|
24708
24818
|
} }
|
|
24709
24819
|
function PoMultiselectDropdownComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
24710
24820
|
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
@@ -24737,7 +24847,7 @@ function PoMultiselectDropdownComponent_ng_container_7_po_multiselect_item_2_Tem
|
|
|
24737
24847
|
} if (rf & 2) {
|
|
24738
24848
|
const option_r13 = ctx.$implicit;
|
|
24739
24849
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
24740
|
-
i0.ɵɵproperty("p-label", option_r13.
|
|
24850
|
+
i0.ɵɵproperty("p-label", option_r13[ctx_r10.fieldLabel])("p-selected", ctx_r10.isSelectedItem(option_r13));
|
|
24741
24851
|
} }
|
|
24742
24852
|
function PoMultiselectDropdownComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
24743
24853
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -24799,7 +24909,7 @@ class PoMultiselectDropdownComponent {
|
|
|
24799
24909
|
this.cd.markForCheck();
|
|
24800
24910
|
}
|
|
24801
24911
|
isSelectedItem(option) {
|
|
24802
|
-
return this.selectedOptions.some(selectedItem => selectedItem.
|
|
24912
|
+
return this.selectedOptions.some(selectedItem => selectedItem[this.fieldValue] === option[this.fieldValue]);
|
|
24803
24913
|
}
|
|
24804
24914
|
clickItem(check, option) {
|
|
24805
24915
|
this.updateSelectedValues(check, option);
|
|
@@ -24808,7 +24918,7 @@ class PoMultiselectDropdownComponent {
|
|
|
24808
24918
|
}
|
|
24809
24919
|
}
|
|
24810
24920
|
onClickSelectAll() {
|
|
24811
|
-
const selectedValues = this.selectedOptions.map(({ value }) => value);
|
|
24921
|
+
const selectedValues = this.selectedOptions.map(({ [this.fieldValue]: value }) => value);
|
|
24812
24922
|
if (this.everyVisibleOptionsSelected(selectedValues)) {
|
|
24813
24923
|
this.selectedOptions = [];
|
|
24814
24924
|
}
|
|
@@ -24822,18 +24932,18 @@ class PoMultiselectDropdownComponent {
|
|
|
24822
24932
|
this.selectedOptions.push(option);
|
|
24823
24933
|
}
|
|
24824
24934
|
else {
|
|
24825
|
-
this.selectedOptions = this.selectedOptions.filter(selectedOption => selectedOption.
|
|
24935
|
+
this.selectedOptions = this.selectedOptions.filter(selectedOption => selectedOption[this.fieldValue] !== option[this.fieldValue]);
|
|
24826
24936
|
}
|
|
24827
24937
|
this.change.emit(this.selectedOptions);
|
|
24828
24938
|
}
|
|
24829
24939
|
everyVisibleOptionsSelected(selectedValues) {
|
|
24830
|
-
return this.visibleOptions.every(visibleOption => selectedValues.includes(visibleOption.
|
|
24940
|
+
return this.visibleOptions.every(visibleOption => selectedValues.includes(visibleOption[this.fieldValue]));
|
|
24831
24941
|
}
|
|
24832
24942
|
someVisibleOptionsSelected(selectedValues) {
|
|
24833
|
-
return this.visibleOptions.some(visibleOption => selectedValues.includes(visibleOption.
|
|
24943
|
+
return this.visibleOptions.some(visibleOption => selectedValues.includes(visibleOption[this.fieldValue]));
|
|
24834
24944
|
}
|
|
24835
24945
|
getStateSelectAll() {
|
|
24836
|
-
const selectedValues = this.selectedOptions.map(({ value }) => value);
|
|
24946
|
+
const selectedValues = this.selectedOptions.map(({ [this.fieldValue]: value }) => value);
|
|
24837
24947
|
if (this.everyVisibleOptionsSelected(selectedValues)) {
|
|
24838
24948
|
return true;
|
|
24839
24949
|
}
|
|
@@ -24860,7 +24970,7 @@ class PoMultiselectDropdownComponent {
|
|
|
24860
24970
|
uniqueSelectedOptions(selectedValues) {
|
|
24861
24971
|
const newSelectedOptions = [...this.selectedOptions];
|
|
24862
24972
|
for (const visibleOption of this.visibleOptions) {
|
|
24863
|
-
if (!selectedValues.includes(visibleOption.
|
|
24973
|
+
if (!selectedValues.includes(visibleOption[this.fieldValue])) {
|
|
24864
24974
|
newSelectedOptions.push(visibleOption);
|
|
24865
24975
|
}
|
|
24866
24976
|
}
|
|
@@ -24869,9 +24979,9 @@ class PoMultiselectDropdownComponent {
|
|
|
24869
24979
|
}
|
|
24870
24980
|
PoMultiselectDropdownComponent.ɵfac = function PoMultiselectDropdownComponent_Factory(t) { return new (t || PoMultiselectDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
24871
24981
|
PoMultiselectDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMultiselectDropdownComponent, selectors: [["po-multiselect-dropdown"]], viewQuery: function PoMultiselectDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
24872
|
-
i0.ɵɵviewQuery(_c0$
|
|
24873
|
-
i0.ɵɵviewQuery(_c1$
|
|
24874
|
-
i0.ɵɵviewQuery(_c2$
|
|
24982
|
+
i0.ɵɵviewQuery(_c0$P, 7, ElementRef);
|
|
24983
|
+
i0.ɵɵviewQuery(_c1$k, 7, ElementRef);
|
|
24984
|
+
i0.ɵɵviewQuery(_c2$7, 5);
|
|
24875
24985
|
} if (rf & 2) {
|
|
24876
24986
|
let _t;
|
|
24877
24987
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
@@ -24879,9 +24989,9 @@ PoMultiselectDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
24879
24989
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.searchElement = _t.first);
|
|
24880
24990
|
} }, hostBindings: function PoMultiselectDropdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
24881
24991
|
i0.ɵɵlistener("keydown", function PoMultiselectDropdownComponent_keydown_HostBindingHandler($event) { return ctx.onKeydown($event); });
|
|
24882
|
-
} }, inputs: { isServerSearching: ["p-searching", "isServerSearching"], hideSearch: ["p-hide-search", "hideSearch"], literals: ["p-literals", "literals"], placeholderSearch: ["p-placeholder-search", "placeholderSearch"], selectedOptions: ["p-selected-options", "selectedOptions"], options: ["p-options", "options"], visibleOptions: ["p-visible-options", "visibleOptions"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"] }, outputs: { changeSearch: "p-change-search", change: "p-change", closeDropdown: "p-close-dropdown" }, decls: 8, vars: 6, consts: [[1, "po-multiselect-container", 3, "hidden"], ["container", ""], [3, "p-literals", "p-placeholder", "p-change", 4, "ngIf"], [1, "po-multiselect-items-container", 3, "scrollTop"], ["ulElement", ""], ["class", "po-multiselect-container-no-data po-text-center", 4, "ngIf"], ["class", "po-multiselect-container-loading po-text-center", 4, "ngIf"], [4, "ngIf"], [3, "p-literals", "p-placeholder", "p-change"], ["searchElement", ""], [1, "po-multiselect-container-no-data", "po-text-center"], [1, "po-multiselect-container-loading", "po-text-center"], [3, "p-label", "p-selected", "p-change", 4, "ngIf"], [3, "p-label", "p-selected", "p-change", 4, "ngFor", "ngForOf"], [3, "p-label", "p-selected", "p-change"]], template: function PoMultiselectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24992
|
+
} }, inputs: { isServerSearching: ["p-searching", "isServerSearching"], hideSearch: ["p-hide-search", "hideSearch"], literals: ["p-literals", "literals"], placeholderSearch: ["p-placeholder-search", "placeholderSearch"], selectedOptions: ["p-selected-options", "selectedOptions"], options: ["p-options", "options"], visibleOptions: ["p-visible-options", "visibleOptions"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"] }, outputs: { changeSearch: "p-change-search", change: "p-change", closeDropdown: "p-close-dropdown" }, decls: 8, vars: 6, consts: [[1, "po-multiselect-container", 3, "hidden"], ["container", ""], [3, "p-literals", "p-field-value", "p-placeholder", "p-change", 4, "ngIf"], [1, "po-multiselect-items-container", 3, "scrollTop"], ["ulElement", ""], ["class", "po-multiselect-container-no-data po-text-center", 4, "ngIf"], ["class", "po-multiselect-container-loading po-text-center", 4, "ngIf"], [4, "ngIf"], [3, "p-literals", "p-field-value", "p-placeholder", "p-change"], ["searchElement", ""], [1, "po-multiselect-container-no-data", "po-text-center"], [1, "po-multiselect-container-loading", "po-text-center"], [3, "p-label", "p-selected", "p-change", 4, "ngIf"], [3, "p-label", "p-selected", "p-change", 4, "ngFor", "ngForOf"], [3, "p-label", "p-selected", "p-change"]], template: function PoMultiselectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24883
24993
|
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
24884
|
-
i0.ɵɵtemplate(2, PoMultiselectDropdownComponent_po_multiselect_search_2_Template, 2,
|
|
24994
|
+
i0.ɵɵtemplate(2, PoMultiselectDropdownComponent_po_multiselect_search_2_Template, 2, 3, "po-multiselect-search", 2);
|
|
24885
24995
|
i0.ɵɵelementStart(3, "ul", 3, 4);
|
|
24886
24996
|
i0.ɵɵtemplate(5, PoMultiselectDropdownComponent_div_5_Template, 3, 1, "div", 5);
|
|
24887
24997
|
i0.ɵɵtemplate(6, PoMultiselectDropdownComponent_div_6_Template, 2, 0, "div", 6);
|
|
@@ -24902,7 +25012,7 @@ PoMultiselectDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
24902
25012
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
24903
25013
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectDropdownComponent, [{
|
|
24904
25014
|
type: Component,
|
|
24905
|
-
args: [{ selector: 'po-multiselect-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <po-multiselect-search\n #searchElement\n *ngIf=\"!hideSearch\"\n [p-literals]=\"literals\"\n [p-placeholder]=\"placeholderSearch\"\n (p-change)=\"callChangeSearch($event)\"\n >\n </po-multiselect-search>\n\n <ul class=\"po-multiselect-items-container\" [scrollTop]=\"scrollTop\" #ulElement>\n <div *ngIf=\"!visibleOptions.length && !isServerSearching\" class=\"po-multiselect-container-no-data po-text-center\">\n <span> {{ literals.noData }}</span>\n </div>\n\n <div *ngIf=\"isServerSearching\" class=\"po-multiselect-container-loading po-text-center\">\n <po-loading></po-loading>\n </div>\n\n <ng-container *ngIf=\"!isServerSearching\">\n <po-multiselect-item\n *ngIf=\"!searchElement?.inputValue && visibleOptions.length && !hideSelectAll\"\n [p-label]=\"literals?.selectAll\"\n [p-selected]=\"getStateSelectAll()\"\n (p-change)=\"onClickSelectAll()\"\n >\n </po-multiselect-item>\n\n <po-multiselect-item\n *ngFor=\"let option of visibleOptions\"\n [p-label]=\"option
|
|
25015
|
+
args: [{ selector: 'po-multiselect-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <po-multiselect-search\n #searchElement\n *ngIf=\"!hideSearch\"\n [p-literals]=\"literals\"\n [p-field-value]=\"fieldValue\"\n [p-placeholder]=\"placeholderSearch\"\n (p-change)=\"callChangeSearch($event)\"\n >\n </po-multiselect-search>\n\n <ul class=\"po-multiselect-items-container\" [scrollTop]=\"scrollTop\" #ulElement>\n <div *ngIf=\"!visibleOptions.length && !isServerSearching\" class=\"po-multiselect-container-no-data po-text-center\">\n <span> {{ literals.noData }}</span>\n </div>\n\n <div *ngIf=\"isServerSearching\" class=\"po-multiselect-container-loading po-text-center\">\n <po-loading></po-loading>\n </div>\n\n <ng-container *ngIf=\"!isServerSearching\">\n <po-multiselect-item\n *ngIf=\"!searchElement?.inputValue && visibleOptions.length && !hideSelectAll\"\n [p-label]=\"literals?.selectAll\"\n [p-selected]=\"getStateSelectAll()\"\n (p-change)=\"onClickSelectAll()\"\n >\n </po-multiselect-item>\n\n <po-multiselect-item\n *ngFor=\"let option of visibleOptions\"\n [p-label]=\"option[fieldLabel]\"\n [p-selected]=\"isSelectedItem(option)\"\n (p-change)=\"clickItem($event, option)\"\n >\n </po-multiselect-item>\n </ng-container>\n </ul>\n</div>\n" }]
|
|
24906
25016
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { isServerSearching: [{
|
|
24907
25017
|
type: Input,
|
|
24908
25018
|
args: ['p-searching']
|
|
@@ -24927,6 +25037,12 @@ PoMultiselectDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
24927
25037
|
}], hideSelectAll: [{
|
|
24928
25038
|
type: Input,
|
|
24929
25039
|
args: ['p-hide-select-all']
|
|
25040
|
+
}], fieldValue: [{
|
|
25041
|
+
type: Input,
|
|
25042
|
+
args: ['p-field-value']
|
|
25043
|
+
}], fieldLabel: [{
|
|
25044
|
+
type: Input,
|
|
25045
|
+
args: ['p-field-label']
|
|
24930
25046
|
}], changeSearch: [{
|
|
24931
25047
|
type: Output,
|
|
24932
25048
|
args: ['p-change-search']
|
|
@@ -25233,7 +25349,7 @@ class PoMultiselectBaseComponent {
|
|
|
25233
25349
|
/**
|
|
25234
25350
|
* @description
|
|
25235
25351
|
*
|
|
25236
|
-
* Nesta propriedade deve ser definida uma lista de objetos que
|
|
25352
|
+
* Nesta propriedade deve ser definida uma lista de objetos que será exibida no multiselect.
|
|
25237
25353
|
* Esta lista deve conter os valores e os labels que serão apresentados na tela.
|
|
25238
25354
|
*
|
|
25239
25355
|
* > Essa propriedade é imutável, ou seja, sempre que quiser atualizar a lista de opções disponíveis
|
|
@@ -25246,10 +25362,20 @@ class PoMultiselectBaseComponent {
|
|
|
25246
25362
|
* // evite, pois não atualiza a referência do objeto podendo gerar atrasos na atualização do template
|
|
25247
25363
|
* this.options.push({ value: 'x', label: 'Nova opção' });
|
|
25248
25364
|
* ```
|
|
25365
|
+
* > A lista pode ser definida utilizando um array com o valor representando `value` e `label` das seguintes formas:
|
|
25366
|
+
*
|
|
25367
|
+
* ```
|
|
25368
|
+
* <po-multiselect name="multiselect" p-label="PO Multiselect" [p-options]="[{value: 1, label: 'One'}, {value: 2, label: 'two'}]"> </po-multiselect>
|
|
25369
|
+
* ```
|
|
25370
|
+
*
|
|
25371
|
+
* ```
|
|
25372
|
+
* <po-multiselect name="multiselect" p-label="PO Multiselect" [p-options]="[{name: 'Roger', age: 28}, {name: 'Anne', age: 35}]" p-field-label="name" p-field-value="age"> </po-multiselect>
|
|
25373
|
+
* ```
|
|
25374
|
+
*
|
|
25375
|
+
* - Aconselha-se utilizar valores distintos no `label` e `value` dos itens.
|
|
25249
25376
|
*/
|
|
25250
25377
|
set options(options) {
|
|
25251
25378
|
this._options = options;
|
|
25252
|
-
this.validAndSortOptions();
|
|
25253
25379
|
}
|
|
25254
25380
|
get options() {
|
|
25255
25381
|
return this._options;
|
|
@@ -25311,7 +25437,7 @@ class PoMultiselectBaseComponent {
|
|
|
25311
25437
|
* @default `label`
|
|
25312
25438
|
*/
|
|
25313
25439
|
set fieldLabel(value) {
|
|
25314
|
-
this._fieldLabel = value
|
|
25440
|
+
this._fieldLabel = value ? value : PO_MULTISELECT_FIELD_LABEL_DEFAULT;
|
|
25315
25441
|
if (isTypeof(this.filterService, 'string') && this.service) {
|
|
25316
25442
|
this.service.fieldLabel = this._fieldLabel;
|
|
25317
25443
|
}
|
|
@@ -25332,7 +25458,7 @@ class PoMultiselectBaseComponent {
|
|
|
25332
25458
|
* @default `value`
|
|
25333
25459
|
*/
|
|
25334
25460
|
set fieldValue(value) {
|
|
25335
|
-
this._fieldValue = value
|
|
25461
|
+
this._fieldValue = value ? value : PO_MULTISELECT_FIELD_VALUE_DEFAULT;
|
|
25336
25462
|
if (isTypeof(this.filterService, 'string') && this.service) {
|
|
25337
25463
|
this.service.fieldValue = this._fieldValue;
|
|
25338
25464
|
}
|
|
@@ -25347,6 +25473,7 @@ class PoMultiselectBaseComponent {
|
|
|
25347
25473
|
this.filterSubject
|
|
25348
25474
|
.pipe(debounceTime(this.debounceTime), distinctUntilChanged(), tap(() => (this.isServerSearching = true)), switchMap((search) => this.applyFilter(search)), tap(() => (this.isServerSearching = false)))
|
|
25349
25475
|
.subscribe();
|
|
25476
|
+
this.validAndSortOptions();
|
|
25350
25477
|
this.updateList(this.options);
|
|
25351
25478
|
}
|
|
25352
25479
|
setService(service) {
|
|
@@ -25361,18 +25488,18 @@ class PoMultiselectBaseComponent {
|
|
|
25361
25488
|
}
|
|
25362
25489
|
validAndSortOptions() {
|
|
25363
25490
|
if (this.options && this.options.length) {
|
|
25364
|
-
|
|
25365
|
-
|
|
25491
|
+
removeUndefinedAndNullOptionsWithFieldValue(this.options, this.fieldValue);
|
|
25492
|
+
removeDuplicatedOptionsWithFieldValue(this.options, this.fieldValue);
|
|
25366
25493
|
this.setUndefinedLabels(this.options);
|
|
25367
25494
|
if (this.sort) {
|
|
25368
|
-
sortOptionsByProperty(this.options,
|
|
25495
|
+
sortOptionsByProperty(this.options, this.fieldLabel);
|
|
25369
25496
|
}
|
|
25370
25497
|
}
|
|
25371
25498
|
}
|
|
25372
25499
|
setUndefinedLabels(options) {
|
|
25373
25500
|
options.forEach(option => {
|
|
25374
|
-
if (!option[
|
|
25375
|
-
option.
|
|
25501
|
+
if (!option[this.fieldLabel]) {
|
|
25502
|
+
option[this.fieldLabel] = option[this.fieldValue];
|
|
25376
25503
|
}
|
|
25377
25504
|
});
|
|
25378
25505
|
}
|
|
@@ -25394,17 +25521,17 @@ class PoMultiselectBaseComponent {
|
|
|
25394
25521
|
this.lastLengthModel = selectedOptions ? selectedOptions.length : null;
|
|
25395
25522
|
}
|
|
25396
25523
|
getValuesFromOptions(selectedOptions) {
|
|
25397
|
-
return selectedOptions && selectedOptions.length ? selectedOptions.map(option => option.
|
|
25524
|
+
return selectedOptions && selectedOptions.length ? selectedOptions.map(option => option[this.fieldValue]) : [];
|
|
25398
25525
|
}
|
|
25399
25526
|
getLabelByValue(value) {
|
|
25400
|
-
const index = this.options.findIndex(option => option.
|
|
25527
|
+
const index = this.options.findIndex(option => option[this.fieldValue] === value);
|
|
25401
25528
|
return this.options[index].label;
|
|
25402
25529
|
}
|
|
25403
25530
|
searchByLabel(search, options, filterMode) {
|
|
25404
25531
|
if (search && options && options.length) {
|
|
25405
25532
|
const newOptions = [];
|
|
25406
25533
|
options.forEach(option => {
|
|
25407
|
-
if (option.
|
|
25534
|
+
if (option[this.fieldLabel] && this.compareMethod(search, option, filterMode)) {
|
|
25408
25535
|
newOptions.push(option);
|
|
25409
25536
|
}
|
|
25410
25537
|
});
|
|
@@ -25425,13 +25552,13 @@ class PoMultiselectBaseComponent {
|
|
|
25425
25552
|
}
|
|
25426
25553
|
}
|
|
25427
25554
|
startsWith(search, option) {
|
|
25428
|
-
return option.
|
|
25555
|
+
return option[this.fieldLabel].toLowerCase().startsWith(search.toLowerCase());
|
|
25429
25556
|
}
|
|
25430
25557
|
contains(search, option) {
|
|
25431
|
-
return option.
|
|
25558
|
+
return option[this.fieldLabel].toLowerCase().indexOf(search.toLowerCase()) > -1;
|
|
25432
25559
|
}
|
|
25433
25560
|
endsWith(search, option) {
|
|
25434
|
-
return option.
|
|
25561
|
+
return option[this.fieldLabel].toLowerCase().endsWith(search.toLowerCase());
|
|
25435
25562
|
}
|
|
25436
25563
|
validate(c) {
|
|
25437
25564
|
if (requiredFailed(this.required, this.disabled, c.value)) {
|
|
@@ -25446,7 +25573,7 @@ class PoMultiselectBaseComponent {
|
|
|
25446
25573
|
updateSelectedOptions(newOptions, options = this.options) {
|
|
25447
25574
|
this.selectedOptions = [];
|
|
25448
25575
|
if (newOptions.length === 0) {
|
|
25449
|
-
this.lastLengthModel =
|
|
25576
|
+
this.lastLengthModel = undefined;
|
|
25450
25577
|
}
|
|
25451
25578
|
if (this.filterService) {
|
|
25452
25579
|
this.selectedOptions = newOptions;
|
|
@@ -25454,7 +25581,7 @@ class PoMultiselectBaseComponent {
|
|
|
25454
25581
|
else {
|
|
25455
25582
|
newOptions.forEach(newOption => {
|
|
25456
25583
|
options.forEach(option => {
|
|
25457
|
-
if (option.
|
|
25584
|
+
if (option[this.fieldValue] === newOption[this.fieldValue]) {
|
|
25458
25585
|
this.selectedOptions.push(option);
|
|
25459
25586
|
}
|
|
25460
25587
|
});
|
|
@@ -25472,7 +25599,7 @@ class PoMultiselectBaseComponent {
|
|
|
25472
25599
|
}
|
|
25473
25600
|
else {
|
|
25474
25601
|
// Validar se todos os items existem entre os options, senão atualizar o model
|
|
25475
|
-
this.updateSelectedOptions(values.map(value => ({ value })));
|
|
25602
|
+
this.updateSelectedOptions(values.map(value => ({ [this.fieldValue]: value })));
|
|
25476
25603
|
if (this.selectedOptions && this.selectedOptions.length < values.length) {
|
|
25477
25604
|
this.callOnChange(this.selectedOptions);
|
|
25478
25605
|
}
|
|
@@ -25613,7 +25740,7 @@ class PoMultiselectFilterService {
|
|
|
25613
25740
|
parseToMultiselectOption(item) {
|
|
25614
25741
|
const label = item[this.fieldLabel];
|
|
25615
25742
|
const value = item[this.fieldValue];
|
|
25616
|
-
return { label, value };
|
|
25743
|
+
return { [this.fieldLabel]: label, [this.fieldValue]: value };
|
|
25617
25744
|
}
|
|
25618
25745
|
}
|
|
25619
25746
|
PoMultiselectFilterService.ɵfac = function PoMultiselectFilterService_Factory(t) { return new (t || PoMultiselectFilterService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
@@ -25622,9 +25749,9 @@ PoMultiselectFilterService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ toke
|
|
|
25622
25749
|
type: Injectable
|
|
25623
25750
|
}], function () { return [{ type: i1$1.HttpClient }]; }, null); })();
|
|
25624
25751
|
|
|
25625
|
-
const _c0$
|
|
25626
|
-
const _c1$
|
|
25627
|
-
const _c2$
|
|
25752
|
+
const _c0$O = ["dropdownElement"];
|
|
25753
|
+
const _c1$j = ["iconElement"];
|
|
25754
|
+
const _c2$6 = ["inputElement"];
|
|
25628
25755
|
function PoMultiselectComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
25629
25756
|
i0.ɵɵelementStart(0, "span", 11);
|
|
25630
25757
|
i0.ɵɵtext(1);
|
|
@@ -25637,13 +25764,13 @@ function PoMultiselectComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
25637
25764
|
function PoMultiselectComponent_po_disclaimer_5_Template(rf, ctx) { if (rf & 1) {
|
|
25638
25765
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
25639
25766
|
i0.ɵɵelementStart(0, "po-disclaimer", 12);
|
|
25640
|
-
i0.ɵɵlistener("click", function PoMultiselectComponent_po_disclaimer_5_Template_po_disclaimer_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const disclaimer_r5 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.openDropdown(disclaimer_r5.
|
|
25767
|
+
i0.ɵɵlistener("click", function PoMultiselectComponent_po_disclaimer_5_Template_po_disclaimer_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const disclaimer_r5 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.openDropdown(disclaimer_r5[ctx_r6.fieldValue] === "")); })("p-close-action", function PoMultiselectComponent_po_disclaimer_5_Template_po_disclaimer_p_close_action_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const disclaimer_r5 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.closeDisclaimer(disclaimer_r5[ctx_r8.fieldValue])); });
|
|
25641
25768
|
i0.ɵɵelementEnd();
|
|
25642
25769
|
} if (rf & 2) {
|
|
25643
25770
|
const disclaimer_r5 = ctx.$implicit;
|
|
25644
25771
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
25645
|
-
i0.ɵɵclassProp("po-clickable", disclaimer_r5.
|
|
25646
|
-
i0.ɵɵproperty("p-label", disclaimer_r5.
|
|
25772
|
+
i0.ɵɵclassProp("po-clickable", disclaimer_r5[ctx_r2.fieldValue] === "" && !ctx_r2.disabled);
|
|
25773
|
+
i0.ɵɵproperty("p-label", disclaimer_r5[ctx_r2.fieldLabel])("p-value", disclaimer_r5[ctx_r2.fieldValue])("p-hide-close", disclaimer_r5[ctx_r2.fieldValue] === "" || ctx_r2.disabled);
|
|
25647
25774
|
} }
|
|
25648
25775
|
const poMultiselectContainerOffset = 8;
|
|
25649
25776
|
const poMultiselectContainerPositionDefault = 'bottom';
|
|
@@ -25694,6 +25821,12 @@ const providers$1 = [
|
|
|
25694
25821
|
* <file name="sample-po-multiselect-heroes/sample-po-multiselect-heroes.component.ts"> </file>
|
|
25695
25822
|
* <file name="sample-po-multiselect-heroes/sample-po-multiselect-heroes.service.ts"> </file>
|
|
25696
25823
|
* </example>
|
|
25824
|
+
*
|
|
25825
|
+
* <example name="po-multiselect-any-array" title="PO Multiselect - Array Any">
|
|
25826
|
+
* <file name="sample-po-multiselect-any-array/sample-po-multiselect-any-array.component.html"> </file>
|
|
25827
|
+
* <file name="sample-po-multiselect-any-array/sample-po-multiselect-any-array.component.ts"> </file>
|
|
25828
|
+
* </example>
|
|
25829
|
+
*
|
|
25697
25830
|
*/
|
|
25698
25831
|
class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
25699
25832
|
constructor(renderer, changeDetector, el, controlPosition, defaultService, languageService) {
|
|
@@ -25793,12 +25926,12 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
25793
25926
|
if (sum + extraDisclaimerSize > inputWidth) {
|
|
25794
25927
|
this.visibleDisclaimers.splice(-2, 2);
|
|
25795
25928
|
const label = '+' + (this.selectedOptions.length + 1 - i).toString();
|
|
25796
|
-
this.visibleDisclaimers.push({
|
|
25929
|
+
this.visibleDisclaimers.push({ [this.fieldValue]: '', [this.fieldLabel]: label });
|
|
25797
25930
|
}
|
|
25798
25931
|
else {
|
|
25799
25932
|
this.visibleDisclaimers.splice(-1, 1);
|
|
25800
25933
|
const label = '+' + (this.selectedOptions.length - i).toString();
|
|
25801
|
-
this.visibleDisclaimers.push({
|
|
25934
|
+
this.visibleDisclaimers.push({ [this.fieldValue]: '', [this.fieldLabel]: label });
|
|
25802
25935
|
}
|
|
25803
25936
|
}
|
|
25804
25937
|
}
|
|
@@ -25863,7 +25996,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
25863
25996
|
}
|
|
25864
25997
|
scrollToSelectedOptions() {
|
|
25865
25998
|
if (this.selectedOptions && this.selectedOptions.length) {
|
|
25866
|
-
const index = this.options.findIndex(option => option.
|
|
25999
|
+
const index = this.options.findIndex(option => option[this.fieldValue] === this.selectedOptions[0][this.fieldValue]);
|
|
25867
26000
|
this.dropdown.scrollTo(index);
|
|
25868
26001
|
}
|
|
25869
26002
|
}
|
|
@@ -25872,12 +26005,12 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
25872
26005
|
this.changeDetector.markForCheck();
|
|
25873
26006
|
}
|
|
25874
26007
|
changeSearch(event) {
|
|
25875
|
-
if (event && event.
|
|
26008
|
+
if (event && event[this.fieldValue] !== undefined) {
|
|
25876
26009
|
if (this.filterService) {
|
|
25877
|
-
this.filterSubject.next(event.
|
|
26010
|
+
this.filterSubject.next(event[this.fieldValue]);
|
|
25878
26011
|
}
|
|
25879
26012
|
else {
|
|
25880
|
-
this.searchByLabel(event.
|
|
26013
|
+
this.searchByLabel(event[this.fieldValue], this.options, this.filterMode);
|
|
25881
26014
|
}
|
|
25882
26015
|
}
|
|
25883
26016
|
else {
|
|
@@ -25887,7 +26020,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
25887
26020
|
setTimeout(() => this.adjustContainerPosition());
|
|
25888
26021
|
}
|
|
25889
26022
|
closeDisclaimer(value) {
|
|
25890
|
-
const index = this.selectedOptions.findIndex(option => option.
|
|
26023
|
+
const index = this.selectedOptions.findIndex(option => option[this.fieldValue] === value);
|
|
25891
26024
|
this.selectedOptions.splice(index, 1);
|
|
25892
26025
|
this.updateVisibleItems();
|
|
25893
26026
|
this.callOnChange(this.selectedOptions);
|
|
@@ -25901,7 +26034,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
25901
26034
|
}
|
|
25902
26035
|
}
|
|
25903
26036
|
applyFilter(value = '') {
|
|
25904
|
-
const param = { property:
|
|
26037
|
+
const param = { property: this.fieldLabel, value: value };
|
|
25905
26038
|
return this.service.getFilteredData(param).pipe(catchError(err => {
|
|
25906
26039
|
this.isServerSearching = false;
|
|
25907
26040
|
return of([]);
|
|
@@ -25976,17 +26109,17 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
25976
26109
|
}
|
|
25977
26110
|
PoMultiselectComponent.ɵfac = function PoMultiselectComponent_Factory(t) { return new (t || PoMultiselectComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(PoMultiselectFilterService), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
25978
26111
|
PoMultiselectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMultiselectComponent, selectors: [["po-multiselect"]], viewQuery: function PoMultiselectComponent_Query(rf, ctx) { if (rf & 1) {
|
|
25979
|
-
i0.ɵɵviewQuery(_c0$
|
|
25980
|
-
i0.ɵɵviewQuery(_c0$
|
|
25981
|
-
i0.ɵɵviewQuery(_c1$
|
|
25982
|
-
i0.ɵɵviewQuery(_c2$
|
|
26112
|
+
i0.ɵɵviewQuery(_c0$O, 7, ElementRef);
|
|
26113
|
+
i0.ɵɵviewQuery(_c0$O, 7);
|
|
26114
|
+
i0.ɵɵviewQuery(_c1$j, 7, ElementRef);
|
|
26115
|
+
i0.ɵɵviewQuery(_c2$6, 7, ElementRef);
|
|
25983
26116
|
} if (rf & 2) {
|
|
25984
26117
|
let _t;
|
|
25985
26118
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownElement = _t.first);
|
|
25986
26119
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdown = _t.first);
|
|
25987
26120
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
25988
26121
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
25989
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 12, vars:
|
|
26122
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 12, vars: 31, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], [1, "po-input", "po-input-icon-right", "po-multiselect-input", "po-clickable", 3, "tabindex", "keyup.enter", "keydown", "click", "blur"], ["inputElement", ""], ["class", "po-multiselect-input-placeholder", 4, "ngIf"], ["class", "po-multiselect-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "po-clickable", "click", "p-close-action", 4, "ngFor", "ngForOf"], [1, "po-field-icon-container-right"], [3, "ngClass"], ["iconElement", ""], [3, "p-searching", "p-hide-search", "p-hide-select-all", "p-literals", "p-options", "p-visible-options", "p-selected-options", "p-placeholder-search", "p-field-value", "p-field-label", "p-change", "p-change-search", "p-close-dropdown"], ["dropdownElement", ""], [1, "po-multiselect-input-placeholder"], [1, "po-multiselect-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "click", "p-close-action"]], template: function PoMultiselectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25990
26123
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2, 3);
|
|
25991
26124
|
i0.ɵɵlistener("keyup.enter", function PoMultiselectComponent_Template_div_keyup_enter_2_listener() { return ctx.toggleDropdownVisibility(); })("keydown", function PoMultiselectComponent_Template_div_keydown_2_listener($event) { return ctx.onKeyDown($event); })("click", function PoMultiselectComponent_Template_div_click_2_listener() { return ctx.toggleDropdownVisibility(); })("blur", function PoMultiselectComponent_Template_div_blur_2_listener() { return ctx.onBlur(); });
|
|
25992
26125
|
i0.ɵɵtemplate(4, PoMultiselectComponent_span_4_Template, 2, 1, "span", 4);
|
|
@@ -26006,19 +26139,20 @@ PoMultiselectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMu
|
|
|
26006
26139
|
i0.ɵɵadvance(1);
|
|
26007
26140
|
i0.ɵɵclassProp("po-multiselect-input-auto", ctx.autoHeight)("po-multiselect-input-static", !ctx.autoHeight)("po-multiselect-input-disabled", ctx.disabled);
|
|
26008
26141
|
i0.ɵɵproperty("tabindex", ctx.disabled ? -1 : 0);
|
|
26142
|
+
i0.ɵɵattribute("disabled", ctx.disabled)("aria-label", ctx.label);
|
|
26009
26143
|
i0.ɵɵadvance(2);
|
|
26010
|
-
i0.ɵɵproperty("ngIf", ctx.placeholder && !(ctx.visibleDisclaimers == null ? null : ctx.visibleDisclaimers.length));
|
|
26144
|
+
i0.ɵɵproperty("ngIf", ctx.placeholder && !ctx.disabled && !(ctx.visibleDisclaimers == null ? null : ctx.visibleDisclaimers.length));
|
|
26011
26145
|
i0.ɵɵadvance(1);
|
|
26012
26146
|
i0.ɵɵproperty("ngForOf", ctx.visibleDisclaimers);
|
|
26013
26147
|
i0.ɵɵadvance(2);
|
|
26014
|
-
i0.ɵɵ
|
|
26148
|
+
i0.ɵɵclassMapInterpolate2("po-icon po-field-icon ", ctx.dropdownIcon, " ", ctx.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
26015
26149
|
i0.ɵɵproperty("ngClass", ctx.disabled ? "po-field-icon-disabled" : "");
|
|
26016
26150
|
i0.ɵɵadvance(2);
|
|
26017
|
-
i0.ɵɵproperty("p-searching", ctx.isServerSearching)("p-hide-search", ctx.hideSearch)("p-hide-select-all", ctx.hideSelectAll)("p-literals", ctx.literals)("p-options", ctx.options)("p-visible-options", ctx.visibleOptionsDropdown)("p-selected-options", ctx.selectedOptions)("p-placeholder-search", ctx.placeholderSearch);
|
|
26151
|
+
i0.ɵɵproperty("p-searching", ctx.isServerSearching)("p-hide-search", ctx.hideSearch)("p-hide-select-all", ctx.hideSelectAll)("p-literals", ctx.literals)("p-options", ctx.options)("p-visible-options", ctx.visibleOptionsDropdown)("p-selected-options", ctx.selectedOptions)("p-placeholder-search", ctx.placeholderSearch)("p-field-value", ctx.fieldValue)("p-field-label", ctx.fieldLabel);
|
|
26018
26152
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
26019
26153
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectComponent, [{
|
|
26020
26154
|
type: Component,
|
|
26021
|
-
args: [{ selector: 'po-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$1, template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" [class.po-multiselect-show]=\"dropdownOpen\">\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-input po-input-icon-right po-multiselect-input po-clickable\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n (keyup.enter)=\"toggleDropdownVisibility()\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur()\"\n >\n <span *ngIf=\"placeholder && !visibleDisclaimers?.length\" class=\"po-multiselect-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-multiselect-input-disclaimer\"\n [p-label]=\"disclaimer
|
|
26155
|
+
args: [{ selector: 'po-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$1, template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" [class.po-multiselect-show]=\"dropdownOpen\">\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n class=\"po-input po-input-icon-right po-multiselect-input po-clickable\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n (keyup.enter)=\"toggleDropdownVisibility()\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur()\"\n >\n <span *ngIf=\"placeholder && !disabled && !visibleDisclaimers?.length\" class=\"po-multiselect-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-multiselect-input-disclaimer\"\n [p-label]=\"disclaimer[fieldLabel]\"\n [p-value]=\"disclaimer[fieldValue]\"\n [p-hide-close]=\"disclaimer[fieldValue] === '' || disabled\"\n [class.po-clickable]=\"disclaimer[fieldValue] === '' && !disabled\"\n (click)=\"openDropdown(disclaimer[fieldValue] === '')\"\n (p-close-action)=\"closeDisclaimer(disclaimer[fieldValue])\"\n >\n </po-disclaimer>\n\n <div class=\"po-field-icon-container-right\">\n <span\n #iconElement\n class=\"po-icon po-field-icon {{ dropdownIcon }} {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </span>\n </div>\n </div>\n </div>\n\n <po-multiselect-dropdown\n #dropdownElement\n [p-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-literals]=\"literals\"\n [p-options]=\"options\"\n [p-visible-options]=\"visibleOptionsDropdown\"\n [p-selected-options]=\"selectedOptions\"\n [p-placeholder-search]=\"placeholderSearch\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n >\n </po-multiselect-dropdown>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
26022
26156
|
}], function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: PoControlPositionService }, { type: PoMultiselectFilterService }, { type: PoLanguageService }]; }, { dropdownElement: [{
|
|
26023
26157
|
type: ViewChild,
|
|
26024
26158
|
args: ['dropdownElement', { read: ElementRef, static: true }]
|
|
@@ -26083,7 +26217,7 @@ PoMultiselectItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
26083
26217
|
args: ['p-change']
|
|
26084
26218
|
}] }); })();
|
|
26085
26219
|
|
|
26086
|
-
const _c0$
|
|
26220
|
+
const _c0$N = ["inputElement"];
|
|
26087
26221
|
/**
|
|
26088
26222
|
* @docsPrivate
|
|
26089
26223
|
*
|
|
@@ -26118,7 +26252,7 @@ class PoMultiselectSearchComponent {
|
|
|
26118
26252
|
return this.inputElement.nativeElement.value;
|
|
26119
26253
|
}
|
|
26120
26254
|
onChange(event) {
|
|
26121
|
-
this.change.emit({ event: event,
|
|
26255
|
+
this.change.emit({ event: event, [this.fieldValue]: this.inputElement.nativeElement.value });
|
|
26122
26256
|
}
|
|
26123
26257
|
setFocus() {
|
|
26124
26258
|
this.inputElement.nativeElement.focus();
|
|
@@ -26130,11 +26264,11 @@ class PoMultiselectSearchComponent {
|
|
|
26130
26264
|
}
|
|
26131
26265
|
PoMultiselectSearchComponent.ɵfac = function PoMultiselectSearchComponent_Factory(t) { return new (t || PoMultiselectSearchComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
26132
26266
|
PoMultiselectSearchComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMultiselectSearchComponent, selectors: [["po-multiselect-search"]], viewQuery: function PoMultiselectSearchComponent_Query(rf, ctx) { if (rf & 1) {
|
|
26133
|
-
i0.ɵɵviewQuery(_c0$
|
|
26267
|
+
i0.ɵɵviewQuery(_c0$N, 7, ElementRef);
|
|
26134
26268
|
} if (rf & 2) {
|
|
26135
26269
|
let _t;
|
|
26136
26270
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
26137
|
-
} }, inputs: { literals: ["p-literals", "literals"], placeholder: ["p-placeholder", "placeholder"] }, outputs: { change: "p-change" }, decls: 5, vars: 1, consts: [[1, "po-field-container-content", "po-multiselect-container-search"], [1, "po-field-icon-container-left"], [1, "po-icon", "po-icon-search", "po-field-icon"], ["type", "text", 1, "po-input", "po-input-icon-left", "po-multiselect-search-input", 3, "placeholder", "keyup"], ["inputElement", ""]], template: function PoMultiselectSearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
26271
|
+
} }, inputs: { literals: ["p-literals", "literals"], fieldValue: ["p-field-value", "fieldValue"], placeholder: ["p-placeholder", "placeholder"] }, outputs: { change: "p-change" }, decls: 5, vars: 1, consts: [[1, "po-field-container-content", "po-multiselect-container-search"], [1, "po-field-icon-container-left"], [1, "po-icon", "po-icon-search", "po-field-icon", "po-icon-input"], ["type", "text", 1, "po-input", "po-input-icon-left", "po-multiselect-search-input", 3, "placeholder", "keyup"], ["inputElement", ""]], template: function PoMultiselectSearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
26138
26272
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
26139
26273
|
i0.ɵɵelement(2, "span", 2);
|
|
26140
26274
|
i0.ɵɵelementEnd();
|
|
@@ -26147,13 +26281,16 @@ PoMultiselectSearchComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
26147
26281
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
26148
26282
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectSearchComponent, [{
|
|
26149
26283
|
type: Component,
|
|
26150
|
-
args: [{ selector: 'po-multiselect-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-field-container-content po-multiselect-container-search\">\n <div class=\"po-field-icon-container-left\">\n <span class=\"po-icon po-icon-search po-field-icon\"></span>\n </div>\n\n <input\n #inputElement\n class=\"po-input po-input-icon-left po-multiselect-search-input\"\n type=\"text\"\n [placeholder]=\"placeholder\"\n (keyup)=\"onChange($event)\"\n />\n</div>\n" }]
|
|
26284
|
+
args: [{ selector: 'po-multiselect-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-field-container-content po-multiselect-container-search\">\n <div class=\"po-field-icon-container-left\">\n <span class=\"po-icon po-icon-search po-field-icon po-icon-input\"></span>\n </div>\n\n <input\n #inputElement\n class=\"po-input po-input-icon-left po-multiselect-search-input\"\n type=\"text\"\n [placeholder]=\"placeholder\"\n (keyup)=\"onChange($event)\"\n />\n</div>\n" }]
|
|
26151
26285
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { inputElement: [{
|
|
26152
26286
|
type: ViewChild,
|
|
26153
26287
|
args: ['inputElement', { read: ElementRef, static: true }]
|
|
26154
26288
|
}], literals: [{
|
|
26155
26289
|
type: Input,
|
|
26156
26290
|
args: ['p-literals']
|
|
26291
|
+
}], fieldValue: [{
|
|
26292
|
+
type: Input,
|
|
26293
|
+
args: ['p-field-value']
|
|
26157
26294
|
}], change: [{
|
|
26158
26295
|
type: Output,
|
|
26159
26296
|
args: ['p-change']
|
|
@@ -26179,7 +26316,7 @@ PoRichTextService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoRich
|
|
|
26179
26316
|
type: Injectable
|
|
26180
26317
|
}], null, null); })();
|
|
26181
26318
|
|
|
26182
|
-
const _c0$
|
|
26319
|
+
const _c0$M = ["bodyElement"];
|
|
26183
26320
|
const poRichTextBodyCommands = [
|
|
26184
26321
|
'bold',
|
|
26185
26322
|
'italic',
|
|
@@ -26466,7 +26603,7 @@ class PoRichTextBodyComponent {
|
|
|
26466
26603
|
}
|
|
26467
26604
|
PoRichTextBodyComponent.ɵfac = function PoRichTextBodyComponent_Factory(t) { return new (t || PoRichTextBodyComponent)(i0.ɵɵdirectiveInject(PoRichTextService)); };
|
|
26468
26605
|
PoRichTextBodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextBodyComponent, selectors: [["po-rich-text-body"]], viewQuery: function PoRichTextBodyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
26469
|
-
i0.ɵɵviewQuery(_c0$
|
|
26606
|
+
i0.ɵɵviewQuery(_c0$M, 7);
|
|
26470
26607
|
} if (rf & 2) {
|
|
26471
26608
|
let _t;
|
|
26472
26609
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bodyElement = _t.first);
|
|
@@ -27579,7 +27716,7 @@ __decorate([
|
|
|
27579
27716
|
args: ['p-required']
|
|
27580
27717
|
}] }); })();
|
|
27581
27718
|
|
|
27582
|
-
const _c0$
|
|
27719
|
+
const _c0$L = ["selectFilesLink"];
|
|
27583
27720
|
function PoUploadDragDropAreaComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
27584
27721
|
i0.ɵɵelementContainer(0);
|
|
27585
27722
|
} }
|
|
@@ -27593,7 +27730,7 @@ function PoUploadDragDropAreaComponent_ng_template_3_Template(rf, ctx) { if (rf
|
|
|
27593
27730
|
i0.ɵɵadvance(2);
|
|
27594
27731
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.directoryCompatible ? ctx_r2.literals == null ? null : ctx_r2.literals.dropFoldersHere : ctx_r2.literals == null ? null : ctx_r2.literals.dropFilesHere, " ");
|
|
27595
27732
|
} }
|
|
27596
|
-
const _c1$
|
|
27733
|
+
const _c1$i = function (a0) { return { "po-clickable": a0 }; };
|
|
27597
27734
|
function PoUploadDragDropAreaComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
27598
27735
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
27599
27736
|
i0.ɵɵelement(0, "span", 7);
|
|
@@ -27609,11 +27746,11 @@ function PoUploadDragDropAreaComponent_ng_template_5_Template(rf, ctx) { if (rf
|
|
|
27609
27746
|
i0.ɵɵadvance(2);
|
|
27610
27747
|
i0.ɵɵtextInterpolate1(" ", ctx_r4.directoryCompatible ? ctx_r4.literals == null ? null : ctx_r4.literals.dragFoldersHere : ctx_r4.literals == null ? null : ctx_r4.literals.dragFilesHere, " ");
|
|
27611
27748
|
i0.ɵɵadvance(1);
|
|
27612
|
-
i0.ɵɵproperty("disabled", ctx_r4.disabled)("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
27749
|
+
i0.ɵɵproperty("disabled", ctx_r4.disabled)("ngClass", i0.ɵɵpureFunction1(4, _c1$i, !ctx_r4.disabled));
|
|
27613
27750
|
i0.ɵɵadvance(2);
|
|
27614
27751
|
i0.ɵɵtextInterpolate1(" ", ctx_r4.directoryCompatible ? ctx_r4.literals == null ? null : ctx_r4.literals.selectFolderOnComputer : ctx_r4.literals == null ? null : ctx_r4.literals.selectFilesOnComputer, " ");
|
|
27615
27752
|
} }
|
|
27616
|
-
const _c2$
|
|
27753
|
+
const _c2$5 = function (a0) { return { "po-upload-drag-drop-area-disabled": a0 }; };
|
|
27617
27754
|
class PoUploadDragDropAreaComponent {
|
|
27618
27755
|
constructor(elementRef) {
|
|
27619
27756
|
this.elementRef = elementRef;
|
|
@@ -27625,7 +27762,7 @@ class PoUploadDragDropAreaComponent {
|
|
|
27625
27762
|
}
|
|
27626
27763
|
PoUploadDragDropAreaComponent.ɵfac = function PoUploadDragDropAreaComponent_Factory(t) { return new (t || PoUploadDragDropAreaComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
27627
27764
|
PoUploadDragDropAreaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadDragDropAreaComponent, selectors: [["po-upload-drag-drop-area"]], viewQuery: function PoUploadDragDropAreaComponent_Query(rf, ctx) { if (rf & 1) {
|
|
27628
|
-
i0.ɵɵviewQuery(_c0$
|
|
27765
|
+
i0.ɵɵviewQuery(_c0$L, 5);
|
|
27629
27766
|
} if (rf & 2) {
|
|
27630
27767
|
let _t;
|
|
27631
27768
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectFilesLinkElement = _t.first);
|
|
@@ -27639,7 +27776,7 @@ PoUploadDragDropAreaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
27639
27776
|
const _r1 = i0.ɵɵreference(4);
|
|
27640
27777
|
const _r3 = i0.ɵɵreference(6);
|
|
27641
27778
|
i0.ɵɵstyleProp("height", ctx.height, "px");
|
|
27642
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c2$
|
|
27779
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c2$5, ctx.disabled));
|
|
27643
27780
|
i0.ɵɵadvance(2);
|
|
27644
27781
|
i0.ɵɵproperty("ngIf", ctx.overlay && !ctx.disabled)("ngIfThen", _r1)("ngIfElse", _r3);
|
|
27645
27782
|
} }, dependencies: [i1.NgClass, i1.NgIf], encapsulation: 2, changeDetection: 0 });
|
|
@@ -28036,7 +28173,7 @@ PoUploadDragDropDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: P
|
|
|
28036
28173
|
args: ['document:drop', ['$event']]
|
|
28037
28174
|
}] }); })();
|
|
28038
28175
|
|
|
28039
|
-
const _c0$
|
|
28176
|
+
const _c0$K = ["DragDropAreaFixed"];
|
|
28040
28177
|
class PoUploadDragDropAreaOverlayComponent {
|
|
28041
28178
|
constructor(renderer) {
|
|
28042
28179
|
this.renderer = renderer;
|
|
@@ -28059,7 +28196,7 @@ class PoUploadDragDropAreaOverlayComponent {
|
|
|
28059
28196
|
}
|
|
28060
28197
|
PoUploadDragDropAreaOverlayComponent.ɵfac = function PoUploadDragDropAreaOverlayComponent_Factory(t) { return new (t || PoUploadDragDropAreaOverlayComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
28061
28198
|
PoUploadDragDropAreaOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadDragDropAreaOverlayComponent, selectors: [["po-upload-drag-drop-area-overlay"]], viewQuery: function PoUploadDragDropAreaOverlayComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28062
|
-
i0.ɵɵviewQuery(_c0$
|
|
28199
|
+
i0.ɵɵviewQuery(_c0$K, 7, ElementRef);
|
|
28063
28200
|
} if (rf & 2) {
|
|
28064
28201
|
let _t;
|
|
28065
28202
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.DragDropAreaFixed = _t.first);
|
|
@@ -28094,7 +28231,7 @@ PoUploadDragDropAreaOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponen
|
|
|
28094
28231
|
args: ['p-area-element']
|
|
28095
28232
|
}] }); })();
|
|
28096
28233
|
|
|
28097
|
-
const _c0$
|
|
28234
|
+
const _c0$J = ["dragDropOverlay"];
|
|
28098
28235
|
function PoUploadDragDropComponent_po_upload_drag_drop_area_overlay_0_Template(rf, ctx) { if (rf & 1) {
|
|
28099
28236
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
28100
28237
|
i0.ɵɵelementStart(0, "po-upload-drag-drop-area-overlay", 2, 3);
|
|
@@ -28142,7 +28279,7 @@ class PoUploadDragDropComponent {
|
|
|
28142
28279
|
}
|
|
28143
28280
|
PoUploadDragDropComponent.ɵfac = function PoUploadDragDropComponent_Factory(t) { return new (t || PoUploadDragDropComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
28144
28281
|
PoUploadDragDropComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadDragDropComponent, selectors: [["po-upload-drag-drop"]], viewQuery: function PoUploadDragDropComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28145
|
-
i0.ɵɵviewQuery(_c0$
|
|
28282
|
+
i0.ɵɵviewQuery(_c0$J, 5, ElementRef);
|
|
28146
28283
|
i0.ɵɵviewQuery(PoUploadDragDropAreaComponent, 7);
|
|
28147
28284
|
} if (rf & 2) {
|
|
28148
28285
|
let _t;
|
|
@@ -28207,7 +28344,7 @@ function PoUploadFileRestrictionsComponent_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
28207
28344
|
i0.ɵɵadvance(1);
|
|
28208
28345
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r1.literals == null ? null : ctx_r1.literals.allowedFormats, ctx_r1.allowedExtensions), "\n");
|
|
28209
28346
|
} }
|
|
28210
|
-
const _c0$
|
|
28347
|
+
const _c0$I = function (a0, a1) { return [a0, a1]; };
|
|
28211
28348
|
function PoUploadFileRestrictionsComponent_p_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
28212
28349
|
i0.ɵɵelementStart(0, "span");
|
|
28213
28350
|
i0.ɵɵtext(1);
|
|
@@ -28216,7 +28353,7 @@ function PoUploadFileRestrictionsComponent_p_2_span_3_Template(rf, ctx) { if (rf
|
|
|
28216
28353
|
} if (rf & 2) {
|
|
28217
28354
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
28218
28355
|
i0.ɵɵadvance(1);
|
|
28219
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r3.literals == null ? null : ctx_r3.literals.allowedFileSizeRange, i0.ɵɵpureFunction2(4, _c0$
|
|
28356
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r3.literals == null ? null : ctx_r3.literals.allowedFileSizeRange, i0.ɵɵpureFunction2(4, _c0$I, ctx_r3.minFileSize, ctx_r3.maxFileSize)), " ");
|
|
28220
28357
|
} }
|
|
28221
28358
|
function PoUploadFileRestrictionsComponent_p_2_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
28222
28359
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -28329,8 +28466,8 @@ PoUploadFileRestrictionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
28329
28466
|
args: ['p-min-file-size']
|
|
28330
28467
|
}] }); })();
|
|
28331
28468
|
|
|
28332
|
-
const _c0$
|
|
28333
|
-
const _c1$
|
|
28469
|
+
const _c0$H = ["inputFile"];
|
|
28470
|
+
const _c1$h = ["uploadButton"];
|
|
28334
28471
|
function PoUploadComponent_po_upload_drag_drop_4_Template(rf, ctx) { if (rf & 1) {
|
|
28335
28472
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
28336
28473
|
i0.ɵɵelementStart(0, "po-upload-drag-drop", 9);
|
|
@@ -28349,12 +28486,12 @@ function PoUploadComponent_po_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
28349
28486
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
28350
28487
|
i0.ɵɵproperty("p-disabled", ctx_r2.isDisabled)("p-label", ctx_r2.selectFileButtonLabel);
|
|
28351
28488
|
} }
|
|
28352
|
-
const _c2$
|
|
28489
|
+
const _c2$4 = function (a0) { return { "po-upload-file-restrictions-drag-drop": a0 }; };
|
|
28353
28490
|
function PoUploadComponent_po_upload_file_restrictions_6_Template(rf, ctx) { if (rf & 1) {
|
|
28354
28491
|
i0.ɵɵelement(0, "po-upload-file-restrictions", 12);
|
|
28355
28492
|
} if (rf & 2) {
|
|
28356
28493
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
28357
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c2$
|
|
28494
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c2$4, ctx_r3.displayDragDrop))("p-allowed-extensions", ctx_r3.fileRestrictions == null ? null : ctx_r3.fileRestrictions.allowedExtensions)("p-max-files", ctx_r3.maxFiles)("p-max-file-size", ctx_r3.fileRestrictions == null ? null : ctx_r3.fileRestrictions.maxFileSize)("p-min-file-size", ctx_r3.fileRestrictions == null ? null : ctx_r3.fileRestrictions.minFileSize);
|
|
28358
28495
|
} }
|
|
28359
28496
|
function PoUploadComponent_div_7_po_progress_3_Template(rf, ctx) { if (rf & 1) {
|
|
28360
28497
|
const _r15 = i0.ɵɵgetCurrentView();
|
|
@@ -28366,7 +28503,7 @@ function PoUploadComponent_div_7_po_progress_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
28366
28503
|
const ctx_r12 = i0.ɵɵnextContext(2);
|
|
28367
28504
|
i0.ɵɵproperty("p-info", ctx_r12.infoByUploadStatus[file_r13.status] == null ? null : ctx_r12.infoByUploadStatus[file_r13.status].text(file_r13.percent))("p-info-icon", ctx_r12.infoByUploadStatus[file_r13.status] == null ? null : ctx_r12.infoByUploadStatus[file_r13.status].icon)("p-status", ctx_r12.progressStatusByFileStatus[file_r13.status])("p-text", file_r13.displayName)("p-value", file_r13.percent);
|
|
28368
28505
|
} }
|
|
28369
|
-
const _c3$
|
|
28506
|
+
const _c3$2 = function (a0) { return { "po-upload-progress-container-area po-pt-2 po-pl-1": a0 }; };
|
|
28370
28507
|
function PoUploadComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
28371
28508
|
i0.ɵɵelementStart(0, "div", 13)(1, "po-container", 14)(2, "div", 15);
|
|
28372
28509
|
i0.ɵɵtemplate(3, PoUploadComponent_div_7_po_progress_3_Template, 1, 5, "po-progress", 16);
|
|
@@ -28376,7 +28513,7 @@ function PoUploadComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
28376
28513
|
i0.ɵɵadvance(1);
|
|
28377
28514
|
i0.ɵɵproperty("p-height", ctx_r4.hasMoreThanFourItems ? 280 : "auto")("p-no-border", !ctx_r4.hasMoreThanFourItems)("p-no-padding", !ctx_r4.hasMoreThanFourItems);
|
|
28378
28515
|
i0.ɵɵadvance(1);
|
|
28379
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$
|
|
28516
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$2, ctx_r4.hasMoreThanFourItems));
|
|
28380
28517
|
i0.ɵɵadvance(1);
|
|
28381
28518
|
i0.ɵɵproperty("ngForOf", ctx_r4.currentFiles)("ngForTrackBy", ctx_r4.trackByFn);
|
|
28382
28519
|
} }
|
|
@@ -28677,9 +28814,9 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
28677
28814
|
}
|
|
28678
28815
|
PoUploadComponent.ɵfac = function PoUploadComponent_Factory(t) { return new (t || PoUploadComponent)(i0.ɵɵdirectiveInject(PoUploadService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoI18nPipe), i0.ɵɵdirectiveInject(PoNotificationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
28679
28816
|
PoUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadComponent, selectors: [["po-upload"]], viewQuery: function PoUploadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28680
|
-
i0.ɵɵviewQuery(_c0$
|
|
28817
|
+
i0.ɵɵviewQuery(_c0$H, 7, ElementRef);
|
|
28681
28818
|
i0.ɵɵviewQuery(PoUploadDragDropComponent, 5);
|
|
28682
|
-
i0.ɵɵviewQuery(_c1$
|
|
28819
|
+
i0.ɵɵviewQuery(_c1$h, 5);
|
|
28683
28820
|
} if (rf & 2) {
|
|
28684
28821
|
let _t;
|
|
28685
28822
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputFile = _t.first);
|
|
@@ -28758,6 +28895,7 @@ function PoUrlComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
28758
28895
|
} if (rf & 2) {
|
|
28759
28896
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
28760
28897
|
i0.ɵɵadvance(1);
|
|
28898
|
+
i0.ɵɵclassMapInterpolate1("po-field-icon ", ctx_r0.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
28761
28899
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r0.disabled);
|
|
28762
28900
|
i0.ɵɵproperty("p-icon", ctx_r0.icon);
|
|
28763
28901
|
} }
|
|
@@ -28768,6 +28906,7 @@ function PoUrlComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
28768
28906
|
i0.ɵɵelementEnd();
|
|
28769
28907
|
} if (rf & 2) {
|
|
28770
28908
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
28909
|
+
i0.ɵɵclassMap(ctx_r2.disabled ? "po-icon-input-disabled" : "po-icon-input");
|
|
28771
28910
|
i0.ɵɵproperty("p-element-ref", ctx_r2.inputEl);
|
|
28772
28911
|
} }
|
|
28773
28912
|
/**
|
|
@@ -28841,14 +28980,14 @@ PoUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUrlCompone
|
|
|
28841
28980
|
useExisting: forwardRef(() => PoUrlComponent),
|
|
28842
28981
|
multi: true
|
|
28843
28982
|
}
|
|
28844
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
28983
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 18, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], [1, "po-input", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "type", "blur", "click", "focus", "input"], ["inp", ""], [1, "po-field-icon-container-right"], [3, "class", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-field-icon-container-left"], [3, "p-icon"], [3, "p-element-ref", "p-change-event"]], template: function PoUrlComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28845
28984
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
28846
|
-
i0.ɵɵtemplate(2, PoUrlComponent_div_2_Template, 2,
|
|
28985
|
+
i0.ɵɵtemplate(2, PoUrlComponent_div_2_Template, 2, 6, "div", 2);
|
|
28847
28986
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
28848
28987
|
i0.ɵɵlistener("blur", function PoUrlComponent_Template_input_blur_3_listener($event) { return ctx.eventOnBlur($event); })("click", function PoUrlComponent_Template_input_click_3_listener($event) { return ctx.eventOnClick($event); })("focus", function PoUrlComponent_Template_input_focus_3_listener($event) { return ctx.eventOnFocus($event); })("input", function PoUrlComponent_Template_input_input_3_listener($event) { return ctx.eventOnInput($event); });
|
|
28849
28988
|
i0.ɵɵelementEnd();
|
|
28850
28989
|
i0.ɵɵelementStart(5, "div", 5);
|
|
28851
|
-
i0.ɵɵtemplate(6, PoUrlComponent_po_clean_6_Template, 1,
|
|
28990
|
+
i0.ɵɵtemplate(6, PoUrlComponent_po_clean_6_Template, 1, 4, "po-clean", 6);
|
|
28852
28991
|
i0.ɵɵelementEnd()();
|
|
28853
28992
|
i0.ɵɵelement(7, "po-field-container-bottom", 7);
|
|
28854
28993
|
i0.ɵɵelementEnd();
|
|
@@ -28858,8 +28997,8 @@ PoUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUrlCompone
|
|
|
28858
28997
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
28859
28998
|
i0.ɵɵadvance(1);
|
|
28860
28999
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon)("po-input-icon-right", ctx.clean);
|
|
28861
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
28862
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
29000
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
29001
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
28863
29002
|
i0.ɵɵadvance(3);
|
|
28864
29003
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
28865
29004
|
i0.ɵɵadvance(1);
|
|
@@ -28878,12 +29017,12 @@ PoUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUrlCompone
|
|
|
28878
29017
|
useExisting: forwardRef(() => PoUrlComponent),
|
|
28879
29018
|
multi: true
|
|
28880
29019
|
}
|
|
28881
|
-
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon
|
|
29020
|
+
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [attr.aria-label]=\"label\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPattern()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
28882
29021
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
28883
29022
|
|
|
28884
|
-
const _c0$
|
|
28885
|
-
const _c1$
|
|
28886
|
-
const _c2$
|
|
29023
|
+
const _c0$G = ["modal"];
|
|
29024
|
+
const _c1$g = ["modalImageForm"];
|
|
29025
|
+
const _c2$3 = ["upload"];
|
|
28887
29026
|
const uploadRestrictions = ['.apng', '.bmp', '.gif', '.ico', '.jpeg', '.jpg', '.png', '.svg'];
|
|
28888
29027
|
class PoRichTextImageModalComponent {
|
|
28889
29028
|
constructor(languageService) {
|
|
@@ -28959,9 +29098,9 @@ class PoRichTextImageModalComponent {
|
|
|
28959
29098
|
}
|
|
28960
29099
|
PoRichTextImageModalComponent.ɵfac = function PoRichTextImageModalComponent_Factory(t) { return new (t || PoRichTextImageModalComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
28961
29100
|
PoRichTextImageModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextImageModalComponent, selectors: [["po-rich-text-image-modal"]], viewQuery: function PoRichTextImageModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28962
|
-
i0.ɵɵviewQuery(_c0$
|
|
28963
|
-
i0.ɵɵviewQuery(_c1$
|
|
28964
|
-
i0.ɵɵviewQuery(_c2$
|
|
29101
|
+
i0.ɵɵviewQuery(_c0$G, 7);
|
|
29102
|
+
i0.ɵɵviewQuery(_c1$g, 5);
|
|
29103
|
+
i0.ɵɵviewQuery(_c2$3, 7);
|
|
28965
29104
|
} if (rf & 2) {
|
|
28966
29105
|
let _t;
|
|
28967
29106
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modal = _t.first);
|
|
@@ -29006,6 +29145,7 @@ function PoInputComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
29006
29145
|
} if (rf & 2) {
|
|
29007
29146
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
29008
29147
|
i0.ɵɵadvance(1);
|
|
29148
|
+
i0.ɵɵclassMapInterpolate1("po-field-icon ", ctx_r0.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
29009
29149
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r0.disabled);
|
|
29010
29150
|
i0.ɵɵproperty("p-icon", ctx_r0.icon);
|
|
29011
29151
|
} }
|
|
@@ -29016,6 +29156,7 @@ function PoInputComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
29016
29156
|
i0.ɵɵelementEnd();
|
|
29017
29157
|
} if (rf & 2) {
|
|
29018
29158
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
29159
|
+
i0.ɵɵclassMap(ctx_r2.disabled ? "po-icon-input-disabled" : "po-icon-input");
|
|
29019
29160
|
i0.ɵɵproperty("p-element-ref", ctx_r2.inputEl);
|
|
29020
29161
|
} }
|
|
29021
29162
|
/**
|
|
@@ -29059,14 +29200,14 @@ PoInputComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoInputCom
|
|
|
29059
29200
|
useExisting: forwardRef(() => PoInputComponent),
|
|
29060
29201
|
multi: true
|
|
29061
29202
|
}
|
|
29062
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
29203
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 18, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], [1, "po-input", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "type", "blur", "click", "focus", "input"], ["inp", ""], [1, "po-field-icon-container-right"], [3, "class", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-field-icon-container-left"], [3, "p-icon"], [3, "p-element-ref", "p-change-event"]], template: function PoInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29063
29204
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
29064
|
-
i0.ɵɵtemplate(2, PoInputComponent_div_2_Template, 2,
|
|
29205
|
+
i0.ɵɵtemplate(2, PoInputComponent_div_2_Template, 2, 6, "div", 2);
|
|
29065
29206
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
29066
29207
|
i0.ɵɵlistener("blur", function PoInputComponent_Template_input_blur_3_listener($event) { return ctx.eventOnBlur($event); })("click", function PoInputComponent_Template_input_click_3_listener($event) { return ctx.eventOnClick($event); })("focus", function PoInputComponent_Template_input_focus_3_listener($event) { return ctx.eventOnFocus($event); })("input", function PoInputComponent_Template_input_input_3_listener($event) { return ctx.eventOnInput($event); });
|
|
29067
29208
|
i0.ɵɵelementEnd();
|
|
29068
29209
|
i0.ɵɵelementStart(5, "div", 5);
|
|
29069
|
-
i0.ɵɵtemplate(6, PoInputComponent_po_clean_6_Template, 1,
|
|
29210
|
+
i0.ɵɵtemplate(6, PoInputComponent_po_clean_6_Template, 1, 4, "po-clean", 6);
|
|
29070
29211
|
i0.ɵɵelementEnd()();
|
|
29071
29212
|
i0.ɵɵelement(7, "po-field-container-bottom", 7);
|
|
29072
29213
|
i0.ɵɵelementEnd();
|
|
@@ -29076,8 +29217,8 @@ PoInputComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoInputCom
|
|
|
29076
29217
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
29077
29218
|
i0.ɵɵadvance(1);
|
|
29078
29219
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon)("po-input-icon-right", ctx.clean);
|
|
29079
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
29080
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
29220
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.type);
|
|
29221
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
29081
29222
|
i0.ɵɵadvance(3);
|
|
29082
29223
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
29083
29224
|
i0.ɵɵadvance(1);
|
|
@@ -29096,11 +29237,11 @@ PoInputComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoInputCom
|
|
|
29096
29237
|
useExisting: forwardRef(() => PoInputComponent),
|
|
29097
29238
|
multi: true
|
|
29098
29239
|
}
|
|
29099
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon
|
|
29240
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [attr.aria-label]=\"label\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPattern()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
29100
29241
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
29101
29242
|
|
|
29102
|
-
const _c0$
|
|
29103
|
-
const _c1$
|
|
29243
|
+
const _c0$F = ["modal"];
|
|
29244
|
+
const _c1$f = ["modalLinkForm"];
|
|
29104
29245
|
class PoRichTextLinkModalComponent {
|
|
29105
29246
|
constructor(languageService) {
|
|
29106
29247
|
this.languageService = languageService;
|
|
@@ -29224,8 +29365,8 @@ class PoRichTextLinkModalComponent {
|
|
|
29224
29365
|
}
|
|
29225
29366
|
PoRichTextLinkModalComponent.ɵfac = function PoRichTextLinkModalComponent_Factory(t) { return new (t || PoRichTextLinkModalComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
29226
29367
|
PoRichTextLinkModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextLinkModalComponent, selectors: [["po-rich-text-link-modal"]], viewQuery: function PoRichTextLinkModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
29227
|
-
i0.ɵɵviewQuery(_c0$
|
|
29228
|
-
i0.ɵɵviewQuery(_c1$
|
|
29368
|
+
i0.ɵɵviewQuery(_c0$F, 7);
|
|
29369
|
+
i0.ɵɵviewQuery(_c1$f, 5);
|
|
29229
29370
|
} if (rf & 2) {
|
|
29230
29371
|
let _t;
|
|
29231
29372
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modal = _t.first);
|
|
@@ -29261,8 +29402,8 @@ PoRichTextLinkModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
29261
29402
|
args: ['p-link-editing']
|
|
29262
29403
|
}] }); })();
|
|
29263
29404
|
|
|
29264
|
-
const _c0$
|
|
29265
|
-
const _c1$
|
|
29405
|
+
const _c0$E = ["colorPickerInput"];
|
|
29406
|
+
const _c1$e = ["toolbarElement"];
|
|
29266
29407
|
function PoRichTextToolbarComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
29267
29408
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
29268
29409
|
i0.ɵɵelementStart(0, "div", 15)(1, "div", 16)(2, "button", 17)(3, "input", 18, 19);
|
|
@@ -29436,8 +29577,8 @@ class PoRichTextToolbarComponent {
|
|
|
29436
29577
|
}
|
|
29437
29578
|
PoRichTextToolbarComponent.ɵfac = function PoRichTextToolbarComponent_Factory(t) { return new (t || PoRichTextToolbarComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
29438
29579
|
PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextToolbarComponent, selectors: [["po-rich-text-toolbar"]], viewQuery: function PoRichTextToolbarComponent_Query(rf, ctx) { if (rf & 1) {
|
|
29439
|
-
i0.ɵɵviewQuery(_c0$
|
|
29440
|
-
i0.ɵɵviewQuery(_c1$
|
|
29580
|
+
i0.ɵɵviewQuery(_c0$E, 5, ElementRef);
|
|
29581
|
+
i0.ɵɵviewQuery(_c1$e, 7);
|
|
29441
29582
|
i0.ɵɵviewQuery(PoRichTextImageModalComponent, 7);
|
|
29442
29583
|
i0.ɵɵviewQuery(PoRichTextLinkModalComponent, 7);
|
|
29443
29584
|
} if (rf & 2) {
|
|
@@ -29899,7 +30040,7 @@ PoNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoNumberC
|
|
|
29899
30040
|
useExisting: forwardRef(() => PoNumberComponent),
|
|
29900
30041
|
multi: true
|
|
29901
30042
|
}
|
|
29902
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
30043
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 21, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["type", "number", 1, "po-input", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "tabindex", "blur", "focus", "input", "keydown"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-default-value", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], [1, "po-icon-input", 3, "p-default-value", "p-element-ref", "p-change-event"]], template: function PoNumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29903
30044
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
29904
30045
|
i0.ɵɵtemplate(2, PoNumberComponent_div_2_Template, 2, 3, "div", 2);
|
|
29905
30046
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
@@ -29916,8 +30057,8 @@ PoNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoNumberC
|
|
|
29916
30057
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
29917
30058
|
i0.ɵɵadvance(1);
|
|
29918
30059
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon)("po-input-icon-right", ctx.clean);
|
|
29919
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("tabindex", ctx.disabled ? -1 : 0);
|
|
29920
|
-
i0.ɵɵattribute("max", ctx.max)("min", ctx.min)("name", ctx.name)("step", ctx.step);
|
|
30060
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("tabindex", ctx.disabled ? -1 : 0);
|
|
30061
|
+
i0.ɵɵattribute("max", ctx.max)("min", ctx.min)("name", ctx.name)("step", ctx.step)("aria-label", ctx.label);
|
|
29921
30062
|
i0.ɵɵadvance(3);
|
|
29922
30063
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
29923
30064
|
i0.ɵɵadvance(1);
|
|
@@ -29936,7 +30077,7 @@ PoNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoNumberC
|
|
|
29936
30077
|
useExisting: forwardRef(() => PoNumberComponent),
|
|
29937
30078
|
multi: true
|
|
29938
30079
|
}
|
|
29939
|
-
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n <input\n #inp\n class=\"po-input\"\n type=\"number\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [attr.step]=\"step\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [tabindex]=\"disabled ? -1 : 0\"\n (blur)=\"onBlur($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n *ngIf=\"clean && !disabled && !readonly\"\n [p-default-value]=\"null\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPatternMessage()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
30080
|
+
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n <input\n #inp\n class=\"po-input\"\n type=\"number\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [attr.step]=\"step\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [tabindex]=\"disabled ? -1 : 0\"\n (blur)=\"onBlur($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-default-value]=\"null\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPatternMessage()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
29940
30081
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, { step: [{
|
|
29941
30082
|
type: Input,
|
|
29942
30083
|
args: ['p-step']
|
|
@@ -29950,7 +30091,7 @@ PoNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoNumberC
|
|
|
29950
30091
|
|
|
29951
30092
|
function PoPasswordComponent_po_clean_7_Template(rf, ctx) { if (rf & 1) {
|
|
29952
30093
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
29953
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
30094
|
+
i0.ɵɵelementStart(0, "po-clean", 9);
|
|
29954
30095
|
i0.ɵɵlistener("p-change-event", function PoPasswordComponent_po_clean_7_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.clear($event)); });
|
|
29955
30096
|
i0.ɵɵelementEnd();
|
|
29956
30097
|
} if (rf & 2) {
|
|
@@ -29959,7 +30100,7 @@ function PoPasswordComponent_po_clean_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
29959
30100
|
} }
|
|
29960
30101
|
function PoPasswordComponent_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
29961
30102
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
29962
|
-
i0.ɵɵelementStart(0, "span",
|
|
30103
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
29963
30104
|
i0.ɵɵlistener("click", function PoPasswordComponent_span_8_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.showPassword()); });
|
|
29964
30105
|
i0.ɵɵelementEnd();
|
|
29965
30106
|
} if (rf & 2) {
|
|
@@ -30039,28 +30180,29 @@ PoPasswordComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPassw
|
|
|
30039
30180
|
useExisting: forwardRef(() => PoPasswordComponent),
|
|
30040
30181
|
multi: true
|
|
30041
30182
|
}
|
|
30042
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 10, vars:
|
|
30183
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 23, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], [1, "po-field-icon-container-left"], [1, "po-input", "po-input-icon-left", 3, "autocomplete", "disabled", "placeholder", "readonly", "required", "type", "blur", "click", "focus", "input"], ["inp", ""], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], ["class", "po-icon po-field-icon po-icon-input", 3, "ngClass", "click", 4, "ngIf"], [3, "p-error-pattern"], [1, "po-icon-input", 3, "p-element-ref", "p-change-event"], [1, "po-icon", "po-field-icon", "po-icon-input", 3, "ngClass", "click"]], template: function PoPasswordComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30043
30184
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2);
|
|
30044
|
-
i0.ɵɵelement(3, "span"
|
|
30185
|
+
i0.ɵɵelement(3, "span");
|
|
30045
30186
|
i0.ɵɵelementEnd();
|
|
30046
|
-
i0.ɵɵelementStart(4, "input",
|
|
30187
|
+
i0.ɵɵelementStart(4, "input", 3, 4);
|
|
30047
30188
|
i0.ɵɵlistener("blur", function PoPasswordComponent_Template_input_blur_4_listener($event) { return ctx.eventOnBlur($event); })("click", function PoPasswordComponent_Template_input_click_4_listener($event) { return ctx.eventOnClick($event); })("focus", function PoPasswordComponent_Template_input_focus_4_listener($event) { return ctx.eventOnFocus($event); })("input", function PoPasswordComponent_Template_input_input_4_listener($event) { return ctx.eventOnInput($event); });
|
|
30048
30189
|
i0.ɵɵelementEnd();
|
|
30049
|
-
i0.ɵɵelementStart(6, "div",
|
|
30050
|
-
i0.ɵɵtemplate(7, PoPasswordComponent_po_clean_7_Template, 1, 1, "po-clean",
|
|
30051
|
-
i0.ɵɵtemplate(8, PoPasswordComponent_span_8_Template, 1, 1, "span",
|
|
30190
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
30191
|
+
i0.ɵɵtemplate(7, PoPasswordComponent_po_clean_7_Template, 1, 1, "po-clean", 6);
|
|
30192
|
+
i0.ɵɵtemplate(8, PoPasswordComponent_span_8_Template, 1, 1, "span", 7);
|
|
30052
30193
|
i0.ɵɵelementEnd()();
|
|
30053
|
-
i0.ɵɵelement(9, "po-field-container-bottom",
|
|
30194
|
+
i0.ɵɵelement(9, "po-field-container-bottom", 8);
|
|
30054
30195
|
i0.ɵɵelementEnd();
|
|
30055
30196
|
} if (rf & 2) {
|
|
30056
30197
|
const _r0 = i0.ɵɵreference(5);
|
|
30057
30198
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help)("p-optional", !ctx.required && ctx.optional);
|
|
30058
30199
|
i0.ɵɵadvance(3);
|
|
30200
|
+
i0.ɵɵclassMapInterpolate1("po-icon po-field-icon po-icon-lock ", ctx.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
30059
30201
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx.disabled);
|
|
30060
30202
|
i0.ɵɵadvance(1);
|
|
30061
30203
|
i0.ɵɵclassProp("po-input-double-icon-right", ctx.clean && _r0.value && !ctx.hidePasswordPeek)("po-input-icon-right", ctx.clean || !ctx.hidePasswordPeek);
|
|
30062
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.disabled ? "password" : ctx.type);
|
|
30063
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
30204
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("type", ctx.disabled ? "password" : ctx.type);
|
|
30205
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
30064
30206
|
i0.ɵɵadvance(3);
|
|
30065
30207
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
30066
30208
|
i0.ɵɵadvance(1);
|
|
@@ -30081,7 +30223,7 @@ PoPasswordComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPassw
|
|
|
30081
30223
|
useExisting: forwardRef(() => PoPasswordComponent),
|
|
30082
30224
|
multi: true
|
|
30083
30225
|
}
|
|
30084
|
-
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <span
|
|
30226
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <span\n class=\"po-icon po-field-icon po-icon-lock {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n >\n </span>\n </div>\n\n <input\n #inp\n class=\"po-input po-input-icon-left\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-double-icon-right]=\"clean && inp.value && !hidePasswordPeek\"\n [class.po-input-icon-right]=\"clean || !hidePasswordPeek\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"disabled ? 'password' : type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n\n <span\n *ngIf=\"!hidePasswordPeek && !disabled\"\n class=\"po-icon po-field-icon po-icon-input\"\n [ngClass]=\"visiblePassword ? 'po-icon-eye' : 'po-icon-eye-off po-field-icon-disabled'\"\n (click)=\"showPassword()\"\n >\n </span>\n </div>\n </div>\n\n <po-field-container-bottom [p-error-pattern]=\"getErrorPattern()\"> </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
30085
30227
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, { hidePasswordPeek: [{
|
|
30086
30228
|
type: Input,
|
|
30087
30229
|
args: ['p-hide-password-peek']
|
|
@@ -30100,6 +30242,17 @@ const poRadioGroupColumnsTotalLength = 12;
|
|
|
30100
30242
|
* [**po-checkbox-group**](/documentation/po-checkbox-group).
|
|
30101
30243
|
*
|
|
30102
30244
|
* > Ao passar um valor para o *model* que não esteja na lista de opções, o mesmo será definido como `undefined`.
|
|
30245
|
+
*
|
|
30246
|
+
* #### Acessibilidade tratada no componente interno `po-radio`:
|
|
30247
|
+
*
|
|
30248
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
30249
|
+
*
|
|
30250
|
+
* - O componente foi desenvolvido utilizando controles padrões HTML para permitir a identificação do mesmo na interface por tecnologias assistivas. [WCAG 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
|
|
30251
|
+
* - A cor não deve ser o único meio para diferenciar o radio button normal do selecionado, por isso deve-se manter uma diferença visual entre os estados. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
30252
|
+
* - Quando em foco, o componente é ativado usando as teclas de Espaço e Enter do teclado. [W3C WAI-ARIA 3.5 Button - Keyboard Interaction](https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard-interaction-3)
|
|
30253
|
+
* - A área do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco não pode ficar escondido por outros elementos da tela. [(WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
|
|
30254
|
+
*
|
|
30255
|
+
* Conforme documentação em: https://doc.animaliads.io/docs/components/radio
|
|
30103
30256
|
*/
|
|
30104
30257
|
class PoRadioGroupBaseComponent {
|
|
30105
30258
|
constructor() {
|
|
@@ -30253,7 +30406,7 @@ class PoRadioGroupBaseComponent {
|
|
|
30253
30406
|
}
|
|
30254
30407
|
}
|
|
30255
30408
|
PoRadioGroupBaseComponent.ɵfac = function PoRadioGroupBaseComponent_Factory(t) { return new (t || PoRadioGroupBaseComponent)(); };
|
|
30256
|
-
PoRadioGroupBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRadioGroupBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], name: "name", optional: ["p-optional", "optional"], columns: ["p-columns", "columns"], disabled: ["p-disabled", "disabled"], required: ["p-required", "required"], options: ["p-options", "options"] }, outputs: { change: "p-change" } });
|
|
30409
|
+
PoRadioGroupBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRadioGroupBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], name: "name", optional: ["p-optional", "optional"], columns: ["p-columns", "columns"], disabled: ["p-disabled", "disabled"], required: ["p-required", "required"], options: ["p-options", "options"], size: ["p-size", "size"] }, outputs: { change: "p-change" } });
|
|
30257
30410
|
__decorate([
|
|
30258
30411
|
InputBoolean()
|
|
30259
30412
|
], PoRadioGroupBaseComponent.prototype, "autoFocus", void 0);
|
|
@@ -30283,33 +30436,260 @@ __decorate([
|
|
|
30283
30436
|
}], options: [{
|
|
30284
30437
|
type: Input,
|
|
30285
30438
|
args: ['p-options']
|
|
30439
|
+
}], size: [{
|
|
30440
|
+
type: Input,
|
|
30441
|
+
args: ['p-size']
|
|
30442
|
+
}] }); })();
|
|
30443
|
+
|
|
30444
|
+
class PoFieldModel {
|
|
30445
|
+
constructor() {
|
|
30446
|
+
/**
|
|
30447
|
+
* @optional
|
|
30448
|
+
*
|
|
30449
|
+
* @description
|
|
30450
|
+
*
|
|
30451
|
+
* Indica se o campo será desabilitado.
|
|
30452
|
+
*
|
|
30453
|
+
* @default `false`
|
|
30454
|
+
*/
|
|
30455
|
+
this.disabled = false;
|
|
30456
|
+
/**
|
|
30457
|
+
* @optional
|
|
30458
|
+
*
|
|
30459
|
+
* @description
|
|
30460
|
+
*
|
|
30461
|
+
* Evento disparado ao alterar valor do campo.
|
|
30462
|
+
*/
|
|
30463
|
+
this.change = new EventEmitter();
|
|
30464
|
+
}
|
|
30465
|
+
// Função implementada do ControlValueAccessor
|
|
30466
|
+
// Usada para interceptar os estados de habilitado via forms api
|
|
30467
|
+
setDisabledState(isDisabled) {
|
|
30468
|
+
this.disabled = isDisabled;
|
|
30469
|
+
}
|
|
30470
|
+
registerOnChange(fn) {
|
|
30471
|
+
this.propagateChange = fn;
|
|
30472
|
+
}
|
|
30473
|
+
registerOnTouched(fn) {
|
|
30474
|
+
this.onTouched = fn;
|
|
30475
|
+
}
|
|
30476
|
+
writeValue(value) {
|
|
30477
|
+
this.onWriteValue(value);
|
|
30478
|
+
}
|
|
30479
|
+
emitChange(value) {
|
|
30480
|
+
this.change.emit(value);
|
|
30481
|
+
}
|
|
30482
|
+
updateModel(value) {
|
|
30483
|
+
if (this.propagateChange) {
|
|
30484
|
+
this.propagateChange(value);
|
|
30485
|
+
}
|
|
30486
|
+
}
|
|
30487
|
+
}
|
|
30488
|
+
PoFieldModel.ɵfac = function PoFieldModel_Factory(t) { return new (t || PoFieldModel)(); };
|
|
30489
|
+
PoFieldModel.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoFieldModel, inputs: { label: ["p-label", "label"], name: "name", help: ["p-help", "help"], disabled: ["p-disabled", "disabled"] }, outputs: { change: "p-change" } });
|
|
30490
|
+
__decorate([
|
|
30491
|
+
InputBoolean()
|
|
30492
|
+
], PoFieldModel.prototype, "disabled", void 0);
|
|
30493
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldModel, [{
|
|
30494
|
+
type: Directive
|
|
30495
|
+
}], function () { return []; }, { label: [{
|
|
30496
|
+
type: Input,
|
|
30497
|
+
args: ['p-label']
|
|
30498
|
+
}], name: [{
|
|
30499
|
+
type: Input,
|
|
30500
|
+
args: ['name']
|
|
30501
|
+
}], help: [{
|
|
30502
|
+
type: Input,
|
|
30503
|
+
args: ['p-help']
|
|
30504
|
+
}], disabled: [{
|
|
30505
|
+
type: Input,
|
|
30506
|
+
args: ['p-disabled']
|
|
30507
|
+
}], change: [{
|
|
30508
|
+
type: Output,
|
|
30509
|
+
args: ['p-change']
|
|
30510
|
+
}] }); })();
|
|
30511
|
+
|
|
30512
|
+
/**
|
|
30513
|
+
* @usedBy PoRadioComponent
|
|
30514
|
+
*
|
|
30515
|
+
* @description
|
|
30516
|
+
*
|
|
30517
|
+
* Enum para definir o tamanho do po-radio.
|
|
30518
|
+
*/
|
|
30519
|
+
var PoRadioSize;
|
|
30520
|
+
(function (PoRadioSize) {
|
|
30521
|
+
PoRadioSize["Medium"] = "medium";
|
|
30522
|
+
PoRadioSize["Large"] = "large";
|
|
30523
|
+
})(PoRadioSize || (PoRadioSize = {}));
|
|
30524
|
+
|
|
30525
|
+
const _c0$D = ["radioLabel"];
|
|
30526
|
+
function PoRadioComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
30527
|
+
i0.ɵɵelementStart(0, "span");
|
|
30528
|
+
i0.ɵɵtext(1);
|
|
30529
|
+
i0.ɵɵelementEnd();
|
|
30530
|
+
} if (rf & 2) {
|
|
30531
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
30532
|
+
i0.ɵɵadvance(1);
|
|
30533
|
+
i0.ɵɵtextInterpolate(ctx_r1.label);
|
|
30534
|
+
} }
|
|
30535
|
+
class PoRadioComponent extends PoFieldModel {
|
|
30536
|
+
constructor(changeDetector) {
|
|
30537
|
+
super();
|
|
30538
|
+
this.changeDetector = changeDetector;
|
|
30539
|
+
this.value = false;
|
|
30540
|
+
this._size = PoRadioSize.Medium;
|
|
30541
|
+
/** Define o status do *radio* */
|
|
30542
|
+
this.checked = false;
|
|
30543
|
+
}
|
|
30544
|
+
/**
|
|
30545
|
+
* @optional
|
|
30546
|
+
*
|
|
30547
|
+
* @description
|
|
30548
|
+
*
|
|
30549
|
+
* Define o tamanho do *radio*
|
|
30550
|
+
* @default `medium`
|
|
30551
|
+
*/
|
|
30552
|
+
set size(value) {
|
|
30553
|
+
this._size = Object.values(PoRadioSize).includes(value) ? value : PoRadioSize.Medium;
|
|
30554
|
+
}
|
|
30555
|
+
get size() {
|
|
30556
|
+
return this._size;
|
|
30557
|
+
}
|
|
30558
|
+
/**
|
|
30559
|
+
* Função que atribui foco ao *radio*.
|
|
30560
|
+
*
|
|
30561
|
+
* Para utilizá-la é necessário capturar a referência do componente no DOM através do `ViewChild`, como por exemplo:
|
|
30562
|
+
*
|
|
30563
|
+
* ```
|
|
30564
|
+
* import { ViewChild } from '@angular/core';
|
|
30565
|
+
* import { PoRadioComponent } from '@po-ui/ng-components';
|
|
30566
|
+
*
|
|
30567
|
+
* ...
|
|
30568
|
+
*
|
|
30569
|
+
* @ViewChild(PoRadioComponent, { static: true }) radio: PoRadioComponent;
|
|
30570
|
+
*
|
|
30571
|
+
* focusRadio() {
|
|
30572
|
+
* this.radio.focus();
|
|
30573
|
+
* }
|
|
30574
|
+
* ```
|
|
30575
|
+
*
|
|
30576
|
+
*/
|
|
30577
|
+
focus() {
|
|
30578
|
+
if (!this.disabled) {
|
|
30579
|
+
this.radioLabel.nativeElement.focus();
|
|
30580
|
+
}
|
|
30581
|
+
}
|
|
30582
|
+
onBlur() {
|
|
30583
|
+
this.onTouched?.();
|
|
30584
|
+
}
|
|
30585
|
+
onKeyDown(event) {
|
|
30586
|
+
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
30587
|
+
this.eventClick();
|
|
30588
|
+
}
|
|
30589
|
+
}
|
|
30590
|
+
changeValue(value) {
|
|
30591
|
+
if (value) {
|
|
30592
|
+
this.value = value;
|
|
30593
|
+
this.updateModel(value);
|
|
30594
|
+
this.emitChange(this.value);
|
|
30595
|
+
}
|
|
30596
|
+
}
|
|
30597
|
+
eventClick() {
|
|
30598
|
+
if (!this.disabled) {
|
|
30599
|
+
this.changeValue(!this.value);
|
|
30600
|
+
this.changeDetector.detectChanges();
|
|
30601
|
+
}
|
|
30602
|
+
}
|
|
30603
|
+
onWriteValue(value) {
|
|
30604
|
+
if (value !== this.value) {
|
|
30605
|
+
this.value = !!value;
|
|
30606
|
+
this.changeDetector.markForCheck();
|
|
30607
|
+
}
|
|
30608
|
+
}
|
|
30609
|
+
focusIn() {
|
|
30610
|
+
this.radioLabel.nativeElement.setAttribute('focus', '');
|
|
30611
|
+
}
|
|
30612
|
+
focusOut() {
|
|
30613
|
+
this.radioLabel.nativeElement.removeAttribute('focus');
|
|
30614
|
+
}
|
|
30615
|
+
}
|
|
30616
|
+
PoRadioComponent.ɵfac = function PoRadioComponent_Factory(t) { return new (t || PoRadioComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
30617
|
+
PoRadioComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRadioComponent, selectors: [["po-radio"]], viewQuery: function PoRadioComponent_Query(rf, ctx) { if (rf & 1) {
|
|
30618
|
+
i0.ɵɵviewQuery(_c0$D, 7);
|
|
30619
|
+
} if (rf & 2) {
|
|
30620
|
+
let _t;
|
|
30621
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.radioLabel = _t.first);
|
|
30622
|
+
} }, hostBindings: function PoRadioComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
30623
|
+
i0.ɵɵlistener("focusin", function PoRadioComponent_focusin_HostBindingHandler($event) { return ctx.focusIn($event.target); })("focusout", function PoRadioComponent_focusout_HostBindingHandler($event) { return ctx.focusOut($event.target); });
|
|
30624
|
+
} }, inputs: { radioValue: ["p-value", "radioValue"], size: ["p-size", "size"], required: ["p-required", "required"], checked: ["p-checked", "checked"] }, features: [i0.ɵɵProvidersFeature([
|
|
30625
|
+
{
|
|
30626
|
+
provide: NG_VALUE_ACCESSOR,
|
|
30627
|
+
useExisting: forwardRef(() => PoRadioComponent),
|
|
30628
|
+
multi: true
|
|
30629
|
+
}
|
|
30630
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 7, consts: [[1, "po-radio"], [3, "click", "keydown"], ["radioLabel", ""], ["type", "radio", 3, "checked", "disabled", "name", "required", "value"], [4, "ngIf"]], template: function PoRadioComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30631
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1, 2);
|
|
30632
|
+
i0.ɵɵlistener("click", function PoRadioComponent_Template_label_click_1_listener() { return ctx.eventClick(); })("keydown", function PoRadioComponent_Template_label_keydown_1_listener($event) { return ctx.onKeyDown($event); });
|
|
30633
|
+
i0.ɵɵelement(3, "input", 3);
|
|
30634
|
+
i0.ɵɵtemplate(4, PoRadioComponent_span_4_Template, 2, 1, "span", 4);
|
|
30635
|
+
i0.ɵɵelementEnd()();
|
|
30636
|
+
} if (rf & 2) {
|
|
30637
|
+
let tmp_2_0;
|
|
30638
|
+
let tmp_4_0;
|
|
30639
|
+
i0.ɵɵadvance(3);
|
|
30640
|
+
i0.ɵɵproperty("checked", ctx.checked)("disabled", ctx.disabled)("name", (tmp_2_0 = ctx.name) !== null && tmp_2_0 !== undefined ? tmp_2_0 : "po-input-radio")("required", ctx.required)("value", (tmp_4_0 = ctx.radioValue) !== null && tmp_4_0 !== undefined ? tmp_4_0 : "");
|
|
30641
|
+
i0.ɵɵattribute("p-size", ctx.size);
|
|
30642
|
+
i0.ɵɵadvance(1);
|
|
30643
|
+
i0.ɵɵproperty("ngIf", ctx.label);
|
|
30644
|
+
} }, dependencies: [i1.NgIf], encapsulation: 2, changeDetection: 0 });
|
|
30645
|
+
__decorate([
|
|
30646
|
+
InputBoolean()
|
|
30647
|
+
], PoRadioComponent.prototype, "required", void 0);
|
|
30648
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRadioComponent, [{
|
|
30649
|
+
type: Component,
|
|
30650
|
+
args: [{ selector: 'po-radio', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
30651
|
+
{
|
|
30652
|
+
provide: NG_VALUE_ACCESSOR,
|
|
30653
|
+
useExisting: forwardRef(() => PoRadioComponent),
|
|
30654
|
+
multi: true
|
|
30655
|
+
}
|
|
30656
|
+
], template: "<div class=\"po-radio\">\n <label #radioLabel (click)=\"eventClick()\" (keydown)=\"onKeyDown($event)\">\n <input\n type=\"radio\"\n [attr.p-size]=\"size\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [name]=\"name ?? 'po-input-radio'\"\n [required]=\"required\"\n [value]=\"radioValue ?? ''\"\n />\n <span *ngIf=\"label\">{{ label }}</span>\n </label>\n</div>\n" }]
|
|
30657
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { radioLabel: [{
|
|
30658
|
+
type: ViewChild,
|
|
30659
|
+
args: ['radioLabel', { static: true }]
|
|
30660
|
+
}], radioValue: [{
|
|
30661
|
+
type: Input,
|
|
30662
|
+
args: ['p-value']
|
|
30663
|
+
}], size: [{
|
|
30664
|
+
type: Input,
|
|
30665
|
+
args: ['p-size']
|
|
30666
|
+
}], required: [{
|
|
30667
|
+
type: Input,
|
|
30668
|
+
args: ['p-required']
|
|
30669
|
+
}], checked: [{
|
|
30670
|
+
type: Input,
|
|
30671
|
+
args: ['p-checked']
|
|
30672
|
+
}], focusIn: [{
|
|
30673
|
+
type: HostListener,
|
|
30674
|
+
args: ['focusin', ['$event.target']]
|
|
30675
|
+
}], focusOut: [{
|
|
30676
|
+
type: HostListener,
|
|
30677
|
+
args: ['focusout', ['$event.target']]
|
|
30286
30678
|
}] }); })();
|
|
30287
30679
|
|
|
30288
30680
|
const _c0$C = ["inp"];
|
|
30289
|
-
const _c1$
|
|
30290
|
-
function
|
|
30681
|
+
const _c1$d = ["inputRadio"];
|
|
30682
|
+
function PoRadioGroupComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
30291
30683
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
30292
|
-
i0.ɵɵelementStart(0, "div")(1, "
|
|
30293
|
-
i0.ɵɵlistener("keyup", function
|
|
30294
|
-
i0.ɵɵelementEnd();
|
|
30295
|
-
i0.ɵɵelementStart(3, "label", 6);
|
|
30296
|
-
i0.ɵɵlistener("click", function PoRadioGroupComponent_div_3_Template_label_click_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const option_r2 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.eventClick(option_r2.value, option_r2.disabled === true || ctx_r6.disabled)); });
|
|
30297
|
-
i0.ɵɵtext(4);
|
|
30684
|
+
i0.ɵɵelementStart(0, "div")(1, "po-radio", 5, 6);
|
|
30685
|
+
i0.ɵɵlistener("keyup", function PoRadioGroupComponent_div_4_Template_po_radio_keyup_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r5); const option_r2 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onKeyUp($event, option_r2.value)); })("click", function PoRadioGroupComponent_div_4_Template_po_radio_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const option_r2 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.eventClick(option_r2.value, option_r2.disabled === true || ctx_r6.disabled)); });
|
|
30298
30686
|
i0.ɵɵelementEnd()();
|
|
30299
30687
|
} if (rf & 2) {
|
|
30300
30688
|
const option_r2 = ctx.$implicit;
|
|
30301
|
-
const _r3 = i0.ɵɵreference(2);
|
|
30302
30689
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
30303
30690
|
i0.ɵɵclassMapInterpolate2("po-radio-group-item po-md-", ctx_r1.mdColumns, " po-lg-", ctx_r1.columns, "");
|
|
30304
30691
|
i0.ɵɵadvance(1);
|
|
30305
|
-
i0.ɵɵ
|
|
30306
|
-
i0.ɵɵproperty("checked", ctx_r1.value === option_r2.value)("disabled", option_r2.disabled === true || ctx_r1.disabled)("required", ctx_r1.required)("value", option_r2.value);
|
|
30307
|
-
i0.ɵɵattribute("name", ctx_r1.name);
|
|
30308
|
-
i0.ɵɵadvance(2);
|
|
30309
|
-
i0.ɵɵclassProp("po-clickable", !_r3.disabled);
|
|
30310
|
-
i0.ɵɵproperty("for", ctx_r1.name);
|
|
30311
|
-
i0.ɵɵadvance(1);
|
|
30312
|
-
i0.ɵɵtextInterpolate1(" ", option_r2.label, " ");
|
|
30692
|
+
i0.ɵɵproperty("name", ctx_r1.name)("p-checked", ctx_r1.value === option_r2.value)("p-disabled", option_r2.disabled === true || ctx_r1.disabled)("p-label", option_r2.label)("p-required", ctx_r1.required)("p-size", ctx_r1.size)("p-value", option_r2.value);
|
|
30313
30693
|
} }
|
|
30314
30694
|
/**
|
|
30315
30695
|
* @docsExtends PoRadioGroupBaseComponent
|
|
@@ -30404,7 +30784,7 @@ class PoRadioGroupComponent extends PoRadioGroupBaseComponent {
|
|
|
30404
30784
|
PoRadioGroupComponent.ɵfac = function PoRadioGroupComponent_Factory(t) { return new (t || PoRadioGroupComponent)(i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
30405
30785
|
PoRadioGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRadioGroupComponent, selectors: [["po-radio-group"]], viewQuery: function PoRadioGroupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
30406
30786
|
i0.ɵɵviewQuery(_c0$C, 7, ElementRef);
|
|
30407
|
-
i0.ɵɵviewQuery(_c1$
|
|
30787
|
+
i0.ɵɵviewQuery(_c1$d, 5);
|
|
30408
30788
|
} if (rf & 2) {
|
|
30409
30789
|
let _t;
|
|
30410
30790
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -30420,17 +30800,21 @@ PoRadioGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRad
|
|
|
30420
30800
|
useExisting: forwardRef(() => PoRadioGroupComponent),
|
|
30421
30801
|
multi: true
|
|
30422
30802
|
}
|
|
30423
|
-
]), i0.ɵɵInheritDefinitionFeature], decls:
|
|
30424
|
-
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1, 2);
|
|
30425
|
-
i0.ɵɵtemplate(
|
|
30426
|
-
i0.ɵɵelementEnd();
|
|
30427
|
-
i0.ɵɵelement(
|
|
30803
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 7, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], ["role", "radiogroup", 1, "po-radio-group"], ["inp", ""], [3, "class", 4, "ngFor", "ngForOf"], [3, "name", "p-checked", "p-disabled", "p-label", "p-required", "p-size", "p-value", "keyup", "click"], ["inputRadio", ""]], template: function PoRadioGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30804
|
+
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2, 3);
|
|
30805
|
+
i0.ɵɵtemplate(4, PoRadioGroupComponent_div_4_Template, 3, 11, "div", 4);
|
|
30806
|
+
i0.ɵɵelementEnd()();
|
|
30807
|
+
i0.ɵɵelement(5, "po-field-container-bottom");
|
|
30428
30808
|
i0.ɵɵelementEnd();
|
|
30429
30809
|
} if (rf & 2) {
|
|
30430
30810
|
i0.ɵɵproperty("p-help", ctx.help)("p-label", ctx.label)("p-optional", !ctx.required && ctx.optional);
|
|
30431
|
-
i0.ɵɵadvance(
|
|
30811
|
+
i0.ɵɵadvance(1);
|
|
30812
|
+
i0.ɵɵattribute("name", ctx.name);
|
|
30813
|
+
i0.ɵɵadvance(1);
|
|
30814
|
+
i0.ɵɵattribute("aria-label", ctx.label)("data-options", ctx.options.length);
|
|
30815
|
+
i0.ɵɵadvance(2);
|
|
30432
30816
|
i0.ɵɵproperty("ngForOf", ctx.options);
|
|
30433
|
-
} }, dependencies: [i1.NgForOf, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
30817
|
+
} }, dependencies: [i1.NgForOf, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoRadioComponent], encapsulation: 2, changeDetection: 0 });
|
|
30434
30818
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRadioGroupComponent, [{
|
|
30435
30819
|
type: Component,
|
|
30436
30820
|
args: [{ selector: 'po-radio-group', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -30444,7 +30828,7 @@ PoRadioGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRad
|
|
|
30444
30828
|
useExisting: forwardRef(() => PoRadioGroupComponent),
|
|
30445
30829
|
multi: true
|
|
30446
30830
|
}
|
|
30447
|
-
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-
|
|
30831
|
+
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" [attr.name]=\"name\">\n <div #inp class=\"po-radio-group\" role=\"radiogroup\" [attr.aria-label]=\"label\" [attr.data-options]=\"options.length\">\n <div *ngFor=\"let option of options\" class=\"po-radio-group-item po-md-{{ mdColumns }} po-lg-{{ columns }}\">\n <po-radio\n #inputRadio\n [name]=\"name\"\n [p-checked]=\"value === option.value\"\n [p-disabled]=\"option.disabled === true || disabled\"\n [p-label]=\"option.label\"\n [p-required]=\"required\"\n [p-size]=\"size\"\n [p-value]=\"option.value\"\n (keyup)=\"onKeyUp($event, option.value)\"\n (click)=\"eventClick(option.value, option.disabled === true || disabled)\"\n >\n </po-radio>\n </div>\n </div>\n </div>\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
30448
30832
|
}], function () { return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }]; }, { label: [{
|
|
30449
30833
|
type: Input,
|
|
30450
30834
|
args: ['p-label']
|
|
@@ -30459,74 +30843,6 @@ PoRadioGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRad
|
|
|
30459
30843
|
args: ['inputRadio']
|
|
30460
30844
|
}] }); })();
|
|
30461
30845
|
|
|
30462
|
-
class PoFieldModel {
|
|
30463
|
-
constructor() {
|
|
30464
|
-
/**
|
|
30465
|
-
* @optional
|
|
30466
|
-
*
|
|
30467
|
-
* @description
|
|
30468
|
-
*
|
|
30469
|
-
* Indica se o campo será desabilitado.
|
|
30470
|
-
*
|
|
30471
|
-
* @default `false`
|
|
30472
|
-
*/
|
|
30473
|
-
this.disabled = false;
|
|
30474
|
-
/**
|
|
30475
|
-
* @optional
|
|
30476
|
-
*
|
|
30477
|
-
* @description
|
|
30478
|
-
*
|
|
30479
|
-
* Evento disparado ao alterar valor do campo.
|
|
30480
|
-
*/
|
|
30481
|
-
this.change = new EventEmitter();
|
|
30482
|
-
}
|
|
30483
|
-
// Função implementada do ControlValueAccessor
|
|
30484
|
-
// Usada para interceptar os estados de habilitado via forms api
|
|
30485
|
-
setDisabledState(isDisabled) {
|
|
30486
|
-
this.disabled = isDisabled;
|
|
30487
|
-
}
|
|
30488
|
-
registerOnChange(fn) {
|
|
30489
|
-
this.propagateChange = fn;
|
|
30490
|
-
}
|
|
30491
|
-
registerOnTouched(fn) {
|
|
30492
|
-
this.onTouched = fn;
|
|
30493
|
-
}
|
|
30494
|
-
writeValue(value) {
|
|
30495
|
-
this.onWriteValue(value);
|
|
30496
|
-
}
|
|
30497
|
-
emitChange(value) {
|
|
30498
|
-
this.change.emit(value);
|
|
30499
|
-
}
|
|
30500
|
-
updateModel(value) {
|
|
30501
|
-
if (this.propagateChange) {
|
|
30502
|
-
this.propagateChange(value);
|
|
30503
|
-
}
|
|
30504
|
-
}
|
|
30505
|
-
}
|
|
30506
|
-
PoFieldModel.ɵfac = function PoFieldModel_Factory(t) { return new (t || PoFieldModel)(); };
|
|
30507
|
-
PoFieldModel.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoFieldModel, inputs: { label: ["p-label", "label"], name: "name", help: ["p-help", "help"], disabled: ["p-disabled", "disabled"] }, outputs: { change: "p-change" } });
|
|
30508
|
-
__decorate([
|
|
30509
|
-
InputBoolean()
|
|
30510
|
-
], PoFieldModel.prototype, "disabled", void 0);
|
|
30511
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldModel, [{
|
|
30512
|
-
type: Directive
|
|
30513
|
-
}], function () { return []; }, { label: [{
|
|
30514
|
-
type: Input,
|
|
30515
|
-
args: ['p-label']
|
|
30516
|
-
}], name: [{
|
|
30517
|
-
type: Input,
|
|
30518
|
-
args: ['name']
|
|
30519
|
-
}], help: [{
|
|
30520
|
-
type: Input,
|
|
30521
|
-
args: ['p-help']
|
|
30522
|
-
}], disabled: [{
|
|
30523
|
-
type: Input,
|
|
30524
|
-
args: ['p-disabled']
|
|
30525
|
-
}], change: [{
|
|
30526
|
-
type: Output,
|
|
30527
|
-
args: ['p-change']
|
|
30528
|
-
}] }); })();
|
|
30529
|
-
|
|
30530
30846
|
/**
|
|
30531
30847
|
* @docsExtends PoFieldModel
|
|
30532
30848
|
*/
|
|
@@ -30595,68 +30911,29 @@ __decorate([
|
|
|
30595
30911
|
args: ['p-required']
|
|
30596
30912
|
}] }); })();
|
|
30597
30913
|
|
|
30598
|
-
const _c0$B = ["
|
|
30599
|
-
const _c1$d = ["icon"];
|
|
30600
|
-
const _c2$3 = ["select"];
|
|
30601
|
-
const _c3$2 = ["selectButton"];
|
|
30602
|
-
function PoSelectComponent_option_3_Template(rf, ctx) { if (rf & 1) {
|
|
30603
|
-
i0.ɵɵelement(0, "option", 14);
|
|
30604
|
-
} }
|
|
30914
|
+
const _c0$B = ["select"];
|
|
30605
30915
|
function PoSelectComponent_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
30606
|
-
|
|
30607
|
-
i0.ɵɵelementStart(0, "option", 15);
|
|
30608
|
-
i0.ɵɵlistener("click", function PoSelectComponent_option_4_Template_option_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r9); const option_r7 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onOptionClick(option_r7)); });
|
|
30916
|
+
i0.ɵɵelementStart(0, "option", 6);
|
|
30609
30917
|
i0.ɵɵtext(1);
|
|
30610
30918
|
i0.ɵɵelementEnd();
|
|
30611
30919
|
} if (rf & 2) {
|
|
30612
|
-
const
|
|
30613
|
-
|
|
30614
|
-
i0.ɵɵproperty("disabled",
|
|
30920
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
30921
|
+
let tmp_3_0;
|
|
30922
|
+
i0.ɵɵproperty("disabled", !!ctx_r1.placeholder)("hidden", !ctx_r1.selectedValue && !ctx_r1.placeholder)("selected", !ctx_r1.selectedValue)("value", (tmp_3_0 = ctx_r1.placeholder) !== null && tmp_3_0 !== undefined ? tmp_3_0 : "");
|
|
30615
30923
|
i0.ɵɵadvance(1);
|
|
30616
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
30617
|
-
} }
|
|
30618
|
-
function PoSelectComponent_li_15_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
30619
|
-
i0.ɵɵelementContainer(0);
|
|
30924
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.placeholder, " ");
|
|
30620
30925
|
} }
|
|
30621
|
-
function
|
|
30622
|
-
i0.ɵɵelementStart(0, "
|
|
30926
|
+
function PoSelectComponent_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
30927
|
+
i0.ɵɵelementStart(0, "option", 7);
|
|
30623
30928
|
i0.ɵɵtext(1);
|
|
30624
30929
|
i0.ɵɵelementEnd();
|
|
30625
30930
|
} if (rf & 2) {
|
|
30626
|
-
const
|
|
30627
|
-
const
|
|
30931
|
+
const option_r3 = ctx.$implicit;
|
|
30932
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
30933
|
+
i0.ɵɵproperty("disabled", ctx_r2.readonly)("value", option_r3 == null ? null : option_r3[ctx_r2.fieldValue]);
|
|
30628
30934
|
i0.ɵɵadvance(1);
|
|
30629
|
-
i0.ɵɵ
|
|
30935
|
+
i0.ɵɵtextInterpolate1(" ", option_r3 == null ? null : option_r3[ctx_r2.fieldLabel], " ");
|
|
30630
30936
|
} }
|
|
30631
|
-
function PoSelectComponent_li_15_ng_template_5_Template(rf, ctx) { }
|
|
30632
|
-
const _c4$1 = function (a0) { return { $implicit: a0 }; };
|
|
30633
|
-
function PoSelectComponent_li_15_Template(rf, ctx) { if (rf & 1) {
|
|
30634
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
30635
|
-
i0.ɵɵelementStart(0, "li", 16);
|
|
30636
|
-
i0.ɵɵlistener("click", function PoSelectComponent_li_15_Template_li_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r18); const option_r10 = restoredCtx.$implicit; const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.onOptionClick(option_r10)); });
|
|
30637
|
-
i0.ɵɵelementStart(1, "div", 17);
|
|
30638
|
-
i0.ɵɵtemplate(2, PoSelectComponent_li_15_ng_container_2_Template, 1, 0, "ng-container", 18);
|
|
30639
|
-
i0.ɵɵtemplate(3, PoSelectComponent_li_15_ng_template_3_Template, 2, 1, "ng-template", null, 19, i0.ɵɵtemplateRefExtractor);
|
|
30640
|
-
i0.ɵɵtemplate(5, PoSelectComponent_li_15_ng_template_5_Template, 0, 0, "ng-template", 20, 21, i0.ɵɵtemplateRefExtractor);
|
|
30641
|
-
i0.ɵɵelementEnd()();
|
|
30642
|
-
} if (rf & 2) {
|
|
30643
|
-
const option_r10 = ctx.$implicit;
|
|
30644
|
-
const _r12 = i0.ɵɵreference(4);
|
|
30645
|
-
const _r14 = i0.ɵɵreference(6);
|
|
30646
|
-
const ctx_r6 = i0.ɵɵnextContext();
|
|
30647
|
-
i0.ɵɵclassProp("po-select-item-selected", ctx_r6.selectedValue === (option_r10 == null ? null : option_r10[ctx_r6.fieldLabel]));
|
|
30648
|
-
i0.ɵɵproperty("value", option_r10 == null ? null : option_r10[ctx_r6.fieldValue]);
|
|
30649
|
-
i0.ɵɵadvance(2);
|
|
30650
|
-
i0.ɵɵproperty("ngIf", ctx_r6.selectOptionTemplate)("ngIfThen", _r14)("ngIfElse", _r12);
|
|
30651
|
-
i0.ɵɵadvance(3);
|
|
30652
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r6.selectOptionTemplate == null ? null : ctx_r6.selectOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(8, _c4$1, option_r10));
|
|
30653
|
-
} }
|
|
30654
|
-
const _c5 = function (a0, a1) { return { "po-select-mobile": a0, "po-invisible": a1 }; };
|
|
30655
|
-
const _c6 = function (a0, a1) { return { "po-select-button-disabled": a0, "po-select-button-readonly": a1 }; };
|
|
30656
|
-
const _c7 = function (a0, a1) { return { "po-field-icon-disabled": a0, "po-field-icon-readonly": a1 }; };
|
|
30657
|
-
const _c8 = function (a0) { return { "po-invisible": a0 }; };
|
|
30658
|
-
const poSelectContentOffset = 8;
|
|
30659
|
-
const poSelectContentPositionDefault = 'bottom';
|
|
30660
30937
|
const PO_SELECT_FIELD_LABEL_DEFAULT = 'label';
|
|
30661
30938
|
const PO_SELECT_FIELD_VALUE_DEFAULT = 'value';
|
|
30662
30939
|
/**
|
|
@@ -30703,12 +30980,10 @@ const PO_SELECT_FIELD_VALUE_DEFAULT = 'value';
|
|
|
30703
30980
|
*/
|
|
30704
30981
|
class PoSelectComponent extends PoFieldValidateModel {
|
|
30705
30982
|
/* istanbul ignore next */
|
|
30706
|
-
constructor(
|
|
30983
|
+
constructor(changeDetector, differs, renderer) {
|
|
30707
30984
|
super();
|
|
30708
|
-
this.element = element;
|
|
30709
30985
|
this.changeDetector = changeDetector;
|
|
30710
30986
|
this.renderer = renderer;
|
|
30711
|
-
this.controlPosition = controlPosition;
|
|
30712
30987
|
/**
|
|
30713
30988
|
* @optional
|
|
30714
30989
|
*
|
|
@@ -30734,14 +31009,8 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30734
31009
|
* @default `false`
|
|
30735
31010
|
*/
|
|
30736
31011
|
this.readonly = false;
|
|
30737
|
-
this.isMobile = isMobile();
|
|
30738
|
-
this.open = false;
|
|
30739
|
-
this.selectIcon = 'po-icon-arrow-down';
|
|
30740
31012
|
this._fieldLabel = PO_SELECT_FIELD_LABEL_DEFAULT;
|
|
30741
31013
|
this._fieldValue = PO_SELECT_FIELD_VALUE_DEFAULT;
|
|
30742
|
-
this.onScroll = () => {
|
|
30743
|
-
this.controlPosition.adjustPosition(poSelectContentPositionDefault);
|
|
30744
|
-
};
|
|
30745
31014
|
this.differ = differs.find([]).create(null);
|
|
30746
31015
|
}
|
|
30747
31016
|
/**
|
|
@@ -30810,41 +31079,10 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30810
31079
|
get fieldValue() {
|
|
30811
31080
|
return this._fieldValue;
|
|
30812
31081
|
}
|
|
30813
|
-
get isInvisibleSelectNative() {
|
|
30814
|
-
return this.readonly && this.isMobile;
|
|
30815
|
-
}
|
|
30816
|
-
onKeydown($event) {
|
|
30817
|
-
const charCode = $event.which || $event.keyCode;
|
|
30818
|
-
// Tratamentos para quando o readonly for ativado.
|
|
30819
|
-
if (this.readonly) {
|
|
30820
|
-
// deve matar o evento do teclado devido a alterar o valor do model mesmo com os options fechados
|
|
30821
|
-
if (charCode !== PoKeyCodeEnum.tab) {
|
|
30822
|
-
this.disableDefaultEventAndToggleButton();
|
|
30823
|
-
$event.preventDefault();
|
|
30824
|
-
}
|
|
30825
|
-
return;
|
|
30826
|
-
}
|
|
30827
|
-
// Seleciona os itens com as teclas "up" e "down"
|
|
30828
|
-
if ((!this.open || $event.altKey) && (charCode === PoKeyCodeEnum.arrowDown || charCode === PoKeyCodeEnum.arrowUp)) {
|
|
30829
|
-
this.disableDefaultEventAndToggleButton();
|
|
30830
|
-
}
|
|
30831
|
-
// Abre o po-select com as teclas "enter" e "espaço"
|
|
30832
|
-
if (charCode === PoKeyCodeEnum.enter || charCode === PoKeyCodeEnum.space) {
|
|
30833
|
-
this.disableDefaultEventAndToggleButton();
|
|
30834
|
-
}
|
|
30835
|
-
// Fecha o po-select com a tecla "tab"
|
|
30836
|
-
if (this.open && charCode === PoKeyCodeEnum.tab) {
|
|
30837
|
-
$event.preventDefault();
|
|
30838
|
-
this.toggleButton();
|
|
30839
|
-
}
|
|
30840
|
-
}
|
|
30841
31082
|
ngDoCheck() {
|
|
30842
31083
|
const change = this.differ.diff(this.options);
|
|
30843
31084
|
if (change) {
|
|
30844
|
-
|
|
30845
|
-
removeUndefinedAndNullOptions(this.options);
|
|
30846
|
-
removeDuplicatedOptionsWithFieldValue(this.options, this.fieldValue);
|
|
30847
|
-
removeUndefinedAndNullOptionsWithFieldValue(this.options, this.fieldValue);
|
|
31085
|
+
this.validateOptions(this.options);
|
|
30848
31086
|
}
|
|
30849
31087
|
}
|
|
30850
31088
|
/**
|
|
@@ -30869,28 +31107,15 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30869
31107
|
this.selectElement.nativeElement.focus();
|
|
30870
31108
|
}
|
|
30871
31109
|
}
|
|
30872
|
-
hideDropDown() {
|
|
30873
|
-
this.selectIcon = 'po-icon-arrow-down';
|
|
30874
|
-
this.selector('.po-select-container').classList.remove('po-select-show');
|
|
30875
|
-
this.open = false;
|
|
30876
|
-
this.changeDetector.markForCheck();
|
|
30877
|
-
this.selectElement.nativeElement.focus();
|
|
30878
|
-
this.removeListeners();
|
|
30879
|
-
}
|
|
30880
31110
|
onBlur() {
|
|
30881
31111
|
this.onModelTouched?.();
|
|
30882
31112
|
}
|
|
30883
|
-
onOptionClick(option) {
|
|
30884
|
-
this.updateValues(option);
|
|
30885
|
-
this.toggleButton();
|
|
30886
|
-
}
|
|
30887
31113
|
// Altera o valor ao selecionar um item.
|
|
30888
31114
|
onSelectChange(value) {
|
|
30889
31115
|
if (value && this.options && this.options.length) {
|
|
30890
31116
|
const optionFound = this.findOptionValue(value);
|
|
30891
31117
|
if (optionFound) {
|
|
30892
31118
|
this.updateValues(optionFound);
|
|
30893
|
-
this.setScrollPosition(optionFound.value);
|
|
30894
31119
|
}
|
|
30895
31120
|
}
|
|
30896
31121
|
}
|
|
@@ -30899,16 +31124,6 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30899
31124
|
this.onSelectChange(this.modelValue);
|
|
30900
31125
|
}
|
|
30901
31126
|
}
|
|
30902
|
-
scrollValue(index, clientHeight) {
|
|
30903
|
-
const heightScrollValue = index * this.getSelectItemHeight();
|
|
30904
|
-
return (this.scrollPosition = heightScrollValue > clientHeight ? heightScrollValue : 0);
|
|
30905
|
-
}
|
|
30906
|
-
selector(query) {
|
|
30907
|
-
return this.element.nativeElement.querySelector(query);
|
|
30908
|
-
}
|
|
30909
|
-
toggleButton() {
|
|
30910
|
-
this.open ? this.hideDropDown() : this.showDropdown();
|
|
30911
|
-
}
|
|
30912
31127
|
// Atualiza valores
|
|
30913
31128
|
updateValues(option) {
|
|
30914
31129
|
if (this.selectedValue !== option[this.fieldValue]) {
|
|
@@ -30919,13 +31134,6 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30919
31134
|
this.emitChange(option[this.fieldValue]);
|
|
30920
31135
|
}
|
|
30921
31136
|
}
|
|
30922
|
-
// Esconde Content do Select quando for clicado fora
|
|
30923
|
-
wasClickedOnToggle(event) {
|
|
30924
|
-
if (!this.selectButtonElement.nativeElement.contains(event.target) &&
|
|
30925
|
-
!this.iconElement.nativeElement.contains(event.target)) {
|
|
30926
|
-
this.hideDropDown();
|
|
30927
|
-
}
|
|
30928
|
-
}
|
|
30929
31137
|
// Recebe as alterações do model
|
|
30930
31138
|
onWriteValue(value) {
|
|
30931
31139
|
const optionFound = this.findOptionValue(value);
|
|
@@ -30933,7 +31141,6 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30933
31141
|
this.selectElement.nativeElement.value = optionFound.value;
|
|
30934
31142
|
this.selectedValue = optionFound[this.fieldValue];
|
|
30935
31143
|
this.displayValue = optionFound[this.fieldLabel];
|
|
30936
|
-
this.setScrollPosition(optionFound[this.fieldValue]);
|
|
30937
31144
|
}
|
|
30938
31145
|
else if (validValue(this.selectedValue)) {
|
|
30939
31146
|
this.selectElement.nativeElement.value = undefined;
|
|
@@ -30956,66 +31163,9 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
30956
31163
|
}
|
|
30957
31164
|
return value === inputValue;
|
|
30958
31165
|
}
|
|
30959
|
-
// Método necessário para bloquear o evento default do select nativo.
|
|
30960
|
-
// Ao utilizar event.preventDefault(), nos navegadores Firefox e IE o mesmo não cancela o evento.
|
|
30961
|
-
disableDefaultEventAndToggleButton() {
|
|
30962
|
-
this.selectElement.nativeElement.style.display = 'none';
|
|
30963
|
-
setTimeout(() => {
|
|
30964
|
-
this.selectElement.nativeElement.style.display = 'block';
|
|
30965
|
-
this.toggleButton();
|
|
30966
|
-
});
|
|
30967
|
-
}
|
|
30968
31166
|
findOptionValue(value) {
|
|
30969
31167
|
return this.options.find(option => this.isEqual(option.value, value));
|
|
30970
31168
|
}
|
|
30971
|
-
getSelectItemHeight() {
|
|
30972
|
-
const selectItem = this.selector('div.po-select-item');
|
|
30973
|
-
return selectItem && selectItem.clientHeight;
|
|
30974
|
-
}
|
|
30975
|
-
initializeListeners() {
|
|
30976
|
-
this.clickoutListener = this.renderer.listen('document', 'click', (event) => {
|
|
30977
|
-
this.wasClickedOnToggle(event);
|
|
30978
|
-
});
|
|
30979
|
-
this.eventResizeListener = this.renderer.listen('window', 'resize', () => {
|
|
30980
|
-
this.hideDropDown();
|
|
30981
|
-
});
|
|
30982
|
-
window.addEventListener('scroll', this.onScroll, true);
|
|
30983
|
-
}
|
|
30984
|
-
removeListeners() {
|
|
30985
|
-
if (this.clickoutListener) {
|
|
30986
|
-
this.clickoutListener();
|
|
30987
|
-
}
|
|
30988
|
-
this.eventResizeListener();
|
|
30989
|
-
window.removeEventListener('scroll', this.onScroll, true);
|
|
30990
|
-
}
|
|
30991
|
-
setPositionDropdown() {
|
|
30992
|
-
this.controlPosition.setElements(this.contentList.nativeElement, poSelectContentOffset, this.selectButtonElement, ['top', 'bottom'], true);
|
|
30993
|
-
this.controlPosition.adjustPosition(poSelectContentPositionDefault);
|
|
30994
|
-
}
|
|
30995
|
-
setScrollPosition(value) {
|
|
30996
|
-
const ulDropdpwn = this.element.nativeElement.querySelector('ul.po-select-content');
|
|
30997
|
-
if (value && this.options && this.options.length) {
|
|
30998
|
-
const optionFound = this.findOptionValue(value);
|
|
30999
|
-
if (optionFound) {
|
|
31000
|
-
const index = this.options.indexOf(optionFound);
|
|
31001
|
-
ulDropdpwn.scrollTop = this.scrollValue(index, ulDropdpwn.clientHeight);
|
|
31002
|
-
}
|
|
31003
|
-
}
|
|
31004
|
-
}
|
|
31005
|
-
showDropdown() {
|
|
31006
|
-
if (!this.readonly) {
|
|
31007
|
-
this.selectElement.nativeElement.focus();
|
|
31008
|
-
this.selectIcon = 'po-icon-arrow-up';
|
|
31009
|
-
this.selector('.po-select-container').classList.add('po-select-show');
|
|
31010
|
-
this.open = true;
|
|
31011
|
-
this.changeDetector.markForCheck();
|
|
31012
|
-
this.setPositionDropdown();
|
|
31013
|
-
this.initializeListeners();
|
|
31014
|
-
if (this.options && this.options.length) {
|
|
31015
|
-
this.setScrollPosition(this.selectedValue);
|
|
31016
|
-
}
|
|
31017
|
-
}
|
|
31018
|
-
}
|
|
31019
31169
|
validateOptions(options) {
|
|
31020
31170
|
removeDuplicatedOptions(options);
|
|
31021
31171
|
removeUndefinedAndNullOptions(options);
|
|
@@ -31023,20 +31173,12 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
31023
31173
|
removeUndefinedAndNullOptionsWithFieldValue(options, this.fieldValue);
|
|
31024
31174
|
}
|
|
31025
31175
|
}
|
|
31026
|
-
PoSelectComponent.ɵfac = function PoSelectComponent_Factory(t) { return new (t || PoSelectComponent)(i0.ɵɵdirectiveInject(i0.
|
|
31176
|
+
PoSelectComponent.ɵfac = function PoSelectComponent_Factory(t) { return new (t || PoSelectComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
31027
31177
|
PoSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSelectComponent, selectors: [["po-select"]], viewQuery: function PoSelectComponent_Query(rf, ctx) { if (rf & 1) {
|
|
31028
31178
|
i0.ɵɵviewQuery(_c0$B, 7, ElementRef);
|
|
31029
|
-
i0.ɵɵviewQuery(_c1$d, 7, ElementRef);
|
|
31030
|
-
i0.ɵɵviewQuery(_c2$3, 7, ElementRef);
|
|
31031
|
-
i0.ɵɵviewQuery(_c3$2, 7, ElementRef);
|
|
31032
31179
|
} if (rf & 2) {
|
|
31033
31180
|
let _t;
|
|
31034
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentList = _t.first);
|
|
31035
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
31036
31181
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectElement = _t.first);
|
|
31037
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectButtonElement = _t.first);
|
|
31038
|
-
} }, hostBindings: function PoSelectComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
31039
|
-
i0.ɵɵlistener("keydown", function PoSelectComponent_keydown_HostBindingHandler($event) { return ctx.onKeydown($event); });
|
|
31040
31182
|
} }, inputs: { readonly: ["p-readonly", "readonly"], placeholder: ["p-placeholder", "placeholder"], options: ["p-options", "options"], fieldLabel: ["p-field-label", "fieldLabel"], fieldValue: ["p-field-value", "fieldValue"] }, outputs: { ngModelChange: "ngModelChange" }, features: [i0.ɵɵProvidersFeature([
|
|
31041
31183
|
{
|
|
31042
31184
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -31047,48 +31189,26 @@ PoSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSelectC
|
|
|
31047
31189
|
provide: NG_VALIDATORS,
|
|
31048
31190
|
useExisting: forwardRef(() => PoSelectComponent),
|
|
31049
31191
|
multi: true
|
|
31050
|
-
}
|
|
31051
|
-
|
|
31052
|
-
|
|
31053
|
-
i0.ɵɵ
|
|
31054
|
-
i0.ɵɵ
|
|
31055
|
-
i0.ɵɵtemplate(
|
|
31056
|
-
i0.ɵɵtemplate(4, PoSelectComponent_option_4_Template, 2, 3, "option", 4);
|
|
31057
|
-
i0.ɵɵelementEnd();
|
|
31058
|
-
i0.ɵɵelementStart(5, "div", 5)(6, "div", 6, 7);
|
|
31059
|
-
i0.ɵɵlistener("click", function PoSelectComponent_Template_div_click_6_listener() { return ctx.toggleButton(); });
|
|
31060
|
-
i0.ɵɵelementStart(8, "span");
|
|
31061
|
-
i0.ɵɵtext(9);
|
|
31062
|
-
i0.ɵɵelementEnd();
|
|
31063
|
-
i0.ɵɵelementStart(10, "div", 8);
|
|
31064
|
-
i0.ɵɵelement(11, "span", 9, 10);
|
|
31065
|
-
i0.ɵɵelementEnd()();
|
|
31066
|
-
i0.ɵɵelementStart(13, "ul", 11, 12);
|
|
31067
|
-
i0.ɵɵtemplate(15, PoSelectComponent_li_15_Template, 7, 10, "li", 13);
|
|
31192
|
+
}
|
|
31193
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 11, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], [1, "po-select", 3, "disabled", "required", "blur", "change"], ["select", ""], [3, "disabled", "hidden", "selected", "value", 4, "ngIf"], [3, "disabled", "value", 4, "ngFor", "ngForOf"], [3, "disabled", "hidden", "selected", "value"], [3, "disabled", "value"]], template: function PoSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31194
|
+
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "select", 2, 3);
|
|
31195
|
+
i0.ɵɵlistener("blur", function PoSelectComponent_Template_select_blur_2_listener() { return ctx.onBlur(); })("change", function PoSelectComponent_Template_select_change_2_listener($event) { return ctx.onSelectChange($event.target.value); });
|
|
31196
|
+
i0.ɵɵtemplate(4, PoSelectComponent_option_4_Template, 2, 5, "option", 4);
|
|
31197
|
+
i0.ɵɵtemplate(5, PoSelectComponent_option_5_Template, 2, 3, "option", 5);
|
|
31068
31198
|
i0.ɵɵelementEnd()();
|
|
31069
|
-
i0.ɵɵelement(
|
|
31199
|
+
i0.ɵɵelement(6, "po-field-container-bottom");
|
|
31070
31200
|
i0.ɵɵelementEnd();
|
|
31071
31201
|
} if (rf & 2) {
|
|
31072
31202
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help)("p-optional", !ctx.required && ctx.optional);
|
|
31073
|
-
i0.ɵɵadvance(1);
|
|
31074
|
-
i0.ɵɵproperty("disabled", ctx.disabled)("ngClass", i0.ɵɵpureFunction2(17, _c5, ctx.isMobile, ctx.isInvisibleSelectNative))("required", ctx.required);
|
|
31075
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
31076
|
-
i0.ɵɵadvance(2);
|
|
31077
|
-
i0.ɵɵproperty("ngIf", ctx.isMobile);
|
|
31078
|
-
i0.ɵɵadvance(1);
|
|
31079
|
-
i0.ɵɵproperty("ngForOf", ctx.options);
|
|
31080
31203
|
i0.ɵɵadvance(2);
|
|
31081
|
-
i0.ɵɵ
|
|
31082
|
-
i0.ɵɵ
|
|
31083
|
-
i0.ɵɵ
|
|
31084
|
-
i0.ɵɵadvance(2);
|
|
31085
|
-
i0.ɵɵclassMapInterpolate1("po-icon ", ctx.selectIcon, " po-field-icon");
|
|
31086
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(23, _c7, ctx.disabled, ctx.readonly));
|
|
31087
|
-
i0.ɵɵadvance(2);
|
|
31088
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c8, ctx.isMobile));
|
|
31204
|
+
i0.ɵɵclassProp("po-select-placeholder", !ctx.selectedValue && !!ctx.placeholder);
|
|
31205
|
+
i0.ɵɵproperty("disabled", ctx.disabled)("required", ctx.required);
|
|
31206
|
+
i0.ɵɵattribute("aria-label", ctx.label)("name", ctx.name);
|
|
31089
31207
|
i0.ɵɵadvance(2);
|
|
31208
|
+
i0.ɵɵproperty("ngIf", !ctx.selectedValue || !!ctx.placeholder);
|
|
31209
|
+
i0.ɵɵadvance(1);
|
|
31090
31210
|
i0.ɵɵproperty("ngForOf", ctx.options);
|
|
31091
|
-
} }, dependencies: [i1.
|
|
31211
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i2$1.NgSelectOption, i2$1.ɵNgSelectMultipleOption, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
31092
31212
|
__decorate([
|
|
31093
31213
|
InputBoolean()
|
|
31094
31214
|
], PoSelectComponent.prototype, "readonly", void 0);
|
|
@@ -31104,21 +31224,11 @@ __decorate([
|
|
|
31104
31224
|
provide: NG_VALIDATORS,
|
|
31105
31225
|
useExisting: forwardRef(() => PoSelectComponent),
|
|
31106
31226
|
multi: true
|
|
31107
|
-
}
|
|
31108
|
-
|
|
31109
|
-
|
|
31110
|
-
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoControlPositionService }]; }, { contentList: [{
|
|
31111
|
-
type: ViewChild,
|
|
31112
|
-
args: ['contentList', { read: ElementRef, static: true }]
|
|
31113
|
-
}], iconElement: [{
|
|
31114
|
-
type: ViewChild,
|
|
31115
|
-
args: ['icon', { read: ElementRef, static: true }]
|
|
31116
|
-
}], selectElement: [{
|
|
31227
|
+
}
|
|
31228
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <select\n #select\n class=\"po-select\"\n [attr.aria-label]=\"label\"\n [attr.name]=\"name\"\n [class.po-select-placeholder]=\"!selectedValue && !!placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n (blur)=\"onBlur()\"\n (change)=\"onSelectChange($event.target.value)\"\n >\n <option\n *ngIf=\"!selectedValue || !!placeholder\"\n [disabled]=\"!!placeholder\"\n [hidden]=\"!selectedValue && !placeholder\"\n [selected]=\"!selectedValue\"\n [value]=\"placeholder ?? ''\"\n >\n {{ placeholder }}\n </option>\n <option *ngFor=\"let option of options\" [disabled]=\"readonly\" [value]=\"option?.[this.fieldValue]\">\n {{ option?.[this.fieldLabel] }}\n </option>\n </select>\n </div>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
31229
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }]; }, { selectElement: [{
|
|
31117
31230
|
type: ViewChild,
|
|
31118
31231
|
args: ['select', { read: ElementRef, static: true }]
|
|
31119
|
-
}], selectButtonElement: [{
|
|
31120
|
-
type: ViewChild,
|
|
31121
|
-
args: ['selectButton', { read: ElementRef, static: true }]
|
|
31122
31232
|
}], ngModelChange: [{
|
|
31123
31233
|
type: Output,
|
|
31124
31234
|
args: ['ngModelChange']
|
|
@@ -31137,9 +31247,6 @@ __decorate([
|
|
|
31137
31247
|
}], fieldValue: [{
|
|
31138
31248
|
type: Input,
|
|
31139
31249
|
args: ['p-field-value']
|
|
31140
|
-
}], onKeydown: [{
|
|
31141
|
-
type: HostListener,
|
|
31142
|
-
args: ['keydown', ['$event']]
|
|
31143
31250
|
}] }); })();
|
|
31144
31251
|
|
|
31145
31252
|
/**
|
|
@@ -31158,6 +31265,9 @@ var PoSwitchLabelPosition;
|
|
|
31158
31265
|
})(PoSwitchLabelPosition || (PoSwitchLabelPosition = {}));
|
|
31159
31266
|
|
|
31160
31267
|
const _c0$A = ["switchContainer"];
|
|
31268
|
+
function PoSwitchComponent_po_icon_7_Template(rf, ctx) { if (rf & 1) {
|
|
31269
|
+
i0.ɵɵelement(0, "po-icon", 9);
|
|
31270
|
+
} }
|
|
31161
31271
|
/**
|
|
31162
31272
|
* @docsExtends PoFieldModel
|
|
31163
31273
|
*
|
|
@@ -31166,13 +31276,24 @@ const _c0$A = ["switchContainer"];
|
|
|
31166
31276
|
* O componente `po-switch` é um [checkbox](/documentation/po-checkbox-group) mais intuitivo, pois faz analogia a um interruptor.
|
|
31167
31277
|
* Deve ser usado quando deseja-se transmitir a ideia de ligar / desligar uma funcionalidade específica.
|
|
31168
31278
|
*
|
|
31169
|
-
* Pode-se ligar ou
|
|
31279
|
+
* Pode-se ligar ou desligar o switch utilizando a tecla de espaço ou o clique do mouse.
|
|
31170
31280
|
*
|
|
31171
31281
|
* O texto exibido pode ser alterado de acordo com o valor setado aumentando as possibilidades de uso do componente,
|
|
31172
31282
|
* portanto, recomenda-se informar textos que contextualizem seu uso para que facilite a compreensão do usuário.
|
|
31173
31283
|
*
|
|
31174
31284
|
* > O componente não altera o valor incial informado no *model*, portanto indica-se inicializa-lo caso ter necessidade.
|
|
31175
31285
|
*
|
|
31286
|
+
* #### Boas práticas
|
|
31287
|
+
*
|
|
31288
|
+
* - Evite `labels` extensos que quebram o layout do `po-switch`, use `labels` diretos, curtos e intuitivos.
|
|
31289
|
+
*
|
|
31290
|
+
* #### Acessibilidade tratada no componente
|
|
31291
|
+
*
|
|
31292
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
31293
|
+
*
|
|
31294
|
+
* - Quando em foco, o switch é ativado usando a tecla de Espaço. [W3C WAI-ARIA 3.5 Switch - Keyboard Interaction](https://www.w3.org/WAI/ARIA/apg/patterns/switch/#keyboard-interaction-19)
|
|
31295
|
+
* - A área do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco não pode ficar escondido por outros elementos da tela. [WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
|
|
31296
|
+
*
|
|
31176
31297
|
* @example
|
|
31177
31298
|
*
|
|
31178
31299
|
* <example name="po-switch-basic" title="PO Switch Basic">
|
|
@@ -31278,16 +31399,6 @@ class PoSwitchComponent extends PoFieldModel {
|
|
|
31278
31399
|
return 'right';
|
|
31279
31400
|
}
|
|
31280
31401
|
}
|
|
31281
|
-
getSwitchPosition() {
|
|
31282
|
-
switch (this.labelPosition) {
|
|
31283
|
-
case PoSwitchLabelPosition.Left:
|
|
31284
|
-
return 'right';
|
|
31285
|
-
case PoSwitchLabelPosition.Right:
|
|
31286
|
-
return 'left';
|
|
31287
|
-
default:
|
|
31288
|
-
return 'left';
|
|
31289
|
-
}
|
|
31290
|
-
}
|
|
31291
31402
|
onKeyDown(event) {
|
|
31292
31403
|
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
31293
31404
|
event.preventDefault();
|
|
@@ -31325,34 +31436,32 @@ PoSwitchComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSwitchC
|
|
|
31325
31436
|
useExisting: forwardRef(() => PoSwitchComponent),
|
|
31326
31437
|
multi: true
|
|
31327
31438
|
}
|
|
31328
|
-
]), i0.ɵɵInheritDefinitionFeature], decls:
|
|
31329
|
-
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2, 3);
|
|
31330
|
-
i0.ɵɵlistener("
|
|
31331
|
-
i0.ɵɵelementStart(
|
|
31332
|
-
i0.ɵɵ
|
|
31333
|
-
i0.ɵɵelementEnd()();
|
|
31334
|
-
i0.ɵɵelementStart(
|
|
31335
|
-
i0.ɵɵlistener("click", function
|
|
31336
|
-
i0.ɵɵtext(
|
|
31337
|
-
i0.ɵɵelementEnd()();
|
|
31338
|
-
i0.ɵɵelement(
|
|
31439
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 10, consts: [[3, "p-label", "p-help"], [1, "po-field-container-content"], [1, "po-switch"], ["role", "switch", 1, "po-switch-container", 3, "tabindex", "blur", "click", "keydown"], ["switchContainer", ""], [1, "po-switch-track"], [1, "po-switch-toggle"], ["class", "po-switch-icon", "p-icon", "po-icon-ok", 4, "ngIf"], [1, "po-switch-label", 3, "click"], ["p-icon", "po-icon-ok", 1, "po-switch-icon"]], template: function PoSwitchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31440
|
+
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3, 4);
|
|
31441
|
+
i0.ɵɵlistener("blur", function PoSwitchComponent_Template_div_blur_3_listener() { return ctx.onBlur(); })("click", function PoSwitchComponent_Template_div_click_3_listener() { return ctx.eventClick(); })("keydown", function PoSwitchComponent_Template_div_keydown_3_listener($event) { return ctx.onKeyDown($event); });
|
|
31442
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "div", 6);
|
|
31443
|
+
i0.ɵɵtemplate(7, PoSwitchComponent_po_icon_7_Template, 1, 0, "po-icon", 7);
|
|
31444
|
+
i0.ɵɵelementEnd()()();
|
|
31445
|
+
i0.ɵɵelementStart(8, "span", 8);
|
|
31446
|
+
i0.ɵɵlistener("click", function PoSwitchComponent_Template_span_click_8_listener() { return ctx.eventClick(); });
|
|
31447
|
+
i0.ɵɵtext(9);
|
|
31448
|
+
i0.ɵɵelementEnd()()();
|
|
31449
|
+
i0.ɵɵelement(10, "po-field-container-bottom");
|
|
31339
31450
|
i0.ɵɵelementEnd();
|
|
31340
31451
|
} if (rf & 2) {
|
|
31341
31452
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help);
|
|
31342
31453
|
i0.ɵɵadvance(1);
|
|
31343
31454
|
i0.ɵɵattribute("name", ctx.name);
|
|
31344
31455
|
i0.ɵɵadvance(1);
|
|
31345
|
-
i0.ɵɵ
|
|
31456
|
+
i0.ɵɵattribute("data-label-position", ctx.getLabelPosition());
|
|
31457
|
+
i0.ɵɵadvance(1);
|
|
31346
31458
|
i0.ɵɵproperty("tabindex", ctx.disabled ? -1 : 0);
|
|
31459
|
+
i0.ɵɵattribute("aria-checked", ctx.value)("aria-disabled", ctx.disabled)("aria-label", ctx.value === true ? ctx.labelOn : ctx.labelOff);
|
|
31460
|
+
i0.ɵɵadvance(4);
|
|
31461
|
+
i0.ɵɵproperty("ngIf", ctx.value === true);
|
|
31347
31462
|
i0.ɵɵadvance(2);
|
|
31348
|
-
i0.ɵɵclassProp("po-switch-button-on", ctx.value === true)("po-switch-button-off", ctx.value === false)("po-switch-button-disabled", ctx.disabled);
|
|
31349
|
-
i0.ɵɵadvance(1);
|
|
31350
|
-
i0.ɵɵclassMapInterpolate1("po-icon po-icon-", ctx.value === true ? "ok" : "close", "");
|
|
31351
|
-
i0.ɵɵadvance(1);
|
|
31352
|
-
i0.ɵɵclassMapInterpolate1("po-switch-label po-clickable po-switch-label-", ctx.getLabelPosition(), "");
|
|
31353
|
-
i0.ɵɵadvance(1);
|
|
31354
31463
|
i0.ɵɵtextInterpolate1(" ", ctx.value === true ? ctx.labelOn : ctx.labelOff, " ");
|
|
31355
|
-
} }, dependencies: [PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
31464
|
+
} }, dependencies: [i1.NgIf, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
31356
31465
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSwitchComponent, [{
|
|
31357
31466
|
type: Component,
|
|
31358
31467
|
args: [{ selector: 'po-switch', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -31361,7 +31470,7 @@ PoSwitchComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSwitchC
|
|
|
31361
31470
|
useExisting: forwardRef(() => PoSwitchComponent),
|
|
31362
31471
|
multi: true
|
|
31363
31472
|
}
|
|
31364
|
-
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\">\n <div class=\"po-field-container-content
|
|
31473
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\">\n <div class=\"po-field-container-content\" [attr.name]=\"name\">\n <div class=\"po-switch\" [attr.data-label-position]=\"getLabelPosition()\">\n <div\n #switchContainer\n class=\"po-switch-container\"\n role=\"switch\"\n [attr.aria-checked]=\"value\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"value === true ? labelOn : labelOff\"\n [tabindex]=\"disabled ? -1 : 0\"\n (blur)=\"onBlur()\"\n (click)=\"eventClick()\"\n (keydown)=\"onKeyDown($event)\"\n >\n <div class=\"po-switch-track\">\n <div class=\"po-switch-toggle\">\n <po-icon *ngIf=\"value === true\" class=\"po-switch-icon\" p-icon=\"po-icon-ok\"></po-icon>\n </div>\n </div>\n </div>\n\n <span class=\"po-switch-label\" (click)=\"eventClick()\">\n {{ value === true ? labelOn : labelOff }}\n </span>\n </div>\n </div>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
31365
31474
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { switchContainer: [{
|
|
31366
31475
|
type: ViewChild,
|
|
31367
31476
|
args: ['switchContainer', { static: true }]
|
|
@@ -31393,6 +31502,16 @@ PoSwitchComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSwitchC
|
|
|
31393
31502
|
* [ngModelOptions]="{standalone: true}">
|
|
31394
31503
|
* </po-textarea>
|
|
31395
31504
|
* ```
|
|
31505
|
+
*
|
|
31506
|
+
* #### Acessibilidade tratada no componente
|
|
31507
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas. São elas:
|
|
31508
|
+
*
|
|
31509
|
+
* - O Text area foi desenvolvido com uso de controles padrões HTML, o que permite a identificação do mesmo na interface por tecnologias
|
|
31510
|
+
* assistivas. [WCAG 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
|
|
31511
|
+
* - O foco é visível e possui uma espessura superior a 2 pixels CSS, não ficando escondido por outros
|
|
31512
|
+
* elementos da tela. [WCAG 2.4.12: Focus Appearance)](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
|
|
31513
|
+
* - A identificação do erro acontece também através da mudança de cor do campo, mas também de um ícone
|
|
31514
|
+
* junto da mensagem. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
31396
31515
|
*/
|
|
31397
31516
|
class PoTextareaBaseComponent {
|
|
31398
31517
|
constructor(cd) {
|
|
@@ -31787,18 +31906,17 @@ PoTextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTexta
|
|
|
31787
31906
|
useExisting: forwardRef(() => PoTextareaComponent),
|
|
31788
31907
|
multi: true
|
|
31789
31908
|
}
|
|
31790
|
-
]), i0.ɵɵInheritDefinitionFeature], decls:
|
|
31909
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 10, consts: [[3, "p-help", "p-label", "p-optional"], [1, "po-field-container-content"], [1, "po-textarea", 3, "disabled", "placeholder", "readonly", "required", "rows", "blur", "focus", "input"], ["inp", ""]], template: function PoTextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31791
31910
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "textarea", 2, 3);
|
|
31792
31911
|
i0.ɵɵlistener("blur", function PoTextareaComponent_Template_textarea_blur_2_listener() { return ctx.eventOnBlur(); })("focus", function PoTextareaComponent_Template_textarea_focus_2_listener() { return ctx.eventOnFocus(); })("input", function PoTextareaComponent_Template_textarea_input_2_listener($event) { return ctx.eventOnInput($event); });
|
|
31793
|
-
i0.ɵɵtext(4, " ");
|
|
31794
31912
|
i0.ɵɵelementEnd()();
|
|
31795
|
-
i0.ɵɵelement(
|
|
31913
|
+
i0.ɵɵelement(4, "po-field-container-bottom");
|
|
31796
31914
|
i0.ɵɵelementEnd();
|
|
31797
31915
|
} if (rf & 2) {
|
|
31798
31916
|
i0.ɵɵproperty("p-help", ctx.help)("p-label", ctx.label)("p-optional", !ctx.required && ctx.optional);
|
|
31799
31917
|
i0.ɵɵadvance(2);
|
|
31800
|
-
i0.ɵɵproperty("disabled", ctx.disabled)("placeholder", ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("rows", ctx.rows);
|
|
31801
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
31918
|
+
i0.ɵɵproperty("disabled", ctx.disabled)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("rows", ctx.rows);
|
|
31919
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.label);
|
|
31802
31920
|
} }, dependencies: [PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
31803
31921
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTextareaComponent, [{
|
|
31804
31922
|
type: Component,
|
|
@@ -31813,210 +31931,12 @@ PoTextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTexta
|
|
|
31813
31931
|
useExisting: forwardRef(() => PoTextareaComponent),
|
|
31814
31932
|
multi: true
|
|
31815
31933
|
}
|
|
31816
|
-
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <textarea\n #inp\n class=\"po-textarea\"\n (blur)=\"eventOnBlur()\"\n (focus)=\"eventOnFocus()\"\n (input)=\"eventOnInput($event)\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [rows]=\"rows\"\n
|
|
31934
|
+
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\">\n <textarea\n #inp\n class=\"po-textarea\"\n (blur)=\"eventOnBlur()\"\n (focus)=\"eventOnFocus()\"\n (input)=\"eventOnInput($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"label\"\n [disabled]=\"disabled\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [rows]=\"rows\"\n ></textarea>\n </div>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
31817
31935
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { inputEl: [{
|
|
31818
31936
|
type: ViewChild,
|
|
31819
31937
|
args: ['inp', { read: ElementRef, static: true }]
|
|
31820
31938
|
}] }); })();
|
|
31821
31939
|
|
|
31822
|
-
var PoRadioSize;
|
|
31823
|
-
(function (PoRadioSize) {
|
|
31824
|
-
PoRadioSize["medium"] = "medium";
|
|
31825
|
-
PoRadioSize["large"] = "large";
|
|
31826
|
-
})(PoRadioSize || (PoRadioSize = {}));
|
|
31827
|
-
|
|
31828
|
-
/**
|
|
31829
|
-
* @docsPrivate
|
|
31830
|
-
*
|
|
31831
|
-
* @description
|
|
31832
|
-
*
|
|
31833
|
-
* O componente `po-radio` é um componente interno e deve ser utilizado em conjunto com o componente `po-radio-group`.
|
|
31834
|
-
*/
|
|
31835
|
-
class PoRadioBaseComponent {
|
|
31836
|
-
constructor() {
|
|
31837
|
-
/** Define o status do *radio* */
|
|
31838
|
-
this.radioValue = false;
|
|
31839
|
-
/**
|
|
31840
|
-
* @optional
|
|
31841
|
-
*
|
|
31842
|
-
* @description
|
|
31843
|
-
*
|
|
31844
|
-
* Define o estado do *radio* como desabilitado;
|
|
31845
|
-
*
|
|
31846
|
-
* @default `false`
|
|
31847
|
-
*/
|
|
31848
|
-
this.disabled = false;
|
|
31849
|
-
/**
|
|
31850
|
-
* @optional
|
|
31851
|
-
*
|
|
31852
|
-
* @description
|
|
31853
|
-
*
|
|
31854
|
-
* Evento disparado quando o valor do *radio* for alterado.
|
|
31855
|
-
*/
|
|
31856
|
-
this.change = new EventEmitter();
|
|
31857
|
-
this.id = uuid();
|
|
31858
|
-
this._size = PoRadioSize.medium;
|
|
31859
|
-
}
|
|
31860
|
-
/**
|
|
31861
|
-
* @optional
|
|
31862
|
-
*
|
|
31863
|
-
* @description
|
|
31864
|
-
*
|
|
31865
|
-
* Define o tamanho do *radio*
|
|
31866
|
-
* @default `medium`
|
|
31867
|
-
*/
|
|
31868
|
-
set size(value) {
|
|
31869
|
-
this._size = PoRadioSize[value] ? PoRadioSize[value] : PoRadioSize.medium;
|
|
31870
|
-
}
|
|
31871
|
-
get size() {
|
|
31872
|
-
return this._size;
|
|
31873
|
-
}
|
|
31874
|
-
changeValue() {
|
|
31875
|
-
if (this.propagateChange) {
|
|
31876
|
-
this.propagateChange(this.radioValue);
|
|
31877
|
-
}
|
|
31878
|
-
this.change.emit(this.radioValue);
|
|
31879
|
-
}
|
|
31880
|
-
checkOption(value) {
|
|
31881
|
-
if (this.disabled) {
|
|
31882
|
-
return;
|
|
31883
|
-
}
|
|
31884
|
-
this.changeModelValue(true);
|
|
31885
|
-
this.changeValue();
|
|
31886
|
-
}
|
|
31887
|
-
registerOnChange(fn) {
|
|
31888
|
-
this.propagateChange = fn;
|
|
31889
|
-
}
|
|
31890
|
-
registerOnTouched(fn) {
|
|
31891
|
-
this.onTouched = fn;
|
|
31892
|
-
}
|
|
31893
|
-
writeValue(value) {
|
|
31894
|
-
if (value !== this.radioValue) {
|
|
31895
|
-
this.changeModelValue(value);
|
|
31896
|
-
}
|
|
31897
|
-
}
|
|
31898
|
-
}
|
|
31899
|
-
PoRadioBaseComponent.ɵfac = function PoRadioBaseComponent_Factory(t) { return new (t || PoRadioBaseComponent)(); };
|
|
31900
|
-
PoRadioBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRadioBaseComponent, inputs: { name: "name", label: ["p-label", "label"], radioValue: ["p-checked", "radioValue"], disabled: ["p-disabled", "disabled"], size: ["p-size", "size"] }, outputs: { change: "p-change" } });
|
|
31901
|
-
__decorate([
|
|
31902
|
-
InputBoolean()
|
|
31903
|
-
], PoRadioBaseComponent.prototype, "disabled", void 0);
|
|
31904
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRadioBaseComponent, [{
|
|
31905
|
-
type: Directive
|
|
31906
|
-
}], null, { name: [{
|
|
31907
|
-
type: Input,
|
|
31908
|
-
args: ['name']
|
|
31909
|
-
}], label: [{
|
|
31910
|
-
type: Input,
|
|
31911
|
-
args: ['p-label']
|
|
31912
|
-
}], radioValue: [{
|
|
31913
|
-
type: Input,
|
|
31914
|
-
args: ['p-checked']
|
|
31915
|
-
}], disabled: [{
|
|
31916
|
-
type: Input,
|
|
31917
|
-
args: ['p-disabled']
|
|
31918
|
-
}], change: [{
|
|
31919
|
-
type: Output,
|
|
31920
|
-
args: ['p-change']
|
|
31921
|
-
}], size: [{
|
|
31922
|
-
type: Input,
|
|
31923
|
-
args: ['p-size']
|
|
31924
|
-
}] }); })();
|
|
31925
|
-
|
|
31926
|
-
const _c0$y = ["radioLabel"];
|
|
31927
|
-
const _c1$c = function (a0) { return { "po-radio-large": a0 }; };
|
|
31928
|
-
const _c2$2 = function (a0) { return { "po-radio-label-disabled": a0 }; };
|
|
31929
|
-
/**
|
|
31930
|
-
* @docsPrivate
|
|
31931
|
-
*
|
|
31932
|
-
* @docsExtends PoRadioBaseComponent
|
|
31933
|
-
*/
|
|
31934
|
-
class PoRadioComponent extends PoRadioBaseComponent {
|
|
31935
|
-
constructor(changeDetector) {
|
|
31936
|
-
super();
|
|
31937
|
-
this.changeDetector = changeDetector;
|
|
31938
|
-
}
|
|
31939
|
-
/**
|
|
31940
|
-
* Função que atribui foco ao *radio*.
|
|
31941
|
-
*
|
|
31942
|
-
* Para utilizá-la é necessário capturar a referência do componente no DOM através do `ViewChild`, como por exemplo:
|
|
31943
|
-
*
|
|
31944
|
-
* ```
|
|
31945
|
-
* import { ViewChild } from '@angular/core';
|
|
31946
|
-
* import { PoRadioComponent } from '@po-ui/ng-components';
|
|
31947
|
-
*
|
|
31948
|
-
* ...
|
|
31949
|
-
*
|
|
31950
|
-
* @ViewChild(PoRadioComponent, { static: true }) radio: PoRadioComponent;
|
|
31951
|
-
*
|
|
31952
|
-
* focusRadio() {
|
|
31953
|
-
* this.radio.focus();
|
|
31954
|
-
* }
|
|
31955
|
-
* ```
|
|
31956
|
-
*
|
|
31957
|
-
*/
|
|
31958
|
-
focus() {
|
|
31959
|
-
if (this.radioLabel && !this.disabled) {
|
|
31960
|
-
this.radioLabel.nativeElement.focus();
|
|
31961
|
-
}
|
|
31962
|
-
}
|
|
31963
|
-
onBlur() {
|
|
31964
|
-
this.onTouched?.();
|
|
31965
|
-
}
|
|
31966
|
-
onKeyDown(event, value) {
|
|
31967
|
-
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
31968
|
-
this.checkOption(value);
|
|
31969
|
-
event.preventDefault();
|
|
31970
|
-
}
|
|
31971
|
-
}
|
|
31972
|
-
changeModelValue(value) {
|
|
31973
|
-
this.radioValue = typeof value === 'boolean' ? value : false;
|
|
31974
|
-
this.changeDetector.detectChanges();
|
|
31975
|
-
}
|
|
31976
|
-
}
|
|
31977
|
-
PoRadioComponent.ɵfac = function PoRadioComponent_Factory(t) { return new (t || PoRadioComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
31978
|
-
PoRadioComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRadioComponent, selectors: [["po-radio"]], viewQuery: function PoRadioComponent_Query(rf, ctx) { if (rf & 1) {
|
|
31979
|
-
i0.ɵɵviewQuery(_c0$y, 7);
|
|
31980
|
-
} if (rf & 2) {
|
|
31981
|
-
let _t;
|
|
31982
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.radioLabel = _t.first);
|
|
31983
|
-
} }, features: [i0.ɵɵProvidersFeature([
|
|
31984
|
-
{
|
|
31985
|
-
provide: NG_VALUE_ACCESSOR,
|
|
31986
|
-
useExisting: forwardRef(() => PoRadioComponent),
|
|
31987
|
-
multi: true
|
|
31988
|
-
}
|
|
31989
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 15, consts: [[1, "po-radio-container", 3, "click", "keydown"], ["type", "radio", "role", "radio", 1, "po-radio", 3, "ngClass", "id", "tabindex", "disabled"], ["tabindex", "-1", 1, "po-radio-label", 3, "for", "ngClass"], ["radioLabel", ""]], template: function PoRadioComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31990
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
31991
|
-
i0.ɵɵlistener("click", function PoRadioComponent_Template_div_click_0_listener() { return ctx.checkOption(ctx.radioValue); })("keydown", function PoRadioComponent_Template_div_keydown_0_listener($event) { return ctx.onKeyDown($event, ctx.radioValue); });
|
|
31992
|
-
i0.ɵɵelement(1, "input", 1);
|
|
31993
|
-
i0.ɵɵelementStart(2, "label", 2, 3);
|
|
31994
|
-
i0.ɵɵtext(4);
|
|
31995
|
-
i0.ɵɵelementEnd()();
|
|
31996
|
-
} if (rf & 2) {
|
|
31997
|
-
i0.ɵɵattribute("checked", ctx.radioValue);
|
|
31998
|
-
i0.ɵɵadvance(1);
|
|
31999
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$c, ctx.size === "large"))("id", ctx.id)("tabindex", ctx.disabled ? -1 : 0)("disabled", ctx.disabled);
|
|
32000
|
-
i0.ɵɵattribute("aria-checked", ctx.radioValue)("aria-label", ctx.label)("aria-disabled", ctx.disabled);
|
|
32001
|
-
i0.ɵɵadvance(1);
|
|
32002
|
-
i0.ɵɵproperty("for", ctx.id)("ngClass", i0.ɵɵpureFunction1(13, _c2$2, ctx.disabled));
|
|
32003
|
-
i0.ɵɵadvance(2);
|
|
32004
|
-
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
32005
|
-
} }, dependencies: [i1.NgClass], encapsulation: 2, changeDetection: 0 });
|
|
32006
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRadioComponent, [{
|
|
32007
|
-
type: Component,
|
|
32008
|
-
args: [{ selector: 'po-radio', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
32009
|
-
{
|
|
32010
|
-
provide: NG_VALUE_ACCESSOR,
|
|
32011
|
-
useExisting: forwardRef(() => PoRadioComponent),
|
|
32012
|
-
multi: true
|
|
32013
|
-
}
|
|
32014
|
-
], template: "<div\n class=\"po-radio-container\"\n [attr.checked]=\"radioValue\"\n (click)=\"checkOption(radioValue)\"\n (keydown)=\"onKeyDown($event, radioValue)\"\n>\n <input\n type=\"radio\"\n [ngClass]=\"{ 'po-radio-large': size === 'large' }\"\n [attr.aria-checked]=\"radioValue\"\n [attr.aria-label]=\"label\"\n [id]=\"id\"\n class=\"po-radio\"\n role=\"radio\"\n [attr.aria-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n [disabled]=\"disabled\"\n />\n <label\n #radioLabel\n [for]=\"id\"\n class=\"po-radio-label\"\n [ngClass]=\"{ 'po-radio-label-disabled': disabled }\"\n tabindex=\"-1\"\n >\n {{ label }}\n </label>\n</div>\n" }]
|
|
32015
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { radioLabel: [{
|
|
32016
|
-
type: ViewChild,
|
|
32017
|
-
args: ['radioLabel', { static: true }]
|
|
32018
|
-
}] }); })();
|
|
32019
|
-
|
|
32020
31940
|
/**
|
|
32021
31941
|
* @description
|
|
32022
31942
|
*
|
|
@@ -32498,8 +32418,11 @@ class PoTagBaseComponent {
|
|
|
32498
32418
|
*
|
|
32499
32419
|
* @description
|
|
32500
32420
|
*
|
|
32501
|
-
*
|
|
32502
|
-
*
|
|
32421
|
+
* Determina a cor da tag. As maneiras de customizar as cores são:
|
|
32422
|
+
* - Hexadeximal, por exemplo `#c64840`;
|
|
32423
|
+
* - RGB, como `rgb(0, 0, 165)`;
|
|
32424
|
+
* - O nome da cor, por exemplo `blue`;
|
|
32425
|
+
* - Usando uma das cores do tema do PO:
|
|
32503
32426
|
* Valores válidos:
|
|
32504
32427
|
* - <span class="dot po-color-01"></span> `color-01`
|
|
32505
32428
|
* - <span class="dot po-color-02"></span> `color-02`
|
|
@@ -32514,10 +32437,15 @@ class PoTagBaseComponent {
|
|
|
32514
32437
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
32515
32438
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
32516
32439
|
*
|
|
32440
|
+
* - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
|
|
32441
|
+
*
|
|
32517
32442
|
* > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
|
|
32518
32443
|
*/
|
|
32519
32444
|
set color(value) {
|
|
32520
32445
|
this._color = poTagColors.includes(value) ? value : undefined;
|
|
32446
|
+
if (this._color === undefined) {
|
|
32447
|
+
CSS.supports('color', value) ? (this.customColor = value) : (this.customColor = undefined);
|
|
32448
|
+
}
|
|
32521
32449
|
}
|
|
32522
32450
|
get color() {
|
|
32523
32451
|
return this._color;
|
|
@@ -32681,12 +32609,15 @@ function PoTagComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
32681
32609
|
i0.ɵɵadvance(2);
|
|
32682
32610
|
i0.ɵɵtextInterpolate(ctx_r0.tagOrientation ? ctx_r0.label + ":" : ctx_r0.label);
|
|
32683
32611
|
} }
|
|
32612
|
+
const _c0$y = function (a0) { return { "color": a0 }; };
|
|
32684
32613
|
function PoTagComponent_po_icon_4_Template(rf, ctx) { if (rf & 1) {
|
|
32685
32614
|
i0.ɵɵelement(0, "po-icon", 8);
|
|
32686
32615
|
} if (rf & 2) {
|
|
32687
32616
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
32688
|
-
i0.ɵɵproperty("p-icon", !ctx_r1.type ? ctx_r1.icon : ctx_r1.iconFromType);
|
|
32617
|
+
i0.ɵɵproperty("p-icon", !ctx_r1.type ? ctx_r1.icon : ctx_r1.iconFromType)("ngStyle", !ctx_r1.tagColor && ctx_r1.inverse ? i0.ɵɵpureFunction1(2, _c0$y, ctx_r1.customColor) : "");
|
|
32689
32618
|
} }
|
|
32619
|
+
const _c1$c = function (a0) { return { "background-color": a0 }; };
|
|
32620
|
+
const _c2$2 = function (a0) { return { "border": a0 }; };
|
|
32690
32621
|
const poTagTypeDefault = 'po-tag-' + PoTagType.Info;
|
|
32691
32622
|
/**
|
|
32692
32623
|
* @docsExtends PoTagBaseComponent
|
|
@@ -32731,7 +32662,9 @@ class PoTagComponent extends PoTagBaseComponent {
|
|
|
32731
32662
|
if (this.color) {
|
|
32732
32663
|
return this.inverse ? `po-text-${this.color}` : `po-${this.color}`;
|
|
32733
32664
|
}
|
|
32734
|
-
|
|
32665
|
+
if (!this.customColor) {
|
|
32666
|
+
return this.inverse ? `${poTagTypeDefault}-inverse` : poTagTypeDefault;
|
|
32667
|
+
}
|
|
32735
32668
|
}
|
|
32736
32669
|
get tagOrientation() {
|
|
32737
32670
|
return this.orientation === this.poTagOrientation.Horizontal;
|
|
@@ -32747,12 +32680,12 @@ class PoTagComponent extends PoTagBaseComponent {
|
|
|
32747
32680
|
}
|
|
32748
32681
|
}
|
|
32749
32682
|
PoTagComponent.ɵfac = /*@__PURE__*/ function () { let ɵPoTagComponent_BaseFactory; return function PoTagComponent_Factory(t) { return (ɵPoTagComponent_BaseFactory || (ɵPoTagComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoTagComponent)))(t || PoTagComponent); }; }();
|
|
32750
|
-
PoTagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTagComponent, selectors: [["po-tag"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars:
|
|
32683
|
+
PoTagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTagComponent, selectors: [["po-tag"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 18, consts: [[1, "po-tag-container"], ["class", "po-tag-title po-text-nowrap", 4, "ngIf"], [1, "po-tag-sub-container"], ["tabindex", "0", 1, "po-tag", 3, "ngClass", "ngStyle", "click", "keydown.enter", "keydown.space", "keyup.space"], ["class", "po-tag-icon", 3, "p-icon", "ngStyle", 4, "ngIf"], [1, "po-tag-value", 3, "ngStyle"], [1, "po-tag-title", "po-text-nowrap"], [1, "po-tag-label"], [1, "po-tag-icon", 3, "p-icon", "ngStyle"]], template: function PoTagComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32751
32684
|
i0.ɵɵelementStart(0, "div", 0);
|
|
32752
32685
|
i0.ɵɵtemplate(1, PoTagComponent_div_1_Template, 3, 1, "div", 1);
|
|
32753
32686
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
|
|
32754
32687
|
i0.ɵɵlistener("click", function PoTagComponent_Template_div_click_3_listener() { return ctx.onClick(); })("keydown.enter", function PoTagComponent_Template_div_keydown_enter_3_listener($event) { return ctx.onKeyPressed($event); })("keydown.space", function PoTagComponent_Template_div_keydown_space_3_listener($event) { return $event.preventDefault(); })("keyup.space", function PoTagComponent_Template_div_keyup_space_3_listener($event) { return ctx.onKeyPressed($event); });
|
|
32755
|
-
i0.ɵɵtemplate(4, PoTagComponent_po_icon_4_Template, 1,
|
|
32688
|
+
i0.ɵɵtemplate(4, PoTagComponent_po_icon_4_Template, 1, 4, "po-icon", 4);
|
|
32756
32689
|
i0.ɵɵelementStart(5, "span", 5);
|
|
32757
32690
|
i0.ɵɵtext(6);
|
|
32758
32691
|
i0.ɵɵelementEnd()()()();
|
|
@@ -32762,15 +32695,17 @@ PoTagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTagCompone
|
|
|
32762
32695
|
i0.ɵɵproperty("ngIf", ctx.label);
|
|
32763
32696
|
i0.ɵɵadvance(2);
|
|
32764
32697
|
i0.ɵɵclassProp("po-clickable", ctx.isClickable)("po-tag-inverse", ctx.inverse);
|
|
32765
|
-
i0.ɵɵproperty("ngClass", ctx.tagColor);
|
|
32698
|
+
i0.ɵɵproperty("ngClass", ctx.tagColor)("ngStyle", !ctx.tagColor && !ctx.inverse ? i0.ɵɵpureFunction1(12, _c1$c, ctx.customColor) : !ctx.tagColor && ctx.inverse ? i0.ɵɵpureFunction1(14, _c2$2, "1px solid " + ctx.customColor) : "");
|
|
32766
32699
|
i0.ɵɵadvance(1);
|
|
32767
32700
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
32768
|
-
i0.ɵɵadvance(
|
|
32701
|
+
i0.ɵɵadvance(1);
|
|
32702
|
+
i0.ɵɵproperty("ngStyle", !ctx.tagColor && ctx.inverse ? i0.ɵɵpureFunction1(16, _c0$y, ctx.customColor) : "");
|
|
32703
|
+
i0.ɵɵadvance(1);
|
|
32769
32704
|
i0.ɵɵtextInterpolate(ctx.value);
|
|
32770
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
32705
|
+
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
32771
32706
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTagComponent, [{
|
|
32772
32707
|
type: Component,
|
|
32773
|
-
args: [{ selector: 'po-tag', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-tag-container\" [class.po-tag-container-horizontal]=\"tagOrientation\">\n <div *ngIf=\"label\" class=\"po-tag-title po-text-nowrap\">\n <span class=\"po-tag-label\">{{ tagOrientation ? label + ':' : label }}</span>\n </div>\n\n <div class=\"po-tag-sub-container\">\n <div\n class=\"po-tag\"\n [class.po-clickable]=\"isClickable\"\n [class.po-tag-inverse]=\"inverse\"\n [ngClass]=\"tagColor\"\n tabindex=\"0\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onKeyPressed($event)\"\n (keydown.space)=\"$event.preventDefault()\"\n (keyup.space)=\"onKeyPressed($event)\"\n >\n <po-icon
|
|
32708
|
+
args: [{ selector: 'po-tag', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-tag-container\" [class.po-tag-container-horizontal]=\"tagOrientation\">\n <div *ngIf=\"label\" class=\"po-tag-title po-text-nowrap\">\n <span class=\"po-tag-label\">{{ tagOrientation ? label + ':' : label }}</span>\n </div>\n\n <div class=\"po-tag-sub-container\">\n <div\n class=\"po-tag\"\n [class.po-clickable]=\"isClickable\"\n [class.po-tag-inverse]=\"inverse\"\n [ngClass]=\"tagColor\"\n [ngStyle]=\"\n !tagColor && !inverse\n ? { 'background-color': customColor }\n : !tagColor && inverse\n ? { 'border': '1px solid ' + customColor }\n : ''\n \"\n tabindex=\"0\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onKeyPressed($event)\"\n (keydown.space)=\"$event.preventDefault()\"\n (keyup.space)=\"onKeyPressed($event)\"\n >\n <po-icon\n *ngIf=\"icon\"\n class=\"po-tag-icon\"\n [p-icon]=\"!type ? icon : iconFromType\"\n [ngStyle]=\"!tagColor && inverse ? { 'color': customColor } : ''\"\n >\n </po-icon>\n\n <span class=\"po-tag-value\" [ngStyle]=\"!tagColor && inverse ? { 'color': customColor } : ''\">{{ value }}</span>\n </div>\n </div>\n</div>\n" }]
|
|
32774
32709
|
}], null, null); })();
|
|
32775
32710
|
|
|
32776
32711
|
/**
|
|
@@ -40641,7 +40576,7 @@ PoPageListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageL
|
|
|
40641
40576
|
let _t;
|
|
40642
40577
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterInput = _t.first);
|
|
40643
40578
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poPageContent = _t.first);
|
|
40644
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$5, decls: 4, vars: 1, consts: [[3, "po-page-list-header-padding", "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], [1, "po-page-list-operations"], [1, "po-page-list-actions"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click", 4, "ngIf"], [3, "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-actions", "p-label", 4, "ngIf"], ["class", "po-page-list-filter-wrapper", 3, "ngClass", 4, "ngIf"], [3, "po-page-list-disclaimer-group", "p-disclaimers", "p-hide-remove-all", "p-title", "p-change", "p-remove", "p-remove-all", 4, "ngIf"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click"], [3, "p-disabled", "p-label", "p-click"], [3, "p-actions", "p-label"], [1, "po-page-list-filter-wrapper", 3, "ngClass"], [1, "po-field-container-content", "po-page-filter-content", 3, "ngClass"], [1, "po-field-icon-container-right"], [1, "po-icon", "po-icon-search", "po-field-icon", 3, "click"], ["name", "model", "type", "text", 1, "po-input", "po-input-icon-right", 3, "placeholder", "keypress"], ["filterInput", ""], ["class", "po-page-list-filter-search", 4, "ngIf"], [1, "po-page-list-filter-search"], ["tabindex", "0", 1, "po-page-list-filter-search-link", 3, "click", "keydown.enter"], [3, "p-disclaimers", "p-hide-remove-all", "p-title", "p-change", "p-remove", "p-remove-all"]], template: function PoPageListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40579
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$5, decls: 4, vars: 1, consts: [[3, "po-page-list-header-padding", "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], [1, "po-page-list-operations"], [1, "po-page-list-actions"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click", 4, "ngIf"], [3, "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-actions", "p-label", 4, "ngIf"], ["class", "po-page-list-filter-wrapper", 3, "ngClass", 4, "ngIf"], [3, "po-page-list-disclaimer-group", "p-disclaimers", "p-hide-remove-all", "p-title", "p-change", "p-remove", "p-remove-all", 4, "ngIf"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click"], [3, "p-disabled", "p-label", "p-click"], [3, "p-actions", "p-label"], [1, "po-page-list-filter-wrapper", 3, "ngClass"], [1, "po-field-container-content", "po-page-filter-content", 3, "ngClass"], [1, "po-field-icon-container-right"], [1, "po-icon", "po-icon-search", "po-field-icon", "po-icon-input", 3, "click"], ["name", "model", "type", "text", 1, "po-input", "po-input-icon-right", 3, "placeholder", "keypress"], ["filterInput", ""], ["class", "po-page-list-filter-search", 4, "ngIf"], [1, "po-page-list-filter-search"], ["tabindex", "0", 1, "po-page-list-filter-search-link", 3, "click", "keydown.enter"], [3, "p-disclaimers", "p-hide-remove-all", "p-title", "p-change", "p-remove", "p-remove-all"]], template: function PoPageListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40645
40580
|
i0.ɵɵprojectionDef();
|
|
40646
40581
|
i0.ɵɵelementStart(0, "po-page");
|
|
40647
40582
|
i0.ɵɵtemplate(1, PoPageListComponent_po_page_header_1_Template, 9, 12, "po-page-header", 0);
|
|
@@ -40654,7 +40589,7 @@ PoPageListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageL
|
|
|
40654
40589
|
} }, dependencies: [i1.NgClass, i1.NgIf, PoButtonComponent, PoDisclaimerGroupComponent, PoDropdownComponent, PoPageComponent, PoPageContentComponent, PoPageHeaderComponent], encapsulation: 2 });
|
|
40655
40590
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageListComponent, [{
|
|
40656
40591
|
type: Component,
|
|
40657
|
-
args: [{ selector: 'po-page-list', template: "<po-page>\n <!-- HEADER -->\n <po-page-header\n *ngIf=\"hasPageHeader()\"\n [class.po-page-list-header-padding]=\"filter && !visibleActions.length\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-title]=\"title\"\n >\n <!-- OPERATIONS -->\n <div class=\"po-page-list-operations\">\n <div class=\"po-page-list-actions\" [class.po-page-list-actions-padding]=\"filter\">\n <po-button\n *ngIf=\"visibleActions[0]\"\n p-kind=\"primary\"\n [p-disabled]=\"actionIsDisabled(actions[0])\"\n [p-icon]=\"visibleActions[0].icon\"\n [p-label]=\"visibleActions[0].label\"\n (p-click)=\"callAction(visibleActions[0])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[1] && (visibleActions.length === 2 || !isMobile)\"\n [p-disabled]=\"actionIsDisabled(actions[1])\"\n [p-label]=\"visibleActions[1].label\"\n (p-click)=\"callAction(visibleActions[1])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions.length === 3 && visibleActions[2] && !isMobile\"\n [p-disabled]=\"actionIsDisabled(visibleActions[2])\"\n [p-label]=\"visibleActions[2].label\"\n (p-click)=\"callAction(visibleActions[2])\"\n >\n </po-button>\n\n <po-dropdown\n *ngIf=\"visibleActions.length > limitPrimaryActions\"\n [p-actions]=\"dropdownActions\"\n [p-label]=\"literals.otherActions\"\n >\n </po-dropdown>\n </div>\n\n <!-- FILTER -->\n <div\n class=\"po-page-list-filter-wrapper\"\n *ngIf=\"filter\"\n [ngClass]=\"hasCustomFilterSize() ? filterSizeClass(filter.width) : ''\"\n >\n <div\n class=\"po-field-container-content po-page-filter-content\"\n [ngClass]=\"\n hasCustomFilterSize()\n ? filter.advancedAction\n ? 'po-page-filter-input-variable-size'\n : 'po-page-filter-input-variable-size-wo-adv-search'\n : ''\n \"\n >\n <div class=\"po-field-icon-container-right\">\n <span class=\"po-icon po-icon-search po-field-icon\" (click)=\"callActionFilter('action')\"
|
|
40592
|
+
args: [{ selector: 'po-page-list', template: "<po-page>\n <!-- HEADER -->\n <po-page-header\n *ngIf=\"hasPageHeader()\"\n [class.po-page-list-header-padding]=\"filter && !visibleActions.length\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-title]=\"title\"\n >\n <!-- OPERATIONS -->\n <div class=\"po-page-list-operations\">\n <div class=\"po-page-list-actions\" [class.po-page-list-actions-padding]=\"filter\">\n <po-button\n *ngIf=\"visibleActions[0]\"\n p-kind=\"primary\"\n [p-disabled]=\"actionIsDisabled(actions[0])\"\n [p-icon]=\"visibleActions[0].icon\"\n [p-label]=\"visibleActions[0].label\"\n (p-click)=\"callAction(visibleActions[0])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[1] && (visibleActions.length === 2 || !isMobile)\"\n [p-disabled]=\"actionIsDisabled(actions[1])\"\n [p-label]=\"visibleActions[1].label\"\n (p-click)=\"callAction(visibleActions[1])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions.length === 3 && visibleActions[2] && !isMobile\"\n [p-disabled]=\"actionIsDisabled(visibleActions[2])\"\n [p-label]=\"visibleActions[2].label\"\n (p-click)=\"callAction(visibleActions[2])\"\n >\n </po-button>\n\n <po-dropdown\n *ngIf=\"visibleActions.length > limitPrimaryActions\"\n [p-actions]=\"dropdownActions\"\n [p-label]=\"literals.otherActions\"\n >\n </po-dropdown>\n </div>\n\n <!-- FILTER -->\n <div\n class=\"po-page-list-filter-wrapper\"\n *ngIf=\"filter\"\n [ngClass]=\"hasCustomFilterSize() ? filterSizeClass(filter.width) : ''\"\n >\n <div\n class=\"po-field-container-content po-page-filter-content\"\n [ngClass]=\"\n hasCustomFilterSize()\n ? filter.advancedAction\n ? 'po-page-filter-input-variable-size'\n : 'po-page-filter-input-variable-size-wo-adv-search'\n : ''\n \"\n >\n <div class=\"po-field-icon-container-right\">\n <span class=\"po-icon po-icon-search po-field-icon po-icon-input\" (click)=\"callActionFilter('action')\">\n </span>\n </div>\n\n <input\n #filterInput\n class=\"po-input po-input-icon-right\"\n name=\"model\"\n type=\"text\"\n [placeholder]=\"filter.placeholder || ''\"\n (keypress)=\"onkeypress($event.keyCode)\"\n />\n </div>\n\n <div class=\"po-page-list-filter-search\" *ngIf=\"filter.advancedAction\">\n <span\n class=\"po-page-list-filter-search-link\"\n tabindex=\"0\"\n (click)=\"callActionFilter('advancedAction')\"\n (keydown.enter)=\"callActionFilter('advancedAction')\"\n >\n {{ advancedSearch }}\n </span>\n </div>\n </div>\n </div>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"!!disclaimerGroup\"\n [class.po-page-list-disclaimer-group]=\"!!disclaimerGroup?.disclaimers?.length\"\n [p-disclaimers]=\"disclaimerGroup?.disclaimers\"\n [p-hide-remove-all]=\"disclaimerGroup?.hideRemoveAll\"\n [p-title]=\"disclaimerGroup?.title\"\n (p-change)=\"onChangeDisclaimerGroup($event)\"\n (p-remove)=\"onRemoveDisclaimer($event)\"\n (p-remove-all)=\"onRemoveAllDisclaimers($event)\"\n >\n </po-disclaimer-group>\n </po-page-header>\n\n <!-- CONTENT -->\n <po-page-content>\n <ng-content></ng-content>\n </po-page-content>\n</po-page>\n" }]
|
|
40658
40593
|
}], function () { return [{ type: i0.ViewContainerRef }, { type: PoLanguageService }, { type: i0.Renderer2 }, { type: i2.Router }, { type: i0.ChangeDetectorRef }]; }, { filterInput: [{
|
|
40659
40594
|
type: ViewChild,
|
|
40660
40595
|
args: ['filterInput']
|
|
@@ -43641,9 +43576,11 @@ class PoTreeViewBaseComponent {
|
|
|
43641
43576
|
// - adiciona o childItem no parentItem;
|
|
43642
43577
|
// - marca o parentItem caso conter subItems marcodos ou nulos;
|
|
43643
43578
|
// Se não conter parentItem, adiciona o childItem no items.
|
|
43644
|
-
addItem(items, childItem, parentItem) {
|
|
43579
|
+
addItem(items, childItem, parentItem, isNewItem) {
|
|
43645
43580
|
if (parentItem) {
|
|
43646
|
-
|
|
43581
|
+
if (isNewItem) {
|
|
43582
|
+
this.expandParentItem(childItem, parentItem);
|
|
43583
|
+
}
|
|
43647
43584
|
this.addChildItemInParent(childItem, parentItem);
|
|
43648
43585
|
this.selectItemBySubItems(parentItem);
|
|
43649
43586
|
items.push(parentItem);
|
|
@@ -43699,7 +43636,7 @@ class PoTreeViewBaseComponent {
|
|
|
43699
43636
|
this.getItemsByMaxLevel(subItems, ++level, currentItem);
|
|
43700
43637
|
--level;
|
|
43701
43638
|
}
|
|
43702
|
-
this.addItem(newItems, currentItem, parentItem);
|
|
43639
|
+
this.addItem(newItems, currentItem, parentItem, true);
|
|
43703
43640
|
});
|
|
43704
43641
|
return newItems;
|
|
43705
43642
|
}
|