@po-ui/ng-components 6.6.0 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/po-chart/interfaces/po-chart-serie.interface.mjs +1 -1
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox-base.component.mjs +12 -4
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.component.mjs +15 -10
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +45 -3
- 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-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +5 -3
- 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/esm2020/lib/services/po-color/po-color.service.mjs +3 -2
- package/fesm2015/po-ui-ng-components.mjs +1515 -601
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +1346 -565
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +3 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +12 -4
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +2 -2
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +30 -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/lib/services/po-color/po-color.service.d.ts +1 -0
- package/package.json +4 -4
- package/po-ui-ng-components-6.9.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-6.6.0.tgz +0 -0
|
@@ -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
|
|
|
@@ -6652,6 +6682,7 @@ const poColorPalette = Object.values(PoColorPaletteEnum);
|
|
|
6652
6682
|
class PoColorService {
|
|
6653
6683
|
constructor() {
|
|
6654
6684
|
this.defaultColors = [];
|
|
6685
|
+
this.colorBlack = '#000000';
|
|
6655
6686
|
}
|
|
6656
6687
|
/**
|
|
6657
6688
|
* Avalia a propriedade `color` na lista de items passada. Caso sim, trata se é decimal ou string `po-color`. Caso não haja, retorna a cor default.
|
|
@@ -6665,7 +6696,7 @@ class PoColorService {
|
|
|
6665
6696
|
dataItem.color = this.verifyIfIsPoColorPalette(dataItem.color);
|
|
6666
6697
|
return dataItem;
|
|
6667
6698
|
}
|
|
6668
|
-
const color = this.defaultColors[index];
|
|
6699
|
+
const color = this.defaultColors[index] === undefined ? this.colorBlack : this.defaultColors[index];
|
|
6669
6700
|
return Object.assign(Object.assign({}, dataItem), { color });
|
|
6670
6701
|
});
|
|
6671
6702
|
}
|
|
@@ -14356,6 +14387,7 @@ class PoTableColumnManagerComponent {
|
|
|
14356
14387
|
// Evento disparado ao fechar o popover do gerenciador de colunas após alterar as colunas visíveis.
|
|
14357
14388
|
// O po-table envia como parâmetro um array de string com as colunas visíveis atualizadas. Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14358
14389
|
this.changeVisibleColumns = new EventEmitter();
|
|
14390
|
+
this.initialColumns = new EventEmitter();
|
|
14359
14391
|
this.columnsOptions = [];
|
|
14360
14392
|
this.visibleColumns = [];
|
|
14361
14393
|
this._maxColumns = PoTableColumnManagerMaxColumnsDefault;
|
|
@@ -14395,6 +14427,7 @@ class PoTableColumnManagerComponent {
|
|
|
14395
14427
|
restore() {
|
|
14396
14428
|
this.restoreDefaultEvent = true;
|
|
14397
14429
|
const defaultColumns = this.getVisibleColumns(this.defaultColumns);
|
|
14430
|
+
this.initialColumns.emit(this.getVisibleColumns(this.colunsDefault));
|
|
14398
14431
|
this.checkChanges(defaultColumns, this.restoreDefaultEvent);
|
|
14399
14432
|
}
|
|
14400
14433
|
verifyToEmitChange(event) {
|
|
@@ -14562,7 +14595,7 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14562
14595
|
let _t;
|
|
14563
14596
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
14564
14597
|
}
|
|
14565
|
-
}, 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) {
|
|
14566
14599
|
if (rf & 1) {
|
|
14567
14600
|
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template, 11, 5, "po-popover", 0);
|
|
14568
14601
|
}
|
|
@@ -14583,6 +14616,9 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14583
14616
|
}], target: [{
|
|
14584
14617
|
type: Input,
|
|
14585
14618
|
args: ['p-target']
|
|
14619
|
+
}], colunsDefault: [{
|
|
14620
|
+
type: Input,
|
|
14621
|
+
args: ['p-columns-default']
|
|
14586
14622
|
}], lastVisibleColumnsSelected: [{
|
|
14587
14623
|
type: Input,
|
|
14588
14624
|
args: ['p-last-visible-columns-selected']
|
|
@@ -14592,6 +14628,9 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
14592
14628
|
}], changeVisibleColumns: [{
|
|
14593
14629
|
type: Output,
|
|
14594
14630
|
args: ['p-change-visible-columns']
|
|
14631
|
+
}], initialColumns: [{
|
|
14632
|
+
type: Output,
|
|
14633
|
+
args: ['p-initial-columns']
|
|
14595
14634
|
}], maxColumns: [{
|
|
14596
14635
|
type: Input,
|
|
14597
14636
|
args: ['p-max-columns']
|
|
@@ -14894,6 +14933,16 @@ class PoTableBaseComponent {
|
|
|
14894
14933
|
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
14895
14934
|
*/
|
|
14896
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();
|
|
14897
14946
|
this.hasMainColumns = false;
|
|
14898
14947
|
this.mainColumns = [];
|
|
14899
14948
|
this.selectAll = false;
|
|
@@ -14943,6 +14992,9 @@ class PoTableBaseComponent {
|
|
|
14943
14992
|
*
|
|
14944
14993
|
*/
|
|
14945
14994
|
set columns(columns) {
|
|
14995
|
+
if (this.initialColumns === undefined) {
|
|
14996
|
+
this.initialColumns = columns;
|
|
14997
|
+
}
|
|
14946
14998
|
this._columns = columns || [];
|
|
14947
14999
|
if (this._columns.length) {
|
|
14948
15000
|
this.setColumnLink();
|
|
@@ -15437,7 +15489,7 @@ class PoTableBaseComponent {
|
|
|
15437
15489
|
}
|
|
15438
15490
|
}
|
|
15439
15491
|
PoTableBaseComponent.ɵfac = function PoTableBaseComponent_Factory(t) { return new (t || PoTableBaseComponent)(i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoTableService)); };
|
|
15440
|
-
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] });
|
|
15441
15493
|
__decorate([
|
|
15442
15494
|
InputBoolean()
|
|
15443
15495
|
], PoTableBaseComponent.prototype, "hideTextOverflow", void 0);
|
|
@@ -15531,6 +15583,9 @@ __decorate([
|
|
|
15531
15583
|
}], changeVisibleColumns: [{
|
|
15532
15584
|
type: Output,
|
|
15533
15585
|
args: ['p-change-visible-columns']
|
|
15586
|
+
}], columnRestoreManager: [{
|
|
15587
|
+
type: Output,
|
|
15588
|
+
args: ['p-restore-column-manager']
|
|
15534
15589
|
}], items: [{
|
|
15535
15590
|
type: Input,
|
|
15536
15591
|
args: ['p-items']
|
|
@@ -16422,10 +16477,11 @@ const _c1$p = ["popup"];
|
|
|
16422
16477
|
const _c2$a = ["tableFooter"];
|
|
16423
16478
|
const _c3$6 = ["tableWrapper"];
|
|
16424
16479
|
const _c4$4 = ["poTableTbody"];
|
|
16425
|
-
const _c5$2 = ["
|
|
16426
|
-
const _c6$
|
|
16427
|
-
const _c7$1 = ["
|
|
16428
|
-
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"];
|
|
16429
16485
|
function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) {
|
|
16430
16486
|
if (rf & 1) {
|
|
16431
16487
|
i0.ɵɵelementContainer(0);
|
|
@@ -16433,8 +16489,8 @@ function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) {
|
|
|
16433
16489
|
}
|
|
16434
16490
|
function PoTableComponent_po_container_0_Template(rf, ctx) {
|
|
16435
16491
|
if (rf & 1) {
|
|
16436
|
-
i0.ɵɵelementStart(0, "po-container",
|
|
16437
|
-
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);
|
|
16438
16494
|
i0.ɵɵelementEnd();
|
|
16439
16495
|
}
|
|
16440
16496
|
if (rf & 2) {
|
|
@@ -16447,35 +16503,46 @@ function PoTableComponent_po_container_0_Template(rf, ctx) {
|
|
|
16447
16503
|
}
|
|
16448
16504
|
function PoTableComponent_ng_template_1_div_1_Template(rf, ctx) {
|
|
16449
16505
|
if (rf & 1) {
|
|
16450
|
-
i0.ɵɵelementStart(0, "div",
|
|
16451
|
-
i0.ɵɵelement(1, "po-loading",
|
|
16506
|
+
i0.ɵɵelementStart(0, "div", 25);
|
|
16507
|
+
i0.ɵɵelement(1, "po-loading", 26);
|
|
16452
16508
|
i0.ɵɵelementEnd();
|
|
16453
16509
|
}
|
|
16454
16510
|
if (rf & 2) {
|
|
16455
|
-
const
|
|
16511
|
+
const ctx_r27 = i0.ɵɵnextContext(2);
|
|
16456
16512
|
i0.ɵɵadvance(1);
|
|
16457
|
-
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);
|
|
16458
16519
|
}
|
|
16459
16520
|
}
|
|
16460
|
-
function
|
|
16521
|
+
function PoTableComponent_ng_template_1_div_5_ng_container_6_Template(rf, ctx) {
|
|
16461
16522
|
if (rf & 1) {
|
|
16462
16523
|
i0.ɵɵelementContainer(0);
|
|
16463
16524
|
}
|
|
16464
16525
|
}
|
|
16465
16526
|
function PoTableComponent_ng_template_1_div_5_Template(rf, ctx) {
|
|
16466
16527
|
if (rf & 1) {
|
|
16467
|
-
i0.ɵɵ
|
|
16468
|
-
i0.ɵɵ
|
|
16469
|
-
i0.ɵɵ
|
|
16470
|
-
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);
|
|
16471
16535
|
i0.ɵɵelementEnd()();
|
|
16472
16536
|
}
|
|
16473
16537
|
if (rf & 2) {
|
|
16474
|
-
const
|
|
16538
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
16475
16539
|
const _r4 = i0.ɵɵreference(5);
|
|
16476
|
-
i0.ɵɵ
|
|
16477
|
-
i0.ɵɵ
|
|
16540
|
+
const _r6 = i0.ɵɵreference(7);
|
|
16541
|
+
i0.ɵɵstyleProp("height", ctx_r29.heightTableContainer, "px");
|
|
16542
|
+
i0.ɵɵadvance(3);
|
|
16478
16543
|
i0.ɵɵproperty("ngTemplateOutlet", _r4);
|
|
16544
|
+
i0.ɵɵadvance(3);
|
|
16545
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6);
|
|
16479
16546
|
}
|
|
16480
16547
|
}
|
|
16481
16548
|
function PoTableComponent_ng_template_1_div_6_ng_container_1_Template(rf, ctx) {
|
|
@@ -16486,50 +16553,50 @@ function PoTableComponent_ng_template_1_div_6_ng_container_1_Template(rf, ctx) {
|
|
|
16486
16553
|
function PoTableComponent_ng_template_1_div_6_Template(rf, ctx) {
|
|
16487
16554
|
if (rf & 1) {
|
|
16488
16555
|
i0.ɵɵelementStart(0, "div");
|
|
16489
|
-
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);
|
|
16490
16557
|
i0.ɵɵelementEnd();
|
|
16491
16558
|
}
|
|
16492
16559
|
if (rf & 2) {
|
|
16493
16560
|
i0.ɵɵnextContext(2);
|
|
16494
|
-
const
|
|
16561
|
+
const _r8 = i0.ɵɵreference(9);
|
|
16495
16562
|
i0.ɵɵadvance(1);
|
|
16496
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16563
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r8);
|
|
16497
16564
|
}
|
|
16498
16565
|
}
|
|
16499
16566
|
function PoTableComponent_ng_template_1_div_7_ng_container_1_Template(rf, ctx) {
|
|
16500
16567
|
if (rf & 1) {
|
|
16501
16568
|
i0.ɵɵelementContainerStart(0);
|
|
16502
|
-
i0.ɵɵelement(1, "po-table-subtitle-footer",
|
|
16569
|
+
i0.ɵɵelement(1, "po-table-subtitle-footer", 34);
|
|
16503
16570
|
i0.ɵɵelementContainerEnd();
|
|
16504
16571
|
}
|
|
16505
16572
|
if (rf & 2) {
|
|
16506
|
-
const
|
|
16507
|
-
const
|
|
16573
|
+
const column_r40 = ctx.$implicit;
|
|
16574
|
+
const ctx_r39 = i0.ɵɵnextContext(3);
|
|
16508
16575
|
i0.ɵɵadvance(1);
|
|
16509
|
-
i0.ɵɵproperty("p-literals",
|
|
16576
|
+
i0.ɵɵproperty("p-literals", ctx_r39.literals)("p-subtitles", column_r40.subtitles);
|
|
16510
16577
|
}
|
|
16511
16578
|
}
|
|
16512
16579
|
function PoTableComponent_ng_template_1_div_7_Template(rf, ctx) {
|
|
16513
16580
|
if (rf & 1) {
|
|
16514
|
-
i0.ɵɵelementStart(0, "div",
|
|
16515
|
-
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);
|
|
16516
16583
|
i0.ɵɵelementEnd();
|
|
16517
16584
|
}
|
|
16518
16585
|
if (rf & 2) {
|
|
16519
|
-
const
|
|
16586
|
+
const ctx_r31 = i0.ɵɵnextContext(2);
|
|
16520
16587
|
i0.ɵɵadvance(1);
|
|
16521
|
-
i0.ɵɵproperty("ngForOf",
|
|
16588
|
+
i0.ɵɵproperty("ngForOf", ctx_r31.subtitleColumns)("ngForTrackBy", ctx_r31.trackBy);
|
|
16522
16589
|
}
|
|
16523
16590
|
}
|
|
16524
16591
|
function PoTableComponent_ng_template_1_Template(rf, ctx) {
|
|
16525
16592
|
if (rf & 1) {
|
|
16526
16593
|
i0.ɵɵelementStart(0, "div");
|
|
16527
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_1_Template, 2, 1, "div",
|
|
16528
|
-
i0.ɵɵelementStart(2, "div",
|
|
16529
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_1_div_5_Template,
|
|
16530
|
-
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);
|
|
16531
16598
|
i0.ɵɵelementEnd()()();
|
|
16532
|
-
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);
|
|
16533
16600
|
}
|
|
16534
16601
|
if (rf & 2) {
|
|
16535
16602
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -16549,9 +16616,9 @@ function PoTableComponent_ng_template_1_Template(rf, ctx) {
|
|
|
16549
16616
|
}
|
|
16550
16617
|
function PoTableComponent_div_3_Template(rf, ctx) {
|
|
16551
16618
|
if (rf & 1) {
|
|
16552
|
-
const
|
|
16553
|
-
i0.ɵɵelementStart(0, "div",
|
|
16554
|
-
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(); });
|
|
16555
16622
|
i0.ɵɵelementEnd()();
|
|
16556
16623
|
}
|
|
16557
16624
|
if (rf & 2) {
|
|
@@ -16563,41 +16630,41 @@ function PoTableComponent_div_3_Template(rf, ctx) {
|
|
|
16563
16630
|
}
|
|
16564
16631
|
function PoTableComponent_ng_template_4_th_3_input_2_Template(rf, ctx) {
|
|
16565
16632
|
if (rf & 1) {
|
|
16566
|
-
i0.ɵɵelement(0, "input",
|
|
16633
|
+
i0.ɵɵelement(0, "input", 49);
|
|
16567
16634
|
}
|
|
16568
16635
|
if (rf & 2) {
|
|
16569
|
-
const
|
|
16570
|
-
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);
|
|
16571
16638
|
}
|
|
16572
16639
|
}
|
|
16573
16640
|
function PoTableComponent_ng_template_4_th_3_label_3_Template(rf, ctx) {
|
|
16574
16641
|
if (rf & 1) {
|
|
16575
|
-
const
|
|
16576
|
-
i0.ɵɵelementStart(0, "label",
|
|
16577
|
-
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(); });
|
|
16578
16645
|
i0.ɵɵelementEnd();
|
|
16579
16646
|
}
|
|
16580
16647
|
}
|
|
16581
16648
|
function PoTableComponent_ng_template_4_th_3_Template(rf, ctx) {
|
|
16582
16649
|
if (rf & 1) {
|
|
16583
|
-
i0.ɵɵelementStart(0, "th",
|
|
16584
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_3_input_2_Template, 1, 4, "input",
|
|
16585
|
-
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);
|
|
16586
16653
|
i0.ɵɵelementEnd()();
|
|
16587
16654
|
}
|
|
16588
16655
|
if (rf & 2) {
|
|
16589
|
-
const
|
|
16656
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
16590
16657
|
i0.ɵɵadvance(1);
|
|
16591
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
16658
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r44.height);
|
|
16592
16659
|
i0.ɵɵadvance(1);
|
|
16593
|
-
i0.ɵɵproperty("ngIf", !
|
|
16660
|
+
i0.ɵɵproperty("ngIf", !ctx_r44.hideSelectAll);
|
|
16594
16661
|
i0.ɵɵadvance(1);
|
|
16595
|
-
i0.ɵɵproperty("ngIf", !
|
|
16662
|
+
i0.ɵɵproperty("ngIf", !ctx_r44.hideSelectAll);
|
|
16596
16663
|
}
|
|
16597
16664
|
}
|
|
16598
16665
|
function PoTableComponent_ng_template_4_th_4_Template(rf, ctx) {
|
|
16599
16666
|
if (rf & 1) {
|
|
16600
|
-
i0.ɵɵelement(0, "th",
|
|
16667
|
+
i0.ɵɵelement(0, "th", 51);
|
|
16601
16668
|
}
|
|
16602
16669
|
}
|
|
16603
16670
|
function PoTableComponent_ng_template_4_th_5_Template(rf, ctx) {
|
|
@@ -16605,8 +16672,8 @@ function PoTableComponent_ng_template_4_th_5_Template(rf, ctx) {
|
|
|
16605
16672
|
i0.ɵɵelement(0, "th");
|
|
16606
16673
|
}
|
|
16607
16674
|
if (rf & 2) {
|
|
16608
|
-
const
|
|
16609
|
-
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);
|
|
16610
16677
|
}
|
|
16611
16678
|
}
|
|
16612
16679
|
function PoTableComponent_ng_template_4_th_6_ng_container_2_Template(rf, ctx) {
|
|
@@ -16616,16 +16683,16 @@ function PoTableComponent_ng_template_4_th_6_ng_container_2_Template(rf, ctx) {
|
|
|
16616
16683
|
}
|
|
16617
16684
|
function PoTableComponent_ng_template_4_th_6_Template(rf, ctx) {
|
|
16618
16685
|
if (rf & 1) {
|
|
16619
|
-
i0.ɵɵelementStart(0, "th",
|
|
16620
|
-
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);
|
|
16621
16688
|
i0.ɵɵelementEnd();
|
|
16622
16689
|
}
|
|
16623
16690
|
if (rf & 2) {
|
|
16624
|
-
const
|
|
16625
|
-
const
|
|
16626
|
-
const
|
|
16691
|
+
const ctx_r47 = i0.ɵɵnextContext(2);
|
|
16692
|
+
const _r19 = i0.ɵɵreference(21);
|
|
16693
|
+
const _r21 = i0.ɵɵreference(23);
|
|
16627
16694
|
i0.ɵɵadvance(2);
|
|
16628
|
-
i0.ɵɵproperty("ngIf",
|
|
16695
|
+
i0.ɵɵproperty("ngIf", ctx_r47.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
16629
16696
|
}
|
|
16630
16697
|
}
|
|
16631
16698
|
function PoTableComponent_ng_template_4_th_7_ng_container_3_Template(rf, ctx) {
|
|
@@ -16633,31 +16700,31 @@ function PoTableComponent_ng_template_4_th_7_ng_container_3_Template(rf, ctx) {
|
|
|
16633
16700
|
i0.ɵɵelementContainer(0);
|
|
16634
16701
|
}
|
|
16635
16702
|
}
|
|
16636
|
-
const
|
|
16703
|
+
const _c10 = function (a0) { return { $implicit: a0 }; };
|
|
16637
16704
|
function PoTableComponent_ng_template_4_th_7_Template(rf, ctx) {
|
|
16638
16705
|
if (rf & 1) {
|
|
16639
|
-
const
|
|
16640
|
-
i0.ɵɵelementStart(0, "th",
|
|
16641
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
16642
|
-
i0.ɵɵelementStart(2, "div",
|
|
16643
|
-
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);
|
|
16644
16711
|
i0.ɵɵelementEnd()();
|
|
16645
16712
|
}
|
|
16646
16713
|
if (rf & 2) {
|
|
16647
|
-
const
|
|
16648
|
-
const
|
|
16649
|
-
const
|
|
16650
|
-
i0.ɵɵstyleProp("width",
|
|
16651
|
-
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");
|
|
16652
16719
|
i0.ɵɵadvance(2);
|
|
16653
|
-
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");
|
|
16654
16721
|
i0.ɵɵadvance(1);
|
|
16655
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16722
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c10, column_r58));
|
|
16656
16723
|
}
|
|
16657
16724
|
}
|
|
16658
16725
|
function PoTableComponent_ng_template_4_th_8_Template(rf, ctx) {
|
|
16659
16726
|
if (rf & 1) {
|
|
16660
|
-
i0.ɵɵelement(0, "th",
|
|
16727
|
+
i0.ɵɵelement(0, "th", 51);
|
|
16661
16728
|
}
|
|
16662
16729
|
}
|
|
16663
16730
|
function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) {
|
|
@@ -16665,169 +16732,205 @@ function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) {
|
|
|
16665
16732
|
i0.ɵɵelement(0, "th");
|
|
16666
16733
|
}
|
|
16667
16734
|
if (rf & 2) {
|
|
16668
|
-
const
|
|
16669
|
-
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);
|
|
16670
16737
|
}
|
|
16671
16738
|
}
|
|
16672
16739
|
function PoTableComponent_ng_template_4_th_10_Template(rf, ctx) {
|
|
16673
16740
|
if (rf & 1) {
|
|
16674
|
-
const
|
|
16675
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
16676
|
-
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);
|
|
16677
16768
|
i0.ɵɵelementEnd()()();
|
|
16678
16769
|
}
|
|
16679
16770
|
if (rf & 2) {
|
|
16680
|
-
const
|
|
16681
|
-
|
|
16682
|
-
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);
|
|
16683
16773
|
i0.ɵɵadvance(2);
|
|
16684
|
-
i0.ɵɵ
|
|
16685
|
-
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);
|
|
16686
16789
|
i0.ɵɵadvance(1);
|
|
16687
|
-
i0.ɵɵproperty("
|
|
16790
|
+
i0.ɵɵproperty("ngIf", ctx_r5.hasValidColumns && !ctx_r5.hideColumnsManager);
|
|
16688
16791
|
}
|
|
16689
16792
|
}
|
|
16690
|
-
function
|
|
16793
|
+
function PoTableComponent_ng_template_6_tbody_1_Template(rf, ctx) {
|
|
16691
16794
|
if (rf & 1) {
|
|
16692
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
16795
|
+
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
16693
16796
|
i0.ɵɵtext(4);
|
|
16694
16797
|
i0.ɵɵelementEnd()()()();
|
|
16695
16798
|
}
|
|
16696
16799
|
if (rf & 2) {
|
|
16697
|
-
const
|
|
16800
|
+
const ctx_r68 = i0.ɵɵnextContext(2);
|
|
16698
16801
|
i0.ɵɵadvance(2);
|
|
16699
|
-
i0.ɵɵproperty("colSpan",
|
|
16802
|
+
i0.ɵɵproperty("colSpan", ctx_r68.columnCount);
|
|
16700
16803
|
i0.ɵɵadvance(2);
|
|
16701
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16804
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r68.literals.noData, " ");
|
|
16702
16805
|
}
|
|
16703
16806
|
}
|
|
16704
|
-
function
|
|
16807
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_ng_container_1_Template(rf, ctx) {
|
|
16705
16808
|
if (rf & 1) {
|
|
16706
16809
|
i0.ɵɵelementContainer(0);
|
|
16707
16810
|
}
|
|
16708
16811
|
}
|
|
16709
|
-
function
|
|
16812
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_Template(rf, ctx) {
|
|
16710
16813
|
if (rf & 1) {
|
|
16711
|
-
i0.ɵɵelementStart(0, "td",
|
|
16712
|
-
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);
|
|
16713
16816
|
i0.ɵɵelementEnd();
|
|
16714
16817
|
}
|
|
16715
16818
|
if (rf & 2) {
|
|
16716
|
-
const
|
|
16717
|
-
const
|
|
16718
|
-
const
|
|
16719
|
-
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);
|
|
16720
16823
|
i0.ɵɵadvance(1);
|
|
16721
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16824
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r73.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, row_r71));
|
|
16722
16825
|
}
|
|
16723
16826
|
}
|
|
16724
|
-
function
|
|
16725
|
-
const
|
|
16726
|
-
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) {
|
|
16727
16830
|
if (rf & 1) {
|
|
16728
|
-
const
|
|
16729
|
-
i0.ɵɵelementStart(0, "td",
|
|
16730
|
-
i0.ɵɵlistener("click", function
|
|
16731
|
-
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);
|
|
16732
16835
|
i0.ɵɵelementEnd();
|
|
16733
16836
|
}
|
|
16734
16837
|
if (rf & 2) {
|
|
16735
|
-
const
|
|
16736
|
-
const
|
|
16737
|
-
const
|
|
16838
|
+
const ctx_r90 = i0.ɵɵnextContext();
|
|
16839
|
+
const row_r71 = ctx_r90.$implicit;
|
|
16840
|
+
const rowIndex_r72 = ctx_r90.index;
|
|
16738
16841
|
i0.ɵɵnextContext(3);
|
|
16739
|
-
const
|
|
16842
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16740
16843
|
i0.ɵɵadvance(1);
|
|
16741
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16844
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16742
16845
|
}
|
|
16743
16846
|
}
|
|
16744
|
-
function
|
|
16745
|
-
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) {
|
|
16746
16849
|
if (rf & 1) {
|
|
16747
|
-
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);
|
|
16748
16851
|
}
|
|
16749
16852
|
if (rf & 2) {
|
|
16750
|
-
const
|
|
16751
|
-
const
|
|
16752
|
-
const
|
|
16853
|
+
const ctx_r92 = i0.ɵɵnextContext();
|
|
16854
|
+
const row_r71 = ctx_r92.$implicit;
|
|
16855
|
+
const rowIndex_r72 = ctx_r92.index;
|
|
16753
16856
|
i0.ɵɵnextContext(3);
|
|
16754
|
-
const
|
|
16755
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16857
|
+
const _r23 = i0.ɵɵreference(25);
|
|
16858
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16756
16859
|
}
|
|
16757
16860
|
}
|
|
16758
|
-
function
|
|
16759
|
-
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) {
|
|
16760
16863
|
if (rf & 1) {
|
|
16761
|
-
const
|
|
16762
|
-
i0.ɵɵelementStart(0, "td",
|
|
16763
|
-
i0.ɵɵlistener("click", function
|
|
16764
|
-
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);
|
|
16765
16868
|
i0.ɵɵelementEnd();
|
|
16766
16869
|
}
|
|
16767
16870
|
if (rf & 2) {
|
|
16768
|
-
const
|
|
16769
|
-
const
|
|
16770
|
-
const
|
|
16871
|
+
const ctx_r97 = i0.ɵɵnextContext();
|
|
16872
|
+
const row_r71 = ctx_r97.$implicit;
|
|
16873
|
+
const rowIndex_r72 = ctx_r97.index;
|
|
16771
16874
|
i0.ɵɵnextContext(3);
|
|
16772
|
-
const
|
|
16875
|
+
const _r11 = i0.ɵɵreference(13);
|
|
16773
16876
|
i0.ɵɵadvance(1);
|
|
16774
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16877
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
16775
16878
|
}
|
|
16776
16879
|
}
|
|
16777
|
-
function
|
|
16880
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) {
|
|
16778
16881
|
if (rf & 1) {
|
|
16779
16882
|
i0.ɵɵelementContainer(0);
|
|
16780
16883
|
}
|
|
16781
16884
|
}
|
|
16782
|
-
function
|
|
16885
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_2_Template(rf, ctx) {
|
|
16783
16886
|
if (rf & 1) {
|
|
16784
16887
|
i0.ɵɵelementStart(0, "span");
|
|
16785
|
-
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);
|
|
16786
16889
|
i0.ɵɵelementEnd();
|
|
16787
16890
|
}
|
|
16788
16891
|
if (rf & 2) {
|
|
16789
|
-
const
|
|
16790
|
-
const
|
|
16791
|
-
const
|
|
16892
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16893
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16894
|
+
const ctx_r100 = i0.ɵɵnextContext(3);
|
|
16792
16895
|
i0.ɵɵadvance(1);
|
|
16793
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16896
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r100.getTemplate(column_r98))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, ctx_r100.getCellData(row_r71, column_r98)));
|
|
16794
16897
|
}
|
|
16795
16898
|
}
|
|
16796
|
-
function
|
|
16899
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) {
|
|
16797
16900
|
if (rf & 1) {
|
|
16798
16901
|
i0.ɵɵelementContainer(0);
|
|
16799
16902
|
}
|
|
16800
16903
|
}
|
|
16801
|
-
const
|
|
16802
|
-
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) {
|
|
16803
16906
|
if (rf & 1) {
|
|
16804
16907
|
i0.ɵɵelementStart(0, "span");
|
|
16805
|
-
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);
|
|
16806
16909
|
i0.ɵɵelementEnd();
|
|
16807
16910
|
}
|
|
16808
16911
|
if (rf & 2) {
|
|
16809
|
-
const
|
|
16810
|
-
const
|
|
16811
|
-
const
|
|
16912
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16913
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16914
|
+
const ctx_r101 = i0.ɵɵnextContext(3);
|
|
16812
16915
|
i0.ɵɵadvance(1);
|
|
16813
|
-
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));
|
|
16814
16917
|
}
|
|
16815
16918
|
}
|
|
16816
|
-
function
|
|
16919
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_4_Template(rf, ctx) {
|
|
16817
16920
|
if (rf & 1) {
|
|
16818
16921
|
i0.ɵɵelementStart(0, "span");
|
|
16819
16922
|
i0.ɵɵtext(1);
|
|
16820
16923
|
i0.ɵɵelementEnd();
|
|
16821
16924
|
}
|
|
16822
16925
|
if (rf & 2) {
|
|
16823
|
-
const
|
|
16824
|
-
const
|
|
16825
|
-
const
|
|
16926
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16927
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16928
|
+
const ctx_r102 = i0.ɵɵnextContext(3);
|
|
16826
16929
|
i0.ɵɵadvance(1);
|
|
16827
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16930
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r102.getBooleanLabel(ctx_r102.getCellData(row_r71, column_r98), column_r98), " ");
|
|
16828
16931
|
}
|
|
16829
16932
|
}
|
|
16830
|
-
function
|
|
16933
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_5_Template(rf, ctx) {
|
|
16831
16934
|
if (rf & 1) {
|
|
16832
16935
|
i0.ɵɵelementStart(0, "span");
|
|
16833
16936
|
i0.ɵɵtext(1);
|
|
@@ -16835,14 +16938,14 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_5_Temp
|
|
|
16835
16938
|
i0.ɵɵelementEnd();
|
|
16836
16939
|
}
|
|
16837
16940
|
if (rf & 2) {
|
|
16838
|
-
const
|
|
16839
|
-
const
|
|
16840
|
-
const
|
|
16941
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16942
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16943
|
+
const ctx_r103 = i0.ɵɵnextContext(3);
|
|
16841
16944
|
i0.ɵɵadvance(1);
|
|
16842
|
-
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"), " ");
|
|
16843
16946
|
}
|
|
16844
16947
|
}
|
|
16845
|
-
function
|
|
16948
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_6_Template(rf, ctx) {
|
|
16846
16949
|
if (rf & 1) {
|
|
16847
16950
|
i0.ɵɵelementStart(0, "span");
|
|
16848
16951
|
i0.ɵɵtext(1);
|
|
@@ -16850,14 +16953,14 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_6_Temp
|
|
|
16850
16953
|
i0.ɵɵelementEnd();
|
|
16851
16954
|
}
|
|
16852
16955
|
if (rf & 2) {
|
|
16853
|
-
const
|
|
16854
|
-
const
|
|
16855
|
-
const
|
|
16956
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16957
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16958
|
+
const ctx_r104 = i0.ɵɵnextContext(3);
|
|
16856
16959
|
i0.ɵɵadvance(1);
|
|
16857
|
-
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"), " ");
|
|
16858
16961
|
}
|
|
16859
16962
|
}
|
|
16860
|
-
function
|
|
16963
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_7_Template(rf, ctx) {
|
|
16861
16964
|
if (rf & 1) {
|
|
16862
16965
|
i0.ɵɵelementStart(0, "span");
|
|
16863
16966
|
i0.ɵɵtext(1);
|
|
@@ -16865,14 +16968,14 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_7_Temp
|
|
|
16865
16968
|
i0.ɵɵelementEnd();
|
|
16866
16969
|
}
|
|
16867
16970
|
if (rf & 2) {
|
|
16868
|
-
const
|
|
16869
|
-
const
|
|
16870
|
-
const
|
|
16971
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16972
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16973
|
+
const ctx_r105 = i0.ɵɵnextContext(3);
|
|
16871
16974
|
i0.ɵɵadvance(1);
|
|
16872
|
-
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"), " ");
|
|
16873
16976
|
}
|
|
16874
16977
|
}
|
|
16875
|
-
function
|
|
16978
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_8_Template(rf, ctx) {
|
|
16876
16979
|
if (rf & 1) {
|
|
16877
16980
|
i0.ɵɵelementStart(0, "span");
|
|
16878
16981
|
i0.ɵɵtext(1);
|
|
@@ -16880,126 +16983,127 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_span_8_Temp
|
|
|
16880
16983
|
i0.ɵɵelementEnd();
|
|
16881
16984
|
}
|
|
16882
16985
|
if (rf & 2) {
|
|
16883
|
-
const
|
|
16884
|
-
const
|
|
16885
|
-
const
|
|
16986
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
16987
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
16988
|
+
const ctx_r106 = i0.ɵɵnextContext(3);
|
|
16886
16989
|
i0.ɵɵadvance(1);
|
|
16887
|
-
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"), " ");
|
|
16888
16991
|
}
|
|
16889
16992
|
}
|
|
16890
|
-
function
|
|
16993
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_9_Template(rf, ctx) {
|
|
16891
16994
|
if (rf & 1) {
|
|
16892
16995
|
i0.ɵɵelementStart(0, "span");
|
|
16893
16996
|
i0.ɵɵtext(1);
|
|
16894
16997
|
i0.ɵɵelementEnd();
|
|
16895
16998
|
}
|
|
16896
16999
|
if (rf & 2) {
|
|
16897
|
-
const
|
|
16898
|
-
const
|
|
16899
|
-
const
|
|
17000
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17001
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17002
|
+
const ctx_r107 = i0.ɵɵnextContext(3);
|
|
16900
17003
|
i0.ɵɵadvance(1);
|
|
16901
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17004
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r107.formatNumber(ctx_r107.getCellData(row_r71, column_r98), column_r98.format), " ");
|
|
16902
17005
|
}
|
|
16903
17006
|
}
|
|
16904
|
-
function
|
|
17007
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) {
|
|
16905
17008
|
if (rf & 1) {
|
|
16906
|
-
const
|
|
16907
|
-
i0.ɵɵelementStart(0, "po-table-column-link",
|
|
16908
|
-
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); });
|
|
16909
17012
|
i0.ɵɵelementEnd();
|
|
16910
17013
|
}
|
|
16911
17014
|
if (rf & 2) {
|
|
16912
|
-
const
|
|
16913
|
-
const
|
|
16914
|
-
const
|
|
16915
|
-
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));
|
|
16916
17019
|
}
|
|
16917
17020
|
}
|
|
16918
|
-
function
|
|
17021
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) {
|
|
16919
17022
|
if (rf & 1) {
|
|
16920
|
-
i0.ɵɵelement(0, "po-table-column-icon",
|
|
17023
|
+
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
16921
17024
|
}
|
|
16922
17025
|
if (rf & 2) {
|
|
16923
|
-
const
|
|
16924
|
-
const
|
|
16925
|
-
const
|
|
16926
|
-
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);
|
|
16927
17030
|
}
|
|
16928
17031
|
}
|
|
16929
|
-
function
|
|
17032
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_12_Template(rf, ctx) {
|
|
16930
17033
|
if (rf & 1) {
|
|
16931
17034
|
i0.ɵɵelementStart(0, "span");
|
|
16932
|
-
i0.ɵɵelement(1, "po-table-subtitle-circle",
|
|
17035
|
+
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
16933
17036
|
i0.ɵɵelementEnd();
|
|
16934
17037
|
}
|
|
16935
17038
|
if (rf & 2) {
|
|
16936
|
-
const
|
|
16937
|
-
const
|
|
16938
|
-
const
|
|
17039
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17040
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17041
|
+
const ctx_r110 = i0.ɵɵnextContext(3);
|
|
16939
17042
|
i0.ɵɵadvance(1);
|
|
16940
|
-
i0.ɵɵproperty("p-subtitle",
|
|
17043
|
+
i0.ɵɵproperty("p-subtitle", ctx_r110.getSubtitleColumn(row_r71, column_r98));
|
|
16941
17044
|
}
|
|
16942
17045
|
}
|
|
16943
|
-
function
|
|
17046
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_13_Template(rf, ctx) {
|
|
16944
17047
|
if (rf & 1) {
|
|
16945
17048
|
i0.ɵɵelementStart(0, "span");
|
|
16946
|
-
i0.ɵɵelement(1, "po-table-column-label",
|
|
17049
|
+
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
16947
17050
|
i0.ɵɵelementEnd();
|
|
16948
17051
|
}
|
|
16949
17052
|
if (rf & 2) {
|
|
16950
|
-
const
|
|
16951
|
-
const
|
|
16952
|
-
const
|
|
17053
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17054
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17055
|
+
const ctx_r111 = i0.ɵɵnextContext(3);
|
|
16953
17056
|
i0.ɵɵadvance(1);
|
|
16954
|
-
i0.ɵɵproperty("p-value",
|
|
17057
|
+
i0.ɵɵproperty("p-value", ctx_r111.getColumnLabel(row_r71, column_r98));
|
|
16955
17058
|
}
|
|
16956
17059
|
}
|
|
16957
|
-
function
|
|
17060
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_14_Template(rf, ctx) {
|
|
16958
17061
|
if (rf & 1) {
|
|
16959
17062
|
i0.ɵɵelementStart(0, "span");
|
|
16960
17063
|
i0.ɵɵtext(1);
|
|
16961
17064
|
i0.ɵɵelementEnd();
|
|
16962
17065
|
}
|
|
16963
17066
|
if (rf & 2) {
|
|
16964
|
-
const
|
|
16965
|
-
const
|
|
16966
|
-
const
|
|
17067
|
+
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
17068
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17069
|
+
const ctx_r112 = i0.ɵɵnextContext(3);
|
|
16967
17070
|
i0.ɵɵadvance(1);
|
|
16968
|
-
i0.ɵɵtextInterpolate(
|
|
17071
|
+
i0.ɵɵtextInterpolate(ctx_r112.getCellData(row_r71, column_r98));
|
|
16969
17072
|
}
|
|
16970
17073
|
}
|
|
16971
|
-
function
|
|
17074
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template(rf, ctx) {
|
|
16972
17075
|
if (rf & 1) {
|
|
16973
|
-
const
|
|
16974
|
-
i0.ɵɵelementStart(0, "td",
|
|
16975
|
-
i0.ɵɵlistener("click", function
|
|
16976
|
-
i0.ɵɵelementStart(1, "div",
|
|
16977
|
-
i0.ɵɵlistener("mouseenter", function
|
|
16978
|
-
i0.ɵɵtemplate(2,
|
|
16979
|
-
i0.ɵɵtemplate(3,
|
|
16980
|
-
i0.ɵɵtemplate(4,
|
|
16981
|
-
i0.ɵɵtemplate(5,
|
|
16982
|
-
i0.ɵɵtemplate(6,
|
|
16983
|
-
i0.ɵɵtemplate(7,
|
|
16984
|
-
i0.ɵɵtemplate(8,
|
|
16985
|
-
i0.ɵɵtemplate(9,
|
|
16986
|
-
i0.ɵɵtemplate(10,
|
|
16987
|
-
i0.ɵɵtemplate(11,
|
|
16988
|
-
i0.ɵɵtemplate(12,
|
|
16989
|
-
i0.ɵɵtemplate(13,
|
|
16990
|
-
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);
|
|
16991
17094
|
i0.ɵɵelementEnd()();
|
|
16992
17095
|
}
|
|
16993
17096
|
if (rf & 2) {
|
|
16994
|
-
const
|
|
16995
|
-
const
|
|
16996
|
-
const
|
|
16997
|
-
i0.ɵɵstyleProp("width",
|
|
16998
|
-
i0.ɵɵclassProp("po-table-column",
|
|
16999
|
-
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));
|
|
17000
17103
|
i0.ɵɵadvance(1);
|
|
17001
|
-
i0.ɵɵ
|
|
17002
|
-
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);
|
|
17003
17107
|
i0.ɵɵadvance(1);
|
|
17004
17108
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
17005
17109
|
i0.ɵɵadvance(1);
|
|
@@ -17026,375 +17130,991 @@ function PoTableComponent_ng_template_4_ng_container_12_tbody_1_td_6_Template(rf
|
|
|
17026
17130
|
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
17027
17131
|
}
|
|
17028
17132
|
}
|
|
17029
|
-
function
|
|
17030
|
-
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) {
|
|
17031
17135
|
if (rf & 1) {
|
|
17032
|
-
const
|
|
17033
|
-
i0.ɵɵelementStart(0, "td",
|
|
17034
|
-
i0.ɵɵlistener("click", function
|
|
17035
|
-
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);
|
|
17036
17140
|
i0.ɵɵelementEnd();
|
|
17037
17141
|
}
|
|
17038
17142
|
if (rf & 2) {
|
|
17039
|
-
const
|
|
17040
|
-
const
|
|
17041
|
-
const
|
|
17143
|
+
const ctx_r156 = i0.ɵɵnextContext();
|
|
17144
|
+
const row_r71 = ctx_r156.$implicit;
|
|
17145
|
+
const rowIndex_r72 = ctx_r156.index;
|
|
17042
17146
|
i0.ɵɵnextContext(3);
|
|
17043
|
-
const
|
|
17147
|
+
const _r11 = i0.ɵɵreference(13);
|
|
17044
17148
|
i0.ɵɵadvance(1);
|
|
17045
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17149
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
17046
17150
|
}
|
|
17047
17151
|
}
|
|
17048
|
-
function
|
|
17049
|
-
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) {
|
|
17050
17154
|
if (rf & 1) {
|
|
17051
|
-
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);
|
|
17052
17156
|
}
|
|
17053
17157
|
if (rf & 2) {
|
|
17054
|
-
const
|
|
17055
|
-
const
|
|
17056
|
-
const
|
|
17158
|
+
const ctx_r158 = i0.ɵɵnextContext();
|
|
17159
|
+
const row_r71 = ctx_r158.$implicit;
|
|
17160
|
+
const rowIndex_r72 = ctx_r158.index;
|
|
17057
17161
|
i0.ɵɵnextContext(3);
|
|
17058
|
-
const
|
|
17059
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17162
|
+
const _r23 = i0.ɵɵreference(25);
|
|
17163
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r71, rowIndex_r72));
|
|
17060
17164
|
}
|
|
17061
17165
|
}
|
|
17062
|
-
function
|
|
17166
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_ng_container_9_Template(rf, ctx) {
|
|
17063
17167
|
if (rf & 1) {
|
|
17064
17168
|
i0.ɵɵelementContainerStart(0);
|
|
17065
|
-
i0.ɵɵelement(1, "td",
|
|
17169
|
+
i0.ɵɵelement(1, "td", 83);
|
|
17066
17170
|
i0.ɵɵelementContainerEnd();
|
|
17067
17171
|
}
|
|
17068
17172
|
}
|
|
17069
|
-
function
|
|
17173
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_10_Template(rf, ctx) {
|
|
17070
17174
|
if (rf & 1) {
|
|
17071
|
-
i0.ɵɵelement(0, "td",
|
|
17175
|
+
i0.ɵɵelement(0, "td", 84);
|
|
17072
17176
|
}
|
|
17073
17177
|
}
|
|
17074
|
-
function
|
|
17075
|
-
const
|
|
17076
|
-
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) {
|
|
17077
17181
|
if (rf & 1) {
|
|
17078
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
17079
|
-
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);
|
|
17080
17184
|
i0.ɵɵelementEnd()();
|
|
17081
17185
|
}
|
|
17082
17186
|
if (rf & 2) {
|
|
17083
|
-
const
|
|
17084
|
-
const
|
|
17085
|
-
const
|
|
17086
|
-
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);
|
|
17087
17191
|
i0.ɵɵadvance(1);
|
|
17088
|
-
i0.ɵɵproperty("colSpan",
|
|
17192
|
+
i0.ɵɵproperty("colSpan", ctx_r82.columnCountForMasterDetail);
|
|
17089
17193
|
i0.ɵɵadvance(1);
|
|
17090
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17194
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r82.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c13, row_r71, rowIndex_r72));
|
|
17091
17195
|
}
|
|
17092
17196
|
}
|
|
17093
|
-
function
|
|
17197
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template(rf, ctx) {
|
|
17094
17198
|
if (rf & 1) {
|
|
17095
|
-
const
|
|
17096
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
17097
|
-
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); });
|
|
17098
17202
|
i0.ɵɵelementEnd()()();
|
|
17099
17203
|
}
|
|
17100
17204
|
if (rf & 2) {
|
|
17101
|
-
const
|
|
17102
|
-
const
|
|
17205
|
+
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
17206
|
+
const ctx_r83 = i0.ɵɵnextContext(3);
|
|
17103
17207
|
i0.ɵɵadvance(1);
|
|
17104
|
-
i0.ɵɵproperty("colSpan",
|
|
17208
|
+
i0.ɵɵproperty("colSpan", ctx_r83.columnCountForMasterDetail);
|
|
17105
17209
|
i0.ɵɵadvance(1);
|
|
17106
|
-
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]);
|
|
17107
17211
|
}
|
|
17108
17212
|
}
|
|
17109
|
-
function
|
|
17213
|
+
function PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template(rf, ctx) {
|
|
17110
17214
|
if (rf & 1) {
|
|
17111
|
-
i0.ɵɵelementStart(0, "tbody",
|
|
17112
|
-
i0.ɵɵtemplate(2,
|
|
17113
|
-
i0.ɵɵtemplate(3,
|
|
17114
|
-
i0.ɵɵtemplate(4,
|
|
17115
|
-
i0.ɵɵtemplate(5,
|
|
17116
|
-
i0.ɵɵtemplate(6,
|
|
17117
|
-
i0.ɵɵtemplate(7,
|
|
17118
|
-
i0.ɵɵtemplate(8,
|
|
17119
|
-
i0.ɵɵtemplate(9,
|
|
17120
|
-
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);
|
|
17121
17225
|
i0.ɵɵelementEnd();
|
|
17122
|
-
i0.ɵɵtemplate(11,
|
|
17123
|
-
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);
|
|
17124
17228
|
i0.ɵɵelementEnd();
|
|
17125
17229
|
}
|
|
17126
17230
|
if (rf & 2) {
|
|
17127
|
-
const
|
|
17128
|
-
const
|
|
17129
|
-
const
|
|
17231
|
+
const row_r71 = ctx.$implicit;
|
|
17232
|
+
const rowIndex_r72 = ctx.index;
|
|
17233
|
+
const ctx_r70 = i0.ɵɵnextContext(3);
|
|
17130
17234
|
i0.ɵɵadvance(1);
|
|
17131
|
-
i0.ɵɵclassProp("po-table-row-active",
|
|
17235
|
+
i0.ɵɵclassProp("po-table-row-active", row_r71.$selected || row_r71.$selected === null && ctx_r70.selectable);
|
|
17132
17236
|
i0.ɵɵadvance(1);
|
|
17133
|
-
i0.ɵɵproperty("ngIf",
|
|
17237
|
+
i0.ɵɵproperty("ngIf", ctx_r70.selectable);
|
|
17134
17238
|
i0.ɵɵadvance(1);
|
|
17135
|
-
i0.ɵɵproperty("ngIf",
|
|
17239
|
+
i0.ɵɵproperty("ngIf", ctx_r70.columnMasterDetail && !ctx_r70.hideDetail && !ctx_r70.hasRowTemplate);
|
|
17136
17240
|
i0.ɵɵadvance(1);
|
|
17137
|
-
i0.ɵɵproperty("ngIf", !
|
|
17241
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction));
|
|
17138
17242
|
i0.ɵɵadvance(1);
|
|
17139
|
-
i0.ɵɵproperty("ngIf",
|
|
17243
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplate && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17140
17244
|
i0.ɵɵadvance(1);
|
|
17141
|
-
i0.ɵɵproperty("ngForOf",
|
|
17245
|
+
i0.ɵɵproperty("ngForOf", ctx_r70.mainColumns)("ngForTrackBy", ctx_r70.trackBy);
|
|
17142
17246
|
i0.ɵɵadvance(1);
|
|
17143
|
-
i0.ɵɵproperty("ngIf",
|
|
17247
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17144
17248
|
i0.ɵɵadvance(1);
|
|
17145
|
-
i0.ɵɵproperty("ngIf",
|
|
17249
|
+
i0.ɵɵproperty("ngIf", ctx_r70.actionRight);
|
|
17146
17250
|
i0.ɵɵadvance(1);
|
|
17147
|
-
i0.ɵɵproperty("ngIf", !
|
|
17251
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.actionRight && (ctx_r70.visibleActions.length > 1 || ctx_r70.isSingleAction) && !ctx_r70.hideColumnsManager);
|
|
17148
17252
|
i0.ɵɵadvance(1);
|
|
17149
|
-
i0.ɵɵproperty("ngIf", !
|
|
17253
|
+
i0.ɵɵproperty("ngIf", !ctx_r70.hasVisibleActions && !ctx_r70.hideColumnsManager && !ctx_r70.hasRowTemplateWithArrowDirectionRight);
|
|
17150
17254
|
i0.ɵɵadvance(1);
|
|
17151
|
-
i0.ɵɵproperty("ngIf",
|
|
17255
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.hasRowTemplate && row_r71.$showDetail && ctx_r70.isShowRowTemplate(row_r71, rowIndex_r72));
|
|
17152
17256
|
i0.ɵɵadvance(1);
|
|
17153
|
-
i0.ɵɵproperty("ngIf",
|
|
17257
|
+
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.isShowMasterDetail(row_r71));
|
|
17154
17258
|
}
|
|
17155
17259
|
}
|
|
17156
|
-
function
|
|
17260
|
+
function PoTableComponent_ng_template_6_ng_container_2_Template(rf, ctx) {
|
|
17157
17261
|
if (rf & 1) {
|
|
17158
17262
|
i0.ɵɵelementContainerStart(0);
|
|
17159
|
-
i0.ɵɵtemplate(1,
|
|
17263
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template, 13, 14, "tbody", 66);
|
|
17160
17264
|
i0.ɵɵelementContainerEnd();
|
|
17161
17265
|
}
|
|
17162
17266
|
if (rf & 2) {
|
|
17163
|
-
const
|
|
17267
|
+
const ctx_r69 = i0.ɵɵnextContext(2);
|
|
17164
17268
|
i0.ɵɵadvance(1);
|
|
17165
|
-
i0.ɵɵproperty("ngForOf",
|
|
17269
|
+
i0.ɵɵproperty("ngForOf", ctx_r69.items)("ngForTrackBy", ctx_r69.trackBy);
|
|
17166
17270
|
}
|
|
17167
17271
|
}
|
|
17168
|
-
function
|
|
17272
|
+
function PoTableComponent_ng_template_6_Template(rf, ctx) {
|
|
17169
17273
|
if (rf & 1) {
|
|
17170
|
-
i0.ɵɵelementStart(0, "table",
|
|
17171
|
-
i0.ɵɵtemplate(
|
|
17172
|
-
i0.ɵɵtemplate(
|
|
17173
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 1, 4, "th", 38);
|
|
17174
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th", 39);
|
|
17175
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 4, 20, "th", 40);
|
|
17176
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th", 37);
|
|
17177
|
-
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th", 41);
|
|
17178
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 13, "th", 42);
|
|
17179
|
-
i0.ɵɵelementEnd()();
|
|
17180
|
-
i0.ɵɵtemplate(11, PoTableComponent_ng_template_4_tbody_11_Template, 5, 2, "tbody", 43);
|
|
17181
|
-
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);
|
|
17182
17277
|
i0.ɵɵelementEnd();
|
|
17183
17278
|
}
|
|
17184
17279
|
if (rf & 2) {
|
|
17185
|
-
const
|
|
17186
|
-
i0.ɵɵclassProp("po-table-striped",
|
|
17187
|
-
i0.ɵɵadvance(2);
|
|
17188
|
-
i0.ɵɵclassProp("po-table-header", !ctx_r5.height);
|
|
17189
|
-
i0.ɵɵadvance(1);
|
|
17190
|
-
i0.ɵɵproperty("ngIf", ctx_r5.hasSelectableColumn);
|
|
17191
|
-
i0.ɵɵadvance(1);
|
|
17192
|
-
i0.ɵɵproperty("ngIf", (ctx_r5.hasMasterDetailColumn || ctx_r5.hasRowTemplate) && !ctx_r5.hasRowTemplateWithArrowDirectionRight);
|
|
17193
|
-
i0.ɵɵadvance(1);
|
|
17194
|
-
i0.ɵɵproperty("ngIf", !ctx_r5.actionRight && (ctx_r5.visibleActions.length > 1 || ctx_r5.isSingleAction));
|
|
17195
|
-
i0.ɵɵadvance(1);
|
|
17196
|
-
i0.ɵɵproperty("ngIf", !ctx_r5.hasMainColumns);
|
|
17197
|
-
i0.ɵɵadvance(1);
|
|
17198
|
-
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);
|
|
17199
17282
|
i0.ɵɵadvance(1);
|
|
17200
|
-
i0.ɵɵproperty("ngIf",
|
|
17283
|
+
i0.ɵɵproperty("ngIf", !ctx_r7.hasItems || !ctx_r7.hasMainColumns);
|
|
17201
17284
|
i0.ɵɵadvance(1);
|
|
17202
|
-
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);
|
|
17203
17314
|
i0.ɵɵadvance(1);
|
|
17204
|
-
i0.ɵɵ
|
|
17315
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r164.height);
|
|
17205
17316
|
i0.ɵɵadvance(1);
|
|
17206
|
-
i0.ɵɵproperty("ngIf", !
|
|
17317
|
+
i0.ɵɵproperty("ngIf", !ctx_r164.hideSelectAll);
|
|
17207
17318
|
i0.ɵɵadvance(1);
|
|
17208
|
-
i0.ɵɵproperty("ngIf",
|
|
17319
|
+
i0.ɵɵproperty("ngIf", !ctx_r164.hideSelectAll);
|
|
17209
17320
|
}
|
|
17210
17321
|
}
|
|
17211
|
-
function
|
|
17322
|
+
function PoTableComponent_ng_template_8_th_4_Template(rf, ctx) {
|
|
17212
17323
|
if (rf & 1) {
|
|
17213
|
-
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");
|
|
17214
17330
|
}
|
|
17215
17331
|
if (rf & 2) {
|
|
17216
|
-
const
|
|
17217
|
-
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);
|
|
17218
17334
|
}
|
|
17219
17335
|
}
|
|
17220
|
-
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) {
|
|
17221
17342
|
if (rf & 1) {
|
|
17222
|
-
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();
|
|
17223
17346
|
}
|
|
17224
17347
|
if (rf & 2) {
|
|
17225
|
-
const
|
|
17226
|
-
const
|
|
17227
|
-
const
|
|
17228
|
-
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);
|
|
17229
17353
|
}
|
|
17230
17354
|
}
|
|
17231
|
-
function
|
|
17355
|
+
function PoTableComponent_ng_template_8_th_7_ng_container_3_Template(rf, ctx) {
|
|
17232
17356
|
if (rf & 1) {
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
|
|
17237
|
-
|
|
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()();
|
|
17238
17368
|
}
|
|
17239
17369
|
if (rf & 2) {
|
|
17240
|
-
const
|
|
17241
|
-
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));
|
|
17242
17379
|
}
|
|
17243
17380
|
}
|
|
17244
|
-
function
|
|
17381
|
+
function PoTableComponent_ng_template_8_th_8_Template(rf, ctx) {
|
|
17245
17382
|
if (rf & 1) {
|
|
17246
|
-
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
|
|
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");
|
|
17251
17389
|
}
|
|
17252
17390
|
if (rf & 2) {
|
|
17253
|
-
const
|
|
17254
|
-
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);
|
|
17255
17393
|
}
|
|
17256
17394
|
}
|
|
17257
|
-
function
|
|
17395
|
+
function PoTableComponent_ng_template_8_th_10_Template(rf, ctx) {
|
|
17258
17396
|
if (rf & 1) {
|
|
17259
|
-
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()()();
|
|
17260
17401
|
}
|
|
17261
17402
|
if (rf & 2) {
|
|
17262
|
-
const
|
|
17263
|
-
const
|
|
17264
|
-
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);
|
|
17265
17411
|
}
|
|
17266
17412
|
}
|
|
17267
|
-
function
|
|
17413
|
+
function PoTableComponent_ng_template_8_tbody_11_Template(rf, ctx) {
|
|
17268
17414
|
if (rf & 1) {
|
|
17269
|
-
|
|
17270
|
-
i0.ɵɵ
|
|
17271
|
-
i0.ɵɵ
|
|
17272
|
-
i0.ɵɵtext(2);
|
|
17273
|
-
i0.ɵɵpipe(3, "titlecase");
|
|
17274
|
-
i0.ɵɵelementEnd();
|
|
17275
|
-
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()()()();
|
|
17276
17418
|
}
|
|
17277
17419
|
if (rf & 2) {
|
|
17278
|
-
const
|
|
17279
|
-
const ctx_r14 = i0.ɵɵnextContext();
|
|
17280
|
-
i0.ɵɵproperty("p-tooltip", ctx_r14.tooltipText);
|
|
17420
|
+
const ctx_r172 = i0.ɵɵnextContext(2);
|
|
17281
17421
|
i0.ɵɵadvance(2);
|
|
17282
|
-
i0.ɵɵ
|
|
17422
|
+
i0.ɵɵproperty("colSpan", ctx_r172.columnCount);
|
|
17283
17423
|
i0.ɵɵadvance(2);
|
|
17284
|
-
i0.ɵɵ
|
|
17424
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r172.literals.noData, " ");
|
|
17285
17425
|
}
|
|
17286
17426
|
}
|
|
17287
|
-
function
|
|
17427
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template(rf, ctx) {
|
|
17288
17428
|
if (rf & 1) {
|
|
17289
|
-
i0.ɵɵ
|
|
17290
|
-
|
|
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);
|
|
17291
17436
|
i0.ɵɵelementEnd();
|
|
17292
17437
|
}
|
|
17293
17438
|
if (rf & 2) {
|
|
17294
|
-
const
|
|
17295
|
-
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);
|
|
17296
17443
|
i0.ɵɵadvance(1);
|
|
17297
|
-
i0.ɵɵ
|
|
17444
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r193.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c10, row_r191));
|
|
17298
17445
|
}
|
|
17299
17446
|
}
|
|
17300
|
-
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) {
|
|
17301
17449
|
if (rf & 1) {
|
|
17302
|
-
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();
|
|
17303
17455
|
}
|
|
17304
17456
|
if (rf & 2) {
|
|
17305
|
-
const
|
|
17306
|
-
|
|
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));
|
|
17307
17464
|
}
|
|
17308
17465
|
}
|
|
17309
|
-
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) {
|
|
17310
17468
|
if (rf & 1) {
|
|
17311
|
-
i0.ɵɵ
|
|
17469
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
17312
17470
|
}
|
|
17313
17471
|
if (rf & 2) {
|
|
17314
|
-
const
|
|
17315
|
-
|
|
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));
|
|
17316
17478
|
}
|
|
17317
17479
|
}
|
|
17318
|
-
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) {
|
|
17319
17482
|
if (rf & 1) {
|
|
17320
|
-
const
|
|
17321
|
-
i0.ɵɵelementStart(0, "
|
|
17322
|
-
i0.ɵɵlistener("click", function
|
|
17323
|
-
i0.ɵɵtemplate(1,
|
|
17324
|
-
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);
|
|
17325
17487
|
i0.ɵɵelementEnd();
|
|
17326
17488
|
}
|
|
17327
17489
|
if (rf & 2) {
|
|
17328
|
-
const
|
|
17329
|
-
const
|
|
17330
|
-
|
|
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);
|
|
17331
17495
|
i0.ɵɵadvance(1);
|
|
17332
|
-
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);
|
|
17333
17514
|
i0.ɵɵadvance(1);
|
|
17334
|
-
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);
|
|
17335
17521
|
}
|
|
17336
17522
|
}
|
|
17337
|
-
function
|
|
17523
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template(rf, ctx) {
|
|
17338
17524
|
if (rf & 1) {
|
|
17339
|
-
i0.ɵɵelementStart(0, "
|
|
17340
|
-
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);
|
|
17341
17527
|
i0.ɵɵelementEnd();
|
|
17342
17528
|
}
|
|
17343
17529
|
if (rf & 2) {
|
|
17344
|
-
const
|
|
17530
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17531
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17532
|
+
const ctx_r221 = i0.ɵɵnextContext(3);
|
|
17345
17533
|
i0.ɵɵadvance(1);
|
|
17346
|
-
i0.ɵɵproperty("
|
|
17534
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r221.tableCellTemplate == null ? null : ctx_r221.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r191, column_r218));
|
|
17347
17535
|
}
|
|
17348
17536
|
}
|
|
17349
|
-
function
|
|
17537
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template(rf, ctx) {
|
|
17350
17538
|
if (rf & 1) {
|
|
17351
|
-
|
|
17352
|
-
i0.ɵɵ
|
|
17353
|
-
i0.ɵɵ
|
|
17354
|
-
|
|
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), " ");
|
|
17355
17549
|
}
|
|
17356
17550
|
}
|
|
17357
|
-
function
|
|
17551
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template(rf, ctx) {
|
|
17358
17552
|
if (rf & 1) {
|
|
17359
|
-
i0.ɵɵ
|
|
17360
|
-
i0.ɵɵ
|
|
17553
|
+
i0.ɵɵelementStart(0, "span");
|
|
17554
|
+
i0.ɵɵtext(1);
|
|
17555
|
+
i0.ɵɵpipe(2, "currency");
|
|
17556
|
+
i0.ɵɵelementEnd();
|
|
17361
17557
|
}
|
|
17362
17558
|
if (rf & 2) {
|
|
17363
|
-
const
|
|
17364
|
-
i0.ɵɵ
|
|
17559
|
+
const column_r218 = i0.ɵɵnextContext().$implicit;
|
|
17560
|
+
const row_r191 = i0.ɵɵnextContext().$implicit;
|
|
17561
|
+
const ctx_r223 = i0.ɵɵnextContext(3);
|
|
17365
17562
|
i0.ɵɵadvance(1);
|
|
17366
|
-
i0.ɵɵ
|
|
17563
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r223.getCellData(row_r191, column_r218), column_r218.format, "symbol", "1.2-2"), " ");
|
|
17367
17564
|
}
|
|
17368
17565
|
}
|
|
17369
|
-
function
|
|
17566
|
+
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template(rf, ctx) {
|
|
17370
17567
|
if (rf & 1) {
|
|
17371
|
-
|
|
17372
|
-
i0.ɵɵ
|
|
17373
|
-
i0.ɵɵ
|
|
17568
|
+
i0.ɵɵelementStart(0, "span");
|
|
17569
|
+
i0.ɵɵtext(1);
|
|
17570
|
+
i0.ɵɵpipe(2, "date");
|
|
17374
17571
|
i0.ɵɵelementEnd();
|
|
17375
17572
|
}
|
|
17376
17573
|
if (rf & 2) {
|
|
17377
|
-
const
|
|
17378
|
-
|
|
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"), " ");
|
|
17379
17579
|
}
|
|
17380
17580
|
}
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
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>
|
|
17398
18118
|
*
|
|
17399
18119
|
* <example name="po-table-with-api" title="PO Table using API">
|
|
17400
18120
|
* <file name="sample-po-table-with-api/sample-po-table-with-api.component.ts"> </file>
|
|
@@ -17695,6 +18415,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17695
18415
|
onChangeVisibleColumns(columns) {
|
|
17696
18416
|
this.changeVisibleColumns.emit(columns);
|
|
17697
18417
|
}
|
|
18418
|
+
onColumnRestoreManager(value) {
|
|
18419
|
+
this.columnRestoreManager.emit(value);
|
|
18420
|
+
}
|
|
17698
18421
|
onVisibleColumnsChange(columns) {
|
|
17699
18422
|
this.columns = columns;
|
|
17700
18423
|
this.changeDetector.detectChanges();
|
|
@@ -17769,6 +18492,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17769
18492
|
}
|
|
17770
18493
|
return template.templateRef;
|
|
17771
18494
|
}
|
|
18495
|
+
syncronizeHorizontalScroll() {
|
|
18496
|
+
this.poTableThead.nativeElement.scrollLeft = this.poTableTbody.nativeElement.scrollLeft;
|
|
18497
|
+
}
|
|
17772
18498
|
calculateHeightTableContainer(height) {
|
|
17773
18499
|
const value = parseFloat(height);
|
|
17774
18500
|
this.heightTableContainer = value ? value - this.getHeightTableFooter() : undefined;
|
|
@@ -17910,10 +18636,11 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17910
18636
|
i0.ɵɵviewQuery(_c2$a, 5, ElementRef);
|
|
17911
18637
|
i0.ɵɵviewQuery(_c3$6, 5, ElementRef);
|
|
17912
18638
|
i0.ɵɵviewQuery(_c4$4, 5, ElementRef);
|
|
17913
|
-
i0.ɵɵviewQuery(_c5$2, 5);
|
|
17914
|
-
i0.ɵɵviewQuery(_c6$
|
|
18639
|
+
i0.ɵɵviewQuery(_c5$2, 5, ElementRef);
|
|
18640
|
+
i0.ɵɵviewQuery(_c6$2, 5);
|
|
17915
18641
|
i0.ɵɵviewQuery(_c7$1, 5, ElementRef);
|
|
17916
|
-
i0.ɵɵviewQuery(_c8$1, 5);
|
|
18642
|
+
i0.ɵɵviewQuery(_c8$1, 5, ElementRef);
|
|
18643
|
+
i0.ɵɵviewQuery(_c9, 5);
|
|
17917
18644
|
}
|
|
17918
18645
|
if (rf & 2) {
|
|
17919
18646
|
let _t;
|
|
@@ -17922,33 +18649,36 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17922
18649
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableFooterElement = _t.first);
|
|
17923
18650
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableWrapperElement = _t.first);
|
|
17924
18651
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableTbody = _t.first);
|
|
18652
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableThead = _t.first);
|
|
17925
18653
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerTarget = _t.first);
|
|
17926
18654
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsIconElement = _t);
|
|
17927
18655
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsElement = _t);
|
|
17928
18656
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headersTable = _t);
|
|
17929
18657
|
}
|
|
17930
|
-
}, 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) {
|
|
17931
18659
|
if (rf & 1) {
|
|
17932
18660
|
i0.ɵɵtemplate(0, PoTableComponent_po_container_0_Template, 2, 2, "po-container", 0);
|
|
17933
18661
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_Template, 8, 10, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
17934
18662
|
i0.ɵɵtemplate(3, PoTableComponent_div_3_Template, 3, 5, "div", 2);
|
|
17935
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_Template,
|
|
17936
|
-
i0.ɵɵ
|
|
17937
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_Template,
|
|
17938
|
-
i0.ɵɵ
|
|
17939
|
-
i0.ɵɵtemplate(12, PoTableComponent_ng_template_12_Template,
|
|
17940
|
-
i0.ɵɵtemplate(14, PoTableComponent_ng_template_14_Template,
|
|
17941
|
-
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template, 2,
|
|
17942
|
-
i0.ɵɵtemplate(18, PoTableComponent_ng_template_18_Template,
|
|
17943
|
-
i0.ɵɵtemplate(20, PoTableComponent_ng_template_20_Template, 2,
|
|
17944
|
-
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);
|
|
17945
18675
|
}
|
|
17946
18676
|
if (rf & 2) {
|
|
17947
18677
|
const _r1 = i0.ɵɵreference(2);
|
|
17948
18678
|
i0.ɵɵproperty("ngIf", ctx.container)("ngIfElse", _r1);
|
|
17949
18679
|
i0.ɵɵadvance(3);
|
|
17950
18680
|
i0.ɵɵproperty("ngIf", !ctx.infiniteScroll);
|
|
17951
|
-
i0.ɵɵadvance(
|
|
18681
|
+
i0.ɵɵadvance(7);
|
|
17952
18682
|
i0.ɵɵproperty("p-actions", ctx.actions)("p-target", ctx.popupTarget);
|
|
17953
18683
|
i0.ɵɵadvance(16);
|
|
17954
18684
|
i0.ɵɵproperty("ngIf", !ctx.hideColumnsManager);
|
|
@@ -17957,7 +18687,7 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17957
18687
|
(function () {
|
|
17958
18688
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableComponent, [{
|
|
17959
18689
|
type: Component,
|
|
17960
|
-
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" }]
|
|
17961
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: [{
|
|
17962
18692
|
type: ContentChild,
|
|
17963
18693
|
args: [PoTableRowTemplateDirective, { static: true }]
|
|
@@ -17982,6 +18712,9 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17982
18712
|
}], poTableTbody: [{
|
|
17983
18713
|
type: ViewChild,
|
|
17984
18714
|
args: ['poTableTbody', { read: ElementRef, static: false }]
|
|
18715
|
+
}], poTableThead: [{
|
|
18716
|
+
type: ViewChild,
|
|
18717
|
+
args: ['poTableThead', { read: ElementRef, static: false }]
|
|
17985
18718
|
}], actionsIconElement: [{
|
|
17986
18719
|
type: ViewChildren,
|
|
17987
18720
|
args: ['actionsIconElement', { read: ElementRef }]
|
|
@@ -18132,10 +18865,18 @@ var PoKeyCodeEnum;
|
|
|
18132
18865
|
* O componente `po-checkbox` exibe uma caixa de opção com um texto ao lado, na qual é possível marcar e desmarcar através tanto
|
|
18133
18866
|
* no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
|
|
18134
18867
|
*
|
|
18135
|
-
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado e desabilitado, como também uma ação que será disparada quando
|
|
18868
|
+
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
|
|
18136
18869
|
* ocorrer mudanças do valor.
|
|
18137
18870
|
*
|
|
18138
|
-
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado.
|
|
18871
|
+
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
|
|
18872
|
+
*
|
|
18873
|
+
* **Acessibilidade tratada no componente:**
|
|
18874
|
+
*
|
|
18875
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
18876
|
+
*
|
|
18877
|
+
* - O componente foi desenvolvido utilizando controles padrões HTML para permitir a identificação do mesmo na interface por tecnologias assistivas. [WCAG 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
|
|
18878
|
+
* - A área do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco não pode ficar escondido por outros elementos da tela. [WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
|
|
18879
|
+
* - A cor não deve ser o único meio para diferenciar o componente do seu estado marcado e desmarcado. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
18139
18880
|
*/
|
|
18140
18881
|
class PoCheckboxBaseComponent {
|
|
18141
18882
|
constructor() {
|
|
@@ -18185,7 +18926,7 @@ class PoCheckboxBaseComponent {
|
|
|
18185
18926
|
}
|
|
18186
18927
|
checkOption(value) {
|
|
18187
18928
|
if (!this.disabled) {
|
|
18188
|
-
this.changeModelValue(!value);
|
|
18929
|
+
value === 'mixed' ? this.changeModelValue(true) : this.changeModelValue(!value);
|
|
18189
18930
|
this.changeValue();
|
|
18190
18931
|
}
|
|
18191
18932
|
}
|
|
@@ -18298,7 +19039,12 @@ class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
|
18298
19039
|
}
|
|
18299
19040
|
}
|
|
18300
19041
|
changeModelValue(value) {
|
|
18301
|
-
|
|
19042
|
+
if (value === null) {
|
|
19043
|
+
this.checkboxValue = 'mixed';
|
|
19044
|
+
}
|
|
19045
|
+
else {
|
|
19046
|
+
this.checkboxValue = typeof value === 'boolean' || value === null ? value : false;
|
|
19047
|
+
}
|
|
18302
19048
|
this.changeDetector.detectChanges();
|
|
18303
19049
|
}
|
|
18304
19050
|
}
|
|
@@ -18317,22 +19063,22 @@ PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheck
|
|
|
18317
19063
|
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
18318
19064
|
multi: true
|
|
18319
19065
|
}
|
|
18320
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
19066
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 8, consts: [[1, "container-po-checkbox", 3, "click", "keydown"], ["role", "checkbox", 1, "po-checkbox", 3, "id", "tabindex"], ["tabindex", "-1", 1, "po-checkbox-label", 3, "for"], ["checkboxLabel", ""]], template: function PoCheckboxComponent_Template(rf, ctx) {
|
|
18321
19067
|
if (rf & 1) {
|
|
18322
19068
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18323
|
-
i0.ɵɵ
|
|
19069
|
+
i0.ɵɵlistener("click", function PoCheckboxComponent_Template_div_click_0_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_div_keydown_0_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
19070
|
+
i0.ɵɵelement(1, "span", 1);
|
|
18324
19071
|
i0.ɵɵelementStart(2, "label", 2, 3);
|
|
18325
|
-
i0.ɵɵlistener("blur", function PoCheckboxComponent_Template_label_blur_2_listener() { return ctx.onBlur(); })("click", function PoCheckboxComponent_Template_label_click_2_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_label_keydown_2_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
18326
19072
|
i0.ɵɵtext(4);
|
|
18327
19073
|
i0.ɵɵelementEnd()();
|
|
18328
19074
|
}
|
|
18329
19075
|
if (rf & 2) {
|
|
19076
|
+
i0.ɵɵattribute("checked", ctx.checkboxValue);
|
|
18330
19077
|
i0.ɵɵadvance(1);
|
|
18331
|
-
i0.ɵɵ
|
|
18332
|
-
i0.ɵɵ
|
|
19078
|
+
i0.ɵɵproperty("id", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
19079
|
+
i0.ɵɵattribute("aria-checked", ctx.checkboxValue)("aria-label", ctx.label)("aria-disabled", ctx.disabled);
|
|
18333
19080
|
i0.ɵɵadvance(1);
|
|
18334
|
-
i0.ɵɵ
|
|
18335
|
-
i0.ɵɵproperty("for", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
19081
|
+
i0.ɵɵproperty("for", ctx.id);
|
|
18336
19082
|
i0.ɵɵadvance(2);
|
|
18337
19083
|
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
18338
19084
|
}
|
|
@@ -18346,7 +19092,7 @@ PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheck
|
|
|
18346
19092
|
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
18347
19093
|
multi: true
|
|
18348
19094
|
}
|
|
18349
|
-
], template: "<div
|
|
19095
|
+
], template: "<div\n class=\"container-po-checkbox\"\n [attr.checked]=\"checkboxValue\"\n (click)=\"checkOption(checkboxValue)\"\n (keydown)=\"onKeyDown($event, checkboxValue)\"\n>\n <span\n [attr.aria-checked]=\"checkboxValue\"\n [attr.aria-label]=\"label\"\n [id]=\"id\"\n class=\"po-checkbox\"\n role=\"checkbox\"\n [attr.aria-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n >\n </span>\n\n <label #checkboxLabel [for]=\"id\" class=\"po-checkbox-label\" tabindex=\"-1\">\n {{ label }}\n </label>\n</div>\n" }]
|
|
18350
19096
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabel: [{
|
|
18351
19097
|
type: ViewChild,
|
|
18352
19098
|
args: ['checkboxLabel', { static: true }]
|
|
@@ -18470,6 +19216,9 @@ class PoComboBaseComponent {
|
|
|
18470
19216
|
this.isFiltering = false;
|
|
18471
19217
|
this.previousSearchValue = '';
|
|
18472
19218
|
this.visibleOptions = [];
|
|
19219
|
+
this.page = 1;
|
|
19220
|
+
this.pageSize = 10;
|
|
19221
|
+
this.loading = false;
|
|
18473
19222
|
this.cacheStaticOptions = [];
|
|
18474
19223
|
this.comboOptionsList = [];
|
|
18475
19224
|
this.onModelTouched = null;
|
|
@@ -18485,11 +19234,44 @@ class PoComboBaseComponent {
|
|
|
18485
19234
|
this._placeholder = '';
|
|
18486
19235
|
this._required = false;
|
|
18487
19236
|
this._sort = false;
|
|
19237
|
+
this._infiniteScrollDistance = 100;
|
|
19238
|
+
this._infiniteScroll = false;
|
|
18488
19239
|
// utilizado para fazer o controle de atualizar o model.
|
|
18489
19240
|
// não deve forçar a atualização se o gatilho for o writeValue para não deixar o campo dirty.
|
|
18490
19241
|
this.fromWriteValue = false;
|
|
18491
19242
|
this.language = languageService.getShortLanguage();
|
|
18492
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
|
+
}
|
|
18493
19275
|
/** Mensagem apresentada enquanto o campo estiver vazio. */
|
|
18494
19276
|
set placeholder(value) {
|
|
18495
19277
|
this._placeholder = value || '';
|
|
@@ -18844,7 +19626,7 @@ class PoComboBaseComponent {
|
|
|
18844
19626
|
}
|
|
18845
19627
|
updateComboList(options) {
|
|
18846
19628
|
const copyOptions = options || [...this.comboOptionsList];
|
|
18847
|
-
const newOptions = !options && this.selectedValue ? [Object.assign({}, this.selectedOption)] : copyOptions;
|
|
19629
|
+
const newOptions = !options && !this.infiniteScroll && this.selectedValue ? [Object.assign({}, this.selectedOption)] : copyOptions;
|
|
18848
19630
|
this.visibleOptions = newOptions;
|
|
18849
19631
|
if (!this.selectedView && this.visibleOptions.length) {
|
|
18850
19632
|
this.selectedView = copyOptions.find(option => option.value !== undefined);
|
|
@@ -19065,7 +19847,7 @@ class PoComboBaseComponent {
|
|
|
19065
19847
|
}
|
|
19066
19848
|
}
|
|
19067
19849
|
PoComboBaseComponent.ɵfac = function PoComboBaseComponent_Factory(t) { return new (t || PoComboBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
19068
|
-
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" } });
|
|
19850
|
+
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" } });
|
|
19069
19851
|
__decorate([
|
|
19070
19852
|
InputBoolean()
|
|
19071
19853
|
], PoComboBaseComponent.prototype, "autoFocus", void 0);
|
|
@@ -19096,6 +19878,12 @@ __decorate([
|
|
|
19096
19878
|
}], filterService: [{
|
|
19097
19879
|
type: Input,
|
|
19098
19880
|
args: ['p-filter-service']
|
|
19881
|
+
}], infiniteScroll: [{
|
|
19882
|
+
type: Input,
|
|
19883
|
+
args: ['p-infinite-scroll']
|
|
19884
|
+
}], infiniteScrollDistance: [{
|
|
19885
|
+
type: Input,
|
|
19886
|
+
args: ['p-infinite-scroll-distance']
|
|
19099
19887
|
}], icon: [{
|
|
19100
19888
|
type: Input,
|
|
19101
19889
|
args: ['p-icon']
|
|
@@ -19174,6 +19962,7 @@ class PoComboFilterService {
|
|
|
19174
19962
|
this.http = http;
|
|
19175
19963
|
this.fieldLabel = 'label';
|
|
19176
19964
|
this.fieldValue = 'value';
|
|
19965
|
+
this.hasNext = true;
|
|
19177
19966
|
this.headers = new HttpHeaders({
|
|
19178
19967
|
'X-PO-No-Message': 'true'
|
|
19179
19968
|
});
|
|
@@ -19183,12 +19972,8 @@ class PoComboFilterService {
|
|
|
19183
19972
|
return this._url;
|
|
19184
19973
|
}
|
|
19185
19974
|
getFilteredData(param, filterParams) {
|
|
19186
|
-
const
|
|
19187
|
-
|
|
19188
|
-
const params = Object.assign(Object.assign({}, filterParamsValidated), { filter: value });
|
|
19189
|
-
return this.http
|
|
19190
|
-
.get(`${this.url}`, { responseType: 'json', params, headers: this.headers })
|
|
19191
|
-
.pipe(map((response) => this.parseToArrayComboOption(response.items)));
|
|
19975
|
+
const params = this.prepareParams(param, filterParams);
|
|
19976
|
+
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)));
|
|
19192
19977
|
}
|
|
19193
19978
|
getObjectByValue(value, filterParams) {
|
|
19194
19979
|
const filterParamsValidated = validateObjectType(filterParams);
|
|
@@ -19201,6 +19986,15 @@ class PoComboFilterService {
|
|
|
19201
19986
|
this.fieldLabel = fieldLabel;
|
|
19202
19987
|
this.fieldValue = fieldValue;
|
|
19203
19988
|
}
|
|
19989
|
+
scrollListener(componentListner) {
|
|
19990
|
+
return fromEvent(componentListner, 'scroll').pipe(debounceTime(100));
|
|
19991
|
+
}
|
|
19992
|
+
prepareParams(param, filterParams) {
|
|
19993
|
+
const { page, pageSize, value } = param;
|
|
19994
|
+
const filterParamsValidated = validateObjectType(filterParams);
|
|
19995
|
+
return page
|
|
19996
|
+
? Object.assign(Object.assign({}, filterParamsValidated), { page, pageSize, filter: value }) : Object.assign(Object.assign({}, filterParamsValidated), { filter: value });
|
|
19997
|
+
}
|
|
19204
19998
|
parseToArrayComboOption(items) {
|
|
19205
19999
|
if (items && items.length > 0) {
|
|
19206
20000
|
const parsedOptions = items.map(item => this.parseToComboOption(item));
|
|
@@ -19323,10 +20117,11 @@ const _c0$U = ["containerElement"];
|
|
|
19323
20117
|
const _c1$o = ["contentElement"];
|
|
19324
20118
|
const _c2$9 = ["iconArrow"];
|
|
19325
20119
|
const _c3$5 = ["inp"];
|
|
20120
|
+
const _c4$3 = ["poComboBody"];
|
|
19326
20121
|
function PoComboComponent_div_2_Template(rf, ctx) {
|
|
19327
20122
|
if (rf & 1) {
|
|
19328
|
-
i0.ɵɵelementStart(0, "div",
|
|
19329
|
-
i0.ɵɵelement(1, "po-icon",
|
|
20123
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
20124
|
+
i0.ɵɵelement(1, "po-icon", 18);
|
|
19330
20125
|
i0.ɵɵelementEnd();
|
|
19331
20126
|
}
|
|
19332
20127
|
if (rf & 2) {
|
|
@@ -19338,9 +20133,9 @@ function PoComboComponent_div_2_Template(rf, ctx) {
|
|
|
19338
20133
|
}
|
|
19339
20134
|
function PoComboComponent_po_clean_6_Template(rf, ctx) {
|
|
19340
20135
|
if (rf & 1) {
|
|
19341
|
-
const
|
|
19342
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
19343
|
-
i0.ɵɵlistener("p-change-event", function PoComboComponent_po_clean_6_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(
|
|
20136
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
20137
|
+
i0.ɵɵelementStart(0, "po-clean", 19);
|
|
20138
|
+
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); });
|
|
19344
20139
|
i0.ɵɵelementEnd();
|
|
19345
20140
|
}
|
|
19346
20141
|
if (rf & 2) {
|
|
@@ -19353,157 +20148,175 @@ function PoComboComponent_ng_container_11_Template(rf, ctx) {
|
|
|
19353
20148
|
i0.ɵɵelementContainer(0);
|
|
19354
20149
|
}
|
|
19355
20150
|
}
|
|
19356
|
-
function
|
|
20151
|
+
function PoComboComponent_div_12_ng_container_1_Template(rf, ctx) {
|
|
19357
20152
|
if (rf & 1) {
|
|
19358
|
-
i0.ɵɵ
|
|
19359
|
-
i0.ɵɵelement(1, "po-loading");
|
|
19360
|
-
i0.ɵɵelementEnd();
|
|
20153
|
+
i0.ɵɵelementContainer(0);
|
|
19361
20154
|
}
|
|
19362
20155
|
}
|
|
19363
|
-
function
|
|
20156
|
+
function PoComboComponent_div_12_Template(rf, ctx) {
|
|
19364
20157
|
if (rf & 1) {
|
|
19365
|
-
i0.ɵɵ
|
|
20158
|
+
i0.ɵɵelementStart(0, "div");
|
|
20159
|
+
i0.ɵɵtemplate(1, PoComboComponent_div_12_ng_container_1_Template, 1, 0, "ng-container", 11);
|
|
20160
|
+
i0.ɵɵelementEnd();
|
|
20161
|
+
}
|
|
20162
|
+
if (rf & 2) {
|
|
20163
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
20164
|
+
const _r9 = i0.ɵɵreference(17);
|
|
20165
|
+
const _r7 = i0.ɵɵreference(15);
|
|
20166
|
+
i0.ɵɵadvance(1);
|
|
20167
|
+
i0.ɵɵproperty("ngIf", ctx_r6.infiniteLoading)("ngIfThen", _r9)("ngIfElse", _r7);
|
|
19366
20168
|
}
|
|
19367
20169
|
}
|
|
19368
|
-
function
|
|
20170
|
+
function PoComboComponent_ng_template_14_Template(rf, ctx) {
|
|
19369
20171
|
if (rf & 1) {
|
|
19370
|
-
i0.ɵɵ
|
|
20172
|
+
i0.ɵɵelement(0, "po-loading", 20);
|
|
19371
20173
|
}
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
i0.ɵɵproperty("ngIf", ctx_r9.visibleOptions.length)("ngIfThen", _r10)("ngIfElse", _r12);
|
|
20174
|
+
}
|
|
20175
|
+
function PoComboComponent_ng_template_16_Template(rf, ctx) {
|
|
20176
|
+
if (rf & 1) {
|
|
20177
|
+
i0.ɵɵelement(0, "po-loading-overlay", 20);
|
|
19377
20178
|
}
|
|
19378
20179
|
}
|
|
19379
|
-
function
|
|
20180
|
+
function PoComboComponent_ng_template_18_li_3_ng_container_1_Template(rf, ctx) {
|
|
19380
20181
|
if (rf & 1) {
|
|
19381
20182
|
i0.ɵɵelementContainer(0);
|
|
19382
20183
|
}
|
|
19383
20184
|
}
|
|
19384
|
-
function
|
|
20185
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template(rf, ctx) {
|
|
19385
20186
|
if (rf & 1) {
|
|
19386
|
-
i0.ɵɵelementStart(0, "label",
|
|
20187
|
+
i0.ɵɵelementStart(0, "label", 28);
|
|
19387
20188
|
i0.ɵɵtext(1);
|
|
19388
20189
|
i0.ɵɵelementEnd();
|
|
19389
20190
|
}
|
|
19390
20191
|
if (rf & 2) {
|
|
19391
|
-
const
|
|
20192
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
19392
20193
|
i0.ɵɵadvance(1);
|
|
19393
|
-
i0.ɵɵtextInterpolate(
|
|
20194
|
+
i0.ɵɵtextInterpolate(option_r21.label);
|
|
19394
20195
|
}
|
|
19395
20196
|
}
|
|
19396
|
-
function
|
|
20197
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template(rf, ctx) {
|
|
19397
20198
|
if (rf & 1) {
|
|
19398
|
-
i0.ɵɵelementStart(0, "a",
|
|
19399
|
-
i0.ɵɵelement(1, "span",
|
|
20199
|
+
i0.ɵɵelementStart(0, "a", 29);
|
|
20200
|
+
i0.ɵɵelement(1, "span", 30);
|
|
19400
20201
|
i0.ɵɵelementEnd();
|
|
19401
20202
|
}
|
|
19402
20203
|
if (rf & 2) {
|
|
19403
|
-
const
|
|
19404
|
-
const
|
|
20204
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20205
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
19405
20206
|
i0.ɵɵadvance(1);
|
|
19406
|
-
i0.ɵɵproperty("innerHTML",
|
|
20207
|
+
i0.ɵɵproperty("innerHTML", ctx_r29.getLabelFormatted(option_r21 == null ? null : option_r21.label), i0.ɵɵsanitizeHtml);
|
|
19407
20208
|
}
|
|
19408
20209
|
}
|
|
19409
|
-
function
|
|
20210
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_2_Template(rf, ctx) {
|
|
19410
20211
|
if (rf & 1) {
|
|
19411
|
-
i0.ɵɵtemplate(0,
|
|
19412
|
-
i0.ɵɵtemplate(1,
|
|
20212
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_2_label_0_Template, 2, 1, "label", 26);
|
|
20213
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_2_ng_template_1_Template, 2, 1, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
|
|
19413
20214
|
}
|
|
19414
20215
|
if (rf & 2) {
|
|
19415
|
-
const
|
|
19416
|
-
const
|
|
19417
|
-
i0.ɵɵproperty("ngIf",
|
|
20216
|
+
const _r28 = i0.ɵɵreference(2);
|
|
20217
|
+
const option_r21 = i0.ɵɵnextContext().$implicit;
|
|
20218
|
+
i0.ɵɵproperty("ngIf", option_r21 == null ? null : option_r21.options)("ngIfElse", _r28);
|
|
19418
20219
|
}
|
|
19419
20220
|
}
|
|
19420
|
-
function
|
|
20221
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template(rf, ctx) {
|
|
19421
20222
|
if (rf & 1) {
|
|
19422
20223
|
i0.ɵɵelementContainer(0);
|
|
19423
20224
|
}
|
|
19424
20225
|
}
|
|
19425
|
-
function
|
|
19426
|
-
const
|
|
19427
|
-
function
|
|
20226
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template(rf, ctx) { }
|
|
20227
|
+
const _c5$1 = function (a0, a1) { return { $implicit: a0, selected: a1 }; };
|
|
20228
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template(rf, ctx) {
|
|
19428
20229
|
if (rf & 1) {
|
|
19429
|
-
i0.ɵɵtemplate(0,
|
|
20230
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 33);
|
|
19430
20231
|
}
|
|
19431
20232
|
if (rf & 2) {
|
|
19432
|
-
const
|
|
19433
|
-
const
|
|
19434
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
20233
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20234
|
+
const ctx_r35 = i0.ɵɵnextContext(2);
|
|
20235
|
+
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)));
|
|
19435
20236
|
}
|
|
19436
20237
|
}
|
|
19437
|
-
function
|
|
19438
|
-
const
|
|
19439
|
-
function
|
|
20238
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template(rf, ctx) { }
|
|
20239
|
+
const _c6$1 = function (a0) { return { $implicit: a0 }; };
|
|
20240
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template(rf, ctx) {
|
|
19440
20241
|
if (rf & 1) {
|
|
19441
|
-
i0.ɵɵelementStart(0, "a",
|
|
19442
|
-
i0.ɵɵtemplate(1,
|
|
20242
|
+
i0.ɵɵelementStart(0, "a", 29);
|
|
20243
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_ng_template_1_Template, 0, 0, "ng-template", 33);
|
|
19443
20244
|
i0.ɵɵelementEnd();
|
|
19444
20245
|
}
|
|
19445
20246
|
if (rf & 2) {
|
|
19446
|
-
const
|
|
19447
|
-
const
|
|
20247
|
+
const option_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20248
|
+
const ctx_r37 = i0.ɵɵnextContext(2);
|
|
19448
20249
|
i0.ɵɵadvance(1);
|
|
19449
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
20250
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r37.comboOptionTemplate == null ? null : ctx_r37.comboOptionTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c6$1, option_r21));
|
|
19450
20251
|
}
|
|
19451
20252
|
}
|
|
19452
|
-
function
|
|
20253
|
+
function PoComboComponent_ng_template_18_li_3_ng_template_4_Template(rf, ctx) {
|
|
19453
20254
|
if (rf & 1) {
|
|
19454
|
-
i0.ɵɵtemplate(0,
|
|
19455
|
-
i0.ɵɵtemplate(1,
|
|
19456
|
-
i0.ɵɵtemplate(3,
|
|
20255
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 11);
|
|
20256
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_1_Template, 1, 5, "ng-template", null, 31, i0.ɵɵtemplateRefExtractor);
|
|
20257
|
+
i0.ɵɵtemplate(3, PoComboComponent_ng_template_18_li_3_ng_template_4_ng_template_3_Template, 2, 4, "ng-template", null, 32, i0.ɵɵtemplateRefExtractor);
|
|
19457
20258
|
}
|
|
19458
20259
|
if (rf & 2) {
|
|
19459
|
-
const
|
|
19460
|
-
const
|
|
19461
|
-
const
|
|
19462
|
-
i0.ɵɵproperty("ngIf",
|
|
20260
|
+
const _r34 = i0.ɵɵreference(2);
|
|
20261
|
+
const _r36 = i0.ɵɵreference(4);
|
|
20262
|
+
const ctx_r26 = i0.ɵɵnextContext(3);
|
|
20263
|
+
i0.ɵɵproperty("ngIf", ctx_r26.isOptionGroupList)("ngIfThen", _r34)("ngIfElse", _r36);
|
|
19463
20264
|
}
|
|
19464
20265
|
}
|
|
19465
|
-
function
|
|
20266
|
+
function PoComboComponent_ng_template_18_li_3_Template(rf, ctx) {
|
|
19466
20267
|
if (rf & 1) {
|
|
19467
|
-
const
|
|
20268
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
19468
20269
|
i0.ɵɵelementStart(0, "li", 7);
|
|
19469
|
-
i0.ɵɵlistener("click", function
|
|
19470
|
-
i0.ɵɵtemplate(1,
|
|
19471
|
-
i0.ɵɵtemplate(2,
|
|
19472
|
-
i0.ɵɵtemplate(4,
|
|
20270
|
+
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); });
|
|
20271
|
+
i0.ɵɵtemplate(1, PoComboComponent_ng_template_18_li_3_ng_container_1_Template, 1, 0, "ng-container", 11);
|
|
20272
|
+
i0.ɵɵtemplate(2, PoComboComponent_ng_template_18_li_3_ng_template_2_Template, 3, 2, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
|
|
20273
|
+
i0.ɵɵtemplate(4, PoComboComponent_ng_template_18_li_3_ng_template_4_Template, 5, 3, "ng-template", null, 25, i0.ɵɵtemplateRefExtractor);
|
|
19473
20274
|
i0.ɵɵelementEnd();
|
|
19474
20275
|
}
|
|
19475
20276
|
if (rf & 2) {
|
|
19476
|
-
const
|
|
19477
|
-
const
|
|
19478
|
-
const
|
|
19479
|
-
const
|
|
19480
|
-
i0.ɵɵclassProp("po-combo-item-selected",
|
|
20277
|
+
const option_r21 = ctx.$implicit;
|
|
20278
|
+
const _r23 = i0.ɵɵreference(3);
|
|
20279
|
+
const _r25 = i0.ɵɵreference(5);
|
|
20280
|
+
const ctx_r20 = i0.ɵɵnextContext(2);
|
|
20281
|
+
i0.ɵɵclassProp("po-combo-item-selected", ctx_r20.compareObjects(ctx_r20.selectedView, option_r21));
|
|
19481
20282
|
i0.ɵɵadvance(1);
|
|
19482
|
-
i0.ɵɵproperty("ngIf",
|
|
20283
|
+
i0.ɵɵproperty("ngIf", ctx_r20.comboOptionTemplate)("ngIfThen", _r25)("ngIfElse", _r23);
|
|
19483
20284
|
}
|
|
19484
20285
|
}
|
|
19485
|
-
function
|
|
20286
|
+
function PoComboComponent_ng_template_18_Template(rf, ctx) {
|
|
19486
20287
|
if (rf & 1) {
|
|
19487
|
-
i0.ɵɵelementStart(0, "ul",
|
|
19488
|
-
i0.ɵɵtemplate(
|
|
20288
|
+
i0.ɵɵelementStart(0, "ul", 21, 22);
|
|
20289
|
+
i0.ɵɵtemplate(3, PoComboComponent_ng_template_18_li_3_Template, 6, 5, "li", 23);
|
|
19489
20290
|
i0.ɵɵelementEnd();
|
|
19490
20291
|
}
|
|
19491
20292
|
if (rf & 2) {
|
|
19492
|
-
const
|
|
19493
|
-
i0.ɵɵadvance(
|
|
19494
|
-
i0.ɵɵproperty("ngForOf",
|
|
20293
|
+
const ctx_r12 = i0.ɵɵnextContext();
|
|
20294
|
+
i0.ɵɵadvance(3);
|
|
20295
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.visibleOptions);
|
|
19495
20296
|
}
|
|
19496
20297
|
}
|
|
19497
|
-
function
|
|
20298
|
+
function PoComboComponent_ng_template_20_span_2_Template(rf, ctx) {
|
|
19498
20299
|
if (rf & 1) {
|
|
19499
|
-
i0.ɵɵelementStart(0, "
|
|
19500
|
-
i0.ɵɵtext(
|
|
19501
|
-
i0.ɵɵelementEnd()
|
|
20300
|
+
i0.ɵɵelementStart(0, "span");
|
|
20301
|
+
i0.ɵɵtext(1);
|
|
20302
|
+
i0.ɵɵelementEnd();
|
|
19502
20303
|
}
|
|
19503
20304
|
if (rf & 2) {
|
|
19504
|
-
const
|
|
19505
|
-
i0.ɵɵadvance(
|
|
19506
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
20305
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
20306
|
+
i0.ɵɵadvance(1);
|
|
20307
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r44.literals.noData, " ");
|
|
20308
|
+
}
|
|
20309
|
+
}
|
|
20310
|
+
function PoComboComponent_ng_template_20_Template(rf, ctx) {
|
|
20311
|
+
if (rf & 1) {
|
|
20312
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "div", 35);
|
|
20313
|
+
i0.ɵɵtemplate(2, PoComboComponent_ng_template_20_span_2_Template, 2, 1, "span", 12);
|
|
20314
|
+
i0.ɵɵelementEnd()();
|
|
20315
|
+
}
|
|
20316
|
+
if (rf & 2) {
|
|
20317
|
+
const ctx_r14 = i0.ɵɵnextContext();
|
|
20318
|
+
i0.ɵɵadvance(2);
|
|
20319
|
+
i0.ɵɵproperty("ngIf", !ctx_r14.isServerSearching);
|
|
19507
20320
|
}
|
|
19508
20321
|
}
|
|
19509
20322
|
const poComboContainerOffset = 8;
|
|
@@ -19549,6 +20362,11 @@ const poComboContainerPositionDefault = 'bottom';
|
|
|
19549
20362
|
* <file name="sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts"> </file>
|
|
19550
20363
|
* </example>
|
|
19551
20364
|
*
|
|
20365
|
+
* <example name="po-combo-infinity-scroll" title="PO Combo - Inifity Scroll">
|
|
20366
|
+
* <file name="sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html"> </file>
|
|
20367
|
+
* <file name="sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts"> </file>
|
|
20368
|
+
* </example>
|
|
20369
|
+
*
|
|
19552
20370
|
* <example name="po-combo-hotels" title="PO Combo - Booking Hotel">
|
|
19553
20371
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.html"> </file>
|
|
19554
20372
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.ts"> </file>
|
|
@@ -19569,6 +20387,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19569
20387
|
this.isProcessingValueByTab = false;
|
|
19570
20388
|
this.scrollTop = 0;
|
|
19571
20389
|
this.shouldMarkLetters = true;
|
|
20390
|
+
this.infiniteLoading = false;
|
|
19572
20391
|
this._isServerSearching = false;
|
|
19573
20392
|
this.onScroll = () => {
|
|
19574
20393
|
this.adjustContainerPosition();
|
|
@@ -19593,6 +20412,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19593
20412
|
if (this.autoFocus) {
|
|
19594
20413
|
this.focus();
|
|
19595
20414
|
}
|
|
20415
|
+
if (this.infiniteScroll) {
|
|
20416
|
+
this.checkInfiniteScroll();
|
|
20417
|
+
}
|
|
19596
20418
|
}
|
|
19597
20419
|
ngOnChanges(changes) {
|
|
19598
20420
|
if (changes.debounceTime) {
|
|
@@ -19604,6 +20426,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19604
20426
|
}
|
|
19605
20427
|
}
|
|
19606
20428
|
ngOnDestroy() {
|
|
20429
|
+
var _a;
|
|
19607
20430
|
this.removeListeners();
|
|
19608
20431
|
if (this.filterSubscription) {
|
|
19609
20432
|
this.filterSubscription.unsubscribe();
|
|
@@ -19611,6 +20434,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19611
20434
|
if (this.getSubscription) {
|
|
19612
20435
|
this.getSubscription.unsubscribe();
|
|
19613
20436
|
}
|
|
20437
|
+
if (this.infiniteScroll) {
|
|
20438
|
+
(_a = this.subscriptionScrollEvent) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20439
|
+
}
|
|
19614
20440
|
}
|
|
19615
20441
|
/**
|
|
19616
20442
|
* Função que atribui foco ao componente.
|
|
@@ -19739,23 +20565,31 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19739
20565
|
}
|
|
19740
20566
|
controlApplyFilter(value) {
|
|
19741
20567
|
if (!this.isProcessingValueByTab && (!this.selectedOption || value !== this.selectedOption.label)) {
|
|
19742
|
-
this.
|
|
20568
|
+
this.defaultService.hasNext = true;
|
|
20569
|
+
this.page = this.setPage();
|
|
20570
|
+
this.options = [];
|
|
20571
|
+
this.applyFilter(value, true);
|
|
19743
20572
|
}
|
|
19744
20573
|
this.isProcessingValueByTab = false;
|
|
19745
20574
|
}
|
|
19746
|
-
applyFilter(value) {
|
|
19747
|
-
this.
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
20575
|
+
applyFilter(value, reset = false) {
|
|
20576
|
+
if (this.defaultService.hasNext) {
|
|
20577
|
+
this.controlComboVisibility(false, reset);
|
|
20578
|
+
this.isServerSearching = true;
|
|
20579
|
+
const param = this.infiniteScroll
|
|
20580
|
+
? { property: this.fieldLabel, value, page: this.page, pageSize: this.pageSize }
|
|
20581
|
+
: { property: this.fieldLabel, value };
|
|
20582
|
+
this.filterSubscription = this.service.getFilteredData(param, this.filterParams).subscribe(items => this.setOptionsByApplyFilter(value, items, reset), error => this.onErrorFilteredData());
|
|
20583
|
+
}
|
|
19751
20584
|
}
|
|
19752
|
-
setOptionsByApplyFilter(value, items) {
|
|
20585
|
+
setOptionsByApplyFilter(value, items, reset = false) {
|
|
19753
20586
|
this.shouldMarkLetters = true;
|
|
19754
20587
|
this.isServerSearching = false;
|
|
19755
|
-
this.
|
|
20588
|
+
this.infiniteLoading = false;
|
|
20589
|
+
this.options = this.prepareOptions(items);
|
|
19756
20590
|
this.searchForLabel(value, items, this.filterMode);
|
|
19757
20591
|
this.changeDetector.detectChanges();
|
|
19758
|
-
this.controlComboVisibility(true);
|
|
20592
|
+
this.controlComboVisibility(true, reset);
|
|
19759
20593
|
if (this.isFirstFilter) {
|
|
19760
20594
|
this.isFirstFilter = !this.isFirstFilter;
|
|
19761
20595
|
this.cacheOptions = this.comboOptionsList;
|
|
@@ -19814,11 +20648,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19814
20648
|
}
|
|
19815
20649
|
applyFilterInFirstClick() {
|
|
19816
20650
|
if (this.isFirstFilter && !this.selectedValue) {
|
|
19817
|
-
this.
|
|
20651
|
+
this.options = [];
|
|
20652
|
+
const scrollingControl = this.setScrollingControl();
|
|
20653
|
+
this.applyFilter('', scrollingControl);
|
|
19818
20654
|
}
|
|
19819
20655
|
}
|
|
19820
|
-
controlComboVisibility(toOpen) {
|
|
19821
|
-
toOpen ? this.open() : this.close();
|
|
20656
|
+
controlComboVisibility(toOpen, reset = false) {
|
|
20657
|
+
toOpen ? this.open(reset) : this.close(reset);
|
|
19822
20658
|
}
|
|
19823
20659
|
onOptionClick(option, event) {
|
|
19824
20660
|
const inputValue = this.getInputValue();
|
|
@@ -19836,7 +20672,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19836
20672
|
scrollTo(index) {
|
|
19837
20673
|
const selectedItem = this.element.nativeElement.querySelectorAll('.po-combo-item-selected');
|
|
19838
20674
|
const scrollTop = !selectedItem.length || index <= 1 ? 0 : selectedItem[0].offsetTop - 88;
|
|
19839
|
-
this.
|
|
20675
|
+
if (!this.infiniteScroll) {
|
|
20676
|
+
this.setScrollTop(scrollTop);
|
|
20677
|
+
}
|
|
19840
20678
|
}
|
|
19841
20679
|
getInputValue() {
|
|
19842
20680
|
return this.inputEl.nativeElement.value;
|
|
@@ -19857,7 +20695,8 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19857
20695
|
}
|
|
19858
20696
|
else {
|
|
19859
20697
|
if (this.service && !this.getInputValue() && !this.isFirstFilter) {
|
|
19860
|
-
this.
|
|
20698
|
+
const scrollingControl = this.setScrollingControl();
|
|
20699
|
+
this.applyFilter('', scrollingControl);
|
|
19861
20700
|
}
|
|
19862
20701
|
}
|
|
19863
20702
|
}
|
|
@@ -19921,11 +20760,48 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19921
20760
|
this.controlApplyFilter(value);
|
|
19922
20761
|
}
|
|
19923
20762
|
}
|
|
20763
|
+
showMoreInfiniteScroll({ target }) {
|
|
20764
|
+
if (this.defaultService.hasNext) {
|
|
20765
|
+
this.infiniteLoading = true;
|
|
20766
|
+
}
|
|
20767
|
+
const scrollPosition = target.offsetHeight + target.scrollTop;
|
|
20768
|
+
if (scrollPosition >= target.scrollHeight * (this.infiniteScrollDistance / 110)) {
|
|
20769
|
+
this.page++;
|
|
20770
|
+
this.applyFilter('', true);
|
|
20771
|
+
}
|
|
20772
|
+
}
|
|
20773
|
+
checkInfiniteScroll() {
|
|
20774
|
+
var _a;
|
|
20775
|
+
if (this.hasInfiniteScroll() && ((_a = this.poComboBody) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollHeight) >= 175) {
|
|
20776
|
+
this.includeInfiniteScroll();
|
|
20777
|
+
}
|
|
20778
|
+
}
|
|
20779
|
+
hasInfiniteScroll() {
|
|
20780
|
+
var _a;
|
|
20781
|
+
return this.infiniteScroll && ((_a = this.poComboBody) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollHeight) && this.defaultService.hasNext;
|
|
20782
|
+
}
|
|
20783
|
+
includeInfiniteScroll() {
|
|
20784
|
+
var _a;
|
|
20785
|
+
(_a = this.subscriptionScrollEvent) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20786
|
+
this.scrollEvent$ = this.defaultService.scrollListener(this.poComboBody.nativeElement);
|
|
20787
|
+
this.subscriptionScrollEvent = this.scrollEvent$.subscribe(event => {
|
|
20788
|
+
this.showMoreInfiniteScroll(event);
|
|
20789
|
+
});
|
|
20790
|
+
}
|
|
19924
20791
|
adjustContainerPosition() {
|
|
19925
20792
|
this.controlPosition.adjustPosition(poComboContainerPositionDefault);
|
|
19926
20793
|
}
|
|
19927
|
-
close() {
|
|
20794
|
+
close(reset) {
|
|
19928
20795
|
this.comboOpen = false;
|
|
20796
|
+
if (!reset) {
|
|
20797
|
+
if (!this.getInputValue()) {
|
|
20798
|
+
this.page = this.setPage();
|
|
20799
|
+
this.defaultService.hasNext = true;
|
|
20800
|
+
}
|
|
20801
|
+
if (this.infiniteScroll) {
|
|
20802
|
+
this.options = this.setOptions();
|
|
20803
|
+
}
|
|
20804
|
+
}
|
|
19929
20805
|
this.changeDetector.detectChanges();
|
|
19930
20806
|
this.comboIcon = 'po-icon-arrow-down';
|
|
19931
20807
|
this.removeListeners();
|
|
@@ -19933,6 +20809,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19933
20809
|
}
|
|
19934
20810
|
initializeListeners() {
|
|
19935
20811
|
this.removeListeners();
|
|
20812
|
+
if (this.infiniteScroll) {
|
|
20813
|
+
this.checkInfiniteScroll();
|
|
20814
|
+
}
|
|
19936
20815
|
this.clickoutListener = this.renderer.listen('document', 'click', (event) => {
|
|
19937
20816
|
this.wasClickedOnToggle(event);
|
|
19938
20817
|
});
|
|
@@ -19950,22 +20829,35 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19950
20829
|
this.updateComboList([]);
|
|
19951
20830
|
this.controlComboVisibility(true);
|
|
19952
20831
|
}
|
|
19953
|
-
open() {
|
|
20832
|
+
open(reset) {
|
|
19954
20833
|
this.comboOpen = true;
|
|
20834
|
+
if (!reset && this.infiniteScroll) {
|
|
20835
|
+
if (!this.getInputValue()) {
|
|
20836
|
+
this.page = 1;
|
|
20837
|
+
}
|
|
20838
|
+
this.options = this.setOptions();
|
|
20839
|
+
this.scrollTo(0);
|
|
20840
|
+
}
|
|
19955
20841
|
this.changeDetector.detectChanges();
|
|
19956
20842
|
this.comboIcon = 'po-icon-arrow-up';
|
|
19957
20843
|
this.initializeListeners();
|
|
19958
20844
|
this.inputEl.nativeElement.focus();
|
|
19959
|
-
|
|
20845
|
+
if (!this.infiniteScroll) {
|
|
20846
|
+
this.scrollTo(this.getIndexSelectedView());
|
|
20847
|
+
}
|
|
19960
20848
|
this.setContainerPosition();
|
|
19961
20849
|
}
|
|
19962
20850
|
removeListeners() {
|
|
20851
|
+
var _a;
|
|
19963
20852
|
if (this.clickoutListener) {
|
|
19964
20853
|
this.clickoutListener();
|
|
19965
20854
|
}
|
|
19966
20855
|
if (this.eventResizeListener) {
|
|
19967
20856
|
this.eventResizeListener();
|
|
19968
20857
|
}
|
|
20858
|
+
if (this.infiniteScroll && !this.defaultService.hasNext) {
|
|
20859
|
+
(_a = this.subscriptionScrollEvent) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20860
|
+
}
|
|
19969
20861
|
window.removeEventListener('scroll', this.onScroll, true);
|
|
19970
20862
|
}
|
|
19971
20863
|
sanitizeTagHTML(value = '') {
|
|
@@ -19975,11 +20867,23 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
19975
20867
|
this.controlPosition.setElements(this.containerElement.nativeElement, poComboContainerOffset, this.inputEl, ['top', 'bottom'], true);
|
|
19976
20868
|
this.adjustContainerPosition();
|
|
19977
20869
|
}
|
|
20870
|
+
setOptions() {
|
|
20871
|
+
return this.getInputValue() ? this.options : [];
|
|
20872
|
+
}
|
|
19978
20873
|
setScrollTop(scrollTop) {
|
|
19979
20874
|
if (this.contentElement) {
|
|
19980
20875
|
this.contentElement.nativeElement.scrollTop = scrollTop;
|
|
19981
20876
|
}
|
|
19982
20877
|
}
|
|
20878
|
+
prepareOptions(items) {
|
|
20879
|
+
return this.infiniteScroll ? [...this.options, ...items] : items;
|
|
20880
|
+
}
|
|
20881
|
+
setPage() {
|
|
20882
|
+
return this.infiniteScroll ? 1 : undefined;
|
|
20883
|
+
}
|
|
20884
|
+
setScrollingControl() {
|
|
20885
|
+
return this.infiniteScroll ? true : false;
|
|
20886
|
+
}
|
|
19983
20887
|
}
|
|
19984
20888
|
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)); };
|
|
19985
20889
|
PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboComponent, selectors: [["po-combo"]], contentQueries: function PoComboComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
@@ -19996,6 +20900,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
19996
20900
|
i0.ɵɵviewQuery(_c1$o, 5, ElementRef);
|
|
19997
20901
|
i0.ɵɵviewQuery(_c2$9, 7, ElementRef);
|
|
19998
20902
|
i0.ɵɵviewQuery(_c3$5, 7, ElementRef);
|
|
20903
|
+
i0.ɵɵviewQuery(_c4$3, 5, ElementRef);
|
|
19999
20904
|
}
|
|
20000
20905
|
if (rf & 2) {
|
|
20001
20906
|
let _t;
|
|
@@ -20003,6 +20908,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20003
20908
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentElement = _t.first);
|
|
20004
20909
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
20005
20910
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
20911
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poComboBody = _t.first);
|
|
20006
20912
|
}
|
|
20007
20913
|
}, features: [i0.ɵɵProvidersFeature([
|
|
20008
20914
|
PoComboFilterService,
|
|
@@ -20017,7 +20923,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20017
20923
|
useExisting: forwardRef(() => PoComboComponent),
|
|
20018
20924
|
multi: true
|
|
20019
20925
|
}
|
|
20020
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
20926
|
+
]), 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) {
|
|
20021
20927
|
if (rf & 1) {
|
|
20022
20928
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1);
|
|
20023
20929
|
i0.ɵɵtemplate(2, PoComboComponent_div_2_Template, 2, 3, "div", 2);
|
|
@@ -20031,18 +20937,19 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20031
20937
|
i0.ɵɵelementEnd()()();
|
|
20032
20938
|
i0.ɵɵelementStart(9, "div", 9, 10);
|
|
20033
20939
|
i0.ɵɵtemplate(11, PoComboComponent_ng_container_11_Template, 1, 0, "ng-container", 11);
|
|
20940
|
+
i0.ɵɵtemplate(12, PoComboComponent_div_12_Template, 2, 3, "div", 12);
|
|
20034
20941
|
i0.ɵɵelementEnd();
|
|
20035
|
-
i0.ɵɵelement(
|
|
20942
|
+
i0.ɵɵelement(13, "po-field-container-bottom");
|
|
20036
20943
|
i0.ɵɵelementEnd();
|
|
20037
|
-
i0.ɵɵtemplate(
|
|
20038
|
-
i0.ɵɵtemplate(
|
|
20039
|
-
i0.ɵɵtemplate(
|
|
20040
|
-
i0.ɵɵtemplate(
|
|
20944
|
+
i0.ɵɵtemplate(14, PoComboComponent_ng_template_14_Template, 1, 0, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
20945
|
+
i0.ɵɵtemplate(16, PoComboComponent_ng_template_16_Template, 1, 0, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
20946
|
+
i0.ɵɵtemplate(18, PoComboComponent_ng_template_18_Template, 4, 1, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
|
|
20947
|
+
i0.ɵɵtemplate(20, PoComboComponent_ng_template_20_Template, 3, 1, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
20041
20948
|
}
|
|
20042
20949
|
if (rf & 2) {
|
|
20043
20950
|
const _r1 = i0.ɵɵreference(4);
|
|
20044
|
-
const
|
|
20045
|
-
const
|
|
20951
|
+
const _r11 = i0.ɵɵreference(19);
|
|
20952
|
+
const _r13 = i0.ɵɵreference(21);
|
|
20046
20953
|
i0.ɵɵproperty("p-label", ctx.label)("p-help", ctx.help)("p-optional", !ctx.required && ctx.optional);
|
|
20047
20954
|
i0.ɵɵadvance(2);
|
|
20048
20955
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
@@ -20058,9 +20965,11 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20058
20965
|
i0.ɵɵadvance(2);
|
|
20059
20966
|
i0.ɵɵproperty("hidden", !ctx.comboOpen && !ctx.isServerSearching);
|
|
20060
20967
|
i0.ɵɵadvance(2);
|
|
20061
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
20968
|
+
i0.ɵɵproperty("ngIf", ctx.visibleOptions.length)("ngIfThen", _r11)("ngIfElse", _r13);
|
|
20969
|
+
i0.ɵɵadvance(1);
|
|
20970
|
+
i0.ɵɵproperty("ngIf", ctx.isServerSearching);
|
|
20062
20971
|
}
|
|
20063
|
-
}, directives: [PoFieldContainerComponent, i1.NgIf, PoIconComponent, i1.NgClass, PoCleanComponent, PoFieldContainerBottomComponent, PoLoadingComponent, i1.NgForOf, i1.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
20972
|
+
}, directives: [PoFieldContainerComponent, i1.NgIf, PoIconComponent, i1.NgClass, PoCleanComponent, PoFieldContainerBottomComponent, PoLoadingComponent, PoLoadingOverlayComponent, i1.NgForOf, i1.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
20064
20973
|
(function () {
|
|
20065
20974
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboComponent, [{
|
|
20066
20975
|
type: Component,
|
|
@@ -20077,7 +20986,7 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20077
20986
|
useExisting: forwardRef(() => PoComboComponent),
|
|
20078
20987
|
multi: true
|
|
20079
20988
|
}
|
|
20080
|
-
], 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=\"
|
|
20989
|
+
], 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" }]
|
|
20081
20990
|
}], 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: [{
|
|
20082
20991
|
type: ContentChild,
|
|
20083
20992
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -20093,6 +21002,9 @@ PoComboComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoComboCom
|
|
|
20093
21002
|
}], inputEl: [{
|
|
20094
21003
|
type: ViewChild,
|
|
20095
21004
|
args: ['inp', { read: ElementRef, static: true }]
|
|
21005
|
+
}], poComboBody: [{
|
|
21006
|
+
type: ViewChild,
|
|
21007
|
+
args: ['poComboBody', { read: ElementRef }]
|
|
20096
21008
|
}] });
|
|
20097
21009
|
})();
|
|
20098
21010
|
|
|
@@ -29483,8 +30395,10 @@ function PoRichTextToolbarComponent_div_4_Template(rf, ctx) {
|
|
|
29483
30395
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
29484
30396
|
i0.ɵɵadvance(2);
|
|
29485
30397
|
i0.ɵɵproperty("disabled", ctx_r1.readonly)("p-tooltip", ctx_r1.literals.textColor);
|
|
30398
|
+
i0.ɵɵattribute("aria-label", ctx_r1.literals.textColor);
|
|
29486
30399
|
i0.ɵɵadvance(1);
|
|
29487
30400
|
i0.ɵɵproperty("disabled", ctx_r1.readonly);
|
|
30401
|
+
i0.ɵɵattribute("aria-label", ctx_r1.literals.textColor);
|
|
29488
30402
|
}
|
|
29489
30403
|
}
|
|
29490
30404
|
const poRichTextDefaultColor = '#000000';
|
|
@@ -29647,7 +30561,7 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
29647
30561
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
29648
30562
|
i0.ɵɵelement(3, "po-button-group", 3);
|
|
29649
30563
|
i0.ɵɵelementEnd();
|
|
29650
|
-
i0.ɵɵtemplate(4, PoRichTextToolbarComponent_div_4_Template, 5,
|
|
30564
|
+
i0.ɵɵtemplate(4, PoRichTextToolbarComponent_div_4_Template, 5, 5, "div", 4);
|
|
29651
30565
|
i0.ɵɵelementStart(5, "div", 2);
|
|
29652
30566
|
i0.ɵɵelement(6, "po-button-group", 5);
|
|
29653
30567
|
i0.ɵɵelementEnd();
|
|
@@ -29685,7 +30599,7 @@ PoRichTextToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
29685
30599
|
(function () {
|
|
29686
30600
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextToolbarComponent, [{
|
|
29687
30601
|
type: Component,
|
|
29688
|
-
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 >\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 />\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" }]
|
|
30602
|
+
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" }]
|
|
29689
30603
|
}], function () { return [{ type: PoLanguageService }]; }, { colorPickerInput: [{
|
|
29690
30604
|
type: ViewChild,
|
|
29691
30605
|
args: ['colorPickerInput', { read: ElementRef }]
|