@po-ui/ng-components 6.7.0 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox-base.component.mjs +12 -4
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.component.mjs +15 -10
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +53 -6
- package/esm2020/lib/components/po-field/po-combo/po-combo-filter.service.mjs +16 -8
- package/esm2020/lib/components/po-field/po-combo/po-combo.component.mjs +221 -112
- package/esm2020/lib/components/po-field/po-decimal/po-decimal.component.mjs +15 -4
- package/esm2020/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +8 -8
- package/esm2020/lib/components/po-table/po-table-base.component.mjs +18 -2
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +10 -2
- package/esm2020/lib/components/po-table/po-table.component.mjs +987 -433
- package/esm2020/lib/directives/po-tooltip/po-tooltip-base.directive.mjs +2 -2
- package/esm2020/lib/directives/po-tooltip/po-tooltip.directive.mjs +32 -2
- package/fesm2015/po-ui-ng-components.mjs +1540 -613
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +1371 -577
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +12 -4
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +2 -2
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +31 -1
- package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +3 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +22 -3
- package/lib/components/po-table/po-table-base.component.d.ts +12 -1
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +3 -1
- package/lib/components/po-table/po-table.component.d.ts +3 -0
- package/lib/directives/po-tooltip/po-tooltip-base.directive.d.ts +1 -1
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +3 -0
- package/package.json +4 -4
- package/po-ui-ng-components-6.10.0.tgz +0 -0
- package/schematics/ng-add/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-6.7.0.tgz +0 -0
|
@@ -2530,7 +2530,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2530
2530
|
} if (rf & 2) {
|
|
2531
2531
|
let _t;
|
|
2532
2532
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
2533
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2533
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["type", "button", 1, "po-button", "po-text-ellipsis", 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) { if (rf & 1) {
|
|
2534
2534
|
i0.ɵɵelementStart(0, "button", 0, 1);
|
|
2535
2535
|
i0.ɵɵlistener("click", function PoButtonComponent_Template_button_click_0_listener() { return ctx.onClick(); });
|
|
2536
2536
|
i0.ɵɵtemplate(2, PoButtonComponent_div_2_Template, 2, 0, "div", 2);
|
|
@@ -2538,7 +2538,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2538
2538
|
i0.ɵɵtemplate(4, PoButtonComponent_span_4_Template, 2, 1, "span", 4);
|
|
2539
2539
|
i0.ɵɵelementEnd();
|
|
2540
2540
|
} if (rf & 2) {
|
|
2541
|
-
i0.ɵɵclassProp("po-button-danger", ctx.type === "danger")("po-button-link", ctx.type === "link")("po-button-primary", ctx.type === "primary")("po-button-sm", ctx.small)("po-clickable", ctx.type === "link");
|
|
2541
|
+
i0.ɵɵclassProp("po-button-default", ctx.type === "default")("po-button-danger", ctx.type === "danger")("po-button-link", ctx.type === "link")("po-button-primary", ctx.type === "primary")("po-button-sm", ctx.small)("po-clickable", ctx.type === "link");
|
|
2542
2542
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.loading);
|
|
2543
2543
|
i0.ɵɵadvance(2);
|
|
2544
2544
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
@@ -2549,7 +2549,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2549
2549
|
} }, directives: [i1.NgIf, PoLoadingIconComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
2550
2550
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonComponent, [{
|
|
2551
2551
|
type: Component,
|
|
2552
|
-
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n class=\"po-button po-text-ellipsis\"\n type=\"button\"\n [class.po-button-danger]=\"type === 'danger'\"\n [class.po-button-link]=\"type === 'link'\"\n [class.po-button-primary]=\"type === 'primary'\"\n [class.po-button-sm]=\"small\"\n [class.po-clickable]=\"type === 'link'\"\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" }]
|
|
2552
|
+
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n class=\"po-button po-text-ellipsis\"\n type=\"button\"\n [class.po-button-default]=\"type === 'default'\"\n [class.po-button-danger]=\"type === 'danger'\"\n [class.po-button-link]=\"type === 'link'\"\n [class.po-button-primary]=\"type === 'primary'\"\n [class.po-button-sm]=\"small\"\n [class.po-clickable]=\"type === 'link'\"\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" }]
|
|
2553
2553
|
}], null, { buttonElement: [{
|
|
2554
2554
|
type: ViewChild,
|
|
2555
2555
|
args: ['button', { static: true }]
|
|
@@ -2596,7 +2596,7 @@ const PO_TOOLTIP_POSITION_DEFAULT = 'bottom';
|
|
|
2596
2596
|
* @description
|
|
2597
2597
|
*
|
|
2598
2598
|
* A diretiva po-tooltip deve ser utilizada para oferecer informações adicionais quando os usuários
|
|
2599
|
-
* passam o mouse sobre o elemento alvo ao qual ela está atribuída.
|
|
2599
|
+
* passam o mouse ou realizam o foco sobre o elemento alvo ao qual ela está atribuída.
|
|
2600
2600
|
*
|
|
2601
2601
|
* O conteúdo é formado por um pequeno texto que deve contribuir para uma tomada de decisão ou
|
|
2602
2602
|
* orientação do usuário. A ativação dele pode estar em qualquer componente ou tag HTML.
|
|
@@ -3067,6 +3067,7 @@ PoTooltipControlPositionService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({
|
|
|
3067
3067
|
type: Injectable
|
|
3068
3068
|
}], null, null); })();
|
|
3069
3069
|
|
|
3070
|
+
const nativeElements = ['input', 'button'];
|
|
3070
3071
|
/**
|
|
3071
3072
|
* @docsExtends PoTooltipBaseDirective
|
|
3072
3073
|
*
|
|
@@ -3106,6 +3107,16 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
3106
3107
|
this.removeTooltipAction();
|
|
3107
3108
|
}
|
|
3108
3109
|
}
|
|
3110
|
+
onFocusOut() {
|
|
3111
|
+
if (!this.displayTooltip) {
|
|
3112
|
+
this.removeTooltipAction();
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
onFocusIn() {
|
|
3116
|
+
if (!this.displayTooltip) {
|
|
3117
|
+
this.addTooltipAction();
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3109
3120
|
ngOnInit() {
|
|
3110
3121
|
this.initScrollEventListenerFunction();
|
|
3111
3122
|
}
|
|
@@ -3144,6 +3155,7 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
3144
3155
|
createTooltip() {
|
|
3145
3156
|
this.tooltipContent = this.renderer.createElement('div');
|
|
3146
3157
|
this.renderer.addClass(this.tooltipContent, 'po-tooltip');
|
|
3158
|
+
this.insertAriaLabelTooltip();
|
|
3147
3159
|
this.divArrow = this.renderer.createElement('div');
|
|
3148
3160
|
this.renderer.addClass(this.divArrow, 'po-tooltip-arrow');
|
|
3149
3161
|
this.divContent = this.renderer.createElement('div');
|
|
@@ -3194,10 +3206,22 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
3194
3206
|
this.renderer.appendChild(this.divContent, this.textContent);
|
|
3195
3207
|
}
|
|
3196
3208
|
}
|
|
3209
|
+
insertAriaLabelTooltip() {
|
|
3210
|
+
const nativeTextContent = this.elementRef.nativeElement.textContent;
|
|
3211
|
+
let targetElement = '';
|
|
3212
|
+
nativeElements.forEach(el => {
|
|
3213
|
+
if (this.elementRef.nativeElement.getElementsByTagName(el)[0] !== undefined) {
|
|
3214
|
+
targetElement = el;
|
|
3215
|
+
}
|
|
3216
|
+
});
|
|
3217
|
+
if (this.elementRef.nativeElement.getElementsByTagName(targetElement)[0] && this.tooltip) {
|
|
3218
|
+
this.renderer.setAttribute(this.elementRef.nativeElement.getElementsByTagName(targetElement)[0], 'aria-label', nativeTextContent + ' ' + this.tooltip);
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3197
3221
|
}
|
|
3198
3222
|
PoTooltipDirective.ɵfac = function PoTooltipDirective_Factory(t) { return new (t || PoTooltipDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoTooltipControlPositionService)); };
|
|
3199
3223
|
PoTooltipDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTooltipDirective, selectors: [["", "p-tooltip", ""]], hostBindings: function PoTooltipDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3200
|
-
i0.ɵɵlistener("mouseenter", function PoTooltipDirective_mouseenter_HostBindingHandler() { return ctx.onMouseEnter(); })("mouseleave", function PoTooltipDirective_mouseleave_HostBindingHandler() { return ctx.onMouseLeave(); });
|
|
3224
|
+
i0.ɵɵlistener("mouseenter", function PoTooltipDirective_mouseenter_HostBindingHandler() { return ctx.onMouseEnter(); })("mouseleave", function PoTooltipDirective_mouseleave_HostBindingHandler() { return ctx.onMouseLeave(); })("focusout", function PoTooltipDirective_focusout_HostBindingHandler() { return ctx.onFocusOut(); })("focusin", function PoTooltipDirective_focusin_HostBindingHandler() { return ctx.onFocusIn(); });
|
|
3201
3225
|
} }, features: [i0.ɵɵProvidersFeature([PoTooltipControlPositionService]), i0.ɵɵInheritDefinitionFeature] });
|
|
3202
3226
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTooltipDirective, [{
|
|
3203
3227
|
type: Directive,
|
|
@@ -3211,6 +3235,12 @@ PoTooltipDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoToolti
|
|
|
3211
3235
|
}], onMouseLeave: [{
|
|
3212
3236
|
type: HostListener,
|
|
3213
3237
|
args: ['mouseleave']
|
|
3238
|
+
}], onFocusOut: [{
|
|
3239
|
+
type: HostListener,
|
|
3240
|
+
args: ['focusout']
|
|
3241
|
+
}], onFocusIn: [{
|
|
3242
|
+
type: HostListener,
|
|
3243
|
+
args: ['focusin']
|
|
3214
3244
|
}] }); })();
|
|
3215
3245
|
|
|
3216
3246
|
/**
|
|
@@ -13541,6 +13571,7 @@ class PoTableColumnManagerComponent {
|
|
|
13541
13571
|
// Evento disparado ao fechar o popover do gerenciador de colunas após alterar as colunas visíveis.
|
|
13542
13572
|
// O po-table envia como parâmetro um array de string com as colunas visíveis atualizadas. Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
13543
13573
|
this.changeVisibleColumns = new EventEmitter();
|
|
13574
|
+
this.initialColumns = new EventEmitter();
|
|
13544
13575
|
this.columnsOptions = [];
|
|
13545
13576
|
this.visibleColumns = [];
|
|
13546
13577
|
this._maxColumns = PoTableColumnManagerMaxColumnsDefault;
|
|
@@ -13583,6 +13614,7 @@ class PoTableColumnManagerComponent {
|
|
|
13583
13614
|
restore() {
|
|
13584
13615
|
this.restoreDefaultEvent = true;
|
|
13585
13616
|
const defaultColumns = this.getVisibleColumns(this.defaultColumns);
|
|
13617
|
+
this.initialColumns.emit(this.getVisibleColumns(this.colunsDefault));
|
|
13586
13618
|
this.checkChanges(defaultColumns, this.restoreDefaultEvent);
|
|
13587
13619
|
}
|
|
13588
13620
|
verifyToEmitChange(event) {
|
|
@@ -13753,7 +13785,7 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13753
13785
|
} if (rf & 2) {
|
|
13754
13786
|
let _t;
|
|
13755
13787
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
13756
|
-
} }, inputs: { columns: ["p-columns", "columns"], target: ["p-target", "target"], lastVisibleColumnsSelected: ["p-last-visible-columns-selected", "lastVisibleColumnsSelected"], maxColumns: ["p-max-columns", "maxColumns"] }, outputs: { visibleColumnsChange: "p-visible-columns-change", changeVisibleColumns: "p-change-visible-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-table-column-manager-footer"], ["p-small", "", "p-type", "link", 1, "po-table-column-manager-footer-restore", 3, "p-label", "p-click"]], template: function PoTableColumnManagerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13788
|
+
} }, 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-table-column-manager-footer"], ["p-small", "", "p-type", "link", 1, "po-table-column-manager-footer-restore", 3, "p-label", "p-click"]], template: function PoTableColumnManagerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13757
13789
|
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template, 11, 5, "po-popover", 0);
|
|
13758
13790
|
} if (rf & 2) {
|
|
13759
13791
|
i0.ɵɵproperty("ngIf", ctx.target);
|
|
@@ -13770,6 +13802,9 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13770
13802
|
}], target: [{
|
|
13771
13803
|
type: Input,
|
|
13772
13804
|
args: ['p-target']
|
|
13805
|
+
}], colunsDefault: [{
|
|
13806
|
+
type: Input,
|
|
13807
|
+
args: ['p-columns-default']
|
|
13773
13808
|
}], lastVisibleColumnsSelected: [{
|
|
13774
13809
|
type: Input,
|
|
13775
13810
|
args: ['p-last-visible-columns-selected']
|
|
@@ -13779,6 +13814,9 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13779
13814
|
}], changeVisibleColumns: [{
|
|
13780
13815
|
type: Output,
|
|
13781
13816
|
args: ['p-change-visible-columns']
|
|
13817
|
+
}], initialColumns: [{
|
|
13818
|
+
type: Output,
|
|
13819
|
+
args: ['p-initial-columns']
|
|
13782
13820
|
}], maxColumns: [{
|
|
13783
13821
|
type: Input,
|
|
13784
13822
|
args: ['p-max-columns']
|
|
@@ -14078,6 +14116,16 @@ class PoTableBaseComponent {
|
|
|
14078
14116
|
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14079
14117
|
*/
|
|
14080
14118
|
this.changeVisibleColumns = new EventEmitter();
|
|
14119
|
+
/**
|
|
14120
|
+
* @optional
|
|
14121
|
+
*
|
|
14122
|
+
* @description
|
|
14123
|
+
* Evento disparado ao clicar no botão de restaurar padrão no gerenciador de colunas.
|
|
14124
|
+
*
|
|
14125
|
+
* O componente envia como parâmetro um array de string com as colunas configuradas inicialmente.
|
|
14126
|
+
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14127
|
+
*/
|
|
14128
|
+
this.columnRestoreManager = new EventEmitter();
|
|
14081
14129
|
this.hasMainColumns = false;
|
|
14082
14130
|
this.mainColumns = [];
|
|
14083
14131
|
this.selectAll = false;
|
|
@@ -14127,6 +14175,9 @@ class PoTableBaseComponent {
|
|
|
14127
14175
|
*
|
|
14128
14176
|
*/
|
|
14129
14177
|
set columns(columns) {
|
|
14178
|
+
if (this.initialColumns === undefined) {
|
|
14179
|
+
this.initialColumns = columns;
|
|
14180
|
+
}
|
|
14130
14181
|
this._columns = columns || [];
|
|
14131
14182
|
if (this._columns.length) {
|
|
14132
14183
|
this.setColumnLink();
|
|
@@ -14624,7 +14675,7 @@ class PoTableBaseComponent {
|
|
|
14624
14675
|
}
|
|
14625
14676
|
}
|
|
14626
14677
|
PoTableBaseComponent.ɵfac = function PoTableBaseComponent_Factory(t) { return new (t || PoTableBaseComponent)(i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoTableService)); };
|
|
14627
|
-
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" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
14678
|
+
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] });
|
|
14628
14679
|
__decorate([
|
|
14629
14680
|
InputBoolean()
|
|
14630
14681
|
], PoTableBaseComponent.prototype, "hideTextOverflow", void 0);
|
|
@@ -14717,6 +14768,9 @@ __decorate([
|
|
|
14717
14768
|
}], changeVisibleColumns: [{
|
|
14718
14769
|
type: Output,
|
|
14719
14770
|
args: ['p-change-visible-columns']
|
|
14771
|
+
}], columnRestoreManager: [{
|
|
14772
|
+
type: Output,
|
|
14773
|
+
args: ['p-restore-column-manager']
|
|
14720
14774
|
}], items: [{
|
|
14721
14775
|
type: Input,
|
|
14722
14776
|
args: ['p-items']
|
|
@@ -15531,16 +15585,17 @@ const _c1$p = ["popup"];
|
|
|
15531
15585
|
const _c2$a = ["tableFooter"];
|
|
15532
15586
|
const _c3$6 = ["tableWrapper"];
|
|
15533
15587
|
const _c4$4 = ["poTableTbody"];
|
|
15534
|
-
const _c5$2 = ["
|
|
15535
|
-
const _c6$
|
|
15536
|
-
const _c7$1 = ["
|
|
15537
|
-
const _c8$1 = ["
|
|
15588
|
+
const _c5$2 = ["poTableThead"];
|
|
15589
|
+
const _c6$2 = ["columnManagerTarget"];
|
|
15590
|
+
const _c7$1 = ["actionsIconElement"];
|
|
15591
|
+
const _c8$1 = ["actionsElement"];
|
|
15592
|
+
const _c9 = ["headersTable"];
|
|
15538
15593
|
function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15539
15594
|
i0.ɵɵelementContainer(0);
|
|
15540
15595
|
} }
|
|
15541
15596
|
function PoTableComponent_po_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
15542
|
-
i0.ɵɵelementStart(0, "po-container",
|
|
15543
|
-
i0.ɵɵtemplate(1, PoTableComponent_po_container_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
15597
|
+
i0.ɵɵelementStart(0, "po-container", 16);
|
|
15598
|
+
i0.ɵɵtemplate(1, PoTableComponent_po_container_0_ng_container_1_Template, 1, 0, "ng-container", 17);
|
|
15544
15599
|
i0.ɵɵelementEnd();
|
|
15545
15600
|
} if (rf & 2) {
|
|
15546
15601
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -15550,70 +15605,79 @@ function PoTableComponent_po_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
15550
15605
|
i0.ɵɵproperty("ngTemplateOutlet", _r1);
|
|
15551
15606
|
} }
|
|
15552
15607
|
function PoTableComponent_ng_template_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
15553
|
-
i0.ɵɵelementStart(0, "div",
|
|
15554
|
-
i0.ɵɵelement(1, "po-loading",
|
|
15608
|
+
i0.ɵɵelementStart(0, "div", 25);
|
|
15609
|
+
i0.ɵɵelement(1, "po-loading", 26);
|
|
15555
15610
|
i0.ɵɵelementEnd();
|
|
15556
15611
|
} if (rf & 2) {
|
|
15557
|
-
const
|
|
15612
|
+
const ctx_r27 = i0.ɵɵnextContext(2);
|
|
15558
15613
|
i0.ɵɵadvance(1);
|
|
15559
|
-
i0.ɵɵproperty("p-text",
|
|
15614
|
+
i0.ɵɵproperty("p-text", ctx_r27.literals.loadingData);
|
|
15615
|
+
} }
|
|
15616
|
+
function PoTableComponent_ng_template_1_div_5_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
15617
|
+
i0.ɵɵelementContainer(0);
|
|
15560
15618
|
} }
|
|
15561
|
-
function
|
|
15619
|
+
function PoTableComponent_ng_template_1_div_5_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
15562
15620
|
i0.ɵɵelementContainer(0);
|
|
15563
15621
|
} }
|
|
15564
15622
|
function PoTableComponent_ng_template_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
15565
|
-
i0.ɵɵ
|
|
15566
|
-
i0.ɵɵ
|
|
15567
|
-
i0.ɵɵ
|
|
15568
|
-
i0.ɵɵ
|
|
15623
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
15624
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "div", 28, 29);
|
|
15625
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_1_div_5_ng_container_3_Template, 1, 0, "ng-container", 17);
|
|
15626
|
+
i0.ɵɵelementEnd();
|
|
15627
|
+
i0.ɵɵelementStart(4, "div", 30, 31);
|
|
15628
|
+
i0.ɵɵlistener("scroll", function PoTableComponent_ng_template_1_div_5_Template_div_scroll_4_listener() { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(2); return ctx_r36.syncronizeHorizontalScroll(); });
|
|
15629
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_5_ng_container_6_Template, 1, 0, "ng-container", 17);
|
|
15569
15630
|
i0.ɵɵelementEnd()();
|
|
15570
15631
|
} if (rf & 2) {
|
|
15571
|
-
const
|
|
15632
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
15572
15633
|
const _r4 = i0.ɵɵreference(5);
|
|
15573
|
-
i0.ɵɵ
|
|
15574
|
-
i0.ɵɵ
|
|
15634
|
+
const _r6 = i0.ɵɵreference(7);
|
|
15635
|
+
i0.ɵɵstyleProp("height", ctx_r29.heightTableContainer, "px");
|
|
15636
|
+
i0.ɵɵadvance(3);
|
|
15575
15637
|
i0.ɵɵproperty("ngTemplateOutlet", _r4);
|
|
15638
|
+
i0.ɵɵadvance(3);
|
|
15639
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6);
|
|
15576
15640
|
} }
|
|
15577
15641
|
function PoTableComponent_ng_template_1_div_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15578
15642
|
i0.ɵɵelementContainer(0);
|
|
15579
15643
|
} }
|
|
15580
15644
|
function PoTableComponent_ng_template_1_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
15581
15645
|
i0.ɵɵelementStart(0, "div");
|
|
15582
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_6_ng_container_1_Template, 1, 0, "ng-container",
|
|
15646
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_6_ng_container_1_Template, 1, 0, "ng-container", 17);
|
|
15583
15647
|
i0.ɵɵelementEnd();
|
|
15584
15648
|
} if (rf & 2) {
|
|
15585
15649
|
i0.ɵɵnextContext(2);
|
|
15586
|
-
const
|
|
15650
|
+
const _r8 = i0.ɵɵreference(9);
|
|
15587
15651
|
i0.ɵɵadvance(1);
|
|
15588
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15652
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r8);
|
|
15589
15653
|
} }
|
|
15590
15654
|
function PoTableComponent_ng_template_1_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15591
15655
|
i0.ɵɵelementContainerStart(0);
|
|
15592
|
-
i0.ɵɵelement(1, "po-table-subtitle-footer",
|
|
15656
|
+
i0.ɵɵelement(1, "po-table-subtitle-footer", 34);
|
|
15593
15657
|
i0.ɵɵelementContainerEnd();
|
|
15594
15658
|
} if (rf & 2) {
|
|
15595
|
-
const
|
|
15596
|
-
const
|
|
15659
|
+
const column_r40 = ctx.$implicit;
|
|
15660
|
+
const ctx_r39 = i0.ɵɵnextContext(3);
|
|
15597
15661
|
i0.ɵɵadvance(1);
|
|
15598
|
-
i0.ɵɵproperty("p-literals",
|
|
15662
|
+
i0.ɵɵproperty("p-literals", ctx_r39.literals)("p-subtitles", column_r40.subtitles);
|
|
15599
15663
|
} }
|
|
15600
15664
|
function PoTableComponent_ng_template_1_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
15601
|
-
i0.ɵɵelementStart(0, "div",
|
|
15602
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_7_ng_container_1_Template, 2, 2, "ng-container",
|
|
15665
|
+
i0.ɵɵelementStart(0, "div", 32);
|
|
15666
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_7_ng_container_1_Template, 2, 2, "ng-container", 33);
|
|
15603
15667
|
i0.ɵɵelementEnd();
|
|
15604
15668
|
} if (rf & 2) {
|
|
15605
|
-
const
|
|
15669
|
+
const ctx_r31 = i0.ɵɵnextContext(2);
|
|
15606
15670
|
i0.ɵɵadvance(1);
|
|
15607
|
-
i0.ɵɵproperty("ngForOf",
|
|
15671
|
+
i0.ɵɵproperty("ngForOf", ctx_r31.subtitleColumns)("ngForTrackBy", ctx_r31.trackBy);
|
|
15608
15672
|
} }
|
|
15609
15673
|
function PoTableComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
15610
15674
|
i0.ɵɵelementStart(0, "div");
|
|
15611
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_1_Template, 2, 1, "div",
|
|
15612
|
-
i0.ɵɵelementStart(2, "div",
|
|
15613
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_1_div_5_Template,
|
|
15614
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_6_Template, 2, 1, "div",
|
|
15675
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_1_Template, 2, 1, "div", 18);
|
|
15676
|
+
i0.ɵɵelementStart(2, "div", 19)(3, "div", 20, 21);
|
|
15677
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_1_div_5_Template, 7, 4, "div", 22);
|
|
15678
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_6_Template, 2, 1, "div", 23);
|
|
15615
15679
|
i0.ɵɵelementEnd()()();
|
|
15616
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_1_div_7_Template, 2, 2, "div",
|
|
15680
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_1_div_7_Template, 2, 2, "div", 24);
|
|
15617
15681
|
} if (rf & 2) {
|
|
15618
15682
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
15619
15683
|
i0.ɵɵclassProp("po-table-container-relative", ctx_r2.loading);
|
|
@@ -15630,9 +15694,9 @@ function PoTableComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15630
15694
|
i0.ɵɵproperty("ngIf", ctx_r2.hasFooter);
|
|
15631
15695
|
} }
|
|
15632
15696
|
function PoTableComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
15633
|
-
const
|
|
15634
|
-
i0.ɵɵelementStart(0, "div",
|
|
15635
|
-
i0.ɵɵlistener("p-click", function PoTableComponent_div_3_Template_po_button_p_click_2_listener() { i0.ɵɵrestoreView(
|
|
15697
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
15698
|
+
i0.ɵɵelementStart(0, "div", 35, 36)(2, "po-button", 37);
|
|
15699
|
+
i0.ɵɵlistener("p-click", function PoTableComponent_div_3_Template_po_button_p_click_2_listener() { i0.ɵɵrestoreView(_r43); const ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.onShowMore(); });
|
|
15636
15700
|
i0.ɵɵelementEnd()();
|
|
15637
15701
|
} if (rf & 2) {
|
|
15638
15702
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -15641,351 +15705,883 @@ function PoTableComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
15641
15705
|
i0.ɵɵproperty("p-disabled", ctx_r3.showMoreDisabled)("p-label", ctx_r3.literals.loadMoreData)("p-loading", ctx_r3.loadingShowMore);
|
|
15642
15706
|
} }
|
|
15643
15707
|
function PoTableComponent_ng_template_4_th_3_input_2_Template(rf, ctx) { if (rf & 1) {
|
|
15644
|
-
i0.ɵɵelement(0, "input",
|
|
15708
|
+
i0.ɵɵelement(0, "input", 49);
|
|
15645
15709
|
} if (rf & 2) {
|
|
15646
|
-
const
|
|
15647
|
-
i0.ɵɵclassProp("po-table-checkbox-checked",
|
|
15710
|
+
const ctx_r52 = i0.ɵɵnextContext(3);
|
|
15711
|
+
i0.ɵɵclassProp("po-table-checkbox-checked", ctx_r52.selectAll)("po-table-checkbox-indeterminate", ctx_r52.selectAll === null);
|
|
15648
15712
|
} }
|
|
15649
15713
|
function PoTableComponent_ng_template_4_th_3_label_3_Template(rf, ctx) { if (rf & 1) {
|
|
15650
|
-
const
|
|
15651
|
-
i0.ɵɵelementStart(0, "label",
|
|
15652
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_3_label_3_Template_label_click_0_listener() { i0.ɵɵrestoreView(
|
|
15714
|
+
const _r55 = i0.ɵɵgetCurrentView();
|
|
15715
|
+
i0.ɵɵelementStart(0, "label", 50);
|
|
15716
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_3_label_3_Template_label_click_0_listener() { i0.ɵɵrestoreView(_r55); const ctx_r54 = i0.ɵɵnextContext(3); return ctx_r54.selectAllRows(); });
|
|
15653
15717
|
i0.ɵɵelementEnd();
|
|
15654
15718
|
} }
|
|
15655
15719
|
function PoTableComponent_ng_template_4_th_3_Template(rf, ctx) { if (rf & 1) {
|
|
15656
|
-
i0.ɵɵelementStart(0, "th",
|
|
15657
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_3_input_2_Template, 1, 4, "input",
|
|
15658
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_label_3_Template, 1, 0, "label",
|
|
15720
|
+
i0.ɵɵelementStart(0, "th", 46)(1, "div");
|
|
15721
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_3_input_2_Template, 1, 4, "input", 47);
|
|
15722
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_label_3_Template, 1, 0, "label", 48);
|
|
15659
15723
|
i0.ɵɵelementEnd()();
|
|
15660
15724
|
} if (rf & 2) {
|
|
15661
|
-
const
|
|
15725
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
15662
15726
|
i0.ɵɵadvance(1);
|
|
15663
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
15727
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r44.height);
|
|
15664
15728
|
i0.ɵɵadvance(1);
|
|
15665
|
-
i0.ɵɵproperty("ngIf", !
|
|
15729
|
+
i0.ɵɵproperty("ngIf", !ctx_r44.hideSelectAll);
|
|
15666
15730
|
i0.ɵɵadvance(1);
|
|
15667
|
-
i0.ɵɵproperty("ngIf", !
|
|
15731
|
+
i0.ɵɵproperty("ngIf", !ctx_r44.hideSelectAll);
|
|
15668
15732
|
} }
|
|
15669
15733
|
function PoTableComponent_ng_template_4_th_4_Template(rf, ctx) { if (rf & 1) {
|
|
15670
|
-
i0.ɵɵelement(0, "th",
|
|
15734
|
+
i0.ɵɵelement(0, "th", 51);
|
|
15671
15735
|
} }
|
|
15672
15736
|
function PoTableComponent_ng_template_4_th_5_Template(rf, ctx) { if (rf & 1) {
|
|
15673
15737
|
i0.ɵɵelement(0, "th");
|
|
15674
15738
|
} if (rf & 2) {
|
|
15675
|
-
const
|
|
15676
|
-
i0.ɵɵclassProp("po-table-header-master-detail", !
|
|
15739
|
+
const ctx_r46 = i0.ɵɵnextContext(2);
|
|
15740
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r46.isSingleAction)("po-table-header-single-action", ctx_r46.isSingleAction);
|
|
15677
15741
|
} }
|
|
15678
15742
|
function PoTableComponent_ng_template_4_th_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
15679
15743
|
i0.ɵɵelementContainer(0);
|
|
15680
15744
|
} }
|
|
15681
15745
|
function PoTableComponent_ng_template_4_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
15682
|
-
i0.ɵɵelementStart(0, "th",
|
|
15683
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_6_ng_container_2_Template, 1, 0, "ng-container",
|
|
15746
|
+
i0.ɵɵelementStart(0, "th", 52, 53);
|
|
15747
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_6_ng_container_2_Template, 1, 0, "ng-container", 54);
|
|
15684
15748
|
i0.ɵɵelementEnd();
|
|
15685
15749
|
} if (rf & 2) {
|
|
15686
|
-
const
|
|
15687
|
-
const
|
|
15688
|
-
const
|
|
15750
|
+
const ctx_r47 = i0.ɵɵnextContext(2);
|
|
15751
|
+
const _r19 = i0.ɵɵreference(21);
|
|
15752
|
+
const _r21 = i0.ɵɵreference(23);
|
|
15689
15753
|
i0.ɵɵadvance(2);
|
|
15690
|
-
i0.ɵɵproperty("ngIf",
|
|
15754
|
+
i0.ɵɵproperty("ngIf", ctx_r47.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
15691
15755
|
} }
|
|
15692
15756
|
function PoTableComponent_ng_template_4_th_7_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
15693
15757
|
i0.ɵɵelementContainer(0);
|
|
15694
15758
|
} }
|
|
15695
|
-
const
|
|
15759
|
+
const _c10 = function (a0) { return { $implicit: a0 }; };
|
|
15696
15760
|
function PoTableComponent_ng_template_4_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
15697
|
-
const
|
|
15698
|
-
i0.ɵɵelementStart(0, "th",
|
|
15699
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
15700
|
-
i0.ɵɵelementStart(2, "div",
|
|
15701
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_7_ng_container_3_Template, 1, 0, "ng-container",
|
|
15761
|
+
const _r63 = i0.ɵɵgetCurrentView();
|
|
15762
|
+
i0.ɵɵelementStart(0, "th", 55, 56);
|
|
15763
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r63); const column_r58 = restoredCtx.$implicit; const ctx_r62 = i0.ɵɵnextContext(2); return ctx_r62.sortColumn(column_r58); });
|
|
15764
|
+
i0.ɵɵelementStart(2, "div", 57);
|
|
15765
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_7_ng_container_3_Template, 1, 0, "ng-container", 58);
|
|
15702
15766
|
i0.ɵɵelementEnd()();
|
|
15703
15767
|
} if (rf & 2) {
|
|
15704
|
-
const
|
|
15705
|
-
const
|
|
15706
|
-
const
|
|
15707
|
-
i0.ɵɵstyleProp("width",
|
|
15708
|
-
i0.ɵɵclassProp("po-clickable",
|
|
15768
|
+
const column_r58 = ctx.$implicit;
|
|
15769
|
+
const ctx_r48 = i0.ɵɵnextContext(2);
|
|
15770
|
+
const _r17 = i0.ɵɵreference(19);
|
|
15771
|
+
i0.ɵɵstyleProp("width", column_r58.width)("max-width", column_r58.width)("min-width", column_r58.width);
|
|
15772
|
+
i0.ɵɵclassProp("po-clickable", ctx_r48.sort && column_r58.sortable !== false || ctx_r48.hasService)("po-table-header-subtitle", column_r58.type === "subtitle");
|
|
15709
15773
|
i0.ɵɵadvance(2);
|
|
15710
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
15774
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r48.height)("po-table-header-flex-right", column_r58.type === "currency" || column_r58.type === "number")("po-table-header-flex-center", column_r58.type === "subtitle");
|
|
15711
15775
|
i0.ɵɵadvance(1);
|
|
15712
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15776
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c10, column_r58));
|
|
15713
15777
|
} }
|
|
15714
15778
|
function PoTableComponent_ng_template_4_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
15715
|
-
i0.ɵɵelement(0, "th",
|
|
15779
|
+
i0.ɵɵelement(0, "th", 51);
|
|
15716
15780
|
} }
|
|
15717
15781
|
function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
15718
15782
|
i0.ɵɵelement(0, "th");
|
|
15719
15783
|
} if (rf & 2) {
|
|
15720
|
-
const
|
|
15721
|
-
i0.ɵɵclassProp("po-table-header-single-action",
|
|
15784
|
+
const ctx_r50 = i0.ɵɵnextContext(2);
|
|
15785
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r50.isSingleAction)("po-table-header-actions", !ctx_r50.isSingleAction);
|
|
15722
15786
|
} }
|
|
15723
15787
|
function PoTableComponent_ng_template_4_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
15724
|
-
const
|
|
15725
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
15726
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
15788
|
+
const _r67 = i0.ɵɵgetCurrentView();
|
|
15789
|
+
i0.ɵɵelementStart(0, "th", null, 59)(2, "div")(3, "button", 60, 61);
|
|
15790
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r67); const ctx_r66 = i0.ɵɵnextContext(2); return ctx_r66.onOpenColumnManager(); });
|
|
15727
15791
|
i0.ɵɵelementEnd()()();
|
|
15728
15792
|
} if (rf & 2) {
|
|
15729
|
-
const
|
|
15730
|
-
const
|
|
15731
|
-
i0.ɵɵclassProp("po-table-header-column-manager", !
|
|
15793
|
+
const _r64 = i0.ɵɵreference(1);
|
|
15794
|
+
const ctx_r51 = i0.ɵɵnextContext(2);
|
|
15795
|
+
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r51.isSingleAction || !ctx_r51.actionRight)("po-table-header-column-manager-border", !ctx_r51.height && ctx_r51.container)("po-table-header-single-action", ctx_r51.isSingleAction && ctx_r51.actionRight);
|
|
15732
15796
|
i0.ɵɵadvance(2);
|
|
15733
|
-
i0.ɵɵstyleProp("width",
|
|
15734
|
-
i0.ɵɵclassProp("po-table-header-column-manager-border",
|
|
15797
|
+
i0.ɵɵstyleProp("width", ctx_r51.height && ctx_r51.visibleActions.length ? _r64.offsetWidth : undefined, "px");
|
|
15798
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r51.height && ctx_r51.container)("po-table-header-column-manager-fixed-inner", ctx_r51.height);
|
|
15735
15799
|
i0.ɵɵadvance(1);
|
|
15736
|
-
i0.ɵɵproperty("p-tooltip",
|
|
15800
|
+
i0.ɵɵproperty("p-tooltip", ctx_r51.literals.columnsManager);
|
|
15737
15801
|
} }
|
|
15738
|
-
function
|
|
15739
|
-
i0.ɵɵelementStart(0, "
|
|
15802
|
+
function PoTableComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
15803
|
+
i0.ɵɵelementStart(0, "table", 38)(1, "thead")(2, "tr");
|
|
15804
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_Template, 4, 4, "th", 39);
|
|
15805
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_th_4_Template, 1, 0, "th", 40);
|
|
15806
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 1, 4, "th", 41);
|
|
15807
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th", 42);
|
|
15808
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 4, 20, "th", 43);
|
|
15809
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th", 40);
|
|
15810
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th", 44);
|
|
15811
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 13, "th", 45);
|
|
15812
|
+
i0.ɵɵelementEnd()()();
|
|
15813
|
+
} if (rf & 2) {
|
|
15814
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
15815
|
+
i0.ɵɵclassProp("po-table-striped", ctx_r5.striped)("po-table-layout-fixed", ctx_r5.hideTextOverflow);
|
|
15816
|
+
i0.ɵɵadvance(2);
|
|
15817
|
+
i0.ɵɵclassProp("po-table-header", !ctx_r5.height);
|
|
15818
|
+
i0.ɵɵadvance(1);
|
|
15819
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasSelectableColumn);
|
|
15820
|
+
i0.ɵɵadvance(1);
|
|
15821
|
+
i0.ɵɵproperty("ngIf", (ctx_r5.hasMasterDetailColumn || ctx_r5.hasRowTemplate) && !ctx_r5.hasRowTemplateWithArrowDirectionRight);
|
|
15822
|
+
i0.ɵɵadvance(1);
|
|
15823
|
+
i0.ɵɵproperty("ngIf", !ctx_r5.actionRight && (ctx_r5.visibleActions.length > 1 || ctx_r5.isSingleAction));
|
|
15824
|
+
i0.ɵɵadvance(1);
|
|
15825
|
+
i0.ɵɵproperty("ngIf", !ctx_r5.hasMainColumns);
|
|
15826
|
+
i0.ɵɵadvance(1);
|
|
15827
|
+
i0.ɵɵproperty("ngForOf", ctx_r5.mainColumns)("ngForTrackBy", ctx_r5.trackBy);
|
|
15828
|
+
i0.ɵɵadvance(1);
|
|
15829
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasRowTemplateWithArrowDirectionRight && (ctx_r5.hasVisibleActions || ctx_r5.hideColumnsManager));
|
|
15830
|
+
i0.ɵɵadvance(1);
|
|
15831
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasVisibleActions && ctx_r5.hideColumnsManager && ctx_r5.actionRight);
|
|
15832
|
+
i0.ɵɵadvance(1);
|
|
15833
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasValidColumns && !ctx_r5.hideColumnsManager);
|
|
15834
|
+
} }
|
|
15835
|
+
function PoTableComponent_ng_template_6_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
15836
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
15740
15837
|
i0.ɵɵtext(4);
|
|
15741
15838
|
i0.ɵɵelementEnd()()()();
|
|
15742
15839
|
} if (rf & 2) {
|
|
15743
|
-
const
|
|
15840
|
+
const ctx_r68 = i0.ɵɵnextContext(2);
|
|
15744
15841
|
i0.ɵɵadvance(2);
|
|
15745
|
-
i0.ɵɵproperty("colSpan",
|
|
15842
|
+
i0.ɵɵproperty("colSpan", ctx_r68.columnCount);
|
|
15746
15843
|
i0.ɵɵadvance(2);
|
|
15747
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
15844
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r68.literals.noData, " ");
|
|
15748
15845
|
} }
|
|
15749
|
-
function
|
|
15846
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15750
15847
|
i0.ɵɵelementContainer(0);
|
|
15751
15848
|
} }
|
|
15752
|
-
function
|
|
15753
|
-
i0.ɵɵelementStart(0, "td",
|
|
15754
|
-
i0.ɵɵtemplate(1,
|
|
15849
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
15850
|
+
i0.ɵɵelementStart(0, "td", 46);
|
|
15851
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
15755
15852
|
i0.ɵɵelementEnd();
|
|
15756
15853
|
} if (rf & 2) {
|
|
15757
|
-
const
|
|
15758
|
-
const
|
|
15759
|
-
const
|
|
15760
|
-
const
|
|
15854
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15855
|
+
const ctx_r73 = i0.ɵɵnextContext(3);
|
|
15856
|
+
const _r13 = i0.ɵɵreference(15);
|
|
15857
|
+
const _r15 = i0.ɵɵreference(17);
|
|
15761
15858
|
i0.ɵɵadvance(1);
|
|
15762
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15859
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r73.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, row_r71));
|
|
15763
15860
|
} }
|
|
15764
|
-
function
|
|
15765
|
-
const
|
|
15766
|
-
function
|
|
15767
|
-
const
|
|
15768
|
-
i0.ɵɵelementStart(0, "td",
|
|
15769
|
-
i0.ɵɵlistener("click", function
|
|
15770
|
-
i0.ɵɵtemplate(1,
|
|
15861
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
15862
|
+
const _c11 = function (a0, a1) { return { row: a0, rowIndex: a1 }; };
|
|
15863
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
15864
|
+
const _r89 = i0.ɵɵgetCurrentView();
|
|
15865
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
15866
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_2_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 ctx_r87.toggleDetail(row_r71); });
|
|
15867
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
15771
15868
|
i0.ɵɵelementEnd();
|
|
15772
15869
|
} if (rf & 2) {
|
|
15773
|
-
const
|
|
15774
|
-
const
|
|
15775
|
-
const
|
|
15870
|
+
const ctx_r90 = i0.ɵɵnextContext();
|
|
15871
|
+
const row_r71 = ctx_r90.$implicit;
|
|
15872
|
+
const rowIndex_r72 = ctx_r90.index;
|
|
15776
15873
|
i0.ɵɵnextContext(3);
|
|
15777
|
-
const
|
|
15874
|
+
const _r11 = i0.ɵɵreference(13);
|
|
15778
15875
|
i0.ɵɵadvance(1);
|
|
15779
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15876
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
15780
15877
|
} }
|
|
15781
|
-
function
|
|
15782
|
-
function
|
|
15783
|
-
i0.ɵɵtemplate(0,
|
|
15878
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
15879
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_Template(rf, ctx) { if (rf & 1) {
|
|
15880
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
15784
15881
|
} if (rf & 2) {
|
|
15785
|
-
const
|
|
15786
|
-
const
|
|
15787
|
-
const
|
|
15882
|
+
const ctx_r92 = i0.ɵɵnextContext();
|
|
15883
|
+
const row_r71 = ctx_r92.$implicit;
|
|
15884
|
+
const rowIndex_r72 = ctx_r92.index;
|
|
15788
15885
|
i0.ɵɵnextContext(3);
|
|
15789
|
-
const
|
|
15790
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15886
|
+
const _r23 = i0.ɵɵreference(25);
|
|
15887
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
15791
15888
|
} }
|
|
15792
|
-
function
|
|
15793
|
-
function
|
|
15794
|
-
const
|
|
15795
|
-
i0.ɵɵelementStart(0, "td",
|
|
15796
|
-
i0.ɵɵlistener("click", function
|
|
15797
|
-
i0.ɵɵtemplate(1,
|
|
15889
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
15890
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
15891
|
+
const _r96 = i0.ɵɵgetCurrentView();
|
|
15892
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
15893
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_2_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 ctx_r94.toggleDetail(row_r71); });
|
|
15894
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
15798
15895
|
i0.ɵɵelementEnd();
|
|
15799
15896
|
} if (rf & 2) {
|
|
15800
|
-
const
|
|
15801
|
-
const
|
|
15802
|
-
const
|
|
15897
|
+
const ctx_r97 = i0.ɵɵnextContext();
|
|
15898
|
+
const row_r71 = ctx_r97.$implicit;
|
|
15899
|
+
const rowIndex_r72 = ctx_r97.index;
|
|
15803
15900
|
i0.ɵɵnextContext(3);
|
|
15804
|
-
const
|
|
15901
|
+
const _r11 = i0.ɵɵreference(13);
|
|
15805
15902
|
i0.ɵɵadvance(1);
|
|
15806
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15903
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
15807
15904
|
} }
|
|
15808
|
-
function
|
|
15905
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15809
15906
|
i0.ɵɵelementContainer(0);
|
|
15810
15907
|
} }
|
|
15811
|
-
function
|
|
15908
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15812
15909
|
i0.ɵɵelementStart(0, "span");
|
|
15813
|
-
i0.ɵɵtemplate(1,
|
|
15910
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
15814
15911
|
i0.ɵɵelementEnd();
|
|
15815
15912
|
} if (rf & 2) {
|
|
15816
|
-
const
|
|
15817
|
-
const
|
|
15818
|
-
const
|
|
15913
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15914
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15915
|
+
const ctx_r100 = i0.ɵɵnextContext(3);
|
|
15819
15916
|
i0.ɵɵadvance(1);
|
|
15820
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15917
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r100.getTemplate(column_r98))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, ctx_r100.getCellData(row_r71, column_r98)));
|
|
15821
15918
|
} }
|
|
15822
|
-
function
|
|
15919
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15823
15920
|
i0.ɵɵelementContainer(0);
|
|
15824
15921
|
} }
|
|
15825
|
-
const
|
|
15826
|
-
function
|
|
15922
|
+
const _c12 = function (a0, a1) { return { row: a0, column: a1 }; };
|
|
15923
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
15827
15924
|
i0.ɵɵelementStart(0, "span");
|
|
15828
|
-
i0.ɵɵtemplate(1,
|
|
15925
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
15829
15926
|
i0.ɵɵelementEnd();
|
|
15830
15927
|
} if (rf & 2) {
|
|
15831
|
-
const
|
|
15832
|
-
const
|
|
15833
|
-
const
|
|
15928
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15929
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15930
|
+
const ctx_r101 = i0.ɵɵnextContext(3);
|
|
15834
15931
|
i0.ɵɵadvance(1);
|
|
15835
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15932
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r101.tableCellTemplate == null ? null : ctx_r101.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, column_r98));
|
|
15836
15933
|
} }
|
|
15837
|
-
function
|
|
15934
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15838
15935
|
i0.ɵɵelementStart(0, "span");
|
|
15839
15936
|
i0.ɵɵtext(1);
|
|
15840
15937
|
i0.ɵɵelementEnd();
|
|
15841
15938
|
} if (rf & 2) {
|
|
15842
|
-
const
|
|
15843
|
-
const
|
|
15844
|
-
const
|
|
15939
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15940
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15941
|
+
const ctx_r102 = i0.ɵɵnextContext(3);
|
|
15845
15942
|
i0.ɵɵadvance(1);
|
|
15846
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
15943
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r102.getBooleanLabel(ctx_r102.getCellData(row_r71, column_r98), column_r98), " ");
|
|
15847
15944
|
} }
|
|
15848
|
-
function
|
|
15945
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
15849
15946
|
i0.ɵɵelementStart(0, "span");
|
|
15850
15947
|
i0.ɵɵtext(1);
|
|
15851
15948
|
i0.ɵɵpipe(2, "currency");
|
|
15852
15949
|
i0.ɵɵelementEnd();
|
|
15853
15950
|
} if (rf & 2) {
|
|
15854
|
-
const
|
|
15855
|
-
const
|
|
15856
|
-
const
|
|
15951
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15952
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15953
|
+
const ctx_r103 = i0.ɵɵnextContext(3);
|
|
15857
15954
|
i0.ɵɵadvance(1);
|
|
15858
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
15955
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r103.getCellData(row_r71, column_r98), column_r98.format, "symbol", "1.2-2"), " ");
|
|
15859
15956
|
} }
|
|
15860
|
-
function
|
|
15957
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
15861
15958
|
i0.ɵɵelementStart(0, "span");
|
|
15862
15959
|
i0.ɵɵtext(1);
|
|
15863
15960
|
i0.ɵɵpipe(2, "date");
|
|
15864
15961
|
i0.ɵɵelementEnd();
|
|
15865
15962
|
} if (rf & 2) {
|
|
15866
|
-
const
|
|
15867
|
-
const
|
|
15868
|
-
const
|
|
15963
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15964
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15965
|
+
const ctx_r104 = i0.ɵɵnextContext(3);
|
|
15869
15966
|
i0.ɵɵadvance(1);
|
|
15870
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
15967
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r104.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy"), " ");
|
|
15871
15968
|
} }
|
|
15872
|
-
function
|
|
15969
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
15873
15970
|
i0.ɵɵelementStart(0, "span");
|
|
15874
15971
|
i0.ɵɵtext(1);
|
|
15875
15972
|
i0.ɵɵpipe(2, "po_time");
|
|
15876
15973
|
i0.ɵɵelementEnd();
|
|
15877
15974
|
} if (rf & 2) {
|
|
15878
|
-
const
|
|
15879
|
-
const
|
|
15880
|
-
const
|
|
15975
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15976
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15977
|
+
const ctx_r105 = i0.ɵɵnextContext(3);
|
|
15881
15978
|
i0.ɵɵadvance(1);
|
|
15882
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
15979
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r105.getCellData(row_r71, column_r98), column_r98.format || "HH:mm:ss.ffffff"), " ");
|
|
15883
15980
|
} }
|
|
15884
|
-
function
|
|
15981
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
15885
15982
|
i0.ɵɵelementStart(0, "span");
|
|
15886
15983
|
i0.ɵɵtext(1);
|
|
15887
15984
|
i0.ɵɵpipe(2, "date");
|
|
15888
15985
|
i0.ɵɵelementEnd();
|
|
15889
15986
|
} if (rf & 2) {
|
|
15890
|
-
const
|
|
15891
|
-
const
|
|
15892
|
-
const
|
|
15987
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15988
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15989
|
+
const ctx_r106 = i0.ɵɵnextContext(3);
|
|
15893
15990
|
i0.ɵɵadvance(1);
|
|
15894
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
15991
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r106.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
15895
15992
|
} }
|
|
15896
|
-
function
|
|
15993
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
15897
15994
|
i0.ɵɵelementStart(0, "span");
|
|
15898
15995
|
i0.ɵɵtext(1);
|
|
15899
15996
|
i0.ɵɵelementEnd();
|
|
15900
15997
|
} if (rf & 2) {
|
|
15901
|
-
const
|
|
15902
|
-
const
|
|
15903
|
-
const
|
|
15998
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15999
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16000
|
+
const ctx_r107 = i0.ɵɵnextContext(3);
|
|
15904
16001
|
i0.ɵɵadvance(1);
|
|
15905
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16002
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r107.formatNumber(ctx_r107.getCellData(row_r71, column_r98), column_r98.format), " ");
|
|
15906
16003
|
} }
|
|
15907
|
-
function
|
|
15908
|
-
const
|
|
15909
|
-
i0.ɵɵelementStart(0, "po-table-column-link",
|
|
15910
|
-
i0.ɵɵlistener("click", function
|
|
16004
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) { if (rf & 1) {
|
|
16005
|
+
const _r133 = i0.ɵɵgetCurrentView();
|
|
16006
|
+
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
16007
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_2_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 ctx_r131.onClickLink($event, row_r71, column_r98); });
|
|
15911
16008
|
i0.ɵɵelementEnd();
|
|
15912
16009
|
} if (rf & 2) {
|
|
15913
|
-
const
|
|
15914
|
-
const
|
|
15915
|
-
const
|
|
15916
|
-
i0.ɵɵproperty("p-action",
|
|
16010
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16011
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16012
|
+
const ctx_r108 = i0.ɵɵnextContext(3);
|
|
16013
|
+
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));
|
|
15917
16014
|
} }
|
|
15918
|
-
function
|
|
15919
|
-
i0.ɵɵelement(0, "po-table-column-icon",
|
|
16015
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) { if (rf & 1) {
|
|
16016
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
15920
16017
|
} if (rf & 2) {
|
|
15921
|
-
const
|
|
15922
|
-
const
|
|
15923
|
-
const
|
|
15924
|
-
i0.ɵɵproperty("p-column",
|
|
16018
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16019
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16020
|
+
const ctx_r109 = i0.ɵɵnextContext(3);
|
|
16021
|
+
i0.ɵɵproperty("p-column", column_r98)("p-icons", ctx_r109.getColumnIcons(row_r71, column_r98))("p-row", row_r71);
|
|
15925
16022
|
} }
|
|
15926
|
-
function
|
|
16023
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
15927
16024
|
i0.ɵɵelementStart(0, "span");
|
|
15928
|
-
i0.ɵɵelement(1, "po-table-subtitle-circle",
|
|
16025
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
15929
16026
|
i0.ɵɵelementEnd();
|
|
15930
16027
|
} if (rf & 2) {
|
|
15931
|
-
const
|
|
15932
|
-
const
|
|
15933
|
-
const
|
|
16028
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16029
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16030
|
+
const ctx_r110 = i0.ɵɵnextContext(3);
|
|
15934
16031
|
i0.ɵɵadvance(1);
|
|
15935
|
-
i0.ɵɵproperty("p-subtitle",
|
|
16032
|
+
i0.ɵɵproperty("p-subtitle", ctx_r110.getSubtitleColumn(row_r71, column_r98));
|
|
15936
16033
|
} }
|
|
15937
|
-
function
|
|
16034
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
15938
16035
|
i0.ɵɵelementStart(0, "span");
|
|
15939
|
-
i0.ɵɵelement(1, "po-table-column-label",
|
|
16036
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
15940
16037
|
i0.ɵɵelementEnd();
|
|
15941
16038
|
} if (rf & 2) {
|
|
15942
|
-
const
|
|
15943
|
-
const
|
|
15944
|
-
const
|
|
16039
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16040
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16041
|
+
const ctx_r111 = i0.ɵɵnextContext(3);
|
|
15945
16042
|
i0.ɵɵadvance(1);
|
|
15946
|
-
i0.ɵɵproperty("p-value",
|
|
16043
|
+
i0.ɵɵproperty("p-value", ctx_r111.getColumnLabel(row_r71, column_r98));
|
|
15947
16044
|
} }
|
|
15948
|
-
function
|
|
16045
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
15949
16046
|
i0.ɵɵelementStart(0, "span");
|
|
15950
16047
|
i0.ɵɵtext(1);
|
|
15951
16048
|
i0.ɵɵelementEnd();
|
|
15952
16049
|
} if (rf & 2) {
|
|
15953
|
-
const
|
|
15954
|
-
const
|
|
15955
|
-
const
|
|
16050
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16051
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16052
|
+
const ctx_r112 = i0.ɵɵnextContext(3);
|
|
16053
|
+
i0.ɵɵadvance(1);
|
|
16054
|
+
i0.ɵɵtextInterpolate(ctx_r112.getCellData(row_r71, column_r98));
|
|
16055
|
+
} }
|
|
16056
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
16057
|
+
const _r146 = i0.ɵɵgetCurrentView();
|
|
16058
|
+
i0.ɵɵelementStart(0, "td", 73);
|
|
16059
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_2_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 ctx_r145.selectable ? ctx_r145.selectRow(row_r71) : "javascript:;"; });
|
|
16060
|
+
i0.ɵɵelementStart(1, "div", 74);
|
|
16061
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_6_ng_container_2_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 ctx_r148.tooltipMouseEnter($event, column_r98, row_r71); })("mouseleave", function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r146); const ctx_r150 = i0.ɵɵnextContext(4); return ctx_r150.tooltipMouseLeave(); });
|
|
16062
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
16063
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
16064
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
16065
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
16066
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
16067
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
16068
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
16069
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
16070
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_link_10_Template, 1, 5, "po-table-column-link", 76);
|
|
16071
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon", 77);
|
|
16072
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
16073
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
16074
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
16075
|
+
i0.ɵɵelementEnd()();
|
|
16076
|
+
} if (rf & 2) {
|
|
16077
|
+
const column_r98 = ctx.$implicit;
|
|
16078
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16079
|
+
const ctx_r77 = i0.ɵɵnextContext(3);
|
|
16080
|
+
i0.ɵɵstyleProp("width", column_r98.width)("max-width", column_r98.width)("min-width", column_r98.width);
|
|
16081
|
+
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");
|
|
16082
|
+
i0.ɵɵproperty("ngClass", ctx_r77.getClassColor(row_r71, column_r98));
|
|
16083
|
+
i0.ɵɵadvance(1);
|
|
16084
|
+
i0.ɵɵstyleProp("width", ctx_r77.noColumnsHeader == null ? null : ctx_r77.noColumnsHeader.nativeElement.parentElement == null ? null : ctx_r77.noColumnsHeader.nativeElement.parentElement.offsetWidth, "px");
|
|
16085
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r77.hideTextOverflow);
|
|
16086
|
+
i0.ɵɵproperty("ngSwitch", column_r98.type)("p-tooltip", ctx_r77.tooltipText);
|
|
16087
|
+
i0.ɵɵadvance(1);
|
|
16088
|
+
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
16089
|
+
i0.ɵɵadvance(1);
|
|
16090
|
+
i0.ɵɵproperty("ngSwitchCase", "cellTemplate");
|
|
16091
|
+
i0.ɵɵadvance(1);
|
|
16092
|
+
i0.ɵɵproperty("ngSwitchCase", "boolean");
|
|
16093
|
+
i0.ɵɵadvance(1);
|
|
16094
|
+
i0.ɵɵproperty("ngSwitchCase", "currency");
|
|
16095
|
+
i0.ɵɵadvance(1);
|
|
16096
|
+
i0.ɵɵproperty("ngSwitchCase", "date");
|
|
15956
16097
|
i0.ɵɵadvance(1);
|
|
15957
|
-
i0.ɵɵ
|
|
16098
|
+
i0.ɵɵproperty("ngSwitchCase", "time");
|
|
16099
|
+
i0.ɵɵadvance(1);
|
|
16100
|
+
i0.ɵɵproperty("ngSwitchCase", "dateTime");
|
|
16101
|
+
i0.ɵɵadvance(1);
|
|
16102
|
+
i0.ɵɵproperty("ngSwitchCase", "number");
|
|
16103
|
+
i0.ɵɵadvance(1);
|
|
16104
|
+
i0.ɵɵproperty("ngSwitchCase", "link");
|
|
16105
|
+
i0.ɵɵadvance(1);
|
|
16106
|
+
i0.ɵɵproperty("ngSwitchCase", "icon");
|
|
16107
|
+
i0.ɵɵadvance(1);
|
|
16108
|
+
i0.ɵɵproperty("ngSwitchCase", "subtitle");
|
|
16109
|
+
i0.ɵɵadvance(1);
|
|
16110
|
+
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
15958
16111
|
} }
|
|
15959
|
-
function
|
|
15960
|
-
|
|
16112
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
16113
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
16114
|
+
const _r155 = i0.ɵɵgetCurrentView();
|
|
15961
16115
|
i0.ɵɵelementStart(0, "td", 71);
|
|
15962
|
-
i0.ɵɵlistener("click", function
|
|
15963
|
-
i0.ɵɵ
|
|
15964
|
-
i0.ɵɵ
|
|
15965
|
-
|
|
15966
|
-
i0.ɵɵ
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
i0.ɵɵ
|
|
15970
|
-
i0.ɵɵ
|
|
15971
|
-
i0.ɵɵ
|
|
15972
|
-
i0.ɵɵ
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
i0.ɵɵtemplate(
|
|
15977
|
-
|
|
16116
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_2_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 ctx_r153.toggleDetail(row_r71); });
|
|
16117
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16118
|
+
i0.ɵɵelementEnd();
|
|
16119
|
+
} if (rf & 2) {
|
|
16120
|
+
const ctx_r156 = i0.ɵɵnextContext();
|
|
16121
|
+
const row_r71 = ctx_r156.$implicit;
|
|
16122
|
+
const rowIndex_r72 = ctx_r156.index;
|
|
16123
|
+
i0.ɵɵnextContext(3);
|
|
16124
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16125
|
+
i0.ɵɵadvance(1);
|
|
16126
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16127
|
+
} }
|
|
16128
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
16129
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_Template(rf, ctx) { if (rf & 1) {
|
|
16130
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16131
|
+
} if (rf & 2) {
|
|
16132
|
+
const ctx_r158 = i0.ɵɵnextContext();
|
|
16133
|
+
const row_r71 = ctx_r158.$implicit;
|
|
16134
|
+
const rowIndex_r72 = ctx_r158.index;
|
|
16135
|
+
i0.ɵɵnextContext(3);
|
|
16136
|
+
const _r23 = i0.ɵɵreference(25);
|
|
16137
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16138
|
+
} }
|
|
16139
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
16140
|
+
i0.ɵɵelementContainerStart(0);
|
|
16141
|
+
i0.ɵɵelement(1, "td", 83);
|
|
16142
|
+
i0.ɵɵelementContainerEnd();
|
|
16143
|
+
} }
|
|
16144
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
16145
|
+
i0.ɵɵelement(0, "td", 84);
|
|
16146
|
+
} }
|
|
16147
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
16148
|
+
const _c13 = function (a0, a1) { return { $implicit: a0, rowIndex: a1 }; };
|
|
16149
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_Template(rf, ctx) { if (rf & 1) {
|
|
16150
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
16151
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
16152
|
+
i0.ɵɵelementEnd()();
|
|
16153
|
+
} if (rf & 2) {
|
|
16154
|
+
const ctx_r160 = i0.ɵɵnextContext();
|
|
16155
|
+
const row_r71 = ctx_r160.$implicit;
|
|
16156
|
+
const rowIndex_r72 = ctx_r160.index;
|
|
16157
|
+
const ctx_r82 = i0.ɵɵnextContext(3);
|
|
16158
|
+
i0.ɵɵadvance(1);
|
|
16159
|
+
i0.ɵɵproperty("colSpan", ctx_r82.columnCountForMasterDetail);
|
|
16160
|
+
i0.ɵɵadvance(1);
|
|
16161
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r82.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c13, row_r71, rowIndex_r72));
|
|
16162
|
+
} }
|
|
16163
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template(rf, ctx) { if (rf & 1) {
|
|
16164
|
+
const _r162 = i0.ɵɵgetCurrentView();
|
|
16165
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
16166
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r162); const ctx_r161 = i0.ɵɵnextContext(4); return ctx_r161.selectDetailRow($event); });
|
|
16167
|
+
i0.ɵɵelementEnd()()();
|
|
16168
|
+
} if (rf & 2) {
|
|
16169
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16170
|
+
const ctx_r83 = i0.ɵɵnextContext(3);
|
|
16171
|
+
i0.ɵɵadvance(1);
|
|
16172
|
+
i0.ɵɵproperty("colSpan", ctx_r83.columnCountForMasterDetail);
|
|
16173
|
+
i0.ɵɵadvance(1);
|
|
16174
|
+
i0.ɵɵproperty("p-selectable", ctx_r83.selectable && !ctx_r83.detailHideSelect)("p-detail", ctx_r83.columnMasterDetail.detail)("p-items", row_r71[ctx_r83.nameColumnDetail]);
|
|
16175
|
+
} }
|
|
16176
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
16177
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
16178
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_Template, 2, 4, "td", 39);
|
|
16179
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
16180
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_Template, 1, 5, null, 23);
|
|
16181
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
16182
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template, 15, 33, "td", 69);
|
|
16183
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
16184
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_Template, 1, 5, null, 23);
|
|
16185
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_2_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
16186
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
16187
|
+
i0.ɵɵelementEnd();
|
|
16188
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
16189
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
16190
|
+
i0.ɵɵelementEnd();
|
|
16191
|
+
} if (rf & 2) {
|
|
16192
|
+
const row_r71 = ctx.$implicit;
|
|
16193
|
+
const rowIndex_r72 = ctx.index;
|
|
16194
|
+
const ctx_r70 = i0.ɵɵnextContext(3);
|
|
16195
|
+
i0.ɵɵadvance(1);
|
|
16196
|
+
i0.ɵɵclassProp("po-table-row-active", row_r71.$selected || row_r71.$selected === null && ctx_r70.selectable);
|
|
16197
|
+
i0.ɵɵadvance(1);
|
|
16198
|
+
i0.ɵɵproperty("ngIf", ctx_r70.selectable);
|
|
16199
|
+
i0.ɵɵadvance(1);
|
|
16200
|
+
i0.ɵɵproperty("ngIf", ctx_r70.columnMasterDetail && !ctx_r70.hideDetail && !ctx_r70.hasRowTemplate);
|
|
16201
|
+
i0.ɵɵadvance(1);
|
|
16202
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction));
|
|
16203
|
+
i0.ɵɵadvance(1);
|
|
16204
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplate && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
16205
|
+
i0.ɵɵadvance(1);
|
|
16206
|
+
i0.ɵɵproperty("ngForOf", ctx_r70.mainColumns)("ngForTrackBy", ctx_r70.trackBy);
|
|
16207
|
+
i0.ɵɵadvance(1);
|
|
16208
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
16209
|
+
i0.ɵɵadvance(1);
|
|
16210
|
+
i0.ɵɵproperty("ngIf", ctx_r70.actionRight);
|
|
16211
|
+
i0.ɵɵadvance(1);
|
|
16212
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction) && !ctx_r70.hideColumnsManager);
|
|
16213
|
+
i0.ɵɵadvance(1);
|
|
16214
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.hasVisibleActions && !ctx_r70.hideColumnsManager && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
16215
|
+
i0.ɵɵadvance(1);
|
|
16216
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.hasRowTemplate && row_r71.$showDetail && ctx_r70.isShowRowTemplate(row_r71, rowIndex_r72));
|
|
16217
|
+
i0.ɵɵadvance(1);
|
|
16218
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.isShowMasterDetail(row_r71));
|
|
16219
|
+
} }
|
|
16220
|
+
function PoTableComponent_ng_template_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
16221
|
+
i0.ɵɵelementContainerStart(0);
|
|
16222
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template, 13, 14, "tbody", 66);
|
|
16223
|
+
i0.ɵɵelementContainerEnd();
|
|
16224
|
+
} if (rf & 2) {
|
|
16225
|
+
const ctx_r69 = i0.ɵɵnextContext(2);
|
|
16226
|
+
i0.ɵɵadvance(1);
|
|
16227
|
+
i0.ɵɵproperty("ngForOf", ctx_r69.items)("ngForTrackBy", ctx_r69.trackBy);
|
|
16228
|
+
} }
|
|
16229
|
+
function PoTableComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
16230
|
+
i0.ɵɵelementStart(0, "table", 38);
|
|
16231
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_tbody_1_Template, 5, 2, "tbody", 62);
|
|
16232
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_Template, 2, 2, "ng-container", 23);
|
|
16233
|
+
i0.ɵɵelementEnd();
|
|
16234
|
+
} if (rf & 2) {
|
|
16235
|
+
const ctx_r7 = i0.ɵɵnextContext();
|
|
16236
|
+
i0.ɵɵclassProp("po-table-striped", ctx_r7.striped)("po-table-layout-fixed", ctx_r7.hideTextOverflow);
|
|
16237
|
+
i0.ɵɵadvance(1);
|
|
16238
|
+
i0.ɵɵproperty("ngIf", !ctx_r7.hasItems || !ctx_r7.hasMainColumns);
|
|
16239
|
+
i0.ɵɵadvance(1);
|
|
16240
|
+
i0.ɵɵproperty("ngIf", ctx_r7.hasMainColumns);
|
|
16241
|
+
} }
|
|
16242
|
+
function PoTableComponent_ng_template_8_th_3_input_2_Template(rf, ctx) { if (rf & 1) {
|
|
16243
|
+
i0.ɵɵelement(0, "input", 49);
|
|
16244
|
+
} if (rf & 2) {
|
|
16245
|
+
const ctx_r174 = i0.ɵɵnextContext(3);
|
|
16246
|
+
i0.ɵɵclassProp("po-table-checkbox-checked", ctx_r174.selectAll)("po-table-checkbox-indeterminate", ctx_r174.selectAll === null);
|
|
16247
|
+
} }
|
|
16248
|
+
function PoTableComponent_ng_template_8_th_3_label_3_Template(rf, ctx) { if (rf & 1) {
|
|
16249
|
+
const _r177 = i0.ɵɵgetCurrentView();
|
|
16250
|
+
i0.ɵɵelementStart(0, "label", 50);
|
|
16251
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_3_label_3_Template_label_click_0_listener() { i0.ɵɵrestoreView(_r177); const ctx_r176 = i0.ɵɵnextContext(3); return ctx_r176.selectAllRows(); });
|
|
16252
|
+
i0.ɵɵelementEnd();
|
|
16253
|
+
} }
|
|
16254
|
+
function PoTableComponent_ng_template_8_th_3_Template(rf, ctx) { if (rf & 1) {
|
|
16255
|
+
i0.ɵɵelementStart(0, "th", 46)(1, "div");
|
|
16256
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_3_input_2_Template, 1, 4, "input", 47);
|
|
16257
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_label_3_Template, 1, 0, "label", 48);
|
|
16258
|
+
i0.ɵɵelementEnd()();
|
|
16259
|
+
} if (rf & 2) {
|
|
16260
|
+
const ctx_r164 = i0.ɵɵnextContext(2);
|
|
16261
|
+
i0.ɵɵadvance(1);
|
|
16262
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r164.height);
|
|
16263
|
+
i0.ɵɵadvance(1);
|
|
16264
|
+
i0.ɵɵproperty("ngIf", !ctx_r164.hideSelectAll);
|
|
16265
|
+
i0.ɵɵadvance(1);
|
|
16266
|
+
i0.ɵɵproperty("ngIf", !ctx_r164.hideSelectAll);
|
|
16267
|
+
} }
|
|
16268
|
+
function PoTableComponent_ng_template_8_th_4_Template(rf, ctx) { if (rf & 1) {
|
|
16269
|
+
i0.ɵɵelement(0, "th", 51);
|
|
16270
|
+
} }
|
|
16271
|
+
function PoTableComponent_ng_template_8_th_5_Template(rf, ctx) { if (rf & 1) {
|
|
16272
|
+
i0.ɵɵelement(0, "th");
|
|
16273
|
+
} if (rf & 2) {
|
|
16274
|
+
const ctx_r166 = i0.ɵɵnextContext(2);
|
|
16275
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r166.isSingleAction)("po-table-header-single-action", ctx_r166.isSingleAction);
|
|
16276
|
+
} }
|
|
16277
|
+
function PoTableComponent_ng_template_8_th_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
16278
|
+
i0.ɵɵelementContainer(0);
|
|
16279
|
+
} }
|
|
16280
|
+
function PoTableComponent_ng_template_8_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
16281
|
+
i0.ɵɵelementStart(0, "th", 52, 53);
|
|
16282
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_6_ng_container_2_Template, 1, 0, "ng-container", 54);
|
|
16283
|
+
i0.ɵɵelementEnd();
|
|
16284
|
+
} if (rf & 2) {
|
|
16285
|
+
const ctx_r167 = i0.ɵɵnextContext(2);
|
|
16286
|
+
const _r19 = i0.ɵɵreference(21);
|
|
16287
|
+
const _r21 = i0.ɵɵreference(23);
|
|
16288
|
+
i0.ɵɵadvance(2);
|
|
16289
|
+
i0.ɵɵproperty("ngIf", ctx_r167.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
16290
|
+
} }
|
|
16291
|
+
function PoTableComponent_ng_template_8_th_7_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
16292
|
+
i0.ɵɵelementContainer(0);
|
|
16293
|
+
} }
|
|
16294
|
+
function PoTableComponent_ng_template_8_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
16295
|
+
const _r185 = i0.ɵɵgetCurrentView();
|
|
16296
|
+
i0.ɵɵelementStart(0, "th", 55, 56);
|
|
16297
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r185); const column_r180 = restoredCtx.$implicit; const ctx_r184 = i0.ɵɵnextContext(2); return ctx_r184.sortColumn(column_r180); });
|
|
16298
|
+
i0.ɵɵelementStart(2, "div", 57);
|
|
16299
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_7_ng_container_3_Template, 1, 0, "ng-container", 58);
|
|
16300
|
+
i0.ɵɵelementEnd()();
|
|
16301
|
+
} if (rf & 2) {
|
|
16302
|
+
const column_r180 = ctx.$implicit;
|
|
16303
|
+
const ctx_r168 = i0.ɵɵnextContext(2);
|
|
16304
|
+
const _r17 = i0.ɵɵreference(19);
|
|
16305
|
+
i0.ɵɵstyleProp("width", column_r180.width)("max-width", column_r180.width)("min-width", column_r180.width);
|
|
16306
|
+
i0.ɵɵclassProp("po-clickable", ctx_r168.sort && column_r180.sortable !== false || ctx_r168.hasService)("po-table-header-subtitle", column_r180.type === "subtitle");
|
|
16307
|
+
i0.ɵɵadvance(2);
|
|
16308
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r168.height)("po-table-header-flex-right", column_r180.type === "currency" || column_r180.type === "number")("po-table-header-flex-center", column_r180.type === "subtitle");
|
|
16309
|
+
i0.ɵɵadvance(1);
|
|
16310
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c10, column_r180));
|
|
16311
|
+
} }
|
|
16312
|
+
function PoTableComponent_ng_template_8_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
16313
|
+
i0.ɵɵelement(0, "th", 51);
|
|
16314
|
+
} }
|
|
16315
|
+
function PoTableComponent_ng_template_8_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
16316
|
+
i0.ɵɵelement(0, "th");
|
|
16317
|
+
} if (rf & 2) {
|
|
16318
|
+
const ctx_r170 = i0.ɵɵnextContext(2);
|
|
16319
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r170.isSingleAction)("po-table-header-actions", !ctx_r170.isSingleAction);
|
|
16320
|
+
} }
|
|
16321
|
+
function PoTableComponent_ng_template_8_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
16322
|
+
const _r189 = i0.ɵɵgetCurrentView();
|
|
16323
|
+
i0.ɵɵelementStart(0, "th", null, 59)(2, "div")(3, "button", 60, 61);
|
|
16324
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r189); const ctx_r188 = i0.ɵɵnextContext(2); return ctx_r188.onOpenColumnManager(); });
|
|
16325
|
+
i0.ɵɵelementEnd()()();
|
|
16326
|
+
} if (rf & 2) {
|
|
16327
|
+
const _r186 = i0.ɵɵreference(1);
|
|
16328
|
+
const ctx_r171 = i0.ɵɵnextContext(2);
|
|
16329
|
+
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r171.isSingleAction || !ctx_r171.actionRight)("po-table-header-column-manager-border", !ctx_r171.height && ctx_r171.container)("po-table-header-single-action", ctx_r171.isSingleAction && ctx_r171.actionRight);
|
|
16330
|
+
i0.ɵɵadvance(2);
|
|
16331
|
+
i0.ɵɵstyleProp("width", ctx_r171.height && ctx_r171.visibleActions.length ? _r186.offsetWidth : undefined, "px");
|
|
16332
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r171.height && ctx_r171.container)("po-table-header-column-manager-fixed-inner", ctx_r171.height);
|
|
16333
|
+
i0.ɵɵadvance(1);
|
|
16334
|
+
i0.ɵɵproperty("p-tooltip", ctx_r171.literals.columnsManager);
|
|
16335
|
+
} }
|
|
16336
|
+
function PoTableComponent_ng_template_8_tbody_11_Template(rf, ctx) { if (rf & 1) {
|
|
16337
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
16338
|
+
i0.ɵɵtext(4);
|
|
16339
|
+
i0.ɵɵelementEnd()()()();
|
|
16340
|
+
} if (rf & 2) {
|
|
16341
|
+
const ctx_r172 = i0.ɵɵnextContext(2);
|
|
16342
|
+
i0.ɵɵadvance(2);
|
|
16343
|
+
i0.ɵɵproperty("colSpan", ctx_r172.columnCount);
|
|
16344
|
+
i0.ɵɵadvance(2);
|
|
16345
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r172.literals.noData, " ");
|
|
16346
|
+
} }
|
|
16347
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16348
|
+
i0.ɵɵelementContainer(0);
|
|
16349
|
+
} }
|
|
16350
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
16351
|
+
i0.ɵɵelementStart(0, "td", 46);
|
|
16352
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
16353
|
+
i0.ɵɵelementEnd();
|
|
16354
|
+
} if (rf & 2) {
|
|
16355
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16356
|
+
const ctx_r193 = i0.ɵɵnextContext(3);
|
|
16357
|
+
const _r13 = i0.ɵɵreference(15);
|
|
16358
|
+
const _r15 = i0.ɵɵreference(17);
|
|
16359
|
+
i0.ɵɵadvance(1);
|
|
16360
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r193.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, row_r191));
|
|
16361
|
+
} }
|
|
16362
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
16363
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
16364
|
+
const _r209 = i0.ɵɵgetCurrentView();
|
|
16365
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
16366
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r209); const row_r191 = i0.ɵɵnextContext().$implicit; const ctx_r207 = i0.ɵɵnextContext(3); return ctx_r207.toggleDetail(row_r191); });
|
|
16367
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16368
|
+
i0.ɵɵelementEnd();
|
|
16369
|
+
} if (rf & 2) {
|
|
16370
|
+
const ctx_r210 = i0.ɵɵnextContext();
|
|
16371
|
+
const row_r191 = ctx_r210.$implicit;
|
|
16372
|
+
const rowIndex_r192 = ctx_r210.index;
|
|
16373
|
+
i0.ɵɵnextContext(3);
|
|
16374
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16375
|
+
i0.ɵɵadvance(1);
|
|
16376
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
16377
|
+
} }
|
|
16378
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
16379
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template(rf, ctx) { if (rf & 1) {
|
|
16380
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16381
|
+
} if (rf & 2) {
|
|
16382
|
+
const ctx_r212 = i0.ɵɵnextContext();
|
|
16383
|
+
const row_r191 = ctx_r212.$implicit;
|
|
16384
|
+
const rowIndex_r192 = ctx_r212.index;
|
|
16385
|
+
i0.ɵɵnextContext(3);
|
|
16386
|
+
const _r23 = i0.ɵɵreference(25);
|
|
16387
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
16388
|
+
} }
|
|
16389
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
16390
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
16391
|
+
const _r216 = i0.ɵɵgetCurrentView();
|
|
16392
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
16393
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r216); const row_r191 = i0.ɵɵnextContext().$implicit; const ctx_r214 = i0.ɵɵnextContext(3); return ctx_r214.toggleDetail(row_r191); });
|
|
16394
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16395
|
+
i0.ɵɵelementEnd();
|
|
16396
|
+
} if (rf & 2) {
|
|
16397
|
+
const ctx_r217 = i0.ɵɵnextContext();
|
|
16398
|
+
const row_r191 = ctx_r217.$implicit;
|
|
16399
|
+
const rowIndex_r192 = ctx_r217.index;
|
|
16400
|
+
i0.ɵɵnextContext(3);
|
|
16401
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16402
|
+
i0.ɵɵadvance(1);
|
|
16403
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
16404
|
+
} }
|
|
16405
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16406
|
+
i0.ɵɵelementContainer(0);
|
|
16407
|
+
} }
|
|
16408
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
16409
|
+
i0.ɵɵelementStart(0, "span");
|
|
16410
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
16411
|
+
i0.ɵɵelementEnd();
|
|
16412
|
+
} if (rf & 2) {
|
|
16413
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16414
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16415
|
+
const ctx_r220 = i0.ɵɵnextContext(3);
|
|
16416
|
+
i0.ɵɵadvance(1);
|
|
16417
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r220.getTemplate(column_r218))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, ctx_r220.getCellData(row_r191, column_r218)));
|
|
16418
|
+
} }
|
|
16419
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16420
|
+
i0.ɵɵelementContainer(0);
|
|
16421
|
+
} }
|
|
16422
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16423
|
+
i0.ɵɵelementStart(0, "span");
|
|
16424
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
16425
|
+
i0.ɵɵelementEnd();
|
|
16426
|
+
} if (rf & 2) {
|
|
16427
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16428
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16429
|
+
const ctx_r221 = i0.ɵɵnextContext(3);
|
|
16430
|
+
i0.ɵɵadvance(1);
|
|
16431
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r221.tableCellTemplate == null ? null : ctx_r221.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r191, column_r218));
|
|
16432
|
+
} }
|
|
16433
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16434
|
+
i0.ɵɵelementStart(0, "span");
|
|
16435
|
+
i0.ɵɵtext(1);
|
|
16436
|
+
i0.ɵɵelementEnd();
|
|
16437
|
+
} if (rf & 2) {
|
|
16438
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16439
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16440
|
+
const ctx_r222 = i0.ɵɵnextContext(3);
|
|
16441
|
+
i0.ɵɵadvance(1);
|
|
16442
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r222.getBooleanLabel(ctx_r222.getCellData(row_r191, column_r218), column_r218), " ");
|
|
16443
|
+
} }
|
|
16444
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
16445
|
+
i0.ɵɵelementStart(0, "span");
|
|
16446
|
+
i0.ɵɵtext(1);
|
|
16447
|
+
i0.ɵɵpipe(2, "currency");
|
|
16448
|
+
i0.ɵɵelementEnd();
|
|
16449
|
+
} if (rf & 2) {
|
|
16450
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16451
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16452
|
+
const ctx_r223 = i0.ɵɵnextContext(3);
|
|
16453
|
+
i0.ɵɵadvance(1);
|
|
16454
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r223.getCellData(row_r191, column_r218), column_r218.format, "symbol", "1.2-2"), " ");
|
|
16455
|
+
} }
|
|
16456
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
16457
|
+
i0.ɵɵelementStart(0, "span");
|
|
16458
|
+
i0.ɵɵtext(1);
|
|
16459
|
+
i0.ɵɵpipe(2, "date");
|
|
16460
|
+
i0.ɵɵelementEnd();
|
|
16461
|
+
} if (rf & 2) {
|
|
16462
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16463
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16464
|
+
const ctx_r224 = i0.ɵɵnextContext(3);
|
|
16465
|
+
i0.ɵɵadvance(1);
|
|
16466
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r224.getCellData(row_r191, column_r218), column_r218.format || "dd/MM/yyyy"), " ");
|
|
16467
|
+
} }
|
|
16468
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
16469
|
+
i0.ɵɵelementStart(0, "span");
|
|
16470
|
+
i0.ɵɵtext(1);
|
|
16471
|
+
i0.ɵɵpipe(2, "po_time");
|
|
16472
|
+
i0.ɵɵelementEnd();
|
|
16473
|
+
} if (rf & 2) {
|
|
16474
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16475
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16476
|
+
const ctx_r225 = i0.ɵɵnextContext(3);
|
|
16477
|
+
i0.ɵɵadvance(1);
|
|
16478
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r225.getCellData(row_r191, column_r218), column_r218.format || "HH:mm:ss.ffffff"), " ");
|
|
16479
|
+
} }
|
|
16480
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
16481
|
+
i0.ɵɵelementStart(0, "span");
|
|
16482
|
+
i0.ɵɵtext(1);
|
|
16483
|
+
i0.ɵɵpipe(2, "date");
|
|
16484
|
+
i0.ɵɵelementEnd();
|
|
16485
|
+
} if (rf & 2) {
|
|
16486
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16487
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16488
|
+
const ctx_r226 = i0.ɵɵnextContext(3);
|
|
16489
|
+
i0.ɵɵadvance(1);
|
|
16490
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r226.getCellData(row_r191, column_r218), column_r218.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
16491
|
+
} }
|
|
16492
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
16493
|
+
i0.ɵɵelementStart(0, "span");
|
|
16494
|
+
i0.ɵɵtext(1);
|
|
16495
|
+
i0.ɵɵelementEnd();
|
|
16496
|
+
} if (rf & 2) {
|
|
16497
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16498
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16499
|
+
const ctx_r227 = i0.ɵɵnextContext(3);
|
|
16500
|
+
i0.ɵɵadvance(1);
|
|
16501
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r227.formatNumber(ctx_r227.getCellData(row_r191, column_r218), column_r218.format), " ");
|
|
16502
|
+
} }
|
|
16503
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) { if (rf & 1) {
|
|
16504
|
+
const _r253 = i0.ɵɵgetCurrentView();
|
|
16505
|
+
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
16506
|
+
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(_r253); const column_r218 = i0.ɵɵnextContext().$implicit; const row_r191 = i0.ɵɵnextContext().$implicit; const ctx_r251 = i0.ɵɵnextContext(3); return ctx_r251.onClickLink($event, row_r191, column_r218); });
|
|
16507
|
+
i0.ɵɵelementEnd();
|
|
16508
|
+
} if (rf & 2) {
|
|
16509
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16510
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16511
|
+
const ctx_r228 = i0.ɵɵnextContext(3);
|
|
16512
|
+
i0.ɵɵproperty("p-action", column_r218.action)("p-disabled", ctx_r228.checkDisabled(row_r191, column_r218))("p-link", row_r191[column_r218.link])("p-row", row_r191)("p-value", ctx_r228.getCellData(row_r191, column_r218));
|
|
16513
|
+
} }
|
|
16514
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) { if (rf & 1) {
|
|
16515
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
16516
|
+
} if (rf & 2) {
|
|
16517
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16518
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16519
|
+
const ctx_r229 = i0.ɵɵnextContext(3);
|
|
16520
|
+
i0.ɵɵproperty("p-column", column_r218)("p-icons", ctx_r229.getColumnIcons(row_r191, column_r218))("p-row", row_r191);
|
|
16521
|
+
} }
|
|
16522
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
16523
|
+
i0.ɵɵelementStart(0, "span");
|
|
16524
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
16525
|
+
i0.ɵɵelementEnd();
|
|
16526
|
+
} if (rf & 2) {
|
|
16527
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16528
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16529
|
+
const ctx_r230 = i0.ɵɵnextContext(3);
|
|
16530
|
+
i0.ɵɵadvance(1);
|
|
16531
|
+
i0.ɵɵproperty("p-subtitle", ctx_r230.getSubtitleColumn(row_r191, column_r218));
|
|
16532
|
+
} }
|
|
16533
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16534
|
+
i0.ɵɵelementStart(0, "span");
|
|
16535
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
16536
|
+
i0.ɵɵelementEnd();
|
|
16537
|
+
} if (rf & 2) {
|
|
16538
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16539
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16540
|
+
const ctx_r231 = i0.ɵɵnextContext(3);
|
|
16541
|
+
i0.ɵɵadvance(1);
|
|
16542
|
+
i0.ɵɵproperty("p-value", ctx_r231.getColumnLabel(row_r191, column_r218));
|
|
16543
|
+
} }
|
|
16544
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
16545
|
+
i0.ɵɵelementStart(0, "span");
|
|
16546
|
+
i0.ɵɵtext(1);
|
|
16547
|
+
i0.ɵɵelementEnd();
|
|
16548
|
+
} if (rf & 2) {
|
|
16549
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
16550
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16551
|
+
const ctx_r232 = i0.ɵɵnextContext(3);
|
|
16552
|
+
i0.ɵɵadvance(1);
|
|
16553
|
+
i0.ɵɵtextInterpolate(ctx_r232.getCellData(row_r191, column_r218));
|
|
16554
|
+
} }
|
|
16555
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
16556
|
+
const _r266 = i0.ɵɵgetCurrentView();
|
|
16557
|
+
i0.ɵɵelementStart(0, "td", 73);
|
|
16558
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r266); const row_r191 = i0.ɵɵnextContext().$implicit; const ctx_r265 = i0.ɵɵnextContext(3); return ctx_r265.selectable ? ctx_r265.selectRow(row_r191) : "javascript:;"; });
|
|
16559
|
+
i0.ɵɵelementStart(1, "div", 74);
|
|
16560
|
+
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(_r266); const column_r218 = restoredCtx.$implicit; const row_r191 = i0.ɵɵnextContext().$implicit; const ctx_r268 = i0.ɵɵnextContext(3); return ctx_r268.tooltipMouseEnter($event, column_r218, row_r191); })("mouseleave", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r266); const ctx_r270 = i0.ɵɵnextContext(4); return ctx_r270.tooltipMouseLeave(); });
|
|
16561
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
16562
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
16563
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
16564
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
16565
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
16566
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
16567
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
16568
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
16569
|
+
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);
|
|
16570
|
+
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);
|
|
16571
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
16572
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
16573
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
15978
16574
|
i0.ɵɵelementEnd()();
|
|
15979
16575
|
} if (rf & 2) {
|
|
15980
|
-
const
|
|
15981
|
-
const
|
|
15982
|
-
const
|
|
15983
|
-
i0.ɵɵstyleProp("width",
|
|
15984
|
-
i0.ɵɵclassProp("po-table-column",
|
|
15985
|
-
i0.ɵɵproperty("ngClass",
|
|
16576
|
+
const column_r218 = ctx.$implicit;
|
|
16577
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16578
|
+
const ctx_r197 = i0.ɵɵnextContext(3);
|
|
16579
|
+
i0.ɵɵstyleProp("width", column_r218.width)("max-width", column_r218.width)("min-width", column_r218.width);
|
|
16580
|
+
i0.ɵɵclassProp("po-table-column", column_r218.type !== "icon")("po-table-column-right", column_r218.type === "currency" || column_r218.type === "number")("po-table-column-center", column_r218.type === "subtitle")("po-table-column-icons", column_r218.type === "icon");
|
|
16581
|
+
i0.ɵɵproperty("ngClass", ctx_r197.getClassColor(row_r191, column_r218));
|
|
15986
16582
|
i0.ɵɵadvance(1);
|
|
15987
|
-
i0.ɵɵclassProp("po-table-body-ellipsis",
|
|
15988
|
-
i0.ɵɵproperty("ngSwitch",
|
|
16583
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r197.hideTextOverflow);
|
|
16584
|
+
i0.ɵɵproperty("ngSwitch", column_r218.type)("p-tooltip", ctx_r197.tooltipText);
|
|
15989
16585
|
i0.ɵɵadvance(1);
|
|
15990
16586
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
15991
16587
|
i0.ɵɵadvance(1);
|
|
@@ -16011,291 +16607,290 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_Template(rf
|
|
|
16011
16607
|
i0.ɵɵadvance(1);
|
|
16012
16608
|
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
16013
16609
|
} }
|
|
16014
|
-
function
|
|
16015
|
-
function
|
|
16016
|
-
const
|
|
16017
|
-
i0.ɵɵelementStart(0, "td",
|
|
16018
|
-
i0.ɵɵlistener("click", function
|
|
16019
|
-
i0.ɵɵtemplate(1,
|
|
16610
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
16611
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
16612
|
+
const _r275 = i0.ɵɵgetCurrentView();
|
|
16613
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
16614
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r275); const row_r191 = i0.ɵɵnextContext().$implicit; const ctx_r273 = i0.ɵɵnextContext(3); return ctx_r273.toggleDetail(row_r191); });
|
|
16615
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16020
16616
|
i0.ɵɵelementEnd();
|
|
16021
16617
|
} if (rf & 2) {
|
|
16022
|
-
const
|
|
16023
|
-
const
|
|
16024
|
-
const
|
|
16618
|
+
const ctx_r276 = i0.ɵɵnextContext();
|
|
16619
|
+
const row_r191 = ctx_r276.$implicit;
|
|
16620
|
+
const rowIndex_r192 = ctx_r276.index;
|
|
16025
16621
|
i0.ɵɵnextContext(3);
|
|
16026
|
-
const
|
|
16622
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16027
16623
|
i0.ɵɵadvance(1);
|
|
16028
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16624
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
16029
16625
|
} }
|
|
16030
|
-
function
|
|
16031
|
-
function
|
|
16032
|
-
i0.ɵɵtemplate(0,
|
|
16626
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
16627
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template(rf, ctx) { if (rf & 1) {
|
|
16628
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16033
16629
|
} if (rf & 2) {
|
|
16034
|
-
const
|
|
16035
|
-
const
|
|
16036
|
-
const
|
|
16630
|
+
const ctx_r278 = i0.ɵɵnextContext();
|
|
16631
|
+
const row_r191 = ctx_r278.$implicit;
|
|
16632
|
+
const rowIndex_r192 = ctx_r278.index;
|
|
16037
16633
|
i0.ɵɵnextContext(3);
|
|
16038
|
-
const
|
|
16039
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16634
|
+
const _r23 = i0.ɵɵreference(25);
|
|
16635
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
16040
16636
|
} }
|
|
16041
|
-
function
|
|
16637
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
16042
16638
|
i0.ɵɵelementContainerStart(0);
|
|
16043
|
-
i0.ɵɵelement(1, "td",
|
|
16639
|
+
i0.ɵɵelement(1, "td", 88);
|
|
16044
16640
|
i0.ɵɵelementContainerEnd();
|
|
16045
16641
|
} }
|
|
16046
|
-
function
|
|
16047
|
-
i0.ɵɵelement(0, "td",
|
|
16642
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
16643
|
+
i0.ɵɵelement(0, "td", 84);
|
|
16048
16644
|
} }
|
|
16049
|
-
function
|
|
16050
|
-
|
|
16051
|
-
|
|
16052
|
-
i0.ɵɵ
|
|
16053
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_ng_container_12_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 70);
|
|
16645
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
16646
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template(rf, ctx) { if (rf & 1) {
|
|
16647
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
16648
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
16054
16649
|
i0.ɵɵelementEnd()();
|
|
16055
16650
|
} if (rf & 2) {
|
|
16056
|
-
const
|
|
16057
|
-
const
|
|
16058
|
-
const
|
|
16059
|
-
const
|
|
16651
|
+
const ctx_r280 = i0.ɵɵnextContext();
|
|
16652
|
+
const row_r191 = ctx_r280.$implicit;
|
|
16653
|
+
const rowIndex_r192 = ctx_r280.index;
|
|
16654
|
+
const ctx_r202 = i0.ɵɵnextContext(3);
|
|
16060
16655
|
i0.ɵɵadvance(1);
|
|
16061
|
-
i0.ɵɵproperty("colSpan",
|
|
16656
|
+
i0.ɵɵproperty("colSpan", ctx_r202.columnCountForMasterDetail);
|
|
16062
16657
|
i0.ɵɵadvance(1);
|
|
16063
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16658
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r202.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c13, row_r191, rowIndex_r192));
|
|
16064
16659
|
} }
|
|
16065
|
-
function
|
|
16066
|
-
const
|
|
16067
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
16068
|
-
i0.ɵɵlistener("p-select-row", function
|
|
16660
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template(rf, ctx) { if (rf & 1) {
|
|
16661
|
+
const _r282 = i0.ɵɵgetCurrentView();
|
|
16662
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
16663
|
+
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(_r282); const ctx_r281 = i0.ɵɵnextContext(4); return ctx_r281.selectDetailRow($event); });
|
|
16069
16664
|
i0.ɵɵelementEnd()()();
|
|
16070
16665
|
} if (rf & 2) {
|
|
16071
|
-
const
|
|
16072
|
-
const
|
|
16666
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
16667
|
+
const ctx_r203 = i0.ɵɵnextContext(3);
|
|
16073
16668
|
i0.ɵɵadvance(1);
|
|
16074
|
-
i0.ɵɵproperty("colSpan",
|
|
16669
|
+
i0.ɵɵproperty("colSpan", ctx_r203.columnCountForMasterDetail);
|
|
16075
16670
|
i0.ɵɵadvance(1);
|
|
16076
|
-
i0.ɵɵproperty("p-selectable",
|
|
16671
|
+
i0.ɵɵproperty("p-selectable", ctx_r203.selectable && !ctx_r203.detailHideSelect)("p-detail", ctx_r203.columnMasterDetail.detail)("p-items", row_r191[ctx_r203.nameColumnDetail]);
|
|
16077
16672
|
} }
|
|
16078
|
-
function
|
|
16079
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
16080
|
-
i0.ɵɵtemplate(2,
|
|
16081
|
-
i0.ɵɵtemplate(3,
|
|
16082
|
-
i0.ɵɵtemplate(4,
|
|
16083
|
-
i0.ɵɵtemplate(5,
|
|
16084
|
-
i0.ɵɵtemplate(6,
|
|
16085
|
-
i0.ɵɵtemplate(7,
|
|
16086
|
-
i0.ɵɵtemplate(8,
|
|
16087
|
-
i0.ɵɵtemplate(9,
|
|
16088
|
-
i0.ɵɵtemplate(10,
|
|
16673
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
16674
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
16675
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template, 2, 4, "td", 39);
|
|
16676
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
16677
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template, 1, 5, null, 23);
|
|
16678
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
16679
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template, 15, 31, "td", 69);
|
|
16680
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
16681
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template, 1, 5, null, 23);
|
|
16682
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
16683
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
16089
16684
|
i0.ɵɵelementEnd();
|
|
16090
|
-
i0.ɵɵtemplate(11,
|
|
16091
|
-
i0.ɵɵtemplate(12,
|
|
16685
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
16686
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
16092
16687
|
i0.ɵɵelementEnd();
|
|
16093
16688
|
} if (rf & 2) {
|
|
16094
|
-
const
|
|
16095
|
-
const
|
|
16096
|
-
const
|
|
16689
|
+
const row_r191 = ctx.$implicit;
|
|
16690
|
+
const rowIndex_r192 = ctx.index;
|
|
16691
|
+
const ctx_r190 = i0.ɵɵnextContext(3);
|
|
16097
16692
|
i0.ɵɵadvance(1);
|
|
16098
|
-
i0.ɵɵclassProp("po-table-row-active",
|
|
16693
|
+
i0.ɵɵclassProp("po-table-row-active", row_r191.$selected || row_r191.$selected === null && ctx_r190.selectable);
|
|
16099
16694
|
i0.ɵɵadvance(1);
|
|
16100
|
-
i0.ɵɵproperty("ngIf",
|
|
16695
|
+
i0.ɵɵproperty("ngIf", ctx_r190.selectable);
|
|
16101
16696
|
i0.ɵɵadvance(1);
|
|
16102
|
-
i0.ɵɵproperty("ngIf",
|
|
16697
|
+
i0.ɵɵproperty("ngIf", ctx_r190.columnMasterDetail && !ctx_r190.hideDetail && !ctx_r190.hasRowTemplate);
|
|
16103
16698
|
i0.ɵɵadvance(1);
|
|
16104
|
-
i0.ɵɵproperty("ngIf", !
|
|
16699
|
+
i0.ɵɵproperty("ngIf", !ctx_r190.actionRight && (ctx_r190.visibleActions.length > 1 || ctx_r190.isSingleAction));
|
|
16105
16700
|
i0.ɵɵadvance(1);
|
|
16106
|
-
i0.ɵɵproperty("ngIf",
|
|
16701
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasRowTemplate && !ctx_r190.hasRowTemplateWithArrowDirectionRight);
|
|
16107
16702
|
i0.ɵɵadvance(1);
|
|
16108
|
-
i0.ɵɵproperty("ngForOf",
|
|
16703
|
+
i0.ɵɵproperty("ngForOf", ctx_r190.mainColumns)("ngForTrackBy", ctx_r190.trackBy);
|
|
16109
16704
|
i0.ɵɵadvance(1);
|
|
16110
|
-
i0.ɵɵproperty("ngIf",
|
|
16705
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasRowTemplateWithArrowDirectionRight);
|
|
16111
16706
|
i0.ɵɵadvance(1);
|
|
16112
|
-
i0.ɵɵproperty("ngIf",
|
|
16707
|
+
i0.ɵɵproperty("ngIf", ctx_r190.actionRight);
|
|
16113
16708
|
i0.ɵɵadvance(1);
|
|
16114
|
-
i0.ɵɵproperty("ngIf", !
|
|
16709
|
+
i0.ɵɵproperty("ngIf", !ctx_r190.actionRight && (ctx_r190.visibleActions.length > 1 || ctx_r190.isSingleAction) && !ctx_r190.hideColumnsManager);
|
|
16115
16710
|
i0.ɵɵadvance(1);
|
|
16116
|
-
i0.ɵɵproperty("ngIf", !
|
|
16711
|
+
i0.ɵɵproperty("ngIf", !ctx_r190.hasVisibleActions && !ctx_r190.hideColumnsManager && !ctx_r190.hasRowTemplateWithArrowDirectionRight);
|
|
16117
16712
|
i0.ɵɵadvance(1);
|
|
16118
|
-
i0.ɵɵproperty("ngIf",
|
|
16713
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasMainColumns && ctx_r190.hasRowTemplate && row_r191.$showDetail && ctx_r190.isShowRowTemplate(row_r191, rowIndex_r192));
|
|
16119
16714
|
i0.ɵɵadvance(1);
|
|
16120
|
-
i0.ɵɵproperty("ngIf",
|
|
16715
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasMainColumns && ctx_r190.isShowMasterDetail(row_r191));
|
|
16121
16716
|
} }
|
|
16122
|
-
function
|
|
16717
|
+
function PoTableComponent_ng_template_8_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
16123
16718
|
i0.ɵɵelementContainerStart(0);
|
|
16124
|
-
i0.ɵɵtemplate(1,
|
|
16719
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template, 13, 14, "tbody", 66);
|
|
16125
16720
|
i0.ɵɵelementContainerEnd();
|
|
16126
16721
|
} if (rf & 2) {
|
|
16127
|
-
const
|
|
16722
|
+
const ctx_r173 = i0.ɵɵnextContext(2);
|
|
16128
16723
|
i0.ɵɵadvance(1);
|
|
16129
|
-
i0.ɵɵproperty("ngForOf",
|
|
16724
|
+
i0.ɵɵproperty("ngForOf", ctx_r173.items)("ngForTrackBy", ctx_r173.trackBy);
|
|
16130
16725
|
} }
|
|
16131
|
-
function
|
|
16132
|
-
i0.ɵɵelementStart(0, "table",
|
|
16133
|
-
i0.ɵɵtemplate(3,
|
|
16134
|
-
i0.ɵɵtemplate(4,
|
|
16135
|
-
i0.ɵɵtemplate(5,
|
|
16136
|
-
i0.ɵɵtemplate(6,
|
|
16137
|
-
i0.ɵɵtemplate(7,
|
|
16138
|
-
i0.ɵɵtemplate(8,
|
|
16139
|
-
i0.ɵɵtemplate(9,
|
|
16140
|
-
i0.ɵɵtemplate(10,
|
|
16726
|
+
function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
16727
|
+
i0.ɵɵelementStart(0, "table", 38)(1, "thead")(2, "tr");
|
|
16728
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_Template, 4, 4, "th", 39);
|
|
16729
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_th_4_Template, 1, 0, "th", 40);
|
|
16730
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_th_5_Template, 1, 4, "th", 41);
|
|
16731
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_th_6_Template, 3, 3, "th", 42);
|
|
16732
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_th_7_Template, 4, 20, "th", 43);
|
|
16733
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_th_8_Template, 1, 0, "th", 40);
|
|
16734
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_th_9_Template, 1, 4, "th", 44);
|
|
16735
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_th_10_Template, 5, 13, "th", 45);
|
|
16141
16736
|
i0.ɵɵelementEnd()();
|
|
16142
|
-
i0.ɵɵtemplate(11,
|
|
16143
|
-
i0.ɵɵtemplate(12,
|
|
16737
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_tbody_11_Template, 5, 2, "tbody", 62);
|
|
16738
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_Template, 2, 2, "ng-container", 23);
|
|
16144
16739
|
i0.ɵɵelementEnd();
|
|
16145
16740
|
} if (rf & 2) {
|
|
16146
|
-
const
|
|
16147
|
-
i0.ɵɵclassProp("po-table-striped",
|
|
16741
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
16742
|
+
i0.ɵɵclassProp("po-table-striped", ctx_r9.striped)("po-table-layout-fixed", ctx_r9.hideTextOverflow);
|
|
16148
16743
|
i0.ɵɵadvance(2);
|
|
16149
|
-
i0.ɵɵclassProp("po-table-header", !
|
|
16744
|
+
i0.ɵɵclassProp("po-table-header", !ctx_r9.height);
|
|
16150
16745
|
i0.ɵɵadvance(1);
|
|
16151
|
-
i0.ɵɵproperty("ngIf",
|
|
16746
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasSelectableColumn);
|
|
16152
16747
|
i0.ɵɵadvance(1);
|
|
16153
|
-
i0.ɵɵproperty("ngIf", (
|
|
16748
|
+
i0.ɵɵproperty("ngIf", (ctx_r9.hasMasterDetailColumn || ctx_r9.hasRowTemplate) && !ctx_r9.hasRowTemplateWithArrowDirectionRight);
|
|
16154
16749
|
i0.ɵɵadvance(1);
|
|
16155
|
-
i0.ɵɵproperty("ngIf", !
|
|
16750
|
+
i0.ɵɵproperty("ngIf", !ctx_r9.actionRight && (ctx_r9.visibleActions.length > 1 || ctx_r9.isSingleAction));
|
|
16156
16751
|
i0.ɵɵadvance(1);
|
|
16157
|
-
i0.ɵɵproperty("ngIf", !
|
|
16752
|
+
i0.ɵɵproperty("ngIf", !ctx_r9.hasMainColumns);
|
|
16158
16753
|
i0.ɵɵadvance(1);
|
|
16159
|
-
i0.ɵɵproperty("ngForOf",
|
|
16754
|
+
i0.ɵɵproperty("ngForOf", ctx_r9.mainColumns)("ngForTrackBy", ctx_r9.trackBy);
|
|
16160
16755
|
i0.ɵɵadvance(1);
|
|
16161
|
-
i0.ɵɵproperty("ngIf",
|
|
16756
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasRowTemplateWithArrowDirectionRight && (ctx_r9.hasVisibleActions || ctx_r9.hideColumnsManager));
|
|
16162
16757
|
i0.ɵɵadvance(1);
|
|
16163
|
-
i0.ɵɵproperty("ngIf",
|
|
16758
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasVisibleActions && ctx_r9.hideColumnsManager && ctx_r9.actionRight);
|
|
16164
16759
|
i0.ɵɵadvance(1);
|
|
16165
|
-
i0.ɵɵproperty("ngIf",
|
|
16760
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasValidColumns && !ctx_r9.hideColumnsManager);
|
|
16166
16761
|
i0.ɵɵadvance(1);
|
|
16167
|
-
i0.ɵɵproperty("ngIf", !
|
|
16762
|
+
i0.ɵɵproperty("ngIf", !ctx_r9.hasItems || !ctx_r9.hasMainColumns);
|
|
16168
16763
|
i0.ɵɵadvance(1);
|
|
16169
|
-
i0.ɵɵproperty("ngIf",
|
|
16764
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasMainColumns);
|
|
16170
16765
|
} }
|
|
16171
|
-
function
|
|
16172
|
-
i0.ɵɵelement(0, "span",
|
|
16766
|
+
function PoTableComponent_ng_template_12_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
16767
|
+
i0.ɵɵelement(0, "span", 90);
|
|
16173
16768
|
} if (rf & 2) {
|
|
16174
|
-
const
|
|
16175
|
-
i0.ɵɵclassProp("po-icon-arrow-up",
|
|
16769
|
+
const row_r284 = i0.ɵɵnextContext().row;
|
|
16770
|
+
i0.ɵɵclassProp("po-icon-arrow-up", row_r284.$showDetail)("po-icon-arrow-down", !row_r284.$showDetail);
|
|
16176
16771
|
} }
|
|
16177
|
-
function
|
|
16178
|
-
i0.ɵɵtemplate(0,
|
|
16772
|
+
function PoTableComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
16773
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_12_span_0_Template, 1, 4, "span", 89);
|
|
16179
16774
|
} if (rf & 2) {
|
|
16180
|
-
const
|
|
16181
|
-
const
|
|
16182
|
-
const
|
|
16183
|
-
i0.ɵɵproperty("ngIf",
|
|
16775
|
+
const row_r284 = ctx.row;
|
|
16776
|
+
const rowIndex_r285 = ctx.rowIndex;
|
|
16777
|
+
const ctx_r12 = i0.ɵɵnextContext();
|
|
16778
|
+
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(row_r284) && !ctx_r12.hasRowTemplate || ctx_r12.isShowRowTemplate(row_r284, rowIndex_r285) && ctx_r12.hasRowTemplate);
|
|
16184
16779
|
} }
|
|
16185
|
-
function
|
|
16186
|
-
const
|
|
16187
|
-
i0.ɵɵelement(0, "input",
|
|
16188
|
-
i0.ɵɵelementStart(1, "label",
|
|
16189
|
-
i0.ɵɵlistener("click", function
|
|
16780
|
+
function PoTableComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
16781
|
+
const _r290 = i0.ɵɵgetCurrentView();
|
|
16782
|
+
i0.ɵɵelement(0, "input", 91);
|
|
16783
|
+
i0.ɵɵelementStart(1, "label", 92);
|
|
16784
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_14_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r290); const row_r288 = restoredCtx.$implicit; const ctx_r289 = i0.ɵɵnextContext(); return ctx_r289.selectable ? ctx_r289.selectRow(row_r288) : "javascript:;"; });
|
|
16190
16785
|
i0.ɵɵelementEnd();
|
|
16191
16786
|
} if (rf & 2) {
|
|
16192
|
-
const
|
|
16193
|
-
i0.ɵɵclassProp("po-table-radio-checked",
|
|
16787
|
+
const row_r288 = ctx.$implicit;
|
|
16788
|
+
i0.ɵɵclassProp("po-table-radio-checked", row_r288.$selected);
|
|
16194
16789
|
} }
|
|
16195
|
-
function
|
|
16196
|
-
const
|
|
16197
|
-
i0.ɵɵelement(0, "input",
|
|
16198
|
-
i0.ɵɵelementStart(1, "label",
|
|
16199
|
-
i0.ɵɵlistener("click", function
|
|
16790
|
+
function PoTableComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
16791
|
+
const _r293 = i0.ɵɵgetCurrentView();
|
|
16792
|
+
i0.ɵɵelement(0, "input", 49);
|
|
16793
|
+
i0.ɵɵelementStart(1, "label", 50);
|
|
16794
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_16_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r293); const row_r291 = restoredCtx.$implicit; const ctx_r292 = i0.ɵɵnextContext(); return ctx_r292.selectable ? ctx_r292.selectRow(row_r291) : "javascript:;"; });
|
|
16200
16795
|
i0.ɵɵelementEnd();
|
|
16201
16796
|
} if (rf & 2) {
|
|
16202
|
-
const
|
|
16203
|
-
i0.ɵɵclassProp("po-table-checkbox-checked",
|
|
16797
|
+
const row_r291 = ctx.$implicit;
|
|
16798
|
+
i0.ɵɵclassProp("po-table-checkbox-checked", row_r291.$selected);
|
|
16204
16799
|
} }
|
|
16205
|
-
function
|
|
16800
|
+
function PoTableComponent_ng_template_18_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16206
16801
|
i0.ɵɵelement(0, "span");
|
|
16207
16802
|
} if (rf & 2) {
|
|
16208
|
-
const
|
|
16209
|
-
const
|
|
16210
|
-
i0.ɵɵclassProp("po-table-header-icon-unselected", (
|
|
16803
|
+
const column_r294 = i0.ɵɵnextContext().$implicit;
|
|
16804
|
+
const ctx_r296 = i0.ɵɵnextContext();
|
|
16805
|
+
i0.ɵɵclassProp("po-table-header-icon-unselected", (ctx_r296.sortedColumn == null ? null : ctx_r296.sortedColumn.property) !== column_r294)("po-table-header-icon-descending", (ctx_r296.sortedColumn == null ? null : ctx_r296.sortedColumn.property) === column_r294 && ctx_r296.sortedColumn.ascending)("po-table-header-icon-ascending", (ctx_r296.sortedColumn == null ? null : ctx_r296.sortedColumn.property) === column_r294 && !ctx_r296.sortedColumn.ascending);
|
|
16211
16806
|
} }
|
|
16212
|
-
function
|
|
16213
|
-
const
|
|
16214
|
-
i0.ɵɵelementStart(0, "span",
|
|
16215
|
-
i0.ɵɵlistener("mouseenter", function
|
|
16807
|
+
function PoTableComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
16808
|
+
const _r299 = i0.ɵɵgetCurrentView();
|
|
16809
|
+
i0.ɵɵelementStart(0, "span", 93, 94);
|
|
16810
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_18_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(_r299); const ctx_r298 = i0.ɵɵnextContext(); return ctx_r298.tooltipMouseEnter($event); })("mouseleave", function PoTableComponent_ng_template_18_Template_span_mouseleave_0_listener() { i0.ɵɵrestoreView(_r299); const ctx_r300 = i0.ɵɵnextContext(); return ctx_r300.tooltipMouseLeave(); });
|
|
16216
16811
|
i0.ɵɵtext(2);
|
|
16217
16812
|
i0.ɵɵpipe(3, "titlecase");
|
|
16218
16813
|
i0.ɵɵelementEnd();
|
|
16219
|
-
i0.ɵɵtemplate(4,
|
|
16814
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_18_span_4_Template, 1, 6, "span", 95);
|
|
16220
16815
|
} if (rf & 2) {
|
|
16221
|
-
const
|
|
16222
|
-
const
|
|
16223
|
-
i0.ɵɵproperty("p-tooltip",
|
|
16816
|
+
const column_r294 = ctx.$implicit;
|
|
16817
|
+
const ctx_r18 = i0.ɵɵnextContext();
|
|
16818
|
+
i0.ɵɵproperty("p-tooltip", ctx_r18.tooltipText);
|
|
16224
16819
|
i0.ɵɵadvance(2);
|
|
16225
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16820
|
+
i0.ɵɵtextInterpolate1(" ", column_r294.label || i0.ɵɵpipeBind1(3, 3, column_r294.property), " ");
|
|
16226
16821
|
i0.ɵɵadvance(2);
|
|
16227
|
-
i0.ɵɵproperty("ngIf",
|
|
16822
|
+
i0.ɵɵproperty("ngIf", ctx_r18.sort && column_r294.sortable !== false);
|
|
16228
16823
|
} }
|
|
16229
|
-
function
|
|
16230
|
-
i0.ɵɵelementStart(0, "div",
|
|
16824
|
+
function PoTableComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
|
|
16825
|
+
i0.ɵɵelementStart(0, "div", 96);
|
|
16231
16826
|
i0.ɵɵtext(1);
|
|
16232
16827
|
i0.ɵɵelementEnd();
|
|
16233
16828
|
} if (rf & 2) {
|
|
16234
|
-
const
|
|
16235
|
-
i0.ɵɵstyleProp("width",
|
|
16829
|
+
const ctx_r20 = i0.ɵɵnextContext();
|
|
16830
|
+
i0.ɵɵstyleProp("width", ctx_r20.noColumnsHeader == null ? null : ctx_r20.noColumnsHeader.nativeElement.offsetWidth, "px");
|
|
16236
16831
|
i0.ɵɵadvance(1);
|
|
16237
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16832
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r20.hasValidColumns ? ctx_r20.literals.noVisibleColumn : ctx_r20.literals.noColumns, " ");
|
|
16238
16833
|
} }
|
|
16239
|
-
function
|
|
16834
|
+
function PoTableComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
|
|
16240
16835
|
i0.ɵɵtext(0);
|
|
16241
16836
|
} if (rf & 2) {
|
|
16242
|
-
const
|
|
16243
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16837
|
+
const ctx_r22 = i0.ɵɵnextContext();
|
|
16838
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r22.hasValidColumns ? ctx_r22.literals.noVisibleColumn : ctx_r22.literals.noColumns, "\n");
|
|
16244
16839
|
} }
|
|
16245
|
-
function
|
|
16246
|
-
i0.ɵɵelement(0, "po-icon",
|
|
16840
|
+
function PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
16841
|
+
i0.ɵɵelement(0, "po-icon", 103);
|
|
16247
16842
|
} if (rf & 2) {
|
|
16248
|
-
const
|
|
16249
|
-
i0.ɵɵproperty("p-icon",
|
|
16843
|
+
const ctx_r306 = i0.ɵɵnextContext(4);
|
|
16844
|
+
i0.ɵɵproperty("p-icon", ctx_r306.firstAction.icon);
|
|
16250
16845
|
} }
|
|
16251
|
-
function
|
|
16252
|
-
const
|
|
16253
|
-
i0.ɵɵelementStart(0, "div",
|
|
16254
|
-
i0.ɵɵlistener("click", function
|
|
16255
|
-
i0.ɵɵtemplate(1,
|
|
16846
|
+
function PoTableComponent_ng_template_24_td_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
16847
|
+
const _r309 = i0.ɵɵgetCurrentView();
|
|
16848
|
+
i0.ɵɵelementStart(0, "div", 101);
|
|
16849
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r309); const row_r301 = i0.ɵɵnextContext(2).row; const ctx_r307 = i0.ɵɵnextContext(); return ctx_r307.executeTableAction(row_r301, ctx_r307.firstAction); });
|
|
16850
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon", 102);
|
|
16256
16851
|
i0.ɵɵtext(2);
|
|
16257
16852
|
i0.ɵɵelementEnd();
|
|
16258
16853
|
} if (rf & 2) {
|
|
16259
|
-
const
|
|
16260
|
-
const
|
|
16261
|
-
i0.ɵɵclassProp("po-table-action-disabled",
|
|
16854
|
+
const row_r301 = i0.ɵɵnextContext(2).row;
|
|
16855
|
+
const ctx_r305 = i0.ɵɵnextContext();
|
|
16856
|
+
i0.ɵɵclassProp("po-table-action-disabled", ctx_r305.firstAction.disabled ? ctx_r305.validateTableAction(row_r301, ctx_r305.firstAction) : false);
|
|
16262
16857
|
i0.ɵɵadvance(1);
|
|
16263
|
-
i0.ɵɵproperty("ngIf",
|
|
16858
|
+
i0.ɵɵproperty("ngIf", ctx_r305.firstAction.icon);
|
|
16264
16859
|
i0.ɵɵadvance(1);
|
|
16265
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16860
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r305.firstAction.label, " ");
|
|
16266
16861
|
} }
|
|
16267
|
-
function
|
|
16268
|
-
i0.ɵɵelementStart(0, "td",
|
|
16269
|
-
i0.ɵɵtemplate(1,
|
|
16862
|
+
function PoTableComponent_ng_template_24_td_0_Template(rf, ctx) { if (rf & 1) {
|
|
16863
|
+
i0.ɵɵelementStart(0, "td", 99);
|
|
16864
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_Template, 3, 4, "div", 100);
|
|
16270
16865
|
i0.ɵɵelementEnd();
|
|
16271
16866
|
} if (rf & 2) {
|
|
16272
|
-
const
|
|
16867
|
+
const ctx_r303 = i0.ɵɵnextContext(2);
|
|
16273
16868
|
i0.ɵɵadvance(1);
|
|
16274
|
-
i0.ɵɵproperty("ngIf",
|
|
16869
|
+
i0.ɵɵproperty("ngIf", ctx_r303.firstAction.visible !== false);
|
|
16275
16870
|
} }
|
|
16276
|
-
function
|
|
16277
|
-
const
|
|
16278
|
-
i0.ɵɵelementStart(0, "td",
|
|
16279
|
-
i0.ɵɵlistener("click", function
|
|
16871
|
+
function PoTableComponent_ng_template_24_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
16872
|
+
const _r314 = i0.ɵɵgetCurrentView();
|
|
16873
|
+
i0.ɵɵelementStart(0, "td", 104)(1, "span", 105, 106);
|
|
16874
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_1_Template_span_click_1_listener() { i0.ɵɵrestoreView(_r314); const _r311 = i0.ɵɵreference(2); const row_r301 = i0.ɵɵnextContext().row; const ctx_r312 = i0.ɵɵnextContext(); return ctx_r312.togglePopup(row_r301, _r311); });
|
|
16280
16875
|
i0.ɵɵelementEnd()();
|
|
16281
16876
|
} }
|
|
16282
|
-
function
|
|
16283
|
-
i0.ɵɵtemplate(0,
|
|
16284
|
-
i0.ɵɵtemplate(1,
|
|
16877
|
+
function PoTableComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
|
|
16878
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_24_td_0_Template, 2, 1, "td", 97);
|
|
16879
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_1_Template, 3, 0, "td", 98);
|
|
16285
16880
|
} if (rf & 2) {
|
|
16286
|
-
const
|
|
16287
|
-
i0.ɵɵproperty("ngIf",
|
|
16881
|
+
const ctx_r24 = i0.ɵɵnextContext();
|
|
16882
|
+
i0.ɵɵproperty("ngIf", ctx_r24.isSingleAction);
|
|
16288
16883
|
i0.ɵɵadvance(1);
|
|
16289
|
-
i0.ɵɵproperty("ngIf",
|
|
16884
|
+
i0.ɵɵproperty("ngIf", ctx_r24.visibleActions.length > 1);
|
|
16290
16885
|
} }
|
|
16291
|
-
function
|
|
16292
|
-
const
|
|
16293
|
-
i0.ɵɵelementStart(0, "po-table-column-manager",
|
|
16294
|
-
i0.ɵɵlistener("p-visible-columns-change", function
|
|
16886
|
+
function PoTableComponent_po_table_column_manager_26_Template(rf, ctx) { if (rf & 1) {
|
|
16887
|
+
const _r316 = i0.ɵɵgetCurrentView();
|
|
16888
|
+
i0.ɵɵelementStart(0, "po-table-column-manager", 107);
|
|
16889
|
+
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(_r316); const ctx_r315 = i0.ɵɵnextContext(); return ctx_r315.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(_r316); const ctx_r317 = i0.ɵɵnextContext(); return ctx_r317.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(_r316); const ctx_r318 = i0.ɵɵnextContext(); return ctx_r318.onColumnRestoreManager($event); });
|
|
16295
16890
|
i0.ɵɵelementEnd();
|
|
16296
16891
|
} if (rf & 2) {
|
|
16297
|
-
const
|
|
16298
|
-
i0.ɵɵproperty("p-columns",
|
|
16892
|
+
const ctx_r25 = i0.ɵɵnextContext();
|
|
16893
|
+
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);
|
|
16299
16894
|
} }
|
|
16300
16895
|
/**
|
|
16301
16896
|
* @docsExtends PoTableBaseComponent
|
|
@@ -16612,6 +17207,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
16612
17207
|
onChangeVisibleColumns(columns) {
|
|
16613
17208
|
this.changeVisibleColumns.emit(columns);
|
|
16614
17209
|
}
|
|
17210
|
+
onColumnRestoreManager(value) {
|
|
17211
|
+
this.columnRestoreManager.emit(value);
|
|
17212
|
+
}
|
|
16615
17213
|
onVisibleColumnsChange(columns) {
|
|
16616
17214
|
this.columns = columns;
|
|
16617
17215
|
this.changeDetector.detectChanges();
|
|
@@ -16686,6 +17284,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
16686
17284
|
}
|
|
16687
17285
|
return template.templateRef;
|
|
16688
17286
|
}
|
|
17287
|
+
syncronizeHorizontalScroll() {
|
|
17288
|
+
this.poTableThead.nativeElement.scrollLeft = this.poTableTbody.nativeElement.scrollLeft;
|
|
17289
|
+
}
|
|
16689
17290
|
calculateHeightTableContainer(height) {
|
|
16690
17291
|
const value = parseFloat(height);
|
|
16691
17292
|
this.heightTableContainer = value ? value - this.getHeightTableFooter() : undefined;
|
|
@@ -16823,10 +17424,11 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
16823
17424
|
i0.ɵɵviewQuery(_c2$a, 5, ElementRef);
|
|
16824
17425
|
i0.ɵɵviewQuery(_c3$6, 5, ElementRef);
|
|
16825
17426
|
i0.ɵɵviewQuery(_c4$4, 5, ElementRef);
|
|
16826
|
-
i0.ɵɵviewQuery(_c5$2, 5);
|
|
16827
|
-
i0.ɵɵviewQuery(_c6$
|
|
17427
|
+
i0.ɵɵviewQuery(_c5$2, 5, ElementRef);
|
|
17428
|
+
i0.ɵɵviewQuery(_c6$2, 5);
|
|
16828
17429
|
i0.ɵɵviewQuery(_c7$1, 5, ElementRef);
|
|
16829
|
-
i0.ɵɵviewQuery(_c8$1, 5);
|
|
17430
|
+
i0.ɵɵviewQuery(_c8$1, 5, ElementRef);
|
|
17431
|
+
i0.ɵɵviewQuery(_c9, 5);
|
|
16830
17432
|
} if (rf & 2) {
|
|
16831
17433
|
let _t;
|
|
16832
17434
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.noColumnsHeader = _t.first);
|
|
@@ -16834,37 +17436,40 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
16834
17436
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableFooterElement = _t.first);
|
|
16835
17437
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableWrapperElement = _t.first);
|
|
16836
17438
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableTbody = _t.first);
|
|
17439
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableThead = _t.first);
|
|
16837
17440
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerTarget = _t.first);
|
|
16838
17441
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsIconElement = _t);
|
|
16839
17442
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsElement = _t);
|
|
16840
17443
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headersTable = _t);
|
|
16841
|
-
} }, features: [i0.ɵɵProvidersFeature([PoDateService]), i0.ɵɵInheritDefinitionFeature], decls:
|
|
17444
|
+
} }, 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", 3, "scroll"], ["poTableTbody", ""], [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"], ["type", "checkbox", "class", "po-table-checkbox", 3, "po-table-checkbox-checked", "po-table-checkbox-indeterminate", 4, "ngIf"], ["class", "po-table-checkbox-label po-clickable", 3, "click", 4, "ngIf"], ["type", "checkbox", 1, "po-table-checkbox"], [1, "po-table-checkbox-label", "po-clickable", 3, "click"], [1, "po-table-header-column", "po-table-header-master-detail"], [1, "po-table-header-column", "po-text-center"], ["noColumnsHeader", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-table-header-ellipsis", 3, "click"], ["headersTable", ""], [1, "po-table-header-flex"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["columnManager", ""], ["p-tooltip-position", "left", 1, "po-table-header-column-manager-button", "po-icon", "po-icon-settings", "po-clickable", 3, "p-tooltip", "click"], ["columnManagerTarget", ""], ["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, "ngFor", "ngForOf", "ngForTrackBy"], [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"], [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"], [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", 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) { if (rf & 1) {
|
|
16842
17445
|
i0.ɵɵtemplate(0, PoTableComponent_po_container_0_Template, 2, 2, "po-container", 0);
|
|
16843
17446
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_Template, 8, 10, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
16844
17447
|
i0.ɵɵtemplate(3, PoTableComponent_div_3_Template, 3, 5, "div", 2);
|
|
16845
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_Template,
|
|
16846
|
-
i0.ɵɵ
|
|
16847
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_Template,
|
|
16848
|
-
i0.ɵɵ
|
|
16849
|
-
i0.ɵɵtemplate(12, PoTableComponent_ng_template_12_Template,
|
|
16850
|
-
i0.ɵɵtemplate(14, PoTableComponent_ng_template_14_Template,
|
|
16851
|
-
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template, 2,
|
|
16852
|
-
i0.ɵɵtemplate(18, PoTableComponent_ng_template_18_Template,
|
|
16853
|
-
i0.ɵɵtemplate(20, PoTableComponent_ng_template_20_Template, 2,
|
|
16854
|
-
i0.ɵɵtemplate(22,
|
|
17448
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_Template, 11, 15, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
17449
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_Template, 3, 6, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
17450
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_Template, 13, 17, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
17451
|
+
i0.ɵɵelement(10, "po-popup", 6, 7);
|
|
17452
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_12_Template, 1, 1, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
|
|
17453
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_14_Template, 2, 2, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
17454
|
+
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template, 2, 2, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
17455
|
+
i0.ɵɵtemplate(18, PoTableComponent_ng_template_18_Template, 5, 5, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
|
17456
|
+
i0.ɵɵtemplate(20, PoTableComponent_ng_template_20_Template, 2, 3, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
17457
|
+
i0.ɵɵtemplate(22, PoTableComponent_ng_template_22_Template, 1, 1, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
17458
|
+
i0.ɵɵtemplate(24, PoTableComponent_ng_template_24_Template, 2, 2, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
17459
|
+
i0.ɵɵtemplate(26, PoTableComponent_po_table_column_manager_26_Template, 1, 5, "po-table-column-manager", 15);
|
|
16855
17460
|
} if (rf & 2) {
|
|
16856
17461
|
const _r1 = i0.ɵɵreference(2);
|
|
16857
17462
|
i0.ɵɵproperty("ngIf", ctx.container)("ngIfElse", _r1);
|
|
16858
17463
|
i0.ɵɵadvance(3);
|
|
16859
17464
|
i0.ɵɵproperty("ngIf", !ctx.infiniteScroll);
|
|
16860
|
-
i0.ɵɵadvance(
|
|
17465
|
+
i0.ɵɵadvance(7);
|
|
16861
17466
|
i0.ɵɵproperty("p-actions", ctx.actions)("p-target", ctx.popupTarget);
|
|
16862
17467
|
i0.ɵɵadvance(16);
|
|
16863
17468
|
i0.ɵɵproperty("ngIf", !ctx.hideColumnsManager);
|
|
16864
17469
|
} }, directives: [i1.NgIf, PoContainerComponent, i1.NgTemplateOutlet, PoLoadingComponent, i1.NgForOf, PoTableSubtitleFooterComponent, PoButtonComponent, PoTooltipDirective, i1.NgClass, i1.NgSwitch, i1.NgSwitchCase, PoTableColumnLinkComponent, PoTableColumnIconComponent, PoTableSubtitleCircleComponent, PoTableColumnLabelComponent, i1.NgSwitchDefault, PoTableDetailComponent, PoPopupComponent, PoIconComponent, PoTableColumnManagerComponent], pipes: [i1.CurrencyPipe, i1.DatePipe, PoTimePipe, i1.TitleCasePipe], encapsulation: 2 });
|
|
16865
17470
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableComponent, [{
|
|
16866
17471
|
type: Component,
|
|
16867
|
-
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 class=\"po-table-header-fixed po-table-header\"></div>\n <div #poTableTbody class=\"po-table-container-fixed-inner\">\n <ng-container *ngTemplateOutlet=\"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 #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 <input\n *ngIf=\"!hideSelectAll\"\n type=\"checkbox\"\n class=\"po-table-checkbox\"\n [class.po-table-checkbox-checked]=\"selectAll\"\n [class.po-table-checkbox-indeterminate]=\"selectAll === null\"\n />\n <label *ngIf=\"!hideSelectAll\" class=\"po-table-checkbox-label po-clickable\" (click)=\"selectAllRows()\">\n </label>\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 *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 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\">\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 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-column\"></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 <input type=\"checkbox\" class=\"po-table-checkbox\" [class.po-table-checkbox-checked]=\"row.$selected\" />\n <label class=\"po-table-checkbox-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\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 *ngIf=\"isSingleAction\" class=\"po-table-column po-table-column-single-action\">\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>\n</po-table-column-manager>\n" }]
|
|
17472
|
+
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 <div #poTableTbody class=\"po-table-container-fixed-inner\" (scroll)=\"syncronizeHorizontalScroll()\">\n <ng-container *ngTemplateOutlet=\"tableBodyTemplate\"></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 <input\n *ngIf=\"!hideSelectAll\"\n type=\"checkbox\"\n class=\"po-table-checkbox\"\n [class.po-table-checkbox-checked]=\"selectAll\"\n [class.po-table-checkbox-indeterminate]=\"selectAll === null\"\n />\n <label *ngIf=\"!hideSelectAll\" class=\"po-table-checkbox-label po-clickable\" (click)=\"selectAllRows()\">\n </label>\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 *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 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<ng-template #tableBodyTemplate>\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\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 [style.width.px]=\"noColumnsHeader?.nativeElement.parentElement?.offsetWidth\"\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-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</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 <input\n *ngIf=\"!hideSelectAll\"\n type=\"checkbox\"\n class=\"po-table-checkbox\"\n [class.po-table-checkbox-checked]=\"selectAll\"\n [class.po-table-checkbox-indeterminate]=\"selectAll === null\"\n />\n <label *ngIf=\"!hideSelectAll\" class=\"po-table-checkbox-label po-clickable\" (click)=\"selectAllRows()\">\n </label>\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 *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 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 <input type=\"checkbox\" class=\"po-table-checkbox\" [class.po-table-checkbox-checked]=\"row.$selected\" />\n <label class=\"po-table-checkbox-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\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 *ngIf=\"isSingleAction\" class=\"po-table-column po-table-column-single-action\">\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" }]
|
|
16868
17473
|
}], function () { return [{ type: PoDateService }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: i1.DecimalPipe }, { type: i2.Router }, { type: PoTableService }]; }, { tableRowTemplate: [{
|
|
16869
17474
|
type: ContentChild,
|
|
16870
17475
|
args: [PoTableRowTemplateDirective, { static: true }]
|
|
@@ -16889,6 +17494,9 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
16889
17494
|
}], poTableTbody: [{
|
|
16890
17495
|
type: ViewChild,
|
|
16891
17496
|
args: ['poTableTbody', { read: ElementRef, static: false }]
|
|
17497
|
+
}], poTableThead: [{
|
|
17498
|
+
type: ViewChild,
|
|
17499
|
+
args: ['poTableThead', { read: ElementRef, static: false }]
|
|
16892
17500
|
}], actionsIconElement: [{
|
|
16893
17501
|
type: ViewChildren,
|
|
16894
17502
|
args: ['actionsIconElement', { read: ElementRef }]
|
|
@@ -17034,10 +17642,18 @@ var PoKeyCodeEnum;
|
|
|
17034
17642
|
* 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
|
|
17035
17643
|
* no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
|
|
17036
17644
|
*
|
|
17037
|
-
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado e desabilitado, como também uma ação que será disparada quando
|
|
17645
|
+
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
|
|
17038
17646
|
* ocorrer mudanças do valor.
|
|
17039
17647
|
*
|
|
17040
|
-
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado.
|
|
17648
|
+
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
|
|
17649
|
+
*
|
|
17650
|
+
* **Acessibilidade tratada no componente:**
|
|
17651
|
+
*
|
|
17652
|
+
* 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:
|
|
17653
|
+
*
|
|
17654
|
+
* - 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)
|
|
17655
|
+
* - 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)
|
|
17656
|
+
* - 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)
|
|
17041
17657
|
*/
|
|
17042
17658
|
class PoCheckboxBaseComponent {
|
|
17043
17659
|
constructor() {
|
|
@@ -17087,7 +17703,7 @@ class PoCheckboxBaseComponent {
|
|
|
17087
17703
|
}
|
|
17088
17704
|
checkOption(value) {
|
|
17089
17705
|
if (!this.disabled) {
|
|
17090
|
-
this.changeModelValue(!value);
|
|
17706
|
+
value === 'mixed' ? this.changeModelValue(true) : this.changeModelValue(!value);
|
|
17091
17707
|
this.changeValue();
|
|
17092
17708
|
}
|
|
17093
17709
|
}
|
|
@@ -17197,7 +17813,12 @@ class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
|
17197
17813
|
}
|
|
17198
17814
|
}
|
|
17199
17815
|
changeModelValue(value) {
|
|
17200
|
-
|
|
17816
|
+
if (value === null) {
|
|
17817
|
+
this.checkboxValue = 'mixed';
|
|
17818
|
+
}
|
|
17819
|
+
else {
|
|
17820
|
+
this.checkboxValue = typeof value === 'boolean' || value === null ? value : false;
|
|
17821
|
+
}
|
|
17201
17822
|
this.changeDetector.detectChanges();
|
|
17202
17823
|
}
|
|
17203
17824
|
}
|
|
@@ -17213,20 +17834,20 @@ PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheck
|
|
|
17213
17834
|
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
17214
17835
|
multi: true
|
|
17215
17836
|
}
|
|
17216
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
17837
|
+
]), 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) { if (rf & 1) {
|
|
17217
17838
|
i0.ɵɵelementStart(0, "div", 0);
|
|
17218
|
-
i0.ɵɵ
|
|
17839
|
+
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); });
|
|
17840
|
+
i0.ɵɵelement(1, "span", 1);
|
|
17219
17841
|
i0.ɵɵelementStart(2, "label", 2, 3);
|
|
17220
|
-
i0.ɵɵlistener("blur", function PoCheckboxComponent_Template_label_blur_2_listener() { return ctx.onBlur(); })("click", function PoCheckboxComponent_Template_label_click_2_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_label_keydown_2_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
17221
17842
|
i0.ɵɵtext(4);
|
|
17222
17843
|
i0.ɵɵelementEnd()();
|
|
17223
17844
|
} if (rf & 2) {
|
|
17845
|
+
i0.ɵɵattribute("checked", ctx.checkboxValue);
|
|
17224
17846
|
i0.ɵɵadvance(1);
|
|
17225
|
-
i0.ɵɵ
|
|
17226
|
-
i0.ɵɵ
|
|
17847
|
+
i0.ɵɵproperty("id", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
17848
|
+
i0.ɵɵattribute("aria-checked", ctx.checkboxValue)("aria-label", ctx.label)("aria-disabled", ctx.disabled);
|
|
17227
17849
|
i0.ɵɵadvance(1);
|
|
17228
|
-
i0.ɵɵ
|
|
17229
|
-
i0.ɵɵproperty("for", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
17850
|
+
i0.ɵɵproperty("for", ctx.id);
|
|
17230
17851
|
i0.ɵɵadvance(2);
|
|
17231
17852
|
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
17232
17853
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
@@ -17238,7 +17859,7 @@ PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheck
|
|
|
17238
17859
|
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
17239
17860
|
multi: true
|
|
17240
17861
|
}
|
|
17241
|
-
], template: "<div
|
|
17862
|
+
], 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" }]
|
|
17242
17863
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabel: [{
|
|
17243
17864
|
type: ViewChild,
|
|
17244
17865
|
args: ['checkboxLabel', { static: true }]
|
|
@@ -17361,6 +17982,9 @@ class PoComboBaseComponent {
|
|
|
17361
17982
|
this.isFiltering = false;
|
|
17362
17983
|
this.previousSearchValue = '';
|
|
17363
17984
|
this.visibleOptions = [];
|
|
17985
|
+
this.page = 1;
|
|
17986
|
+
this.pageSize = 10;
|
|
17987
|
+
this.loading = false;
|
|
17364
17988
|
this.cacheStaticOptions = [];
|
|
17365
17989
|
this.comboOptionsList = [];
|
|
17366
17990
|
this.onModelTouched = null;
|
|
@@ -17376,11 +18000,44 @@ class PoComboBaseComponent {
|
|
|
17376
18000
|
this._placeholder = '';
|
|
17377
18001
|
this._required = false;
|
|
17378
18002
|
this._sort = false;
|
|
18003
|
+
this._infiniteScrollDistance = 100;
|
|
18004
|
+
this._infiniteScroll = false;
|
|
17379
18005
|
// utilizado para fazer o controle de atualizar o model.
|
|
17380
18006
|
// não deve forçar a atualização se o gatilho for o writeValue para não deixar o campo dirty.
|
|
17381
18007
|
this.fromWriteValue = false;
|
|
17382
18008
|
this.language = languageService.getShortLanguage();
|
|
17383
18009
|
}
|
|
18010
|
+
/**
|
|
18011
|
+
* @optional
|
|
18012
|
+
*
|
|
18013
|
+
* @description
|
|
18014
|
+
*
|
|
18015
|
+
* Se verdadeiro ativa a funcionalidade de scroll infinito para o combo, Ao chegar ao fim da tabela executará nova busca dos dados conforme paginação.
|
|
18016
|
+
*
|
|
18017
|
+
* @default `false`
|
|
18018
|
+
*/
|
|
18019
|
+
set infiniteScroll(value) {
|
|
18020
|
+
this._infiniteScroll = convertToBoolean(value);
|
|
18021
|
+
}
|
|
18022
|
+
get infiniteScroll() {
|
|
18023
|
+
return this._infiniteScroll;
|
|
18024
|
+
}
|
|
18025
|
+
/**
|
|
18026
|
+
* @optional
|
|
18027
|
+
*
|
|
18028
|
+
* @description
|
|
18029
|
+
*
|
|
18030
|
+
* Define o percentual necessário para disparar o evento `show-more`, que é responsável por carregar mais dados no combo. Caso o valor seja maior que 100 ou menor que 0, o valor padrão será 100%.
|
|
18031
|
+
*
|
|
18032
|
+
* **Exemplos**
|
|
18033
|
+
* - p-infinite-scroll-distance = 80: Quando atingir 80% do scroll do combo, o `show-more` será disparado.
|
|
18034
|
+
*/
|
|
18035
|
+
set infiniteScrollDistance(value) {
|
|
18036
|
+
this._infiniteScrollDistance = value > 100 || value < 0 ? 100 : value;
|
|
18037
|
+
}
|
|
18038
|
+
get infiniteScrollDistance() {
|
|
18039
|
+
return this._infiniteScrollDistance;
|
|
18040
|
+
}
|
|
17384
18041
|
/** Mensagem apresentada enquanto o campo estiver vazio. */
|
|
17385
18042
|
set placeholder(value) {
|
|
17386
18043
|
this._placeholder = value || '';
|
|
@@ -17539,6 +18196,7 @@ class PoComboBaseComponent {
|
|
|
17539
18196
|
* - 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.
|
|
17540
18197
|
* - O componente interpretará o formato da lista de acordo com a interface utilizada e só exibirá as opções correspondentes à ela.
|
|
17541
18198
|
* - Um agrupamento só será exibido se houver pelo menos uma opção válida.
|
|
18199
|
+
* - Aconselha-se utilizar valores distintos no `label` e `value` dos itens.
|
|
17542
18200
|
*/
|
|
17543
18201
|
set options(options) {
|
|
17544
18202
|
this._options = Array.isArray(options) ? options : [];
|
|
@@ -17739,7 +18397,7 @@ class PoComboBaseComponent {
|
|
|
17739
18397
|
}
|
|
17740
18398
|
updateComboList(options) {
|
|
17741
18399
|
const copyOptions = options || [...this.comboOptionsList];
|
|
17742
|
-
const newOptions = !options && this.selectedValue ? [{ ...this.selectedOption }] : copyOptions;
|
|
18400
|
+
const newOptions = !options && !this.infiniteScroll && this.selectedValue ? [{ ...this.selectedOption }] : copyOptions;
|
|
17743
18401
|
this.visibleOptions = newOptions;
|
|
17744
18402
|
if (!this.selectedView && this.visibleOptions.length) {
|
|
17745
18403
|
this.selectedView = copyOptions.find(option => option.value !== undefined);
|
|
@@ -17875,8 +18533,12 @@ class PoComboBaseComponent {
|
|
|
17875
18533
|
return labelA < labelB ? -1 : labelA > labelB ? 1 : 0;
|
|
17876
18534
|
}
|
|
17877
18535
|
hasDuplicatedOption(options, currentOption, accumulatedGroupOptions) {
|
|
17878
|
-
|
|
17879
|
-
|
|
18536
|
+
if (accumulatedGroupOptions) {
|
|
18537
|
+
return accumulatedGroupOptions.some(option => option.label === currentOption);
|
|
18538
|
+
}
|
|
18539
|
+
else {
|
|
18540
|
+
return options.some(option => option.value === currentOption);
|
|
18541
|
+
}
|
|
17880
18542
|
}
|
|
17881
18543
|
listingComboOptions(comboOptions) {
|
|
17882
18544
|
const comboOptionsList = comboOptions.concat();
|
|
@@ -17902,7 +18564,7 @@ class PoComboBaseComponent {
|
|
|
17902
18564
|
verifyComboOptions(comboOptions, verifyingOptionsGroup = false, accumulatedGroupOptions) {
|
|
17903
18565
|
return comboOptions.reduce((accumulatedOptions, currentOption) => {
|
|
17904
18566
|
if (!this.verifyIfHasLabel(currentOption) ||
|
|
17905
|
-
this.hasDuplicatedOption(accumulatedOptions, currentOption
|
|
18567
|
+
this.hasDuplicatedOption(accumulatedOptions, currentOption['value'] || currentOption['label'], accumulatedGroupOptions) ||
|
|
17906
18568
|
!this.validateValue(currentOption, verifyingOptionsGroup)) {
|
|
17907
18569
|
return accumulatedOptions;
|
|
17908
18570
|
}
|
|
@@ -17960,7 +18622,7 @@ class PoComboBaseComponent {
|
|
|
17960
18622
|
}
|
|
17961
18623
|
}
|
|
17962
18624
|
PoComboBaseComponent.ɵfac = function PoComboBaseComponent_Factory(t) { return new (t || PoComboBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
17963
|
-
PoComboBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoComboBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], help: ["p-help", "help"], name: "name", filterService: ["p-filter-service", "filterService"], icon: ["p-icon", "icon"], optional: ["p-optional", "optional"], clean: ["p-clean", "clean"], emitObjectValue: ["p-emit-object-value", "emitObjectValue"], disabledTabFilter: ["p-disabled-tab-filter", "disabledTabFilter"], placeholder: ["p-placeholder", "placeholder"], debounceTime: ["p-debounce-time", "debounceTime"], disabledInitFilter: ["p-disabled-init-filter", "disabledInitFilter"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], filterMinlength: ["p-filter-minlength", "filterMinlength"], required: ["p-required", "required"], changeOnEnter: ["p-change-on-enter", "changeOnEnter"], disabled: ["p-disabled", "disabled"], sort: ["p-sort", "sort"], options: ["p-options", "options"], filterMode: ["p-filter-mode", "filterMode"], filterParams: ["p-filter-params", "filterParams"], literals: ["p-literals", "literals"] }, outputs: { change: "p-change", ngModelChange: "ngModelChange" } });
|
|
18625
|
+
PoComboBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoComboBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], help: ["p-help", "help"], name: "name", filterService: ["p-filter-service", "filterService"], infiniteScroll: ["p-infinite-scroll", "infiniteScroll"], infiniteScrollDistance: ["p-infinite-scroll-distance", "infiniteScrollDistance"], icon: ["p-icon", "icon"], optional: ["p-optional", "optional"], clean: ["p-clean", "clean"], emitObjectValue: ["p-emit-object-value", "emitObjectValue"], disabledTabFilter: ["p-disabled-tab-filter", "disabledTabFilter"], placeholder: ["p-placeholder", "placeholder"], debounceTime: ["p-debounce-time", "debounceTime"], disabledInitFilter: ["p-disabled-init-filter", "disabledInitFilter"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], filterMinlength: ["p-filter-minlength", "filterMinlength"], required: ["p-required", "required"], changeOnEnter: ["p-change-on-enter", "changeOnEnter"], disabled: ["p-disabled", "disabled"], sort: ["p-sort", "sort"], options: ["p-options", "options"], filterMode: ["p-filter-mode", "filterMode"], filterParams: ["p-filter-params", "filterParams"], literals: ["p-literals", "literals"] }, outputs: { change: "p-change", ngModelChange: "ngModelChange" } });
|
|
17964
18626
|
__decorate([
|
|
17965
18627
|
InputBoolean()
|
|
17966
18628
|
], PoComboBaseComponent.prototype, "autoFocus", void 0);
|
|
@@ -17990,6 +18652,12 @@ __decorate([
|
|
|
17990
18652
|
}], filterService: [{
|
|
17991
18653
|
type: Input,
|
|
17992
18654
|
args: ['p-filter-service']
|
|
18655
|
+
}], infiniteScroll: [{
|
|
18656
|
+
type: Input,
|
|
18657
|
+
args: ['p-infinite-scroll']
|
|
18658
|
+
}], infiniteScrollDistance: [{
|
|
18659
|
+
type: Input,
|
|
18660
|
+
args: ['p-infinite-scroll-distance']
|
|
17993
18661
|
}], icon: [{
|
|
17994
18662
|
type: Input,
|
|
17995
18663
|
args: ['p-icon']
|
|
@@ -18067,6 +18735,7 @@ class PoComboFilterService {
|
|
|
18067
18735
|
this.http = http;
|
|
18068
18736
|
this.fieldLabel = 'label';
|
|
18069
18737
|
this.fieldValue = 'value';
|
|
18738
|
+
this.hasNext = true;
|
|
18070
18739
|
this.headers = new HttpHeaders({
|
|
18071
18740
|
'X-PO-No-Message': 'true'
|
|
18072
18741
|
});
|
|
@@ -18076,12 +18745,8 @@ class PoComboFilterService {
|
|
|
18076
18745
|
return this._url;
|
|
18077
18746
|
}
|
|
18078
18747
|
getFilteredData(param, filterParams) {
|
|
18079
|
-
const
|
|
18080
|
-
|
|
18081
|
-
const params = { ...filterParamsValidated, filter: value };
|
|
18082
|
-
return this.http
|
|
18083
|
-
.get(`${this.url}`, { responseType: 'json', params, headers: this.headers })
|
|
18084
|
-
.pipe(map((response) => this.parseToArrayComboOption(response.items)));
|
|
18748
|
+
const params = this.prepareParams(param, filterParams);
|
|
18749
|
+
return this.http.get(`${this.url}`, { responseType: 'json', params, headers: this.headers }).pipe(tap(res => (this.hasNext = res['hasNext'])), map((response) => this.parseToArrayComboOption(response.items)));
|
|
18085
18750
|
}
|
|
18086
18751
|
getObjectByValue(value, filterParams) {
|
|
18087
18752
|
const filterParamsValidated = validateObjectType(filterParams);
|
|
@@ -18094,6 +18759,16 @@ class PoComboFilterService {
|
|
|
18094
18759
|
this.fieldLabel = fieldLabel;
|
|
18095
18760
|
this.fieldValue = fieldValue;
|
|
18096
18761
|
}
|
|
18762
|
+
scrollListener(componentListner) {
|
|
18763
|
+
return fromEvent(componentListner, 'scroll').pipe(debounceTime(100));
|
|
18764
|
+
}
|
|
18765
|
+
prepareParams(param, filterParams) {
|
|
18766
|
+
const { page, pageSize, value } = param;
|
|
18767
|
+
const filterParamsValidated = validateObjectType(filterParams);
|
|
18768
|
+
return page
|
|
18769
|
+
? { ...filterParamsValidated, page, pageSize, filter: value }
|
|
18770
|
+
: { ...filterParamsValidated, filter: value };
|
|
18771
|
+
}
|
|
18097
18772
|
parseToArrayComboOption(items) {
|
|
18098
18773
|
if (items && items.length > 0) {
|
|
18099
18774
|
const parsedOptions = items.map(item => this.parseToComboOption(item));
|
|
@@ -18212,9 +18887,10 @@ const _c0$U = ["containerElement"];
|
|
|
18212
18887
|
const _c1$o = ["contentElement"];
|
|
18213
18888
|
const _c2$9 = ["iconArrow"];
|
|
18214
18889
|
const _c3$5 = ["inp"];
|
|
18890
|
+
const _c4$3 = ["poComboBody"];
|
|
18215
18891
|
function PoComboComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
18216
|
-
i0.ɵɵelementStart(0, "div",
|
|
18217
|
-
i0.ɵɵelement(1, "po-icon",
|
|
18892
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
18893
|
+
i0.ɵɵelement(1, "po-icon", 18);
|
|
18218
18894
|
i0.ɵɵelementEnd();
|
|
18219
18895
|
} if (rf & 2) {
|
|
18220
18896
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -18223,9 +18899,9 @@ function PoComboComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
18223
18899
|
i0.ɵɵproperty("p-icon", ctx_r0.icon);
|
|
18224
18900
|
} }
|
|
18225
18901
|
function PoComboComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
18226
|
-
const
|
|
18227
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
18228
|
-
i0.ɵɵlistener("p-change-event", function PoComboComponent_po_clean_6_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(
|
|
18902
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
18903
|
+
i0.ɵɵelementStart(0, "po-clean", 19);
|
|
18904
|
+
i0.ɵɵlistener("p-change-event", function PoComboComponent_po_clean_6_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.clear($event); });
|
|
18229
18905
|
i0.ɵɵelementEnd();
|
|
18230
18906
|
} if (rf & 2) {
|
|
18231
18907
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -18234,120 +18910,133 @@ function PoComboComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
18234
18910
|
function PoComboComponent_ng_container_11_Template(rf, ctx) { if (rf & 1) {
|
|
18235
18911
|
i0.ɵɵelementContainer(0);
|
|
18236
18912
|
} }
|
|
18237
|
-
function
|
|
18238
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
18239
|
-
i0.ɵɵelement(1, "po-loading");
|
|
18240
|
-
i0.ɵɵelementEnd();
|
|
18241
|
-
} }
|
|
18242
|
-
function PoComboComponent_ng_template_15_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18913
|
+
function PoComboComponent_div_12_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18243
18914
|
i0.ɵɵelementContainer(0);
|
|
18244
18915
|
} }
|
|
18245
|
-
function
|
|
18246
|
-
i0.ɵɵ
|
|
18916
|
+
function PoComboComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
18917
|
+
i0.ɵɵelementStart(0, "div");
|
|
18918
|
+
i0.ɵɵtemplate(1, PoComboComponent_div_12_ng_container_1_Template, 1, 0, "ng-container", 11);
|
|
18919
|
+
i0.ɵɵelementEnd();
|
|
18247
18920
|
} if (rf & 2) {
|
|
18248
|
-
const
|
|
18249
|
-
const
|
|
18250
|
-
const
|
|
18251
|
-
i0.ɵɵ
|
|
18921
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
18922
|
+
const _r9 = i0.ɵɵreference(17);
|
|
18923
|
+
const _r7 = i0.ɵɵreference(15);
|
|
18924
|
+
i0.ɵɵadvance(1);
|
|
18925
|
+
i0.ɵɵproperty("ngIf", ctx_r6.infiniteLoading)("ngIfThen", _r9)("ngIfElse", _r7);
|
|
18926
|
+
} }
|
|
18927
|
+
function PoComboComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
18928
|
+
i0.ɵɵelement(0, "po-loading", 20);
|
|
18252
18929
|
} }
|
|
18253
|
-
function
|
|
18930
|
+
function PoComboComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
18931
|
+
i0.ɵɵelement(0, "po-loading-overlay", 20);
|
|
18932
|
+
} }
|
|
18933
|
+
function PoComboComponent_ng_template_18_li_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18254
18934
|
i0.ɵɵelementContainer(0);
|
|
18255
18935
|
} }
|
|
18256
|
-
function
|
|
18257
|
-
i0.ɵɵelementStart(0, "label",
|
|
18936
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template(rf, ctx) { if (rf & 1) {
|
|
18937
|
+
i0.ɵɵelementStart(0, "label", 28);
|
|
18258
18938
|
i0.ɵɵtext(1);
|
|
18259
18939
|
i0.ɵɵelementEnd();
|
|
18260
18940
|
} if (rf & 2) {
|
|
18261
|
-
const
|
|
18941
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
18262
18942
|
i0.ɵɵadvance(1);
|
|
18263
|
-
i0.ɵɵtextInterpolate(
|
|
18943
|
+
i0.ɵɵtextInterpolate(option_r21.label);
|
|
18264
18944
|
} }
|
|
18265
|
-
function
|
|
18266
|
-
i0.ɵɵelementStart(0, "a",
|
|
18267
|
-
i0.ɵɵelement(1, "span",
|
|
18945
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
18946
|
+
i0.ɵɵelementStart(0, "a", 29);
|
|
18947
|
+
i0.ɵɵelement(1, "span", 30);
|
|
18268
18948
|
i0.ɵɵelementEnd();
|
|
18269
18949
|
} if (rf & 2) {
|
|
18270
|
-
const
|
|
18271
|
-
const
|
|
18950
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
18951
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
18272
18952
|
i0.ɵɵadvance(1);
|
|
18273
|
-
i0.ɵɵproperty("innerHTML",
|
|
18953
|
+
i0.ɵɵproperty("innerHTML", ctx_r29.getLabelFormatted(option_r21 == null ? null : option_r21.label), i0.ɵɵsanitizeHtml);
|
|
18274
18954
|
} }
|
|
18275
|
-
function
|
|
18276
|
-
i0.ɵɵtemplate(0,
|
|
18277
|
-
i0.ɵɵtemplate(1,
|
|
18955
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
18956
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template, 2, 1, "label", 26);
|
|
18957
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template, 2, 1, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
|
|
18278
18958
|
} if (rf & 2) {
|
|
18279
|
-
const
|
|
18280
|
-
const
|
|
18281
|
-
i0.ɵɵproperty("ngIf",
|
|
18959
|
+
const _r28 = i0.ɵɵreference(2);
|
|
18960
|
+
const option_r21 = i0.ɵɵnextContext().$implicit;
|
|
18961
|
+
i0.ɵɵproperty("ngIf", option_r21 == null ? null : option_r21.options)("ngIfElse", _r28);
|
|
18282
18962
|
} }
|
|
18283
|
-
function
|
|
18963
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18284
18964
|
i0.ɵɵelementContainer(0);
|
|
18285
18965
|
} }
|
|
18286
|
-
function
|
|
18287
|
-
const
|
|
18288
|
-
function
|
|
18289
|
-
i0.ɵɵtemplate(0,
|
|
18966
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template(rf, ctx) { }
|
|
18967
|
+
const _c5$1 = function (a0, a1) { return { $implicit: a0, selected: a1 }; };
|
|
18968
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
18969
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 33);
|
|
18290
18970
|
} if (rf & 2) {
|
|
18291
|
-
const
|
|
18292
|
-
const
|
|
18293
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
18971
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
18972
|
+
const ctx_r35 = i0.ɵɵnextContext(2);
|
|
18973
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r35.comboOptionTemplate == null ? null : ctx_r35.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c5$1, option_r21, ctx_r35.compareObjects(ctx_r35.selectedView, option_r21)));
|
|
18294
18974
|
} }
|
|
18295
|
-
function
|
|
18296
|
-
const
|
|
18297
|
-
function
|
|
18298
|
-
i0.ɵɵelementStart(0, "a",
|
|
18299
|
-
i0.ɵɵtemplate(1,
|
|
18975
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template(rf, ctx) { }
|
|
18976
|
+
const _c6$1 = function (a0) { return { $implicit: a0 }; };
|
|
18977
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
18978
|
+
i0.ɵɵelementStart(0, "a", 29);
|
|
18979
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template, 0, 0, "ng-template", 33);
|
|
18300
18980
|
i0.ɵɵelementEnd();
|
|
18301
18981
|
} if (rf & 2) {
|
|
18302
|
-
const
|
|
18303
|
-
const
|
|
18982
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
18983
|
+
const ctx_r37 = i0.ɵɵnextContext(2);
|
|
18304
18984
|
i0.ɵɵadvance(1);
|
|
18305
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
18985
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r37.comboOptionTemplate == null ? null : ctx_r37.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c6$1, option_r21));
|
|
18306
18986
|
} }
|
|
18307
|
-
function
|
|
18308
|
-
i0.ɵɵtemplate(0,
|
|
18309
|
-
i0.ɵɵtemplate(1,
|
|
18310
|
-
i0.ɵɵtemplate(3,
|
|
18987
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
18988
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 11);
|
|
18989
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template, 1, 5, "ng-template", null, 31, i0.ɵɵtemplateRefExtractor);
|
|
18990
|
+
i0.ɵɵtemplate(3, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template, 2, 4, "ng-template", null, 32, i0.ɵɵtemplateRefExtractor);
|
|
18311
18991
|
} if (rf & 2) {
|
|
18312
|
-
const
|
|
18313
|
-
const
|
|
18314
|
-
const
|
|
18315
|
-
i0.ɵɵproperty("ngIf",
|
|
18992
|
+
const _r34 = i0.ɵɵreference(2);
|
|
18993
|
+
const _r36 = i0.ɵɵreference(4);
|
|
18994
|
+
const ctx_r26 = i0.ɵɵnextContext(3);
|
|
18995
|
+
i0.ɵɵproperty("ngIf", ctx_r26.isOptionGroupList)("ngIfThen", _r34)("ngIfElse", _r36);
|
|
18316
18996
|
} }
|
|
18317
|
-
function
|
|
18318
|
-
const
|
|
18997
|
+
function PoComboComponent_ng_template_18_li_3_Template(rf, ctx) { if (rf & 1) {
|
|
18998
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
18319
18999
|
i0.ɵɵelementStart(0, "li", 7);
|
|
18320
|
-
i0.ɵɵlistener("click", function
|
|
18321
|
-
i0.ɵɵtemplate(1,
|
|
18322
|
-
i0.ɵɵtemplate(2,
|
|
18323
|
-
i0.ɵɵtemplate(4,
|
|
19000
|
+
i0.ɵɵlistener("click", function PoComboComponent_ng_template_18_li_3_Template_li_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r43); const option_r21 = restoredCtx.$implicit; const ctx_r42 = i0.ɵɵnextContext(2); return (option_r21 == null ? null : option_r21.options) ? undefined : ctx_r42.onOptionClick(option_r21, $event); });
|
|
19001
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_container_1_Template, 1, 0, "ng-container", 11);
|
|
19002
|
+
i0.ɵɵtemplate(2, PoComboComponent_ng_template_18_li_3_ng_template_2_Template, 3, 2, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
|
|
19003
|
+
i0.ɵɵtemplate(4, PoComboComponent_ng_template_18_li_3_ng_template_4_Template, 5, 3, "ng-template", null, 25, i0.ɵɵtemplateRefExtractor);
|
|
18324
19004
|
i0.ɵɵelementEnd();
|
|
18325
19005
|
} if (rf & 2) {
|
|
18326
|
-
const
|
|
18327
|
-
const
|
|
18328
|
-
const
|
|
18329
|
-
const
|
|
18330
|
-
i0.ɵɵclassProp("po-combo-item-selected",
|
|
19006
|
+
const option_r21 = ctx.$implicit;
|
|
19007
|
+
const _r23 = i0.ɵɵreference(3);
|
|
19008
|
+
const _r25 = i0.ɵɵreference(5);
|
|
19009
|
+
const ctx_r20 = i0.ɵɵnextContext(2);
|
|
19010
|
+
i0.ɵɵclassProp("po-combo-item-selected", ctx_r20.compareObjects(ctx_r20.selectedView, option_r21));
|
|
18331
19011
|
i0.ɵɵadvance(1);
|
|
18332
|
-
i0.ɵɵproperty("ngIf",
|
|
19012
|
+
i0.ɵɵproperty("ngIf", ctx_r20.comboOptionTemplate)("ngIfThen", _r25)("ngIfElse", _r23);
|
|
18333
19013
|
} }
|
|
18334
|
-
function
|
|
18335
|
-
i0.ɵɵelementStart(0, "ul",
|
|
18336
|
-
i0.ɵɵtemplate(
|
|
19014
|
+
function PoComboComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
19015
|
+
i0.ɵɵelementStart(0, "ul", 21, 22);
|
|
19016
|
+
i0.ɵɵtemplate(3, PoComboComponent_ng_template_18_li_3_Template, 6, 5, "li", 23);
|
|
18337
19017
|
i0.ɵɵelementEnd();
|
|
18338
19018
|
} if (rf & 2) {
|
|
18339
|
-
const
|
|
18340
|
-
i0.ɵɵadvance(
|
|
18341
|
-
i0.ɵɵproperty("ngForOf",
|
|
19019
|
+
const ctx_r12 = i0.ɵɵnextContext();
|
|
19020
|
+
i0.ɵɵadvance(3);
|
|
19021
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.visibleOptions);
|
|
18342
19022
|
} }
|
|
18343
|
-
function
|
|
18344
|
-
i0.ɵɵelementStart(0, "
|
|
18345
|
-
i0.ɵɵtext(
|
|
18346
|
-
i0.ɵɵelementEnd()
|
|
19023
|
+
function PoComboComponent_ng_template_20_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19024
|
+
i0.ɵɵelementStart(0, "span");
|
|
19025
|
+
i0.ɵɵtext(1);
|
|
19026
|
+
i0.ɵɵelementEnd();
|
|
18347
19027
|
} if (rf & 2) {
|
|
18348
|
-
const
|
|
18349
|
-
i0.ɵɵadvance(
|
|
18350
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
19028
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
19029
|
+
i0.ɵɵadvance(1);
|
|
19030
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r44.literals.noData, " ");
|
|
19031
|
+
} }
|
|
19032
|
+
function PoComboComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
|
|
19033
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "div", 35);
|
|
19034
|
+
i0.ɵɵtemplate(2, PoComboComponent_ng_template_20_span_2_Template, 2, 1, "span", 12);
|
|
19035
|
+
i0.ɵɵelementEnd()();
|
|
19036
|
+
} if (rf & 2) {
|
|
19037
|
+
const ctx_r14 = i0.ɵɵnextContext();
|
|
19038
|
+
i0.ɵɵadvance(2);
|
|
19039
|
+
i0.ɵɵproperty("ngIf", !ctx_r14.isServerSearching);
|
|
18351
19040
|
} }
|
|
18352
19041
|
const poComboContainerOffset = 8;
|
|
18353
19042
|
const poComboContainerPositionDefault = 'bottom';
|
|
@@ -18392,6 +19081,11 @@ const poComboContainerPositionDefault = 'bottom';
|
|
|
18392
19081
|
* <file name="sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts"> </file>
|
|
18393
19082
|
* </example>
|
|
18394
19083
|
*
|
|
19084
|
+
* <example name="po-combo-infinity-scroll" title="PO Combo - Inifity Scroll">
|
|
19085
|
+
* <file name="sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html"> </file>
|
|
19086
|
+
* <file name="sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts"> </file>
|
|
19087
|
+
* </example>
|
|
19088
|
+
*
|
|
18395
19089
|
* <example name="po-combo-hotels" title="PO Combo - Booking Hotel">
|
|
18396
19090
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.html"> </file>
|
|
18397
19091
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.ts"> </file>
|
|
@@ -18412,6 +19106,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18412
19106
|
this.isProcessingValueByTab = false;
|
|
18413
19107
|
this.scrollTop = 0;
|
|
18414
19108
|
this.shouldMarkLetters = true;
|
|
19109
|
+
this.infiniteLoading = false;
|
|
18415
19110
|
this._isServerSearching = false;
|
|
18416
19111
|
this.onScroll = () => {
|
|
18417
19112
|
this.adjustContainerPosition();
|
|
@@ -18436,6 +19131,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18436
19131
|
if (this.autoFocus) {
|
|
18437
19132
|
this.focus();
|
|
18438
19133
|
}
|
|
19134
|
+
if (this.infiniteScroll) {
|
|
19135
|
+
this.checkInfiniteScroll();
|
|
19136
|
+
}
|
|
18439
19137
|
}
|
|
18440
19138
|
ngOnChanges(changes) {
|
|
18441
19139
|
if (changes.debounceTime) {
|
|
@@ -18454,6 +19152,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18454
19152
|
if (this.getSubscription) {
|
|
18455
19153
|
this.getSubscription.unsubscribe();
|
|
18456
19154
|
}
|
|
19155
|
+
if (this.infiniteScroll) {
|
|
19156
|
+
this.subscriptionScrollEvent?.unsubscribe();
|
|
19157
|
+
}
|
|
18457
19158
|
}
|
|
18458
19159
|
/**
|
|
18459
19160
|
* Função que atribui foco ao componente.
|
|
@@ -18581,23 +19282,31 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18581
19282
|
}
|
|
18582
19283
|
controlApplyFilter(value) {
|
|
18583
19284
|
if (!this.isProcessingValueByTab && (!this.selectedOption || value !== this.selectedOption.label)) {
|
|
18584
|
-
this.
|
|
19285
|
+
this.defaultService.hasNext = true;
|
|
19286
|
+
this.page = this.setPage();
|
|
19287
|
+
this.options = [];
|
|
19288
|
+
this.applyFilter(value, true);
|
|
18585
19289
|
}
|
|
18586
19290
|
this.isProcessingValueByTab = false;
|
|
18587
19291
|
}
|
|
18588
|
-
applyFilter(value) {
|
|
18589
|
-
this.
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
19292
|
+
applyFilter(value, reset = false) {
|
|
19293
|
+
if (this.defaultService.hasNext) {
|
|
19294
|
+
this.controlComboVisibility(false, reset);
|
|
19295
|
+
this.isServerSearching = true;
|
|
19296
|
+
const param = this.infiniteScroll
|
|
19297
|
+
? { property: this.fieldLabel, value, page: this.page, pageSize: this.pageSize }
|
|
19298
|
+
: { property: this.fieldLabel, value };
|
|
19299
|
+
this.filterSubscription = this.service.getFilteredData(param, this.filterParams).subscribe(items => this.setOptionsByApplyFilter(value, items, reset), error => this.onErrorFilteredData());
|
|
19300
|
+
}
|
|
18593
19301
|
}
|
|
18594
|
-
setOptionsByApplyFilter(value, items) {
|
|
19302
|
+
setOptionsByApplyFilter(value, items, reset = false) {
|
|
18595
19303
|
this.shouldMarkLetters = true;
|
|
18596
19304
|
this.isServerSearching = false;
|
|
18597
|
-
this.
|
|
19305
|
+
this.infiniteLoading = false;
|
|
19306
|
+
this.options = this.prepareOptions(items);
|
|
18598
19307
|
this.searchForLabel(value, items, this.filterMode);
|
|
18599
19308
|
this.changeDetector.detectChanges();
|
|
18600
|
-
this.controlComboVisibility(true);
|
|
19309
|
+
this.controlComboVisibility(true, reset);
|
|
18601
19310
|
if (this.isFirstFilter) {
|
|
18602
19311
|
this.isFirstFilter = !this.isFirstFilter;
|
|
18603
19312
|
this.cacheOptions = this.comboOptionsList;
|
|
@@ -18655,11 +19364,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18655
19364
|
}
|
|
18656
19365
|
applyFilterInFirstClick() {
|
|
18657
19366
|
if (this.isFirstFilter && !this.selectedValue) {
|
|
18658
|
-
this.
|
|
19367
|
+
this.options = [];
|
|
19368
|
+
const scrollingControl = this.setScrollingControl();
|
|
19369
|
+
this.applyFilter('', scrollingControl);
|
|
18659
19370
|
}
|
|
18660
19371
|
}
|
|
18661
|
-
controlComboVisibility(toOpen) {
|
|
18662
|
-
toOpen ? this.open() : this.close();
|
|
19372
|
+
controlComboVisibility(toOpen, reset = false) {
|
|
19373
|
+
toOpen ? this.open(reset) : this.close(reset);
|
|
18663
19374
|
}
|
|
18664
19375
|
onOptionClick(option, event) {
|
|
18665
19376
|
const inputValue = this.getInputValue();
|
|
@@ -18677,7 +19388,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18677
19388
|
scrollTo(index) {
|
|
18678
19389
|
const selectedItem = this.element.nativeElement.querySelectorAll('.po-combo-item-selected');
|
|
18679
19390
|
const scrollTop = !selectedItem.length || index <= 1 ? 0 : selectedItem[0].offsetTop - 88;
|
|
18680
|
-
this.
|
|
19391
|
+
if (!this.infiniteScroll) {
|
|
19392
|
+
this.setScrollTop(scrollTop);
|
|
19393
|
+
}
|
|
18681
19394
|
}
|
|
18682
19395
|
getInputValue() {
|
|
18683
19396
|
return this.inputEl.nativeElement.value;
|
|
@@ -18698,7 +19411,8 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18698
19411
|
}
|
|
18699
19412
|
else {
|
|
18700
19413
|
if (this.service && !this.getInputValue() && !this.isFirstFilter) {
|
|
18701
|
-
this.
|
|
19414
|
+
const scrollingControl = this.setScrollingControl();
|
|
19415
|
+
this.applyFilter('', scrollingControl);
|
|
18702
19416
|
}
|
|
18703
19417
|
}
|
|
18704
19418
|
}
|
|
@@ -18762,11 +19476,45 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18762
19476
|
this.controlApplyFilter(value);
|
|
18763
19477
|
}
|
|
18764
19478
|
}
|
|
19479
|
+
showMoreInfiniteScroll({ target }) {
|
|
19480
|
+
if (this.defaultService.hasNext) {
|
|
19481
|
+
this.infiniteLoading = true;
|
|
19482
|
+
}
|
|
19483
|
+
const scrollPosition = target.offsetHeight + target.scrollTop;
|
|
19484
|
+
if (scrollPosition >= target.scrollHeight * (this.infiniteScrollDistance / 110)) {
|
|
19485
|
+
this.page++;
|
|
19486
|
+
this.applyFilter('', true);
|
|
19487
|
+
}
|
|
19488
|
+
}
|
|
19489
|
+
checkInfiniteScroll() {
|
|
19490
|
+
if (this.hasInfiniteScroll() && this.poComboBody?.nativeElement.scrollHeight >= 175) {
|
|
19491
|
+
this.includeInfiniteScroll();
|
|
19492
|
+
}
|
|
19493
|
+
}
|
|
19494
|
+
hasInfiniteScroll() {
|
|
19495
|
+
return this.infiniteScroll && this.poComboBody?.nativeElement.scrollHeight && this.defaultService.hasNext;
|
|
19496
|
+
}
|
|
19497
|
+
includeInfiniteScroll() {
|
|
19498
|
+
this.subscriptionScrollEvent?.unsubscribe();
|
|
19499
|
+
this.scrollEvent$ = this.defaultService.scrollListener(this.poComboBody.nativeElement);
|
|
19500
|
+
this.subscriptionScrollEvent = this.scrollEvent$.subscribe(event => {
|
|
19501
|
+
this.showMoreInfiniteScroll(event);
|
|
19502
|
+
});
|
|
19503
|
+
}
|
|
18765
19504
|
adjustContainerPosition() {
|
|
18766
19505
|
this.controlPosition.adjustPosition(poComboContainerPositionDefault);
|
|
18767
19506
|
}
|
|
18768
|
-
close() {
|
|
19507
|
+
close(reset) {
|
|
18769
19508
|
this.comboOpen = false;
|
|
19509
|
+
if (!reset) {
|
|
19510
|
+
if (!this.getInputValue()) {
|
|
19511
|
+
this.page = this.setPage();
|
|
19512
|
+
this.defaultService.hasNext = true;
|
|
19513
|
+
}
|
|
19514
|
+
if (this.infiniteScroll) {
|
|
19515
|
+
this.options = this.setOptions();
|
|
19516
|
+
}
|
|
19517
|
+
}
|
|
18770
19518
|
this.changeDetector.detectChanges();
|
|
18771
19519
|
this.comboIcon = 'po-icon-arrow-down';
|
|
18772
19520
|
this.removeListeners();
|
|
@@ -18774,6 +19522,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18774
19522
|
}
|
|
18775
19523
|
initializeListeners() {
|
|
18776
19524
|
this.removeListeners();
|
|
19525
|
+
if (this.infiniteScroll) {
|
|
19526
|
+
this.checkInfiniteScroll();
|
|
19527
|
+
}
|
|
18777
19528
|
this.clickoutListener = this.renderer.listen('document', 'click', (event) => {
|
|
18778
19529
|
this.wasClickedOnToggle(event);
|
|
18779
19530
|
});
|
|
@@ -18791,13 +19542,22 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18791
19542
|
this.updateComboList([]);
|
|
18792
19543
|
this.controlComboVisibility(true);
|
|
18793
19544
|
}
|
|
18794
|
-
open() {
|
|
19545
|
+
open(reset) {
|
|
18795
19546
|
this.comboOpen = true;
|
|
19547
|
+
if (!reset && this.infiniteScroll) {
|
|
19548
|
+
if (!this.getInputValue()) {
|
|
19549
|
+
this.page = 1;
|
|
19550
|
+
}
|
|
19551
|
+
this.options = this.setOptions();
|
|
19552
|
+
this.scrollTo(0);
|
|
19553
|
+
}
|
|
18796
19554
|
this.changeDetector.detectChanges();
|
|
18797
19555
|
this.comboIcon = 'po-icon-arrow-up';
|
|
18798
19556
|
this.initializeListeners();
|
|
18799
19557
|
this.inputEl.nativeElement.focus();
|
|
18800
|
-
|
|
19558
|
+
if (!this.infiniteScroll) {
|
|
19559
|
+
this.scrollTo(this.getIndexSelectedView());
|
|
19560
|
+
}
|
|
18801
19561
|
this.setContainerPosition();
|
|
18802
19562
|
}
|
|
18803
19563
|
removeListeners() {
|
|
@@ -18807,6 +19567,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18807
19567
|
if (this.eventResizeListener) {
|
|
18808
19568
|
this.eventResizeListener();
|
|
18809
19569
|
}
|
|
19570
|
+
if (this.infiniteScroll && !this.defaultService.hasNext) {
|
|
19571
|
+
this.subscriptionScrollEvent?.unsubscribe();
|
|
19572
|
+
}
|
|
18810
19573
|
window.removeEventListener('scroll', this.onScroll, true);
|
|
18811
19574
|
}
|
|
18812
19575
|
sanitizeTagHTML(value = '') {
|
|
@@ -18816,11 +19579,23 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
18816
19579
|
this.controlPosition.setElements(this.containerElement.nativeElement, poComboContainerOffset, this.inputEl, ['top', 'bottom'], true);
|
|
18817
19580
|
this.adjustContainerPosition();
|
|
18818
19581
|
}
|
|
19582
|
+
setOptions() {
|
|
19583
|
+
return this.getInputValue() ? this.options : [];
|
|
19584
|
+
}
|
|
18819
19585
|
setScrollTop(scrollTop) {
|
|
18820
19586
|
if (this.contentElement) {
|
|
18821
19587
|
this.contentElement.nativeElement.scrollTop = scrollTop;
|
|
18822
19588
|
}
|
|
18823
19589
|
}
|
|
19590
|
+
prepareOptions(items) {
|
|
19591
|
+
return this.infiniteScroll ? [...this.options, ...items] : items;
|
|
19592
|
+
}
|
|
19593
|
+
setPage() {
|
|
19594
|
+
return this.infiniteScroll ? 1 : undefined;
|
|
19595
|
+
}
|
|
19596
|
+
setScrollingControl() {
|
|
19597
|
+
return this.infiniteScroll ? true : false;
|
|
19598
|
+
}
|
|
18824
19599
|
}
|
|
18825
19600
|
PoComboComponent.ɵfac = function PoComboComponent_Factory(t) { return new (t || PoComboComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(PoComboFilterService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i3$1.DomSanitizer), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
18826
19601
|
PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboComponent, selectors: [["po-combo"]], contentQueries: function PoComboComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
@@ -18833,12 +19608,14 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
18833
19608
|
i0.ɵɵviewQuery(_c1$o, 5, ElementRef);
|
|
18834
19609
|
i0.ɵɵviewQuery(_c2$9, 7, ElementRef);
|
|
18835
19610
|
i0.ɵɵviewQuery(_c3$5, 7, ElementRef);
|
|
19611
|
+
i0.ɵɵviewQuery(_c4$3, 5, ElementRef);
|
|
18836
19612
|
} if (rf & 2) {
|
|
18837
19613
|
let _t;
|
|
18838
19614
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerElement = _t.first);
|
|
18839
19615
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentElement = _t.first);
|
|
18840
19616
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
18841
19617
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
19618
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poComboBody = _t.first);
|
|
18842
19619
|
} }, features: [i0.ɵɵProvidersFeature([
|
|
18843
19620
|
PoComboFilterService,
|
|
18844
19621
|
PoControlPositionService,
|
|
@@ -18852,7 +19629,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
18852
19629
|
useExisting: forwardRef(() => PoComboComponent),
|
|
18853
19630
|
multi: true
|
|
18854
19631
|
}
|
|
18855
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
19632
|
+
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 22, vars: 24, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["autocomplete", "off", "type", "text", 1, "po-input", "po-combo-input", 3, "ngClass", "disabled", "placeholder", "required", "click", "keyup", "blur", "keyup.enter", "keydown"], ["inp", ""], [1, "po-field-icon-container-right"], [3, "p-element-ref", "p-change-event", 4, "ngIf"], [3, "click"], ["iconArrow", ""], [1, "po-combo-container", 3, "hidden"], ["containerElement", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [4, "ngIf"], ["normalLoadingTemplate", ""], ["infiniteLoadingTemplate", ""], ["visibleOptionsTemplate", ""], ["noDataTemplate", ""], [1, "po-field-icon-container-left"], [1, "po-field-icon", 3, "p-icon"], [3, "p-element-ref", "p-change-event"], [1, "po-combo-container-loading"], [1, "po-combo-container-content"], ["contentElement", "", "poComboBody", ""], [3, "po-combo-item-selected", "click", 4, "ngFor", "ngForOf"], ["defaultOptionTemplate", ""], ["optionTemplate", ""], ["class", "po-combo-item-title", 4, "ngIf", "ngIfElse"], ["optionLink", ""], [1, "po-combo-item-title"], [1, "po-combo-item"], [2, "pointer-events", "none", 3, "innerHTML"], ["optionsGroupTemplate", ""], ["defaultOptionsTemplate", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "po-combo-container-no-data"], [1, "po-combo-no-data", "po-text-center"]], template: function PoComboComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18856
19633
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
18857
19634
|
i0.ɵɵtemplate(2, PoComboComponent_div_2_Template, 2, 3, "div", 2);
|
|
18858
19635
|
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
@@ -18865,17 +19642,18 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
18865
19642
|
i0.ɵɵelementEnd()()();
|
|
18866
19643
|
i0.ɵɵelementStart(9, "div", 9, 10);
|
|
18867
19644
|
i0.ɵɵtemplate(11, PoComboComponent_ng_container_11_Template, 1, 0, "ng-container", 11);
|
|
19645
|
+
i0.ɵɵtemplate(12, PoComboComponent_div_12_Template, 2, 3, "div", 12);
|
|
18868
19646
|
i0.ɵɵelementEnd();
|
|
18869
|
-
i0.ɵɵelement(
|
|
19647
|
+
i0.ɵɵelement(13, "po-field-container-bottom");
|
|
18870
19648
|
i0.ɵɵelementEnd();
|
|
18871
|
-
i0.ɵɵtemplate(
|
|
18872
|
-
i0.ɵɵtemplate(
|
|
18873
|
-
i0.ɵɵtemplate(
|
|
18874
|
-
i0.ɵɵtemplate(
|
|
19649
|
+
i0.ɵɵtemplate(14, PoComboComponent_ng_template_14_Template, 1, 0, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
19650
|
+
i0.ɵɵtemplate(16, PoComboComponent_ng_template_16_Template, 1, 0, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
19651
|
+
i0.ɵɵtemplate(18, PoComboComponent_ng_template_18_Template, 4, 1, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
|
|
19652
|
+
i0.ɵɵtemplate(20, PoComboComponent_ng_template_20_Template, 3, 1, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
18875
19653
|
} if (rf & 2) {
|
|
18876
19654
|
const _r1 = i0.ɵɵreference(4);
|
|
18877
|
-
const
|
|
18878
|
-
const
|
|
19655
|
+
const _r11 = i0.ɵɵreference(19);
|
|
19656
|
+
const _r13 = i0.ɵɵreference(21);
|
|
18879
19657
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help)("p-optional", !ctx.required && ctx.optional);
|
|
18880
19658
|
i0.ɵɵadvance(2);
|
|
18881
19659
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
@@ -18891,8 +19669,10 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
18891
19669
|
i0.ɵɵadvance(2);
|
|
18892
19670
|
i0.ɵɵproperty("hidden", !ctx.comboOpen && !ctx.isServerSearching);
|
|
18893
19671
|
i0.ɵɵadvance(2);
|
|
18894
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
18895
|
-
|
|
19672
|
+
i0.ɵɵproperty("ngIf", ctx.visibleOptions.length)("ngIfThen", _r11)("ngIfElse", _r13);
|
|
19673
|
+
i0.ɵɵadvance(1);
|
|
19674
|
+
i0.ɵɵproperty("ngIf", ctx.isServerSearching);
|
|
19675
|
+
} }, directives: [PoFieldContainerComponent, i1.NgIf, PoIconComponent, i1.NgClass, PoCleanComponent, PoFieldContainerBottomComponent, PoLoadingComponent, PoLoadingOverlayComponent, i1.NgForOf, i1.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
18896
19676
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboComponent, [{
|
|
18897
19677
|
type: Component,
|
|
18898
19678
|
args: [{ selector: 'po-combo', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -18908,7 +19688,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
18908
19688
|
useExisting: forwardRef(() => PoComboComponent),
|
|
18909
19689
|
multi: true
|
|
18910
19690
|
}
|
|
18911
|
-
], 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=\"
|
|
19691
|
+
], 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\">{{ option.label }}</label>\n <ng-template #optionLink>\n <a class=\"po-combo-item\">\n <span style=\"pointer-events: none\" [innerHTML]=\"getLabelFormatted(option?.label)\"></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" }]
|
|
18912
19692
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i3$1.DomSanitizer }, { type: PoLanguageService }]; }, { comboOptionTemplate: [{
|
|
18913
19693
|
type: ContentChild,
|
|
18914
19694
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -18924,6 +19704,9 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
18924
19704
|
}], inputEl: [{
|
|
18925
19705
|
type: ViewChild,
|
|
18926
19706
|
args: ['inp', { read: ElementRef, static: true }]
|
|
19707
|
+
}], poComboBody: [{
|
|
19708
|
+
type: ViewChild,
|
|
19709
|
+
args: ['poComboBody', { read: ElementRef }]
|
|
18927
19710
|
}] }); })();
|
|
18928
19711
|
|
|
18929
19712
|
const poDatepickerRangeLiteralsDefault = {
|
|
@@ -20559,16 +21342,27 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
20559
21342
|
this.controlChangeEmitter();
|
|
20560
21343
|
}
|
|
20561
21344
|
extraValidation(abstractControl) {
|
|
21345
|
+
const value = abstractControl.value;
|
|
21346
|
+
const thousandValue = Math.trunc(value);
|
|
20562
21347
|
// Verifica se já possui algum error pattern padrão.
|
|
20563
21348
|
this.errorPattern = this.errorPattern !== 'Valor Inválido' ? this.errorPattern : '';
|
|
20564
|
-
if (minFailed(this.min,
|
|
21349
|
+
if (minFailed(this.min, value)) {
|
|
20565
21350
|
return {
|
|
20566
21351
|
min: {
|
|
20567
21352
|
valid: false
|
|
20568
21353
|
}
|
|
20569
21354
|
};
|
|
20570
21355
|
}
|
|
20571
|
-
if (maxFailed(this.max,
|
|
21356
|
+
if (maxFailed(this.max, value)) {
|
|
21357
|
+
return {
|
|
21358
|
+
max: {
|
|
21359
|
+
valid: false
|
|
21360
|
+
}
|
|
21361
|
+
};
|
|
21362
|
+
}
|
|
21363
|
+
if ((maxlengpoailed(this.thousandMaxlength, thousandValue) &&
|
|
21364
|
+
this.thousandMaxlength < poDecimalDefaultThousandMaxlength) ||
|
|
21365
|
+
maxlengpoailed(poDecimalTotalLengthLimit, value)) {
|
|
20572
21366
|
return {
|
|
20573
21367
|
max: {
|
|
20574
21368
|
valid: false
|
|
@@ -28138,7 +28932,7 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
28138
28932
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toolbarElement = _t.first);
|
|
28139
28933
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextImageModal = _t.first);
|
|
28140
28934
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextLinkModal = _t.first);
|
|
28141
|
-
} }, inputs: { readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 17, vars:
|
|
28935
|
+
} }, inputs: { readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 17, vars: 11, consts: [[1, "po-rich-text-toolbar"], ["toolbarElement", ""], [1, "po-rich-text-toolbar-button-align"], ["p-toggle", "multiple", 3, "p-small", "p-buttons"], ["class", "po-rich-text-toolbar-button-align", 4, "ngIf"], ["p-toggle", "single", 3, "p-small", "p-buttons"], [3, "p-small", "p-buttons"], [3, "p-command"], ["richTextImageModal", ""], [3, "p-command", "p-link-editing"], ["richTextLinkModal", ""], [1, "po-rich-text-toolbar-color-picker-container"], [1, "po-button", "po-button-default", "po-button-sm", "po-text-ellipsis", "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", ""]], template: function PoRichTextToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28142
28936
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
28143
28937
|
i0.ɵɵelement(3, "po-button-group", 3);
|
|
28144
28938
|
i0.ɵɵelementEnd();
|
|
@@ -28163,21 +28957,21 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
28163
28957
|
i0.ɵɵelementEnd();
|
|
28164
28958
|
} if (rf & 2) {
|
|
28165
28959
|
i0.ɵɵadvance(3);
|
|
28166
|
-
i0.ɵɵproperty("p-buttons", ctx.formatButtons);
|
|
28960
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.formatButtons);
|
|
28167
28961
|
i0.ɵɵadvance(1);
|
|
28168
28962
|
i0.ɵɵproperty("ngIf", !ctx.isInternetExplorer);
|
|
28169
28963
|
i0.ɵɵadvance(2);
|
|
28170
|
-
i0.ɵɵproperty("p-buttons", ctx.alignButtons);
|
|
28964
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.alignButtons);
|
|
28171
28965
|
i0.ɵɵadvance(2);
|
|
28172
|
-
i0.ɵɵproperty("p-buttons", ctx.listButtons);
|
|
28966
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.listButtons);
|
|
28173
28967
|
i0.ɵɵadvance(2);
|
|
28174
|
-
i0.ɵɵproperty("p-buttons", ctx.linkButtons);
|
|
28968
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.linkButtons);
|
|
28175
28969
|
i0.ɵɵadvance(2);
|
|
28176
|
-
i0.ɵɵproperty("p-buttons", ctx.mediaButtons);
|
|
28970
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.mediaButtons);
|
|
28177
28971
|
} }, directives: [PoButtonGroupComponent, i1.NgIf, PoTooltipDirective, PoRichTextImageModalComponent, PoRichTextLinkModalComponent], encapsulation: 2 });
|
|
28178
28972
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextToolbarComponent, [{
|
|
28179
28973
|
type: Component,
|
|
28180
|
-
args: [{ selector: 'po-rich-text-toolbar', template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n <div class=\"po-rich-text-toolbar-button-align\">\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\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n class=\"po-button po-text-ellipsis 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 class=\"po-rich-text-toolbar-button-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\">\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\">\n <po-button-group [p-buttons]=\"linkButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\">\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" }]
|
|
28974
|
+
args: [{ selector: 'po-rich-text-toolbar', template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n <div class=\"po-rich-text-toolbar-button-align\">\n <po-button-group p-toggle=\"multiple\" [p-small]=\"true\" [p-buttons]=\"formatButtons\"> </po-button-group>\n </div>\n\n <div *ngIf=\"!isInternetExplorer\" class=\"po-rich-text-toolbar-button-align\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n class=\"po-button po-button-default po-button-sm po-text-ellipsis 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 class=\"po-rich-text-toolbar-button-align\">\n <po-button-group p-toggle=\"single\" [p-small]=\"true\" [p-buttons]=\"alignButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\">\n <po-button-group p-toggle=\"single\" [p-small]=\"true\" [p-buttons]=\"listButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\">\n <po-button-group [p-small]=\"true\" [p-buttons]=\"linkButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\">\n <po-button-group [p-small]=\"true\" [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" }]
|
|
28181
28975
|
}], function () { return [{ type: PoLanguageService }]; }, { colorPickerInput: [{
|
|
28182
28976
|
type: ViewChild,
|
|
28183
28977
|
args: ['colorPickerInput', { read: ElementRef }]
|