@po-ui/ng-components 6.8.0 → 6.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +54 -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 +1516 -601
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +1347 -565
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- 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.1.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.8.0.tgz +0 -0
|
@@ -2702,7 +2702,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2702
2702
|
let _t;
|
|
2703
2703
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
2704
2704
|
}
|
|
2705
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2705
|
+
}, 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) {
|
|
2706
2706
|
if (rf & 1) {
|
|
2707
2707
|
i0.ɵɵelementStart(0, "button", 0, 1);
|
|
2708
2708
|
i0.ɵɵlistener("click", function PoButtonComponent_Template_button_click_0_listener() { return ctx.onClick(); });
|
|
@@ -2712,7 +2712,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2712
2712
|
i0.ɵɵelementEnd();
|
|
2713
2713
|
}
|
|
2714
2714
|
if (rf & 2) {
|
|
2715
|
-
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");
|
|
2715
|
+
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");
|
|
2716
2716
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.loading);
|
|
2717
2717
|
i0.ɵɵadvance(2);
|
|
2718
2718
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
@@ -2725,7 +2725,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2725
2725
|
(function () {
|
|
2726
2726
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonComponent, [{
|
|
2727
2727
|
type: Component,
|
|
2728
|
-
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" }]
|
|
2728
|
+
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" }]
|
|
2729
2729
|
}], null, { buttonElement: [{
|
|
2730
2730
|
type: ViewChild,
|
|
2731
2731
|
args: ['button', { static: true }]
|
|
@@ -2775,7 +2775,7 @@ const PO_TOOLTIP_POSITION_DEFAULT = 'bottom';
|
|
|
2775
2775
|
* @description
|
|
2776
2776
|
*
|
|
2777
2777
|
* A diretiva po-tooltip deve ser utilizada para oferecer informações adicionais quando os usuários
|
|
2778
|
-
* passam o mouse sobre o elemento alvo ao qual ela está atribuída.
|
|
2778
|
+
* passam o mouse ou realizam o foco sobre o elemento alvo ao qual ela está atribuída.
|
|
2779
2779
|
*
|
|
2780
2780
|
* O conteúdo é formado por um pequeno texto que deve contribuir para uma tomada de decisão ou
|
|
2781
2781
|
* orientação do usuário. A ativação dele pode estar em qualquer componente ou tag HTML.
|
|
@@ -3252,6 +3252,7 @@ PoTooltipControlPositionService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({
|
|
|
3252
3252
|
}], null, null);
|
|
3253
3253
|
})();
|
|
3254
3254
|
|
|
3255
|
+
const nativeElements = ['input', 'button'];
|
|
3255
3256
|
/**
|
|
3256
3257
|
* @docsExtends PoTooltipBaseDirective
|
|
3257
3258
|
*
|
|
@@ -3291,6 +3292,16 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
3291
3292
|
this.removeTooltipAction();
|
|
3292
3293
|
}
|
|
3293
3294
|
}
|
|
3295
|
+
onFocusOut() {
|
|
3296
|
+
if (!this.displayTooltip) {
|
|
3297
|
+
this.removeTooltipAction();
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
onFocusIn() {
|
|
3301
|
+
if (!this.displayTooltip) {
|
|
3302
|
+
this.addTooltipAction();
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3294
3305
|
ngOnInit() {
|
|
3295
3306
|
this.initScrollEventListenerFunction();
|
|
3296
3307
|
}
|
|
@@ -3329,6 +3340,7 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
3329
3340
|
createTooltip() {
|
|
3330
3341
|
this.tooltipContent = this.renderer.createElement('div');
|
|
3331
3342
|
this.renderer.addClass(this.tooltipContent, 'po-tooltip');
|
|
3343
|
+
this.insertAriaLabelTooltip();
|
|
3332
3344
|
this.divArrow = this.renderer.createElement('div');
|
|
3333
3345
|
this.renderer.addClass(this.divArrow, 'po-tooltip-arrow');
|
|
3334
3346
|
this.divContent = this.renderer.createElement('div');
|
|
@@ -3379,11 +3391,23 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
3379
3391
|
this.renderer.appendChild(this.divContent, this.textContent);
|
|
3380
3392
|
}
|
|
3381
3393
|
}
|
|
3394
|
+
insertAriaLabelTooltip() {
|
|
3395
|
+
const nativeTextContent = this.elementRef.nativeElement.textContent;
|
|
3396
|
+
let targetElement = '';
|
|
3397
|
+
nativeElements.forEach(el => {
|
|
3398
|
+
if (this.elementRef.nativeElement.getElementsByTagName(el)[0] !== undefined) {
|
|
3399
|
+
targetElement = el;
|
|
3400
|
+
}
|
|
3401
|
+
});
|
|
3402
|
+
if (this.elementRef.nativeElement.getElementsByTagName(targetElement)[0] && this.tooltip) {
|
|
3403
|
+
this.renderer.setAttribute(this.elementRef.nativeElement.getElementsByTagName(targetElement)[0], 'aria-label', nativeTextContent + ' ' + this.tooltip);
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3382
3406
|
}
|
|
3383
3407
|
PoTooltipDirective.ɵfac = function PoTooltipDirective_Factory(t) { return new (t || PoTooltipDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoTooltipControlPositionService)); };
|
|
3384
3408
|
PoTooltipDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTooltipDirective, selectors: [["", "p-tooltip", ""]], hostBindings: function PoTooltipDirective_HostBindings(rf, ctx) {
|
|
3385
3409
|
if (rf & 1) {
|
|
3386
|
-
i0.ɵɵlistener("mouseenter", function PoTooltipDirective_mouseenter_HostBindingHandler() { return ctx.onMouseEnter(); })("mouseleave", function PoTooltipDirective_mouseleave_HostBindingHandler() { return ctx.onMouseLeave(); });
|
|
3410
|
+
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(); });
|
|
3387
3411
|
}
|
|
3388
3412
|
}, features: [i0.ɵɵProvidersFeature([PoTooltipControlPositionService]), i0.ɵɵInheritDefinitionFeature] });
|
|
3389
3413
|
(function () {
|
|
@@ -3399,6 +3423,12 @@ PoTooltipDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoToolti
|
|
|
3399
3423
|
}], onMouseLeave: [{
|
|
3400
3424
|
type: HostListener,
|
|
3401
3425
|
args: ['mouseleave']
|
|
3426
|
+
}], onFocusOut: [{
|
|
3427
|
+
type: HostListener,
|
|
3428
|
+
args: ['focusout']
|
|
3429
|
+
}], onFocusIn: [{
|
|
3430
|
+
type: HostListener,
|
|
3431
|
+
args: ['focusin']
|
|
3402
3432
|
}] });
|
|
3403
3433
|
})();
|
|
3404
3434
|
|
|
@@ -14357,6 +14387,7 @@ class PoTableColumnManagerComponent {
|
|
|
14357
14387
|
// Evento disparado ao fechar o popover do gerenciador de colunas após alterar as colunas visíveis.
|
|
14358
14388
|
// O po-table envia como parâmetro um array de string com as colunas visíveis atualizadas. Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14359
14389
|
this.changeVisibleColumns = new EventEmitter();
|
|
14390
|
+
this.initialColumns = new EventEmitter();
|
|
14360
14391
|
this.columnsOptions = [];
|
|
14361
14392
|
this.visibleColumns = [];
|
|
14362
14393
|
this._maxColumns = PoTableColumnManagerMaxColumnsDefault;
|
|
@@ -14396,6 +14427,7 @@ class PoTableColumnManagerComponent {
|
|
|
14396
14427
|
restore() {
|
|
14397
14428
|
this.restoreDefaultEvent = true;
|
|
14398
14429
|
const defaultColumns = this.getVisibleColumns(this.defaultColumns);
|
|
14430
|
+
this.initialColumns.emit(this.getVisibleColumns(this.colunsDefault));
|
|
14399
14431
|
this.checkChanges(defaultColumns, this.restoreDefaultEvent);
|
|
14400
14432
|
}
|
|
14401
14433
|
verifyToEmitChange(event) {
|
|
@@ -14563,7 +14595,7 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14563
14595
|
let _t;
|
|
14564
14596
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
14565
14597
|
}
|
|
14566
|
-
}, 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) {
|
|
14598
|
+
}, 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) {
|
|
14567
14599
|
if (rf & 1) {
|
|
14568
14600
|
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template, 11, 5, "po-popover", 0);
|
|
14569
14601
|
}
|
|
@@ -14584,6 +14616,9 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14584
14616
|
}], target: [{
|
|
14585
14617
|
type: Input,
|
|
14586
14618
|
args: ['p-target']
|
|
14619
|
+
}], colunsDefault: [{
|
|
14620
|
+
type: Input,
|
|
14621
|
+
args: ['p-columns-default']
|
|
14587
14622
|
}], lastVisibleColumnsSelected: [{
|
|
14588
14623
|
type: Input,
|
|
14589
14624
|
args: ['p-last-visible-columns-selected']
|
|
@@ -14593,6 +14628,9 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14593
14628
|
}], changeVisibleColumns: [{
|
|
14594
14629
|
type: Output,
|
|
14595
14630
|
args: ['p-change-visible-columns']
|
|
14631
|
+
}], initialColumns: [{
|
|
14632
|
+
type: Output,
|
|
14633
|
+
args: ['p-initial-columns']
|
|
14596
14634
|
}], maxColumns: [{
|
|
14597
14635
|
type: Input,
|
|
14598
14636
|
args: ['p-max-columns']
|
|
@@ -14895,6 +14933,16 @@ class PoTableBaseComponent {
|
|
|
14895
14933
|
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14896
14934
|
*/
|
|
14897
14935
|
this.changeVisibleColumns = new EventEmitter();
|
|
14936
|
+
/**
|
|
14937
|
+
* @optional
|
|
14938
|
+
*
|
|
14939
|
+
* @description
|
|
14940
|
+
* Evento disparado ao clicar no botão de restaurar padrão no gerenciador de colunas.
|
|
14941
|
+
*
|
|
14942
|
+
* O componente envia como parâmetro um array de string com as colunas configuradas inicialmente.
|
|
14943
|
+
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14944
|
+
*/
|
|
14945
|
+
this.columnRestoreManager = new EventEmitter();
|
|
14898
14946
|
this.hasMainColumns = false;
|
|
14899
14947
|
this.mainColumns = [];
|
|
14900
14948
|
this.selectAll = false;
|
|
@@ -14944,6 +14992,9 @@ class PoTableBaseComponent {
|
|
|
14944
14992
|
*
|
|
14945
14993
|
*/
|
|
14946
14994
|
set columns(columns) {
|
|
14995
|
+
if (this.initialColumns === undefined) {
|
|
14996
|
+
this.initialColumns = columns;
|
|
14997
|
+
}
|
|
14947
14998
|
this._columns = columns || [];
|
|
14948
14999
|
if (this._columns.length) {
|
|
14949
15000
|
this.setColumnLink();
|
|
@@ -15438,7 +15489,7 @@ class PoTableBaseComponent {
|
|
|
15438
15489
|
}
|
|
15439
15490
|
}
|
|
15440
15491
|
PoTableBaseComponent.ɵfac = function PoTableBaseComponent_Factory(t) { return new (t || PoTableBaseComponent)(i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoTableService)); };
|
|
15441
|
-
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] });
|
|
15492
|
+
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] });
|
|
15442
15493
|
__decorate([
|
|
15443
15494
|
InputBoolean()
|
|
15444
15495
|
], PoTableBaseComponent.prototype, "hideTextOverflow", void 0);
|
|
@@ -15532,6 +15583,9 @@ __decorate([
|
|
|
15532
15583
|
}], changeVisibleColumns: [{
|
|
15533
15584
|
type: Output,
|
|
15534
15585
|
args: ['p-change-visible-columns']
|
|
15586
|
+
}], columnRestoreManager: [{
|
|
15587
|
+
type: Output,
|
|
15588
|
+
args: ['p-restore-column-manager']
|
|
15535
15589
|
}], items: [{
|
|
15536
15590
|
type: Input,
|
|
15537
15591
|
args: ['p-items']
|
|
@@ -16423,10 +16477,11 @@ const _c1$p = ["popup"];
|
|
|
16423
16477
|
const _c2$a = ["tableFooter"];
|
|
16424
16478
|
const _c3$6 = ["tableWrapper"];
|
|
16425
16479
|
const _c4$4 = ["poTableTbody"];
|
|
16426
|
-
const _c5$2 = ["
|
|
16427
|
-
const _c6$
|
|
16428
|
-
const _c7$1 = ["
|
|
16429
|
-
const _c8$1 = ["
|
|
16480
|
+
const _c5$2 = ["poTableThead"];
|
|
16481
|
+
const _c6$2 = ["columnManagerTarget"];
|
|
16482
|
+
const _c7$1 = ["actionsIconElement"];
|
|
16483
|
+
const _c8$1 = ["actionsElement"];
|
|
16484
|
+
const _c9 = ["headersTable"];
|
|
16430
16485
|
function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) {
|
|
16431
16486
|
if (rf & 1) {
|
|
16432
16487
|
i0.ɵɵelementContainer(0);
|
|
@@ -16434,8 +16489,8 @@ function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) {
|
|
|
16434
16489
|
}
|
|
16435
16490
|
function PoTableComponent_po_container_0_Template(rf, ctx) {
|
|
16436
16491
|
if (rf & 1) {
|
|
16437
|
-
i0.ɵɵelementStart(0, "po-container",
|
|
16438
|
-
i0.ɵɵtemplate(1, PoTableComponent_po_container_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
16492
|
+
i0.ɵɵelementStart(0, "po-container", 16);
|
|
16493
|
+
i0.ɵɵtemplate(1, PoTableComponent_po_container_0_ng_container_1_Template, 1, 0, "ng-container", 17);
|
|
16439
16494
|
i0.ɵɵelementEnd();
|
|
16440
16495
|
}
|
|
16441
16496
|
if (rf & 2) {
|
|
@@ -16448,35 +16503,46 @@ function PoTableComponent_po_container_0_Template(rf, ctx) {
|
|
|
16448
16503
|
}
|
|
16449
16504
|
function PoTableComponent_ng_template_1_div_1_Template(rf, ctx) {
|
|
16450
16505
|
if (rf & 1) {
|
|
16451
|
-
i0.ɵɵelementStart(0, "div",
|
|
16452
|
-
i0.ɵɵelement(1, "po-loading",
|
|
16506
|
+
i0.ɵɵelementStart(0, "div", 25);
|
|
16507
|
+
i0.ɵɵelement(1, "po-loading", 26);
|
|
16453
16508
|
i0.ɵɵelementEnd();
|
|
16454
16509
|
}
|
|
16455
16510
|
if (rf & 2) {
|
|
16456
|
-
const
|
|
16511
|
+
const ctx_r27 = i0.ɵɵnextContext(2);
|
|
16457
16512
|
i0.ɵɵadvance(1);
|
|
16458
|
-
i0.ɵɵproperty("p-text",
|
|
16513
|
+
i0.ɵɵproperty("p-text", ctx_r27.literals.loadingData);
|
|
16514
|
+
}
|
|
16515
|
+
}
|
|
16516
|
+
function PoTableComponent_ng_template_1_div_5_ng_container_3_Template(rf, ctx) {
|
|
16517
|
+
if (rf & 1) {
|
|
16518
|
+
i0.ɵɵelementContainer(0);
|
|
16459
16519
|
}
|
|
16460
16520
|
}
|
|
16461
|
-
function
|
|
16521
|
+
function PoTableComponent_ng_template_1_div_5_ng_container_6_Template(rf, ctx) {
|
|
16462
16522
|
if (rf & 1) {
|
|
16463
16523
|
i0.ɵɵelementContainer(0);
|
|
16464
16524
|
}
|
|
16465
16525
|
}
|
|
16466
16526
|
function PoTableComponent_ng_template_1_div_5_Template(rf, ctx) {
|
|
16467
16527
|
if (rf & 1) {
|
|
16468
|
-
i0.ɵɵ
|
|
16469
|
-
i0.ɵɵ
|
|
16470
|
-
i0.ɵɵ
|
|
16471
|
-
i0.ɵɵ
|
|
16528
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
16529
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "div", 28, 29);
|
|
16530
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_1_div_5_ng_container_3_Template, 1, 0, "ng-container", 17);
|
|
16531
|
+
i0.ɵɵelementEnd();
|
|
16532
|
+
i0.ɵɵelementStart(4, "div", 30, 31);
|
|
16533
|
+
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(); });
|
|
16534
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_5_ng_container_6_Template, 1, 0, "ng-container", 17);
|
|
16472
16535
|
i0.ɵɵelementEnd()();
|
|
16473
16536
|
}
|
|
16474
16537
|
if (rf & 2) {
|
|
16475
|
-
const
|
|
16538
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
16476
16539
|
const _r4 = i0.ɵɵreference(5);
|
|
16477
|
-
i0.ɵɵ
|
|
16478
|
-
i0.ɵɵ
|
|
16540
|
+
const _r6 = i0.ɵɵreference(7);
|
|
16541
|
+
i0.ɵɵstyleProp("height", ctx_r29.heightTableContainer, "px");
|
|
16542
|
+
i0.ɵɵadvance(3);
|
|
16479
16543
|
i0.ɵɵproperty("ngTemplateOutlet", _r4);
|
|
16544
|
+
i0.ɵɵadvance(3);
|
|
16545
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6);
|
|
16480
16546
|
}
|
|
16481
16547
|
}
|
|
16482
16548
|
function PoTableComponent_ng_template_1_div_6_ng_container_1_Template(rf, ctx) {
|
|
@@ -16487,50 +16553,50 @@ function PoTableComponent_ng_template_1_div_6_ng_container_1_Template(rf, ctx) {
|
|
|
16487
16553
|
function PoTableComponent_ng_template_1_div_6_Template(rf, ctx) {
|
|
16488
16554
|
if (rf & 1) {
|
|
16489
16555
|
i0.ɵɵelementStart(0, "div");
|
|
16490
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_6_ng_container_1_Template, 1, 0, "ng-container",
|
|
16556
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_6_ng_container_1_Template, 1, 0, "ng-container", 17);
|
|
16491
16557
|
i0.ɵɵelementEnd();
|
|
16492
16558
|
}
|
|
16493
16559
|
if (rf & 2) {
|
|
16494
16560
|
i0.ɵɵnextContext(2);
|
|
16495
|
-
const
|
|
16561
|
+
const _r8 = i0.ɵɵreference(9);
|
|
16496
16562
|
i0.ɵɵadvance(1);
|
|
16497
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16563
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r8);
|
|
16498
16564
|
}
|
|
16499
16565
|
}
|
|
16500
16566
|
function PoTableComponent_ng_template_1_div_7_ng_container_1_Template(rf, ctx) {
|
|
16501
16567
|
if (rf & 1) {
|
|
16502
16568
|
i0.ɵɵelementContainerStart(0);
|
|
16503
|
-
i0.ɵɵelement(1, "po-table-subtitle-footer",
|
|
16569
|
+
i0.ɵɵelement(1, "po-table-subtitle-footer", 34);
|
|
16504
16570
|
i0.ɵɵelementContainerEnd();
|
|
16505
16571
|
}
|
|
16506
16572
|
if (rf & 2) {
|
|
16507
|
-
const
|
|
16508
|
-
const
|
|
16573
|
+
const column_r40 = ctx.$implicit;
|
|
16574
|
+
const ctx_r39 = i0.ɵɵnextContext(3);
|
|
16509
16575
|
i0.ɵɵadvance(1);
|
|
16510
|
-
i0.ɵɵproperty("p-literals",
|
|
16576
|
+
i0.ɵɵproperty("p-literals", ctx_r39.literals)("p-subtitles", column_r40.subtitles);
|
|
16511
16577
|
}
|
|
16512
16578
|
}
|
|
16513
16579
|
function PoTableComponent_ng_template_1_div_7_Template(rf, ctx) {
|
|
16514
16580
|
if (rf & 1) {
|
|
16515
|
-
i0.ɵɵelementStart(0, "div",
|
|
16516
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_7_ng_container_1_Template, 2, 2, "ng-container",
|
|
16581
|
+
i0.ɵɵelementStart(0, "div", 32);
|
|
16582
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_7_ng_container_1_Template, 2, 2, "ng-container", 33);
|
|
16517
16583
|
i0.ɵɵelementEnd();
|
|
16518
16584
|
}
|
|
16519
16585
|
if (rf & 2) {
|
|
16520
|
-
const
|
|
16586
|
+
const ctx_r31 = i0.ɵɵnextContext(2);
|
|
16521
16587
|
i0.ɵɵadvance(1);
|
|
16522
|
-
i0.ɵɵproperty("ngForOf",
|
|
16588
|
+
i0.ɵɵproperty("ngForOf", ctx_r31.subtitleColumns)("ngForTrackBy", ctx_r31.trackBy);
|
|
16523
16589
|
}
|
|
16524
16590
|
}
|
|
16525
16591
|
function PoTableComponent_ng_template_1_Template(rf, ctx) {
|
|
16526
16592
|
if (rf & 1) {
|
|
16527
16593
|
i0.ɵɵelementStart(0, "div");
|
|
16528
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_1_Template, 2, 1, "div",
|
|
16529
|
-
i0.ɵɵelementStart(2, "div",
|
|
16530
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_1_div_5_Template,
|
|
16531
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_6_Template, 2, 1, "div",
|
|
16594
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_1_Template, 2, 1, "div", 18);
|
|
16595
|
+
i0.ɵɵelementStart(2, "div", 19)(3, "div", 20, 21);
|
|
16596
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_1_div_5_Template, 7, 4, "div", 22);
|
|
16597
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_6_Template, 2, 1, "div", 23);
|
|
16532
16598
|
i0.ɵɵelementEnd()()();
|
|
16533
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_1_div_7_Template, 2, 2, "div",
|
|
16599
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_1_div_7_Template, 2, 2, "div", 24);
|
|
16534
16600
|
}
|
|
16535
16601
|
if (rf & 2) {
|
|
16536
16602
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -16550,9 +16616,9 @@ function PoTableComponent_ng_template_1_Template(rf, ctx) {
|
|
|
16550
16616
|
}
|
|
16551
16617
|
function PoTableComponent_div_3_Template(rf, ctx) {
|
|
16552
16618
|
if (rf & 1) {
|
|
16553
|
-
const
|
|
16554
|
-
i0.ɵɵelementStart(0, "div",
|
|
16555
|
-
i0.ɵɵlistener("p-click", function PoTableComponent_div_3_Template_po_button_p_click_2_listener() { i0.ɵɵrestoreView(
|
|
16619
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
16620
|
+
i0.ɵɵelementStart(0, "div", 35, 36)(2, "po-button", 37);
|
|
16621
|
+
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(); });
|
|
16556
16622
|
i0.ɵɵelementEnd()();
|
|
16557
16623
|
}
|
|
16558
16624
|
if (rf & 2) {
|
|
@@ -16564,41 +16630,41 @@ function PoTableComponent_div_3_Template(rf, ctx) {
|
|
|
16564
16630
|
}
|
|
16565
16631
|
function PoTableComponent_ng_template_4_th_3_input_2_Template(rf, ctx) {
|
|
16566
16632
|
if (rf & 1) {
|
|
16567
|
-
i0.ɵɵelement(0, "input",
|
|
16633
|
+
i0.ɵɵelement(0, "input", 49);
|
|
16568
16634
|
}
|
|
16569
16635
|
if (rf & 2) {
|
|
16570
|
-
const
|
|
16571
|
-
i0.ɵɵclassProp("po-table-checkbox-checked",
|
|
16636
|
+
const ctx_r52 = i0.ɵɵnextContext(3);
|
|
16637
|
+
i0.ɵɵclassProp("po-table-checkbox-checked", ctx_r52.selectAll)("po-table-checkbox-indeterminate", ctx_r52.selectAll === null);
|
|
16572
16638
|
}
|
|
16573
16639
|
}
|
|
16574
16640
|
function PoTableComponent_ng_template_4_th_3_label_3_Template(rf, ctx) {
|
|
16575
16641
|
if (rf & 1) {
|
|
16576
|
-
const
|
|
16577
|
-
i0.ɵɵelementStart(0, "label",
|
|
16578
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_3_label_3_Template_label_click_0_listener() { i0.ɵɵrestoreView(
|
|
16642
|
+
const _r55 = i0.ɵɵgetCurrentView();
|
|
16643
|
+
i0.ɵɵelementStart(0, "label", 50);
|
|
16644
|
+
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(); });
|
|
16579
16645
|
i0.ɵɵelementEnd();
|
|
16580
16646
|
}
|
|
16581
16647
|
}
|
|
16582
16648
|
function PoTableComponent_ng_template_4_th_3_Template(rf, ctx) {
|
|
16583
16649
|
if (rf & 1) {
|
|
16584
|
-
i0.ɵɵelementStart(0, "th",
|
|
16585
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_3_input_2_Template, 1, 4, "input",
|
|
16586
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_label_3_Template, 1, 0, "label",
|
|
16650
|
+
i0.ɵɵelementStart(0, "th", 46)(1, "div");
|
|
16651
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_3_input_2_Template, 1, 4, "input", 47);
|
|
16652
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_label_3_Template, 1, 0, "label", 48);
|
|
16587
16653
|
i0.ɵɵelementEnd()();
|
|
16588
16654
|
}
|
|
16589
16655
|
if (rf & 2) {
|
|
16590
|
-
const
|
|
16656
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
16591
16657
|
i0.ɵɵadvance(1);
|
|
16592
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
16658
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r44.height);
|
|
16593
16659
|
i0.ɵɵadvance(1);
|
|
16594
|
-
i0.ɵɵproperty("ngIf", !
|
|
16660
|
+
i0.ɵɵproperty("ngIf", !ctx_r44.hideSelectAll);
|
|
16595
16661
|
i0.ɵɵadvance(1);
|
|
16596
|
-
i0.ɵɵproperty("ngIf", !
|
|
16662
|
+
i0.ɵɵproperty("ngIf", !ctx_r44.hideSelectAll);
|
|
16597
16663
|
}
|
|
16598
16664
|
}
|
|
16599
16665
|
function PoTableComponent_ng_template_4_th_4_Template(rf, ctx) {
|
|
16600
16666
|
if (rf & 1) {
|
|
16601
|
-
i0.ɵɵelement(0, "th",
|
|
16667
|
+
i0.ɵɵelement(0, "th", 51);
|
|
16602
16668
|
}
|
|
16603
16669
|
}
|
|
16604
16670
|
function PoTableComponent_ng_template_4_th_5_Template(rf, ctx) {
|
|
@@ -16606,8 +16672,8 @@ function PoTableComponent_ng_template_4_th_5_Template(rf, ctx) {
|
|
|
16606
16672
|
i0.ɵɵelement(0, "th");
|
|
16607
16673
|
}
|
|
16608
16674
|
if (rf & 2) {
|
|
16609
|
-
const
|
|
16610
|
-
i0.ɵɵclassProp("po-table-header-master-detail", !
|
|
16675
|
+
const ctx_r46 = i0.ɵɵnextContext(2);
|
|
16676
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r46.isSingleAction)("po-table-header-single-action", ctx_r46.isSingleAction);
|
|
16611
16677
|
}
|
|
16612
16678
|
}
|
|
16613
16679
|
function PoTableComponent_ng_template_4_th_6_ng_container_2_Template(rf, ctx) {
|
|
@@ -16617,16 +16683,16 @@ function PoTableComponent_ng_template_4_th_6_ng_container_2_Template(rf, ctx) {
|
|
|
16617
16683
|
}
|
|
16618
16684
|
function PoTableComponent_ng_template_4_th_6_Template(rf, ctx) {
|
|
16619
16685
|
if (rf & 1) {
|
|
16620
|
-
i0.ɵɵelementStart(0, "th",
|
|
16621
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_6_ng_container_2_Template, 1, 0, "ng-container",
|
|
16686
|
+
i0.ɵɵelementStart(0, "th", 52, 53);
|
|
16687
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_6_ng_container_2_Template, 1, 0, "ng-container", 54);
|
|
16622
16688
|
i0.ɵɵelementEnd();
|
|
16623
16689
|
}
|
|
16624
16690
|
if (rf & 2) {
|
|
16625
|
-
const
|
|
16626
|
-
const
|
|
16627
|
-
const
|
|
16691
|
+
const ctx_r47 = i0.ɵɵnextContext(2);
|
|
16692
|
+
const _r19 = i0.ɵɵreference(21);
|
|
16693
|
+
const _r21 = i0.ɵɵreference(23);
|
|
16628
16694
|
i0.ɵɵadvance(2);
|
|
16629
|
-
i0.ɵɵproperty("ngIf",
|
|
16695
|
+
i0.ɵɵproperty("ngIf", ctx_r47.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
16630
16696
|
}
|
|
16631
16697
|
}
|
|
16632
16698
|
function PoTableComponent_ng_template_4_th_7_ng_container_3_Template(rf, ctx) {
|
|
@@ -16634,31 +16700,31 @@ function PoTableComponent_ng_template_4_th_7_ng_container_3_Template(rf, ctx) {
|
|
|
16634
16700
|
i0.ɵɵelementContainer(0);
|
|
16635
16701
|
}
|
|
16636
16702
|
}
|
|
16637
|
-
const
|
|
16703
|
+
const _c10 = function (a0) { return { $implicit: a0 }; };
|
|
16638
16704
|
function PoTableComponent_ng_template_4_th_7_Template(rf, ctx) {
|
|
16639
16705
|
if (rf & 1) {
|
|
16640
|
-
const
|
|
16641
|
-
i0.ɵɵelementStart(0, "th",
|
|
16642
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
16643
|
-
i0.ɵɵelementStart(2, "div",
|
|
16644
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_7_ng_container_3_Template, 1, 0, "ng-container",
|
|
16706
|
+
const _r63 = i0.ɵɵgetCurrentView();
|
|
16707
|
+
i0.ɵɵelementStart(0, "th", 55, 56);
|
|
16708
|
+
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); });
|
|
16709
|
+
i0.ɵɵelementStart(2, "div", 57);
|
|
16710
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_7_ng_container_3_Template, 1, 0, "ng-container", 58);
|
|
16645
16711
|
i0.ɵɵelementEnd()();
|
|
16646
16712
|
}
|
|
16647
16713
|
if (rf & 2) {
|
|
16648
|
-
const
|
|
16649
|
-
const
|
|
16650
|
-
const
|
|
16651
|
-
i0.ɵɵstyleProp("width",
|
|
16652
|
-
i0.ɵɵclassProp("po-clickable",
|
|
16714
|
+
const column_r58 = ctx.$implicit;
|
|
16715
|
+
const ctx_r48 = i0.ɵɵnextContext(2);
|
|
16716
|
+
const _r17 = i0.ɵɵreference(19);
|
|
16717
|
+
i0.ɵɵstyleProp("width", column_r58.width)("max-width", column_r58.width)("min-width", column_r58.width);
|
|
16718
|
+
i0.ɵɵclassProp("po-clickable", ctx_r48.sort && column_r58.sortable !== false || ctx_r48.hasService)("po-table-header-subtitle", column_r58.type === "subtitle");
|
|
16653
16719
|
i0.ɵɵadvance(2);
|
|
16654
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
16720
|
+
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");
|
|
16655
16721
|
i0.ɵɵadvance(1);
|
|
16656
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16722
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c10, column_r58));
|
|
16657
16723
|
}
|
|
16658
16724
|
}
|
|
16659
16725
|
function PoTableComponent_ng_template_4_th_8_Template(rf, ctx) {
|
|
16660
16726
|
if (rf & 1) {
|
|
16661
|
-
i0.ɵɵelement(0, "th",
|
|
16727
|
+
i0.ɵɵelement(0, "th", 51);
|
|
16662
16728
|
}
|
|
16663
16729
|
}
|
|
16664
16730
|
function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) {
|
|
@@ -16666,169 +16732,205 @@ function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) {
|
|
|
16666
16732
|
i0.ɵɵelement(0, "th");
|
|
16667
16733
|
}
|
|
16668
16734
|
if (rf & 2) {
|
|
16669
|
-
const
|
|
16670
|
-
i0.ɵɵclassProp("po-table-header-single-action",
|
|
16735
|
+
const ctx_r50 = i0.ɵɵnextContext(2);
|
|
16736
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r50.isSingleAction)("po-table-header-actions", !ctx_r50.isSingleAction);
|
|
16671
16737
|
}
|
|
16672
16738
|
}
|
|
16673
16739
|
function PoTableComponent_ng_template_4_th_10_Template(rf, ctx) {
|
|
16674
16740
|
if (rf & 1) {
|
|
16675
|
-
const
|
|
16676
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
16677
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
16741
|
+
const _r67 = i0.ɵɵgetCurrentView();
|
|
16742
|
+
i0.ɵɵelementStart(0, "th", null, 59)(2, "div")(3, "button", 60, 61);
|
|
16743
|
+
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(); });
|
|
16744
|
+
i0.ɵɵelementEnd()()();
|
|
16745
|
+
}
|
|
16746
|
+
if (rf & 2) {
|
|
16747
|
+
const _r64 = i0.ɵɵreference(1);
|
|
16748
|
+
const ctx_r51 = i0.ɵɵnextContext(2);
|
|
16749
|
+
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);
|
|
16750
|
+
i0.ɵɵadvance(2);
|
|
16751
|
+
i0.ɵɵstyleProp("width", ctx_r51.height && ctx_r51.visibleActions.length ? _r64.offsetWidth : undefined, "px");
|
|
16752
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r51.height && ctx_r51.container)("po-table-header-column-manager-fixed-inner", ctx_r51.height);
|
|
16753
|
+
i0.ɵɵadvance(1);
|
|
16754
|
+
i0.ɵɵproperty("p-tooltip", ctx_r51.literals.columnsManager);
|
|
16755
|
+
}
|
|
16756
|
+
}
|
|
16757
|
+
function PoTableComponent_ng_template_4_Template(rf, ctx) {
|
|
16758
|
+
if (rf & 1) {
|
|
16759
|
+
i0.ɵɵelementStart(0, "table", 38)(1, "thead")(2, "tr");
|
|
16760
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_Template, 4, 4, "th", 39);
|
|
16761
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_th_4_Template, 1, 0, "th", 40);
|
|
16762
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 1, 4, "th", 41);
|
|
16763
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th", 42);
|
|
16764
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 4, 20, "th", 43);
|
|
16765
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th", 40);
|
|
16766
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th", 44);
|
|
16767
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 13, "th", 45);
|
|
16678
16768
|
i0.ɵɵelementEnd()()();
|
|
16679
16769
|
}
|
|
16680
16770
|
if (rf & 2) {
|
|
16681
|
-
const
|
|
16682
|
-
|
|
16683
|
-
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r43.isSingleAction || !ctx_r43.actionRight)("po-table-header-column-manager-border", !ctx_r43.height && ctx_r43.container)("po-table-header-single-action", ctx_r43.isSingleAction && ctx_r43.actionRight);
|
|
16771
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
16772
|
+
i0.ɵɵclassProp("po-table-striped", ctx_r5.striped)("po-table-layout-fixed", ctx_r5.hideTextOverflow);
|
|
16684
16773
|
i0.ɵɵadvance(2);
|
|
16685
|
-
i0.ɵɵ
|
|
16686
|
-
i0.ɵɵ
|
|
16774
|
+
i0.ɵɵclassProp("po-table-header", !ctx_r5.height);
|
|
16775
|
+
i0.ɵɵadvance(1);
|
|
16776
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasSelectableColumn);
|
|
16777
|
+
i0.ɵɵadvance(1);
|
|
16778
|
+
i0.ɵɵproperty("ngIf", (ctx_r5.hasMasterDetailColumn || ctx_r5.hasRowTemplate) && !ctx_r5.hasRowTemplateWithArrowDirectionRight);
|
|
16779
|
+
i0.ɵɵadvance(1);
|
|
16780
|
+
i0.ɵɵproperty("ngIf", !ctx_r5.actionRight && (ctx_r5.visibleActions.length > 1 || ctx_r5.isSingleAction));
|
|
16781
|
+
i0.ɵɵadvance(1);
|
|
16782
|
+
i0.ɵɵproperty("ngIf", !ctx_r5.hasMainColumns);
|
|
16783
|
+
i0.ɵɵadvance(1);
|
|
16784
|
+
i0.ɵɵproperty("ngForOf", ctx_r5.mainColumns)("ngForTrackBy", ctx_r5.trackBy);
|
|
16785
|
+
i0.ɵɵadvance(1);
|
|
16786
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasRowTemplateWithArrowDirectionRight && (ctx_r5.hasVisibleActions || ctx_r5.hideColumnsManager));
|
|
16787
|
+
i0.ɵɵadvance(1);
|
|
16788
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasVisibleActions && ctx_r5.hideColumnsManager && ctx_r5.actionRight);
|
|
16687
16789
|
i0.ɵɵadvance(1);
|
|
16688
|
-
i0.ɵɵproperty("
|
|
16790
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasValidColumns && !ctx_r5.hideColumnsManager);
|
|
16689
16791
|
}
|
|
16690
16792
|
}
|
|
16691
|
-
function
|
|
16793
|
+
function PoTableComponent_ng_template_6_tbody_1_Template(rf, ctx) {
|
|
16692
16794
|
if (rf & 1) {
|
|
16693
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
16795
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
16694
16796
|
i0.ɵɵtext(4);
|
|
16695
16797
|
i0.ɵɵelementEnd()()()();
|
|
16696
16798
|
}
|
|
16697
16799
|
if (rf & 2) {
|
|
16698
|
-
const
|
|
16800
|
+
const ctx_r68 = i0.ɵɵnextContext(2);
|
|
16699
16801
|
i0.ɵɵadvance(2);
|
|
16700
|
-
i0.ɵɵproperty("colSpan",
|
|
16802
|
+
i0.ɵɵproperty("colSpan", ctx_r68.columnCount);
|
|
16701
16803
|
i0.ɵɵadvance(2);
|
|
16702
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16804
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r68.literals.noData, " ");
|
|
16703
16805
|
}
|
|
16704
16806
|
}
|
|
16705
|
-
function
|
|
16807
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_ng_container_1_Template(rf, ctx) {
|
|
16706
16808
|
if (rf & 1) {
|
|
16707
16809
|
i0.ɵɵelementContainer(0);
|
|
16708
16810
|
}
|
|
16709
16811
|
}
|
|
16710
|
-
function
|
|
16812
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_Template(rf, ctx) {
|
|
16711
16813
|
if (rf & 1) {
|
|
16712
|
-
i0.ɵɵelementStart(0, "td",
|
|
16713
|
-
i0.ɵɵtemplate(1,
|
|
16814
|
+
i0.ɵɵelementStart(0, "td", 46);
|
|
16815
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
16714
16816
|
i0.ɵɵelementEnd();
|
|
16715
16817
|
}
|
|
16716
16818
|
if (rf & 2) {
|
|
16717
|
-
const
|
|
16718
|
-
const
|
|
16719
|
-
const
|
|
16720
|
-
const
|
|
16819
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16820
|
+
const ctx_r73 = i0.ɵɵnextContext(3);
|
|
16821
|
+
const _r13 = i0.ɵɵreference(15);
|
|
16822
|
+
const _r15 = i0.ɵɵreference(17);
|
|
16721
16823
|
i0.ɵɵadvance(1);
|
|
16722
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16824
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r73.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, row_r71));
|
|
16723
16825
|
}
|
|
16724
16826
|
}
|
|
16725
|
-
function
|
|
16726
|
-
const
|
|
16727
|
-
function
|
|
16827
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
16828
|
+
const _c11 = function (a0, a1) { return { row: a0, rowIndex: a1 }; };
|
|
16829
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_Template(rf, ctx) {
|
|
16728
16830
|
if (rf & 1) {
|
|
16729
|
-
const
|
|
16730
|
-
i0.ɵɵelementStart(0, "td",
|
|
16731
|
-
i0.ɵɵlistener("click", function
|
|
16732
|
-
i0.ɵɵtemplate(1,
|
|
16831
|
+
const _r89 = i0.ɵɵgetCurrentView();
|
|
16832
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
16833
|
+
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); });
|
|
16834
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16733
16835
|
i0.ɵɵelementEnd();
|
|
16734
16836
|
}
|
|
16735
16837
|
if (rf & 2) {
|
|
16736
|
-
const
|
|
16737
|
-
const
|
|
16738
|
-
const
|
|
16838
|
+
const ctx_r90 = i0.ɵɵnextContext();
|
|
16839
|
+
const row_r71 = ctx_r90.$implicit;
|
|
16840
|
+
const rowIndex_r72 = ctx_r90.index;
|
|
16739
16841
|
i0.ɵɵnextContext(3);
|
|
16740
|
-
const
|
|
16842
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16741
16843
|
i0.ɵɵadvance(1);
|
|
16742
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16844
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16743
16845
|
}
|
|
16744
16846
|
}
|
|
16745
|
-
function
|
|
16746
|
-
function
|
|
16847
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
16848
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_Template(rf, ctx) {
|
|
16747
16849
|
if (rf & 1) {
|
|
16748
|
-
i0.ɵɵtemplate(0,
|
|
16850
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16749
16851
|
}
|
|
16750
16852
|
if (rf & 2) {
|
|
16751
|
-
const
|
|
16752
|
-
const
|
|
16753
|
-
const
|
|
16853
|
+
const ctx_r92 = i0.ɵɵnextContext();
|
|
16854
|
+
const row_r71 = ctx_r92.$implicit;
|
|
16855
|
+
const rowIndex_r72 = ctx_r92.index;
|
|
16754
16856
|
i0.ɵɵnextContext(3);
|
|
16755
|
-
const
|
|
16756
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16857
|
+
const _r23 = i0.ɵɵreference(25);
|
|
16858
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16757
16859
|
}
|
|
16758
16860
|
}
|
|
16759
|
-
function
|
|
16760
|
-
function
|
|
16861
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
16862
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_Template(rf, ctx) {
|
|
16761
16863
|
if (rf & 1) {
|
|
16762
|
-
const
|
|
16763
|
-
i0.ɵɵelementStart(0, "td",
|
|
16764
|
-
i0.ɵɵlistener("click", function
|
|
16765
|
-
i0.ɵɵtemplate(1,
|
|
16864
|
+
const _r96 = i0.ɵɵgetCurrentView();
|
|
16865
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
16866
|
+
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); });
|
|
16867
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16766
16868
|
i0.ɵɵelementEnd();
|
|
16767
16869
|
}
|
|
16768
16870
|
if (rf & 2) {
|
|
16769
|
-
const
|
|
16770
|
-
const
|
|
16771
|
-
const
|
|
16871
|
+
const ctx_r97 = i0.ɵɵnextContext();
|
|
16872
|
+
const row_r71 = ctx_r97.$implicit;
|
|
16873
|
+
const rowIndex_r72 = ctx_r97.index;
|
|
16772
16874
|
i0.ɵɵnextContext(3);
|
|
16773
|
-
const
|
|
16875
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16774
16876
|
i0.ɵɵadvance(1);
|
|
16775
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16877
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16776
16878
|
}
|
|
16777
16879
|
}
|
|
16778
|
-
function
|
|
16880
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) {
|
|
16779
16881
|
if (rf & 1) {
|
|
16780
16882
|
i0.ɵɵelementContainer(0);
|
|
16781
16883
|
}
|
|
16782
16884
|
}
|
|
16783
|
-
function
|
|
16885
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_Template(rf, ctx) {
|
|
16784
16886
|
if (rf & 1) {
|
|
16785
16887
|
i0.ɵɵelementStart(0, "span");
|
|
16786
|
-
i0.ɵɵtemplate(1,
|
|
16888
|
+
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);
|
|
16787
16889
|
i0.ɵɵelementEnd();
|
|
16788
16890
|
}
|
|
16789
16891
|
if (rf & 2) {
|
|
16790
|
-
const
|
|
16791
|
-
const
|
|
16792
|
-
const
|
|
16892
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16893
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16894
|
+
const ctx_r100 = i0.ɵɵnextContext(3);
|
|
16793
16895
|
i0.ɵɵadvance(1);
|
|
16794
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16896
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r100.getTemplate(column_r98))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, ctx_r100.getCellData(row_r71, column_r98)));
|
|
16795
16897
|
}
|
|
16796
16898
|
}
|
|
16797
|
-
function
|
|
16899
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) {
|
|
16798
16900
|
if (rf & 1) {
|
|
16799
16901
|
i0.ɵɵelementContainer(0);
|
|
16800
16902
|
}
|
|
16801
16903
|
}
|
|
16802
|
-
const
|
|
16803
|
-
function
|
|
16904
|
+
const _c12 = function (a0, a1) { return { row: a0, column: a1 }; };
|
|
16905
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_Template(rf, ctx) {
|
|
16804
16906
|
if (rf & 1) {
|
|
16805
16907
|
i0.ɵɵelementStart(0, "span");
|
|
16806
|
-
i0.ɵɵtemplate(1,
|
|
16908
|
+
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);
|
|
16807
16909
|
i0.ɵɵelementEnd();
|
|
16808
16910
|
}
|
|
16809
16911
|
if (rf & 2) {
|
|
16810
|
-
const
|
|
16811
|
-
const
|
|
16812
|
-
const
|
|
16912
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16913
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16914
|
+
const ctx_r101 = i0.ɵɵnextContext(3);
|
|
16813
16915
|
i0.ɵɵadvance(1);
|
|
16814
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16916
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r101.tableCellTemplate == null ? null : ctx_r101.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, column_r98));
|
|
16815
16917
|
}
|
|
16816
16918
|
}
|
|
16817
|
-
function
|
|
16919
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_4_Template(rf, ctx) {
|
|
16818
16920
|
if (rf & 1) {
|
|
16819
16921
|
i0.ɵɵelementStart(0, "span");
|
|
16820
16922
|
i0.ɵɵtext(1);
|
|
16821
16923
|
i0.ɵɵelementEnd();
|
|
16822
16924
|
}
|
|
16823
16925
|
if (rf & 2) {
|
|
16824
|
-
const
|
|
16825
|
-
const
|
|
16826
|
-
const
|
|
16926
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16927
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16928
|
+
const ctx_r102 = i0.ɵɵnextContext(3);
|
|
16827
16929
|
i0.ɵɵadvance(1);
|
|
16828
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16930
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r102.getBooleanLabel(ctx_r102.getCellData(row_r71, column_r98), column_r98), " ");
|
|
16829
16931
|
}
|
|
16830
16932
|
}
|
|
16831
|
-
function
|
|
16933
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_5_Template(rf, ctx) {
|
|
16832
16934
|
if (rf & 1) {
|
|
16833
16935
|
i0.ɵɵelementStart(0, "span");
|
|
16834
16936
|
i0.ɵɵtext(1);
|
|
@@ -16836,14 +16938,14 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_5_Temp
|
|
|
16836
16938
|
i0.ɵɵelementEnd();
|
|
16837
16939
|
}
|
|
16838
16940
|
if (rf & 2) {
|
|
16839
|
-
const
|
|
16840
|
-
const
|
|
16841
|
-
const
|
|
16941
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16942
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16943
|
+
const ctx_r103 = i0.ɵɵnextContext(3);
|
|
16842
16944
|
i0.ɵɵadvance(1);
|
|
16843
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
16945
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r103.getCellData(row_r71, column_r98), column_r98.format, "symbol", "1.2-2"), " ");
|
|
16844
16946
|
}
|
|
16845
16947
|
}
|
|
16846
|
-
function
|
|
16948
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_6_Template(rf, ctx) {
|
|
16847
16949
|
if (rf & 1) {
|
|
16848
16950
|
i0.ɵɵelementStart(0, "span");
|
|
16849
16951
|
i0.ɵɵtext(1);
|
|
@@ -16851,14 +16953,14 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_6_Temp
|
|
|
16851
16953
|
i0.ɵɵelementEnd();
|
|
16852
16954
|
}
|
|
16853
16955
|
if (rf & 2) {
|
|
16854
|
-
const
|
|
16855
|
-
const
|
|
16856
|
-
const
|
|
16956
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16957
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16958
|
+
const ctx_r104 = i0.ɵɵnextContext(3);
|
|
16857
16959
|
i0.ɵɵadvance(1);
|
|
16858
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
16960
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r104.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy"), " ");
|
|
16859
16961
|
}
|
|
16860
16962
|
}
|
|
16861
|
-
function
|
|
16963
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_7_Template(rf, ctx) {
|
|
16862
16964
|
if (rf & 1) {
|
|
16863
16965
|
i0.ɵɵelementStart(0, "span");
|
|
16864
16966
|
i0.ɵɵtext(1);
|
|
@@ -16866,14 +16968,14 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_7_Temp
|
|
|
16866
16968
|
i0.ɵɵelementEnd();
|
|
16867
16969
|
}
|
|
16868
16970
|
if (rf & 2) {
|
|
16869
|
-
const
|
|
16870
|
-
const
|
|
16871
|
-
const
|
|
16971
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16972
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16973
|
+
const ctx_r105 = i0.ɵɵnextContext(3);
|
|
16872
16974
|
i0.ɵɵadvance(1);
|
|
16873
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
16975
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r105.getCellData(row_r71, column_r98), column_r98.format || "HH:mm:ss.ffffff"), " ");
|
|
16874
16976
|
}
|
|
16875
16977
|
}
|
|
16876
|
-
function
|
|
16978
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_8_Template(rf, ctx) {
|
|
16877
16979
|
if (rf & 1) {
|
|
16878
16980
|
i0.ɵɵelementStart(0, "span");
|
|
16879
16981
|
i0.ɵɵtext(1);
|
|
@@ -16881,126 +16983,127 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_8_Temp
|
|
|
16881
16983
|
i0.ɵɵelementEnd();
|
|
16882
16984
|
}
|
|
16883
16985
|
if (rf & 2) {
|
|
16884
|
-
const
|
|
16885
|
-
const
|
|
16886
|
-
const
|
|
16986
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16987
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16988
|
+
const ctx_r106 = i0.ɵɵnextContext(3);
|
|
16887
16989
|
i0.ɵɵadvance(1);
|
|
16888
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
16990
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r106.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
16889
16991
|
}
|
|
16890
16992
|
}
|
|
16891
|
-
function
|
|
16993
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_9_Template(rf, ctx) {
|
|
16892
16994
|
if (rf & 1) {
|
|
16893
16995
|
i0.ɵɵelementStart(0, "span");
|
|
16894
16996
|
i0.ɵɵtext(1);
|
|
16895
16997
|
i0.ɵɵelementEnd();
|
|
16896
16998
|
}
|
|
16897
16999
|
if (rf & 2) {
|
|
16898
|
-
const
|
|
16899
|
-
const
|
|
16900
|
-
const
|
|
17000
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17001
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17002
|
+
const ctx_r107 = i0.ɵɵnextContext(3);
|
|
16901
17003
|
i0.ɵɵadvance(1);
|
|
16902
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17004
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r107.formatNumber(ctx_r107.getCellData(row_r71, column_r98), column_r98.format), " ");
|
|
16903
17005
|
}
|
|
16904
17006
|
}
|
|
16905
|
-
function
|
|
17007
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) {
|
|
16906
17008
|
if (rf & 1) {
|
|
16907
|
-
const
|
|
16908
|
-
i0.ɵɵelementStart(0, "po-table-column-link",
|
|
16909
|
-
i0.ɵɵlistener("click", function
|
|
17009
|
+
const _r133 = i0.ɵɵgetCurrentView();
|
|
17010
|
+
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
17011
|
+
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); });
|
|
16910
17012
|
i0.ɵɵelementEnd();
|
|
16911
17013
|
}
|
|
16912
17014
|
if (rf & 2) {
|
|
16913
|
-
const
|
|
16914
|
-
const
|
|
16915
|
-
const
|
|
16916
|
-
i0.ɵɵproperty("p-action",
|
|
17015
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17016
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17017
|
+
const ctx_r108 = i0.ɵɵnextContext(3);
|
|
17018
|
+
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));
|
|
16917
17019
|
}
|
|
16918
17020
|
}
|
|
16919
|
-
function
|
|
17021
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) {
|
|
16920
17022
|
if (rf & 1) {
|
|
16921
|
-
i0.ɵɵelement(0, "po-table-column-icon",
|
|
17023
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
16922
17024
|
}
|
|
16923
17025
|
if (rf & 2) {
|
|
16924
|
-
const
|
|
16925
|
-
const
|
|
16926
|
-
const
|
|
16927
|
-
i0.ɵɵproperty("p-column",
|
|
17026
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17027
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17028
|
+
const ctx_r109 = i0.ɵɵnextContext(3);
|
|
17029
|
+
i0.ɵɵproperty("p-column", column_r98)("p-icons", ctx_r109.getColumnIcons(row_r71, column_r98))("p-row", row_r71);
|
|
16928
17030
|
}
|
|
16929
17031
|
}
|
|
16930
|
-
function
|
|
17032
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_12_Template(rf, ctx) {
|
|
16931
17033
|
if (rf & 1) {
|
|
16932
17034
|
i0.ɵɵelementStart(0, "span");
|
|
16933
|
-
i0.ɵɵelement(1, "po-table-subtitle-circle",
|
|
17035
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
16934
17036
|
i0.ɵɵelementEnd();
|
|
16935
17037
|
}
|
|
16936
17038
|
if (rf & 2) {
|
|
16937
|
-
const
|
|
16938
|
-
const
|
|
16939
|
-
const
|
|
17039
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17040
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17041
|
+
const ctx_r110 = i0.ɵɵnextContext(3);
|
|
16940
17042
|
i0.ɵɵadvance(1);
|
|
16941
|
-
i0.ɵɵproperty("p-subtitle",
|
|
17043
|
+
i0.ɵɵproperty("p-subtitle", ctx_r110.getSubtitleColumn(row_r71, column_r98));
|
|
16942
17044
|
}
|
|
16943
17045
|
}
|
|
16944
|
-
function
|
|
17046
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_13_Template(rf, ctx) {
|
|
16945
17047
|
if (rf & 1) {
|
|
16946
17048
|
i0.ɵɵelementStart(0, "span");
|
|
16947
|
-
i0.ɵɵelement(1, "po-table-column-label",
|
|
17049
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
16948
17050
|
i0.ɵɵelementEnd();
|
|
16949
17051
|
}
|
|
16950
17052
|
if (rf & 2) {
|
|
16951
|
-
const
|
|
16952
|
-
const
|
|
16953
|
-
const
|
|
17053
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17054
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17055
|
+
const ctx_r111 = i0.ɵɵnextContext(3);
|
|
16954
17056
|
i0.ɵɵadvance(1);
|
|
16955
|
-
i0.ɵɵproperty("p-value",
|
|
17057
|
+
i0.ɵɵproperty("p-value", ctx_r111.getColumnLabel(row_r71, column_r98));
|
|
16956
17058
|
}
|
|
16957
17059
|
}
|
|
16958
|
-
function
|
|
17060
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_14_Template(rf, ctx) {
|
|
16959
17061
|
if (rf & 1) {
|
|
16960
17062
|
i0.ɵɵelementStart(0, "span");
|
|
16961
17063
|
i0.ɵɵtext(1);
|
|
16962
17064
|
i0.ɵɵelementEnd();
|
|
16963
17065
|
}
|
|
16964
17066
|
if (rf & 2) {
|
|
16965
|
-
const
|
|
16966
|
-
const
|
|
16967
|
-
const
|
|
17067
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17068
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17069
|
+
const ctx_r112 = i0.ɵɵnextContext(3);
|
|
16968
17070
|
i0.ɵɵadvance(1);
|
|
16969
|
-
i0.ɵɵtextInterpolate(
|
|
17071
|
+
i0.ɵɵtextInterpolate(ctx_r112.getCellData(row_r71, column_r98));
|
|
16970
17072
|
}
|
|
16971
17073
|
}
|
|
16972
|
-
function
|
|
17074
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template(rf, ctx) {
|
|
16973
17075
|
if (rf & 1) {
|
|
16974
|
-
const
|
|
16975
|
-
i0.ɵɵelementStart(0, "td",
|
|
16976
|
-
i0.ɵɵlistener("click", function
|
|
16977
|
-
i0.ɵɵelementStart(1, "div",
|
|
16978
|
-
i0.ɵɵlistener("mouseenter", function
|
|
16979
|
-
i0.ɵɵtemplate(2,
|
|
16980
|
-
i0.ɵɵtemplate(3,
|
|
16981
|
-
i0.ɵɵtemplate(4,
|
|
16982
|
-
i0.ɵɵtemplate(5,
|
|
16983
|
-
i0.ɵɵtemplate(6,
|
|
16984
|
-
i0.ɵɵtemplate(7,
|
|
16985
|
-
i0.ɵɵtemplate(8,
|
|
16986
|
-
i0.ɵɵtemplate(9,
|
|
16987
|
-
i0.ɵɵtemplate(10,
|
|
16988
|
-
i0.ɵɵtemplate(11,
|
|
16989
|
-
i0.ɵɵtemplate(12,
|
|
16990
|
-
i0.ɵɵtemplate(13,
|
|
16991
|
-
i0.ɵɵtemplate(14,
|
|
17076
|
+
const _r146 = i0.ɵɵgetCurrentView();
|
|
17077
|
+
i0.ɵɵelementStart(0, "td", 73);
|
|
17078
|
+
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:;"; });
|
|
17079
|
+
i0.ɵɵelementStart(1, "div", 74);
|
|
17080
|
+
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(); });
|
|
17081
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
17082
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
17083
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
17084
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
17085
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
17086
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
17087
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
17088
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
17089
|
+
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);
|
|
17090
|
+
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);
|
|
17091
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
17092
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
17093
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
16992
17094
|
i0.ɵɵelementEnd()();
|
|
16993
17095
|
}
|
|
16994
17096
|
if (rf & 2) {
|
|
16995
|
-
const
|
|
16996
|
-
const
|
|
16997
|
-
const
|
|
16998
|
-
i0.ɵɵstyleProp("width",
|
|
16999
|
-
i0.ɵɵclassProp("po-table-column",
|
|
17000
|
-
i0.ɵɵproperty("ngClass",
|
|
17097
|
+
const column_r98 = ctx.$implicit;
|
|
17098
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17099
|
+
const ctx_r77 = i0.ɵɵnextContext(3);
|
|
17100
|
+
i0.ɵɵstyleProp("width", column_r98.width)("max-width", column_r98.width)("min-width", column_r98.width);
|
|
17101
|
+
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");
|
|
17102
|
+
i0.ɵɵproperty("ngClass", ctx_r77.getClassColor(row_r71, column_r98));
|
|
17001
17103
|
i0.ɵɵadvance(1);
|
|
17002
|
-
i0.ɵɵ
|
|
17003
|
-
i0.ɵɵ
|
|
17104
|
+
i0.ɵɵstyleProp("width", ctx_r77.noColumnsHeader == null ? null : ctx_r77.noColumnsHeader.nativeElement.parentElement == null ? null : ctx_r77.noColumnsHeader.nativeElement.parentElement.offsetWidth, "px");
|
|
17105
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r77.hideTextOverflow);
|
|
17106
|
+
i0.ɵɵproperty("ngSwitch", column_r98.type)("p-tooltip", ctx_r77.tooltipText);
|
|
17004
17107
|
i0.ɵɵadvance(1);
|
|
17005
17108
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
17006
17109
|
i0.ɵɵadvance(1);
|
|
@@ -17027,375 +17130,991 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_Template(rf
|
|
|
17027
17130
|
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
17028
17131
|
}
|
|
17029
17132
|
}
|
|
17030
|
-
function
|
|
17031
|
-
function
|
|
17133
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
17134
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_Template(rf, ctx) {
|
|
17032
17135
|
if (rf & 1) {
|
|
17033
|
-
const
|
|
17034
|
-
i0.ɵɵelementStart(0, "td",
|
|
17035
|
-
i0.ɵɵlistener("click", function
|
|
17036
|
-
i0.ɵɵtemplate(1,
|
|
17136
|
+
const _r155 = i0.ɵɵgetCurrentView();
|
|
17137
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17138
|
+
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); });
|
|
17139
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17037
17140
|
i0.ɵɵelementEnd();
|
|
17038
17141
|
}
|
|
17039
17142
|
if (rf & 2) {
|
|
17040
|
-
const
|
|
17041
|
-
const
|
|
17042
|
-
const
|
|
17143
|
+
const ctx_r156 = i0.ɵɵnextContext();
|
|
17144
|
+
const row_r71 = ctx_r156.$implicit;
|
|
17145
|
+
const rowIndex_r72 = ctx_r156.index;
|
|
17043
17146
|
i0.ɵɵnextContext(3);
|
|
17044
|
-
const
|
|
17147
|
+
const _r11 = i0.ɵɵreference(13);
|
|
17045
17148
|
i0.ɵɵadvance(1);
|
|
17046
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17149
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
17047
17150
|
}
|
|
17048
17151
|
}
|
|
17049
|
-
function
|
|
17050
|
-
function
|
|
17152
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
17153
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_Template(rf, ctx) {
|
|
17051
17154
|
if (rf & 1) {
|
|
17052
|
-
i0.ɵɵtemplate(0,
|
|
17155
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17053
17156
|
}
|
|
17054
17157
|
if (rf & 2) {
|
|
17055
|
-
const
|
|
17056
|
-
const
|
|
17057
|
-
const
|
|
17158
|
+
const ctx_r158 = i0.ɵɵnextContext();
|
|
17159
|
+
const row_r71 = ctx_r158.$implicit;
|
|
17160
|
+
const rowIndex_r72 = ctx_r158.index;
|
|
17058
17161
|
i0.ɵɵnextContext(3);
|
|
17059
|
-
const
|
|
17060
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17162
|
+
const _r23 = i0.ɵɵreference(25);
|
|
17163
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
17061
17164
|
}
|
|
17062
17165
|
}
|
|
17063
|
-
function
|
|
17166
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_ng_container_9_Template(rf, ctx) {
|
|
17064
17167
|
if (rf & 1) {
|
|
17065
17168
|
i0.ɵɵelementContainerStart(0);
|
|
17066
|
-
i0.ɵɵelement(1, "td",
|
|
17169
|
+
i0.ɵɵelement(1, "td", 83);
|
|
17067
17170
|
i0.ɵɵelementContainerEnd();
|
|
17068
17171
|
}
|
|
17069
17172
|
}
|
|
17070
|
-
function
|
|
17173
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_10_Template(rf, ctx) {
|
|
17071
17174
|
if (rf & 1) {
|
|
17072
|
-
i0.ɵɵelement(0, "td",
|
|
17175
|
+
i0.ɵɵelement(0, "td", 84);
|
|
17073
17176
|
}
|
|
17074
17177
|
}
|
|
17075
|
-
function
|
|
17076
|
-
const
|
|
17077
|
-
function
|
|
17178
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
17179
|
+
const _c13 = function (a0, a1) { return { $implicit: a0, rowIndex: a1 }; };
|
|
17180
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_Template(rf, ctx) {
|
|
17078
17181
|
if (rf & 1) {
|
|
17079
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
17080
|
-
i0.ɵɵtemplate(2,
|
|
17182
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
17183
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
17081
17184
|
i0.ɵɵelementEnd()();
|
|
17082
17185
|
}
|
|
17083
17186
|
if (rf & 2) {
|
|
17084
|
-
const
|
|
17085
|
-
const
|
|
17086
|
-
const
|
|
17087
|
-
const
|
|
17187
|
+
const ctx_r160 = i0.ɵɵnextContext();
|
|
17188
|
+
const row_r71 = ctx_r160.$implicit;
|
|
17189
|
+
const rowIndex_r72 = ctx_r160.index;
|
|
17190
|
+
const ctx_r82 = i0.ɵɵnextContext(3);
|
|
17088
17191
|
i0.ɵɵadvance(1);
|
|
17089
|
-
i0.ɵɵproperty("colSpan",
|
|
17192
|
+
i0.ɵɵproperty("colSpan", ctx_r82.columnCountForMasterDetail);
|
|
17090
17193
|
i0.ɵɵadvance(1);
|
|
17091
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17194
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r82.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c13, row_r71, rowIndex_r72));
|
|
17092
17195
|
}
|
|
17093
17196
|
}
|
|
17094
|
-
function
|
|
17197
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template(rf, ctx) {
|
|
17095
17198
|
if (rf & 1) {
|
|
17096
|
-
const
|
|
17097
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
17098
|
-
i0.ɵɵlistener("p-select-row", function
|
|
17199
|
+
const _r162 = i0.ɵɵgetCurrentView();
|
|
17200
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
17201
|
+
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); });
|
|
17099
17202
|
i0.ɵɵelementEnd()()();
|
|
17100
17203
|
}
|
|
17101
17204
|
if (rf & 2) {
|
|
17102
|
-
const
|
|
17103
|
-
const
|
|
17205
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17206
|
+
const ctx_r83 = i0.ɵɵnextContext(3);
|
|
17104
17207
|
i0.ɵɵadvance(1);
|
|
17105
|
-
i0.ɵɵproperty("colSpan",
|
|
17208
|
+
i0.ɵɵproperty("colSpan", ctx_r83.columnCountForMasterDetail);
|
|
17106
17209
|
i0.ɵɵadvance(1);
|
|
17107
|
-
i0.ɵɵproperty("p-selectable",
|
|
17210
|
+
i0.ɵɵproperty("p-selectable", ctx_r83.selectable && !ctx_r83.detailHideSelect)("p-detail", ctx_r83.columnMasterDetail.detail)("p-items", row_r71[ctx_r83.nameColumnDetail]);
|
|
17108
17211
|
}
|
|
17109
17212
|
}
|
|
17110
|
-
function
|
|
17213
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template(rf, ctx) {
|
|
17111
17214
|
if (rf & 1) {
|
|
17112
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
17113
|
-
i0.ɵɵtemplate(2,
|
|
17114
|
-
i0.ɵɵtemplate(3,
|
|
17115
|
-
i0.ɵɵtemplate(4,
|
|
17116
|
-
i0.ɵɵtemplate(5,
|
|
17117
|
-
i0.ɵɵtemplate(6,
|
|
17118
|
-
i0.ɵɵtemplate(7,
|
|
17119
|
-
i0.ɵɵtemplate(8,
|
|
17120
|
-
i0.ɵɵtemplate(9,
|
|
17121
|
-
i0.ɵɵtemplate(10,
|
|
17215
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
17216
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_Template, 2, 4, "td", 39);
|
|
17217
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
17218
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_2_tbody_1_4_Template, 1, 5, null, 23);
|
|
17219
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
17220
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template, 15, 33, "td", 69);
|
|
17221
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
17222
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_2_tbody_1_8_Template, 1, 5, null, 23);
|
|
17223
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_2_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
17224
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
17122
17225
|
i0.ɵɵelementEnd();
|
|
17123
|
-
i0.ɵɵtemplate(11,
|
|
17124
|
-
i0.ɵɵtemplate(12,
|
|
17226
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
17227
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
17125
17228
|
i0.ɵɵelementEnd();
|
|
17126
17229
|
}
|
|
17127
17230
|
if (rf & 2) {
|
|
17128
|
-
const
|
|
17129
|
-
const
|
|
17130
|
-
const
|
|
17231
|
+
const row_r71 = ctx.$implicit;
|
|
17232
|
+
const rowIndex_r72 = ctx.index;
|
|
17233
|
+
const ctx_r70 = i0.ɵɵnextContext(3);
|
|
17131
17234
|
i0.ɵɵadvance(1);
|
|
17132
|
-
i0.ɵɵclassProp("po-table-row-active",
|
|
17235
|
+
i0.ɵɵclassProp("po-table-row-active", row_r71.$selected || row_r71.$selected === null && ctx_r70.selectable);
|
|
17133
17236
|
i0.ɵɵadvance(1);
|
|
17134
|
-
i0.ɵɵproperty("ngIf",
|
|
17237
|
+
i0.ɵɵproperty("ngIf", ctx_r70.selectable);
|
|
17135
17238
|
i0.ɵɵadvance(1);
|
|
17136
|
-
i0.ɵɵproperty("ngIf",
|
|
17239
|
+
i0.ɵɵproperty("ngIf", ctx_r70.columnMasterDetail && !ctx_r70.hideDetail && !ctx_r70.hasRowTemplate);
|
|
17137
17240
|
i0.ɵɵadvance(1);
|
|
17138
|
-
i0.ɵɵproperty("ngIf", !
|
|
17241
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction));
|
|
17139
17242
|
i0.ɵɵadvance(1);
|
|
17140
|
-
i0.ɵɵproperty("ngIf",
|
|
17243
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplate && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17141
17244
|
i0.ɵɵadvance(1);
|
|
17142
|
-
i0.ɵɵproperty("ngForOf",
|
|
17245
|
+
i0.ɵɵproperty("ngForOf", ctx_r70.mainColumns)("ngForTrackBy", ctx_r70.trackBy);
|
|
17143
17246
|
i0.ɵɵadvance(1);
|
|
17144
|
-
i0.ɵɵproperty("ngIf",
|
|
17247
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17145
17248
|
i0.ɵɵadvance(1);
|
|
17146
|
-
i0.ɵɵproperty("ngIf",
|
|
17249
|
+
i0.ɵɵproperty("ngIf", ctx_r70.actionRight);
|
|
17147
17250
|
i0.ɵɵadvance(1);
|
|
17148
|
-
i0.ɵɵproperty("ngIf", !
|
|
17251
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction) && !ctx_r70.hideColumnsManager);
|
|
17149
17252
|
i0.ɵɵadvance(1);
|
|
17150
|
-
i0.ɵɵproperty("ngIf", !
|
|
17253
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.hasVisibleActions && !ctx_r70.hideColumnsManager && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17151
17254
|
i0.ɵɵadvance(1);
|
|
17152
|
-
i0.ɵɵproperty("ngIf",
|
|
17255
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.hasRowTemplate && row_r71.$showDetail && ctx_r70.isShowRowTemplate(row_r71, rowIndex_r72));
|
|
17153
17256
|
i0.ɵɵadvance(1);
|
|
17154
|
-
i0.ɵɵproperty("ngIf",
|
|
17257
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.isShowMasterDetail(row_r71));
|
|
17155
17258
|
}
|
|
17156
17259
|
}
|
|
17157
|
-
function
|
|
17260
|
+
function PoTableComponent_ng_template_6_ng_container_2_Template(rf, ctx) {
|
|
17158
17261
|
if (rf & 1) {
|
|
17159
17262
|
i0.ɵɵelementContainerStart(0);
|
|
17160
|
-
i0.ɵɵtemplate(1,
|
|
17263
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template, 13, 14, "tbody", 66);
|
|
17161
17264
|
i0.ɵɵelementContainerEnd();
|
|
17162
17265
|
}
|
|
17163
17266
|
if (rf & 2) {
|
|
17164
|
-
const
|
|
17267
|
+
const ctx_r69 = i0.ɵɵnextContext(2);
|
|
17165
17268
|
i0.ɵɵadvance(1);
|
|
17166
|
-
i0.ɵɵproperty("ngForOf",
|
|
17269
|
+
i0.ɵɵproperty("ngForOf", ctx_r69.items)("ngForTrackBy", ctx_r69.trackBy);
|
|
17167
17270
|
}
|
|
17168
17271
|
}
|
|
17169
|
-
function
|
|
17272
|
+
function PoTableComponent_ng_template_6_Template(rf, ctx) {
|
|
17170
17273
|
if (rf & 1) {
|
|
17171
|
-
i0.ɵɵelementStart(0, "table",
|
|
17172
|
-
i0.ɵɵtemplate(
|
|
17173
|
-
i0.ɵɵtemplate(
|
|
17174
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 1, 4, "th", 38);
|
|
17175
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th", 39);
|
|
17176
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 4, 20, "th", 40);
|
|
17177
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th", 37);
|
|
17178
|
-
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th", 41);
|
|
17179
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 13, "th", 42);
|
|
17180
|
-
i0.ɵɵelementEnd()();
|
|
17181
|
-
i0.ɵɵtemplate(11, PoTableComponent_ng_template_4_tbody_11_Template, 5, 2, "tbody", 43);
|
|
17182
|
-
i0.ɵɵtemplate(12, PoTableComponent_ng_template_4_ng_container_12_Template, 2, 2, "ng-container", 21);
|
|
17274
|
+
i0.ɵɵelementStart(0, "table", 38);
|
|
17275
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_tbody_1_Template, 5, 2, "tbody", 62);
|
|
17276
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_2_Template, 2, 2, "ng-container", 23);
|
|
17183
17277
|
i0.ɵɵelementEnd();
|
|
17184
17278
|
}
|
|
17185
17279
|
if (rf & 2) {
|
|
17186
|
-
const
|
|
17187
|
-
i0.ɵɵclassProp("po-table-striped",
|
|
17188
|
-
i0.ɵɵadvance(2);
|
|
17189
|
-
i0.ɵɵclassProp("po-table-header", !ctx_r5.height);
|
|
17190
|
-
i0.ɵɵadvance(1);
|
|
17191
|
-
i0.ɵɵproperty("ngIf", ctx_r5.hasSelectableColumn);
|
|
17192
|
-
i0.ɵɵadvance(1);
|
|
17193
|
-
i0.ɵɵproperty("ngIf", (ctx_r5.hasMasterDetailColumn || ctx_r5.hasRowTemplate) && !ctx_r5.hasRowTemplateWithArrowDirectionRight);
|
|
17194
|
-
i0.ɵɵadvance(1);
|
|
17195
|
-
i0.ɵɵproperty("ngIf", !ctx_r5.actionRight && (ctx_r5.visibleActions.length > 1 || ctx_r5.isSingleAction));
|
|
17196
|
-
i0.ɵɵadvance(1);
|
|
17197
|
-
i0.ɵɵproperty("ngIf", !ctx_r5.hasMainColumns);
|
|
17198
|
-
i0.ɵɵadvance(1);
|
|
17199
|
-
i0.ɵɵproperty("ngForOf", ctx_r5.mainColumns)("ngForTrackBy", ctx_r5.trackBy);
|
|
17280
|
+
const ctx_r7 = i0.ɵɵnextContext();
|
|
17281
|
+
i0.ɵɵclassProp("po-table-striped", ctx_r7.striped)("po-table-layout-fixed", ctx_r7.hideTextOverflow);
|
|
17200
17282
|
i0.ɵɵadvance(1);
|
|
17201
|
-
i0.ɵɵproperty("ngIf",
|
|
17283
|
+
i0.ɵɵproperty("ngIf", !ctx_r7.hasItems || !ctx_r7.hasMainColumns);
|
|
17202
17284
|
i0.ɵɵadvance(1);
|
|
17203
|
-
i0.ɵɵproperty("ngIf",
|
|
17285
|
+
i0.ɵɵproperty("ngIf", ctx_r7.hasMainColumns);
|
|
17286
|
+
}
|
|
17287
|
+
}
|
|
17288
|
+
function PoTableComponent_ng_template_8_th_3_input_2_Template(rf, ctx) {
|
|
17289
|
+
if (rf & 1) {
|
|
17290
|
+
i0.ɵɵelement(0, "input", 49);
|
|
17291
|
+
}
|
|
17292
|
+
if (rf & 2) {
|
|
17293
|
+
const ctx_r174 = i0.ɵɵnextContext(3);
|
|
17294
|
+
i0.ɵɵclassProp("po-table-checkbox-checked", ctx_r174.selectAll)("po-table-checkbox-indeterminate", ctx_r174.selectAll === null);
|
|
17295
|
+
}
|
|
17296
|
+
}
|
|
17297
|
+
function PoTableComponent_ng_template_8_th_3_label_3_Template(rf, ctx) {
|
|
17298
|
+
if (rf & 1) {
|
|
17299
|
+
const _r177 = i0.ɵɵgetCurrentView();
|
|
17300
|
+
i0.ɵɵelementStart(0, "label", 50);
|
|
17301
|
+
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(); });
|
|
17302
|
+
i0.ɵɵelementEnd();
|
|
17303
|
+
}
|
|
17304
|
+
}
|
|
17305
|
+
function PoTableComponent_ng_template_8_th_3_Template(rf, ctx) {
|
|
17306
|
+
if (rf & 1) {
|
|
17307
|
+
i0.ɵɵelementStart(0, "th", 46)(1, "div");
|
|
17308
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_3_input_2_Template, 1, 4, "input", 47);
|
|
17309
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_label_3_Template, 1, 0, "label", 48);
|
|
17310
|
+
i0.ɵɵelementEnd()();
|
|
17311
|
+
}
|
|
17312
|
+
if (rf & 2) {
|
|
17313
|
+
const ctx_r164 = i0.ɵɵnextContext(2);
|
|
17204
17314
|
i0.ɵɵadvance(1);
|
|
17205
|
-
i0.ɵɵ
|
|
17315
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r164.height);
|
|
17206
17316
|
i0.ɵɵadvance(1);
|
|
17207
|
-
i0.ɵɵproperty("ngIf", !
|
|
17317
|
+
i0.ɵɵproperty("ngIf", !ctx_r164.hideSelectAll);
|
|
17208
17318
|
i0.ɵɵadvance(1);
|
|
17209
|
-
i0.ɵɵproperty("ngIf",
|
|
17319
|
+
i0.ɵɵproperty("ngIf", !ctx_r164.hideSelectAll);
|
|
17210
17320
|
}
|
|
17211
17321
|
}
|
|
17212
|
-
function
|
|
17322
|
+
function PoTableComponent_ng_template_8_th_4_Template(rf, ctx) {
|
|
17213
17323
|
if (rf & 1) {
|
|
17214
|
-
i0.ɵɵelement(0, "
|
|
17324
|
+
i0.ɵɵelement(0, "th", 51);
|
|
17325
|
+
}
|
|
17326
|
+
}
|
|
17327
|
+
function PoTableComponent_ng_template_8_th_5_Template(rf, ctx) {
|
|
17328
|
+
if (rf & 1) {
|
|
17329
|
+
i0.ɵɵelement(0, "th");
|
|
17215
17330
|
}
|
|
17216
17331
|
if (rf & 2) {
|
|
17217
|
-
const
|
|
17218
|
-
i0.ɵɵclassProp("po-
|
|
17332
|
+
const ctx_r166 = i0.ɵɵnextContext(2);
|
|
17333
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r166.isSingleAction)("po-table-header-single-action", ctx_r166.isSingleAction);
|
|
17219
17334
|
}
|
|
17220
17335
|
}
|
|
17221
|
-
function
|
|
17336
|
+
function PoTableComponent_ng_template_8_th_6_ng_container_2_Template(rf, ctx) {
|
|
17337
|
+
if (rf & 1) {
|
|
17338
|
+
i0.ɵɵelementContainer(0);
|
|
17339
|
+
}
|
|
17340
|
+
}
|
|
17341
|
+
function PoTableComponent_ng_template_8_th_6_Template(rf, ctx) {
|
|
17222
17342
|
if (rf & 1) {
|
|
17223
|
-
i0.ɵɵ
|
|
17343
|
+
i0.ɵɵelementStart(0, "th", 52, 53);
|
|
17344
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_6_ng_container_2_Template, 1, 0, "ng-container", 54);
|
|
17345
|
+
i0.ɵɵelementEnd();
|
|
17224
17346
|
}
|
|
17225
17347
|
if (rf & 2) {
|
|
17226
|
-
const
|
|
17227
|
-
const
|
|
17228
|
-
const
|
|
17229
|
-
i0.ɵɵ
|
|
17348
|
+
const ctx_r167 = i0.ɵɵnextContext(2);
|
|
17349
|
+
const _r19 = i0.ɵɵreference(21);
|
|
17350
|
+
const _r21 = i0.ɵɵreference(23);
|
|
17351
|
+
i0.ɵɵadvance(2);
|
|
17352
|
+
i0.ɵɵproperty("ngIf", ctx_r167.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
17230
17353
|
}
|
|
17231
17354
|
}
|
|
17232
|
-
function
|
|
17355
|
+
function PoTableComponent_ng_template_8_th_7_ng_container_3_Template(rf, ctx) {
|
|
17233
17356
|
if (rf & 1) {
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17357
|
+
i0.ɵɵelementContainer(0);
|
|
17358
|
+
}
|
|
17359
|
+
}
|
|
17360
|
+
function PoTableComponent_ng_template_8_th_7_Template(rf, ctx) {
|
|
17361
|
+
if (rf & 1) {
|
|
17362
|
+
const _r185 = i0.ɵɵgetCurrentView();
|
|
17363
|
+
i0.ɵɵelementStart(0, "th", 55, 56);
|
|
17364
|
+
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); });
|
|
17365
|
+
i0.ɵɵelementStart(2, "div", 57);
|
|
17366
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_7_ng_container_3_Template, 1, 0, "ng-container", 58);
|
|
17367
|
+
i0.ɵɵelementEnd()();
|
|
17239
17368
|
}
|
|
17240
17369
|
if (rf & 2) {
|
|
17241
|
-
const
|
|
17242
|
-
i0.ɵɵ
|
|
17370
|
+
const column_r180 = ctx.$implicit;
|
|
17371
|
+
const ctx_r168 = i0.ɵɵnextContext(2);
|
|
17372
|
+
const _r17 = i0.ɵɵreference(19);
|
|
17373
|
+
i0.ɵɵstyleProp("width", column_r180.width)("max-width", column_r180.width)("min-width", column_r180.width);
|
|
17374
|
+
i0.ɵɵclassProp("po-clickable", ctx_r168.sort && column_r180.sortable !== false || ctx_r168.hasService)("po-table-header-subtitle", column_r180.type === "subtitle");
|
|
17375
|
+
i0.ɵɵadvance(2);
|
|
17376
|
+
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");
|
|
17377
|
+
i0.ɵɵadvance(1);
|
|
17378
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c10, column_r180));
|
|
17243
17379
|
}
|
|
17244
17380
|
}
|
|
17245
|
-
function
|
|
17381
|
+
function PoTableComponent_ng_template_8_th_8_Template(rf, ctx) {
|
|
17246
17382
|
if (rf & 1) {
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
|
|
17251
|
-
|
|
17383
|
+
i0.ɵɵelement(0, "th", 51);
|
|
17384
|
+
}
|
|
17385
|
+
}
|
|
17386
|
+
function PoTableComponent_ng_template_8_th_9_Template(rf, ctx) {
|
|
17387
|
+
if (rf & 1) {
|
|
17388
|
+
i0.ɵɵelement(0, "th");
|
|
17252
17389
|
}
|
|
17253
17390
|
if (rf & 2) {
|
|
17254
|
-
const
|
|
17255
|
-
i0.ɵɵclassProp("po-table-
|
|
17391
|
+
const ctx_r170 = i0.ɵɵnextContext(2);
|
|
17392
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r170.isSingleAction)("po-table-header-actions", !ctx_r170.isSingleAction);
|
|
17256
17393
|
}
|
|
17257
17394
|
}
|
|
17258
|
-
function
|
|
17395
|
+
function PoTableComponent_ng_template_8_th_10_Template(rf, ctx) {
|
|
17259
17396
|
if (rf & 1) {
|
|
17260
|
-
i0.ɵɵ
|
|
17397
|
+
const _r189 = i0.ɵɵgetCurrentView();
|
|
17398
|
+
i0.ɵɵelementStart(0, "th", null, 59)(2, "div")(3, "button", 60, 61);
|
|
17399
|
+
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(); });
|
|
17400
|
+
i0.ɵɵelementEnd()()();
|
|
17261
17401
|
}
|
|
17262
17402
|
if (rf & 2) {
|
|
17263
|
-
const
|
|
17264
|
-
const
|
|
17265
|
-
i0.ɵɵclassProp("po-table-header-
|
|
17403
|
+
const _r186 = i0.ɵɵreference(1);
|
|
17404
|
+
const ctx_r171 = i0.ɵɵnextContext(2);
|
|
17405
|
+
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);
|
|
17406
|
+
i0.ɵɵadvance(2);
|
|
17407
|
+
i0.ɵɵstyleProp("width", ctx_r171.height && ctx_r171.visibleActions.length ? _r186.offsetWidth : undefined, "px");
|
|
17408
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r171.height && ctx_r171.container)("po-table-header-column-manager-fixed-inner", ctx_r171.height);
|
|
17409
|
+
i0.ɵɵadvance(1);
|
|
17410
|
+
i0.ɵɵproperty("p-tooltip", ctx_r171.literals.columnsManager);
|
|
17266
17411
|
}
|
|
17267
17412
|
}
|
|
17268
|
-
function
|
|
17413
|
+
function PoTableComponent_ng_template_8_tbody_11_Template(rf, ctx) {
|
|
17269
17414
|
if (rf & 1) {
|
|
17270
|
-
|
|
17271
|
-
i0.ɵɵ
|
|
17272
|
-
i0.ɵɵ
|
|
17273
|
-
i0.ɵɵtext(2);
|
|
17274
|
-
i0.ɵɵpipe(3, "titlecase");
|
|
17275
|
-
i0.ɵɵelementEnd();
|
|
17276
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_14_span_4_Template, 1, 6, "span", 91);
|
|
17415
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
17416
|
+
i0.ɵɵtext(4);
|
|
17417
|
+
i0.ɵɵelementEnd()()()();
|
|
17277
17418
|
}
|
|
17278
17419
|
if (rf & 2) {
|
|
17279
|
-
const
|
|
17280
|
-
const ctx_r14 = i0.ɵɵnextContext();
|
|
17281
|
-
i0.ɵɵproperty("p-tooltip", ctx_r14.tooltipText);
|
|
17420
|
+
const ctx_r172 = i0.ɵɵnextContext(2);
|
|
17282
17421
|
i0.ɵɵadvance(2);
|
|
17283
|
-
i0.ɵɵ
|
|
17422
|
+
i0.ɵɵproperty("colSpan", ctx_r172.columnCount);
|
|
17284
17423
|
i0.ɵɵadvance(2);
|
|
17285
|
-
i0.ɵɵ
|
|
17424
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r172.literals.noData, " ");
|
|
17286
17425
|
}
|
|
17287
17426
|
}
|
|
17288
|
-
function
|
|
17427
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template(rf, ctx) {
|
|
17289
17428
|
if (rf & 1) {
|
|
17290
|
-
i0.ɵɵ
|
|
17291
|
-
|
|
17429
|
+
i0.ɵɵelementContainer(0);
|
|
17430
|
+
}
|
|
17431
|
+
}
|
|
17432
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template(rf, ctx) {
|
|
17433
|
+
if (rf & 1) {
|
|
17434
|
+
i0.ɵɵelementStart(0, "td", 46);
|
|
17435
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 58);
|
|
17292
17436
|
i0.ɵɵelementEnd();
|
|
17293
17437
|
}
|
|
17294
17438
|
if (rf & 2) {
|
|
17295
|
-
const
|
|
17296
|
-
i0.ɵɵ
|
|
17439
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17440
|
+
const ctx_r193 = i0.ɵɵnextContext(3);
|
|
17441
|
+
const _r13 = i0.ɵɵreference(15);
|
|
17442
|
+
const _r15 = i0.ɵɵreference(17);
|
|
17297
17443
|
i0.ɵɵadvance(1);
|
|
17298
|
-
i0.ɵɵ
|
|
17444
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r193.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, row_r191));
|
|
17299
17445
|
}
|
|
17300
17446
|
}
|
|
17301
|
-
function
|
|
17447
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
17448
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template(rf, ctx) {
|
|
17302
17449
|
if (rf & 1) {
|
|
17303
|
-
i0.ɵɵ
|
|
17450
|
+
const _r209 = i0.ɵɵgetCurrentView();
|
|
17451
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17452
|
+
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); });
|
|
17453
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17454
|
+
i0.ɵɵelementEnd();
|
|
17304
17455
|
}
|
|
17305
17456
|
if (rf & 2) {
|
|
17306
|
-
const
|
|
17307
|
-
|
|
17457
|
+
const ctx_r210 = i0.ɵɵnextContext();
|
|
17458
|
+
const row_r191 = ctx_r210.$implicit;
|
|
17459
|
+
const rowIndex_r192 = ctx_r210.index;
|
|
17460
|
+
i0.ɵɵnextContext(3);
|
|
17461
|
+
const _r11 = i0.ɵɵreference(13);
|
|
17462
|
+
i0.ɵɵadvance(1);
|
|
17463
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
17308
17464
|
}
|
|
17309
17465
|
}
|
|
17310
|
-
function
|
|
17466
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
17467
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template(rf, ctx) {
|
|
17311
17468
|
if (rf & 1) {
|
|
17312
|
-
i0.ɵɵ
|
|
17469
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17313
17470
|
}
|
|
17314
17471
|
if (rf & 2) {
|
|
17315
|
-
const
|
|
17316
|
-
|
|
17472
|
+
const ctx_r212 = i0.ɵɵnextContext();
|
|
17473
|
+
const row_r191 = ctx_r212.$implicit;
|
|
17474
|
+
const rowIndex_r192 = ctx_r212.index;
|
|
17475
|
+
i0.ɵɵnextContext(3);
|
|
17476
|
+
const _r23 = i0.ɵɵreference(25);
|
|
17477
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
17317
17478
|
}
|
|
17318
17479
|
}
|
|
17319
|
-
function
|
|
17480
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
17481
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template(rf, ctx) {
|
|
17320
17482
|
if (rf & 1) {
|
|
17321
|
-
const
|
|
17322
|
-
i0.ɵɵelementStart(0, "
|
|
17323
|
-
i0.ɵɵlistener("click", function
|
|
17324
|
-
i0.ɵɵtemplate(1,
|
|
17325
|
-
i0.ɵɵtext(2);
|
|
17483
|
+
const _r216 = i0.ɵɵgetCurrentView();
|
|
17484
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17485
|
+
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); });
|
|
17486
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17326
17487
|
i0.ɵɵelementEnd();
|
|
17327
17488
|
}
|
|
17328
17489
|
if (rf & 2) {
|
|
17329
|
-
const
|
|
17330
|
-
const
|
|
17331
|
-
|
|
17490
|
+
const ctx_r217 = i0.ɵɵnextContext();
|
|
17491
|
+
const row_r191 = ctx_r217.$implicit;
|
|
17492
|
+
const rowIndex_r192 = ctx_r217.index;
|
|
17493
|
+
i0.ɵɵnextContext(3);
|
|
17494
|
+
const _r11 = i0.ɵɵreference(13);
|
|
17332
17495
|
i0.ɵɵadvance(1);
|
|
17333
|
-
i0.ɵɵproperty("
|
|
17496
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
17497
|
+
}
|
|
17498
|
+
}
|
|
17499
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) {
|
|
17500
|
+
if (rf & 1) {
|
|
17501
|
+
i0.ɵɵelementContainer(0);
|
|
17502
|
+
}
|
|
17503
|
+
}
|
|
17504
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template(rf, ctx) {
|
|
17505
|
+
if (rf & 1) {
|
|
17506
|
+
i0.ɵɵelementStart(0, "span");
|
|
17507
|
+
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);
|
|
17508
|
+
i0.ɵɵelementEnd();
|
|
17509
|
+
}
|
|
17510
|
+
if (rf & 2) {
|
|
17511
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17512
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17513
|
+
const ctx_r220 = i0.ɵɵnextContext(3);
|
|
17334
17514
|
i0.ɵɵadvance(1);
|
|
17335
|
-
i0.ɵɵ
|
|
17515
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r220.getTemplate(column_r218))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, ctx_r220.getCellData(row_r191, column_r218)));
|
|
17516
|
+
}
|
|
17517
|
+
}
|
|
17518
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) {
|
|
17519
|
+
if (rf & 1) {
|
|
17520
|
+
i0.ɵɵelementContainer(0);
|
|
17336
17521
|
}
|
|
17337
17522
|
}
|
|
17338
|
-
function
|
|
17523
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template(rf, ctx) {
|
|
17339
17524
|
if (rf & 1) {
|
|
17340
|
-
i0.ɵɵelementStart(0, "
|
|
17341
|
-
i0.ɵɵtemplate(1,
|
|
17525
|
+
i0.ɵɵelementStart(0, "span");
|
|
17526
|
+
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);
|
|
17342
17527
|
i0.ɵɵelementEnd();
|
|
17343
17528
|
}
|
|
17344
17529
|
if (rf & 2) {
|
|
17345
|
-
const
|
|
17530
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17531
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17532
|
+
const ctx_r221 = i0.ɵɵnextContext(3);
|
|
17346
17533
|
i0.ɵɵadvance(1);
|
|
17347
|
-
i0.ɵɵproperty("
|
|
17534
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r221.tableCellTemplate == null ? null : ctx_r221.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r191, column_r218));
|
|
17348
17535
|
}
|
|
17349
17536
|
}
|
|
17350
|
-
function
|
|
17537
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template(rf, ctx) {
|
|
17351
17538
|
if (rf & 1) {
|
|
17352
|
-
|
|
17353
|
-
i0.ɵɵ
|
|
17354
|
-
i0.ɵɵ
|
|
17355
|
-
|
|
17539
|
+
i0.ɵɵelementStart(0, "span");
|
|
17540
|
+
i0.ɵɵtext(1);
|
|
17541
|
+
i0.ɵɵelementEnd();
|
|
17542
|
+
}
|
|
17543
|
+
if (rf & 2) {
|
|
17544
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17545
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17546
|
+
const ctx_r222 = i0.ɵɵnextContext(3);
|
|
17547
|
+
i0.ɵɵadvance(1);
|
|
17548
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r222.getBooleanLabel(ctx_r222.getCellData(row_r191, column_r218), column_r218), " ");
|
|
17356
17549
|
}
|
|
17357
17550
|
}
|
|
17358
|
-
function
|
|
17551
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template(rf, ctx) {
|
|
17359
17552
|
if (rf & 1) {
|
|
17360
|
-
i0.ɵɵ
|
|
17361
|
-
i0.ɵɵ
|
|
17553
|
+
i0.ɵɵelementStart(0, "span");
|
|
17554
|
+
i0.ɵɵtext(1);
|
|
17555
|
+
i0.ɵɵpipe(2, "currency");
|
|
17556
|
+
i0.ɵɵelementEnd();
|
|
17362
17557
|
}
|
|
17363
17558
|
if (rf & 2) {
|
|
17364
|
-
const
|
|
17365
|
-
i0.ɵɵ
|
|
17559
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17560
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17561
|
+
const ctx_r223 = i0.ɵɵnextContext(3);
|
|
17366
17562
|
i0.ɵɵadvance(1);
|
|
17367
|
-
i0.ɵɵ
|
|
17563
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r223.getCellData(row_r191, column_r218), column_r218.format, "symbol", "1.2-2"), " ");
|
|
17368
17564
|
}
|
|
17369
17565
|
}
|
|
17370
|
-
function
|
|
17566
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template(rf, ctx) {
|
|
17371
17567
|
if (rf & 1) {
|
|
17372
|
-
|
|
17373
|
-
i0.ɵɵ
|
|
17374
|
-
i0.ɵɵ
|
|
17568
|
+
i0.ɵɵelementStart(0, "span");
|
|
17569
|
+
i0.ɵɵtext(1);
|
|
17570
|
+
i0.ɵɵpipe(2, "date");
|
|
17375
17571
|
i0.ɵɵelementEnd();
|
|
17376
17572
|
}
|
|
17377
17573
|
if (rf & 2) {
|
|
17378
|
-
const
|
|
17379
|
-
|
|
17574
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17575
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17576
|
+
const ctx_r224 = i0.ɵɵnextContext(3);
|
|
17577
|
+
i0.ɵɵadvance(1);
|
|
17578
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r224.getCellData(row_r191, column_r218), column_r218.format || "dd/MM/yyyy"), " ");
|
|
17380
17579
|
}
|
|
17381
17580
|
}
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17581
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template(rf, ctx) {
|
|
17582
|
+
if (rf & 1) {
|
|
17583
|
+
i0.ɵɵelementStart(0, "span");
|
|
17584
|
+
i0.ɵɵtext(1);
|
|
17585
|
+
i0.ɵɵpipe(2, "po_time");
|
|
17586
|
+
i0.ɵɵelementEnd();
|
|
17587
|
+
}
|
|
17588
|
+
if (rf & 2) {
|
|
17589
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17590
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17591
|
+
const ctx_r225 = i0.ɵɵnextContext(3);
|
|
17592
|
+
i0.ɵɵadvance(1);
|
|
17593
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r225.getCellData(row_r191, column_r218), column_r218.format || "HH:mm:ss.ffffff"), " ");
|
|
17594
|
+
}
|
|
17595
|
+
}
|
|
17596
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template(rf, ctx) {
|
|
17597
|
+
if (rf & 1) {
|
|
17598
|
+
i0.ɵɵelementStart(0, "span");
|
|
17599
|
+
i0.ɵɵtext(1);
|
|
17600
|
+
i0.ɵɵpipe(2, "date");
|
|
17601
|
+
i0.ɵɵelementEnd();
|
|
17602
|
+
}
|
|
17603
|
+
if (rf & 2) {
|
|
17604
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17605
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17606
|
+
const ctx_r226 = i0.ɵɵnextContext(3);
|
|
17607
|
+
i0.ɵɵadvance(1);
|
|
17608
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r226.getCellData(row_r191, column_r218), column_r218.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
17609
|
+
}
|
|
17610
|
+
}
|
|
17611
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template(rf, ctx) {
|
|
17612
|
+
if (rf & 1) {
|
|
17613
|
+
i0.ɵɵelementStart(0, "span");
|
|
17614
|
+
i0.ɵɵtext(1);
|
|
17615
|
+
i0.ɵɵelementEnd();
|
|
17616
|
+
}
|
|
17617
|
+
if (rf & 2) {
|
|
17618
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17619
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17620
|
+
const ctx_r227 = i0.ɵɵnextContext(3);
|
|
17621
|
+
i0.ɵɵadvance(1);
|
|
17622
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r227.formatNumber(ctx_r227.getCellData(row_r191, column_r218), column_r218.format), " ");
|
|
17623
|
+
}
|
|
17624
|
+
}
|
|
17625
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) {
|
|
17626
|
+
if (rf & 1) {
|
|
17627
|
+
const _r253 = i0.ɵɵgetCurrentView();
|
|
17628
|
+
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
17629
|
+
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); });
|
|
17630
|
+
i0.ɵɵelementEnd();
|
|
17631
|
+
}
|
|
17632
|
+
if (rf & 2) {
|
|
17633
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17634
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17635
|
+
const ctx_r228 = i0.ɵɵnextContext(3);
|
|
17636
|
+
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));
|
|
17637
|
+
}
|
|
17638
|
+
}
|
|
17639
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) {
|
|
17640
|
+
if (rf & 1) {
|
|
17641
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
17642
|
+
}
|
|
17643
|
+
if (rf & 2) {
|
|
17644
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17645
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17646
|
+
const ctx_r229 = i0.ɵɵnextContext(3);
|
|
17647
|
+
i0.ɵɵproperty("p-column", column_r218)("p-icons", ctx_r229.getColumnIcons(row_r191, column_r218))("p-row", row_r191);
|
|
17648
|
+
}
|
|
17649
|
+
}
|
|
17650
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template(rf, ctx) {
|
|
17651
|
+
if (rf & 1) {
|
|
17652
|
+
i0.ɵɵelementStart(0, "span");
|
|
17653
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
17654
|
+
i0.ɵɵelementEnd();
|
|
17655
|
+
}
|
|
17656
|
+
if (rf & 2) {
|
|
17657
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17658
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17659
|
+
const ctx_r230 = i0.ɵɵnextContext(3);
|
|
17660
|
+
i0.ɵɵadvance(1);
|
|
17661
|
+
i0.ɵɵproperty("p-subtitle", ctx_r230.getSubtitleColumn(row_r191, column_r218));
|
|
17662
|
+
}
|
|
17663
|
+
}
|
|
17664
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template(rf, ctx) {
|
|
17665
|
+
if (rf & 1) {
|
|
17666
|
+
i0.ɵɵelementStart(0, "span");
|
|
17667
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
17668
|
+
i0.ɵɵelementEnd();
|
|
17669
|
+
}
|
|
17670
|
+
if (rf & 2) {
|
|
17671
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17672
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17673
|
+
const ctx_r231 = i0.ɵɵnextContext(3);
|
|
17674
|
+
i0.ɵɵadvance(1);
|
|
17675
|
+
i0.ɵɵproperty("p-value", ctx_r231.getColumnLabel(row_r191, column_r218));
|
|
17676
|
+
}
|
|
17677
|
+
}
|
|
17678
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template(rf, ctx) {
|
|
17679
|
+
if (rf & 1) {
|
|
17680
|
+
i0.ɵɵelementStart(0, "span");
|
|
17681
|
+
i0.ɵɵtext(1);
|
|
17682
|
+
i0.ɵɵelementEnd();
|
|
17683
|
+
}
|
|
17684
|
+
if (rf & 2) {
|
|
17685
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17686
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17687
|
+
const ctx_r232 = i0.ɵɵnextContext(3);
|
|
17688
|
+
i0.ɵɵadvance(1);
|
|
17689
|
+
i0.ɵɵtextInterpolate(ctx_r232.getCellData(row_r191, column_r218));
|
|
17690
|
+
}
|
|
17691
|
+
}
|
|
17692
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf, ctx) {
|
|
17693
|
+
if (rf & 1) {
|
|
17694
|
+
const _r266 = i0.ɵɵgetCurrentView();
|
|
17695
|
+
i0.ɵɵelementStart(0, "td", 73);
|
|
17696
|
+
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:;"; });
|
|
17697
|
+
i0.ɵɵelementStart(1, "div", 74);
|
|
17698
|
+
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(); });
|
|
17699
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
17700
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
17701
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
17702
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
17703
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
17704
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
17705
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
17706
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
17707
|
+
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);
|
|
17708
|
+
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);
|
|
17709
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
17710
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
17711
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
17712
|
+
i0.ɵɵelementEnd()();
|
|
17713
|
+
}
|
|
17714
|
+
if (rf & 2) {
|
|
17715
|
+
const column_r218 = ctx.$implicit;
|
|
17716
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17717
|
+
const ctx_r197 = i0.ɵɵnextContext(3);
|
|
17718
|
+
i0.ɵɵstyleProp("width", column_r218.width)("max-width", column_r218.width)("min-width", column_r218.width);
|
|
17719
|
+
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");
|
|
17720
|
+
i0.ɵɵproperty("ngClass", ctx_r197.getClassColor(row_r191, column_r218));
|
|
17721
|
+
i0.ɵɵadvance(1);
|
|
17722
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r197.hideTextOverflow);
|
|
17723
|
+
i0.ɵɵproperty("ngSwitch", column_r218.type)("p-tooltip", ctx_r197.tooltipText);
|
|
17724
|
+
i0.ɵɵadvance(1);
|
|
17725
|
+
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
17726
|
+
i0.ɵɵadvance(1);
|
|
17727
|
+
i0.ɵɵproperty("ngSwitchCase", "cellTemplate");
|
|
17728
|
+
i0.ɵɵadvance(1);
|
|
17729
|
+
i0.ɵɵproperty("ngSwitchCase", "boolean");
|
|
17730
|
+
i0.ɵɵadvance(1);
|
|
17731
|
+
i0.ɵɵproperty("ngSwitchCase", "currency");
|
|
17732
|
+
i0.ɵɵadvance(1);
|
|
17733
|
+
i0.ɵɵproperty("ngSwitchCase", "date");
|
|
17734
|
+
i0.ɵɵadvance(1);
|
|
17735
|
+
i0.ɵɵproperty("ngSwitchCase", "time");
|
|
17736
|
+
i0.ɵɵadvance(1);
|
|
17737
|
+
i0.ɵɵproperty("ngSwitchCase", "dateTime");
|
|
17738
|
+
i0.ɵɵadvance(1);
|
|
17739
|
+
i0.ɵɵproperty("ngSwitchCase", "number");
|
|
17740
|
+
i0.ɵɵadvance(1);
|
|
17741
|
+
i0.ɵɵproperty("ngSwitchCase", "link");
|
|
17742
|
+
i0.ɵɵadvance(1);
|
|
17743
|
+
i0.ɵɵproperty("ngSwitchCase", "icon");
|
|
17744
|
+
i0.ɵɵadvance(1);
|
|
17745
|
+
i0.ɵɵproperty("ngSwitchCase", "subtitle");
|
|
17746
|
+
i0.ɵɵadvance(1);
|
|
17747
|
+
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
17748
|
+
}
|
|
17749
|
+
}
|
|
17750
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
17751
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template(rf, ctx) {
|
|
17752
|
+
if (rf & 1) {
|
|
17753
|
+
const _r275 = i0.ɵɵgetCurrentView();
|
|
17754
|
+
i0.ɵɵelementStart(0, "td", 71);
|
|
17755
|
+
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); });
|
|
17756
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
17757
|
+
i0.ɵɵelementEnd();
|
|
17758
|
+
}
|
|
17759
|
+
if (rf & 2) {
|
|
17760
|
+
const ctx_r276 = i0.ɵɵnextContext();
|
|
17761
|
+
const row_r191 = ctx_r276.$implicit;
|
|
17762
|
+
const rowIndex_r192 = ctx_r276.index;
|
|
17763
|
+
i0.ɵɵnextContext(3);
|
|
17764
|
+
const _r11 = i0.ɵɵreference(13);
|
|
17765
|
+
i0.ɵɵadvance(1);
|
|
17766
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
17767
|
+
}
|
|
17768
|
+
}
|
|
17769
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
17770
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template(rf, ctx) {
|
|
17771
|
+
if (rf & 1) {
|
|
17772
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17773
|
+
}
|
|
17774
|
+
if (rf & 2) {
|
|
17775
|
+
const ctx_r278 = i0.ɵɵnextContext();
|
|
17776
|
+
const row_r191 = ctx_r278.$implicit;
|
|
17777
|
+
const rowIndex_r192 = ctx_r278.index;
|
|
17778
|
+
i0.ɵɵnextContext(3);
|
|
17779
|
+
const _r23 = i0.ɵɵreference(25);
|
|
17780
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r191, rowIndex_r192));
|
|
17781
|
+
}
|
|
17782
|
+
}
|
|
17783
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template(rf, ctx) {
|
|
17784
|
+
if (rf & 1) {
|
|
17785
|
+
i0.ɵɵelementContainerStart(0);
|
|
17786
|
+
i0.ɵɵelement(1, "td", 88);
|
|
17787
|
+
i0.ɵɵelementContainerEnd();
|
|
17788
|
+
}
|
|
17789
|
+
}
|
|
17790
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template(rf, ctx) {
|
|
17791
|
+
if (rf & 1) {
|
|
17792
|
+
i0.ɵɵelement(0, "td", 84);
|
|
17793
|
+
}
|
|
17794
|
+
}
|
|
17795
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
17796
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template(rf, ctx) {
|
|
17797
|
+
if (rf & 1) {
|
|
17798
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
17799
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
17800
|
+
i0.ɵɵelementEnd()();
|
|
17801
|
+
}
|
|
17802
|
+
if (rf & 2) {
|
|
17803
|
+
const ctx_r280 = i0.ɵɵnextContext();
|
|
17804
|
+
const row_r191 = ctx_r280.$implicit;
|
|
17805
|
+
const rowIndex_r192 = ctx_r280.index;
|
|
17806
|
+
const ctx_r202 = i0.ɵɵnextContext(3);
|
|
17807
|
+
i0.ɵɵadvance(1);
|
|
17808
|
+
i0.ɵɵproperty("colSpan", ctx_r202.columnCountForMasterDetail);
|
|
17809
|
+
i0.ɵɵadvance(1);
|
|
17810
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r202.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c13, row_r191, rowIndex_r192));
|
|
17811
|
+
}
|
|
17812
|
+
}
|
|
17813
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template(rf, ctx) {
|
|
17814
|
+
if (rf & 1) {
|
|
17815
|
+
const _r282 = i0.ɵɵgetCurrentView();
|
|
17816
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
17817
|
+
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); });
|
|
17818
|
+
i0.ɵɵelementEnd()()();
|
|
17819
|
+
}
|
|
17820
|
+
if (rf & 2) {
|
|
17821
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17822
|
+
const ctx_r203 = i0.ɵɵnextContext(3);
|
|
17823
|
+
i0.ɵɵadvance(1);
|
|
17824
|
+
i0.ɵɵproperty("colSpan", ctx_r203.columnCountForMasterDetail);
|
|
17825
|
+
i0.ɵɵadvance(1);
|
|
17826
|
+
i0.ɵɵproperty("p-selectable", ctx_r203.selectable && !ctx_r203.detailHideSelect)("p-detail", ctx_r203.columnMasterDetail.detail)("p-items", row_r191[ctx_r203.nameColumnDetail]);
|
|
17827
|
+
}
|
|
17828
|
+
}
|
|
17829
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template(rf, ctx) {
|
|
17830
|
+
if (rf & 1) {
|
|
17831
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
17832
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template, 2, 4, "td", 39);
|
|
17833
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
17834
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template, 1, 5, null, 23);
|
|
17835
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
17836
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template, 15, 31, "td", 69);
|
|
17837
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
17838
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template, 1, 5, null, 23);
|
|
17839
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
17840
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
17841
|
+
i0.ɵɵelementEnd();
|
|
17842
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
17843
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
17844
|
+
i0.ɵɵelementEnd();
|
|
17845
|
+
}
|
|
17846
|
+
if (rf & 2) {
|
|
17847
|
+
const row_r191 = ctx.$implicit;
|
|
17848
|
+
const rowIndex_r192 = ctx.index;
|
|
17849
|
+
const ctx_r190 = i0.ɵɵnextContext(3);
|
|
17850
|
+
i0.ɵɵadvance(1);
|
|
17851
|
+
i0.ɵɵclassProp("po-table-row-active", row_r191.$selected || row_r191.$selected === null && ctx_r190.selectable);
|
|
17852
|
+
i0.ɵɵadvance(1);
|
|
17853
|
+
i0.ɵɵproperty("ngIf", ctx_r190.selectable);
|
|
17854
|
+
i0.ɵɵadvance(1);
|
|
17855
|
+
i0.ɵɵproperty("ngIf", ctx_r190.columnMasterDetail && !ctx_r190.hideDetail && !ctx_r190.hasRowTemplate);
|
|
17856
|
+
i0.ɵɵadvance(1);
|
|
17857
|
+
i0.ɵɵproperty("ngIf", !ctx_r190.actionRight && (ctx_r190.visibleActions.length > 1 || ctx_r190.isSingleAction));
|
|
17858
|
+
i0.ɵɵadvance(1);
|
|
17859
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasRowTemplate && !ctx_r190.hasRowTemplateWithArrowDirectionRight);
|
|
17860
|
+
i0.ɵɵadvance(1);
|
|
17861
|
+
i0.ɵɵproperty("ngForOf", ctx_r190.mainColumns)("ngForTrackBy", ctx_r190.trackBy);
|
|
17862
|
+
i0.ɵɵadvance(1);
|
|
17863
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasRowTemplateWithArrowDirectionRight);
|
|
17864
|
+
i0.ɵɵadvance(1);
|
|
17865
|
+
i0.ɵɵproperty("ngIf", ctx_r190.actionRight);
|
|
17866
|
+
i0.ɵɵadvance(1);
|
|
17867
|
+
i0.ɵɵproperty("ngIf", !ctx_r190.actionRight && (ctx_r190.visibleActions.length > 1 || ctx_r190.isSingleAction) && !ctx_r190.hideColumnsManager);
|
|
17868
|
+
i0.ɵɵadvance(1);
|
|
17869
|
+
i0.ɵɵproperty("ngIf", !ctx_r190.hasVisibleActions && !ctx_r190.hideColumnsManager && !ctx_r190.hasRowTemplateWithArrowDirectionRight);
|
|
17870
|
+
i0.ɵɵadvance(1);
|
|
17871
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasMainColumns && ctx_r190.hasRowTemplate && row_r191.$showDetail && ctx_r190.isShowRowTemplate(row_r191, rowIndex_r192));
|
|
17872
|
+
i0.ɵɵadvance(1);
|
|
17873
|
+
i0.ɵɵproperty("ngIf", ctx_r190.hasMainColumns && ctx_r190.isShowMasterDetail(row_r191));
|
|
17874
|
+
}
|
|
17875
|
+
}
|
|
17876
|
+
function PoTableComponent_ng_template_8_ng_container_12_Template(rf, ctx) {
|
|
17877
|
+
if (rf & 1) {
|
|
17878
|
+
i0.ɵɵelementContainerStart(0);
|
|
17879
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template, 13, 14, "tbody", 66);
|
|
17880
|
+
i0.ɵɵelementContainerEnd();
|
|
17881
|
+
}
|
|
17882
|
+
if (rf & 2) {
|
|
17883
|
+
const ctx_r173 = i0.ɵɵnextContext(2);
|
|
17884
|
+
i0.ɵɵadvance(1);
|
|
17885
|
+
i0.ɵɵproperty("ngForOf", ctx_r173.items)("ngForTrackBy", ctx_r173.trackBy);
|
|
17886
|
+
}
|
|
17887
|
+
}
|
|
17888
|
+
function PoTableComponent_ng_template_8_Template(rf, ctx) {
|
|
17889
|
+
if (rf & 1) {
|
|
17890
|
+
i0.ɵɵelementStart(0, "table", 38)(1, "thead")(2, "tr");
|
|
17891
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_Template, 4, 4, "th", 39);
|
|
17892
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_th_4_Template, 1, 0, "th", 40);
|
|
17893
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_th_5_Template, 1, 4, "th", 41);
|
|
17894
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_th_6_Template, 3, 3, "th", 42);
|
|
17895
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_th_7_Template, 4, 20, "th", 43);
|
|
17896
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_th_8_Template, 1, 0, "th", 40);
|
|
17897
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_th_9_Template, 1, 4, "th", 44);
|
|
17898
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_th_10_Template, 5, 13, "th", 45);
|
|
17899
|
+
i0.ɵɵelementEnd()();
|
|
17900
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_tbody_11_Template, 5, 2, "tbody", 62);
|
|
17901
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_Template, 2, 2, "ng-container", 23);
|
|
17902
|
+
i0.ɵɵelementEnd();
|
|
17903
|
+
}
|
|
17904
|
+
if (rf & 2) {
|
|
17905
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
17906
|
+
i0.ɵɵclassProp("po-table-striped", ctx_r9.striped)("po-table-layout-fixed", ctx_r9.hideTextOverflow);
|
|
17907
|
+
i0.ɵɵadvance(2);
|
|
17908
|
+
i0.ɵɵclassProp("po-table-header", !ctx_r9.height);
|
|
17909
|
+
i0.ɵɵadvance(1);
|
|
17910
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasSelectableColumn);
|
|
17911
|
+
i0.ɵɵadvance(1);
|
|
17912
|
+
i0.ɵɵproperty("ngIf", (ctx_r9.hasMasterDetailColumn || ctx_r9.hasRowTemplate) && !ctx_r9.hasRowTemplateWithArrowDirectionRight);
|
|
17913
|
+
i0.ɵɵadvance(1);
|
|
17914
|
+
i0.ɵɵproperty("ngIf", !ctx_r9.actionRight && (ctx_r9.visibleActions.length > 1 || ctx_r9.isSingleAction));
|
|
17915
|
+
i0.ɵɵadvance(1);
|
|
17916
|
+
i0.ɵɵproperty("ngIf", !ctx_r9.hasMainColumns);
|
|
17917
|
+
i0.ɵɵadvance(1);
|
|
17918
|
+
i0.ɵɵproperty("ngForOf", ctx_r9.mainColumns)("ngForTrackBy", ctx_r9.trackBy);
|
|
17919
|
+
i0.ɵɵadvance(1);
|
|
17920
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasRowTemplateWithArrowDirectionRight && (ctx_r9.hasVisibleActions || ctx_r9.hideColumnsManager));
|
|
17921
|
+
i0.ɵɵadvance(1);
|
|
17922
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasVisibleActions && ctx_r9.hideColumnsManager && ctx_r9.actionRight);
|
|
17923
|
+
i0.ɵɵadvance(1);
|
|
17924
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasValidColumns && !ctx_r9.hideColumnsManager);
|
|
17925
|
+
i0.ɵɵadvance(1);
|
|
17926
|
+
i0.ɵɵproperty("ngIf", !ctx_r9.hasItems || !ctx_r9.hasMainColumns);
|
|
17927
|
+
i0.ɵɵadvance(1);
|
|
17928
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasMainColumns);
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
function PoTableComponent_ng_template_12_span_0_Template(rf, ctx) {
|
|
17932
|
+
if (rf & 1) {
|
|
17933
|
+
i0.ɵɵelement(0, "span", 90);
|
|
17934
|
+
}
|
|
17935
|
+
if (rf & 2) {
|
|
17936
|
+
const row_r284 = i0.ɵɵnextContext().row;
|
|
17937
|
+
i0.ɵɵclassProp("po-icon-arrow-up", row_r284.$showDetail)("po-icon-arrow-down", !row_r284.$showDetail);
|
|
17938
|
+
}
|
|
17939
|
+
}
|
|
17940
|
+
function PoTableComponent_ng_template_12_Template(rf, ctx) {
|
|
17941
|
+
if (rf & 1) {
|
|
17942
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_12_span_0_Template, 1, 4, "span", 89);
|
|
17943
|
+
}
|
|
17944
|
+
if (rf & 2) {
|
|
17945
|
+
const row_r284 = ctx.row;
|
|
17946
|
+
const rowIndex_r285 = ctx.rowIndex;
|
|
17947
|
+
const ctx_r12 = i0.ɵɵnextContext();
|
|
17948
|
+
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(row_r284) && !ctx_r12.hasRowTemplate || ctx_r12.isShowRowTemplate(row_r284, rowIndex_r285) && ctx_r12.hasRowTemplate);
|
|
17949
|
+
}
|
|
17950
|
+
}
|
|
17951
|
+
function PoTableComponent_ng_template_14_Template(rf, ctx) {
|
|
17952
|
+
if (rf & 1) {
|
|
17953
|
+
const _r290 = i0.ɵɵgetCurrentView();
|
|
17954
|
+
i0.ɵɵelement(0, "input", 91);
|
|
17955
|
+
i0.ɵɵelementStart(1, "label", 92);
|
|
17956
|
+
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:;"; });
|
|
17957
|
+
i0.ɵɵelementEnd();
|
|
17958
|
+
}
|
|
17959
|
+
if (rf & 2) {
|
|
17960
|
+
const row_r288 = ctx.$implicit;
|
|
17961
|
+
i0.ɵɵclassProp("po-table-radio-checked", row_r288.$selected);
|
|
17962
|
+
}
|
|
17963
|
+
}
|
|
17964
|
+
function PoTableComponent_ng_template_16_Template(rf, ctx) {
|
|
17965
|
+
if (rf & 1) {
|
|
17966
|
+
const _r293 = i0.ɵɵgetCurrentView();
|
|
17967
|
+
i0.ɵɵelement(0, "input", 49);
|
|
17968
|
+
i0.ɵɵelementStart(1, "label", 50);
|
|
17969
|
+
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:;"; });
|
|
17970
|
+
i0.ɵɵelementEnd();
|
|
17971
|
+
}
|
|
17972
|
+
if (rf & 2) {
|
|
17973
|
+
const row_r291 = ctx.$implicit;
|
|
17974
|
+
i0.ɵɵclassProp("po-table-checkbox-checked", row_r291.$selected);
|
|
17975
|
+
}
|
|
17976
|
+
}
|
|
17977
|
+
function PoTableComponent_ng_template_18_span_4_Template(rf, ctx) {
|
|
17978
|
+
if (rf & 1) {
|
|
17979
|
+
i0.ɵɵelement(0, "span");
|
|
17980
|
+
}
|
|
17981
|
+
if (rf & 2) {
|
|
17982
|
+
const column_r294 = i0.ɵɵnextContext().$implicit;
|
|
17983
|
+
const ctx_r296 = i0.ɵɵnextContext();
|
|
17984
|
+
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);
|
|
17985
|
+
}
|
|
17986
|
+
}
|
|
17987
|
+
function PoTableComponent_ng_template_18_Template(rf, ctx) {
|
|
17988
|
+
if (rf & 1) {
|
|
17989
|
+
const _r299 = i0.ɵɵgetCurrentView();
|
|
17990
|
+
i0.ɵɵelementStart(0, "span", 93, 94);
|
|
17991
|
+
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(); });
|
|
17992
|
+
i0.ɵɵtext(2);
|
|
17993
|
+
i0.ɵɵpipe(3, "titlecase");
|
|
17994
|
+
i0.ɵɵelementEnd();
|
|
17995
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_18_span_4_Template, 1, 6, "span", 95);
|
|
17996
|
+
}
|
|
17997
|
+
if (rf & 2) {
|
|
17998
|
+
const column_r294 = ctx.$implicit;
|
|
17999
|
+
const ctx_r18 = i0.ɵɵnextContext();
|
|
18000
|
+
i0.ɵɵproperty("p-tooltip", ctx_r18.tooltipText);
|
|
18001
|
+
i0.ɵɵadvance(2);
|
|
18002
|
+
i0.ɵɵtextInterpolate1(" ", column_r294.label || i0.ɵɵpipeBind1(3, 3, column_r294.property), " ");
|
|
18003
|
+
i0.ɵɵadvance(2);
|
|
18004
|
+
i0.ɵɵproperty("ngIf", ctx_r18.sort && column_r294.sortable !== false);
|
|
18005
|
+
}
|
|
18006
|
+
}
|
|
18007
|
+
function PoTableComponent_ng_template_20_Template(rf, ctx) {
|
|
18008
|
+
if (rf & 1) {
|
|
18009
|
+
i0.ɵɵelementStart(0, "div", 96);
|
|
18010
|
+
i0.ɵɵtext(1);
|
|
18011
|
+
i0.ɵɵelementEnd();
|
|
18012
|
+
}
|
|
18013
|
+
if (rf & 2) {
|
|
18014
|
+
const ctx_r20 = i0.ɵɵnextContext();
|
|
18015
|
+
i0.ɵɵstyleProp("width", ctx_r20.noColumnsHeader == null ? null : ctx_r20.noColumnsHeader.nativeElement.offsetWidth, "px");
|
|
18016
|
+
i0.ɵɵadvance(1);
|
|
18017
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r20.hasValidColumns ? ctx_r20.literals.noVisibleColumn : ctx_r20.literals.noColumns, " ");
|
|
18018
|
+
}
|
|
18019
|
+
}
|
|
18020
|
+
function PoTableComponent_ng_template_22_Template(rf, ctx) {
|
|
18021
|
+
if (rf & 1) {
|
|
18022
|
+
i0.ɵɵtext(0);
|
|
18023
|
+
}
|
|
18024
|
+
if (rf & 2) {
|
|
18025
|
+
const ctx_r22 = i0.ɵɵnextContext();
|
|
18026
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r22.hasValidColumns ? ctx_r22.literals.noVisibleColumn : ctx_r22.literals.noColumns, "\n");
|
|
18027
|
+
}
|
|
18028
|
+
}
|
|
18029
|
+
function PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template(rf, ctx) {
|
|
18030
|
+
if (rf & 1) {
|
|
18031
|
+
i0.ɵɵelement(0, "po-icon", 103);
|
|
18032
|
+
}
|
|
18033
|
+
if (rf & 2) {
|
|
18034
|
+
const ctx_r306 = i0.ɵɵnextContext(4);
|
|
18035
|
+
i0.ɵɵproperty("p-icon", ctx_r306.firstAction.icon);
|
|
18036
|
+
}
|
|
18037
|
+
}
|
|
18038
|
+
function PoTableComponent_ng_template_24_td_0_div_1_Template(rf, ctx) {
|
|
18039
|
+
if (rf & 1) {
|
|
18040
|
+
const _r309 = i0.ɵɵgetCurrentView();
|
|
18041
|
+
i0.ɵɵelementStart(0, "div", 101);
|
|
18042
|
+
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); });
|
|
18043
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon", 102);
|
|
18044
|
+
i0.ɵɵtext(2);
|
|
18045
|
+
i0.ɵɵelementEnd();
|
|
18046
|
+
}
|
|
18047
|
+
if (rf & 2) {
|
|
18048
|
+
const row_r301 = i0.ɵɵnextContext(2).row;
|
|
18049
|
+
const ctx_r305 = i0.ɵɵnextContext();
|
|
18050
|
+
i0.ɵɵclassProp("po-table-action-disabled", ctx_r305.firstAction.disabled ? ctx_r305.validateTableAction(row_r301, ctx_r305.firstAction) : false);
|
|
18051
|
+
i0.ɵɵadvance(1);
|
|
18052
|
+
i0.ɵɵproperty("ngIf", ctx_r305.firstAction.icon);
|
|
18053
|
+
i0.ɵɵadvance(1);
|
|
18054
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r305.firstAction.label, " ");
|
|
18055
|
+
}
|
|
18056
|
+
}
|
|
18057
|
+
function PoTableComponent_ng_template_24_td_0_Template(rf, ctx) {
|
|
18058
|
+
if (rf & 1) {
|
|
18059
|
+
i0.ɵɵelementStart(0, "td", 99);
|
|
18060
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_Template, 3, 4, "div", 100);
|
|
18061
|
+
i0.ɵɵelementEnd();
|
|
18062
|
+
}
|
|
18063
|
+
if (rf & 2) {
|
|
18064
|
+
const ctx_r303 = i0.ɵɵnextContext(2);
|
|
18065
|
+
i0.ɵɵadvance(1);
|
|
18066
|
+
i0.ɵɵproperty("ngIf", ctx_r303.firstAction.visible !== false);
|
|
18067
|
+
}
|
|
18068
|
+
}
|
|
18069
|
+
function PoTableComponent_ng_template_24_td_1_Template(rf, ctx) {
|
|
18070
|
+
if (rf & 1) {
|
|
18071
|
+
const _r314 = i0.ɵɵgetCurrentView();
|
|
18072
|
+
i0.ɵɵelementStart(0, "td", 104)(1, "span", 105, 106);
|
|
18073
|
+
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); });
|
|
18074
|
+
i0.ɵɵelementEnd()();
|
|
18075
|
+
}
|
|
18076
|
+
}
|
|
18077
|
+
function PoTableComponent_ng_template_24_Template(rf, ctx) {
|
|
18078
|
+
if (rf & 1) {
|
|
18079
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_24_td_0_Template, 2, 1, "td", 97);
|
|
18080
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_1_Template, 3, 0, "td", 98);
|
|
18081
|
+
}
|
|
18082
|
+
if (rf & 2) {
|
|
18083
|
+
const ctx_r24 = i0.ɵɵnextContext();
|
|
18084
|
+
i0.ɵɵproperty("ngIf", ctx_r24.isSingleAction);
|
|
18085
|
+
i0.ɵɵadvance(1);
|
|
18086
|
+
i0.ɵɵproperty("ngIf", ctx_r24.visibleActions.length > 1);
|
|
18087
|
+
}
|
|
18088
|
+
}
|
|
18089
|
+
function PoTableComponent_po_table_column_manager_26_Template(rf, ctx) {
|
|
18090
|
+
if (rf & 1) {
|
|
18091
|
+
const _r316 = i0.ɵɵgetCurrentView();
|
|
18092
|
+
i0.ɵɵelementStart(0, "po-table-column-manager", 107);
|
|
18093
|
+
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); });
|
|
18094
|
+
i0.ɵɵelementEnd();
|
|
18095
|
+
}
|
|
18096
|
+
if (rf & 2) {
|
|
18097
|
+
const ctx_r25 = i0.ɵɵnextContext();
|
|
18098
|
+
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);
|
|
18099
|
+
}
|
|
18100
|
+
}
|
|
18101
|
+
/**
|
|
18102
|
+
* @docsExtends PoTableBaseComponent
|
|
18103
|
+
*
|
|
18104
|
+
* @example
|
|
18105
|
+
*
|
|
18106
|
+
* <example name="po-table-basic" title="PO Table Basic">
|
|
18107
|
+
* <file name="sample-po-table-basic/sample-po-table-basic.component.ts"> </file>
|
|
18108
|
+
* <file name="sample-po-table-basic/sample-po-table-basic.component.html"> </file>
|
|
18109
|
+
* </example>
|
|
18110
|
+
*
|
|
18111
|
+
* <example name="po-table-labs" title="PO Table Labs">
|
|
18112
|
+
* <file name="sample-po-table-labs/sample-po-table-labs.component.ts"> </file>
|
|
18113
|
+
* <file name="sample-po-table-labs/sample-po-table-labs.component.html"> </file>
|
|
18114
|
+
* <file name="sample-po-table-labs/sample-po-table-labs.component.e2e-spec.ts"> </file>
|
|
18115
|
+
* <file name="sample-po-table-labs/sample-po-table-labs.component.po.ts"> </file>
|
|
18116
|
+
* <file name="sample-po-table-labs/sample-po-table-labs.service.ts"> </file>
|
|
18117
|
+
* </example>
|
|
17399
18118
|
*
|
|
17400
18119
|
* <example name="po-table-with-api" title="PO Table using API">
|
|
17401
18120
|
* <file name="sample-po-table-with-api/sample-po-table-with-api.component.ts"> </file>
|
|
@@ -17696,6 +18415,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17696
18415
|
onChangeVisibleColumns(columns) {
|
|
17697
18416
|
this.changeVisibleColumns.emit(columns);
|
|
17698
18417
|
}
|
|
18418
|
+
onColumnRestoreManager(value) {
|
|
18419
|
+
this.columnRestoreManager.emit(value);
|
|
18420
|
+
}
|
|
17699
18421
|
onVisibleColumnsChange(columns) {
|
|
17700
18422
|
this.columns = columns;
|
|
17701
18423
|
this.changeDetector.detectChanges();
|
|
@@ -17770,6 +18492,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17770
18492
|
}
|
|
17771
18493
|
return template.templateRef;
|
|
17772
18494
|
}
|
|
18495
|
+
syncronizeHorizontalScroll() {
|
|
18496
|
+
this.poTableThead.nativeElement.scrollLeft = this.poTableTbody.nativeElement.scrollLeft;
|
|
18497
|
+
}
|
|
17773
18498
|
calculateHeightTableContainer(height) {
|
|
17774
18499
|
const value = parseFloat(height);
|
|
17775
18500
|
this.heightTableContainer = value ? value - this.getHeightTableFooter() : undefined;
|
|
@@ -17911,10 +18636,11 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17911
18636
|
i0.ɵɵviewQuery(_c2$a, 5, ElementRef);
|
|
17912
18637
|
i0.ɵɵviewQuery(_c3$6, 5, ElementRef);
|
|
17913
18638
|
i0.ɵɵviewQuery(_c4$4, 5, ElementRef);
|
|
17914
|
-
i0.ɵɵviewQuery(_c5$2, 5);
|
|
17915
|
-
i0.ɵɵviewQuery(_c6$
|
|
18639
|
+
i0.ɵɵviewQuery(_c5$2, 5, ElementRef);
|
|
18640
|
+
i0.ɵɵviewQuery(_c6$2, 5);
|
|
17916
18641
|
i0.ɵɵviewQuery(_c7$1, 5, ElementRef);
|
|
17917
|
-
i0.ɵɵviewQuery(_c8$1, 5);
|
|
18642
|
+
i0.ɵɵviewQuery(_c8$1, 5, ElementRef);
|
|
18643
|
+
i0.ɵɵviewQuery(_c9, 5);
|
|
17918
18644
|
}
|
|
17919
18645
|
if (rf & 2) {
|
|
17920
18646
|
let _t;
|
|
@@ -17923,33 +18649,36 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17923
18649
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableFooterElement = _t.first);
|
|
17924
18650
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableWrapperElement = _t.first);
|
|
17925
18651
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableTbody = _t.first);
|
|
18652
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableThead = _t.first);
|
|
17926
18653
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerTarget = _t.first);
|
|
17927
18654
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsIconElement = _t);
|
|
17928
18655
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsElement = _t);
|
|
17929
18656
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headersTable = _t);
|
|
17930
18657
|
}
|
|
17931
|
-
}, features: [i0.ɵɵProvidersFeature([PoDateService]), i0.ɵɵInheritDefinitionFeature], decls:
|
|
18658
|
+
}, 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) {
|
|
17932
18659
|
if (rf & 1) {
|
|
17933
18660
|
i0.ɵɵtemplate(0, PoTableComponent_po_container_0_Template, 2, 2, "po-container", 0);
|
|
17934
18661
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_Template, 8, 10, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
17935
18662
|
i0.ɵɵtemplate(3, PoTableComponent_div_3_Template, 3, 5, "div", 2);
|
|
17936
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_Template,
|
|
17937
|
-
i0.ɵɵ
|
|
17938
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_Template,
|
|
17939
|
-
i0.ɵɵ
|
|
17940
|
-
i0.ɵɵtemplate(12, PoTableComponent_ng_template_12_Template,
|
|
17941
|
-
i0.ɵɵtemplate(14, PoTableComponent_ng_template_14_Template,
|
|
17942
|
-
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template, 2,
|
|
17943
|
-
i0.ɵɵtemplate(18, PoTableComponent_ng_template_18_Template,
|
|
17944
|
-
i0.ɵɵtemplate(20, PoTableComponent_ng_template_20_Template, 2,
|
|
17945
|
-
i0.ɵɵtemplate(22,
|
|
18663
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_Template, 11, 15, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
18664
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_Template, 3, 6, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
18665
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_Template, 13, 17, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
18666
|
+
i0.ɵɵelement(10, "po-popup", 6, 7);
|
|
18667
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_12_Template, 1, 1, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
|
|
18668
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_14_Template, 2, 2, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
18669
|
+
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template, 2, 2, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
18670
|
+
i0.ɵɵtemplate(18, PoTableComponent_ng_template_18_Template, 5, 5, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
|
18671
|
+
i0.ɵɵtemplate(20, PoTableComponent_ng_template_20_Template, 2, 3, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
18672
|
+
i0.ɵɵtemplate(22, PoTableComponent_ng_template_22_Template, 1, 1, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
18673
|
+
i0.ɵɵtemplate(24, PoTableComponent_ng_template_24_Template, 2, 2, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
18674
|
+
i0.ɵɵtemplate(26, PoTableComponent_po_table_column_manager_26_Template, 1, 5, "po-table-column-manager", 15);
|
|
17946
18675
|
}
|
|
17947
18676
|
if (rf & 2) {
|
|
17948
18677
|
const _r1 = i0.ɵɵreference(2);
|
|
17949
18678
|
i0.ɵɵproperty("ngIf", ctx.container)("ngIfElse", _r1);
|
|
17950
18679
|
i0.ɵɵadvance(3);
|
|
17951
18680
|
i0.ɵɵproperty("ngIf", !ctx.infiniteScroll);
|
|
17952
|
-
i0.ɵɵadvance(
|
|
18681
|
+
i0.ɵɵadvance(7);
|
|
17953
18682
|
i0.ɵɵproperty("p-actions", ctx.actions)("p-target", ctx.popupTarget);
|
|
17954
18683
|
i0.ɵɵadvance(16);
|
|
17955
18684
|
i0.ɵɵproperty("ngIf", !ctx.hideColumnsManager);
|
|
@@ -17958,7 +18687,7 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17958
18687
|
(function () {
|
|
17959
18688
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableComponent, [{
|
|
17960
18689
|
type: Component,
|
|
17961
|
-
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" }]
|
|
18690
|
+
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" }]
|
|
17962
18691
|
}], function () { return [{ type: PoDateService }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: i1.DecimalPipe }, { type: i2.Router }, { type: PoTableService }]; }, { tableRowTemplate: [{
|
|
17963
18692
|
type: ContentChild,
|
|
17964
18693
|
args: [PoTableRowTemplateDirective, { static: true }]
|
|
@@ -17983,6 +18712,9 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17983
18712
|
}], poTableTbody: [{
|
|
17984
18713
|
type: ViewChild,
|
|
17985
18714
|
args: ['poTableTbody', { read: ElementRef, static: false }]
|
|
18715
|
+
}], poTableThead: [{
|
|
18716
|
+
type: ViewChild,
|
|
18717
|
+
args: ['poTableThead', { read: ElementRef, static: false }]
|
|
17986
18718
|
}], actionsIconElement: [{
|
|
17987
18719
|
type: ViewChildren,
|
|
17988
18720
|
args: ['actionsIconElement', { read: ElementRef }]
|
|
@@ -18484,6 +19216,9 @@ class PoComboBaseComponent {
|
|
|
18484
19216
|
this.isFiltering = false;
|
|
18485
19217
|
this.previousSearchValue = '';
|
|
18486
19218
|
this.visibleOptions = [];
|
|
19219
|
+
this.page = 1;
|
|
19220
|
+
this.pageSize = 10;
|
|
19221
|
+
this.loading = false;
|
|
18487
19222
|
this.cacheStaticOptions = [];
|
|
18488
19223
|
this.comboOptionsList = [];
|
|
18489
19224
|
this.onModelTouched = null;
|
|
@@ -18499,11 +19234,44 @@ class PoComboBaseComponent {
|
|
|
18499
19234
|
this._placeholder = '';
|
|
18500
19235
|
this._required = false;
|
|
18501
19236
|
this._sort = false;
|
|
19237
|
+
this._infiniteScrollDistance = 100;
|
|
19238
|
+
this._infiniteScroll = false;
|
|
18502
19239
|
// utilizado para fazer o controle de atualizar o model.
|
|
18503
19240
|
// não deve forçar a atualização se o gatilho for o writeValue para não deixar o campo dirty.
|
|
18504
19241
|
this.fromWriteValue = false;
|
|
18505
19242
|
this.language = languageService.getShortLanguage();
|
|
18506
19243
|
}
|
|
19244
|
+
/**
|
|
19245
|
+
* @optional
|
|
19246
|
+
*
|
|
19247
|
+
* @description
|
|
19248
|
+
*
|
|
19249
|
+
* 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.
|
|
19250
|
+
*
|
|
19251
|
+
* @default `false`
|
|
19252
|
+
*/
|
|
19253
|
+
set infiniteScroll(value) {
|
|
19254
|
+
this._infiniteScroll = convertToBoolean(value);
|
|
19255
|
+
}
|
|
19256
|
+
get infiniteScroll() {
|
|
19257
|
+
return this._infiniteScroll;
|
|
19258
|
+
}
|
|
19259
|
+
/**
|
|
19260
|
+
* @optional
|
|
19261
|
+
*
|
|
19262
|
+
* @description
|
|
19263
|
+
*
|
|
19264
|
+
* 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%.
|
|
19265
|
+
*
|
|
19266
|
+
* **Exemplos**
|
|
19267
|
+
* - p-infinite-scroll-distance = 80: Quando atingir 80% do scroll do combo, o `show-more` será disparado.
|
|
19268
|
+
*/
|
|
19269
|
+
set infiniteScrollDistance(value) {
|
|
19270
|
+
this._infiniteScrollDistance = value > 100 || value < 0 ? 100 : value;
|
|
19271
|
+
}
|
|
19272
|
+
get infiniteScrollDistance() {
|
|
19273
|
+
return this._infiniteScrollDistance;
|
|
19274
|
+
}
|
|
18507
19275
|
/** Mensagem apresentada enquanto o campo estiver vazio. */
|
|
18508
19276
|
set placeholder(value) {
|
|
18509
19277
|
this._placeholder = value || '';
|
|
@@ -18662,6 +19430,7 @@ class PoComboBaseComponent {
|
|
|
18662
19430
|
* - 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.
|
|
18663
19431
|
* - O componente interpretará o formato da lista de acordo com a interface utilizada e só exibirá as opções correspondentes à ela.
|
|
18664
19432
|
* - Um agrupamento só será exibido se houver pelo menos uma opção válida.
|
|
19433
|
+
* - Aconselha-se utilizar valores distintos no `label` e `value` dos itens.
|
|
18665
19434
|
*/
|
|
18666
19435
|
set options(options) {
|
|
18667
19436
|
this._options = Array.isArray(options) ? options : [];
|
|
@@ -18858,7 +19627,7 @@ class PoComboBaseComponent {
|
|
|
18858
19627
|
}
|
|
18859
19628
|
updateComboList(options) {
|
|
18860
19629
|
const copyOptions = options || [...this.comboOptionsList];
|
|
18861
|
-
const newOptions = !options && this.selectedValue ? [Object.assign({}, this.selectedOption)] : copyOptions;
|
|
19630
|
+
const newOptions = !options && !this.infiniteScroll && this.selectedValue ? [Object.assign({}, this.selectedOption)] : copyOptions;
|
|
18862
19631
|
this.visibleOptions = newOptions;
|
|
18863
19632
|
if (!this.selectedView && this.visibleOptions.length) {
|
|
18864
19633
|
this.selectedView = copyOptions.find(option => option.value !== undefined);
|
|
@@ -18959,6 +19728,7 @@ class PoComboBaseComponent {
|
|
|
18959
19728
|
this.callModelChange(value);
|
|
18960
19729
|
this.updateSelectedValue(null);
|
|
18961
19730
|
this.updateComboList();
|
|
19731
|
+
this.initInputObservable();
|
|
18962
19732
|
}
|
|
18963
19733
|
configAfterSetFilterService(service) {
|
|
18964
19734
|
if (service) {
|
|
@@ -18994,8 +19764,12 @@ class PoComboBaseComponent {
|
|
|
18994
19764
|
return labelA < labelB ? -1 : labelA > labelB ? 1 : 0;
|
|
18995
19765
|
}
|
|
18996
19766
|
hasDuplicatedOption(options, currentOption, accumulatedGroupOptions) {
|
|
18997
|
-
|
|
18998
|
-
|
|
19767
|
+
if (accumulatedGroupOptions) {
|
|
19768
|
+
return accumulatedGroupOptions.some(option => option.label === currentOption);
|
|
19769
|
+
}
|
|
19770
|
+
else {
|
|
19771
|
+
return options.some(option => option.value === currentOption);
|
|
19772
|
+
}
|
|
18999
19773
|
}
|
|
19000
19774
|
listingComboOptions(comboOptions) {
|
|
19001
19775
|
const comboOptionsList = comboOptions.concat();
|
|
@@ -19021,7 +19795,7 @@ class PoComboBaseComponent {
|
|
|
19021
19795
|
verifyComboOptions(comboOptions, verifyingOptionsGroup = false, accumulatedGroupOptions) {
|
|
19022
19796
|
return comboOptions.reduce((accumulatedOptions, currentOption) => {
|
|
19023
19797
|
if (!this.verifyIfHasLabel(currentOption) ||
|
|
19024
|
-
this.hasDuplicatedOption(accumulatedOptions, currentOption
|
|
19798
|
+
this.hasDuplicatedOption(accumulatedOptions, currentOption['value'] || currentOption['label'], accumulatedGroupOptions) ||
|
|
19025
19799
|
!this.validateValue(currentOption, verifyingOptionsGroup)) {
|
|
19026
19800
|
return accumulatedOptions;
|
|
19027
19801
|
}
|
|
@@ -19079,7 +19853,7 @@ class PoComboBaseComponent {
|
|
|
19079
19853
|
}
|
|
19080
19854
|
}
|
|
19081
19855
|
PoComboBaseComponent.ɵfac = function PoComboBaseComponent_Factory(t) { return new (t || PoComboBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
19082
|
-
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" } });
|
|
19856
|
+
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" } });
|
|
19083
19857
|
__decorate([
|
|
19084
19858
|
InputBoolean()
|
|
19085
19859
|
], PoComboBaseComponent.prototype, "autoFocus", void 0);
|
|
@@ -19110,6 +19884,12 @@ __decorate([
|
|
|
19110
19884
|
}], filterService: [{
|
|
19111
19885
|
type: Input,
|
|
19112
19886
|
args: ['p-filter-service']
|
|
19887
|
+
}], infiniteScroll: [{
|
|
19888
|
+
type: Input,
|
|
19889
|
+
args: ['p-infinite-scroll']
|
|
19890
|
+
}], infiniteScrollDistance: [{
|
|
19891
|
+
type: Input,
|
|
19892
|
+
args: ['p-infinite-scroll-distance']
|
|
19113
19893
|
}], icon: [{
|
|
19114
19894
|
type: Input,
|
|
19115
19895
|
args: ['p-icon']
|
|
@@ -19188,6 +19968,7 @@ class PoComboFilterService {
|
|
|
19188
19968
|
this.http = http;
|
|
19189
19969
|
this.fieldLabel = 'label';
|
|
19190
19970
|
this.fieldValue = 'value';
|
|
19971
|
+
this.hasNext = true;
|
|
19191
19972
|
this.headers = new HttpHeaders({
|
|
19192
19973
|
'X-PO-No-Message': 'true'
|
|
19193
19974
|
});
|
|
@@ -19197,12 +19978,8 @@ class PoComboFilterService {
|
|
|
19197
19978
|
return this._url;
|
|
19198
19979
|
}
|
|
19199
19980
|
getFilteredData(param, filterParams) {
|
|
19200
|
-
const
|
|
19201
|
-
|
|
19202
|
-
const params = Object.assign(Object.assign({}, filterParamsValidated), { filter: value });
|
|
19203
|
-
return this.http
|
|
19204
|
-
.get(`${this.url}`, { responseType: 'json', params, headers: this.headers })
|
|
19205
|
-
.pipe(map((response) => this.parseToArrayComboOption(response.items)));
|
|
19981
|
+
const params = this.prepareParams(param, filterParams);
|
|
19982
|
+
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)));
|
|
19206
19983
|
}
|
|
19207
19984
|
getObjectByValue(value, filterParams) {
|
|
19208
19985
|
const filterParamsValidated = validateObjectType(filterParams);
|
|
@@ -19215,6 +19992,15 @@ class PoComboFilterService {
|
|
|
19215
19992
|
this.fieldLabel = fieldLabel;
|
|
19216
19993
|
this.fieldValue = fieldValue;
|
|
19217
19994
|
}
|
|
19995
|
+
scrollListener(componentListner) {
|
|
19996
|
+
return fromEvent(componentListner, 'scroll').pipe(debounceTime(100));
|
|
19997
|
+
}
|
|
19998
|
+
prepareParams(param, filterParams) {
|
|
19999
|
+
const { page, pageSize, value } = param;
|
|
20000
|
+
const filterParamsValidated = validateObjectType(filterParams);
|
|
20001
|
+
return page
|
|
20002
|
+
? Object.assign(Object.assign({}, filterParamsValidated), { page, pageSize, filter: value }) : Object.assign(Object.assign({}, filterParamsValidated), { filter: value });
|
|
20003
|
+
}
|
|
19218
20004
|
parseToArrayComboOption(items) {
|
|
19219
20005
|
if (items && items.length > 0) {
|
|
19220
20006
|
const parsedOptions = items.map(item => this.parseToComboOption(item));
|
|
@@ -19337,10 +20123,11 @@ const _c0$U = ["containerElement"];
|
|
|
19337
20123
|
const _c1$o = ["contentElement"];
|
|
19338
20124
|
const _c2$9 = ["iconArrow"];
|
|
19339
20125
|
const _c3$5 = ["inp"];
|
|
20126
|
+
const _c4$3 = ["poComboBody"];
|
|
19340
20127
|
function PoComboComponent_div_2_Template(rf, ctx) {
|
|
19341
20128
|
if (rf & 1) {
|
|
19342
|
-
i0.ɵɵelementStart(0, "div",
|
|
19343
|
-
i0.ɵɵelement(1, "po-icon",
|
|
20129
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
20130
|
+
i0.ɵɵelement(1, "po-icon", 18);
|
|
19344
20131
|
i0.ɵɵelementEnd();
|
|
19345
20132
|
}
|
|
19346
20133
|
if (rf & 2) {
|
|
@@ -19352,9 +20139,9 @@ function PoComboComponent_div_2_Template(rf, ctx) {
|
|
|
19352
20139
|
}
|
|
19353
20140
|
function PoComboComponent_po_clean_6_Template(rf, ctx) {
|
|
19354
20141
|
if (rf & 1) {
|
|
19355
|
-
const
|
|
19356
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
19357
|
-
i0.ɵɵlistener("p-change-event", function PoComboComponent_po_clean_6_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(
|
|
20142
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
20143
|
+
i0.ɵɵelementStart(0, "po-clean", 19);
|
|
20144
|
+
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); });
|
|
19358
20145
|
i0.ɵɵelementEnd();
|
|
19359
20146
|
}
|
|
19360
20147
|
if (rf & 2) {
|
|
@@ -19367,157 +20154,175 @@ function PoComboComponent_ng_container_11_Template(rf, ctx) {
|
|
|
19367
20154
|
i0.ɵɵelementContainer(0);
|
|
19368
20155
|
}
|
|
19369
20156
|
}
|
|
19370
|
-
function
|
|
20157
|
+
function PoComboComponent_div_12_ng_container_1_Template(rf, ctx) {
|
|
19371
20158
|
if (rf & 1) {
|
|
19372
|
-
i0.ɵɵ
|
|
19373
|
-
i0.ɵɵelement(1, "po-loading");
|
|
19374
|
-
i0.ɵɵelementEnd();
|
|
20159
|
+
i0.ɵɵelementContainer(0);
|
|
19375
20160
|
}
|
|
19376
20161
|
}
|
|
19377
|
-
function
|
|
20162
|
+
function PoComboComponent_div_12_Template(rf, ctx) {
|
|
19378
20163
|
if (rf & 1) {
|
|
19379
|
-
i0.ɵɵ
|
|
20164
|
+
i0.ɵɵelementStart(0, "div");
|
|
20165
|
+
i0.ɵɵtemplate(1, PoComboComponent_div_12_ng_container_1_Template, 1, 0, "ng-container", 11);
|
|
20166
|
+
i0.ɵɵelementEnd();
|
|
20167
|
+
}
|
|
20168
|
+
if (rf & 2) {
|
|
20169
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
20170
|
+
const _r9 = i0.ɵɵreference(17);
|
|
20171
|
+
const _r7 = i0.ɵɵreference(15);
|
|
20172
|
+
i0.ɵɵadvance(1);
|
|
20173
|
+
i0.ɵɵproperty("ngIf", ctx_r6.infiniteLoading)("ngIfThen", _r9)("ngIfElse", _r7);
|
|
19380
20174
|
}
|
|
19381
20175
|
}
|
|
19382
|
-
function
|
|
20176
|
+
function PoComboComponent_ng_template_14_Template(rf, ctx) {
|
|
19383
20177
|
if (rf & 1) {
|
|
19384
|
-
i0.ɵɵ
|
|
20178
|
+
i0.ɵɵelement(0, "po-loading", 20);
|
|
19385
20179
|
}
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
i0.ɵɵproperty("ngIf", ctx_r9.visibleOptions.length)("ngIfThen", _r10)("ngIfElse", _r12);
|
|
20180
|
+
}
|
|
20181
|
+
function PoComboComponent_ng_template_16_Template(rf, ctx) {
|
|
20182
|
+
if (rf & 1) {
|
|
20183
|
+
i0.ɵɵelement(0, "po-loading-overlay", 20);
|
|
19391
20184
|
}
|
|
19392
20185
|
}
|
|
19393
|
-
function
|
|
20186
|
+
function PoComboComponent_ng_template_18_li_3_ng_container_1_Template(rf, ctx) {
|
|
19394
20187
|
if (rf & 1) {
|
|
19395
20188
|
i0.ɵɵelementContainer(0);
|
|
19396
20189
|
}
|
|
19397
20190
|
}
|
|
19398
|
-
function
|
|
20191
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template(rf, ctx) {
|
|
19399
20192
|
if (rf & 1) {
|
|
19400
|
-
i0.ɵɵelementStart(0, "label",
|
|
20193
|
+
i0.ɵɵelementStart(0, "label", 28);
|
|
19401
20194
|
i0.ɵɵtext(1);
|
|
19402
20195
|
i0.ɵɵelementEnd();
|
|
19403
20196
|
}
|
|
19404
20197
|
if (rf & 2) {
|
|
19405
|
-
const
|
|
20198
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
19406
20199
|
i0.ɵɵadvance(1);
|
|
19407
|
-
i0.ɵɵtextInterpolate(
|
|
20200
|
+
i0.ɵɵtextInterpolate(option_r21.label);
|
|
19408
20201
|
}
|
|
19409
20202
|
}
|
|
19410
|
-
function
|
|
20203
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template(rf, ctx) {
|
|
19411
20204
|
if (rf & 1) {
|
|
19412
|
-
i0.ɵɵelementStart(0, "a",
|
|
19413
|
-
i0.ɵɵelement(1, "span",
|
|
20205
|
+
i0.ɵɵelementStart(0, "a", 29);
|
|
20206
|
+
i0.ɵɵelement(1, "span", 30);
|
|
19414
20207
|
i0.ɵɵelementEnd();
|
|
19415
20208
|
}
|
|
19416
20209
|
if (rf & 2) {
|
|
19417
|
-
const
|
|
19418
|
-
const
|
|
20210
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20211
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
19419
20212
|
i0.ɵɵadvance(1);
|
|
19420
|
-
i0.ɵɵproperty("innerHTML",
|
|
20213
|
+
i0.ɵɵproperty("innerHTML", ctx_r29.getLabelFormatted(option_r21 == null ? null : option_r21.label), i0.ɵɵsanitizeHtml);
|
|
19421
20214
|
}
|
|
19422
20215
|
}
|
|
19423
|
-
function
|
|
20216
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_Template(rf, ctx) {
|
|
19424
20217
|
if (rf & 1) {
|
|
19425
|
-
i0.ɵɵtemplate(0,
|
|
19426
|
-
i0.ɵɵtemplate(1,
|
|
20218
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template, 2, 1, "label", 26);
|
|
20219
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template, 2, 1, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
|
|
19427
20220
|
}
|
|
19428
20221
|
if (rf & 2) {
|
|
19429
|
-
const
|
|
19430
|
-
const
|
|
19431
|
-
i0.ɵɵproperty("ngIf",
|
|
20222
|
+
const _r28 = i0.ɵɵreference(2);
|
|
20223
|
+
const option_r21 = i0.ɵɵnextContext().$implicit;
|
|
20224
|
+
i0.ɵɵproperty("ngIf", option_r21 == null ? null : option_r21.options)("ngIfElse", _r28);
|
|
19432
20225
|
}
|
|
19433
20226
|
}
|
|
19434
|
-
function
|
|
20227
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template(rf, ctx) {
|
|
19435
20228
|
if (rf & 1) {
|
|
19436
20229
|
i0.ɵɵelementContainer(0);
|
|
19437
20230
|
}
|
|
19438
20231
|
}
|
|
19439
|
-
function
|
|
19440
|
-
const
|
|
19441
|
-
function
|
|
20232
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template(rf, ctx) { }
|
|
20233
|
+
const _c5$1 = function (a0, a1) { return { $implicit: a0, selected: a1 }; };
|
|
20234
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template(rf, ctx) {
|
|
19442
20235
|
if (rf & 1) {
|
|
19443
|
-
i0.ɵɵtemplate(0,
|
|
20236
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 33);
|
|
19444
20237
|
}
|
|
19445
20238
|
if (rf & 2) {
|
|
19446
|
-
const
|
|
19447
|
-
const
|
|
19448
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
20239
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20240
|
+
const ctx_r35 = i0.ɵɵnextContext(2);
|
|
20241
|
+
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)));
|
|
19449
20242
|
}
|
|
19450
20243
|
}
|
|
19451
|
-
function
|
|
19452
|
-
const
|
|
19453
|
-
function
|
|
20244
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template(rf, ctx) { }
|
|
20245
|
+
const _c6$1 = function (a0) { return { $implicit: a0 }; };
|
|
20246
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template(rf, ctx) {
|
|
19454
20247
|
if (rf & 1) {
|
|
19455
|
-
i0.ɵɵelementStart(0, "a",
|
|
19456
|
-
i0.ɵɵtemplate(1,
|
|
20248
|
+
i0.ɵɵelementStart(0, "a", 29);
|
|
20249
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template, 0, 0, "ng-template", 33);
|
|
19457
20250
|
i0.ɵɵelementEnd();
|
|
19458
20251
|
}
|
|
19459
20252
|
if (rf & 2) {
|
|
19460
|
-
const
|
|
19461
|
-
const
|
|
20253
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20254
|
+
const ctx_r37 = i0.ɵɵnextContext(2);
|
|
19462
20255
|
i0.ɵɵadvance(1);
|
|
19463
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
20256
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r37.comboOptionTemplate == null ? null : ctx_r37.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c6$1, option_r21));
|
|
19464
20257
|
}
|
|
19465
20258
|
}
|
|
19466
|
-
function
|
|
20259
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_Template(rf, ctx) {
|
|
19467
20260
|
if (rf & 1) {
|
|
19468
|
-
i0.ɵɵtemplate(0,
|
|
19469
|
-
i0.ɵɵtemplate(1,
|
|
19470
|
-
i0.ɵɵtemplate(3,
|
|
20261
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 11);
|
|
20262
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template, 1, 5, "ng-template", null, 31, i0.ɵɵtemplateRefExtractor);
|
|
20263
|
+
i0.ɵɵtemplate(3, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template, 2, 4, "ng-template", null, 32, i0.ɵɵtemplateRefExtractor);
|
|
19471
20264
|
}
|
|
19472
20265
|
if (rf & 2) {
|
|
19473
|
-
const
|
|
19474
|
-
const
|
|
19475
|
-
const
|
|
19476
|
-
i0.ɵɵproperty("ngIf",
|
|
20266
|
+
const _r34 = i0.ɵɵreference(2);
|
|
20267
|
+
const _r36 = i0.ɵɵreference(4);
|
|
20268
|
+
const ctx_r26 = i0.ɵɵnextContext(3);
|
|
20269
|
+
i0.ɵɵproperty("ngIf", ctx_r26.isOptionGroupList)("ngIfThen", _r34)("ngIfElse", _r36);
|
|
19477
20270
|
}
|
|
19478
20271
|
}
|
|
19479
|
-
function
|
|
20272
|
+
function PoComboComponent_ng_template_18_li_3_Template(rf, ctx) {
|
|
19480
20273
|
if (rf & 1) {
|
|
19481
|
-
const
|
|
20274
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
19482
20275
|
i0.ɵɵelementStart(0, "li", 7);
|
|
19483
|
-
i0.ɵɵlistener("click", function
|
|
19484
|
-
i0.ɵɵtemplate(1,
|
|
19485
|
-
i0.ɵɵtemplate(2,
|
|
19486
|
-
i0.ɵɵtemplate(4,
|
|
20276
|
+
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); });
|
|
20277
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_container_1_Template, 1, 0, "ng-container", 11);
|
|
20278
|
+
i0.ɵɵtemplate(2, PoComboComponent_ng_template_18_li_3_ng_template_2_Template, 3, 2, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
|
|
20279
|
+
i0.ɵɵtemplate(4, PoComboComponent_ng_template_18_li_3_ng_template_4_Template, 5, 3, "ng-template", null, 25, i0.ɵɵtemplateRefExtractor);
|
|
19487
20280
|
i0.ɵɵelementEnd();
|
|
19488
20281
|
}
|
|
19489
20282
|
if (rf & 2) {
|
|
19490
|
-
const
|
|
19491
|
-
const
|
|
19492
|
-
const
|
|
19493
|
-
const
|
|
19494
|
-
i0.ɵɵclassProp("po-combo-item-selected",
|
|
20283
|
+
const option_r21 = ctx.$implicit;
|
|
20284
|
+
const _r23 = i0.ɵɵreference(3);
|
|
20285
|
+
const _r25 = i0.ɵɵreference(5);
|
|
20286
|
+
const ctx_r20 = i0.ɵɵnextContext(2);
|
|
20287
|
+
i0.ɵɵclassProp("po-combo-item-selected", ctx_r20.compareObjects(ctx_r20.selectedView, option_r21));
|
|
19495
20288
|
i0.ɵɵadvance(1);
|
|
19496
|
-
i0.ɵɵproperty("ngIf",
|
|
20289
|
+
i0.ɵɵproperty("ngIf", ctx_r20.comboOptionTemplate)("ngIfThen", _r25)("ngIfElse", _r23);
|
|
19497
20290
|
}
|
|
19498
20291
|
}
|
|
19499
|
-
function
|
|
20292
|
+
function PoComboComponent_ng_template_18_Template(rf, ctx) {
|
|
19500
20293
|
if (rf & 1) {
|
|
19501
|
-
i0.ɵɵelementStart(0, "ul",
|
|
19502
|
-
i0.ɵɵtemplate(
|
|
20294
|
+
i0.ɵɵelementStart(0, "ul", 21, 22);
|
|
20295
|
+
i0.ɵɵtemplate(3, PoComboComponent_ng_template_18_li_3_Template, 6, 5, "li", 23);
|
|
19503
20296
|
i0.ɵɵelementEnd();
|
|
19504
20297
|
}
|
|
19505
20298
|
if (rf & 2) {
|
|
19506
|
-
const
|
|
19507
|
-
i0.ɵɵadvance(
|
|
19508
|
-
i0.ɵɵproperty("ngForOf",
|
|
20299
|
+
const ctx_r12 = i0.ɵɵnextContext();
|
|
20300
|
+
i0.ɵɵadvance(3);
|
|
20301
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.visibleOptions);
|
|
19509
20302
|
}
|
|
19510
20303
|
}
|
|
19511
|
-
function
|
|
20304
|
+
function PoComboComponent_ng_template_20_span_2_Template(rf, ctx) {
|
|
19512
20305
|
if (rf & 1) {
|
|
19513
|
-
i0.ɵɵelementStart(0, "
|
|
19514
|
-
i0.ɵɵtext(
|
|
19515
|
-
i0.ɵɵelementEnd()
|
|
20306
|
+
i0.ɵɵelementStart(0, "span");
|
|
20307
|
+
i0.ɵɵtext(1);
|
|
20308
|
+
i0.ɵɵelementEnd();
|
|
19516
20309
|
}
|
|
19517
20310
|
if (rf & 2) {
|
|
19518
|
-
const
|
|
19519
|
-
i0.ɵɵadvance(
|
|
19520
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
20311
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
20312
|
+
i0.ɵɵadvance(1);
|
|
20313
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r44.literals.noData, " ");
|
|
20314
|
+
}
|
|
20315
|
+
}
|
|
20316
|
+
function PoComboComponent_ng_template_20_Template(rf, ctx) {
|
|
20317
|
+
if (rf & 1) {
|
|
20318
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "div", 35);
|
|
20319
|
+
i0.ɵɵtemplate(2, PoComboComponent_ng_template_20_span_2_Template, 2, 1, "span", 12);
|
|
20320
|
+
i0.ɵɵelementEnd()();
|
|
20321
|
+
}
|
|
20322
|
+
if (rf & 2) {
|
|
20323
|
+
const ctx_r14 = i0.ɵɵnextContext();
|
|
20324
|
+
i0.ɵɵadvance(2);
|
|
20325
|
+
i0.ɵɵproperty("ngIf", !ctx_r14.isServerSearching);
|
|
19521
20326
|
}
|
|
19522
20327
|
}
|
|
19523
20328
|
const poComboContainerOffset = 8;
|
|
@@ -19563,6 +20368,11 @@ const poComboContainerPositionDefault = 'bottom';
|
|
|
19563
20368
|
* <file name="sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts"> </file>
|
|
19564
20369
|
* </example>
|
|
19565
20370
|
*
|
|
20371
|
+
* <example name="po-combo-infinity-scroll" title="PO Combo - Inifity Scroll">
|
|
20372
|
+
* <file name="sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html"> </file>
|
|
20373
|
+
* <file name="sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts"> </file>
|
|
20374
|
+
* </example>
|
|
20375
|
+
*
|
|
19566
20376
|
* <example name="po-combo-hotels" title="PO Combo - Booking Hotel">
|
|
19567
20377
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.html"> </file>
|
|
19568
20378
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.ts"> </file>
|
|
@@ -19583,6 +20393,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19583
20393
|
this.isProcessingValueByTab = false;
|
|
19584
20394
|
this.scrollTop = 0;
|
|
19585
20395
|
this.shouldMarkLetters = true;
|
|
20396
|
+
this.infiniteLoading = false;
|
|
19586
20397
|
this._isServerSearching = false;
|
|
19587
20398
|
this.onScroll = () => {
|
|
19588
20399
|
this.adjustContainerPosition();
|
|
@@ -19607,6 +20418,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19607
20418
|
if (this.autoFocus) {
|
|
19608
20419
|
this.focus();
|
|
19609
20420
|
}
|
|
20421
|
+
if (this.infiniteScroll) {
|
|
20422
|
+
this.checkInfiniteScroll();
|
|
20423
|
+
}
|
|
19610
20424
|
}
|
|
19611
20425
|
ngOnChanges(changes) {
|
|
19612
20426
|
if (changes.debounceTime) {
|
|
@@ -19618,6 +20432,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19618
20432
|
}
|
|
19619
20433
|
}
|
|
19620
20434
|
ngOnDestroy() {
|
|
20435
|
+
var _a;
|
|
19621
20436
|
this.removeListeners();
|
|
19622
20437
|
if (this.filterSubscription) {
|
|
19623
20438
|
this.filterSubscription.unsubscribe();
|
|
@@ -19625,6 +20440,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19625
20440
|
if (this.getSubscription) {
|
|
19626
20441
|
this.getSubscription.unsubscribe();
|
|
19627
20442
|
}
|
|
20443
|
+
if (this.infiniteScroll) {
|
|
20444
|
+
(_a = this.subscriptionScrollEvent) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20445
|
+
}
|
|
19628
20446
|
}
|
|
19629
20447
|
/**
|
|
19630
20448
|
* Função que atribui foco ao componente.
|
|
@@ -19753,23 +20571,31 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19753
20571
|
}
|
|
19754
20572
|
controlApplyFilter(value) {
|
|
19755
20573
|
if (!this.isProcessingValueByTab && (!this.selectedOption || value !== this.selectedOption.label)) {
|
|
19756
|
-
this.
|
|
20574
|
+
this.defaultService.hasNext = true;
|
|
20575
|
+
this.page = this.setPage();
|
|
20576
|
+
this.options = [];
|
|
20577
|
+
this.applyFilter(value, true);
|
|
19757
20578
|
}
|
|
19758
20579
|
this.isProcessingValueByTab = false;
|
|
19759
20580
|
}
|
|
19760
|
-
applyFilter(value) {
|
|
19761
|
-
this.
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
20581
|
+
applyFilter(value, reset = false) {
|
|
20582
|
+
if (this.defaultService.hasNext) {
|
|
20583
|
+
this.controlComboVisibility(false, reset);
|
|
20584
|
+
this.isServerSearching = true;
|
|
20585
|
+
const param = this.infiniteScroll
|
|
20586
|
+
? { property: this.fieldLabel, value, page: this.page, pageSize: this.pageSize }
|
|
20587
|
+
: { property: this.fieldLabel, value };
|
|
20588
|
+
this.filterSubscription = this.service.getFilteredData(param, this.filterParams).subscribe(items => this.setOptionsByApplyFilter(value, items, reset), error => this.onErrorFilteredData());
|
|
20589
|
+
}
|
|
19765
20590
|
}
|
|
19766
|
-
setOptionsByApplyFilter(value, items) {
|
|
20591
|
+
setOptionsByApplyFilter(value, items, reset = false) {
|
|
19767
20592
|
this.shouldMarkLetters = true;
|
|
19768
20593
|
this.isServerSearching = false;
|
|
19769
|
-
this.
|
|
20594
|
+
this.infiniteLoading = false;
|
|
20595
|
+
this.options = this.prepareOptions(items);
|
|
19770
20596
|
this.searchForLabel(value, items, this.filterMode);
|
|
19771
20597
|
this.changeDetector.detectChanges();
|
|
19772
|
-
this.controlComboVisibility(true);
|
|
20598
|
+
this.controlComboVisibility(true, reset);
|
|
19773
20599
|
if (this.isFirstFilter) {
|
|
19774
20600
|
this.isFirstFilter = !this.isFirstFilter;
|
|
19775
20601
|
this.cacheOptions = this.comboOptionsList;
|
|
@@ -19828,11 +20654,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19828
20654
|
}
|
|
19829
20655
|
applyFilterInFirstClick() {
|
|
19830
20656
|
if (this.isFirstFilter && !this.selectedValue) {
|
|
19831
|
-
this.
|
|
20657
|
+
this.options = [];
|
|
20658
|
+
const scrollingControl = this.setScrollingControl();
|
|
20659
|
+
this.applyFilter('', scrollingControl);
|
|
19832
20660
|
}
|
|
19833
20661
|
}
|
|
19834
|
-
controlComboVisibility(toOpen) {
|
|
19835
|
-
toOpen ? this.open() : this.close();
|
|
20662
|
+
controlComboVisibility(toOpen, reset = false) {
|
|
20663
|
+
toOpen ? this.open(reset) : this.close(reset);
|
|
19836
20664
|
}
|
|
19837
20665
|
onOptionClick(option, event) {
|
|
19838
20666
|
const inputValue = this.getInputValue();
|
|
@@ -19850,7 +20678,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19850
20678
|
scrollTo(index) {
|
|
19851
20679
|
const selectedItem = this.element.nativeElement.querySelectorAll('.po-combo-item-selected');
|
|
19852
20680
|
const scrollTop = !selectedItem.length || index <= 1 ? 0 : selectedItem[0].offsetTop - 88;
|
|
19853
|
-
this.
|
|
20681
|
+
if (!this.infiniteScroll) {
|
|
20682
|
+
this.setScrollTop(scrollTop);
|
|
20683
|
+
}
|
|
19854
20684
|
}
|
|
19855
20685
|
getInputValue() {
|
|
19856
20686
|
return this.inputEl.nativeElement.value;
|
|
@@ -19871,7 +20701,8 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19871
20701
|
}
|
|
19872
20702
|
else {
|
|
19873
20703
|
if (this.service && !this.getInputValue() && !this.isFirstFilter) {
|
|
19874
|
-
this.
|
|
20704
|
+
const scrollingControl = this.setScrollingControl();
|
|
20705
|
+
this.applyFilter('', scrollingControl);
|
|
19875
20706
|
}
|
|
19876
20707
|
}
|
|
19877
20708
|
}
|
|
@@ -19935,11 +20766,48 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19935
20766
|
this.controlApplyFilter(value);
|
|
19936
20767
|
}
|
|
19937
20768
|
}
|
|
20769
|
+
showMoreInfiniteScroll({ target }) {
|
|
20770
|
+
if (this.defaultService.hasNext) {
|
|
20771
|
+
this.infiniteLoading = true;
|
|
20772
|
+
}
|
|
20773
|
+
const scrollPosition = target.offsetHeight + target.scrollTop;
|
|
20774
|
+
if (scrollPosition >= target.scrollHeight * (this.infiniteScrollDistance / 110)) {
|
|
20775
|
+
this.page++;
|
|
20776
|
+
this.applyFilter('', true);
|
|
20777
|
+
}
|
|
20778
|
+
}
|
|
20779
|
+
checkInfiniteScroll() {
|
|
20780
|
+
var _a;
|
|
20781
|
+
if (this.hasInfiniteScroll() && ((_a = this.poComboBody) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollHeight) >= 175) {
|
|
20782
|
+
this.includeInfiniteScroll();
|
|
20783
|
+
}
|
|
20784
|
+
}
|
|
20785
|
+
hasInfiniteScroll() {
|
|
20786
|
+
var _a;
|
|
20787
|
+
return this.infiniteScroll && ((_a = this.poComboBody) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollHeight) && this.defaultService.hasNext;
|
|
20788
|
+
}
|
|
20789
|
+
includeInfiniteScroll() {
|
|
20790
|
+
var _a;
|
|
20791
|
+
(_a = this.subscriptionScrollEvent) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20792
|
+
this.scrollEvent$ = this.defaultService.scrollListener(this.poComboBody.nativeElement);
|
|
20793
|
+
this.subscriptionScrollEvent = this.scrollEvent$.subscribe(event => {
|
|
20794
|
+
this.showMoreInfiniteScroll(event);
|
|
20795
|
+
});
|
|
20796
|
+
}
|
|
19938
20797
|
adjustContainerPosition() {
|
|
19939
20798
|
this.controlPosition.adjustPosition(poComboContainerPositionDefault);
|
|
19940
20799
|
}
|
|
19941
|
-
close() {
|
|
20800
|
+
close(reset) {
|
|
19942
20801
|
this.comboOpen = false;
|
|
20802
|
+
if (!reset) {
|
|
20803
|
+
if (!this.getInputValue()) {
|
|
20804
|
+
this.page = this.setPage();
|
|
20805
|
+
this.defaultService.hasNext = true;
|
|
20806
|
+
}
|
|
20807
|
+
if (this.infiniteScroll) {
|
|
20808
|
+
this.options = this.setOptions();
|
|
20809
|
+
}
|
|
20810
|
+
}
|
|
19943
20811
|
this.changeDetector.detectChanges();
|
|
19944
20812
|
this.comboIcon = 'po-icon-arrow-down';
|
|
19945
20813
|
this.removeListeners();
|
|
@@ -19947,6 +20815,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19947
20815
|
}
|
|
19948
20816
|
initializeListeners() {
|
|
19949
20817
|
this.removeListeners();
|
|
20818
|
+
if (this.infiniteScroll) {
|
|
20819
|
+
this.checkInfiniteScroll();
|
|
20820
|
+
}
|
|
19950
20821
|
this.clickoutListener = this.renderer.listen('document', 'click', (event) => {
|
|
19951
20822
|
this.wasClickedOnToggle(event);
|
|
19952
20823
|
});
|
|
@@ -19964,22 +20835,35 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19964
20835
|
this.updateComboList([]);
|
|
19965
20836
|
this.controlComboVisibility(true);
|
|
19966
20837
|
}
|
|
19967
|
-
open() {
|
|
20838
|
+
open(reset) {
|
|
19968
20839
|
this.comboOpen = true;
|
|
20840
|
+
if (!reset && this.infiniteScroll) {
|
|
20841
|
+
if (!this.getInputValue()) {
|
|
20842
|
+
this.page = 1;
|
|
20843
|
+
}
|
|
20844
|
+
this.options = this.setOptions();
|
|
20845
|
+
this.scrollTo(0);
|
|
20846
|
+
}
|
|
19969
20847
|
this.changeDetector.detectChanges();
|
|
19970
20848
|
this.comboIcon = 'po-icon-arrow-up';
|
|
19971
20849
|
this.initializeListeners();
|
|
19972
20850
|
this.inputEl.nativeElement.focus();
|
|
19973
|
-
|
|
20851
|
+
if (!this.infiniteScroll) {
|
|
20852
|
+
this.scrollTo(this.getIndexSelectedView());
|
|
20853
|
+
}
|
|
19974
20854
|
this.setContainerPosition();
|
|
19975
20855
|
}
|
|
19976
20856
|
removeListeners() {
|
|
20857
|
+
var _a;
|
|
19977
20858
|
if (this.clickoutListener) {
|
|
19978
20859
|
this.clickoutListener();
|
|
19979
20860
|
}
|
|
19980
20861
|
if (this.eventResizeListener) {
|
|
19981
20862
|
this.eventResizeListener();
|
|
19982
20863
|
}
|
|
20864
|
+
if (this.infiniteScroll && !this.defaultService.hasNext) {
|
|
20865
|
+
(_a = this.subscriptionScrollEvent) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20866
|
+
}
|
|
19983
20867
|
window.removeEventListener('scroll', this.onScroll, true);
|
|
19984
20868
|
}
|
|
19985
20869
|
sanitizeTagHTML(value = '') {
|
|
@@ -19989,11 +20873,23 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19989
20873
|
this.controlPosition.setElements(this.containerElement.nativeElement, poComboContainerOffset, this.inputEl, ['top', 'bottom'], true);
|
|
19990
20874
|
this.adjustContainerPosition();
|
|
19991
20875
|
}
|
|
20876
|
+
setOptions() {
|
|
20877
|
+
return this.getInputValue() ? this.options : [];
|
|
20878
|
+
}
|
|
19992
20879
|
setScrollTop(scrollTop) {
|
|
19993
20880
|
if (this.contentElement) {
|
|
19994
20881
|
this.contentElement.nativeElement.scrollTop = scrollTop;
|
|
19995
20882
|
}
|
|
19996
20883
|
}
|
|
20884
|
+
prepareOptions(items) {
|
|
20885
|
+
return this.infiniteScroll ? [...this.options, ...items] : items;
|
|
20886
|
+
}
|
|
20887
|
+
setPage() {
|
|
20888
|
+
return this.infiniteScroll ? 1 : undefined;
|
|
20889
|
+
}
|
|
20890
|
+
setScrollingControl() {
|
|
20891
|
+
return this.infiniteScroll ? true : false;
|
|
20892
|
+
}
|
|
19997
20893
|
}
|
|
19998
20894
|
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)); };
|
|
19999
20895
|
PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboComponent, selectors: [["po-combo"]], contentQueries: function PoComboComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
@@ -20010,6 +20906,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20010
20906
|
i0.ɵɵviewQuery(_c1$o, 5, ElementRef);
|
|
20011
20907
|
i0.ɵɵviewQuery(_c2$9, 7, ElementRef);
|
|
20012
20908
|
i0.ɵɵviewQuery(_c3$5, 7, ElementRef);
|
|
20909
|
+
i0.ɵɵviewQuery(_c4$3, 5, ElementRef);
|
|
20013
20910
|
}
|
|
20014
20911
|
if (rf & 2) {
|
|
20015
20912
|
let _t;
|
|
@@ -20017,6 +20914,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20017
20914
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentElement = _t.first);
|
|
20018
20915
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
20019
20916
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
20917
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poComboBody = _t.first);
|
|
20020
20918
|
}
|
|
20021
20919
|
}, features: [i0.ɵɵProvidersFeature([
|
|
20022
20920
|
PoComboFilterService,
|
|
@@ -20031,7 +20929,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20031
20929
|
useExisting: forwardRef(() => PoComboComponent),
|
|
20032
20930
|
multi: true
|
|
20033
20931
|
}
|
|
20034
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
20932
|
+
]), 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) {
|
|
20035
20933
|
if (rf & 1) {
|
|
20036
20934
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
20037
20935
|
i0.ɵɵtemplate(2, PoComboComponent_div_2_Template, 2, 3, "div", 2);
|
|
@@ -20045,18 +20943,19 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20045
20943
|
i0.ɵɵelementEnd()()();
|
|
20046
20944
|
i0.ɵɵelementStart(9, "div", 9, 10);
|
|
20047
20945
|
i0.ɵɵtemplate(11, PoComboComponent_ng_container_11_Template, 1, 0, "ng-container", 11);
|
|
20946
|
+
i0.ɵɵtemplate(12, PoComboComponent_div_12_Template, 2, 3, "div", 12);
|
|
20048
20947
|
i0.ɵɵelementEnd();
|
|
20049
|
-
i0.ɵɵelement(
|
|
20948
|
+
i0.ɵɵelement(13, "po-field-container-bottom");
|
|
20050
20949
|
i0.ɵɵelementEnd();
|
|
20051
|
-
i0.ɵɵtemplate(
|
|
20052
|
-
i0.ɵɵtemplate(
|
|
20053
|
-
i0.ɵɵtemplate(
|
|
20054
|
-
i0.ɵɵtemplate(
|
|
20950
|
+
i0.ɵɵtemplate(14, PoComboComponent_ng_template_14_Template, 1, 0, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
20951
|
+
i0.ɵɵtemplate(16, PoComboComponent_ng_template_16_Template, 1, 0, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
20952
|
+
i0.ɵɵtemplate(18, PoComboComponent_ng_template_18_Template, 4, 1, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
|
|
20953
|
+
i0.ɵɵtemplate(20, PoComboComponent_ng_template_20_Template, 3, 1, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
20055
20954
|
}
|
|
20056
20955
|
if (rf & 2) {
|
|
20057
20956
|
const _r1 = i0.ɵɵreference(4);
|
|
20058
|
-
const
|
|
20059
|
-
const
|
|
20957
|
+
const _r11 = i0.ɵɵreference(19);
|
|
20958
|
+
const _r13 = i0.ɵɵreference(21);
|
|
20060
20959
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help)("p-optional", !ctx.required && ctx.optional);
|
|
20061
20960
|
i0.ɵɵadvance(2);
|
|
20062
20961
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
@@ -20072,9 +20971,11 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20072
20971
|
i0.ɵɵadvance(2);
|
|
20073
20972
|
i0.ɵɵproperty("hidden", !ctx.comboOpen && !ctx.isServerSearching);
|
|
20074
20973
|
i0.ɵɵadvance(2);
|
|
20075
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
20974
|
+
i0.ɵɵproperty("ngIf", ctx.visibleOptions.length)("ngIfThen", _r11)("ngIfElse", _r13);
|
|
20975
|
+
i0.ɵɵadvance(1);
|
|
20976
|
+
i0.ɵɵproperty("ngIf", ctx.isServerSearching);
|
|
20076
20977
|
}
|
|
20077
|
-
}, directives: [PoFieldContainerComponent, i1.NgIf, PoIconComponent, i1.NgClass, PoCleanComponent, PoFieldContainerBottomComponent, PoLoadingComponent, i1.NgForOf, i1.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
20978
|
+
}, directives: [PoFieldContainerComponent, i1.NgIf, PoIconComponent, i1.NgClass, PoCleanComponent, PoFieldContainerBottomComponent, PoLoadingComponent, PoLoadingOverlayComponent, i1.NgForOf, i1.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
20078
20979
|
(function () {
|
|
20079
20980
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboComponent, [{
|
|
20080
20981
|
type: Component,
|
|
@@ -20091,7 +20992,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20091
20992
|
useExisting: forwardRef(() => PoComboComponent),
|
|
20092
20993
|
multi: true
|
|
20093
20994
|
}
|
|
20094
|
-
], 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=\"
|
|
20995
|
+
], 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" }]
|
|
20095
20996
|
}], 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: [{
|
|
20096
20997
|
type: ContentChild,
|
|
20097
20998
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -20107,6 +21008,9 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20107
21008
|
}], inputEl: [{
|
|
20108
21009
|
type: ViewChild,
|
|
20109
21010
|
args: ['inp', { read: ElementRef, static: true }]
|
|
21011
|
+
}], poComboBody: [{
|
|
21012
|
+
type: ViewChild,
|
|
21013
|
+
args: ['poComboBody', { read: ElementRef }]
|
|
20110
21014
|
}] });
|
|
20111
21015
|
})();
|
|
20112
21016
|
|
|
@@ -21766,16 +22670,27 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
21766
22670
|
this.controlChangeEmitter();
|
|
21767
22671
|
}
|
|
21768
22672
|
extraValidation(abstractControl) {
|
|
22673
|
+
const value = abstractControl.value;
|
|
22674
|
+
const thousandValue = Math.trunc(value);
|
|
21769
22675
|
// Verifica se já possui algum error pattern padrão.
|
|
21770
22676
|
this.errorPattern = this.errorPattern !== 'Valor Inválido' ? this.errorPattern : '';
|
|
21771
|
-
if (minFailed(this.min,
|
|
22677
|
+
if (minFailed(this.min, value)) {
|
|
21772
22678
|
return {
|
|
21773
22679
|
min: {
|
|
21774
22680
|
valid: false
|
|
21775
22681
|
}
|
|
21776
22682
|
};
|
|
21777
22683
|
}
|
|
21778
|
-
if (maxFailed(this.max,
|
|
22684
|
+
if (maxFailed(this.max, value)) {
|
|
22685
|
+
return {
|
|
22686
|
+
max: {
|
|
22687
|
+
valid: false
|
|
22688
|
+
}
|
|
22689
|
+
};
|
|
22690
|
+
}
|
|
22691
|
+
if ((maxlengpoailed(this.thousandMaxlength, thousandValue) &&
|
|
22692
|
+
this.thousandMaxlength < poDecimalDefaultThousandMaxlength) ||
|
|
22693
|
+
maxlengpoailed(poDecimalTotalLengthLimit, value)) {
|
|
21779
22694
|
return {
|
|
21780
22695
|
max: {
|
|
21781
22696
|
valid: false
|
|
@@ -29658,7 +30573,7 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
29658
30573
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextImageModal = _t.first);
|
|
29659
30574
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextLinkModal = _t.first);
|
|
29660
30575
|
}
|
|
29661
|
-
}, inputs: { readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 17, vars:
|
|
30576
|
+
}, 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) {
|
|
29662
30577
|
if (rf & 1) {
|
|
29663
30578
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
29664
30579
|
i0.ɵɵelement(3, "po-button-group", 3);
|
|
@@ -29685,23 +30600,23 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
29685
30600
|
}
|
|
29686
30601
|
if (rf & 2) {
|
|
29687
30602
|
i0.ɵɵadvance(3);
|
|
29688
|
-
i0.ɵɵproperty("p-buttons", ctx.formatButtons);
|
|
30603
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.formatButtons);
|
|
29689
30604
|
i0.ɵɵadvance(1);
|
|
29690
30605
|
i0.ɵɵproperty("ngIf", !ctx.isInternetExplorer);
|
|
29691
30606
|
i0.ɵɵadvance(2);
|
|
29692
|
-
i0.ɵɵproperty("p-buttons", ctx.alignButtons);
|
|
30607
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.alignButtons);
|
|
29693
30608
|
i0.ɵɵadvance(2);
|
|
29694
|
-
i0.ɵɵproperty("p-buttons", ctx.listButtons);
|
|
30609
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.listButtons);
|
|
29695
30610
|
i0.ɵɵadvance(2);
|
|
29696
|
-
i0.ɵɵproperty("p-buttons", ctx.linkButtons);
|
|
30611
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.linkButtons);
|
|
29697
30612
|
i0.ɵɵadvance(2);
|
|
29698
|
-
i0.ɵɵproperty("p-buttons", ctx.mediaButtons);
|
|
30613
|
+
i0.ɵɵproperty("p-small", true)("p-buttons", ctx.mediaButtons);
|
|
29699
30614
|
}
|
|
29700
30615
|
}, directives: [PoButtonGroupComponent, i1.NgIf, PoTooltipDirective, PoRichTextImageModalComponent, PoRichTextLinkModalComponent], encapsulation: 2 });
|
|
29701
30616
|
(function () {
|
|
29702
30617
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextToolbarComponent, [{
|
|
29703
30618
|
type: Component,
|
|
29704
|
-
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" }]
|
|
30619
|
+
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" }]
|
|
29705
30620
|
}], function () { return [{ type: PoLanguageService }]; }, { colorPickerInput: [{
|
|
29706
30621
|
type: ViewChild,
|
|
29707
30622
|
args: ['colorPickerInput', { read: ElementRef }]
|