@po-ui/ng-components 14.2.0 → 14.3.1
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-breadcrumb/po-breadcrumb-dropdown/po-breadcrumb-dropdown.component.mjs +5 -3
- package/esm2020/lib/components/po-button/po-button-base.component.mjs +58 -8
- package/esm2020/lib/components/po-button/po-button-size.enum.mjs +6 -0
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-button-group/po-button-group-base.component.mjs +8 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.mjs +12 -12
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox-base.component.mjs +11 -2
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.component.mjs +24 -12
- package/esm2020/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.mjs +14 -20
- package/esm2020/lib/components/po-field/po-checkbox-group/po-checkbox-group.module.mjs +5 -4
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +74 -43
- package/esm2020/lib/components/po-field/po-combo/po-combo.component.mjs +17 -15
- package/esm2020/lib/components/po-field/po-datepicker/po-datepicker.component.mjs +2 -1
- package/esm2020/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.mjs +25 -2
- package/esm2020/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.mjs +5 -5
- package/esm2020/lib/components/po-field/po-lookup/po-lookup-base.component.mjs +28 -2
- package/esm2020/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.mjs +28 -2
- package/esm2020/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.mjs +4 -4
- package/esm2020/lib/components/po-field/po-lookup/po-lookup.component.mjs +5 -3
- package/esm2020/lib/components/po-field/po-lookup/services/po-lookup-modal.service.mjs +6 -2
- package/esm2020/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +2 -2
- package/esm2020/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +9 -9
- package/esm2020/lib/components/po-field/po-select/po-select.component.mjs +90 -25
- package/esm2020/lib/components/po-field/po-upload/po-upload-base.service.mjs +4 -2
- package/esm2020/lib/components/po-list-view/po-list-view.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table-base.component.mjs +21 -2
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table.component.mjs +512 -476
- package/esm2020/lib/components/po-widget/po-widget-base.component.mjs +3 -2
- package/esm2020/lib/components/po-widget/po-widget.component.mjs +24 -12
- package/esm2020/lib/utils/util.mjs +20 -1
- package/fesm2015/po-ui-ng-components.mjs +1287 -935
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +1265 -920
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +29 -4
- package/lib/components/po-button/po-button-size.enum.d.ts +4 -0
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +7 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.d.ts +18 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +2 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.module.d.ts +2 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +27 -22
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +13 -1
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +21 -1
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +21 -1
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +4 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +36 -7
- package/lib/components/po-table/po-table-base.component.d.ts +12 -1
- package/lib/components/po-table/po-table.component.d.ts +7 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +1 -0
- package/lib/utils/util.d.ts +2 -0
- package/package.json +4 -4
- package/po-ui-ng-components-14.3.1.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/po-ui-ng-components-14.2.0.tgz +0 -0
|
@@ -650,7 +650,9 @@ PoBreadcrumbBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: P
|
|
|
650
650
|
|
|
651
651
|
function PoBreadcrumbDropdownComponent_li_1_Template(rf, ctx) {
|
|
652
652
|
if (rf & 1) {
|
|
653
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
653
654
|
i0.ɵɵelementStart(0, "li", 2);
|
|
655
|
+
i0.ɵɵlistener("click", function PoBreadcrumbDropdownComponent_li_1_Template_li_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const item_r1 = restoredCtx.$implicit; return i0.ɵɵresetView(item_r1.action == null ? null : item_r1.action()); });
|
|
654
656
|
i0.ɵɵtext(1);
|
|
655
657
|
i0.ɵɵelementEnd();
|
|
656
658
|
}
|
|
@@ -671,7 +673,7 @@ function PoBreadcrumbDropdownComponent_li_1_Template(rf, ctx) {
|
|
|
671
673
|
class PoBreadcrumbDropdownComponent {
|
|
672
674
|
}
|
|
673
675
|
PoBreadcrumbDropdownComponent.ɵfac = function PoBreadcrumbDropdownComponent_Factory(t) { return new (t || PoBreadcrumbDropdownComponent)(); };
|
|
674
|
-
PoBreadcrumbDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbDropdownComponent, selectors: [["po-breadcrumb-dropdown"]], inputs: { items: ["p-items", "items"] }, decls: 2, vars: 1, consts: [[1, "po-breadcrumb-dropdown"], ["class", "po-breadcrumb-dropdown-item", 3, "routerLink", 4, "ngFor", "ngForOf"], [1, "po-breadcrumb-dropdown-item", 3, "routerLink"]], template: function PoBreadcrumbDropdownComponent_Template(rf, ctx) {
|
|
676
|
+
PoBreadcrumbDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbDropdownComponent, selectors: [["po-breadcrumb-dropdown"]], inputs: { items: ["p-items", "items"] }, decls: 2, vars: 1, consts: [[1, "po-breadcrumb-dropdown"], ["class", "po-breadcrumb-dropdown-item", 3, "routerLink", "click", 4, "ngFor", "ngForOf"], [1, "po-breadcrumb-dropdown-item", 3, "routerLink", "click"]], template: function PoBreadcrumbDropdownComponent_Template(rf, ctx) {
|
|
675
677
|
if (rf & 1) {
|
|
676
678
|
i0.ɵɵelementStart(0, "ul", 0);
|
|
677
679
|
i0.ɵɵtemplate(1, PoBreadcrumbDropdownComponent_li_1_Template, 2, 2, "li", 1);
|
|
@@ -685,7 +687,7 @@ PoBreadcrumbDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
685
687
|
(function () {
|
|
686
688
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoBreadcrumbDropdownComponent, [{
|
|
687
689
|
type: Component,
|
|
688
|
-
args: [{ selector: 'po-breadcrumb-dropdown', template: "<ul class=\"po-breadcrumb-dropdown\">\n <li class=\"po-breadcrumb-dropdown-item\" *ngFor=\"let item of items\" [routerLink]=\"item.link\">\n {{ item.label }}\n </li>\n</ul>\n" }]
|
|
690
|
+
args: [{ selector: 'po-breadcrumb-dropdown', template: "<ul class=\"po-breadcrumb-dropdown\">\n <li class=\"po-breadcrumb-dropdown-item\" *ngFor=\"let item of items\" [routerLink]=\"item.link\" (click)=\"item.action?.()\">\n {{ item.label }}\n </li>\n</ul>\n" }]
|
|
689
691
|
}], null, { items: [{
|
|
690
692
|
type: Input,
|
|
691
693
|
args: ['p-items']
|
|
@@ -1087,6 +1089,17 @@ function removeDuplicatedOptions(list) {
|
|
|
1087
1089
|
}
|
|
1088
1090
|
}
|
|
1089
1091
|
}
|
|
1092
|
+
function removeDuplicatedOptionsWithFieldValue(list, newValue) {
|
|
1093
|
+
for (let i = 0; i < list.length; i++) {
|
|
1094
|
+
if (i === 0) {
|
|
1095
|
+
continue;
|
|
1096
|
+
}
|
|
1097
|
+
if (list.findIndex(op => op[newValue] === list[i][newValue]) !== i) {
|
|
1098
|
+
list.splice(i, 1);
|
|
1099
|
+
i--;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1090
1103
|
function removeUndefinedAndNullOptions(list) {
|
|
1091
1104
|
for (let i = 0; i < list.length; i++) {
|
|
1092
1105
|
if (list[i].value === undefined || list[i].value === null) {
|
|
@@ -1095,6 +1108,14 @@ function removeUndefinedAndNullOptions(list) {
|
|
|
1095
1108
|
}
|
|
1096
1109
|
}
|
|
1097
1110
|
}
|
|
1111
|
+
function removeUndefinedAndNullOptionsWithFieldValue(list, newValue) {
|
|
1112
|
+
for (let i = 0; i < list.length; i++) {
|
|
1113
|
+
if (list[i][newValue] === undefined || list[i][newValue] === null) {
|
|
1114
|
+
list.splice(i, 1);
|
|
1115
|
+
i--;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1098
1119
|
function validValue(value) {
|
|
1099
1120
|
return (value !== null && value !== undefined && value !== '') || value === false;
|
|
1100
1121
|
}
|
|
@@ -2473,6 +2494,12 @@ var PoButtonKind;
|
|
|
2473
2494
|
PoButtonKind["danger"] = "danger";
|
|
2474
2495
|
})(PoButtonKind || (PoButtonKind = {}));
|
|
2475
2496
|
|
|
2497
|
+
var PoButtonSize;
|
|
2498
|
+
(function (PoButtonSize) {
|
|
2499
|
+
PoButtonSize["medium"] = "medium";
|
|
2500
|
+
PoButtonSize["large"] = "large";
|
|
2501
|
+
})(PoButtonSize || (PoButtonSize = {}));
|
|
2502
|
+
|
|
2476
2503
|
/**
|
|
2477
2504
|
* @description
|
|
2478
2505
|
*
|
|
@@ -2500,8 +2527,10 @@ class PoButtonBaseComponent {
|
|
|
2500
2527
|
this._danger = false;
|
|
2501
2528
|
this._disabled = false;
|
|
2502
2529
|
this._loading = false;
|
|
2503
|
-
this._small = false;
|
|
2504
2530
|
this._kind = PoButtonKind.secondary;
|
|
2531
|
+
this._size = PoButtonSize.medium;
|
|
2532
|
+
this._small = false;
|
|
2533
|
+
this.hasSize = false;
|
|
2505
2534
|
}
|
|
2506
2535
|
/**
|
|
2507
2536
|
* @optional
|
|
@@ -2521,16 +2550,26 @@ class PoButtonBaseComponent {
|
|
|
2521
2550
|
return this._loading;
|
|
2522
2551
|
}
|
|
2523
2552
|
/**
|
|
2553
|
+
* @deprecated 16.x.x
|
|
2554
|
+
*
|
|
2524
2555
|
* @optional
|
|
2525
2556
|
*
|
|
2526
2557
|
* @description
|
|
2527
2558
|
*
|
|
2528
|
-
*
|
|
2559
|
+
* **Deprecated 16.x.x**.
|
|
2560
|
+
*
|
|
2561
|
+
* > Por regras de acessibilidade o botão não terá mais um tamanho menor do que 44px e por isso a propriedade será depreciada.
|
|
2562
|
+
* > [Saiba mais](https://animaliads.notion.site/Bot-o-fb3a921e8ba54bd38b39758c24613368)
|
|
2563
|
+
*
|
|
2564
|
+
* Deixa o botão menor, com 32px de altura.
|
|
2529
2565
|
*
|
|
2530
2566
|
* @default `false`
|
|
2531
2567
|
*/
|
|
2532
2568
|
set small(value) {
|
|
2533
|
-
this._small =
|
|
2569
|
+
this._small = !this.hasSize ? value : false;
|
|
2570
|
+
if (this._small) {
|
|
2571
|
+
this._size = 'small';
|
|
2572
|
+
}
|
|
2534
2573
|
}
|
|
2535
2574
|
get small() {
|
|
2536
2575
|
return this._small;
|
|
@@ -2575,6 +2614,34 @@ class PoButtonBaseComponent {
|
|
|
2575
2614
|
get danger() {
|
|
2576
2615
|
return this._danger;
|
|
2577
2616
|
}
|
|
2617
|
+
/**
|
|
2618
|
+
* @optional
|
|
2619
|
+
*
|
|
2620
|
+
* @description
|
|
2621
|
+
*
|
|
2622
|
+
* Define o tamanho do `po-button`.
|
|
2623
|
+
*
|
|
2624
|
+
* Valores válidos:
|
|
2625
|
+
* - `medium`: o `po-button` fica do tamanho padrão, com 44px de altura.;
|
|
2626
|
+
* - `large`: o `po-button` fica maior, com 56px de altura.;
|
|
2627
|
+
*
|
|
2628
|
+
* @default `medium`
|
|
2629
|
+
*
|
|
2630
|
+
*/
|
|
2631
|
+
set size(value) {
|
|
2632
|
+
const size = this.small ? 'small' : value;
|
|
2633
|
+
if (size === 'small') {
|
|
2634
|
+
this._size = 'small';
|
|
2635
|
+
this._small = true;
|
|
2636
|
+
}
|
|
2637
|
+
else {
|
|
2638
|
+
this._size = PoButtonSize[size] ? PoButtonSize[size] : PoButtonSize.medium;
|
|
2639
|
+
this.hasSize = true;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
get size() {
|
|
2643
|
+
return this._size;
|
|
2644
|
+
}
|
|
2578
2645
|
/**
|
|
2579
2646
|
* @optional
|
|
2580
2647
|
*
|
|
@@ -2582,7 +2649,7 @@ class PoButtonBaseComponent {
|
|
|
2582
2649
|
*
|
|
2583
2650
|
* Define o estilo do `po-button`.
|
|
2584
2651
|
*
|
|
2585
|
-
*
|
|
2652
|
+
* Valores válidos:
|
|
2586
2653
|
* - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
|
|
2587
2654
|
* - `secondary`: estilo padrão do `po-button`.
|
|
2588
2655
|
* - `tertiary`: o `po-button` é exibido sem cor do fundo, recebendo menos destaque entre as ações.
|
|
@@ -2612,11 +2679,14 @@ class PoButtonBaseComponent {
|
|
|
2612
2679
|
}
|
|
2613
2680
|
}
|
|
2614
2681
|
PoButtonBaseComponent.ɵfac = function PoButtonBaseComponent_Factory(t) { return new (t || PoButtonBaseComponent)(); };
|
|
2615
|
-
PoButtonBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoButtonBaseComponent, hostVars:
|
|
2682
|
+
PoButtonBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoButtonBaseComponent, hostVars: 3, hostBindings: function PoButtonBaseComponent_HostBindings(rf, ctx) {
|
|
2616
2683
|
if (rf & 2) {
|
|
2617
|
-
i0.ɵɵattribute("p-danger", ctx.danger)("p-kind", ctx.kind);
|
|
2684
|
+
i0.ɵɵattribute("p-danger", ctx.danger)("p-size", ctx.size)("p-kind", ctx.kind);
|
|
2618
2685
|
}
|
|
2619
|
-
}, inputs: { label: ["p-label", "label"], icon: ["p-icon", "icon"], loading: ["p-loading", "loading"], small: ["p-small", "small"], type: ["p-type", "type"], danger: ["p-danger", "danger"], kind: ["p-kind", "kind"], disabled: ["p-disabled", "disabled"] }, outputs: { click: "p-click" } });
|
|
2686
|
+
}, inputs: { label: ["p-label", "label"], icon: ["p-icon", "icon"], loading: ["p-loading", "loading"], small: ["p-small", "small"], type: ["p-type", "type"], danger: ["p-danger", "danger"], size: ["p-size", "size"], kind: ["p-kind", "kind"], disabled: ["p-disabled", "disabled"] }, outputs: { click: "p-click" } });
|
|
2687
|
+
__decorate([
|
|
2688
|
+
InputBoolean()
|
|
2689
|
+
], PoButtonBaseComponent.prototype, "small", null);
|
|
2620
2690
|
__decorate([
|
|
2621
2691
|
InputBoolean()
|
|
2622
2692
|
], PoButtonBaseComponent.prototype, "danger", null);
|
|
@@ -2647,6 +2717,12 @@ __decorate([
|
|
|
2647
2717
|
}, {
|
|
2648
2718
|
type: Input,
|
|
2649
2719
|
args: ['p-danger']
|
|
2720
|
+
}], size: [{
|
|
2721
|
+
type: HostBinding,
|
|
2722
|
+
args: ['attr.p-size']
|
|
2723
|
+
}, {
|
|
2724
|
+
type: Input,
|
|
2725
|
+
args: ['p-size']
|
|
2650
2726
|
}], kind: [{
|
|
2651
2727
|
type: HostBinding,
|
|
2652
2728
|
args: ['attr.p-kind']
|
|
@@ -2748,7 +2824,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2748
2824
|
let _t;
|
|
2749
2825
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
2750
2826
|
}
|
|
2751
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2827
|
+
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 9, consts: [["type", "button", 1, "po-button", 3, "disabled", "click"], ["button", ""], ["class", "po-button-loading-icon", 4, "ngIf"], ["class", "po-button-icon", 3, "p-icon", 4, "ngIf"], ["class", "po-button-label", 4, "ngIf"], [1, "po-button-loading-icon"], ["p-neutral-color", ""], [1, "po-button-icon", 3, "p-icon"], [1, "po-button-label"]], template: function PoButtonComponent_Template(rf, ctx) {
|
|
2752
2828
|
if (rf & 1) {
|
|
2753
2829
|
i0.ɵɵelementStart(0, "button", 0, 1);
|
|
2754
2830
|
i0.ɵɵlistener("click", function PoButtonComponent_Template_button_click_0_listener() { return ctx.onClick(); });
|
|
@@ -2760,7 +2836,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2760
2836
|
if (rf & 2) {
|
|
2761
2837
|
i0.ɵɵclassProp("po-button-sm", ctx.small);
|
|
2762
2838
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.loading);
|
|
2763
|
-
i0.ɵɵattribute("p-kind", ctx.kind)("p-danger", ctx.danger);
|
|
2839
|
+
i0.ɵɵattribute("p-size", ctx.size)("p-kind", ctx.kind)("p-danger", ctx.danger);
|
|
2764
2840
|
i0.ɵɵadvance(2);
|
|
2765
2841
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
2766
2842
|
i0.ɵɵadvance(1);
|
|
@@ -2772,7 +2848,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2772
2848
|
(function () {
|
|
2773
2849
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonComponent, [{
|
|
2774
2850
|
type: Component,
|
|
2775
|
-
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n class=\"po-button\"\n type=\"button\"\n [attr.p-kind]=\"kind\"\n [attr.p-danger]=\"danger\"\n [class.po-button-sm]=\"small\"\n [disabled]=\"disabled || loading\"\n (click)=\"onClick()\"\n>\n <div *ngIf=\"loading\" class=\"po-button-loading-icon\">\n <po-loading-icon p-neutral-color></po-loading-icon>\n </div>\n\n <po-icon *ngIf=\"icon\" class=\"po-button-icon\" [p-icon]=\"icon\"></po-icon>\n <span *ngIf=\"label\" class=\"po-button-label\">{{ label }}</span>\n</button>\n" }]
|
|
2851
|
+
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n class=\"po-button\"\n type=\"button\"\n [attr.p-size]=\"size\"\n [attr.p-kind]=\"kind\"\n [attr.p-danger]=\"danger\"\n [class.po-button-sm]=\"small\"\n [disabled]=\"disabled || loading\"\n (click)=\"onClick()\"\n>\n <div *ngIf=\"loading\" class=\"po-button-loading-icon\">\n <po-loading-icon p-neutral-color></po-loading-icon>\n </div>\n\n <po-icon *ngIf=\"icon\" class=\"po-button-icon\" [p-icon]=\"icon\"></po-icon>\n <span *ngIf=\"label\" class=\"po-button-label\">{{ label }}</span>\n</button>\n" }]
|
|
2776
2852
|
}], null, { buttonElement: [{
|
|
2777
2853
|
type: ViewChild,
|
|
2778
2854
|
args: ['button', { static: true }]
|
|
@@ -3546,10 +3622,17 @@ class PoButtonGroupBaseComponent {
|
|
|
3546
3622
|
this._toggle = PO_TOGGLE_TYPE_DEFAULT;
|
|
3547
3623
|
}
|
|
3548
3624
|
/**
|
|
3625
|
+
* @deprecated 16.x.x
|
|
3626
|
+
*
|
|
3549
3627
|
* @optional
|
|
3550
3628
|
*
|
|
3551
3629
|
* @description
|
|
3552
3630
|
*
|
|
3631
|
+
* **Deprecated 16.x.x**.
|
|
3632
|
+
*
|
|
3633
|
+
* > Por regras de acessibilidade o botão não terá mais um tamanho menor do que 44px e por isso a propriedade será depreciada.
|
|
3634
|
+
* > [Saiba mais](https://animaliads.notion.site/Bot-o-fb3a921e8ba54bd38b39758c24613368)
|
|
3635
|
+
*
|
|
3553
3636
|
* Torna o grupo de botões com tamanho minificado.
|
|
3554
3637
|
*
|
|
3555
3638
|
* @default `false`
|
|
@@ -10485,15 +10568,306 @@ __decorate([
|
|
|
10485
10568
|
}] });
|
|
10486
10569
|
})();
|
|
10487
10570
|
|
|
10571
|
+
/**
|
|
10572
|
+
* @docsPrivate
|
|
10573
|
+
*
|
|
10574
|
+
* @description
|
|
10575
|
+
*
|
|
10576
|
+
* Enum que contém os valores numéricos dos *keyCodes*.
|
|
10577
|
+
*/
|
|
10578
|
+
var PoKeyCodeEnum;
|
|
10579
|
+
(function (PoKeyCodeEnum) {
|
|
10580
|
+
/** Seta para baixo */
|
|
10581
|
+
PoKeyCodeEnum[PoKeyCodeEnum["arrowDown"] = 40] = "arrowDown";
|
|
10582
|
+
/** Seta para cima */
|
|
10583
|
+
PoKeyCodeEnum[PoKeyCodeEnum["arrowUp"] = 38] = "arrowUp";
|
|
10584
|
+
/** Backspace */
|
|
10585
|
+
PoKeyCodeEnum[PoKeyCodeEnum["backspace"] = 8] = "backspace";
|
|
10586
|
+
/** Delete */
|
|
10587
|
+
PoKeyCodeEnum[PoKeyCodeEnum["delete"] = 46] = "delete";
|
|
10588
|
+
/** Enter */
|
|
10589
|
+
PoKeyCodeEnum[PoKeyCodeEnum["enter"] = 13] = "enter";
|
|
10590
|
+
/** Esc */
|
|
10591
|
+
PoKeyCodeEnum[PoKeyCodeEnum["esc"] = 27] = "esc";
|
|
10592
|
+
/** Tecla K */
|
|
10593
|
+
PoKeyCodeEnum[PoKeyCodeEnum["keyK"] = 75] = "keyK";
|
|
10594
|
+
/** Tecla L */
|
|
10595
|
+
PoKeyCodeEnum[PoKeyCodeEnum["keyL"] = 76] = "keyL";
|
|
10596
|
+
/** Espaço */
|
|
10597
|
+
PoKeyCodeEnum[PoKeyCodeEnum["space"] = 32] = "space";
|
|
10598
|
+
/** Tab */
|
|
10599
|
+
PoKeyCodeEnum[PoKeyCodeEnum["tab"] = 9] = "tab";
|
|
10600
|
+
})(PoKeyCodeEnum || (PoKeyCodeEnum = {}));
|
|
10601
|
+
|
|
10602
|
+
/**
|
|
10603
|
+
* @description
|
|
10604
|
+
*
|
|
10605
|
+
* O componente `po-checkbox` exibe uma caixa de opção com um texto ao lado, na qual é possível marcar e desmarcar através tanto
|
|
10606
|
+
* no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
|
|
10607
|
+
*
|
|
10608
|
+
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
|
|
10609
|
+
* ocorrer mudanças do valor.
|
|
10610
|
+
*
|
|
10611
|
+
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
|
|
10612
|
+
*
|
|
10613
|
+
* **Acessibilidade tratada no componente:**
|
|
10614
|
+
*
|
|
10615
|
+
* 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:
|
|
10616
|
+
*
|
|
10617
|
+
* - 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)
|
|
10618
|
+
* - 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)
|
|
10619
|
+
* - A cor não deve ser o único meio para diferenciar o componente do seu estado marcado e desmarcado. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
10620
|
+
*/
|
|
10621
|
+
class PoCheckboxBaseComponent {
|
|
10622
|
+
constructor() {
|
|
10623
|
+
/**
|
|
10624
|
+
* @optional
|
|
10625
|
+
*
|
|
10626
|
+
* @description
|
|
10627
|
+
*
|
|
10628
|
+
* Aplica foco no elemento ao ser iniciado.
|
|
10629
|
+
*
|
|
10630
|
+
* > Caso mais de um elemento seja configurado com essa propriedade, apenas o último elemento declarado com ela terá o foco.
|
|
10631
|
+
*
|
|
10632
|
+
* @default `false`
|
|
10633
|
+
*/
|
|
10634
|
+
this.autoFocus = false;
|
|
10635
|
+
/**
|
|
10636
|
+
* @optional
|
|
10637
|
+
*
|
|
10638
|
+
* @description
|
|
10639
|
+
*
|
|
10640
|
+
* Evento disparado quando o valor do *checkbox* for alterado.
|
|
10641
|
+
*/
|
|
10642
|
+
this.change = new EventEmitter();
|
|
10643
|
+
this.id = uuid();
|
|
10644
|
+
this._disabled = false;
|
|
10645
|
+
}
|
|
10646
|
+
/**
|
|
10647
|
+
* @optional
|
|
10648
|
+
*
|
|
10649
|
+
* @description
|
|
10650
|
+
*
|
|
10651
|
+
* Define o estado do *checkbox* como desabilitado.
|
|
10652
|
+
*
|
|
10653
|
+
* @default `false`
|
|
10654
|
+
*/
|
|
10655
|
+
set disabled(value) {
|
|
10656
|
+
this._disabled = convertToBoolean(value);
|
|
10657
|
+
}
|
|
10658
|
+
get disabled() {
|
|
10659
|
+
return this._disabled;
|
|
10660
|
+
}
|
|
10661
|
+
changeValue() {
|
|
10662
|
+
if (this.propagateChange) {
|
|
10663
|
+
this.propagateChange(this.checkboxValue);
|
|
10664
|
+
}
|
|
10665
|
+
this.change.emit(this.checkboxValue);
|
|
10666
|
+
}
|
|
10667
|
+
checkOption(value) {
|
|
10668
|
+
if (!this.disabled) {
|
|
10669
|
+
value === 'mixed' ? this.changeModelValue(true) : this.changeModelValue(!value);
|
|
10670
|
+
this.changeValue();
|
|
10671
|
+
}
|
|
10672
|
+
}
|
|
10673
|
+
// Função implementada do ControlValueAccessor
|
|
10674
|
+
// Usada para interceptar os estados de habilitado via forms api
|
|
10675
|
+
setDisabledState(isDisabled) {
|
|
10676
|
+
this.disabled = isDisabled;
|
|
10677
|
+
}
|
|
10678
|
+
registerOnChange(fn) {
|
|
10679
|
+
this.propagateChange = fn;
|
|
10680
|
+
}
|
|
10681
|
+
registerOnTouched(fn) {
|
|
10682
|
+
this.onTouched = fn;
|
|
10683
|
+
}
|
|
10684
|
+
writeValue(value) {
|
|
10685
|
+
if (value !== this.checkboxValue) {
|
|
10686
|
+
this.changeModelValue(value);
|
|
10687
|
+
}
|
|
10688
|
+
}
|
|
10689
|
+
}
|
|
10690
|
+
PoCheckboxBaseComponent.ɵfac = function PoCheckboxBaseComponent_Factory(t) { return new (t || PoCheckboxBaseComponent)(); };
|
|
10691
|
+
PoCheckboxBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoCheckboxBaseComponent, inputs: { name: "name", autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], checkboxValue: ["p-checkboxValue", "checkboxValue"], checkBoxRequired: ["p-required", "checkBoxRequired"], disabled: ["p-disabled", "disabled"] }, outputs: { change: "p-change" } });
|
|
10692
|
+
__decorate([
|
|
10693
|
+
InputBoolean()
|
|
10694
|
+
], PoCheckboxBaseComponent.prototype, "autoFocus", void 0);
|
|
10695
|
+
__decorate([
|
|
10696
|
+
InputBoolean()
|
|
10697
|
+
], PoCheckboxBaseComponent.prototype, "checkBoxRequired", void 0);
|
|
10698
|
+
(function () {
|
|
10699
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxBaseComponent, [{
|
|
10700
|
+
type: Directive
|
|
10701
|
+
}], null, { name: [{
|
|
10702
|
+
type: Input,
|
|
10703
|
+
args: ['name']
|
|
10704
|
+
}], autoFocus: [{
|
|
10705
|
+
type: Input,
|
|
10706
|
+
args: ['p-auto-focus']
|
|
10707
|
+
}], label: [{
|
|
10708
|
+
type: Input,
|
|
10709
|
+
args: ['p-label']
|
|
10710
|
+
}], change: [{
|
|
10711
|
+
type: Output,
|
|
10712
|
+
args: ['p-change']
|
|
10713
|
+
}], checkboxValue: [{
|
|
10714
|
+
type: Input,
|
|
10715
|
+
args: ['p-checkboxValue']
|
|
10716
|
+
}], checkBoxRequired: [{
|
|
10717
|
+
type: Input,
|
|
10718
|
+
args: ['p-required']
|
|
10719
|
+
}], disabled: [{
|
|
10720
|
+
type: Input,
|
|
10721
|
+
args: ['p-disabled']
|
|
10722
|
+
}] });
|
|
10723
|
+
})();
|
|
10724
|
+
|
|
10488
10725
|
const _c0$12 = ["checkboxLabel"];
|
|
10489
|
-
function
|
|
10726
|
+
function PoCheckboxComponent_label_3_Template(rf, ctx) {
|
|
10727
|
+
if (rf & 1) {
|
|
10728
|
+
i0.ɵɵelementStart(0, "label", 4, 5);
|
|
10729
|
+
i0.ɵɵtext(2);
|
|
10730
|
+
i0.ɵɵelementEnd();
|
|
10731
|
+
}
|
|
10732
|
+
if (rf & 2) {
|
|
10733
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
10734
|
+
i0.ɵɵproperty("for", ctx_r0.id);
|
|
10735
|
+
i0.ɵɵadvance(2);
|
|
10736
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.label, " ");
|
|
10737
|
+
}
|
|
10738
|
+
}
|
|
10739
|
+
/**
|
|
10740
|
+
* @docsExtends PoCheckboxBaseComponent
|
|
10741
|
+
*
|
|
10742
|
+
* @example
|
|
10743
|
+
*
|
|
10744
|
+
* <example name="po-checkbox-basic" title="PO Checkbox Basic">
|
|
10745
|
+
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.html"> </file>
|
|
10746
|
+
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts"> </file>
|
|
10747
|
+
* </example>
|
|
10748
|
+
*
|
|
10749
|
+
* <example name="po-checkbox-labs" title="PO Checkbox Labs">
|
|
10750
|
+
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.html"> </file>
|
|
10751
|
+
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts"> </file>
|
|
10752
|
+
* </example>
|
|
10753
|
+
*
|
|
10754
|
+
* <example name="po-checkbox-acceptance-term" title="PO Checkbox - Acceptance Term">
|
|
10755
|
+
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.html"> </file>
|
|
10756
|
+
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts"> </file>
|
|
10757
|
+
* </example>
|
|
10758
|
+
*/
|
|
10759
|
+
class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
10760
|
+
constructor(changeDetector) {
|
|
10761
|
+
super();
|
|
10762
|
+
this.changeDetector = changeDetector;
|
|
10763
|
+
}
|
|
10764
|
+
/**
|
|
10765
|
+
* Função que atribui foco ao *checkbox*.
|
|
10766
|
+
*
|
|
10767
|
+
* Para utilizá-la é necessário capturar a referência do componente no DOM através do `ViewChild`, como por exemplo:
|
|
10768
|
+
*
|
|
10769
|
+
* ```
|
|
10770
|
+
* ...
|
|
10771
|
+
* import { ViewChild } from '@angular/core';
|
|
10772
|
+
* import { PoCheckboxComponent } from '@po-ui/ng-components';
|
|
10773
|
+
*
|
|
10774
|
+
* ...
|
|
10775
|
+
*
|
|
10776
|
+
* @ViewChild(PoCheckboxComponent, { static: true }) checkbox: PoCheckboxComponent;
|
|
10777
|
+
*
|
|
10778
|
+
* focusCheckbox() {
|
|
10779
|
+
* this.checkbox.focus();
|
|
10780
|
+
* }
|
|
10781
|
+
* ```
|
|
10782
|
+
*/
|
|
10783
|
+
focus() {
|
|
10784
|
+
if (this.checkboxLabel && !this.disabled) {
|
|
10785
|
+
this.checkboxLabel.nativeElement.focus();
|
|
10786
|
+
}
|
|
10787
|
+
}
|
|
10788
|
+
onBlur() {
|
|
10789
|
+
var _a;
|
|
10790
|
+
(_a = this.onTouched) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
10791
|
+
}
|
|
10792
|
+
ngAfterViewInit() {
|
|
10793
|
+
if (this.autoFocus) {
|
|
10794
|
+
this.focus();
|
|
10795
|
+
}
|
|
10796
|
+
}
|
|
10797
|
+
onKeyDown(event, value) {
|
|
10798
|
+
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
10799
|
+
this.checkOption(value);
|
|
10800
|
+
event.preventDefault();
|
|
10801
|
+
}
|
|
10802
|
+
}
|
|
10803
|
+
changeModelValue(value) {
|
|
10804
|
+
if (value === null) {
|
|
10805
|
+
this.checkboxValue = 'mixed';
|
|
10806
|
+
}
|
|
10807
|
+
else {
|
|
10808
|
+
this.checkboxValue = typeof value === 'boolean' || value === null ? value : false;
|
|
10809
|
+
}
|
|
10810
|
+
this.changeDetector.detectChanges();
|
|
10811
|
+
}
|
|
10812
|
+
}
|
|
10813
|
+
PoCheckboxComponent.ɵfac = function PoCheckboxComponent_Factory(t) { return new (t || PoCheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10814
|
+
PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxComponent, selectors: [["po-checkbox"]], viewQuery: function PoCheckboxComponent_Query(rf, ctx) {
|
|
10815
|
+
if (rf & 1) {
|
|
10816
|
+
i0.ɵɵviewQuery(_c0$12, 7);
|
|
10817
|
+
}
|
|
10818
|
+
if (rf & 2) {
|
|
10819
|
+
let _t;
|
|
10820
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabel = _t.first);
|
|
10821
|
+
}
|
|
10822
|
+
}, features: [i0.ɵɵProvidersFeature([
|
|
10823
|
+
{
|
|
10824
|
+
provide: NG_VALUE_ACCESSOR,
|
|
10825
|
+
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
10826
|
+
multi: true
|
|
10827
|
+
}
|
|
10828
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 8, consts: [[1, "container-po-checkbox", 3, "click", "keydown"], ["role", "checkbox", 1, "po-checkbox-outline", 3, "tabindex"], ["aria-label", " ", 1, "po-checkbox", 3, "id"], ["class", "po-checkbox-label", "tabindex", "-1", 3, "for", 4, "ngIf"], ["tabindex", "-1", 1, "po-checkbox-label", 3, "for"], ["checkboxLabel", ""]], template: function PoCheckboxComponent_Template(rf, ctx) {
|
|
10829
|
+
if (rf & 1) {
|
|
10830
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
10831
|
+
i0.ɵɵlistener("click", function PoCheckboxComponent_Template_div_click_0_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_div_keydown_0_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
10832
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
10833
|
+
i0.ɵɵelement(2, "span", 2);
|
|
10834
|
+
i0.ɵɵtemplate(3, PoCheckboxComponent_label_3_Template, 3, 2, "label", 3);
|
|
10835
|
+
i0.ɵɵelementEnd()();
|
|
10836
|
+
}
|
|
10837
|
+
if (rf & 2) {
|
|
10838
|
+
i0.ɵɵattribute("checked", ctx.checkboxValue);
|
|
10839
|
+
i0.ɵɵadvance(1);
|
|
10840
|
+
i0.ɵɵproperty("tabindex", ctx.disabled ? -1 : 0);
|
|
10841
|
+
i0.ɵɵattribute("aria-checked", ctx.checkboxValue);
|
|
10842
|
+
i0.ɵɵadvance(1);
|
|
10843
|
+
i0.ɵɵproperty("id", ctx.id);
|
|
10844
|
+
i0.ɵɵattribute("aria-checked", ctx.checkboxValue)("aria-disabled", ctx.disabled)("required", ctx.checkBoxRequired);
|
|
10845
|
+
i0.ɵɵadvance(1);
|
|
10846
|
+
i0.ɵɵproperty("ngIf", ctx.label);
|
|
10847
|
+
}
|
|
10848
|
+
}, dependencies: [i1.NgIf], encapsulation: 2, changeDetection: 0 });
|
|
10849
|
+
(function () {
|
|
10850
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxComponent, [{
|
|
10851
|
+
type: Component,
|
|
10852
|
+
args: [{ selector: 'po-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
10853
|
+
{
|
|
10854
|
+
provide: NG_VALUE_ACCESSOR,
|
|
10855
|
+
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
10856
|
+
multi: true
|
|
10857
|
+
}
|
|
10858
|
+
], template: "<div\n class=\"container-po-checkbox\"\n [attr.checked]=\"checkboxValue\"\n (click)=\"checkOption(checkboxValue)\"\n (keydown)=\"onKeyDown($event, checkboxValue)\"\n>\n <div role=\"checkbox\" class=\"po-checkbox-outline\" [tabindex]=\"disabled ? -1 : 0\" [attr.aria-checked]=\"checkboxValue\">\n <span\n [attr.aria-checked]=\"checkboxValue\"\n aria-label=\" \"\n [id]=\"id\"\n class=\"po-checkbox\"\n [attr.aria-disabled]=\"disabled\"\n [attr.required]=\"checkBoxRequired\"\n >\n </span>\n\n <label *ngIf=\"label\" #checkboxLabel [for]=\"id\" class=\"po-checkbox-label\" tabindex=\"-1\">\n {{ label }}\n </label>\n </div>\n</div>\n" }]
|
|
10859
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabel: [{
|
|
10860
|
+
type: ViewChild,
|
|
10861
|
+
args: ['checkboxLabel', { static: true }]
|
|
10862
|
+
}] });
|
|
10863
|
+
})();
|
|
10864
|
+
|
|
10865
|
+
const _c0$11 = ["checkboxLabel"];
|
|
10866
|
+
function PoCheckboxGroupComponent_li_3_Template(rf, ctx) {
|
|
10490
10867
|
if (rf & 1) {
|
|
10491
10868
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
10492
|
-
i0.ɵɵelementStart(0, "
|
|
10493
|
-
i0.ɵɵ
|
|
10494
|
-
i0.ɵɵelementStart(2, "label", 5, 6);
|
|
10495
|
-
i0.ɵɵlistener("click", function PoCheckboxGroupComponent_div_3_Template_label_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 PoCheckboxGroupComponent_div_3_Template_label_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)); });
|
|
10496
|
-
i0.ɵɵtext(4);
|
|
10869
|
+
i0.ɵɵelementStart(0, "li")(1, "po-checkbox", 4, 5);
|
|
10870
|
+
i0.ɵɵlistener("click", function PoCheckboxGroupComponent_li_3_Template_po_checkbox_click_1_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 PoCheckboxGroupComponent_li_3_Template_po_checkbox_keydown_1_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)); });
|
|
10497
10871
|
i0.ɵɵelementEnd()();
|
|
10498
10872
|
}
|
|
10499
10873
|
if (rf & 2) {
|
|
@@ -10502,13 +10876,7 @@ function PoCheckboxGroupComponent_div_3_Template(rf, ctx) {
|
|
|
10502
10876
|
i0.ɵɵclassMapInterpolate2("po-checkbox-group-item po-md-", ctx_r0.mdColumns, " po-lg-", ctx_r0.columns, "");
|
|
10503
10877
|
i0.ɵɵclassProp("po-checkbox-group-item-disabled", option_r1.disabled || ctx_r0.disabled);
|
|
10504
10878
|
i0.ɵɵadvance(1);
|
|
10505
|
-
i0.ɵɵ
|
|
10506
|
-
i0.ɵɵproperty("checked", option_r1.value)("disabled", option_r1.disabled || ctx_r0.disabled)("id", option_r1.id)("required", ctx_r0.required)("value", option_r1.value);
|
|
10507
|
-
i0.ɵɵadvance(1);
|
|
10508
|
-
i0.ɵɵclassProp("po-clickable", !option_r1.disabled && !ctx_r0.disabled);
|
|
10509
|
-
i0.ɵɵproperty("for", option_r1.id)("tabindex", option_r1.disabled || ctx_r0.disabled ? -1 : 0);
|
|
10510
|
-
i0.ɵɵadvance(2);
|
|
10511
|
-
i0.ɵɵtextInterpolate1(" ", option_r1.label, " ");
|
|
10879
|
+
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);
|
|
10512
10880
|
}
|
|
10513
10881
|
}
|
|
10514
10882
|
/**
|
|
@@ -10583,7 +10951,7 @@ class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent {
|
|
|
10583
10951
|
PoCheckboxGroupComponent.ɵfac = function PoCheckboxGroupComponent_Factory(t) { return new (t || PoCheckboxGroupComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10584
10952
|
PoCheckboxGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxGroupComponent, selectors: [["po-checkbox-group"]], viewQuery: function PoCheckboxGroupComponent_Query(rf, ctx) {
|
|
10585
10953
|
if (rf & 1) {
|
|
10586
|
-
i0.ɵɵviewQuery(_c0$
|
|
10954
|
+
i0.ɵɵviewQuery(_c0$11, 5);
|
|
10587
10955
|
}
|
|
10588
10956
|
if (rf & 2) {
|
|
10589
10957
|
let _t;
|
|
@@ -10600,20 +10968,22 @@ PoCheckboxGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Po
|
|
|
10600
10968
|
useExisting: forwardRef(() => PoCheckboxGroupComponent),
|
|
10601
10969
|
multi: true
|
|
10602
10970
|
}
|
|
10603
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
10971
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [[3, "p-help", "p-label", "p-optional"], ["role", "group", 1, "po-field-container-content", "po-checkbox-group-content"], [1, "po-row", "po-pt-2", "po-pb-1"], [3, "class", "po-checkbox-group-item-disabled", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-label", "p-disabled", "p-checkboxValue", "p-required", "click", "keydown"], ["checkboxLabel", ""]], template: function PoCheckboxGroupComponent_Template(rf, ctx) {
|
|
10604
10972
|
if (rf & 1) {
|
|
10605
|
-
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "
|
|
10606
|
-
i0.ɵɵtemplate(3,
|
|
10973
|
+
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "ul", 2);
|
|
10974
|
+
i0.ɵɵtemplate(3, PoCheckboxGroupComponent_li_3_Template, 3, 10, "li", 3);
|
|
10607
10975
|
i0.ɵɵelementEnd()();
|
|
10608
10976
|
i0.ɵɵelement(4, "po-field-container-bottom");
|
|
10609
10977
|
i0.ɵɵelementEnd();
|
|
10610
10978
|
}
|
|
10611
10979
|
if (rf & 2) {
|
|
10612
10980
|
i0.ɵɵproperty("p-help", ctx.help)("p-label", ctx.label)("p-optional", !ctx.required && ctx.optional);
|
|
10613
|
-
i0.ɵɵadvance(
|
|
10981
|
+
i0.ɵɵadvance(1);
|
|
10982
|
+
i0.ɵɵattribute("aria-label", ctx.label);
|
|
10983
|
+
i0.ɵɵadvance(2);
|
|
10614
10984
|
i0.ɵɵproperty("ngForOf", ctx.checkboxGroupOptionsView)("ngForTrackBy", ctx.trackByFn);
|
|
10615
10985
|
}
|
|
10616
|
-
}, dependencies: [i1.NgForOf, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
10986
|
+
}, dependencies: [i1.NgForOf, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoCheckboxComponent], encapsulation: 2, changeDetection: 0 });
|
|
10617
10987
|
(function () {
|
|
10618
10988
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxGroupComponent, [{
|
|
10619
10989
|
type: Component,
|
|
@@ -10628,13 +10998,30 @@ PoCheckboxGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Po
|
|
|
10628
10998
|
useExisting: forwardRef(() => PoCheckboxGroupComponent),
|
|
10629
10999
|
multi: true
|
|
10630
11000
|
}
|
|
10631
|
-
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content po-checkbox-group-content\">\n <
|
|
11001
|
+
], template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div role=\"group\" [attr.aria-label]=\"label\" class=\"po-field-container-content po-checkbox-group-content\">\n <ul class=\"po-row po-pt-2 po-pb-1\">\n <li\n *ngFor=\"let option of checkboxGroupOptionsView; trackBy: trackByFn\"\n class=\"po-checkbox-group-item po-md-{{ mdColumns }} po-lg-{{ columns }}\"\n [class.po-checkbox-group-item-disabled]=\"option.disabled || disabled\"\n >\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 </li>\n </ul>\n </div>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
10632
11002
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabels: [{
|
|
10633
11003
|
type: ViewChildren,
|
|
10634
11004
|
args: ['checkboxLabel']
|
|
10635
11005
|
}] });
|
|
10636
11006
|
})();
|
|
10637
11007
|
|
|
11008
|
+
class PoCheckboxModule {
|
|
11009
|
+
}
|
|
11010
|
+
PoCheckboxModule.ɵfac = function PoCheckboxModule_Factory(t) { return new (t || PoCheckboxModule)(); };
|
|
11011
|
+
PoCheckboxModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoCheckboxModule });
|
|
11012
|
+
PoCheckboxModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule] });
|
|
11013
|
+
(function () {
|
|
11014
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxModule, [{
|
|
11015
|
+
type: NgModule,
|
|
11016
|
+
args: [{
|
|
11017
|
+
declarations: [PoCheckboxComponent],
|
|
11018
|
+
imports: [CommonModule, FormsModule],
|
|
11019
|
+
exports: [PoCheckboxComponent]
|
|
11020
|
+
}]
|
|
11021
|
+
}], null, null);
|
|
11022
|
+
})();
|
|
11023
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoCheckboxModule, { declarations: [PoCheckboxComponent], imports: [CommonModule, FormsModule], exports: [PoCheckboxComponent] }); })();
|
|
11024
|
+
|
|
10638
11025
|
/**
|
|
10639
11026
|
* @description
|
|
10640
11027
|
*
|
|
@@ -10644,18 +11031,18 @@ class PoCheckboxGroupModule {
|
|
|
10644
11031
|
}
|
|
10645
11032
|
PoCheckboxGroupModule.ɵfac = function PoCheckboxGroupModule_Factory(t) { return new (t || PoCheckboxGroupModule)(); };
|
|
10646
11033
|
PoCheckboxGroupModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoCheckboxGroupModule });
|
|
10647
|
-
PoCheckboxGroupModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, PoFieldContainerModule] });
|
|
11034
|
+
PoCheckboxGroupModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, PoFieldContainerModule, PoCheckboxModule] });
|
|
10648
11035
|
(function () {
|
|
10649
11036
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxGroupModule, [{
|
|
10650
11037
|
type: NgModule,
|
|
10651
11038
|
args: [{
|
|
10652
|
-
imports: [CommonModule, FormsModule, PoFieldContainerModule],
|
|
11039
|
+
imports: [CommonModule, FormsModule, PoFieldContainerModule, PoCheckboxModule],
|
|
10653
11040
|
exports: [PoCheckboxGroupComponent],
|
|
10654
11041
|
declarations: [PoCheckboxGroupComponent]
|
|
10655
11042
|
}]
|
|
10656
11043
|
}], null, null);
|
|
10657
11044
|
})();
|
|
10658
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoCheckboxGroupModule, { declarations: [PoCheckboxGroupComponent], imports: [CommonModule, FormsModule, PoFieldContainerModule], exports: [PoCheckboxGroupComponent] }); })();
|
|
11045
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoCheckboxGroupModule, { declarations: [PoCheckboxGroupComponent], imports: [CommonModule, FormsModule, PoFieldContainerModule, PoCheckboxModule], exports: [PoCheckboxGroupComponent] }); })();
|
|
10659
11046
|
|
|
10660
11047
|
/**
|
|
10661
11048
|
* @docsPrivate
|
|
@@ -11673,7 +12060,7 @@ __decorate([
|
|
|
11673
12060
|
}] });
|
|
11674
12061
|
})();
|
|
11675
12062
|
|
|
11676
|
-
const _c0$
|
|
12063
|
+
const _c0$10 = ["calendar"];
|
|
11677
12064
|
const _c1$u = ["dialogPicker"];
|
|
11678
12065
|
const _c2$d = ["iconDatepicker"];
|
|
11679
12066
|
const _c3$7 = ["inp"];
|
|
@@ -11816,6 +12203,8 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
11816
12203
|
}
|
|
11817
12204
|
}
|
|
11818
12205
|
dateSelected() {
|
|
12206
|
+
var _a;
|
|
12207
|
+
(_a = this.onTouchedModel) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
11819
12208
|
if (!this.verifyMobile()) {
|
|
11820
12209
|
this.inputEl.nativeElement.focus();
|
|
11821
12210
|
}
|
|
@@ -11999,7 +12388,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
11999
12388
|
PoDatepickerComponent.ɵfac = function PoDatepickerComponent_Factory(t) { return new (t || PoDatepickerComponent)(i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
12000
12389
|
PoDatepickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerComponent, selectors: [["po-datepicker"]], viewQuery: function PoDatepickerComponent_Query(rf, ctx) {
|
|
12001
12390
|
if (rf & 1) {
|
|
12002
|
-
i0.ɵɵviewQuery(_c0$
|
|
12391
|
+
i0.ɵɵviewQuery(_c0$10, 7);
|
|
12003
12392
|
i0.ɵɵviewQuery(_c1$u, 7, ElementRef);
|
|
12004
12393
|
i0.ɵɵviewQuery(_c2$d, 7, ElementRef);
|
|
12005
12394
|
i0.ɵɵviewQuery(_c3$7, 7, ElementRef);
|
|
@@ -12274,7 +12663,7 @@ PoModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModa
|
|
|
12274
12663
|
}] });
|
|
12275
12664
|
})();
|
|
12276
12665
|
|
|
12277
|
-
const _c0
|
|
12666
|
+
const _c0$$ = ["*"];
|
|
12278
12667
|
/**
|
|
12279
12668
|
* @description
|
|
12280
12669
|
*
|
|
@@ -12308,7 +12697,7 @@ class PoModalFooterComponent {
|
|
|
12308
12697
|
}
|
|
12309
12698
|
}
|
|
12310
12699
|
PoModalFooterComponent.ɵfac = function PoModalFooterComponent_Factory(t) { return new (t || PoModalFooterComponent)(); };
|
|
12311
|
-
PoModalFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalFooterComponent, selectors: [["po-modal-footer"]], inputs: { disabledAlign: ["p-disabled-align", "disabledAlign"] }, ngContentSelectors: _c0
|
|
12700
|
+
PoModalFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalFooterComponent, selectors: [["po-modal-footer"]], inputs: { disabledAlign: ["p-disabled-align", "disabledAlign"] }, ngContentSelectors: _c0$$, decls: 2, vars: 2, consts: [[1, "po-modal-footer"]], template: function PoModalFooterComponent_Template(rf, ctx) {
|
|
12312
12701
|
if (rf & 1) {
|
|
12313
12702
|
i0.ɵɵprojectionDef();
|
|
12314
12703
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -12345,7 +12734,7 @@ PoActiveOverlayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: P
|
|
|
12345
12734
|
}], null, null);
|
|
12346
12735
|
})();
|
|
12347
12736
|
|
|
12348
|
-
const _c0
|
|
12737
|
+
const _c0$_ = ["modalContent"];
|
|
12349
12738
|
function PoModalComponent_div_0_a_9_Template(rf, ctx) {
|
|
12350
12739
|
if (rf & 1) {
|
|
12351
12740
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -12526,7 +12915,7 @@ PoModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalCom
|
|
|
12526
12915
|
}
|
|
12527
12916
|
}, viewQuery: function PoModalComponent_Query(rf, ctx) {
|
|
12528
12917
|
if (rf & 1) {
|
|
12529
|
-
i0.ɵɵviewQuery(_c0
|
|
12918
|
+
i0.ɵɵviewQuery(_c0$_, 5, ElementRef);
|
|
12530
12919
|
}
|
|
12531
12920
|
if (rf & 2) {
|
|
12532
12921
|
let _t;
|
|
@@ -13400,7 +13789,7 @@ var PoToasterType;
|
|
|
13400
13789
|
PoToasterType[PoToasterType["Warning"] = 3] = "Warning";
|
|
13401
13790
|
})(PoToasterType || (PoToasterType = {}));
|
|
13402
13791
|
|
|
13403
|
-
const _c0$
|
|
13792
|
+
const _c0$Z = ["toaster"];
|
|
13404
13793
|
const _c1$s = ["buttonClose"];
|
|
13405
13794
|
function PoToasterComponent_po_button_8_Template(rf, ctx) {
|
|
13406
13795
|
if (rf & 1) {
|
|
@@ -13538,7 +13927,7 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
13538
13927
|
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)); };
|
|
13539
13928
|
PoToasterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoToasterComponent, selectors: [["po-toaster"]], viewQuery: function PoToasterComponent_Query(rf, ctx) {
|
|
13540
13929
|
if (rf & 1) {
|
|
13541
|
-
i0.ɵɵviewQuery(_c0$
|
|
13930
|
+
i0.ɵɵviewQuery(_c0$Z, 5);
|
|
13542
13931
|
i0.ɵɵviewQuery(_c1$s, 5);
|
|
13543
13932
|
}
|
|
13544
13933
|
if (rf & 2) {
|
|
@@ -13795,7 +14184,7 @@ PoPopoverBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPo
|
|
|
13795
14184
|
}] });
|
|
13796
14185
|
})();
|
|
13797
14186
|
|
|
13798
|
-
const _c0$
|
|
14187
|
+
const _c0$Y = ["popoverElement"];
|
|
13799
14188
|
function PoPopoverComponent_div_2_Template(rf, ctx) {
|
|
13800
14189
|
if (rf & 1) {
|
|
13801
14190
|
i0.ɵɵelement(0, "div");
|
|
@@ -13941,7 +14330,7 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
13941
14330
|
PoPopoverComponent.ɵfac = function PoPopoverComponent_Factory(t) { return new (t || PoPopoverComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoControlPositionService)); };
|
|
13942
14331
|
PoPopoverComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopoverComponent, selectors: [["po-popover"]], viewQuery: function PoPopoverComponent_Query(rf, ctx) {
|
|
13943
14332
|
if (rf & 1) {
|
|
13944
|
-
i0.ɵɵviewQuery(_c0$
|
|
14333
|
+
i0.ɵɵviewQuery(_c0$Y, 7, ElementRef);
|
|
13945
14334
|
}
|
|
13946
14335
|
if (rf & 2) {
|
|
13947
14336
|
let _t;
|
|
@@ -14078,294 +14467,6 @@ PoTimeModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
|
14078
14467
|
})();
|
|
14079
14468
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoTimeModule, { declarations: [PoTimePipe], exports: [PoTimePipe] }); })();
|
|
14080
14469
|
|
|
14081
|
-
/**
|
|
14082
|
-
* @docsPrivate
|
|
14083
|
-
*
|
|
14084
|
-
* @description
|
|
14085
|
-
*
|
|
14086
|
-
* Enum que contém os valores numéricos dos *keyCodes*.
|
|
14087
|
-
*/
|
|
14088
|
-
var PoKeyCodeEnum;
|
|
14089
|
-
(function (PoKeyCodeEnum) {
|
|
14090
|
-
/** Seta para baixo */
|
|
14091
|
-
PoKeyCodeEnum[PoKeyCodeEnum["arrowDown"] = 40] = "arrowDown";
|
|
14092
|
-
/** Seta para cima */
|
|
14093
|
-
PoKeyCodeEnum[PoKeyCodeEnum["arrowUp"] = 38] = "arrowUp";
|
|
14094
|
-
/** Backspace */
|
|
14095
|
-
PoKeyCodeEnum[PoKeyCodeEnum["backspace"] = 8] = "backspace";
|
|
14096
|
-
/** Delete */
|
|
14097
|
-
PoKeyCodeEnum[PoKeyCodeEnum["delete"] = 46] = "delete";
|
|
14098
|
-
/** Enter */
|
|
14099
|
-
PoKeyCodeEnum[PoKeyCodeEnum["enter"] = 13] = "enter";
|
|
14100
|
-
/** Esc */
|
|
14101
|
-
PoKeyCodeEnum[PoKeyCodeEnum["esc"] = 27] = "esc";
|
|
14102
|
-
/** Tecla K */
|
|
14103
|
-
PoKeyCodeEnum[PoKeyCodeEnum["keyK"] = 75] = "keyK";
|
|
14104
|
-
/** Tecla L */
|
|
14105
|
-
PoKeyCodeEnum[PoKeyCodeEnum["keyL"] = 76] = "keyL";
|
|
14106
|
-
/** Espaço */
|
|
14107
|
-
PoKeyCodeEnum[PoKeyCodeEnum["space"] = 32] = "space";
|
|
14108
|
-
/** Tab */
|
|
14109
|
-
PoKeyCodeEnum[PoKeyCodeEnum["tab"] = 9] = "tab";
|
|
14110
|
-
})(PoKeyCodeEnum || (PoKeyCodeEnum = {}));
|
|
14111
|
-
|
|
14112
|
-
/**
|
|
14113
|
-
* @description
|
|
14114
|
-
*
|
|
14115
|
-
* O componente `po-checkbox` exibe uma caixa de opção com um texto ao lado, na qual é possível marcar e desmarcar através tanto
|
|
14116
|
-
* no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
|
|
14117
|
-
*
|
|
14118
|
-
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
|
|
14119
|
-
* ocorrer mudanças do valor.
|
|
14120
|
-
*
|
|
14121
|
-
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
|
|
14122
|
-
*
|
|
14123
|
-
* **Acessibilidade tratada no componente:**
|
|
14124
|
-
*
|
|
14125
|
-
* 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:
|
|
14126
|
-
*
|
|
14127
|
-
* - 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)
|
|
14128
|
-
* - 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)
|
|
14129
|
-
* - A cor não deve ser o único meio para diferenciar o componente do seu estado marcado e desmarcado. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
14130
|
-
*/
|
|
14131
|
-
class PoCheckboxBaseComponent {
|
|
14132
|
-
constructor() {
|
|
14133
|
-
/**
|
|
14134
|
-
* @optional
|
|
14135
|
-
*
|
|
14136
|
-
* @description
|
|
14137
|
-
*
|
|
14138
|
-
* Aplica foco no elemento ao ser iniciado.
|
|
14139
|
-
*
|
|
14140
|
-
* > Caso mais de um elemento seja configurado com essa propriedade, apenas o último elemento declarado com ela terá o foco.
|
|
14141
|
-
*
|
|
14142
|
-
* @default `false`
|
|
14143
|
-
*/
|
|
14144
|
-
this.autoFocus = false;
|
|
14145
|
-
/**
|
|
14146
|
-
* @optional
|
|
14147
|
-
*
|
|
14148
|
-
* @description
|
|
14149
|
-
*
|
|
14150
|
-
* Evento disparado quando o valor do *checkbox* for alterado.
|
|
14151
|
-
*/
|
|
14152
|
-
this.change = new EventEmitter();
|
|
14153
|
-
this.id = uuid();
|
|
14154
|
-
this._disabled = false;
|
|
14155
|
-
}
|
|
14156
|
-
/**
|
|
14157
|
-
* @optional
|
|
14158
|
-
*
|
|
14159
|
-
* @description
|
|
14160
|
-
*
|
|
14161
|
-
* Define o estado do *checkbox* como desabilitado.
|
|
14162
|
-
*
|
|
14163
|
-
* @default `false`
|
|
14164
|
-
*/
|
|
14165
|
-
set disabled(value) {
|
|
14166
|
-
this._disabled = convertToBoolean(value);
|
|
14167
|
-
}
|
|
14168
|
-
get disabled() {
|
|
14169
|
-
return this._disabled;
|
|
14170
|
-
}
|
|
14171
|
-
changeValue() {
|
|
14172
|
-
if (this.propagateChange) {
|
|
14173
|
-
this.propagateChange(this.checkboxValue);
|
|
14174
|
-
}
|
|
14175
|
-
this.change.emit(this.checkboxValue);
|
|
14176
|
-
}
|
|
14177
|
-
checkOption(value) {
|
|
14178
|
-
if (!this.disabled) {
|
|
14179
|
-
value === 'mixed' ? this.changeModelValue(true) : this.changeModelValue(!value);
|
|
14180
|
-
this.changeValue();
|
|
14181
|
-
}
|
|
14182
|
-
}
|
|
14183
|
-
// Função implementada do ControlValueAccessor
|
|
14184
|
-
// Usada para interceptar os estados de habilitado via forms api
|
|
14185
|
-
setDisabledState(isDisabled) {
|
|
14186
|
-
this.disabled = isDisabled;
|
|
14187
|
-
}
|
|
14188
|
-
registerOnChange(fn) {
|
|
14189
|
-
this.propagateChange = fn;
|
|
14190
|
-
}
|
|
14191
|
-
registerOnTouched(fn) {
|
|
14192
|
-
this.onTouched = fn;
|
|
14193
|
-
}
|
|
14194
|
-
writeValue(value) {
|
|
14195
|
-
if (value !== this.checkboxValue) {
|
|
14196
|
-
this.changeModelValue(value);
|
|
14197
|
-
}
|
|
14198
|
-
}
|
|
14199
|
-
}
|
|
14200
|
-
PoCheckboxBaseComponent.ɵfac = function PoCheckboxBaseComponent_Factory(t) { return new (t || PoCheckboxBaseComponent)(); };
|
|
14201
|
-
PoCheckboxBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoCheckboxBaseComponent, inputs: { name: "name", autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], disabled: ["p-disabled", "disabled"] }, outputs: { change: "p-change" } });
|
|
14202
|
-
__decorate([
|
|
14203
|
-
InputBoolean()
|
|
14204
|
-
], PoCheckboxBaseComponent.prototype, "autoFocus", void 0);
|
|
14205
|
-
(function () {
|
|
14206
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxBaseComponent, [{
|
|
14207
|
-
type: Directive
|
|
14208
|
-
}], null, { name: [{
|
|
14209
|
-
type: Input,
|
|
14210
|
-
args: ['name']
|
|
14211
|
-
}], autoFocus: [{
|
|
14212
|
-
type: Input,
|
|
14213
|
-
args: ['p-auto-focus']
|
|
14214
|
-
}], label: [{
|
|
14215
|
-
type: Input,
|
|
14216
|
-
args: ['p-label']
|
|
14217
|
-
}], change: [{
|
|
14218
|
-
type: Output,
|
|
14219
|
-
args: ['p-change']
|
|
14220
|
-
}], disabled: [{
|
|
14221
|
-
type: Input,
|
|
14222
|
-
args: ['p-disabled']
|
|
14223
|
-
}] });
|
|
14224
|
-
})();
|
|
14225
|
-
|
|
14226
|
-
const _c0$Y = ["checkboxLabel"];
|
|
14227
|
-
/**
|
|
14228
|
-
* @docsExtends PoCheckboxBaseComponent
|
|
14229
|
-
*
|
|
14230
|
-
* @example
|
|
14231
|
-
*
|
|
14232
|
-
* <example name="po-checkbox-basic" title="PO Checkbox Basic">
|
|
14233
|
-
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.html"> </file>
|
|
14234
|
-
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts"> </file>
|
|
14235
|
-
* </example>
|
|
14236
|
-
*
|
|
14237
|
-
* <example name="po-checkbox-labs" title="PO Checkbox Labs">
|
|
14238
|
-
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.html"> </file>
|
|
14239
|
-
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts"> </file>
|
|
14240
|
-
* </example>
|
|
14241
|
-
*
|
|
14242
|
-
* <example name="po-checkbox-acceptance-term" title="PO Checkbox - Acceptance Term">
|
|
14243
|
-
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.html"> </file>
|
|
14244
|
-
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts"> </file>
|
|
14245
|
-
* </example>
|
|
14246
|
-
*/
|
|
14247
|
-
class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
14248
|
-
constructor(changeDetector) {
|
|
14249
|
-
super();
|
|
14250
|
-
this.changeDetector = changeDetector;
|
|
14251
|
-
}
|
|
14252
|
-
/**
|
|
14253
|
-
* Função que atribui foco ao *checkbox*.
|
|
14254
|
-
*
|
|
14255
|
-
* Para utilizá-la é necessário capturar a referência do componente no DOM através do `ViewChild`, como por exemplo:
|
|
14256
|
-
*
|
|
14257
|
-
* ```
|
|
14258
|
-
* ...
|
|
14259
|
-
* import { ViewChild } from '@angular/core';
|
|
14260
|
-
* import { PoCheckboxComponent } from '@po-ui/ng-components';
|
|
14261
|
-
*
|
|
14262
|
-
* ...
|
|
14263
|
-
*
|
|
14264
|
-
* @ViewChild(PoCheckboxComponent, { static: true }) checkbox: PoCheckboxComponent;
|
|
14265
|
-
*
|
|
14266
|
-
* focusCheckbox() {
|
|
14267
|
-
* this.checkbox.focus();
|
|
14268
|
-
* }
|
|
14269
|
-
* ```
|
|
14270
|
-
*/
|
|
14271
|
-
focus() {
|
|
14272
|
-
if (this.checkboxLabel && !this.disabled) {
|
|
14273
|
-
this.checkboxLabel.nativeElement.focus();
|
|
14274
|
-
}
|
|
14275
|
-
}
|
|
14276
|
-
onBlur() {
|
|
14277
|
-
var _a;
|
|
14278
|
-
(_a = this.onTouched) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
14279
|
-
}
|
|
14280
|
-
ngAfterViewInit() {
|
|
14281
|
-
if (this.autoFocus) {
|
|
14282
|
-
this.focus();
|
|
14283
|
-
}
|
|
14284
|
-
}
|
|
14285
|
-
onKeyDown(event, value) {
|
|
14286
|
-
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
14287
|
-
this.checkOption(value);
|
|
14288
|
-
event.preventDefault();
|
|
14289
|
-
}
|
|
14290
|
-
}
|
|
14291
|
-
changeModelValue(value) {
|
|
14292
|
-
if (value === null) {
|
|
14293
|
-
this.checkboxValue = 'mixed';
|
|
14294
|
-
}
|
|
14295
|
-
else {
|
|
14296
|
-
this.checkboxValue = typeof value === 'boolean' || value === null ? value : false;
|
|
14297
|
-
}
|
|
14298
|
-
this.changeDetector.detectChanges();
|
|
14299
|
-
}
|
|
14300
|
-
}
|
|
14301
|
-
PoCheckboxComponent.ɵfac = function PoCheckboxComponent_Factory(t) { return new (t || PoCheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
14302
|
-
PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxComponent, selectors: [["po-checkbox"]], viewQuery: function PoCheckboxComponent_Query(rf, ctx) {
|
|
14303
|
-
if (rf & 1) {
|
|
14304
|
-
i0.ɵɵviewQuery(_c0$Y, 7);
|
|
14305
|
-
}
|
|
14306
|
-
if (rf & 2) {
|
|
14307
|
-
let _t;
|
|
14308
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabel = _t.first);
|
|
14309
|
-
}
|
|
14310
|
-
}, features: [i0.ɵɵProvidersFeature([
|
|
14311
|
-
{
|
|
14312
|
-
provide: NG_VALUE_ACCESSOR,
|
|
14313
|
-
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
14314
|
-
multi: true
|
|
14315
|
-
}
|
|
14316
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 8, consts: [[1, "container-po-checkbox", 3, "click", "keydown"], ["role", "checkbox", 1, "po-checkbox", 3, "id", "tabindex"], ["tabindex", "-1", 1, "po-checkbox-label", 3, "for"], ["checkboxLabel", ""]], template: function PoCheckboxComponent_Template(rf, ctx) {
|
|
14317
|
-
if (rf & 1) {
|
|
14318
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
14319
|
-
i0.ɵɵlistener("click", function PoCheckboxComponent_Template_div_click_0_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_div_keydown_0_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
14320
|
-
i0.ɵɵelement(1, "span", 1);
|
|
14321
|
-
i0.ɵɵelementStart(2, "label", 2, 3);
|
|
14322
|
-
i0.ɵɵtext(4);
|
|
14323
|
-
i0.ɵɵelementEnd()();
|
|
14324
|
-
}
|
|
14325
|
-
if (rf & 2) {
|
|
14326
|
-
i0.ɵɵattribute("checked", ctx.checkboxValue);
|
|
14327
|
-
i0.ɵɵadvance(1);
|
|
14328
|
-
i0.ɵɵproperty("id", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
14329
|
-
i0.ɵɵattribute("aria-checked", ctx.checkboxValue)("aria-label", ctx.label)("aria-disabled", ctx.disabled);
|
|
14330
|
-
i0.ɵɵadvance(1);
|
|
14331
|
-
i0.ɵɵproperty("for", ctx.id);
|
|
14332
|
-
i0.ɵɵadvance(2);
|
|
14333
|
-
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
14334
|
-
}
|
|
14335
|
-
}, encapsulation: 2, changeDetection: 0 });
|
|
14336
|
-
(function () {
|
|
14337
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxComponent, [{
|
|
14338
|
-
type: Component,
|
|
14339
|
-
args: [{ selector: 'po-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
14340
|
-
{
|
|
14341
|
-
provide: NG_VALUE_ACCESSOR,
|
|
14342
|
-
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
14343
|
-
multi: true
|
|
14344
|
-
}
|
|
14345
|
-
], template: "<div\n class=\"container-po-checkbox\"\n [attr.checked]=\"checkboxValue\"\n (click)=\"checkOption(checkboxValue)\"\n (keydown)=\"onKeyDown($event, checkboxValue)\"\n>\n <span\n [attr.aria-checked]=\"checkboxValue\"\n [attr.aria-label]=\"label\"\n [id]=\"id\"\n class=\"po-checkbox\"\n role=\"checkbox\"\n [attr.aria-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n >\n </span>\n\n <label #checkboxLabel [for]=\"id\" class=\"po-checkbox-label\" tabindex=\"-1\">\n {{ label }}\n </label>\n</div>\n" }]
|
|
14346
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabel: [{
|
|
14347
|
-
type: ViewChild,
|
|
14348
|
-
args: ['checkboxLabel', { static: true }]
|
|
14349
|
-
}] });
|
|
14350
|
-
})();
|
|
14351
|
-
|
|
14352
|
-
class PoCheckboxModule {
|
|
14353
|
-
}
|
|
14354
|
-
PoCheckboxModule.ɵfac = function PoCheckboxModule_Factory(t) { return new (t || PoCheckboxModule)(); };
|
|
14355
|
-
PoCheckboxModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoCheckboxModule });
|
|
14356
|
-
PoCheckboxModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule] });
|
|
14357
|
-
(function () {
|
|
14358
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxModule, [{
|
|
14359
|
-
type: NgModule,
|
|
14360
|
-
args: [{
|
|
14361
|
-
declarations: [PoCheckboxComponent],
|
|
14362
|
-
imports: [CommonModule, FormsModule],
|
|
14363
|
-
exports: [PoCheckboxComponent]
|
|
14364
|
-
}]
|
|
14365
|
-
}], null, null);
|
|
14366
|
-
})();
|
|
14367
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoCheckboxModule, { declarations: [PoCheckboxComponent], imports: [CommonModule, FormsModule], exports: [PoCheckboxComponent] }); })();
|
|
14368
|
-
|
|
14369
14470
|
const _c0$X = function (a0, a1) { return { "po-clickable": a0, "po-table-icon-disabled": a1 }; };
|
|
14370
14471
|
/**
|
|
14371
14472
|
* @docsPrivate
|
|
@@ -15026,7 +15127,7 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
15026
15127
|
let _t;
|
|
15027
15128
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
15028
15129
|
}
|
|
15029
|
-
}, 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", "ngModelChange", "p-change"], [1, "po-container-arrows-columns-manager"], [4, "ngFor", "ngForOf"], [1, "po-table-column-manager-footer"], ["p-
|
|
15130
|
+
}, 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", 1, "po-checkbox-group-column-manager", 3, "ngModel", "p-options", "ngModelChange", "p-change"], [1, "po-container-arrows-columns-manager"], [4, "ngFor", "ngForOf"], [1, "po-table-column-manager-footer"], ["p-kind", "tertiary", 1, "po-table-column-manager-footer-restore", 3, "p-label", "p-click"], [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 PoTableColumnManagerComponent_Template(rf, ctx) {
|
|
15030
15131
|
if (rf & 1) {
|
|
15031
15132
|
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template, 13, 6, "po-popover", 0);
|
|
15032
15133
|
}
|
|
@@ -15037,7 +15138,7 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
15037
15138
|
(function () {
|
|
15038
15139
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableColumnManagerComponent, [{
|
|
15039
15140
|
type: Component,
|
|
15040
|
-
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-checkbox-group\n name=\"visibleColumns\"\n [(ngModel)]=\"visibleColumns\"\n p-columns=\"1\"\n [p-options]=\"columnsOptions\"\n (p-change)=\"checkChanges($event, false)\"\n >\n </po-checkbox-group>\n\n <div class=\"po-container-arrows-columns-manager\">\n <div *ngFor=\"let option of columnsOptions\">\n <div class=\"po-container-icons-arrows-columns-manager\">\n <po-button\n [p-tooltip]=\"literals.up\"\n p-tooltip-position=\"left\"\n [p-disabled]=\"verifyArrowDisabled(option, 'up')\"\n (click)=\"changePosition(option, 'up'); $event.stopPropagation()\"\n p-kind=\"tertiary\"\n p-icon=\"po-icon po-icon-arrow-up\"\n
|
|
15141
|
+
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-checkbox-group\n class=\"po-checkbox-group-column-manager\"\n name=\"visibleColumns\"\n [(ngModel)]=\"visibleColumns\"\n p-columns=\"1\"\n [p-options]=\"columnsOptions\"\n (p-change)=\"checkChanges($event, false)\"\n >\n </po-checkbox-group>\n\n <div class=\"po-container-arrows-columns-manager\">\n <div *ngFor=\"let option of columnsOptions\">\n <div class=\"po-container-icons-arrows-columns-manager\">\n <po-button\n [p-tooltip]=\"literals.up\"\n p-tooltip-position=\"left\"\n [p-disabled]=\"verifyArrowDisabled(option, 'up')\"\n (click)=\"changePosition(option, 'up'); $event.stopPropagation()\"\n p-kind=\"tertiary\"\n p-icon=\"po-icon po-icon-arrow-up\"\n >\n </po-button>\n <po-button\n [p-tooltip]=\"literals.down\"\n p-tooltip-position=\"top\"\n [p-disabled]=\"verifyArrowDisabled(option, 'down')\"\n (click)=\"changePosition(option, 'down'); $event.stopPropagation()\"\n p-kind=\"tertiary\"\n p-icon=\"po-icon po-icon-arrow-down\"\n >\n </po-button>\n </div>\n </div>\n </div>\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" }]
|
|
15041
15142
|
}], function () { return [{ type: i0.Renderer2 }, { type: PoLanguageService }]; }, { popover: [{
|
|
15042
15143
|
type: ViewChild,
|
|
15043
15144
|
args: [PoPopoverComponent]
|
|
@@ -15268,6 +15369,16 @@ class PoTableBaseComponent {
|
|
|
15268
15369
|
* > Esta definição não se aplica aos itens filhos, os mesmos possuem comportamento independente do item pai.
|
|
15269
15370
|
*/
|
|
15270
15371
|
this.singleSelect = false;
|
|
15372
|
+
/**
|
|
15373
|
+
* @description
|
|
15374
|
+
*
|
|
15375
|
+
* Permite selecionar um item da tabela clicando na linha.
|
|
15376
|
+
*
|
|
15377
|
+
* > Caso haja necessidade de selecionar o item apenas via radio ou checkbox, deve-se definir esta propriedade como `false`.
|
|
15378
|
+
*
|
|
15379
|
+
* @default `true`
|
|
15380
|
+
*/
|
|
15381
|
+
this.selectableEntireLine = true;
|
|
15271
15382
|
/**
|
|
15272
15383
|
* @optional
|
|
15273
15384
|
*
|
|
@@ -15721,6 +15832,9 @@ class PoTableBaseComponent {
|
|
|
15721
15832
|
this.emitSelectEvents(row);
|
|
15722
15833
|
this.configAfterSelectRow(this.items, row);
|
|
15723
15834
|
}
|
|
15835
|
+
hasSelectableRow() {
|
|
15836
|
+
return this.selectable && this.selectableEntireLine;
|
|
15837
|
+
}
|
|
15724
15838
|
selectDetailRow(row) {
|
|
15725
15839
|
this.emitSelectEvents(row);
|
|
15726
15840
|
}
|
|
@@ -15918,7 +16032,7 @@ class PoTableBaseComponent {
|
|
|
15918
16032
|
}
|
|
15919
16033
|
}
|
|
15920
16034
|
PoTableBaseComponent.ɵfac = function PoTableBaseComponent_Factory(t) { return new (t || PoTableBaseComponent)(i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoTableService)); };
|
|
15921
|
-
PoTableBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTableBaseComponent, inputs: { hideTextOverflow: ["p-hide-text-overflow", "hideTextOverflow"], hideColumnsManager: ["p-hide-columns-manager", "hideColumnsManager"], autoCollapse: ["p-auto-collapse", "autoCollapse"], loadingShowMore: ["p-loading-show-more", "loadingShowMore"], sort: ["p-sort", "sort"], showMoreDisabled: ["p-show-more-disabled", "showMoreDisabled"], striped: ["p-striped", "striped"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], singleSelect: ["p-single-select", "singleSelect"], actionRight: ["p-actions-right", "actionRight"], maxColumns: ["p-max-columns", "maxColumns"], items: ["p-items", "items"], columns: ["p-columns", "columns"], container: ["p-container", "container"], height: ["p-height", "height"], hideDetail: ["p-hide-detail", "hideDetail"], literals: ["p-literals", "literals"], loading: ["p-loading", "loading"], actions: ["p-actions", "actions"], selectable: ["p-selectable", "selectable"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], infiniteScrollDistance: ["p-infinite-scroll-distance", "infiniteScrollDistance"], serviceApi: ["p-service-api", "serviceApi"] }, outputs: { allSelected: "p-all-selected", allUnselected: "p-all-unselected", collapsed: "p-collapsed", expanded: "p-expanded", selected: "p-selected", showMore: "p-show-more", sortBy: "p-sort-by", unselected: "p-unselected", changeVisibleColumns: "p-change-visible-columns", columnRestoreManager: "p-restore-column-manager" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
16035
|
+
PoTableBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTableBaseComponent, inputs: { hideTextOverflow: ["p-hide-text-overflow", "hideTextOverflow"], hideColumnsManager: ["p-hide-columns-manager", "hideColumnsManager"], autoCollapse: ["p-auto-collapse", "autoCollapse"], loadingShowMore: ["p-loading-show-more", "loadingShowMore"], sort: ["p-sort", "sort"], showMoreDisabled: ["p-show-more-disabled", "showMoreDisabled"], striped: ["p-striped", "striped"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], singleSelect: ["p-single-select", "singleSelect"], selectableEntireLine: ["p-selectable-entire-line", "selectableEntireLine"], actionRight: ["p-actions-right", "actionRight"], maxColumns: ["p-max-columns", "maxColumns"], items: ["p-items", "items"], columns: ["p-columns", "columns"], container: ["p-container", "container"], height: ["p-height", "height"], hideDetail: ["p-hide-detail", "hideDetail"], literals: ["p-literals", "literals"], loading: ["p-loading", "loading"], actions: ["p-actions", "actions"], selectable: ["p-selectable", "selectable"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], infiniteScrollDistance: ["p-infinite-scroll-distance", "infiniteScrollDistance"], serviceApi: ["p-service-api", "serviceApi"] }, outputs: { allSelected: "p-all-selected", allUnselected: "p-all-unselected", collapsed: "p-collapsed", expanded: "p-expanded", selected: "p-selected", showMore: "p-show-more", sortBy: "p-sort-by", unselected: "p-unselected", changeVisibleColumns: "p-change-visible-columns", columnRestoreManager: "p-restore-column-manager" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
15922
16036
|
__decorate([
|
|
15923
16037
|
InputBoolean()
|
|
15924
16038
|
], PoTableBaseComponent.prototype, "hideTextOverflow", void 0);
|
|
@@ -15946,6 +16060,9 @@ __decorate([
|
|
|
15946
16060
|
__decorate([
|
|
15947
16061
|
InputBoolean()
|
|
15948
16062
|
], PoTableBaseComponent.prototype, "singleSelect", void 0);
|
|
16063
|
+
__decorate([
|
|
16064
|
+
InputBoolean()
|
|
16065
|
+
], PoTableBaseComponent.prototype, "selectableEntireLine", void 0);
|
|
15949
16066
|
__decorate([
|
|
15950
16067
|
InputBoolean()
|
|
15951
16068
|
], PoTableBaseComponent.prototype, "actionRight", void 0);
|
|
@@ -15979,6 +16096,9 @@ __decorate([
|
|
|
15979
16096
|
}], singleSelect: [{
|
|
15980
16097
|
type: Input,
|
|
15981
16098
|
args: ['p-single-select']
|
|
16099
|
+
}], selectableEntireLine: [{
|
|
16100
|
+
type: Input,
|
|
16101
|
+
args: ['p-selectable-entire-line']
|
|
15982
16102
|
}], actionRight: [{
|
|
15983
16103
|
type: Input,
|
|
15984
16104
|
args: ['p-actions-right']
|
|
@@ -16900,17 +17020,21 @@ PoTableSubtitleFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
16900
17020
|
})();
|
|
16901
17021
|
|
|
16902
17022
|
const _c0$W = ["noColumnsHeader"];
|
|
16903
|
-
const _c1$q = ["
|
|
16904
|
-
const _c2$b = ["
|
|
16905
|
-
const _c3$6 = ["
|
|
16906
|
-
const _c4$4 = ["
|
|
16907
|
-
const _c5$2 = ["
|
|
16908
|
-
const _c6$2 = ["
|
|
16909
|
-
const _c7$1 = ["
|
|
16910
|
-
const _c8$1 = ["
|
|
16911
|
-
const _c9 = ["
|
|
16912
|
-
const _c10 = ["
|
|
16913
|
-
const _c11 = ["
|
|
17023
|
+
const _c1$q = ["noColumnsHeaderFixed"];
|
|
17024
|
+
const _c2$b = ["popup"];
|
|
17025
|
+
const _c3$6 = ["tableFooter"];
|
|
17026
|
+
const _c4$4 = ["tableWrapper"];
|
|
17027
|
+
const _c5$2 = ["poTableTbody"];
|
|
17028
|
+
const _c6$2 = ["poTableThead"];
|
|
17029
|
+
const _c7$1 = ["poTableTbodyVirtual"];
|
|
17030
|
+
const _c8$1 = ["columnManager"];
|
|
17031
|
+
const _c9 = ["columnManagerFixed"];
|
|
17032
|
+
const _c10 = ["columnActionLeft"];
|
|
17033
|
+
const _c11 = ["columnActionLeftFixed"];
|
|
17034
|
+
const _c12 = ["columnManagerTarget"];
|
|
17035
|
+
const _c13 = ["columnManagerTargetFixed"];
|
|
17036
|
+
const _c14 = ["actionsIconElement"];
|
|
17037
|
+
const _c15 = ["actionsElement"];
|
|
16914
17038
|
function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) {
|
|
16915
17039
|
if (rf & 1) {
|
|
16916
17040
|
i0.ɵɵelementContainer(0);
|
|
@@ -17115,31 +17239,31 @@ function PoTableComponent_ng_template_4_th_6_Template(rf, ctx) {
|
|
|
17115
17239
|
i0.ɵɵproperty("ngIf", ctx_r45.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
17116
17240
|
}
|
|
17117
17241
|
}
|
|
17118
|
-
function
|
|
17242
|
+
function PoTableComponent_ng_template_4_th_7_ng_container_2_Template(rf, ctx) {
|
|
17119
17243
|
if (rf & 1) {
|
|
17120
17244
|
i0.ɵɵelementContainer(0);
|
|
17121
17245
|
}
|
|
17122
17246
|
}
|
|
17123
|
-
const
|
|
17247
|
+
const _c16 = function (a0) { return { $implicit: a0 }; };
|
|
17124
17248
|
function PoTableComponent_ng_template_4_th_7_Template(rf, ctx) {
|
|
17125
17249
|
if (rf & 1) {
|
|
17126
|
-
const
|
|
17127
|
-
i0.ɵɵelementStart(0, "th", 54
|
|
17128
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
17129
|
-
i0.ɵɵelementStart(
|
|
17130
|
-
i0.ɵɵtemplate(
|
|
17250
|
+
const _r62 = i0.ɵɵgetCurrentView();
|
|
17251
|
+
i0.ɵɵelementStart(0, "th", 54);
|
|
17252
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r62); const column_r58 = restoredCtx.$implicit; const ctx_r61 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r61.sortColumn(column_r58)); });
|
|
17253
|
+
i0.ɵɵelementStart(1, "div", 55);
|
|
17254
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_7_ng_container_2_Template, 1, 0, "ng-container", 56);
|
|
17131
17255
|
i0.ɵɵelementEnd()();
|
|
17132
17256
|
}
|
|
17133
17257
|
if (rf & 2) {
|
|
17134
17258
|
const column_r58 = ctx.$implicit;
|
|
17135
17259
|
const ctx_r46 = i0.ɵɵnextContext(2);
|
|
17136
17260
|
const _r17 = i0.ɵɵreference(19);
|
|
17137
|
-
i0.ɵɵstyleProp("width", column_r58.width)("max-width", column_r58.width)("min-width", column_r58.width
|
|
17261
|
+
i0.ɵɵstyleProp("width", column_r58.width)("max-width", column_r58.width)("min-width", column_r58.width);
|
|
17138
17262
|
i0.ɵɵclassProp("po-clickable", ctx_r46.sort && column_r58.sortable !== false || ctx_r46.hasService)("po-table-header-subtitle", column_r58.type === "subtitle");
|
|
17139
|
-
i0.ɵɵadvance(
|
|
17263
|
+
i0.ɵɵadvance(1);
|
|
17140
17264
|
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r46.height)("po-table-header-flex-right", column_r58.type === "currency" || column_r58.type === "number")("po-table-header-flex-center", column_r58.type === "subtitle");
|
|
17141
17265
|
i0.ɵɵadvance(1);
|
|
17142
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18,
|
|
17266
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c16, column_r58));
|
|
17143
17267
|
}
|
|
17144
17268
|
}
|
|
17145
17269
|
function PoTableComponent_ng_template_4_th_8_Template(rf, ctx) {
|
|
@@ -17158,17 +17282,17 @@ function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) {
|
|
|
17158
17282
|
}
|
|
17159
17283
|
function PoTableComponent_ng_template_4_th_10_Template(rf, ctx) {
|
|
17160
17284
|
if (rf & 1) {
|
|
17161
|
-
const
|
|
17162
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
17163
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
17285
|
+
const _r66 = i0.ɵɵgetCurrentView();
|
|
17286
|
+
i0.ɵɵelementStart(0, "th", null, 57)(2, "div")(3, "button", 58, 59);
|
|
17287
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r66); const ctx_r65 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r65.onOpenColumnManager()); });
|
|
17164
17288
|
i0.ɵɵelementEnd()()();
|
|
17165
17289
|
}
|
|
17166
17290
|
if (rf & 2) {
|
|
17167
|
-
const
|
|
17291
|
+
const _r63 = i0.ɵɵreference(1);
|
|
17168
17292
|
const ctx_r49 = i0.ɵɵnextContext(2);
|
|
17169
17293
|
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r49.isSingleAction || !ctx_r49.actionRight)("po-table-header-column-manager-border", !ctx_r49.height && ctx_r49.container)("po-table-header-single-action", ctx_r49.isSingleAction && ctx_r49.actionRight);
|
|
17170
17294
|
i0.ɵɵadvance(2);
|
|
17171
|
-
i0.ɵɵstyleProp("width", ctx_r49.height && ctx_r49.visibleActions.length ?
|
|
17295
|
+
i0.ɵɵstyleProp("width", ctx_r49.height && ctx_r49.visibleActions.length ? _r63.offsetWidth : undefined, "px");
|
|
17172
17296
|
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r49.height && ctx_r49.container)("po-table-header-column-manager-fixed-inner", ctx_r49.height);
|
|
17173
17297
|
i0.ɵɵadvance(1);
|
|
17174
17298
|
i0.ɵɵproperty("p-tooltip", ctx_r49.literals.columnsManager);
|
|
@@ -17182,7 +17306,7 @@ function PoTableComponent_ng_template_4_Template(rf, ctx) {
|
|
|
17182
17306
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_th_4_Template, 1, 0, "th", 41);
|
|
17183
17307
|
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 2, 4, "th", 42);
|
|
17184
17308
|
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th", 43);
|
|
17185
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template,
|
|
17309
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 3, 20, "th", 44);
|
|
17186
17310
|
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th", 41);
|
|
17187
17311
|
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th", 45);
|
|
17188
17312
|
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 14, "th", 46);
|
|
@@ -17213,16 +17337,16 @@ function PoTableComponent_ng_template_4_Template(rf, ctx) {
|
|
|
17213
17337
|
}
|
|
17214
17338
|
function PoTableComponent_ng_template_6_tbody_3_Template(rf, ctx) {
|
|
17215
17339
|
if (rf & 1) {
|
|
17216
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
17340
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
17217
17341
|
i0.ɵɵtext(4);
|
|
17218
17342
|
i0.ɵɵelementEnd()()()();
|
|
17219
17343
|
}
|
|
17220
17344
|
if (rf & 2) {
|
|
17221
|
-
const
|
|
17345
|
+
const ctx_r68 = i0.ɵɵnextContext(2);
|
|
17222
17346
|
i0.ɵɵadvance(2);
|
|
17223
|
-
i0.ɵɵproperty("colSpan",
|
|
17347
|
+
i0.ɵɵproperty("colSpan", ctx_r68.columnCount);
|
|
17224
17348
|
i0.ɵɵadvance(2);
|
|
17225
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17349
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r68.literals.noData, " ");
|
|
17226
17350
|
}
|
|
17227
17351
|
}
|
|
17228
17352
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_ng_container_1_Template(rf, ctx) {
|
|
@@ -17233,69 +17357,69 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_ng_container
|
|
|
17233
17357
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_Template(rf, ctx) {
|
|
17234
17358
|
if (rf & 1) {
|
|
17235
17359
|
i0.ɵɵelementStart(0, "td", 47);
|
|
17236
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container",
|
|
17360
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
17237
17361
|
i0.ɵɵelementEnd();
|
|
17238
17362
|
}
|
|
17239
17363
|
if (rf & 2) {
|
|
17240
|
-
const
|
|
17241
|
-
const
|
|
17364
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17365
|
+
const ctx_r73 = i0.ɵɵnextContext(3);
|
|
17242
17366
|
const _r13 = i0.ɵɵreference(15);
|
|
17243
17367
|
const _r15 = i0.ɵɵreference(17);
|
|
17244
17368
|
i0.ɵɵadvance(1);
|
|
17245
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17369
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r73.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c16, row_r71));
|
|
17246
17370
|
}
|
|
17247
17371
|
}
|
|
17248
17372
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
17249
|
-
const
|
|
17373
|
+
const _c17 = function (a0, a1) { return { row: a0, rowIndex: a1 }; };
|
|
17250
17374
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template(rf, ctx) {
|
|
17251
17375
|
if (rf & 1) {
|
|
17252
|
-
const
|
|
17253
|
-
i0.ɵɵelementStart(0, "td",
|
|
17254
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
17255
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template",
|
|
17376
|
+
const _r89 = i0.ɵɵgetCurrentView();
|
|
17377
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17378
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r89); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r87 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r87.toggleDetail(row_r71)); });
|
|
17379
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17256
17380
|
i0.ɵɵelementEnd();
|
|
17257
17381
|
}
|
|
17258
17382
|
if (rf & 2) {
|
|
17259
|
-
const
|
|
17260
|
-
const
|
|
17261
|
-
const
|
|
17383
|
+
const ctx_r90 = i0.ɵɵnextContext();
|
|
17384
|
+
const row_r71 = ctx_r90.$implicit;
|
|
17385
|
+
const rowIndex_r72 = ctx_r90.index;
|
|
17262
17386
|
i0.ɵɵnextContext(3);
|
|
17263
17387
|
const _r11 = i0.ɵɵreference(13);
|
|
17264
17388
|
i0.ɵɵadvance(1);
|
|
17265
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
17389
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r71, rowIndex_r72));
|
|
17266
17390
|
}
|
|
17267
17391
|
}
|
|
17268
17392
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
17269
17393
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_Template(rf, ctx) {
|
|
17270
17394
|
if (rf & 1) {
|
|
17271
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template",
|
|
17395
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17272
17396
|
}
|
|
17273
17397
|
if (rf & 2) {
|
|
17274
|
-
const
|
|
17275
|
-
const
|
|
17276
|
-
const
|
|
17398
|
+
const ctx_r92 = i0.ɵɵnextContext();
|
|
17399
|
+
const row_r71 = ctx_r92.$implicit;
|
|
17400
|
+
const rowIndex_r72 = ctx_r92.index;
|
|
17277
17401
|
i0.ɵɵnextContext(3);
|
|
17278
17402
|
const _r23 = i0.ɵɵreference(25);
|
|
17279
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
17403
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r71, rowIndex_r72));
|
|
17280
17404
|
}
|
|
17281
17405
|
}
|
|
17282
17406
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
17283
17407
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template(rf, ctx) {
|
|
17284
17408
|
if (rf & 1) {
|
|
17285
|
-
const
|
|
17286
|
-
i0.ɵɵelementStart(0, "td",
|
|
17287
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
17288
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template",
|
|
17409
|
+
const _r96 = i0.ɵɵgetCurrentView();
|
|
17410
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17411
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r96); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r94 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r94.toggleDetail(row_r71)); });
|
|
17412
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17289
17413
|
i0.ɵɵelementEnd();
|
|
17290
17414
|
}
|
|
17291
17415
|
if (rf & 2) {
|
|
17292
|
-
const
|
|
17293
|
-
const
|
|
17294
|
-
const
|
|
17416
|
+
const ctx_r97 = i0.ɵɵnextContext();
|
|
17417
|
+
const row_r71 = ctx_r97.$implicit;
|
|
17418
|
+
const rowIndex_r72 = ctx_r97.index;
|
|
17295
17419
|
i0.ɵɵnextContext(3);
|
|
17296
17420
|
const _r11 = i0.ɵɵreference(13);
|
|
17297
17421
|
i0.ɵɵadvance(1);
|
|
17298
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
17422
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r71, rowIndex_r72));
|
|
17299
17423
|
}
|
|
17300
17424
|
}
|
|
17301
17425
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) {
|
|
@@ -17306,15 +17430,15 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_ng_co
|
|
|
17306
17430
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_Template(rf, ctx) {
|
|
17307
17431
|
if (rf & 1) {
|
|
17308
17432
|
i0.ɵɵelementStart(0, "span");
|
|
17309
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container",
|
|
17433
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
17310
17434
|
i0.ɵɵelementEnd();
|
|
17311
17435
|
}
|
|
17312
17436
|
if (rf & 2) {
|
|
17313
|
-
const
|
|
17314
|
-
const
|
|
17315
|
-
const
|
|
17437
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17438
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17439
|
+
const ctx_r100 = i0.ɵɵnextContext(3);
|
|
17316
17440
|
i0.ɵɵadvance(1);
|
|
17317
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17441
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r100.getTemplate(column_r98))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c16, ctx_r100.getCellData(row_r71, column_r98)));
|
|
17318
17442
|
}
|
|
17319
17443
|
}
|
|
17320
17444
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) {
|
|
@@ -17322,19 +17446,19 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_ng_co
|
|
|
17322
17446
|
i0.ɵɵelementContainer(0);
|
|
17323
17447
|
}
|
|
17324
17448
|
}
|
|
17325
|
-
const
|
|
17449
|
+
const _c18 = function (a0, a1) { return { row: a0, column: a1 }; };
|
|
17326
17450
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_Template(rf, ctx) {
|
|
17327
17451
|
if (rf & 1) {
|
|
17328
17452
|
i0.ɵɵelementStart(0, "span");
|
|
17329
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container",
|
|
17453
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
17330
17454
|
i0.ɵɵelementEnd();
|
|
17331
17455
|
}
|
|
17332
17456
|
if (rf & 2) {
|
|
17333
|
-
const
|
|
17334
|
-
const
|
|
17335
|
-
const
|
|
17457
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17458
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17459
|
+
const ctx_r101 = i0.ɵɵnextContext(3);
|
|
17336
17460
|
i0.ɵɵadvance(1);
|
|
17337
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17461
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r101.tableCellTemplate == null ? null : ctx_r101.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c18, row_r71, column_r98));
|
|
17338
17462
|
}
|
|
17339
17463
|
}
|
|
17340
17464
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_4_Template(rf, ctx) {
|
|
@@ -17344,11 +17468,11 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_4_Templ
|
|
|
17344
17468
|
i0.ɵɵelementEnd();
|
|
17345
17469
|
}
|
|
17346
17470
|
if (rf & 2) {
|
|
17347
|
-
const
|
|
17348
|
-
const
|
|
17349
|
-
const
|
|
17471
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17472
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17473
|
+
const ctx_r102 = i0.ɵɵnextContext(3);
|
|
17350
17474
|
i0.ɵɵadvance(1);
|
|
17351
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17475
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r102.getBooleanLabel(ctx_r102.getCellData(row_r71, column_r98), column_r98), " ");
|
|
17352
17476
|
}
|
|
17353
17477
|
}
|
|
17354
17478
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_5_Template(rf, ctx) {
|
|
@@ -17359,11 +17483,11 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_5_Templ
|
|
|
17359
17483
|
i0.ɵɵelementEnd();
|
|
17360
17484
|
}
|
|
17361
17485
|
if (rf & 2) {
|
|
17362
|
-
const
|
|
17363
|
-
const
|
|
17364
|
-
const
|
|
17486
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17487
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17488
|
+
const ctx_r103 = i0.ɵɵnextContext(3);
|
|
17365
17489
|
i0.ɵɵadvance(1);
|
|
17366
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
17490
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r103.getCellData(row_r71, column_r98), column_r98.format, "symbol", "1.2-2"), " ");
|
|
17367
17491
|
}
|
|
17368
17492
|
}
|
|
17369
17493
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_6_Template(rf, ctx) {
|
|
@@ -17374,11 +17498,11 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_6_Templ
|
|
|
17374
17498
|
i0.ɵɵelementEnd();
|
|
17375
17499
|
}
|
|
17376
17500
|
if (rf & 2) {
|
|
17377
|
-
const
|
|
17378
|
-
const
|
|
17379
|
-
const
|
|
17501
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17502
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17503
|
+
const ctx_r104 = i0.ɵɵnextContext(3);
|
|
17380
17504
|
i0.ɵɵadvance(1);
|
|
17381
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
17505
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r104.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy"), " ");
|
|
17382
17506
|
}
|
|
17383
17507
|
}
|
|
17384
17508
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_7_Template(rf, ctx) {
|
|
@@ -17389,11 +17513,11 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_7_Templ
|
|
|
17389
17513
|
i0.ɵɵelementEnd();
|
|
17390
17514
|
}
|
|
17391
17515
|
if (rf & 2) {
|
|
17392
|
-
const
|
|
17393
|
-
const
|
|
17394
|
-
const
|
|
17516
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17517
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17518
|
+
const ctx_r105 = i0.ɵɵnextContext(3);
|
|
17395
17519
|
i0.ɵɵadvance(1);
|
|
17396
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
17520
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r105.getCellData(row_r71, column_r98), column_r98.format || "HH:mm:ss.ffffff"), " ");
|
|
17397
17521
|
}
|
|
17398
17522
|
}
|
|
17399
17523
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_8_Template(rf, ctx) {
|
|
@@ -17404,11 +17528,11 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_8_Templ
|
|
|
17404
17528
|
i0.ɵɵelementEnd();
|
|
17405
17529
|
}
|
|
17406
17530
|
if (rf & 2) {
|
|
17407
|
-
const
|
|
17408
|
-
const
|
|
17409
|
-
const
|
|
17531
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17532
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17533
|
+
const ctx_r106 = i0.ɵɵnextContext(3);
|
|
17410
17534
|
i0.ɵɵadvance(1);
|
|
17411
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
17535
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r106.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
17412
17536
|
}
|
|
17413
17537
|
}
|
|
17414
17538
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_9_Template(rf, ctx) {
|
|
@@ -17418,64 +17542,64 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_9_Templ
|
|
|
17418
17542
|
i0.ɵɵelementEnd();
|
|
17419
17543
|
}
|
|
17420
17544
|
if (rf & 2) {
|
|
17421
|
-
const
|
|
17422
|
-
const
|
|
17423
|
-
const
|
|
17545
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17546
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17547
|
+
const ctx_r107 = i0.ɵɵnextContext(3);
|
|
17424
17548
|
i0.ɵɵadvance(1);
|
|
17425
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17549
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r107.formatNumber(ctx_r107.getCellData(row_r71, column_r98), column_r98.format), " ");
|
|
17426
17550
|
}
|
|
17427
17551
|
}
|
|
17428
17552
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) {
|
|
17429
17553
|
if (rf & 1) {
|
|
17430
|
-
const
|
|
17431
|
-
i0.ɵɵelementStart(0, "po-table-column-link",
|
|
17432
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
17554
|
+
const _r133 = i0.ɵɵgetCurrentView();
|
|
17555
|
+
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
17556
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(_r133); const column_r98 = i0.ɵɵnextContext().$implicit; const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r131 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r131.onClickLink($event, row_r71, column_r98)); });
|
|
17433
17557
|
i0.ɵɵelementEnd();
|
|
17434
17558
|
}
|
|
17435
17559
|
if (rf & 2) {
|
|
17436
|
-
const
|
|
17437
|
-
const
|
|
17438
|
-
const
|
|
17439
|
-
i0.ɵɵproperty("p-action",
|
|
17560
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17561
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17562
|
+
const ctx_r108 = i0.ɵɵnextContext(3);
|
|
17563
|
+
i0.ɵɵproperty("p-action", column_r98.action)("p-disabled", ctx_r108.checkDisabled(row_r71, column_r98))("p-link", row_r71[column_r98.link])("p-row", row_r71)("p-value", ctx_r108.getCellData(row_r71, column_r98));
|
|
17440
17564
|
}
|
|
17441
17565
|
}
|
|
17442
17566
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) {
|
|
17443
17567
|
if (rf & 1) {
|
|
17444
|
-
i0.ɵɵelement(0, "po-table-column-icon",
|
|
17568
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
17445
17569
|
}
|
|
17446
17570
|
if (rf & 2) {
|
|
17447
|
-
const
|
|
17448
|
-
const
|
|
17449
|
-
const
|
|
17450
|
-
i0.ɵɵproperty("p-column",
|
|
17571
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17572
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17573
|
+
const ctx_r109 = i0.ɵɵnextContext(3);
|
|
17574
|
+
i0.ɵɵproperty("p-column", column_r98)("p-icons", ctx_r109.getColumnIcons(row_r71, column_r98))("p-row", row_r71);
|
|
17451
17575
|
}
|
|
17452
17576
|
}
|
|
17453
17577
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_12_Template(rf, ctx) {
|
|
17454
17578
|
if (rf & 1) {
|
|
17455
17579
|
i0.ɵɵelementStart(0, "span");
|
|
17456
|
-
i0.ɵɵelement(1, "po-table-subtitle-circle",
|
|
17580
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
17457
17581
|
i0.ɵɵelementEnd();
|
|
17458
17582
|
}
|
|
17459
17583
|
if (rf & 2) {
|
|
17460
|
-
const
|
|
17461
|
-
const
|
|
17462
|
-
const
|
|
17584
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17585
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17586
|
+
const ctx_r110 = i0.ɵɵnextContext(3);
|
|
17463
17587
|
i0.ɵɵadvance(1);
|
|
17464
|
-
i0.ɵɵproperty("p-subtitle",
|
|
17588
|
+
i0.ɵɵproperty("p-subtitle", ctx_r110.getSubtitleColumn(row_r71, column_r98));
|
|
17465
17589
|
}
|
|
17466
17590
|
}
|
|
17467
17591
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_13_Template(rf, ctx) {
|
|
17468
17592
|
if (rf & 1) {
|
|
17469
17593
|
i0.ɵɵelementStart(0, "span");
|
|
17470
|
-
i0.ɵɵelement(1, "po-table-column-label",
|
|
17594
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
17471
17595
|
i0.ɵɵelementEnd();
|
|
17472
17596
|
}
|
|
17473
17597
|
if (rf & 2) {
|
|
17474
|
-
const
|
|
17475
|
-
const
|
|
17476
|
-
const
|
|
17598
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17599
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17600
|
+
const ctx_r111 = i0.ɵɵnextContext(3);
|
|
17477
17601
|
i0.ɵɵadvance(1);
|
|
17478
|
-
i0.ɵɵproperty("p-value",
|
|
17602
|
+
i0.ɵɵproperty("p-value", ctx_r111.getColumnLabel(row_r71, column_r98));
|
|
17479
17603
|
}
|
|
17480
17604
|
}
|
|
17481
17605
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_14_Template(rf, ctx) {
|
|
@@ -17485,46 +17609,46 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_14_Temp
|
|
|
17485
17609
|
i0.ɵɵelementEnd();
|
|
17486
17610
|
}
|
|
17487
17611
|
if (rf & 2) {
|
|
17488
|
-
const
|
|
17489
|
-
const
|
|
17490
|
-
const
|
|
17612
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17613
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17614
|
+
const ctx_r112 = i0.ɵɵnextContext(3);
|
|
17491
17615
|
i0.ɵɵadvance(1);
|
|
17492
|
-
i0.ɵɵtextInterpolate(
|
|
17616
|
+
i0.ɵɵtextInterpolate(ctx_r112.getCellData(row_r71, column_r98));
|
|
17493
17617
|
}
|
|
17494
17618
|
}
|
|
17495
17619
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template(rf, ctx) {
|
|
17496
17620
|
if (rf & 1) {
|
|
17497
|
-
const
|
|
17498
|
-
i0.ɵɵelementStart(0, "td",
|
|
17499
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
17500
|
-
i0.ɵɵelementStart(1, "div",
|
|
17501
|
-
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(
|
|
17502
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_Template, 2, 4, "span",
|
|
17503
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_Template, 2, 5, "span",
|
|
17504
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_4_Template, 2, 1, "span",
|
|
17505
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_5_Template, 3, 6, "span",
|
|
17506
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_6_Template, 3, 4, "span",
|
|
17507
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_7_Template, 3, 4, "span",
|
|
17508
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_8_Template, 3, 4, "span",
|
|
17509
|
-
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_9_Template, 2, 1, "span",
|
|
17510
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template, 1, 5, "po-table-column-link",
|
|
17511
|
-
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon",
|
|
17512
|
-
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_12_Template, 2, 1, "span",
|
|
17513
|
-
i0.ɵɵtemplate(13, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_13_Template, 2, 1, "span",
|
|
17514
|
-
i0.ɵɵtemplate(14, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_14_Template, 2, 1, "span",
|
|
17621
|
+
const _r146 = i0.ɵɵgetCurrentView();
|
|
17622
|
+
i0.ɵɵelementStart(0, "td", 73);
|
|
17623
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r146); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r145 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r145.hasSelectableRow() ? ctx_r145.selectRow(row_r71) : "javascript:;"); });
|
|
17624
|
+
i0.ɵɵelementStart(1, "div", 74);
|
|
17625
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r146); const column_r98 = restoredCtx.$implicit; const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r148 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r148.tooltipMouseEnter($event, column_r98, row_r71)); })("mouseleave", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r146); const ctx_r150 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r150.tooltipMouseLeave()); });
|
|
17626
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
17627
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
17628
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
17629
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
17630
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
17631
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
17632
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
17633
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
17634
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template, 1, 5, "po-table-column-link", 76);
|
|
17635
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon", 77);
|
|
17636
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
17637
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
17638
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
17515
17639
|
i0.ɵɵelementEnd()();
|
|
17516
17640
|
}
|
|
17517
17641
|
if (rf & 2) {
|
|
17518
|
-
const
|
|
17519
|
-
const
|
|
17520
|
-
const
|
|
17521
|
-
i0.ɵɵstyleProp("width",
|
|
17522
|
-
i0.ɵɵclassProp("po-table-column",
|
|
17523
|
-
i0.ɵɵproperty("ngClass",
|
|
17642
|
+
const column_r98 = ctx.$implicit;
|
|
17643
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17644
|
+
const ctx_r77 = i0.ɵɵnextContext(3);
|
|
17645
|
+
i0.ɵɵstyleProp("width", column_r98.width)("max-width", column_r98.width)("min-width", column_r98.width);
|
|
17646
|
+
i0.ɵɵclassProp("po-table-column", column_r98.type !== "icon")("po-table-column-right", column_r98.type === "currency" || column_r98.type === "number")("po-table-column-center", column_r98.type === "subtitle")("po-table-column-icons", column_r98.type === "icon");
|
|
17647
|
+
i0.ɵɵproperty("ngClass", ctx_r77.getClassColor(row_r71, column_r98));
|
|
17524
17648
|
i0.ɵɵadvance(1);
|
|
17525
|
-
i0.ɵɵstyleProp("width",
|
|
17526
|
-
i0.ɵɵclassProp("po-table-body-ellipsis",
|
|
17527
|
-
i0.ɵɵproperty("ngSwitch",
|
|
17649
|
+
i0.ɵɵstyleProp("width", ctx_r77.noColumnsHeaderFixed == null ? null : ctx_r77.noColumnsHeaderFixed.nativeElement.parentElement == null ? null : ctx_r77.noColumnsHeaderFixed.nativeElement.parentElement.offsetWidth, "px");
|
|
17650
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r77.hideTextOverflow);
|
|
17651
|
+
i0.ɵɵproperty("ngSwitch", column_r98.type)("p-tooltip", ctx_r77.tooltipText);
|
|
17528
17652
|
i0.ɵɵadvance(1);
|
|
17529
17653
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
17530
17654
|
i0.ɵɵadvance(1);
|
|
@@ -17554,149 +17678,149 @@ function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template(rf,
|
|
|
17554
17678
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
17555
17679
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template(rf, ctx) {
|
|
17556
17680
|
if (rf & 1) {
|
|
17557
|
-
const
|
|
17558
|
-
i0.ɵɵelementStart(0, "td",
|
|
17559
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
17560
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template",
|
|
17681
|
+
const _r155 = i0.ɵɵgetCurrentView();
|
|
17682
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17683
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r155); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r153 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r153.toggleDetail(row_r71)); });
|
|
17684
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17561
17685
|
i0.ɵɵelementEnd();
|
|
17562
17686
|
}
|
|
17563
17687
|
if (rf & 2) {
|
|
17564
|
-
const
|
|
17565
|
-
const
|
|
17566
|
-
const
|
|
17688
|
+
const ctx_r156 = i0.ɵɵnextContext();
|
|
17689
|
+
const row_r71 = ctx_r156.$implicit;
|
|
17690
|
+
const rowIndex_r72 = ctx_r156.index;
|
|
17567
17691
|
i0.ɵɵnextContext(3);
|
|
17568
17692
|
const _r11 = i0.ɵɵreference(13);
|
|
17569
17693
|
i0.ɵɵadvance(1);
|
|
17570
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
17694
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r71, rowIndex_r72));
|
|
17571
17695
|
}
|
|
17572
17696
|
}
|
|
17573
17697
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
17574
17698
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_Template(rf, ctx) {
|
|
17575
17699
|
if (rf & 1) {
|
|
17576
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template",
|
|
17700
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17577
17701
|
}
|
|
17578
17702
|
if (rf & 2) {
|
|
17579
|
-
const
|
|
17580
|
-
const
|
|
17581
|
-
const
|
|
17703
|
+
const ctx_r158 = i0.ɵɵnextContext();
|
|
17704
|
+
const row_r71 = ctx_r158.$implicit;
|
|
17705
|
+
const rowIndex_r72 = ctx_r158.index;
|
|
17582
17706
|
i0.ɵɵnextContext(3);
|
|
17583
17707
|
const _r23 = i0.ɵɵreference(25);
|
|
17584
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
17708
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r71, rowIndex_r72));
|
|
17585
17709
|
}
|
|
17586
17710
|
}
|
|
17587
17711
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_ng_container_9_Template(rf, ctx) {
|
|
17588
17712
|
if (rf & 1) {
|
|
17589
17713
|
i0.ɵɵelementContainerStart(0);
|
|
17590
|
-
i0.ɵɵelement(1, "td",
|
|
17714
|
+
i0.ɵɵelement(1, "td", 83);
|
|
17591
17715
|
i0.ɵɵelementContainerEnd();
|
|
17592
17716
|
}
|
|
17593
17717
|
}
|
|
17594
17718
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_10_Template(rf, ctx) {
|
|
17595
17719
|
if (rf & 1) {
|
|
17596
|
-
i0.ɵɵelement(0, "td",
|
|
17720
|
+
i0.ɵɵelement(0, "td", 84);
|
|
17597
17721
|
}
|
|
17598
17722
|
}
|
|
17599
17723
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
17600
|
-
const
|
|
17724
|
+
const _c19 = function (a0, a1) { return { $implicit: a0, rowIndex: a1 }; };
|
|
17601
17725
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_Template(rf, ctx) {
|
|
17602
17726
|
if (rf & 1) {
|
|
17603
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
17604
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template",
|
|
17727
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
17728
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
17605
17729
|
i0.ɵɵelementEnd()();
|
|
17606
17730
|
}
|
|
17607
17731
|
if (rf & 2) {
|
|
17608
|
-
const
|
|
17609
|
-
const
|
|
17610
|
-
const
|
|
17611
|
-
const
|
|
17732
|
+
const ctx_r160 = i0.ɵɵnextContext();
|
|
17733
|
+
const row_r71 = ctx_r160.$implicit;
|
|
17734
|
+
const rowIndex_r72 = ctx_r160.index;
|
|
17735
|
+
const ctx_r82 = i0.ɵɵnextContext(3);
|
|
17612
17736
|
i0.ɵɵadvance(1);
|
|
17613
|
-
i0.ɵɵproperty("colSpan",
|
|
17737
|
+
i0.ɵɵproperty("colSpan", ctx_r82.columnCountForMasterDetail);
|
|
17614
17738
|
i0.ɵɵadvance(1);
|
|
17615
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17739
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r82.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c19, row_r71, rowIndex_r72));
|
|
17616
17740
|
}
|
|
17617
17741
|
}
|
|
17618
17742
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template(rf, ctx) {
|
|
17619
17743
|
if (rf & 1) {
|
|
17620
|
-
const
|
|
17621
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
17622
|
-
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(
|
|
17744
|
+
const _r162 = i0.ɵɵgetCurrentView();
|
|
17745
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
17746
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r162); const ctx_r161 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r161.selectDetailRow($event)); });
|
|
17623
17747
|
i0.ɵɵelementEnd()()();
|
|
17624
17748
|
}
|
|
17625
17749
|
if (rf & 2) {
|
|
17626
|
-
const
|
|
17627
|
-
const
|
|
17750
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17751
|
+
const ctx_r83 = i0.ɵɵnextContext(3);
|
|
17628
17752
|
i0.ɵɵadvance(1);
|
|
17629
|
-
i0.ɵɵproperty("colSpan",
|
|
17753
|
+
i0.ɵɵproperty("colSpan", ctx_r83.columnCountForMasterDetail);
|
|
17630
17754
|
i0.ɵɵadvance(1);
|
|
17631
|
-
i0.ɵɵproperty("p-selectable",
|
|
17755
|
+
i0.ɵɵproperty("p-selectable", ctx_r83.selectable && !ctx_r83.detailHideSelect)("p-detail", ctx_r83.columnMasterDetail.detail)("p-items", row_r71[ctx_r83.nameColumnDetail]);
|
|
17632
17756
|
}
|
|
17633
17757
|
}
|
|
17634
17758
|
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_Template(rf, ctx) {
|
|
17635
17759
|
if (rf & 1) {
|
|
17636
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
17760
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
17637
17761
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_Template, 2, 4, "td", 40);
|
|
17638
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template, 2, 5, "td",
|
|
17762
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
17639
17763
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_Template, 1, 5, null, 23);
|
|
17640
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template, 2, 5, "td",
|
|
17641
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template, 15, 33, "td",
|
|
17642
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template, 2, 5, "td",
|
|
17764
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
17765
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template, 15, 33, "td", 69);
|
|
17766
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
17643
17767
|
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_Template, 1, 5, null, 23);
|
|
17644
17768
|
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_4_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
17645
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_10_Template, 1, 0, "td",
|
|
17769
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
17646
17770
|
i0.ɵɵelementEnd();
|
|
17647
17771
|
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
17648
17772
|
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
17649
17773
|
i0.ɵɵelementEnd();
|
|
17650
17774
|
}
|
|
17651
17775
|
if (rf & 2) {
|
|
17652
|
-
const
|
|
17653
|
-
const
|
|
17654
|
-
const
|
|
17776
|
+
const row_r71 = ctx.$implicit;
|
|
17777
|
+
const rowIndex_r72 = ctx.index;
|
|
17778
|
+
const ctx_r70 = i0.ɵɵnextContext(3);
|
|
17655
17779
|
i0.ɵɵadvance(1);
|
|
17656
|
-
i0.ɵɵclassProp("po-table-row-active",
|
|
17780
|
+
i0.ɵɵclassProp("po-table-row-active", row_r71.$selected || row_r71.$selected === null && ctx_r70.selectable);
|
|
17657
17781
|
i0.ɵɵadvance(1);
|
|
17658
|
-
i0.ɵɵproperty("ngIf",
|
|
17782
|
+
i0.ɵɵproperty("ngIf", ctx_r70.selectable);
|
|
17659
17783
|
i0.ɵɵadvance(1);
|
|
17660
|
-
i0.ɵɵproperty("ngIf",
|
|
17784
|
+
i0.ɵɵproperty("ngIf", ctx_r70.columnMasterDetail && !ctx_r70.hideDetail && !ctx_r70.hasRowTemplate);
|
|
17661
17785
|
i0.ɵɵadvance(1);
|
|
17662
|
-
i0.ɵɵproperty("ngIf", !
|
|
17786
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction));
|
|
17663
17787
|
i0.ɵɵadvance(1);
|
|
17664
|
-
i0.ɵɵproperty("ngIf",
|
|
17788
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplate && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17665
17789
|
i0.ɵɵadvance(1);
|
|
17666
|
-
i0.ɵɵproperty("ngForOf",
|
|
17790
|
+
i0.ɵɵproperty("ngForOf", ctx_r70.mainColumns)("ngForTrackBy", ctx_r70.trackBy);
|
|
17667
17791
|
i0.ɵɵadvance(1);
|
|
17668
|
-
i0.ɵɵproperty("ngIf",
|
|
17792
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17669
17793
|
i0.ɵɵadvance(1);
|
|
17670
|
-
i0.ɵɵproperty("ngIf",
|
|
17794
|
+
i0.ɵɵproperty("ngIf", ctx_r70.actionRight);
|
|
17671
17795
|
i0.ɵɵadvance(1);
|
|
17672
|
-
i0.ɵɵproperty("ngIf", !
|
|
17796
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction) && !ctx_r70.hideColumnsManager);
|
|
17673
17797
|
i0.ɵɵadvance(1);
|
|
17674
|
-
i0.ɵɵproperty("ngIf", !
|
|
17798
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.hasVisibleActions && !ctx_r70.hideColumnsManager && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17675
17799
|
i0.ɵɵadvance(1);
|
|
17676
|
-
i0.ɵɵproperty("ngIf",
|
|
17800
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.hasRowTemplate && row_r71.$showDetail && ctx_r70.isShowRowTemplate(row_r71, rowIndex_r72));
|
|
17677
17801
|
i0.ɵɵadvance(1);
|
|
17678
|
-
i0.ɵɵproperty("ngIf",
|
|
17802
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.isShowMasterDetail(row_r71));
|
|
17679
17803
|
}
|
|
17680
17804
|
}
|
|
17681
17805
|
function PoTableComponent_ng_template_6_ng_container_4_Template(rf, ctx) {
|
|
17682
17806
|
if (rf & 1) {
|
|
17683
17807
|
i0.ɵɵelementContainerStart(0);
|
|
17684
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_Template, 13, 14, "tbody",
|
|
17808
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_Template, 13, 14, "tbody", 66);
|
|
17685
17809
|
i0.ɵɵelementContainerEnd();
|
|
17686
17810
|
}
|
|
17687
17811
|
if (rf & 2) {
|
|
17688
|
-
const
|
|
17812
|
+
const ctx_r69 = i0.ɵɵnextContext(2);
|
|
17689
17813
|
i0.ɵɵadvance(1);
|
|
17690
|
-
i0.ɵɵproperty("cdkVirtualForOf",
|
|
17814
|
+
i0.ɵɵproperty("cdkVirtualForOf", ctx_r69.items)("cdkVirtualForTrackBy", ctx_r69.trackBy);
|
|
17691
17815
|
}
|
|
17692
17816
|
}
|
|
17693
17817
|
function PoTableComponent_ng_template_6_Template(rf, ctx) {
|
|
17694
17818
|
if (rf & 1) {
|
|
17695
|
-
const
|
|
17696
|
-
i0.ɵɵelementStart(0, "cdk-virtual-scroll-viewport",
|
|
17697
|
-
i0.ɵɵlistener("scroll", function PoTableComponent_ng_template_6_Template_cdk_virtual_scroll_viewport_scroll_0_listener() { i0.ɵɵrestoreView(
|
|
17819
|
+
const _r165 = i0.ɵɵgetCurrentView();
|
|
17820
|
+
i0.ɵɵelementStart(0, "cdk-virtual-scroll-viewport", 60, 61);
|
|
17821
|
+
i0.ɵɵlistener("scroll", function PoTableComponent_ng_template_6_Template_cdk_virtual_scroll_viewport_scroll_0_listener() { i0.ɵɵrestoreView(_r165); const ctx_r164 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r164.syncronizeHorizontalScroll()); });
|
|
17698
17822
|
i0.ɵɵelementStart(2, "table", 39);
|
|
17699
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_tbody_3_Template, 5, 2, "tbody",
|
|
17823
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_tbody_3_Template, 5, 2, "tbody", 62);
|
|
17700
17824
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_Template, 2, 2, "ng-container", 23);
|
|
17701
17825
|
i0.ɵɵelementEnd()();
|
|
17702
17826
|
}
|
|
@@ -17714,14 +17838,14 @@ function PoTableComponent_ng_template_6_Template(rf, ctx) {
|
|
|
17714
17838
|
}
|
|
17715
17839
|
function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template(rf, ctx) {
|
|
17716
17840
|
if (rf & 1) {
|
|
17717
|
-
const
|
|
17841
|
+
const _r178 = i0.ɵɵgetCurrentView();
|
|
17718
17842
|
i0.ɵɵelementStart(0, "po-checkbox", 49);
|
|
17719
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_click_0_listener() { i0.ɵɵrestoreView(
|
|
17843
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_click_0_listener() { i0.ɵɵrestoreView(_r178); const ctx_r177 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r177.selectAllRows()); })("p-change", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_p_change_0_listener() { i0.ɵɵrestoreView(_r178); const ctx_r179 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r179.selectAllRows()); })("ngModelChange", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r178); const ctx_r180 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r180.selectAll = $event); });
|
|
17720
17844
|
i0.ɵɵelementEnd();
|
|
17721
17845
|
}
|
|
17722
17846
|
if (rf & 2) {
|
|
17723
|
-
const
|
|
17724
|
-
i0.ɵɵproperty("ngModel",
|
|
17847
|
+
const ctx_r176 = i0.ɵɵnextContext(3);
|
|
17848
|
+
i0.ɵɵproperty("ngModel", ctx_r176.selectAll);
|
|
17725
17849
|
}
|
|
17726
17850
|
}
|
|
17727
17851
|
function PoTableComponent_ng_template_8_th_3_Template(rf, ctx) {
|
|
@@ -17731,11 +17855,11 @@ function PoTableComponent_ng_template_8_th_3_Template(rf, ctx) {
|
|
|
17731
17855
|
i0.ɵɵelementEnd()();
|
|
17732
17856
|
}
|
|
17733
17857
|
if (rf & 2) {
|
|
17734
|
-
const
|
|
17858
|
+
const ctx_r166 = i0.ɵɵnextContext(2);
|
|
17735
17859
|
i0.ɵɵadvance(1);
|
|
17736
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
17860
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r166.height);
|
|
17737
17861
|
i0.ɵɵadvance(1);
|
|
17738
|
-
i0.ɵɵproperty("ngIf", !
|
|
17862
|
+
i0.ɵɵproperty("ngIf", !ctx_r166.hideSelectAll);
|
|
17739
17863
|
}
|
|
17740
17864
|
}
|
|
17741
17865
|
function PoTableComponent_ng_template_8_th_4_Template(rf, ctx) {
|
|
@@ -17745,11 +17869,11 @@ function PoTableComponent_ng_template_8_th_4_Template(rf, ctx) {
|
|
|
17745
17869
|
}
|
|
17746
17870
|
function PoTableComponent_ng_template_8_th_5_Template(rf, ctx) {
|
|
17747
17871
|
if (rf & 1) {
|
|
17748
|
-
i0.ɵɵelement(0, "th", null,
|
|
17872
|
+
i0.ɵɵelement(0, "th", null, 88);
|
|
17749
17873
|
}
|
|
17750
17874
|
if (rf & 2) {
|
|
17751
|
-
const
|
|
17752
|
-
i0.ɵɵclassProp("po-table-header-master-detail", !
|
|
17875
|
+
const ctx_r168 = i0.ɵɵnextContext(2);
|
|
17876
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r168.isSingleAction)("po-table-header-single-action", ctx_r168.isSingleAction);
|
|
17753
17877
|
}
|
|
17754
17878
|
}
|
|
17755
17879
|
function PoTableComponent_ng_template_8_th_6_ng_container_2_Template(rf, ctx) {
|
|
@@ -17759,42 +17883,42 @@ function PoTableComponent_ng_template_8_th_6_ng_container_2_Template(rf, ctx) {
|
|
|
17759
17883
|
}
|
|
17760
17884
|
function PoTableComponent_ng_template_8_th_6_Template(rf, ctx) {
|
|
17761
17885
|
if (rf & 1) {
|
|
17762
|
-
i0.ɵɵelementStart(0, "th", 52,
|
|
17886
|
+
i0.ɵɵelementStart(0, "th", 52, 89);
|
|
17763
17887
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_6_ng_container_2_Template, 1, 0, "ng-container", 32);
|
|
17764
17888
|
i0.ɵɵelementEnd();
|
|
17765
17889
|
}
|
|
17766
17890
|
if (rf & 2) {
|
|
17767
|
-
const
|
|
17891
|
+
const ctx_r169 = i0.ɵɵnextContext(2);
|
|
17768
17892
|
const _r19 = i0.ɵɵreference(21);
|
|
17769
17893
|
const _r21 = i0.ɵɵreference(23);
|
|
17770
17894
|
i0.ɵɵadvance(2);
|
|
17771
|
-
i0.ɵɵproperty("ngIf",
|
|
17895
|
+
i0.ɵɵproperty("ngIf", ctx_r169.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
17772
17896
|
}
|
|
17773
17897
|
}
|
|
17774
|
-
function
|
|
17898
|
+
function PoTableComponent_ng_template_8_th_7_ng_container_2_Template(rf, ctx) {
|
|
17775
17899
|
if (rf & 1) {
|
|
17776
17900
|
i0.ɵɵelementContainer(0);
|
|
17777
17901
|
}
|
|
17778
17902
|
}
|
|
17779
17903
|
function PoTableComponent_ng_template_8_th_7_Template(rf, ctx) {
|
|
17780
17904
|
if (rf & 1) {
|
|
17781
|
-
const
|
|
17782
|
-
i0.ɵɵelementStart(0, "th", 54
|
|
17783
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
17784
|
-
i0.ɵɵelementStart(
|
|
17785
|
-
i0.ɵɵtemplate(
|
|
17905
|
+
const _r188 = i0.ɵɵgetCurrentView();
|
|
17906
|
+
i0.ɵɵelementStart(0, "th", 54);
|
|
17907
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r188); const column_r184 = restoredCtx.$implicit; const ctx_r187 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r187.sortColumn(column_r184)); });
|
|
17908
|
+
i0.ɵɵelementStart(1, "div", 55);
|
|
17909
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_7_ng_container_2_Template, 1, 0, "ng-container", 56);
|
|
17786
17910
|
i0.ɵɵelementEnd()();
|
|
17787
17911
|
}
|
|
17788
17912
|
if (rf & 2) {
|
|
17789
|
-
const
|
|
17790
|
-
const
|
|
17913
|
+
const column_r184 = ctx.$implicit;
|
|
17914
|
+
const ctx_r170 = i0.ɵɵnextContext(2);
|
|
17791
17915
|
const _r17 = i0.ɵɵreference(19);
|
|
17792
|
-
i0.ɵɵstyleProp("width",
|
|
17793
|
-
i0.ɵɵclassProp("po-clickable",
|
|
17794
|
-
i0.ɵɵadvance(2);
|
|
17795
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r171.height)("po-table-header-flex-right", column_r185.type === "currency" || column_r185.type === "number")("po-table-header-flex-center", column_r185.type === "subtitle");
|
|
17916
|
+
i0.ɵɵstyleProp("width", column_r184.width)("max-width", column_r184.width)("min-width", column_r184.width);
|
|
17917
|
+
i0.ɵɵclassProp("po-clickable", ctx_r170.sort && column_r184.sortable !== false || ctx_r170.hasService)("po-table-header-subtitle", column_r184.type === "subtitle");
|
|
17796
17918
|
i0.ɵɵadvance(1);
|
|
17797
|
-
i0.ɵɵ
|
|
17919
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r170.height)("po-table-header-flex-right", column_r184.type === "currency" || column_r184.type === "number")("po-table-header-flex-center", column_r184.type === "subtitle");
|
|
17920
|
+
i0.ɵɵadvance(1);
|
|
17921
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c16, column_r184));
|
|
17798
17922
|
}
|
|
17799
17923
|
}
|
|
17800
17924
|
function PoTableComponent_ng_template_8_th_8_Template(rf, ctx) {
|
|
@@ -17807,41 +17931,41 @@ function PoTableComponent_ng_template_8_th_9_Template(rf, ctx) {
|
|
|
17807
17931
|
i0.ɵɵelement(0, "th");
|
|
17808
17932
|
}
|
|
17809
17933
|
if (rf & 2) {
|
|
17810
|
-
const
|
|
17811
|
-
i0.ɵɵclassProp("po-table-header-single-action",
|
|
17934
|
+
const ctx_r172 = i0.ɵɵnextContext(2);
|
|
17935
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r172.isSingleAction)("po-table-header-actions", !ctx_r172.isSingleAction);
|
|
17812
17936
|
}
|
|
17813
17937
|
}
|
|
17814
17938
|
function PoTableComponent_ng_template_8_th_10_Template(rf, ctx) {
|
|
17815
17939
|
if (rf & 1) {
|
|
17816
|
-
const
|
|
17817
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
17818
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
17940
|
+
const _r192 = i0.ɵɵgetCurrentView();
|
|
17941
|
+
i0.ɵɵelementStart(0, "th", null, 90)(2, "div")(3, "button", 58, 91);
|
|
17942
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r192); const ctx_r191 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r191.onOpenColumnManager()); });
|
|
17819
17943
|
i0.ɵɵelementEnd()()();
|
|
17820
17944
|
}
|
|
17821
17945
|
if (rf & 2) {
|
|
17822
|
-
const
|
|
17823
|
-
const
|
|
17824
|
-
i0.ɵɵclassProp("po-table-header-column-manager", !
|
|
17946
|
+
const _r189 = i0.ɵɵreference(1);
|
|
17947
|
+
const ctx_r173 = i0.ɵɵnextContext(2);
|
|
17948
|
+
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r173.isSingleAction || !ctx_r173.actionRight)("po-table-header-column-manager-border", !ctx_r173.height && ctx_r173.container)("po-table-header-single-action", ctx_r173.isSingleAction && ctx_r173.actionRight);
|
|
17825
17949
|
i0.ɵɵadvance(2);
|
|
17826
|
-
i0.ɵɵstyleProp("width",
|
|
17827
|
-
i0.ɵɵclassProp("po-table-header-column-manager-border",
|
|
17950
|
+
i0.ɵɵstyleProp("width", ctx_r173.height && ctx_r173.visibleActions.length ? _r189.offsetWidth : undefined, "px");
|
|
17951
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r173.height && ctx_r173.container)("po-table-header-column-manager-fixed-inner", ctx_r173.height);
|
|
17828
17952
|
i0.ɵɵadvance(1);
|
|
17829
|
-
i0.ɵɵproperty("p-tooltip",
|
|
17830
|
-
i0.ɵɵattribute("aria-label",
|
|
17953
|
+
i0.ɵɵproperty("p-tooltip", ctx_r173.literals.columnsManager);
|
|
17954
|
+
i0.ɵɵattribute("aria-label", ctx_r173.literals.columnsManager);
|
|
17831
17955
|
}
|
|
17832
17956
|
}
|
|
17833
17957
|
function PoTableComponent_ng_template_8_tbody_11_Template(rf, ctx) {
|
|
17834
17958
|
if (rf & 1) {
|
|
17835
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
17959
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
17836
17960
|
i0.ɵɵtext(4);
|
|
17837
17961
|
i0.ɵɵelementEnd()()()();
|
|
17838
17962
|
}
|
|
17839
17963
|
if (rf & 2) {
|
|
17840
|
-
const
|
|
17964
|
+
const ctx_r174 = i0.ɵɵnextContext(2);
|
|
17841
17965
|
i0.ɵɵadvance(2);
|
|
17842
|
-
i0.ɵɵproperty("colSpan",
|
|
17966
|
+
i0.ɵɵproperty("colSpan", ctx_r174.columnCount);
|
|
17843
17967
|
i0.ɵɵadvance(2);
|
|
17844
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17968
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r174.literals.noData, " ");
|
|
17845
17969
|
}
|
|
17846
17970
|
}
|
|
17847
17971
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template(rf, ctx) {
|
|
@@ -17852,68 +17976,68 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_containe
|
|
|
17852
17976
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template(rf, ctx) {
|
|
17853
17977
|
if (rf & 1) {
|
|
17854
17978
|
i0.ɵɵelementStart(0, "td", 47);
|
|
17855
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container",
|
|
17979
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
17856
17980
|
i0.ɵɵelementEnd();
|
|
17857
17981
|
}
|
|
17858
17982
|
if (rf & 2) {
|
|
17859
|
-
const
|
|
17860
|
-
const
|
|
17983
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
17984
|
+
const ctx_r196 = i0.ɵɵnextContext(3);
|
|
17861
17985
|
const _r13 = i0.ɵɵreference(15);
|
|
17862
17986
|
const _r15 = i0.ɵɵreference(17);
|
|
17863
17987
|
i0.ɵɵadvance(1);
|
|
17864
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17988
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r196.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c16, row_r194));
|
|
17865
17989
|
}
|
|
17866
17990
|
}
|
|
17867
17991
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
17868
17992
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template(rf, ctx) {
|
|
17869
17993
|
if (rf & 1) {
|
|
17870
|
-
const
|
|
17871
|
-
i0.ɵɵelementStart(0, "td",
|
|
17872
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
17873
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template",
|
|
17994
|
+
const _r212 = i0.ɵɵgetCurrentView();
|
|
17995
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17996
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r212); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r210 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r210.toggleDetail(row_r194)); });
|
|
17997
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17874
17998
|
i0.ɵɵelementEnd();
|
|
17875
17999
|
}
|
|
17876
18000
|
if (rf & 2) {
|
|
17877
|
-
const
|
|
17878
|
-
const
|
|
17879
|
-
const
|
|
18001
|
+
const ctx_r213 = i0.ɵɵnextContext();
|
|
18002
|
+
const row_r194 = ctx_r213.$implicit;
|
|
18003
|
+
const rowIndex_r195 = ctx_r213.index;
|
|
17880
18004
|
i0.ɵɵnextContext(3);
|
|
17881
18005
|
const _r11 = i0.ɵɵreference(13);
|
|
17882
18006
|
i0.ɵɵadvance(1);
|
|
17883
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
18007
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r194, rowIndex_r195));
|
|
17884
18008
|
}
|
|
17885
18009
|
}
|
|
17886
18010
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
17887
18011
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template(rf, ctx) {
|
|
17888
18012
|
if (rf & 1) {
|
|
17889
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template",
|
|
18013
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17890
18014
|
}
|
|
17891
18015
|
if (rf & 2) {
|
|
17892
|
-
const
|
|
17893
|
-
const
|
|
17894
|
-
const
|
|
18016
|
+
const ctx_r215 = i0.ɵɵnextContext();
|
|
18017
|
+
const row_r194 = ctx_r215.$implicit;
|
|
18018
|
+
const rowIndex_r195 = ctx_r215.index;
|
|
17895
18019
|
i0.ɵɵnextContext(3);
|
|
17896
18020
|
const _r23 = i0.ɵɵreference(25);
|
|
17897
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
18021
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r194, rowIndex_r195));
|
|
17898
18022
|
}
|
|
17899
18023
|
}
|
|
17900
18024
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
17901
18025
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template(rf, ctx) {
|
|
17902
18026
|
if (rf & 1) {
|
|
17903
|
-
const
|
|
17904
|
-
i0.ɵɵelementStart(0, "td",
|
|
17905
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
17906
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template",
|
|
18027
|
+
const _r219 = i0.ɵɵgetCurrentView();
|
|
18028
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
18029
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r219); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r217 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r217.toggleDetail(row_r194)); });
|
|
18030
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17907
18031
|
i0.ɵɵelementEnd();
|
|
17908
18032
|
}
|
|
17909
18033
|
if (rf & 2) {
|
|
17910
|
-
const
|
|
17911
|
-
const
|
|
17912
|
-
const
|
|
18034
|
+
const ctx_r220 = i0.ɵɵnextContext();
|
|
18035
|
+
const row_r194 = ctx_r220.$implicit;
|
|
18036
|
+
const rowIndex_r195 = ctx_r220.index;
|
|
17913
18037
|
i0.ɵɵnextContext(3);
|
|
17914
18038
|
const _r11 = i0.ɵɵreference(13);
|
|
17915
18039
|
i0.ɵɵadvance(1);
|
|
17916
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
18040
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r194, rowIndex_r195));
|
|
17917
18041
|
}
|
|
17918
18042
|
}
|
|
17919
18043
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) {
|
|
@@ -17924,15 +18048,15 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_c
|
|
|
17924
18048
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template(rf, ctx) {
|
|
17925
18049
|
if (rf & 1) {
|
|
17926
18050
|
i0.ɵɵelementStart(0, "span");
|
|
17927
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container",
|
|
18051
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
17928
18052
|
i0.ɵɵelementEnd();
|
|
17929
18053
|
}
|
|
17930
18054
|
if (rf & 2) {
|
|
17931
|
-
const
|
|
17932
|
-
const
|
|
17933
|
-
const
|
|
18055
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18056
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18057
|
+
const ctx_r223 = i0.ɵɵnextContext(3);
|
|
17934
18058
|
i0.ɵɵadvance(1);
|
|
17935
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
18059
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r223.getTemplate(column_r221))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c16, ctx_r223.getCellData(row_r194, column_r221)));
|
|
17936
18060
|
}
|
|
17937
18061
|
}
|
|
17938
18062
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) {
|
|
@@ -17943,15 +18067,15 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_c
|
|
|
17943
18067
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template(rf, ctx) {
|
|
17944
18068
|
if (rf & 1) {
|
|
17945
18069
|
i0.ɵɵelementStart(0, "span");
|
|
17946
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container",
|
|
18070
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
17947
18071
|
i0.ɵɵelementEnd();
|
|
17948
18072
|
}
|
|
17949
18073
|
if (rf & 2) {
|
|
17950
|
-
const
|
|
17951
|
-
const
|
|
17952
|
-
const
|
|
18074
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18075
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18076
|
+
const ctx_r224 = i0.ɵɵnextContext(3);
|
|
17953
18077
|
i0.ɵɵadvance(1);
|
|
17954
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
18078
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r224.tableCellTemplate == null ? null : ctx_r224.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c18, row_r194, column_r221));
|
|
17955
18079
|
}
|
|
17956
18080
|
}
|
|
17957
18081
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template(rf, ctx) {
|
|
@@ -17961,11 +18085,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Temp
|
|
|
17961
18085
|
i0.ɵɵelementEnd();
|
|
17962
18086
|
}
|
|
17963
18087
|
if (rf & 2) {
|
|
17964
|
-
const
|
|
17965
|
-
const
|
|
17966
|
-
const
|
|
18088
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18089
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18090
|
+
const ctx_r225 = i0.ɵɵnextContext(3);
|
|
17967
18091
|
i0.ɵɵadvance(1);
|
|
17968
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
18092
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r225.getBooleanLabel(ctx_r225.getCellData(row_r194, column_r221), column_r221), " ");
|
|
17969
18093
|
}
|
|
17970
18094
|
}
|
|
17971
18095
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template(rf, ctx) {
|
|
@@ -17976,11 +18100,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Temp
|
|
|
17976
18100
|
i0.ɵɵelementEnd();
|
|
17977
18101
|
}
|
|
17978
18102
|
if (rf & 2) {
|
|
17979
|
-
const
|
|
17980
|
-
const
|
|
17981
|
-
const
|
|
18103
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18104
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18105
|
+
const ctx_r226 = i0.ɵɵnextContext(3);
|
|
17982
18106
|
i0.ɵɵadvance(1);
|
|
17983
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
18107
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r226.getCellData(row_r194, column_r221), column_r221.format, "symbol", "1.2-2"), " ");
|
|
17984
18108
|
}
|
|
17985
18109
|
}
|
|
17986
18110
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template(rf, ctx) {
|
|
@@ -17991,11 +18115,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Temp
|
|
|
17991
18115
|
i0.ɵɵelementEnd();
|
|
17992
18116
|
}
|
|
17993
18117
|
if (rf & 2) {
|
|
17994
|
-
const
|
|
17995
|
-
const
|
|
17996
|
-
const
|
|
18118
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18119
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18120
|
+
const ctx_r227 = i0.ɵɵnextContext(3);
|
|
17997
18121
|
i0.ɵɵadvance(1);
|
|
17998
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
18122
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r227.getCellData(row_r194, column_r221), column_r221.format || "dd/MM/yyyy"), " ");
|
|
17999
18123
|
}
|
|
18000
18124
|
}
|
|
18001
18125
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template(rf, ctx) {
|
|
@@ -18006,11 +18130,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Temp
|
|
|
18006
18130
|
i0.ɵɵelementEnd();
|
|
18007
18131
|
}
|
|
18008
18132
|
if (rf & 2) {
|
|
18009
|
-
const
|
|
18010
|
-
const
|
|
18011
|
-
const
|
|
18133
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18134
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18135
|
+
const ctx_r228 = i0.ɵɵnextContext(3);
|
|
18012
18136
|
i0.ɵɵadvance(1);
|
|
18013
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
18137
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r228.getCellData(row_r194, column_r221), column_r221.format || "HH:mm:ss.ffffff"), " ");
|
|
18014
18138
|
}
|
|
18015
18139
|
}
|
|
18016
18140
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template(rf, ctx) {
|
|
@@ -18021,11 +18145,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Temp
|
|
|
18021
18145
|
i0.ɵɵelementEnd();
|
|
18022
18146
|
}
|
|
18023
18147
|
if (rf & 2) {
|
|
18024
|
-
const
|
|
18025
|
-
const
|
|
18026
|
-
const
|
|
18148
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18149
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18150
|
+
const ctx_r229 = i0.ɵɵnextContext(3);
|
|
18027
18151
|
i0.ɵɵadvance(1);
|
|
18028
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
18152
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r229.getCellData(row_r194, column_r221), column_r221.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
18029
18153
|
}
|
|
18030
18154
|
}
|
|
18031
18155
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template(rf, ctx) {
|
|
@@ -18035,64 +18159,64 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Temp
|
|
|
18035
18159
|
i0.ɵɵelementEnd();
|
|
18036
18160
|
}
|
|
18037
18161
|
if (rf & 2) {
|
|
18038
|
-
const
|
|
18039
|
-
const
|
|
18040
|
-
const
|
|
18162
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18163
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18164
|
+
const ctx_r230 = i0.ɵɵnextContext(3);
|
|
18041
18165
|
i0.ɵɵadvance(1);
|
|
18042
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
18166
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r230.formatNumber(ctx_r230.getCellData(row_r194, column_r221), column_r221.format), " ");
|
|
18043
18167
|
}
|
|
18044
18168
|
}
|
|
18045
18169
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) {
|
|
18046
18170
|
if (rf & 1) {
|
|
18047
|
-
const
|
|
18048
|
-
i0.ɵɵelementStart(0, "po-table-column-link",
|
|
18049
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
18171
|
+
const _r256 = i0.ɵɵgetCurrentView();
|
|
18172
|
+
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
18173
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(_r256); const column_r221 = i0.ɵɵnextContext().$implicit; const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r254 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r254.onClickLink($event, row_r194, column_r221)); });
|
|
18050
18174
|
i0.ɵɵelementEnd();
|
|
18051
18175
|
}
|
|
18052
18176
|
if (rf & 2) {
|
|
18053
|
-
const
|
|
18054
|
-
const
|
|
18055
|
-
const
|
|
18056
|
-
i0.ɵɵproperty("p-action",
|
|
18177
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18178
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18179
|
+
const ctx_r231 = i0.ɵɵnextContext(3);
|
|
18180
|
+
i0.ɵɵproperty("p-action", column_r221.action)("p-disabled", ctx_r231.checkDisabled(row_r194, column_r221))("p-link", row_r194[column_r221.link])("p-row", row_r194)("p-value", ctx_r231.getCellData(row_r194, column_r221));
|
|
18057
18181
|
}
|
|
18058
18182
|
}
|
|
18059
18183
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) {
|
|
18060
18184
|
if (rf & 1) {
|
|
18061
|
-
i0.ɵɵelement(0, "po-table-column-icon",
|
|
18185
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
18062
18186
|
}
|
|
18063
18187
|
if (rf & 2) {
|
|
18064
|
-
const
|
|
18065
|
-
const
|
|
18066
|
-
const
|
|
18067
|
-
i0.ɵɵproperty("p-column",
|
|
18188
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18189
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18190
|
+
const ctx_r232 = i0.ɵɵnextContext(3);
|
|
18191
|
+
i0.ɵɵproperty("p-column", column_r221)("p-icons", ctx_r232.getColumnIcons(row_r194, column_r221))("p-row", row_r194);
|
|
18068
18192
|
}
|
|
18069
18193
|
}
|
|
18070
18194
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template(rf, ctx) {
|
|
18071
18195
|
if (rf & 1) {
|
|
18072
18196
|
i0.ɵɵelementStart(0, "span");
|
|
18073
|
-
i0.ɵɵelement(1, "po-table-subtitle-circle",
|
|
18197
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
18074
18198
|
i0.ɵɵelementEnd();
|
|
18075
18199
|
}
|
|
18076
18200
|
if (rf & 2) {
|
|
18077
|
-
const
|
|
18078
|
-
const
|
|
18079
|
-
const
|
|
18201
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18202
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18203
|
+
const ctx_r233 = i0.ɵɵnextContext(3);
|
|
18080
18204
|
i0.ɵɵadvance(1);
|
|
18081
|
-
i0.ɵɵproperty("p-subtitle",
|
|
18205
|
+
i0.ɵɵproperty("p-subtitle", ctx_r233.getSubtitleColumn(row_r194, column_r221));
|
|
18082
18206
|
}
|
|
18083
18207
|
}
|
|
18084
18208
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template(rf, ctx) {
|
|
18085
18209
|
if (rf & 1) {
|
|
18086
18210
|
i0.ɵɵelementStart(0, "span");
|
|
18087
|
-
i0.ɵɵelement(1, "po-table-column-label",
|
|
18211
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
18088
18212
|
i0.ɵɵelementEnd();
|
|
18089
18213
|
}
|
|
18090
18214
|
if (rf & 2) {
|
|
18091
|
-
const
|
|
18092
|
-
const
|
|
18093
|
-
const
|
|
18215
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18216
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18217
|
+
const ctx_r234 = i0.ɵɵnextContext(3);
|
|
18094
18218
|
i0.ɵɵadvance(1);
|
|
18095
|
-
i0.ɵɵproperty("p-value",
|
|
18219
|
+
i0.ɵɵproperty("p-value", ctx_r234.getColumnLabel(row_r194, column_r221));
|
|
18096
18220
|
}
|
|
18097
18221
|
}
|
|
18098
18222
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template(rf, ctx) {
|
|
@@ -18102,45 +18226,45 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Tem
|
|
|
18102
18226
|
i0.ɵɵelementEnd();
|
|
18103
18227
|
}
|
|
18104
18228
|
if (rf & 2) {
|
|
18105
|
-
const
|
|
18106
|
-
const
|
|
18107
|
-
const
|
|
18229
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
18230
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18231
|
+
const ctx_r235 = i0.ɵɵnextContext(3);
|
|
18108
18232
|
i0.ɵɵadvance(1);
|
|
18109
|
-
i0.ɵɵtextInterpolate(
|
|
18233
|
+
i0.ɵɵtextInterpolate(ctx_r235.getCellData(row_r194, column_r221));
|
|
18110
18234
|
}
|
|
18111
18235
|
}
|
|
18112
18236
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf, ctx) {
|
|
18113
18237
|
if (rf & 1) {
|
|
18114
|
-
const
|
|
18115
|
-
i0.ɵɵelementStart(0, "td",
|
|
18116
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
18117
|
-
i0.ɵɵelementStart(1, "div",
|
|
18118
|
-
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(
|
|
18119
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template, 2, 4, "span",
|
|
18120
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template, 2, 5, "span",
|
|
18121
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template, 2, 1, "span",
|
|
18122
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template, 3, 6, "span",
|
|
18123
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template, 3, 4, "span",
|
|
18124
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template, 3, 4, "span",
|
|
18125
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template, 3, 4, "span",
|
|
18126
|
-
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template, 2, 1, "span",
|
|
18127
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template, 1, 5, "po-table-column-link",
|
|
18128
|
-
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon",
|
|
18129
|
-
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template, 2, 1, "span",
|
|
18130
|
-
i0.ɵɵtemplate(13, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template, 2, 1, "span",
|
|
18131
|
-
i0.ɵɵtemplate(14, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template, 2, 1, "span",
|
|
18238
|
+
const _r269 = i0.ɵɵgetCurrentView();
|
|
18239
|
+
i0.ɵɵelementStart(0, "td", 73);
|
|
18240
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r269); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r268 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r268.hasSelectableRow() ? ctx_r268.selectRow(row_r194) : "javascript:;"); });
|
|
18241
|
+
i0.ɵɵelementStart(1, "div", 74);
|
|
18242
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r269); const column_r221 = restoredCtx.$implicit; const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r271 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r271.tooltipMouseEnter($event, column_r221, row_r194)); })("mouseleave", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r269); const ctx_r273 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r273.tooltipMouseLeave()); });
|
|
18243
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
18244
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
18245
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
18246
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
18247
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
18248
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
18249
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
18250
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
18251
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template, 1, 5, "po-table-column-link", 76);
|
|
18252
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon", 77);
|
|
18253
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
18254
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
18255
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
18132
18256
|
i0.ɵɵelementEnd()();
|
|
18133
18257
|
}
|
|
18134
18258
|
if (rf & 2) {
|
|
18135
|
-
const
|
|
18136
|
-
const
|
|
18137
|
-
const
|
|
18138
|
-
i0.ɵɵstyleProp("width",
|
|
18139
|
-
i0.ɵɵclassProp("po-table-column",
|
|
18140
|
-
i0.ɵɵproperty("ngClass",
|
|
18259
|
+
const column_r221 = ctx.$implicit;
|
|
18260
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18261
|
+
const ctx_r200 = i0.ɵɵnextContext(3);
|
|
18262
|
+
i0.ɵɵstyleProp("width", column_r221.width)("max-width", column_r221.width)("min-width", column_r221.width);
|
|
18263
|
+
i0.ɵɵclassProp("po-table-column", column_r221.type !== "icon")("po-table-column-right", column_r221.type === "currency" || column_r221.type === "number")("po-table-column-center", column_r221.type === "subtitle")("po-table-column-icons", column_r221.type === "icon");
|
|
18264
|
+
i0.ɵɵproperty("ngClass", ctx_r200.getClassColor(row_r194, column_r221));
|
|
18141
18265
|
i0.ɵɵadvance(1);
|
|
18142
|
-
i0.ɵɵclassProp("po-table-body-ellipsis",
|
|
18143
|
-
i0.ɵɵproperty("ngSwitch",
|
|
18266
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r200.hideTextOverflow);
|
|
18267
|
+
i0.ɵɵproperty("ngSwitch", column_r221.type)("p-tooltip", ctx_r200.tooltipText);
|
|
18144
18268
|
i0.ɵɵadvance(1);
|
|
18145
18269
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
18146
18270
|
i0.ɵɵadvance(1);
|
|
@@ -18170,139 +18294,139 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf
|
|
|
18170
18294
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
18171
18295
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template(rf, ctx) {
|
|
18172
18296
|
if (rf & 1) {
|
|
18173
|
-
const
|
|
18174
|
-
i0.ɵɵelementStart(0, "td",
|
|
18175
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
18176
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template",
|
|
18297
|
+
const _r278 = i0.ɵɵgetCurrentView();
|
|
18298
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
18299
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r278); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r276 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r276.toggleDetail(row_r194)); });
|
|
18300
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
18177
18301
|
i0.ɵɵelementEnd();
|
|
18178
18302
|
}
|
|
18179
18303
|
if (rf & 2) {
|
|
18180
|
-
const
|
|
18181
|
-
const
|
|
18182
|
-
const
|
|
18304
|
+
const ctx_r279 = i0.ɵɵnextContext();
|
|
18305
|
+
const row_r194 = ctx_r279.$implicit;
|
|
18306
|
+
const rowIndex_r195 = ctx_r279.index;
|
|
18183
18307
|
i0.ɵɵnextContext(3);
|
|
18184
18308
|
const _r11 = i0.ɵɵreference(13);
|
|
18185
18309
|
i0.ɵɵadvance(1);
|
|
18186
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
18310
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r194, rowIndex_r195));
|
|
18187
18311
|
}
|
|
18188
18312
|
}
|
|
18189
18313
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
18190
18314
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template(rf, ctx) {
|
|
18191
18315
|
if (rf & 1) {
|
|
18192
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template",
|
|
18316
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
18193
18317
|
}
|
|
18194
18318
|
if (rf & 2) {
|
|
18195
|
-
const
|
|
18196
|
-
const
|
|
18197
|
-
const
|
|
18319
|
+
const ctx_r281 = i0.ɵɵnextContext();
|
|
18320
|
+
const row_r194 = ctx_r281.$implicit;
|
|
18321
|
+
const rowIndex_r195 = ctx_r281.index;
|
|
18198
18322
|
i0.ɵɵnextContext(3);
|
|
18199
18323
|
const _r23 = i0.ɵɵreference(25);
|
|
18200
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
18324
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c17, row_r194, rowIndex_r195));
|
|
18201
18325
|
}
|
|
18202
18326
|
}
|
|
18203
18327
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template(rf, ctx) {
|
|
18204
18328
|
if (rf & 1) {
|
|
18205
18329
|
i0.ɵɵelementContainerStart(0);
|
|
18206
|
-
i0.ɵɵelement(1, "td",
|
|
18330
|
+
i0.ɵɵelement(1, "td", 93);
|
|
18207
18331
|
i0.ɵɵelementContainerEnd();
|
|
18208
18332
|
}
|
|
18209
18333
|
}
|
|
18210
18334
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template(rf, ctx) {
|
|
18211
18335
|
if (rf & 1) {
|
|
18212
|
-
i0.ɵɵelement(0, "td",
|
|
18336
|
+
i0.ɵɵelement(0, "td", 84);
|
|
18213
18337
|
}
|
|
18214
18338
|
}
|
|
18215
18339
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
18216
18340
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template(rf, ctx) {
|
|
18217
18341
|
if (rf & 1) {
|
|
18218
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
18219
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template",
|
|
18342
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
18343
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
18220
18344
|
i0.ɵɵelementEnd()();
|
|
18221
18345
|
}
|
|
18222
18346
|
if (rf & 2) {
|
|
18223
|
-
const
|
|
18224
|
-
const
|
|
18225
|
-
const
|
|
18226
|
-
const
|
|
18347
|
+
const ctx_r283 = i0.ɵɵnextContext();
|
|
18348
|
+
const row_r194 = ctx_r283.$implicit;
|
|
18349
|
+
const rowIndex_r195 = ctx_r283.index;
|
|
18350
|
+
const ctx_r205 = i0.ɵɵnextContext(3);
|
|
18227
18351
|
i0.ɵɵadvance(1);
|
|
18228
|
-
i0.ɵɵproperty("colSpan",
|
|
18352
|
+
i0.ɵɵproperty("colSpan", ctx_r205.columnCountForMasterDetail);
|
|
18229
18353
|
i0.ɵɵadvance(1);
|
|
18230
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
18354
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r205.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c19, row_r194, rowIndex_r195));
|
|
18231
18355
|
}
|
|
18232
18356
|
}
|
|
18233
18357
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template(rf, ctx) {
|
|
18234
18358
|
if (rf & 1) {
|
|
18235
|
-
const
|
|
18236
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
18237
|
-
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(
|
|
18359
|
+
const _r285 = i0.ɵɵgetCurrentView();
|
|
18360
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
18361
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r285); const ctx_r284 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r284.selectDetailRow($event)); });
|
|
18238
18362
|
i0.ɵɵelementEnd()()();
|
|
18239
18363
|
}
|
|
18240
18364
|
if (rf & 2) {
|
|
18241
|
-
const
|
|
18242
|
-
const
|
|
18365
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
18366
|
+
const ctx_r206 = i0.ɵɵnextContext(3);
|
|
18243
18367
|
i0.ɵɵadvance(1);
|
|
18244
|
-
i0.ɵɵproperty("colSpan",
|
|
18368
|
+
i0.ɵɵproperty("colSpan", ctx_r206.columnCountForMasterDetail);
|
|
18245
18369
|
i0.ɵɵadvance(1);
|
|
18246
|
-
i0.ɵɵproperty("p-selectable",
|
|
18370
|
+
i0.ɵɵproperty("p-selectable", ctx_r206.selectable && !ctx_r206.detailHideSelect)("p-detail", ctx_r206.columnMasterDetail.detail)("p-items", row_r194[ctx_r206.nameColumnDetail]);
|
|
18247
18371
|
}
|
|
18248
18372
|
}
|
|
18249
18373
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template(rf, ctx) {
|
|
18250
18374
|
if (rf & 1) {
|
|
18251
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
18375
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
18252
18376
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template, 2, 4, "td", 40);
|
|
18253
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template, 2, 5, "td",
|
|
18377
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
18254
18378
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template, 1, 5, null, 23);
|
|
18255
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template, 2, 5, "td",
|
|
18256
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template, 15, 31, "td",
|
|
18257
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template, 2, 5, "td",
|
|
18379
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
18380
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template, 15, 31, "td", 69);
|
|
18381
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
18258
18382
|
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template, 1, 5, null, 23);
|
|
18259
18383
|
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
18260
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template, 1, 0, "td",
|
|
18384
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
18261
18385
|
i0.ɵɵelementEnd();
|
|
18262
18386
|
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
18263
18387
|
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
18264
18388
|
i0.ɵɵelementEnd();
|
|
18265
18389
|
}
|
|
18266
18390
|
if (rf & 2) {
|
|
18267
|
-
const
|
|
18268
|
-
const
|
|
18269
|
-
const
|
|
18391
|
+
const row_r194 = ctx.$implicit;
|
|
18392
|
+
const rowIndex_r195 = ctx.index;
|
|
18393
|
+
const ctx_r193 = i0.ɵɵnextContext(3);
|
|
18270
18394
|
i0.ɵɵadvance(1);
|
|
18271
|
-
i0.ɵɵclassProp("po-table-row-active",
|
|
18395
|
+
i0.ɵɵclassProp("po-table-row-active", row_r194.$selected || row_r194.$selected === null && ctx_r193.selectable);
|
|
18272
18396
|
i0.ɵɵadvance(1);
|
|
18273
|
-
i0.ɵɵproperty("ngIf",
|
|
18397
|
+
i0.ɵɵproperty("ngIf", ctx_r193.selectable);
|
|
18274
18398
|
i0.ɵɵadvance(1);
|
|
18275
|
-
i0.ɵɵproperty("ngIf",
|
|
18399
|
+
i0.ɵɵproperty("ngIf", ctx_r193.columnMasterDetail && !ctx_r193.hideDetail && !ctx_r193.hasRowTemplate);
|
|
18276
18400
|
i0.ɵɵadvance(1);
|
|
18277
|
-
i0.ɵɵproperty("ngIf", !
|
|
18401
|
+
i0.ɵɵproperty("ngIf", !ctx_r193.actionRight && (ctx_r193.visibleActions.length > 1 || ctx_r193.isSingleAction));
|
|
18278
18402
|
i0.ɵɵadvance(1);
|
|
18279
|
-
i0.ɵɵproperty("ngIf",
|
|
18403
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasRowTemplate && !ctx_r193.hasRowTemplateWithArrowDirectionRight);
|
|
18280
18404
|
i0.ɵɵadvance(1);
|
|
18281
|
-
i0.ɵɵproperty("ngForOf",
|
|
18405
|
+
i0.ɵɵproperty("ngForOf", ctx_r193.mainColumns)("ngForTrackBy", ctx_r193.trackBy);
|
|
18282
18406
|
i0.ɵɵadvance(1);
|
|
18283
|
-
i0.ɵɵproperty("ngIf",
|
|
18407
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasRowTemplateWithArrowDirectionRight);
|
|
18284
18408
|
i0.ɵɵadvance(1);
|
|
18285
|
-
i0.ɵɵproperty("ngIf",
|
|
18409
|
+
i0.ɵɵproperty("ngIf", ctx_r193.actionRight);
|
|
18286
18410
|
i0.ɵɵadvance(1);
|
|
18287
|
-
i0.ɵɵproperty("ngIf", !
|
|
18411
|
+
i0.ɵɵproperty("ngIf", !ctx_r193.actionRight && (ctx_r193.visibleActions.length > 1 || ctx_r193.isSingleAction) && !ctx_r193.hideColumnsManager);
|
|
18288
18412
|
i0.ɵɵadvance(1);
|
|
18289
|
-
i0.ɵɵproperty("ngIf", !
|
|
18413
|
+
i0.ɵɵproperty("ngIf", !ctx_r193.hasVisibleActions && !ctx_r193.hideColumnsManager && !ctx_r193.hasRowTemplateWithArrowDirectionRight);
|
|
18290
18414
|
i0.ɵɵadvance(1);
|
|
18291
|
-
i0.ɵɵproperty("ngIf",
|
|
18415
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasMainColumns && ctx_r193.hasRowTemplate && row_r194.$showDetail && ctx_r193.isShowRowTemplate(row_r194, rowIndex_r195));
|
|
18292
18416
|
i0.ɵɵadvance(1);
|
|
18293
|
-
i0.ɵɵproperty("ngIf",
|
|
18417
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasMainColumns && ctx_r193.isShowMasterDetail(row_r194));
|
|
18294
18418
|
}
|
|
18295
18419
|
}
|
|
18296
18420
|
function PoTableComponent_ng_template_8_ng_container_12_Template(rf, ctx) {
|
|
18297
18421
|
if (rf & 1) {
|
|
18298
18422
|
i0.ɵɵelementContainerStart(0);
|
|
18299
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template, 13, 14, "tbody",
|
|
18423
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template, 13, 14, "tbody", 92);
|
|
18300
18424
|
i0.ɵɵelementContainerEnd();
|
|
18301
18425
|
}
|
|
18302
18426
|
if (rf & 2) {
|
|
18303
|
-
const
|
|
18427
|
+
const ctx_r175 = i0.ɵɵnextContext(2);
|
|
18304
18428
|
i0.ɵɵadvance(1);
|
|
18305
|
-
i0.ɵɵproperty("ngForOf",
|
|
18429
|
+
i0.ɵɵproperty("ngForOf", ctx_r175.items)("ngForTrackBy", ctx_r175.trackBy);
|
|
18306
18430
|
}
|
|
18307
18431
|
}
|
|
18308
18432
|
function PoTableComponent_ng_template_8_Template(rf, ctx) {
|
|
@@ -18312,12 +18436,12 @@ function PoTableComponent_ng_template_8_Template(rf, ctx) {
|
|
|
18312
18436
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_th_4_Template, 1, 0, "th", 41);
|
|
18313
18437
|
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_th_5_Template, 2, 4, "th", 42);
|
|
18314
18438
|
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_th_6_Template, 3, 3, "th", 43);
|
|
18315
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_th_7_Template,
|
|
18439
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_th_7_Template, 3, 20, "th", 44);
|
|
18316
18440
|
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_th_8_Template, 1, 0, "th", 41);
|
|
18317
18441
|
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_th_9_Template, 1, 4, "th", 45);
|
|
18318
18442
|
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_th_10_Template, 5, 14, "th", 46);
|
|
18319
18443
|
i0.ɵɵelementEnd()();
|
|
18320
|
-
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_tbody_11_Template, 5, 2, "tbody",
|
|
18444
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_tbody_11_Template, 5, 2, "tbody", 62);
|
|
18321
18445
|
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_Template, 2, 2, "ng-container", 23);
|
|
18322
18446
|
i0.ɵɵelementEnd();
|
|
18323
18447
|
}
|
|
@@ -18350,47 +18474,47 @@ function PoTableComponent_ng_template_8_Template(rf, ctx) {
|
|
|
18350
18474
|
}
|
|
18351
18475
|
function PoTableComponent_ng_template_12_span_0_Template(rf, ctx) {
|
|
18352
18476
|
if (rf & 1) {
|
|
18353
|
-
i0.ɵɵelement(0, "span",
|
|
18477
|
+
i0.ɵɵelement(0, "span", 95);
|
|
18354
18478
|
}
|
|
18355
18479
|
if (rf & 2) {
|
|
18356
|
-
const
|
|
18357
|
-
i0.ɵɵclassProp("po-icon-arrow-up",
|
|
18480
|
+
const row_r287 = i0.ɵɵnextContext().row;
|
|
18481
|
+
i0.ɵɵclassProp("po-icon-arrow-up", row_r287.$showDetail)("po-icon-arrow-down", !row_r287.$showDetail);
|
|
18358
18482
|
}
|
|
18359
18483
|
}
|
|
18360
18484
|
function PoTableComponent_ng_template_12_Template(rf, ctx) {
|
|
18361
18485
|
if (rf & 1) {
|
|
18362
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_12_span_0_Template, 1, 4, "span",
|
|
18486
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_12_span_0_Template, 1, 4, "span", 94);
|
|
18363
18487
|
}
|
|
18364
18488
|
if (rf & 2) {
|
|
18365
|
-
const
|
|
18366
|
-
const
|
|
18489
|
+
const row_r287 = ctx.row;
|
|
18490
|
+
const rowIndex_r288 = ctx.rowIndex;
|
|
18367
18491
|
const ctx_r12 = i0.ɵɵnextContext();
|
|
18368
|
-
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(
|
|
18492
|
+
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(row_r287) && !ctx_r12.hasRowTemplate || ctx_r12.isShowRowTemplate(row_r287, rowIndex_r288) && ctx_r12.hasRowTemplate);
|
|
18369
18493
|
}
|
|
18370
18494
|
}
|
|
18371
18495
|
function PoTableComponent_ng_template_14_Template(rf, ctx) {
|
|
18372
18496
|
if (rf & 1) {
|
|
18373
|
-
const
|
|
18374
|
-
i0.ɵɵelement(0, "input",
|
|
18375
|
-
i0.ɵɵelementStart(1, "label",
|
|
18376
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_14_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
18497
|
+
const _r293 = i0.ɵɵgetCurrentView();
|
|
18498
|
+
i0.ɵɵelement(0, "input", 96);
|
|
18499
|
+
i0.ɵɵelementStart(1, "label", 97);
|
|
18500
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_14_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r293); const row_r291 = restoredCtx.$implicit; const ctx_r292 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r292.selectable ? ctx_r292.selectRow(row_r291) : "javascript:;"); });
|
|
18377
18501
|
i0.ɵɵelementEnd();
|
|
18378
18502
|
}
|
|
18379
18503
|
if (rf & 2) {
|
|
18380
|
-
const
|
|
18381
|
-
i0.ɵɵclassProp("po-table-radio-checked",
|
|
18504
|
+
const row_r291 = ctx.$implicit;
|
|
18505
|
+
i0.ɵɵclassProp("po-table-radio-checked", row_r291.$selected);
|
|
18382
18506
|
}
|
|
18383
18507
|
}
|
|
18384
18508
|
function PoTableComponent_ng_template_16_Template(rf, ctx) {
|
|
18385
18509
|
if (rf & 1) {
|
|
18386
|
-
const
|
|
18387
|
-
i0.ɵɵelementStart(0, "po-checkbox",
|
|
18388
|
-
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_16_Template_po_checkbox_p_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
18510
|
+
const _r296 = i0.ɵɵgetCurrentView();
|
|
18511
|
+
i0.ɵɵelementStart(0, "po-checkbox", 98);
|
|
18512
|
+
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_16_Template_po_checkbox_p_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r296); const row_r294 = restoredCtx.$implicit; const ctx_r295 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r295.selectable ? ctx_r295.selectRow(row_r294) : "javascript:;"); })("ngModelChange", function PoTableComponent_ng_template_16_Template_po_checkbox_ngModelChange_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r296); const row_r294 = restoredCtx.$implicit; return i0.ɵɵresetView(row_r294.$selected = $event); })("click", function PoTableComponent_ng_template_16_Template_po_checkbox_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r296); const row_r294 = restoredCtx.$implicit; const ctx_r298 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r298.selectable ? ctx_r298.selectRow(row_r294) : "javascript:;"); });
|
|
18389
18513
|
i0.ɵɵelementEnd();
|
|
18390
18514
|
}
|
|
18391
18515
|
if (rf & 2) {
|
|
18392
|
-
const
|
|
18393
|
-
i0.ɵɵproperty("ngModel",
|
|
18516
|
+
const row_r294 = ctx.$implicit;
|
|
18517
|
+
i0.ɵɵproperty("ngModel", row_r294.$selected);
|
|
18394
18518
|
}
|
|
18395
18519
|
}
|
|
18396
18520
|
function PoTableComponent_ng_template_18_span_4_Template(rf, ctx) {
|
|
@@ -18398,34 +18522,34 @@ function PoTableComponent_ng_template_18_span_4_Template(rf, ctx) {
|
|
|
18398
18522
|
i0.ɵɵelement(0, "span");
|
|
18399
18523
|
}
|
|
18400
18524
|
if (rf & 2) {
|
|
18401
|
-
const
|
|
18402
|
-
const
|
|
18403
|
-
i0.ɵɵclassProp("po-table-header-icon-unselected", (
|
|
18525
|
+
const column_r299 = i0.ɵɵnextContext().$implicit;
|
|
18526
|
+
const ctx_r301 = i0.ɵɵnextContext();
|
|
18527
|
+
i0.ɵɵclassProp("po-table-header-icon-unselected", ctx_r301.JSON.stringify(ctx_r301.sortedColumn == null ? null : ctx_r301.sortedColumn.property) !== ctx_r301.JSON.stringify(column_r299))("po-table-header-icon-descending", ctx_r301.JSON.stringify(ctx_r301.sortedColumn == null ? null : ctx_r301.sortedColumn.property) === ctx_r301.JSON.stringify(column_r299) && ctx_r301.sortedColumn.ascending)("po-table-header-icon-ascending", ctx_r301.JSON.stringify(ctx_r301.sortedColumn == null ? null : ctx_r301.sortedColumn.property) === ctx_r301.JSON.stringify(column_r299) && !ctx_r301.sortedColumn.ascending);
|
|
18404
18528
|
}
|
|
18405
18529
|
}
|
|
18406
18530
|
function PoTableComponent_ng_template_18_Template(rf, ctx) {
|
|
18407
18531
|
if (rf & 1) {
|
|
18408
|
-
const
|
|
18409
|
-
i0.ɵɵelementStart(0, "span",
|
|
18410
|
-
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_18_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(
|
|
18532
|
+
const _r304 = i0.ɵɵgetCurrentView();
|
|
18533
|
+
i0.ɵɵelementStart(0, "span", 99, 100);
|
|
18534
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_18_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(_r304); const ctx_r303 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r303.tooltipMouseEnter($event)); })("mouseleave", function PoTableComponent_ng_template_18_Template_span_mouseleave_0_listener() { i0.ɵɵrestoreView(_r304); const ctx_r305 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r305.tooltipMouseLeave()); });
|
|
18411
18535
|
i0.ɵɵtext(2);
|
|
18412
18536
|
i0.ɵɵpipe(3, "titlecase");
|
|
18413
18537
|
i0.ɵɵelementEnd();
|
|
18414
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_18_span_4_Template, 1, 6, "span",
|
|
18538
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_18_span_4_Template, 1, 6, "span", 101);
|
|
18415
18539
|
}
|
|
18416
18540
|
if (rf & 2) {
|
|
18417
|
-
const
|
|
18541
|
+
const column_r299 = ctx.$implicit;
|
|
18418
18542
|
const ctx_r18 = i0.ɵɵnextContext();
|
|
18419
18543
|
i0.ɵɵproperty("p-tooltip", ctx_r18.tooltipText);
|
|
18420
18544
|
i0.ɵɵadvance(2);
|
|
18421
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
18545
|
+
i0.ɵɵtextInterpolate1(" ", column_r299.label || i0.ɵɵpipeBind1(3, 3, column_r299.property), " ");
|
|
18422
18546
|
i0.ɵɵadvance(2);
|
|
18423
|
-
i0.ɵɵproperty("ngIf", ctx_r18.sort &&
|
|
18547
|
+
i0.ɵɵproperty("ngIf", ctx_r18.sort && column_r299.sortable !== false);
|
|
18424
18548
|
}
|
|
18425
18549
|
}
|
|
18426
18550
|
function PoTableComponent_ng_template_20_Template(rf, ctx) {
|
|
18427
18551
|
if (rf & 1) {
|
|
18428
|
-
i0.ɵɵelementStart(0, "div",
|
|
18552
|
+
i0.ɵɵelementStart(0, "div", 102);
|
|
18429
18553
|
i0.ɵɵtext(1);
|
|
18430
18554
|
i0.ɵɵelementEnd();
|
|
18431
18555
|
}
|
|
@@ -18447,57 +18571,57 @@ function PoTableComponent_ng_template_22_Template(rf, ctx) {
|
|
|
18447
18571
|
}
|
|
18448
18572
|
function PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template(rf, ctx) {
|
|
18449
18573
|
if (rf & 1) {
|
|
18450
|
-
i0.ɵɵelement(0, "po-icon",
|
|
18574
|
+
i0.ɵɵelement(0, "po-icon", 109);
|
|
18451
18575
|
}
|
|
18452
18576
|
if (rf & 2) {
|
|
18453
|
-
const
|
|
18454
|
-
i0.ɵɵproperty("p-icon",
|
|
18577
|
+
const ctx_r311 = i0.ɵɵnextContext(4);
|
|
18578
|
+
i0.ɵɵproperty("p-icon", ctx_r311.firstAction.icon);
|
|
18455
18579
|
}
|
|
18456
18580
|
}
|
|
18457
18581
|
function PoTableComponent_ng_template_24_td_0_div_1_Template(rf, ctx) {
|
|
18458
18582
|
if (rf & 1) {
|
|
18459
|
-
const
|
|
18460
|
-
i0.ɵɵelementStart(0, "div",
|
|
18461
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
18462
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon",
|
|
18583
|
+
const _r314 = i0.ɵɵgetCurrentView();
|
|
18584
|
+
i0.ɵɵelementStart(0, "div", 107);
|
|
18585
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r314); const row_r306 = i0.ɵɵnextContext(2).row; const ctx_r312 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r312.executeTableAction(row_r306, ctx_r312.firstAction)); });
|
|
18586
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon", 108);
|
|
18463
18587
|
i0.ɵɵtext(2);
|
|
18464
18588
|
i0.ɵɵelementEnd();
|
|
18465
18589
|
}
|
|
18466
18590
|
if (rf & 2) {
|
|
18467
|
-
const
|
|
18468
|
-
const
|
|
18469
|
-
i0.ɵɵclassProp("po-table-action-disabled",
|
|
18591
|
+
const row_r306 = i0.ɵɵnextContext(2).row;
|
|
18592
|
+
const ctx_r310 = i0.ɵɵnextContext();
|
|
18593
|
+
i0.ɵɵclassProp("po-table-action-disabled", ctx_r310.firstAction.disabled ? ctx_r310.validateTableAction(row_r306, ctx_r310.firstAction) : false);
|
|
18470
18594
|
i0.ɵɵadvance(1);
|
|
18471
|
-
i0.ɵɵproperty("ngIf",
|
|
18595
|
+
i0.ɵɵproperty("ngIf", ctx_r310.firstAction.icon);
|
|
18472
18596
|
i0.ɵɵadvance(1);
|
|
18473
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
18597
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r310.firstAction.label, " ");
|
|
18474
18598
|
}
|
|
18475
18599
|
}
|
|
18476
18600
|
function PoTableComponent_ng_template_24_td_0_Template(rf, ctx) {
|
|
18477
18601
|
if (rf & 1) {
|
|
18478
|
-
i0.ɵɵelementStart(0, "td",
|
|
18479
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_Template, 3, 4, "div",
|
|
18602
|
+
i0.ɵɵelementStart(0, "td", 105);
|
|
18603
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_Template, 3, 4, "div", 106);
|
|
18480
18604
|
i0.ɵɵelementEnd();
|
|
18481
18605
|
}
|
|
18482
18606
|
if (rf & 2) {
|
|
18483
|
-
const
|
|
18484
|
-
i0.ɵɵstyleProp("width",
|
|
18607
|
+
const ctx_r308 = i0.ɵɵnextContext(2);
|
|
18608
|
+
i0.ɵɵstyleProp("width", ctx_r308.height && ctx_r308.actionRight ? ctx_r308.getWidthColumnManager() : "", "px")("max-width", ctx_r308.height && !ctx_r308.actionRight ? ctx_r308.getColumnWidthActionsLeft() : "", "px")("width", ctx_r308.height && !ctx_r308.actionRight ? ctx_r308.getColumnWidthActionsLeft() : "", "px");
|
|
18485
18609
|
i0.ɵɵadvance(1);
|
|
18486
|
-
i0.ɵɵproperty("ngIf",
|
|
18610
|
+
i0.ɵɵproperty("ngIf", ctx_r308.firstAction.visible !== false);
|
|
18487
18611
|
}
|
|
18488
18612
|
}
|
|
18489
18613
|
function PoTableComponent_ng_template_24_td_1_Template(rf, ctx) {
|
|
18490
18614
|
if (rf & 1) {
|
|
18491
|
-
const
|
|
18492
|
-
i0.ɵɵelementStart(0, "td",
|
|
18493
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_1_Template_span_click_1_listener() { i0.ɵɵrestoreView(
|
|
18615
|
+
const _r319 = i0.ɵɵgetCurrentView();
|
|
18616
|
+
i0.ɵɵelementStart(0, "td", 110)(1, "span", 111, 112);
|
|
18617
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_1_Template_span_click_1_listener() { i0.ɵɵrestoreView(_r319); const _r316 = i0.ɵɵreference(2); const row_r306 = i0.ɵɵnextContext().row; const ctx_r317 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r317.togglePopup(row_r306, _r316)); });
|
|
18494
18618
|
i0.ɵɵelementEnd()();
|
|
18495
18619
|
}
|
|
18496
18620
|
}
|
|
18497
18621
|
function PoTableComponent_ng_template_24_Template(rf, ctx) {
|
|
18498
18622
|
if (rf & 1) {
|
|
18499
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_24_td_0_Template, 2, 7, "td",
|
|
18500
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_1_Template, 3, 0, "td",
|
|
18623
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_24_td_0_Template, 2, 7, "td", 103);
|
|
18624
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_1_Template, 3, 0, "td", 104);
|
|
18501
18625
|
}
|
|
18502
18626
|
if (rf & 2) {
|
|
18503
18627
|
const ctx_r24 = i0.ɵɵnextContext();
|
|
@@ -18508,14 +18632,14 @@ function PoTableComponent_ng_template_24_Template(rf, ctx) {
|
|
|
18508
18632
|
}
|
|
18509
18633
|
function PoTableComponent_po_table_column_manager_26_Template(rf, ctx) {
|
|
18510
18634
|
if (rf & 1) {
|
|
18511
|
-
const
|
|
18512
|
-
i0.ɵɵelementStart(0, "po-table-column-manager",
|
|
18513
|
-
i0.ɵɵlistener("p-visible-columns-change", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_visible_columns_change_0_listener($event) { i0.ɵɵrestoreView(
|
|
18635
|
+
const _r321 = i0.ɵɵgetCurrentView();
|
|
18636
|
+
i0.ɵɵelementStart(0, "po-table-column-manager", 113);
|
|
18637
|
+
i0.ɵɵlistener("p-visible-columns-change", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_visible_columns_change_0_listener($event) { i0.ɵɵrestoreView(_r321); const ctx_r320 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r320.onVisibleColumnsChange($event)); })("p-change-visible-columns", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_change_visible_columns_0_listener($event) { i0.ɵɵrestoreView(_r321); const ctx_r322 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r322.onChangeVisibleColumns($event)); })("p-initial-columns", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_initial_columns_0_listener($event) { i0.ɵɵrestoreView(_r321); const ctx_r323 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r323.onColumnRestoreManager($event)); });
|
|
18514
18638
|
i0.ɵɵelementEnd();
|
|
18515
18639
|
}
|
|
18516
18640
|
if (rf & 2) {
|
|
18517
18641
|
const ctx_r25 = i0.ɵɵnextContext();
|
|
18518
|
-
i0.ɵɵproperty("p-columns", ctx_r25.columns)("p-max-columns", ctx_r25.maxColumns)("p-target", ctx_r25.columnManagerTarget)("p-last-visible-columns-selected", ctx_r25.lastVisibleColumnsSelected)("p-columns-default", ctx_r25.initialColumns);
|
|
18642
|
+
i0.ɵɵproperty("p-columns", ctx_r25.columns)("p-max-columns", ctx_r25.maxColumns)("p-target", ctx_r25.height ? ctx_r25.columnManagerTargetFixed : ctx_r25.columnManagerTarget)("p-last-visible-columns-selected", ctx_r25.lastVisibleColumnsSelected)("p-columns-default", ctx_r25.initialColumns);
|
|
18519
18643
|
}
|
|
18520
18644
|
}
|
|
18521
18645
|
/**
|
|
@@ -18573,6 +18697,7 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
18573
18697
|
this.itemSize = 32;
|
|
18574
18698
|
this.initialized = false;
|
|
18575
18699
|
this.visibleElement = false;
|
|
18700
|
+
this.JSON = JSON;
|
|
18576
18701
|
this.differ = differs.find([]).create(null);
|
|
18577
18702
|
// TODO: #5550 ao remover este listener, no portal, quando as colunas forem fixas não sofrem
|
|
18578
18703
|
// alteração de largura, pois o ngDoCheck não é executado.
|
|
@@ -18588,6 +18713,13 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
18588
18713
|
get columnManagerTarget() {
|
|
18589
18714
|
return this._columnManagerTarget;
|
|
18590
18715
|
}
|
|
18716
|
+
set columnManagerTargetFixed(value) {
|
|
18717
|
+
this._columnManagerTargetFixed = value;
|
|
18718
|
+
this.changeDetector.detectChanges();
|
|
18719
|
+
}
|
|
18720
|
+
get columnManagerTargetFixed() {
|
|
18721
|
+
return this._columnManagerTargetFixed;
|
|
18722
|
+
}
|
|
18591
18723
|
get hasRowTemplateWithArrowDirectionRight() {
|
|
18592
18724
|
var _a;
|
|
18593
18725
|
return ((_a = this.tableRowTemplate) === null || _a === void 0 ? void 0 : _a.tableRowTemplateArrowDirection) === PoTableRowTemplateArrowDirection.Right;
|
|
@@ -18918,12 +19050,16 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
18918
19050
|
this.poTableThead.nativeElement.scrollLeft = this.poTableTbodyVirtual.nativeElement.scrollLeft;
|
|
18919
19051
|
}
|
|
18920
19052
|
getWidthColumnManager() {
|
|
18921
|
-
var _a;
|
|
18922
|
-
return
|
|
19053
|
+
var _a, _b;
|
|
19054
|
+
return this.height
|
|
19055
|
+
? (_a = this.columnManagerFixed) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetWidth
|
|
19056
|
+
: (_b = this.columnManager) === null || _b === void 0 ? void 0 : _b.nativeElement.offsetWidth;
|
|
18923
19057
|
}
|
|
18924
19058
|
getColumnWidthActionsLeft() {
|
|
18925
|
-
var _a;
|
|
18926
|
-
return
|
|
19059
|
+
var _a, _b;
|
|
19060
|
+
return this.height
|
|
19061
|
+
? (_a = this.columnActionLeftFixed) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetWidth
|
|
19062
|
+
: (_b = this.columnActionLeft) === null || _b === void 0 ? void 0 : _b.nativeElement.offsetWidth;
|
|
18927
19063
|
}
|
|
18928
19064
|
calculateHeightTableContainer(height) {
|
|
18929
19065
|
const value = parseFloat(height);
|
|
@@ -19065,21 +19201,26 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
19065
19201
|
}, viewQuery: function PoTableComponent_Query(rf, ctx) {
|
|
19066
19202
|
if (rf & 1) {
|
|
19067
19203
|
i0.ɵɵviewQuery(_c0$W, 5, ElementRef);
|
|
19068
|
-
i0.ɵɵviewQuery(_c1$q, 5);
|
|
19069
|
-
i0.ɵɵviewQuery(_c2$b, 5
|
|
19204
|
+
i0.ɵɵviewQuery(_c1$q, 5, ElementRef);
|
|
19205
|
+
i0.ɵɵviewQuery(_c2$b, 5);
|
|
19070
19206
|
i0.ɵɵviewQuery(_c3$6, 5, ElementRef);
|
|
19071
19207
|
i0.ɵɵviewQuery(_c4$4, 5, ElementRef);
|
|
19072
19208
|
i0.ɵɵviewQuery(_c5$2, 5, ElementRef);
|
|
19073
19209
|
i0.ɵɵviewQuery(_c6$2, 5, ElementRef);
|
|
19074
19210
|
i0.ɵɵviewQuery(_c7$1, 5, ElementRef);
|
|
19075
19211
|
i0.ɵɵviewQuery(_c8$1, 5, ElementRef);
|
|
19076
|
-
i0.ɵɵviewQuery(_c9, 5);
|
|
19212
|
+
i0.ɵɵviewQuery(_c9, 5, ElementRef);
|
|
19077
19213
|
i0.ɵɵviewQuery(_c10, 5, ElementRef);
|
|
19078
19214
|
i0.ɵɵviewQuery(_c11, 5, ElementRef);
|
|
19215
|
+
i0.ɵɵviewQuery(_c12, 5);
|
|
19216
|
+
i0.ɵɵviewQuery(_c13, 5);
|
|
19217
|
+
i0.ɵɵviewQuery(_c14, 5, ElementRef);
|
|
19218
|
+
i0.ɵɵviewQuery(_c15, 5, ElementRef);
|
|
19079
19219
|
}
|
|
19080
19220
|
if (rf & 2) {
|
|
19081
19221
|
let _t;
|
|
19082
19222
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.noColumnsHeader = _t.first);
|
|
19223
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.noColumnsHeaderFixed = _t.first);
|
|
19083
19224
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poPopupComponent = _t.first);
|
|
19084
19225
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableFooterElement = _t.first);
|
|
19085
19226
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableWrapperElement = _t.first);
|
|
@@ -19087,12 +19228,15 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
19087
19228
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableThead = _t.first);
|
|
19088
19229
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableTbodyVirtual = _t.first);
|
|
19089
19230
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManager = _t.first);
|
|
19231
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerFixed = _t.first);
|
|
19090
19232
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnActionLeft = _t.first);
|
|
19233
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnActionLeftFixed = _t.first);
|
|
19091
19234
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerTarget = _t.first);
|
|
19235
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerTargetFixed = _t.first);
|
|
19092
19236
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsIconElement = _t);
|
|
19093
19237
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsElement = _t);
|
|
19094
19238
|
}
|
|
19095
|
-
}, features: [i0.ɵɵProvidersFeature([PoDateService]), i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 6, consts: [["p-no-padding", "", 3, "p-no-shadow", 4, "ngIf", "ngIfElse"], ["tableContainerTemplate", ""], ["class", "po-row po-table-footer-show-more", 3, "po-invisible", 4, "ngIf"], ["tableHeaderTemplate", ""], ["tableBodyTemplate", ""], ["tableTemplate", ""], [3, "p-actions", "p-target"], ["popup", ""], ["poTableColumnDetail", ""], ["inputRadio", ""], ["inputCheckbox", ""], ["contentHeaderTemplate", ""], ["noColumnsWithHeight", ""], ["noColumnsWithoutHeight", ""], ["ActionsColumnTemplate", ""], [3, "p-columns", "p-max-columns", "p-target", "p-last-visible-columns-selected", "p-columns-default", "p-visible-columns-change", "p-change-visible-columns", "p-initial-columns", 4, "ngIf"], ["p-no-padding", "", 3, "p-no-shadow"], [4, "ngTemplateOutlet"], ["class", "po-table-overlay", 4, "ngIf"], [1, "po-table-main-container"], [1, "po-table-wrapper"], ["tableWrapper", ""], ["class", "po-table-container", 3, "height", 4, "ngIf"], [4, "ngIf"], ["class", "po-table-footer", 4, "ngIf"], [1, "po-table-overlay"], [1, "po-table-overlay-content", 3, "p-text"], [1, "po-table-container"], [1, "po-table-header-fixed", "po-table-header"], ["poTableThead", ""], [1, "po-table-container-fixed-inner"], ["poTableTbody", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-table-footer"], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-literals", "p-subtitles"], [1, "po-row", "po-table-footer-show-more"], ["tableFooter", ""], [1, "po-offset-xl-4", "po-offset-lg-4", "po-offset-md-3", "po-lg-4", "po-md-6", 3, "p-disabled", "p-label", "p-loading", "p-click"], [1, "po-table"], ["class", "po-table-column-selectable", 4, "ngIf"], ["class", "po-table-header-column po-table-header-master-detail", 4, "ngIf"], [3, "po-table-header-master-detail", "po-table-header-single-action", 4, "ngIf"], ["class", "po-table-header-column po-text-center", 4, "ngIf"], ["class", "po-table-header-ellipsis", 3, "width", "max-width", "min-width", "po-clickable", "po-table-header-subtitle", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "po-table-header-single-action", "po-table-header-actions", 4, "ngIf"], [3, "po-table-header-column-manager", "po-table-header-column-manager-border", "po-table-header-single-action", 4, "ngIf"], [1, "po-table-column-selectable"], ["name", "selectAll", 3, "ngModel", "click", "p-change", "ngModelChange", 4, "ngIf"], ["name", "selectAll", 3, "ngModel", "click", "p-change", "ngModelChange"], [1, "po-table-header-column", "po-table-header-master-detail"], ["
|
|
19239
|
+
}, features: [i0.ɵɵProvidersFeature([PoDateService]), i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 6, consts: [["p-no-padding", "", 3, "p-no-shadow", 4, "ngIf", "ngIfElse"], ["tableContainerTemplate", ""], ["class", "po-row po-table-footer-show-more", 3, "po-invisible", 4, "ngIf"], ["tableHeaderTemplate", ""], ["tableBodyTemplate", ""], ["tableTemplate", ""], [3, "p-actions", "p-target"], ["popup", ""], ["poTableColumnDetail", ""], ["inputRadio", ""], ["inputCheckbox", ""], ["contentHeaderTemplate", ""], ["noColumnsWithHeight", ""], ["noColumnsWithoutHeight", ""], ["ActionsColumnTemplate", ""], [3, "p-columns", "p-max-columns", "p-target", "p-last-visible-columns-selected", "p-columns-default", "p-visible-columns-change", "p-change-visible-columns", "p-initial-columns", 4, "ngIf"], ["p-no-padding", "", 3, "p-no-shadow"], [4, "ngTemplateOutlet"], ["class", "po-table-overlay", 4, "ngIf"], [1, "po-table-main-container"], [1, "po-table-wrapper"], ["tableWrapper", ""], ["class", "po-table-container", 3, "height", 4, "ngIf"], [4, "ngIf"], ["class", "po-table-footer", 4, "ngIf"], [1, "po-table-overlay"], [1, "po-table-overlay-content", 3, "p-text"], [1, "po-table-container"], [1, "po-table-header-fixed", "po-table-header"], ["poTableThead", ""], [1, "po-table-container-fixed-inner"], ["poTableTbody", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-table-footer"], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-literals", "p-subtitles"], [1, "po-row", "po-table-footer-show-more"], ["tableFooter", ""], [1, "po-offset-xl-4", "po-offset-lg-4", "po-offset-md-3", "po-lg-4", "po-md-6", 3, "p-disabled", "p-label", "p-loading", "p-click"], [1, "po-table"], ["class", "po-table-column-selectable", 4, "ngIf"], ["class", "po-table-header-column po-table-header-master-detail", 4, "ngIf"], [3, "po-table-header-master-detail", "po-table-header-single-action", 4, "ngIf"], ["class", "po-table-header-column po-text-center", 4, "ngIf"], ["class", "po-table-header-ellipsis", 3, "width", "max-width", "min-width", "po-clickable", "po-table-header-subtitle", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "po-table-header-single-action", "po-table-header-actions", 4, "ngIf"], [3, "po-table-header-column-manager", "po-table-header-column-manager-border", "po-table-header-single-action", 4, "ngIf"], [1, "po-table-column-selectable"], ["name", "selectAll", 3, "ngModel", "click", "p-change", "ngModelChange", 4, "ngIf"], ["name", "selectAll", 3, "ngModel", "click", "p-change", "ngModelChange"], [1, "po-table-header-column", "po-table-header-master-detail"], ["columnActionLeftFixed", ""], [1, "po-table-header-column", "po-text-center"], ["noColumnsHeaderFixed", ""], [1, "po-table-header-ellipsis", 3, "click"], [1, "po-table-header-flex"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["columnManagerFixed", ""], ["type", "button", "p-tooltip-position", "left", 1, "po-table-header-column-manager-button", "po-icon", "po-icon-settings", "po-clickable", 3, "p-tooltip", "click"], ["columnManagerTargetFixed", ""], [3, "itemSize", "minBufferPx", "maxBufferPx", "scroll"], ["poTableTbodyVirtual", ""], ["class", "po-table-group-row", 4, "ngIf"], [1, "po-table-group-row"], [1, "po-table-row", "po-table-row-no-data"], [1, "po-table-no-data", "po-text-center", 3, "colSpan"], ["class", "po-table-group-row", 4, "cdkVirtualFor", "cdkVirtualForOf", "cdkVirtualForTrackBy"], [1, "po-table-row"], ["class", "po-table-column-detail-toggle", 3, "click", 4, "ngIf"], [3, "width", "max-width", "min-width", "po-table-column", "po-table-column-right", "po-table-column-center", "po-table-column-icons", "ngClass", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-table-column", 4, "ngIf"], [1, "po-table-column-detail-toggle", 3, "click"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "ngClass", "click"], [1, "po-table-column-cell", "notranslate", 3, "ngSwitch", "p-tooltip", "mouseenter", "mouseleave"], [4, "ngSwitchCase"], [3, "p-action", "p-disabled", "p-link", "p-row", "p-value", "click", 4, "ngSwitchCase"], [3, "p-column", "p-icons", "p-row", 4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "p-action", "p-disabled", "p-link", "p-row", "p-value", "click"], [3, "p-column", "p-icons", "p-row"], [3, "p-subtitle"], [3, "p-value"], [1, "po-table-column", "po-table-column-empty"], [1, "po-table-column"], [1, "po-table-row-template-container", 3, "colSpan"], [1, "po-table-column-detail", 3, "colSpan"], [3, "p-selectable", "p-detail", "p-items", "p-select-row"], ["columnActionLeft", ""], ["noColumnsHeader", ""], ["columnManager", ""], ["columnManagerTarget", ""], ["class", "po-table-group-row", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-table-row-no-data", "po-table-column-empty"], ["class", "po-icon po-clickable", 3, "po-icon-arrow-up", "po-icon-arrow-down", 4, "ngIf"], [1, "po-icon", "po-clickable"], ["type", "radio", 1, "po-table-radio"], [1, "po-table-radio-label", "po-clickable", 3, "click"], ["name", "checkbox", 3, "ngModel", "p-change", "ngModelChange", "click"], [1, "po-table-header-ellipsis", 3, "p-tooltip", "mouseenter", "mouseleave"], ["columnHeader", ""], [3, "po-table-header-icon-unselected", "po-table-header-icon-descending", "po-table-header-icon-ascending", 4, "ngIf"], [1, "po-table-header-fixed-inner"], ["class", "po-table-column po-table-column-single-action", 3, "width", "max-width", 4, "ngIf"], ["class", "po-table-column-actions", 4, "ngIf"], [1, "po-table-column", "po-table-column-single-action"], ["class", "po-table-single-action po-clickable", 3, "po-table-action-disabled", "click", 4, "ngIf"], [1, "po-table-single-action", "po-clickable", 3, "click"], ["class", "po-table-single-action-content", 3, "p-icon", 4, "ngIf"], [1, "po-table-single-action-content", 3, "p-icon"], [1, "po-table-column-actions"], [1, "po-icon", "po-icon-more", "po-clickable", 3, "click"], ["popupTarget", ""], [3, "p-columns", "p-max-columns", "p-target", "p-last-visible-columns-selected", "p-columns-default", "p-visible-columns-change", "p-change-visible-columns", "p-initial-columns"]], template: function PoTableComponent_Template(rf, ctx) {
|
|
19096
19240
|
if (rf & 1) {
|
|
19097
19241
|
i0.ɵɵtemplate(0, PoTableComponent_po_container_0_Template, 2, 2, "po-container", 0);
|
|
19098
19242
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_Template, 8, 10, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -19124,7 +19268,7 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
19124
19268
|
(function () {
|
|
19125
19269
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableComponent, [{
|
|
19126
19270
|
type: Component,
|
|
19127
|
-
args: [{ selector: 'po-table', providers: [PoDateService], template: "<po-container *ngIf=\"container; else tableContainerTemplate\" p-no-padding [p-no-shadow]=\"container === 'border'\">\n <ng-container *ngTemplateOutlet=\"tableContainerTemplate\"></ng-container>\n</po-container>\n\n<ng-template #tableContainerTemplate>\n <div [class.po-table-container-relative]=\"loading\">\n <div *ngIf=\"loading\" class=\"po-table-overlay\">\n <po-loading class=\"po-table-overlay-content\" [p-text]=\"literals.loadingData\"></po-loading>\n </div>\n\n <div class=\"po-table-main-container\">\n <div\n #tableWrapper\n class=\"po-table-wrapper\"\n [class.po-table-header-fixed-columns-pixels]=\"allColumnsWidthPixels\"\n [style.opacity]=\"tableOpacity\"\n >\n <div *ngIf=\"height\" class=\"po-table-container\" [style.height.px]=\"heightTableContainer\">\n <div #poTableThead class=\"po-table-header-fixed po-table-header\">\n <ng-container *ngTemplateOutlet=\"tableHeaderTemplate\"></ng-container>\n </div>\n\n <div #poTableTbody class=\"po-table-container-fixed-inner\">\n <ng-container *ngIf=\"height; then tableBodyTemplate; else tableTemplate\"></ng-container>\n </div>\n </div>\n\n <div *ngIf=\"!height\">\n <ng-container *ngTemplateOutlet=\"tableTemplate\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"po-table-footer\" *ngIf=\"hasFooter\">\n <ng-container *ngFor=\"let column of subtitleColumns; trackBy: trackBy\">\n <po-table-subtitle-footer [p-literals]=\"literals\" [p-subtitles]=\"column.subtitles\"> </po-table-subtitle-footer>\n </ng-container>\n </div>\n</ng-template>\n\n<div\n *ngIf=\"!infiniteScroll\"\n class=\"po-row po-table-footer-show-more\"\n [class.po-invisible]=\"showMore.observers.length === 0 && !hasService\"\n #tableFooter\n>\n <po-button\n class=\"po-offset-xl-4 po-offset-lg-4 po-offset-md-3 po-lg-4 po-md-6\"\n [p-disabled]=\"showMoreDisabled\"\n [p-label]=\"literals.loadMoreData\"\n [p-loading]=\"loadingShowMore\"\n (p-click)=\"onShowMore()\"\n >\n </po-button>\n</div>\n\n<ng-template #tableHeaderTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (click)=\"selectAllRows()\"\n (p-change)=\"selectAllRows()\"\n [(ngModel)]=\"selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n #headersTable\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width || '50px'\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction && !hideColumnsManager\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n type=\"button\"\n [attr.aria-label]=\"literals.columnsManager\"\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n </table>\n</ng-template>\n\n<!-- s\u00F3 virtual -->\n<ng-template #tableBodyTemplate>\n <cdk-virtual-scroll-viewport\n #poTableTbodyVirtual\n [itemSize]=\"itemSize\"\n [style.height.px]=\"heightTableVirtual\"\n [minBufferPx]=\"heightTableVirtual < 100 ? 100 : heightTableVirtual\"\n [maxBufferPx]=\"heightTableVirtual < 200 ? 200 : heightTableVirtual\"\n (scroll)=\"syncronizeHorizontalScroll()\"\n >\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *cdkVirtualFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr\n class=\"po-table-row\"\n [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\"\n >\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [style.width.px]=\"noColumnsHeader?.nativeElement.parentElement?.offsetWidth\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-column po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n </cdk-virtual-scroll-viewport>\n</ng-template>\n\n<ng-template #tableTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"!height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (click)=\"selectAllRows()\"\n (p-change)=\"selectAllRows()\"\n [(ngModel)]=\"selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n #headersTable\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n type=\"button\"\n [attr.aria-label]=\"literals.columnsManager\"\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *ngFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr class=\"po-table-row\" [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\">\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-row-no-data po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n</ng-template>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n\n<ng-template #poTableColumnDetail let-row=\"row\" let-rowIndex=\"rowIndex\">\n <span\n *ngIf=\"(containsMasterDetail(row) && !hasRowTemplate) || (isShowRowTemplate(row, rowIndex) && hasRowTemplate)\"\n class=\"po-icon po-clickable\"\n [class.po-icon-arrow-up]=\"row.$showDetail\"\n [class.po-icon-arrow-down]=\"!row.$showDetail\"\n >\n </span>\n</ng-template>\n\n<ng-template #inputRadio let-row>\n <input type=\"radio\" class=\"po-table-radio\" [class.po-table-radio-checked]=\"row.$selected\" />\n <label class=\"po-table-radio-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\n</ng-template>\n\n<ng-template #inputCheckbox let-row>\n <po-checkbox\n name=\"checkbox\"\n (p-change)=\"selectable ? selectRow(row) : 'javascript:;'\"\n [(ngModel)]=\"row.$selected\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n ></po-checkbox>\n</ng-template>\n\n<ng-template #contentHeaderTemplate let-column>\n <span\n #columnHeader\n class=\"po-table-header-ellipsis\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n {{ column.label || (column.property | titlecase) }}\n </span>\n <span\n *ngIf=\"sort && column.sortable !== false\"\n [class.po-table-header-icon-unselected]=\"sortedColumn?.property !== column\"\n [class.po-table-header-icon-descending]=\"sortedColumn?.property === column && sortedColumn.ascending\"\n [class.po-table-header-icon-ascending]=\"sortedColumn?.property === column && !sortedColumn.ascending\"\n >\n </span>\n</ng-template>\n\n<ng-template #noColumnsWithHeight>\n <div class=\"po-table-header-fixed-inner\" [style.width.px]=\"noColumnsHeader?.nativeElement.offsetWidth\">\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n </div>\n</ng-template>\n\n<ng-template #noColumnsWithoutHeight>\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n</ng-template>\n\n<!-- Template de a\u00E7\u00F5es -->\n<ng-template #ActionsColumnTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <td\n *ngIf=\"isSingleAction\"\n class=\"po-table-column po-table-column-single-action\"\n [style.width.px]=\"height && actionRight ? getWidthColumnManager() : ''\"\n [style.max-width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n [style.width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n >\n <div\n *ngIf=\"firstAction.visible !== false\"\n class=\"po-table-single-action po-clickable\"\n [class.po-table-action-disabled]=\"firstAction.disabled ? validateTableAction(row, firstAction) : false\"\n (click)=\"executeTableAction(row, firstAction)\"\n >\n <po-icon *ngIf=\"firstAction.icon\" class=\"po-table-single-action-content\" [p-icon]=\"firstAction.icon\"></po-icon>\n {{ firstAction.label }}\n </div>\n </td>\n\n <td *ngIf=\"visibleActions.length > 1\" class=\"po-table-column-actions\">\n <span #popupTarget class=\"po-icon po-icon-more po-clickable\" (click)=\"togglePopup(row, popupTarget)\"></span>\n </td>\n</ng-template>\n\n<po-table-column-manager\n *ngIf=\"!hideColumnsManager\"\n [p-columns]=\"columns\"\n [p-max-columns]=\"maxColumns\"\n [p-target]=\"columnManagerTarget\"\n [p-last-visible-columns-selected]=\"lastVisibleColumnsSelected\"\n (p-visible-columns-change)=\"onVisibleColumnsChange($event)\"\n (p-change-visible-columns)=\"onChangeVisibleColumns($event)\"\n [p-columns-default]=\"initialColumns\"\n (p-initial-columns)=\"onColumnRestoreManager($event)\"\n>\n</po-table-column-manager>\n" }]
|
|
19271
|
+
args: [{ selector: 'po-table', providers: [PoDateService], template: "<po-container *ngIf=\"container; else tableContainerTemplate\" p-no-padding [p-no-shadow]=\"container === 'border'\">\n <ng-container *ngTemplateOutlet=\"tableContainerTemplate\"></ng-container>\n</po-container>\n\n<ng-template #tableContainerTemplate>\n <div [class.po-table-container-relative]=\"loading\">\n <div *ngIf=\"loading\" class=\"po-table-overlay\">\n <po-loading class=\"po-table-overlay-content\" [p-text]=\"literals.loadingData\"></po-loading>\n </div>\n\n <div class=\"po-table-main-container\">\n <div\n #tableWrapper\n class=\"po-table-wrapper\"\n [class.po-table-header-fixed-columns-pixels]=\"allColumnsWidthPixels\"\n [style.opacity]=\"tableOpacity\"\n >\n <div *ngIf=\"height\" class=\"po-table-container\" [style.height.px]=\"heightTableContainer\">\n <div #poTableThead class=\"po-table-header-fixed po-table-header\">\n <ng-container *ngTemplateOutlet=\"tableHeaderTemplate\"></ng-container>\n </div>\n\n <div #poTableTbody class=\"po-table-container-fixed-inner\">\n <ng-container *ngIf=\"height; then tableBodyTemplate; else tableTemplate\"></ng-container>\n </div>\n </div>\n\n <div *ngIf=\"!height\">\n <ng-container *ngTemplateOutlet=\"tableTemplate\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"po-table-footer\" *ngIf=\"hasFooter\">\n <ng-container *ngFor=\"let column of subtitleColumns; trackBy: trackBy\">\n <po-table-subtitle-footer [p-literals]=\"literals\" [p-subtitles]=\"column.subtitles\"> </po-table-subtitle-footer>\n </ng-container>\n </div>\n</ng-template>\n\n<div\n *ngIf=\"!infiniteScroll\"\n class=\"po-row po-table-footer-show-more\"\n [class.po-invisible]=\"showMore.observers.length === 0 && !hasService\"\n #tableFooter\n>\n <po-button\n class=\"po-offset-xl-4 po-offset-lg-4 po-offset-md-3 po-lg-4 po-md-6\"\n [p-disabled]=\"showMoreDisabled\"\n [p-label]=\"literals.loadMoreData\"\n [p-loading]=\"loadingShowMore\"\n (p-click)=\"onShowMore()\"\n >\n </po-button>\n</div>\n\n<ng-template #tableHeaderTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (click)=\"selectAllRows()\"\n (p-change)=\"selectAllRows()\"\n [(ngModel)]=\"selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeftFixed\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeaderFixed class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction && !hideColumnsManager\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManagerFixed\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManagerFixed.offsetWidth : undefined\"\n >\n <button\n #columnManagerTargetFixed\n type=\"button\"\n [attr.aria-label]=\"literals.columnsManager\"\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n </table>\n</ng-template>\n\n<!-- s\u00F3 virtual -->\n<ng-template #tableBodyTemplate>\n <cdk-virtual-scroll-viewport\n #poTableTbodyVirtual\n [itemSize]=\"itemSize\"\n [style.height.px]=\"heightTableVirtual\"\n [minBufferPx]=\"heightTableVirtual < 100 ? 100 : heightTableVirtual\"\n [maxBufferPx]=\"heightTableVirtual < 200 ? 200 : heightTableVirtual\"\n (scroll)=\"syncronizeHorizontalScroll()\"\n >\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *cdkVirtualFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr\n class=\"po-table-row\"\n [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\"\n >\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"hasSelectableRow() ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [style.width.px]=\"noColumnsHeaderFixed?.nativeElement.parentElement?.offsetWidth\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-column po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n </cdk-virtual-scroll-viewport>\n</ng-template>\n\n<ng-template #tableTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"!height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (click)=\"selectAllRows()\"\n (p-change)=\"selectAllRows()\"\n [(ngModel)]=\"selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n type=\"button\"\n [attr.aria-label]=\"literals.columnsManager\"\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *ngFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr class=\"po-table-row\" [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\">\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"hasSelectableRow() ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-row-no-data po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n</ng-template>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n\n<ng-template #poTableColumnDetail let-row=\"row\" let-rowIndex=\"rowIndex\">\n <span\n *ngIf=\"(containsMasterDetail(row) && !hasRowTemplate) || (isShowRowTemplate(row, rowIndex) && hasRowTemplate)\"\n class=\"po-icon po-clickable\"\n [class.po-icon-arrow-up]=\"row.$showDetail\"\n [class.po-icon-arrow-down]=\"!row.$showDetail\"\n >\n </span>\n</ng-template>\n\n<ng-template #inputRadio let-row>\n <input type=\"radio\" class=\"po-table-radio\" [class.po-table-radio-checked]=\"row.$selected\" />\n <label class=\"po-table-radio-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\n</ng-template>\n\n<ng-template #inputCheckbox let-row>\n <po-checkbox\n name=\"checkbox\"\n (p-change)=\"selectable ? selectRow(row) : 'javascript:;'\"\n [(ngModel)]=\"row.$selected\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n ></po-checkbox>\n</ng-template>\n\n<ng-template #contentHeaderTemplate let-column>\n <span\n #columnHeader\n class=\"po-table-header-ellipsis\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n {{ column.label || (column.property | titlecase) }}\n </span>\n <span\n *ngIf=\"sort && column.sortable !== false\"\n [class.po-table-header-icon-unselected]=\"JSON.stringify(sortedColumn?.property) !== JSON.stringify(column)\"\n [class.po-table-header-icon-descending]=\"\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && sortedColumn.ascending\n \"\n [class.po-table-header-icon-ascending]=\"\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && !sortedColumn.ascending\n \"\n >\n </span>\n</ng-template>\n\n<ng-template #noColumnsWithHeight>\n <div class=\"po-table-header-fixed-inner\" [style.width.px]=\"noColumnsHeader?.nativeElement.offsetWidth\">\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n </div>\n</ng-template>\n\n<ng-template #noColumnsWithoutHeight>\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n</ng-template>\n\n<!-- Template de a\u00E7\u00F5es -->\n<ng-template #ActionsColumnTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <td\n *ngIf=\"isSingleAction\"\n class=\"po-table-column po-table-column-single-action\"\n [style.width.px]=\"height && actionRight ? getWidthColumnManager() : ''\"\n [style.max-width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n [style.width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n >\n <div\n *ngIf=\"firstAction.visible !== false\"\n class=\"po-table-single-action po-clickable\"\n [class.po-table-action-disabled]=\"firstAction.disabled ? validateTableAction(row, firstAction) : false\"\n (click)=\"executeTableAction(row, firstAction)\"\n >\n <po-icon *ngIf=\"firstAction.icon\" class=\"po-table-single-action-content\" [p-icon]=\"firstAction.icon\"></po-icon>\n {{ firstAction.label }}\n </div>\n </td>\n\n <td *ngIf=\"visibleActions.length > 1\" class=\"po-table-column-actions\">\n <span #popupTarget class=\"po-icon po-icon-more po-clickable\" (click)=\"togglePopup(row, popupTarget)\"></span>\n </td>\n</ng-template>\n\n<po-table-column-manager\n *ngIf=\"!hideColumnsManager\"\n [p-columns]=\"columns\"\n [p-max-columns]=\"maxColumns\"\n [p-target]=\"height ? columnManagerTargetFixed : columnManagerTarget\"\n [p-last-visible-columns-selected]=\"lastVisibleColumnsSelected\"\n (p-visible-columns-change)=\"onVisibleColumnsChange($event)\"\n (p-change-visible-columns)=\"onChangeVisibleColumns($event)\"\n [p-columns-default]=\"initialColumns\"\n (p-initial-columns)=\"onColumnRestoreManager($event)\"\n>\n</po-table-column-manager>\n" }]
|
|
19128
19272
|
}], function () { return [{ type: PoDateService }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: i1.DecimalPipe }, { type: i2.Router }, { type: PoTableService }]; }, { tableRowTemplate: [{
|
|
19129
19273
|
type: ContentChild,
|
|
19130
19274
|
args: [PoTableRowTemplateDirective, { static: true }]
|
|
@@ -19137,6 +19281,9 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
19137
19281
|
}], noColumnsHeader: [{
|
|
19138
19282
|
type: ViewChild,
|
|
19139
19283
|
args: ['noColumnsHeader', { read: ElementRef }]
|
|
19284
|
+
}], noColumnsHeaderFixed: [{
|
|
19285
|
+
type: ViewChild,
|
|
19286
|
+
args: ['noColumnsHeaderFixed', { read: ElementRef }]
|
|
19140
19287
|
}], poPopupComponent: [{
|
|
19141
19288
|
type: ViewChild,
|
|
19142
19289
|
args: ['popup']
|
|
@@ -19158,9 +19305,15 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
19158
19305
|
}], columnManager: [{
|
|
19159
19306
|
type: ViewChild,
|
|
19160
19307
|
args: ['columnManager', { read: ElementRef, static: false }]
|
|
19308
|
+
}], columnManagerFixed: [{
|
|
19309
|
+
type: ViewChild,
|
|
19310
|
+
args: ['columnManagerFixed', { read: ElementRef, static: false }]
|
|
19161
19311
|
}], columnActionLeft: [{
|
|
19162
19312
|
type: ViewChild,
|
|
19163
19313
|
args: ['columnActionLeft', { read: ElementRef, static: false }]
|
|
19314
|
+
}], columnActionLeftFixed: [{
|
|
19315
|
+
type: ViewChild,
|
|
19316
|
+
args: ['columnActionLeftFixed', { read: ElementRef, static: false }]
|
|
19164
19317
|
}], actionsIconElement: [{
|
|
19165
19318
|
type: ViewChildren,
|
|
19166
19319
|
args: ['actionsIconElement', { read: ElementRef }]
|
|
@@ -19170,6 +19323,9 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
19170
19323
|
}], columnManagerTarget: [{
|
|
19171
19324
|
type: ViewChild,
|
|
19172
19325
|
args: ['columnManagerTarget']
|
|
19326
|
+
}], columnManagerTargetFixed: [{
|
|
19327
|
+
type: ViewChild,
|
|
19328
|
+
args: ['columnManagerTargetFixed']
|
|
19173
19329
|
}] });
|
|
19174
19330
|
})();
|
|
19175
19331
|
|
|
@@ -19404,6 +19560,8 @@ class PoComboBaseComponent {
|
|
|
19404
19560
|
this.page = 1;
|
|
19405
19561
|
this.pageSize = 10;
|
|
19406
19562
|
this.loading = false;
|
|
19563
|
+
this.dynamicLabel = 'label';
|
|
19564
|
+
this.dynamicValue = 'value';
|
|
19407
19565
|
this.cacheStaticOptions = [];
|
|
19408
19566
|
this.comboOptionsList = [];
|
|
19409
19567
|
this.onModelTouched = null;
|
|
@@ -19508,6 +19666,9 @@ class PoComboBaseComponent {
|
|
|
19508
19666
|
* @default `value`
|
|
19509
19667
|
*/
|
|
19510
19668
|
set fieldValue(value) {
|
|
19669
|
+
if (!this.service && !this.filterService) {
|
|
19670
|
+
this.dynamicValue = value;
|
|
19671
|
+
}
|
|
19511
19672
|
this._fieldValue = value || PO_COMBO_FIELD_VALUE_DEFAULT;
|
|
19512
19673
|
if (isTypeof(this.filterService, 'string') && this.service) {
|
|
19513
19674
|
this.service.fieldValue = this._fieldValue;
|
|
@@ -19529,6 +19690,9 @@ class PoComboBaseComponent {
|
|
|
19529
19690
|
* @default `label`
|
|
19530
19691
|
*/
|
|
19531
19692
|
set fieldLabel(value) {
|
|
19693
|
+
if (!this.service && !this.filterService) {
|
|
19694
|
+
this.dynamicLabel = value;
|
|
19695
|
+
}
|
|
19532
19696
|
this._fieldLabel = value || PO_COMBO_FIELD_LABEL_DEFAULT;
|
|
19533
19697
|
if (isTypeof(this.filterService, 'string') && this.service) {
|
|
19534
19698
|
this.service.fieldLabel = this._fieldLabel;
|
|
@@ -19607,14 +19771,16 @@ class PoComboBaseComponent {
|
|
|
19607
19771
|
/**
|
|
19608
19772
|
* Nesta propriedade define a lista de opções do `po-combo`.
|
|
19609
19773
|
*
|
|
19610
|
-
* > A lista pode ser definida
|
|
19611
|
-
*
|
|
19612
|
-
*
|
|
19774
|
+
* > A lista pode ser definida utilizando um array com o valor representando o `value` e o `label` das seguintes formas:
|
|
19775
|
+
*
|
|
19776
|
+
* ```
|
|
19777
|
+
* <po-combo name="combo" p-label="PO Combo" [p-options]="[{value: 1, label: 'One'}, {value: 2, label: 'two'}]"> </po-combo>
|
|
19778
|
+
* ```
|
|
19779
|
+
*
|
|
19780
|
+
* ```
|
|
19781
|
+
* <po-combo name="combo" p-label="PO Combo" [p-options]="[{name: 'Roger', age: 28}, {name: 'Anne', age: 35}]" p-field-label="name" p-field-value="age"> </po-combo>
|
|
19782
|
+
* ```
|
|
19613
19783
|
*
|
|
19614
|
-
* **Importante:**
|
|
19615
|
-
* - A lista deve seguir as definições descritas nas respectivas interfaces, caso contrário não exibirá a(as) opção(ões) fora dos padrões.
|
|
19616
|
-
* - O componente interpretará o formato da lista de acordo com a interface utilizada e só exibirá as opções correspondentes à ela.
|
|
19617
|
-
* - Um agrupamento só será exibido se houver pelo menos uma opção válida.
|
|
19618
19784
|
* - Aconselha-se utilizar valores distintos no `label` e `value` dos itens.
|
|
19619
19785
|
*/
|
|
19620
19786
|
set options(options) {
|
|
@@ -19708,6 +19874,8 @@ class PoComboBaseComponent {
|
|
|
19708
19874
|
return this._options.length && this._options[0].hasOwnProperty('options');
|
|
19709
19875
|
}
|
|
19710
19876
|
ngOnInit() {
|
|
19877
|
+
this.dynamicValue = this.checkIfService('value');
|
|
19878
|
+
this.dynamicLabel = this.checkIfService('label');
|
|
19711
19879
|
this.updateComboList();
|
|
19712
19880
|
}
|
|
19713
19881
|
onInitService() {
|
|
@@ -19738,27 +19906,27 @@ class PoComboBaseComponent {
|
|
|
19738
19906
|
}
|
|
19739
19907
|
}
|
|
19740
19908
|
startsWith(search, option) {
|
|
19741
|
-
return option.
|
|
19909
|
+
return option[this.dynamicLabel].toLowerCase().startsWith(search.toLowerCase());
|
|
19742
19910
|
}
|
|
19743
19911
|
contains(search, option) {
|
|
19744
|
-
return option.
|
|
19912
|
+
return option[this.dynamicLabel].toLowerCase().indexOf(search.toLowerCase()) > -1;
|
|
19745
19913
|
}
|
|
19746
19914
|
endsWith(search, option) {
|
|
19747
|
-
return option.
|
|
19915
|
+
return option[this.dynamicLabel].toLowerCase().endsWith(search.toLowerCase());
|
|
19748
19916
|
}
|
|
19749
19917
|
getOptionFromValue(value, options) {
|
|
19750
|
-
return options ? options.find((option) => this.isEqual(option.
|
|
19918
|
+
return options ? options.find((option) => this.isEqual(option[this.dynamicValue], value)) : null;
|
|
19751
19919
|
}
|
|
19752
19920
|
getOptionFromLabel(label, options) {
|
|
19753
19921
|
if (options) {
|
|
19754
|
-
return options.find((option) => option.
|
|
19922
|
+
return options.find((option) => option[this.dynamicLabel].toString().toLowerCase() === label.toString().toLowerCase());
|
|
19755
19923
|
}
|
|
19756
19924
|
else {
|
|
19757
19925
|
return null;
|
|
19758
19926
|
}
|
|
19759
19927
|
}
|
|
19760
19928
|
updateSelectedValue(option, isUpdateModel = true) {
|
|
19761
|
-
const optionLabel = (option && option.
|
|
19929
|
+
const optionLabel = (option && option[this.dynamicLabel]) || '';
|
|
19762
19930
|
this.updateInternalVariables(option);
|
|
19763
19931
|
// atualiza o valor do input quando for changeOnEnter apenas se for para atualizar o model.
|
|
19764
19932
|
if (this.changeOnEnter && isUpdateModel) {
|
|
@@ -19768,7 +19936,7 @@ class PoComboBaseComponent {
|
|
|
19768
19936
|
this.setInputValue(optionLabel);
|
|
19769
19937
|
}
|
|
19770
19938
|
if (isUpdateModel) {
|
|
19771
|
-
const optionValue = (option === null || option === void 0 ? void 0 : option.
|
|
19939
|
+
const optionValue = (option === null || option === void 0 ? void 0 : option[this.dynamicValue]) !== undefined ? option[this.dynamicValue] : undefined;
|
|
19772
19940
|
this.updateModel(optionValue);
|
|
19773
19941
|
}
|
|
19774
19942
|
}
|
|
@@ -19795,7 +19963,7 @@ class PoComboBaseComponent {
|
|
|
19795
19963
|
addedOptionsGroupTitle = false;
|
|
19796
19964
|
return (optionsGroupTitle = option);
|
|
19797
19965
|
}
|
|
19798
|
-
if (option.
|
|
19966
|
+
if (option[this.dynamicLabel] && (this.compareMethod(search, option, filterMode) || this.service)) {
|
|
19799
19967
|
if (this.isOptionGroupList && !addedOptionsGroupTitle) {
|
|
19800
19968
|
newOptions.push(optionsGroupTitle);
|
|
19801
19969
|
addedOptionsGroupTitle = true;
|
|
@@ -19815,7 +19983,7 @@ class PoComboBaseComponent {
|
|
|
19815
19983
|
const newOptions = !options && !this.infiniteScroll && this.selectedValue ? [Object.assign({}, this.selectedOption)] : copyOptions;
|
|
19816
19984
|
this.visibleOptions = newOptions;
|
|
19817
19985
|
if (!this.selectedView && this.visibleOptions.length) {
|
|
19818
|
-
this.selectedView = copyOptions.find(option => option.
|
|
19986
|
+
this.selectedView = copyOptions.find(option => option[this.dynamicValue] !== undefined);
|
|
19819
19987
|
}
|
|
19820
19988
|
}
|
|
19821
19989
|
getNextOption(value, options, reverse = false) {
|
|
@@ -19823,13 +19991,13 @@ class PoComboBaseComponent {
|
|
|
19823
19991
|
let optionFound = null;
|
|
19824
19992
|
let found = false;
|
|
19825
19993
|
for (const option of optionsList) {
|
|
19826
|
-
if (option.
|
|
19994
|
+
if (option[this.dynamicValue] && !optionFound) {
|
|
19827
19995
|
optionFound = option;
|
|
19828
19996
|
}
|
|
19829
|
-
if (option.
|
|
19997
|
+
if (option[this.dynamicValue] && found) {
|
|
19830
19998
|
return option;
|
|
19831
19999
|
}
|
|
19832
|
-
if (this.isEqual(option.
|
|
20000
|
+
if (this.isEqual(option[this.dynamicValue], value)) {
|
|
19833
20001
|
found = true;
|
|
19834
20002
|
}
|
|
19835
20003
|
}
|
|
@@ -19852,17 +20020,17 @@ class PoComboBaseComponent {
|
|
|
19852
20020
|
if (!this.service) {
|
|
19853
20021
|
this.updateComboList([...this.cacheStaticOptions]);
|
|
19854
20022
|
}
|
|
19855
|
-
if (optionFound && optionFound.
|
|
20023
|
+
if (optionFound && optionFound[this.dynamicValue] !== this.selectedValue) {
|
|
19856
20024
|
this.updateSelectedValue(optionFound);
|
|
19857
|
-
this.previousSearchValue = optionFound.
|
|
20025
|
+
this.previousSearchValue = optionFound[this.dynamicLabel];
|
|
19858
20026
|
}
|
|
19859
|
-
else if (this.selectedValue && this.selectedOption && this.selectedOption.
|
|
20027
|
+
else if (this.selectedValue && this.selectedOption && this.selectedOption[this.dynamicLabel] !== inputValue) {
|
|
19860
20028
|
this.updateSelectedValueWithOldOption();
|
|
19861
|
-
this.previousSearchValue = this.selectedOption.
|
|
20029
|
+
this.previousSearchValue = this.selectedOption[this.dynamicLabel];
|
|
19862
20030
|
return;
|
|
19863
20031
|
}
|
|
19864
20032
|
else if (inputValue && !optionFound) {
|
|
19865
|
-
const isInputValueDiffSelectedLabel = !!(this.selectedOption && this.selectedOption.
|
|
20033
|
+
const isInputValueDiffSelectedLabel = !!(this.selectedOption && this.selectedOption[this.dynamicLabel] !== inputValue);
|
|
19866
20034
|
this.updateSelectedValue(null, isInputValueDiffSelectedLabel || this.changeOnEnter);
|
|
19867
20035
|
this.previousSearchValue = '';
|
|
19868
20036
|
return;
|
|
@@ -19943,17 +20111,33 @@ class PoComboBaseComponent {
|
|
|
19943
20111
|
this.cacheStaticOptions = this.comboOptionsList;
|
|
19944
20112
|
this.updateComboList();
|
|
19945
20113
|
}
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
20114
|
+
checkIfService(dynamicValue) {
|
|
20115
|
+
if ((this.service || this.filterService) && dynamicValue === 'label') {
|
|
20116
|
+
return PO_COMBO_FIELD_LABEL_DEFAULT;
|
|
20117
|
+
}
|
|
20118
|
+
if ((this.service || this.filterService) && dynamicValue === 'value') {
|
|
20119
|
+
return PO_COMBO_FIELD_VALUE_DEFAULT;
|
|
20120
|
+
}
|
|
20121
|
+
if (!this.service && dynamicValue === 'label') {
|
|
20122
|
+
return this.fieldLabel;
|
|
20123
|
+
}
|
|
20124
|
+
if (!this.service && dynamicValue === 'value') {
|
|
20125
|
+
return this.fieldValue;
|
|
20126
|
+
}
|
|
20127
|
+
}
|
|
20128
|
+
compareOptions(dynamicLabel) {
|
|
20129
|
+
return function (optionA, optionB) {
|
|
20130
|
+
const labelA = optionA[dynamicLabel].toString().toLowerCase();
|
|
20131
|
+
const labelB = optionB[dynamicLabel].toString().toLowerCase();
|
|
20132
|
+
return labelA < labelB ? -1 : labelA > labelB ? 1 : 0;
|
|
20133
|
+
};
|
|
19950
20134
|
}
|
|
19951
20135
|
hasDuplicatedOption(options, currentOption, accumulatedGroupOptions) {
|
|
19952
20136
|
if (accumulatedGroupOptions) {
|
|
19953
|
-
return accumulatedGroupOptions.some(option => option.
|
|
20137
|
+
return accumulatedGroupOptions.some(option => option[this.dynamicLabel] === currentOption);
|
|
19954
20138
|
}
|
|
19955
20139
|
else {
|
|
19956
|
-
return options.some(option => option.
|
|
20140
|
+
return options.some(option => option[this.dynamicValue] === currentOption);
|
|
19957
20141
|
}
|
|
19958
20142
|
}
|
|
19959
20143
|
listingComboOptions(comboOptions) {
|
|
@@ -19967,20 +20151,21 @@ class PoComboBaseComponent {
|
|
|
19967
20151
|
}
|
|
19968
20152
|
sortOptions(comboOptionsList) {
|
|
19969
20153
|
if (comboOptionsList.length > 0 && this.sort) {
|
|
19970
|
-
return comboOptionsList.sort(this.compareOptions);
|
|
20154
|
+
return comboOptionsList.sort(this.compareOptions(this.dynamicLabel));
|
|
19971
20155
|
}
|
|
19972
20156
|
}
|
|
19973
20157
|
validateValue(currentOption, verifyingOptionsGroup = false) {
|
|
19974
|
-
const {
|
|
20158
|
+
const { options } = currentOption;
|
|
19975
20159
|
if (this.isOptionGroupList) {
|
|
19976
|
-
return ((validValue(
|
|
20160
|
+
return ((validValue(currentOption[this.dynamicLabel]) && options && options.length > 0) ||
|
|
20161
|
+
(verifyingOptionsGroup === true && validValue(currentOption[this.dynamicValue])));
|
|
19977
20162
|
}
|
|
19978
|
-
return validValue(
|
|
20163
|
+
return validValue(currentOption[this.dynamicValue]) && !options;
|
|
19979
20164
|
}
|
|
19980
20165
|
verifyComboOptions(comboOptions, verifyingOptionsGroup = false, accumulatedGroupOptions) {
|
|
19981
20166
|
return comboOptions.reduce((accumulatedOptions, currentOption) => {
|
|
19982
20167
|
if (!this.verifyIfHasLabel(currentOption) ||
|
|
19983
|
-
this.hasDuplicatedOption(accumulatedOptions, currentOption[
|
|
20168
|
+
this.hasDuplicatedOption(accumulatedOptions, currentOption[this.dynamicValue] || currentOption[this.dynamicLabel], accumulatedGroupOptions) ||
|
|
19984
20169
|
!this.validateValue(currentOption, verifyingOptionsGroup)) {
|
|
19985
20170
|
return accumulatedOptions;
|
|
19986
20171
|
}
|
|
@@ -19990,22 +20175,24 @@ class PoComboBaseComponent {
|
|
|
19990
20175
|
}
|
|
19991
20176
|
verifyComboOptionsGroup(comboOptionsList) {
|
|
19992
20177
|
return comboOptionsList.reduce((accumulatedGroupOptions, currentOption) => {
|
|
19993
|
-
const { options
|
|
20178
|
+
const { options } = currentOption;
|
|
19994
20179
|
const verifiedComboOptionsGroupList = this.verifyComboOptions(options, true, accumulatedGroupOptions);
|
|
19995
20180
|
if (verifiedComboOptionsGroupList.length > 0) {
|
|
19996
20181
|
this.sortOptions(verifiedComboOptionsGroupList);
|
|
19997
|
-
accumulatedGroupOptions.push({ label:
|
|
20182
|
+
accumulatedGroupOptions.push({ label: currentOption[this.dynamicLabel], options: true }, ...verifiedComboOptionsGroupList);
|
|
19998
20183
|
}
|
|
19999
20184
|
return accumulatedGroupOptions;
|
|
20000
20185
|
}, []);
|
|
20001
20186
|
}
|
|
20002
20187
|
verifyIfHasLabel(currentOption = {}) {
|
|
20003
|
-
const {
|
|
20004
|
-
if ((this.isOptionGroupList && options && !
|
|
20188
|
+
const { options } = currentOption;
|
|
20189
|
+
if ((this.isOptionGroupList && options && !currentOption[this.dynamicLabel]) ||
|
|
20190
|
+
(!currentOption[this.dynamicLabel] && !currentOption[this.dynamicValue]) ||
|
|
20191
|
+
(!this.isOptionGroupList && options)) {
|
|
20005
20192
|
return false;
|
|
20006
20193
|
}
|
|
20007
|
-
if (!currentOption.
|
|
20008
|
-
currentOption.
|
|
20194
|
+
if (!currentOption[this.dynamicLabel]) {
|
|
20195
|
+
currentOption[this.dynamicLabel] = currentOption[this.dynamicValue].toString();
|
|
20009
20196
|
return true;
|
|
20010
20197
|
}
|
|
20011
20198
|
return true;
|
|
@@ -20032,7 +20219,7 @@ class PoComboBaseComponent {
|
|
|
20032
20219
|
}
|
|
20033
20220
|
updateSelectedValueWithOldOption() {
|
|
20034
20221
|
const oldOption = this.getOptionFromValue(this.selectedValue, this.comboOptionsList);
|
|
20035
|
-
if (oldOption && oldOption.
|
|
20222
|
+
if (oldOption && oldOption[this.dynamicLabel]) {
|
|
20036
20223
|
return this.updateSelectedValue(oldOption);
|
|
20037
20224
|
}
|
|
20038
20225
|
}
|
|
@@ -20384,8 +20571,9 @@ function PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template(rf,
|
|
|
20384
20571
|
}
|
|
20385
20572
|
if (rf & 2) {
|
|
20386
20573
|
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20574
|
+
const ctx_r27 = i0.ɵɵnextContext(2);
|
|
20387
20575
|
i0.ɵɵadvance(1);
|
|
20388
|
-
i0.ɵɵtextInterpolate(option_r21.
|
|
20576
|
+
i0.ɵɵtextInterpolate(option_r21[ctx_r27.dynamicLabel]);
|
|
20389
20577
|
}
|
|
20390
20578
|
}
|
|
20391
20579
|
function PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template(rf, ctx) {
|
|
@@ -20398,7 +20586,7 @@ function PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Templa
|
|
|
20398
20586
|
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20399
20587
|
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
20400
20588
|
i0.ɵɵadvance(1);
|
|
20401
|
-
i0.ɵɵproperty("innerHTML", ctx_r29.getLabelFormatted(option_r21 == null ? null : option_r21.
|
|
20589
|
+
i0.ɵɵproperty("innerHTML", ctx_r29.getLabelFormatted(option_r21 == null ? null : option_r21[ctx_r29.dynamicLabel]), i0.ɵɵsanitizeHtml);
|
|
20402
20590
|
}
|
|
20403
20591
|
}
|
|
20404
20592
|
function PoComboComponent_ng_template_18_li_3_ng_template_2_Template(rf, ctx) {
|
|
@@ -20759,7 +20947,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
20759
20947
|
}
|
|
20760
20948
|
}
|
|
20761
20949
|
controlApplyFilter(value) {
|
|
20762
|
-
if (!this.isProcessingValueByTab && (!this.selectedOption || value !== this.selectedOption.
|
|
20950
|
+
if (!this.isProcessingValueByTab && (!this.selectedOption || value !== this.selectedOption[this.dynamicLabel])) {
|
|
20763
20951
|
this.defaultService.hasNext = true;
|
|
20764
20952
|
this.page = this.setPage();
|
|
20765
20953
|
this.options = [];
|
|
@@ -20768,13 +20956,14 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
20768
20956
|
this.isProcessingValueByTab = false;
|
|
20769
20957
|
}
|
|
20770
20958
|
applyFilter(value, reset = false) {
|
|
20959
|
+
var _a;
|
|
20771
20960
|
if (this.defaultService.hasNext) {
|
|
20772
20961
|
this.controlComboVisibility(false, reset);
|
|
20773
20962
|
this.isServerSearching = true;
|
|
20774
20963
|
const param = this.infiniteScroll
|
|
20775
20964
|
? { property: this.fieldLabel, value, page: this.page, pageSize: this.pageSize }
|
|
20776
20965
|
: { property: this.fieldLabel, value };
|
|
20777
|
-
this.filterSubscription = this.service.getFilteredData(param, this.filterParams).subscribe(items => this.setOptionsByApplyFilter(value, items, reset), error => this.onErrorFilteredData());
|
|
20966
|
+
this.filterSubscription = (_a = this.service) === null || _a === void 0 ? void 0 : _a.getFilteredData(param, this.filterParams).subscribe(items => this.setOptionsByApplyFilter(value, items, reset), error => this.onErrorFilteredData());
|
|
20778
20967
|
}
|
|
20779
20968
|
}
|
|
20780
20969
|
setOptionsByApplyFilter(value, items, reset = false) {
|
|
@@ -20792,7 +20981,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
20792
20981
|
}
|
|
20793
20982
|
getObjectByValue(value) {
|
|
20794
20983
|
var _a;
|
|
20795
|
-
if (this.selectedValue !== value && ((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.
|
|
20984
|
+
if (this.selectedValue !== value && ((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a[this.dynamicLabel]) !== value) {
|
|
20796
20985
|
this.isProcessingValueByTab = true;
|
|
20797
20986
|
this.getSubscription = this.service.getObjectByValue(value, this.filterParams).subscribe(item => this.updateOptionByFilteredValue(item), error => this.onErrorGetObjectByValue());
|
|
20798
20987
|
}
|
|
@@ -20810,26 +20999,26 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
20810
20999
|
}, this.debounceTime);
|
|
20811
21000
|
}
|
|
20812
21001
|
selectPreviousOption() {
|
|
20813
|
-
const currentViewValue = this.selectedView && this.selectedView.
|
|
21002
|
+
const currentViewValue = this.selectedView && this.selectedView[this.dynamicValue];
|
|
20814
21003
|
if (currentViewValue) {
|
|
20815
21004
|
const nextOption = this.getNextOption(currentViewValue, this.visibleOptions, true);
|
|
20816
|
-
this.updateSelectedValue(nextOption, nextOption && nextOption.
|
|
21005
|
+
this.updateSelectedValue(nextOption, nextOption && nextOption[this.dynamicValue] !== currentViewValue && !this.changeOnEnter);
|
|
20817
21006
|
}
|
|
20818
21007
|
else if (this.visibleOptions.length) {
|
|
20819
21008
|
const visibleOption = this.visibleOptions[this.visibleOptions.length - 1];
|
|
20820
|
-
this.updateSelectedValue(visibleOption, visibleOption.
|
|
21009
|
+
this.updateSelectedValue(visibleOption, visibleOption[this.dynamicValue] !== currentViewValue && !this.changeOnEnter);
|
|
20821
21010
|
}
|
|
20822
21011
|
}
|
|
20823
21012
|
selectNextOption() {
|
|
20824
|
-
const currentViewValue = this.selectedView && this.selectedView.
|
|
21013
|
+
const currentViewValue = this.selectedView && this.selectedView[this.dynamicValue];
|
|
20825
21014
|
if (currentViewValue) {
|
|
20826
21015
|
const nextOption = this.getNextOption(currentViewValue, this.visibleOptions);
|
|
20827
|
-
this.updateSelectedValue(nextOption, nextOption && nextOption.
|
|
21016
|
+
this.updateSelectedValue(nextOption, nextOption && nextOption[this.dynamicValue] !== currentViewValue && !this.changeOnEnter);
|
|
20828
21017
|
}
|
|
20829
21018
|
else if (this.visibleOptions.length) {
|
|
20830
21019
|
const index = this.changeOnEnter ? 1 : 0;
|
|
20831
21020
|
const visibleOption = this.visibleOptions[index];
|
|
20832
|
-
this.updateSelectedValue(visibleOption, visibleOption.
|
|
21021
|
+
this.updateSelectedValue(visibleOption, visibleOption[this.dynamicValue] !== currentViewValue && !this.changeOnEnter);
|
|
20833
21022
|
}
|
|
20834
21023
|
}
|
|
20835
21024
|
toggleComboVisibility() {
|
|
@@ -20853,7 +21042,8 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
20853
21042
|
}
|
|
20854
21043
|
onOptionClick(option, event) {
|
|
20855
21044
|
const inputValue = this.getInputValue();
|
|
20856
|
-
const isUpdateModel = option.
|
|
21045
|
+
const isUpdateModel = option[this.dynamicValue] !== this.selectedValue ||
|
|
21046
|
+
!!(this.selectedView && inputValue !== this.selectedView[this.dynamicLabel]);
|
|
20857
21047
|
if (event) {
|
|
20858
21048
|
event.stopPropagation();
|
|
20859
21049
|
}
|
|
@@ -20862,7 +21052,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
20862
21052
|
if (!this.service) {
|
|
20863
21053
|
this.updateComboList([...this.cacheStaticOptions]);
|
|
20864
21054
|
}
|
|
20865
|
-
this.previousSearchValue = this.selectedView.
|
|
21055
|
+
this.previousSearchValue = this.selectedView[this.dynamicLabel];
|
|
20866
21056
|
}
|
|
20867
21057
|
scrollTo(index) {
|
|
20868
21058
|
const selectedItem = this.element.nativeElement.querySelectorAll('.po-combo-item-selected');
|
|
@@ -21181,7 +21371,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
21181
21371
|
useExisting: forwardRef(() => PoComboComponent),
|
|
21182
21372
|
multi: true
|
|
21183
21373
|
}
|
|
21184
|
-
], 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 *ngIf=\"clean && !disabled\" (p-change-event)=\"clear($event)\" [p-element-ref]=\"inputEl\"> </po-clean>\n <span\n #iconArrow\n class=\"po-icon po-field-icon {{ comboIcon }}\"\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\">{{
|
|
21374
|
+
], 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 *ngIf=\"clean && !disabled\" (p-change-event)=\"clear($event)\" [p-element-ref]=\"inputEl\"> </po-clean>\n <span\n #iconArrow\n class=\"po-icon po-field-icon {{ comboIcon }}\"\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" }]
|
|
21185
21375
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i3.DomSanitizer }, { type: PoLanguageService }]; }, { comboOptionTemplate: [{
|
|
21186
21376
|
type: ContentChild,
|
|
21187
21377
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -21506,6 +21696,26 @@ class PoDatepickerRangeBaseComponent {
|
|
|
21506
21696
|
get startDate() {
|
|
21507
21697
|
return this._startDate;
|
|
21508
21698
|
}
|
|
21699
|
+
/**
|
|
21700
|
+
* @optional
|
|
21701
|
+
*
|
|
21702
|
+
* @description
|
|
21703
|
+
*
|
|
21704
|
+
* Idioma que o calendário utilizará para exibir as datas.
|
|
21705
|
+
*
|
|
21706
|
+
* > O locale padrão será recuperado com base no [`PoI18nService`](/documentation/po-i18n) ou *browser*.
|
|
21707
|
+
*/
|
|
21708
|
+
set locale(value) {
|
|
21709
|
+
if (value) {
|
|
21710
|
+
this._locale = value.length >= 2 ? value : poLocaleDefault;
|
|
21711
|
+
}
|
|
21712
|
+
else {
|
|
21713
|
+
this._locale = this.language;
|
|
21714
|
+
}
|
|
21715
|
+
}
|
|
21716
|
+
get locale() {
|
|
21717
|
+
return this._locale || this.language;
|
|
21718
|
+
}
|
|
21509
21719
|
// Função implementada do ControlValueAccessor
|
|
21510
21720
|
// Usada para interceptar os estados de habilitado via forms api
|
|
21511
21721
|
setDisabledState(isDisabled) {
|
|
@@ -21669,7 +21879,7 @@ class PoDatepickerRangeBaseComponent {
|
|
|
21669
21879
|
}
|
|
21670
21880
|
}
|
|
21671
21881
|
PoDatepickerRangeBaseComponent.ɵfac = function PoDatepickerRangeBaseComponent_Factory(t) { return new (t || PoDatepickerRangeBaseComponent)(i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
21672
|
-
PoDatepickerRangeBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerRangeBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], help: ["p-help", "help"], label: ["p-label", "label"], optional: ["p-optional", "optional"], clean: ["p-clean", "clean"], disabled: ["p-disabled", "disabled"], endDate: ["p-end-date", "endDate"], literals: ["p-literals", "literals"], minDate: ["p-min-date", "minDate"], maxDate: ["p-max-date", "maxDate"], noAutocomplete: ["p-no-autocomplete", "noAutocomplete"], readonly: ["p-readonly", "readonly"], required: ["p-required", "required"], startDate: ["p-start-date", "startDate"] }, outputs: { onChange: "p-change" } });
|
|
21882
|
+
PoDatepickerRangeBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerRangeBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], help: ["p-help", "help"], label: ["p-label", "label"], optional: ["p-optional", "optional"], clean: ["p-clean", "clean"], disabled: ["p-disabled", "disabled"], endDate: ["p-end-date", "endDate"], literals: ["p-literals", "literals"], minDate: ["p-min-date", "minDate"], maxDate: ["p-max-date", "maxDate"], noAutocomplete: ["p-no-autocomplete", "noAutocomplete"], readonly: ["p-readonly", "readonly"], required: ["p-required", "required"], startDate: ["p-start-date", "startDate"], locale: ["p-locale", "locale"] }, outputs: { onChange: "p-change" } });
|
|
21673
21883
|
__decorate([
|
|
21674
21884
|
InputBoolean()
|
|
21675
21885
|
], PoDatepickerRangeBaseComponent.prototype, "autoFocus", void 0);
|
|
@@ -21721,6 +21931,9 @@ __decorate([
|
|
|
21721
21931
|
}], startDate: [{
|
|
21722
21932
|
type: Input,
|
|
21723
21933
|
args: ['p-start-date']
|
|
21934
|
+
}], locale: [{
|
|
21935
|
+
type: Input,
|
|
21936
|
+
args: ['p-locale']
|
|
21724
21937
|
}] });
|
|
21725
21938
|
})();
|
|
21726
21939
|
|
|
@@ -21749,7 +21962,7 @@ function PoDatepickerRangeComponent_ng_container_17_Template(rf, ctx) {
|
|
|
21749
21962
|
if (rf & 2) {
|
|
21750
21963
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
21751
21964
|
i0.ɵɵadvance(3);
|
|
21752
|
-
i0.ɵɵproperty("ngModel", ctx_r5.dateRange)("p-max-date", ctx_r5.maxDate)("p-min-date", ctx_r5.minDate);
|
|
21965
|
+
i0.ɵɵproperty("ngModel", ctx_r5.dateRange)("p-max-date", ctx_r5.maxDate)("p-min-date", ctx_r5.minDate)("p-locale", ctx_r5.locale);
|
|
21753
21966
|
}
|
|
21754
21967
|
}
|
|
21755
21968
|
const arrowLeftKey = 37;
|
|
@@ -22180,7 +22393,7 @@ PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
22180
22393
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconCalendar = _t.first);
|
|
22181
22394
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendarPicker = _t.first);
|
|
22182
22395
|
}
|
|
22183
|
-
}, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 18, vars: 20, 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"], [3, "p-change-event", 4, "ngIf"], [1, "po-icon", "po-field-icon", "po-icon-calendar", 3, "click"], ["iconCalendar", ""], [3, "p-error-pattern"], [4, "ngIf"], [3, "p-change-event"], [1, "po-calendar-range-picker"], ["calendarPicker", ""], ["p-mode", "range", 3, "ngModel", "p-max-date", "p-min-date", "ngModelChange"]], template: function PoDatepickerRangeComponent_Template(rf, ctx) {
|
|
22396
|
+
}, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 18, vars: 20, 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"], [3, "p-change-event", 4, "ngIf"], [1, "po-icon", "po-field-icon", "po-icon-calendar", 3, "click"], ["iconCalendar", ""], [3, "p-error-pattern"], [4, "ngIf"], [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) {
|
|
22184
22397
|
if (rf & 1) {
|
|
22185
22398
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1, 2)(3, "div", 3)(4, "input", 4, 5);
|
|
22186
22399
|
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); });
|
|
@@ -22199,7 +22412,7 @@ PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
22199
22412
|
i0.ɵɵelementEnd()()();
|
|
22200
22413
|
i0.ɵɵelement(16, "po-field-container-bottom", 13);
|
|
22201
22414
|
i0.ɵɵelementEnd();
|
|
22202
|
-
i0.ɵɵtemplate(17, PoDatepickerRangeComponent_ng_container_17_Template, 4,
|
|
22415
|
+
i0.ɵɵtemplate(17, PoDatepickerRangeComponent_ng_container_17_Template, 4, 4, "ng-container", 14);
|
|
22203
22416
|
}
|
|
22204
22417
|
if (rf & 2) {
|
|
22205
22418
|
i0.ɵɵproperty("p-help", ctx.help)("p-label", ctx.label)("p-optional", !ctx.required && ctx.optional);
|
|
@@ -22222,7 +22435,7 @@ PoDatepickerRangeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
22222
22435
|
(function () {
|
|
22223
22436
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerRangeComponent, [{
|
|
22224
22437
|
type: Component,
|
|
22225
|
-
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div #dateRangeField class=\"po-datepicker-range-field po-input\" [class.po-datepicker-range-field-disabled]=\"disabled\">\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 [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 *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\"\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 (ngModelChange)=\"onCalendarChange($event)\"\n ></po-calendar>\n </div>\n</ng-container>\n" }]
|
|
22438
|
+
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-help]=\"help\" [p-label]=\"label\" [p-optional]=\"!required && optional\">\n <div #dateRangeField class=\"po-datepicker-range-field po-input\" [class.po-datepicker-range-field-disabled]=\"disabled\">\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 [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 *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\"\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" }]
|
|
22226
22439
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoDateService }, { type: i0.ElementRef }, { type: PoLanguageService }]; }, { dateRangeField: [{
|
|
22227
22440
|
type: ViewChild,
|
|
22228
22441
|
args: ['dateRangeField', { read: ElementRef, static: true }]
|
|
@@ -23908,6 +24121,26 @@ class PoLookupBaseComponent {
|
|
|
23908
24121
|
* Por parâmetro será passado o novo valor.
|
|
23909
24122
|
*/
|
|
23910
24123
|
this.change = new EventEmitter();
|
|
24124
|
+
/**
|
|
24125
|
+
* @optional
|
|
24126
|
+
*
|
|
24127
|
+
* @description
|
|
24128
|
+
* Evento disparado ao fechar o popover do gerenciador de colunas após alterar as colunas visíveis.
|
|
24129
|
+
*
|
|
24130
|
+
* O componente envia como parâmetro um array de string com as colunas visíveis atualizadas.
|
|
24131
|
+
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
24132
|
+
*/
|
|
24133
|
+
this.changeVisibleColumns = new EventEmitter();
|
|
24134
|
+
/**
|
|
24135
|
+
* @optional
|
|
24136
|
+
*
|
|
24137
|
+
* @description
|
|
24138
|
+
* Evento disparado ao clicar no botão de restaurar padrão no gerenciador de colunas.
|
|
24139
|
+
*
|
|
24140
|
+
* O componente envia como parâmetro um array de string com as colunas configuradas inicialmente.
|
|
24141
|
+
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
24142
|
+
*/
|
|
24143
|
+
this.columnRestoreManager = new EventEmitter();
|
|
23911
24144
|
this.selectedOptions = [];
|
|
23912
24145
|
this.oldValue = '';
|
|
23913
24146
|
this.oldValueToModel = null;
|
|
@@ -24217,7 +24450,7 @@ class PoLookupBaseComponent {
|
|
|
24217
24450
|
}
|
|
24218
24451
|
}
|
|
24219
24452
|
PoLookupBaseComponent.ɵfac = function PoLookupBaseComponent_Factory(t) { return new (t || PoLookupBaseComponent)(i0.ɵɵdirectiveInject(PoLookupFilterService), i0.ɵɵdirectiveInject(Injector)); };
|
|
24220
|
-
PoLookupBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoLookupBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], literals: ["p-literals", "literals"], help: ["p-help", "help"], placeholder: ["p-placeholder", "placeholder"], name: "name", fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], filterParams: ["p-filter-params", "filterParams"], fieldFormat: ["p-field-format", "fieldFormat"], columns: ["p-columns", "columns"], optional: ["p-optional", "optional"], advancedFilters: ["p-advanced-filters", "advancedFilters"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], clean: ["p-clean", "clean"], multiple: ["p-multiple", "multiple"], autoHeight: ["p-auto-height", "autoHeight"], filterService: ["p-filter-service", "filterService"], noAutocomplete: ["p-no-autocomplete", "noAutocomplete"], required: ["p-required", "required"], disabled: ["p-disabled", "disabled"] }, outputs: { onError: "p-error", selected: "p-selected", change: "p-change" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
24453
|
+
PoLookupBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoLookupBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], literals: ["p-literals", "literals"], help: ["p-help", "help"], placeholder: ["p-placeholder", "placeholder"], name: "name", fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], filterParams: ["p-filter-params", "filterParams"], fieldFormat: ["p-field-format", "fieldFormat"], columns: ["p-columns", "columns"], optional: ["p-optional", "optional"], advancedFilters: ["p-advanced-filters", "advancedFilters"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], clean: ["p-clean", "clean"], multiple: ["p-multiple", "multiple"], autoHeight: ["p-auto-height", "autoHeight"], filterService: ["p-filter-service", "filterService"], noAutocomplete: ["p-no-autocomplete", "noAutocomplete"], required: ["p-required", "required"], disabled: ["p-disabled", "disabled"] }, outputs: { onError: "p-error", selected: "p-selected", change: "p-change", changeVisibleColumns: "p-change-visible-columns", columnRestoreManager: "p-restore-column-manager" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
24221
24454
|
__decorate([
|
|
24222
24455
|
InputBoolean()
|
|
24223
24456
|
], PoLookupBaseComponent.prototype, "autoFocus", void 0);
|
|
@@ -24301,6 +24534,12 @@ __decorate([
|
|
|
24301
24534
|
}], change: [{
|
|
24302
24535
|
type: Output,
|
|
24303
24536
|
args: ['p-change']
|
|
24537
|
+
}], changeVisibleColumns: [{
|
|
24538
|
+
type: Output,
|
|
24539
|
+
args: ['p-change-visible-columns']
|
|
24540
|
+
}], columnRestoreManager: [{
|
|
24541
|
+
type: Output,
|
|
24542
|
+
args: ['p-restore-column-manager']
|
|
24304
24543
|
}], filterService: [{
|
|
24305
24544
|
type: Input,
|
|
24306
24545
|
args: ['p-filter-service']
|
|
@@ -24392,6 +24631,26 @@ class PoLookupModalBaseComponent {
|
|
|
24392
24631
|
this.multiple = false;
|
|
24393
24632
|
/** Evento utilizado ao selecionar um registro da tabela. */
|
|
24394
24633
|
this.model = new EventEmitter();
|
|
24634
|
+
/**
|
|
24635
|
+
* @optional
|
|
24636
|
+
*
|
|
24637
|
+
* @description
|
|
24638
|
+
* Evento disparado ao fechar o popover do gerenciador de colunas após alterar as colunas visíveis.
|
|
24639
|
+
*
|
|
24640
|
+
* O componente envia como parâmetro um array de string com as colunas visíveis atualizadas.
|
|
24641
|
+
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
24642
|
+
*/
|
|
24643
|
+
this.changeVisibleColumns = new EventEmitter();
|
|
24644
|
+
/**
|
|
24645
|
+
* @optional
|
|
24646
|
+
*
|
|
24647
|
+
* @description
|
|
24648
|
+
* Evento disparado ao clicar no botão de restaurar padrão no gerenciador de colunas.
|
|
24649
|
+
*
|
|
24650
|
+
* O componente envia como parâmetro um array de string com as colunas configuradas inicialmente.
|
|
24651
|
+
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
24652
|
+
*/
|
|
24653
|
+
this.columnRestoreManager = new EventEmitter();
|
|
24395
24654
|
this.hasNext = true;
|
|
24396
24655
|
this.isLoading = false;
|
|
24397
24656
|
this.page = 1;
|
|
@@ -24649,7 +24908,7 @@ PoLookupModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type:
|
|
|
24649
24908
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poModal = _t.first);
|
|
24650
24909
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTable = _t.first);
|
|
24651
24910
|
}
|
|
24652
|
-
}, inputs: { advancedFilters: ["p-advanced-filters", "advancedFilters"], columns: ["p-columns", "columns"], items: ["p-items", "items"], filterService: ["p-filter-service", "filterService"], filterParams: ["p-filter-params", "filterParams"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], multiple: ["p-multiple", "multiple"], selectedItems: ["p-selected-items", "selectedItems"], fieldLabel: ["p-field-label", "fieldLabel"], fieldValue: ["p-field-value", "fieldValue"], literals: ["p-literals", "literals"], title: ["p-title", "title"] }, outputs: { model: "p-change-model" } });
|
|
24911
|
+
}, inputs: { advancedFilters: ["p-advanced-filters", "advancedFilters"], columns: ["p-columns", "columns"], items: ["p-items", "items"], filterService: ["p-filter-service", "filterService"], filterParams: ["p-filter-params", "filterParams"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], multiple: ["p-multiple", "multiple"], selectedItems: ["p-selected-items", "selectedItems"], fieldLabel: ["p-field-label", "fieldLabel"], fieldValue: ["p-field-value", "fieldValue"], literals: ["p-literals", "literals"], title: ["p-title", "title"] }, outputs: { model: "p-change-model", changeVisibleColumns: "p-change-visible-columns", columnRestoreManager: "p-restore-column-manager" } });
|
|
24653
24912
|
__decorate([
|
|
24654
24913
|
InputBoolean()
|
|
24655
24914
|
], PoLookupModalBaseComponent.prototype, "infiniteScroll", void 0);
|
|
@@ -24698,6 +24957,12 @@ __decorate([
|
|
|
24698
24957
|
}], fieldValue: [{
|
|
24699
24958
|
type: Input,
|
|
24700
24959
|
args: ['p-field-value']
|
|
24960
|
+
}], changeVisibleColumns: [{
|
|
24961
|
+
type: Output,
|
|
24962
|
+
args: ['p-change-visible-columns']
|
|
24963
|
+
}], columnRestoreManager: [{
|
|
24964
|
+
type: Output,
|
|
24965
|
+
args: ['p-restore-column-manager']
|
|
24701
24966
|
}], literals: [{
|
|
24702
24967
|
type: Input,
|
|
24703
24968
|
args: ['p-literals']
|
|
@@ -25307,7 +25572,7 @@ PoLookupModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLo
|
|
|
25307
25572
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputSearchEl = _t.first);
|
|
25308
25573
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
25309
25574
|
}
|
|
25310
|
-
}, 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"], ["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) {
|
|
25575
|
+
}, 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) {
|
|
25311
25576
|
if (rf & 1) {
|
|
25312
25577
|
i0.ɵɵelementStart(0, "po-modal", 0)(1, "div", 1)(2, "po-field-container", 2)(3, "div", 3)(4, "div", 4)(5, "span", 5, 6);
|
|
25313
25578
|
i0.ɵɵlistener("click", function PoLookupModalComponent_Template_span_click_5_listener() { return ctx.search(); });
|
|
@@ -25319,7 +25584,7 @@ PoLookupModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLo
|
|
|
25319
25584
|
i0.ɵɵelementEnd();
|
|
25320
25585
|
i0.ɵɵtemplate(10, PoLookupModalComponent_po_disclaimer_group_10_Template, 1, 2, "po-disclaimer-group", 10);
|
|
25321
25586
|
i0.ɵɵelementStart(11, "div", 11)(12, "po-table", 12, 13);
|
|
25322
|
-
i0.ɵɵlistener("p-selected", function PoLookupModalComponent_Template_po_table_p_selected_12_listener($event) { return ctx.onSelect($event); })("p-unselected", function PoLookupModalComponent_Template_po_table_p_unselected_12_listener($event) { return ctx.onUnselect($event); })("p-all-selected", function PoLookupModalComponent_Template_po_table_p_all_selected_12_listener($event) { return ctx.onAllSelected($event); })("p-all-unselected", function PoLookupModalComponent_Template_po_table_p_all_unselected_12_listener($event) { return ctx.onAllUnselected($event); })("p-show-more", function PoLookupModalComponent_Template_po_table_p_show_more_12_listener() { return ctx.showMoreEvent(); })("p-sort-by", function PoLookupModalComponent_Template_po_table_p_sort_by_12_listener($event) { return ctx.sortBy($event); });
|
|
25587
|
+
i0.ɵɵlistener("p-selected", function PoLookupModalComponent_Template_po_table_p_selected_12_listener($event) { return ctx.onSelect($event); })("p-unselected", function PoLookupModalComponent_Template_po_table_p_unselected_12_listener($event) { return ctx.onUnselect($event); })("p-all-selected", function PoLookupModalComponent_Template_po_table_p_all_selected_12_listener($event) { return ctx.onAllSelected($event); })("p-all-unselected", function PoLookupModalComponent_Template_po_table_p_all_unselected_12_listener($event) { return ctx.onAllUnselected($event); })("p-show-more", function PoLookupModalComponent_Template_po_table_p_show_more_12_listener() { return ctx.showMoreEvent(); })("p-sort-by", function PoLookupModalComponent_Template_po_table_p_sort_by_12_listener($event) { return ctx.sortBy($event); })("p-change-visible-columns", function PoLookupModalComponent_Template_po_table_p_change_visible_columns_12_listener($event) { return ctx.changeVisibleColumns.emit($event); })("p-restore-column-manager", function PoLookupModalComponent_Template_po_table_p_restore_column_manager_12_listener($event) { return ctx.columnRestoreManager.emit($event); });
|
|
25323
25588
|
i0.ɵɵelementEnd()();
|
|
25324
25589
|
i0.ɵɵtemplate(14, PoLookupModalComponent_po_disclaimer_group_14_Template, 1, 1, "po-disclaimer-group", 14);
|
|
25325
25590
|
i0.ɵɵelementEnd();
|
|
@@ -25352,7 +25617,7 @@ PoLookupModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLo
|
|
|
25352
25617
|
(function () {
|
|
25353
25618
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupModalComponent, [{
|
|
25354
25619
|
type: Component,
|
|
25355
|
-
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 >\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" }]
|
|
25620
|
+
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" }]
|
|
25356
25621
|
}], function () { return [{ type: i0.ComponentFactoryResolver }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }]; }, { poTable: [{
|
|
25357
25622
|
type: ViewChild,
|
|
25358
25623
|
args: [PoTableComponent, { static: true }]
|
|
@@ -25388,9 +25653,11 @@ class PoLookupModalService {
|
|
|
25388
25653
|
* @param selectedItems {any} Valor que está selecionado que será repassado para o modal para apresentar na tabela.
|
|
25389
25654
|
* @param fieldLabel {string} Valor que será utilizado como descrição do campo.
|
|
25390
25655
|
* @param fieldValue {string} Valor que será utilizado como valor do campo.
|
|
25656
|
+
* @param changeVisibleColumns {function} Função que será executada quando for alterada a visibilidade das colunas.
|
|
25657
|
+
* @param columnRestoreManager {function} Função que será executada quando for restaurar as colunas padrão.
|
|
25391
25658
|
*/
|
|
25392
25659
|
openModal(params) {
|
|
25393
|
-
const { advancedFilters, service, columns, filterParams, title, literals, infiniteScroll, multiple, selectedItems, fieldLabel, fieldValue } = params;
|
|
25660
|
+
const { advancedFilters, service, columns, filterParams, title, literals, infiniteScroll, multiple, selectedItems, fieldLabel, fieldValue, changeVisibleColumns, columnRestoreManager } = params;
|
|
25394
25661
|
this.componentRef = this.poComponentInjector.createComponentInApplication(PoLookupModalComponent);
|
|
25395
25662
|
this.componentRef.instance.advancedFilters = advancedFilters;
|
|
25396
25663
|
this.componentRef.instance.title = title;
|
|
@@ -25406,6 +25673,8 @@ class PoLookupModalService {
|
|
|
25406
25673
|
this.componentRef.instance.selectedItems = selectedItems;
|
|
25407
25674
|
this.componentRef.instance.fieldLabel = fieldLabel;
|
|
25408
25675
|
this.componentRef.instance.fieldValue = fieldValue;
|
|
25676
|
+
this.componentRef.instance.changeVisibleColumns = changeVisibleColumns;
|
|
25677
|
+
this.componentRef.instance.columnRestoreManager = columnRestoreManager;
|
|
25409
25678
|
this.componentRef.changeDetectorRef.detectChanges();
|
|
25410
25679
|
this.componentRef.instance.openModal();
|
|
25411
25680
|
}
|
|
@@ -25656,7 +25925,7 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
25656
25925
|
}
|
|
25657
25926
|
openLookup() {
|
|
25658
25927
|
if (this.isAllowedOpenModal()) {
|
|
25659
|
-
const { advancedFilters, service, columns, filterParams, literals, infiniteScroll, multiple, fieldLabel, fieldValue } = this;
|
|
25928
|
+
const { advancedFilters, service, columns, filterParams, literals, infiniteScroll, multiple, fieldLabel, fieldValue, changeVisibleColumns, columnRestoreManager } = this;
|
|
25660
25929
|
const selectedItems = this.checkSelectedItems();
|
|
25661
25930
|
this.poLookupModalService.openModal({
|
|
25662
25931
|
advancedFilters,
|
|
@@ -25669,7 +25938,9 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
25669
25938
|
multiple,
|
|
25670
25939
|
selectedItems,
|
|
25671
25940
|
fieldLabel,
|
|
25672
|
-
fieldValue
|
|
25941
|
+
fieldValue,
|
|
25942
|
+
changeVisibleColumns,
|
|
25943
|
+
columnRestoreManager
|
|
25673
25944
|
});
|
|
25674
25945
|
if (!this.modalSubscription) {
|
|
25675
25946
|
this.modalSubscription = this.poLookupModalService.selectValueEvent.subscribe(selectedOptions => {
|
|
@@ -26924,7 +27195,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
26924
27195
|
this.initialized = true;
|
|
26925
27196
|
}
|
|
26926
27197
|
ngOnChanges(changes) {
|
|
26927
|
-
if (changes.filterService || changes.fieldValue || changes.fieldLabel) {
|
|
27198
|
+
if (this.filterService && (changes.filterService || changes.fieldValue || changes.fieldLabel)) {
|
|
26928
27199
|
this.setService(this.filterService);
|
|
26929
27200
|
}
|
|
26930
27201
|
}
|
|
@@ -28139,7 +28410,8 @@ class PoUploadBaseService {
|
|
|
28139
28410
|
}
|
|
28140
28411
|
}
|
|
28141
28412
|
sendFile(url, file, headers, formData, uploadCallback, successCallback, errorCallback) {
|
|
28142
|
-
|
|
28413
|
+
let request = new Subscription();
|
|
28414
|
+
request = this.getRequest(url, headers, formData).subscribe(event => {
|
|
28143
28415
|
if (event.type === HttpEventType.UploadProgress) {
|
|
28144
28416
|
this.addRequest(file, request);
|
|
28145
28417
|
const percentDone = Math.round((100 * event.loaded) / event.total);
|
|
@@ -30659,7 +30931,7 @@ function PoRichTextToolbarComponent_div_5_Template(rf, ctx) {
|
|
|
30659
30931
|
if (rf & 2) {
|
|
30660
30932
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
30661
30933
|
i0.ɵɵadvance(1);
|
|
30662
|
-
i0.ɵɵproperty("p-
|
|
30934
|
+
i0.ɵɵproperty("p-buttons", ctx_r2.alignButtons);
|
|
30663
30935
|
}
|
|
30664
30936
|
}
|
|
30665
30937
|
const poRichTextDefaultColor = '#000000';
|
|
@@ -30823,13 +31095,13 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
30823
31095
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextImageModal = _t.first);
|
|
30824
31096
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextLinkModal = _t.first);
|
|
30825
31097
|
}
|
|
30826
|
-
}, inputs: { disabledTextAlign: ["p-disabled-text-align", "disabledTextAlign"], readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 16, vars:
|
|
31098
|
+
}, inputs: { disabledTextAlign: ["p-disabled-text-align", "disabledTextAlign"], readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 16, vars: 6, consts: [[1, "po-rich-text-toolbar"], ["toolbarElement", ""], ["data-rich-text-toolbar", "format", 1, "po-rich-text-toolbar-button-align"], ["p-toggle", "multiple", 3, "p-buttons"], ["class", "po-rich-text-toolbar-button-align", "data-rich-text-toolbar", "color", 4, "ngIf"], ["class", "po-rich-text-toolbar-button-align", "data-rich-text-toolbar", "align", 4, "ngIf"], ["data-rich-text-toolbar", "list", 1, "po-rich-text-toolbar-button-align"], ["p-toggle", "single", 3, "p-buttons"], ["data-rich-text-toolbar", "link", 1, "po-rich-text-toolbar-button-align"], [3, "p-buttons"], ["data-rich-text-toolbar", "media", 1, "po-rich-text-toolbar-button-align"], [3, "p-command"], ["richTextImageModal", ""], [3, "p-command", "p-link-editing"], ["richTextLinkModal", ""], ["data-rich-text-toolbar", "color", 1, "po-rich-text-toolbar-button-align"], [1, "po-rich-text-toolbar-color-picker-container"], [1, "po-button", "po-button-default", "po-rich-text-toolbar-color-picker-button", 3, "disabled", "p-tooltip"], ["type", "color", 1, "po-rich-text-toolbar-color-picker-input", 3, "disabled", "change"], ["colorPickerInput", ""], ["data-rich-text-toolbar", "align", 1, "po-rich-text-toolbar-button-align"]], template: function PoRichTextToolbarComponent_Template(rf, ctx) {
|
|
30827
31099
|
if (rf & 1) {
|
|
30828
31100
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
30829
31101
|
i0.ɵɵelement(3, "po-button-group", 3);
|
|
30830
31102
|
i0.ɵɵelementEnd();
|
|
30831
31103
|
i0.ɵɵtemplate(4, PoRichTextToolbarComponent_div_4_Template, 5, 5, "div", 4);
|
|
30832
|
-
i0.ɵɵtemplate(5, PoRichTextToolbarComponent_div_5_Template, 2,
|
|
31104
|
+
i0.ɵɵtemplate(5, PoRichTextToolbarComponent_div_5_Template, 2, 1, "div", 5);
|
|
30833
31105
|
i0.ɵɵelementStart(6, "div", 6);
|
|
30834
31106
|
i0.ɵɵelement(7, "po-button-group", 7);
|
|
30835
31107
|
i0.ɵɵelementEnd();
|
|
@@ -30848,23 +31120,23 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
30848
31120
|
}
|
|
30849
31121
|
if (rf & 2) {
|
|
30850
31122
|
i0.ɵɵadvance(3);
|
|
30851
|
-
i0.ɵɵproperty("p-
|
|
31123
|
+
i0.ɵɵproperty("p-buttons", ctx.formatButtons);
|
|
30852
31124
|
i0.ɵɵadvance(1);
|
|
30853
31125
|
i0.ɵɵproperty("ngIf", !ctx.isInternetExplorer);
|
|
30854
31126
|
i0.ɵɵadvance(1);
|
|
30855
31127
|
i0.ɵɵproperty("ngIf", !ctx.disabledTextAlign);
|
|
30856
31128
|
i0.ɵɵadvance(2);
|
|
30857
|
-
i0.ɵɵproperty("p-
|
|
31129
|
+
i0.ɵɵproperty("p-buttons", ctx.listButtons);
|
|
30858
31130
|
i0.ɵɵadvance(2);
|
|
30859
|
-
i0.ɵɵproperty("p-
|
|
31131
|
+
i0.ɵɵproperty("p-buttons", ctx.linkButtons);
|
|
30860
31132
|
i0.ɵɵadvance(2);
|
|
30861
|
-
i0.ɵɵproperty("p-
|
|
31133
|
+
i0.ɵɵproperty("p-buttons", ctx.mediaButtons);
|
|
30862
31134
|
}
|
|
30863
31135
|
}, dependencies: [i1.NgIf, PoButtonGroupComponent, PoTooltipDirective, PoRichTextImageModalComponent, PoRichTextLinkModalComponent], encapsulation: 2 });
|
|
30864
31136
|
(function () {
|
|
30865
31137
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextToolbarComponent, [{
|
|
30866
31138
|
type: Component,
|
|
30867
|
-
args: [{ selector: 'po-rich-text-toolbar', template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-
|
|
31139
|
+
args: [{ selector: 'po-rich-text-toolbar', template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\"> </po-button-group>\n </div>\n\n <div *ngIf=\"!isInternetExplorer\" class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (change)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!disabledTextAlign\" class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\"> </po-button-group>\n </div>\n</div>\n\n<po-rich-text-image-modal #richTextImageModal (p-command)=\"emitCommand($event)\"> </po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n" }]
|
|
30868
31140
|
}], function () { return [{ type: PoLanguageService }]; }, { colorPickerInput: [{
|
|
30869
31141
|
type: ViewChild,
|
|
30870
31142
|
args: ['colorPickerInput', { read: ElementRef }]
|
|
@@ -32048,9 +32320,9 @@ function PoSelectComponent_option_4_Template(rf, ctx) {
|
|
|
32048
32320
|
if (rf & 2) {
|
|
32049
32321
|
const option_r7 = ctx.$implicit;
|
|
32050
32322
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
32051
|
-
i0.ɵɵproperty("disabled", ctx_r2.readonly)("value", option_r7.
|
|
32323
|
+
i0.ɵɵproperty("disabled", ctx_r2.readonly)("value", option_r7 == null ? null : option_r7[ctx_r2.fieldValue]);
|
|
32052
32324
|
i0.ɵɵadvance(1);
|
|
32053
|
-
i0.ɵɵtextInterpolate1(" ", option_r7 == null ? null : option_r7.
|
|
32325
|
+
i0.ɵɵtextInterpolate1(" ", option_r7 == null ? null : option_r7[ctx_r2.fieldLabel], " ");
|
|
32054
32326
|
}
|
|
32055
32327
|
}
|
|
32056
32328
|
function PoSelectComponent_li_15_ng_container_2_Template(rf, ctx) {
|
|
@@ -32066,8 +32338,9 @@ function PoSelectComponent_li_15_ng_template_3_Template(rf, ctx) {
|
|
|
32066
32338
|
}
|
|
32067
32339
|
if (rf & 2) {
|
|
32068
32340
|
const option_r10 = i0.ɵɵnextContext().$implicit;
|
|
32341
|
+
const ctx_r13 = i0.ɵɵnextContext();
|
|
32069
32342
|
i0.ɵɵadvance(1);
|
|
32070
|
-
i0.ɵɵtextInterpolate(option_r10 == null ? null : option_r10.
|
|
32343
|
+
i0.ɵɵtextInterpolate(option_r10 == null ? null : option_r10[ctx_r13.fieldLabel]);
|
|
32071
32344
|
}
|
|
32072
32345
|
}
|
|
32073
32346
|
function PoSelectComponent_li_15_ng_template_5_Template(rf, ctx) { }
|
|
@@ -32088,8 +32361,8 @@ function PoSelectComponent_li_15_Template(rf, ctx) {
|
|
|
32088
32361
|
const _r12 = i0.ɵɵreference(4);
|
|
32089
32362
|
const _r14 = i0.ɵɵreference(6);
|
|
32090
32363
|
const ctx_r6 = i0.ɵɵnextContext();
|
|
32091
|
-
i0.ɵɵclassProp("po-select-item-selected", ctx_r6.selectedValue === option_r10.
|
|
32092
|
-
i0.ɵɵproperty("value", option_r10.
|
|
32364
|
+
i0.ɵɵclassProp("po-select-item-selected", ctx_r6.selectedValue === (option_r10 == null ? null : option_r10[ctx_r6.fieldLabel]));
|
|
32365
|
+
i0.ɵɵproperty("value", option_r10 == null ? null : option_r10[ctx_r6.fieldValue]);
|
|
32093
32366
|
i0.ɵɵadvance(2);
|
|
32094
32367
|
i0.ɵɵproperty("ngIf", ctx_r6.selectOptionTemplate)("ngIfThen", _r14)("ngIfElse", _r12);
|
|
32095
32368
|
i0.ɵɵadvance(3);
|
|
@@ -32102,6 +32375,8 @@ const _c7 = function (a0, a1) { return { "po-field-icon-disabled": a0, "po-field
|
|
|
32102
32375
|
const _c8 = function (a0) { return { "po-invisible": a0 }; };
|
|
32103
32376
|
const poSelectContentOffset = 8;
|
|
32104
32377
|
const poSelectContentPositionDefault = 'bottom';
|
|
32378
|
+
const PO_SELECT_FIELD_LABEL_DEFAULT = 'label';
|
|
32379
|
+
const PO_SELECT_FIELD_VALUE_DEFAULT = 'value';
|
|
32105
32380
|
/**
|
|
32106
32381
|
* @docsExtends PoFieldValidateModel
|
|
32107
32382
|
*
|
|
@@ -32125,6 +32400,11 @@ const poSelectContentPositionDefault = 'bottom';
|
|
|
32125
32400
|
* <file name='sample-po-select-customer-registration/sample-po-select-customer-registration.component.po.ts'> </file>
|
|
32126
32401
|
* </example>
|
|
32127
32402
|
*
|
|
32403
|
+
* <example name="po-select-companies" title="PO Select Companies">
|
|
32404
|
+
* <file name="sample-po-select-companies/sample-po-select-companies.component.html"> </file>
|
|
32405
|
+
* <file name="sample-po-select-companies/sample-po-select-companies.component.ts"> </file>
|
|
32406
|
+
* </example>
|
|
32407
|
+
*
|
|
32128
32408
|
* @description
|
|
32129
32409
|
*
|
|
32130
32410
|
* O componente po-select exibe uma lista de valores e permite que o usuário selecione um desses valores.
|
|
@@ -32175,6 +32455,8 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
32175
32455
|
this.isMobile = isMobile();
|
|
32176
32456
|
this.open = false;
|
|
32177
32457
|
this.selectIcon = 'po-icon-arrow-down';
|
|
32458
|
+
this._fieldLabel = PO_SELECT_FIELD_LABEL_DEFAULT;
|
|
32459
|
+
this._fieldValue = PO_SELECT_FIELD_VALUE_DEFAULT;
|
|
32178
32460
|
this.onScroll = () => {
|
|
32179
32461
|
this.controlPosition.adjustPosition(poSelectContentPositionDefault);
|
|
32180
32462
|
};
|
|
@@ -32197,14 +32479,55 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
32197
32479
|
* ```
|
|
32198
32480
|
*/
|
|
32199
32481
|
set options(options) {
|
|
32200
|
-
this.
|
|
32201
|
-
|
|
32202
|
-
|
|
32482
|
+
if (this.fieldLabel && this.fieldValue) {
|
|
32483
|
+
options.map(option => {
|
|
32484
|
+
option.label = option[this.fieldLabel];
|
|
32485
|
+
option.value = option[this.fieldValue];
|
|
32486
|
+
});
|
|
32487
|
+
}
|
|
32488
|
+
this.validateOptions([...options]);
|
|
32203
32489
|
this.onUpdateOptions();
|
|
32490
|
+
this._options = [...options];
|
|
32204
32491
|
}
|
|
32205
32492
|
get options() {
|
|
32206
32493
|
return this._options;
|
|
32207
32494
|
}
|
|
32495
|
+
/**
|
|
32496
|
+
* @optional
|
|
32497
|
+
*
|
|
32498
|
+
* @description
|
|
32499
|
+
* Deve ser informado o nome da propriedade do objeto que será utilizado para a conversão dos itens apresentados na lista do componente
|
|
32500
|
+
* (`p-options`), esta propriedade será responsável pelo texto de apresentação de cada item da lista.
|
|
32501
|
+
*
|
|
32502
|
+
* @default `label`
|
|
32503
|
+
*/
|
|
32504
|
+
set fieldLabel(value) {
|
|
32505
|
+
this._fieldLabel = value || PO_SELECT_FIELD_LABEL_DEFAULT;
|
|
32506
|
+
if (this.options && this.options.length > 0) {
|
|
32507
|
+
this.options = [...this.options];
|
|
32508
|
+
}
|
|
32509
|
+
}
|
|
32510
|
+
get fieldLabel() {
|
|
32511
|
+
return this._fieldLabel;
|
|
32512
|
+
}
|
|
32513
|
+
/**
|
|
32514
|
+
* @optional
|
|
32515
|
+
*
|
|
32516
|
+
* @description
|
|
32517
|
+
* Deve ser informado o nome da propriedade do objeto que será utilizado para a conversão dos itens apresentados na lista do componente
|
|
32518
|
+
* (`p-options`), esta propriedade será responsável pelo valor de cada item da lista.
|
|
32519
|
+
*
|
|
32520
|
+
* @default `value`
|
|
32521
|
+
*/
|
|
32522
|
+
set fieldValue(value) {
|
|
32523
|
+
this._fieldValue = value || PO_SELECT_FIELD_VALUE_DEFAULT;
|
|
32524
|
+
if (this.options && this.options.length > 0) {
|
|
32525
|
+
this.options = [...this.options];
|
|
32526
|
+
}
|
|
32527
|
+
}
|
|
32528
|
+
get fieldValue() {
|
|
32529
|
+
return this._fieldValue;
|
|
32530
|
+
}
|
|
32208
32531
|
get isInvisibleSelectNative() {
|
|
32209
32532
|
return this.readonly && this.isMobile;
|
|
32210
32533
|
}
|
|
@@ -32238,6 +32561,8 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
32238
32561
|
if (change) {
|
|
32239
32562
|
removeDuplicatedOptions(this.options);
|
|
32240
32563
|
removeUndefinedAndNullOptions(this.options);
|
|
32564
|
+
removeDuplicatedOptionsWithFieldValue(this.options, this.fieldValue);
|
|
32565
|
+
removeUndefinedAndNullOptionsWithFieldValue(this.options, this.fieldValue);
|
|
32241
32566
|
}
|
|
32242
32567
|
}
|
|
32243
32568
|
/**
|
|
@@ -32305,12 +32630,12 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
32305
32630
|
}
|
|
32306
32631
|
// Atualiza valores
|
|
32307
32632
|
updateValues(option) {
|
|
32308
|
-
if (this.selectedValue !== option.
|
|
32309
|
-
this.selectedValue = option.
|
|
32310
|
-
this.selectElement.nativeElement.value = option.
|
|
32311
|
-
this.updateModel(option.
|
|
32312
|
-
this.displayValue = option.
|
|
32313
|
-
this.emitChange(option.
|
|
32633
|
+
if (this.selectedValue !== option[this.fieldValue]) {
|
|
32634
|
+
this.selectedValue = option[this.fieldValue];
|
|
32635
|
+
this.selectElement.nativeElement.value = option[this.fieldValue];
|
|
32636
|
+
this.updateModel(option[this.fieldValue]);
|
|
32637
|
+
this.displayValue = option[this.fieldLabel];
|
|
32638
|
+
this.emitChange(option[this.fieldValue]);
|
|
32314
32639
|
}
|
|
32315
32640
|
}
|
|
32316
32641
|
// Esconde Content do Select quando for clicado fora
|
|
@@ -32325,9 +32650,9 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
32325
32650
|
const optionFound = this.findOptionValue(value);
|
|
32326
32651
|
if (optionFound) {
|
|
32327
32652
|
this.selectElement.nativeElement.value = optionFound.value;
|
|
32328
|
-
this.selectedValue = optionFound.
|
|
32329
|
-
this.displayValue = optionFound.
|
|
32330
|
-
this.setScrollPosition(optionFound.
|
|
32653
|
+
this.selectedValue = optionFound[this.fieldValue];
|
|
32654
|
+
this.displayValue = optionFound[this.fieldLabel];
|
|
32655
|
+
this.setScrollPosition(optionFound[this.fieldValue]);
|
|
32331
32656
|
}
|
|
32332
32657
|
else if (validValue(this.selectedValue)) {
|
|
32333
32658
|
this.selectElement.nativeElement.value = undefined;
|
|
@@ -32410,6 +32735,12 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
32410
32735
|
}
|
|
32411
32736
|
}
|
|
32412
32737
|
}
|
|
32738
|
+
validateOptions(options) {
|
|
32739
|
+
removeDuplicatedOptions(options);
|
|
32740
|
+
removeUndefinedAndNullOptions(options);
|
|
32741
|
+
removeDuplicatedOptionsWithFieldValue(options, this.fieldValue);
|
|
32742
|
+
removeUndefinedAndNullOptionsWithFieldValue(options, this.fieldValue);
|
|
32743
|
+
}
|
|
32413
32744
|
}
|
|
32414
32745
|
PoSelectComponent.ɵfac = function PoSelectComponent_Factory(t) { return new (t || PoSelectComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoControlPositionService)); };
|
|
32415
32746
|
PoSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSelectComponent, selectors: [["po-select"]], viewQuery: function PoSelectComponent_Query(rf, ctx) {
|
|
@@ -32430,7 +32761,7 @@ PoSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSelectC
|
|
|
32430
32761
|
if (rf & 1) {
|
|
32431
32762
|
i0.ɵɵlistener("keydown", function PoSelectComponent_keydown_HostBindingHandler($event) { return ctx.onKeydown($event); });
|
|
32432
32763
|
}
|
|
32433
|
-
}, inputs: { readonly: ["p-readonly", "readonly"], placeholder: ["p-placeholder", "placeholder"], options: ["p-options", "options"] }, outputs: { ngModelChange: "ngModelChange" }, features: [i0.ɵɵProvidersFeature([
|
|
32764
|
+
}, 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([
|
|
32434
32765
|
{
|
|
32435
32766
|
provide: NG_VALUE_ACCESSOR,
|
|
32436
32767
|
useExisting: forwardRef(() => PoSelectComponent),
|
|
@@ -32503,7 +32834,7 @@ __decorate([
|
|
|
32503
32834
|
multi: true
|
|
32504
32835
|
},
|
|
32505
32836
|
PoControlPositionService
|
|
32506
|
-
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <select\n #select\n class=\"po-select\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [ngClass]=\"{ 'po-select-mobile': isMobile, 'po-invisible': isInvisibleSelectNative }\"\n [required]=\"required\"\n (change)=\"onSelectChange($event.target.value)\"\n (blur)=\"onBlur()\"\n >\n <option *ngIf=\"isMobile\" disabled hidden selected></option>\n <option
|
|
32837
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <select\n #select\n class=\"po-select\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [ngClass]=\"{ 'po-select-mobile': isMobile, 'po-invisible': isInvisibleSelectNative }\"\n [required]=\"required\"\n (change)=\"onSelectChange($event.target.value)\"\n (blur)=\"onBlur()\"\n >\n <option *ngIf=\"isMobile\" disabled hidden selected></option>\n <option\n *ngFor=\"let option of options\"\n [disabled]=\"readonly\"\n [value]=\"option?.[this.fieldValue]\"\n (click)=\"onOptionClick(option)\"\n >\n {{ option?.[this.fieldLabel] }}\n </option>\n </select>\n\n <div class=\"po-select-container\">\n <div\n #selectButton\n class=\"po-select-button\"\n [ngClass]=\"{ 'po-select-button-disabled': disabled, 'po-select-button-readonly': readonly }\"\n (click)=\"toggleButton()\"\n >\n <span>{{ displayValue || placeholder }}</span>\n\n <div class=\"po-field-icon-container-right\">\n <span\n #icon\n class=\"po-icon {{ selectIcon }} po-field-icon\"\n [ngClass]=\"{ 'po-field-icon-disabled': disabled, 'po-field-icon-readonly': readonly }\"\n ></span>\n </div>\n </div>\n\n <ul #contentList class=\"po-select-content\" [ngClass]=\"{ 'po-invisible': isMobile }\">\n <li\n *ngFor=\"let option of options\"\n [class.po-select-item-selected]=\"selectedValue === option?.[this.fieldLabel]\"\n [value]=\"option?.[this.fieldValue]\"\n (click)=\"onOptionClick(option)\"\n >\n <div class=\"po-select-item\">\n <ng-container *ngIf=\"selectOptionTemplate; then optionTemplate; else defaultOptionTemplate\"></ng-container>\n\n <ng-template #defaultOptionTemplate>\n <span>{{ option?.[this.fieldLabel] }}</span>\n </ng-template>\n\n <ng-template\n #optionTemplate\n [ngTemplateOutlet]=\"selectOptionTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option }\"\n >\n </ng-template>\n </div>\n </li>\n </ul>\n </div>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
32507
32838
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoControlPositionService }]; }, { contentList: [{
|
|
32508
32839
|
type: ViewChild,
|
|
32509
32840
|
args: ['contentList', { read: ElementRef, static: true }]
|
|
@@ -32528,6 +32859,12 @@ __decorate([
|
|
|
32528
32859
|
}], options: [{
|
|
32529
32860
|
type: Input,
|
|
32530
32861
|
args: ['p-options']
|
|
32862
|
+
}], fieldLabel: [{
|
|
32863
|
+
type: Input,
|
|
32864
|
+
args: ['p-field-label']
|
|
32865
|
+
}], fieldValue: [{
|
|
32866
|
+
type: Input,
|
|
32867
|
+
args: ['p-field-value']
|
|
32531
32868
|
}], onKeydown: [{
|
|
32532
32869
|
type: HostListener,
|
|
32533
32870
|
args: ['keydown', ['$event']]
|
|
@@ -34680,7 +35017,7 @@ function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template
|
|
|
34680
35017
|
if (rf & 1) {
|
|
34681
35018
|
const _r90 = i0.ɵɵgetCurrentView();
|
|
34682
35019
|
i0.ɵɵelementStart(0, "po-lookup", 28, 19);
|
|
34683
|
-
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template_po_lookup_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r90); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r89 = i0.ɵɵnextContext(2); return i0.ɵɵresetView((ctx_r89.value[field_r2.property] = $event)); })("p-change", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template_po_lookup_p_change_0_listener() { i0.ɵɵrestoreView(_r90); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r92 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r92.onChangeField(field_r2)); });
|
|
35020
|
+
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template_po_lookup_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r90); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r89 = i0.ɵɵnextContext(2); return i0.ɵɵresetView((ctx_r89.value[field_r2.property] = $event)); })("p-change", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template_po_lookup_p_change_0_listener() { i0.ɵɵrestoreView(_r90); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r92 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r92.onChangeField(field_r2)); })("p-change-visible-columns", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template_po_lookup_p_change_visible_columns_0_listener($event) { i0.ɵɵrestoreView(_r90); const field_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r2.changeVisibleColumns($event)); })("p-restore-column-manager", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template_po_lookup_p_restore_column_manager_0_listener($event) { i0.ɵɵrestoreView(_r90); const field_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r2.columnRestoreManager($event)); });
|
|
34684
35021
|
i0.ɵɵelementEnd();
|
|
34685
35022
|
}
|
|
34686
35023
|
if (rf & 2) {
|
|
@@ -34691,9 +35028,9 @@ function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_lookup_11_Template
|
|
|
34691
35028
|
}
|
|
34692
35029
|
function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_checkbox_group_12_Template(rf, ctx) {
|
|
34693
35030
|
if (rf & 1) {
|
|
34694
|
-
const
|
|
35031
|
+
const _r101 = i0.ɵɵgetCurrentView();
|
|
34695
35032
|
i0.ɵɵelementStart(0, "po-checkbox-group", 25, 19);
|
|
34696
|
-
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_checkbox_group_12_Template_po_checkbox_group_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
35033
|
+
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_checkbox_group_12_Template_po_checkbox_group_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r101); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r100 = i0.ɵɵnextContext(2); return i0.ɵɵresetView((ctx_r100.value[field_r2.property] = $event)); })("p-change", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_checkbox_group_12_Template_po_checkbox_group_p_change_0_listener() { i0.ɵɵrestoreView(_r101); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r103 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r103.onChangeField(field_r2)); });
|
|
34697
35034
|
i0.ɵɵelementEnd();
|
|
34698
35035
|
}
|
|
34699
35036
|
if (rf & 2) {
|
|
@@ -34704,9 +35041,9 @@ function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_checkbox_group_12_
|
|
|
34704
35041
|
}
|
|
34705
35042
|
function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_multiselect_13_Template(rf, ctx) {
|
|
34706
35043
|
if (rf & 1) {
|
|
34707
|
-
const
|
|
35044
|
+
const _r108 = i0.ɵɵgetCurrentView();
|
|
34708
35045
|
i0.ɵɵelementStart(0, "po-multiselect", 29, 19);
|
|
34709
|
-
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_multiselect_13_Template_po_multiselect_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
35046
|
+
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_multiselect_13_Template_po_multiselect_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r108); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r107 = i0.ɵɵnextContext(2); return i0.ɵɵresetView((ctx_r107.value[field_r2.property] = $event)); })("p-change", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_multiselect_13_Template_po_multiselect_p_change_0_listener() { i0.ɵɵrestoreView(_r108); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r110 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r110.onChangeField(field_r2)); });
|
|
34710
35047
|
i0.ɵɵelementEnd();
|
|
34711
35048
|
}
|
|
34712
35049
|
if (rf & 2) {
|
|
@@ -34717,9 +35054,9 @@ function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_multiselect_13_Tem
|
|
|
34717
35054
|
}
|
|
34718
35055
|
function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_textarea_14_Template(rf, ctx) {
|
|
34719
35056
|
if (rf & 1) {
|
|
34720
|
-
const
|
|
35057
|
+
const _r115 = i0.ɵɵgetCurrentView();
|
|
34721
35058
|
i0.ɵɵelementStart(0, "po-textarea", 30, 19);
|
|
34722
|
-
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_textarea_14_Template_po_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
35059
|
+
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_textarea_14_Template_po_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r115); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r114 = i0.ɵɵnextContext(2); return i0.ɵɵresetView((ctx_r114.value[field_r2.property] = $event)); })("p-change", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_textarea_14_Template_po_textarea_p_change_0_listener() { i0.ɵɵrestoreView(_r115); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r117 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r117.onChangeField(field_r2)); })("p-change-model", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_textarea_14_Template_po_textarea_p_change_model_0_listener() { i0.ɵɵrestoreView(_r115); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r119 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r119.onChangeFieldModel(field_r2)); });
|
|
34723
35060
|
i0.ɵɵelementEnd();
|
|
34724
35061
|
}
|
|
34725
35062
|
if (rf & 2) {
|
|
@@ -34730,9 +35067,9 @@ function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_textarea_14_Templa
|
|
|
34730
35067
|
}
|
|
34731
35068
|
function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_password_15_Template(rf, ctx) {
|
|
34732
35069
|
if (rf & 1) {
|
|
34733
|
-
const
|
|
35070
|
+
const _r124 = i0.ɵɵgetCurrentView();
|
|
34734
35071
|
i0.ɵɵelementStart(0, "po-password", 31, 19);
|
|
34735
|
-
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_password_15_Template_po_password_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
35072
|
+
i0.ɵɵlistener("ngModelChange", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_password_15_Template_po_password_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r124); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r123 = i0.ɵɵnextContext(2); return i0.ɵɵresetView((ctx_r123.value[field_r2.property] = $event)); })("p-change", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_password_15_Template_po_password_p_change_0_listener() { i0.ɵɵrestoreView(_r124); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r126 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r126.onChangeField(field_r2)); })("p-change-model", function PoDynamicFormFieldsComponent_div_0_ng_container_1_po_password_15_Template_po_password_p_change_model_0_listener() { i0.ɵɵrestoreView(_r124); const field_r2 = i0.ɵɵnextContext().$implicit; const ctx_r128 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r128.onChangeFieldModel(field_r2)); });
|
|
34736
35073
|
i0.ɵɵelementEnd();
|
|
34737
35074
|
}
|
|
34738
35075
|
if (rf & 2) {
|
|
@@ -34930,7 +35267,7 @@ PoDynamicFormFieldsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
34930
35267
|
let _t;
|
|
34931
35268
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.components = _t);
|
|
34932
35269
|
}
|
|
34933
|
-
}, features: [i0.ɵɵProvidersFeature([PoDynamicFormValidationService], [{ provide: ControlContainer, useExisting: NgForm }]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "po-row", 4, "ngIf"], [1, "po-row"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-sm-12", 3, "p-label", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-icon", "p-placeholder", "p-readonly", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-icon", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-placeholder", "p-readonly", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "ngModelChange", "p-change", 4, "ngIf"], ["p-emit-object-value", "", 3, "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter", "ngModelChange", "p-change", 4, "ngIf"], ["p-field-label", "label", "p-field-value", "value", 3, "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-placeholder", "p-advanced-filters", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-rows", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [1, "po-sm-12", 3, "p-label"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change"], ["component", ""], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-icon", "p-placeholder", "p-readonly", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-icon", "p-placeholder", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-placeholder", "p-readonly", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "ngModelChange", "p-change"], ["p-emit-object-value", "", 3, "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter", "ngModelChange", "p-change"], ["p-field-label", "label", "p-field-value", "value", 3, "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-placeholder", "p-advanced-filters", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-rows", "p-placeholder", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model"]], template: function PoDynamicFormFieldsComponent_Template(rf, ctx) {
|
|
35270
|
+
}, features: [i0.ɵɵProvidersFeature([PoDynamicFormValidationService], [{ provide: ControlContainer, useExisting: NgForm }]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "po-row", 4, "ngIf"], [1, "po-row"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-sm-12", 3, "p-label", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-icon", "p-placeholder", "p-readonly", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-icon", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-placeholder", "p-readonly", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "ngModelChange", "p-change", 4, "ngIf"], ["p-emit-object-value", "", 3, "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter", "ngModelChange", "p-change", 4, "ngIf"], ["p-field-label", "label", "p-field-value", "value", 3, "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-placeholder", "p-advanced-filters", "ngModelChange", "p-change", "p-change-visible-columns", "p-restore-column-manager", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-rows", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [1, "po-sm-12", 3, "p-label"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change"], ["component", ""], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-icon", "p-placeholder", "p-readonly", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-icon", "p-placeholder", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-placeholder", "p-readonly", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "ngModelChange", "p-change"], ["p-emit-object-value", "", 3, "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter", "ngModelChange", "p-change"], ["p-field-label", "label", "p-field-value", "value", 3, "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-placeholder", "p-advanced-filters", "ngModelChange", "p-change", "p-change-visible-columns", "p-restore-column-manager"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all", "ngModelChange", "p-change"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-rows", "p-placeholder", "ngModelChange", "p-change", "p-change-model"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model"]], template: function PoDynamicFormFieldsComponent_Template(rf, ctx) {
|
|
34934
35271
|
if (rf & 1) {
|
|
34935
35272
|
i0.ɵɵtemplate(0, PoDynamicFormFieldsComponent_div_0_Template, 2, 2, "div", 0);
|
|
34936
35273
|
}
|
|
@@ -34941,7 +35278,7 @@ PoDynamicFormFieldsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
34941
35278
|
(function () {
|
|
34942
35279
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDynamicFormFieldsComponent, [{
|
|
34943
35280
|
type: Component,
|
|
34944
|
-
args: [{ selector: 'po-dynamic-form-fields', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], providers: [PoDynamicFormValidationService], template: "<div class=\"po-row\" *ngIf=\"visibleFields && visibleFields.length > 0\">\n <ng-container *ngFor=\"let field of visibleFields; trackBy: trackBy\">\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\n\n <po-datepicker\n #component\n *ngIf=\"compareTo(field.control, 'datepicker')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-format]=\"field.format\"\n [p-help]=\"field.help\"\n [p-iso-format]=\"field.isoFormat\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-datepicker>\n\n <po-datepicker-range\n #component\n *ngIf=\"compareTo(field.control, 'datepickerrange')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-datepicker-range>\n\n <po-input\n #component\n *ngIf=\"compareTo(field.control, 'input')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-mask-format-model]=\"field.maskFormatModel\"\n [p-mask]=\"field.mask\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-input>\n\n <po-number\n #component\n *ngIf=\"compareTo(field.control, 'number')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-step]=\"field.step\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-number>\n\n <po-decimal\n #component\n *ngIf=\"compareTo(field.control, 'decimal')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-disabled]=\"isDisabled(field)\"\n [p-decimals-length]=\"field.decimalsLength\"\n [p-thousand-maxlength]=\"field.thousandMaxlength\"\n [p-icon]=\"field.icon\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-decimal>\n\n <po-select\n #component\n *ngIf=\"compareTo(field.control, 'select')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-select>\n\n <po-radio-group\n #component\n *ngIf=\"compareTo(field.control, 'radioGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-radio-group>\n\n <po-switch\n #component\n *ngIf=\"compareTo(field.control, 'switch')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-label-off]=\"field.booleanFalse\"\n [p-label-on]=\"field.booleanTrue\"\n [p-label-position]=\"field.labelPosition\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-switch>\n\n <po-combo\n #component\n *ngIf=\"compareTo(field.control, 'combo')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n p-emit-object-value\n [p-auto-focus]=\"field.focus\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.optionsService\"\n [p-help]=\"field.help\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-infinite-scroll-distance]=\"field.infiniteScrollDistance || 100\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-options]=\"field.options\"\n [p-optional]=\"field.optional\"\n [p-sort]=\"field.sort\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field, $event)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-filter-minlength]=\"field.filterMinlength\"\n [p-filter-mode]=\"field.filterMode\"\n [p-disabled-init-filter]=\"field.disabledInitFilter\"\n [p-disabled-tab-filter]=\"field.disabledTabFilter\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-change-on-enter]=\"field.changeOnEnter\"\n >\n </po-combo>\n\n <po-lookup\n #component\n *ngIf=\"compareTo(field.control, 'lookup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n p-field-label=\"label\"\n p-field-value=\"value\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-columns]=\"field.columns\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel || 'label'\"\n [p-field-value]=\"field.fieldValue || 'value'\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.searchService\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-field-format]=\"field.format\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-multiple]=\"field.multiple\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-advanced-filters]=\"field.advancedFilters\"\n >\n </po-lookup>\n\n <po-checkbox-group\n #component\n *ngIf=\"compareTo(field.control, 'checkboxGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-checkbox-group>\n\n <po-multiselect\n #component\n *ngIf=\"compareTo(field.control, 'multiselect')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-service]=\"field.optionsService\"\n [p-filter-mode]=\"field.filterMode\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-sort]=\"field.sort\"\n [p-placeholder-search]=\"field.placeholderSearch\"\n [p-hide-search]=\"field.hideSearch\"\n [p-hide-select-all]=\"field.hideSelectAll\"\n >\n </po-multiselect>\n\n <po-textarea\n #component\n *ngIf=\"compareTo(field.control, 'textarea')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-rows]=\"field.rows\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-textarea>\n\n <po-password\n #component\n *ngIf=\"compareTo(field.control, 'password')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-hide-password-peek]=\"field.hidePasswordPeek\"\n [p-icon]=\"field.icon\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-password>\n </ng-container>\n</div>\n" }]
|
|
35281
|
+
args: [{ selector: 'po-dynamic-form-fields', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], providers: [PoDynamicFormValidationService], template: "<div class=\"po-row\" *ngIf=\"visibleFields && visibleFields.length > 0\">\n <ng-container *ngFor=\"let field of visibleFields; trackBy: trackBy\">\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\n\n <po-datepicker\n #component\n *ngIf=\"compareTo(field.control, 'datepicker')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-format]=\"field.format\"\n [p-help]=\"field.help\"\n [p-iso-format]=\"field.isoFormat\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-datepicker>\n\n <po-datepicker-range\n #component\n *ngIf=\"compareTo(field.control, 'datepickerrange')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-datepicker-range>\n\n <po-input\n #component\n *ngIf=\"compareTo(field.control, 'input')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-mask-format-model]=\"field.maskFormatModel\"\n [p-mask]=\"field.mask\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-input>\n\n <po-number\n #component\n *ngIf=\"compareTo(field.control, 'number')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-step]=\"field.step\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-number>\n\n <po-decimal\n #component\n *ngIf=\"compareTo(field.control, 'decimal')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-disabled]=\"isDisabled(field)\"\n [p-decimals-length]=\"field.decimalsLength\"\n [p-thousand-maxlength]=\"field.thousandMaxlength\"\n [p-icon]=\"field.icon\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-decimal>\n\n <po-select\n #component\n *ngIf=\"compareTo(field.control, 'select')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-select>\n\n <po-radio-group\n #component\n *ngIf=\"compareTo(field.control, 'radioGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-radio-group>\n\n <po-switch\n #component\n *ngIf=\"compareTo(field.control, 'switch')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-label-off]=\"field.booleanFalse\"\n [p-label-on]=\"field.booleanTrue\"\n [p-label-position]=\"field.labelPosition\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-switch>\n\n <po-combo\n #component\n *ngIf=\"compareTo(field.control, 'combo')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n p-emit-object-value\n [p-auto-focus]=\"field.focus\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.optionsService\"\n [p-help]=\"field.help\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-infinite-scroll-distance]=\"field.infiniteScrollDistance || 100\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-options]=\"field.options\"\n [p-optional]=\"field.optional\"\n [p-sort]=\"field.sort\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field, $event)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-filter-minlength]=\"field.filterMinlength\"\n [p-filter-mode]=\"field.filterMode\"\n [p-disabled-init-filter]=\"field.disabledInitFilter\"\n [p-disabled-tab-filter]=\"field.disabledTabFilter\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-change-on-enter]=\"field.changeOnEnter\"\n >\n </po-combo>\n\n <po-lookup\n #component\n *ngIf=\"compareTo(field.control, 'lookup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n p-field-label=\"label\"\n p-field-value=\"value\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-columns]=\"field.columns\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel || 'label'\"\n [p-field-value]=\"field.fieldValue || 'value'\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.searchService\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-field-format]=\"field.format\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-multiple]=\"field.multiple\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-advanced-filters]=\"field.advancedFilters\"\n (p-change-visible-columns)=\"field.changeVisibleColumns($event)\"\n (p-restore-column-manager)=\"field.columnRestoreManager($event)\"\n >\n </po-lookup>\n\n <po-checkbox-group\n #component\n *ngIf=\"compareTo(field.control, 'checkboxGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-checkbox-group>\n\n <po-multiselect\n #component\n *ngIf=\"compareTo(field.control, 'multiselect')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-service]=\"field.optionsService\"\n [p-filter-mode]=\"field.filterMode\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-sort]=\"field.sort\"\n [p-placeholder-search]=\"field.placeholderSearch\"\n [p-hide-search]=\"field.hideSearch\"\n [p-hide-select-all]=\"field.hideSelectAll\"\n >\n </po-multiselect>\n\n <po-textarea\n #component\n *ngIf=\"compareTo(field.control, 'textarea')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-rows]=\"field.rows\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-textarea>\n\n <po-password\n #component\n *ngIf=\"compareTo(field.control, 'password')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-hide-password-peek]=\"field.hidePasswordPeek\"\n [p-icon]=\"field.icon\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-password>\n </ng-container>\n</div>\n" }]
|
|
34945
35282
|
}], function () { return [{ type: i1.TitleCasePipe }, { type: PoDynamicFormValidationService }, { type: i0.ChangeDetectorRef }, { type: i2$1.NgForm }]; }, { components: [{
|
|
34946
35283
|
type: ViewChildren,
|
|
34947
35284
|
args: ['component']
|
|
@@ -37957,7 +38294,7 @@ PoListViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoListV
|
|
|
37957
38294
|
let _t;
|
|
37958
38295
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poPopupComponent = _t.first);
|
|
37959
38296
|
}
|
|
37960
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 13, consts: [["class", "po-list-view-main-header", 4, "ngIf"], [1, "po-list-view-main-content"], ["class", "po-list-view", 4, "ngIf"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-mb-2 po-text-center", 4, "ngIf"], [3, "p-actions", "p-target"], ["popup", ""], [1, "po-list-view-main-header"], [1, "po-checkbox-group-item"], [1, "po-list-view-main-select"], ["name", "selectAll", 3, "ngModel", "p-label", "ngModelChange", "p-change", "click"], [1, "po-list-view"], [1, "po-list-view-container-no-data", "po-text-center"], [1, "po-list-view-container"], [1, "po-list-view-header"], [1, "po-list-view-title", 3, "ngSwitch"], ["class", "po-list-view-select", 4, "ngIf"], ["class", "po-list-view-title-link", "target", "_blank", 3, "href", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-link", 3, "routerLink", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-no-link", 3, "po-list-view-title-link", "click", 4, "ngSwitchCase"], ["class", "po-list-view-actions", 4, "ngIf"], ["class", "po-list-view-more-actions", 4, "ngIf"], ["class", "po-list-view-content", 4, "ngIf"], ["class", "po-list-view-detail", 4, "ngIf"], ["class", "po-list-view-detail-button", 4, "ngIf"], [1, "po-list-view-select"], ["name", "checkbox", 3, "ngModel", "ngModelChange", "p-change", "click"], ["target", "_blank", 1, "po-list-view-title-link", 3, "href", "click"], [1, "po-list-view-title-link", 3, "routerLink", "click"], [1, "po-list-view-title-no-link", 3, "click"], [1, "po-list-view-actions"], [
|
|
38297
|
+
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 13, consts: [["class", "po-list-view-main-header", 4, "ngIf"], [1, "po-list-view-main-content"], ["class", "po-list-view", 4, "ngIf"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-mb-2 po-text-center", 4, "ngIf"], [3, "p-actions", "p-target"], ["popup", ""], [1, "po-list-view-main-header"], [1, "po-checkbox-group-item"], [1, "po-list-view-main-select"], ["name", "selectAll", 3, "ngModel", "p-label", "ngModelChange", "p-change", "click"], [1, "po-list-view"], [1, "po-list-view-container-no-data", "po-text-center"], [1, "po-list-view-container"], [1, "po-list-view-header"], [1, "po-list-view-title", 3, "ngSwitch"], ["class", "po-list-view-select", 4, "ngIf"], ["class", "po-list-view-title-link", "target", "_blank", 3, "href", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-link", 3, "routerLink", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-no-link", 3, "po-list-view-title-link", "click", 4, "ngSwitchCase"], ["class", "po-list-view-actions", 4, "ngIf"], ["class", "po-list-view-more-actions", 4, "ngIf"], ["class", "po-list-view-content", 4, "ngIf"], ["class", "po-list-view-detail", 4, "ngIf"], ["class", "po-list-view-detail-button", 4, "ngIf"], [1, "po-list-view-select"], ["name", "checkbox", 3, "ngModel", "ngModelChange", "p-change", "click"], ["target", "_blank", 1, "po-list-view-title-link", 3, "href", "click"], [1, "po-list-view-title-link", 3, "routerLink", "click"], [1, "po-list-view-title-no-link", 3, "click"], [1, "po-list-view-actions"], [3, "p-disabled", "p-icon", "p-label", "p-kind", "p-click", 4, "ngFor", "ngForOf"], [3, "p-disabled", "p-icon", "p-label", "p-kind", "p-click"], [1, "po-list-view-more-actions"], [1, "po-icon", "po-icon-more", "po-list-view-more-icon", "po-clickable", 3, "click"], ["popupTarget", ""], [1, "po-list-view-content"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "po-list-view-detail"], [1, "po-list-view-detail-button"], [1, "po-clickable", 3, "click"], [1, "po-mb-2", "po-text-center"], [3, "p-disabled", "p-label", "p-click"]], template: function PoListViewComponent_Template(rf, ctx) {
|
|
37961
38298
|
if (rf & 1) {
|
|
37962
38299
|
i0.ɵɵelementStart(0, "div");
|
|
37963
38300
|
i0.ɵɵtemplate(1, PoListViewComponent_div_1_Template, 4, 2, "div", 0);
|
|
@@ -38000,7 +38337,7 @@ PoListViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoListV
|
|
|
38000
38337
|
transition('* => void', [style({ height: '*', 'overflow-y': 'hidden' }), animate(100, style({ height: 0 }))]),
|
|
38001
38338
|
transition('void => *', [style({ height: '0' }), animate(100, style({ height: '*' }))])
|
|
38002
38339
|
])
|
|
38003
|
-
], template: "<div\n [class.po-list-view-main-container-header]=\"showHeader\"\n [class.po-list-view-main-container]=\"!showHeader\"\n [style.height.px]=\"height\"\n>\n <div *ngIf=\"showHeader\" class=\"po-list-view-main-header\">\n <div class=\"po-checkbox-group-item\">\n <div class=\"po-list-view-main-select\">\n <po-checkbox\n name=\"selectAll\"\n [(ngModel)]=\"selectAll\"\n [p-label]=\"literals.selectAll\"\n (p-change)=\"selectAllListItems()\"\n (click)=\"selectAllListItems()\"\n ></po-checkbox>\n </div>\n </div>\n </div>\n\n <div class=\"po-list-view-main-content\">\n <div class=\"po-list-view\" *ngIf=\"!hasItems()\">\n <div class=\"po-list-view-container-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </div>\n </div>\n\n <ng-container *ngFor=\"let item of items; let index = index; trackBy: trackBy\">\n <div class=\"po-list-view\">\n <div class=\"po-list-view-container\">\n <div class=\"po-list-view-header\">\n <div class=\"po-list-view-title\" [ngSwitch]=\"checkTitleType(item)\">\n <div *ngIf=\"select\" class=\"po-list-view-select\">\n <po-checkbox\n [(ngModel)]=\"item.$selected\"\n name=\"checkbox\"\n (p-change)=\"selectListItem(item)\"\n (click)=\"selectListItem(item)\"\n ></po-checkbox>\n </div>\n <a\n *ngSwitchCase=\"'externalLink'\"\n class=\"po-list-view-title-link\"\n target=\"_blank\"\n [href]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <a\n *ngSwitchCase=\"'internalLink'\"\n class=\"po-list-view-title-link\"\n [routerLink]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <span\n *ngSwitchCase=\"'noLink'\"\n class=\"po-list-view-title-no-link\"\n [class.po-list-view-title-link]=\"titleHasAction\"\n (click)=\"titleHasAction && runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </span>\n </div>\n\n <div *ngIf=\"showButtonsActions\" class=\"po-list-view-actions\">\n <po-button\n *ngFor=\"let action of visibleActions\"\n
|
|
38340
|
+
], template: "<div\n [class.po-list-view-main-container-header]=\"showHeader\"\n [class.po-list-view-main-container]=\"!showHeader\"\n [style.height.px]=\"height\"\n>\n <div *ngIf=\"showHeader\" class=\"po-list-view-main-header\">\n <div class=\"po-checkbox-group-item\">\n <div class=\"po-list-view-main-select\">\n <po-checkbox\n name=\"selectAll\"\n [(ngModel)]=\"selectAll\"\n [p-label]=\"literals.selectAll\"\n (p-change)=\"selectAllListItems()\"\n (click)=\"selectAllListItems()\"\n ></po-checkbox>\n </div>\n </div>\n </div>\n\n <div class=\"po-list-view-main-content\">\n <div class=\"po-list-view\" *ngIf=\"!hasItems()\">\n <div class=\"po-list-view-container-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </div>\n </div>\n\n <ng-container *ngFor=\"let item of items; let index = index; trackBy: trackBy\">\n <div class=\"po-list-view\">\n <div class=\"po-list-view-container\">\n <div class=\"po-list-view-header\">\n <div class=\"po-list-view-title\" [ngSwitch]=\"checkTitleType(item)\">\n <div *ngIf=\"select\" class=\"po-list-view-select\">\n <po-checkbox\n [(ngModel)]=\"item.$selected\"\n name=\"checkbox\"\n (p-change)=\"selectListItem(item)\"\n (click)=\"selectListItem(item)\"\n ></po-checkbox>\n </div>\n <a\n *ngSwitchCase=\"'externalLink'\"\n class=\"po-list-view-title-link\"\n target=\"_blank\"\n [href]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <a\n *ngSwitchCase=\"'internalLink'\"\n class=\"po-list-view-title-link\"\n [routerLink]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <span\n *ngSwitchCase=\"'noLink'\"\n class=\"po-list-view-title-no-link\"\n [class.po-list-view-title-link]=\"titleHasAction\"\n (click)=\"titleHasAction && runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </span>\n </div>\n\n <div *ngIf=\"showButtonsActions\" class=\"po-list-view-actions\">\n <po-button\n *ngFor=\"let action of visibleActions\"\n [p-disabled]=\"returnBooleanValue(action, item)\"\n [p-icon]=\"action.icon\"\n [p-label]=\"action.label\"\n [p-kind]=\"action.type\"\n (p-click)=\"onClickAction(action, item)\"\n >\n </po-button>\n </div>\n\n <div *ngIf=\"showPopupActions\" class=\"po-list-view-more-actions\">\n <span\n #popupTarget\n class=\"po-icon po-icon-more po-list-view-more-icon po-clickable\"\n (click)=\"togglePopup(item, popupTarget)\"\n >\n </span>\n </div>\n </div>\n\n <div *ngIf=\"hasContentTemplate\" class=\"po-list-view-content\">\n <ng-template\n [ngTemplateOutlet]=\"listViewContentTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-template>\n </div>\n\n <div @showHideDetail *ngIf=\"hasDetailTemplate && item.$showDetail\" class=\"po-list-view-detail\">\n <ng-template\n [ngTemplateOutlet]=\"listViewDetailTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-template>\n </div>\n </div>\n\n <div *ngIf=\"hasDetailTemplate\" class=\"po-list-view-detail-button\">\n <span class=\"po-clickable\" (click)=\"item.$showDetail = !item.$showDetail\">\n {{ item.$showDetail ? literals.hideDetails : literals.showDetails }}\n </span>\n </div>\n </div>\n </ng-container>\n </div>\n</div>\n\n<div *ngIf=\"displayShowMoreButton\" class=\"po-mb-2 po-text-center\">\n <po-button [p-disabled]=\"showMoreDisabled\" [p-label]=\"literals.loadMoreData\" (p-click)=\"onShowMore()\"> </po-button>\n</div>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n" }]
|
|
38004
38341
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.IterableDiffers }, { type: PoLanguageService }]; }, { listViewContentTemplate: [{
|
|
38005
38342
|
type: ContentChild,
|
|
38006
38343
|
args: [PoListViewContentTemplateDirective, { static: true }]
|
|
@@ -46545,6 +46882,7 @@ class PoWidgetBaseComponent {
|
|
|
46545
46882
|
*/
|
|
46546
46883
|
this.titleAction = new EventEmitter();
|
|
46547
46884
|
this.containerHeight = 'auto';
|
|
46885
|
+
this.id = uuid();
|
|
46548
46886
|
this._disabled = false;
|
|
46549
46887
|
this._noShadow = false;
|
|
46550
46888
|
this._primary = false;
|
|
@@ -46759,6 +47097,10 @@ function PoWidgetComponent_div_1_div_4_span_1_Template(rf, ctx) {
|
|
|
46759
47097
|
i0.ɵɵlistener("click", function PoWidgetComponent_div_1_div_4_span_1_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r10.settingOutput($event)); });
|
|
46760
47098
|
i0.ɵɵelementEnd();
|
|
46761
47099
|
}
|
|
47100
|
+
if (rf & 2) {
|
|
47101
|
+
const ctx_r8 = i0.ɵɵnextContext(3);
|
|
47102
|
+
i0.ɵɵpropertyInterpolate1("id", "settingAction-", ctx_r8.id, "");
|
|
47103
|
+
}
|
|
46762
47104
|
}
|
|
46763
47105
|
function PoWidgetComponent_div_1_div_4_span_2_Template(rf, ctx) {
|
|
46764
47106
|
if (rf & 1) {
|
|
@@ -46767,12 +47109,16 @@ function PoWidgetComponent_div_1_div_4_span_2_Template(rf, ctx) {
|
|
|
46767
47109
|
i0.ɵɵlistener("click", function PoWidgetComponent_div_1_div_4_span_2_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r12.openHelp($event)); });
|
|
46768
47110
|
i0.ɵɵelementEnd();
|
|
46769
47111
|
}
|
|
47112
|
+
if (rf & 2) {
|
|
47113
|
+
const ctx_r9 = i0.ɵɵnextContext(3);
|
|
47114
|
+
i0.ɵɵpropertyInterpolate1("id", "helpLink-", ctx_r9.id, "");
|
|
47115
|
+
}
|
|
46770
47116
|
}
|
|
46771
47117
|
function PoWidgetComponent_div_1_div_4_Template(rf, ctx) {
|
|
46772
47118
|
if (rf & 1) {
|
|
46773
47119
|
i0.ɵɵelementStart(0, "div", 10);
|
|
46774
|
-
i0.ɵɵtemplate(1, PoWidgetComponent_div_1_div_4_span_1_Template, 1,
|
|
46775
|
-
i0.ɵɵtemplate(2, PoWidgetComponent_div_1_div_4_span_2_Template, 1,
|
|
47120
|
+
i0.ɵɵtemplate(1, PoWidgetComponent_div_1_div_4_span_1_Template, 1, 1, "span", 11);
|
|
47121
|
+
i0.ɵɵtemplate(2, PoWidgetComponent_div_1_div_4_span_2_Template, 1, 1, "span", 12);
|
|
46776
47122
|
i0.ɵɵelementEnd();
|
|
46777
47123
|
}
|
|
46778
47124
|
if (rf & 2) {
|
|
@@ -46810,7 +47156,9 @@ function PoWidgetComponent_div_5_div_1_Template(rf, ctx) {
|
|
|
46810
47156
|
}
|
|
46811
47157
|
if (rf & 2) {
|
|
46812
47158
|
const ctx_r14 = i0.ɵɵnextContext(2);
|
|
46813
|
-
i0.ɵɵadvance(
|
|
47159
|
+
i0.ɵɵadvance(1);
|
|
47160
|
+
i0.ɵɵpropertyInterpolate1("id", "primaryAct-", ctx_r14.id, "");
|
|
47161
|
+
i0.ɵɵadvance(1);
|
|
46814
47162
|
i0.ɵɵtextInterpolate(ctx_r14.primaryLabel);
|
|
46815
47163
|
}
|
|
46816
47164
|
}
|
|
@@ -46824,30 +47172,34 @@ function PoWidgetComponent_div_5_div_2_Template(rf, ctx) {
|
|
|
46824
47172
|
}
|
|
46825
47173
|
if (rf & 2) {
|
|
46826
47174
|
const ctx_r15 = i0.ɵɵnextContext(2);
|
|
46827
|
-
i0.ɵɵadvance(
|
|
47175
|
+
i0.ɵɵadvance(1);
|
|
47176
|
+
i0.ɵɵpropertyInterpolate1("id", "primaryAct-", ctx_r15.id, "");
|
|
47177
|
+
i0.ɵɵadvance(1);
|
|
46828
47178
|
i0.ɵɵtextInterpolate(ctx_r15.primaryLabel);
|
|
46829
47179
|
}
|
|
46830
47180
|
}
|
|
46831
47181
|
function PoWidgetComponent_div_5_div_3_Template(rf, ctx) {
|
|
46832
47182
|
if (rf & 1) {
|
|
46833
47183
|
const _r22 = i0.ɵɵgetCurrentView();
|
|
46834
|
-
i0.ɵɵelementStart(0, "div", 20)(1, "a",
|
|
47184
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "a", 19);
|
|
46835
47185
|
i0.ɵɵlistener("click", function PoWidgetComponent_div_5_div_3_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.runSecondaryAction($event)); });
|
|
46836
47186
|
i0.ɵɵtext(2);
|
|
46837
47187
|
i0.ɵɵelementEnd()();
|
|
46838
47188
|
}
|
|
46839
47189
|
if (rf & 2) {
|
|
46840
47190
|
const ctx_r16 = i0.ɵɵnextContext(2);
|
|
46841
|
-
i0.ɵɵadvance(
|
|
47191
|
+
i0.ɵɵadvance(1);
|
|
47192
|
+
i0.ɵɵpropertyInterpolate1("id", "secondaryAct-", ctx_r16.id, "");
|
|
47193
|
+
i0.ɵɵadvance(1);
|
|
46842
47194
|
i0.ɵɵtextInterpolate(ctx_r16.secondaryLabel);
|
|
46843
47195
|
}
|
|
46844
47196
|
}
|
|
46845
47197
|
function PoWidgetComponent_div_5_Template(rf, ctx) {
|
|
46846
47198
|
if (rf & 1) {
|
|
46847
47199
|
i0.ɵɵelementStart(0, "div", 15);
|
|
46848
|
-
i0.ɵɵtemplate(1, PoWidgetComponent_div_5_div_1_Template, 3,
|
|
46849
|
-
i0.ɵɵtemplate(2, PoWidgetComponent_div_5_div_2_Template, 3,
|
|
46850
|
-
i0.ɵɵtemplate(3, PoWidgetComponent_div_5_div_3_Template, 3,
|
|
47200
|
+
i0.ɵɵtemplate(1, PoWidgetComponent_div_5_div_1_Template, 3, 2, "div", 16);
|
|
47201
|
+
i0.ɵɵtemplate(2, PoWidgetComponent_div_5_div_2_Template, 3, 2, "div", 17);
|
|
47202
|
+
i0.ɵɵtemplate(3, PoWidgetComponent_div_5_div_3_Template, 3, 2, "div", 17);
|
|
46851
47203
|
i0.ɵɵelementEnd();
|
|
46852
47204
|
}
|
|
46853
47205
|
if (rf & 2) {
|
|
@@ -46964,7 +47316,7 @@ class PoWidgetComponent extends PoWidgetBaseComponent {
|
|
|
46964
47316
|
}
|
|
46965
47317
|
}
|
|
46966
47318
|
PoWidgetComponent.ɵfac = function PoWidgetComponent_Factory(t) { return new (t || PoWidgetComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
46967
|
-
PoWidgetComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoWidgetComponent, selectors: [["po-widget"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$1, decls: 6, vars: 15, consts: [[3, "click"], ["class", "po-widget-header", 4, "ngIf"], ["p-no-border", "", 3, "p-height"], [1, "po-widget-body"], ["class", "po-widget-footer", 4, "ngIf"], [1, "po-widget-header"], ["class", "po-widget-title-action", 3, "click", 4, "ngIf", "ngIfElse"], ["noTitleAction", ""], ["class", "po-pull-right", 4, "ngIf"], [1, "po-widget-title-action", 3, "click"], [1, "po-pull-right"], ["
|
|
47319
|
+
PoWidgetComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoWidgetComponent, selectors: [["po-widget"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$1, decls: 6, vars: 15, consts: [[3, "click"], ["class", "po-widget-header", 4, "ngIf"], ["p-no-border", "", 3, "p-height"], [1, "po-widget-body"], ["class", "po-widget-footer", 4, "ngIf"], [1, "po-widget-header"], ["class", "po-widget-title-action", 3, "click", 4, "ngIf", "ngIfElse"], ["noTitleAction", ""], ["class", "po-pull-right", 4, "ngIf"], [1, "po-widget-title-action", 3, "click"], [1, "po-pull-right"], ["class", "po-clickable po-icon po-icon-settings", 3, "id", "click", 4, "ngIf"], ["class", "po-clickable po-icon po-icon-help", 3, "id", "click", 4, "ngIf"], [1, "po-clickable", "po-icon", "po-icon-settings", 3, "id", "click"], [1, "po-clickable", "po-icon", "po-icon-help", 3, "id", "click"], [1, "po-widget-footer"], ["class", "po-widget-xl", 4, "ngIf"], ["class", "po-widget-md", 4, "ngIf"], [1, "po-widget-xl"], [1, "po-widget-action", 3, "id", "click"], [1, "po-widget-md"]], template: function PoWidgetComponent_Template(rf, ctx) {
|
|
46968
47320
|
if (rf & 1) {
|
|
46969
47321
|
i0.ɵɵprojectionDef();
|
|
46970
47322
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -46990,7 +47342,7 @@ PoWidgetComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoWidgetC
|
|
|
46990
47342
|
(function () {
|
|
46991
47343
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoWidgetComponent, [{
|
|
46992
47344
|
type: Component,
|
|
46993
|
-
args: [{ selector: 'po-widget', template: "<div\n [class.po-clickable]=\"click.observers.length\"\n [class.po-widget]=\"!primary\"\n [class.po-widget-disabled]=\"disabled\"\n [class.po-widget-primary]=\"primary\"\n [class.po-widget-no-shadow]=\"noShadow\"\n [style.background-image]=\"background ? 'url(' + background + ')' : undefined\"\n (click)=\"onClick($event)\"\n>\n <div *ngIf=\"hasTitleHelpOrSetting()\" class=\"po-widget-header\">\n <span *ngIf=\"showTitleAction; else noTitleAction\" class=\"po-widget-title-action\" (click)=\"runTitleAction($event)\">\n {{ title }}\n </span>\n <ng-template #noTitleAction>{{ title }}</ng-template>\n\n <div *ngIf=\"setting.observers[0] || help\" class=\"po-pull-right\">\n <span\n id=\"settingAction\"\n *ngIf=\"setting.observers[0]\"\n class=\"po-clickable po-icon po-icon-settings\"\n (click)=\"settingOutput($event)\"\n >\n </span>\n <span id=\"helpLink\" *ngIf=\"help\" class=\"po-clickable po-icon po-icon-help\" (click)=\"openHelp($event)\"
|
|
47345
|
+
args: [{ selector: 'po-widget', template: "<div\n [class.po-clickable]=\"click.observers.length\"\n [class.po-widget]=\"!primary\"\n [class.po-widget-disabled]=\"disabled\"\n [class.po-widget-primary]=\"primary\"\n [class.po-widget-no-shadow]=\"noShadow\"\n [style.background-image]=\"background ? 'url(' + background + ')' : undefined\"\n (click)=\"onClick($event)\"\n>\n <div *ngIf=\"hasTitleHelpOrSetting()\" class=\"po-widget-header\">\n <span *ngIf=\"showTitleAction; else noTitleAction\" class=\"po-widget-title-action\" (click)=\"runTitleAction($event)\">\n {{ title }}\n </span>\n <ng-template #noTitleAction>{{ title }}</ng-template>\n\n <div *ngIf=\"setting.observers[0] || help\" class=\"po-pull-right\">\n <span\n id=\"settingAction-{{ id }}\"\n *ngIf=\"setting.observers[0]\"\n class=\"po-clickable po-icon po-icon-settings\"\n (click)=\"settingOutput($event)\"\n >\n </span>\n <span id=\"helpLink-{{ id }}\" *ngIf=\"help\" class=\"po-clickable po-icon po-icon-help\" (click)=\"openHelp($event)\">\n </span>\n </div>\n </div>\n\n <po-container p-no-border [p-height]=\"containerHeight\">\n <div class=\"po-widget-body\">\n <ng-content></ng-content>\n </div>\n </po-container>\n\n <div *ngIf=\"primaryLabel\" class=\"po-widget-footer\">\n <div class=\"po-widget-xl\" *ngIf=\"!secondaryLabel\">\n <a class=\"po-widget-action\" id=\"primaryAct-{{ id }}\" (click)=\"runPrimaryAction($event)\">{{ primaryLabel }}</a>\n </div>\n\n <div class=\"po-widget-md\" *ngIf=\"secondaryLabel\">\n <a class=\"po-widget-action\" id=\"primaryAct-{{ id }}\" (click)=\"runPrimaryAction($event)\">{{ primaryLabel }}</a>\n </div>\n <div class=\"po-widget-md\" *ngIf=\"secondaryLabel\">\n <a class=\"po-widget-action\" id=\"secondaryAct-{{ id }}\" (click)=\"runSecondaryAction($event)\">{{\n secondaryLabel\n }}</a>\n </div>\n </div>\n</div>\n" }]
|
|
46994
47346
|
}], function () { return [{ type: i0.ViewContainerRef }]; }, null);
|
|
46995
47347
|
})();
|
|
46996
47348
|
|