@po-ui/ng-components 17.26.13 → 17.26.15
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/esm2022/lib/components/po-table/po-table.component.mjs +380 -399
- package/esm2022/lib/services/po-i18n/po-i18n-base.service.mjs +1 -1
- package/fesm2022/po-ui-ng-components.mjs +379 -398
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-table/po-table.component.d.ts +1 -0
- package/package.json +4 -4
- package/po-ui-ng-components-17.26.15.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/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-17.26.13.tgz +0 -0
|
@@ -24176,15 +24176,15 @@ function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_2_Template(rf
|
|
|
24176
24176
|
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
24177
24177
|
const _c19 = (a0, a1) => ({ row: a0, rowIndex: a1 });
|
|
24178
24178
|
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
24179
|
-
const
|
|
24179
|
+
const _r108 = i0.ɵɵgetCurrentView();
|
|
24180
24180
|
i0.ɵɵelementStart(0, "td", 99);
|
|
24181
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
24181
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r108); const row_r93 = i0.ɵɵnextContext().$implicit; const ctx_r106 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r106.toggleDetail(row_r93)); });
|
|
24182
24182
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 100);
|
|
24183
24183
|
i0.ɵɵelementEnd();
|
|
24184
24184
|
} if (rf & 2) {
|
|
24185
|
-
const
|
|
24186
|
-
const row_r93 =
|
|
24187
|
-
const rowIndex_r94 =
|
|
24185
|
+
const ctx_r109 = i0.ɵɵnextContext();
|
|
24186
|
+
const row_r93 = ctx_r109.$implicit;
|
|
24187
|
+
const rowIndex_r94 = ctx_r109.index;
|
|
24188
24188
|
i0.ɵɵnextContext(3);
|
|
24189
24189
|
const _r13 = i0.ɵɵreference(15);
|
|
24190
24190
|
i0.ɵɵadvance();
|
|
@@ -24194,197 +24194,181 @@ function PoTableComponent_ng_template_8_ng_container_16_tbody_1_4_ng_template_0_
|
|
|
24194
24194
|
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_4_Template(rf, ctx) { if (rf & 1) {
|
|
24195
24195
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_16_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 100);
|
|
24196
24196
|
} if (rf & 2) {
|
|
24197
|
-
const
|
|
24198
|
-
const row_r93 =
|
|
24199
|
-
const rowIndex_r94 =
|
|
24197
|
+
const ctx_r111 = i0.ɵɵnextContext();
|
|
24198
|
+
const row_r93 = ctx_r111.$implicit;
|
|
24199
|
+
const rowIndex_r94 = ctx_r111.index;
|
|
24200
24200
|
i0.ɵɵnextContext(3);
|
|
24201
24201
|
const _r25 = i0.ɵɵreference(27);
|
|
24202
24202
|
i0.ɵɵproperty("ngTemplateOutlet", _r25)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r93, rowIndex_r94));
|
|
24203
24203
|
} }
|
|
24204
|
-
function
|
|
24205
|
-
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
24206
|
-
const _r116 = i0.ɵɵgetCurrentView();
|
|
24207
|
-
i0.ɵɵelementStart(0, "td", 99);
|
|
24208
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r116); const row_r93 = i0.ɵɵnextContext().$implicit; const ctx_r114 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r114.toggleDetail(row_r93)); });
|
|
24209
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 100);
|
|
24210
|
-
i0.ɵɵelementEnd();
|
|
24211
|
-
} if (rf & 2) {
|
|
24212
|
-
const ctx_r117 = i0.ɵɵnextContext();
|
|
24213
|
-
const row_r93 = ctx_r117.$implicit;
|
|
24214
|
-
const rowIndex_r94 = ctx_r117.index;
|
|
24215
|
-
i0.ɵɵnextContext(3);
|
|
24216
|
-
const _r13 = i0.ɵɵreference(15);
|
|
24217
|
-
i0.ɵɵadvance();
|
|
24218
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r93, rowIndex_r94));
|
|
24219
|
-
} }
|
|
24220
|
-
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24204
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24221
24205
|
i0.ɵɵelementContainer(0);
|
|
24222
24206
|
} }
|
|
24223
|
-
function
|
|
24207
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
24224
24208
|
i0.ɵɵelementStart(0, "span");
|
|
24225
|
-
i0.ɵɵtemplate(1,
|
|
24209
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_2_ng_container_1_Template, 1, 0, "ng-container", 78);
|
|
24226
24210
|
i0.ɵɵelementEnd();
|
|
24227
24211
|
} if (rf & 2) {
|
|
24228
|
-
const
|
|
24212
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24229
24213
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24230
|
-
const
|
|
24214
|
+
const ctx_r114 = i0.ɵɵnextContext(3);
|
|
24231
24215
|
i0.ɵɵadvance();
|
|
24232
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24216
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r114.getTemplate(column_r112))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c18, ctx_r114.getCellData(row_r93, column_r112)));
|
|
24233
24217
|
} }
|
|
24234
|
-
function
|
|
24218
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24235
24219
|
i0.ɵɵelementContainer(0);
|
|
24236
24220
|
} }
|
|
24237
24221
|
const _c20 = (a0, a1) => ({ row: a0, column: a1 });
|
|
24238
|
-
function
|
|
24222
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
24239
24223
|
i0.ɵɵelementStart(0, "span");
|
|
24240
|
-
i0.ɵɵtemplate(1,
|
|
24224
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_3_ng_container_1_Template, 1, 0, "ng-container", 78);
|
|
24241
24225
|
i0.ɵɵelementEnd();
|
|
24242
24226
|
} if (rf & 2) {
|
|
24243
|
-
const
|
|
24227
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24244
24228
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24245
|
-
const
|
|
24229
|
+
const ctx_r115 = i0.ɵɵnextContext(3);
|
|
24246
24230
|
i0.ɵɵadvance();
|
|
24247
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24231
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r115.tableCellTemplate == null ? null : ctx_r115.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c20, row_r93, column_r112));
|
|
24248
24232
|
} }
|
|
24249
|
-
function
|
|
24233
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
24250
24234
|
i0.ɵɵelementStart(0, "span");
|
|
24251
24235
|
i0.ɵɵtext(1);
|
|
24252
24236
|
i0.ɵɵelementEnd();
|
|
24253
24237
|
} if (rf & 2) {
|
|
24254
|
-
const
|
|
24238
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24255
24239
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24256
|
-
const
|
|
24240
|
+
const ctx_r116 = i0.ɵɵnextContext(3);
|
|
24257
24241
|
i0.ɵɵadvance();
|
|
24258
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24242
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r116.getBooleanLabel(ctx_r116.getCellData(row_r93, column_r112), column_r112), " ");
|
|
24259
24243
|
} }
|
|
24260
|
-
function
|
|
24244
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
24261
24245
|
i0.ɵɵelementStart(0, "span");
|
|
24262
24246
|
i0.ɵɵtext(1);
|
|
24263
24247
|
i0.ɵɵpipe(2, "currency");
|
|
24264
24248
|
i0.ɵɵelementEnd();
|
|
24265
24249
|
} if (rf & 2) {
|
|
24266
|
-
const
|
|
24250
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24267
24251
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24268
|
-
const
|
|
24252
|
+
const ctx_r117 = i0.ɵɵnextContext(3);
|
|
24269
24253
|
i0.ɵɵadvance();
|
|
24270
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
24254
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r117.getCellData(row_r93, column_r112), column_r112.format, "symbol", "1.2-2"), " ");
|
|
24271
24255
|
} }
|
|
24272
|
-
function
|
|
24256
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
24273
24257
|
i0.ɵɵelementStart(0, "span");
|
|
24274
24258
|
i0.ɵɵtext(1);
|
|
24275
24259
|
i0.ɵɵpipe(2, "date");
|
|
24276
24260
|
i0.ɵɵelementEnd();
|
|
24277
24261
|
} if (rf & 2) {
|
|
24278
|
-
const
|
|
24262
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24279
24263
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24280
|
-
const
|
|
24264
|
+
const ctx_r118 = i0.ɵɵnextContext(3);
|
|
24281
24265
|
i0.ɵɵadvance();
|
|
24282
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
24266
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r118.getCellData(row_r93, column_r112), column_r112.format || "dd/MM/yyyy"), " ");
|
|
24283
24267
|
} }
|
|
24284
|
-
function
|
|
24268
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
24285
24269
|
i0.ɵɵelementStart(0, "span");
|
|
24286
24270
|
i0.ɵɵtext(1);
|
|
24287
24271
|
i0.ɵɵpipe(2, "po_time");
|
|
24288
24272
|
i0.ɵɵelementEnd();
|
|
24289
24273
|
} if (rf & 2) {
|
|
24290
|
-
const
|
|
24274
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24291
24275
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24292
|
-
const
|
|
24276
|
+
const ctx_r119 = i0.ɵɵnextContext(3);
|
|
24293
24277
|
i0.ɵɵadvance();
|
|
24294
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
24278
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r119.getCellData(row_r93, column_r112), column_r112.format || "HH:mm:ss.ffffff"), " ");
|
|
24295
24279
|
} }
|
|
24296
|
-
function
|
|
24280
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
24297
24281
|
i0.ɵɵelementStart(0, "span");
|
|
24298
24282
|
i0.ɵɵtext(1);
|
|
24299
24283
|
i0.ɵɵpipe(2, "date");
|
|
24300
24284
|
i0.ɵɵelementEnd();
|
|
24301
24285
|
} if (rf & 2) {
|
|
24302
|
-
const
|
|
24286
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24303
24287
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24304
|
-
const
|
|
24288
|
+
const ctx_r120 = i0.ɵɵnextContext(3);
|
|
24305
24289
|
i0.ɵɵadvance();
|
|
24306
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
24290
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r120.getCellData(row_r93, column_r112), column_r112.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
24307
24291
|
} }
|
|
24308
|
-
function
|
|
24292
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
24309
24293
|
i0.ɵɵelementStart(0, "span");
|
|
24310
24294
|
i0.ɵɵtext(1);
|
|
24311
24295
|
i0.ɵɵelementEnd();
|
|
24312
24296
|
} if (rf & 2) {
|
|
24313
|
-
const
|
|
24297
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24314
24298
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24315
|
-
const
|
|
24299
|
+
const ctx_r121 = i0.ɵɵnextContext(3);
|
|
24316
24300
|
i0.ɵɵadvance();
|
|
24317
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24301
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r121.formatNumber(ctx_r121.getCellData(row_r93, column_r112), column_r112.format), " ");
|
|
24318
24302
|
} }
|
|
24319
|
-
function
|
|
24320
|
-
const
|
|
24303
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_po_table_column_link_10_Template(rf, ctx) { if (rf & 1) {
|
|
24304
|
+
const _r147 = i0.ɵɵgetCurrentView();
|
|
24321
24305
|
i0.ɵɵelementStart(0, "po-table-column-link", 107);
|
|
24322
|
-
i0.ɵɵlistener("click", function
|
|
24306
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(_r147); const column_r112 = i0.ɵɵnextContext().$implicit; const row_r93 = i0.ɵɵnextContext().$implicit; const ctx_r145 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r145.onClickLink($event, row_r93, column_r112)); });
|
|
24323
24307
|
i0.ɵɵelementEnd();
|
|
24324
24308
|
} if (rf & 2) {
|
|
24325
|
-
const
|
|
24309
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24326
24310
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24327
|
-
const
|
|
24328
|
-
i0.ɵɵproperty("p-action",
|
|
24311
|
+
const ctx_r122 = i0.ɵɵnextContext(3);
|
|
24312
|
+
i0.ɵɵproperty("p-action", column_r112.action)("p-disabled", ctx_r122.checkDisabled(row_r93, column_r112))("p-link", row_r93[column_r112.link])("p-row", row_r93)("p-value", ctx_r122.getCellData(row_r93, column_r112));
|
|
24329
24313
|
} }
|
|
24330
|
-
function
|
|
24314
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_po_table_column_icon_11_Template(rf, ctx) { if (rf & 1) {
|
|
24331
24315
|
i0.ɵɵelement(0, "po-table-column-icon", 108);
|
|
24332
24316
|
} if (rf & 2) {
|
|
24333
|
-
const
|
|
24317
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24334
24318
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24335
|
-
const
|
|
24336
|
-
i0.ɵɵproperty("p-column",
|
|
24319
|
+
const ctx_r123 = i0.ɵɵnextContext(3);
|
|
24320
|
+
i0.ɵɵproperty("p-column", column_r112)("p-icons", ctx_r123.getColumnIcons(row_r93, column_r112))("p-row", row_r93);
|
|
24337
24321
|
} }
|
|
24338
|
-
function
|
|
24322
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
24339
24323
|
i0.ɵɵelementStart(0, "span");
|
|
24340
24324
|
i0.ɵɵelement(1, "po-table-subtitle-circle", 109);
|
|
24341
24325
|
i0.ɵɵelementEnd();
|
|
24342
24326
|
} if (rf & 2) {
|
|
24343
|
-
const
|
|
24327
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24344
24328
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24345
|
-
const
|
|
24329
|
+
const ctx_r124 = i0.ɵɵnextContext(3);
|
|
24346
24330
|
i0.ɵɵadvance();
|
|
24347
|
-
i0.ɵɵproperty("p-subtitle",
|
|
24331
|
+
i0.ɵɵproperty("p-subtitle", ctx_r124.getSubtitleColumn(row_r93, column_r112));
|
|
24348
24332
|
} }
|
|
24349
|
-
function
|
|
24333
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
24350
24334
|
i0.ɵɵelementStart(0, "span");
|
|
24351
24335
|
i0.ɵɵelement(1, "po-table-column-label", 110);
|
|
24352
24336
|
i0.ɵɵelementEnd();
|
|
24353
24337
|
} if (rf & 2) {
|
|
24354
|
-
const
|
|
24338
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24355
24339
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24356
|
-
const
|
|
24340
|
+
const ctx_r125 = i0.ɵɵnextContext(3);
|
|
24357
24341
|
i0.ɵɵadvance();
|
|
24358
|
-
i0.ɵɵproperty("p-value",
|
|
24342
|
+
i0.ɵɵproperty("p-value", ctx_r125.getColumnLabel(row_r93, column_r112));
|
|
24359
24343
|
} }
|
|
24360
|
-
function
|
|
24344
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
24361
24345
|
i0.ɵɵelementStart(0, "span");
|
|
24362
24346
|
i0.ɵɵtext(1);
|
|
24363
24347
|
i0.ɵɵelementEnd();
|
|
24364
24348
|
} if (rf & 2) {
|
|
24365
|
-
const
|
|
24349
|
+
const column_r112 = i0.ɵɵnextContext().$implicit;
|
|
24366
24350
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24367
|
-
const
|
|
24351
|
+
const ctx_r126 = i0.ɵɵnextContext(3);
|
|
24368
24352
|
i0.ɵɵadvance();
|
|
24369
|
-
i0.ɵɵtextInterpolate(
|
|
24353
|
+
i0.ɵɵtextInterpolate(ctx_r126.getCellData(row_r93, column_r112));
|
|
24370
24354
|
} }
|
|
24371
|
-
function
|
|
24372
|
-
const
|
|
24355
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
24356
|
+
const _r160 = i0.ɵɵgetCurrentView();
|
|
24373
24357
|
i0.ɵɵelementStart(0, "td", 101);
|
|
24374
|
-
i0.ɵɵlistener("click", function
|
|
24358
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r160); const row_r93 = i0.ɵɵnextContext().$implicit; const ctx_r159 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r159.hasSelectableRow() ? ctx_r159.selectRow(row_r93) : "javascript:;"); });
|
|
24375
24359
|
i0.ɵɵelementStart(1, "div", 102);
|
|
24376
|
-
i0.ɵɵlistener("mouseenter", function
|
|
24377
|
-
i0.ɵɵtemplate(2,
|
|
24360
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r160); const column_r112 = restoredCtx.$implicit; const row_r93 = i0.ɵɵnextContext().$implicit; const ctx_r162 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r162.tooltipMouseEnter($event, column_r112, row_r93)); })("mouseleave", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r160); const ctx_r164 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r164.tooltipMouseLeave()); });
|
|
24361
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_2_Template, 2, 4, "span", 103)(3, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_3_Template, 2, 5, "span", 103)(4, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_4_Template, 2, 1, "span", 103)(5, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_5_Template, 3, 6, "span", 103)(6, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_6_Template, 3, 4, "span", 103)(7, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_7_Template, 3, 4, "span", 103)(8, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_8_Template, 3, 4, "span", 103)(9, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_9_Template, 2, 1, "span", 103)(10, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_po_table_column_link_10_Template, 1, 5, "po-table-column-link", 104)(11, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon", 105)(12, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_12_Template, 2, 1, "span", 103)(13, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_13_Template, 2, 1, "span", 103)(14, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_span_14_Template, 2, 1, "span", 106);
|
|
24378
24362
|
i0.ɵɵelementEnd()();
|
|
24379
24363
|
} if (rf & 2) {
|
|
24380
|
-
const
|
|
24364
|
+
const column_r112 = ctx.$implicit;
|
|
24381
24365
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24382
|
-
const
|
|
24383
|
-
i0.ɵɵstyleProp("width",
|
|
24384
|
-
i0.ɵɵclassProp("po-table-column",
|
|
24385
|
-
i0.ɵɵproperty("pFrozenColumn",
|
|
24366
|
+
const ctx_r98 = i0.ɵɵnextContext(3);
|
|
24367
|
+
i0.ɵɵstyleProp("width", column_r112.width)("max-width", column_r112.width)("min-width", column_r112.width);
|
|
24368
|
+
i0.ɵɵclassProp("po-table-column", column_r112.type !== "icon")("po-table-column-right", column_r112.type === "currency" || column_r112.type === "number")("po-table-column-center", column_r112.type === "subtitle")("po-table-column-icons", column_r112.type === "icon");
|
|
24369
|
+
i0.ɵɵproperty("pFrozenColumn", column_r112.fixed)("ngClass", ctx_r98.getClassColor(row_r93, column_r112));
|
|
24386
24370
|
i0.ɵɵadvance();
|
|
24387
|
-
i0.ɵɵproperty("ngSwitch",
|
|
24371
|
+
i0.ɵɵproperty("ngSwitch", column_r112.type)("p-tooltip", ctx_r98.tooltipText)("p-append-in-body", true);
|
|
24388
24372
|
i0.ɵɵadvance();
|
|
24389
24373
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
24390
24374
|
i0.ɵɵadvance();
|
|
@@ -24410,67 +24394,67 @@ function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_Template(rf
|
|
|
24410
24394
|
i0.ɵɵadvance();
|
|
24411
24395
|
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
24412
24396
|
} }
|
|
24413
|
-
function
|
|
24414
|
-
function
|
|
24415
|
-
const
|
|
24397
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_ng_template_1_Template(rf, ctx) { }
|
|
24398
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
24399
|
+
const _r169 = i0.ɵɵgetCurrentView();
|
|
24416
24400
|
i0.ɵɵelementStart(0, "td", 99);
|
|
24417
|
-
i0.ɵɵlistener("click", function
|
|
24418
|
-
i0.ɵɵtemplate(1,
|
|
24401
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r169); const row_r93 = i0.ɵɵnextContext().$implicit; const ctx_r167 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r167.toggleDetail(row_r93)); });
|
|
24402
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_ng_template_1_Template, 0, 0, "ng-template", 100);
|
|
24419
24403
|
i0.ɵɵelementEnd();
|
|
24420
24404
|
} if (rf & 2) {
|
|
24421
|
-
const
|
|
24422
|
-
const row_r93 =
|
|
24423
|
-
const rowIndex_r94 =
|
|
24405
|
+
const ctx_r170 = i0.ɵɵnextContext();
|
|
24406
|
+
const row_r93 = ctx_r170.$implicit;
|
|
24407
|
+
const rowIndex_r94 = ctx_r170.index;
|
|
24424
24408
|
i0.ɵɵnextContext(3);
|
|
24425
24409
|
const _r13 = i0.ɵɵreference(15);
|
|
24426
24410
|
i0.ɵɵadvance();
|
|
24427
24411
|
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r93, rowIndex_r94));
|
|
24428
24412
|
} }
|
|
24429
|
-
function
|
|
24430
|
-
function
|
|
24431
|
-
i0.ɵɵtemplate(0,
|
|
24413
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_7_ng_template_0_Template(rf, ctx) { }
|
|
24414
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_7_Template(rf, ctx) { if (rf & 1) {
|
|
24415
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_16_tbody_1_7_ng_template_0_Template, 0, 0, "ng-template", 100);
|
|
24432
24416
|
} if (rf & 2) {
|
|
24433
|
-
const
|
|
24434
|
-
const row_r93 =
|
|
24435
|
-
const rowIndex_r94 =
|
|
24417
|
+
const ctx_r172 = i0.ɵɵnextContext();
|
|
24418
|
+
const row_r93 = ctx_r172.$implicit;
|
|
24419
|
+
const rowIndex_r94 = ctx_r172.index;
|
|
24436
24420
|
i0.ɵɵnextContext(3);
|
|
24437
24421
|
const _r25 = i0.ɵɵreference(27);
|
|
24438
24422
|
i0.ɵɵproperty("ngTemplateOutlet", _r25)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r93, rowIndex_r94));
|
|
24439
24423
|
} }
|
|
24440
|
-
function
|
|
24424
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_8_ng_template_2_Template(rf, ctx) { }
|
|
24441
24425
|
const _c21 = (a0, a1) => ({ $implicit: a0, rowIndex: a1 });
|
|
24442
|
-
function
|
|
24426
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_8_Template(rf, ctx) { if (rf & 1) {
|
|
24443
24427
|
i0.ɵɵelementStart(0, "tr")(1, "td", 111);
|
|
24444
|
-
i0.ɵɵtemplate(2,
|
|
24428
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_8_ng_template_2_Template, 0, 0, "ng-template", 100);
|
|
24445
24429
|
i0.ɵɵelementEnd()();
|
|
24446
24430
|
} if (rf & 2) {
|
|
24447
|
-
const
|
|
24448
|
-
const row_r93 =
|
|
24449
|
-
const rowIndex_r94 =
|
|
24450
|
-
const
|
|
24431
|
+
const ctx_r174 = i0.ɵɵnextContext();
|
|
24432
|
+
const row_r93 = ctx_r174.$implicit;
|
|
24433
|
+
const rowIndex_r94 = ctx_r174.index;
|
|
24434
|
+
const ctx_r101 = i0.ɵɵnextContext(3);
|
|
24451
24435
|
i0.ɵɵadvance();
|
|
24452
|
-
i0.ɵɵproperty("colSpan",
|
|
24436
|
+
i0.ɵɵproperty("colSpan", ctx_r101.columnCountForMasterDetail);
|
|
24453
24437
|
i0.ɵɵadvance();
|
|
24454
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24438
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r101.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c21, row_r93, rowIndex_r94));
|
|
24455
24439
|
} }
|
|
24456
|
-
function
|
|
24457
|
-
const
|
|
24440
|
+
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
24441
|
+
const _r176 = i0.ɵɵgetCurrentView();
|
|
24458
24442
|
i0.ɵɵelementStart(0, "tr")(1, "td", 112)(2, "po-table-detail", 113);
|
|
24459
|
-
i0.ɵɵlistener("p-select-row", function
|
|
24443
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_9_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r176); const ctx_r175 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r175.selectDetailRow($event)); });
|
|
24460
24444
|
i0.ɵɵelementEnd()()();
|
|
24461
24445
|
} if (rf & 2) {
|
|
24462
24446
|
const row_r93 = i0.ɵɵnextContext().$implicit;
|
|
24463
|
-
const
|
|
24447
|
+
const ctx_r102 = i0.ɵɵnextContext(3);
|
|
24464
24448
|
i0.ɵɵadvance();
|
|
24465
|
-
i0.ɵɵproperty("colSpan",
|
|
24449
|
+
i0.ɵɵproperty("colSpan", ctx_r102.columnCountForMasterDetail);
|
|
24466
24450
|
i0.ɵɵadvance();
|
|
24467
|
-
i0.ɵɵproperty("p-selectable",
|
|
24451
|
+
i0.ɵɵproperty("p-selectable", ctx_r102.selectable && !ctx_r102.detailHideSelect)("p-detail", ctx_r102.columnMasterDetail.detail)("p-items", row_r93[ctx_r102.nameColumnDetail])("p-parent-row", row_r93);
|
|
24468
24452
|
} }
|
|
24469
24453
|
function PoTableComponent_ng_template_8_ng_container_16_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
24470
24454
|
i0.ɵɵelementStart(0, "tbody", 91)(1, "tr", 95);
|
|
24471
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_2_Template, 2, 4, "td", 96)(3, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_Template, 2, 5, "td", 97)(4, PoTableComponent_ng_template_8_ng_container_16_tbody_1_4_Template, 1, 5, null, 43)(5, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template,
|
|
24455
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_2_Template, 2, 4, "td", 96)(3, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_3_Template, 2, 5, "td", 97)(4, PoTableComponent_ng_template_8_ng_container_16_tbody_1_4_Template, 1, 5, null, 43)(5, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_5_Template, 15, 31, "td", 98)(6, PoTableComponent_ng_template_8_ng_container_16_tbody_1_td_6_Template, 2, 5, "td", 97)(7, PoTableComponent_ng_template_8_ng_container_16_tbody_1_7_Template, 1, 5, null, 43);
|
|
24472
24456
|
i0.ɵɵelementEnd();
|
|
24473
|
-
i0.ɵɵtemplate(
|
|
24457
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_8_Template, 3, 6, "tr", 43)(9, PoTableComponent_ng_template_8_ng_container_16_tbody_1_tr_9_Template, 3, 5, "tr", 43);
|
|
24474
24458
|
i0.ɵɵelementEnd();
|
|
24475
24459
|
} if (rf & 2) {
|
|
24476
24460
|
const row_r93 = ctx.$implicit;
|
|
@@ -24481,12 +24465,10 @@ function PoTableComponent_ng_template_8_ng_container_16_tbody_1_Template(rf, ctx
|
|
|
24481
24465
|
i0.ɵɵadvance();
|
|
24482
24466
|
i0.ɵɵproperty("ngIf", ctx_r92.selectable);
|
|
24483
24467
|
i0.ɵɵadvance();
|
|
24484
|
-
i0.ɵɵproperty("ngIf", ctx_r92.columnMasterDetail && !ctx_r92.hideDetail && !ctx_r92.hasRowTemplate);
|
|
24468
|
+
i0.ɵɵproperty("ngIf", ctx_r92.columnMasterDetail && !ctx_r92.hideDetail && !ctx_r92.hasRowTemplate || ctx_r92.hasRowTemplate && !ctx_r92.hasRowTemplateWithArrowDirectionRight);
|
|
24485
24469
|
i0.ɵɵadvance();
|
|
24486
24470
|
i0.ɵɵproperty("ngIf", !ctx_r92.actionRight && (ctx_r92.visibleActions.length > 1 || ctx_r92.isSingleAction));
|
|
24487
24471
|
i0.ɵɵadvance();
|
|
24488
|
-
i0.ɵɵproperty("ngIf", ctx_r92.hasRowTemplate && !ctx_r92.hasRowTemplateWithArrowDirectionRight);
|
|
24489
|
-
i0.ɵɵadvance();
|
|
24490
24472
|
i0.ɵɵproperty("ngForOf", ctx_r92.mainColumns)("ngForTrackBy", ctx_r92.trackBy);
|
|
24491
24473
|
i0.ɵɵadvance();
|
|
24492
24474
|
i0.ɵɵproperty("ngIf", ctx_r92.hasRowTemplateWithArrowDirectionRight);
|
|
@@ -24499,7 +24481,7 @@ function PoTableComponent_ng_template_8_ng_container_16_tbody_1_Template(rf, ctx
|
|
|
24499
24481
|
} }
|
|
24500
24482
|
function PoTableComponent_ng_template_8_ng_container_16_Template(rf, ctx) { if (rf & 1) {
|
|
24501
24483
|
i0.ɵɵelementContainerStart(0);
|
|
24502
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_Template,
|
|
24484
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_16_tbody_1_Template, 10, 11, "tbody", 94);
|
|
24503
24485
|
i0.ɵɵelementContainerEnd();
|
|
24504
24486
|
} if (rf & 2) {
|
|
24505
24487
|
const ctx_r70 = i0.ɵɵnextContext(2);
|
|
@@ -24509,9 +24491,9 @@ function PoTableComponent_ng_template_8_ng_container_16_Template(rf, ctx) { if (
|
|
|
24509
24491
|
const _c22 = (a0, a1, a2, a3, a4) => ({ "po-table-interactive": a0, "po-table-selectable": a1, "po-table-striped": a2, "po-table-data-fixed-columns": a3, "po-table-text-wrap-enabled": a4 });
|
|
24510
24492
|
const _c23 = (a0, a1) => ({ "no-hover": a0, "po-table-column-drag": a1 });
|
|
24511
24493
|
function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
24512
|
-
const
|
|
24494
|
+
const _r179 = i0.ɵɵgetCurrentView();
|
|
24513
24495
|
i0.ɵɵelementStart(0, "table", 56, 57)(2, "thead")(3, "tr", 58);
|
|
24514
|
-
i0.ɵɵlistener("cdkDropListDropped", function PoTableComponent_ng_template_8_Template_tr_cdkDropListDropped_3_listener($event) { i0.ɵɵrestoreView(
|
|
24496
|
+
i0.ɵɵlistener("cdkDropListDropped", function PoTableComponent_ng_template_8_Template_tr_cdkDropListDropped_3_listener($event) { i0.ɵɵrestoreView(_r179); const ctx_r178 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r178.drop($event)); });
|
|
24515
24497
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_th_4_Template, 3, 5, "th", 59)(5, PoTableComponent_ng_template_8_th_5_Template, 1, 0, "th", 60)(6, PoTableComponent_ng_template_8_th_6_Template, 2, 4, "th", 61)(7, PoTableComponent_ng_template_8_th_7_Template, 3, 3, "th", 62)(8, PoTableComponent_ng_template_8_ng_container_8_Template, 1, 0, "ng-container", 63)(9, PoTableComponent_ng_template_8_ng_template_9_Template, 1, 2, "ng-template", null, 64, i0.ɵɵtemplateRefExtractor)(11, PoTableComponent_ng_template_8_ng_template_11_Template, 1, 2, "ng-template", null, 65, i0.ɵɵtemplateRefExtractor)(13, PoTableComponent_ng_template_8_th_13_Template, 1, 0, "th", 60)(14, PoTableComponent_ng_template_8_th_14_Template, 1, 4, "th", 66);
|
|
24516
24498
|
i0.ɵɵelementEnd()();
|
|
24517
24499
|
i0.ɵɵtemplate(15, PoTableComponent_ng_template_8_tbody_15_Template, 5, 2, "tbody", 67)(16, PoTableComponent_ng_template_8_ng_container_16_Template, 2, 2, "ng-container", 43);
|
|
@@ -24530,7 +24512,7 @@ function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
24530
24512
|
i0.ɵɵadvance();
|
|
24531
24513
|
i0.ɵɵproperty("ngIf", ctx_r7.hasSelectableColumn);
|
|
24532
24514
|
i0.ɵɵadvance();
|
|
24533
|
-
i0.ɵɵproperty("ngIf", (ctx_r7.hasMasterDetailColumn || ctx_r7.hasRowTemplate) && !ctx_r7.hasRowTemplateWithArrowDirectionRight);
|
|
24515
|
+
i0.ɵɵproperty("ngIf", (ctx_r7.hasMasterDetailColumn || ctx_r7.hasRowTemplate) && ctx_r7.hasMainColumns && !ctx_r7.hasRowTemplateWithArrowDirectionRight);
|
|
24534
24516
|
i0.ɵɵadvance();
|
|
24535
24517
|
i0.ɵɵproperty("ngIf", !ctx_r7.actionRight && (ctx_r7.visibleActions.length > 1 || ctx_r7.isSingleAction));
|
|
24536
24518
|
i0.ɵɵadvance();
|
|
@@ -24538,7 +24520,7 @@ function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
24538
24520
|
i0.ɵɵadvance();
|
|
24539
24521
|
i0.ɵɵproperty("ngIf", ctx_r7.isDraggable || ctx_r7.hasSomeFixed())("ngIfThen", _r64)("ngIfElse", _r66);
|
|
24540
24522
|
i0.ɵɵadvance(5);
|
|
24541
|
-
i0.ɵɵproperty("ngIf", ctx_r7.hasRowTemplateWithArrowDirectionRight && (ctx_r7.hasVisibleActions || ctx_r7.hideColumnsManager));
|
|
24523
|
+
i0.ɵɵproperty("ngIf", ctx_r7.hasRowTemplateWithArrowDirectionRight && (ctx_r7.hasVisibleActions || ctx_r7.hideColumnsManager) && ctx_r7.hasMainColumns);
|
|
24542
24524
|
i0.ɵɵadvance();
|
|
24543
24525
|
i0.ɵɵproperty("ngIf", ctx_r7.hasVisibleActions && ctx_r7.actionRight && (ctx_r7.visibleActions.length > 1 || ctx_r7.isSingleAction));
|
|
24544
24526
|
i0.ɵɵadvance();
|
|
@@ -24547,25 +24529,25 @@ function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
24547
24529
|
i0.ɵɵproperty("ngIf", ctx_r7.hasMainColumns);
|
|
24548
24530
|
} }
|
|
24549
24531
|
function PoTableComponent_ng_template_10_th_5_po_checkbox_2_Template(rf, ctx) { if (rf & 1) {
|
|
24550
|
-
const
|
|
24532
|
+
const _r196 = i0.ɵɵgetCurrentView();
|
|
24551
24533
|
i0.ɵɵelementStart(0, "po-checkbox", 70);
|
|
24552
|
-
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_10_th_5_po_checkbox_2_Template_po_checkbox_p_change_0_listener() { i0.ɵɵrestoreView(
|
|
24534
|
+
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_10_th_5_po_checkbox_2_Template_po_checkbox_p_change_0_listener() { i0.ɵɵrestoreView(_r196); const ctx_r195 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r195.selectAllRows()); });
|
|
24553
24535
|
i0.ɵɵelementEnd();
|
|
24554
24536
|
} if (rf & 2) {
|
|
24555
|
-
const
|
|
24556
|
-
i0.ɵɵproperty("p-checkboxValue",
|
|
24537
|
+
const ctx_r194 = i0.ɵɵnextContext(3);
|
|
24538
|
+
i0.ɵɵproperty("p-checkboxValue", ctx_r194.selectAll === null ? "mixed" : ctx_r194.selectAll);
|
|
24557
24539
|
} }
|
|
24558
24540
|
function PoTableComponent_ng_template_10_th_5_Template(rf, ctx) { if (rf & 1) {
|
|
24559
24541
|
i0.ɵɵelementStart(0, "th", 68)(1, "div");
|
|
24560
24542
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_10_th_5_po_checkbox_2_Template, 1, 1, "po-checkbox", 69);
|
|
24561
24543
|
i0.ɵɵelementEnd()();
|
|
24562
24544
|
} if (rf & 2) {
|
|
24563
|
-
const
|
|
24564
|
-
i0.ɵɵstyleProp("pointer-events",
|
|
24545
|
+
const ctx_r181 = i0.ɵɵnextContext(2);
|
|
24546
|
+
i0.ɵɵstyleProp("pointer-events", ctx_r181.hideSelectAll ? "none" : "auto");
|
|
24565
24547
|
i0.ɵɵadvance();
|
|
24566
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
24548
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r181.height);
|
|
24567
24549
|
i0.ɵɵadvance();
|
|
24568
|
-
i0.ɵɵproperty("ngIf", !
|
|
24550
|
+
i0.ɵɵproperty("ngIf", !ctx_r181.hideSelectAll);
|
|
24569
24551
|
} }
|
|
24570
24552
|
function PoTableComponent_ng_template_10_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
24571
24553
|
i0.ɵɵelement(0, "th", 71);
|
|
@@ -24573,8 +24555,8 @@ function PoTableComponent_ng_template_10_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
24573
24555
|
function PoTableComponent_ng_template_10_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
24574
24556
|
i0.ɵɵelement(0, "th", null, 72);
|
|
24575
24557
|
} if (rf & 2) {
|
|
24576
|
-
const
|
|
24577
|
-
i0.ɵɵclassProp("po-table-header-master-detail", !
|
|
24558
|
+
const ctx_r183 = i0.ɵɵnextContext(2);
|
|
24559
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r183.isSingleAction)("po-table-header-single-action", ctx_r183.isSingleAction);
|
|
24578
24560
|
} }
|
|
24579
24561
|
function PoTableComponent_ng_template_10_th_8_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
24580
24562
|
i0.ɵɵelementContainer(0);
|
|
@@ -24584,11 +24566,11 @@ function PoTableComponent_ng_template_10_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
24584
24566
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_10_th_8_ng_container_2_Template, 1, 0, "ng-container", 63);
|
|
24585
24567
|
i0.ɵɵelementEnd();
|
|
24586
24568
|
} if (rf & 2) {
|
|
24587
|
-
const
|
|
24569
|
+
const ctx_r184 = i0.ɵɵnextContext(2);
|
|
24588
24570
|
const _r21 = i0.ɵɵreference(23);
|
|
24589
24571
|
const _r23 = i0.ɵɵreference(25);
|
|
24590
24572
|
i0.ɵɵadvance(2);
|
|
24591
|
-
i0.ɵɵproperty("ngIf",
|
|
24573
|
+
i0.ɵɵproperty("ngIf", ctx_r184.height)("ngIfThen", _r21)("ngIfElse", _r23);
|
|
24592
24574
|
} }
|
|
24593
24575
|
function PoTableComponent_ng_template_10_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
24594
24576
|
i0.ɵɵelementContainer(0);
|
|
@@ -24607,75 +24589,75 @@ function PoTableComponent_ng_template_10_ng_template_10_th_0_ng_container_4_Temp
|
|
|
24607
24589
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_template_10_th_0_ng_container_4_po_icon_1_Template, 1, 0, "po-icon", 79)(2, PoTableComponent_ng_template_10_ng_template_10_th_0_ng_container_4__svg_svg_2_Template, 7, 0, "svg", 80);
|
|
24608
24590
|
i0.ɵɵelementContainerEnd();
|
|
24609
24591
|
} if (rf & 2) {
|
|
24610
|
-
const
|
|
24592
|
+
const ctx_r203 = i0.ɵɵnextContext(4);
|
|
24611
24593
|
i0.ɵɵadvance();
|
|
24612
|
-
i0.ɵɵproperty("ngIf",
|
|
24594
|
+
i0.ɵɵproperty("ngIf", ctx_r203.iconNameLib === "PhosphorIcon");
|
|
24613
24595
|
i0.ɵɵadvance();
|
|
24614
|
-
i0.ɵɵproperty("ngIf",
|
|
24596
|
+
i0.ɵɵproperty("ngIf", ctx_r203.iconNameLib === "PoIcon");
|
|
24615
24597
|
} }
|
|
24616
24598
|
function PoTableComponent_ng_template_10_ng_template_10_th_0_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
24617
24599
|
i0.ɵɵelementContainer(0);
|
|
24618
24600
|
} }
|
|
24619
24601
|
function PoTableComponent_ng_template_10_ng_template_10_th_0_Template(rf, ctx) { if (rf & 1) {
|
|
24620
|
-
const
|
|
24602
|
+
const _r208 = i0.ɵɵgetCurrentView();
|
|
24621
24603
|
i0.ɵɵelementStart(0, "th", 76);
|
|
24622
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_template_10_th_0_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
24604
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_template_10_th_0_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r208); const column_r201 = restoredCtx.$implicit; const ctx_r207 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r207.sortColumn(column_r201)); });
|
|
24623
24605
|
i0.ɵɵpipe(1, "lowercase");
|
|
24624
24606
|
i0.ɵɵpipe(2, "titlecase");
|
|
24625
24607
|
i0.ɵɵelementStart(3, "div", 77);
|
|
24626
24608
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_10_ng_template_10_th_0_ng_container_4_Template, 3, 2, "ng-container", 43)(5, PoTableComponent_ng_template_10_ng_template_10_th_0_ng_container_5_Template, 1, 0, "ng-container", 78);
|
|
24627
24609
|
i0.ɵɵelementEnd()();
|
|
24628
24610
|
} if (rf & 2) {
|
|
24629
|
-
const
|
|
24630
|
-
const
|
|
24611
|
+
const column_r201 = ctx.$implicit;
|
|
24612
|
+
const ctx_r200 = i0.ɵɵnextContext(3);
|
|
24631
24613
|
const _r19 = i0.ɵɵreference(21);
|
|
24632
|
-
i0.ɵɵstyleProp("width",
|
|
24633
|
-
i0.ɵɵclassProp("po-clickable",
|
|
24634
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(30, _c16,
|
|
24635
|
-
i0.ɵɵattribute("data-po-table-column-name", i0.ɵɵpipeBind1(1, 26,
|
|
24614
|
+
i0.ɵɵstyleProp("width", column_r201.width)("max-width", column_r201.width)("min-width", column_r201.width);
|
|
24615
|
+
i0.ɵɵclassProp("po-clickable", ctx_r200.sort && column_r201.sortable !== false || ctx_r200.hasService)("po-table-header-subtitle", column_r201.type === "subtitle")("po-table-column-drag-box", ctx_r200.isDraggable);
|
|
24616
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(30, _c16, ctx_r200.sort && ctx_r200.JSON.stringify(ctx_r200.sortedColumn == null ? null : ctx_r200.sortedColumn.property) === ctx_r200.JSON.stringify(column_r201) && (ctx_r200.sortedColumn.ascending || !ctx_r200.sortedColumn.ascending)))("ngStyle", i0.ɵɵpureFunction1(32, _c17, !ctx_r200.hasItems ? "100%" : ctx_r200.applyFixedColumns() ? column_r201.width : "auto"))("cdkDragDisabled", column_r201.fixed ? "true" : "false")("pFrozenColumn", column_r201.fixed);
|
|
24617
|
+
i0.ɵɵattribute("data-po-table-column-name", i0.ɵɵpipeBind1(1, 26, column_r201.label || i0.ɵɵpipeBind1(2, 28, column_r201.property)));
|
|
24636
24618
|
i0.ɵɵadvance(3);
|
|
24637
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
24619
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r200.height)("po-table-header-flex-right", column_r201.type === "currency" || column_r201.type === "number")("po-table-header-flex-center", column_r201.type === "subtitle");
|
|
24638
24620
|
i0.ɵɵadvance();
|
|
24639
|
-
i0.ɵɵproperty("ngIf",
|
|
24621
|
+
i0.ɵɵproperty("ngIf", ctx_r200.isDraggable && !column_r201.fixed);
|
|
24640
24622
|
i0.ɵɵadvance();
|
|
24641
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r19)("ngTemplateOutletContext", i0.ɵɵpureFunction1(34, _c18,
|
|
24623
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r19)("ngTemplateOutletContext", i0.ɵɵpureFunction1(34, _c18, column_r201));
|
|
24642
24624
|
} }
|
|
24643
24625
|
function PoTableComponent_ng_template_10_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
24644
24626
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_10_ng_template_10_th_0_Template, 6, 36, "th", 75);
|
|
24645
24627
|
} if (rf & 2) {
|
|
24646
|
-
const
|
|
24647
|
-
i0.ɵɵproperty("ngForOf",
|
|
24628
|
+
const ctx_r186 = i0.ɵɵnextContext(2);
|
|
24629
|
+
i0.ɵɵproperty("ngForOf", ctx_r186.mainColumns)("ngForTrackBy", ctx_r186.trackBy);
|
|
24648
24630
|
} }
|
|
24649
24631
|
function PoTableComponent_ng_template_10_ng_template_12_th_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
24650
24632
|
i0.ɵɵelementContainer(0);
|
|
24651
24633
|
} }
|
|
24652
24634
|
function PoTableComponent_ng_template_10_ng_template_12_th_0_Template(rf, ctx) { if (rf & 1) {
|
|
24653
|
-
const
|
|
24635
|
+
const _r214 = i0.ɵɵgetCurrentView();
|
|
24654
24636
|
i0.ɵɵelementStart(0, "th", 121);
|
|
24655
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_template_12_th_0_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
24637
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_template_12_th_0_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r214); const column_r210 = restoredCtx.$implicit; const ctx_r213 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r213.sortColumn(column_r210)); });
|
|
24656
24638
|
i0.ɵɵpipe(1, "lowercase");
|
|
24657
24639
|
i0.ɵɵpipe(2, "titlecase");
|
|
24658
24640
|
i0.ɵɵelementStart(3, "div", 77);
|
|
24659
24641
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_10_ng_template_12_th_0_ng_container_4_Template, 1, 0, "ng-container", 78);
|
|
24660
24642
|
i0.ɵɵelementEnd()();
|
|
24661
24643
|
} if (rf & 2) {
|
|
24662
|
-
const
|
|
24663
|
-
const
|
|
24644
|
+
const column_r210 = ctx.$implicit;
|
|
24645
|
+
const ctx_r209 = i0.ɵɵnextContext(3);
|
|
24664
24646
|
const _r19 = i0.ɵɵreference(21);
|
|
24665
|
-
i0.ɵɵstyleProp("width",
|
|
24666
|
-
i0.ɵɵclassProp("po-clickable",
|
|
24667
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c16,
|
|
24668
|
-
i0.ɵɵattribute("data-po-table-column-name", i0.ɵɵpipeBind1(1, 22,
|
|
24647
|
+
i0.ɵɵstyleProp("width", column_r210.width)("max-width", column_r210.width)("min-width", column_r210.width);
|
|
24648
|
+
i0.ɵɵclassProp("po-clickable", ctx_r209.sort && column_r210.sortable !== false || ctx_r209.hasService)("po-table-header-subtitle", column_r210.type === "subtitle");
|
|
24649
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c16, ctx_r209.sort && ctx_r209.JSON.stringify(ctx_r209.sortedColumn == null ? null : ctx_r209.sortedColumn.property) === ctx_r209.JSON.stringify(column_r210) && (ctx_r209.sortedColumn.ascending || !ctx_r209.sortedColumn.ascending)))("ngStyle", i0.ɵɵpureFunction1(28, _c17, !ctx_r209.hasItems ? "100%" : ctx_r209.applyFixedColumns() ? column_r210.width : "auto"))("pFrozenColumn", column_r210.fixed);
|
|
24650
|
+
i0.ɵɵattribute("data-po-table-column-name", i0.ɵɵpipeBind1(1, 22, column_r210.label || i0.ɵɵpipeBind1(2, 24, column_r210.property)));
|
|
24669
24651
|
i0.ɵɵadvance(3);
|
|
24670
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
24652
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r209.height)("po-table-header-flex-right", column_r210.type === "currency" || column_r210.type === "number")("po-table-header-flex-center", column_r210.type === "subtitle");
|
|
24671
24653
|
i0.ɵɵadvance();
|
|
24672
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r19)("ngTemplateOutletContext", i0.ɵɵpureFunction1(30, _c18,
|
|
24654
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r19)("ngTemplateOutletContext", i0.ɵɵpureFunction1(30, _c18, column_r210));
|
|
24673
24655
|
} }
|
|
24674
24656
|
function PoTableComponent_ng_template_10_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
24675
24657
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_10_ng_template_12_th_0_Template, 5, 32, "th", 120);
|
|
24676
24658
|
} if (rf & 2) {
|
|
24677
|
-
const
|
|
24678
|
-
i0.ɵɵproperty("ngForOf",
|
|
24659
|
+
const ctx_r188 = i0.ɵɵnextContext(2);
|
|
24660
|
+
i0.ɵɵproperty("ngForOf", ctx_r188.mainColumns)("ngForTrackBy", ctx_r188.trackBy);
|
|
24679
24661
|
} }
|
|
24680
24662
|
function PoTableComponent_ng_template_10_th_14_Template(rf, ctx) { if (rf & 1) {
|
|
24681
24663
|
i0.ɵɵelement(0, "th", 71);
|
|
@@ -24683,19 +24665,19 @@ function PoTableComponent_ng_template_10_th_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
24683
24665
|
function PoTableComponent_ng_template_10_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
24684
24666
|
i0.ɵɵelement(0, "th");
|
|
24685
24667
|
} if (rf & 2) {
|
|
24686
|
-
const
|
|
24687
|
-
i0.ɵɵclassProp("po-table-header-single-action",
|
|
24668
|
+
const ctx_r191 = i0.ɵɵnextContext(2);
|
|
24669
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r191.isSingleAction)("po-table-header-actions", !ctx_r191.isSingleAction);
|
|
24688
24670
|
} }
|
|
24689
24671
|
function PoTableComponent_ng_template_10_tbody_16_Template(rf, ctx) { if (rf & 1) {
|
|
24690
24672
|
i0.ɵɵelementStart(0, "tbody", 91)(1, "tr", 92)(2, "td", 93)(3, "span");
|
|
24691
24673
|
i0.ɵɵtext(4);
|
|
24692
24674
|
i0.ɵɵelementEnd()()()();
|
|
24693
24675
|
} if (rf & 2) {
|
|
24694
|
-
const
|
|
24676
|
+
const ctx_r192 = i0.ɵɵnextContext(2);
|
|
24695
24677
|
i0.ɵɵadvance(2);
|
|
24696
|
-
i0.ɵɵproperty("colSpan",
|
|
24678
|
+
i0.ɵɵproperty("colSpan", ctx_r192.columnCount);
|
|
24697
24679
|
i0.ɵɵadvance(2);
|
|
24698
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24680
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r192.literals.noData, " ");
|
|
24699
24681
|
} }
|
|
24700
24682
|
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24701
24683
|
i0.ɵɵelementContainer(0);
|
|
@@ -24705,223 +24687,207 @@ function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_2_Template(r
|
|
|
24705
24687
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 78);
|
|
24706
24688
|
i0.ɵɵelementEnd();
|
|
24707
24689
|
} if (rf & 2) {
|
|
24708
|
-
const
|
|
24709
|
-
const
|
|
24690
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24691
|
+
const ctx_r218 = i0.ɵɵnextContext(3);
|
|
24710
24692
|
const _r15 = i0.ɵɵreference(17);
|
|
24711
24693
|
const _r17 = i0.ɵɵreference(19);
|
|
24712
24694
|
i0.ɵɵadvance();
|
|
24713
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24695
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r218.singleSelect ? _r15 : _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c18, row_r216));
|
|
24714
24696
|
} }
|
|
24715
24697
|
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
24716
24698
|
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
24717
|
-
const
|
|
24699
|
+
const _r231 = i0.ɵɵgetCurrentView();
|
|
24718
24700
|
i0.ɵɵelementStart(0, "td", 99);
|
|
24719
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
24701
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r231); const row_r216 = i0.ɵɵnextContext().$implicit; const ctx_r229 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r229.toggleDetail(row_r216)); });
|
|
24720
24702
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 100);
|
|
24721
24703
|
i0.ɵɵelementEnd();
|
|
24722
24704
|
} if (rf & 2) {
|
|
24723
|
-
const
|
|
24724
|
-
const
|
|
24725
|
-
const
|
|
24705
|
+
const ctx_r232 = i0.ɵɵnextContext();
|
|
24706
|
+
const row_r216 = ctx_r232.$implicit;
|
|
24707
|
+
const rowIndex_r217 = ctx_r232.index;
|
|
24726
24708
|
i0.ɵɵnextContext(3);
|
|
24727
24709
|
const _r13 = i0.ɵɵreference(15);
|
|
24728
24710
|
i0.ɵɵadvance();
|
|
24729
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19,
|
|
24711
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r216, rowIndex_r217));
|
|
24730
24712
|
} }
|
|
24731
24713
|
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
24732
24714
|
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_4_Template(rf, ctx) { if (rf & 1) {
|
|
24733
24715
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_10_ng_container_17_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 100);
|
|
24734
24716
|
} if (rf & 2) {
|
|
24735
|
-
const
|
|
24736
|
-
const
|
|
24737
|
-
const
|
|
24717
|
+
const ctx_r234 = i0.ɵɵnextContext();
|
|
24718
|
+
const row_r216 = ctx_r234.$implicit;
|
|
24719
|
+
const rowIndex_r217 = ctx_r234.index;
|
|
24738
24720
|
i0.ɵɵnextContext(3);
|
|
24739
24721
|
const _r25 = i0.ɵɵreference(27);
|
|
24740
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r25)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19,
|
|
24741
|
-
} }
|
|
24742
|
-
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
24743
|
-
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
24744
|
-
const _r245 = i0.ɵɵgetCurrentView();
|
|
24745
|
-
i0.ɵɵelementStart(0, "td", 99);
|
|
24746
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r245); const row_r222 = i0.ɵɵnextContext().$implicit; const ctx_r243 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r243.toggleDetail(row_r222)); });
|
|
24747
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 100);
|
|
24748
|
-
i0.ɵɵelementEnd();
|
|
24749
|
-
} if (rf & 2) {
|
|
24750
|
-
const ctx_r246 = i0.ɵɵnextContext();
|
|
24751
|
-
const row_r222 = ctx_r246.$implicit;
|
|
24752
|
-
const rowIndex_r223 = ctx_r246.index;
|
|
24753
|
-
i0.ɵɵnextContext(3);
|
|
24754
|
-
const _r13 = i0.ɵɵreference(15);
|
|
24755
|
-
i0.ɵɵadvance();
|
|
24756
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r222, rowIndex_r223));
|
|
24722
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r25)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r216, rowIndex_r217));
|
|
24757
24723
|
} }
|
|
24758
|
-
function
|
|
24724
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24759
24725
|
i0.ɵɵelementContainer(0);
|
|
24760
24726
|
} }
|
|
24761
|
-
function
|
|
24727
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
24762
24728
|
i0.ɵɵelementStart(0, "span");
|
|
24763
|
-
i0.ɵɵtemplate(1,
|
|
24729
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_2_ng_container_1_Template, 1, 0, "ng-container", 78);
|
|
24764
24730
|
i0.ɵɵelementEnd();
|
|
24765
24731
|
} if (rf & 2) {
|
|
24766
|
-
const
|
|
24767
|
-
const
|
|
24768
|
-
const
|
|
24732
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24733
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24734
|
+
const ctx_r237 = i0.ɵɵnextContext(3);
|
|
24769
24735
|
i0.ɵɵadvance();
|
|
24770
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24736
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r237.getTemplate(column_r235))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c18, ctx_r237.getCellData(row_r216, column_r235)));
|
|
24771
24737
|
} }
|
|
24772
|
-
function
|
|
24738
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24773
24739
|
i0.ɵɵelementContainer(0);
|
|
24774
24740
|
} }
|
|
24775
|
-
function
|
|
24741
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
24776
24742
|
i0.ɵɵelementStart(0, "span");
|
|
24777
|
-
i0.ɵɵtemplate(1,
|
|
24743
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_3_ng_container_1_Template, 1, 0, "ng-container", 78);
|
|
24778
24744
|
i0.ɵɵelementEnd();
|
|
24779
24745
|
} if (rf & 2) {
|
|
24780
|
-
const
|
|
24781
|
-
const
|
|
24782
|
-
const
|
|
24746
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24747
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24748
|
+
const ctx_r238 = i0.ɵɵnextContext(3);
|
|
24783
24749
|
i0.ɵɵadvance();
|
|
24784
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24750
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r238.tableCellTemplate == null ? null : ctx_r238.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c20, row_r216, column_r235));
|
|
24785
24751
|
} }
|
|
24786
|
-
function
|
|
24752
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
24787
24753
|
i0.ɵɵelementStart(0, "span");
|
|
24788
24754
|
i0.ɵɵtext(1);
|
|
24789
24755
|
i0.ɵɵelementEnd();
|
|
24790
24756
|
} if (rf & 2) {
|
|
24791
|
-
const
|
|
24792
|
-
const
|
|
24793
|
-
const
|
|
24757
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24758
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24759
|
+
const ctx_r239 = i0.ɵɵnextContext(3);
|
|
24794
24760
|
i0.ɵɵadvance();
|
|
24795
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24761
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r239.getBooleanLabel(ctx_r239.getCellData(row_r216, column_r235), column_r235), " ");
|
|
24796
24762
|
} }
|
|
24797
|
-
function
|
|
24763
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
24798
24764
|
i0.ɵɵelementStart(0, "span");
|
|
24799
24765
|
i0.ɵɵtext(1);
|
|
24800
24766
|
i0.ɵɵpipe(2, "currency");
|
|
24801
24767
|
i0.ɵɵelementEnd();
|
|
24802
24768
|
} if (rf & 2) {
|
|
24803
|
-
const
|
|
24804
|
-
const
|
|
24805
|
-
const
|
|
24769
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24770
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24771
|
+
const ctx_r240 = i0.ɵɵnextContext(3);
|
|
24806
24772
|
i0.ɵɵadvance();
|
|
24807
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
24773
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r240.getCellData(row_r216, column_r235), column_r235.format, "symbol", "1.2-2"), " ");
|
|
24808
24774
|
} }
|
|
24809
|
-
function
|
|
24775
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
24810
24776
|
i0.ɵɵelementStart(0, "span");
|
|
24811
24777
|
i0.ɵɵtext(1);
|
|
24812
24778
|
i0.ɵɵpipe(2, "date");
|
|
24813
24779
|
i0.ɵɵelementEnd();
|
|
24814
24780
|
} if (rf & 2) {
|
|
24815
|
-
const
|
|
24816
|
-
const
|
|
24817
|
-
const
|
|
24781
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24782
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24783
|
+
const ctx_r241 = i0.ɵɵnextContext(3);
|
|
24818
24784
|
i0.ɵɵadvance();
|
|
24819
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
24785
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r241.getCellData(row_r216, column_r235), column_r235.format || "dd/MM/yyyy"), " ");
|
|
24820
24786
|
} }
|
|
24821
|
-
function
|
|
24787
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
24822
24788
|
i0.ɵɵelementStart(0, "span");
|
|
24823
24789
|
i0.ɵɵtext(1);
|
|
24824
24790
|
i0.ɵɵpipe(2, "po_time");
|
|
24825
24791
|
i0.ɵɵelementEnd();
|
|
24826
24792
|
} if (rf & 2) {
|
|
24827
|
-
const
|
|
24828
|
-
const
|
|
24829
|
-
const
|
|
24793
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24794
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24795
|
+
const ctx_r242 = i0.ɵɵnextContext(3);
|
|
24830
24796
|
i0.ɵɵadvance();
|
|
24831
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
24797
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r242.getCellData(row_r216, column_r235), column_r235.format || "HH:mm:ss.ffffff"), " ");
|
|
24832
24798
|
} }
|
|
24833
|
-
function
|
|
24799
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
24834
24800
|
i0.ɵɵelementStart(0, "span");
|
|
24835
24801
|
i0.ɵɵtext(1);
|
|
24836
24802
|
i0.ɵɵpipe(2, "date");
|
|
24837
24803
|
i0.ɵɵelementEnd();
|
|
24838
24804
|
} if (rf & 2) {
|
|
24839
|
-
const
|
|
24840
|
-
const
|
|
24841
|
-
const
|
|
24805
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24806
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24807
|
+
const ctx_r243 = i0.ɵɵnextContext(3);
|
|
24842
24808
|
i0.ɵɵadvance();
|
|
24843
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
24809
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r243.getCellData(row_r216, column_r235), column_r235.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
24844
24810
|
} }
|
|
24845
|
-
function
|
|
24811
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
24846
24812
|
i0.ɵɵelementStart(0, "span");
|
|
24847
24813
|
i0.ɵɵtext(1);
|
|
24848
24814
|
i0.ɵɵelementEnd();
|
|
24849
24815
|
} if (rf & 2) {
|
|
24850
|
-
const
|
|
24851
|
-
const
|
|
24852
|
-
const
|
|
24816
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24817
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24818
|
+
const ctx_r244 = i0.ɵɵnextContext(3);
|
|
24853
24819
|
i0.ɵɵadvance();
|
|
24854
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24820
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r244.formatNumber(ctx_r244.getCellData(row_r216, column_r235), column_r235.format), " ");
|
|
24855
24821
|
} }
|
|
24856
|
-
function
|
|
24857
|
-
const
|
|
24822
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_po_table_column_link_10_Template(rf, ctx) { if (rf & 1) {
|
|
24823
|
+
const _r270 = i0.ɵɵgetCurrentView();
|
|
24858
24824
|
i0.ɵɵelementStart(0, "po-table-column-link", 107);
|
|
24859
|
-
i0.ɵɵlistener("click", function
|
|
24825
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(_r270); const column_r235 = i0.ɵɵnextContext().$implicit; const row_r216 = i0.ɵɵnextContext().$implicit; const ctx_r268 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r268.onClickLink($event, row_r216, column_r235)); });
|
|
24860
24826
|
i0.ɵɵelementEnd();
|
|
24861
24827
|
} if (rf & 2) {
|
|
24862
|
-
const
|
|
24863
|
-
const
|
|
24864
|
-
const
|
|
24865
|
-
i0.ɵɵproperty("p-action",
|
|
24828
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24829
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24830
|
+
const ctx_r245 = i0.ɵɵnextContext(3);
|
|
24831
|
+
i0.ɵɵproperty("p-action", column_r235.action)("p-disabled", ctx_r245.checkDisabled(row_r216, column_r235))("p-link", row_r216[column_r235.link])("p-row", row_r216)("p-value", ctx_r245.getCellData(row_r216, column_r235));
|
|
24866
24832
|
} }
|
|
24867
|
-
function
|
|
24833
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_po_table_column_icon_11_Template(rf, ctx) { if (rf & 1) {
|
|
24868
24834
|
i0.ɵɵelement(0, "po-table-column-icon", 108);
|
|
24869
24835
|
} if (rf & 2) {
|
|
24870
|
-
const
|
|
24871
|
-
const
|
|
24872
|
-
const
|
|
24873
|
-
i0.ɵɵproperty("p-column",
|
|
24836
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24837
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24838
|
+
const ctx_r246 = i0.ɵɵnextContext(3);
|
|
24839
|
+
i0.ɵɵproperty("p-column", column_r235)("p-icons", ctx_r246.getColumnIcons(row_r216, column_r235))("p-row", row_r216);
|
|
24874
24840
|
} }
|
|
24875
|
-
function
|
|
24841
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
24876
24842
|
i0.ɵɵelementStart(0, "span");
|
|
24877
24843
|
i0.ɵɵelement(1, "po-table-subtitle-circle", 109);
|
|
24878
24844
|
i0.ɵɵelementEnd();
|
|
24879
24845
|
} if (rf & 2) {
|
|
24880
|
-
const
|
|
24881
|
-
const
|
|
24882
|
-
const
|
|
24846
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24847
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24848
|
+
const ctx_r247 = i0.ɵɵnextContext(3);
|
|
24883
24849
|
i0.ɵɵadvance();
|
|
24884
|
-
i0.ɵɵproperty("p-subtitle",
|
|
24850
|
+
i0.ɵɵproperty("p-subtitle", ctx_r247.getSubtitleColumn(row_r216, column_r235));
|
|
24885
24851
|
} }
|
|
24886
|
-
function
|
|
24852
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
24887
24853
|
i0.ɵɵelementStart(0, "span");
|
|
24888
24854
|
i0.ɵɵelement(1, "po-table-column-label", 110);
|
|
24889
24855
|
i0.ɵɵelementEnd();
|
|
24890
24856
|
} if (rf & 2) {
|
|
24891
|
-
const
|
|
24892
|
-
const
|
|
24893
|
-
const
|
|
24857
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24858
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24859
|
+
const ctx_r248 = i0.ɵɵnextContext(3);
|
|
24894
24860
|
i0.ɵɵadvance();
|
|
24895
|
-
i0.ɵɵproperty("p-value",
|
|
24861
|
+
i0.ɵɵproperty("p-value", ctx_r248.getColumnLabel(row_r216, column_r235));
|
|
24896
24862
|
} }
|
|
24897
|
-
function
|
|
24863
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
24898
24864
|
i0.ɵɵelementStart(0, "span");
|
|
24899
24865
|
i0.ɵɵtext(1);
|
|
24900
24866
|
i0.ɵɵelementEnd();
|
|
24901
24867
|
} if (rf & 2) {
|
|
24902
|
-
const
|
|
24903
|
-
const
|
|
24904
|
-
const
|
|
24868
|
+
const column_r235 = i0.ɵɵnextContext().$implicit;
|
|
24869
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24870
|
+
const ctx_r249 = i0.ɵɵnextContext(3);
|
|
24905
24871
|
i0.ɵɵadvance();
|
|
24906
|
-
i0.ɵɵtextInterpolate(
|
|
24872
|
+
i0.ɵɵtextInterpolate(ctx_r249.getCellData(row_r216, column_r235));
|
|
24907
24873
|
} }
|
|
24908
|
-
function
|
|
24909
|
-
const
|
|
24874
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
24875
|
+
const _r283 = i0.ɵɵgetCurrentView();
|
|
24910
24876
|
i0.ɵɵelementStart(0, "td", 124);
|
|
24911
|
-
i0.ɵɵlistener("click", function
|
|
24877
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r283); const row_r216 = i0.ɵɵnextContext().$implicit; const ctx_r282 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r282.hasSelectableRow() ? ctx_r282.selectRow(row_r216) : "javascript:;"); });
|
|
24912
24878
|
i0.ɵɵelementStart(1, "div", 102);
|
|
24913
|
-
i0.ɵɵlistener("mouseenter", function
|
|
24914
|
-
i0.ɵɵtemplate(2,
|
|
24879
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r283); const column_r235 = restoredCtx.$implicit; const row_r216 = i0.ɵɵnextContext().$implicit; const ctx_r285 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r285.tooltipMouseEnter($event, column_r235, row_r216)); })("mouseleave", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r283); const ctx_r287 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r287.tooltipMouseLeave()); });
|
|
24880
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_2_Template, 2, 4, "span", 103)(3, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_3_Template, 2, 5, "span", 103)(4, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_4_Template, 2, 1, "span", 103)(5, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_5_Template, 3, 6, "span", 103)(6, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_6_Template, 3, 4, "span", 103)(7, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_7_Template, 3, 4, "span", 103)(8, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_8_Template, 3, 4, "span", 103)(9, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_9_Template, 2, 1, "span", 103)(10, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_po_table_column_link_10_Template, 1, 5, "po-table-column-link", 104)(11, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon", 105)(12, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_12_Template, 2, 1, "span", 103)(13, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_13_Template, 2, 1, "span", 103)(14, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_span_14_Template, 2, 1, "span", 106);
|
|
24915
24881
|
i0.ɵɵelementEnd()();
|
|
24916
24882
|
} if (rf & 2) {
|
|
24917
|
-
const
|
|
24918
|
-
const
|
|
24919
|
-
const
|
|
24920
|
-
i0.ɵɵstyleProp("width",
|
|
24921
|
-
i0.ɵɵclassProp("po-table-column",
|
|
24922
|
-
i0.ɵɵproperty("ngClass",
|
|
24883
|
+
const column_r235 = ctx.$implicit;
|
|
24884
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24885
|
+
const ctx_r221 = i0.ɵɵnextContext(3);
|
|
24886
|
+
i0.ɵɵstyleProp("width", column_r235.width)("max-width", column_r235.width)("min-width", column_r235.width);
|
|
24887
|
+
i0.ɵɵclassProp("po-table-column", column_r235.type !== "icon")("po-table-column-right", column_r235.type === "currency" || column_r235.type === "number")("po-table-column-center", column_r235.type === "subtitle")("po-table-column-icons", column_r235.type === "icon");
|
|
24888
|
+
i0.ɵɵproperty("ngClass", ctx_r221.getClassColor(row_r216, column_r235))("pFrozenColumn", column_r235.fixed);
|
|
24923
24889
|
i0.ɵɵadvance();
|
|
24924
|
-
i0.ɵɵproperty("ngSwitch",
|
|
24890
|
+
i0.ɵɵproperty("ngSwitch", column_r235.type)("p-tooltip", ctx_r221.tooltipText)("p-append-in-body", true);
|
|
24925
24891
|
i0.ɵɵadvance();
|
|
24926
24892
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
24927
24893
|
i0.ɵɵadvance();
|
|
@@ -24947,112 +24913,110 @@ function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_6_Template(r
|
|
|
24947
24913
|
i0.ɵɵadvance();
|
|
24948
24914
|
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
24949
24915
|
} }
|
|
24950
|
-
function
|
|
24951
|
-
function
|
|
24952
|
-
const
|
|
24916
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_6_ng_template_1_Template(rf, ctx) { }
|
|
24917
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
24918
|
+
const _r292 = i0.ɵɵgetCurrentView();
|
|
24953
24919
|
i0.ɵɵelementStart(0, "td", 99);
|
|
24954
|
-
i0.ɵɵlistener("click", function
|
|
24955
|
-
i0.ɵɵtemplate(1,
|
|
24920
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r292); const row_r216 = i0.ɵɵnextContext().$implicit; const ctx_r290 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r290.toggleDetail(row_r216)); });
|
|
24921
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_6_ng_template_1_Template, 0, 0, "ng-template", 100);
|
|
24956
24922
|
i0.ɵɵelementEnd();
|
|
24957
24923
|
} if (rf & 2) {
|
|
24958
|
-
const
|
|
24959
|
-
const
|
|
24960
|
-
const
|
|
24924
|
+
const ctx_r293 = i0.ɵɵnextContext();
|
|
24925
|
+
const row_r216 = ctx_r293.$implicit;
|
|
24926
|
+
const rowIndex_r217 = ctx_r293.index;
|
|
24961
24927
|
i0.ɵɵnextContext(3);
|
|
24962
24928
|
const _r13 = i0.ɵɵreference(15);
|
|
24963
24929
|
i0.ɵɵadvance();
|
|
24964
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19,
|
|
24930
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r13)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r216, rowIndex_r217));
|
|
24965
24931
|
} }
|
|
24966
|
-
function
|
|
24967
|
-
function
|
|
24968
|
-
i0.ɵɵtemplate(0,
|
|
24932
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_7_ng_template_0_Template(rf, ctx) { }
|
|
24933
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_7_Template(rf, ctx) { if (rf & 1) {
|
|
24934
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_10_ng_container_17_tbody_1_7_ng_template_0_Template, 0, 0, "ng-template", 100);
|
|
24969
24935
|
} if (rf & 2) {
|
|
24970
|
-
const
|
|
24971
|
-
const
|
|
24972
|
-
const
|
|
24936
|
+
const ctx_r295 = i0.ɵɵnextContext();
|
|
24937
|
+
const row_r216 = ctx_r295.$implicit;
|
|
24938
|
+
const rowIndex_r217 = ctx_r295.index;
|
|
24973
24939
|
i0.ɵɵnextContext(3);
|
|
24974
24940
|
const _r25 = i0.ɵɵreference(27);
|
|
24975
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r25)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19,
|
|
24941
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r25)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, row_r216, rowIndex_r217));
|
|
24976
24942
|
} }
|
|
24977
|
-
function
|
|
24978
|
-
function
|
|
24943
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_8_ng_template_2_Template(rf, ctx) { }
|
|
24944
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_8_Template(rf, ctx) { if (rf & 1) {
|
|
24979
24945
|
i0.ɵɵelementStart(0, "tr")(1, "td", 111);
|
|
24980
|
-
i0.ɵɵtemplate(2,
|
|
24946
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_8_ng_template_2_Template, 0, 0, "ng-template", 100);
|
|
24981
24947
|
i0.ɵɵelementEnd()();
|
|
24982
24948
|
} if (rf & 2) {
|
|
24983
|
-
const
|
|
24984
|
-
const
|
|
24985
|
-
const
|
|
24986
|
-
const
|
|
24949
|
+
const ctx_r297 = i0.ɵɵnextContext();
|
|
24950
|
+
const row_r216 = ctx_r297.$implicit;
|
|
24951
|
+
const rowIndex_r217 = ctx_r297.index;
|
|
24952
|
+
const ctx_r224 = i0.ɵɵnextContext(3);
|
|
24987
24953
|
i0.ɵɵadvance();
|
|
24988
|
-
i0.ɵɵproperty("colSpan",
|
|
24954
|
+
i0.ɵɵproperty("colSpan", ctx_r224.columnCountForMasterDetail);
|
|
24989
24955
|
i0.ɵɵadvance();
|
|
24990
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24956
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r224.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c21, row_r216, rowIndex_r217));
|
|
24991
24957
|
} }
|
|
24992
|
-
function
|
|
24993
|
-
const
|
|
24958
|
+
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
24959
|
+
const _r299 = i0.ɵɵgetCurrentView();
|
|
24994
24960
|
i0.ɵɵelementStart(0, "tr")(1, "td", 112)(2, "po-table-detail", 113);
|
|
24995
|
-
i0.ɵɵlistener("p-select-row", function
|
|
24961
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_9_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r299); const ctx_r298 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r298.selectDetailRow($event)); });
|
|
24996
24962
|
i0.ɵɵelementEnd()()();
|
|
24997
24963
|
} if (rf & 2) {
|
|
24998
|
-
const
|
|
24999
|
-
const
|
|
24964
|
+
const row_r216 = i0.ɵɵnextContext().$implicit;
|
|
24965
|
+
const ctx_r225 = i0.ɵɵnextContext(3);
|
|
25000
24966
|
i0.ɵɵadvance();
|
|
25001
|
-
i0.ɵɵproperty("colSpan",
|
|
24967
|
+
i0.ɵɵproperty("colSpan", ctx_r225.columnCountForMasterDetail);
|
|
25002
24968
|
i0.ɵɵadvance();
|
|
25003
|
-
i0.ɵɵproperty("p-selectable",
|
|
24969
|
+
i0.ɵɵproperty("p-selectable", ctx_r225.selectable && !ctx_r225.detailHideSelect)("p-detail", ctx_r225.columnMasterDetail.detail)("p-items", row_r216[ctx_r225.nameColumnDetail])("p-parent-row", row_r216);
|
|
25004
24970
|
} }
|
|
25005
24971
|
function PoTableComponent_ng_template_10_ng_container_17_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
25006
24972
|
i0.ɵɵelementStart(0, "tbody", 91)(1, "tr", 95);
|
|
25007
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_2_Template, 2, 4, "td", 96)(3, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_Template, 2, 5, "td", 97)(4, PoTableComponent_ng_template_10_ng_container_17_tbody_1_4_Template, 1, 5, null, 43)(5, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template,
|
|
24973
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_2_Template, 2, 4, "td", 96)(3, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_3_Template, 2, 5, "td", 97)(4, PoTableComponent_ng_template_10_ng_container_17_tbody_1_4_Template, 1, 5, null, 43)(5, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_5_Template, 15, 31, "td", 123)(6, PoTableComponent_ng_template_10_ng_container_17_tbody_1_td_6_Template, 2, 5, "td", 97)(7, PoTableComponent_ng_template_10_ng_container_17_tbody_1_7_Template, 1, 5, null, 43);
|
|
25008
24974
|
i0.ɵɵelementEnd();
|
|
25009
|
-
i0.ɵɵtemplate(
|
|
24975
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_8_Template, 3, 6, "tr", 43)(9, PoTableComponent_ng_template_10_ng_container_17_tbody_1_tr_9_Template, 3, 5, "tr", 43);
|
|
25010
24976
|
i0.ɵɵelementEnd();
|
|
25011
24977
|
} if (rf & 2) {
|
|
25012
|
-
const
|
|
25013
|
-
const
|
|
25014
|
-
const
|
|
25015
|
-
i0.ɵɵadvance();
|
|
25016
|
-
i0.ɵɵclassProp("po-table-row-active", row_r222.$selected || row_r222.$selected === null && ctx_r221.selectable);
|
|
24978
|
+
const row_r216 = ctx.$implicit;
|
|
24979
|
+
const rowIndex_r217 = ctx.index;
|
|
24980
|
+
const ctx_r215 = i0.ɵɵnextContext(3);
|
|
25017
24981
|
i0.ɵɵadvance();
|
|
25018
|
-
i0.ɵɵ
|
|
24982
|
+
i0.ɵɵclassProp("po-table-row-active", row_r216.$selected || row_r216.$selected === null && ctx_r215.selectable);
|
|
25019
24983
|
i0.ɵɵadvance();
|
|
25020
|
-
i0.ɵɵproperty("ngIf",
|
|
24984
|
+
i0.ɵɵproperty("ngIf", ctx_r215.selectable);
|
|
25021
24985
|
i0.ɵɵadvance();
|
|
25022
|
-
i0.ɵɵproperty("ngIf",
|
|
24986
|
+
i0.ɵɵproperty("ngIf", ctx_r215.columnMasterDetail && !ctx_r215.hideDetail && !ctx_r215.hasRowTemplate || ctx_r215.hasRowTemplate && !ctx_r215.hasRowTemplateWithArrowDirectionRight);
|
|
25023
24987
|
i0.ɵɵadvance();
|
|
25024
|
-
i0.ɵɵproperty("ngIf",
|
|
24988
|
+
i0.ɵɵproperty("ngIf", !ctx_r215.actionRight && (ctx_r215.visibleActions.length > 1 || ctx_r215.isSingleAction));
|
|
25025
24989
|
i0.ɵɵadvance();
|
|
25026
|
-
i0.ɵɵproperty("ngForOf",
|
|
24990
|
+
i0.ɵɵproperty("ngForOf", ctx_r215.mainColumns)("ngForTrackBy", ctx_r215.trackBy);
|
|
25027
24991
|
i0.ɵɵadvance();
|
|
25028
|
-
i0.ɵɵproperty("ngIf",
|
|
24992
|
+
i0.ɵɵproperty("ngIf", ctx_r215.hasRowTemplateWithArrowDirectionRight);
|
|
25029
24993
|
i0.ɵɵadvance();
|
|
25030
|
-
i0.ɵɵproperty("ngIf",
|
|
24994
|
+
i0.ɵɵproperty("ngIf", ctx_r215.actionRight);
|
|
25031
24995
|
i0.ɵɵadvance();
|
|
25032
|
-
i0.ɵɵproperty("ngIf",
|
|
24996
|
+
i0.ɵɵproperty("ngIf", ctx_r215.hasMainColumns && ctx_r215.hasRowTemplate && row_r216.$showDetail && ctx_r215.isShowRowTemplate(row_r216, rowIndex_r217));
|
|
25033
24997
|
i0.ɵɵadvance();
|
|
25034
|
-
i0.ɵɵproperty("ngIf",
|
|
24998
|
+
i0.ɵɵproperty("ngIf", ctx_r215.hasMainColumns && ctx_r215.isShowMasterDetail(row_r216));
|
|
25035
24999
|
} }
|
|
25036
25000
|
function PoTableComponent_ng_template_10_ng_container_17_Template(rf, ctx) { if (rf & 1) {
|
|
25037
25001
|
i0.ɵɵelementContainerStart(0);
|
|
25038
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_Template,
|
|
25002
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_10_ng_container_17_tbody_1_Template, 10, 11, "tbody", 122);
|
|
25039
25003
|
i0.ɵɵelementContainerEnd();
|
|
25040
25004
|
} if (rf & 2) {
|
|
25041
|
-
const
|
|
25005
|
+
const ctx_r193 = i0.ɵɵnextContext(2);
|
|
25042
25006
|
i0.ɵɵadvance();
|
|
25043
|
-
i0.ɵɵproperty("cdkVirtualForOf",
|
|
25007
|
+
i0.ɵɵproperty("cdkVirtualForOf", ctx_r193.filteredItems)("cdkVirtualForTrackBy", ctx_r193.trackBy);
|
|
25044
25008
|
} }
|
|
25045
25009
|
function PoTableComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
25046
|
-
const
|
|
25010
|
+
const _r302 = i0.ɵɵgetCurrentView();
|
|
25047
25011
|
i0.ɵɵelementStart(0, "cdk-virtual-scroll-viewport", 114, 115)(2, "table", 56)(3, "thead", 116)(4, "tr", 117);
|
|
25048
|
-
i0.ɵɵlistener("cdkDropListDropped", function PoTableComponent_ng_template_10_Template_tr_cdkDropListDropped_4_listener($event) { i0.ɵɵrestoreView(
|
|
25012
|
+
i0.ɵɵlistener("cdkDropListDropped", function PoTableComponent_ng_template_10_Template_tr_cdkDropListDropped_4_listener($event) { i0.ɵɵrestoreView(_r302); const ctx_r301 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r301.drop($event)); });
|
|
25049
25013
|
i0.ɵɵtemplate(5, PoTableComponent_ng_template_10_th_5_Template, 3, 5, "th", 59)(6, PoTableComponent_ng_template_10_th_6_Template, 1, 0, "th", 60)(7, PoTableComponent_ng_template_10_th_7_Template, 2, 4, "th", 61)(8, PoTableComponent_ng_template_10_th_8_Template, 3, 3, "th", 62)(9, PoTableComponent_ng_template_10_ng_container_9_Template, 1, 0, "ng-container", 63)(10, PoTableComponent_ng_template_10_ng_template_10_Template, 1, 2, "ng-template", null, 118, i0.ɵɵtemplateRefExtractor)(12, PoTableComponent_ng_template_10_ng_template_12_Template, 1, 2, "ng-template", null, 119, i0.ɵɵtemplateRefExtractor)(14, PoTableComponent_ng_template_10_th_14_Template, 1, 0, "th", 60)(15, PoTableComponent_ng_template_10_th_15_Template, 1, 4, "th", 66);
|
|
25050
25014
|
i0.ɵɵelementEnd()();
|
|
25051
25015
|
i0.ɵɵtemplate(16, PoTableComponent_ng_template_10_tbody_16_Template, 5, 2, "tbody", 67)(17, PoTableComponent_ng_template_10_ng_container_17_Template, 2, 2, "ng-container", 43);
|
|
25052
25016
|
i0.ɵɵelementEnd()();
|
|
25053
25017
|
} if (rf & 2) {
|
|
25054
|
-
const
|
|
25055
|
-
const
|
|
25018
|
+
const _r187 = i0.ɵɵreference(11);
|
|
25019
|
+
const _r189 = i0.ɵɵreference(13);
|
|
25056
25020
|
const ctx_r9 = i0.ɵɵnextContext();
|
|
25057
25021
|
i0.ɵɵstyleProp("height", ctx_r9.heightTableContainer, "px");
|
|
25058
25022
|
i0.ɵɵproperty("itemSize", ctx_r9.itemSize)("minBufferPx", ctx_r9.heightTableContainer < 100 ? 100 : ctx_r9.heightTableContainer)("maxBufferPx", ctx_r9.heightTableContainer < 200 ? 200 : ctx_r9.heightTableContainer);
|
|
@@ -25066,15 +25030,15 @@ function PoTableComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
25066
25030
|
i0.ɵɵadvance();
|
|
25067
25031
|
i0.ɵɵproperty("ngIf", ctx_r9.hasSelectableColumn);
|
|
25068
25032
|
i0.ɵɵadvance();
|
|
25069
|
-
i0.ɵɵproperty("ngIf", (ctx_r9.hasMasterDetailColumn || ctx_r9.hasRowTemplate) && !ctx_r9.hasRowTemplateWithArrowDirectionRight);
|
|
25033
|
+
i0.ɵɵproperty("ngIf", (ctx_r9.hasMasterDetailColumn || ctx_r9.hasRowTemplate) && ctx_r9.hasMainColumns && !ctx_r9.hasRowTemplateWithArrowDirectionRight);
|
|
25070
25034
|
i0.ɵɵadvance();
|
|
25071
25035
|
i0.ɵɵproperty("ngIf", !ctx_r9.actionRight && (ctx_r9.visibleActions.length > 1 || ctx_r9.isSingleAction));
|
|
25072
25036
|
i0.ɵɵadvance();
|
|
25073
25037
|
i0.ɵɵproperty("ngIf", !ctx_r9.hasMainColumns);
|
|
25074
25038
|
i0.ɵɵadvance();
|
|
25075
|
-
i0.ɵɵproperty("ngIf", ctx_r9.isDraggable || ctx_r9.hasSomeFixed())("ngIfThen",
|
|
25039
|
+
i0.ɵɵproperty("ngIf", ctx_r9.isDraggable || ctx_r9.hasSomeFixed())("ngIfThen", _r187)("ngIfElse", _r189);
|
|
25076
25040
|
i0.ɵɵadvance(5);
|
|
25077
|
-
i0.ɵɵproperty("ngIf", ctx_r9.hasRowTemplateWithArrowDirectionRight && (ctx_r9.hasVisibleActions || ctx_r9.hideColumnsManager));
|
|
25041
|
+
i0.ɵɵproperty("ngIf", ctx_r9.hasRowTemplateWithArrowDirectionRight && ctx_r9.hasMainColumns && (ctx_r9.hasVisibleActions || ctx_r9.hideColumnsManager));
|
|
25078
25042
|
i0.ɵɵadvance();
|
|
25079
25043
|
i0.ɵɵproperty("ngIf", ctx_r9.hasVisibleActions && ctx_r9.actionRight && (ctx_r9.visibleActions.length > 1 || ctx_r9.isSingleAction));
|
|
25080
25044
|
i0.ɵɵadvance();
|
|
@@ -25085,35 +25049,35 @@ function PoTableComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
25085
25049
|
function PoTableComponent_ng_template_14_po_icon_0_Template(rf, ctx) { if (rf & 1) {
|
|
25086
25050
|
i0.ɵɵelement(0, "po-icon", 126);
|
|
25087
25051
|
} if (rf & 2) {
|
|
25088
|
-
const
|
|
25089
|
-
i0.ɵɵproperty("p-icon",
|
|
25052
|
+
const row_r303 = i0.ɵɵnextContext().row;
|
|
25053
|
+
i0.ɵɵproperty("p-icon", row_r303.$showDetail ? "ICON_ARROW_UP" : "ICON_ARROW_DOWN");
|
|
25090
25054
|
} }
|
|
25091
25055
|
function PoTableComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
25092
25056
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_14_po_icon_0_Template, 1, 1, "po-icon", 125);
|
|
25093
25057
|
} if (rf & 2) {
|
|
25094
|
-
const
|
|
25095
|
-
const
|
|
25058
|
+
const row_r303 = ctx.row;
|
|
25059
|
+
const rowIndex_r304 = ctx.rowIndex;
|
|
25096
25060
|
const ctx_r12 = i0.ɵɵnextContext();
|
|
25097
|
-
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(
|
|
25061
|
+
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(row_r303) && !ctx_r12.hasRowTemplate || ctx_r12.isShowRowTemplate(row_r303, rowIndex_r304) && ctx_r12.hasRowTemplate);
|
|
25098
25062
|
} }
|
|
25099
25063
|
function PoTableComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
25100
|
-
const
|
|
25064
|
+
const _r309 = i0.ɵɵgetCurrentView();
|
|
25101
25065
|
i0.ɵɵelementStart(0, "po-radio", 127);
|
|
25102
|
-
i0.ɵɵlistener("p-change-selected", function PoTableComponent_ng_template_16_Template_po_radio_p_change_selected_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
25066
|
+
i0.ɵɵlistener("p-change-selected", function PoTableComponent_ng_template_16_Template_po_radio_p_change_selected_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r309); const row_r307 = restoredCtx.$implicit; const ctx_r308 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r308.selectRow(row_r307)); });
|
|
25103
25067
|
i0.ɵɵelementEnd();
|
|
25104
25068
|
} if (rf & 2) {
|
|
25105
|
-
const
|
|
25069
|
+
const row_r307 = ctx.$implicit;
|
|
25106
25070
|
const ctx_r14 = i0.ɵɵnextContext();
|
|
25107
|
-
i0.ɵɵproperty("name", ctx_r14.idRadio)("p-checked",
|
|
25071
|
+
i0.ɵɵproperty("name", ctx_r14.idRadio)("p-checked", row_r307.$selected);
|
|
25108
25072
|
} }
|
|
25109
25073
|
function PoTableComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
25110
|
-
const
|
|
25074
|
+
const _r312 = i0.ɵɵgetCurrentView();
|
|
25111
25075
|
i0.ɵɵelementStart(0, "po-checkbox", 128);
|
|
25112
|
-
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_18_Template_po_checkbox_p_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
25076
|
+
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_18_Template_po_checkbox_p_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r312); const row_r310 = restoredCtx.$implicit; const ctx_r311 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r311.selectable ? ctx_r311.selectRow(row_r310) : "javascript:;"); });
|
|
25113
25077
|
i0.ɵɵelementEnd();
|
|
25114
25078
|
} if (rf & 2) {
|
|
25115
|
-
const
|
|
25116
|
-
i0.ɵɵproperty("p-checkboxValue",
|
|
25079
|
+
const row_r310 = ctx.$implicit;
|
|
25080
|
+
i0.ɵɵproperty("p-checkboxValue", row_r310.$selected === null ? "mixed" : row_r310.$selected);
|
|
25117
25081
|
} }
|
|
25118
25082
|
function PoTableComponent_ng_template_20_span_4_ng_container_1_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
25119
25083
|
i0.ɵɵelement(0, "po-icon", 134);
|
|
@@ -25129,11 +25093,11 @@ function PoTableComponent_ng_template_20_span_4_ng_container_1_Template(rf, ctx)
|
|
|
25129
25093
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_20_span_4_ng_container_1_po_icon_1_Template, 1, 0, "po-icon", 132)(2, PoTableComponent_ng_template_20_span_4_ng_container_1__svg_svg_2_Template, 2, 0, "svg", 133);
|
|
25130
25094
|
i0.ɵɵelementContainerEnd();
|
|
25131
25095
|
} if (rf & 2) {
|
|
25132
|
-
const
|
|
25096
|
+
const ctx_r316 = i0.ɵɵnextContext(3);
|
|
25133
25097
|
i0.ɵɵadvance();
|
|
25134
|
-
i0.ɵɵproperty("ngIf",
|
|
25098
|
+
i0.ɵɵproperty("ngIf", ctx_r316.iconNameLib === "PhosphorIcon");
|
|
25135
25099
|
i0.ɵɵadvance();
|
|
25136
|
-
i0.ɵɵproperty("ngIf",
|
|
25100
|
+
i0.ɵɵproperty("ngIf", ctx_r316.iconNameLib === "PoIcon");
|
|
25137
25101
|
} }
|
|
25138
25102
|
function PoTableComponent_ng_template_20_span_4_ng_container_2_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
25139
25103
|
i0.ɵɵelement(0, "po-icon", 138);
|
|
@@ -25149,11 +25113,11 @@ function PoTableComponent_ng_template_20_span_4_ng_container_2_Template(rf, ctx)
|
|
|
25149
25113
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_20_span_4_ng_container_2_po_icon_1_Template, 1, 0, "po-icon", 137)(2, PoTableComponent_ng_template_20_span_4_ng_container_2__svg_svg_2_Template, 2, 0, "svg", 133);
|
|
25150
25114
|
i0.ɵɵelementContainerEnd();
|
|
25151
25115
|
} if (rf & 2) {
|
|
25152
|
-
const
|
|
25116
|
+
const ctx_r317 = i0.ɵɵnextContext(3);
|
|
25153
25117
|
i0.ɵɵadvance();
|
|
25154
|
-
i0.ɵɵproperty("ngIf",
|
|
25118
|
+
i0.ɵɵproperty("ngIf", ctx_r317.iconNameLib === "PhosphorIcon");
|
|
25155
25119
|
i0.ɵɵadvance();
|
|
25156
|
-
i0.ɵɵproperty("ngIf",
|
|
25120
|
+
i0.ɵɵproperty("ngIf", ctx_r317.iconNameLib === "PoIcon");
|
|
25157
25121
|
} }
|
|
25158
25122
|
function PoTableComponent_ng_template_20_span_4_ng_container_3_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
25159
25123
|
i0.ɵɵelement(0, "po-icon", 141);
|
|
@@ -25169,43 +25133,43 @@ function PoTableComponent_ng_template_20_span_4_ng_container_3_Template(rf, ctx)
|
|
|
25169
25133
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_20_span_4_ng_container_3_po_icon_1_Template, 1, 0, "po-icon", 140)(2, PoTableComponent_ng_template_20_span_4_ng_container_3__svg_svg_2_Template, 2, 0, "svg", 133);
|
|
25170
25134
|
i0.ɵɵelementContainerEnd();
|
|
25171
25135
|
} if (rf & 2) {
|
|
25172
|
-
const
|
|
25136
|
+
const ctx_r318 = i0.ɵɵnextContext(3);
|
|
25173
25137
|
i0.ɵɵadvance();
|
|
25174
|
-
i0.ɵɵproperty("ngIf",
|
|
25138
|
+
i0.ɵɵproperty("ngIf", ctx_r318.iconNameLib === "PhosphorIcon");
|
|
25175
25139
|
i0.ɵɵadvance();
|
|
25176
|
-
i0.ɵɵproperty("ngIf",
|
|
25140
|
+
i0.ɵɵproperty("ngIf", ctx_r318.iconNameLib === "PoIcon");
|
|
25177
25141
|
} }
|
|
25178
25142
|
function PoTableComponent_ng_template_20_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
25179
25143
|
i0.ɵɵelementStart(0, "span");
|
|
25180
25144
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_20_span_4_ng_container_1_Template, 3, 2, "ng-container", 43)(2, PoTableComponent_ng_template_20_span_4_ng_container_2_Template, 3, 2, "ng-container", 43)(3, PoTableComponent_ng_template_20_span_4_ng_container_3_Template, 3, 2, "ng-container", 43);
|
|
25181
25145
|
i0.ɵɵelementEnd();
|
|
25182
25146
|
} if (rf & 2) {
|
|
25183
|
-
const
|
|
25184
|
-
const
|
|
25185
|
-
i0.ɵɵclassProp("po-table-header-icon-unselected",
|
|
25147
|
+
const column_r313 = i0.ɵɵnextContext().$implicit;
|
|
25148
|
+
const ctx_r315 = i0.ɵɵnextContext();
|
|
25149
|
+
i0.ɵɵclassProp("po-table-header-icon-unselected", ctx_r315.JSON.stringify(ctx_r315.sortedColumn == null ? null : ctx_r315.sortedColumn.property) !== ctx_r315.JSON.stringify(column_r313))("po-table-header-icon-descending", ctx_r315.JSON.stringify(ctx_r315.sortedColumn == null ? null : ctx_r315.sortedColumn.property) === ctx_r315.JSON.stringify(column_r313) && ctx_r315.sortedColumn.ascending)("po-table-header-icon-ascending", ctx_r315.JSON.stringify(ctx_r315.sortedColumn == null ? null : ctx_r315.sortedColumn.property) === ctx_r315.JSON.stringify(column_r313) && !ctx_r315.sortedColumn.ascending);
|
|
25186
25150
|
i0.ɵɵadvance();
|
|
25187
|
-
i0.ɵɵproperty("ngIf",
|
|
25151
|
+
i0.ɵɵproperty("ngIf", ctx_r315.JSON.stringify(ctx_r315.sortedColumn == null ? null : ctx_r315.sortedColumn.property) !== ctx_r315.JSON.stringify(column_r313));
|
|
25188
25152
|
i0.ɵɵadvance();
|
|
25189
|
-
i0.ɵɵproperty("ngIf",
|
|
25153
|
+
i0.ɵɵproperty("ngIf", ctx_r315.JSON.stringify(ctx_r315.sortedColumn == null ? null : ctx_r315.sortedColumn.property) === ctx_r315.JSON.stringify(column_r313) && ctx_r315.sortedColumn.ascending);
|
|
25190
25154
|
i0.ɵɵadvance();
|
|
25191
|
-
i0.ɵɵproperty("ngIf",
|
|
25155
|
+
i0.ɵɵproperty("ngIf", ctx_r315.JSON.stringify(ctx_r315.sortedColumn == null ? null : ctx_r315.sortedColumn.property) === ctx_r315.JSON.stringify(column_r313) && !ctx_r315.sortedColumn.ascending);
|
|
25192
25156
|
} }
|
|
25193
25157
|
function PoTableComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
|
|
25194
|
-
const
|
|
25158
|
+
const _r327 = i0.ɵɵgetCurrentView();
|
|
25195
25159
|
i0.ɵɵelementStart(0, "span", 129, 130);
|
|
25196
|
-
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_20_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(
|
|
25160
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_20_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(_r327); const ctx_r326 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r326.tooltipMouseEnter($event)); })("mouseleave", function PoTableComponent_ng_template_20_Template_span_mouseleave_0_listener() { i0.ɵɵrestoreView(_r327); const ctx_r328 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r328.tooltipMouseLeave()); });
|
|
25197
25161
|
i0.ɵɵtext(2);
|
|
25198
25162
|
i0.ɵɵpipe(3, "titlecase");
|
|
25199
25163
|
i0.ɵɵelementEnd();
|
|
25200
25164
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_20_span_4_Template, 4, 9, "span", 131);
|
|
25201
25165
|
} if (rf & 2) {
|
|
25202
|
-
const
|
|
25166
|
+
const column_r313 = ctx.$implicit;
|
|
25203
25167
|
const ctx_r18 = i0.ɵɵnextContext();
|
|
25204
25168
|
i0.ɵɵproperty("p-tooltip", ctx_r18.tooltipText)("p-append-in-body", true);
|
|
25205
25169
|
i0.ɵɵadvance(2);
|
|
25206
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
25170
|
+
i0.ɵɵtextInterpolate1(" ", column_r313.label || i0.ɵɵpipeBind1(3, 4, column_r313.property), " ");
|
|
25207
25171
|
i0.ɵɵadvance(2);
|
|
25208
|
-
i0.ɵɵproperty("ngIf", ctx_r18.sort &&
|
|
25172
|
+
i0.ɵɵproperty("ngIf", ctx_r18.sort && column_r313.sortable !== false);
|
|
25209
25173
|
} }
|
|
25210
25174
|
function PoTableComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
|
|
25211
25175
|
i0.ɵɵelementStart(0, "div", 143);
|
|
@@ -25226,39 +25190,39 @@ function PoTableComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
|
|
|
25226
25190
|
function PoTableComponent_ng_template_26_td_0_div_1_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
25227
25191
|
i0.ɵɵelement(0, "po-icon", 150);
|
|
25228
25192
|
} if (rf & 2) {
|
|
25229
|
-
const
|
|
25230
|
-
i0.ɵɵproperty("p-icon",
|
|
25193
|
+
const ctx_r334 = i0.ɵɵnextContext(4);
|
|
25194
|
+
i0.ɵɵproperty("p-icon", ctx_r334.firstAction.icon);
|
|
25231
25195
|
} }
|
|
25232
25196
|
function PoTableComponent_ng_template_26_td_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
25233
|
-
const
|
|
25197
|
+
const _r337 = i0.ɵɵgetCurrentView();
|
|
25234
25198
|
i0.ɵɵelementStart(0, "div", 148);
|
|
25235
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_26_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
25199
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_26_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r337); const row_r329 = i0.ɵɵnextContext(2).row; const ctx_r335 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r335.executeTableAction(row_r329, ctx_r335.firstAction)); });
|
|
25236
25200
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_26_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon", 149);
|
|
25237
25201
|
i0.ɵɵtext(2);
|
|
25238
25202
|
i0.ɵɵelementEnd();
|
|
25239
25203
|
} if (rf & 2) {
|
|
25240
|
-
const
|
|
25241
|
-
const
|
|
25242
|
-
i0.ɵɵclassProp("po-table-action-disabled",
|
|
25204
|
+
const row_r329 = i0.ɵɵnextContext(2).row;
|
|
25205
|
+
const ctx_r333 = i0.ɵɵnextContext();
|
|
25206
|
+
i0.ɵɵclassProp("po-table-action-disabled", ctx_r333.firstAction.disabled ? ctx_r333.validateTableAction(row_r329, ctx_r333.firstAction) : false);
|
|
25243
25207
|
i0.ɵɵadvance();
|
|
25244
|
-
i0.ɵɵproperty("ngIf",
|
|
25208
|
+
i0.ɵɵproperty("ngIf", ctx_r333.firstAction.icon);
|
|
25245
25209
|
i0.ɵɵadvance();
|
|
25246
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
25210
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r333.firstAction.label, " ");
|
|
25247
25211
|
} }
|
|
25248
25212
|
function PoTableComponent_ng_template_26_td_0_Template(rf, ctx) { if (rf & 1) {
|
|
25249
25213
|
i0.ɵɵelementStart(0, "td", 146);
|
|
25250
25214
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_26_td_0_div_1_Template, 3, 4, "div", 147);
|
|
25251
25215
|
i0.ɵɵelementEnd();
|
|
25252
25216
|
} if (rf & 2) {
|
|
25253
|
-
const
|
|
25254
|
-
i0.ɵɵstyleProp("width",
|
|
25217
|
+
const ctx_r331 = i0.ɵɵnextContext(2);
|
|
25218
|
+
i0.ɵɵstyleProp("width", ctx_r331.height && ctx_r331.actionRight ? ctx_r331.getWidthColumnManager() : "", "px")("max-width", ctx_r331.height && !ctx_r331.actionRight ? ctx_r331.getColumnWidthActionsLeft() : "", "px")("width", ctx_r331.height && !ctx_r331.actionRight ? ctx_r331.getColumnWidthActionsLeft() : "", "px");
|
|
25255
25219
|
i0.ɵɵadvance();
|
|
25256
|
-
i0.ɵɵproperty("ngIf",
|
|
25220
|
+
i0.ɵɵproperty("ngIf", ctx_r331.firstAction.visible !== false);
|
|
25257
25221
|
} }
|
|
25258
25222
|
function PoTableComponent_ng_template_26_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
25259
|
-
const
|
|
25223
|
+
const _r342 = i0.ɵɵgetCurrentView();
|
|
25260
25224
|
i0.ɵɵelementStart(0, "td", 151)(1, "div", 152, 153);
|
|
25261
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_26_td_1_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
25225
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_26_td_1_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r342); const _r339 = i0.ɵɵreference(2); const row_r329 = i0.ɵɵnextContext().row; const ctx_r340 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r340.togglePopup(row_r329, _r339)); });
|
|
25262
25226
|
i0.ɵɵelement(3, "po-icon", 154);
|
|
25263
25227
|
i0.ɵɵelementEnd()();
|
|
25264
25228
|
} }
|
|
@@ -25271,9 +25235,9 @@ function PoTableComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
|
|
|
25271
25235
|
i0.ɵɵproperty("ngIf", ctx_r24.visibleActions.length > 1);
|
|
25272
25236
|
} }
|
|
25273
25237
|
function PoTableComponent_po_table_column_manager_28_Template(rf, ctx) { if (rf & 1) {
|
|
25274
|
-
const
|
|
25238
|
+
const _r344 = i0.ɵɵgetCurrentView();
|
|
25275
25239
|
i0.ɵɵelementStart(0, "po-table-column-manager", 155);
|
|
25276
|
-
i0.ɵɵlistener("p-visible-columns-change", function PoTableComponent_po_table_column_manager_28_Template_po_table_column_manager_p_visible_columns_change_0_listener($event) { i0.ɵɵrestoreView(
|
|
25240
|
+
i0.ɵɵlistener("p-visible-columns-change", function PoTableComponent_po_table_column_manager_28_Template_po_table_column_manager_p_visible_columns_change_0_listener($event) { i0.ɵɵrestoreView(_r344); const ctx_r343 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r343.onVisibleColumnsChange($event)); })("p-change-visible-columns", function PoTableComponent_po_table_column_manager_28_Template_po_table_column_manager_p_change_visible_columns_0_listener($event) { i0.ɵɵrestoreView(_r344); const ctx_r345 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r345.onChangeVisibleColumns($event)); })("p-initial-columns", function PoTableComponent_po_table_column_manager_28_Template_po_table_column_manager_p_initial_columns_0_listener($event) { i0.ɵɵrestoreView(_r344); const ctx_r346 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r346.onColumnRestoreManager($event)); });
|
|
25277
25241
|
i0.ɵɵelementEnd();
|
|
25278
25242
|
} if (rf & 2) {
|
|
25279
25243
|
const ctx_r26 = i0.ɵɵnextContext();
|
|
@@ -25436,7 +25400,8 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
25436
25400
|
const columnCount = this.mainColumns.length +
|
|
25437
25401
|
(this.actions.length > 0 ? 1 : 0) +
|
|
25438
25402
|
(this.selectable ? 1 : 0) +
|
|
25439
|
-
(!this.hideDetail && this.columnMasterDetail !== undefined ? 1 : 0)
|
|
25403
|
+
(!this.hideDetail && this.columnMasterDetail !== undefined ? 1 : 0) +
|
|
25404
|
+
this.countExtraColumns();
|
|
25440
25405
|
return columnCount || 1;
|
|
25441
25406
|
}
|
|
25442
25407
|
get columnCountForMasterDetail() {
|
|
@@ -25909,6 +25874,22 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
25909
25874
|
return (this.tooltipText = columnLabel?.tooltip);
|
|
25910
25875
|
}
|
|
25911
25876
|
}
|
|
25877
|
+
countExtraColumns() {
|
|
25878
|
+
let extraColumns = 0;
|
|
25879
|
+
if (!this.columnMasterDetail && this.hasItems) {
|
|
25880
|
+
if ((this.hasMasterDetailColumn || this.hasRowTemplate) &&
|
|
25881
|
+
this.hasMainColumns &&
|
|
25882
|
+
!this.hasRowTemplateWithArrowDirectionRight) {
|
|
25883
|
+
extraColumns++;
|
|
25884
|
+
}
|
|
25885
|
+
if (this.hasRowTemplateWithArrowDirectionRight &&
|
|
25886
|
+
this.hasMainColumns &&
|
|
25887
|
+
(this.hasVisibleActions || this.hideColumnsManager)) {
|
|
25888
|
+
extraColumns++;
|
|
25889
|
+
}
|
|
25890
|
+
}
|
|
25891
|
+
return extraColumns;
|
|
25892
|
+
}
|
|
25912
25893
|
debounceResize() {
|
|
25913
25894
|
clearTimeout(this.timeoutResize);
|
|
25914
25895
|
this.timeoutResize = setTimeout(() => {
|
|
@@ -26114,7 +26095,7 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
26114
26095
|
}
|
|
26115
26096
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableComponent, [{
|
|
26116
26097
|
type: Component,
|
|
26117
|
-
args: [{ selector: 'po-table', providers: [PoDateService], template: "<div class=\"po-table-actions\">\n <div\n #columnBatchActions\n *ngIf=\"hasValidColumns && itemsSelected.length > 0 && !hideBatchActions\"\n class=\"po-table-actions-batch-actions\"\n >\n <div [ngPlural]=\"itemsSelected.length\" class=\"po-table-actions-batch-actions__label\">\n <strong>\n <ng-template ngPluralCase=\"=0\">{{ literals.noItem }}</ng-template>\n <ng-template ngPluralCase=\"=1\">{{ literals.oneItem }}</ng-template>\n <ng-template ngPluralCase=\"other\">{{ itemsSelected.length }} {{ literals.multipleItems }}</ng-template>\n </strong>\n </div>\n\n <div class=\"po-table-actions-batch-actions__buttons\">\n <po-button\n p-icon=\"ICON_DELETE\"\n [p-danger]=\"true\"\n [p-disabled]=\"itemsSelected.length > 1 && serviceDeleteApi !== undefined\"\n [p-label]=\"literals.delete\"\n (p-click)=\"modalDelete.open()\"\n ></po-button>\n </div>\n </div>\n\n <div #columnManager *ngIf=\"hasValidColumns && !hideColumnsManager\" class=\"po-table-actions-column-manager\">\n <po-button\n #columnManagerTarget\n p-icon=\"ICON_SETTINGS\"\n p-kind=\"tertiary\"\n p-tooltip-position=\"left\"\n [p-aria-label]=\"literals.columnsManager\"\n [p-tooltip]=\"literals.columnsManager\"\n (p-click)=\"onOpenColumnManager()\"\n ></po-button>\n </div>\n\n <div *ngIf=\"!hideTableSearch && hasValidColumns\" class=\"po-table-search\">\n <po-search\n [p-items]=\"items\"\n [p-filter-keys]=\"filteredColumns\"\n [p-filter-type]=\"filterType\"\n (p-filtered-items-change)=\"onFilteredItemsChange($event)\"\n >\n </po-search>\n </div>\n</div>\n<po-container *ngIf=\"container; else tableContainerTemplate\" p-no-padding>\n <ng-container *ngTemplateOutlet=\"tableContainerTemplate\"></ng-container>\n</po-container>\n\n<ng-template #tableContainerTemplate>\n <div [class.po-table-container-sticky]=\"loading\">\n <po-loading-overlay *ngIf=\"loading\" [p-text]=\"literals.loadingData\" [p-size]=\"sizeLoading\"></po-loading-overlay>\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 #poTableTbody [class.po-table-container-fixed-inner]=\"virtualScroll\">\n <div *ngIf=\"virtualScroll\">\n <ng-container *ngTemplateOutlet=\"tableVirtualScrollTemplate\"></ng-container>\n </div>\n <div *ngIf=\"!virtualScroll\" class=\"po-table-container-overflow\" [style.height.px]=\"heightTableContainer\">\n <ng-container *ngTemplateOutlet=\"tableTemplate\"></ng-container>\n </div>\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<!-- Show More Button -->\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<!-- Table default-->\n<ng-template #tableTemplate>\n <table\n #tableScrollable\n class=\"po-table\"\n [ngClass]=\"{\n 'po-table-interactive': selectable || sort,\n 'po-table-selectable': selectable,\n 'po-table-striped': striped,\n 'po-table-data-fixed-columns': applyFixedColumns(),\n 'po-table-text-wrap-enabled': textWrap\n }\"\n [attr.p-spacing]=\"spacing\"\n >\n <thead [class.po-table-header-sticky]=\"height > 0 && !virtualScroll\">\n <tr\n [ngClass]=\"!height ? { 'no-hover': hideSelectAll, 'po-table-column-drag': this.isDraggable } : ''\"\n [class.po-table-header]=\"!height\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <th\n *ngIf=\"hasSelectableColumn\"\n [style.pointer-events]=\"hideSelectAll ? 'none' : 'auto'\"\n class=\"po-table-column-selectable\"\n >\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (p-change)=\"selectAllRows()\"\n [p-checkboxValue]=\"selectAll === null ? 'mixed' : selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <ng-container\n *ngIf=\"this.isDraggable || hasSomeFixed(); then tableDefaultThDragDrop; else tableDefaultThDefault\"\n >\n </ng-container>\n <ng-template #tableDefaultThDragDrop>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{\n 'width':\n height > 0 && !virtualScroll ? (!hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto') : ''\n }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n [class.po-table-column-drag-box]=\"this.isDraggable\"\n (click)=\"sortColumn(column)\"\n cdkDrag\n cdkDragLockAxis=\"x\"\n [cdkDragDisabled]=\"column.fixed ? 'true' : 'false'\"\n [pFrozenColumn]=\"column.fixed\"\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 *ngIf=\"this.isDraggable && !column.fixed\">\n <po-icon cdkDragHandle *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_DRAG\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n cdkDragHandle\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"9\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"18\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"18\" r=\"2\" fill=\"black\" />\n </svg>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n </ng-template>\n <ng-template #tableDefaultThDefault>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{\n 'width':\n height > 0 && !virtualScroll ? (!hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto') : ''\n }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n [pFrozenColumn]=\"column.fixed\"\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 </ng-template>\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 && actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\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 filteredItems; 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 [pFrozenColumn]=\"column.fixed\"\n class=\"p-element po-frozen-column\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"hasSelectableRow() ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell po-table-body-ellipsis notranslate\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [p-append-in-body]=\"true\"\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 </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-parent-row]=\"row\"\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<!-- Table with virtual scroll -->\n<ng-template #tableVirtualScrollTemplate>\n <cdk-virtual-scroll-viewport\n #tableVirtualScroll\n [itemSize]=\"itemSize\"\n [style.height.px]=\"heightTableContainer\"\n [minBufferPx]=\"heightTableContainer < 100 ? 100 : heightTableContainer\"\n [maxBufferPx]=\"heightTableContainer < 200 ? 200 : heightTableContainer\"\n >\n <table\n class=\"po-table\"\n [ngClass]=\"{\n 'po-table-interactive': selectable || sort,\n 'po-table-selectable': selectable,\n 'po-table-striped': striped,\n 'po-table-data-fixed-columns': applyFixedColumns(),\n 'po-table-text-wrap-enabled': textWrap\n }\"\n [attr.p-spacing]=\"spacing\"\n >\n <thead class=\"po-table-header-sticky\" [style.top]=\"inverseOfTranslation\">\n <tr\n [class.po-table-header]=\"!height\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <th\n *ngIf=\"hasSelectableColumn\"\n [style.pointer-events]=\"hideSelectAll ? 'none' : 'auto'\"\n class=\"po-table-column-selectable\"\n >\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (p-change)=\"selectAllRows()\"\n [p-checkboxValue]=\"selectAll === null ? 'mixed' : selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <ng-container\n *ngIf=\"\n this.isDraggable || hasSomeFixed();\n then tableVirtualScrollThDragDrop;\n else tableVirtualScrollThDefault\n \"\n >\n </ng-container>\n <ng-template #tableVirtualScrollThDragDrop>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{ 'width': !hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto' }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n [class.po-table-column-drag-box]=\"this.isDraggable\"\n (click)=\"sortColumn(column)\"\n cdkDrag\n cdkDragLockAxis=\"x\"\n [cdkDragDisabled]=\"column.fixed ? 'true' : 'false'\"\n [pFrozenColumn]=\"column.fixed\"\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 *ngIf=\"this.isDraggable && !column.fixed\">\n <po-icon cdkDragHandle *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_DRAG\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n cdkDragHandle\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"9\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"18\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"18\" r=\"2\" fill=\"black\" />\n </svg>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n </ng-template>\n <ng-template #tableVirtualScrollThDefault>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column example-box\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{ 'width': !hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto' }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n [pFrozenColumn]=\"column.fixed\"\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 </ng-template>\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 && actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\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\n class=\"po-table-group-row\"\n *cdkVirtualFor=\"let row of filteredItems; let rowIndex = index; trackBy: trackBy\"\n >\n <tr\n class=\"po-table-row\"\n [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\"\n >\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n [pFrozenColumn]=\"column.fixed\"\n class=\"p-element po-frozen-column\"\n (click)=\"hasSelectableRow() ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell po-table-body-ellipsis notranslate\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [p-append-in-body]=\"true\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format : 'symbol' : '1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </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-parent-row]=\"row\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n </cdk-virtual-scroll-viewport>\n</ng-template>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n\n<ng-template #poTableColumnDetail let-row=\"row\" let-rowIndex=\"rowIndex\">\n <po-icon\n *ngIf=\"(containsMasterDetail(row) && !hasRowTemplate) || (isShowRowTemplate(row, rowIndex) && hasRowTemplate)\"\n [p-icon]=\"row.$showDetail ? 'ICON_ARROW_UP' : 'ICON_ARROW_DOWN'\"\n class=\"po-clickable\"\n >\n </po-icon>\n</ng-template>\n\n<ng-template #inputRadio let-row>\n <po-radio [name]=\"idRadio\" [p-checked]=\"row.$selected\" (p-change-selected)=\"selectRow(row)\"></po-radio>\n</ng-template>\n\n<ng-template #inputCheckbox let-row>\n <po-checkbox\n name=\"checkbox\"\n (p-change)=\"selectable ? selectRow(row) : 'javascript:;'\"\n [p-checkboxValue]=\"row.$selected === null ? 'mixed' : row.$selected\"\n ></po-checkbox>\n</ng-template>\n\n<ng-template #contentHeaderTemplate let-column>\n <span\n #columnHeader\n class=\"po-table-header-ellipsis\"\n [p-tooltip]=\"tooltipText\"\n [p-append-in-body]=\"true\"\n (mouseenter)=\"tooltipMouseEnter($event)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n {{ column.label || (column.property | titlecase) }}\n </span>\n\n <span\n *ngIf=\"sort && column.sortable !== false\"\n [class.po-table-header-icon-unselected]=\"JSON.stringify(sortedColumn?.property) !== JSON.stringify(column)\"\n [class.po-table-header-icon-descending]=\"\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && sortedColumn.ascending\n \"\n [class.po-table-header-icon-ascending]=\"\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && !sortedColumn.ascending\n \"\n >\n <ng-container *ngIf=\"JSON.stringify(sortedColumn?.property) !== JSON.stringify(column)\">\n <po-icon *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_SORT\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M18.2929 15.2929L17 16.5858L17 10C17 9.44772 16.5523 9 16 9C15.4477 9 15 9.44772 15 10L15 16.5858L13.7071 15.2929C13.3166 14.9024 12.6834 14.9024 12.2929 15.2929C11.9024 15.6834 11.9024 16.3166 12.2929 16.7071L15.2929 19.7071C15.6834 20.0976 16.3166 20.0976 16.7071 19.7071L19.7071 16.7071C20.0976 16.3166 20.0976 15.6834 19.7071 15.2929C19.3166 14.9024 18.6834 14.9024 18.2929 15.2929ZM5.70716 8.7071L7.00006 7.4142L7.00003 14C7.00002 14.5523 7.44774 15 8.00002 15C8.55231 15 9.00002 14.5523 9.00003 14L9.00006 7.41418L10.2929 8.70707C10.6835 9.09759 11.3166 9.09758 11.7072 8.70706C12.0977 8.31653 12.0977 7.68336 11.7072 7.29284L8.70718 4.29286C8.31665 3.90234 7.68349 3.90235 7.29296 4.29287L4.29295 7.29289C3.90242 7.68342 3.90242 8.31658 4.29294 8.70711C4.68347 9.09763 5.31663 9.09762 5.70716 8.7071Z\"\n fill=\"#1D1D30\"\n />\n </svg>\n </ng-container>\n\n <ng-container *ngIf=\"JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && sortedColumn.ascending\">\n <po-icon *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_SORT_ASC\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11 9.41421L9.70711 10.7071C9.31658 11.0976 8.68342 11.0976 8.29289 10.7071C7.90237 10.3166 7.90237 9.68342 8.29289 9.29289L11.2929 6.29289C11.6834 5.90237 12.3166 5.90237 12.7071 6.29289L15.7071 9.29289C16.0976 9.68342 16.0976 10.3166 15.7071 10.7071C15.3166 11.0976 14.6834 11.0976 14.2929 10.7071L13 9.41421V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V9.41421Z\"\n fill=\"black\"\n />\n </svg>\n </ng-container>\n\n <ng-container *ngIf=\"JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && !sortedColumn.ascending\">\n <po-icon cdkDragHandle *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_SORT_DESC\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9.70711 13.2929L11 14.5858V7C11 6.44772 11.4477 6 12 6C12.5523 6 13 6.44772 13 7V14.5858L14.2929 13.2929C14.6834 12.9024 15.3166 12.9024 15.7071 13.2929C16.0976 13.6834 16.0976 14.3166 15.7071 14.7071L12.7071 17.7071C12.3166 18.0976 11.6834 18.0976 11.2929 17.7071L8.29289 14.7071C7.90237 14.3166 7.90237 13.6834 8.29289 13.2929C8.68342 12.9024 9.31658 12.9024 9.70711 13.2929Z\"\n fill=\"black\"\n />\n </svg>\n </ng-container>\n </span>\n</ng-template>\n\n<ng-template #noColumnsWithHeight>\n <div class=\"po-table-header-fixed-inner\" [style.width.px]=\"headerWidth\">\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n </div>\n</ng-template>\n\n<ng-template #noColumnsWithoutHeight>\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n</ng-template>\n\n<!-- Template de a\u00E7\u00F5es -->\n<ng-template #ActionsColumnTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <td\n *ngIf=\"isSingleAction\"\n class=\"po-table-column po-table-column-single-action\"\n [style.width.px]=\"height && actionRight ? getWidthColumnManager() : ''\"\n [style.max-width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n [style.width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n >\n <div\n *ngIf=\"firstAction.visible !== false\"\n class=\"po-table-single-action po-clickable\"\n [class.po-table-action-disabled]=\"firstAction.disabled ? validateTableAction(row, firstAction) : false\"\n (click)=\"executeTableAction(row, firstAction)\"\n >\n <po-icon *ngIf=\"firstAction.icon\" class=\"po-table-single-action-content\" [p-icon]=\"firstAction.icon\"></po-icon>\n {{ firstAction.label }}\n </div>\n </td>\n\n <td *ngIf=\"visibleActions.length > 1\" class=\"po-table-column-actions\">\n <div #popupTarget class=\"po-clickable\" (click)=\"togglePopup(row, popupTarget)\">\n <po-icon p-icon=\"ICON_MORE\"></po-icon>\n </div>\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-hide-action-fixed-columns]=\"hideActionFixedColumns\"\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\n<po-modal\n #modalDelete\n [p-title]=\"literals.delete\"\n [p-primary-action]=\"confirm\"\n [p-secondary-action]=\"close\"\n [p-click-out]=\"true\"\n>\n <p class=\"po-font-text-large\">{{ literals.bodyDelete }}</p>\n</po-modal>\n" }]
|
|
26098
|
+
args: [{ selector: 'po-table', providers: [PoDateService], template: "<div class=\"po-table-actions\">\n <div\n #columnBatchActions\n *ngIf=\"hasValidColumns && itemsSelected.length > 0 && !hideBatchActions\"\n class=\"po-table-actions-batch-actions\"\n >\n <div [ngPlural]=\"itemsSelected.length\" class=\"po-table-actions-batch-actions__label\">\n <strong>\n <ng-template ngPluralCase=\"=0\">{{ literals.noItem }}</ng-template>\n <ng-template ngPluralCase=\"=1\">{{ literals.oneItem }}</ng-template>\n <ng-template ngPluralCase=\"other\">{{ itemsSelected.length }} {{ literals.multipleItems }}</ng-template>\n </strong>\n </div>\n\n <div class=\"po-table-actions-batch-actions__buttons\">\n <po-button\n p-icon=\"ICON_DELETE\"\n [p-danger]=\"true\"\n [p-disabled]=\"itemsSelected.length > 1 && serviceDeleteApi !== undefined\"\n [p-label]=\"literals.delete\"\n (p-click)=\"modalDelete.open()\"\n ></po-button>\n </div>\n </div>\n\n <div #columnManager *ngIf=\"hasValidColumns && !hideColumnsManager\" class=\"po-table-actions-column-manager\">\n <po-button\n #columnManagerTarget\n p-icon=\"ICON_SETTINGS\"\n p-kind=\"tertiary\"\n p-tooltip-position=\"left\"\n [p-aria-label]=\"literals.columnsManager\"\n [p-tooltip]=\"literals.columnsManager\"\n (p-click)=\"onOpenColumnManager()\"\n ></po-button>\n </div>\n\n <div *ngIf=\"!hideTableSearch && hasValidColumns\" class=\"po-table-search\">\n <po-search\n [p-items]=\"items\"\n [p-filter-keys]=\"filteredColumns\"\n [p-filter-type]=\"filterType\"\n (p-filtered-items-change)=\"onFilteredItemsChange($event)\"\n >\n </po-search>\n </div>\n</div>\n<po-container *ngIf=\"container; else tableContainerTemplate\" p-no-padding>\n <ng-container *ngTemplateOutlet=\"tableContainerTemplate\"></ng-container>\n</po-container>\n\n<ng-template #tableContainerTemplate>\n <div [class.po-table-container-sticky]=\"loading\">\n <po-loading-overlay *ngIf=\"loading\" [p-text]=\"literals.loadingData\" [p-size]=\"sizeLoading\"></po-loading-overlay>\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 #poTableTbody [class.po-table-container-fixed-inner]=\"virtualScroll\">\n <div *ngIf=\"virtualScroll\">\n <ng-container *ngTemplateOutlet=\"tableVirtualScrollTemplate\"></ng-container>\n </div>\n <div *ngIf=\"!virtualScroll\" class=\"po-table-container-overflow\" [style.height.px]=\"heightTableContainer\">\n <ng-container *ngTemplateOutlet=\"tableTemplate\"></ng-container>\n </div>\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<!-- Show More Button -->\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<!-- Table default-->\n<ng-template #tableTemplate>\n <table\n #tableScrollable\n class=\"po-table\"\n [ngClass]=\"{\n 'po-table-interactive': selectable || sort,\n 'po-table-selectable': selectable,\n 'po-table-striped': striped,\n 'po-table-data-fixed-columns': applyFixedColumns(),\n 'po-table-text-wrap-enabled': textWrap\n }\"\n [attr.p-spacing]=\"spacing\"\n >\n <thead [class.po-table-header-sticky]=\"height > 0 && !virtualScroll\">\n <tr\n [ngClass]=\"!height ? { 'no-hover': hideSelectAll, 'po-table-column-drag': this.isDraggable } : ''\"\n [class.po-table-header]=\"!height\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <th\n *ngIf=\"hasSelectableColumn\"\n [style.pointer-events]=\"hideSelectAll ? 'none' : 'auto'\"\n class=\"po-table-column-selectable\"\n >\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (p-change)=\"selectAllRows()\"\n [p-checkboxValue]=\"selectAll === null ? 'mixed' : selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && hasMainColumns && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <ng-container\n *ngIf=\"this.isDraggable || hasSomeFixed(); then tableDefaultThDragDrop; else tableDefaultThDefault\"\n >\n </ng-container>\n <ng-template #tableDefaultThDragDrop>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{\n 'width':\n height > 0 && !virtualScroll ? (!hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto') : ''\n }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n [class.po-table-column-drag-box]=\"this.isDraggable\"\n (click)=\"sortColumn(column)\"\n cdkDrag\n cdkDragLockAxis=\"x\"\n [cdkDragDisabled]=\"column.fixed ? 'true' : 'false'\"\n [pFrozenColumn]=\"column.fixed\"\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 *ngIf=\"this.isDraggable && !column.fixed\">\n <po-icon cdkDragHandle *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_DRAG\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n cdkDragHandle\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"9\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"18\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"18\" r=\"2\" fill=\"black\" />\n </svg>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n </ng-template>\n <ng-template #tableDefaultThDefault>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{\n 'width':\n height > 0 && !virtualScroll ? (!hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto') : ''\n }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n [pFrozenColumn]=\"column.fixed\"\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 </ng-template>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager) && hasMainColumns\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\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 filteredItems; 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 ou pela diretiva -->\n <td\n *ngIf=\"\n (columnMasterDetail && !hideDetail && !hasRowTemplate) ||\n (hasRowTemplate && !hasRowTemplateWithArrowDirectionRight)\n \"\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 <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 [pFrozenColumn]=\"column.fixed\"\n class=\"p-element po-frozen-column\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"hasSelectableRow() ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell po-table-body-ellipsis notranslate\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [p-append-in-body]=\"true\"\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 </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-parent-row]=\"row\"\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<!-- Table with virtual scroll -->\n<ng-template #tableVirtualScrollTemplate>\n <cdk-virtual-scroll-viewport\n #tableVirtualScroll\n [itemSize]=\"itemSize\"\n [style.height.px]=\"heightTableContainer\"\n [minBufferPx]=\"heightTableContainer < 100 ? 100 : heightTableContainer\"\n [maxBufferPx]=\"heightTableContainer < 200 ? 200 : heightTableContainer\"\n >\n <table\n class=\"po-table\"\n [ngClass]=\"{\n 'po-table-interactive': selectable || sort,\n 'po-table-selectable': selectable,\n 'po-table-striped': striped,\n 'po-table-data-fixed-columns': applyFixedColumns(),\n 'po-table-text-wrap-enabled': textWrap\n }\"\n [attr.p-spacing]=\"spacing\"\n >\n <thead class=\"po-table-header-sticky\" [style.top]=\"inverseOfTranslation\">\n <tr\n [class.po-table-header]=\"!height\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <th\n *ngIf=\"hasSelectableColumn\"\n [style.pointer-events]=\"hideSelectAll ? 'none' : 'auto'\"\n class=\"po-table-column-selectable\"\n >\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (p-change)=\"selectAllRows()\"\n [p-checkboxValue]=\"selectAll === null ? 'mixed' : selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"\n (hasMasterDetailColumn || hasRowTemplate) && hasMainColumns && !hasRowTemplateWithArrowDirectionRight\n \"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n #columnActionLeft\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <ng-container\n *ngIf=\"\n this.isDraggable || hasSomeFixed();\n then tableVirtualScrollThDragDrop;\n else tableVirtualScrollThDefault\n \"\n >\n </ng-container>\n <ng-template #tableVirtualScrollThDragDrop>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{ 'width': !hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto' }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n [class.po-table-column-drag-box]=\"this.isDraggable\"\n (click)=\"sortColumn(column)\"\n cdkDrag\n cdkDragLockAxis=\"x\"\n [cdkDragDisabled]=\"column.fixed ? 'true' : 'false'\"\n [pFrozenColumn]=\"column.fixed\"\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 *ngIf=\"this.isDraggable && !column.fixed\">\n <po-icon cdkDragHandle *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_DRAG\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n cdkDragHandle\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"9\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"6\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"12\" r=\"2\" fill=\"black\" />\n <circle cx=\"9\" cy=\"18\" r=\"2\" fill=\"black\" />\n <circle cx=\"15\" cy=\"18\" r=\"2\" fill=\"black\" />\n </svg>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n </ng-template>\n <ng-template #tableVirtualScrollThDefault>\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n class=\"po-table-header-ellipsis p-element po-frozen-column example-box\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [attr.data-po-table-column-name]=\"column.label || (column.property | titlecase) | lowercase\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [ngClass]=\"{\n 'po-table-header-sorted':\n sort &&\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) &&\n (sortedColumn.ascending || !sortedColumn.ascending)\n }\"\n [ngStyle]=\"{ 'width': !hasItems ? '100%' : applyFixedColumns() ? column.width : 'auto' }\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n [pFrozenColumn]=\"column.fixed\"\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 </ng-template>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && hasMainColumns && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\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\n class=\"po-table-group-row\"\n *cdkVirtualFor=\"let row of filteredItems; let rowIndex = index; trackBy: trackBy\"\n >\n <tr\n class=\"po-table-row\"\n [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\"\n >\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table ou pela diretiva -->\n <td\n *ngIf=\"\n (columnMasterDetail && !hideDetail && !hasRowTemplate) ||\n (hasRowTemplate && !hasRowTemplateWithArrowDirectionRight)\n \"\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 <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 [pFrozenColumn]=\"column.fixed\"\n class=\"p-element po-frozen-column\"\n (click)=\"hasSelectableRow() ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell po-table-body-ellipsis notranslate\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [p-append-in-body]=\"true\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format : 'symbol' : '1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </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-parent-row]=\"row\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n </cdk-virtual-scroll-viewport>\n</ng-template>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n\n<ng-template #poTableColumnDetail let-row=\"row\" let-rowIndex=\"rowIndex\">\n <po-icon\n *ngIf=\"(containsMasterDetail(row) && !hasRowTemplate) || (isShowRowTemplate(row, rowIndex) && hasRowTemplate)\"\n [p-icon]=\"row.$showDetail ? 'ICON_ARROW_UP' : 'ICON_ARROW_DOWN'\"\n class=\"po-clickable\"\n >\n </po-icon>\n</ng-template>\n\n<ng-template #inputRadio let-row>\n <po-radio [name]=\"idRadio\" [p-checked]=\"row.$selected\" (p-change-selected)=\"selectRow(row)\"></po-radio>\n</ng-template>\n\n<ng-template #inputCheckbox let-row>\n <po-checkbox\n name=\"checkbox\"\n (p-change)=\"selectable ? selectRow(row) : 'javascript:;'\"\n [p-checkboxValue]=\"row.$selected === null ? 'mixed' : row.$selected\"\n ></po-checkbox>\n</ng-template>\n\n<ng-template #contentHeaderTemplate let-column>\n <span\n #columnHeader\n class=\"po-table-header-ellipsis\"\n [p-tooltip]=\"tooltipText\"\n [p-append-in-body]=\"true\"\n (mouseenter)=\"tooltipMouseEnter($event)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n {{ column.label || (column.property | titlecase) }}\n </span>\n\n <span\n *ngIf=\"sort && column.sortable !== false\"\n [class.po-table-header-icon-unselected]=\"JSON.stringify(sortedColumn?.property) !== JSON.stringify(column)\"\n [class.po-table-header-icon-descending]=\"\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && sortedColumn.ascending\n \"\n [class.po-table-header-icon-ascending]=\"\n JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && !sortedColumn.ascending\n \"\n >\n <ng-container *ngIf=\"JSON.stringify(sortedColumn?.property) !== JSON.stringify(column)\">\n <po-icon *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_SORT\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M18.2929 15.2929L17 16.5858L17 10C17 9.44772 16.5523 9 16 9C15.4477 9 15 9.44772 15 10L15 16.5858L13.7071 15.2929C13.3166 14.9024 12.6834 14.9024 12.2929 15.2929C11.9024 15.6834 11.9024 16.3166 12.2929 16.7071L15.2929 19.7071C15.6834 20.0976 16.3166 20.0976 16.7071 19.7071L19.7071 16.7071C20.0976 16.3166 20.0976 15.6834 19.7071 15.2929C19.3166 14.9024 18.6834 14.9024 18.2929 15.2929ZM5.70716 8.7071L7.00006 7.4142L7.00003 14C7.00002 14.5523 7.44774 15 8.00002 15C8.55231 15 9.00002 14.5523 9.00003 14L9.00006 7.41418L10.2929 8.70707C10.6835 9.09759 11.3166 9.09758 11.7072 8.70706C12.0977 8.31653 12.0977 7.68336 11.7072 7.29284L8.70718 4.29286C8.31665 3.90234 7.68349 3.90235 7.29296 4.29287L4.29295 7.29289C3.90242 7.68342 3.90242 8.31658 4.29294 8.70711C4.68347 9.09763 5.31663 9.09762 5.70716 8.7071Z\"\n fill=\"#1D1D30\"\n />\n </svg>\n </ng-container>\n\n <ng-container *ngIf=\"JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && sortedColumn.ascending\">\n <po-icon *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_SORT_ASC\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11 9.41421L9.70711 10.7071C9.31658 11.0976 8.68342 11.0976 8.29289 10.7071C7.90237 10.3166 7.90237 9.68342 8.29289 9.29289L11.2929 6.29289C11.6834 5.90237 12.3166 5.90237 12.7071 6.29289L15.7071 9.29289C16.0976 9.68342 16.0976 10.3166 15.7071 10.7071C15.3166 11.0976 14.6834 11.0976 14.2929 10.7071L13 9.41421V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V9.41421Z\"\n fill=\"black\"\n />\n </svg>\n </ng-container>\n\n <ng-container *ngIf=\"JSON.stringify(sortedColumn?.property) === JSON.stringify(column) && !sortedColumn.ascending\">\n <po-icon cdkDragHandle *ngIf=\"iconNameLib === 'PhosphorIcon'\" p-icon=\"ICON_SORT_DESC\"></po-icon>\n <svg\n *ngIf=\"iconNameLib === 'PoIcon'\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9.70711 13.2929L11 14.5858V7C11 6.44772 11.4477 6 12 6C12.5523 6 13 6.44772 13 7V14.5858L14.2929 13.2929C14.6834 12.9024 15.3166 12.9024 15.7071 13.2929C16.0976 13.6834 16.0976 14.3166 15.7071 14.7071L12.7071 17.7071C12.3166 18.0976 11.6834 18.0976 11.2929 17.7071L8.29289 14.7071C7.90237 14.3166 7.90237 13.6834 8.29289 13.2929C8.68342 12.9024 9.31658 12.9024 9.70711 13.2929Z\"\n fill=\"black\"\n />\n </svg>\n </ng-container>\n </span>\n</ng-template>\n\n<ng-template #noColumnsWithHeight>\n <div class=\"po-table-header-fixed-inner\" [style.width.px]=\"headerWidth\">\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n </div>\n</ng-template>\n\n<ng-template #noColumnsWithoutHeight>\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n</ng-template>\n\n<!-- Template de a\u00E7\u00F5es -->\n<ng-template #ActionsColumnTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <td\n *ngIf=\"isSingleAction\"\n class=\"po-table-column po-table-column-single-action\"\n [style.width.px]=\"height && actionRight ? getWidthColumnManager() : ''\"\n [style.max-width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n [style.width.px]=\"height && !actionRight ? getColumnWidthActionsLeft() : ''\"\n >\n <div\n *ngIf=\"firstAction.visible !== false\"\n class=\"po-table-single-action po-clickable\"\n [class.po-table-action-disabled]=\"firstAction.disabled ? validateTableAction(row, firstAction) : false\"\n (click)=\"executeTableAction(row, firstAction)\"\n >\n <po-icon *ngIf=\"firstAction.icon\" class=\"po-table-single-action-content\" [p-icon]=\"firstAction.icon\"></po-icon>\n {{ firstAction.label }}\n </div>\n </td>\n\n <td *ngIf=\"visibleActions.length > 1\" class=\"po-table-column-actions\">\n <div #popupTarget class=\"po-clickable\" (click)=\"togglePopup(row, popupTarget)\">\n <po-icon p-icon=\"ICON_MORE\"></po-icon>\n </div>\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-hide-action-fixed-columns]=\"hideActionFixedColumns\"\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\n<po-modal\n #modalDelete\n [p-title]=\"literals.delete\"\n [p-primary-action]=\"confirm\"\n [p-secondary-action]=\"close\"\n [p-click-out]=\"true\"\n>\n <p class=\"po-font-text-large\">{{ literals.bodyDelete }}</p>\n</po-modal>\n" }]
|
|
26118
26099
|
}], () => [{ type: PoDateService }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: i1.DecimalPipe }, { type: PoTableService }, { type: undefined, decorators: [{
|
|
26119
26100
|
type: Optional
|
|
26120
26101
|
}, {
|